viewgate-wrapper 1.10.19 → 1.10.21

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,5 +1,5 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";body{margin:0!important;padding:0!important}:root{--vg-primary: #6366f1;--vg-primary-glow: rgba(99, 102, 241, .5);--vg-primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);--vg-bg-glass: rgba(255, 255, 255, .7);--vg-radius: 16px;--vg-font-main: "Inter", system-ui, sans-serif;--vg-font-alt: "Inter", system-ui, sans-serif;--placeholder-color: #94a3b8;--vg-glass-border: rgba(255, 255, 255, .3);--vg-shadow-premium: 0 20px 50px rgba(0, 0, 0, .1)}.vg-container,.vg-container *{box-sizing:border-box}.vg-container{font-family:var(--vg-font-main);-webkit-font-smoothing:antialiased}.vg-glassmorphism{background:var(--vg-bg-glass);backdrop-filter:blur(16px) saturate(180%);-webkit-backdrop-filter:blur(16px) saturate(180%);border:1px solid var(--vg-glass-border);box-shadow:0 8px 32px #0000001a;border-radius:var(--vg-radius);position:relative}.vg-button-primary{background:var(--vg-primary-gradient);color:#fff;border:none;padding:12px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:700;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 12px #6366f14d}.vg-button-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #6366f166}.vg-button-primary:disabled,.vg-button-ghost:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.4);transform:none!important;box-shadow:none!important;pointer-events:none}.vg-button-ghost{background:#fffc;color:#1e293b;border:1px solid #e2e8f0;padding:10px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px}.vg-button-ghost:hover{background:#fff;border-color:#cbd5e1;box-shadow:0 4px 12px #0000000d}.vg-badge{background:#f1f5f9;color:#64748b;padding:4px 12px;font-size:11px;border-radius:99px;font-weight:600;display:inline-flex;align-items:center;gap:6px}.vg-textarea{width:100%;box-sizing:border-box;border:1px solid #e2e8f0;border-radius:12px;padding:12px;font-family:var(--vg-font-main);font-size:15px;color:#0f172a;resize:none;outline:none;background:#f8fafc;transition:all .2s ease}.vg-textarea:focus{background:#fff;border-color:var(--vg-primary);box-shadow:0 0 0 4px #6366f11a}@keyframes vg-pop-in{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08);opacity:1}to{transform:scale(1);opacity:1}}@keyframes vg-slide-up-fade{0%{transform:translateY(12px) scale(.95);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.vg-animate-pop{animation:vg-pop-in .5s cubic-bezier(.34,1.56,.64,1) forwards}.vg-animate-slide-up{animation:vg-slide-up-fade .4s cubic-bezier(.22,1,.36,1) forwards}.vg-button-primary,.vg-button-ghost,.vg-pin-container,.vg-action-bar,.vg-glassmorphism{transition:all .3s cubic-bezier(.4,0,.2,1)}.vg-animate-slide{animation:vg-slide-in .4s cubic-bezier(.22,1,.36,1) forwards}.vg-animate-fade{animation:vg-fade-in .3s ease-out forwards}.vg-toasts{position:fixed;top:24px;right:24px;display:flex;flex-direction:column;gap:12px}.vg-toast{padding:12px 20px;display:flex;align-items:center;gap:12px;min-width:300px;border-radius:12px;box-shadow:0 10px 30px #0000001a;background:#fff}.vg-toast.success{border-left:6px solid #22c55e}.vg-toast.error{border-left:6px solid #ef4444}.vg-backdrop-blur{position:fixed;top:0;left:0;width:100%;height:100%;-webkit-backdrop-filter:blur(8px) grayscale(.2);backdrop-filter:blur(8px) grayscale(.2);background:#0000001a;pointer-events:none;transition:opacity .3s ease,clip-path .2s cubic-bezier(.19,1,.22,1)}.vg-selection-pulse{position:fixed;pointer-events:none;border:2px solid var(--vg-primary);border-radius:8px;box-shadow:0 0 0 0 var(--vg-primary-glow);animation:vg-pulse 2s infinite;transition:all .2s cubic-bezier(.19,1,.22,1)}@keyframes vg-pulse{0%{box-shadow:0 0 0 0 var(--vg-primary-glow)}70%{box-shadow:0 0 0 15px #6366f100}to{box-shadow:0 0 #6366f100}}.vg-selection-label{position:absolute;top:-40px;left:0;background:var(--vg-primary-gradient);color:#fff;padding:8px 16px;border-radius:20px;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:0 4px 12px #6366f14d;display:flex;align-items:center;gap:8px}.vg-pin-container{transition:transform .2s ease}.vg-pin-container:hover{transform:scale(1.1)}.vg-formal-pin{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#f97316,#ea580c);border:3px solid white;box-shadow:0 4px 12px #ea580c66;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s ease}.vg-formal-pin.ready{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 4px 12px #10b98166}.vg-formal-pin.mixed{background:linear-gradient(135deg,#10b981,#059669);border:3px solid #f97316;box-shadow:0 4px 15px #f9731666}.vg-formal-pin.modal-variant{background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 4px 12px #f59e0b66;border-style:dashed}.vg-pin-tooltip{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%);padding:16px;border-radius:16px;background:#ffffffe6;backdrop-filter:blur(12px) saturate(160%);-webkit-backdrop-filter:blur(12px) saturate(160%);color:#1e293b;width:320px;font-size:13px;box-shadow:0 10px 40px #00000026;opacity:0;visibility:hidden;pointer-events:none;transition:all .3s cubic-bezier(.19,1,.22,1);border:1px solid rgba(255,255,255,.5);z-index:1000;overflow:hidden}.vg-tooltip-scroll{scrollbar-width:thin;scrollbar-color:rgba(99,102,241,.2) transparent;overflow-y:auto;overflow-x:hidden;padding-right:12px;scroll-behavior:smooth}.vg-tooltip-scroll::-webkit-scrollbar{width:4px}.vg-tooltip-scroll::-webkit-scrollbar-track{background:transparent}.vg-tooltip-scroll::-webkit-scrollbar-thumb{background:#6366f14d;border-radius:10px}.vg-tooltip-scroll::-webkit-scrollbar-thumb:hover{background:#6366f180}.vg-text-wrap{word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;white-space:pre-wrap}.vg-line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;max-height:2.8em}.vg-pin-badge{position:absolute;top:-8px;right:-8px;background:#f43f5e;color:#fff;font-size:10px;font-weight:800;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid white;box-shadow:0 4px 12px #f43f5e66;z-index:2}.vg-pin-tooltip.vg-top{top:auto;bottom:calc(100% + 12px)}.vg-pin-container:hover .vg-pin-tooltip{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%) translateY(-5px)}.vg-action-bar{display:flex;gap:12px;padding:0;background:transparent;border:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.vg-custom-scrollbar::-webkit-scrollbar{width:6px}.vg-custom-scrollbar::-webkit-scrollbar-track{background:transparent}.vg-custom-scrollbar::-webkit-scrollbar-thumb{background:#6366f166;border-radius:10px;transition:all .2s ease}.vg-custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#6366f1b3}.vg-spinner{border:3px solid rgba(99,102,241,.1);border-top:3px solid var(--vg-primary);border-radius:50%;width:32px;height:32px;animation:vg-spin .8s linear infinite}@keyframes vg-spin{to{transform:rotate(360deg)}}.vg-animate-spin{animation:vg-spin .8s linear infinite}.vg-cursor-pointer,.vg-cursor-pointer *{cursor:pointer!important}.vg-url-tag{position:relative;cursor:help;transition:all .2s ease}.vg-url-tag:hover{background:#f1f5f9!important;border-color:var(--vg-primary)!important}.vg-url-tooltip{position:fixed;left:0;top:0;background:#0f172a;color:#fff;padding:8px 14px;border-radius:10px;font-size:11px;font-weight:500;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;box-shadow:0 10px 25px -5px #0006;z-index:2147483647;border:1px solid rgba(255,255,255,.1)}.vg-url-tooltip.visible{opacity:1}.vg-url-tooltip:after{content:"";position:absolute;left:50%;transform:translate(-50%);border-width:6px;border-style:solid}.vg-url-tooltip.vg-top:after{top:100%;border-color:#0f172a transparent transparent transparent}.vg-url-tooltip.vg-bottom:after{bottom:100%;border-color:transparent transparent #0f172a transparent}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import $t, { useRef as ce, useState as b, useEffect as X, forwardRef as yt, createElement as We, createContext as Mt, useContext as Nt, useMemo as It, useCallback as ke } from "react";
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
4
  var Re = { exports: {} }, xe = {};
5
5
  var et;
@@ -28,230 +28,230 @@ var ye = {};
28
28
  var tt;
