@yext/visual-editor 0.0.8 → 0.0.9
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/README.md +3 -0
- package/dist/index.d.cts +33 -36
- package/dist/index.d.ts +33 -36
- package/dist/visual-editor.cjs +11 -11
- package/dist/visual-editor.js +224 -220
- package/package.json +2 -2
package/dist/visual-editor.js
CHANGED
|
@@ -117,10 +117,10 @@ function Is() {
|
|
|
117
117
|
{
|
|
118
118
|
for (var C = arguments.length, T = new Array(C > 1 ? C - 1 : 0), j = 1; j < C; j++)
|
|
119
119
|
T[j - 1] = arguments[j];
|
|
120
|
-
|
|
120
|
+
V("error", p, T);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function V(p, C, T) {
|
|
124
124
|
{
|
|
125
125
|
var j = O.ReactDebugCurrentFrame, re = j.getStackAddendum();
|
|
126
126
|
re !== "" && (C += "%s", T = T.concat([re]));
|
|
@@ -316,17 +316,17 @@ function Is() {
|
|
|
316
316
|
}
|
|
317
317
|
} catch (Be) {
|
|
318
318
|
if (Be && j && typeof Be.stack == "string") {
|
|
319
|
-
for (var
|
|
319
|
+
for (var z = Be.stack.split(`
|
|
320
320
|
`), fe = j.stack.split(`
|
|
321
|
-
`), ae =
|
|
321
|
+
`), ae = z.length - 1, se = fe.length - 1; ae >= 1 && se >= 0 && z[ae] !== fe[se]; )
|
|
322
322
|
se--;
|
|
323
323
|
for (; ae >= 1 && se >= 0; ae--, se--)
|
|
324
|
-
if (
|
|
324
|
+
if (z[ae] !== fe[se]) {
|
|
325
325
|
if (ae !== 1 || se !== 1)
|
|
326
326
|
do
|
|
327
|
-
if (ae--, se--, se < 0 ||
|
|
327
|
+
if (ae--, se--, se < 0 || z[ae] !== fe[se]) {
|
|
328
328
|
var Fe = `
|
|
329
|
-
` +
|
|
329
|
+
` + z[ae].replace(" at new ", " at ");
|
|
330
330
|
return typeof p == "function" && he.set(p, Fe), Fe;
|
|
331
331
|
}
|
|
332
332
|
while (ae >= 1 && se >= 0);
|
|
@@ -390,17 +390,17 @@ function Is() {
|
|
|
390
390
|
var ee = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
391
391
|
for (var K in p)
|
|
392
392
|
if (ee(p, K)) {
|
|
393
|
-
var
|
|
393
|
+
var z = void 0;
|
|
394
394
|
try {
|
|
395
395
|
if (typeof p[K] != "function") {
|
|
396
396
|
var fe = Error((j || "React class") + ": " + T + " type `" + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof p[K] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
397
397
|
throw fe.name = "Invariant Violation", fe;
|
|
398
398
|
}
|
|
399
|
-
|
|
399
|
+
z = p[K](C, K, j, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
400
400
|
} catch (ae) {
|
|
401
|
-
|
|
401
|
+
z = ae;
|
|
402
402
|
}
|
|
403
|
-
|
|
403
|
+
z && !(z instanceof Error) && (Ue(re), N("%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).", j || "React class", T, K, typeof z), Ue(null)), z instanceof Error && !(z.message in Ae) && (Ae[z.message] = !0, Ue(re), N("Failed %s type: %s", T, z.message), Ue(null));
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
}
|
|
@@ -409,7 +409,7 @@ function Is() {
|
|
|
409
409
|
ref: !0,
|
|
410
410
|
__self: !0,
|
|
411
411
|
__source: !0
|
|
412
|
-
}, ot,
|
|
412
|
+
}, ot, Vt, pt;
|
|
413
413
|
pt = {};
|
|
414
414
|
function Nt(p) {
|
|
415
415
|
if (Ot.call(p, "ref")) {
|
|
@@ -427,7 +427,7 @@ function Is() {
|
|
|
427
427
|
}
|
|
428
428
|
return p.key !== void 0;
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function zt(p, C) {
|
|
431
431
|
if (typeof p.ref == "string" && Ce.current && C && Ce.current.stateNode !== C) {
|
|
432
432
|
var T = M(Ce.current.type);
|
|
433
433
|
pt[T] || (N('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', M(Ce.current.type), p.ref), pt[T] = !0);
|
|
@@ -447,7 +447,7 @@ function Is() {
|
|
|
447
447
|
function Ht(p, C) {
|
|
448
448
|
{
|
|
449
449
|
var T = function() {
|
|
450
|
-
|
|
450
|
+
Vt || (Vt = !0, N("%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)", C));
|
|
451
451
|
};
|
|
452
452
|
T.isReactWarning = !0, Object.defineProperty(p, "ref", {
|
|
453
453
|
get: T,
|
|
@@ -456,7 +456,7 @@ function Is() {
|
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
var Er = function(p, C, T, j, re, ee, K) {
|
|
459
|
-
var
|
|
459
|
+
var z = {
|
|
460
460
|
// This tag allows us to uniquely identify this as a React Element
|
|
461
461
|
$$typeof: n,
|
|
462
462
|
// Built-in properties that belong on the element
|
|
@@ -467,27 +467,27 @@ function Is() {
|
|
|
467
467
|
// Record the component responsible for creating this element.
|
|
468
468
|
_owner: ee
|
|
469
469
|
};
|
|
470
|
-
return
|
|
470
|
+
return z._store = {}, Object.defineProperty(z._store, "validated", {
|
|
471
471
|
configurable: !1,
|
|
472
472
|
enumerable: !1,
|
|
473
473
|
writable: !0,
|
|
474
474
|
value: !1
|
|
475
|
-
}), Object.defineProperty(
|
|
475
|
+
}), Object.defineProperty(z, "_self", {
|
|
476
476
|
configurable: !1,
|
|
477
477
|
enumerable: !1,
|
|
478
478
|
writable: !1,
|
|
479
479
|
value: j
|
|
480
|
-
}), Object.defineProperty(
|
|
480
|
+
}), Object.defineProperty(z, "_source", {
|
|
481
481
|
configurable: !1,
|
|
482
482
|
enumerable: !1,
|
|
483
483
|
writable: !1,
|
|
484
484
|
value: re
|
|
485
|
-
}), Object.freeze && (Object.freeze(
|
|
485
|
+
}), Object.freeze && (Object.freeze(z.props), Object.freeze(z)), z;
|
|
486
486
|
};
|
|
487
487
|
function Ut(p, C, T, j, re) {
|
|
488
488
|
{
|
|
489
|
-
var ee, K = {},
|
|
490
|
-
T !== void 0 && (
|
|
489
|
+
var ee, K = {}, z = null, fe = null;
|
|
490
|
+
T !== void 0 && (z = "" + T), Ye(C) && (z = "" + C.key), Nt(C) && (fe = C.ref, zt(C, re));
|
|
491
491
|
for (ee in C)
|
|
492
492
|
Ot.call(C, ee) && !wr.hasOwnProperty(ee) && (K[ee] = C[ee]);
|
|
493
493
|
if (p && p.defaultProps) {
|
|
@@ -495,11 +495,11 @@ function Is() {
|
|
|
495
495
|
for (ee in ae)
|
|
496
496
|
K[ee] === void 0 && (K[ee] = ae[ee]);
|
|
497
497
|
}
|
|
498
|
-
if (
|
|
498
|
+
if (z || fe) {
|
|
499
499
|
var se = typeof p == "function" ? p.displayName || p.name || "Unknown" : p;
|
|
500
|
-
|
|
500
|
+
z && Ge(K, se), fe && Ht(K, se);
|
|
501
501
|
}
|
|
502
|
-
return Er(p,
|
|
502
|
+
return Er(p, z, fe, re, j, Ce.current, K);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
var gt = O.ReactCurrentOwner, Yt = O.ReactDebugCurrentFrame;
|
|
@@ -616,12 +616,12 @@ Check the top-level render call using <` + T + ">.");
|
|
|
616
616
|
{
|
|
617
617
|
var K = U(p);
|
|
618
618
|
if (!K) {
|
|
619
|
-
var
|
|
620
|
-
(p === void 0 || typeof p == "object" && p !== null && Object.keys(p).length === 0) && (
|
|
619
|
+
var z = "";
|
|
620
|
+
(p === void 0 || typeof p == "object" && p !== null && Object.keys(p).length === 0) && (z += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
621
621
|
var fe = Q();
|
|
622
|
-
fe ?
|
|
622
|
+
fe ? z += fe : z += L();
|
|
623
623
|
var ae;
|
|
624
|
-
p === null ? ae = "null" : Array.isArray(p) ? ae = "array" : p !== void 0 && p.$$typeof === n ? (ae = "<" + (M(p.type) || "Unknown") + " />",
|
|
624
|
+
p === null ? ae = "null" : Array.isArray(p) ? ae = "array" : p !== void 0 && p.$$typeof === n ? (ae = "<" + (M(p.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : ae = typeof p, N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ae, z);
|
|
625
625
|
}
|
|
626
626
|
var se = Ut(p, C, T, re, ee);
|
|
627
627
|
if (se == null)
|
|
@@ -746,7 +746,7 @@ const Ws = fr("PanelLeft", [
|
|
|
746
746
|
* This source code is licensed under the ISC license.
|
|
747
747
|
* See the LICENSE file in the root directory of this source tree.
|
|
748
748
|
*/
|
|
749
|
-
const
|
|
749
|
+
const Vs = fr("PanelRight", [
|
|
750
750
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
751
751
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
752
752
|
]);
|
|
@@ -756,7 +756,7 @@ const zs = fr("PanelRight", [
|
|
|
756
756
|
* This source code is licensed under the ISC license.
|
|
757
757
|
* See the LICENSE file in the root directory of this source tree.
|
|
758
758
|
*/
|
|
759
|
-
const
|
|
759
|
+
const zs = fr("RotateCcw", [
|
|
760
760
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
761
761
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
762
762
|
]);
|
|
@@ -968,7 +968,7 @@ function ri(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
968
968
|
return t.addEventListener("keydown", n, { capture: !0 }), () => t.removeEventListener("keydown", n, { capture: !0 });
|
|
969
969
|
}, [r, t]);
|
|
970
970
|
}
|
|
971
|
-
var ni = "DismissableLayer",
|
|
971
|
+
var ni = "DismissableLayer", Vr = "dismissableLayer.update", oi = "dismissableLayer.pointerDownOutside", ai = "dismissableLayer.focusOutside", Nn, fo = f.createContext({
|
|
972
972
|
layers: /* @__PURE__ */ new Set(),
|
|
973
973
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
974
974
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -983,8 +983,8 @@ var ni = "DismissableLayer", zr = "dismissableLayer.update", oi = "dismissableLa
|
|
|
983
983
|
onDismiss: i,
|
|
984
984
|
...c
|
|
985
985
|
} = e, d = f.useContext(fo), [u, g] = f.useState(null), l = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = f.useState({}), x = ge(t, (O) => g(O)), h = Array.from(d.layers), [y] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), w = h.indexOf(y), b = u ? h.indexOf(u) : -1, E = d.layersWithOutsidePointerEventsDisabled.size > 0, S = b >= w, R = li((O) => {
|
|
986
|
-
const N = O.target,
|
|
987
|
-
!S ||
|
|
986
|
+
const N = O.target, V = [...d.branches].some((H) => H.contains(N));
|
|
987
|
+
!S || V || (o == null || o(O), s == null || s(O), O.defaultPrevented || i == null || i());
|
|
988
988
|
}, l), D = ci((O) => {
|
|
989
989
|
const N = O.target;
|
|
990
990
|
[...d.branches].some((H) => H.contains(N)) || (a == null || a(O), s == null || s(O), O.defaultPrevented || i == null || i());
|
|
@@ -1000,7 +1000,7 @@ var ni = "DismissableLayer", zr = "dismissableLayer.update", oi = "dismissableLa
|
|
|
1000
1000
|
u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), Dn());
|
|
1001
1001
|
}, [u, d]), f.useEffect(() => {
|
|
1002
1002
|
const O = () => v({});
|
|
1003
|
-
return document.addEventListener(
|
|
1003
|
+
return document.addEventListener(Vr, O), () => document.removeEventListener(Vr, O);
|
|
1004
1004
|
}, []), /* @__PURE__ */ m.jsx(
|
|
1005
1005
|
ce.div,
|
|
1006
1006
|
{
|
|
@@ -1077,7 +1077,7 @@ function ci(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1077
1077
|
};
|
|
1078
1078
|
}
|
|
1079
1079
|
function Dn() {
|
|
1080
|
-
const e = new CustomEvent(
|
|
1080
|
+
const e = new CustomEvent(Vr);
|
|
1081
1081
|
document.dispatchEvent(e);
|
|
1082
1082
|
}
|
|
1083
1083
|
function po(e, t, r, { discrete: n }) {
|
|
@@ -1523,7 +1523,7 @@ var Li = function() {
|
|
|
1523
1523
|
right: t[2],
|
|
1524
1524
|
gap: Math.max(0, n - r + t[2] - t[0])
|
|
1525
1525
|
};
|
|
1526
|
-
}, Wi = xo(), xt = "data-scroll-locked",
|
|
1526
|
+
}, Wi = xo(), xt = "data-scroll-locked", Vi = function(e, t, r, n) {
|
|
1527
1527
|
var o = e.left, a = e.top, s = e.right, i = e.gap;
|
|
1528
1528
|
return r === void 0 && (r = "margin"), `
|
|
1529
1529
|
.`.concat(Ci, ` {
|
|
@@ -1570,7 +1570,7 @@ var Li = function() {
|
|
|
1570
1570
|
}, $n = function() {
|
|
1571
1571
|
var e = parseInt(document.body.getAttribute(xt) || "0", 10);
|
|
1572
1572
|
return isFinite(e) ? e : 0;
|
|
1573
|
-
},
|
|
1573
|
+
}, zi = function() {
|
|
1574
1574
|
f.useEffect(function() {
|
|
1575
1575
|
return document.body.setAttribute(xt, ($n() + 1).toString()), function() {
|
|
1576
1576
|
var e = $n() - 1;
|
|
@@ -1579,24 +1579,24 @@ var Li = function() {
|
|
|
1579
1579
|
}, []);
|
|
1580
1580
|
}, Hi = function(e) {
|
|
1581
1581
|
var t = e.noRelative, r = e.noImportant, n = e.gapMode, o = n === void 0 ? "margin" : n;
|
|
1582
|
-
|
|
1582
|
+
zi();
|
|
1583
1583
|
var a = f.useMemo(function() {
|
|
1584
1584
|
return Bi(o);
|
|
1585
1585
|
}, [o]);
|
|
1586
|
-
return f.createElement(Wi, { styles:
|
|
1587
|
-
},
|
|
1586
|
+
return f.createElement(Wi, { styles: Vi(a, !t, o, r ? "" : "!important") });
|
|
1587
|
+
}, zr = !1;
|
|
1588
1588
|
if (typeof window < "u")
|
|
1589
1589
|
try {
|
|
1590
1590
|
var Kt = Object.defineProperty({}, "passive", {
|
|
1591
1591
|
get: function() {
|
|
1592
|
-
return
|
|
1592
|
+
return zr = !0, !0;
|
|
1593
1593
|
}
|
|
1594
1594
|
});
|
|
1595
1595
|
window.addEventListener("test", Kt, Kt), window.removeEventListener("test", Kt, Kt);
|
|
1596
1596
|
} catch {
|
|
1597
|
-
|
|
1597
|
+
zr = !1;
|
|
1598
1598
|
}
|
|
1599
|
-
var mt =
|
|
1599
|
+
var mt = zr ? { passive: !1 } : !1, Ui = function(e) {
|
|
1600
1600
|
return e.tagName === "TEXTAREA";
|
|
1601
1601
|
}, wo = function(e, t) {
|
|
1602
1602
|
var r = window.getComputedStyle(e);
|
|
@@ -1697,8 +1697,8 @@ function tl(e) {
|
|
|
1697
1697
|
return !1;
|
|
1698
1698
|
if (!n.current && "changedTouches" in h && (E || S) && (n.current = R), !R)
|
|
1699
1699
|
return !0;
|
|
1700
|
-
var
|
|
1701
|
-
return Ji(
|
|
1700
|
+
var V = n.current || R;
|
|
1701
|
+
return Ji(V, y, h, V === "h" ? E : S, !0);
|
|
1702
1702
|
}, []), c = f.useCallback(function(h) {
|
|
1703
1703
|
var y = h;
|
|
1704
1704
|
if (!(!bt.length || bt[bt.length - 1] !== a)) {
|
|
@@ -2011,12 +2011,12 @@ Bo.displayName = Fo;
|
|
|
2011
2011
|
function cn(e) {
|
|
2012
2012
|
return e ? "open" : "closed";
|
|
2013
2013
|
}
|
|
2014
|
-
var Wo = "DialogTitleWarning", [pl,
|
|
2014
|
+
var Wo = "DialogTitleWarning", [pl, Vo] = Us(Wo, {
|
|
2015
2015
|
contentName: ct,
|
|
2016
2016
|
titleName: ln,
|
|
2017
2017
|
docsSlug: "dialog"
|
|
2018
2018
|
}), gl = ({ titleId: e }) => {
|
|
2019
|
-
const t =
|
|
2019
|
+
const t = Vo(Wo), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2020
2020
|
|
|
2021
2021
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
2022
2022
|
|
|
@@ -2025,13 +2025,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
2025
2025
|
e && (document.getElementById(e) || console.error(r));
|
|
2026
2026
|
}, [r, e]), null;
|
|
2027
2027
|
}, vl = "DialogDescriptionWarning", hl = ({ contentRef: e, descriptionId: t }) => {
|
|
2028
|
-
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
2028
|
+
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vo(vl).contentName}}.`;
|
|
2029
2029
|
return f.useEffect(() => {
|
|
2030
2030
|
var a;
|
|
2031
2031
|
const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
2032
2032
|
t && o && (document.getElementById(t) || console.warn(n));
|
|
2033
2033
|
}, [n, e, t]), null;
|
|
2034
|
-
}, ml = To, bl = No, yl = ko, xl = _o, wl = jo, El = Lo, Cl = $o,
|
|
2034
|
+
}, ml = To, bl = No, yl = ko, xl = _o, wl = jo, El = Lo, Cl = $o, zo = Bo, Ho = "AlertDialog", [Sl, lf] = Rt(Ho, [
|
|
2035
2035
|
Ao
|
|
2036
2036
|
]), He = Ao(), Uo = (e) => {
|
|
2037
2037
|
const { __scopeAlertDialog: t, ...r } = e, n = He(t);
|
|
@@ -2105,14 +2105,14 @@ Qo.displayName = Zo;
|
|
|
2105
2105
|
var Nl = "AlertDialogAction", ea = f.forwardRef(
|
|
2106
2106
|
(e, t) => {
|
|
2107
2107
|
const { __scopeAlertDialog: r, ...n } = e, o = He(r);
|
|
2108
|
-
return /* @__PURE__ */ m.jsx(
|
|
2108
|
+
return /* @__PURE__ */ m.jsx(zo, { ...o, ...n, ref: t });
|
|
2109
2109
|
}
|
|
2110
2110
|
);
|
|
2111
2111
|
ea.displayName = Nl;
|
|
2112
2112
|
var ta = "AlertDialogCancel", ra = f.forwardRef(
|
|
2113
2113
|
(e, t) => {
|
|
2114
2114
|
const { __scopeAlertDialog: r, ...n } = e, { cancelRef: o } = Ol(ta, r), a = He(r), s = ge(t, o);
|
|
2115
|
-
return /* @__PURE__ */ m.jsx(
|
|
2115
|
+
return /* @__PURE__ */ m.jsx(zo, { ...a, ...n, ref: s });
|
|
2116
2116
|
}
|
|
2117
2117
|
);
|
|
2118
2118
|
ra.displayName = ta;
|
|
@@ -2177,10 +2177,10 @@ function ua(e, t) {
|
|
|
2177
2177
|
validator: i
|
|
2178
2178
|
}) => i(a))) == null ? void 0 : s.classGroupId;
|
|
2179
2179
|
}
|
|
2180
|
-
const
|
|
2180
|
+
const Vn = /^\[(.+)\]$/;
|
|
2181
2181
|
function Il(e) {
|
|
2182
|
-
if (
|
|
2183
|
-
const t =
|
|
2182
|
+
if (Vn.test(e)) {
|
|
2183
|
+
const t = Vn.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
2184
2184
|
if (r)
|
|
2185
2185
|
return "arbitrary.." + r;
|
|
2186
2186
|
}
|
|
@@ -2200,7 +2200,7 @@ function $l(e) {
|
|
|
2200
2200
|
function Hr(e, t, r, n) {
|
|
2201
2201
|
e.forEach((o) => {
|
|
2202
2202
|
if (typeof o == "string") {
|
|
2203
|
-
const a = o === "" ? t :
|
|
2203
|
+
const a = o === "" ? t : zn(t, o);
|
|
2204
2204
|
a.classGroupId = r;
|
|
2205
2205
|
return;
|
|
2206
2206
|
}
|
|
@@ -2216,11 +2216,11 @@ function Hr(e, t, r, n) {
|
|
|
2216
2216
|
return;
|
|
2217
2217
|
}
|
|
2218
2218
|
Object.entries(o).forEach(([a, s]) => {
|
|
2219
|
-
Hr(s,
|
|
2219
|
+
Hr(s, zn(t, a), r, n);
|
|
2220
2220
|
});
|
|
2221
2221
|
});
|
|
2222
2222
|
}
|
|
2223
|
-
function
|
|
2223
|
+
function zn(e, t) {
|
|
2224
2224
|
let r = e;
|
|
2225
2225
|
return t.split(un).forEach((n) => {
|
|
2226
2226
|
r.nextPart.has(n) || r.nextPart.set(n, {
|
|
@@ -2264,7 +2264,7 @@ function Wl(e) {
|
|
|
2264
2264
|
};
|
|
2265
2265
|
}
|
|
2266
2266
|
const da = "!";
|
|
2267
|
-
function
|
|
2267
|
+
function Vl(e) {
|
|
2268
2268
|
const {
|
|
2269
2269
|
separator: t,
|
|
2270
2270
|
experimentalParseClassName: r
|
|
@@ -2301,7 +2301,7 @@ function zl(e) {
|
|
|
2301
2301
|
});
|
|
2302
2302
|
} : s;
|
|
2303
2303
|
}
|
|
2304
|
-
function
|
|
2304
|
+
function zl(e) {
|
|
2305
2305
|
if (e.length <= 1)
|
|
2306
2306
|
return e;
|
|
2307
2307
|
const t = [];
|
|
@@ -2313,7 +2313,7 @@ function Vl(e) {
|
|
|
2313
2313
|
function Hl(e) {
|
|
2314
2314
|
return {
|
|
2315
2315
|
cache: Wl(e.cacheSize),
|
|
2316
|
-
parseClassName:
|
|
2316
|
+
parseClassName: Vl(e),
|
|
2317
2317
|
...Ll(e)
|
|
2318
2318
|
};
|
|
2319
2319
|
}
|
|
@@ -2345,7 +2345,7 @@ function Yl(e, t) {
|
|
|
2345
2345
|
};
|
|
2346
2346
|
g = !1;
|
|
2347
2347
|
}
|
|
2348
|
-
const v =
|
|
2348
|
+
const v = zl(i).join(":");
|
|
2349
2349
|
return {
|
|
2350
2350
|
isTailwindClass: !0,
|
|
2351
2351
|
modifierId: c ? v + da : v,
|
|
@@ -2458,7 +2458,7 @@ function dc(e) {
|
|
|
2458
2458
|
return tc.test(e);
|
|
2459
2459
|
}
|
|
2460
2460
|
function fc() {
|
|
2461
|
-
const e = ne("colors"), t = ne("spacing"), r = ne("blur"), n = ne("brightness"), o = ne("borderColor"), a = ne("borderRadius"), s = ne("borderSpacing"), i = ne("borderWidth"), c = ne("contrast"), d = ne("grayscale"), u = ne("hueRotate"), g = ne("invert"), l = ne("gap"), v = ne("gradientColorStops"), x = ne("gradientColorStopPositions"), h = ne("inset"), y = ne("margin"), w = ne("opacity"), b = ne("padding"), E = ne("saturate"), S = ne("scale"), R = ne("sepia"), D = ne("skew"), O = ne("space"), N = ne("translate"),
|
|
2461
|
+
const e = ne("colors"), t = ne("spacing"), r = ne("blur"), n = ne("brightness"), o = ne("borderColor"), a = ne("borderRadius"), s = ne("borderSpacing"), i = ne("borderWidth"), c = ne("contrast"), d = ne("grayscale"), u = ne("hueRotate"), g = ne("invert"), l = ne("gap"), v = ne("gradientColorStops"), x = ne("gradientColorStopPositions"), h = ne("inset"), y = ne("margin"), w = ne("opacity"), b = ne("padding"), E = ne("saturate"), S = ne("scale"), R = ne("sepia"), D = ne("skew"), O = ne("space"), N = ne("translate"), V = () => ["auto", "contain", "none"], H = () => ["auto", "hidden", "clip", "visible", "scroll"], U = () => ["auto", $, t], _ = () => [$, t], Y = () => ["", We, Ke], M = () => ["auto", it, $], X = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], F = () => ["solid", "dashed", "dotted", "double", "none"], q = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], A = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", $], oe = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [it, Zt], W = () => [it, $];
|
|
2462
2462
|
return {
|
|
2463
2463
|
cacheSize: 500,
|
|
2464
2464
|
separator: ":",
|
|
@@ -2609,21 +2609,21 @@ function fc() {
|
|
|
2609
2609
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2610
2610
|
*/
|
|
2611
2611
|
overscroll: [{
|
|
2612
|
-
overscroll:
|
|
2612
|
+
overscroll: V()
|
|
2613
2613
|
}],
|
|
2614
2614
|
/**
|
|
2615
2615
|
* Overscroll Behavior X
|
|
2616
2616
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2617
2617
|
*/
|
|
2618
2618
|
"overscroll-x": [{
|
|
2619
|
-
"overscroll-x":
|
|
2619
|
+
"overscroll-x": V()
|
|
2620
2620
|
}],
|
|
2621
2621
|
/**
|
|
2622
2622
|
* Overscroll Behavior Y
|
|
2623
2623
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2624
2624
|
*/
|
|
2625
2625
|
"overscroll-y": [{
|
|
2626
|
-
"overscroll-y":
|
|
2626
|
+
"overscroll-y": V()
|
|
2627
2627
|
}],
|
|
2628
2628
|
/**
|
|
2629
2629
|
* Position
|
|
@@ -4714,7 +4714,7 @@ function Sa(e) {
|
|
|
4714
4714
|
r(void 0);
|
|
4715
4715
|
}, [e]), t;
|
|
4716
4716
|
}
|
|
4717
|
-
var fn = "Switch", [Ec,
|
|
4717
|
+
var fn = "Switch", [Ec, cf] = Rt(fn), [Cc, Sc] = Ec(fn), Ra = f.forwardRef(
|
|
4718
4718
|
(e, t) => {
|
|
4719
4719
|
const {
|
|
4720
4720
|
__scopeSwitch: r,
|
|
@@ -4849,10 +4849,10 @@ const Ac = ["top", "right", "bottom", "left"], Qe = Math.min, ye = Math.max, ir
|
|
|
4849
4849
|
function Ur(e, t, r) {
|
|
4850
4850
|
return ye(e, Qe(t, r));
|
|
4851
4851
|
}
|
|
4852
|
-
function
|
|
4852
|
+
function Ve(e, t) {
|
|
4853
4853
|
return typeof e == "function" ? e(t) : e;
|
|
4854
4854
|
}
|
|
4855
|
-
function
|
|
4855
|
+
function ze(e) {
|
|
4856
4856
|
return e.split("-")[0];
|
|
4857
4857
|
}
|
|
4858
4858
|
function At(e) {
|
|
@@ -4865,7 +4865,7 @@ function gn(e) {
|
|
|
4865
4865
|
return e === "y" ? "height" : "width";
|
|
4866
4866
|
}
|
|
4867
4867
|
function tt(e) {
|
|
4868
|
-
return ["top", "bottom"].includes(
|
|
4868
|
+
return ["top", "bottom"].includes(ze(e)) ? "y" : "x";
|
|
4869
4869
|
}
|
|
4870
4870
|
function vn(e) {
|
|
4871
4871
|
return pn(tt(e));
|
|
@@ -4898,7 +4898,7 @@ function kc(e, t, r) {
|
|
|
4898
4898
|
}
|
|
4899
4899
|
function _c(e, t, r, n) {
|
|
4900
4900
|
const o = At(e);
|
|
4901
|
-
let a = kc(
|
|
4901
|
+
let a = kc(ze(e), r === "start", n);
|
|
4902
4902
|
return o && (a = a.map((s) => s + "-" + o), t && (a = a.concat(a.map(Yr)))), a;
|
|
4903
4903
|
}
|
|
4904
4904
|
function lr(e) {
|
|
@@ -4944,7 +4944,7 @@ function Yn(e, t, r) {
|
|
|
4944
4944
|
reference: n,
|
|
4945
4945
|
floating: o
|
|
4946
4946
|
} = e;
|
|
4947
|
-
const a = tt(t), s = vn(t), i = gn(s), c =
|
|
4947
|
+
const a = tt(t), s = vn(t), i = gn(s), c = ze(t), d = a === "y", u = n.x + n.width / 2 - o.width / 2, g = n.y + n.height / 2 - o.height / 2, l = n[i] / 2 - o[i] / 2;
|
|
4948
4948
|
let v;
|
|
4949
4949
|
switch (c) {
|
|
4950
4950
|
case "top":
|
|
@@ -5064,7 +5064,7 @@ async function It(e, t) {
|
|
|
5064
5064
|
elementContext: g = "floating",
|
|
5065
5065
|
altBoundary: l = !1,
|
|
5066
5066
|
padding: v = 0
|
|
5067
|
-
} =
|
|
5067
|
+
} = Ve(t, e), x = Da(v), y = i[l ? g === "floating" ? "reference" : "floating" : g], w = cr(await a.getClippingRect({
|
|
5068
5068
|
element: (r = await (a.isElement == null ? void 0 : a.isElement(y))) == null || r ? y : y.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
|
|
5069
5069
|
boundary: d,
|
|
5070
5070
|
rootBoundary: u,
|
|
@@ -5108,7 +5108,7 @@ const Lc = (e) => ({
|
|
|
5108
5108
|
} = t, {
|
|
5109
5109
|
element: d,
|
|
5110
5110
|
padding: u = 0
|
|
5111
|
-
} =
|
|
5111
|
+
} = Ve(e, t) || {};
|
|
5112
5112
|
if (d == null)
|
|
5113
5113
|
return {};
|
|
5114
5114
|
const g = Da(u), l = {
|
|
@@ -5117,7 +5117,7 @@ const Lc = (e) => ({
|
|
|
5117
5117
|
}, v = vn(o), x = gn(v), h = await s.getDimensions(d), y = v === "y", w = y ? "top" : "left", b = y ? "bottom" : "right", E = y ? "clientHeight" : "clientWidth", S = a.reference[x] + a.reference[v] - l[v] - a.floating[x], R = l[v] - a.reference[v], D = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
|
5118
5118
|
let O = D ? D[E] : 0;
|
|
5119
5119
|
(!O || !await (s.isElement == null ? void 0 : s.isElement(D))) && (O = i.floating[E] || a.floating[x]);
|
|
5120
|
-
const N = S / 2 - R / 2,
|
|
5120
|
+
const N = S / 2 - R / 2, V = O / 2 - h[x] / 2 - 1, H = Qe(g[w], V), U = Qe(g[b], V), _ = H, Y = O - h[x] - U, M = O / 2 - h[x] / 2 + N, X = Ur(_, M, Y), F = !c.arrow && At(o) != null && M !== X && a.reference[x] / 2 - (M < _ ? H : U) - h[x] / 2 < 0, q = F ? M < _ ? M - _ : M - Y : 0;
|
|
5121
5121
|
return {
|
|
5122
5122
|
[v]: l[v] + q,
|
|
5123
5123
|
data: {
|
|
@@ -5151,21 +5151,21 @@ const Lc = (e) => ({
|
|
|
5151
5151
|
fallbackAxisSideDirection: x = "none",
|
|
5152
5152
|
flipAlignment: h = !0,
|
|
5153
5153
|
...y
|
|
5154
|
-
} =
|
|
5154
|
+
} = Ve(e, t);
|
|
5155
5155
|
if ((r = a.arrow) != null && r.alignmentOffset)
|
|
5156
5156
|
return {};
|
|
5157
|
-
const w =
|
|
5157
|
+
const w = ze(o), b = tt(i), E = ze(i) === i, S = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), R = l || (E || !h ? [lr(i)] : Dc(i)), D = x !== "none";
|
|
5158
5158
|
!l && D && R.push(..._c(i, h, x, S));
|
|
5159
|
-
const O = [i, ...R], N = await It(t, y),
|
|
5159
|
+
const O = [i, ...R], N = await It(t, y), V = [];
|
|
5160
5160
|
let H = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
5161
|
-
if (u &&
|
|
5161
|
+
if (u && V.push(N[w]), g) {
|
|
5162
5162
|
const M = Nc(o, s, S);
|
|
5163
|
-
|
|
5163
|
+
V.push(N[M[0]], N[M[1]]);
|
|
5164
5164
|
}
|
|
5165
5165
|
if (H = [...H, {
|
|
5166
5166
|
placement: o,
|
|
5167
|
-
overflows:
|
|
5168
|
-
}], !
|
|
5167
|
+
overflows: V
|
|
5168
|
+
}], !V.every((M) => M <= 0)) {
|
|
5169
5169
|
var U, _;
|
|
5170
5170
|
const M = (((U = a.flip) == null ? void 0 : U.index) || 0) + 1, X = O[M];
|
|
5171
5171
|
if (X)
|
|
@@ -5231,7 +5231,7 @@ const $c = function(e) {
|
|
|
5231
5231
|
} = t, {
|
|
5232
5232
|
strategy: n = "referenceHidden",
|
|
5233
5233
|
...o
|
|
5234
|
-
} =
|
|
5234
|
+
} = Ve(e, t);
|
|
5235
5235
|
switch (n) {
|
|
5236
5236
|
case "referenceHidden": {
|
|
5237
5237
|
const a = await It(t, {
|
|
@@ -5268,7 +5268,7 @@ async function Fc(e, t) {
|
|
|
5268
5268
|
placement: r,
|
|
5269
5269
|
platform: n,
|
|
5270
5270
|
elements: o
|
|
5271
|
-
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s =
|
|
5271
|
+
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = ze(r), i = At(r), c = tt(r) === "y", d = ["left", "top"].includes(s) ? -1 : 1, u = a && c ? -1 : 1, g = Ve(t, e);
|
|
5272
5272
|
let {
|
|
5273
5273
|
mainAxis: l,
|
|
5274
5274
|
crossAxis: v,
|
|
@@ -5337,10 +5337,10 @@ const Bc = function(e) {
|
|
|
5337
5337
|
}
|
|
5338
5338
|
},
|
|
5339
5339
|
...c
|
|
5340
|
-
} =
|
|
5340
|
+
} = Ve(e, t), d = {
|
|
5341
5341
|
x: r,
|
|
5342
5342
|
y: n
|
|
5343
|
-
}, u = await It(t, c), g = tt(
|
|
5343
|
+
}, u = await It(t, c), g = tt(ze(o)), l = pn(g);
|
|
5344
5344
|
let v = d[l], x = d[g];
|
|
5345
5345
|
if (a) {
|
|
5346
5346
|
const y = l === "y" ? "top" : "left", w = l === "y" ? "bottom" : "right", b = v + u[y], E = v - u[w];
|
|
@@ -5368,7 +5368,7 @@ const Bc = function(e) {
|
|
|
5368
5368
|
};
|
|
5369
5369
|
}
|
|
5370
5370
|
};
|
|
5371
|
-
},
|
|
5371
|
+
}, Vc = function(e) {
|
|
5372
5372
|
return e === void 0 && (e = {}), {
|
|
5373
5373
|
options: e,
|
|
5374
5374
|
fn(t) {
|
|
@@ -5382,12 +5382,12 @@ const Bc = function(e) {
|
|
|
5382
5382
|
offset: i = 0,
|
|
5383
5383
|
mainAxis: c = !0,
|
|
5384
5384
|
crossAxis: d = !0
|
|
5385
|
-
} =
|
|
5385
|
+
} = Ve(e, t), u = {
|
|
5386
5386
|
x: r,
|
|
5387
5387
|
y: n
|
|
5388
5388
|
}, g = tt(o), l = pn(g);
|
|
5389
5389
|
let v = u[l], x = u[g];
|
|
5390
|
-
const h =
|
|
5390
|
+
const h = Ve(i, t), y = typeof h == "number" ? {
|
|
5391
5391
|
mainAxis: h,
|
|
5392
5392
|
crossAxis: 0
|
|
5393
5393
|
} : {
|
|
@@ -5401,7 +5401,7 @@ const Bc = function(e) {
|
|
|
5401
5401
|
}
|
|
5402
5402
|
if (d) {
|
|
5403
5403
|
var w, b;
|
|
5404
|
-
const E = l === "y" ? "width" : "height", S = ["top", "left"].includes(
|
|
5404
|
+
const E = l === "y" ? "width" : "height", S = ["top", "left"].includes(ze(o)), R = a.reference[g] - a.floating[E] + (S && ((w = s.offset) == null ? void 0 : w[g]) || 0) + (S ? 0 : y.crossAxis), D = a.reference[g] + a.reference[E] + (S ? 0 : ((b = s.offset) == null ? void 0 : b[g]) || 0) - (S ? y.crossAxis : 0);
|
|
5405
5405
|
x < R ? x = R : x > D && (x = D);
|
|
5406
5406
|
}
|
|
5407
5407
|
return {
|
|
@@ -5410,7 +5410,7 @@ const Bc = function(e) {
|
|
|
5410
5410
|
};
|
|
5411
5411
|
}
|
|
5412
5412
|
};
|
|
5413
|
-
},
|
|
5413
|
+
}, zc = function(e) {
|
|
5414
5414
|
return e === void 0 && (e = {}), {
|
|
5415
5415
|
name: "size",
|
|
5416
5416
|
options: e,
|
|
@@ -5425,7 +5425,7 @@ const Bc = function(e) {
|
|
|
5425
5425
|
apply: c = () => {
|
|
5426
5426
|
},
|
|
5427
5427
|
...d
|
|
5428
|
-
} =
|
|
5428
|
+
} = Ve(e, t), u = await It(t, d), g = ze(o), l = At(o), v = tt(o) === "y", {
|
|
5429
5429
|
width: x,
|
|
5430
5430
|
height: h
|
|
5431
5431
|
} = a.floating;
|
|
@@ -5442,8 +5442,8 @@ const Bc = function(e) {
|
|
|
5442
5442
|
availableWidth: N,
|
|
5443
5443
|
availableHeight: O
|
|
5444
5444
|
});
|
|
5445
|
-
const
|
|
5446
|
-
return x !==
|
|
5445
|
+
const V = await s.getDimensions(i.floating);
|
|
5446
|
+
return x !== V.width || h !== V.height ? {
|
|
5447
5447
|
reset: {
|
|
5448
5448
|
rects: !0
|
|
5449
5449
|
}
|
|
@@ -5916,7 +5916,7 @@ function iu(e, t, r, n) {
|
|
|
5916
5916
|
}), g == null || g(), (w = v) == null || w.disconnect(), v = null, c && cancelAnimationFrame(x);
|
|
5917
5917
|
};
|
|
5918
5918
|
}
|
|
5919
|
-
const lu = Bc, cu = Wc, uu = Ic, du =
|
|
5919
|
+
const lu = Bc, cu = Wc, uu = Ic, du = zc, fu = $c, Zn = Lc, pu = Vc, gu = (e, t, r) => {
|
|
5920
5920
|
const n = /* @__PURE__ */ new Map(), o = {
|
|
5921
5921
|
platform: au,
|
|
5922
5922
|
...r
|
|
@@ -6000,7 +6000,7 @@ function vu(e) {
|
|
|
6000
6000
|
A !== D.current && (D.current = A, h(A));
|
|
6001
6001
|
}, []), E = f.useCallback((A) => {
|
|
6002
6002
|
A !== O.current && (O.current = A, w(A));
|
|
6003
|
-
}, []), S = a || x, R = s || y, D = f.useRef(null), O = f.useRef(null), N = f.useRef(u),
|
|
6003
|
+
}, []), S = a || x, R = s || y, D = f.useRef(null), O = f.useRef(null), N = f.useRef(u), V = c != null, H = jr(c), U = jr(o), _ = jr(d), Y = f.useCallback(() => {
|
|
6004
6004
|
if (!D.current || !O.current)
|
|
6005
6005
|
return;
|
|
6006
6006
|
const A = {
|
|
@@ -6037,7 +6037,7 @@ function vu(e) {
|
|
|
6037
6037
|
return H.current(S, R, Y);
|
|
6038
6038
|
Y();
|
|
6039
6039
|
}
|
|
6040
|
-
}, [S, R, Y, H,
|
|
6040
|
+
}, [S, R, Y, H, V]);
|
|
6041
6041
|
const X = f.useMemo(() => ({
|
|
6042
6042
|
reference: D,
|
|
6043
6043
|
floating: O,
|
|
@@ -6134,14 +6134,14 @@ var Su = "Arrow", Fa = f.forwardRef((e, t) => {
|
|
|
6134
6134
|
);
|
|
6135
6135
|
});
|
|
6136
6136
|
Fa.displayName = Su;
|
|
6137
|
-
var Ru = Fa, yn = "Popper", [Ba, Wa] = Rt(yn), [Pu,
|
|
6137
|
+
var Ru = Fa, yn = "Popper", [Ba, Wa] = Rt(yn), [Pu, Va] = Ba(yn), za = (e) => {
|
|
6138
6138
|
const { __scopePopper: t, children: r } = e, [n, o] = f.useState(null);
|
|
6139
6139
|
return /* @__PURE__ */ m.jsx(Pu, { scope: t, anchor: n, onAnchorChange: o, children: r });
|
|
6140
6140
|
};
|
|
6141
|
-
|
|
6141
|
+
za.displayName = yn;
|
|
6142
6142
|
var Ha = "PopperAnchor", Ua = f.forwardRef(
|
|
6143
6143
|
(e, t) => {
|
|
6144
|
-
const { __scopePopper: r, virtualRef: n, ...o } = e, a =
|
|
6144
|
+
const { __scopePopper: r, virtualRef: n, ...o } = e, a = Va(Ha, r), s = f.useRef(null), i = ge(t, s);
|
|
6145
6145
|
return f.useEffect(() => {
|
|
6146
6146
|
a.onAnchorChange((n == null ? void 0 : n.current) || s.current);
|
|
6147
6147
|
}), n ? null : /* @__PURE__ */ m.jsx(ce.div, { ...o, ref: i });
|
|
@@ -6166,7 +6166,7 @@ var xn = "PopperContent", [Au, Tu] = Ba(xn), Ya = f.forwardRef(
|
|
|
6166
6166
|
updatePositionStrategy: v = "optimized",
|
|
6167
6167
|
onPlaced: x,
|
|
6168
6168
|
...h
|
|
6169
|
-
} = e, y =
|
|
6169
|
+
} = e, y = Va(xn, r), [w, b] = f.useState(null), E = ge(t, (ke) => b(ke)), [S, R] = f.useState(null), D = Sa(S), O = (D == null ? void 0 : D.width) ?? 0, N = (D == null ? void 0 : D.height) ?? 0, V = n + (a !== "center" ? "-" + a : ""), H = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, U = Array.isArray(d) ? d : [d], _ = U.length > 0, Y = {
|
|
6170
6170
|
padding: H,
|
|
6171
6171
|
boundary: U.filter(Nu),
|
|
6172
6172
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -6174,7 +6174,7 @@ var xn = "PopperContent", [Au, Tu] = Ba(xn), Ya = f.forwardRef(
|
|
|
6174
6174
|
}, { refs: M, floatingStyles: X, placement: F, isPositioned: q, middlewareData: A } = vu({
|
|
6175
6175
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
6176
6176
|
strategy: "fixed",
|
|
6177
|
-
placement:
|
|
6177
|
+
placement: V,
|
|
6178
6178
|
whileElementsMounted: (...ke) => iu(...ke, {
|
|
6179
6179
|
animationFrame: v === "always"
|
|
6180
6180
|
}),
|
|
@@ -6331,7 +6331,7 @@ function qa(e) {
|
|
|
6331
6331
|
const [t, r = "center"] = e.split("-");
|
|
6332
6332
|
return [t, r];
|
|
6333
6333
|
}
|
|
6334
|
-
var ku =
|
|
6334
|
+
var ku = za, _u = Ua, ju = Ya, Mu = Ka, Lu = "VisuallyHidden", Xa = f.forwardRef(
|
|
6335
6335
|
(e, t) => /* @__PURE__ */ m.jsx(
|
|
6336
6336
|
ce.span,
|
|
6337
6337
|
{
|
|
@@ -6355,7 +6355,7 @@ var ku = Va, _u = Ua, ju = Ya, Mu = Ka, Lu = "VisuallyHidden", Xa = f.forwardRef
|
|
|
6355
6355
|
)
|
|
6356
6356
|
);
|
|
6357
6357
|
Xa.displayName = Lu;
|
|
6358
|
-
var Iu = Xa, [mr,
|
|
6358
|
+
var Iu = Xa, [mr, uf] = Rt("Tooltip", [
|
|
6359
6359
|
Wa
|
|
6360
6360
|
]), br = Wa(), Ja = "TooltipProvider", $u = 700, qr = "tooltip.open", [Fu, wn] = mr(Ja), Za = (e) => {
|
|
6361
6361
|
const {
|
|
@@ -6469,14 +6469,14 @@ var Xr = "TooltipTrigger", es = f.forwardRef(
|
|
|
6469
6469
|
}
|
|
6470
6470
|
);
|
|
6471
6471
|
es.displayName = Xr;
|
|
6472
|
-
var Wu = "TooltipPortal", [
|
|
6472
|
+
var Wu = "TooltipPortal", [df, Vu] = mr(Wu, {
|
|
6473
6473
|
forceMount: void 0
|
|
6474
6474
|
}), St = "TooltipContent", ts = f.forwardRef(
|
|
6475
6475
|
(e, t) => {
|
|
6476
|
-
const r =
|
|
6477
|
-
return /* @__PURE__ */ m.jsx(Bt, { present: n || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ m.jsx(rs, { side: o, ...a, ref: t }) : /* @__PURE__ */ m.jsx(
|
|
6476
|
+
const r = Vu(St, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...a } = e, s = xr(St, e.__scopeTooltip);
|
|
6477
|
+
return /* @__PURE__ */ m.jsx(Bt, { present: n || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ m.jsx(rs, { side: o, ...a, ref: t }) : /* @__PURE__ */ m.jsx(zu, { side: o, ...a, ref: t }) });
|
|
6478
6478
|
}
|
|
6479
|
-
),
|
|
6479
|
+
), zu = f.forwardRef((e, t) => {
|
|
6480
6480
|
const r = xr(St, e.__scopeTooltip), n = wn(St, e.__scopeTooltip), o = f.useRef(null), a = ge(t, o), [s, i] = f.useState(null), { trigger: c, onClose: d } = r, u = o.current, { onPointerInTransitChange: g } = n, l = f.useCallback(() => {
|
|
6481
6481
|
i(null), g(!1);
|
|
6482
6482
|
}, [g]), v = f.useCallback(
|
|
@@ -6671,7 +6671,7 @@ const ss = Zu, is = Qu, ls = ed, cs = td, En = f.forwardRef(({ className: e, sid
|
|
|
6671
6671
|
}
|
|
6672
6672
|
));
|
|
6673
6673
|
En.displayName = as.displayName;
|
|
6674
|
-
const
|
|
6674
|
+
const ff = ({
|
|
6675
6675
|
displayName: e,
|
|
6676
6676
|
fieldId: t,
|
|
6677
6677
|
children: r
|
|
@@ -6728,7 +6728,7 @@ const uf = ({
|
|
|
6728
6728
|
] }),
|
|
6729
6729
|
/* @__PURE__ */ m.jsx("div", { className: "header-center" }),
|
|
6730
6730
|
/* @__PURE__ */ m.jsxs("div", { className: "actions", children: [
|
|
6731
|
-
/* @__PURE__ */ m.jsx(Je, { variant: "ghost", size: "icon", disabled: !u, onClick: s, children: /* @__PURE__ */ m.jsx(
|
|
6731
|
+
/* @__PURE__ */ m.jsx(Je, { variant: "ghost", size: "icon", disabled: !u, onClick: s, children: /* @__PURE__ */ m.jsx(zs, { className: "sm-icon" }) }),
|
|
6732
6732
|
/* @__PURE__ */ m.jsx(
|
|
6733
6733
|
Je,
|
|
6734
6734
|
{
|
|
@@ -6820,7 +6820,7 @@ const uf = ({
|
|
|
6820
6820
|
onClick: () => {
|
|
6821
6821
|
n("right");
|
|
6822
6822
|
},
|
|
6823
|
-
children: /* @__PURE__ */ m.jsx(
|
|
6823
|
+
children: /* @__PURE__ */ m.jsx(Vs, { className: "sm-icon" })
|
|
6824
6824
|
}
|
|
6825
6825
|
)
|
|
6826
6826
|
] });
|
|
@@ -6924,7 +6924,7 @@ const cd = ({
|
|
|
6924
6924
|
}
|
|
6925
6925
|
) });
|
|
6926
6926
|
};
|
|
6927
|
-
var Cn = "Progress", Sn = 100, [ud,
|
|
6927
|
+
var Cn = "Progress", Sn = 100, [ud, pf] = Rt(Cn), [dd, fd] = ud(Cn), fs = f.forwardRef(
|
|
6928
6928
|
(e, t) => {
|
|
6929
6929
|
const {
|
|
6930
6930
|
__scopeProgress: r,
|
|
@@ -7116,16 +7116,16 @@ Md(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-ico
|
|
|
7116
7116
|
function er(e) {
|
|
7117
7117
|
return e.label !== void 0;
|
|
7118
7118
|
}
|
|
7119
|
-
var Ld = 3, Id = "32px", $d = 4e3, Fd = 356, Bd = 14, Wd = 20,
|
|
7120
|
-
function
|
|
7119
|
+
var Ld = 3, Id = "32px", $d = 4e3, Fd = 356, Bd = 14, Wd = 20, Vd = 200;
|
|
7120
|
+
function zd(...e) {
|
|
7121
7121
|
return e.filter(Boolean).join(" ");
|
|
7122
7122
|
}
|
|
7123
7123
|
var Hd = (e) => {
|
|
7124
7124
|
var t, r, n, o, a, s, i, c, d, u;
|
|
7125
|
-
let { invert: g, toast: l, unstyled: v, interacting: x, setHeights: h, visibleToasts: y, heights: w, index: b, toasts: E, expanded: S, removeToast: R, defaultRichColors: D, closeButton: O, style: N, cancelButtonStyle:
|
|
7125
|
+
let { invert: g, toast: l, unstyled: v, interacting: x, setHeights: h, visibleToasts: y, heights: w, index: b, toasts: E, expanded: S, removeToast: R, defaultRichColors: D, closeButton: O, style: N, cancelButtonStyle: V, actionButtonStyle: H, className: U = "", descriptionClassName: _ = "", duration: Y, position: M, gap: X, loadingIcon: F, expandByDefault: q, classNames: A, icons: B, closeButtonAriaLabel: oe = "Close toast", pauseWhenPageIsHidden: I, cn: W } = e, [k, J] = P.useState(!1), [te, G] = P.useState(!1), [we, ve] = P.useState(!1), [Ee, he] = P.useState(!1), [dt, Ie] = P.useState(0), [ke, nt] = P.useState(0), $e = P.useRef(null), Ae = P.useRef(null), ft = b === 0, Ue = b + 1 <= y, ie = l.type, Ce = l.dismissible !== !1, Ot = l.className || "", wr = l.descriptionClassName || "", ot = P.useMemo(() => w.findIndex((L) => L.toastId === l.id) || 0, [w, l.id]), Vt = P.useMemo(() => {
|
|
7126
7126
|
var L;
|
|
7127
7127
|
return (L = l.closeButton) != null ? L : O;
|
|
7128
|
-
}, [l.closeButton, O]), pt = P.useMemo(() => l.duration || Y || $d, [l.duration, Y]), Nt = P.useRef(0), Ye = P.useRef(0),
|
|
7128
|
+
}, [l.closeButton, O]), pt = P.useMemo(() => l.duration || Y || $d, [l.duration, Y]), Nt = P.useRef(0), Ye = P.useRef(0), zt = P.useRef(0), Ge = P.useRef(null), [Ht, Er] = M.split("-"), Ut = P.useMemo(() => w.reduce((L, Q, Z) => Z >= ot ? L : L + Q.height, 0), [w, ot]), gt = Od(), Yt = l.invert || g, _e = ie === "loading";
|
|
7129
7129
|
Ye.current = P.useMemo(() => ot * X + Ut, [ot, Ut]), P.useEffect(() => {
|
|
7130
7130
|
J(!0);
|
|
7131
7131
|
}, []), P.useLayoutEffect(() => {
|
|
@@ -7138,17 +7138,17 @@ var Hd = (e) => {
|
|
|
7138
7138
|
let Se = P.useCallback(() => {
|
|
7139
7139
|
G(!0), Ie(Ye.current), h((L) => L.filter((Q) => Q.toastId !== l.id)), setTimeout(() => {
|
|
7140
7140
|
R(l);
|
|
7141
|
-
},
|
|
7141
|
+
}, Vd);
|
|
7142
7142
|
}, [l, R, h, Ye]);
|
|
7143
7143
|
P.useEffect(() => {
|
|
7144
7144
|
if (l.promise && ie === "loading" || l.duration === 1 / 0 || l.type === "loading") return;
|
|
7145
7145
|
let L, Q = pt;
|
|
7146
7146
|
return S || x || I && gt ? (() => {
|
|
7147
|
-
if (
|
|
7147
|
+
if (zt.current < Nt.current) {
|
|
7148
7148
|
let Z = (/* @__PURE__ */ new Date()).getTime() - Nt.current;
|
|
7149
7149
|
Q = Q - Z;
|
|
7150
7150
|
}
|
|
7151
|
-
|
|
7151
|
+
zt.current = (/* @__PURE__ */ new Date()).getTime();
|
|
7152
7152
|
})() : Q !== 1 / 0 && (Nt.current = (/* @__PURE__ */ new Date()).getTime(), L = setTimeout(() => {
|
|
7153
7153
|
var Z;
|
|
7154
7154
|
(Z = l.onAutoClose) == null || Z.call(l, l), Se();
|
|
@@ -7182,11 +7182,11 @@ var Hd = (e) => {
|
|
|
7182
7182
|
if (!Ge.current || !Ce) return;
|
|
7183
7183
|
let Z = L.clientY - Ge.current.y, Re = L.clientX - Ge.current.x, me = (Ht === "top" ? Math.min : Math.max)(0, Z), at = L.pointerType === "touch" ? 10 : 2;
|
|
7184
7184
|
Math.abs(me) > at ? (Q = Ae.current) == null || Q.style.setProperty("--swipe-amount", `${Z}px`) : Math.abs(Re) > at && (Ge.current = null);
|
|
7185
|
-
} },
|
|
7185
|
+
} }, Vt && !l.jsx ? P.createElement("button", { "aria-label": oe, "data-disabled": _e, "data-close-button": !0, onClick: _e || !Ce ? () => {
|
|
7186
7186
|
} : () => {
|
|
7187
7187
|
var L;
|
|
7188
7188
|
Se(), (L = l.onDismiss) == null || L.call(l, l);
|
|
7189
|
-
}, className: W(A == null ? void 0 : A.closeButton, (o = l == null ? void 0 : l.classNames) == null ? void 0 : o.closeButton) }, P.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, P.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), P.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, l.jsx || P.isValidElement(l.title) ? l.jsx || l.title : P.createElement(P.Fragment, null, ie || l.icon || l.promise ? P.createElement("div", { "data-icon": "", className: W(A == null ? void 0 : A.icon, (a = l == null ? void 0 : l.classNames) == null ? void 0 : a.icon) }, l.promise || l.type === "loading" && !l.icon ? l.icon || Dt() : null, l.type !== "loading" ? l.icon || (B == null ? void 0 : B[ie]) || Ed(ie) : null) : null, P.createElement("div", { "data-content": "", className: W(A == null ? void 0 : A.content, (s = l == null ? void 0 : l.classNames) == null ? void 0 : s.content) }, P.createElement("div", { "data-title": "", className: W(A == null ? void 0 : A.title, (i = l == null ? void 0 : l.classNames) == null ? void 0 : i.title) }, l.title), l.description ? P.createElement("div", { "data-description": "", className: W(_, wr, A == null ? void 0 : A.description, (c = l == null ? void 0 : l.classNames) == null ? void 0 : c.description) }, l.description) : null), P.isValidElement(l.cancel) ? l.cancel : l.cancel && er(l.cancel) ? P.createElement("button", { "data-button": !0, "data-cancel": !0, style: l.cancelButtonStyle ||
|
|
7189
|
+
}, className: W(A == null ? void 0 : A.closeButton, (o = l == null ? void 0 : l.classNames) == null ? void 0 : o.closeButton) }, P.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, P.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), P.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, l.jsx || P.isValidElement(l.title) ? l.jsx || l.title : P.createElement(P.Fragment, null, ie || l.icon || l.promise ? P.createElement("div", { "data-icon": "", className: W(A == null ? void 0 : A.icon, (a = l == null ? void 0 : l.classNames) == null ? void 0 : a.icon) }, l.promise || l.type === "loading" && !l.icon ? l.icon || Dt() : null, l.type !== "loading" ? l.icon || (B == null ? void 0 : B[ie]) || Ed(ie) : null) : null, P.createElement("div", { "data-content": "", className: W(A == null ? void 0 : A.content, (s = l == null ? void 0 : l.classNames) == null ? void 0 : s.content) }, P.createElement("div", { "data-title": "", className: W(A == null ? void 0 : A.title, (i = l == null ? void 0 : l.classNames) == null ? void 0 : i.title) }, l.title), l.description ? P.createElement("div", { "data-description": "", className: W(_, wr, A == null ? void 0 : A.description, (c = l == null ? void 0 : l.classNames) == null ? void 0 : c.description) }, l.description) : null), P.isValidElement(l.cancel) ? l.cancel : l.cancel && er(l.cancel) ? P.createElement("button", { "data-button": !0, "data-cancel": !0, style: l.cancelButtonStyle || V, onClick: (L) => {
|
|
7190
7190
|
var Q, Z;
|
|
7191
7191
|
er(l.cancel) && Ce && ((Z = (Q = l.cancel).onClick) == null || Z.call(Q, L), Se());
|
|
7192
7192
|
}, className: W(A == null ? void 0 : A.cancelButton, (d = l == null ? void 0 : l.classNames) == null ? void 0 : d.cancelButton) }, l.cancel.label) : null, P.isValidElement(l.action) ? l.action : l.action && er(l.action) ? P.createElement("button", { "data-button": !0, "data-action": !0, style: l.actionButtonStyle || H, onClick: (L) => {
|
|
@@ -7200,7 +7200,7 @@ function ao() {
|
|
|
7200
7200
|
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
|
7201
7201
|
}
|
|
7202
7202
|
var Ud = (e) => {
|
|
7203
|
-
let { invert: t, position: r = "bottom-right", hotkey: n = ["altKey", "KeyT"], expand: o, closeButton: a, className: s, offset: i, theme: c = "light", richColors: d, duration: u, style: g, visibleToasts: l = Ld, toastOptions: v, dir: x = ao(), gap: h = Bd, loadingIcon: y, icons: w, containerAriaLabel: b = "Notifications", pauseWhenPageIsHidden: E, cn: S =
|
|
7203
|
+
let { invert: t, position: r = "bottom-right", hotkey: n = ["altKey", "KeyT"], expand: o, closeButton: a, className: s, offset: i, theme: c = "light", richColors: d, duration: u, style: g, visibleToasts: l = Ld, toastOptions: v, dir: x = ao(), gap: h = Bd, loadingIcon: y, icons: w, containerAriaLabel: b = "Notifications", pauseWhenPageIsHidden: E, cn: S = zd } = e, [R, D] = P.useState([]), O = P.useMemo(() => Array.from(new Set([r].concat(R.filter((I) => I.position).map((I) => I.position)))), [R, r]), [N, V] = P.useState([]), [H, U] = P.useState(!1), [_, Y] = P.useState(!1), [M, X] = P.useState(c !== "system" ? c : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), F = P.useRef(null), q = n.join("+").replace(/Key/g, "").replace(/Digit/g, ""), A = P.useRef(null), B = P.useRef(!1), oe = P.useCallback((I) => {
|
|
7204
7204
|
var W;
|
|
7205
7205
|
(W = R.find((k) => k.id === I.id)) != null && W.delete || be.dismiss(I.id), D((k) => k.filter(({ id: J }) => J !== I.id));
|
|
7206
7206
|
}, [R]);
|
|
@@ -7250,7 +7250,7 @@ var Ud = (e) => {
|
|
|
7250
7250
|
G.target instanceof HTMLElement && G.target.dataset.dismissible === "false" || Y(!0);
|
|
7251
7251
|
}, onPointerUp: () => Y(!1) }, R.filter((G) => !G.position && W === 0 || G.position === I).map((G, we) => {
|
|
7252
7252
|
var ve, Ee;
|
|
7253
|
-
return P.createElement(Hd, { key: G.id, icons: w, index: we, toast: G, defaultRichColors: d, duration: (ve = v == null ? void 0 : v.duration) != null ? ve : u, className: v == null ? void 0 : v.className, descriptionClassName: v == null ? void 0 : v.descriptionClassName, invert: t, visibleToasts: l, closeButton: (Ee = v == null ? void 0 : v.closeButton) != null ? Ee : a, interacting: _, position: I, style: v == null ? void 0 : v.style, unstyled: v == null ? void 0 : v.unstyled, classNames: v == null ? void 0 : v.classNames, cancelButtonStyle: v == null ? void 0 : v.cancelButtonStyle, actionButtonStyle: v == null ? void 0 : v.actionButtonStyle, removeToast: oe, toasts: R.filter((he) => he.position == G.position), heights: N.filter((he) => he.position == G.position), setHeights:
|
|
7253
|
+
return P.createElement(Hd, { key: G.id, icons: w, index: we, toast: G, defaultRichColors: d, duration: (ve = v == null ? void 0 : v.duration) != null ? ve : u, className: v == null ? void 0 : v.className, descriptionClassName: v == null ? void 0 : v.descriptionClassName, invert: t, visibleToasts: l, closeButton: (Ee = v == null ? void 0 : v.closeButton) != null ? Ee : a, interacting: _, position: I, style: v == null ? void 0 : v.style, unstyled: v == null ? void 0 : v.unstyled, classNames: v == null ? void 0 : v.classNames, cancelButtonStyle: v == null ? void 0 : v.cancelButtonStyle, actionButtonStyle: v == null ? void 0 : v.actionButtonStyle, removeToast: oe, toasts: R.filter((he) => he.position == G.position), heights: N.filter((he) => he.position == G.position), setHeights: V, expandByDefault: o, gap: h, loadingIcon: y, expanded: H, pauseWhenPageIsHidden: E, cn: S });
|
|
7254
7254
|
}));
|
|
7255
7255
|
})) : null;
|
|
7256
7256
|
};
|
|
@@ -7343,7 +7343,7 @@ const qd = {
|
|
|
7343
7343
|
"https://www.yext.com",
|
|
7344
7344
|
"https://app-qa.eu.yext.com",
|
|
7345
7345
|
"https://app.eu.yext.com"
|
|
7346
|
-
], ue = new Kd(),
|
|
7346
|
+
], ue = new Kd(), gf = ({ document: e, componentRegistry: t }) => {
|
|
7347
7347
|
const [r, n] = le(), [o, a] = le(!1), [s, i] = le(), [c, d] = le(!1), [u, g] = le(), [l, v] = le(!1), [x, h] = le(void 0), [y, w] = le(void 0), [b, E] = le(), [S, R] = le(), [D, O] = le(!1);
|
|
7348
7348
|
e && ue.logData("DOCUMENT", e);
|
|
7349
7349
|
const N = Lt(() => b ? Jr(
|
|
@@ -7371,10 +7371,10 @@ const qd = {
|
|
|
7371
7371
|
console.warn("pageSets are not defined");
|
|
7372
7372
|
}
|
|
7373
7373
|
}, [b == null ? void 0 : b.isDevMode]);
|
|
7374
|
-
const
|
|
7374
|
+
const V = () => {
|
|
7375
7375
|
ue.logFunc("clearLocalStorage"), window.localStorage.removeItem(N());
|
|
7376
7376
|
}, H = () => {
|
|
7377
|
-
ue.logFunc("clearHistory"),
|
|
7377
|
+
ue.logFunc("clearHistory"), V(), q();
|
|
7378
7378
|
}, U = ar(!0);
|
|
7379
7379
|
Te(() => {
|
|
7380
7380
|
if (U.current) {
|
|
@@ -7407,7 +7407,7 @@ const qd = {
|
|
|
7407
7407
|
return;
|
|
7408
7408
|
}
|
|
7409
7409
|
if (!u) {
|
|
7410
|
-
|
|
7410
|
+
V(), ue.log("Prod Mode - No saveState. Using data from Content"), s && n({
|
|
7411
7411
|
histories: [{ id: "root", state: { data: s } }],
|
|
7412
7412
|
appendData: !1
|
|
7413
7413
|
}), a(!0);
|
|
@@ -7446,11 +7446,11 @@ const qd = {
|
|
|
7446
7446
|
}), a(!0);
|
|
7447
7447
|
return;
|
|
7448
7448
|
}
|
|
7449
|
-
|
|
7449
|
+
V();
|
|
7450
7450
|
}, [
|
|
7451
7451
|
n,
|
|
7452
7452
|
a,
|
|
7453
|
-
|
|
7453
|
+
V,
|
|
7454
7454
|
Jr
|
|
7455
7455
|
]);
|
|
7456
7456
|
Te(() => {
|
|
@@ -7522,7 +7522,7 @@ const qd = {
|
|
|
7522
7522
|
puckConfig: S,
|
|
7523
7523
|
isLoading: I,
|
|
7524
7524
|
puckInitialHistory: r,
|
|
7525
|
-
clearHistory: b.isDevMode && !b.devOverride ?
|
|
7525
|
+
clearHistory: b.isDevMode && !b.devOverride ? V : H,
|
|
7526
7526
|
templateMetadata: b,
|
|
7527
7527
|
saveState: u,
|
|
7528
7528
|
saveSaveState: F,
|
|
@@ -7534,15 +7534,7 @@ const qd = {
|
|
|
7534
7534
|
),
|
|
7535
7535
|
/* @__PURE__ */ m.jsx(Yd, { closeButton: !0, richColors: !0 })
|
|
7536
7536
|
] });
|
|
7537
|
-
}, Mr = (e) => JSON.parse(e.replace(/\\"/g, '"')),
|
|
7538
|
-
const [e, t] = le();
|
|
7539
|
-
return Mt("getEntityDocument", Pe, (r, n) => {
|
|
7540
|
-
t(n), r({
|
|
7541
|
-
status: "success",
|
|
7542
|
-
payload: { message: "getEntityDocument received" }
|
|
7543
|
-
});
|
|
7544
|
-
}), e;
|
|
7545
|
-
}, gf = () => {
|
|
7537
|
+
}, Mr = (e) => JSON.parse(e.replace(/\\"/g, '"')), vf = () => {
|
|
7546
7538
|
const [e, t] = le(void 0);
|
|
7547
7539
|
return Mt("getTemplateStream", Pe, (r, n) => {
|
|
7548
7540
|
t(n), r({
|
|
@@ -7552,7 +7544,7 @@ const qd = {
|
|
|
7552
7544
|
}), e;
|
|
7553
7545
|
}, xs = f.createContext(
|
|
7554
7546
|
void 0
|
|
7555
|
-
),
|
|
7547
|
+
), hf = ({
|
|
7556
7548
|
entityFields: e,
|
|
7557
7549
|
children: t
|
|
7558
7550
|
}) => /* @__PURE__ */ m.jsx(xs.Provider, { value: e, children: t }), Xd = () => {
|
|
@@ -7566,73 +7558,75 @@ const qd = {
|
|
|
7566
7558
|
"slug",
|
|
7567
7559
|
"c_visualConfigurations",
|
|
7568
7560
|
"c_pages_layouts"
|
|
7569
|
-
], Zd = [
|
|
7570
|
-
var
|
|
7561
|
+
], Zd = [], ws = (e) => Es(e, ""), Es = (e, t) => {
|
|
7562
|
+
var o, a, s;
|
|
7571
7563
|
const r = t ? `${t}.${e.name}` : e.name;
|
|
7572
7564
|
if (Zd.includes(Cs(e)))
|
|
7573
7565
|
return [{ name: r, schemaField: e }];
|
|
7574
|
-
if (
|
|
7575
|
-
|
|
7566
|
+
if (e.definition.isList)
|
|
7567
|
+
return [];
|
|
7568
|
+
const n = [
|
|
7569
|
+
{ name: r, schemaField: e }
|
|
7570
|
+
];
|
|
7571
|
+
if ((o = e.children) != null && o.fields && ((s = (a = e.children) == null ? void 0 : a.fields) == null ? void 0 : s.length) > 0)
|
|
7576
7572
|
for (const i of e.children.fields)
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
}
|
|
7580
|
-
return [{ name: r, schemaField: e }];
|
|
7573
|
+
n.push(...Es(i, r));
|
|
7574
|
+
return n;
|
|
7581
7575
|
}, Cs = (e) => e.definition.typeName || e.definition.typeRegistryId || Object.entries(e.definition.type)[0][1];
|
|
7582
7576
|
function Qd(e, t, r) {
|
|
7583
7577
|
const n = e.get(t) || [];
|
|
7584
7578
|
return n.push(r), e.set(t, n), e;
|
|
7585
7579
|
}
|
|
7586
|
-
const ef = (e
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
const s = Cs(a.schemaField);
|
|
7592
|
-
s && (r = Qd(r, s, a.name));
|
|
7580
|
+
const ef = (e) => e.reduce((t, r) => {
|
|
7581
|
+
const n = ws(r);
|
|
7582
|
+
for (const o of n) {
|
|
7583
|
+
const a = Cs(o.schemaField);
|
|
7584
|
+
a && (t = Qd(t, a, o.name));
|
|
7593
7585
|
}
|
|
7594
|
-
return
|
|
7586
|
+
return t;
|
|
7595
7587
|
}, /* @__PURE__ */ new Map()), Ss = (e) => {
|
|
7596
7588
|
let r = Xd().stream.schema.fields.filter(
|
|
7597
|
-
(
|
|
7589
|
+
(o) => !Jd.includes(o.name)
|
|
7598
7590
|
);
|
|
7599
7591
|
if (e != null && e.allowList) {
|
|
7600
|
-
const
|
|
7601
|
-
e.allowList.forEach((
|
|
7602
|
-
|
|
7603
|
-
`The entity field filter allowList included ${
|
|
7592
|
+
const o = r.map((a) => a.name);
|
|
7593
|
+
e.allowList.forEach((a) => {
|
|
7594
|
+
o.includes(a) || console.warn(
|
|
7595
|
+
`The entity field filter allowList included ${a}, which does not exist in the stream.`
|
|
7604
7596
|
);
|
|
7605
7597
|
}), r = r.filter(
|
|
7606
|
-
(
|
|
7598
|
+
(a) => e.allowList.includes(a.name)
|
|
7607
7599
|
);
|
|
7608
7600
|
}
|
|
7609
|
-
|
|
7610
|
-
(
|
|
7611
|
-
))
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
);
|
|
7620
|
-
});
|
|
7601
|
+
e != null && e.disallowList && (r = r.filter(
|
|
7602
|
+
(o) => !e.disallowList.includes(o.name)
|
|
7603
|
+
));
|
|
7604
|
+
let n = [];
|
|
7605
|
+
for (const o of r) {
|
|
7606
|
+
const a = ws(o);
|
|
7607
|
+
for (const s of a)
|
|
7608
|
+
n.push({
|
|
7609
|
+
...s.schemaField,
|
|
7610
|
+
name: s.name
|
|
7611
|
+
});
|
|
7621
7612
|
}
|
|
7622
|
-
if (e != null && e.
|
|
7623
|
-
const n = [];
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
}
|
|
7632
|
-
r = n;
|
|
7613
|
+
if (e != null && e.types) {
|
|
7614
|
+
const o = ef(n), a = [];
|
|
7615
|
+
e.types.forEach((s) => {
|
|
7616
|
+
a.push(
|
|
7617
|
+
...n.filter((i) => {
|
|
7618
|
+
var c;
|
|
7619
|
+
return (c = o.get(s)) == null ? void 0 : c.includes(i.name);
|
|
7620
|
+
})
|
|
7621
|
+
);
|
|
7622
|
+
}), n = a;
|
|
7633
7623
|
}
|
|
7634
|
-
return
|
|
7635
|
-
},
|
|
7624
|
+
return n;
|
|
7625
|
+
}, tf = ["type.string", "type.phone"], rf = (e) => {
|
|
7626
|
+
for (const t of tf)
|
|
7627
|
+
if (e.includes(t))
|
|
7628
|
+
return !0;
|
|
7629
|
+
}, mf = (e) => ({
|
|
7636
7630
|
type: "custom",
|
|
7637
7631
|
label: e.label,
|
|
7638
7632
|
render: ({ field: t, value: r, onChange: n }) => {
|
|
@@ -7654,13 +7648,13 @@ const ef = (e, t) => e.reduce((r, n) => {
|
|
|
7654
7648
|
onChange: (a) => {
|
|
7655
7649
|
n({
|
|
7656
7650
|
fieldName: a,
|
|
7657
|
-
staticValue: r.staticValue
|
|
7651
|
+
staticValue: (r == null ? void 0 : r.staticValue) ?? ""
|
|
7658
7652
|
});
|
|
7659
7653
|
},
|
|
7660
7654
|
value: r == null ? void 0 : r.fieldName
|
|
7661
7655
|
}
|
|
7662
7656
|
) }),
|
|
7663
|
-
/* @__PURE__ */ m.jsx(
|
|
7657
|
+
rf(e.filter.types) && /* @__PURE__ */ m.jsx(
|
|
7664
7658
|
$r,
|
|
7665
7659
|
{
|
|
7666
7660
|
label: "Static Value",
|
|
@@ -7669,7 +7663,7 @@ const ef = (e, t) => e.reduce((r, n) => {
|
|
|
7669
7663
|
Fr,
|
|
7670
7664
|
{
|
|
7671
7665
|
onChange: (a) => n({
|
|
7672
|
-
fieldName: r.fieldName,
|
|
7666
|
+
fieldName: (r == null ? void 0 : r.fieldName) ?? "",
|
|
7673
7667
|
staticValue: a
|
|
7674
7668
|
}),
|
|
7675
7669
|
value: r == null ? void 0 : r.staticValue,
|
|
@@ -7682,7 +7676,15 @@ const ef = (e, t) => e.reduce((r, n) => {
|
|
|
7682
7676
|
)
|
|
7683
7677
|
] });
|
|
7684
7678
|
}
|
|
7685
|
-
}),
|
|
7679
|
+
}), bf = () => {
|
|
7680
|
+
const [e, t] = le();
|
|
7681
|
+
return Mt("getEntityDocument", Pe, (r, n) => {
|
|
7682
|
+
t(n), r({
|
|
7683
|
+
status: "success",
|
|
7684
|
+
payload: { message: "getEntityDocument received" }
|
|
7685
|
+
});
|
|
7686
|
+
}), e;
|
|
7687
|
+
}, yf = (e) => {
|
|
7686
7688
|
const t = Ss(e.filter), r = {};
|
|
7687
7689
|
return r[e.fieldName] = {
|
|
7688
7690
|
label: "Entity Field",
|
|
@@ -7707,7 +7709,7 @@ const ef = (e, t) => e.reduce((r, n) => {
|
|
|
7707
7709
|
content: [],
|
|
7708
7710
|
zones: {}
|
|
7709
7711
|
});
|
|
7710
|
-
function
|
|
7712
|
+
function xf(e, t) {
|
|
7711
7713
|
var i, c, d;
|
|
7712
7714
|
if (!t)
|
|
7713
7715
|
throw new Error(
|
|
@@ -7775,37 +7777,39 @@ function Lr(e, t) {
|
|
|
7775
7777
|
}
|
|
7776
7778
|
return e;
|
|
7777
7779
|
}
|
|
7778
|
-
const
|
|
7779
|
-
if (t
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
o
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7780
|
+
const wf = (e, t) => {
|
|
7781
|
+
if (!(!t || typeof t != "object" || !("fieldName" in t) || !("staticValue" in t))) {
|
|
7782
|
+
if (t.fieldName === "")
|
|
7783
|
+
return t.staticValue;
|
|
7784
|
+
try {
|
|
7785
|
+
const r = t.fieldName.split(".");
|
|
7786
|
+
let n = !1, o = e;
|
|
7787
|
+
for (let a = 0; a < r.length; a++)
|
|
7788
|
+
if ((o == null ? void 0 : o[r[a]]) !== void 0)
|
|
7789
|
+
o = o[r[a]];
|
|
7790
|
+
else {
|
|
7791
|
+
n = !0;
|
|
7792
|
+
break;
|
|
7793
|
+
}
|
|
7794
|
+
if (!n)
|
|
7795
|
+
return o;
|
|
7796
|
+
} catch (r) {
|
|
7797
|
+
console.error("Error in resolveYextEntityField:", r);
|
|
7798
|
+
}
|
|
7799
|
+
return console.warn(
|
|
7800
|
+
`The field ${t.fieldName} was not found in the document, defaulting to static value ${t.staticValue}.`
|
|
7801
|
+
), t.staticValue;
|
|
7795
7802
|
}
|
|
7796
|
-
return console.warn(
|
|
7797
|
-
`The field ${t.fieldName} was not found in the document, defaulting to static value ${t.staticValue}.`
|
|
7798
|
-
), t.staticValue;
|
|
7799
7803
|
};
|
|
7800
7804
|
export {
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7805
|
+
gf as Editor,
|
|
7806
|
+
ff as EntityField,
|
|
7807
|
+
hf as EntityFieldsProvider,
|
|
7808
|
+
mf as YextEntityFieldSelector,
|
|
7809
|
+
yf as renderEntityFields,
|
|
7810
|
+
xf as resolveVisualEditorData,
|
|
7811
|
+
wf as resolveYextEntityField,
|
|
7808
7812
|
Xd as useEntityFields,
|
|
7809
|
-
|
|
7810
|
-
|
|
7813
|
+
bf as usePlatformBridgeDocument,
|
|
7814
|
+
vf as usePlatformBridgeEntityFields
|
|
7811
7815
|
};
|