viewgate-wrapper 1.10.0 → 1.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";body{margin:0!important;padding:0!important}:root{--vg-primary: #6366f1;--vg-primary-glow: rgba(99, 102, 241, .5);--vg-primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);--vg-bg-glass: rgba(255, 255, 255, .7);--vg-radius: 16px;--vg-font-main: "Inter", system-ui, sans-serif;--vg-font-alt: "Inter", system-ui, sans-serif;--placeholder-color: #94a3b8;--vg-glass-border: rgba(255, 255, 255, .3);--vg-shadow-premium: 0 20px 50px rgba(0, 0, 0, .1)}.vg-container,.vg-container *{box-sizing:border-box}.vg-container{font-family:var(--vg-font-main);-webkit-font-smoothing:antialiased}.vg-glassmorphism{background:var(--vg-bg-glass);backdrop-filter:blur(16px) saturate(180%);-webkit-backdrop-filter:blur(16px) saturate(180%);border:1px solid var(--vg-glass-border);box-shadow:0 8px 32px #0000001a;border-radius:var(--vg-radius);position:relative}.vg-button-primary{background:var(--vg-primary-gradient);color:#fff;border:none;padding:12px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:700;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 12px #6366f14d}.vg-button-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #6366f166}.vg-button-primary:disabled{opacity:.5;cursor:not-allowed;transform:none}.vg-button-ghost{background:#fffc;color:#1e293b;border:1px solid #e2e8f0;padding:10px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px}.vg-button-ghost:hover{background:#fff;border-color:#cbd5e1;box-shadow:0 4px 12px #0000000d}.vg-badge{background:#f1f5f9;color:#64748b;padding:4px 12px;font-size:11px;border-radius:99px;font-weight:600;display:inline-flex;align-items:center;gap:6px}.vg-textarea{width:100%;box-sizing:border-box;border:1px solid #e2e8f0;border-radius:12px;padding:12px;font-family:var(--vg-font-main);font-size:15px;color:#0f172a;resize:none;outline:none;background:#f8fafc;transition:all .2s ease}.vg-textarea:focus{background:#fff;border-color:var(--vg-primary);box-shadow:0 0 0 4px #6366f11a}@keyframes vg-pop-in{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08);opacity:1}to{transform:scale(1);opacity:1}}@keyframes vg-slide-up-fade{0%{transform:translateY(12px) scale(.95);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.vg-animate-pop{animation:vg-pop-in .5s cubic-bezier(.34,1.56,.64,1) forwards}.vg-animate-slide-up{animation:vg-slide-up-fade .4s cubic-bezier(.22,1,.36,1) forwards}.vg-button-primary,.vg-button-ghost,.vg-pin-container,.vg-action-bar,.vg-glassmorphism{transition:all .3s cubic-bezier(.4,0,.2,1)}.vg-animate-slide{animation:vg-slide-in .4s cubic-bezier(.22,1,.36,1) forwards}.vg-animate-fade{animation:vg-fade-in .3s ease-out forwards}.vg-toasts{position:fixed;top:24px;right:24px;display:flex;flex-direction:column;gap:12px}.vg-toast{padding:12px 20px;display:flex;align-items:center;gap:12px;min-width:300px;border-radius:12px;box-shadow:0 10px 30px #0000001a;background:#fff}.vg-toast.success{border-left:6px solid #22c55e}.vg-toast.error{border-left:6px solid #ef4444}.vg-backdrop-blur{position:fixed;top:0;left:0;width:100%;height:100%;-webkit-backdrop-filter:blur(8px) grayscale(.2);backdrop-filter:blur(8px) grayscale(.2);background:#0000001a;pointer-events:none;transition:opacity .3s ease,clip-path .2s cubic-bezier(.19,1,.22,1)}.vg-selection-pulse{position:fixed;pointer-events:none;border:2px solid var(--vg-primary);border-radius:8px;box-shadow:0 0 0 0 var(--vg-primary-glow);animation:vg-pulse 2s infinite;transition:all .2s cubic-bezier(.19,1,.22,1)}@keyframes vg-pulse{0%{box-shadow:0 0 0 0 var(--vg-primary-glow)}70%{box-shadow:0 0 0 15px #6366f100}to{box-shadow:0 0 #6366f100}}.vg-selection-label{position:absolute;top:-40px;left:0;background:var(--vg-primary-gradient);color:#fff;padding:8px 16px;border-radius:20px;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:0 4px 12px #6366f14d;display:flex;align-items:center;gap:8px}.vg-pin-container{transition:transform .2s ease}.vg-pin-container:hover{transform:scale(1.1)}.vg-formal-pin{width:32px;height:32px;border-radius:50%;background:var(--vg-primary-gradient);border:3px solid white;box-shadow:0 4px 12px #6366f166;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s ease}.vg-formal-pin.ready{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 4px 12px #10b98166}.vg-pin-tooltip{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%);padding:12px 16px;border-radius:12px;background:#fff;color:#1e293b;width:240px;font-size:13px;box-shadow:0 10px 40px #00000026;opacity:0;pointer-events:none;transition:all .2s ease;border:1px solid #e2e8f0}.vg-pin-tooltip.vg-top{top:auto;bottom:calc(100% + 12px)}.vg-pin-container:hover .vg-pin-tooltip{opacity:1;transform:translate(-50%) translateY(-5px)}.vg-action-bar{display:flex;gap:12px;padding:0;background:transparent;border:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.vg-custom-scrollbar::-webkit-scrollbar{width:6px}.vg-custom-scrollbar::-webkit-scrollbar-track{background:transparent}.vg-custom-scrollbar::-webkit-scrollbar-thumb{background:#6366f166;border-radius:10px;transition:all .2s ease}.vg-custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#6366f1b3}.vg-spinner{border:3px solid rgba(99,102,241,.1);border-top:3px solid var(--vg-primary);border-radius:50%;width:32px;height:32px;animation:vg-spin .8s linear infinite}@keyframes vg-spin{to{transform:rotate(360deg)}}.vg-cursor-pointer,.vg-cursor-pointer *{cursor:pointer!important}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import et, { useRef as ye, useState as k, useEffect as re, forwardRef as Me, createElement as xe, createContext as tt, useContext as rt, useCallback as oe } from "react";
2
+ import et, { useRef as ye, useState as k, useEffect as ne, forwardRef as Me, createElement as xe, createContext as tt, useContext as rt, useCallback as ie } from "react";
3
3
  import { createPortal as nt } from "react-dom";
4
- var ie = { exports: {} }, ee = {};
4
+ var ce = { exports: {} }, te = {};
5
5
  var Re;
6
6
  function st() {
7
- if (Re) return ee;
7
+ if (Re) return te;
8
8
  Re = 1;
9
9
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
10
10
  function r(n, a, s) {
@@ -22,29 +22,29 @@ function st() {
22
22
  props: s
23
23
  };
24
24
  }
25
- return ee.Fragment = t, ee.jsx = r, ee.jsxs = r, ee;
25
+ return te.Fragment = t, te.jsx = r, te.jsxs = r, te;
26
26
  }
27
- var te = {};
27
+ var re = {};
28
28
  var je;
