viewgate-wrapper 1.10.8 → 1.10.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.
@@ -34,7 +34,7 @@ function vt() {
34
34
  return c.$$typeof === ae ? null : c.displayName || c.name || null;
35
35
  if (typeof c == "string") return c;
36
36
  switch (c) {
37
- case T:
37
+ case V:
38
38
  return "Fragment";
39
39
  case M:
40
40
  return "Profiler";
@@ -53,9 +53,9 @@ function vt() {
53
53
  ), c.$$typeof) {
54
54
  case j:
55
55
  return "Portal";
56
- case A:
57
- return c.displayName || "Context";
58
56
  case P:
57
+ return c.displayName || "Context";
58
+ case T:
59
59
  return (c._context.displayName || "Context") + ".Consumer";
60
60
  case k:
61
61
  var f = c.render;
@@ -92,7 +92,7 @@ function vt() {
92
92
  }
93
93
  }
94
94
  function n(c) {
95
- if (c === T) return "<>";
95
+ if (c === V) return "<>";
96
96
  if (typeof c == "object" && c !== null && c.$$typeof === pe)
97
97
  return "<...>";
98
98
  try {
@@ -182,10 +182,10 @@ function vt() {
182
182
  else m(b);
183
183
  if (me.call(f, "key")) {
184
184
  b = e(c);
185
- var G = Object.keys(f).filter(function(ce) {
185
+ var A = Object.keys(f).filter(function(ce) {
186
186
  return ce !== "key";
187
187
  });
188
- S = 0 < G.length ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}", ee[b + S] || (G = 0 < G.length ? "{" + G.join(": ..., ") + ": ...}" : "{}", console.error(
188
+ S = 0 < A.length ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}", ee[b + S] || (A = 0 < A.length ? "{" + A.join(": ..., ") + ": ...}" : "{}", console.error(
189
189
  `A props object containing a "key" prop is being spread into JSX:
190
190
  let props = %s;
191
191
  <%s {...props} />
@@ -194,7 +194,7 @@ React keys must be passed directly to JSX without using spread:
194
194
  <%s key={someKey} {...props} />`,
195
195
  S,
196
196
  b,
197
- G,
197
+ A,
198
198
  b
199
199
  ), ee[b + S] = !0);
200
200
  }
@@ -221,7 +221,7 @@ React keys must be passed directly to JSX without using spread:
221
221
  function g(c) {
222
222
  return typeof c == "object" && c !== null && c.$$typeof === v;
223
223
  }
224
- var h = ht, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), j = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), I = /* @__PURE__ */ Symbol.for("react.strict_mode"), M = /* @__PURE__ */ Symbol.for("react.profiler"), P = /* @__PURE__ */ Symbol.for("react.consumer"), A = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.forward_ref"), be = /* @__PURE__ */ Symbol.for("react.suspense"), z = /* @__PURE__ */ Symbol.for("react.suspense_list"), D = /* @__PURE__ */ Symbol.for("react.memo"), pe = /* @__PURE__ */ Symbol.for("react.lazy"), $e = /* @__PURE__ */ Symbol.for("react.activity"), ae = /* @__PURE__ */ Symbol.for("react.client.reference"), K = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, me = Object.prototype.hasOwnProperty, fe = Array.isArray, W = console.createTask ? console.createTask : function() {
224
+ var h = ht, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), j = /* @__PURE__ */ Symbol.for("react.portal"), V = /* @__PURE__ */ Symbol.for("react.fragment"), I = /* @__PURE__ */ Symbol.for("react.strict_mode"), M = /* @__PURE__ */ Symbol.for("react.profiler"), T = /* @__PURE__ */ Symbol.for("react.consumer"), P = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.forward_ref"), be = /* @__PURE__ */ Symbol.for("react.suspense"), z = /* @__PURE__ */ Symbol.for("react.suspense_list"), D = /* @__PURE__ */ Symbol.for("react.memo"), pe = /* @__PURE__ */ Symbol.for("react.lazy"), $e = /* @__PURE__ */ Symbol.for("react.activity"), ae = /* @__PURE__ */ Symbol.for("react.client.reference"), K = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, me = Object.prototype.hasOwnProperty, fe = Array.isArray, W = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
227
  h = {
@@ -233,7 +233,7 @@ React keys must be passed directly to JSX without using spread:
233
233
  h,
234
234
  s
235
235
  )(), ie = W(n(s)), ee = {};
