viewgate-wrapper 1.10.18 → 1.10.20

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