@confidencesystemsinc/sdk 1.2.1 → 1.2.3
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/components/playbook/confidence-playbook.d.ts +9 -4
- package/dist/index.cjs +14 -14
- package/dist/index.js +385 -375
- package/dist/theme.css +1 -1
- package/package.json +1 -1
- package/src/components/playbook/confidence-playbook.tsx +62 -20
- 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/src/stories/confidence-playbook.stories.tsx +6 -5
- 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 {
|
|
@@ -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);
|
|
@@ -570,7 +570,7 @@ var Ce = Zu(), en, tl, gl = (tl = class {
|
|
|
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),
|
|
@@ -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
|
});
|
|
@@ -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
|
)
|
|
@@ -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;
|
|
@@ -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 = ({
|
|
@@ -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
|
-
|
|
1786
|
+
if ($.useSyncExternalStore(
|
|
1787
|
+
$.useCallback(
|
|
1788
1788
|
(g) => {
|
|
1789
|
-
const w = u ? l.subscribe(
|
|
1789
|
+
const w = u ? l.subscribe(Te.batchCalls(g)) : 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);
|
|
@@ -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",
|
|
@@ -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"), b = Ce("blur"), m = Ce("perspective"), g = 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"]
|
|
@@ -2311,7 +2311,7 @@ const xe = (e) => {
|
|
|
2311
2311
|
b,
|
|
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: {
|
|
@@ -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,14 +5041,14 @@ 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)) {
|
|
@@ -5103,13 +5103,13 @@ 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
5114
|
let h = (m, g) => {
|
|
5115
5115
|
if (a.pointerType = g, o || g === "touch" || a.isHovered || !m.currentTarget.contains(m.target)) return;
|
|
@@ -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;
|
|
@@ -5351,7 +5351,7 @@ function Ar(e, t = {}, n, r, o) {
|
|
|
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,7 +5531,7 @@ 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
|
-
|
|
5534
|
+
Pe(() => o.register(a), [a, o.register]);
|
|
5535
5535
|
let h = ue((g) => {
|
|
5536
5536
|
let w = g.currentTarget;
|
|
5537
5537
|
if (!(g.target !== g.currentTarget && Qd(g.target)) && (ji(w) && g.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(g), ji(w))) {
|
|
@@ -5547,7 +5547,7 @@ function oh(e, t) {
|
|
|
5547
5547
|
}), d = i || !1, b = de(() => ({ ...o.slot, disabled: d }), [o.slot, d]), m = { ref: f, ...o.props, id: a, htmlFor: l, onClick: h };
|
|
5548
5548
|
return c && ("onClick" in m && (delete m.htmlFor, delete m.onClick), "onClick" in u && delete u.onClick), Le()({ ourProps: m, theirProps: u, slot: b, 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);
|
|
@@ -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;
|
|
@@ -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);
|
|
@@ -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 [b, m] =
|
|
6793
|
+
const [b, m] = $.useState(null), [g, 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 || b, v = i || g, N =
|
|
6797
|
+
}, []), C = s || b, v = i || g, 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
|
}
|
|
@@ -7074,7 +7074,7 @@ function Hp(e, t) {
|
|
|
7074
7074
|
} }, w = Le();
|
|
7075
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: g, 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
|
}
|
|
@@ -7196,22 +7196,22 @@ function zc(e, t) {
|
|
|
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: b, leaveTo: m, ...g } = e, [w, x] =
|
|
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: b, leaveTo: m, ...g } = e, [w, x] = he(null), y = oe(null), C = jc(e), v = Xe(...C ? [y, t, x] : t === null ? [] : [t]), N = (n = g.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,9 +7222,9 @@ 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
7230
|
let U = !(!o || !C || !W || Y), [, S] = Yh(U, w, q, { start: E, end: P }), _ = Yt({ ref: v, className: ((r = ys(g.className, ne && c, ne && u, S.enter && c, S.enter && S.closed && u, S.enter && !S.closed && f, S.leave && d, S.leave && !S.closed && b, S.leave && S.closed && m, !S.transition && q && h)) == null ? void 0 : r.trim()) || void 0, ...Gh(S) }), K = 0;
|
|
@@ -7237,14 +7237,14 @@ function Jp(e, 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, b] =
|
|
7243
|
-
|
|
7242
|
+
}), [d, b] = he(!0), m = oe([n]);
|
|
7243
|
+
Pe(() => {
|
|
7244
7244
|
d !== !1 && m.current[m.current.length - 1] !== n && (m.current.push(n), b(!1));
|
|
7245
7245
|
}, [m, n]);
|
|
7246
7246
|
let g = de(() => ({ show: n, appear: r, initial: d }), [n, r, d]);
|
|
7247
|
-
|
|
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(() => {
|
|
@@ -7257,17 +7257,17 @@ function Jp(e, t) {
|
|
|
7257
7257
|
return j.createElement(po.Provider, { value: h }, j.createElement(ho.Provider, { value: g }, 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,7 +7277,7 @@ 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");
|
|
@@ -7296,13 +7296,13 @@ let sa = Se(function(e, t) {
|
|
|
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, g == null ? void 0 : g.defaultView, (S) => {
|
|
7306
7306
|
S.preventDefault(), S.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), C();
|
|
7307
7307
|
}), Wh(c || fe ? !1 : N, g, ce), Oh(N, b, 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;
|
|
@@ -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
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: b, hoverProps: m } = Id({ isDisabled: i }), g = 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: b, focus: h, autofocus: a }), [i, l, b, h, a]);
|
|
7349
7349
|
return Le()({ ourProps: g, 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}`;
|
|
@@ -7424,7 +7424,7 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
7424
7424
|
}, f) => {
|
|
7425
7425
|
var y;
|
|
7426
7426
|
const h = Om, d = /link/.test(o) ? null : Pm(n, e), b = Tm, m = Im[r], g = (y = $m(n, e)) == null ? void 0 : y[o], w = xn(d, g), x = Fm[a];
|
|
7427
|
-
return /* @__PURE__ */
|
|
7427
|
+
return /* @__PURE__ */ R(
|
|
7428
7428
|
"button",
|
|
7429
7429
|
{
|
|
7430
7430
|
...u,
|
|
@@ -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
|
}
|
|
@@ -7584,8 +7584,8 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
|
|
|
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,
|
|
@@ -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 = b, se = d,
|
|
10409
|
+
var v = l, N = c, q = a, k = i, B = t, G = u, ce = r, fe = b, 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
|
}
|
|
@@ -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;
|
|
@@ -10619,8 +10619,8 @@ function Gb() {
|
|
|
10619
10619
|
function g(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"
|
|
@@ -10715,7 +10715,7 @@ function Gb() {
|
|
|
10715
10715
|
for (var I = U[S], Q = 0; Q < E.length; Q++)
|
|
10716
10716
|
if (b(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
|
});
|
|
@@ -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);
|
|
@@ -10764,7 +10764,7 @@ function Gb() {
|
|
|
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
10769
|
return g(E);
|
|
10770
10770
|
}
|
|
@@ -10782,9 +10782,9 @@ 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
|
}
|
|
@@ -10797,15 +10797,15 @@ 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
|
}
|
|
@@ -10813,7 +10813,7 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
|
10813
10813
|
}
|
|
10814
10814
|
return g(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
|
|
@@ -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
|
}
|
|
@@ -11412,13 +11412,13 @@ function Lv(e, t) {
|
|
|
11412
11412
|
ancestorScroll: h = !1,
|
|
11413
11413
|
bubbles: d,
|
|
11414
11414
|
capture: b
|
|
11415
|
-
} = t, m = Nu(), g = bn(typeof l == "function" ? l : () => !1), w = typeof l == "function" ? g : l, x =
|
|
11415
|
+
} = t, m = Nu(), g = bn(typeof l == "function" ? l : () => !1), w = typeof l == "function" ? g : 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(b), q =
|
|
11421
|
+
} = Xa(b), 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] =
|
|
11580
|
+
const [l, c] = $.useState(r.reference), u = bn((d, b, m) => {
|
|
11581
11581
|
s.current.openEvent = d ? b : void 0, i.emit("openchange", {
|
|
11582
11582
|
open: d,
|
|
11583
11583
|
event: b,
|
|
11584
11584
|
reason: m,
|
|
11585
11585
|
nested: a
|
|
11586
11586
|
}), n == null || n(d, b, m);
|
|
11587
|
-
}), f =
|
|
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,27 +11624,27 @@ function _v(e) {
|
|
|
11624
11624
|
reference: a
|
|
11625
11625
|
}
|
|
11626
11626
|
}
|
|
11627
|
-
}), b =
|
|
11627
|
+
}), b = $.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]), g =
|
|
11639
|
+
}, [d.refs]), g = $.useMemo(() => ({
|
|
11640
11640
|
...d.refs,
|
|
11641
11641
|
setReference: m,
|
|
11642
11642
|
setPositionReference: b,
|
|
11643
11643
|
domReference: f
|
|
11644
|
-
}), [d.refs, m, b]), w =
|
|
11644
|
+
}), [d.refs, m, b]), 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
11650
|
refs: g,
|
|
@@ -11655,7 +11655,7 @@ function _v(e) {
|
|
|
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
11661
|
refs: g,
|
|
@@ -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,7 +11962,7 @@ 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: b } = fv({
|
|
11972
11966
|
taskId: e.taskId,
|
|
11973
11967
|
playbookId: l,
|
|
11974
11968
|
enabled: i
|
|
@@ -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
12016
|
onMouseOver: b,
|
|
12023
|
-
className:
|
|
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
|
-
g ? /* @__PURE__ */
|
|
12090
|
-
/* @__PURE__ */
|
|
12091
|
-
/* @__PURE__ */
|
|
12092
|
-
/* @__PURE__ */
|
|
12083
|
+
g ? /* @__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: g === 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,7 +12099,7 @@ 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",
|
|
@@ -12115,7 +12109,7 @@ const jv = {
|
|
|
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,53 +12200,72 @@ 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, d, b, m, g;
|
|
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((x) => {
|
|
12226
|
+
var y;
|
|
12227
|
+
for (const C of x)
|
|
12228
|
+
console.log("ResizeObserver entry:", C), C.contentRect && l(
|
|
12229
|
+
((y = i.current) == null ? void 0 : y.offsetHeight) || 0
|
|
12230
|
+
);
|
|
12231
|
+
}).observe(i.current), () => {
|
|
12232
|
+
i.current && new ResizeObserver(() => {
|
|
12233
|
+
}).unobserve(i.current);
|
|
12234
|
+
}), [i]);
|
|
12235
|
+
const f = de(() => {
|
|
12236
|
+
const w = s.find(
|
|
12237
|
+
(x) => x.workflowStatus === ge.COMPLETED
|
|
12227
12238
|
);
|
|
12228
|
-
return
|
|
12239
|
+
return w ? w.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
|
),
|
|
12237
12248
|
...(r == null ? void 0 : r.overlay) && {
|
|
12238
12249
|
style: {
|
|
12239
|
-
width: r.overlay.width || 450,
|
|
12240
|
-
height: r.overlay.height || "calc(100vh - 4rem)",
|
|
12250
|
+
width: ((h = r.overlay.size) == null ? void 0 : h.width) || 450,
|
|
12251
|
+
height: ((d = r.overlay.size) == null ? void 0 : d.height) || "calc(100vh - 4rem)",
|
|
12241
12252
|
maxHeight: "calc(100vh - 4rem)",
|
|
12242
|
-
right: r.overlay.right !== void 0 ? r.overlay.right : r.overlay.position === "right" ? 32 : void 0,
|
|
12243
|
-
left: r.overlay.left !== void 0 ? r.overlay.left : r.overlay.position === "left" ? 32 : void 0
|
|
12253
|
+
right: ((b = r.overlay.offset) == null ? void 0 : b.right) !== void 0 ? r.overlay.offset.right : r.overlay.position === "right" ? 32 : void 0,
|
|
12254
|
+
left: ((m = r.overlay.offset) == null ? void 0 : m.left) !== void 0 ? r.overlay.offset.left : r.overlay.position === "left" ? 32 : void 0
|
|
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: ((g = r == null ? void 0 : r.whiteLabel) == null ? void 0 : g.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((w, x) => {
|
|
12301
|
+
var y;
|
|
12302
|
+
return /* @__PURE__ */ R(
|
|
12293
12303
|
ey,
|
|
12294
12304
|
{
|
|
12295
|
-
task:
|
|
12296
|
-
step:
|
|
12305
|
+
task: w,
|
|
12306
|
+
step: x + 1,
|
|
12297
12307
|
viewMode: t,
|
|
12298
12308
|
playbookId: e.playbookId,
|
|
12299
|
-
canStart:
|
|
12300
|
-
onButtonClick: (
|
|
12309
|
+
canStart: w.sequenceOrder === f,
|
|
12310
|
+
onButtonClick: (C) => n(C, w.taskInstanceId),
|
|
12301
12311
|
playbookType: "Non-Sequential",
|
|
12302
12312
|
taskStyle: {
|
|
12303
|
-
titleColor: (
|
|
12313
|
+
titleColor: (y = r == null ? void 0 : r.whiteLabel) == null ? void 0 : y.primaryColor
|
|
12304
12314
|
},
|
|
12305
|
-
isExpanded:
|
|
12306
|
-
toggleExpanded: () =>
|
|
12307
|
-
listStickyTopBase: 104
|
|
12315
|
+
isExpanded: c(w.taskInstanceId),
|
|
12316
|
+
toggleExpanded: () => u(w.taskInstanceId),
|
|
12317
|
+
listStickyTopBase: a || 104
|
|
12308
12318
|
},
|
|
12309
|
-
|
|
12319
|
+
x
|
|
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,
|