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