viewgate-wrapper 1.10.17 → 1.10.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";body{margin:0!important;padding:0!important}:root{--vg-primary: #6366f1;--vg-primary-glow: rgba(99, 102, 241, .5);--vg-primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);--vg-bg-glass: rgba(255, 255, 255, .7);--vg-radius: 16px;--vg-font-main: "Inter", system-ui, sans-serif;--vg-font-alt: "Inter", system-ui, sans-serif;--placeholder-color: #94a3b8;--vg-glass-border: rgba(255, 255, 255, .3);--vg-shadow-premium: 0 20px 50px rgba(0, 0, 0, .1)}.vg-container,.vg-container *{box-sizing:border-box}.vg-container{font-family:var(--vg-font-main);-webkit-font-smoothing:antialiased}.vg-glassmorphism{background:var(--vg-bg-glass);backdrop-filter:blur(16px) saturate(180%);-webkit-backdrop-filter:blur(16px) saturate(180%);border:1px solid var(--vg-glass-border);box-shadow:0 8px 32px #0000001a;border-radius:var(--vg-radius);position:relative}.vg-button-primary{background:var(--vg-primary-gradient);color:#fff;border:none;padding:12px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:700;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 12px #6366f14d}.vg-button-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #6366f166}.vg-button-primary:disabled,.vg-button-ghost:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.4);transform:none!important;box-shadow:none!important;pointer-events:none}.vg-button-ghost{background:#fffc;color:#1e293b;border:1px solid #e2e8f0;padding:10px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px}.vg-button-ghost:hover{background:#fff;border-color:#cbd5e1;box-shadow:0 4px 12px #0000000d}.vg-badge{background:#f1f5f9;color:#64748b;padding:4px 12px;font-size:11px;border-radius:99px;font-weight:600;display:inline-flex;align-items:center;gap:6px}.vg-textarea{width:100%;box-sizing:border-box;border:1px solid #e2e8f0;border-radius:12px;padding:12px;font-family:var(--vg-font-main);font-size:15px;color:#0f172a;resize:none;outline:none;background:#f8fafc;transition:all .2s ease}.vg-textarea:focus{background:#fff;border-color:var(--vg-primary);box-shadow:0 0 0 4px #6366f11a}@keyframes vg-pop-in{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08);opacity:1}to{transform:scale(1);opacity:1}}@keyframes vg-slide-up-fade{0%{transform:translateY(12px) scale(.95);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.vg-animate-pop{animation:vg-pop-in .5s cubic-bezier(.34,1.56,.64,1) forwards}.vg-animate-slide-up{animation:vg-slide-up-fade .4s cubic-bezier(.22,1,.36,1) forwards}.vg-button-primary,.vg-button-ghost,.vg-pin-container,.vg-action-bar,.vg-glassmorphism{transition:all .3s cubic-bezier(.4,0,.2,1)}.vg-animate-slide{animation:vg-slide-in .4s cubic-bezier(.22,1,.36,1) forwards}.vg-animate-fade{animation:vg-fade-in .3s ease-out forwards}.vg-toasts{position:fixed;top:24px;right:24px;display:flex;flex-direction:column;gap:12px}.vg-toast{padding:12px 20px;display:flex;align-items:center;gap:12px;min-width:300px;border-radius:12px;box-shadow:0 10px 30px #0000001a;background:#fff}.vg-toast.success{border-left:6px solid #22c55e}.vg-toast.error{border-left:6px solid #ef4444}.vg-backdrop-blur{position:fixed;top:0;left:0;width:100%;height:100%;-webkit-backdrop-filter:blur(8px) grayscale(.2);backdrop-filter:blur(8px) grayscale(.2);background:#0000001a;pointer-events:none;transition:opacity .3s ease,clip-path .2s cubic-bezier(.19,1,.22,1)}.vg-selection-pulse{position:fixed;pointer-events:none;border:2px solid var(--vg-primary);border-radius:8px;box-shadow:0 0 0 0 var(--vg-primary-glow);animation:vg-pulse 2s infinite;transition:all .2s cubic-bezier(.19,1,.22,1)}@keyframes vg-pulse{0%{box-shadow:0 0 0 0 var(--vg-primary-glow)}70%{box-shadow:0 0 0 15px #6366f100}to{box-shadow:0 0 #6366f100}}.vg-selection-label{position:absolute;top:-40px;left:0;background:var(--vg-primary-gradient);color:#fff;padding:8px 16px;border-radius:20px;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:0 4px 12px #6366f14d;display:flex;align-items:center;gap:8px}.vg-pin-container{transition:transform .2s ease}.vg-pin-container:hover{transform:scale(1.1)}.vg-formal-pin{width:32px;height:32px;border-radius:50%;background: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:320px;font-size:13px;box-shadow:0 10px 40px #00000026;opacity:0;visibility:hidden;pointer-events:none;transition:all .3s cubic-bezier(.19,1,.22,1);border:1px solid rgba(255,255,255,.5);z-index:1000;overflow:hidden}.vg-tooltip-scroll{scrollbar-width:thin;scrollbar-color:rgba(99,102,241,.2) transparent;overflow-y:auto;overflow-x:hidden;padding-right:12px;scroll-behavior:smooth}.vg-tooltip-scroll::-webkit-scrollbar{width:4px}.vg-tooltip-scroll::-webkit-scrollbar-track{background:transparent}.vg-tooltip-scroll::-webkit-scrollbar-thumb{background:#6366f14d;border-radius:10px}.vg-tooltip-scroll::-webkit-scrollbar-thumb:hover{background:#6366f180}.vg-text-wrap{word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;white-space:pre-wrap}.vg-line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;max-height:2.8em}.vg-pin-badge{position:absolute;top:-8px;right:-8px;background:#f43f5e;color:#fff;font-size:10px;font-weight:800;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid white;box-shadow:0 4px 12px #f43f5e66;z-index:2}.vg-pin-tooltip.vg-top{top:auto;bottom:calc(100% + 12px)}.vg-pin-container:hover .vg-pin-tooltip{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%) translateY(-5px)}.vg-action-bar{display:flex;gap:12px;padding:0;background:transparent;border:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.vg-custom-scrollbar::-webkit-scrollbar{width:6px}.vg-custom-scrollbar::-webkit-scrollbar-track{background:transparent}.vg-custom-scrollbar::-webkit-scrollbar-thumb{background:#6366f166;border-radius:10px;transition:all .2s ease}.vg-custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#6366f1b3}.vg-spinner{border:3px solid rgba(99,102,241,.1);border-top:3px solid var(--vg-primary);border-radius:50%;width:32px;height:32px;animation:vg-spin .8s linear infinite}@keyframes vg-spin{to{transform:rotate(360deg)}}.vg-animate-spin{animation:vg-spin .8s linear infinite}.vg-cursor-pointer,.vg-cursor-pointer *{cursor:pointer!important}.vg-url-tag{position:relative;cursor:help;transition:all .2s ease}.vg-url-tag:hover{background:#f1f5f9!important;border-color:var(--vg-primary)!important}.vg-url-tooltip{position:fixed;left:0;top:0;background:#0f172a;color:#fff;padding:8px 14px;border-radius:10px;font-size:11px;font-weight:500;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;box-shadow:0 10px 25px -5px #0006;z-index:2147483647;border:1px solid rgba(255,255,255,.1)}.vg-url-tooltip.visible{opacity:1}.vg-url-tooltip:after{content:"";position:absolute;left:50%;transform:translate(-50%);border-width:6px;border-style:solid}.vg-url-tooltip.vg-top:after{top:100%;border-color:#0f172a transparent transparent transparent}.vg-url-tooltip.vg-bottom:after{bottom:100%;border-color:transparent transparent #0f172a transparent}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import $t, { useRef as ce, useState as b, useEffect as X, forwardRef as yt, createElement as We, createContext as Mt, useContext as Nt, useMemo as It, useCallback as ke } from "react";
3
+ import { createPortal as Lt } from "react-dom";
4
+ var Re = { exports: {} }, xe = {};
5
+ var et;
6
+ function zt() {
7
+ if (et) return xe;
8
+ et = 1;
9
9
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
10
10
  function r(n, a, s) {
11
11
  var c = null;
@@ -22,50 +22,50 @@ function Nt() {
22
22
  props: s
23
23
  };
24
24
  }
25
- return he.Fragment = t, he.jsx = r, he.jsxs = r, he;
25
+ return xe.Fragment = t, xe.jsx = r, xe.jsxs = r, xe;
26
26
  }
