@apolitical/component-library 4.5.0-beta.3 → 4.5.0-beta.4
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/components/form/components/fields/input/input.d.ts +2 -2
- package/index.js +19 -19
- package/index.mjs +512 -502
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/form/_fields.scss +7 -0
package/index.mjs
CHANGED
|
@@ -139,7 +139,7 @@ function ch() {
|
|
|
139
139
|
return typeof ie == "function" ? ie : null;
|
|
140
140
|
}
|
|
141
141
|
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
142
|
-
function
|
|
142
|
+
function x(S) {
|
|
143
143
|
{
|
|
144
144
|
for (var ie = arguments.length, le = new Array(ie > 1 ? ie - 1 : 0), _e = 1; _e < ie; _e++)
|
|
145
145
|
le[_e - 1] = arguments[_e];
|
|
@@ -156,10 +156,10 @@ function ch() {
|
|
|
156
156
|
qe.unshift("Warning: " + ie), Function.prototype.apply.call(console[S], console, qe);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
var _ = !1,
|
|
159
|
+
var _ = !1, w = !1, F = !1, T = !1, z = !1, R;
|
|
160
160
|
R = Symbol.for("react.module.reference");
|
|
161
161
|
function L(S) {
|
|
162
|
-
return !!(typeof S == "string" || typeof S == "function" || S === r || S === i || z || S === a || S === u || S === d || T || S === m || _ ||
|
|
162
|
+
return !!(typeof S == "string" || typeof S == "function" || S === r || S === i || z || S === a || S === u || S === d || T || S === m || _ || w || F || typeof S == "object" && S !== null && (S.$$typeof === p || S.$$typeof === f || S.$$typeof === s || S.$$typeof === o || S.$$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.
|
|
@@ -178,7 +178,7 @@ function ch() {
|
|
|
178
178
|
function B(S) {
|
|
179
179
|
if (S == null)
|
|
180
180
|
return null;
|
|
181
|
-
if (typeof S.tag == "number" &&
|
|
181
|
+
if (typeof S.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof S == "function")
|
|
182
182
|
return S.displayName || S.name || null;
|
|
183
183
|
if (typeof S == "string")
|
|
184
184
|
return S;
|
|
@@ -279,7 +279,7 @@ function ch() {
|
|
|
279
279
|
})
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
|
-
M < 0 &&
|
|
282
|
+
M < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
var N = b.ReactCurrentDispatcher, H;
|
|
@@ -431,7 +431,7 @@ function ch() {
|
|
|
431
431
|
} catch (Qe) {
|
|
432
432
|
Se = Qe;
|
|
433
433
|
}
|
|
434
|
-
Se && !(Se instanceof Error) && (Ue(Ne),
|
|
434
|
+
Se && !(Se instanceof Error) && (Ue(Ne), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _e || "React class", le, Oe, typeof Se), Ue(null)), Se instanceof Error && !(Se.message in Ee) && (Ee[Se.message] = !0, Ue(Ne), x("Failed %s type: %s", le, Se.message), Ue(null));
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
}
|
|
@@ -457,7 +457,7 @@ function ch() {
|
|
|
457
457
|
}
|
|
458
458
|
function se(S) {
|
|
459
459
|
if (Le(S))
|
|
460
|
-
return
|
|
460
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(S)), V(S);
|
|
461
461
|
}
|
|
462
462
|
var ve = b.ReactCurrentOwner, ye = {
|
|
463
463
|
key: !0,
|
|
@@ -485,13 +485,13 @@ function ch() {
|
|
|
485
485
|
function St(S, ie) {
|
|
486
486
|
if (typeof S.ref == "string" && ve.current && ie && ve.current.stateNode !== ie) {
|
|
487
487
|
var le = B(ve.current.type);
|
|
488
|
-
et[le] || (
|
|
488
|
+
et[le] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(ve.current.type), S.ref), et[le] = !0);
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
function at(S, ie) {
|
|
492
492
|
{
|
|
493
493
|
var le = function() {
|
|
494
|
-
Fe || (Fe = !0,
|
|
494
|
+
Fe || (Fe = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ie));
|
|
495
495
|
};
|
|
496
496
|
le.isReactWarning = !0, Object.defineProperty(S, "key", {
|
|
497
497
|
get: le,
|
|
@@ -502,7 +502,7 @@ function ch() {
|
|
|
502
502
|
function Rt(S, ie) {
|
|
503
503
|
{
|
|
504
504
|
var le = function() {
|
|
505
|
-
Xe || (Xe = !0,
|
|
505
|
+
Xe || (Xe = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ie));
|
|
506
506
|
};
|
|
507
507
|
le.isReactWarning = !0, Object.defineProperty(S, "ref", {
|
|
508
508
|
get: le,
|
|
@@ -616,7 +616,7 @@ Check the top-level render call using <` + le + ">.");
|
|
|
616
616
|
return;
|
|
617
617
|
ko[le] = !0;
|
|
618
618
|
var _e = "";
|
|
619
|
-
S && S._owner && S._owner !== ur.current && (_e = " It was passed a child from " + B(S._owner.type) + "."), Pn(S),
|
|
619
|
+
S && S._owner && S._owner !== ur.current && (_e = " It was passed a child from " + B(S._owner.type) + "."), Pn(S), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', le, _e), Pn(null);
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
function Ao(S, ie) {
|
|
@@ -658,9 +658,9 @@ Check the top-level render call using <` + le + ">.");
|
|
|
658
658
|
} else if (ie.PropTypes !== void 0 && !ii) {
|
|
659
659
|
ii = !0;
|
|
660
660
|
var Ne = B(ie);
|
|
661
|
-
|
|
661
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ne || "Unknown");
|
|
662
662
|
}
|
|
663
|
-
typeof ie.getDefaultProps == "function" && !ie.getDefaultProps.isReactClassApproved &&
|
|
663
|
+
typeof ie.getDefaultProps == "function" && !ie.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
function qf(S) {
|
|
@@ -668,11 +668,11 @@ Check the top-level render call using <` + le + ">.");
|
|
|
668
668
|
for (var ie = Object.keys(S.props), le = 0; le < ie.length; le++) {
|
|
669
669
|
var _e = ie[le];
|
|
670
670
|
if (_e !== "children" && _e !== "key") {
|
|
671
|
-
Pn(S),
|
|
671
|
+
Pn(S), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _e), Pn(null);
|
|
672
672
|
break;
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
|
-
S.ref !== null && (Pn(S),
|
|
675
|
+
S.ref !== null && (Pn(S), x("Invalid attribute `ref` supplied to `React.Fragment`."), Pn(null));
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
function Fo(S, ie, le, _e, Ne, qe) {
|
|
@@ -684,7 +684,7 @@ Check the top-level render call using <` + le + ">.");
|
|
|
684
684
|
var lt = If(Ne);
|
|
685
685
|
lt ? Se += lt : Se += _o();
|
|
686
686
|
var Qe;
|
|
687
|
-
S === null ? Qe = "null" : ge(S) ? Qe = "array" : S !== void 0 && S.$$typeof === t ? (Qe = "<" + (B(S.type) || "Unknown") + " />", Se = " Did you accidentally export a JSX literal instead of a component?") : Qe = typeof S,
|
|
687
|
+
S === null ? Qe = "null" : ge(S) ? Qe = "array" : S !== void 0 && S.$$typeof === t ? (Qe = "<" + (B(S.type) || "Unknown") + " />", Se = " Did you accidentally export a JSX literal instead of a component?") : Qe = typeof S, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Qe, Se);
|
|
688
688
|
}
|
|
689
689
|
var Je = ai(S, ie, le, Ne, qe);
|
|
690
690
|
if (Je == null)
|
|
@@ -698,7 +698,7 @@ Check the top-level render call using <` + le + ">.");
|
|
|
698
698
|
Ao(kt[Nn], S);
|
|
699
699
|
Object.freeze && Object.freeze(kt);
|
|
700
700
|
} else
|
|
701
|
-
|
|
701
|
+
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
702
702
|
else
|
|
703
703
|
Ao(kt, S);
|
|
704
704
|
}
|
|
@@ -738,7 +738,7 @@ function wc(e, t, n) {
|
|
|
738
738
|
if (typeof e != "function")
|
|
739
739
|
throw new TypeError("Expected a function");
|
|
740
740
|
t = +t || 0;
|
|
741
|
-
var g = !!(n = n || {}).leading, h = !("trailing" in n) || !!n.trailing, D = "maxWait" in n, b = "debounceOnServer" in n && !!n.debounceOnServer,
|
|
741
|
+
var g = !!(n = n || {}).leading, h = !("trailing" in n) || !!n.trailing, D = "maxWait" in n, b = "debounceOnServer" in n && !!n.debounceOnServer, x = D ? Math.max(+n.maxWait || 0, t) : null;
|
|
742
742
|
me(function() {
|
|
743
743
|
return f.current = !0, function() {
|
|
744
744
|
f.current = !1;
|
|
@@ -748,13 +748,13 @@ function wc(e, t, n) {
|
|
|
748
748
|
var _ = function(L) {
|
|
749
749
|
var I = o.current, C = l.current;
|
|
750
750
|
return o.current = l.current = null, i.current = L, u.current = d.current.apply(C, I);
|
|
751
|
-
},
|
|
751
|
+
}, w = function(L, I) {
|
|
752
752
|
m && cancelAnimationFrame(s.current), s.current = m ? requestAnimationFrame(L) : setTimeout(L, I);
|
|
753
753
|
}, F = function(L) {
|
|
754
754
|
if (!f.current)
|
|
755
755
|
return !1;
|
|
756
756
|
var I = L - a.current;
|
|
757
|
-
return !a.current || I >= t || I < 0 || D && L - i.current >=
|
|
757
|
+
return !a.current || I >= t || I < 0 || D && L - i.current >= x;
|
|
758
758
|
}, T = function(L) {
|
|
759
759
|
return s.current = null, h && o.current ? _(L) : (o.current = l.current = null, u.current);
|
|
760
760
|
}, z = function L() {
|
|
@@ -762,19 +762,19 @@ function wc(e, t, n) {
|
|
|
762
762
|
if (F(I))
|
|
763
763
|
return T(I);
|
|
764
764
|
if (f.current) {
|
|
765
|
-
var C = t - (I - a.current), B = D ? Math.min(C,
|
|
766
|
-
|
|
765
|
+
var C = t - (I - a.current), B = D ? Math.min(C, x - (I - i.current)) : C;
|
|
766
|
+
w(L, B);
|
|
767
767
|
}
|
|
768
768
|
}, R = function() {
|
|
769
769
|
if (p || b) {
|
|
770
770
|
var L = Date.now(), I = F(L);
|
|
771
771
|
if (o.current = [].slice.call(arguments), l.current = r, a.current = L, I) {
|
|
772
772
|
if (!s.current && f.current)
|
|
773
|
-
return i.current = a.current,
|
|
773
|
+
return i.current = a.current, w(z, t), g ? _(a.current) : u.current;
|
|
774
774
|
if (D)
|
|
775
|
-
return
|
|
775
|
+
return w(z, t), _(a.current);
|
|
776
776
|
}
|
|
777
|
-
return s.current ||
|
|
777
|
+
return s.current || w(z, t), u.current;
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
780
|
return R.cancel = function() {
|
|
@@ -784,7 +784,7 @@ function wc(e, t, n) {
|
|
|
784
784
|
}, R.flush = function() {
|
|
785
785
|
return s.current ? T(Date.now()) : u.current;
|
|
786
786
|
}, R;
|
|
787
|
-
}, [g, D, t,
|
|
787
|
+
}, [g, D, t, x, h, m, p, b]);
|
|
788
788
|
return E;
|
|
789
789
|
}
|
|
790
790
|
function Cc(e, t, n) {
|
|
@@ -890,7 +890,7 @@ const Oo = {}, rr = Ms(
|
|
|
890
890
|
callbacks: o = {},
|
|
891
891
|
...l
|
|
892
892
|
}, u) => {
|
|
893
|
-
const d = ce(), f = Ae(null), p = u || f, [m, g] = fe(n ? "open" : "hidden"), { extraPadding: h = !0, hasPointer: D = !1, hasForm: b = !1 } = t, { onOpen:
|
|
893
|
+
const d = ce(), f = Ae(null), p = u || f, [m, g] = fe(n ? "open" : "hidden"), { extraPadding: h = !0, hasPointer: D = !1, hasForm: b = !1 } = t, { onOpen: x = () => {
|
|
894
894
|
}, onClose: E = () => {
|
|
895
895
|
} } = o;
|
|
896
896
|
e || (e = Date.now().toString());
|
|
@@ -898,12 +898,12 @@ const Oo = {}, rr = Ms(
|
|
|
898
898
|
me(() => {
|
|
899
899
|
const z = p == null ? void 0 : p.current;
|
|
900
900
|
if (z)
|
|
901
|
-
return z.addEventListener("transitionend",
|
|
902
|
-
z.removeEventListener("transitionend",
|
|
901
|
+
return z.addEventListener("transitionend", w), z.addEventListener("keydown", F), () => {
|
|
902
|
+
z.removeEventListener("transitionend", w), z.removeEventListener("keydown", F);
|
|
903
903
|
};
|
|
904
904
|
}, []);
|
|
905
|
-
const
|
|
906
|
-
z === "opacity" && (_ !== !1 && clearTimeout(_), g((R) => (R === "open" ?
|
|
905
|
+
const w = ({ propertyName: z }) => {
|
|
906
|
+
z === "opacity" && (_ !== !1 && clearTimeout(_), g((R) => (R === "open" ? x() : R === "closed" && E(), R === "opening" ? "open" : R === "closing" ? "closed" : R === "closed" ? "hidden" : R)));
|
|
907
907
|
}, F = (z) => {
|
|
908
908
|
z.key === "Escape" && (z.stopPropagation(), z.preventDefault(), g("closing"));
|
|
909
909
|
};
|
|
@@ -1610,13 +1610,13 @@ const je = ({
|
|
|
1610
1610
|
}) => {
|
|
1611
1611
|
const g = $r(typeof t == "object"), { showTooltip: h, tooltipProps: D } = _c(!!u);
|
|
1612
1612
|
if (typeof t == "object" && typeof g == "number") {
|
|
1613
|
-
const _ = Object.assign({}, t),
|
|
1614
|
-
t = Bc(g,
|
|
1613
|
+
const _ = Object.assign({}, t), w = kc(Object.keys(_));
|
|
1614
|
+
t = Bc(g, w, _);
|
|
1615
1615
|
}
|
|
1616
1616
|
!l && u && (u = "");
|
|
1617
1617
|
const b = [];
|
|
1618
1618
|
typeof t == "string" && b.push(t), r && (b.push("icon"), typeof r == "object" ? (b.push(r.icon), r.position ? b.push(r.position) : b.push("left"), r.hover && b.push(`hover_${r.hover}`), r.animate && (b.push("animate"), typeof r.animate == "string" && b.push(r.animate))) : (b.push(r), !r.includes("right") && !r.includes("left") && b.push("left"))), n.muted && b.push("muted"), n.fullWidth && b.push("full-width");
|
|
1619
|
-
const
|
|
1619
|
+
const x = {
|
|
1620
1620
|
...p,
|
|
1621
1621
|
className: Y(e, o, b, {
|
|
1622
1622
|
"no-text": !f,
|
|
@@ -1628,10 +1628,10 @@ const je = ({
|
|
|
1628
1628
|
},
|
|
1629
1629
|
disabled: typeof l == "object" && "isClickable" in l ? !l.isClickable : l
|
|
1630
1630
|
};
|
|
1631
|
-
a && (i = "a",
|
|
1631
|
+
a && (i = "a", x.href = a);
|
|
1632
1632
|
const E = re.createElement(
|
|
1633
1633
|
i,
|
|
1634
|
-
|
|
1634
|
+
x,
|
|
1635
1635
|
f || (d ? /* @__PURE__ */ c.jsx(We, { showOnFocus: !1, children: d }) : null)
|
|
1636
1636
|
);
|
|
1637
1637
|
return l && u ? /* @__PURE__ */ c.jsxs("span", { className: "button-container", ...D, children: [
|
|
@@ -2645,8 +2645,8 @@ const zr = ({
|
|
|
2645
2645
|
href: g,
|
|
2646
2646
|
gtmType: s,
|
|
2647
2647
|
gtmContext: i,
|
|
2648
|
-
onClick: (
|
|
2649
|
-
|
|
2648
|
+
onClick: (x) => {
|
|
2649
|
+
x == null || x.stopPropagation();
|
|
2650
2650
|
},
|
|
2651
2651
|
children: [
|
|
2652
2652
|
/* @__PURE__ */ c.jsx(pn, { name: p, src: m, alt: l }),
|
|
@@ -2851,9 +2851,9 @@ const dr = "joinCommunityButton", Ic = ({
|
|
|
2851
2851
|
}
|
|
2852
2852
|
});
|
|
2853
2853
|
document.dispatchEvent(b);
|
|
2854
|
-
const
|
|
2855
|
-
typeof
|
|
2856
|
-
await
|
|
2854
|
+
const x = d ? i : a;
|
|
2855
|
+
typeof x == "function" && setTimeout(async () => {
|
|
2856
|
+
await x();
|
|
2857
2857
|
}, 500), f(!d);
|
|
2858
2858
|
},
|
|
2859
2859
|
className: Y("join-community-button", p, {
|
|
@@ -3026,26 +3026,26 @@ const Zr = "languageSwitcher_", VE = ({
|
|
|
3026
3026
|
if (!ci[D])
|
|
3027
3027
|
return null;
|
|
3028
3028
|
const b = (E = r[D]) == null ? void 0 : E.post_name;
|
|
3029
|
-
let
|
|
3029
|
+
let x = { className: D };
|
|
3030
3030
|
if (f === D)
|
|
3031
|
-
|
|
3031
|
+
x["aria-label"] = u.formatMessage(
|
|
3032
3032
|
{ id: `${Zr}selected` },
|
|
3033
3033
|
{ language: ci[D] }
|
|
3034
3034
|
);
|
|
3035
3035
|
else {
|
|
3036
3036
|
const _ = om(D, b, i);
|
|
3037
|
-
|
|
3038
|
-
...
|
|
3037
|
+
x = {
|
|
3038
|
+
...x,
|
|
3039
3039
|
href: typeof _ == "string" ? _ : _.url,
|
|
3040
|
-
onClick: (
|
|
3041
|
-
p(D), d(D), typeof a < "u" && (
|
|
3040
|
+
onClick: (w) => {
|
|
3041
|
+
p(D), d(D), typeof a < "u" && (w.preventDefault(), w.stopPropagation(), a(
|
|
3042
3042
|
D,
|
|
3043
3043
|
typeof _ == "string" ? _ : _.urlForRouter
|
|
3044
3044
|
));
|
|
3045
3045
|
}
|
|
3046
3046
|
};
|
|
3047
3047
|
}
|
|
3048
|
-
return /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(ir, { ...
|
|
3048
|
+
return /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(ir, { ...x, fallbackElement: "span", children: ci[D] }) }, D);
|
|
3049
3049
|
}) }),
|
|
3050
3050
|
s !== "short" && !h && /* @__PURE__ */ c.jsx("p", { children: u.formatMessage({
|
|
3051
3051
|
id: `${Zr}translation_${t ? "original" : n ? "human" : "machine"}`
|
|
@@ -3363,11 +3363,11 @@ const ZE = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
3363
3363
|
}
|
|
3364
3364
|
}, [i]);
|
|
3365
3365
|
const d = [], f = [];
|
|
3366
|
-
return e.forEach(({ id: m, text: g, content: h, href: D, hasCarousel: b },
|
|
3367
|
-
m = r(m, g,
|
|
3366
|
+
return e.forEach(({ id: m, text: g, content: h, href: D, hasCarousel: b }, x) => {
|
|
3367
|
+
m = r(m, g, x);
|
|
3368
3368
|
const E = i === m, _ = {};
|
|
3369
|
-
D || (_["aria-controls"] = m, _.onClick = (
|
|
3370
|
-
|
|
3369
|
+
D || (_["aria-controls"] = m, _.onClick = (w) => {
|
|
3370
|
+
w.preventDefault(), w.stopPropagation(), s(m), !n && (window.location.hash = `#${m}`);
|
|
3371
3371
|
}, f.push(
|
|
3372
3372
|
/* @__PURE__ */ c.jsx(
|
|
3373
3373
|
"section",
|
|
@@ -3392,7 +3392,7 @@ const ZE = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
3392
3392
|
role: "tab",
|
|
3393
3393
|
tabIndex: E ? 0 : -1,
|
|
3394
3394
|
"aria-selected": E,
|
|
3395
|
-
onKeyDown: (
|
|
3395
|
+
onKeyDown: (w) => u(w, x),
|
|
3396
3396
|
..._,
|
|
3397
3397
|
children: g
|
|
3398
3398
|
}
|
|
@@ -3609,24 +3609,29 @@ const Gr = "emailHelperTextBox_", vm = ({
|
|
|
3609
3609
|
placeholder: s,
|
|
3610
3610
|
type: o = "text",
|
|
3611
3611
|
value: l,
|
|
3612
|
-
|
|
3612
|
+
autoFocus: u,
|
|
3613
|
+
...d
|
|
3613
3614
|
}) => {
|
|
3614
|
-
const
|
|
3615
|
-
return
|
|
3616
|
-
|
|
3617
|
-
|
|
3615
|
+
const f = Ae(), p = r || f;
|
|
3616
|
+
return me(() => {
|
|
3617
|
+
var m;
|
|
3618
|
+
u && ((m = p.current) == null || m.focus());
|
|
3619
|
+
}, []), re.createElement(t, {
|
|
3620
|
+
ref: p,
|
|
3621
|
+
...d,
|
|
3618
3622
|
type: o,
|
|
3619
3623
|
id: n,
|
|
3620
3624
|
name: i,
|
|
3621
3625
|
className: Y(e, t, {
|
|
3622
|
-
"has-scrollbar": o === "textarea" &&
|
|
3626
|
+
"has-scrollbar": o === "textarea" && p.current && p.current.clientHeight < p.current.scrollHeight
|
|
3623
3627
|
}),
|
|
3624
3628
|
value: l,
|
|
3625
3629
|
placeholder: s,
|
|
3630
|
+
autoFocus: u,
|
|
3626
3631
|
...a,
|
|
3627
|
-
onChange: (
|
|
3628
|
-
const
|
|
3629
|
-
a.onChange(
|
|
3632
|
+
onChange: (m) => {
|
|
3633
|
+
const g = m.target;
|
|
3634
|
+
a.onChange(g.value);
|
|
3630
3635
|
}
|
|
3631
3636
|
});
|
|
3632
3637
|
};
|
|
@@ -3663,7 +3668,7 @@ const Rn = {
|
|
|
3663
3668
|
}), { formatMessage: D } = ce();
|
|
3664
3669
|
r || (r = D({ id: "inputAutocomplete_placeholder" })), me(() => {
|
|
3665
3670
|
const _ = setTimeout(() => {
|
|
3666
|
-
g || f((
|
|
3671
|
+
g || f((w) => ({ ...w, debouncedInput: l }));
|
|
3667
3672
|
}, bm);
|
|
3668
3673
|
return () => {
|
|
3669
3674
|
clearTimeout(_);
|
|
@@ -3671,13 +3676,13 @@ const Rn = {
|
|
|
3671
3676
|
}, [l, g]), me(() => {
|
|
3672
3677
|
d && !g ? (async () => {
|
|
3673
3678
|
try {
|
|
3674
|
-
const
|
|
3679
|
+
const w = await o(d) || [];
|
|
3675
3680
|
h((F) => ({
|
|
3676
3681
|
...F,
|
|
3677
|
-
predictions:
|
|
3682
|
+
predictions: w
|
|
3678
3683
|
}));
|
|
3679
|
-
} catch (
|
|
3680
|
-
console.error("Error fetching predictions:",
|
|
3684
|
+
} catch (w) {
|
|
3685
|
+
console.error("Error fetching predictions:", w), h((F) => ({ ...F, predictions: [] }));
|
|
3681
3686
|
}
|
|
3682
3687
|
})() : h((_) => ({ ..._, predictions: [] }));
|
|
3683
3688
|
}, [d, g]), me(() => {
|
|
@@ -3687,37 +3692,37 @@ const Rn = {
|
|
|
3687
3692
|
}));
|
|
3688
3693
|
}, [m, p]);
|
|
3689
3694
|
const b = (_) => {
|
|
3690
|
-
[Rn.DOWN, Rn.UP, Rn.ENTER].includes(_.key) && (_.preventDefault(), _.key === Rn.DOWN && m < p.length - 1 ? h((
|
|
3691
|
-
...
|
|
3695
|
+
[Rn.DOWN, Rn.UP, Rn.ENTER].includes(_.key) && (_.preventDefault(), _.key === Rn.DOWN && m < p.length - 1 ? h((w) => ({
|
|
3696
|
+
...w,
|
|
3692
3697
|
activePredictionIndex: m + 1
|
|
3693
|
-
})) : _.key === Rn.UP && m > 0 ? h((
|
|
3694
|
-
...
|
|
3698
|
+
})) : _.key === Rn.UP && m > 0 ? h((w) => ({
|
|
3699
|
+
...w,
|
|
3695
3700
|
activePredictionIndex: m - 1
|
|
3696
|
-
})) : _.key === Rn.ENTER && m > -1 && (s(p[m].description), f((
|
|
3697
|
-
...
|
|
3701
|
+
})) : _.key === Rn.ENTER && m > -1 && (s(p[m].description), f((w) => ({
|
|
3702
|
+
...w,
|
|
3698
3703
|
input: p[m].description
|
|
3699
|
-
})), h((
|
|
3700
|
-
...
|
|
3704
|
+
})), h((w) => ({
|
|
3705
|
+
...w,
|
|
3701
3706
|
predictions: [],
|
|
3702
3707
|
isPredictionSelected: !0
|
|
3703
3708
|
}))));
|
|
3704
|
-
},
|
|
3705
|
-
s(_.target.value), f((
|
|
3706
|
-
...
|
|
3709
|
+
}, x = (_) => {
|
|
3710
|
+
s(_.target.value), f((w) => ({
|
|
3711
|
+
...w,
|
|
3707
3712
|
input: _.target.value,
|
|
3708
3713
|
displayInput: _.target.value
|
|
3709
|
-
})), h((
|
|
3710
|
-
...
|
|
3714
|
+
})), h((w) => ({
|
|
3715
|
+
...w,
|
|
3711
3716
|
activePredictionIndex: -1,
|
|
3712
3717
|
isPredictionSelected: !1
|
|
3713
3718
|
}));
|
|
3714
3719
|
}, E = (_) => {
|
|
3715
|
-
s(_.description), f((
|
|
3716
|
-
...
|
|
3720
|
+
s(_.description), f((w) => ({
|
|
3721
|
+
...w,
|
|
3717
3722
|
input: _.description,
|
|
3718
3723
|
displayInput: _.description
|
|
3719
|
-
})), h((
|
|
3720
|
-
...
|
|
3724
|
+
})), h((w) => ({
|
|
3725
|
+
...w,
|
|
3721
3726
|
isPredictionSelected: !0,
|
|
3722
3727
|
predictions: []
|
|
3723
3728
|
}));
|
|
@@ -3728,7 +3733,7 @@ const Rn = {
|
|
|
3728
3733
|
{
|
|
3729
3734
|
type: "text",
|
|
3730
3735
|
value: u,
|
|
3731
|
-
onChange:
|
|
3736
|
+
onChange: x,
|
|
3732
3737
|
onKeyDown: b,
|
|
3733
3738
|
placeholder: r,
|
|
3734
3739
|
name: t,
|
|
@@ -3736,20 +3741,20 @@ const Rn = {
|
|
|
3736
3741
|
...i
|
|
3737
3742
|
}
|
|
3738
3743
|
),
|
|
3739
|
-
/* @__PURE__ */ c.jsx("ul", { className: "predictions-list", children: p.map((_,
|
|
3744
|
+
/* @__PURE__ */ c.jsx("ul", { className: "predictions-list", children: p.map((_, w) => /* @__PURE__ */ c.jsx(
|
|
3740
3745
|
"li",
|
|
3741
3746
|
{
|
|
3742
3747
|
onClick: () => E(_),
|
|
3743
3748
|
onMouseEnter: () => h((F) => ({
|
|
3744
3749
|
...F,
|
|
3745
|
-
activePredictionIndex:
|
|
3750
|
+
activePredictionIndex: w
|
|
3746
3751
|
})),
|
|
3747
3752
|
className: Y("predictions-list-item", {
|
|
3748
|
-
active:
|
|
3753
|
+
active: w === m
|
|
3749
3754
|
}),
|
|
3750
3755
|
children: _.description
|
|
3751
3756
|
},
|
|
3752
|
-
|
|
3757
|
+
w
|
|
3753
3758
|
)) })
|
|
3754
3759
|
] });
|
|
3755
3760
|
};
|
|
@@ -3796,8 +3801,8 @@ const qc = ({
|
|
|
3796
3801
|
n,
|
|
3797
3802
|
{
|
|
3798
3803
|
onClick: (b) => {
|
|
3799
|
-
const
|
|
3800
|
-
|
|
3804
|
+
const x = b.target;
|
|
3805
|
+
x.nodeName.toLowerCase() === "a" || x.parentNode && x.parentNode.nodeName.toLowerCase() === "a" || (b.preventDefault(), b.stopPropagation(), h());
|
|
3801
3806
|
},
|
|
3802
3807
|
className: Y("checkbox-wrapper", e),
|
|
3803
3808
|
...f,
|
|
@@ -3835,18 +3840,18 @@ const xm = ({
|
|
|
3835
3840
|
Array.isArray(h) && h.length === 1 && typeof h[0] == "string" ? b = t && h ? t.find((T) => T.id === h[0]) : t ? t[0] : { id: "", label: "" } : Array.isArray(h) && h.length === 1 && typeof h[0] != "string" ? b = h[0] : b = { id: "", label: "" }, me(() => {
|
|
3836
3841
|
D(g);
|
|
3837
3842
|
}, [r, n]);
|
|
3838
|
-
const { onChange:
|
|
3843
|
+
const { onChange: x, onMultiSelectSubmit: E, ..._ } = a, w = (T) => {
|
|
3839
3844
|
if (o) {
|
|
3840
3845
|
let z = [];
|
|
3841
|
-
h != null && h.includes(T.id) ? z = h.filter((R) => R !== T.id) : z = [...h, T.id], D([...z]),
|
|
3846
|
+
h != null && h.includes(T.id) ? z = h.filter((R) => R !== T.id) : z = [...h, T.id], D([...z]), x && x([...z]);
|
|
3842
3847
|
} else
|
|
3843
|
-
D([T]),
|
|
3848
|
+
D([T]), x && x(T.id), p(!1);
|
|
3844
3849
|
}, F = (T) => {
|
|
3845
3850
|
if (T === "all") {
|
|
3846
3851
|
const z = (t == null ? void 0 : t.map((R) => R.id)) || [];
|
|
3847
|
-
D(z),
|
|
3852
|
+
D(z), x && x(z);
|
|
3848
3853
|
} else
|
|
3849
|
-
D([]),
|
|
3854
|
+
D([]), x && x([]);
|
|
3850
3855
|
};
|
|
3851
3856
|
return /* @__PURE__ */ c.jsxs("div", { className: Y("dropdown-wrapper", e), children: [
|
|
3852
3857
|
/* @__PURE__ */ c.jsxs(
|
|
@@ -3874,7 +3879,7 @@ const xm = ({
|
|
|
3874
3879
|
onChange: (T) => {
|
|
3875
3880
|
T.preventDefault(), T.stopPropagation();
|
|
3876
3881
|
const z = t && t.find((R) => R.id === T.target.value);
|
|
3877
|
-
|
|
3882
|
+
w(z);
|
|
3878
3883
|
},
|
|
3879
3884
|
hidden: !f,
|
|
3880
3885
|
..._,
|
|
@@ -3926,7 +3931,7 @@ const xm = ({
|
|
|
3926
3931
|
"data-gtm-event-type": `${T}-click`,
|
|
3927
3932
|
"data-gtm-event-context": i,
|
|
3928
3933
|
onClick: (R) => {
|
|
3929
|
-
R.preventDefault(), R.stopPropagation(),
|
|
3934
|
+
R.preventDefault(), R.stopPropagation(), w(T);
|
|
3930
3935
|
},
|
|
3931
3936
|
role: "menuitem",
|
|
3932
3937
|
"aria-current": z,
|
|
@@ -3988,18 +3993,18 @@ const wm = ({
|
|
|
3988
3993
|
id: h,
|
|
3989
3994
|
label: D = !1,
|
|
3990
3995
|
value: b = h,
|
|
3991
|
-
disabled:
|
|
3996
|
+
disabled: x = !1
|
|
3992
3997
|
}) => {
|
|
3993
3998
|
const E = `${r}_${h}`, _ = () => {
|
|
3994
|
-
if (
|
|
3999
|
+
if (x)
|
|
3995
4000
|
return;
|
|
3996
|
-
let
|
|
4001
|
+
let w;
|
|
3997
4002
|
if (i) {
|
|
3998
4003
|
const F = m == null ? void 0 : m.indexOf(b);
|
|
3999
|
-
Array.isArray(m) && F >= 0 ? (
|
|
4004
|
+
Array.isArray(m) && F >= 0 ? (w = m, w.splice(F, 1)) : (!m || m.length === 0 ? w = [] : w = m, w.push(b));
|
|
4000
4005
|
} else
|
|
4001
|
-
|
|
4002
|
-
t.onChange(
|
|
4006
|
+
w = g === b ? void 0 : b;
|
|
4007
|
+
t.onChange(w);
|
|
4003
4008
|
};
|
|
4004
4009
|
return /* @__PURE__ */ c.jsx(
|
|
4005
4010
|
qc,
|
|
@@ -4017,7 +4022,7 @@ const wm = ({
|
|
|
4017
4022
|
label: D || p.formatMessage({
|
|
4018
4023
|
id: n ? `${n}_${h}` : h
|
|
4019
4024
|
}),
|
|
4020
|
-
disabled:
|
|
4025
|
+
disabled: x
|
|
4021
4026
|
},
|
|
4022
4027
|
E
|
|
4023
4028
|
);
|
|
@@ -4083,7 +4088,7 @@ const Mn = {
|
|
|
4083
4088
|
submitOnEnter: d,
|
|
4084
4089
|
...f
|
|
4085
4090
|
}) => {
|
|
4086
|
-
const p = ce(), m = l && l.some(({ condition:
|
|
4091
|
+
const p = ce(), m = l && l.some(({ condition: w }) => w === "required"), g = Us(u), h = o && Mn[o] && Mn[o].component ? Mn[o].component : qn, D = {};
|
|
4087
4092
|
o && ["checkboxes"].includes(o) ? D.element = "span" : D.htmlFor = e;
|
|
4088
4093
|
let b = {
|
|
4089
4094
|
...f,
|
|
@@ -4097,24 +4102,24 @@ const Mn = {
|
|
|
4097
4102
|
value: u
|
|
4098
4103
|
};
|
|
4099
4104
|
if (i > 0) {
|
|
4100
|
-
const
|
|
4105
|
+
const w = gm(i, a.onChange);
|
|
4101
4106
|
b = {
|
|
4102
4107
|
...b,
|
|
4103
|
-
...
|
|
4104
|
-
},
|
|
4108
|
+
...w
|
|
4109
|
+
}, w.functions && typeof w.functions == "object" && (b.functions = {
|
|
4105
4110
|
...b.functions,
|
|
4106
|
-
...
|
|
4111
|
+
...w.functions
|
|
4107
4112
|
});
|
|
4108
4113
|
}
|
|
4109
4114
|
o && Mn[o] && Mn[o].props && (b = { ...b, ...Mn[o].props }), o && ["checkboxes"].includes(o) && (b.intlPath = `${t}_${e}`), r && (b["aria-invalid"] = !0, b["aria-describedby"] = `error-${e}`);
|
|
4110
|
-
const
|
|
4111
|
-
|
|
4115
|
+
const x = f.label || p.formatMessage({ id: t ? `${t}_${e}` : e }), E = ({ ...w }) => r ? re.createElement(
|
|
4116
|
+
w.as || "dd",
|
|
4112
4117
|
{
|
|
4113
4118
|
id: `error-${e}`,
|
|
4114
4119
|
className: "error text-small",
|
|
4115
4120
|
role: "alert",
|
|
4116
4121
|
"aria-live": "assertive",
|
|
4117
|
-
...
|
|
4122
|
+
...w
|
|
4118
4123
|
},
|
|
4119
4124
|
r
|
|
4120
4125
|
) : null;
|
|
@@ -4124,20 +4129,20 @@ const Mn = {
|
|
|
4124
4129
|
h,
|
|
4125
4130
|
{
|
|
4126
4131
|
...b,
|
|
4127
|
-
label:
|
|
4132
|
+
label: x,
|
|
4128
4133
|
className: Y("field-wrapper", n)
|
|
4129
4134
|
}
|
|
4130
4135
|
),
|
|
4131
4136
|
/* @__PURE__ */ c.jsx(E, { as: "p" })
|
|
4132
4137
|
] });
|
|
4133
|
-
const _ = (
|
|
4134
|
-
...
|
|
4138
|
+
const _ = (w) => re.createElement(w.element || "label", {
|
|
4139
|
+
...w,
|
|
4135
4140
|
className: "checkboxes-label text-small",
|
|
4136
4141
|
"data-testid": `label-${e}`
|
|
4137
4142
|
});
|
|
4138
4143
|
return /* @__PURE__ */ c.jsxs("dl", { className: Y("field-wrapper text-medium", n), children: [
|
|
4139
4144
|
/* @__PURE__ */ c.jsx("dt", { children: /* @__PURE__ */ c.jsxs(_, { ...D, children: [
|
|
4140
|
-
|
|
4145
|
+
x,
|
|
4141
4146
|
m && s && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
4142
4147
|
" ",
|
|
4143
4148
|
/* @__PURE__ */ c.jsxs("small", { children: [
|
|
@@ -4295,10 +4300,10 @@ const sr = ({
|
|
|
4295
4300
|
const {
|
|
4296
4301
|
customOnSubmit: D,
|
|
4297
4302
|
hideButton: b,
|
|
4298
|
-
overwriteSubmittingText:
|
|
4303
|
+
overwriteSubmittingText: x = !1,
|
|
4299
4304
|
...E
|
|
4300
4305
|
} = s, _ = 40, {
|
|
4301
|
-
shouldShowCancelButton:
|
|
4306
|
+
shouldShowCancelButton: w = !1,
|
|
4302
4307
|
shouldReset: F = !0,
|
|
4303
4308
|
shouldHide: T = !0,
|
|
4304
4309
|
showRequiredLabels: z = !0,
|
|
@@ -4403,12 +4408,12 @@ const sr = ({
|
|
|
4403
4408
|
disabled: M || O || s.disabled,
|
|
4404
4409
|
"data-gtm-event-context": d.context,
|
|
4405
4410
|
"data-gtm-event-type": d.event,
|
|
4406
|
-
children:
|
|
4411
|
+
children: x ? v : M || O ? L.formatMessage({
|
|
4407
4412
|
id: `form_${M ? "submitting" : "submitted"}`
|
|
4408
4413
|
}) : v
|
|
4409
4414
|
}
|
|
4410
4415
|
];
|
|
4411
|
-
return
|
|
4416
|
+
return w && k.unshift({
|
|
4412
4417
|
...o,
|
|
4413
4418
|
className: "gtm-trackable",
|
|
4414
4419
|
"data-gtm-event-context": d.context,
|
|
@@ -4538,14 +4543,14 @@ const YE = ({
|
|
|
4538
4543
|
}), d = async () => {
|
|
4539
4544
|
try {
|
|
4540
4545
|
const b = await n();
|
|
4541
|
-
u((
|
|
4542
|
-
...
|
|
4546
|
+
u((x) => ({
|
|
4547
|
+
...x,
|
|
4543
4548
|
setUp: !0,
|
|
4544
4549
|
id: b && b.id,
|
|
4545
4550
|
disabled: !1
|
|
4546
4551
|
}));
|
|
4547
4552
|
} catch (b) {
|
|
4548
|
-
u((
|
|
4553
|
+
u((x) => ({ ...x, setUp: !0, disabled: !0 })), a(b);
|
|
4549
4554
|
}
|
|
4550
4555
|
};
|
|
4551
4556
|
if (me(() => {
|
|
@@ -4561,43 +4566,43 @@ const YE = ({
|
|
|
4561
4566
|
}, D = async (b) => {
|
|
4562
4567
|
if (!(!f || m))
|
|
4563
4568
|
try {
|
|
4564
|
-
u((
|
|
4565
|
-
} catch (
|
|
4566
|
-
u((E) => ({ ...E, rating: null })), a(
|
|
4569
|
+
u((x) => ({ ...x, rating: b, disabled: !0 })), await r({ id: f, value: b });
|
|
4570
|
+
} catch (x) {
|
|
4571
|
+
u((E) => ({ ...E, rating: null })), a(x);
|
|
4567
4572
|
} finally {
|
|
4568
|
-
u((
|
|
4573
|
+
u((x) => ({ ...x, disabled: !1 }));
|
|
4569
4574
|
}
|
|
4570
4575
|
};
|
|
4571
4576
|
return /* @__PURE__ */ c.jsxs("div", { className: Y("rating", i), children: [
|
|
4572
4577
|
/* @__PURE__ */ c.jsx("span", { className: "label", children: h[p ? "success" : "text"] }),
|
|
4573
4578
|
/* @__PURE__ */ c.jsx("ol", { children: Array.from(new Array(t).keys()).map((b) => {
|
|
4574
|
-
const
|
|
4579
|
+
const x = b + 1;
|
|
4575
4580
|
return /* @__PURE__ */ c.jsx(
|
|
4576
4581
|
"li",
|
|
4577
4582
|
{
|
|
4578
|
-
className: Y({ selected: p &&
|
|
4583
|
+
className: Y({ selected: p && x <= p }),
|
|
4579
4584
|
children: /* @__PURE__ */ c.jsx(
|
|
4580
4585
|
je,
|
|
4581
4586
|
{
|
|
4582
4587
|
variant: "tertiary",
|
|
4583
4588
|
size: "small",
|
|
4584
4589
|
icon: {
|
|
4585
|
-
icon: `star${!p ||
|
|
4590
|
+
icon: `star${!p || x > p ? "_empty" : ""}`,
|
|
4586
4591
|
position: "left",
|
|
4587
4592
|
hover: "star"
|
|
4588
4593
|
},
|
|
4589
4594
|
screenreaderText: `${o.formatMessage(
|
|
4590
4595
|
{ id: `${g}stars` },
|
|
4591
|
-
{ number:
|
|
4592
|
-
)}${
|
|
4596
|
+
{ number: x, total: t }
|
|
4597
|
+
)}${x === 1 || x === t ? ` - ${h[x === 1 ? "low" : "high"]}` : ""}`,
|
|
4593
4598
|
onClick: (E) => {
|
|
4594
|
-
E.preventDefault(), E.stopPropagation(), D(
|
|
4599
|
+
E.preventDefault(), E.stopPropagation(), D(x);
|
|
4595
4600
|
},
|
|
4596
4601
|
disabled: m
|
|
4597
4602
|
}
|
|
4598
4603
|
)
|
|
4599
4604
|
},
|
|
4600
|
-
`rating-${
|
|
4605
|
+
`rating-${x}`
|
|
4601
4606
|
);
|
|
4602
4607
|
}) })
|
|
4603
4608
|
] });
|
|
@@ -6028,14 +6033,14 @@ var gp = (e, t, n) => {
|
|
|
6028
6033
|
case "merge_node": {
|
|
6029
6034
|
var {
|
|
6030
6035
|
path: b
|
|
6031
|
-
} = n,
|
|
6032
|
-
if (he.isText(
|
|
6033
|
-
_.text +=
|
|
6034
|
-
else if (!he.isText(
|
|
6035
|
-
_.children.push(...
|
|
6036
|
+
} = n, x = oe.get(e, b), E = P.previous(b), _ = oe.get(e, E), w = oe.parent(e, b), F = b[b.length - 1];
|
|
6037
|
+
if (he.isText(x) && he.isText(_))
|
|
6038
|
+
_.text += x.text;
|
|
6039
|
+
else if (!he.isText(x) && !he.isText(_))
|
|
6040
|
+
_.children.push(...x.children);
|
|
6036
6041
|
else
|
|
6037
|
-
throw new Error('Cannot apply a "merge_node" operation at path ['.concat(b, "] to nodes of different interfaces: ").concat(rt.stringify(
|
|
6038
|
-
if (
|
|
6042
|
+
throw new Error('Cannot apply a "merge_node" operation at path ['.concat(b, "] to nodes of different interfaces: ").concat(rt.stringify(x), " ").concat(rt.stringify(_)));
|
|
6043
|
+
if (w.children.splice(F, 1), t)
|
|
6039
6044
|
for (var [T, z] of U.points(t))
|
|
6040
6045
|
t[z] = Te.transform(T, n);
|
|
6041
6046
|
break;
|
|
@@ -7104,11 +7109,11 @@ var he = {
|
|
|
7104
7109
|
});
|
|
7105
7110
|
}
|
|
7106
7111
|
if (u > m) {
|
|
7107
|
-
var
|
|
7112
|
+
var x = u - m;
|
|
7108
7113
|
h = Kt(Kt({}, g), {}, {
|
|
7109
|
-
text: g.text.slice(0,
|
|
7114
|
+
text: g.text.slice(0, x)
|
|
7110
7115
|
}), g = Kt(Kt({}, g), {}, {
|
|
7111
|
-
text: g.text.slice(
|
|
7116
|
+
text: g.text.slice(x)
|
|
7112
7117
|
});
|
|
7113
7118
|
}
|
|
7114
7119
|
Object.assign(g, a), h && o.push(h), o.push(g), D && o.push(D);
|
|
@@ -7373,13 +7378,13 @@ var tg = (e, t) => {
|
|
|
7373
7378
|
var b = P.transform(D, t);
|
|
7374
7379
|
m.push(b);
|
|
7375
7380
|
}
|
|
7376
|
-
var
|
|
7381
|
+
var x = m[m.length - 1], E = f[f.length - 1], _ = x.concat(E);
|
|
7377
7382
|
return [...p, ...m, _];
|
|
7378
7383
|
}
|
|
7379
7384
|
case "remove_node": {
|
|
7380
7385
|
var {
|
|
7381
|
-
path:
|
|
7382
|
-
} = t, F = P.ancestors(
|
|
7386
|
+
path: w
|
|
7387
|
+
} = t, F = P.ancestors(w);
|
|
7383
7388
|
return [...F];
|
|
7384
7389
|
}
|
|
7385
7390
|
case "split_node": {
|
|
@@ -7848,8 +7853,8 @@ var Mg = ["text"], $g = ["text"], Ig = function(t) {
|
|
|
7848
7853
|
match: (_) => de.isElement(_) && y.isBlock(t, _)
|
|
7849
7854
|
});
|
|
7850
7855
|
if (m && h) {
|
|
7851
|
-
var [D, b] = m, [,
|
|
7852
|
-
P.isAncestor(
|
|
7856
|
+
var [D, b] = m, [, x] = h;
|
|
7857
|
+
P.isAncestor(x, b) && (p = D);
|
|
7853
7858
|
}
|
|
7854
7859
|
}
|
|
7855
7860
|
}
|
|
@@ -7920,20 +7925,20 @@ function qg(e) {
|
|
|
7920
7925
|
from: u,
|
|
7921
7926
|
to: d,
|
|
7922
7927
|
pass: (_) => {
|
|
7923
|
-
var [
|
|
7924
|
-
return de.isElement(
|
|
7928
|
+
var [w] = _;
|
|
7929
|
+
return de.isElement(w) ? !!(!s && (y.isVoid(e, w) || y.isElementReadOnly(e, w)) || o && !y.isSelectable(e, w)) : !1;
|
|
7925
7930
|
}
|
|
7926
7931
|
}), g = [], h;
|
|
7927
7932
|
for (var [D, b] of m)
|
|
7928
7933
|
if (!(o && de.isElement(D) && !y.isSelectable(e, D))) {
|
|
7929
|
-
var
|
|
7930
|
-
if (!(r === "highest" &&
|
|
7934
|
+
var x = h && P.compare(b, h[1]) === 0;
|
|
7935
|
+
if (!(r === "highest" && x)) {
|
|
7931
7936
|
if (!l(D, b)) {
|
|
7932
|
-
if (a && !
|
|
7937
|
+
if (a && !x && he.isText(D))
|
|
7933
7938
|
return;
|
|
7934
7939
|
continue;
|
|
7935
7940
|
}
|
|
7936
|
-
if (r === "lowest" &&
|
|
7941
|
+
if (r === "lowest" && x) {
|
|
7937
7942
|
h = [D, b];
|
|
7938
7943
|
continue;
|
|
7939
7944
|
}
|
|
@@ -7979,8 +7984,8 @@ var Wg = function(t) {
|
|
|
7979
7984
|
return;
|
|
7980
7985
|
var b = o(t);
|
|
7981
7986
|
if (oe.has(t, b)) {
|
|
7982
|
-
var
|
|
7983
|
-
t.normalizeNode(
|
|
7987
|
+
var x = y.node(t, b);
|
|
7988
|
+
t.normalizeNode(x, {
|
|
7984
7989
|
operation: a
|
|
7985
7990
|
});
|
|
7986
7991
|
}
|
|
@@ -8094,10 +8099,10 @@ function Qg(e) {
|
|
|
8094
8099
|
if (e.isInline(D))
|
|
8095
8100
|
continue;
|
|
8096
8101
|
if (y.hasInlines(e, D)) {
|
|
8097
|
-
var
|
|
8102
|
+
var x = P.isAncestor(b, u.path) ? u : y.end(e, b), E = P.isAncestor(b, l.path) ? l : y.start(e, b);
|
|
8098
8103
|
p = y.string(e, {
|
|
8099
8104
|
anchor: E,
|
|
8100
|
-
focus:
|
|
8105
|
+
focus: x
|
|
8101
8106
|
}, {
|
|
8102
8107
|
voids: i
|
|
8103
8108
|
}), f = !0;
|
|
@@ -8112,7 +8117,7 @@ function Qg(e) {
|
|
|
8112
8117
|
if (m === 0) {
|
|
8113
8118
|
if (p === "")
|
|
8114
8119
|
break;
|
|
8115
|
-
m =
|
|
8120
|
+
m = w(p, r, a), p = eo(p, m, a)[1];
|
|
8116
8121
|
}
|
|
8117
8122
|
if (h = a ? h - m : h + m, g = g - m, g < 0) {
|
|
8118
8123
|
m = -g;
|
|
@@ -8125,7 +8130,7 @@ function Qg(e) {
|
|
|
8125
8130
|
}
|
|
8126
8131
|
}
|
|
8127
8132
|
}
|
|
8128
|
-
function
|
|
8133
|
+
function w(F, T, z) {
|
|
8129
8134
|
return T === "character" ? Xs(F, z) : T === "word" ? jp(F, z) : T === "line" || T === "block" ? F.length : 1;
|
|
8130
8135
|
}
|
|
8131
8136
|
}();
|
|
@@ -8347,19 +8352,19 @@ var rv = (e, t) => {
|
|
|
8347
8352
|
voids: l
|
|
8348
8353
|
}));
|
|
8349
8354
|
}
|
|
8350
|
-
var [
|
|
8355
|
+
var [x, E] = U.edges(u), _ = y.above(t, {
|
|
8351
8356
|
match: (pe) => de.isElement(pe) && y.isBlock(t, pe),
|
|
8352
|
-
at:
|
|
8357
|
+
at: x,
|
|
8353
8358
|
voids: l
|
|
8354
|
-
}),
|
|
8359
|
+
}), w = y.above(t, {
|
|
8355
8360
|
match: (pe) => de.isElement(pe) && y.isBlock(t, pe),
|
|
8356
8361
|
at: E,
|
|
8357
8362
|
voids: l
|
|
8358
|
-
}), F = _ &&
|
|
8359
|
-
at:
|
|
8363
|
+
}), F = _ && w && !P.equals(_[1], w[1]), T = P.equals(x.path, E.path), z = l ? null : (r = y.void(t, {
|
|
8364
|
+
at: x,
|
|
8360
8365
|
mode: "highest"
|
|
8361
8366
|
})) !== null && r !== void 0 ? r : y.elementReadOnly(t, {
|
|
8362
|
-
at:
|
|
8367
|
+
at: x,
|
|
8363
8368
|
mode: "highest"
|
|
8364
8369
|
}), R = l ? null : (a = y.void(t, {
|
|
8365
8370
|
at: E,
|
|
@@ -8369,12 +8374,12 @@ var rv = (e, t) => {
|
|
|
8369
8374
|
mode: "highest"
|
|
8370
8375
|
});
|
|
8371
8376
|
if (z) {
|
|
8372
|
-
var L = y.before(t,
|
|
8373
|
-
L && _ && P.isAncestor(_[1], L.path) && (
|
|
8377
|
+
var L = y.before(t, x);
|
|
8378
|
+
L && _ && P.isAncestor(_[1], L.path) && (x = L);
|
|
8374
8379
|
}
|
|
8375
8380
|
if (R) {
|
|
8376
8381
|
var I = y.after(t, E);
|
|
8377
|
-
I &&
|
|
8382
|
+
I && w && P.isAncestor(w[1], I.path) && (E = I);
|
|
8378
8383
|
}
|
|
8379
8384
|
var C = [], B;
|
|
8380
8385
|
for (var j of y.nodes(t, {
|
|
@@ -8382,18 +8387,18 @@ var rv = (e, t) => {
|
|
|
8382
8387
|
voids: l
|
|
8383
8388
|
})) {
|
|
8384
8389
|
var [M, O] = j;
|
|
8385
|
-
B && P.compare(O, B) === 0 || (!l && de.isElement(M) && (y.isVoid(t, M) || y.isElementReadOnly(t, M)) || !P.isCommon(O,
|
|
8390
|
+
B && P.compare(O, B) === 0 || (!l && de.isElement(M) && (y.isVoid(t, M) || y.isElementReadOnly(t, M)) || !P.isCommon(O, x.path) && !P.isCommon(O, E.path)) && (C.push(j), B = O);
|
|
8386
8391
|
}
|
|
8387
8392
|
var Z = Array.from(C, (pe) => {
|
|
8388
8393
|
var [, be] = pe;
|
|
8389
8394
|
return y.pathRef(t, be);
|
|
8390
|
-
}), ae = y.pointRef(t,
|
|
8395
|
+
}), ae = y.pointRef(t, x), q = y.pointRef(t, E), v = "";
|
|
8391
8396
|
if (!T && !z) {
|
|
8392
8397
|
var W = ae.current, [te] = y.leaf(t, W), {
|
|
8393
8398
|
path: k
|
|
8394
8399
|
} = W, {
|
|
8395
8400
|
offset: A
|
|
8396
|
-
} =
|
|
8401
|
+
} = x, $ = te.text.slice(A);
|
|
8397
8402
|
$.length > 0 && (t.apply({
|
|
8398
8403
|
type: "remove_text",
|
|
8399
8404
|
path: k,
|
|
@@ -8407,7 +8412,7 @@ var rv = (e, t) => {
|
|
|
8407
8412
|
})), !R) {
|
|
8408
8413
|
var N = q.current, [H] = y.leaf(t, N), {
|
|
8409
8414
|
path: ee
|
|
8410
|
-
} = N, X = T ?
|
|
8415
|
+
} = N, X = T ? x.offset : 0, ne = H.text.slice(X, E.offset);
|
|
8411
8416
|
ne.length > 0 && (t.apply({
|
|
8412
8417
|
type: "remove_text",
|
|
8413
8418
|
path: ee,
|
|
@@ -8477,13 +8482,13 @@ var rv = (e, t) => {
|
|
|
8477
8482
|
match: ($) => de.isElement($) && y.isBlock(t, $),
|
|
8478
8483
|
at: s,
|
|
8479
8484
|
voids: i
|
|
8480
|
-
}), [, h] = g, D = y.isStart(t, s, h), b = y.isEnd(t, s, h),
|
|
8485
|
+
}), [, h] = g, D = y.isStart(t, s, h), b = y.isEnd(t, s, h), x = D && b, E = !D || D && b, _ = !b, [, w] = oe.first({
|
|
8481
8486
|
children: n
|
|
8482
8487
|
}, []), [, F] = oe.last({
|
|
8483
8488
|
children: n
|
|
8484
8489
|
}, []), T = [], z = ($) => {
|
|
8485
8490
|
var [N, H] = $, ee = H.length === 0;
|
|
8486
|
-
return ee ? !1 :
|
|
8491
|
+
return ee ? !1 : x ? !0 : !(E && P.isAncestor(H, w) && de.isElement(N) && !t.isVoid(N) && !t.isInline(N) || _ && P.isAncestor(H, F) && de.isElement(N) && !t.isVoid(N) && !t.isInline(N));
|
|
8487
8492
|
};
|
|
8488
8493
|
for (var R of oe.nodes({
|
|
8489
8494
|
children: n
|
|
@@ -8514,7 +8519,7 @@ var rv = (e, t) => {
|
|
|
8514
8519
|
mode: "highest",
|
|
8515
8520
|
voids: i,
|
|
8516
8521
|
batchDirty: o
|
|
8517
|
-
}),
|
|
8522
|
+
}), x && !L.length && I.length && !C.length && Q.delete(t, {
|
|
8518
8523
|
at: h,
|
|
8519
8524
|
voids: i
|
|
8520
8525
|
}), Q.insertNodes(t, I, {
|
|
@@ -8707,8 +8712,8 @@ var pv = function(t, n) {
|
|
|
8707
8712
|
mode: s,
|
|
8708
8713
|
voids: i
|
|
8709
8714
|
});
|
|
8710
|
-
var
|
|
8711
|
-
l = b ? P.next(
|
|
8715
|
+
var x = D.unref();
|
|
8716
|
+
l = b ? P.next(x) : x;
|
|
8712
8717
|
} else
|
|
8713
8718
|
return;
|
|
8714
8719
|
}
|
|
@@ -8717,7 +8722,7 @@ var pv = function(t, n) {
|
|
|
8717
8722
|
at: E
|
|
8718
8723
|
}))) {
|
|
8719
8724
|
if (o) {
|
|
8720
|
-
var
|
|
8725
|
+
var w = [], F = P.levels(E);
|
|
8721
8726
|
eg(t, () => {
|
|
8722
8727
|
var L = function() {
|
|
8723
8728
|
var B = E.concat(_);
|
|
@@ -8727,7 +8732,7 @@ var pv = function(t, n) {
|
|
|
8727
8732
|
path: B,
|
|
8728
8733
|
node: I
|
|
8729
8734
|
};
|
|
8730
|
-
t.apply(j), l = P.next(l),
|
|
8735
|
+
t.apply(j), l = P.next(l), w.push(j), he.isText ? F.push(...Array.from(oe.nodes(I), (M) => {
|
|
8731
8736
|
var [, O] = M;
|
|
8732
8737
|
return B.concat(O);
|
|
8733
8738
|
})) : F.push(B);
|
|
@@ -8737,7 +8742,7 @@ var pv = function(t, n) {
|
|
|
8737
8742
|
}, () => {
|
|
8738
8743
|
od(t, F, (L) => {
|
|
8739
8744
|
var I = L;
|
|
8740
|
-
for (var C of
|
|
8745
|
+
for (var C of w)
|
|
8741
8746
|
if (P.operationCanTransformPath(C) && (I = P.transform(I, C), !I))
|
|
8742
8747
|
return null;
|
|
8743
8748
|
return I;
|
|
@@ -8776,8 +8781,8 @@ var pv = function(t, n) {
|
|
|
8776
8781
|
mode: a,
|
|
8777
8782
|
voids: i
|
|
8778
8783
|
}), l = Array.from(o, (_) => {
|
|
8779
|
-
var [,
|
|
8780
|
-
return y.pathRef(t,
|
|
8784
|
+
var [, w] = _;
|
|
8785
|
+
return y.pathRef(t, w);
|
|
8781
8786
|
});
|
|
8782
8787
|
for (var u of l) {
|
|
8783
8788
|
var d = u.unref();
|
|
@@ -8810,9 +8815,9 @@ var pv = function(t, n) {
|
|
|
8810
8815
|
voids: i
|
|
8811
8816
|
});
|
|
8812
8817
|
} else {
|
|
8813
|
-
var
|
|
8818
|
+
var x = P.next(d), E = P.next(m);
|
|
8814
8819
|
Q.splitNodes(t, {
|
|
8815
|
-
at:
|
|
8820
|
+
at: x,
|
|
8816
8821
|
voids: i
|
|
8817
8822
|
}), Q.moveNodes(t, {
|
|
8818
8823
|
at: d,
|
|
@@ -8872,16 +8877,16 @@ var pv = function(t, n) {
|
|
|
8872
8877
|
if (!(!f || !p)) {
|
|
8873
8878
|
var [m, g] = f, [h, D] = p;
|
|
8874
8879
|
if (!(g.length === 0 || D.length === 0)) {
|
|
8875
|
-
var b = P.next(D),
|
|
8880
|
+
var b = P.next(D), x = P.common(g, D), E = P.isSibling(g, D), _ = Array.from(y.levels(t, {
|
|
8876
8881
|
at: g
|
|
8877
8882
|
}), (L) => {
|
|
8878
8883
|
var [I] = L;
|
|
8879
8884
|
return I;
|
|
8880
|
-
}).slice(
|
|
8885
|
+
}).slice(x.length).slice(0, -1), w = y.above(t, {
|
|
8881
8886
|
at: g,
|
|
8882
8887
|
mode: "highest",
|
|
8883
8888
|
match: (L) => _.includes(L) && ud(t, L)
|
|
8884
|
-
}), F =
|
|
8889
|
+
}), F = w && y.pathRef(t, w[1]), T, z;
|
|
8885
8890
|
if (he.isText(m) && he.isText(h)) {
|
|
8886
8891
|
var R = Xt(m, yv);
|
|
8887
8892
|
z = h.text.length, T = R;
|
|
@@ -9019,22 +9024,22 @@ var pv = function(t, n) {
|
|
|
9019
9024
|
}), i = p.unref(), r.at == null && Q.select(t, i);
|
|
9020
9025
|
}
|
|
9021
9026
|
s || (s = (z, R) => z !== R);
|
|
9022
|
-
for (var [
|
|
9027
|
+
for (var [x, E] of y.nodes(t, {
|
|
9023
9028
|
at: i,
|
|
9024
9029
|
match: a,
|
|
9025
9030
|
mode: u,
|
|
9026
9031
|
voids: f
|
|
9027
9032
|
})) {
|
|
9028
|
-
var _ = {},
|
|
9033
|
+
var _ = {}, w = {};
|
|
9029
9034
|
if (E.length !== 0) {
|
|
9030
9035
|
var F = !1;
|
|
9031
9036
|
for (var T in n)
|
|
9032
|
-
T === "children" || T === "text" || s(n[T],
|
|
9037
|
+
T === "children" || T === "text" || s(n[T], x[T]) && (F = !0, x.hasOwnProperty(T) && (_[T] = x[T]), o ? n[T] != null && (w[T] = o(x[T], n[T])) : n[T] != null && (w[T] = n[T]));
|
|
9033
9038
|
F && t.apply({
|
|
9034
9039
|
type: "set_node",
|
|
9035
9040
|
path: E,
|
|
9036
9041
|
properties: _,
|
|
9037
|
-
newProperties:
|
|
9042
|
+
newProperties: w
|
|
9038
9043
|
});
|
|
9039
9044
|
}
|
|
9040
9045
|
}
|
|
@@ -9081,21 +9086,21 @@ var pv = function(t, n) {
|
|
|
9081
9086
|
mode: "highest"
|
|
9082
9087
|
}), D = 0;
|
|
9083
9088
|
if (!a && h) {
|
|
9084
|
-
var [b,
|
|
9089
|
+
var [b, x] = h;
|
|
9085
9090
|
if (de.isElement(b) && t.isInline(b)) {
|
|
9086
|
-
var E = y.after(t,
|
|
9091
|
+
var E = y.after(t, x);
|
|
9087
9092
|
if (!E) {
|
|
9088
9093
|
var _ = {
|
|
9089
9094
|
text: ""
|
|
9090
|
-
},
|
|
9095
|
+
}, w = P.next(x);
|
|
9091
9096
|
Q.insertNodes(t, _, {
|
|
9092
|
-
at:
|
|
9097
|
+
at: w,
|
|
9093
9098
|
voids: a
|
|
9094
|
-
}), E = y.point(t,
|
|
9099
|
+
}), E = y.point(t, w);
|
|
9095
9100
|
}
|
|
9096
9101
|
s = E, l = !0;
|
|
9097
9102
|
}
|
|
9098
|
-
var F = s.path.length -
|
|
9103
|
+
var F = s.path.length - x.length;
|
|
9099
9104
|
o = F + 1, l = !0;
|
|
9100
9105
|
}
|
|
9101
9106
|
m = y.pointRef(t, s);
|
|
@@ -9235,17 +9240,17 @@ var Fv = function(t, n) {
|
|
|
9235
9240
|
var b = U.isRange(l) ? U.intersection(l, y.range(t, h)) : l;
|
|
9236
9241
|
if (!b)
|
|
9237
9242
|
return 0;
|
|
9238
|
-
var
|
|
9243
|
+
var x = Array.from(y.nodes(t, {
|
|
9239
9244
|
at: b,
|
|
9240
9245
|
match: o,
|
|
9241
9246
|
mode: a,
|
|
9242
9247
|
voids: s
|
|
9243
9248
|
}));
|
|
9244
|
-
if (
|
|
9245
|
-
var [E] =
|
|
9246
|
-
if (
|
|
9249
|
+
if (x.length > 0) {
|
|
9250
|
+
var [E] = x, _ = x[x.length - 1], [, w] = E, [, F] = _;
|
|
9251
|
+
if (w.length === 0 && F.length === 0)
|
|
9247
9252
|
return 0;
|
|
9248
|
-
var T = P.equals(
|
|
9253
|
+
var T = P.equals(w, F) ? P.parent(w) : P.common(w, F), z = y.range(t, w, F), R = y.node(t, T), [L] = R, I = T.length + 1, C = P.next(F.slice(0, I)), B = ju(ju({}, n), {}, {
|
|
9249
9254
|
children: []
|
|
9250
9255
|
});
|
|
9251
9256
|
Q.insertNodes(t, B, {
|
|
@@ -9867,19 +9872,19 @@ function R0(e, t, n) {
|
|
|
9867
9872
|
function b() {
|
|
9868
9873
|
var F = xi();
|
|
9869
9874
|
if (D(F))
|
|
9870
|
-
return
|
|
9875
|
+
return x(F);
|
|
9871
9876
|
o = setTimeout(b, h(F));
|
|
9872
9877
|
}
|
|
9873
|
-
function
|
|
9878
|
+
function x(F) {
|
|
9874
9879
|
return o = void 0, p && r ? m(F) : (r = a = void 0, s);
|
|
9875
9880
|
}
|
|
9876
9881
|
function E() {
|
|
9877
9882
|
o !== void 0 && clearTimeout(o), u = 0, r = l = a = o = void 0;
|
|
9878
9883
|
}
|
|
9879
9884
|
function _() {
|
|
9880
|
-
return o === void 0 ? s :
|
|
9885
|
+
return o === void 0 ? s : x(xi());
|
|
9881
9886
|
}
|
|
9882
|
-
function
|
|
9887
|
+
function w() {
|
|
9883
9888
|
var F = xi(), T = D(F);
|
|
9884
9889
|
if (r = arguments, a = this, l = F, T) {
|
|
9885
9890
|
if (o === void 0)
|
|
@@ -9889,7 +9894,7 @@ function R0(e, t, n) {
|
|
|
9889
9894
|
}
|
|
9890
9895
|
return o === void 0 && (o = setTimeout(b, t)), s;
|
|
9891
9896
|
}
|
|
9892
|
-
return
|
|
9897
|
+
return w.cancel = E, w.flush = _, w;
|
|
9893
9898
|
}
|
|
9894
9899
|
var pd = R0;
|
|
9895
9900
|
const M0 = /* @__PURE__ */ Tn(pd);
|
|
@@ -9941,21 +9946,21 @@ const W0 = /* @__PURE__ */ Tn(q0), Iu = (e) => typeof e == "object" && e != null
|
|
|
9941
9946
|
}
|
|
9942
9947
|
g != null && g === document.body && wi(g) && !wi(document.documentElement) || g != null && wi(g, d) && m.push(g);
|
|
9943
9948
|
}
|
|
9944
|
-
const h = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, D = (i = (a = window.visualViewport) == null ? void 0 : a.height) != null ? i : innerHeight, { scrollX: b, scrollY:
|
|
9949
|
+
const h = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, D = (i = (a = window.visualViewport) == null ? void 0 : a.height) != null ? i : innerHeight, { scrollX: b, scrollY: x } = window, { height: E, width: _, top: w, right: F, bottom: T, left: z } = e.getBoundingClientRect(), { top: R, right: L, bottom: I, left: C } = ((O) => {
|
|
9945
9950
|
const Z = window.getComputedStyle(O);
|
|
9946
9951
|
return { top: parseFloat(Z.scrollMarginTop) || 0, right: parseFloat(Z.scrollMarginRight) || 0, bottom: parseFloat(Z.scrollMarginBottom) || 0, left: parseFloat(Z.scrollMarginLeft) || 0 };
|
|
9947
9952
|
})(e);
|
|
9948
|
-
let B = o === "start" || o === "nearest" ?
|
|
9953
|
+
let B = o === "start" || o === "nearest" ? w - R : o === "end" ? T + I : w + E / 2 - R + I, j = l === "center" ? z + _ / 2 - C + L : l === "end" ? F + L : z - C;
|
|
9949
9954
|
const M = [];
|
|
9950
9955
|
for (let O = 0; O < m.length; O++) {
|
|
9951
9956
|
const Z = m[O], { height: ae, width: q, top: v, right: W, bottom: te, left: k } = Z.getBoundingClientRect();
|
|
9952
|
-
if (s === "if-needed" &&
|
|
9957
|
+
if (s === "if-needed" && w >= 0 && z >= 0 && T <= D && F <= h && w >= v && T <= te && z >= k && F <= W)
|
|
9953
9958
|
return M;
|
|
9954
9959
|
const A = getComputedStyle(Z), $ = parseInt(A.borderLeftWidth, 10), N = parseInt(A.borderTopWidth, 10), H = parseInt(A.borderRightWidth, 10), ee = parseInt(A.borderBottomWidth, 10);
|
|
9955
9960
|
let X = 0, ne = 0;
|
|
9956
9961
|
const ue = "offsetWidth" in Z ? Z.offsetWidth - Z.clientWidth - $ - H : 0, G = "offsetHeight" in Z ? Z.offsetHeight - Z.clientHeight - N - ee : 0, xe = "offsetWidth" in Z ? Z.offsetWidth === 0 ? 0 : q / Z.offsetWidth : 0, pe = "offsetHeight" in Z ? Z.offsetHeight === 0 ? 0 : ae / Z.offsetHeight : 0;
|
|
9957
9962
|
if (p === Z)
|
|
9958
|
-
X = o === "start" ? B : o === "end" ? B - D : o === "nearest" ? Xr(
|
|
9963
|
+
X = o === "start" ? B : o === "end" ? B - D : o === "nearest" ? Xr(x, x + D, D, N, ee, x + B, x + B + E, E) : B - D / 2, ne = l === "start" ? j : l === "center" ? j - h / 2 : l === "end" ? j - h : Xr(b, b + h, h, $, H, b + j, b + j + _, _), X = Math.max(0, X + x), ne = Math.max(0, ne + b);
|
|
9959
9964
|
else {
|
|
9960
9965
|
X = o === "start" ? B - v - N : o === "end" ? B - te + ee + G : o === "nearest" ? Xr(v, te, ae, N, ee + G, B, B + E, E) : B - (v + ae / 2) + G / 2, ne = l === "start" ? j - k - $ : l === "center" ? j - (k + q / 2) + ue / 2 : l === "end" ? j - W + H + ue : Xr(k, W, q, $, H + ue, j, j + _, _);
|
|
9961
9966
|
const { scrollLeft: be, scrollTop: we } = Z;
|
|
@@ -10066,7 +10071,7 @@ var En = function(e) {
|
|
|
10066
10071
|
return ea.get(e);
|
|
10067
10072
|
if (vd(e))
|
|
10068
10073
|
return ea.set(e, Uu), Uu;
|
|
10069
|
-
var n = getComputedStyle(e), r = no(e) && e.ownerSVGElement && e.getBBox(), a = !X0 && n.boxSizing === "border-box", i = J0.test(n.writingMode || ""), s = !r && Hu.test(n.overflowY || ""), o = !r && Hu.test(n.overflowX || ""), l = r ? 0 : Mt(n.paddingTop), u = r ? 0 : Mt(n.paddingRight), d = r ? 0 : Mt(n.paddingBottom), f = r ? 0 : Mt(n.paddingLeft), p = r ? 0 : Mt(n.borderTopWidth), m = r ? 0 : Mt(n.borderRightWidth), g = r ? 0 : Mt(n.borderBottomWidth), h = r ? 0 : Mt(n.borderLeftWidth), D = f + u, b = l + d,
|
|
10074
|
+
var n = getComputedStyle(e), r = no(e) && e.ownerSVGElement && e.getBBox(), a = !X0 && n.boxSizing === "border-box", i = J0.test(n.writingMode || ""), s = !r && Hu.test(n.overflowY || ""), o = !r && Hu.test(n.overflowX || ""), l = r ? 0 : Mt(n.paddingTop), u = r ? 0 : Mt(n.paddingRight), d = r ? 0 : Mt(n.paddingBottom), f = r ? 0 : Mt(n.paddingLeft), p = r ? 0 : Mt(n.borderTopWidth), m = r ? 0 : Mt(n.borderRightWidth), g = r ? 0 : Mt(n.borderBottomWidth), h = r ? 0 : Mt(n.borderLeftWidth), D = f + u, b = l + d, x = h + m, E = p + g, _ = o ? e.offsetHeight - E - e.clientHeight : 0, w = s ? e.offsetWidth - x - e.clientWidth : 0, F = a ? D + x : 0, T = a ? b + E : 0, z = r ? r.width : Mt(n.width) - F - w, R = r ? r.height : Mt(n.height) - T - _, L = z + D + w + x, I = R + b + _ + E, C = En({
|
|
10070
10075
|
devicePixelContentBoxSize: Zn(Math.round(z * devicePixelRatio), Math.round(R * devicePixelRatio), i),
|
|
10071
10076
|
borderBoxSize: Zn(L, I, i),
|
|
10072
10077
|
contentBoxSize: Zn(z, R, i),
|
|
@@ -10737,8 +10742,8 @@ var J = {
|
|
|
10737
10742
|
break;
|
|
10738
10743
|
}
|
|
10739
10744
|
if (t.offset <= g) {
|
|
10740
|
-
var
|
|
10741
|
-
a = [d,
|
|
10745
|
+
var x = Math.min(f, Math.max(0, t.offset - o));
|
|
10746
|
+
a = [d, x];
|
|
10742
10747
|
break;
|
|
10743
10748
|
}
|
|
10744
10749
|
o = g;
|
|
@@ -10772,9 +10777,9 @@ var J = {
|
|
|
10772
10777
|
var d, f, p = J.toDOMNode(e, e), m = o.closest('[data-slate-void="true"]'), g = m && p.contains(m) ? m : null, h = o.closest("[data-slate-leaf]"), D = null;
|
|
10773
10778
|
if (h) {
|
|
10774
10779
|
if (l = h.closest('[data-slate-node="text"]'), l) {
|
|
10775
|
-
var b = J.getWindow(e),
|
|
10776
|
-
|
|
10777
|
-
var E =
|
|
10780
|
+
var b = J.getWindow(e), x = b.document.createRange();
|
|
10781
|
+
x.setStart(l, 0), x.setEnd(i, s);
|
|
10782
|
+
var E = x.cloneContents(), _ = [...Array.prototype.slice.call(E.querySelectorAll("[data-slate-zero-width]")), ...Array.prototype.slice.call(E.querySelectorAll("[contenteditable=false]"))];
|
|
10778
10783
|
_.forEach((j) => {
|
|
10779
10784
|
if (ft && !r && j.hasAttribute("data-slate-zero-width") && j.textContent.length > 0 && j.textContext !== "\uFEFF") {
|
|
10780
10785
|
j.textContent.startsWith("\uFEFF") && (j.textContent = j.textContent.slice(1));
|
|
@@ -10784,8 +10789,8 @@ var J = {
|
|
|
10784
10789
|
}), u = E.textContent.length, D = l;
|
|
10785
10790
|
}
|
|
10786
10791
|
} else if (g) {
|
|
10787
|
-
for (var
|
|
10788
|
-
var T =
|
|
10792
|
+
for (var w = g.querySelectorAll("[data-slate-leaf]"), F = 0; F < w.length; F++) {
|
|
10793
|
+
var T = w[F];
|
|
10789
10794
|
if (J.hasDOMNode(e, T)) {
|
|
10790
10795
|
h = T;
|
|
10791
10796
|
break;
|
|
@@ -10863,8 +10868,8 @@ var J = {
|
|
|
10863
10868
|
if (Un && (r = u.textContent) !== null && r !== void 0 && r.endsWith(`
|
|
10864
10869
|
|
|
10865
10870
|
`) && d === u.textContent.length && d--, "getAttribute" in u && u.getAttribute("contenteditable") === "false" && u.getAttribute("data-slate-void") !== "true") {
|
|
10866
|
-
var
|
|
10867
|
-
u = o, d = ((
|
|
10871
|
+
var x;
|
|
10872
|
+
u = o, d = ((x = o.textContent) === null || x === void 0 ? void 0 : x.length) || 0;
|
|
10868
10873
|
}
|
|
10869
10874
|
var E = J.toSlatePoint(e, [o, l], {
|
|
10870
10875
|
exactMatch: a,
|
|
@@ -10878,16 +10883,16 @@ var J = {
|
|
|
10878
10883
|
});
|
|
10879
10884
|
if (!_)
|
|
10880
10885
|
return null;
|
|
10881
|
-
var
|
|
10886
|
+
var w = {
|
|
10882
10887
|
anchor: E,
|
|
10883
10888
|
focus: _
|
|
10884
10889
|
};
|
|
10885
|
-
return U.isExpanded(
|
|
10886
|
-
at:
|
|
10890
|
+
return U.isExpanded(w) && U.isForward(w) && Ft(u) && y.void(e, {
|
|
10891
|
+
at: w.focus,
|
|
10887
10892
|
mode: "highest"
|
|
10888
|
-
}) && (
|
|
10893
|
+
}) && (w = y.unhangRange(e, w, {
|
|
10889
10894
|
voids: !0
|
|
10890
|
-
})),
|
|
10895
|
+
})), w;
|
|
10891
10896
|
}
|
|
10892
10897
|
};
|
|
10893
10898
|
function $b(e, t) {
|
|
@@ -11270,7 +11275,7 @@ function Zb(e) {
|
|
|
11270
11275
|
at: j,
|
|
11271
11276
|
run: B
|
|
11272
11277
|
}), o = setTimeout(p);
|
|
11273
|
-
},
|
|
11278
|
+
}, x = (C) => {
|
|
11274
11279
|
var B;
|
|
11275
11280
|
s && (clearTimeout(s), s = null);
|
|
11276
11281
|
var {
|
|
@@ -11468,7 +11473,7 @@ function Zb(e) {
|
|
|
11468
11473
|
}, E = () => !!sn.get(t), _ = () => {
|
|
11469
11474
|
var C;
|
|
11470
11475
|
return !!((C = pt.get(t)) !== null && C !== void 0 && C.length);
|
|
11471
|
-
},
|
|
11476
|
+
}, w = () => E() || _(), F = () => a, T = (C) => {
|
|
11472
11477
|
on.set(t, C), s && (clearTimeout(s), s = null);
|
|
11473
11478
|
var {
|
|
11474
11479
|
selection: B
|
|
@@ -11494,12 +11499,12 @@ function Zb(e) {
|
|
|
11494
11499
|
scheduleFlush: L,
|
|
11495
11500
|
hasPendingDiffs: _,
|
|
11496
11501
|
hasPendingAction: E,
|
|
11497
|
-
hasPendingChanges:
|
|
11502
|
+
hasPendingChanges: w,
|
|
11498
11503
|
isFlushing: F,
|
|
11499
11504
|
handleUserSelect: T,
|
|
11500
11505
|
handleCompositionEnd: m,
|
|
11501
11506
|
handleCompositionStart: g,
|
|
11502
|
-
handleDOMBeforeInput:
|
|
11507
|
+
handleDOMBeforeInput: x,
|
|
11503
11508
|
handleKeyDown: R,
|
|
11504
11509
|
handleDomMutations: I,
|
|
11505
11510
|
handleInput: z
|
|
@@ -11683,20 +11688,20 @@ var dy = (e) => {
|
|
|
11683
11688
|
text: r,
|
|
11684
11689
|
parent: a,
|
|
11685
11690
|
renderPlaceholder: i,
|
|
11686
|
-
renderLeaf: s = (
|
|
11687
|
-
} = e, o = gn(), l = Ae(null), u = Ae(null), [d, f] = fe(!1), p = Ae(null), m = Pe((
|
|
11688
|
-
if (cy(l,
|
|
11691
|
+
renderLeaf: s = (x) => /* @__PURE__ */ re.createElement(hy, Md({}, x))
|
|
11692
|
+
} = e, o = gn(), l = Ae(null), u = Ae(null), [d, f] = fe(!1), p = Ae(null), m = Pe((x) => {
|
|
11693
|
+
if (cy(l, x == null), x == null) {
|
|
11689
11694
|
var E;
|
|
11690
11695
|
Ds.delete(o), (E = t.onPlaceholderResize) === null || E === void 0 || E.call(t, null);
|
|
11691
11696
|
} else {
|
|
11692
|
-
if (Ds.set(o,
|
|
11697
|
+
if (Ds.set(o, x), !l.current) {
|
|
11693
11698
|
var _ = window.ResizeObserver || hb;
|
|
11694
11699
|
l.current = new _(() => {
|
|
11695
|
-
var
|
|
11696
|
-
(
|
|
11700
|
+
var w;
|
|
11701
|
+
(w = t.onPlaceholderResize) === null || w === void 0 || w.call(t, x);
|
|
11697
11702
|
});
|
|
11698
11703
|
}
|
|
11699
|
-
l.current.observe(
|
|
11704
|
+
l.current.observe(x), u.current = x;
|
|
11700
11705
|
}
|
|
11701
11706
|
}, [u, t, o]), g = /* @__PURE__ */ re.createElement(oy, {
|
|
11702
11707
|
isLast: n,
|
|
@@ -11799,13 +11804,13 @@ var py = (e) => {
|
|
|
11799
11804
|
var {
|
|
11800
11805
|
decorations: t,
|
|
11801
11806
|
element: n,
|
|
11802
|
-
renderElement: r = (
|
|
11807
|
+
renderElement: r = (x) => /* @__PURE__ */ re.createElement(vy, ks({}, x)),
|
|
11803
11808
|
renderPlaceholder: a,
|
|
11804
11809
|
renderLeaf: i,
|
|
11805
11810
|
selection: s
|
|
11806
|
-
} = e, o = gn(), l = Dy(), u = o.isInline(n), d = J.findKey(o, n), f = Pe((
|
|
11811
|
+
} = e, o = gn(), l = Dy(), u = o.isInline(n), d = J.findKey(o, n), f = Pe((x) => {
|
|
11807
11812
|
var E = ei.get(o);
|
|
11808
|
-
|
|
11813
|
+
x ? (E == null || E.set(d, x), _n.set(n, x), Rr.set(x, n)) : (E == null || E.delete(d), _n.delete(n));
|
|
11809
11814
|
}, [o, d, n]), p = Ld({
|
|
11810
11815
|
decorations: t,
|
|
11811
11816
|
node: n,
|
|
@@ -11865,16 +11870,16 @@ var py = (e) => {
|
|
|
11865
11870
|
renderLeaf: i,
|
|
11866
11871
|
selection: s
|
|
11867
11872
|
} = e, o = by(), l = gn(), u = J.findPath(l, n), d = [], f = de.isElement(n) && !l.isInline(n) && y.hasInlines(l, n), p = 0; p < n.children.length; p++) {
|
|
11868
|
-
var m = u.concat(p), g = n.children[p], h = J.findKey(l, g), D = y.range(l, m), b = s && U.intersection(D, s),
|
|
11873
|
+
var m = u.concat(p), g = n.children[p], h = J.findKey(l, g), D = y.range(l, m), b = s && U.intersection(D, s), x = o([g, m]);
|
|
11869
11874
|
for (var E of t) {
|
|
11870
11875
|
var _ = U.intersection(E, D);
|
|
11871
|
-
_ &&
|
|
11876
|
+
_ && x.push(_);
|
|
11872
11877
|
}
|
|
11873
11878
|
de.isElement(g) ? d.push(/* @__PURE__ */ re.createElement(yy.Provider, {
|
|
11874
11879
|
key: "provider-".concat(h.id),
|
|
11875
11880
|
value: !!b
|
|
11876
11881
|
}, /* @__PURE__ */ re.createElement(gy, {
|
|
11877
|
-
decorations:
|
|
11882
|
+
decorations: x,
|
|
11878
11883
|
element: g,
|
|
11879
11884
|
key: h.id,
|
|
11880
11885
|
renderElement: r,
|
|
@@ -11882,7 +11887,7 @@ var py = (e) => {
|
|
|
11882
11887
|
renderLeaf: i,
|
|
11883
11888
|
selection: b
|
|
11884
11889
|
}))) : d.push(/* @__PURE__ */ re.createElement($d, {
|
|
11885
|
-
decorations:
|
|
11890
|
+
decorations: x,
|
|
11886
11891
|
key: h.id,
|
|
11887
11892
|
isLast: f && p === n.children.length - 1,
|
|
11888
11893
|
parent: n,
|
|
@@ -12087,7 +12092,7 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12087
12092
|
style: f = {},
|
|
12088
12093
|
as: p = "div",
|
|
12089
12094
|
disableDefaultStyles: m = !1
|
|
12090
|
-
} = e, g = Jn(e, Fy), h = jn(), [D, b] = fe(!1),
|
|
12095
|
+
} = e, g = Jn(e, Fy), h = jn(), [D, b] = fe(!1), x = Ae(null), E = Ae([]), [_, w] = fe(), {
|
|
12091
12096
|
onUserInput: F,
|
|
12092
12097
|
receivedUserInput: T
|
|
12093
12098
|
} = xy(), [, z] = nr((A) => A + 1, 0);
|
|
@@ -12099,7 +12104,7 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12099
12104
|
hasMarkPlaceholder: !1
|
|
12100
12105
|
}), []);
|
|
12101
12106
|
me(() => {
|
|
12102
|
-
|
|
12107
|
+
x.current && n && x.current.focus();
|
|
12103
12108
|
}, [n]);
|
|
12104
12109
|
var L = Ae(), I = zt(() => W0(() => {
|
|
12105
12110
|
var A = L.current;
|
|
@@ -12124,12 +12129,12 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12124
12129
|
}
|
|
12125
12130
|
}, 100), [h, s, R]), C = zt(() => M0(I, 0), [I]);
|
|
12126
12131
|
L.current = ey({
|
|
12127
|
-
node:
|
|
12132
|
+
node: x,
|
|
12128
12133
|
onDOMSelectionChange: I,
|
|
12129
12134
|
scheduleOnDOMSelectionChange: C
|
|
12130
12135
|
}), Mr(() => {
|
|
12131
12136
|
var A, $, N;
|
|
12132
|
-
|
|
12137
|
+
x.current && (N = lo(x.current)) ? (Ad.set(h, N), ba.set(h, x.current), _n.set(h, x.current), Rr.set(x.current, h)) : _n.delete(h);
|
|
12133
12138
|
var {
|
|
12134
12139
|
selection: H
|
|
12135
12140
|
} = h, ee = J.findDocumentOrShadowRoot(h), X = ee.getSelection();
|
|
@@ -12338,7 +12343,7 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12338
12343
|
wr.delete(h), V && (!h.selection || !U.equals(h.selection, V)) && Q.select(h, V);
|
|
12339
12344
|
}
|
|
12340
12345
|
}, [h, I, F, a, s, C]), j = Pe((A) => {
|
|
12341
|
-
A == null ? (I.cancel(), C.cancel(), ba.delete(h), _n.delete(h),
|
|
12346
|
+
A == null ? (I.cancel(), C.cancel(), ba.delete(h), _n.delete(h), x.current && rn && x.current.removeEventListener("beforeinput", B)) : rn && A.addEventListener("beforeinput", B), x.current = A;
|
|
12342
12347
|
}, [I, C, h, B]);
|
|
12343
12348
|
Mr(() => {
|
|
12344
12349
|
var A = J.getWindow(h);
|
|
@@ -12349,9 +12354,9 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12349
12354
|
var M = r([h, []]), O = i && h.children.length === 1 && Array.from(oe.texts(h)).length === 1 && oe.string(h) === "" && !D, Z = Pe((A) => {
|
|
12350
12355
|
if (A && O) {
|
|
12351
12356
|
var $;
|
|
12352
|
-
|
|
12357
|
+
w(($ = A.getBoundingClientRect()) === null || $ === void 0 ? void 0 : $.height);
|
|
12353
12358
|
} else
|
|
12354
|
-
|
|
12359
|
+
w(void 0);
|
|
12355
12360
|
}, [O]);
|
|
12356
12361
|
if (O) {
|
|
12357
12362
|
var ae = y.start(h, []);
|
|
@@ -12406,7 +12411,7 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12406
12411
|
}, /* @__PURE__ */ re.createElement(Id.Provider, {
|
|
12407
12412
|
value: r
|
|
12408
12413
|
}, /* @__PURE__ */ re.createElement(Ay, {
|
|
12409
|
-
node:
|
|
12414
|
+
node: x,
|
|
12410
12415
|
receivedUserInput: T
|
|
12411
12416
|
}, /* @__PURE__ */ re.createElement(p, $t($t({
|
|
12412
12417
|
role: s ? void 0 : "textbox",
|
|
@@ -12976,8 +12981,8 @@ var Wy = function(t) {
|
|
|
12976
12981
|
break;
|
|
12977
12982
|
}
|
|
12978
12983
|
case "merge_node": {
|
|
12979
|
-
var
|
|
12980
|
-
d.push(...$n(r,
|
|
12984
|
+
var x = P.previous(u.path);
|
|
12985
|
+
d.push(...$n(r, x));
|
|
12981
12986
|
break;
|
|
12982
12987
|
}
|
|
12983
12988
|
case "move_node": {
|
|
@@ -12985,7 +12990,7 @@ var Wy = function(t) {
|
|
|
12985
12990
|
d.push(...$n(r, E));
|
|
12986
12991
|
var _;
|
|
12987
12992
|
P.isBefore(u.path, u.newPath) ? (d.push(...$n(r, P.parent(u.path))), _ = u.newPath) : (d.push(...$n(r, P.parent(u.newPath))), _ = u.path);
|
|
12988
|
-
var
|
|
12993
|
+
var w = oe.get(t, P.parent(_)), F = J.findKey(r, w), T = y.pathRef(r, P.parent(_));
|
|
12989
12994
|
f.push([T, F]);
|
|
12990
12995
|
break;
|
|
12991
12996
|
}
|
|
@@ -13015,7 +13020,7 @@ var Wy = function(t) {
|
|
|
13015
13020
|
if (D.childNodes.forEach((L) => {
|
|
13016
13021
|
L.textContent && L.textContent.trim() !== "" && (b = L);
|
|
13017
13022
|
}), g) {
|
|
13018
|
-
var [
|
|
13023
|
+
var [x] = g, E = h.cloneRange(), _ = J.toDOMNode(r, x);
|
|
13019
13024
|
E.setEndAfter(_), D = E.cloneContents();
|
|
13020
13025
|
}
|
|
13021
13026
|
if (m && (b = D.querySelector("[data-slate-spacer]")), Array.from(D.querySelectorAll("[data-slate-zero-width]")).forEach((L) => {
|
|
@@ -13023,8 +13028,8 @@ var Wy = function(t) {
|
|
|
13023
13028
|
L.textContent = I ? `
|
|
13024
13029
|
` : "";
|
|
13025
13030
|
}), Sd(b)) {
|
|
13026
|
-
var
|
|
13027
|
-
|
|
13031
|
+
var w = b.ownerDocument.createElement("span");
|
|
13032
|
+
w.style.whiteSpace = "pre", w.appendChild(b), D.appendChild(w), b = w;
|
|
13028
13033
|
}
|
|
13029
13034
|
var F = r.getFragment(), T = JSON.stringify(F), z = window.btoa(encodeURIComponent(T));
|
|
13030
13035
|
b.setAttribute("data-slate-fragment", z), u.setData("application/".concat(n), z);
|
|
@@ -13151,11 +13156,11 @@ const Uy = ({
|
|
|
13151
13156
|
e,
|
|
13152
13157
|
h || Hd
|
|
13153
13158
|
).getBoundingClientRect();
|
|
13154
|
-
const
|
|
13159
|
+
const x = (m = document.getElementById(n)) == null ? void 0 : m.getBoundingClientRect();
|
|
13155
13160
|
l.style.setProperty(
|
|
13156
13161
|
"--width",
|
|
13157
|
-
`${((
|
|
13158
|
-
), d = (
|
|
13162
|
+
`${((x == null ? void 0 : x.width) || 0) / Ai}rem`
|
|
13163
|
+
), d = (x == null ? void 0 : x.left) || 0;
|
|
13159
13164
|
} else {
|
|
13160
13165
|
const h = document.getSelection();
|
|
13161
13166
|
h != null && h.toString().trim().length && (u = h == null ? void 0 : h.getRangeAt(0).getBoundingClientRect());
|
|
@@ -14704,12 +14709,12 @@ function F1(e) {
|
|
|
14704
14709
|
}
|
|
14705
14710
|
function l(E) {
|
|
14706
14711
|
if (r++, t.containerState._closeFlow) {
|
|
14707
|
-
t.containerState._closeFlow = void 0, a &&
|
|
14712
|
+
t.containerState._closeFlow = void 0, a && x();
|
|
14708
14713
|
const _ = t.events.length;
|
|
14709
|
-
let
|
|
14710
|
-
for (;
|
|
14711
|
-
if (t.events[
|
|
14712
|
-
F = t.events[
|
|
14714
|
+
let w = _, F;
|
|
14715
|
+
for (; w--; )
|
|
14716
|
+
if (t.events[w][0] === "exit" && t.events[w][1].type === "chunkFlow") {
|
|
14717
|
+
F = t.events[w][1].end;
|
|
14713
14718
|
break;
|
|
14714
14719
|
}
|
|
14715
14720
|
b(r);
|
|
@@ -14718,7 +14723,7 @@ function F1(e) {
|
|
|
14718
14723
|
t.events[T][1].end = Object.assign({}, F), T++;
|
|
14719
14724
|
return Wt(
|
|
14720
14725
|
t.events,
|
|
14721
|
-
|
|
14726
|
+
w + 1,
|
|
14722
14727
|
0,
|
|
14723
14728
|
t.events.slice(_)
|
|
14724
14729
|
), t.events.length = T, u(E);
|
|
@@ -14740,7 +14745,7 @@ function F1(e) {
|
|
|
14740
14745
|
)(E);
|
|
14741
14746
|
}
|
|
14742
14747
|
function d(E) {
|
|
14743
|
-
return a &&
|
|
14748
|
+
return a && x(), b(r), p(E);
|
|
14744
14749
|
}
|
|
14745
14750
|
function f(E) {
|
|
14746
14751
|
return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, g(E);
|
|
@@ -14757,7 +14762,7 @@ function F1(e) {
|
|
|
14757
14762
|
}
|
|
14758
14763
|
function g(E) {
|
|
14759
14764
|
if (E === null) {
|
|
14760
|
-
a &&
|
|
14765
|
+
a && x(), b(0), e.consume(E);
|
|
14761
14766
|
return;
|
|
14762
14767
|
}
|
|
14763
14768
|
return a = a || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
@@ -14774,8 +14779,8 @@ function F1(e) {
|
|
|
14774
14779
|
return Ce(E) ? (e.consume(E), D(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(E), h);
|
|
14775
14780
|
}
|
|
14776
14781
|
function D(E, _) {
|
|
14777
|
-
const
|
|
14778
|
-
if (_ &&
|
|
14782
|
+
const w = t.sliceStream(E);
|
|
14783
|
+
if (_ && w.push(null), E.previous = i, i && (i.next = E), i = E, a.defineSkip(E.start), a.write(w), t.parser.lazy[E.start.line]) {
|
|
14779
14784
|
let F = a.events.length;
|
|
14780
14785
|
for (; F--; )
|
|
14781
14786
|
if (
|
|
@@ -14808,12 +14813,12 @@ function F1(e) {
|
|
|
14808
14813
|
function b(E) {
|
|
14809
14814
|
let _ = n.length;
|
|
14810
14815
|
for (; _-- > E; ) {
|
|
14811
|
-
const
|
|
14812
|
-
t.containerState =
|
|
14816
|
+
const w = n[_];
|
|
14817
|
+
t.containerState = w[1], w[0].exit.call(t, e);
|
|
14813
14818
|
}
|
|
14814
14819
|
n.length = E;
|
|
14815
14820
|
}
|
|
14816
|
-
function
|
|
14821
|
+
function x() {
|
|
14817
14822
|
a.write([null]), i = void 0, a = void 0, t.containerState._closeFlow = void 0;
|
|
14818
14823
|
}
|
|
14819
14824
|
}
|
|
@@ -15062,7 +15067,7 @@ const jl = {
|
|
|
15062
15067
|
};
|
|
15063
15068
|
function z1(e, t, n) {
|
|
15064
15069
|
const r = this, a = {
|
|
15065
|
-
tokenize:
|
|
15070
|
+
tokenize: w,
|
|
15066
15071
|
partial: !0
|
|
15067
15072
|
};
|
|
15068
15073
|
let i = 0, s = 0, o;
|
|
@@ -15102,21 +15107,21 @@ function z1(e, t, n) {
|
|
|
15102
15107
|
function b(F) {
|
|
15103
15108
|
return i > 0 && Re(F) ? He(
|
|
15104
15109
|
e,
|
|
15105
|
-
|
|
15110
|
+
x,
|
|
15106
15111
|
"linePrefix",
|
|
15107
15112
|
i + 1
|
|
15108
|
-
)(F) :
|
|
15113
|
+
)(F) : x(F);
|
|
15109
15114
|
}
|
|
15110
|
-
function
|
|
15115
|
+
function x(F) {
|
|
15111
15116
|
return F === null || Ce(F) ? e.check(jl, h, _)(F) : (e.enter("codeFlowValue"), E(F));
|
|
15112
15117
|
}
|
|
15113
15118
|
function E(F) {
|
|
15114
|
-
return F === null || Ce(F) ? (e.exit("codeFlowValue"),
|
|
15119
|
+
return F === null || Ce(F) ? (e.exit("codeFlowValue"), x(F)) : (e.consume(F), E);
|
|
15115
15120
|
}
|
|
15116
15121
|
function _(F) {
|
|
15117
15122
|
return e.exit("codeFenced"), t(F);
|
|
15118
15123
|
}
|
|
15119
|
-
function
|
|
15124
|
+
function w(F, T, z) {
|
|
15120
15125
|
let R = 0;
|
|
15121
15126
|
return L;
|
|
15122
15127
|
function L(M) {
|
|
@@ -15264,8 +15269,8 @@ function G1(e, t) {
|
|
|
15264
15269
|
// Find a void token that includes a break.
|
|
15265
15270
|
o[p][0] === "exit" && o[p - 1][0] === "enter" && o[p][1].type === o[p - 1][1].type && o[p][1].start.line !== o[p][1].end.line && (h = p + 1, D.push(h), m._tokenizer = void 0, m.previous = void 0, m = m.next);
|
|
15266
15271
|
for (s.events = [], m ? (m._tokenizer = void 0, m.previous = void 0) : D.pop(), p = D.length; p--; ) {
|
|
15267
|
-
const b = o.slice(D[p], D[p + 1]),
|
|
15268
|
-
l.unshift([
|
|
15272
|
+
const b = o.slice(D[p], D[p + 1]), x = i.pop();
|
|
15273
|
+
l.unshift([x, x + b.length - 1]), Wt(e, x, 2, b);
|
|
15269
15274
|
}
|
|
15270
15275
|
for (p = -1; ++p < l.length; )
|
|
15271
15276
|
u[g + l[p][0]] = g + l[p][1], g += l[p][1] - l[p][0] - 1;
|
|
@@ -15649,24 +15654,24 @@ function gD(e, t, n) {
|
|
|
15649
15654
|
function D(k) {
|
|
15650
15655
|
if (k === null || k === 47 || k === 62 || vt(k)) {
|
|
15651
15656
|
const A = k === 47, $ = s.toLowerCase();
|
|
15652
|
-
return !A && !i && Pl.includes($) ? (a = 1, r.interrupt ? t(k) : C(k)) : dD.includes(s.toLowerCase()) ? (a = 6, A ? (e.consume(k), b) : r.interrupt ? t(k) : C(k)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : i ?
|
|
15657
|
+
return !A && !i && Pl.includes($) ? (a = 1, r.interrupt ? t(k) : C(k)) : dD.includes(s.toLowerCase()) ? (a = 6, A ? (e.consume(k), b) : r.interrupt ? t(k) : C(k)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : i ? x(k) : E(k));
|
|
15653
15658
|
}
|
|
15654
15659
|
return k === 45 || Pt(k) ? (e.consume(k), s += String.fromCharCode(k), D) : n(k);
|
|
15655
15660
|
}
|
|
15656
15661
|
function b(k) {
|
|
15657
15662
|
return k === 62 ? (e.consume(k), r.interrupt ? t : C) : n(k);
|
|
15658
15663
|
}
|
|
15659
|
-
function
|
|
15660
|
-
return Re(k) ? (e.consume(k),
|
|
15664
|
+
function x(k) {
|
|
15665
|
+
return Re(k) ? (e.consume(k), x) : L(k);
|
|
15661
15666
|
}
|
|
15662
15667
|
function E(k) {
|
|
15663
15668
|
return k === 47 ? (e.consume(k), L) : k === 58 || k === 95 || Lt(k) ? (e.consume(k), _) : Re(k) ? (e.consume(k), E) : L(k);
|
|
15664
15669
|
}
|
|
15665
15670
|
function _(k) {
|
|
15666
|
-
return k === 45 || k === 46 || k === 58 || k === 95 || Pt(k) ? (e.consume(k), _) :
|
|
15671
|
+
return k === 45 || k === 46 || k === 58 || k === 95 || Pt(k) ? (e.consume(k), _) : w(k);
|
|
15667
15672
|
}
|
|
15668
|
-
function
|
|
15669
|
-
return k === 61 ? (e.consume(k), F) : Re(k) ? (e.consume(k),
|
|
15673
|
+
function w(k) {
|
|
15674
|
+
return k === 61 ? (e.consume(k), F) : Re(k) ? (e.consume(k), w) : E(k);
|
|
15670
15675
|
}
|
|
15671
15676
|
function F(k) {
|
|
15672
15677
|
return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), l = k, T) : Re(k) ? (e.consume(k), F) : z(k);
|
|
@@ -15675,7 +15680,7 @@ function gD(e, t, n) {
|
|
|
15675
15680
|
return k === l ? (e.consume(k), l = null, R) : k === null || Ce(k) ? n(k) : (e.consume(k), T);
|
|
15676
15681
|
}
|
|
15677
15682
|
function z(k) {
|
|
15678
|
-
return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || vt(k) ?
|
|
15683
|
+
return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || vt(k) ? w(k) : (e.consume(k), z);
|
|
15679
15684
|
}
|
|
15680
15685
|
function R(k) {
|
|
15681
15686
|
return k === 47 || k === 62 || Re(k) ? E(k) : n(k);
|
|
@@ -15760,10 +15765,10 @@ function DD(e, t, n) {
|
|
|
15760
15765
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(v), l;
|
|
15761
15766
|
}
|
|
15762
15767
|
function l(v) {
|
|
15763
|
-
return v === 33 ? (e.consume(v), u) : v === 47 ? (e.consume(v),
|
|
15768
|
+
return v === 33 ? (e.consume(v), u) : v === 47 ? (e.consume(v), w) : v === 63 ? (e.consume(v), E) : Lt(v) ? (e.consume(v), z) : n(v);
|
|
15764
15769
|
}
|
|
15765
15770
|
function u(v) {
|
|
15766
|
-
return v === 45 ? (e.consume(v), d) : v === 91 ? (e.consume(v), i = 0, g) : Lt(v) ? (e.consume(v),
|
|
15771
|
+
return v === 45 ? (e.consume(v), d) : v === 91 ? (e.consume(v), i = 0, g) : Lt(v) ? (e.consume(v), x) : n(v);
|
|
15767
15772
|
}
|
|
15768
15773
|
function d(v) {
|
|
15769
15774
|
return v === 45 ? (e.consume(v), m) : n(v);
|
|
@@ -15790,8 +15795,8 @@ function DD(e, t, n) {
|
|
|
15790
15795
|
function b(v) {
|
|
15791
15796
|
return v === 62 ? O(v) : v === 93 ? (e.consume(v), b) : h(v);
|
|
15792
15797
|
}
|
|
15793
|
-
function
|
|
15794
|
-
return v === null || v === 62 ? O(v) : Ce(v) ? (s =
|
|
15798
|
+
function x(v) {
|
|
15799
|
+
return v === null || v === 62 ? O(v) : Ce(v) ? (s = x, Z(v)) : (e.consume(v), x);
|
|
15795
15800
|
}
|
|
15796
15801
|
function E(v) {
|
|
15797
15802
|
return v === null ? n(v) : v === 63 ? (e.consume(v), _) : Ce(v) ? (s = E, Z(v)) : (e.consume(v), E);
|
|
@@ -15799,7 +15804,7 @@ function DD(e, t, n) {
|
|
|
15799
15804
|
function _(v) {
|
|
15800
15805
|
return v === 62 ? O(v) : E(v);
|
|
15801
15806
|
}
|
|
15802
|
-
function
|
|
15807
|
+
function w(v) {
|
|
15803
15808
|
return Lt(v) ? (e.consume(v), F) : n(v);
|
|
15804
15809
|
}
|
|
15805
15810
|
function F(v) {
|
|
@@ -16400,10 +16405,10 @@ function QD(e, t, n) {
|
|
|
16400
16405
|
const a = {}, i = [];
|
|
16401
16406
|
let s = [], o = [];
|
|
16402
16407
|
const l = {
|
|
16403
|
-
consume:
|
|
16408
|
+
consume: x,
|
|
16404
16409
|
enter: E,
|
|
16405
16410
|
exit: _,
|
|
16406
|
-
attempt: T(
|
|
16411
|
+
attempt: T(w),
|
|
16407
16412
|
check: T(F),
|
|
16408
16413
|
interrupt: T(F, {
|
|
16409
16414
|
interrupt: !0
|
|
@@ -16458,7 +16463,7 @@ function QD(e, t, n) {
|
|
|
16458
16463
|
function b(I) {
|
|
16459
16464
|
d = d(I);
|
|
16460
16465
|
}
|
|
16461
|
-
function
|
|
16466
|
+
function x(I) {
|
|
16462
16467
|
Ce(I) ? (r.line++, r.column = 1, r.offset += I === -3 ? 2 : 1, L()) : I !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === s[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = I;
|
|
16463
16468
|
}
|
|
16464
16469
|
function E(I, C) {
|
|
@@ -16469,7 +16474,7 @@ function QD(e, t, n) {
|
|
|
16469
16474
|
const C = o.pop();
|
|
16470
16475
|
return C.end = g(), u.events.push(["exit", C, u]), C;
|
|
16471
16476
|
}
|
|
16472
|
-
function
|
|
16477
|
+
function w(I, C) {
|
|
16473
16478
|
z(I, C.from);
|
|
16474
16479
|
}
|
|
16475
16480
|
function F(I, C) {
|
|
@@ -16796,7 +16801,7 @@ function vx(e) {
|
|
|
16796
16801
|
},
|
|
16797
16802
|
exit: {
|
|
16798
16803
|
atxHeading: l(),
|
|
16799
|
-
atxHeadingSequence:
|
|
16804
|
+
atxHeadingSequence: w,
|
|
16800
16805
|
autolink: l(),
|
|
16801
16806
|
autolinkEmail: ee,
|
|
16802
16807
|
autolinkProtocol: H,
|
|
@@ -16816,7 +16821,7 @@ function vx(e) {
|
|
|
16816
16821
|
data: L,
|
|
16817
16822
|
definition: l(),
|
|
16818
16823
|
definitionDestinationString: _,
|
|
16819
|
-
definitionLabelString:
|
|
16824
|
+
definitionLabelString: x,
|
|
16820
16825
|
definitionTitleString: E,
|
|
16821
16826
|
emphasis: l(),
|
|
16822
16827
|
hardBreakEscape: l(C),
|
|
@@ -17031,7 +17036,7 @@ function vx(e) {
|
|
|
17031
17036
|
const V = this.resume(), se = this.stack[this.stack.length - 1];
|
|
17032
17037
|
se.value = V.replace(/(\r?\n|\r)$/g, "");
|
|
17033
17038
|
}
|
|
17034
|
-
function
|
|
17039
|
+
function x(V) {
|
|
17035
17040
|
const se = this.resume(), ve = this.stack[this.stack.length - 1];
|
|
17036
17041
|
ve.label = se, ve.identifier = Yn(
|
|
17037
17042
|
this.sliceSerialize(V)
|
|
@@ -17045,7 +17050,7 @@ function vx(e) {
|
|
|
17045
17050
|
const V = this.resume(), se = this.stack[this.stack.length - 1];
|
|
17046
17051
|
se.url = V;
|
|
17047
17052
|
}
|
|
17048
|
-
function
|
|
17053
|
+
function w(V) {
|
|
17049
17054
|
const se = this.stack[this.stack.length - 1];
|
|
17050
17055
|
if (!se.depth) {
|
|
17051
17056
|
const ve = this.sliceSerialize(V).length;
|
|
@@ -17558,9 +17563,9 @@ const Dx = function(t) {
|
|
|
17558
17563
|
if (u) {
|
|
17559
17564
|
const d = u.index || 0, f = { path: i.path, offset: d }, p = { path: i.path, offset: d + u[0].length }, m = y.range(e, f, p), g = y.after(e, i), h = y.range(e, i, g);
|
|
17560
17565
|
if (y.string(e, h).match(/^(\s|\.|,|\?|!|:|;|'|"|`|$)/)) {
|
|
17561
|
-
const
|
|
17566
|
+
const x = u[1];
|
|
17562
17567
|
let E = [];
|
|
17563
|
-
n && (E = await n({ name:
|
|
17568
|
+
n && (E = await n({ name: x })), r([
|
|
17564
17569
|
{
|
|
17565
17570
|
type: "mentionPopover",
|
|
17566
17571
|
value: {
|
|
@@ -17786,7 +17791,7 @@ const Bx = () => {
|
|
|
17786
17791
|
h.stopPropagation(), h.preventDefault(), r();
|
|
17787
17792
|
},
|
|
17788
17793
|
onKeyDown: (h) => {
|
|
17789
|
-
var D, b,
|
|
17794
|
+
var D, b, x, E;
|
|
17790
17795
|
if (h.key !== "Tab")
|
|
17791
17796
|
switch (h.key) {
|
|
17792
17797
|
case "Enter":
|
|
@@ -17796,14 +17801,14 @@ const Bx = () => {
|
|
|
17796
17801
|
case "ArrowRight":
|
|
17797
17802
|
h.stopPropagation(), h.preventDefault();
|
|
17798
17803
|
const _ = h.currentTarget.closest("li");
|
|
17799
|
-
let
|
|
17804
|
+
let w = _ == null ? void 0 : _.nextElementSibling;
|
|
17800
17805
|
if (h.key === "ArrowLeft") {
|
|
17801
17806
|
const z = _ == null ? void 0 : _.previousElementSibling;
|
|
17802
|
-
z ?
|
|
17807
|
+
z ? w = z : w = (D = _ == null ? void 0 : _.parentElement) == null ? void 0 : D.lastElementChild;
|
|
17803
17808
|
} else
|
|
17804
|
-
|
|
17805
|
-
const F =
|
|
17806
|
-
F && (f(F), (
|
|
17809
|
+
w || (w = (b = _ == null ? void 0 : _.parentElement) == null ? void 0 : b.firstElementChild);
|
|
17810
|
+
const F = w == null ? void 0 : w.className.split(" ")[0];
|
|
17811
|
+
F && (f(F), (x = w == null ? void 0 : w.querySelector("button")) == null || x.focus());
|
|
17807
17812
|
break;
|
|
17808
17813
|
default:
|
|
17809
17814
|
const T = h.currentTarget.closest("fieldset");
|
|
@@ -17961,29 +17966,29 @@ let Ii = null;
|
|
|
17961
17966
|
const jx = () => {
|
|
17962
17967
|
const e = ce(), t = "richTextEditor_link_", { id: n, showLinkEditor: r, isInOverlay: a, dispatch: i, reportError: s } = Ze(nn), o = jn(), l = Ky(o), u = (l == null ? void 0 : l.text) || wx(o), [d, f] = fe(_r(o)), p = Ud(o, "link-editor", `${n}-link`), m = Ae(null);
|
|
17963
17968
|
me(() => {
|
|
17964
|
-
var
|
|
17965
|
-
!d && r && ((
|
|
17969
|
+
var x;
|
|
17970
|
+
!d && r && ((x = m.current) == null || x.focus());
|
|
17966
17971
|
}, [d]), me(() => {
|
|
17967
17972
|
Ii && clearTimeout(Ii), Ii = setTimeout(() => {
|
|
17968
17973
|
f(_r(o));
|
|
17969
17974
|
}, 500);
|
|
17970
17975
|
}, [o.selection]);
|
|
17971
|
-
const g = [], h = ["open", "edit", "remove"].map((
|
|
17976
|
+
const g = [], h = ["open", "edit", "remove"].map((x) => {
|
|
17972
17977
|
const E = {
|
|
17973
17978
|
variant: "tertiary",
|
|
17974
17979
|
size: "small",
|
|
17975
17980
|
children: e.formatMessage(
|
|
17976
|
-
{ id: `${t}${
|
|
17981
|
+
{ id: `${t}${x}` },
|
|
17977
17982
|
{ link: l == null ? void 0 : l.pretty }
|
|
17978
17983
|
)
|
|
17979
17984
|
};
|
|
17980
|
-
switch (g.push({ className:
|
|
17985
|
+
switch (g.push({ className: x }), x) {
|
|
17981
17986
|
case "open":
|
|
17982
17987
|
E.href = (l == null ? void 0 : l.full) || "", E.onClick = (_) => {
|
|
17983
17988
|
_.preventDefault(), _.stopPropagation(), window.open((l == null ? void 0 : l.full) || "", "_blank"), i([{ type: "showLinkEditor", value: !1 }]);
|
|
17984
17989
|
}, E.children = /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
17985
17990
|
E.children,
|
|
17986
|
-
/* @__PURE__ */ c.jsx(We, { children: e.formatMessage({ id: `${t}${
|
|
17991
|
+
/* @__PURE__ */ c.jsx(We, { children: e.formatMessage({ id: `${t}${x}_text` }) })
|
|
17987
17992
|
] });
|
|
17988
17993
|
break;
|
|
17989
17994
|
case "edit":
|
|
@@ -18029,8 +18034,8 @@ const jx = () => {
|
|
|
18029
18034
|
});
|
|
18030
18035
|
let b = document.body;
|
|
18031
18036
|
if (a !== !1) {
|
|
18032
|
-
const
|
|
18033
|
-
|
|
18037
|
+
const x = document.getElementById(`${a}-overlay`);
|
|
18038
|
+
x && (b = x);
|
|
18034
18039
|
}
|
|
18035
18040
|
return /* @__PURE__ */ c.jsx(zs, { parent: b, children: /* @__PURE__ */ c.jsx(
|
|
18036
18041
|
rr,
|
|
@@ -18048,8 +18053,8 @@ const jx = () => {
|
|
|
18048
18053
|
callbacks: {
|
|
18049
18054
|
onOpen: () => {
|
|
18050
18055
|
setTimeout(() => {
|
|
18051
|
-
var
|
|
18052
|
-
return (
|
|
18056
|
+
var x;
|
|
18057
|
+
return (x = m.current) == null ? void 0 : x.focus();
|
|
18053
18058
|
});
|
|
18054
18059
|
}
|
|
18055
18060
|
},
|
|
@@ -18061,13 +18066,13 @@ const jx = () => {
|
|
|
18061
18066
|
className: Y({ "show-labels": u }),
|
|
18062
18067
|
meta: { shouldReset: !0, showRequiredLabels: !1 },
|
|
18063
18068
|
functions: {
|
|
18064
|
-
onSuccess: async (
|
|
18069
|
+
onSuccess: async (x) => {
|
|
18065
18070
|
setTimeout(() => {
|
|
18066
18071
|
const E = [
|
|
18067
18072
|
{ type: "showLinkEditor", value: !1 }
|
|
18068
18073
|
];
|
|
18069
|
-
if (
|
|
18070
|
-
const { full: _ } = Tc(
|
|
18074
|
+
if (x.url) {
|
|
18075
|
+
const { full: _ } = Tc(x.url);
|
|
18071
18076
|
l != null && l.full ? Sx(o, _, n, s) : Tx(o, _, n, s), E.push({ type: "lastAnchor", value: null });
|
|
18072
18077
|
}
|
|
18073
18078
|
i(E);
|
|
@@ -18203,11 +18208,13 @@ const Kx = ({
|
|
|
18203
18208
|
maxLength: r = 0,
|
|
18204
18209
|
meta: a,
|
|
18205
18210
|
functions: i,
|
|
18206
|
-
autoFocus: s
|
|
18211
|
+
autoFocus: s,
|
|
18207
18212
|
data: o,
|
|
18208
18213
|
...l
|
|
18209
18214
|
}) => {
|
|
18210
|
-
const u = ce(), d = Ch()
|
|
18215
|
+
const u = ce(), d = Ch();
|
|
18216
|
+
typeof s > "u" && (s = !0);
|
|
18217
|
+
const { isInOverlay: f = !1 } = a || {}, {
|
|
18211
18218
|
listMembers: p,
|
|
18212
18219
|
onChange: m = () => {
|
|
18213
18220
|
},
|
|
@@ -18239,10 +18246,10 @@ const Kx = ({
|
|
|
18239
18246
|
lastKey: null,
|
|
18240
18247
|
hasInteracted: !1,
|
|
18241
18248
|
hasLoaded: !1
|
|
18242
|
-
}, [b,
|
|
18249
|
+
}, [b, x] = nr(Ka, D), {
|
|
18243
18250
|
editorKey: E,
|
|
18244
18251
|
originalValue: _,
|
|
18245
|
-
initialValue:
|
|
18252
|
+
initialValue: w,
|
|
18246
18253
|
stringValue: F,
|
|
18247
18254
|
lastAnchor: T,
|
|
18248
18255
|
lastKey: z,
|
|
@@ -18251,7 +18258,7 @@ const Kx = ({
|
|
|
18251
18258
|
mentionPopover: I
|
|
18252
18259
|
} = b, C = (q) => {
|
|
18253
18260
|
const v = q || Oa[0];
|
|
18254
|
-
q &&
|
|
18261
|
+
q && x([{ type: "tabbableOption", value: v }]);
|
|
18255
18262
|
}, B = `rte-${e}`, j = Pe(
|
|
18256
18263
|
(q) => /* @__PURE__ */ c.jsx(Uy, { ...q }),
|
|
18257
18264
|
[]
|
|
@@ -18271,7 +18278,7 @@ const Kx = ({
|
|
|
18271
18278
|
return;
|
|
18272
18279
|
wa.lastIndex = 0;
|
|
18273
18280
|
const q = t.match(wa);
|
|
18274
|
-
!q || q.length > 1 || q[0].length !== t.length || R ||
|
|
18281
|
+
!q || q.length > 1 || q[0].length !== t.length || R || x([{ type: "originalValue", value: t }]);
|
|
18275
18282
|
}, [t]);
|
|
18276
18283
|
const Z = (q) => {
|
|
18277
18284
|
if (!O || q !== B)
|
|
@@ -18290,11 +18297,11 @@ const Kx = ({
|
|
|
18290
18297
|
};
|
|
18291
18298
|
}, []), me(() => {
|
|
18292
18299
|
if (O.children.length > 0 && !L) {
|
|
18293
|
-
if (
|
|
18300
|
+
if (x([{ type: "hasLoaded", value: !0 }]), !s)
|
|
18294
18301
|
return;
|
|
18295
18302
|
Z(B);
|
|
18296
18303
|
}
|
|
18297
|
-
}, [O.children.length,
|
|
18304
|
+
}, [O.children.length, w]), me(() => {
|
|
18298
18305
|
_ && (async () => {
|
|
18299
18306
|
let v = wn(_);
|
|
18300
18307
|
v.includes("<") && (v = new ka().turndown(v)), o && o.mentions && (v = await Fc({
|
|
@@ -18303,11 +18310,11 @@ const Kx = ({
|
|
|
18303
18310
|
mentions: o.mentions,
|
|
18304
18311
|
listMembers: p || (() => Promise.resolve([]))
|
|
18305
18312
|
})), xx(v, (W) => {
|
|
18306
|
-
|
|
18313
|
+
x([
|
|
18307
18314
|
{ type: "initialValue", value: W },
|
|
18308
18315
|
{ type: "editorKey", value: _.toString() }
|
|
18309
18316
|
]), setTimeout(() => {
|
|
18310
|
-
|
|
18317
|
+
x([{ type: "stringValue", value: $l(O) }]);
|
|
18311
18318
|
}, 150);
|
|
18312
18319
|
});
|
|
18313
18320
|
})();
|
|
@@ -18319,15 +18326,15 @@ const Kx = ({
|
|
|
18319
18326
|
focus: y.end(O, [])
|
|
18320
18327
|
}
|
|
18321
18328
|
}), Q.deselect(O), O.children.length !== 0 && Q.unwrapNodes(O, { at: [0] }), Q.insertNodes(O, h, { at: [0] });
|
|
18322
|
-
}),
|
|
18329
|
+
}), x([
|
|
18323
18330
|
{ type: "initialValue", value: h },
|
|
18324
18331
|
{ type: "lastAnchor", value: null }
|
|
18325
18332
|
]));
|
|
18326
18333
|
}, [t]);
|
|
18327
18334
|
const ae = wc(() => {
|
|
18328
|
-
Ex(O, I.show, p,
|
|
18335
|
+
Ex(O, I.show, p, x);
|
|
18329
18336
|
}, 100);
|
|
18330
|
-
return
|
|
18337
|
+
return w ? /* @__PURE__ */ c.jsx("div", { id: B, className: "rich-text-editor", children: /* @__PURE__ */ c.jsxs(
|
|
18331
18338
|
nn.Provider,
|
|
18332
18339
|
{
|
|
18333
18340
|
value: {
|
|
@@ -18335,7 +18342,7 @@ const Kx = ({
|
|
|
18335
18342
|
id: B,
|
|
18336
18343
|
isInOverlay: f,
|
|
18337
18344
|
setFocus: C,
|
|
18338
|
-
dispatch:
|
|
18345
|
+
dispatch: x,
|
|
18339
18346
|
reportError: g
|
|
18340
18347
|
},
|
|
18341
18348
|
children: [
|
|
@@ -18343,11 +18350,11 @@ const Kx = ({
|
|
|
18343
18350
|
zy,
|
|
18344
18351
|
{
|
|
18345
18352
|
editor: O,
|
|
18346
|
-
initialValue:
|
|
18353
|
+
initialValue: w,
|
|
18347
18354
|
onChange: (q) => {
|
|
18348
18355
|
if (O.operations.some((W) => W.type !== "set_selection")) {
|
|
18349
18356
|
const W = kx(q);
|
|
18350
|
-
m(W),
|
|
18357
|
+
m(W), x([{ type: "stringValue", value: $l(O) }]), R || x([{ type: "hasInteracted", value: !0 }]), ae(), d && console.log({ serialized: W, json: q });
|
|
18351
18358
|
}
|
|
18352
18359
|
},
|
|
18353
18360
|
...l,
|
|
@@ -18363,7 +18370,7 @@ const Kx = ({
|
|
|
18363
18370
|
tabIndex: 0,
|
|
18364
18371
|
onKeyDown: (q) => {
|
|
18365
18372
|
if (q.key === "Enter") {
|
|
18366
|
-
I.show && (q.preventDefault(), q.stopPropagation(), uf(O, I,
|
|
18373
|
+
I.show && (q.preventDefault(), q.stopPropagation(), uf(O, I, x, B));
|
|
18367
18374
|
const { selection: v } = O;
|
|
18368
18375
|
if (v) {
|
|
18369
18376
|
const W = U.isCollapsed(v), [te, k] = y.node(O, v, { depth: 1 });
|
|
@@ -18392,7 +18399,7 @@ const Kx = ({
|
|
|
18392
18399
|
}
|
|
18393
18400
|
} else if (q.key === "Escape") {
|
|
18394
18401
|
if (I.show) {
|
|
18395
|
-
q.preventDefault(), q.stopPropagation(),
|
|
18402
|
+
q.preventDefault(), q.stopPropagation(), x([
|
|
18396
18403
|
{ type: "mentionPopover", value: { ...I, show: !1 } }
|
|
18397
18404
|
]);
|
|
18398
18405
|
return;
|
|
@@ -18401,17 +18408,17 @@ const Kx = ({
|
|
|
18401
18408
|
q.preventDefault(), q.stopPropagation();
|
|
18402
18409
|
const { selectedUser: v, possibleUsers: W } = I;
|
|
18403
18410
|
let te = q.key === "ArrowUp" ? v - 1 : v + 1;
|
|
18404
|
-
te < 0 && (te = W.length - 1), te >= W.length && (te = 0),
|
|
18411
|
+
te < 0 && (te = W.length - 1), te >= W.length && (te = 0), x([
|
|
18405
18412
|
{
|
|
18406
18413
|
type: "mentionPopover",
|
|
18407
18414
|
value: { ...I, selectedUser: te }
|
|
18408
18415
|
}
|
|
18409
18416
|
]);
|
|
18410
18417
|
}
|
|
18411
|
-
|
|
18418
|
+
x([{ type: "lastKey", value: q.key }]), Cx(q, O, x, g);
|
|
18412
18419
|
},
|
|
18413
18420
|
onBlur: () => {
|
|
18414
|
-
O.selection &&
|
|
18421
|
+
O.selection && x([{ type: "lastAnchor", value: O.selection.anchor }]);
|
|
18415
18422
|
},
|
|
18416
18423
|
onFocus: () => {
|
|
18417
18424
|
if (T) {
|
|
@@ -18623,13 +18630,13 @@ const Yx = ({
|
|
|
18623
18630
|
"SUCCESS"
|
|
18624
18631
|
/* SUCCESS */
|
|
18625
18632
|
);
|
|
18626
|
-
} catch (
|
|
18633
|
+
} catch (w) {
|
|
18627
18634
|
h(
|
|
18628
18635
|
"ERROR"
|
|
18629
18636
|
/* ERROR */
|
|
18630
|
-
), o(
|
|
18637
|
+
), o(w);
|
|
18631
18638
|
}
|
|
18632
|
-
},
|
|
18639
|
+
}, x = (_) => {
|
|
18633
18640
|
_.preventDefault(), h(
|
|
18634
18641
|
"NOT_SUBMITTED"
|
|
18635
18642
|
/* NOT_SUBMITTED */
|
|
@@ -18647,9 +18654,9 @@ const Yx = ({
|
|
|
18647
18654
|
] }) }),
|
|
18648
18655
|
/* @__PURE__ */ c.jsx(fn, {}),
|
|
18649
18656
|
/* @__PURE__ */ c.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
18650
|
-
/* @__PURE__ */ c.jsx(je, { variant: "secondary", onClick:
|
|
18657
|
+
/* @__PURE__ */ c.jsx(je, { variant: "secondary", onClick: x, children: D({ id: "inviteForm_ctaSendMoreInvites" }) }),
|
|
18651
18658
|
/* @__PURE__ */ c.jsx(je, { onClick: E, children: D({ id: "inviteForm_ctaDone" }) })
|
|
18652
|
-
] }) : /* @__PURE__ */ c.jsx(je, { onClick:
|
|
18659
|
+
] }) : /* @__PURE__ */ c.jsx(je, { onClick: x, children: D({ id: "inviteForm_ctaTryAgain" }) }) })
|
|
18653
18660
|
] }) : /* @__PURE__ */ c.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ c.jsxs(
|
|
18654
18661
|
"form",
|
|
18655
18662
|
{
|
|
@@ -18671,7 +18678,7 @@ const Yx = ({
|
|
|
18671
18678
|
f(_), m(!_.length);
|
|
18672
18679
|
},
|
|
18673
18680
|
autoFocus: !1,
|
|
18674
|
-
getLabel: (_,
|
|
18681
|
+
getLabel: (_, w, F) => /* @__PURE__ */ c.jsxs("div", { className: "email text-medium", children: [
|
|
18675
18682
|
/* @__PURE__ */ c.jsx("div", { "data-tag-item": !0, children: _ }),
|
|
18676
18683
|
/* @__PURE__ */ c.jsx(
|
|
18677
18684
|
je,
|
|
@@ -18680,13 +18687,13 @@ const Yx = ({
|
|
|
18680
18687
|
size: "small",
|
|
18681
18688
|
icon: { icon: "close" },
|
|
18682
18689
|
onClick: () => {
|
|
18683
|
-
F(
|
|
18690
|
+
F(w), m(!d.length);
|
|
18684
18691
|
},
|
|
18685
18692
|
className: "remove-email-button",
|
|
18686
18693
|
screenreaderText: D({ id: "overlay_close" })
|
|
18687
18694
|
}
|
|
18688
18695
|
)
|
|
18689
|
-
] },
|
|
18696
|
+
] }, w)
|
|
18690
18697
|
}
|
|
18691
18698
|
)
|
|
18692
18699
|
] }),
|
|
@@ -19124,10 +19131,10 @@ const tw = {
|
|
|
19124
19131
|
successMessage: m
|
|
19125
19132
|
}, [h, D] = nr(Ka, tw), {
|
|
19126
19133
|
validFields: b,
|
|
19127
|
-
emailDetails:
|
|
19134
|
+
emailDetails: x,
|
|
19128
19135
|
shouldManuallyApprove: E,
|
|
19129
19136
|
shouldDisableButton: _,
|
|
19130
|
-
showSuccessMessage:
|
|
19137
|
+
showSuccessMessage: w,
|
|
19131
19138
|
showError: F
|
|
19132
19139
|
} = h, [T, z] = bc([
|
|
19133
19140
|
"signup-this-session",
|
|
@@ -19146,11 +19153,11 @@ const tw = {
|
|
|
19146
19153
|
}, [E]), me(() => {
|
|
19147
19154
|
T["signup-this-session"] && D([{ type: "showSuccessMessage", value: !0 }]);
|
|
19148
19155
|
}, [T]), me(() => {
|
|
19149
|
-
|
|
19156
|
+
w && T["functional-cookie-consent"] && z("signup-this-session", "true", {
|
|
19150
19157
|
path: "/",
|
|
19151
19158
|
maxAge: 3600
|
|
19152
19159
|
});
|
|
19153
|
-
}, [
|
|
19160
|
+
}, [w]);
|
|
19154
19161
|
const L = zt(() => Xx({
|
|
19155
19162
|
placeholders: n,
|
|
19156
19163
|
labels: t,
|
|
@@ -19161,8 +19168,8 @@ const tw = {
|
|
|
19161
19168
|
dispatch: D,
|
|
19162
19169
|
dataToSubmit: s,
|
|
19163
19170
|
intl: l
|
|
19164
|
-
}), [s, r, l, R, g, h]), I = _ ? !0 : E ? !Object.values(b).every((C) => C === !0) : !b.name || !b.email || ["exists", "pending", "verify"].includes(
|
|
19165
|
-
return g.successMessage &&
|
|
19171
|
+
}), [s, r, l, R, g, h]), I = _ ? !0 : E ? !Object.values(b).every((C) => C === !0) : !b.name || !b.email || ["exists", "pending", "verify"].includes(x.boxType);
|
|
19172
|
+
return g.successMessage && w ? /* @__PURE__ */ c.jsx(ew, { className: e }) : /* @__PURE__ */ c.jsxs(
|
|
19166
19173
|
"fieldset",
|
|
19167
19174
|
{
|
|
19168
19175
|
className: Y("signup-form-fieldset", e),
|
|
@@ -19894,8 +19901,8 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
19894
19901
|
if (o.href) {
|
|
19895
19902
|
let E = o.gtmType || `${e}-click`;
|
|
19896
19903
|
if (E.includes(".")) {
|
|
19897
|
-
const _ = E.split("."),
|
|
19898
|
-
E = `${
|
|
19904
|
+
const _ = E.split("."), w = _[_.length - 2];
|
|
19905
|
+
E = `${w === "topics" ? `${w}-` : ""}${_[_.length - 1]}`;
|
|
19899
19906
|
}
|
|
19900
19907
|
p = {
|
|
19901
19908
|
href: o.href
|
|
@@ -19912,10 +19919,10 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
19912
19919
|
});
|
|
19913
19920
|
}
|
|
19914
19921
|
const m = o.order && o.order[0] && o[o.order[0]], g = m && o[o.order[0]].order, h = p && window.location.pathname === o.href;
|
|
19915
|
-
let D = {}, b = {},
|
|
19922
|
+
let D = {}, b = {}, x = {};
|
|
19916
19923
|
if (h && (D = { ...D, "aria-current": "page" }), m) {
|
|
19917
19924
|
const E = o.menuId || e, _ = {
|
|
19918
|
-
onClick: (
|
|
19925
|
+
onClick: (w) => ze.events.onClick(w, { id: E, callback: a, isOpen: r[E] }),
|
|
19919
19926
|
onFocus: () => ze.events.onFocus({ id: E }),
|
|
19920
19927
|
onBlur: () => ze.events.onBlur({ id: E, callback: a }),
|
|
19921
19928
|
onMouseLeave: () => ze.events.onBlur({ id: E, callback: a }),
|
|
@@ -19924,11 +19931,11 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
19924
19931
|
b = {
|
|
19925
19932
|
..._,
|
|
19926
19933
|
id: E === xt.SITE ? xt.SITE : xt.ACCOUNT
|
|
19927
|
-
}, n && (g && (
|
|
19934
|
+
}, n && (g && (x = {
|
|
19928
19935
|
..._,
|
|
19929
19936
|
className: "navigation-button",
|
|
19930
|
-
onKeyPress: (
|
|
19931
|
-
|
|
19937
|
+
onKeyPress: (w) => {
|
|
19938
|
+
w.key === "Enter" && ze.events.onClick(w, { id: E, callback: a, isOpen: r[E] });
|
|
19932
19939
|
},
|
|
19933
19940
|
"aria-haspopup": !0,
|
|
19934
19941
|
"aria-expanded": r[E],
|
|
@@ -19952,7 +19959,7 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
19952
19959
|
d ? je : "a",
|
|
19953
19960
|
p,
|
|
19954
19961
|
s.formatMessage({ id: f })
|
|
19955
|
-
) : n && o.order && g ? /* @__PURE__ */ c.jsxs("button", { ...
|
|
19962
|
+
) : n && o.order && g ? /* @__PURE__ */ c.jsxs("button", { ...x, children: [
|
|
19956
19963
|
s.formatMessage({ id: f }),
|
|
19957
19964
|
/* @__PURE__ */ c.jsx(We, { children: s.formatMessage({
|
|
19958
19965
|
id: `header_menu_${r[xt.SITE] ? "hide" : "show"}`
|
|
@@ -19976,13 +19983,13 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
19976
19983
|
}),
|
|
19977
19984
|
children: [
|
|
19978
19985
|
s.formatMessage({ id: `${f}_${E}` }),
|
|
19979
|
-
/* @__PURE__ */ c.jsx("ul", { children: o[E].order.map((
|
|
19986
|
+
/* @__PURE__ */ c.jsx("ul", { children: o[E].order.map((w) => /* @__PURE__ */ c.jsx(
|
|
19980
19987
|
Ra,
|
|
19981
19988
|
{
|
|
19982
|
-
id: `${e}.${E}.${
|
|
19989
|
+
id: `${e}.${E}.${w}`,
|
|
19983
19990
|
..._
|
|
19984
19991
|
},
|
|
19985
|
-
|
|
19992
|
+
w
|
|
19986
19993
|
)) })
|
|
19987
19994
|
]
|
|
19988
19995
|
},
|
|
@@ -20040,8 +20047,8 @@ const vf = ({ showNavigation: e = !0 }) => {
|
|
|
20040
20047
|
}
|
|
20041
20048
|
}
|
|
20042
20049
|
});
|
|
20043
|
-
const p = (b,
|
|
20044
|
-
ze.handleMenus({ id: b, value:
|
|
20050
|
+
const p = (b, x, E = !1) => {
|
|
20051
|
+
ze.handleMenus({ id: b, value: x, menus: f.current.menus, dispatch: o, forceHandle: E });
|
|
20045
20052
|
}, m = Ae(null), g = (b) => {
|
|
20046
20053
|
b.key === "Escape" && [
|
|
20047
20054
|
"site-navigation",
|
|
@@ -20049,16 +20056,16 @@ const vf = ({ showNavigation: e = !0 }) => {
|
|
|
20049
20056
|
"account-navigation"
|
|
20050
20057
|
/* ACCOUNT */
|
|
20051
20058
|
].forEach(
|
|
20052
|
-
(
|
|
20053
|
-
f.current.menus[
|
|
20059
|
+
(x) => {
|
|
20060
|
+
f.current.menus[x] && p(x, !1, !0);
|
|
20054
20061
|
}
|
|
20055
20062
|
);
|
|
20056
20063
|
};
|
|
20057
20064
|
me(() => {
|
|
20058
20065
|
var b;
|
|
20059
20066
|
return (b = document.getElementById("header")) == null || b.addEventListener("keydown", g), () => {
|
|
20060
|
-
var
|
|
20061
|
-
(
|
|
20067
|
+
var x;
|
|
20068
|
+
(x = document.getElementById("header")) == null || x.removeEventListener("keydown", g);
|
|
20062
20069
|
};
|
|
20063
20070
|
}, []), Fr(() => {
|
|
20064
20071
|
u[
|
|
@@ -20316,17 +20323,17 @@ const iw = () => {
|
|
|
20316
20323
|
me(() => (window.scrollTo(0, 0), document.addEventListener("ariaLive", b), () => {
|
|
20317
20324
|
document.removeEventListener("ariaLive", b);
|
|
20318
20325
|
}), [g]);
|
|
20319
|
-
const
|
|
20326
|
+
const x = ma(e, { locale: o }), E = ma(t, {
|
|
20320
20327
|
locale: o
|
|
20321
20328
|
}), _ = ma(n, {
|
|
20322
20329
|
locale: o
|
|
20323
|
-
}),
|
|
20324
|
-
return d !== "default" && (
|
|
20330
|
+
}), w = {};
|
|
20331
|
+
return d !== "default" && (w[d] = !0), f !== "default" && (w[f] = !0), p !== "default" && (w[p] = !0), /* @__PURE__ */ c.jsx(ih, { onError: r, fallback: /* @__PURE__ */ c.jsx(iw, {}), children: /* @__PURE__ */ c.jsxs(Yf, { fallback: null, children: [
|
|
20325
20332
|
/* @__PURE__ */ c.jsxs(
|
|
20326
20333
|
"div",
|
|
20327
20334
|
{
|
|
20328
20335
|
id: "wrapper",
|
|
20329
|
-
className: Y(s,
|
|
20336
|
+
className: Y(s, w, { "has-footer": u }),
|
|
20330
20337
|
children: [
|
|
20331
20338
|
/* @__PURE__ */ c.jsx(vf, { showNavigation: l }),
|
|
20332
20339
|
/* @__PURE__ */ c.jsxs("main", { id: "content-wrapper", children: [
|
|
@@ -20341,7 +20348,7 @@ const iw = () => {
|
|
|
20341
20348
|
),
|
|
20342
20349
|
re.createElement(d === "bold" ? Mf : "div", {
|
|
20343
20350
|
id: "content",
|
|
20344
|
-
children:
|
|
20351
|
+
children: x,
|
|
20345
20352
|
className: Y({ "large-modal": m === "large" })
|
|
20346
20353
|
})
|
|
20347
20354
|
] }),
|
|
@@ -20517,10 +20524,10 @@ const nt = "discussion_form_", ni = ({
|
|
|
20517
20524
|
isLoading: h = !1,
|
|
20518
20525
|
isInWrapper: D = !1,
|
|
20519
20526
|
isInOverlay: b = !1,
|
|
20520
|
-
isAutoFocused:
|
|
20527
|
+
isAutoFocused: x = !1,
|
|
20521
20528
|
isEditing: E = !1,
|
|
20522
20529
|
hasTitleField: _ = !1,
|
|
20523
|
-
isPrepopulated:
|
|
20530
|
+
isPrepopulated: w = !1,
|
|
20524
20531
|
showTitle: F = !1,
|
|
20525
20532
|
showGuidelines: T = !0,
|
|
20526
20533
|
showDivider: z = !1,
|
|
@@ -20540,11 +20547,11 @@ const nt = "discussion_form_", ni = ({
|
|
|
20540
20547
|
}
|
|
20541
20548
|
} = l, [O, Z] = fe({
|
|
20542
20549
|
title: _ && _.text || "",
|
|
20543
|
-
body: E && E.text ||
|
|
20550
|
+
body: E && E.text || w && w.text || ""
|
|
20544
20551
|
}), [ae, q] = fe(o.error || !1), [v, W] = fe(!1);
|
|
20545
20552
|
if (me(() => {
|
|
20546
|
-
!E &&
|
|
20547
|
-
}, [
|
|
20553
|
+
!E && w && w !== O.body && Z({ ...O, body: w.text || "" });
|
|
20554
|
+
}, [w]), h)
|
|
20548
20555
|
return /* @__PURE__ */ c.jsx(
|
|
20549
20556
|
Nt,
|
|
20550
20557
|
{
|
|
@@ -20660,7 +20667,7 @@ const nt = "discussion_form_", ni = ({
|
|
|
20660
20667
|
meta: { isInOverlay: b },
|
|
20661
20668
|
functions: { onChange: te, listMembers: j },
|
|
20662
20669
|
data: u,
|
|
20663
|
-
autoFocus: E !== !1 ||
|
|
20670
|
+
autoFocus: E !== !1 || x && !_,
|
|
20664
20671
|
"aria-invalid": !!ae,
|
|
20665
20672
|
"aria-errormessage": "error-message"
|
|
20666
20673
|
}
|
|
@@ -20674,6 +20681,8 @@ const nt = "discussion_form_", ni = ({
|
|
|
20674
20681
|
id: "title",
|
|
20675
20682
|
type: "text",
|
|
20676
20683
|
value: _.text,
|
|
20684
|
+
limit: 250,
|
|
20685
|
+
autoFocus: x,
|
|
20677
20686
|
label: f.formatMessage({ id: `${nt}titleField_label` }),
|
|
20678
20687
|
functions: {
|
|
20679
20688
|
onChange: (be) => {
|
|
@@ -20889,7 +20898,7 @@ const pw = ({
|
|
|
20889
20898
|
me(() => {
|
|
20890
20899
|
p([{ type: "userLikedContent", value: a }]);
|
|
20891
20900
|
}, [a]);
|
|
20892
|
-
const
|
|
20901
|
+
const x = zt(
|
|
20893
20902
|
() => mw(n, Zi),
|
|
20894
20903
|
[n]
|
|
20895
20904
|
), E = (T) => {
|
|
@@ -20923,7 +20932,7 @@ const pw = ({
|
|
|
20923
20932
|
} finally {
|
|
20924
20933
|
p([{ type: "ignoreInteractions", value: !1 }]);
|
|
20925
20934
|
}
|
|
20926
|
-
},
|
|
20935
|
+
}, w = () => {
|
|
20927
20936
|
Yi = setTimeout(() => {
|
|
20928
20937
|
p([{ type: "showLikers", value: !1 }]);
|
|
20929
20938
|
}, 500);
|
|
@@ -20941,7 +20950,7 @@ const pw = ({
|
|
|
20941
20950
|
F(), p([{ type: "showLikers", value: !0 }]);
|
|
20942
20951
|
},
|
|
20943
20952
|
onMouseLeave: () => {
|
|
20944
|
-
|
|
20953
|
+
w();
|
|
20945
20954
|
}
|
|
20946
20955
|
},
|
|
20947
20956
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -20989,7 +20998,7 @@ const pw = ({
|
|
|
20989
20998
|
onFocus: () => {
|
|
20990
20999
|
F();
|
|
20991
21000
|
},
|
|
20992
|
-
onBlur: () =>
|
|
21001
|
+
onBlur: () => w,
|
|
20993
21002
|
onClick: (T) => {
|
|
20994
21003
|
var R;
|
|
20995
21004
|
T.preventDefault(), T.stopPropagation(), F(), p([{ type: "showLikers", value: !0 }]);
|
|
@@ -21004,7 +21013,7 @@ const pw = ({
|
|
|
21004
21013
|
}
|
|
21005
21014
|
},
|
|
21006
21015
|
onKeyDown: (T) => {
|
|
21007
|
-
T.key === "Escape" && (T.preventDefault(), T.stopPropagation(),
|
|
21016
|
+
T.key === "Escape" && (T.preventDefault(), T.stopPropagation(), w());
|
|
21008
21017
|
},
|
|
21009
21018
|
"aria-expanded": D,
|
|
21010
21019
|
"aria-controls": `likes-tooltip-${i.slug}`,
|
|
@@ -21021,7 +21030,7 @@ const pw = ({
|
|
|
21021
21030
|
isOpen: D,
|
|
21022
21031
|
isLoading: n.length === 0,
|
|
21023
21032
|
children: n.length && /* @__PURE__ */ c.jsxs("ul", { children: [
|
|
21024
|
-
|
|
21033
|
+
x.map((T, z) => {
|
|
21025
21034
|
if (typeof T == "string" || !T.name)
|
|
21026
21035
|
return null;
|
|
21027
21036
|
const R = {};
|
|
@@ -21156,12 +21165,12 @@ const bw = 3e3, yw = ({ url: e }) => {
|
|
|
21156
21165
|
const g = ce(), h = Ze(en), D = Ze(yo), {
|
|
21157
21166
|
createContent: b = async () => {
|
|
21158
21167
|
},
|
|
21159
|
-
deleteContent:
|
|
21168
|
+
deleteContent: x = async () => {
|
|
21160
21169
|
},
|
|
21161
21170
|
updateContent: E = async () => {
|
|
21162
21171
|
}
|
|
21163
21172
|
} = s.content || {}, { createLike: _ = () => {
|
|
21164
|
-
}, deleteLike:
|
|
21173
|
+
}, deleteLike: w = () => {
|
|
21165
21174
|
} } = s.likes || {}, { openComments: F = () => {
|
|
21166
21175
|
} } = s.comments || {}, { listMembers: T = () => Promise.resolve([]) } = s.mentions || {}, {
|
|
21167
21176
|
author: z,
|
|
@@ -21245,7 +21254,7 @@ const bw = 3e3, yw = ({ url: e }) => {
|
|
|
21245
21254
|
}, G = async () => {
|
|
21246
21255
|
k(!1);
|
|
21247
21256
|
try {
|
|
21248
|
-
await
|
|
21257
|
+
await x(Vl(t.slugs));
|
|
21249
21258
|
} catch {
|
|
21250
21259
|
H("delete-error");
|
|
21251
21260
|
}
|
|
@@ -21417,7 +21426,7 @@ const bw = 3e3, yw = ({ url: e }) => {
|
|
|
21417
21426
|
peopleWhoLiked: t.peopleWhoLiked,
|
|
21418
21427
|
functions: {
|
|
21419
21428
|
createLike: _,
|
|
21420
|
-
deleteLike:
|
|
21429
|
+
deleteLike: w
|
|
21421
21430
|
}
|
|
21422
21431
|
}
|
|
21423
21432
|
),
|
|
@@ -22114,7 +22123,7 @@ const o_ = ({
|
|
|
22114
22123
|
} = Nw({
|
|
22115
22124
|
queryKey: [e, t, "activities"],
|
|
22116
22125
|
queryFns: r
|
|
22117
|
-
}), [
|
|
22126
|
+
}), [x, E] = fe(null), _ = () => {
|
|
22118
22127
|
E(l.length), d();
|
|
22119
22128
|
};
|
|
22120
22129
|
return Cf(), u ? /* @__PURE__ */ c.jsx(Sn, { variant: "error", text: u.message }) : /* @__PURE__ */ c.jsxs("section", { children: [
|
|
@@ -22144,7 +22153,7 @@ const o_ = ({
|
|
|
22144
22153
|
}
|
|
22145
22154
|
}
|
|
22146
22155
|
),
|
|
22147
|
-
l == null ? void 0 : l.map((
|
|
22156
|
+
l == null ? void 0 : l.map((w, F) => {
|
|
22148
22157
|
var Z, ae, q, v, W, te, k, A;
|
|
22149
22158
|
const {
|
|
22150
22159
|
id: T,
|
|
@@ -22152,22 +22161,22 @@ const o_ = ({
|
|
|
22152
22161
|
latest_reactions: R,
|
|
22153
22162
|
reaction_counts: L,
|
|
22154
22163
|
mentioned_users: I
|
|
22155
|
-
} =
|
|
22164
|
+
} = w, C = (((Z = R == null ? void 0 : R.like) == null ? void 0 : Z.length) || 0) > 0, B = (((ae = z == null ? void 0 : z.like) == null ? void 0 : ae.length) || 0) > 0, j = B ? z == null ? void 0 : z.like[0].id : "", M = C ? (q = R == null ? void 0 : R.like) == null ? void 0 : q.map(($) => {
|
|
22156
22165
|
var N, H, ee;
|
|
22157
22166
|
return {
|
|
22158
22167
|
id: (N = $ == null ? void 0 : $.user) == null ? void 0 : N.id,
|
|
22159
22168
|
name: (ee = (H = $ == null ? void 0 : $.user) == null ? void 0 : H.data) == null ? void 0 : ee.name
|
|
22160
22169
|
};
|
|
22161
|
-
}) : !1, O =
|
|
22170
|
+
}) : !1, O = w == null ? void 0 : w.actor;
|
|
22162
22171
|
return /* @__PURE__ */ c.jsx(Ar, { children: /* @__PURE__ */ c.jsx(
|
|
22163
22172
|
ri,
|
|
22164
22173
|
{
|
|
22165
22174
|
content: {
|
|
22166
22175
|
type: "post",
|
|
22167
|
-
title:
|
|
22168
|
-
body:
|
|
22176
|
+
title: w == null ? void 0 : w.title,
|
|
22177
|
+
body: w == null ? void 0 : w.content,
|
|
22169
22178
|
canLike: n,
|
|
22170
|
-
createdAt: (
|
|
22179
|
+
createdAt: (w == null ? void 0 : w.time) || "",
|
|
22171
22180
|
slugs: {
|
|
22172
22181
|
question: `${e}/${t}`,
|
|
22173
22182
|
answer: T
|
|
@@ -22212,7 +22221,7 @@ const o_ = ({
|
|
|
22212
22221
|
},
|
|
22213
22222
|
isTruncated: !0,
|
|
22214
22223
|
styling: { showShareLinkButton: !0 },
|
|
22215
|
-
setFocus: F ===
|
|
22224
|
+
setFocus: F === x
|
|
22216
22225
|
}
|
|
22217
22226
|
) }, T);
|
|
22218
22227
|
}),
|
|
@@ -22994,7 +23003,7 @@ const Xw = ({
|
|
|
22994
23003
|
}
|
|
22995
23004
|
});
|
|
22996
23005
|
Ec([f]);
|
|
22997
|
-
const [
|
|
23006
|
+
const [x, E] = fe(!0);
|
|
22998
23007
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
22999
23008
|
(l == null ? void 0 : l.length) >= o && /* @__PURE__ */ c.jsx(
|
|
23000
23009
|
je,
|
|
@@ -23003,19 +23012,19 @@ const Xw = ({
|
|
|
23003
23012
|
variant: "secondary",
|
|
23004
23013
|
size: "small",
|
|
23005
23014
|
icon: {
|
|
23006
|
-
icon: `arrow_corner-${
|
|
23015
|
+
icon: `arrow_corner-${x ? "up_left" : "down_right"}`,
|
|
23007
23016
|
position: "left"
|
|
23008
23017
|
},
|
|
23009
|
-
onClick: () => E(!
|
|
23018
|
+
onClick: () => E(!x),
|
|
23010
23019
|
children: s.formatMessage(
|
|
23011
23020
|
{
|
|
23012
|
-
id: `discussion_thread_${
|
|
23021
|
+
id: `discussion_thread_${x ? "hide" : "show"}`
|
|
23013
23022
|
},
|
|
23014
23023
|
{ count: l == null ? void 0 : l.length }
|
|
23015
23024
|
)
|
|
23016
23025
|
}
|
|
23017
23026
|
),
|
|
23018
|
-
|
|
23027
|
+
x && /* @__PURE__ */ c.jsx(
|
|
23019
23028
|
ww,
|
|
23020
23029
|
{
|
|
23021
23030
|
loadMore: { isLoading: f, hasNextPage: d, loadNextPage: () => u() },
|
|
@@ -23030,7 +23039,7 @@ const Xw = ({
|
|
|
23030
23039
|
},
|
|
23031
23040
|
functions: {
|
|
23032
23041
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23033
|
-
create: (_, { body:
|
|
23042
|
+
create: (_, { body: w }) => p({ activityId: n, replyId: r, content: w }),
|
|
23034
23043
|
listMembers: i.listMembers
|
|
23035
23044
|
},
|
|
23036
23045
|
meta: {
|
|
@@ -23043,7 +23052,7 @@ const Xw = ({
|
|
|
23043
23052
|
children: l && l.length > 0 ? l == null ? void 0 : l.map((_) => {
|
|
23044
23053
|
var ae, q, v, W, te, k, A, $, N, H, ee, X;
|
|
23045
23054
|
const {
|
|
23046
|
-
id:
|
|
23055
|
+
id: w,
|
|
23047
23056
|
own_children: F,
|
|
23048
23057
|
latest_children: T,
|
|
23049
23058
|
children_counts: z,
|
|
@@ -23065,7 +23074,7 @@ const Xw = ({
|
|
|
23065
23074
|
ri,
|
|
23066
23075
|
{
|
|
23067
23076
|
content: {
|
|
23068
|
-
id:
|
|
23077
|
+
id: w,
|
|
23069
23078
|
type: "reply",
|
|
23070
23079
|
body: Z,
|
|
23071
23080
|
canLike: a,
|
|
@@ -23096,13 +23105,13 @@ const Xw = ({
|
|
|
23096
23105
|
functions: {
|
|
23097
23106
|
content: {
|
|
23098
23107
|
createContent: () => null,
|
|
23099
|
-
deleteContent: () => h({ replyId:
|
|
23108
|
+
deleteContent: () => h({ replyId: w }),
|
|
23100
23109
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23101
|
-
updateContent: (ne, { body: ue }) => m({ replyId:
|
|
23110
|
+
updateContent: (ne, { body: ue }) => m({ replyId: w, content: ue })
|
|
23102
23111
|
},
|
|
23103
23112
|
likes: {
|
|
23104
|
-
createLike: () => g({ replyId:
|
|
23105
|
-
deleteLike: () => D({ replyId:
|
|
23113
|
+
createLike: () => g({ replyId: w }),
|
|
23114
|
+
deleteLike: () => D({ replyId: w, reactionId: C })
|
|
23106
23115
|
},
|
|
23107
23116
|
comments: {},
|
|
23108
23117
|
mentions: {
|
|
@@ -23111,7 +23120,7 @@ const Xw = ({
|
|
|
23111
23120
|
},
|
|
23112
23121
|
styling: { showShareLinkButton: !0 }
|
|
23113
23122
|
},
|
|
23114
|
-
|
|
23123
|
+
w
|
|
23115
23124
|
);
|
|
23116
23125
|
}) : null
|
|
23117
23126
|
}
|
|
@@ -23131,14 +23140,14 @@ const eC = ({
|
|
|
23131
23140
|
fetchNextPage: f,
|
|
23132
23141
|
hasNextPage: p,
|
|
23133
23142
|
isLoading: m,
|
|
23134
|
-
mutations: { create: g, edit: h, like: D, remove: b, unlike:
|
|
23143
|
+
mutations: { create: g, edit: h, like: D, remove: b, unlike: x },
|
|
23135
23144
|
user: E
|
|
23136
23145
|
} = _f({
|
|
23137
23146
|
queryKey: [e, t, n, "replies"],
|
|
23138
23147
|
queryFns: a
|
|
23139
23148
|
}), _ = () => {
|
|
23140
23149
|
F(u.length), f();
|
|
23141
|
-
}, [
|
|
23150
|
+
}, [w, F] = fe(null);
|
|
23142
23151
|
return Ec([m]), Cf(), /* @__PURE__ */ c.jsxs("section", { className: "replies-feed", children: [
|
|
23143
23152
|
/* @__PURE__ */ c.jsx(xw, { type: "comment", responses: d, isLoading: m }),
|
|
23144
23153
|
/* @__PURE__ */ c.jsx(
|
|
@@ -23228,7 +23237,7 @@ const eC = ({
|
|
|
23228
23237
|
},
|
|
23229
23238
|
likes: {
|
|
23230
23239
|
createLike: () => D({ replyId: R }),
|
|
23231
|
-
deleteLike: () =>
|
|
23240
|
+
deleteLike: () => x({ replyId: R, reactionId: O })
|
|
23232
23241
|
},
|
|
23233
23242
|
comments: {},
|
|
23234
23243
|
mentions: i
|
|
@@ -23248,7 +23257,7 @@ const eC = ({
|
|
|
23248
23257
|
}
|
|
23249
23258
|
),
|
|
23250
23259
|
styling: { showShareLinkButton: !0 },
|
|
23251
|
-
setFocus: z ===
|
|
23260
|
+
setFocus: z === w
|
|
23252
23261
|
},
|
|
23253
23262
|
R
|
|
23254
23263
|
) }, R);
|
|
@@ -23390,7 +23399,7 @@ const l_ = ({
|
|
|
23390
23399
|
text: d.formatMessage({ id: "activitySection_notFoundError" })
|
|
23391
23400
|
}
|
|
23392
23401
|
);
|
|
23393
|
-
const { own_reactions: b, latest_reactions:
|
|
23402
|
+
const { own_reactions: b, latest_reactions: x, mentioned_users: E } = f, _ = (((R = x == null ? void 0 : x.like) == null ? void 0 : R.length) || 0) > 0, w = (((L = b == null ? void 0 : b.like) == null ? void 0 : L.length) || 0) > 0, F = w ? b == null ? void 0 : b.like[0].id : "", T = _ ? (I = x == null ? void 0 : x.like) == null ? void 0 : I.map((q) => {
|
|
23394
23403
|
var v, W, te;
|
|
23395
23404
|
return {
|
|
23396
23405
|
id: (v = q == null ? void 0 : q.user) == null ? void 0 : v.id,
|
|
@@ -23424,7 +23433,7 @@ const l_ = ({
|
|
|
23424
23433
|
thumbnail: ((O = z.data) == null ? void 0 : O.thumbnail) || void 0
|
|
23425
23434
|
}
|
|
23426
23435
|
},
|
|
23427
|
-
userLiked:
|
|
23436
|
+
userLiked: w,
|
|
23428
23437
|
likes: ((Z = f == null ? void 0 : f.reaction_counts) == null ? void 0 : Z.like) || 0,
|
|
23429
23438
|
comments: ((ae = f == null ? void 0 : f.reaction_counts) == null ? void 0 : ae.reply) || 0,
|
|
23430
23439
|
peopleWhoLiked: T,
|
|
@@ -23484,28 +23493,28 @@ function sC() {
|
|
|
23484
23493
|
if (Xl)
|
|
23485
23494
|
return Me;
|
|
23486
23495
|
Xl = 1;
|
|
23487
|
-
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, a = e ? Symbol.for("react.strict_mode") : 60108, i = 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, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118,
|
|
23488
|
-
function E(
|
|
23489
|
-
if (typeof
|
|
23490
|
-
var F =
|
|
23496
|
+
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, a = e ? Symbol.for("react.strict_mode") : 60108, i = 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, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
|
|
23497
|
+
function E(w) {
|
|
23498
|
+
if (typeof w == "object" && w !== null) {
|
|
23499
|
+
var F = w.$$typeof;
|
|
23491
23500
|
switch (F) {
|
|
23492
23501
|
case t:
|
|
23493
|
-
switch (
|
|
23502
|
+
switch (w = w.type, w) {
|
|
23494
23503
|
case l:
|
|
23495
23504
|
case u:
|
|
23496
23505
|
case r:
|
|
23497
23506
|
case i:
|
|
23498
23507
|
case a:
|
|
23499
23508
|
case f:
|
|
23500
|
-
return
|
|
23509
|
+
return w;
|
|
23501
23510
|
default:
|
|
23502
|
-
switch (
|
|
23511
|
+
switch (w = w && w.$$typeof, w) {
|
|
23503
23512
|
case o:
|
|
23504
23513
|
case d:
|
|
23505
23514
|
case g:
|
|
23506
23515
|
case m:
|
|
23507
23516
|
case s:
|
|
23508
|
-
return
|
|
23517
|
+
return w;
|
|
23509
23518
|
default:
|
|
23510
23519
|
return F;
|
|
23511
23520
|
}
|
|
@@ -23515,35 +23524,35 @@ function sC() {
|
|
|
23515
23524
|
}
|
|
23516
23525
|
}
|
|
23517
23526
|
}
|
|
23518
|
-
function _(
|
|
23519
|
-
return E(
|
|
23520
|
-
}
|
|
23521
|
-
return Me.AsyncMode = l, Me.ConcurrentMode = u, Me.ContextConsumer = o, Me.ContextProvider = s, Me.Element = t, Me.ForwardRef = d, Me.Fragment = r, Me.Lazy = g, Me.Memo = m, Me.Portal = n, Me.Profiler = i, Me.StrictMode = a, Me.Suspense = f, Me.isAsyncMode = function(
|
|
23522
|
-
return _(
|
|
23523
|
-
}, Me.isConcurrentMode = _, Me.isContextConsumer = function(
|
|
23524
|
-
return E(
|
|
23525
|
-
}, Me.isContextProvider = function(
|
|
23526
|
-
return E(
|
|
23527
|
-
}, Me.isElement = function(
|
|
23528
|
-
return typeof
|
|
23529
|
-
}, Me.isForwardRef = function(
|
|
23530
|
-
return E(
|
|
23531
|
-
}, Me.isFragment = function(
|
|
23532
|
-
return E(
|
|
23533
|
-
}, Me.isLazy = function(
|
|
23534
|
-
return E(
|
|
23535
|
-
}, Me.isMemo = function(
|
|
23536
|
-
return E(
|
|
23537
|
-
}, Me.isPortal = function(
|
|
23538
|
-
return E(
|
|
23539
|
-
}, Me.isProfiler = function(
|
|
23540
|
-
return E(
|
|
23541
|
-
}, Me.isStrictMode = function(
|
|
23542
|
-
return E(
|
|
23543
|
-
}, Me.isSuspense = function(
|
|
23544
|
-
return E(
|
|
23545
|
-
}, Me.isValidElementType = function(
|
|
23546
|
-
return typeof
|
|
23527
|
+
function _(w) {
|
|
23528
|
+
return E(w) === u;
|
|
23529
|
+
}
|
|
23530
|
+
return Me.AsyncMode = l, Me.ConcurrentMode = u, Me.ContextConsumer = o, Me.ContextProvider = s, Me.Element = t, Me.ForwardRef = d, Me.Fragment = r, Me.Lazy = g, Me.Memo = m, Me.Portal = n, Me.Profiler = i, Me.StrictMode = a, Me.Suspense = f, Me.isAsyncMode = function(w) {
|
|
23531
|
+
return _(w) || E(w) === l;
|
|
23532
|
+
}, Me.isConcurrentMode = _, Me.isContextConsumer = function(w) {
|
|
23533
|
+
return E(w) === o;
|
|
23534
|
+
}, Me.isContextProvider = function(w) {
|
|
23535
|
+
return E(w) === s;
|
|
23536
|
+
}, Me.isElement = function(w) {
|
|
23537
|
+
return typeof w == "object" && w !== null && w.$$typeof === t;
|
|
23538
|
+
}, Me.isForwardRef = function(w) {
|
|
23539
|
+
return E(w) === d;
|
|
23540
|
+
}, Me.isFragment = function(w) {
|
|
23541
|
+
return E(w) === r;
|
|
23542
|
+
}, Me.isLazy = function(w) {
|
|
23543
|
+
return E(w) === g;
|
|
23544
|
+
}, Me.isMemo = function(w) {
|
|
23545
|
+
return E(w) === m;
|
|
23546
|
+
}, Me.isPortal = function(w) {
|
|
23547
|
+
return E(w) === n;
|
|
23548
|
+
}, Me.isProfiler = function(w) {
|
|
23549
|
+
return E(w) === i;
|
|
23550
|
+
}, Me.isStrictMode = function(w) {
|
|
23551
|
+
return E(w) === a;
|
|
23552
|
+
}, Me.isSuspense = function(w) {
|
|
23553
|
+
return E(w) === f;
|
|
23554
|
+
}, Me.isValidElementType = function(w) {
|
|
23555
|
+
return typeof w == "string" || typeof w == "function" || w === r || w === u || w === i || w === a || w === f || w === p || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === m || w.$$typeof === s || w.$$typeof === o || w.$$typeof === d || w.$$typeof === D || w.$$typeof === b || w.$$typeof === x || w.$$typeof === h);
|
|
23547
23556
|
}, Me.typeOf = E, Me;
|
|
23548
23557
|
}
|
|
23549
23558
|
var $e = {};
|
|
@@ -23558,10 +23567,10 @@ var $e = {};
|
|
|
23558
23567
|
var ec;
|
|
23559
23568
|
function oC() {
|
|
23560
23569
|
return ec || (ec = 1, process.env.NODE_ENV !== "production" && function() {
|
|
23561
|
-
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, a = e ? Symbol.for("react.strict_mode") : 60108, i = 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, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118,
|
|
23570
|
+
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, a = e ? Symbol.for("react.strict_mode") : 60108, i = 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, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
|
|
23562
23571
|
function E(G) {
|
|
23563
23572
|
return typeof G == "string" || typeof G == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
23564
|
-
G === r || G === u || G === i || G === a || G === f || G === p || typeof G == "object" && G !== null && (G.$$typeof === g || G.$$typeof === m || G.$$typeof === s || G.$$typeof === o || G.$$typeof === d || G.$$typeof === D || G.$$typeof === b || G.$$typeof ===
|
|
23573
|
+
G === r || G === u || G === i || G === a || G === f || G === p || typeof G == "object" && G !== null && (G.$$typeof === g || G.$$typeof === m || G.$$typeof === s || G.$$typeof === o || G.$$typeof === d || G.$$typeof === D || G.$$typeof === b || G.$$typeof === x || G.$$typeof === h);
|
|
23565
23574
|
}
|
|
23566
23575
|
function _(G) {
|
|
23567
23576
|
if (typeof G == "object" && G !== null) {
|
|
@@ -23595,7 +23604,7 @@ function oC() {
|
|
|
23595
23604
|
}
|
|
23596
23605
|
}
|
|
23597
23606
|
}
|
|
23598
|
-
var
|
|
23607
|
+
var w = l, F = u, T = o, z = s, R = t, L = d, I = r, C = g, B = m, j = n, M = i, O = a, Z = f, ae = !1;
|
|
23599
23608
|
function q(G) {
|
|
23600
23609
|
return ae || (ae = !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.")), v(G) || _(G) === l;
|
|
23601
23610
|
}
|
|
@@ -23635,7 +23644,7 @@ function oC() {
|
|
|
23635
23644
|
function ue(G) {
|
|
23636
23645
|
return _(G) === f;
|
|
23637
23646
|
}
|
|
23638
|
-
$e.AsyncMode =
|
|
23647
|
+
$e.AsyncMode = w, $e.ConcurrentMode = F, $e.ContextConsumer = T, $e.ContextProvider = z, $e.Element = R, $e.ForwardRef = L, $e.Fragment = I, $e.Lazy = C, $e.Memo = B, $e.Portal = j, $e.Profiler = M, $e.StrictMode = O, $e.Suspense = Z, $e.isAsyncMode = q, $e.isConcurrentMode = v, $e.isContextConsumer = W, $e.isContextProvider = te, $e.isElement = k, $e.isForwardRef = A, $e.isFragment = $, $e.isLazy = N, $e.isMemo = H, $e.isPortal = ee, $e.isProfiler = X, $e.isStrictMode = ne, $e.isSuspense = ue, $e.isValidElementType = E, $e.typeOf = _;
|
|
23639
23648
|
}()), $e;
|
|
23640
23649
|
}
|
|
23641
23650
|
var tc;
|
|
@@ -23790,10 +23799,10 @@ function cC() {
|
|
|
23790
23799
|
object: b("object"),
|
|
23791
23800
|
string: b("string"),
|
|
23792
23801
|
symbol: b("symbol"),
|
|
23793
|
-
any:
|
|
23802
|
+
any: x(),
|
|
23794
23803
|
arrayOf: E,
|
|
23795
23804
|
element: _(),
|
|
23796
|
-
elementType:
|
|
23805
|
+
elementType: w(),
|
|
23797
23806
|
instanceOf: F,
|
|
23798
23807
|
node: L(),
|
|
23799
23808
|
objectOf: z,
|
|
@@ -23846,7 +23855,7 @@ function cC() {
|
|
|
23846
23855
|
}
|
|
23847
23856
|
return D(W);
|
|
23848
23857
|
}
|
|
23849
|
-
function
|
|
23858
|
+
function x() {
|
|
23850
23859
|
return D(s);
|
|
23851
23860
|
}
|
|
23852
23861
|
function E(v) {
|
|
@@ -23878,7 +23887,7 @@ function cC() {
|
|
|
23878
23887
|
}
|
|
23879
23888
|
return D(v);
|
|
23880
23889
|
}
|
|
23881
|
-
function
|
|
23890
|
+
function w() {
|
|
23882
23891
|
function v(W, te, k, A, $) {
|
|
23883
23892
|
var N = W[te];
|
|
23884
23893
|
if (!e.isValidElementType(N)) {
|
|
@@ -24629,7 +24638,7 @@ var dc = {
|
|
|
24629
24638
|
}
|
|
24630
24639
|
pr(i.allowOutsideClick, C) || C.preventDefault();
|
|
24631
24640
|
}
|
|
24632
|
-
},
|
|
24641
|
+
}, x = function(C) {
|
|
24633
24642
|
var B = la(C), j = u(B, C) >= 0;
|
|
24634
24643
|
if (j || B instanceof Document)
|
|
24635
24644
|
j && (s.mostRecentlyFocusedNode = B);
|
|
@@ -24675,20 +24684,20 @@ var dc = {
|
|
|
24675
24684
|
return;
|
|
24676
24685
|
}
|
|
24677
24686
|
(i.isKeyForward(C) || i.isKeyBackward(C)) && E(C, i.isKeyBackward(C));
|
|
24678
|
-
},
|
|
24687
|
+
}, w = function(C) {
|
|
24679
24688
|
var B = la(C);
|
|
24680
24689
|
u(B, C) >= 0 || pr(i.clickOutsideDeactivates, C) || pr(i.allowOutsideClick, C) || (C.preventDefault(), C.stopImmediatePropagation());
|
|
24681
24690
|
}, F = function() {
|
|
24682
24691
|
if (s.active)
|
|
24683
24692
|
return dc.activateTrap(a, o), s.delayInitialFocusTimer = i.delayInitialFocus ? fc(function() {
|
|
24684
24693
|
g(f());
|
|
24685
|
-
}) : g(f()), r.addEventListener("focusin",
|
|
24694
|
+
}) : g(f()), r.addEventListener("focusin", x, !0), r.addEventListener("mousedown", b, {
|
|
24686
24695
|
capture: !0,
|
|
24687
24696
|
passive: !1
|
|
24688
24697
|
}), r.addEventListener("touchstart", b, {
|
|
24689
24698
|
capture: !0,
|
|
24690
24699
|
passive: !1
|
|
24691
|
-
}), r.addEventListener("click",
|
|
24700
|
+
}), r.addEventListener("click", w, {
|
|
24692
24701
|
capture: !0,
|
|
24693
24702
|
passive: !1
|
|
24694
24703
|
}), r.addEventListener("keydown", _, {
|
|
@@ -24697,7 +24706,7 @@ var dc = {
|
|
|
24697
24706
|
}), o;
|
|
24698
24707
|
}, T = function() {
|
|
24699
24708
|
if (s.active)
|
|
24700
|
-
return r.removeEventListener("focusin",
|
|
24709
|
+
return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", b, !0), r.removeEventListener("touchstart", b, !0), r.removeEventListener("click", w, !0), r.removeEventListener("keydown", _, !0), o;
|
|
24701
24710
|
}, z = function(C) {
|
|
24702
24711
|
var B = C.some(function(j) {
|
|
24703
24712
|
var M = Array.from(j.removedNodes);
|
|
@@ -25129,15 +25138,15 @@ const Wr = ({
|
|
|
25129
25138
|
gtmContext: f = "Modal"
|
|
25130
25139
|
}) => {
|
|
25131
25140
|
const p = ce(), { registerOverlay: m, unregisterOverlay: g } = im(), [h, D] = fe(t), b = (_) => {
|
|
25132
|
-
_.key === "Escape" &&
|
|
25141
|
+
_.key === "Escape" && x(!1);
|
|
25133
25142
|
};
|
|
25134
25143
|
me(() => (window.addEventListener("keyup", b), () => {
|
|
25135
25144
|
window.removeEventListener("keyup", b);
|
|
25136
25145
|
}));
|
|
25137
|
-
const
|
|
25146
|
+
const x = (_) => {
|
|
25138
25147
|
D(_), _ ? (a(), m(e)) : (i(), g(e));
|
|
25139
25148
|
};
|
|
25140
|
-
me(() => (
|
|
25149
|
+
me(() => (x(t), () => {
|
|
25141
25150
|
h && g(e);
|
|
25142
25151
|
}), [t]);
|
|
25143
25152
|
const E = r ? { "--max-width": `${r / 16}rem` } : {};
|
|
@@ -25167,7 +25176,7 @@ const Wr = ({
|
|
|
25167
25176
|
variant: "tertiary",
|
|
25168
25177
|
size: "medium",
|
|
25169
25178
|
icon: { icon: "close" },
|
|
25170
|
-
onClick: () =>
|
|
25179
|
+
onClick: () => x(!1),
|
|
25171
25180
|
className: "gtm-trackable",
|
|
25172
25181
|
"data-gtm-event-type": "close-modal-click",
|
|
25173
25182
|
"data-gtm-event-context": f,
|
|
@@ -25215,6 +25224,7 @@ const aE = ({
|
|
|
25215
25224
|
...n,
|
|
25216
25225
|
meta: {
|
|
25217
25226
|
...s,
|
|
25227
|
+
isAutoFocused: !0,
|
|
25218
25228
|
isInOverlay: l,
|
|
25219
25229
|
hasTitleField: { text: "" },
|
|
25220
25230
|
showGuidelines: !1,
|
|
@@ -25470,8 +25480,8 @@ const sE = [
|
|
|
25470
25480
|
if (!s[D]) {
|
|
25471
25481
|
if (typeof t[D] == "object") {
|
|
25472
25482
|
p[D] = t[D];
|
|
25473
|
-
const { text: b, element:
|
|
25474
|
-
if (
|
|
25483
|
+
const { text: b, element: x } = t[D];
|
|
25484
|
+
if (x && sE.includes(x.toLowerCase()))
|
|
25475
25485
|
return;
|
|
25476
25486
|
p[D] = {
|
|
25477
25487
|
text: b,
|
|
@@ -25504,8 +25514,8 @@ const sE = [
|
|
|
25504
25514
|
/* @__PURE__ */ c.jsxs("div", { className: "content-wrapper", children: [
|
|
25505
25515
|
d.map((D) => {
|
|
25506
25516
|
if (p[D] && typeof p[D] == "object") {
|
|
25507
|
-
const { text: b, element:
|
|
25508
|
-
return D === "text" ? /* @__PURE__ */ c.jsx(Tr, { overrideType: "text-only", className: "text", children: b }, D) : re.createElement(
|
|
25517
|
+
const { text: b, element: x = "" } = p[D];
|
|
25518
|
+
return D === "text" ? /* @__PURE__ */ c.jsx(Tr, { overrideType: "text-only", className: "text", children: b }, D) : re.createElement(x, { key: D, className: D }, b);
|
|
25509
25519
|
}
|
|
25510
25520
|
return null;
|
|
25511
25521
|
}),
|
|
@@ -25779,14 +25789,14 @@ const b_ = ({
|
|
|
25779
25789
|
) : null;
|
|
25780
25790
|
const g = ["communityPage", "microcourse", "event"];
|
|
25781
25791
|
if (t && t.onClick && g.includes(p) && d !== "premium") {
|
|
25782
|
-
const b = i.loading || i.registered || ((D = e == null ? void 0 : e.members) == null ? void 0 : D.isMember),
|
|
25792
|
+
const b = i.loading || i.registered || ((D = e == null ? void 0 : e.members) == null ? void 0 : D.isMember), x = async (E) => {
|
|
25783
25793
|
if (E.preventDefault(), E.stopPropagation(), !(b || !t || !t.onClick)) {
|
|
25784
25794
|
s((_) => ({ ..._, loading: !0 }));
|
|
25785
25795
|
try {
|
|
25786
25796
|
const _ = await t.onClick(e);
|
|
25787
|
-
s(_ === "success" ? () => ({ registered: !0, loading: !1 }) : (
|
|
25797
|
+
s(_ === "success" ? () => ({ registered: !0, loading: !1 }) : (w) => ({ ...w, loading: !1 }));
|
|
25788
25798
|
} catch {
|
|
25789
|
-
s((
|
|
25799
|
+
s((w) => ({ ...w, loading: !1 }));
|
|
25790
25800
|
}
|
|
25791
25801
|
}
|
|
25792
25802
|
};
|
|
@@ -25799,7 +25809,7 @@ const b_ = ({
|
|
|
25799
25809
|
children: /* @__PURE__ */ c.jsx(
|
|
25800
25810
|
je,
|
|
25801
25811
|
{
|
|
25802
|
-
onClick:
|
|
25812
|
+
onClick: x,
|
|
25803
25813
|
className: "gtm-trackable",
|
|
25804
25814
|
size: "small",
|
|
25805
25815
|
styling: { fullWidth: !0 },
|
|
@@ -25860,12 +25870,12 @@ const dE = {
|
|
|
25860
25870
|
if (!b || !Va[b])
|
|
25861
25871
|
return /* @__PURE__ */ c.jsx(Nt, { element: "li", className: "card-wrapper" });
|
|
25862
25872
|
const {
|
|
25863
|
-
basePath:
|
|
25873
|
+
basePath: x = "",
|
|
25864
25874
|
className: E,
|
|
25865
25875
|
length: _,
|
|
25866
|
-
gtmEvent:
|
|
25876
|
+
gtmEvent: w
|
|
25867
25877
|
} = Va[b];
|
|
25868
|
-
let F = g.slug ? `${
|
|
25878
|
+
let F = g.slug ? `${x}${g.slug}` : !1;
|
|
25869
25879
|
g.slug && (g.slug.slice(0, 4) === "http" || g.slug.slice(0, 2) === "//" || g.slug.slice(0, 6) === "mailto" || g.slug.slice(0, 3) === "tel") && (F = g.slug);
|
|
25870
25880
|
const T = (O) => {
|
|
25871
25881
|
F && (O.preventDefault(), O.stopPropagation(), window.location.href = F);
|
|
@@ -25875,13 +25885,13 @@ const dE = {
|
|
|
25875
25885
|
href: F,
|
|
25876
25886
|
className: "gtm-trackable",
|
|
25877
25887
|
"data-gtm-event-context": `${a}-CarouselCard`,
|
|
25878
|
-
"data-gtm-event-type": `${
|
|
25888
|
+
"data-gtm-event-type": `${w}-click`,
|
|
25879
25889
|
"data-testid": "link"
|
|
25880
25890
|
}, g.openInNewTab && (L.target = "_blank"), R = {
|
|
25881
25891
|
onClick: T,
|
|
25882
25892
|
className: "card gtm-trackable",
|
|
25883
25893
|
"data-gtm-event-context": `${a}-CarouselCard`,
|
|
25884
|
-
"data-gtm-event-type": `${
|
|
25894
|
+
"data-gtm-event-type": `${w}-click`
|
|
25885
25895
|
}), o && (R = {
|
|
25886
25896
|
...R,
|
|
25887
25897
|
tabIndex: "0"
|
|
@@ -26046,7 +26056,7 @@ const pE = ({
|
|
|
26046
26056
|
}), { cardsPerPage: f, isLoading: p } = u, [m, g] = fe({
|
|
26047
26057
|
currentPage: 0,
|
|
26048
26058
|
loadedPages: [0]
|
|
26049
|
-
}), { currentPage: h, loadedPages: D } = m, [b,
|
|
26059
|
+
}), { currentPage: h, loadedPages: D } = m, [b, x] = fe(""), E = t.length, _ = Math.ceil(E / f), w = Ae(null), F = $r(!0, !0, w == null ? void 0 : w.current);
|
|
26050
26060
|
me(() => {
|
|
26051
26061
|
let C = 1;
|
|
26052
26062
|
F && (F >= is.fourCards ? C = 4 : F >= is.threeCards ? C = 3 : F >= is.twoCards && (C = 2), C > E && (C = E)), d((B) => ({
|
|
@@ -26078,7 +26088,7 @@ const pE = ({
|
|
|
26078
26088
|
const M = B * u.cardsPerPage, O = M + u.cardsPerPage;
|
|
26079
26089
|
return t.slice(M, O).length;
|
|
26080
26090
|
};
|
|
26081
|
-
|
|
26091
|
+
x(
|
|
26082
26092
|
l.formatMessage(
|
|
26083
26093
|
{
|
|
26084
26094
|
id: "carousel_pagination_aria_live"
|
|
@@ -26112,7 +26122,7 @@ const pE = ({
|
|
|
26112
26122
|
return /* @__PURE__ */ c.jsxs(
|
|
26113
26123
|
"section",
|
|
26114
26124
|
{
|
|
26115
|
-
ref:
|
|
26125
|
+
ref: w,
|
|
26116
26126
|
className: Y("carousel-wrapper", i),
|
|
26117
26127
|
"data-testid": "carousel",
|
|
26118
26128
|
children: [
|
|
@@ -26361,16 +26371,16 @@ const x_ = ({
|
|
|
26361
26371
|
completionTime: h,
|
|
26362
26372
|
contentType: D,
|
|
26363
26373
|
icon: b,
|
|
26364
|
-
image:
|
|
26374
|
+
image: x,
|
|
26365
26375
|
isIntroduction: E,
|
|
26366
26376
|
optional: _,
|
|
26367
|
-
slug:
|
|
26377
|
+
slug: w,
|
|
26368
26378
|
subsectionId: F,
|
|
26369
26379
|
title: T,
|
|
26370
26380
|
type: z
|
|
26371
26381
|
}) => {
|
|
26372
26382
|
const R = a && t || E, L = {};
|
|
26373
|
-
return
|
|
26383
|
+
return x && (L.style = { "--image": `url(${x})` }), /* @__PURE__ */ c.jsx(
|
|
26374
26384
|
"li",
|
|
26375
26385
|
{
|
|
26376
26386
|
className: Y({
|
|
@@ -26384,7 +26394,7 @@ const x_ = ({
|
|
|
26384
26394
|
children: /* @__PURE__ */ c.jsx(
|
|
26385
26395
|
ir,
|
|
26386
26396
|
{
|
|
26387
|
-
href: R ? `/microcourses/en/${o}/${
|
|
26397
|
+
href: R ? `/microcourses/en/${o}/${w}` : void 0,
|
|
26388
26398
|
fallbackElement: "span",
|
|
26389
26399
|
className: "inner",
|
|
26390
26400
|
gtmContext: `MicrocourseOutline${mh(T)}`,
|
|
@@ -26407,14 +26417,14 @@ const x_ = ({
|
|
|
26407
26417
|
icon: b,
|
|
26408
26418
|
optional: _,
|
|
26409
26419
|
type: z,
|
|
26410
|
-
children: d && d[
|
|
26420
|
+
children: d && d[w] && /* @__PURE__ */ c.jsx("span", { className: "quiz-score", children: `${d[w]}%` })
|
|
26411
26421
|
}
|
|
26412
26422
|
)
|
|
26413
26423
|
] })
|
|
26414
26424
|
}
|
|
26415
26425
|
)
|
|
26416
26426
|
},
|
|
26417
|
-
|
|
26427
|
+
w
|
|
26418
26428
|
);
|
|
26419
26429
|
}
|
|
26420
26430
|
) })
|