@stackable-labs/embeddables 1.86.2 → 1.87.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.js CHANGED
@@ -5,7 +5,7 @@ import * as kn from "react-dom";
5
5
  import hs from "react-dom";
6
6
  const nl = () => {
7
7
  try {
8
- return "7c46f01e-b9fa-4ac9-9a5e-95b60e0c0c8c";
8
+ return "3e897298-16b3-4c91-b028-4ccaba65beed";
9
9
  } catch {
10
10
  return "dev";
11
11
  }
@@ -45,9 +45,9 @@ const nl = () => {
45
45
  }
46
46
  t.appendChild(o);
47
47
  const a = {
48
+ manifest: e.manifest,
48
49
  extensionId: e.id,
49
50
  iframe: o,
50
- manifest: e.manifest,
51
51
  ready: !1,
52
52
  expectedOrigin: s,
53
53
  messageHandlers: /* @__PURE__ */ new Set()
@@ -910,7 +910,7 @@ function Bl(e) {
910
910
  }
911
911
  const Hl = (e) => {
912
912
  var t, n, o, r, s, a, i, c, d;
913
- const { invert: u, toast: l, unstyled: m, interacting: h, setHeights: b, visibleToasts: g, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: R, closeButton: T, style: N, cancelButtonStyle: E, actionButtonStyle: L, className: W = "", descriptionClassName: M = "", duration: F, position: H, gap: O, expandByDefault: K, classNames: A, icons: z, closeButtonAriaLabel: U = "Close toast" } = e, [k, S] = I.useState(null), [_, $] = I.useState(null), [P, D] = I.useState(!1), [B, J] = I.useState(!1), [j, Y] = I.useState(!1), [ee, te] = I.useState(!1), [se, oe] = I.useState(!1), [ue, fe] = I.useState(0), [at, Ke] = I.useState(0), Te = I.useRef(l.duration || F || wr), Zt = I.useRef(null), ye = I.useRef(null), Wc = y === 0, Uc = y + 1 <= g, Se = l.type, gt = l.dismissible !== !1, jc = l.className || "", Gc = l.descriptionClassName || "", Jt = I.useMemo(() => v.findIndex((ne) => ne.toastId === l.id) || 0, [
913
+ const { invert: u, toast: l, unstyled: m, interacting: h, setHeights: b, visibleToasts: g, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: R, closeButton: T, style: N, cancelButtonStyle: E, actionButtonStyle: L, className: W = "", descriptionClassName: M = "", duration: F, position: H, gap: O, expandByDefault: K, classNames: A, icons: D, closeButtonAriaLabel: U = "Close toast" } = e, [k, S] = I.useState(null), [_, $] = I.useState(null), [P, z] = I.useState(!1), [B, J] = I.useState(!1), [j, Y] = I.useState(!1), [ee, te] = I.useState(!1), [se, oe] = I.useState(!1), [ue, fe] = I.useState(0), [at, Ke] = I.useState(0), Te = I.useRef(l.duration || F || wr), Zt = I.useRef(null), ye = I.useRef(null), Wc = y === 0, Uc = y + 1 <= g, Se = l.type, gt = l.dismissible !== !1, jc = l.className || "", Gc = l.descriptionClassName || "", Jt = I.useMemo(() => v.findIndex((ne) => ne.toastId === l.id) || 0, [
914
914
  v,
915
915
  l.id
916
916
  ]), Yc = I.useMemo(() => {
@@ -934,7 +934,7 @@ const Hl = (e) => {
934
934
  }, [
935
935
  fr
936
936
  ]), I.useEffect(() => {
937
- D(!0);
937
+ z(!0);
938
938
  }, []), I.useEffect(() => {
939
939
  const ne = ye.current;
940
940
  if (ne) {
@@ -1016,19 +1016,19 @@ const Hl = (e) => {
1016
1016
  ]);
1017
1017
  function Zc() {
1018
1018
  var ne;
1019
- if (z != null && z.loading) {
1019
+ if (D != null && D.loading) {
1020
1020
  var me;
1021
1021
  return /* @__PURE__ */ I.createElement("div", {
1022
1022
  className: ze(A == null ? void 0 : A.loader, l == null || (me = l.classNames) == null ? void 0 : me.loader, "sonner-loader"),
1023
1023
  "data-visible": Se === "loading"
1024
- }, z.loading);
1024
+ }, D.loading);
1025
1025
  }
1026
1026
  return /* @__PURE__ */ I.createElement(wl, {
1027
1027
  className: ze(A == null ? void 0 : A.loader, l == null || (ne = l.classNames) == null ? void 0 : ne.loader),
1028
1028
  visible: Se === "loading"
1029
1029
  });
1030
1030
  }
1031
- const Jc = l.icon || (z == null ? void 0 : z[Se]) || bl(Se);
1031
+ const Jc = l.icon || (D == null ? void 0 : D[Se]) || bl(Se);
1032
1032
  var gr, vr;
1033
1033
  return /* @__PURE__ */ I.createElement("li", {
1034
1034
  tabIndex: 0,
@@ -1124,7 +1124,7 @@ const Hl = (e) => {
1124
1124
  Xe(), l.onDismiss == null || l.onDismiss.call(l, l);
1125
1125
  },
1126
1126
  className: ze(A == null ? void 0 : A.closeButton, l == null || (o = l.classNames) == null ? void 0 : o.closeButton)
1127
- }, (vr = z == null ? void 0 : z.close) != null ? vr : kl) : null, (Se || l.icon || l.promise) && l.icon !== null && ((z == null ? void 0 : z[Se]) !== null || l.icon) ? /* @__PURE__ */ I.createElement("div", {
1127
+ }, (vr = D == null ? void 0 : D.close) != null ? vr : kl) : null, (Se || l.icon || l.promise) && l.icon !== null && ((D == null ? void 0 : D[Se]) !== null || l.icon) ? /* @__PURE__ */ I.createElement("div", {
1128
1128
  "data-icon": "",
1129
1129
  className: ze(A == null ? void 0 : A.icon, l == null || (r = l.classNames) == null ? void 0 : r.icon)
1130
1130
  }, l.promise || l.type === "loading" && !l.icon ? l.icon || Zc() : null, l.type !== "loading" ? Jc : null) : null, /* @__PURE__ */ I.createElement("div", {
@@ -1198,16 +1198,16 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
1198
1198
  ].concat(E.filter((P) => P.position).map((P) => P.position)))), [
1199
1199
  E,
1200
1200
  s
1201
- ]), [W, M] = I.useState([]), [F, H] = I.useState(!1), [O, K] = I.useState(!1), [A, z] = I.useState(m !== "system" ? m : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), U = I.useRef(null), k = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), S = I.useRef(null), _ = I.useRef(!1), $ = I.useCallback((P) => {
1202
- N((D) => {
1201
+ ]), [W, M] = I.useState([]), [F, H] = I.useState(!1), [O, K] = I.useState(!1), [A, D] = I.useState(m !== "system" ? m : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), U = I.useRef(null), k = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), S = I.useRef(null), _ = I.useRef(!1), $ = I.useCallback((P) => {
1202
+ N((z) => {
1203
1203
  var B;
1204
- return (B = D.find((J) => J.id === P.id)) != null && B.delete || we.dismiss(P.id), D.filter(({ id: J }) => J !== P.id);
1204
+ return (B = z.find((J) => J.id === P.id)) != null && B.delete || we.dismiss(P.id), z.filter(({ id: J }) => J !== P.id);
1205
1205
  });
1206
1206
  }, []);
1207
1207
  return I.useEffect(() => we.subscribe((P) => {
1208
1208
  if (P.dismiss) {
1209
1209
  requestAnimationFrame(() => {
1210
- N((D) => D.map((B) => B.id === P.id ? {
1210
+ N((z) => z.map((B) => B.id === P.id ? {
1211
1211
  ...B,
1212
1212
  delete: !0
1213
1213
  } : B));
@@ -1216,18 +1216,18 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
1216
1216
  }
1217
1217
  setTimeout(() => {
1218
1218
  hs.flushSync(() => {
1219
- N((D) => {
1220
- const B = D.findIndex((J) => J.id === P.id);
1219
+ N((z) => {
1220
+ const B = z.findIndex((J) => J.id === P.id);
1221
1221
  return B !== -1 ? [
1222
- ...D.slice(0, B),
1222
+ ...z.slice(0, B),
1223
1223
  {
1224
- ...D[B],
1224
+ ...z[B],
1225
1225
  ...P
1226
1226
  },
1227
- ...D.slice(B + 1)
1227
+ ...z.slice(B + 1)
1228
1228
  ] : [
1229
1229
  P,
1230
- ...D
1230
+ ...z
1231
1231
  ];
1232
1232
  });
1233
1233
  });
@@ -1236,19 +1236,19 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
1236
1236
  T
1237
1237
  ]), I.useEffect(() => {
1238
1238
  if (m !== "system") {
1239
- z(m);
1239
+ D(m);
1240
1240
  return;
1241
1241
  }
1242
- if (m === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? z("dark") : z("light")), typeof window > "u") return;
1242
+ if (m === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? D("dark") : D("light")), typeof window > "u") return;
1243
1243
  const P = window.matchMedia("(prefers-color-scheme: dark)");
1244
1244
  try {
1245
- P.addEventListener("change", ({ matches: D }) => {
1246
- z(D ? "dark" : "light");
1245
+ P.addEventListener("change", ({ matches: z }) => {
1246
+ D(z ? "dark" : "light");
1247
1247
  });
1248
1248
  } catch {
1249
1249
  P.addListener(({ matches: B }) => {
1250
1250
  try {
1251
- z(B ? "dark" : "light");
1251
+ D(B ? "dark" : "light");
1252
1252
  } catch (J) {
1253
1253
  console.error(J);
1254
1254
  }
@@ -1261,13 +1261,13 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
1261
1261
  }, [
1262
1262
  T
1263
1263
  ]), I.useEffect(() => {
1264
- const P = (D) => {
1264
+ const P = (z) => {
1265
1265
  var B;
1266
- if (a.every((Y) => D[Y] || D.code === Y)) {
1266
+ if (a.every((Y) => z[Y] || z.code === Y)) {
1267
1267
  var j;
1268
1268
  H(!0), (j = U.current) == null || j.focus();
1269
1269
  }
1270
- D.code === "Escape" && (document.activeElement === U.current || (B = U.current) != null && B.contains(document.activeElement)) && H(!1);
1270
+ z.code === "Escape" && (document.activeElement === U.current || (B = U.current) != null && B.contains(document.activeElement)) && H(!1);
1271
1271
  };
1272
1272
  return document.addEventListener("keydown", P), () => document.removeEventListener("keydown", P);
1273
1273
  }, [
@@ -1290,7 +1290,7 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
1290
1290
  "aria-relevant": "additions text",
1291
1291
  "aria-atomic": "false",
1292
1292
  suppressHydrationWarning: !0
1293
- }, L.map((P, D) => {
1293
+ }, L.map((P, z) => {
1294
1294
  var B;
1295
1295
  const [J, j] = P.split("-");
1296
1296
  return E.length ? /* @__PURE__ */ I.createElement("ol", {
@@ -1328,7 +1328,7 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
1328
1328
  Y.target instanceof HTMLElement && Y.target.dataset.dismissible === "false" || K(!0);
1329
1329
  },
1330
1330
  onPointerUp: () => K(!1)
1331
- }, E.filter((Y) => !Y.position && D === 0 || Y.position === P).map((Y, ee) => {
1331
+ }, E.filter((Y) => !Y.position && z === 0 || Y.position === P).map((Y, ee) => {
1332
1332
  var te, se;
1333
1333
  return /* @__PURE__ */ I.createElement(Hl, {
1334
1334
  key: Y.id,
@@ -2320,13 +2320,13 @@ const au = (e, t) => {
2320
2320
  "left-bottom"
2321
2321
  ], R = () => [...C(), G, V], T = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], E = () => [G, V, c], L = () => [Ze, "full", "auto", ...E()], W = () => [Je, "none", "subgrid", G, V], M = () => ["auto", {
2322
2322
  span: ["full", Je, G, V]
2323
- }, Je, G, V], F = () => [Je, "auto", G, V], H = () => ["auto", "min", "max", "fr", G, V], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...E()], z = () => [Ze, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], U = () => [Ze, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...E()], k = () => [Ze, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...E()], S = () => [e, G, V], _ = () => [...C(), Ar, Pr, {
2323
+ }, Je, G, V], F = () => [Je, "auto", G, V], H = () => ["auto", "min", "max", "fr", G, V], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...E()], D = () => [Ze, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], U = () => [Ze, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...E()], k = () => [Ze, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...E()], S = () => [e, G, V], _ = () => [...C(), Ar, Pr, {
2324
2324
  position: [G, V]
2325
2325
  }], $ = () => ["no-repeat", {
2326
2326
  repeat: ["", "x", "y", "space", "round"]
2327
2327
  }], P = () => ["auto", "cover", "contain", Wu, $u, {
2328
2328
  size: [G, V]
2329
- }], D = () => [Jn, zt, ct], B = () => [
2329
+ }], z = () => [Jn, zt, ct], B = () => [
2330
2330
  // Deprecated since Tailwind CSS v4.0.0
2331
2331
  "",
2332
2332
  "none",
@@ -3019,7 +3019,7 @@ const au = (e, t) => {
3019
3019
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
3020
3020
  */
3021
3021
  size: [{
3022
- size: z()
3022
+ size: D()
3023
3023
  }],
3024
3024
  /**
3025
3025
  * Inline Size
@@ -3068,7 +3068,7 @@ const au = (e, t) => {
3068
3068
  * @see https://tailwindcss.com/docs/width
3069
3069
  */
3070
3070
  w: [{
3071
- w: [i, "screen", ...z()]
3071
+ w: [i, "screen", ...D()]
3072
3072
  }],
3073
3073
  /**
3074
3074
  * Min-Width
@@ -3080,7 +3080,7 @@ const au = (e, t) => {
3080
3080
  "screen",
3081
3081
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
3082
3082
  "none",
3083
- ...z()
3083
+ ...D()
3084
3084
  ]
3085
3085
  }],
3086
3086
  /**
@@ -3098,7 +3098,7 @@ const au = (e, t) => {
3098
3098
  {
3099
3099
  screen: [a]
3100
3100
  },
3101
- ...z()
3101
+ ...D()
3102
3102
  ]
3103
3103
  }],
3104
3104
  /**
@@ -3106,21 +3106,21 @@ const au = (e, t) => {
3106
3106
  * @see https://tailwindcss.com/docs/height
3107
3107
  */
3108
3108
  h: [{
3109
- h: ["screen", "lh", ...z()]
3109
+ h: ["screen", "lh", ...D()]
3110
3110
  }],
3111
3111
  /**
3112
3112
  * Min-Height
3113
3113
  * @see https://tailwindcss.com/docs/min-height
3114
3114
  */
3115
3115
  "min-h": [{
3116
- "min-h": ["screen", "lh", "none", ...z()]
3116
+ "min-h": ["screen", "lh", "none", ...D()]
3117
3117
  }],
3118
3118
  /**
3119
3119
  * Max-Height
3120
3120
  * @see https://tailwindcss.com/docs/max-height
3121
3121
  */
3122
3122
  "max-h": [{
3123
- "max-h": ["screen", "lh", ...z()]
3123
+ "max-h": ["screen", "lh", ...D()]
3124
3124
  }],
3125
3125
  // ------------------
3126
3126
  // --- Typography ---
@@ -3437,21 +3437,21 @@ const au = (e, t) => {
3437
3437
  * @see https://tailwindcss.com/docs/gradient-color-stops
3438
3438
  */
3439
3439
  "gradient-from-pos": [{
3440
- from: D()
3440
+ from: z()
3441
3441
  }],
3442
3442
  /**
3443
3443
  * Gradient Color Stops Via Position
3444
3444
  * @see https://tailwindcss.com/docs/gradient-color-stops
3445
3445
  */
3446
3446
  "gradient-via-pos": [{
3447
- via: D()
3447
+ via: z()
3448
3448
  }],
3449
3449
  /**
3450
3450
  * Gradient Color Stops To Position
3451
3451
  * @see https://tailwindcss.com/docs/gradient-color-stops
3452
3452
  */
3453
3453
  "gradient-to-pos": [{
3454
- to: D()
3454
+ to: z()
3455
3455
  }],
3456
3456
  /**
3457
3457
  * Gradient Color Stops From
@@ -6919,14 +6919,14 @@ const qp = 50, Kp = async (e, t, n) => {
6919
6919
  }, h = Xo(r), b = Ko(h), g = await a.getDimensions(d), v = h === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", C = s.reference[b] + s.reference[h] - m[h] - s.floating[b], R = m[h] - s.reference[h], T = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
6920
6920
  let N = T ? T[x] : 0;
6921
6921
  (!N || !await (a.isElement == null ? void 0 : a.isElement(T))) && (N = i.floating[x] || s.floating[b]);
6922
- const E = C / 2 - R / 2, L = N / 2 - g[b] / 2 - 1, W = tt(l[y], L), M = tt(l[w], L), F = W, H = N - g[b] - M, O = N / 2 - g[b] / 2 + E, K = xo(F, O, H), A = !c.arrow && Mt(r) != null && O !== K && s.reference[b] / 2 - (O < F ? W : M) - g[b] / 2 < 0, z = A ? O < F ? O - F : O - H : 0;
6922
+ const E = C / 2 - R / 2, L = N / 2 - g[b] / 2 - 1, W = tt(l[y], L), M = tt(l[w], L), F = W, H = N - g[b] - M, O = N / 2 - g[b] / 2 + E, K = xo(F, O, H), A = !c.arrow && Mt(r) != null && O !== K && s.reference[b] / 2 - (O < F ? W : M) - g[b] / 2 < 0, D = A ? O < F ? O - F : O - H : 0;
6923
6923
  return {
6924
- [h]: m[h] + z,
6924
+ [h]: m[h] + D,
6925
6925
  data: {
6926
6926
  [h]: K,
6927
- centerOffset: O - K - z,
6927
+ centerOffset: O - K - D,
6928
6928
  ...A && {
6929
- alignmentOffset: z
6929
+ alignmentOffset: D
6930
6930
  }
6931
6931
  },
6932
6932
  reset: A
@@ -6982,12 +6982,12 @@ const qp = 50, Kp = async (e, t, n) => {
6982
6982
  placement: K
6983
6983
  }
6984
6984
  };
6985
- let A = (F = W.filter((z) => z.overflows[0] <= 0).sort((z, U) => z.overflows[1] - U.overflows[1])[0]) == null ? void 0 : F.placement;
6985
+ let A = (F = W.filter((D) => D.overflows[0] <= 0).sort((D, U) => D.overflows[1] - U.overflows[1])[0]) == null ? void 0 : F.placement;
6986
6986
  if (!A)
6987
6987
  switch (h) {
6988
6988
  case "bestFit": {
6989
6989
  var H;
6990
- const z = (H = W.filter((U) => {
6990
+ const D = (H = W.filter((U) => {
6991
6991
  if (T) {
6992
6992
  const k = Be(U.placement);
6993
6993
  return k === w || // Create a bias to the `y` side axis due to horizontal
@@ -6996,7 +6996,7 @@ const qp = 50, Kp = async (e, t, n) => {
6996
6996
  }
6997
6997
  return !0;
6998
6998
  }).map((U) => [U.placement, U.overflows.filter((k) => k > 0).reduce((k, S) => k + S, 0)]).sort((U, k) => U[1] - k[1])[0]) == null ? void 0 : H[0];
6999
- z && (A = z);
6999
+ D && (A = D);
7000
7000
  break;
7001
7001
  }
7002
7002
  case "initialPlacement":
@@ -7876,7 +7876,7 @@ function Mm(e) {
7876
7876
  }), [w, x]), A = p.useMemo(() => ({
7877
7877
  reference: C,
7878
7878
  floating: R
7879
- }), [C, R]), z = p.useMemo(() => {
7879
+ }), [C, R]), D = p.useMemo(() => {
7880
7880
  const U = {
7881
7881
  position: n,
7882
7882
  left: 0,
@@ -7902,8 +7902,8 @@ function Mm(e) {
7902
7902
  update: H,
7903
7903
  refs: K,
7904
7904
  elements: A,
7905
- floatingStyles: z
7906
- }), [u, H, K, A, z]);
7905
+ floatingStyles: D
7906
+ }), [u, H, K, A, D]);
7907
7907
  }
7908
7908
  const Om = (e) => {
7909
7909
  function t(n) {
@@ -8026,7 +8026,7 @@ var tr = "PopperContent", [jm, Gm] = Ha(tr), Ga = p.forwardRef(
8026
8026
  boundary: M.filter(qm),
8027
8027
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
8028
8028
  altBoundary: F
8029
- }, { refs: O, floatingStyles: K, placement: A, isPositioned: z, middlewareData: U } = Mm({
8029
+ }, { refs: O, floatingStyles: K, placement: A, isPositioned: D, middlewareData: U } = Mm({
8030
8030
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
8031
8031
  strategy: "fixed",
8032
8032
  placement: L,
@@ -8058,9 +8058,9 @@ var tr = "PopperContent", [jm, Gm] = Ha(tr), Ga = p.forwardRef(
8058
8058
  ]
8059
8059
  }), [k, S] = Ka(A), _ = be(b);
8060
8060
  de(() => {
8061
- z && (_ == null || _());
8062
- }, [z, _]);
8063
- const $ = (j = U.arrow) == null ? void 0 : j.x, P = (Y = U.arrow) == null ? void 0 : Y.y, D = ((ee = U.arrow) == null ? void 0 : ee.centerOffset) !== 0, [B, J] = p.useState();
8061
+ D && (_ == null || _());
8062
+ }, [D, _]);
8063
+ const $ = (j = U.arrow) == null ? void 0 : j.x, P = (Y = U.arrow) == null ? void 0 : Y.y, z = ((ee = U.arrow) == null ? void 0 : ee.centerOffset) !== 0, [B, J] = p.useState();
8064
8064
  return de(() => {
8065
8065
  y && J(window.getComputedStyle(y).zIndex);
8066
8066
  }, [y]), /* @__PURE__ */ f(
@@ -8070,7 +8070,7 @@ var tr = "PopperContent", [jm, Gm] = Ha(tr), Ga = p.forwardRef(
8070
8070
  "data-radix-popper-content-wrapper": "",
8071
8071
  style: {
8072
8072
  ...K,
8073
- transform: z ? K.transform : "translate(0, -200%)",
8073
+ transform: D ? K.transform : "translate(0, -200%)",
8074
8074
  // keep off the page when measuring
8075
8075
  minWidth: "max-content",
8076
8076
  zIndex: B,
@@ -8095,7 +8095,7 @@ var tr = "PopperContent", [jm, Gm] = Ha(tr), Ga = p.forwardRef(
8095
8095
  onArrowChange: R,
8096
8096
  arrowX: $,
8097
8097
  arrowY: P,
8098
- shouldHideArrow: D,
8098
+ shouldHideArrow: z,
8099
8099
  children: /* @__PURE__ */ f(
8100
8100
  Z.div,
8101
8101
  {
@@ -8107,7 +8107,7 @@ var tr = "PopperContent", [jm, Gm] = Ha(tr), Ga = p.forwardRef(
8107
8107
  ...g.style,
8108
8108
  // if the PopperContent hasn't been placed yet (not all measurements done)
8109
8109
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
8110
- animation: z ? void 0 : "none"
8110
+ animation: D ? void 0 : "none"
8111
8111
  }
8112
8112
  }
8113
8113
  )
@@ -9222,11 +9222,11 @@ var Fh = ki, Bh = Ri, Hh = Mi, Vh = [" ", "Enter", "ArrowUp", "ArrowDown"], Wh =
9222
9222
  {
9223
9223
  scope: e.__scopeSelect,
9224
9224
  onNativeOptionAdd: p.useCallback((A) => {
9225
- O((z) => new Set(z).add(A));
9225
+ O((D) => new Set(D).add(A));
9226
9226
  }, []),
9227
9227
  onNativeOptionRemove: p.useCallback((A) => {
9228
- O((z) => {
9229
- const U = new Set(z);
9228
+ O((D) => {
9229
+ const U = new Set(D);
9230
9230
  return U.delete(A), U;
9231
9231
  });
9232
9232
  }, []),
@@ -9378,13 +9378,13 @@ var _e = 10, [ji, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
9378
9378
  if (oe === se || (oe == null || oe.scrollIntoView({ block: "nearest" }), oe === Y && R && (R.scrollTop = 0), oe === te && R && (R.scrollTop = R.scrollHeight), oe == null || oe.focus(), document.activeElement !== se)) return;
9379
9379
  },
9380
9380
  [F, R]
9381
- ), z = p.useCallback(
9381
+ ), D = p.useCallback(
9382
9382
  () => A([E, x]),
9383
9383
  [A, E, x]
9384
9384
  );
9385
9385
  p.useEffect(() => {
9386
- H && z();
9387
- }, [H, z]);
9386
+ H && D();
9387
+ }, [H, D]);
9388
9388
  const { onOpenChange: U, triggerPointerDownPosRef: k } = w;
9389
9389
  p.useEffect(() => {
9390
9390
  if (x) {
@@ -9417,7 +9417,7 @@ var _e = 10, [ji, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
9417
9417
  (w.value !== void 0 && w.value === Y || te) && (L(j), te && (K.current = !0));
9418
9418
  },
9419
9419
  [w.value]
9420
- ), P = p.useCallback(() => x == null ? void 0 : x.focus(), [x]), D = p.useCallback(
9420
+ ), P = p.useCallback(() => x == null ? void 0 : x.focus(), [x]), z = p.useCallback(
9421
9421
  (j, Y, ee) => {
9422
9422
  const te = !K.current && !ee;
9423
9423
  (w.value !== void 0 && w.value === Y || te) && M(j);
@@ -9445,8 +9445,8 @@ var _e = 10, [ji, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
9445
9445
  itemRefCallback: $,
9446
9446
  selectedItem: E,
9447
9447
  onItemLeave: P,
9448
- itemTextRefCallback: D,
9449
- focusSelectedItem: z,
9448
+ itemTextRefCallback: z,
9449
+ focusSelectedItem: D,
9450
9450
  selectedItemText: W,
9451
9451
  position: o,
9452
9452
  isPositioned: H,
@@ -9536,25 +9536,25 @@ var Jh = "SelectItemAlignedPosition", Yi = p.forwardRef((e, t) => {
9536
9536
  ]);
9537
9537
  i.style.minWidth = fe + "px", i.style.right = Te + "px";
9538
9538
  }
9539
- const M = m(), F = window.innerHeight - _e * 2, H = g.scrollHeight, O = window.getComputedStyle(d), K = parseInt(O.borderTopWidth, 10), A = parseInt(O.paddingTop, 10), z = parseInt(O.borderBottomWidth, 10), U = parseInt(O.paddingBottom, 10), k = K + A + H + U + z, S = Math.min(v.offsetHeight * 5, k), _ = window.getComputedStyle(g), $ = parseInt(_.paddingTop, 10), P = parseInt(_.paddingBottom, 10), D = N.top + N.height / 2 - _e, B = F - D, J = v.offsetHeight / 2, j = v.offsetTop + J, Y = K + A + j, ee = k - Y;
9540
- if (Y <= D) {
9539
+ const M = m(), F = window.innerHeight - _e * 2, H = g.scrollHeight, O = window.getComputedStyle(d), K = parseInt(O.borderTopWidth, 10), A = parseInt(O.paddingTop, 10), D = parseInt(O.borderBottomWidth, 10), U = parseInt(O.paddingBottom, 10), k = K + A + H + U + D, S = Math.min(v.offsetHeight * 5, k), _ = window.getComputedStyle(g), $ = parseInt(_.paddingTop, 10), P = parseInt(_.paddingBottom, 10), z = N.top + N.height / 2 - _e, B = F - z, J = v.offsetHeight / 2, j = v.offsetTop + J, Y = K + A + j, ee = k - Y;
9540
+ if (Y <= z) {
9541
9541
  const se = M.length > 0 && v === M[M.length - 1].ref.current;
9542
9542
  i.style.bottom = "0px";
9543
9543
  const oe = d.clientHeight - g.offsetTop - g.offsetHeight, ue = Math.max(
9544
9544
  B,
9545
9545
  J + // viewport might have padding bottom, include it to avoid a scrollable viewport
9546
- (se ? P : 0) + oe + z
9546
+ (se ? P : 0) + oe + D
9547
9547
  ), fe = Y + ue;
9548
9548
  i.style.height = fe + "px";
9549
9549
  } else {
9550
9550
  const se = M.length > 0 && v === M[0].ref.current;
9551
9551
  i.style.top = "0px";
9552
9552
  const ue = Math.max(
9553
- D,
9553
+ z,
9554
9554
  K + g.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
9555
9555
  (se ? $ : 0) + J
9556
9556
  ) + ee;
9557
- i.style.height = ue + "px", g.scrollTop = Y - D + g.offsetTop;
9557
+ i.style.height = ue + "px", g.scrollTop = Y - z + g.offsetTop;
9558
9558
  }
9559
9559
  i.style.margin = `${_e}px 0`, i.style.minHeight = S + "px", i.style.maxHeight = F + "px", o == null || o(), requestAnimationFrame(() => h.current = !0);
9560
9560
  }
@@ -11836,7 +11836,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
11836
11836
  });
11837
11837
  if (m.ok) {
11838
11838
  const { token: h, encryptionKey: b, settings: g } = await m.json();
11839
- console.log(`[embeddables] proxyToken response for ${i.id}:`, { hasToken: !!h, hasEncKey: !!b, settings: g }), s.set(i.id, { token: h, encryptionKey: b, settings: g });
11839
+ s.set(i.id, { token: h, encryptionKey: b, settings: g });
11840
11840
  } else {
11841
11841
  let h = `Proxy token failed (${m.status})`;
11842
11842
  u && !d ? h = "Session token missing — re-run CLI" : u && (h = "Session expired or invalid — re-run CLI"), a.set(i.id, h), console.warn(`[embeddables] Failed to obtain proxy token for extension ${i.id} (${m.status}) — ${h}`);
@@ -11886,8 +11886,8 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
11886
11886
  console.warn(`[ExtensionSetup] Instance not found or failed to load: ${S}`), d([]), y(!0);
11887
11887
  return;
11888
11888
  }
11889
- const $ = await _.json(), P = ws(typeof window < "u" ? window.location.search : ""), D = await Yl($, P), { tokens: B, errors: J } = await Lb(D, n, o, S, P);
11890
- d(D), l(P), h(new Map(B)), g(J);
11889
+ const $ = await _.json(), P = ws(typeof window < "u" ? window.location.search : ""), z = await Yl($, P), { tokens: B, errors: J } = await Lb(z, n, o, S, P);
11890
+ d(z), l(P), h(new Map(B)), g(J);
11891
11891
  } catch (_) {
11892
11892
  console.error("Failed to load extensions:", _);
11893
11893
  } finally {
@@ -11904,15 +11904,15 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
11904
11904
  var P;
11905
11905
  return $.manifest.permissions.includes("data:fetch") || (((P = $.manifest.settingsSchema) == null ? void 0 : P.length) ?? 0) > 0;
11906
11906
  }).map(async ($) => {
11907
- const P = u.find((Y) => Y.extensionId === $.id), D = P == null ? void 0 : P.token, B = P == null ? void 0 : P.mode, J = Ft(n, "/proxy-token"), j = await fetch(J, {
11907
+ const P = u.find((Y) => Y.extensionId === $.id), z = P == null ? void 0 : P.token, B = P == null ? void 0 : P.mode, J = Ft(n, "/proxy-token"), j = await fetch(J, {
11908
11908
  method: "POST",
11909
11909
  headers: { "Content-Type": "application/json" },
11910
11910
  body: JSON.stringify({
11911
11911
  appId: o,
11912
- extensionId: $.id,
11913
11912
  instanceId: e,
11913
+ extensionId: $.id,
11914
11914
  ...B && { mode: B },
11915
- ...D && { devSessionToken: D }
11915
+ ...z && { devSessionToken: z }
11916
11916
  })
11917
11917
  });
11918
11918
  if (j.ok) {
@@ -11923,8 +11923,8 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
11923
11923
  })
11924
11924
  ), _.length > 0 && h(($) => {
11925
11925
  const P = new Map($);
11926
- for (const [D, B] of _)
11927
- P.set(D, B);
11926
+ for (const [z, B] of _)
11927
+ P.set(z, B);
11928
11928
  return P;
11929
11929
  });
11930
11930
  }, 3300 * 1e3);
@@ -11939,8 +11939,8 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
11939
11939
  const $ = _.extensionId, P = c.find((J) => J.id === $);
11940
11940
  if (!(P != null && P.bundleUrl))
11941
11941
  return;
11942
- const D = u.find((J) => J.extensionId === $);
11943
- if (Ul(P.bundleUrl) && (D == null ? void 0 : D.mode) !== "staging")
11942
+ const z = u.find((J) => J.extensionId === $);
11943
+ if (Ul(P.bundleUrl) && (z == null ? void 0 : z.mode) !== "staging")
11944
11944
  return;
11945
11945
  const B = m.get($);
11946
11946
  B && $e($, { type: "extension-encryption-key", encryptionKey: B.encryptionKey });
@@ -11952,8 +11952,8 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
11952
11952
  for (const [$, P] of _) {
11953
11953
  if (!P.manifest.permissions.includes("events:identity"))
11954
11954
  continue;
11955
- const D = P.manifest.events ?? [];
11956
- !D.includes("identity") && !D.includes(`identity:${k}`) || $e($, {
11955
+ const z = P.manifest.events ?? [];
11956
+ !z.includes("identity") && !z.includes(`identity:${k}`) || $e($, {
11957
11957
  type: "extension-event",
11958
11958
  eventType: "identity",
11959
11959
  payload: { eventName: k, data: { state: S, timestamp: Zn((/* @__PURE__ */ new Date()).toISOString()) } }
@@ -11985,8 +11985,8 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
11985
11985
  }
11986
11986
  }, []), F = ve(async (k) => {
11987
11987
  const S = kt(), _ = [];
11988
- for (const [P, D] of S) {
11989
- if (!D.manifest.permissions.includes("extend:identity"))
11988
+ for (const [P, z] of S) {
11989
+ if (!z.manifest.permissions.includes("extend:identity"))
11990
11990
  continue;
11991
11991
  const B = new Promise((J) => {
11992
11992
  const j = `enrich_${P}_${Date.now()}`, Y = (ee) => {
@@ -12039,15 +12039,15 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
12039
12039
  (async () => {
12040
12040
  const P = await F({ ...$, email: S, name: _ });
12041
12041
  console.log("[embeddables] Enriched claims:", P);
12042
- const D = await H({
12042
+ const z = await H({
12043
12043
  ...$,
12044
12044
  ...P,
12045
12045
  email: S,
12046
12046
  name: _
12047
12047
  });
12048
- console.log("[embeddables] Sign result:", { hasToken: !!D }), D && O(D);
12048
+ console.log("[embeddables] Sign result:", { hasToken: !!z }), z && O(z);
12049
12049
  })();
12050
- }, [F, H, O]), z = ve((k) => {
12050
+ }, [F, H, O]), D = ve((k) => {
12051
12051
  if (E.length > 0 && N.current.size < E.length) {
12052
12052
  console.log(`[embeddables] Deferring sign lifecycle — waiting for extend:identity extensions: ${N.current.size}/${E.length} ready`), T.current = k;
12053
12053
  return;
@@ -12072,14 +12072,14 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
12072
12072
  };
12073
12073
  x((S) => {
12074
12074
  var _, $;
12075
- return S.authenticated && ((_ = S.user) == null ? void 0 : _.id) === (($ = k.user) == null ? void 0 : $.id) ? S : (console.log("[embeddables] Identity state changed (props), starting sign lifecycle"), z(k.user), L("login", k), k);
12075
+ return S.authenticated && ((_ = S.user) == null ? void 0 : _.id) === (($ = k.user) == null ? void 0 : $.id) ? S : (console.log("[embeddables] Identity state changed (props), starting sign lifecycle"), D(k.user), L("login", k), k);
12076
12076
  });
12077
12077
  } else {
12078
12078
  if (s === void 0)
12079
12079
  return;
12080
12080
  x((k) => k.authenticated ? (console.log("[embeddables] Customer props cleared, logging out"), K(), L("logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : k);
12081
12081
  }
12082
- }, [v, s, a, i, E, z, L, K]), ce(() => {
12082
+ }, [v, s, a, i, E, D, L, K]), ce(() => {
12083
12083
  if (!v || s !== void 0)
12084
12084
  return;
12085
12085
  const k = () => {
@@ -12095,9 +12095,9 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
12095
12095
  provider: "shopify"
12096
12096
  }
12097
12097
  };
12098
- x((D) => {
12098
+ x((z) => {
12099
12099
  var B, J;
12100
- return D.authenticated && ((B = D.user) == null ? void 0 : B.id) === ((J = P.user) == null ? void 0 : J.id) ? D : (console.log("[embeddables] Identity state changed (DOM), starting sign lifecycle"), z(P.user), L("login", P), P);
12100
+ return z.authenticated && ((B = z.user) == null ? void 0 : B.id) === ((J = P.user) == null ? void 0 : J.id) ? z : (console.log("[embeddables] Identity state changed (DOM), starting sign lifecycle"), D(P.user), L("login", P), P);
12101
12101
  });
12102
12102
  } catch {
12103
12103
  console.warn("[embeddables] Failed to parse #stackable-identity JSON");
@@ -12108,7 +12108,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
12108
12108
  k();
12109
12109
  const S = new MutationObserver(k);
12110
12110
  return S.observe(document.head, { childList: !0, subtree: !0 }), S.observe(document.body, { childList: !0, subtree: !0 }), () => S.disconnect();
12111
- }, [v, s, z, L, K]), ce(() => {
12111
+ }, [v, s, D, L, K]), ce(() => {
12112
12112
  if (!w.authenticated)
12113
12113
  return;
12114
12114
  const k = (S) => {
@@ -12118,8 +12118,8 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
12118
12118
  const $ = _.extensionId, P = c.find((B) => B.id === $);
12119
12119
  if (!(P != null && P.manifest.permissions.includes("events:identity")))
12120
12120
  return;
12121
- const D = P.manifest.events ?? [];
12122
- !D.includes("identity") && !D.includes("identity:login") || $e($, {
12121
+ const z = P.manifest.events ?? [];
12122
+ !z.includes("identity") && !z.includes("identity:login") || $e($, {
12123
12123
  type: "extension-event",
12124
12124
  eventType: "identity",
12125
12125
  payload: { eventName: "login", data: { state: w, timestamp: Zn((/* @__PURE__ */ new Date()).toISOString()) } }
@@ -12136,8 +12136,8 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
12136
12136
  const P = $.extensionId;
12137
12137
  if (E.includes(P) && (N.current.add(P), console.log(`[embeddables] extend:identity extension ready: ${P} (${N.current.size}/${E.length})`), N.current.size >= E.length && T.current)) {
12138
12138
  console.log("[embeddables] All extend:identity extensions ready, running deferred sign lifecycle");
12139
- const D = T.current;
12140
- T.current = null, A(D);
12139
+ const z = T.current;
12140
+ T.current = null, A(z);
12141
12141
  }
12142
12142
  };
12143
12143
  window.addEventListener("message", k);
@@ -12187,8 +12187,8 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
12187
12187
  for (const [$, P] of S) {
12188
12188
  if (!P.manifest.permissions.includes("context:read"))
12189
12189
  continue;
12190
- const D = (_ = m.get($)) == null ? void 0 : _.settings, B = D ? { ...k, settings: D } : k;
12191
- console.log(`[embeddables] context-push for ${$}:`, { hasSettings: !!D, settings: D }), $e($, { type: "context-push", context: B });
12190
+ const z = (_ = m.get($)) == null ? void 0 : _.settings, B = z ? { ...k, settings: z } : k;
12191
+ $e($, { type: "context-push", context: B });
12192
12192
  }
12193
12193
  }, [v, s, a, i, w, C, m]);
12194
12194
  const U = Vt(
@@ -12210,7 +12210,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
12210
12210
  method: S.method ?? "GET",
12211
12211
  headers: S.headers ?? {},
12212
12212
  body: S.body ?? null
12213
- }, P = Ft(n, "/proxy"), D = await fetch(P, {
12213
+ }, P = Ft(n, "/proxy"), z = await fetch(P, {
12214
12214
  method: "POST",
12215
12215
  headers: {
12216
12216
  "Content-Type": "application/json",
@@ -12219,10 +12219,10 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
12219
12219
  Authorization: `Bearer ${_.token}`
12220
12220
  },
12221
12221
  body: JSON.stringify($)
12222
- }), B = await D.json();
12222
+ }), B = await z.json();
12223
12223
  return {
12224
- status: B.status ?? D.status,
12225
- ok: B.ok ?? D.ok,
12224
+ status: B.status ?? z.status,
12225
+ ok: B.ok ?? z.ok,
12226
12226
  data: B.data
12227
12227
  };
12228
12228
  },
@@ -12235,10 +12235,10 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
12235
12235
  ...S.closeButton != null && { closeButton: S.closeButton }
12236
12236
  };
12237
12237
  if (S.fetch) {
12238
- const $ = (D) => new Promise((B) => setTimeout(B, D)), P = Promise.all([
12238
+ const $ = (z) => new Promise((B) => setTimeout(B, z)), P = Promise.all([
12239
12239
  U["data.fetch"](k, S.fetch),
12240
12240
  $(Ob)
12241
- ]).then(([D]) => D);
12241
+ ]).then(([z]) => z);
12242
12242
  wt.promise(P, {
12243
12243
  loading: S.loading ?? S.message,
12244
12244
  success: S.success ?? S.message,
@@ -12583,9 +12583,9 @@ const Hb = ({ ...e }) => {
12583
12583
  ce(() => {
12584
12584
  var K, A;
12585
12585
  const M = document.querySelector('script[src*="zdassets.com/ekr/snippet"]'), F = (A = (K = M == null ? void 0 : M.src) == null ? void 0 : K.match(/key=([a-f0-9-]+)/)) == null ? void 0 : A[1];
12586
- if (F && fetch(`https://ekr.zdassets.com/compose/${F}`).then((z) => z.text()).then((z) => {
12586
+ if (F && fetch(`https://ekr.zdassets.com/compose/${F}`).then((D) => D.text()).then((D) => {
12587
12587
  var k;
12588
- const U = (k = z.match(/appId['"]?\s*:\s*['"]([a-f0-9]+)['"]/)) == null ? void 0 : k[1];
12588
+ const U = (k = D.match(/appId['"]?\s*:\s*['"]([a-f0-9]+)['"]/)) == null ? void 0 : k[1];
12589
12589
  U && po({ appId: U });
12590
12590
  }).catch(() => {
12591
12591
  }), C()) {
@@ -12595,7 +12595,7 @@ const Hb = ({ ...e }) => {
12595
12595
  const H = setInterval(() => {
12596
12596
  C() && (w("ready"), clearInterval(H));
12597
12597
  }, 100), O = setTimeout(() => {
12598
- clearInterval(H), w((z) => z === "ready" ? z : (console.warn("Zendesk widget failed to load after 10 seconds"), "error"));
12598
+ clearInterval(H), w((D) => D === "ready" ? D : (console.warn("Zendesk widget failed to load after 10 seconds"), "error"));
12599
12599
  }, 1e4);
12600
12600
  return () => {
12601
12601
  clearInterval(H), clearTimeout(O);
@@ -12631,12 +12631,12 @@ const Hb = ({ ...e }) => {
12631
12631
  if (y !== "ready" || !window.zE)
12632
12632
  return;
12633
12633
  const M = window.zE("messenger:on", "conversationStarted", (O) => {
12634
- var A, z;
12635
- const K = (z = (A = O == null ? void 0 : O.payload) == null ? void 0 : A.conversation) == null ? void 0 : z.id;
12634
+ var A, D;
12635
+ const K = (D = (A = O == null ? void 0 : O.payload) == null ? void 0 : A.conversation) == null ? void 0 : D.id;
12636
12636
  K && po({ conversationId: K });
12637
12637
  }), F = window.zE("messenger:on", "messagesShown", (O) => {
12638
- var A, z;
12639
- const K = (z = (A = O == null ? void 0 : O.payload) == null ? void 0 : A.conversation) == null ? void 0 : z.id;
12638
+ var A, D;
12639
+ const K = (D = (A = O == null ? void 0 : O.payload) == null ? void 0 : A.conversation) == null ? void 0 : D.id;
12640
12640
  K && po({ conversationId: K });
12641
12641
  }), H = window.zE("messenger:on", "postbackButtonClicked", (O) => {
12642
12642
  var A;
@@ -12663,11 +12663,11 @@ const Hb = ({ ...e }) => {
12663
12663
  const O = x.current.getBoundingClientRect();
12664
12664
  if ((l ? O.width : O.height) === 0)
12665
12665
  return;
12666
- const A = l ? (H.clientX - O.left) / O.width * 100 : (H.clientY - O.top) / O.height * 100, z = Math.max(
12666
+ const A = l ? (H.clientX - O.left) / O.width * 100 : (H.clientY - O.top) / O.height * 100, D = Math.max(
12667
12667
  mo,
12668
12668
  Math.min(ho, A)
12669
12669
  );
12670
- v(z);
12670
+ v(D);
12671
12671
  }, F = () => {
12672
12672
  u(!1), document.body.style.cursor = "", document.body.style.userSelect = "";
12673
12673
  };