236
- ue.Fragment = T, ue.jsx = function(c, f, C) {
236
+ ue.Fragment = V, ue.jsx = function(c, f, C) {
237
237
  var S = 1e4 > K.recentlyCreatedOwnerStacks++;
238
238
  return x(
239
239
  c,
@@ -416,17 +416,17 @@ const Wt = [
416
416
  ],
417
417
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
418
418
  ], Ut = N("send", Wt);
419
- const qt = [
419
+ const Bt = [
420
420
  ["path", { d: "M10 11v6", key: "nco0om" }],
421
421
  ["path", { d: "M14 11v6", key: "outv1u" }],
422
422
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
423
423
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
424
424
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
425
- ], De = N("trash-2", qt);
426
- const Bt = [
425
+ ], De = N("trash-2", Bt);
426
+ const qt = [
427
427
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
428
428
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
429
- ], Ee = N("x", Bt), Yt = {
429
+ ], Ee = N("x", qt), Yt = {
430
430
  en: {
431
431
  enterMode: "Enter Feedback Mode",
432
432
  exitMode: "Exit Mode",
@@ -910,13 +910,13 @@ function Gr(e, t) {
910
910
  r[a] = n[a];
911
911
  }), e;
912
912
  }
913
- const qe = {};
914
- async function Be(e) {
915
- let t = qe[e];
913
+ const Be = {};
914
+ async function qe(e) {
915
+ let t = Be[e];
916
916
  if (t != null)
917
917
  return t;
918
918
  const n = await (await fetch(e)).text();
919
- return t = { url: e, cssText: n }, qe[e] = t, t;
919
+ return t = { url: e, cssText: n }, Be[e] = t, t;
920
920
  }
921
921
  async function Ye(e, t) {
922
922
  let r = e.cssText;
@@ -960,7 +960,7 @@ async function $r(e, t) {
960
960
  Y(a.cssRules || []).forEach((s, i) => {
961
961
  if (s.type === CSSRule.IMPORT_RULE) {
962
962
  let l = i + 1;
963
- const p = s.href, u = Be(p).then((x) => Ye(x, t)).then((x) => Xe(x).forEach((m) => {
963
+ const p = s.href, u = qe(p).then((x) => Ye(x, t)).then((x) => Xe(x).forEach((m) => {
964
964
  try {
965
965
  a.insertRule(m, m.startsWith("@import") ? l += 1 : a.cssRules.length);
966
966
  } catch (g) {
@@ -977,7 +977,7 @@ async function $r(e, t) {
977
977
  });
978
978
  } catch (s) {
979
979
  const i = e.find((l) => l.href == null) || document.styleSheets[0];
980
- a.href != null && n.push(Be(a.href).then((l) => Ye(l, t)).then((l) => Xe(l).forEach((p) => {
980
+ a.href != null && n.push(qe(a.href).then((l) => Ye(l, t)).then((l) => Xe(l).forEach((p) => {
981
981
  i.insertRule(p, i.cssRules.length);
982
982
  })).catch((l) => {
983
983
  console.error("Error loading remote stylesheet", l);
@@ -1041,12 +1041,12 @@ async function Dr(e, t = {}) {
1041
1041
  return i.width = u * p, i.height = x * p, t.skipAutoScale || rr(i), i.style.width = `${u}`, i.style.height = `${x}`, t.backgroundColor && (l.fillStyle = t.backgroundColor, l.fillRect(0, 0, i.width, i.height)), l.drawImage(s, 0, 0, i.width, i.height), i;
1042
1042
  }
1043
1043
  async function Je(e, t = {}) {
1044
- return (await Dr(e, t)).toDataURL("image/jpeg", t.quality || 1);
1044
+ return (await Dr(e, t)).toDataURL();
1045
1045
  }
1046
- const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 15, qr = () => {
1046
+ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 15, Br = () => {
1047
1047
  const e = window.innerWidth;
1048
1048
  return e < 768 ? "mobile" : e < 1024 ? "tablet" : "desktop";
1049
- }, Br = (e) => {
1049
+ }, qr = (e) => {
1050
1050
  let t = 0;
1051
1051
  for (let r = 0; r < e.length; r++) {
1052
1052
  const n = e.charCodeAt(r);
@@ -1071,7 +1071,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1071
1071
  }, Xr = (e) => {
1072
1072
  const t = (e.innerText || "").slice(0, 30).trim(), r = {
1073
1073
  tag: e.tagName.toLowerCase(),
1074
- classHash: Br(e.className),
1074
+ classHash: qr(e.className),
1075
1075
  textSnippet: t,
1076
1076
  parentTag: e.parentElement?.tagName.toLowerCase(),
1077
1077
  neighborCount: e.parentElement?.children.length || 0
@@ -1110,15 +1110,15 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1110
1110
  const x = i.getContext("2d");
1111
1111
  if (x) {
1112
1112
  x.scale(l, l);
1113
- let m = (t.left - r) * n, g = (t.top - r) * n, h = p * n, v = u * n, j = 0, T = 0, I = p, M = u;
1114
- m < 0 && (j = Math.abs(m) / n, h += m, I -= j, m = 0), m + h > s.width && (h = s.width - m, I = h / n), g < 0 && (T = Math.abs(g) / n, v += g, M -= T, g = 0), g + v > s.height && (v = s.height - g, M = v / n), x.fillStyle = "#f8fafc", x.fillRect(0, 0, p, u), h > 0 && v > 0 && x.drawImage(
1113
+ let m = (t.left - r) * n, g = (t.top - r) * n, h = p * n, v = u * n, j = 0, V = 0, I = p, M = u;
1114
+ m < 0 && (j = Math.abs(m) / n, h += m, I -= j, m = 0), m + h > s.width && (h = s.width - m, I = h / n), g < 0 && (V = Math.abs(g) / n, v += g, M -= V, g = 0), g + v > s.height && (v = s.height - g, M = v / n), x.fillStyle = "#f8fafc", x.fillRect(0, 0, p, u), h > 0 && v > 0 && x.drawImage(
1115
1115
  s,
1116
1116
  m,
1117
1117
  g,
1118
1118
  h,
1119
1119
  v,
1120
1120
  j,
1121
- T,
1121
+ V,
1122
1122
  I,
1123
1123
  M
1124
1124
  );
@@ -1248,11 +1248,11 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1248
1248
  s.unshift(v);
1249
1249
  const j = h.id && !h.id.startsWith("__") ? h.id : null;
1250
1250
  j && a.push(`#${j}`);
1251
- const T = h.getAttribute("data-testid") || h.getAttribute("data-qa");
1252
- T && a.push(`[data-testid="${T}"]`);
1253
- const I = h.getAttribute("aria-label"), M = h.getAttribute("role"), P = h.getAttribute("name");
1254
- if (T) {
1255
- v = `[${h.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${T}"]`, g.unshift(v);
1251
+ const V = h.getAttribute("data-testid") || h.getAttribute("data-qa");
1252
+ V && a.push(`[data-testid="${V}"]`);
1253
+ const I = h.getAttribute("aria-label"), M = h.getAttribute("role"), T = h.getAttribute("name");
1254
+ if (V) {
1255
+ v = `[${h.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${V}"]`, g.unshift(v);
1256
1256
  break;
1257
1257
  } else if (j) {
1258
1258
  v = "#" + j, g.unshift(v);
@@ -1263,13 +1263,13 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1263
1263
  } else if (M) {
1264
1264
  v = `${h.localName}[role="${M}"]`, g.unshift(v);
1265
1265
  break;
1266
- } else if (P) {
1267
- v = `${h.localName}[name="${P}"]`, g.unshift(v);
1266
+ } else if (T) {
1267
+ v = `${h.localName}[name="${T}"]`, g.unshift(v);
1268
1268
  break;
1269
1269
  } else {
1270
- let A = h, k = 1;
1271
- for (; A.previousElementSibling; )
1272
- A = A.previousElementSibling, A.nodeName.toLowerCase() === h.nodeName.toLowerCase() && k++;
1270
+ let P = h, k = 1;
1271
+ for (; P.previousElementSibling; )
1272
+ P = P.previousElementSibling, P.nodeName.toLowerCase() === h.nodeName.toLowerCase() && k++;
1273
1273
  k > 1 && (v += `:nth-of-type(${k})`);
1274
1274
  }
1275
1275
  g.unshift(v), h = h.parentElement;
@@ -1301,38 +1301,38 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1301
1301
  metadata: {
1302
1302
  hint: `Edit ${t.split(":")[0]} at line ${t.split(":")[1] || "?"}`,
1303
1303
  computedStyles: Zr(e),
1304
- viewportBreakpoint: qr(),
1304
+ viewportBreakpoint: Br(),
1305
1305
  outerHtml: e.outerHTML.slice(0, 1500),
1306
1306
  scrollPosition: { x: window.scrollX, y: window.scrollY },
1307
1307
  isModal: l
1308
1308
  }
1309
1309
  };
1310
1310
  }, nn = () => {
1311
- const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: i } = Xt(), [l, p] = R(!1), [u, x] = R(null), [m, g] = R(null), [h, v] = R(""), [j, T] = R(!1), [I, M] = R(!1), [P, A] = R(!1), [k, be] = R([]), [z, D] = R(null), [pe, $e] = R(!1), [ae, K] = R(!1), [me, fe] = R({}), [W, Q] = R(null), [X, oe] = R(!1), [ie, ee] = R(null), [c, f] = R(""), [C, S] = R({}), F = Oe(null), U = Oe(null), b = he(() => {
1311
+ const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: i } = Xt(), [l, p] = R(!1), [u, x] = R(null), [m, g] = R(null), [h, v] = R(""), [j, V] = R(!1), [I, M] = R(!1), [T, P] = R(!1), [k, be] = R([]), [z, D] = R(null), [pe, $e] = R(!1), [ae, K] = R(!1), [me, fe] = R({}), [W, Q] = R(null), [X, oe] = R(!1), [ie, ee] = R(null), [c, f] = R(""), [C, S] = R({}), F = Oe(null), U = Oe(null), b = he(() => {
1312
1312
  U.current || (U.current = requestAnimationFrame(() => {
1313
- const d = {}, y = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((O) => pt(O) && Ke(O)), H = !!y;
1314
- k.forEach((O) => {
1315
- if (!O.reference) return;
1316
- const _ = en(O.reference), E = !!O.reference.metadata?.isModal;
1317
- if (_ && Ke(_)) {
1313
+ const d = {}, y = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((G) => pt(G) && Ke(G)), H = !!y;
1314
+ k.forEach((G) => {
1315
+ if (!G.reference) return;
1316
+ const O = en(G.reference), E = !!G.reference.metadata?.isModal;
1317
+ if (O && Ke(O)) {
1318
1318
  let te = !1;
1319
- if (H ? te = y.contains(_) : te = !E, !te) return;
1320
- const V = _.getBoundingClientRect(), le = V.left + V.width / 2, q = V.top + V.height / 2;
1321
- if (le >= 0 && le <= window.innerWidth && q >= 0 && q <= window.innerHeight) {
1322
- const B = document.elementFromPoint(le, q);
1323
- if (B && !_.contains(B) && !F.current?.contains(B))
1319
+ if (H ? te = y.contains(O) : te = !E, !te) return;
1320
+ const _ = O.getBoundingClientRect(), le = _.left + _.width / 2, B = _.top + _.height / 2;
1321
+ if (le >= 0 && le <= window.innerWidth && B >= 0 && B <= window.innerHeight) {
1322
+ const q = document.elementFromPoint(le, B);
1323
+ if (q && !O.contains(q) && !F.current?.contains(q))
1324
1324
  return;
1325
1325
  }
1326
- d[O._id] = {
1327
- top: V.top + window.scrollY,
1328
- left: V.left + window.scrollX,
1329
- width: V.width,
1326
+ d[G._id] = {
1327
+ top: _.top + window.scrollY,
1328
+ left: _.left + window.scrollX,
1329
+ width: _.width,
1330
1330
  isModal: E
1331
1331
  };
1332
1332
  }
1333
1333
  }), S(d), U.current = null;
1334
1334
  }));
1335
- }, [k]), G = he(async () => {
1335
+ }, [k]), A = he(async () => {
1336
1336
  if (n) {
1337
1337
  K(!0);
1338
1338
  try {
@@ -1351,8 +1351,8 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1351
1351
  }
1352
1352
  }, [n, a]);
1353
1353
  Z(() => {
1354
- P && k.length === 0 && !ae && A(!1);
1355
- }, [P, k.length, ae]), Z(() => {
1354
+ T && k.length === 0 && !ae && P(!1);
1355
+ }, [T, k.length, ae]), Z(() => {
1356
1356
  if (!l && k.length > 0) {
1357
1357
  b();
1358
1358
  const d = new MutationObserver(() => b()), w = new ResizeObserver(() => b()), y = () => b();
@@ -1365,8 +1365,8 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1365
1365
  };
1366
1366
  }
1367
1367
  }, [l, k.length, b]), Z(() => {
1368
- G();
1369
- }, [G]), Z(() => {
1368
+ A();
1369
+ }, [A]), Z(() => {
1370
1370
  F.current = document.getElementById("viewgate-shadow-host");
1371
1371
  }, []);
1372
1372
  const J = he((d) => {
@@ -1397,9 +1397,9 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1397
1397
  if (!(!w || F.current?.contains(w) || w.closest(".vg-no-capture")) && u) {
1398
1398
  d.preventDefault(), d.stopPropagation(), M(!0);
1399
1399
  try {
1400
- const y = u.element.getBoundingClientRect(), H = 24, O = 2, _ = await Je(document.documentElement, {
1401
- quality: 0.9,
1402
- pixelRatio: O,
1400
+ const y = u.element.getBoundingClientRect(), H = 24, G = 2, O = await Je(document.documentElement, {
1401
+ pixelRatio: 1.5,
1402
+ // Reduced slightly for memory stability
1403
1403
  cacheBust: !0,
1404
1404
  width: window.innerWidth,
1405
1405
  height: window.innerHeight,
@@ -1407,39 +1407,40 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1407
1407
  transform: `scale(${1 / window.devicePixelRatio}) translate(-${window.scrollX}px, -${window.scrollY}px)`,
1408
1408
  transformOrigin: "top left"
1409
1409
  },
1410
- filter: (q) => {
1411
- const B = q;
1412
- return !(F.current?.contains(B) || B.id === "viewgate-ui");
1410
+ filter: (B) => {
1411
+ const q = B;
1412
+ return !(F.current?.contains(q) || q.id === "viewgate-ui");
1413
1413
  }
1414
1414
  }), E = u.element.getBoundingClientRect(), te = E.top >= 0 && E.left >= 0 && E.bottom <= window.innerHeight && E.right <= window.innerWidth;
1415
- let V = "";
1415
+ let _ = "";
1416
1416
  if (te && E.width > 0 && E.height > 0)
1417
- V = await Ze(_, E, H, O);
1417
+ _ = await Ze(O, E, H, 1.5);
1418
1418
  else
1419
1419
  try {
1420
- V = await Je(u.element, {
1421
- quality: 0.9,
1422
- pixelRatio: O,
1420
+ _ = await Je(u.element, {
1421
+ pixelRatio: 2,
1423
1422
  cacheBust: !0,
1424
- filter: (q) => {
1425
- const B = q;
1426
- return !F.current?.contains(B);
1423
+ backgroundColor: "#ffffff",
1424
+ // For large elements, white background is safer
1425
+ filter: (B) => {
1426
+ const q = B;
1427
+ return !F.current?.contains(q);
1427
1428
  }
1428
1429
  });
1429
- } catch (q) {
1430
- console.warn("Direct element capture failed, falling back to viewport crop:", q), V = await Ze(_, E, H, O);
1430
+ } catch (B) {
1431
+ console.warn("Direct element capture failed, falling back to viewport crop:", B), _ = await Ze(O, E, H, 1.5);
1431
1432
  }
1432
1433
  const le = {
1433
1434
  ...u.semanticReference,
1434
1435
  metadata: {
1435
1436
  ...u.semanticReference.metadata,
1436
- screenshotUrl: _,
1437
- elementScreenshot: V
1437
+ screenshotUrl: O,
1438
+ elementScreenshot: _
1438
1439
  }
1439
1440
  };
1440
1441
  g({
1441
1442
  ...u,
1442
- visualPreview: V,
1443
+ visualPreview: _,
1443
1444
  semanticReference: le
1444
1445
  });
1445
1446
  } catch (y) {
@@ -1452,7 +1453,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1452
1453
  Z(() => {
1453
1454
  const d = (w) => {
1454
1455
  if (w.key === "Escape") {
1455
- m ? g(null) : P ? A(!1) : l && p(!1);
1456
+ m ? g(null) : T ? P(!1) : l && p(!1);
1456
1457
  return;
1457
1458
  }
1458
1459
  const H = (() => {
@@ -1462,16 +1463,16 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1462
1463
  return E;
1463
1464
  })();
1464
1465
  if (["input", "textarea"].includes((H?.tagName || "").toLowerCase()) || H?.isContentEditable) return;
1465
- const _ = w.key.toLowerCase();
1466
- _ === "c" && !m && !P && p((E) => !E), _ === "v" && !m && (k.length > 0 || P) && (A((E) => !E), P || p(!1));
1466
+ const O = w.key.toLowerCase();
1467
+ O === "c" && !m && !T && p((E) => !E), O === "v" && !m && (k.length > 0 || T) && (P((E) => !E), T || p(!1));
1467
1468
  };
1468
1469
  return l && !m ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", d), window.addEventListener("mousemove", J, !0), window.addEventListener("click", ce, !0), () => {
1469
1470
  document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", d), window.removeEventListener("mousemove", J, !0), window.removeEventListener("click", ce, !0);
1470
1471
  };
1471
- }, [l, m, P, k, J, ce]);
1472
+ }, [l, m, T, k, J, ce]);
1472
1473
  const ft = async () => {
1473
1474
  if (!m || !h.trim()) return;
1474
- T(!0);
1475
+ V(!0);
1475
1476
  const { semanticReference: d } = m, [w, y] = (d.source || "").split(":"), H = y || "0";
1476
1477
  try {
1477
1478
  if (!(await fetch(`${a}/api/annotations`, {
@@ -1497,14 +1498,14 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1497
1498
  }
1498
1499
  })
1499
1500
  })).ok) throw new Error("Backend failed");
1500
- e(r.success, "success"), g(null), v(""), p(!1), G();
1501
- } catch (O) {
1502
- console.error(O), e(r.error, "error");
1501
+ e(r.success, "success"), g(null), v(""), p(!1), A();
1502
+ } catch (G) {
1503
+ console.error(G), e(r.error, "error");
1503
1504
  } finally {
1504
- T(!1);
1505
+ V(!1);
1505
1506
  }
1506
1507
  };
1507
- return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:895", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:896", className: "vg-no-capture", children: [
1508
+ return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:894", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:895", className: "vg-no-capture", children: [
1508
1509
  !i && /* @__PURE__ */ o.jsx(
1509
1510
  "button",
1510
1511
  {
@@ -1542,10 +1543,10 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1542
1543
  onMouseLeave: (d) => {
1543
1544
  d.currentTarget.style.transform = "scale(1) rotate(0deg)", d.currentTarget.style.color = "#64748b", d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
1544
1545
  },
1545
- children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:940", size: 20, strokeWidth: 2.5 })
1546
+ children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:939", size: 20, strokeWidth: 2.5 })
1546
1547
  }
1547
1548
  ),
1548
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:945", style: { position: "fixed", bottom: "30px", right: "30px", zIndex: ke }, id: "viewgate-ui", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:946", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
1549
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:944", style: { position: "fixed", bottom: "30px", right: "30px", zIndex: ke }, id: "viewgate-ui", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:945", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
1549
1550
  /* @__PURE__ */ o.jsx(
1550
1551
  "button",
1551
1552
  {
@@ -1555,9 +1556,9 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1555
1556
  padding: "12px 24px",
1556
1557
  background: l ? "#ef4444" : void 0
1557
1558
  },
1558
- children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:955", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1559
- l ? /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:956", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:956", size: 20, className: "vg-animate-pop" }),
1560
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:957", children: l ? r.exitMode : r.enterMode })
1559
+ children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:954", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1560
+ l ? /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:955", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:955", size: 20, className: "vg-animate-pop" }),
1561
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:956", children: l ? r.exitMode : r.enterMode })
1561
1562
  ] })
1562
1563
  }
1563
1564
  ),
@@ -1565,18 +1566,18 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1565
1566
  "button",
1566
1567
  {
1567
1568
  onClick: () => {
1568
- A(!P), p(!1), g(null);
1569
+ P(!T), p(!1), g(null);
1569
1570
  },
1570
1571
  className: "vg-button-ghost vg-animate-pop",
1571
1572
  style: { animationDelay: "0.1s" },
1572
1573
  children: [
1573
- /* @__PURE__ */ o.jsx(Gt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:970", size: 20 }),
1574
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:971", children: r.viewComments })
1574
+ /* @__PURE__ */ o.jsx(Gt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:969", size: 20 }),
1575
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:970", children: r.viewComments })
1575
1576
  ]
1576
1577
  }
1577
1578
  )
1578
1579
  ] }) }),
1579
- I && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:979", style: {
1580
+ I && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:978", style: {
1580
1581
  position: "fixed",
1581
1582
  top: 0,
1582
1583
  left: 0,
@@ -1589,14 +1590,14 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1589
1590
  justifyContent: "center",
1590
1591
  zIndex: ke + 1,
1591
1592
  cursor: "wait"
1592
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:985", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1593
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:986", className: "vg-spinner" }),
1594
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:987", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
1593
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:984", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1594
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:985", className: "vg-spinner" }),
1595
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:986", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
1595
1596
  ] }) }),
1596
1597
  l && !m && /* @__PURE__ */ o.jsx(
1597
1598
  "div",
1598
1599
  {
1599
- "data-source-path": "/src/components/ViewGateOverlay.tsx:994",
1600
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:993",
1600
1601
  className: "vg-backdrop-blur",
1601
1602
  style: {
1602
1603
  opacity: 1,
@@ -1615,7 +1616,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1615
1616
  l && u && !m && !I && /* @__PURE__ */ o.jsx(
1616
1617
  "div",
1617
1618
  {
1618
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1013",
1619
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1012",
1619
1620
  className: "vg-selection-pulse",
1620
1621
  style: {
1621
1622
  top: u.rect.top - 4,
@@ -1627,17 +1628,17 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1627
1628
  children: /* @__PURE__ */ o.jsxs(
1628
1629
  "div",
1629
1630
  {
1630
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1023",
1631
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1022",
1631
1632
  className: "vg-selection-label",
1632
1633
  style: {
1633
1634
  ...u.rect.top < 60 ? u.rect.bottom > window.innerHeight - 60 ? { top: "8px", bottom: "auto" } : { top: "100%", marginTop: "8px", bottom: "auto" } : { top: "-40px", bottom: "auto" },
1634
1635
  ...u.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
1635
1636
  },
1636
1637
  children: [
1637
- /* @__PURE__ */ o.jsx(Mt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1039", size: 16 }),
1638
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1040", style: { display: "flex", flexDirection: "column" }, children: [
1639
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1041", style: { fontWeight: 700 }, children: r.selectToComment }),
1640
- /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1042", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
1638
+ /* @__PURE__ */ o.jsx(Mt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1038", size: 16 }),
1639
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1039", style: { display: "flex", flexDirection: "column" }, children: [
1640
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1040", style: { fontWeight: 700 }, children: r.selectToComment }),
1641
+ /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1041", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
1641
1642
  Math.round(u.rect.width),
1642
1643
  " × ",
1643
1644
  Math.round(u.rect.height)
@@ -1648,7 +1649,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1648
1649
  )
1649
1650
  }
1650
1651
  ),
1651
- m && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1052", className: "vg-animate-fade", style: {
1652
+ m && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1051", className: "vg-animate-fade", style: {
1652
1653
  position: "fixed",
1653
1654
  top: 0,
1654
1655
  left: 0,
@@ -1660,13 +1661,13 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1660
1661
  alignItems: "center",
1661
1662
  justifyContent: "center",
1662
1663
  zIndex: Re
1663
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1057", className: "vg-glassmorphism vg-animate-slide", style: {
1664
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1056", className: "vg-glassmorphism vg-animate-slide", style: {
1664
1665
  padding: "40px",
1665
1666
  width: "500px",
1666
1667
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
1667
1668
  }, children: [
1668
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1061", style: { textAlign: "center", marginBottom: "32px" }, children: [
1669
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1062", style: {
1669
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1060", style: { textAlign: "center", marginBottom: "32px" }, children: [
1670
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1061", style: {
1670
1671
  width: "48px",
1671
1672
  height: "48px",
1672
1673
  background: "var(--vg-primary-gradient)",
@@ -1677,11 +1678,11 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1677
1678
  margin: "0 auto 16px",
1678
1679
  color: "white",
1679
1680
  boxShadow: "0 8px 16px rgba(99, 102, 241, 0.3)"
1680
- }, children: /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1067", size: 24 }) }),
1681
- /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1069", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1682
- /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1070", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
1681
+ }, children: /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1066", size: 24 }) }),
1682
+ /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1068", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1683
+ /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1069", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
1683
1684
  ] }),
1684
- m.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1074", style: {
1685
+ m.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1073", style: {
1685
1686
  marginBottom: "24px",
1686
1687
  borderRadius: "12px",
1687
1688
  overflow: "hidden",
@@ -1709,7 +1710,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1709
1710
  style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
1710
1711
  }
1711
1712
  ),
1712
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1101", style: { display: "flex", gap: "12px" }, children: [
1713
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1100", style: { display: "flex", gap: "12px" }, children: [
1713
1714
  /* @__PURE__ */ o.jsx(
1714
1715
  "button",
1715
1716
  {
@@ -1727,15 +1728,15 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1727
1728
  className: "vg-button-primary",
1728
1729
  disabled: j || !h.trim(),
1729
1730
  style: { flex: 2 },
1730
- children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1116", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1731
- j ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1117", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(Ut, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1117", size: 18 }),
1732
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1118", children: j ? r.submitting : r.sendFeedback || "Send Comment" })
1731
+ children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1115", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1732
+ j ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1116", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(Ut, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1116", size: 18 }),
1733
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1117", children: j ? r.submitting : r.sendFeedback || "Send Comment" })
1733
1734
  ] })
1734
1735
  }
1735
1736
  )
1736
1737
  ] })
1737
1738
  ] }) }),
1738
- P && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1128", className: "vg-animate-fade", style: {
1739
+ T && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1127", className: "vg-animate-fade", style: {
1739
1740
  position: "fixed",
1740
1741
  top: 0,
1741
1742
  left: 0,
@@ -1747,23 +1748,23 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1747
1748
  alignItems: "center",
1748
1749
  justifyContent: "center",
1749
1750
  zIndex: Re
1750
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1133", className: "vg-glassmorphism vg-animate-slide", style: {
1751
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1132", className: "vg-glassmorphism vg-animate-slide", style: {
1751
1752
  padding: "32px",
1752
1753
  width: "650px",
1753
1754
  maxHeight: "85vh",
1754
1755
  display: "flex",
1755
1756
  flexDirection: "column"
1756
1757
  }, children: [
1757
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1137", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1758
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1138", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1759
- /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1139", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: W ? r.commentDetails : r.annotations }),
1760
- !W && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1143", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: k.length })
1758
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1136", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1759
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1137", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1760
+ /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1138", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: W ? r.commentDetails : r.annotations }),
1761
+ !W && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1142", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: k.length })
1761
1762
  ] }),
1762
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1148", style: { display: "flex", gap: "8px" }, children: [
1763
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1147", style: { display: "flex", gap: "8px" }, children: [
1763
1764
  W && /* @__PURE__ */ o.jsx(
1764
1765
  "button",
1765
1766
  {
1766
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1150",
1767
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1149",
1767
1768
  className: "vg-button-ghost",
1768
1769
  style: { padding: "6px 14px", fontSize: "12px" },
1769
1770
  onClick: () => Q(null),
@@ -1773,21 +1774,21 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1773
1774
  /* @__PURE__ */ o.jsx(
1774
1775
  "button",
1775
1776
  {
1776
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1158",
1777
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1157",
1777
1778
  className: "vg-button-ghost",
1778
1779
  style: { padding: "8px", borderRadius: "50%" },
1779
1780
  onClick: () => {
1780
- A(!1), Q(null);
1781
+ P(!1), Q(null);
1781
1782
  },
1782
- children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1163", size: 20 })
1783
+ children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1162", size: 20 })
1783
1784
  }
1784
1785
  )
1785
1786
  ] })
1786
1787
  ] }),
