viewgate-wrapper 1.10.16 → 1.10.18

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