@confidencesystemsinc/sdk 1.3.6 → 1.3.8
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/index.cjs +14 -14
- package/dist/index.js +726 -719
- package/dist/theme.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,18 +2,18 @@ var Ti = (e) => {
|
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
4
|
var Eo = (e, t, n) => t.has(e) || Ti("Cannot " + n);
|
|
5
|
-
var p = (e, t, n) => (Eo(e, t, "read from private field"), n ? n.call(e) : t.get(e)),
|
|
5
|
+
var p = (e, t, n) => (Eo(e, t, "read from private field"), n ? n.call(e) : t.get(e)), U = (e, t, n) => t.has(e) ? Ti("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), N = (e, t, n, r) => (Eo(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), J = (e, t, n) => (Eo(e, t, "access private method"), n);
|
|
6
6
|
var Or = (e, t, n, r) => ({
|
|
7
7
|
set _(o) {
|
|
8
|
-
|
|
8
|
+
N(e, t, o, n);
|
|
9
9
|
},
|
|
10
10
|
get _() {
|
|
11
11
|
return p(e, t, r);
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import { jsx as k, jsxs as me, Fragment as ut } from "react/jsx-runtime";
|
|
15
|
-
import * as
|
|
16
|
-
import j, { createContext as Ne, useState as
|
|
15
|
+
import * as F from "react";
|
|
16
|
+
import j, { createContext as Ne, useState as ce, useContext as Se, useMemo as he, useRef as oe, useCallback as we, useEffect as Ee, useLayoutEffect as Gs, forwardRef as Ys, Fragment as Ke, isValidElement as Hu, cloneElement as Uu, createElement as Bu, useId as qt, useSyncExternalStore as Wu, useReducer as qu, createRef as Vu } from "react";
|
|
17
17
|
import * as Gu from "react-dom";
|
|
18
18
|
import { createPortal as Yu } from "react-dom";
|
|
19
19
|
var jn = class {
|
|
@@ -177,10 +177,10 @@ function dl(e, t) {
|
|
|
177
177
|
var Zt, St, On, el, Zu = (el = class extends jn {
|
|
178
178
|
constructor() {
|
|
179
179
|
super();
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
U(this, Zt);
|
|
181
|
+
U(this, St);
|
|
182
|
+
U(this, On);
|
|
183
|
+
N(this, On, (t) => {
|
|
184
184
|
if (!cn && window.addEventListener) {
|
|
185
185
|
const n = () => t();
|
|
186
186
|
return window.addEventListener("visibilitychange", n, !1), () => {
|
|
@@ -194,16 +194,16 @@ var Zt, St, On, el, Zu = (el = class extends jn {
|
|
|
194
194
|
}
|
|
195
195
|
onUnsubscribe() {
|
|
196
196
|
var t;
|
|
197
|
-
this.hasListeners() || ((t = p(this, St)) == null || t.call(this),
|
|
197
|
+
this.hasListeners() || ((t = p(this, St)) == null || t.call(this), N(this, St, void 0));
|
|
198
198
|
}
|
|
199
199
|
setEventListener(t) {
|
|
200
200
|
var n;
|
|
201
|
-
|
|
201
|
+
N(this, On, t), (n = p(this, St)) == null || n.call(this), N(this, St, t((r) => {
|
|
202
202
|
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
203
203
|
}));
|
|
204
204
|
}
|
|
205
205
|
setFocused(t) {
|
|
206
|
-
p(this, Zt) !== t && (
|
|
206
|
+
p(this, Zt) !== t && (N(this, Zt, t), this.onFocus());
|
|
207
207
|
}
|
|
208
208
|
onFocus() {
|
|
209
209
|
const t = this.isFocused();
|
|
@@ -218,10 +218,10 @@ var Zt, St, On, el, Zu = (el = class extends jn {
|
|
|
218
218
|
}, Zt = new WeakMap(), St = new WeakMap(), On = new WeakMap(), el), Qs = new Zu(), Pn, kt, Sn, tl, ef = (tl = class extends jn {
|
|
219
219
|
constructor() {
|
|
220
220
|
super();
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
221
|
+
U(this, Pn, !0);
|
|
222
|
+
U(this, kt);
|
|
223
|
+
U(this, Sn);
|
|
224
|
+
N(this, Sn, (t) => {
|
|
225
225
|
if (!cn && window.addEventListener) {
|
|
226
226
|
const n = () => t(!0), r = () => t(!1);
|
|
227
227
|
return window.addEventListener("online", n, !1), window.addEventListener("offline", r, !1), () => {
|
|
@@ -235,14 +235,14 @@ var Zt, St, On, el, Zu = (el = class extends jn {
|
|
|
235
235
|
}
|
|
236
236
|
onUnsubscribe() {
|
|
237
237
|
var t;
|
|
238
|
-
this.hasListeners() || ((t = p(this, kt)) == null || t.call(this),
|
|
238
|
+
this.hasListeners() || ((t = p(this, kt)) == null || t.call(this), N(this, kt, void 0));
|
|
239
239
|
}
|
|
240
240
|
setEventListener(t) {
|
|
241
241
|
var n;
|
|
242
|
-
|
|
242
|
+
N(this, Sn, t), (n = p(this, kt)) == null || n.call(this), N(this, kt, t(this.setOnline.bind(this)));
|
|
243
243
|
}
|
|
244
244
|
setOnline(t) {
|
|
245
|
-
p(this, Pn) !== t && (
|
|
245
|
+
p(this, Pn) !== t && (N(this, Pn, t), this.listeners.forEach((r) => {
|
|
246
246
|
r(t);
|
|
247
247
|
}));
|
|
248
248
|
}
|
|
@@ -320,15 +320,15 @@ function ml(e) {
|
|
|
320
320
|
m = Promise.reject(w);
|
|
321
321
|
}
|
|
322
322
|
Promise.resolve(m).then(f).catch((w) => {
|
|
323
|
-
var
|
|
323
|
+
var R;
|
|
324
324
|
if (r)
|
|
325
325
|
return;
|
|
326
|
-
const
|
|
326
|
+
const E = e.retry ?? (cn ? 0 : 3), y = e.retryDelay ?? tf, x = typeof y == "function" ? y(n, w) : y, v = E === !0 || typeof E == "number" && n < E || typeof E == "function" && E(n, w);
|
|
327
327
|
if (t || !v) {
|
|
328
328
|
h(w);
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
|
-
n++, (
|
|
331
|
+
n++, (R = e.onFail) == null || R.call(e, n, w), Qu(x).then(() => c() ? void 0 : d()).then(() => {
|
|
332
332
|
t ? h(w) : b();
|
|
333
333
|
});
|
|
334
334
|
});
|
|
@@ -405,13 +405,13 @@ function rf() {
|
|
|
405
405
|
}
|
|
406
406
|
var Te = rf(), en, nl, gl = (nl = class {
|
|
407
407
|
constructor() {
|
|
408
|
-
|
|
408
|
+
U(this, en);
|
|
409
409
|
}
|
|
410
410
|
destroy() {
|
|
411
411
|
this.clearGcTimeout();
|
|
412
412
|
}
|
|
413
413
|
scheduleGc() {
|
|
414
|
-
this.clearGcTimeout(), Xo(this.gcTime) &&
|
|
414
|
+
this.clearGcTimeout(), Xo(this.gcTime) && N(this, en, setTimeout(() => {
|
|
415
415
|
this.optionalRemove();
|
|
416
416
|
}, this.gcTime));
|
|
417
417
|
}
|
|
@@ -422,20 +422,20 @@ var Te = rf(), en, nl, gl = (nl = class {
|
|
|
422
422
|
);
|
|
423
423
|
}
|
|
424
424
|
clearGcTimeout() {
|
|
425
|
-
p(this, en) && (clearTimeout(p(this, en)),
|
|
425
|
+
p(this, en) && (clearTimeout(p(this, en)), N(this, en, void 0));
|
|
426
426
|
}
|
|
427
427
|
}, en = new WeakMap(), nl), kn, An, Ue, tn, Ae, hr, nn, qe, it, rl, of = (rl = class extends gl {
|
|
428
428
|
constructor(t) {
|
|
429
429
|
super();
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
430
|
+
U(this, qe);
|
|
431
|
+
U(this, kn);
|
|
432
|
+
U(this, An);
|
|
433
|
+
U(this, Ue);
|
|
434
|
+
U(this, tn);
|
|
435
|
+
U(this, Ae);
|
|
436
|
+
U(this, hr);
|
|
437
|
+
U(this, nn);
|
|
438
|
+
N(this, nn, !1), N(this, hr, t.defaultOptions), this.setOptions(t.options), this.observers = [], N(this, tn, t.client), N(this, Ue, p(this, tn).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, N(this, kn, sf(this.options)), this.state = t.state ?? p(this, kn), this.scheduleGc();
|
|
439
439
|
}
|
|
440
440
|
get meta() {
|
|
441
441
|
return this.options.meta;
|
|
@@ -529,7 +529,7 @@ var Te = rf(), en, nl, gl = (nl = class {
|
|
|
529
529
|
const r = new AbortController(), o = (f) => {
|
|
530
530
|
Object.defineProperty(f, "signal", {
|
|
531
531
|
enumerable: !0,
|
|
532
|
-
get: () => (
|
|
532
|
+
get: () => (N(this, nn, !0), r.signal)
|
|
533
533
|
});
|
|
534
534
|
}, s = () => {
|
|
535
535
|
const f = fl(this.options, n), h = {
|
|
@@ -537,7 +537,7 @@ var Te = rf(), en, nl, gl = (nl = class {
|
|
|
537
537
|
queryKey: this.queryKey,
|
|
538
538
|
meta: this.meta
|
|
539
539
|
};
|
|
540
|
-
return o(h),
|
|
540
|
+
return o(h), N(this, nn, !1), this.options.persister ? this.options.persister(
|
|
541
541
|
f,
|
|
542
542
|
h,
|
|
543
543
|
this
|
|
@@ -553,7 +553,7 @@ var Te = rf(), en, nl, gl = (nl = class {
|
|
|
553
553
|
o(i), (l = this.options.behavior) == null || l.onFetch(
|
|
554
554
|
i,
|
|
555
555
|
this
|
|
556
|
-
),
|
|
556
|
+
), N(this, An, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((c = i.fetchOptions) == null ? void 0 : c.meta)) && J(this, qe, it).call(this, { type: "fetch", meta: (u = i.fetchOptions) == null ? void 0 : u.meta });
|
|
557
557
|
const a = (f) => {
|
|
558
558
|
var h, d, b, m;
|
|
559
559
|
Co(f) && f.silent || J(this, qe, it).call(this, {
|
|
@@ -570,7 +570,7 @@ var Te = rf(), en, nl, gl = (nl = class {
|
|
|
570
570
|
this
|
|
571
571
|
)), this.scheduleGc();
|
|
572
572
|
};
|
|
573
|
-
return
|
|
573
|
+
return N(this, Ae, ml({
|
|
574
574
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
575
575
|
fn: i.fetchFn,
|
|
576
576
|
abort: r.abort.bind(r),
|
|
@@ -712,8 +712,8 @@ function sf(e) {
|
|
|
712
712
|
var Ze, ol, af = (ol = class extends jn {
|
|
713
713
|
constructor(t = {}) {
|
|
714
714
|
super();
|
|
715
|
-
|
|
716
|
-
this.config = t,
|
|
715
|
+
U(this, Ze);
|
|
716
|
+
this.config = t, N(this, Ze, /* @__PURE__ */ new Map());
|
|
717
717
|
}
|
|
718
718
|
build(t, n, r) {
|
|
719
719
|
const o = n.queryKey, s = n.queryHash ?? Ks(o, n);
|
|
@@ -784,11 +784,11 @@ var Ze, ol, af = (ol = class extends jn {
|
|
|
784
784
|
}, Ze = new WeakMap(), ol), et, $e, rn, tt, Ot, sl, lf = (sl = class extends gl {
|
|
785
785
|
constructor(t) {
|
|
786
786
|
super();
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
this.mutationId = t.mutationId,
|
|
787
|
+
U(this, tt);
|
|
788
|
+
U(this, et);
|
|
789
|
+
U(this, $e);
|
|
790
|
+
U(this, rn);
|
|
791
|
+
this.mutationId = t.mutationId, N(this, $e, t.mutationCache), N(this, et, []), this.state = t.state || vl(), this.setOptions(t.options), this.scheduleGc();
|
|
792
792
|
}
|
|
793
793
|
setOptions(t) {
|
|
794
794
|
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
@@ -804,7 +804,7 @@ var Ze, ol, af = (ol = class extends jn {
|
|
|
804
804
|
}));
|
|
805
805
|
}
|
|
806
806
|
removeObserver(t) {
|
|
807
|
-
|
|
807
|
+
N(this, et, p(this, et).filter((n) => n !== t)), this.scheduleGc(), p(this, $e).notify({
|
|
808
808
|
type: "observerRemoved",
|
|
809
809
|
mutation: this,
|
|
810
810
|
observer: t
|
|
@@ -819,14 +819,14 @@ var Ze, ol, af = (ol = class extends jn {
|
|
|
819
819
|
this.execute(this.state.variables);
|
|
820
820
|
}
|
|
821
821
|
async execute(t) {
|
|
822
|
-
var s, i, a, l, c, u, f, h, d, b, m, g, w,
|
|
822
|
+
var s, i, a, l, c, u, f, h, d, b, m, g, w, E, y, x, v, R, H, A;
|
|
823
823
|
const n = () => {
|
|
824
824
|
J(this, tt, Ot).call(this, { type: "continue" });
|
|
825
825
|
};
|
|
826
|
-
|
|
826
|
+
N(this, rn, ml({
|
|
827
827
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
828
|
-
onFail: (
|
|
829
|
-
J(this, tt, Ot).call(this, { type: "failed", failureCount:
|
|
828
|
+
onFail: (W, G) => {
|
|
829
|
+
J(this, tt, Ot).call(this, { type: "failed", failureCount: W, error: G });
|
|
830
830
|
},
|
|
831
831
|
onPause: () => {
|
|
832
832
|
J(this, tt, Ot).call(this, { type: "pause" });
|
|
@@ -855,50 +855,50 @@ var Ze, ol, af = (ol = class extends jn {
|
|
|
855
855
|
isPaused: o
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
|
-
const
|
|
858
|
+
const W = await p(this, rn).start();
|
|
859
859
|
return await ((u = (c = p(this, $e).config).onSuccess) == null ? void 0 : u.call(
|
|
860
860
|
c,
|
|
861
|
-
|
|
861
|
+
W,
|
|
862
862
|
t,
|
|
863
863
|
this.state.context,
|
|
864
864
|
this
|
|
865
|
-
)), await ((h = (f = this.options).onSuccess) == null ? void 0 : h.call(f,
|
|
865
|
+
)), await ((h = (f = this.options).onSuccess) == null ? void 0 : h.call(f, W, t, this.state.context)), await ((b = (d = p(this, $e).config).onSettled) == null ? void 0 : b.call(
|
|
866
866
|
d,
|
|
867
|
-
|
|
867
|
+
W,
|
|
868
868
|
null,
|
|
869
869
|
this.state.variables,
|
|
870
870
|
this.state.context,
|
|
871
871
|
this
|
|
872
|
-
)), await ((g = (m = this.options).onSettled) == null ? void 0 : g.call(m,
|
|
873
|
-
} catch (
|
|
872
|
+
)), await ((g = (m = this.options).onSettled) == null ? void 0 : g.call(m, W, null, t, this.state.context)), J(this, tt, Ot).call(this, { type: "success", data: W }), W;
|
|
873
|
+
} catch (W) {
|
|
874
874
|
try {
|
|
875
|
-
throw await ((
|
|
875
|
+
throw await ((E = (w = p(this, $e).config).onError) == null ? void 0 : E.call(
|
|
876
876
|
w,
|
|
877
|
-
|
|
877
|
+
W,
|
|
878
878
|
t,
|
|
879
879
|
this.state.context,
|
|
880
880
|
this
|
|
881
|
-
)), await ((
|
|
881
|
+
)), await ((x = (y = this.options).onError) == null ? void 0 : x.call(
|
|
882
882
|
y,
|
|
883
|
-
|
|
883
|
+
W,
|
|
884
884
|
t,
|
|
885
885
|
this.state.context
|
|
886
|
-
)), await ((
|
|
886
|
+
)), await ((R = (v = p(this, $e).config).onSettled) == null ? void 0 : R.call(
|
|
887
887
|
v,
|
|
888
888
|
void 0,
|
|
889
|
-
|
|
889
|
+
W,
|
|
890
890
|
this.state.variables,
|
|
891
891
|
this.state.context,
|
|
892
892
|
this
|
|
893
|
-
)), await ((A = (
|
|
894
|
-
|
|
893
|
+
)), await ((A = (H = this.options).onSettled) == null ? void 0 : A.call(
|
|
894
|
+
H,
|
|
895
895
|
void 0,
|
|
896
|
-
|
|
896
|
+
W,
|
|
897
897
|
t,
|
|
898
898
|
this.state.context
|
|
899
|
-
)),
|
|
899
|
+
)), W;
|
|
900
900
|
} finally {
|
|
901
|
-
J(this, tt, Ot).call(this, { type: "error", error:
|
|
901
|
+
J(this, tt, Ot).call(this, { type: "error", error: W });
|
|
902
902
|
}
|
|
903
903
|
} finally {
|
|
904
904
|
p(this, $e).runNext(this);
|
|
@@ -984,10 +984,10 @@ function vl() {
|
|
|
984
984
|
var at, Ve, pr, il, cf = (il = class extends jn {
|
|
985
985
|
constructor(t = {}) {
|
|
986
986
|
super();
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
this.config = t,
|
|
987
|
+
U(this, at);
|
|
988
|
+
U(this, Ve);
|
|
989
|
+
U(this, pr);
|
|
990
|
+
this.config = t, N(this, at, /* @__PURE__ */ new Set()), N(this, Ve, /* @__PURE__ */ new Map()), N(this, pr, 0);
|
|
991
991
|
}
|
|
992
992
|
build(t, n, r) {
|
|
993
993
|
const o = new lf({
|
|
@@ -1094,40 +1094,40 @@ function Ai(e) {
|
|
|
1094
1094
|
m = !0;
|
|
1095
1095
|
}), t.signal)
|
|
1096
1096
|
});
|
|
1097
|
-
}, w = fl(t.options, t.fetchOptions),
|
|
1097
|
+
}, w = fl(t.options, t.fetchOptions), E = async (y, x, v) => {
|
|
1098
1098
|
if (m)
|
|
1099
1099
|
return Promise.reject();
|
|
1100
|
-
if (
|
|
1100
|
+
if (x == null && y.pages.length)
|
|
1101
1101
|
return Promise.resolve(y);
|
|
1102
|
-
const
|
|
1102
|
+
const R = {
|
|
1103
1103
|
client: t.client,
|
|
1104
1104
|
queryKey: t.queryKey,
|
|
1105
|
-
pageParam:
|
|
1105
|
+
pageParam: x,
|
|
1106
1106
|
direction: v ? "backward" : "forward",
|
|
1107
1107
|
meta: t.options.meta
|
|
1108
1108
|
};
|
|
1109
|
-
g(
|
|
1110
|
-
const
|
|
1111
|
-
|
|
1112
|
-
), { maxPages: A } = t.options,
|
|
1109
|
+
g(R);
|
|
1110
|
+
const H = await w(
|
|
1111
|
+
R
|
|
1112
|
+
), { maxPages: A } = t.options, W = v ? Ju : Xu;
|
|
1113
1113
|
return {
|
|
1114
|
-
pages:
|
|
1115
|
-
pageParams:
|
|
1114
|
+
pages: W(y.pages, H, A),
|
|
1115
|
+
pageParams: W(y.pageParams, x, A)
|
|
1116
1116
|
};
|
|
1117
1117
|
};
|
|
1118
1118
|
if (o && s.length) {
|
|
1119
|
-
const y = o === "backward",
|
|
1119
|
+
const y = o === "backward", x = y ? uf : Ri, v = {
|
|
1120
1120
|
pages: s,
|
|
1121
1121
|
pageParams: i
|
|
1122
|
-
},
|
|
1123
|
-
a = await
|
|
1122
|
+
}, R = x(r, v);
|
|
1123
|
+
a = await E(v, R, y);
|
|
1124
1124
|
} else {
|
|
1125
1125
|
const y = e ?? s.length;
|
|
1126
1126
|
do {
|
|
1127
|
-
const
|
|
1128
|
-
if (l > 0 &&
|
|
1127
|
+
const x = l === 0 ? i[0] ?? r.initialPageParam : Ri(r, a);
|
|
1128
|
+
if (l > 0 && x == null)
|
|
1129
1129
|
break;
|
|
1130
|
-
a = await
|
|
1130
|
+
a = await E(a, x), l++;
|
|
1131
1131
|
} while (l < y);
|
|
1132
1132
|
}
|
|
1133
1133
|
return a;
|
|
@@ -1164,26 +1164,26 @@ function uf(e, { pages: t, pageParams: n }) {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
var ve, At, Rt, Rn, $n, $t, Fn, In, al, ff = (al = class {
|
|
1166
1166
|
constructor(e = {}) {
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1167
|
+
U(this, ve);
|
|
1168
|
+
U(this, At);
|
|
1169
|
+
U(this, Rt);
|
|
1170
|
+
U(this, Rn);
|
|
1171
|
+
U(this, $n);
|
|
1172
|
+
U(this, $t);
|
|
1173
|
+
U(this, Fn);
|
|
1174
|
+
U(this, In);
|
|
1175
|
+
N(this, ve, e.queryCache || new af()), N(this, At, e.mutationCache || new cf()), N(this, Rt, e.defaultOptions || {}), N(this, Rn, /* @__PURE__ */ new Map()), N(this, $n, /* @__PURE__ */ new Map()), N(this, $t, 0);
|
|
1176
1176
|
}
|
|
1177
1177
|
mount() {
|
|
1178
|
-
Or(this, $t)._++, p(this, $t) === 1 && (
|
|
1178
|
+
Or(this, $t)._++, p(this, $t) === 1 && (N(this, Fn, Qs.subscribe(async (e) => {
|
|
1179
1179
|
e && (await this.resumePausedMutations(), p(this, ve).onFocus());
|
|
1180
|
-
})),
|
|
1180
|
+
})), N(this, In, Ur.subscribe(async (e) => {
|
|
1181
1181
|
e && (await this.resumePausedMutations(), p(this, ve).onOnline());
|
|
1182
1182
|
})));
|
|
1183
1183
|
}
|
|
1184
1184
|
unmount() {
|
|
1185
1185
|
var e, t;
|
|
1186
|
-
Or(this, $t)._--, p(this, $t) === 0 && ((e = p(this, Fn)) == null || e.call(this),
|
|
1186
|
+
Or(this, $t)._--, p(this, $t) === 0 && ((e = p(this, Fn)) == null || e.call(this), N(this, Fn, void 0), (t = p(this, In)) == null || t.call(this), N(this, In, void 0));
|
|
1187
1187
|
}
|
|
1188
1188
|
isFetching(e) {
|
|
1189
1189
|
return p(this, ve).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -1317,7 +1317,7 @@ var ve, At, Rt, Rn, $n, $t, Fn, In, al, ff = (al = class {
|
|
|
1317
1317
|
return p(this, Rt);
|
|
1318
1318
|
}
|
|
1319
1319
|
setDefaultOptions(e) {
|
|
1320
|
-
|
|
1320
|
+
N(this, Rt, e);
|
|
1321
1321
|
}
|
|
1322
1322
|
setQueryDefaults(e, t) {
|
|
1323
1323
|
p(this, Rn).set(un(e), {
|
|
@@ -1371,25 +1371,25 @@ var ve, At, Rt, Rn, $n, $t, Fn, In, al, ff = (al = class {
|
|
|
1371
1371
|
}, ve = new WeakMap(), At = new WeakMap(), Rt = new WeakMap(), Rn = new WeakMap(), $n = new WeakMap(), $t = new WeakMap(), Fn = new WeakMap(), In = new WeakMap(), al), Me, re, mr, Fe, on, Nn, Ft, It, gr, Ln, Mn, sn, an, Nt, _n, le, Yn, ns, rs, os, ss, is, as, ls, yl, ll, df = (ll = class extends jn {
|
|
1372
1372
|
constructor(t, n) {
|
|
1373
1373
|
super();
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1374
|
+
U(this, le);
|
|
1375
|
+
U(this, Me);
|
|
1376
|
+
U(this, re);
|
|
1377
|
+
U(this, mr);
|
|
1378
|
+
U(this, Fe);
|
|
1379
|
+
U(this, on);
|
|
1380
|
+
U(this, Nn);
|
|
1381
|
+
U(this, Ft);
|
|
1382
|
+
U(this, It);
|
|
1383
|
+
U(this, gr);
|
|
1384
|
+
U(this, Ln);
|
|
1385
1385
|
// This property keeps track of the last query with defined data.
|
|
1386
1386
|
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
this.options = n,
|
|
1387
|
+
U(this, Mn);
|
|
1388
|
+
U(this, sn);
|
|
1389
|
+
U(this, an);
|
|
1390
|
+
U(this, Nt);
|
|
1391
|
+
U(this, _n, /* @__PURE__ */ new Set());
|
|
1392
|
+
this.options = n, N(this, Me, t), N(this, It, null), N(this, Ft, ts()), this.options.experimental_prefetchInRender || p(this, Ft).reject(
|
|
1393
1393
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
1394
1394
|
), this.bindMethods(), this.setOptions(n);
|
|
1395
1395
|
}
|
|
@@ -1442,7 +1442,7 @@ var ve, At, Rt, Rn, $n, $t, Fn, In, al, ff = (al = class {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
getOptimisticResult(t) {
|
|
1444
1444
|
const n = p(this, Me).getQueryCache().build(p(this, Me), t), r = this.createResult(n, t);
|
|
1445
|
-
return pf(this, r) && (
|
|
1445
|
+
return pf(this, r) && (N(this, Fe, r), N(this, Nn, this.options), N(this, on, p(this, re).state)), r;
|
|
1446
1446
|
}
|
|
1447
1447
|
getCurrentResult() {
|
|
1448
1448
|
return p(this, Fe);
|
|
@@ -1474,12 +1474,12 @@ var ve, At, Rt, Rn, $n, $t, Fn, In, al, ff = (al = class {
|
|
|
1474
1474
|
}).then(() => (this.updateResult(), p(this, Fe)));
|
|
1475
1475
|
}
|
|
1476
1476
|
createResult(t, n) {
|
|
1477
|
-
var
|
|
1477
|
+
var W;
|
|
1478
1478
|
const r = p(this, re), o = this.options, s = p(this, Fe), i = p(this, on), a = p(this, Nn), c = t !== r ? t.state : p(this, mr), { state: u } = t;
|
|
1479
1479
|
let f = { ...u }, h = !1, d;
|
|
1480
1480
|
if (n._optimisticResults) {
|
|
1481
|
-
const G = this.hasListeners(),
|
|
1482
|
-
(
|
|
1481
|
+
const G = this.hasListeners(), ue = !G && $i(t, n), de = G && Fi(t, r, n, o);
|
|
1482
|
+
(ue || de) && (f = {
|
|
1483
1483
|
...f,
|
|
1484
1484
|
...bl(u.data, t.options)
|
|
1485
1485
|
}), n._optimisticResults === "isRestoring" && (f.fetchStatus = "idle");
|
|
@@ -1490,7 +1490,7 @@ var ve, At, Rt, Rn, $n, $t, Fn, In, al, ff = (al = class {
|
|
|
1490
1490
|
if (n.placeholderData !== void 0 && d === void 0 && g === "pending") {
|
|
1491
1491
|
let G;
|
|
1492
1492
|
s != null && s.isPlaceholderData && n.placeholderData === (a == null ? void 0 : a.placeholderData) ? (G = s.data, w = !0) : G = typeof n.placeholderData == "function" ? n.placeholderData(
|
|
1493
|
-
(
|
|
1493
|
+
(W = p(this, Mn)) == null ? void 0 : W.state.data,
|
|
1494
1494
|
p(this, Mn)
|
|
1495
1495
|
) : n.placeholderData, G !== void 0 && (g = "success", d = es(
|
|
1496
1496
|
s == null ? void 0 : s.data,
|
|
@@ -1503,17 +1503,17 @@ var ve, At, Rt, Rn, $n, $t, Fn, In, al, ff = (al = class {
|
|
|
1503
1503
|
d = p(this, Ln);
|
|
1504
1504
|
else
|
|
1505
1505
|
try {
|
|
1506
|
-
|
|
1506
|
+
N(this, gr, n.select), d = n.select(d), d = es(s == null ? void 0 : s.data, d, n), N(this, Ln, d), N(this, It, null);
|
|
1507
1507
|
} catch (G) {
|
|
1508
|
-
|
|
1508
|
+
N(this, It, G);
|
|
1509
1509
|
}
|
|
1510
1510
|
p(this, It) && (b = p(this, It), d = p(this, Ln), m = Date.now(), g = "error");
|
|
1511
|
-
const
|
|
1511
|
+
const E = f.fetchStatus === "fetching", y = g === "pending", x = g === "error", v = y && E, R = d !== void 0, A = {
|
|
1512
1512
|
status: g,
|
|
1513
1513
|
fetchStatus: f.fetchStatus,
|
|
1514
1514
|
isPending: y,
|
|
1515
1515
|
isSuccess: g === "success",
|
|
1516
|
-
isError:
|
|
1516
|
+
isError: x,
|
|
1517
1517
|
isInitialLoading: v,
|
|
1518
1518
|
isLoading: v,
|
|
1519
1519
|
data: d,
|
|
@@ -1525,12 +1525,12 @@ var ve, At, Rt, Rn, $n, $t, Fn, In, al, ff = (al = class {
|
|
|
1525
1525
|
errorUpdateCount: f.errorUpdateCount,
|
|
1526
1526
|
isFetched: f.dataUpdateCount > 0 || f.errorUpdateCount > 0,
|
|
1527
1527
|
isFetchedAfterMount: f.dataUpdateCount > c.dataUpdateCount || f.errorUpdateCount > c.errorUpdateCount,
|
|
1528
|
-
isFetching:
|
|
1529
|
-
isRefetching:
|
|
1530
|
-
isLoadingError:
|
|
1528
|
+
isFetching: E,
|
|
1529
|
+
isRefetching: E && !y,
|
|
1530
|
+
isLoadingError: x && !R,
|
|
1531
1531
|
isPaused: f.fetchStatus === "paused",
|
|
1532
1532
|
isPlaceholderData: h,
|
|
1533
|
-
isRefetchError:
|
|
1533
|
+
isRefetchError: x && R,
|
|
1534
1534
|
isStale: Xs(t, n),
|
|
1535
1535
|
refetch: this.refetch,
|
|
1536
1536
|
promise: p(this, Ft)
|
|
@@ -1538,8 +1538,8 @@ var ve, At, Rt, Rn, $n, $t, Fn, In, al, ff = (al = class {
|
|
|
1538
1538
|
if (this.options.experimental_prefetchInRender) {
|
|
1539
1539
|
const G = (se) => {
|
|
1540
1540
|
A.status === "error" ? se.reject(A.error) : A.data !== void 0 && se.resolve(A.data);
|
|
1541
|
-
},
|
|
1542
|
-
const se =
|
|
1541
|
+
}, ue = () => {
|
|
1542
|
+
const se = N(this, Ft, A.promise = ts());
|
|
1543
1543
|
G(se);
|
|
1544
1544
|
}, de = p(this, Ft);
|
|
1545
1545
|
switch (de.status) {
|
|
@@ -1547,10 +1547,10 @@ var ve, At, Rt, Rn, $n, $t, Fn, In, al, ff = (al = class {
|
|
|
1547
1547
|
t.queryHash === r.queryHash && G(de);
|
|
1548
1548
|
break;
|
|
1549
1549
|
case "fulfilled":
|
|
1550
|
-
(A.status === "error" || A.data !== de.value) &&
|
|
1550
|
+
(A.status === "error" || A.data !== de.value) && ue();
|
|
1551
1551
|
break;
|
|
1552
1552
|
case "rejected":
|
|
1553
|
-
(A.status !== "error" || A.error !== de.reason) &&
|
|
1553
|
+
(A.status !== "error" || A.error !== de.reason) && ue();
|
|
1554
1554
|
break;
|
|
1555
1555
|
}
|
|
1556
1556
|
}
|
|
@@ -1558,9 +1558,9 @@ var ve, At, Rt, Rn, $n, $t, Fn, In, al, ff = (al = class {
|
|
|
1558
1558
|
}
|
|
1559
1559
|
updateResult() {
|
|
1560
1560
|
const t = p(this, Fe), n = this.createResult(p(this, re), this.options);
|
|
1561
|
-
if (
|
|
1561
|
+
if (N(this, on, p(this, re).state), N(this, Nn, this.options), p(this, on).data !== void 0 && N(this, Mn, p(this, re)), zr(n, t))
|
|
1562
1562
|
return;
|
|
1563
|
-
|
|
1563
|
+
N(this, Fe, n);
|
|
1564
1564
|
const r = () => {
|
|
1565
1565
|
if (!t)
|
|
1566
1566
|
return !0;
|
|
@@ -1596,27 +1596,27 @@ var ve, At, Rt, Rn, $n, $t, Fn, In, al, ff = (al = class {
|
|
|
1596
1596
|
if (cn || p(this, Fe).isStale || !Xo(t))
|
|
1597
1597
|
return;
|
|
1598
1598
|
const r = ul(p(this, Fe).dataUpdatedAt, t) + 1;
|
|
1599
|
-
|
|
1599
|
+
N(this, sn, setTimeout(() => {
|
|
1600
1600
|
p(this, Fe).isStale || this.updateResult();
|
|
1601
1601
|
}, r));
|
|
1602
1602
|
}, rs = function() {
|
|
1603
1603
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(p(this, re)) : this.options.refetchInterval) ?? !1;
|
|
1604
1604
|
}, os = function(t) {
|
|
1605
|
-
J(this, le, as).call(this),
|
|
1605
|
+
J(this, le, as).call(this), N(this, Nt, t), !(cn || Ge(this.options.enabled, p(this, re)) === !1 || !Xo(p(this, Nt)) || p(this, Nt) === 0) && N(this, an, setInterval(() => {
|
|
1606
1606
|
(this.options.refetchIntervalInBackground || Qs.isFocused()) && J(this, le, Yn).call(this);
|
|
1607
1607
|
}, p(this, Nt)));
|
|
1608
1608
|
}, ss = function() {
|
|
1609
1609
|
J(this, le, ns).call(this), J(this, le, os).call(this, J(this, le, rs).call(this));
|
|
1610
1610
|
}, is = function() {
|
|
1611
|
-
p(this, sn) && (clearTimeout(p(this, sn)),
|
|
1611
|
+
p(this, sn) && (clearTimeout(p(this, sn)), N(this, sn, void 0));
|
|
1612
1612
|
}, as = function() {
|
|
1613
|
-
p(this, an) && (clearInterval(p(this, an)),
|
|
1613
|
+
p(this, an) && (clearInterval(p(this, an)), N(this, an, void 0));
|
|
1614
1614
|
}, ls = function() {
|
|
1615
1615
|
const t = p(this, Me).getQueryCache().build(p(this, Me), this.options);
|
|
1616
1616
|
if (t === p(this, re))
|
|
1617
1617
|
return;
|
|
1618
1618
|
const n = p(this, re);
|
|
1619
|
-
|
|
1619
|
+
N(this, re, t), N(this, mr, t.state), this.hasListeners() && (n == null || n.removeObserver(this), t.addObserver(this));
|
|
1620
1620
|
}, yl = function(t) {
|
|
1621
1621
|
Te.batch(() => {
|
|
1622
1622
|
t.listeners && this.listeners.forEach((n) => {
|
|
@@ -1652,12 +1652,12 @@ function pf(e, t) {
|
|
|
1652
1652
|
var Lt, Mt, _e, lt, pt, Mr, us, cl, mf = (cl = class extends jn {
|
|
1653
1653
|
constructor(n, r) {
|
|
1654
1654
|
super();
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1655
|
+
U(this, pt);
|
|
1656
|
+
U(this, Lt);
|
|
1657
|
+
U(this, Mt);
|
|
1658
|
+
U(this, _e);
|
|
1659
|
+
U(this, lt);
|
|
1660
|
+
N(this, Lt, n), this.setOptions(r), this.bindMethods(), J(this, pt, Mr).call(this);
|
|
1661
1661
|
}
|
|
1662
1662
|
bindMethods() {
|
|
1663
1663
|
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
|
@@ -1683,16 +1683,16 @@ var Lt, Mt, _e, lt, pt, Mr, us, cl, mf = (cl = class extends jn {
|
|
|
1683
1683
|
}
|
|
1684
1684
|
reset() {
|
|
1685
1685
|
var n;
|
|
1686
|
-
(n = p(this, _e)) == null || n.removeObserver(this),
|
|
1686
|
+
(n = p(this, _e)) == null || n.removeObserver(this), N(this, _e, void 0), J(this, pt, Mr).call(this), J(this, pt, us).call(this);
|
|
1687
1687
|
}
|
|
1688
1688
|
mutate(n, r) {
|
|
1689
1689
|
var o;
|
|
1690
|
-
return
|
|
1690
|
+
return N(this, lt, r), (o = p(this, _e)) == null || o.removeObserver(this), N(this, _e, p(this, Lt).getMutationCache().build(p(this, Lt), this.options)), p(this, _e).addObserver(this), p(this, _e).execute(n);
|
|
1691
1691
|
}
|
|
1692
1692
|
}, Lt = new WeakMap(), Mt = new WeakMap(), _e = new WeakMap(), lt = new WeakMap(), pt = new WeakSet(), Mr = function() {
|
|
1693
1693
|
var r;
|
|
1694
1694
|
const n = ((r = p(this, _e)) == null ? void 0 : r.state) ?? vl();
|
|
1695
|
-
|
|
1695
|
+
N(this, Mt, {
|
|
1696
1696
|
...n,
|
|
1697
1697
|
isPending: n.status === "pending",
|
|
1698
1698
|
isSuccess: n.status === "success",
|
|
@@ -1718,10 +1718,10 @@ var Lt, Mt, _e, lt, pt, Mr, us, cl, mf = (cl = class extends jn {
|
|
|
1718
1718
|
f(p(this, Mt));
|
|
1719
1719
|
});
|
|
1720
1720
|
});
|
|
1721
|
-
}, cl), wl =
|
|
1721
|
+
}, cl), wl = F.createContext(
|
|
1722
1722
|
void 0
|
|
1723
1723
|
), xl = (e) => {
|
|
1724
|
-
const t =
|
|
1724
|
+
const t = F.useContext(wl);
|
|
1725
1725
|
if (e)
|
|
1726
1726
|
return e;
|
|
1727
1727
|
if (!t)
|
|
@@ -1730,9 +1730,9 @@ var Lt, Mt, _e, lt, pt, Mr, us, cl, mf = (cl = class extends jn {
|
|
|
1730
1730
|
}, gf = ({
|
|
1731
1731
|
client: e,
|
|
1732
1732
|
children: t
|
|
1733
|
-
}) => (
|
|
1733
|
+
}) => (F.useEffect(() => (e.mount(), () => {
|
|
1734
1734
|
e.unmount();
|
|
1735
|
-
}), [e]), /* @__PURE__ */ k(wl.Provider, { value: e, children: t })), El =
|
|
1735
|
+
}), [e]), /* @__PURE__ */ k(wl.Provider, { value: e, children: t })), El = F.createContext(!1), bf = () => F.useContext(El);
|
|
1736
1736
|
El.Provider;
|
|
1737
1737
|
function vf() {
|
|
1738
1738
|
let e = !1;
|
|
@@ -1746,10 +1746,10 @@ function vf() {
|
|
|
1746
1746
|
isReset: () => e
|
|
1747
1747
|
};
|
|
1748
1748
|
}
|
|
1749
|
-
var yf =
|
|
1749
|
+
var yf = F.createContext(vf()), wf = () => F.useContext(yf), xf = (e, t) => {
|
|
1750
1750
|
(e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
|
|
1751
1751
|
}, Ef = (e) => {
|
|
1752
|
-
|
|
1752
|
+
F.useEffect(() => {
|
|
1753
1753
|
e.clearReset();
|
|
1754
1754
|
}, [e]);
|
|
1755
1755
|
}, Cf = ({
|
|
@@ -1777,14 +1777,14 @@ function Sf(e, t, n) {
|
|
|
1777
1777
|
), process.env.NODE_ENV !== "production" && (i.queryFn || console.error(
|
|
1778
1778
|
`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
|
1779
1779
|
)), i._optimisticResults = o ? "isRestoring" : "optimistic", Tf(i), xf(i, s), Ef(s);
|
|
1780
|
-
const a = !r.getQueryCache().get(i.queryHash), [l] =
|
|
1780
|
+
const a = !r.getQueryCache().get(i.queryHash), [l] = F.useState(
|
|
1781
1781
|
() => new t(
|
|
1782
1782
|
r,
|
|
1783
1783
|
i
|
|
1784
1784
|
)
|
|
1785
1785
|
), c = l.getOptimisticResult(i), u = !o && e.subscribed !== !1;
|
|
1786
|
-
if (
|
|
1787
|
-
|
|
1786
|
+
if (F.useSyncExternalStore(
|
|
1787
|
+
F.useCallback(
|
|
1788
1788
|
(g) => {
|
|
1789
1789
|
const w = u ? l.subscribe(Te.batchCalls(g)) : Ie;
|
|
1790
1790
|
return l.updateResult(), w;
|
|
@@ -1793,7 +1793,7 @@ function Sf(e, t, n) {
|
|
|
1793
1793
|
),
|
|
1794
1794
|
() => l.getCurrentResult(),
|
|
1795
1795
|
() => l.getCurrentResult()
|
|
1796
|
-
),
|
|
1796
|
+
), F.useEffect(() => {
|
|
1797
1797
|
l.setOptions(i);
|
|
1798
1798
|
}, [i, l]), Pf(i, c))
|
|
1799
1799
|
throw Ii(i, l, s);
|
|
@@ -1827,23 +1827,23 @@ function Js(e, t) {
|
|
|
1827
1827
|
return Sf(e, df, t);
|
|
1828
1828
|
}
|
|
1829
1829
|
function Cl(e, t) {
|
|
1830
|
-
const n = xl(t), [r] =
|
|
1830
|
+
const n = xl(t), [r] = F.useState(
|
|
1831
1831
|
() => new mf(
|
|
1832
1832
|
n,
|
|
1833
1833
|
e
|
|
1834
1834
|
)
|
|
1835
1835
|
);
|
|
1836
|
-
|
|
1836
|
+
F.useEffect(() => {
|
|
1837
1837
|
r.setOptions(e);
|
|
1838
1838
|
}, [r, e]);
|
|
1839
|
-
const o =
|
|
1840
|
-
|
|
1839
|
+
const o = F.useSyncExternalStore(
|
|
1840
|
+
F.useCallback(
|
|
1841
1841
|
(i) => r.subscribe(Te.batchCalls(i)),
|
|
1842
1842
|
[r]
|
|
1843
1843
|
),
|
|
1844
1844
|
() => r.getCurrentResult(),
|
|
1845
1845
|
() => r.getCurrentResult()
|
|
1846
|
-
), s =
|
|
1846
|
+
), s = F.useCallback(
|
|
1847
1847
|
(i, a) => {
|
|
1848
1848
|
r.mutate(i, a).catch(Ie);
|
|
1849
1849
|
},
|
|
@@ -1858,7 +1858,7 @@ Zs.Provider;
|
|
|
1858
1858
|
const zn = () => Se(Zs), Tl = ({
|
|
1859
1859
|
children: e
|
|
1860
1860
|
}) => {
|
|
1861
|
-
const [t] =
|
|
1861
|
+
const [t] = ce(new ff());
|
|
1862
1862
|
return console.log("Confidence Playbook Context Initialized"), /* @__PURE__ */ k(Zs.Provider, { value: { queryClient: t }, children: /* @__PURE__ */ k(gf, { client: t, children: e }) });
|
|
1863
1863
|
}, be = {
|
|
1864
1864
|
OPEN: "Open",
|
|
@@ -2235,14 +2235,14 @@ const zn = () => Se(Zs), Tl = ({
|
|
|
2235
2235
|
}
|
|
2236
2236
|
g = !1;
|
|
2237
2237
|
}
|
|
2238
|
-
const
|
|
2239
|
-
if (i.includes(
|
|
2238
|
+
const E = s(h).join(":"), y = d ? E + ds : E, x = y + w;
|
|
2239
|
+
if (i.includes(x))
|
|
2240
2240
|
continue;
|
|
2241
|
-
i.push(
|
|
2241
|
+
i.push(x);
|
|
2242
2242
|
const v = o(w, g);
|
|
2243
|
-
for (let
|
|
2244
|
-
const
|
|
2245
|
-
i.push(y +
|
|
2243
|
+
for (let R = 0; R < v.length; ++R) {
|
|
2244
|
+
const H = v[R];
|
|
2245
|
+
i.push(y + H);
|
|
2246
2246
|
}
|
|
2247
2247
|
l = u + (l.length > 0 ? " " + l : l);
|
|
2248
2248
|
}
|
|
@@ -2294,7 +2294,7 @@ const Ce = (e) => {
|
|
|
2294
2294
|
const r = $l.exec(e);
|
|
2295
2295
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
2296
2296
|
}, Il = (e) => e === "position" || e === "percentage", Nl = (e) => e === "image" || e === "url", Ll = (e) => e === "length" || e === "size" || e === "bg-size", Ml = (e) => e === "length", dd = (e) => e === "number", hd = (e) => e === "family-name", _l = (e) => e === "shadow", pd = () => {
|
|
2297
|
-
const e = Ce("color"), t = Ce("font"), n = Ce("text"), r = Ce("font-weight"), o = Ce("tracking"), s = Ce("leading"), i = Ce("breakpoint"), a = Ce("container"), l = Ce("spacing"), c = Ce("radius"), u = Ce("shadow"), f = Ce("inset-shadow"), h = Ce("text-shadow"), d = Ce("drop-shadow"), b = Ce("blur"), m = Ce("perspective"), g = Ce("aspect"), w = Ce("ease"),
|
|
2297
|
+
const e = Ce("color"), t = Ce("font"), n = Ce("text"), r = Ce("font-weight"), o = Ce("tracking"), s = Ce("leading"), i = Ce("breakpoint"), a = Ce("container"), l = Ce("spacing"), c = Ce("radius"), u = Ce("shadow"), f = Ce("inset-shadow"), h = Ce("text-shadow"), d = Ce("drop-shadow"), b = Ce("blur"), m = Ce("perspective"), g = Ce("aspect"), w = Ce("ease"), E = Ce("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], x = () => [
|
|
2298
2298
|
"center",
|
|
2299
2299
|
"top",
|
|
2300
2300
|
"bottom",
|
|
@@ -2312,15 +2312,15 @@ const Ce = (e) => {
|
|
|
2312
2312
|
"bottom-left",
|
|
2313
2313
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
2314
2314
|
"left-bottom"
|
|
2315
|
-
], v = () => [...
|
|
2315
|
+
], v = () => [...x(), M, L], R = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", "contain", "none"], A = () => [M, L, l], W = () => [gn, "full", "auto", ...A()], G = () => [Ct, "none", "subgrid", M, L], ue = () => ["auto", {
|
|
2316
2316
|
span: ["full", Ct, M, L]
|
|
2317
|
-
}, Ct, M, L], de = () => [Ct, "auto", M, L], se = () => ["auto", "min", "max", "fr", M, L], pe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"],
|
|
2317
|
+
}, Ct, M, L], de = () => [Ct, "auto", M, L], se = () => ["auto", "min", "max", "fr", M, L], pe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Y = () => ["auto", ...A()], ne = () => [gn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...A()], O = () => [e, M, L], V = () => [...x(), Di, _i, {
|
|
2318
2318
|
position: [M, L]
|
|
2319
|
-
}],
|
|
2319
|
+
}], C = () => ["no-repeat", {
|
|
2320
2320
|
repeat: ["", "x", "y", "space", "round"]
|
|
2321
2321
|
}], P = () => ["auto", "cover", "contain", ud, ad, {
|
|
2322
2322
|
size: [M, L]
|
|
2323
|
-
}],
|
|
2323
|
+
}], B = () => [To, Vn, Gt], S = () => [
|
|
2324
2324
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2325
2325
|
"",
|
|
2326
2326
|
"none",
|
|
@@ -2328,14 +2328,14 @@ const Ce = (e) => {
|
|
|
2328
2328
|
c,
|
|
2329
2329
|
M,
|
|
2330
2330
|
L
|
|
2331
|
-
], _ = () => ["", ee, Vn, Gt], K = () => ["solid", "dashed", "dotted", "double"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"],
|
|
2331
|
+
], _ = () => ["", ee, Vn, Gt], K = () => ["solid", "dashed", "dotted", "double"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], I = () => [ee, To, Di, _i], Q = () => [
|
|
2332
2332
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2333
2333
|
"",
|
|
2334
2334
|
"none",
|
|
2335
2335
|
b,
|
|
2336
2336
|
M,
|
|
2337
2337
|
L
|
|
2338
|
-
], X = () => ["none", ee, M, L], Z = () => ["none", ee, M, L], xe = () => [ee, M, L],
|
|
2338
|
+
], X = () => ["none", ee, M, L], Z = () => ["none", ee, M, L], xe = () => [ee, M, L], $ = () => [gn, "full", ...A()];
|
|
2339
2339
|
return {
|
|
2340
2340
|
cacheSize: 500,
|
|
2341
2341
|
theme: {
|
|
@@ -2466,42 +2466,42 @@ const Ce = (e) => {
|
|
|
2466
2466
|
* @see https://tailwindcss.com/docs/overflow
|
|
2467
2467
|
*/
|
|
2468
2468
|
overflow: [{
|
|
2469
|
-
overflow:
|
|
2469
|
+
overflow: R()
|
|
2470
2470
|
}],
|
|
2471
2471
|
/**
|
|
2472
2472
|
* Overflow X
|
|
2473
2473
|
* @see https://tailwindcss.com/docs/overflow
|
|
2474
2474
|
*/
|
|
2475
2475
|
"overflow-x": [{
|
|
2476
|
-
"overflow-x":
|
|
2476
|
+
"overflow-x": R()
|
|
2477
2477
|
}],
|
|
2478
2478
|
/**
|
|
2479
2479
|
* Overflow Y
|
|
2480
2480
|
* @see https://tailwindcss.com/docs/overflow
|
|
2481
2481
|
*/
|
|
2482
2482
|
"overflow-y": [{
|
|
2483
|
-
"overflow-y":
|
|
2483
|
+
"overflow-y": R()
|
|
2484
2484
|
}],
|
|
2485
2485
|
/**
|
|
2486
2486
|
* Overscroll Behavior
|
|
2487
2487
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2488
2488
|
*/
|
|
2489
2489
|
overscroll: [{
|
|
2490
|
-
overscroll:
|
|
2490
|
+
overscroll: H()
|
|
2491
2491
|
}],
|
|
2492
2492
|
/**
|
|
2493
2493
|
* Overscroll Behavior X
|
|
2494
2494
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2495
2495
|
*/
|
|
2496
2496
|
"overscroll-x": [{
|
|
2497
|
-
"overscroll-x":
|
|
2497
|
+
"overscroll-x": H()
|
|
2498
2498
|
}],
|
|
2499
2499
|
/**
|
|
2500
2500
|
* Overscroll Behavior Y
|
|
2501
2501
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2502
2502
|
*/
|
|
2503
2503
|
"overscroll-y": [{
|
|
2504
|
-
"overscroll-y":
|
|
2504
|
+
"overscroll-y": H()
|
|
2505
2505
|
}],
|
|
2506
2506
|
/**
|
|
2507
2507
|
* Position
|
|
@@ -2513,63 +2513,63 @@ const Ce = (e) => {
|
|
|
2513
2513
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2514
2514
|
*/
|
|
2515
2515
|
inset: [{
|
|
2516
|
-
inset:
|
|
2516
|
+
inset: W()
|
|
2517
2517
|
}],
|
|
2518
2518
|
/**
|
|
2519
2519
|
* Right / Left
|
|
2520
2520
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2521
2521
|
*/
|
|
2522
2522
|
"inset-x": [{
|
|
2523
|
-
"inset-x":
|
|
2523
|
+
"inset-x": W()
|
|
2524
2524
|
}],
|
|
2525
2525
|
/**
|
|
2526
2526
|
* Top / Bottom
|
|
2527
2527
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2528
2528
|
*/
|
|
2529
2529
|
"inset-y": [{
|
|
2530
|
-
"inset-y":
|
|
2530
|
+
"inset-y": W()
|
|
2531
2531
|
}],
|
|
2532
2532
|
/**
|
|
2533
2533
|
* Start
|
|
2534
2534
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2535
2535
|
*/
|
|
2536
2536
|
start: [{
|
|
2537
|
-
start:
|
|
2537
|
+
start: W()
|
|
2538
2538
|
}],
|
|
2539
2539
|
/**
|
|
2540
2540
|
* End
|
|
2541
2541
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2542
2542
|
*/
|
|
2543
2543
|
end: [{
|
|
2544
|
-
end:
|
|
2544
|
+
end: W()
|
|
2545
2545
|
}],
|
|
2546
2546
|
/**
|
|
2547
2547
|
* Top
|
|
2548
2548
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2549
2549
|
*/
|
|
2550
2550
|
top: [{
|
|
2551
|
-
top:
|
|
2551
|
+
top: W()
|
|
2552
2552
|
}],
|
|
2553
2553
|
/**
|
|
2554
2554
|
* Right
|
|
2555
2555
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2556
2556
|
*/
|
|
2557
2557
|
right: [{
|
|
2558
|
-
right:
|
|
2558
|
+
right: W()
|
|
2559
2559
|
}],
|
|
2560
2560
|
/**
|
|
2561
2561
|
* Bottom
|
|
2562
2562
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2563
2563
|
*/
|
|
2564
2564
|
bottom: [{
|
|
2565
|
-
bottom:
|
|
2565
|
+
bottom: W()
|
|
2566
2566
|
}],
|
|
2567
2567
|
/**
|
|
2568
2568
|
* Left
|
|
2569
2569
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2570
2570
|
*/
|
|
2571
2571
|
left: [{
|
|
2572
|
-
left:
|
|
2572
|
+
left: W()
|
|
2573
2573
|
}],
|
|
2574
2574
|
/**
|
|
2575
2575
|
* Visibility
|
|
@@ -2647,7 +2647,7 @@ const Ce = (e) => {
|
|
|
2647
2647
|
* @see https://tailwindcss.com/docs/grid-column
|
|
2648
2648
|
*/
|
|
2649
2649
|
"col-start-end": [{
|
|
2650
|
-
col:
|
|
2650
|
+
col: ue()
|
|
2651
2651
|
}],
|
|
2652
2652
|
/**
|
|
2653
2653
|
* Grid Column Start
|
|
@@ -2675,7 +2675,7 @@ const Ce = (e) => {
|
|
|
2675
2675
|
* @see https://tailwindcss.com/docs/grid-row
|
|
2676
2676
|
*/
|
|
2677
2677
|
"row-start-end": [{
|
|
2678
|
-
row:
|
|
2678
|
+
row: ue()
|
|
2679
2679
|
}],
|
|
2680
2680
|
/**
|
|
2681
2681
|
* Grid Row Start
|
|
@@ -2745,14 +2745,14 @@ const Ce = (e) => {
|
|
|
2745
2745
|
* @see https://tailwindcss.com/docs/justify-items
|
|
2746
2746
|
*/
|
|
2747
2747
|
"justify-items": [{
|
|
2748
|
-
"justify-items": [...
|
|
2748
|
+
"justify-items": [...q(), "normal"]
|
|
2749
2749
|
}],
|
|
2750
2750
|
/**
|
|
2751
2751
|
* Justify Self
|
|
2752
2752
|
* @see https://tailwindcss.com/docs/justify-self
|
|
2753
2753
|
*/
|
|
2754
2754
|
"justify-self": [{
|
|
2755
|
-
"justify-self": ["auto", ...
|
|
2755
|
+
"justify-self": ["auto", ...q()]
|
|
2756
2756
|
}],
|
|
2757
2757
|
/**
|
|
2758
2758
|
* Align Content
|
|
@@ -2766,7 +2766,7 @@ const Ce = (e) => {
|
|
|
2766
2766
|
* @see https://tailwindcss.com/docs/align-items
|
|
2767
2767
|
*/
|
|
2768
2768
|
"align-items": [{
|
|
2769
|
-
items: [...
|
|
2769
|
+
items: [...q(), {
|
|
2770
2770
|
baseline: ["", "last"]
|
|
2771
2771
|
}]
|
|
2772
2772
|
}],
|
|
@@ -2775,7 +2775,7 @@ const Ce = (e) => {
|
|
|
2775
2775
|
* @see https://tailwindcss.com/docs/align-self
|
|
2776
2776
|
*/
|
|
2777
2777
|
"align-self": [{
|
|
2778
|
-
self: ["auto", ...
|
|
2778
|
+
self: ["auto", ...q(), {
|
|
2779
2779
|
baseline: ["", "last"]
|
|
2780
2780
|
}]
|
|
2781
2781
|
}],
|
|
@@ -2791,14 +2791,14 @@ const Ce = (e) => {
|
|
|
2791
2791
|
* @see https://tailwindcss.com/docs/place-items
|
|
2792
2792
|
*/
|
|
2793
2793
|
"place-items": [{
|
|
2794
|
-
"place-items": [...
|
|
2794
|
+
"place-items": [...q(), "baseline"]
|
|
2795
2795
|
}],
|
|
2796
2796
|
/**
|
|
2797
2797
|
* Place Self
|
|
2798
2798
|
* @see https://tailwindcss.com/docs/place-self
|
|
2799
2799
|
*/
|
|
2800
2800
|
"place-self": [{
|
|
2801
|
-
"place-self": ["auto", ...
|
|
2801
|
+
"place-self": ["auto", ...q()]
|
|
2802
2802
|
}],
|
|
2803
2803
|
// Spacing
|
|
2804
2804
|
/**
|
|
@@ -3294,7 +3294,7 @@ const Ce = (e) => {
|
|
|
3294
3294
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
3295
3295
|
*/
|
|
3296
3296
|
"bg-repeat": [{
|
|
3297
|
-
bg:
|
|
3297
|
+
bg: C()
|
|
3298
3298
|
}],
|
|
3299
3299
|
/**
|
|
3300
3300
|
* Background Size
|
|
@@ -3328,21 +3328,21 @@ const Ce = (e) => {
|
|
|
3328
3328
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3329
3329
|
*/
|
|
3330
3330
|
"gradient-from-pos": [{
|
|
3331
|
-
from:
|
|
3331
|
+
from: B()
|
|
3332
3332
|
}],
|
|
3333
3333
|
/**
|
|
3334
3334
|
* Gradient Color Stops Via Position
|
|
3335
3335
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3336
3336
|
*/
|
|
3337
3337
|
"gradient-via-pos": [{
|
|
3338
|
-
via:
|
|
3338
|
+
via: B()
|
|
3339
3339
|
}],
|
|
3340
3340
|
/**
|
|
3341
3341
|
* Gradient Color Stops To Position
|
|
3342
3342
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3343
3343
|
*/
|
|
3344
3344
|
"gradient-to-pos": [{
|
|
3345
|
-
to:
|
|
3345
|
+
to: B()
|
|
3346
3346
|
}],
|
|
3347
3347
|
/**
|
|
3348
3348
|
* Gradient Color Stops From
|
|
@@ -3820,10 +3820,10 @@ const Ce = (e) => {
|
|
|
3820
3820
|
"mask-linear": [ee]
|
|
3821
3821
|
}],
|
|
3822
3822
|
"mask-image-linear-from-pos": [{
|
|
3823
|
-
"mask-linear-from":
|
|
3823
|
+
"mask-linear-from": I()
|
|
3824
3824
|
}],
|
|
3825
3825
|
"mask-image-linear-to-pos": [{
|
|
3826
|
-
"mask-linear-to":
|
|
3826
|
+
"mask-linear-to": I()
|
|
3827
3827
|
}],
|
|
3828
3828
|
"mask-image-linear-from-color": [{
|
|
3829
3829
|
"mask-linear-from": O()
|
|
@@ -3832,10 +3832,10 @@ const Ce = (e) => {
|
|
|
3832
3832
|
"mask-linear-to": O()
|
|
3833
3833
|
}],
|
|
3834
3834
|
"mask-image-t-from-pos": [{
|
|
3835
|
-
"mask-t-from":
|
|
3835
|
+
"mask-t-from": I()
|
|
3836
3836
|
}],
|
|
3837
3837
|
"mask-image-t-to-pos": [{
|
|
3838
|
-
"mask-t-to":
|
|
3838
|
+
"mask-t-to": I()
|
|
3839
3839
|
}],
|
|
3840
3840
|
"mask-image-t-from-color": [{
|
|
3841
3841
|
"mask-t-from": O()
|
|
@@ -3844,10 +3844,10 @@ const Ce = (e) => {
|
|
|
3844
3844
|
"mask-t-to": O()
|
|
3845
3845
|
}],
|
|
3846
3846
|
"mask-image-r-from-pos": [{
|
|
3847
|
-
"mask-r-from":
|
|
3847
|
+
"mask-r-from": I()
|
|
3848
3848
|
}],
|
|
3849
3849
|
"mask-image-r-to-pos": [{
|
|
3850
|
-
"mask-r-to":
|
|
3850
|
+
"mask-r-to": I()
|
|
3851
3851
|
}],
|
|
3852
3852
|
"mask-image-r-from-color": [{
|
|
3853
3853
|
"mask-r-from": O()
|
|
@@ -3856,10 +3856,10 @@ const Ce = (e) => {
|
|
|
3856
3856
|
"mask-r-to": O()
|
|
3857
3857
|
}],
|
|
3858
3858
|
"mask-image-b-from-pos": [{
|
|
3859
|
-
"mask-b-from":
|
|
3859
|
+
"mask-b-from": I()
|
|
3860
3860
|
}],
|
|
3861
3861
|
"mask-image-b-to-pos": [{
|
|
3862
|
-
"mask-b-to":
|
|
3862
|
+
"mask-b-to": I()
|
|
3863
3863
|
}],
|
|
3864
3864
|
"mask-image-b-from-color": [{
|
|
3865
3865
|
"mask-b-from": O()
|
|
@@ -3868,10 +3868,10 @@ const Ce = (e) => {
|
|
|
3868
3868
|
"mask-b-to": O()
|
|
3869
3869
|
}],
|
|
3870
3870
|
"mask-image-l-from-pos": [{
|
|
3871
|
-
"mask-l-from":
|
|
3871
|
+
"mask-l-from": I()
|
|
3872
3872
|
}],
|
|
3873
3873
|
"mask-image-l-to-pos": [{
|
|
3874
|
-
"mask-l-to":
|
|
3874
|
+
"mask-l-to": I()
|
|
3875
3875
|
}],
|
|
3876
3876
|
"mask-image-l-from-color": [{
|
|
3877
3877
|
"mask-l-from": O()
|
|
@@ -3880,10 +3880,10 @@ const Ce = (e) => {
|
|
|
3880
3880
|
"mask-l-to": O()
|
|
3881
3881
|
}],
|
|
3882
3882
|
"mask-image-x-from-pos": [{
|
|
3883
|
-
"mask-x-from":
|
|
3883
|
+
"mask-x-from": I()
|
|
3884
3884
|
}],
|
|
3885
3885
|
"mask-image-x-to-pos": [{
|
|
3886
|
-
"mask-x-to":
|
|
3886
|
+
"mask-x-to": I()
|
|
3887
3887
|
}],
|
|
3888
3888
|
"mask-image-x-from-color": [{
|
|
3889
3889
|
"mask-x-from": O()
|
|
@@ -3892,10 +3892,10 @@ const Ce = (e) => {
|
|
|
3892
3892
|
"mask-x-to": O()
|
|
3893
3893
|
}],
|
|
3894
3894
|
"mask-image-y-from-pos": [{
|
|
3895
|
-
"mask-y-from":
|
|
3895
|
+
"mask-y-from": I()
|
|
3896
3896
|
}],
|
|
3897
3897
|
"mask-image-y-to-pos": [{
|
|
3898
|
-
"mask-y-to":
|
|
3898
|
+
"mask-y-to": I()
|
|
3899
3899
|
}],
|
|
3900
3900
|
"mask-image-y-from-color": [{
|
|
3901
3901
|
"mask-y-from": O()
|
|
@@ -3907,10 +3907,10 @@ const Ce = (e) => {
|
|
|
3907
3907
|
"mask-radial": [M, L]
|
|
3908
3908
|
}],
|
|
3909
3909
|
"mask-image-radial-from-pos": [{
|
|
3910
|
-
"mask-radial-from":
|
|
3910
|
+
"mask-radial-from": I()
|
|
3911
3911
|
}],
|
|
3912
3912
|
"mask-image-radial-to-pos": [{
|
|
3913
|
-
"mask-radial-to":
|
|
3913
|
+
"mask-radial-to": I()
|
|
3914
3914
|
}],
|
|
3915
3915
|
"mask-image-radial-from-color": [{
|
|
3916
3916
|
"mask-radial-from": O()
|
|
@@ -3928,16 +3928,16 @@ const Ce = (e) => {
|
|
|
3928
3928
|
}]
|
|
3929
3929
|
}],
|
|
3930
3930
|
"mask-image-radial-pos": [{
|
|
3931
|
-
"mask-radial-at":
|
|
3931
|
+
"mask-radial-at": x()
|
|
3932
3932
|
}],
|
|
3933
3933
|
"mask-image-conic-pos": [{
|
|
3934
3934
|
"mask-conic": [ee]
|
|
3935
3935
|
}],
|
|
3936
3936
|
"mask-image-conic-from-pos": [{
|
|
3937
|
-
"mask-conic-from":
|
|
3937
|
+
"mask-conic-from": I()
|
|
3938
3938
|
}],
|
|
3939
3939
|
"mask-image-conic-to-pos": [{
|
|
3940
|
-
"mask-conic-to":
|
|
3940
|
+
"mask-conic-to": I()
|
|
3941
3941
|
}],
|
|
3942
3942
|
"mask-image-conic-from-color": [{
|
|
3943
3943
|
"mask-conic-from": O()
|
|
@@ -3971,7 +3971,7 @@ const Ce = (e) => {
|
|
|
3971
3971
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
3972
3972
|
*/
|
|
3973
3973
|
"mask-repeat": [{
|
|
3974
|
-
mask:
|
|
3974
|
+
mask: C()
|
|
3975
3975
|
}],
|
|
3976
3976
|
/**
|
|
3977
3977
|
* Mask Size
|
|
@@ -4251,7 +4251,7 @@ const Ce = (e) => {
|
|
|
4251
4251
|
* @see https://tailwindcss.com/docs/animation
|
|
4252
4252
|
*/
|
|
4253
4253
|
animate: [{
|
|
4254
|
-
animate: ["none",
|
|
4254
|
+
animate: ["none", E, M, L]
|
|
4255
4255
|
}],
|
|
4256
4256
|
// ------------------
|
|
4257
4257
|
// --- Transforms ---
|
|
@@ -4385,28 +4385,28 @@ const Ce = (e) => {
|
|
|
4385
4385
|
* @see https://tailwindcss.com/docs/translate
|
|
4386
4386
|
*/
|
|
4387
4387
|
translate: [{
|
|
4388
|
-
translate:
|
|
4388
|
+
translate: $()
|
|
4389
4389
|
}],
|
|
4390
4390
|
/**
|
|
4391
4391
|
* Translate X
|
|
4392
4392
|
* @see https://tailwindcss.com/docs/translate
|
|
4393
4393
|
*/
|
|
4394
4394
|
"translate-x": [{
|
|
4395
|
-
"translate-x":
|
|
4395
|
+
"translate-x": $()
|
|
4396
4396
|
}],
|
|
4397
4397
|
/**
|
|
4398
4398
|
* Translate Y
|
|
4399
4399
|
* @see https://tailwindcss.com/docs/translate
|
|
4400
4400
|
*/
|
|
4401
4401
|
"translate-y": [{
|
|
4402
|
-
"translate-y":
|
|
4402
|
+
"translate-y": $()
|
|
4403
4403
|
}],
|
|
4404
4404
|
/**
|
|
4405
4405
|
* Translate Z
|
|
4406
4406
|
* @see https://tailwindcss.com/docs/translate
|
|
4407
4407
|
*/
|
|
4408
4408
|
"translate-z": [{
|
|
4409
|
-
"translate-z":
|
|
4409
|
+
"translate-z": $()
|
|
4410
4410
|
}],
|
|
4411
4411
|
/**
|
|
4412
4412
|
* Translate None
|
|
@@ -5127,7 +5127,7 @@ function Ld() {
|
|
|
5127
5127
|
};
|
|
5128
5128
|
}
|
|
5129
5129
|
function Md(e) {
|
|
5130
|
-
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [s, i] =
|
|
5130
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [s, i] = ce(!1), a = oe({
|
|
5131
5131
|
isHovered: !1,
|
|
5132
5132
|
ignoreEmulatedMouseEvents: !1,
|
|
5133
5133
|
pointerType: "",
|
|
@@ -5139,8 +5139,8 @@ function Md(e) {
|
|
|
5139
5139
|
if (a.pointerType = g, o || g === "touch" || a.isHovered || !m.currentTarget.contains(m.target)) return;
|
|
5140
5140
|
a.isHovered = !0;
|
|
5141
5141
|
let w = m.currentTarget;
|
|
5142
|
-
a.target = w, l(Vt(m.target), "pointerover", (
|
|
5143
|
-
a.isHovered && a.target && !zl(a.target,
|
|
5142
|
+
a.target = w, l(Vt(m.target), "pointerover", (E) => {
|
|
5143
|
+
a.isHovered && a.target && !zl(a.target, E.target) && d(E, E.pointerType);
|
|
5144
5144
|
}, {
|
|
5145
5145
|
capture: !0
|
|
5146
5146
|
}), t && t({
|
|
@@ -5194,7 +5194,7 @@ function _d(e = {}) {
|
|
|
5194
5194
|
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = oe({
|
|
5195
5195
|
isFocused: !1,
|
|
5196
5196
|
isFocusVisible: t || Kl()
|
|
5197
|
-
}), [s, i] =
|
|
5197
|
+
}), [s, i] = ce(!1), [a, l] = ce(() => o.current.isFocused && o.current.isFocusVisible), c = we(() => l(o.current.isFocused && o.current.isFocusVisible), []), u = we((d) => {
|
|
5198
5198
|
o.current.isFocused = d, i(d), c();
|
|
5199
5199
|
}, [
|
|
5200
5200
|
c
|
|
@@ -5293,7 +5293,7 @@ function wt() {
|
|
|
5293
5293
|
return t;
|
|
5294
5294
|
}
|
|
5295
5295
|
function si() {
|
|
5296
|
-
let [e] =
|
|
5296
|
+
let [e] = ce(wt);
|
|
5297
5297
|
return Ee(() => () => e.dispose(), [e]), e;
|
|
5298
5298
|
}
|
|
5299
5299
|
let Pe = (e, t) => {
|
|
@@ -5305,7 +5305,7 @@ function pn(e) {
|
|
|
5305
5305
|
t.current = e;
|
|
5306
5306
|
}, [e]), t;
|
|
5307
5307
|
}
|
|
5308
|
-
let
|
|
5308
|
+
let fe = function(e) {
|
|
5309
5309
|
let t = pn(e);
|
|
5310
5310
|
return j.useCallback((...n) => t.current(...n), [t]);
|
|
5311
5311
|
}, Ql = Ne(void 0);
|
|
@@ -5442,7 +5442,7 @@ function Yd(e, t) {
|
|
|
5442
5442
|
}
|
|
5443
5443
|
let Vr = ke(Yd), Kd = Ne(null);
|
|
5444
5444
|
function Qd(e) {
|
|
5445
|
-
let [t, n] =
|
|
5445
|
+
let [t, n] = ce(null);
|
|
5446
5446
|
return j.createElement(Kd.Provider, { value: { target: t } }, e.children, j.createElement(Vr, { features: lr.Hidden, ref: n }));
|
|
5447
5447
|
}
|
|
5448
5448
|
let Jl = Ne(void 0);
|
|
@@ -5488,7 +5488,7 @@ function Xe(...e) {
|
|
|
5488
5488
|
Ee(() => {
|
|
5489
5489
|
t.current = e;
|
|
5490
5490
|
}, [e]);
|
|
5491
|
-
let n =
|
|
5491
|
+
let n = fe((r) => {
|
|
5492
5492
|
for (let o of t.current) o != null && (typeof o == "function" ? o(r) : o.current = r);
|
|
5493
5493
|
});
|
|
5494
5494
|
return e.every((r) => r == null || (r == null ? void 0 : r[nc])) ? void 0 : n;
|
|
@@ -5508,9 +5508,9 @@ function nh() {
|
|
|
5508
5508
|
return (t = (e = Se(ro)) == null ? void 0 : e.value) != null ? t : void 0;
|
|
5509
5509
|
}
|
|
5510
5510
|
function oc() {
|
|
5511
|
-
let [e, t] =
|
|
5511
|
+
let [e, t] = ce([]);
|
|
5512
5512
|
return [e.length > 0 ? e.join(" ") : void 0, he(() => function(n) {
|
|
5513
|
-
let r =
|
|
5513
|
+
let r = fe((s) => (t((i) => [...i, s]), () => t((i) => {
|
|
5514
5514
|
let a = i.slice(), l = a.indexOf(s);
|
|
5515
5515
|
return l !== -1 && a.splice(l, 1), a;
|
|
5516
5516
|
}))), o = he(() => ({ register: r, slot: n.slot, name: n.name, props: n.props, value: n.value }), [r, n.slot, n.name, n.props, n.value]);
|
|
@@ -5542,9 +5542,9 @@ function lc(e) {
|
|
|
5542
5542
|
return ((r = void 0) != null ? r : 0) > 0 ? [o, ...e].filter(Boolean).join(" ") : o;
|
|
5543
5543
|
}
|
|
5544
5544
|
function ih({ inherit: e = !1 } = {}) {
|
|
5545
|
-
let t = lc(), [n, r] =
|
|
5545
|
+
let t = lc(), [n, r] = ce([]), o = e ? [t, ...n].filter(Boolean) : n;
|
|
5546
5546
|
return [o.length > 0 ? o.join(" ") : void 0, he(() => function(s) {
|
|
5547
|
-
let i =
|
|
5547
|
+
let i = fe((l) => (r((c) => [...c, l]), () => r((c) => {
|
|
5548
5548
|
let u = c.slice(), f = u.indexOf(l);
|
|
5549
5549
|
return f !== -1 && u.splice(f, 1), u;
|
|
5550
5550
|
}))), a = he(() => ({ register: i, slot: s.slot, name: s.name, props: s.props, value: s.value }), [i, s.slot, s.name, s.props, s.value]);
|
|
@@ -5556,16 +5556,16 @@ function lh(e, t) {
|
|
|
5556
5556
|
var n;
|
|
5557
5557
|
let r = qt(), o = ac(), s = Zl(), i = no(), { id: a = `headlessui-label-${r}`, htmlFor: l = s ?? ((n = o.props) == null ? void 0 : n.htmlFor), passive: c = !1, ...u } = e, f = Xe(t);
|
|
5558
5558
|
Pe(() => o.register(a), [a, o.register]);
|
|
5559
|
-
let h =
|
|
5559
|
+
let h = fe((g) => {
|
|
5560
5560
|
let w = g.currentTarget;
|
|
5561
5561
|
if (!(g.target !== g.currentTarget && eh(g.target)) && (zi(w) && g.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(g), zi(w))) {
|
|
5562
|
-
let
|
|
5563
|
-
if (
|
|
5564
|
-
let y =
|
|
5562
|
+
let E = document.getElementById(w.htmlFor);
|
|
5563
|
+
if (E) {
|
|
5564
|
+
let y = E.getAttribute("disabled");
|
|
5565
5565
|
if (y === "true" || y === "") return;
|
|
5566
|
-
let
|
|
5567
|
-
if (
|
|
5568
|
-
(tc(
|
|
5566
|
+
let x = E.getAttribute("aria-disabled");
|
|
5567
|
+
if (x === "true" || x === "") return;
|
|
5568
|
+
(tc(E) && (E.type === "file" || E.type === "radio" || E.type === "checkbox") || E.role === "radio" || E.role === "checkbox" || E.role === "switch") && E.click(), E.focus({ preventScroll: !0 });
|
|
5569
5569
|
}
|
|
5570
5570
|
}
|
|
5571
5571
|
}), d = i || !1, b = he(() => ({ ...o.slot, disabled: d }), [o.slot, d]), m = { ref: f, ...o.props, id: a, htmlFor: l, onClick: h };
|
|
@@ -5697,24 +5697,24 @@ function Ch() {
|
|
|
5697
5697
|
function() {
|
|
5698
5698
|
function g(v) {
|
|
5699
5699
|
if (!w) {
|
|
5700
|
-
if (w = !0,
|
|
5701
|
-
var
|
|
5702
|
-
if (h(
|
|
5703
|
-
return y =
|
|
5700
|
+
if (w = !0, E = v, v = f(v), h !== void 0 && b.hasValue) {
|
|
5701
|
+
var R = b.value;
|
|
5702
|
+
if (h(R, v))
|
|
5703
|
+
return y = R;
|
|
5704
5704
|
}
|
|
5705
5705
|
return y = v;
|
|
5706
5706
|
}
|
|
5707
|
-
if (
|
|
5708
|
-
var
|
|
5709
|
-
return h !== void 0 && h(
|
|
5707
|
+
if (R = y, n(E, v)) return R;
|
|
5708
|
+
var H = f(v);
|
|
5709
|
+
return h !== void 0 && h(R, H) ? (E = v, R) : (E = v, y = H);
|
|
5710
5710
|
}
|
|
5711
|
-
var w = !1,
|
|
5711
|
+
var w = !1, E, y, x = u === void 0 ? null : u;
|
|
5712
5712
|
return [
|
|
5713
5713
|
function() {
|
|
5714
5714
|
return g(c());
|
|
5715
5715
|
},
|
|
5716
|
-
|
|
5717
|
-
return g(
|
|
5716
|
+
x === null ? void 0 : function() {
|
|
5717
|
+
return g(x());
|
|
5718
5718
|
}
|
|
5719
5719
|
];
|
|
5720
5720
|
},
|
|
@@ -5757,25 +5757,25 @@ function Th() {
|
|
|
5757
5757
|
function() {
|
|
5758
5758
|
function g(v) {
|
|
5759
5759
|
if (!w) {
|
|
5760
|
-
if (w = !0,
|
|
5761
|
-
var
|
|
5762
|
-
if (h(
|
|
5763
|
-
return y =
|
|
5760
|
+
if (w = !0, E = v, v = f(v), h !== void 0 && b.hasValue) {
|
|
5761
|
+
var R = b.value;
|
|
5762
|
+
if (h(R, v))
|
|
5763
|
+
return y = R;
|
|
5764
5764
|
}
|
|
5765
5765
|
return y = v;
|
|
5766
5766
|
}
|
|
5767
|
-
if (
|
|
5768
|
-
return
|
|
5769
|
-
var
|
|
5770
|
-
return h !== void 0 && h(
|
|
5767
|
+
if (R = y, n(E, v))
|
|
5768
|
+
return R;
|
|
5769
|
+
var H = f(v);
|
|
5770
|
+
return h !== void 0 && h(R, H) ? (E = v, R) : (E = v, y = H);
|
|
5771
5771
|
}
|
|
5772
|
-
var w = !1,
|
|
5772
|
+
var w = !1, E, y, x = u === void 0 ? null : u;
|
|
5773
5773
|
return [
|
|
5774
5774
|
function() {
|
|
5775
5775
|
return g(c());
|
|
5776
5776
|
},
|
|
5777
|
-
|
|
5778
|
-
return g(
|
|
5777
|
+
x === null ? void 0 : function() {
|
|
5778
|
+
return g(x());
|
|
5779
5779
|
}
|
|
5780
5780
|
];
|
|
5781
5781
|
},
|
|
@@ -5797,7 +5797,7 @@ function Oh() {
|
|
|
5797
5797
|
}
|
|
5798
5798
|
var Ph = Oh();
|
|
5799
5799
|
function pc(e, t, n = fc) {
|
|
5800
|
-
return Ph.useSyncExternalStoreWithSelector(
|
|
5800
|
+
return Ph.useSyncExternalStoreWithSelector(fe((r) => e.subscribe(Sh, r)), fe(() => e.state), fe(() => e.state), fe(t), n);
|
|
5801
5801
|
}
|
|
5802
5802
|
function Sh(e) {
|
|
5803
5803
|
return e;
|
|
@@ -6118,7 +6118,7 @@ function Yh(e, t, n = () => [document.body]) {
|
|
|
6118
6118
|
});
|
|
6119
6119
|
}
|
|
6120
6120
|
function Kh(e = 0) {
|
|
6121
|
-
let [t, n] =
|
|
6121
|
+
let [t, n] = ce(e), r = we((l) => n(l), [t]), o = we((l) => n((c) => c | l), [t]), s = we((l) => (t & l) === l, [t]), i = we((l) => n((c) => c & ~l), [n]), a = we((l) => n((c) => c ^ l), [n]);
|
|
6122
6122
|
return { flags: t, setFlag: r, addFlag: o, hasFlag: s, removeFlag: i, toggleFlag: a };
|
|
6123
6123
|
}
|
|
6124
6124
|
var Xi, Ji;
|
|
@@ -6133,7 +6133,7 @@ function Xh(e) {
|
|
|
6133
6133
|
return t;
|
|
6134
6134
|
}
|
|
6135
6135
|
function Jh(e, t, n, r) {
|
|
6136
|
-
let [o, s] =
|
|
6136
|
+
let [o, s] = ce(n), { hasFlag: i, addFlag: a, removeFlag: l } = Kh(e && o ? 3 : 0), c = oe(!1), u = oe(!1), f = si();
|
|
6137
6137
|
return Pe(() => {
|
|
6138
6138
|
var h;
|
|
6139
6139
|
if (e) {
|
|
@@ -6182,7 +6182,7 @@ function tp(e, { inFlight: t, prepare: n }) {
|
|
|
6182
6182
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = r;
|
|
6183
6183
|
}
|
|
6184
6184
|
function ii(e, t) {
|
|
6185
|
-
let n = oe([]), r =
|
|
6185
|
+
let n = oe([]), r = fe(e);
|
|
6186
6186
|
Ee(() => {
|
|
6187
6187
|
let o = [...n.current];
|
|
6188
6188
|
for (let [s, i] of t.entries()) if (n.current[s] !== i) {
|
|
@@ -6408,9 +6408,9 @@ const lp = async (e, t, n) => {
|
|
|
6408
6408
|
name: g,
|
|
6409
6409
|
fn: w
|
|
6410
6410
|
} = a[m], {
|
|
6411
|
-
x,
|
|
6411
|
+
x: E,
|
|
6412
6412
|
y,
|
|
6413
|
-
data:
|
|
6413
|
+
data: x,
|
|
6414
6414
|
reset: v
|
|
6415
6415
|
} = await w({
|
|
6416
6416
|
x: u,
|
|
@@ -6426,11 +6426,11 @@ const lp = async (e, t, n) => {
|
|
|
6426
6426
|
floating: t
|
|
6427
6427
|
}
|
|
6428
6428
|
});
|
|
6429
|
-
u =
|
|
6429
|
+
u = E ?? u, f = y ?? f, d = {
|
|
6430
6430
|
...d,
|
|
6431
6431
|
[g]: {
|
|
6432
6432
|
...d[g],
|
|
6433
|
-
...
|
|
6433
|
+
...x
|
|
6434
6434
|
}
|
|
6435
6435
|
}, v && b <= 50 && (b++, typeof v == "object" && (v.placement && (h = v.placement), v.rects && (c = v.rects === !0 ? await i.getElementRects({
|
|
6436
6436
|
reference: e,
|
|
@@ -6499,8 +6499,8 @@ function cr(e, t, n, r) {
|
|
|
6499
6499
|
const h = De(s), d = r && ye(r) ? De(r) : r;
|
|
6500
6500
|
let b = h, m = Cs(b);
|
|
6501
6501
|
for (; m && r && d !== b; ) {
|
|
6502
|
-
const g = Cn(m), w = m.getBoundingClientRect(),
|
|
6503
|
-
l *= g.x, c *= g.y, u *= g.x, f *= g.y, l += y, c +=
|
|
6502
|
+
const g = Cn(m), w = m.getBoundingClientRect(), E = We(m), y = w.left + (m.clientLeft + parseFloat(E.paddingLeft)) * g.x, x = w.top + (m.clientTop + parseFloat(E.paddingTop)) * g.y;
|
|
6503
|
+
l *= g.x, c *= g.y, u *= g.x, f *= g.y, l += y, c += x, b = De(m), m = Cs(b);
|
|
6504
6504
|
}
|
|
6505
6505
|
}
|
|
6506
6506
|
return Cc({
|
|
@@ -6786,7 +6786,7 @@ function ra(e, t) {
|
|
|
6786
6786
|
return Math.round(t * n) / n;
|
|
6787
6787
|
}
|
|
6788
6788
|
function No(e) {
|
|
6789
|
-
const t =
|
|
6789
|
+
const t = F.useRef(e);
|
|
6790
6790
|
return _r(() => {
|
|
6791
6791
|
t.current = e;
|
|
6792
6792
|
}), t;
|
|
@@ -6805,29 +6805,29 @@ function Pp(e) {
|
|
|
6805
6805
|
transform: a = !0,
|
|
6806
6806
|
whileElementsMounted: l,
|
|
6807
6807
|
open: c
|
|
6808
|
-
} = e, [u, f] =
|
|
6808
|
+
} = e, [u, f] = F.useState({
|
|
6809
6809
|
x: 0,
|
|
6810
6810
|
y: 0,
|
|
6811
6811
|
strategy: n,
|
|
6812
6812
|
placement: t,
|
|
6813
6813
|
middlewareData: {},
|
|
6814
6814
|
isPositioned: !1
|
|
6815
|
-
}), [h, d] =
|
|
6815
|
+
}), [h, d] = F.useState(r);
|
|
6816
6816
|
Kr(h, r) || d(r);
|
|
6817
|
-
const [b, m] =
|
|
6818
|
-
O !==
|
|
6819
|
-
}, []), y =
|
|
6820
|
-
O !==
|
|
6821
|
-
}, []),
|
|
6822
|
-
if (!
|
|
6817
|
+
const [b, m] = F.useState(null), [g, w] = F.useState(null), E = F.useCallback((O) => {
|
|
6818
|
+
O !== R.current && (R.current = O, m(O));
|
|
6819
|
+
}, []), y = F.useCallback((O) => {
|
|
6820
|
+
O !== H.current && (H.current = O, w(O));
|
|
6821
|
+
}, []), x = s || b, v = i || g, R = F.useRef(null), H = F.useRef(null), A = F.useRef(u), W = l != null, G = No(l), ue = No(o), de = No(c), se = F.useCallback(() => {
|
|
6822
|
+
if (!R.current || !H.current)
|
|
6823
6823
|
return;
|
|
6824
6824
|
const O = {
|
|
6825
6825
|
placement: t,
|
|
6826
6826
|
strategy: n,
|
|
6827
6827
|
middleware: h
|
|
6828
6828
|
};
|
|
6829
|
-
|
|
6830
|
-
const
|
|
6829
|
+
ue.current && (O.platform = ue.current), Cp(R.current, H.current, O).then((V) => {
|
|
6830
|
+
const C = {
|
|
6831
6831
|
...V,
|
|
6832
6832
|
// The floating element's position may be recomputed while it's closed
|
|
6833
6833
|
// but still mounted (such as when transitioning out). To ensure
|
|
@@ -6835,36 +6835,36 @@ function Pp(e) {
|
|
|
6835
6835
|
// setting it to `true` when `open === false` (must be specified).
|
|
6836
6836
|
isPositioned: de.current !== !1
|
|
6837
6837
|
};
|
|
6838
|
-
pe.current && !Kr(A.current,
|
|
6839
|
-
f(
|
|
6838
|
+
pe.current && !Kr(A.current, C) && (A.current = C, Gu.flushSync(() => {
|
|
6839
|
+
f(C);
|
|
6840
6840
|
}));
|
|
6841
6841
|
});
|
|
6842
|
-
}, [h, t, n,
|
|
6842
|
+
}, [h, t, n, ue, de]);
|
|
6843
6843
|
_r(() => {
|
|
6844
6844
|
c === !1 && A.current.isPositioned && (A.current.isPositioned = !1, f((O) => ({
|
|
6845
6845
|
...O,
|
|
6846
6846
|
isPositioned: !1
|
|
6847
6847
|
})));
|
|
6848
6848
|
}, [c]);
|
|
6849
|
-
const pe =
|
|
6849
|
+
const pe = F.useRef(!1);
|
|
6850
6850
|
_r(() => (pe.current = !0, () => {
|
|
6851
6851
|
pe.current = !1;
|
|
6852
6852
|
}), []), _r(() => {
|
|
6853
|
-
if (
|
|
6853
|
+
if (x && (R.current = x), v && (H.current = v), x && v) {
|
|
6854
6854
|
if (G.current)
|
|
6855
|
-
return G.current(
|
|
6855
|
+
return G.current(x, v, se);
|
|
6856
6856
|
se();
|
|
6857
6857
|
}
|
|
6858
|
-
}, [
|
|
6859
|
-
const
|
|
6860
|
-
reference:
|
|
6861
|
-
floating:
|
|
6862
|
-
setReference:
|
|
6858
|
+
}, [x, v, se, G, W]);
|
|
6859
|
+
const q = F.useMemo(() => ({
|
|
6860
|
+
reference: R,
|
|
6861
|
+
floating: H,
|
|
6862
|
+
setReference: E,
|
|
6863
6863
|
setFloating: y
|
|
6864
|
-
}), [
|
|
6865
|
-
reference:
|
|
6864
|
+
}), [E, y]), Y = F.useMemo(() => ({
|
|
6865
|
+
reference: x,
|
|
6866
6866
|
floating: v
|
|
6867
|
-
}), [
|
|
6867
|
+
}), [x, v]), ne = F.useMemo(() => {
|
|
6868
6868
|
const O = {
|
|
6869
6869
|
position: n,
|
|
6870
6870
|
left: 0,
|
|
@@ -6872,26 +6872,26 @@ function Pp(e) {
|
|
|
6872
6872
|
};
|
|
6873
6873
|
if (!Y.floating)
|
|
6874
6874
|
return O;
|
|
6875
|
-
const V = ra(Y.floating, u.x),
|
|
6875
|
+
const V = ra(Y.floating, u.x), C = ra(Y.floating, u.y);
|
|
6876
6876
|
return a ? {
|
|
6877
6877
|
...O,
|
|
6878
|
-
transform: "translate(" + V + "px, " +
|
|
6878
|
+
transform: "translate(" + V + "px, " + C + "px)",
|
|
6879
6879
|
...Rc(Y.floating) >= 1.5 && {
|
|
6880
6880
|
willChange: "transform"
|
|
6881
6881
|
}
|
|
6882
6882
|
} : {
|
|
6883
6883
|
position: n,
|
|
6884
6884
|
left: V,
|
|
6885
|
-
top:
|
|
6885
|
+
top: C
|
|
6886
6886
|
};
|
|
6887
6887
|
}, [n, a, Y.floating, u.x, u.y]);
|
|
6888
|
-
return
|
|
6888
|
+
return F.useMemo(() => ({
|
|
6889
6889
|
...u,
|
|
6890
6890
|
update: se,
|
|
6891
|
-
refs:
|
|
6891
|
+
refs: q,
|
|
6892
6892
|
elements: Y,
|
|
6893
6893
|
floatingStyles: ne
|
|
6894
|
-
}), [u, se,
|
|
6894
|
+
}), [u, se, q, Y, ne]);
|
|
6895
6895
|
}
|
|
6896
6896
|
let uo = Ne(null);
|
|
6897
6897
|
uo.displayName = "OpenClosedContext";
|
|
@@ -6921,7 +6921,7 @@ Ap(() => {
|
|
|
6921
6921
|
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
6922
6922
|
});
|
|
6923
6923
|
function $c(e) {
|
|
6924
|
-
let t =
|
|
6924
|
+
let t = fe(e), n = oe(!1);
|
|
6925
6925
|
Ee(() => (n.current = !1, () => {
|
|
6926
6926
|
n.current = !0, to(() => {
|
|
6927
6927
|
n.current && t();
|
|
@@ -6930,14 +6930,14 @@ function $c(e) {
|
|
|
6930
6930
|
}
|
|
6931
6931
|
function Rp() {
|
|
6932
6932
|
let e = typeof document > "u";
|
|
6933
|
-
return "useSyncExternalStore" in
|
|
6933
|
+
return "useSyncExternalStore" in F ? ((t) => t.useSyncExternalStore)(F)(() => () => {
|
|
6934
6934
|
}, () => !1, () => !e) : !1;
|
|
6935
6935
|
}
|
|
6936
6936
|
function xr() {
|
|
6937
|
-
let e = Rp(), [t, n] =
|
|
6938
|
-
return t && ln.isHandoffComplete === !1 && n(!1),
|
|
6937
|
+
let e = Rp(), [t, n] = F.useState(ln.isHandoffComplete);
|
|
6938
|
+
return t && ln.isHandoffComplete === !1 && n(!1), F.useEffect(() => {
|
|
6939
6939
|
t !== !0 && n(!0);
|
|
6940
|
-
}, [t]),
|
|
6940
|
+
}, [t]), F.useEffect(() => ln.handoff(), []), e ? !1 : t;
|
|
6941
6941
|
}
|
|
6942
6942
|
let Fc = Ne(!1);
|
|
6943
6943
|
function $p() {
|
|
@@ -6947,7 +6947,7 @@ function oa(e) {
|
|
|
6947
6947
|
return j.createElement(Fc.Provider, { value: e.force }, e.children);
|
|
6948
6948
|
}
|
|
6949
6949
|
function Fp(e) {
|
|
6950
|
-
let t = $p(), n = Se(Nc), [r, o] =
|
|
6950
|
+
let t = $p(), n = Se(Nc), [r, o] = ce(() => {
|
|
6951
6951
|
var s;
|
|
6952
6952
|
if (!t && n !== null) return (s = n.current) != null ? s : null;
|
|
6953
6953
|
if (ln.isServer) return null;
|
|
@@ -6966,7 +6966,7 @@ function Fp(e) {
|
|
|
6966
6966
|
let Ic = Ke, Ip = ke(function(e, t) {
|
|
6967
6967
|
let { ownerDocument: n = null, ...r } = e, o = oe(null), s = Xe(th((d) => {
|
|
6968
6968
|
o.current = d;
|
|
6969
|
-
}), t), i = so(o), a = n ?? i, l = Fp(a), [c] =
|
|
6969
|
+
}), t), i = so(o), a = n ?? i, l = Fp(a), [c] = ce(() => {
|
|
6970
6970
|
var d;
|
|
6971
6971
|
return ln.isServer ? null : (d = a == null ? void 0 : a.createElement("div")) != null ? d : null;
|
|
6972
6972
|
}), u = Se(Ts), f = xr();
|
|
@@ -6992,7 +6992,7 @@ function Mp(e, t) {
|
|
|
6992
6992
|
}
|
|
6993
6993
|
let Ts = Ne(null);
|
|
6994
6994
|
function _p() {
|
|
6995
|
-
let e = Se(Ts), t = oe([]), n =
|
|
6995
|
+
let e = Se(Ts), t = oe([]), n = fe((s) => (t.current.push(s), e && e.register(s), () => r(s))), r = fe((s) => {
|
|
6996
6996
|
let i = t.current.indexOf(s);
|
|
6997
6997
|
i !== -1 && t.current.splice(i, 1), e && e.unregister(s);
|
|
6998
6998
|
}), o = he(() => ({ register: n, unregister: r, portals: t }), [n, r, t]);
|
|
@@ -7009,7 +7009,7 @@ function zp(e, t = typeof document < "u" ? document.defaultView : null, n) {
|
|
|
7009
7009
|
}
|
|
7010
7010
|
function Hp() {
|
|
7011
7011
|
var e;
|
|
7012
|
-
let [t] =
|
|
7012
|
+
let [t] = ce(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, r] = ce((e = t == null ? void 0 : t.matches) != null ? e : !1);
|
|
7013
7013
|
return Pe(() => {
|
|
7014
7014
|
if (!t) return;
|
|
7015
7015
|
function o(s) {
|
|
@@ -7019,7 +7019,7 @@ function Hp() {
|
|
|
7019
7019
|
}, [t]), n;
|
|
7020
7020
|
}
|
|
7021
7021
|
function Up({ defaultContainers: e = [], portals: t, mainTreeNode: n } = {}) {
|
|
7022
|
-
let r = so(n), o =
|
|
7022
|
+
let r = so(n), o = fe(() => {
|
|
7023
7023
|
var s, i;
|
|
7024
7024
|
let a = [];
|
|
7025
7025
|
for (let l of e) l !== null && (ft(l) ? a.push(l) : "current" in l && ft(l.current) && a.push(l.current));
|
|
@@ -7027,11 +7027,11 @@ function Up({ defaultContainers: e = [], portals: t, mainTreeNode: n } = {}) {
|
|
|
7027
7027
|
for (let l of (s = r == null ? void 0 : r.querySelectorAll("html > *, body > *")) != null ? s : []) l !== document.body && l !== document.head && ft(l) && l.id !== "headlessui-portal-root" && (n && (l.contains(n) || l.contains((i = n == null ? void 0 : n.getRootNode()) == null ? void 0 : i.host)) || a.some((c) => l.contains(c)) || a.push(l));
|
|
7028
7028
|
return a;
|
|
7029
7029
|
});
|
|
7030
|
-
return { resolveContainers: o, contains:
|
|
7030
|
+
return { resolveContainers: o, contains: fe((s) => o().some((i) => i.contains(s))) };
|
|
7031
7031
|
}
|
|
7032
7032
|
let Mc = Ne(null);
|
|
7033
7033
|
function sa({ children: e, node: t }) {
|
|
7034
|
-
let [n, r] =
|
|
7034
|
+
let [n, r] = ce(null), o = _c(t ?? n);
|
|
7035
7035
|
return j.createElement(Mc.Provider, { value: o }, e, o === null && j.createElement(Vr, { features: lr.Hidden, ref: (s) => {
|
|
7036
7036
|
var i, a;
|
|
7037
7037
|
if (s) {
|
|
@@ -7075,26 +7075,26 @@ function qp(e, t) {
|
|
|
7075
7075
|
Kp(a, { ownerDocument: c });
|
|
7076
7076
|
let u = Qp(a, { ownerDocument: c, container: n, initialFocus: o, initialFocusFallback: s });
|
|
7077
7077
|
Xp(a, { ownerDocument: c, container: n, containers: i, previousActiveElement: u });
|
|
7078
|
-
let f = Bp(), h =
|
|
7078
|
+
let f = Bp(), h = fe((E) => {
|
|
7079
7079
|
if (!zt(n.current)) return;
|
|
7080
7080
|
let y = n.current;
|
|
7081
|
-
((
|
|
7081
|
+
((x) => x())(() => {
|
|
7082
7082
|
mt(f.current, { [Xn.Forwards]: () => {
|
|
7083
|
-
nr(y, ct.First, { skipElements: [
|
|
7083
|
+
nr(y, ct.First, { skipElements: [E.relatedTarget, s] });
|
|
7084
7084
|
}, [Xn.Backwards]: () => {
|
|
7085
|
-
nr(y, ct.Last, { skipElements: [
|
|
7085
|
+
nr(y, ct.Last, { skipElements: [E.relatedTarget, s] });
|
|
7086
7086
|
} });
|
|
7087
7087
|
});
|
|
7088
|
-
}), d = yr(!!(a & 2), "focus-trap#tab-lock"), b = si(), m = oe(!1), g = { ref: r, onKeyDown(
|
|
7089
|
-
|
|
7088
|
+
}), d = yr(!!(a & 2), "focus-trap#tab-lock"), b = si(), m = oe(!1), g = { ref: r, onKeyDown(E) {
|
|
7089
|
+
E.key == "Tab" && (m.current = !0, b.requestAnimationFrame(() => {
|
|
7090
7090
|
m.current = !1;
|
|
7091
7091
|
}));
|
|
7092
|
-
}, onBlur(
|
|
7092
|
+
}, onBlur(E) {
|
|
7093
7093
|
if (!(a & 4)) return;
|
|
7094
7094
|
let y = Dc(i);
|
|
7095
7095
|
zt(n.current) && y.add(n.current);
|
|
7096
|
-
let
|
|
7097
|
-
Dt(
|
|
7096
|
+
let x = E.relatedTarget;
|
|
7097
|
+
Dt(x) && x.dataset.headlessuiFocusGuard !== "true" && (jc(y, x) || (m.current ? nr(n.current, mt(f.current, { [Xn.Forwards]: () => ct.Next, [Xn.Backwards]: () => ct.Previous }) | ct.WrapAround, { relativeTo: E.target }) : Dt(E.target) && dt(E.target)));
|
|
7098
7098
|
} }, w = Le();
|
|
7099
7099
|
return j.createElement(j.Fragment, null, d && j.createElement(Vr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: lr.Focusable }), w({ ourProps: g, theirProps: l, defaultTag: Wp, name: "FocusTrap" }), d && j.createElement(Vr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: lr.Focusable }));
|
|
7100
7100
|
}
|
|
@@ -7105,7 +7105,7 @@ function Yp(e = !0) {
|
|
|
7105
7105
|
r === !0 && n === !1 && to(() => {
|
|
7106
7106
|
t.current.splice(0);
|
|
7107
7107
|
}), r === !1 && n === !0 && (t.current = Pt.slice());
|
|
7108
|
-
}, [e, Pt, t]),
|
|
7108
|
+
}, [e, Pt, t]), fe(() => {
|
|
7109
7109
|
var n;
|
|
7110
7110
|
return (n = t.current.find((r) => r != null && r.isConnected)) != null ? n : null;
|
|
7111
7111
|
});
|
|
@@ -7190,7 +7190,7 @@ function mo(e) {
|
|
|
7190
7190
|
return "children" in e ? mo(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
7191
7191
|
}
|
|
7192
7192
|
function Hc(e, t) {
|
|
7193
|
-
let n = pn(e), r = oe([]), o = ci(), s = si(), i =
|
|
7193
|
+
let n = pn(e), r = oe([]), o = ci(), s = si(), i = fe((d, b = _t.Hidden) => {
|
|
7194
7194
|
let m = r.current.findIndex(({ el: g }) => g === d);
|
|
7195
7195
|
m !== -1 && (mt(b, { [_t.Unmount]() {
|
|
7196
7196
|
r.current.splice(m, 1);
|
|
@@ -7200,16 +7200,16 @@ function Hc(e, t) {
|
|
|
7200
7200
|
var g;
|
|
7201
7201
|
!mo(r) && o.current && ((g = n.current) == null || g.call(n));
|
|
7202
7202
|
}));
|
|
7203
|
-
}), a =
|
|
7203
|
+
}), a = fe((d) => {
|
|
7204
7204
|
let b = r.current.find(({ el: m }) => m === d);
|
|
7205
7205
|
return b ? b.state !== "visible" && (b.state = "visible") : r.current.push({ el: d, state: "visible" }), () => i(d, _t.Unmount);
|
|
7206
|
-
}), l = oe([]), c = oe(Promise.resolve()), u = oe({ enter: [], leave: [] }), f =
|
|
7206
|
+
}), l = oe([]), c = oe(Promise.resolve()), u = oe({ enter: [], leave: [] }), f = fe((d, b, m) => {
|
|
7207
7207
|
l.current.splice(0), t && (t.chains.current[b] = t.chains.current[b].filter(([g]) => g !== d)), t == null || t.chains.current[b].push([d, new Promise((g) => {
|
|
7208
7208
|
l.current.push(g);
|
|
7209
7209
|
})]), t == null || t.chains.current[b].push([d, new Promise((g) => {
|
|
7210
|
-
Promise.all(u.current[b].map(([w,
|
|
7210
|
+
Promise.all(u.current[b].map(([w, E]) => E)).then(() => g());
|
|
7211
7211
|
})]), b === "enter" ? c.current = c.current.then(() => t == null ? void 0 : t.wait.current).then(() => m(b)) : m(b);
|
|
7212
|
-
}), h =
|
|
7212
|
+
}), h = fe((d, b, m) => {
|
|
7213
7213
|
Promise.all(u.current[b].splice(0).map(([g, w]) => w)).then(() => {
|
|
7214
7214
|
var g;
|
|
7215
7215
|
(g = l.current.shift()) == null || g();
|
|
@@ -7220,39 +7220,39 @@ function Hc(e, t) {
|
|
|
7220
7220
|
let Uc = Ke, Bc = qr.RenderStrategy;
|
|
7221
7221
|
function tm(e, t) {
|
|
7222
7222
|
var n, r;
|
|
7223
|
-
let { transition: o = !0, beforeEnter: s, afterEnter: i, beforeLeave: a, afterLeave: l, enter: c, enterFrom: u, enterTo: f, entered: h, leave: d, leaveFrom: b, leaveTo: m, ...g } = e, [w,
|
|
7223
|
+
let { transition: o = !0, beforeEnter: s, afterEnter: i, beforeLeave: a, afterLeave: l, enter: c, enterFrom: u, enterTo: f, entered: h, leave: d, leaveFrom: b, leaveTo: m, ...g } = e, [w, E] = ce(null), y = oe(null), x = zc(e), v = Xe(...x ? [y, t, E] : t === null ? [] : [t]), R = (n = g.unmount) == null || n ? _t.Unmount : _t.Hidden, { show: H, appear: A, initial: W } = Zp(), [G, ue] = ce(H ? "visible" : "hidden"), de = em(), { register: se, unregister: pe } = de;
|
|
7224
7224
|
Pe(() => se(y), [se, y]), Pe(() => {
|
|
7225
|
-
if (
|
|
7226
|
-
if (
|
|
7227
|
-
|
|
7225
|
+
if (R === _t.Hidden && y.current) {
|
|
7226
|
+
if (H && G !== "visible") {
|
|
7227
|
+
ue("visible");
|
|
7228
7228
|
return;
|
|
7229
7229
|
}
|
|
7230
7230
|
return mt(G, { hidden: () => pe(y), visible: () => se(y) });
|
|
7231
7231
|
}
|
|
7232
|
-
}, [G, y, se, pe,
|
|
7233
|
-
let
|
|
7232
|
+
}, [G, y, se, pe, H, R]);
|
|
7233
|
+
let q = xr();
|
|
7234
7234
|
Pe(() => {
|
|
7235
|
-
if (
|
|
7236
|
-
}, [y, G,
|
|
7237
|
-
let Y =
|
|
7238
|
-
O.current || (
|
|
7239
|
-
}, de),
|
|
7235
|
+
if (x && q && G === "visible" && y.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
7236
|
+
}, [y, G, q, x]);
|
|
7237
|
+
let Y = W && !A, ne = A && H && W, O = oe(!1), V = Hc(() => {
|
|
7238
|
+
O.current || (ue("hidden"), pe(y));
|
|
7239
|
+
}, de), C = fe((I) => {
|
|
7240
7240
|
O.current = !0;
|
|
7241
|
-
let Q =
|
|
7241
|
+
let Q = I ? "enter" : "leave";
|
|
7242
7242
|
V.onStart(y, Q, (X) => {
|
|
7243
7243
|
X === "enter" ? s == null || s() : X === "leave" && (a == null || a());
|
|
7244
7244
|
});
|
|
7245
|
-
}), P =
|
|
7246
|
-
let Q =
|
|
7245
|
+
}), P = fe((I) => {
|
|
7246
|
+
let Q = I ? "enter" : "leave";
|
|
7247
7247
|
O.current = !1, V.onStop(y, Q, (X) => {
|
|
7248
7248
|
X === "enter" ? i == null || i() : X === "leave" && (l == null || l());
|
|
7249
|
-
}), Q === "leave" && !mo(V) && (
|
|
7249
|
+
}), Q === "leave" && !mo(V) && (ue("hidden"), pe(y));
|
|
7250
7250
|
});
|
|
7251
7251
|
Ee(() => {
|
|
7252
|
-
|
|
7253
|
-
}, [
|
|
7254
|
-
let
|
|
7255
|
-
G === "visible" && (K |= Ye.Open), G === "hidden" && (K |= Ye.Closed),
|
|
7252
|
+
x && o || (C(H), P(H));
|
|
7253
|
+
}, [H, x, o]);
|
|
7254
|
+
let B = !(!o || !x || !q || Y), [, S] = Jh(B, w, H, { start: C, end: P }), _ = Yt({ ref: v, className: ((r = ys(g.className, ne && c, ne && u, S.enter && c, S.enter && S.closed && u, S.enter && !S.closed && f, S.leave && d, S.leave && !S.closed && b, S.leave && S.closed && m, !S.transition && H && h)) == null ? void 0 : r.trim()) || void 0, ...Xh(S) }), K = 0;
|
|
7255
|
+
G === "visible" && (K |= Ye.Open), G === "hidden" && (K |= Ye.Closed), H && G === "hidden" && (K |= Ye.Opening), !H && G === "visible" && (K |= Ye.Closing);
|
|
7256
7256
|
let z = Le();
|
|
7257
7257
|
return j.createElement(po.Provider, { value: V }, j.createElement(Sp, { value: K }, z({ ourProps: _, theirProps: g, defaultTag: Uc, features: Bc, visible: G === "visible", name: "Transition.Child" })));
|
|
7258
7258
|
}
|
|
@@ -7261,9 +7261,9 @@ function nm(e, t) {
|
|
|
7261
7261
|
xr();
|
|
7262
7262
|
let c = fo();
|
|
7263
7263
|
if (n === void 0 && c !== null && (n = (c & Ye.Open) === Ye.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
7264
|
-
let [u, f] =
|
|
7264
|
+
let [u, f] = ce(n ? "visible" : "hidden"), h = Hc(() => {
|
|
7265
7265
|
n || f("hidden");
|
|
7266
|
-
}), [d, b] =
|
|
7266
|
+
}), [d, b] = ce(!0), m = oe([n]);
|
|
7267
7267
|
Pe(() => {
|
|
7268
7268
|
d !== !1 && m.current[m.current.length - 1] !== n && (m.current.push(n), b(!1));
|
|
7269
7269
|
}, [m, n]);
|
|
@@ -7271,14 +7271,14 @@ function nm(e, t) {
|
|
|
7271
7271
|
Pe(() => {
|
|
7272
7272
|
n ? f("visible") : !mo(h) && i.current !== null && f("hidden");
|
|
7273
7273
|
}, [n, h]);
|
|
7274
|
-
let w = { unmount: o },
|
|
7274
|
+
let w = { unmount: o }, E = fe(() => {
|
|
7275
7275
|
var v;
|
|
7276
7276
|
d && b(!1), (v = e.beforeEnter) == null || v.call(e);
|
|
7277
|
-
}), y =
|
|
7277
|
+
}), y = fe(() => {
|
|
7278
7278
|
var v;
|
|
7279
7279
|
d && b(!1), (v = e.beforeLeave) == null || v.call(e);
|
|
7280
|
-
}),
|
|
7281
|
-
return j.createElement(po.Provider, { value: h }, j.createElement(ho.Provider, { value: g },
|
|
7280
|
+
}), x = Le();
|
|
7281
|
+
return j.createElement(po.Provider, { value: h }, j.createElement(ho.Provider, { value: g }, x({ ourProps: { ...w, as: Ke, children: j.createElement(Wc, { ref: l, ...w, ...s, beforeEnter: E, beforeLeave: y }) }, theirProps: {}, defaultTag: Ke, features: Bc, visible: u === "visible", name: "Transition" })));
|
|
7282
7282
|
}
|
|
7283
7283
|
function rm(e, t) {
|
|
7284
7284
|
let n = Se(ho) !== null, r = fo() !== null;
|
|
@@ -7308,31 +7308,31 @@ let ia = ke(function(e, t) {
|
|
|
7308
7308
|
}();
|
|
7309
7309
|
let d = fo();
|
|
7310
7310
|
o === void 0 && d !== null && (o = (d & Ye.Open) === Ye.Open);
|
|
7311
|
-
let b = oe(null), m = Xe(b, t), g = so(b), w = o ? 0 : 1, [
|
|
7311
|
+
let b = oe(null), m = Xe(b, t), g = so(b), w = o ? 0 : 1, [E, y] = qu(lm, { titleId: null, descriptionId: null, panelRef: Vu() }), x = fe(() => s(!1)), v = fe((S) => y({ type: 0, id: S })), R = xr() ? w === 0 : !1, [H, A] = _p(), W = { get current() {
|
|
7312
7312
|
var S;
|
|
7313
|
-
return (S =
|
|
7314
|
-
} }, G = _c(), { resolveContainers:
|
|
7315
|
-
kh(c || de ? !1 :
|
|
7313
|
+
return (S = E.panelRef.current) != null ? S : b.current;
|
|
7314
|
+
} }, G = _c(), { resolveContainers: ue } = Up({ mainTreeNode: G, portals: H, defaultContainers: [W] }), de = d !== null ? (d & Ye.Closing) === Ye.Closing : !1;
|
|
7315
|
+
kh(c || de ? !1 : R, { allowed: fe(() => {
|
|
7316
7316
|
var S, _;
|
|
7317
7317
|
return [(_ = (S = b.current) == null ? void 0 : S.closest("[data-headlessui-portal]")) != null ? _ : null];
|
|
7318
|
-
}), disallowed:
|
|
7318
|
+
}), disallowed: fe(() => {
|
|
7319
7319
|
var S;
|
|
7320
7320
|
return [(S = G == null ? void 0 : G.closest("body > *:not(#headlessui-portal-root)")) != null ? S : null];
|
|
7321
7321
|
}) });
|
|
7322
7322
|
let se = hc.get(null);
|
|
7323
7323
|
Pe(() => {
|
|
7324
|
-
if (
|
|
7325
|
-
}, [se, r,
|
|
7324
|
+
if (R) return se.actions.push(r), () => se.actions.pop(r);
|
|
7325
|
+
}, [se, r, R]);
|
|
7326
7326
|
let pe = pc(se, we((S) => se.selectors.isTop(S, r), [se, r]));
|
|
7327
|
-
zh(pe,
|
|
7328
|
-
S.preventDefault(),
|
|
7327
|
+
zh(pe, ue, (S) => {
|
|
7328
|
+
S.preventDefault(), x();
|
|
7329
7329
|
}), zp(pe, g == null ? void 0 : g.defaultView, (S) => {
|
|
7330
|
-
S.preventDefault(), S.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(),
|
|
7331
|
-
}), Yh(c || de ? !1 :
|
|
7332
|
-
let [
|
|
7333
|
-
|
|
7334
|
-
let
|
|
7335
|
-
return j.createElement(kp, null, j.createElement(oa, { force: !0 }, j.createElement(jp, null, j.createElement(fi.Provider, { value: ne }, j.createElement(Lc, { target: b }, j.createElement(oa, { force: !1 }, j.createElement(Y, { slot: O }, j.createElement(A, null, j.createElement(Gp, { initialFocus: i, initialFocusFallback: b, containers:
|
|
7330
|
+
S.preventDefault(), S.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), x();
|
|
7331
|
+
}), Yh(c || de ? !1 : R, g, ue), Ah(R, b, x);
|
|
7332
|
+
let [q, Y] = oc(), ne = he(() => [{ dialogState: w, close: x, setTitleId: v, unmount: u }, E], [w, E, x, v, u]), O = he(() => ({ open: w === 0 }), [w]), V = { ref: m, id: r, role: a, tabIndex: -1, "aria-modal": c ? void 0 : w === 0 ? !0 : void 0, "aria-labelledby": E.titleId, "aria-describedby": q, unmount: u }, C = !Hp(), P = Kt.None;
|
|
7333
|
+
R && !c && (P |= Kt.RestoreFocus, P |= Kt.TabLock, l && (P |= Kt.AutoFocus), C && (P |= Kt.InitialFocus));
|
|
7334
|
+
let B = Le();
|
|
7335
|
+
return j.createElement(kp, null, j.createElement(oa, { force: !0 }, j.createElement(jp, null, j.createElement(fi.Provider, { value: ne }, j.createElement(Lc, { target: b }, j.createElement(oa, { force: !1 }, j.createElement(Y, { slot: O }, j.createElement(A, null, j.createElement(Gp, { initialFocus: i, initialFocusFallback: b, containers: ue, features: P }, j.createElement(dh, { value: x }, B({ ourProps: V, theirProps: f, slot: O, defaultTag: cm, features: um, visible: w === 0, name: "Dialog" })))))))))));
|
|
7336
7336
|
}), cm = "div", um = qr.RenderStrategy | qr.Static;
|
|
7337
7337
|
function fm(e, t) {
|
|
7338
7338
|
let { transition: n = !1, open: r, ...o } = e, s = fo(), i = e.hasOwnProperty("open") || s !== null, a = e.hasOwnProperty("onClose");
|
|
@@ -7345,7 +7345,7 @@ function fm(e, t) {
|
|
|
7345
7345
|
}
|
|
7346
7346
|
let dm = "div";
|
|
7347
7347
|
function hm(e, t) {
|
|
7348
|
-
let n = qt(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...s } = e, [{ dialogState: i, unmount: a }, l] = go("Dialog.Panel"), c = Xe(t, l.panelRef), u = he(() => ({ open: i === 0 }), [i]), f =
|
|
7348
|
+
let n = qt(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...s } = e, [{ dialogState: i, unmount: a }, l] = go("Dialog.Panel"), c = Xe(t, l.panelRef), u = he(() => ({ open: i === 0 }), [i]), f = fe((g) => {
|
|
7349
7349
|
g.stopPropagation();
|
|
7350
7350
|
}), h = { ref: c, id: r, onClick: f }, d = o ? ui : Ke, b = o ? { unmount: a } : {}, m = Le();
|
|
7351
7351
|
return j.createElement(d, { ...b }, m({ ourProps: h, theirProps: s, slot: u, defaultTag: dm, name: "Dialog.Panel" }));
|
|
@@ -7447,7 +7447,7 @@ const Sm = "whitespace-nowrap font-normal flex items-center justify-center", km
|
|
|
7447
7447
|
...u
|
|
7448
7448
|
}, f) => {
|
|
7449
7449
|
var y;
|
|
7450
|
-
const h = Am, d = /link/.test(o) ? null : Rm(n, e), b = km, m = Mm[r], g = (y = Lm(n, e)) == null ? void 0 : y[o], w = xn(d, g),
|
|
7450
|
+
const h = Am, d = /link/.test(o) ? null : Rm(n, e), b = km, m = Mm[r], g = (y = Lm(n, e)) == null ? void 0 : y[o], w = xn(d, g), E = _m[a];
|
|
7451
7451
|
return /* @__PURE__ */ k(
|
|
7452
7452
|
"button",
|
|
7453
7453
|
{
|
|
@@ -7465,7 +7465,7 @@ const Sm = "whitespace-nowrap font-normal flex items-center justify-center", km
|
|
|
7465
7465
|
h,
|
|
7466
7466
|
m,
|
|
7467
7467
|
w,
|
|
7468
|
-
|
|
7468
|
+
E,
|
|
7469
7469
|
s,
|
|
7470
7470
|
"cursor-pointer"
|
|
7471
7471
|
),
|
|
@@ -7554,7 +7554,7 @@ const Sm = "whitespace-nowrap font-normal flex items-center justify-center", km
|
|
|
7554
7554
|
isOpen: n,
|
|
7555
7555
|
title: r
|
|
7556
7556
|
}) => {
|
|
7557
|
-
const [o, s] =
|
|
7557
|
+
const [o, s] = ce(""), [i, a] = ce(!1), [l, c] = ce(!1);
|
|
7558
7558
|
return /* @__PURE__ */ k(
|
|
7559
7559
|
jm,
|
|
7560
7560
|
{
|
|
@@ -7606,7 +7606,7 @@ const Sm = "whitespace-nowrap font-normal flex items-center justify-center", km
|
|
|
7606
7606
|
btnLabel: i = "Run Playbook",
|
|
7607
7607
|
btnColor: a = "primary"
|
|
7608
7608
|
}) => {
|
|
7609
|
-
const [l, c] =
|
|
7609
|
+
const [l, c] = ce(!1), [u, f] = ce(!1);
|
|
7610
7610
|
function h() {
|
|
7611
7611
|
c(!0);
|
|
7612
7612
|
}
|
|
@@ -7616,7 +7616,7 @@ const Sm = "whitespace-nowrap font-normal flex items-center justify-center", km
|
|
|
7616
7616
|
const b = async (m) => {
|
|
7617
7617
|
try {
|
|
7618
7618
|
f(!0);
|
|
7619
|
-
const { playbookInstanceId: g, errorCode: w, details:
|
|
7619
|
+
const { playbookInstanceId: g, errorCode: w, details: E, message: y } = await Sl({
|
|
7620
7620
|
bank: "public-sdk",
|
|
7621
7621
|
email: m,
|
|
7622
7622
|
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone || "America/Los_Angeles",
|
|
@@ -7624,7 +7624,7 @@ const Sm = "whitespace-nowrap font-normal flex items-center justify-center", km
|
|
|
7624
7624
|
}) || {};
|
|
7625
7625
|
if (w)
|
|
7626
7626
|
throw new Error(
|
|
7627
|
-
`Error initiating playbook: ${y} (Code: ${w}) - Details: ${
|
|
7627
|
+
`Error initiating playbook: ${y} (Code: ${w}) - Details: ${E}`
|
|
7628
7628
|
);
|
|
7629
7629
|
o(g);
|
|
7630
7630
|
} finally {
|
|
@@ -9270,7 +9270,7 @@ function wi(e) {
|
|
|
9270
9270
|
},
|
|
9271
9271
|
children: [a]
|
|
9272
9272
|
}), delete g.attributes.title);
|
|
9273
|
-
const
|
|
9273
|
+
const E = T(T({}, g), {}, {
|
|
9274
9274
|
prefix: r,
|
|
9275
9275
|
iconName: o,
|
|
9276
9276
|
main: t,
|
|
@@ -9281,15 +9281,15 @@ function wi(e) {
|
|
|
9281
9281
|
styles: T(T({}, w), u.styles)
|
|
9282
9282
|
}), {
|
|
9283
9283
|
children: y,
|
|
9284
|
-
attributes:
|
|
9285
|
-
} = n.found && t.found ? Bt("generateAbstractMask",
|
|
9284
|
+
attributes: x
|
|
9285
|
+
} = n.found && t.found ? Bt("generateAbstractMask", E) || {
|
|
9286
9286
|
children: [],
|
|
9287
9287
|
attributes: {}
|
|
9288
|
-
} : Bt("generateAbstractIcon",
|
|
9288
|
+
} : Bt("generateAbstractIcon", E) || {
|
|
9289
9289
|
children: [],
|
|
9290
9290
|
attributes: {}
|
|
9291
9291
|
};
|
|
9292
|
-
return
|
|
9292
|
+
return E.children = y, E.attributes = x, i ? ab(E) : ib(E);
|
|
9293
9293
|
}
|
|
9294
9294
|
function wa(e) {
|
|
9295
9295
|
const {
|
|
@@ -9963,28 +9963,28 @@ function Aa(e, t) {
|
|
|
9963
9963
|
value: b,
|
|
9964
9964
|
isSecondary: m
|
|
9965
9965
|
} = Nb(h), g = c[0].startsWith("FontAwesome");
|
|
9966
|
-
let w = yi(d, b),
|
|
9966
|
+
let w = yi(d, b), E = w;
|
|
9967
9967
|
if (g) {
|
|
9968
9968
|
const y = Vg(b);
|
|
9969
9969
|
y.iconName && y.prefix && (w = y.iconName, d = y.prefix);
|
|
9970
9970
|
}
|
|
9971
|
-
if (w && !m && (!i || i.getAttribute(hi) !== d || i.getAttribute(pi) !==
|
|
9972
|
-
e.setAttribute(n,
|
|
9971
|
+
if (w && !m && (!i || i.getAttribute(hi) !== d || i.getAttribute(pi) !== E)) {
|
|
9972
|
+
e.setAttribute(n, E), i && e.removeChild(i);
|
|
9973
9973
|
const y = Eb(), {
|
|
9974
|
-
extra:
|
|
9974
|
+
extra: x
|
|
9975
9975
|
} = y;
|
|
9976
|
-
|
|
9977
|
-
const
|
|
9976
|
+
x.attributes[As] = t, Ds(w, d).then((v) => {
|
|
9977
|
+
const R = wi(T(T({}, y), {}, {
|
|
9978
9978
|
icons: {
|
|
9979
9979
|
main: v,
|
|
9980
9980
|
mask: Cu()
|
|
9981
9981
|
},
|
|
9982
9982
|
prefix: d,
|
|
9983
|
-
iconName:
|
|
9984
|
-
extra:
|
|
9983
|
+
iconName: E,
|
|
9984
|
+
extra: x,
|
|
9985
9985
|
watchable: !0
|
|
9986
|
-
})),
|
|
9987
|
-
t === "::before" ? e.insertBefore(
|
|
9986
|
+
})), H = ge.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
9987
|
+
t === "::before" ? e.insertBefore(H, e.firstChild) : e.appendChild(H), H.outerHTML = R.map((A) => Cr(A)).join(`
|
|
9988
9988
|
`), e.removeAttribute(n), r();
|
|
9989
9989
|
}).catch(o);
|
|
9990
9990
|
} else
|
|
@@ -10212,7 +10212,7 @@ var Ub = {
|
|
|
10212
10212
|
tag: "g",
|
|
10213
10213
|
attributes: T({}, h.outer),
|
|
10214
10214
|
children: [m]
|
|
10215
|
-
}, w = "mask-".concat(i || fr()),
|
|
10215
|
+
}, w = "mask-".concat(i || fr()), E = "clip-".concat(i || fr()), y = {
|
|
10216
10216
|
tag: "mask",
|
|
10217
10217
|
attributes: T(T({}, jo), {}, {
|
|
10218
10218
|
id: w,
|
|
@@ -10220,21 +10220,21 @@ var Ub = {
|
|
|
10220
10220
|
maskContentUnits: "userSpaceOnUse"
|
|
10221
10221
|
}),
|
|
10222
10222
|
children: [d, g]
|
|
10223
|
-
},
|
|
10223
|
+
}, x = {
|
|
10224
10224
|
tag: "defs",
|
|
10225
10225
|
children: [{
|
|
10226
10226
|
tag: "clipPath",
|
|
10227
10227
|
attributes: {
|
|
10228
|
-
id:
|
|
10228
|
+
id: E
|
|
10229
10229
|
},
|
|
10230
10230
|
children: Hb(f)
|
|
10231
10231
|
}, y]
|
|
10232
10232
|
};
|
|
10233
|
-
return n.push(
|
|
10233
|
+
return n.push(x, {
|
|
10234
10234
|
tag: "rect",
|
|
10235
10235
|
attributes: T({
|
|
10236
10236
|
fill: "currentColor",
|
|
10237
|
-
"clip-path": "url(#".concat(
|
|
10237
|
+
"clip-path": "url(#".concat(E, ")"),
|
|
10238
10238
|
mask: "url(#".concat(w, ")")
|
|
10239
10239
|
}, jo)
|
|
10240
10240
|
}), {
|
|
@@ -10352,11 +10352,11 @@ var Na;
|
|
|
10352
10352
|
function Gb() {
|
|
10353
10353
|
if (Na) return ie;
|
|
10354
10354
|
Na = 1;
|
|
10355
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118,
|
|
10355
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
10356
10356
|
function y(v) {
|
|
10357
10357
|
if (typeof v == "object" && v !== null) {
|
|
10358
|
-
var
|
|
10359
|
-
switch (
|
|
10358
|
+
var R = v.$$typeof;
|
|
10359
|
+
switch (R) {
|
|
10360
10360
|
case t:
|
|
10361
10361
|
switch (v = v.type, v) {
|
|
10362
10362
|
case l:
|
|
@@ -10375,20 +10375,20 @@ function Gb() {
|
|
|
10375
10375
|
case i:
|
|
10376
10376
|
return v;
|
|
10377
10377
|
default:
|
|
10378
|
-
return
|
|
10378
|
+
return R;
|
|
10379
10379
|
}
|
|
10380
10380
|
}
|
|
10381
10381
|
case n:
|
|
10382
|
-
return
|
|
10382
|
+
return R;
|
|
10383
10383
|
}
|
|
10384
10384
|
}
|
|
10385
10385
|
}
|
|
10386
|
-
function
|
|
10386
|
+
function x(v) {
|
|
10387
10387
|
return y(v) === c;
|
|
10388
10388
|
}
|
|
10389
10389
|
return ie.AsyncMode = l, ie.ConcurrentMode = c, ie.ContextConsumer = a, ie.ContextProvider = i, ie.Element = t, ie.ForwardRef = u, ie.Fragment = r, ie.Lazy = b, ie.Memo = d, ie.Portal = n, ie.Profiler = s, ie.StrictMode = o, ie.Suspense = f, ie.isAsyncMode = function(v) {
|
|
10390
|
-
return
|
|
10391
|
-
}, ie.isConcurrentMode =
|
|
10390
|
+
return x(v) || y(v) === l;
|
|
10391
|
+
}, ie.isConcurrentMode = x, ie.isContextConsumer = function(v) {
|
|
10392
10392
|
return y(v) === a;
|
|
10393
10393
|
}, ie.isContextProvider = function(v) {
|
|
10394
10394
|
return y(v) === i;
|
|
@@ -10411,7 +10411,7 @@ function Gb() {
|
|
|
10411
10411
|
}, ie.isSuspense = function(v) {
|
|
10412
10412
|
return y(v) === f;
|
|
10413
10413
|
}, ie.isValidElementType = function(v) {
|
|
10414
|
-
return typeof v == "string" || typeof v == "function" || v === r || v === c || v === s || v === o || v === f || v === h || typeof v == "object" && v !== null && (v.$$typeof === b || v.$$typeof === d || v.$$typeof === i || v.$$typeof === a || v.$$typeof === u || v.$$typeof === g || v.$$typeof === w || v.$$typeof ===
|
|
10414
|
+
return typeof v == "string" || typeof v == "function" || v === r || v === c || v === s || v === o || v === f || v === h || typeof v == "object" && v !== null && (v.$$typeof === b || v.$$typeof === d || v.$$typeof === i || v.$$typeof === a || v.$$typeof === u || v.$$typeof === g || v.$$typeof === w || v.$$typeof === E || v.$$typeof === m);
|
|
10415
10415
|
}, ie.typeOf = y, ie;
|
|
10416
10416
|
}
|
|
10417
10417
|
var ae = {};
|
|
@@ -10426,17 +10426,17 @@ var ae = {};
|
|
|
10426
10426
|
var La;
|
|
10427
10427
|
function Yb() {
|
|
10428
10428
|
return La || (La = 1, process.env.NODE_ENV !== "production" && function() {
|
|
10429
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118,
|
|
10430
|
-
function y(
|
|
10431
|
-
return typeof
|
|
10432
|
-
|
|
10433
|
-
}
|
|
10434
|
-
function
|
|
10435
|
-
if (typeof
|
|
10436
|
-
var ze =
|
|
10429
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
10430
|
+
function y($) {
|
|
10431
|
+
return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
10432
|
+
$ === r || $ === c || $ === s || $ === o || $ === f || $ === h || typeof $ == "object" && $ !== null && ($.$$typeof === b || $.$$typeof === d || $.$$typeof === i || $.$$typeof === a || $.$$typeof === u || $.$$typeof === g || $.$$typeof === w || $.$$typeof === E || $.$$typeof === m);
|
|
10433
|
+
}
|
|
10434
|
+
function x($) {
|
|
10435
|
+
if (typeof $ == "object" && $ !== null) {
|
|
10436
|
+
var ze = $.$$typeof;
|
|
10437
10437
|
switch (ze) {
|
|
10438
10438
|
case t:
|
|
10439
|
-
var mn =
|
|
10439
|
+
var mn = $.type;
|
|
10440
10440
|
switch (mn) {
|
|
10441
10441
|
case l:
|
|
10442
10442
|
case c:
|
|
@@ -10463,47 +10463,47 @@ function Yb() {
|
|
|
10463
10463
|
}
|
|
10464
10464
|
}
|
|
10465
10465
|
}
|
|
10466
|
-
var v = l,
|
|
10467
|
-
function V(
|
|
10468
|
-
return O || (O = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
10466
|
+
var v = l, R = c, H = a, A = i, W = t, G = u, ue = r, de = b, se = d, pe = n, q = s, Y = o, ne = f, O = !1;
|
|
10467
|
+
function V($) {
|
|
10468
|
+
return O || (O = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), C($) || x($) === l;
|
|
10469
10469
|
}
|
|
10470
|
-
function
|
|
10471
|
-
return
|
|
10470
|
+
function C($) {
|
|
10471
|
+
return x($) === c;
|
|
10472
10472
|
}
|
|
10473
|
-
function P(
|
|
10474
|
-
return
|
|
10473
|
+
function P($) {
|
|
10474
|
+
return x($) === a;
|
|
10475
10475
|
}
|
|
10476
|
-
function
|
|
10477
|
-
return
|
|
10476
|
+
function B($) {
|
|
10477
|
+
return x($) === i;
|
|
10478
10478
|
}
|
|
10479
|
-
function S(
|
|
10480
|
-
return typeof
|
|
10479
|
+
function S($) {
|
|
10480
|
+
return typeof $ == "object" && $ !== null && $.$$typeof === t;
|
|
10481
10481
|
}
|
|
10482
|
-
function _(
|
|
10483
|
-
return
|
|
10482
|
+
function _($) {
|
|
10483
|
+
return x($) === u;
|
|
10484
10484
|
}
|
|
10485
|
-
function K(
|
|
10486
|
-
return
|
|
10485
|
+
function K($) {
|
|
10486
|
+
return x($) === r;
|
|
10487
10487
|
}
|
|
10488
|
-
function z(
|
|
10489
|
-
return
|
|
10488
|
+
function z($) {
|
|
10489
|
+
return x($) === b;
|
|
10490
10490
|
}
|
|
10491
|
-
function
|
|
10492
|
-
return
|
|
10491
|
+
function I($) {
|
|
10492
|
+
return x($) === d;
|
|
10493
10493
|
}
|
|
10494
|
-
function Q(
|
|
10495
|
-
return
|
|
10494
|
+
function Q($) {
|
|
10495
|
+
return x($) === n;
|
|
10496
10496
|
}
|
|
10497
|
-
function X(
|
|
10498
|
-
return
|
|
10497
|
+
function X($) {
|
|
10498
|
+
return x($) === s;
|
|
10499
10499
|
}
|
|
10500
|
-
function Z(
|
|
10501
|
-
return
|
|
10500
|
+
function Z($) {
|
|
10501
|
+
return x($) === o;
|
|
10502
10502
|
}
|
|
10503
|
-
function xe(
|
|
10504
|
-
return
|
|
10503
|
+
function xe($) {
|
|
10504
|
+
return x($) === f;
|
|
10505
10505
|
}
|
|
10506
|
-
ae.AsyncMode = v, ae.ConcurrentMode =
|
|
10506
|
+
ae.AsyncMode = v, ae.ConcurrentMode = R, ae.ContextConsumer = H, ae.ContextProvider = A, ae.Element = W, ae.ForwardRef = G, ae.Fragment = ue, ae.Lazy = de, ae.Memo = se, ae.Portal = pe, ae.Profiler = q, ae.StrictMode = Y, ae.Suspense = ne, ae.isAsyncMode = V, ae.isConcurrentMode = C, ae.isContextConsumer = P, ae.isContextProvider = B, ae.isElement = S, ae.isForwardRef = _, ae.isFragment = K, ae.isLazy = z, ae.isMemo = I, ae.isPortal = Q, ae.isProfiler = X, ae.isStrictMode = Z, ae.isSuspense = xe, ae.isValidElementType = y, ae.typeOf = x;
|
|
10507
10507
|
}()), ae;
|
|
10508
10508
|
}
|
|
10509
10509
|
var Ma;
|
|
@@ -10640,8 +10640,8 @@ function Xb() {
|
|
|
10640
10640
|
}
|
|
10641
10641
|
return Wo = function(a, l) {
|
|
10642
10642
|
var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
10643
|
-
function f(
|
|
10644
|
-
var P =
|
|
10643
|
+
function f(C) {
|
|
10644
|
+
var P = C && (c && C[c] || C[u]);
|
|
10645
10645
|
if (typeof P == "function")
|
|
10646
10646
|
return P;
|
|
10647
10647
|
}
|
|
@@ -10654,76 +10654,76 @@ function Xb() {
|
|
|
10654
10654
|
object: w("object"),
|
|
10655
10655
|
string: w("string"),
|
|
10656
10656
|
symbol: w("symbol"),
|
|
10657
|
-
any:
|
|
10657
|
+
any: E(),
|
|
10658
10658
|
arrayOf: y,
|
|
10659
|
-
element:
|
|
10659
|
+
element: x(),
|
|
10660
10660
|
elementType: v(),
|
|
10661
|
-
instanceOf:
|
|
10661
|
+
instanceOf: R,
|
|
10662
10662
|
node: G(),
|
|
10663
10663
|
objectOf: A,
|
|
10664
|
-
oneOf:
|
|
10665
|
-
oneOfType:
|
|
10664
|
+
oneOf: H,
|
|
10665
|
+
oneOfType: W,
|
|
10666
10666
|
shape: de,
|
|
10667
10667
|
exact: se
|
|
10668
10668
|
};
|
|
10669
|
-
function b(
|
|
10670
|
-
return
|
|
10669
|
+
function b(C, P) {
|
|
10670
|
+
return C === P ? C !== 0 || 1 / C === 1 / P : C !== C && P !== P;
|
|
10671
10671
|
}
|
|
10672
|
-
function m(
|
|
10673
|
-
this.message =
|
|
10672
|
+
function m(C, P) {
|
|
10673
|
+
this.message = C, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
|
|
10674
10674
|
}
|
|
10675
10675
|
m.prototype = Error.prototype;
|
|
10676
|
-
function g(
|
|
10676
|
+
function g(C) {
|
|
10677
10677
|
if (process.env.NODE_ENV !== "production")
|
|
10678
|
-
var P = {},
|
|
10679
|
-
function S(K, z,
|
|
10680
|
-
if (Q = Q || h, Z = Z ||
|
|
10678
|
+
var P = {}, B = 0;
|
|
10679
|
+
function S(K, z, I, Q, X, Z, xe) {
|
|
10680
|
+
if (Q = Q || h, Z = Z || I, xe !== n) {
|
|
10681
10681
|
if (l) {
|
|
10682
|
-
var
|
|
10682
|
+
var $ = new Error(
|
|
10683
10683
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
10684
10684
|
);
|
|
10685
|
-
throw
|
|
10685
|
+
throw $.name = "Invariant Violation", $;
|
|
10686
10686
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
10687
|
-
var ze = Q + ":" +
|
|
10687
|
+
var ze = Q + ":" + I;
|
|
10688
10688
|
!P[ze] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
10689
|
-
|
|
10689
|
+
B < 3 && (s(
|
|
10690
10690
|
"You are manually calling a React.PropTypes validation function for the `" + Z + "` prop on `" + Q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
10691
|
-
), P[ze] = !0,
|
|
10691
|
+
), P[ze] = !0, B++);
|
|
10692
10692
|
}
|
|
10693
10693
|
}
|
|
10694
|
-
return z[
|
|
10694
|
+
return z[I] == null ? K ? z[I] === null ? new m("The " + X + " `" + Z + "` is marked as required " + ("in `" + Q + "`, but its value is `null`.")) : new m("The " + X + " `" + Z + "` is marked as required in " + ("`" + Q + "`, but its value is `undefined`.")) : null : C(z, I, Q, X, Z);
|
|
10695
10695
|
}
|
|
10696
10696
|
var _ = S.bind(null, !1);
|
|
10697
10697
|
return _.isRequired = S.bind(null, !0), _;
|
|
10698
10698
|
}
|
|
10699
|
-
function w(
|
|
10700
|
-
function P(
|
|
10701
|
-
var Q =
|
|
10702
|
-
if (X !==
|
|
10699
|
+
function w(C) {
|
|
10700
|
+
function P(B, S, _, K, z, I) {
|
|
10701
|
+
var Q = B[S], X = Y(Q);
|
|
10702
|
+
if (X !== C) {
|
|
10703
10703
|
var Z = ne(Q);
|
|
10704
10704
|
return new m(
|
|
10705
|
-
"Invalid " + K + " `" + z + "` of type " + ("`" + Z + "` supplied to `" + _ + "`, expected ") + ("`" +
|
|
10706
|
-
{ expectedType:
|
|
10705
|
+
"Invalid " + K + " `" + z + "` of type " + ("`" + Z + "` supplied to `" + _ + "`, expected ") + ("`" + C + "`."),
|
|
10706
|
+
{ expectedType: C }
|
|
10707
10707
|
);
|
|
10708
10708
|
}
|
|
10709
10709
|
return null;
|
|
10710
10710
|
}
|
|
10711
10711
|
return g(P);
|
|
10712
10712
|
}
|
|
10713
|
-
function
|
|
10713
|
+
function E() {
|
|
10714
10714
|
return g(i);
|
|
10715
10715
|
}
|
|
10716
|
-
function y(
|
|
10717
|
-
function P(
|
|
10718
|
-
if (typeof
|
|
10716
|
+
function y(C) {
|
|
10717
|
+
function P(B, S, _, K, z) {
|
|
10718
|
+
if (typeof C != "function")
|
|
10719
10719
|
return new m("Property `" + z + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
|
|
10720
|
-
var
|
|
10721
|
-
if (!Array.isArray(
|
|
10722
|
-
var Q = Y(
|
|
10720
|
+
var I = B[S];
|
|
10721
|
+
if (!Array.isArray(I)) {
|
|
10722
|
+
var Q = Y(I);
|
|
10723
10723
|
return new m("Invalid " + K + " `" + z + "` of type " + ("`" + Q + "` supplied to `" + _ + "`, expected an array."));
|
|
10724
10724
|
}
|
|
10725
|
-
for (var X = 0; X <
|
|
10726
|
-
var Z =
|
|
10725
|
+
for (var X = 0; X < I.length; X++) {
|
|
10726
|
+
var Z = C(I, X, _, K, z + "[" + X + "]", n);
|
|
10727
10727
|
if (Z instanceof Error)
|
|
10728
10728
|
return Z;
|
|
10729
10729
|
}
|
|
@@ -10731,65 +10731,65 @@ function Xb() {
|
|
|
10731
10731
|
}
|
|
10732
10732
|
return g(P);
|
|
10733
10733
|
}
|
|
10734
|
-
function
|
|
10735
|
-
function
|
|
10736
|
-
var z = P[
|
|
10734
|
+
function x() {
|
|
10735
|
+
function C(P, B, S, _, K) {
|
|
10736
|
+
var z = P[B];
|
|
10737
10737
|
if (!a(z)) {
|
|
10738
|
-
var
|
|
10739
|
-
return new m("Invalid " + _ + " `" + K + "` of type " + ("`" +
|
|
10738
|
+
var I = Y(z);
|
|
10739
|
+
return new m("Invalid " + _ + " `" + K + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected a single ReactElement."));
|
|
10740
10740
|
}
|
|
10741
10741
|
return null;
|
|
10742
10742
|
}
|
|
10743
|
-
return g(
|
|
10743
|
+
return g(C);
|
|
10744
10744
|
}
|
|
10745
10745
|
function v() {
|
|
10746
|
-
function
|
|
10747
|
-
var z = P[
|
|
10746
|
+
function C(P, B, S, _, K) {
|
|
10747
|
+
var z = P[B];
|
|
10748
10748
|
if (!e.isValidElementType(z)) {
|
|
10749
|
-
var
|
|
10750
|
-
return new m("Invalid " + _ + " `" + K + "` of type " + ("`" +
|
|
10749
|
+
var I = Y(z);
|
|
10750
|
+
return new m("Invalid " + _ + " `" + K + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected a single ReactElement type."));
|
|
10751
10751
|
}
|
|
10752
10752
|
return null;
|
|
10753
10753
|
}
|
|
10754
|
-
return g(
|
|
10754
|
+
return g(C);
|
|
10755
10755
|
}
|
|
10756
|
-
function
|
|
10757
|
-
function P(
|
|
10758
|
-
if (!(
|
|
10759
|
-
var
|
|
10760
|
-
return new m("Invalid " + K + " `" + z + "` of type " + ("`" + Q + "` supplied to `" + _ + "`, expected ") + ("instance of `" +
|
|
10756
|
+
function R(C) {
|
|
10757
|
+
function P(B, S, _, K, z) {
|
|
10758
|
+
if (!(B[S] instanceof C)) {
|
|
10759
|
+
var I = C.name || h, Q = V(B[S]);
|
|
10760
|
+
return new m("Invalid " + K + " `" + z + "` of type " + ("`" + Q + "` supplied to `" + _ + "`, expected ") + ("instance of `" + I + "`."));
|
|
10761
10761
|
}
|
|
10762
10762
|
return null;
|
|
10763
10763
|
}
|
|
10764
10764
|
return g(P);
|
|
10765
10765
|
}
|
|
10766
|
-
function
|
|
10767
|
-
if (!Array.isArray(
|
|
10766
|
+
function H(C) {
|
|
10767
|
+
if (!Array.isArray(C))
|
|
10768
10768
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
10769
10769
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
10770
10770
|
) : s("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
10771
|
-
function P(
|
|
10772
|
-
for (var
|
|
10773
|
-
if (b(
|
|
10771
|
+
function P(B, S, _, K, z) {
|
|
10772
|
+
for (var I = B[S], Q = 0; Q < C.length; Q++)
|
|
10773
|
+
if (b(I, C[Q]))
|
|
10774
10774
|
return null;
|
|
10775
|
-
var X = JSON.stringify(
|
|
10776
|
-
var ze = ne(
|
|
10777
|
-
return ze === "symbol" ? String(
|
|
10775
|
+
var X = JSON.stringify(C, function(xe, $) {
|
|
10776
|
+
var ze = ne($);
|
|
10777
|
+
return ze === "symbol" ? String($) : $;
|
|
10778
10778
|
});
|
|
10779
|
-
return new m("Invalid " + K + " `" + z + "` of value `" + String(
|
|
10779
|
+
return new m("Invalid " + K + " `" + z + "` of value `" + String(I) + "` " + ("supplied to `" + _ + "`, expected one of " + X + "."));
|
|
10780
10780
|
}
|
|
10781
10781
|
return g(P);
|
|
10782
10782
|
}
|
|
10783
|
-
function A(
|
|
10784
|
-
function P(
|
|
10785
|
-
if (typeof
|
|
10783
|
+
function A(C) {
|
|
10784
|
+
function P(B, S, _, K, z) {
|
|
10785
|
+
if (typeof C != "function")
|
|
10786
10786
|
return new m("Property `" + z + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
|
|
10787
|
-
var
|
|
10787
|
+
var I = B[S], Q = Y(I);
|
|
10788
10788
|
if (Q !== "object")
|
|
10789
10789
|
return new m("Invalid " + K + " `" + z + "` of type " + ("`" + Q + "` supplied to `" + _ + "`, expected an object."));
|
|
10790
|
-
for (var X in
|
|
10791
|
-
if (r(
|
|
10792
|
-
var Z =
|
|
10790
|
+
for (var X in I)
|
|
10791
|
+
if (r(I, X)) {
|
|
10792
|
+
var Z = C(I, X, _, K, z + "." + X, n);
|
|
10793
10793
|
if (Z instanceof Error)
|
|
10794
10794
|
return Z;
|
|
10795
10795
|
}
|
|
@@ -10797,49 +10797,49 @@ function Xb() {
|
|
|
10797
10797
|
}
|
|
10798
10798
|
return g(P);
|
|
10799
10799
|
}
|
|
10800
|
-
function
|
|
10801
|
-
if (!Array.isArray(
|
|
10800
|
+
function W(C) {
|
|
10801
|
+
if (!Array.isArray(C))
|
|
10802
10802
|
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
10803
|
-
for (var P = 0; P <
|
|
10804
|
-
var
|
|
10805
|
-
if (typeof
|
|
10803
|
+
for (var P = 0; P < C.length; P++) {
|
|
10804
|
+
var B = C[P];
|
|
10805
|
+
if (typeof B != "function")
|
|
10806
10806
|
return s(
|
|
10807
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + O(
|
|
10807
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + O(B) + " at index " + P + "."
|
|
10808
10808
|
), i;
|
|
10809
10809
|
}
|
|
10810
|
-
function S(_, K, z,
|
|
10811
|
-
for (var X = [], Z = 0; Z <
|
|
10812
|
-
var xe =
|
|
10813
|
-
if (
|
|
10810
|
+
function S(_, K, z, I, Q) {
|
|
10811
|
+
for (var X = [], Z = 0; Z < C.length; Z++) {
|
|
10812
|
+
var xe = C[Z], $ = xe(_, K, z, I, Q, n);
|
|
10813
|
+
if ($ == null)
|
|
10814
10814
|
return null;
|
|
10815
|
-
|
|
10815
|
+
$.data && r($.data, "expectedType") && X.push($.data.expectedType);
|
|
10816
10816
|
}
|
|
10817
10817
|
var ze = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
10818
|
-
return new m("Invalid " +
|
|
10818
|
+
return new m("Invalid " + I + " `" + Q + "` supplied to " + ("`" + z + "`" + ze + "."));
|
|
10819
10819
|
}
|
|
10820
10820
|
return g(S);
|
|
10821
10821
|
}
|
|
10822
10822
|
function G() {
|
|
10823
|
-
function
|
|
10824
|
-
return pe(P[
|
|
10823
|
+
function C(P, B, S, _, K) {
|
|
10824
|
+
return pe(P[B]) ? null : new m("Invalid " + _ + " `" + K + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
|
|
10825
10825
|
}
|
|
10826
|
-
return g(
|
|
10826
|
+
return g(C);
|
|
10827
10827
|
}
|
|
10828
|
-
function
|
|
10828
|
+
function ue(C, P, B, S, _) {
|
|
10829
10829
|
return new m(
|
|
10830
|
-
(
|
|
10830
|
+
(C || "React class") + ": " + P + " type `" + B + "." + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
|
|
10831
10831
|
);
|
|
10832
10832
|
}
|
|
10833
|
-
function de(
|
|
10834
|
-
function P(
|
|
10835
|
-
var
|
|
10833
|
+
function de(C) {
|
|
10834
|
+
function P(B, S, _, K, z) {
|
|
10835
|
+
var I = B[S], Q = Y(I);
|
|
10836
10836
|
if (Q !== "object")
|
|
10837
10837
|
return new m("Invalid " + K + " `" + z + "` of type `" + Q + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
10838
|
-
for (var X in
|
|
10839
|
-
var Z =
|
|
10838
|
+
for (var X in C) {
|
|
10839
|
+
var Z = C[X];
|
|
10840
10840
|
if (typeof Z != "function")
|
|
10841
|
-
return
|
|
10842
|
-
var xe = Z(
|
|
10841
|
+
return ue(_, K, z, X, ne(Z));
|
|
10842
|
+
var xe = Z(I, X, _, K, z + "." + X, n);
|
|
10843
10843
|
if (xe)
|
|
10844
10844
|
return xe;
|
|
10845
10845
|
}
|
|
@@ -10847,51 +10847,51 @@ function Xb() {
|
|
|
10847
10847
|
}
|
|
10848
10848
|
return g(P);
|
|
10849
10849
|
}
|
|
10850
|
-
function se(
|
|
10851
|
-
function P(
|
|
10852
|
-
var
|
|
10850
|
+
function se(C) {
|
|
10851
|
+
function P(B, S, _, K, z) {
|
|
10852
|
+
var I = B[S], Q = Y(I);
|
|
10853
10853
|
if (Q !== "object")
|
|
10854
10854
|
return new m("Invalid " + K + " `" + z + "` of type `" + Q + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
10855
|
-
var X = t({},
|
|
10855
|
+
var X = t({}, B[S], C);
|
|
10856
10856
|
for (var Z in X) {
|
|
10857
|
-
var xe =
|
|
10858
|
-
if (r(
|
|
10859
|
-
return
|
|
10857
|
+
var xe = C[Z];
|
|
10858
|
+
if (r(C, Z) && typeof xe != "function")
|
|
10859
|
+
return ue(_, K, z, Z, ne(xe));
|
|
10860
10860
|
if (!xe)
|
|
10861
10861
|
return new m(
|
|
10862
|
-
"Invalid " + K + " `" + z + "` key `" + Z + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(
|
|
10863
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
10862
|
+
"Invalid " + K + " `" + z + "` key `" + Z + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(B[S], null, " ") + `
|
|
10863
|
+
Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
10864
10864
|
);
|
|
10865
|
-
var
|
|
10866
|
-
if (
|
|
10867
|
-
return
|
|
10865
|
+
var $ = xe(I, Z, _, K, z + "." + Z, n);
|
|
10866
|
+
if ($)
|
|
10867
|
+
return $;
|
|
10868
10868
|
}
|
|
10869
10869
|
return null;
|
|
10870
10870
|
}
|
|
10871
10871
|
return g(P);
|
|
10872
10872
|
}
|
|
10873
|
-
function pe(
|
|
10874
|
-
switch (typeof
|
|
10873
|
+
function pe(C) {
|
|
10874
|
+
switch (typeof C) {
|
|
10875
10875
|
case "number":
|
|
10876
10876
|
case "string":
|
|
10877
10877
|
case "undefined":
|
|
10878
10878
|
return !0;
|
|
10879
10879
|
case "boolean":
|
|
10880
|
-
return !
|
|
10880
|
+
return !C;
|
|
10881
10881
|
case "object":
|
|
10882
|
-
if (Array.isArray(
|
|
10883
|
-
return
|
|
10884
|
-
if (
|
|
10882
|
+
if (Array.isArray(C))
|
|
10883
|
+
return C.every(pe);
|
|
10884
|
+
if (C === null || a(C))
|
|
10885
10885
|
return !0;
|
|
10886
|
-
var P = f(
|
|
10886
|
+
var P = f(C);
|
|
10887
10887
|
if (P) {
|
|
10888
|
-
var
|
|
10889
|
-
if (P !==
|
|
10890
|
-
for (; !(S =
|
|
10888
|
+
var B = P.call(C), S;
|
|
10889
|
+
if (P !== C.entries) {
|
|
10890
|
+
for (; !(S = B.next()).done; )
|
|
10891
10891
|
if (!pe(S.value))
|
|
10892
10892
|
return !1;
|
|
10893
10893
|
} else
|
|
10894
|
-
for (; !(S =
|
|
10894
|
+
for (; !(S = B.next()).done; ) {
|
|
10895
10895
|
var _ = S.value;
|
|
10896
10896
|
if (_ && !pe(_[1]))
|
|
10897
10897
|
return !1;
|
|
@@ -10903,27 +10903,27 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
|
10903
10903
|
return !1;
|
|
10904
10904
|
}
|
|
10905
10905
|
}
|
|
10906
|
-
function
|
|
10907
|
-
return
|
|
10906
|
+
function q(C, P) {
|
|
10907
|
+
return C === "symbol" ? !0 : P ? P["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && P instanceof Symbol : !1;
|
|
10908
10908
|
}
|
|
10909
|
-
function Y(
|
|
10910
|
-
var P = typeof
|
|
10911
|
-
return Array.isArray(
|
|
10909
|
+
function Y(C) {
|
|
10910
|
+
var P = typeof C;
|
|
10911
|
+
return Array.isArray(C) ? "array" : C instanceof RegExp ? "object" : q(P, C) ? "symbol" : P;
|
|
10912
10912
|
}
|
|
10913
|
-
function ne(
|
|
10914
|
-
if (typeof
|
|
10915
|
-
return "" +
|
|
10916
|
-
var P = Y(
|
|
10913
|
+
function ne(C) {
|
|
10914
|
+
if (typeof C > "u" || C === null)
|
|
10915
|
+
return "" + C;
|
|
10916
|
+
var P = Y(C);
|
|
10917
10917
|
if (P === "object") {
|
|
10918
|
-
if (
|
|
10918
|
+
if (C instanceof Date)
|
|
10919
10919
|
return "date";
|
|
10920
|
-
if (
|
|
10920
|
+
if (C instanceof RegExp)
|
|
10921
10921
|
return "regexp";
|
|
10922
10922
|
}
|
|
10923
10923
|
return P;
|
|
10924
10924
|
}
|
|
10925
|
-
function O(
|
|
10926
|
-
var P = ne(
|
|
10925
|
+
function O(C) {
|
|
10926
|
+
var P = ne(C);
|
|
10927
10927
|
switch (P) {
|
|
10928
10928
|
case "array":
|
|
10929
10929
|
case "object":
|
|
@@ -10936,8 +10936,8 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
|
10936
10936
|
return P;
|
|
10937
10937
|
}
|
|
10938
10938
|
}
|
|
10939
|
-
function V(
|
|
10940
|
-
return !
|
|
10939
|
+
function V(C) {
|
|
10940
|
+
return !C.constructor || !C.constructor.name ? h : C.constructor.name;
|
|
10941
10941
|
}
|
|
10942
10942
|
return d.checkPropTypes = o, d.resetWarningCache = o.resetWarningCache, d.PropTypes = d, d;
|
|
10943
10943
|
}, Wo;
|
|
@@ -11083,7 +11083,7 @@ function sv() {
|
|
|
11083
11083
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
11084
11084
|
}
|
|
11085
11085
|
function iv(e) {
|
|
11086
|
-
var t, n = e.beat, r = e.fade, o = e.beatFade, s = e.bounce, i = e.shake, a = e.flash, l = e.spin, c = e.spinPulse, u = e.spinReverse, f = e.pulse, h = e.fixedWidth, d = e.inverse, b = e.border, m = e.listItem, g = e.flip, w = e.size,
|
|
11086
|
+
var t, n = e.beat, r = e.fade, o = e.beatFade, s = e.bounce, i = e.shake, a = e.flash, l = e.spin, c = e.spinPulse, u = e.spinReverse, f = e.pulse, h = e.fixedWidth, d = e.inverse, b = e.border, m = e.listItem, g = e.flip, w = e.size, E = e.rotation, y = e.pull, x = (t = {
|
|
11087
11087
|
"fa-beat": n,
|
|
11088
11088
|
"fa-fade": r,
|
|
11089
11089
|
"fa-beat-fade": o,
|
|
@@ -11101,9 +11101,9 @@ function iv(e) {
|
|
|
11101
11101
|
"fa-flip": g === !0,
|
|
11102
11102
|
"fa-flip-horizontal": g === "horizontal" || g === "both",
|
|
11103
11103
|
"fa-flip-vertical": g === "vertical" || g === "both"
|
|
11104
|
-
}, yn(t, "fa-".concat(w), typeof w < "u" && w !== null), yn(t, "fa-rotate-".concat(
|
|
11105
|
-
return Object.keys(
|
|
11106
|
-
return
|
|
11104
|
+
}, yn(t, "fa-".concat(w), typeof w < "u" && w !== null), yn(t, "fa-rotate-".concat(E), typeof E < "u" && E !== null && E !== 0), yn(t, "fa-pull-".concat(y), typeof y < "u" && y !== null), yn(t, "fa-swap-opacity", e.swapOpacity), t);
|
|
11105
|
+
return Object.keys(x).map(function(v) {
|
|
11106
|
+
return x[v] ? v : null;
|
|
11107
11107
|
}).filter(function(v) {
|
|
11108
11108
|
return v;
|
|
11109
11109
|
});
|
|
@@ -11367,23 +11367,23 @@ function vv(e) {
|
|
|
11367
11367
|
var yv = typeof document < "u", wv = function() {
|
|
11368
11368
|
}, qs = yv ? Gs : wv;
|
|
11369
11369
|
const xv = {
|
|
11370
|
-
|
|
11370
|
+
...F
|
|
11371
11371
|
}, Ev = xv.useInsertionEffect, Cv = Ev || ((e) => e());
|
|
11372
11372
|
function bn(e) {
|
|
11373
|
-
const t =
|
|
11373
|
+
const t = F.useRef(() => {
|
|
11374
11374
|
if (process.env.NODE_ENV !== "production")
|
|
11375
11375
|
throw new Error("Cannot call an event handler while rendering.");
|
|
11376
11376
|
});
|
|
11377
11377
|
return Cv(() => {
|
|
11378
11378
|
t.current = e;
|
|
11379
|
-
}),
|
|
11379
|
+
}), F.useCallback(function() {
|
|
11380
11380
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
11381
11381
|
r[o] = arguments[o];
|
|
11382
11382
|
return t.current == null ? void 0 : t.current(...r);
|
|
11383
11383
|
}, []);
|
|
11384
11384
|
}
|
|
11385
11385
|
const Tv = "data-floating-ui-focusable", Ya = "active", Ka = "selected", Ov = {
|
|
11386
|
-
|
|
11386
|
+
...F
|
|
11387
11387
|
};
|
|
11388
11388
|
let Qa = !1, Pv = 0;
|
|
11389
11389
|
const Xa = () => (
|
|
@@ -11392,10 +11392,10 @@ const Xa = () => (
|
|
|
11392
11392
|
"floating-ui-" + Math.random().toString(36).slice(2, 6) + Pv++
|
|
11393
11393
|
);
|
|
11394
11394
|
function Sv() {
|
|
11395
|
-
const [e, t] =
|
|
11395
|
+
const [e, t] = F.useState(() => Qa ? Xa() : void 0);
|
|
11396
11396
|
return qs(() => {
|
|
11397
11397
|
e == null && t(Xa());
|
|
11398
|
-
}, []),
|
|
11398
|
+
}, []), F.useEffect(() => {
|
|
11399
11399
|
Qa = !0;
|
|
11400
11400
|
}, []), e;
|
|
11401
11401
|
}
|
|
@@ -11427,10 +11427,10 @@ function $v() {
|
|
|
11427
11427
|
}
|
|
11428
11428
|
};
|
|
11429
11429
|
}
|
|
11430
|
-
const Fv = /* @__PURE__ */
|
|
11430
|
+
const Fv = /* @__PURE__ */ F.createContext(null), Iv = /* @__PURE__ */ F.createContext(null), Nv = () => {
|
|
11431
11431
|
var e;
|
|
11432
|
-
return ((e =
|
|
11433
|
-
}, Mu = () =>
|
|
11432
|
+
return ((e = F.useContext(Fv)) == null ? void 0 : e.id) || null;
|
|
11433
|
+
}, Mu = () => F.useContext(Iv);
|
|
11434
11434
|
function Lv(e) {
|
|
11435
11435
|
return "data-floating-ui-" + e;
|
|
11436
11436
|
}
|
|
@@ -11469,103 +11469,103 @@ function jv(e, t) {
|
|
|
11469
11469
|
ancestorScroll: h = !1,
|
|
11470
11470
|
bubbles: d,
|
|
11471
11471
|
capture: b
|
|
11472
|
-
} = t, m = Mu(), g = bn(typeof l == "function" ? l : () => !1), w = typeof l == "function" ? g : l,
|
|
11472
|
+
} = t, m = Mu(), g = bn(typeof l == "function" ? l : () => !1), w = typeof l == "function" ? g : l, E = F.useRef(!1), {
|
|
11473
11473
|
escapeKey: y,
|
|
11474
|
-
outsidePress:
|
|
11474
|
+
outsidePress: x
|
|
11475
11475
|
} = Ja(d), {
|
|
11476
11476
|
escapeKey: v,
|
|
11477
|
-
outsidePress:
|
|
11478
|
-
} = Ja(b),
|
|
11477
|
+
outsidePress: R
|
|
11478
|
+
} = Ja(b), H = F.useRef(!1), A = F.useRef(-1), W = bn((q) => {
|
|
11479
11479
|
var Y;
|
|
11480
|
-
if (!n || !i || !a ||
|
|
11480
|
+
if (!n || !i || !a || q.key !== "Escape" || H.current)
|
|
11481
11481
|
return;
|
|
11482
11482
|
const ne = (Y = s.current.floatingContext) == null ? void 0 : Y.nodeId, O = m ? Yo(m.nodesRef.current, ne) : [];
|
|
11483
|
-
if (!y && (
|
|
11483
|
+
if (!y && (q.stopPropagation(), O.length > 0)) {
|
|
11484
11484
|
let V = !0;
|
|
11485
|
-
if (O.forEach((
|
|
11485
|
+
if (O.forEach((C) => {
|
|
11486
11486
|
var P;
|
|
11487
|
-
if ((P =
|
|
11487
|
+
if ((P = C.context) != null && P.open && !C.context.dataRef.current.__escapeKeyBubbles) {
|
|
11488
11488
|
V = !1;
|
|
11489
11489
|
return;
|
|
11490
11490
|
}
|
|
11491
11491
|
}), !V)
|
|
11492
11492
|
return;
|
|
11493
11493
|
}
|
|
11494
|
-
r(!1, vv(
|
|
11495
|
-
}), G = bn((
|
|
11494
|
+
r(!1, vv(q) ? q.nativeEvent : q, "escape-key");
|
|
11495
|
+
}), G = bn((q) => {
|
|
11496
11496
|
var Y;
|
|
11497
11497
|
const ne = () => {
|
|
11498
11498
|
var O;
|
|
11499
|
-
|
|
11499
|
+
W(q), (O = Gn(q)) == null || O.removeEventListener("keydown", ne);
|
|
11500
11500
|
};
|
|
11501
|
-
(Y = Gn(
|
|
11502
|
-
}),
|
|
11501
|
+
(Y = Gn(q)) == null || Y.addEventListener("keydown", ne);
|
|
11502
|
+
}), ue = bn((q) => {
|
|
11503
11503
|
var Y;
|
|
11504
11504
|
const ne = s.current.insideReactTree;
|
|
11505
11505
|
s.current.insideReactTree = !1;
|
|
11506
|
-
const O =
|
|
11507
|
-
if (
|
|
11506
|
+
const O = E.current;
|
|
11507
|
+
if (E.current = !1, c === "click" && O || ne || typeof w == "function" && !w(q))
|
|
11508
11508
|
return;
|
|
11509
|
-
const V = Gn(
|
|
11510
|
-
let
|
|
11511
|
-
for (;
|
|
11512
|
-
const z = gt(
|
|
11509
|
+
const V = Gn(q), C = "[" + Lv("inert") + "]", P = Ga(o.floating).querySelectorAll(C);
|
|
11510
|
+
let B = ye(V) ? V : null;
|
|
11511
|
+
for (; B && !ht(B); ) {
|
|
11512
|
+
const z = gt(B);
|
|
11513
11513
|
if (ht(z) || !ye(z))
|
|
11514
11514
|
break;
|
|
11515
|
-
|
|
11515
|
+
B = z;
|
|
11516
11516
|
}
|
|
11517
11517
|
if (P.length && ye(V) && !bv(V) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
11518
11518
|
!Va(V, o.floating) && // If the target root element contains none of the markers, then the
|
|
11519
11519
|
// element was injected after the floating element rendered.
|
|
11520
|
-
Array.from(P).every((z) => !Va(
|
|
11520
|
+
Array.from(P).every((z) => !Va(B, z)))
|
|
11521
11521
|
return;
|
|
11522
11522
|
if (Qe(V) && pe) {
|
|
11523
|
-
const z = ht(V),
|
|
11523
|
+
const z = ht(V), I = We(V), Q = /auto|scroll/, X = z || Q.test(I.overflowX), Z = z || Q.test(I.overflowY), xe = X && V.clientWidth > 0 && V.scrollWidth > V.clientWidth, $ = Z && V.clientHeight > 0 && V.scrollHeight > V.clientHeight, ze = I.direction === "rtl", mn = $ && (ze ? q.offsetX <= V.offsetWidth - V.clientWidth : q.offsetX > V.clientWidth), Tr = xe && q.offsetY > V.clientHeight;
|
|
11524
11524
|
if (mn || Tr)
|
|
11525
11525
|
return;
|
|
11526
11526
|
}
|
|
11527
11527
|
const S = (Y = s.current.floatingContext) == null ? void 0 : Y.nodeId, _ = m && Yo(m.nodesRef.current, S).some((z) => {
|
|
11528
|
-
var
|
|
11529
|
-
return Go(
|
|
11528
|
+
var I;
|
|
11529
|
+
return Go(q, (I = z.context) == null ? void 0 : I.elements.floating);
|
|
11530
11530
|
});
|
|
11531
|
-
if (Go(
|
|
11531
|
+
if (Go(q, o.floating) || Go(q, o.domReference) || _)
|
|
11532
11532
|
return;
|
|
11533
11533
|
const K = m ? Yo(m.nodesRef.current, S) : [];
|
|
11534
11534
|
if (K.length > 0) {
|
|
11535
11535
|
let z = !0;
|
|
11536
|
-
if (K.forEach((
|
|
11536
|
+
if (K.forEach((I) => {
|
|
11537
11537
|
var Q;
|
|
11538
|
-
if ((Q =
|
|
11538
|
+
if ((Q = I.context) != null && Q.open && !I.context.dataRef.current.__outsidePressBubbles) {
|
|
11539
11539
|
z = !1;
|
|
11540
11540
|
return;
|
|
11541
11541
|
}
|
|
11542
11542
|
}), !z)
|
|
11543
11543
|
return;
|
|
11544
11544
|
}
|
|
11545
|
-
r(!1,
|
|
11546
|
-
}), de = bn((
|
|
11545
|
+
r(!1, q, "outside-press");
|
|
11546
|
+
}), de = bn((q) => {
|
|
11547
11547
|
var Y;
|
|
11548
11548
|
const ne = () => {
|
|
11549
11549
|
var O;
|
|
11550
|
-
|
|
11550
|
+
ue(q), (O = Gn(q)) == null || O.removeEventListener(c, ne);
|
|
11551
11551
|
};
|
|
11552
|
-
(Y = Gn(
|
|
11552
|
+
(Y = Gn(q)) == null || Y.addEventListener(c, ne);
|
|
11553
11553
|
});
|
|
11554
|
-
|
|
11554
|
+
F.useEffect(() => {
|
|
11555
11555
|
if (!n || !i)
|
|
11556
11556
|
return;
|
|
11557
|
-
s.current.__escapeKeyBubbles = y, s.current.__outsidePressBubbles =
|
|
11558
|
-
let
|
|
11557
|
+
s.current.__escapeKeyBubbles = y, s.current.__outsidePressBubbles = x;
|
|
11558
|
+
let q = -1;
|
|
11559
11559
|
function Y(P) {
|
|
11560
11560
|
r(!1, P, "ancestor-scroll");
|
|
11561
11561
|
}
|
|
11562
11562
|
function ne() {
|
|
11563
|
-
window.clearTimeout(
|
|
11563
|
+
window.clearTimeout(q), H.current = !0;
|
|
11564
11564
|
}
|
|
11565
11565
|
function O() {
|
|
11566
|
-
|
|
11566
|
+
q = window.setTimeout(
|
|
11567
11567
|
() => {
|
|
11568
|
-
|
|
11568
|
+
H.current = !1;
|
|
11569
11569
|
},
|
|
11570
11570
|
// 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
|
|
11571
11571
|
// Only apply to WebKit for the test to remain 0ms.
|
|
@@ -11573,42 +11573,42 @@ function jv(e, t) {
|
|
|
11573
11573
|
);
|
|
11574
11574
|
}
|
|
11575
11575
|
const V = Ga(o.floating);
|
|
11576
|
-
a && (V.addEventListener("keydown", v ? G :
|
|
11577
|
-
let
|
|
11578
|
-
return h && (ye(o.domReference) && (
|
|
11579
|
-
var
|
|
11580
|
-
return P !== ((
|
|
11581
|
-
}),
|
|
11576
|
+
a && (V.addEventListener("keydown", v ? G : W, v), V.addEventListener("compositionstart", ne), V.addEventListener("compositionend", O)), w && V.addEventListener(c, R ? de : ue, R);
|
|
11577
|
+
let C = [];
|
|
11578
|
+
return h && (ye(o.domReference) && (C = En(o.domReference)), ye(o.floating) && (C = C.concat(En(o.floating))), !ye(o.reference) && o.reference && o.reference.contextElement && (C = C.concat(En(o.reference.contextElement)))), C = C.filter((P) => {
|
|
11579
|
+
var B;
|
|
11580
|
+
return P !== ((B = V.defaultView) == null ? void 0 : B.visualViewport);
|
|
11581
|
+
}), C.forEach((P) => {
|
|
11582
11582
|
P.addEventListener("scroll", Y, {
|
|
11583
11583
|
passive: !0
|
|
11584
11584
|
});
|
|
11585
11585
|
}), () => {
|
|
11586
|
-
a && (V.removeEventListener("keydown", v ? G :
|
|
11586
|
+
a && (V.removeEventListener("keydown", v ? G : W, v), V.removeEventListener("compositionstart", ne), V.removeEventListener("compositionend", O)), w && V.removeEventListener(c, R ? de : ue, R), C.forEach((P) => {
|
|
11587
11587
|
P.removeEventListener("scroll", Y);
|
|
11588
|
-
}), window.clearTimeout(
|
|
11588
|
+
}), window.clearTimeout(q);
|
|
11589
11589
|
};
|
|
11590
|
-
}, [s, o, a, w, c, n, r, h, i, y,
|
|
11590
|
+
}, [s, o, a, w, c, n, r, h, i, y, x, W, v, G, ue, R, de]), F.useEffect(() => {
|
|
11591
11591
|
s.current.insideReactTree = !1;
|
|
11592
11592
|
}, [s, w, c]);
|
|
11593
|
-
const se =
|
|
11594
|
-
onKeyDown:
|
|
11593
|
+
const se = F.useMemo(() => ({
|
|
11594
|
+
onKeyDown: W,
|
|
11595
11595
|
...u && {
|
|
11596
|
-
[_v[f]]: (
|
|
11597
|
-
r(!1,
|
|
11596
|
+
[_v[f]]: (q) => {
|
|
11597
|
+
r(!1, q.nativeEvent, "reference-press");
|
|
11598
11598
|
},
|
|
11599
11599
|
...f !== "click" && {
|
|
11600
|
-
onClick(
|
|
11601
|
-
r(!1,
|
|
11600
|
+
onClick(q) {
|
|
11601
|
+
r(!1, q.nativeEvent, "reference-press");
|
|
11602
11602
|
}
|
|
11603
11603
|
}
|
|
11604
11604
|
}
|
|
11605
|
-
}), [
|
|
11606
|
-
onKeyDown:
|
|
11605
|
+
}), [W, r, u, f]), pe = F.useMemo(() => ({
|
|
11606
|
+
onKeyDown: W,
|
|
11607
11607
|
onMouseDown() {
|
|
11608
|
-
|
|
11608
|
+
E.current = !0;
|
|
11609
11609
|
},
|
|
11610
11610
|
onMouseUp() {
|
|
11611
|
-
|
|
11611
|
+
E.current = !0;
|
|
11612
11612
|
},
|
|
11613
11613
|
[Dv[c]]: () => {
|
|
11614
11614
|
s.current.insideReactTree = !0;
|
|
@@ -11618,8 +11618,8 @@ function jv(e, t) {
|
|
|
11618
11618
|
s.current.insideReactTree = !1;
|
|
11619
11619
|
}));
|
|
11620
11620
|
}
|
|
11621
|
-
}), [
|
|
11622
|
-
return
|
|
11621
|
+
}), [W, c, s, m]);
|
|
11622
|
+
return F.useMemo(() => i ? {
|
|
11623
11623
|
reference: se,
|
|
11624
11624
|
floating: pe
|
|
11625
11625
|
} : {}, [i, se, pe]);
|
|
@@ -11629,26 +11629,26 @@ function zv(e) {
|
|
|
11629
11629
|
open: t = !1,
|
|
11630
11630
|
onOpenChange: n,
|
|
11631
11631
|
elements: r
|
|
11632
|
-
} = e, o = Av(), s =
|
|
11632
|
+
} = e, o = Av(), s = F.useRef({}), [i] = F.useState(() => $v()), a = Nv() != null;
|
|
11633
11633
|
if (process.env.NODE_ENV !== "production") {
|
|
11634
11634
|
const d = r.reference;
|
|
11635
11635
|
d && !ye(d) && Rv("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
11636
11636
|
}
|
|
11637
|
-
const [l, c] =
|
|
11637
|
+
const [l, c] = F.useState(r.reference), u = bn((d, b, m) => {
|
|
11638
11638
|
s.current.openEvent = d ? b : void 0, i.emit("openchange", {
|
|
11639
11639
|
open: d,
|
|
11640
11640
|
event: b,
|
|
11641
11641
|
reason: m,
|
|
11642
11642
|
nested: a
|
|
11643
11643
|
}), n == null || n(d, b, m);
|
|
11644
|
-
}), f =
|
|
11644
|
+
}), f = F.useMemo(() => ({
|
|
11645
11645
|
setPositionReference: c
|
|
11646
|
-
}), []), h =
|
|
11646
|
+
}), []), h = F.useMemo(() => ({
|
|
11647
11647
|
reference: l || r.reference || null,
|
|
11648
11648
|
floating: r.floating || null,
|
|
11649
11649
|
domReference: r.reference
|
|
11650
11650
|
}), [l, r.reference, r.floating]);
|
|
11651
|
-
return
|
|
11651
|
+
return F.useMemo(() => ({
|
|
11652
11652
|
dataRef: s,
|
|
11653
11653
|
open: t,
|
|
11654
11654
|
onOpenChange: u,
|
|
@@ -11669,7 +11669,7 @@ function Hv(e) {
|
|
|
11669
11669
|
floating: null,
|
|
11670
11670
|
...e.elements
|
|
11671
11671
|
}
|
|
11672
|
-
}), r = e.rootContext || n, o = r.elements, [s, i] =
|
|
11672
|
+
}), r = e.rootContext || n, o = r.elements, [s, i] = F.useState(null), [a, l] = F.useState(null), u = (o == null ? void 0 : o.domReference) || s, f = F.useRef(null), h = Mu();
|
|
11673
11673
|
qs(() => {
|
|
11674
11674
|
u && (f.current = u);
|
|
11675
11675
|
}, [u]);
|
|
@@ -11681,27 +11681,27 @@ function Hv(e) {
|
|
|
11681
11681
|
reference: a
|
|
11682
11682
|
}
|
|
11683
11683
|
}
|
|
11684
|
-
}), b =
|
|
11685
|
-
const
|
|
11684
|
+
}), b = F.useCallback((y) => {
|
|
11685
|
+
const x = ye(y) ? {
|
|
11686
11686
|
getBoundingClientRect: () => y.getBoundingClientRect(),
|
|
11687
11687
|
getClientRects: () => y.getClientRects(),
|
|
11688
11688
|
contextElement: y
|
|
11689
11689
|
} : y;
|
|
11690
|
-
l(
|
|
11691
|
-
}, [d.refs]), m =
|
|
11690
|
+
l(x), d.refs.setReference(x);
|
|
11691
|
+
}, [d.refs]), m = F.useCallback((y) => {
|
|
11692
11692
|
(ye(y) || y === null) && (f.current = y, i(y)), (ye(d.refs.reference.current) || d.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
11693
11693
|
// `null` to support `positionReference` + an unstable `reference`
|
|
11694
11694
|
// callback ref.
|
|
11695
11695
|
y !== null && !ye(y)) && d.refs.setReference(y);
|
|
11696
|
-
}, [d.refs]), g =
|
|
11696
|
+
}, [d.refs]), g = F.useMemo(() => ({
|
|
11697
11697
|
...d.refs,
|
|
11698
11698
|
setReference: m,
|
|
11699
11699
|
setPositionReference: b,
|
|
11700
11700
|
domReference: f
|
|
11701
|
-
}), [d.refs, m, b]), w =
|
|
11701
|
+
}), [d.refs, m, b]), w = F.useMemo(() => ({
|
|
11702
11702
|
...d.elements,
|
|
11703
11703
|
domReference: u
|
|
11704
|
-
}), [d.elements, u]),
|
|
11704
|
+
}), [d.elements, u]), E = F.useMemo(() => ({
|
|
11705
11705
|
...d,
|
|
11706
11706
|
...r,
|
|
11707
11707
|
refs: g,
|
|
@@ -11709,15 +11709,15 @@ function Hv(e) {
|
|
|
11709
11709
|
nodeId: t
|
|
11710
11710
|
}), [d, g, w, t, r]);
|
|
11711
11711
|
return qs(() => {
|
|
11712
|
-
r.dataRef.current.floatingContext =
|
|
11713
|
-
const y = h == null ? void 0 : h.nodesRef.current.find((
|
|
11714
|
-
y && (y.context =
|
|
11715
|
-
}),
|
|
11712
|
+
r.dataRef.current.floatingContext = E;
|
|
11713
|
+
const y = h == null ? void 0 : h.nodesRef.current.find((x) => x.id === t);
|
|
11714
|
+
y && (y.context = E);
|
|
11715
|
+
}), F.useMemo(() => ({
|
|
11716
11716
|
...d,
|
|
11717
|
-
context:
|
|
11717
|
+
context: E,
|
|
11718
11718
|
refs: g,
|
|
11719
11719
|
elements: w
|
|
11720
|
-
}), [d, g, w,
|
|
11720
|
+
}), [d, g, w, E]);
|
|
11721
11721
|
}
|
|
11722
11722
|
function Ko(e, t, n) {
|
|
11723
11723
|
const r = /* @__PURE__ */ new Map(), o = n === "item";
|
|
@@ -11758,20 +11758,20 @@ function Ko(e, t, n) {
|
|
|
11758
11758
|
}
|
|
11759
11759
|
function Uv(e) {
|
|
11760
11760
|
e === void 0 && (e = []);
|
|
11761
|
-
const t = e.map((a) => a == null ? void 0 : a.reference), n = e.map((a) => a == null ? void 0 : a.floating), r = e.map((a) => a == null ? void 0 : a.item), o =
|
|
11761
|
+
const t = e.map((a) => a == null ? void 0 : a.reference), n = e.map((a) => a == null ? void 0 : a.floating), r = e.map((a) => a == null ? void 0 : a.item), o = F.useCallback(
|
|
11762
11762
|
(a) => Ko(a, e, "reference"),
|
|
11763
11763
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11764
11764
|
t
|
|
11765
|
-
), s =
|
|
11765
|
+
), s = F.useCallback(
|
|
11766
11766
|
(a) => Ko(a, e, "floating"),
|
|
11767
11767
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11768
11768
|
n
|
|
11769
|
-
), i =
|
|
11769
|
+
), i = F.useCallback(
|
|
11770
11770
|
(a) => Ko(a, e, "item"),
|
|
11771
11771
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11772
11772
|
r
|
|
11773
11773
|
);
|
|
11774
|
-
return
|
|
11774
|
+
return F.useMemo(() => ({
|
|
11775
11775
|
getReferenceProps: o,
|
|
11776
11776
|
getFloatingProps: s,
|
|
11777
11777
|
getItemProps: i
|
|
@@ -11887,7 +11887,7 @@ const Bv = {
|
|
|
11887
11887
|
transitions: n,
|
|
11888
11888
|
onClick: r
|
|
11889
11889
|
}) => {
|
|
11890
|
-
const [o, s] =
|
|
11890
|
+
const [o, s] = ce(!1), { refs: i, floatingStyles: a, context: l } = Hv({
|
|
11891
11891
|
strategy: "fixed",
|
|
11892
11892
|
placement: "bottom-end",
|
|
11893
11893
|
open: o,
|
|
@@ -11952,6 +11952,7 @@ const Bv = {
|
|
|
11952
11952
|
}, [t]), /* @__PURE__ */ k("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ k(
|
|
11953
11953
|
"div",
|
|
11954
11954
|
{
|
|
11955
|
+
style: { display: "unset" },
|
|
11955
11956
|
className: "lexical-view-mode",
|
|
11956
11957
|
dangerouslySetInnerHTML: { __html: t }
|
|
11957
11958
|
}
|
|
@@ -12019,36 +12020,36 @@ const Bv = {
|
|
|
12019
12020
|
taskStyle: c,
|
|
12020
12021
|
listStickyTopBase: u
|
|
12021
12022
|
}) => {
|
|
12022
|
-
const [f, h] =
|
|
12023
|
+
const [f, h] = ce(!1), { taskDetails: d, prefetchQuery: b } = mv({
|
|
12023
12024
|
taskId: e.taskId,
|
|
12024
12025
|
playbookId: l,
|
|
12025
12026
|
enabled: i
|
|
12026
12027
|
}), { buttons: m } = Lf({
|
|
12027
12028
|
taskStatus: e.workflowStatus,
|
|
12028
12029
|
canStart: s
|
|
12029
|
-
}), g = he(() => e.imageRequired === 0 ? null : e.imageRequired === 1 ? Qo.SCREENSHOT : e.imageRequired === 2 ? Qo.PHOTO : null, [e.imageRequired]), w = async (
|
|
12030
|
+
}), g = he(() => e.imageRequired === 0 ? null : e.imageRequired === 1 ? Qo.SCREENSHOT : e.imageRequired === 2 ? Qo.PHOTO : null, [e.imageRequired]), w = async (E) => {
|
|
12030
12031
|
try {
|
|
12031
|
-
h(!0), await r(
|
|
12032
|
+
h(!0), await r(E);
|
|
12032
12033
|
} finally {
|
|
12033
12034
|
h(!1);
|
|
12034
12035
|
}
|
|
12035
12036
|
};
|
|
12036
12037
|
if (o === "list") {
|
|
12037
|
-
const
|
|
12038
|
-
const
|
|
12038
|
+
const E = he(() => e.workflowStatus === be.COMPLETED ? "success" : e.workflowStatus === be.IN_PROGRESS ? "primary" : "default", [e.workflowStatus]), y = he(() => {
|
|
12039
|
+
const x = [];
|
|
12039
12040
|
return m.forEach((v) => {
|
|
12040
|
-
v === "START" &&
|
|
12041
|
+
v === "START" && x.push({
|
|
12041
12042
|
id: "START",
|
|
12042
12043
|
color: "primary",
|
|
12043
12044
|
action: "Start",
|
|
12044
12045
|
to: be.IN_PROGRESS
|
|
12045
|
-
}), v === "COMPLETE" &&
|
|
12046
|
+
}), v === "COMPLETE" && x.push({
|
|
12046
12047
|
id: "COMPLETE",
|
|
12047
12048
|
color: "success",
|
|
12048
12049
|
action: "Complete",
|
|
12049
12050
|
to: be.COMPLETED
|
|
12050
12051
|
});
|
|
12051
|
-
}),
|
|
12052
|
+
}), x;
|
|
12052
12053
|
}, [m]);
|
|
12053
12054
|
return /* @__PURE__ */ me("div", { className: Oe("flex flex-col"), children: [
|
|
12054
12055
|
/* @__PURE__ */ me(
|
|
@@ -12086,10 +12087,10 @@ const Bv = {
|
|
|
12086
12087
|
Qv,
|
|
12087
12088
|
{
|
|
12088
12089
|
title: e.workflowStatus,
|
|
12089
|
-
variant:
|
|
12090
|
+
variant: E,
|
|
12090
12091
|
transitions: y,
|
|
12091
|
-
onClick: (
|
|
12092
|
-
r(
|
|
12092
|
+
onClick: (x) => {
|
|
12093
|
+
r(x);
|
|
12093
12094
|
}
|
|
12094
12095
|
}
|
|
12095
12096
|
)
|
|
@@ -12274,58 +12275,64 @@ const ju = ({
|
|
|
12274
12275
|
onTaskButtonClick: n,
|
|
12275
12276
|
playbookStyle: r
|
|
12276
12277
|
}) => {
|
|
12277
|
-
var
|
|
12278
|
-
const { playbookInstanceName: o, tasks: s } = e, i = oe(null), [a, l] =
|
|
12278
|
+
var m, g, w, E, y;
|
|
12279
|
+
const { playbookInstanceName: o, tasks: s } = e, i = oe(null), [a, l] = ce(0), [c, u] = ce(!1), f = () => {
|
|
12280
|
+
u(!c);
|
|
12281
|
+
}, { isTaskExpanded: h, toggleTaskExpanded: d } = Pl(
|
|
12279
12282
|
e.playbookInstanceId,
|
|
12280
12283
|
{
|
|
12281
12284
|
onTaskExpanded: () => {
|
|
12282
|
-
var
|
|
12285
|
+
var x, v;
|
|
12283
12286
|
console.log(
|
|
12284
12287
|
"Header height before update:",
|
|
12285
|
-
(
|
|
12286
|
-
), l(((
|
|
12288
|
+
(x = i.current) == null ? void 0 : x.offsetHeight
|
|
12289
|
+
), l(((v = i.current) == null ? void 0 : v.offsetHeight) || 0);
|
|
12287
12290
|
}
|
|
12288
12291
|
}
|
|
12289
12292
|
);
|
|
12290
|
-
Ee(() => (i.current && new ResizeObserver((
|
|
12291
|
-
var
|
|
12292
|
-
for (const
|
|
12293
|
-
console.log("ResizeObserver entry:",
|
|
12294
|
-
((
|
|
12293
|
+
Ee(() => (i.current && new ResizeObserver((v) => {
|
|
12294
|
+
var R;
|
|
12295
|
+
for (const H of v)
|
|
12296
|
+
console.log("ResizeObserver entry:", H), H.contentRect && l(
|
|
12297
|
+
((R = i.current) == null ? void 0 : R.offsetHeight) || 0
|
|
12295
12298
|
);
|
|
12296
12299
|
}).observe(i.current), () => {
|
|
12297
12300
|
i.current && new ResizeObserver(() => {
|
|
12298
12301
|
}).unobserve(i.current);
|
|
12299
12302
|
}), [i]);
|
|
12300
|
-
const
|
|
12301
|
-
const
|
|
12302
|
-
return console.log({ lastCompletedTask:
|
|
12303
|
+
const b = he(() => {
|
|
12304
|
+
const x = s.filter((v) => v.workflowStatus === be.COMPLETED).sort((v, R) => R.sequenceOrder - v.sequenceOrder)[0];
|
|
12305
|
+
return console.log({ lastCompletedTask: x }), x ? x.sequenceOrder + 1 : 0;
|
|
12303
12306
|
}, [s]);
|
|
12304
12307
|
return /* @__PURE__ */ me(
|
|
12305
12308
|
"div",
|
|
12306
12309
|
{
|
|
12307
12310
|
className: Oe(
|
|
12308
12311
|
!(r != null && r.overlay) && "min-h-screen",
|
|
12309
|
-
(r == null ? void 0 : r.overlay) && "fixed bottom-0 z-[99999999999999] flex"
|
|
12312
|
+
(r == null ? void 0 : r.overlay) && "fixed bottom-0 z-[99999999999999] flex",
|
|
12313
|
+
"transition-all duration-300 ease-in-out"
|
|
12310
12314
|
),
|
|
12311
12315
|
...(r == null ? void 0 : r.overlay) && {
|
|
12312
12316
|
style: {
|
|
12313
|
-
width:
|
|
12314
|
-
|
|
12317
|
+
width: "100%",
|
|
12318
|
+
maxWidth: c ? ((m = r.overlay.size) == null ? void 0 : m.width) || 450 : "2.25rem",
|
|
12319
|
+
// 2.25 rem is the width of the logo icon
|
|
12320
|
+
height: ((g = r.overlay.size) == null ? void 0 : g.height) || "calc(100vh - 4rem)",
|
|
12315
12321
|
maxHeight: "calc(100vh - 4rem)",
|
|
12316
|
-
right: ((
|
|
12317
|
-
left: ((
|
|
12322
|
+
right: ((w = r.overlay.offset) == null ? void 0 : w.right) !== void 0 ? r.overlay.offset.right : r.overlay.position === "right" ? 32 : void 0,
|
|
12323
|
+
left: ((E = r.overlay.offset) == null ? void 0 : E.left) !== void 0 ? r.overlay.offset.left : r.overlay.position === "left" ? 32 : void 0
|
|
12318
12324
|
}
|
|
12319
12325
|
},
|
|
12320
12326
|
children: [
|
|
12321
12327
|
(r == null ? void 0 : r.overlay) && /* @__PURE__ */ k(
|
|
12322
12328
|
"div",
|
|
12323
12329
|
{
|
|
12330
|
+
onClick: f,
|
|
12324
12331
|
className: Oe(
|
|
12325
|
-
"size-9 relative p-1 top-3 z-[99999999999999] border-none rounded-l-sm "
|
|
12332
|
+
"size-9 relative p-1 top-3 z-[99999999999999] border-none rounded-l-sm cursor-pointer"
|
|
12326
12333
|
),
|
|
12327
12334
|
style: {
|
|
12328
|
-
backgroundColor: ((
|
|
12335
|
+
backgroundColor: ((y = r == null ? void 0 : r.whiteLabel) == null ? void 0 : y.primaryColor) || "#007BFF",
|
|
12329
12336
|
boxShadow: "0px 3px 3px 0px #00000040"
|
|
12330
12337
|
},
|
|
12331
12338
|
children: /* @__PURE__ */ k(
|
|
@@ -12360,26 +12367,26 @@ const ju = ({
|
|
|
12360
12367
|
{
|
|
12361
12368
|
playbookMode: t,
|
|
12362
12369
|
numberOfTasks: e.numberofTasks,
|
|
12363
|
-
children: s.map((
|
|
12364
|
-
var
|
|
12370
|
+
children: s.map((x, v) => {
|
|
12371
|
+
var R;
|
|
12365
12372
|
return /* @__PURE__ */ k(
|
|
12366
12373
|
oy,
|
|
12367
12374
|
{
|
|
12368
|
-
task:
|
|
12369
|
-
step:
|
|
12375
|
+
task: x,
|
|
12376
|
+
step: v + 1,
|
|
12370
12377
|
viewMode: t,
|
|
12371
12378
|
playbookId: e.playbookId,
|
|
12372
|
-
canStart:
|
|
12373
|
-
onButtonClick: (
|
|
12379
|
+
canStart: x.sequenceOrder === b,
|
|
12380
|
+
onButtonClick: (H) => n(H, x.taskInstanceId),
|
|
12374
12381
|
playbookType: "Non-Sequential",
|
|
12375
12382
|
taskStyle: {
|
|
12376
|
-
titleColor: (
|
|
12383
|
+
titleColor: (R = r == null ? void 0 : r.whiteLabel) == null ? void 0 : R.primaryColor
|
|
12377
12384
|
},
|
|
12378
|
-
isExpanded:
|
|
12379
|
-
toggleExpanded: () =>
|
|
12385
|
+
isExpanded: h(x.taskInstanceId),
|
|
12386
|
+
toggleExpanded: () => d(x.taskInstanceId),
|
|
12380
12387
|
listStickyTopBase: a || 104
|
|
12381
12388
|
},
|
|
12382
|
-
|
|
12389
|
+
v
|
|
12383
12390
|
);
|
|
12384
12391
|
})
|
|
12385
12392
|
}
|
|
@@ -12396,7 +12403,7 @@ const ju = ({
|
|
|
12396
12403
|
playbookMode: n,
|
|
12397
12404
|
playbookStyle: r
|
|
12398
12405
|
}) => {
|
|
12399
|
-
const [o, s] =
|
|
12406
|
+
const [o, s] = ce(
|
|
12400
12407
|
null
|
|
12401
12408
|
);
|
|
12402
12409
|
return Ee(() => {
|
|
@@ -12428,7 +12435,7 @@ const ju = ({
|
|
|
12428
12435
|
btnLabel: r = "Start Playbook",
|
|
12429
12436
|
btnColor: o = "primary"
|
|
12430
12437
|
}) => {
|
|
12431
|
-
const [s, i] =
|
|
12438
|
+
const [s, i] = ce(
|
|
12432
12439
|
null
|
|
12433
12440
|
);
|
|
12434
12441
|
return /* @__PURE__ */ me(ju, { children: [
|