1787
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1168", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: ae ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1170", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1171", className: "vg-spinner" }) }) : (W ? k.filter((d) => d._id === W) : k).map((d, w) => /* @__PURE__ */ o.jsxs(
1788
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1167", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: ae ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1169", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1170", className: "vg-spinner" }) }) : (W ? k.filter((d) => d._id === W) : k).map((d, w) => /* @__PURE__ */ o.jsxs(
1788
1789
  "div",
1789
1790
  {
1790
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1175",
1791
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1174",
1791
1792
  className: "vg-glassmorphism vg-animate-slide",
1792
1793
  style: {
1793
1794
  padding: "20px",
@@ -1797,17 +1798,17 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1797
1798
  animationDelay: `${w * 0.05}s`
1798
1799
  },
1799
1800
  children: [
1800
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1186", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1187", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
1801
- d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1189", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a" }, children: [
1802
- /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1190", size: 14 }),
1801
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1185", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1186", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
1802
+ d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1188", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a" }, children: [
1803
+ /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1189", size: 14 }),
1803
1804
  " ",
1804
1805
  r.readyForReview
1805
- ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1193", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c" }, children: [
1806
- /* @__PURE__ */ o.jsx(ze, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1194", size: 14 }),
1806
+ ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1192", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c" }, children: [
1807
+ /* @__PURE__ */ o.jsx(ze, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1193", size: 14 }),
1807
1808
  " ",
1808
1809
  r.pending
1809
1810
  ] }),
1810
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1197", style: { fontSize: "12px", color: "#000000" }, children: Yr(d.timestamp || d.createdAt || d.reference?.timestamp, t) })
1811
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1196", style: { fontSize: "12px", color: "#000000" }, children: Yr(d.timestamp || d.createdAt || d.reference?.timestamp, t) })
1811
1812
  ] }) }),