29
29
  function at() {
30
30
  return je || (je = 1, process.env.NODE_ENV !== "production" && (function() {
31
31
  function e(l) {
32
32
  if (l == null) return null;
33
33
  if (typeof l == "function")
34
- return l.$$typeof === ue ? null : l.displayName || l.name || null;
34
+ return l.$$typeof === pe ? null : l.displayName || l.name || null;
35
35
  if (typeof l == "string") return l;
36
36
  switch (l) {
37
37
  case N:
38
38
  return "Fragment";
39
39
  case A:
40
40
  return "Profiler";
41
- case _:
41
+ case V:
42
42
  return "StrictMode";
43
43
  case L:
44
44
  return "Suspense";
45
45
  case Ee:
46
46
  return "SuspenseList";
47
- case ne:
47
+ case se:
48
48
  return "Activity";
49
49
  }
50
50
  if (typeof l == "object")
@@ -57,7 +57,7 @@ function at() {
57
57
  return l.displayName || "Context";
58
58
  case E:
59
59
  return (l._context.displayName || "Context") + ".Consumer";
60
- case V:
60
+ case T:
61
61
  var p = l.render;
62
62
  return l = l.displayName, l || (l = p.displayName || p.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
63
63
  case ke:
@@ -137,7 +137,7 @@ function at() {
137
137
  function m(l, p, w, v, z, H) {
138
138
  var C = w.ref;
139
139
  return l = {
140
- $$typeof: P,
140
+ $$typeof: O,
141
141
  type: l,
142
142
  key: p,
143
143
  props: w,
@@ -167,7 +167,7 @@ function at() {
167
167
  value: H
168
168
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
169
169
  }
170
- function g(l, p, w, v, z, H) {
170
+ function f(l, p, w, v, z, H) {
171
171
  var C = p.children;
172
172
  if (C !== void 0)
173
173
  if (v)
@@ -182,10 +182,10 @@ function at() {
182
182
  else x(C);
183
183
  if (I.call(p, "key")) {
184
184
  C = e(l);
185
- var d = Object.keys(p).filter(function(h) {
186
- return h !== "key";
185
+ var d = Object.keys(p).filter(function(y) {
186
+ return y !== "key";
187
187
  });
188
- v = 0 < d.length ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}", ae[C + v] || (d = 0 < d.length ? "{" + d.join(": ..., ") + ": ...}" : "{}", console.error(
188
+ v = 0 < d.length ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}", oe[C + v] || (d = 0 < d.length ? "{" + d.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} />
@@ -196,12 +196,12 @@ React keys must be passed directly to JSX without using spread:
196
196
  C,
197
197
  d,
198
198
  C
199
- ), ae[C + v] = !0);
199
+ ), oe[C + v] = !0);
200
200
  }
201
201
  if (C = null, w !== void 0 && (r(w), C = "" + w), o(p) && (r(p.key), C = "" + p.key), "key" in p) {
202
202
  w = {};
203
- for (var f in p)
204
- f !== "key" && (w[f] = p[f]);
203
+ for (var h in p)
204
+ h !== "key" && (w[h] = p[h]);
205
205
  } else w = p;
206
206
  return C && i(
207
207
  w,
@@ -216,12 +216,12 @@ React keys must be passed directly to JSX without using spread:
216
216
  );
217
217
  }
218
218
  function x(l) {
219
- y(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === J && (l._payload.status === "fulfilled" ? y(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
219
+ g(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === J && (l._payload.status === "fulfilled" ? g(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
220
220
  }
221
- function y(l) {
222
- return typeof l == "object" && l !== null && l.$$typeof === P;
221
+ function g(l) {
222
+ return typeof l == "object" && l !== null && l.$$typeof === O;
223
223
  }
224
- var b = et, P = /* @__PURE__ */ Symbol.for("react.transitional.element"), G = /* @__PURE__ */ Symbol.for("react.portal"), N = /* @__PURE__ */ Symbol.for("react.fragment"), _ = /* @__PURE__ */ Symbol.for("react.strict_mode"), A = /* @__PURE__ */ Symbol.for("react.profiler"), E = /* @__PURE__ */ Symbol.for("react.consumer"), D = /* @__PURE__ */ Symbol.for("react.context"), V = /* @__PURE__ */ Symbol.for("react.forward_ref"), L = /* @__PURE__ */ Symbol.for("react.suspense"), Ee = /* @__PURE__ */ Symbol.for("react.suspense_list"), ke = /* @__PURE__ */ Symbol.for("react.memo"), J = /* @__PURE__ */ Symbol.for("react.lazy"), ne = /* @__PURE__ */ Symbol.for("react.activity"), ue = /* @__PURE__ */ Symbol.for("react.client.reference"), W = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, Z = Array.isArray, U = console.createTask ? console.createTask : function() {
224
+ var b = et, O = /* @__PURE__ */ Symbol.for("react.transitional.element"), G = /* @__PURE__ */ Symbol.for("react.portal"), N = /* @__PURE__ */ Symbol.for("react.fragment"), V = /* @__PURE__ */ Symbol.for("react.strict_mode"), A = /* @__PURE__ */ Symbol.for("react.profiler"), E = /* @__PURE__ */ Symbol.for("react.consumer"), D = /* @__PURE__ */ Symbol.for("react.context"), T = /* @__PURE__ */ Symbol.for("react.forward_ref"), L = /* @__PURE__ */ Symbol.for("react.suspense"), Ee = /* @__PURE__ */ Symbol.for("react.suspense_list"), ke = /* @__PURE__ */ Symbol.for("react.memo"), J = /* @__PURE__ */ Symbol.for("react.lazy"), se = /* @__PURE__ */ Symbol.for("react.activity"), pe = /* @__PURE__ */ Symbol.for("react.client.reference"), W = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, Z = Array.isArray, U = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
227
  b = {
@@ -232,38 +232,38 @@ React keys must be passed directly to JSX without using spread:
232
232
  var q, K = {}, Q = b.react_stack_bottom_frame.bind(
233
233
  b,
234
234
  s
235
- )(), se = U(n(s)), ae = {};
236
- te.Fragment = N, te.jsx = function(l, p, w) {
235
+ )(), ae = U(n(s)), oe = {};
236
+ re.Fragment = N, re.jsx = function(l, p, w) {
237
237
  var v = 1e4 > W.recentlyCreatedOwnerStacks++;
238
- return g(
238
+ return f(
239
239
  l,
240
240
  p,
241
241
  w,
242
242
  !1,
243
243
  v ? Error("react-stack-top-frame") : Q,
244
- v ? U(n(l)) : se
244
+ v ? U(n(l)) : ae
245
245
  );
246
- }, te.jsxs = function(l, p, w) {
246
+ }, re.jsxs = function(l, p, w) {
247
247
  var v = 1e4 > W.recentlyCreatedOwnerStacks++;
248
- return g(
248
+ return f(
249
249
  l,
250
250
  p,
251
251
  w,
252
252
  !0,
253
253
  v ? Error("react-stack-top-frame") : Q,
254
- v ? U(n(l)) : se
254
+ v ? U(n(l)) : ae
255
255
  );
256
256
  };
257
- })()), te;
257
+ })()), re;
258
258
  }
259
259
  var Oe;
260
260
  function ot() {
261
- return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ie.exports = st() : ie.exports = at()), ie.exports;
261
+ return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ce.exports = st() : ce.exports = at()), ce.exports;
262
262
  }
263
263
  var c = ot();
264
264
  const it = ({ children: e }) => {
265
265
  const t = ye(null), [r, n] = k(null);
266
- return re(() => {
266
+ return ne(() => {
267
267
  if (t.current && !t.current.shadowRoot) {
268
268
  const a = t.current.attachShadow({ mode: "open" });
269
269
  document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach((i) => {
@@ -325,12 +325,12 @@ const pt = Me(
325
325
  ...i
326
326
  },
327
327
  [
328
- ...o.map(([m, g]) => xe(m, g)),
328
+ ...o.map(([m, f]) => xe(m, f)),
329
329
  ...Array.isArray(s) ? s : [s]
330
330
  ]
331
331
  )
332
332
  );
333
- const O = (e, t) => {
333
+ const _ = (e, t) => {
334
334
  const r = Me(
335
335
  ({ className: n, ...a }, s) => xe(pt, {
336
336
  ref: s,
@@ -349,20 +349,20 @@ const mt = [
349
349
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
350
350
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
351
351
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
352
- ], ft = O("circle-alert", mt);
352
+ ], ft = _("circle-alert", mt);
353
353
  const ht = [
354
354
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
355
355
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
356
- ], X = O("circle-check", ht);
356
+ ], X = _("circle-check", ht);
357
357
  const gt = [
358
358
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
359
359
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
360
- ], Ve = O("clock", gt);
360
+ ], Ve = _("clock", gt);
361
361
  const yt = [
362
362
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
363
363
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
364
364
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
365
- ], xt = O("external-link", yt);
365
+ ], xt = _("external-link", yt);
366
366
  const wt = [
367
367
  [
368
368
  "path",
@@ -372,7 +372,7 @@ const wt = [
372
372
  }
373
373
  ],
374
374
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
375
- ], vt = O("eye", wt);
375
+ ], vt = _("eye", wt);
376
376
  const bt = [
377
377
  [
378
378
  "path",
@@ -381,7 +381,7 @@ const bt = [
381
381
  key: "18887p"
382
382
  }
383
383
  ]
384
- ], me = O("message-square", bt);
384
+ ], me = _("message-square", bt);
385
385
  const Ct = [
386
386
  [
387
387
  "path",
@@ -390,7 +390,7 @@ const Ct = [
390
390
  key: "edeuup"
391
391
  }
392
392
  ]
393
- ], Et = O("mouse-pointer-2", Ct);
393
+ ], Et = _("mouse-pointer-2", Ct);
394
394
  const kt = [
395
395
  [
396
396
  "path",
@@ -400,11 +400,11 @@ const kt = [
400
400
  }
401
401
  ],
402
402
  ["path", { d: "m15 5 4 4", key: "1mk7zo" }]
403
- ], St = O("pencil", kt);
403
+ ], St = _("pencil", kt);
404
404
  const Rt = [
405
405
  ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
406
406
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
407
- ], jt = O("rotate-ccw", Rt);
407
+ ], jt = _("rotate-ccw", Rt);
408
408
  const Ot = [
409
409
  [
410
410
  "path",
@@ -414,18 +414,18 @@ const Ot = [
414
414
  }
415
415
  ],
416
416
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
417
- ], _t = O("send", Ot);
417
+ ], _t = _("send", Ot);
418
418
  const Vt = [
419
419
  ["path", { d: "M10 11v6", key: "nco0om" }],
420
420
  ["path", { d: "M14 11v6", key: "outv1u" }],
421
421
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
422
422
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
423
423
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
424
- ], Te = O("trash-2", Vt);
424
+ ], Te = _("trash-2", Vt);
425
425
  const Tt = [
426
426
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
427
427
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
428
- ], Pe = O("x", Tt), Pt = {
428
+ ], Pe = _("x", Tt), Pt = {
429
429
  en: {
430
430
  enterMode: "Enter Feedback Mode",
431
431
  exitMode: "Exit Mode",
@@ -525,9 +525,9 @@ const Tt = [
525
525
  baseUrl: n = "https://view-gate.vercel.app"
526
526
  }) => {
527
527
  const [a, s] = k([]), o = (u, m) => {
528
- const g = Date.now();
529
- s((x) => [...x, { id: g, message: u, type: m }]), setTimeout(() => {
530
- s((x) => x.filter((y) => y.id !== g));
528
+ const f = Date.now();
529
+ s((x) => [...x, { id: f, message: u, type: m }]), setTimeout(() => {
530
+ s((x) => x.filter((g) => g.id !== f));
531
531
  }, 4e3);
532
532
  }, i = Pt[t];
533
533
  return /* @__PURE__ */ c.jsxs(He.Provider, { "data-source-path": "/src/components/ViewGateProvider.tsx:211", value: { addToast: o, language: t, t: i, apiKey: r, baseUrl: n }, children: [
@@ -572,16 +572,16 @@ let B = null;
572
572
  function We(e = {}) {
573
573
  return B || (e.includeStyleProperties ? (B = e.includeStyleProperties, B) : (B = M(window.getComputedStyle(document.documentElement)), B));
574
574
  }
575
- function ce(e, t) {
575
+ function le(e, t) {
576
576
  const n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
577
577
  return n ? parseFloat(n.replace("px", "")) : 0;
578
578
  }
579
579
  function Nt(e) {
580
- const t = ce(e, "border-left-width"), r = ce(e, "border-right-width");
580
+ const t = le(e, "border-left-width"), r = le(e, "border-right-width");
581
581
  return e.clientWidth + t + r;
582
582
  }
583
583
  function Lt(e) {
584
- const t = ce(e, "border-top-width"), r = ce(e, "border-bottom-width");
584
+ const t = le(e, "border-top-width"), r = le(e, "border-bottom-width");
585
585
  return e.clientHeight + t + r;
586
586
  }
587
587
  function Ue(e, t = {}) {
@@ -601,7 +601,7 @@ const j = 16384;
601
601
  function zt(e) {
602
602
  (e.width > j || e.height > j) && (e.width > j && e.height > j ? e.width > e.height ? (e.height *= j / e.width, e.width = j) : (e.width *= j / e.height, e.height = j) : e.width > j ? (e.height *= j / e.width, e.width = j) : (e.width *= j / e.height, e.height = j));
603
603
  }
604
- function le(e) {
604
+ function de(e) {
605
605
  return new Promise((t, r) => {
606
606
  const n = new Image();
607
607
  n.onload = () => {
@@ -723,23 +723,23 @@ async function Ce(e, t, r) {
723
723
  }
724
724
  async function Zt(e) {
725
725
  const t = e.toDataURL();
726
- return t === "data:," ? e.cloneNode(!1) : le(t);
726
+ return t === "data:," ? e.cloneNode(!1) : de(t);
727
727
  }
728
728
  async function Kt(e, t) {
729
729
  if (e.currentSrc) {
730
730
  const s = document.createElement("canvas"), o = s.getContext("2d");
731
731
  s.width = e.clientWidth, s.height = e.clientHeight, o?.drawImage(e, 0, 0, s.width, s.height);
732
732
  const i = s.toDataURL();
733
- return le(i);
733
+ return de(i);
734
734
  }
735
735
  const r = e.poster, n = be(r), a = await Ce(r, n, t);
736
- return le(a);
736
+ return de(a);
737
737
  }
738
738
  async function Qt(e, t) {
739
739
  var r;
740
740
  try {
741
741
  if (!((r = e?.contentDocument) === null || r === void 0) && r.body)
742
- return await de(e.contentDocument.body, t, !0);
742
+ return await ue(e.contentDocument.body, t, !0);
743
743
  } catch {
744
744
  }
745
745
  return e.cloneNode(!1);
@@ -753,7 +753,7 @@ async function rr(e, t, r) {
753
753
  if (Be(t))
754
754
  return t;
755
755
  let s = [];
756
- return tr(e) && e.assignedNodes ? s = M(e.assignedNodes()) : R(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = M(e.contentDocument.body.childNodes) : s = M(((a = e.shadowRoot) !== null && a !== void 0 ? a : e).childNodes), s.length === 0 || R(e, HTMLVideoElement) || await s.reduce((o, i) => o.then(() => de(i, r)).then((u) => {
756
+ return tr(e) && e.assignedNodes ? s = M(e.assignedNodes()) : R(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = M(e.contentDocument.body.childNodes) : s = M(((a = e.shadowRoot) !== null && a !== void 0 ? a : e).childNodes), s.length === 0 || R(e, HTMLVideoElement) || await s.reduce((o, i) => o.then(() => ue(i, r)).then((u) => {
757
757
  u && t.appendChild(u);
758
758
  }), Promise.resolve()), t;
759
759
  }
@@ -788,7 +788,7 @@ async function ir(e, t) {
788
788
  const i = r[s].getAttribute("xlink:href");
789
789
  if (i) {
790
790
  const u = e.querySelector(i), m = document.querySelector(i);
791
- !u && m && !n[i] && (n[i] = await de(m, t, !0));
791
+ !u && m && !n[i] && (n[i] = await ue(m, t, !0));
792
792
  }
793
793
  }
794
794
  const a = Object.values(n);
@@ -803,7 +803,7 @@ async function ir(e, t) {
803
803
  }
804
804
  return e;
805
805
  }
806
- async function de(e, t, r) {
806
+ async function ue(e, t, r) {
807
807
  return !r && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((n) => er(n, t)).then((n) => rr(e, n, t)).then((n) => or(e, n, t)).then((n) => ir(n, t));
808
808
  }
809
809
  const Ye = /url\((['"]?)([^'"]+?)\1\)/g, cr = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, lr = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
@@ -938,17 +938,17 @@ async function xr(e, t) {
938
938
  M(a.cssRules || []).forEach((s, o) => {
939
939
  if (s.type === CSSRule.IMPORT_RULE) {
940
940
  let i = o + 1;
941
- const u = s.href, m = Le(u).then((g) => Ie(g, t)).then((g) => ze(g).forEach((x) => {
941
+ const u = s.href, m = Le(u).then((f) => Ie(f, t)).then((f) => ze(f).forEach((x) => {
942
942
  try {
943
943
  a.insertRule(x, x.startsWith("@import") ? i += 1 : a.cssRules.length);
944
- } catch (y) {
944
+ } catch (g) {
945
945
  console.error("Error inserting rule from remote css", {
946
946
  rule: x,
947
- error: y
947
+ error: g
948
948
  });
949
949
  }
950
- })).catch((g) => {
951
- console.error("Error loading remote css", g.toString());
950
+ })).catch((f) => {
951
+ console.error("Error loading remote css", f.toString());
952
952
  });
953
953
  n.push(m);
954
954
  }
@@ -1011,12 +1011,12 @@ async function Er(e, t) {
1011
1011
  }
1012
1012
  }
1013
1013
  async function kr(e, t = {}) {
1014
- const { width: r, height: n } = Ue(e, t), a = await de(e, t, !0);
1014
+ const { width: r, height: n } = Ue(e, t), a = await ue(e, t, !0);
1015
1015
  return await Er(a, t), await Ze(a, t), yr(a, t), await Mt(a, r, n);
1016
1016
  }
1017
1017
  async function Sr(e, t = {}) {
1018
- const { width: r, height: n } = Ue(e, t), a = await kr(e, t), s = await le(a), o = document.createElement("canvas"), i = o.getContext("2d"), u = t.pixelRatio || It(), m = t.canvasWidth || r, g = t.canvasHeight || n;
1019
- return o.width = m * u, o.height = g * u, t.skipAutoScale || zt(o), o.style.width = `${m}`, o.style.height = `${g}`, t.backgroundColor && (i.fillStyle = t.backgroundColor, i.fillRect(0, 0, o.width, o.height)), i.drawImage(s, 0, 0, o.width, o.height), o;
1018
+ const { width: r, height: n } = Ue(e, t), a = await kr(e, t), s = await de(a), o = document.createElement("canvas"), i = o.getContext("2d"), u = t.pixelRatio || It(), m = t.canvasWidth || r, f = t.canvasHeight || n;
1019
+ return o.width = m * u, o.height = f * u, t.skipAutoScale || zt(o), o.style.width = `${m}`, o.style.height = `${f}`, t.backgroundColor && (i.fillStyle = t.backgroundColor, i.fillRect(0, 0, o.width, o.height)), i.drawImage(s, 0, 0, o.width, o.height), o;
1020
1020
  }
1021
1021
  async function Rr(e, t = {}) {
1022
1022
  return (await Sr(e, t)).toDataURL("image/jpeg", t.quality || 1);
@@ -1080,24 +1080,29 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1080
1080
  }
1081
1081
  return r;
1082
1082
  };
1083
- })(), Nr = (e, t, r) => new Promise((n) => {
1084
- const a = new Image();
1085
- a.onload = () => {
1086
- const s = document.createElement("canvas"), o = window.devicePixelRatio || 1, i = t.width + r * 2, u = t.height + r * 2;
1087
- s.width = i * o, s.height = u * o;
1088
- const m = s.getContext("2d");
1089
- m && (m.scale(o, o), m.drawImage(
1090
- a,
1091
- t.left - r,
1092
- t.top - r,
1093
- i,
1094
- u,
1095
- 0,
1096
- 0,
1097
- i,
1098
- u
1099
- )), n(s.toDataURL("image/png"));
1100
- }, a.src = e;
1083
+ })(), Nr = (e, t, r, n) => new Promise((a) => {
1084
+ const s = new Image();
1085
+ s.onload = () => {
1086
+ const o = document.createElement("canvas"), i = window.devicePixelRatio || 1, u = t.width + r * 2, m = t.height + r * 2;
1087
+ o.width = u * i, o.height = m * i;
1088
+ const f = o.getContext("2d");
1089
+ if (f) {
1090
+ f.scale(i, i);
1091
+ const x = (t.left + window.scrollX - r) * n, g = (t.top + window.scrollY - r) * n, b = u * n, O = m * n;
1092
+ f.drawImage(
1093
+ s,
1094
+ x,
1095
+ g,
1096
+ b,
1097
+ O,
1098
+ 0,
1099
+ 0,
1100
+ u,
1101
+ m
1102
+ );
1103
+ }
1104
+ a(o.toDataURL("image/png"));
1105
+ }, s.onerror = () => a(""), s.src = e;
1101
1106
  }), Lr = (e) => {
1102
1107
  const t = window.getComputedStyle(e), r = {};
1103
1108
  return [
@@ -1185,52 +1190,52 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1185
1190
  }, Dr = (e) => {
1186
1191
  let t = "unknown:0", r = e;
1187
1192
  for (; r; ) {
1188
- const g = r.getAttribute("data-source-path");
1189
- if (g) {
1190
- t = g;
1193
+ const f = r.getAttribute("data-source-path");
1194
+ if (f) {
1195
+ t = f;
1191
1196
  break;
1192
1197
  }
1193
1198
  r = r.parentElement;
1194
1199
  }
1195
- const n = Ir(e), a = [], s = [], i = ((g) => {
1200
+ const n = Ir(e), a = [], s = [], i = ((f) => {
1196
1201
  const x = [];
1197
- let y = g;
1198
- for (; y && y.nodeType === Node.ELEMENT_NODE; ) {
1199
- let b = y.nodeName.toLowerCase();
1202
+ let g = f;
1203
+ for (; g && g.nodeType === Node.ELEMENT_NODE; ) {
1204
+ let b = g.nodeName.toLowerCase();
1200
1205
  s.unshift(b);
1201
- const P = y.id && !y.id.startsWith("__") ? y.id : null;
1202
- P && a.push(`#${P}`);
1203
- const G = y.getAttribute("data-testid") || y.getAttribute("data-qa");
1206
+ const O = g.id && !g.id.startsWith("__") ? g.id : null;
1207
+ O && a.push(`#${O}`);
1208
+ const G = g.getAttribute("data-testid") || g.getAttribute("data-qa");
1204
1209
  G && a.push(`[data-testid="${G}"]`);
1205
- const N = y.getAttribute("aria-label"), _ = y.getAttribute("role"), A = y.getAttribute("name");
1210
+ const N = g.getAttribute("aria-label"), V = g.getAttribute("role"), A = g.getAttribute("name");
1206
1211
  if (G) {
1207
- b = `[${y.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${G}"]`, x.unshift(b);
1212
+ b = `[${g.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${G}"]`, x.unshift(b);
1208
1213
  break;
1209
- } else if (P) {
1210
- b = "#" + P, x.unshift(b);
1214
+ } else if (O) {
1215
+ b = "#" + O, x.unshift(b);
1211
1216
  break;
1212
1217
  } else if (N) {
1213
- b = `${y.localName}[aria-label="${N}"]`, x.unshift(b);
1218
+ b = `${g.localName}[aria-label="${N}"]`, x.unshift(b);
1214
1219
  break;
1215
- } else if (_) {
1216
- b = `${y.localName}[role="${_}"]`, x.unshift(b);
1220
+ } else if (V) {
1221
+ b = `${g.localName}[role="${V}"]`, x.unshift(b);
1217
1222
  break;
1218
1223
  } else if (A) {
1219
- b = `${y.localName}[name="${A}"]`, x.unshift(b);
1224
+ b = `${g.localName}[name="${A}"]`, x.unshift(b);
1220
1225
  break;
1221
1226
  } else {
1222
- let E = y, D = 1;
1227
+ let E = g, D = 1;
1223
1228
  for (; E.previousElementSibling; )
1224
- E = E.previousElementSibling, E.nodeName.toLowerCase() === y.nodeName.toLowerCase() && D++;
1229
+ E = E.previousElementSibling, E.nodeName.toLowerCase() === g.nodeName.toLowerCase() && D++;
1225
1230
  D > 1 && (b += `:nth-of-type(${D})`);
1226
1231
  }
1227
- x.unshift(b), y = y.parentElement;
1232
+ x.unshift(b), g = g.parentElement;
1228
1233
  }
1229
1234
  return x.join(" > ");
1230
1235
  })(e), u = {};
1231
- ["placeholder", "aria-label", "name", "type", "alt", "title", "value", "role"].forEach((g) => {
1232
- const x = e.getAttribute(g);
1233
- x && (u[g] = x);
1236
+ ["placeholder", "aria-label", "name", "type", "alt", "title", "value", "role"].forEach((f) => {
1237
+ const x = e.getAttribute(f);
1238
+ x && (u[f] = x);
1234
1239
  });
1235
1240
  const m = `${e.tagName.toLowerCase()}-${(e.innerText || "").slice(0, 20).replace(/\s+/g, "_")}-${i.split(" > ").slice(-1)}`;
1236
1241
  return {
@@ -1259,133 +1264,133 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1259
1264
  }
1260
1265
  };
1261
1266
  }, Hr = () => {
1262
- const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a } = At(), [s, o] = k(!1), [i, u] = k(null), [m, g] = k(null), [x, y] = k(""), [b, P] = k(!1), [G, N] = k(!1), [_, A] = k(!1), [E, D] = k([]), [V, L] = k(null), [Ee, ke] = k(!1), [J, ne] = k(!1), [ue, W] = k({}), [I, Z] = k(null), [U, q] = k(null), [K, Q] = k(""), [se, ae] = k({}), l = ye(null), p = ye(null), w = oe(() => {
1267
+ const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a } = At(), [s, o] = k(!1), [i, u] = k(null), [m, f] = k(null), [x, g] = k(""), [b, O] = k(!1), [G, N] = k(!1), [V, A] = k(!1), [E, D] = k([]), [T, L] = k(null), [Ee, ke] = k(!1), [J, se] = k(!1), [pe, W] = k({}), [I, Z] = k(null), [U, q] = k(null), [K, Q] = k(""), [ae, oe] = k({}), l = ye(null), p = ye(null), w = ie(() => {
1263
1268
  p.current || (p.current = requestAnimationFrame(() => {
1264
1269
  const d = {};
1265
- E.forEach((f) => {
1266
- if (!f.reference) return;
1267
- const h = Fr(f.reference);
1268
- if (h) {
1269
- const T = h.getBoundingClientRect();
1270
- d[f._id] = {
1271
- top: T.top + window.scrollY,
1272
- left: T.left + window.scrollX,
1273
- width: T.width
1270
+ E.forEach((h) => {
1271
+ if (!h.reference) return;
1272
+ const y = Fr(h.reference);
1273
+ if (y) {
1274
+ const P = y.getBoundingClientRect();
1275
+ d[h._id] = {
1276
+ top: P.top + window.scrollY,
1277
+ left: P.left + window.scrollX,
1278
+ width: P.width
1274
1279
  };
1275
1280
  }
1276
- }), ae(d), p.current = null;
1281
+ }), oe(d), p.current = null;
1277
1282
  }));
1278
- }, [E]), v = oe(async () => {
1283
+ }, [E]), v = ie(async () => {
1279
1284
  if (n) {
1280
- ne(!0);
1285
+ se(!0);
1281
1286
  try {
1282
1287
  const d = await fetch(`${a}/api/annotations`, {
1283
1288
  headers: { "x-api-key": n }
1284
1289
  });
1285
1290
  if (d.ok) {
1286
- const f = await d.json();
1287
- D(f.data || []);
1291
+ const h = await d.json();
1292
+ D(h.data || []);
1288
1293
  }
1289
1294
  } catch (d) {
1290
1295
  console.error("Failed to fetch annotations", d);
1291
1296
  } finally {
1292
- ne(!1);
1297
+ se(!1);
1293
1298
  }
1294
1299
  }
1295
1300
  }, [n, a]);
1296
- re(() => {
1301
+ ne(() => {
1297
1302
  if (!s && E.length > 0) {
1298
1303
  w();
1299
- const d = new MutationObserver(() => w()), f = new ResizeObserver(() => w()), h = () => w();
1304
+ const d = new MutationObserver(() => w()), h = new ResizeObserver(() => w()), y = () => w();
1300
1305
  return d.observe(document.documentElement, {
1301
1306
  childList: !0,
1302
1307
  subtree: !0,
1303
1308
  attributes: !0
1304
- }), f.observe(document.documentElement), window.addEventListener("scroll", h, !0), () => {
1305
- d.disconnect(), f.disconnect(), window.removeEventListener("scroll", h, !0), p.current && cancelAnimationFrame(p.current);
1309
+ }), h.observe(document.documentElement), window.addEventListener("scroll", y, !0), () => {
1310
+ d.disconnect(), h.disconnect(), window.removeEventListener("scroll", y, !0), p.current && cancelAnimationFrame(p.current);
1306
1311
  };
1307
1312
  }
1308
- }, [s, E.length, w]), re(() => {
1313
+ }, [s, E.length, w]), ne(() => {
1309
1314
  v();
1310
- }, [v]), re(() => {
1315
+ }, [v]), ne(() => {
1311
1316
  l.current = document.getElementById("viewgate-shadow-host");
1312
1317
  }, []);
1313
- const z = oe((d) => {
1318
+ const z = ie((d) => {
1314
1319
  if (!s || m) return;
1315
- const f = document.elementFromPoint(d.clientX, d.clientY);
1316
- if (!f || l.current?.contains(f) || f.closest(".vg-no-capture")) {
1320
+ const h = document.elementFromPoint(d.clientX, d.clientY);
1321
+ if (!h || l.current?.contains(h) || h.closest(".vg-no-capture")) {
1317
1322
  u(null);
1318
1323
  return;
1319
1324
  }
1320
- const h = f.getBoundingClientRect();
1325
+ const y = h.getBoundingClientRect();
1321
1326
  u({
1322
- tag: f.tagName.toLowerCase(),
1323
- source: f.getAttribute("data-source-path") || "unknown:0",
1324
- rect: h,
1325
- element: f,
1326
- previewText: (f.innerText || "").slice(0, 100) || (f.getAttribute("placeholder") || "").slice(0, 100) || f.tagName.toLowerCase(),
1327
+ tag: h.tagName.toLowerCase(),
1328
+ source: h.getAttribute("data-source-path") || "unknown:0",
1329
+ rect: y,
1330
+ element: h,
1331
+ previewText: (h.innerText || "").slice(0, 100) || (h.getAttribute("placeholder") || "").slice(0, 100) || h.tagName.toLowerCase(),
1327
1332
  semanticReference: {
1328
- ...Dr(f),
1333
+ ...Dr(h),
1329
1334
  normalizedOffset: {
1330
- x: (d.clientX - h.left) / h.width,
1331
- y: (d.clientY - h.top) / h.height
1335
+ x: (d.clientX - y.left) / y.width,
1336
+ y: (d.clientY - y.top) / y.height
1332
1337
  }
1333
1338
  }
1334
1339
  });
1335
- }, [s, m]), H = oe(async (d) => {
1340
+ }, [s, m]), H = ie(async (d) => {
1336
1341
  if (!s || m) return;
1337
- const f = d.target;
1338
- if (!(l.current?.contains(f) || f.closest(".vg-no-capture")) && i) {
1342
+ const h = d.target;
1343
+ if (!(l.current?.contains(h) || h.closest(".vg-no-capture")) && i) {
1339
1344
  d.preventDefault(), d.stopPropagation(), N(!0);
1340
1345
  try {
1341
- const h = i.element.getBoundingClientRect(), T = 24, F = await Rr(document.body, {
1342
- quality: 0.5,
1343
- pixelRatio: 0.6,
1344
- filter: (Se) => !l.current?.contains(Se)
1345
- }), $ = await Nr(F, h, T), S = {
1346
+ const y = i.element.getBoundingClientRect(), P = 24, F = 2, $ = await Rr(document.body, {
1347
+ quality: 0.95,
1348
+ pixelRatio: F,
1349
+ filter: (ee) => !l.current?.contains(ee)
1350
+ }), S = await Nr($, y, P, F), Se = {
1346
1351
  ...i.semanticReference,
1347
1352
  metadata: {
1348
1353
  ...i.semanticReference.metadata,
1349
- screenshotUrl: F,
1350
- elementScreenshot: $
1354
+ screenshotUrl: $,
1355
+ elementScreenshot: S
1351
1356
  }
1352
1357
  };
1353
- g({
1358
+ f({
1354
1359
  ...i,
1355
- visualPreview: $,
1356
- semanticReference: S
1360
+ visualPreview: S,
1361
+ semanticReference: Se
1357
1362
  });
1358
- } catch (h) {
1359
- console.error("Failed to capture preview:", h), g(i);
1363
+ } catch (y) {
1364
+ console.error("Failed to capture preview:", y), f(i);
1360
1365
  } finally {
1361
1366
  N(!1), u(null);
1362
1367
  }
1363
1368
  }
1364
1369
  }, [s, i, m]);
1365
- re(() => {
1366
- const d = (f) => {
1367
- if (f.key === "Escape") {
1368
- m ? g(null) : _ ? A(!1) : s && o(!1);
1370
+ ne(() => {
1371
+ const d = (h) => {
1372
+ if (h.key === "Escape") {
1373
+ m ? f(null) : V ? A(!1) : s && o(!1);
1369
1374
  return;
1370
1375
  }
1371
- const T = (() => {
1376
+ const P = (() => {
1372
1377
  let S = document.activeElement;
1373
1378
  for (; S && S.shadowRoot && S.shadowRoot.activeElement; )
1374
1379
  S = S.shadowRoot.activeElement;
1375
1380
  return S;
1376
1381
  })();
1377
- if (["input", "textarea"].includes((T?.tagName || "").toLowerCase()) || T?.isContentEditable) return;
1378
- const $ = f.key.toLowerCase();
1379
- $ === "c" && !m && !_ && o((S) => !S), $ === "v" && !m && (A((S) => !S), _ || o(!1));
1382
+ if (["input", "textarea"].includes((P?.tagName || "").toLowerCase()) || P?.isContentEditable) return;
1383
+ const $ = h.key.toLowerCase();
1384
+ $ === "c" && !m && !V && o((S) => !S), $ === "v" && !m && (A((S) => !S), V || o(!1));
1380
1385
  };
1381
1386
  return s && !m ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", d), window.addEventListener("mousemove", z, !0), window.addEventListener("click", H, !0), () => {
1382
1387
  document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", d), window.removeEventListener("mousemove", z, !0), window.removeEventListener("click", H, !0);
1383
1388
  };
1384
- }, [s, m, _, z, H]);
1389
+ }, [s, m, V, z, H]);
1385
1390
  const C = async () => {
1386
1391
  if (!m || !x.trim()) return;
1387
- P(!0);
1388
- const { semanticReference: d } = m, [f, h] = (d.source || "").split(":"), T = h || "0";
1392
+ O(!0);
1393
+ const { semanticReference: d } = m, [h, y] = (d.source || "").split(":"), P = y || "0";
1389
1394
  try {
1390
1395
  if (!(await fetch(`${a}/api/annotations`, {
1391
1396
  method: "POST",
@@ -1394,8 +1399,8 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1394
1399
  "x-api-key": n
1395
1400
  },
1396
1401
  body: JSON.stringify({
1397
- filePath: f,
1398
- line: parseInt(T),
1402
+ filePath: h,
1403
+ line: parseInt(P),
1399
1404
  url: window.location.href,
1400
1405
  message: x,
1401
1406
  componentName: d.componentPath || m.tag,
@@ -1410,15 +1415,15 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1410
1415
  }
1411
1416
  })
1412
1417
  })).ok) throw new Error("Backend failed");
1413
- e(r.success, "success"), g(null), y(""), o(!1), v();
1418
+ e(r.success, "success"), f(null), g(""), o(!1), v();
1414
1419
  } catch (F) {
1415
1420
  console.error(F), e(r.error, "error");
1416
1421
  } finally {
1417
- P(!1);
1422
+ O(!1);
1418
1423
  }
1419
1424
  };
1420
- return /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:701", className: "vg-container", children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:702", className: "vg-no-capture", children: [
1421
- /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:704", style: { position: "fixed", bottom: "30px", right: "30px", zIndex: Fe }, id: "viewgate-ui", children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:705", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
1425
+ return /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:710", className: "vg-container", children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:711", className: "vg-no-capture", children: [
1426
+ /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:713", style: { position: "fixed", bottom: "30px", right: "30px", zIndex: Fe }, id: "viewgate-ui", children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:714", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
1422
1427
  /* @__PURE__ */ c.jsx(
1423
1428
  "button",
1424
1429
  {
@@ -1428,9 +1433,9 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1428
1433
  padding: "12px 24px",
1429
1434
  background: s ? "#ef4444" : void 0
1430
1435
  },
1431
- children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:714", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1432
- s ? /* @__PURE__ */ c.jsx(Pe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:715", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ c.jsx(me, { "data-source-path": "/src/components/ViewGateOverlay.tsx:715", size: 20, className: "vg-animate-pop" }),
1433
- /* @__PURE__ */ c.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:716", children: s ? r.exitMode : r.enterMode })
1436
+ children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:723", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1437
+ s ? /* @__PURE__ */ c.jsx(Pe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:724", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ c.jsx(me, { "data-source-path": "/src/components/ViewGateOverlay.tsx:724", size: 20, className: "vg-animate-pop" }),
1438
+ /* @__PURE__ */ c.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:725", children: s ? r.exitMode : r.enterMode })
1434
1439
  ] })
1435
1440
  }
1436
1441
  ),
@@ -1438,18 +1443,18 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1438
1443
  "button",
1439
1444
  {
1440
1445
  onClick: () => {
1441
- A(!_), o(!1), g(null);
1446
+ A(!V), o(!1), f(null);
1442
1447
  },
1443
1448
  className: "vg-button-ghost vg-animate-pop",
1444
1449
  style: { animationDelay: "0.1s" },
1445
1450
  children: [
1446
- /* @__PURE__ */ c.jsx(vt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:729", size: 20 }),
1447
- /* @__PURE__ */ c.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:730", children: r.viewComments })
1451
+ /* @__PURE__ */ c.jsx(vt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:738", size: 20 }),
1452
+ /* @__PURE__ */ c.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:739", children: r.viewComments })
1448
1453
  ]
1449
1454
  }
1450
1455
  )
1451
1456
  ] }) }),
1452
- G && /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:738", style: {
1457
+ G && /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:747", style: {
1453
1458
  position: "fixed",
1454
1459
  top: 0,
1455
1460
  left: 0,
@@ -1462,14 +1467,14 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1462
1467
  justifyContent: "center",
1463
1468
  zIndex: Fe + 1,
1464
1469
  cursor: "wait"
1465
- }, children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:744", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1466
- /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:745", className: "vg-spinner" }),
1467
- /* @__PURE__ */ c.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:746", style: { fontWeight: 600, fontSize: "14px", color: "#1e293b" }, children: "Capturando..." })
1470
+ }, children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:753", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1471
+ /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:754", className: "vg-spinner" }),
1472
+ /* @__PURE__ */ c.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:755", style: { fontWeight: 600, fontSize: "14px", color: "#1e293b" }, children: "Capturando..." })
1468
1473
  ] }) }),
1469
1474
  s && !m && /* @__PURE__ */ c.jsx(
1470
1475
  "div",
1471
1476
  {
1472
- "data-source-path": "/src/components/ViewGateOverlay.tsx:753",
1477
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:762",
1473
1478
  className: "vg-backdrop-blur",
1474
1479
  style: {
1475
1480
  opacity: 1,
@@ -1488,7 +1493,7 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1488
1493
  s && i && !m && !G && /* @__PURE__ */ c.jsx(
1489
1494
  "div",
1490
1495
  {
1491
- "data-source-path": "/src/components/ViewGateOverlay.tsx:772",
1496
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:781",
1492
1497
  className: "vg-selection-pulse",
1493
1498
  style: {
1494
1499
  top: i.rect.top - 4,
@@ -1500,17 +1505,17 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1500
1505
  children: /* @__PURE__ */ c.jsxs(
1501
1506
  "div",
1502
1507
  {
1503
- "data-source-path": "/src/components/ViewGateOverlay.tsx:782",
1508
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:791",
1504
1509
  className: "vg-selection-label",
1505
1510
  style: {
1506
1511
  ...i.rect.top < 60 ? i.rect.bottom > window.innerHeight - 60 ? { top: "8px", bottom: "auto" } : { top: "100%", marginTop: "8px", bottom: "auto" } : { top: "-40px", bottom: "auto" },
1507
1512
  ...i.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
1508
1513
  },
1509
1514
  children: [
1510
- /* @__PURE__ */ c.jsx(Et, { "data-source-path": "/src/components/ViewGateOverlay.tsx:798", size: 16 }),
1511
- /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:799", style: { display: "flex", flexDirection: "column" }, children: [
1512
- /* @__PURE__ */ c.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:800", style: { fontWeight: 700 }, children: r.selectToComment }),
1513
- /* @__PURE__ */ c.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:801", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
1515
+ /* @__PURE__ */ c.jsx(Et, { "data-source-path": "/src/components/ViewGateOverlay.tsx:807", size: 16 }),
1516
+ /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:808", style: { display: "flex", flexDirection: "column" }, children: [
1517
+ /* @__PURE__ */ c.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:809", style: { fontWeight: 700 }, children: r.selectToComment }),
1518
+ /* @__PURE__ */ c.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:810", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
1514
1519
  Math.round(i.rect.width),
1515
1520
  " × ",
1516
1521
  Math.round(i.rect.height)
@@ -1521,7 +1526,7 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1521
1526
  )
1522
1527
  }
1523
1528
  ),
1524
- m && /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:811", className: "vg-animate-fade", style: {
1529
+ m && /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:820", className: "vg-animate-fade", style: {
1525
1530
  position: "fixed",
1526
1531
  top: 0,
1527
1532
  left: 0,
@@ -1533,13 +1538,13 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1533
1538
  alignItems: "center",
1534
1539
  justifyContent: "center",
1535
1540
  zIndex: he
1536
- }, children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:816", className: "vg-glassmorphism vg-animate-slide", style: {
1541
+ }, children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:825", className: "vg-glassmorphism vg-animate-slide", style: {
1537
1542
  padding: "40px",
1538
1543
  width: "500px",
1539
1544
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
1540
1545
  }, children: [
1541
- /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:820", style: { textAlign: "center", marginBottom: "32px" }, children: [
1542
- /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:821", style: {
1546
+ /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:829", style: { textAlign: "center", marginBottom: "32px" }, children: [
1547
+ /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:830", style: {
1543
1548
  width: "48px",
1544
1549
  height: "48px",
1545
1550
  background: "var(--vg-primary-gradient)",
@@ -1550,11 +1555,11 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1550
1555
  margin: "0 auto 16px",
1551
1556
  color: "white",
1552
1557
  boxShadow: "0 8px 16px rgba(99, 102, 241, 0.3)"
1553
- }, children: /* @__PURE__ */ c.jsx(me, { "data-source-path": "/src/components/ViewGateOverlay.tsx:826", size: 24 }) }),
1554
- /* @__PURE__ */ c.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:828", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1555
- /* @__PURE__ */ c.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:829", style: { margin: 0, color: "#64748b", fontSize: "15px" }, children: r.feedbackSubheader })
1558
+ }, children: /* @__PURE__ */ c.jsx(me, { "data-source-path": "/src/components/ViewGateOverlay.tsx:835", size: 24 }) }),
1559
+ /* @__PURE__ */ c.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:837", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1560
+ /* @__PURE__ */ c.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:838", style: { margin: 0, color: "#64748b", fontSize: "15px" }, children: r.feedbackSubheader })
1556
1561
  ] }),
1557
- m.visualPreview && /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:833", style: { marginBottom: "24px", borderRadius: "12px", overflow: "hidden", border: "1px solid #e2e8f0", background: "#f8fafc" }, children: /* @__PURE__ */ c.jsx(
1562
+ m.visualPreview && /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:842", style: { marginBottom: "24px", borderRadius: "12px", overflow: "hidden", border: "1px solid #e2e8f0", background: "#f8fafc" }, children: /* @__PURE__ */ c.jsx(
1558
1563
  "img",
1559
1564
  {
1560
1565
  src: m.visualPreview,
@@ -1567,18 +1572,18 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1567
1572
  {
1568
1573
  className: "vg-textarea",
1569
1574
  value: x,
1570
- onChange: (d) => y(d.target.value),
1575
+ onChange: (d) => g(d.target.value),
1571
1576
  rows: 4,
1572
1577
  placeholder: r.placeholder,
1573
1578
  autoFocus: !0,
1574
1579
  style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
1575
1580
  }
1576
1581
  ),
1577
- /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:852", style: { display: "flex", gap: "12px" }, children: [
1582
+ /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:861", style: { display: "flex", gap: "12px" }, children: [
1578
1583
  /* @__PURE__ */ c.jsx(
1579
1584
  "button",
1580
1585
  {
1581
- onClick: () => g(null),
1586
+ onClick: () => f(null),
1582
1587
  className: "vg-button-ghost",
1583
1588
  style: { flex: 1, padding: "12px" },
1584
1589
  children: r.cancel
@@ -1591,15 +1596,15 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1591
1596
  className: "vg-button-primary",
1592
1597
  disabled: b || !x.trim(),
1593
1598
  style: { flex: 2 },
1594
- children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:866", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1595
- b ? /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:867", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ c.jsx(_t, { "data-source-path": "/src/components/ViewGateOverlay.tsx:867", size: 18 }),
1596
- /* @__PURE__ */ c.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:868", children: b ? r.submitting : r.sendFeedback || "Send Comment" })
1599
+ children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:875", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1600
+ b ? /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:876", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ c.jsx(_t, { "data-source-path": "/src/components/ViewGateOverlay.tsx:876", size: 18 }),
1601
+ /* @__PURE__ */ c.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:877", children: b ? r.submitting : r.sendFeedback || "Send Comment" })
1597
1602
  ] })
1598
1603
  }
1599
1604
  )
1600
1605
  ] })
1601
1606
  ] }) }),
1602
- _ && /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:878", className: "vg-animate-fade", style: {
1607
+ V && /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:887", className: "vg-animate-fade", style: {
1603
1608
  position: "fixed",
1604
1609
  top: 0,
1605
1610
  left: 0,
@@ -1611,23 +1616,23 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1611
1616
  alignItems: "center",
1612
1617
  justifyContent: "center",
1613
1618
  zIndex: he
1614
- }, children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:883", className: "vg-glassmorphism vg-animate-slide", style: {
1619
+ }, children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:892", className: "vg-glassmorphism vg-animate-slide", style: {
1615
1620
  padding: "32px",
1616
1621
  width: "650px",
1617
1622
  maxHeight: "85vh",
1618
1623
  display: "flex",
1619
1624
  flexDirection: "column"
1620
1625
  }, children: [
1621
- /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:887", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1622
- /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:888", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1623
- /* @__PURE__ */ c.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:889", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: I ? r.commentDetails : r.annotations }),
1624
- !I && /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:893", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: E.length })
1626
+ /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:896", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1627
+ /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:897", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1628
+ /* @__PURE__ */ c.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:898", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: I ? r.commentDetails : r.annotations }),
1629
+ !I && /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:902", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: E.length })
1625
1630
  ] }),
1626
- /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:898", style: { display: "flex", gap: "8px" }, children: [
1631
+ /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:907", style: { display: "flex", gap: "8px" }, children: [
1627
1632
  I && /* @__PURE__ */ c.jsx(
1628
1633
  "button",
1629
1634
  {
1630
- "data-source-path": "/src/components/ViewGateOverlay.tsx:900",
1635
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:909",
1631
1636
  className: "vg-button-ghost",
1632
1637
  style: { padding: "6px 14px", fontSize: "12px" },
1633
1638
  onClick: () => Z(null),
@@ -1637,58 +1642,58 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1637
1642
  /* @__PURE__ */ c.jsx(
1638
1643
  "button",
1639
1644
  {
1640
- "data-source-path": "/src/components/ViewGateOverlay.tsx:908",
1645
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:917",
1641
1646
  className: "vg-button-ghost",
1642
1647
  style: { padding: "8px", borderRadius: "50%" },
1643
1648
  onClick: () => {
1644
1649
  A(!1), Z(null);
1645
1650
  },
1646
- children: /* @__PURE__ */ c.jsx(Pe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:913", size: 20 })
1651
+ children: /* @__PURE__ */ c.jsx(Pe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:922", size: 20 })
1647
1652
  }
1648
1653
  )
1649
1654
  ] })
1650
1655
  ] }),
1651
- /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:918", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: J ? /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:920", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:921", className: "vg-spinner" }) }) : (I ? E.filter((d) => d._id === I) : E).map((d, f) => /* @__PURE__ */ c.jsxs(
1656
+ /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:927", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: J ? /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:929", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:930", className: "vg-spinner" }) }) : (I ? E.filter((d) => d._id === I) : E).map((d, h) => /* @__PURE__ */ c.jsxs(
1652
1657
  "div",
1653
1658
  {
1654
- "data-source-path": "/src/components/ViewGateOverlay.tsx:925",
1659
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:934",
1655
1660
  className: "vg-glassmorphism vg-animate-slide",
1656
1661
  style: {
1657
1662
  padding: "20px",
1658
1663
  marginBottom: "16px",
1659
1664
  border: "1px solid rgba(0,0,0,0.05)",
1660
1665
  background: "rgba(255,255,255,0.5)",
1661
- animationDelay: `${f * 0.05}s`
1666
+ animationDelay: `${h * 0.05}s`
1662
1667
  },
1663
1668
  children: [
1664
- /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:936", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:937", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
1665
- d.status === "ready_for_review" ? /* @__PURE__ */ c.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:939", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a" }, children: [
1666
- /* @__PURE__ */ c.jsx(X, { "data-source-path": "/src/components/ViewGateOverlay.tsx:940", size: 14 }),
1669
+ /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:945", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:946", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
1670
+ d.status === "ready_for_review" ? /* @__PURE__ */ c.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:948", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a" }, children: [
1671
+ /* @__PURE__ */ c.jsx(X, { "data-source-path": "/src/components/ViewGateOverlay.tsx:949", size: 14 }),
1667
1672
  " ",
1668
1673
  r.readyForReview
1669
- ] }) : /* @__PURE__ */ c.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:943", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c" }, children: [
1670
- /* @__PURE__ */ c.jsx(Ve, { "data-source-path": "/src/components/ViewGateOverlay.tsx:944", size: 14 }),
1674
+ ] }) : /* @__PURE__ */ c.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:952", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c" }, children: [
1675
+ /* @__PURE__ */ c.jsx(Ve, { "data-source-path": "/src/components/ViewGateOverlay.tsx:953", size: 14 }),
1671
1676
  " ",
1672
1677
  r.pending
1673
1678
  ] }),
1674
- /* @__PURE__ */ c.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:947", style: { fontSize: "12px", color: "#94a3b8" }, children: Ar(d.timestamp || d.createdAt || d.reference?.timestamp, t) })
1679
+ /* @__PURE__ */ c.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:956", style: { fontSize: "12px", color: "#94a3b8" }, children: Ar(d.timestamp || d.createdAt || d.reference?.timestamp, t) })
1675
1680
  ] }) }),
1676
1681
  U === d._id ? /* @__PURE__ */ c.jsx(
1677
1682
  "textarea",
1678
1683
  {
1679
1684
  className: "vg-textarea",
1680
1685
  value: K,
1681
- onChange: (h) => Q(h.target.value),
1686
+ onChange: (y) => Q(y.target.value),
1682
1687
  rows: 3,
1683
1688
  autoFocus: !0,
1684
1689
  style: { marginBottom: "16px" }
1685
1690
  }
1686
- ) : /* @__PURE__ */ c.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:963", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: d.message }),
1687
- /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:966", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: U === d._id ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
1691
+ ) : /* @__PURE__ */ c.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:972", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: d.message }),
1692
+ /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:975", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: U === d._id ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
1688
1693
  /* @__PURE__ */ c.jsx(
1689
1694
  "button",
1690
1695
  {
1691
- "data-source-path": "/src/components/ViewGateOverlay.tsx:969",
1696
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:978",
1692
1697
  className: "vg-button-primary vg-animate-pop",
1693
1698
  style: { padding: "8px 16px", fontSize: "13px" },
1694
1699
  onClick: async () => {
@@ -1705,19 +1710,19 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1705
1710
  children: r.save
1706
1711
  }
1707
1712
  ),
1708
- /* @__PURE__ */ c.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:991", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => q(null), children: r.cancel })
1713
+ /* @__PURE__ */ c.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1000", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => q(null), children: r.cancel })
1709
1714
  ] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
1710
1715
  /* @__PURE__ */ c.jsxs(
1711
1716
  "button",
1712
1717
  {
1713
- "data-source-path": "/src/components/ViewGateOverlay.tsx:995",
1718
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1004",
1714
1719
  className: "vg-button-ghost vg-animate-pop",
1715
1720
  style: { padding: "8px 16px", fontSize: "13px" },
1716
1721
  onClick: () => {
1717
1722
  q(d._id), Q(d.message);
1718
1723
  },
1719
1724
  children: [
1720
- /* @__PURE__ */ c.jsx(St, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1003", size: 14 }),
1725
+ /* @__PURE__ */ c.jsx(St, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1012", size: 14 }),
1721
1726
  " ",
1722
1727
  r.edit
1723
1728
  ]
@@ -1726,14 +1731,14 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1726
1731
  /* @__PURE__ */ c.jsxs(
1727
1732
  "button",
1728
1733
  {
1729
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1005",
1734
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1014",
1730
1735
  className: "vg-button-ghost vg-animate-pop",
1731
1736
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.05s" },
1732
1737
  onClick: () => {
1733
1738
  d.url && (window.location.href = d.url);
1734
1739
  },
1735
1740
  children: [
1736
- /* @__PURE__ */ c.jsx(xt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1012", size: 14 }),
1741
+ /* @__PURE__ */ c.jsx(xt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1021", size: 14 }),
1737
1742
  " ",
1738
1743
  r.review
1739
1744
  ]
@@ -1742,7 +1747,7 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1742
1747
  d.status === "pending" ? /* @__PURE__ */ c.jsxs(
1743
1748
  "button",
1744
1749
  {
1745
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1015",
1750
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1024",
1746
1751
  className: "vg-button-primary vg-animate-pop",
1747
1752
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
1748
1753
  onClick: () => {
@@ -1766,7 +1771,7 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1766
1771
  });
1767
1772
  },
1768
1773
  children: [
1769
- /* @__PURE__ */ c.jsx(X, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1043", size: 14 }),
1774
+ /* @__PURE__ */ c.jsx(X, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1052", size: 14 }),
1770
1775
  " ",
1771
1776
  r.markReady
1772
1777
  ]
@@ -1774,7 +1779,7 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1774
1779
  ) : /* @__PURE__ */ c.jsxs(
1775
1780
  "button",
1776
1781
  {
1777
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1046",
1782
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1055",
1778
1783
  className: "vg-button-ghost vg-animate-pop",
1779
1784
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
1780
1785
  onClick: () => {
@@ -1799,7 +1804,7 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1799
1804
  });
1800
1805
  },
1801
1806
  children: [
1802
- /* @__PURE__ */ c.jsx(jt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1074", size: 14 }),
1807
+ /* @__PURE__ */ c.jsx(jt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1083", size: 14 }),
1803
1808
  " ",
1804
1809
  r.reopen
1805
1810
  ]
@@ -1808,7 +1813,7 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1808
1813
  /* @__PURE__ */ c.jsx(
1809
1814
  "button",
1810
1815
  {
1811
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1077",
1816
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1086",
1812
1817
  className: "vg-button-ghost vg-animate-pop",
1813
1818
  style: { padding: "8px 12px", color: "#ef4444", borderColor: "#fee2e2", animationDelay: "0.15s" },
1814
1819
  onClick: () => {
@@ -1830,7 +1835,7 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1830
1835
  }
1831
1836
  });
1832
1837
  },
1833
- children: /* @__PURE__ */ c.jsx(Te, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1104", size: 16 })
1838
+ children: /* @__PURE__ */ c.jsx(Te, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1113", size: 16 })
1834
1839
  }
1835
1840
  )
1836
1841
  ] }) })
@@ -1839,7 +1844,7 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1839
1844
  d._id
1840
1845
  )) })
1841
1846
  ] }) }),
1842
- V && /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1119", className: "vg-animate-fade", style: {
1847
+ T && /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1128", className: "vg-animate-fade", style: {
1843
1848
  position: "fixed",
1844
1849
  top: 0,
1845
1850
  left: 0,
@@ -1851,42 +1856,42 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1851
1856
  alignItems: "center",
1852
1857
  justifyContent: "center",
1853
1858
  zIndex: he + 1
1854
- }, children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1124", className: "vg-glassmorphism vg-animate-slide", style: { padding: "32px", width: "400px", textAlign: "center" }, children: [
1855
- /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1125", style: {
1859
+ }, children: /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1133", className: "vg-glassmorphism vg-animate-slide", style: { padding: "32px", width: "400px", textAlign: "center" }, children: [
1860
+ /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1134", style: {
1856
1861
  width: "48px",