27
- var ge = {};
28
- var Ze;
29
- function It() {
30
- return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && (function() {
27
+ var ye = {};
28
+ var tt;
29
+ function Dt() {
30
+ return tt || (tt = 1, process.env.NODE_ENV !== "production" && (function() {
31
31
  function e(l) {
32
32
  if (l == null) return null;
33
33
  if (typeof l == "function")
34
- return l.$$typeof === de ? null : l.displayName || l.name || null;
34
+ return l.$$typeof === le ? null : l.displayName || l.name || null;
35
35
  if (typeof l == "string") return l;
36
36
  switch (l) {
37
- case F:
37
+ case te:
38
38
  return "Fragment";
39
- case Y:
39
+ case be:
40
40
  return "Profiler";
41
- case q:
41
+ case ve:
42
42
  return "StrictMode";
43
- case Pe:
43
+ case Ae:
44
44
  return "Suspense";
45
- case z:
45
+ case I:
46
46
  return "SuspenseList";
47
- case Be:
47
+ case Xe:
48
48
  return "Activity";
49
49
  }
50
50
  if (typeof l == "object")
51
51
  switch (typeof l.tag == "number" && console.error(
52
52
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
53
53
  ), l.$$typeof) {
54
- case $:
54
+ case W:
55
55
  return "Portal";
56
- case X:
56
+ case q:
57
57
  return l.displayName || "Context";
58
- case N:
58
+ case M:
59
59
  return (l._context.displayName || "Context") + ".Consumer";
60
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;
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;
61
+ var g = l.render;
62
+ return l = l.displayName, l || (l = g.displayName || g.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
63
+ case z:
64
+ return g = l.displayName || null, g !== null ? g : e(l.type) || "Memo";
65
+ case Se:
66
+ g = l._payload, l = l._init;
67
67
  try {
68
- return e(l(x));
68
+ return e(l(g));
69
69
  } catch {
70
70
  }
71
71
  }
@@ -77,72 +77,72 @@ function It() {
77
77
  function r(l) {
78
78
  try {
79
79
  t(l);
80
- var x = !1;
80
+ var g = !1;
81
81
  } catch {
82
- x = !0;
82
+ g = !0;
83
83
  }
84
- if (x) {
85
- x = console;
86
- var b = x.error, E = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
87
- return b.call(
88
- x,
84
+ if (g) {
85
+ g = console;
86
+ var S = g.error, v = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
87
+ return S.call(
88
+ g,
89
89
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
90
- E
90
+ v
91
91
  ), t(l);
92
92
  }
93
93
  }
94
94
  function n(l) {
95
- if (l === F) return "<>";
96
- if (typeof l == "object" && l !== null && l.$$typeof === we)
95
+ if (l === te) return "<>";
96
+ if (typeof l == "object" && l !== null && l.$$typeof === Se)
97
97
  return "<...>";
98
98
  try {
99
- var x = e(l);
100
- return x ? "<" + x + ">" : "<...>";
99
+ var g = e(l);
100
+ return g ? "<" + g + ">" : "<...>";
101
101
  } catch {
102
102
  return "<...>";
103
103
  }
104
104
  }
105
105
  function a() {
106
- var l = ne.A;
106
+ var l = re.A;
107
107
  return l === null ? null : l.getOwner();
108
108
  }
109
109
  function s() {
110
110
  return Error("react-stack-top-frame");
111
111
  }
112
112
  function c(l) {
113
- if (ve.call(l, "key")) {
114
- var x = Object.getOwnPropertyDescriptor(l, "key").get;
115
- if (x && x.isReactWarning) return !1;
113
+ if (Ce.call(l, "key")) {
114
+ var g = Object.getOwnPropertyDescriptor(l, "key").get;
115
+ if (g && g.isReactWarning) return !1;
116
116
  }
117
117
  return l.key !== void 0;
118
118
  }
119
- function i(l, x) {
120
- function b() {
121
- ae || (ae = !0, console.error(
119
+ function i(l, g) {
120
+ function S() {
121
+ ne || (ne = !0, console.error(
122
122
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
123
- x
123
+ g
124
124
  ));
125
125
  }
126
- b.isReactWarning = !0, Object.defineProperty(l, "key", {
127
- get: b,
126
+ S.isReactWarning = !0, Object.defineProperty(l, "key", {
127
+ get: S,
128
128
  configurable: !0
129
129
  });
130
130
  }
131
131
  function u() {
132
132
  var l = e(this.type);
133
- return K[l] || (K[l] = !0, console.error(
133
+ return Z[l] || (Z[l] = !0, console.error(
134
134
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
135
135
  )), l = this.props.ref, l !== void 0 ? l : null;
136
136
  }
137
- function p(l, x, b, E, A, U) {
138
- var k = b.ref;
137
+ function p(l, g, S, v, ae, U) {
138
+ var E = S.ref;
139
139
  return l = {
140
- $$typeof: V,
140
+ $$typeof: N,
141
141
  type: l,
142
- key: x,
143
- props: b,
144
- _owner: E
145
- }, (k !== void 0 ? k : null) !== null ? Object.defineProperty(l, "ref", {
142
+ key: g,
143
+ props: S,
144
+ _owner: v
145
+ }, (E !== void 0 ? E : null) !== null ? Object.defineProperty(l, "ref", {
146
146
  enumerable: !1,
147
147
  get: u
148
148
  }) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
@@ -159,7 +159,7 @@ function It() {
159
159
  configurable: !1,
160
160
  enumerable: !1,
161
161
  writable: !0,
162
- value: A
162
+ value: ae
163
163
  }), Object.defineProperty(l, "_debugTask", {
164
164
  configurable: !1,
165
165
  enumerable: !1,
@@ -167,103 +167,103 @@ function It() {
167
167
  value: U
168
168
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
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(l, g, S, v, ae, U) {
171
+ var E = g.children;
172
+ if (E !== void 0)
173
+ if (v)
174
+ if (Ee(E)) {
175
+ for (v = 0; v < E.length; v++)
176
+ f(E[v]);
177
+ Object.freeze && Object.freeze(E);
178
178
  } else
179
179
  console.error(
180
180
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
181
181
  );
182
- else f(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(E);
183
+ if (Ce.call(g, "key")) {
184
+ E = e(l);
185
+ var V = Object.keys(g).filter(function(Ge) {
186
+ return Ge !== "key";
187
187
  });
188
- E = 0 < I.length ? "{key: someKey, " + I.join(": ..., ") + ": ...}" : "{key: someKey}", Ce[k + E] || (I = 0 < I.length ? "{" + I.join(": ..., ") + ": ...}" : "{}", console.error(
188
+ v = 0 < V.length ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}", ue[E + v] || (V = 0 < V.length ? "{" + V.join(": ..., ") + ": ...}" : "{}", console.error(
189
189
  `A props object containing a "key" prop is being spread into JSX:
190
190
  let props = %s;
191
191
  <%s {...props} />
192
192
  React keys must be passed directly to JSX without using spread:
193
193
  let props = %s;
194
194
  <%s key={someKey} {...props} />`,
195
+ v,
195
196
  E,
196
- k,
197
- I,
198
- k
199
- ), Ce[k + E] = !0);
197
+ V,
198
+ E
199
+ ), ue[E + v] = !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) {
202
- b = {};
203
- for (var se in x)
204
- se !== "key" && (b[se] = x[se]);
205
- } else b = x;
206
- return k && i(
207
- b,
201
+ if (E = null, S !== void 0 && (r(S), E = "" + S), c(g) && (r(g.key), E = "" + g.key), "key" in g) {
202
+ S = {};
203
+ for (var H in g)
204
+ H !== "key" && (S[H] = g[H]);
205
+ } else S = g;
206
+ return E && i(
207
+ S,
208
208
  typeof l == "function" ? l.displayName || l.name || "Unknown" : l
209
209
  ), p(
210
210
  l,
211
- k,
212
- b,
211
+ E,
212
+ S,
213
213
  a(),
214
- A,
214
+ ae,
215
215
  U
216
216
  );
217
217
  }
218
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));
219
+ j(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === Se && (l._payload.status === "fulfilled" ? j(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
220
220
  }
221
- function C(l) {
222
- return typeof l == "object" && l !== null && l.$$typeof === V;
221
+ function j(l) {
222
+ return typeof l == "object" && l !== null && l.$$typeof === N;
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 _ = $t, N = /* @__PURE__ */ Symbol.for("react.transitional.element"), W = /* @__PURE__ */ Symbol.for("react.portal"), te = /* @__PURE__ */ Symbol.for("react.fragment"), ve = /* @__PURE__ */ Symbol.for("react.strict_mode"), be = /* @__PURE__ */ Symbol.for("react.profiler"), M = /* @__PURE__ */ Symbol.for("react.consumer"), q = /* @__PURE__ */ Symbol.for("react.context"), P = /* @__PURE__ */ Symbol.for("react.forward_ref"), Ae = /* @__PURE__ */ Symbol.for("react.suspense"), I = /* @__PURE__ */ Symbol.for("react.suspense_list"), z = /* @__PURE__ */ Symbol.for("react.memo"), Se = /* @__PURE__ */ Symbol.for("react.lazy"), Xe = /* @__PURE__ */ Symbol.for("react.activity"), le = /* @__PURE__ */ Symbol.for("react.client.reference"), re = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ce = Object.prototype.hasOwnProperty, Ee = Array.isArray, D = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
- j = {
227
+ _ = {
228
228
  react_stack_bottom_frame: function(l) {
229
229
  return l();
230
230
  }
231
231
  };
232
- var ae, K = {}, ue = j.react_stack_bottom_frame.bind(
233
- j,
232
+ var ne, Z = {}, de = _.react_stack_bottom_frame.bind(
233
+ _,
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
+ )(), F = D(n(s)), ue = {};
236
+ ye.Fragment = te, ye.jsx = function(l, g, S) {
237
+ var v = 1e4 > re.recentlyCreatedOwnerStacks++;
238
238
  return m(
239
239
  l,
240
- x,
241
- b,
240
+ g,
241
+ S,
242
242
  !1,
243
- E ? Error("react-stack-top-frame") : ue,
244
- E ? W(n(l)) : pe
243
+ v ? Error("react-stack-top-frame") : de,
244
+ v ? D(n(l)) : F
245
245
  );
246
- }, ge.jsxs = function(l, x, b) {
247
- var E = 1e4 > ne.recentlyCreatedOwnerStacks++;
246
+ }, ye.jsxs = function(l, g, S) {
247
+ var v = 1e4 > re.recentlyCreatedOwnerStacks++;
248
248
  return m(
249
249
  l,
250
- x,
251
- b,
250
+ g,
251
+ S,
252
252
  !0,
253
- E ? Error("react-stack-top-frame") : ue,
254
- E ? W(n(l)) : pe
253
+ v ? Error("react-stack-top-frame") : de,
254
+ v ? D(n(l)) : F
255
255
  );
256
256
  };
257
- })()), ge;
257
+ })()), ye;
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 rt;
260
+ function Ft() {
261
+ return rt || (rt = 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 = ce(null), [r, n] = b(null);
266
+ return X(() => {
267
267
  if (t.current && !t.current.shadowRoot) {
268
268
  const a = t.current.attachShadow({ mode: "open" });
269
269
  document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach((i) => {
@@ -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 wt = (...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 nt = (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 = yt(
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) => We(
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: wt("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]) => We(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 T = (e, t) => {
334
+ const r = yt(
335
+ ({ className: n, ...a }, s) => We(Yt, {
336
336
  ref: s,
337
337
  iconNode: t,
338
- className: xt(
339
- `lucide-${Dt(Qe(e))}`,
338
+ className: wt(
339
+ `lucide-${Wt(nt(e))}`,
340
340
  `lucide-${e}`,
341
341
  n
342
342
  ),
343
343
  ...a
344
344
  })
345
345
  );
346
- return r.displayName = Qe(e), r;
346
+ return r.displayName = nt(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 = T("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
+ ], ie = T("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
+ ], at = T("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
+ ], st = T("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 = T("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 = T("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
+ ], ot = T("grip-vertical", ar);
389
+ const sr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], or = T("loader-circle", sr);
390
+ 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 = T("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 = T("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 = T("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 = T("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 = T("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
+ ], it = T("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
+ ], Le = T("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
+ }, vt = Mt(void 0), wr = () => {
536
+ const e = Nt(vt);
537
537
  if (!e) throw new Error("useViewGate must be used within a ViewGateProvider");
538
538
  return e;
539
- }, 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
+ }, Ue = "viewgate_enabled", vr = () => typeof window > "u" ? !1 : new URLSearchParams(window.location.search).has("viewgate") ? (sessionStorage.setItem(Ue, "true"), !0) : sessionStorage.getItem(Ue) === "true", Gn = ({
540
540
  children: e,
541
541
  language: t = "es",
542
542
  apiKey: r,
543
543
  baseUrl: n = "https://view-gate.vercel.app"
544
544
  }) => {
545
- const [a, s] = S(!1), [c, i] = S([]);
546
- J(() => {
547
- s(gr());
545
+ const [a, s] = b(!1), [c, i] = b([]);
546
+ X(() => {
547
+ s(vr());
548
548
  }, []);
549
549
  const u = () => {
550
- if (sessionStorage.removeItem(Fe), s(!1), typeof window < "u") {
550
+ if (sessionStorage.removeItem(Ue), s(!1), typeof window < "u") {
551
551
  const f = new URL(window.location.href);
552
552
  f.searchParams.delete("viewgate"), window.history.replaceState({}, "", f.toString());
553
553
  }
554
- }, p = (f, 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, j) => {
555
+ const _ = Date.now();
556
+ i((N) => [...N, { id: _, message: f, type: j }]), setTimeout(() => {
557
+ i((N) => N.filter((W) => W.id !== _));
558
558
  }, 4e3);
559
- }, 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(vt.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(Vn, { "data-source-path": "/src/components/ViewGateProvider.tsx:265" }),
572
572
  /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:266", className: "vg-toasts", style: { zIndex: 2147483646 }, children: c.map((f) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:268", className: `vg-toast vg-animate-slide ${f.type}`, children: [
573
- f.type === "success" ? /* @__PURE__ */ o.jsx(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(ie, { "data-source-path": "/src/components/ViewGateProvider.tsx:270", size: 24, color: "#22c55e" }) : /* @__PURE__ */ o.jsx(Jt, { "data-source-path": "/src/components/ViewGateProvider.tsx:272", size: 24, color: "#ef4444" }),
574
574
  /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:274", children: [
575
575
  /* @__PURE__ */ o.jsx("strong", { "data-source-path": "/src/components/ViewGateProvider.tsx:275", style: { display: "block", fontSize: "13px", color: "#0f172a", textTransform: "uppercase", marginBottom: "2px" }, children: f.type === "success" ? m.successHeader : m.errorHeader }),
576
576
  /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateProvider.tsx:278", style: { fontSize: "14px", color: "#000000" }, children: f.message })
@@ -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 Sr = /* @__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 J(e) {
601
601
  const t = [];
602
602
  for (let r = 0, n = e.length; r < n; r++)
603
603
  t.push(e[r]);
604
604
  return t;
605
605
  }
606
- let ie = null;
607
- function wt(e = {}) {
608
- return ie || (e.includeStyleProperties ? (ie = e.includeStyleProperties, ie) : (ie = Z(window.getComputedStyle(document.documentElement)), ie));
606
+ let se = null;
607
+ function bt(e = {}) {
608
+ return se || (e.includeStyleProperties ? (se = e.includeStyleProperties, se) : (se = J(window.getComputedStyle(document.documentElement)), se));
609
609
  }
610
- 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 Cr(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 || Cr(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 $ = 16384;
636
+ function Rr(e) {
637
+ (e.width > $ || e.height > $) && (e.width > $ && e.height > $ ? e.width > e.height ? (e.height *= $ / e.width, e.width = $) : (e.width *= $ / e.height, e.height = $) : e.width > $ ? (e.height *= $ / e.width, e.width = $) : (e.width *= $ / e.height, e.height = $));
638
638
  }
639
- 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 bt(t).map((r) => {
668
668
  const n = e.getPropertyValue(r), a = e.getPropertyPriority(r);
669
669
  return `${r}: ${n}${a ? " !important" : ""};`;
670
670
  }).join(" ");
671
671
  }
672
- function jr(e, t, r, n) {
673
- const a = `.${e}:${t}`, s = r.cssText ? kr(r) : Rr(r, n);
672
+ function _r(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 ct(e, t, r, n) {
677
677
  const a = window.getComputedStyle(e, r), s = a.getPropertyValue("content");
678
678
  if (s === "" || s === "none")
679
679
  return;
680
- const c = yr();
680
+ const c = Sr();
681
681
  try {
682
682
  t.className = `${t.className} ${c}`;
683
683
  } catch {
684
684
  return;
685
685
  }
686
686
  const i = document.createElement("style");
687
- i.appendChild(jr(c, r, a, n)), t.appendChild(i);
687
+ i.appendChild(_r(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 Pr(e, t, r) {
690
+ ct(e, t, ":before", r), ct(e, t, ":after", r);
691
691
  }
692
- const ot = "application/font-woff", it = "image/jpeg", Vr = {
693
- woff: ot,
694
- woff2: ot,
692
+ const lt = "application/font-woff", dt = "image/jpeg", Ar = {
693
+ woff: lt,
694
+ woff2: lt,
695
695
  ttf: "application/font-truetype",
696
696
  eot: "application/vnd.ms-fontobject",
697
697
  png: "image/png",
698
- jpg: it,
699
- jpeg: it,
698
+ jpg: dt,
699
+ jpeg: dt,
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 qe(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 Be(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 Ct(e, t, r) {
723
723
  const n = await fetch(e, t);
724
724
  if (n.status === 404)
725
725
  throw new Error(`Resource "${n.url}" not found`);
@@ -735,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 ze = {};
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 Ye(e, t, r) {
744
+ const n = Nr(e, t, r.includeQueryParams);
745
+ if (ze[n] != null)
746
+ return ze[n];
747
747
  r.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
748
748
  let a;
749
749
  try {
750
- const s = await 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 Ct(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 ze[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 = qe(r), a = await Ye(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 _e(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(Et(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", Et = (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 (Et(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 = J(e.assignedNodes()) : G(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = J(e.contentDocument.body.childNodes) : s = J(((a = e.shadowRoot) !== null && a !== void 0 ? a : e).childNodes), s.length === 0 || G(e, HTMLVideoElement) || await s.reduce((c, i) => c.then(() => _e(i, r)).then((u) => {
792
792
  u && t.appendChild(u);
793
793
  }), Promise.resolve()), t;
794
794
  }
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) : bt(r).forEach((s) => {
801
801
  let c = a.getPropertyValue(s);
802
802
  s === "font-size" && c.endsWith("px") && (c = `${Math.floor(parseFloat(c.substring(0, c.length - 2))) - 0.1}px`), G(e, HTMLIFrameElement) && s === "display" && c === "inline" && (c = "block"), s === "d" && t.getAttribute("d") && (c = `path(${t.getAttribute("d")})`), n.setProperty(s, c, a.getPropertyPriority(s));
803
803
  });
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), Pr(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 _e(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 _e(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 kt = /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(kt, (r, n, a) => (t.push(a), r)), t.filter((r) => !Be(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 = qe(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 Ye(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 Rt(e) {
874
+ return e.search(kt) !== -1;
875
875
  }
876
- async function kt(e, t, r) {
877
- if (!Et(e))
876
+ async function jt(e, t, r) {
877
+ if (!Rt(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 oe(e, t, r) {
883
883
  var n;
884
884
  const a = (n = t.style) === null || n === void 0 ? void 0 : n.getPropertyValue(e);
885
885
  if (a) {
886
- const s = await kt(a, null, r);
886
+ const s = await jt(a, null, r);
887
887
  return t.style.setProperty(e, s, t.style.getPropertyPriority(e)), !0;
888
888
  }
889
889
  return !1;
890
890
  }
891
- 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 oe("background", e, t) || await oe("background-image", e, t), await oe("mask", e, t) || await oe("-webkit-mask", e, t) || await oe("mask-image", e, t) || await oe("-webkit-mask-image", e, t);
893
893
  }
894
- 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 && !Be(e.src)) && !(G(e, SVGImageElement) && !Be(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 Ye(n, qe(n), t);
899
899
  await new Promise((s, c) => {
900
900
  e.onload = s, e.onerror = t.onImageErrorHandler ? (...u) => {
901
901
  try {
@@ -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 = J(e.childNodes).map((a) => Ot(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 Ot(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 ut = {};
927
+ async function pt(e) {
928
+ let t = ut[e];
929
929
  if (t != null)
930
930
  return t;
931
931
  const n = await (await fetch(e)).text();
932
- return t = { url: e, cssText: n }, ct[e] = t, t;
932
+ return t = { url: e, cssText: n }, ut[e] = t, t;
933
933
  }
934
- async function dt(e, t) {
934
+ async function mt(e, t) {
935
935
  let r = e.cssText;
936
936
  const n = /url\(["']?([^"')]+)["']?\)/g, s = (r.match(/url\([^)]+\)/g) || []).map(async (c) => {
937
937
  let i = c.replace(n, "$1");
938
- return i.startsWith("https://") || (i = new URL(i, e.url).href), 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), Ct(i, t.fetchRequestInit, ({ result: u }) => (r = r.replace(c, `url(${u})`), [c, u]));
939
939
  });
940
940
  return Promise.all(s).then(() => r);
941
941
  }
942
- function ut(e) {
942
+ function ft(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
+ J(a.cssRules || []).forEach((s, c) => {
974
974
  if (s.type === CSSRule.IMPORT_RULE) {
975
975
  let i = c + 1;
976
- const u = s.href, p = lt(u).then((m) => dt(m, t)).then((m) => ut(m).forEach((f) => {
976
+ const u = s.href, p = pt(u).then((m) => mt(m, t)).then((m) => ft(m).forEach((f) => {
977
977
  try {
978
978
  a.insertRule(f, f.startsWith("@import") ? i += 1 : a.cssRules.length);
979
- } catch (C) {
979
+ } catch (j) {
980
980
  console.error("Error inserting rule from remote css", {
981
981
  rule: f,
982
- error: C
982
+ error: j
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(pt(a.href).then((i) => mt(i, t)).then((i) => ft(i).forEach((u) => {
994
994
  c.insertRule(u, c.cssRules.length);
995
995
  })).catch((i) => {
996
996
  console.error("Error loading remote stylesheet", i);
@@ -999,7 +999,7 @@ async function 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
+ J(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) => Rt(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 = J(e.ownerDocument.styleSheets), n = await sn(r, t);
1017
+ return on(n);
1018
1018
  }
1019
- function jt(e) {
1019
+ function Vt(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(Vt(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(Vt(s.style.fontFamily))).map((s) => {
1036
1036
  const c = s.parentStyleSheet ? s.parentStyleSheet.href : null;
1037
- return kt(s.cssText, c, t);
1037
+ return jt(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 _e(e, t, !0);
1050
+ return await un(a, t), await Ot(a, t), an(a, t), await Or(a, r, n);
1051
1051
  }
1052
- 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 fn(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 Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 15, ee = "data-vg-pin-id", yn = () => {
1060
1060
  const e = window.innerWidth;
1061
1061
  return e < 768 ? "mobile" : e < 1024 ? "tablet" : "desktop";
1062
- }, 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 = ce(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
+ }, we = (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
+ }, wn = (e) => {
1138
+ const { vgPath: t } = we(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
+ }, vn = /* @__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,20 +1169,30 @@ 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
+ })(), bn = (e, t, r, n) => new Promise((a) => {
1141
1173
  const s = new Image();
1142
1174
  s.onload = () => {
1143
- const c = document.createElement("canvas"), i = window.devicePixelRatio || 1, u = t.width + r * 2, p = t.height + r * 2;
1175
+ const c = document.createElement("canvas"), i = 2, u = t.width + r * 2, p = t.height + r * 2;
1144
1176
  c.width = u * i, c.height = p * i;
1145
1177
  const m = c.getContext("2d");
1146
1178
  if (m) {
1147
- 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);
1179
+ m.imageSmoothingEnabled = !0, m.imageSmoothingQuality = "high";
1180
+ const f = (t.left - r) * n, j = (t.top - r) * n, _ = u * n, N = p * n;
1181
+ m.drawImage(
1182
+ s,
1183
+ f,
1184
+ j,
1185
+ _,
1186
+ N,
1187
+ 0,
1188
+ 0,
1189
+ c.width,
1190
+ c.height
1191
+ );
1150
1192
  }
1151
- a(c.toDataURL("image/png"));
1193
+ a(c.toDataURL("image/png", 0.9));
1152
1194
  }, s.onerror = () => a(""), s.src = e;
1153
- }), gn = (e) => {
1195
+ }), Sn = (e) => {
1154
1196
  const t = window.getComputedStyle(e), r = {};
1155
1197
  return [
1156
1198
  "display",
@@ -1165,9 +1207,9 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1165
1207
  "z-index"
1166
1208
  ].forEach((a) => {
1167
1209
  const s = t.getPropertyValue(a);
1168
- r[a] = hn(s);
1210
+ r[a] = vn(s);
1169
1211
  }), r;
1170
- }, xn = (e) => {
1212
+ }, Cn = (e) => {
1171
1213
  const r = Object.keys(e).find((s) => s.startsWith("__reactFiber$") || s.startsWith("__reactInternalInstance$"));
1172
1214
  if (!r) return "";
1173
1215
  const n = [];
@@ -1181,13 +1223,13 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1181
1223
  a = a.return;
1182
1224
  }
1183
1225
  return n.join(" > ") || "Generic Component";
1184
- }, yn = (e) => {
1226
+ }, En = (e) => {
1185
1227
  if (!e) return !1;
1186
1228
  const t = window.getComputedStyle(e), r = e.getBoundingClientRect(), n = e.getAttribute("role");
1187
1229
  if (n && ["listbox", "menu", "combobox", "tooltip", "option"].includes(n)) return !1;
1188
1230
  const s = 120;
1189
1231
  return r.width < s && r.height < s || t.position !== "fixed" && t.position !== "absolute" ? !1 : !!(e.closest('[role="dialog"]') || e.closest('[aria-modal="true"]') || e.classList.contains("modal") || e.classList.contains("modal-content"));
1190
- }, te = (e) => {
1232
+ }, Q = (e) => {
1191
1233
  if (!e.isConnected) return !1;
1192
1234
  const t = window.getComputedStyle(e);
1193
1235
  if (t.display === "none" || t.visibility === "hidden" || t.opacity === "0" || e.offsetWidth === 0 || e.offsetHeight === 0) return !1;
@@ -1199,19 +1241,19 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1199
1241
  }
1200
1242
  const n = e.getBoundingClientRect();
1201
1243
  return !(n.width === 0 || n.height === 0 || n.top === 0 && n.left === 0 && n.width > window.innerWidth * 0.9);
1202
- }, Ot = (e, t = document) => {
1244
+ }, Tt = (e, t = document) => {
1203
1245
  const r = t.querySelector(e);
1204
1246
  if (r) return r;
1205
1247
  const n = t.querySelectorAll("*");
1206
1248
  for (const a of Array.from(n)) {
1207
1249
  const s = a.shadowRoot;
1208
1250
  if (s) {
1209
- const c = Ot(e, s);
1251
+ const c = Tt(e, s);
1210
1252
  if (c) return c;
1211
1253
  }
1212
1254
  }
1213
1255
  return null;
1214
- }, ht = (e, t) => {
1256
+ }, xt = (e, t) => {
1215
1257
  let r = document.elementFromPoint(e, t);
1216
1258
  for (; r && r.shadowRoot; ) {
1217
1259
  const n = r.shadowRoot.elementFromPoint(e, t);
@@ -1219,86 +1261,86 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1219
1261
  r = n;
1220
1262
  }
1221
1263
  return r;
1222
- }, wn = (e) => {
1264
+ }, kn = (e) => {
1223
1265
  if (!e.tag) return null;
1224
1266
  const t = Array.from(document.getElementsByTagName(e.tag));
1225
1267
  let r = null, n = 0;
1226
1268
  for (const a of t) {
1227
- if (!je(a, e)) continue;
1269
+ if (!Oe(a, e)) continue;
1228
1270
  let s = 0;
1229
1271
  const c = a.getAttribute("placeholder"), i = e.attributes?.placeholder || e.fingerprint?.placeholder;
1230
1272
  i && c === i && (s += 6);
1231
1273
  const u = a.getAttribute("type"), p = e.attributes?.type || e.fingerprint?.type;
1232
1274
  if (p && u === p && (s += 2), a.innerText?.trim() === e.text.trim() && (s += 5), e.fingerprint?.vgPath) {
1233
- const { vgPath: m } = ye(a);
1275
+ const { vgPath: m } = we(a);
1234
1276
  (m === e.vgPath || e.fingerprint?.vgPath === m) && (s += 10);
1235
1277
  }
1236
1278
  s > n && s >= 7 && (n = s, r = a);
1237
1279
  }
1238
1280
  return r;
1239
- }, je = (e, t) => {
1281
+ }, Oe = (e, t) => {
1240
1282
  if (e.tagName.toLowerCase() !== t.tag.toLowerCase()) return !1;
1241
1283
  const r = e.getAttribute("placeholder"), n = t.attributes?.placeholder || t.fingerprint?.placeholder;
1242
1284
  if (n && r && n !== r) return !1;
1243
1285
  const a = e.getAttribute("type"), s = t.attributes?.type || t.fingerprint?.type;
1244
1286
  return !(s && a && s !== a);
1245
- }, vn = (e, t) => {
1287
+ }, Rn = (e, t) => {
1246
1288
  if (t) {
1247
- const c = Array.from(document.querySelectorAll(`[${re}="${t}"]`));
1289
+ const c = Array.from(document.querySelectorAll(`[${ee}="${t}"]`));
1248
1290
  if (c.length > 0) {
1249
- const i = c.filter((u) => je(u, e));
1291
+ const i = c.filter((u) => Oe(u, e));
1250
1292
  if (i.length === 0)
1251
- c.forEach((u) => u.removeAttribute(re));
1293
+ c.forEach((u) => u.removeAttribute(ee));
1252
1294
  else {
1253
1295
  const u = i.find((m) => {
1254
- const { vgPath: f } = ye(m);
1296
+ const { vgPath: f } = we(m);
1255
1297
  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')));
1298
+ }), p = u && Q(u) ? u : i.find((m) => !(!Q(m) || e.metadata?.isModal && !m.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));
1257
1299
  return p ? (c.forEach((m) => {
1258
- m !== p && m.removeAttribute(re);
1300
+ m !== p && m.removeAttribute(ee);
1259
1301
  }), p) : null;
1260
1302
  }
1261
1303
  }
1262
1304
  }
1263
- const n = (e.selector ? Array.from(document.querySelectorAll(e.selector)) : []).filter((c) => je(c, e));
1305
+ const n = (e.selector ? Array.from(document.querySelectorAll(e.selector)) : []).filter((c) => Oe(c, e));
1264
1306
  let a = n.find((c) => {
1265
- const { vgPath: i } = ye(c);
1307
+ const { vgPath: i } = we(c);
1266
1308
  return i === e.vgPath || e.fingerprint?.vgPath === i;
1267
1309
  }) || n[0] || null;
1268
- if (a && te(a))
1310
+ if (a && Q(a))
1269
1311
  if (e.metadata?.isModal && !a.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content'))
1270
1312
  a = null;
1271
1313
  else
1272
1314
  return a;
1273
1315
  if (e.fallbackSelectors)
1274
1316
  for (const c of e.fallbackSelectors) {
1275
- const i = Ot(c);
1276
- if (i && je(i, e) && te(i)) {
1317
+ const i = Tt(c);
1318
+ if (i && Oe(i, e) && Q(i)) {
1277
1319
  if (e.metadata?.isModal && !i.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')) continue;
1278
1320
  return i;
1279
1321
  }
1280
1322
  }
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) => ({
1323
+ const s = kn(e);
1324
+ return s && Q(s) ? e.metadata?.isModal && !s.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content') ? null : s : null;
1325
+ }, He = (e) => ({
1284
1326
  tag: e.tagName.toLowerCase(),
1285
1327
  text: (e.innerText || e.getAttribute("placeholder") || "").slice(0, 50).trim(),
1286
1328
  role: e.getAttribute("role") || void 0,
1287
1329
  type: e.getAttribute("type") || void 0
1288
- }), bn = (e) => {
1330
+ }), jn = (e) => {
1289
1331
  const t = e.parentElement;
1290
1332
  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);
1333
+ const r = Array.from(t.children).filter((c) => c !== e).slice(0, 5).map((c) => He(c)), n = Array.from(t.children), a = n.indexOf(e);
1292
1334
  let s = "middle";
1293
1335
  return a === 0 && (s = "start"), a === n.length - 1 && (s = "end"), {
1294
1336
  target: {
1295
- ...ze(e),
1337
+ ...He(e),
1296
1338
  location: `${s} of ${t.tagName.toLowerCase()}`
1297
1339
  },
1298
- parent: ze(t),
1340
+ parent: He(t),
1299
1341
  siblings: r
1300
1342
  };
1301
- }, Cn = (e) => {
1343
+ }, On = (e) => {
1302
1344
  let t = "unknown:0", r = e;
1303
1345
  for (; r; ) {
1304
1346
  const m = r.getAttribute("data-source-path");
@@ -1308,7 +1350,7 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1308
1350
  }
1309
1351
  r = r.parentElement;
1310
1352
  }
1311
- const n = xn(e), { selector: a, fallbacks: s, vgPath: c } = ye(e), i = {};
1353
+ const n = Cn(e), { selector: a, fallbacks: s, vgPath: c } = we(e), i = {};
1312
1354
  ["placeholder", "aria-label", "name", "type", "alt", "title", "value", "role"].forEach((m) => {
1313
1355
  const f = e.getAttribute(m);
1314
1356
  f && (i[m] = f);
@@ -1330,245 +1372,226 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1330
1372
  fallbackSelectors: [...new Set(s)].slice(0, 5),
1331
1373
  domPath: [],
1332
1374
  viewportSize: { width: window.innerWidth, height: window.innerHeight },
1333
- uiContext: bn(e),
1334
- fingerprint: fn(e),
1375
+ uiContext: jn(e),
1376
+ fingerprint: wn(e),
1335
1377
  metadata: {
1336
1378
  hint: `Edit ${t.split(":")[0]} at line ${t.split(":")[1] || "?"}`,
1337
- computedStyles: gn(e),
1338
- viewportBreakpoint: mn(),
1379
+ computedStyles: Sn(e),
1380
+ viewportBreakpoint: yn(),
1339
1381
  outerHtml: e.outerHTML.slice(0, 1500),
1340
1382
  scrollPosition: { x: window.scrollX, y: window.scrollY },
1341
1383
  isModal: u
1342
1384
  }
1343
1385
  };
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(() => {
1386
+ }, Vn = () => {
1387
+ const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: c } = wr(), [i, u] = b(!1), [p, m] = b(null), [f, j] = b(null), [_, N] = b(""), [W, te] = b(!1), [ve, be] = b(!1), [M, q] = b(!1), [P, Ae] = b([]), [I, z] = b(null), [Se, Xe] = b(!1), [le, re] = b(!1), [Ce, Ee] = b({}), [D, ne] = b(null), [Z, de] = b(!1), [F, ue] = b(null), [l, g] = b([]), S = It(() => {
1388
+ if (!D) return P;
1389
+ const d = l.find((h) => h.annotations.some((x) => x._id === D));
1390
+ return d ? d.annotations : P.filter((h) => h._id === D);
1391
+ }, [D, P, l]), [v, ae] = b(() => {
1346
1392
  if (typeof window > "u") return { top: 24, right: 24 };
1347
1393
  const d = localStorage.getItem("vg-exit-pos");
1348
1394
  return d ? JSON.parse(d) : { top: 24, right: 24 };
1349
- }), [b, E] = S(!1), A = xe(null), [U, k] = S(() => {
1395
+ }), [U, E] = b(!1), V = ce(null), [H, Ge] = b(() => {
1350
1396
  if (typeof window > "u") return { bottom: 30, right: 30 };
1351
1397
  const d = localStorage.getItem("vg-bar-pos");
1352
1398
  return d ? JSON.parse(d) : { bottom: 30, right: 30 };
1353
- }), [I, se] = S(!1), D = xe(null), Tt = (d) => {
1399
+ }), [pe, Je] = b(!1), B = ce(null), Pt = (d) => {
1354
1400
  d.preventDefault(), d.stopPropagation();
1355
1401
  const h = d.currentTarget.parentElement?.getBoundingClientRect();
1356
- h && (E(!0), A.current = {
1402
+ h && (E(!0), V.current = {
1357
1403
  x: d.clientX,
1358
1404
  y: d.clientY,
1359
- top: l.top,
1360
- right: l.right,
1405
+ top: v.top,
1406
+ right: v.right,
1361
1407
  width: h.width,
1362
1408
  height: h.height
1363
1409
  });
1364
- }, _t = (d) => {
1410
+ }, At = (d) => {
1365
1411
  d.preventDefault(), d.stopPropagation();
1366
1412
  const h = d.currentTarget.parentElement?.getBoundingClientRect();
1367
- h && (se(!0), D.current = {
1413
+ h && (Je(!0), B.current = {
1368
1414
  x: d.clientX,
1369
1415
  y: d.clientY,
1370
- bottom: U.bottom,
1371
- right: U.right,
1416
+ bottom: H.bottom,
1417
+ right: H.right,
1372
1418
  width: h.width,
1373
1419
  height: h.height
1374
1420
  });
1375
1421
  };
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 });
1422
+ X(() => {
1423
+ if (!U && !pe) return;
1424
+ const d = (x) => {
1425
+ if (U && V.current) {
1426
+ const O = x.clientX - V.current.x, k = x.clientY - V.current.y;
1427
+ let w = V.current.top + k, y = V.current.right - O;
1428
+ const C = 10;
1429
+ w = Math.max(C, Math.min(window.innerHeight - V.current.height - C, w)), y = Math.max(C, Math.min(window.innerWidth - V.current.width - C, y)), ae({ top: w, right: y });
1384
1430
  }
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 });
1431
+ if (pe && B.current) {
1432
+ const O = x.clientX - B.current.x, k = x.clientY - B.current.y;
1433
+ let w = B.current.bottom - k, y = B.current.right - O;
1434
+ const C = 10;
1435
+ w = Math.max(C, Math.min(window.innerHeight - B.current.height - C, w)), y = Math.max(C, Math.min(window.innerWidth - B.current.width - C, y)), Ge({ bottom: w, right: y });
1390
1436
  }
1391
1437
  }, 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);
1438
+ U && (E(!1), localStorage.setItem("vg-exit-pos", JSON.stringify(v)), V.current = null), pe && (Je(!1), localStorage.setItem("vg-bar-pos", JSON.stringify(H)), B.current = null);
1393
1439
  };
1394
1440
  return window.addEventListener("mousemove", d), window.addEventListener("mouseup", h), () => {
1395
1441
  window.removeEventListener("mousemove", d), window.removeEventListener("mouseup", h);
1396
1442
  };
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);
1443
+ }, [U, pe, v, H]);
1444
+ const [Ze, $e] = b(null), [Ke, Qe] = b(""), [Tn, _n] = b({}), me = ce(null), fe = ce(null), he = ke(() => {
1445
+ fe.current || (fe.current = requestAnimationFrame(() => {
1446
+ const d = /* @__PURE__ */ new Map(), x = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((w) => En(w) && Q(w)), O = !!x;
1447
+ P.forEach((w) => {
1448
+ if (!w.reference) return;
1449
+ const y = Rn(w.reference, w._id);
1450
+ if (!y || !Q(y)) return;
1451
+ const C = !!w.reference.metadata?.isModal;
1452
+ let A = !1;
1453
+ if (O ? A = x.contains(y) : A = !C, !A) return;
1454
+ const Y = y.getAttribute(ee);
1455
+ Y !== w._id && (document.querySelectorAll(`[${ee}="${w._id}"]`).forEach((L) => {
1456
+ L.removeAttribute(ee);
1457
+ }), Y || y.setAttribute(ee, w._id)), d.has(y) || d.set(y, []), d.get(y).push(w);
1412
1458
  });
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))
1459
+ const k = [];
1460
+ d.forEach((w, y) => {
1461
+ const C = y.getBoundingClientRect(), A = C.left + C.width / 2, Y = C.top + C.height / 2;
1462
+ if (A >= 0 && A <= window.innerWidth && Y >= 0 && Y <= window.innerHeight) {
1463
+ const L = document.elementFromPoint(A, Y);
1464
+ if (L && !y.contains(L) && !me.current?.contains(L))
1419
1465
  return;
1420
1466
  }
1421
- R.push({
1422
- id: v[0]._id,
1467
+ k.push({
1468
+ id: w[0]._id,
1423
1469
  // Group identified by its primary annotation
1424
- 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
1470
+ element: y,
1471
+ rect: C,
1472
+ annotations: w.sort((L, R) => new Date(R.timestamp || R.createdAt).getTime() - new Date(L.timestamp || L.createdAt).getTime()),
1473
+ isModal: !!w[0].reference?.metadata?.isModal
1428
1474
  });
1429
- }), Ce(R), me.current = null;
1475
+ }), g(k), fe.current = null;
1430
1476
  }));
1431
- }, [P]), Q = Ee(async () => {
1477
+ }, [P]), K = ke(async () => {
1432
1478
  if (n) {
1433
- ne(!0);
1479
+ re(!0);
1434
1480
  try {
1435
1481
  const d = await fetch(`${a}/api/annotations`, {
1436
1482
  headers: { "x-api-key": n }
1437
1483
  });
1438
1484
  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);
1485
+ const O = ((await d.json()).data || []).reduce((k, w) => k.find((C) => C._id === w._id) ? k : k.concat([w]), []);
1486
+ Ae(O);
1441
1487
  }
1442
1488
  } catch (d) {
1443
1489
  console.error("Failed to fetch annotations", d);
1444
1490
  } finally {
1445
- ne(!1);
1491
+ re(!1);
1446
1492
  }
1447
1493
  }
1448
1494
  }, [n, a]);
1449
- J(() => {
1450
- N && P.length === 0 && !de && X(!1);
1451
- }, [N, P.length, de]), J(() => {
1495
+ X(() => {
1496
+ M && P.length === 0 && !le && q(!1);
1497
+ }, [M, P.length, le]), X(() => {
1452
1498
  if (!i && P.length > 0) {
1453
- fe();
1454
- const d = new MutationObserver(() => fe()), h = new ResizeObserver(() => fe()), y = () => fe();
1499
+ he();
1500
+ const d = new MutationObserver(() => he()), h = new ResizeObserver(() => he()), x = () => he();
1455
1501
  return d.observe(document.documentElement, {
1456
1502
  childList: !0,
1457
1503
  subtree: !0,
1458
1504
  attributes: !0
1459
- }), h.observe(document.documentElement), window.addEventListener("scroll", y, !0), () => {
1460
- d.disconnect(), h.disconnect(), window.removeEventListener("scroll", y, !0), me.current && cancelAnimationFrame(me.current);
1505
+ }), h.observe(document.documentElement), window.addEventListener("scroll", x, !0), () => {
1506
+ d.disconnect(), h.disconnect(), window.removeEventListener("scroll", x, !0), fe.current && cancelAnimationFrame(fe.current);
1461
1507
  };
1462
1508
  }
1463
- }, [i, P.length, fe]), J(() => {
1464
- Q();
1465
- }, [Q]), J(() => {
1466
- oe.current = document.getElementById("viewgate-shadow-host");
1509
+ }, [i, P.length, he]), X(() => {
1510
+ K();
1511
+ }, [K]), X(() => {
1512
+ me.current = document.getElementById("viewgate-shadow-host");
1467
1513
  }, []);
1468
- const Ge = Ee((d) => {
1514
+ const Me = ke((d) => {
1469
1515
  if (!i || f) return;
1470
- const h = ht(d.clientX, d.clientY);
1471
- if (!h || oe.current?.contains(h) || h.closest(".vg-no-capture")) {
1516
+ const h = xt(d.clientX, d.clientY);
1517
+ if (!h || me.current?.contains(h) || h.closest(".vg-no-capture")) {
1472
1518
  m(null);
1473
1519
  return;
1474
1520
  }
1475
- const y = h.getBoundingClientRect();
1521
+ const x = h.getBoundingClientRect();
1476
1522
  m({
1477
1523
  tag: h.tagName.toLowerCase(),
1478
1524
  source: h.getAttribute("data-source-path") || "unknown:0",
1479
- rect: y,
1525
+ rect: x,
1480
1526
  element: h,
1481
1527
  previewText: (h.innerText || "").slice(0, 100) || (h.getAttribute("placeholder") || "").slice(0, 100) || h.tagName.toLowerCase(),
1482
1528
  semanticReference: {
1483
- ...Cn(h),
1529
+ ...On(h),
1484
1530
  normalizedOffset: {
1485
- x: (d.clientX - y.left) / y.width,
1486
- y: (d.clientY - y.top) / y.height
1531
+ x: (d.clientX - x.left) / x.width,
1532
+ y: (d.clientY - x.top) / x.height
1487
1533
  }
1488
1534
  }
1489
1535
  });
1490
- }, [i, f]), $e = Ee(async (d) => {
1536
+ }, [i, f]), Ne = ke(async (d) => {
1491
1537
  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);
1538
+ const h = xt(d.clientX, d.clientY);
1539
+ if (!(!h || me.current?.contains(h) || h.closest(".vg-no-capture")) && p) {
1540
+ d.preventDefault(), d.stopPropagation(), be(!0);
1495
1541
  try {
1496
- const R = window.scrollX, v = window.scrollY, g = await pt(document.documentElement, {
1497
- pixelRatio: 1.5,
1542
+ const k = await fn(document.body, {
1543
+ pixelRatio: 2,
1498
1544
  cacheBust: !0,
1499
1545
  width: window.innerWidth,
1500
1546
  height: window.innerHeight,
1501
1547
  backgroundColor: "#ffffff",
1502
- style: {
1503
- transform: `scale(${1 / window.devicePixelRatio}) translate(-${R}px, -${v}px)`,
1504
- transformOrigin: "top left"
1505
- },
1506
- filter: (ee) => {
1507
- const Se = ee;
1508
- return !(oe.current?.contains(Se) || Se.id === "viewgate-ui");
1548
+ filter: (C) => {
1549
+ const A = C;
1550
+ return !(me.current?.contains(A) || A.id === "viewgate-ui" || A.classList?.contains("vg-no-capture"));
1509
1551
  }
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);
1514
- else
1515
- try {
1516
- T = await pt(p.element, {
1517
- pixelRatio: 2,
1518
- cacheBust: !0,
1519
- backgroundColor: "#ffffff",
1520
- filter: (ee) => {
1521
- const Se = ee;
1522
- return !oe.current?.contains(Se);
1523
- }
1524
- });
1525
- } catch {
1526
- T = await ft(g, w, 24, 1.5);
1527
- }
1528
- const B = {
1552
+ }), w = await bn(k, p.rect, 32, 2), y = {
1529
1553
  ...p.semanticReference,
1530
1554
  metadata: {
1531
1555
  ...p.semanticReference.metadata,
1532
- screenshotUrl: g,
1533
- elementScreenshot: T
1556
+ elementScreenshot: w
1534
1557
  }
1535
1558
  };
1536
- C({
1559
+ j({
1537
1560
  ...p,
1538
- visualPreview: T,
1539
- semanticReference: B
1561
+ visualPreview: w,
1562
+ semanticReference: y
1540
1563
  });
1541
- } catch (y) {
1542
- console.error("Failed to capture preview:", y), C(p);
1564
+ } catch (x) {
1565
+ console.error("Failed to capture high-fidelity preview:", x), j(p);
1543
1566
  } finally {
1544
- Y(!1), m(null);
1567
+ be(!1), m(null);
1545
1568
  }
1546
1569
  }
1547
1570
  }, [i, p, f]);
1548
- J(() => {
1571
+ X(() => {
1549
1572
  const d = (h) => {
1550
1573
  if (h.key === "Escape") {
1551
- f ? C(null) : N ? X(!1) : i && u(!1);
1574
+ f ? j(null) : M ? q(!1) : i && u(!1);
1552
1575
  return;
1553
1576
  }
1554
1577
  const O = (() => {
1555
- let g = document.activeElement;
1556
- for (; g && g.shadowRoot && g.shadowRoot.activeElement; )
1557
- g = g.shadowRoot.activeElement;
1558
- return g;
1578
+ let y = document.activeElement;
1579
+ for (; y && y.shadowRoot && y.shadowRoot.activeElement; )
1580
+ y = y.shadowRoot.activeElement;
1581
+ return y;
1559
1582
  })();
1560
1583
  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));
1584
+ const w = h.key.toLowerCase();
1585
+ w === "c" && !f && !M && u((y) => !y), w === "v" && !f && (P.length > 0 || M) && (q((y) => !y), M || u(!1));
1563
1586
  };
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);
1587
+ return i && !f ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", d), window.addEventListener("mousemove", Me, !0), window.addEventListener("click", Ne, !0), () => {
1588
+ document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", d), window.removeEventListener("mousemove", Me, !0), window.removeEventListener("click", Ne, !0);
1566
1589
  };
1567
- }, [i, f, N, P, Ge, $e]);
1568
- const Pt = async () => {
1569
- if (!f || !j.trim()) return;
1570
- F(!0);
1571
- const { semanticReference: d } = f, [h, y] = (d.source || "").split(":"), O = y || "0";
1590
+ }, [i, f, M, P, Me, Ne]);
1591
+ const Gt = async () => {
1592
+ if (!f || !_.trim()) return;
1593
+ te(!0);
1594
+ const { semanticReference: d } = f, [h, x] = (d.source || "").split(":"), O = x || "0";
1572
1595
  try {
1573
1596
  if (!(await fetch(`${a}/api/annotations`, {
1574
1597
  method: "POST",
@@ -1580,7 +1603,7 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1580
1603
  filePath: h,
1581
1604
  line: parseInt(O),
1582
1605
  url: window.location.href,
1583
- message: j,
1606
+ message: _,
1584
1607
  componentName: d.componentPath || f.tag,
1585
1608
  reference: {
1586
1609
  ...d,
@@ -1593,32 +1616,32 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1593
1616
  }
1594
1617
  })
1595
1618
  })).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");
1619
+ e(r.success, "success"), j(null), N(""), u(!1), K();
1620
+ } catch (k) {
1621
+ console.error(k), e(r.error, "error");
1599
1622
  } finally {
1600
- F(!1);
1623
+ te(!1);
1601
1624
  }
1602
1625
  };
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: [
1626
+ return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1260", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1261", className: "vg-no-capture", children: [
1604
1627
  !c && /* @__PURE__ */ o.jsxs(
1605
1628
  "div",
1606
1629
  {
1607
1630
  style: {
1608
1631
  position: "fixed",
1609
- top: `${l.top}px`,
1610
- right: `${l.right}px`,
1611
- zIndex: Ie + 10,
1632
+ top: `${v.top}px`,
1633
+ right: `${v.right}px`,
1634
+ zIndex: De + 10,
1612
1635
  display: "flex",
1613
1636
  alignItems: "center",
1614
1637
  gap: "8px",
1615
- transition: b ? "none" : "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
1638
+ transition: U ? "none" : "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
1616
1639
  },
1617
1640
  children: [
1618
1641
  /* @__PURE__ */ o.jsx(
1619
1642
  "div",
1620
1643
  {
1621
- onMouseDown: Tt,
1644
+ onMouseDown: Pt,
1622
1645
  style: {
1623
1646
  width: "20px",
1624
1647
  height: "32px",
@@ -1642,14 +1665,14 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1642
1665
  onMouseLeave: (d) => {
1643
1666
  d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", d.currentTarget.style.color = "#1e293b";
1644
1667
  },
1645
- children: /* @__PURE__ */ o.jsx(nt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1147", size: 14 })
1668
+ children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1305", size: 14 })
1646
1669
  }
1647
1670
  ),
1648
1671
  /* @__PURE__ */ o.jsx(
1649
1672
  "button",
1650
1673
  {
1651
1674
  onClick: (d) => {
1652
- d.stopPropagation(), H({
1675
+ d.stopPropagation(), z({
1653
1676
  title: r.exitConfirmTitle || "Close ViewGate?",
1654
1677
  message: r.exitConfirmMessage || "Are you sure you want to close ViewGate?",
1655
1678
  type: "danger",
@@ -1678,7 +1701,7 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1678
1701
  onMouseLeave: (d) => {
1679
1702
  d.currentTarget.style.transform = "scale(1) rotate(0deg)", d.currentTarget.style.color = "#64748b", d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
1680
1703
  },
1681
- children: /* @__PURE__ */ o.jsx(Me, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1187", size: 20, strokeWidth: 2.5 })
1704
+ children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1345", size: 20, strokeWidth: 2.5 })
1682
1705
  }
1683
1706
  )
1684
1707
  ]
@@ -1687,23 +1710,23 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1687
1710
  /* @__PURE__ */ o.jsxs(
1688
1711
  "div",
1689
1712
  {
1690
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1193",
1713
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1351",
1691
1714
  style: {
1692
1715
  position: "fixed",
1693
- bottom: `${U.bottom}px`,
1694
- right: `${U.right}px`,
1695
- zIndex: Ie,
1716
+ bottom: `${H.bottom}px`,
1717
+ right: `${H.right}px`,
1718
+ zIndex: De,
1696
1719
  display: "flex",
1697
1720
  alignItems: "center",
1698
1721
  gap: "8px",
1699
- transition: I ? "none" : "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"
1722
+ transition: pe ? "none" : "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"
1700
1723
  },
1701
1724
  id: "viewgate-ui",
1702
1725
  children: [
1703
1726
  /* @__PURE__ */ o.jsx(
1704
1727
  "div",
1705
1728
  {
1706
- onMouseDown: _t,
1729
+ onMouseDown: At,
1707
1730
  style: {
1708
1731
  width: "24px",
1709
1732
  height: "40px",
@@ -1728,10 +1751,10 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1728
1751
  d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", d.currentTarget.style.color = "#1e293b";
1729
1752
  },
1730
1753
  className: "vg-animate-slide-up",
1731
- children: /* @__PURE__ */ o.jsx(nt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1236", size: 16 })
1754
+ children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1394", size: 16 })
1732
1755
  }
1733
1756
  ),
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: [
1757
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1397", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
1735
1758
  /* @__PURE__ */ o.jsx(
1736
1759
  "button",
1737
1760
  {
@@ -1741,9 +1764,9 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1741
1764
  padding: "12px 24px",
1742
1765
  background: i ? "#ef4444" : void 0
1743
1766
  },
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 })
1767
+ children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1406", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1768
+ i ? /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1407", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1407", size: 20, className: "vg-animate-pop" }),
1769
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1408", children: i ? r.exitMode : r.enterMode })
1747
1770
  ] })
1748
1771
  }
1749
1772
  ),
@@ -1751,13 +1774,13 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1751
1774
  "button",
1752
1775
  {
1753
1776
  onClick: () => {
1754
- X(!N), u(!1), C(null);
1777
+ q(!M), u(!1), j(null);
1755
1778
  },
1756
1779
  className: "vg-button-ghost vg-animate-pop",
1757
1780
  style: { animationDelay: "0.1s" },
1758
1781
  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 })
1782
+ /* @__PURE__ */ o.jsx(tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1421", size: 20 }),
1783
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1422", children: r.viewComments })
1761
1784
  ]
1762
1785
  }
1763
1786
  )
@@ -1765,7 +1788,7 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1765
1788
  ]
1766
1789
  }
1767
1790
  ),
1768
- q && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1272", style: {
1791
+ ve && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1430", style: {
1769
1792
  position: "fixed",
1770
1793
  top: 0,
1771
1794
  left: 0,
@@ -1776,16 +1799,16 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1776
1799
  display: "flex",
1777
1800
  alignItems: "center",
1778
1801
  justifyContent: "center",
1779
- zIndex: Ie + 1,
1802
+ zIndex: De + 1,
1780
1803
  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..." })
1804
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1436", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1805
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1437", className: "vg-spinner" }),
1806
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1438", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
1784
1807
  ] }) }),
1785
1808
  i && !f && /* @__PURE__ */ o.jsx(
1786
1809
  "div",
1787
1810
  {
1788
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1287",
1811
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1445",
1789
1812
  className: "vg-backdrop-blur",
1790
1813
  style: {
1791
1814
  opacity: 1,
@@ -1797,36 +1820,36 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1797
1820
  ${p.rect.left}px ${p.rect.bottom}px,
1798
1821
  ${p.rect.left}px ${p.rect.top}px
1799
1822
  )` : "none",
1800
- zIndex: dn
1823
+ zIndex: hn
1801
1824
  }
1802
1825
  }
1803
1826
  ),
1804
- i && p && !f && !q && /* @__PURE__ */ o.jsx(
1827
+ i && p && !f && !ve && /* @__PURE__ */ o.jsx(
1805
1828
  "div",
1806
1829
  {
1807
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1306",
1830
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1464",
1808
1831
  className: "vg-selection-pulse",
1809
1832
  style: {
1810
1833
  top: p.rect.top - 4,
1811
1834
  left: p.rect.left - 4,
1812
1835
  width: p.rect.width + 8,
1813
1836
  height: p.rect.height + 8,
1814
- zIndex: un
1837
+ zIndex: gn
1815
1838
  },
1816
1839
  children: /* @__PURE__ */ o.jsxs(
1817
1840
  "div",
1818
1841
  {
1819
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1316",
1842
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1474",
1820
1843
  className: "vg-selection-label",
1821
1844
  style: {
1822
1845
  ...p.rect.top < 60 ? p.rect.bottom > window.innerHeight - 60 ? { top: "8px", bottom: "auto" } : { top: "100%", marginTop: "8px", bottom: "auto" } : { top: "-40px", bottom: "auto" },
1823
1846
  ...p.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
1824
1847
  },
1825
1848
  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: [
1849
+ /* @__PURE__ */ o.jsx(lr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1490", size: 16 }),
1850
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1491", style: { display: "flex", flexDirection: "column" }, children: [
1851
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1492", style: { fontWeight: 700 }, children: r.selectToComment }),
1852
+ /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1493", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
1830
1853
  Math.round(p.rect.width),
1831
1854
  " × ",
1832
1855
  Math.round(p.rect.height)
@@ -1837,7 +1860,7 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1837
1860
  )
1838
1861
  }
1839
1862
  ),
1840
- f && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1345", className: "vg-animate-fade", style: {
1863
+ f && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1503", className: "vg-animate-fade", style: {
1841
1864
  position: "fixed",
1842
1865
  top: 0,
1843
1866
  left: 0,
@@ -1848,14 +1871,14 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1848
1871
  display: "flex",
1849
1872
  alignItems: "center",
1850
1873
  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: {
1874
+ zIndex: Fe
1875
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1508", className: "vg-glassmorphism vg-animate-slide", style: {
1853
1876
  padding: "40px",
1854
1877
  width: "500px",
1855
1878
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
1856
1879
  }, 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: {
1880
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1512", style: { textAlign: "center", marginBottom: "32px" }, children: [
1881
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1513", style: {
1859
1882
  width: "48px",
1860
1883
  height: "48px",
1861
1884
  background: "var(--vg-primary-gradient)",
@@ -1866,11 +1889,11 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1866
1889
  margin: "0 auto 16px",
1867
1890
  color: "white",
1868
1891
  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 })
1892
+ }, children: /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1518", size: 24 }) }),
1893
+ /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1520", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1894
+ /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1521", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
1872
1895
  ] }),
1873
- f.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1367", style: {
1896
+ f.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1525", style: {
1874
1897
  marginBottom: "24px",
1875
1898
  borderRadius: "12px",
1876
1899
  overflow: "hidden",
@@ -1890,21 +1913,21 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1890
1913
  "textarea",
1891
1914
  {
1892
1915
  className: "vg-textarea",
1893
- value: j,
1894
- onChange: (d) => V(d.target.value),
1916
+ value: _,
1917
+ onChange: (d) => N(d.target.value),
1895
1918
  rows: 4,
1896
1919
  placeholder: r.placeholder,
1897
1920
  autoFocus: !0,
1898
1921
  style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
1899
1922
  }
1900
1923
  ),
1901
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1394", style: { display: "flex", gap: "12px" }, children: [
1924
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1552", style: { display: "flex", gap: "12px" }, children: [
1902
1925
  /* @__PURE__ */ o.jsx(
1903
1926
  "button",
1904
1927
  {
1905
- onClick: () => !$ && C(null),
1928
+ onClick: () => !W && j(null),
1906
1929
  className: "vg-button-ghost",
1907
- disabled: $,
1930
+ disabled: W,
1908
1931
  style: { flex: 1, padding: "12px" },
1909
1932
  children: r.cancel
1910
1933
  }
@@ -1912,19 +1935,19 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1912
1935
  /* @__PURE__ */ o.jsx(
1913
1936
  "button",
1914
1937
  {
1915
- onClick: Pt,
1938
+ onClick: Gt,
1916
1939
  className: "vg-button-primary",
1917
- disabled: $ || !j.trim(),
1940
+ disabled: W || !_.trim(),
1918
1941
  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" })
1942
+ children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1567", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1943
+ W ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1568", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(hr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1568", size: 18 }),
1944
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1569", children: W ? r.submitting : r.sendFeedback || "Send Comment" })
1922
1945
  ] })
1923
1946
  }
1924
1947
  )
1925
1948
  ] })
1926
1949
  ] }) }),
1927
- N && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1421", className: "vg-animate-fade", style: {
1950
+ M && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1579", className: "vg-animate-fade", style: {
1928
1951
  position: "fixed",
1929
1952
  top: 0,
1930
1953
  left: 0,
@@ -1935,52 +1958,48 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1935
1958
  display: "flex",
1936
1959
  alignItems: "center",
1937
1960
  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: {
1961
+ zIndex: Fe
1962
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1584", className: "vg-glassmorphism vg-animate-slide", style: {
1940
1963
  padding: "32px",
1941
1964
  width: "650px",
1942
1965
  maxHeight: "85vh",
1943
1966
  display: "flex",
1944
1967
  flexDirection: "column"
1945
1968
  }, 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 })
1969
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1588", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1970
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1589", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1971
+ /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1590", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: D ? r.commentDetails : r.annotations }),
1972
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1593", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: S.length })
1950
1973
  ] }),
1951
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1441", style: { display: "flex", gap: "8px" }, children: [
1952
- W && /* @__PURE__ */ o.jsx(
1974
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1597", style: { display: "flex", gap: "8px" }, children: [
1975
+ D && /* @__PURE__ */ o.jsx(
1953
1976
  "button",
1954
1977
  {
1955
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1443",
1978
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1599",
1956
1979
  className: "vg-button-ghost",
1957
1980
  style: { padding: "6px 14px", fontSize: "12px" },
1958
- onClick: () => ae(null),
1981
+ onClick: () => ne(null),
1959
1982
  children: r.viewAll || "View All"
1960
1983
  }
1961
1984
  ),
1962
1985
  /* @__PURE__ */ o.jsx(
1963
1986
  "button",
1964
1987
  {
1965
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1451",
1988
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1607",
1966
1989
  className: "vg-button-ghost",
1967
1990
  style: { padding: "8px", borderRadius: "50%" },
1968
1991
  onClick: () => {
1969
- X(!1), ae(null);
1992
+ q(!1), ne(null);
1970
1993
  },
1971
- children: /* @__PURE__ */ o.jsx(Me, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1456", size: 20 })
1994
+ children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1612", size: 20 })
1972
1995
  }
1973
1996
  )
1974
1997
  ] })
1975
1998
  ] }),
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(
1999
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1616", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: le ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1618", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1619", className: "vg-spinner" }) }) : S.map((d, h) => /* @__PURE__ */ o.jsxs(
1981
2000
  "div",
1982
2001
  {
1983
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1473",
2002
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1623",
1984
2003
  className: "vg-glassmorphism vg-animate-slide",
1985
2004
  style: {
1986
2005
  padding: "20px",
@@ -1990,40 +2009,56 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
1990
2009
  animationDelay: `${h * 0.05}s`
1991
2010
  },
1992
2011
  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
- ] })
2012
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1635", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: [
2013
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1636", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
2014
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1637", style: { fontSize: "12px", color: "#000000", fontWeight: 600 }, children: ht(d.timestamp || d.createdAt || d.reference?.timestamp, t) }),
2015
+ d.url && /* @__PURE__ */ o.jsx(
2016
+ gt,
2017
+ {
2018
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1641",
2019
+ url: d.url,
2020
+ onHover: ue,
2021
+ style: {
2022
+ display: "flex",
2023
+ alignItems: "center",
2024
+ gap: "4px",
2025
+ fontSize: "11px",
2026
+ color: "#64748b",
2027
+ background: "#f8fafc",
2028
+ padding: "2px 8px",
2029
+ borderRadius: "6px",
2030
+ border: "1px solid #e2e8f0",
2031
+ maxWidth: "220px"
2032
+ }
2033
+ }
2034
+ )
2000
2035
  ] }),
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 }),
2036
+ d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1660", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a", border: "1px solid #dcfce7" }, children: [
2037
+ /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1661", size: 14 }),
2003
2038
  " ",
2004
2039
  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 }),
2040
+ ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1664", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c", border: "1px solid #ffedd5" }, children: [
2041
+ /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1665", size: 14 }),
2007
2042
  " ",
2008
2043
  r.pending
2009
2044
  ] })
2010
2045
  ] }),
2011
- qe === d._id ? /* @__PURE__ */ o.jsx(
2046
+ Ze === d._id ? /* @__PURE__ */ o.jsx(
2012
2047
  "textarea",
2013
2048
  {
2014
2049
  className: "vg-textarea",
2015
- value: Ye,
2016
- onChange: (y) => Xe(y.target.value),
2050
+ value: Ke,
2051
+ onChange: (x) => Qe(x.target.value),
2017
2052
  rows: 3,
2018
2053
  autoFocus: !0,
2019
2054
  style: { marginBottom: "16px" }
2020
2055
  }
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: [
2056
+ ) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1680", className: "vg-text-wrap", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: d.message }),
2057
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1683", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: Ze === d._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2023
2058
  /* @__PURE__ */ o.jsx(
2024
2059
  "button",
2025
2060
  {
2026
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1525",
2061
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1686",
2027
2062
  className: "vg-button-primary vg-animate-pop",
2028
2063
  style: { padding: "8px 16px", fontSize: "13px" },
2029
2064
  onClick: async () => {
@@ -2031,8 +2066,8 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
2031
2066
  (await fetch(`${a}/api/annotations/${d._id}`, {
2032
2067
  method: "PATCH",
2033
2068
  headers: { "Content-Type": "application/json", "x-api-key": n },
2034
- body: JSON.stringify({ message: Ye })
2035
- })).ok && (Ae(null), Q(), e(r.updateSuccess, "success"));
2069
+ body: JSON.stringify({ message: Ke })
2070
+ })).ok && ($e(null), K(), e(r.updateSuccess, "success"));
2036
2071
  } catch {
2037
2072
  e(r.error, "error");
2038
2073
  }
@@ -2040,19 +2075,19 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
2040
2075
  children: r.save
2041
2076
  }
2042
2077
  ),
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 })
2078
+ /* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1708", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => $e(null), children: r.cancel })
2044
2079
  ] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2045
2080
  /* @__PURE__ */ o.jsxs(
2046
2081
  "button",
2047
2082
  {
2048
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1551",
2083
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1712",
2049
2084
  className: "vg-button-ghost vg-animate-pop",
2050
2085
  style: { padding: "8px 16px", fontSize: "13px" },
2051
2086
  onClick: () => {
2052
- Ae(d._id), Xe(d.message);
2087
+ $e(d._id), Qe(d.message);
2053
2088
  },
2054
2089
  children: [
2055
- /* @__PURE__ */ o.jsx(ir, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1559", size: 14 }),
2090
+ /* @__PURE__ */ o.jsx(ur, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1720", size: 14 }),
2056
2091
  " ",
2057
2092
  r.edit
2058
2093
  ]
@@ -2061,14 +2096,14 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
2061
2096
  /* @__PURE__ */ o.jsxs(
2062
2097
  "button",
2063
2098
  {
2064
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1561",
2099
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1722",
2065
2100
  className: "vg-button-ghost vg-animate-pop",
2066
2101
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.05s" },
2067
2102
  onClick: () => {
2068
2103
  d.url && (window.location.href = d.url);
2069
2104
  },
2070
2105
  children: [
2071
- /* @__PURE__ */ o.jsx(tt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1568", size: 14 }),
2106
+ /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1729", size: 14 }),
2072
2107
  " ",
2073
2108
  r.review
2074
2109
  ]
@@ -2077,11 +2112,11 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
2077
2112
  d.status === "pending" ? /* @__PURE__ */ o.jsxs(
2078
2113
  "button",
2079
2114
  {
2080
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1571",
2115
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1732",
2081
2116
  className: "vg-button-primary vg-animate-pop",
2082
2117
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
2083
2118
  onClick: () => {
2084
- H({
2119
+ z({
2085
2120
  title: r.markReadyConfirm,
2086
2121
  message: r.confirmMarkReady,
2087
2122
  type: "success",
@@ -2091,17 +2126,17 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
2091
2126
  method: "PATCH",
2092
2127
  headers: { "Content-Type": "application/json", "x-api-key": n },
2093
2128
  body: JSON.stringify({ status: "ready_for_review" })
2094
- })).ok && (Q(), e(r.updateSuccess, "success"));
2129
+ })).ok && (K(), e(r.updateSuccess, "success"));
2095
2130
  } catch {
2096
2131
  e(r.error, "error");
2097
2132
  } finally {
2098
- H(null);
2133
+ z(null);
2099
2134
  }
2100
2135
  }
2101
2136
  });
2102
2137
  },
2103
2138
  children: [
2104
- /* @__PURE__ */ o.jsx(le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1599", size: 14 }),
2139
+ /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1760", size: 14 }),
2105
2140
  " ",
2106
2141
  r.markReady
2107
2142
  ]
@@ -2109,11 +2144,11 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
2109
2144
  ) : /* @__PURE__ */ o.jsxs(
2110
2145
  "button",
2111
2146
  {
2112
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1602",
2147
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1763",
2113
2148
  className: "vg-button-ghost vg-animate-pop",
2114
2149
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
2115
2150
  onClick: () => {
2116
- H({
2151
+ z({
2117
2152
  title: r.reopenConfirm,
2118
2153
  message: r.confirmReopen,
2119
2154
  type: "success",
@@ -2124,17 +2159,17 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
2124
2159
  method: "PATCH",
2125
2160
  headers: { "Content-Type": "application/json", "x-api-key": n },
2126
2161
  body: JSON.stringify({ status: "pending" })
2127
- })).ok && (Q(), e(r.updateSuccess, "success"));
2162
+ })).ok && (K(), e(r.updateSuccess, "success"));
2128
2163
  } catch {
2129
2164
  e(r.error, "error");
2130
2165
  } finally {
2131
- H(null);
2166
+ z(null);
2132
2167
  }
2133
2168
  }
2134
2169
  });
2135
2170
  },
2136
2171
  children: [
2137
- /* @__PURE__ */ o.jsx(lr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1630", size: 14 }),
2172
+ /* @__PURE__ */ o.jsx(mr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1791", size: 14 }),
2138
2173
  " ",
2139
2174
  r.reopen
2140
2175
  ]
@@ -2143,11 +2178,11 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
2143
2178
  /* @__PURE__ */ o.jsx(
2144
2179
  "button",
2145
2180
  {
2146
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1633",
2181
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1794",
2147
2182
  className: "vg-button-ghost vg-animate-pop",
2148
2183
  style: { padding: "8px 12px", color: "#ef4444", borderColor: "#fee2e2", animationDelay: "0.15s" },
2149
2184
  onClick: () => {
2150
- H({
2185
+ z({
2151
2186
  title: r.deleteConfirm,
2152
2187
  message: r.confirmDelete,
2153
2188
  type: "danger",
@@ -2156,16 +2191,16 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
2156
2191
  (await fetch(`${a}/api/annotations/${d._id}`, {
2157
2192
  method: "DELETE",
2158
2193
  headers: { "x-api-key": n }
2159
- })).ok && (Q(), e(r.deleteSuccess, "success"));
2194
+ })).ok && (K(), e(r.deleteSuccess, "success"));
2160
2195
  } catch {
2161
2196
  e(r.error, "error");
2162
2197
  } finally {
2163
- H(null);
2198
+ z(null);
2164
2199
  }
2165
2200
  }
2166
2201
  });
2167
2202
  },
2168
- children: /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1660", size: 16 })
2203
+ children: /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1821", size: 16 })
2169
2204
  }
2170
2205
  )
2171
2206
  ] }) })
@@ -2174,7 +2209,7 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
2174
2209
  d._id
2175
2210
  )) })
2176
2211
  ] }) }),
2177
- z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1675", className: "vg-animate-fade", style: {
2212
+ I && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1836", className: "vg-animate-fade", style: {
2178
2213
  position: "fixed",
2179
2214
  top: 0,
2180
2215
  left: 0,
@@ -2185,120 +2220,143 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
2185
2220
  display: "flex",
2186
2221
  alignItems: "center",
2187
2222
  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: {
2223
+ zIndex: Fe + 100
2224
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1841", className: "vg-glassmorphism vg-animate-slide", style: {
2190
2225
  padding: "40px",
2191
2226
  width: "420px",
2192
2227
  textAlign: "center",
2193
2228
  border: "1px solid rgba(255, 255, 255, 0.1)",
2194
2229
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
2195
2230
  }, children: [
2196
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1687", style: {
2231
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1848", style: {
2197
2232
  width: "64px",
2198
2233
  height: "64px",
2199
- background: z.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
2234
+ background: I.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
2200
2235
  borderRadius: "20px",
2201
2236
  display: "flex",
2202
2237
  alignItems: "center",
2203
2238
  justifyContent: "center",
2204
2239
  margin: "0 auto 24px",
2205
- color: z.type === "danger" ? "#ef4444" : "#6366f1",
2240
+ color: I.type === "danger" ? "#ef4444" : "#6366f1",
2206
2241
  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: [
2242
+ }, children: I.type === "danger" ? /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1857", size: 32 }) : /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1857", size: 32 }) }),
2243
+ /* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1859", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: I.title }),
2244
+ /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1860", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: I.message }),
2245
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1861", style: { display: "flex", gap: "16px" }, children: [
2211
2246
  /* @__PURE__ */ o.jsx(
2212
2247
  "button",
2213
2248
  {
2214
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1701",
2249
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1862",
2215
2250
  className: "vg-button-ghost",
2216
2251
  style: { flex: 1, height: "44px" },
2217
- onClick: () => !K && H(null),
2218
- disabled: K,
2252
+ onClick: () => !Z && z(null),
2253
+ disabled: Z,
2219
2254
  children: r.no
2220
2255
  }
2221
2256
  ),
2222
2257
  /* @__PURE__ */ o.jsx(
2223
2258
  "button",
2224
2259
  {
2225
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1709",
2260
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1870",
2226
2261
  className: "vg-button-primary",
2227
2262
  style: {
2228
2263
  flex: 1,
2229
2264
  height: "44px",
2230
- backgroundColor: z.type === "danger" ? "#ef4444" : void 0,
2231
- backgroundImage: z.type === "danger" ? "none" : void 0,
2265
+ backgroundColor: I.type === "danger" ? "#ef4444" : void 0,
2266
+ backgroundImage: I.type === "danger" ? "none" : void 0,
2232
2267
  display: "flex",
2233
2268
  alignItems: "center",
2234
2269
  justifyContent: "center",
2235
2270
  gap: "8px"
2236
2271
  },
2237
- disabled: K,
2272
+ disabled: Z,
2238
2273
  onClick: async () => {
2239
- ue(!0);
2274
+ de(!0);
2240
2275
  try {
2241
- await z.onConfirm();
2276
+ await I.onConfirm();
2242
2277
  } catch (d) {
2243
2278
  console.error("Confirmation error:", d);
2244
2279
  } finally {
2245
- ue(!1);
2280
+ de(!1);
2246
2281
  }
2247
2282
  },
2248
- children: K ? /* @__PURE__ */ o.jsx(rr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1734", size: 18, className: "vg-animate-spin" }) : r.yes
2283
+ children: Z ? /* @__PURE__ */ o.jsx(or, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1895", size: 18, className: "vg-animate-spin" }) : r.yes
2249
2284
  }
2250
2285
  )
2251
2286
  ] })
2252
2287
  ] }) }),
2253
- !i && !N && pe.map((d, h) => {
2254
- const { rect: y, annotations: O, isModal: R } = d, v = O[0], g = O.length;
2288
+ !i && !M && l.map((d, h) => {
2289
+ const { rect: x, annotations: O, isModal: k } = d, w = O[0], y = O.length, C = O.some((R) => R.status === "ready_for_review"), A = O.some((R) => R.status !== "ready_for_review"), Y = C && A, L = C && !A;
2255
2290
  return /* @__PURE__ */ o.jsxs(
2256
2291
  "div",
2257
2292
  {
2258
2293
  className: "vg-pin-container vg-animate-pop",
2259
2294
  style: {
2260
2295
  position: "fixed",
2261
- top: y.top - 20,
2262
- left: y.left + y.width / 2 - 16,
2296
+ top: x.top - 20,
2297
+ left: x.left + x.width / 2 - 16,
2298
+ width: "32px",
2299
+ height: "32px",
2263
2300
  cursor: "pointer",
2264
2301
  transition: "all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",
2265
- zIndex: pn
2302
+ zIndex: xn
2303
+ },
2304
+ onMouseEnter: (R) => {
2305
+ window.innerHeight - x.bottom < 250 ? Ee((Ie) => ({ ...Ie, [d.id]: "vg-top" })) : Ee((Ie) => ({ ...Ie, [d.id]: "" }));
2266
2306
  },
2267
- onMouseEnter: (w) => {
2268
- window.innerHeight - y.bottom < 250 ? be((T) => ({ ...T, [d.id]: "vg-top" })) : be((T) => ({ ...T, [d.id]: "" }));
2307
+ onWheel: (R) => {
2308
+ const ge = R.currentTarget.querySelector(".vg-tooltip-scroll");
2309
+ ge && ge.scrollBy({ top: R.deltaY, behavior: "smooth" });
2269
2310
  },
2270
2311
  onClick: () => {
2271
- X(!0), ae(v._id);
2312
+ q(!0), ne(w._id);
2272
2313
  },
2273
2314
  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: [
2279
- g,
2315
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1948", className: `vg-pin-tooltip ${Ce[d.id] || ""}`, style: { padding: "16px" }, children: [
2316
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1949", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "12px" }, children: [
2317
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1950", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2318
+ /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1951", size: 14, color: "#6366f1" }),
2319
+ /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1952", style: { fontWeight: 800, fontSize: "13px", color: "#0f172a" }, children: [
2320
+ y,
2280
2321
  " ",
2281
- g === 1 ? "Comentario" : "Comentarios"
2322
+ y === 1 ? "Comentario" : "Comentarios"
2282
2323
  ] })
2283
2324
  ] }),
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" })
2325
+ k && /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1957", className: "vg-badge", style: { fontSize: "10px", background: "#fef3c7", color: "#92400e", border: "none" }, children: "MODAL" })
2285
2326
  ] }),
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: {
2327
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1960", className: "vg-tooltip-scroll", style: { maxHeight: "180px", overflowY: "auto" }, children: O.map((R, ge) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1962", style: {
2287
2328
  padding: "10px 0",
2288
- borderTop: L === 0 ? "none" : "1px solid #f1f5f9",
2329
+ borderTop: ge === 0 ? "none" : "1px solid #f1f5f9",
2289
2330
  display: "flex",
2290
2331
  gap: "12px",
2291
2332
  alignItems: "flex-start"
2292
2333
  }, 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 })
2334
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1969", style: { flex: 1, display: "flex", flexDirection: "column", gap: "4px" }, children: [
2335
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1970", style: { fontSize: "10px", fontWeight: 600, color: "#64748b" }, children: ht(R.timestamp || R.createdAt, t) }),
2336
+ R.url && /* @__PURE__ */ o.jsx(
2337
+ gt,
2338
+ {
2339
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1974",
2340
+ url: R.url,
2341
+ onHover: ue,
2342
+ style: {
2343
+ display: "flex",
2344
+ alignItems: "center",
2345
+ gap: "4px",
2346
+ fontSize: "9px",
2347
+ color: "#6366f1",
2348
+ opacity: 0.8,
2349
+ background: "rgba(99, 102, 241, 0.05)",
2350
+ padding: "2px 6px",
2351
+ borderRadius: "4px",
2352
+ maxWidth: "120px"
2353
+ },
2354
+ tooltipStyle: { fontSize: "9px" }
2355
+ }
2356
+ ),
2357
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1992", className: "vg-line-clamp-2", style: { fontSize: "13px", color: "#1e293b", lineHeight: 1.4, fontWeight: 500 }, children: R.message.length > 100 ? R.message.slice(0, 97) + "..." : R.message })
2300
2358
  ] }),
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: {
2359
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1996", style: { flexShrink: 0, marginTop: "2px" }, children: R.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1998", style: {
2302
2360
  display: "flex",
2303
2361
  alignItems: "center",
2304
2362
  gap: "4px",
@@ -2311,9 +2369,9 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
2311
2369
  textTransform: "uppercase",
2312
2370
  border: "1px solid #dcfce7"
2313
2371
  }, children: [
2314
- /* @__PURE__ */ o.jsx(le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1823", size: 10 }),
2372
+ /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2011", size: 10 }),
2315
2373
  r.readyForReview
2316
- ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1827", style: {
2374
+ ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2015", style: {
2317
2375
  display: "flex",
2318
2376
  alignItems: "center",
2319
2377
  gap: "4px",
@@ -2326,53 +2384,66 @@ const _e = 2147483647, Ie = _e, Le = 2e6, dn = _e - 10, un = _e - 5, pn = _e - 1
2326
2384
  textTransform: "uppercase",
2327
2385
  border: "1px solid #ffedd5"
2328
2386
  }, children: [
2329
- /* @__PURE__ */ o.jsx(et, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1840", size: 10 }),
2387
+ /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2028", size: 10 }),
2330
2388
  r.pending
2331
2389
  ] }) })
2332
- ] }, w._id)) })
2390
+ ] }, R._id)) })
2333
2391
  ] }),
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 })
2392
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2038", className: `vg-formal-pin ${L ? "ready" : Y ? "mixed" : ""} ${k ? "modal-variant" : ""}`, style: { position: "relative" }, children: [
2393
+ L ? /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2039", size: 18 }) : k ? /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2039", size: 16 }) : /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2039", size: 16 }),
2394
+ y > 1 && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2042", className: "vg-pin-badge vg-animate-pop", children: y })
2337
2395
  ] })
2338
2396
  ]
2339
2397
  },
2340
2398
  `group-${d.id}`
2341
2399
  );
2342
- })
2400
+ }),
2401
+ /* @__PURE__ */ o.jsx(
2402
+ "div",
2403
+ {
2404
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:2051",
2405
+ className: `vg-url-tooltip ${F ? "visible" : ""} ${F?.direction === "bottom" ? "vg-bottom" : "vg-top"}`,
2406
+ style: {
2407
+ transform: F ? `translate(-50%, ${F.direction === "top" ? "-110%" : "10%"})` : "translate(-50%, 0)",
2408
+ left: F?.x || 0,
2409
+ top: F?.y || 0
2410
+ },
2411
+ children: F?.url
2412
+ }
2413
+ )
2343
2414
  ] }) });
2344
2415
  };
2345
- function Vt(e, t, r) {
2416
+ function _t(e, t, r) {
2346
2417
  if (!t.endsWith(".tsx") && !t.endsWith(".jsx") || t.includes("node_modules")) return e;
2347
2418
  const n = (i) => i.replace(/\\/g, "/"), a = n(t).replace(n(r), "");
2348
2419
  return e.split(`
2349
2420
  `).map((i, u) => {
2350
2421
  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}"`);
2422
+ return i.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (m, f, j) => m.includes("data-source-path") || j === "Fragment" || j === "React.Fragment" ? m : `${f}<${j} data-source-path="${a}:${p}"`);
2352
2423
  }).join(`
2353
2424
  `);
2354
2425
  }
2355
- function Vn() {
2426
+ function $n() {
2356
2427
  return {
2357
2428
  name: "vite-plugin-viewgate",
2358
2429
  enforce: "pre",
2359
2430
  transform(e, t) {
2360
2431
  return {
2361
- code: Vt(e, t, process.cwd()),
2432
+ code: _t(e, t, process.cwd()),
2362
2433
  map: null
2363
2434
  };
2364
2435
  }
2365
2436
  };
2366
2437
  }
2367
- function Tn(e) {
2438
+ function Mn(e) {
2368
2439
  const t = this.resourcePath;
2369
- return t ? (process.env.NODE_ENV, Vt(e, t, process.cwd())) : e;
2440
+ return t ? (process.env.NODE_ENV, _t(e, t, process.cwd())) : e;
2370
2441
  }
2371
2442
  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
2443
+ Gn as ViewGate,
2444
+ Vn as ViewGateOverlay,
2445
+ _t as transformSourcePaths,
2446
+ wr as useViewGate,
2447
+ Mn as viewgateNextLoader,
2448
+ $n as viewgatePlugin
2378
2449
  };