1812
1813
  ie === d._id ? /* @__PURE__ */ o.jsx(
1813
1814
  "textarea",
@@ -1819,12 +1820,12 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1819
1820
  autoFocus: !0,
1820
1821
  style: { marginBottom: "16px" }
1821
1822
  }
1822
- ) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1213", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: d.message }),
1823
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1216", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: ie === d._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1823
+ ) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1212", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: d.message }),
1824
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1215", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: ie === d._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1824
1825
  /* @__PURE__ */ o.jsx(
1825
1826
  "button",
1826
1827
  {
1827
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1219",
1828
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1218",
1828
1829
  className: "vg-button-primary vg-animate-pop",
1829
1830
  style: { padding: "8px 16px", fontSize: "13px" },
1830
1831
  onClick: async () => {
@@ -1833,7 +1834,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1833
1834
  method: "PATCH",
1834
1835
  headers: { "Content-Type": "application/json", "x-api-key": n },
1835
1836
  body: JSON.stringify({ message: c })
1836
- })).ok && (ee(null), G(), e(r.updateSuccess, "success"));
1837
+ })).ok && (ee(null), A(), e(r.updateSuccess, "success"));
1837
1838
  } catch {
1838
1839
  e(r.error, "error");
1839
1840
  }
@@ -1841,19 +1842,19 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1841
1842
  children: r.save
