viewgate-wrapper 1.10.13 → 1.10.15

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