1857
1862
  height: "48px",
1858
- background: V.type === "danger" ? "#fee2e2" : "#e0e7ff",
1863
+ background: T.type === "danger" ? "#fee2e2" : "#e0e7ff",
1859
1864
  borderRadius: "50%",
1860
1865
  display: "flex",
1861
1866
  alignItems: "center",
1862
1867
  justifyContent: "center",
1863
1868
  margin: "0 auto 20px",
1864
- color: V.type === "danger" ? "#ef4444" : "#6366f1"
1865
- }, children: V.type === "danger" ? /* @__PURE__ */ c.jsx(Te, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1133", size: 24 }) : /* @__PURE__ */ c.jsx(X, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1133", size: 24 }) }),
1866
- /* @__PURE__ */ c.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1135", style: { margin: "0 0 8px 0", fontSize: "18px", fontWeight: 800, color: "#0f172a" }, children: V.title }),
1867
- /* @__PURE__ */ c.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1136", style: { margin: "0 0 24px 0", fontSize: "14px", color: "#64748b", lineHeight: 1.5 }, children: V.message }),
1868
- /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1137", style: { display: "flex", gap: "12px" }, children: [
1869
- /* @__PURE__ */ c.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1138", className: "vg-button-ghost", style: { flex: 1 }, onClick: () => L(null), children: r.no }),
1869
+ color: T.type === "danger" ? "#ef4444" : "#6366f1"
1870
+ }, children: T.type === "danger" ? /* @__PURE__ */ c.jsx(Te, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1142", size: 24 }) : /* @__PURE__ */ c.jsx(X, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1142", size: 24 }) }),
1871
+ /* @__PURE__ */ c.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1144", style: { margin: "0 0 8px 0", fontSize: "18px", fontWeight: 800, color: "#0f172a" }, children: T.title }),
1872
+ /* @__PURE__ */ c.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1145", style: { margin: "0 0 24px 0", fontSize: "14px", color: "#64748b", lineHeight: 1.5 }, children: T.message }),
1873
+ /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1146", style: { display: "flex", gap: "12px" }, children: [
1874
+ /* @__PURE__ */ c.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1147", className: "vg-button-ghost", style: { flex: 1 }, onClick: () => L(null), children: r.no }),
1870
1875
  /* @__PURE__ */ c.jsx(
1871
1876
  "button",
1872
1877
  {
1873
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1139",
1878
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1148",
1874
1879
  className: "vg-button-primary",
1875
1880
  style: {
1876
1881
  flex: 1,
1877
- backgroundColor: V.type === "danger" ? "#ef4444" : void 0,
1878
- backgroundImage: V.type === "danger" ? "none" : void 0
1882
+ backgroundColor: T.type === "danger" ? "#ef4444" : void 0,
1883
+ backgroundImage: T.type === "danger" ? "none" : void 0
1879
1884
  },
1880
- onClick: V.onConfirm,
1885
+ onClick: T.onConfirm,
1881
1886
  children: r.yes
1882
1887
  }
1883
1888
  )