1842
1843
  }
1843
1844
  ),
1844
- /* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1241", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => ee(null), children: r.cancel })
1845
+ /* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1240", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => ee(null), children: r.cancel })
1845
1846
  ] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1846
1847
  /* @__PURE__ */ o.jsxs(
1847
1848
  "button",
1848
1849
  {
1849
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1245",
1850
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1244",
1850
1851
  className: "vg-button-ghost vg-animate-pop",
1851
1852
  style: { padding: "8px 16px", fontSize: "13px" },
1852
1853
  onClick: () => {
1853
1854
  ee(d._id), f(d.message);
1854
1855
  },
1855
1856
  children: [
1856
- /* @__PURE__ */ o.jsx(Ft, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1253", size: 14 }),
1857
+ /* @__PURE__ */ o.jsx(Ft, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1252", size: 14 }),
1857
1858
  " ",
1858
1859
  r.edit
1859
1860
  ]
@@ -1862,14 +1863,14 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1862
1863
  /* @__PURE__ */ o.jsxs(
1863
1864
  "button",
1864
1865
  {
1865
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1255",
1866
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1254",
1866
1867
  className: "vg-button-ghost vg-animate-pop",
1867
1868
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.05s" },
1868
1869
  onClick: () => {
1869
1870
  d.url && (window.location.href = d.url);
1870
1871
  },
1871
1872
  children: [
1872
- /* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1262", size: 14 }),
1873
+ /* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1261", size: 14 }),
1873
1874
  " ",
1874
1875
  r.review
1875
1876
  ]
@@ -1878,7 +1879,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1878
1879
  d.status === "pending" ? /* @__PURE__ */ o.jsxs(
1879
1880
  "button",
1880
1881
  {
1881
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1265",
1882
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1264",
1882
1883
  className: "vg-button-primary vg-animate-pop",
1883
1884
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
1884
1885
  onClick: () => {
@@ -1892,7 +1893,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1892
1893
  method: "PATCH",
1893
1894
  headers: { "Content-Type": "application/json", "x-api-key": n },
1894
1895
  body: JSON.stringify({ status: "ready_for_review" })
1895
- })).ok && (G(), e(r.updateSuccess, "success"));
1896
+ })).ok && (A(), e(r.updateSuccess, "success"));
1896
1897
  } catch {
1897
1898
  e(r.error, "error");
1898
1899
  } finally {
@@ -1902,7 +1903,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1902
1903
  });
1903
1904
  },
1904
1905
  children: [
1905
- /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1293", size: 14 }),
1906
+ /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1292", size: 14 }),
1906
1907
  " ",
1907
1908
  r.markReady
1908
1909
  ]
@@ -1910,7 +1911,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1910
1911
  ) : /* @__PURE__ */ o.jsxs(
1911
1912
  "button",
1912
1913
  {
1913
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1296",
1914
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1295",
1914
1915
  className: "vg-button-ghost vg-animate-pop",
1915
1916
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
1916
1917
  onClick: () => {
@@ -1925,7 +1926,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1925
1926
  method: "PATCH",
1926
1927
  headers: { "Content-Type": "application/json", "x-api-key": n },
1927
1928
  body: JSON.stringify({ status: "pending" })
1928
- })).ok && (G(), e(r.updateSuccess, "success"));
1929
+ })).ok && (A(), e(r.updateSuccess, "success"));
1929
1930
  } catch {
1930
1931
  e(r.error, "error");
1931
1932
  } finally {
@@ -1935,7 +1936,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1935
1936
  });
