viewgate-wrapper 1.10.6 → 1.10.7

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,11 +1,11 @@
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-pop-in{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08);opacity:1}to{transform:scale(1);opacity:1}}@keyframes vg-slide-up-fade{0%{transform:translateY(12px) scale(.95);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.vg-animate-pop{animation:vg-pop-in .5s cubic-bezier(.34,1.56,.64,1) forwards}.vg-animate-slide-up{animation:vg-slide-up-fade .4s cubic-bezier(.22,1,.36,1) forwards}.vg-button-primary,.vg-button-ghost,.vg-pin-container,.vg-action-bar,.vg-glassmorphism{transition:all .3s cubic-bezier(.4,0,.2,1)}.vg-animate-slide{animation:vg-slide-in .4s cubic-bezier(.22,1,.36,1) forwards}.vg-animate-fade{animation:vg-fade-in .3s ease-out forwards}.vg-toasts{position:fixed;top:24px;right:24px;display:flex;flex-direction:column;gap:12px}.vg-toast{padding:12px 20px;display:flex;align-items:center;gap:12px;min-width:300px;border-radius:12px;box-shadow:0 10px 30px #0000001a;background:#fff}.vg-toast.success{border-left:6px solid #22c55e}.vg-toast.error{border-left:6px solid #ef4444}.vg-backdrop-blur{position:fixed;top:0;left:0;width:100%;height:100%;-webkit-backdrop-filter:blur(8px) grayscale(.2);backdrop-filter:blur(8px) grayscale(.2);background:#0000001a;pointer-events:none;transition:opacity .3s ease,clip-path .2s cubic-bezier(.19,1,.22,1)}.vg-selection-pulse{position:fixed;pointer-events:none;border:2px solid var(--vg-primary);border-radius:8px;box-shadow:0 0 0 0 var(--vg-primary-glow);animation:vg-pulse 2s infinite;transition:all .2s cubic-bezier(.19,1,.22,1)}@keyframes vg-pulse{0%{box-shadow:0 0 0 0 var(--vg-primary-glow)}70%{box-shadow:0 0 0 15px #6366f100}to{box-shadow:0 0 #6366f100}}.vg-selection-label{position:absolute;top:-40px;left:0;background:var(--vg-primary-gradient);color:#fff;padding:8px 16px;border-radius:20px;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:0 4px 12px #6366f14d;display:flex;align-items:center;gap:8px}.vg-pin-container{transition:transform .2s ease}.vg-pin-container:hover{transform:scale(1.1)}.vg-formal-pin{width:32px;height:32px;border-radius:50%;background:var(--vg-primary-gradient);border:3px solid white;box-shadow:0 4px 12px #6366f166;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s ease}.vg-formal-pin.ready{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 4px 12px #10b98166}.vg-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:12px 16px;border-radius:12px;background:#fff;color:#1e293b;width:240px;font-size:13px;box-shadow:0 10px 40px #00000026;opacity:0;pointer-events:none;transition:all .2s ease;border:1px solid #e2e8f0}.vg-pin-tooltip.vg-top{top:auto;bottom:calc(100% + 12px)}.vg-pin-container:hover .vg-pin-tooltip{opacity:1;transform:translate(-50%) translateY(-5px)}.vg-action-bar{display:flex;gap:12px;padding:0;background:transparent;border:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.vg-custom-scrollbar::-webkit-scrollbar{width:6px}.vg-custom-scrollbar::-webkit-scrollbar-track{background:transparent}.vg-custom-scrollbar::-webkit-scrollbar-thumb{background:#6366f166;border-radius:10px;transition:all .2s ease}.vg-custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#6366f1b3}.vg-spinner{border:3px solid rgba(99,102,241,.1);border-top:3px solid var(--vg-primary);border-radius:50%;width:32px;height:32px;animation:vg-spin .8s linear infinite}@keyframes vg-spin{to{transform:rotate(360deg)}}.vg-animate-spin{animation:vg-spin .8s linear infinite}.vg-cursor-pointer,.vg-cursor-pointer *{cursor:pointer!important}')),document.head.appendChild(r)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import pt, { useRef as Oe, useState as k, useEffect as J, forwardRef as Ke, createElement as _e, createContext as mt, useContext as ft, useCallback as fe } from "react";
3
- import { createPortal as ht } from "react-dom";
2
+ import mt, { useRef as Oe, useState as k, useEffect as J, forwardRef as Ke, createElement as _e, createContext as ft, useContext as ht, useCallback as fe } from "react";
3
+ import { createPortal as gt } from "react-dom";
4
4
  var he = { exports: {} }, le = {};
5
- var Ne;
6
- function gt() {
7
- if (Ne) return le;
8
- Ne = 1;
5
+ var Le;
6
+ function yt() {
7
+ if (Le) return le;
8
+ Le = 1;
9
9
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
10
10
  function r(n, a, s) {
11
11
  var i = null;
@@ -25,24 +25,24 @@ function gt() {
25
25
  return le.Fragment = t, le.jsx = r, le.jsxs = r, le;
26
26
  }
27
27
  var de = {};
28
- var Le;
29
- function yt() {
30
- return Le || (Le = 1, process.env.NODE_ENV !== "production" && (function() {
28
+ var Ne;
29
+ function xt() {
30
+ return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && (function() {
31
31
  function e(c) {
32
32
  if (c == null) return null;
33
33
  if (typeof c == "function")
34
34
  return c.$$typeof === se ? null : c.displayName || c.name || null;
35
35
  if (typeof c == "string") return c;
36
36
  switch (c) {
37
- case L:
37
+ case V:
38
38
  return "Fragment";
39
- case q:
39
+ case M:
40
40
  return "Profiler";
41
- case U:
41
+ case I:
42
42
  return "StrictMode";
43
43
  case ve:
44
44
  return "Suspense";
45
- case I:
45
+ case z:
46
46
  return "SuspenseList";
47
47
  case $e:
48
48
  return "Activity";
@@ -51,16 +51,16 @@ function yt() {
51
51
  switch (typeof c.tag == "number" && console.error(
52
52
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
53
53
  ), c.$$typeof) {
54
- case V:
54
+ case R:
55
55
  return "Portal";
56
- case T:
56
+ case P:
57
57
  return c.displayName || "Context";
58
- case O:
58
+ case T:
59
59
  return (c._context.displayName || "Context") + ".Consumer";
60
60
  case S:
61
61
  var f = c.render;
62
62
  return c = c.displayName, c || (c = f.displayName || f.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
63
- case M:
63
+ case F:
64
64
  return f = c.displayName || null, f !== null ? f : e(c.type) || "Memo";
65
65
  case ue:
66
66
  f = c._payload, c = c._init;
@@ -92,7 +92,7 @@ function yt() {
92
92
  }
93
93
  }
94
94
  function n(c) {
95
- if (c === L) return "<>";
95
+ if (c === V) return "<>";
96
96
  if (typeof c == "object" && c !== null && c.$$typeof === ue)
97
97
  return "<...>";
98
98
  try {
@@ -134,7 +134,7 @@ function yt() {
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
  )), c = this.props.ref, c !== void 0 ? c : null;
136
136
  }
137
- function u(c, f, C, E, z, D) {
137
+ function u(c, f, C, E, D, W) {
138
138
  var b = C.ref;
139
139
  return c = {
140
140
  $$typeof: v,
@@ -159,15 +159,15 @@ function yt() {
159
159
  configurable: !1,
160
160
  enumerable: !1,
161
161
  writable: !0,
162
- value: z
162
+ value: D
163
163
  }), Object.defineProperty(c, "_debugTask", {
164
164
  configurable: !1,
165
165
  enumerable: !1,
166
166
  writable: !0,
167
- value: D
167
+ value: W
168
168
  }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
169
169
  }
170
- function x(c, f, C, E, z, D) {
170
+ function x(c, f, C, E, D, W) {
171
171
  var b = f.children;
172
172
  if (b !== void 0)
173
173
  if (E)
@@ -182,10 +182,10 @@ function yt() {
182
182
  else m(b);
183
183
  if (pe.call(f, "key")) {
184
184
  b = e(c);
185
- var P = Object.keys(f).filter(function(ie) {
185
+ var A = Object.keys(f).filter(function(ie) {
186
186
  return ie !== "key";
187
187
  });
188
- E = 0 < P.length ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}", Q[b + E] || (P = 0 < P.length ? "{" + P.join(": ..., ") + ": ...}" : "{}", console.error(
188
+ E = 0 < A.length ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}", Q[b + E] || (A = 0 < A.length ? "{" + A.join(": ..., ") + ": ...}" : "{}", console.error(
189
189
  `A props object containing a "key" prop is being spread into JSX:
190
190
  let props = %s;
191
191
  <%s {...props} />
@@ -194,7 +194,7 @@ React keys must be passed directly to JSX without using spread:
194
194
  <%s key={someKey} {...props} />`,
195
195
  E,
196
196
  b,
197
- P,
197
+ A,
198
198
  b
199
199
  ), Q[b + E] = !0);
200
200
  }
@@ -211,29 +211,29 @@ React keys must be passed directly to JSX without using spread:
211
211
  b,
212
212
  C,
213
213
  a(),
214
- z,
215
- D
214
+ D,
215
+ W
216
216
  );
217
217
  }
218
218
  function m(c) {
219
- w(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === ue && (c._payload.status === "fulfilled" ? w(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
219
+ g(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === ue && (c._payload.status === "fulfilled" ? g(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
220
220
  }
221
- function w(c) {
221
+ function g(c) {
222
222
  return typeof c == "object" && c !== null && c.$$typeof === v;
223
223
  }
224
- var g = pt, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), V = /* @__PURE__ */ Symbol.for("react.portal"), L = /* @__PURE__ */ Symbol.for("react.fragment"), U = /* @__PURE__ */ Symbol.for("react.strict_mode"), q = /* @__PURE__ */ Symbol.for("react.profiler"), O = /* @__PURE__ */ Symbol.for("react.consumer"), T = /* @__PURE__ */ Symbol.for("react.context"), S = /* @__PURE__ */ Symbol.for("react.forward_ref"), ve = /* @__PURE__ */ Symbol.for("react.suspense"), I = /* @__PURE__ */ Symbol.for("react.suspense_list"), M = /* @__PURE__ */ Symbol.for("react.memo"), ue = /* @__PURE__ */ Symbol.for("react.lazy"), $e = /* @__PURE__ */ Symbol.for("react.activity"), se = /* @__PURE__ */ Symbol.for("react.client.reference"), Z = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, pe = Object.prototype.hasOwnProperty, me = Array.isArray, F = console.createTask ? console.createTask : function() {
224
+ var h = mt, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), R = /* @__PURE__ */ Symbol.for("react.portal"), V = /* @__PURE__ */ Symbol.for("react.fragment"), I = /* @__PURE__ */ Symbol.for("react.strict_mode"), M = /* @__PURE__ */ Symbol.for("react.profiler"), T = /* @__PURE__ */ Symbol.for("react.consumer"), P = /* @__PURE__ */ Symbol.for("react.context"), S = /* @__PURE__ */ Symbol.for("react.forward_ref"), ve = /* @__PURE__ */ Symbol.for("react.suspense"), z = /* @__PURE__ */ Symbol.for("react.suspense_list"), F = /* @__PURE__ */ Symbol.for("react.memo"), ue = /* @__PURE__ */ Symbol.for("react.lazy"), $e = /* @__PURE__ */ Symbol.for("react.activity"), se = /* @__PURE__ */ Symbol.for("react.client.reference"), Z = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, pe = Object.prototype.hasOwnProperty, me = Array.isArray, H = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
- g = {
227
+ h = {
228
228
  react_stack_bottom_frame: function(c) {
229
229
  return c();
230
230
  }
231
231
  };
232
- var K, B = {}, ae = g.react_stack_bottom_frame.bind(
233
- g,
232
+ var K, B = {}, ae = h.react_stack_bottom_frame.bind(
233
+ h,
234
234
  s
235
- )(), oe = F(n(s)), Q = {};
236
- de.Fragment = L, de.jsx = function(c, f, C) {
235
+ )(), oe = H(n(s)), Q = {};
236
+ de.Fragment = V, de.jsx = function(c, f, C) {
237
237
  var E = 1e4 > Z.recentlyCreatedOwnerStacks++;
238
238
  return x(
239
239
  c,
@@ -241,7 +241,7 @@ React keys must be passed directly to JSX without using spread:
241
241
  C,
242
242
  !1,
243
243
  E ? Error("react-stack-top-frame") : ae,
244
- E ? F(n(c)) : oe
244
+ E ? H(n(c)) : oe
245
245
  );
246
246
  }, de.jsxs = function(c, f, C) {
247
247
  var E = 1e4 > Z.recentlyCreatedOwnerStacks++;
@@ -251,17 +251,17 @@ React keys must be passed directly to JSX without using spread:
251
251
  C,
252
252
  !0,
253
253
  E ? Error("react-stack-top-frame") : ae,
254
- E ? F(n(c)) : oe
254
+ E ? H(n(c)) : oe
255
255
  );
256
256
  };
257
257
  })()), de;
258
258
  }
259
259
  var Ie;
260
- function xt() {
261
- return Ie || (Ie = 1, process.env.NODE_ENV === "production" ? he.exports = gt() : he.exports = yt()), he.exports;
260
+ function wt() {
261
+ return Ie || (Ie = 1, process.env.NODE_ENV === "production" ? he.exports = yt() : he.exports = xt()), he.exports;
262
262
  }
263
- var o = xt();
264
- const wt = ({ children: e }) => {
263
+ var o = wt();
264
+ const vt = ({ children: e }) => {
265
265
  const t = Oe(null), [r, n] = k(null);
266
266
  return J(() => {
267
267
  if (t.current && !t.current.shadowRoot) {
@@ -272,19 +272,19 @@ const wt = ({ children: e }) => {
272
272
  const i = document.createElement("link");
273
273
  i.rel = "stylesheet", i.href = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap", a.appendChild(i), n(a);
274
274
  }
275
- }, []), /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ShadowRootWrapper.tsx:38", ref: t, id: "viewgate-shadow-host", children: r && ht(e, r) });
275
+ }, []), /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ShadowRootWrapper.tsx:38", ref: t, id: "viewgate-shadow-host", children: r && gt(e, r) });
276
276
  };
277
277
  const Qe = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim();
278
- const vt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
279
- const bt = (e) => e.replace(
278
+ const bt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
279
+ const Ct = (e) => e.replace(
280
280
  /^([A-Z])|[\s-_]+(\w)/g,
281
281
  (t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
282
282
  );
283
- const ze = (e) => {
284
- const t = bt(e);
283
+ const Me = (e) => {
284
+ const t = Ct(e);
285
285
  return t.charAt(0).toUpperCase() + t.slice(1);
286
286
  };
287
- var Ct = {
287
+ var Et = {
288
288
  xmlns: "http://www.w3.org/2000/svg",
289
289
  width: 24,
290
290
  height: 24,
@@ -295,13 +295,13 @@ var Ct = {
295
295
  strokeLinecap: "round",
296
296
  strokeLinejoin: "round"
297
297
  };
298
- const Et = (e) => {
298
+ const St = (e) => {
299
299
  for (const t in e)
300
300
  if (t.startsWith("aria-") || t === "role" || t === "title")
301
301
  return !0;
302
302
  return !1;
303
303
  };
304
- const St = Ke(
304
+ const kt = Ke(
305
305
  ({
306
306
  color: e = "currentColor",
307
307
  size: t = 24,
@@ -315,13 +315,13 @@ const St = Ke(
315
315
  "svg",
316
316
  {
317
317
  ref: p,
318
- ...Ct,
318
+ ...Et,
319
319
  width: t,
320
320
  height: t,
321
321
  stroke: e,
322
322
  strokeWidth: n ? Number(r) * 24 / Number(t) : r,
323
323
  className: Qe("lucide", a),
324
- ...!s && !Et(l) && { "aria-hidden": "true" },
324
+ ...!s && !St(l) && { "aria-hidden": "true" },
325
325
  ...l
326
326
  },
327
327
  [
@@ -332,38 +332,38 @@ const St = Ke(
332
332
  );
333
333
  const N = (e, t) => {
334
334
  const r = Ke(
335
- ({ className: n, ...a }, s) => _e(St, {
335
+ ({ className: n, ...a }, s) => _e(kt, {
336
336
  ref: s,
337
337
  iconNode: t,
338
338
  className: Qe(
339
- `lucide-${vt(ze(e))}`,
339
+ `lucide-${bt(Me(e))}`,
340
340
  `lucide-${e}`,
341
341
  n
342
342
  ),
343
343
  ...a
344
344
  })
345
345
  );
346
- return r.displayName = ze(e), r;
346
+ return r.displayName = Me(e), r;
347
347
  };
348
- const kt = [
348
+ const Rt = [
349
349
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
350
350
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
351
351
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
352
- ], Rt = N("circle-alert", kt);
353
- const jt = [
352
+ ], jt = N("circle-alert", Rt);
353
+ const Ot = [
354
354
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
355
355
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
356
- ], ne = N("circle-check", jt);
357
- const Ot = [
356
+ ], ne = N("circle-check", Ot);
357
+ const _t = [
358
358
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
359
359
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
360
- ], Me = N("clock", Ot);
361
- const _t = [
360
+ ], ze = N("clock", _t);
361
+ const Vt = [
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
- ], Fe = N("external-link", _t);
366
- const Vt = [
365
+ ], Fe = N("external-link", Vt);
366
+ const Tt = [
367
367
  [
368
368
  "path",
369
369
  {
@@ -372,9 +372,9 @@ const Vt = [
372
372
  }
373
373
  ],
374
374
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
375
- ], Tt = N("eye", Vt);
376
- const Pt = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], At = N("loader-circle", Pt);
377
- const Gt = [
375
+ ], Pt = N("eye", Tt);
376
+ const At = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Gt = N("loader-circle", At);
377
+ const $t = [
378
378
  [
379
379
  "path",
380
380
  {
@@ -382,8 +382,8 @@ const Gt = [
382
382
  key: "18887p"
383
383
  }
384
384
  ]
385
- ], Ce = N("message-square", Gt);
386
- const $t = [
385
+ ], Ce = N("message-square", $t);
386
+ const Lt = [
387
387
  [
388
388
  "path",
389
389
  {
@@ -391,8 +391,8 @@ const $t = [
391
391
  key: "edeuup"
392
392
  }
393
393
  ]
394
- ], Nt = N("mouse-pointer-2", $t);
395
- const Lt = [
394
+ ], Nt = N("mouse-pointer-2", Lt);
395
+ const It = [
396
396
  [
397
397
  "path",
398
398
  {
@@ -401,12 +401,12 @@ const Lt = [
401
401
  }
402
402
  ],
403
403
  ["path", { d: "m15 5 4 4", key: "1mk7zo" }]
404
- ], It = N("pencil", Lt);
404
+ ], Mt = N("pencil", It);
405
405
  const zt = [
406
406
  ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
407
407
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
408
- ], Mt = N("rotate-ccw", zt);
409
- const Ft = [
408
+ ], Ft = N("rotate-ccw", zt);
409
+ const Dt = [
410
410
  [
411
411
  "path",
412
412
  {
@@ -415,18 +415,18 @@ const Ft = [
415
415
  }
416
416
  ],
417
417
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
418
- ], Dt = N("send", Ft);
419
- const Ht = [
418
+ ], Ht = N("send", Dt);
419
+ const Wt = [
420
420
  ["path", { d: "M10 11v6", key: "nco0om" }],
421
421
  ["path", { d: "M14 11v6", key: "outv1u" }],
422
422
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
423
423
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
424
424
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
425
- ], De = N("trash-2", Ht);
426
- const Wt = [
425
+ ], De = N("trash-2", Wt);
426
+ const Ut = [
427
427
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
428
428
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
429
- ], Ee = N("x", Wt), Ut = {
429
+ ], Ee = N("x", Ut), qt = {
430
430
  en: {
431
431
  enterMode: "Enter Feedback Mode",
432
432
  exitMode: "Exit Mode",
@@ -469,7 +469,9 @@ const Wt = [
469
469
  save: "Save",
470
470
  commentDetails: "Comment Details",
471
471
  annotations: "Comments",
472
- viewAll: "View All"
472
+ viewAll: "View All",
473
+ exitConfirmTitle: "Close ViewGate?",
474
+ exitConfirmMessage: "Are you sure you want to close ViewGate? You can reopen it at any time by adding ?viewgate=true to your URL."
473
475
  },
474
476
  es: {
475
477
  enterMode: "Activar Modo Comentarios",
@@ -513,13 +515,15 @@ const Wt = [
513
515
  save: "Guardar",
514
516
  commentDetails: "Detalles del Comentario",
515
517
  annotations: "Comentarios",
516
- viewAll: "Ver Todos"
518
+ viewAll: "Ver Todos",
519
+ exitConfirmTitle: "¿Cerrar ViewGate?",
520
+ exitConfirmMessage: "¿Estás seguro de que deseas cerrar ViewGate? Puedes volver a activarlo en cualquier momento agregando ?viewgate=true a la URL."
517
521
  }
518
- }, et = mt(void 0), qt = () => {
519
- const e = ft(et);
522
+ }, et = ft(void 0), Bt = () => {
523
+ const e = ht(et);
520
524
  if (!e) throw new Error("useViewGate must be used within a ViewGateProvider");
521
525
  return e;
522
- }, Ve = "viewgate_enabled", Bt = () => typeof window > "u" ? !1 : new URLSearchParams(window.location.search).has("viewgate") ? (sessionStorage.setItem(Ve, "true"), !0) : sessionStorage.getItem(Ve) === "true", an = ({
526
+ }, Ve = "viewgate_enabled", Yt = () => typeof window > "u" ? !1 : new URLSearchParams(window.location.search).has("viewgate") ? (sessionStorage.setItem(Ve, "true"), !0) : sessionStorage.getItem(Ve) === "true", on = ({
523
527
  children: e,
524
528
  language: t = "es",
525
529
  apiKey: r,
@@ -527,20 +531,20 @@ const Wt = [
527
531
  }) => {
528
532
  const [a, s] = k(!1), [i, l] = k([]);
529
533
  J(() => {
530
- s(Bt());
534
+ s(Yt());
531
535
  }, []);
532
536
  const p = () => {
533
537
  if (sessionStorage.removeItem(Ve), s(!1), typeof window < "u") {
534
538
  const m = new URL(window.location.href);
535
539
  m.searchParams.delete("viewgate"), window.history.replaceState({}, "", m.toString());
536
540
  }
537
- }, u = (m, w) => {
538
- const g = Date.now();
539
- l((v) => [...v, { id: g, message: m, type: w }]), setTimeout(() => {
540
- l((v) => v.filter((V) => V.id !== g));
541
+ }, u = (m, g) => {
542
+ const h = Date.now();
543
+ l((v) => [...v, { id: h, message: m, type: g }]), setTimeout(() => {
544
+ l((v) => v.filter((R) => R.id !== h));
541
545
  }, 4e3);
542
- }, x = Ut[t];
543
- return /* @__PURE__ */ o.jsxs(et.Provider, { "data-source-path": "/src/components/ViewGateProvider.tsx:244", value: {
546
+ }, x = qt[t];
547
+ return /* @__PURE__ */ o.jsxs(et.Provider, { "data-source-path": "/src/components/ViewGateProvider.tsx:248", value: {
544
548
  addToast: u,
545
549
  language: t,
546
550
  t: x,
@@ -550,19 +554,19 @@ const Wt = [
550
554
  hasActiveToasts: i.length > 0
551
555
  }, children: [
552
556
  e,
553
- a && /* @__PURE__ */ o.jsx(wt, { "data-source-path": "/src/components/ViewGateProvider.tsx:255", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:256", className: "vg-container", children: [
554
- /* @__PURE__ */ o.jsx(rn, { "data-source-path": "/src/components/ViewGateProvider.tsx:257" }),
555
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:258", className: "vg-toasts", style: { zIndex: 2147483646 }, children: i.map((m) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:260", className: `vg-toast vg-animate-slide ${m.type}`, children: [
556
- m.type === "success" ? /* @__PURE__ */ o.jsx(ne, { "data-source-path": "/src/components/ViewGateProvider.tsx:262", size: 24, color: "#22c55e" }) : /* @__PURE__ */ o.jsx(Rt, { "data-source-path": "/src/components/ViewGateProvider.tsx:264", size: 24, color: "#ef4444" }),
557
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:266", children: [
558
- /* @__PURE__ */ o.jsx("strong", { "data-source-path": "/src/components/ViewGateProvider.tsx:267", style: { display: "block", fontSize: "13px", color: "#0f172a", textTransform: "uppercase", marginBottom: "2px" }, children: m.type === "success" ? x.successHeader : x.errorHeader }),
559
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateProvider.tsx:270", style: { fontSize: "14px", color: "#64748b" }, children: m.message })
557
+ a && /* @__PURE__ */ o.jsx(vt, { "data-source-path": "/src/components/ViewGateProvider.tsx:259", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:260", className: "vg-container", children: [
558
+ /* @__PURE__ */ o.jsx(nn, { "data-source-path": "/src/components/ViewGateProvider.tsx:261" }),
559
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:262", className: "vg-toasts", style: { zIndex: 2147483646 }, children: i.map((m) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:264", className: `vg-toast vg-animate-slide ${m.type}`, children: [
560
+ m.type === "success" ? /* @__PURE__ */ o.jsx(ne, { "data-source-path": "/src/components/ViewGateProvider.tsx:266", size: 24, color: "#22c55e" }) : /* @__PURE__ */ o.jsx(jt, { "data-source-path": "/src/components/ViewGateProvider.tsx:268", size: 24, color: "#ef4444" }),
561
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:270", children: [
562
+ /* @__PURE__ */ o.jsx("strong", { "data-source-path": "/src/components/ViewGateProvider.tsx:271", style: { display: "block", fontSize: "13px", color: "#0f172a", textTransform: "uppercase", marginBottom: "2px" }, children: m.type === "success" ? x.successHeader : x.errorHeader }),
563
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateProvider.tsx:274", style: { fontSize: "14px", color: "#000000" }, children: m.message })
560
564
  ] })
561
565
  ] }, m.id)) })
562
566
  ] }) })
563
567
  ] });
564
568
  };
565
- function Yt(e, t) {
569
+ function Xt(e, t) {
566
570
  if (e.match(/^[a-z]+:\/\//i))
567
571
  return e;
568
572
  if (e.match(/^\/\//))
@@ -572,7 +576,7 @@ function Yt(e, t) {
572
576
  const r = document.implementation.createHTMLDocument(), n = r.createElement("base"), a = r.createElement("a");
573
577
  return r.head.appendChild(n), r.body.appendChild(a), t && (n.href = t), a.href = e, a.href;
574
578
  }
575
- const Xt = /* @__PURE__ */ (() => {
579
+ const Jt = /* @__PURE__ */ (() => {
576
580
  let e = 0;
577
581
  const t = () => (
578
582
  // eslint-disable-next-line no-bitwise
@@ -580,7 +584,7 @@ const Xt = /* @__PURE__ */ (() => {
580
584
  );
581
585
  return () => (e += 1, `u${t()}${e}`);
582
586
  })();
583
- function W(e) {
587
+ function q(e) {
584
588
  const t = [];
585
589
  for (let r = 0, n = e.length; r < n; r++)
586
590
  t.push(e[r]);
@@ -588,25 +592,25 @@ function W(e) {
588
592
  }
589
593
  let te = null;
590
594
  function tt(e = {}) {
591
- return te || (e.includeStyleProperties ? (te = e.includeStyleProperties, te) : (te = W(window.getComputedStyle(document.documentElement)), te));
595
+ return te || (e.includeStyleProperties ? (te = e.includeStyleProperties, te) : (te = q(window.getComputedStyle(document.documentElement)), te));
592
596
  }
593
597
  function ge(e, t) {
594
598
  const n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
595
599
  return n ? parseFloat(n.replace("px", "")) : 0;
596
600
  }
597
- function Jt(e) {
601
+ function Zt(e) {
598
602
  const t = ge(e, "border-left-width"), r = ge(e, "border-right-width");
599
603
  return e.clientWidth + t + r;
600
604
  }
601
- function Zt(e) {
605
+ function Kt(e) {
602
606
  const t = ge(e, "border-top-width"), r = ge(e, "border-bottom-width");
603
607
  return e.clientHeight + t + r;
604
608
  }
605
609
  function rt(e, t = {}) {
606
- const r = t.width || Jt(e), n = t.height || Zt(e);
610
+ const r = t.width || Zt(e), n = t.height || Kt(e);
607
611
  return { width: r, height: n };
608
612
  }
609
- function Kt() {
613
+ function Qt() {
610
614
  let e, t;
611
615
  try {
612
616
  t = process;
@@ -615,9 +619,9 @@ function Kt() {
615
619
  const r = t && t.env ? t.env.devicePixelRatio : null;
616
620
  return r && (e = parseInt(r, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
617
621
  }
618
- const $ = 16384;
619
- function Qt(e) {
620
- (e.width > $ || e.height > $) && (e.width > $ && e.height > $ ? e.width > e.height ? (e.height *= $ / e.width, e.width = $) : (e.width *= $ / e.height, e.height = $) : e.width > $ ? (e.height *= $ / e.width, e.width = $) : (e.width *= $ / e.height, e.height = $));
622
+ const L = 16384;
623
+ function er(e) {
624
+ (e.width > L || e.height > L) && (e.width > L && e.height > L ? e.width > e.height ? (e.height *= L / e.width, e.width = L) : (e.width *= L / e.height, e.height = L) : e.width > L ? (e.height *= L / e.width, e.width = L) : (e.width *= L / e.height, e.height = L));
621
625
  }
622
626
  function ye(e) {
623
627
  return new Promise((t, r) => {
@@ -629,50 +633,50 @@ function ye(e) {
629
633
  }, n.onerror = r, n.crossOrigin = "anonymous", n.decoding = "async", n.src = e;
630
634
  });
631
635
  }
632
- async function er(e) {
636
+ async function tr(e) {
633
637
  return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((t) => `data:image/svg+xml;charset=utf-8,${t}`);
634
638
  }
635
- async function tr(e, t, r) {
639
+ async function rr(e, t, r) {
636
640
  const n = "http://www.w3.org/2000/svg", a = document.createElementNS(n, "svg"), s = document.createElementNS(n, "foreignObject");
637
- 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), er(a);
641
+ 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), tr(a);
638
642
  }
639
- const A = (e, t) => {
643
+ const G = (e, t) => {
640
644
  if (e instanceof t)
641
645
  return !0;
642
646
  const r = Object.getPrototypeOf(e);
643
- return r === null ? !1 : r.constructor.name === t.name || A(r, t);
647
+ return r === null ? !1 : r.constructor.name === t.name || G(r, t);
644
648
  };
645
- function rr(e) {
649
+ function nr(e) {
646
650
  const t = e.getPropertyValue("content");
647
651
  return `${e.cssText} content: '${t.replace(/'|"/g, "")}';`;
648
652
  }
649
- function nr(e, t) {
653
+ function sr(e, t) {
650
654
  return tt(t).map((r) => {
651
655
  const n = e.getPropertyValue(r), a = e.getPropertyPriority(r);
652
656
  return `${r}: ${n}${a ? " !important" : ""};`;
653
657
  }).join(" ");
654
658
  }
655
- function sr(e, t, r, n) {
656
- const a = `.${e}:${t}`, s = r.cssText ? rr(r) : nr(r, n);
659
+ function ar(e, t, r, n) {
660
+ const a = `.${e}:${t}`, s = r.cssText ? nr(r) : sr(r, n);
657
661
  return document.createTextNode(`${a}{${s}}`);
658
662
  }
659
663
  function He(e, t, r, n) {
660
664
  const a = window.getComputedStyle(e, r), s = a.getPropertyValue("content");
661
665
  if (s === "" || s === "none")
662
666
  return;
663
- const i = Xt();
667
+ const i = Jt();
664
668
  try {
665
669
  t.className = `${t.className} ${i}`;
666
670
  } catch {
667
671
  return;
668
672
  }
669
673
  const l = document.createElement("style");
670
- l.appendChild(sr(i, r, a, n)), t.appendChild(l);
674
+ l.appendChild(ar(i, r, a, n)), t.appendChild(l);
671
675
  }
672
- function ar(e, t, r) {
676
+ function or(e, t, r) {
673
677
  He(e, t, ":before", r), He(e, t, ":after", r);
674
678
  }
675
- const We = "application/font-woff", Ue = "image/jpeg", or = {
679
+ const We = "application/font-woff", Ue = "image/jpeg", ir = {
676
680
  woff: We,
677
681
  woff2: We,
678
682
  ttf: "application/font-truetype",
@@ -685,21 +689,21 @@ const We = "application/font-woff", Ue = "image/jpeg", or = {
685
689
  svg: "image/svg+xml",
686
690
  webp: "image/webp"
687
691
  };
688
- function ir(e) {
692
+ function cr(e) {
689
693
  const t = /\.([^./]*?)$/g.exec(e);
690
694
  return t ? t[1] : "";
691
695
  }
692
696
  function Ae(e) {
693
- const t = ir(e).toLowerCase();
694
- return or[t] || "";
697
+ const t = cr(e).toLowerCase();
698
+ return ir[t] || "";
695
699
  }
696
- function cr(e) {
700
+ function lr(e) {
697
701
  return e.split(/,/)[1];
698
702
  }
699
703
  function Te(e) {
700
704
  return e.search(/^(data:)/) !== -1;
701
705
  }
702
- function lr(e, t) {
706
+ function dr(e, t) {
703
707
  return `data:${t};base64,${e}`;
704
708
  }
705
709
  async function nt(e, t, r) {
@@ -719,19 +723,19 @@ async function nt(e, t, r) {
719
723
  });
720
724
  }
721
725
  const Se = {};
722
- function dr(e, t, r) {
726
+ function ur(e, t, r) {
723
727
  let n = e.replace(/\?.*/, "");
724
728
  return r && (n = e), /ttf|otf|eot|woff2?/i.test(n) && (n = n.replace(/.*\//, "")), t ? `[${t}]${n}` : n;
725
729
  }
726
730
  async function Ge(e, t, r) {
727
- const n = dr(e, t, r.includeQueryParams);
731
+ const n = ur(e, t, r.includeQueryParams);
728
732
  if (Se[n] != null)
729
733
  return Se[n];
730
734
  r.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
731
735
  let a;
732
736
  try {
733
- const s = await nt(e, r.fetchRequestInit, ({ res: i, result: l }) => (t || (t = i.headers.get("Content-Type") || ""), cr(l)));
734
- a = lr(s, t);
737
+ const s = await nt(e, r.fetchRequestInit, ({ res: i, result: l }) => (t || (t = i.headers.get("Content-Type") || ""), lr(l)));
738
+ a = dr(s, t);
735
739
  } catch (s) {
736
740
  a = r.imagePlaceholder || "";
737
741
  let i = `Failed to fetch resource: ${e}`;
@@ -739,11 +743,11 @@ async function Ge(e, t, r) {
739
743
  }
740
744
  return Se[n] = a, a;
741
745
  }
742
- async function ur(e) {
746
+ async function pr(e) {
743
747
  const t = e.toDataURL();
744
748
  return t === "data:," ? e.cloneNode(!1) : ye(t);
745
749
  }
746
- async function pr(e, t) {
750
+ async function mr(e, t) {
747
751
  if (e.currentSrc) {
748
752
  const s = document.createElement("canvas"), i = s.getContext("2d");
749
753
  s.width = e.clientWidth, s.height = e.clientHeight, i?.drawImage(e, 0, 0, s.width, s.height);
@@ -753,7 +757,7 @@ async function pr(e, t) {
753
757
  const r = e.poster, n = Ae(r), a = await Ge(r, n, t);
754
758
  return ye(a);
755
759
  }
756
- async function mr(e, t) {
760
+ async function fr(e, t) {
757
761
  var r;
758
762
  try {
759
763
  if (!((r = e?.contentDocument) === null || r === void 0) && r.body)
@@ -762,42 +766,42 @@ async function mr(e, t) {
762
766
  }
763
767
  return e.cloneNode(!1);
764
768
  }
765
- async function fr(e, t) {
766
- return A(e, HTMLCanvasElement) ? ur(e) : A(e, HTMLVideoElement) ? pr(e, t) : A(e, HTMLIFrameElement) ? mr(e, t) : e.cloneNode(st(e));
769
+ async function hr(e, t) {
770
+ return G(e, HTMLCanvasElement) ? pr(e) : G(e, HTMLVideoElement) ? mr(e, t) : G(e, HTMLIFrameElement) ? fr(e, t) : e.cloneNode(st(e));
767
771
  }
768
- const hr = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", st = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
769
- async function gr(e, t, r) {
772
+ const gr = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", st = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
773
+ async function yr(e, t, r) {
770
774
  var n, a;
771
775
  if (st(t))
772
776
  return t;
773
777
  let s = [];
774
- return hr(e) && e.assignedNodes ? s = W(e.assignedNodes()) : A(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = W(e.contentDocument.body.childNodes) : s = W(((a = e.shadowRoot) !== null && a !== void 0 ? a : e).childNodes), s.length === 0 || A(e, HTMLVideoElement) || await s.reduce((i, l) => i.then(() => xe(l, r)).then((p) => {
778
+ return gr(e) && e.assignedNodes ? s = q(e.assignedNodes()) : G(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 || G(e, HTMLVideoElement) || await s.reduce((i, l) => i.then(() => xe(l, r)).then((p) => {
775
779
  p && t.appendChild(p);
776
780
  }), Promise.resolve()), t;
777
781
  }
778
- function yr(e, t, r) {
782
+ function xr(e, t, r) {
779
783
  const n = t.style;
780
784
  if (!n)
781
785
  return;
782
786
  const a = window.getComputedStyle(e);
783
787
  a.cssText ? (n.cssText = a.cssText, n.transformOrigin = a.transformOrigin) : tt(r).forEach((s) => {
784
788
  let i = a.getPropertyValue(s);
785
- s === "font-size" && i.endsWith("px") && (i = `${Math.floor(parseFloat(i.substring(0, i.length - 2))) - 0.1}px`), A(e, HTMLIFrameElement) && s === "display" && i === "inline" && (i = "block"), s === "d" && t.getAttribute("d") && (i = `path(${t.getAttribute("d")})`), n.setProperty(s, i, a.getPropertyPriority(s));
789
+ s === "font-size" && i.endsWith("px") && (i = `${Math.floor(parseFloat(i.substring(0, i.length - 2))) - 0.1}px`), G(e, HTMLIFrameElement) && s === "display" && i === "inline" && (i = "block"), s === "d" && t.getAttribute("d") && (i = `path(${t.getAttribute("d")})`), n.setProperty(s, i, a.getPropertyPriority(s));
786
790
  });
787
791
  }
788
- function xr(e, t) {
789
- A(e, HTMLTextAreaElement) && (t.innerHTML = e.value), A(e, HTMLInputElement) && t.setAttribute("value", e.value);
790
- }
791
792
  function wr(e, t) {
792
- if (A(e, HTMLSelectElement)) {
793
+ G(e, HTMLTextAreaElement) && (t.innerHTML = e.value), G(e, HTMLInputElement) && t.setAttribute("value", e.value);
794
+ }
795
+ function vr(e, t) {
796
+ if (G(e, HTMLSelectElement)) {
793
797
  const n = Array.from(t.children).find((a) => e.value === a.getAttribute("value"));
794
798
  n && n.setAttribute("selected", "");
795
799
  }
796
800
  }
797
- function vr(e, t, r) {
798
- return A(t, Element) && (yr(e, t, r), ar(e, t, r), xr(e, t), wr(e, t)), t;
801
+ function br(e, t, r) {
802
+ return G(t, Element) && (xr(e, t, r), or(e, t, r), wr(e, t), vr(e, t)), t;
799
803
  }
800
- async function br(e, t) {
804
+ async function Cr(e, t) {
801
805
  const r = e.querySelectorAll ? e.querySelectorAll("use") : [];
802
806
  if (r.length === 0)
803
807
  return e;
@@ -822,30 +826,30 @@ async function br(e, t) {
822
826
  return e;
823
827
  }
824
828
  async function xe(e, t, r) {
825
- return !r && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((n) => fr(n, t)).then((n) => gr(e, n, t)).then((n) => vr(e, n, t)).then((n) => br(n, t));
829
+ return !r && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((n) => hr(n, t)).then((n) => yr(e, n, t)).then((n) => br(e, n, t)).then((n) => Cr(n, t));
826
830
  }
827
- const at = /url\((['"]?)([^'"]+?)\1\)/g, Cr = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, Er = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
828
- function Sr(e) {
831
+ const at = /url\((['"]?)([^'"]+?)\1\)/g, Er = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, Sr = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
832
+ function kr(e) {
829
833
  const t = e.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1");
830
834
  return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`, "g");
831
835
  }
832
- function kr(e) {
836
+ function Rr(e) {
833
837
  const t = [];
834
838
  return e.replace(at, (r, n, a) => (t.push(a), r)), t.filter((r) => !Te(r));
835
839
  }
836
- async function Rr(e, t, r, n, a) {
840
+ async function jr(e, t, r, n, a) {
837
841
  try {
838
- const s = r ? Yt(t, r) : t, i = Ae(t);
842
+ const s = r ? Xt(t, r) : t, i = Ae(t);
839
843
  let l;
840
- return a || (l = await Ge(s, i, n)), e.replace(Sr(t), `$1${l}$3`);
844
+ return a || (l = await Ge(s, i, n)), e.replace(kr(t), `$1${l}$3`);
841
845
  } catch {
842
846
  }
843
847
  return e;
844
848
  }
845
- function jr(e, { preferredFontFormat: t }) {
846
- return t ? e.replace(Er, (r) => {
849
+ function Or(e, { preferredFontFormat: t }) {
850
+ return t ? e.replace(Sr, (r) => {
847
851
  for (; ; ) {
848
- const [n, , a] = Cr.exec(r) || [];
852
+ const [n, , a] = Er.exec(r) || [];
849
853
  if (!a)
850
854
  return "";
851
855
  if (a === t)
@@ -859,8 +863,8 @@ function ot(e) {
859
863
  async function it(e, t, r) {
860
864
  if (!ot(e))
861
865
  return e;
862
- const n = jr(e, r);
863
- return kr(n).reduce((s, i) => s.then((l) => Rr(l, i, t, r)), Promise.resolve(n));
866
+ const n = Or(e, r);
867
+ return Rr(n).reduce((s, i) => s.then((l) => jr(l, i, t, r)), Promise.resolve(n));
864
868
  }
865
869
  async function re(e, t, r) {
866
870
  var n;
@@ -871,12 +875,12 @@ async function re(e, t, r) {
871
875
  }
872
876
  return !1;
873
877
  }
874
- async function Or(e, t) {
878
+ async function _r(e, t) {
875
879
  await re("background", e, t) || await re("background-image", e, t), await re("mask", e, t) || await re("-webkit-mask", e, t) || await re("mask-image", e, t) || await re("-webkit-mask-image", e, t);
876
880
  }
877
- async function _r(e, t) {
878
- const r = A(e, HTMLImageElement);
879
- if (!(r && !Te(e.src)) && !(A(e, SVGImageElement) && !Te(e.href.baseVal)))
881
+ async function Vr(e, t) {
882
+ const r = G(e, HTMLImageElement);
883
+ if (!(r && !Te(e.src)) && !(G(e, SVGImageElement) && !Te(e.href.baseVal)))
880
884
  return;
881
885
  const n = r ? e.src : e.href.baseVal, a = await Ge(n, Ae(n), t);
882
886
  await new Promise((s, i) => {
@@ -891,14 +895,14 @@ async function _r(e, t) {
891
895
  l.decode && (l.decode = s), l.loading === "lazy" && (l.loading = "eager"), r ? (e.srcset = "", e.src = a) : e.href.baseVal = a;
892
896
  });
893
897
  }
894
- async function Vr(e, t) {
895
- const n = W(e.childNodes).map((a) => ct(a, t));
898
+ async function Tr(e, t) {
899
+ const n = q(e.childNodes).map((a) => ct(a, t));
896
900
  await Promise.all(n).then(() => e);
897
901
  }
898
902
  async function ct(e, t) {
899
- A(e, Element) && (await Or(e, t), await _r(e, t), await Vr(e, t));
903
+ G(e, Element) && (await _r(e, t), await Vr(e, t), await Tr(e, t));
900
904
  }
901
- function Tr(e, t) {
905
+ function Pr(e, t) {
902
906
  const { style: r } = e;
903
907
  t.backgroundColor && (r.backgroundColor = t.backgroundColor), t.width && (r.width = `${t.width}px`), t.height && (r.height = `${t.height}px`);
904
908
  const n = t.style;
@@ -948,21 +952,21 @@ function Xe(e) {
948
952
  }
949
953
  return t;
950
954
  }
951
- async function Pr(e, t) {
955
+ async function Ar(e, t) {
952
956
  const r = [], n = [];
953
957
  return e.forEach((a) => {
954
958
  if ("cssRules" in a)
955
959
  try {
956
- W(a.cssRules || []).forEach((s, i) => {
960
+ q(a.cssRules || []).forEach((s, i) => {
957
961
  if (s.type === CSSRule.IMPORT_RULE) {
958
962
  let l = i + 1;
959
963
  const p = s.href, u = Be(p).then((x) => Ye(x, t)).then((x) => Xe(x).forEach((m) => {
960
964
  try {
961
965
  a.insertRule(m, m.startsWith("@import") ? l += 1 : a.cssRules.length);
962
- } catch (w) {
966
+ } catch (g) {
963
967
  console.error("Error inserting rule from remote css", {
964
968
  rule: m,
965
- error: w
969
+ error: g
966
970
  });
967
971
  }
968
972
  })).catch((x) => {
@@ -982,7 +986,7 @@ async function Pr(e, t) {
982
986
  }), Promise.all(n).then(() => (e.forEach((a) => {
983
987
  if ("cssRules" in a)
984
988
  try {
985
- W(a.cssRules || []).forEach((s) => {
989
+ q(a.cssRules || []).forEach((s) => {
986
990
  r.push(s);
987
991
  });
988
992
  } catch (s) {
@@ -990,19 +994,19 @@ async function Pr(e, t) {
990
994
  }
991
995
  }), r));
992
996
  }
993
- function Ar(e) {
997
+ function Gr(e) {
994
998
  return e.filter((t) => t.type === CSSRule.FONT_FACE_RULE).filter((t) => ot(t.style.getPropertyValue("src")));
995
999
  }
996
- async function Gr(e, t) {
1000
+ async function $r(e, t) {
997
1001
  if (e.ownerDocument == null)
998
1002
  throw new Error("Provided element is not within a Document");
999
- const r = W(e.ownerDocument.styleSheets), n = await Pr(r, t);
1000
- return Ar(n);
1003
+ const r = q(e.ownerDocument.styleSheets), n = await Ar(r, t);
1004
+ return Gr(n);
1001
1005
  }
1002
1006
  function lt(e) {
1003
1007
  return e.trim().replace(/["']/g, "");
1004
1008
  }
1005
- function $r(e) {
1009
+ function Lr(e) {
1006
1010
  const t = /* @__PURE__ */ new Set();
1007
1011
  function r(n) {
1008
1012
  (n.style.fontFamily || getComputedStyle(n).fontFamily).split(",").forEach((s) => {
@@ -1014,42 +1018,42 @@ function $r(e) {
1014
1018
  return r(e), t;
1015
1019
  }
1016
1020
  async function Nr(e, t) {
1017
- const r = await Gr(e, t), n = $r(e);
1021
+ const r = await $r(e, t), n = Lr(e);
1018
1022
  return (await Promise.all(r.filter((s) => n.has(lt(s.style.fontFamily))).map((s) => {
1019
1023
  const i = s.parentStyleSheet ? s.parentStyleSheet.href : null;
1020
1024
  return it(s.cssText, i, t);
1021
1025
  }))).join(`
1022
1026
  `);
1023
1027
  }
1024
- async function Lr(e, t) {
1028
+ async function Ir(e, t) {
1025
1029
  const r = t.fontEmbedCSS != null ? t.fontEmbedCSS : t.skipFonts ? null : await Nr(e, t);
1026
1030
  if (r) {
1027
1031
  const n = document.createElement("style"), a = document.createTextNode(r);
1028
1032
  n.appendChild(a), e.firstChild ? e.insertBefore(n, e.firstChild) : e.appendChild(n);
1029
1033
  }
1030
1034
  }
1031
- async function Ir(e, t = {}) {
1035
+ async function Mr(e, t = {}) {
1032
1036
  const { width: r, height: n } = rt(e, t), a = await xe(e, t, !0);
1033
- return await Lr(a, t), await ct(a, t), Tr(a, t), await tr(a, r, n);
1037
+ return await Ir(a, t), await ct(a, t), Pr(a, t), await rr(a, r, n);
1034
1038
  }
1035
1039
  async function zr(e, t = {}) {
1036
- const { width: r, height: n } = rt(e, t), a = await Ir(e, t), s = await ye(a), i = document.createElement("canvas"), l = i.getContext("2d"), p = t.pixelRatio || Kt(), u = t.canvasWidth || r, x = t.canvasHeight || n;
1037
- return i.width = u * p, i.height = x * p, t.skipAutoScale || Qt(i), i.style.width = `${u}`, i.style.height = `${x}`, t.backgroundColor && (l.fillStyle = t.backgroundColor, l.fillRect(0, 0, i.width, i.height)), l.drawImage(s, 0, 0, i.width, i.height), i;
1040
+ const { width: r, height: n } = rt(e, t), a = await Mr(e, t), s = await ye(a), i = document.createElement("canvas"), l = i.getContext("2d"), p = t.pixelRatio || Qt(), u = t.canvasWidth || r, x = t.canvasHeight || n;
1041
+ return i.width = u * p, i.height = x * p, t.skipAutoScale || er(i), i.style.width = `${u}`, i.style.height = `${x}`, t.backgroundColor && (l.fillStyle = t.backgroundColor, l.fillRect(0, 0, i.width, i.height)), l.drawImage(s, 0, 0, i.width, i.height), i;
1038
1042
  }
1039
- async function Mr(e, t = {}) {
1043
+ async function Fr(e, t = {}) {
1040
1044
  return (await zr(e, t)).toDataURL("image/jpeg", t.quality || 1);
1041
1045
  }
1042
- const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 15, Wr = () => {
1046
+ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 15, Ur = () => {
1043
1047
  const e = window.innerWidth;
1044
1048
  return e < 768 ? "mobile" : e < 1024 ? "tablet" : "desktop";
1045
- }, Ur = (e) => {
1049
+ }, qr = (e) => {
1046
1050
  let t = 0;
1047
1051
  for (let r = 0; r < e.length; r++) {
1048
1052
  const n = e.charCodeAt(r);
1049
1053
  t = (t << 5) - t + n, t = t & t;
1050
1054
  }
1051
1055
  return Math.abs(t).toString(16);
1052
- }, qr = (e, t) => {
1056
+ }, Br = (e, t) => {
1053
1057
  if (!e) return "";
1054
1058
  try {
1055
1059
  const r = new Date(e);
@@ -1064,10 +1068,10 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1064
1068
  } catch {
1065
1069
  return "";
1066
1070
  }
1067
- }, Br = (e) => {
1071
+ }, Yr = (e) => {
1068
1072
  const t = (e.innerText || "").slice(0, 30).trim(), r = {
1069
1073
  tag: e.tagName.toLowerCase(),
1070
- classHash: Ur(e.className),
1074
+ classHash: qr(e.className),
1071
1075
  textSnippet: t,
1072
1076
  parentTag: e.parentElement?.tagName.toLowerCase(),
1073
1077
  neighborCount: e.parentElement?.children.length || 0
@@ -1077,7 +1081,7 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1077
1081
  a && (r.role = a);
1078
1082
  const s = e.getAttribute("name");
1079
1083
  return s && (r.name = s), r;
1080
- }, Yr = /* @__PURE__ */ (() => {
1084
+ }, Xr = /* @__PURE__ */ (() => {
1081
1085
  let e = null, t = null;
1082
1086
  return (r) => {
1083
1087
  if (!r || typeof window > "u" || typeof document > "u") return r;
@@ -1098,7 +1102,7 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1098
1102
  }
1099
1103
  return r;
1100
1104
  };
1101
- })(), Xr = (e, t, r, n) => new Promise((a) => {
1105
+ })(), Jr = (e, t, r, n) => new Promise((a) => {
1102
1106
  const s = new Image();
1103
1107
  s.onload = () => {
1104
1108
  const i = document.createElement("canvas"), l = window.devicePixelRatio || 1, p = t.width + r * 2, u = t.height + r * 2;
@@ -1106,22 +1110,22 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1106
1110
  const x = i.getContext("2d");
1107
1111
  if (x) {
1108
1112
  x.scale(l, l);
1109
- const m = (t.left - r) * n, w = (t.top - r) * n, g = p * n, v = u * n;
1110
- x.drawImage(
1113
+ let m = (t.left - r) * n, g = (t.top - r) * n, h = p * n, v = u * n, R = 0, V = 0, I = p, M = u;
1114
+ m < 0 && (R = Math.abs(m) / n, h += m, I -= R, m = 0), m + h > s.width && (h = s.width - m, I = h / n), g < 0 && (V = Math.abs(g) / n, v += g, M -= V, g = 0), g + v > s.height && (v = s.height - g, M = v / n), x.fillStyle = "#f8fafc", x.fillRect(0, 0, p, u), h > 0 && v > 0 && x.drawImage(
1111
1115
  s,
1112
1116
  m,
1113
- w,
1114
1117
  g,
1118
+ h,
1115
1119
  v,
1116
- 0,
1117
- 0,
1118
- p,
1119
- u
1120
+ R,
1121
+ V,
1122
+ I,
1123
+ M
1120
1124
  );
1121
1125
  }
1122
1126
  a(i.toDataURL("image/png"));
1123
1127
  }, s.onerror = () => a(""), s.src = e;
1124
- }), Jr = (e) => {
1128
+ }), Zr = (e) => {
1125
1129
  const t = window.getComputedStyle(e), r = {};
1126
1130
  return [
1127
1131
  "display",
@@ -1136,9 +1140,9 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1136
1140
  "z-index"
1137
1141
  ].forEach((a) => {
1138
1142
  const s = t.getPropertyValue(a);
1139
- r[a] = Yr(s);
1143
+ r[a] = Xr(s);
1140
1144
  }), r;
1141
- }, Zr = (e) => {
1145
+ }, Kr = (e) => {
1142
1146
  const r = Object.keys(e).find((s) => s.startsWith("__reactFiber$") || s.startsWith("__reactInternalInstance$"));
1143
1147
  if (!r) return "";
1144
1148
  const n = [];
@@ -1152,6 +1156,12 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1152
1156
  a = a.return;
1153
1157
  }
1154
1158
  return n.join(" > ") || "Generic Component";
1159
+ }, dt = (e) => {
1160
+ if (!e) return !1;
1161
+ const t = window.getComputedStyle(e), r = e.getBoundingClientRect(), n = e.getAttribute("role");
1162
+ if (n && ["listbox", "menu", "combobox", "tooltip", "option"].includes(n)) return !1;
1163
+ const s = 120;
1164
+ 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"));
1155
1165
  }, Je = (e) => {
1156
1166
  if (!e.isConnected) return !1;
1157
1167
  const t = window.getComputedStyle(e);
@@ -1184,7 +1194,7 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1184
1194
  r = n;
1185
1195
  }
1186
1196
  return r;
1187
- }, Kr = (e) => {
1197
+ }, Qr = (e) => {
1188
1198
  if (!e.tag) return null;
1189
1199
  const t = document.getElementsByTagName(e.tag);
1190
1200
  let r = null, n = 0;
@@ -1194,20 +1204,20 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1194
1204
  s.innerText?.includes(e.text.slice(0, 20)) && (i += 4), e.fingerprint?.classHash && s.className.includes(e.fingerprint.classHash) && (i += 2), e.fingerprint?.ariaLabel && s.getAttribute("aria-label") === e.fingerprint.ariaLabel && (i += 3), e.fingerprint?.role && s.getAttribute("role") === e.fingerprint.role && (i += 2), e.parentContext && (s.parentElement?.innerText || "").includes(e.parentContext.slice(0, 30)) && (i += 2), e.fingerprint?.neighborCount === s.parentElement?.children.length && (i += 1), e.fingerprint?.parentTag === s.parentElement?.tagName.toLowerCase() && (i += 1), i > n && i >= 5 && (n = i, r = s);
1195
1205
  }
1196
1206
  return r;
1197
- }, Qr = (e) => {
1207
+ }, en = (e) => {
1198
1208
  let t = Pe(e.selector);
1199
1209
  if (t) return t;
1200
1210
  if (e.fallbackSelectors) {
1201
1211
  for (const r of e.fallbackSelectors)
1202
1212
  if (t = Pe(r), t) return t;
1203
1213
  }
1204
- return t = Kr(e), t || null;
1214
+ return t = Qr(e), t || null;
1205
1215
  }, je = (e) => ({
1206
1216
  tag: e.tagName.toLowerCase(),
1207
1217
  text: (e.innerText || e.getAttribute("placeholder") || "").slice(0, 50).trim(),
1208
1218
  role: e.getAttribute("role") || void 0,
1209
1219
  type: e.getAttribute("type") || void 0
1210
- }), en = (e) => {
1220
+ }), tn = (e) => {
1211
1221
  const t = e.parentElement;
1212
1222
  if (!t) return;
1213
1223
  const r = Array.from(t.children).filter((i) => i !== e).slice(0, 5).map((i) => je(i)), n = Array.from(t.children), a = n.indexOf(e);
@@ -1220,7 +1230,7 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1220
1230
  parent: je(t),
1221
1231
  siblings: r
1222
1232
  };
1223
- }, tn = (e) => {
1233
+ }, rn = (e) => {
1224
1234
  let t = "unknown:0", r = e;
1225
1235
  for (; r; ) {
1226
1236
  const m = r.getAttribute("data-source-path");
@@ -1230,45 +1240,45 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1230
1240
  }
1231
1241
  r = r.parentElement;
1232
1242
  }
1233
- const n = Zr(e), a = [], s = [], i = (m) => {
1234
- const w = [];
1235
- let g = m;
1236
- for (; g && g.nodeType === Node.ELEMENT_NODE; ) {
1237
- let v = g.nodeName.toLowerCase();
1243
+ const n = Kr(e), a = [], s = [], i = (m) => {
1244
+ const g = [];
1245
+ let h = m;
1246
+ for (; h && h.nodeType === Node.ELEMENT_NODE; ) {
1247
+ let v = h.nodeName.toLowerCase();
1238
1248
  s.unshift(v);
1239
- const V = g.id && !g.id.startsWith("__") ? g.id : null;
1240
- V && a.push(`#${V}`);
1241
- const L = g.getAttribute("data-testid") || g.getAttribute("data-qa");
1242
- L && a.push(`[data-testid="${L}"]`);
1243
- const U = g.getAttribute("aria-label"), q = g.getAttribute("role"), O = g.getAttribute("name");
1244
- if (L) {
1245
- v = `[${g.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${L}"]`, w.unshift(v);
1249
+ const R = h.id && !h.id.startsWith("__") ? h.id : null;
1250
+ R && a.push(`#${R}`);
1251
+ const V = h.getAttribute("data-testid") || h.getAttribute("data-qa");
1252
+ V && a.push(`[data-testid="${V}"]`);
1253
+ const I = h.getAttribute("aria-label"), M = h.getAttribute("role"), T = h.getAttribute("name");
1254
+ if (V) {
1255
+ v = `[${h.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${V}"]`, g.unshift(v);
1246
1256
  break;
1247
- } else if (V) {
1248
- v = "#" + V, w.unshift(v);
1257
+ } else if (R) {
1258
+ v = "#" + R, g.unshift(v);
1249
1259
  break;
1250
- } else if (U) {
1251
- v = `${g.localName}[aria-label="${U}"]`, w.unshift(v);
1260
+ } else if (I) {
1261
+ v = `${h.localName}[aria-label="${I}"]`, g.unshift(v);
1252
1262
  break;
1253
- } else if (q) {
1254
- v = `${g.localName}[role="${q}"]`, w.unshift(v);
1263
+ } else if (M) {
1264
+ v = `${h.localName}[role="${M}"]`, g.unshift(v);
1255
1265
  break;
1256
- } else if (O) {
1257
- v = `${g.localName}[name="${O}"]`, w.unshift(v);
1266
+ } else if (T) {
1267
+ v = `${h.localName}[name="${T}"]`, g.unshift(v);
1258
1268
  break;
1259
1269
  } else {
1260
- let T = g, S = 1;
1261
- for (; T.previousElementSibling; )
1262
- T = T.previousElementSibling, T.nodeName.toLowerCase() === g.nodeName.toLowerCase() && S++;
1270
+ let P = h, S = 1;
1271
+ for (; P.previousElementSibling; )
1272
+ P = P.previousElementSibling, P.nodeName.toLowerCase() === h.nodeName.toLowerCase() && S++;
1263
1273
  S > 1 && (v += `:nth-of-type(${S})`);
1264
1274
  }
1265
- w.unshift(v), g = g.parentElement;
1275
+ g.unshift(v), h = h.parentElement;
1266
1276
  }
1267
- return w.join(" > ");
1268
- }, l = !!(e.closest('[role="dialog"]') || e.closest('[aria-modal="true"]') || e.closest(".modal") || e.closest(".modal-content")), p = i(e), u = {};
1277
+ return g.join(" > ");
1278
+ }, l = dt(e.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')), p = i(e), u = {};
1269
1279
  ["placeholder", "aria-label", "name", "type", "alt", "title", "value", "role"].forEach((m) => {
1270
- const w = e.getAttribute(m);
1271
- w && (u[m] = w);
1280
+ const g = e.getAttribute(m);
1281
+ g && (u[m] = g);
1272
1282
  });
1273
1283
  const x = `${e.tagName.toLowerCase()}-${(e.innerText || "").slice(0, 20).replace(/\s+/g, "_")}-${p.split(" > ").slice(-1)}`;
1274
1284
  return {
@@ -1286,43 +1296,43 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1286
1296
  fallbackSelectors: [...new Set(a)].slice(0, 5),
1287
1297
  domPath: s.slice(-10),
1288
1298
  viewportSize: { width: window.innerWidth, height: window.innerHeight },
1289
- uiContext: en(e),
1290
- fingerprint: Br(e),
1299
+ uiContext: tn(e),
1300
+ fingerprint: Yr(e),
1291
1301
  metadata: {
1292
1302
  hint: `Edit ${t.split(":")[0]} at line ${t.split(":")[1] || "?"}`,
1293
- computedStyles: Jr(e),
1294
- viewportBreakpoint: Wr(),
1303
+ computedStyles: Zr(e),
1304
+ viewportBreakpoint: Ur(),
1295
1305
  outerHtml: e.outerHTML.slice(0, 1500),
1296
1306
  scrollPosition: { x: window.scrollX, y: window.scrollY },
1297
1307
  isModal: l
1298
1308
  }
1299
1309
  };
1300
- }, rn = () => {
1301
- const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: i } = qt(), [l, p] = k(!1), [u, x] = k(null), [m, w] = k(null), [g, v] = k(""), [V, L] = k(!1), [U, q] = k(!1), [O, T] = k(!1), [S, ve] = k([]), [I, M] = k(null), [ue, $e] = k(!1), [se, Z] = k(!1), [pe, me] = k({}), [F, K] = k(null), [B, ae] = k(!1), [oe, Q] = k(null), [c, f] = k(""), [C, E] = k({}), z = Oe(null), D = Oe(null), b = fe(() => {
1302
- D.current || (D.current = requestAnimationFrame(() => {
1303
- const d = {}, h = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal')).find((_) => Je(_)), H = !!h;
1304
- S.forEach((_) => {
1305
- if (!_.reference) return;
1306
- const j = Qr(_.reference), R = !!_.reference.metadata?.isModal;
1307
- if (j && Je(j)) {
1310
+ }, nn = () => {
1311
+ const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: i } = Bt(), [l, p] = k(!1), [u, x] = k(null), [m, g] = k(null), [h, v] = k(""), [R, V] = k(!1), [I, M] = k(!1), [T, P] = k(!1), [S, ve] = k([]), [z, F] = k(null), [ue, $e] = k(!1), [se, Z] = k(!1), [pe, me] = k({}), [H, K] = k(null), [B, ae] = k(!1), [oe, Q] = k(null), [c, f] = k(""), [C, E] = k({}), D = Oe(null), W = Oe(null), b = fe(() => {
1312
+ W.current || (W.current = requestAnimationFrame(() => {
1313
+ const d = {}, y = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((O) => dt(O) && Je(O)), U = !!y;
1314
+ S.forEach((O) => {
1315
+ if (!O.reference) return;
1316
+ const _ = en(O.reference), j = !!O.reference.metadata?.isModal;
1317
+ if (_ && Je(_)) {
1308
1318
  let X = !1;
1309
- if (H ? X = h.contains(j) : X = !R, !X) return;
1310
- const G = j.getBoundingClientRect(), ce = G.left + G.width / 2, ee = G.top + G.height / 2;
1319
+ if (U ? X = y.contains(_) : X = !j, !X) return;
1320
+ const $ = _.getBoundingClientRect(), ce = $.left + $.width / 2, ee = $.top + $.height / 2;
1311
1321
  if (ce >= 0 && ce <= window.innerWidth && ee >= 0 && ee <= window.innerHeight) {
1312
1322
  const be = document.elementFromPoint(ce, ee);
1313
- if (be && !j.contains(be) && !z.current?.contains(be))
1323
+ if (be && !_.contains(be) && !D.current?.contains(be))
1314
1324
  return;
1315
1325
  }
1316
- d[_._id] = {
1317
- top: G.top + window.scrollY,
1318
- left: G.left + window.scrollX,
1319
- width: G.width,
1320
- isModal: R
1326
+ d[O._id] = {
1327
+ top: $.top + window.scrollY,
1328
+ left: $.left + window.scrollX,
1329
+ width: $.width,
1330
+ isModal: j
1321
1331
  };
1322
1332
  }
1323
- }), E(d), D.current = null;
1333
+ }), E(d), W.current = null;
1324
1334
  }));
1325
- }, [S]), P = fe(async () => {
1335
+ }, [S]), A = fe(async () => {
1326
1336
  if (n) {
1327
1337
  Z(!0);
1328
1338
  try {
@@ -1330,8 +1340,8 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1330
1340
  headers: { "x-api-key": n }
1331
1341
  });
1332
1342
  if (d.ok) {
1333
- const y = await d.json();
1334
- ve(y.data || []);
1343
+ const w = await d.json();
1344
+ ve(w.data || []);
1335
1345
  }
1336
1346
  } catch (d) {
1337
1347
  console.error("Failed to fetch annotations", d);
@@ -1341,55 +1351,55 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1341
1351
  }
1342
1352
  }, [n, a]);
1343
1353
  J(() => {
1344
- O && S.length === 0 && !se && T(!1);
1345
- }, [O, S.length, se]), J(() => {
1354
+ T && S.length === 0 && !se && P(!1);
1355
+ }, [T, S.length, se]), J(() => {
1346
1356
  if (!l && S.length > 0) {
1347
1357
  b();
1348
- const d = new MutationObserver(() => b()), y = new ResizeObserver(() => b()), h = () => b();
1358
+ const d = new MutationObserver(() => b()), w = new ResizeObserver(() => b()), y = () => b();
1349
1359
  return d.observe(document.documentElement, {
1350
1360
  childList: !0,
1351
1361
  subtree: !0,
1352
1362
  attributes: !0
1353
- }), y.observe(document.documentElement), window.addEventListener("scroll", h, !0), () => {
1354
- d.disconnect(), y.disconnect(), window.removeEventListener("scroll", h, !0), D.current && cancelAnimationFrame(D.current);
1363
+ }), w.observe(document.documentElement), window.addEventListener("scroll", y, !0), () => {
1364
+ d.disconnect(), w.disconnect(), window.removeEventListener("scroll", y, !0), W.current && cancelAnimationFrame(W.current);
1355
1365
  };
1356
1366
  }
1357
1367
  }, [l, S.length, b]), J(() => {
1358
- P();
1359
- }, [P]), J(() => {
1360
- z.current = document.getElementById("viewgate-shadow-host");
1368
+ A();
1369
+ }, [A]), J(() => {
1370
+ D.current = document.getElementById("viewgate-shadow-host");
1361
1371
  }, []);
1362
1372
  const Y = fe((d) => {
1363
1373
  if (!l || m) return;
1364
- const y = Ze(d.clientX, d.clientY);
1365
- if (!y || z.current?.contains(y) || y.closest(".vg-no-capture")) {
1374
+ const w = Ze(d.clientX, d.clientY);
1375
+ if (!w || D.current?.contains(w) || w.closest(".vg-no-capture")) {
1366
1376
  x(null);
1367
1377
  return;
1368
1378
  }
1369
- const h = y.getBoundingClientRect();
1379
+ const y = w.getBoundingClientRect();
1370
1380
  x({
1371
- tag: y.tagName.toLowerCase(),
1372
- source: y.getAttribute("data-source-path") || "unknown:0",
1373
- rect: h,
1374
- element: y,
1375
- previewText: (y.innerText || "").slice(0, 100) || (y.getAttribute("placeholder") || "").slice(0, 100) || y.tagName.toLowerCase(),
1381
+ tag: w.tagName.toLowerCase(),
1382
+ source: w.getAttribute("data-source-path") || "unknown:0",
1383
+ rect: y,
1384
+ element: w,
1385
+ previewText: (w.innerText || "").slice(0, 100) || (w.getAttribute("placeholder") || "").slice(0, 100) || w.tagName.toLowerCase(),
1376
1386
  semanticReference: {
1377
- ...tn(y),
1387
+ ...rn(w),
1378
1388
  normalizedOffset: {
1379
- x: (d.clientX - h.left) / h.width,
1380
- y: (d.clientY - h.top) / h.height
1389
+ x: (d.clientX - y.left) / y.width,
1390
+ y: (d.clientY - y.top) / y.height
1381
1391
  }
1382
1392
  }
1383
1393
  });
1384
1394
  }, [l, m]), ie = fe(async (d) => {
1385
1395
  if (!l || m) return;
1386
- const y = Ze(d.clientX, d.clientY);
1387
- if (!(!y || z.current?.contains(y) || y.closest(".vg-no-capture")) && u) {
1388
- d.preventDefault(), d.stopPropagation(), q(!0);
1396
+ const w = Ze(d.clientX, d.clientY);
1397
+ if (!(!w || D.current?.contains(w) || w.closest(".vg-no-capture")) && u) {
1398
+ d.preventDefault(), d.stopPropagation(), M(!0);
1389
1399
  try {
1390
- const h = u.element.getBoundingClientRect(), H = 24, _ = 2, j = await Mr(document.body, {
1400
+ const y = u.element.getBoundingClientRect(), U = 24, O = 2, _ = await Fr(document.documentElement, {
1391
1401
  quality: 0.9,
1392
- pixelRatio: _,
1402
+ pixelRatio: O,
1393
1403
  width: window.innerWidth,
1394
1404
  height: window.innerHeight,
1395
1405
  style: {
@@ -1398,52 +1408,52 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1398
1408
  },
1399
1409
  filter: (ce) => {
1400
1410
  const ee = ce;
1401
- return !(z.current?.contains(ee) || ee.id === "viewgate-ui");
1411
+ return !(D.current?.contains(ee) || ee.id === "viewgate-ui");
1402
1412
  }
1403
- }), R = u.element.getBoundingClientRect(), X = await Xr(j, R, H, _), G = {
1413
+ }), j = u.element.getBoundingClientRect(), X = await Jr(_, j, U, O), $ = {
1404
1414
  ...u.semanticReference,
1405
1415
  metadata: {
1406
1416
  ...u.semanticReference.metadata,
1407
- screenshotUrl: j,
1417
+ screenshotUrl: _,
1408
1418
  elementScreenshot: X
1409
1419
  }
1410
1420
  };
1411
- w({
1421
+ g({
1412
1422
  ...u,
1413
1423
  visualPreview: X,
1414
- semanticReference: G
1424
+ semanticReference: $
1415
1425
  });
1416
- } catch (h) {
1417
- console.error("Failed to capture preview:", h), w(u);
1426
+ } catch (y) {
1427
+ console.error("Failed to capture preview:", y), g(u);
1418
1428
  } finally {
1419
- q(!1), x(null);
1429
+ M(!1), x(null);
1420
1430
  }
1421
1431
  }
1422
1432
  }, [l, u, m]);
1423
1433
  J(() => {
1424
- const d = (y) => {
1425
- if (y.key === "Escape") {
1426
- m ? w(null) : O ? T(!1) : l && p(!1);
1434
+ const d = (w) => {
1435
+ if (w.key === "Escape") {
1436
+ m ? g(null) : T ? P(!1) : l && p(!1);
1427
1437
  return;
1428
1438
  }
1429
- const H = (() => {
1430
- let R = document.activeElement;
1431
- for (; R && R.shadowRoot && R.shadowRoot.activeElement; )
1432
- R = R.shadowRoot.activeElement;
1433
- return R;
1439
+ const U = (() => {
1440
+ let j = document.activeElement;
1441
+ for (; j && j.shadowRoot && j.shadowRoot.activeElement; )
1442
+ j = j.shadowRoot.activeElement;
1443
+ return j;
1434
1444
  })();
1435
- if (["input", "textarea"].includes((H?.tagName || "").toLowerCase()) || H?.isContentEditable) return;
1436
- const j = y.key.toLowerCase();
1437
- j === "c" && !m && !O && p((R) => !R), j === "v" && !m && (S.length > 0 || O) && (T((R) => !R), O || p(!1));
1445
+ if (["input", "textarea"].includes((U?.tagName || "").toLowerCase()) || U?.isContentEditable) return;
1446
+ const _ = w.key.toLowerCase();
1447
+ _ === "c" && !m && !T && p((j) => !j), _ === "v" && !m && (S.length > 0 || T) && (P((j) => !j), T || p(!1));
1438
1448
  };
1439
1449
  return l && !m ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", d), window.addEventListener("mousemove", Y, !0), window.addEventListener("click", ie, !0), () => {
1440
1450
  document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", d), window.removeEventListener("mousemove", Y, !0), window.removeEventListener("click", ie, !0);
1441
1451
  };
1442
- }, [l, m, O, S, Y, ie]);
1443
- const ut = async () => {
1444
- if (!m || !g.trim()) return;
1445
- L(!0);
1446
- const { semanticReference: d } = m, [y, h] = (d.source || "").split(":"), H = h || "0";
1452
+ }, [l, m, T, S, Y, ie]);
1453
+ const pt = async () => {
1454
+ if (!m || !h.trim()) return;
1455
+ V(!0);
1456
+ const { semanticReference: d } = m, [w, y] = (d.source || "").split(":"), U = y || "0";
1447
1457
  try {
1448
1458
  if (!(await fetch(`${a}/api/annotations`, {
1449
1459
  method: "POST",
@@ -1452,10 +1462,10 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1452
1462
  "x-api-key": n
1453
1463
  },
1454
1464
  body: JSON.stringify({
1455
- filePath: y,
1456
- line: parseInt(H),
1465
+ filePath: w,
1466
+ line: parseInt(U),
1457
1467
  url: window.location.href,
1458
- message: g,
1468
+ message: h,
1459
1469
  componentName: d.componentPath || m.tag,
1460
1470
  reference: {
1461
1471
  ...d,
@@ -1468,19 +1478,24 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1468
1478
  }
1469
1479
  })
1470
1480
  })).ok) throw new Error("Backend failed");
1471
- e(r.success, "success"), w(null), v(""), p(!1), P();
1472
- } catch (_) {
1473
- console.error(_), e(r.error, "error");
1481
+ e(r.success, "success"), g(null), v(""), p(!1), A();
1482
+ } catch (O) {
1483
+ console.error(O), e(r.error, "error");
1474
1484
  } finally {
1475
- L(!1);
1485
+ V(!1);
1476
1486
  }
1477
1487
  };
1478
- return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:806", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:807", className: "vg-no-capture", children: [
1488
+ return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:868", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:869", className: "vg-no-capture", children: [
1479
1489
  !i && /* @__PURE__ */ o.jsx(
1480
1490
  "button",
1481
1491
  {
1482
1492
  onClick: (d) => {
1483
- d.stopPropagation(), s();
1493
+ d.stopPropagation(), F({
1494
+ title: r.exitConfirmTitle || "Close ViewGate?",
1495
+ message: r.exitConfirmMessage || "Are you sure you want to close ViewGate?",
1496
+ type: "danger",
1497
+ onConfirm: () => s()
1498
+ });
1484
1499
  },
1485
1500
  title: "Cerrar ViewGate",
1486
1501
  style: {
@@ -1508,10 +1523,10 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1508
1523
  onMouseLeave: (d) => {
1509
1524
  d.currentTarget.style.transform = "scale(1) rotate(0deg)", d.currentTarget.style.color = "#64748b", d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
1510
1525
  },
1511
- children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:846", size: 20, strokeWidth: 2.5 })
1526
+ children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:913", size: 20, strokeWidth: 2.5 })
1512
1527
  }
1513
1528
  ),
1514
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:851", style: { position: "fixed", bottom: "30px", right: "30px", zIndex: ke }, id: "viewgate-ui", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:852", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
1529
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:918", style: { position: "fixed", bottom: "30px", right: "30px", zIndex: ke }, id: "viewgate-ui", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:919", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
1515
1530
  /* @__PURE__ */ o.jsx(
1516
1531
  "button",
1517
1532
  {
@@ -1521,9 +1536,9 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1521
1536
  padding: "12px 24px",
1522
1537
  background: l ? "#ef4444" : void 0
1523
1538
  },
1524
- children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:861", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1525
- l ? /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:862", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:862", size: 20, className: "vg-animate-pop" }),
1526
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:863", children: l ? r.exitMode : r.enterMode })
1539
+ children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:928", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1540
+ l ? /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:929", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:929", size: 20, className: "vg-animate-pop" }),
1541
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:930", children: l ? r.exitMode : r.enterMode })
1527
1542
  ] })
1528
1543
  }
1529
1544
  ),
@@ -1531,18 +1546,18 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1531
1546
  "button",
1532
1547
  {
1533
1548
  onClick: () => {
1534
- T(!O), p(!1), w(null);
1549
+ P(!T), p(!1), g(null);
1535
1550
  },
1536
1551
  className: "vg-button-ghost vg-animate-pop",
1537
1552
  style: { animationDelay: "0.1s" },
1538
1553
  children: [
1539
- /* @__PURE__ */ o.jsx(Tt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:876", size: 20 }),
1540
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:877", children: r.viewComments })
1554
+ /* @__PURE__ */ o.jsx(Pt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:943", size: 20 }),
1555
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:944", children: r.viewComments })
1541
1556
  ]
1542
1557
  }
1543
1558
  )
1544
1559
  ] }) }),
1545
- U && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:885", style: {
1560
+ I && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:952", style: {
1546
1561
  position: "fixed",
1547
1562
  top: 0,
1548
1563
  left: 0,
@@ -1555,14 +1570,14 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1555
1570
  justifyContent: "center",
1556
1571
  zIndex: ke + 1,
1557
1572
  cursor: "wait"
1558
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:891", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1559
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:892", className: "vg-spinner" }),
1560
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:893", style: { fontWeight: 600, fontSize: "14px", color: "#1e293b" }, children: "Capturando..." })
1573
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:958", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1574
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:959", className: "vg-spinner" }),
1575
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:960", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
1561
1576
  ] }) }),
1562
1577
  l && !m && /* @__PURE__ */ o.jsx(
1563
1578
  "div",
1564
1579
  {
1565
- "data-source-path": "/src/components/ViewGateOverlay.tsx:900",
1580
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:967",
1566
1581
  className: "vg-backdrop-blur",
1567
1582
  style: {
1568
1583
  opacity: 1,
@@ -1574,36 +1589,36 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1574
1589
  ${u.rect.left}px ${u.rect.bottom}px,
1575
1590
  ${u.rect.left}px ${u.rect.top}px
1576
1591
  )` : "none",
1577
- zIndex: Fr
1592
+ zIndex: Dr
1578
1593
  }
1579
1594
  }
1580
1595
  ),
1581
- l && u && !m && !U && /* @__PURE__ */ o.jsx(
1596
+ l && u && !m && !I && /* @__PURE__ */ o.jsx(
1582
1597
  "div",
1583
1598
  {
1584
- "data-source-path": "/src/components/ViewGateOverlay.tsx:919",
1599
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:986",
1585
1600
  className: "vg-selection-pulse",
1586
1601
  style: {
1587
1602
  top: u.rect.top - 4,
1588
1603
  left: u.rect.left - 4,
1589
1604
  width: u.rect.width + 8,
1590
1605
  height: u.rect.height + 8,
1591
- zIndex: Dr
1606
+ zIndex: Hr
1592
1607
  },
1593
1608
  children: /* @__PURE__ */ o.jsxs(
1594
1609
  "div",
1595
1610
  {
1596
- "data-source-path": "/src/components/ViewGateOverlay.tsx:929",
1611
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:996",
1597
1612
  className: "vg-selection-label",
1598
1613
  style: {
1599
1614
  ...u.rect.top < 60 ? u.rect.bottom > window.innerHeight - 60 ? { top: "8px", bottom: "auto" } : { top: "100%", marginTop: "8px", bottom: "auto" } : { top: "-40px", bottom: "auto" },
1600
1615
  ...u.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
1601
1616
  },
1602
1617
  children: [
1603
- /* @__PURE__ */ o.jsx(Nt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:945", size: 16 }),
1604
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:946", style: { display: "flex", flexDirection: "column" }, children: [
1605
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:947", style: { fontWeight: 700 }, children: r.selectToComment }),
1606
- /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:948", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
1618
+ /* @__PURE__ */ o.jsx(Nt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1012", size: 16 }),
1619
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1013", style: { display: "flex", flexDirection: "column" }, children: [
1620
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1014", style: { fontWeight: 700 }, children: r.selectToComment }),
1621
+ /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1015", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
1607
1622
  Math.round(u.rect.width),
1608
1623
  " × ",
1609
1624
  Math.round(u.rect.height)
@@ -1614,7 +1629,7 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1614
1629
  )
1615
1630
  }
1616
1631
  ),
1617
- m && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:958", className: "vg-animate-fade", style: {
1632
+ m && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1025", className: "vg-animate-fade", style: {
1618
1633
  position: "fixed",
1619
1634
  top: 0,
1620
1635
  left: 0,
@@ -1626,13 +1641,13 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1626
1641
  alignItems: "center",
1627
1642
  justifyContent: "center",
1628
1643
  zIndex: Re
1629
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:963", className: "vg-glassmorphism vg-animate-slide", style: {
1644
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1030", className: "vg-glassmorphism vg-animate-slide", style: {
1630
1645
  padding: "40px",
1631
1646
  width: "500px",
1632
1647
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
1633
1648
  }, children: [
1634
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:967", style: { textAlign: "center", marginBottom: "32px" }, children: [
1635
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:968", style: {
1649
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1034", style: { textAlign: "center", marginBottom: "32px" }, children: [
1650
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1035", style: {
1636
1651
  width: "48px",
1637
1652
  height: "48px",
1638
1653
  background: "var(--vg-primary-gradient)",
@@ -1643,11 +1658,11 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1643
1658
  margin: "0 auto 16px",
1644
1659
  color: "white",
1645
1660
  boxShadow: "0 8px 16px rgba(99, 102, 241, 0.3)"
1646
- }, children: /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:973", size: 24 }) }),
1647
- /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:975", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1648
- /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:976", style: { margin: 0, color: "#64748b", fontSize: "15px" }, children: r.feedbackSubheader })
1661
+ }, children: /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1040", size: 24 }) }),
1662
+ /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1042", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1663
+ /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1043", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
1649
1664
  ] }),
1650
- m.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:980", style: {
1665
+ m.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1047", style: {
1651
1666
  marginBottom: "24px",
1652
1667
  borderRadius: "12px",
1653
1668
  overflow: "hidden",
@@ -1667,7 +1682,7 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1667
1682
  "textarea",
1668
1683
  {
1669
1684
  className: "vg-textarea",
1670
- value: g,
1685
+ value: h,
1671
1686
  onChange: (d) => v(d.target.value),
1672
1687
  rows: 4,
1673
1688
  placeholder: r.placeholder,
@@ -1675,13 +1690,13 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1675
1690
  style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
1676
1691
  }
1677
1692
  ),
1678
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1007", style: { display: "flex", gap: "12px" }, children: [
1693
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1074", style: { display: "flex", gap: "12px" }, children: [
1679
1694
  /* @__PURE__ */ o.jsx(
1680
1695
  "button",
1681
1696
  {
1682
- onClick: () => !V && w(null),
1697
+ onClick: () => !R && g(null),
1683
1698
  className: "vg-button-ghost",
1684
- disabled: V,
1699
+ disabled: R,
1685
1700
  style: { flex: 1, padding: "12px" },
1686
1701
  children: r.cancel
1687
1702
  }
@@ -1689,19 +1704,19 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1689
1704
  /* @__PURE__ */ o.jsx(
1690
1705
  "button",
1691
1706
  {
1692
- onClick: ut,
1707
+ onClick: pt,
1693
1708
  className: "vg-button-primary",
1694
- disabled: V || !g.trim(),
1709
+ disabled: R || !h.trim(),
1695
1710
  style: { flex: 2 },
1696
- children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1022", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1697
- V ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1023", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(Dt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1023", size: 18 }),
1698
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1024", children: V ? r.submitting : r.sendFeedback || "Send Comment" })
1711
+ children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1089", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1712
+ R ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1090", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(Ht, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1090", size: 18 }),
1713
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1091", children: R ? r.submitting : r.sendFeedback || "Send Comment" })
1699
1714
  ] })
1700
1715
  }
1701
1716
  )
1702
1717
  ] })
1703
1718
  ] }) }),
1704
- O && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1034", className: "vg-animate-fade", style: {
1719
+ T && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1101", className: "vg-animate-fade", style: {
1705
1720
  position: "fixed",
1706
1721
  top: 0,
1707
1722
  left: 0,
@@ -1713,23 +1728,23 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1713
1728
  alignItems: "center",
1714
1729
  justifyContent: "center",
1715
1730
  zIndex: Re
1716
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1039", className: "vg-glassmorphism vg-animate-slide", style: {
1731
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1106", className: "vg-glassmorphism vg-animate-slide", style: {
1717
1732
  padding: "32px",
1718
1733
  width: "650px",
1719
1734
  maxHeight: "85vh",
1720
1735
  display: "flex",
1721
1736
  flexDirection: "column"
1722
1737
  }, children: [
1723
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1043", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1724
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1044", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1725
- /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1045", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: F ? r.commentDetails : r.annotations }),
1726
- !F && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1049", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: S.length })
1738
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1110", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1739
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1111", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1740
+ /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1112", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: H ? r.commentDetails : r.annotations }),
1741
+ !H && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1116", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: S.length })
1727
1742
  ] }),
1728
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1054", style: { display: "flex", gap: "8px" }, children: [
1729
- F && /* @__PURE__ */ o.jsx(
1743
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1121", style: { display: "flex", gap: "8px" }, children: [
1744
+ H && /* @__PURE__ */ o.jsx(
1730
1745
  "button",
1731
1746
  {
1732
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1056",
1747
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1123",
1733
1748
  className: "vg-button-ghost",
1734
1749
  style: { padding: "6px 14px", fontSize: "12px" },
1735
1750
  onClick: () => K(null),
@@ -1739,58 +1754,58 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1739
1754
  /* @__PURE__ */ o.jsx(
1740
1755
  "button",
1741
1756
  {
1742
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1064",
1757
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1131",
1743
1758
  className: "vg-button-ghost",
1744
1759
  style: { padding: "8px", borderRadius: "50%" },
1745
1760
  onClick: () => {
1746
- T(!1), K(null);
1761
+ P(!1), K(null);
1747
1762
  },
1748
- children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1069", size: 20 })
1763
+ children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1136", size: 20 })
1749
1764
  }
1750
1765
  )
1751
1766
  ] })
1752
1767
  ] }),
1753
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1074", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: se ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1076", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1077", className: "vg-spinner" }) }) : (F ? S.filter((d) => d._id === F) : S).map((d, y) => /* @__PURE__ */ o.jsxs(
1768
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1141", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: se ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1143", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1144", className: "vg-spinner" }) }) : (H ? S.filter((d) => d._id === H) : S).map((d, w) => /* @__PURE__ */ o.jsxs(
1754
1769
  "div",
1755
1770
  {
1756
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1081",
1771
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1148",
1757
1772
  className: "vg-glassmorphism vg-animate-slide",
1758
1773
  style: {
1759
1774
  padding: "20px",
1760
1775
  marginBottom: "16px",
1761
1776
  border: "1px solid rgba(0,0,0,0.05)",
1762
1777
  background: "rgba(255,255,255,0.5)",
1763
- animationDelay: `${y * 0.05}s`
1778
+ animationDelay: `${w * 0.05}s`
1764
1779
  },
1765
1780
  children: [
1766
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1092", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1093", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
1767
- d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1095", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a" }, children: [
1768
- /* @__PURE__ */ o.jsx(ne, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1096", size: 14 }),
1781
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1159", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1160", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
1782
+ d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1162", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a" }, children: [
1783
+ /* @__PURE__ */ o.jsx(ne, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1163", size: 14 }),
1769
1784
  " ",
1770
1785
  r.readyForReview
1771
- ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1099", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c" }, children: [
1772
- /* @__PURE__ */ o.jsx(Me, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1100", size: 14 }),
1786
+ ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1166", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c" }, children: [
1787
+ /* @__PURE__ */ o.jsx(ze, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1167", size: 14 }),
1773
1788
  " ",
1774
1789
  r.pending
1775
1790
  ] }),
1776
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1103", style: { fontSize: "12px", color: "#94a3b8" }, children: qr(d.timestamp || d.createdAt || d.reference?.timestamp, t) })
1791
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1170", style: { fontSize: "12px", color: "#000000" }, children: Br(d.timestamp || d.createdAt || d.reference?.timestamp, t) })
1777
1792
  ] }) }),
1778
1793
  oe === d._id ? /* @__PURE__ */ o.jsx(
1779
1794
  "textarea",
1780
1795
  {
1781
1796
  className: "vg-textarea",
1782
1797
  value: c,
1783
- onChange: (h) => f(h.target.value),
1798
+ onChange: (y) => f(y.target.value),
1784
1799
  rows: 3,
1785
1800
  autoFocus: !0,
1786
1801
  style: { marginBottom: "16px" }
1787
1802
  }
1788
- ) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1119", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: d.message }),
1789
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1122", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: oe === d._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1803
+ ) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1186", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: d.message }),
1804
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1189", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: oe === d._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1790
1805
  /* @__PURE__ */ o.jsx(
1791
1806
  "button",
1792
1807
  {
1793
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1125",
1808
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1192",
1794
1809
  className: "vg-button-primary vg-animate-pop",
1795
1810
  style: { padding: "8px 16px", fontSize: "13px" },
1796
1811
  onClick: async () => {
@@ -1799,7 +1814,7 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1799
1814
  method: "PATCH",
1800
1815
  headers: { "Content-Type": "application/json", "x-api-key": n },
1801
1816
  body: JSON.stringify({ message: c })
1802
- })).ok && (Q(null), P(), e(r.updateSuccess, "success"));
1817
+ })).ok && (Q(null), A(), e(r.updateSuccess, "success"));
1803
1818
  } catch {
1804
1819
  e(r.error, "error");
1805
1820
  }
@@ -1807,19 +1822,19 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1807
1822
  children: r.save
1808
1823
  }
1809
1824
  ),
1810
- /* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1147", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => Q(null), children: r.cancel })
1825
+ /* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1214", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => Q(null), children: r.cancel })
1811
1826
  ] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1812
1827
  /* @__PURE__ */ o.jsxs(
1813
1828
  "button",
1814
1829
  {
1815
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1151",
1830
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1218",
1816
1831
  className: "vg-button-ghost vg-animate-pop",
1817
1832
  style: { padding: "8px 16px", fontSize: "13px" },
1818
1833
  onClick: () => {
1819
1834
  Q(d._id), f(d.message);
1820
1835
  },
1821
1836
  children: [
1822
- /* @__PURE__ */ o.jsx(It, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1159", size: 14 }),
1837
+ /* @__PURE__ */ o.jsx(Mt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1226", size: 14 }),
1823
1838
  " ",
1824
1839
  r.edit
1825
1840
  ]
@@ -1828,14 +1843,14 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1828
1843
  /* @__PURE__ */ o.jsxs(
1829
1844
  "button",
1830
1845
  {
1831
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1161",
1846
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1228",
1832
1847
  className: "vg-button-ghost vg-animate-pop",
1833
1848
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.05s" },
1834
1849
  onClick: () => {
1835
1850
  d.url && (window.location.href = d.url);
1836
1851
  },
1837
1852
  children: [
1838
- /* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1168", size: 14 }),
1853
+ /* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1235", size: 14 }),
1839
1854
  " ",
1840
1855
  r.review
1841
1856
  ]
@@ -1844,11 +1859,11 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1844
1859
  d.status === "pending" ? /* @__PURE__ */ o.jsxs(
1845
1860
  "button",
1846
1861
  {
1847
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1171",
1862
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1238",
1848
1863
  className: "vg-button-primary vg-animate-pop",
1849
1864
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
1850
1865
  onClick: () => {
1851
- M({
1866
+ F({
1852
1867
  title: r.markReadyConfirm,
1853
1868
  message: r.confirmMarkReady,
1854
1869
  type: "success",
@@ -1858,17 +1873,17 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1858
1873
  method: "PATCH",
1859
1874
  headers: { "Content-Type": "application/json", "x-api-key": n },
1860
1875
  body: JSON.stringify({ status: "ready_for_review" })
1861
- })).ok && (P(), e(r.updateSuccess, "success"));
1876
+ })).ok && (A(), e(r.updateSuccess, "success"));
1862
1877
  } catch {
1863
1878
  e(r.error, "error");
1864
1879
  } finally {
1865
- M(null);
1880
+ F(null);
1866
1881
  }
1867
1882
  }
1868
1883
  });
1869
1884
  },
1870
1885
  children: [
1871
- /* @__PURE__ */ o.jsx(ne, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1199", size: 14 }),
1886
+ /* @__PURE__ */ o.jsx(ne, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1266", size: 14 }),
1872
1887
  " ",
1873
1888
  r.markReady
1874
1889
  ]
@@ -1876,11 +1891,11 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1876
1891
  ) : /* @__PURE__ */ o.jsxs(
1877
1892
  "button",
1878
1893
  {
1879
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1202",
1894
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1269",
1880
1895
  className: "vg-button-ghost vg-animate-pop",
1881
1896
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
1882
1897
  onClick: () => {
1883
- M({
1898
+ F({
1884
1899
  title: r.reopenConfirm,
1885
1900
  message: r.confirmReopen,
1886
1901
  type: "success",
@@ -1891,17 +1906,17 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1891
1906
  method: "PATCH",
1892
1907
  headers: { "Content-Type": "application/json", "x-api-key": n },
1893
1908
  body: JSON.stringify({ status: "pending" })
1894
- })).ok && (P(), e(r.updateSuccess, "success"));
1909
+ })).ok && (A(), e(r.updateSuccess, "success"));
1895
1910
  } catch {
1896
1911
  e(r.error, "error");
1897
1912
  } finally {
1898
- M(null);
1913
+ F(null);
1899
1914
  }
1900
1915
  }
1901
1916
  });
1902
1917
  },
1903
1918
  children: [
1904
- /* @__PURE__ */ o.jsx(Mt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1230", size: 14 }),
1919
+ /* @__PURE__ */ o.jsx(Ft, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1297", size: 14 }),
1905
1920
  " ",
1906
1921
  r.reopen
1907
1922
  ]
@@ -1910,11 +1925,11 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1910
1925
  /* @__PURE__ */ o.jsx(
1911
1926
  "button",
1912
1927
  {
1913
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1233",
1928
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1300",
1914
1929
  className: "vg-button-ghost vg-animate-pop",
1915
1930
  style: { padding: "8px 12px", color: "#ef4444", borderColor: "#fee2e2", animationDelay: "0.15s" },
1916
1931
  onClick: () => {
1917
- M({
1932
+ F({
1918
1933
  title: r.deleteConfirm,
1919
1934
  message: r.confirmDelete,
1920
1935
  type: "danger",
@@ -1923,16 +1938,16 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1923
1938
  (await fetch(`${a}/api/annotations/${d._id}`, {
1924
1939
  method: "DELETE",
1925
1940
  headers: { "x-api-key": n }
1926
- })).ok && (P(), e(r.deleteSuccess, "success"));
1941
+ })).ok && (A(), e(r.deleteSuccess, "success"));
1927
1942
  } catch {
1928
1943
  e(r.error, "error");
1929
1944
  } finally {
1930
- M(null);
1945
+ F(null);
1931
1946
  }
1932
1947
  }
1933
1948
  });
1934
1949
  },
1935
- children: /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1260", size: 16 })
1950
+ children: /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1327", size: 16 })
1936
1951
  }
1937
1952
  )
1938
1953
  ] }) })
@@ -1941,7 +1956,7 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1941
1956
  d._id
1942
1957
  )) })
1943
1958
  ] }) }),
1944
- I && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1275", className: "vg-animate-fade", style: {
1959
+ z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1342", className: "vg-animate-fade", style: {
1945
1960
  position: "fixed",
1946
1961
  top: 0,
1947
1962
  left: 0,
@@ -1953,35 +1968,35 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1953
1968
  alignItems: "center",
1954
1969
  justifyContent: "center",
1955
1970
  zIndex: Re + 100
1956
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1280", className: "vg-glassmorphism vg-animate-slide", style: {
1971
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1347", className: "vg-glassmorphism vg-animate-slide", style: {
1957
1972
  padding: "40px",
1958
1973
  width: "420px",
1959
1974
  textAlign: "center",
1960
1975
  border: "1px solid rgba(255, 255, 255, 0.1)",
1961
1976
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
1962
1977
  }, children: [
1963
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1287", style: {
1978
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1354", style: {
1964
1979
  width: "64px",
1965
1980
  height: "64px",
1966
- background: I.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
1981
+ background: z.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
1967
1982
  borderRadius: "20px",
1968
1983
  display: "flex",
1969
1984
  alignItems: "center",
1970
1985
  justifyContent: "center",
1971
1986
  margin: "0 auto 24px",
1972
- color: I.type === "danger" ? "#ef4444" : "#6366f1",
1987
+ color: z.type === "danger" ? "#ef4444" : "#6366f1",
1973
1988
  transform: "rotate(-5deg)"
1974
- }, children: I.type === "danger" ? /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1296", size: 32 }) : /* @__PURE__ */ o.jsx(ne, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1296", size: 32 }) }),
1975
- /* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1298", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#f8fafc", letterSpacing: "-0.02em" }, children: I.title }),
1976
- /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1299", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#94a3b8", lineHeight: 1.6 }, children: I.message }),
1977
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1300", style: { display: "flex", gap: "16px" }, children: [
1989
+ }, children: z.type === "danger" ? /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1363", size: 32 }) : /* @__PURE__ */ o.jsx(ne, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1363", size: 32 }) }),
1990
+ /* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1365", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: z.title }),
1991
+ /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1366", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: z.message }),
1992
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1367", style: { display: "flex", gap: "16px" }, children: [
1978
1993
  /* @__PURE__ */ o.jsx(
1979
1994
  "button",
1980
1995
  {
1981
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1301",
1996
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1368",
1982
1997
  className: "vg-button-ghost",
1983
1998
  style: { flex: 1, height: "44px" },
1984
- onClick: () => !B && M(null),
1999
+ onClick: () => !B && F(null),
1985
2000
  disabled: B,
1986
2001
  children: r.no
1987
2002
  }
@@ -1989,13 +2004,13 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
1989
2004
  /* @__PURE__ */ o.jsx(
1990
2005
  "button",
1991
2006
  {
1992
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1309",
2007
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1376",
1993
2008
  className: "vg-button-primary",
1994
2009
  style: {
1995
2010
  flex: 1,
1996
2011
  height: "44px",
1997
- backgroundColor: I.type === "danger" ? "#ef4444" : void 0,
1998
- backgroundImage: I.type === "danger" ? "none" : void 0,
2012
+ backgroundColor: z.type === "danger" ? "#ef4444" : void 0,
2013
+ backgroundImage: z.type === "danger" ? "none" : void 0,
1999
2014
  display: "flex",
2000
2015
  alignItems: "center",
2001
2016
  justifyContent: "center",
@@ -2005,23 +2020,23 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
2005
2020
  onClick: async () => {
2006
2021
  ae(!0);
2007
2022
  try {
2008
- await I.onConfirm();
2023
+ await z.onConfirm();
2009
2024
  } catch (d) {
2010
2025
  console.error("Confirmation error:", d);
2011
2026
  } finally {
2012
2027
  ae(!1);
2013
2028
  }
2014
2029
  },
2015
- children: B ? /* @__PURE__ */ o.jsx(At, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1334", size: 18, className: "vg-animate-spin" }) : r.yes
2030
+ children: B ? /* @__PURE__ */ o.jsx(Gt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1401", size: 18, className: "vg-animate-spin" }) : r.yes
2016
2031
  }
2017
2032
  )
2018
2033
  ] })
2019
2034
  ] }) }),
2020
- !l && !O && S.map((d, y) => {
2021
- const h = C[d._id];
2022
- if (!h) return null;
2023
- const _ = S.slice(0, y).filter(
2024
- (j) => j.reference?.selector && j.reference.selector === d.reference?.selector
2035
+ !l && !T && S.map((d, w) => {
2036
+ const y = C[d._id];
2037
+ if (!y) return null;
2038
+ const O = S.slice(0, w).filter(
2039
+ (_) => _.reference?.selector && _.reference.selector === d.reference?.selector
2025
2040
  ).length * 34;
2026
2041
  return /* @__PURE__ */ o.jsxs(
2027
2042
  "div",
@@ -2029,38 +2044,38 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
2029
2044
  className: "vg-pin-container vg-animate-pop",
2030
2045
  style: {
2031
2046
  position: "fixed",
2032
- top: h.top - 20 - window.scrollY,
2033
- left: h.left + h.width / 2 - 16 + _ - window.scrollX,
2047
+ top: y.top - 20 - window.scrollY,
2048
+ left: y.left + y.width / 2 - 16 + O - window.scrollX,
2034
2049
  cursor: "pointer",
2035
- animationDelay: `${y * 0.08}s`,
2050
+ animationDelay: `${w * 0.08}s`,
2036
2051
  transition: "all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",
2037
- zIndex: Hr - y
2052
+ zIndex: Wr - w
2038
2053
  // Ensure staggered pins don't overlap tooltips weirdly
2039
2054
  },
2040
- onMouseEnter: (j) => {
2041
- const R = j.currentTarget.getBoundingClientRect();
2042
- window.innerHeight - R.bottom < 180 ? me((G) => ({ ...G, [d._id]: "vg-top" })) : me((G) => ({ ...G, [d._id]: "" }));
2055
+ onMouseEnter: (_) => {
2056
+ const j = _.currentTarget.getBoundingClientRect();
2057
+ window.innerHeight - j.bottom < 180 ? me(($) => ({ ...$, [d._id]: "vg-top" })) : me(($) => ({ ...$, [d._id]: "" }));
2043
2058
  },
2044
2059
  onClick: () => {
2045
- T(!0), K(d._id);
2060
+ P(!0), K(d._id);
2046
2061
  },
2047
2062
  children: [
2048
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1381", className: `vg-pin-tooltip ${pe[d._id] || ""}`, children: [
2049
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1382", style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "8px" }, children: [
2050
- d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1384", style: { display: "flex", alignItems: "center", gap: "6px", color: "#16a34a", fontWeight: 700, fontSize: "11px" }, children: [
2051
- /* @__PURE__ */ o.jsx(ne, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1385", size: 12 }),
2063
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1448", className: `vg-pin-tooltip ${pe[d._id] || ""}`, children: [
2064
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1449", style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "8px" }, children: [
2065
+ d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1451", style: { display: "flex", alignItems: "center", gap: "6px", color: "#16a34a", fontWeight: 700, fontSize: "11px" }, children: [
2066
+ /* @__PURE__ */ o.jsx(ne, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1452", size: 12 }),
2052
2067
  " ",
2053
2068
  r.readyForReview
2054
- ] }) : /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1388", style: { display: "flex", alignItems: "center", gap: "6px", color: h.isModal ? "#f59e0b" : "#ea580c", fontWeight: 700, fontSize: "11px" }, children: [
2055
- /* @__PURE__ */ o.jsx(Me, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1389", size: 12 }),
2069
+ ] }) : /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1455", style: { display: "flex", alignItems: "center", gap: "6px", color: y.isModal ? "#f59e0b" : "#ea580c", fontWeight: 700, fontSize: "11px" }, children: [
2070
+ /* @__PURE__ */ o.jsx(ze, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1456", size: 12 }),
2056
2071
  " ",
2057
2072
  r.pending
2058
2073
  ] }),
2059
- h.isModal && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1393", style: { display: "flex", alignItems: "center", gap: "6px", color: "#f59e0b", fontWeight: 700, fontSize: "11px", marginLeft: "auto" }, children: /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1394", children: "MODAL" }) })
2074
+ y.isModal && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1460", style: { display: "flex", alignItems: "center", gap: "6px", color: "#f59e0b", fontWeight: 700, fontSize: "11px", marginLeft: "auto" }, children: /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1461", children: "MODAL" }) })
2060
2075
  ] }),
2061
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1398", style: { fontWeight: 500, color: "#1e293b", lineHeight: 1.4 }, children: d.message })
2076
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1465", style: { fontWeight: 500, color: "#1e293b", lineHeight: 1.4 }, children: d.message })
2062
2077
  ] }),
2063
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1401", className: `vg-formal-pin ${d.status === "ready_for_review" ? "ready" : ""} ${h.isModal ? "modal-variant" : ""}`, children: d.status === "ready_for_review" ? /* @__PURE__ */ o.jsx(ne, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1402", size: 18 }) : h.isModal ? /* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1402", size: 16 }) : /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1402", size: 16 }) })
2078
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1468", className: `vg-formal-pin ${d.status === "ready_for_review" ? "ready" : ""} ${y.isModal ? "modal-variant" : ""}`, children: d.status === "ready_for_review" ? /* @__PURE__ */ o.jsx(ne, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1469", size: 18 }) : y.isModal ? /* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1469", size: 16 }) : /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1469", size: 16 }) })
2064
2079
  ]
2065
2080
  },
2066
2081
  `pin-${d._id}`
@@ -2068,37 +2083,37 @@ const we = 2147483647, ke = we, Re = 2e6, Fr = we - 10, Dr = we - 5, Hr = we - 1
2068
2083
  })
2069
2084
  ] }) });
2070
2085
  };
2071
- function dt(e, t, r) {
2086
+ function ut(e, t, r) {
2072
2087
  if (!t.endsWith(".tsx") && !t.endsWith(".jsx") || t.includes("node_modules")) return e;
2073
2088
  const n = (l) => l.replace(/\\/g, "/"), a = n(t).replace(n(r), "");
2074
2089
  return e.split(`
2075
2090
  `).map((l, p) => {
2076
2091
  const u = p + 1;
2077
- return l.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (x, m, w) => x.includes("data-source-path") || w === "Fragment" || w === "React.Fragment" ? x : `${m}<${w} data-source-path="${a}:${u}"`);
2092
+ return l.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (x, m, g) => x.includes("data-source-path") || g === "Fragment" || g === "React.Fragment" ? x : `${m}<${g} data-source-path="${a}:${u}"`);
2078
2093
  }).join(`
2079
2094
  `);
2080
2095
  }
2081
- function on() {
2096
+ function cn() {
2082
2097
  return {
2083
2098
  name: "vite-plugin-viewgate",
2084
2099
  enforce: "pre",
2085
2100
  transform(e, t) {
2086
2101
  return {
2087
- code: dt(e, t, process.cwd()),
2102
+ code: ut(e, t, process.cwd()),
2088
2103
  map: null
2089
2104
  };
2090
2105
  }
2091
2106
  };
2092
2107
  }
2093
- function cn(e) {
2108
+ function ln(e) {
2094
2109
  const t = this.resourcePath;
2095
- return t ? (process.env.NODE_ENV, dt(e, t, process.cwd())) : e;
2110
+ return t ? (process.env.NODE_ENV, ut(e, t, process.cwd())) : e;
2096
2111
  }
2097
2112
  export {
2098
- an as ViewGate,
2099
- rn as ViewGateOverlay,
2100
- dt as transformSourcePaths,
2101
- qt as useViewGate,
2102
- cn as viewgateNextLoader,
2103
- on as viewgatePlugin
2113
+ on as ViewGate,
2114
+ nn as ViewGateOverlay,
2115
+ ut as transformSourcePaths,
2116
+ Bt as useViewGate,
2117
+ ln as viewgateNextLoader,
2118
+ cn as viewgatePlugin
2104
2119
  };