@confidencesystemsinc/sdk 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +14 -14
- package/dist/index.js +606 -596
- package/dist/theme.css +1 -1
- package/package.json +1 -1
- package/src/components/playbook/confidence-playbook.tsx +47 -10
- package/src/components/playbook/playbook-header.tsx +3 -5
- package/src/components/task/confidence-task.tsx +1 -1
- package/src/components/task/task-dropdown-badge.tsx +1 -4
- package/dist/components/ui/header.d.ts +0 -1
- package/src/components/ui/header.tsx +0 -12
package/dist/index.js
CHANGED
|
@@ -11,9 +11,9 @@ var Or = (e, t, n, r) => ({
|
|
|
11
11
|
return p(e, t, r);
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
import { jsx as
|
|
15
|
-
import * as
|
|
16
|
-
import j, { createContext as Ne, useState as
|
|
14
|
+
import { jsx as R, jsxs as ye, Fragment as ut } from "react/jsx-runtime";
|
|
15
|
+
import * as $ from "react";
|
|
16
|
+
import j, { createContext as Ne, useState as he, useContext as Se, useMemo as de, useRef as oe, useCallback as we, useEffect as Ee, useLayoutEffect as Gs, forwardRef as cl, Fragment as Ke, isValidElement as _u, cloneElement as Du, createElement as ju, useId as qt, useSyncExternalStore as zu, useReducer as Hu, createRef as Uu } from "react";
|
|
17
17
|
import * as Bu from "react-dom";
|
|
18
18
|
import { createPortal as Wu } from "react-dom";
|
|
19
19
|
var jn = class {
|
|
@@ -289,33 +289,33 @@ function Co(e) {
|
|
|
289
289
|
function ml(e) {
|
|
290
290
|
let t = !1, n = 0, r = !1, o;
|
|
291
291
|
const s = ts(), i = (m) => {
|
|
292
|
-
var
|
|
293
|
-
r || (h(new pl(m)), (
|
|
292
|
+
var b;
|
|
293
|
+
r || (h(new pl(m)), (b = e.abort) == null || b.call(e));
|
|
294
294
|
}, a = () => {
|
|
295
295
|
t = !0;
|
|
296
296
|
}, l = () => {
|
|
297
297
|
t = !1;
|
|
298
298
|
}, c = () => Ks.isFocused() && (e.networkMode === "always" || Ur.isOnline()) && e.canRun(), u = () => hl(e.networkMode) && e.canRun(), f = (m) => {
|
|
299
|
-
var
|
|
300
|
-
r || (r = !0, (
|
|
299
|
+
var b;
|
|
300
|
+
r || (r = !0, (b = e.onSuccess) == null || b.call(e, m), o == null || o(), s.resolve(m));
|
|
301
301
|
}, h = (m) => {
|
|
302
|
-
var
|
|
303
|
-
r || (r = !0, (
|
|
302
|
+
var b;
|
|
303
|
+
r || (r = !0, (b = e.onError) == null || b.call(e, m), o == null || o(), s.reject(m));
|
|
304
304
|
}, d = () => new Promise((m) => {
|
|
305
|
-
var
|
|
305
|
+
var b;
|
|
306
306
|
o = (w) => {
|
|
307
307
|
(r || c()) && m(w);
|
|
308
|
-
}, (
|
|
308
|
+
}, (b = e.onPause) == null || b.call(e);
|
|
309
309
|
}).then(() => {
|
|
310
310
|
var m;
|
|
311
311
|
o = void 0, r || (m = e.onContinue) == null || m.call(e);
|
|
312
|
-
}),
|
|
312
|
+
}), g = () => {
|
|
313
313
|
if (r)
|
|
314
314
|
return;
|
|
315
315
|
let m;
|
|
316
|
-
const
|
|
316
|
+
const b = n === 0 ? e.initialPromise : void 0;
|
|
317
317
|
try {
|
|
318
|
-
m =
|
|
318
|
+
m = b ?? e.fn();
|
|
319
319
|
} catch (w) {
|
|
320
320
|
m = Promise.reject(w);
|
|
321
321
|
}
|
|
@@ -329,7 +329,7 @@ function ml(e) {
|
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
331
|
n++, (N = e.onFail) == null || N.call(e, n, w), Vu(C).then(() => c() ? void 0 : d()).then(() => {
|
|
332
|
-
t ? h(w) :
|
|
332
|
+
t ? h(w) : g();
|
|
333
333
|
});
|
|
334
334
|
});
|
|
335
335
|
};
|
|
@@ -340,7 +340,7 @@ function ml(e) {
|
|
|
340
340
|
cancelRetry: a,
|
|
341
341
|
continueRetry: l,
|
|
342
342
|
canStart: u,
|
|
343
|
-
start: () => (u() ?
|
|
343
|
+
start: () => (u() ? g() : d().then(g), s)
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
346
|
var Ju = (e) => setTimeout(e, 0);
|
|
@@ -403,7 +403,7 @@ function Zu() {
|
|
|
403
403
|
}
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
|
-
var
|
|
406
|
+
var Te = Zu(), en, tl, gl = (tl = class {
|
|
407
407
|
constructor() {
|
|
408
408
|
H(this, en);
|
|
409
409
|
}
|
|
@@ -424,7 +424,7 @@ var Ce = Zu(), en, tl, gl = (tl = class {
|
|
|
424
424
|
clearGcTimeout() {
|
|
425
425
|
p(this, en) && (clearTimeout(p(this, en)), F(this, en, void 0));
|
|
426
426
|
}
|
|
427
|
-
}, en = new WeakMap(), tl), kn, An, Ue, tn,
|
|
427
|
+
}, en = new WeakMap(), tl), kn, An, Ue, tn, Ae, hr, nn, qe, it, nl, ef = (nl = class extends gl {
|
|
428
428
|
constructor(t) {
|
|
429
429
|
super();
|
|
430
430
|
H(this, qe);
|
|
@@ -432,7 +432,7 @@ var Ce = Zu(), en, tl, gl = (tl = class {
|
|
|
432
432
|
H(this, An);
|
|
433
433
|
H(this, Ue);
|
|
434
434
|
H(this, tn);
|
|
435
|
-
H(this,
|
|
435
|
+
H(this, Ae);
|
|
436
436
|
H(this, hr);
|
|
437
437
|
H(this, nn);
|
|
438
438
|
F(this, nn, !1), F(this, hr, t.defaultOptions), this.setOptions(t.options), this.observers = [], F(this, tn, t.client), F(this, Ue, p(this, tn).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, F(this, kn, tf(this.options)), this.state = t.state ?? p(this, kn), this.scheduleGc();
|
|
@@ -442,7 +442,7 @@ var Ce = Zu(), en, tl, gl = (tl = class {
|
|
|
442
442
|
}
|
|
443
443
|
get promise() {
|
|
444
444
|
var t;
|
|
445
|
-
return (t = p(this,
|
|
445
|
+
return (t = p(this, Ae)) == null ? void 0 : t.promise;
|
|
446
446
|
}
|
|
447
447
|
setOptions(t) {
|
|
448
448
|
this.options = { ...p(this, hr), ...t }, this.updateGcTime(this.options.gcTime);
|
|
@@ -464,8 +464,8 @@ var Ce = Zu(), en, tl, gl = (tl = class {
|
|
|
464
464
|
}
|
|
465
465
|
cancel(t) {
|
|
466
466
|
var r, o;
|
|
467
|
-
const n = (r = p(this,
|
|
468
|
-
return (o = p(this,
|
|
467
|
+
const n = (r = p(this, Ae)) == null ? void 0 : r.promise;
|
|
468
|
+
return (o = p(this, Ae)) == null || o.cancel(t), n ? n.then(Fe).catch(Fe) : Promise.resolve();
|
|
469
469
|
}
|
|
470
470
|
destroy() {
|
|
471
471
|
super.destroy(), this.cancel({ silent: !0 });
|
|
@@ -492,18 +492,18 @@ var Ce = Zu(), en, tl, gl = (tl = class {
|
|
|
492
492
|
onFocus() {
|
|
493
493
|
var n;
|
|
494
494
|
const t = this.observers.find((r) => r.shouldFetchOnWindowFocus());
|
|
495
|
-
t == null || t.refetch({ cancelRefetch: !1 }), (n = p(this,
|
|
495
|
+
t == null || t.refetch({ cancelRefetch: !1 }), (n = p(this, Ae)) == null || n.continue();
|
|
496
496
|
}
|
|
497
497
|
onOnline() {
|
|
498
498
|
var n;
|
|
499
499
|
const t = this.observers.find((r) => r.shouldFetchOnReconnect());
|
|
500
|
-
t == null || t.refetch({ cancelRefetch: !1 }), (n = p(this,
|
|
500
|
+
t == null || t.refetch({ cancelRefetch: !1 }), (n = p(this, Ae)) == null || n.continue();
|
|
501
501
|
}
|
|
502
502
|
addObserver(t) {
|
|
503
503
|
this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), p(this, Ue).notify({ type: "observerAdded", query: this, observer: t }));
|
|
504
504
|
}
|
|
505
505
|
removeObserver(t) {
|
|
506
|
-
this.observers.includes(t) && (this.observers = this.observers.filter((n) => n !== t), this.observers.length || (p(this,
|
|
506
|
+
this.observers.includes(t) && (this.observers = this.observers.filter((n) => n !== t), this.observers.length || (p(this, Ae) && (p(this, nn) ? p(this, Ae).cancel({ revert: !0 }) : p(this, Ae).cancelRetry()), this.scheduleGc()), p(this, Ue).notify({ type: "observerRemoved", query: this, observer: t }));
|
|
507
507
|
}
|
|
508
508
|
getObserversCount() {
|
|
509
509
|
return this.observers.length;
|
|
@@ -516,8 +516,8 @@ var Ce = Zu(), en, tl, gl = (tl = class {
|
|
|
516
516
|
if (this.state.fetchStatus !== "idle") {
|
|
517
517
|
if (this.state.data !== void 0 && (n != null && n.cancelRefetch))
|
|
518
518
|
this.cancel({ silent: !0 });
|
|
519
|
-
else if (p(this,
|
|
520
|
-
return p(this,
|
|
519
|
+
else if (p(this, Ae))
|
|
520
|
+
return p(this, Ae).continueRetry(), p(this, Ae).promise;
|
|
521
521
|
}
|
|
522
522
|
if (t && this.setOptions(t), !this.options.queryFn) {
|
|
523
523
|
const f = this.observers.find((h) => h.options.queryFn);
|
|
@@ -555,7 +555,7 @@ var Ce = Zu(), en, tl, gl = (tl = class {
|
|
|
555
555
|
this
|
|
556
556
|
), F(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
|
-
var h, d,
|
|
558
|
+
var h, d, g, m;
|
|
559
559
|
Co(f) && f.silent || J(this, qe, it).call(this, {
|
|
560
560
|
type: "error",
|
|
561
561
|
error: f
|
|
@@ -563,19 +563,19 @@ var Ce = Zu(), en, tl, gl = (tl = class {
|
|
|
563
563
|
h,
|
|
564
564
|
f,
|
|
565
565
|
this
|
|
566
|
-
), (m = (
|
|
567
|
-
|
|
566
|
+
), (m = (g = p(this, Ue).config).onSettled) == null || m.call(
|
|
567
|
+
g,
|
|
568
568
|
this.state.data,
|
|
569
569
|
f,
|
|
570
570
|
this
|
|
571
571
|
)), this.scheduleGc();
|
|
572
572
|
};
|
|
573
|
-
return F(this,
|
|
573
|
+
return F(this, Ae, ml({
|
|
574
574
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
575
575
|
fn: i.fetchFn,
|
|
576
576
|
abort: r.abort.bind(r),
|
|
577
577
|
onSuccess: (f) => {
|
|
578
|
-
var h, d,
|
|
578
|
+
var h, d, g, m;
|
|
579
579
|
if (f === void 0) {
|
|
580
580
|
process.env.NODE_ENV !== "production" && console.error(
|
|
581
581
|
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
@@ -584,12 +584,12 @@ var Ce = Zu(), en, tl, gl = (tl = class {
|
|
|
584
584
|
}
|
|
585
585
|
try {
|
|
586
586
|
this.setData(f);
|
|
587
|
-
} catch (
|
|
588
|
-
a(
|
|
587
|
+
} catch (b) {
|
|
588
|
+
a(b);
|
|
589
589
|
return;
|
|
590
590
|
}
|
|
591
|
-
(d = (h = p(this, Ue).config).onSuccess) == null || d.call(h, f, this), (m = (
|
|
592
|
-
|
|
591
|
+
(d = (h = p(this, Ue).config).onSuccess) == null || d.call(h, f, this), (m = (g = p(this, Ue).config).onSettled) == null || m.call(
|
|
592
|
+
g,
|
|
593
593
|
f,
|
|
594
594
|
this.state.error,
|
|
595
595
|
this
|
|
@@ -609,9 +609,9 @@ var Ce = Zu(), en, tl, gl = (tl = class {
|
|
|
609
609
|
retryDelay: i.options.retryDelay,
|
|
610
610
|
networkMode: i.options.networkMode,
|
|
611
611
|
canRun: () => !0
|
|
612
|
-
})), p(this,
|
|
612
|
+
})), p(this, Ae).start();
|
|
613
613
|
}
|
|
614
|
-
}, kn = new WeakMap(), An = new WeakMap(), Ue = new WeakMap(), tn = new WeakMap(),
|
|
614
|
+
}, kn = new WeakMap(), An = new WeakMap(), Ue = new WeakMap(), tn = new WeakMap(), Ae = new WeakMap(), hr = new WeakMap(), nn = new WeakMap(), qe = new WeakSet(), it = function(t) {
|
|
615
615
|
const n = (r) => {
|
|
616
616
|
switch (t.type) {
|
|
617
617
|
case "failed":
|
|
@@ -675,7 +675,7 @@ var Ce = Zu(), en, tl, gl = (tl = class {
|
|
|
675
675
|
};
|
|
676
676
|
}
|
|
677
677
|
};
|
|
678
|
-
this.state = n(this.state),
|
|
678
|
+
this.state = n(this.state), Te.batch(() => {
|
|
679
679
|
this.observers.forEach((r) => {
|
|
680
680
|
r.onQueryUpdate();
|
|
681
681
|
}), p(this, Ue).notify({ query: this, type: "updated", action: t });
|
|
@@ -738,7 +738,7 @@ var Ze, rl, nf = (rl = class extends jn {
|
|
|
738
738
|
n && (t.destroy(), n === t && p(this, Ze).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
739
739
|
}
|
|
740
740
|
clear() {
|
|
741
|
-
|
|
741
|
+
Te.batch(() => {
|
|
742
742
|
this.getAll().forEach((t) => {
|
|
743
743
|
this.remove(t);
|
|
744
744
|
});
|
|
@@ -761,21 +761,21 @@ var Ze, rl, nf = (rl = class extends jn {
|
|
|
761
761
|
return Object.keys(t).length > 0 ? n.filter((r) => Ti(t, r)) : n;
|
|
762
762
|
}
|
|
763
763
|
notify(t) {
|
|
764
|
-
|
|
764
|
+
Te.batch(() => {
|
|
765
765
|
this.listeners.forEach((n) => {
|
|
766
766
|
n(t);
|
|
767
767
|
});
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
770
|
onFocus() {
|
|
771
|
-
|
|
771
|
+
Te.batch(() => {
|
|
772
772
|
this.getAll().forEach((t) => {
|
|
773
773
|
t.onFocus();
|
|
774
774
|
});
|
|
775
775
|
});
|
|
776
776
|
}
|
|
777
777
|
onOnline() {
|
|
778
|
-
|
|
778
|
+
Te.batch(() => {
|
|
779
779
|
this.getAll().forEach((t) => {
|
|
780
780
|
t.onOnline();
|
|
781
781
|
});
|
|
@@ -819,7 +819,7 @@ var Ze, rl, nf = (rl = 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,
|
|
822
|
+
var s, i, a, l, c, u, f, h, d, g, m, b, w, x, y, C, v, N, q, k;
|
|
823
823
|
const n = () => {
|
|
824
824
|
J(this, tt, Ot).call(this, { type: "continue" });
|
|
825
825
|
};
|
|
@@ -862,14 +862,14 @@ var Ze, rl, nf = (rl = class extends jn {
|
|
|
862
862
|
t,
|
|
863
863
|
this.state.context,
|
|
864
864
|
this
|
|
865
|
-
)), await ((h = (f = this.options).onSuccess) == null ? void 0 : h.call(f, B, t, this.state.context)), await ((
|
|
865
|
+
)), await ((h = (f = this.options).onSuccess) == null ? void 0 : h.call(f, B, t, this.state.context)), await ((g = (d = p(this, $e).config).onSettled) == null ? void 0 : g.call(
|
|
866
866
|
d,
|
|
867
867
|
B,
|
|
868
868
|
null,
|
|
869
869
|
this.state.variables,
|
|
870
870
|
this.state.context,
|
|
871
871
|
this
|
|
872
|
-
)), await ((
|
|
872
|
+
)), await ((b = (m = this.options).onSettled) == null ? void 0 : b.call(m, B, null, t, this.state.context)), J(this, tt, Ot).call(this, { type: "success", data: B }), B;
|
|
873
873
|
} catch (B) {
|
|
874
874
|
try {
|
|
875
875
|
throw await ((x = (w = p(this, $e).config).onError) == null ? void 0 : x.call(
|
|
@@ -958,7 +958,7 @@ var Ze, rl, nf = (rl = class extends jn {
|
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
960
|
};
|
|
961
|
-
this.state = n(this.state),
|
|
961
|
+
this.state = n(this.state), Te.batch(() => {
|
|
962
962
|
p(this, et).forEach((r) => {
|
|
963
963
|
r.onMutationUpdate(t);
|
|
964
964
|
}), p(this, $e).notify({
|
|
@@ -1041,7 +1041,7 @@ var at, Ve, pr, sl, of = (sl = class extends jn {
|
|
|
1041
1041
|
return Promise.resolve();
|
|
1042
1042
|
}
|
|
1043
1043
|
clear() {
|
|
1044
|
-
|
|
1044
|
+
Te.batch(() => {
|
|
1045
1045
|
p(this, at).forEach((t) => {
|
|
1046
1046
|
this.notify({ type: "removed", mutation: t });
|
|
1047
1047
|
}), p(this, at).clear(), p(this, Ve).clear();
|
|
@@ -1060,7 +1060,7 @@ var at, Ve, pr, sl, of = (sl = class extends jn {
|
|
|
1060
1060
|
return this.getAll().filter((n) => Oi(t, n));
|
|
1061
1061
|
}
|
|
1062
1062
|
notify(t) {
|
|
1063
|
-
|
|
1063
|
+
Te.batch(() => {
|
|
1064
1064
|
this.listeners.forEach((n) => {
|
|
1065
1065
|
n(t);
|
|
1066
1066
|
});
|
|
@@ -1068,7 +1068,7 @@ var at, Ve, pr, sl, of = (sl = class extends jn {
|
|
|
1068
1068
|
}
|
|
1069
1069
|
resumePausedMutations() {
|
|
1070
1070
|
const t = this.getAll().filter((n) => n.state.isPaused);
|
|
1071
|
-
return
|
|
1071
|
+
return Te.batch(
|
|
1072
1072
|
() => Promise.all(
|
|
1073
1073
|
t.map((n) => n.continue().catch(Fe))
|
|
1074
1074
|
)
|
|
@@ -1082,12 +1082,12 @@ function Pr(e) {
|
|
|
1082
1082
|
function ki(e) {
|
|
1083
1083
|
return {
|
|
1084
1084
|
onFetch: (t, n) => {
|
|
1085
|
-
var u, f, h, d,
|
|
1086
|
-
const r = t.options, o = (h = (f = (u = t.fetchOptions) == null ? void 0 : u.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, s = ((d = t.state.data) == null ? void 0 : d.pages) || [], i = ((
|
|
1085
|
+
var u, f, h, d, g;
|
|
1086
|
+
const r = t.options, o = (h = (f = (u = t.fetchOptions) == null ? void 0 : u.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, s = ((d = t.state.data) == null ? void 0 : d.pages) || [], i = ((g = t.state.data) == null ? void 0 : g.pageParams) || [];
|
|
1087
1087
|
let a = { pages: [], pageParams: [] }, l = 0;
|
|
1088
1088
|
const c = async () => {
|
|
1089
1089
|
let m = !1;
|
|
1090
|
-
const
|
|
1090
|
+
const b = (y) => {
|
|
1091
1091
|
Object.defineProperty(y, "signal", {
|
|
1092
1092
|
enumerable: !0,
|
|
1093
1093
|
get: () => (t.signal.aborted ? m = !0 : t.signal.addEventListener("abort", () => {
|
|
@@ -1106,7 +1106,7 @@ function ki(e) {
|
|
|
1106
1106
|
direction: v ? "backward" : "forward",
|
|
1107
1107
|
meta: t.options.meta
|
|
1108
1108
|
};
|
|
1109
|
-
|
|
1109
|
+
b(N);
|
|
1110
1110
|
const q = await w(
|
|
1111
1111
|
N
|
|
1112
1112
|
), { maxPages: k } = t.options, B = v ? Yu : Gu;
|
|
@@ -1133,8 +1133,8 @@ function ki(e) {
|
|
|
1133
1133
|
return a;
|
|
1134
1134
|
};
|
|
1135
1135
|
t.options.persister ? t.fetchFn = () => {
|
|
1136
|
-
var m,
|
|
1137
|
-
return (
|
|
1136
|
+
var m, b;
|
|
1137
|
+
return (b = (m = t.options).persister) == null ? void 0 : b.call(
|
|
1138
1138
|
m,
|
|
1139
1139
|
c,
|
|
1140
1140
|
{
|
|
@@ -1221,7 +1221,7 @@ var be, At, Rt, Rn, $n, $t, In, Fn, il, af = (il = class {
|
|
|
1221
1221
|
return p(this, be).build(this, r).setData(i, { ...n, manual: !0 });
|
|
1222
1222
|
}
|
|
1223
1223
|
setQueriesData(e, t, n) {
|
|
1224
|
-
return
|
|
1224
|
+
return Te.batch(
|
|
1225
1225
|
() => p(this, be).findAll(e).map(({ queryKey: r }) => [
|
|
1226
1226
|
r,
|
|
1227
1227
|
this.setQueryData(r, t, n)
|
|
@@ -1237,7 +1237,7 @@ var be, At, Rt, Rn, $n, $t, In, Fn, il, af = (il = class {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
removeQueries(e) {
|
|
1239
1239
|
const t = p(this, be);
|
|
1240
|
-
|
|
1240
|
+
Te.batch(() => {
|
|
1241
1241
|
t.findAll(e).forEach((n) => {
|
|
1242
1242
|
t.remove(n);
|
|
1243
1243
|
});
|
|
@@ -1245,7 +1245,7 @@ var be, At, Rt, Rn, $n, $t, In, Fn, il, af = (il = class {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
resetQueries(e, t) {
|
|
1247
1247
|
const n = p(this, be);
|
|
1248
|
-
return
|
|
1248
|
+
return Te.batch(() => (n.findAll(e).forEach((r) => {
|
|
1249
1249
|
r.reset();
|
|
1250
1250
|
}), this.refetchQueries(
|
|
1251
1251
|
{
|
|
@@ -1256,13 +1256,13 @@ var be, At, Rt, Rn, $n, $t, In, Fn, il, af = (il = class {
|
|
|
1256
1256
|
)));
|
|
1257
1257
|
}
|
|
1258
1258
|
cancelQueries(e, t = {}) {
|
|
1259
|
-
const n = { revert: !0, ...t }, r =
|
|
1259
|
+
const n = { revert: !0, ...t }, r = Te.batch(
|
|
1260
1260
|
() => p(this, be).findAll(e).map((o) => o.cancel(n))
|
|
1261
1261
|
);
|
|
1262
1262
|
return Promise.all(r).then(Fe).catch(Fe);
|
|
1263
1263
|
}
|
|
1264
1264
|
invalidateQueries(e, t = {}) {
|
|
1265
|
-
return
|
|
1265
|
+
return Te.batch(() => (p(this, be).findAll(e).forEach((n) => {
|
|
1266
1266
|
n.invalidate();
|
|
1267
1267
|
}), (e == null ? void 0 : e.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
|
|
1268
1268
|
{
|
|
@@ -1276,7 +1276,7 @@ var be, At, Rt, Rn, $n, $t, In, Fn, il, af = (il = class {
|
|
|
1276
1276
|
const n = {
|
|
1277
1277
|
...t,
|
|
1278
1278
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
1279
|
-
}, r =
|
|
1279
|
+
}, r = Te.batch(
|
|
1280
1280
|
() => p(this, be).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
|
|
1281
1281
|
let s = o.fetch(void 0, n);
|
|
1282
1282
|
return n.throwOnError || (s = s.catch(Fe)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
@@ -1484,15 +1484,15 @@ var be, At, Rt, Rn, $n, $t, In, Fn, il, af = (il = class {
|
|
|
1484
1484
|
...bl(u.data, t.options)
|
|
1485
1485
|
}), n._optimisticResults === "isRestoring" && (f.fetchStatus = "idle");
|
|
1486
1486
|
}
|
|
1487
|
-
let { error:
|
|
1487
|
+
let { error: g, errorUpdatedAt: m, status: b } = f;
|
|
1488
1488
|
d = f.data;
|
|
1489
1489
|
let w = !1;
|
|
1490
|
-
if (n.placeholderData !== void 0 && d === void 0 &&
|
|
1490
|
+
if (n.placeholderData !== void 0 && d === void 0 && b === "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
|
(B = p(this, Mn)) == null ? void 0 : B.state.data,
|
|
1494
1494
|
p(this, Mn)
|
|
1495
|
-
) : n.placeholderData, G !== void 0 && (
|
|
1495
|
+
) : n.placeholderData, G !== void 0 && (b = "success", d = es(
|
|
1496
1496
|
s == null ? void 0 : s.data,
|
|
1497
1497
|
G,
|
|
1498
1498
|
n
|
|
@@ -1507,18 +1507,18 @@ var be, At, Rt, Rn, $n, $t, In, Fn, il, af = (il = class {
|
|
|
1507
1507
|
} catch (G) {
|
|
1508
1508
|
F(this, Ft, G);
|
|
1509
1509
|
}
|
|
1510
|
-
p(this, Ft) && (
|
|
1511
|
-
const x = f.fetchStatus === "fetching", y =
|
|
1512
|
-
status:
|
|
1510
|
+
p(this, Ft) && (g = p(this, Ft), d = p(this, Ln), m = Date.now(), b = "error");
|
|
1511
|
+
const x = f.fetchStatus === "fetching", y = b === "pending", C = b === "error", v = y && x, N = d !== void 0, k = {
|
|
1512
|
+
status: b,
|
|
1513
1513
|
fetchStatus: f.fetchStatus,
|
|
1514
1514
|
isPending: y,
|
|
1515
|
-
isSuccess:
|
|
1515
|
+
isSuccess: b === "success",
|
|
1516
1516
|
isError: C,
|
|
1517
1517
|
isInitialLoading: v,
|
|
1518
1518
|
isLoading: v,
|
|
1519
1519
|
data: d,
|
|
1520
1520
|
dataUpdatedAt: f.dataUpdatedAt,
|
|
1521
|
-
error:
|
|
1521
|
+
error: g,
|
|
1522
1522
|
errorUpdatedAt: m,
|
|
1523
1523
|
failureCount: f.fetchFailureCount,
|
|
1524
1524
|
failureReason: f.fetchFailureReason,
|
|
@@ -1618,7 +1618,7 @@ var be, At, Rt, Rn, $n, $t, In, Fn, il, af = (il = class {
|
|
|
1618
1618
|
const n = p(this, re);
|
|
1619
1619
|
F(this, re, t), F(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) => {
|
|
1623
1623
|
n(p(this, Ie));
|
|
1624
1624
|
}), p(this, Me).getQueryCache().notify({
|
|
@@ -1702,7 +1702,7 @@ var Lt, Mt, _e, lt, pt, Mr, us, ll, ff = (ll = class extends jn {
|
|
|
1702
1702
|
reset: this.reset
|
|
1703
1703
|
});
|
|
1704
1704
|
}, us = function(n) {
|
|
1705
|
-
|
|
1705
|
+
Te.batch(() => {
|
|
1706
1706
|
var r, o, s, i, a, l, c, u;
|
|
1707
1707
|
if (p(this, lt) && this.hasListeners()) {
|
|
1708
1708
|
const f = p(this, Mt).variables, h = p(this, Mt).context;
|
|
@@ -1718,10 +1718,10 @@ var Lt, Mt, _e, lt, pt, Mr, us, ll, ff = (ll = class extends jn {
|
|
|
1718
1718
|
f(p(this, Mt));
|
|
1719
1719
|
});
|
|
1720
1720
|
});
|
|
1721
|
-
}, ll), wl =
|
|
1721
|
+
}, ll), wl = $.createContext(
|
|
1722
1722
|
void 0
|
|
1723
1723
|
), xl = (e) => {
|
|
1724
|
-
const t =
|
|
1724
|
+
const t = $.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, ll, ff = (ll = class extends jn {
|
|
|
1730
1730
|
}, df = ({
|
|
1731
1731
|
client: e,
|
|
1732
1732
|
children: t
|
|
1733
|
-
}) => (
|
|
1733
|
+
}) => ($.useEffect(() => (e.mount(), () => {
|
|
1734
1734
|
e.unmount();
|
|
1735
|
-
}), [e]), /* @__PURE__ */
|
|
1735
|
+
}), [e]), /* @__PURE__ */ R(wl.Provider, { value: e, children: t })), El = $.createContext(!1), hf = () => $.useContext(El);
|
|
1736
1736
|
El.Provider;
|
|
1737
1737
|
function pf() {
|
|
1738
1738
|
let e = !1;
|
|
@@ -1746,10 +1746,10 @@ function pf() {
|
|
|
1746
1746
|
isReset: () => e
|
|
1747
1747
|
};
|
|
1748
1748
|
}
|
|
1749
|
-
var mf =
|
|
1749
|
+
var mf = $.createContext(pf()), gf = () => $.useContext(mf), bf = (e, t) => {
|
|
1750
1750
|
(e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
|
|
1751
1751
|
}, vf = (e) => {
|
|
1752
|
-
|
|
1752
|
+
$.useEffect(() => {
|
|
1753
1753
|
e.clearReset();
|
|
1754
1754
|
}, [e]);
|
|
1755
1755
|
}, yf = ({
|
|
@@ -1765,7 +1765,7 @@ var mf = R.createContext(pf()), gf = () => R.useContext(mf), bf = (e, t) => {
|
|
|
1765
1765
|
n.clearReset();
|
|
1766
1766
|
});
|
|
1767
1767
|
function Cf(e, t, n) {
|
|
1768
|
-
var f, h, d,
|
|
1768
|
+
var f, h, d, g, m;
|
|
1769
1769
|
if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
|
|
1770
1770
|
throw new Error(
|
|
1771
1771
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
@@ -1777,23 +1777,23 @@ function Cf(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", wf(i), bf(i, s), vf(s);
|
|
1780
|
-
const a = !r.getQueryCache().get(i.queryHash), [l] =
|
|
1780
|
+
const a = !r.getQueryCache().get(i.queryHash), [l] = $.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
|
-
|
|
1788
|
-
(
|
|
1789
|
-
const w = u ? l.subscribe(
|
|
1786
|
+
if ($.useSyncExternalStore(
|
|
1787
|
+
$.useCallback(
|
|
1788
|
+
(b) => {
|
|
1789
|
+
const w = u ? l.subscribe(Te.batchCalls(b)) : Fe;
|
|
1790
1790
|
return l.updateResult(), w;
|
|
1791
1791
|
},
|
|
1792
1792
|
[l, u]
|
|
1793
1793
|
),
|
|
1794
1794
|
() => l.getCurrentResult(),
|
|
1795
1795
|
() => l.getCurrentResult()
|
|
1796
|
-
),
|
|
1796
|
+
), $.useEffect(() => {
|
|
1797
1797
|
l.setOptions(i);
|
|
1798
1798
|
}, [i, l]), Ef(i, c))
|
|
1799
1799
|
throw Ii(i, l, s);
|
|
@@ -1805,19 +1805,19 @@ function Cf(e, t, n) {
|
|
|
1805
1805
|
suspense: i.suspense
|
|
1806
1806
|
}))
|
|
1807
1807
|
throw c.error;
|
|
1808
|
-
if ((
|
|
1808
|
+
if ((g = (d = r.getDefaultOptions().queries) == null ? void 0 : d._experimental_afterQuery) == null || g.call(
|
|
1809
1809
|
d,
|
|
1810
1810
|
i,
|
|
1811
1811
|
c
|
|
1812
1812
|
), i.experimental_prefetchInRender && !cn && xf(c, o)) {
|
|
1813
|
-
const
|
|
1813
|
+
const b = a ? (
|
|
1814
1814
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1815
1815
|
Ii(i, l, s)
|
|
1816
1816
|
) : (
|
|
1817
1817
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
1818
1818
|
(m = r.getQueryCache().get(i.queryHash)) == null ? void 0 : m.promise
|
|
1819
1819
|
);
|
|
1820
|
-
|
|
1820
|
+
b == null || b.catch(Fe).finally(() => {
|
|
1821
1821
|
l.updateResult();
|
|
1822
1822
|
});
|
|
1823
1823
|
}
|
|
@@ -1827,23 +1827,23 @@ function Xs(e, t) {
|
|
|
1827
1827
|
return Cf(e, lf, t);
|
|
1828
1828
|
}
|
|
1829
1829
|
function Cl(e, t) {
|
|
1830
|
-
const n = xl(t), [r] =
|
|
1830
|
+
const n = xl(t), [r] = $.useState(
|
|
1831
1831
|
() => new ff(
|
|
1832
1832
|
n,
|
|
1833
1833
|
e
|
|
1834
1834
|
)
|
|
1835
1835
|
);
|
|
1836
|
-
|
|
1836
|
+
$.useEffect(() => {
|
|
1837
1837
|
r.setOptions(e);
|
|
1838
1838
|
}, [r, e]);
|
|
1839
|
-
const o =
|
|
1840
|
-
|
|
1841
|
-
(i) => r.subscribe(
|
|
1839
|
+
const o = $.useSyncExternalStore(
|
|
1840
|
+
$.useCallback(
|
|
1841
|
+
(i) => r.subscribe(Te.batchCalls(i)),
|
|
1842
1842
|
[r]
|
|
1843
1843
|
),
|
|
1844
1844
|
() => r.getCurrentResult(),
|
|
1845
1845
|
() => r.getCurrentResult()
|
|
1846
|
-
), s =
|
|
1846
|
+
), s = $.useCallback(
|
|
1847
1847
|
(i, a) => {
|
|
1848
1848
|
r.mutate(i, a).catch(Fe);
|
|
1849
1849
|
},
|
|
@@ -1855,11 +1855,11 @@ function Cl(e, t) {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
const Js = Ne(null);
|
|
1857
1857
|
Js.Provider;
|
|
1858
|
-
const zn = () =>
|
|
1858
|
+
const zn = () => Se(Js), Tl = ({
|
|
1859
1859
|
children: e
|
|
1860
1860
|
}) => {
|
|
1861
|
-
const [t] =
|
|
1862
|
-
return console.log("Confidence Playbook Context Initialized"), /* @__PURE__ */
|
|
1861
|
+
const [t] = he(new af());
|
|
1862
|
+
return console.log("Confidence Playbook Context Initialized"), /* @__PURE__ */ R(Js.Provider, { value: { queryClient: t }, children: /* @__PURE__ */ R(df, { client: t, children: e }) });
|
|
1863
1863
|
}, ge = {
|
|
1864
1864
|
OPEN: "Open",
|
|
1865
1865
|
IN_PROGRESS: "In progress",
|
|
@@ -2123,15 +2123,15 @@ const zn = () => Pe(Js), Tl = ({
|
|
|
2123
2123
|
let r = (o) => {
|
|
2124
2124
|
const s = [];
|
|
2125
2125
|
let i = 0, a = 0, l = 0, c;
|
|
2126
|
-
for (let
|
|
2127
|
-
let m = o[
|
|
2126
|
+
for (let g = 0; g < o.length; g++) {
|
|
2127
|
+
let m = o[g];
|
|
2128
2128
|
if (i === 0 && a === 0) {
|
|
2129
2129
|
if (m === hs) {
|
|
2130
|
-
s.push(o.slice(l,
|
|
2130
|
+
s.push(o.slice(l, g)), l = g + _f;
|
|
2131
2131
|
continue;
|
|
2132
2132
|
}
|
|
2133
2133
|
if (m === "/") {
|
|
2134
|
-
c =
|
|
2134
|
+
c = g;
|
|
2135
2135
|
continue;
|
|
2136
2136
|
}
|
|
2137
2137
|
}
|
|
@@ -2192,30 +2192,30 @@ const zn = () => Pe(Js), Tl = ({
|
|
|
2192
2192
|
isExternal: f,
|
|
2193
2193
|
modifiers: h,
|
|
2194
2194
|
hasImportantModifier: d,
|
|
2195
|
-
baseClassName:
|
|
2195
|
+
baseClassName: g,
|
|
2196
2196
|
maybePostfixModifierPosition: m
|
|
2197
2197
|
} = n(u);
|
|
2198
2198
|
if (f) {
|
|
2199
2199
|
l = u + (l.length > 0 ? " " + l : l);
|
|
2200
2200
|
continue;
|
|
2201
2201
|
}
|
|
2202
|
-
let
|
|
2202
|
+
let b = !!m, w = r(b ? g.substring(0, m) : g);
|
|
2203
2203
|
if (!w) {
|
|
2204
|
-
if (!
|
|
2204
|
+
if (!b) {
|
|
2205
2205
|
l = u + (l.length > 0 ? " " + l : l);
|
|
2206
2206
|
continue;
|
|
2207
2207
|
}
|
|
2208
|
-
if (w = r(
|
|
2208
|
+
if (w = r(g), !w) {
|
|
2209
2209
|
l = u + (l.length > 0 ? " " + l : l);
|
|
2210
2210
|
continue;
|
|
2211
2211
|
}
|
|
2212
|
-
|
|
2212
|
+
b = !1;
|
|
2213
2213
|
}
|
|
2214
2214
|
const x = s(h).join(":"), y = d ? x + ds : x, C = y + w;
|
|
2215
2215
|
if (i.includes(C))
|
|
2216
2216
|
continue;
|
|
2217
2217
|
i.push(C);
|
|
2218
|
-
const v = o(w,
|
|
2218
|
+
const v = o(w, b);
|
|
2219
2219
|
for (let N = 0; N < v.length; ++N) {
|
|
2220
2220
|
const q = v[N];
|
|
2221
2221
|
i.push(y + q);
|
|
@@ -2255,7 +2255,7 @@ function qf(e, ...t) {
|
|
|
2255
2255
|
return s(Wf.apply(null, arguments));
|
|
2256
2256
|
};
|
|
2257
2257
|
}
|
|
2258
|
-
const
|
|
2258
|
+
const Ce = (e) => {
|
|
2259
2259
|
const t = (n) => n[e] || [];
|
|
2260
2260
|
return t.isThemeGetter = !0, t;
|
|
2261
2261
|
}, Al = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Rl = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Vf = /^\d+\/\d+$/, Gf = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yf = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Kf = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Qf = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Xf = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, gn = (e) => Vf.test(e), ee = (e) => !!e && !Number.isNaN(Number(e)), Ct = (e) => !!e && Number.isInteger(Number(e)), To = (e) => e.endsWith("%") && ee(e.slice(0, -1)), st = (e) => Gf.test(e), Jf = () => !0, Zf = (e) => (
|
|
@@ -2270,7 +2270,7 @@ const xe = (e) => {
|
|
|
2270
2270
|
const r = Rl.exec(e);
|
|
2271
2271
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
2272
2272
|
}, Il = (e) => e === "position" || e === "percentage", Fl = (e) => e === "image" || e === "url", Nl = (e) => e === "length" || e === "size" || e === "bg-size", Ll = (e) => e === "length", ld = (e) => e === "number", cd = (e) => e === "family-name", Ml = (e) => e === "shadow", ud = () => {
|
|
2273
|
-
const e =
|
|
2273
|
+
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"), g = Ce("blur"), m = Ce("perspective"), b = Ce("aspect"), w = Ce("ease"), x = Ce("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
|
|
2274
2274
|
"center",
|
|
2275
2275
|
"top",
|
|
2276
2276
|
"bottom",
|
|
@@ -2290,7 +2290,7 @@ const xe = (e) => {
|
|
|
2290
2290
|
"left-bottom"
|
|
2291
2291
|
], v = () => [...C(), M, L], N = () => ["auto", "hidden", "clip", "visible", "scroll"], q = () => ["auto", "contain", "none"], k = () => [M, L, l], B = () => [gn, "full", "auto", ...k()], G = () => [Ct, "none", "subgrid", M, L], ce = () => ["auto", {
|
|
2292
2292
|
span: ["full", Ct, M, L]
|
|
2293
|
-
}, Ct, M, L], fe = () => [Ct, "auto", M, L], se = () => ["auto", "min", "max", "fr", M, L],
|
|
2293
|
+
}, Ct, M, L], fe = () => [Ct, "auto", M, L], se = () => ["auto", "min", "max", "fr", M, L], pe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], W = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Y = () => ["auto", ...k()], ne = () => [gn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], O = () => [e, M, L], V = () => [...C(), _i, Mi, {
|
|
2294
2294
|
position: [M, L]
|
|
2295
2295
|
}], E = () => ["no-repeat", {
|
|
2296
2296
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -2308,10 +2308,10 @@ const xe = (e) => {
|
|
|
2308
2308
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2309
2309
|
"",
|
|
2310
2310
|
"none",
|
|
2311
|
-
|
|
2311
|
+
g,
|
|
2312
2312
|
M,
|
|
2313
2313
|
L
|
|
2314
|
-
], X = () => ["none", ee, M, L], Z = () => ["none", ee, M, L],
|
|
2314
|
+
], X = () => ["none", ee, M, L], Z = () => ["none", ee, M, L], xe = () => [ee, M, L], A = () => [gn, "full", ...k()];
|
|
2315
2315
|
return {
|
|
2316
2316
|
cacheSize: 500,
|
|
2317
2317
|
theme: {
|
|
@@ -2344,7 +2344,7 @@ const xe = (e) => {
|
|
|
2344
2344
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
2345
2345
|
*/
|
|
2346
2346
|
aspect: [{
|
|
2347
|
-
aspect: ["auto", "square", gn, L, M,
|
|
2347
|
+
aspect: ["auto", "square", gn, L, M, b]
|
|
2348
2348
|
}],
|
|
2349
2349
|
/**
|
|
2350
2350
|
* Container
|
|
@@ -2714,7 +2714,7 @@ const xe = (e) => {
|
|
|
2714
2714
|
* @see https://tailwindcss.com/docs/justify-content
|
|
2715
2715
|
*/
|
|
2716
2716
|
"justify-content": [{
|
|
2717
|
-
justify: [...
|
|
2717
|
+
justify: [...pe(), "normal"]
|
|
2718
2718
|
}],
|
|
2719
2719
|
/**
|
|
2720
2720
|
* Justify Items
|
|
@@ -2735,7 +2735,7 @@ const xe = (e) => {
|
|
|
2735
2735
|
* @see https://tailwindcss.com/docs/align-content
|
|
2736
2736
|
*/
|
|
2737
2737
|
"align-content": [{
|
|
2738
|
-
content: ["normal", ...
|
|
2738
|
+
content: ["normal", ...pe()]
|
|
2739
2739
|
}],
|
|
2740
2740
|
/**
|
|
2741
2741
|
* Align Items
|
|
@@ -2760,7 +2760,7 @@ const xe = (e) => {
|
|
|
2760
2760
|
* @see https://tailwindcss.com/docs/place-content
|
|
2761
2761
|
*/
|
|
2762
2762
|
"place-content": [{
|
|
2763
|
-
"place-content":
|
|
2763
|
+
"place-content": pe()
|
|
2764
2764
|
}],
|
|
2765
2765
|
/**
|
|
2766
2766
|
* Place Items
|
|
@@ -4319,21 +4319,21 @@ const xe = (e) => {
|
|
|
4319
4319
|
* @see https://tailwindcss.com/docs/skew
|
|
4320
4320
|
*/
|
|
4321
4321
|
skew: [{
|
|
4322
|
-
skew:
|
|
4322
|
+
skew: xe()
|
|
4323
4323
|
}],
|
|
4324
4324
|
/**
|
|
4325
4325
|
* Skew X
|
|
4326
4326
|
* @see https://tailwindcss.com/docs/skew
|
|
4327
4327
|
*/
|
|
4328
4328
|
"skew-x": [{
|
|
4329
|
-
"skew-x":
|
|
4329
|
+
"skew-x": xe()
|
|
4330
4330
|
}],
|
|
4331
4331
|
/**
|
|
4332
4332
|
* Skew Y
|
|
4333
4333
|
* @see https://tailwindcss.com/docs/skew
|
|
4334
4334
|
*/
|
|
4335
4335
|
"skew-y": [{
|
|
4336
|
-
"skew-y":
|
|
4336
|
+
"skew-y": xe()
|
|
4337
4337
|
}],
|
|
4338
4338
|
/**
|
|
4339
4339
|
* Transform
|
|
@@ -4753,7 +4753,7 @@ function ar() {
|
|
|
4753
4753
|
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = _l(e)) && (r && (r += " "), r += t);
|
|
4754
4754
|
return r;
|
|
4755
4755
|
}
|
|
4756
|
-
function
|
|
4756
|
+
function Oe(...e) {
|
|
4757
4757
|
return xn(ar(e));
|
|
4758
4758
|
}
|
|
4759
4759
|
const Dl = typeof document < "u" ? j.useLayoutEffect : () => {
|
|
@@ -4764,7 +4764,7 @@ function fd(e) {
|
|
|
4764
4764
|
t.current = e;
|
|
4765
4765
|
}, [
|
|
4766
4766
|
e
|
|
4767
|
-
]),
|
|
4767
|
+
]), we((...n) => {
|
|
4768
4768
|
const r = t.current;
|
|
4769
4769
|
return r == null ? void 0 : r(...n);
|
|
4770
4770
|
}, []);
|
|
@@ -4841,7 +4841,7 @@ yt(function() {
|
|
|
4841
4841
|
return Zr(/Firefox/i);
|
|
4842
4842
|
});
|
|
4843
4843
|
function Hl() {
|
|
4844
|
-
let e = oe(/* @__PURE__ */ new Map()), t =
|
|
4844
|
+
let e = oe(/* @__PURE__ */ new Map()), t = we((o, s, i, a) => {
|
|
4845
4845
|
let l = a != null && a.once ? (...c) => {
|
|
4846
4846
|
e.current.delete(i), i(...c);
|
|
4847
4847
|
} : i;
|
|
@@ -4851,18 +4851,18 @@ function Hl() {
|
|
|
4851
4851
|
fn: l,
|
|
4852
4852
|
options: a
|
|
4853
4853
|
}), o.addEventListener(s, l, a);
|
|
4854
|
-
}, []), n =
|
|
4854
|
+
}, []), n = we((o, s, i, a) => {
|
|
4855
4855
|
var l;
|
|
4856
4856
|
let c = ((l = e.current.get(i)) === null || l === void 0 ? void 0 : l.fn) || i;
|
|
4857
4857
|
o.removeEventListener(s, c, a), e.current.delete(i);
|
|
4858
|
-
}, []), r =
|
|
4858
|
+
}, []), r = we(() => {
|
|
4859
4859
|
e.current.forEach((o, s) => {
|
|
4860
4860
|
n(o.eventTarget, o.type, s, o.options);
|
|
4861
4861
|
});
|
|
4862
4862
|
}, [
|
|
4863
4863
|
n
|
|
4864
4864
|
]);
|
|
4865
|
-
return
|
|
4865
|
+
return Ee(() => r, [
|
|
4866
4866
|
r
|
|
4867
4867
|
]), {
|
|
4868
4868
|
addGlobalListener: t,
|
|
@@ -4899,7 +4899,7 @@ function Bl(e) {
|
|
|
4899
4899
|
let n = fd((r) => {
|
|
4900
4900
|
e == null || e(r);
|
|
4901
4901
|
});
|
|
4902
|
-
return
|
|
4902
|
+
return we((r) => {
|
|
4903
4903
|
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
4904
4904
|
t.current.isFocused = !0;
|
|
4905
4905
|
let o = r.target, s = (i) => {
|
|
@@ -5006,7 +5006,7 @@ function Sd(e, t, n) {
|
|
|
5006
5006
|
return e = e || r.activeElement instanceof o && !Pd.has(r.activeElement.type) || r.activeElement instanceof s || r.activeElement instanceof i && r.activeElement.isContentEditable, !(e && t === "keyboard" && n instanceof a && !Cd[n.key]);
|
|
5007
5007
|
}
|
|
5008
5008
|
function kd(e, t, n) {
|
|
5009
|
-
bs(),
|
|
5009
|
+
bs(), Ee(() => {
|
|
5010
5010
|
let r = (o, s) => {
|
|
5011
5011
|
Sd(!!(n != null && n.isTextInput), o, s) && e(Yl());
|
|
5012
5012
|
};
|
|
@@ -5017,13 +5017,13 @@ function kd(e, t, n) {
|
|
|
5017
5017
|
}
|
|
5018
5018
|
function Ad(e) {
|
|
5019
5019
|
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: o } = e;
|
|
5020
|
-
const s =
|
|
5020
|
+
const s = we((l) => {
|
|
5021
5021
|
if (l.target === l.currentTarget)
|
|
5022
5022
|
return r && r(l), o && o(!1), !0;
|
|
5023
5023
|
}, [
|
|
5024
5024
|
r,
|
|
5025
5025
|
o
|
|
5026
|
-
]), i = Bl(s), a =
|
|
5026
|
+
]), i = Bl(s), a = we((l) => {
|
|
5027
5027
|
const c = Vt(l.target), u = c ? ps(c) : ps();
|
|
5028
5028
|
l.target === l.currentTarget && u === zl(l.nativeEvent) && (n && n(l), o && o(!0), i(l));
|
|
5029
5029
|
}, [
|
|
@@ -5041,26 +5041,26 @@ function Ad(e) {
|
|
|
5041
5041
|
function Rd(e) {
|
|
5042
5042
|
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, s = oe({
|
|
5043
5043
|
isFocusWithin: !1
|
|
5044
|
-
}), { addGlobalListener: i, removeAllGlobalListeners: a } = Hl(), l =
|
|
5044
|
+
}), { addGlobalListener: i, removeAllGlobalListeners: a } = Hl(), l = we((f) => {
|
|
5045
5045
|
f.currentTarget.contains(f.target) && s.current.isFocusWithin && !f.currentTarget.contains(f.relatedTarget) && (s.current.isFocusWithin = !1, a(), n && n(f), o && o(!1));
|
|
5046
5046
|
}, [
|
|
5047
5047
|
n,
|
|
5048
5048
|
o,
|
|
5049
5049
|
s,
|
|
5050
5050
|
a
|
|
5051
|
-
]), c = Bl(l), u =
|
|
5051
|
+
]), c = Bl(l), u = we((f) => {
|
|
5052
5052
|
if (!f.currentTarget.contains(f.target)) return;
|
|
5053
5053
|
const h = Vt(f.target), d = ps(h);
|
|
5054
5054
|
if (!s.current.isFocusWithin && d === zl(f.nativeEvent)) {
|
|
5055
5055
|
r && r(f), o && o(!0), s.current.isFocusWithin = !0, c(f);
|
|
5056
|
-
let
|
|
5056
|
+
let g = f.currentTarget;
|
|
5057
5057
|
i(h, "focus", (m) => {
|
|
5058
|
-
if (s.current.isFocusWithin && !jl(
|
|
5059
|
-
let
|
|
5058
|
+
if (s.current.isFocusWithin && !jl(g, m.target)) {
|
|
5059
|
+
let b = new h.defaultView.FocusEvent("blur", {
|
|
5060
5060
|
relatedTarget: m.target
|
|
5061
5061
|
});
|
|
5062
|
-
xd(
|
|
5063
|
-
let w = Ul(
|
|
5062
|
+
xd(b, g);
|
|
5063
|
+
let w = Ul(b);
|
|
5064
5064
|
l(w);
|
|
5065
5065
|
}
|
|
5066
5066
|
}, {
|
|
@@ -5103,16 +5103,16 @@ function $d() {
|
|
|
5103
5103
|
};
|
|
5104
5104
|
}
|
|
5105
5105
|
function Id(e) {
|
|
5106
|
-
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [s, i] =
|
|
5106
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [s, i] = he(!1), a = oe({
|
|
5107
5107
|
isHovered: !1,
|
|
5108
5108
|
ignoreEmulatedMouseEvents: !1,
|
|
5109
5109
|
pointerType: "",
|
|
5110
5110
|
target: null
|
|
5111
5111
|
}).current;
|
|
5112
|
-
|
|
5112
|
+
Ee($d, []);
|
|
5113
5113
|
let { addGlobalListener: l, removeAllGlobalListeners: c } = Hl(), { hoverProps: u, triggerHoverEnd: f } = de(() => {
|
|
5114
|
-
let h = (m,
|
|
5115
|
-
if (a.pointerType =
|
|
5114
|
+
let h = (m, b) => {
|
|
5115
|
+
if (a.pointerType = b, o || b === "touch" || a.isHovered || !m.currentTarget.contains(m.target)) return;
|
|
5116
5116
|
a.isHovered = !0;
|
|
5117
5117
|
let w = m.currentTarget;
|
|
5118
5118
|
a.target = w, l(Vt(m.target), "pointerover", (x) => {
|
|
@@ -5122,28 +5122,28 @@ function Id(e) {
|
|
|
5122
5122
|
}), t && t({
|
|
5123
5123
|
type: "hoverstart",
|
|
5124
5124
|
target: w,
|
|
5125
|
-
pointerType:
|
|
5125
|
+
pointerType: b
|
|
5126
5126
|
}), n && n(!0), i(!0);
|
|
5127
|
-
}, d = (m,
|
|
5127
|
+
}, d = (m, b) => {
|
|
5128
5128
|
let w = a.target;
|
|
5129
|
-
a.pointerType = "", a.target = null, !(
|
|
5129
|
+
a.pointerType = "", a.target = null, !(b === "touch" || !a.isHovered || !w) && (a.isHovered = !1, c(), r && r({
|
|
5130
5130
|
type: "hoverend",
|
|
5131
5131
|
target: w,
|
|
5132
|
-
pointerType:
|
|
5132
|
+
pointerType: b
|
|
5133
5133
|
}), n && n(!1), i(!1));
|
|
5134
|
-
},
|
|
5135
|
-
return typeof PointerEvent < "u" ? (
|
|
5134
|
+
}, g = {};
|
|
5135
|
+
return typeof PointerEvent < "u" ? (g.onPointerEnter = (m) => {
|
|
5136
5136
|
Wr && m.pointerType === "mouse" || h(m, m.pointerType);
|
|
5137
|
-
},
|
|
5137
|
+
}, g.onPointerLeave = (m) => {
|
|
5138
5138
|
!o && m.currentTarget.contains(m.target) && d(m, m.pointerType);
|
|
5139
|
-
}) : process.env.NODE_ENV === "test" && (
|
|
5139
|
+
}) : process.env.NODE_ENV === "test" && (g.onTouchStart = () => {
|
|
5140
5140
|
a.ignoreEmulatedMouseEvents = !0;
|
|
5141
|
-
},
|
|
5141
|
+
}, g.onMouseEnter = (m) => {
|
|
5142
5142
|
!a.ignoreEmulatedMouseEvents && !Wr && h(m, "mouse"), a.ignoreEmulatedMouseEvents = !1;
|
|
5143
|
-
},
|
|
5143
|
+
}, g.onMouseLeave = (m) => {
|
|
5144
5144
|
!o && m.currentTarget.contains(m.target) && d(m, "mouse");
|
|
5145
5145
|
}), {
|
|
5146
|
-
hoverProps:
|
|
5146
|
+
hoverProps: g,
|
|
5147
5147
|
triggerHoverEnd: d
|
|
5148
5148
|
};
|
|
5149
5149
|
}, [
|
|
@@ -5155,7 +5155,7 @@ function Id(e) {
|
|
|
5155
5155
|
l,
|
|
5156
5156
|
c
|
|
5157
5157
|
]);
|
|
5158
|
-
return
|
|
5158
|
+
return Ee(() => {
|
|
5159
5159
|
o && f({
|
|
5160
5160
|
currentTarget: a.target
|
|
5161
5161
|
}, a.pointerType);
|
|
@@ -5170,7 +5170,7 @@ function Fd(e = {}) {
|
|
|
5170
5170
|
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = oe({
|
|
5171
5171
|
isFocused: !1,
|
|
5172
5172
|
isFocusVisible: t || Yl()
|
|
5173
|
-
}), [s, i] =
|
|
5173
|
+
}), [s, i] = he(!1), [a, l] = he(() => o.current.isFocused && o.current.isFocusVisible), c = we(() => l(o.current.isFocused && o.current.isFocusVisible), []), u = we((d) => {
|
|
5174
5174
|
o.current.isFocused = d, i(d), c();
|
|
5175
5175
|
}, [
|
|
5176
5176
|
c
|
|
@@ -5269,15 +5269,15 @@ function wt() {
|
|
|
5269
5269
|
return t;
|
|
5270
5270
|
}
|
|
5271
5271
|
function oi() {
|
|
5272
|
-
let [e] =
|
|
5273
|
-
return
|
|
5272
|
+
let [e] = he(wt);
|
|
5273
|
+
return Ee(() => () => e.dispose(), [e]), e;
|
|
5274
5274
|
}
|
|
5275
|
-
let
|
|
5276
|
-
ln.isServer ?
|
|
5275
|
+
let Pe = (e, t) => {
|
|
5276
|
+
ln.isServer ? Ee(e, t) : Gs(e, t);
|
|
5277
5277
|
};
|
|
5278
5278
|
function pn(e) {
|
|
5279
5279
|
let t = oe(e);
|
|
5280
|
-
return
|
|
5280
|
+
return Pe(() => {
|
|
5281
5281
|
t.current = e;
|
|
5282
5282
|
}, [e]), t;
|
|
5283
5283
|
}
|
|
@@ -5286,7 +5286,7 @@ let ue = function(e) {
|
|
|
5286
5286
|
return j.useCallback((...n) => t.current(...n), [t]);
|
|
5287
5287
|
}, Kl = Ne(void 0);
|
|
5288
5288
|
function no() {
|
|
5289
|
-
return
|
|
5289
|
+
return Se(Kl);
|
|
5290
5290
|
}
|
|
5291
5291
|
function _d({ value: e, children: t }) {
|
|
5292
5292
|
return j.createElement(Kl.Provider, { value: e }, t);
|
|
@@ -5305,7 +5305,7 @@ function mt(e, t, ...n) {
|
|
|
5305
5305
|
var qr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(qr || {}), _t = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(_t || {});
|
|
5306
5306
|
function Le() {
|
|
5307
5307
|
let e = jd();
|
|
5308
|
-
return
|
|
5308
|
+
return we((t) => Dd({ mergeRefs: e, ...t }), [e]);
|
|
5309
5309
|
}
|
|
5310
5310
|
function Dd({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: s = !0, name: i, mergeRefs: a }) {
|
|
5311
5311
|
a = a ?? zd;
|
|
@@ -5332,10 +5332,10 @@ function Ar(e, t = {}, n, r, o) {
|
|
|
5332
5332
|
let f = {};
|
|
5333
5333
|
if (t) {
|
|
5334
5334
|
let h = !1, d = [];
|
|
5335
|
-
for (let [
|
|
5335
|
+
for (let [g, m] of Object.entries(t)) typeof m == "boolean" && (h = !0), m === !0 && d.push(g.replace(/([A-Z])/g, (b) => `-${b.toLowerCase()}`));
|
|
5336
5336
|
if (h) {
|
|
5337
5337
|
f["data-headlessui-state"] = d.join(" ");
|
|
5338
|
-
for (let
|
|
5338
|
+
for (let g of d) f[`data-${g}`] = "";
|
|
5339
5339
|
}
|
|
5340
5340
|
}
|
|
5341
5341
|
if (s === Ke && (Object.keys(Yt(l)).length > 0 || Object.keys(Yt(f)).length > 0)) if (!_u(u) || Array.isArray(u) && u.length > 1) {
|
|
@@ -5344,14 +5344,14 @@ function Ar(e, t = {}, n, r, o) {
|
|
|
5344
5344
|
`)].join(`
|
|
5345
5345
|
`));
|
|
5346
5346
|
} else {
|
|
5347
|
-
let h = u.props, d = h == null ? void 0 : h.className,
|
|
5348
|
-
for (let w in f) w in
|
|
5349
|
-
return Du(u, Object.assign({},
|
|
5347
|
+
let h = u.props, d = h == null ? void 0 : h.className, g = typeof d == "function" ? (...w) => ys(d(...w), l.className) : ys(d, l.className), m = g ? { className: g } : {}, b = Ql(u.props, Yt(ko(l, ["ref"])));
|
|
5348
|
+
for (let w in f) w in b && delete f[w];
|
|
5349
|
+
return Du(u, Object.assign({}, b, f, c, { ref: o(Ud(u), c.ref) }, m));
|
|
5350
5350
|
}
|
|
5351
5351
|
return ju(s, Object.assign({}, ko(l, ["ref"]), s !== Ke && c, s !== Ke && f), u);
|
|
5352
5352
|
}
|
|
5353
5353
|
function jd() {
|
|
5354
|
-
let e = oe([]), t =
|
|
5354
|
+
let e = oe([]), t = we((n) => {
|
|
5355
5355
|
for (let r of e.current) r != null && (typeof r == "function" ? r(n) : r.current = n);
|
|
5356
5356
|
}, []);
|
|
5357
5357
|
return (...n) => {
|
|
@@ -5392,7 +5392,7 @@ function Hd(...e) {
|
|
|
5392
5392
|
} });
|
|
5393
5393
|
return t;
|
|
5394
5394
|
}
|
|
5395
|
-
function
|
|
5395
|
+
function ke(e) {
|
|
5396
5396
|
var t;
|
|
5397
5397
|
return Object.assign(cl(e), { displayName: (t = e.displayName) != null ? t : e.name });
|
|
5398
5398
|
}
|
|
@@ -5416,14 +5416,14 @@ function Wd(e, t) {
|
|
|
5416
5416
|
let { features: r = 1, ...o } = e, s = { ref: t, "aria-hidden": (r & 2) === 2 ? !0 : (n = o["aria-hidden"]) != null ? n : void 0, hidden: (r & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
|
|
5417
5417
|
return Le()({ ourProps: s, theirProps: o, slot: {}, defaultTag: Bd, name: "Hidden" });
|
|
5418
5418
|
}
|
|
5419
|
-
let Vr =
|
|
5419
|
+
let Vr = ke(Wd), qd = Ne(null);
|
|
5420
5420
|
function Vd(e) {
|
|
5421
|
-
let [t, n] =
|
|
5421
|
+
let [t, n] = he(null);
|
|
5422
5422
|
return j.createElement(qd.Provider, { value: { target: t } }, e.children, j.createElement(Vr, { features: lr.Hidden, ref: n }));
|
|
5423
5423
|
}
|
|
5424
5424
|
let Xl = Ne(void 0);
|
|
5425
5425
|
function Jl() {
|
|
5426
|
-
return
|
|
5426
|
+
return Se(Xl);
|
|
5427
5427
|
}
|
|
5428
5428
|
function Gd({ id: e, children: t }) {
|
|
5429
5429
|
return j.createElement(Xl.Provider, { value: e }, t);
|
|
@@ -5461,7 +5461,7 @@ function Xd(e, t = !0) {
|
|
|
5461
5461
|
}
|
|
5462
5462
|
function Xe(...e) {
|
|
5463
5463
|
let t = oe(e);
|
|
5464
|
-
|
|
5464
|
+
Ee(() => {
|
|
5465
5465
|
t.current = e;
|
|
5466
5466
|
}, [e]);
|
|
5467
5467
|
let n = ue((r) => {
|
|
@@ -5472,7 +5472,7 @@ function Xe(...e) {
|
|
|
5472
5472
|
let ro = Ne(null);
|
|
5473
5473
|
ro.displayName = "DescriptionContext";
|
|
5474
5474
|
function nc() {
|
|
5475
|
-
let e =
|
|
5475
|
+
let e = Se(ro);
|
|
5476
5476
|
if (e === null) {
|
|
5477
5477
|
let t = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
5478
5478
|
throw Error.captureStackTrace && Error.captureStackTrace(t, nc), t;
|
|
@@ -5481,10 +5481,10 @@ function nc() {
|
|
|
5481
5481
|
}
|
|
5482
5482
|
function Jd() {
|
|
5483
5483
|
var e, t;
|
|
5484
|
-
return (t = (e =
|
|
5484
|
+
return (t = (e = Se(ro)) == null ? void 0 : e.value) != null ? t : void 0;
|
|
5485
5485
|
}
|
|
5486
5486
|
function rc() {
|
|
5487
|
-
let [e, t] =
|
|
5487
|
+
let [e, t] = he([]);
|
|
5488
5488
|
return [e.length > 0 ? e.join(" ") : void 0, de(() => function(n) {
|
|
5489
5489
|
let r = ue((s) => (t((i) => [...i, s]), () => t((i) => {
|
|
5490
5490
|
let a = i.slice(), l = a.indexOf(s);
|
|
@@ -5496,16 +5496,16 @@ function rc() {
|
|
|
5496
5496
|
let Zd = "p";
|
|
5497
5497
|
function eh(e, t) {
|
|
5498
5498
|
let n = qt(), r = no(), { id: o = `headlessui-description-${n}`, ...s } = e, i = nc(), a = Xe(t);
|
|
5499
|
-
|
|
5499
|
+
Pe(() => i.register(o), [o, i.register]);
|
|
5500
5500
|
let l = r || !1, c = de(() => ({ ...i.slot, disabled: l }), [i.slot, l]), u = { ref: a, ...i.props, id: o };
|
|
5501
5501
|
return Le()({ ourProps: u, theirProps: s, slot: c, defaultTag: Zd, name: i.name || "Description" });
|
|
5502
5502
|
}
|
|
5503
|
-
let th =
|
|
5503
|
+
let th = ke(eh), oc = Object.assign(th, {});
|
|
5504
5504
|
var sc = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(sc || {});
|
|
5505
5505
|
let oo = Ne(null);
|
|
5506
5506
|
oo.displayName = "LabelContext";
|
|
5507
5507
|
function ic() {
|
|
5508
|
-
let e =
|
|
5508
|
+
let e = Se(oo);
|
|
5509
5509
|
if (e === null) {
|
|
5510
5510
|
let t = new Error("You used a <Label /> component, but it is not inside a relevant parent.");
|
|
5511
5511
|
throw Error.captureStackTrace && Error.captureStackTrace(t, ic), t;
|
|
@@ -5514,11 +5514,11 @@ function ic() {
|
|
|
5514
5514
|
}
|
|
5515
5515
|
function ac(e) {
|
|
5516
5516
|
var t, n, r;
|
|
5517
|
-
let o = (n = (t =
|
|
5517
|
+
let o = (n = (t = Se(oo)) == null ? void 0 : t.value) != null ? n : void 0;
|
|
5518
5518
|
return ((r = void 0) != null ? r : 0) > 0 ? [o, ...e].filter(Boolean).join(" ") : o;
|
|
5519
5519
|
}
|
|
5520
5520
|
function nh({ inherit: e = !1 } = {}) {
|
|
5521
|
-
let t = ac(), [n, r] =
|
|
5521
|
+
let t = ac(), [n, r] = he([]), o = e ? [t, ...n].filter(Boolean) : n;
|
|
5522
5522
|
return [o.length > 0 ? o.join(" ") : void 0, de(() => function(s) {
|
|
5523
5523
|
let i = ue((l) => (r((c) => [...c, l]), () => r((c) => {
|
|
5524
5524
|
let u = c.slice(), f = u.indexOf(l);
|
|
@@ -5531,10 +5531,10 @@ let rh = "label";
|
|
|
5531
5531
|
function oh(e, t) {
|
|
5532
5532
|
var n;
|
|
5533
5533
|
let r = qt(), o = ic(), s = Jl(), 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);
|
|
5534
|
-
|
|
5535
|
-
let h = ue((
|
|
5536
|
-
let w =
|
|
5537
|
-
if (!(
|
|
5534
|
+
Pe(() => o.register(a), [a, o.register]);
|
|
5535
|
+
let h = ue((b) => {
|
|
5536
|
+
let w = b.currentTarget;
|
|
5537
|
+
if (!(b.target !== b.currentTarget && Qd(b.target)) && (ji(w) && b.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(b), ji(w))) {
|
|
5538
5538
|
let x = document.getElementById(w.htmlFor);
|
|
5539
5539
|
if (x) {
|
|
5540
5540
|
let y = x.getAttribute("disabled");
|
|
@@ -5544,10 +5544,10 @@ function oh(e, t) {
|
|
|
5544
5544
|
(ec(x) && (x.type === "file" || x.type === "radio" || x.type === "checkbox") || x.role === "radio" || x.role === "checkbox" || x.role === "switch") && x.click(), x.focus({ preventScroll: !0 });
|
|
5545
5545
|
}
|
|
5546
5546
|
}
|
|
5547
|
-
}), d = i || !1,
|
|
5548
|
-
return c && ("onClick" in m && (delete m.htmlFor, delete m.onClick), "onClick" in u && delete u.onClick), Le()({ ourProps: m, theirProps: u, slot:
|
|
5547
|
+
}), d = i || !1, g = de(() => ({ ...o.slot, disabled: d }), [o.slot, d]), m = { ref: f, ...o.props, id: a, htmlFor: l, onClick: h };
|
|
5548
|
+
return c && ("onClick" in m && (delete m.htmlFor, delete m.onClick), "onClick" in u && delete u.onClick), Le()({ ourProps: m, theirProps: u, slot: g, defaultTag: l ? rh : "div", name: o.name || "Label" });
|
|
5549
5549
|
}
|
|
5550
|
-
let sh =
|
|
5550
|
+
let sh = ke(oh), ih = Object.assign(sh, {}), ah = Ne(() => {
|
|
5551
5551
|
});
|
|
5552
5552
|
function lh({ value: e, children: t }) {
|
|
5553
5553
|
return j.createElement(ah.Provider, { value: e }, t);
|
|
@@ -5666,15 +5666,15 @@ function yh() {
|
|
|
5666
5666
|
return $o.useSyncExternalStoreWithSelector = function(l, c, u, f, h) {
|
|
5667
5667
|
var d = o(null);
|
|
5668
5668
|
if (d.current === null) {
|
|
5669
|
-
var
|
|
5670
|
-
d.current =
|
|
5671
|
-
} else
|
|
5669
|
+
var g = { hasValue: !1, value: null };
|
|
5670
|
+
d.current = g;
|
|
5671
|
+
} else g = d.current;
|
|
5672
5672
|
d = i(
|
|
5673
5673
|
function() {
|
|
5674
|
-
function
|
|
5674
|
+
function b(v) {
|
|
5675
5675
|
if (!w) {
|
|
5676
|
-
if (w = !0, x = v, v = f(v), h !== void 0 &&
|
|
5677
|
-
var N =
|
|
5676
|
+
if (w = !0, x = v, v = f(v), h !== void 0 && g.hasValue) {
|
|
5677
|
+
var N = g.value;
|
|
5678
5678
|
if (h(N, v))
|
|
5679
5679
|
return y = N;
|
|
5680
5680
|
}
|
|
@@ -5687,10 +5687,10 @@ function yh() {
|
|
|
5687
5687
|
var w = !1, x, y, C = u === void 0 ? null : u;
|
|
5688
5688
|
return [
|
|
5689
5689
|
function() {
|
|
5690
|
-
return
|
|
5690
|
+
return b(c());
|
|
5691
5691
|
},
|
|
5692
5692
|
C === null ? void 0 : function() {
|
|
5693
|
-
return
|
|
5693
|
+
return b(C());
|
|
5694
5694
|
}
|
|
5695
5695
|
];
|
|
5696
5696
|
},
|
|
@@ -5699,7 +5699,7 @@ function yh() {
|
|
|
5699
5699
|
var m = r(l, d[0], d[1]);
|
|
5700
5700
|
return s(
|
|
5701
5701
|
function() {
|
|
5702
|
-
|
|
5702
|
+
g.hasValue = !0, g.value = m;
|
|
5703
5703
|
},
|
|
5704
5704
|
[m]
|
|
5705
5705
|
), a(m), m;
|
|
@@ -5726,15 +5726,15 @@ function wh() {
|
|
|
5726
5726
|
Io.useSyncExternalStoreWithSelector = function(l, c, u, f, h) {
|
|
5727
5727
|
var d = o(null);
|
|
5728
5728
|
if (d.current === null) {
|
|
5729
|
-
var
|
|
5730
|
-
d.current =
|
|
5731
|
-
} else
|
|
5729
|
+
var g = { hasValue: !1, value: null };
|
|
5730
|
+
d.current = g;
|
|
5731
|
+
} else g = d.current;
|
|
5732
5732
|
d = i(
|
|
5733
5733
|
function() {
|
|
5734
|
-
function
|
|
5734
|
+
function b(v) {
|
|
5735
5735
|
if (!w) {
|
|
5736
|
-
if (w = !0, x = v, v = f(v), h !== void 0 &&
|
|
5737
|
-
var N =
|
|
5736
|
+
if (w = !0, x = v, v = f(v), h !== void 0 && g.hasValue) {
|
|
5737
|
+
var N = g.value;
|
|
5738
5738
|
if (h(N, v))
|
|
5739
5739
|
return y = N;
|
|
5740
5740
|
}
|
|
@@ -5748,10 +5748,10 @@ function wh() {
|
|
|
5748
5748
|
var w = !1, x, y, C = u === void 0 ? null : u;
|
|
5749
5749
|
return [
|
|
5750
5750
|
function() {
|
|
5751
|
-
return
|
|
5751
|
+
return b(c());
|
|
5752
5752
|
},
|
|
5753
5753
|
C === null ? void 0 : function() {
|
|
5754
|
-
return
|
|
5754
|
+
return b(C());
|
|
5755
5755
|
}
|
|
5756
5756
|
];
|
|
5757
5757
|
},
|
|
@@ -5760,7 +5760,7 @@ function wh() {
|
|
|
5760
5760
|
var m = r(l, d[0], d[1]);
|
|
5761
5761
|
return s(
|
|
5762
5762
|
function() {
|
|
5763
|
-
|
|
5763
|
+
g.hasValue = !0, g.value = m;
|
|
5764
5764
|
},
|
|
5765
5765
|
[m]
|
|
5766
5766
|
), a(m), m;
|
|
@@ -5779,8 +5779,8 @@ function Ch(e) {
|
|
|
5779
5779
|
return e;
|
|
5780
5780
|
}
|
|
5781
5781
|
function yr(e, t) {
|
|
5782
|
-
let n = qt(), r = dc.get(t), [o, s] = hc(r,
|
|
5783
|
-
return
|
|
5782
|
+
let n = qt(), r = dc.get(t), [o, s] = hc(r, we((i) => [r.selectors.isTop(i, n), r.selectors.inStack(i, n)], [r, n]));
|
|
5783
|
+
return Pe(() => {
|
|
5784
5784
|
if (e) return r.actions.push(n), () => r.actions.pop(n);
|
|
5785
5785
|
}, [r, e, n]), e ? s ? o : !0 : !1;
|
|
5786
5786
|
}
|
|
@@ -5799,7 +5799,7 @@ function Gi(e) {
|
|
|
5799
5799
|
}
|
|
5800
5800
|
function Th(e, { allowed: t, disallowed: n } = {}) {
|
|
5801
5801
|
let r = yr(e, "inert-others");
|
|
5802
|
-
|
|
5802
|
+
Pe(() => {
|
|
5803
5803
|
var o, s;
|
|
5804
5804
|
if (!r) return;
|
|
5805
5805
|
let i = wt();
|
|
@@ -5823,7 +5823,7 @@ function Oh(e, t, n) {
|
|
|
5823
5823
|
let s = o.getBoundingClientRect();
|
|
5824
5824
|
s.x === 0 && s.y === 0 && s.width === 0 && s.height === 0 && n();
|
|
5825
5825
|
});
|
|
5826
|
-
|
|
5826
|
+
Ee(() => {
|
|
5827
5827
|
if (!e) return;
|
|
5828
5828
|
let o = t === null ? null : zt(t) ? t : t.current;
|
|
5829
5829
|
if (!o) return;
|
|
@@ -5885,7 +5885,7 @@ function Nh(e, t = (n) => n) {
|
|
|
5885
5885
|
}
|
|
5886
5886
|
function nr(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
|
|
5887
5887
|
let s = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, i = Array.isArray(e) ? n ? Nh(e) : e : t & 64 ? Ah(e) : kh(e);
|
|
5888
|
-
o.length > 0 && i.length > 1 && (i = i.filter((d) => !o.some((
|
|
5888
|
+
o.length > 0 && i.length > 1 && (i = i.filter((d) => !o.some((g) => g != null && "current" in g ? (g == null ? void 0 : g.current) === d : g === d))), r = r ?? s.activeElement;
|
|
5889
5889
|
let a = (() => {
|
|
5890
5890
|
if (t & 5) return 1;
|
|
5891
5891
|
if (t & 10) return -1;
|
|
@@ -5920,7 +5920,7 @@ function Yi() {
|
|
|
5920
5920
|
}
|
|
5921
5921
|
function $r(e, t, n, r) {
|
|
5922
5922
|
let o = pn(n);
|
|
5923
|
-
|
|
5923
|
+
Ee(() => {
|
|
5924
5924
|
if (!e) return;
|
|
5925
5925
|
function s(i) {
|
|
5926
5926
|
o.current(i);
|
|
@@ -5930,7 +5930,7 @@ function $r(e, t, n, r) {
|
|
|
5930
5930
|
}
|
|
5931
5931
|
function gc(e, t, n, r) {
|
|
5932
5932
|
let o = pn(n);
|
|
5933
|
-
|
|
5933
|
+
Ee(() => {
|
|
5934
5934
|
if (!e) return;
|
|
5935
5935
|
function s(i) {
|
|
5936
5936
|
o.current(i);
|
|
@@ -5940,7 +5940,7 @@ function gc(e, t, n, r) {
|
|
|
5940
5940
|
}
|
|
5941
5941
|
const Ki = 30;
|
|
5942
5942
|
function Mh(e, t, n) {
|
|
5943
|
-
let r = pn(n), o =
|
|
5943
|
+
let r = pn(n), o = we(function(a, l) {
|
|
5944
5944
|
if (a.defaultPrevented) return;
|
|
5945
5945
|
let c = l(a);
|
|
5946
5946
|
if (c === null || !c.getRootNode().contains(c) || !c.isConnected) return;
|
|
@@ -5971,7 +5971,7 @@ function so(...e) {
|
|
|
5971
5971
|
}
|
|
5972
5972
|
function bc(e, t, n, r) {
|
|
5973
5973
|
let o = pn(n);
|
|
5974
|
-
|
|
5974
|
+
Ee(() => {
|
|
5975
5975
|
e = e ?? window;
|
|
5976
5976
|
function s(i) {
|
|
5977
5977
|
o.current(i);
|
|
@@ -6082,7 +6082,7 @@ Xt.subscribe(() => {
|
|
|
6082
6082
|
});
|
|
6083
6083
|
function Bh(e, t, n = () => ({ containers: [] })) {
|
|
6084
6084
|
let r = _h(Xt), o = t ? r.get(t) : void 0, s = o ? o.count > 0 : !1;
|
|
6085
|
-
return
|
|
6085
|
+
return Pe(() => {
|
|
6086
6086
|
if (!(!t || !e)) return Xt.dispatch("PUSH", t, n), () => Xt.dispatch("POP", t, n);
|
|
6087
6087
|
}, [e, t]), s;
|
|
6088
6088
|
}
|
|
@@ -6094,7 +6094,7 @@ function Wh(e, t, n = () => [document.body]) {
|
|
|
6094
6094
|
});
|
|
6095
6095
|
}
|
|
6096
6096
|
function qh(e = 0) {
|
|
6097
|
-
let [t, n] =
|
|
6097
|
+
let [t, n] = he(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]);
|
|
6098
6098
|
return { flags: t, setFlag: r, addFlag: o, hasFlag: s, removeFlag: i, toggleFlag: a };
|
|
6099
6099
|
}
|
|
6100
6100
|
var Qi, Xi;
|
|
@@ -6109,8 +6109,8 @@ function Gh(e) {
|
|
|
6109
6109
|
return t;
|
|
6110
6110
|
}
|
|
6111
6111
|
function Yh(e, t, n, r) {
|
|
6112
|
-
let [o, s] =
|
|
6113
|
-
return
|
|
6112
|
+
let [o, s] = he(n), { hasFlag: i, addFlag: a, removeFlag: l } = qh(e && o ? 3 : 0), c = oe(!1), u = oe(!1), f = oi();
|
|
6113
|
+
return Pe(() => {
|
|
6114
6114
|
var h;
|
|
6115
6115
|
if (e) {
|
|
6116
6116
|
if (n && s(!0), !t) {
|
|
@@ -6159,7 +6159,7 @@ function Xh(e, { inFlight: t, prepare: n }) {
|
|
|
6159
6159
|
}
|
|
6160
6160
|
function si(e, t) {
|
|
6161
6161
|
let n = oe([]), r = ue(e);
|
|
6162
|
-
|
|
6162
|
+
Ee(() => {
|
|
6163
6163
|
let o = [...n.current];
|
|
6164
6164
|
for (let [s, i] of t.entries()) if (n.current[s] !== i) {
|
|
6165
6165
|
let a = r(t, o);
|
|
@@ -6378,10 +6378,10 @@ const op = async (e, t, n) => {
|
|
|
6378
6378
|
}), {
|
|
6379
6379
|
x: u,
|
|
6380
6380
|
y: f
|
|
6381
|
-
} = Zi(c, r, l), h = r, d = {},
|
|
6381
|
+
} = Zi(c, r, l), h = r, d = {}, g = 0;
|
|
6382
6382
|
for (let m = 0; m < a.length; m++) {
|
|
6383
6383
|
const {
|
|
6384
|
-
name:
|
|
6384
|
+
name: b,
|
|
6385
6385
|
fn: w
|
|
6386
6386
|
} = a[m], {
|
|
6387
6387
|
x,
|
|
@@ -6404,11 +6404,11 @@ const op = async (e, t, n) => {
|
|
|
6404
6404
|
});
|
|
6405
6405
|
u = x ?? u, f = y ?? f, d = {
|
|
6406
6406
|
...d,
|
|
6407
|
-
[
|
|
6408
|
-
...d[
|
|
6407
|
+
[b]: {
|
|
6408
|
+
...d[b],
|
|
6409
6409
|
...C
|
|
6410
6410
|
}
|
|
6411
|
-
}, v &&
|
|
6411
|
+
}, v && g <= 50 && (g++, typeof v == "object" && (v.placement && (h = v.placement), v.rects && (c = v.rects === !0 ? await i.getElementRects({
|
|
6412
6412
|
reference: e,
|
|
6413
6413
|
floating: t,
|
|
6414
6414
|
strategy: o
|
|
@@ -6473,10 +6473,10 @@ function cr(e, t, n, r) {
|
|
|
6473
6473
|
let l = (o.left + a.x) / i.x, c = (o.top + a.y) / i.y, u = o.width / i.x, f = o.height / i.y;
|
|
6474
6474
|
if (s) {
|
|
6475
6475
|
const h = De(s), d = r && ve(r) ? De(r) : r;
|
|
6476
|
-
let
|
|
6477
|
-
for (; m && r && d !==
|
|
6478
|
-
const
|
|
6479
|
-
l *=
|
|
6476
|
+
let g = h, m = Cs(g);
|
|
6477
|
+
for (; m && r && d !== g; ) {
|
|
6478
|
+
const b = Cn(m), w = m.getBoundingClientRect(), x = We(m), y = w.left + (m.clientLeft + parseFloat(x.paddingLeft)) * b.x, C = w.top + (m.clientTop + parseFloat(x.paddingTop)) * b.y;
|
|
6479
|
+
l *= b.x, c *= b.y, u *= b.x, f *= b.y, l += y, c += C, g = De(m), m = Cs(g);
|
|
6480
6480
|
}
|
|
6481
6481
|
}
|
|
6482
6482
|
return Ec({
|
|
@@ -6762,7 +6762,7 @@ function na(e, t) {
|
|
|
6762
6762
|
return Math.round(t * n) / n;
|
|
6763
6763
|
}
|
|
6764
6764
|
function No(e) {
|
|
6765
|
-
const t =
|
|
6765
|
+
const t = $.useRef(e);
|
|
6766
6766
|
return _r(() => {
|
|
6767
6767
|
t.current = e;
|
|
6768
6768
|
}), t;
|
|
@@ -6781,20 +6781,20 @@ function Ep(e) {
|
|
|
6781
6781
|
transform: a = !0,
|
|
6782
6782
|
whileElementsMounted: l,
|
|
6783
6783
|
open: c
|
|
6784
|
-
} = e, [u, f] =
|
|
6784
|
+
} = e, [u, f] = $.useState({
|
|
6785
6785
|
x: 0,
|
|
6786
6786
|
y: 0,
|
|
6787
6787
|
strategy: n,
|
|
6788
6788
|
placement: t,
|
|
6789
6789
|
middlewareData: {},
|
|
6790
6790
|
isPositioned: !1
|
|
6791
|
-
}), [h, d] =
|
|
6791
|
+
}), [h, d] = $.useState(r);
|
|
6792
6792
|
Kr(h, r) || d(r);
|
|
6793
|
-
const [
|
|
6793
|
+
const [g, m] = $.useState(null), [b, w] = $.useState(null), x = $.useCallback((O) => {
|
|
6794
6794
|
O !== N.current && (N.current = O, m(O));
|
|
6795
|
-
}, []), y =
|
|
6795
|
+
}, []), y = $.useCallback((O) => {
|
|
6796
6796
|
O !== q.current && (q.current = O, w(O));
|
|
6797
|
-
}, []), C = s ||
|
|
6797
|
+
}, []), C = s || g, v = i || b, N = $.useRef(null), q = $.useRef(null), k = $.useRef(u), B = l != null, G = No(l), ce = No(o), fe = No(c), se = $.useCallback(() => {
|
|
6798
6798
|
if (!N.current || !q.current)
|
|
6799
6799
|
return;
|
|
6800
6800
|
const O = {
|
|
@@ -6811,7 +6811,7 @@ function Ep(e) {
|
|
|
6811
6811
|
// setting it to `true` when `open === false` (must be specified).
|
|
6812
6812
|
isPositioned: fe.current !== !1
|
|
6813
6813
|
};
|
|
6814
|
-
|
|
6814
|
+
pe.current && !Kr(k.current, E) && (k.current = E, Bu.flushSync(() => {
|
|
6815
6815
|
f(E);
|
|
6816
6816
|
}));
|
|
6817
6817
|
});
|
|
@@ -6822,9 +6822,9 @@ function Ep(e) {
|
|
|
6822
6822
|
isPositioned: !1
|
|
6823
6823
|
})));
|
|
6824
6824
|
}, [c]);
|
|
6825
|
-
const
|
|
6826
|
-
_r(() => (
|
|
6827
|
-
|
|
6825
|
+
const pe = $.useRef(!1);
|
|
6826
|
+
_r(() => (pe.current = !0, () => {
|
|
6827
|
+
pe.current = !1;
|
|
6828
6828
|
}), []), _r(() => {
|
|
6829
6829
|
if (C && (N.current = C), v && (q.current = v), C && v) {
|
|
6830
6830
|
if (G.current)
|
|
@@ -6832,15 +6832,15 @@ function Ep(e) {
|
|
|
6832
6832
|
se();
|
|
6833
6833
|
}
|
|
6834
6834
|
}, [C, v, se, G, B]);
|
|
6835
|
-
const W =
|
|
6835
|
+
const W = $.useMemo(() => ({
|
|
6836
6836
|
reference: N,
|
|
6837
6837
|
floating: q,
|
|
6838
6838
|
setReference: x,
|
|
6839
6839
|
setFloating: y
|
|
6840
|
-
}), [x, y]), Y =
|
|
6840
|
+
}), [x, y]), Y = $.useMemo(() => ({
|
|
6841
6841
|
reference: C,
|
|
6842
6842
|
floating: v
|
|
6843
|
-
}), [C, v]), ne =
|
|
6843
|
+
}), [C, v]), ne = $.useMemo(() => {
|
|
6844
6844
|
const O = {
|
|
6845
6845
|
position: n,
|
|
6846
6846
|
left: 0,
|
|
@@ -6861,7 +6861,7 @@ function Ep(e) {
|
|
|
6861
6861
|
top: E
|
|
6862
6862
|
};
|
|
6863
6863
|
}, [n, a, Y.floating, u.x, u.y]);
|
|
6864
|
-
return
|
|
6864
|
+
return $.useMemo(() => ({
|
|
6865
6865
|
...u,
|
|
6866
6866
|
update: se,
|
|
6867
6867
|
refs: W,
|
|
@@ -6873,7 +6873,7 @@ let uo = Ne(null);
|
|
|
6873
6873
|
uo.displayName = "OpenClosedContext";
|
|
6874
6874
|
var Ye = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Ye || {});
|
|
6875
6875
|
function fo() {
|
|
6876
|
-
return
|
|
6876
|
+
return Se(uo);
|
|
6877
6877
|
}
|
|
6878
6878
|
function Cp({ value: e, children: t }) {
|
|
6879
6879
|
return j.createElement(uo.Provider, { value: e }, t);
|
|
@@ -6898,7 +6898,7 @@ Op(() => {
|
|
|
6898
6898
|
});
|
|
6899
6899
|
function Rc(e) {
|
|
6900
6900
|
let t = ue(e), n = oe(!1);
|
|
6901
|
-
|
|
6901
|
+
Ee(() => (n.current = !1, () => {
|
|
6902
6902
|
n.current = !0, to(() => {
|
|
6903
6903
|
n.current && t();
|
|
6904
6904
|
});
|
|
@@ -6906,24 +6906,24 @@ function Rc(e) {
|
|
|
6906
6906
|
}
|
|
6907
6907
|
function Pp() {
|
|
6908
6908
|
let e = typeof document > "u";
|
|
6909
|
-
return "useSyncExternalStore" in
|
|
6909
|
+
return "useSyncExternalStore" in $ ? ((t) => t.useSyncExternalStore)($)(() => () => {
|
|
6910
6910
|
}, () => !1, () => !e) : !1;
|
|
6911
6911
|
}
|
|
6912
6912
|
function xr() {
|
|
6913
|
-
let e = Pp(), [t, n] =
|
|
6914
|
-
return t && ln.isHandoffComplete === !1 && n(!1),
|
|
6913
|
+
let e = Pp(), [t, n] = $.useState(ln.isHandoffComplete);
|
|
6914
|
+
return t && ln.isHandoffComplete === !1 && n(!1), $.useEffect(() => {
|
|
6915
6915
|
t !== !0 && n(!0);
|
|
6916
|
-
}, [t]),
|
|
6916
|
+
}, [t]), $.useEffect(() => ln.handoff(), []), e ? !1 : t;
|
|
6917
6917
|
}
|
|
6918
6918
|
let $c = Ne(!1);
|
|
6919
6919
|
function Sp() {
|
|
6920
|
-
return
|
|
6920
|
+
return Se($c);
|
|
6921
6921
|
}
|
|
6922
6922
|
function ra(e) {
|
|
6923
6923
|
return j.createElement($c.Provider, { value: e.force }, e.children);
|
|
6924
6924
|
}
|
|
6925
6925
|
function kp(e) {
|
|
6926
|
-
let t = Sp(), n =
|
|
6926
|
+
let t = Sp(), n = Se(Fc), [r, o] = he(() => {
|
|
6927
6927
|
var s;
|
|
6928
6928
|
if (!t && n !== null) return (s = n.current) != null ? s : null;
|
|
6929
6929
|
if (ln.isServer) return null;
|
|
@@ -6933,22 +6933,22 @@ function kp(e) {
|
|
|
6933
6933
|
let a = e.createElement("div");
|
|
6934
6934
|
return a.setAttribute("id", "headlessui-portal-root"), e.body.appendChild(a);
|
|
6935
6935
|
});
|
|
6936
|
-
return
|
|
6936
|
+
return Ee(() => {
|
|
6937
6937
|
r !== null && (e != null && e.body.contains(r) || e == null || e.body.appendChild(r));
|
|
6938
|
-
}, [r, e]),
|
|
6938
|
+
}, [r, e]), Ee(() => {
|
|
6939
6939
|
t || n !== null && o(n.current);
|
|
6940
6940
|
}, [n, o, t]), r;
|
|
6941
6941
|
}
|
|
6942
|
-
let Ic = Ke, Ap =
|
|
6942
|
+
let Ic = Ke, Ap = ke(function(e, t) {
|
|
6943
6943
|
let { ownerDocument: n = null, ...r } = e, o = oe(null), s = Xe(Xd((d) => {
|
|
6944
6944
|
o.current = d;
|
|
6945
|
-
}), t), i = so(o), a = n ?? i, l = kp(a), [c] =
|
|
6945
|
+
}), t), i = so(o), a = n ?? i, l = kp(a), [c] = he(() => {
|
|
6946
6946
|
var d;
|
|
6947
6947
|
return ln.isServer ? null : (d = a == null ? void 0 : a.createElement("div")) != null ? d : null;
|
|
6948
|
-
}), u =
|
|
6949
|
-
|
|
6948
|
+
}), u = Se(Ts), f = xr();
|
|
6949
|
+
Pe(() => {
|
|
6950
6950
|
!l || !c || l.contains(c) || (c.setAttribute("data-headlessui-portal", ""), l.appendChild(c));
|
|
6951
|
-
}, [l, c]),
|
|
6951
|
+
}, [l, c]), Pe(() => {
|
|
6952
6952
|
if (c && u) return u.register(c);
|
|
6953
6953
|
}, [u, c]), Rc(() => {
|
|
6954
6954
|
var d;
|
|
@@ -6968,7 +6968,7 @@ function Ip(e, t) {
|
|
|
6968
6968
|
}
|
|
6969
6969
|
let Ts = Ne(null);
|
|
6970
6970
|
function Fp() {
|
|
6971
|
-
let e =
|
|
6971
|
+
let e = Se(Ts), t = oe([]), n = ue((s) => (t.current.push(s), e && e.register(s), () => r(s))), r = ue((s) => {
|
|
6972
6972
|
let i = t.current.indexOf(s);
|
|
6973
6973
|
i !== -1 && t.current.splice(i, 1), e && e.unregister(s);
|
|
6974
6974
|
}), o = de(() => ({ register: n, unregister: r, portals: t }), [n, r, t]);
|
|
@@ -6976,7 +6976,7 @@ function Fp() {
|
|
|
6976
6976
|
return j.createElement(Ts.Provider, { value: o }, s);
|
|
6977
6977
|
}, [o])];
|
|
6978
6978
|
}
|
|
6979
|
-
let Np =
|
|
6979
|
+
let Np = ke(Rp), Nc = ke(Ip), Lp = Object.assign(Np, { Group: Nc });
|
|
6980
6980
|
function Mp(e, t = typeof document < "u" ? document.defaultView : null, n) {
|
|
6981
6981
|
let r = yr(e, "escape");
|
|
6982
6982
|
bc(t, "keydown", (o) => {
|
|
@@ -6985,8 +6985,8 @@ function Mp(e, t = typeof document < "u" ? document.defaultView : null, n) {
|
|
|
6985
6985
|
}
|
|
6986
6986
|
function _p() {
|
|
6987
6987
|
var e;
|
|
6988
|
-
let [t] =
|
|
6989
|
-
return
|
|
6988
|
+
let [t] = he(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, r] = he((e = t == null ? void 0 : t.matches) != null ? e : !1);
|
|
6989
|
+
return Pe(() => {
|
|
6990
6990
|
if (!t) return;
|
|
6991
6991
|
function o(s) {
|
|
6992
6992
|
r(s.matches);
|
|
@@ -7007,7 +7007,7 @@ function Dp({ defaultContainers: e = [], portals: t, mainTreeNode: n } = {}) {
|
|
|
7007
7007
|
}
|
|
7008
7008
|
let Lc = Ne(null);
|
|
7009
7009
|
function oa({ children: e, node: t }) {
|
|
7010
|
-
let [n, r] =
|
|
7010
|
+
let [n, r] = he(null), o = Mc(t ?? n);
|
|
7011
7011
|
return j.createElement(Lc.Provider, { value: o }, e, o === null && j.createElement(Vr, { features: lr.Hidden, ref: (s) => {
|
|
7012
7012
|
var i, a;
|
|
7013
7013
|
if (s) {
|
|
@@ -7020,11 +7020,11 @@ function oa({ children: e, node: t }) {
|
|
|
7020
7020
|
}
|
|
7021
7021
|
function Mc(e = null) {
|
|
7022
7022
|
var t;
|
|
7023
|
-
return (t =
|
|
7023
|
+
return (t = Se(Lc)) != null ? t : e;
|
|
7024
7024
|
}
|
|
7025
7025
|
function li() {
|
|
7026
7026
|
let e = oe(!1);
|
|
7027
|
-
return
|
|
7027
|
+
return Pe(() => (e.current = !0, () => {
|
|
7028
7028
|
e.current = !1;
|
|
7029
7029
|
}), []), e;
|
|
7030
7030
|
}
|
|
@@ -7061,8 +7061,8 @@ function Hp(e, t) {
|
|
|
7061
7061
|
nr(y, ct.Last, { skipElements: [x.relatedTarget, s] });
|
|
7062
7062
|
} });
|
|
7063
7063
|
});
|
|
7064
|
-
}), d = yr(!!(a & 2), "focus-trap#tab-lock"),
|
|
7065
|
-
x.key == "Tab" && (m.current = !0,
|
|
7064
|
+
}), d = yr(!!(a & 2), "focus-trap#tab-lock"), g = oi(), m = oe(!1), b = { ref: r, onKeyDown(x) {
|
|
7065
|
+
x.key == "Tab" && (m.current = !0, g.requestAnimationFrame(() => {
|
|
7066
7066
|
m.current = !1;
|
|
7067
7067
|
}));
|
|
7068
7068
|
}, onBlur(x) {
|
|
@@ -7072,9 +7072,9 @@ function Hp(e, t) {
|
|
|
7072
7072
|
let C = x.relatedTarget;
|
|
7073
7073
|
Dt(C) && C.dataset.headlessuiFocusGuard !== "true" && (Dc(y, C) || (m.current ? nr(n.current, mt(f.current, { [Xn.Forwards]: () => ct.Next, [Xn.Backwards]: () => ct.Previous }) | ct.WrapAround, { relativeTo: x.target }) : Dt(x.target) && dt(x.target)));
|
|
7074
7074
|
} }, w = Le();
|
|
7075
|
-
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:
|
|
7075
|
+
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: b, theirProps: l, defaultTag: zp, name: "FocusTrap" }), d && j.createElement(Vr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: lr.Focusable }));
|
|
7076
7076
|
}
|
|
7077
|
-
let Up =
|
|
7077
|
+
let Up = ke(Hp), Bp = Object.assign(Up, { features: Kt });
|
|
7078
7078
|
function Wp(e = !0) {
|
|
7079
7079
|
let t = oe(Pt.slice());
|
|
7080
7080
|
return si(([n], [r]) => {
|
|
@@ -7151,12 +7151,12 @@ let ho = Ne(null);
|
|
|
7151
7151
|
ho.displayName = "TransitionContext";
|
|
7152
7152
|
var Yp = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Yp || {});
|
|
7153
7153
|
function Kp() {
|
|
7154
|
-
let e =
|
|
7154
|
+
let e = Se(ho);
|
|
7155
7155
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
7156
7156
|
return e;
|
|
7157
7157
|
}
|
|
7158
7158
|
function Qp() {
|
|
7159
|
-
let e =
|
|
7159
|
+
let e = Se(po);
|
|
7160
7160
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
7161
7161
|
return e;
|
|
7162
7162
|
}
|
|
@@ -7166,52 +7166,52 @@ function mo(e) {
|
|
|
7166
7166
|
return "children" in e ? mo(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
7167
7167
|
}
|
|
7168
7168
|
function zc(e, t) {
|
|
7169
|
-
let n = pn(e), r = oe([]), o = li(), s = oi(), i = ue((d,
|
|
7170
|
-
let m = r.current.findIndex(({ el:
|
|
7171
|
-
m !== -1 && (mt(
|
|
7169
|
+
let n = pn(e), r = oe([]), o = li(), s = oi(), i = ue((d, g = _t.Hidden) => {
|
|
7170
|
+
let m = r.current.findIndex(({ el: b }) => b === d);
|
|
7171
|
+
m !== -1 && (mt(g, { [_t.Unmount]() {
|
|
7172
7172
|
r.current.splice(m, 1);
|
|
7173
7173
|
}, [_t.Hidden]() {
|
|
7174
7174
|
r.current[m].state = "hidden";
|
|
7175
7175
|
} }), s.microTask(() => {
|
|
7176
|
-
var
|
|
7177
|
-
!mo(r) && o.current && ((
|
|
7176
|
+
var b;
|
|
7177
|
+
!mo(r) && o.current && ((b = n.current) == null || b.call(n));
|
|
7178
7178
|
}));
|
|
7179
7179
|
}), a = ue((d) => {
|
|
7180
|
-
let
|
|
7181
|
-
return
|
|
7182
|
-
}), l = oe([]), c = oe(Promise.resolve()), u = oe({ enter: [], leave: [] }), f = ue((d,
|
|
7183
|
-
l.current.splice(0), t && (t.chains.current[
|
|
7184
|
-
l.current.push(
|
|
7185
|
-
})]), t == null || t.chains.current[
|
|
7186
|
-
Promise.all(u.current[
|
|
7187
|
-
})]),
|
|
7188
|
-
}), h = ue((d,
|
|
7189
|
-
Promise.all(u.current[
|
|
7190
|
-
var
|
|
7191
|
-
(
|
|
7192
|
-
}).then(() => m(
|
|
7180
|
+
let g = r.current.find(({ el: m }) => m === d);
|
|
7181
|
+
return g ? g.state !== "visible" && (g.state = "visible") : r.current.push({ el: d, state: "visible" }), () => i(d, _t.Unmount);
|
|
7182
|
+
}), l = oe([]), c = oe(Promise.resolve()), u = oe({ enter: [], leave: [] }), f = ue((d, g, m) => {
|
|
7183
|
+
l.current.splice(0), t && (t.chains.current[g] = t.chains.current[g].filter(([b]) => b !== d)), t == null || t.chains.current[g].push([d, new Promise((b) => {
|
|
7184
|
+
l.current.push(b);
|
|
7185
|
+
})]), t == null || t.chains.current[g].push([d, new Promise((b) => {
|
|
7186
|
+
Promise.all(u.current[g].map(([w, x]) => x)).then(() => b());
|
|
7187
|
+
})]), g === "enter" ? c.current = c.current.then(() => t == null ? void 0 : t.wait.current).then(() => m(g)) : m(g);
|
|
7188
|
+
}), h = ue((d, g, m) => {
|
|
7189
|
+
Promise.all(u.current[g].splice(0).map(([b, w]) => w)).then(() => {
|
|
7190
|
+
var b;
|
|
7191
|
+
(b = l.current.shift()) == null || b();
|
|
7192
|
+
}).then(() => m(g));
|
|
7193
7193
|
});
|
|
7194
7194
|
return de(() => ({ children: r, register: a, unregister: i, onStart: f, onStop: h, wait: c, chains: u }), [a, i, r, f, h, u, c]);
|
|
7195
7195
|
}
|
|
7196
7196
|
let Hc = Ke, Uc = qr.RenderStrategy;
|
|
7197
7197
|
function Xp(e, t) {
|
|
7198
7198
|
var n, r;
|
|
7199
|
-
let { transition: o = !0, beforeEnter: s, afterEnter: i, beforeLeave: a, afterLeave: l, enter: c, enterFrom: u, enterTo: f, entered: h, leave: d, leaveFrom:
|
|
7200
|
-
|
|
7199
|
+
let { transition: o = !0, beforeEnter: s, afterEnter: i, beforeLeave: a, afterLeave: l, enter: c, enterFrom: u, enterTo: f, entered: h, leave: d, leaveFrom: g, leaveTo: m, ...b } = e, [w, x] = he(null), y = oe(null), C = jc(e), v = Xe(...C ? [y, t, x] : t === null ? [] : [t]), N = (n = b.unmount) == null || n ? _t.Unmount : _t.Hidden, { show: q, appear: k, initial: B } = Kp(), [G, ce] = he(q ? "visible" : "hidden"), fe = Qp(), { register: se, unregister: pe } = fe;
|
|
7200
|
+
Pe(() => se(y), [se, y]), Pe(() => {
|
|
7201
7201
|
if (N === _t.Hidden && y.current) {
|
|
7202
7202
|
if (q && G !== "visible") {
|
|
7203
7203
|
ce("visible");
|
|
7204
7204
|
return;
|
|
7205
7205
|
}
|
|
7206
|
-
return mt(G, { hidden: () =>
|
|
7206
|
+
return mt(G, { hidden: () => pe(y), visible: () => se(y) });
|
|
7207
7207
|
}
|
|
7208
|
-
}, [G, y, se,
|
|
7208
|
+
}, [G, y, se, pe, q, N]);
|
|
7209
7209
|
let W = xr();
|
|
7210
|
-
|
|
7210
|
+
Pe(() => {
|
|
7211
7211
|
if (C && W && G === "visible" && y.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
7212
7212
|
}, [y, G, W, C]);
|
|
7213
7213
|
let Y = B && !k, ne = k && q && B, O = oe(!1), V = zc(() => {
|
|
7214
|
-
O.current || (ce("hidden"),
|
|
7214
|
+
O.current || (ce("hidden"), pe(y));
|
|
7215
7215
|
}, fe), E = ue((I) => {
|
|
7216
7216
|
O.current = !0;
|
|
7217
7217
|
let Q = I ? "enter" : "leave";
|
|
@@ -7222,52 +7222,52 @@ function Xp(e, t) {
|
|
|
7222
7222
|
let Q = I ? "enter" : "leave";
|
|
7223
7223
|
O.current = !1, V.onStop(y, Q, (X) => {
|
|
7224
7224
|
X === "enter" ? i == null || i() : X === "leave" && (l == null || l());
|
|
7225
|
-
}), Q === "leave" && !mo(V) && (ce("hidden"),
|
|
7225
|
+
}), Q === "leave" && !mo(V) && (ce("hidden"), pe(y));
|
|
7226
7226
|
});
|
|
7227
|
-
|
|
7227
|
+
Ee(() => {
|
|
7228
7228
|
C && o || (E(q), P(q));
|
|
7229
7229
|
}, [q, C, o]);
|
|
7230
|
-
let U = !(!o || !C || !W || Y), [, S] = Yh(U, w, q, { start: E, end: P }), _ = Yt({ ref: v, className: ((r = ys(
|
|
7230
|
+
let U = !(!o || !C || !W || Y), [, S] = Yh(U, w, q, { start: E, end: P }), _ = Yt({ ref: v, className: ((r = ys(b.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 && g, S.leave && S.closed && m, !S.transition && q && h)) == null ? void 0 : r.trim()) || void 0, ...Gh(S) }), K = 0;
|
|
7231
7231
|
G === "visible" && (K |= Ye.Open), G === "hidden" && (K |= Ye.Closed), q && G === "hidden" && (K |= Ye.Opening), !q && G === "visible" && (K |= Ye.Closing);
|
|
7232
7232
|
let z = Le();
|
|
7233
|
-
return j.createElement(po.Provider, { value: V }, j.createElement(Cp, { value: K }, z({ ourProps: _, theirProps:
|
|
7233
|
+
return j.createElement(po.Provider, { value: V }, j.createElement(Cp, { value: K }, z({ ourProps: _, theirProps: b, defaultTag: Hc, features: Uc, visible: G === "visible", name: "Transition.Child" })));
|
|
7234
7234
|
}
|
|
7235
7235
|
function Jp(e, t) {
|
|
7236
7236
|
let { show: n, appear: r = !1, unmount: o = !0, ...s } = e, i = oe(null), a = jc(e), l = Xe(...a ? [i, t] : t === null ? [] : [t]);
|
|
7237
7237
|
xr();
|
|
7238
7238
|
let c = fo();
|
|
7239
7239
|
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.");
|
|
7240
|
-
let [u, f] =
|
|
7240
|
+
let [u, f] = he(n ? "visible" : "hidden"), h = zc(() => {
|
|
7241
7241
|
n || f("hidden");
|
|
7242
|
-
}), [d,
|
|
7243
|
-
|
|
7244
|
-
d !== !1 && m.current[m.current.length - 1] !== n && (m.current.push(n),
|
|
7242
|
+
}), [d, g] = he(!0), m = oe([n]);
|
|
7243
|
+
Pe(() => {
|
|
7244
|
+
d !== !1 && m.current[m.current.length - 1] !== n && (m.current.push(n), g(!1));
|
|
7245
7245
|
}, [m, n]);
|
|
7246
|
-
let
|
|
7247
|
-
|
|
7246
|
+
let b = de(() => ({ show: n, appear: r, initial: d }), [n, r, d]);
|
|
7247
|
+
Pe(() => {
|
|
7248
7248
|
n ? f("visible") : !mo(h) && i.current !== null && f("hidden");
|
|
7249
7249
|
}, [n, h]);
|
|
7250
7250
|
let w = { unmount: o }, x = ue(() => {
|
|
7251
7251
|
var v;
|
|
7252
|
-
d &&
|
|
7252
|
+
d && g(!1), (v = e.beforeEnter) == null || v.call(e);
|
|
7253
7253
|
}), y = ue(() => {
|
|
7254
7254
|
var v;
|
|
7255
|
-
d &&
|
|
7255
|
+
d && g(!1), (v = e.beforeLeave) == null || v.call(e);
|
|
7256
7256
|
}), C = Le();
|
|
7257
|
-
return j.createElement(po.Provider, { value: h }, j.createElement(ho.Provider, { value:
|
|
7257
|
+
return j.createElement(po.Provider, { value: h }, j.createElement(ho.Provider, { value: b }, C({ ourProps: { ...w, as: Ke, children: j.createElement(Bc, { ref: l, ...w, ...s, beforeEnter: x, beforeLeave: y }) }, theirProps: {}, defaultTag: Ke, features: Uc, visible: u === "visible", name: "Transition" })));
|
|
7258
7258
|
}
|
|
7259
7259
|
function Zp(e, t) {
|
|
7260
|
-
let n =
|
|
7260
|
+
let n = Se(ho) !== null, r = fo() !== null;
|
|
7261
7261
|
return j.createElement(j.Fragment, null, !n && r ? j.createElement(Os, { ref: t, ...e }) : j.createElement(Bc, { ref: t, ...e }));
|
|
7262
7262
|
}
|
|
7263
|
-
let Os =
|
|
7263
|
+
let Os = ke(Jp), Bc = ke(Xp), ci = ke(Zp), em = Object.assign(Os, { Child: ci, Root: Os });
|
|
7264
7264
|
var tm = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(tm || {}), nm = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(nm || {});
|
|
7265
7265
|
let rm = { 0(e, t) {
|
|
7266
7266
|
return e.titleId === t.id ? e : { ...e, titleId: t.id };
|
|
7267
7267
|
} }, ui = Ne(null);
|
|
7268
7268
|
ui.displayName = "DialogContext";
|
|
7269
7269
|
function go(e) {
|
|
7270
|
-
let t =
|
|
7270
|
+
let t = Se(ui);
|
|
7271
7271
|
if (t === null) {
|
|
7272
7272
|
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
7273
7273
|
throw Error.captureStackTrace && Error.captureStackTrace(n, go), n;
|
|
@@ -7277,38 +7277,38 @@ function go(e) {
|
|
|
7277
7277
|
function om(e, t) {
|
|
7278
7278
|
return mt(t.type, rm, e, t);
|
|
7279
7279
|
}
|
|
7280
|
-
let sa =
|
|
7280
|
+
let sa = ke(function(e, t) {
|
|
7281
7281
|
let n = qt(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: s, initialFocus: i, role: a = "dialog", autoFocus: l = !0, __demoMode: c = !1, unmount: u = !1, ...f } = e, h = oe(!1);
|
|
7282
7282
|
a = function() {
|
|
7283
7283
|
return a === "dialog" || a === "alertdialog" ? a : (h.current || (h.current = !0, console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
7284
7284
|
}();
|
|
7285
7285
|
let d = fo();
|
|
7286
7286
|
o === void 0 && d !== null && (o = (d & Ye.Open) === Ye.Open);
|
|
7287
|
-
let
|
|
7287
|
+
let g = oe(null), m = Xe(g, t), b = so(g), w = o ? 0 : 1, [x, y] = Hu(om, { titleId: null, descriptionId: null, panelRef: Uu() }), C = ue(() => s(!1)), v = ue((S) => y({ type: 0, id: S })), N = xr() ? w === 0 : !1, [q, k] = Fp(), B = { get current() {
|
|
7288
7288
|
var S;
|
|
7289
|
-
return (S = x.panelRef.current) != null ? S :
|
|
7289
|
+
return (S = x.panelRef.current) != null ? S : g.current;
|
|
7290
7290
|
} }, G = Mc(), { resolveContainers: ce } = Dp({ mainTreeNode: G, portals: q, defaultContainers: [B] }), fe = d !== null ? (d & Ye.Closing) === Ye.Closing : !1;
|
|
7291
7291
|
Th(c || fe ? !1 : N, { allowed: ue(() => {
|
|
7292
7292
|
var S, _;
|
|
7293
|
-
return [(_ = (S =
|
|
7293
|
+
return [(_ = (S = g.current) == null ? void 0 : S.closest("[data-headlessui-portal]")) != null ? _ : null];
|
|
7294
7294
|
}), disallowed: ue(() => {
|
|
7295
7295
|
var S;
|
|
7296
7296
|
return [(S = G == null ? void 0 : G.closest("body > *:not(#headlessui-portal-root)")) != null ? S : null];
|
|
7297
7297
|
}) });
|
|
7298
7298
|
let se = dc.get(null);
|
|
7299
|
-
|
|
7299
|
+
Pe(() => {
|
|
7300
7300
|
if (N) return se.actions.push(r), () => se.actions.pop(r);
|
|
7301
7301
|
}, [se, r, N]);
|
|
7302
|
-
let
|
|
7303
|
-
Mh(
|
|
7302
|
+
let pe = hc(se, we((S) => se.selectors.isTop(S, r), [se, r]));
|
|
7303
|
+
Mh(pe, ce, (S) => {
|
|
7304
7304
|
S.preventDefault(), C();
|
|
7305
|
-
}), Mp(
|
|
7305
|
+
}), Mp(pe, b == null ? void 0 : b.defaultView, (S) => {
|
|
7306
7306
|
S.preventDefault(), S.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), C();
|
|
7307
|
-
}), Wh(c || fe ? !1 : N,
|
|
7307
|
+
}), Wh(c || fe ? !1 : N, b, ce), Oh(N, g, C);
|
|
7308
7308
|
let [W, Y] = rc(), ne = de(() => [{ dialogState: w, close: C, setTitleId: v, unmount: u }, x], [w, x, C, v, u]), O = de(() => ({ 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": x.titleId, "aria-describedby": W, unmount: u }, E = !_p(), P = Kt.None;
|
|
7309
7309
|
N && !c && (P |= Kt.RestoreFocus, P |= Kt.TabLock, l && (P |= Kt.AutoFocus), E && (P |= Kt.InitialFocus));
|
|
7310
7310
|
let U = Le();
|
|
7311
|
-
return j.createElement(Tp, null, j.createElement(ra, { force: !0 }, j.createElement(Lp, null, j.createElement(ui.Provider, { value: ne }, j.createElement(Nc, { target:
|
|
7311
|
+
return j.createElement(Tp, null, j.createElement(ra, { force: !0 }, j.createElement(Lp, null, j.createElement(ui.Provider, { value: ne }, j.createElement(Nc, { target: g }, j.createElement(ra, { force: !1 }, j.createElement(Y, { slot: O }, j.createElement(k, null, j.createElement(Bp, { initialFocus: i, initialFocusFallback: g, containers: ce, features: P }, j.createElement(lh, { value: C }, U({ ourProps: V, theirProps: f, slot: O, defaultTag: sm, features: im, visible: w === 0, name: "Dialog" })))))))))));
|
|
7312
7312
|
}), sm = "div", im = qr.RenderStrategy | qr.Static;
|
|
7313
7313
|
function am(e, t) {
|
|
7314
7314
|
let { transition: n = !1, open: r, ...o } = e, s = fo(), i = e.hasOwnProperty("open") || s !== null, a = e.hasOwnProperty("onClose");
|
|
@@ -7321,10 +7321,10 @@ function am(e, t) {
|
|
|
7321
7321
|
}
|
|
7322
7322
|
let lm = "div";
|
|
7323
7323
|
function cm(e, t) {
|
|
7324
|
-
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 = de(() => ({ open: i === 0 }), [i]), f = ue((
|
|
7325
|
-
|
|
7326
|
-
}), h = { ref: c, id: r, onClick: f }, d = o ? ci : Ke,
|
|
7327
|
-
return j.createElement(d, { ...
|
|
7324
|
+
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 = de(() => ({ open: i === 0 }), [i]), f = ue((b) => {
|
|
7325
|
+
b.stopPropagation();
|
|
7326
|
+
}), h = { ref: c, id: r, onClick: f }, d = o ? ci : Ke, g = o ? { unmount: a } : {}, m = Le();
|
|
7327
|
+
return j.createElement(d, { ...g }, m({ ourProps: h, theirProps: s, slot: u, defaultTag: lm, name: "Dialog.Panel" }));
|
|
7328
7328
|
}
|
|
7329
7329
|
let um = "div";
|
|
7330
7330
|
function fm(e, t) {
|
|
@@ -7334,21 +7334,21 @@ function fm(e, t) {
|
|
|
7334
7334
|
let dm = "h2";
|
|
7335
7335
|
function hm(e, t) {
|
|
7336
7336
|
let n = qt(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: s, setTitleId: i }] = go("Dialog.Title"), a = Xe(t);
|
|
7337
|
-
|
|
7337
|
+
Ee(() => (i(r), () => i(null)), [r, i]);
|
|
7338
7338
|
let l = de(() => ({ open: s === 0 }), [s]), c = { ref: a, id: r };
|
|
7339
7339
|
return Le()({ ourProps: c, theirProps: o, slot: l, defaultTag: dm, name: "Dialog.Title" });
|
|
7340
7340
|
}
|
|
7341
|
-
let pm =
|
|
7341
|
+
let pm = ke(am), Wc = ke(cm), mm = ke(fm), qc = ke(hm), gm = Object.assign(pm, { Panel: Wc, Title: qc, Description: oc }), bm = "div";
|
|
7342
7342
|
function vm(e, t) {
|
|
7343
7343
|
let n = `headlessui-control-${qt()}`, [r, o] = nh(), [s, i] = rc(), a = no(), { disabled: l = a || !1, ...c } = e, u = de(() => ({ disabled: l }), [l]), f = { ref: t, disabled: l || void 0, "aria-disabled": l || void 0 }, h = Le();
|
|
7344
7344
|
return j.createElement(_d, { value: l }, j.createElement(o, { value: r }, j.createElement(i, { value: s }, j.createElement(Gd, { id: n }, h({ ourProps: f, theirProps: { ...c, children: j.createElement(Vd, null, typeof c.children == "function" ? c.children(u) : c.children) }, slot: u, defaultTag: bm, name: "Field" })))));
|
|
7345
7345
|
}
|
|
7346
|
-
let ym =
|
|
7346
|
+
let ym = ke(vm), wm = "input";
|
|
7347
7347
|
function xm(e, t) {
|
|
7348
|
-
let n = qt(), r = Jl(), o = no(), { id: s = r || `headlessui-input-${n}`, disabled: i = o || !1, autoFocus: a = !1, invalid: l = !1, ...c } = e, u = ac(), f = Jd(), { isFocused: h, focusProps: d } = Fd({ autoFocus: a }), { isHovered:
|
|
7349
|
-
return Le()({ ourProps:
|
|
7348
|
+
let n = qt(), r = Jl(), o = no(), { id: s = r || `headlessui-input-${n}`, disabled: i = o || !1, autoFocus: a = !1, invalid: l = !1, ...c } = e, u = ac(), f = Jd(), { isFocused: h, focusProps: d } = Fd({ autoFocus: a }), { isHovered: g, hoverProps: m } = Id({ isDisabled: i }), b = Hd({ ref: t, id: s, "aria-labelledby": u, "aria-describedby": f, "aria-invalid": l ? "true" : void 0, disabled: i || void 0, autoFocus: a }, d, m), w = de(() => ({ disabled: i, invalid: l, hover: g, focus: h, autofocus: a }), [i, l, g, h, a]);
|
|
7349
|
+
return Le()({ ourProps: b, theirProps: c, slot: w, defaultTag: wm, name: "Input" });
|
|
7350
7350
|
}
|
|
7351
|
-
let Em =
|
|
7351
|
+
let Em = ke(xm);
|
|
7352
7352
|
const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm = "focus:outline focus:outline-3 focus:outline-primary-500/[.3]", Om = "disabled:opacity-15 disabled:pointer-events-none", Vc = (e) => e === "grayLight" || e === "warning", Gc = (e, t) => !t || t === "none" ? "" : e(), Pm = (e, t) => Gc(() => {
|
|
7353
7353
|
const n = e === "gray400" ? "gray" : e, r = Vc(n) ? "active:text-black" : "active:text-white";
|
|
7354
7354
|
return e === "primary" ? t ? `bg-${n}-800 text-white` : `hover:bg-${n}-800 active:bg-${n}-800 hover:text-white ${r}` : n === "grayDark" ? t ? "bg-gray-800 text-white" : `hover:bg-gray-800 active:bg-gray-800 hover:text-white ${r}` : n === "grayLight" ? t ? "bg-gray-50 text-black" : `hover:bg-gray-50 active:bg-gray-50 hover:text-black ${r}` : e === "gray400" ? t ? `bg-${n}-500 text-white` : `hover:bg-${n}-500 active:bg-${n}-500 hover:text-white ${r}` : t ? `bg-${n}-700 text-white` : `hover:bg-${n}-600 active:bg-${n}-700 hover:text-white ${r}`;
|
|
@@ -7423,8 +7423,8 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
7423
7423
|
...u
|
|
7424
7424
|
}, f) => {
|
|
7425
7425
|
var y;
|
|
7426
|
-
const h = Om, d = /link/.test(o) ? null : Pm(n, e),
|
|
7427
|
-
return /* @__PURE__ */
|
|
7426
|
+
const h = Om, d = /link/.test(o) ? null : Pm(n, e), g = Tm, m = Im[r], b = (y = $m(n, e)) == null ? void 0 : y[o], w = xn(d, b), x = Fm[a];
|
|
7427
|
+
return /* @__PURE__ */ R(
|
|
7428
7428
|
"button",
|
|
7429
7429
|
{
|
|
7430
7430
|
...u,
|
|
@@ -7437,7 +7437,7 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
7437
7437
|
ref: f,
|
|
7438
7438
|
className: xn(
|
|
7439
7439
|
Cm,
|
|
7440
|
-
|
|
7440
|
+
g,
|
|
7441
7441
|
h,
|
|
7442
7442
|
m,
|
|
7443
7443
|
w,
|
|
@@ -7455,7 +7455,7 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
7455
7455
|
dismissOptions: r,
|
|
7456
7456
|
confirmOptions: o,
|
|
7457
7457
|
children: s
|
|
7458
|
-
}) => /* @__PURE__ */
|
|
7458
|
+
}) => /* @__PURE__ */ ye(
|
|
7459
7459
|
gm,
|
|
7460
7460
|
{
|
|
7461
7461
|
open: e,
|
|
@@ -7463,12 +7463,12 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
7463
7463
|
className: "relative z-50 transition duration-300 ease-out data-closed:opacity-0 confidence-ui",
|
|
7464
7464
|
transition: !0,
|
|
7465
7465
|
children: [
|
|
7466
|
-
/* @__PURE__ */
|
|
7467
|
-
/* @__PURE__ */
|
|
7468
|
-
/* @__PURE__ */
|
|
7469
|
-
/* @__PURE__ */
|
|
7470
|
-
r || o ? /* @__PURE__ */
|
|
7471
|
-
r ? /* @__PURE__ */
|
|
7466
|
+
/* @__PURE__ */ R(mm, { className: "fixed inset-0 bg-black/30" }),
|
|
7467
|
+
/* @__PURE__ */ R("div", { className: "fixed inset-0 flex w-screen items-center justify-center p-4", children: /* @__PURE__ */ ye(Wc, { className: "max-w-lg divide-y divide-gray-100 bg-white rounded-sm shadow-xl", children: [
|
|
7468
|
+
/* @__PURE__ */ R(qc, { className: " text-gray-900 p-4", children: n }),
|
|
7469
|
+
/* @__PURE__ */ R("div", { className: "p-4", children: s }),
|
|
7470
|
+
r || o ? /* @__PURE__ */ ye("div", { className: "flex gap-4 justify-end p-4", children: [
|
|
7471
|
+
r ? /* @__PURE__ */ R(
|
|
7472
7472
|
ur,
|
|
7473
7473
|
{
|
|
7474
7474
|
onClick: () => {
|
|
@@ -7478,8 +7478,8 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
7478
7478
|
color: "secondary",
|
|
7479
7479
|
children: r.label
|
|
7480
7480
|
}
|
|
7481
|
-
) : /* @__PURE__ */
|
|
7482
|
-
o ? /* @__PURE__ */
|
|
7481
|
+
) : /* @__PURE__ */ R(ut, {}),
|
|
7482
|
+
o ? /* @__PURE__ */ R(
|
|
7483
7483
|
ur,
|
|
7484
7484
|
{
|
|
7485
7485
|
disabled: o.disabled,
|
|
@@ -7490,8 +7490,8 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
7490
7490
|
color: "primary",
|
|
7491
7491
|
children: o.label
|
|
7492
7492
|
}
|
|
7493
|
-
) : /* @__PURE__ */
|
|
7494
|
-
] }) : /* @__PURE__ */
|
|
7493
|
+
) : /* @__PURE__ */ R(ut, {})
|
|
7494
|
+
] }) : /* @__PURE__ */ R(ut, {})
|
|
7495
7495
|
] }) })
|
|
7496
7496
|
]
|
|
7497
7497
|
}
|
|
@@ -7501,14 +7501,14 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
7501
7501
|
label: n,
|
|
7502
7502
|
description: r,
|
|
7503
7503
|
...o
|
|
7504
|
-
}) => /* @__PURE__ */
|
|
7505
|
-
/* @__PURE__ */
|
|
7506
|
-
r && /* @__PURE__ */
|
|
7507
|
-
/* @__PURE__ */
|
|
7504
|
+
}) => /* @__PURE__ */ R("div", { className: "w-full max-w-md px-4", children: /* @__PURE__ */ ye(ym, { children: [
|
|
7505
|
+
/* @__PURE__ */ R(ih, { className: "font-medium text-gray-900", children: n }),
|
|
7506
|
+
r && /* @__PURE__ */ R(oc, { className: "text-sm text-secondary", children: r }),
|
|
7507
|
+
/* @__PURE__ */ R(
|
|
7508
7508
|
Em,
|
|
7509
7509
|
{
|
|
7510
7510
|
type: e,
|
|
7511
|
-
className:
|
|
7511
|
+
className: Oe(
|
|
7512
7512
|
"mt-3 block w-full rounded-lg border border-gray-200 px-3 py-1.5 text-sm/6 text-gray-800",
|
|
7513
7513
|
"focus:not-data-focus:outline-none data-focus:outline-2 data-focus:-outline-offset-2 data-focus:outline-primary-500",
|
|
7514
7514
|
t
|
|
@@ -7522,8 +7522,8 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
7522
7522
|
isOpen: n,
|
|
7523
7523
|
title: r
|
|
7524
7524
|
}) => {
|
|
7525
|
-
const [o, s] =
|
|
7526
|
-
return /* @__PURE__ */
|
|
7525
|
+
const [o, s] = he(""), [i, a] = he(!1);
|
|
7526
|
+
return /* @__PURE__ */ R(
|
|
7527
7527
|
Lm,
|
|
7528
7528
|
{
|
|
7529
7529
|
title: r || "Initiate Confidence Playbook",
|
|
@@ -7544,7 +7544,7 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
7544
7544
|
},
|
|
7545
7545
|
disabled: i || !o
|
|
7546
7546
|
},
|
|
7547
|
-
children: /* @__PURE__ */
|
|
7547
|
+
children: /* @__PURE__ */ R(ut, { children: /* @__PURE__ */ R(
|
|
7548
7548
|
Mm,
|
|
7549
7549
|
{
|
|
7550
7550
|
label: "Email",
|
|
@@ -7564,7 +7564,7 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
7564
7564
|
disabled: s,
|
|
7565
7565
|
btnLabel: i = "Run Playbook"
|
|
7566
7566
|
}) => {
|
|
7567
|
-
const [a, l] =
|
|
7567
|
+
const [a, l] = he(!1);
|
|
7568
7568
|
function c() {
|
|
7569
7569
|
l(!0);
|
|
7570
7570
|
}
|
|
@@ -7572,20 +7572,20 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
7572
7572
|
l(!1);
|
|
7573
7573
|
}
|
|
7574
7574
|
const f = async (h) => {
|
|
7575
|
-
const { playbookInstanceId: d, errorCode:
|
|
7575
|
+
const { playbookInstanceId: d, errorCode: g, details: m, message: b } = await Pl({
|
|
7576
7576
|
bank: "public-sdk",
|
|
7577
7577
|
email: h,
|
|
7578
7578
|
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone || "America/Los_Angeles",
|
|
7579
7579
|
playbookUid: r
|
|
7580
7580
|
}) || {};
|
|
7581
|
-
if (
|
|
7581
|
+
if (g)
|
|
7582
7582
|
throw new Error(
|
|
7583
|
-
`Error initiating playbook: ${
|
|
7583
|
+
`Error initiating playbook: ${b} (Code: ${g}) - Details: ${m}`
|
|
7584
7584
|
);
|
|
7585
7585
|
o(d);
|
|
7586
7586
|
};
|
|
7587
|
-
return /* @__PURE__ */
|
|
7588
|
-
t ? { buttonNode: t } : /* @__PURE__ */
|
|
7587
|
+
return /* @__PURE__ */ ye(ut, { children: [
|
|
7588
|
+
t ? { buttonNode: t } : /* @__PURE__ */ R(
|
|
7589
7589
|
ur,
|
|
7590
7590
|
{
|
|
7591
7591
|
onClick: c,
|
|
@@ -7596,7 +7596,7 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
7596
7596
|
children: i
|
|
7597
7597
|
}
|
|
7598
7598
|
),
|
|
7599
|
-
/* @__PURE__ */
|
|
7599
|
+
/* @__PURE__ */ R(
|
|
7600
7600
|
_m,
|
|
7601
7601
|
{
|
|
7602
7602
|
isOpen: a,
|
|
@@ -9191,8 +9191,8 @@ function yi(e) {
|
|
|
9191
9191
|
} = e, {
|
|
9192
9192
|
width: h,
|
|
9193
9193
|
height: d
|
|
9194
|
-
} = n.found ? n : t,
|
|
9195
|
-
let
|
|
9194
|
+
} = n.found ? n : t, g = rg.includes(r), m = [D.replacementClass, o ? "".concat(D.cssPrefix, "-").concat(o) : ""].filter((v) => u.classes.indexOf(v) === -1).filter((v) => v !== "" || !!v).concat(u.classes).join(" ");
|
|
9195
|
+
let b = {
|
|
9196
9196
|
children: [],
|
|
9197
9197
|
attributes: T(T({}, u.attributes), {}, {
|
|
9198
9198
|
"data-prefix": r,
|
|
@@ -9203,17 +9203,17 @@ function yi(e) {
|
|
|
9203
9203
|
viewBox: "0 0 ".concat(h, " ").concat(d)
|
|
9204
9204
|
})
|
|
9205
9205
|
};
|
|
9206
|
-
const w =
|
|
9206
|
+
const w = g && !~u.classes.indexOf("fa-fw") ? {
|
|
9207
9207
|
width: "".concat(h / d * 16 * 0.0625, "em")
|
|
9208
9208
|
} : {};
|
|
9209
|
-
f && (
|
|
9209
|
+
f && (b.attributes[dn] = ""), a && (b.children.push({
|
|
9210
9210
|
tag: "title",
|
|
9211
9211
|
attributes: {
|
|
9212
|
-
id:
|
|
9212
|
+
id: b.attributes["aria-labelledby"] || "title-".concat(c || fr())
|
|
9213
9213
|
},
|
|
9214
9214
|
children: [a]
|
|
9215
|
-
}), delete
|
|
9216
|
-
const x = T(T({},
|
|
9215
|
+
}), delete b.attributes.title);
|
|
9216
|
+
const x = T(T({}, b), {}, {
|
|
9217
9217
|
prefix: r,
|
|
9218
9218
|
iconName: o,
|
|
9219
9219
|
main: t,
|
|
@@ -9715,12 +9715,12 @@ var Tb = {
|
|
|
9715
9715
|
width: 512,
|
|
9716
9716
|
height: 512,
|
|
9717
9717
|
icon: {}
|
|
9718
|
-
})]).then((
|
|
9719
|
-
let [m,
|
|
9718
|
+
})]).then((g) => {
|
|
9719
|
+
let [m, b] = g;
|
|
9720
9720
|
h([t, yi({
|
|
9721
9721
|
icons: {
|
|
9722
9722
|
main: m,
|
|
9723
|
-
mask:
|
|
9723
|
+
mask: b
|
|
9724
9724
|
},
|
|
9725
9725
|
prefix: i,
|
|
9726
9726
|
iconName: r,
|
|
@@ -9903,12 +9903,12 @@ function ka(e, t) {
|
|
|
9903
9903
|
const h = a.getPropertyValue("content");
|
|
9904
9904
|
let d = $b(l, u);
|
|
9905
9905
|
const {
|
|
9906
|
-
value:
|
|
9906
|
+
value: g,
|
|
9907
9907
|
isSecondary: m
|
|
9908
|
-
} = Rb(h),
|
|
9909
|
-
let w = vi(d,
|
|
9910
|
-
if (
|
|
9911
|
-
const y = Ug(
|
|
9908
|
+
} = Rb(h), b = c[0].startsWith("FontAwesome");
|
|
9909
|
+
let w = vi(d, g), x = w;
|
|
9910
|
+
if (b) {
|
|
9911
|
+
const y = Ug(g);
|
|
9912
9912
|
y.iconName && y.prefix && (w = y.iconName, d = y.prefix);
|
|
9913
9913
|
}
|
|
9914
9914
|
if (w && !m && (!i || i.getAttribute(di) !== d || i.getAttribute(hi) !== x)) {
|
|
@@ -10142,7 +10142,7 @@ var Db = {
|
|
|
10142
10142
|
attributes: T(T({}, jo), {}, {
|
|
10143
10143
|
fill: "white"
|
|
10144
10144
|
})
|
|
10145
|
-
},
|
|
10145
|
+
}, g = c.children ? {
|
|
10146
10146
|
children: c.children.map(Ia)
|
|
10147
10147
|
} : {}, m = {
|
|
10148
10148
|
tag: "g",
|
|
@@ -10150,8 +10150,8 @@ var Db = {
|
|
|
10150
10150
|
children: [Ia(T({
|
|
10151
10151
|
tag: c.tag,
|
|
10152
10152
|
attributes: T(T({}, c.attributes), h.path)
|
|
10153
|
-
},
|
|
10154
|
-
},
|
|
10153
|
+
}, g))]
|
|
10154
|
+
}, b = {
|
|
10155
10155
|
tag: "g",
|
|
10156
10156
|
attributes: T({}, h.outer),
|
|
10157
10157
|
children: [m]
|
|
@@ -10162,7 +10162,7 @@ var Db = {
|
|
|
10162
10162
|
maskUnits: "userSpaceOnUse",
|
|
10163
10163
|
maskContentUnits: "userSpaceOnUse"
|
|
10164
10164
|
}),
|
|
10165
|
-
children: [d,
|
|
10165
|
+
children: [d, b]
|
|
10166
10166
|
}, C = {
|
|
10167
10167
|
tag: "defs",
|
|
10168
10168
|
children: [{
|
|
@@ -10295,7 +10295,7 @@ var Fa;
|
|
|
10295
10295
|
function Bb() {
|
|
10296
10296
|
if (Fa) return ie;
|
|
10297
10297
|
Fa = 1;
|
|
10298
|
-
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,
|
|
10298
|
+
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, g = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
|
|
10299
10299
|
function y(v) {
|
|
10300
10300
|
if (typeof v == "object" && v !== null) {
|
|
10301
10301
|
var N = v.$$typeof;
|
|
@@ -10313,7 +10313,7 @@ function Bb() {
|
|
|
10313
10313
|
switch (v = v && v.$$typeof, v) {
|
|
10314
10314
|
case a:
|
|
10315
10315
|
case u:
|
|
10316
|
-
case
|
|
10316
|
+
case g:
|
|
10317
10317
|
case d:
|
|
10318
10318
|
case i:
|
|
10319
10319
|
return v;
|
|
@@ -10329,7 +10329,7 @@ function Bb() {
|
|
|
10329
10329
|
function C(v) {
|
|
10330
10330
|
return y(v) === c;
|
|
10331
10331
|
}
|
|
10332
|
-
return ie.AsyncMode = l, ie.ConcurrentMode = c, ie.ContextConsumer = a, ie.ContextProvider = i, ie.Element = t, ie.ForwardRef = u, ie.Fragment = r, ie.Lazy =
|
|
10332
|
+
return ie.AsyncMode = l, ie.ConcurrentMode = c, ie.ContextConsumer = a, ie.ContextProvider = i, ie.Element = t, ie.ForwardRef = u, ie.Fragment = r, ie.Lazy = g, ie.Memo = d, ie.Portal = n, ie.Profiler = s, ie.StrictMode = o, ie.Suspense = f, ie.isAsyncMode = function(v) {
|
|
10333
10333
|
return C(v) || y(v) === l;
|
|
10334
10334
|
}, ie.isConcurrentMode = C, ie.isContextConsumer = function(v) {
|
|
10335
10335
|
return y(v) === a;
|
|
@@ -10342,7 +10342,7 @@ function Bb() {
|
|
|
10342
10342
|
}, ie.isFragment = function(v) {
|
|
10343
10343
|
return y(v) === r;
|
|
10344
10344
|
}, ie.isLazy = function(v) {
|
|
10345
|
-
return y(v) ===
|
|
10345
|
+
return y(v) === g;
|
|
10346
10346
|
}, ie.isMemo = function(v) {
|
|
10347
10347
|
return y(v) === d;
|
|
10348
10348
|
}, ie.isPortal = function(v) {
|
|
@@ -10354,7 +10354,7 @@ function Bb() {
|
|
|
10354
10354
|
}, ie.isSuspense = function(v) {
|
|
10355
10355
|
return y(v) === f;
|
|
10356
10356
|
}, ie.isValidElementType = function(v) {
|
|
10357
|
-
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 ===
|
|
10357
|
+
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 === g || v.$$typeof === d || v.$$typeof === i || v.$$typeof === a || v.$$typeof === u || v.$$typeof === b || v.$$typeof === w || v.$$typeof === x || v.$$typeof === m);
|
|
10358
10358
|
}, ie.typeOf = y, ie;
|
|
10359
10359
|
}
|
|
10360
10360
|
var ae = {};
|
|
@@ -10369,10 +10369,10 @@ var ae = {};
|
|
|
10369
10369
|
var Na;
|
|
10370
10370
|
function Wb() {
|
|
10371
10371
|
return Na || (Na = 1, process.env.NODE_ENV !== "production" && function() {
|
|
10372
|
-
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,
|
|
10372
|
+
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, g = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
|
|
10373
10373
|
function y(A) {
|
|
10374
10374
|
return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
10375
|
-
A === r || A === c || A === s || A === o || A === f || A === h || typeof A == "object" && A !== null && (A.$$typeof ===
|
|
10375
|
+
A === r || A === c || A === s || A === o || A === f || A === h || typeof A == "object" && A !== null && (A.$$typeof === g || A.$$typeof === d || A.$$typeof === i || A.$$typeof === a || A.$$typeof === u || A.$$typeof === b || A.$$typeof === w || A.$$typeof === x || A.$$typeof === m);
|
|
10376
10376
|
}
|
|
10377
10377
|
function C(A) {
|
|
10378
10378
|
if (typeof A == "object" && A !== null) {
|
|
@@ -10393,7 +10393,7 @@ function Wb() {
|
|
|
10393
10393
|
switch (Tr) {
|
|
10394
10394
|
case a:
|
|
10395
10395
|
case u:
|
|
10396
|
-
case
|
|
10396
|
+
case g:
|
|
10397
10397
|
case d:
|
|
10398
10398
|
case i:
|
|
10399
10399
|
return Tr;
|
|
@@ -10406,7 +10406,7 @@ function Wb() {
|
|
|
10406
10406
|
}
|
|
10407
10407
|
}
|
|
10408
10408
|
}
|
|
10409
|
-
var v = l, N = c, q = a, k = i, B = t, G = u, ce = r, fe =
|
|
10409
|
+
var v = l, N = c, q = a, k = i, B = t, G = u, ce = r, fe = g, se = d, pe = n, W = s, Y = o, ne = f, O = !1;
|
|
10410
10410
|
function V(A) {
|
|
10411
10411
|
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.")), E(A) || C(A) === l;
|
|
10412
10412
|
}
|
|
@@ -10429,7 +10429,7 @@ function Wb() {
|
|
|
10429
10429
|
return C(A) === r;
|
|
10430
10430
|
}
|
|
10431
10431
|
function z(A) {
|
|
10432
|
-
return C(A) ===
|
|
10432
|
+
return C(A) === g;
|
|
10433
10433
|
}
|
|
10434
10434
|
function I(A) {
|
|
10435
10435
|
return C(A) === d;
|
|
@@ -10443,10 +10443,10 @@ function Wb() {
|
|
|
10443
10443
|
function Z(A) {
|
|
10444
10444
|
return C(A) === o;
|
|
10445
10445
|
}
|
|
10446
|
-
function
|
|
10446
|
+
function xe(A) {
|
|
10447
10447
|
return C(A) === f;
|
|
10448
10448
|
}
|
|
10449
|
-
ae.AsyncMode = v, ae.ConcurrentMode = N, ae.ContextConsumer = q, ae.ContextProvider = k, ae.Element = B, ae.ForwardRef = G, ae.Fragment = ce, ae.Lazy = fe, ae.Memo = se, ae.Portal =
|
|
10449
|
+
ae.AsyncMode = v, ae.ConcurrentMode = N, ae.ContextConsumer = q, ae.ContextProvider = k, ae.Element = B, ae.ForwardRef = G, ae.Fragment = ce, ae.Lazy = fe, ae.Memo = se, ae.Portal = pe, ae.Profiler = W, ae.StrictMode = Y, ae.Suspense = ne, ae.isAsyncMode = V, ae.isConcurrentMode = E, ae.isContextConsumer = P, ae.isContextProvider = U, 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 = C;
|
|
10450
10450
|
}()), ae;
|
|
10451
10451
|
}
|
|
10452
10452
|
var La;
|
|
@@ -10545,8 +10545,8 @@ function Vb() {
|
|
|
10545
10545
|
throw h.name = "Invariant Violation", h;
|
|
10546
10546
|
}
|
|
10547
10547
|
f = s[u](i, u, l, a, null, t);
|
|
10548
|
-
} catch (
|
|
10549
|
-
f =
|
|
10548
|
+
} catch (g) {
|
|
10549
|
+
f = g;
|
|
10550
10550
|
}
|
|
10551
10551
|
if (f && !(f instanceof Error) && e(
|
|
10552
10552
|
(l || "React class") + ": type specification of " + a + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -10609,18 +10609,18 @@ function Gb() {
|
|
|
10609
10609
|
shape: fe,
|
|
10610
10610
|
exact: se
|
|
10611
10611
|
};
|
|
10612
|
-
function
|
|
10612
|
+
function g(E, P) {
|
|
10613
10613
|
return E === P ? E !== 0 || 1 / E === 1 / P : E !== E && P !== P;
|
|
10614
10614
|
}
|
|
10615
10615
|
function m(E, P) {
|
|
10616
10616
|
this.message = E, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
|
|
10617
10617
|
}
|
|
10618
10618
|
m.prototype = Error.prototype;
|
|
10619
|
-
function
|
|
10619
|
+
function b(E) {
|
|
10620
10620
|
if (process.env.NODE_ENV !== "production")
|
|
10621
10621
|
var P = {}, U = 0;
|
|
10622
|
-
function S(K, z, I, Q, X, Z,
|
|
10623
|
-
if (Q = Q || h, Z = Z || I,
|
|
10622
|
+
function S(K, z, I, Q, X, Z, xe) {
|
|
10623
|
+
if (Q = Q || h, Z = Z || I, xe !== n) {
|
|
10624
10624
|
if (l) {
|
|
10625
10625
|
var A = new Error(
|
|
10626
10626
|
"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"
|
|
@@ -10651,10 +10651,10 @@ function Gb() {
|
|
|
10651
10651
|
}
|
|
10652
10652
|
return null;
|
|
10653
10653
|
}
|
|
10654
|
-
return
|
|
10654
|
+
return b(P);
|
|
10655
10655
|
}
|
|
10656
10656
|
function x() {
|
|
10657
|
-
return
|
|
10657
|
+
return b(i);
|
|
10658
10658
|
}
|
|
10659
10659
|
function y(E) {
|
|
10660
10660
|
function P(U, S, _, K, z) {
|
|
@@ -10672,7 +10672,7 @@ function Gb() {
|
|
|
10672
10672
|
}
|
|
10673
10673
|
return null;
|
|
10674
10674
|
}
|
|
10675
|
-
return
|
|
10675
|
+
return b(P);
|
|
10676
10676
|
}
|
|
10677
10677
|
function C() {
|
|
10678
10678
|
function E(P, U, S, _, K) {
|
|
@@ -10683,7 +10683,7 @@ function Gb() {
|
|
|
10683
10683
|
}
|
|
10684
10684
|
return null;
|
|
10685
10685
|
}
|
|
10686
|
-
return
|
|
10686
|
+
return b(E);
|
|
10687
10687
|
}
|
|
10688
10688
|
function v() {
|
|
10689
10689
|
function E(P, U, S, _, K) {
|
|
@@ -10694,7 +10694,7 @@ function Gb() {
|
|
|
10694
10694
|
}
|
|
10695
10695
|
return null;
|
|
10696
10696
|
}
|
|
10697
|
-
return
|
|
10697
|
+
return b(E);
|
|
10698
10698
|
}
|
|
10699
10699
|
function N(E) {
|
|
10700
10700
|
function P(U, S, _, K, z) {
|
|
@@ -10704,7 +10704,7 @@ function Gb() {
|
|
|
10704
10704
|
}
|
|
10705
10705
|
return null;
|
|
10706
10706
|
}
|
|
10707
|
-
return
|
|
10707
|
+
return b(P);
|
|
10708
10708
|
}
|
|
10709
10709
|
function q(E) {
|
|
10710
10710
|
if (!Array.isArray(E))
|
|
@@ -10713,15 +10713,15 @@ function Gb() {
|
|
|
10713
10713
|
) : s("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
10714
10714
|
function P(U, S, _, K, z) {
|
|
10715
10715
|
for (var I = U[S], Q = 0; Q < E.length; Q++)
|
|
10716
|
-
if (
|
|
10716
|
+
if (g(I, E[Q]))
|
|
10717
10717
|
return null;
|
|
10718
|
-
var X = JSON.stringify(E, function(
|
|
10718
|
+
var X = JSON.stringify(E, function(xe, A) {
|
|
10719
10719
|
var ze = ne(A);
|
|
10720
10720
|
return ze === "symbol" ? String(A) : A;
|
|
10721
10721
|
});
|
|
10722
10722
|
return new m("Invalid " + K + " `" + z + "` of value `" + String(I) + "` " + ("supplied to `" + _ + "`, expected one of " + X + "."));
|
|
10723
10723
|
}
|
|
10724
|
-
return
|
|
10724
|
+
return b(P);
|
|
10725
10725
|
}
|
|
10726
10726
|
function k(E) {
|
|
10727
10727
|
function P(U, S, _, K, z) {
|
|
@@ -10738,7 +10738,7 @@ function Gb() {
|
|
|
10738
10738
|
}
|
|
10739
10739
|
return null;
|
|
10740
10740
|
}
|
|
10741
|
-
return
|
|
10741
|
+
return b(P);
|
|
10742
10742
|
}
|
|
10743
10743
|
function B(E) {
|
|
10744
10744
|
if (!Array.isArray(E))
|
|
@@ -10752,7 +10752,7 @@ function Gb() {
|
|
|
10752
10752
|
}
|
|
10753
10753
|
function S(_, K, z, I, Q) {
|
|
10754
10754
|
for (var X = [], Z = 0; Z < E.length; Z++) {
|
|
10755
|
-
var
|
|
10755
|
+
var xe = E[Z], A = xe(_, K, z, I, Q, n);
|
|
10756
10756
|
if (A == null)
|
|
10757
10757
|
return null;
|
|
10758
10758
|
A.data && r(A.data, "expectedType") && X.push(A.data.expectedType);
|
|
@@ -10760,13 +10760,13 @@ function Gb() {
|
|
|
10760
10760
|
var ze = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
10761
10761
|
return new m("Invalid " + I + " `" + Q + "` supplied to " + ("`" + z + "`" + ze + "."));
|
|
10762
10762
|
}
|
|
10763
|
-
return
|
|
10763
|
+
return b(S);
|
|
10764
10764
|
}
|
|
10765
10765
|
function G() {
|
|
10766
10766
|
function E(P, U, S, _, K) {
|
|
10767
|
-
return
|
|
10767
|
+
return pe(P[U]) ? null : new m("Invalid " + _ + " `" + K + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
|
|
10768
10768
|
}
|
|
10769
|
-
return
|
|
10769
|
+
return b(E);
|
|
10770
10770
|
}
|
|
10771
10771
|
function ce(E, P, U, S, _) {
|
|
10772
10772
|
return new m(
|
|
@@ -10782,13 +10782,13 @@ function Gb() {
|
|
|
10782
10782
|
var Z = E[X];
|
|
10783
10783
|
if (typeof Z != "function")
|
|
10784
10784
|
return ce(_, K, z, X, ne(Z));
|
|
10785
|
-
var
|
|
10786
|
-
if (
|
|
10787
|
-
return
|
|
10785
|
+
var xe = Z(I, X, _, K, z + "." + X, n);
|
|
10786
|
+
if (xe)
|
|
10787
|
+
return xe;
|
|
10788
10788
|
}
|
|
10789
10789
|
return null;
|
|
10790
10790
|
}
|
|
10791
|
-
return
|
|
10791
|
+
return b(P);
|
|
10792
10792
|
}
|
|
10793
10793
|
function se(E) {
|
|
10794
10794
|
function P(U, S, _, K, z) {
|
|
@@ -10797,23 +10797,23 @@ function Gb() {
|
|
|
10797
10797
|
return new m("Invalid " + K + " `" + z + "` of type `" + Q + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
10798
10798
|
var X = t({}, U[S], E);
|
|
10799
10799
|
for (var Z in X) {
|
|
10800
|
-
var
|
|
10801
|
-
if (r(E, Z) && typeof
|
|
10802
|
-
return ce(_, K, z, Z, ne(
|
|
10803
|
-
if (!
|
|
10800
|
+
var xe = E[Z];
|
|
10801
|
+
if (r(E, Z) && typeof xe != "function")
|
|
10802
|
+
return ce(_, K, z, Z, ne(xe));
|
|
10803
|
+
if (!xe)
|
|
10804
10804
|
return new m(
|
|
10805
10805
|
"Invalid " + K + " `" + z + "` key `" + Z + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(U[S], null, " ") + `
|
|
10806
10806
|
Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
10807
10807
|
);
|
|
10808
|
-
var A =
|
|
10808
|
+
var A = xe(I, Z, _, K, z + "." + Z, n);
|
|
10809
10809
|
if (A)
|
|
10810
10810
|
return A;
|
|
10811
10811
|
}
|
|
10812
10812
|
return null;
|
|
10813
10813
|
}
|
|
10814
|
-
return
|
|
10814
|
+
return b(P);
|
|
10815
10815
|
}
|
|
10816
|
-
function
|
|
10816
|
+
function pe(E) {
|
|
10817
10817
|
switch (typeof E) {
|
|
10818
10818
|
case "number":
|
|
10819
10819
|
case "string":
|
|
@@ -10823,7 +10823,7 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
|
10823
10823
|
return !E;
|
|
10824
10824
|
case "object":
|
|
10825
10825
|
if (Array.isArray(E))
|
|
10826
|
-
return E.every(
|
|
10826
|
+
return E.every(pe);
|
|
10827
10827
|
if (E === null || a(E))
|
|
10828
10828
|
return !0;
|
|
10829
10829
|
var P = f(E);
|
|
@@ -10831,12 +10831,12 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
|
10831
10831
|
var U = P.call(E), S;
|
|
10832
10832
|
if (P !== E.entries) {
|
|
10833
10833
|
for (; !(S = U.next()).done; )
|
|
10834
|
-
if (!
|
|
10834
|
+
if (!pe(S.value))
|
|
10835
10835
|
return !1;
|
|
10836
10836
|
} else
|
|
10837
10837
|
for (; !(S = U.next()).done; ) {
|
|
10838
10838
|
var _ = S.value;
|
|
10839
|
-
if (_ && !
|
|
10839
|
+
if (_ && !pe(_[1]))
|
|
10840
10840
|
return !1;
|
|
10841
10841
|
}
|
|
10842
10842
|
} else
|
|
@@ -11026,7 +11026,7 @@ function tv() {
|
|
|
11026
11026
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
11027
11027
|
}
|
|
11028
11028
|
function nv(e) {
|
|
11029
|
-
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,
|
|
11029
|
+
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, g = e.border, m = e.listItem, b = e.flip, w = e.size, x = e.rotation, y = e.pull, C = (t = {
|
|
11030
11030
|
"fa-beat": n,
|
|
11031
11031
|
"fa-fade": r,
|
|
11032
11032
|
"fa-beat-fade": o,
|
|
@@ -11039,11 +11039,11 @@ function nv(e) {
|
|
|
11039
11039
|
"fa-pulse": f,
|
|
11040
11040
|
"fa-fw": h,
|
|
11041
11041
|
"fa-inverse": d,
|
|
11042
|
-
"fa-border":
|
|
11042
|
+
"fa-border": g,
|
|
11043
11043
|
"fa-li": m,
|
|
11044
|
-
"fa-flip":
|
|
11045
|
-
"fa-flip-horizontal":
|
|
11046
|
-
"fa-flip-vertical":
|
|
11044
|
+
"fa-flip": b === !0,
|
|
11045
|
+
"fa-flip-horizontal": b === "horizontal" || b === "both",
|
|
11046
|
+
"fa-flip-vertical": b === "vertical" || b === "both"
|
|
11047
11047
|
}, yn(t, "fa-".concat(w), typeof w < "u" && w !== null), yn(t, "fa-rotate-".concat(x), typeof x < "u" && x !== null && x !== 0), yn(t, "fa-pull-".concat(y), typeof y < "u" && y !== null), yn(t, "fa-swap-opacity", e.swapOpacity), t);
|
|
11048
11048
|
return Object.keys(C).map(function(v) {
|
|
11049
11049
|
return C[v] ? v : null;
|
|
@@ -11133,20 +11133,20 @@ function Vo(e, t) {
|
|
|
11133
11133
|
}
|
|
11134
11134
|
var lv = ["forwardedRef"];
|
|
11135
11135
|
function Wt(e) {
|
|
11136
|
-
var t = e.forwardedRef, n = Ru(e, lv), r = n.icon, o = n.mask, s = n.symbol, i = n.className, a = n.title, l = n.titleId, c = n.maskId, u = Wa(r), f = Vo("classes", [].concat(Bs(nv(n)), Bs(i.split(" ")))), h = Vo("transform", typeof n.transform == "string" ? Us.transform(n.transform) : n.transform), d = Vo("mask", Wa(o)),
|
|
11136
|
+
var t = e.forwardedRef, n = Ru(e, lv), r = n.icon, o = n.mask, s = n.symbol, i = n.className, a = n.title, l = n.titleId, c = n.maskId, u = Wa(r), f = Vo("classes", [].concat(Bs(nv(n)), Bs(i.split(" ")))), h = Vo("transform", typeof n.transform == "string" ? Us.transform(n.transform) : n.transform), d = Vo("mask", Wa(o)), g = Ub(u, jt(jt(jt(jt({}, f), h), d), {}, {
|
|
11137
11137
|
symbol: s,
|
|
11138
11138
|
title: a,
|
|
11139
11139
|
titleId: l,
|
|
11140
11140
|
maskId: c
|
|
11141
11141
|
}));
|
|
11142
|
-
if (!
|
|
11142
|
+
if (!g)
|
|
11143
11143
|
return av("Could not find icon", u), null;
|
|
11144
|
-
var m =
|
|
11144
|
+
var m = g.abstract, b = {
|
|
11145
11145
|
ref: t
|
|
11146
11146
|
};
|
|
11147
11147
|
return Object.keys(n).forEach(function(w) {
|
|
11148
|
-
Wt.defaultProps.hasOwnProperty(w) || (
|
|
11149
|
-
}), cv(m[0],
|
|
11148
|
+
Wt.defaultProps.hasOwnProperty(w) || (b[w] = n[w]);
|
|
11149
|
+
}), cv(m[0], b);
|
|
11150
11150
|
}
|
|
11151
11151
|
Wt.displayName = "FontAwesomeIcon";
|
|
11152
11152
|
Wt.propTypes = {
|
|
@@ -11243,7 +11243,7 @@ const uv = async (e) => await (await fetch(
|
|
|
11243
11243
|
buttons: e,
|
|
11244
11244
|
onButtonClick: t,
|
|
11245
11245
|
disabled: n
|
|
11246
|
-
}) => /* @__PURE__ */
|
|
11246
|
+
}) => /* @__PURE__ */ R("div", { className: "flex items-center justify-end", children: e.map((r) => /* @__PURE__ */ R(
|
|
11247
11247
|
ur,
|
|
11248
11248
|
{
|
|
11249
11249
|
size: "smallCollapse",
|
|
@@ -11310,23 +11310,23 @@ function pv(e) {
|
|
|
11310
11310
|
var mv = typeof document < "u", gv = function() {
|
|
11311
11311
|
}, qs = mv ? Gs : gv;
|
|
11312
11312
|
const bv = {
|
|
11313
|
-
|
|
11313
|
+
...$
|
|
11314
11314
|
}, vv = bv.useInsertionEffect, yv = vv || ((e) => e());
|
|
11315
11315
|
function bn(e) {
|
|
11316
|
-
const t =
|
|
11316
|
+
const t = $.useRef(() => {
|
|
11317
11317
|
if (process.env.NODE_ENV !== "production")
|
|
11318
11318
|
throw new Error("Cannot call an event handler while rendering.");
|
|
11319
11319
|
});
|
|
11320
11320
|
return yv(() => {
|
|
11321
11321
|
t.current = e;
|
|
11322
|
-
}),
|
|
11322
|
+
}), $.useCallback(function() {
|
|
11323
11323
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
11324
11324
|
r[o] = arguments[o];
|
|
11325
11325
|
return t.current == null ? void 0 : t.current(...r);
|
|
11326
11326
|
}, []);
|
|
11327
11327
|
}
|
|
11328
11328
|
const wv = "data-floating-ui-focusable", Ga = "active", Ya = "selected", xv = {
|
|
11329
|
-
|
|
11329
|
+
...$
|
|
11330
11330
|
};
|
|
11331
11331
|
let Ka = !1, Ev = 0;
|
|
11332
11332
|
const Qa = () => (
|
|
@@ -11335,10 +11335,10 @@ const Qa = () => (
|
|
|
11335
11335
|
"floating-ui-" + Math.random().toString(36).slice(2, 6) + Ev++
|
|
11336
11336
|
);
|
|
11337
11337
|
function Cv() {
|
|
11338
|
-
const [e, t] =
|
|
11338
|
+
const [e, t] = $.useState(() => Ka ? Qa() : void 0);
|
|
11339
11339
|
return qs(() => {
|
|
11340
11340
|
e == null && t(Qa());
|
|
11341
|
-
}, []),
|
|
11341
|
+
}, []), $.useEffect(() => {
|
|
11342
11342
|
Ka = !0;
|
|
11343
11343
|
}, []), e;
|
|
11344
11344
|
}
|
|
@@ -11370,10 +11370,10 @@ function Sv() {
|
|
|
11370
11370
|
}
|
|
11371
11371
|
};
|
|
11372
11372
|
}
|
|
11373
|
-
const kv = /* @__PURE__ */
|
|
11373
|
+
const kv = /* @__PURE__ */ $.createContext(null), Av = /* @__PURE__ */ $.createContext(null), Rv = () => {
|
|
11374
11374
|
var e;
|
|
11375
|
-
return ((e =
|
|
11376
|
-
}, Nu = () =>
|
|
11375
|
+
return ((e = $.useContext(kv)) == null ? void 0 : e.id) || null;
|
|
11376
|
+
}, Nu = () => $.useContext(Av);
|
|
11377
11377
|
function $v(e) {
|
|
11378
11378
|
return "data-floating-ui-" + e;
|
|
11379
11379
|
}
|
|
@@ -11411,14 +11411,14 @@ function Lv(e, t) {
|
|
|
11411
11411
|
referencePressEvent: f = "pointerdown",
|
|
11412
11412
|
ancestorScroll: h = !1,
|
|
11413
11413
|
bubbles: d,
|
|
11414
|
-
capture:
|
|
11415
|
-
} = t, m = Nu(),
|
|
11414
|
+
capture: g
|
|
11415
|
+
} = t, m = Nu(), b = bn(typeof l == "function" ? l : () => !1), w = typeof l == "function" ? b : l, x = $.useRef(!1), {
|
|
11416
11416
|
escapeKey: y,
|
|
11417
11417
|
outsidePress: C
|
|
11418
11418
|
} = Xa(d), {
|
|
11419
11419
|
escapeKey: v,
|
|
11420
11420
|
outsidePress: N
|
|
11421
|
-
} = Xa(
|
|
11421
|
+
} = Xa(g), q = $.useRef(!1), k = $.useRef(-1), B = bn((W) => {
|
|
11422
11422
|
var Y;
|
|
11423
11423
|
if (!n || !i || !a || W.key !== "Escape" || q.current)
|
|
11424
11424
|
return;
|
|
@@ -11462,8 +11462,8 @@ function Lv(e, t) {
|
|
|
11462
11462
|
// element was injected after the floating element rendered.
|
|
11463
11463
|
Array.from(P).every((z) => !qa(U, z)))
|
|
11464
11464
|
return;
|
|
11465
|
-
if (Qe(V) &&
|
|
11466
|
-
const z = ht(V), I = We(V), Q = /auto|scroll/, X = z || Q.test(I.overflowX), Z = z || Q.test(I.overflowY),
|
|
11465
|
+
if (Qe(V) && pe) {
|
|
11466
|
+
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, A = Z && V.clientHeight > 0 && V.scrollHeight > V.clientHeight, ze = I.direction === "rtl", mn = A && (ze ? W.offsetX <= V.offsetWidth - V.clientWidth : W.offsetX > V.clientWidth), Tr = xe && W.offsetY > V.clientHeight;
|
|
11467
11467
|
if (mn || Tr)
|
|
11468
11468
|
return;
|
|
11469
11469
|
}
|
|
@@ -11494,7 +11494,7 @@ function Lv(e, t) {
|
|
|
11494
11494
|
};
|
|
11495
11495
|
(Y = Gn(W)) == null || Y.addEventListener(c, ne);
|
|
11496
11496
|
});
|
|
11497
|
-
|
|
11497
|
+
$.useEffect(() => {
|
|
11498
11498
|
if (!n || !i)
|
|
11499
11499
|
return;
|
|
11500
11500
|
s.current.__escapeKeyBubbles = y, s.current.__outsidePressBubbles = C;
|
|
@@ -11530,10 +11530,10 @@ function Lv(e, t) {
|
|
|
11530
11530
|
P.removeEventListener("scroll", Y);
|
|
11531
11531
|
}), window.clearTimeout(W);
|
|
11532
11532
|
};
|
|
11533
|
-
}, [s, o, a, w, c, n, r, h, i, y, C, B, v, G, ce, N, fe]),
|
|
11533
|
+
}, [s, o, a, w, c, n, r, h, i, y, C, B, v, G, ce, N, fe]), $.useEffect(() => {
|
|
11534
11534
|
s.current.insideReactTree = !1;
|
|
11535
11535
|
}, [s, w, c]);
|
|
11536
|
-
const se =
|
|
11536
|
+
const se = $.useMemo(() => ({
|
|
11537
11537
|
onKeyDown: B,
|
|
11538
11538
|
...u && {
|
|
11539
11539
|
[Fv[f]]: (W) => {
|
|
@@ -11545,7 +11545,7 @@ function Lv(e, t) {
|
|
|
11545
11545
|
}
|
|
11546
11546
|
}
|
|
11547
11547
|
}
|
|
11548
|
-
}), [B, r, u, f]),
|
|
11548
|
+
}), [B, r, u, f]), pe = $.useMemo(() => ({
|
|
11549
11549
|
onKeyDown: B,
|
|
11550
11550
|
onMouseDown() {
|
|
11551
11551
|
x.current = !0;
|
|
@@ -11562,36 +11562,36 @@ function Lv(e, t) {
|
|
|
11562
11562
|
}));
|
|
11563
11563
|
}
|
|
11564
11564
|
}), [B, c, s, m]);
|
|
11565
|
-
return
|
|
11565
|
+
return $.useMemo(() => i ? {
|
|
11566
11566
|
reference: se,
|
|
11567
|
-
floating:
|
|
11568
|
-
} : {}, [i, se,
|
|
11567
|
+
floating: pe
|
|
11568
|
+
} : {}, [i, se, pe]);
|
|
11569
11569
|
}
|
|
11570
11570
|
function Mv(e) {
|
|
11571
11571
|
const {
|
|
11572
11572
|
open: t = !1,
|
|
11573
11573
|
onOpenChange: n,
|
|
11574
11574
|
elements: r
|
|
11575
|
-
} = e, o = Ov(), s =
|
|
11575
|
+
} = e, o = Ov(), s = $.useRef({}), [i] = $.useState(() => Sv()), a = Rv() != null;
|
|
11576
11576
|
if (process.env.NODE_ENV !== "production") {
|
|
11577
11577
|
const d = r.reference;
|
|
11578
11578
|
d && !ve(d) && Pv("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
11579
11579
|
}
|
|
11580
|
-
const [l, c] =
|
|
11581
|
-
s.current.openEvent = d ?
|
|
11580
|
+
const [l, c] = $.useState(r.reference), u = bn((d, g, m) => {
|
|
11581
|
+
s.current.openEvent = d ? g : void 0, i.emit("openchange", {
|
|
11582
11582
|
open: d,
|
|
11583
|
-
event:
|
|
11583
|
+
event: g,
|
|
11584
11584
|
reason: m,
|
|
11585
11585
|
nested: a
|
|
11586
|
-
}), n == null || n(d,
|
|
11587
|
-
}), f =
|
|
11586
|
+
}), n == null || n(d, g, m);
|
|
11587
|
+
}), f = $.useMemo(() => ({
|
|
11588
11588
|
setPositionReference: c
|
|
11589
|
-
}), []), h =
|
|
11589
|
+
}), []), h = $.useMemo(() => ({
|
|
11590
11590
|
reference: l || r.reference || null,
|
|
11591
11591
|
floating: r.floating || null,
|
|
11592
11592
|
domReference: r.reference
|
|
11593
11593
|
}), [l, r.reference, r.floating]);
|
|
11594
|
-
return
|
|
11594
|
+
return $.useMemo(() => ({
|
|
11595
11595
|
dataRef: s,
|
|
11596
11596
|
open: t,
|
|
11597
11597
|
onOpenChange: u,
|
|
@@ -11612,7 +11612,7 @@ function _v(e) {
|
|
|
11612
11612
|
floating: null,
|
|
11613
11613
|
...e.elements
|
|
11614
11614
|
}
|
|
11615
|
-
}), r = e.rootContext || n, o = r.elements, [s, i] =
|
|
11615
|
+
}), r = e.rootContext || n, o = r.elements, [s, i] = $.useState(null), [a, l] = $.useState(null), u = (o == null ? void 0 : o.domReference) || s, f = $.useRef(null), h = Nu();
|
|
11616
11616
|
qs(() => {
|
|
11617
11617
|
u && (f.current = u);
|
|
11618
11618
|
}, [u]);
|
|
@@ -11624,43 +11624,43 @@ function _v(e) {
|
|
|
11624
11624
|
reference: a
|
|
11625
11625
|
}
|
|
11626
11626
|
}
|
|
11627
|
-
}),
|
|
11627
|
+
}), g = $.useCallback((y) => {
|
|
11628
11628
|
const C = ve(y) ? {
|
|
11629
11629
|
getBoundingClientRect: () => y.getBoundingClientRect(),
|
|
11630
11630
|
getClientRects: () => y.getClientRects(),
|
|
11631
11631
|
contextElement: y
|
|
11632
11632
|
} : y;
|
|
11633
11633
|
l(C), d.refs.setReference(C);
|
|
11634
|
-
}, [d.refs]), m =
|
|
11634
|
+
}, [d.refs]), m = $.useCallback((y) => {
|
|
11635
11635
|
(ve(y) || y === null) && (f.current = y, i(y)), (ve(d.refs.reference.current) || d.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
11636
11636
|
// `null` to support `positionReference` + an unstable `reference`
|
|
11637
11637
|
// callback ref.
|
|
11638
11638
|
y !== null && !ve(y)) && d.refs.setReference(y);
|
|
11639
|
-
}, [d.refs]),
|
|
11639
|
+
}, [d.refs]), b = $.useMemo(() => ({
|
|
11640
11640
|
...d.refs,
|
|
11641
11641
|
setReference: m,
|
|
11642
|
-
setPositionReference:
|
|
11642
|
+
setPositionReference: g,
|
|
11643
11643
|
domReference: f
|
|
11644
|
-
}), [d.refs, m,
|
|
11644
|
+
}), [d.refs, m, g]), w = $.useMemo(() => ({
|
|
11645
11645
|
...d.elements,
|
|
11646
11646
|
domReference: u
|
|
11647
|
-
}), [d.elements, u]), x =
|
|
11647
|
+
}), [d.elements, u]), x = $.useMemo(() => ({
|
|
11648
11648
|
...d,
|
|
11649
11649
|
...r,
|
|
11650
|
-
refs:
|
|
11650
|
+
refs: b,
|
|
11651
11651
|
elements: w,
|
|
11652
11652
|
nodeId: t
|
|
11653
|
-
}), [d,
|
|
11653
|
+
}), [d, b, w, t, r]);
|
|
11654
11654
|
return qs(() => {
|
|
11655
11655
|
r.dataRef.current.floatingContext = x;
|
|
11656
11656
|
const y = h == null ? void 0 : h.nodesRef.current.find((C) => C.id === t);
|
|
11657
11657
|
y && (y.context = x);
|
|
11658
|
-
}),
|
|
11658
|
+
}), $.useMemo(() => ({
|
|
11659
11659
|
...d,
|
|
11660
11660
|
context: x,
|
|
11661
|
-
refs:
|
|
11661
|
+
refs: b,
|
|
11662
11662
|
elements: w
|
|
11663
|
-
}), [d,
|
|
11663
|
+
}), [d, b, w, x]);
|
|
11664
11664
|
}
|
|
11665
11665
|
function Ko(e, t, n) {
|
|
11666
11666
|
const r = /* @__PURE__ */ new Map(), o = n === "item";
|
|
@@ -11689,9 +11689,9 @@ function Ko(e, t, n) {
|
|
|
11689
11689
|
if (r.has(c) || r.set(c, []), typeof u == "function") {
|
|
11690
11690
|
var f;
|
|
11691
11691
|
(f = r.get(c)) == null || f.push(u), i[c] = function() {
|
|
11692
|
-
for (var h, d = arguments.length,
|
|
11693
|
-
|
|
11694
|
-
return (h = r.get(c)) == null ? void 0 : h.map((
|
|
11692
|
+
for (var h, d = arguments.length, g = new Array(d), m = 0; m < d; m++)
|
|
11693
|
+
g[m] = arguments[m];
|
|
11694
|
+
return (h = r.get(c)) == null ? void 0 : h.map((b) => b(...g)).find((b) => b !== void 0);
|
|
11695
11695
|
};
|
|
11696
11696
|
}
|
|
11697
11697
|
} else
|
|
@@ -11701,20 +11701,20 @@ function Ko(e, t, n) {
|
|
|
11701
11701
|
}
|
|
11702
11702
|
function Dv(e) {
|
|
11703
11703
|
e === void 0 && (e = []);
|
|
11704
|
-
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 =
|
|
11704
|
+
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 = $.useCallback(
|
|
11705
11705
|
(a) => Ko(a, e, "reference"),
|
|
11706
11706
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11707
11707
|
t
|
|
11708
|
-
), s =
|
|
11708
|
+
), s = $.useCallback(
|
|
11709
11709
|
(a) => Ko(a, e, "floating"),
|
|
11710
11710
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11711
11711
|
n
|
|
11712
|
-
), i =
|
|
11712
|
+
), i = $.useCallback(
|
|
11713
11713
|
(a) => Ko(a, e, "item"),
|
|
11714
11714
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11715
11715
|
r
|
|
11716
11716
|
);
|
|
11717
|
-
return
|
|
11717
|
+
return $.useMemo(() => ({
|
|
11718
11718
|
getReferenceProps: o,
|
|
11719
11719
|
getFloatingProps: s,
|
|
11720
11720
|
getItemProps: i
|
|
@@ -11788,7 +11788,7 @@ const jv = {
|
|
|
11788
11788
|
),
|
|
11789
11789
|
[l, e, t, r, n]
|
|
11790
11790
|
);
|
|
11791
|
-
return /* @__PURE__ */
|
|
11791
|
+
return /* @__PURE__ */ R(
|
|
11792
11792
|
"div",
|
|
11793
11793
|
{
|
|
11794
11794
|
className: xn(
|
|
@@ -11801,7 +11801,7 @@ const jv = {
|
|
|
11801
11801
|
"data-category": e,
|
|
11802
11802
|
"data-color": t,
|
|
11803
11803
|
...a,
|
|
11804
|
-
children: /* @__PURE__ */
|
|
11804
|
+
children: /* @__PURE__ */ R("p", { className: xn("mx-1", o), children: s })
|
|
11805
11805
|
}
|
|
11806
11806
|
);
|
|
11807
11807
|
}, Wv = {
|
|
@@ -11811,7 +11811,7 @@ const jv = {
|
|
|
11811
11811
|
}, qv = ({
|
|
11812
11812
|
transition: e,
|
|
11813
11813
|
onClick: t
|
|
11814
|
-
}) => /* @__PURE__ */
|
|
11814
|
+
}) => /* @__PURE__ */ ye(
|
|
11815
11815
|
"div",
|
|
11816
11816
|
{
|
|
11817
11817
|
className: "py-1 px-3 space-x-2 flex items-center hover:bg-gray-100 cursor-pointer",
|
|
@@ -11819,9 +11819,9 @@ const jv = {
|
|
|
11819
11819
|
n.stopPropagation(), t();
|
|
11820
11820
|
},
|
|
11821
11821
|
children: [
|
|
11822
|
-
/* @__PURE__ */
|
|
11823
|
-
/* @__PURE__ */
|
|
11824
|
-
/* @__PURE__ */
|
|
11822
|
+
/* @__PURE__ */ R("span", { className: "text-base text-dark flex-1", children: e.action }),
|
|
11823
|
+
/* @__PURE__ */ R(Wt, { icon: Hm, className: "text-gray-400 size-4" }),
|
|
11824
|
+
/* @__PURE__ */ R(Lu, { category: "outline", color: e.color, children: e.to })
|
|
11825
11825
|
]
|
|
11826
11826
|
}
|
|
11827
11827
|
), Vv = ({
|
|
@@ -11830,7 +11830,7 @@ const jv = {
|
|
|
11830
11830
|
transitions: n,
|
|
11831
11831
|
onClick: r
|
|
11832
11832
|
}) => {
|
|
11833
|
-
const [o, s] =
|
|
11833
|
+
const [o, s] = he(!1), { refs: i, floatingStyles: a, context: l } = _v({
|
|
11834
11834
|
strategy: "fixed",
|
|
11835
11835
|
placement: "bottom-end",
|
|
11836
11836
|
open: o,
|
|
@@ -11838,40 +11838,34 @@ const jv = {
|
|
|
11838
11838
|
}), c = Lv(l, {
|
|
11839
11839
|
outsidePress: !0
|
|
11840
11840
|
}), { getReferenceProps: u, getFloatingProps: f } = Dv([c]);
|
|
11841
|
-
return /* @__PURE__ */
|
|
11842
|
-
/* @__PURE__ */
|
|
11841
|
+
return /* @__PURE__ */ ye(ut, { children: [
|
|
11842
|
+
/* @__PURE__ */ ye(
|
|
11843
11843
|
"div",
|
|
11844
11844
|
{
|
|
11845
11845
|
onClick: n != null && n.length ? () => s((h) => !h) : void 0,
|
|
11846
11846
|
ref: i.setReference,
|
|
11847
|
-
className:
|
|
11847
|
+
className: Oe(
|
|
11848
11848
|
"px-1 uppercase border rounded-sm flex items-center space-x-1",
|
|
11849
11849
|
n.length ? "cursor-pointer" : "pointer-events-none",
|
|
11850
11850
|
Wv[t]
|
|
11851
11851
|
),
|
|
11852
11852
|
...u(),
|
|
11853
11853
|
children: [
|
|
11854
|
-
/* @__PURE__ */
|
|
11855
|
-
n.length > 0 ? /* @__PURE__ */
|
|
11856
|
-
Wt,
|
|
11857
|
-
{
|
|
11858
|
-
icon: Yc,
|
|
11859
|
-
className: "text-gray-400 size-4"
|
|
11860
|
-
}
|
|
11861
|
-
) : /* @__PURE__ */ $(ut, {})
|
|
11854
|
+
/* @__PURE__ */ R("span", { className: "text-sm font-bold", children: e }),
|
|
11855
|
+
n.length > 0 ? /* @__PURE__ */ R(Wt, { icon: Yc, className: "size-4" }) : /* @__PURE__ */ R(ut, {})
|
|
11862
11856
|
]
|
|
11863
11857
|
}
|
|
11864
11858
|
),
|
|
11865
|
-
o && n.length && /* @__PURE__ */
|
|
11859
|
+
o && n.length && /* @__PURE__ */ R(
|
|
11866
11860
|
"div",
|
|
11867
11861
|
{
|
|
11868
11862
|
ref: i.setFloating,
|
|
11869
11863
|
style: a,
|
|
11870
|
-
className:
|
|
11864
|
+
className: Oe(
|
|
11871
11865
|
"border border-gray-200 py-1.5 rounded-sm min-w-[172px] bg-white shadow-dark/50"
|
|
11872
11866
|
),
|
|
11873
11867
|
...f(),
|
|
11874
|
-
children: n.map((h, d) => /* @__PURE__ */
|
|
11868
|
+
children: n.map((h, d) => /* @__PURE__ */ R(
|
|
11875
11869
|
qv,
|
|
11876
11870
|
{
|
|
11877
11871
|
transition: h,
|
|
@@ -11897,8 +11891,8 @@ const jv = {
|
|
|
11897
11891
|
c && (new Image().src = c);
|
|
11898
11892
|
}), o;
|
|
11899
11893
|
}, [e]);
|
|
11900
|
-
return
|
|
11901
|
-
}, [t]), /* @__PURE__ */
|
|
11894
|
+
return Ee(() => {
|
|
11895
|
+
}, [t]), /* @__PURE__ */ R("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ R(
|
|
11902
11896
|
"div",
|
|
11903
11897
|
{
|
|
11904
11898
|
className: "lexical-view-mode",
|
|
@@ -11920,7 +11914,7 @@ const jv = {
|
|
|
11920
11914
|
step: n,
|
|
11921
11915
|
isSelected: r,
|
|
11922
11916
|
onSelect: o
|
|
11923
|
-
}) => /* @__PURE__ */
|
|
11917
|
+
}) => /* @__PURE__ */ R(
|
|
11924
11918
|
"div",
|
|
11925
11919
|
{
|
|
11926
11920
|
className: ar(
|
|
@@ -11931,7 +11925,7 @@ const jv = {
|
|
|
11931
11925
|
onClick: (s) => {
|
|
11932
11926
|
s.stopPropagation(), o == null || o(s.shiftKey);
|
|
11933
11927
|
},
|
|
11934
|
-
children: /* @__PURE__ */
|
|
11928
|
+
children: /* @__PURE__ */ R(
|
|
11935
11929
|
"span",
|
|
11936
11930
|
{
|
|
11937
11931
|
className: ar(
|
|
@@ -11947,7 +11941,7 @@ const jv = {
|
|
|
11947
11941
|
[ge.IN_PROGRESS]: "primary",
|
|
11948
11942
|
[ge.IN_REVIEW]: "success",
|
|
11949
11943
|
[ge.COMPLETED]: "success"
|
|
11950
|
-
}, Jv = ({ status: e }) => /* @__PURE__ */
|
|
11944
|
+
}, Jv = ({ status: e }) => /* @__PURE__ */ R(Lu, { category: "outline", color: Xv[e], children: e }), Zv = {
|
|
11951
11945
|
[ge.OPEN]: "border-[#C1C5C8] bg-[#F0F1F2]",
|
|
11952
11946
|
[ge.IN_PROGRESS]: "bg-[#E6F2FF] border-[#94C8FF]",
|
|
11953
11947
|
[ge.IN_REVIEW]: "bg-[#EAF6EC] border-[#A5DAB1]",
|
|
@@ -11968,14 +11962,14 @@ const jv = {
|
|
|
11968
11962
|
taskStyle: c,
|
|
11969
11963
|
listStickyTopBase: u
|
|
11970
11964
|
}) => {
|
|
11971
|
-
const [f, h] =
|
|
11965
|
+
const [f, h] = he(!1), { taskDetails: d, prefetchQuery: g } = fv({
|
|
11972
11966
|
taskId: e.taskId,
|
|
11973
11967
|
playbookId: l,
|
|
11974
11968
|
enabled: i
|
|
11975
11969
|
}), { buttons: m } = $f({
|
|
11976
11970
|
taskStatus: e.workflowStatus,
|
|
11977
11971
|
canStart: s
|
|
11978
|
-
}),
|
|
11972
|
+
}), b = de(() => e.imageRequired === 0 ? null : e.imageRequired === 1 ? Qo.SCREENSHOT : e.imageRequired === 2 ? Qo.PHOTO : null, [e.imageRequired]), w = async (x) => {
|
|
11979
11973
|
try {
|
|
11980
11974
|
h(!0), await r(x);
|
|
11981
11975
|
} finally {
|
|
@@ -11999,11 +11993,11 @@ const jv = {
|
|
|
11999
11993
|
});
|
|
12000
11994
|
}), C;
|
|
12001
11995
|
}, [m]);
|
|
12002
|
-
return /* @__PURE__ */
|
|
12003
|
-
/* @__PURE__ */
|
|
11996
|
+
return /* @__PURE__ */ ye("div", { className: Oe("flex flex-col"), children: [
|
|
11997
|
+
/* @__PURE__ */ ye(
|
|
12004
11998
|
"div",
|
|
12005
11999
|
{
|
|
12006
|
-
className:
|
|
12000
|
+
className: Oe(
|
|
12007
12001
|
"flex gap-3 p-2 border-gray-200",
|
|
12008
12002
|
e.sequenceOrder > 0 && "border-t",
|
|
12009
12003
|
i && "bg-white rounded-md border border-t-none shadow-sm sticky"
|
|
@@ -12012,15 +12006,15 @@ const jv = {
|
|
|
12012
12006
|
top: i ? u : 0
|
|
12013
12007
|
},
|
|
12014
12008
|
children: [
|
|
12015
|
-
/* @__PURE__ */
|
|
12016
|
-
/* @__PURE__ */
|
|
12009
|
+
/* @__PURE__ */ R("div", { className: "text-gray-200 text-base", children: e.sequenceOrder + 1 }),
|
|
12010
|
+
/* @__PURE__ */ R(
|
|
12017
12011
|
"div",
|
|
12018
12012
|
{
|
|
12019
12013
|
onClick: () => {
|
|
12020
12014
|
a == null || a(!i);
|
|
12021
12015
|
},
|
|
12022
|
-
onMouseOver:
|
|
12023
|
-
className:
|
|
12016
|
+
onMouseOver: g,
|
|
12017
|
+
className: Oe(
|
|
12024
12018
|
"flex-1 truncate cursor-pointer",
|
|
12025
12019
|
i && "font-medium",
|
|
12026
12020
|
e.workflowStatus === ge.COMPLETED && "text-secondary-400 line-through"
|
|
@@ -12031,7 +12025,7 @@ const jv = {
|
|
|
12031
12025
|
children: e.taskInstanceName
|
|
12032
12026
|
}
|
|
12033
12027
|
),
|
|
12034
|
-
/* @__PURE__ */
|
|
12028
|
+
/* @__PURE__ */ R(
|
|
12035
12029
|
Vv,
|
|
12036
12030
|
{
|
|
12037
12031
|
title: e.workflowStatus,
|
|
@@ -12045,19 +12039,19 @@ const jv = {
|
|
|
12045
12039
|
]
|
|
12046
12040
|
}
|
|
12047
12041
|
),
|
|
12048
|
-
(d == null ? void 0 : d.description) && /* @__PURE__ */
|
|
12042
|
+
(d == null ? void 0 : d.description) && /* @__PURE__ */ R(
|
|
12049
12043
|
"div",
|
|
12050
12044
|
{
|
|
12051
|
-
className:
|
|
12045
|
+
className: Oe(
|
|
12052
12046
|
!i && "hidden",
|
|
12053
|
-
"border-gray-200 border p-2 mx-4 mb-4 border-t-none -mt-
|
|
12047
|
+
"border-gray-200 border p-2 mx-4 mb-4 border-t-none -mt-[1px] bg-gray-100 rounded-b-md"
|
|
12054
12048
|
),
|
|
12055
|
-
children: /* @__PURE__ */
|
|
12049
|
+
children: /* @__PURE__ */ R(Ja, { description: (d == null ? void 0 : d.description) || "" })
|
|
12056
12050
|
}
|
|
12057
12051
|
)
|
|
12058
12052
|
] });
|
|
12059
12053
|
}
|
|
12060
|
-
return /* @__PURE__ */
|
|
12054
|
+
return /* @__PURE__ */ ye(
|
|
12061
12055
|
"div",
|
|
12062
12056
|
{
|
|
12063
12057
|
className: ar(
|
|
@@ -12065,7 +12059,7 @@ const jv = {
|
|
|
12065
12059
|
Zv[e.workflowStatus]
|
|
12066
12060
|
),
|
|
12067
12061
|
children: [
|
|
12068
|
-
/* @__PURE__ */
|
|
12062
|
+
/* @__PURE__ */ R(
|
|
12069
12063
|
Qv,
|
|
12070
12064
|
{
|
|
12071
12065
|
playbookType: n,
|
|
@@ -12073,31 +12067,31 @@ const jv = {
|
|
|
12073
12067
|
step: t
|
|
12074
12068
|
}
|
|
12075
12069
|
),
|
|
12076
|
-
/* @__PURE__ */
|
|
12077
|
-
n === "Sequential" && /* @__PURE__ */
|
|
12078
|
-
/* @__PURE__ */
|
|
12079
|
-
/* @__PURE__ */
|
|
12070
|
+
/* @__PURE__ */ ye("div", { className: "flex w-full flex-col overflow-x-hidden flex-1 p-2", children: [
|
|
12071
|
+
n === "Sequential" && /* @__PURE__ */ R("div", { className: "-mb-3 self-end pr-2 pt-2", children: /* @__PURE__ */ R(Jv, { status: e.workflowStatus }) }),
|
|
12072
|
+
/* @__PURE__ */ ye("div", { className: "space-y-2 divide-y divide-black/10 flex flex-col flex-1", children: [
|
|
12073
|
+
/* @__PURE__ */ R(
|
|
12080
12074
|
"div",
|
|
12081
12075
|
{
|
|
12082
|
-
className:
|
|
12076
|
+
className: Oe("text-lg font-medium flex-1 pb-1"),
|
|
12083
12077
|
style: {
|
|
12084
12078
|
color: e.workflowStatus === "Completed" ? "#1C232D" : (c == null ? void 0 : c.titleColor) || "#1C232D"
|
|
12085
12079
|
},
|
|
12086
12080
|
children: e.taskInstanceName
|
|
12087
12081
|
}
|
|
12088
12082
|
),
|
|
12089
|
-
|
|
12090
|
-
/* @__PURE__ */
|
|
12091
|
-
/* @__PURE__ */
|
|
12092
|
-
/* @__PURE__ */
|
|
12083
|
+
b ? /* @__PURE__ */ ye("div", { className: "flex items-center gap-2 text-sm pb-2", children: [
|
|
12084
|
+
/* @__PURE__ */ R(Wt, { icon: zm, className: "size-4" }),
|
|
12085
|
+
/* @__PURE__ */ ye("div", { children: [
|
|
12086
|
+
/* @__PURE__ */ R("span", { className: "font-medium", children: b === Qo.PHOTO ? "Photo" : "Screenshot" }),
|
|
12093
12087
|
" ",
|
|
12094
12088
|
"required"
|
|
12095
12089
|
] })
|
|
12096
|
-
] }) : /* @__PURE__ */
|
|
12090
|
+
] }) : /* @__PURE__ */ R(ut, {})
|
|
12097
12091
|
] }),
|
|
12098
|
-
(d == null ? void 0 : d.description) && /* @__PURE__ */
|
|
12099
|
-
(m.length > 0 || e.hasDescription) && /* @__PURE__ */
|
|
12100
|
-
/* @__PURE__ */
|
|
12092
|
+
(d == null ? void 0 : d.description) && /* @__PURE__ */ R("div", { className: Oe(!i && "hidden"), children: /* @__PURE__ */ R(Ja, { description: (d == null ? void 0 : d.description) || "" }) }),
|
|
12093
|
+
(m.length > 0 || e.hasDescription) && /* @__PURE__ */ ye("div", { className: "flex items-center justify-end gap-4 border-t border-black/10 pt-2", children: [
|
|
12094
|
+
/* @__PURE__ */ R("div", { className: "flex-1", children: /* @__PURE__ */ R(
|
|
12101
12095
|
dv,
|
|
12102
12096
|
{
|
|
12103
12097
|
buttons: m,
|
|
@@ -12105,17 +12099,17 @@ const jv = {
|
|
|
12105
12099
|
disabled: f
|
|
12106
12100
|
}
|
|
12107
12101
|
) }),
|
|
12108
|
-
a && /* @__PURE__ */
|
|
12102
|
+
a && /* @__PURE__ */ R(
|
|
12109
12103
|
ur,
|
|
12110
12104
|
{
|
|
12111
12105
|
size: "smallCollapse",
|
|
12112
|
-
onMouseOver:
|
|
12106
|
+
onMouseOver: g,
|
|
12113
12107
|
category: "link",
|
|
12114
12108
|
onClick: () => {
|
|
12115
12109
|
a();
|
|
12116
12110
|
},
|
|
12117
12111
|
title: i ? "Hide task description" : "Show task description",
|
|
12118
|
-
children: /* @__PURE__ */
|
|
12112
|
+
children: /* @__PURE__ */ R(
|
|
12119
12113
|
Wt,
|
|
12120
12114
|
{
|
|
12121
12115
|
icon: Yc,
|
|
@@ -12139,20 +12133,18 @@ const jv = {
|
|
|
12139
12133
|
...r
|
|
12140
12134
|
}) => {
|
|
12141
12135
|
var o, s;
|
|
12142
|
-
return /* @__PURE__ */
|
|
12136
|
+
return /* @__PURE__ */ R(
|
|
12143
12137
|
"div",
|
|
12144
12138
|
{
|
|
12145
|
-
className:
|
|
12139
|
+
className: Oe("border-b border-gray-200 flex items-center", t),
|
|
12146
12140
|
style: {
|
|
12147
|
-
backgroundColor: ((o = n == null ? void 0 : n.whiteLabel) == null ? void 0 : o.titleBackgroundColor) || "#f8f9fa"
|
|
12148
|
-
minHeight: 104,
|
|
12149
|
-
height: 104
|
|
12141
|
+
backgroundColor: ((o = n == null ? void 0 : n.whiteLabel) == null ? void 0 : o.titleBackgroundColor) || "#f8f9fa"
|
|
12150
12142
|
},
|
|
12151
12143
|
...r,
|
|
12152
|
-
children: /* @__PURE__ */
|
|
12153
|
-
"
|
|
12144
|
+
children: /* @__PURE__ */ R(
|
|
12145
|
+
"div",
|
|
12154
12146
|
{
|
|
12155
|
-
className: "text-xl
|
|
12147
|
+
className: "text-xl min-h-16 p-4",
|
|
12156
12148
|
style: {
|
|
12157
12149
|
color: (s = n == null ? void 0 : n.whiteLabel) == null ? void 0 : s.titleTextColor
|
|
12158
12150
|
},
|
|
@@ -12186,7 +12178,7 @@ const jv = {
|
|
|
12186
12178
|
playbookStyle: n
|
|
12187
12179
|
}) => {
|
|
12188
12180
|
const { playbook: r, actions: o } = Af(e);
|
|
12189
|
-
return r ? /* @__PURE__ */
|
|
12181
|
+
return r ? /* @__PURE__ */ R(
|
|
12190
12182
|
Mu,
|
|
12191
12183
|
{
|
|
12192
12184
|
playbook: r,
|
|
@@ -12208,29 +12200,48 @@ const jv = {
|
|
|
12208
12200
|
},
|
|
12209
12201
|
playbookStyle: n
|
|
12210
12202
|
}
|
|
12211
|
-
) : /* @__PURE__ */
|
|
12203
|
+
) : /* @__PURE__ */ R("div", {});
|
|
12212
12204
|
}, sy = ({
|
|
12213
12205
|
className: e,
|
|
12214
|
-
children: t
|
|
12215
|
-
|
|
12206
|
+
children: t,
|
|
12207
|
+
numberOfTasks: n,
|
|
12208
|
+
playbookMode: r
|
|
12209
|
+
}) => /* @__PURE__ */ ye("div", { className: Oe("w-full p-4", e), children: [
|
|
12210
|
+
n && /* @__PURE__ */ ye("div", { className: Oe(r === "card" && "mb-4"), children: [
|
|
12211
|
+
/* @__PURE__ */ R("span", { className: "font-medium", children: "Tasks" }),
|
|
12212
|
+
" (3)"
|
|
12213
|
+
] }),
|
|
12214
|
+
/* @__PURE__ */ R("div", { className: Oe(r === "card" && "space-y-4"), children: t })
|
|
12215
|
+
] }), Mu = ({
|
|
12216
12216
|
playbook: e,
|
|
12217
12217
|
playbookMode: t,
|
|
12218
12218
|
onTaskButtonClick: n,
|
|
12219
12219
|
playbookStyle: r
|
|
12220
12220
|
}) => {
|
|
12221
|
-
var
|
|
12222
|
-
const { playbookInstanceName: o, tasks: s } = e, { isTaskExpanded:
|
|
12221
|
+
var h;
|
|
12222
|
+
const { playbookInstanceName: o, tasks: s } = e, i = oe(null), [a, l] = he(0), { isTaskExpanded: c, toggleTaskExpanded: u } = ry(
|
|
12223
12223
|
e.playbookInstanceId
|
|
12224
|
-
)
|
|
12225
|
-
|
|
12226
|
-
|
|
12224
|
+
);
|
|
12225
|
+
Ee(() => (i.current && new ResizeObserver((g) => {
|
|
12226
|
+
var m;
|
|
12227
|
+
for (const b of g)
|
|
12228
|
+
console.log("ResizeObserver entry:", b), b.contentRect && l(
|
|
12229
|
+
((m = i.current) == null ? void 0 : m.offsetHeight) || 0
|
|
12230
|
+
);
|
|
12231
|
+
}).observe(i.current), () => {
|
|
12232
|
+
i.current && new ResizeObserver(() => {
|
|
12233
|
+
}).unobserve(i.current);
|
|
12234
|
+
}), [i]);
|
|
12235
|
+
const f = de(() => {
|
|
12236
|
+
const d = s.find(
|
|
12237
|
+
(g) => g.workflowStatus === ge.COMPLETED
|
|
12227
12238
|
);
|
|
12228
|
-
return
|
|
12239
|
+
return d ? d.sequenceOrder + 1 : 0;
|
|
12229
12240
|
}, [s]);
|
|
12230
|
-
return /* @__PURE__ */
|
|
12241
|
+
return /* @__PURE__ */ ye(
|
|
12231
12242
|
"div",
|
|
12232
12243
|
{
|
|
12233
|
-
className:
|
|
12244
|
+
className: Oe(
|
|
12234
12245
|
!(r != null && r.overlay) && "min-h-screen",
|
|
12235
12246
|
(r == null ? void 0 : r.overlay) && "fixed bottom-0 z-[99999999999999] flex"
|
|
12236
12247
|
),
|
|
@@ -12244,17 +12255,17 @@ const jv = {
|
|
|
12244
12255
|
}
|
|
12245
12256
|
},
|
|
12246
12257
|
children: [
|
|
12247
|
-
(r == null ? void 0 : r.overlay) && /* @__PURE__ */
|
|
12258
|
+
(r == null ? void 0 : r.overlay) && /* @__PURE__ */ R(
|
|
12248
12259
|
"div",
|
|
12249
12260
|
{
|
|
12250
|
-
className:
|
|
12261
|
+
className: Oe(
|
|
12251
12262
|
"size-9 relative p-1 top-3 z-[99999999999999] border-none rounded-l-sm "
|
|
12252
12263
|
),
|
|
12253
12264
|
style: {
|
|
12254
|
-
backgroundColor: ((
|
|
12265
|
+
backgroundColor: ((h = r == null ? void 0 : r.whiteLabel) == null ? void 0 : h.primaryColor) || "#007BFF",
|
|
12255
12266
|
boxShadow: "0px 3px 3px 0px #00000040"
|
|
12256
12267
|
},
|
|
12257
|
-
children: /* @__PURE__ */
|
|
12268
|
+
children: /* @__PURE__ */ R(
|
|
12258
12269
|
"img",
|
|
12259
12270
|
{
|
|
12260
12271
|
src: ny,
|
|
@@ -12264,49 +12275,48 @@ const jv = {
|
|
|
12264
12275
|
)
|
|
12265
12276
|
}
|
|
12266
12277
|
),
|
|
12267
|
-
/* @__PURE__ */
|
|
12278
|
+
/* @__PURE__ */ ye(
|
|
12268
12279
|
"div",
|
|
12269
12280
|
{
|
|
12270
|
-
className:
|
|
12281
|
+
className: Oe(
|
|
12271
12282
|
"flex flex-col flex-1 bg-gray-50",
|
|
12272
12283
|
(r == null ? void 0 : r.overlay) && "border border-gray-200 shadow-2xl rounded-t-sm overflow-y-auto"
|
|
12273
12284
|
),
|
|
12274
12285
|
children: [
|
|
12275
|
-
/* @__PURE__ */
|
|
12286
|
+
/* @__PURE__ */ R(
|
|
12276
12287
|
ty,
|
|
12277
12288
|
{
|
|
12278
12289
|
title: o,
|
|
12279
|
-
className:
|
|
12280
|
-
playbookStyle: r
|
|
12290
|
+
className: Oe("top-0 sticky z-2"),
|
|
12291
|
+
playbookStyle: r,
|
|
12292
|
+
ref: i
|
|
12281
12293
|
}
|
|
12282
12294
|
),
|
|
12283
|
-
/* @__PURE__ */
|
|
12295
|
+
/* @__PURE__ */ R(
|
|
12284
12296
|
sy,
|
|
12285
12297
|
{
|
|
12286
|
-
|
|
12287
|
-
|
|
12288
|
-
|
|
12289
|
-
|
|
12290
|
-
|
|
12291
|
-
var h;
|
|
12292
|
-
return /* @__PURE__ */ $(
|
|
12298
|
+
playbookMode: t,
|
|
12299
|
+
numberOfTasks: e.numberofTasks,
|
|
12300
|
+
children: s.map((d, g) => {
|
|
12301
|
+
var m;
|
|
12302
|
+
return /* @__PURE__ */ R(
|
|
12293
12303
|
ey,
|
|
12294
12304
|
{
|
|
12295
|
-
task:
|
|
12296
|
-
step:
|
|
12305
|
+
task: d,
|
|
12306
|
+
step: g + 1,
|
|
12297
12307
|
viewMode: t,
|
|
12298
12308
|
playbookId: e.playbookId,
|
|
12299
|
-
canStart:
|
|
12300
|
-
onButtonClick: (
|
|
12309
|
+
canStart: d.sequenceOrder === f,
|
|
12310
|
+
onButtonClick: (b) => n(b, d.taskInstanceId),
|
|
12301
12311
|
playbookType: "Non-Sequential",
|
|
12302
12312
|
taskStyle: {
|
|
12303
|
-
titleColor: (
|
|
12313
|
+
titleColor: (m = r == null ? void 0 : r.whiteLabel) == null ? void 0 : m.primaryColor
|
|
12304
12314
|
},
|
|
12305
|
-
isExpanded:
|
|
12306
|
-
toggleExpanded: () =>
|
|
12307
|
-
listStickyTopBase: 104
|
|
12315
|
+
isExpanded: c(d.taskInstanceId),
|
|
12316
|
+
toggleExpanded: () => u(d.taskInstanceId),
|
|
12317
|
+
listStickyTopBase: a || 104
|
|
12308
12318
|
},
|
|
12309
|
-
|
|
12319
|
+
g
|
|
12310
12320
|
);
|
|
12311
12321
|
})
|
|
12312
12322
|
}
|
|
@@ -12322,10 +12332,10 @@ const jv = {
|
|
|
12322
12332
|
playbookId: t,
|
|
12323
12333
|
playbookMode: n
|
|
12324
12334
|
}) => {
|
|
12325
|
-
const [r, o] =
|
|
12335
|
+
const [r, o] = he(
|
|
12326
12336
|
null
|
|
12327
12337
|
);
|
|
12328
|
-
return
|
|
12338
|
+
return Ee(() => {
|
|
12329
12339
|
(async () => {
|
|
12330
12340
|
const { playbookInstanceId: s, errorCode: i, details: a, message: l } = await Pl({
|
|
12331
12341
|
bank: "public-sdk",
|
|
@@ -12339,24 +12349,24 @@ const jv = {
|
|
|
12339
12349
|
);
|
|
12340
12350
|
o(s);
|
|
12341
12351
|
})();
|
|
12342
|
-
}, []), r ? /* @__PURE__ */
|
|
12352
|
+
}, []), r ? /* @__PURE__ */ R(
|
|
12343
12353
|
qn,
|
|
12344
12354
|
{
|
|
12345
12355
|
playbookInstanceId: r,
|
|
12346
12356
|
playbookMode: n
|
|
12347
12357
|
}
|
|
12348
|
-
) : /* @__PURE__ */
|
|
12358
|
+
) : /* @__PURE__ */ R("div", { children: "Loading..." });
|
|
12349
12359
|
}, ay = ({
|
|
12350
12360
|
playbookId: e,
|
|
12351
12361
|
playbookMode: t = "list",
|
|
12352
12362
|
playbookStyle: n,
|
|
12353
12363
|
btnLabel: r = "Start Playbook"
|
|
12354
12364
|
}) => {
|
|
12355
|
-
const [o, s] =
|
|
12365
|
+
const [o, s] = he(
|
|
12356
12366
|
null
|
|
12357
12367
|
);
|
|
12358
|
-
return /* @__PURE__ */
|
|
12359
|
-
/* @__PURE__ */
|
|
12368
|
+
return /* @__PURE__ */ ye(ut, { children: [
|
|
12369
|
+
/* @__PURE__ */ R(
|
|
12360
12370
|
Dm,
|
|
12361
12371
|
{
|
|
12362
12372
|
playbookId: e,
|
|
@@ -12365,7 +12375,7 @@ const jv = {
|
|
|
12365
12375
|
btnLabel: r
|
|
12366
12376
|
}
|
|
12367
12377
|
),
|
|
12368
|
-
o && /* @__PURE__ */
|
|
12378
|
+
o && /* @__PURE__ */ R(
|
|
12369
12379
|
qn,
|
|
12370
12380
|
{
|
|
12371
12381
|
playbookInstanceId: o,
|
|
@@ -12378,7 +12388,7 @@ const jv = {
|
|
|
12378
12388
|
playbookInstanceId: e,
|
|
12379
12389
|
playbookMode: t,
|
|
12380
12390
|
playbookStyle: n
|
|
12381
|
-
}) => /* @__PURE__ */
|
|
12391
|
+
}) => /* @__PURE__ */ R(Tl, { children: /* @__PURE__ */ R(
|
|
12382
12392
|
oy,
|
|
12383
12393
|
{
|
|
12384
12394
|
playbookInstanceId: e,
|
|
@@ -12392,7 +12402,7 @@ qn.AutoInstantiated = iy;
|
|
|
12392
12402
|
qn.WithInstantiateButton = ay;
|
|
12393
12403
|
const gy = ({
|
|
12394
12404
|
children: e
|
|
12395
|
-
}) => /* @__PURE__ */
|
|
12405
|
+
}) => /* @__PURE__ */ R("div", { className: "confidence-ui", children: e });
|
|
12396
12406
|
export {
|
|
12397
12407
|
qn as ConfidencePlaybook,
|
|
12398
12408
|
Dm as ConfidencePlaybookButton,
|