viewgate-wrapper 1.10.18 → 1.10.19

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
- (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:linear-gradient(135deg,#f97316,#ea580c);border:3px solid white;box-shadow:0 4px 12px #ea580c66;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s ease}.vg-formal-pin.ready{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 4px 12px #10b98166}.vg-formal-pin.mixed{background:linear-gradient(135deg,#10b981,#059669);border:3px solid #f97316;box-shadow:0 4px 15px #f9731666}.vg-formal-pin.modal-variant{background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 4px 12px #f59e0b66;border-style:dashed}.vg-pin-tooltip{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%);padding:16px;border-radius:16px;background:#ffffffe6;backdrop-filter:blur(12px) saturate(160%);-webkit-backdrop-filter:blur(12px) saturate(160%);color:#1e293b;width:240px;font-size:13px;box-shadow:0 10px 40px #00000026;opacity:0;pointer-events:none;transition:all .3s cubic-bezier(.19,1,.22,1);border:1px solid rgba(255,255,255,.5);z-index:1000}.vg-tooltip-scroll{scrollbar-width:thin;scrollbar-color:rgba(99,102,241,.2) transparent}.vg-tooltip-scroll::-webkit-scrollbar{width:4px}.vg-tooltip-scroll::-webkit-scrollbar-track{background:transparent}.vg-tooltip-scroll::-webkit-scrollbar-thumb{background:#6366f14d;border-radius:10px}.vg-pin-badge{position:absolute;top:-8px;right:-8px;background:#f43f5e;color:#fff;font-size:10px;font-weight:800;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid white;box-shadow:0 4px 12px #f43f5e66;z-index:2}.vg-pin-tooltip.vg-top{top:auto;bottom:calc(100% + 12px)}.vg-pin-container:hover .vg-pin-tooltip{opacity:1;transform:translate(-50%) translateY(-5px)}.vg-action-bar{display:flex;gap:12px;padding:0;background:transparent;border:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.vg-custom-scrollbar::-webkit-scrollbar{width:6px}.vg-custom-scrollbar::-webkit-scrollbar-track{background:transparent}.vg-custom-scrollbar::-webkit-scrollbar-thumb{background:#6366f166;border-radius:10px;transition:all .2s ease}.vg-custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#6366f1b3}.vg-spinner{border:3px solid rgba(99,102,241,.1);border-top:3px solid var(--vg-primary);border-radius:50%;width:32px;height:32px;animation:vg-spin .8s linear infinite}@keyframes vg-spin{to{transform:rotate(360deg)}}.vg-animate-spin{animation:vg-spin .8s linear infinite}.vg-cursor-pointer,.vg-cursor-pointer *{cursor:pointer!important}.vg-url-tag{position:relative;cursor:help;transition:all .2s ease}.vg-url-tag:hover{background:#f1f5f9!important;border-color:var(--vg-primary)!important}.vg-url-tooltip{position:fixed;left:0;top:0;background:#0f172a;color:#fff;padding:8px 14px;border-radius:10px;font-size:11px;font-weight:500;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;box-shadow:0 10px 25px -5px #0006;z-index:2147483647;border:1px solid rgba(255,255,255,.1)}.vg-url-tooltip.visible{opacity:1}.vg-url-tooltip:after{content:"";position:absolute;left:50%;transform:translate(-50%);border-width:6px;border-style:solid}.vg-url-tooltip.vg-top:after{top:100%;border-color:#0f172a transparent transparent transparent}.vg-url-tooltip.vg-bottom:after{bottom:100%;border-color:transparent transparent #0f172a transparent}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import Mt, { useRef as pe, useState as S, useEffect as Z, forwardRef as wt, createElement as He, createContext as Nt, useContext as It, useCallback as ke } from "react";
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:linear-gradient(135deg,#f97316,#ea580c);border:3px solid white;box-shadow:0 4px 12px #ea580c66;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s ease}.vg-formal-pin.ready{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 4px 12px #10b98166}.vg-formal-pin.mixed{background:linear-gradient(135deg,#10b981,#059669);border:3px solid #f97316;box-shadow:0 4px 15px #f9731666}.vg-formal-pin.modal-variant{background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 4px 12px #f59e0b66;border-style:dashed}.vg-pin-tooltip{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%);padding:16px;border-radius:16px;background:#ffffffe6;backdrop-filter:blur(12px) saturate(160%);-webkit-backdrop-filter:blur(12px) saturate(160%);color:#1e293b;width:320px;font-size:13px;box-shadow:0 10px 40px #00000026;opacity:0;visibility:hidden;pointer-events:none;transition:all .3s cubic-bezier(.19,1,.22,1);border:1px solid rgba(255,255,255,.5);z-index:1000;overflow:hidden}.vg-tooltip-scroll{scrollbar-width:thin;scrollbar-color:rgba(99,102,241,.2) transparent;overflow-y:auto;overflow-x:hidden;padding-right:12px;scroll-behavior:smooth}.vg-tooltip-scroll::-webkit-scrollbar{width:4px}.vg-tooltip-scroll::-webkit-scrollbar-track{background:transparent}.vg-tooltip-scroll::-webkit-scrollbar-thumb{background:#6366f14d;border-radius:10px}.vg-tooltip-scroll::-webkit-scrollbar-thumb:hover{background:#6366f180}.vg-text-wrap{word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;white-space:pre-wrap}.vg-line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;max-height:2.8em}.vg-pin-badge{position:absolute;top:-8px;right:-8px;background:#f43f5e;color:#fff;font-size:10px;font-weight:800;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid white;box-shadow:0 4px 12px #f43f5e66;z-index:2}.vg-pin-tooltip.vg-top{top:auto;bottom:calc(100% + 12px)}.vg-pin-container:hover .vg-pin-tooltip{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%) translateY(-5px)}.vg-action-bar{display:flex;gap:12px;padding:0;background:transparent;border:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.vg-custom-scrollbar::-webkit-scrollbar{width:6px}.vg-custom-scrollbar::-webkit-scrollbar-track{background:transparent}.vg-custom-scrollbar::-webkit-scrollbar-thumb{background:#6366f166;border-radius:10px;transition:all .2s ease}.vg-custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#6366f1b3}.vg-spinner{border:3px solid rgba(99,102,241,.1);border-top:3px solid var(--vg-primary);border-radius:50%;width:32px;height:32px;animation:vg-spin .8s linear infinite}@keyframes vg-spin{to{transform:rotate(360deg)}}.vg-animate-spin{animation:vg-spin .8s linear infinite}.vg-cursor-pointer,.vg-cursor-pointer *{cursor:pointer!important}.vg-url-tag{position:relative;cursor:help;transition:all .2s ease}.vg-url-tag:hover{background:#f1f5f9!important;border-color:var(--vg-primary)!important}.vg-url-tooltip{position:fixed;left:0;top:0;background:#0f172a;color:#fff;padding:8px 14px;border-radius:10px;font-size:11px;font-weight:500;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;box-shadow:0 10px 25px -5px #0006;z-index:2147483647;border:1px solid rgba(255,255,255,.1)}.vg-url-tooltip.visible{opacity:1}.vg-url-tooltip:after{content:"";position:absolute;left:50%;transform:translate(-50%);border-width:6px;border-style:solid}.vg-url-tooltip.vg-top:after{top:100%;border-color:#0f172a transparent transparent transparent}.vg-url-tooltip.vg-bottom:after{bottom:100%;border-color:transparent transparent #0f172a transparent}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import $t, { useRef as ce, useState as b, useEffect as X, forwardRef as yt, createElement as We, createContext as Mt, useContext as Nt, useMemo as It, useCallback as ke } from "react";
3
3
  import { createPortal as Lt } from "react-dom";
4
- var Re = { exports: {} }, we = {};
5
- var Qe;
4
+ var Re = { exports: {} }, xe = {};
5
+ var et;
6
6
  function zt() {
7
- if (Qe) return we;
8
- Qe = 1;
7
+ if (et) return xe;
8
+ et = 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 c = null;
@@ -22,248 +22,248 @@ function zt() {
22
22
  props: s
23
23
  };
24
24
  }
25
- return we.Fragment = t, we.jsx = r, we.jsxs = r, we;
25
+ return xe.Fragment = t, xe.jsx = r, xe.jsxs = r, xe;
26
26
  }
27
- var ve = {};
28
- var et;
27
+ var ye = {};
28
+ var tt;
29
29
  function Dt() {
30
- return et || (et = 1, process.env.NODE_ENV !== "production" && (function() {
31
- function e(d) {
32
- if (d == null) return null;
33
- if (typeof d == "function")
34
- return d.$$typeof === me ? null : d.displayName || d.name || null;
35
- if (typeof d == "string") return d;
36
- switch (d) {
37
- case F:
30
+ return tt || (tt = 1, process.env.NODE_ENV !== "production" && (function() {
31
+ function e(l) {
32
+ if (l == null) return null;
33
+ if (typeof l == "function")
34
+ return l.$$typeof === le ? null : l.displayName || l.name || null;
35
+ if (typeof l == "string") return l;
36
+ switch (l) {
37
+ case te:
38
38
  return "Fragment";
39
- case X:
39
+ case be:
40
40
  return "Profiler";
41
- case Y:
41
+ case ve:
42
42
  return "StrictMode";
43
43
  case Ae:
44
44
  return "Suspense";
45
- case D:
45
+ case I:
46
46
  return "SuspenseList";
47
- case Ye:
47
+ case Xe:
48
48
  return "Activity";
49
49
  }
50
- if (typeof d == "object")
51
- switch (typeof d.tag == "number" && console.error(
50
+ if (typeof l == "object")
51
+ switch (typeof l.tag == "number" && console.error(
52
52
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
53
- ), d.$$typeof) {
54
- case $:
53
+ ), l.$$typeof) {
54
+ case W:
55
55
  return "Portal";
56
- case J:
57
- return d.displayName || "Context";
58
- case L:
59
- return (d._context.displayName || "Context") + ".Consumer";
60
- case _:
61
- var x = d.render;
62
- return d = d.displayName, d || (d = x.displayName || x.name || "", d = d !== "" ? "ForwardRef(" + d + ")" : "ForwardRef"), d;
63
- case H:
64
- return x = d.displayName || null, x !== null ? x : e(d.type) || "Memo";
65
- case Ce:
66
- x = d._payload, d = d._init;
56
+ case q:
57
+ return l.displayName || "Context";
58
+ case M:
59
+ return (l._context.displayName || "Context") + ".Consumer";
60
+ case P:
61
+ var g = l.render;
62
+ return l = l.displayName, l || (l = g.displayName || g.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
63
+ case z:
64
+ return g = l.displayName || null, g !== null ? g : e(l.type) || "Memo";
65
+ case Se:
66
+ g = l._payload, l = l._init;
67
67
  try {
68
- return e(d(x));
68
+ return e(l(g));
69
69
  } catch {
70
70
  }
71
71
  }
72
72
  return null;
73
73
  }
74
- function t(d) {
75
- return "" + d;
74
+ function t(l) {
75
+ return "" + l;
76
76
  }
77
- function r(d) {
77
+ function r(l) {
78
78
  try {
79
- t(d);
80
- var x = !1;
79
+ t(l);
80
+ var g = !1;
81
81
  } catch {
82
- x = !0;
82
+ g = !0;
83
83
  }
84
- if (x) {
85
- x = console;
86
- var b = x.error, R = typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object";
87
- return b.call(
88
- x,
84
+ if (g) {
85
+ g = console;
86
+ var S = g.error, v = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
87
+ return S.call(
88
+ g,
89
89
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
90
- R
91
- ), t(d);
90
+ v
91
+ ), t(l);
92
92
  }
93
93
  }
94
- function n(d) {
95
- if (d === F) return "<>";
96
- if (typeof d == "object" && d !== null && d.$$typeof === Ce)
94
+ function n(l) {
95
+ if (l === te) return "<>";
96
+ if (typeof l == "object" && l !== null && l.$$typeof === Se)
97
97
  return "<...>";
98
98
  try {
99
- var x = e(d);
100
- return x ? "<" + x + ">" : "<...>";
99
+ var g = e(l);
100
+ return g ? "<" + g + ">" : "<...>";
101
101
  } catch {
102
102
  return "<...>";
103
103
  }
104
104
  }
105
105
  function a() {
106
- var d = se.A;
107
- return d === null ? null : d.getOwner();
106
+ var l = re.A;
107
+ return l === null ? null : l.getOwner();
108
108
  }
109
109
  function s() {
110
110
  return Error("react-stack-top-frame");
111
111
  }
112
- function c(d) {
113
- if (Se.call(d, "key")) {
114
- var x = Object.getOwnPropertyDescriptor(d, "key").get;
115
- if (x && x.isReactWarning) return !1;
112
+ function c(l) {
113
+ if (Ce.call(l, "key")) {
114
+ var g = Object.getOwnPropertyDescriptor(l, "key").get;
115
+ if (g && g.isReactWarning) return !1;
116
116
  }
117
- return d.key !== void 0;
117
+ return l.key !== void 0;
118
118
  }
119
- function i(d, x) {
120
- function b() {
121
- oe || (oe = !0, console.error(
119
+ function i(l, g) {
120
+ function S() {
121
+ ne || (ne = !0, console.error(
122
122
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
123
- x
123
+ g
124
124
  ));
125
125
  }
126
- b.isReactWarning = !0, Object.defineProperty(d, "key", {
127
- get: b,
126
+ S.isReactWarning = !0, Object.defineProperty(l, "key", {
127
+ get: S,
128
128
  configurable: !0
129
129
  });
130
130
  }
131
131
  function u() {
132
- var d = e(this.type);
133
- return Q[d] || (Q[d] = !0, console.error(
132
+ var l = e(this.type);
133
+ return Z[l] || (Z[l] = !0, console.error(
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
- )), d = this.props.ref, d !== void 0 ? d : null;
135
+ )), l = this.props.ref, l !== void 0 ? l : null;
136
136
  }
137
- function p(d, x, b, R, B, ie) {
138
- var C = b.ref;
139
- return d = {
140
- $$typeof: T,
141
- type: d,
142
- key: x,
143
- props: b,
144
- _owner: R
145
- }, (C !== void 0 ? C : null) !== null ? Object.defineProperty(d, "ref", {
137
+ function p(l, g, S, v, ae, U) {
138
+ var E = S.ref;
139
+ return l = {
140
+ $$typeof: N,
141
+ type: l,
142
+ key: g,
143
+ props: S,
144
+ _owner: v
145
+ }, (E !== void 0 ? E : null) !== null ? Object.defineProperty(l, "ref", {
146
146
  enumerable: !1,
147
147
  get: u
148
- }) : Object.defineProperty(d, "ref", { enumerable: !1, value: null }), d._store = {}, Object.defineProperty(d._store, "validated", {
148
+ }) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
149
149
  configurable: !1,
150
150
  enumerable: !1,
151
151
  writable: !0,
152
152
  value: 0
153
- }), Object.defineProperty(d, "_debugInfo", {
153
+ }), Object.defineProperty(l, "_debugInfo", {
154
154
  configurable: !1,
155
155
  enumerable: !1,
156
156
  writable: !0,
157
157
  value: null
158
- }), Object.defineProperty(d, "_debugStack", {
158
+ }), Object.defineProperty(l, "_debugStack", {
159
159
  configurable: !1,
160
160
  enumerable: !1,
161
161
  writable: !0,
162
- value: B
163
- }), Object.defineProperty(d, "_debugTask", {
162
+ value: ae
163
+ }), Object.defineProperty(l, "_debugTask", {
164
164
  configurable: !1,
165
165
  enumerable: !1,
166
166
  writable: !0,
167
- value: ie
168
- }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
167
+ value: U
168
+ }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
169
169
  }
170
- function m(d, x, b, R, B, ie) {
171
- var C = x.children;
172
- if (C !== void 0)
173
- if (R)
174
- if (Ee(C)) {
175
- for (R = 0; R < C.length; R++)
176
- f(C[R]);
177
- Object.freeze && Object.freeze(C);
170
+ function m(l, g, S, v, ae, U) {
171
+ var E = g.children;
172
+ if (E !== void 0)
173
+ if (v)
174
+ if (Ee(E)) {
175
+ for (v = 0; v < E.length; v++)
176
+ f(E[v]);
177
+ Object.freeze && Object.freeze(E);
178
178
  } else
179
179
  console.error(
180
180
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
181
181
  );
182
- else f(C);
183
- if (Se.call(x, "key")) {
184
- C = e(d);
185
- var M = Object.keys(x).filter(function(ee) {
186
- return ee !== "key";
182
+ else f(E);
183
+ if (Ce.call(g, "key")) {
184
+ E = e(l);
185
+ var V = Object.keys(g).filter(function(Ge) {
186
+ return Ge !== "key";
187
187
  });
188
- R = 0 < M.length ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}", he[C + R] || (M = 0 < M.length ? "{" + M.join(": ..., ") + ": ...}" : "{}", console.error(
188
+ v = 0 < V.length ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}", ue[E + v] || (V = 0 < V.length ? "{" + V.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} />
192
192
  React keys must be passed directly to JSX without using spread:
193
193
  let props = %s;
194
194
  <%s key={someKey} {...props} />`,
195
- R,
196
- C,
197
- M,
198
- C
199
- ), he[C + R] = !0);
195
+ v,
196
+ E,
197
+ V,
198
+ E
199
+ ), ue[E + v] = !0);
200
200
  }
201
- if (C = null, b !== void 0 && (r(b), C = "" + b), c(x) && (r(x.key), C = "" + x.key), "key" in x) {
202
- b = {};
203
- for (var ge in x)
204
- ge !== "key" && (b[ge] = x[ge]);
205
- } else b = x;
206
- return C && i(
207
- b,
208
- typeof d == "function" ? d.displayName || d.name || "Unknown" : d
201
+ if (E = null, S !== void 0 && (r(S), E = "" + S), c(g) && (r(g.key), E = "" + g.key), "key" in g) {
202
+ S = {};
203
+ for (var H in g)
204
+ H !== "key" && (S[H] = g[H]);
205
+ } else S = g;
206
+ return E && i(
207
+ S,
208
+ typeof l == "function" ? l.displayName || l.name || "Unknown" : l
209
209
  ), p(
210
- d,
211
- C,
212
- b,
210
+ l,
211
+ E,
212
+ S,
213
213
  a(),
214
- B,
215
- ie
214
+ ae,
215
+ U
216
216
  );
217
217
  }
218
- function f(d) {
219
- E(d) ? d._store && (d._store.validated = 1) : typeof d == "object" && d !== null && d.$$typeof === Ce && (d._payload.status === "fulfilled" ? E(d._payload.value) && d._payload.value._store && (d._payload.value._store.validated = 1) : d._store && (d._store.validated = 1));
218
+ function f(l) {
219
+ j(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === Se && (l._payload.status === "fulfilled" ? j(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
220
220
  }
221
- function E(d) {
222
- return typeof d == "object" && d !== null && d.$$typeof === T;
221
+ function j(l) {
222
+ return typeof l == "object" && l !== null && l.$$typeof === N;
223
223
  }
224
- var O = Mt, T = /* @__PURE__ */ Symbol.for("react.transitional.element"), $ = /* @__PURE__ */ Symbol.for("react.portal"), F = /* @__PURE__ */ Symbol.for("react.fragment"), Y = /* @__PURE__ */ Symbol.for("react.strict_mode"), X = /* @__PURE__ */ Symbol.for("react.profiler"), L = /* @__PURE__ */ Symbol.for("react.consumer"), J = /* @__PURE__ */ Symbol.for("react.context"), _ = /* @__PURE__ */ Symbol.for("react.forward_ref"), Ae = /* @__PURE__ */ Symbol.for("react.suspense"), D = /* @__PURE__ */ Symbol.for("react.suspense_list"), H = /* @__PURE__ */ Symbol.for("react.memo"), Ce = /* @__PURE__ */ Symbol.for("react.lazy"), Ye = /* @__PURE__ */ Symbol.for("react.activity"), me = /* @__PURE__ */ Symbol.for("react.client.reference"), se = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Se = Object.prototype.hasOwnProperty, Ee = Array.isArray, W = console.createTask ? console.createTask : function() {
224
+ var _ = $t, N = /* @__PURE__ */ Symbol.for("react.transitional.element"), W = /* @__PURE__ */ Symbol.for("react.portal"), te = /* @__PURE__ */ Symbol.for("react.fragment"), ve = /* @__PURE__ */ Symbol.for("react.strict_mode"), be = /* @__PURE__ */ Symbol.for("react.profiler"), M = /* @__PURE__ */ Symbol.for("react.consumer"), q = /* @__PURE__ */ Symbol.for("react.context"), P = /* @__PURE__ */ Symbol.for("react.forward_ref"), Ae = /* @__PURE__ */ Symbol.for("react.suspense"), I = /* @__PURE__ */ Symbol.for("react.suspense_list"), z = /* @__PURE__ */ Symbol.for("react.memo"), Se = /* @__PURE__ */ Symbol.for("react.lazy"), Xe = /* @__PURE__ */ Symbol.for("react.activity"), le = /* @__PURE__ */ Symbol.for("react.client.reference"), re = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ce = Object.prototype.hasOwnProperty, Ee = Array.isArray, D = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
- O = {
228
- react_stack_bottom_frame: function(d) {
229
- return d();
227
+ _ = {
228
+ react_stack_bottom_frame: function(l) {
229
+ return l();
230
230
  }
231
231
  };
232
- var oe, Q = {}, fe = O.react_stack_bottom_frame.bind(
233
- O,
232
+ var ne, Z = {}, de = _.react_stack_bottom_frame.bind(
233
+ _,
234
234
  s
235
- )(), U = W(n(s)), he = {};
236
- ve.Fragment = F, ve.jsx = function(d, x, b) {
237
- var R = 1e4 > se.recentlyCreatedOwnerStacks++;
235
+ )(), F = D(n(s)), ue = {};
236
+ ye.Fragment = te, ye.jsx = function(l, g, S) {
237
+ var v = 1e4 > re.recentlyCreatedOwnerStacks++;
238
238
  return m(
239
- d,
240
- x,
241
- b,
239
+ l,
240
+ g,
241
+ S,
242
242
  !1,
243
- R ? Error("react-stack-top-frame") : fe,
244
- R ? W(n(d)) : U
243
+ v ? Error("react-stack-top-frame") : de,
244
+ v ? D(n(l)) : F
245
245
  );
246
- }, ve.jsxs = function(d, x, b) {
247
- var R = 1e4 > se.recentlyCreatedOwnerStacks++;
246
+ }, ye.jsxs = function(l, g, S) {
247
+ var v = 1e4 > re.recentlyCreatedOwnerStacks++;
248
248
  return m(
249
- d,
250
- x,
251
- b,
249
+ l,
250
+ g,
251
+ S,
252
252
  !0,
253
- R ? Error("react-stack-top-frame") : fe,
254
- R ? W(n(d)) : U
253
+ v ? Error("react-stack-top-frame") : de,
254
+ v ? D(n(l)) : F
255
255
  );
256
256
  };
257
- })()), ve;
257
+ })()), ye;
258
258
  }
259
- var tt;
259
+ var rt;
260
260
  function Ft() {
261
- return tt || (tt = 1, process.env.NODE_ENV === "production" ? Re.exports = zt() : Re.exports = Dt()), Re.exports;
261
+ return rt || (rt = 1, process.env.NODE_ENV === "production" ? Re.exports = zt() : Re.exports = Dt()), Re.exports;
262
262
  }
263
263
  var o = Ft();
264
264
  const Ht = ({ children: e }) => {
265
- const t = pe(null), [r, n] = S(null);
266
- return Z(() => {
265
+ const t = ce(null), [r, n] = b(null);
266
+ return X(() => {
267
267
  if (t.current && !t.current.shadowRoot) {
268
268
  const a = t.current.attachShadow({ mode: "open" });
269
269
  document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach((i) => {
@@ -274,13 +274,13 @@ const Ht = ({ children: e }) => {
274
274
  }
275
275
  }, []), /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ShadowRootWrapper.tsx:38", ref: t, id: "viewgate-shadow-host", children: r && Lt(e, r) });
276
276
  };
277
- const vt = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim();
277
+ const wt = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim();
278
278
  const Wt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
279
279
  const Ut = (e) => e.replace(
280
280
  /^([A-Z])|[\s-_]+(\w)/g,
281
281
  (t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
282
282
  );
283
- const rt = (e) => {
283
+ const nt = (e) => {
284
284
  const t = Ut(e);
285
285
  return t.charAt(0).toUpperCase() + t.slice(1);
286
286
  };
@@ -301,7 +301,7 @@ const qt = (e) => {
301
301
  return !0;
302
302
  return !1;
303
303
  };
304
- const Yt = wt(
304
+ const Yt = yt(
305
305
  ({
306
306
  color: e = "currentColor",
307
307
  size: t = 24,
@@ -311,7 +311,7 @@ const Yt = wt(
311
311
  children: s,
312
312
  iconNode: c,
313
313
  ...i
314
- }, u) => He(
314
+ }, u) => We(
315
315
  "svg",
316
316
  {
317
317
  ref: u,
@@ -320,49 +320,49 @@ const Yt = wt(
320
320
  height: t,
321
321
  stroke: e,
322
322
  strokeWidth: n ? Number(r) * 24 / Number(t) : r,
323
- className: vt("lucide", a),
323
+ className: wt("lucide", a),
324
324
  ...!s && !qt(i) && { "aria-hidden": "true" },
325
325
  ...i
326
326
  },
327
327
  [
328
- ...c.map(([p, m]) => He(p, m)),
328
+ ...c.map(([p, m]) => We(p, m)),
329
329
  ...Array.isArray(s) ? s : [s]
330
330
  ]
331
331
  )
332
332
  );
333
- const P = (e, t) => {
334
- const r = wt(
335
- ({ className: n, ...a }, s) => He(Yt, {
333
+ const T = (e, t) => {
334
+ const r = yt(
335
+ ({ className: n, ...a }, s) => We(Yt, {
336
336
  ref: s,
337
337
  iconNode: t,
338
- className: vt(
339
- `lucide-${Wt(rt(e))}`,
338
+ className: wt(
339
+ `lucide-${Wt(nt(e))}`,
340
340
  `lucide-${e}`,
341
341
  n
342
342
  ),
343
343
  ...a
344
344
  })
345
345
  );
346
- return r.displayName = rt(e), r;
346
+ return r.displayName = nt(e), r;
347
347
  };
348
348
  const Xt = [
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
- ], Jt = P("circle-alert", Xt);
352
+ ], Jt = T("circle-alert", Xt);
353
353
  const Zt = [
354
354
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
355
355
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
356
- ], ue = P("circle-check", Zt);
356
+ ], ie = T("circle-check", Zt);
357
357
  const Kt = [
358
358
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
359
359
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
360
- ], nt = P("clock", Kt);
360
+ ], at = T("clock", Kt);
361
361
  const Qt = [
362
362
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
363
363
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
364
364
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
365
- ], at = P("external-link", Qt);
365
+ ], st = T("external-link", Qt);
366
366
  const er = [
367
367
  [
368
368
  "path",
@@ -372,12 +372,12 @@ const er = [
372
372
  }
373
373
  ],
374
374
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
375
- ], tr = P("eye", er);
375
+ ], tr = T("eye", er);
376
376
  const rr = [
377
377
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
378
378
  ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
379
379
  ["path", { d: "M2 12h20", key: "9i4pu4" }]
380
- ], nr = P("globe", rr);
380
+ ], nr = T("globe", rr);
381
381
  const ar = [
382
382
  ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
383
383
  ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
@@ -385,8 +385,8 @@ const ar = [
385
385
  ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
386
386
  ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
387
387
  ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
388
- ], st = P("grip-vertical", ar);
389
- const sr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], or = P("loader-circle", sr);
388
+ ], ot = T("grip-vertical", ar);
389
+ const sr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], or = T("loader-circle", sr);
390
390
  const ir = [
391
391
  [
392
392
  "path",
@@ -395,7 +395,7 @@ const ir = [
395
395
  key: "18887p"
396
396
  }
397
397
  ]
398
- ], je = P("message-square", ir);
398
+ ], je = T("message-square", ir);
399
399
  const cr = [
400
400
  [
401
401
  "path",
@@ -404,7 +404,7 @@ const cr = [
404
404
  key: "edeuup"
405
405
  }
406
406
  ]
407
- ], lr = P("mouse-pointer-2", cr);
407
+ ], lr = T("mouse-pointer-2", cr);
408
408
  const dr = [
409
409
  [
410
410
  "path",
@@ -414,11 +414,11 @@ const dr = [
414
414
  }
415
415
  ],
416
416
  ["path", { d: "m15 5 4 4", key: "1mk7zo" }]
417
- ], ur = P("pencil", dr);
417
+ ], ur = T("pencil", dr);
418
418
  const pr = [
419
419
  ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
420
420
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
421
- ], mr = P("rotate-ccw", pr);
421
+ ], mr = T("rotate-ccw", pr);
422
422
  const fr = [
423
423
  [
424
424
  "path",
@@ -428,18 +428,18 @@ const fr = [
428
428
  }
429
429
  ],
430
430
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
431
- ], hr = P("send", fr);
431
+ ], hr = T("send", fr);
432
432
  const gr = [
433
433
  ["path", { d: "M10 11v6", key: "nco0om" }],
434
434
  ["path", { d: "M14 11v6", key: "outv1u" }],
435
435
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
436
436
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
437
437
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
438
- ], ot = P("trash-2", gr);
438
+ ], it = T("trash-2", gr);
439
439
  const xr = [
440
440
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
441
441
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
442
- ], Ie = P("x", xr), yr = {
442
+ ], Le = T("x", xr), yr = {
443
443
  en: {
444
444
  enterMode: "Enter Feedback Mode",
445
445
  exitMode: "Exit Mode",
@@ -532,32 +532,32 @@ const xr = [
532
532
  exitConfirmTitle: "¿Cerrar ViewGate?",
533
533
  exitConfirmMessage: "¿Estás seguro de que deseas cerrar ViewGate? Puedes volver a activarlo en cualquier momento agregando ?viewgate=true a la URL."
534
534
  }
535
- }, bt = Nt(void 0), wr = () => {
536
- const e = It(bt);
535
+ }, vt = Mt(void 0), wr = () => {
536
+ const e = Nt(vt);
537
537
  if (!e) throw new Error("useViewGate must be used within a ViewGateProvider");
538
538
  return e;
539
- }, We = "viewgate_enabled", vr = () => typeof window > "u" ? !1 : new URLSearchParams(window.location.search).has("viewgate") ? (sessionStorage.setItem(We, "true"), !0) : sessionStorage.getItem(We) === "true", _n = ({
539
+ }, Ue = "viewgate_enabled", vr = () => typeof window > "u" ? !1 : new URLSearchParams(window.location.search).has("viewgate") ? (sessionStorage.setItem(Ue, "true"), !0) : sessionStorage.getItem(Ue) === "true", Gn = ({
540
540
  children: e,
541
541
  language: t = "es",
542
542
  apiKey: r,
543
543
  baseUrl: n = "https://view-gate.vercel.app"
544
544
  }) => {
545
- const [a, s] = S(!1), [c, i] = S([]);
546
- Z(() => {
545
+ const [a, s] = b(!1), [c, i] = b([]);
546
+ X(() => {
547
547
  s(vr());
548
548
  }, []);
549
549
  const u = () => {
550
- if (sessionStorage.removeItem(We), s(!1), typeof window < "u") {
550
+ if (sessionStorage.removeItem(Ue), s(!1), typeof window < "u") {
551
551
  const f = new URL(window.location.href);
552
552
  f.searchParams.delete("viewgate"), window.history.replaceState({}, "", f.toString());
553
553
  }
554
- }, p = (f, E) => {
555
- const O = Date.now();
556
- i((T) => [...T, { id: O, message: f, type: E }]), setTimeout(() => {
557
- i((T) => T.filter(($) => $.id !== O));
554
+ }, p = (f, j) => {
555
+ const _ = Date.now();
556
+ i((N) => [...N, { id: _, message: f, type: j }]), setTimeout(() => {
557
+ i((N) => N.filter((W) => W.id !== _));
558
558
  }, 4e3);
559
559
  }, m = yr[t];
560
- return /* @__PURE__ */ o.jsxs(bt.Provider, { "data-source-path": "/src/components/ViewGateProvider.tsx:252", value: {
560
+ return /* @__PURE__ */ o.jsxs(vt.Provider, { "data-source-path": "/src/components/ViewGateProvider.tsx:252", value: {
561
561
  addToast: p,
562
562
  language: t,
563
563
  t: m,
@@ -568,9 +568,9 @@ const xr = [
568
568
  }, children: [
569
569
  e,
570
570
  a && /* @__PURE__ */ o.jsx(Ht, { "data-source-path": "/src/components/ViewGateProvider.tsx:263", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:264", className: "vg-container", children: [
571
- /* @__PURE__ */ o.jsx(jn, { "data-source-path": "/src/components/ViewGateProvider.tsx:265" }),
571
+ /* @__PURE__ */ o.jsx(Vn, { "data-source-path": "/src/components/ViewGateProvider.tsx:265" }),
572
572
  /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:266", className: "vg-toasts", style: { zIndex: 2147483646 }, children: c.map((f) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:268", className: `vg-toast vg-animate-slide ${f.type}`, children: [
573
- f.type === "success" ? /* @__PURE__ */ o.jsx(ue, { "data-source-path": "/src/components/ViewGateProvider.tsx:270", size: 24, color: "#22c55e" }) : /* @__PURE__ */ o.jsx(Jt, { "data-source-path": "/src/components/ViewGateProvider.tsx:272", size: 24, color: "#ef4444" }),
573
+ f.type === "success" ? /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateProvider.tsx:270", size: 24, color: "#22c55e" }) : /* @__PURE__ */ o.jsx(Jt, { "data-source-path": "/src/components/ViewGateProvider.tsx:272", size: 24, color: "#ef4444" }),
574
574
  /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:274", children: [
575
575
  /* @__PURE__ */ o.jsx("strong", { "data-source-path": "/src/components/ViewGateProvider.tsx:275", style: { display: "block", fontSize: "13px", color: "#0f172a", textTransform: "uppercase", marginBottom: "2px" }, children: f.type === "success" ? m.successHeader : m.errorHeader }),
576
576
  /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateProvider.tsx:278", style: { fontSize: "14px", color: "#000000" }, children: f.message })
@@ -589,7 +589,7 @@ function br(e, t) {
589
589
  const r = document.implementation.createHTMLDocument(), n = r.createElement("base"), a = r.createElement("a");
590
590
  return r.head.appendChild(n), r.body.appendChild(a), t && (n.href = t), a.href = e, a.href;
591
591
  }
592
- const Cr = /* @__PURE__ */ (() => {
592
+ const Sr = /* @__PURE__ */ (() => {
593
593
  let e = 0;
594
594
  const t = () => (
595
595
  // eslint-disable-next-line no-bitwise
@@ -597,21 +597,21 @@ const Cr = /* @__PURE__ */ (() => {
597
597
  );
598
598
  return () => (e += 1, `u${t()}${e}`);
599
599
  })();
600
- function K(e) {
600
+ function J(e) {
601
601
  const t = [];
602
602
  for (let r = 0, n = e.length; r < n; r++)
603
603
  t.push(e[r]);
604
604
  return t;
605
605
  }
606
- let le = null;
607
- function Ct(e = {}) {
608
- return le || (e.includeStyleProperties ? (le = e.includeStyleProperties, le) : (le = K(window.getComputedStyle(document.documentElement)), le));
606
+ let se = null;
607
+ function bt(e = {}) {
608
+ return se || (e.includeStyleProperties ? (se = e.includeStyleProperties, se) : (se = J(window.getComputedStyle(document.documentElement)), se));
609
609
  }
610
610
  function Ve(e, t) {
611
611
  const n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
612
612
  return n ? parseFloat(n.replace("px", "")) : 0;
613
613
  }
614
- function Sr(e) {
614
+ function Cr(e) {
615
615
  const t = Ve(e, "border-left-width"), r = Ve(e, "border-right-width");
616
616
  return e.clientWidth + t + r;
617
617
  }
@@ -620,7 +620,7 @@ function Er(e) {
620
620
  return e.clientHeight + t + r;
621
621
  }
622
622
  function St(e, t = {}) {
623
- const r = t.width || Sr(e), n = t.height || Er(e);
623
+ const r = t.width || Cr(e), n = t.height || Er(e);
624
624
  return { width: r, height: n };
625
625
  }
626
626
  function kr() {
@@ -632,9 +632,9 @@ function kr() {
632
632
  const r = t && t.env ? t.env.devicePixelRatio : null;
633
633
  return r && (e = parseInt(r, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
634
634
  }
635
- const I = 16384;
635
+ const $ = 16384;
636
636
  function Rr(e) {
637
- (e.width > I || e.height > I) && (e.width > I && e.height > I ? e.width > e.height ? (e.height *= I / e.width, e.width = I) : (e.width *= I / e.height, e.height = I) : e.width > I ? (e.height *= I / e.width, e.width = I) : (e.width *= I / e.height, e.height = I));
637
+ (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 = $));
638
638
  }
639
639
  function Te(e) {
640
640
  return new Promise((t, r) => {
@@ -664,39 +664,39 @@ function Vr(e) {
664
664
  return `${e.cssText} content: '${t.replace(/'|"/g, "")}';`;
665
665
  }
666
666
  function Tr(e, t) {
667
- return Ct(t).map((r) => {
667
+ return bt(t).map((r) => {
668
668
  const n = e.getPropertyValue(r), a = e.getPropertyPriority(r);
669
669
  return `${r}: ${n}${a ? " !important" : ""};`;
670
670
  }).join(" ");
671
671
  }
672
- function Pr(e, t, r, n) {
672
+ function _r(e, t, r, n) {
673
673
  const a = `.${e}:${t}`, s = r.cssText ? Vr(r) : Tr(r, n);
674
674
  return document.createTextNode(`${a}{${s}}`);
675
675
  }
676
- function it(e, t, r, n) {
676
+ function ct(e, t, r, n) {
677
677
  const a = window.getComputedStyle(e, r), s = a.getPropertyValue("content");
678
678
  if (s === "" || s === "none")
679
679
  return;
680
- const c = Cr();
680
+ const c = Sr();
681
681
  try {
682
682
  t.className = `${t.className} ${c}`;
683
683
  } catch {
684
684
  return;
685
685
  }
686
686
  const i = document.createElement("style");
687
- i.appendChild(Pr(c, r, a, n)), t.appendChild(i);
687
+ i.appendChild(_r(c, r, a, n)), t.appendChild(i);
688
688
  }
689
- function _r(e, t, r) {
690
- it(e, t, ":before", r), it(e, t, ":after", r);
689
+ function Pr(e, t, r) {
690
+ ct(e, t, ":before", r), ct(e, t, ":after", r);
691
691
  }
692
- const ct = "application/font-woff", lt = "image/jpeg", Ar = {
693
- woff: ct,
694
- woff2: ct,
692
+ const lt = "application/font-woff", dt = "image/jpeg", Ar = {
693
+ woff: lt,
694
+ woff2: lt,
695
695
  ttf: "application/font-truetype",
696
696
  eot: "application/vnd.ms-fontobject",
697
697
  png: "image/png",
698
- jpg: lt,
699
- jpeg: lt,
698
+ jpg: dt,
699
+ jpeg: dt,
700
700
  gif: "image/gif",
701
701
  tiff: "image/tiff",
702
702
  svg: "image/svg+xml",
@@ -706,20 +706,20 @@ function Gr(e) {
706
706
  const t = /\.([^./]*?)$/g.exec(e);
707
707
  return t ? t[1] : "";
708
708
  }
709
- function Be(e) {
709
+ function qe(e) {
710
710
  const t = Gr(e).toLowerCase();
711
711
  return Ar[t] || "";
712
712
  }
713
713
  function $r(e) {
714
714
  return e.split(/,/)[1];
715
715
  }
716
- function Ue(e) {
716
+ function Be(e) {
717
717
  return e.search(/^(data:)/) !== -1;
718
718
  }
719
719
  function Mr(e, t) {
720
720
  return `data:${t};base64,${e}`;
721
721
  }
722
- async function Et(e, t, r) {
722
+ async function Ct(e, t, r) {
723
723
  const n = await fetch(e, t);
724
724
  if (n.status === 404)
725
725
  throw new Error(`Resource "${n.url}" not found`);
@@ -735,26 +735,26 @@ async function Et(e, t, r) {
735
735
  }, i.readAsDataURL(a);
736
736
  });
737
737
  }
738
- const Le = {};
738
+ const ze = {};
739
739
  function Nr(e, t, r) {
740
740
  let n = e.replace(/\?.*/, "");
741
741
  return r && (n = e), /ttf|otf|eot|woff2?/i.test(n) && (n = n.replace(/.*\//, "")), t ? `[${t}]${n}` : n;
742
742
  }
743
- async function qe(e, t, r) {
743
+ async function Ye(e, t, r) {
744
744
  const n = Nr(e, t, r.includeQueryParams);
745
- if (Le[n] != null)
746
- return Le[n];
745
+ if (ze[n] != null)
746
+ return ze[n];
747
747
  r.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
748
748
  let a;
749
749
  try {
750
- const s = await Et(e, r.fetchRequestInit, ({ res: c, result: i }) => (t || (t = c.headers.get("Content-Type") || ""), $r(i)));
750
+ const s = await Ct(e, r.fetchRequestInit, ({ res: c, result: i }) => (t || (t = c.headers.get("Content-Type") || ""), $r(i)));
751
751
  a = Mr(s, t);
752
752
  } catch (s) {
753
753
  a = r.imagePlaceholder || "";
754
754
  let c = `Failed to fetch resource: ${e}`;
755
755
  s && (c = typeof s == "string" ? s : s.message), c && console.warn(c);
756
756
  }
757
- return Le[n] = a, a;
757
+ return ze[n] = a, a;
758
758
  }
759
759
  async function Ir(e) {
760
760
  const t = e.toDataURL();
@@ -767,28 +767,28 @@ async function Lr(e, t) {
767
767
  const i = s.toDataURL();
768
768
  return Te(i);
769
769
  }
770
- const r = e.poster, n = Be(r), a = await qe(r, n, t);
770
+ const r = e.poster, n = qe(r), a = await Ye(r, n, t);
771
771
  return Te(a);
772
772
  }
773
773
  async function zr(e, t) {
774
774
  var r;
775
775
  try {
776
776
  if (!((r = e?.contentDocument) === null || r === void 0) && r.body)
777
- return await Pe(e.contentDocument.body, t, !0);
777
+ return await _e(e.contentDocument.body, t, !0);
778
778
  } catch {
779
779
  }
780
780
  return e.cloneNode(!1);
781
781
  }
782
782
  async function Dr(e, t) {
783
- return G(e, HTMLCanvasElement) ? Ir(e) : G(e, HTMLVideoElement) ? Lr(e, t) : G(e, HTMLIFrameElement) ? zr(e, t) : e.cloneNode(kt(e));
783
+ return G(e, HTMLCanvasElement) ? Ir(e) : G(e, HTMLVideoElement) ? Lr(e, t) : G(e, HTMLIFrameElement) ? zr(e, t) : e.cloneNode(Et(e));
784
784
  }
785
- const Fr = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", kt = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
785
+ const Fr = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", Et = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
786
786
  async function Hr(e, t, r) {
787
787
  var n, a;
788
- if (kt(t))
788
+ if (Et(t))
789
789
  return t;
790
790
  let s = [];
791
- return Fr(e) && e.assignedNodes ? s = K(e.assignedNodes()) : G(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = K(e.contentDocument.body.childNodes) : s = K(((a = e.shadowRoot) !== null && a !== void 0 ? a : e).childNodes), s.length === 0 || G(e, HTMLVideoElement) || await s.reduce((c, i) => c.then(() => Pe(i, r)).then((u) => {
791
+ return Fr(e) && e.assignedNodes ? s = J(e.assignedNodes()) : G(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = J(e.contentDocument.body.childNodes) : s = J(((a = e.shadowRoot) !== null && a !== void 0 ? a : e).childNodes), s.length === 0 || G(e, HTMLVideoElement) || await s.reduce((c, i) => c.then(() => _e(i, r)).then((u) => {
792
792
  u && t.appendChild(u);
793
793
  }), Promise.resolve()), t;
794
794
  }
@@ -797,7 +797,7 @@ function Wr(e, t, r) {
797
797
  if (!n)
798
798
  return;
799
799
  const a = window.getComputedStyle(e);
800
- a.cssText ? (n.cssText = a.cssText, n.transformOrigin = a.transformOrigin) : Ct(r).forEach((s) => {
800
+ a.cssText ? (n.cssText = a.cssText, n.transformOrigin = a.transformOrigin) : bt(r).forEach((s) => {
801
801
  let c = a.getPropertyValue(s);
802
802
  s === "font-size" && c.endsWith("px") && (c = `${Math.floor(parseFloat(c.substring(0, c.length - 2))) - 0.1}px`), G(e, HTMLIFrameElement) && s === "display" && c === "inline" && (c = "block"), s === "d" && t.getAttribute("d") && (c = `path(${t.getAttribute("d")})`), n.setProperty(s, c, a.getPropertyPriority(s));
803
803
  });
@@ -812,7 +812,7 @@ function Br(e, t) {
812
812
  }
813
813
  }
814
814
  function qr(e, t, r) {
815
- return G(t, Element) && (Wr(e, t, r), _r(e, t, r), Ur(e, t), Br(e, t)), t;
815
+ return G(t, Element) && (Wr(e, t, r), Pr(e, t, r), Ur(e, t), Br(e, t)), t;
816
816
  }
817
817
  async function Yr(e, t) {
818
818
  const r = e.querySelectorAll ? e.querySelectorAll("use") : [];
@@ -823,7 +823,7 @@ async function Yr(e, t) {
823
823
  const i = r[s].getAttribute("xlink:href");
824
824
  if (i) {
825
825
  const u = e.querySelector(i), p = document.querySelector(i);
826
- !u && p && !n[i] && (n[i] = await Pe(p, t, !0));
826
+ !u && p && !n[i] && (n[i] = await _e(p, t, !0));
827
827
  }
828
828
  }
829
829
  const a = Object.values(n);
@@ -838,23 +838,23 @@ async function Yr(e, t) {
838
838
  }
839
839
  return e;
840
840
  }
841
- async function Pe(e, t, r) {
841
+ async function _e(e, t, r) {
842
842
  return !r && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((n) => Dr(n, t)).then((n) => Hr(e, n, t)).then((n) => qr(e, n, t)).then((n) => Yr(n, t));
843
843
  }
844
- const Rt = /url\((['"]?)([^'"]+?)\1\)/g, Xr = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, Jr = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
844
+ const kt = /url\((['"]?)([^'"]+?)\1\)/g, Xr = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, Jr = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
845
845
  function Zr(e) {
846
846
  const t = e.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1");
847
847
  return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`, "g");
848
848
  }
849
849
  function Kr(e) {
850
850
  const t = [];
851
- return e.replace(Rt, (r, n, a) => (t.push(a), r)), t.filter((r) => !Ue(r));
851
+ return e.replace(kt, (r, n, a) => (t.push(a), r)), t.filter((r) => !Be(r));
852
852
  }
853
853
  async function Qr(e, t, r, n, a) {
854
854
  try {
855
- const s = r ? br(t, r) : t, c = Be(t);
855
+ const s = r ? br(t, r) : t, c = qe(t);
856
856
  let i;
857
- return a || (i = await qe(s, c, n)), e.replace(Zr(t), `$1${i}$3`);
857
+ return a || (i = await Ye(s, c, n)), e.replace(Zr(t), `$1${i}$3`);
858
858
  } catch {
859
859
  }
860
860
  return e;
@@ -870,32 +870,32 @@ function en(e, { preferredFontFormat: t }) {
870
870
  }
871
871
  }) : e;
872
872
  }
873
- function jt(e) {
874
- return e.search(Rt) !== -1;
873
+ function Rt(e) {
874
+ return e.search(kt) !== -1;
875
875
  }
876
- async function Ot(e, t, r) {
877
- if (!jt(e))
876
+ async function jt(e, t, r) {
877
+ if (!Rt(e))
878
878
  return e;
879
879
  const n = en(e, r);
880
880
  return Kr(n).reduce((s, c) => s.then((i) => Qr(i, c, t, r)), Promise.resolve(n));
881
881
  }
882
- async function de(e, t, r) {
882
+ async function oe(e, t, r) {
883
883
  var n;
884
884
  const a = (n = t.style) === null || n === void 0 ? void 0 : n.getPropertyValue(e);
885
885
  if (a) {
886
- const s = await Ot(a, null, r);
886
+ const s = await jt(a, null, r);
887
887
  return t.style.setProperty(e, s, t.style.getPropertyPriority(e)), !0;
888
888
  }
889
889
  return !1;
890
890
  }
891
891
  async function tn(e, t) {
892
- await de("background", e, t) || await de("background-image", e, t), await de("mask", e, t) || await de("-webkit-mask", e, t) || await de("mask-image", e, t) || await de("-webkit-mask-image", e, t);
892
+ await oe("background", e, t) || await oe("background-image", e, t), await oe("mask", e, t) || await oe("-webkit-mask", e, t) || await oe("mask-image", e, t) || await oe("-webkit-mask-image", e, t);
893
893
  }
894
894
  async function rn(e, t) {
895
895
  const r = G(e, HTMLImageElement);
896
- if (!(r && !Ue(e.src)) && !(G(e, SVGImageElement) && !Ue(e.href.baseVal)))
896
+ if (!(r && !Be(e.src)) && !(G(e, SVGImageElement) && !Be(e.href.baseVal)))
897
897
  return;
898
- const n = r ? e.src : e.href.baseVal, a = await qe(n, Be(n), t);
898
+ const n = r ? e.src : e.href.baseVal, a = await Ye(n, qe(n), t);
899
899
  await new Promise((s, c) => {
900
900
  e.onload = s, e.onerror = t.onImageErrorHandler ? (...u) => {
901
901
  try {
@@ -909,10 +909,10 @@ async function rn(e, t) {
909
909
  });
910
910
  }
911
911
  async function nn(e, t) {
912
- const n = K(e.childNodes).map((a) => Vt(a, t));
912
+ const n = J(e.childNodes).map((a) => Ot(a, t));
913
913
  await Promise.all(n).then(() => e);
914
914
  }
915
- async function Vt(e, t) {
915
+ async function Ot(e, t) {
916
916
  G(e, Element) && (await tn(e, t), await rn(e, t), await nn(e, t));
917
917
  }
918
918
  function an(e, t) {
@@ -923,23 +923,23 @@ function an(e, t) {
923
923
  r[a] = n[a];
924
924
  }), e;
925
925
  }
926
- const dt = {};
927
- async function ut(e) {
928
- let t = dt[e];
926
+ const ut = {};
927
+ async function pt(e) {
928
+ let t = ut[e];
929
929
  if (t != null)
930
930
  return t;
931
931
  const n = await (await fetch(e)).text();
932
- return t = { url: e, cssText: n }, dt[e] = t, t;
932
+ return t = { url: e, cssText: n }, ut[e] = t, t;
933
933
  }
934
- async function pt(e, t) {
934
+ async function mt(e, t) {
935
935
  let r = e.cssText;
936
936
  const n = /url\(["']?([^"')]+)["']?\)/g, s = (r.match(/url\([^)]+\)/g) || []).map(async (c) => {
937
937
  let i = c.replace(n, "$1");
938
- return i.startsWith("https://") || (i = new URL(i, e.url).href), Et(i, t.fetchRequestInit, ({ result: u }) => (r = r.replace(c, `url(${u})`), [c, u]));
938
+ return i.startsWith("https://") || (i = new URL(i, e.url).href), Ct(i, t.fetchRequestInit, ({ result: u }) => (r = r.replace(c, `url(${u})`), [c, u]));
939
939
  });
940
940
  return Promise.all(s).then(() => r);
941
941
  }
942
- function mt(e) {
942
+ function ft(e) {
943
943
  if (e == null)
944
944
  return [];
945
945
  const t = [], r = /(\/\*[\s\S]*?\*\/)/gi;
@@ -970,16 +970,16 @@ async function sn(e, t) {
970
970
  return e.forEach((a) => {
971
971
  if ("cssRules" in a)
972
972
  try {
973
- K(a.cssRules || []).forEach((s, c) => {
973
+ J(a.cssRules || []).forEach((s, c) => {
974
974
  if (s.type === CSSRule.IMPORT_RULE) {
975
975
  let i = c + 1;
976
- const u = s.href, p = ut(u).then((m) => pt(m, t)).then((m) => mt(m).forEach((f) => {
976
+ const u = s.href, p = pt(u).then((m) => mt(m, t)).then((m) => ft(m).forEach((f) => {
977
977
  try {
978
978
  a.insertRule(f, f.startsWith("@import") ? i += 1 : a.cssRules.length);
979
- } catch (E) {
979
+ } catch (j) {
980
980
  console.error("Error inserting rule from remote css", {
981
981
  rule: f,
982
- error: E
982
+ error: j
983
983
  });
984
984
  }
985
985
  })).catch((m) => {
@@ -990,7 +990,7 @@ async function sn(e, t) {
990
990
  });
991
991
  } catch (s) {
992
992
  const c = e.find((i) => i.href == null) || document.styleSheets[0];
993
- a.href != null && n.push(ut(a.href).then((i) => pt(i, t)).then((i) => mt(i).forEach((u) => {
993
+ a.href != null && n.push(pt(a.href).then((i) => mt(i, t)).then((i) => ft(i).forEach((u) => {
994
994
  c.insertRule(u, c.cssRules.length);
995
995
  })).catch((i) => {
996
996
  console.error("Error loading remote stylesheet", i);
@@ -999,7 +999,7 @@ async function sn(e, t) {
999
999
  }), Promise.all(n).then(() => (e.forEach((a) => {
1000
1000
  if ("cssRules" in a)
1001
1001
  try {
1002
- K(a.cssRules || []).forEach((s) => {
1002
+ J(a.cssRules || []).forEach((s) => {
1003
1003
  r.push(s);
1004
1004
  });
1005
1005
  } catch (s) {
@@ -1008,22 +1008,22 @@ async function sn(e, t) {
1008
1008
  }), r));
1009
1009
  }
1010
1010
  function on(e) {
1011
- return e.filter((t) => t.type === CSSRule.FONT_FACE_RULE).filter((t) => jt(t.style.getPropertyValue("src")));
1011
+ return e.filter((t) => t.type === CSSRule.FONT_FACE_RULE).filter((t) => Rt(t.style.getPropertyValue("src")));
1012
1012
  }
1013
1013
  async function cn(e, t) {
1014
1014
  if (e.ownerDocument == null)
1015
1015
  throw new Error("Provided element is not within a Document");
1016
- const r = K(e.ownerDocument.styleSheets), n = await sn(r, t);
1016
+ const r = J(e.ownerDocument.styleSheets), n = await sn(r, t);
1017
1017
  return on(n);
1018
1018
  }
1019
- function Tt(e) {
1019
+ function Vt(e) {
1020
1020
  return e.trim().replace(/["']/g, "");
1021
1021
  }
1022
1022
  function ln(e) {
1023
1023
  const t = /* @__PURE__ */ new Set();
1024
1024
  function r(n) {
1025
1025
  (n.style.fontFamily || getComputedStyle(n).fontFamily).split(",").forEach((s) => {
1026
- t.add(Tt(s));
1026
+ t.add(Vt(s));
1027
1027
  }), Array.from(n.children).forEach((s) => {
1028
1028
  s instanceof HTMLElement && r(s);
1029
1029
  });
@@ -1032,9 +1032,9 @@ function ln(e) {
1032
1032
  }
1033
1033
  async function dn(e, t) {
1034
1034
  const r = await cn(e, t), n = ln(e);
1035
- return (await Promise.all(r.filter((s) => n.has(Tt(s.style.fontFamily))).map((s) => {
1035
+ return (await Promise.all(r.filter((s) => n.has(Vt(s.style.fontFamily))).map((s) => {
1036
1036
  const c = s.parentStyleSheet ? s.parentStyleSheet.href : null;
1037
- return Ot(s.cssText, c, t);
1037
+ return jt(s.cssText, c, t);
1038
1038
  }))).join(`
1039
1039
  `);
1040
1040
  }
@@ -1046,17 +1046,17 @@ async function un(e, t) {
1046
1046
  }
1047
1047
  }
1048
1048
  async function pn(e, t = {}) {
1049
- const { width: r, height: n } = St(e, t), a = await Pe(e, t, !0);
1050
- return await un(a, t), await Vt(a, t), an(a, t), await Or(a, r, n);
1049
+ const { width: r, height: n } = St(e, t), a = await _e(e, t, !0);
1050
+ return await un(a, t), await Ot(a, t), an(a, t), await Or(a, r, n);
1051
1051
  }
1052
1052
  async function mn(e, t = {}) {
1053
1053
  const { width: r, height: n } = St(e, t), a = await pn(e, t), s = await Te(a), c = document.createElement("canvas"), i = c.getContext("2d"), u = t.pixelRatio || kr(), p = t.canvasWidth || r, m = t.canvasHeight || n;
1054
1054
  return c.width = p * u, c.height = m * u, t.skipAutoScale || Rr(c), c.style.width = `${p}`, c.style.height = `${m}`, t.backgroundColor && (i.fillStyle = t.backgroundColor, i.fillRect(0, 0, c.width, c.height)), i.drawImage(s, 0, 0, c.width, c.height), c;
1055
1055
  }
1056
- async function ft(e, t = {}) {
1056
+ async function fn(e, t = {}) {
1057
1057
  return (await mn(e, t)).toDataURL();
1058
1058
  }
1059
- const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 15, ae = "data-vg-pin-id", xn = () => {
1059
+ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 15, ee = "data-vg-pin-id", yn = () => {
1060
1060
  const e = window.innerWidth;
1061
1061
  return e < 768 ? "mobile" : e < 1024 ? "tablet" : "desktop";
1062
1062
  }, ht = (e, t) => {
@@ -1075,7 +1075,7 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1075
1075
  return "";
1076
1076
  }
1077
1077
  }, gt = ({ url: e, className: t, style: r, tooltipStyle: n, onHover: a }) => {
1078
- const s = pe(null), c = () => {
1078
+ const s = ce(null), c = () => {
1079
1079
  if (!s.current || !a) return;
1080
1080
  const i = s.current.getBoundingClientRect(), u = i.top, p = window.innerHeight - i.bottom, m = u < 140 && p > u ? "bottom" : "top";
1081
1081
  a({
@@ -1106,7 +1106,7 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1106
1106
  ]
1107
1107
  }
1108
1108
  );
1109
- }, be = (e) => {
1109
+ }, we = (e) => {
1110
1110
  const t = [], r = [], n = [];
1111
1111
  let a = e;
1112
1112
  for (; a && a.nodeType === Node.ELEMENT_NODE; ) {
@@ -1134,8 +1134,8 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1134
1134
  fallbacks: r,
1135
1135
  vgPath: n.join(" > ")
1136
1136
  };
1137
- }, yn = (e) => {
1138
- const { vgPath: t } = be(e);
1137
+ }, wn = (e) => {
1138
+ const { vgPath: t } = we(e);
1139
1139
  return {
1140
1140
  vgPath: t,
1141
1141
  classHash: e.className,
@@ -1148,7 +1148,7 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1148
1148
  placeholder: e.getAttribute("placeholder") || void 0,
1149
1149
  textSnippet: (e.innerText || "").slice(0, 30).trim()
1150
1150
  };
1151
- }, wn = /* @__PURE__ */ (() => {
1151
+ }, vn = /* @__PURE__ */ (() => {
1152
1152
  let e = null, t = null;
1153
1153
  return (r) => {
1154
1154
  if (!r || typeof window > "u" || typeof document > "u") return r;
@@ -1169,20 +1169,30 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1169
1169
  }
1170
1170
  return r;
1171
1171
  };
1172
- })(), xt = (e, t, r, n) => new Promise((a) => {
1172
+ })(), bn = (e, t, r, n) => new Promise((a) => {
1173
1173
  const s = new Image();
1174
1174
  s.onload = () => {
1175
- const c = document.createElement("canvas"), i = window.devicePixelRatio || 1, u = t.width + r * 2, p = t.height + r * 2;
1175
+ const c = document.createElement("canvas"), i = 2, u = t.width + r * 2, p = t.height + r * 2;
1176
1176
  c.width = u * i, c.height = p * i;
1177
1177
  const m = c.getContext("2d");
1178
1178
  if (m) {
1179
- m.scale(i, i);
1180
- let f = (t.left - r) * n, E = (t.top - r) * n, O = u * n, T = p * n, $ = 0, F = 0, Y = u, X = p;
1181
- f < 0 && ($ = Math.abs(f) / n, O += f, Y -= $, f = 0), f + O > s.width && (O = s.width - f, Y = O / n), E < 0 && (F = Math.abs(E) / n, T += E, X -= F, E = 0), E + T > s.height && (T = s.height - E, X = T / n), m.fillStyle = "#ffffff", m.fillRect(0, 0, u, p), O > 0 && T > 0 && m.drawImage(s, f, E, O, T, $, F, Y, X);
1179
+ m.imageSmoothingEnabled = !0, m.imageSmoothingQuality = "high";
1180
+ const f = (t.left - r) * n, j = (t.top - r) * n, _ = u * n, N = p * n;
1181
+ m.drawImage(
1182
+ s,
1183
+ f,
1184
+ j,
1185
+ _,
1186
+ N,
1187
+ 0,
1188
+ 0,
1189
+ c.width,
1190
+ c.height
1191
+ );
1182
1192
  }
1183
- a(c.toDataURL("image/png"));
1193
+ a(c.toDataURL("image/png", 0.9));
1184
1194
  }, s.onerror = () => a(""), s.src = e;
1185
- }), vn = (e) => {
1195
+ }), Sn = (e) => {
1186
1196
  const t = window.getComputedStyle(e), r = {};
1187
1197
  return [
1188
1198
  "display",
@@ -1197,9 +1207,9 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1197
1207
  "z-index"
1198
1208
  ].forEach((a) => {
1199
1209
  const s = t.getPropertyValue(a);
1200
- r[a] = wn(s);
1210
+ r[a] = vn(s);
1201
1211
  }), r;
1202
- }, bn = (e) => {
1212
+ }, Cn = (e) => {
1203
1213
  const r = Object.keys(e).find((s) => s.startsWith("__reactFiber$") || s.startsWith("__reactInternalInstance$"));
1204
1214
  if (!r) return "";
1205
1215
  const n = [];
@@ -1213,13 +1223,13 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1213
1223
  a = a.return;
1214
1224
  }
1215
1225
  return n.join(" > ") || "Generic Component";
1216
- }, Cn = (e) => {
1226
+ }, En = (e) => {
1217
1227
  if (!e) return !1;
1218
1228
  const t = window.getComputedStyle(e), r = e.getBoundingClientRect(), n = e.getAttribute("role");
1219
1229
  if (n && ["listbox", "menu", "combobox", "tooltip", "option"].includes(n)) return !1;
1220
1230
  const s = 120;
1221
1231
  return r.width < s && r.height < s || t.position !== "fixed" && t.position !== "absolute" ? !1 : !!(e.closest('[role="dialog"]') || e.closest('[aria-modal="true"]') || e.classList.contains("modal") || e.classList.contains("modal-content"));
1222
- }, ne = (e) => {
1232
+ }, Q = (e) => {
1223
1233
  if (!e.isConnected) return !1;
1224
1234
  const t = window.getComputedStyle(e);
1225
1235
  if (t.display === "none" || t.visibility === "hidden" || t.opacity === "0" || e.offsetWidth === 0 || e.offsetHeight === 0) return !1;
@@ -1231,19 +1241,19 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1231
1241
  }
1232
1242
  const n = e.getBoundingClientRect();
1233
1243
  return !(n.width === 0 || n.height === 0 || n.top === 0 && n.left === 0 && n.width > window.innerWidth * 0.9);
1234
- }, Pt = (e, t = document) => {
1244
+ }, Tt = (e, t = document) => {
1235
1245
  const r = t.querySelector(e);
1236
1246
  if (r) return r;
1237
1247
  const n = t.querySelectorAll("*");
1238
1248
  for (const a of Array.from(n)) {
1239
1249
  const s = a.shadowRoot;
1240
1250
  if (s) {
1241
- const c = Pt(e, s);
1251
+ const c = Tt(e, s);
1242
1252
  if (c) return c;
1243
1253
  }
1244
1254
  }
1245
1255
  return null;
1246
- }, yt = (e, t) => {
1256
+ }, xt = (e, t) => {
1247
1257
  let r = document.elementFromPoint(e, t);
1248
1258
  for (; r && r.shadowRoot; ) {
1249
1259
  const n = r.shadowRoot.elementFromPoint(e, t);
@@ -1251,7 +1261,7 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1251
1261
  r = n;
1252
1262
  }
1253
1263
  return r;
1254
- }, Sn = (e) => {
1264
+ }, kn = (e) => {
1255
1265
  if (!e.tag) return null;
1256
1266
  const t = Array.from(document.getElementsByTagName(e.tag));
1257
1267
  let r = null, n = 0;
@@ -1262,7 +1272,7 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1262
1272
  i && c === i && (s += 6);
1263
1273
  const u = a.getAttribute("type"), p = e.attributes?.type || e.fingerprint?.type;
1264
1274
  if (p && u === p && (s += 2), a.innerText?.trim() === e.text.trim() && (s += 5), e.fingerprint?.vgPath) {
1265
- const { vgPath: m } = be(a);
1275
+ const { vgPath: m } = we(a);
1266
1276
  (m === e.vgPath || e.fingerprint?.vgPath === m) && (s += 10);
1267
1277
  }
1268
1278
  s > n && s >= 7 && (n = s, r = a);
@@ -1274,63 +1284,63 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1274
1284
  if (n && r && n !== r) return !1;
1275
1285
  const a = e.getAttribute("type"), s = t.attributes?.type || t.fingerprint?.type;
1276
1286
  return !(s && a && s !== a);
1277
- }, En = (e, t) => {
1287
+ }, Rn = (e, t) => {
1278
1288
  if (t) {
1279
- const c = Array.from(document.querySelectorAll(`[${ae}="${t}"]`));
1289
+ const c = Array.from(document.querySelectorAll(`[${ee}="${t}"]`));
1280
1290
  if (c.length > 0) {
1281
1291
  const i = c.filter((u) => Oe(u, e));
1282
1292
  if (i.length === 0)
1283
- c.forEach((u) => u.removeAttribute(ae));
1293
+ c.forEach((u) => u.removeAttribute(ee));
1284
1294
  else {
1285
1295
  const u = i.find((m) => {
1286
- const { vgPath: f } = be(m);
1296
+ const { vgPath: f } = we(m);
1287
1297
  return f === e.vgPath || e.fingerprint?.vgPath === f;
1288
- }), p = u && ne(u) ? u : i.find((m) => !(!ne(m) || e.metadata?.isModal && !m.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));
1298
+ }), p = u && Q(u) ? u : i.find((m) => !(!Q(m) || e.metadata?.isModal && !m.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));
1289
1299
  return p ? (c.forEach((m) => {
1290
- m !== p && m.removeAttribute(ae);
1300
+ m !== p && m.removeAttribute(ee);
1291
1301
  }), p) : null;
1292
1302
  }
1293
1303
  }
1294
1304
  }
1295
1305
  const n = (e.selector ? Array.from(document.querySelectorAll(e.selector)) : []).filter((c) => Oe(c, e));
1296
1306
  let a = n.find((c) => {
1297
- const { vgPath: i } = be(c);
1307
+ const { vgPath: i } = we(c);
1298
1308
  return i === e.vgPath || e.fingerprint?.vgPath === i;
1299
1309
  }) || n[0] || null;
1300
- if (a && ne(a))
1310
+ if (a && Q(a))
1301
1311
  if (e.metadata?.isModal && !a.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content'))
1302
1312
  a = null;
1303
1313
  else
1304
1314
  return a;
1305
1315
  if (e.fallbackSelectors)
1306
1316
  for (const c of e.fallbackSelectors) {
1307
- const i = Pt(c);
1308
- if (i && Oe(i, e) && ne(i)) {
1317
+ const i = Tt(c);
1318
+ if (i && Oe(i, e) && Q(i)) {
1309
1319
  if (e.metadata?.isModal && !i.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')) continue;
1310
1320
  return i;
1311
1321
  }
1312
1322
  }
1313
- const s = Sn(e);
1314
- return s && ne(s) ? e.metadata?.isModal && !s.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content') ? null : s : null;
1315
- }, Fe = (e) => ({
1323
+ const s = kn(e);
1324
+ return s && Q(s) ? e.metadata?.isModal && !s.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content') ? null : s : null;
1325
+ }, He = (e) => ({
1316
1326
  tag: e.tagName.toLowerCase(),
1317
1327
  text: (e.innerText || e.getAttribute("placeholder") || "").slice(0, 50).trim(),
1318
1328
  role: e.getAttribute("role") || void 0,
1319
1329
  type: e.getAttribute("type") || void 0
1320
- }), kn = (e) => {
1330
+ }), jn = (e) => {
1321
1331
  const t = e.parentElement;
1322
1332
  if (!t) return;
1323
- const r = Array.from(t.children).filter((c) => c !== e).slice(0, 5).map((c) => Fe(c)), n = Array.from(t.children), a = n.indexOf(e);
1333
+ const r = Array.from(t.children).filter((c) => c !== e).slice(0, 5).map((c) => He(c)), n = Array.from(t.children), a = n.indexOf(e);
1324
1334
  let s = "middle";
1325
1335
  return a === 0 && (s = "start"), a === n.length - 1 && (s = "end"), {
1326
1336
  target: {
1327
- ...Fe(e),
1337
+ ...He(e),
1328
1338
  location: `${s} of ${t.tagName.toLowerCase()}`
1329
1339
  },
1330
- parent: Fe(t),
1340
+ parent: He(t),
1331
1341
  siblings: r
1332
1342
  };
1333
- }, Rn = (e) => {
1343
+ }, On = (e) => {
1334
1344
  let t = "unknown:0", r = e;
1335
1345
  for (; r; ) {
1336
1346
  const m = r.getAttribute("data-source-path");
@@ -1340,7 +1350,7 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1340
1350
  }
1341
1351
  r = r.parentElement;
1342
1352
  }
1343
- const n = bn(e), { selector: a, fallbacks: s, vgPath: c } = be(e), i = {};
1353
+ const n = Cn(e), { selector: a, fallbacks: s, vgPath: c } = we(e), i = {};
1344
1354
  ["placeholder", "aria-label", "name", "type", "alt", "title", "value", "role"].forEach((m) => {
1345
1355
  const f = e.getAttribute(m);
1346
1356
  f && (i[m] = f);
@@ -1362,245 +1372,226 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1362
1372
  fallbackSelectors: [...new Set(s)].slice(0, 5),
1363
1373
  domPath: [],
1364
1374
  viewportSize: { width: window.innerWidth, height: window.innerHeight },
1365
- uiContext: kn(e),
1366
- fingerprint: yn(e),
1375
+ uiContext: jn(e),
1376
+ fingerprint: wn(e),
1367
1377
  metadata: {
1368
1378
  hint: `Edit ${t.split(":")[0]} at line ${t.split(":")[1] || "?"}`,
1369
- computedStyles: vn(e),
1370
- viewportBreakpoint: xn(),
1379
+ computedStyles: Sn(e),
1380
+ viewportBreakpoint: yn(),
1371
1381
  outerHtml: e.outerHTML.slice(0, 1500),
1372
1382
  scrollPosition: { x: window.scrollX, y: window.scrollY },
1373
1383
  isModal: u
1374
1384
  }
1375
1385
  };
1376
- }, jn = () => {
1377
- const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: c } = wr(), [i, u] = S(!1), [p, m] = S(null), [f, E] = S(null), [O, T] = S(""), [$, F] = S(!1), [Y, X] = S(!1), [L, J] = S(!1), [_, Ae] = S([]), [D, H] = S(null), [Ce, Ye] = S(!1), [me, se] = S(!1), [Se, Ee] = S({}), [W, oe] = S(null), [Q, fe] = S(!1), [U, he] = S(null), [d, x] = S([]), [b, R] = S(() => {
1386
+ }, Vn = () => {
1387
+ const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: c } = wr(), [i, u] = b(!1), [p, m] = b(null), [f, j] = b(null), [_, N] = b(""), [W, te] = b(!1), [ve, be] = b(!1), [M, q] = b(!1), [P, Ae] = b([]), [I, z] = b(null), [Se, Xe] = b(!1), [le, re] = b(!1), [Ce, Ee] = b({}), [D, ne] = b(null), [Z, de] = b(!1), [F, ue] = b(null), [l, g] = b([]), S = It(() => {
1388
+ if (!D) return P;
1389
+ const d = l.find((h) => h.annotations.some((x) => x._id === D));
1390
+ return d ? d.annotations : P.filter((h) => h._id === D);
1391
+ }, [D, P, l]), [v, ae] = b(() => {
1378
1392
  if (typeof window > "u") return { top: 24, right: 24 };
1379
- const l = localStorage.getItem("vg-exit-pos");
1380
- return l ? JSON.parse(l) : { top: 24, right: 24 };
1381
- }), [B, ie] = S(!1), C = pe(null), [M, ge] = S(() => {
1393
+ const d = localStorage.getItem("vg-exit-pos");
1394
+ return d ? JSON.parse(d) : { top: 24, right: 24 };
1395
+ }), [U, E] = b(!1), V = ce(null), [H, Ge] = b(() => {
1382
1396
  if (typeof window > "u") return { bottom: 30, right: 30 };
1383
- const l = localStorage.getItem("vg-bar-pos");
1384
- return l ? JSON.parse(l) : { bottom: 30, right: 30 };
1385
- }), [ee, Xe] = S(!1), q = pe(null), At = (l) => {
1386
- l.preventDefault(), l.stopPropagation();
1387
- const h = l.currentTarget.parentElement?.getBoundingClientRect();
1388
- h && (ie(!0), C.current = {
1389
- x: l.clientX,
1390
- y: l.clientY,
1391
- top: b.top,
1392
- right: b.right,
1397
+ const d = localStorage.getItem("vg-bar-pos");
1398
+ return d ? JSON.parse(d) : { bottom: 30, right: 30 };
1399
+ }), [pe, Je] = b(!1), B = ce(null), Pt = (d) => {
1400
+ d.preventDefault(), d.stopPropagation();
1401
+ const h = d.currentTarget.parentElement?.getBoundingClientRect();
1402
+ h && (E(!0), V.current = {
1403
+ x: d.clientX,
1404
+ y: d.clientY,
1405
+ top: v.top,
1406
+ right: v.right,
1393
1407
  width: h.width,
1394
1408
  height: h.height
1395
1409
  });
1396
- }, Gt = (l) => {
1397
- l.preventDefault(), l.stopPropagation();
1398
- const h = l.currentTarget.parentElement?.getBoundingClientRect();
1399
- h && (Xe(!0), q.current = {
1400
- x: l.clientX,
1401
- y: l.clientY,
1402
- bottom: M.bottom,
1403
- right: M.right,
1410
+ }, At = (d) => {
1411
+ d.preventDefault(), d.stopPropagation();
1412
+ const h = d.currentTarget.parentElement?.getBoundingClientRect();
1413
+ h && (Je(!0), B.current = {
1414
+ x: d.clientX,
1415
+ y: d.clientY,
1416
+ bottom: H.bottom,
1417
+ right: H.right,
1404
1418
  width: h.width,
1405
1419
  height: h.height
1406
1420
  });
1407
1421
  };
1408
- Z(() => {
1409
- if (!B && !ee) return;
1410
- const l = (y) => {
1411
- if (B && C.current) {
1412
- const V = y.clientX - C.current.x, j = y.clientY - C.current.y;
1413
- let w = C.current.top + j, g = C.current.right - V;
1414
- const v = 10;
1415
- w = Math.max(v, Math.min(window.innerHeight - C.current.height - v, w)), g = Math.max(v, Math.min(window.innerWidth - C.current.width - v, g)), R({ top: w, right: g });
1422
+ X(() => {
1423
+ if (!U && !pe) return;
1424
+ const d = (x) => {
1425
+ if (U && V.current) {
1426
+ const O = x.clientX - V.current.x, k = x.clientY - V.current.y;
1427
+ let w = V.current.top + k, y = V.current.right - O;
1428
+ const C = 10;
1429
+ w = Math.max(C, Math.min(window.innerHeight - V.current.height - C, w)), y = Math.max(C, Math.min(window.innerWidth - V.current.width - C, y)), ae({ top: w, right: y });
1416
1430
  }
1417
- if (ee && q.current) {
1418
- const V = y.clientX - q.current.x, j = y.clientY - q.current.y;
1419
- let w = q.current.bottom - j, g = q.current.right - V;
1420
- const v = 10;
1421
- w = Math.max(v, Math.min(window.innerHeight - q.current.height - v, w)), g = Math.max(v, Math.min(window.innerWidth - q.current.width - v, g)), ge({ bottom: w, right: g });
1431
+ if (pe && B.current) {
1432
+ const O = x.clientX - B.current.x, k = x.clientY - B.current.y;
1433
+ let w = B.current.bottom - k, y = B.current.right - O;
1434
+ const C = 10;
1435
+ w = Math.max(C, Math.min(window.innerHeight - B.current.height - C, w)), y = Math.max(C, Math.min(window.innerWidth - B.current.width - C, y)), Ge({ bottom: w, right: y });
1422
1436
  }
1423
1437
  }, h = () => {
1424
- B && (ie(!1), localStorage.setItem("vg-exit-pos", JSON.stringify(b)), C.current = null), ee && (Xe(!1), localStorage.setItem("vg-bar-pos", JSON.stringify(M)), q.current = null);
1438
+ U && (E(!1), localStorage.setItem("vg-exit-pos", JSON.stringify(v)), V.current = null), pe && (Je(!1), localStorage.setItem("vg-bar-pos", JSON.stringify(H)), B.current = null);
1425
1439
  };
1426
- return window.addEventListener("mousemove", l), window.addEventListener("mouseup", h), () => {
1427
- window.removeEventListener("mousemove", l), window.removeEventListener("mouseup", h);
1440
+ return window.addEventListener("mousemove", d), window.addEventListener("mouseup", h), () => {
1441
+ window.removeEventListener("mousemove", d), window.removeEventListener("mouseup", h);
1428
1442
  };
1429
- }, [B, ee, b, M]);
1430
- const [Je, Ge] = S(null), [Ze, Ke] = S(""), [On, Vn] = S({}), ce = pe(null), xe = pe(null), ye = ke(() => {
1431
- xe.current || (xe.current = requestAnimationFrame(() => {
1432
- const l = /* @__PURE__ */ new Map(), y = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((w) => Cn(w) && ne(w)), V = !!y;
1433
- _.forEach((w) => {
1443
+ }, [U, pe, v, H]);
1444
+ const [Ze, $e] = b(null), [Ke, Qe] = b(""), [Tn, _n] = b({}), me = ce(null), fe = ce(null), he = ke(() => {
1445
+ fe.current || (fe.current = requestAnimationFrame(() => {
1446
+ const d = /* @__PURE__ */ new Map(), x = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((w) => En(w) && Q(w)), O = !!x;
1447
+ P.forEach((w) => {
1434
1448
  if (!w.reference) return;
1435
- const g = En(w.reference, w._id);
1436
- if (!g || !ne(g)) return;
1437
- const v = !!w.reference.metadata?.isModal;
1438
- let z = !1;
1439
- if (V ? z = y.contains(g) : z = !v, !z) return;
1440
- const A = g.getAttribute(ae);
1441
- A !== w._id && (document.querySelectorAll(`[${ae}="${w._id}"]`).forEach((N) => {
1442
- N.removeAttribute(ae);
1443
- }), A || g.setAttribute(ae, w._id)), l.has(g) || l.set(g, []), l.get(g).push(w);
1449
+ const y = Rn(w.reference, w._id);
1450
+ if (!y || !Q(y)) return;
1451
+ const C = !!w.reference.metadata?.isModal;
1452
+ let A = !1;
1453
+ if (O ? A = x.contains(y) : A = !C, !A) return;
1454
+ const Y = y.getAttribute(ee);
1455
+ Y !== w._id && (document.querySelectorAll(`[${ee}="${w._id}"]`).forEach((L) => {
1456
+ L.removeAttribute(ee);
1457
+ }), Y || y.setAttribute(ee, w._id)), d.has(y) || d.set(y, []), d.get(y).push(w);
1444
1458
  });
1445
- const j = [];
1446
- l.forEach((w, g) => {
1447
- const v = g.getBoundingClientRect(), z = v.left + v.width / 2, A = v.top + v.height / 2;
1448
- if (z >= 0 && z <= window.innerWidth && A >= 0 && A <= window.innerHeight) {
1449
- const N = document.elementFromPoint(z, A);
1450
- if (N && !g.contains(N) && !ce.current?.contains(N))
1459
+ const k = [];
1460
+ d.forEach((w, y) => {
1461
+ const C = y.getBoundingClientRect(), A = C.left + C.width / 2, Y = C.top + C.height / 2;
1462
+ if (A >= 0 && A <= window.innerWidth && Y >= 0 && Y <= window.innerHeight) {
1463
+ const L = document.elementFromPoint(A, Y);
1464
+ if (L && !y.contains(L) && !me.current?.contains(L))
1451
1465
  return;
1452
1466
  }
1453
- j.push({
1467
+ k.push({
1454
1468
  id: w[0]._id,
1455
1469
  // Group identified by its primary annotation
1456
- element: g,
1457
- rect: v,
1458
- annotations: w.sort((N, k) => new Date(k.timestamp || k.createdAt).getTime() - new Date(N.timestamp || N.createdAt).getTime()),
1470
+ element: y,
1471
+ rect: C,
1472
+ annotations: w.sort((L, R) => new Date(R.timestamp || R.createdAt).getTime() - new Date(L.timestamp || L.createdAt).getTime()),
1459
1473
  isModal: !!w[0].reference?.metadata?.isModal
1460
1474
  });
1461
- }), x(j), xe.current = null;
1475
+ }), g(k), fe.current = null;
1462
1476
  }));
1463
- }, [_]), te = ke(async () => {
1477
+ }, [P]), K = ke(async () => {
1464
1478
  if (n) {
1465
- se(!0);
1479
+ re(!0);
1466
1480
  try {
1467
- const l = await fetch(`${a}/api/annotations`, {
1481
+ const d = await fetch(`${a}/api/annotations`, {
1468
1482
  headers: { "x-api-key": n }
1469
1483
  });
1470
- if (l.ok) {
1471
- const V = ((await l.json()).data || []).reduce((j, w) => j.find((v) => v._id === w._id) ? j : j.concat([w]), []);
1472
- Ae(V);
1484
+ if (d.ok) {
1485
+ const O = ((await d.json()).data || []).reduce((k, w) => k.find((C) => C._id === w._id) ? k : k.concat([w]), []);
1486
+ Ae(O);
1473
1487
  }
1474
- } catch (l) {
1475
- console.error("Failed to fetch annotations", l);
1488
+ } catch (d) {
1489
+ console.error("Failed to fetch annotations", d);
1476
1490
  } finally {
1477
- se(!1);
1491
+ re(!1);
1478
1492
  }
1479
1493
  }
1480
1494
  }, [n, a]);
1481
- Z(() => {
1482
- L && _.length === 0 && !me && J(!1);
1483
- }, [L, _.length, me]), Z(() => {
1484
- if (!i && _.length > 0) {
1485
- ye();
1486
- const l = new MutationObserver(() => ye()), h = new ResizeObserver(() => ye()), y = () => ye();
1487
- return l.observe(document.documentElement, {
1495
+ X(() => {
1496
+ M && P.length === 0 && !le && q(!1);
1497
+ }, [M, P.length, le]), X(() => {
1498
+ if (!i && P.length > 0) {
1499
+ he();
1500
+ const d = new MutationObserver(() => he()), h = new ResizeObserver(() => he()), x = () => he();
1501
+ return d.observe(document.documentElement, {
1488
1502
  childList: !0,
1489
1503
  subtree: !0,
1490
1504
  attributes: !0
1491
- }), h.observe(document.documentElement), window.addEventListener("scroll", y, !0), () => {
1492
- l.disconnect(), h.disconnect(), window.removeEventListener("scroll", y, !0), xe.current && cancelAnimationFrame(xe.current);
1505
+ }), h.observe(document.documentElement), window.addEventListener("scroll", x, !0), () => {
1506
+ d.disconnect(), h.disconnect(), window.removeEventListener("scroll", x, !0), fe.current && cancelAnimationFrame(fe.current);
1493
1507
  };
1494
1508
  }
1495
- }, [i, _.length, ye]), Z(() => {
1496
- te();
1497
- }, [te]), Z(() => {
1498
- ce.current = document.getElementById("viewgate-shadow-host");
1509
+ }, [i, P.length, he]), X(() => {
1510
+ K();
1511
+ }, [K]), X(() => {
1512
+ me.current = document.getElementById("viewgate-shadow-host");
1499
1513
  }, []);
1500
- const $e = ke((l) => {
1514
+ const Me = ke((d) => {
1501
1515
  if (!i || f) return;
1502
- const h = yt(l.clientX, l.clientY);
1503
- if (!h || ce.current?.contains(h) || h.closest(".vg-no-capture")) {
1516
+ const h = xt(d.clientX, d.clientY);
1517
+ if (!h || me.current?.contains(h) || h.closest(".vg-no-capture")) {
1504
1518
  m(null);
1505
1519
  return;
1506
1520
  }
1507
- const y = h.getBoundingClientRect();
1521
+ const x = h.getBoundingClientRect();
1508
1522
  m({
1509
1523
  tag: h.tagName.toLowerCase(),
1510
1524
  source: h.getAttribute("data-source-path") || "unknown:0",
1511
- rect: y,
1525
+ rect: x,
1512
1526
  element: h,
1513
1527
  previewText: (h.innerText || "").slice(0, 100) || (h.getAttribute("placeholder") || "").slice(0, 100) || h.tagName.toLowerCase(),
1514
1528
  semanticReference: {
1515
- ...Rn(h),
1529
+ ...On(h),
1516
1530
  normalizedOffset: {
1517
- x: (l.clientX - y.left) / y.width,
1518
- y: (l.clientY - y.top) / y.height
1531
+ x: (d.clientX - x.left) / x.width,
1532
+ y: (d.clientY - x.top) / x.height
1519
1533
  }
1520
1534
  }
1521
1535
  });
1522
- }, [i, f]), Me = ke(async (l) => {
1536
+ }, [i, f]), Ne = ke(async (d) => {
1523
1537
  if (!i || f) return;
1524
- const h = yt(l.clientX, l.clientY);
1525
- if (!(!h || ce.current?.contains(h) || h.closest(".vg-no-capture")) && p) {
1526
- l.preventDefault(), l.stopPropagation(), X(!0);
1538
+ const h = xt(d.clientX, d.clientY);
1539
+ if (!(!h || me.current?.contains(h) || h.closest(".vg-no-capture")) && p) {
1540
+ d.preventDefault(), d.stopPropagation(), be(!0);
1527
1541
  try {
1528
- const j = window.scrollX, w = window.scrollY, g = await ft(document.documentElement, {
1529
- pixelRatio: 1.5,
1542
+ const k = await fn(document.body, {
1543
+ pixelRatio: 2,
1530
1544
  cacheBust: !0,
1531
1545
  width: window.innerWidth,
1532
1546
  height: window.innerHeight,
1533
1547
  backgroundColor: "#ffffff",
1534
- style: {
1535
- transform: `scale(${1 / window.devicePixelRatio}) translate(-${j}px, -${w}px)`,
1536
- transformOrigin: "top left"
1537
- },
1538
- filter: (k) => {
1539
- const re = k;
1540
- return !(ce.current?.contains(re) || re.id === "viewgate-ui");
1548
+ filter: (C) => {
1549
+ const A = C;
1550
+ return !(me.current?.contains(A) || A.id === "viewgate-ui" || A.classList?.contains("vg-no-capture"));
1541
1551
  }
1542
- }), v = p.element.getBoundingClientRect(), z = v.top >= 0 && v.left >= 0 && v.bottom <= window.innerHeight && v.right <= window.innerWidth;
1543
- let A = "";
1544
- if (z && v.width > 0 && v.height > 0)
1545
- A = await xt(g, v, 24, 1.5);
1546
- else
1547
- try {
1548
- A = await ft(p.element, {
1549
- pixelRatio: 2,
1550
- cacheBust: !0,
1551
- backgroundColor: "#ffffff",
1552
- filter: (k) => {
1553
- const re = k;
1554
- return !ce.current?.contains(re);
1555
- }
1556
- });
1557
- } catch {
1558
- A = await xt(g, v, 24, 1.5);
1559
- }
1560
- const N = {
1552
+ }), w = await bn(k, p.rect, 32, 2), y = {
1561
1553
  ...p.semanticReference,
1562
1554
  metadata: {
1563
1555
  ...p.semanticReference.metadata,
1564
- screenshotUrl: g,
1565
- elementScreenshot: A
1556
+ elementScreenshot: w
1566
1557
  }
1567
1558
  };
1568
- E({
1559
+ j({
1569
1560
  ...p,
1570
- visualPreview: A,
1571
- semanticReference: N
1561
+ visualPreview: w,
1562
+ semanticReference: y
1572
1563
  });
1573
- } catch (y) {
1574
- console.error("Failed to capture preview:", y), E(p);
1564
+ } catch (x) {
1565
+ console.error("Failed to capture high-fidelity preview:", x), j(p);
1575
1566
  } finally {
1576
- X(!1), m(null);
1567
+ be(!1), m(null);
1577
1568
  }
1578
1569
  }
1579
1570
  }, [i, p, f]);
1580
- Z(() => {
1581
- const l = (h) => {
1571
+ X(() => {
1572
+ const d = (h) => {
1582
1573
  if (h.key === "Escape") {
1583
- f ? E(null) : L ? J(!1) : i && u(!1);
1574
+ f ? j(null) : M ? q(!1) : i && u(!1);
1584
1575
  return;
1585
1576
  }
1586
- const V = (() => {
1587
- let g = document.activeElement;
1588
- for (; g && g.shadowRoot && g.shadowRoot.activeElement; )
1589
- g = g.shadowRoot.activeElement;
1590
- return g;
1577
+ const O = (() => {
1578
+ let y = document.activeElement;
1579
+ for (; y && y.shadowRoot && y.shadowRoot.activeElement; )
1580
+ y = y.shadowRoot.activeElement;
1581
+ return y;
1591
1582
  })();
1592
- if (["input", "textarea"].includes((V?.tagName || "").toLowerCase()) || V?.isContentEditable) return;
1583
+ if (["input", "textarea"].includes((O?.tagName || "").toLowerCase()) || O?.isContentEditable) return;
1593
1584
  const w = h.key.toLowerCase();
1594
- w === "c" && !f && !L && u((g) => !g), w === "v" && !f && (_.length > 0 || L) && (J((g) => !g), L || u(!1));
1585
+ w === "c" && !f && !M && u((y) => !y), w === "v" && !f && (P.length > 0 || M) && (q((y) => !y), M || u(!1));
1595
1586
  };
1596
- return i && !f ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", l), window.addEventListener("mousemove", $e, !0), window.addEventListener("click", Me, !0), () => {
1597
- document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", l), window.removeEventListener("mousemove", $e, !0), window.removeEventListener("click", Me, !0);
1587
+ return i && !f ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", d), window.addEventListener("mousemove", Me, !0), window.addEventListener("click", Ne, !0), () => {
1588
+ document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", d), window.removeEventListener("mousemove", Me, !0), window.removeEventListener("click", Ne, !0);
1598
1589
  };
1599
- }, [i, f, L, _, $e, Me]);
1600
- const $t = async () => {
1601
- if (!f || !O.trim()) return;
1602
- F(!0);
1603
- const { semanticReference: l } = f, [h, y] = (l.source || "").split(":"), V = y || "0";
1590
+ }, [i, f, M, P, Me, Ne]);
1591
+ const Gt = async () => {
1592
+ if (!f || !_.trim()) return;
1593
+ te(!0);
1594
+ const { semanticReference: d } = f, [h, x] = (d.source || "").split(":"), O = x || "0";
1604
1595
  try {
1605
1596
  if (!(await fetch(`${a}/api/annotations`, {
1606
1597
  method: "POST",
@@ -1610,12 +1601,12 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1610
1601
  },
1611
1602
  body: JSON.stringify({
1612
1603
  filePath: h,
1613
- line: parseInt(V),
1604
+ line: parseInt(O),
1614
1605
  url: window.location.href,
1615
- message: O,
1616
- componentName: l.componentPath || f.tag,
1606
+ message: _,
1607
+ componentName: d.componentPath || f.tag,
1617
1608
  reference: {
1618
- ...l,
1609
+ ...d,
1619
1610
  viewport: {
1620
1611
  width: window.innerWidth,
1621
1612
  height: window.innerHeight
@@ -1625,32 +1616,32 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1625
1616
  }
1626
1617
  })
1627
1618
  })).ok) throw new Error("Backend failed");
1628
- e(r.success, "success"), E(null), T(""), u(!1), te();
1629
- } catch (j) {
1630
- console.error(j), e(r.error, "error");
1619
+ e(r.success, "success"), j(null), N(""), u(!1), K();
1620
+ } catch (k) {
1621
+ console.error(k), e(r.error, "error");
1631
1622
  } finally {
1632
- F(!1);
1623
+ te(!1);
1633
1624
  }
1634
1625
  };
1635
- return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1154", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1155", className: "vg-no-capture", children: [
1626
+ return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1260", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1261", className: "vg-no-capture", children: [
1636
1627
  !c && /* @__PURE__ */ o.jsxs(
1637
1628
  "div",
1638
1629
  {
1639
1630
  style: {
1640
1631
  position: "fixed",
1641
- top: `${b.top}px`,
1642
- right: `${b.right}px`,
1643
- zIndex: ze + 10,
1632
+ top: `${v.top}px`,
1633
+ right: `${v.right}px`,
1634
+ zIndex: De + 10,
1644
1635
  display: "flex",
1645
1636
  alignItems: "center",
1646
1637
  gap: "8px",
1647
- transition: B ? "none" : "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
1638
+ transition: U ? "none" : "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
1648
1639
  },
1649
1640
  children: [
1650
1641
  /* @__PURE__ */ o.jsx(
1651
1642
  "div",
1652
1643
  {
1653
- onMouseDown: At,
1644
+ onMouseDown: Pt,
1654
1645
  style: {
1655
1646
  width: "20px",
1656
1647
  height: "32px",
@@ -1668,20 +1659,20 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1668
1659
  border: "1px solid rgba(0,0,0,0.1)",
1669
1660
  boxShadow: "0 2px 8px rgba(0,0,0,0.05)"
1670
1661
  },
1671
- onMouseEnter: (l) => {
1672
- l.currentTarget.style.backgroundColor = "white", l.currentTarget.style.color = "#000000";
1662
+ onMouseEnter: (d) => {
1663
+ d.currentTarget.style.backgroundColor = "white", d.currentTarget.style.color = "#000000";
1673
1664
  },
1674
- onMouseLeave: (l) => {
1675
- l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", l.currentTarget.style.color = "#1e293b";
1665
+ onMouseLeave: (d) => {
1666
+ d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", d.currentTarget.style.color = "#1e293b";
1676
1667
  },
1677
- children: /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1199", size: 14 })
1668
+ children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1305", size: 14 })
1678
1669
  }
1679
1670
  ),
1680
1671
  /* @__PURE__ */ o.jsx(
1681
1672
  "button",
1682
1673
  {
1683
- onClick: (l) => {
1684
- l.stopPropagation(), H({
1674
+ onClick: (d) => {
1675
+ d.stopPropagation(), z({
1685
1676
  title: r.exitConfirmTitle || "Close ViewGate?",
1686
1677
  message: r.exitConfirmMessage || "Are you sure you want to close ViewGate?",
1687
1678
  type: "danger",
@@ -1704,13 +1695,13 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1704
1695
  color: "#64748b",
1705
1696
  transition: "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
1706
1697
  },
1707
- onMouseEnter: (l) => {
1708
- l.currentTarget.style.transform = "scale(1.1) rotate(90deg)", l.currentTarget.style.color = "#ef4444", l.currentTarget.style.backgroundColor = "white";
1698
+ onMouseEnter: (d) => {
1699
+ d.currentTarget.style.transform = "scale(1.1) rotate(90deg)", d.currentTarget.style.color = "#ef4444", d.currentTarget.style.backgroundColor = "white";
1709
1700
  },
1710
- onMouseLeave: (l) => {
1711
- l.currentTarget.style.transform = "scale(1) rotate(0deg)", l.currentTarget.style.color = "#64748b", l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
1701
+ onMouseLeave: (d) => {
1702
+ d.currentTarget.style.transform = "scale(1) rotate(0deg)", d.currentTarget.style.color = "#64748b", d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
1712
1703
  },
1713
- children: /* @__PURE__ */ o.jsx(Ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1239", size: 20, strokeWidth: 2.5 })
1704
+ children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1345", size: 20, strokeWidth: 2.5 })
1714
1705
  }
1715
1706
  )
1716
1707
  ]
@@ -1719,23 +1710,23 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1719
1710
  /* @__PURE__ */ o.jsxs(
1720
1711
  "div",
1721
1712
  {
1722
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1245",
1713
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1351",
1723
1714
  style: {
1724
1715
  position: "fixed",
1725
- bottom: `${M.bottom}px`,
1726
- right: `${M.right}px`,
1727
- zIndex: ze,
1716
+ bottom: `${H.bottom}px`,
1717
+ right: `${H.right}px`,
1718
+ zIndex: De,
1728
1719
  display: "flex",
1729
1720
  alignItems: "center",
1730
1721
  gap: "8px",
1731
- transition: ee ? "none" : "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"
1722
+ transition: pe ? "none" : "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"
1732
1723
  },
1733
1724
  id: "viewgate-ui",
1734
1725
  children: [
1735
1726
  /* @__PURE__ */ o.jsx(
1736
1727
  "div",
1737
1728
  {
1738
- onMouseDown: Gt,
1729
+ onMouseDown: At,
1739
1730
  style: {
1740
1731
  width: "24px",
1741
1732
  height: "40px",
@@ -1753,17 +1744,17 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1753
1744
  border: "1px solid rgba(0,0,0,0.1)",
1754
1745
  boxShadow: "0 2px 8px rgba(0,0,0,0.05)"
1755
1746
  },
1756
- onMouseEnter: (l) => {
1757
- l.currentTarget.style.backgroundColor = "white", l.currentTarget.style.color = "#000000";
1747
+ onMouseEnter: (d) => {
1748
+ d.currentTarget.style.backgroundColor = "white", d.currentTarget.style.color = "#000000";
1758
1749
  },
1759
- onMouseLeave: (l) => {
1760
- l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", l.currentTarget.style.color = "#1e293b";
1750
+ onMouseLeave: (d) => {
1751
+ d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", d.currentTarget.style.color = "#1e293b";
1761
1752
  },
1762
1753
  className: "vg-animate-slide-up",
1763
- children: /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1288", size: 16 })
1754
+ children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1394", size: 16 })
1764
1755
  }
1765
1756
  ),
1766
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1291", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
1757
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1397", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
1767
1758
  /* @__PURE__ */ o.jsx(
1768
1759
  "button",
1769
1760
  {
@@ -1773,23 +1764,23 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1773
1764
  padding: "12px 24px",
1774
1765
  background: i ? "#ef4444" : void 0
1775
1766
  },
1776
- children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1300", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1777
- i ? /* @__PURE__ */ o.jsx(Ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1301", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1301", size: 20, className: "vg-animate-pop" }),
1778
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1302", children: i ? r.exitMode : r.enterMode })
1767
+ children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1406", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1768
+ i ? /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1407", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1407", size: 20, className: "vg-animate-pop" }),
1769
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1408", children: i ? r.exitMode : r.enterMode })
1779
1770
  ] })
1780
1771
  }
1781
1772
  ),
1782
- _.length > 0 && /* @__PURE__ */ o.jsxs(
1773
+ P.length > 0 && /* @__PURE__ */ o.jsxs(
1783
1774
  "button",
1784
1775
  {
1785
1776
  onClick: () => {
1786
- J(!L), u(!1), E(null);
1777
+ q(!M), u(!1), j(null);
1787
1778
  },
1788
1779
  className: "vg-button-ghost vg-animate-pop",
1789
1780
  style: { animationDelay: "0.1s" },
1790
1781
  children: [
1791
- /* @__PURE__ */ o.jsx(tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1315", size: 20 }),
1792
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1316", children: r.viewComments })
1782
+ /* @__PURE__ */ o.jsx(tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1421", size: 20 }),
1783
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1422", children: r.viewComments })
1793
1784
  ]
1794
1785
  }
1795
1786
  )
@@ -1797,7 +1788,7 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1797
1788
  ]
1798
1789
  }
1799
1790
  ),
1800
- Y && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1324", style: {
1791
+ ve && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1430", style: {
1801
1792
  position: "fixed",
1802
1793
  top: 0,
1803
1794
  left: 0,
@@ -1808,16 +1799,16 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1808
1799
  display: "flex",
1809
1800
  alignItems: "center",
1810
1801
  justifyContent: "center",
1811
- zIndex: ze + 1,
1802
+ zIndex: De + 1,
1812
1803
  cursor: "wait"
1813
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1330", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1814
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1331", className: "vg-spinner" }),
1815
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1332", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
1804
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1436", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1805
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1437", className: "vg-spinner" }),
1806
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1438", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
1816
1807
  ] }) }),
1817
1808
  i && !f && /* @__PURE__ */ o.jsx(
1818
1809
  "div",
1819
1810
  {
1820
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1339",
1811
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1445",
1821
1812
  className: "vg-backdrop-blur",
1822
1813
  style: {
1823
1814
  opacity: 1,
@@ -1829,36 +1820,36 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1829
1820
  ${p.rect.left}px ${p.rect.bottom}px,
1830
1821
  ${p.rect.left}px ${p.rect.top}px
1831
1822
  )` : "none",
1832
- zIndex: fn
1823
+ zIndex: hn
1833
1824
  }
1834
1825
  }
1835
1826
  ),
1836
- i && p && !f && !Y && /* @__PURE__ */ o.jsx(
1827
+ i && p && !f && !ve && /* @__PURE__ */ o.jsx(
1837
1828
  "div",
1838
1829
  {
1839
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1358",
1830
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1464",
1840
1831
  className: "vg-selection-pulse",
1841
1832
  style: {
1842
1833
  top: p.rect.top - 4,
1843
1834
  left: p.rect.left - 4,
1844
1835
  width: p.rect.width + 8,
1845
1836
  height: p.rect.height + 8,
1846
- zIndex: hn
1837
+ zIndex: gn
1847
1838
  },
1848
1839
  children: /* @__PURE__ */ o.jsxs(
1849
1840
  "div",
1850
1841
  {
1851
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1368",
1842
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1474",
1852
1843
  className: "vg-selection-label",
1853
1844
  style: {
1854
1845
  ...p.rect.top < 60 ? p.rect.bottom > window.innerHeight - 60 ? { top: "8px", bottom: "auto" } : { top: "100%", marginTop: "8px", bottom: "auto" } : { top: "-40px", bottom: "auto" },
1855
1846
  ...p.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
1856
1847
  },
1857
1848
  children: [
1858
- /* @__PURE__ */ o.jsx(lr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1384", size: 16 }),
1859
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1385", style: { display: "flex", flexDirection: "column" }, children: [
1860
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1386", style: { fontWeight: 700 }, children: r.selectToComment }),
1861
- /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1387", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
1849
+ /* @__PURE__ */ o.jsx(lr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1490", size: 16 }),
1850
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1491", style: { display: "flex", flexDirection: "column" }, children: [
1851
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1492", style: { fontWeight: 700 }, children: r.selectToComment }),
1852
+ /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1493", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
1862
1853
  Math.round(p.rect.width),
1863
1854
  " × ",
1864
1855
  Math.round(p.rect.height)
@@ -1869,7 +1860,7 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1869
1860
  )
1870
1861
  }
1871
1862
  ),
1872
- f && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1397", className: "vg-animate-fade", style: {
1863
+ f && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1503", className: "vg-animate-fade", style: {
1873
1864
  position: "fixed",
1874
1865
  top: 0,
1875
1866
  left: 0,
@@ -1880,14 +1871,14 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1880
1871
  display: "flex",
1881
1872
  alignItems: "center",
1882
1873
  justifyContent: "center",
1883
- zIndex: De
1884
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1402", className: "vg-glassmorphism vg-animate-slide", style: {
1874
+ zIndex: Fe
1875
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1508", className: "vg-glassmorphism vg-animate-slide", style: {
1885
1876
  padding: "40px",
1886
1877
  width: "500px",
1887
1878
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
1888
1879
  }, children: [
1889
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1406", style: { textAlign: "center", marginBottom: "32px" }, children: [
1890
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1407", style: {
1880
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1512", style: { textAlign: "center", marginBottom: "32px" }, children: [
1881
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1513", style: {
1891
1882
  width: "48px",
1892
1883
  height: "48px",
1893
1884
  background: "var(--vg-primary-gradient)",
@@ -1898,11 +1889,11 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1898
1889
  margin: "0 auto 16px",
1899
1890
  color: "white",
1900
1891
  boxShadow: "0 8px 16px rgba(99, 102, 241, 0.3)"
1901
- }, children: /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1412", size: 24 }) }),
1902
- /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1414", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1903
- /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1415", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
1892
+ }, children: /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1518", size: 24 }) }),
1893
+ /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1520", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1894
+ /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1521", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
1904
1895
  ] }),
1905
- f.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1419", style: {
1896
+ f.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1525", style: {
1906
1897
  marginBottom: "24px",
1907
1898
  borderRadius: "12px",
1908
1899
  overflow: "hidden",
@@ -1922,21 +1913,21 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1922
1913
  "textarea",
1923
1914
  {
1924
1915
  className: "vg-textarea",
1925
- value: O,
1926
- onChange: (l) => T(l.target.value),
1916
+ value: _,
1917
+ onChange: (d) => N(d.target.value),
1927
1918
  rows: 4,
1928
1919
  placeholder: r.placeholder,
1929
1920
  autoFocus: !0,
1930
1921
  style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
1931
1922
  }
1932
1923
  ),
1933
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1446", style: { display: "flex", gap: "12px" }, children: [
1924
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1552", style: { display: "flex", gap: "12px" }, children: [
1934
1925
  /* @__PURE__ */ o.jsx(
1935
1926
  "button",
1936
1927
  {
1937
- onClick: () => !$ && E(null),
1928
+ onClick: () => !W && j(null),
1938
1929
  className: "vg-button-ghost",
1939
- disabled: $,
1930
+ disabled: W,
1940
1931
  style: { flex: 1, padding: "12px" },
1941
1932
  children: r.cancel
1942
1933
  }
@@ -1944,19 +1935,19 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1944
1935
  /* @__PURE__ */ o.jsx(
1945
1936
  "button",
1946
1937
  {
1947
- onClick: $t,
1938
+ onClick: Gt,
1948
1939
  className: "vg-button-primary",
1949
- disabled: $ || !O.trim(),
1940
+ disabled: W || !_.trim(),
1950
1941
  style: { flex: 2 },
1951
- children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1461", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1952
- $ ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1462", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(hr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1462", size: 18 }),
1953
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1463", children: $ ? r.submitting : r.sendFeedback || "Send Comment" })
1942
+ children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1567", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1943
+ W ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1568", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(hr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1568", size: 18 }),
1944
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1569", children: W ? r.submitting : r.sendFeedback || "Send Comment" })
1954
1945
  ] })
1955
1946
  }
1956
1947
  )
1957
1948
  ] })
1958
1949
  ] }) }),
1959
- L && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1473", className: "vg-animate-fade", style: {
1950
+ M && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1579", className: "vg-animate-fade", style: {
1960
1951
  position: "fixed",
1961
1952
  top: 0,
1962
1953
  left: 0,
@@ -1967,52 +1958,48 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
1967
1958
  display: "flex",
1968
1959
  alignItems: "center",
1969
1960
  justifyContent: "center",
1970
- zIndex: De
1971
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1478", className: "vg-glassmorphism vg-animate-slide", style: {
1961
+ zIndex: Fe
1962
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1584", className: "vg-glassmorphism vg-animate-slide", style: {
1972
1963
  padding: "32px",
1973
1964
  width: "650px",
1974
1965
  maxHeight: "85vh",
1975
1966
  display: "flex",
1976
1967
  flexDirection: "column"
1977
1968
  }, children: [
1978
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1482", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1979
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1483", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1980
- /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1484", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: W ? r.commentDetails : r.annotations }),
1981
- !W && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1488", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: _.length })
1969
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1588", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1970
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1589", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1971
+ /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1590", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: D ? r.commentDetails : r.annotations }),
1972
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1593", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: S.length })
1982
1973
  ] }),
1983
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1493", style: { display: "flex", gap: "8px" }, children: [
1984
- W && /* @__PURE__ */ o.jsx(
1974
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1597", style: { display: "flex", gap: "8px" }, children: [
1975
+ D && /* @__PURE__ */ o.jsx(
1985
1976
  "button",
1986
1977
  {
1987
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1495",
1978
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1599",
1988
1979
  className: "vg-button-ghost",
1989
1980
  style: { padding: "6px 14px", fontSize: "12px" },
1990
- onClick: () => oe(null),
1981
+ onClick: () => ne(null),
1991
1982
  children: r.viewAll || "View All"
1992
1983
  }
1993
1984
  ),
1994
1985
  /* @__PURE__ */ o.jsx(
1995
1986
  "button",
1996
1987
  {
1997
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1503",
1988
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1607",
1998
1989
  className: "vg-button-ghost",
1999
1990
  style: { padding: "8px", borderRadius: "50%" },
2000
1991
  onClick: () => {
2001
- J(!1), oe(null);
1992
+ q(!1), ne(null);
2002
1993
  },
2003
- children: /* @__PURE__ */ o.jsx(Ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1508", size: 20 })
1994
+ children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1612", size: 20 })
2004
1995
  }
2005
1996
  )
2006
1997
  ] })
2007
1998
  ] }),
2008
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1513", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: me ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1515", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1516", className: "vg-spinner" }) }) : (() => {
2009
- if (!W) return _;
2010
- const l = d.find((h) => h.annotations.some((y) => y._id === W));
2011
- return l ? l.annotations : _.filter((h) => h._id === W);
2012
- })().map((l, h) => /* @__PURE__ */ o.jsxs(
1999
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1616", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: le ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1618", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1619", className: "vg-spinner" }) }) : S.map((d, h) => /* @__PURE__ */ o.jsxs(
2013
2000
  "div",
2014
2001
  {
2015
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1525",
2002
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1623",
2016
2003
  className: "vg-glassmorphism vg-animate-slide",
2017
2004
  style: {
2018
2005
  padding: "20px",
@@ -2022,15 +2009,15 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
2022
2009
  animationDelay: `${h * 0.05}s`
2023
2010
  },
2024
2011
  children: [
2025
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1536", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: [
2026
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1537", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
2027
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1538", style: { fontSize: "12px", color: "#000000", fontWeight: 600 }, children: ht(l.timestamp || l.createdAt || l.reference?.timestamp, t) }),
2028
- l.url && /* @__PURE__ */ o.jsx(
2012
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1635", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: [
2013
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1636", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
2014
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1637", style: { fontSize: "12px", color: "#000000", fontWeight: 600 }, children: ht(d.timestamp || d.createdAt || d.reference?.timestamp, t) }),
2015
+ d.url && /* @__PURE__ */ o.jsx(
2029
2016
  gt,
2030
2017
  {
2031
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1542",
2032
- url: l.url,
2033
- onHover: he,
2018
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1641",
2019
+ url: d.url,
2020
+ onHover: ue,
2034
2021
  style: {
2035
2022
  display: "flex",
2036
2023
  alignItems: "center",
@@ -2046,41 +2033,41 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
2046
2033
  }
2047
2034
  )
2048
2035
  ] }),
2049
- l.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1561", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a", border: "1px solid #dcfce7" }, children: [
2050
- /* @__PURE__ */ o.jsx(ue, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1562", size: 14 }),
2036
+ d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1660", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a", border: "1px solid #dcfce7" }, children: [
2037
+ /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1661", size: 14 }),
2051
2038
  " ",
2052
2039
  r.readyForReview
2053
- ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1565", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c", border: "1px solid #ffedd5" }, children: [
2054
- /* @__PURE__ */ o.jsx(nt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1566", size: 14 }),
2040
+ ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1664", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c", border: "1px solid #ffedd5" }, children: [
2041
+ /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1665", size: 14 }),
2055
2042
  " ",
2056
2043
  r.pending
2057
2044
  ] })
2058
2045
  ] }),
2059
- Je === l._id ? /* @__PURE__ */ o.jsx(
2046
+ Ze === d._id ? /* @__PURE__ */ o.jsx(
2060
2047
  "textarea",
2061
2048
  {
2062
2049
  className: "vg-textarea",
2063
- value: Ze,
2064
- onChange: (y) => Ke(y.target.value),
2050
+ value: Ke,
2051
+ onChange: (x) => Qe(x.target.value),
2065
2052
  rows: 3,
2066
2053
  autoFocus: !0,
2067
2054
  style: { marginBottom: "16px" }
2068
2055
  }
2069
- ) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1581", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: l.message }),
2070
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1584", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: Je === l._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2056
+ ) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1680", className: "vg-text-wrap", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: d.message }),
2057
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1683", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: Ze === d._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2071
2058
  /* @__PURE__ */ o.jsx(
2072
2059
  "button",
2073
2060
  {
2074
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1587",
2061
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1686",
2075
2062
  className: "vg-button-primary vg-animate-pop",
2076
2063
  style: { padding: "8px 16px", fontSize: "13px" },
2077
2064
  onClick: async () => {
2078
2065
  try {
2079
- (await fetch(`${a}/api/annotations/${l._id}`, {
2066
+ (await fetch(`${a}/api/annotations/${d._id}`, {
2080
2067
  method: "PATCH",
2081
2068
  headers: { "Content-Type": "application/json", "x-api-key": n },
2082
- body: JSON.stringify({ message: Ze })
2083
- })).ok && (Ge(null), te(), e(r.updateSuccess, "success"));
2069
+ body: JSON.stringify({ message: Ke })
2070
+ })).ok && ($e(null), K(), e(r.updateSuccess, "success"));
2084
2071
  } catch {
2085
2072
  e(r.error, "error");
2086
2073
  }
@@ -2088,19 +2075,19 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
2088
2075
  children: r.save
2089
2076
  }
2090
2077
  ),
2091
- /* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1609", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => Ge(null), children: r.cancel })
2078
+ /* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1708", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => $e(null), children: r.cancel })
2092
2079
  ] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2093
2080
  /* @__PURE__ */ o.jsxs(
2094
2081
  "button",
2095
2082
  {
2096
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1613",
2083
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1712",
2097
2084
  className: "vg-button-ghost vg-animate-pop",
2098
2085
  style: { padding: "8px 16px", fontSize: "13px" },
2099
2086
  onClick: () => {
2100
- Ge(l._id), Ke(l.message);
2087
+ $e(d._id), Qe(d.message);
2101
2088
  },
2102
2089
  children: [
2103
- /* @__PURE__ */ o.jsx(ur, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1621", size: 14 }),
2090
+ /* @__PURE__ */ o.jsx(ur, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1720", size: 14 }),
2104
2091
  " ",
2105
2092
  r.edit
2106
2093
  ]
@@ -2109,47 +2096,47 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
2109
2096
  /* @__PURE__ */ o.jsxs(
2110
2097
  "button",
2111
2098
  {
2112
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1623",
2099
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1722",
2113
2100
  className: "vg-button-ghost vg-animate-pop",
2114
2101
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.05s" },
2115
2102
  onClick: () => {
2116
- l.url && (window.location.href = l.url);
2103
+ d.url && (window.location.href = d.url);
2117
2104
  },
2118
2105
  children: [
2119
- /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1630", size: 14 }),
2106
+ /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1729", size: 14 }),
2120
2107
  " ",
2121
2108
  r.review
2122
2109
  ]
2123
2110
  }
2124
2111
  ),
2125
- l.status === "pending" ? /* @__PURE__ */ o.jsxs(
2112
+ d.status === "pending" ? /* @__PURE__ */ o.jsxs(
2126
2113
  "button",
2127
2114
  {
2128
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1633",
2115
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1732",
2129
2116
  className: "vg-button-primary vg-animate-pop",
2130
2117
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
2131
2118
  onClick: () => {
2132
- H({
2119
+ z({
2133
2120
  title: r.markReadyConfirm,
2134
2121
  message: r.confirmMarkReady,
2135
2122
  type: "success",
2136
2123
  onConfirm: async () => {
2137
2124
  try {
2138
- (await fetch(`${a}/api/annotations/${l._id}`, {
2125
+ (await fetch(`${a}/api/annotations/${d._id}`, {
2139
2126
  method: "PATCH",
2140
2127
  headers: { "Content-Type": "application/json", "x-api-key": n },
2141
2128
  body: JSON.stringify({ status: "ready_for_review" })
2142
- })).ok && (te(), e(r.updateSuccess, "success"));
2129
+ })).ok && (K(), e(r.updateSuccess, "success"));
2143
2130
  } catch {
2144
2131
  e(r.error, "error");
2145
2132
  } finally {
2146
- H(null);
2133
+ z(null);
2147
2134
  }
2148
2135
  }
2149
2136
  });
2150
2137
  },
2151
2138
  children: [
2152
- /* @__PURE__ */ o.jsx(ue, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1661", size: 14 }),
2139
+ /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1760", size: 14 }),
2153
2140
  " ",
2154
2141
  r.markReady
2155
2142
  ]
@@ -2157,32 +2144,32 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
2157
2144
  ) : /* @__PURE__ */ o.jsxs(
2158
2145
  "button",
2159
2146
  {
2160
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1664",
2147
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1763",
2161
2148
  className: "vg-button-ghost vg-animate-pop",
2162
2149
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
2163
2150
  onClick: () => {
2164
- H({
2151
+ z({
2165
2152
  title: r.reopenConfirm,
2166
2153
  message: r.confirmReopen,
2167
2154
  type: "success",
2168
2155
  // Reopening is a positive action, use success theme (indigo/check) or we could add a neutral theme
2169
2156
  onConfirm: async () => {
2170
2157
  try {
2171
- (await fetch(`${a}/api/annotations/${l._id}`, {
2158
+ (await fetch(`${a}/api/annotations/${d._id}`, {
2172
2159
  method: "PATCH",
2173
2160
  headers: { "Content-Type": "application/json", "x-api-key": n },
2174
2161
  body: JSON.stringify({ status: "pending" })
2175
- })).ok && (te(), e(r.updateSuccess, "success"));
2162
+ })).ok && (K(), e(r.updateSuccess, "success"));
2176
2163
  } catch {
2177
2164
  e(r.error, "error");
2178
2165
  } finally {
2179
- H(null);
2166
+ z(null);
2180
2167
  }
2181
2168
  }
2182
2169
  });
2183
2170
  },
2184
2171
  children: [
2185
- /* @__PURE__ */ o.jsx(mr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1692", size: 14 }),
2172
+ /* @__PURE__ */ o.jsx(mr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1791", size: 14 }),
2186
2173
  " ",
2187
2174
  r.reopen
2188
2175
  ]
@@ -2191,38 +2178,38 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
2191
2178
  /* @__PURE__ */ o.jsx(
2192
2179
  "button",
2193
2180
  {
2194
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1695",
2181
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1794",
2195
2182
  className: "vg-button-ghost vg-animate-pop",
2196
2183
  style: { padding: "8px 12px", color: "#ef4444", borderColor: "#fee2e2", animationDelay: "0.15s" },
2197
2184
  onClick: () => {
2198
- H({
2185
+ z({
2199
2186
  title: r.deleteConfirm,
2200
2187
  message: r.confirmDelete,
2201
2188
  type: "danger",
2202
2189
  onConfirm: async () => {
2203
2190
  try {
2204
- (await fetch(`${a}/api/annotations/${l._id}`, {
2191
+ (await fetch(`${a}/api/annotations/${d._id}`, {
2205
2192
  method: "DELETE",
2206
2193
  headers: { "x-api-key": n }
2207
- })).ok && (te(), e(r.deleteSuccess, "success"));
2194
+ })).ok && (K(), e(r.deleteSuccess, "success"));
2208
2195
  } catch {
2209
2196
  e(r.error, "error");
2210
2197
  } finally {
2211
- H(null);
2198
+ z(null);
2212
2199
  }
2213
2200
  }
2214
2201
  });
2215
2202
  },
2216
- children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1722", size: 16 })
2203
+ children: /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1821", size: 16 })
2217
2204
  }
2218
2205
  )
2219
2206
  ] }) })
2220
2207
  ]
2221
2208
  },
2222
- l._id
2209
+ d._id
2223
2210
  )) })
2224
2211
  ] }) }),
2225
- D && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1737", className: "vg-animate-fade", style: {
2212
+ I && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1836", className: "vg-animate-fade", style: {
2226
2213
  position: "fixed",
2227
2214
  top: 0,
2228
2215
  left: 0,
@@ -2233,119 +2220,125 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
2233
2220
  display: "flex",
2234
2221
  alignItems: "center",
2235
2222
  justifyContent: "center",
2236
- zIndex: De + 100
2237
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1742", className: "vg-glassmorphism vg-animate-slide", style: {
2223
+ zIndex: Fe + 100
2224
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1841", className: "vg-glassmorphism vg-animate-slide", style: {
2238
2225
  padding: "40px",
2239
2226
  width: "420px",
2240
2227
  textAlign: "center",
2241
2228
  border: "1px solid rgba(255, 255, 255, 0.1)",
2242
2229
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
2243
2230
  }, children: [
2244
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1749", style: {
2231
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1848", style: {
2245
2232
  width: "64px",
2246
2233
  height: "64px",
2247
- background: D.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
2234
+ background: I.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
2248
2235
  borderRadius: "20px",
2249
2236
  display: "flex",
2250
2237
  alignItems: "center",
2251
2238
  justifyContent: "center",
2252
2239
  margin: "0 auto 24px",
2253
- color: D.type === "danger" ? "#ef4444" : "#6366f1",
2240
+ color: I.type === "danger" ? "#ef4444" : "#6366f1",
2254
2241
  transform: "rotate(-5deg)"
2255
- }, children: D.type === "danger" ? /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1758", size: 32 }) : /* @__PURE__ */ o.jsx(ue, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1758", size: 32 }) }),
2256
- /* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1760", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: D.title }),
2257
- /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1761", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: D.message }),
2258
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1762", style: { display: "flex", gap: "16px" }, children: [
2242
+ }, children: I.type === "danger" ? /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1857", size: 32 }) : /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1857", size: 32 }) }),
2243
+ /* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1859", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: I.title }),
2244
+ /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1860", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: I.message }),
2245
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1861", style: { display: "flex", gap: "16px" }, children: [
2259
2246
  /* @__PURE__ */ o.jsx(
2260
2247
  "button",
2261
2248
  {
2262
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1763",
2249
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1862",
2263
2250
  className: "vg-button-ghost",
2264
2251
  style: { flex: 1, height: "44px" },
2265
- onClick: () => !Q && H(null),
2266
- disabled: Q,
2252
+ onClick: () => !Z && z(null),
2253
+ disabled: Z,
2267
2254
  children: r.no
2268
2255
  }
2269
2256
  ),
2270
2257
  /* @__PURE__ */ o.jsx(
2271
2258
  "button",
2272
2259
  {
2273
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1771",
2260
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1870",
2274
2261
  className: "vg-button-primary",
2275
2262
  style: {
2276
2263
  flex: 1,
2277
2264
  height: "44px",
2278
- backgroundColor: D.type === "danger" ? "#ef4444" : void 0,
2279
- backgroundImage: D.type === "danger" ? "none" : void 0,
2265
+ backgroundColor: I.type === "danger" ? "#ef4444" : void 0,
2266
+ backgroundImage: I.type === "danger" ? "none" : void 0,
2280
2267
  display: "flex",
2281
2268
  alignItems: "center",
2282
2269
  justifyContent: "center",
2283
2270
  gap: "8px"
2284
2271
  },
2285
- disabled: Q,
2272
+ disabled: Z,
2286
2273
  onClick: async () => {
2287
- fe(!0);
2274
+ de(!0);
2288
2275
  try {
2289
- await D.onConfirm();
2290
- } catch (l) {
2291
- console.error("Confirmation error:", l);
2276
+ await I.onConfirm();
2277
+ } catch (d) {
2278
+ console.error("Confirmation error:", d);
2292
2279
  } finally {
2293
- fe(!1);
2280
+ de(!1);
2294
2281
  }
2295
2282
  },
2296
- children: Q ? /* @__PURE__ */ o.jsx(or, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1796", size: 18, className: "vg-animate-spin" }) : r.yes
2283
+ children: Z ? /* @__PURE__ */ o.jsx(or, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1895", size: 18, className: "vg-animate-spin" }) : r.yes
2297
2284
  }
2298
2285
  )
2299
2286
  ] })
2300
2287
  ] }) }),
2301
- !i && !L && d.map((l, h) => {
2302
- const { rect: y, annotations: V, isModal: j } = l, w = V[0], g = V.length, v = V.some((k) => k.status === "ready_for_review"), z = V.some((k) => k.status !== "ready_for_review"), A = v && z, N = v && !z;
2288
+ !i && !M && l.map((d, h) => {
2289
+ const { rect: x, annotations: O, isModal: k } = d, w = O[0], y = O.length, C = O.some((R) => R.status === "ready_for_review"), A = O.some((R) => R.status !== "ready_for_review"), Y = C && A, L = C && !A;
2303
2290
  return /* @__PURE__ */ o.jsxs(
2304
2291
  "div",
2305
2292
  {
2306
2293
  className: "vg-pin-container vg-animate-pop",
2307
2294
  style: {
2308
2295
  position: "fixed",
2309
- top: y.top - 20,
2310
- left: y.left + y.width / 2 - 16,
2296
+ top: x.top - 20,
2297
+ left: x.left + x.width / 2 - 16,
2298
+ width: "32px",
2299
+ height: "32px",
2311
2300
  cursor: "pointer",
2312
2301
  transition: "all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",
2313
- zIndex: gn
2302
+ zIndex: xn
2303
+ },
2304
+ onMouseEnter: (R) => {
2305
+ window.innerHeight - x.bottom < 250 ? Ee((Ie) => ({ ...Ie, [d.id]: "vg-top" })) : Ee((Ie) => ({ ...Ie, [d.id]: "" }));
2314
2306
  },
2315
- onMouseEnter: (k) => {
2316
- window.innerHeight - y.bottom < 250 ? Ee((Ne) => ({ ...Ne, [l.id]: "vg-top" })) : Ee((Ne) => ({ ...Ne, [l.id]: "" }));
2307
+ onWheel: (R) => {
2308
+ const ge = R.currentTarget.querySelector(".vg-tooltip-scroll");
2309
+ ge && ge.scrollBy({ top: R.deltaY, behavior: "smooth" });
2317
2310
  },
2318
2311
  onClick: () => {
2319
- J(!0), oe(w._id);
2312
+ q(!0), ne(w._id);
2320
2313
  },
2321
2314
  children: [
2322
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1840", className: `vg-pin-tooltip ${Se[l.id] || ""}`, style: { width: "280px", padding: "16px" }, children: [
2323
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1841", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "12px" }, children: [
2324
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1842", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2325
- /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1843", size: 14, color: "#6366f1" }),
2326
- /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1844", style: { fontWeight: 800, fontSize: "13px", color: "#0f172a" }, children: [
2327
- g,
2315
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1948", className: `vg-pin-tooltip ${Ce[d.id] || ""}`, style: { padding: "16px" }, children: [
2316
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1949", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "12px" }, children: [
2317
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1950", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2318
+ /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1951", size: 14, color: "#6366f1" }),
2319
+ /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1952", style: { fontWeight: 800, fontSize: "13px", color: "#0f172a" }, children: [
2320
+ y,
2328
2321
  " ",
2329
- g === 1 ? "Comentario" : "Comentarios"
2322
+ y === 1 ? "Comentario" : "Comentarios"
2330
2323
  ] })
2331
2324
  ] }),
2332
- j && /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1849", className: "vg-badge", style: { fontSize: "10px", background: "#fef3c7", color: "#92400e", border: "none" }, children: "MODAL" })
2325
+ k && /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1957", className: "vg-badge", style: { fontSize: "10px", background: "#fef3c7", color: "#92400e", border: "none" }, children: "MODAL" })
2333
2326
  ] }),
2334
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1852", className: "vg-tooltip-scroll", style: { maxHeight: "180px", overflowY: "auto" }, children: V.map((k, re) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1854", style: {
2327
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1960", className: "vg-tooltip-scroll", style: { maxHeight: "180px", overflowY: "auto" }, children: O.map((R, ge) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1962", style: {
2335
2328
  padding: "10px 0",
2336
- borderTop: re === 0 ? "none" : "1px solid #f1f5f9",
2329
+ borderTop: ge === 0 ? "none" : "1px solid #f1f5f9",
2337
2330
  display: "flex",
2338
2331
  gap: "12px",
2339
2332
  alignItems: "flex-start"
2340
2333
  }, children: [
2341
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1861", style: { flex: 1, display: "flex", flexDirection: "column", gap: "4px" }, children: [
2342
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1862", style: { fontSize: "10px", fontWeight: 600, color: "#64748b" }, children: ht(k.timestamp || k.createdAt, t) }),
2343
- k.url && /* @__PURE__ */ o.jsx(
2334
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1969", style: { flex: 1, display: "flex", flexDirection: "column", gap: "4px" }, children: [
2335
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1970", style: { fontSize: "10px", fontWeight: 600, color: "#64748b" }, children: ht(R.timestamp || R.createdAt, t) }),
2336
+ R.url && /* @__PURE__ */ o.jsx(
2344
2337
  gt,
2345
2338
  {
2346
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1866",
2347
- url: k.url,
2348
- onHover: he,
2339
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1974",
2340
+ url: R.url,
2341
+ onHover: ue,
2349
2342
  style: {
2350
2343
  display: "flex",
2351
2344
  alignItems: "center",
@@ -2361,9 +2354,9 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
2361
2354
  tooltipStyle: { fontSize: "9px" }
2362
2355
  }
2363
2356
  ),
2364
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1884", style: { fontSize: "13px", color: "#1e293b", lineHeight: 1.4, fontWeight: 500 }, children: k.message.length > 80 ? k.message.slice(0, 80) + "..." : k.message })
2357
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1992", className: "vg-line-clamp-2", style: { fontSize: "13px", color: "#1e293b", lineHeight: 1.4, fontWeight: 500 }, children: R.message.length > 100 ? R.message.slice(0, 97) + "..." : R.message })
2365
2358
  ] }),
2366
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1888", style: { flexShrink: 0, marginTop: "2px" }, children: k.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1890", style: {
2359
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1996", style: { flexShrink: 0, marginTop: "2px" }, children: R.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1998", style: {
2367
2360
  display: "flex",
2368
2361
  alignItems: "center",
2369
2362
  gap: "4px",
@@ -2376,9 +2369,9 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
2376
2369
  textTransform: "uppercase",
2377
2370
  border: "1px solid #dcfce7"
2378
2371
  }, children: [
2379
- /* @__PURE__ */ o.jsx(ue, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1903", size: 10 }),
2372
+ /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2011", size: 10 }),
2380
2373
  r.readyForReview
2381
- ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1907", style: {
2374
+ ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2015", style: {
2382
2375
  display: "flex",
2383
2376
  alignItems: "center",
2384
2377
  gap: "4px",
@@ -2391,31 +2384,31 @@ const _e = 2147483647, ze = _e, De = 2e6, fn = _e - 10, hn = _e - 5, gn = _e - 1
2391
2384
  textTransform: "uppercase",
2392
2385
  border: "1px solid #ffedd5"
2393
2386
  }, children: [
2394
- /* @__PURE__ */ o.jsx(nt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1920", size: 10 }),
2387
+ /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2028", size: 10 }),
2395
2388
  r.pending
2396
2389
  ] }) })
2397
- ] }, k._id)) })
2390
+ ] }, R._id)) })
2398
2391
  ] }),
2399
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1930", className: `vg-formal-pin ${N ? "ready" : A ? "mixed" : ""} ${j ? "modal-variant" : ""}`, style: { position: "relative" }, children: [
2400
- N ? /* @__PURE__ */ o.jsx(ue, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1931", size: 18 }) : j ? /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1931", size: 16 }) : /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1931", size: 16 }),
2401
- g > 1 && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1934", className: "vg-pin-badge vg-animate-pop", children: g })
2392
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2038", className: `vg-formal-pin ${L ? "ready" : Y ? "mixed" : ""} ${k ? "modal-variant" : ""}`, style: { position: "relative" }, children: [
2393
+ L ? /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2039", size: 18 }) : k ? /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2039", size: 16 }) : /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2039", size: 16 }),
2394
+ y > 1 && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2042", className: "vg-pin-badge vg-animate-pop", children: y })
2402
2395
  ] })