1884
1889
  ] })
1885
1890
  ] }) }),
1886
- !s && E.map((d, f) => {
1887
- const h = se[d._id];
1888
- if (!h) return null;
1889
- const F = E.slice(0, f).filter(
1891
+ !s && E.map((d, h) => {
1892
+ const y = ae[d._id];
1893
+ if (!y) return null;
1894
+ const F = E.slice(0, h).filter(
1890
1895
  ($) => $.reference?.selector && $.reference.selector === d.reference?.selector
1891
1896
  ).length * 34;
1892
1897
  return /* @__PURE__ */ c.jsxs(
@@ -1895,35 +1900,35 @@ const jr = 2147483647, Fe = jr, he = 2e6, Or = 90, _r = 100, Vr = 50, Tr = () =>
1895
1900
  className: "vg-pin-container vg-animate-pop",
1896
1901
  style: {
1897
1902
  position: "fixed",
1898
- top: h.top - 20 - window.scrollY,
1899
- left: h.left + h.width / 2 - 16 + F - window.scrollX,
1903
+ top: y.top - 20 - window.scrollY,
1904
+ left: y.left + y.width / 2 - 16 + F - window.scrollX,
1900
1905
  cursor: "pointer",
1901
- animationDelay: `${f * 0.08}s`,
1906
+ animationDelay: `${h * 0.08}s`,
1902
1907
  transition: "all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",
1903
- zIndex: Vr - f
1908
+ zIndex: Vr - h
1904
1909
  // Ensure staggered pins don't overlap tooltips weirdly
1905
1910
  },
1906
1911
  onMouseEnter: ($) => {
1907
1912
  const S = $.currentTarget.getBoundingClientRect();
1908
- window.innerHeight - S.bottom < 180 ? W((pe) => ({ ...pe, [d._id]: "vg-top" })) : W((pe) => ({ ...pe, [d._id]: "" }));
1913
+ window.innerHeight - S.bottom < 180 ? W((ee) => ({ ...ee, [d._id]: "vg-top" })) : W((ee) => ({ ...ee, [d._id]: "" }));
1909
1914
  },
1910
1915
  onClick: () => {
1911
1916
  A(!0), Z(d._id);
1912
1917
  },
1913
1918
  children: [
1914
- /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1194", className: `vg-pin-tooltip ${ue[d._id] || ""}`, children: [
1915
- /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1195", style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "8px" }, children: d.status === "ready_for_review" ? /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1197", style: { display: "flex", alignItems: "center", gap: "6px", color: "#16a34a", fontWeight: 700, fontSize: "11px" }, children: [
1916
- /* @__PURE__ */ c.jsx(X, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1198", size: 12 }),
1919
+ /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1203", className: `vg-pin-tooltip ${pe[d._id] || ""}`, children: [
1920
+ /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1204", style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "8px" }, children: d.status === "ready_for_review" ? /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1206", style: { display: "flex", alignItems: "center", gap: "6px", color: "#16a34a", fontWeight: 700, fontSize: "11px" }, children: [
1921
+ /* @__PURE__ */ c.jsx(X, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1207", size: 12 }),
1917
1922
  " ",
1918
1923
  r.readyForReview
1919
- ] }) : /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1201", style: { display: "flex", alignItems: "center", gap: "6px", color: "#ea580c", fontWeight: 700, fontSize: "11px" }, children: [
1920
- /* @__PURE__ */ c.jsx(Ve, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1202", size: 12 }),
1924
+ ] }) : /* @__PURE__ */ c.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1210", style: { display: "flex", alignItems: "center", gap: "6px", color: "#ea580c", fontWeight: 700, fontSize: "11px" }, children: [
1925
+ /* @__PURE__ */ c.jsx(Ve, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1211", size: 12 }),
1921
1926
  " ",
1922
1927
  r.pending
1923
1928
  ] }) }),
1924
- /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1206", style: { fontWeight: 500, color: "#1e293b", lineHeight: 1.4 }, children: d.message })
1929
+ /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1215", style: { fontWeight: 500, color: "#1e293b", lineHeight: 1.4 }, children: d.message })
1925
1930
  ] }),