1936
1937
  },
1937
1938
  children: [
1938
- /* @__PURE__ */ o.jsx(Ht, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1324", size: 14 }),
1939
+ /* @__PURE__ */ o.jsx(Ht, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1323", size: 14 }),
1939
1940
  " ",
1940
1941
  r.reopen
1941
1942
  ]
@@ -1944,7 +1945,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1944
1945
  /* @__PURE__ */ o.jsx(
1945
1946
  "button",
1946
1947
  {
1947
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1327",
1948
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1326",
1948
1949
  className: "vg-button-ghost vg-animate-pop",
1949
1950
  style: { padding: "8px 12px", color: "#ef4444", borderColor: "#fee2e2", animationDelay: "0.15s" },
1950
1951
  onClick: () => {
@@ -1957,7 +1958,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1957
1958
  (await fetch(`${a}/api/annotations/${d._id}`, {
1958
1959
  method: "DELETE",
1959
1960
  headers: { "x-api-key": n }
1960
- })).ok && (G(), e(r.deleteSuccess, "success"));
1961
+ })).ok && (A(), e(r.deleteSuccess, "success"));
1961
1962
  } catch {
1962
1963
  e(r.error, "error");
1963
1964
  } finally {
@@ -1966,7 +1967,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1966
1967
  }
1967
1968
  });