29
29
  function Dt() {
30
30
  return tt || (tt = 1, process.env.NODE_ENV !== "production" && (function() {
31
- function e(l) {
32
- if (l == null) return null;
33
- if (typeof l == "function")
34
- return l.$$typeof === le ? null : l.displayName || l.name || null;
35
- if (typeof l == "string") return l;
36
- switch (l) {
37
- case te:
31
+ function e(d) {
32
+ if (d == null) return null;
33
+ if (typeof d == "function")
34
+ return d.$$typeof === ue ? null : d.displayName || d.name || null;
35
+ if (typeof d == "string") return d;
36
+ switch (d) {
37
+ case ne:
38
38
  return "Fragment";
39
39
  case be:
40
40
  return "Profiler";
41
41
  case ve:
42
42
  return "StrictMode";
43
- case Ae:
43
+ case Pe:
44
44
  return "Suspense";
45
- case I:
45
+ case L:
46
46
  return "SuspenseList";
47
47
  case Xe:
48
48
  return "Activity";
49
49
  }
50
- if (typeof l == "object")
51
- switch (typeof l.tag == "number" && console.error(
50
+ if (typeof d == "object")
51
+ switch (typeof d.tag == "number" && console.error(
52
52
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
53
- ), l.$$typeof) {
53
+ ), d.$$typeof) {
54
54
  case W:
55
55
  return "Portal";
56
- case q:
57
- return l.displayName || "Context";
56
+ case U:
57
+ return d.displayName || "Context";
58
58
  case M:
59
- return (l._context.displayName || "Context") + ".Consumer";
60
- case P:
61
- var g = l.render;
62
- return l = l.displayName, l || (l = g.displayName || g.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
59
+ return (d._context.displayName || "Context") + ".Consumer";
60
+ case T:
61
+ var x = d.render;
62
+ return d = d.displayName, d || (d = x.displayName || x.name || "", d = d !== "" ? "ForwardRef(" + d + ")" : "ForwardRef"), d;
63
63
  case z:
64
- return g = l.displayName || null, g !== null ? g : e(l.type) || "Memo";
64
+ return x = d.displayName || null, x !== null ? x : e(d.type) || "Memo";
65
65
  case Se:
66
- g = l._payload, l = l._init;
66
+ x = d._payload, d = d._init;
67
67
  try {
68
- return e(l(g));
68
+ return e(d(x));
69
69
  } catch {
70
70
  }
71
71
  }
72
72
  return null;
73
73
  }
74
- function t(l) {
75
- return "" + l;
74
+ function t(d) {
75
+ return "" + d;
76
76
  }
77
- function r(l) {
77
+ function r(d) {
78
78
  try {
79
- t(l);
80
- var g = !1;
79
+ t(d);
80
+ var x = !1;
81
81
  } catch {
82
- g = !0;
82
+ x = !0;
83
83
  }
84
- if (g) {
85
- g = console;
86
- var S = g.error, v = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
87
- return S.call(
88
- g,
84
+ if (x) {
85
+ x = console;
86
+ var v = x.error, b = typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object";
87
+ return v.call(
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
- v
91
- ), t(l);
90
+ b
91
+ ), t(d);
92
92
  }
93
93
  }
94
- function n(l) {
95
- if (l === te) return "<>";
96
- if (typeof l == "object" && l !== null && l.$$typeof === Se)
94
+ function n(d) {
95
+ if (d === ne) return "<>";
96
+ if (typeof d == "object" && d !== null && d.$$typeof === Se)
97
97
  return "<...>";
98
98
  try {
99
- var g = e(l);
100
- return g ? "<" + g + ">" : "<...>";
99
+ var x = e(d);
100
+ return x ? "<" + x + ">" : "<...>";
101
101
  } catch {
102
102
  return "<...>";
103
103
  }
104
104
  }
105
105
  function a() {
106
- var l = re.A;
107
- return l === null ? null : l.getOwner();
106
+ var d = ae.A;
107
+ return d === null ? null : d.getOwner();
108
108
  }
109
109
  function s() {
110
110
  return Error("react-stack-top-frame");
111
111
  }
112
- function c(l) {
113
- if (Ce.call(l, "key")) {
114
- var g = Object.getOwnPropertyDescriptor(l, "key").get;
115
- if (g && g.isReactWarning) return !1;
112
+ function c(d) {
113
+ if (Ce.call(d, "key")) {
114
+ var x = Object.getOwnPropertyDescriptor(d, "key").get;
115
+ if (x && x.isReactWarning) return !1;
116
116
  }
117
- return l.key !== void 0;
117
+ return d.key !== void 0;
118
118
  }
119
- function i(l, g) {
120
- function S() {
121
- ne || (ne = !0, console.error(
119
+ function i(d, x) {
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
- g
123
+ x
124
124
  ));
125
125
  }
126
- S.isReactWarning = !0, Object.defineProperty(l, "key", {
127
- get: S,
126
+ v.isReactWarning = !0, Object.defineProperty(d, "key", {
127
+ get: v,
128
128
  configurable: !0
129
129
  });
130
130
  }
131
131
  function u() {
132
- var l = e(this.type);
133
- return Z[l] || (Z[l] = !0, console.error(
132
+ var d = e(this.type);
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
- )), l = this.props.ref, l !== void 0 ? l : null;
135
+ )), d = this.props.ref, d !== void 0 ? d : null;
136
136
  }
137
- function p(l, g, S, v, ae, U) {
138
- var E = S.ref;
139
- return l = {
140
- $$typeof: N,
141
- type: l,
142
- key: g,
143
- props: S,
144
- _owner: v
145
- }, (E !== void 0 ? E : null) !== null ? Object.defineProperty(l, "ref", {
137
+ function p(d, x, v, b, se, B) {
138
+ var k = v.ref;
139
+ return d = {
140
+ $$typeof: I,
141
+ type: d,
142
+ key: x,
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
- }) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
148
+ }) : Object.defineProperty(d, "ref", { enumerable: !1, value: null }), d._store = {}, Object.defineProperty(d._store, "validated", {
149
149
  configurable: !1,
150
150
  enumerable: !1,
151
151
  writable: !0,
152
152
  value: 0
153
- }), Object.defineProperty(l, "_debugInfo", {
153
+ }), Object.defineProperty(d, "_debugInfo", {
154
154
  configurable: !1,
155
155
  enumerable: !1,
156
156
  writable: !0,
157
157
  value: null
158
- }), Object.defineProperty(l, "_debugStack", {
158
+ }), Object.defineProperty(d, "_debugStack", {
159
159
  configurable: !1,
160
160
  enumerable: !1,
161
161
  writable: !0,
162
- value: ae
163
- }), Object.defineProperty(l, "_debugTask", {
162
+ value: se
163
+ }), Object.defineProperty(d, "_debugTask", {
164
164
  configurable: !1,
165
165
  enumerable: !1,
166
166
  writable: !0,
167
- value: U
168
- }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
167
+ value: B
168
+ }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
169
169
  }
170
- function m(l, g, S, v, ae, U) {
171
- var E = g.children;
172
- if (E !== void 0)
173
- if (v)
174
- if (Ee(E)) {
175
- for (v = 0; v < E.length; v++)
176
- f(E[v]);
177
- Object.freeze && Object.freeze(E);
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(E);
183
- if (Ce.call(g, "key")) {
184
- E = e(l);
185
- var V = Object.keys(g).filter(function(Ge) {
182
+ else h(k);
183
+ if (Ce.call(x, "key")) {
184
+ k = e(d);
185
+ var V = Object.keys(x).filter(function(Ge) {
186
186
  return Ge !== "key";
187
187
  });
188
- v = 0 < V.length ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}", ue[E + v] || (V = 0 < V.length ? "{" + V.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
- v,
196
- E,
195
+ b,
196
+ k,
197
197
  V,
198
- E
199
- ), ue[E + v] = !0);
198
+ k
199
+ ), me[k + b] = !0);
200
200
  }
201
- if (E = null, S !== void 0 && (r(S), E = "" + S), c(g) && (r(g.key), E = "" + g.key), "key" in g) {
202
- S = {};
203
- for (var H in g)
204
- H !== "key" && (S[H] = g[H]);
205
- } else S = g;
206
- return E && i(
207
- S,
208
- typeof l == "function" ? l.displayName || l.name || "Unknown" : l
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
+ typeof d == "function" ? d.displayName || d.name || "Unknown" : d
209
209
  ), p(
210
- l,
211
- E,
212
- S,
210
+ d,
211
+ k,
212
+ v,
213
213
  a(),
214
- ae,
215
- U
214
+ se,
215
+ B
216
216
  );
217
217
  }
218
- function f(l) {
219
- j(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === Se && (l._payload.status === "fulfilled" ? j(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
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 j(l) {
222
- return typeof l == "object" && l !== null && l.$$typeof === N;
221
+ function O(d) {
222
+ return typeof d == "object" && d !== null && d.$$typeof === I;
223
223
  }
224
- var _ = $t, N = /* @__PURE__ */ Symbol.for("react.transitional.element"), W = /* @__PURE__ */ Symbol.for("react.portal"), te = /* @__PURE__ */ Symbol.for("react.fragment"), ve = /* @__PURE__ */ Symbol.for("react.strict_mode"), be = /* @__PURE__ */ Symbol.for("react.profiler"), M = /* @__PURE__ */ Symbol.for("react.consumer"), q = /* @__PURE__ */ Symbol.for("react.context"), P = /* @__PURE__ */ Symbol.for("react.forward_ref"), Ae = /* @__PURE__ */ Symbol.for("react.suspense"), I = /* @__PURE__ */ Symbol.for("react.suspense_list"), z = /* @__PURE__ */ Symbol.for("react.memo"), Se = /* @__PURE__ */ Symbol.for("react.lazy"), Xe = /* @__PURE__ */ Symbol.for("react.activity"), le = /* @__PURE__ */ Symbol.for("react.client.reference"), re = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ce = Object.prototype.hasOwnProperty, Ee = Array.isArray, D = console.createTask ? console.createTask : function() {
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
- _ = {
228
- react_stack_bottom_frame: function(l) {
229
- return l();
227
+ A = {
228
+ react_stack_bottom_frame: function(d) {
229
+ return d();
230
230
  }
231
231
  };
232
- var ne, Z = {}, de = _.react_stack_bottom_frame.bind(
233
- _,
232
+ var J, ee = {}, pe = A.react_stack_bottom_frame.bind(
233
+ A,
234
234
  s
235
- )(), F = D(n(s)), ue = {};
236
- ye.Fragment = te, ye.jsx = function(l, g, S) {
237
- var v = 1e4 > re.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
- l,
240
- g,
241
- S,
239
+ d,
240
+ x,
241
+ v,
242
242
  !1,
243
- v ? Error("react-stack-top-frame") : de,
244
- v ? D(n(l)) : F
243
+ b ? Error("react-stack-top-frame") : pe,
244
+ b ? N(n(d)) : D
245
245
  );
246
- }, ye.jsxs = function(l, g, S) {
247
- var v = 1e4 > re.recentlyCreatedOwnerStacks++;
246
+ }, ye.jsxs = function(d, x, v) {
247
+ var b = 1e4 > ae.recentlyCreatedOwnerStacks++;
248
248
  return m(
249
- l,
250
- g,
251
- S,
249
+ d,
250
+ x,
251
+ v,
252
252
  !0,
253
- v ? Error("react-stack-top-frame") : de,
254
- v ? D(n(l)) : F
253
+ b ? Error("react-stack-top-frame") : pe,
254
+ b ? N(n(d)) : D
255
255
  );
256
256
  };
257
257
  })()), ye;
@@ -262,8 +262,8 @@ function Ft() {
262
262
  }
263
263
  var o = Ft();
264
264
  const Ht = ({ children: e }) => {
265
- const t = ce(null), [r, n] = b(null);
266
- return X(() => {
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) => {
@@ -330,7 +330,7 @@ const Yt = yt(
330
330
  ]
331
331
  )
332
332
  );
333
- const T = (e, t) => {
333
+ const _ = (e, t) => {
334
334
  const r = yt(
335
335
  ({ className: n, ...a }, s) => We(Yt, {
336
336
  ref: s,
@@ -349,20 +349,20 @@ 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 = T("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
- ], ie = T("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
- ], at = T("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
- ], st = T("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 = T("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 = T("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
- ], ot = T("grip-vertical", ar);
389
- const sr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], or = T("loader-circle", sr);
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 = T("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 = T("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 = T("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 = T("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 = T("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
- ], it = T("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
- ], Le = T("x", xr), yr = {
442
+ ], Le = _("x", xr), yr = {
443
443
  en: {
444
444
  enterMode: "Enter Feedback Mode",
445
445
  exitMode: "Exit Mode",
@@ -542,19 +542,19 @@ const xr = [
542
542
  apiKey: r,
543
543
  baseUrl: n = "https://view-gate.vercel.app"
544
544
  }) => {
545
- const [a, s] = b(!1), [c, i] = b([]);
546
- X(() => {
545
+ const [a, s] = C(!1), [c, i] = C([]);
546
+ K(() => {
547
547
  s(vr());
548
548
  }, []);
549
549
  const u = () => {
550
550
  if (sessionStorage.removeItem(Ue), s(!1), typeof window < "u") {
551
- const f = new URL(window.location.href);
552
- f.searchParams.delete("viewgate"), window.history.replaceState({}, "", f.toString());
551
+ const h = new URL(window.location.href);
552
+ h.searchParams.delete("viewgate"), window.history.replaceState({}, "", h.toString());
553
553
  }
554
- }, p = (f, j) => {
555
- const _ = Date.now();
556
- i((N) => [...N, { id: _, message: f, type: j }]), setTimeout(() => {
557
- i((N) => N.filter((W) => W.id !== _));
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
560
  return /* @__PURE__ */ o.jsxs(vt.Provider, { "data-source-path": "/src/components/ViewGateProvider.tsx:252", value: {
@@ -569,13 +569,13 @@ const xr = [
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
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((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(ie, { "data-source-path": "/src/components/ViewGateProvider.tsx:270", size: 24, color: "#22c55e" }) : /* @__PURE__ */ o.jsx(Jt, { "data-source-path": "/src/components/ViewGateProvider.tsx:272", size: 24, color: "#ef4444" }),
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
  };
@@ -597,15 +597,15 @@ const Sr = /* @__PURE__ */ (() => {
597
597
  );
598
598
  return () => (e += 1, `u${t()}${e}`);
599
599
  })();
600
- function J(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 se = null;
606
+ let ie = null;
607
607
  function bt(e = {}) {
608
- return se || (e.includeStyleProperties ? (se = e.includeStyleProperties, se) : (se = J(window.getComputedStyle(document.documentElement)), se));
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);
@@ -686,10 +686,10 @@ function ct(e, t, r, n) {
686
686
  const i = document.createElement("style");
687
687
  i.appendChild(_r(c, r, a, n)), t.appendChild(i);
688
688
  }
689
- function Pr(e, t, r) {
689
+ function Ar(e, t, r) {
690
690
  ct(e, t, ":before", r), ct(e, t, ":after", r);
691
691
  }
692
- const lt = "application/font-woff", dt = "image/jpeg", Ar = {
692
+ const lt = "application/font-woff", dt = "image/jpeg", Pr = {
693
693
  woff: lt,
694
694
  woff2: lt,
695
695
  ttf: "application/font-truetype",
@@ -708,7 +708,7 @@ function Gr(e) {
708
708
  }
709
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];
@@ -788,7 +788,7 @@ async function Hr(e, t, r) {
788
788
  if (Et(t))
789
789
  return t;
790
790
  let s = [];
791
- return Fr(e) && e.assignedNodes ? s = J(e.assignedNodes()) : G(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = J(e.contentDocument.body.childNodes) : s = J(((a = e.shadowRoot) !== null && a !== void 0 ? a : e).childNodes), s.length === 0 || G(e, HTMLVideoElement) || await s.reduce((c, i) => c.then(() => _e(i, r)).then((u) => {
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
  }
@@ -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), Pr(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") : [];
@@ -879,7 +879,7 @@ async function jt(e, t, r) {
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 oe(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) {
@@ -889,7 +889,7 @@ async function oe(e, t, r) {
889
889
  return !1;
890
890
  }
891
891
  async function tn(e, t) {
892
- await oe("background", e, t) || await oe("background-image", e, t), await oe("mask", e, t) || await oe("-webkit-mask", e, t) || await oe("mask-image", e, t) || await oe("-webkit-mask-image", e, t);
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);
@@ -909,7 +909,7 @@ async function rn(e, t) {
909
909
  });
910
910
  }
911
911
  async function nn(e, t) {
912
- const n = J(e.childNodes).map((a) => Ot(a, t));
912
+ const n = Q(e.childNodes).map((a) => Ot(a, t));
913
913
  await Promise.all(n).then(() => e);
914
914
  }
915
915
  async function Ot(e, t) {
@@ -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
- J(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 = pt(u).then((m) => mt(m, t)).then((m) => ft(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 (j) {
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: j
981
+ rule: h,
982
+ error: O
983
983
  });
984
984
  }
985
985
  })).catch((m) => {
@@ -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
- J(a.cssRules || []).forEach((s) => {
1002
+ Q(a.cssRules || []).forEach((s) => {
1003
1003
  r.push(s);
1004
1004
  });
1005
1005
  } catch (s) {
@@ -1013,7 +1013,7 @@ function on(e) {
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 = J(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
1019
  function Vt(e) {
@@ -1056,7 +1056,7 @@ async function mn(e, t = {}) {
1056
1056
  async function fn(e, t = {}) {
1057
1057
  return (await mn(e, t)).toDataURL();
1058
1058
  }
1059
- const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 15, ee = "data-vg-pin-id", yn = () => {
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 Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1075
1075
  return "";
1076
1076
  }
1077
1077
  }, gt = ({ url: e, className: t, style: r, tooltipStyle: n, onHover: a }) => {
1078
- const s = ce(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({
@@ -1177,13 +1177,13 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1177
1177
  const m = c.getContext("2d");
1178
1178
  if (m) {
1179
1179
  m.imageSmoothingEnabled = !0, m.imageSmoothingQuality = "high";
1180
- const f = (t.left - r) * n, j = (t.top - r) * n, _ = u * n, N = p * n;
1180
+ const h = (t.left - r) * n, O = (t.top - r) * n, A = u * n, I = p * n;
1181
1181
  m.drawImage(
1182
1182
  s,
1183
- f,
1184
- j,
1185
- _,
1186
- N,
1183
+ h,
1184
+ O,
1185
+ A,
1186
+ I,
1187
1187
  0,
1188
1188
  0,
1189
1189
  c.width,
@@ -1229,7 +1229,7 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1229
1229
  if (n && ["listbox", "menu", "combobox", "tooltip", "option"].includes(n)) return !1;
1230
1230
  const s = 120;
1231
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"));
1232
- }, Q = (e) => {
1232
+ }, re = (e) => {
1233
1233
  if (!e.isConnected) return !1;
1234
1234
  const t = window.getComputedStyle(e);
1235
1235
  if (t.display === "none" || t.visibility === "hidden" || t.opacity === "0" || e.offsetWidth === 0 || e.offsetHeight === 0) return !1;
@@ -1286,18 +1286,18 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1286
1286
  return !(s && a && s !== a);
1287
1287
  }, Rn = (e, t) => {
1288
1288
  if (t) {
1289
- const c = Array.from(document.querySelectorAll(`[${ee}="${t}"]`));
1289
+ const c = Array.from(document.querySelectorAll(`[${H}="${t}"]`));
1290
1290
  if (c.length > 0) {
1291
1291
  const i = c.filter((u) => Oe(u, e));
1292
1292
  if (i.length === 0)
1293
- c.forEach((u) => u.removeAttribute(ee));
1293
+ c.forEach((u) => u.removeAttribute(H));
1294
1294
  else {
1295
1295
  const u = i.find((m) => {
1296
- const { vgPath: f } = we(m);
1297
- return f === e.vgPath || e.fingerprint?.vgPath === f;
1298
- }), p = u && Q(u) ? u : i.find((m) => !(!Q(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')));
1299
1299
  return p ? (c.forEach((m) => {
1300
- m !== p && m.removeAttribute(ee);
1300
+ m !== p && m.removeAttribute(H);
1301
1301
  }), p) : null;
1302
1302
  }
1303
1303
  }
@@ -1307,7 +1307,7 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1307
1307
  const { vgPath: i } = we(c);
1308
1308
  return i === e.vgPath || e.fingerprint?.vgPath === i;
1309
1309
  }) || n[0] || null;
1310
- if (a && Q(a))
1310
+ if (a && re(a))
1311
1311
  if (e.metadata?.isModal && !a.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content'))
1312
1312
  a = null;
1313
1313
  else
@@ -1315,13 +1315,13 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1315
1315
  if (e.fallbackSelectors)
1316
1316
  for (const c of e.fallbackSelectors) {
1317
1317
  const i = Tt(c);
1318
- if (i && Oe(i, e) && Q(i)) {
1318
+ if (i && Oe(i, e) && re(i)) {
1319
1319
  if (e.metadata?.isModal && !i.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')) continue;
1320
1320
  return i;
1321
1321
  }
1322
1322
  }
1323
1323
  const s = kn(e);
1324
- return s && Q(s) ? e.metadata?.isModal && !s.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content') ? null : s : null;
1324
+ return s && re(s) ? e.metadata?.isModal && !s.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content') ? null : s : null;
1325
1325
  }, He = (e) => ({
1326
1326
  tag: e.tagName.toLowerCase(),
1327
1327
  text: (e.innerText || e.getAttribute("placeholder") || "").slice(0, 50).trim(),
@@ -1352,8 +1352,8 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1352
1352
  }
1353
1353
  const n = Cn(e), { selector: a, fallbacks: s, vgPath: c } = we(e), i = {};
1354
1354
  ["placeholder", "aria-label", "name", "type", "alt", "title", "value", "role"].forEach((m) => {
1355
- const f = e.getAttribute(m);
1356
- f && (i[m] = f);
1355
+ const h = e.getAttribute(m);
1356
+ h && (i[m] = h);
1357
1357
  });
1358
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)}`;
1359
1359
  return {
@@ -1384,214 +1384,223 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1384
1384
  }
1385
1385
  };
1386
1386
  }, Vn = () => {
1387
- const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: c } = wr(), [i, u] = b(!1), [p, m] = b(null), [f, j] = b(null), [_, N] = b(""), [W, te] = b(!1), [ve, be] = b(!1), [M, q] = b(!1), [P, Ae] = b([]), [I, z] = b(null), [Se, Xe] = b(!1), [le, re] = b(!1), [Ce, Ee] = b({}), [D, ne] = b(null), [Z, de] = b(!1), [F, ue] = b(null), [l, g] = b([]), S = It(() => {
1388
- if (!D) return P;
1389
- const d = l.find((h) => h.annotations.some((x) => x._id === D));
1390
- return d ? d.annotations : P.filter((h) => h._id === D);
1391
- }, [D, P, l]), [v, ae] = b(() => {
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(() => {
1392
1392
  if (typeof window > "u") return { top: 24, right: 24 };
1393
- const d = localStorage.getItem("vg-exit-pos");
1394
- return d ? JSON.parse(d) : { top: 24, right: 24 };
1395
- }), [U, E] = b(!1), V = ce(null), [H, Ge] = b(() => {
1393
+ const l = localStorage.getItem("vg-exit-pos");
1394
+ return l ? JSON.parse(l) : { top: 24, right: 24 };
1395
+ }), [B, k] = C(!1), V = de(null), [F, Ge] = C(() => {
1396
1396
  if (typeof window > "u") return { bottom: 30, right: 30 };
1397
- const d = localStorage.getItem("vg-bar-pos");
1398
- return d ? JSON.parse(d) : { bottom: 30, right: 30 };
1399
- }), [pe, Je] = b(!1), B = ce(null), Pt = (d) => {
1400
- d.preventDefault(), d.stopPropagation();
1401
- const h = d.currentTarget.parentElement?.getBoundingClientRect();
1402
- h && (E(!0), V.current = {
1403
- x: d.clientX,
1404
- y: d.clientY,
1405
- top: v.top,
1406
- right: v.right,
1407
- width: h.width,
1408
- height: h.height
1397
+ const l = localStorage.getItem("vg-bar-pos");
1398
+ return l ? JSON.parse(l) : { bottom: 30, right: 30 };
1399
+ }), [fe, Je] = C(!1), q = de(null), At = (l) => {
1400
+ l.preventDefault(), l.stopPropagation();
1401
+ const g = l.currentTarget.parentElement?.getBoundingClientRect();
1402
+ g && (k(!0), V.current = {
1403
+ x: l.clientX,
1404
+ y: l.clientY,
1405
+ top: b.top,
1406
+ right: b.right,
1407
+ width: g.width,
1408
+ height: g.height
1409
1409
  });
1410
- }, At = (d) => {
1411
- d.preventDefault(), d.stopPropagation();
1412
- const h = d.currentTarget.parentElement?.getBoundingClientRect();
1413
- h && (Je(!0), B.current = {
1414
- x: d.clientX,
1415
- y: d.clientY,
1416
- bottom: H.bottom,
1417
- right: H.right,
1418
- width: h.width,
1419
- height: h.height
1410
+ }, Pt = (l) => {
1411
+ l.preventDefault(), l.stopPropagation();
1412
+ const g = l.currentTarget.parentElement?.getBoundingClientRect();
1413
+ g && (Je(!0), q.current = {
1414
+ x: l.clientX,
1415
+ y: l.clientY,
1416
+ bottom: F.bottom,
1417
+ right: F.right,
1418
+ width: g.width,
1419
+ height: g.height
1420
1420
  });
1421
1421
  };
1422
- X(() => {
1423
- if (!U && !pe) return;
1424
- const d = (x) => {
1425
- if (U && V.current) {
1426
- const O = x.clientX - V.current.x, k = x.clientY - V.current.y;
1427
- let w = V.current.top + k, y = V.current.right - O;
1428
- const C = 10;
1429
- w = Math.max(C, Math.min(window.innerHeight - V.current.height - C, w)), y = Math.max(C, Math.min(window.innerWidth - V.current.width - C, y)), ae({ top: w, right: y });
1422
+ K(() => {
1423
+ if (!B && !fe) return;
1424
+ const l = (y) => {
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 });
1430
1430
  }
1431
- if (pe && B.current) {
1432
- const O = x.clientX - B.current.x, k = x.clientY - B.current.y;
1433
- let w = B.current.bottom - k, y = B.current.right - O;
1434
- const C = 10;
1435
- w = Math.max(C, Math.min(window.innerHeight - B.current.height - C, w)), y = Math.max(C, Math.min(window.innerWidth - B.current.width - C, y)), Ge({ bottom: w, right: y });
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 });
1436
1436
  }
1437
- }, h = () => {
1438
- U && (E(!1), localStorage.setItem("vg-exit-pos", JSON.stringify(v)), V.current = null), pe && (Je(!1), localStorage.setItem("vg-bar-pos", JSON.stringify(H)), B.current = null);
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);
1439
1439
  };
1440
- return window.addEventListener("mousemove", d), window.addEventListener("mouseup", h), () => {
1441
- window.removeEventListener("mousemove", d), window.removeEventListener("mouseup", h);
1440
+ return window.addEventListener("mousemove", l), window.addEventListener("mouseup", g), () => {
1441
+ window.removeEventListener("mousemove", l), window.removeEventListener("mouseup", g);
1442
1442
  };
1443
- }, [U, pe, v, H]);
1444
- const [Ze, $e] = b(null), [Ke, Qe] = b(""), [Tn, _n] = b({}), me = ce(null), fe = ce(null), he = ke(() => {
1445
- fe.current || (fe.current = requestAnimationFrame(() => {
1446
- const d = /* @__PURE__ */ new Map(), x = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((w) => En(w) && Q(w)), O = !!x;
1447
- P.forEach((w) => {
1448
- if (!w.reference) return;
1449
- const y = Rn(w.reference, w._id);
1450
- if (!y || !Q(y)) return;
1451
- const C = !!w.reference.metadata?.isModal;
1452
- let A = !1;
1453
- if (O ? A = x.contains(y) : A = !C, !A) return;
1454
- const Y = y.getAttribute(ee);
1455
- Y !== w._id && (document.querySelectorAll(`[${ee}="${w._id}"]`).forEach((L) => {
1456
- L.removeAttribute(ee);
1457
- }), Y || y.setAttribute(ee, w._id)), d.has(y) || d.set(y, []), d.get(y).push(w);
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);
1458
1450
  });
1459
- const k = [];
1460
- d.forEach((w, y) => {
1461
- const C = y.getBoundingClientRect(), A = C.left + C.width / 2, Y = C.top + C.height / 2;
1462
- if (A >= 0 && A <= window.innerWidth && Y >= 0 && Y <= window.innerHeight) {
1463
- const L = document.elementFromPoint(A, Y);
1464
- if (L && !y.contains(L) && !me.current?.contains(L))
1451
+ 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);
1463
+ });
1464
+ const j = [];
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))
1465
1470
  return;
1466
1471
  }
1467
- k.push({
1468
- id: w[0]._id,
1472
+ j.push({
1473
+ id: f[0]._id,
1469
1474
  // Group identified by its primary annotation
1470
- element: y,
1471
- rect: C,
1472
- annotations: w.sort((L, R) => new Date(R.timestamp || R.createdAt).getTime() - new Date(L.timestamp || L.createdAt).getTime()),
1473
- isModal: !!w[0].reference?.metadata?.isModal
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
1474
1479
  });
1475
- }), g(k), fe.current = null;
1480
+ }), x(j), ge.current = null;
1476
1481
  }));
1477
- }, [P]), K = ke(async () => {
1482
+ }, [T]), te = ke(async () => {
1478
1483
  if (n) {
1479
- re(!0);
1484
+ ae(!0);
1480
1485
  try {
1481
- const d = await fetch(`${a}/api/annotations`, {
1486
+ const l = await fetch(`${a}/api/annotations`, {
1482
1487
  headers: { "x-api-key": n }
1483
1488
  });
1484
- if (d.ok) {
1485
- const O = ((await d.json()).data || []).reduce((k, w) => k.find((C) => C._id === w._id) ? k : k.concat([w]), []);
1486
- Ae(O);
1489
+ if (l.ok) {
1490
+ const E = ((await l.json()).data || []).reduce((R, j) => R.find((w) => w._id === j._id) ? R : R.concat([j]), []);
1491
+ Pe(E);
1487
1492
  }
1488
- } catch (d) {
1489
- console.error("Failed to fetch annotations", d);
1493
+ } catch (l) {
1494
+ console.error("Failed to fetch annotations", l);
1490
1495
  } finally {
1491
- re(!1);
1496
+ ae(!1);
1492
1497
  }
1493
1498
  }
1494
1499
  }, [n, a]);
1495
- X(() => {
1496
- M && P.length === 0 && !le && q(!1);
1497
- }, [M, P.length, le]), X(() => {
1498
- if (!i && P.length > 0) {
1499
- he();
1500
- const d = new MutationObserver(() => he()), h = new ResizeObserver(() => he()), x = () => he();
1501
- return d.observe(document.documentElement, {
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();
1510
+ return l.observe(document.documentElement, {
1502
1511
  childList: !0,
1503
1512
  subtree: !0,
1504
1513
  attributes: !0
1505
- }), h.observe(document.documentElement), window.addEventListener("scroll", x, !0), () => {
1506
- d.disconnect(), h.disconnect(), window.removeEventListener("scroll", x, !0), fe.current && cancelAnimationFrame(fe.current);
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);
1507
1516
  };
1508
1517
  }
1509
- }, [i, P.length, he]), X(() => {
1510
- K();
1511
- }, [K]), X(() => {
1512
- me.current = document.getElementById("viewgate-shadow-host");
1518
+ }, [i, T.length, oe]), K(() => {
1519
+ te();
1520
+ }, [te]), K(() => {
1521
+ he.current = document.getElementById("viewgate-shadow-host");
1513
1522
  }, []);
1514
- const Me = ke((d) => {
1515
- if (!i || f) return;
1516
- const h = xt(d.clientX, d.clientY);
1517
- if (!h || me.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")) {
1518
1527
  m(null);
1519
1528
  return;
1520
1529
  }
1521
- const x = h.getBoundingClientRect();
1530
+ const y = g.getBoundingClientRect();
1522
1531
  m({
1523
- tag: h.tagName.toLowerCase(),
1524
- source: h.getAttribute("data-source-path") || "unknown:0",
1525
- rect: x,
1526
- element: h,
1527
- previewText: (h.innerText || "").slice(0, 100) || (h.getAttribute("placeholder") || "").slice(0, 100) || h.tagName.toLowerCase(),
1532
+ tag: g.tagName.toLowerCase(),
1533
+ source: g.getAttribute("data-source-path") || "unknown:0",
1534
+ rect: y,
1535
+ element: g,
1536
+ previewText: (g.innerText || "").slice(0, 100) || (g.getAttribute("placeholder") || "").slice(0, 100) || g.tagName.toLowerCase(),
1528
1537
  semanticReference: {
1529
- ...On(h),
1538
+ ...On(g),
1530
1539
  normalizedOffset: {
1531
- x: (d.clientX - x.left) / x.width,
1532
- y: (d.clientY - x.top) / x.height
1540
+ x: (l.clientX - y.left) / y.width,
1541
+ y: (l.clientY - y.top) / y.height
1533
1542
  }
1534
1543
  }
1535
1544
  });
1536
- }, [i, f]), Ne = ke(async (d) => {
1537
- if (!i || f) return;
1538
- const h = xt(d.clientX, d.clientY);
1539
- if (!(!h || me.current?.contains(h) || h.closest(".vg-no-capture")) && p) {
1540
- d.preventDefault(), d.stopPropagation(), be(!0);
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);
1541
1550
  try {
1542
- const k = await fn(document.body, {
1551
+ const R = await fn(document.body, {
1543
1552
  pixelRatio: 2,
1544
1553
  cacheBust: !0,
1545
1554
  width: window.innerWidth,
1546
1555
  height: window.innerHeight,
1547
1556
  backgroundColor: "#ffffff",
1548
- filter: (C) => {
1549
- const A = C;
1550
- return !(me.current?.contains(A) || A.id === "viewgate-ui" || A.classList?.contains("vg-no-capture"));
1557
+ filter: (w) => {
1558
+ const P = w;
1559
+ return !(he.current?.contains(P) || P.id === "viewgate-ui" || P.classList?.contains("vg-no-capture"));
1551
1560
  }
1552
- }), w = await bn(k, p.rect, 32, 2), y = {
1561
+ }), j = await bn(R, p.rect, 32, 2), f = {
1553
1562
  ...p.semanticReference,
1554
1563
  metadata: {
1555
1564
  ...p.semanticReference.metadata,
1556
- elementScreenshot: w
1565
+ elementScreenshot: j
1557
1566
  }
1558
1567
  };
1559
- j({
1568
+ O({
1560
1569
  ...p,
1561
- visualPreview: w,
1562
- semanticReference: y
1570
+ visualPreview: j,
1571
+ semanticReference: f
1563
1572
  });
1564
- } catch (x) {
1565
- console.error("Failed to capture high-fidelity preview:", x), j(p);
1573
+ } catch (y) {
1574
+ console.error("Failed to capture high-fidelity preview:", y), O(p);
1566
1575
  } finally {
1567
1576
  be(!1), m(null);
1568
1577
  }
1569
1578
  }
1570
- }, [i, p, f]);
1571
- X(() => {
1572
- const d = (h) => {
1573
- if (h.key === "Escape") {
1574
- f ? j(null) : M ? q(!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);
1575
1584
  return;
1576
1585
  }
1577
- const O = (() => {
1578
- let y = document.activeElement;
1579
- for (; y && y.shadowRoot && y.shadowRoot.activeElement; )
1580
- y = y.shadowRoot.activeElement;
1581
- return y;
1586
+ const E = (() => {
1587
+ let f = document.activeElement;
1588
+ for (; f && f.shadowRoot && f.shadowRoot.activeElement; )
1589
+ f = f.shadowRoot.activeElement;
1590
+ return f;
1582
1591
  })();
1583
- if (["input", "textarea"].includes((O?.tagName || "").toLowerCase()) || O?.isContentEditable) return;
1584
- const w = h.key.toLowerCase();
1585
- w === "c" && !f && !M && u((y) => !y), w === "v" && !f && (P.length > 0 || M) && (q((y) => !y), M || u(!1));
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));
1586
1595
  };
1587
- return i && !f ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", d), window.addEventListener("mousemove", Me, !0), window.addEventListener("click", Ne, !0), () => {
1588
- document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", d), window.removeEventListener("mousemove", Me, !0), window.removeEventListener("click", Ne, !0);
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);
1589
1598
  };
1590
- }, [i, f, M, P, Me, Ne]);
1599
+ }, [i, h, M, T, Me, Ne]);
1591
1600
  const Gt = async () => {
1592
- if (!f || !_.trim()) return;
1593
- te(!0);
1594
- const { semanticReference: d } = f, [h, x] = (d.source || "").split(":"), O = x || "0";
1601
+ if (!h || !A.trim()) return;
1602
+ ne(!0);
1603
+ const { semanticReference: l } = h, [g, y] = (l.source || "").split(":"), E = y || "0";
1595
1604
  try {
1596
1605
  if (!(await fetch(`${a}/api/annotations`, {
1597
1606
  method: "POST",
@@ -1600,13 +1609,13 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1600
1609
  "x-api-key": n
1601
1610
  },
1602
1611
  body: JSON.stringify({
1603
- filePath: h,
1604
- line: parseInt(O),
1612
+ filePath: g,
1613
+ line: parseInt(E),
1605
1614
  url: window.location.href,
1606
- message: _,
1607
- componentName: d.componentPath || f.tag,
1615
+ message: A,
1616
+ componentName: l.componentPath || h.tag,
1608
1617
  reference: {
1609
- ...d,
1618
+ ...l,
1610
1619
  viewport: {
1611
1620
  width: window.innerWidth,
1612
1621
  height: window.innerHeight
@@ -1616,32 +1625,32 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1616
1625
  }
1617
1626
  })
1618
1627
  })).ok) throw new Error("Backend failed");
1619
- e(r.success, "success"), j(null), N(""), u(!1), K();
1620
- } catch (k) {
1621
- console.error(k), 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");
1622
1631
  } finally {
1623
- te(!1);
1632
+ ne(!1);
1624
1633
  }
1625
1634
  };
1626
- return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1260", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1261", className: "vg-no-capture", children: [
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: [
1627
1636
  !c && /* @__PURE__ */ o.jsxs(
1628
1637
  "div",
1629
1638
  {
1630
1639
  style: {
1631
1640
  position: "fixed",
1632
- top: `${v.top}px`,
1633
- right: `${v.right}px`,
1641
+ top: `${b.top}px`,
1642
+ right: `${b.right}px`,
1634
1643
  zIndex: De + 10,
1635
1644
  display: "flex",
1636
1645
  alignItems: "center",
1637
1646
  gap: "8px",
1638
- transition: U ? "none" : "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
1647
+ transition: B ? "none" : "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
1639
1648
  },
1640
1649
  children: [
1641
1650
  /* @__PURE__ */ o.jsx(
1642
1651
  "div",
1643
1652
  {
1644
- onMouseDown: Pt,
1653
+ onMouseDown: At,
1645
1654
  style: {
1646
1655
  width: "20px",
1647
1656
  height: "32px",
@@ -1659,20 +1668,20 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1659
1668
  border: "1px solid rgba(0,0,0,0.1)",
1660
1669
  boxShadow: "0 2px 8px rgba(0,0,0,0.05)"
1661
1670
  },
1662
- onMouseEnter: (d) => {
1663
- d.currentTarget.style.backgroundColor = "white", d.currentTarget.style.color = "#000000";
1671
+ onMouseEnter: (l) => {
1672
+ l.currentTarget.style.backgroundColor = "white", l.currentTarget.style.color = "#000000";
1664
1673
  },
1665
- onMouseLeave: (d) => {
1666
- d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", d.currentTarget.style.color = "#1e293b";
1674
+ onMouseLeave: (l) => {
1675
+ l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", l.currentTarget.style.color = "#1e293b";
1667
1676
  },
1668
- children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1305", size: 14 })
1677
+ children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1320", size: 14 })
1669
1678
  }
1670
1679
  ),
1671
1680
  /* @__PURE__ */ o.jsx(
1672
1681
  "button",
1673
1682
  {
1674
- onClick: (d) => {
1675
- d.stopPropagation(), z({
1683
+ onClick: (l) => {
1684
+ l.stopPropagation(), z({
1676
1685
  title: r.exitConfirmTitle || "Close ViewGate?",
1677
1686
  message: r.exitConfirmMessage || "Are you sure you want to close ViewGate?",
1678
1687
  type: "danger",
@@ -1695,13 +1704,13 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1695
1704
  color: "#64748b",
1696
1705
  transition: "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
1697
1706
  },
1698
- onMouseEnter: (d) => {
1699
- d.currentTarget.style.transform = "scale(1.1) rotate(90deg)", d.currentTarget.style.color = "#ef4444", d.currentTarget.style.backgroundColor = "white";
1707
+ onMouseEnter: (l) => {
1708
+ l.currentTarget.style.transform = "scale(1.1) rotate(90deg)", l.currentTarget.style.color = "#ef4444", l.currentTarget.style.backgroundColor = "white";
1700
1709
  },
1701
- onMouseLeave: (d) => {
1702
- d.currentTarget.style.transform = "scale(1) rotate(0deg)", d.currentTarget.style.color = "#64748b", d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
1710
+ onMouseLeave: (l) => {
1711
+ l.currentTarget.style.transform = "scale(1) rotate(0deg)", l.currentTarget.style.color = "#64748b", l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
1703
1712
  },
1704
- children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1345", size: 20, strokeWidth: 2.5 })
1713
+ children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1360", size: 20, strokeWidth: 2.5 })
1705
1714
  }
1706
1715
  )
1707
1716
  ]
@@ -1710,23 +1719,23 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1710
1719
  /* @__PURE__ */ o.jsxs(
1711
1720
  "div",
1712
1721
  {
1713
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1351",
1722
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1366",
1714
1723
  style: {
1715
1724
  position: "fixed",
1716
- bottom: `${H.bottom}px`,
1717
- right: `${H.right}px`,
1725
+ bottom: `${F.bottom}px`,
1726
+ right: `${F.right}px`,
1718
1727
  zIndex: De,
1719
1728
  display: "flex",
1720
1729
  alignItems: "center",
1721
1730
  gap: "8px",
1722
- transition: pe ? "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)"
1723
1732
  },
1724
1733
  id: "viewgate-ui",
1725
1734
  children: [
1726
1735
  /* @__PURE__ */ o.jsx(
1727
1736
  "div",
1728
1737
  {
1729
- onMouseDown: At,
1738
+ onMouseDown: Pt,
1730
1739
  style: {
1731
1740
  width: "24px",
1732
1741
  height: "40px",
@@ -1744,17 +1753,17 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1744
1753
  border: "1px solid rgba(0,0,0,0.1)",
1745
1754
  boxShadow: "0 2px 8px rgba(0,0,0,0.05)"
1746
1755
  },
1747
- onMouseEnter: (d) => {
1748
- d.currentTarget.style.backgroundColor = "white", d.currentTarget.style.color = "#000000";
1756
+ onMouseEnter: (l) => {
1757
+ l.currentTarget.style.backgroundColor = "white", l.currentTarget.style.color = "#000000";
1749
1758
  },
1750
- onMouseLeave: (d) => {
1751
- d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", d.currentTarget.style.color = "#1e293b";
1759
+ onMouseLeave: (l) => {
1760
+ l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", l.currentTarget.style.color = "#1e293b";
1752
1761
  },
1753
1762
  className: "vg-animate-slide-up",
1754
- children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1394", size: 16 })
1763
+ children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1409", size: 16 })
1755
1764
  }
1756
1765
  ),
1757
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1397", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
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: [
1758
1767
  /* @__PURE__ */ o.jsx(
1759
1768
  "button",
1760
1769
  {
@@ -1764,23 +1773,23 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1764
1773
  padding: "12px 24px",
1765
1774
  background: i ? "#ef4444" : void 0
1766
1775
  },
1767
- children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1406", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1768
- i ? /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1407", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1407", size: 20, className: "vg-animate-pop" }),
1769
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1408", children: i ? r.exitMode : r.enterMode })
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 })
1770
1779
  ] })
1771
1780
  }
1772
1781
  ),
1773
- P.length > 0 && /* @__PURE__ */ o.jsxs(
1782
+ T.length > 0 && /* @__PURE__ */ o.jsxs(
1774
1783
  "button",
1775
1784
  {
1776
1785
  onClick: () => {
1777
- q(!M), u(!1), j(null);
1786
+ U(!M), u(!1), O(null);
1778
1787
  },
1779
1788
  className: "vg-button-ghost vg-animate-pop",
1780
1789
  style: { animationDelay: "0.1s" },
1781
1790
  children: [
1782
- /* @__PURE__ */ o.jsx(tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1421", size: 20 }),
1783
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1422", children: r.viewComments })
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 })
1784
1793
  ]
1785
1794
  }
1786
1795
  )
@@ -1788,7 +1797,7 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1788
1797
  ]
1789
1798
  }
1790
1799
  ),
1791
- ve && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1430", style: {
1800
+ ve && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1445", style: {
1792
1801
  position: "fixed",
1793
1802
  top: 0,
1794
1803
  left: 0,
@@ -1801,14 +1810,14 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1801
1810
  justifyContent: "center",
1802
1811
  zIndex: De + 1,
1803
1812
  cursor: "wait"
1804
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1436", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1805
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1437", className: "vg-spinner" }),
1806
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1438", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
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..." })
1807
1816
  ] }) }),
1808
- i && !f && /* @__PURE__ */ o.jsx(
1817
+ i && !h && /* @__PURE__ */ o.jsx(
1809
1818
  "div",
1810
1819
  {
1811
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1445",
1820
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1460",
1812
1821
  className: "vg-backdrop-blur",
1813
1822
  style: {
1814
1823
  opacity: 1,
@@ -1824,10 +1833,10 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1824
1833
  }
1825
1834
  }
1826
1835
  ),
1827
- i && p && !f && !ve && /* @__PURE__ */ o.jsx(
1836
+ i && p && !h && !ve && /* @__PURE__ */ o.jsx(
1828
1837
  "div",
1829
1838
  {
1830
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1464",
1839
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1479",
1831
1840
  className: "vg-selection-pulse",
1832
1841
  style: {
1833
1842
  top: p.rect.top - 4,
@@ -1839,17 +1848,17 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1839
1848
  children: /* @__PURE__ */ o.jsxs(
1840
1849
  "div",
1841
1850
  {
1842
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1474",
1851
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1489",
1843
1852
  className: "vg-selection-label",
1844
1853
  style: {
1845
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" },
1846
1855
  ...p.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
1847
1856
  },
1848
1857
  children: [
1849
- /* @__PURE__ */ o.jsx(lr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1490", size: 16 }),
1850
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1491", style: { display: "flex", flexDirection: "column" }, children: [
1851
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1492", style: { fontWeight: 700 }, children: r.selectToComment }),
1852
- /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1493", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
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: [
1853
1862
  Math.round(p.rect.width),
1854
1863
  " × ",
1855
1864
  Math.round(p.rect.height)
@@ -1860,7 +1869,7 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1860
1869
  )
1861
1870
  }
1862
1871
  ),
1863
- f && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1503", className: "vg-animate-fade", style: {
1872
+ h && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1518", className: "vg-animate-fade", style: {
1864
1873
  position: "fixed",
1865
1874
  top: 0,
1866
1875
  left: 0,
@@ -1872,13 +1881,13 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1872
1881
  alignItems: "center",
1873
1882
  justifyContent: "center",
1874
1883
  zIndex: Fe
1875
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1508", className: "vg-glassmorphism vg-animate-slide", style: {
1884
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1523", className: "vg-glassmorphism vg-animate-slide", style: {
1876
1885
  padding: "40px",
1877
1886
  width: "500px",
1878
1887
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
1879
1888
  }, children: [
1880
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1512", style: { textAlign: "center", marginBottom: "32px" }, children: [
1881
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1513", style: {
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: {
1882
1891
  width: "48px",
1883
1892
  height: "48px",
1884
1893
  background: "var(--vg-primary-gradient)",
@@ -1889,11 +1898,11 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1889
1898
  margin: "0 auto 16px",
1890
1899
  color: "white",
1891
1900
  boxShadow: "0 8px 16px rgba(99, 102, 241, 0.3)"
1892
- }, children: /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1518", size: 24 }) }),
1893
- /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1520", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1894
- /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1521", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
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 })
1895
1904
  ] }),
1896
- f.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1525", style: {
1905
+ h.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1540", style: {
1897
1906
  marginBottom: "24px",
1898
1907
  borderRadius: "12px",
1899
1908
  overflow: "hidden",
@@ -1904,7 +1913,7 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1904
1913
  }, children: /* @__PURE__ */ o.jsx(
1905
1914
  "img",
1906
1915
  {
1907
- src: f.visualPreview,
1916
+ src: h.visualPreview,
1908
1917
  alt: "Preview",
1909
1918
  style: { maxWidth: "100%", maxHeight: "200px", objectFit: "contain", display: "block" }
1910
1919
  }
@@ -1913,19 +1922,19 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1913
1922
  "textarea",
1914
1923
  {
1915
1924
  className: "vg-textarea",
1916
- value: _,
1917
- onChange: (d) => N(d.target.value),
1925
+ value: A,
1926
+ onChange: (l) => I(l.target.value),
1918
1927
  rows: 4,
1919
1928
  placeholder: r.placeholder,
1920
1929
  autoFocus: !0,
1921
1930
  style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
1922
1931
  }
1923
1932
  ),
1924
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1552", 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: [
1925
1934
  /* @__PURE__ */ o.jsx(
1926
1935
  "button",
1927
1936
  {
1928
- onClick: () => !W && j(null),
1937
+ onClick: () => !W && O(null),
1929
1938
  className: "vg-button-ghost",
1930
1939
  disabled: W,
1931
1940
  style: { flex: 1, padding: "12px" },
@@ -1937,17 +1946,17 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1937
1946
  {
1938
1947
  onClick: Gt,
1939
1948
  className: "vg-button-primary",
1940
- disabled: W || !_.trim(),
1949
+ disabled: W || !A.trim(),
1941
1950
  style: { flex: 2 },
1942
- children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1567", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1943
- W ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1568", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(hr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1568", size: 18 }),
1944
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1569", children: W ? r.submitting : r.sendFeedback || "Send Comment" })
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" })
1945
1954
  ] })
1946
1955
  }
1947
1956
  )
1948
1957
  ] })
1949
1958
  ] }) }),
1950
- M && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1579", className: "vg-animate-fade", style: {
1959
+ M && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1593", className: "vg-animate-fade", style: {
1951
1960
  position: "fixed",
1952
1961
  top: 0,
1953
1962
  left: 0,
@@ -1959,257 +1968,271 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
1959
1968
  alignItems: "center",
1960
1969
  justifyContent: "center",
1961
1970
  zIndex: Fe
1962
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1584", className: "vg-glassmorphism vg-animate-slide", style: {
1971
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1598", className: "vg-glassmorphism vg-animate-slide", style: {
1963
1972
  padding: "32px",
1964
1973
  width: "650px",
1965
1974
  maxHeight: "85vh",
1966
1975
  display: "flex",
1967
1976
  flexDirection: "column"
1968
1977
  }, children: [
1969
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1588", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1970
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1589", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1971
- /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1590", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: D ? r.commentDetails : r.annotations }),
1972
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1593", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: S.length })
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 })
1973
1982
  ] }),
1974
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1597", style: { display: "flex", gap: "8px" }, children: [
1975
- D && /* @__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(
1976
1985
  "button",
1977
1986
  {
1978
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1599",
1987
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1613",
1979
1988
  className: "vg-button-ghost",
1980
1989
  style: { padding: "6px 14px", fontSize: "12px" },
1981
- onClick: () => ne(null),
1990
+ onClick: () => J(null),
1982
1991
  children: r.viewAll || "View All"
1983
1992
  }
1984
1993
  ),
1985
1994
  /* @__PURE__ */ o.jsx(
1986
1995
  "button",
1987
1996
  {
1988
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1607",
1997
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1621",
1989
1998
  className: "vg-button-ghost",
1990
1999
  style: { padding: "8px", borderRadius: "50%" },
1991
2000
  onClick: () => {
1992
- q(!1), ne(null);
2001
+ U(!1), J(null);
1993
2002
  },
1994
- children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1612", size: 20 })
2003
+ children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1626", size: 20 })
1995
2004
  }
1996
2005
  )
1997
2006
  ] })
1998
2007
  ] }),
1999
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1616", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: le ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1618", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1619", className: "vg-spinner" }) }) : S.map((d, h) => /* @__PURE__ */ o.jsxs(
2008
+ /* @__PURE__ */ o.jsx(
2000
2009
  "div",
2001
2010
  {
2002
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1623",
2003
- className: "vg-glassmorphism vg-animate-slide",
2004
- style: {
2005
- padding: "20px",
2006
- marginBottom: "16px",
2007
- border: "1px solid rgba(0,0,0,0.05)",
2008
- background: "rgba(255,255,255,0.5)",
2009
- animationDelay: `${h * 0.05}s`
2010
- },
2011
- children: [
2012
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1635", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: [
2013
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1636", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
2014
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1637", style: { fontSize: "12px", color: "#000000", fontWeight: 600 }, children: ht(d.timestamp || d.createdAt || d.reference?.timestamp, t) }),
2015
- d.url && /* @__PURE__ */ o.jsx(
2016
- gt,
2017
- {
2018
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1641",
2019
- url: d.url,
2020
- onHover: ue,
2021
- style: {
2022
- display: "flex",
2023
- alignItems: "center",
2024
- gap: "4px",
2025
- fontSize: "11px",
2026
- color: "#64748b",
2027
- background: "#f8fafc",
2028
- padding: "2px 8px",
2029
- borderRadius: "6px",
2030
- border: "1px solid #e2e8f0",
2031
- maxWidth: "220px"
2032
- }
2033
- }
2034
- )
2035
- ] }),
2036
- d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1660", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a", border: "1px solid #dcfce7" }, children: [
2037
- /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1661", size: 14 }),
2038
- " ",
2039
- r.readyForReview
2040
- ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1664", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c", border: "1px solid #ffedd5" }, children: [
2041
- /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1665", size: 14 }),
2042
- " ",
2043
- r.pending
2044
- ] })
2045
- ] }),
2046
- Ze === d._id ? /* @__PURE__ */ o.jsx(
2047
- "textarea",
2048
- {
2049
- className: "vg-textarea",
2050
- value: Ke,
2051
- onChange: (x) => Qe(x.target.value),
2052
- rows: 3,
2053
- autoFocus: !0,
2054
- style: { marginBottom: "16px" }
2055
- }
2056
- ) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1680", className: "vg-text-wrap", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: d.message }),
2057
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1683", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: Ze === d._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2058
- /* @__PURE__ */ o.jsx(
2059
- "button",
2060
- {
2061
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1686",
2062
- className: "vg-button-primary vg-animate-pop",
2063
- style: { padding: "8px 16px", fontSize: "13px" },
2064
- onClick: async () => {
2065
- try {
2066
- (await fetch(`${a}/api/annotations/${d._id}`, {
2067
- method: "PATCH",
2068
- headers: { "Content-Type": "application/json", "x-api-key": n },
2069
- body: JSON.stringify({ message: Ke })
2070
- })).ok && ($e(null), K(), e(r.updateSuccess, "success"));
2071
- } catch {
2072
- e(r.error, "error");
2073
- }
2074
- },
2075
- children: r.save
2076
- }
2077
- ),
2078
- /* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1708", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => $e(null), children: r.cancel })
2079
- ] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2080
- /* @__PURE__ */ o.jsxs(
2081
- "button",
2082
- {
2083
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1712",
2084
- className: "vg-button-ghost vg-animate-pop",
2085
- style: { padding: "8px 16px", fontSize: "13px" },
2086
- onClick: () => {
2087
- $e(d._id), Qe(d.message);
2088
- },
2089
- children: [
2090
- /* @__PURE__ */ o.jsx(ur, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1720", size: 14 }),
2091
- " ",
2092
- r.edit
2093
- ]
2094
- }
2095
- ),
2096
- /* @__PURE__ */ o.jsxs(
2097
- "button",
2098
- {
2099
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1722",
2100
- className: "vg-button-ghost vg-animate-pop",
2101
- style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.05s" },
2102
- onClick: () => {
2103
- d.url && (window.location.href = d.url);
2104
- },
2105
- children: [
2106
- /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1729", size: 14 }),
2107
- " ",
2108
- r.review
2109
- ]
2110
- }
2111
- ),
2112
- d.status === "pending" ? /* @__PURE__ */ o.jsxs(
2113
- "button",
2114
- {
2115
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1732",
2116
- className: "vg-button-primary vg-animate-pop",
2117
- style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
2118
- onClick: () => {
2119
- z({
2120
- title: r.markReadyConfirm,
2121
- message: r.confirmMarkReady,
2122
- type: "success",
2123
- onConfirm: async () => {
2124
- try {
2125
- (await fetch(`${a}/api/annotations/${d._id}`, {
2126
- method: "PATCH",
2127
- headers: { "Content-Type": "application/json", "x-api-key": n },
2128
- body: JSON.stringify({ status: "ready_for_review" })
2129
- })).ok && (K(), e(r.updateSuccess, "success"));
2130
- } catch {
2131
- e(r.error, "error");
2132
- } finally {
2133
- z(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"
2134
2047
  }
2135
2048
  }
2136
- });
2137
- },
2138
- children: [
2139
- /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1760", 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 }),
2140
2057
  " ",
2141
- r.markReady
2142
- ]
2143
- }
2144
- ) : /* @__PURE__ */ o.jsxs(
2145
- "button",
2146
- {
2147
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1763",
2148
- className: "vg-button-ghost vg-animate-pop",
2149
- style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
2150
- onClick: () => {
2151
- z({
2152
- title: r.reopenConfirm,
2153
- message: r.confirmReopen,
2154
- type: "success",
2155
- // Reopening is a positive action, use success theme (indigo/check) or we could add a neutral theme
2156
- 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 () => {
2157
2080
  try {
2158
- (await fetch(`${a}/api/annotations/${d._id}`, {
2081
+ (await fetch(`${a}/api/annotations/${l._id}`, {
2159
2082
  method: "PATCH",
2160
2083
  headers: { "Content-Type": "application/json", "x-api-key": n },
2161
- body: JSON.stringify({ status: "pending" })
2162
- })).ok && (K(), e(r.updateSuccess, "success"));
2163
- } catch {
2164
- e(r.error, "error");
2165
- } finally {
2166
- z(null);
2167
- }
2168
- }
2169
- });
2170
- },
2171
- children: [
2172
- /* @__PURE__ */ o.jsx(mr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1791", size: 14 }),
2173
- " ",
2174
- r.reopen
2175
- ]
2176
- }
2177
- ),
2178
- /* @__PURE__ */ o.jsx(
2179
- "button",
2180
- {
2181
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1794",
2182
- className: "vg-button-ghost vg-animate-pop",
2183
- style: { padding: "8px 12px", color: "#ef4444", borderColor: "#fee2e2", animationDelay: "0.15s" },
2184
- onClick: () => {
2185
- z({
2186
- title: r.deleteConfirm,
2187
- message: r.confirmDelete,
2188
- type: "danger",
2189
- onConfirm: async () => {
2190
- try {
2191
- (await fetch(`${a}/api/annotations/${d._id}`, {
2192
- method: "DELETE",
2193
- headers: { "x-api-key": n }
2194
- })).ok && (K(), e(r.deleteSuccess, "success"));
2084
+ body: JSON.stringify({ message: Ke })
2085
+ })).ok && ($e(null), te(), e(r.updateSuccess, "success"));
2195
2086
  } catch {
2196
2087
  e(r.error, "error");
2197
- } finally {
2198
- z(null);
2199
2088
  }
2200
- }
2201
- });
2202
- },
2203
- children: /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1821", size: 16 })
2204
- }
2205
- )
2206
- ] }) })
2207
- ]
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
+ ))
2208
2231
  },
2209
- d._id
2210
- )) })
2232
+ N || "all"
2233
+ )
2211
2234
  ] }) }),
2212
- I && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1836", className: "vg-animate-fade", style: {
2235
+ L && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1866", className: "vg-animate-fade", style: {
2213
2236
  position: "fixed",
2214
2237
  top: 0,
2215
2238
  left: 0,
@@ -2221,124 +2244,124 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
2221
2244
  alignItems: "center",
2222
2245
  justifyContent: "center",
2223
2246
  zIndex: Fe + 100
2224
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1841", className: "vg-glassmorphism vg-animate-slide", style: {
2247
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1871", className: "vg-glassmorphism vg-animate-slide", style: {
2225
2248
  padding: "40px",
2226
2249
  width: "420px",
2227
2250
  textAlign: "center",
2228
2251
  border: "1px solid rgba(255, 255, 255, 0.1)",
2229
2252
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
2230
2253
  }, children: [
2231
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1848", style: {
2254
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1878", style: {
2232
2255
  width: "64px",
2233
2256
  height: "64px",
2234
- background: I.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)",
2235
2258
  borderRadius: "20px",
2236
2259
  display: "flex",
2237
2260
  alignItems: "center",
2238
2261
  justifyContent: "center",
2239
2262
  margin: "0 auto 24px",
2240
- color: I.type === "danger" ? "#ef4444" : "#6366f1",
2263
+ color: L.type === "danger" ? "#ef4444" : "#6366f1",
2241
2264
  transform: "rotate(-5deg)"
2242
- }, children: I.type === "danger" ? /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1857", size: 32 }) : /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1857", size: 32 }) }),
2243
- /* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1859", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: I.title }),
2244
- /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1860", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: I.message }),
2245
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1861", style: { display: "flex", gap: "16px" }, children: [
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: [
2246
2269
  /* @__PURE__ */ o.jsx(
2247
2270
  "button",
2248
2271
  {
2249
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1862",
2272
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1892",
2250
2273
  className: "vg-button-ghost",
2251
2274
  style: { flex: 1, height: "44px" },
2252
- onClick: () => !Z && z(null),
2253
- disabled: Z,
2275
+ onClick: () => !ee && z(null),
2276
+ disabled: ee,
2254
2277
  children: r.no
2255
2278
  }
2256
2279
  ),
2257
2280
  /* @__PURE__ */ o.jsx(
2258
2281
  "button",
2259
2282
  {
2260
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1870",
2283
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1900",
2261
2284
  className: "vg-button-primary",
2262
2285
  style: {
2263
2286
  flex: 1,
2264
2287
  height: "44px",
2265
- backgroundColor: I.type === "danger" ? "#ef4444" : void 0,
2266
- backgroundImage: I.type === "danger" ? "none" : void 0,
2288
+ backgroundColor: L.type === "danger" ? "#ef4444" : void 0,
2289
+ backgroundImage: L.type === "danger" ? "none" : void 0,
2267
2290
  display: "flex",
2268
2291
  alignItems: "center",
2269
2292
  justifyContent: "center",
2270
2293
  gap: "8px"
2271
2294
  },
2272
- disabled: Z,
2295
+ disabled: ee,
2273
2296
  onClick: async () => {
2274
- de(!0);
2297
+ pe(!0);
2275
2298
  try {
2276
- await I.onConfirm();
2277
- } catch (d) {
2278
- console.error("Confirmation error:", d);
2299
+ await L.onConfirm();
2300
+ } catch (l) {
2301
+ console.error("Confirmation error:", l);
2279
2302
  } finally {
2280
- de(!1);
2303
+ pe(!1);
2281
2304
  }
2282
2305
  },
2283
- children: Z ? /* @__PURE__ */ o.jsx(or, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1895", 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
2284
2307
  }
2285
2308
  )
2286
2309
  ] })
2287
2310
  ] }) }),
2288
- !i && !M && l.map((d, h) => {
2289
- const { rect: x, annotations: O, isModal: k } = d, w = O[0], y = O.length, C = O.some((R) => R.status === "ready_for_review"), A = O.some((R) => R.status !== "ready_for_review"), Y = C && A, L = C && !A;
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;
2290
2313
  return /* @__PURE__ */ o.jsxs(
2291
2314
  "div",
2292
2315
  {
2293
2316
  className: "vg-pin-container vg-animate-pop",
2294
2317
  style: {
2295
2318
  position: "fixed",
2296
- top: x.top - 20,
2297
- left: x.left + x.width / 2 - 16,
2319
+ top: y.top - 20,
2320
+ left: y.left + y.width / 2 - 16,
2298
2321
  width: "32px",
2299
2322
  height: "32px",
2300
2323
  cursor: "pointer",
2301
2324
  transition: "all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",
2302
2325
  zIndex: xn
2303
2326
  },
2304
- onMouseEnter: (R) => {
2305
- window.innerHeight - x.bottom < 250 ? Ee((Ie) => ({ ...Ie, [d.id]: "vg-top" })) : Ee((Ie) => ({ ...Ie, [d.id]: "" }));
2327
+ onMouseEnter: (S) => {
2328
+ window.innerHeight - y.bottom < 250 ? Ee((Ie) => ({ ...Ie, [l.id]: "vg-top" })) : Ee((Ie) => ({ ...Ie, [l.id]: "" }));
2306
2329
  },
2307
- onWheel: (R) => {
2308
- const ge = R.currentTarget.querySelector(".vg-tooltip-scroll");
2309
- ge && ge.scrollBy({ top: R.deltaY, behavior: "smooth" });
2330
+ onWheel: (S) => {
2331
+ const Z = S.currentTarget.querySelector(".vg-tooltip-scroll");
2332
+ Z && Z.scrollBy({ top: S.deltaY, behavior: "smooth" });
2310
2333
  },
2311
2334
  onClick: () => {
2312
- q(!0), ne(w._id);
2335
+ U(!0), J(j._id);
2313
2336
  },
2314
2337
  children: [
2315
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1948", className: `vg-pin-tooltip ${Ce[d.id] || ""}`, style: { padding: "16px" }, children: [
2316
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1949", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "12px" }, children: [
2317
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1950", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2318
- /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1951", size: 14, color: "#6366f1" }),
2319
- /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1952", style: { fontWeight: 800, fontSize: "13px", color: "#0f172a" }, children: [
2320
- y,
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,
2321
2344
  " ",
2322
- y === 1 ? "Comentario" : "Comentarios"
2345
+ f === 1 ? "Comentario" : "Comentarios"
2323
2346
  ] })
2324
2347
  ] }),
2325
- k && /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1957", className: "vg-badge", style: { fontSize: "10px", background: "#fef3c7", color: "#92400e", border: "none" }, children: "MODAL" })
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" })
2326
2349
  ] }),
2327
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1960", className: "vg-tooltip-scroll", style: { maxHeight: "180px", overflowY: "auto" }, children: O.map((R, ge) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1962", style: {
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: {
2328
2351
  padding: "10px 0",
2329
- borderTop: ge === 0 ? "none" : "1px solid #f1f5f9",
2352
+ borderTop: Z === 0 ? "none" : "1px solid #f1f5f9",
2330
2353
  display: "flex",
2331
2354
  gap: "12px",
2332
2355
  alignItems: "flex-start"
2333
2356
  }, children: [
2334
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1969", style: { flex: 1, display: "flex", flexDirection: "column", gap: "4px" }, children: [
2335
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1970", style: { fontSize: "10px", fontWeight: 600, color: "#64748b" }, children: ht(R.timestamp || R.createdAt, t) }),
2336
- R.url && /* @__PURE__ */ o.jsx(
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(
2337
2360
  gt,
2338
2361
  {
2339
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1974",
2340
- url: R.url,
2341
- onHover: ue,
2362
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:2004",
2363
+ url: S.url,
2364
+ onHover: me,
2342
2365
  style: {
2343
2366
  display: "flex",
2344
2367
  alignItems: "center",
@@ -2354,9 +2377,9 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
2354
2377
  tooltipStyle: { fontSize: "9px" }
2355
2378
  }
2356
2379
  ),
2357
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1992", className: "vg-line-clamp-2", style: { fontSize: "13px", color: "#1e293b", lineHeight: 1.4, fontWeight: 500 }, children: R.message.length > 100 ? R.message.slice(0, 97) + "..." : R.message })
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 })
2358
2381
  ] }),
2359
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1996", style: { flexShrink: 0, marginTop: "2px" }, children: R.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1998", style: {
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: {
2360
2383
  display: "flex",
2361
2384
  alignItems: "center",
2362
2385
  gap: "4px",
@@ -2369,9 +2392,9 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
2369
2392
  textTransform: "uppercase",
2370
2393
  border: "1px solid #dcfce7"
2371
2394
  }, children: [
2372
- /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2011", size: 10 }),
2395
+ /* @__PURE__ */ o.jsx(le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2041", size: 10 }),
2373
2396
  r.readyForReview
2374
- ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2015", style: {
2397
+ ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2045", style: {
2375
2398
  display: "flex",
2376
2399
  alignItems: "center",
2377
2400
  gap: "4px",
@@ -2384,31 +2407,31 @@ const Pe = 2147483647, De = Pe, Fe = 2e6, hn = Pe - 10, gn = Pe - 5, xn = Pe - 1
2384
2407
  textTransform: "uppercase",
2385
2408
  border: "1px solid #ffedd5"
2386
2409
  }, children: [
2387
- /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2028", size: 10 }),
2410
+ /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2058", size: 10 }),
2388
2411
  r.pending
2389
2412
  ] }) })
2390
- ] }, R._id)) })
2413
+ ] }, S._id)) })
2391
2414
  ] }),
2392
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2038", className: `vg-formal-pin ${L ? "ready" : Y ? "mixed" : ""} ${k ? "modal-variant" : ""}`, style: { position: "relative" }, children: [
2393
- L ? /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2039", size: 18 }) : k ? /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2039", size: 16 }) : /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2039", size: 16 }),
2394
- y > 1 && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2042", className: "vg-pin-badge vg-animate-pop", children: y })
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 })
2395
2418
  ] })
2396
2419
  ]
2397
2420
  },
2398
- `group-${d.id}`
2421
+ `group-${l.id}`
2399
2422
  );
2400
2423
  }),
2401
2424
  /* @__PURE__ */ o.jsx(
2402
2425
  "div",
2403
2426
  {
2404
- "data-source-path": "/src/components/ViewGateOverlay.tsx:2051",
2405
- className: `vg-url-tooltip ${F ? "visible" : ""} ${F?.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"}`,
2406
2429
  style: {
2407
- transform: F ? `translate(-50%, ${F.direction === "top" ? "-110%" : "10%"})` : "translate(-50%, 0)",
2408
- left: F?.x || 0,
2409
- top: F?.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
2410
2433
  },
2411
- children: F?.url
2434
+ children: D?.url
2412
2435
  }
2413
2436
  )
2414
2437
  ] }) });
@@ -2419,7 +2442,7 @@ function _t(e, t, r) {
2419
2442
  return e.split(`
2420
2443
  `).map((i, u) => {
2421
2444
  const p = u + 1;
2422
- return i.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (m, f, j) => m.includes("data-source-path") || j === "Fragment" || j === "React.Fragment" ? m : `${f}<${j} data-source-path="${a}:${p}"`);
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}"`);
2423
2446
  }).join(`
2424
2447
  `);
2425
2448
  }