2403
2396
  ]
2404
2397
  },
2405
- `group-${l.id}`
2398
+ `group-${d.id}`
2406
2399
  );
2407
2400
  }),
2408
2401
  /* @__PURE__ */ o.jsx(
2409
2402
  "div",
2410
2403
  {
2411
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1943",
2412
- className: `vg-url-tooltip ${U ? "visible" : ""} ${U?.direction === "bottom" ? "vg-bottom" : "vg-top"}`,
2404
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:2051",
2405
+ className: `vg-url-tooltip ${F ? "visible" : ""} ${F?.direction === "bottom" ? "vg-bottom" : "vg-top"}`,
2413
2406
  style: {
2414
- transform: U ? `translate(-50%, ${U.direction === "top" ? "-110%" : "10%"})` : "translate(-50%, 0)",
2415
- left: U?.x || 0,
2416
- top: U?.y || 0
2407
+ transform: F ? `translate(-50%, ${F.direction === "top" ? "-110%" : "10%"})` : "translate(-50%, 0)",
2408
+ left: F?.x || 0,
2409
+ top: F?.y || 0
2417
2410
  },
2418
- children: U?.url
2411
+ children: F?.url
2419
2412
  }
2420
2413
  )
2421
2414
  ] }) });
@@ -2426,11 +2419,11 @@ function _t(e, t, r) {
2426
2419
  return e.split(`
2427
2420
  `).map((i, u) => {
2428
2421
  const p = u + 1;
2429
- return i.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (m, f, E) => m.includes("data-source-path") || E === "Fragment" || E === "React.Fragment" ? m : `${f}<${E} data-source-path="${a}:${p}"`);
2422
+ return i.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (m, f, j) => m.includes("data-source-path") || j === "Fragment" || j === "React.Fragment" ? m : `${f}<${j} data-source-path="${a}:${p}"`);
2430
2423
  }).join(`
2431
2424
  `);
2432
2425
  }
2433
- function An() {
2426
+ function $n() {
2434
2427
  return {
2435
2428
  name: "vite-plugin-viewgate",
2436
2429
  enforce: "pre",
@@ -2442,15 +2435,15 @@ function An() {
2442
2435
  }
2443
2436
  };
2444
2437
  }
2445
- function Gn(e) {
2438
+ function Mn(e) {
2446
2439
  const t = this.resourcePath;
2447
2440
  return t ? (process.env.NODE_ENV, _t(e, t, process.cwd())) : e;
2448
2441
  }
2449
2442
  export {
2450
- _n as ViewGate,
2451
- jn as ViewGateOverlay,
2443
+ Gn as ViewGate,
2444
+ Vn as ViewGateOverlay,
2452
2445
  _t as transformSourcePaths,
2453
2446
  wr as useViewGate,
2454
- Gn as viewgateNextLoader,
2455
- An as viewgatePlugin
2447
+ Mn as viewgateNextLoader,
2448
+ $n as viewgatePlugin
2456
2449
  };