1968
1969
  },
1969
- children: /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1354", size: 16 })
1970
+ children: /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1353", size: 16 })
1970
1971
  }
1971
1972
  )
1972
1973
  ] }) })
@@ -1975,7 +1976,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1975
1976
  d._id
1976
1977
  )) })
1977
1978
  ] }) }),
1978
- z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1369", className: "vg-animate-fade", style: {
1979
+ z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1368", className: "vg-animate-fade", style: {
1979
1980
  position: "fixed",
1980
1981
  top: 0,
1981
1982
  left: 0,
@@ -1987,14 +1988,14 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
1987
1988
  alignItems: "center",
1988
1989
  justifyContent: "center",
1989
1990
  zIndex: Re + 100
1990
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1374", className: "vg-glassmorphism vg-animate-slide", style: {
1991
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1373", className: "vg-glassmorphism vg-animate-slide", style: {
1991
1992
  padding: "40px",
1992
1993
  width: "420px",
1993
1994
  textAlign: "center",
1994
1995
  border: "1px solid rgba(255, 255, 255, 0.1)",
1995
1996
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
1996
1997
  }, children: [
1997
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1381", style: {
1998
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1380", style: {
1998
1999
  width: "64px",
1999
2000
  height: "64px",
2000
2001
  background: z.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
@@ -2005,14 +2006,14 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
2005
2006
  margin: "0 auto 24px",
2006
2007
  color: z.type === "danger" ? "#ef4444" : "#6366f1",
2007
2008
  transform: "rotate(-5deg)"
2008
- }, children: z.type === "danger" ? /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1390", size: 32 }) : /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1390", size: 32 }) }),
2009
- /* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1392", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: z.title }),
2010
- /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1393", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: z.message }),
2011
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1394", style: { display: "flex", gap: "16px" }, children: [
2009
+ }, children: z.type === "danger" ? /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1389", size: 32 }) : /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1389", size: 32 }) }),
2010
+ /* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1391", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: z.title }),
2011
+ /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1392", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: z.message }),
2012
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1393", style: { display: "flex", gap: "16px" }, children: [
2012
2013
  /* @__PURE__ */ o.jsx(
2013
2014
  "button",
2014
2015
  {
2015
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1395",
2016
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1394",
2016
2017
  className: "vg-button-ghost",
2017
2018
  style: { flex: 1, height: "44px" },
2018
2019
  onClick: () => !X && D(null),
@@ -2023,7 +2024,7 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
2023
2024
  /* @__PURE__ */ o.jsx(
2024
2025
  "button",
2025
2026
  {
2026
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1403",
2027
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1402",
2027
2028
  className: "vg-button-primary",
2028
2029
  style: {
2029
2030
  flex: 1,
@@ -2046,16 +2047,16 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
2046
2047
  oe(!1);
2047
2048
  }
2048
2049
  },
2049
- children: X ? /* @__PURE__ */ o.jsx(Lt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1428", size: 18, className: "vg-animate-spin" }) : r.yes
2050
+ children: X ? /* @__PURE__ */ o.jsx(Lt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1427", size: 18, className: "vg-animate-spin" }) : r.yes
2050
2051
  }
2051
2052
  )
2052
2053
  ] })
