viewgate-wrapper 1.10.22 → 1.10.23

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,5 +1,5 @@
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,.vg-button-ghost:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.4);transform:none!important;box-shadow:none!important;pointer-events: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-fade-in{0%{opacity:0}to{opacity:1}}@keyframes vg-slide-in{0%{transform:translateY(30px) scale(.96);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@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 .4s cubic-bezier(.34,1.56,.64,1) forwards}.vg-animate-slide-up{animation:vg-slide-up-fade .5s 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 .5s cubic-bezier(.22,1,.36,1) forwards}.vg-animate-fade{animation:vg-fade-in .35s cubic-bezier(.22,1,.36,1) 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:linear-gradient(135deg,#f97316,#ea580c);border:3px solid white;box-shadow:0 4px 12px #ea580c66;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-formal-pin.mixed{background:linear-gradient(135deg,#10b981,#059669);border:3px solid #f97316;box-shadow:0 4px 15px #f9731666}.vg-formal-pin.modal-variant{background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 4px 12px #f59e0b66;border-style:dashed}.vg-pin-tooltip{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%);padding:16px;border-radius:16px;background:#ffffffe6;backdrop-filter:blur(12px) saturate(160%);-webkit-backdrop-filter:blur(12px) saturate(160%);color:#1e293b;width:320px;font-size:13px;box-shadow:0 10px 40px #00000026;opacity:0;visibility:hidden;pointer-events:none;transition:all .3s cubic-bezier(.19,1,.22,1);border:1px solid rgba(255,255,255,.5);z-index:1000;overflow:hidden}.vg-tooltip-scroll{scrollbar-width:thin;scrollbar-color:rgba(99,102,241,.2) transparent;overflow-y:auto;overflow-x:hidden;padding-right:12px;scroll-behavior:smooth}.vg-tooltip-scroll::-webkit-scrollbar{width:4px}.vg-tooltip-scroll::-webkit-scrollbar-track{background:transparent}.vg-tooltip-scroll::-webkit-scrollbar-thumb{background:#6366f14d;border-radius:10px}.vg-tooltip-scroll::-webkit-scrollbar-thumb:hover{background:#6366f180}.vg-text-wrap{word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;white-space:pre-wrap}.vg-line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;max-height:2.8em}.vg-pin-badge{position:absolute;top:-8px;right:-8px;background:#f43f5e;color:#fff;font-size:10px;font-weight:800;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid white;box-shadow:0 4px 12px #f43f5e66;z-index:2}.vg-pin-tooltip.vg-top{top:auto;bottom:calc(100% + 12px)}.vg-pin-container:hover .vg-pin-tooltip{opacity:1;visibility:visible;pointer-events:auto;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-animate-spin{animation:vg-spin .8s linear infinite}.vg-cursor-pointer,.vg-cursor-pointer *{cursor:pointer!important}.vg-url-tag{position:relative;cursor:help;transition:all .2s ease}.vg-url-tag:hover{background:#f1f5f9!important;border-color:var(--vg-primary)!important}.vg-url-tooltip{position:fixed;left:0;top:0;background:#0f172a;color:#fff;padding:8px 14px;border-radius:10px;font-size:11px;font-weight:500;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;box-shadow:0 10px 25px -5px #0006;z-index:2147483647;border:1px solid rgba(255,255,255,.1)}.vg-url-tooltip.visible{opacity:1}.vg-url-tooltip:after{content:"";position:absolute;left:50%;transform:translate(-50%);border-width:6px;border-style:solid}.vg-url-tooltip.vg-top:after{top:100%;border-color:#0f172a transparent transparent transparent}.vg-url-tooltip.vg-bottom:after{bottom:100%;border-color:transparent transparent #0f172a transparent}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import $t, { useRef as ue, useState as S, useEffect as K, forwardRef as yt, createElement as We, createContext as Mt, useContext as Nt, useMemo as It, useCallback as je } from "react";
2
+ import $t, { useRef as ue, useState as S, useEffect as K, forwardRef as yt, createElement as We, createContext as Mt, useContext as Nt, useMemo as It, useCallback as Re } from "react";
3
3
  import { createPortal as Lt } from "react-dom";
4
4
  var Oe = { exports: {} }, ye = {};
5
5
  var et;
@@ -7,19 +7,19 @@ function zt() {
7
7
  if (et) return ye;
8
8
  et = 1;
9
9
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
10
- function r(n, a, s) {
10
+ function r(n, s, a) {
11
11
  var c = null;
12
- if (s !== void 0 && (c = "" + s), a.key !== void 0 && (c = "" + a.key), "key" in a) {
13
- s = {};
14
- for (var i in a)
15
- i !== "key" && (s[i] = a[i]);
16
- } else s = a;
17
- return a = s.ref, {
12
+ if (a !== void 0 && (c = "" + a), s.key !== void 0 && (c = "" + s.key), "key" in s) {
13
+ a = {};
14
+ for (var i in s)
15
+ i !== "key" && (a[i] = s[i]);
16
+ } else a = s;
17
+ return s = a.ref, {
18
18
  $$typeof: e,
19
19
  type: n,
20
20
  key: c,
21
- ref: a !== void 0 ? a : null,
22
- props: s
21
+ ref: s !== void 0 ? s : null,
22
+ props: a
23
23
  };
24
24
  }
25
25
  return ye.Fragment = t, ye.jsx = r, ye.jsxs = r, ye;
@@ -102,11 +102,11 @@ function Dt() {
102
102
  return "<...>";
103
103
  }
104
104
  }
105
- function a() {
106
- var d = ae.A;
105
+ function s() {
106
+ var d = se.A;
107
107
  return d === null ? null : d.getOwner();
108
108
  }
109
- function s() {
109
+ function a() {
110
110
  return Error("react-stack-top-frame");
111
111
  }
112
112
  function c(d) {
@@ -134,7 +134,7 @@ function Dt() {
134
134
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
135
135
  )), d = this.props.ref, d !== void 0 ? d : null;
136
136
  }
137
- function p(d, x, v, b, se, Y) {
137
+ function p(d, x, v, b, ae, Y) {
138
138
  var k = v.ref;
139
139
  return d = {
140
140
  $$typeof: L,
@@ -159,7 +159,7 @@ function Dt() {
159
159
  configurable: !1,
160
160
  enumerable: !1,
161
161
  writable: !0,
162
- value: se
162
+ value: ae
163
163
  }), Object.defineProperty(d, "_debugTask", {
164
164
  configurable: !1,
165
165
  enumerable: !1,
@@ -167,11 +167,11 @@ function Dt() {
167
167
  value: Y
168
168
  }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
169
169
  }
170
- function m(d, x, v, b, se, Y) {
170
+ function m(d, x, v, b, ae, Y) {
171
171
  var k = x.children;
172
172
  if (k !== void 0)
173
173
  if (b)
174
- if (Re(k)) {
174
+ if (je(k)) {
175
175
  for (b = 0; b < k.length; b++)
176
176
  f(k[b]);
177
177
  Object.freeze && Object.freeze(k);
@@ -210,18 +210,18 @@ React keys must be passed directly to JSX without using spread:
210
210
  d,
211
211
  k,
212
212
  v,
213
- a(),
214
- se,
213
+ s(),
214
+ ae,
215
215
  Y
216
216
  );
217
217
  }
218
218
  function f(d) {
219
- A(d) ? d._store && (d._store.validated = 1) : typeof d == "object" && d !== null && d.$$typeof === Ee && (d._payload.status === "fulfilled" ? A(d._payload.value) && d._payload.value._store && (d._payload.value._store.validated = 1) : d._store && (d._store.validated = 1));
219
+ R(d) ? d._store && (d._store.validated = 1) : typeof d == "object" && d !== null && d.$$typeof === Ee && (d._payload.status === "fulfilled" ? R(d._payload.value) && d._payload.value._store && (d._payload.value._store.validated = 1) : d._store && (d._store.validated = 1));
220
220
  }
221
- function A(d) {
221
+ function R(d) {
222
222
  return typeof d == "object" && d !== null && d.$$typeof === L;
223
223
  }
224
- var P = $t, L = /* @__PURE__ */ Symbol.for("react.transitional.element"), B = /* @__PURE__ */ Symbol.for("react.portal"), ne = /* @__PURE__ */ Symbol.for("react.fragment"), be = /* @__PURE__ */ Symbol.for("react.strict_mode"), Se = /* @__PURE__ */ Symbol.for("react.profiler"), N = /* @__PURE__ */ Symbol.for("react.consumer"), q = /* @__PURE__ */ Symbol.for("react.context"), V = /* @__PURE__ */ Symbol.for("react.forward_ref"), Ce = /* @__PURE__ */ Symbol.for("react.suspense"), z = /* @__PURE__ */ Symbol.for("react.suspense_list"), D = /* @__PURE__ */ Symbol.for("react.memo"), Ee = /* @__PURE__ */ Symbol.for("react.lazy"), Xe = /* @__PURE__ */ Symbol.for("react.activity"), pe = /* @__PURE__ */ Symbol.for("react.client.reference"), ae = P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ke = Object.prototype.hasOwnProperty, Re = Array.isArray, I = console.createTask ? console.createTask : function() {
224
+ var P = $t, L = /* @__PURE__ */ Symbol.for("react.transitional.element"), B = /* @__PURE__ */ Symbol.for("react.portal"), ne = /* @__PURE__ */ Symbol.for("react.fragment"), be = /* @__PURE__ */ Symbol.for("react.strict_mode"), Se = /* @__PURE__ */ Symbol.for("react.profiler"), N = /* @__PURE__ */ Symbol.for("react.consumer"), q = /* @__PURE__ */ Symbol.for("react.context"), V = /* @__PURE__ */ Symbol.for("react.forward_ref"), Ce = /* @__PURE__ */ Symbol.for("react.suspense"), z = /* @__PURE__ */ Symbol.for("react.suspense_list"), D = /* @__PURE__ */ Symbol.for("react.memo"), Ee = /* @__PURE__ */ Symbol.for("react.lazy"), Xe = /* @__PURE__ */ Symbol.for("react.activity"), pe = /* @__PURE__ */ Symbol.for("react.client.reference"), se = P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ke = Object.prototype.hasOwnProperty, je = Array.isArray, I = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
227
  P = {
@@ -231,10 +231,10 @@ React keys must be passed directly to JSX without using spread:
231
231
  };
232
232
  var Z, ee = {}, me = P.react_stack_bottom_frame.bind(
233
233
  P,
234
- s
235
- )(), F = I(n(s)), fe = {};
234
+ a
235
+ )(), F = I(n(a)), fe = {};
236
236
  we.Fragment = ne, we.jsx = function(d, x, v) {
237
- var b = 1e4 > ae.recentlyCreatedOwnerStacks++;
237
+ var b = 1e4 > se.recentlyCreatedOwnerStacks++;
238
238
  return m(
239
239
  d,
240
240
  x,
@@ -244,7 +244,7 @@ React keys must be passed directly to JSX without using spread:
244
244
  b ? I(n(d)) : F
245
245
  );
246
246
  }, we.jsxs = function(d, x, v) {
247
- var b = 1e4 > ae.recentlyCreatedOwnerStacks++;
247
+ var b = 1e4 > se.recentlyCreatedOwnerStacks++;
248
248
  return m(
249
249
  d,
250
250
  x,
@@ -265,12 +265,12 @@ const Ht = ({ children: e }) => {
265
265
  const t = ue(null), [r, n] = S(null);
266
266
  return K(() => {
267
267
  if (t.current && !t.current.shadowRoot) {
268
- const a = t.current.attachShadow({ mode: "open" });
268
+ const s = t.current.attachShadow({ mode: "open" });
269
269
  document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach((i) => {
270
- (i.textContent?.includes(".vg-") || i.textContent?.includes("--vg-")) && a.appendChild(i.cloneNode(!0));
270
+ (i.textContent?.includes(".vg-") || i.textContent?.includes("--vg-")) && s.appendChild(i.cloneNode(!0));
271
271
  });
272
272
  const c = document.createElement("link");
273
- c.rel = "stylesheet", c.href = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap", a.appendChild(c), n(a);
273
+ c.rel = "stylesheet", c.href = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap", s.appendChild(c), n(s);
274
274
  }
275
275
  }, []), /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ShadowRootWrapper.tsx:38", ref: t, id: "viewgate-shadow-host", children: r && Lt(e, r) });
276
276
  };
@@ -307,8 +307,8 @@ const Yt = yt(
307
307
  size: t = 24,
308
308
  strokeWidth: r = 2,
309
309
  absoluteStrokeWidth: n,
310
- className: a = "",
311
- children: s,
310
+ className: s = "",
311
+ children: a,
312
312
  iconNode: c,
313
313
  ...i
314
314
  }, u) => We(
@@ -320,27 +320,27 @@ const Yt = yt(
320
320
  height: t,
321
321
  stroke: e,
322
322
  strokeWidth: n ? Number(r) * 24 / Number(t) : r,
323
- className: wt("lucide", a),
324
- ...!s && !qt(i) && { "aria-hidden": "true" },
323
+ className: wt("lucide", s),
324
+ ...!a && !qt(i) && { "aria-hidden": "true" },
325
325
  ...i
326
326
  },
327
327
  [
328
328
  ...c.map(([p, m]) => We(p, m)),
329
- ...Array.isArray(s) ? s : [s]
329
+ ...Array.isArray(a) ? a : [a]
330
330
  ]
331
331
  )
332
332
  );
333
333
  const _ = (e, t) => {
334
334
  const r = yt(
335
- ({ className: n, ...a }, s) => We(Yt, {
336
- ref: s,
335
+ ({ className: n, ...s }, a) => We(Yt, {
336
+ ref: a,
337
337
  iconNode: t,
338
338
  className: wt(
339
339
  `lucide-${Wt(nt(e))}`,
340
340
  `lucide-${e}`,
341
341
  n
342
342
  ),
343
- ...a
343
+ ...s
344
344
  })
345
345
  );
346
346
  return r.displayName = nt(e), r;
@@ -357,12 +357,12 @@ const Zt = [
357
357
  const Kt = [
358
358
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
359
359
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
360
- ], at = _("clock", Kt);
360
+ ], st = _("clock", Kt);
361
361
  const Qt = [
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
- ], st = _("external-link", Qt);
365
+ ], at = _("external-link", Qt);
366
366
  const er = [
367
367
  [
368
368
  "path",
@@ -378,15 +378,15 @@ const rr = [
378
378
  ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
379
379
  ["path", { d: "M2 12h20", key: "9i4pu4" }]
380
380
  ], nr = _("globe", rr);
381
- const ar = [
381
+ const sr = [
382
382
  ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
383
383
  ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
384
384
  ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
385
385
  ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
386
386
  ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
387
387
  ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
388
- ], ot = _("grip-vertical", ar);
389
- const sr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], or = _("loader-circle", sr);
388
+ ], ot = _("grip-vertical", sr);
389
+ const ar = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], or = _("loader-circle", ar);
390
390
  const ir = [
391
391
  [
392
392
  "path",
@@ -542,22 +542,22 @@ const xr = [
542
542
  apiKey: r,
543
543
  baseUrl: n = "https://view-gate.vercel.app"
544
544
  }) => {
545
- const [a, s] = S(!1), [c, i] = S([]);
545
+ const [s, a] = S(!1), [c, i] = S([]);
546
546
  K(() => {
547
- s(vr());
547
+ a(vr());
548
548
  }, []);
549
549
  const u = () => {
550
- if (sessionStorage.removeItem(Ue), s(!1), typeof window < "u") {
550
+ if (sessionStorage.removeItem(Ue), a(!1), typeof window < "u") {
551
551
  const f = new URL(window.location.href);
552
552
  f.searchParams.delete("viewgate"), window.history.replaceState({}, "", f.toString());
553
553
  }
554
- }, p = (f, A) => {
554
+ }, p = (f, R) => {
555
555
  const P = Date.now();
556
- i((L) => [...L, { id: P, message: f, type: A }]), setTimeout(() => {
556
+ i((L) => [...L, { id: P, message: f, type: R }]), setTimeout(() => {
557
557
  i((L) => L.filter((B) => B.id !== P));
558
558
  }, 4e3);
559
559
  }, m = yr[t];
560
- return /* @__PURE__ */ o.jsxs(vt.Provider, { "data-source-path": "/src/components/ViewGateProvider.tsx:252", value: {
560
+ return /* @__PURE__ */ o.jsxs(vt.Provider, { "data-source-path": "/src/components/ViewGateProvider.tsx:251", value: {
561
561
  addToast: p,
562
562
  language: t,
563
563
  t: m,
@@ -567,13 +567,13 @@ const xr = [
567
567
  hasActiveToasts: c.length > 0
568
568
  }, children: [
569
569
  e,
570
- a && /* @__PURE__ */ o.jsx(Ht, { "data-source-path": "/src/components/ViewGateProvider.tsx:263", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:264", className: "vg-container", children: [
571
- /* @__PURE__ */ o.jsx(An, { "data-source-path": "/src/components/ViewGateProvider.tsx:265" }),
572
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:266", className: "vg-toasts", style: { zIndex: 2147483646 }, children: c.map((f) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:268", className: `vg-toast vg-animate-slide ${f.type}`, children: [
573
- f.type === "success" ? /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateProvider.tsx:270", size: 24, color: "#22c55e" }) : /* @__PURE__ */ o.jsx(Jt, { "data-source-path": "/src/components/ViewGateProvider.tsx:272", size: 24, color: "#ef4444" }),
574
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:274", children: [
575
- /* @__PURE__ */ o.jsx("strong", { "data-source-path": "/src/components/ViewGateProvider.tsx:275", style: { display: "block", fontSize: "13px", color: "#0f172a", textTransform: "uppercase", marginBottom: "2px" }, children: f.type === "success" ? m.successHeader : m.errorHeader }),
576
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateProvider.tsx:278", style: { fontSize: "14px", color: "#000000" }, children: f.message })
570
+ s && /* @__PURE__ */ o.jsx(Ht, { "data-source-path": "/src/components/ViewGateProvider.tsx:262", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:263", className: "vg-container", children: [
571
+ /* @__PURE__ */ o.jsx(An, { "data-source-path": "/src/components/ViewGateProvider.tsx:264" }),
572
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:265", className: "vg-toasts", style: { zIndex: 2147483646 }, children: c.map((f) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:267", className: `vg-toast vg-animate-slide ${f.type}`, children: [
573
+ f.type === "success" ? /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateProvider.tsx:269", size: 24, color: "#22c55e" }) : /* @__PURE__ */ o.jsx(Jt, { "data-source-path": "/src/components/ViewGateProvider.tsx:271", size: 24, color: "#ef4444" }),
574
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:273", children: [
575
+ /* @__PURE__ */ o.jsx("strong", { "data-source-path": "/src/components/ViewGateProvider.tsx:274", style: { display: "block", fontSize: "13px", color: "#0f172a", textTransform: "uppercase", marginBottom: "2px" }, children: f.type === "success" ? m.successHeader : m.errorHeader }),
576
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateProvider.tsx:277", style: { fontSize: "14px", color: "#000000" }, children: f.message })
577
577
  ] })
578
578
  ] }, f.id)) })
579
579
  ] }) })
@@ -586,8 +586,8 @@ function br(e, t) {
586
586
  return window.location.protocol + e;
587
587
  if (e.match(/^[a-z]+:/i))
588
588
  return e;
589
- const r = document.implementation.createHTMLDocument(), n = r.createElement("base"), a = r.createElement("a");
590
- return r.head.appendChild(n), r.body.appendChild(a), t && (n.href = t), a.href = e, a.href;
589
+ const r = document.implementation.createHTMLDocument(), n = r.createElement("base"), s = r.createElement("a");
590
+ return r.head.appendChild(n), r.body.appendChild(s), t && (n.href = t), s.href = e, s.href;
591
591
  }
592
592
  const Sr = /* @__PURE__ */ (() => {
593
593
  let e = 0;
@@ -633,7 +633,7 @@ function kr() {
633
633
  return r && (e = parseInt(r, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
634
634
  }
635
635
  const M = 16384;
636
- function Rr(e) {
636
+ function jr(e) {
637
637
  (e.width > M || e.height > M) && (e.width > M && e.height > M ? e.width > e.height ? (e.height *= M / e.width, e.width = M) : (e.width *= M / e.height, e.height = M) : e.width > M ? (e.height *= M / e.width, e.width = M) : (e.width *= M / e.height, e.height = M));
638
638
  }
639
639
  function _e(e) {
@@ -646,12 +646,12 @@ function _e(e) {
646
646
  }, n.onerror = r, n.crossOrigin = "anonymous", n.decoding = "async", n.src = e;
647
647
  });
648
648
  }
649
- async function jr(e) {
649
+ async function Rr(e) {
650
650
  return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((t) => `data:image/svg+xml;charset=utf-8,${t}`);
651
651
  }
652
652
  async function Or(e, t, r) {
653
- const n = "http://www.w3.org/2000/svg", a = document.createElementNS(n, "svg"), s = document.createElementNS(n, "foreignObject");
654
- return a.setAttribute("width", `${t}`), a.setAttribute("height", `${r}`), a.setAttribute("viewBox", `0 0 ${t} ${r}`), s.setAttribute("width", "100%"), s.setAttribute("height", "100%"), s.setAttribute("x", "0"), s.setAttribute("y", "0"), s.setAttribute("externalResourcesRequired", "true"), a.appendChild(s), s.appendChild(e), jr(a);
653
+ const n = "http://www.w3.org/2000/svg", s = document.createElementNS(n, "svg"), a = document.createElementNS(n, "foreignObject");
654
+ return s.setAttribute("width", `${t}`), s.setAttribute("height", `${r}`), s.setAttribute("viewBox", `0 0 ${t} ${r}`), a.setAttribute("width", "100%"), a.setAttribute("height", "100%"), a.setAttribute("x", "0"), a.setAttribute("y", "0"), a.setAttribute("externalResourcesRequired", "true"), s.appendChild(a), a.appendChild(e), Rr(s);
655
655
  }
656
656
  const $ = (e, t) => {
657
657
  if (e instanceof t)
@@ -665,17 +665,17 @@ function Ar(e) {
665
665
  }
666
666
  function Vr(e, t) {
667
667
  return bt(t).map((r) => {
668
- const n = e.getPropertyValue(r), a = e.getPropertyPriority(r);
669
- return `${r}: ${n}${a ? " !important" : ""};`;
668
+ const n = e.getPropertyValue(r), s = e.getPropertyPriority(r);
669
+ return `${r}: ${n}${s ? " !important" : ""};`;
670
670
  }).join(" ");
671
671
  }
672
672
  function Tr(e, t, r, n) {
673
- const a = `.${e}:${t}`, s = r.cssText ? Ar(r) : Vr(r, n);
674
- return document.createTextNode(`${a}{${s}}`);
673
+ const s = `.${e}:${t}`, a = r.cssText ? Ar(r) : Vr(r, n);
674
+ return document.createTextNode(`${s}{${a}}`);
675
675
  }
676
676
  function ct(e, t, r, n) {
677
- const a = window.getComputedStyle(e, r), s = a.getPropertyValue("content");
678
- if (s === "" || s === "none")
677
+ const s = window.getComputedStyle(e, r), a = s.getPropertyValue("content");
678
+ if (a === "" || a === "none")
679
679
  return;
680
680
  const c = Sr();
681
681
  try {
@@ -684,7 +684,7 @@ function ct(e, t, r, n) {
684
684
  return;
685
685
  }
686
686
  const i = document.createElement("style");
687
- i.appendChild(Tr(c, r, a, n)), t.appendChild(i);
687
+ i.appendChild(Tr(c, r, s, n)), t.appendChild(i);
688
688
  }
689
689
  function _r(e, t, r) {
690
690
  ct(e, t, ":before", r), ct(e, t, ":after", r);
@@ -723,16 +723,16 @@ async function Ct(e, t, r) {
723
723
  const n = await fetch(e, t);
724
724
  if (n.status === 404)
725
725
  throw new Error(`Resource "${n.url}" not found`);
726
- const a = await n.blob();
727
- return new Promise((s, c) => {
726
+ const s = await n.blob();
727
+ return new Promise((a, c) => {
728
728
  const i = new FileReader();
729
729
  i.onerror = c, i.onloadend = () => {
730
730
  try {
731
- s(r({ res: n, result: i.result }));
731
+ a(r({ res: n, result: i.result }));
732
732
  } catch (u) {
733
733
  c(u);
734
734
  }
735
- }, i.readAsDataURL(a);
735
+ }, i.readAsDataURL(s);
736
736
  });
737
737
  }
738
738
  const ze = {};
@@ -745,16 +745,16 @@ async function Ye(e, t, r) {
745
745
  if (ze[n] != null)
746
746
  return ze[n];
747
747
  r.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
748
- let a;
748
+ let s;
749
749
  try {
750
- const s = await Ct(e, r.fetchRequestInit, ({ res: c, result: i }) => (t || (t = c.headers.get("Content-Type") || ""), $r(i)));
751
- a = Mr(s, t);
752
- } catch (s) {
753
- a = r.imagePlaceholder || "";
750
+ const a = await Ct(e, r.fetchRequestInit, ({ res: c, result: i }) => (t || (t = c.headers.get("Content-Type") || ""), $r(i)));
751
+ s = Mr(a, t);
752
+ } catch (a) {
753
+ s = r.imagePlaceholder || "";
754
754
  let c = `Failed to fetch resource: ${e}`;
755
- s && (c = typeof s == "string" ? s : s.message), c && console.warn(c);
755
+ a && (c = typeof a == "string" ? a : a.message), c && console.warn(c);
756
756
  }
757
- return ze[n] = a, a;
757
+ return ze[n] = s, s;
758
758
  }
759
759
  async function Ir(e) {
760
760
  const t = e.toDataURL();
@@ -762,13 +762,13 @@ async function Ir(e) {
762
762
  }
763
763
  async function Lr(e, t) {
764
764
  if (e.currentSrc) {
765
- const s = document.createElement("canvas"), c = s.getContext("2d");
766
- s.width = e.clientWidth, s.height = e.clientHeight, c?.drawImage(e, 0, 0, s.width, s.height);
767
- const i = s.toDataURL();
765
+ const a = document.createElement("canvas"), c = a.getContext("2d");
766
+ a.width = e.clientWidth, a.height = e.clientHeight, c?.drawImage(e, 0, 0, a.width, a.height);
767
+ const i = a.toDataURL();
768
768
  return _e(i);
769
769
  }
770
- const r = e.poster, n = qe(r), a = await Ye(r, n, t);
771
- return _e(a);
770
+ const r = e.poster, n = qe(r), s = await Ye(r, n, t);
771
+ return _e(s);
772
772
  }
773
773
  async function zr(e, t) {
774
774
  var r;
@@ -784,11 +784,11 @@ async function Dr(e, t) {
784
784
  }
785
785
  const Fr = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", Et = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
786
786
  async function Hr(e, t, r) {
787
- var n, a;
787
+ var n, s;
788
788
  if (Et(t))
789
789
  return t;
790
- let s = [];
791
- return Fr(e) && e.assignedNodes ? s = Q(e.assignedNodes()) : $(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = Q(e.contentDocument.body.childNodes) : s = Q(((a = e.shadowRoot) !== null && a !== void 0 ? a : e).childNodes), s.length === 0 || $(e, HTMLVideoElement) || await s.reduce((c, i) => c.then(() => Pe(i, r)).then((u) => {
790
+ let a = [];
791
+ return Fr(e) && e.assignedNodes ? a = Q(e.assignedNodes()) : $(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? a = Q(e.contentDocument.body.childNodes) : a = Q(((s = e.shadowRoot) !== null && s !== void 0 ? s : e).childNodes), a.length === 0 || $(e, HTMLVideoElement) || await a.reduce((c, i) => c.then(() => Pe(i, r)).then((u) => {
792
792
  u && t.appendChild(u);
793
793
  }), Promise.resolve()), t;
794
794
  }
@@ -796,10 +796,10 @@ function Wr(e, t, r) {
796
796
  const n = t.style;
797
797
  if (!n)
798
798
  return;
799
- const a = window.getComputedStyle(e);
800
- a.cssText ? (n.cssText = a.cssText, n.transformOrigin = a.transformOrigin) : bt(r).forEach((s) => {
801
- let c = a.getPropertyValue(s);
802
- s === "font-size" && c.endsWith("px") && (c = `${Math.floor(parseFloat(c.substring(0, c.length - 2))) - 0.1}px`), $(e, HTMLIFrameElement) && s === "display" && c === "inline" && (c = "block"), s === "d" && t.getAttribute("d") && (c = `path(${t.getAttribute("d")})`), n.setProperty(s, c, a.getPropertyPriority(s));
799
+ const s = window.getComputedStyle(e);
800
+ s.cssText ? (n.cssText = s.cssText, n.transformOrigin = s.transformOrigin) : bt(r).forEach((a) => {
801
+ let c = s.getPropertyValue(a);
802
+ a === "font-size" && c.endsWith("px") && (c = `${Math.floor(parseFloat(c.substring(0, c.length - 2))) - 0.1}px`), $(e, HTMLIFrameElement) && a === "display" && c === "inline" && (c = "block"), a === "d" && t.getAttribute("d") && (c = `path(${t.getAttribute("d")})`), n.setProperty(a, c, s.getPropertyPriority(a));
803
803
  });
804
804
  }
805
805
  function Ur(e, t) {
@@ -807,7 +807,7 @@ function Ur(e, t) {
807
807
  }
808
808
  function Br(e, t) {
809
809
  if ($(e, HTMLSelectElement)) {
810
- const n = Array.from(t.children).find((a) => e.value === a.getAttribute("value"));
810
+ const n = Array.from(t.children).find((s) => e.value === s.getAttribute("value"));
811
811
  n && n.setAttribute("selected", "");
812
812
  }
813
813
  }
@@ -819,21 +819,21 @@ async function Yr(e, t) {
819
819
  if (r.length === 0)
820
820
  return e;
821
821
  const n = {};
822
- for (let s = 0; s < r.length; s++) {
823
- const i = r[s].getAttribute("xlink:href");
822
+ for (let a = 0; a < r.length; a++) {
823
+ const i = r[a].getAttribute("xlink:href");
824
824
  if (i) {
825
825
  const u = e.querySelector(i), p = document.querySelector(i);
826
826
  !u && p && !n[i] && (n[i] = await Pe(p, t, !0));
827
827
  }
828
828
  }
829
- const a = Object.values(n);
830
- if (a.length) {
831
- const s = "http://www.w3.org/1999/xhtml", c = document.createElementNS(s, "svg");
832
- c.setAttribute("xmlns", s), c.style.position = "absolute", c.style.width = "0", c.style.height = "0", c.style.overflow = "hidden", c.style.display = "none";
833
- const i = document.createElementNS(s, "defs");
829
+ const s = Object.values(n);
830
+ if (s.length) {
831
+ const a = "http://www.w3.org/1999/xhtml", c = document.createElementNS(a, "svg");
832
+ c.setAttribute("xmlns", a), c.style.position = "absolute", c.style.width = "0", c.style.height = "0", c.style.overflow = "hidden", c.style.display = "none";
833
+ const i = document.createElementNS(a, "defs");
834
834
  c.appendChild(i);
835
- for (let u = 0; u < a.length; u++)
836
- i.appendChild(a[u]);
835
+ for (let u = 0; u < s.length; u++)
836
+ i.appendChild(s[u]);
837
837
  e.appendChild(c);
838
838
  }
839
839
  return e;
@@ -848,13 +848,13 @@ function Zr(e) {
848
848
  }
849
849
  function Kr(e) {
850
850
  const t = [];
851
- return e.replace(kt, (r, n, a) => (t.push(a), r)), t.filter((r) => !Be(r));
851
+ return e.replace(kt, (r, n, s) => (t.push(s), r)), t.filter((r) => !Be(r));
852
852
  }
853
- async function Qr(e, t, r, n, a) {
853
+ async function Qr(e, t, r, n, s) {
854
854
  try {
855
- const s = r ? br(t, r) : t, c = qe(t);
855
+ const a = r ? br(t, r) : t, c = qe(t);
856
856
  let i;
857
- return a || (i = await Ye(s, c, n)), e.replace(Zr(t), `$1${i}$3`);
857
+ return s || (i = await Ye(a, c, n)), e.replace(Zr(t), `$1${i}$3`);
858
858
  } catch {
859
859
  }
860
860
  return e;
@@ -862,29 +862,29 @@ async function Qr(e, t, r, n, a) {
862
862
  function en(e, { preferredFontFormat: t }) {
863
863
  return t ? e.replace(Jr, (r) => {
864
864
  for (; ; ) {
865
- const [n, , a] = Xr.exec(r) || [];
866
- if (!a)
865
+ const [n, , s] = Xr.exec(r) || [];
866
+ if (!s)
867
867
  return "";
868
- if (a === t)
868
+ if (s === t)
869
869
  return `src: ${n};`;
870
870
  }
871
871
  }) : e;
872
872
  }
873
- function Rt(e) {
873
+ function jt(e) {
874
874
  return e.search(kt) !== -1;
875
875
  }
876
- async function jt(e, t, r) {
877
- if (!Rt(e))
876
+ async function Rt(e, t, r) {
877
+ if (!jt(e))
878
878
  return e;
879
879
  const n = en(e, r);
880
- return Kr(n).reduce((s, c) => s.then((i) => Qr(i, c, t, r)), Promise.resolve(n));
880
+ return Kr(n).reduce((a, c) => a.then((i) => Qr(i, c, t, r)), Promise.resolve(n));
881
881
  }
882
882
  async function le(e, t, r) {
883
883
  var n;
884
- const a = (n = t.style) === null || n === void 0 ? void 0 : n.getPropertyValue(e);
885
- if (a) {
886
- const s = await jt(a, null, r);
887
- return t.style.setProperty(e, s, t.style.getPropertyPriority(e)), !0;
884
+ const s = (n = t.style) === null || n === void 0 ? void 0 : n.getPropertyValue(e);
885
+ if (s) {
886
+ const a = await Rt(s, null, r);
887
+ return t.style.setProperty(e, a, t.style.getPropertyPriority(e)), !0;
888
888
  }
889
889
  return !1;
890
890
  }
@@ -895,32 +895,32 @@ async function rn(e, t) {
895
895
  const r = $(e, HTMLImageElement);
896
896
  if (!(r && !Be(e.src)) && !($(e, SVGImageElement) && !Be(e.href.baseVal)))
897
897
  return;
898
- const n = r ? e.src : e.href.baseVal, a = await Ye(n, qe(n), t);
899
- await new Promise((s, c) => {
900
- e.onload = s, e.onerror = t.onImageErrorHandler ? (...u) => {
898
+ const n = r ? e.src : e.href.baseVal, s = await Ye(n, qe(n), t);
899
+ await new Promise((a, c) => {
900
+ e.onload = a, e.onerror = t.onImageErrorHandler ? (...u) => {
901
901
  try {
902
- s(t.onImageErrorHandler(...u));
902
+ a(t.onImageErrorHandler(...u));
903
903
  } catch (p) {
904
904
  c(p);
905
905
  }
906
906
  } : c;
907
907
  const i = e;
908
- i.decode && (i.decode = s), i.loading === "lazy" && (i.loading = "eager"), r ? (e.srcset = "", e.src = a) : e.href.baseVal = a;
908
+ i.decode && (i.decode = a), i.loading === "lazy" && (i.loading = "eager"), r ? (e.srcset = "", e.src = s) : e.href.baseVal = s;
909
909
  });
910
910
  }
911
911
  async function nn(e, t) {
912
- const n = Q(e.childNodes).map((a) => Ot(a, t));
912
+ const n = Q(e.childNodes).map((s) => Ot(s, t));
913
913
  await Promise.all(n).then(() => e);
914
914
  }
915
915
  async function Ot(e, t) {
916
916
  $(e, Element) && (await tn(e, t), await rn(e, t), await nn(e, t));
917
917
  }
918
- function an(e, t) {
918
+ function sn(e, t) {
919
919
  const { style: r } = e;
920
920
  t.backgroundColor && (r.backgroundColor = t.backgroundColor), t.width && (r.width = `${t.width}px`), t.height && (r.height = `${t.height}px`);
921
921
  const n = t.style;
922
- return n != null && Object.keys(n).forEach((a) => {
923
- r[a] = n[a];
922
+ return n != null && Object.keys(n).forEach((s) => {
923
+ r[s] = n[s];
924
924
  }), e;
925
925
  }
926
926
  const ut = {};
@@ -933,53 +933,53 @@ async function pt(e) {
933
933
  }
934
934
  async function mt(e, t) {
935
935
  let r = e.cssText;
936
- const n = /url\(["']?([^"')]+)["']?\)/g, s = (r.match(/url\([^)]+\)/g) || []).map(async (c) => {
936
+ const n = /url\(["']?([^"')]+)["']?\)/g, a = (r.match(/url\([^)]+\)/g) || []).map(async (c) => {
937
937
  let i = c.replace(n, "$1");
938
938
  return i.startsWith("https://") || (i = new URL(i, e.url).href), Ct(i, t.fetchRequestInit, ({ result: u }) => (r = r.replace(c, `url(${u})`), [c, u]));
939
939
  });
940
- return Promise.all(s).then(() => r);
940
+ return Promise.all(a).then(() => r);
941
941
  }
942
942
  function ft(e) {
943
943
  if (e == null)
944
944
  return [];
945
945
  const t = [], r = /(\/\*[\s\S]*?\*\/)/gi;
946
946
  let n = e.replace(r, "");
947
- const a = new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})", "gi");
947
+ const s = new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})", "gi");
948
948
  for (; ; ) {
949
- const u = a.exec(n);
949
+ const u = s.exec(n);
950
950
  if (u === null)
951
951
  break;
952
952
  t.push(u[0]);
953
953
  }
954
- n = n.replace(a, "");
955
- const s = /@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi, c = "((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})", i = new RegExp(c, "gi");
954
+ n = n.replace(s, "");
955
+ const a = /@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi, c = "((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})", i = new RegExp(c, "gi");
956
956
  for (; ; ) {
957
- let u = s.exec(n);
957
+ let u = a.exec(n);
958
958
  if (u === null) {
959
959
  if (u = i.exec(n), u === null)
960
960
  break;
961
- s.lastIndex = i.lastIndex;
961
+ a.lastIndex = i.lastIndex;
962
962
  } else
963
- i.lastIndex = s.lastIndex;
963
+ i.lastIndex = a.lastIndex;
964
964
  t.push(u[0]);
965
965
  }
966
966
  return t;
967
967
  }
968
- async function sn(e, t) {
968
+ async function an(e, t) {
969
969
  const r = [], n = [];
970
- return e.forEach((a) => {
971
- if ("cssRules" in a)
970
+ return e.forEach((s) => {
971
+ if ("cssRules" in s)
972
972
  try {
973
- Q(a.cssRules || []).forEach((s, c) => {
974
- if (s.type === CSSRule.IMPORT_RULE) {
973
+ Q(s.cssRules || []).forEach((a, c) => {
974
+ if (a.type === CSSRule.IMPORT_RULE) {
975
975
  let i = c + 1;
976
- const u = s.href, p = pt(u).then((m) => mt(m, t)).then((m) => ft(m).forEach((f) => {
976
+ const u = a.href, p = pt(u).then((m) => mt(m, t)).then((m) => ft(m).forEach((f) => {
977
977
  try {
978
- a.insertRule(f, f.startsWith("@import") ? i += 1 : a.cssRules.length);
979
- } catch (A) {
978
+ s.insertRule(f, f.startsWith("@import") ? i += 1 : s.cssRules.length);
979
+ } catch (R) {
980
980
  console.error("Error inserting rule from remote css", {
981
981
  rule: f,
982
- error: A
982
+ error: R
983
983
  });
984
984
  }
985
985
  })).catch((m) => {
@@ -988,32 +988,32 @@ async function sn(e, t) {
988
988
  n.push(p);
989
989
  }
990
990
  });
991
- } catch (s) {
991
+ } catch (a) {
992
992
  const c = e.find((i) => i.href == null) || document.styleSheets[0];
993
- a.href != null && n.push(pt(a.href).then((i) => mt(i, t)).then((i) => ft(i).forEach((u) => {
993
+ s.href != null && n.push(pt(s.href).then((i) => mt(i, t)).then((i) => ft(i).forEach((u) => {
994
994
  c.insertRule(u, c.cssRules.length);
995
995
  })).catch((i) => {
996
996
  console.error("Error loading remote stylesheet", i);
997
- })), console.error("Error inlining remote css file", s);
997
+ })), console.error("Error inlining remote css file", a);
998
998
  }
999
- }), Promise.all(n).then(() => (e.forEach((a) => {
1000
- if ("cssRules" in a)
999
+ }), Promise.all(n).then(() => (e.forEach((s) => {
1000
+ if ("cssRules" in s)
1001
1001
  try {
1002
- Q(a.cssRules || []).forEach((s) => {
1003
- r.push(s);
1002
+ Q(s.cssRules || []).forEach((a) => {
1003
+ r.push(a);
1004
1004
  });
1005
- } catch (s) {
1006
- console.error(`Error while reading CSS rules from ${a.href}`, s);
1005
+ } catch (a) {
1006
+ console.error(`Error while reading CSS rules from ${s.href}`, a);
1007
1007
  }
1008
1008
  }), r));
1009
1009
  }
1010
1010
  function on(e) {
1011
- return e.filter((t) => t.type === CSSRule.FONT_FACE_RULE).filter((t) => Rt(t.style.getPropertyValue("src")));
1011
+ return e.filter((t) => t.type === CSSRule.FONT_FACE_RULE).filter((t) => jt(t.style.getPropertyValue("src")));
1012
1012
  }
1013
1013
  async function cn(e, t) {
1014
1014
  if (e.ownerDocument == null)
1015
1015
  throw new Error("Provided element is not within a Document");
1016
- const r = Q(e.ownerDocument.styleSheets), n = await sn(r, t);
1016
+ const r = Q(e.ownerDocument.styleSheets), n = await an(r, t);
1017
1017
  return on(n);
1018
1018
  }
1019
1019
  function At(e) {
@@ -1022,36 +1022,36 @@ function At(e) {
1022
1022
  function ln(e) {
1023
1023
  const t = /* @__PURE__ */ new Set();
1024
1024
  function r(n) {
1025
- (n.style.fontFamily || getComputedStyle(n).fontFamily).split(",").forEach((s) => {
1026
- t.add(At(s));
1027
- }), Array.from(n.children).forEach((s) => {
1028
- s instanceof HTMLElement && r(s);
1025
+ (n.style.fontFamily || getComputedStyle(n).fontFamily).split(",").forEach((a) => {
1026
+ t.add(At(a));
1027
+ }), Array.from(n.children).forEach((a) => {
1028
+ a instanceof HTMLElement && r(a);
1029
1029
  });
1030
1030
  }
1031
1031
  return r(e), t;
1032
1032
  }
1033
1033
  async function dn(e, t) {
1034
1034
  const r = await cn(e, t), n = ln(e);
1035
- return (await Promise.all(r.filter((s) => n.has(At(s.style.fontFamily))).map((s) => {
1036
- const c = s.parentStyleSheet ? s.parentStyleSheet.href : null;
1037
- return jt(s.cssText, c, t);
1035
+ return (await Promise.all(r.filter((a) => n.has(At(a.style.fontFamily))).map((a) => {
1036
+ const c = a.parentStyleSheet ? a.parentStyleSheet.href : null;
1037
+ return Rt(a.cssText, c, t);
1038
1038
  }))).join(`
1039
1039
  `);
1040
1040
  }
1041
1041
  async function un(e, t) {
1042
1042
  const r = t.fontEmbedCSS != null ? t.fontEmbedCSS : t.skipFonts ? null : await dn(e, t);
1043
1043
  if (r) {
1044
- const n = document.createElement("style"), a = document.createTextNode(r);
1045
- n.appendChild(a), e.firstChild ? e.insertBefore(n, e.firstChild) : e.appendChild(n);
1044
+ const n = document.createElement("style"), s = document.createTextNode(r);
1045
+ n.appendChild(s), e.firstChild ? e.insertBefore(n, e.firstChild) : e.appendChild(n);
1046
1046
  }
1047
1047
  }
1048
1048
  async function pn(e, t = {}) {
1049
- const { width: r, height: n } = St(e, t), a = await Pe(e, t, !0);
1050
- return await un(a, t), await Ot(a, t), an(a, t), await Or(a, r, n);
1049
+ const { width: r, height: n } = St(e, t), s = await Pe(e, t, !0);
1050
+ return await un(s, t), await Ot(s, t), sn(s, t), await Or(s, r, n);
1051
1051
  }
1052
1052
  async function mn(e, t = {}) {
1053
- const { width: r, height: n } = St(e, t), a = await pn(e, t), s = await _e(a), c = document.createElement("canvas"), i = c.getContext("2d"), u = t.pixelRatio || kr(), p = t.canvasWidth || r, m = t.canvasHeight || n;
1054
- return c.width = p * u, c.height = m * u, t.skipAutoScale || Rr(c), c.style.width = `${p}`, c.style.height = `${m}`, t.backgroundColor && (i.fillStyle = t.backgroundColor, i.fillRect(0, 0, c.width, c.height)), i.drawImage(s, 0, 0, c.width, c.height), c;
1053
+ const { width: r, height: n } = St(e, t), s = await pn(e, t), a = await _e(s), c = document.createElement("canvas"), i = c.getContext("2d"), u = t.pixelRatio || kr(), p = t.canvasWidth || r, m = t.canvasHeight || n;
1054
+ return c.width = p * u, c.height = m * u, t.skipAutoScale || jr(c), c.style.width = `${p}`, c.style.height = `${m}`, t.backgroundColor && (i.fillStyle = t.backgroundColor, i.fillRect(0, 0, c.width, c.height)), i.drawImage(a, 0, 0, c.width, c.height), c;
1055
1055
  }
1056
1056
  async function fn(e, t = {}) {
1057
1057
  return (await mn(e, t)).toDataURL();
@@ -1074,11 +1074,11 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1074
1074
  } catch {
1075
1075
  return "";
1076
1076
  }
1077
- }, gt = ({ url: e, className: t, style: r, tooltipStyle: n, onHover: a }) => {
1078
- const s = ue(null), c = () => {
1079
- if (!s.current || !a) return;
1080
- const i = s.current.getBoundingClientRect(), u = i.top, p = window.innerHeight - i.bottom, m = u < 140 && p > u ? "bottom" : "top";
1081
- a({
1077
+ }, gt = ({ url: e, className: t, style: r, tooltipStyle: n, onHover: s }) => {
1078
+ const a = ue(null), c = () => {
1079
+ if (!a.current || !s) return;
1080
+ const i = a.current.getBoundingClientRect(), u = i.top, p = window.innerHeight - i.bottom, m = u < 140 && p > u ? "bottom" : "top";
1081
+ s({
1082
1082
  url: e,
1083
1083
  x: i.left + i.width / 2,
1084
1084
  y: m === "top" ? i.top : i.bottom,
@@ -1089,12 +1089,12 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1089
1089
  "div",
1090
1090
  {
1091
1091
  "data-source-path": "/src/components/ViewGateOverlay.tsx:106",
1092
- ref: s,
1092
+ ref: a,
1093
1093
  className: `vg-url-tag ${t || ""}`,
1094
1094
  style: r,
1095
1095
  onMouseEnter: c,
1096
1096
  onMouseMove: c,
1097
- onMouseLeave: () => a?.(null),
1097
+ onMouseLeave: () => s?.(null),
1098
1098
  children: [
1099
1099
  /* @__PURE__ */ o.jsx(nr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:114", size: r?.fontSize ? parseInt(r.fontSize) + 1 : 10 }),
1100
1100
  /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:115", style: {
@@ -1108,26 +1108,26 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1108
1108
  );
1109
1109
  }, ve = (e) => {
1110
1110
  const t = [], r = [], n = [];
1111
- let a = e;
1112
- for (; a && a.nodeType === Node.ELEMENT_NODE; ) {
1113
- if (a.id && !a.id.startsWith("vg-") && !a.id.includes(":")) {
1114
- t.unshift(`#${a.id}`), n.unshift(`${a.localName}#${a.id}`);
1111
+ let s = e;
1112
+ for (; s && s.nodeType === Node.ELEMENT_NODE; ) {
1113
+ if (s.id && !s.id.startsWith("vg-") && !s.id.includes(":")) {
1114
+ t.unshift(`#${s.id}`), n.unshift(`${s.localName}#${s.id}`);
1115
1115
  break;
1116
1116
  }
1117
- let s = a.localName;
1118
- const c = Array.from(a.parentNode?.children || []).indexOf(a), i = `${a.localName}[${c}]`;
1117
+ let a = s.localName;
1118
+ const c = Array.from(s.parentNode?.children || []).indexOf(s), i = `${s.localName}[${c}]`;
1119
1119
  n.unshift(i);
1120
- const u = a.getAttribute("data-testid") || a.getAttribute("data-qa");
1121
- if (u && r.push(`[data-testid="${u}"]`), a.getAttribute("placeholder"), a.getAttribute("aria-label"), a.getAttribute("role"), a.getAttribute("name"), a.getAttribute("title"), u) {
1122
- s = `[${a.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${u}"]`, t.unshift(s);
1120
+ const u = s.getAttribute("data-testid") || s.getAttribute("data-qa");
1121
+ if (u && r.push(`[data-testid="${u}"]`), s.getAttribute("placeholder"), s.getAttribute("aria-label"), s.getAttribute("role"), s.getAttribute("name"), s.getAttribute("title"), u) {
1122
+ a = `[${s.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${u}"]`, t.unshift(a);
1123
1123
  break;
1124
1124
  }
1125
- const p = Array.from(a.parentNode?.children || []).filter((m) => m.localName === a?.localName);
1125
+ const p = Array.from(s.parentNode?.children || []).filter((m) => m.localName === s?.localName);
1126
1126
  if (p.length > 1) {
1127
- const m = p.indexOf(a) + 1;
1128
- s += `:nth-of-type(${m})`;
1127
+ const m = p.indexOf(s) + 1;
1128
+ a += `:nth-of-type(${m})`;
1129
1129
  }
1130
- t.unshift(s), a = a.parentElement;
1130
+ t.unshift(a), s = s.parentElement;
1131
1131
  }
1132
1132
  return {
1133
1133
  selector: t.join(" > "),
@@ -1148,40 +1148,19 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1148
1148
  placeholder: e.getAttribute("placeholder") || void 0,
1149
1149
  textSnippet: (e.innerText || "").slice(0, 30).trim()
1150
1150
  };
1151
- }, vn = /* @__PURE__ */ (() => {
1152
- let e = null, t = null;
1153
- return (r) => {
1154
- if (!r || typeof window > "u" || typeof document > "u") return r;
1155
- if (r.includes("oklch") || r.includes("oklab") || r.includes("lab(") || r.includes("lch(") || r.includes("color("))
1156
- try {
1157
- if (e || (e = document.createElement("canvas"), e.width = 1, e.height = 1), t || (t = e.getContext("2d", { willReadFrequently: !0 })), t) {
1158
- t.fillStyle = "#000000", t.fillStyle = r;
1159
- const s = t.fillStyle;
1160
- if (s && !s.includes("oklch") && !s.includes("oklab"))
1161
- return s;
1162
- }
1163
- const n = document.createElement("div");
1164
- n.style.color = r, document.body.appendChild(n);
1165
- const a = getComputedStyle(n).color;
1166
- return document.body.removeChild(n), a && !a.includes("oklch") ? a : "rgb(0,0,0)";
1167
- } catch {
1168
- return "rgb(0,0,0)";
1169
- }
1170
- return r;
1171
- };
1172
- })(), bn = (e, t, r, n) => new Promise((a) => {
1173
- const s = new Image();
1174
- s.onload = () => {
1151
+ }, vn = (e, t, r, n) => new Promise((s) => {
1152
+ const a = new Image();
1153
+ a.onload = () => {
1175
1154
  const c = document.createElement("canvas"), i = 2, u = t.width + r * 2, p = t.height + r * 2;
1176
1155
  c.width = u * i, c.height = p * i;
1177
1156
  const m = c.getContext("2d");
1178
1157
  if (m) {
1179
1158
  m.imageSmoothingEnabled = !0, m.imageSmoothingQuality = "high";
1180
- const f = (t.left - r) * n, A = (t.top - r) * n, P = u * n, L = p * n;
1159
+ const f = (t.left - r) * n, R = (t.top - r) * n, P = u * n, L = p * n;
1181
1160
  m.drawImage(
1182
- s,
1161
+ a,
1183
1162
  f,
1184
- A,
1163
+ R,
1185
1164
  P,
1186
1165
  L,
1187
1166
  0,
@@ -1190,9 +1169,30 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1190
1169
  c.height
1191
1170
  );
1192
1171
  }
1193
- a(c.toDataURL("image/png", 0.9));
1194
- }, s.onerror = () => a(""), s.src = e;
1195
- }), Sn = (e) => {
1172
+ s(c.toDataURL("image/png", 0.9));
1173
+ }, a.onerror = () => s(""), a.src = e;
1174
+ }), bn = /* @__PURE__ */ (() => {
1175
+ let e = null, t = null;
1176
+ return (r) => {
1177
+ if (!r || typeof window > "u" || typeof document > "u") return r;
1178
+ if (r.includes("oklch") || r.includes("oklab") || r.includes("lab(") || r.includes("lch(") || r.includes("color("))
1179
+ try {
1180
+ if (e || (e = document.createElement("canvas"), e.width = 1, e.height = 1), t || (t = e.getContext("2d", { willReadFrequently: !0 })), t) {
1181
+ t.fillStyle = "#000000", t.fillStyle = r;
1182
+ const a = t.fillStyle;
1183
+ if (a && !a.includes("oklch") && !a.includes("oklab"))
1184
+ return a;
1185
+ }
1186
+ const n = document.createElement("div");
1187
+ n.style.color = r, document.body.appendChild(n);
1188
+ const s = getComputedStyle(n).color;
1189
+ return document.body.removeChild(n), s && !s.includes("oklch") ? s : "rgb(0,0,0)";
1190
+ } catch {
1191
+ return "rgb(0,0,0)";
1192
+ }
1193
+ return r;
1194
+ };
1195
+ })(), Sn = (e) => {
1196
1196
  const t = window.getComputedStyle(e), r = {};
1197
1197
  return [
1198
1198
  "display",
@@ -1205,38 +1205,38 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1205
1205
  "width",
1206
1206
  "height",
1207
1207
  "z-index"
1208
- ].forEach((a) => {
1209
- const s = t.getPropertyValue(a);
1210
- r[a] = vn(s);
1208
+ ].forEach((s) => {
1209
+ const a = t.getPropertyValue(s);
1210
+ r[s] = bn(a);
1211
1211
  }), r;
1212
1212
  }, Cn = (e) => {
1213
- const r = Object.keys(e).find((s) => s.startsWith("__reactFiber$") || s.startsWith("__reactInternalInstance$"));
1213
+ const r = Object.keys(e).find((a) => a.startsWith("__reactFiber$") || a.startsWith("__reactInternalInstance$"));
1214
1214
  if (!r) return "";
1215
1215
  const n = [];
1216
- let a = e[r];
1217
- for (; a; ) {
1218
- const s = a.type;
1219
- if (typeof s == "function") {
1220
- const c = s.displayName || s.name;
1216
+ let s = e[r];
1217
+ for (; s; ) {
1218
+ const a = s.type;
1219
+ if (typeof a == "function") {
1220
+ const c = a.displayName || a.name;
1221
1221
  c && !c.includes("ViewGate") && !n.includes(c) && n.unshift(c);
1222
1222
  }
1223
- a = a.return;
1223
+ s = s.return;
1224
1224
  }
1225
1225
  return n.join(" > ") || "Generic Component";
1226
1226
  }, En = (e) => {
1227
1227
  if (!e) return !1;
1228
1228
  const t = window.getComputedStyle(e), r = e.getBoundingClientRect(), n = e.getAttribute("role");
1229
1229
  if (n && ["listbox", "menu", "combobox", "tooltip", "option"].includes(n)) return !1;
1230
- const s = 120;
1231
- return r.width < s && r.height < s || t.position !== "fixed" && t.position !== "absolute" ? !1 : !!(e.closest('[role="dialog"]') || e.closest('[aria-modal="true"]') || e.classList.contains("modal") || e.classList.contains("modal-content"));
1230
+ const a = 120;
1231
+ return r.width < a && r.height < a || t.position !== "fixed" && t.position !== "absolute" ? !1 : !!(e.closest('[role="dialog"]') || e.closest('[aria-modal="true"]') || e.classList.contains("modal") || e.classList.contains("modal-content"));
1232
1232
  }, re = (e) => {
1233
1233
  if (!e.isConnected) return !1;
1234
1234
  const t = window.getComputedStyle(e);
1235
1235
  if (t.display === "none" || t.visibility === "hidden" || t.opacity === "0" || e.offsetWidth === 0 || e.offsetHeight === 0) return !1;
1236
1236
  let r = e.parentElement;
1237
1237
  for (; r; ) {
1238
- const a = window.getComputedStyle(r);
1239
- if (a.display === "none" || a.visibility === "hidden" || a.opacity === "0") return !1;
1238
+ const s = window.getComputedStyle(r);
1239
+ if (s.display === "none" || s.visibility === "hidden" || s.opacity === "0") return !1;
1240
1240
  r = r.parentElement;
1241
1241
  }
1242
1242
  const n = e.getBoundingClientRect();
@@ -1245,10 +1245,10 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1245
1245
  const r = t.querySelector(e);
1246
1246
  if (r) return r;
1247
1247
  const n = t.querySelectorAll("*");
1248
- for (const a of Array.from(n)) {
1249
- const s = a.shadowRoot;
1250
- if (s) {
1251
- const c = Vt(e, s);
1248
+ for (const s of Array.from(n)) {
1249
+ const a = s.shadowRoot;
1250
+ if (a) {
1251
+ const c = Vt(e, a);
1252
1252
  if (c) return c;
1253
1253
  }
1254
1254
  }
@@ -1265,26 +1265,26 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1265
1265
  if (!e.tag) return null;
1266
1266
  const t = Array.from(document.getElementsByTagName(e.tag));
1267
1267
  let r = null, n = 0;
1268
- for (const a of t) {
1269
- if (!Ve(a, e)) continue;
1270
- let s = 0;
1271
- const c = a.getAttribute("placeholder"), i = e.attributes?.placeholder || e.fingerprint?.placeholder;
1272
- i && c === i && (s += 6);
1273
- const u = a.getAttribute("type"), p = e.attributes?.type || e.fingerprint?.type;
1274
- if (p && u === p && (s += 2), a.innerText?.trim() === e.text.trim() && (s += 5), e.fingerprint?.vgPath) {
1275
- const { vgPath: m } = ve(a);
1276
- (m === e.vgPath || e.fingerprint?.vgPath === m) && (s += 10);
1268
+ for (const s of t) {
1269
+ if (!Ve(s, e)) continue;
1270
+ let a = 0;
1271
+ const c = s.getAttribute("placeholder"), i = e.attributes?.placeholder || e.fingerprint?.placeholder;
1272
+ i && c === i && (a += 6);
1273
+ const u = s.getAttribute("type"), p = e.attributes?.type || e.fingerprint?.type;
1274
+ if (p && u === p && (a += 2), s.innerText?.trim() === e.text.trim() && (a += 5), e.fingerprint?.vgPath) {
1275
+ const { vgPath: m } = ve(s);
1276
+ (m === e.vgPath || e.fingerprint?.vgPath === m) && (a += 10);
1277
1277
  }
1278
- s > n && s >= 7 && (n = s, r = a);
1278
+ a > n && a >= 7 && (n = a, r = s);
1279
1279
  }
1280
1280
  return r;
1281
1281
  }, Ve = (e, t) => {
1282
1282
  if (e.tagName.toLowerCase() !== t.tag.toLowerCase()) return !1;
1283
1283
  const r = e.getAttribute("placeholder"), n = t.attributes?.placeholder || t.fingerprint?.placeholder;
1284
1284
  if (n && r && n !== r) return !1;
1285
- const a = e.getAttribute("type"), s = t.attributes?.type || t.fingerprint?.type;
1286
- return !(s && a && s !== a);
1287
- }, Rn = (e, t) => {
1285
+ const s = e.getAttribute("type"), a = t.attributes?.type || t.fingerprint?.type;
1286
+ return !(a && s && a !== s);
1287
+ }, jn = (e, t) => {
1288
1288
  if (t) {
1289
1289
  const c = Array.from(document.querySelectorAll(`[${U}="${t}"]`));
1290
1290
  if (c.length > 0) {
@@ -1303,15 +1303,15 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1303
1303
  }
1304
1304
  }
1305
1305
  const n = (e.selector ? Array.from(document.querySelectorAll(e.selector)) : []).filter((c) => Ve(c, e));
1306
- let a = n.find((c) => {
1306
+ let s = n.find((c) => {
1307
1307
  const { vgPath: i } = ve(c);
1308
1308
  return i === e.vgPath || e.fingerprint?.vgPath === i;
1309
1309
  }) || n[0] || null;
1310
- if (a && re(a))
1311
- if (e.metadata?.isModal && !a.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content'))
1312
- a = null;
1310
+ if (s && re(s))
1311
+ if (e.metadata?.isModal && !s.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content'))
1312
+ s = null;
1313
1313
  else
1314
- return a;
1314
+ return s;
1315
1315
  if (e.fallbackSelectors)
1316
1316
  for (const c of e.fallbackSelectors) {
1317
1317
  const i = Vt(c);
@@ -1320,22 +1320,22 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1320
1320
  return i;
1321
1321
  }
1322
1322
  }
1323
- const s = kn(e);
1324
- return s && re(s) ? e.metadata?.isModal && !s.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content') ? null : s : null;
1323
+ const a = kn(e);
1324
+ return a && re(a) ? e.metadata?.isModal && !a.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content') ? null : a : null;
1325
1325
  }, He = (e) => ({
1326
1326
  tag: e.tagName.toLowerCase(),
1327
1327
  text: (e.innerText || e.getAttribute("placeholder") || "").slice(0, 50).trim(),
1328
1328
  role: e.getAttribute("role") || void 0,
1329
1329
  type: e.getAttribute("type") || void 0
1330
- }), jn = (e) => {
1330
+ }), Rn = (e) => {
1331
1331
  const t = e.parentElement;
1332
1332
  if (!t) return;
1333
- const r = Array.from(t.children).filter((c) => c !== e).slice(0, 5).map((c) => He(c)), n = Array.from(t.children), a = n.indexOf(e);
1334
- let s = "middle";
1335
- return a === 0 && (s = "start"), a === n.length - 1 && (s = "end"), {
1333
+ const r = Array.from(t.children).filter((c) => c !== e).slice(0, 5).map((c) => He(c)), n = Array.from(t.children), s = n.indexOf(e);
1334
+ let a = "middle";
1335
+ return s === 0 && (a = "start"), s === n.length - 1 && (a = "end"), {
1336
1336
  target: {
1337
1337
  ...He(e),
1338
- location: `${s} of ${t.tagName.toLowerCase()}`
1338
+ location: `${a} of ${t.tagName.toLowerCase()}`
1339
1339
  },
1340
1340
  parent: He(t),
1341
1341
  siblings: r
@@ -1350,18 +1350,18 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1350
1350
  }
1351
1351
  r = r.parentElement;
1352
1352
  }
1353
- const n = Cn(e), { selector: a, fallbacks: s, vgPath: c } = ve(e), i = {};
1353
+ const n = Cn(e), { selector: s, fallbacks: a, vgPath: c } = ve(e), i = {};
1354
1354
  ["placeholder", "aria-label", "name", "type", "alt", "title", "value", "role"].forEach((m) => {
1355
1355
  const f = e.getAttribute(m);
1356
1356
  f && (i[m] = f);
1357
1357
  });
1358
- const u = !!e.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content'), p = `${e.tagName.toLowerCase()}-${(e.innerText || "").slice(0, 20).replace(/\s+/g, "_")}-${a.split(" > ").slice(-1)}`;
1358
+ const u = !!e.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content'), p = `${e.tagName.toLowerCase()}-${(e.innerText || "").slice(0, 20).replace(/\s+/g, "_")}-${s.split(" > ").slice(-1)}`;
1359
1359
  return {
1360
1360
  tag: e.tagName.toLowerCase(),
1361
1361
  id: e.id || "",
1362
1362
  classes: e.className || "",
1363
1363
  text: (e.innerText || "").slice(0, 100).trim(),
1364
- selector: a,
1364
+ selector: s,
1365
1365
  vgPath: c,
1366
1366
  outerHtml: e.outerHTML,
1367
1367
  parentContext: (e.parentElement?.innerText || "").slice(0, 150).trim(),
@@ -1369,10 +1369,10 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1369
1369
  signature: p,
1370
1370
  source: t,
1371
1371
  attributes: i,
1372
- fallbackSelectors: [...new Set(s)].slice(0, 5),
1372
+ fallbackSelectors: [...new Set(a)].slice(0, 5),
1373
1373
  domPath: [],
1374
1374
  viewportSize: { width: window.innerWidth, height: window.innerHeight },
1375
- uiContext: jn(e),
1375
+ uiContext: Rn(e),
1376
1376
  fingerprint: wn(e),
1377
1377
  metadata: {
1378
1378
  hint: `Edit ${t.split(":")[0]} at line ${t.split(":")[1] || "?"}`,
@@ -1384,12 +1384,12 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1384
1384
  }
1385
1385
  };
1386
1386
  }, An = () => {
1387
- const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: c } = wr(), [i, u] = S(!1), [p, m] = S(null), [f, A] = S(null), [P, L] = S(""), [B, ne] = S(!1), [be, Se] = S(!1), [N, q] = S(!1), [V, Ce] = S([]), [z, D] = S(null), [Ee, Xe] = S(!1), [pe, ae] = S(!1), [ke, Re] = S({}), [I, Z] = S(null), [ee, me] = S(!1), [F, fe] = S(null), [d, x] = S([]), v = It(() => {
1387
+ const { addToast: e, language: t, t: r, apiKey: n, baseUrl: s, disableViewGate: a, hasActiveToasts: c } = wr(), [i, u] = S(!1), [p, m] = S(null), [f, R] = S(null), [P, L] = S(""), [B, ne] = S(!1), [be, Se] = S(!1), [N, q] = S(!1), [V, Ce] = S([]), [z, D] = S(null), [Ee, Xe] = S(!1), [pe, se] = S(!1), [ke, je] = S({}), [I, Z] = S(null), [ee, me] = S(!1), [F, fe] = S(null), [d, x] = S([]), v = It(() => {
1388
1388
  const l = Array.isArray(V) ? V : [];
1389
1389
  if (!I) return l;
1390
1390
  const h = d.find((g) => g.annotations && Array.isArray(g.annotations) && g.annotations.some((E) => E._id === I));
1391
1391
  return h ? h.annotations : l.filter((g) => g._id === I);
1392
- }, [I, V, d]), [b, se] = S(() => {
1392
+ }, [I, V, d]), [b, ae] = S(() => {
1393
1393
  if (typeof window > "u") return { top: 24, right: 24 };
1394
1394
  const l = localStorage.getItem("vg-exit-pos");
1395
1395
  return l ? JSON.parse(l) : { top: 24, right: 24 };
@@ -1424,14 +1424,14 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1424
1424
  if (!Y && !he) return;
1425
1425
  const l = (g) => {
1426
1426
  if (Y && T.current) {
1427
- const E = g.clientX - T.current.x, R = g.clientY - T.current.y;
1428
- let O = T.current.top + R, w = T.current.right - E;
1427
+ const E = g.clientX - T.current.x, j = g.clientY - T.current.y;
1428
+ let O = T.current.top + j, w = T.current.right - E;
1429
1429
  const y = 10;
1430
- O = Math.max(y, Math.min(window.innerHeight - T.current.height - y, O)), w = Math.max(y, Math.min(window.innerWidth - T.current.width - y, w)), se({ top: O, right: w });
1430
+ O = Math.max(y, Math.min(window.innerHeight - T.current.height - y, O)), w = Math.max(y, Math.min(window.innerWidth - T.current.width - y, w)), ae({ top: O, right: w });
1431
1431
  }
1432
1432
  if (he && X.current) {
1433
- const E = g.clientX - X.current.x, R = g.clientY - X.current.y;
1434
- let O = X.current.bottom - R, w = X.current.right - E;
1433
+ const E = g.clientX - X.current.x, j = g.clientY - X.current.y;
1434
+ let O = X.current.bottom - j, w = X.current.right - E;
1435
1435
  const y = 10;
1436
1436
  O = Math.max(y, Math.min(window.innerHeight - X.current.height - y, O)), w = Math.max(y, Math.min(window.innerWidth - X.current.width - y, w)), $e({ bottom: O, right: w });
1437
1437
  }
@@ -1442,49 +1442,49 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1442
1442
  window.removeEventListener("mousemove", l), window.removeEventListener("mouseup", h);
1443
1443
  };
1444
1444
  }, [Y, he, b, H]);
1445
- const [Ze, Me] = S(null), [Ke, Qe] = S(""), [Vn, Tn] = S({}), ge = ue(null), xe = ue(null), oe = je(() => {
1445
+ const [Ze, Me] = S(null), [Ke, Qe] = S(""), [Vn, Tn] = S({}), ge = ue(null), xe = ue(null), oe = Re(() => {
1446
1446
  xe.current || (xe.current = requestAnimationFrame(() => {
1447
1447
  const l = /* @__PURE__ */ new Map(), h = Array.isArray(V) ? V : [], g = new Set(h.map((y) => y._id));
1448
1448
  document.querySelectorAll(`[${U}]`).forEach((y) => {
1449
- const j = y.getAttribute(U);
1450
- j && !g.has(j) && y.removeAttribute(U);
1449
+ const A = y.getAttribute(U);
1450
+ A && !g.has(A) && y.removeAttribute(U);
1451
1451
  });
1452
- const R = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((y) => En(y) && re(y)), O = !!R;
1452
+ const j = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((y) => En(y) && re(y)), O = !!j;
1453
1453
  V.forEach((y) => {
1454
1454
  if (!y.reference) return;
1455
- const j = Rn(y.reference, y._id);
1456
- if (!j || !re(j)) return;
1455
+ const A = jn(y.reference, y._id);
1456
+ if (!A || !re(A)) return;
1457
1457
  const J = !!y.reference.metadata?.isModal;
1458
1458
  let W = !1;
1459
- if (O ? W = R.contains(j) : W = !J, !W) return;
1460
- const C = j.getAttribute(U);
1459
+ if (O ? W = j.contains(A) : W = !J, !W) return;
1460
+ const C = A.getAttribute(U);
1461
1461
  C !== y._id && (document.querySelectorAll(`[${U}="${y._id}"]`).forEach((G) => {
1462
1462
  G.removeAttribute(U);
1463
- }), C || j.setAttribute(U, y._id)), l.has(j) || l.set(j, []), l.get(j).push(y);
1463
+ }), C || A.setAttribute(U, y._id)), l.has(A) || l.set(A, []), l.get(A).push(y);
1464
1464
  });
1465
1465
  const w = [];
1466
- l.forEach((y, j) => {
1467
- const J = j.getBoundingClientRect(), W = J.left + J.width / 2, C = J.top + J.height / 2;
1466
+ l.forEach((y, A) => {
1467
+ const J = A.getBoundingClientRect(), W = J.left + J.width / 2, C = J.top + J.height / 2;
1468
1468
  if (W >= 0 && W <= window.innerWidth && C >= 0 && C <= window.innerHeight) {
1469
1469
  const G = document.elementFromPoint(W, C);
1470
- if (G && !j.contains(G) && !ge.current?.contains(G))
1470
+ if (G && !A.contains(G) && !ge.current?.contains(G))
1471
1471
  return;
1472
1472
  }
1473
1473
  w.push({
1474
1474
  id: y[0]._id,
1475
1475
  // Group identified by its primary annotation
1476
- element: j,
1476
+ element: A,
1477
1477
  rect: J,
1478
1478
  annotations: y.sort((G, ie) => new Date(ie.timestamp || ie.createdAt).getTime() - new Date(G.timestamp || G.createdAt).getTime()),
1479
1479
  isModal: !!y[0].reference?.metadata?.isModal
1480
1480
  });
1481
1481
  }), x(w), xe.current = null;
1482
1482
  }));
1483
- }, [V]), te = je(async () => {
1483
+ }, [V]), te = Re(async () => {
1484
1484
  if (n) {
1485
- ae(!0);
1485
+ se(!0);
1486
1486
  try {
1487
- const l = await fetch(`${a}/api/annotations`, {
1487
+ const l = await fetch(`${s}/api/annotations`, {
1488
1488
  headers: { "x-api-key": n }
1489
1489
  });
1490
1490
  if (l.ok) {
@@ -1493,16 +1493,16 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1493
1493
  console.error("Expected annotations array, got:", typeof g), Ce([]);
1494
1494
  return;
1495
1495
  }
1496
- const E = g.reduce((R, O) => R.find((y) => y._id === O._id) ? R : R.concat([O]), []);
1496
+ const E = g.reduce((j, O) => j.find((y) => y._id === O._id) ? j : j.concat([O]), []);
1497
1497
  Ce(E);
1498
1498
  }
1499
1499
  } catch (l) {
1500
1500
  console.error("Failed to fetch annotations", l);
1501
1501
  } finally {
1502
- ae(!1);
1502
+ se(!1);
1503
1503
  }
1504
1504
  }
1505
- }, [n, a]);
1505
+ }, [n, s]);
1506
1506
  K(() => {
1507
1507
  N && V.length === 0 && !pe && q(!1);
1508
1508
  }, [N, V.length, pe]), K(() => {
@@ -1526,7 +1526,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1526
1526
  }, [te]), K(() => {
1527
1527
  ge.current = document.getElementById("viewgate-shadow-host");
1528
1528
  }, []);
1529
- const Ne = je((l) => {
1529
+ const Ne = Re((l) => {
1530
1530
  if (!i || f) return;
1531
1531
  const h = xt(l.clientX, l.clientY);
1532
1532
  if (!h || ge.current?.contains(h) || h.closest(".vg-no-capture")) {
@@ -1548,36 +1548,29 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1548
1548
  }
1549
1549
  }
1550
1550
  });
1551
- }, [i, f]), Ie = je(async (l) => {
1551
+ }, [i, f]), Ie = Re(async (l) => {
1552
1552
  if (!i || f) return;
1553
1553
  const h = xt(l.clientX, l.clientY);
1554
1554
  if (!(!h || ge.current?.contains(h) || h.closest(".vg-no-capture")) && p) {
1555
1555
  l.preventDefault(), l.stopPropagation(), Se(!0);
1556
1556
  try {
1557
- const R = await fn(document.body, {
1557
+ const j = await fn(document.body, {
1558
1558
  pixelRatio: 2,
1559
1559
  cacheBust: !0,
1560
1560
  width: window.innerWidth,
1561
1561
  height: window.innerHeight,
1562
1562
  backgroundColor: "#ffffff",
1563
- filter: (y) => {
1564
- const j = y;
1565
- return !(ge.current?.contains(j) || j.id === "viewgate-ui" || j.classList?.contains("vg-no-capture"));
1566
- }
1567
- }), O = await bn(R, p.rect, 32, 2), w = {
1568
- ...p.semanticReference,
1569
- metadata: {
1570
- ...p.semanticReference.metadata,
1571
- elementScreenshot: O
1563
+ filter: (w) => {
1564
+ const y = w;
1565
+ return !(ge.current?.contains(y) || y.id === "viewgate-ui" || y.classList?.contains("vg-no-capture"));
1572
1566
  }
1573
- };
1574
- A({
1567
+ }), O = await vn(j, p.rect, 32, 2);
1568
+ R({
1575
1569
  ...p,
1576
- visualPreview: O,
1577
- semanticReference: w
1570
+ visualPreview: O
1578
1571
  });
1579
1572
  } catch (g) {
1580
- console.error("Failed to capture high-fidelity preview:", g), A(p);
1573
+ console.error("Failed to capture high-fidelity preview:", g), R(p);
1581
1574
  } finally {
1582
1575
  Se(!1), m(null);
1583
1576
  }
@@ -1586,7 +1579,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1586
1579
  K(() => {
1587
1580
  const l = (h) => {
1588
1581
  if (h.key === "Escape") {
1589
- f ? A(null) : N ? q(!1) : i && u(!1);
1582
+ f ? R(null) : N ? q(!1) : i && u(!1);
1590
1583
  return;
1591
1584
  }
1592
1585
  const E = (() => {
@@ -1608,7 +1601,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1608
1601
  ne(!0);
1609
1602
  const { semanticReference: l } = f, [h, g] = (l.source || "").split(":"), E = g || "0";
1610
1603
  try {
1611
- if (!(await fetch(`${a}/api/annotations`, {
1604
+ if (!(await fetch(`${s}/api/annotations`, {
1612
1605
  method: "POST",
1613
1606
  headers: {
1614
1607
  "Content-Type": "application/json",
@@ -1631,14 +1624,14 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1631
1624
  }
1632
1625
  })
1633
1626
  })).ok) throw new Error("Backend failed");
1634
- e(r.success, "success"), A(null), L(""), u(!1), te();
1635
- } catch (R) {
1636
- console.error(R), e(r.error, "error");
1627
+ e(r.success, "success"), R(null), L(""), u(!1), te();
1628
+ } catch (j) {
1629
+ console.error(j), e(r.error, "error");
1637
1630
  } finally {
1638
1631
  ne(!1);
1639
1632
  }
1640
1633
  };
1641
- return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1283", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1284", className: "vg-no-capture", children: [
1634
+ return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1275", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1276", className: "vg-no-capture", children: [
1642
1635
  !c && /* @__PURE__ */ o.jsxs(
1643
1636
  "div",
1644
1637
  {
@@ -1680,7 +1673,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1680
1673
  onMouseLeave: (l) => {
1681
1674
  l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", l.currentTarget.style.color = "#1e293b";
1682
1675
  },
1683
- children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1328", size: 14 })
1676
+ children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1320", size: 14 })
1684
1677
  }
1685
1678
  ),
1686
1679
  /* @__PURE__ */ o.jsx(
@@ -1691,7 +1684,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1691
1684
  title: r.exitConfirmTitle || "Close ViewGate?",
1692
1685
  message: r.exitConfirmMessage || "Are you sure you want to close ViewGate?",
1693
1686
  type: "danger",
1694
- onConfirm: () => s()
1687
+ onConfirm: () => a()
1695
1688
  });
1696
1689
  },
1697
1690
  title: "Cerrar ViewGate",
@@ -1716,7 +1709,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1716
1709
  onMouseLeave: (l) => {
1717
1710
  l.currentTarget.style.transform = "scale(1) rotate(0deg)", l.currentTarget.style.color = "#64748b", l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
1718
1711
  },
1719
- children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1368", size: 20, strokeWidth: 2.5 })
1712
+ children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1360", size: 20, strokeWidth: 2.5 })
1720
1713
  }
1721
1714
  )
1722
1715
  ]
@@ -1725,7 +1718,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1725
1718
  /* @__PURE__ */ o.jsxs(
1726
1719
  "div",
1727
1720
  {
1728
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1374",
1721
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1366",
1729
1722
  style: {
1730
1723
  position: "fixed",
1731
1724
  bottom: `${H.bottom}px`,
@@ -1766,10 +1759,10 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1766
1759
  l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", l.currentTarget.style.color = "#1e293b";
1767
1760
  },
1768
1761
  className: "vg-animate-slide-up",
1769
- children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1417", size: 16 })
1762
+ children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1409", size: 16 })
1770
1763
  }
1771
1764
  ),
1772
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1420", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
1765
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1412", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
1773
1766
  /* @__PURE__ */ o.jsx(
1774
1767
  "button",
1775
1768
  {
@@ -1779,9 +1772,9 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1779
1772
  padding: "12px 24px",
1780
1773
  background: i ? "#ef4444" : void 0
1781
1774
  },
1782
- children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1429", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1783
- i ? /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1430", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1430", size: 20, className: "vg-animate-pop" }),
1784
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1431", children: i ? r.exitMode : r.enterMode })
1775
+ children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1421", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1776
+ i ? /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1422", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1422", size: 20, className: "vg-animate-pop" }),
1777
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1423", children: i ? r.exitMode : r.enterMode })
1785
1778
  ] })
1786
1779
  }
1787
1780
  ),
@@ -1789,13 +1782,13 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1789
1782
  "button",
1790
1783
  {
1791
1784
  onClick: () => {
1792
- q(!N), u(!1), A(null);
1785
+ q(!N), u(!1), R(null);
1793
1786
  },
1794
1787
  className: "vg-button-ghost vg-animate-pop",
1795
1788
  style: { animationDelay: "0.1s" },
1796
1789
  children: [
1797
- /* @__PURE__ */ o.jsx(tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1444", size: 20 }),
1798
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1445", children: r.viewComments })
1790
+ /* @__PURE__ */ o.jsx(tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1436", size: 20 }),
1791
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1437", children: r.viewComments })
1799
1792
  ]
1800
1793
  }
1801
1794
  )
@@ -1803,7 +1796,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1803
1796
  ]
1804
1797
  }
1805
1798
  ),
1806
- be && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1453", style: {
1799
+ be && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1445", style: {
1807
1800
  position: "fixed",
1808
1801
  top: 0,
1809
1802
  left: 0,
@@ -1816,14 +1809,14 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1816
1809
  justifyContent: "center",
1817
1810
  zIndex: De + 1,
1818
1811
  cursor: "wait"
1819
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1459", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1820
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1460", className: "vg-spinner" }),
1821
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1461", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
1812
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1451", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1813
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1452", className: "vg-spinner" }),
1814
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1453", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
1822
1815
  ] }) }),
1823
1816
  i && !f && /* @__PURE__ */ o.jsx(
1824
1817
  "div",
1825
1818
  {
1826
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1468",
1819
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1460",
1827
1820
  className: "vg-backdrop-blur",
1828
1821
  style: {
1829
1822
  opacity: 1,
@@ -1842,7 +1835,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1842
1835
  i && p && !f && !be && /* @__PURE__ */ o.jsx(
1843
1836
  "div",
1844
1837
  {
1845
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1487",
1838
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1479",
1846
1839
  className: "vg-selection-pulse",
1847
1840
  style: {
1848
1841
  top: p.rect.top - 4,
@@ -1854,17 +1847,17 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1854
1847
  children: /* @__PURE__ */ o.jsxs(
1855
1848
  "div",
1856
1849
  {
1857
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1497",
1850
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1489",
1858
1851
  className: "vg-selection-label",
1859
1852
  style: {
1860
1853
  ...p.rect.top < 60 ? p.rect.bottom > window.innerHeight - 60 ? { top: "8px", bottom: "auto" } : { top: "100%", marginTop: "8px", bottom: "auto" } : { top: "-40px", bottom: "auto" },
1861
1854
  ...p.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
1862
1855
  },
1863
1856
  children: [
1864
- /* @__PURE__ */ o.jsx(lr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1513", size: 16 }),
1865
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1514", style: { display: "flex", flexDirection: "column" }, children: [
1866
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1515", style: { fontWeight: 700 }, children: r.selectToComment }),
1867
- /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1516", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
1857
+ /* @__PURE__ */ o.jsx(lr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1505", size: 16 }),
1858
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1506", style: { display: "flex", flexDirection: "column" }, children: [
1859
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1507", style: { fontWeight: 700 }, children: r.selectToComment }),
1860
+ /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1508", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
1868
1861
  Math.round(p.rect.width),
1869
1862
  " × ",
1870
1863
  Math.round(p.rect.height)
@@ -1875,7 +1868,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1875
1868
  )
1876
1869
  }
1877
1870
  ),
1878
- f && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1526", className: "vg-animate-fade", style: {
1871
+ f && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1518", className: "vg-animate-fade", style: {
1879
1872
  position: "fixed",
1880
1873
  top: 0,
1881
1874
  left: 0,
@@ -1887,13 +1880,13 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1887
1880
  alignItems: "center",
1888
1881
  justifyContent: "center",
1889
1882
  zIndex: Fe
1890
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1531", className: "vg-glassmorphism vg-animate-slide", style: {
1883
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1523", className: "vg-glassmorphism vg-animate-slide", style: {
1891
1884
  padding: "40px",
1892
1885
  width: "500px",
1893
1886
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
1894
1887
  }, children: [
1895
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1535", style: { textAlign: "center", marginBottom: "32px" }, children: [
1896
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1536", style: {
1888
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1527", style: { textAlign: "center", marginBottom: "32px" }, children: [
1889
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1528", style: {
1897
1890
  width: "48px",
1898
1891
  height: "48px",
1899
1892
  background: "var(--vg-primary-gradient)",
@@ -1904,11 +1897,11 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1904
1897
  margin: "0 auto 16px",
1905
1898
  color: "white",
1906
1899
  boxShadow: "0 8px 16px rgba(99, 102, 241, 0.3)"
1907
- }, children: /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1541", size: 24 }) }),
1908
- /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1543", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1909
- /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1544", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
1900
+ }, children: /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1533", size: 24 }) }),
1901
+ /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1535", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1902
+ /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1536", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
1910
1903
  ] }),
1911
- f.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1548", style: {
1904
+ f.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1540", style: {
1912
1905
  marginBottom: "24px",
1913
1906
  borderRadius: "12px",
1914
1907
  overflow: "hidden",
@@ -1936,11 +1929,11 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1936
1929
  style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
1937
1930
  }
1938
1931
  ),
1939
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1575", style: { display: "flex", gap: "12px" }, children: [
1932
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1567", style: { display: "flex", gap: "12px" }, children: [
1940
1933
  /* @__PURE__ */ o.jsx(
1941
1934
  "button",
1942
1935
  {
1943
- onClick: () => !B && A(null),
1936
+ onClick: () => !B && R(null),
1944
1937
  className: "vg-button-ghost",
1945
1938
  disabled: B,
1946
1939
  style: { flex: 1, padding: "12px" },
@@ -1954,15 +1947,15 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1954
1947
  className: "vg-button-primary",
1955
1948
  disabled: B || !P.trim(),
1956
1949
  style: { flex: 2 },
1957
- children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1590", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1958
- B ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1591", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(hr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1591", size: 18 }),
1959
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1592", children: B ? r.submitting : r.sendFeedback || "Send Comment" })
1950
+ children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1582", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1951
+ B ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1583", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(hr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1583", size: 18 }),
1952
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1584", children: B ? r.submitting : r.sendFeedback || "Send Comment" })
1960
1953
  ] })
1961
1954
  }
1962
1955
  )
1963
1956
  ] })
1964
1957
  ] }) }),
1965
- N && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1601", className: "vg-animate-fade", style: {
1958
+ N && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1593", className: "vg-animate-fade", style: {
1966
1959
  position: "fixed",
1967
1960
  top: 0,
1968
1961
  left: 0,
@@ -1974,23 +1967,23 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
1974
1967
  alignItems: "center",
1975
1968
  justifyContent: "center",
1976
1969
  zIndex: Fe
1977
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1606", className: "vg-glassmorphism vg-animate-slide", style: {
1970
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1598", className: "vg-glassmorphism vg-animate-slide", style: {
1978
1971
  padding: "32px",
1979
1972
  width: "650px",
1980
1973
  maxHeight: "85vh",
1981
1974
  display: "flex",
1982
1975
  flexDirection: "column"
1983
1976
  }, children: [
1984
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1610", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1985
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1611", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1986
- /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1612", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: I ? r.commentDetails : r.annotations }),
1987
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1615", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: v.length })
1977
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1602", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1978
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1603", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1979
+ /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1604", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: I ? r.commentDetails : r.annotations }),
1980
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1607", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: v.length })
1988
1981
  ] }),
1989
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1619", style: { display: "flex", gap: "8px" }, children: [
1982
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1611", style: { display: "flex", gap: "8px" }, children: [
1990
1983
  I && /* @__PURE__ */ o.jsx(
1991
1984
  "button",
1992
1985
  {
1993
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1621",
1986
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1613",
1994
1987
  className: "vg-button-ghost",
1995
1988
  style: { padding: "6px 14px", fontSize: "12px" },
1996
1989
  onClick: () => Z(null),
@@ -2000,13 +1993,13 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2000
1993
  /* @__PURE__ */ o.jsx(
2001
1994
  "button",
2002
1995
  {
2003
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1629",
1996
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1621",
2004
1997
  className: "vg-button-ghost",
2005
1998
  style: { padding: "8px", borderRadius: "50%" },
2006
1999
  onClick: () => {
2007
2000
  q(!1), Z(null);
2008
2001
  },
2009
- children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1634", size: 20 })
2002
+ children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1626", size: 20 })
2010
2003
  }
2011
2004
  )
2012
2005
  ] })
@@ -2014,13 +2007,13 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2014
2007
  /* @__PURE__ */ o.jsx(
2015
2008
  "div",
2016
2009
  {
2017
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1639",
2010
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1631",
2018
2011
  style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" },
2019
2012
  className: "vg-custom-scrollbar",
2020
- children: pe ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1645", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1646", className: "vg-spinner" }) }) : v.map((l, h) => /* @__PURE__ */ o.jsxs(
2013
+ children: pe ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1637", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1638", className: "vg-spinner" }) }) : v.map((l, h) => /* @__PURE__ */ o.jsxs(
2021
2014
  "div",
2022
2015
  {
2023
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1650",
2016
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1642",
2024
2017
  className: "vg-glassmorphism vg-animate-slide",
2025
2018
  style: {
2026
2019
  padding: "20px",
@@ -2030,13 +2023,13 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2030
2023
  animationDelay: `${h * 0.05}s`
2031
2024
  },
2032
2025
  children: [
2033
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1661", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: [
2034
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1662", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
2035
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1663", style: { fontSize: "12px", color: "#000000", fontWeight: 600 }, children: ht(l.timestamp || l.createdAt || l.reference?.timestamp, t) }),
2026
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1653", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: [
2027
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1654", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
2028
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1655", style: { fontSize: "12px", color: "#000000", fontWeight: 600 }, children: ht(l.timestamp || l.createdAt || l.reference?.timestamp, t) }),
2036
2029
  l.url && /* @__PURE__ */ o.jsx(
2037
2030
  gt,
2038
2031
  {
2039
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1667",
2032
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1659",
2040
2033
  url: l.url,
2041
2034
  onHover: fe,
2042
2035
  style: {
@@ -2054,12 +2047,12 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2054
2047
  }
2055
2048
  )
2056
2049
  ] }),
2057
- l.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1686", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a", border: "1px solid #dcfce7" }, children: [
2058
- /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1687", size: 14 }),
2050
+ l.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1678", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a", border: "1px solid #dcfce7" }, children: [
2051
+ /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1679", size: 14 }),
2059
2052
  " ",
2060
2053
  r.readyForReview
2061
- ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1690", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c", border: "1px solid #ffedd5" }, children: [
2062
- /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1691", size: 14 }),
2054
+ ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1682", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c", border: "1px solid #ffedd5" }, children: [
2055
+ /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1683", size: 14 }),
2063
2056
  " ",
2064
2057
  r.pending
2065
2058
  ] })
@@ -2074,17 +2067,17 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2074
2067
  autoFocus: !0,
2075
2068
  style: { marginBottom: "16px" }
2076
2069
  }
2077
- ) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1706", className: "vg-text-wrap", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: l.message }),
2078
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1709", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: Ze === l._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2070
+ ) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1698", className: "vg-text-wrap", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: l.message }),
2071
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1701", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: Ze === l._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2079
2072
  /* @__PURE__ */ o.jsx(
2080
2073
  "button",
2081
2074
  {
2082
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1712",
2075
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1704",
2083
2076
  className: "vg-button-primary vg-animate-pop",
2084
2077
  style: { padding: "8px 16px", fontSize: "13px" },
2085
2078
  onClick: async () => {
2086
2079
  try {
2087
- (await fetch(`${a}/api/annotations/${l._id}`, {
2080
+ (await fetch(`${s}/api/annotations/${l._id}`, {
2088
2081
  method: "PATCH",
2089
2082
  headers: { "Content-Type": "application/json", "x-api-key": n },
2090
2083
  body: JSON.stringify({ message: Ke })
@@ -2096,19 +2089,19 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2096
2089
  children: r.save
2097
2090
  }
2098
2091
  ),
2099
- /* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1734", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => Me(null), children: r.cancel })
2092
+ /* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1726", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => Me(null), children: r.cancel })
2100
2093
  ] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2101
2094
  /* @__PURE__ */ o.jsxs(
2102
2095
  "button",
2103
2096
  {
2104
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1738",
2097
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1730",
2105
2098
  className: "vg-button-ghost vg-animate-pop",
2106
2099
  style: { padding: "8px 16px", fontSize: "13px" },
2107
2100
  onClick: () => {
2108
2101
  Me(l._id), Qe(l.message);
2109
2102
  },
2110
2103
  children: [
2111
- /* @__PURE__ */ o.jsx(ur, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1746", size: 14 }),
2104
+ /* @__PURE__ */ o.jsx(ur, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1738", size: 14 }),
2112
2105
  " ",
2113
2106
  r.edit
2114
2107
  ]
@@ -2117,14 +2110,14 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2117
2110
  /* @__PURE__ */ o.jsxs(
2118
2111
  "button",
2119
2112
  {
2120
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1748",
2113
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1740",
2121
2114
  className: "vg-button-ghost vg-animate-pop",
2122
2115
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.05s" },
2123
2116
  onClick: () => {
2124
2117
  l.url && (window.location.href = l.url);
2125
2118
  },
2126
2119
  children: [
2127
- /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1755", size: 14 }),
2120
+ /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1747", size: 14 }),
2128
2121
  " ",
2129
2122
  r.review
2130
2123
  ]
@@ -2133,7 +2126,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2133
2126
  l.status === "pending" ? /* @__PURE__ */ o.jsxs(
2134
2127
  "button",
2135
2128
  {
2136
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1758",
2129
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1750",
2137
2130
  className: "vg-button-primary vg-animate-pop",
2138
2131
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
2139
2132
  onClick: () => {
@@ -2143,7 +2136,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2143
2136
  type: "success",
2144
2137
  onConfirm: async () => {
2145
2138
  try {
2146
- (await fetch(`${a}/api/annotations/${l._id}`, {
2139
+ (await fetch(`${s}/api/annotations/${l._id}`, {
2147
2140
  method: "PATCH",
2148
2141
  headers: { "Content-Type": "application/json", "x-api-key": n },
2149
2142
  body: JSON.stringify({ status: "ready_for_review" })
@@ -2157,7 +2150,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2157
2150
  });
2158
2151
  },
2159
2152
  children: [
2160
- /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1786", size: 14 }),
2153
+ /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1778", size: 14 }),
2161
2154
  " ",
2162
2155
  r.markReady
2163
2156
  ]
@@ -2165,7 +2158,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2165
2158
  ) : /* @__PURE__ */ o.jsxs(
2166
2159
  "button",
2167
2160
  {
2168
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1789",
2161
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1781",
2169
2162
  className: "vg-button-ghost vg-animate-pop",
2170
2163
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
2171
2164
  onClick: () => {
@@ -2175,7 +2168,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2175
2168
  type: "success",
2176
2169
  onConfirm: async () => {
2177
2170
  try {
2178
- (await fetch(`${a}/api/annotations/${l._id}`, {
2171
+ (await fetch(`${s}/api/annotations/${l._id}`, {
2179
2172
  method: "PATCH",
2180
2173
  headers: { "Content-Type": "application/json", "x-api-key": n },
2181
2174
  body: JSON.stringify({ status: "pending" })
@@ -2189,7 +2182,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2189
2182
  });
2190
2183
  },
2191
2184
  children: [
2192
- /* @__PURE__ */ o.jsx(mr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1817", size: 14 }),
2185
+ /* @__PURE__ */ o.jsx(mr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1809", size: 14 }),
2193
2186
  " ",
2194
2187
  r.reopen
2195
2188
  ]
@@ -2198,7 +2191,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2198
2191
  /* @__PURE__ */ o.jsx(
2199
2192
  "button",
2200
2193
  {
2201
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1820",
2194
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1812",
2202
2195
  className: "vg-button-ghost vg-animate-pop",
2203
2196
  style: { padding: "8px 12px", color: "#ef4444", borderColor: "#fee2e2", animationDelay: "0.15s" },
2204
2197
  onClick: () => {
@@ -2208,12 +2201,12 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2208
2201
  type: "danger",
2209
2202
  onConfirm: async () => {
2210
2203
  try {
2211
- if ((await fetch(`${a}/api/annotations/${l._id}`, {
2204
+ if ((await fetch(`${s}/api/annotations/${l._id}`, {
2212
2205
  method: "DELETE",
2213
2206
  headers: { "x-api-key": n }
2214
2207
  })).ok) {
2215
2208
  if (I === l._id) {
2216
- const E = v.find((R) => R._id !== l._id);
2209
+ const E = v.find((j) => j._id !== l._id);
2217
2210
  E ? Z(E._id) : (Z(null), q(!1));
2218
2211
  }
2219
2212
  te(), e(r.deleteSuccess, "success");
@@ -2226,7 +2219,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2226
2219
  }
2227
2220
  });
2228
2221
  },
2229
- children: /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1858", size: 16 })
2222
+ children: /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1850", size: 16 })
2230
2223
  }
2231
2224
  )
2232
2225
  ] }) })
@@ -2238,7 +2231,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2238
2231
  I || "all"
2239
2232
  )
2240
2233
  ] }) }),
2241
- z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1874", className: "vg-animate-fade", style: {
2234
+ z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1866", className: "vg-animate-fade", style: {
2242
2235
  position: "fixed",
2243
2236
  top: 0,
2244
2237
  left: 0,
@@ -2250,14 +2243,14 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2250
2243
  alignItems: "center",
2251
2244
  justifyContent: "center",
2252
2245
  zIndex: Fe + 100
2253
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1879", className: "vg-glassmorphism vg-animate-slide", style: {
2246
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1871", className: "vg-glassmorphism vg-animate-slide", style: {
2254
2247
  padding: "40px",
2255
2248
  width: "420px",
2256
2249
  textAlign: "center",
2257
2250
  border: "1px solid rgba(255, 255, 255, 0.1)",
2258
2251
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
2259
2252
  }, children: [
2260
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1886", style: {
2253
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1878", style: {
2261
2254
  width: "64px",
2262
2255
  height: "64px",
2263
2256
  background: z.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
@@ -2268,14 +2261,14 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2268
2261
  margin: "0 auto 24px",
2269
2262
  color: z.type === "danger" ? "#ef4444" : "#6366f1",
2270
2263
  transform: "rotate(-5deg)"
2271
- }, children: z.type === "danger" ? /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1895", size: 32 }) : /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1895", size: 32 }) }),
2272
- /* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1897", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: z.title }),
2273
- /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1898", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: z.message }),
2274
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1899", style: { display: "flex", gap: "16px" }, children: [
2264
+ }, children: z.type === "danger" ? /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1887", size: 32 }) : /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1887", size: 32 }) }),
2265
+ /* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1889", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: z.title }),
2266
+ /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1890", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: z.message }),
2267
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1891", style: { display: "flex", gap: "16px" }, children: [
2275
2268
  /* @__PURE__ */ o.jsx(
2276
2269
  "button",
2277
2270
  {
2278
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1900",
2271
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1892",
2279
2272
  className: "vg-button-ghost",
2280
2273
  style: { flex: 1, height: "44px" },
2281
2274
  onClick: () => !ee && D(null),
@@ -2286,7 +2279,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2286
2279
  /* @__PURE__ */ o.jsx(
2287
2280
  "button",
2288
2281
  {
2289
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1908",
2282
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1900",
2290
2283
  className: "vg-button-primary",
2291
2284
  style: {
2292
2285
  flex: 1,
@@ -2309,13 +2302,13 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2309
2302
  me(!1);
2310
2303
  }
2311
2304
  },
2312
- children: ee ? /* @__PURE__ */ o.jsx(or, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1933", size: 18, className: "vg-animate-spin" }) : r.yes
2305
+ children: ee ? /* @__PURE__ */ o.jsx(or, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1925", size: 18, className: "vg-animate-spin" }) : r.yes
2313
2306
  }
2314
2307
  )
2315
2308
  ] })
2316
2309
  ] }) }),
2317
2310
  !i && !N && d.map((l, h) => {
2318
- const { rect: g, annotations: E, isModal: R } = l, O = E[0], w = E.length, y = E.some((C) => C.status === "ready_for_review"), j = E.some((C) => C.status !== "ready_for_review"), J = y && j, W = y && !j;
2311
+ const { rect: g, annotations: E, isModal: j } = l, O = E[0], w = E.length, y = E.some((C) => C.status === "ready_for_review"), A = E.some((C) => C.status !== "ready_for_review"), J = y && A, W = y && !A;
2319
2312
  return /* @__PURE__ */ o.jsxs(
2320
2313
  "div",
2321
2314
  {
@@ -2331,7 +2324,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2331
2324
  zIndex: xn
2332
2325
  },
2333
2326
  onMouseEnter: (C) => {
2334
- window.innerHeight - g.bottom < 250 ? Re((ie) => ({ ...ie, [l.id]: "vg-top" })) : Re((ie) => ({ ...ie, [l.id]: "" }));
2327
+ window.innerHeight - g.bottom < 250 ? je((ie) => ({ ...ie, [l.id]: "vg-top" })) : je((ie) => ({ ...ie, [l.id]: "" }));
2335
2328
  },
2336
2329
  onWheel: (C) => {
2337
2330
  const G = C.currentTarget.querySelector(".vg-tooltip-scroll");
@@ -2341,31 +2334,31 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2341
2334
  q(!0), Z(O._id);
2342
2335
  },
2343
2336
  children: [
2344
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1986", className: `vg-pin-tooltip ${ke[l.id] || ""}`, style: { padding: "16px" }, children: [
2345
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1987", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "12px" }, children: [
2346
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1988", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2347
- /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1989", size: 14, color: "#6366f1" }),
2348
- /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1990", style: { fontWeight: 800, fontSize: "13px", color: "#0f172a" }, children: [
2337
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1978", className: `vg-pin-tooltip ${ke[l.id] || ""}`, style: { padding: "16px" }, children: [
2338
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1979", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "12px" }, children: [
2339
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1980", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2340
+ /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1981", size: 14, color: "#6366f1" }),
2341
+ /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1982", style: { fontWeight: 800, fontSize: "13px", color: "#0f172a" }, children: [
2349
2342
  w,
2350
2343
  " ",
2351
2344
  w === 1 ? "Comentario" : "Comentarios"
2352
2345
  ] })
2353
2346
  ] }),
2354
- R && /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1995", className: "vg-badge", style: { fontSize: "10px", background: "#fef3c7", color: "#92400e", border: "none" }, children: "MODAL" })
2347
+ j && /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1987", className: "vg-badge", style: { fontSize: "10px", background: "#fef3c7", color: "#92400e", border: "none" }, children: "MODAL" })
2355
2348
  ] }),
2356
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1998", className: "vg-tooltip-scroll", style: { maxHeight: "180px", overflowY: "auto" }, children: E.map((C, G) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2000", style: {
2349
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1990", className: "vg-tooltip-scroll", style: { maxHeight: "180px", overflowY: "auto" }, children: E.map((C, G) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1992", style: {
2357
2350
  padding: "10px 0",
2358
2351
  borderTop: G === 0 ? "none" : "1px solid #f1f5f9",
2359
2352
  display: "flex",
2360
2353
  gap: "12px",
2361
2354
  alignItems: "flex-start"
2362
2355
  }, children: [
2363
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2007", style: { flex: 1, display: "flex", flexDirection: "column", gap: "4px" }, children: [
2364
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2008", style: { fontSize: "10px", fontWeight: 600, color: "#64748b" }, children: ht(C.timestamp || C.createdAt, t) }),
2356
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1999", style: { flex: 1, display: "flex", flexDirection: "column", gap: "4px" }, children: [
2357
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2000", style: { fontSize: "10px", fontWeight: 600, color: "#64748b" }, children: ht(C.timestamp || C.createdAt, t) }),
2365
2358
  C.url && /* @__PURE__ */ o.jsx(
2366
2359
  gt,
2367
2360
  {
2368
- "data-source-path": "/src/components/ViewGateOverlay.tsx:2012",
2361
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:2004",
2369
2362
  url: C.url,
2370
2363
  onHover: fe,
2371
2364
  style: {
@@ -2383,9 +2376,9 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2383
2376
  tooltipStyle: { fontSize: "9px" }
2384
2377
  }
2385
2378
  ),
2386
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2030", className: "vg-line-clamp-2", style: { fontSize: "13px", color: "#1e293b", lineHeight: 1.4, fontWeight: 500 }, children: C.message.length > 100 ? C.message.slice(0, 97) + "..." : C.message })
2379
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2022", className: "vg-line-clamp-2", style: { fontSize: "13px", color: "#1e293b", lineHeight: 1.4, fontWeight: 500 }, children: C.message.length > 100 ? C.message.slice(0, 97) + "..." : C.message })
2387
2380
  ] }),
2388
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2034", style: { flexShrink: 0, marginTop: "2px" }, children: C.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2036", style: {
2381
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2026", style: { flexShrink: 0, marginTop: "2px" }, children: C.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2028", style: {
2389
2382
  display: "flex",
2390
2383
  alignItems: "center",
2391
2384
  gap: "4px",
@@ -2398,9 +2391,9 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2398
2391
  textTransform: "uppercase",
2399
2392
  border: "1px solid #dcfce7"
2400
2393
  }, children: [
2401
- /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2049", size: 10 }),
2394
+ /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2041", size: 10 }),
2402
2395
  r.readyForReview
2403
- ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2053", style: {
2396
+ ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2045", style: {
2404
2397
  display: "flex",
2405
2398
  alignItems: "center",
2406
2399
  gap: "4px",
@@ -2413,14 +2406,14 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2413
2406
  textTransform: "uppercase",
2414
2407
  border: "1px solid #ffedd5"
2415
2408
  }, children: [
2416
- /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2066", size: 10 }),
2409
+ /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2058", size: 10 }),
2417
2410
  r.pending
2418
2411
  ] }) })
2419
2412
  ] }, C._id)) })
2420
2413
  ] }),
2421
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2076", className: `vg-formal-pin ${W ? "ready" : J ? "mixed" : ""} ${R ? "modal-variant" : ""}`, style: { position: "relative" }, children: [
2422
- W ? /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2077", size: 18 }) : R ? /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2077", size: 16 }) : /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2077", size: 16 }),
2423
- w > 1 && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2080", className: "vg-pin-badge vg-animate-pop", children: w })
2414
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2068", className: `vg-formal-pin ${W ? "ready" : J ? "mixed" : ""} ${j ? "modal-variant" : ""}`, style: { position: "relative" }, children: [
2415
+ W ? /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2069", size: 18 }) : j ? /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2069", size: 16 }) : /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2069", size: 16 }),
2416
+ w > 1 && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2072", className: "vg-pin-badge vg-animate-pop", children: w })
2424
2417
  ] })
2425
2418
  ]
2426
2419
  },
@@ -2430,7 +2423,7 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2430
2423
  /* @__PURE__ */ o.jsx(
2431
2424
  "div",
2432
2425
  {
2433
- "data-source-path": "/src/components/ViewGateOverlay.tsx:2089",
2426
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:2081",
2434
2427
  className: `vg-url-tooltip ${F ? "visible" : ""} ${F?.direction === "bottom" ? "vg-bottom" : "vg-top"}`,
2435
2428
  style: {
2436
2429
  transform: F ? `translate(-50%, ${F.direction === "top" ? "-110%" : "10%"})` : "translate(-50%, 0)",
@@ -2444,11 +2437,11 @@ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 1
2444
2437
  };
2445
2438
  function Tt(e, t, r) {
2446
2439
  if (!t.endsWith(".tsx") && !t.endsWith(".jsx") || t.includes("node_modules")) return e;
2447
- const n = (i) => i.replace(/\\/g, "/"), a = n(t).replace(n(r), "");
2440
+ const n = (i) => i.replace(/\\/g, "/"), s = n(t).replace(n(r), "");
2448
2441
  return e.split(`
2449
2442
  `).map((i, u) => {
2450
2443
  const p = u + 1;
2451
- return i.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (m, f, A) => m.includes("data-source-path") || A === "Fragment" || A === "React.Fragment" ? m : `${f}<${A} data-source-path="${a}:${p}"`);
2444
+ return i.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (m, f, R) => m.includes("data-source-path") || R === "Fragment" || R === "React.Fragment" ? m : `${f}<${R} data-source-path="${s}:${p}"`);
2452
2445
  }).join(`
2453
2446
  `);
2454
2447
  }