@confidencesystemsinc/sdk 2.0.10 → 2.0.11
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/SelfShadowComponent.d.ts +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +175 -179
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,10 +14,10 @@ var Ea = (e, t, n, r) => ({
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import { jsx as C, jsxs as Y, Fragment as Et } from "react/jsx-runtime";
|
|
17
|
+
import * as rw from "react-dom";
|
|
18
|
+
import { createPortal as An, flushSync as ow } from "react-dom";
|
|
17
19
|
import * as A from "react";
|
|
18
|
-
import He, { createContext as Cn, forwardRef as Xi, useRef as dt, useEffect as Te, useState as pe, useLayoutEffect as sn, useContext as
|
|
19
|
-
import * as sw from "react-dom";
|
|
20
|
-
import { createPortal as an, flushSync as aw } from "react-dom";
|
|
20
|
+
import He, { createContext as Cn, forwardRef as Xi, useRef as dt, useEffect as Te, useState as pe, useLayoutEffect as sn, useContext as vn, useMemo as Je, useCallback as vt, isValidElement as T0, cloneElement as kf, createElement as Tf, Fragment as N0, useId as zc, Children as iw, Suspense as sw, Component as aw } from "react";
|
|
21
21
|
import { renderToString as cw } from "react-dom/server";
|
|
22
22
|
function lw(e) {
|
|
23
23
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -803,7 +803,7 @@ function R0(e) {
|
|
|
803
803
|
}
|
|
804
804
|
function D0(e) {
|
|
805
805
|
var t = e.root, n = e.children;
|
|
806
|
-
return
|
|
806
|
+
return An(n === void 0 ? null : n, t);
|
|
807
807
|
}
|
|
808
808
|
function kw(e) {
|
|
809
809
|
var t = Xi((function(n, r) {
|
|
@@ -1318,10 +1318,10 @@ var wo, x0, U0 = (x0 = class {
|
|
|
1318
1318
|
clearGcTimeout() {
|
|
1319
1319
|
k(this, wo) && (po.clearTimeout(k(this, wo)), ne(this, wo, void 0));
|
|
1320
1320
|
}
|
|
1321
|
-
}, wo = new WeakMap(), x0), Ao, Ri, Jt, Co, it, ta, _o,
|
|
1321
|
+
}, wo = new WeakMap(), x0), Ao, Ri, Jt, Co, it, ta, _o, hn, Jn, w0, Ww = (w0 = class extends U0 {
|
|
1322
1322
|
constructor(t) {
|
|
1323
1323
|
super();
|
|
1324
|
-
ue(this,
|
|
1324
|
+
ue(this, hn);
|
|
1325
1325
|
ue(this, Ao);
|
|
1326
1326
|
ue(this, Ri);
|
|
1327
1327
|
ue(this, Jt);
|
|
@@ -1351,7 +1351,7 @@ var wo, x0, U0 = (x0 = class {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
setData(t, n) {
|
|
1353
1353
|
const r = If(this.state.data, t, this.options);
|
|
1354
|
-
return be(this,
|
|
1354
|
+
return be(this, hn, Jn).call(this, {
|
|
1355
1355
|
data: r,
|
|
1356
1356
|
type: "success",
|
|
1357
1357
|
dataUpdatedAt: n == null ? void 0 : n.updatedAt,
|
|
@@ -1359,7 +1359,7 @@ var wo, x0, U0 = (x0 = class {
|
|
|
1359
1359
|
}), r;
|
|
1360
1360
|
}
|
|
1361
1361
|
setState(t, n) {
|
|
1362
|
-
be(this,
|
|
1362
|
+
be(this, hn, Jn).call(this, { type: "setState", state: t, setStateOptions: n });
|
|
1363
1363
|
}
|
|
1364
1364
|
cancel(t) {
|
|
1365
1365
|
var r, o;
|
|
@@ -1413,7 +1413,7 @@ var wo, x0, U0 = (x0 = class {
|
|
|
1413
1413
|
return this.observers.length;
|
|
1414
1414
|
}
|
|
1415
1415
|
invalidate() {
|
|
1416
|
-
this.state.isInvalidated || be(this,
|
|
1416
|
+
this.state.isInvalidated || be(this, hn, Jn).call(this, { type: "invalidate" });
|
|
1417
1417
|
}
|
|
1418
1418
|
async fetch(t, n) {
|
|
1419
1419
|
var c, l, f, u, d, h, m, g, p, y, v, b;
|
|
@@ -1463,7 +1463,7 @@ var wo, x0, U0 = (x0 = class {
|
|
|
1463
1463
|
};
|
|
1464
1464
|
return o(x), x;
|
|
1465
1465
|
})();
|
|
1466
|
-
(l = this.options.behavior) == null || l.onFetch(a, this), ne(this, Ri, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((f = a.fetchOptions) == null ? void 0 : f.meta)) && be(this,
|
|
1466
|
+
(l = this.options.behavior) == null || l.onFetch(a, this), ne(this, Ri, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((f = a.fetchOptions) == null ? void 0 : f.meta)) && be(this, hn, Jn).call(this, { type: "fetch", meta: (u = a.fetchOptions) == null ? void 0 : u.meta }), ne(this, it, B0({
|
|
1467
1467
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
1468
1468
|
fn: a.fetchFn,
|
|
1469
1469
|
onCancel: (x) => {
|
|
@@ -1473,13 +1473,13 @@ var wo, x0, U0 = (x0 = class {
|
|
|
1473
1473
|
}), r.abort();
|
|
1474
1474
|
},
|
|
1475
1475
|
onFail: (x, w) => {
|
|
1476
|
-
be(this,
|
|
1476
|
+
be(this, hn, Jn).call(this, { type: "failed", failureCount: x, error: w });
|
|
1477
1477
|
},
|
|
1478
1478
|
onPause: () => {
|
|
1479
|
-
be(this,
|
|
1479
|
+
be(this, hn, Jn).call(this, { type: "pause" });
|
|
1480
1480
|
},
|
|
1481
1481
|
onContinue: () => {
|
|
1482
|
-
be(this,
|
|
1482
|
+
be(this, hn, Jn).call(this, { type: "continue" });
|
|
1483
1483
|
},
|
|
1484
1484
|
retry: a.options.retry,
|
|
1485
1485
|
retryDelay: a.options.retryDelay,
|
|
@@ -1508,7 +1508,7 @@ var wo, x0, U0 = (x0 = class {
|
|
|
1508
1508
|
return this.state.data;
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
|
-
throw be(this,
|
|
1511
|
+
throw be(this, hn, Jn).call(this, {
|
|
1512
1512
|
type: "error",
|
|
1513
1513
|
error: x
|
|
1514
1514
|
}), (y = (p = k(this, Jt).config).onError) == null || y.call(
|
|
@@ -1525,7 +1525,7 @@ var wo, x0, U0 = (x0 = class {
|
|
|
1525
1525
|
this.scheduleGc();
|
|
1526
1526
|
}
|
|
1527
1527
|
}
|
|
1528
|
-
}, Ao = new WeakMap(), Ri = new WeakMap(), Jt = new WeakMap(), Co = new WeakMap(), it = new WeakMap(), ta = new WeakMap(), _o = new WeakMap(),
|
|
1528
|
+
}, Ao = new WeakMap(), Ri = new WeakMap(), Jt = new WeakMap(), Co = new WeakMap(), it = new WeakMap(), ta = new WeakMap(), _o = new WeakMap(), hn = new WeakSet(), Jn = function(t) {
|
|
1529
1529
|
const n = (r) => {
|
|
1530
1530
|
switch (t.type) {
|
|
1531
1531
|
case "failed":
|
|
@@ -2242,13 +2242,13 @@ function K0() {
|
|
|
2242
2242
|
submittedAt: 0
|
|
2243
2243
|
};
|
|
2244
2244
|
}
|
|
2245
|
-
var or,
|
|
2245
|
+
var or, mn, ia, _0, Qw = (_0 = class extends es {
|
|
2246
2246
|
constructor(t = {}) {
|
|
2247
2247
|
super();
|
|
2248
2248
|
ue(this, or);
|
|
2249
|
-
ue(this,
|
|
2249
|
+
ue(this, mn);
|
|
2250
2250
|
ue(this, ia);
|
|
2251
|
-
this.config = t, ne(this, or, /* @__PURE__ */ new Set()), ne(this,
|
|
2251
|
+
this.config = t, ne(this, or, /* @__PURE__ */ new Set()), ne(this, mn, /* @__PURE__ */ new Map()), ne(this, ia, 0);
|
|
2252
2252
|
}
|
|
2253
2253
|
build(t, n, r) {
|
|
2254
2254
|
const o = new Yw({
|
|
@@ -2264,8 +2264,8 @@ var or, pn, ia, _0, Qw = (_0 = class extends es {
|
|
|
2264
2264
|
k(this, or).add(t);
|
|
2265
2265
|
const n = Ta(t);
|
|
2266
2266
|
if (typeof n == "string") {
|
|
2267
|
-
const r = k(this,
|
|
2268
|
-
r ? r.push(t) : k(this,
|
|
2267
|
+
const r = k(this, mn).get(n);
|
|
2268
|
+
r ? r.push(t) : k(this, mn).set(n, [t]);
|
|
2269
2269
|
}
|
|
2270
2270
|
this.notify({ type: "added", mutation: t });
|
|
2271
2271
|
}
|
|
@@ -2273,12 +2273,12 @@ var or, pn, ia, _0, Qw = (_0 = class extends es {
|
|
|
2273
2273
|
if (k(this, or).delete(t)) {
|
|
2274
2274
|
const n = Ta(t);
|
|
2275
2275
|
if (typeof n == "string") {
|
|
2276
|
-
const r = k(this,
|
|
2276
|
+
const r = k(this, mn).get(n);
|
|
2277
2277
|
if (r)
|
|
2278
2278
|
if (r.length > 1) {
|
|
2279
2279
|
const o = r.indexOf(t);
|
|
2280
2280
|
o !== -1 && r.splice(o, 1);
|
|
2281
|
-
} else r[0] === t && k(this,
|
|
2281
|
+
} else r[0] === t && k(this, mn).delete(n);
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
2284
|
this.notify({ type: "removed", mutation: t });
|
|
@@ -2286,7 +2286,7 @@ var or, pn, ia, _0, Qw = (_0 = class extends es {
|
|
|
2286
2286
|
canRun(t) {
|
|
2287
2287
|
const n = Ta(t);
|
|
2288
2288
|
if (typeof n == "string") {
|
|
2289
|
-
const r = k(this,
|
|
2289
|
+
const r = k(this, mn).get(n), o = r == null ? void 0 : r.find(
|
|
2290
2290
|
(i) => i.state.status === "pending"
|
|
2291
2291
|
);
|
|
2292
2292
|
return !o || o === t;
|
|
@@ -2297,7 +2297,7 @@ var or, pn, ia, _0, Qw = (_0 = class extends es {
|
|
|
2297
2297
|
var r;
|
|
2298
2298
|
const n = Ta(t);
|
|
2299
2299
|
if (typeof n == "string") {
|
|
2300
|
-
const o = (r = k(this,
|
|
2300
|
+
const o = (r = k(this, mn).get(n)) == null ? void 0 : r.find((i) => i !== t && i.state.isPaused);
|
|
2301
2301
|
return (o == null ? void 0 : o.continue()) ?? Promise.resolve();
|
|
2302
2302
|
} else
|
|
2303
2303
|
return Promise.resolve();
|
|
@@ -2306,7 +2306,7 @@ var or, pn, ia, _0, Qw = (_0 = class extends es {
|
|
|
2306
2306
|
tt.batch(() => {
|
|
2307
2307
|
k(this, or).forEach((t) => {
|
|
2308
2308
|
this.notify({ type: "removed", mutation: t });
|
|
2309
|
-
}), k(this, or).clear(), k(this,
|
|
2309
|
+
}), k(this, or).clear(), k(this, mn).clear();
|
|
2310
2310
|
});
|
|
2311
2311
|
}
|
|
2312
2312
|
getAll() {
|
|
@@ -2336,7 +2336,7 @@ var or, pn, ia, _0, Qw = (_0 = class extends es {
|
|
|
2336
2336
|
)
|
|
2337
2337
|
);
|
|
2338
2338
|
}
|
|
2339
|
-
}, or = new WeakMap(),
|
|
2339
|
+
}, or = new WeakMap(), mn = new WeakMap(), ia = new WeakMap(), _0);
|
|
2340
2340
|
function Ta(e) {
|
|
2341
2341
|
var t;
|
|
2342
2342
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
@@ -2882,7 +2882,7 @@ const yd = Cn({
|
|
|
2882
2882
|
});
|
|
2883
2883
|
yd.Provider;
|
|
2884
2884
|
const pr = () => {
|
|
2885
|
-
const e =
|
|
2885
|
+
const e = vn(yd);
|
|
2886
2886
|
if (!e)
|
|
2887
2887
|
throw new Error(
|
|
2888
2888
|
"useConfidenceContext must be used within a ConfidenceContext"
|
|
@@ -2895,7 +2895,7 @@ const pr = () => {
|
|
|
2895
2895
|
return /* @__PURE__ */ C(yd.Provider, { value: { queryClient: t }, children: /* @__PURE__ */ C(Jw, { client: t, children: e }) });
|
|
2896
2896
|
}, Q0 = Cn({
|
|
2897
2897
|
isEmbedded: !1
|
|
2898
|
-
}), G0 = Q0.Provider, $c = () =>
|
|
2898
|
+
}), G0 = Q0.Provider, $c = () => vn(Q0), Ke = {
|
|
2899
2899
|
OPEN: "Open",
|
|
2900
2900
|
IN_PROGRESS: "In progress",
|
|
2901
2901
|
IN_REVIEW: "In review",
|
|
@@ -6503,7 +6503,7 @@ function Wc(e) {
|
|
|
6503
6503
|
}
|
|
6504
6504
|
let Ny = Cn(void 0);
|
|
6505
6505
|
function Kc() {
|
|
6506
|
-
return
|
|
6506
|
+
return vn(Ny);
|
|
6507
6507
|
}
|
|
6508
6508
|
function jA({ value: e, children: t }) {
|
|
6509
6509
|
return He.createElement(Ny.Provider, { value: e }, t);
|
|
@@ -6646,7 +6646,7 @@ function tC(e) {
|
|
|
6646
6646
|
}
|
|
6647
6647
|
let My = Cn(void 0);
|
|
6648
6648
|
function Ly() {
|
|
6649
|
-
return
|
|
6649
|
+
return vn(My);
|
|
6650
6650
|
}
|
|
6651
6651
|
function nC({ id: e, children: t }) {
|
|
6652
6652
|
return He.createElement(My.Provider, { value: e }, t);
|
|
@@ -6683,7 +6683,7 @@ function Fy(...e) {
|
|
|
6683
6683
|
let Hc = Cn(null);
|
|
6684
6684
|
Hc.displayName = "DescriptionContext";
|
|
6685
6685
|
function zy() {
|
|
6686
|
-
let e =
|
|
6686
|
+
let e = vn(Hc);
|
|
6687
6687
|
if (e === null) {
|
|
6688
6688
|
let t = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
6689
6689
|
throw Error.captureStackTrace && Error.captureStackTrace(t, zy), t;
|
|
@@ -6692,7 +6692,7 @@ function zy() {
|
|
|
6692
6692
|
}
|
|
6693
6693
|
function aC() {
|
|
6694
6694
|
var e, t;
|
|
6695
|
-
return (t = (e =
|
|
6695
|
+
return (t = (e = vn(Hc)) == null ? void 0 : e.value) != null ? t : void 0;
|
|
6696
6696
|
}
|
|
6697
6697
|
function cC() {
|
|
6698
6698
|
let [e, t] = pe([]);
|
|
@@ -6714,7 +6714,7 @@ function fC(e, t) {
|
|
|
6714
6714
|
let uC = la(fC), dC = Object.assign(uC, {}), qc = Cn(null);
|
|
6715
6715
|
qc.displayName = "LabelContext";
|
|
6716
6716
|
function $y() {
|
|
6717
|
-
let e =
|
|
6717
|
+
let e = vn(qc);
|
|
6718
6718
|
if (e === null) {
|
|
6719
6719
|
let t = new Error("You used a <Label /> component, but it is not inside a relevant parent.");
|
|
6720
6720
|
throw Error.captureStackTrace && Error.captureStackTrace(t, $y), t;
|
|
@@ -6723,7 +6723,7 @@ function $y() {
|
|
|
6723
6723
|
}
|
|
6724
6724
|
function By(e) {
|
|
6725
6725
|
var t, n, r;
|
|
6726
|
-
let o = (n = (t =
|
|
6726
|
+
let o = (n = (t = vn(qc)) == null ? void 0 : t.value) != null ? n : void 0;
|
|
6727
6727
|
return ((r = void 0) != null ? r : 0) > 0 ? [o, ...e].filter(Boolean).join(" ") : o;
|
|
6728
6728
|
}
|
|
6729
6729
|
function hC({ inherit: e = !1 } = {}) {
|
|
@@ -6777,7 +6777,7 @@ function Uy(e) {
|
|
|
6777
6777
|
function Ye(e) {
|
|
6778
6778
|
return Vc() ? e instanceof Element || e instanceof Yt(e).Element : !1;
|
|
6779
6779
|
}
|
|
6780
|
-
function
|
|
6780
|
+
function bn(e) {
|
|
6781
6781
|
return Vc() ? e instanceof HTMLElement || e instanceof Yt(e).HTMLElement : !1;
|
|
6782
6782
|
}
|
|
6783
6783
|
function Zf(e) {
|
|
@@ -6814,7 +6814,7 @@ function _d(e) {
|
|
|
6814
6814
|
}
|
|
6815
6815
|
function EC(e) {
|
|
6816
6816
|
let t = ur(e);
|
|
6817
|
-
for (;
|
|
6817
|
+
for (; bn(t) && !lr(t); ) {
|
|
6818
6818
|
if (_d(t))
|
|
6819
6819
|
return t;
|
|
6820
6820
|
if (Yc(t))
|
|
@@ -6856,7 +6856,7 @@ function ur(e) {
|
|
|
6856
6856
|
}
|
|
6857
6857
|
function jy(e) {
|
|
6858
6858
|
const t = ur(e);
|
|
6859
|
-
return lr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
6859
|
+
return lr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : bn(t) && fa(t) ? t : jy(t);
|
|
6860
6860
|
}
|
|
6861
6861
|
function _i(e, t, n) {
|
|
6862
6862
|
var r;
|
|
@@ -7024,7 +7024,7 @@ const IC = async (e, t, n) => {
|
|
|
7024
7024
|
function qy(e) {
|
|
7025
7025
|
const t = nn(e);
|
|
7026
7026
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
7027
|
-
const o =
|
|
7027
|
+
const o = bn(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a = pc(n) !== i || pc(r) !== s;
|
|
7028
7028
|
return a && (n = i, r = s), {
|
|
7029
7029
|
width: n,
|
|
7030
7030
|
height: r,
|
|
@@ -7036,7 +7036,7 @@ function Vy(e) {
|
|
|
7036
7036
|
}
|
|
7037
7037
|
function Ei(e) {
|
|
7038
7038
|
const t = Vy(e);
|
|
7039
|
-
if (!
|
|
7039
|
+
if (!bn(t))
|
|
7040
7040
|
return Fn(1);
|
|
7041
7041
|
const n = t.getBoundingClientRect(), {
|
|
7042
7042
|
width: r,
|
|
@@ -7107,8 +7107,8 @@ function RC(e) {
|
|
|
7107
7107
|
scrollLeft: 0,
|
|
7108
7108
|
scrollTop: 0
|
|
7109
7109
|
}, l = Fn(1);
|
|
7110
|
-
const f = Fn(0), u =
|
|
7111
|
-
if ((u || !u && !i) && ((rs(r) !== "body" || fa(s)) && (c = Gc(r)),
|
|
7110
|
+
const f = Fn(0), u = bn(r);
|
|
7111
|
+
if ((u || !u && !i) && ((rs(r) !== "body" || fa(s)) && (c = Gc(r)), bn(r))) {
|
|
7112
7112
|
const h = Ws(r);
|
|
7113
7113
|
l = Ei(r), f.x = h.x + r.clientLeft, f.y = h.y + r.clientTop;
|
|
7114
7114
|
}
|
|
@@ -7157,7 +7157,7 @@ function zC(e, t) {
|
|
|
7157
7157
|
}
|
|
7158
7158
|
const $C = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
7159
7159
|
function BC(e, t) {
|
|
7160
|
-
const n = Ws(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i =
|
|
7160
|
+
const n = Ws(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = bn(e) ? Ei(e) : Fn(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, c = o * i.x, l = r * i.y;
|
|
7161
7161
|
return {
|
|
7162
7162
|
width: s,
|
|
7163
7163
|
height: a,
|
|
@@ -7230,7 +7230,7 @@ function WC(e) {
|
|
|
7230
7230
|
};
|
|
7231
7231
|
}
|
|
7232
7232
|
function KC(e, t, n) {
|
|
7233
|
-
const r =
|
|
7233
|
+
const r = bn(t), o = yr(t), i = n === "fixed", s = Ws(e, !0, i, t);
|
|
7234
7234
|
let a = {
|
|
7235
7235
|
scrollLeft: 0,
|
|
7236
7236
|
scrollTop: 0
|
|
@@ -7257,7 +7257,7 @@ function $l(e) {
|
|
|
7257
7257
|
return nn(e).position === "static";
|
|
7258
7258
|
}
|
|
7259
7259
|
function Nm(e, t) {
|
|
7260
|
-
if (!
|
|
7260
|
+
if (!bn(e) || nn(e).position === "fixed")
|
|
7261
7261
|
return null;
|
|
7262
7262
|
if (t)
|
|
7263
7263
|
return t(e);
|
|
@@ -7268,7 +7268,7 @@ function Zy(e, t) {
|
|
|
7268
7268
|
const n = Yt(e);
|
|
7269
7269
|
if (Yc(e))
|
|
7270
7270
|
return n;
|
|
7271
|
-
if (!
|
|
7271
|
+
if (!bn(e)) {
|
|
7272
7272
|
let o = ur(e);
|
|
7273
7273
|
for (; o && !lr(o); ) {
|
|
7274
7274
|
if (Ye(o) && !$l(o))
|
|
@@ -7410,7 +7410,7 @@ function ZC(e) {
|
|
|
7410
7410
|
// setting it to `true` when `open === false` (must be specified).
|
|
7411
7411
|
isPositioned: j.current !== !1
|
|
7412
7412
|
};
|
|
7413
|
-
z.current && !gc(E.current, M) && (E.current = M,
|
|
7413
|
+
z.current && !gc(E.current, M) && (E.current = M, rw.flushSync(() => {
|
|
7414
7414
|
u(M);
|
|
7415
7415
|
}));
|
|
7416
7416
|
});
|
|
@@ -7621,7 +7621,7 @@ const Xy = ({
|
|
|
7621
7621
|
confirmOptions: o,
|
|
7622
7622
|
children: i,
|
|
7623
7623
|
className: s
|
|
7624
|
-
}) => /* @__PURE__ */ C(Et, { children: e &&
|
|
7624
|
+
}) => /* @__PURE__ */ C(Et, { children: e && An(
|
|
7625
7625
|
/* @__PURE__ */ Y(
|
|
7626
7626
|
Gr.div,
|
|
7627
7627
|
{
|
|
@@ -11141,7 +11141,7 @@ function Qv(e, t) {
|
|
|
11141
11141
|
// element was injected after the floating element rendered.
|
|
11142
11142
|
Array.from(M).every((q) => !lp(D, q)))
|
|
11143
11143
|
return;
|
|
11144
|
-
if (
|
|
11144
|
+
if (bn(P) && F) {
|
|
11145
11145
|
const q = lr(P), ee = nn(P), te = /auto|scroll/, me = q || te.test(ee.overflowX), ve = q || te.test(ee.overflowY), ge = me && P.clientWidth > 0 && P.scrollWidth > P.clientWidth, Ue = ve && P.clientHeight > 0 && P.scrollHeight > P.clientHeight, G = ee.direction === "rtl", Qe = Ue && (G ? z.offsetX <= P.offsetWidth - P.clientWidth : z.offsetX > P.clientWidth), qt = ge && z.offsetY > P.clientHeight;
|
|
11146
11146
|
if (Qe || qt)
|
|
11147
11147
|
return;
|
|
@@ -11799,7 +11799,7 @@ Cu || (Cu = function(t) {
|
|
|
11799
11799
|
r[o - 1] = arguments[o];
|
|
11800
11800
|
return new t(...r);
|
|
11801
11801
|
});
|
|
11802
|
-
const Da = Ft(Array.prototype.forEach), mk = Ft(Array.prototype.lastIndexOf), bp = Ft(Array.prototype.pop), xs = Ft(Array.prototype.push), pk = Ft(Array.prototype.splice), ec = Ft(String.prototype.toLowerCase), Ql = Ft(String.prototype.toString), Gl = Ft(String.prototype.match), ws = Ft(String.prototype.replace), gk = Ft(String.prototype.indexOf), yk = Ft(String.prototype.trim),
|
|
11802
|
+
const Da = Ft(Array.prototype.forEach), mk = Ft(Array.prototype.lastIndexOf), bp = Ft(Array.prototype.pop), xs = Ft(Array.prototype.push), pk = Ft(Array.prototype.splice), ec = Ft(String.prototype.toLowerCase), Ql = Ft(String.prototype.toString), Gl = Ft(String.prototype.match), ws = Ft(String.prototype.replace), gk = Ft(String.prototype.indexOf), yk = Ft(String.prototype.trim), un = Ft(Object.prototype.hasOwnProperty), Ot = Ft(RegExp.prototype.test), As = vk(TypeError);
|
|
11803
11803
|
function Ft(e) {
|
|
11804
11804
|
return function(t) {
|
|
11805
11805
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -11831,13 +11831,13 @@ function Ee(e, t) {
|
|
|
11831
11831
|
}
|
|
11832
11832
|
function bk(e) {
|
|
11833
11833
|
for (let t = 0; t < e.length; t++)
|
|
11834
|
-
|
|
11834
|
+
un(e, t) || (e[t] = null);
|
|
11835
11835
|
return e;
|
|
11836
11836
|
}
|
|
11837
11837
|
function Sn(e) {
|
|
11838
11838
|
const t = wu(null);
|
|
11839
11839
|
for (const [n, r] of eb(e))
|
|
11840
|
-
|
|
11840
|
+
un(e, n) && (Array.isArray(r) ? t[n] = bk(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Sn(r) : t[n] = r);
|
|
11841
11841
|
return t;
|
|
11842
11842
|
}
|
|
11843
11843
|
function Cs(e, t) {
|
|
@@ -12022,7 +12022,7 @@ function rb() {
|
|
|
12022
12022
|
let N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
12023
12023
|
if (!(ci && ci === N)) {
|
|
12024
12024
|
if ((!N || typeof N != "object") && (N = {}), N = Sn(N), ys = // eslint-disable-next-line unicorn/prefer-includes
|
|
12025
|
-
Gx.indexOf(N.PARSER_MEDIA_TYPE) === -1 ? Zx : N.PARSER_MEDIA_TYPE, Xe = ys === "application/xhtml+xml" ? Ql : ec, D =
|
|
12025
|
+
Gx.indexOf(N.PARSER_MEDIA_TYPE) === -1 ? Zx : N.PARSER_MEDIA_TYPE, Xe = ys === "application/xhtml+xml" ? Ql : ec, D = un(N, "ALLOWED_TAGS") ? Ee({}, N.ALLOWED_TAGS, Xe) : W, U = un(N, "ALLOWED_ATTR") ? Ee({}, N.ALLOWED_ATTR, Xe) : J, Cl = un(N, "ALLOWED_NAMESPACES") ? Ee({}, N.ALLOWED_NAMESPACES, Ql) : Yx, oo = un(N, "ADD_URI_SAFE_ATTR") ? Ee(Sn(Cr), N.ADD_URI_SAFE_ATTR, Xe) : Cr, si = un(N, "ADD_DATA_URI_TAGS") ? Ee(Sn(Vt), N.ADD_DATA_URI_TAGS, Xe) : Vt, Nt = un(N, "FORBID_CONTENTS") ? Ee({}, N.FORBID_CONTENTS, Xe) : Ar, ee = un(N, "FORBID_TAGS") ? Ee({}, N.FORBID_TAGS, Xe) : Sn({}), te = un(N, "FORBID_ATTR") ? Ee({}, N.FORBID_ATTR, Xe) : Sn({}), Zt = un(N, "USE_PROFILES") ? N.USE_PROFILES : !1, ve = N.ALLOW_ARIA_ATTR !== !1, ge = N.ALLOW_DATA_ATTR !== !1, Ue = N.ALLOW_UNKNOWN_PROTOCOLS || !1, G = N.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Qe = N.SAFE_FOR_TEMPLATES || !1, qt = N.SAFE_FOR_XML !== !1, wt = N.WHOLE_DOCUMENT || !1, Hn = N.RETURN_DOM || !1, ro = N.RETURN_DOM_FRAGMENT || !1, ii = N.RETURN_TRUSTED_TYPE || !1, gs = N.FORCE_BODY || !1, se = N.SANITIZE_DOM !== !1, ze = N.SANITIZE_NAMED_PROPS || !1, $t = N.KEEP_CONTENT !== !1, ot = N.IN_PLACE || !1, M = N.ALLOWED_URI_REGEXP || tb, ai = N.NAMESPACE || qn, Ca = N.MATHML_TEXT_INTEGRATION_POINTS || Ca, _a = N.HTML_INTEGRATION_POINTS || _a, q = N.CUSTOM_ELEMENT_HANDLING || {}, N.CUSTOM_ELEMENT_HANDLING && Mh(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (q.tagNameCheck = N.CUSTOM_ELEMENT_HANDLING.tagNameCheck), N.CUSTOM_ELEMENT_HANDLING && Mh(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (q.attributeNameCheck = N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), N.CUSTOM_ELEMENT_HANDLING && typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (q.allowCustomizedBuiltInElements = N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Qe && (ge = !1), ro && (Hn = !0), Zt && (D = Ee({}, wp), U = [], Zt.html === !0 && (Ee(D, xp), Ee(U, Ap)), Zt.svg === !0 && (Ee(D, Zl), Ee(U, ef), Ee(U, Fa)), Zt.svgFilters === !0 && (Ee(D, Jl), Ee(U, ef), Ee(U, Fa)), Zt.mathMl === !0 && (Ee(D, Xl), Ee(U, Cp), Ee(U, Fa))), N.ADD_TAGS && (typeof N.ADD_TAGS == "function" ? me.tagCheck = N.ADD_TAGS : (D === W && (D = Sn(D)), Ee(D, N.ADD_TAGS, Xe))), N.ADD_ATTR && (typeof N.ADD_ATTR == "function" ? me.attributeCheck = N.ADD_ATTR : (U === J && (U = Sn(U)), Ee(U, N.ADD_ATTR, Xe))), N.ADD_URI_SAFE_ATTR && Ee(oo, N.ADD_URI_SAFE_ATTR, Xe), N.FORBID_CONTENTS && (Nt === Ar && (Nt = Sn(Nt)), Ee(Nt, N.FORBID_CONTENTS, Xe)), N.ADD_FORBID_CONTENTS && (Nt === Ar && (Nt = Sn(Nt)), Ee(Nt, N.ADD_FORBID_CONTENTS, Xe)), $t && (D["#text"] = !0), wt && Ee(D, ["html", "head", "body"]), D.table && (Ee(D, ["tbody"]), delete ee.tbody), N.TRUSTED_TYPES_POLICY) {
|
|
12026
12026
|
if (typeof N.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
12027
12027
|
throw As('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
12028
12028
|
if (typeof N.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -13038,7 +13038,7 @@ function p3({ children: e }) {
|
|
|
13038
13038
|
}, [t]);
|
|
13039
13039
|
return A.createElement(_b.Provider, { value: n }, e);
|
|
13040
13040
|
}
|
|
13041
|
-
const Eb = A.createContext(null),
|
|
13041
|
+
const Eb = A.createContext(null), an = br("useLightboxProps", "LightboxPropsContext", Eb);
|
|
13042
13042
|
function g3({ children: e, ...t }) {
|
|
13043
13043
|
return A.createElement(Eb.Provider, { value: t }, e);
|
|
13044
13044
|
}
|
|
@@ -13103,7 +13103,7 @@ function x3({ children: e }) {
|
|
|
13103
13103
|
return A.createElement(Tb.Provider, { value: n }, e);
|
|
13104
13104
|
}
|
|
13105
13105
|
const Yd = A.forwardRef(function({ label: t, className: n, icon: r, renderIcon: o, onClick: i, style: s, ...a }, c) {
|
|
13106
|
-
const { styles: l, labels: f } =
|
|
13106
|
+
const { styles: l, labels: f } = an(), u = qi(f, t);
|
|
13107
13107
|
return A.createElement("button", { ref: c, type: "button", title: u, "aria-label": u, className: zn(ke(n3), n), onClick: i, style: { ...s, ...l.button }, ...a }, o ? o() : A.createElement(r, { className: ke(Su), style: l.icon }));
|
|
13108
13108
|
});
|
|
13109
13109
|
function w3(e, t) {
|
|
@@ -13314,14 +13314,14 @@ function Ob(e, t, n, r, o) {
|
|
|
13314
13314
|
A.useEffect(() => o ? () => {
|
|
13315
13315
|
} : Wd(e(fb, t), e(ub, n), e(db, r), e(hb, r), e(mb, r)), [e, t, n, r, o]);
|
|
13316
13316
|
}
|
|
13317
|
-
var
|
|
13317
|
+
var dn;
|
|
13318
13318
|
(function(e) {
|
|
13319
13319
|
e[e.NONE = 0] = "NONE", e[e.SWIPE = 1] = "SWIPE", e[e.PULL = 2] = "PULL";
|
|
13320
|
-
})(
|
|
13320
|
+
})(dn || (dn = {}));
|
|
13321
13321
|
const cf = 30;
|
|
13322
13322
|
function P3({ disableSwipeNavigation: e, closeOnBackdropClick: t }, n, r, o, i, s, a, c, l, f, u, d, h, m, g, p) {
|
|
13323
|
-
const y = A.useRef(0), v = A.useRef([]), b = A.useRef(void 0), x = A.useRef(0), w = A.useRef(
|
|
13324
|
-
b.current === F.pointerId && (b.current = void 0, w.current =
|
|
13323
|
+
const y = A.useRef(0), v = A.useRef([]), b = A.useRef(void 0), x = A.useRef(0), w = A.useRef(dn.NONE), _ = A.useCallback((F) => {
|
|
13324
|
+
b.current === F.pointerId && (b.current = void 0, w.current = dn.NONE);
|
|
13325
13325
|
const z = v.current;
|
|
13326
13326
|
z.splice(0, z.length, ...z.filter((V) => V.pointerId !== F.pointerId));
|
|
13327
13327
|
}, []), S = A.useCallback((F) => {
|
|
@@ -13333,7 +13333,7 @@ function P3({ disableSwipeNavigation: e, closeOnBackdropClick: t }, n, r, o, i,
|
|
|
13333
13333
|
if (z)
|
|
13334
13334
|
if (b.current === F.pointerId) {
|
|
13335
13335
|
const V = Date.now() - x.current, Q = y.current;
|
|
13336
|
-
w.current ===
|
|
13336
|
+
w.current === dn.SWIPE ? Math.abs(Q) > 0.3 * o || Math.abs(Q) > 5 && V < i ? c(Q, V) : l(Q) : w.current === dn.PULL && (O(Q, 2 * cf) ? m(Q, V) : g(Q)), y.current = 0, w.current = dn.NONE;
|
|
13337
13337
|
} else {
|
|
13338
13338
|
const { target: V } = F;
|
|
13339
13339
|
t && V instanceof HTMLElement && V === z.target && (V.classList.contains(ke($d)) || V.classList.contains(ke(lb))) && p();
|
|
@@ -13352,8 +13352,8 @@ function P3({ disableSwipeNavigation: e, closeOnBackdropClick: t }, n, r, o, i,
|
|
|
13352
13352
|
const P = (re) => {
|
|
13353
13353
|
S(F), b.current = F.pointerId, x.current = Date.now(), w.current = re;
|
|
13354
13354
|
};
|
|
13355
|
-
Math.abs(Q) > Math.abs(oe) && Math.abs(Q) > cf && r(Q) ? e || (P(
|
|
13356
|
-
} else V && (w.current ===
|
|
13355
|
+
Math.abs(Q) > Math.abs(oe) && Math.abs(Q) > cf && r(Q) ? e || (P(dn.SWIPE), s()) : Math.abs(oe) > Math.abs(Q) && O(oe, cf) && (P(dn.PULL), d());
|
|
13356
|
+
} else V && (w.current === dn.SWIPE ? (y.current = Q, a(Q)) : w.current === dn.PULL && (y.current = oe, h(oe)));
|
|
13357
13357
|
}
|
|
13358
13358
|
});
|
|
13359
13359
|
Ob(n, T, j, I);
|
|
@@ -13578,7 +13578,7 @@ function Lp(e) {
|
|
|
13578
13578
|
return ha($d, e);
|
|
13579
13579
|
}
|
|
13580
13580
|
function D3({ slide: e, offset: t }) {
|
|
13581
|
-
const n = A.useRef(null), { currentIndex: r, slides: o } = Xr(), { slideRect: i, focus: s } = xr(), { render: a, carousel: { imageFit: c, imageProps: l }, on: { click: f }, styles: { slide: u }, labels: d } =
|
|
13581
|
+
const n = A.useRef(null), { currentIndex: r, slides: o } = Xr(), { slideRect: i, focus: s } = xr(), { render: a, carousel: { imageFit: c, imageProps: l }, on: { click: f }, styles: { slide: u }, labels: d } = an(), { getOwnerDocument: h } = il(), m = t !== 0;
|
|
13582
13582
|
A.useEffect(() => {
|
|
13583
13583
|
var p;
|
|
13584
13584
|
m && (!((p = n.current) === null || p === void 0) && p.contains(h().activeElement)) && s();
|
|
@@ -13597,7 +13597,7 @@ function D3({ slide: e, offset: t }) {
|
|
|
13597
13597
|
return A.createElement("div", { ref: n, className: zn(ke(Lp()), !m && ke(Lp("current")), ke(zd)), ...f3(m), style: u, role: "group", "aria-roledescription": qi(d, "Slide"), "aria-label": r3(d, o, r + t) }, g());
|
|
13598
13598
|
}
|
|
13599
13599
|
function F3() {
|
|
13600
|
-
const e =
|
|
13600
|
+
const e = an().styles.slide;
|
|
13601
13601
|
return A.createElement("div", { className: ke($d), style: e });
|
|
13602
13602
|
}
|
|
13603
13603
|
function z3({ carousel: e, labels: t }) {
|
|
@@ -13621,12 +13621,12 @@ function z3({ carousel: e, labels: t }) {
|
|
|
13621
13621
|
}
|
|
13622
13622
|
const $3 = Jr(ib, z3);
|
|
13623
13623
|
function Ib() {
|
|
13624
|
-
const { carousel: e } =
|
|
13624
|
+
const { carousel: e } = an(), { slides: t, currentIndex: n } = Xr(), r = t.length === 0 || e.finite && n === 0, o = t.length === 0 || e.finite && n === t.length - 1;
|
|
13625
13625
|
return { prevDisabled: r, nextDisabled: o };
|
|
13626
13626
|
}
|
|
13627
13627
|
function B3(e) {
|
|
13628
13628
|
var t;
|
|
13629
|
-
const n = Gd(), { publish: r } = sl(), { animation: o } =
|
|
13629
|
+
const n = Gd(), { publish: r } = sl(), { animation: o } = an(), { prevDisabled: i, nextDisabled: s } = Ib(), a = ((t = o.navigation) !== null && t !== void 0 ? t : o.swipe) / 2, c = Ip(() => r(uo), a), l = Ip(() => r(ho), a), f = De((u) => {
|
|
13630
13630
|
switch (u.key) {
|
|
13631
13631
|
case Xk:
|
|
13632
13632
|
r(Hi);
|
|
@@ -13726,7 +13726,7 @@ function V3({ children: e, animation: t, styles: n, className: r, on: o, portal:
|
|
|
13726
13726
|
}), w = A.useCallback((_) => {
|
|
13727
13727
|
_ ? x(_) : v();
|
|
13728
13728
|
}, [x, v]);
|
|
13729
|
-
return c ?
|
|
13729
|
+
return c ? An(A.createElement(O3, { ref: w, className: zn(r, ke(zp()), ke(cb), f && ke(zp("open"))), "aria-modal": !0, role: "dialog", "aria-label": qi(a, "Lightbox"), style: {
|
|
13730
13730
|
...t.fade !== Tu.animation.fade ? { [Wt("fade_animation_duration")]: `${y}ms` } : null,
|
|
13731
13731
|
...t.easing.fade !== Tu.animation.easing.fade ? { [Wt("fade_animation_timing_function")]: t.easing.fade } : null,
|
|
13732
13732
|
...n.root
|
|
@@ -13824,7 +13824,7 @@ function Lb(e) {
|
|
|
13824
13824
|
return { minZoom: rT(t), ...n };
|
|
13825
13825
|
}
|
|
13826
13826
|
function oT(e, t, n, r) {
|
|
13827
|
-
const o = A.useRef(void 0), i = A.useRef(void 0), { zoom: s } =
|
|
13827
|
+
const o = A.useRef(void 0), i = A.useRef(void 0), { zoom: s } = an().animation, a = Qd(), c = De(() => {
|
|
13828
13828
|
var l, f, u;
|
|
13829
13829
|
if ((l = o.current) === null || l === void 0 || l.cancel(), o.current = void 0, i.current && (r != null && r.current)) {
|
|
13830
13830
|
try {
|
|
@@ -13848,20 +13848,20 @@ function oT(e, t, n, r) {
|
|
|
13848
13848
|
}, [r]);
|
|
13849
13849
|
}
|
|
13850
13850
|
function iT(e, t) {
|
|
13851
|
-
const { on: n } =
|
|
13851
|
+
const { on: n } = an(), r = De(() => {
|
|
13852
13852
|
var o;
|
|
13853
13853
|
t || (o = n.zoom) === null || o === void 0 || o.call(n, { zoom: e });
|
|
13854
13854
|
});
|
|
13855
13855
|
A.useEffect(r, [e, r]);
|
|
13856
13856
|
}
|
|
13857
13857
|
function cl() {
|
|
13858
|
-
const { zoom: e } =
|
|
13858
|
+
const { zoom: e } = an();
|
|
13859
13859
|
return Lb(e);
|
|
13860
13860
|
}
|
|
13861
13861
|
function sT(e, t) {
|
|
13862
13862
|
var n, r;
|
|
13863
13863
|
let o = { width: 0, height: 0 }, i = { width: 0, height: 0 };
|
|
13864
|
-
const { currentSlide: s } = Xr(), { imageFit: a } =
|
|
13864
|
+
const { currentSlide: s } = Xr(), { imageFit: a } = an().carousel, { maxZoomPixelRatio: c } = cl();
|
|
13865
13865
|
if (e && s) {
|
|
13866
13866
|
const f = { ...s, ...t };
|
|
13867
13867
|
if (is(f)) {
|
|
@@ -13998,7 +13998,7 @@ const fT = Xo("ZoomIn", A.createElement(
|
|
|
13998
13998
|
A.createElement("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" }),
|
|
13999
13999
|
A.createElement("path", { d: "M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z" })
|
|
14000
14000
|
)), uT = Xo("ZoomOut", A.createElement("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z" })), jp = A.forwardRef(function({ zoomIn: t, onLoseFocus: n }, r) {
|
|
14001
|
-
const o = A.useRef(!1), i = A.useRef(!1), { zoom: s, minZoom: a, maxZoom: c, zoomIn: l, zoomOut: f, disabled: u } = Zd(), { render: d } =
|
|
14001
|
+
const o = A.useRef(!1), i = A.useRef(!1), { zoom: s, minZoom: a, maxZoom: c, zoomIn: l, zoomOut: f, disabled: u } = Zd(), { render: d } = an(), h = u || (t ? s >= c : s <= a);
|
|
14002
14002
|
return A.useEffect(() => {
|
|
14003
14003
|
h && o.current && i.current && n(), h || (o.current = !0);
|
|
14004
14004
|
}, [h, n]), A.createElement(Yd, { ref: r, disabled: h, label: t ? "Zoom in" : "Zoom out", icon: t ? fT : uT, renderIcon: t ? d.iconZoomIn : d.iconZoomOut, onClick: t ? l : f, onFocus: () => {
|
|
@@ -14020,7 +14020,7 @@ function dT() {
|
|
|
14020
14020
|
);
|
|
14021
14021
|
}
|
|
14022
14022
|
function hT() {
|
|
14023
|
-
const { render: e } =
|
|
14023
|
+
const { render: e } = an(), t = Zd();
|
|
14024
14024
|
return e.buttonZoom ? A.createElement(A.Fragment, null, e.buttonZoom(t)) : A.createElement(dT, null);
|
|
14025
14025
|
}
|
|
14026
14026
|
function mT(e) {
|
|
@@ -14061,7 +14061,7 @@ function gT(e) {
|
|
|
14061
14061
|
}
|
|
14062
14062
|
function yT({ render: e, slide: t, offset: n, rect: r }) {
|
|
14063
14063
|
var o;
|
|
14064
|
-
const [i, s] = A.useState(), a = A.useRef(null), { zoom: c, maxZoom: l, offsetX: f, offsetY: u, setZoomWrapper: d } = Zd(), h = c > 1, { carousel: m, on: g } =
|
|
14064
|
+
const [i, s] = A.useState(), a = A.useRef(null), { zoom: c, maxZoom: l, offsetX: f, offsetY: u, setZoomWrapper: d } = Zd(), h = c > 1, { carousel: m, on: g } = an(), { currentIndex: p } = Xr();
|
|
14065
14065
|
Un(() => n === 0 ? (d({ zoomWrapperRef: a, imageDimensions: i }), () => d(void 0)) : () => {
|
|
14066
14066
|
}, [n, i, d]);
|
|
14067
14067
|
let y = (o = e.slide) === null || o === void 0 ? void 0 : o.call(e, { slide: t, offset: n, rect: r, zoom: c, maxZoom: l });
|
|
@@ -14128,7 +14128,7 @@ const vT = ({ augment: e, addModule: t }) => {
|
|
|
14128
14128
|
onOpenChange: s
|
|
14129
14129
|
}), f = Qv(l, {
|
|
14130
14130
|
outsidePress: !0
|
|
14131
|
-
}), { getReferenceProps: u, getFloatingProps: d } = Zv([f]), h =
|
|
14131
|
+
}), { getReferenceProps: u, getFloatingProps: d } = Zv([f]), h = iw.map(t, (m) => {
|
|
14132
14132
|
if (!T0(m)) return m;
|
|
14133
14133
|
const g = m.props;
|
|
14134
14134
|
return kf(m, {
|
|
@@ -14223,7 +14223,7 @@ function AT(e, t) {
|
|
|
14223
14223
|
} };
|
|
14224
14224
|
}
|
|
14225
14225
|
function bt() {
|
|
14226
|
-
const e =
|
|
14226
|
+
const e = vn(Fb);
|
|
14227
14227
|
return e == null && (function(t, ...n) {
|
|
14228
14228
|
const r = new URL("https://lexical.dev/docs/error"), o = new URLSearchParams();
|
|
14229
14229
|
o.append("code", t);
|
|
@@ -14243,7 +14243,7 @@ function zb(e, ...t) {
|
|
|
14243
14243
|
for (const o of t) r.append("v", o);
|
|
14244
14244
|
n.search = r.toString(), console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
14245
14245
|
}
|
|
14246
|
-
const _n = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, CT = _n && "documentMode" in document ? document.documentMode : null,
|
|
14246
|
+
const _n = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, CT = _n && "documentMode" in document ? document.documentMode : null, pn = _n && /Mac|iPod|iPhone|iPad/.test(navigator.platform), Uo = _n && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Ac = !(!_n || !("InputEvent" in window) || CT) && "getTargetRanges" in new window.InputEvent("input"), ma = _n && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), ss = _n && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, _T = _n && /Android/.test(navigator.userAgent), $b = _n && /^(?=.*Chrome).*/i.test(navigator.userAgent), Wp = _n && _T && $b, pa = _n && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && pn && !$b;
|
|
14247
14247
|
function Bb(...e) {
|
|
14248
14248
|
const t = [];
|
|
14249
14249
|
for (const n of e) if (n && typeof n == "string") for (const [r] of n.matchAll(/\S+/g)) t.push(r);
|
|
@@ -14268,7 +14268,7 @@ function lf(e, t, n) {
|
|
|
14268
14268
|
return o && (e === o || r && e.previousSibling === o) || r && yl(e, n) !== void 0;
|
|
14269
14269
|
}
|
|
14270
14270
|
function BT(e, t, n) {
|
|
14271
|
-
const r =
|
|
14271
|
+
const r = ln(cn(n));
|
|
14272
14272
|
let o = null, i = null;
|
|
14273
14273
|
r !== null && r.anchorNode === e && (o = r.anchorOffset, i = r.focusOffset);
|
|
14274
14274
|
const s = e.nodeValue;
|
|
@@ -14355,7 +14355,7 @@ function Kb(e) {
|
|
|
14355
14355
|
}
|
|
14356
14356
|
function Hb(e) {
|
|
14357
14357
|
(function(t) {
|
|
14358
|
-
Jd === 0 &&
|
|
14358
|
+
Jd === 0 && cn(t).addEventListener("textInput", $T, !0);
|
|
14359
14359
|
})(e), e._observer = new MutationObserver((t, n) => {
|
|
14360
14360
|
Wb(e, t, n);
|
|
14361
14361
|
});
|
|
@@ -14522,14 +14522,14 @@ function Xp(e) {
|
|
|
14522
14522
|
e.set(r.__key, o ? r.getChildrenSize() : 0, "element", !0);
|
|
14523
14523
|
}
|
|
14524
14524
|
}
|
|
14525
|
-
let Wo, St, qs, fl, Iu, Mu, Ko,
|
|
14525
|
+
let Wo, St, qs, fl, Iu, Mu, Ko, gn, Lu, Vs, nt = "", kn = null, fo = null, nr = "", yi = !1, Cc = !1;
|
|
14526
14526
|
function _c(e, t) {
|
|
14527
14527
|
const n = Ko.get(e);
|
|
14528
14528
|
if (t !== null) {
|
|
14529
14529
|
const r = zu(e);
|
|
14530
14530
|
r.parentNode === t && t.removeChild(r);
|
|
14531
14531
|
}
|
|
14532
|
-
if (
|
|
14532
|
+
if (gn.has(e) || St._keyToDOMMap.delete(e), L(n)) {
|
|
14533
14533
|
const r = Sc(n, Ko);
|
|
14534
14534
|
Ru(r, 0, r.length - 1, null);
|
|
14535
14535
|
}
|
|
@@ -14570,7 +14570,7 @@ function Du(e, t) {
|
|
|
14570
14570
|
n !== null ? e.dir = n : e.removeAttribute("dir");
|
|
14571
14571
|
}
|
|
14572
14572
|
function Ec(e, t) {
|
|
14573
|
-
const n =
|
|
14573
|
+
const n = gn.get(e);
|
|
14574
14574
|
n === void 0 && B(60);
|
|
14575
14575
|
const r = n.createDOM(Wo, St);
|
|
14576
14576
|
if ((function(o, i, s) {
|
|
@@ -14583,7 +14583,7 @@ function Ec(e, t) {
|
|
|
14583
14583
|
const o = n.__indent, i = n.__size;
|
|
14584
14584
|
if (Du(r, n), o !== 0 && Yb(r, o), i !== 0) {
|
|
14585
14585
|
const a = i - 1;
|
|
14586
|
-
Fu(Sc(n,
|
|
14586
|
+
Fu(Sc(n, gn), n, 0, a, n.getDOMSlot(r));
|
|
14587
14587
|
}
|
|
14588
14588
|
const s = n.__format;
|
|
14589
14589
|
s !== 0 && Qb(r, s), n.isInline() || Gb(null, n, r), vl(n) && (nt += Yr, nr += Yr);
|
|
@@ -14603,7 +14603,7 @@ function Fu(e, t, n, r, o) {
|
|
|
14603
14603
|
let s = n;
|
|
14604
14604
|
for (; s <= r; ++s) {
|
|
14605
14605
|
Ec(e[s], o);
|
|
14606
|
-
const a =
|
|
14606
|
+
const a = gn.get(e[s]);
|
|
14607
14607
|
a !== null && X(a) && kn === null && (kn = a.getFormat(), fo = a.getStyle());
|
|
14608
14608
|
}
|
|
14609
14609
|
vl(t) && (nt += Yr), o.element.__lexicalTextContent = nt, nt = i + nt;
|
|
@@ -14620,7 +14620,7 @@ function eg(e, t) {
|
|
|
14620
14620
|
return null;
|
|
14621
14621
|
}
|
|
14622
14622
|
function Gb(e, t, n) {
|
|
14623
|
-
const r = eg(e, Ko), o = eg(t,
|
|
14623
|
+
const r = eg(e, Ko), o = eg(t, gn);
|
|
14624
14624
|
r !== o && t.getDOMSlot(n).setManagedLineBreak(o);
|
|
14625
14625
|
}
|
|
14626
14626
|
function VT(e, t, n) {
|
|
@@ -14645,10 +14645,10 @@ function VT(e, t, n) {
|
|
|
14645
14645
|
}
|
|
14646
14646
|
_c(u, null);
|
|
14647
14647
|
}
|
|
14648
|
-
const h =
|
|
14648
|
+
const h = gn.get(d);
|
|
14649
14649
|
X(h) && kn === null && (kn = h.getFormat(), fo = h.getStyle());
|
|
14650
14650
|
} else {
|
|
14651
|
-
const u = Sc(o, Ko), d = Sc(i,
|
|
14651
|
+
const u = Sc(o, Ko), d = Sc(i, gn);
|
|
14652
14652
|
if (u.length !== c && B(227), d.length !== l && B(228), c === 0) l !== 0 && Fu(d, i, 0, l - 1, s);
|
|
14653
14653
|
else if (l === 0) {
|
|
14654
14654
|
if (c !== 0) {
|
|
@@ -14670,7 +14670,7 @@ function VT(e, t, n) {
|
|
|
14670
14670
|
} else Ec(F, v.withBefore(S)), T++;
|
|
14671
14671
|
else S = ff(zu(j)), _c(j, v.element), E++;
|
|
14672
14672
|
}
|
|
14673
|
-
const z =
|
|
14673
|
+
const z = gn.get(F);
|
|
14674
14674
|
z !== null && X(z) && kn === null && (kn = z.getFormat(), fo = z.getStyle());
|
|
14675
14675
|
}
|
|
14676
14676
|
const O = E > b, I = T > x;
|
|
@@ -14696,7 +14696,7 @@ function Sc(e, t) {
|
|
|
14696
14696
|
}
|
|
14697
14697
|
function Ns(e, t) {
|
|
14698
14698
|
const n = Ko.get(e);
|
|
14699
|
-
let r =
|
|
14699
|
+
let r = gn.get(e);
|
|
14700
14700
|
n !== void 0 && r !== void 0 || B(61);
|
|
14701
14701
|
const o = yi || Mu.has(e) || Iu.has(e), i = Vo(St, e);
|
|
14702
14702
|
if (n === r && !o) {
|
|
@@ -14746,9 +14746,9 @@ function ff(e) {
|
|
|
14746
14746
|
return t !== null && t === St._blockCursorElement && (t = t.nextSibling), t;
|
|
14747
14747
|
}
|
|
14748
14748
|
function YT(e, t, n, r, o, i) {
|
|
14749
|
-
nt = "", nr = "", yi = r === 2, St = n, Wo = n._config, qs = n._nodes, fl = St._listeners.mutation, Iu = o, Mu = i, Ko = e._nodeMap,
|
|
14749
|
+
nt = "", nr = "", yi = r === 2, St = n, Wo = n._config, qs = n._nodes, fl = St._listeners.mutation, Iu = o, Mu = i, Ko = e._nodeMap, gn = t._nodeMap, Cc = t._readOnly, Lu = new Map(n._keyToDOMMap);
|
|
14750
14750
|
const s = /* @__PURE__ */ new Map();
|
|
14751
|
-
return Vs = s, Ns("root", null), St = void 0, qs = void 0, Iu = void 0, Mu = void 0, Ko = void 0,
|
|
14751
|
+
return Vs = s, Ns("root", null), St = void 0, qs = void 0, Iu = void 0, Mu = void 0, Ko = void 0, gn = void 0, Wo = void 0, Lu = void 0, Vs = void 0, s;
|
|
14752
14752
|
}
|
|
14753
14753
|
function zu(e) {
|
|
14754
14754
|
const t = Lu.get(e);
|
|
@@ -14774,7 +14774,7 @@ const ul = he("SELECTION_CHANGE_COMMAND"), QT = he("SELECTION_INSERT_CLIPBOARD_N
|
|
|
14774
14774
|
}, { event: e }), vi = null;
|
|
14775
14775
|
}], ["click", function(e, t) {
|
|
14776
14776
|
$n(t, () => {
|
|
14777
|
-
const n = Z(), r =
|
|
14777
|
+
const n = Z(), r = ln(cn(t)), o = ls();
|
|
14778
14778
|
if (r) {
|
|
14779
14779
|
if ($(n)) {
|
|
14780
14780
|
const i = n.anchor, s = i.getNode();
|
|
@@ -14799,7 +14799,7 @@ let Js = 0, m1 = null, p1 = 0, vi = null;
|
|
|
14799
14799
|
const ju = /* @__PURE__ */ new WeakMap(), kc = /* @__PURE__ */ new WeakMap();
|
|
14800
14800
|
let Wu = !1, Ku = !1, Rs = !1, Os = !1, Hu = !1, qu = "", mo = null, g1 = [0, "", 0, "root", 0];
|
|
14801
14801
|
function y1(e, t, n, r, o) {
|
|
14802
|
-
const i = e.anchor, s = e.focus, a = i.getNode(), c = Fe(), l =
|
|
14802
|
+
const i = e.anchor, s = e.focus, a = i.getNode(), c = Fe(), l = ln(cn(c)), f = l !== null ? l.anchorNode : null, u = i.key, d = c.getElementByKey(u), h = n.length;
|
|
14803
14803
|
return u !== s.key || !X(a) || (!o && (!Ac || p1 < r + 50) || a.isDirty() && h < 2 || G1(n)) && i.offset !== s.offset && !a.isComposing() || tr(a) || a.isDirty() && h > 1 || (o || !Ac) && d !== null && !a.isComposing() && f !== Yi(d) || l !== null && t !== null && (!t.collapsed || t.startContainer !== l.anchorNode || t.startOffset !== l.anchorOffset) || a.getFormat() !== e.format || a.getStyle() !== e.style || (function(m, g) {
|
|
14804
14804
|
if (g.isSegmented()) return !0;
|
|
14805
14805
|
if (!m.isCollapsed()) return !1;
|
|
@@ -14827,7 +14827,7 @@ function rg(e, t, n) {
|
|
|
14827
14827
|
const c = a.anchor, l = c.getNode();
|
|
14828
14828
|
if (a.isCollapsed()) {
|
|
14829
14829
|
e.type === "Range" && e.anchorNode === e.focusNode && (a.dirty = !0);
|
|
14830
|
-
const f =
|
|
14830
|
+
const f = cn(t).event, u = f ? f.timeStamp : performance.now(), [d, h, m, g, p] = g1, y = qe(), v = t.isComposing() === !1 && y.getTextContent() === "";
|
|
14831
14831
|
if (u < p + 200 && c.offset === m && c.key === g) oc(a, d, h);
|
|
14832
14832
|
else if (c.type === "text") X(l) || B(141), v1(a, l);
|
|
14833
14833
|
else if (c.type === "element" && !v) {
|
|
@@ -14980,7 +14980,7 @@ function c6(e) {
|
|
|
14980
14980
|
const t = Fe(), n = Z(), r = e.data, o = b1(e);
|
|
14981
14981
|
if (r != null && $(n) && y1(n, o, r, e.timeStamp, !1)) {
|
|
14982
14982
|
Os && (Tc(t, r), Os = !1);
|
|
14983
|
-
const i = n.anchor.getNode(), s =
|
|
14983
|
+
const i = n.anchor.getNode(), s = ln(cn(t));
|
|
14984
14984
|
if (s === null) return !0;
|
|
14985
14985
|
const a = n.isBackward(), c = a ? n.anchor.offset : n.focus.offset, l = a ? n.focus.offset : n.anchor.offset;
|
|
14986
14986
|
Ac && !n.isCollapsed() && X(i) && s.anchorNode !== null && i.getTextContent().slice(0, c) + r + i.getTextContent().slice(c + l) === J1(s.anchorNode) || ie(t, Ti, r);
|
|
@@ -15054,19 +15054,19 @@ function u6(e) {
|
|
|
15054
15054
|
return n.key === " ";
|
|
15055
15055
|
})(e)) ie(t, a1, e);
|
|
15056
15056
|
else if ((function(n) {
|
|
15057
|
-
return
|
|
15057
|
+
return pn && Re(n, "o", { ctrlKey: !0 });
|
|
15058
15058
|
})(e)) e.preventDefault(), Rs = !0, ie(t, ki, !0);
|
|
15059
15059
|
else if ((function(n) {
|
|
15060
15060
|
return Re(n, "Enter", { altKey: "any", ctrlKey: "any", metaKey: "any" });
|
|
15061
15061
|
})(e)) Rs = !1, ie(t, Zs, e);
|
|
15062
15062
|
else if ((function(n) {
|
|
15063
|
-
return Re(n, "Backspace", { shiftKey: "any" }) ||
|
|
15063
|
+
return Re(n, "Backspace", { shiftKey: "any" }) || pn && Re(n, "h", { ctrlKey: !0 });
|
|
15064
15064
|
})(e)) Tg(e) ? ie(t, c1, e) : (e.preventDefault(), ie(t, No, !0));
|
|
15065
15065
|
else if ((function(n) {
|
|
15066
15066
|
return n.key === "Escape";
|
|
15067
15067
|
})(e)) ie(t, nh, e);
|
|
15068
15068
|
else if ((function(n) {
|
|
15069
|
-
return Re(n, "Delete", {}) ||
|
|
15069
|
+
return Re(n, "Delete", {}) || pn && Re(n, "d", { ctrlKey: !0 });
|
|
15070
15070
|
})(e)) (function(n) {
|
|
15071
15071
|
return n.key === "Delete";
|
|
15072
15072
|
})(e) ? ie(t, l1, e) : (e.preventDefault(), ie(t, No, !1));
|
|
@@ -15077,10 +15077,10 @@ function u6(e) {
|
|
|
15077
15077
|
return Re(n, "Delete", kg);
|
|
15078
15078
|
})(e)) e.preventDefault(), ie(t, Qs, !1);
|
|
15079
15079
|
else if ((function(n) {
|
|
15080
|
-
return
|
|
15080
|
+
return pn && Re(n, "Backspace", { metaKey: !0 });
|
|
15081
15081
|
})(e)) e.preventDefault(), ie(t, Gs, !0);
|
|
15082
15082
|
else if ((function(n) {
|
|
15083
|
-
return
|
|
15083
|
+
return pn && (Re(n, "Delete", { metaKey: !0 }) || Re(n, "k", { ctrlKey: !0 }));
|
|
15084
15084
|
})(e)) e.preventDefault(), ie(t, Gs, !1);
|
|
15085
15085
|
else if ((function(n) {
|
|
15086
15086
|
return Re(n, "b", Xn);
|
|
@@ -15098,7 +15098,7 @@ function u6(e) {
|
|
|
15098
15098
|
return Re(n, "z", Xn);
|
|
15099
15099
|
})(e)) e.preventDefault(), ie(t, eh, void 0);
|
|
15100
15100
|
else if ((function(n) {
|
|
15101
|
-
return
|
|
15101
|
+
return pn ? Re(n, "z", { metaKey: !0, shiftKey: !0 }) : Re(n, "y", { ctrlKey: !0 }) || Re(n, "z", { ctrlKey: !0, shiftKey: !0 });
|
|
15102
15102
|
})(e)) e.preventDefault(), ie(t, th, void 0);
|
|
15103
15103
|
else {
|
|
15104
15104
|
const n = t._editorState._selection;
|
|
@@ -15178,7 +15178,7 @@ const A1 = Symbol.for("ephemeral");
|
|
|
15178
15178
|
function Nc(e) {
|
|
15179
15179
|
return e[A1] || !1;
|
|
15180
15180
|
}
|
|
15181
|
-
class
|
|
15181
|
+
class yn {
|
|
15182
15182
|
constructor(t) {
|
|
15183
15183
|
R(this, "__type");
|
|
15184
15184
|
R(this, "__key");
|
|
@@ -15484,9 +15484,9 @@ class vn {
|
|
|
15484
15484
|
this.markDirty();
|
|
15485
15485
|
}
|
|
15486
15486
|
}
|
|
15487
|
-
R(
|
|
15487
|
+
R(yn, "importDOM");
|
|
15488
15488
|
const Yu = "historic", h6 = "history-push", Oo = "history-merge", m6 = "paste", p6 = "collaboration", g6 = "skip-scroll-into-view", y6 = "skip-dom-selection", v6 = "skip-selection-focus";
|
|
15489
|
-
class as extends
|
|
15489
|
+
class as extends yn {
|
|
15490
15490
|
static getType() {
|
|
15491
15491
|
return "linebreak";
|
|
15492
15492
|
}
|
|
@@ -15597,7 +15597,7 @@ function Ua(e, t) {
|
|
|
15597
15597
|
const n = document.createElement(t);
|
|
15598
15598
|
return n.appendChild(e), n;
|
|
15599
15599
|
}
|
|
15600
|
-
class eo extends
|
|
15600
|
+
class eo extends yn {
|
|
15601
15601
|
constructor(n = "", r) {
|
|
15602
15602
|
super(r);
|
|
15603
15603
|
R(this, "__text");
|
|
@@ -16158,7 +16158,7 @@ class ei {
|
|
|
16158
16158
|
const { origin: f } = l;
|
|
16159
16159
|
L(f) && c.has(f) || o.push(f);
|
|
16160
16160
|
}
|
|
16161
|
-
if (s && o.push(s.caret.origin), Gi(r.focus) && L(r.focus.origin) && r.focus.getNodeAtCaret() === null) for (let l =
|
|
16161
|
+
if (s && o.push(s.caret.origin), Gi(r.focus) && L(r.focus.origin) && r.focus.getNodeAtCaret() === null) for (let l = xn(r.focus.origin, "previous"); Bn(l) && a.has(l.origin) && !l.origin.isEmpty() && l.origin.is(o[o.length - 1]); l = Ah(l)) a.delete(l.origin), o.pop();
|
|
16162
16162
|
for (; o.length > 1; ) {
|
|
16163
16163
|
const l = o[o.length - 1];
|
|
16164
16164
|
if (!L(l) || c.has(l) || l.isEmpty() || a.has(l)) break;
|
|
@@ -16451,7 +16451,7 @@ class ei {
|
|
|
16451
16451
|
}
|
|
16452
16452
|
modify(t, n, r) {
|
|
16453
16453
|
if (yg(this, t, n, r)) return;
|
|
16454
|
-
const o = t === "move", i = Fe(), s =
|
|
16454
|
+
const o = t === "move", i = Fe(), s = ln(cn(i));
|
|
16455
16455
|
if (!s) return;
|
|
16456
16456
|
const a = i._blockCursorElement, c = i._rootElement, l = this.focus.getNode();
|
|
16457
16457
|
if (c === null || a === null || !L(l) || l.isInline() || l.canBeEmpty() || ed(a, i, c), this.dirty) {
|
|
@@ -16830,7 +16830,7 @@ function k6(e, t, n, r, o, i, s) {
|
|
|
16830
16830
|
let { top: W, bottom: U } = P, J = 0, q = 0, ee = re;
|
|
16831
16831
|
for (; ee !== null; ) {
|
|
16832
16832
|
const te = ee === M.body;
|
|
16833
|
-
if (te) J = 0, q =
|
|
16833
|
+
if (te) J = 0, q = cn(oe).innerHeight;
|
|
16834
16834
|
else {
|
|
16835
16835
|
const ve = ee.getBoundingClientRect();
|
|
16836
16836
|
J = ve.top, q = ve.bottom;
|
|
@@ -17019,7 +17019,7 @@ function ar(e, t) {
|
|
|
17019
17019
|
let I;
|
|
17020
17020
|
for (I in T) O.has(I) || (T === E && (T = Y1(_)), delete T[I]);
|
|
17021
17021
|
})(e, n);
|
|
17022
|
-
const x = o ? null :
|
|
17022
|
+
const x = o ? null : ln(cn(e));
|
|
17023
17023
|
if (e._editable && x !== null && (c || a === null || a.dirty || !a.is(s)) && r !== null && !v.has(y6)) {
|
|
17024
17024
|
ft = e, lt = n;
|
|
17025
17025
|
try {
|
|
@@ -17135,7 +17135,7 @@ function pl(e, t, n) {
|
|
|
17135
17135
|
fh(null);
|
|
17136
17136
|
try {
|
|
17137
17137
|
l && (m ? a._selection !== null && (c._selection = a._selection.clone()) : c._selection = (function(v, b) {
|
|
17138
|
-
const x = v.getEditorState()._selection, w =
|
|
17138
|
+
const x = v.getEditorState()._selection, w = ln(cn(v));
|
|
17139
17139
|
return $(x) || x == null ? ih(x, w, v, b) : x.clone();
|
|
17140
17140
|
})(e, n && n.event || null));
|
|
17141
17141
|
const p = e._compositionKey;
|
|
@@ -17309,7 +17309,7 @@ function Cg(e, t) {
|
|
|
17309
17309
|
}
|
|
17310
17310
|
return r !== e && B(225), n.reverse();
|
|
17311
17311
|
}
|
|
17312
|
-
class Wn extends
|
|
17312
|
+
class Wn extends yn {
|
|
17313
17313
|
constructor(n) {
|
|
17314
17314
|
super(n);
|
|
17315
17315
|
R(this, "__first");
|
|
@@ -17664,7 +17664,7 @@ function _g(e, t, n) {
|
|
|
17664
17664
|
}
|
|
17665
17665
|
return !1;
|
|
17666
17666
|
}
|
|
17667
|
-
class D1 extends
|
|
17667
|
+
class D1 extends yn {
|
|
17668
17668
|
decorate(t, n) {
|
|
17669
17669
|
return null;
|
|
17670
17670
|
}
|
|
@@ -17865,7 +17865,7 @@ function L6(e) {
|
|
|
17865
17865
|
s && t.add(s), r = o.extends;
|
|
17866
17866
|
} else {
|
|
17867
17867
|
const s = Object.getPrototypeOf(r);
|
|
17868
|
-
r = s.prototype instanceof
|
|
17868
|
+
r = s.prototype instanceof yn && s !== yn ? s : void 0;
|
|
17869
17869
|
}
|
|
17870
17870
|
}
|
|
17871
17871
|
return t;
|
|
@@ -18149,7 +18149,7 @@ class qo {
|
|
|
18149
18149
|
blur() {
|
|
18150
18150
|
const t = this._rootElement;
|
|
18151
18151
|
t !== null && t.blur();
|
|
18152
|
-
const n =
|
|
18152
|
+
const n = ln(this._window);
|
|
18153
18153
|
n !== null && n.removeAllRanges();
|
|
18154
18154
|
}
|
|
18155
18155
|
isEditable() {
|
|
@@ -18355,7 +18355,7 @@ function J1(e) {
|
|
|
18355
18355
|
return wr(e) ? e.nodeValue : null;
|
|
18356
18356
|
}
|
|
18357
18357
|
function ph(e, t, n) {
|
|
18358
|
-
const r =
|
|
18358
|
+
const r = ln(cn(t));
|
|
18359
18359
|
if (r === null) return;
|
|
18360
18360
|
const o = r.anchorNode;
|
|
18361
18361
|
let { anchorOffset: i, focusOffset: s } = r;
|
|
@@ -18422,7 +18422,7 @@ function z6(e, t) {
|
|
|
18422
18422
|
function Re(e, t, n) {
|
|
18423
18423
|
return z6(e, n) && e.key.toLowerCase() === t.toLowerCase();
|
|
18424
18424
|
}
|
|
18425
|
-
const Xn = { ctrlKey: !
|
|
18425
|
+
const Xn = { ctrlKey: !pn, metaKey: pn }, kg = { altKey: pn, ctrlKey: !pn };
|
|
18426
18426
|
function Tg(e) {
|
|
18427
18427
|
return e.key === "Backspace";
|
|
18428
18428
|
}
|
|
@@ -18480,7 +18480,7 @@ function Ju(e, t) {
|
|
|
18480
18480
|
return null;
|
|
18481
18481
|
}
|
|
18482
18482
|
function X1(e) {
|
|
18483
|
-
const t =
|
|
18483
|
+
const t = cn(e).event, n = t && t.inputType;
|
|
18484
18484
|
return n === "insertFromPaste" || n === "insertFromPasteAsQuotation";
|
|
18485
18485
|
}
|
|
18486
18486
|
function ie(e, t, n) {
|
|
@@ -18534,7 +18534,7 @@ function vh(e) {
|
|
|
18534
18534
|
const t = ex(e);
|
|
18535
18535
|
return t ? t.defaultView : null;
|
|
18536
18536
|
}
|
|
18537
|
-
function
|
|
18537
|
+
function cn(e) {
|
|
18538
18538
|
const t = e._window;
|
|
18539
18539
|
return t === null && B(78), t;
|
|
18540
18540
|
}
|
|
@@ -18574,7 +18574,7 @@ function ed(e, t, n) {
|
|
|
18574
18574
|
const r = e.parentElement;
|
|
18575
18575
|
r !== null && r.removeChild(e);
|
|
18576
18576
|
}
|
|
18577
|
-
function
|
|
18577
|
+
function ln(e) {
|
|
18578
18578
|
return _n ? (e || window).getSelection() : null;
|
|
18579
18579
|
}
|
|
18580
18580
|
function K6(e) {
|
|
@@ -18643,11 +18643,11 @@ function Y6(e) {
|
|
|
18643
18643
|
function Es(e, t) {
|
|
18644
18644
|
return (function(n, r) {
|
|
18645
18645
|
return Object.prototype.hasOwnProperty.call(n, r);
|
|
18646
|
-
})(e, t) && e[t] !==
|
|
18646
|
+
})(e, t) && e[t] !== yn[t];
|
|
18647
18647
|
}
|
|
18648
18648
|
function bl(e) {
|
|
18649
18649
|
const t = Hp in e.prototype ? e.prototype[Hp]() : void 0, n = (function(s) {
|
|
18650
|
-
if (!(s ===
|
|
18650
|
+
if (!(s === yn || s.prototype instanceof yn)) {
|
|
18651
18651
|
let a = "<unknown>", c = "<unknown>";
|
|
18652
18652
|
try {
|
|
18653
18653
|
a = s.getType();
|
|
@@ -18659,7 +18659,7 @@ function bl(e) {
|
|
|
18659
18659
|
}
|
|
18660
18660
|
B(290, s.name, a, c);
|
|
18661
18661
|
}
|
|
18662
|
-
return s === D1 || s === Wn || s ===
|
|
18662
|
+
return s === D1 || s === Wn || s === yn;
|
|
18663
18663
|
})(e), r = !n && Es(e, "getType") ? e.getType() : void 0;
|
|
18664
18664
|
let o, i = r;
|
|
18665
18665
|
if (t) if (r) o = t[r];
|
|
@@ -18731,14 +18731,14 @@ class Xs extends xh {
|
|
|
18731
18731
|
}
|
|
18732
18732
|
getLatest() {
|
|
18733
18733
|
const n = this.origin.getLatest();
|
|
18734
|
-
return n === this.origin ? this :
|
|
18734
|
+
return n === this.origin ? this : xn(n, this.direction);
|
|
18735
18735
|
}
|
|
18736
18736
|
getParentCaret(n = "root") {
|
|
18737
18737
|
return kt(wh(this.getParentAtCaret(), n), this.direction);
|
|
18738
18738
|
}
|
|
18739
18739
|
getFlipped() {
|
|
18740
18740
|
const n = hs(this.direction);
|
|
18741
|
-
return kt(this.getNodeAtCaret(), n) ||
|
|
18741
|
+
return kt(this.getNodeAtCaret(), n) || xn(this.origin, n);
|
|
18742
18742
|
}
|
|
18743
18743
|
getParentAtCaret() {
|
|
18744
18744
|
return this.origin;
|
|
@@ -18776,14 +18776,14 @@ class Yo extends xh {
|
|
|
18776
18776
|
return this.origin.getParent();
|
|
18777
18777
|
}
|
|
18778
18778
|
getChildCaret() {
|
|
18779
|
-
return L(this.origin) ?
|
|
18779
|
+
return L(this.origin) ? xn(this.origin, this.direction) : null;
|
|
18780
18780
|
}
|
|
18781
18781
|
getParentCaret(n = "root") {
|
|
18782
18782
|
return kt(wh(this.getParentAtCaret(), n), this.direction);
|
|
18783
18783
|
}
|
|
18784
18784
|
getFlipped() {
|
|
18785
18785
|
const n = hs(this.direction);
|
|
18786
|
-
return kt(this.getNodeAtCaret(), n) ||
|
|
18786
|
+
return kt(this.getNodeAtCaret(), n) || xn(this.origin.getParentOrThrow(), n);
|
|
18787
18787
|
}
|
|
18788
18788
|
isSamePointCaret(n) {
|
|
18789
18789
|
return n instanceof Yo && this.direction === n.direction && this.origin.is(n.origin);
|
|
@@ -18915,7 +18915,7 @@ function Wr(e, t, n = "error") {
|
|
|
18915
18915
|
function Mg(e, t) {
|
|
18916
18916
|
return new tN(e, t);
|
|
18917
18917
|
}
|
|
18918
|
-
function
|
|
18918
|
+
function xn(e, t) {
|
|
18919
18919
|
return L(e) ? new X6[t](e) : null;
|
|
18920
18920
|
}
|
|
18921
18921
|
function eN(e) {
|
|
@@ -19067,7 +19067,7 @@ function Rg(e) {
|
|
|
19067
19067
|
}
|
|
19068
19068
|
function Eh(e) {
|
|
19069
19069
|
const { direction: t, origin: n } = e, r = kt(n, hs(t)).getNodeAtCaret();
|
|
19070
|
-
return r ? kt(r, t) :
|
|
19070
|
+
return r ? kt(r, t) : xn(n.getParentOrThrow(), t);
|
|
19071
19071
|
}
|
|
19072
19072
|
function Dg(e, t = "root") {
|
|
19073
19073
|
const n = [e];
|
|
@@ -19136,7 +19136,7 @@ function oN(e, t = "removeEmptySlices") {
|
|
|
19136
19136
|
})(f, u, c);
|
|
19137
19137
|
if (d) {
|
|
19138
19138
|
const [m, g] = d;
|
|
19139
|
-
|
|
19139
|
+
xn(m, "previous").splice(0, g.getChildren()), g.remove();
|
|
19140
19140
|
}
|
|
19141
19141
|
const h = [f, u, ...s, ...a].find(vf);
|
|
19142
19142
|
if (h)
|
|
@@ -19167,7 +19167,7 @@ function ax(e, t) {
|
|
|
19167
19167
|
return e.direction === t ? e : Qr(Zi(e.focus, t), Zi(e.anchor, t));
|
|
19168
19168
|
}
|
|
19169
19169
|
function iN(e, t, n) {
|
|
19170
|
-
let r =
|
|
19170
|
+
let r = xn(e, "next");
|
|
19171
19171
|
for (let o = 0; o < t; o++) {
|
|
19172
19172
|
const i = r.getAdjacentCaret();
|
|
19173
19173
|
if (i === null) break;
|
|
@@ -19339,7 +19339,7 @@ function yx(...e) {
|
|
|
19339
19339
|
for (const n of e) if (n && typeof n == "string") for (const [r] of n.matchAll(/\S+/g)) t.push(r);
|
|
19340
19340
|
return t;
|
|
19341
19341
|
}
|
|
19342
|
-
function
|
|
19342
|
+
function wn(...e) {
|
|
19343
19343
|
return () => {
|
|
19344
19344
|
for (let t = e.length - 1; t >= 0; t--) e[t]();
|
|
19345
19345
|
e.length = 0;
|
|
@@ -19809,7 +19809,7 @@ class Pi {
|
|
|
19809
19809
|
}
|
|
19810
19810
|
}
|
|
19811
19811
|
const r = Object.assign(this.constructEditor(), { dispose: n, [Symbol.dispose]: n });
|
|
19812
|
-
return t =
|
|
19812
|
+
return t = wn(this.registerEditor(r), () => r.setRootElement(null)), r;
|
|
19813
19813
|
}
|
|
19814
19814
|
hasExtensionByName(t) {
|
|
19815
19815
|
return this.extensionNameMap.has(t);
|
|
@@ -19878,7 +19878,7 @@ class Pi {
|
|
|
19878
19878
|
const a = s.afterRegistration(t);
|
|
19879
19879
|
a && o.push(a);
|
|
19880
19880
|
}
|
|
19881
|
-
return
|
|
19881
|
+
return wn(...o);
|
|
19882
19882
|
}
|
|
19883
19883
|
buildCreateEditorArgs() {
|
|
19884
19884
|
const t = {}, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), i = {}, s = {}, a = this.sortedExtensionReps();
|
|
@@ -20127,7 +20127,7 @@ function Qg(e, t, n) {
|
|
|
20127
20127
|
const s = mr(o, "previous");
|
|
20128
20128
|
if (s) if (jr(s)) i = s.origin;
|
|
20129
20129
|
else {
|
|
20130
|
-
const a = Qr(s,
|
|
20130
|
+
const a = Qr(s, xn(qe(), "next").getFlipped());
|
|
20131
20131
|
for (const c of a) {
|
|
20132
20132
|
if (X(c.origin)) {
|
|
20133
20133
|
i = c.origin;
|
|
@@ -20190,7 +20190,7 @@ async function Gg(e, t, n) {
|
|
|
20190
20190
|
l(Zg(e, t, n));
|
|
20191
20191
|
});
|
|
20192
20192
|
});
|
|
20193
|
-
const r = e.getRootElement(), o = e._window || window, i = o.document, s =
|
|
20193
|
+
const r = e.getRootElement(), o = e._window || window, i = o.document, s = ln(o);
|
|
20194
20194
|
if (r === null || s === null) return !1;
|
|
20195
20195
|
const a = i.createElement("span");
|
|
20196
20196
|
a.style.cssText = "position: fixed; top: -1000px;", a.append(i.createTextNode("#")), r.append(a);
|
|
@@ -20204,7 +20204,7 @@ async function Gg(e, t, n) {
|
|
|
20204
20204
|
}
|
|
20205
20205
|
function Zg(e, t, n) {
|
|
20206
20206
|
if (n === void 0) {
|
|
20207
|
-
const o =
|
|
20207
|
+
const o = ln(e._window), i = Z();
|
|
20208
20208
|
if (!i || i.isCollapsed() || !o) return !1;
|
|
20209
20209
|
const s = o.anchorNode, a = o.focusNode;
|
|
20210
20210
|
if (s !== null && a !== null && !ba(e, s, a)) return !1;
|
|
@@ -20273,7 +20273,7 @@ function Cf(e) {
|
|
|
20273
20273
|
for (const t of ["lowercase", "uppercase", "capitalize"]) e.hasFormat(t) && e.toggleFormat(t);
|
|
20274
20274
|
}
|
|
20275
20275
|
function GN(e) {
|
|
20276
|
-
return
|
|
20276
|
+
return wn(e.registerCommand(Xd, (t) => {
|
|
20277
20277
|
const n = Z();
|
|
20278
20278
|
return !!ct(n) && (n.clear(), !0);
|
|
20279
20279
|
}, Ce), e.registerCommand(No, (t) => {
|
|
@@ -20467,7 +20467,7 @@ function JN({ editor: e, ErrorBoundary: t }) {
|
|
|
20467
20467
|
return (function(n, r) {
|
|
20468
20468
|
const [o, i] = pe(() => n.getDecorators());
|
|
20469
20469
|
return Nh(() => n.registerDecoratorListener((s) => {
|
|
20470
|
-
|
|
20470
|
+
ow(() => {
|
|
20471
20471
|
i(s);
|
|
20472
20472
|
});
|
|
20473
20473
|
}), [n]), Te(() => {
|
|
@@ -20475,8 +20475,8 @@ function JN({ editor: e, ErrorBoundary: t }) {
|
|
|
20475
20475
|
}, [n]), Je(() => {
|
|
20476
20476
|
const s = [], a = Object.keys(o);
|
|
20477
20477
|
for (let c = 0; c < a.length; c++) {
|
|
20478
|
-
const l = a[c], f = C(r, { onError: (d) => n._onError(d), children: C(
|
|
20479
|
-
u !== null && s.push(
|
|
20478
|
+
const l = a[c], f = C(r, { onError: (d) => n._onError(d), children: C(sw, { fallback: null, children: o[l] }) }), u = n.getElementByKey(l);
|
|
20479
|
+
u !== null && s.push(An(f, u, l));
|
|
20480
20480
|
}
|
|
20481
20481
|
return s;
|
|
20482
20482
|
}, [r, o, n]);
|
|
@@ -20498,7 +20498,7 @@ function r0(e) {
|
|
|
20498
20498
|
function e5({ contentEditable: e, placeholder: t = null, ErrorBoundary: n }) {
|
|
20499
20499
|
const [r] = bt();
|
|
20500
20500
|
return (function(o) {
|
|
20501
|
-
Nh(() =>
|
|
20501
|
+
Nh(() => wn(GN(o), DN(o)), [o]);
|
|
20502
20502
|
})(r), Y(Et, { children: [e, C(t5, { content: t }), C(XN, { editor: r, ErrorBoundary: n })] });
|
|
20503
20503
|
}
|
|
20504
20504
|
function t5({ content: e }) {
|
|
@@ -20509,7 +20509,7 @@ function t5({ content: e }) {
|
|
|
20509
20509
|
const c = r0(o);
|
|
20510
20510
|
s(c);
|
|
20511
20511
|
}
|
|
20512
|
-
return a(),
|
|
20512
|
+
return a(), wn(o.registerUpdateListener(() => {
|
|
20513
20513
|
a();
|
|
20514
20514
|
}), o.registerEditableListener(() => {
|
|
20515
20515
|
a();
|
|
@@ -20575,7 +20575,7 @@ function o0(e) {
|
|
|
20575
20575
|
}
|
|
20576
20576
|
function Lx(e, t, n) {
|
|
20577
20577
|
const r = r5(e, n);
|
|
20578
|
-
return
|
|
20578
|
+
return wn(e.registerCommand(eh, () => ((function(i, s) {
|
|
20579
20579
|
const a = s.redoStack, c = s.undoStack;
|
|
20580
20580
|
if (c.length !== 0) {
|
|
20581
20581
|
const l = s.current, f = c.pop();
|
|
@@ -20645,7 +20645,7 @@ function l5({ content: e, editor: t }) {
|
|
|
20645
20645
|
const f = i0(s);
|
|
20646
20646
|
c(f);
|
|
20647
20647
|
}
|
|
20648
|
-
return l(),
|
|
20648
|
+
return l(), wn(s.registerUpdateListener(() => {
|
|
20649
20649
|
l();
|
|
20650
20650
|
}), s.registerEditableListener(() => {
|
|
20651
20651
|
l();
|
|
@@ -20671,7 +20671,7 @@ const d5 = Cn(null), Ef = {
|
|
|
20671
20671
|
didCatch: !1,
|
|
20672
20672
|
error: null
|
|
20673
20673
|
};
|
|
20674
|
-
class h5 extends
|
|
20674
|
+
class h5 extends aw {
|
|
20675
20675
|
constructor(t) {
|
|
20676
20676
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ef;
|
|
20677
20677
|
}
|
|
@@ -20891,7 +20891,7 @@ function y5() {
|
|
|
20891
20891
|
const s = Fx(o);
|
|
20892
20892
|
for (const a of s) {
|
|
20893
20893
|
const c = Rt().setTextStyle(e.style).setTextFormat(e.format);
|
|
20894
|
-
Jo(c, a.getChildren()), i.insertAfter(c), i = c, a.__key === e.anchor.key && Zo(e.anchor, tn(
|
|
20894
|
+
Jo(c, a.getChildren()), i.insertAfter(c), i = c, a.__key === e.anchor.key && Zo(e.anchor, tn(xn(c, "next"))), a.__key === e.focus.key && Zo(e.focus, tn(xn(c, "next"))), a.remove();
|
|
20895
20895
|
}
|
|
20896
20896
|
o.remove();
|
|
20897
20897
|
}
|
|
@@ -21301,7 +21301,7 @@ function xe(e) {
|
|
|
21301
21301
|
}
|
|
21302
21302
|
const _5 = he("UPDATE_LIST_START_COMMAND"), Bx = he("INSERT_UNORDERED_LIST_COMMAND"), Ux = he("INSERT_ORDERED_LIST_COMMAND"), cd = he("REMOVE_LIST_COMMAND");
|
|
21303
21303
|
function E5(e) {
|
|
21304
|
-
return
|
|
21304
|
+
return wn(e.registerCommand(Ux, () => (a0("number"), !0), cr), e.registerCommand(_5, (t) => {
|
|
21305
21305
|
const { listNodeKey: n, newStart: r } = t, o = rt(n);
|
|
21306
21306
|
return !!xe(o) && (o.getListType() === "number" && (o.setStart(r), $x(o)), !0);
|
|
21307
21307
|
}, cr), e.registerCommand(Bx, () => (a0("bullet"), !0), cr), e.registerCommand(cd, () => (y5(), !0), cr), e.registerCommand(Ys, () => x5(), cr), e.registerNodeTransform(ms, (t) => {
|
|
@@ -21659,7 +21659,7 @@ function m0(e) {
|
|
|
21659
21659
|
return e.match(/^[a-z][a-z0-9+.-]*:/i) || e.match(/^[/#.]/) ? e : e.includes("@") ? `mailto:${e}` : N5.test(e) ? `tel:${e}` : `https://${e}`;
|
|
21660
21660
|
}
|
|
21661
21661
|
function O5(e, t) {
|
|
21662
|
-
return
|
|
21662
|
+
return wn(ea(() => e.registerCommand(Ji, (n) => {
|
|
21663
21663
|
const r = t.validateUrl.peek(), o = t.attributes.peek();
|
|
21664
21664
|
if (n === null) return Sf(null), !0;
|
|
21665
21665
|
if (typeof n == "string") return !(r !== void 0 && !r(n)) && (Sf(n, o), !0);
|
|
@@ -22052,7 +22052,7 @@ function R5({
|
|
|
22052
22052
|
pt(T) ? c(T.getURL()) : pt(E) ? c(E.getURL()) : c(""), o && f(a);
|
|
22053
22053
|
}
|
|
22054
22054
|
}
|
|
22055
|
-
const y = s.current, v =
|
|
22055
|
+
const y = s.current, v = ln(e._window), b = document.activeElement;
|
|
22056
22056
|
if (y === null)
|
|
22057
22057
|
return;
|
|
22058
22058
|
const x = e.getRootElement();
|
|
@@ -22078,7 +22078,7 @@ function R5({
|
|
|
22078
22078
|
return window.addEventListener("resize", y), p && p.addEventListener("scroll", y), () => {
|
|
22079
22079
|
window.removeEventListener("resize", y), p && p.removeEventListener("scroll", y);
|
|
22080
22080
|
};
|
|
22081
|
-
}, [r.parentElement, e, h]), Te(() =>
|
|
22081
|
+
}, [r.parentElement, e, h]), Te(() => wn(
|
|
22082
22082
|
e.registerUpdateListener(({ editorState: p }) => {
|
|
22083
22083
|
p.read(() => {
|
|
22084
22084
|
h();
|
|
@@ -22251,7 +22251,7 @@ function D5(e, t, n, r) {
|
|
|
22251
22251
|
pt(d) || pt(u) ? a(!0) : a(!1);
|
|
22252
22252
|
}
|
|
22253
22253
|
}
|
|
22254
|
-
return
|
|
22254
|
+
return wn(
|
|
22255
22255
|
e.registerUpdateListener(({ editorState: l }) => {
|
|
22256
22256
|
l.read(() => {
|
|
22257
22257
|
c();
|
|
@@ -22276,7 +22276,7 @@ function D5(e, t, n, r) {
|
|
|
22276
22276
|
cr
|
|
22277
22277
|
)
|
|
22278
22278
|
);
|
|
22279
|
-
}, [e]),
|
|
22279
|
+
}, [e]), An(
|
|
22280
22280
|
/* @__PURE__ */ C(
|
|
22281
22281
|
R5,
|
|
22282
22282
|
{
|
|
@@ -23020,9 +23020,9 @@ const V5 = ({
|
|
|
23020
23020
|
prefetchQuery: (e) => {
|
|
23021
23021
|
}
|
|
23022
23022
|
}), Kx = () => {
|
|
23023
|
-
if (!
|
|
23023
|
+
if (!vn(ld))
|
|
23024
23024
|
throw new Error("useCommentContext must be used within a CommentProvider");
|
|
23025
|
-
return
|
|
23025
|
+
return vn(ld);
|
|
23026
23026
|
}, Z5 = ({
|
|
23027
23027
|
playbookInstanceId: e,
|
|
23028
23028
|
children: t,
|
|
@@ -23053,7 +23053,7 @@ const V5 = ({
|
|
|
23053
23053
|
},
|
|
23054
23054
|
children: [
|
|
23055
23055
|
t,
|
|
23056
|
-
|
|
23056
|
+
An(
|
|
23057
23057
|
/* @__PURE__ */ Y("div", { id: "cnfdnc-comment-box-root", children: [
|
|
23058
23058
|
/* @__PURE__ */ C("style", { children: Bc }),
|
|
23059
23059
|
/* @__PURE__ */ C("div", { className: "confidence-playbook", children: /* @__PURE__ */ C(
|
|
@@ -23587,7 +23587,7 @@ const eO = Bc.replace(/:root,\s*:host/g, ":host"), tO = ({
|
|
|
23587
23587
|
py(t, d, e, s), f(d);
|
|
23588
23588
|
})();
|
|
23589
23589
|
}, [a]), l ? /* @__PURE__ */ C(
|
|
23590
|
-
|
|
23590
|
+
fn,
|
|
23591
23591
|
{
|
|
23592
23592
|
playbookInstanceId: l,
|
|
23593
23593
|
playbookMode: n,
|
|
@@ -23628,7 +23628,7 @@ const eO = Bc.replace(/:root,\s*:host/g, ":host"), tO = ({
|
|
|
23628
23628
|
_ && (b(_.playbookInstanceId), x(_.email));
|
|
23629
23629
|
}, [e, i, b, x]);
|
|
23630
23630
|
const w = y != null ? /* @__PURE__ */ C(
|
|
23631
|
-
|
|
23631
|
+
fn,
|
|
23632
23632
|
{
|
|
23633
23633
|
playbookInstanceId: y,
|
|
23634
23634
|
playbookMode: t,
|
|
@@ -23655,7 +23655,7 @@ const eO = Bc.replace(/:root,\s*:host/g, ":host"), tO = ({
|
|
|
23655
23655
|
] }),
|
|
23656
23656
|
u ? u(w) : w
|
|
23657
23657
|
] });
|
|
23658
|
-
},
|
|
23658
|
+
}, fn = ({
|
|
23659
23659
|
playbookInstanceId: e,
|
|
23660
23660
|
playbookMode: t,
|
|
23661
23661
|
playbookStyle: n,
|
|
@@ -23681,10 +23681,10 @@ const eO = Bc.replace(/:root,\s*:host/g, ":host"), tO = ({
|
|
|
23681
23681
|
);
|
|
23682
23682
|
return i ? s : /* @__PURE__ */ C(vd, { children: s });
|
|
23683
23683
|
};
|
|
23684
|
-
|
|
23685
|
-
|
|
23686
|
-
|
|
23687
|
-
|
|
23684
|
+
fn.Context = vd;
|
|
23685
|
+
fn.View = qx;
|
|
23686
|
+
fn.AutoInstantiated = rO;
|
|
23687
|
+
fn.WithInstantiateButton = oO;
|
|
23688
23688
|
const iO = ({
|
|
23689
23689
|
onClick: e,
|
|
23690
23690
|
username: t
|
|
@@ -23902,7 +23902,7 @@ const iO = ({
|
|
|
23902
23902
|
playbookStyle: n,
|
|
23903
23903
|
onSetPlaybookInstanceId: o,
|
|
23904
23904
|
children: r != null && /* @__PURE__ */ C(
|
|
23905
|
-
|
|
23905
|
+
fn,
|
|
23906
23906
|
{
|
|
23907
23907
|
playbookInstanceId: r,
|
|
23908
23908
|
playbookMode: t,
|
|
@@ -23924,7 +23924,7 @@ const iO = ({
|
|
|
23924
23924
|
null
|
|
23925
23925
|
), [c, l] = pe(void 0);
|
|
23926
23926
|
return /* @__PURE__ */ C(G0, { value: { isEmbedded: !0 }, children: /* @__PURE__ */ C(
|
|
23927
|
-
|
|
23927
|
+
fn.WithInstantiateButton,
|
|
23928
23928
|
{
|
|
23929
23929
|
playbookId: e,
|
|
23930
23930
|
playbookMode: t,
|
|
@@ -23970,7 +23970,7 @@ const iO = ({
|
|
|
23970
23970
|
playbookStyle: n,
|
|
23971
23971
|
onSetPlaybookInstanceId: c,
|
|
23972
23972
|
children: /* @__PURE__ */ C(
|
|
23973
|
-
|
|
23973
|
+
fn.AutoInstantiated,
|
|
23974
23974
|
{
|
|
23975
23975
|
bank: i,
|
|
23976
23976
|
timezone: s,
|
|
@@ -23988,46 +23988,42 @@ const iO = ({
|
|
|
23988
23988
|
};
|
|
23989
23989
|
Aa.WithInstantiateButton = uO;
|
|
23990
23990
|
Aa.AutoInstantiated = dO;
|
|
23991
|
-
const ps = Bc.replace(/:root,\s*:host/g, ":host"), ri = (e) =>
|
|
23991
|
+
const ps = Bc.replace(/:root,\s*:host/g, ":host"), ri = (e) => An(
|
|
23992
23992
|
// SelfShadowComponent z-index is 2147483646 to ensure it is always on top of other elements (except CommentBoxRoot)
|
|
23993
23993
|
/* @__PURE__ */ Y(Gr.div, { style: { position: "relative", zIndex: 2147483646 }, children: [
|
|
23994
23994
|
/* @__PURE__ */ C("style", { children: ps }),
|
|
23995
|
-
/* @__PURE__ */ C(
|
|
23995
|
+
/* @__PURE__ */ C(fn, { ...e })
|
|
23996
23996
|
] }),
|
|
23997
23997
|
document.body
|
|
23998
|
-
), hO = (e) =>
|
|
23998
|
+
), hO = (e) => An(
|
|
23999
23999
|
// SelfShadowComponent z-index is 2147483646 to ensure it is always on top of other elements (except CommentBoxRoot)
|
|
24000
24000
|
/* @__PURE__ */ Y(Gr.div, { style: { position: "relative", zIndex: 2147483646 }, children: [
|
|
24001
24001
|
/* @__PURE__ */ C("style", { children: ps }),
|
|
24002
24002
|
/* @__PURE__ */ C(Aa, { ...e })
|
|
24003
24003
|
] }),
|
|
24004
24004
|
document.body
|
|
24005
|
-
), Vx = (e) =>
|
|
24005
|
+
), Vx = (e) => An(
|
|
24006
24006
|
// SelfShadowComponent z-index is 2147483646 to ensure it is always on top of other elements (except CommentBoxRoot)
|
|
24007
24007
|
/* @__PURE__ */ Y(Gr.div, { style: { position: "relative", zIndex: 2147483646 }, children: [
|
|
24008
24008
|
/* @__PURE__ */ C("style", { children: ps }),
|
|
24009
24009
|
/* @__PURE__ */ C(Aa.AutoInstantiated, { ...e })
|
|
24010
24010
|
] }),
|
|
24011
24011
|
document.body
|
|
24012
|
-
), mO = (e) =>
|
|
24013
|
-
|
|
24014
|
-
/* @__PURE__ */
|
|
24015
|
-
|
|
24016
|
-
/* @__PURE__ */ C(Aa.WithInstantiateButton, { ...e })
|
|
24017
|
-
] }),
|
|
24018
|
-
document.body
|
|
24019
|
-
), pO = (e) => an(
|
|
24012
|
+
), mO = (e) => /* @__PURE__ */ Y(Gr.div, { children: [
|
|
24013
|
+
/* @__PURE__ */ C("style", { children: ps }),
|
|
24014
|
+
/* @__PURE__ */ C(Aa.WithInstantiateButton, { ...e })
|
|
24015
|
+
] }), pO = (e) => An(
|
|
24020
24016
|
// SelfShadowComponent z-index is 2147483646 to ensure it is always on top of other elements (except CommentBoxRoot)
|
|
24021
24017
|
/* @__PURE__ */ Y(Gr.div, { style: { position: "relative", zIndex: 2147483646 }, children: [
|
|
24022
24018
|
/* @__PURE__ */ C("style", { children: ps }),
|
|
24023
|
-
/* @__PURE__ */ C(
|
|
24019
|
+
/* @__PURE__ */ C(fn.AutoInstantiated, { ...e })
|
|
24024
24020
|
] }),
|
|
24025
24021
|
document.body
|
|
24026
|
-
), gO = (e) =>
|
|
24022
|
+
), gO = (e) => An(
|
|
24027
24023
|
// SelfShadowComponent z-index is 2147483646 to ensure it is always on top of other elements (except CommentBoxRoot)
|
|
24028
24024
|
/* @__PURE__ */ Y(Gr.div, { style: { position: "relative", zIndex: 2147483646 }, children: [
|
|
24029
24025
|
/* @__PURE__ */ C("style", { children: ps }),
|
|
24030
|
-
/* @__PURE__ */ C(
|
|
24026
|
+
/* @__PURE__ */ C(fn.WithInstantiateButton, { ...e })
|
|
24031
24027
|
] }),
|
|
24032
24028
|
document.body
|
|
24033
24029
|
);
|