2053
2054
  ] }) }),
2054
- !l && !P && k.map((d, w) => {
2055
+ !l && !T && k.map((d, w) => {
2055
2056
  const y = C[d._id];
2056
2057
  if (!y) return null;
2057
- const O = k.slice(0, w).filter(
2058
- (_) => _.reference?.selector && _.reference.selector === d.reference?.selector
2058
+ const G = k.slice(0, w).filter(
2059
+ (O) => O.reference?.selector && O.reference.selector === d.reference?.selector
2059
2060
  ).length * 34;
2060
2061
  return /* @__PURE__ */ o.jsxs(
2061
2062
  "div",
@@ -2064,37 +2065,37 @@ const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 1
2064
2065
  style: {
2065
2066
  position: "fixed",
2066
2067
  top: y.top - 20 - window.scrollY,
2067
- left: y.left + y.width / 2 - 16 + O - window.scrollX,
2068
+ left: y.left + y.width / 2 - 16 + G - window.scrollX,
2068
2069
  cursor: "pointer",
2069
2070
  animationDelay: `${w * 0.08}s`,
2070
2071
  transition: "all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",
2071
2072
  zIndex: Ur - w
2072
2073
  // Ensure staggered pins don't overlap tooltips weirdly
2073
2074
  },
2074
- onMouseEnter: (_) => {
2075
- const E = _.currentTarget.getBoundingClientRect();
2076
- window.innerHeight - E.bottom < 180 ? fe((V) => ({ ...V, [d._id]: "vg-top" })) : fe((V) => ({ ...V, [d._id]: "" }));
2075
+ onMouseEnter: (O) => {
2076
+ const E = O.currentTarget.getBoundingClientRect();
2077
+ window.innerHeight - E.bottom < 180 ? fe((_) => ({ ..._, [d._id]: "vg-top" })) : fe((_) => ({ ..._, [d._id]: "" }));
2077
2078
  },
2078
2079
  onClick: () => {
2079
- A(!0), Q(d._id);
2080
+ P(!0), Q(d._id);
2080
2081
  },
2081
2082
  children: [
2082
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1475", className: `vg-pin-tooltip ${me[d._id] || ""}`, children: [
2083
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1476", style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "8px" }, children: [
2084
- d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1478", style: { display: "flex", alignItems: "center", gap: "6px", color: "#16a34a", fontWeight: 700, fontSize: "11px" }, children: [
2085
- /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1479", size: 12 }),
2083
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1474", className: `vg-pin-tooltip ${me[d._id] || ""}`, children: [
2084
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1475", style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "8px" }, children: [
2085
+ d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1477", style: { display: "flex", alignItems: "center", gap: "6px", color: "#16a34a", fontWeight: 700, fontSize: "11px" }, children: [
2086
+ /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1478", size: 12 }),
2086
2087
  " ",
2087
2088
  r.readyForReview
2088
- ] }) : /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1482", style: { display: "flex", alignItems: "center", gap: "6px", color: y.isModal ? "#f59e0b" : "#ea580c", fontWeight: 700, fontSize: "11px" }, children: [
2089
- /* @__PURE__ */ o.jsx(ze, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1483", size: 12 }),
2089
+ ] }) : /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1481", style: { display: "flex", alignItems: "center", gap: "6px", color: y.isModal ? "#f59e0b" : "#ea580c", fontWeight: 700, fontSize: "11px" }, children: [
2090
+ /* @__PURE__ */ o.jsx(ze, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1482", size: 12 }),
2090
2091
  " ",
2091
2092
  r.pending
2092
2093
  ] }),
2093
- y.isModal && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1487", style: { display: "flex", alignItems: "center", gap: "6px", color: "#f59e0b", fontWeight: 700, fontSize: "11px", marginLeft: "auto" }, children: /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1488", children: "MODAL" }) })
2094
+ y.isModal && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1486", style: { display: "flex", alignItems: "center", gap: "6px", color: "#f59e0b", fontWeight: 700, fontSize: "11px", marginLeft: "auto" }, children: /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1487", children: "MODAL" }) })
2094
2095
  ] }),
2095
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1492", style: { fontWeight: 500, color: "#1e293b", lineHeight: 1.4 }, children: d.message })
2096
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1491", style: { fontWeight: 500, color: "#1e293b", lineHeight: 1.4 }, children: d.message })
2096
2097
  ] }),
2097
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1495", className: `vg-formal-pin ${d.status === "ready_for_review" ? "ready" : ""} ${y.isModal ? "modal-variant" : ""}`, children: d.status === "ready_for_review" ? /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1496", size: 18 }) : y.isModal ? /* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1496", size: 16 }) : /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1496", size: 16 }) })
2098
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1494", className: `vg-formal-pin ${d.status === "ready_for_review" ? "ready" : ""} ${y.isModal ? "modal-variant" : ""}`, children: d.status === "ready_for_review" ? /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1495", size: 18 }) : y.isModal ? /* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1495", size: 16 }) : /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1495", size: 16 }) })
2098
2099
  ]
2099
2100
  },
2100
2101
  `pin-${d._id}`