@apolitical/component-library 5.5.3 → 5.5.4-SW.0
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/form/types/password-form/index.d.ts +1 -1
- package/form/types/password-form/password-form.d.ts +6 -2
- package/form/types/profile-form/profile-form.d.ts +8 -2
- package/general/progress-tracker/index.d.ts +1 -1
- package/general/progress-tracker/progress-tracker.d.ts +2 -2
- package/index.js +21 -21
- package/index.mjs +589 -574
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -156,10 +156,10 @@ function Mh() {
|
|
|
156
156
|
Ve.unshift("Warning: " + se), Function.prototype.apply.call(console[R], console, Ve);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
var B = !1, x = !1,
|
|
159
|
+
var B = !1, x = !1, w = !1, T = !1, I = !1, N;
|
|
160
160
|
N = Symbol.for("react.module.reference");
|
|
161
161
|
function z(R) {
|
|
162
|
-
return !!(typeof R == "string" || typeof R == "function" || R === r || R === a || I || R === i || R === u || R === d || T || R === p || B || x ||
|
|
162
|
+
return !!(typeof R == "string" || typeof R == "function" || R === r || R === a || I || R === i || R === u || R === d || T || R === p || B || x || w || typeof R == "object" && R !== null && (R.$$typeof === m || R.$$typeof === h || R.$$typeof === s || R.$$typeof === o || R.$$typeof === l || // This needs to include all possible module reference object
|
|
163
163
|
// types supported by any Flight configuration anywhere since
|
|
164
164
|
// we don't know which Flight build this will end up being used
|
|
165
165
|
// with.
|
|
@@ -220,14 +220,14 @@ function Mh() {
|
|
|
220
220
|
}
|
|
221
221
|
return null;
|
|
222
222
|
}
|
|
223
|
-
var O = Object.assign, S = 0, U, H, ie, te,
|
|
223
|
+
var O = Object.assign, S = 0, U, H, ie, te, D, X, V;
|
|
224
224
|
function F() {
|
|
225
225
|
}
|
|
226
226
|
F.__reactDisabledLog = !0;
|
|
227
227
|
function A() {
|
|
228
228
|
{
|
|
229
229
|
if (S === 0) {
|
|
230
|
-
U = console.log, H = console.info, ie = console.warn, te = console.error,
|
|
230
|
+
U = console.log, H = console.info, ie = console.warn, te = console.error, D = console.group, X = console.groupCollapsed, V = console.groupEnd;
|
|
231
231
|
var R = {
|
|
232
232
|
configurable: !0,
|
|
233
233
|
enumerable: !0,
|
|
@@ -269,7 +269,7 @@ function Mh() {
|
|
|
269
269
|
value: te
|
|
270
270
|
}),
|
|
271
271
|
group: O({}, R, {
|
|
272
|
-
value:
|
|
272
|
+
value: D
|
|
273
273
|
}),
|
|
274
274
|
groupCollapsed: O({}, R, {
|
|
275
275
|
value: X
|
|
@@ -750,7 +750,7 @@ function Wc(e, t, n) {
|
|
|
750
750
|
return o.current = l.current = null, a.current = z, u.current = d.current.apply(k, M);
|
|
751
751
|
}, x = function(z, M) {
|
|
752
752
|
p && cancelAnimationFrame(s.current), s.current = p ? requestAnimationFrame(z) : setTimeout(z, M);
|
|
753
|
-
},
|
|
753
|
+
}, w = function(z) {
|
|
754
754
|
if (!h.current)
|
|
755
755
|
return !1;
|
|
756
756
|
var M = z - i.current;
|
|
@@ -759,7 +759,7 @@ function Wc(e, t, n) {
|
|
|
759
759
|
return s.current = null, f && o.current ? B(z) : (o.current = l.current = null, u.current);
|
|
760
760
|
}, I = function z() {
|
|
761
761
|
var M = Date.now();
|
|
762
|
-
if (
|
|
762
|
+
if (w(M))
|
|
763
763
|
return T(M);
|
|
764
764
|
if (h.current) {
|
|
765
765
|
var k = t - (M - i.current), E = v ? Math.min(k, C - (M - a.current)) : k;
|
|
@@ -767,7 +767,7 @@ function Wc(e, t, n) {
|
|
|
767
767
|
}
|
|
768
768
|
}, N = function() {
|
|
769
769
|
if (m || b) {
|
|
770
|
-
var z = Date.now(), M =
|
|
770
|
+
var z = Date.now(), M = w(z);
|
|
771
771
|
if (o.current = [].slice.call(arguments), l.current = r, i.current = z, M) {
|
|
772
772
|
if (!s.current && h.current)
|
|
773
773
|
return a.current = i.current, x(I, t), g ? B(i.current) : u.current;
|
|
@@ -897,7 +897,7 @@ const tu = {}, Dr = no(
|
|
|
897
897
|
}, d) => {
|
|
898
898
|
const h = ce(), [m] = le(e || Date.now().toString()), p = ke(null), g = d || p, [f, v] = le(n ? "open" : "hidden"), { extraPadding: b = !0, hasPointer: C = !1, hasForm: _ = !1 } = t, { onOpen: B = () => {
|
|
899
899
|
}, onClose: x = () => {
|
|
900
|
-
} } = o, { readToScreenreadersWhenClosed:
|
|
900
|
+
} } = o, { readToScreenreadersWhenClosed: w = !1, ...T } = l, I = tu[m];
|
|
901
901
|
de(() => {
|
|
902
902
|
const k = g == null ? void 0 : g.current;
|
|
903
903
|
if (k)
|
|
@@ -932,7 +932,7 @@ const tu = {}, Dr = no(
|
|
|
932
932
|
const M = {
|
|
933
933
|
className: "content"
|
|
934
934
|
};
|
|
935
|
-
return
|
|
935
|
+
return w ? M.className = K("content", { hidden: f === "hidden" }) : (M.hidden = f === "hidden", M["aria-live"] = "polite"), /* @__PURE__ */ c.jsx(
|
|
936
936
|
"aside",
|
|
937
937
|
{
|
|
938
938
|
ref: g,
|
|
@@ -1993,7 +1993,10 @@ const am = no(
|
|
|
1993
1993
|
__proto__: null,
|
|
1994
1994
|
default: ii
|
|
1995
1995
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1996
|
-
const q_ = ({
|
|
1996
|
+
const q_ = ({
|
|
1997
|
+
currentStep: e = 1,
|
|
1998
|
+
steps: t = 1
|
|
1999
|
+
}) => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
1997
2000
|
/* @__PURE__ */ c.jsx(qe, { children: /* @__PURE__ */ c.jsx(
|
|
1998
2001
|
mt,
|
|
1999
2002
|
{
|
|
@@ -2933,14 +2936,14 @@ const kn = ({
|
|
|
2933
2936
|
variant: f = "inline",
|
|
2934
2937
|
isCondensed: v = !0,
|
|
2935
2938
|
additionalContentNewLine: b = !1
|
|
2936
|
-
} = i, C = Me(pt), _ = m && C && typeof C.id == "string", [B, x] = le(!1),
|
|
2937
|
-
|
|
2939
|
+
} = i, C = Me(pt), _ = m && C && typeof C.id == "string", [B, x] = le(!1), w = fo(t);
|
|
2940
|
+
w.name || (w.name = h.formatMessage({
|
|
2938
2941
|
id: `member_${typeof t == "string" ? t : "community"}`
|
|
2939
2942
|
}));
|
|
2940
|
-
const { name: T, image: I } =
|
|
2941
|
-
let { url: N } =
|
|
2943
|
+
const { name: T, image: I } = w;
|
|
2944
|
+
let { url: N } = w;
|
|
2942
2945
|
typeof t == "object" && t.link !== void 0 && (t.link === !1 ? N = void 0 : N = t.link);
|
|
2943
|
-
const z = $m(
|
|
2946
|
+
const z = $m(w), M = r && r.createdAt ? Fs(r.createdAt) : !1, k = r && r.createdAt ? Gc(r.createdAt) : "";
|
|
2944
2947
|
return ne.createElement(e, {
|
|
2945
2948
|
...d,
|
|
2946
2949
|
className: K("member text-medium", g, f, l, {
|
|
@@ -2975,7 +2978,7 @@ const kn = ({
|
|
|
2975
2978
|
"data-testid": "member-name",
|
|
2976
2979
|
children: [
|
|
2977
2980
|
/* @__PURE__ */ c.jsx("span", { children: T }),
|
|
2978
|
-
(u == null ? void 0 : u.showBadges) && (
|
|
2981
|
+
(u == null ? void 0 : u.showBadges) && (w == null ? void 0 : w.badges) && /* @__PURE__ */ c.jsx(Pm, { userBadges: w.badges, badgeOptions: u }),
|
|
2979
2982
|
r && /* @__PURE__ */ c.jsxs(
|
|
2980
2983
|
"span",
|
|
2981
2984
|
{
|
|
@@ -3007,11 +3010,11 @@ const kn = ({
|
|
|
3007
3010
|
),
|
|
3008
3011
|
community: (H = (U = r.customMessage) == null ? void 0 : U.link) == null ? void 0 : H.text,
|
|
3009
3012
|
link: (ie) => {
|
|
3010
|
-
var te,
|
|
3013
|
+
var te, D;
|
|
3011
3014
|
return /* @__PURE__ */ c.jsx(
|
|
3012
3015
|
"a",
|
|
3013
3016
|
{
|
|
3014
|
-
href: `${(
|
|
3017
|
+
href: `${(D = (te = r.customMessage) == null ? void 0 : te.link) == null ? void 0 : D.url}`,
|
|
3015
3018
|
onClick: (X) => X.stopPropagation(),
|
|
3016
3019
|
children: ie
|
|
3017
3020
|
}
|
|
@@ -3032,9 +3035,9 @@ const kn = ({
|
|
|
3032
3035
|
className: K({ "text-medium": g === "large" }),
|
|
3033
3036
|
"data-testid": "member-details",
|
|
3034
3037
|
children: v ? z : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
/* @__PURE__ */ c.jsx("span", { className: "location", children:
|
|
3038
|
+
w.role,
|
|
3039
|
+
w.organisation ? ` — ${w.organisation}` : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
3040
|
+
/* @__PURE__ */ c.jsx("span", { className: "location", children: w.country })
|
|
3038
3041
|
] })
|
|
3039
3042
|
}
|
|
3040
3043
|
)
|
|
@@ -3156,8 +3159,8 @@ function qm() {
|
|
|
3156
3159
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
3157
3160
|
function _(x) {
|
|
3158
3161
|
if (typeof x == "object" && x !== null) {
|
|
3159
|
-
var
|
|
3160
|
-
switch (
|
|
3162
|
+
var w = x.$$typeof;
|
|
3163
|
+
switch (w) {
|
|
3161
3164
|
case t:
|
|
3162
3165
|
switch (x = x.type, x) {
|
|
3163
3166
|
case l:
|
|
@@ -3176,11 +3179,11 @@ function qm() {
|
|
|
3176
3179
|
case s:
|
|
3177
3180
|
return x;
|
|
3178
3181
|
default:
|
|
3179
|
-
return
|
|
3182
|
+
return w;
|
|
3180
3183
|
}
|
|
3181
3184
|
}
|
|
3182
3185
|
case n:
|
|
3183
|
-
return
|
|
3186
|
+
return w;
|
|
3184
3187
|
}
|
|
3185
3188
|
}
|
|
3186
3189
|
}
|
|
@@ -3264,11 +3267,11 @@ function Um() {
|
|
|
3264
3267
|
}
|
|
3265
3268
|
}
|
|
3266
3269
|
}
|
|
3267
|
-
var x = l,
|
|
3270
|
+
var x = l, w = u, T = o, I = s, N = t, z = d, M = r, k = g, E = p, O = n, S = a, U = i, H = h, ie = !1;
|
|
3268
3271
|
function te(Q) {
|
|
3269
|
-
return ie || (ie = !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.")),
|
|
3272
|
+
return ie || (ie = !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.")), D(Q) || B(Q) === l;
|
|
3270
3273
|
}
|
|
3271
|
-
function
|
|
3274
|
+
function D(Q) {
|
|
3272
3275
|
return B(Q) === u;
|
|
3273
3276
|
}
|
|
3274
3277
|
function X(Q) {
|
|
@@ -3304,7 +3307,7 @@ function Um() {
|
|
|
3304
3307
|
function ue(Q) {
|
|
3305
3308
|
return B(Q) === h;
|
|
3306
3309
|
}
|
|
3307
|
-
ze.AsyncMode = x, ze.ConcurrentMode =
|
|
3310
|
+
ze.AsyncMode = x, ze.ConcurrentMode = w, ze.ContextConsumer = T, ze.ContextProvider = I, ze.Element = N, ze.ForwardRef = z, ze.Fragment = M, ze.Lazy = k, ze.Memo = E, ze.Portal = O, ze.Profiler = S, ze.StrictMode = U, ze.Suspense = H, ze.isAsyncMode = te, ze.isConcurrentMode = D, ze.isContextConsumer = X, ze.isContextProvider = V, ze.isElement = F, ze.isForwardRef = A, ze.isFragment = j, ze.isLazy = P, ze.isMemo = L, ze.isPortal = Z, ze.isProfiler = q, ze.isStrictMode = re, ze.isSuspense = ue, ze.isValidElementType = _, ze.typeOf = B;
|
|
3308
3311
|
}()), ze;
|
|
3309
3312
|
}
|
|
3310
3313
|
var pu;
|
|
@@ -3445,8 +3448,8 @@ function Vm() {
|
|
|
3445
3448
|
}
|
|
3446
3449
|
return Oa = function(o, l) {
|
|
3447
3450
|
var u = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
3448
|
-
function h(
|
|
3449
|
-
var X =
|
|
3451
|
+
function h(D) {
|
|
3452
|
+
var X = D && (u && D[u] || D[d]);
|
|
3450
3453
|
if (typeof X == "function")
|
|
3451
3454
|
return X;
|
|
3452
3455
|
}
|
|
@@ -3463,7 +3466,7 @@ function Vm() {
|
|
|
3463
3466
|
arrayOf: _,
|
|
3464
3467
|
element: B(),
|
|
3465
3468
|
elementType: x(),
|
|
3466
|
-
instanceOf:
|
|
3469
|
+
instanceOf: w,
|
|
3467
3470
|
node: z(),
|
|
3468
3471
|
objectOf: I,
|
|
3469
3472
|
oneOf: T,
|
|
@@ -3471,14 +3474,14 @@ function Vm() {
|
|
|
3471
3474
|
shape: k,
|
|
3472
3475
|
exact: E
|
|
3473
3476
|
};
|
|
3474
|
-
function g(
|
|
3475
|
-
return
|
|
3477
|
+
function g(D, X) {
|
|
3478
|
+
return D === X ? D !== 0 || 1 / D === 1 / X : D !== D && X !== X;
|
|
3476
3479
|
}
|
|
3477
|
-
function f(
|
|
3478
|
-
this.message =
|
|
3480
|
+
function f(D, X) {
|
|
3481
|
+
this.message = D, this.data = X && typeof X == "object" ? X : {}, this.stack = "";
|
|
3479
3482
|
}
|
|
3480
3483
|
f.prototype = Error.prototype;
|
|
3481
|
-
function v(
|
|
3484
|
+
function v(D) {
|
|
3482
3485
|
if (process.env.NODE_ENV !== "production")
|
|
3483
3486
|
var X = {}, V = 0;
|
|
3484
3487
|
function F(j, P, L, Z, q, re, ue) {
|
|
@@ -3496,19 +3499,19 @@ function Vm() {
|
|
|
3496
3499
|
), X[ve] = !0, V++);
|
|
3497
3500
|
}
|
|
3498
3501
|
}
|
|
3499
|
-
return P[L] == null ? j ? P[L] === null ? new f("The " + q + " `" + re + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new f("The " + q + " `" + re + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null :
|
|
3502
|
+
return P[L] == null ? j ? P[L] === null ? new f("The " + q + " `" + re + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new f("The " + q + " `" + re + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null : D(P, L, Z, q, re);
|
|
3500
3503
|
}
|
|
3501
3504
|
var A = F.bind(null, !1);
|
|
3502
3505
|
return A.isRequired = F.bind(null, !0), A;
|
|
3503
3506
|
}
|
|
3504
|
-
function b(
|
|
3507
|
+
function b(D) {
|
|
3505
3508
|
function X(V, F, A, j, P, L) {
|
|
3506
3509
|
var Z = V[F], q = U(Z);
|
|
3507
|
-
if (q !==
|
|
3510
|
+
if (q !== D) {
|
|
3508
3511
|
var re = H(Z);
|
|
3509
3512
|
return new f(
|
|
3510
|
-
"Invalid " + j + " `" + P + "` of type " + ("`" + re + "` supplied to `" + A + "`, expected ") + ("`" +
|
|
3511
|
-
{ expectedType:
|
|
3513
|
+
"Invalid " + j + " `" + P + "` of type " + ("`" + re + "` supplied to `" + A + "`, expected ") + ("`" + D + "`."),
|
|
3514
|
+
{ expectedType: D }
|
|
3512
3515
|
);
|
|
3513
3516
|
}
|
|
3514
3517
|
return null;
|
|
@@ -3518,9 +3521,9 @@ function Vm() {
|
|
|
3518
3521
|
function C() {
|
|
3519
3522
|
return v(s);
|
|
3520
3523
|
}
|
|
3521
|
-
function _(
|
|
3524
|
+
function _(D) {
|
|
3522
3525
|
function X(V, F, A, j, P) {
|
|
3523
|
-
if (typeof
|
|
3526
|
+
if (typeof D != "function")
|
|
3524
3527
|
return new f("Property `" + P + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
|
|
3525
3528
|
var L = V[F];
|
|
3526
3529
|
if (!Array.isArray(L)) {
|
|
@@ -3528,7 +3531,7 @@ function Vm() {
|
|
|
3528
3531
|
return new f("Invalid " + j + " `" + P + "` of type " + ("`" + Z + "` supplied to `" + A + "`, expected an array."));
|
|
3529
3532
|
}
|
|
3530
3533
|
for (var q = 0; q < L.length; q++) {
|
|
3531
|
-
var re =
|
|
3534
|
+
var re = D(L, q, A, j, P + "[" + q + "]", n);
|
|
3532
3535
|
if (re instanceof Error)
|
|
3533
3536
|
return re;
|
|
3534
3537
|
}
|
|
@@ -3537,7 +3540,7 @@ function Vm() {
|
|
|
3537
3540
|
return v(X);
|
|
3538
3541
|
}
|
|
3539
3542
|
function B() {
|
|
3540
|
-
function
|
|
3543
|
+
function D(X, V, F, A, j) {
|
|
3541
3544
|
var P = X[V];
|
|
3542
3545
|
if (!o(P)) {
|
|
3543
3546
|
var L = U(P);
|
|
@@ -3545,10 +3548,10 @@ function Vm() {
|
|
|
3545
3548
|
}
|
|
3546
3549
|
return null;
|
|
3547
3550
|
}
|
|
3548
|
-
return v(
|
|
3551
|
+
return v(D);
|
|
3549
3552
|
}
|
|
3550
3553
|
function x() {
|
|
3551
|
-
function
|
|
3554
|
+
function D(X, V, F, A, j) {
|
|
3552
3555
|
var P = X[V];
|
|
3553
3556
|
if (!e.isValidElementType(P)) {
|
|
3554
3557
|
var L = U(P);
|
|
@@ -3556,28 +3559,28 @@ function Vm() {
|
|
|
3556
3559
|
}
|
|
3557
3560
|
return null;
|
|
3558
3561
|
}
|
|
3559
|
-
return v(
|
|
3562
|
+
return v(D);
|
|
3560
3563
|
}
|
|
3561
|
-
function D
|
|
3564
|
+
function w(D) {
|
|
3562
3565
|
function X(V, F, A, j, P) {
|
|
3563
|
-
if (!(V[F] instanceof
|
|
3564
|
-
var L =
|
|
3566
|
+
if (!(V[F] instanceof D)) {
|
|
3567
|
+
var L = D.name || m, Z = te(V[F]);
|
|
3565
3568
|
return new f("Invalid " + j + " `" + P + "` of type " + ("`" + Z + "` supplied to `" + A + "`, expected ") + ("instance of `" + L + "`."));
|
|
3566
3569
|
}
|
|
3567
3570
|
return null;
|
|
3568
3571
|
}
|
|
3569
3572
|
return v(X);
|
|
3570
3573
|
}
|
|
3571
|
-
function T(
|
|
3572
|
-
if (!Array.isArray(
|
|
3574
|
+
function T(D) {
|
|
3575
|
+
if (!Array.isArray(D))
|
|
3573
3576
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
3574
3577
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
3575
3578
|
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
3576
3579
|
function X(V, F, A, j, P) {
|
|
3577
|
-
for (var L = V[F], Z = 0; Z <
|
|
3578
|
-
if (g(L,
|
|
3580
|
+
for (var L = V[F], Z = 0; Z < D.length; Z++)
|
|
3581
|
+
if (g(L, D[Z]))
|
|
3579
3582
|
return null;
|
|
3580
|
-
var q = JSON.stringify(
|
|
3583
|
+
var q = JSON.stringify(D, function(ue, Q) {
|
|
3581
3584
|
var ve = H(Q);
|
|
3582
3585
|
return ve === "symbol" ? String(Q) : Q;
|
|
3583
3586
|
});
|
|
@@ -3585,16 +3588,16 @@ function Vm() {
|
|
|
3585
3588
|
}
|
|
3586
3589
|
return v(X);
|
|
3587
3590
|
}
|
|
3588
|
-
function I(
|
|
3591
|
+
function I(D) {
|
|
3589
3592
|
function X(V, F, A, j, P) {
|
|
3590
|
-
if (typeof
|
|
3593
|
+
if (typeof D != "function")
|
|
3591
3594
|
return new f("Property `" + P + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
|
|
3592
3595
|
var L = V[F], Z = U(L);
|
|
3593
3596
|
if (Z !== "object")
|
|
3594
3597
|
return new f("Invalid " + j + " `" + P + "` of type " + ("`" + Z + "` supplied to `" + A + "`, expected an object."));
|
|
3595
3598
|
for (var q in L)
|
|
3596
3599
|
if (r(L, q)) {
|
|
3597
|
-
var re =
|
|
3600
|
+
var re = D(L, q, A, j, P + "." + q, n);
|
|
3598
3601
|
if (re instanceof Error)
|
|
3599
3602
|
return re;
|
|
3600
3603
|
}
|
|
@@ -3602,19 +3605,19 @@ function Vm() {
|
|
|
3602
3605
|
}
|
|
3603
3606
|
return v(X);
|
|
3604
3607
|
}
|
|
3605
|
-
function N(
|
|
3606
|
-
if (!Array.isArray(
|
|
3608
|
+
function N(D) {
|
|
3609
|
+
if (!Array.isArray(D))
|
|
3607
3610
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
3608
|
-
for (var X = 0; X <
|
|
3609
|
-
var V =
|
|
3611
|
+
for (var X = 0; X < D.length; X++) {
|
|
3612
|
+
var V = D[X];
|
|
3610
3613
|
if (typeof V != "function")
|
|
3611
3614
|
return a(
|
|
3612
3615
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ie(V) + " at index " + X + "."
|
|
3613
3616
|
), s;
|
|
3614
3617
|
}
|
|
3615
3618
|
function F(A, j, P, L, Z) {
|
|
3616
|
-
for (var q = [], re = 0; re <
|
|
3617
|
-
var ue =
|
|
3619
|
+
for (var q = [], re = 0; re < D.length; re++) {
|
|
3620
|
+
var ue = D[re], Q = ue(A, j, P, L, Z, n);
|
|
3618
3621
|
if (Q == null)
|
|
3619
3622
|
return null;
|
|
3620
3623
|
Q.data && r(Q.data, "expectedType") && q.push(Q.data.expectedType);
|
|
@@ -3625,23 +3628,23 @@ function Vm() {
|
|
|
3625
3628
|
return v(F);
|
|
3626
3629
|
}
|
|
3627
3630
|
function z() {
|
|
3628
|
-
function
|
|
3631
|
+
function D(X, V, F, A, j) {
|
|
3629
3632
|
return O(X[V]) ? null : new f("Invalid " + A + " `" + j + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
|
|
3630
3633
|
}
|
|
3631
|
-
return v(
|
|
3634
|
+
return v(D);
|
|
3632
3635
|
}
|
|
3633
|
-
function M(
|
|
3636
|
+
function M(D, X, V, F, A) {
|
|
3634
3637
|
return new f(
|
|
3635
|
-
(
|
|
3638
|
+
(D || "React class") + ": " + X + " type `" + V + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
|
|
3636
3639
|
);
|
|
3637
3640
|
}
|
|
3638
|
-
function k(
|
|
3641
|
+
function k(D) {
|
|
3639
3642
|
function X(V, F, A, j, P) {
|
|
3640
3643
|
var L = V[F], Z = U(L);
|
|
3641
3644
|
if (Z !== "object")
|
|
3642
3645
|
return new f("Invalid " + j + " `" + P + "` of type `" + Z + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
3643
|
-
for (var q in
|
|
3644
|
-
var re =
|
|
3646
|
+
for (var q in D) {
|
|
3647
|
+
var re = D[q];
|
|
3645
3648
|
if (typeof re != "function")
|
|
3646
3649
|
return M(A, j, P, q, H(re));
|
|
3647
3650
|
var ue = re(L, q, A, j, P + "." + q, n);
|
|
@@ -3652,20 +3655,20 @@ function Vm() {
|
|
|
3652
3655
|
}
|
|
3653
3656
|
return v(X);
|
|
3654
3657
|
}
|
|
3655
|
-
function E(
|
|
3658
|
+
function E(D) {
|
|
3656
3659
|
function X(V, F, A, j, P) {
|
|
3657
3660
|
var L = V[F], Z = U(L);
|
|
3658
3661
|
if (Z !== "object")
|
|
3659
3662
|
return new f("Invalid " + j + " `" + P + "` of type `" + Z + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
3660
|
-
var q = t({}, V[F],
|
|
3663
|
+
var q = t({}, V[F], D);
|
|
3661
3664
|
for (var re in q) {
|
|
3662
|
-
var ue =
|
|
3663
|
-
if (r(
|
|
3665
|
+
var ue = D[re];
|
|
3666
|
+
if (r(D, re) && typeof ue != "function")
|
|
3664
3667
|
return M(A, j, P, re, H(ue));
|
|
3665
3668
|
if (!ue)
|
|
3666
3669
|
return new f(
|
|
3667
3670
|
"Invalid " + j + " `" + P + "` key `" + re + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(V[F], null, " ") + `
|
|
3668
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
3671
|
+
Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
|
|
3669
3672
|
);
|
|
3670
3673
|
var Q = ue(L, re, A, j, P + "." + re, n);
|
|
3671
3674
|
if (Q)
|
|
@@ -3675,23 +3678,23 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
3675
3678
|
}
|
|
3676
3679
|
return v(X);
|
|
3677
3680
|
}
|
|
3678
|
-
function O(
|
|
3679
|
-
switch (typeof
|
|
3681
|
+
function O(D) {
|
|
3682
|
+
switch (typeof D) {
|
|
3680
3683
|
case "number":
|
|
3681
3684
|
case "string":
|
|
3682
3685
|
case "undefined":
|
|
3683
3686
|
return !0;
|
|
3684
3687
|
case "boolean":
|
|
3685
|
-
return !
|
|
3688
|
+
return !D;
|
|
3686
3689
|
case "object":
|
|
3687
|
-
if (Array.isArray(
|
|
3688
|
-
return
|
|
3689
|
-
if (
|
|
3690
|
+
if (Array.isArray(D))
|
|
3691
|
+
return D.every(O);
|
|
3692
|
+
if (D === null || o(D))
|
|
3690
3693
|
return !0;
|
|
3691
|
-
var X = h(
|
|
3694
|
+
var X = h(D);
|
|
3692
3695
|
if (X) {
|
|
3693
|
-
var V = X.call(
|
|
3694
|
-
if (X !==
|
|
3696
|
+
var V = X.call(D), F;
|
|
3697
|
+
if (X !== D.entries) {
|
|
3695
3698
|
for (; !(F = V.next()).done; )
|
|
3696
3699
|
if (!O(F.value))
|
|
3697
3700
|
return !1;
|
|
@@ -3708,27 +3711,27 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
3708
3711
|
return !1;
|
|
3709
3712
|
}
|
|
3710
3713
|
}
|
|
3711
|
-
function S(
|
|
3712
|
-
return
|
|
3714
|
+
function S(D, X) {
|
|
3715
|
+
return D === "symbol" ? !0 : X ? X["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && X instanceof Symbol : !1;
|
|
3713
3716
|
}
|
|
3714
|
-
function U(
|
|
3715
|
-
var X = typeof
|
|
3716
|
-
return Array.isArray(
|
|
3717
|
+
function U(D) {
|
|
3718
|
+
var X = typeof D;
|
|
3719
|
+
return Array.isArray(D) ? "array" : D instanceof RegExp ? "object" : S(X, D) ? "symbol" : X;
|
|
3717
3720
|
}
|
|
3718
|
-
function H(
|
|
3719
|
-
if (typeof
|
|
3720
|
-
return "" +
|
|
3721
|
-
var X = U(
|
|
3721
|
+
function H(D) {
|
|
3722
|
+
if (typeof D > "u" || D === null)
|
|
3723
|
+
return "" + D;
|
|
3724
|
+
var X = U(D);
|
|
3722
3725
|
if (X === "object") {
|
|
3723
|
-
if (
|
|
3726
|
+
if (D instanceof Date)
|
|
3724
3727
|
return "date";
|
|
3725
|
-
if (
|
|
3728
|
+
if (D instanceof RegExp)
|
|
3726
3729
|
return "regexp";
|
|
3727
3730
|
}
|
|
3728
3731
|
return X;
|
|
3729
3732
|
}
|
|
3730
|
-
function ie(
|
|
3731
|
-
var X = H(
|
|
3733
|
+
function ie(D) {
|
|
3734
|
+
var X = H(D);
|
|
3732
3735
|
switch (X) {
|
|
3733
3736
|
case "array":
|
|
3734
3737
|
case "object":
|
|
@@ -3741,8 +3744,8 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
3741
3744
|
return X;
|
|
3742
3745
|
}
|
|
3743
3746
|
}
|
|
3744
|
-
function te(
|
|
3745
|
-
return !
|
|
3747
|
+
function te(D) {
|
|
3748
|
+
return !D.constructor || !D.constructor.name ? m : D.constructor.name;
|
|
3746
3749
|
}
|
|
3747
3750
|
return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
|
|
3748
3751
|
}, Oa;
|
|
@@ -4179,12 +4182,12 @@ var _u = {
|
|
|
4179
4182
|
return k;
|
|
4180
4183
|
}, m = function() {
|
|
4181
4184
|
if (s.containerGroups = s.containers.map(function(k) {
|
|
4182
|
-
var E = gd(k, a.tabbableOptions), O = vd(k, a.tabbableOptions), S = E.length > 0 ? E[0] : void 0, U = E.length > 0 ? E[E.length - 1] : void 0, H = O.find(function(
|
|
4183
|
-
return jn(
|
|
4184
|
-
}), ie = O.slice().reverse().find(function(
|
|
4185
|
-
return jn(
|
|
4186
|
-
}), te = !!E.find(function(
|
|
4187
|
-
return Cn(
|
|
4185
|
+
var E = gd(k, a.tabbableOptions), O = vd(k, a.tabbableOptions), S = E.length > 0 ? E[0] : void 0, U = E.length > 0 ? E[E.length - 1] : void 0, H = O.find(function(D) {
|
|
4186
|
+
return jn(D);
|
|
4187
|
+
}), ie = O.slice().reverse().find(function(D) {
|
|
4188
|
+
return jn(D);
|
|
4189
|
+
}), te = !!E.find(function(D) {
|
|
4190
|
+
return Cn(D) > 0;
|
|
4188
4191
|
});
|
|
4189
4192
|
return {
|
|
4190
4193
|
container: k,
|
|
@@ -4258,12 +4261,12 @@ var _u = {
|
|
|
4258
4261
|
if (ie < 0)
|
|
4259
4262
|
U ? H = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : H = s.tabbableGroups[0].firstTabbableNode;
|
|
4260
4263
|
else if (U) {
|
|
4261
|
-
var
|
|
4264
|
+
var D = Fu(s.tabbableGroups, function(P) {
|
|
4262
4265
|
var L = P.firstTabbableNode;
|
|
4263
4266
|
return E === L;
|
|
4264
4267
|
});
|
|
4265
|
-
if (
|
|
4266
|
-
var X =
|
|
4268
|
+
if (D < 0 && (te.container === E || Ni(E, a.tabbableOptions) && !jn(E, a.tabbableOptions) && !te.nextTabbableNode(E, !1)) && (D = ie), D >= 0) {
|
|
4269
|
+
var X = D === 0 ? s.tabbableGroups.length - 1 : D - 1, V = s.tabbableGroups[X];
|
|
4267
4270
|
H = Cn(E) >= 0 ? V.lastTabbableNode : V.lastDomTabbableNode;
|
|
4268
4271
|
} else
|
|
4269
4272
|
$r(O) || (H = te.nextTabbableNode(E, !1));
|
|
@@ -4309,14 +4312,14 @@ var _u = {
|
|
|
4309
4312
|
if (Cn(s.mostRecentlyFocusedNode) > 0) {
|
|
4310
4313
|
var H = u(s.mostRecentlyFocusedNode), ie = s.containerGroups[H].tabbableNodes;
|
|
4311
4314
|
if (ie.length > 0) {
|
|
4312
|
-
var te = ie.findIndex(function(
|
|
4313
|
-
return
|
|
4315
|
+
var te = ie.findIndex(function(D) {
|
|
4316
|
+
return D === s.mostRecentlyFocusedNode;
|
|
4314
4317
|
});
|
|
4315
4318
|
te >= 0 && (a.isKeyForward(s.recentNavEvent) ? te + 1 < ie.length && (S = ie[te + 1], U = !1) : te - 1 >= 0 && (S = ie[te - 1], U = !1));
|
|
4316
4319
|
}
|
|
4317
4320
|
} else
|
|
4318
|
-
s.containerGroups.some(function(
|
|
4319
|
-
return
|
|
4321
|
+
s.containerGroups.some(function(D) {
|
|
4322
|
+
return D.tabbableNodes.some(function(X) {
|
|
4320
4323
|
return Cn(X) > 0;
|
|
4321
4324
|
});
|
|
4322
4325
|
}) || (U = !1);
|
|
@@ -4347,7 +4350,7 @@ var _u = {
|
|
|
4347
4350
|
}, x = function(k) {
|
|
4348
4351
|
var E = mi(k);
|
|
4349
4352
|
u(E, k) >= 0 || Ar(a.clickOutsideDeactivates, k) || Ar(a.allowOutsideClick, k) || (k.preventDefault(), k.stopImmediatePropagation());
|
|
4350
|
-
},
|
|
4353
|
+
}, w = function() {
|
|
4351
4354
|
if (s.active)
|
|
4352
4355
|
return _u.activateTrap(i, o), s.delayInitialFocusTimer = a.delayInitialFocus ? ku(function() {
|
|
4353
4356
|
g(h());
|
|
@@ -4396,7 +4399,7 @@ var _u = {
|
|
|
4396
4399
|
var E = l(k, "onActivate"), O = l(k, "onPostActivate"), S = l(k, "checkCanFocusTrap");
|
|
4397
4400
|
S || m(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = r.activeElement, E == null || E();
|
|
4398
4401
|
var U = function() {
|
|
4399
|
-
S && m(),
|
|
4402
|
+
S && m(), w(), z(), O == null || O();
|
|
4400
4403
|
};
|
|
4401
4404
|
return S ? (S(s.containers.concat()).then(U, U), this) : (U(), this);
|
|
4402
4405
|
},
|
|
@@ -4428,7 +4431,7 @@ var _u = {
|
|
|
4428
4431
|
if (!s.paused || !s.active)
|
|
4429
4432
|
return this;
|
|
4430
4433
|
var E = l(k, "onUnpause"), O = l(k, "onPostUnpause");
|
|
4431
|
-
return s.paused = !1, E == null || E(), m(),
|
|
4434
|
+
return s.paused = !1, E == null || E(), m(), w(), z(), O == null || O(), this;
|
|
4432
4435
|
},
|
|
4433
4436
|
updateContainerElements: function(k) {
|
|
4434
4437
|
var E = [].concat(k).filter(Boolean);
|
|
@@ -4796,7 +4799,7 @@ const An = ({
|
|
|
4796
4799
|
f && N.key === "Escape" && T(!1);
|
|
4797
4800
|
}, x = (N) => {
|
|
4798
4801
|
C(N.target);
|
|
4799
|
-
},
|
|
4802
|
+
}, w = (N) => {
|
|
4800
4803
|
b === _.current && N.target === _.current && T(!1), C(null);
|
|
4801
4804
|
};
|
|
4802
4805
|
de(() => {
|
|
@@ -4806,8 +4809,8 @@ const An = ({
|
|
|
4806
4809
|
};
|
|
4807
4810
|
}, [f]), de(() => {
|
|
4808
4811
|
const N = _.current;
|
|
4809
|
-
return N && (N.addEventListener("mousedown", x), N.addEventListener("mouseup",
|
|
4810
|
-
N && (N.removeEventListener("mousedown", x), N.removeEventListener("mouseup",
|
|
4812
|
+
return N && (N.addEventListener("mousedown", x), N.addEventListener("mouseup", w)), () => {
|
|
4813
|
+
N && (N.removeEventListener("mousedown", x), N.removeEventListener("mouseup", w));
|
|
4811
4814
|
};
|
|
4812
4815
|
}, [b]);
|
|
4813
4816
|
const T = (N) => {
|
|
@@ -5478,7 +5481,7 @@ const J_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
5478
5481
|
if (B && !h(B))
|
|
5479
5482
|
return;
|
|
5480
5483
|
f = r(f, v, x);
|
|
5481
|
-
const
|
|
5484
|
+
const w = s === f, T = {};
|
|
5482
5485
|
C || (T["aria-controls"] = f, T.onClick = (I) => {
|
|
5483
5486
|
I.preventDefault(), I.stopPropagation(), o(f), !n && (window.location.hash = `#${f}`);
|
|
5484
5487
|
}, p.push(
|
|
@@ -5486,10 +5489,10 @@ const J_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
5486
5489
|
"section",
|
|
5487
5490
|
{
|
|
5488
5491
|
id: f,
|
|
5489
|
-
hidden: !
|
|
5492
|
+
hidden: !w,
|
|
5490
5493
|
role: "tabpanel",
|
|
5491
5494
|
"aria-labelledby": `tab-${f}`,
|
|
5492
|
-
"aria-live":
|
|
5495
|
+
"aria-live": w ? "assertive" : "off",
|
|
5493
5496
|
children: typeof b == "string" ? /* @__PURE__ */ c.jsx("p", { children: b }) : b
|
|
5494
5497
|
},
|
|
5495
5498
|
`section-${f}`
|
|
@@ -5501,10 +5504,10 @@ const J_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
5501
5504
|
href: C || `#${f}`,
|
|
5502
5505
|
id: `tab-${f}`,
|
|
5503
5506
|
"aria-controls": f,
|
|
5504
|
-
className: K({ selected:
|
|
5507
|
+
className: K({ selected: w }),
|
|
5505
5508
|
role: "tab",
|
|
5506
|
-
tabIndex:
|
|
5507
|
-
"aria-selected":
|
|
5509
|
+
tabIndex: w ? 0 : -1,
|
|
5510
|
+
"aria-selected": w,
|
|
5508
5511
|
onKeyDown: (I) => d(I, x),
|
|
5509
5512
|
...T,
|
|
5510
5513
|
children: v
|
|
@@ -5806,12 +5809,12 @@ const Jn = {
|
|
|
5806
5809
|
d && !g ? (async () => {
|
|
5807
5810
|
try {
|
|
5808
5811
|
const x = await o(d) || [];
|
|
5809
|
-
f((
|
|
5810
|
-
...
|
|
5812
|
+
f((w) => ({
|
|
5813
|
+
...w,
|
|
5811
5814
|
predictions: x
|
|
5812
5815
|
}));
|
|
5813
5816
|
} catch (x) {
|
|
5814
|
-
console.error("Error fetching predictions:", x), f((
|
|
5817
|
+
console.error("Error fetching predictions:", x), f((w) => ({ ...w, predictions: [] }));
|
|
5815
5818
|
}
|
|
5816
5819
|
})() : f((B) => ({ ...B, predictions: [] }));
|
|
5817
5820
|
}, [d, g]), de(() => {
|
|
@@ -5874,8 +5877,8 @@ const Jn = {
|
|
|
5874
5877
|
"li",
|
|
5875
5878
|
{
|
|
5876
5879
|
onClick: () => _(B),
|
|
5877
|
-
onMouseEnter: () => f((
|
|
5878
|
-
...
|
|
5880
|
+
onMouseEnter: () => f((w) => ({
|
|
5881
|
+
...w,
|
|
5879
5882
|
activePredictionIndex: x
|
|
5880
5883
|
})),
|
|
5881
5884
|
className: K("predictions-list-item", {
|
|
@@ -5953,13 +5956,13 @@ const Cd = ({
|
|
|
5953
5956
|
case "ArrowLeft":
|
|
5954
5957
|
case "ArrowRight":
|
|
5955
5958
|
C.stopPropagation(), C.preventDefault();
|
|
5956
|
-
const
|
|
5957
|
-
let T =
|
|
5959
|
+
const w = C.currentTarget;
|
|
5960
|
+
let T = w == null ? void 0 : w.nextElementSibling;
|
|
5958
5961
|
if (C.key === "ArrowLeft") {
|
|
5959
|
-
const I =
|
|
5960
|
-
I ? T = I : T = (_ =
|
|
5962
|
+
const I = w == null ? void 0 : w.previousElementSibling;
|
|
5963
|
+
I ? T = I : T = (_ = w == null ? void 0 : w.parentElement) == null ? void 0 : _.lastElementChild;
|
|
5961
5964
|
} else
|
|
5962
|
-
T || (T = (B =
|
|
5965
|
+
T || (T = (B = w == null ? void 0 : w.parentElement) == null ? void 0 : B.firstElementChild);
|
|
5963
5966
|
T && ((x = T == null ? void 0 : T.querySelector("label")) == null || x.focus());
|
|
5964
5967
|
break;
|
|
5965
5968
|
}
|
|
@@ -6008,7 +6011,7 @@ const ng = ({
|
|
|
6008
6011
|
f != null && f.includes(T.id) ? I = f.filter((N) => N !== T.id) : I = [...f, T.id], v([...I]), C && C([...I]);
|
|
6009
6012
|
} else
|
|
6010
6013
|
v([T]), C && C(T.id), m(!1);
|
|
6011
|
-
},
|
|
6014
|
+
}, w = (T) => {
|
|
6012
6015
|
if (T === "all") {
|
|
6013
6016
|
const I = (t == null ? void 0 : t.map((N) => N.id)) || [];
|
|
6014
6017
|
v(I), C && C(I);
|
|
@@ -6074,7 +6077,7 @@ const ng = ({
|
|
|
6074
6077
|
{
|
|
6075
6078
|
variant: "tertiary",
|
|
6076
6079
|
size: "small",
|
|
6077
|
-
onClick: () =>
|
|
6080
|
+
onClick: () => w("all"),
|
|
6078
6081
|
className: "gtm-trackable",
|
|
6079
6082
|
"data-gtm-event-type": "all-click",
|
|
6080
6083
|
"data-gtm-event-context": a,
|
|
@@ -6086,7 +6089,7 @@ const ng = ({
|
|
|
6086
6089
|
{
|
|
6087
6090
|
variant: "tertiary",
|
|
6088
6091
|
size: "small",
|
|
6089
|
-
onClick: () =>
|
|
6092
|
+
onClick: () => w("none"),
|
|
6090
6093
|
className: "gtm-trackable",
|
|
6091
6094
|
"data-gtm-event-type": "none-click",
|
|
6092
6095
|
"data-gtm-event-context": a,
|
|
@@ -6175,13 +6178,13 @@ const Bu = ({
|
|
|
6175
6178
|
const B = `${r}_${v}`, x = () => {
|
|
6176
6179
|
if (_)
|
|
6177
6180
|
return;
|
|
6178
|
-
let
|
|
6181
|
+
let w;
|
|
6179
6182
|
if (a) {
|
|
6180
6183
|
const T = g == null ? void 0 : g.indexOf(C);
|
|
6181
|
-
Array.isArray(g) && T >= 0 ? (
|
|
6184
|
+
Array.isArray(g) && T >= 0 ? (w = g, w.splice(T, 1)) : (!g || g.length === 0 ? w = [] : w = g, w.push(C));
|
|
6182
6185
|
} else
|
|
6183
|
-
|
|
6184
|
-
t.onChange(
|
|
6186
|
+
w = f === C ? void 0 : C;
|
|
6187
|
+
t.onChange(w);
|
|
6185
6188
|
};
|
|
6186
6189
|
return /* @__PURE__ */ c.jsx(
|
|
6187
6190
|
Cd,
|
|
@@ -6289,12 +6292,12 @@ const Xn = {
|
|
|
6289
6292
|
functions: Mn(i),
|
|
6290
6293
|
value: u
|
|
6291
6294
|
};
|
|
6292
|
-
const
|
|
6295
|
+
const w = (M) => {
|
|
6293
6296
|
x["aria-describedby"] ? x["aria-describedby"] += ` ${M}` : x["aria-describedby"] = M;
|
|
6294
6297
|
};
|
|
6295
6298
|
if (a > 0) {
|
|
6296
6299
|
const M = Qp(a, i.onChange);
|
|
6297
|
-
|
|
6300
|
+
w(`${_}-info`), x = {
|
|
6298
6301
|
...x,
|
|
6299
6302
|
...M
|
|
6300
6303
|
}, M.functions && typeof M.functions == "object" && (x.functions = {
|
|
@@ -6302,7 +6305,7 @@ const Xn = {
|
|
|
6302
6305
|
...M.functions
|
|
6303
6306
|
});
|
|
6304
6307
|
}
|
|
6305
|
-
o && Xn[o] && Xn[o].props && (x = { ...x, ...Xn[o].props }), v && (x.intlPath = `${t}_${e}`), r && (x["aria-invalid"] = !0, x["aria-errormessage"] = C,
|
|
6308
|
+
o && Xn[o] && Xn[o].props && (x = { ...x, ...Xn[o].props }), v && (x.intlPath = `${t}_${e}`), r && (x["aria-invalid"] = !0, x["aria-errormessage"] = C, w(C));
|
|
6306
6309
|
const T = h.label || m.formatMessage({ id: t ? `${t}_${e}` : e }), I = ({ ...M }) => r ? ne.createElement(
|
|
6307
6310
|
M.as || "p",
|
|
6308
6311
|
{
|
|
@@ -6490,7 +6493,7 @@ const pn = ({
|
|
|
6490
6493
|
showRequiredLabels: B = !0,
|
|
6491
6494
|
showSuccessMessage: x = !1
|
|
6492
6495
|
} = l || {}, {
|
|
6493
|
-
onSuccess:
|
|
6496
|
+
onSuccess: w = async () => {
|
|
6494
6497
|
},
|
|
6495
6498
|
onCancel: T = () => {
|
|
6496
6499
|
},
|
|
@@ -6538,9 +6541,9 @@ const pn = ({
|
|
|
6538
6541
|
const ie = ke(null), te = i || ie;
|
|
6539
6542
|
if (!t.length)
|
|
6540
6543
|
return null;
|
|
6541
|
-
const
|
|
6542
|
-
s.children && (
|
|
6543
|
-
f.text && typeof f.text != "string" && A in f.text ?
|
|
6544
|
+
const D = {};
|
|
6545
|
+
s.children && (D.default = s.children), f.text && typeof f.text == "string" && (D.default = f.text), ["default", "submitting", "submitted"].forEach((A) => {
|
|
6546
|
+
f.text && typeof f.text != "string" && A in f.text ? D[A] = f.text[A] : D[A] || (D[A] = z.formatMessage({
|
|
6544
6547
|
id: `form_${A === "default" ? "submit" : A}`
|
|
6545
6548
|
}));
|
|
6546
6549
|
}), delete f.text;
|
|
@@ -6567,7 +6570,7 @@ const pn = ({
|
|
|
6567
6570
|
dispatch: E,
|
|
6568
6571
|
onSuccess: async (A) => {
|
|
6569
6572
|
try {
|
|
6570
|
-
await
|
|
6573
|
+
await w(A), E({ type: C ? "formSubmittedAndReset" : "formSubmitted" });
|
|
6571
6574
|
} catch (j) {
|
|
6572
6575
|
I(j), E({
|
|
6573
6576
|
type: "updateValue",
|
|
@@ -6605,7 +6608,7 @@ const pn = ({
|
|
|
6605
6608
|
disabled: S || U || s.disabled,
|
|
6606
6609
|
"data-gtm-event-context": d.context,
|
|
6607
6610
|
"data-gtm-event-type": d.event,
|
|
6608
|
-
children:
|
|
6611
|
+
children: D[S ? "submitting" : U ? "submitted" : "default"]
|
|
6609
6612
|
}
|
|
6610
6613
|
];
|
|
6611
6614
|
return b && F.unshift({
|
|
@@ -6937,29 +6940,29 @@ function hv(e, t, n) {
|
|
|
6937
6940
|
if (typeof e != "function")
|
|
6938
6941
|
throw new TypeError(cv);
|
|
6939
6942
|
t = Nu(t) || 0, lv(n) && (d = !!n.leading, h = "maxWait" in n, a = h ? dv(Nu(n.maxWait) || 0, t) : a, m = "trailing" in n ? !!n.trailing : m);
|
|
6940
|
-
function p(
|
|
6943
|
+
function p(w) {
|
|
6941
6944
|
var T = r, I = i;
|
|
6942
|
-
return r = i = void 0, u =
|
|
6945
|
+
return r = i = void 0, u = w, s = e.apply(I, T), s;
|
|
6943
6946
|
}
|
|
6944
|
-
function g(
|
|
6945
|
-
return u =
|
|
6947
|
+
function g(w) {
|
|
6948
|
+
return u = w, o = setTimeout(b, t), d ? p(w) : s;
|
|
6946
6949
|
}
|
|
6947
|
-
function f(
|
|
6948
|
-
var T =
|
|
6950
|
+
function f(w) {
|
|
6951
|
+
var T = w - l, I = w - u, N = t - T;
|
|
6949
6952
|
return h ? fv(N, a - I) : N;
|
|
6950
6953
|
}
|
|
6951
|
-
function v(
|
|
6952
|
-
var T =
|
|
6954
|
+
function v(w) {
|
|
6955
|
+
var T = w - l, I = w - u;
|
|
6953
6956
|
return l === void 0 || T >= t || T < 0 || h && I >= a;
|
|
6954
6957
|
}
|
|
6955
6958
|
function b() {
|
|
6956
|
-
var
|
|
6957
|
-
if (v(
|
|
6958
|
-
return C(
|
|
6959
|
-
o = setTimeout(b, f(
|
|
6959
|
+
var w = $a();
|
|
6960
|
+
if (v(w))
|
|
6961
|
+
return C(w);
|
|
6962
|
+
o = setTimeout(b, f(w));
|
|
6960
6963
|
}
|
|
6961
|
-
function C(
|
|
6962
|
-
return o = void 0, m && r ? p(
|
|
6964
|
+
function C(w) {
|
|
6965
|
+
return o = void 0, m && r ? p(w) : (r = i = void 0, s);
|
|
6963
6966
|
}
|
|
6964
6967
|
function _() {
|
|
6965
6968
|
o !== void 0 && clearTimeout(o), u = 0, r = l = i = o = void 0;
|
|
@@ -6968,8 +6971,8 @@ function hv(e, t, n) {
|
|
|
6968
6971
|
return o === void 0 ? s : C($a());
|
|
6969
6972
|
}
|
|
6970
6973
|
function x() {
|
|
6971
|
-
var
|
|
6972
|
-
if (r = arguments, i = this, l =
|
|
6974
|
+
var w = $a(), T = v(w);
|
|
6975
|
+
if (r = arguments, i = this, l = w, T) {
|
|
6973
6976
|
if (o === void 0)
|
|
6974
6977
|
return g(l);
|
|
6975
6978
|
if (h)
|
|
@@ -7029,15 +7032,15 @@ const xv = /* @__PURE__ */ Wn(yv), Mu = (e) => typeof e == "object" && e != null
|
|
|
7029
7032
|
}
|
|
7030
7033
|
g != null && g === document.body && Ia(g) && !Ia(document.documentElement) || g != null && Ia(g, d) && p.push(g);
|
|
7031
7034
|
}
|
|
7032
|
-
const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, v = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: b, scrollY: C } = window, { height: _, width: B, top: x, right:
|
|
7035
|
+
const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, v = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: b, scrollY: C } = window, { height: _, width: B, top: x, right: w, bottom: T, left: I } = e.getBoundingClientRect(), { top: N, right: z, bottom: M, left: k } = ((U) => {
|
|
7033
7036
|
const H = window.getComputedStyle(U);
|
|
7034
7037
|
return { top: parseFloat(H.scrollMarginTop) || 0, right: parseFloat(H.scrollMarginRight) || 0, bottom: parseFloat(H.scrollMarginBottom) || 0, left: parseFloat(H.scrollMarginLeft) || 0 };
|
|
7035
7038
|
})(e);
|
|
7036
|
-
let E = o === "start" || o === "nearest" ? x - N : o === "end" ? T + M : x + _ / 2 - N + M, O = l === "center" ? I + B / 2 - k + z : l === "end" ?
|
|
7039
|
+
let E = o === "start" || o === "nearest" ? x - N : o === "end" ? T + M : x + _ / 2 - N + M, O = l === "center" ? I + B / 2 - k + z : l === "end" ? w + z : I - k;
|
|
7037
7040
|
const S = [];
|
|
7038
7041
|
for (let U = 0; U < p.length; U++) {
|
|
7039
|
-
const H = p[U], { height: ie, width: te, top:
|
|
7040
|
-
if (s === "if-needed" && x >= 0 && I >= 0 && T <= v &&
|
|
7042
|
+
const H = p[U], { height: ie, width: te, top: D, right: X, bottom: V, left: F } = H.getBoundingClientRect();
|
|
7043
|
+
if (s === "if-needed" && x >= 0 && I >= 0 && T <= v && w <= f && x >= D && T <= V && I >= F && w <= X)
|
|
7041
7044
|
return S;
|
|
7042
7045
|
const A = getComputedStyle(H), j = parseInt(A.borderLeftWidth, 10), P = parseInt(A.borderTopWidth, 10), L = parseInt(A.borderRightWidth, 10), Z = parseInt(A.borderBottomWidth, 10);
|
|
7043
7046
|
let q = 0, re = 0;
|
|
@@ -7045,7 +7048,7 @@ const xv = /* @__PURE__ */ Wn(yv), Mu = (e) => typeof e == "object" && e != null
|
|
|
7045
7048
|
if (m === H)
|
|
7046
7049
|
q = o === "start" ? E : o === "end" ? E - v : o === "nearest" ? xi(C, C + v, v, P, Z, C + E, C + E + _, _) : E - v / 2, re = l === "start" ? O : l === "center" ? O - f / 2 : l === "end" ? O - f : xi(b, b + f, f, j, L, b + O, b + O + B, B), q = Math.max(0, q + C), re = Math.max(0, re + b);
|
|
7047
7050
|
else {
|
|
7048
|
-
q = o === "start" ? E -
|
|
7051
|
+
q = o === "start" ? E - D - P : o === "end" ? E - V + Z + Q : o === "nearest" ? xi(D, V, ie, P, Z + Q, E, E + _, _) : E - (D + ie / 2) + Q / 2, re = l === "start" ? O - F - j : l === "center" ? O - (F + te / 2) + ue / 2 : l === "end" ? O - X + L + ue : xi(F, X, te, j, L + ue, O, O + B, B);
|
|
7049
7052
|
const { scrollLeft: Be, scrollTop: Se } = H;
|
|
7050
7053
|
q = ge === 0 ? 0 : Math.max(0, Math.min(Se + q / ge, H.scrollHeight - ie / ge + Q)), re = ve === 0 ? 0 : Math.max(0, Math.min(Be + re / ve, H.scrollWidth - te / ve + ue)), E += Se - q, O += Be - re;
|
|
7051
7054
|
}
|
|
@@ -7855,14 +7858,14 @@ var Lv = (e, t, n) => {
|
|
|
7855
7858
|
case "merge_node": {
|
|
7856
7859
|
var {
|
|
7857
7860
|
path: b
|
|
7858
|
-
} = n, C = oe.get(e, b), _ = $.previous(b), B = oe.get(e, _), x = oe.parent(e, b),
|
|
7861
|
+
} = n, C = oe.get(e, b), _ = $.previous(b), B = oe.get(e, _), x = oe.parent(e, b), w = b[b.length - 1];
|
|
7859
7862
|
if (me.isText(C) && me.isText(B))
|
|
7860
7863
|
B.text += C.text;
|
|
7861
7864
|
else if (!me.isText(C) && !me.isText(B))
|
|
7862
7865
|
B.children.push(...C.children);
|
|
7863
7866
|
else
|
|
7864
7867
|
throw new Error('Cannot apply a "merge_node" operation at path ['.concat(b, "] to nodes of different interfaces: ").concat(st.stringify(C), " ").concat(st.stringify(B)));
|
|
7865
|
-
if (x.children.splice(
|
|
7868
|
+
if (x.children.splice(w, 1), t)
|
|
7866
7869
|
for (var [T, I] of G.points(t))
|
|
7867
7870
|
t[I] = Fe.transform(T, n);
|
|
7868
7871
|
break;
|
|
@@ -7885,8 +7888,8 @@ var Lv = (e, t, n) => {
|
|
|
7885
7888
|
case "remove_node": {
|
|
7886
7889
|
var {
|
|
7887
7890
|
path: te
|
|
7888
|
-
} = n,
|
|
7889
|
-
if (X.children.splice(
|
|
7891
|
+
} = n, D = te[te.length - 1], X = oe.parent(e, te);
|
|
7892
|
+
if (X.children.splice(D, 1), t)
|
|
7890
7893
|
for (var [V, F] of G.points(t)) {
|
|
7891
7894
|
var A = Fe.transform(V, n);
|
|
7892
7895
|
if (t != null && A != null)
|
|
@@ -9206,8 +9209,8 @@ var _0 = (e, t) => {
|
|
|
9206
9209
|
case "remove_node": {
|
|
9207
9210
|
var {
|
|
9208
9211
|
path: x
|
|
9209
|
-
} = t,
|
|
9210
|
-
return [...
|
|
9212
|
+
} = t, w = $.ancestors(x);
|
|
9213
|
+
return [...w];
|
|
9211
9214
|
}
|
|
9212
9215
|
case "split_node": {
|
|
9213
9216
|
var {
|
|
@@ -9952,8 +9955,8 @@ function Db(e) {
|
|
|
9952
9955
|
}
|
|
9953
9956
|
}
|
|
9954
9957
|
}
|
|
9955
|
-
function x(
|
|
9956
|
-
return T === "character" ? Do(
|
|
9958
|
+
function x(w, T, I) {
|
|
9959
|
+
return T === "character" ? Do(w, I) : T === "word" ? n0(w, I) : T === "line" || T === "block" ? w.length : 1;
|
|
9957
9960
|
}
|
|
9958
9961
|
}();
|
|
9959
9962
|
}
|
|
@@ -10182,7 +10185,7 @@ var Fb = (e, t) => {
|
|
|
10182
10185
|
match: (ge) => he.isElement(ge) && y.isBlock(t, ge),
|
|
10183
10186
|
at: _,
|
|
10184
10187
|
voids: l
|
|
10185
|
-
}),
|
|
10188
|
+
}), w = B && x && !$.equals(B[1], x[1]), T = $.equals(C.path, _.path), I = l ? null : (r = y.void(t, {
|
|
10186
10189
|
at: C,
|
|
10187
10190
|
mode: "highest"
|
|
10188
10191
|
})) !== null && r !== void 0 ? r : y.elementReadOnly(t, {
|
|
@@ -10214,7 +10217,7 @@ var Fb = (e, t) => {
|
|
|
10214
10217
|
var H = Array.from(k, (ge) => {
|
|
10215
10218
|
var [, Be] = ge;
|
|
10216
10219
|
return y.pathRef(t, Be);
|
|
10217
|
-
}), ie = y.pointRef(t, C), te = y.pointRef(t, _),
|
|
10220
|
+
}), ie = y.pointRef(t, C), te = y.pointRef(t, _), D = "";
|
|
10218
10221
|
if (!T && !I) {
|
|
10219
10222
|
var X = ie.current, [V] = y.leaf(t, X), {
|
|
10220
10223
|
path: F
|
|
@@ -10226,7 +10229,7 @@ var Fb = (e, t) => {
|
|
|
10226
10229
|
path: F,
|
|
10227
10230
|
offset: A,
|
|
10228
10231
|
text: j
|
|
10229
|
-
}),
|
|
10232
|
+
}), D = j);
|
|
10230
10233
|
}
|
|
10231
10234
|
if (H.reverse().map((ge) => ge.unref()).filter((ge) => ge !== null).forEach((ge) => J.removeNodes(t, {
|
|
10232
10235
|
at: ge,
|
|
@@ -10240,13 +10243,13 @@ var Fb = (e, t) => {
|
|
|
10240
10243
|
path: Z,
|
|
10241
10244
|
offset: q,
|
|
10242
10245
|
text: re
|
|
10243
|
-
}),
|
|
10246
|
+
}), D = re);
|
|
10244
10247
|
}
|
|
10245
|
-
!T &&
|
|
10248
|
+
!T && w && te.current && ie.current && J.mergeNodes(t, {
|
|
10246
10249
|
at: te.current,
|
|
10247
10250
|
hanging: !0,
|
|
10248
10251
|
voids: l
|
|
10249
|
-
}), h && a && s === "character" &&
|
|
10252
|
+
}), h && a && s === "character" && D.length > 1 && D.match(/[\u0E00-\u0E7F]+/) && J.insertText(t, D.slice(0, D.length - o));
|
|
10250
10253
|
var ue = ie.unref(), Q = te.unref(), ve = a ? ue || Q : Q || ue;
|
|
10251
10254
|
n.at == null && ve && J.select(t, ve);
|
|
10252
10255
|
}
|
|
@@ -10306,11 +10309,11 @@ var Fb = (e, t) => {
|
|
|
10306
10309
|
voids: a
|
|
10307
10310
|
}), [, f] = g, v = y.isStart(t, s, f), b = y.isEnd(t, s, f), C = v && b, _ = !v || v && b, B = !b, [, x] = oe.first({
|
|
10308
10311
|
children: n
|
|
10309
|
-
}, []), [,
|
|
10312
|
+
}, []), [, w] = oe.last({
|
|
10310
10313
|
children: n
|
|
10311
10314
|
}, []), T = [], I = (j) => {
|
|
10312
10315
|
var [P, L] = j, Z = L.length === 0;
|
|
10313
|
-
return Z ? !1 : C ? !0 : !(_ && $.isAncestor(L, x) && he.isElement(P) && !t.isVoid(P) && !t.isInline(P) || B && $.isAncestor(L,
|
|
10316
|
+
return Z ? !1 : C ? !0 : !(_ && $.isAncestor(L, x) && he.isElement(P) && !t.isVoid(P) && !t.isInline(P) || B && $.isAncestor(L, w) && he.isElement(P) && !t.isVoid(P) && !t.isInline(P));
|
|
10314
10317
|
};
|
|
10315
10318
|
for (var N of oe.nodes({
|
|
10316
10319
|
children: n
|
|
@@ -10326,7 +10329,7 @@ var Fb = (e, t) => {
|
|
|
10326
10329
|
match: (j) => me.isText(j) || y.isInline(t, j),
|
|
10327
10330
|
mode: "highest",
|
|
10328
10331
|
voids: a
|
|
10329
|
-
}), [, H] = U, ie = y.isStart(t, s, H), te = y.isEnd(t, s, H),
|
|
10332
|
+
}), [, H] = U, ie = y.isStart(t, s, H), te = y.isEnd(t, s, H), D = y.pathRef(t, b && !k.length ? $.next(f) : f), X = y.pathRef(t, te ? $.next(H) : H);
|
|
10330
10333
|
J.splitNodes(t, {
|
|
10331
10334
|
at: s,
|
|
10332
10335
|
match: (j) => O ? he.isElement(j) && y.isBlock(t, j) : me.isText(j) || y.isInline(t, j),
|
|
@@ -10345,7 +10348,7 @@ var Fb = (e, t) => {
|
|
|
10345
10348
|
at: f,
|
|
10346
10349
|
voids: a
|
|
10347
10350
|
}), J.insertNodes(t, M, {
|
|
10348
|
-
at:
|
|
10351
|
+
at: D.current,
|
|
10349
10352
|
match: (j) => he.isElement(j) && y.isBlock(t, j),
|
|
10350
10353
|
mode: "lowest",
|
|
10351
10354
|
voids: a,
|
|
@@ -10358,12 +10361,12 @@ var Fb = (e, t) => {
|
|
|
10358
10361
|
batchDirty: o
|
|
10359
10362
|
}), !r.at) {
|
|
10360
10363
|
var F;
|
|
10361
|
-
if (k.length > 0 && X.current ? F = $.previous(X.current) : M.length > 0 &&
|
|
10364
|
+
if (k.length > 0 && X.current ? F = $.previous(X.current) : M.length > 0 && D.current ? F = $.previous(D.current) : V.current && (F = $.previous(V.current)), F) {
|
|
10362
10365
|
var A = y.end(t, F);
|
|
10363
10366
|
J.select(t, A);
|
|
10364
10367
|
}
|
|
10365
10368
|
}
|
|
10366
|
-
V.unref(),
|
|
10369
|
+
V.unref(), D.unref(), X.unref();
|
|
10367
10370
|
}
|
|
10368
10371
|
}
|
|
10369
10372
|
});
|
|
@@ -10544,7 +10547,7 @@ var Ib = function(t, n) {
|
|
|
10544
10547
|
at: _
|
|
10545
10548
|
}))) {
|
|
10546
10549
|
if (o) {
|
|
10547
|
-
var x = [],
|
|
10550
|
+
var x = [], w = $.levels(_);
|
|
10548
10551
|
E0(t, () => {
|
|
10549
10552
|
var z = function() {
|
|
10550
10553
|
var E = _.concat(B);
|
|
@@ -10554,15 +10557,15 @@ var Ib = function(t, n) {
|
|
|
10554
10557
|
path: E,
|
|
10555
10558
|
node: M
|
|
10556
10559
|
};
|
|
10557
|
-
t.apply(O), l = $.next(l), x.push(O), me.isText ?
|
|
10560
|
+
t.apply(O), l = $.next(l), x.push(O), me.isText ? w.push(...Array.from(oe.nodes(M), (S) => {
|
|
10558
10561
|
var [, U] = S;
|
|
10559
10562
|
return E.concat(U);
|
|
10560
|
-
})) :
|
|
10563
|
+
})) : w.push(E);
|
|
10561
10564
|
};
|
|
10562
10565
|
for (var M of n)
|
|
10563
10566
|
z();
|
|
10564
10567
|
}, () => {
|
|
10565
|
-
qd(t,
|
|
10568
|
+
qd(t, w, (z) => {
|
|
10566
10569
|
var M = z;
|
|
10567
10570
|
for (var k of x)
|
|
10568
10571
|
if ($.operationCanTransformPath(k) && (M = $.transform(M, k), !M))
|
|
@@ -10708,7 +10711,7 @@ var Ib = function(t, n) {
|
|
|
10708
10711
|
at: g,
|
|
10709
10712
|
mode: "highest",
|
|
10710
10713
|
match: (z) => B.includes(z) && Ud(t, z)
|
|
10711
|
-
}),
|
|
10714
|
+
}), w = x && y.pathRef(t, x[1]), T, I;
|
|
10712
10715
|
if (me.isText(p) && me.isText(f)) {
|
|
10713
10716
|
var N = hn(p, Ub);
|
|
10714
10717
|
I = f.text.length, T = N;
|
|
@@ -10721,8 +10724,8 @@ var Ib = function(t, n) {
|
|
|
10721
10724
|
at: g,
|
|
10722
10725
|
to: b,
|
|
10723
10726
|
voids: s
|
|
10724
|
-
}),
|
|
10725
|
-
at:
|
|
10727
|
+
}), w && J.removeNodes(t, {
|
|
10728
|
+
at: w.current,
|
|
10726
10729
|
voids: s
|
|
10727
10730
|
}), he.isElement(f) && y.isEmpty(t, f) || me.isText(f) && f.text === "" && v[v.length - 1] !== 0 ? J.removeNodes(t, {
|
|
10728
10731
|
at: v,
|
|
@@ -10732,7 +10735,7 @@ var Ib = function(t, n) {
|
|
|
10732
10735
|
path: b,
|
|
10733
10736
|
position: I,
|
|
10734
10737
|
properties: T
|
|
10735
|
-
}),
|
|
10738
|
+
}), w && w.unref();
|
|
10736
10739
|
}
|
|
10737
10740
|
}
|
|
10738
10741
|
}
|
|
@@ -10854,10 +10857,10 @@ var Ib = function(t, n) {
|
|
|
10854
10857
|
})) {
|
|
10855
10858
|
var B = {}, x = {};
|
|
10856
10859
|
if (_.length !== 0) {
|
|
10857
|
-
var
|
|
10860
|
+
var w = !1;
|
|
10858
10861
|
for (var T in n)
|
|
10859
|
-
T === "children" || T === "text" || s(n[T], C[T]) && (
|
|
10860
|
-
|
|
10862
|
+
T === "children" || T === "text" || s(n[T], C[T]) && (w = !0, C.hasOwnProperty(T) && (B[T] = C[T]), o ? n[T] != null && (x[T] = o(C[T], n[T])) : n[T] != null && (x[T] = n[T]));
|
|
10863
|
+
w && t.apply({
|
|
10861
10864
|
type: "set_node",
|
|
10862
10865
|
path: _,
|
|
10863
10866
|
properties: B,
|
|
@@ -10922,8 +10925,8 @@ var Ib = function(t, n) {
|
|
|
10922
10925
|
}
|
|
10923
10926
|
s = _, l = !0;
|
|
10924
10927
|
}
|
|
10925
|
-
var
|
|
10926
|
-
o =
|
|
10928
|
+
var w = s.path.length - C.length;
|
|
10929
|
+
o = w + 1, l = !0;
|
|
10927
10930
|
}
|
|
10928
10931
|
p = y.pointRef(t, s);
|
|
10929
10932
|
var T = s.path.length - o, [, I] = g, N = s.path.slice(0, T), z = o === 0 ? s.offset : s.path[T] + v;
|
|
@@ -11069,10 +11072,10 @@ var Xb = function(t, n) {
|
|
|
11069
11072
|
voids: s
|
|
11070
11073
|
}));
|
|
11071
11074
|
if (C.length > 0) {
|
|
11072
|
-
var [_] = C, B = C[C.length - 1], [, x] = _, [,
|
|
11073
|
-
if (x.length === 0 &&
|
|
11075
|
+
var [_] = C, B = C[C.length - 1], [, x] = _, [, w] = B;
|
|
11076
|
+
if (x.length === 0 && w.length === 0)
|
|
11074
11077
|
return 0;
|
|
11075
|
-
var T = $.equals(x,
|
|
11078
|
+
var T = $.equals(x, w) ? $.parent(x) : $.common(x, w), I = y.range(t, x, w), N = y.node(t, T), [z] = N, M = T.length + 1, k = $.next(w.slice(0, M)), E = Cl(Cl({}, n), {}, {
|
|
11076
11079
|
children: []
|
|
11077
11080
|
});
|
|
11078
11081
|
J.insertNodes(t, E, {
|
|
@@ -11566,7 +11569,7 @@ var $n = function(e) {
|
|
|
11566
11569
|
return wi.get(e);
|
|
11567
11570
|
if (Hd(e))
|
|
11568
11571
|
return wi.set(e, Fl), Fl;
|
|
11569
|
-
var n = getComputedStyle(e), r = Co(e) && e.ownerSVGElement && e.getBBox(), i = !oy && n.boxSizing === "border-box", a = sy.test(n.writingMode || ""), s = !r && kl.test(n.overflowY || ""), o = !r && kl.test(n.overflowX || ""), l = r ? 0 : Yt(n.paddingTop), u = r ? 0 : Yt(n.paddingRight), d = r ? 0 : Yt(n.paddingBottom), h = r ? 0 : Yt(n.paddingLeft), m = r ? 0 : Yt(n.borderTopWidth), p = r ? 0 : Yt(n.borderRightWidth), g = r ? 0 : Yt(n.borderBottomWidth), f = r ? 0 : Yt(n.borderLeftWidth), v = h + u, b = l + d, C = f + p, _ = m + g, B = o ? e.offsetHeight - _ - e.clientHeight : 0, x = s ? e.offsetWidth - C - e.clientWidth : 0,
|
|
11572
|
+
var n = getComputedStyle(e), r = Co(e) && e.ownerSVGElement && e.getBBox(), i = !oy && n.boxSizing === "border-box", a = sy.test(n.writingMode || ""), s = !r && kl.test(n.overflowY || ""), o = !r && kl.test(n.overflowX || ""), l = r ? 0 : Yt(n.paddingTop), u = r ? 0 : Yt(n.paddingRight), d = r ? 0 : Yt(n.paddingBottom), h = r ? 0 : Yt(n.paddingLeft), m = r ? 0 : Yt(n.borderTopWidth), p = r ? 0 : Yt(n.borderRightWidth), g = r ? 0 : Yt(n.borderBottomWidth), f = r ? 0 : Yt(n.borderLeftWidth), v = h + u, b = l + d, C = f + p, _ = m + g, B = o ? e.offsetHeight - _ - e.clientHeight : 0, x = s ? e.offsetWidth - C - e.clientWidth : 0, w = i ? v + C : 0, T = i ? b + _ : 0, I = r ? r.width : Yt(n.width) - w - x, N = r ? r.height : Yt(n.height) - T - B, z = I + v + x + C, M = N + b + B + _, k = $n({
|
|
11570
11573
|
devicePixelContentBoxSize: lr(Math.round(I * devicePixelRatio), Math.round(N * devicePixelRatio), a),
|
|
11571
11574
|
borderBoxSize: lr(z, M, a),
|
|
11572
11575
|
contentBoxSize: lr(I, N, a),
|
|
@@ -12284,8 +12287,8 @@ var ee = {
|
|
|
12284
12287
|
}), u = _.textContent.length, v = l;
|
|
12285
12288
|
}
|
|
12286
12289
|
} else if (g) {
|
|
12287
|
-
for (var x = g.querySelectorAll("[data-slate-leaf]"),
|
|
12288
|
-
var T = x[
|
|
12290
|
+
for (var x = g.querySelectorAll("[data-slate-leaf]"), w = 0; w < x.length; w++) {
|
|
12291
|
+
var T = x[w];
|
|
12289
12292
|
if (ee.hasDOMNode(e, T)) {
|
|
12290
12293
|
f = T;
|
|
12291
12294
|
break;
|
|
@@ -12346,10 +12349,10 @@ var ee = {
|
|
|
12346
12349
|
u = t.focusNode;
|
|
12347
12350
|
var m = t.getRangeAt(0), p = t.getRangeAt(t.rangeCount - 1);
|
|
12348
12351
|
if (u instanceof HTMLTableRowElement && m.startContainer instanceof HTMLTableRowElement && p.startContainer instanceof HTMLTableRowElement) {
|
|
12349
|
-
let
|
|
12350
|
-
return T.childElementCount > 0 ?
|
|
12352
|
+
let w = function(T) {
|
|
12353
|
+
return T.childElementCount > 0 ? w(T.children[0]) : T;
|
|
12351
12354
|
};
|
|
12352
|
-
var g = m.startContainer, f = p.startContainer, v =
|
|
12355
|
+
var g = m.startContainer, f = p.startContainer, v = w(g.children[m.startOffset]), b = w(f.children[p.startOffset]);
|
|
12353
12356
|
d = 0, b.childNodes.length > 0 ? o = b.childNodes[0] : o = b, v.childNodes.length > 0 ? u = v.childNodes[0] : u = v, b instanceof HTMLElement ? l = b.innerHTML.length : l = 0;
|
|
12354
12357
|
} else
|
|
12355
12358
|
m.startContainer === u ? (o = p.endContainer, l = p.endOffset, d = m.startOffset) : (o = m.startContainer, l = m.endOffset, d = p.startOffset);
|
|
@@ -12724,8 +12727,8 @@ function n1(e) {
|
|
|
12724
12727
|
return;
|
|
12725
12728
|
}
|
|
12726
12729
|
E && n(), n.flush(), r.flush(), d();
|
|
12727
|
-
var
|
|
12728
|
-
ln.delete(t),
|
|
12730
|
+
var D = ln.get(t);
|
|
12731
|
+
ln.delete(t), D !== void 0 && (t.marks = D, t.onChange());
|
|
12729
12732
|
}, p = (k) => {
|
|
12730
12733
|
a && clearTimeout(a), a = setTimeout(() => {
|
|
12731
12734
|
Nn.set(t, !1), m();
|
|
@@ -12744,7 +12747,7 @@ function n1(e) {
|
|
|
12744
12747
|
}, v = (k, E) => {
|
|
12745
12748
|
var O, S = (O = _t.get(t)) !== null && O !== void 0 ? O : [];
|
|
12746
12749
|
_t.set(t, S);
|
|
12747
|
-
var U = oe.leaf(t, k), H = S.findIndex((
|
|
12750
|
+
var U = oe.leaf(t, k), H = S.findIndex((D) => $.equals(D.path, k));
|
|
12748
12751
|
if (H < 0) {
|
|
12749
12752
|
var ie = cf(U.text, E);
|
|
12750
12753
|
ie && S.push({
|
|
@@ -12787,7 +12790,7 @@ function n1(e) {
|
|
|
12787
12790
|
exactMatch: !1,
|
|
12788
12791
|
suppressThrow: !0
|
|
12789
12792
|
})), S = (E = S) !== null && E !== void 0 ? E : t.selection, !!S) {
|
|
12790
|
-
var
|
|
12793
|
+
var D = !0;
|
|
12791
12794
|
if (O.startsWith("delete")) {
|
|
12792
12795
|
if (G.isExpanded(S)) {
|
|
12793
12796
|
var [X, V] = G.edges(S), F = oe.leaf(t, X.path);
|
|
@@ -12807,8 +12810,8 @@ function n1(e) {
|
|
|
12807
12810
|
start: P.offset,
|
|
12808
12811
|
end: L.offset
|
|
12809
12812
|
}, ue = _t.get(t), Q = ue == null ? void 0 : ue.find((be) => $.equals(be.path, q)), ve = Q ? [Q.diff, re] : [re], ge = lf(Z.text, ...ve);
|
|
12810
|
-
if (ge.length === 0 && (
|
|
12811
|
-
if (
|
|
12813
|
+
if (ge.length === 0 && (D = !1), G.isExpanded(S)) {
|
|
12814
|
+
if (D && $.equals(S.anchor.path, S.focus.path)) {
|
|
12812
12815
|
var Be = {
|
|
12813
12816
|
path: S.anchor.path,
|
|
12814
12817
|
offset: P.offset
|
|
@@ -12838,7 +12841,7 @@ function n1(e) {
|
|
|
12838
12841
|
var {
|
|
12839
12842
|
anchor: je
|
|
12840
12843
|
} = S;
|
|
12841
|
-
if (
|
|
12844
|
+
if (D && G.isCollapsed(S)) {
|
|
12842
12845
|
var We = oe.leaf(t, je.path);
|
|
12843
12846
|
if (je.offset < We.text.length)
|
|
12844
12847
|
return v(je.path, {
|
|
@@ -12855,7 +12858,7 @@ function n1(e) {
|
|
|
12855
12858
|
var He, {
|
|
12856
12859
|
anchor: Ke
|
|
12857
12860
|
} = S, rt = Us(H) ? H.isCollapsed : !!((He = H) !== null && He !== void 0 && He.collapsed);
|
|
12858
|
-
return
|
|
12861
|
+
return D && rt && G.isCollapsed(S) && Ke.offset > 0 ? v(Ke.path, {
|
|
12859
12862
|
text: "",
|
|
12860
12863
|
start: Ke.offset - 1,
|
|
12861
12864
|
end: Ke.offset
|
|
@@ -12954,7 +12957,7 @@ function n1(e) {
|
|
|
12954
12957
|
O === "insertText" ? u === null ? u = W : u && G.isCollapsed(S) && u.end + u.text.length === Ze.offset ? u = ki(ki({}, u), {}, {
|
|
12955
12958
|
text: u.text + Te
|
|
12956
12959
|
}) : u = !1 : u = !1;
|
|
12957
|
-
if (
|
|
12960
|
+
if (D) {
|
|
12958
12961
|
v(Ze.path, W);
|
|
12959
12962
|
return;
|
|
12960
12963
|
}
|
|
@@ -12968,7 +12971,7 @@ function n1(e) {
|
|
|
12968
12971
|
}, _ = () => !!Dn.get(t), B = () => {
|
|
12969
12972
|
var k;
|
|
12970
12973
|
return !!((k = _t.get(t)) !== null && k !== void 0 && k.length);
|
|
12971
|
-
}, x = () => _() || B(),
|
|
12974
|
+
}, x = () => _() || B(), w = () => i, T = (k) => {
|
|
12972
12975
|
wn.set(t, k), s && (clearTimeout(s), s = null);
|
|
12973
12976
|
var {
|
|
12974
12977
|
selection: E
|
|
@@ -12995,7 +12998,7 @@ function n1(e) {
|
|
|
12995
12998
|
hasPendingDiffs: B,
|
|
12996
12999
|
hasPendingAction: _,
|
|
12997
13000
|
hasPendingChanges: x,
|
|
12998
|
-
isFlushing:
|
|
13001
|
+
isFlushing: w,
|
|
12999
13002
|
handleUserSelect: T,
|
|
13000
13003
|
handleCompositionEnd: p,
|
|
13001
13004
|
handleCompositionStart: g,
|
|
@@ -13588,7 +13591,7 @@ var I1 = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, pf(e)), L1 =
|
|
|
13588
13591
|
as: m = "div",
|
|
13589
13592
|
disableDefaultStyles: p = !1
|
|
13590
13593
|
} = e, g = pr(e, R1), f = Zn(), [v, b] = le(!1), C = ke(null), _ = ke([]), [B, x] = le(), {
|
|
13591
|
-
onUserInput:
|
|
13594
|
+
onUserInput: w,
|
|
13592
13595
|
receivedUserInput: T
|
|
13593
13596
|
} = B1(), [, I] = yr((A) => A + 1, 0);
|
|
13594
13597
|
rf.set(f, I), zs.set(f, s);
|
|
@@ -13697,7 +13700,7 @@ var I1 = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, pf(e)), L1 =
|
|
|
13697
13700
|
}
|
|
13698
13701
|
});
|
|
13699
13702
|
var E = Ne((A) => {
|
|
13700
|
-
if (
|
|
13703
|
+
if (w(), !s && ee.hasEditableTarget(f, A.target) && !W1(A, i)) {
|
|
13701
13704
|
var j;
|
|
13702
13705
|
if (z.current)
|
|
13703
13706
|
return z.current.handleDOMBeforeInput(A);
|
|
@@ -13837,7 +13840,7 @@ var I1 = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, pf(e)), L1 =
|
|
|
13837
13840
|
var W = (j = zr.get(f)) === null || j === void 0 ? void 0 : j.unref();
|
|
13838
13841
|
zr.delete(f), W && (!f.selection || !G.equals(f.selection, W)) && J.select(f, W);
|
|
13839
13842
|
}
|
|
13840
|
-
}, [f, M,
|
|
13843
|
+
}, [f, M, w, i, s, k]), O = Ne((A) => {
|
|
13841
13844
|
A == null ? (M.cancel(), k.cancel(), Ii.delete(f), In.delete(f), C.current && yn && C.current.removeEventListener("beforeinput", E)) : yn && A.addEventListener("beforeinput", E), C.current = A;
|
|
13842
13845
|
}, [M, k, f, E]);
|
|
13843
13846
|
ti(() => {
|
|
@@ -13868,8 +13871,8 @@ var I1 = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, pf(e)), L1 =
|
|
|
13868
13871
|
} = f;
|
|
13869
13872
|
if (N.hasMarkPlaceholder = !1, f.selection && G.isCollapsed(f.selection) && te) {
|
|
13870
13873
|
var {
|
|
13871
|
-
anchor:
|
|
13872
|
-
} = f.selection, X = oe.leaf(f,
|
|
13874
|
+
anchor: D
|
|
13875
|
+
} = f.selection, X = oe.leaf(f, D.path), V = pr(X, $1);
|
|
13873
13876
|
if (!me.equals(X, te, {
|
|
13874
13877
|
loose: !0
|
|
13875
13878
|
})) {
|
|
@@ -13878,8 +13881,8 @@ var I1 = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, pf(e)), L1 =
|
|
|
13878
13881
|
S.push(Qt(Qt(Qt({
|
|
13879
13882
|
[af]: !0
|
|
13880
13883
|
}, F), te), {}, {
|
|
13881
|
-
anchor:
|
|
13882
|
-
focus:
|
|
13884
|
+
anchor: D,
|
|
13885
|
+
focus: D
|
|
13883
13886
|
}));
|
|
13884
13887
|
}
|
|
13885
13888
|
}
|
|
@@ -14485,8 +14488,8 @@ var Q1 = function(t) {
|
|
|
14485
14488
|
d.push(...er(r, _));
|
|
14486
14489
|
var B;
|
|
14487
14490
|
$.isBefore(u.path, u.newPath) ? (d.push(...er(r, $.parent(u.path))), B = u.newPath) : (d.push(...er(r, $.parent(u.newPath))), B = u.path);
|
|
14488
|
-
var x = oe.get(t, $.parent(B)),
|
|
14489
|
-
h.push([T,
|
|
14491
|
+
var x = oe.get(t, $.parent(B)), w = ee.findKey(r, x), T = y.pathRef(r, $.parent(B));
|
|
14492
|
+
h.push([T, w]);
|
|
14490
14493
|
break;
|
|
14491
14494
|
}
|
|
14492
14495
|
}
|
|
@@ -14526,7 +14529,7 @@ var Q1 = function(t) {
|
|
|
14526
14529
|
var x = b.ownerDocument.createElement("span");
|
|
14527
14530
|
x.style.whiteSpace = "pre", x.appendChild(b), v.appendChild(x), b = x;
|
|
14528
14531
|
}
|
|
14529
|
-
var
|
|
14532
|
+
var w = r.getFragment(), T = JSON.stringify(w), I = window.btoa(encodeURIComponent(T));
|
|
14530
14533
|
b.setAttribute("data-slate-fragment", I), u.setData("application/".concat(n), I);
|
|
14531
14534
|
var N = v.ownerDocument.createElement("div");
|
|
14532
14535
|
return N.appendChild(v), N.setAttribute("hidden", "true"), v.ownerDocument.body.appendChild(N), u.setData("text/html", N.innerHTML), u.setData("text/plain", uf(N)), v.ownerDocument.body.removeChild(N), u;
|
|
@@ -16150,16 +16153,16 @@ function Px(e) {
|
|
|
16150
16153
|
if (r++, t.containerState._closeFlow) {
|
|
16151
16154
|
t.containerState._closeFlow = void 0, i && C();
|
|
16152
16155
|
const B = t.events.length;
|
|
16153
|
-
let x = B,
|
|
16156
|
+
let x = B, w;
|
|
16154
16157
|
for (; x--; )
|
|
16155
16158
|
if (t.events[x][0] === "exit" && t.events[x][1].type === "chunkFlow") {
|
|
16156
|
-
|
|
16159
|
+
w = t.events[x][1].end;
|
|
16157
16160
|
break;
|
|
16158
16161
|
}
|
|
16159
16162
|
b(r);
|
|
16160
16163
|
let T = B;
|
|
16161
16164
|
for (; T < t.events.length; )
|
|
16162
|
-
t.events[T][1].end = Object.assign({},
|
|
16165
|
+
t.events[T][1].end = Object.assign({}, w), T++;
|
|
16163
16166
|
return mn(
|
|
16164
16167
|
t.events,
|
|
16165
16168
|
x + 1,
|
|
@@ -16220,13 +16223,13 @@ function Px(e) {
|
|
|
16220
16223
|
function v(_, B) {
|
|
16221
16224
|
const x = t.sliceStream(_);
|
|
16222
16225
|
if (B && x.push(null), _.previous = a, a && (a.next = _), a = _, i.defineSkip(_.start), i.write(x), t.parser.lazy[_.start.line]) {
|
|
16223
|
-
let
|
|
16224
|
-
for (;
|
|
16226
|
+
let w = i.events.length;
|
|
16227
|
+
for (; w--; )
|
|
16225
16228
|
if (
|
|
16226
16229
|
// The token starts before the line ending…
|
|
16227
|
-
i.events[
|
|
16228
|
-
(!i.events[
|
|
16229
|
-
i.events[
|
|
16230
|
+
i.events[w][1].start.offset < s && // …and either is not ended yet…
|
|
16231
|
+
(!i.events[w][1].end || // …or ends after it.
|
|
16232
|
+
i.events[w][1].end.offset > s)
|
|
16230
16233
|
)
|
|
16231
16234
|
return;
|
|
16232
16235
|
const T = t.events.length;
|
|
@@ -16239,14 +16242,14 @@ function Px(e) {
|
|
|
16239
16242
|
}
|
|
16240
16243
|
N = !0;
|
|
16241
16244
|
}
|
|
16242
|
-
for (b(r),
|
|
16243
|
-
t.events[
|
|
16245
|
+
for (b(r), w = T; w < t.events.length; )
|
|
16246
|
+
t.events[w][1].end = Object.assign({}, z), w++;
|
|
16244
16247
|
mn(
|
|
16245
16248
|
t.events,
|
|
16246
16249
|
I + 1,
|
|
16247
16250
|
0,
|
|
16248
16251
|
t.events.slice(T)
|
|
16249
|
-
), t.events.length =
|
|
16252
|
+
), t.events.length = w;
|
|
16250
16253
|
}
|
|
16251
16254
|
}
|
|
16252
16255
|
function b(_) {
|
|
@@ -16483,67 +16486,67 @@ function Vx(e, t, n) {
|
|
|
16483
16486
|
};
|
|
16484
16487
|
let a = 0, s = 0, o;
|
|
16485
16488
|
return l;
|
|
16486
|
-
function l(
|
|
16487
|
-
return u(
|
|
16489
|
+
function l(w) {
|
|
16490
|
+
return u(w);
|
|
16488
16491
|
}
|
|
16489
|
-
function u(
|
|
16492
|
+
function u(w) {
|
|
16490
16493
|
const T = r.events[r.events.length - 1];
|
|
16491
|
-
return a = T && T[1].type === "linePrefix" ? T[2].sliceSerialize(T[1], !0).length : 0, o =
|
|
16494
|
+
return a = T && T[1].type === "linePrefix" ? T[2].sliceSerialize(T[1], !0).length : 0, o = w, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(w);
|
|
16492
16495
|
}
|
|
16493
|
-
function d(
|
|
16494
|
-
return
|
|
16496
|
+
function d(w) {
|
|
16497
|
+
return w === o ? (s++, e.consume(w), d) : s < 3 ? n(w) : (e.exit("codeFencedFenceSequence"), Ie(w) ? Ye(e, h, "whitespace")(w) : h(w));
|
|
16495
16498
|
}
|
|
16496
|
-
function h(
|
|
16497
|
-
return
|
|
16499
|
+
function h(w) {
|
|
16500
|
+
return w === null || De(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(mc, f, B)(w)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
16498
16501
|
contentType: "string"
|
|
16499
|
-
}), m(
|
|
16502
|
+
}), m(w));
|
|
16500
16503
|
}
|
|
16501
|
-
function m(
|
|
16502
|
-
return
|
|
16504
|
+
function m(w) {
|
|
16505
|
+
return w === null || De(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(w)) : Ie(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ye(e, p, "whitespace")(w)) : w === 96 && w === o ? n(w) : (e.consume(w), m);
|
|
16503
16506
|
}
|
|
16504
|
-
function p(
|
|
16505
|
-
return
|
|
16507
|
+
function p(w) {
|
|
16508
|
+
return w === null || De(w) ? h(w) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
16506
16509
|
contentType: "string"
|
|
16507
|
-
}), g(
|
|
16510
|
+
}), g(w));
|
|
16508
16511
|
}
|
|
16509
|
-
function g(
|
|
16510
|
-
return
|
|
16512
|
+
function g(w) {
|
|
16513
|
+
return w === null || De(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), h(w)) : w === 96 && w === o ? n(w) : (e.consume(w), g);
|
|
16511
16514
|
}
|
|
16512
|
-
function f(
|
|
16513
|
-
return e.attempt(i, B, v)(
|
|
16515
|
+
function f(w) {
|
|
16516
|
+
return e.attempt(i, B, v)(w);
|
|
16514
16517
|
}
|
|
16515
|
-
function v(
|
|
16516
|
-
return e.enter("lineEnding"), e.consume(
|
|
16518
|
+
function v(w) {
|
|
16519
|
+
return e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), b;
|
|
16517
16520
|
}
|
|
16518
|
-
function b(
|
|
16519
|
-
return a > 0 && Ie(
|
|
16521
|
+
function b(w) {
|
|
16522
|
+
return a > 0 && Ie(w) ? Ye(e, C, "linePrefix", a + 1)(w) : C(w);
|
|
16520
16523
|
}
|
|
16521
|
-
function C(
|
|
16522
|
-
return
|
|
16524
|
+
function C(w) {
|
|
16525
|
+
return w === null || De(w) ? e.check(mc, f, B)(w) : (e.enter("codeFlowValue"), _(w));
|
|
16523
16526
|
}
|
|
16524
|
-
function _(
|
|
16525
|
-
return
|
|
16527
|
+
function _(w) {
|
|
16528
|
+
return w === null || De(w) ? (e.exit("codeFlowValue"), C(w)) : (e.consume(w), _);
|
|
16526
16529
|
}
|
|
16527
|
-
function B(
|
|
16528
|
-
return e.exit("codeFenced"), t(
|
|
16530
|
+
function B(w) {
|
|
16531
|
+
return e.exit("codeFenced"), t(w);
|
|
16529
16532
|
}
|
|
16530
|
-
function x(
|
|
16533
|
+
function x(w, T, I) {
|
|
16531
16534
|
let N = 0;
|
|
16532
16535
|
return z;
|
|
16533
16536
|
function z(S) {
|
|
16534
|
-
return
|
|
16537
|
+
return w.enter("lineEnding"), w.consume(S), w.exit("lineEnding"), M;
|
|
16535
16538
|
}
|
|
16536
16539
|
function M(S) {
|
|
16537
|
-
return
|
|
16540
|
+
return w.enter("codeFencedFence"), Ie(S) ? Ye(w, k, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(S) : k(S);
|
|
16538
16541
|
}
|
|
16539
16542
|
function k(S) {
|
|
16540
|
-
return S === o ? (
|
|
16543
|
+
return S === o ? (w.enter("codeFencedFenceSequence"), E(S)) : I(S);
|
|
16541
16544
|
}
|
|
16542
16545
|
function E(S) {
|
|
16543
|
-
return S === o ? (N++,
|
|
16546
|
+
return S === o ? (N++, w.consume(S), E) : N >= s ? (w.exit("codeFencedFenceSequence"), Ie(S) ? Ye(w, O, "whitespace")(S) : O(S)) : I(S);
|
|
16544
16547
|
}
|
|
16545
16548
|
function O(S) {
|
|
16546
|
-
return S === null || De(S) ? (
|
|
16549
|
+
return S === null || De(S) ? (w.exit("codeFencedFence"), T(S)) : I(S);
|
|
16547
16550
|
}
|
|
16548
16551
|
}
|
|
16549
16552
|
}
|
|
@@ -17192,13 +17195,13 @@ function wD(e, t, n) {
|
|
|
17192
17195
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(F), h;
|
|
17193
17196
|
}
|
|
17194
17197
|
function h(F) {
|
|
17195
|
-
return F === 33 ? (e.consume(F), m) : F === 47 ? (e.consume(F), a = !0, f) : F === 63 ? (e.consume(F), i = 3, r.interrupt ? t :
|
|
17198
|
+
return F === 33 ? (e.consume(F), m) : F === 47 ? (e.consume(F), a = !0, f) : F === 63 ? (e.consume(F), i = 3, r.interrupt ? t : D) : Xt(F) ? (e.consume(F), s = String.fromCharCode(F), v) : n(F);
|
|
17196
17199
|
}
|
|
17197
17200
|
function m(F) {
|
|
17198
|
-
return F === 45 ? (e.consume(F), i = 2, p) : F === 91 ? (e.consume(F), i = 5, o = 0, g) : Xt(F) ? (e.consume(F), i = 4, r.interrupt ? t :
|
|
17201
|
+
return F === 45 ? (e.consume(F), i = 2, p) : F === 91 ? (e.consume(F), i = 5, o = 0, g) : Xt(F) ? (e.consume(F), i = 4, r.interrupt ? t : D) : n(F);
|
|
17199
17202
|
}
|
|
17200
17203
|
function p(F) {
|
|
17201
|
-
return F === 45 ? (e.consume(F), r.interrupt ? t :
|
|
17204
|
+
return F === 45 ? (e.consume(F), r.interrupt ? t : D) : n(F);
|
|
17202
17205
|
}
|
|
17203
17206
|
function g(F) {
|
|
17204
17207
|
const A = "CDATA[";
|
|
@@ -17227,10 +17230,10 @@ function wD(e, t, n) {
|
|
|
17227
17230
|
return F === 45 || F === 46 || F === 58 || F === 95 || Ht(F) ? (e.consume(F), B) : x(F);
|
|
17228
17231
|
}
|
|
17229
17232
|
function x(F) {
|
|
17230
|
-
return F === 61 ? (e.consume(F),
|
|
17233
|
+
return F === 61 ? (e.consume(F), w) : Ie(F) ? (e.consume(F), x) : _(F);
|
|
17231
17234
|
}
|
|
17232
|
-
function
|
|
17233
|
-
return F === null || F === 60 || F === 61 || F === 62 || F === 96 ? n(F) : F === 34 || F === 39 ? (e.consume(F), l = F, T) : Ie(F) ? (e.consume(F),
|
|
17235
|
+
function w(F) {
|
|
17236
|
+
return F === null || F === 60 || F === 61 || F === 62 || F === 96 ? n(F) : F === 34 || F === 39 ? (e.consume(F), l = F, T) : Ie(F) ? (e.consume(F), w) : I(F);
|
|
17234
17237
|
}
|
|
17235
17238
|
function T(F) {
|
|
17236
17239
|
return F === l ? (e.consume(F), l = null, N) : F === null || De(F) ? n(F) : (e.consume(F), T);
|
|
@@ -17248,7 +17251,7 @@ function wD(e, t, n) {
|
|
|
17248
17251
|
return F === null || De(F) ? k(F) : Ie(F) ? (e.consume(F), M) : n(F);
|
|
17249
17252
|
}
|
|
17250
17253
|
function k(F) {
|
|
17251
|
-
return F === 45 && i === 2 ? (e.consume(F), U) : F === 60 && i === 1 ? (e.consume(F), H) : F === 62 && i === 4 ? (e.consume(F), X) : F === 63 && i === 3 ? (e.consume(F),
|
|
17254
|
+
return F === 45 && i === 2 ? (e.consume(F), U) : F === 60 && i === 1 ? (e.consume(F), H) : F === 62 && i === 4 ? (e.consume(F), X) : F === 63 && i === 3 ? (e.consume(F), D) : F === 93 && i === 5 ? (e.consume(F), te) : De(F) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(yD, V, E)(F)) : F === null || De(F) ? (e.exit("htmlFlowData"), E(F)) : (e.consume(F), k);
|
|
17252
17255
|
}
|
|
17253
17256
|
function E(F) {
|
|
17254
17257
|
return e.check(xD, O, V)(F);
|
|
@@ -17260,7 +17263,7 @@ function wD(e, t, n) {
|
|
|
17260
17263
|
return F === null || De(F) ? E(F) : (e.enter("htmlFlowData"), k(F));
|
|
17261
17264
|
}
|
|
17262
17265
|
function U(F) {
|
|
17263
|
-
return F === 45 ? (e.consume(F),
|
|
17266
|
+
return F === 45 ? (e.consume(F), D) : k(F);
|
|
17264
17267
|
}
|
|
17265
17268
|
function H(F) {
|
|
17266
17269
|
return F === 47 ? (e.consume(F), s = "", ie) : k(F);
|
|
@@ -17273,10 +17276,10 @@ function wD(e, t, n) {
|
|
|
17273
17276
|
return Xt(F) && s.length < 8 ? (e.consume(F), s += String.fromCharCode(F), ie) : k(F);
|
|
17274
17277
|
}
|
|
17275
17278
|
function te(F) {
|
|
17276
|
-
return F === 93 ? (e.consume(F),
|
|
17279
|
+
return F === 93 ? (e.consume(F), D) : k(F);
|
|
17277
17280
|
}
|
|
17278
|
-
function
|
|
17279
|
-
return F === 62 ? (e.consume(F), X) : F === 45 && i === 2 ? (e.consume(F),
|
|
17281
|
+
function D(F) {
|
|
17282
|
+
return F === 62 ? (e.consume(F), X) : F === 45 && i === 2 ? (e.consume(F), D) : k(F);
|
|
17280
17283
|
}
|
|
17281
17284
|
function X(F) {
|
|
17282
17285
|
return F === null || De(F) ? (e.exit("htmlFlowData"), V(F)) : (e.consume(F), X);
|
|
@@ -17309,93 +17312,93 @@ function kD(e, t, n) {
|
|
|
17309
17312
|
const r = this;
|
|
17310
17313
|
let i, a, s;
|
|
17311
17314
|
return o;
|
|
17312
|
-
function o(
|
|
17313
|
-
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(
|
|
17315
|
+
function o(D) {
|
|
17316
|
+
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(D), l;
|
|
17314
17317
|
}
|
|
17315
|
-
function l(
|
|
17316
|
-
return
|
|
17318
|
+
function l(D) {
|
|
17319
|
+
return D === 33 ? (e.consume(D), u) : D === 47 ? (e.consume(D), x) : D === 63 ? (e.consume(D), _) : Xt(D) ? (e.consume(D), I) : n(D);
|
|
17317
17320
|
}
|
|
17318
|
-
function u(
|
|
17319
|
-
return
|
|
17321
|
+
function u(D) {
|
|
17322
|
+
return D === 45 ? (e.consume(D), d) : D === 91 ? (e.consume(D), a = 0, g) : Xt(D) ? (e.consume(D), C) : n(D);
|
|
17320
17323
|
}
|
|
17321
|
-
function d(
|
|
17322
|
-
return
|
|
17324
|
+
function d(D) {
|
|
17325
|
+
return D === 45 ? (e.consume(D), p) : n(D);
|
|
17323
17326
|
}
|
|
17324
|
-
function h(
|
|
17325
|
-
return
|
|
17327
|
+
function h(D) {
|
|
17328
|
+
return D === null ? n(D) : D === 45 ? (e.consume(D), m) : De(D) ? (s = h, H(D)) : (e.consume(D), h);
|
|
17326
17329
|
}
|
|
17327
|
-
function m(
|
|
17328
|
-
return
|
|
17330
|
+
function m(D) {
|
|
17331
|
+
return D === 45 ? (e.consume(D), p) : h(D);
|
|
17329
17332
|
}
|
|
17330
|
-
function p(
|
|
17331
|
-
return
|
|
17333
|
+
function p(D) {
|
|
17334
|
+
return D === 62 ? U(D) : D === 45 ? m(D) : h(D);
|
|
17332
17335
|
}
|
|
17333
|
-
function g(
|
|
17336
|
+
function g(D) {
|
|
17334
17337
|
const X = "CDATA[";
|
|
17335
|
-
return
|
|
17338
|
+
return D === X.charCodeAt(a++) ? (e.consume(D), a === X.length ? f : g) : n(D);
|
|
17336
17339
|
}
|
|
17337
|
-
function f(
|
|
17338
|
-
return
|
|
17340
|
+
function f(D) {
|
|
17341
|
+
return D === null ? n(D) : D === 93 ? (e.consume(D), v) : De(D) ? (s = f, H(D)) : (e.consume(D), f);
|
|
17339
17342
|
}
|
|
17340
|
-
function v(
|
|
17341
|
-
return
|
|
17343
|
+
function v(D) {
|
|
17344
|
+
return D === 93 ? (e.consume(D), b) : f(D);
|
|
17342
17345
|
}
|
|
17343
|
-
function b(
|
|
17344
|
-
return
|
|
17346
|
+
function b(D) {
|
|
17347
|
+
return D === 62 ? U(D) : D === 93 ? (e.consume(D), b) : f(D);
|
|
17345
17348
|
}
|
|
17346
|
-
function C(
|
|
17347
|
-
return
|
|
17349
|
+
function C(D) {
|
|
17350
|
+
return D === null || D === 62 ? U(D) : De(D) ? (s = C, H(D)) : (e.consume(D), C);
|
|
17348
17351
|
}
|
|
17349
|
-
function _(
|
|
17350
|
-
return
|
|
17352
|
+
function _(D) {
|
|
17353
|
+
return D === null ? n(D) : D === 63 ? (e.consume(D), B) : De(D) ? (s = _, H(D)) : (e.consume(D), _);
|
|
17351
17354
|
}
|
|
17352
|
-
function B(
|
|
17353
|
-
return
|
|
17355
|
+
function B(D) {
|
|
17356
|
+
return D === 62 ? U(D) : _(D);
|
|
17354
17357
|
}
|
|
17355
|
-
function x(
|
|
17356
|
-
return Xt(
|
|
17358
|
+
function x(D) {
|
|
17359
|
+
return Xt(D) ? (e.consume(D), w) : n(D);
|
|
17357
17360
|
}
|
|
17358
|
-
function D
|
|
17359
|
-
return
|
|
17361
|
+
function w(D) {
|
|
17362
|
+
return D === 45 || Ht(D) ? (e.consume(D), w) : T(D);
|
|
17360
17363
|
}
|
|
17361
|
-
function T(
|
|
17362
|
-
return De(
|
|
17364
|
+
function T(D) {
|
|
17365
|
+
return De(D) ? (s = T, H(D)) : Ie(D) ? (e.consume(D), T) : U(D);
|
|
17363
17366
|
}
|
|
17364
|
-
function I(
|
|
17365
|
-
return
|
|
17367
|
+
function I(D) {
|
|
17368
|
+
return D === 45 || Ht(D) ? (e.consume(D), I) : D === 47 || D === 62 || Ft(D) ? N(D) : n(D);
|
|
17366
17369
|
}
|
|
17367
|
-
function N(
|
|
17368
|
-
return
|
|
17370
|
+
function N(D) {
|
|
17371
|
+
return D === 47 ? (e.consume(D), U) : D === 58 || D === 95 || Xt(D) ? (e.consume(D), z) : De(D) ? (s = N, H(D)) : Ie(D) ? (e.consume(D), N) : U(D);
|
|
17369
17372
|
}
|
|
17370
|
-
function z(
|
|
17371
|
-
return
|
|
17373
|
+
function z(D) {
|
|
17374
|
+
return D === 45 || D === 46 || D === 58 || D === 95 || Ht(D) ? (e.consume(D), z) : M(D);
|
|
17372
17375
|
}
|
|
17373
|
-
function M(
|
|
17374
|
-
return
|
|
17376
|
+
function M(D) {
|
|
17377
|
+
return D === 61 ? (e.consume(D), k) : De(D) ? (s = M, H(D)) : Ie(D) ? (e.consume(D), M) : N(D);
|
|
17375
17378
|
}
|
|
17376
|
-
function k(
|
|
17377
|
-
return
|
|
17379
|
+
function k(D) {
|
|
17380
|
+
return D === null || D === 60 || D === 61 || D === 62 || D === 96 ? n(D) : D === 34 || D === 39 ? (e.consume(D), i = D, E) : De(D) ? (s = k, H(D)) : Ie(D) ? (e.consume(D), k) : (e.consume(D), O);
|
|
17378
17381
|
}
|
|
17379
|
-
function E(
|
|
17380
|
-
return
|
|
17382
|
+
function E(D) {
|
|
17383
|
+
return D === i ? (e.consume(D), i = void 0, S) : D === null ? n(D) : De(D) ? (s = E, H(D)) : (e.consume(D), E);
|
|
17381
17384
|
}
|
|
17382
|
-
function O(
|
|
17383
|
-
return
|
|
17385
|
+
function O(D) {
|
|
17386
|
+
return D === null || D === 34 || D === 39 || D === 60 || D === 61 || D === 96 ? n(D) : D === 47 || D === 62 || Ft(D) ? N(D) : (e.consume(D), O);
|
|
17384
17387
|
}
|
|
17385
|
-
function S(
|
|
17386
|
-
return
|
|
17388
|
+
function S(D) {
|
|
17389
|
+
return D === 47 || D === 62 || Ft(D) ? N(D) : n(D);
|
|
17387
17390
|
}
|
|
17388
|
-
function U(
|
|
17389
|
-
return
|
|
17391
|
+
function U(D) {
|
|
17392
|
+
return D === 62 ? (e.consume(D), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(D);
|
|
17390
17393
|
}
|
|
17391
|
-
function H(
|
|
17392
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(
|
|
17394
|
+
function H(D) {
|
|
17395
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(D), e.exit("lineEnding"), ie;
|
|
17393
17396
|
}
|
|
17394
|
-
function ie(
|
|
17395
|
-
return Ie(
|
|
17397
|
+
function ie(D) {
|
|
17398
|
+
return Ie(D) ? Ye(e, te, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(D) : te(D);
|
|
17396
17399
|
}
|
|
17397
|
-
function te(
|
|
17398
|
-
return e.enter("htmlTextData"), s(
|
|
17400
|
+
function te(D) {
|
|
17401
|
+
return e.enter("htmlTextData"), s(D);
|
|
17399
17402
|
}
|
|
17400
17403
|
}
|
|
17401
17404
|
const No = {
|
|
@@ -17868,8 +17871,8 @@ function rw(e, t, n) {
|
|
|
17868
17871
|
enter: _,
|
|
17869
17872
|
exit: B,
|
|
17870
17873
|
attempt: T(x),
|
|
17871
|
-
check: T(
|
|
17872
|
-
interrupt: T(
|
|
17874
|
+
check: T(w),
|
|
17875
|
+
interrupt: T(w, {
|
|
17873
17876
|
interrupt: !0
|
|
17874
17877
|
})
|
|
17875
17878
|
}, u = {
|
|
@@ -17936,13 +17939,13 @@ function rw(e, t, n) {
|
|
|
17936
17939
|
function x(M, k) {
|
|
17937
17940
|
I(M, k.from);
|
|
17938
17941
|
}
|
|
17939
|
-
function
|
|
17942
|
+
function w(M, k) {
|
|
17940
17943
|
k.restore();
|
|
17941
17944
|
}
|
|
17942
17945
|
function T(M, k) {
|
|
17943
17946
|
return E;
|
|
17944
17947
|
function E(O, S, U) {
|
|
17945
|
-
let H, ie, te,
|
|
17948
|
+
let H, ie, te, D;
|
|
17946
17949
|
return Array.isArray(O) ? V(O) : "tokenize" in O ? (
|
|
17947
17950
|
// @ts-expect-error Looks like a construct.
|
|
17948
17951
|
V([O])
|
|
@@ -17965,7 +17968,7 @@ function rw(e, t, n) {
|
|
|
17965
17968
|
function F(P) {
|
|
17966
17969
|
return L;
|
|
17967
17970
|
function L(Z) {
|
|
17968
|
-
return
|
|
17971
|
+
return D = N(), te = P, P.partial || (u.currentConstruct = P), P.name && u.parser.constructs.disable.null.includes(P.name) ? j() : P.tokenize.call(
|
|
17969
17972
|
// If we do have fields, create an object w/ `context` as its
|
|
17970
17973
|
// prototype.
|
|
17971
17974
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -17977,10 +17980,10 @@ function rw(e, t, n) {
|
|
|
17977
17980
|
}
|
|
17978
17981
|
}
|
|
17979
17982
|
function A(P) {
|
|
17980
|
-
return M(te,
|
|
17983
|
+
return M(te, D), S;
|
|
17981
17984
|
}
|
|
17982
17985
|
function j(P) {
|
|
17983
|
-
return
|
|
17986
|
+
return D.restore(), ++ie < H.length ? F(H[ie]) : U;
|
|
17984
17987
|
}
|
|
17985
17988
|
}
|
|
17986
17989
|
}
|
|
@@ -18299,12 +18302,12 @@ function Cw(e) {
|
|
|
18299
18302
|
listUnordered: l(),
|
|
18300
18303
|
paragraph: l(),
|
|
18301
18304
|
referenceString: A,
|
|
18302
|
-
resourceDestinationString:
|
|
18305
|
+
resourceDestinationString: D,
|
|
18303
18306
|
resourceTitleString: X,
|
|
18304
18307
|
resource: V,
|
|
18305
18308
|
setextHeading: l(I),
|
|
18306
18309
|
setextHeadingLineSequence: T,
|
|
18307
|
-
setextHeadingText:
|
|
18310
|
+
setextHeadingText: w,
|
|
18308
18311
|
strong: l(),
|
|
18309
18312
|
thematicBreak: l()
|
|
18310
18313
|
}
|
|
@@ -18516,7 +18519,7 @@ function Cw(e) {
|
|
|
18516
18519
|
ae.depth = pe;
|
|
18517
18520
|
}
|
|
18518
18521
|
}
|
|
18519
|
-
function
|
|
18522
|
+
function w() {
|
|
18520
18523
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
18521
18524
|
}
|
|
18522
18525
|
function T(W) {
|
|
@@ -18593,7 +18596,7 @@ function Cw(e) {
|
|
|
18593
18596
|
} else
|
|
18594
18597
|
pe.alt = ae;
|
|
18595
18598
|
}
|
|
18596
|
-
function
|
|
18599
|
+
function D() {
|
|
18597
18600
|
const W = this.resume(), ae = this.stack[this.stack.length - 1];
|
|
18598
18601
|
ae.url = W;
|
|
18599
18602
|
}
|
|
@@ -19351,14 +19354,14 @@ const If = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
19351
19354
|
case "ArrowRight":
|
|
19352
19355
|
v.stopPropagation(), v.preventDefault();
|
|
19353
19356
|
const x = v.currentTarget.closest("li");
|
|
19354
|
-
let
|
|
19357
|
+
let w = x == null ? void 0 : x.nextElementSibling;
|
|
19355
19358
|
if (v.key === "ArrowLeft") {
|
|
19356
19359
|
const N = x == null ? void 0 : x.previousElementSibling;
|
|
19357
|
-
N ?
|
|
19360
|
+
N ? w = N : w = (b = x == null ? void 0 : x.parentElement) == null ? void 0 : b.lastElementChild;
|
|
19358
19361
|
} else
|
|
19359
|
-
|
|
19360
|
-
const T =
|
|
19361
|
-
T && (m(T), (_ =
|
|
19362
|
+
w || (w = (C = x == null ? void 0 : x.parentElement) == null ? void 0 : C.firstElementChild);
|
|
19363
|
+
const T = w == null ? void 0 : w.className.split(" ")[0];
|
|
19364
|
+
T && (m(T), (_ = w == null ? void 0 : w.querySelector("button")) == null || _.focus());
|
|
19362
19365
|
break;
|
|
19363
19366
|
default:
|
|
19364
19367
|
const I = v.currentTarget.closest("fieldset");
|
|
@@ -19532,7 +19535,7 @@ const Lw = () => {
|
|
|
19532
19535
|
}, 500);
|
|
19533
19536
|
}, [u.selection]);
|
|
19534
19537
|
const b = [], C = ["open", "edit", "remove"].map((x) => {
|
|
19535
|
-
const
|
|
19538
|
+
const w = {
|
|
19536
19539
|
variant: "tertiary",
|
|
19537
19540
|
size: "small",
|
|
19538
19541
|
children: e.formatMessage(
|
|
@@ -19542,20 +19545,20 @@ const Lw = () => {
|
|
|
19542
19545
|
};
|
|
19543
19546
|
switch (b.push({ className: x }), x) {
|
|
19544
19547
|
case "open":
|
|
19545
|
-
|
|
19548
|
+
w.href = (d == null ? void 0 : d.full) || "", w.onClick = (T) => {
|
|
19546
19549
|
T.preventDefault(), T.stopPropagation(), window.open((d == null ? void 0 : d.full) || "", "_blank"), s([{ type: "showLinkEditor", value: !1 }]);
|
|
19547
|
-
},
|
|
19548
|
-
|
|
19550
|
+
}, w.children = /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
19551
|
+
w.children,
|
|
19549
19552
|
/* @__PURE__ */ c.jsx(qe, { children: e.formatMessage({ id: `${t}${x}_text` }) })
|
|
19550
19553
|
] });
|
|
19551
19554
|
break;
|
|
19552
19555
|
case "edit":
|
|
19553
|
-
|
|
19556
|
+
w.onClick = () => {
|
|
19554
19557
|
g(!1);
|
|
19555
19558
|
};
|
|
19556
19559
|
break;
|
|
19557
19560
|
case "remove":
|
|
19558
|
-
|
|
19561
|
+
w.onClick = () => {
|
|
19559
19562
|
const T = [
|
|
19560
19563
|
{ type: "showLinkEditor", value: !1 }
|
|
19561
19564
|
];
|
|
@@ -19563,7 +19566,7 @@ const Lw = () => {
|
|
|
19563
19566
|
};
|
|
19564
19567
|
break;
|
|
19565
19568
|
}
|
|
19566
|
-
return
|
|
19569
|
+
return w;
|
|
19567
19570
|
}), _ = [
|
|
19568
19571
|
{
|
|
19569
19572
|
id: "url",
|
|
@@ -19589,8 +19592,8 @@ const Lw = () => {
|
|
|
19589
19592
|
if (!u)
|
|
19590
19593
|
return;
|
|
19591
19594
|
x.preventDefault(), x.stopPropagation();
|
|
19592
|
-
const
|
|
19593
|
-
J.select(u,
|
|
19595
|
+
const w = y.end(u, []);
|
|
19596
|
+
J.select(u, w), ee.focus(u);
|
|
19594
19597
|
}
|
|
19595
19598
|
}
|
|
19596
19599
|
}
|
|
@@ -19635,15 +19638,15 @@ const Lw = () => {
|
|
|
19635
19638
|
functions: {
|
|
19636
19639
|
onSuccess: async (x) => {
|
|
19637
19640
|
setTimeout(async () => {
|
|
19638
|
-
const
|
|
19641
|
+
const w = [
|
|
19639
19642
|
{ type: "showLinkEditor", value: !1 }
|
|
19640
19643
|
];
|
|
19641
19644
|
let T = x.url;
|
|
19642
19645
|
if (x.url) {
|
|
19643
19646
|
const { full: I } = oo(x.url);
|
|
19644
|
-
T = I, d != null && d.full ? Iw(u, T, n, l) : $w(u, T, n, l),
|
|
19647
|
+
T = I, d != null && d.full ? Iw(u, T, n, l) : $w(u, T, n, l), w.push({ type: "lastAnchor", value: null });
|
|
19645
19648
|
}
|
|
19646
|
-
if (s(
|
|
19649
|
+
if (s(w), x.url && o && (!m || a && (d == null ? void 0 : d.full) === a.url)) {
|
|
19647
19650
|
const I = await o(T);
|
|
19648
19651
|
I.url && s([{ type: "enrichedUrl", value: I }]);
|
|
19649
19652
|
}
|
|
@@ -20620,7 +20623,7 @@ const Jf = ({
|
|
|
20620
20623
|
hasInteracted: !1,
|
|
20621
20624
|
hasLoaded: !1,
|
|
20622
20625
|
enrichedUrl: !1
|
|
20623
|
-
}, [x,
|
|
20626
|
+
}, [x, w] = yr(ma, B), {
|
|
20624
20627
|
editorKey: T,
|
|
20625
20628
|
originalValue: I,
|
|
20626
20629
|
initialValue: N,
|
|
@@ -20632,11 +20635,11 @@ const Jf = ({
|
|
|
20632
20635
|
enrichedUrl: S,
|
|
20633
20636
|
mentionPopover: U
|
|
20634
20637
|
} = x, H = (j) => {
|
|
20635
|
-
j &&
|
|
20638
|
+
j && w([{ type: "tabbableOption", value: j || ia[0] }]);
|
|
20636
20639
|
}, ie = async (j) => {
|
|
20637
20640
|
const P = await v(j);
|
|
20638
|
-
P.url &&
|
|
20639
|
-
}, te = `rte-${e}`,
|
|
20641
|
+
P.url && w([{ type: "enrichedUrl", value: P }]);
|
|
20642
|
+
}, te = `rte-${e}`, D = Ne(
|
|
20640
20643
|
(j) => /* @__PURE__ */ c.jsx(cg, { ...j }),
|
|
20641
20644
|
[]
|
|
20642
20645
|
), X = Ne((j) => /* @__PURE__ */ c.jsx(dg, { ...j }), []), V = en(
|
|
@@ -20669,7 +20672,7 @@ const Jf = ({
|
|
|
20669
20672
|
};
|
|
20670
20673
|
}, []), de(() => {
|
|
20671
20674
|
if (V.children.length > 0 && !O) {
|
|
20672
|
-
if (
|
|
20675
|
+
if (w([{ type: "hasLoaded", value: !0 }]), !s)
|
|
20673
20676
|
return;
|
|
20674
20677
|
F(te);
|
|
20675
20678
|
}
|
|
@@ -20696,8 +20699,8 @@ const Jf = ({
|
|
|
20696
20699
|
{ type: "initialValue", value: L },
|
|
20697
20700
|
{ type: "editorKey", value: I.toString() }
|
|
20698
20701
|
];
|
|
20699
|
-
o != null && o.link && (Z.push({ type: "enrichedUrl", value: o.link }), o.link.url && ie(o.link.url)),
|
|
20700
|
-
|
|
20702
|
+
o != null && o.link && (Z.push({ type: "enrichedUrl", value: o.link }), o.link.url && ie(o.link.url)), w(Z), setTimeout(() => {
|
|
20703
|
+
w([{ type: "stringValue", value: xc(V) }]);
|
|
20701
20704
|
}, 150);
|
|
20702
20705
|
});
|
|
20703
20706
|
})();
|
|
@@ -20709,7 +20712,7 @@ const Jf = ({
|
|
|
20709
20712
|
const j = (P) => {
|
|
20710
20713
|
var q;
|
|
20711
20714
|
const L = P, Z = ((q = L == null ? void 0 : L.detail) == null ? void 0 : q.url) || null;
|
|
20712
|
-
Z && S && S.url === Z &&
|
|
20715
|
+
Z && S && S.url === Z && w([{ type: "enrichedUrl", value: void 0 }]);
|
|
20713
20716
|
};
|
|
20714
20717
|
return window.addEventListener("linkRemoved", j), () => {
|
|
20715
20718
|
window.removeEventListener("linkRemoved", j);
|
|
@@ -20718,7 +20721,7 @@ const Jf = ({
|
|
|
20718
20721
|
if (t) {
|
|
20719
20722
|
Wi.lastIndex = 0;
|
|
20720
20723
|
const j = t.match(Wi);
|
|
20721
|
-
j && j.length === 1 && j[0].length === t.length && !E &&
|
|
20724
|
+
j && j.length === 1 && j[0].length === t.length && !E && w([{ type: "originalValue", value: t }]);
|
|
20722
20725
|
}
|
|
20723
20726
|
t !== "" || !V || qi(I, t) && !E || (y.withoutNormalizing(V, () => {
|
|
20724
20727
|
J.delete(V, {
|
|
@@ -20727,7 +20730,7 @@ const Jf = ({
|
|
|
20727
20730
|
focus: y.end(V, [])
|
|
20728
20731
|
}
|
|
20729
20732
|
}), J.deselect(V), V.children.length !== 0 && J.unwrapNodes(V, { at: [0] }), J.insertNodes(V, _, { at: [0] });
|
|
20730
|
-
}),
|
|
20733
|
+
}), w([
|
|
20731
20734
|
{ type: "initialValue", value: _ },
|
|
20732
20735
|
{ type: "lastAnchor", value: null },
|
|
20733
20736
|
{ type: "enrichedUrl", value: !1 }
|
|
@@ -20735,7 +20738,7 @@ const Jf = ({
|
|
|
20735
20738
|
}, [t]), de(() => {
|
|
20736
20739
|
f({ link: S });
|
|
20737
20740
|
}, [S]), de(() => {
|
|
20738
|
-
z === "" && S &&
|
|
20741
|
+
z === "" && S && w([{ type: "enrichedUrl", value: void 0 }]);
|
|
20739
20742
|
}, [z]);
|
|
20740
20743
|
const A = Wc(() => {
|
|
20741
20744
|
jw({
|
|
@@ -20743,7 +20746,7 @@ const Jf = ({
|
|
|
20743
20746
|
isShowing: U.show,
|
|
20744
20747
|
numberOfUsers: U.numberOfUsers,
|
|
20745
20748
|
listMembers: m,
|
|
20746
|
-
dispatch:
|
|
20749
|
+
dispatch: w
|
|
20747
20750
|
});
|
|
20748
20751
|
}, 100);
|
|
20749
20752
|
return N ? /* @__PURE__ */ c.jsx("div", { id: te, className: "rich-text-editor", children: /* @__PURE__ */ c.jsxs(
|
|
@@ -20754,7 +20757,7 @@ const Jf = ({
|
|
|
20754
20757
|
id: te,
|
|
20755
20758
|
isInOverlay: h,
|
|
20756
20759
|
setFocus: H,
|
|
20757
|
-
dispatch:
|
|
20760
|
+
dispatch: w,
|
|
20758
20761
|
getLinkPreview: v,
|
|
20759
20762
|
onMention: b,
|
|
20760
20763
|
reportError: C
|
|
@@ -20768,7 +20771,7 @@ const Jf = ({
|
|
|
20768
20771
|
onChange: (j) => {
|
|
20769
20772
|
if (V.operations.some((L) => L.type !== "set_selection")) {
|
|
20770
20773
|
let L = Pw(j);
|
|
20771
|
-
L === "<br>" && (L = ""), g(L, S),
|
|
20774
|
+
L === "<br>" && (L = ""), g(L, S), w([{ type: "stringValue", value: xc(V) }]), E || w([{ type: "hasInteracted", value: !0 }]), A(), d && console.log({ serialized: L, json: j });
|
|
20772
20775
|
}
|
|
20773
20776
|
},
|
|
20774
20777
|
...l,
|
|
@@ -20777,7 +20780,7 @@ const Jf = ({
|
|
|
20777
20780
|
L1,
|
|
20778
20781
|
{
|
|
20779
20782
|
className: "input",
|
|
20780
|
-
renderElement:
|
|
20783
|
+
renderElement: D,
|
|
20781
20784
|
renderLeaf: X,
|
|
20782
20785
|
placeholder: n || u.formatMessage({ id: "richTextEditor_placeholder" }),
|
|
20783
20786
|
autoFocus: s,
|
|
@@ -20798,13 +20801,13 @@ const Jf = ({
|
|
|
20798
20801
|
}
|
|
20799
20802
|
if (L && v && !P) {
|
|
20800
20803
|
const re = await v(q);
|
|
20801
|
-
re.url &&
|
|
20804
|
+
re.url && w([{ type: "enrichedUrl", value: re }]);
|
|
20802
20805
|
}
|
|
20803
20806
|
}
|
|
20804
20807
|
},
|
|
20805
20808
|
onKeyDown: (j) => {
|
|
20806
20809
|
if (j.key === "Enter") {
|
|
20807
|
-
U.show && (j.preventDefault(), j.stopPropagation(), Mf(V, U,
|
|
20810
|
+
U.show && (j.preventDefault(), j.stopPropagation(), Mf(V, U, w, te));
|
|
20808
20811
|
const { selection: P } = V;
|
|
20809
20812
|
if (P) {
|
|
20810
20813
|
const L = G.isCollapsed(P), [Z, q] = y.node(V, P, { depth: 1 });
|
|
@@ -20845,7 +20848,7 @@ const Jf = ({
|
|
|
20845
20848
|
}
|
|
20846
20849
|
} else if (j.key === "Escape") {
|
|
20847
20850
|
if (U.show) {
|
|
20848
|
-
j.preventDefault(), j.stopPropagation(),
|
|
20851
|
+
j.preventDefault(), j.stopPropagation(), w([
|
|
20849
20852
|
{ type: "mentionPopover", value: { ...U, show: !1 } }
|
|
20850
20853
|
]);
|
|
20851
20854
|
return;
|
|
@@ -20854,17 +20857,17 @@ const Jf = ({
|
|
|
20854
20857
|
j.preventDefault(), j.stopPropagation();
|
|
20855
20858
|
const { selectedUser: P, possibleUsers: L } = U;
|
|
20856
20859
|
let Z = j.key === "ArrowUp" ? P - 1 : P + 1;
|
|
20857
|
-
Z < 0 && (Z = L.length - 1), Z >= L.length + 1 && (Z = 0),
|
|
20860
|
+
Z < 0 && (Z = L.length - 1), Z >= L.length + 1 && (Z = 0), w([
|
|
20858
20861
|
{
|
|
20859
20862
|
type: "mentionPopover",
|
|
20860
20863
|
value: { ...U, selectedUser: Z }
|
|
20861
20864
|
}
|
|
20862
20865
|
]);
|
|
20863
20866
|
}
|
|
20864
|
-
|
|
20867
|
+
w([{ type: "lastKey", value: j.key }]), Sw(j, V, w, C);
|
|
20865
20868
|
},
|
|
20866
20869
|
onBlur: () => {
|
|
20867
|
-
V.selection &&
|
|
20870
|
+
V.selection && w([{ type: "lastAnchor", value: V.selection.anchor }]);
|
|
20868
20871
|
},
|
|
20869
20872
|
onFocus: () => {
|
|
20870
20873
|
if (M) {
|
|
@@ -20893,7 +20896,7 @@ const Jf = ({
|
|
|
20893
20896
|
data: S,
|
|
20894
20897
|
variant: "condensed",
|
|
20895
20898
|
onClick: () => {
|
|
20896
|
-
|
|
20899
|
+
w([{ type: "enrichedUrl", value: !1 }]);
|
|
20897
20900
|
const j = new CustomEvent("ariaLive", {
|
|
20898
20901
|
detail: {
|
|
20899
20902
|
message: u.formatMessage({
|
|
@@ -21005,9 +21008,9 @@ function SC({
|
|
|
21005
21008
|
const x = B.target.files && B.target.files[0];
|
|
21006
21009
|
if (!x || !t)
|
|
21007
21010
|
throw m(!1), new Error("Image file or userID is missing");
|
|
21008
|
-
const
|
|
21009
|
-
thumbnail:
|
|
21010
|
-
full:
|
|
21011
|
+
const w = await i({ fileObject: x, userId: t }), T = {
|
|
21012
|
+
thumbnail: w.thumbnailURL,
|
|
21013
|
+
full: w.originalURL
|
|
21011
21014
|
};
|
|
21012
21015
|
d(T), s(T);
|
|
21013
21016
|
} catch {
|
|
@@ -21161,11 +21164,11 @@ const OC = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
|
|
|
21161
21164
|
"SUCCESS"
|
|
21162
21165
|
/* SUCCESS */
|
|
21163
21166
|
);
|
|
21164
|
-
} catch (
|
|
21167
|
+
} catch (w) {
|
|
21165
21168
|
v(
|
|
21166
21169
|
"ERROR"
|
|
21167
21170
|
/* ERROR */
|
|
21168
|
-
), l(
|
|
21171
|
+
), l(w);
|
|
21169
21172
|
}
|
|
21170
21173
|
}, _ = (x) => {
|
|
21171
21174
|
x.preventDefault(), v(
|
|
@@ -21295,131 +21298,143 @@ const OC = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
|
|
|
21295
21298
|
r && /* @__PURE__ */ c.jsx(Vn, { variant: "error", text: r })
|
|
21296
21299
|
] });
|
|
21297
21300
|
};
|
|
21298
|
-
const NC = ({
|
|
21299
|
-
|
|
21300
|
-
|
|
21301
|
-
|
|
21302
|
-
|
|
21301
|
+
const NC = ({
|
|
21302
|
+
isCreateProfile: e = !1,
|
|
21303
|
+
hooks: t,
|
|
21304
|
+
functions: n,
|
|
21305
|
+
meta: r = {},
|
|
21306
|
+
gtm: i,
|
|
21307
|
+
...a
|
|
21308
|
+
}) => {
|
|
21309
|
+
var I, N;
|
|
21310
|
+
const s = ce(), o = "profileForm_", l = Me(pt), [u, d] = le(l.image), [h, m] = le(!1), {
|
|
21311
|
+
uploadImage: p = () => {
|
|
21312
|
+
},
|
|
21313
|
+
onSuccess: g = async (z) => {
|
|
21303
21314
|
},
|
|
21304
|
-
onCancel:
|
|
21315
|
+
onCancel: f = () => {
|
|
21305
21316
|
},
|
|
21306
|
-
onFailure:
|
|
21317
|
+
onFailure: v = () => {
|
|
21307
21318
|
}
|
|
21308
|
-
} =
|
|
21309
|
-
return /* @__PURE__ */ c.jsx(
|
|
21310
|
-
pn,
|
|
21319
|
+
} = n, { buildLocation: b, isValidPlace: C, predictPlaces: _ } = t.useMaps(), { context: B = "ProfileForm", event: x = "profile-form-submit-click" } = i || {}, w = [
|
|
21311
21320
|
{
|
|
21312
|
-
id: "
|
|
21313
|
-
|
|
21314
|
-
|
|
21315
|
-
|
|
21316
|
-
|
|
21317
|
-
|
|
21318
|
-
|
|
21319
|
-
|
|
21320
|
-
|
|
21321
|
-
|
|
21322
|
-
|
|
21323
|
-
|
|
21324
|
-
|
|
21325
|
-
|
|
21326
|
-
|
|
21327
|
-
|
|
21328
|
-
|
|
21329
|
-
|
|
21330
|
-
|
|
21331
|
-
|
|
21332
|
-
|
|
21333
|
-
|
|
21334
|
-
|
|
21335
|
-
|
|
21336
|
-
|
|
21337
|
-
},
|
|
21338
|
-
{
|
|
21339
|
-
id: "jobTitle",
|
|
21340
|
-
type: "text",
|
|
21341
|
-
label: i.formatMessage({ id: `${a}jobTitle` }),
|
|
21342
|
-
placeholder: i.formatMessage({ id: `${a}jobTitle_placeholder` }),
|
|
21343
|
-
value: s.jobTitle,
|
|
21344
|
-
validation: [{ condition: "required" }]
|
|
21345
|
-
},
|
|
21321
|
+
id: "jobTitle",
|
|
21322
|
+
type: "text",
|
|
21323
|
+
label: s.formatMessage({ id: `${o}jobTitle` }),
|
|
21324
|
+
placeholder: s.formatMessage({ id: `${o}jobTitle_placeholder` }),
|
|
21325
|
+
value: l.jobTitle,
|
|
21326
|
+
validation: [{ condition: "required" }]
|
|
21327
|
+
},
|
|
21328
|
+
{
|
|
21329
|
+
id: "organization",
|
|
21330
|
+
type: "text",
|
|
21331
|
+
label: s.formatMessage({ id: `${o}organization` }),
|
|
21332
|
+
placeholder: s.formatMessage({
|
|
21333
|
+
id: `${o}organization_placeholder`
|
|
21334
|
+
}),
|
|
21335
|
+
value: l.organization,
|
|
21336
|
+
validation: [{ condition: "required" }]
|
|
21337
|
+
},
|
|
21338
|
+
{
|
|
21339
|
+
id: "location",
|
|
21340
|
+
type: "autocomplete",
|
|
21341
|
+
label: s.formatMessage({ id: `${o}location` }),
|
|
21342
|
+
placeholder: s.formatMessage({ id: `${o}location_placeholder` }),
|
|
21343
|
+
value: ((I = l.location) == null ? void 0 : I.en) || ((N = l.location) == null ? void 0 : N.country),
|
|
21344
|
+
validation: [
|
|
21345
|
+
{ condition: "required" },
|
|
21346
21346
|
{
|
|
21347
|
-
|
|
21348
|
-
|
|
21349
|
-
|
|
21350
|
-
|
|
21351
|
-
|
|
21352
|
-
|
|
21353
|
-
|
|
21354
|
-
validation: [{ condition: "required" }]
|
|
21347
|
+
condition: ({ location: z }) => z && !h ? !1 : !C(z),
|
|
21348
|
+
error: s.formatMessage({ id: `${o}location_error` })
|
|
21349
|
+
}
|
|
21350
|
+
],
|
|
21351
|
+
functions: {
|
|
21352
|
+
onChange: () => {
|
|
21353
|
+
h || m(!0);
|
|
21355
21354
|
},
|
|
21356
|
-
|
|
21357
|
-
|
|
21358
|
-
|
|
21359
|
-
|
|
21360
|
-
|
|
21361
|
-
|
|
21362
|
-
|
|
21363
|
-
|
|
21364
|
-
|
|
21365
|
-
|
|
21366
|
-
|
|
21367
|
-
|
|
21368
|
-
|
|
21369
|
-
|
|
21370
|
-
|
|
21371
|
-
|
|
21372
|
-
}
|
|
21373
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
21374
|
-
// @ts-ignore
|
|
21375
|
-
onKeyInput: b
|
|
21355
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
21356
|
+
// @ts-ignore
|
|
21357
|
+
onKeyInput: _
|
|
21358
|
+
}
|
|
21359
|
+
}
|
|
21360
|
+
], T = [
|
|
21361
|
+
{
|
|
21362
|
+
component: SC,
|
|
21363
|
+
props: {
|
|
21364
|
+
userName: l.name,
|
|
21365
|
+
userId: l.id,
|
|
21366
|
+
src: u,
|
|
21367
|
+
uploadImage: p,
|
|
21368
|
+
callback: d,
|
|
21369
|
+
button: {
|
|
21370
|
+
text: {
|
|
21371
|
+
upload: s.formatMessage({ id: `${o}image` })
|
|
21376
21372
|
}
|
|
21377
|
-
},
|
|
21378
|
-
{
|
|
21379
|
-
id: "biography",
|
|
21380
|
-
type: "textarea",
|
|
21381
|
-
label: i.formatMessage({ id: `${a}bio` }),
|
|
21382
|
-
placeholder: i.formatMessage({ id: `${a}bio_placeholder` }),
|
|
21383
|
-
limit: 1e3,
|
|
21384
|
-
value: s.biography
|
|
21385
|
-
},
|
|
21386
|
-
{
|
|
21387
|
-
component: fn
|
|
21388
21373
|
}
|
|
21389
|
-
|
|
21374
|
+
}
|
|
21375
|
+
},
|
|
21376
|
+
{
|
|
21377
|
+
id: "name",
|
|
21378
|
+
type: "text",
|
|
21379
|
+
label: s.formatMessage({ id: `${o}name` }),
|
|
21380
|
+
placeholder: s.formatMessage({ id: `${o}name_placeholder` }),
|
|
21381
|
+
value: l.name,
|
|
21382
|
+
autoComplete: "name",
|
|
21383
|
+
validation: [{ condition: "required" }]
|
|
21384
|
+
},
|
|
21385
|
+
...w,
|
|
21386
|
+
{
|
|
21387
|
+
id: "biography",
|
|
21388
|
+
type: "textarea",
|
|
21389
|
+
label: s.formatMessage({ id: `${o}bio` }),
|
|
21390
|
+
placeholder: s.formatMessage({ id: `${o}bio_placeholder` }),
|
|
21391
|
+
limit: 1e3,
|
|
21392
|
+
value: l.biography
|
|
21393
|
+
},
|
|
21394
|
+
{
|
|
21395
|
+
component: fn
|
|
21396
|
+
}
|
|
21397
|
+
];
|
|
21398
|
+
return /* @__PURE__ */ c.jsx(
|
|
21399
|
+
pn,
|
|
21400
|
+
{
|
|
21401
|
+
id: "profile-details-form",
|
|
21402
|
+
fields: e ? w : T,
|
|
21390
21403
|
meta: {
|
|
21391
|
-
shouldShowCancelButton: !
|
|
21404
|
+
shouldShowCancelButton: !e,
|
|
21392
21405
|
shouldReset: !1,
|
|
21393
21406
|
shouldHide: !1,
|
|
21394
|
-
showRequiredLabels:
|
|
21395
|
-
...
|
|
21407
|
+
showRequiredLabels: e,
|
|
21408
|
+
...r
|
|
21396
21409
|
},
|
|
21397
|
-
intlPath:
|
|
21398
|
-
gtm: { context:
|
|
21410
|
+
intlPath: o,
|
|
21411
|
+
gtm: { context: B, event: x },
|
|
21399
21412
|
functions: {
|
|
21400
|
-
onSuccess: async (
|
|
21413
|
+
onSuccess: async (z) => {
|
|
21401
21414
|
try {
|
|
21402
|
-
const
|
|
21403
|
-
...
|
|
21404
|
-
image:
|
|
21405
|
-
location:
|
|
21415
|
+
const M = {
|
|
21416
|
+
...z,
|
|
21417
|
+
image: u || null,
|
|
21418
|
+
location: h ? await b(z == null ? void 0 : z.location) : l.location,
|
|
21419
|
+
...e ? { onboardingState: "completed" } : {}
|
|
21406
21420
|
};
|
|
21407
|
-
|
|
21421
|
+
l.updateDetails && l.updateDetails((k) => ({ ...k, ...M })), await g(M);
|
|
21408
21422
|
} catch {
|
|
21409
|
-
|
|
21423
|
+
v();
|
|
21410
21424
|
}
|
|
21411
21425
|
},
|
|
21412
|
-
onCancel:
|
|
21413
|
-
onFailure:
|
|
21426
|
+
onCancel: f,
|
|
21427
|
+
onFailure: v
|
|
21414
21428
|
},
|
|
21415
21429
|
button: {
|
|
21416
21430
|
size: "large",
|
|
21417
21431
|
text: {
|
|
21418
|
-
default:
|
|
21419
|
-
submitting:
|
|
21420
|
-
submitted:
|
|
21432
|
+
default: s.formatMessage({ id: `${o}cta` }),
|
|
21433
|
+
submitting: s.formatMessage({ id: `${o}cta_submitting` }),
|
|
21434
|
+
submitted: s.formatMessage({ id: `${o}cta_submitted` })
|
|
21421
21435
|
}
|
|
21422
|
-
}
|
|
21436
|
+
},
|
|
21437
|
+
...a
|
|
21423
21438
|
}
|
|
21424
21439
|
);
|
|
21425
21440
|
};
|
|
@@ -21439,9 +21454,9 @@ const ht = "publishArticleForm_", Fc = {}, Ac = 10, nk = ({
|
|
|
21439
21454
|
}, [t.body]);
|
|
21440
21455
|
const b = () => {
|
|
21441
21456
|
!s || !s.id ? g(a.formatMessage({ id: `${ht}error_loggedOut` })) : p && g(!1);
|
|
21442
|
-
}, C = (
|
|
21457
|
+
}, C = (w) => ({
|
|
21443
21458
|
condition: (T) => {
|
|
21444
|
-
const I = T[
|
|
21459
|
+
const I = T[w];
|
|
21445
21460
|
return !I || typeof I != "string" ? !0 : I.length < Ac;
|
|
21446
21461
|
},
|
|
21447
21462
|
error: a.formatMessage(
|
|
@@ -21504,8 +21519,8 @@ const ht = "publishArticleForm_", Fc = {}, Ac = 10, nk = ({
|
|
|
21504
21519
|
meta: { isInOverlay: d },
|
|
21505
21520
|
autoFocus: !1,
|
|
21506
21521
|
functions: {
|
|
21507
|
-
onChange: (
|
|
21508
|
-
m(
|
|
21522
|
+
onChange: (w) => {
|
|
21523
|
+
m(w), b();
|
|
21509
21524
|
}
|
|
21510
21525
|
},
|
|
21511
21526
|
"aria-invalid": !!p,
|
|
@@ -21525,11 +21540,11 @@ const ht = "publishArticleForm_", Fc = {}, Ac = 10, nk = ({
|
|
|
21525
21540
|
showRequiredLabels: !1
|
|
21526
21541
|
},
|
|
21527
21542
|
functions: {
|
|
21528
|
-
onSuccess: async (
|
|
21543
|
+
onSuccess: async (w) => {
|
|
21529
21544
|
if (!s || !s.id || _)
|
|
21530
21545
|
return;
|
|
21531
21546
|
ds && clearTimeout(ds);
|
|
21532
|
-
const T = { ...
|
|
21547
|
+
const T = { ...w, body: h };
|
|
21533
21548
|
try {
|
|
21534
21549
|
o && await o(T), ds = setTimeout(() => {
|
|
21535
21550
|
m(""), v(a.formatMessage({ id: `${ht}aria_success` })), l(T);
|
|
@@ -21930,7 +21945,7 @@ const zC = {
|
|
|
21930
21945
|
shouldManuallyApprove: _,
|
|
21931
21946
|
shouldDisableButton: B,
|
|
21932
21947
|
showSuccessMessage: x,
|
|
21933
|
-
showError:
|
|
21948
|
+
showError: w
|
|
21934
21949
|
} = f, [T, I] = Lc([
|
|
21935
21950
|
"signup-this-session",
|
|
21936
21951
|
"functional-cookie-consent"
|
|
@@ -21971,7 +21986,7 @@ const zC = {
|
|
|
21971
21986
|
"data-testid": "signup-form",
|
|
21972
21987
|
children: [
|
|
21973
21988
|
g.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(mt, { id: "signup_title" }) }),
|
|
21974
|
-
|
|
21989
|
+
w && /* @__PURE__ */ c.jsx(
|
|
21975
21990
|
Vn,
|
|
21976
21991
|
{
|
|
21977
21992
|
variant: "error",
|
|
@@ -23185,10 +23200,10 @@ const HC = () => {
|
|
|
23185
23200
|
variant: h = "default",
|
|
23186
23201
|
circle: m = "default",
|
|
23187
23202
|
modal: p = "default"
|
|
23188
|
-
} = a, g = Rh(), [f, v] = le(""), b = (
|
|
23203
|
+
} = a, g = Rh(), [f, v] = le(""), b = (w) => {
|
|
23189
23204
|
const {
|
|
23190
23205
|
detail: { message: T }
|
|
23191
|
-
} =
|
|
23206
|
+
} = w;
|
|
23192
23207
|
v(T);
|
|
23193
23208
|
};
|
|
23194
23209
|
de(() => (window.scrollTo(0, 0), document.addEventListener("ariaLive", b), () => {
|
|
@@ -23510,7 +23525,7 @@ const nt = "discussion_form_", Ca = ({
|
|
|
23510
23525
|
isInOverlay: _ = !1,
|
|
23511
23526
|
isAutoFocused: B = !1,
|
|
23512
23527
|
isEditing: x = !1,
|
|
23513
|
-
hasTitleField:
|
|
23528
|
+
hasTitleField: w = !1,
|
|
23514
23529
|
isPrepopulated: T = !1,
|
|
23515
23530
|
showTitle: I = !1,
|
|
23516
23531
|
showGuidelines: N = !0,
|
|
@@ -23531,7 +23546,7 @@ const nt = "discussion_form_", Ca = ({
|
|
|
23531
23546
|
},
|
|
23532
23547
|
onMention: te = () => {
|
|
23533
23548
|
},
|
|
23534
|
-
listMembers:
|
|
23549
|
+
listMembers: D = () => Promise.resolve([]),
|
|
23535
23550
|
clickMentionFallback: X = () => {
|
|
23536
23551
|
},
|
|
23537
23552
|
getLinkPreview: V = () => Promise.resolve({}),
|
|
@@ -23539,7 +23554,7 @@ const nt = "discussion_form_", Ca = ({
|
|
|
23539
23554
|
create: { projectNames: ["questions-answers"] }
|
|
23540
23555
|
}
|
|
23541
23556
|
} = d, [A, j] = le({
|
|
23542
|
-
title:
|
|
23557
|
+
title: w && w.text || "",
|
|
23543
23558
|
body: x && x.text || T && T.text || "",
|
|
23544
23559
|
categories: x && x.categories ? x.categories : "",
|
|
23545
23560
|
data: h != null && h.link ? { link: h == null ? void 0 : h.link } : {}
|
|
@@ -23654,14 +23669,14 @@ const nt = "discussion_form_", Ca = ({
|
|
|
23654
23669
|
j((W) => ({ ...W, data: xe }));
|
|
23655
23670
|
}, Be = !A.title || !Vi(A.title), Se = !A.body || !Vi(A.body);
|
|
23656
23671
|
let je = Se;
|
|
23657
|
-
|
|
23672
|
+
w && (je = Be && Se);
|
|
23658
23673
|
const We = Z === "submitting", He = [
|
|
23659
23674
|
{
|
|
23660
23675
|
component: XC,
|
|
23661
23676
|
props: {
|
|
23662
23677
|
formID: ue,
|
|
23663
23678
|
intlPath: nt,
|
|
23664
|
-
showLabel:
|
|
23679
|
+
showLabel: w !== !1,
|
|
23665
23680
|
type: n.type
|
|
23666
23681
|
}
|
|
23667
23682
|
},
|
|
@@ -23682,12 +23697,12 @@ const nt = "discussion_form_", Ca = ({
|
|
|
23682
23697
|
onChange: re,
|
|
23683
23698
|
onChangeData: ge,
|
|
23684
23699
|
onMention: te,
|
|
23685
|
-
listMembers:
|
|
23700
|
+
listMembers: D,
|
|
23686
23701
|
clickMentionFallback: X,
|
|
23687
23702
|
getLinkPreview: V
|
|
23688
23703
|
},
|
|
23689
23704
|
data: h,
|
|
23690
|
-
autoFocus: x !== !1 || B && !
|
|
23705
|
+
autoFocus: x !== !1 || B && !w,
|
|
23691
23706
|
"aria-invalid": !!P,
|
|
23692
23707
|
"aria-errormessage": "error-message"
|
|
23693
23708
|
}
|
|
@@ -23697,10 +23712,10 @@ const nt = "discussion_form_", Ca = ({
|
|
|
23697
23712
|
props: { intlPath: nt, showGuidelines: N, type: n.type, gtmContext: m }
|
|
23698
23713
|
}
|
|
23699
23714
|
];
|
|
23700
|
-
z && He.push({ component: fn }),
|
|
23715
|
+
z && He.push({ component: fn }), w && He.unshift({
|
|
23701
23716
|
id: "title",
|
|
23702
23717
|
type: "text",
|
|
23703
|
-
value:
|
|
23718
|
+
value: w.text,
|
|
23704
23719
|
limit: 250,
|
|
23705
23720
|
label: p.formatMessage({ id: `${nt}titleField_label` }),
|
|
23706
23721
|
placeholder: p.formatMessage({ id: `${nt}titleField_placeholder` }),
|
|
@@ -23742,7 +23757,7 @@ const nt = "discussion_form_", Ca = ({
|
|
|
23742
23757
|
}
|
|
23743
23758
|
});
|
|
23744
23759
|
let Ke = !g || !g.id || !r || je || We;
|
|
23745
|
-
return x && (
|
|
23760
|
+
return x && (w ? Ke = Ke || A.body === x.text && A.title === w.text : Ke = Ke || A.body === x.text), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
23746
23761
|
/* @__PURE__ */ c.jsxs(
|
|
23747
23762
|
pn,
|
|
23748
23763
|
{
|
|
@@ -23904,7 +23919,7 @@ const sE = ({
|
|
|
23904
23919
|
ignoreInteractions: _,
|
|
23905
23920
|
showLikers: B,
|
|
23906
23921
|
tabbableLink: x,
|
|
23907
|
-
showLikesModal:
|
|
23922
|
+
showLikesModal: w
|
|
23908
23923
|
} = f, T = rE(v);
|
|
23909
23924
|
de(() => {
|
|
23910
23925
|
v([{ type: "userLikedContent", value: i }]);
|
|
@@ -24072,14 +24087,14 @@ const sE = ({
|
|
|
24072
24087
|
] })
|
|
24073
24088
|
}
|
|
24074
24089
|
),
|
|
24075
|
-
|
|
24090
|
+
w && /* @__PURE__ */ c.jsx(ii, { children: /* @__PURE__ */ c.jsx($c, { children: /* @__PURE__ */ c.jsx(
|
|
24076
24091
|
iE,
|
|
24077
24092
|
{
|
|
24078
24093
|
activityId: o,
|
|
24079
24094
|
basePath: l,
|
|
24080
24095
|
parentId: u,
|
|
24081
24096
|
likeCount: t,
|
|
24082
|
-
showModal:
|
|
24097
|
+
showModal: w,
|
|
24083
24098
|
functions: {
|
|
24084
24099
|
onClose: () => v([{ type: "showLikesModal", value: !1 }]),
|
|
24085
24100
|
likes: {
|
|
@@ -24584,7 +24599,7 @@ function wE({
|
|
|
24584
24599
|
},
|
|
24585
24600
|
user: h,
|
|
24586
24601
|
...m
|
|
24587
|
-
}, g = xE({ ...p, mutationFn: e }), f = DE({ ...p, mutationFn: t }), v = CE({ ...p, mutationFn: n }), b = kE({ ...p, mutationFn: i }), C = FE({ ...p, mutationFn: a }), _ = _E({ ...p, mutationFn: s }), B = AE({ ...p, mutationFn: o }), { activities: x, ...
|
|
24602
|
+
}, g = xE({ ...p, mutationFn: e }), f = DE({ ...p, mutationFn: t }), v = CE({ ...p, mutationFn: n }), b = kE({ ...p, mutationFn: i }), C = FE({ ...p, mutationFn: a }), _ = _E({ ...p, mutationFn: s }), B = AE({ ...p, mutationFn: o }), { activities: x, ...w } = EE({
|
|
24588
24603
|
queryKey: l,
|
|
24589
24604
|
queryFn: r,
|
|
24590
24605
|
filterOption: u
|
|
@@ -24601,7 +24616,7 @@ function wE({
|
|
|
24601
24616
|
unpin: B
|
|
24602
24617
|
},
|
|
24603
24618
|
user: h,
|
|
24604
|
-
...
|
|
24619
|
+
...w
|
|
24605
24620
|
};
|
|
24606
24621
|
}
|
|
24607
24622
|
function CE({
|
|
@@ -24739,7 +24754,7 @@ const ck = ({
|
|
|
24739
24754
|
fetchNextPage: C,
|
|
24740
24755
|
hasNextPage: _,
|
|
24741
24756
|
isLoading: B,
|
|
24742
|
-
mutations: { create: x, edit:
|
|
24757
|
+
mutations: { create: x, edit: w, remove: T, like: I, unlike: N, pin: z, unpin: M }
|
|
24743
24758
|
} = wE({
|
|
24744
24759
|
queryKey: [e, t, "activities", m],
|
|
24745
24760
|
queryFns: a,
|
|
@@ -24841,7 +24856,7 @@ const ck = ({
|
|
|
24841
24856
|
id: H,
|
|
24842
24857
|
own_reactions: ie,
|
|
24843
24858
|
latest_reactions: te,
|
|
24844
|
-
reaction_counts:
|
|
24859
|
+
reaction_counts: D,
|
|
24845
24860
|
mentioned_users: X,
|
|
24846
24861
|
total_replies: V,
|
|
24847
24862
|
additional_data: F
|
|
@@ -24868,14 +24883,14 @@ const ck = ({
|
|
|
24868
24883
|
slug: H,
|
|
24869
24884
|
author: si(S == null ? void 0 : S.actor),
|
|
24870
24885
|
userLiked: j,
|
|
24871
|
-
likes: (
|
|
24886
|
+
likes: (D == null ? void 0 : D.like) || 0,
|
|
24872
24887
|
comments: V || 0,
|
|
24873
24888
|
peopleWhoLiked: L,
|
|
24874
24889
|
data: {
|
|
24875
24890
|
mentions: X,
|
|
24876
24891
|
...F || {}
|
|
24877
24892
|
},
|
|
24878
|
-
pinned: (
|
|
24893
|
+
pinned: (D == null ? void 0 : D.pin) && (D == null ? void 0 : D.pin) > 0 || !1,
|
|
24879
24894
|
categories: (S == null ? void 0 : S.categories) || []
|
|
24880
24895
|
},
|
|
24881
24896
|
links: {
|
|
@@ -24888,7 +24903,7 @@ const ck = ({
|
|
|
24888
24903
|
createContent: () => null,
|
|
24889
24904
|
deleteContent: () => T({ activityId: H }),
|
|
24890
24905
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24891
|
-
updateContent: (ue, { body: Q }) =>
|
|
24906
|
+
updateContent: (ue, { body: Q }) => w({ activityId: H, content: Q })
|
|
24892
24907
|
},
|
|
24893
24908
|
likes: {
|
|
24894
24909
|
createLike: () => I({ activityId: H }),
|
|
@@ -25652,7 +25667,7 @@ const NE = ({
|
|
|
25652
25667
|
queryFns: {
|
|
25653
25668
|
...a,
|
|
25654
25669
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25655
|
-
list: (
|
|
25670
|
+
list: (w) => a.list({ ...w, reactionId: r })
|
|
25656
25671
|
}
|
|
25657
25672
|
});
|
|
25658
25673
|
Vc([p]);
|
|
@@ -25693,7 +25708,7 @@ const NE = ({
|
|
|
25693
25708
|
},
|
|
25694
25709
|
functions: {
|
|
25695
25710
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25696
|
-
create: (
|
|
25711
|
+
create: (w, { body: T }) => g({ activityId: n, replyId: r, content: T }),
|
|
25697
25712
|
...s
|
|
25698
25713
|
},
|
|
25699
25714
|
meta: {
|
|
@@ -25703,15 +25718,15 @@ const NE = ({
|
|
|
25703
25718
|
showSuccessMessage: !1
|
|
25704
25719
|
}
|
|
25705
25720
|
},
|
|
25706
|
-
children: d && d.length > 0 ? d == null ? void 0 : d.map((
|
|
25707
|
-
var
|
|
25721
|
+
children: d && d.length > 0 ? d == null ? void 0 : d.map((w) => {
|
|
25722
|
+
var D, X, V, F, A, j, P;
|
|
25708
25723
|
const {
|
|
25709
25724
|
id: T,
|
|
25710
25725
|
own_children: I,
|
|
25711
25726
|
latest_children: N,
|
|
25712
25727
|
children_counts: z,
|
|
25713
25728
|
data: { mentioned_users: M, additional_data: k }
|
|
25714
|
-
} =
|
|
25729
|
+
} = w, O = (((D = I == null ? void 0 : I.like) == null ? void 0 : D.length) || 0) > 0 ? (X = I == null ? void 0 : I.like) == null ? void 0 : X.find((L) => {
|
|
25715
25730
|
var Z;
|
|
25716
25731
|
return ((Z = L == null ? void 0 : L.user) == null ? void 0 : Z.id) === (_ == null ? void 0 : _.id);
|
|
25717
25732
|
}) : !1, S = O ? O == null ? void 0 : O.id : "", U = !!O, ie = (((V = N == null ? void 0 : N.like) == null ? void 0 : V.length) || 0) > 0 ? (F = N == null ? void 0 : N.like) == null ? void 0 : F.map((L) => {
|
|
@@ -25720,9 +25735,9 @@ const NE = ({
|
|
|
25720
25735
|
id: (Z = L == null ? void 0 : L.user) == null ? void 0 : Z.id,
|
|
25721
25736
|
name: (re = (q = L == null ? void 0 : L.user) == null ? void 0 : q.data) == null ? void 0 : re.name
|
|
25722
25737
|
};
|
|
25723
|
-
}) : !1, te = typeof
|
|
25738
|
+
}) : !1, te = typeof w.data.content == "string" ? (A = w == null ? void 0 : w.data) == null ? void 0 : A.content : (
|
|
25724
25739
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25725
|
-
((P = (j =
|
|
25740
|
+
((P = (j = w == null ? void 0 : w.data) == null ? void 0 : j.content) == null ? void 0 : P.text) || ""
|
|
25726
25741
|
);
|
|
25727
25742
|
return /* @__PURE__ */ c.jsx(
|
|
25728
25743
|
Ea,
|
|
@@ -25733,16 +25748,16 @@ const NE = ({
|
|
|
25733
25748
|
type: "reply",
|
|
25734
25749
|
body: te,
|
|
25735
25750
|
canLike: i,
|
|
25736
|
-
createdAt:
|
|
25751
|
+
createdAt: w == null ? void 0 : w.created_at,
|
|
25737
25752
|
slugs: {
|
|
25738
25753
|
question: `${e}/${t}`,
|
|
25739
25754
|
answer: n,
|
|
25740
25755
|
// Stop-gap solution to avoid having to change the DiscussionPost component
|
|
25741
25756
|
// The `reply` is currently used to define the form ID which handles the focus
|
|
25742
|
-
reply:
|
|
25757
|
+
reply: w == null ? void 0 : w.parent
|
|
25743
25758
|
},
|
|
25744
25759
|
slug: "",
|
|
25745
|
-
author: si(
|
|
25760
|
+
author: si(w == null ? void 0 : w.user),
|
|
25746
25761
|
userLiked: U,
|
|
25747
25762
|
likes: (z == null ? void 0 : z.like) || 0,
|
|
25748
25763
|
peopleWhoLiked: ie,
|
|
@@ -25809,7 +25824,7 @@ const ME = ({
|
|
|
25809
25824
|
} = lh({
|
|
25810
25825
|
queryKey: [e, t, n, "replies"],
|
|
25811
25826
|
queryFns: u
|
|
25812
|
-
}),
|
|
25827
|
+
}), w = () => {
|
|
25813
25828
|
I(m.length), p();
|
|
25814
25829
|
}, [T, I] = le(null);
|
|
25815
25830
|
return Vc([f]), uh(), /* @__PURE__ */ c.jsxs("section", { className: "replies-feed", children: [
|
|
@@ -25860,7 +25875,7 @@ const ME = ({
|
|
|
25860
25875
|
} = N, ie = (((A = k == null ? void 0 : k.like) == null ? void 0 : A.length) || 0) > 0 ? (j = k == null ? void 0 : k.like) == null ? void 0 : j.find((ue) => {
|
|
25861
25876
|
var Q;
|
|
25862
25877
|
return ((Q = ue == null ? void 0 : ue.user) == null ? void 0 : Q.id) === (x == null ? void 0 : x.id);
|
|
25863
|
-
}) : !1, te = ie ? ie == null ? void 0 : ie.id : "",
|
|
25878
|
+
}) : !1, te = ie ? ie == null ? void 0 : ie.id : "", D = !!ie, V = (((P = E == null ? void 0 : E.like) == null ? void 0 : P.length) || 0) > 0 ? (L = E == null ? void 0 : E.like) == null ? void 0 : L.map((ue) => {
|
|
25864
25879
|
var Q, ve, ge;
|
|
25865
25880
|
return {
|
|
25866
25881
|
id: (Q = ue == null ? void 0 : ue.user) == null ? void 0 : Q.id,
|
|
@@ -25887,7 +25902,7 @@ const ME = ({
|
|
|
25887
25902
|
},
|
|
25888
25903
|
slug: M,
|
|
25889
25904
|
author: si(N == null ? void 0 : N.user),
|
|
25890
|
-
userLiked:
|
|
25905
|
+
userLiked: D,
|
|
25891
25906
|
likes: (O == null ? void 0 : O.like) || 0,
|
|
25892
25907
|
peopleWhoLiked: V,
|
|
25893
25908
|
data: {
|
|
@@ -25950,7 +25965,7 @@ const ME = ({
|
|
|
25950
25965
|
pa,
|
|
25951
25966
|
{
|
|
25952
25967
|
hasNextPage: g,
|
|
25953
|
-
loadNextPage:
|
|
25968
|
+
loadNextPage: w,
|
|
25954
25969
|
icon: { icon: "arrow-down", position: "right" },
|
|
25955
25970
|
messages: {
|
|
25956
25971
|
button: h.formatMessage({ id: "loadMore_button" }),
|
|
@@ -26158,7 +26173,7 @@ const Ea = ({
|
|
|
26158
26173
|
parentId: B
|
|
26159
26174
|
}) => {
|
|
26160
26175
|
var Ze, xe, W, ae, pe, be, _e, Xe, et, ct, Nt, Ct, it, Tt, dt, Gn, bn, Sn;
|
|
26161
|
-
const x = ce(),
|
|
26176
|
+
const x = ce(), w = Me(pt), T = Me(qo), {
|
|
26162
26177
|
createContent: I = async () => {
|
|
26163
26178
|
},
|
|
26164
26179
|
deleteContent: N = async () => {
|
|
@@ -26177,12 +26192,12 @@ const Ea = ({
|
|
|
26177
26192
|
author: H,
|
|
26178
26193
|
canLike: ie,
|
|
26179
26194
|
createdAt: te,
|
|
26180
|
-
id:
|
|
26195
|
+
id: D,
|
|
26181
26196
|
likes: X = 0,
|
|
26182
26197
|
userLiked: V,
|
|
26183
26198
|
comments: F = 0,
|
|
26184
26199
|
data: A
|
|
26185
|
-
} = t, j =
|
|
26200
|
+
} = t, j = w && w.id && typeof H != "string" && H.id && H.id === w.id || !1, P = typeof ie == "boolean" ? ie : !0, L = j && (!t.createdAt || Hh(t.createdAt, 10, "seconds")), Z = ke(null), [q, re] = le({
|
|
26186
26201
|
title: t && t.body !== t.title && t.title || "",
|
|
26187
26202
|
body: t && t.body || "",
|
|
26188
26203
|
isEditing: !1,
|
|
@@ -26350,7 +26365,7 @@ const Ea = ({
|
|
|
26350
26365
|
/* @__PURE__ */ c.jsxs(
|
|
26351
26366
|
"div",
|
|
26352
26367
|
{
|
|
26353
|
-
id:
|
|
26368
|
+
id: D || t.slug,
|
|
26354
26369
|
className: K("discussion-card", t.type, {
|
|
26355
26370
|
editing: q.isEditing,
|
|
26356
26371
|
"has-link": l.post && !q.isEditing
|
|
@@ -27016,12 +27031,12 @@ const fk = ({
|
|
|
27016
27031
|
profile: m,
|
|
27017
27032
|
categories: p
|
|
27018
27033
|
}) => {
|
|
27019
|
-
var U, H, ie, te,
|
|
27034
|
+
var U, H, ie, te, D, X;
|
|
27020
27035
|
const g = ce(), {
|
|
27021
27036
|
activity: f,
|
|
27022
27037
|
error: v,
|
|
27023
27038
|
isLoading: b,
|
|
27024
|
-
mutations: { edit: C, like: _, unlike: B, pin: x, unpin:
|
|
27039
|
+
mutations: { edit: C, like: _, unlike: B, pin: x, unpin: w }
|
|
27025
27040
|
} = e_({
|
|
27026
27041
|
queryFns: s,
|
|
27027
27042
|
queryKey: [e, t, n]
|
|
@@ -27071,7 +27086,7 @@ const fk = ({
|
|
|
27071
27086
|
mentions: N,
|
|
27072
27087
|
...z || {}
|
|
27073
27088
|
},
|
|
27074
|
-
pinned: ((
|
|
27089
|
+
pinned: ((D = f == null ? void 0 : f.reaction_counts) == null ? void 0 : D.pin) && ((X = f == null ? void 0 : f.reaction_counts) == null ? void 0 : X.pin) > 0 || !1
|
|
27075
27090
|
},
|
|
27076
27091
|
originalAuthorId: S == null ? void 0 : S.id,
|
|
27077
27092
|
forceHide: { comments: !0 },
|
|
@@ -27096,7 +27111,7 @@ const fk = ({
|
|
|
27096
27111
|
// there will only ever be one pin so we can just grab the first one
|
|
27097
27112
|
deletePin: () => {
|
|
27098
27113
|
var V;
|
|
27099
|
-
return
|
|
27114
|
+
return w({ activityId: n, reactionId: (V = I == null ? void 0 : I.pin) == null ? void 0 : V[0].id });
|
|
27100
27115
|
}
|
|
27101
27116
|
},
|
|
27102
27117
|
form: u
|
|
@@ -27944,14 +27959,14 @@ const hh = ({
|
|
|
27944
27959
|
length: B,
|
|
27945
27960
|
gtmEvent: x
|
|
27946
27961
|
} = ha[b];
|
|
27947
|
-
let
|
|
27948
|
-
f.slug && (f.slug.slice(0, 4) === "http" || f.slug.slice(0, 2) === "//" || f.slug.slice(0, 6) === "mailto" || f.slug.slice(0, 3) === "tel") && (
|
|
27962
|
+
let w = f.slug ? `${C}${f.slug}` : !1;
|
|
27963
|
+
f.slug && (f.slug.slice(0, 4) === "http" || f.slug.slice(0, 2) === "//" || f.slug.slice(0, 6) === "mailto" || f.slug.slice(0, 3) === "tel") && (w = f.slug);
|
|
27949
27964
|
const T = (E) => {
|
|
27950
|
-
|
|
27965
|
+
w && (E.preventDefault(), E.stopPropagation(), window.location.href = w);
|
|
27951
27966
|
}, I = { ...h_, ...B };
|
|
27952
27967
|
let N = { className: "card" }, z = {};
|
|
27953
|
-
return
|
|
27954
|
-
href:
|
|
27968
|
+
return w && (z = {
|
|
27969
|
+
href: w,
|
|
27955
27970
|
className: "gtm-trackable",
|
|
27956
27971
|
"data-gtm-event-context": `${s}-CarouselCard`,
|
|
27957
27972
|
"data-gtm-event-type": `${x}-click`,
|
|
@@ -27968,8 +27983,8 @@ const hh = ({
|
|
|
27968
27983
|
"li",
|
|
27969
27984
|
{
|
|
27970
27985
|
className: K("card-wrapper text-medium", _, t, {
|
|
27971
|
-
"has-link":
|
|
27972
|
-
"no-link": !
|
|
27986
|
+
"has-link": w,
|
|
27987
|
+
"no-link": !w,
|
|
27973
27988
|
"has-image": f.banner
|
|
27974
27989
|
}),
|
|
27975
27990
|
"data-testid": `${b}-card`,
|
|
@@ -28038,7 +28053,7 @@ const hh = ({
|
|
|
28038
28053
|
O,
|
|
28039
28054
|
I[E]
|
|
28040
28055
|
);
|
|
28041
|
-
return ["title", "text"].includes(E) &&
|
|
28056
|
+
return ["title", "text"].includes(E) && w ? (H.wrapper = "a", /* @__PURE__ */ c.jsx("p", { ...U, children: /* @__PURE__ */ c.jsx(tn, { options: H, ...z, children: ie }) })) : /* @__PURE__ */ c.jsx(tn, { options: H, ...U, children: ie });
|
|
28042
28057
|
}),
|
|
28043
28058
|
i.contentType === "communityPage" && (i.slug || f.slug) && r && /* @__PURE__ */ c.jsx(
|
|
28044
28059
|
p_,
|
|
@@ -28048,7 +28063,7 @@ const hh = ({
|
|
|
28048
28063
|
}
|
|
28049
28064
|
),
|
|
28050
28065
|
/* @__PURE__ */ c.jsx(f_, { type: _ || "", data: f }),
|
|
28051
|
-
/* @__PURE__ */ c.jsx(m_, { data: f, cta: a, link:
|
|
28066
|
+
/* @__PURE__ */ c.jsx(m_, { data: f, cta: a, link: w || "", gtmContext: s })
|
|
28052
28067
|
] })
|
|
28053
28068
|
}
|
|
28054
28069
|
);
|
|
@@ -28114,7 +28129,7 @@ const y_ = ({
|
|
|
28114
28129
|
}), { cardsPerPage: m, isLoading: p } = d, [g, f] = le({
|
|
28115
28130
|
currentPage: 0,
|
|
28116
28131
|
loadedPages: [0]
|
|
28117
|
-
}), { currentPage: v, loadedPages: b } = g, [C, _] = le(""), B = t.length, x = Math.ceil(B / m),
|
|
28132
|
+
}), { currentPage: v, loadedPages: b } = g, [C, _] = le(""), B = t.length, x = Math.ceil(B / m), w = ke(null), T = xr(!0, !0, w == null ? void 0 : w.current);
|
|
28118
28133
|
de(() => {
|
|
28119
28134
|
let E = 1;
|
|
28120
28135
|
T && (T >= Cs.fourCards ? E = 4 : T >= Cs.threeCards ? E = 3 : T >= Cs.twoCards && (E = 2), E > B && (E = B)), h((O) => ({
|
|
@@ -28186,7 +28201,7 @@ const y_ = ({
|
|
|
28186
28201
|
return /* @__PURE__ */ c.jsxs(
|
|
28187
28202
|
"section",
|
|
28188
28203
|
{
|
|
28189
|
-
ref:
|
|
28204
|
+
ref: w,
|
|
28190
28205
|
className: K("carousel-wrapper", a),
|
|
28191
28206
|
"data-testid": "carousel",
|
|
28192
28207
|
children: [
|
|
@@ -28488,7 +28503,7 @@ const _k = ({
|
|
|
28488
28503
|
isIntroduction: _,
|
|
28489
28504
|
optional: B,
|
|
28490
28505
|
slug: x,
|
|
28491
|
-
subsectionId:
|
|
28506
|
+
subsectionId: w,
|
|
28492
28507
|
title: T,
|
|
28493
28508
|
type: I
|
|
28494
28509
|
}) => {
|
|
@@ -28517,7 +28532,7 @@ const _k = ({
|
|
|
28517
28532
|
x_,
|
|
28518
28533
|
{
|
|
28519
28534
|
sectionId: a,
|
|
28520
|
-
subsectionId:
|
|
28535
|
+
subsectionId: w,
|
|
28521
28536
|
title: T,
|
|
28522
28537
|
className: "course-title"
|
|
28523
28538
|
}
|