1926
- /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1209", className: `vg-formal-pin ${d.status === "ready_for_review" ? "ready" : ""}`, children: d.status === "ready_for_review" ? /* @__PURE__ */ c.jsx(X, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1210", size: 18 }) : /* @__PURE__ */ c.jsx(me, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1210", size: 16 }) })
1931
+ /* @__PURE__ */ c.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1218", className: `vg-formal-pin ${d.status === "ready_for_review" ? "ready" : ""}`, children: d.status === "ready_for_review" ? /* @__PURE__ */ c.jsx(X, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1219", size: 18 }) : /* @__PURE__ */ c.jsx(me, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1219", size: 16 }) })
1927
1932
  ]
1928
1933
  },
1929
1934
  `pin-${d._id}`
@@ -1937,7 +1942,7 @@ function Qe(e, t, r) {
1937
1942
  return e.split(`
1938
1943
  `).map((i, u) => {
1939
1944
  const m = u + 1;
1940
- return i.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (g, x, y) => g.includes("data-source-path") || y === "Fragment" || y === "React.Fragment" ? g : `${x}<${y} data-source-path="${a}:${m}"`);
1945
+ return i.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (f, x, g) => f.includes("data-source-path") || g === "Fragment" || g === "React.Fragment" ? f : `${x}<${g} data-source-path="${a}:${m}"`);
1941
1946
  }).join(`
1942
1947
  `);
1943
1948
  }