viewgate-wrapper 1.10.21 → 1.10.22

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,10 +1,10 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";body{margin:0!important;padding:0!important}:root{--vg-primary: #6366f1;--vg-primary-glow: rgba(99, 102, 241, .5);--vg-primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);--vg-bg-glass: rgba(255, 255, 255, .7);--vg-radius: 16px;--vg-font-main: "Inter", system-ui, sans-serif;--vg-font-alt: "Inter", system-ui, sans-serif;--placeholder-color: #94a3b8;--vg-glass-border: rgba(255, 255, 255, .3);--vg-shadow-premium: 0 20px 50px rgba(0, 0, 0, .1)}.vg-container,.vg-container *{box-sizing:border-box}.vg-container{font-family:var(--vg-font-main);-webkit-font-smoothing:antialiased}.vg-glassmorphism{background:var(--vg-bg-glass);backdrop-filter:blur(16px) saturate(180%);-webkit-backdrop-filter:blur(16px) saturate(180%);border:1px solid var(--vg-glass-border);box-shadow:0 8px 32px #0000001a;border-radius:var(--vg-radius);position:relative}.vg-button-primary{background:var(--vg-primary-gradient);color:#fff;border:none;padding:12px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:700;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 12px #6366f14d}.vg-button-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #6366f166}.vg-button-primary:disabled,.vg-button-ghost:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.4);transform:none!important;box-shadow:none!important;pointer-events:none}.vg-button-ghost{background:#fffc;color:#1e293b;border:1px solid #e2e8f0;padding:10px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px}.vg-button-ghost:hover{background:#fff;border-color:#cbd5e1;box-shadow:0 4px 12px #0000000d}.vg-badge{background:#f1f5f9;color:#64748b;padding:4px 12px;font-size:11px;border-radius:99px;font-weight:600;display:inline-flex;align-items:center;gap:6px}.vg-textarea{width:100%;box-sizing:border-box;border:1px solid #e2e8f0;border-radius:12px;padding:12px;font-family:var(--vg-font-main);font-size:15px;color:#0f172a;resize:none;outline:none;background:#f8fafc;transition:all .2s ease}.vg-textarea:focus{background:#fff;border-color:var(--vg-primary);box-shadow:0 0 0 4px #6366f11a}@keyframes vg-fade-in{0%{opacity:0}to{opacity:1}}@keyframes vg-slide-in{0%{transform:translateY(30px) scale(.96);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes vg-pop-in{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08);opacity:1}to{transform:scale(1);opacity:1}}@keyframes vg-slide-up-fade{0%{transform:translateY(12px) scale(.95);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.vg-animate-pop{animation:vg-pop-in .4s cubic-bezier(.34,1.56,.64,1) forwards}.vg-animate-slide-up{animation:vg-slide-up-fade .5s cubic-bezier(.22,1,.36,1) forwards}.vg-button-primary,.vg-button-ghost,.vg-pin-container,.vg-action-bar,.vg-glassmorphism{transition:all .3s cubic-bezier(.4,0,.2,1)}.vg-animate-slide{animation:vg-slide-in .5s cubic-bezier(.22,1,.36,1) forwards}.vg-animate-fade{animation:vg-fade-in .35s cubic-bezier(.22,1,.36,1) forwards}.vg-toasts{position:fixed;top:24px;right:24px;display:flex;flex-direction:column;gap:12px}.vg-toast{padding:12px 20px;display:flex;align-items:center;gap:12px;min-width:300px;border-radius:12px;box-shadow:0 10px 30px #0000001a;background:#fff}.vg-toast.success{border-left:6px solid #22c55e}.vg-toast.error{border-left:6px solid #ef4444}.vg-backdrop-blur{position:fixed;top:0;left:0;width:100%;height:100%;-webkit-backdrop-filter:blur(8px) grayscale(.2);backdrop-filter:blur(8px) grayscale(.2);background:#0000001a;pointer-events:none;transition:opacity .3s ease,clip-path .2s cubic-bezier(.19,1,.22,1)}.vg-selection-pulse{position:fixed;pointer-events:none;border:2px solid var(--vg-primary);border-radius:8px;box-shadow:0 0 0 0 var(--vg-primary-glow);animation:vg-pulse 2s infinite;transition:all .2s cubic-bezier(.19,1,.22,1)}@keyframes vg-pulse{0%{box-shadow:0 0 0 0 var(--vg-primary-glow)}70%{box-shadow:0 0 0 15px #6366f100}to{box-shadow:0 0 #6366f100}}.vg-selection-label{position:absolute;top:-40px;left:0;background:var(--vg-primary-gradient);color:#fff;padding:8px 16px;border-radius:20px;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:0 4px 12px #6366f14d;display:flex;align-items:center;gap:8px}.vg-pin-container{transition:transform .2s ease}.vg-pin-container:hover{transform:scale(1.1)}.vg-formal-pin{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#f97316,#ea580c);border:3px solid white;box-shadow:0 4px 12px #ea580c66;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s ease}.vg-formal-pin.ready{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 4px 12px #10b98166}.vg-formal-pin.mixed{background:linear-gradient(135deg,#10b981,#059669);border:3px solid #f97316;box-shadow:0 4px 15px #f9731666}.vg-formal-pin.modal-variant{background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 4px 12px #f59e0b66;border-style:dashed}.vg-pin-tooltip{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%);padding:16px;border-radius:16px;background:#ffffffe6;backdrop-filter:blur(12px) saturate(160%);-webkit-backdrop-filter:blur(12px) saturate(160%);color:#1e293b;width:320px;font-size:13px;box-shadow:0 10px 40px #00000026;opacity:0;visibility:hidden;pointer-events:none;transition:all .3s cubic-bezier(.19,1,.22,1);border:1px solid rgba(255,255,255,.5);z-index:1000;overflow:hidden}.vg-tooltip-scroll{scrollbar-width:thin;scrollbar-color:rgba(99,102,241,.2) transparent;overflow-y:auto;overflow-x:hidden;padding-right:12px;scroll-behavior:smooth}.vg-tooltip-scroll::-webkit-scrollbar{width:4px}.vg-tooltip-scroll::-webkit-scrollbar-track{background:transparent}.vg-tooltip-scroll::-webkit-scrollbar-thumb{background:#6366f14d;border-radius:10px}.vg-tooltip-scroll::-webkit-scrollbar-thumb:hover{background:#6366f180}.vg-text-wrap{word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;white-space:pre-wrap}.vg-line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;max-height:2.8em}.vg-pin-badge{position:absolute;top:-8px;right:-8px;background:#f43f5e;color:#fff;font-size:10px;font-weight:800;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid white;box-shadow:0 4px 12px #f43f5e66;z-index:2}.vg-pin-tooltip.vg-top{top:auto;bottom:calc(100% + 12px)}.vg-pin-container:hover .vg-pin-tooltip{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%) translateY(-5px)}.vg-action-bar{display:flex;gap:12px;padding:0;background:transparent;border:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.vg-custom-scrollbar::-webkit-scrollbar{width:6px}.vg-custom-scrollbar::-webkit-scrollbar-track{background:transparent}.vg-custom-scrollbar::-webkit-scrollbar-thumb{background:#6366f166;border-radius:10px;transition:all .2s ease}.vg-custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#6366f1b3}.vg-spinner{border:3px solid rgba(99,102,241,.1);border-top:3px solid var(--vg-primary);border-radius:50%;width:32px;height:32px;animation:vg-spin .8s linear infinite}@keyframes vg-spin{to{transform:rotate(360deg)}}.vg-animate-spin{animation:vg-spin .8s linear infinite}.vg-cursor-pointer,.vg-cursor-pointer *{cursor:pointer!important}.vg-url-tag{position:relative;cursor:help;transition:all .2s ease}.vg-url-tag:hover{background:#f1f5f9!important;border-color:var(--vg-primary)!important}.vg-url-tooltip{position:fixed;left:0;top:0;background:#0f172a;color:#fff;padding:8px 14px;border-radius:10px;font-size:11px;font-weight:500;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;box-shadow:0 10px 25px -5px #0006;z-index:2147483647;border:1px solid rgba(255,255,255,.1)}.vg-url-tooltip.visible{opacity:1}.vg-url-tooltip:after{content:"";position:absolute;left:50%;transform:translate(-50%);border-width:6px;border-style:solid}.vg-url-tooltip.vg-top:after{top:100%;border-color:#0f172a transparent transparent transparent}.vg-url-tooltip.vg-bottom:after{bottom:100%;border-color:transparent transparent #0f172a transparent}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import $t, { useRef as de, useState as C, useEffect as K, forwardRef as yt, createElement as We, createContext as Mt, useContext as Nt, useMemo as It, useCallback as ke } from "react";
2
+ import $t, { useRef as ue, useState as S, useEffect as K, forwardRef as yt, createElement as We, createContext as Mt, useContext as Nt, useMemo as It, useCallback as je } from "react";
3
3
  import { createPortal as Lt } from "react-dom";
4
- var Re = { exports: {} }, xe = {};
4
+ var Oe = { exports: {} }, ye = {};
5
5
  var et;
6
6
  function zt() {
7
- if (et) return xe;
7
+ if (et) return ye;
8
8
  et = 1;
9
9
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
10
10
  function r(n, a, s) {
@@ -22,27 +22,27 @@ function zt() {
22
22
  props: s
23
23
  };
24
24
  }
25
- return xe.Fragment = t, xe.jsx = r, xe.jsxs = r, xe;
25
+ return ye.Fragment = t, ye.jsx = r, ye.jsxs = r, ye;
26
26
  }
27
- var ye = {};
27
+ var we = {};
28
28
  var tt;
29
29
  function Dt() {
30
30
  return tt || (tt = 1, process.env.NODE_ENV !== "production" && (function() {
31
31
  function e(d) {
32
32
  if (d == null) return null;
33
33
  if (typeof d == "function")
34
- return d.$$typeof === ue ? null : d.displayName || d.name || null;
34
+ return d.$$typeof === pe ? null : d.displayName || d.name || null;
35
35
  if (typeof d == "string") return d;
36
36
  switch (d) {
37
37
  case ne:
38
38
  return "Fragment";
39
- case be:
39
+ case Se:
40
40
  return "Profiler";
41
- case ve:
41
+ case be:
42
42
  return "StrictMode";
43
- case Pe:
43
+ case Ce:
44
44
  return "Suspense";
45
- case L:
45
+ case z:
46
46
  return "SuspenseList";
47
47
  case Xe:
48
48
  return "Activity";
@@ -51,18 +51,18 @@ function Dt() {
51
51
  switch (typeof d.tag == "number" && console.error(
52
52
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
53
53
  ), d.$$typeof) {
54
- case W:
54
+ case B:
55
55
  return "Portal";
56
- case U:
56
+ case q:
57
57
  return d.displayName || "Context";
58
- case M:
58
+ case N:
59
59
  return (d._context.displayName || "Context") + ".Consumer";
60
- case T:
60
+ case V:
61
61
  var x = d.render;
62
62
  return d = d.displayName, d || (d = x.displayName || x.name || "", d = d !== "" ? "ForwardRef(" + d + ")" : "ForwardRef"), d;
63
- case z:
63
+ case D:
64
64
  return x = d.displayName || null, x !== null ? x : e(d.type) || "Memo";
65
- case Se:
65
+ case Ee:
66
66
  x = d._payload, d = d._init;
67
67
  try {
68
68
  return e(d(x));
@@ -93,7 +93,7 @@ function Dt() {
93
93
  }
94
94
  function n(d) {
95
95
  if (d === ne) return "<>";
96
- if (typeof d == "object" && d !== null && d.$$typeof === Se)
96
+ if (typeof d == "object" && d !== null && d.$$typeof === Ee)
97
97
  return "<...>";
98
98
  try {
99
99
  var x = e(d);
@@ -110,7 +110,7 @@ function Dt() {
110
110
  return Error("react-stack-top-frame");
111
111
  }
112
112
  function c(d) {
113
- if (Ce.call(d, "key")) {
113
+ if (ke.call(d, "key")) {
114
114
  var x = Object.getOwnPropertyDescriptor(d, "key").get;
115
115
  if (x && x.isReactWarning) return !1;
116
116
  }
@@ -118,7 +118,7 @@ function Dt() {
118
118
  }
119
119
  function i(d, x) {
120
120
  function v() {
121
- J || (J = !0, console.error(
121
+ Z || (Z = !0, console.error(
122
122
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
123
123
  x
124
124
  ));
@@ -134,10 +134,10 @@ function Dt() {
134
134
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
135
135
  )), d = this.props.ref, d !== void 0 ? d : null;
136
136
  }
137
- function p(d, x, v, b, se, B) {
137
+ function p(d, x, v, b, se, Y) {
138
138
  var k = v.ref;
139
139
  return d = {
140
- $$typeof: I,
140
+ $$typeof: L,
141
141
  type: d,
142
142
  key: x,
143
143
  props: v,
@@ -164,28 +164,28 @@ function Dt() {
164
164
  configurable: !1,
165
165
  enumerable: !1,
166
166
  writable: !0,
167
- value: B
167
+ value: Y
168
168
  }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
169
169
  }
170
- function m(d, x, v, b, se, B) {
170
+ function m(d, x, v, b, se, Y) {
171
171
  var k = x.children;
172
172
  if (k !== void 0)
173
173
  if (b)
174
- if (Ee(k)) {
174
+ if (Re(k)) {
175
175
  for (b = 0; b < k.length; b++)
176
- h(k[b]);
176
+ f(k[b]);
177
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 h(k);
183
- if (Ce.call(x, "key")) {
182
+ else f(k);
183
+ if (ke.call(x, "key")) {
184
184
  k = e(d);
185
- var V = Object.keys(x).filter(function(Ge) {
186
- return Ge !== "key";
185
+ var T = Object.keys(x).filter(function($e) {
186
+ return $e !== "key";
187
187
  });
188
- b = 0 < V.length ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}", me[k + b] || (V = 0 < V.length ? "{" + V.join(": ..., ") + ": ...}" : "{}", console.error(
188
+ b = 0 < T.length ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}", fe[k + b] || (T = 0 < T.length ? "{" + T.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} />
@@ -194,14 +194,14 @@ React keys must be passed directly to JSX without using spread:
194
194
  <%s key={someKey} {...props} />`,
195
195
  b,
196
196
  k,
197
- V,
197
+ T,
198
198
  k
199
- ), me[k + b] = !0);
199
+ ), fe[k + b] = !0);
200
200
  }
201
201
  if (k = null, v !== void 0 && (r(v), k = "" + v), c(x) && (r(x.key), k = "" + x.key), "key" in x) {
202
202
  v = {};
203
- for (var F in x)
204
- F !== "key" && (v[F] = x[F]);
203
+ for (var H in x)
204
+ H !== "key" && (v[H] = x[H]);
205
205
  } else v = x;
206
206
  return k && i(
207
207
  v,
@@ -212,57 +212,57 @@ React keys must be passed directly to JSX without using spread:
212
212
  v,
213
213
  a(),
214
214
  se,
215
- B
215
+ Y
216
216
  );
217
217
  }
218
- function h(d) {
219
- O(d) ? d._store && (d._store.validated = 1) : typeof d == "object" && d !== null && d.$$typeof === Se && (d._payload.status === "fulfilled" ? O(d._payload.value) && d._payload.value._store && (d._payload.value._store.validated = 1) : d._store && (d._store.validated = 1));
218
+ function f(d) {
219
+ A(d) ? d._store && (d._store.validated = 1) : typeof d == "object" && d !== null && d.$$typeof === Ee && (d._payload.status === "fulfilled" ? A(d._payload.value) && d._payload.value._store && (d._payload.value._store.validated = 1) : d._store && (d._store.validated = 1));
220
220
  }
221
- function O(d) {
222
- return typeof d == "object" && d !== null && d.$$typeof === I;
221
+ function A(d) {
222
+ return typeof d == "object" && d !== null && d.$$typeof === L;
223
223
  }
224
- var A = $t, I = /* @__PURE__ */ Symbol.for("react.transitional.element"), W = /* @__PURE__ */ Symbol.for("react.portal"), ne = /* @__PURE__ */ Symbol.for("react.fragment"), ve = /* @__PURE__ */ Symbol.for("react.strict_mode"), be = /* @__PURE__ */ Symbol.for("react.profiler"), M = /* @__PURE__ */ Symbol.for("react.consumer"), U = /* @__PURE__ */ Symbol.for("react.context"), T = /* @__PURE__ */ Symbol.for("react.forward_ref"), Pe = /* @__PURE__ */ Symbol.for("react.suspense"), L = /* @__PURE__ */ Symbol.for("react.suspense_list"), z = /* @__PURE__ */ Symbol.for("react.memo"), Se = /* @__PURE__ */ Symbol.for("react.lazy"), Xe = /* @__PURE__ */ Symbol.for("react.activity"), ue = /* @__PURE__ */ Symbol.for("react.client.reference"), ae = A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ce = Object.prototype.hasOwnProperty, Ee = Array.isArray, N = console.createTask ? console.createTask : function() {
224
+ var P = $t, L = /* @__PURE__ */ Symbol.for("react.transitional.element"), B = /* @__PURE__ */ Symbol.for("react.portal"), ne = /* @__PURE__ */ Symbol.for("react.fragment"), be = /* @__PURE__ */ Symbol.for("react.strict_mode"), Se = /* @__PURE__ */ Symbol.for("react.profiler"), N = /* @__PURE__ */ Symbol.for("react.consumer"), q = /* @__PURE__ */ Symbol.for("react.context"), V = /* @__PURE__ */ Symbol.for("react.forward_ref"), Ce = /* @__PURE__ */ Symbol.for("react.suspense"), z = /* @__PURE__ */ Symbol.for("react.suspense_list"), D = /* @__PURE__ */ Symbol.for("react.memo"), Ee = /* @__PURE__ */ Symbol.for("react.lazy"), Xe = /* @__PURE__ */ Symbol.for("react.activity"), pe = /* @__PURE__ */ Symbol.for("react.client.reference"), ae = P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ke = Object.prototype.hasOwnProperty, Re = Array.isArray, I = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
- A = {
227
+ P = {
228
228
  react_stack_bottom_frame: function(d) {
229
229
  return d();
230
230
  }
231
231
  };
232
- var J, ee = {}, pe = A.react_stack_bottom_frame.bind(
233
- A,
232
+ var Z, ee = {}, me = P.react_stack_bottom_frame.bind(
233
+ P,
234
234
  s
235
- )(), D = N(n(s)), me = {};
236
- ye.Fragment = ne, ye.jsx = function(d, x, v) {
235
+ )(), F = I(n(s)), fe = {};
236
+ we.Fragment = ne, we.jsx = function(d, x, v) {
237
237
  var b = 1e4 > ae.recentlyCreatedOwnerStacks++;
238
238
  return m(
239
239
  d,
240
240
  x,
241
241
  v,
242
242
  !1,
243
- b ? Error("react-stack-top-frame") : pe,
244
- b ? N(n(d)) : D
243
+ b ? Error("react-stack-top-frame") : me,
244
+ b ? I(n(d)) : F
245
245
  );
246
- }, ye.jsxs = function(d, x, v) {
246
+ }, we.jsxs = function(d, x, v) {
247
247
  var b = 1e4 > ae.recentlyCreatedOwnerStacks++;
248
248
  return m(
249
249
  d,
250
250
  x,
251
251
  v,
252
252
  !0,
253
- b ? Error("react-stack-top-frame") : pe,
254
- b ? N(n(d)) : D
253
+ b ? Error("react-stack-top-frame") : me,
254
+ b ? I(n(d)) : F
255
255
  );
256
256
  };
257
- })()), ye;
257
+ })()), we;
258
258
  }
259
259
  var rt;
260
260
  function Ft() {
261
- return rt || (rt = 1, process.env.NODE_ENV === "production" ? Re.exports = zt() : Re.exports = Dt()), Re.exports;
261
+ return rt || (rt = 1, process.env.NODE_ENV === "production" ? Oe.exports = zt() : Oe.exports = Dt()), Oe.exports;
262
262
  }
263
263
  var o = Ft();
264
264
  const Ht = ({ children: e }) => {
265
- const t = de(null), [r, n] = C(null);
265
+ const t = ue(null), [r, n] = S(null);
266
266
  return K(() => {
267
267
  if (t.current && !t.current.shadowRoot) {
268
268
  const a = t.current.attachShadow({ mode: "open" });
@@ -353,7 +353,7 @@ const Xt = [
353
353
  const Zt = [
354
354
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
355
355
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
356
- ], le = _("circle-check", Zt);
356
+ ], de = _("circle-check", Zt);
357
357
  const Kt = [
358
358
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
359
359
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
@@ -395,7 +395,7 @@ const ir = [
395
395
  key: "18887p"
396
396
  }
397
397
  ]
398
- ], je = _("message-square", ir);
398
+ ], Ae = _("message-square", ir);
399
399
  const cr = [
400
400
  [
401
401
  "path",
@@ -542,19 +542,19 @@ const xr = [
542
542
  apiKey: r,
543
543
  baseUrl: n = "https://view-gate.vercel.app"
544
544
  }) => {
545
- const [a, s] = C(!1), [c, i] = C([]);
545
+ const [a, s] = S(!1), [c, i] = S([]);
546
546
  K(() => {
547
547
  s(vr());
548
548
  }, []);
549
549
  const u = () => {
550
550
  if (sessionStorage.removeItem(Ue), s(!1), typeof window < "u") {
551
- const h = new URL(window.location.href);
552
- h.searchParams.delete("viewgate"), window.history.replaceState({}, "", h.toString());
551
+ const f = new URL(window.location.href);
552
+ f.searchParams.delete("viewgate"), window.history.replaceState({}, "", f.toString());
553
553
  }
554
- }, p = (h, O) => {
555
- const A = Date.now();
556
- i((I) => [...I, { id: A, message: h, type: O }]), setTimeout(() => {
557
- i((I) => I.filter((W) => W.id !== A));
554
+ }, p = (f, A) => {
555
+ const P = Date.now();
556
+ i((L) => [...L, { id: P, message: f, type: A }]), setTimeout(() => {
557
+ i((L) => L.filter((B) => B.id !== P));
558
558
  }, 4e3);
559
559
  }, m = yr[t];
560
560
  return /* @__PURE__ */ o.jsxs(vt.Provider, { "data-source-path": "/src/components/ViewGateProvider.tsx:252", value: {
@@ -568,14 +568,14 @@ const xr = [
568
568
  }, children: [
569
569
  e,
570
570
  a && /* @__PURE__ */ o.jsx(Ht, { "data-source-path": "/src/components/ViewGateProvider.tsx:263", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:264", className: "vg-container", children: [
571
- /* @__PURE__ */ o.jsx(Vn, { "data-source-path": "/src/components/ViewGateProvider.tsx:265" }),
572
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:266", className: "vg-toasts", style: { zIndex: 2147483646 }, children: c.map((h) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:268", className: `vg-toast vg-animate-slide ${h.type}`, children: [
573
- h.type === "success" ? /* @__PURE__ */ o.jsx(le, { "data-source-path": "/src/components/ViewGateProvider.tsx:270", size: 24, color: "#22c55e" }) : /* @__PURE__ */ o.jsx(Jt, { "data-source-path": "/src/components/ViewGateProvider.tsx:272", size: 24, color: "#ef4444" }),
571
+ /* @__PURE__ */ o.jsx(An, { "data-source-path": "/src/components/ViewGateProvider.tsx:265" }),
572
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:266", className: "vg-toasts", style: { zIndex: 2147483646 }, children: c.map((f) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:268", className: `vg-toast vg-animate-slide ${f.type}`, children: [
573
+ f.type === "success" ? /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateProvider.tsx:270", size: 24, color: "#22c55e" }) : /* @__PURE__ */ o.jsx(Jt, { "data-source-path": "/src/components/ViewGateProvider.tsx:272", size: 24, color: "#ef4444" }),
574
574
  /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:274", children: [
575
- /* @__PURE__ */ o.jsx("strong", { "data-source-path": "/src/components/ViewGateProvider.tsx:275", style: { display: "block", fontSize: "13px", color: "#0f172a", textTransform: "uppercase", marginBottom: "2px" }, children: h.type === "success" ? m.successHeader : m.errorHeader }),
576
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateProvider.tsx:278", style: { fontSize: "14px", color: "#000000" }, children: h.message })
575
+ /* @__PURE__ */ o.jsx("strong", { "data-source-path": "/src/components/ViewGateProvider.tsx:275", style: { display: "block", fontSize: "13px", color: "#0f172a", textTransform: "uppercase", marginBottom: "2px" }, children: f.type === "success" ? m.successHeader : m.errorHeader }),
576
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateProvider.tsx:278", style: { fontSize: "14px", color: "#000000" }, children: f.message })
577
577
  ] })
578
- ] }, h.id)) })
578
+ ] }, f.id)) })
579
579
  ] }) })
580
580
  ] });
581
581
  };
@@ -603,20 +603,20 @@ function Q(e) {
603
603
  t.push(e[r]);
604
604
  return t;
605
605
  }
606
- let ie = null;
606
+ let ce = null;
607
607
  function bt(e = {}) {
608
- return ie || (e.includeStyleProperties ? (ie = e.includeStyleProperties, ie) : (ie = Q(window.getComputedStyle(document.documentElement)), ie));
608
+ return ce || (e.includeStyleProperties ? (ce = e.includeStyleProperties, ce) : (ce = Q(window.getComputedStyle(document.documentElement)), ce));
609
609
  }
610
- function Ve(e, t) {
610
+ function Te(e, t) {
611
611
  const n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
612
612
  return n ? parseFloat(n.replace("px", "")) : 0;
613
613
  }
614
614
  function Cr(e) {
615
- const t = Ve(e, "border-left-width"), r = Ve(e, "border-right-width");
615
+ const t = Te(e, "border-left-width"), r = Te(e, "border-right-width");
616
616
  return e.clientWidth + t + r;
617
617
  }
618
618
  function Er(e) {
619
- const t = Ve(e, "border-top-width"), r = Ve(e, "border-bottom-width");
619
+ const t = Te(e, "border-top-width"), r = Te(e, "border-bottom-width");
620
620
  return e.clientHeight + t + r;
621
621
  }
622
622
  function St(e, t = {}) {
@@ -632,11 +632,11 @@ function kr() {
632
632
  const r = t && t.env ? t.env.devicePixelRatio : null;
633
633
  return r && (e = parseInt(r, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
634
634
  }
635
- const $ = 16384;
635
+ const M = 16384;
636
636
  function Rr(e) {
637
- (e.width > $ || e.height > $) && (e.width > $ && e.height > $ ? e.width > e.height ? (e.height *= $ / e.width, e.width = $) : (e.width *= $ / e.height, e.height = $) : e.width > $ ? (e.height *= $ / e.width, e.width = $) : (e.width *= $ / e.height, e.height = $));
637
+ (e.width > M || e.height > M) && (e.width > M && e.height > M ? e.width > e.height ? (e.height *= M / e.width, e.width = M) : (e.width *= M / e.height, e.height = M) : e.width > M ? (e.height *= M / e.width, e.width = M) : (e.width *= M / e.height, e.height = M));
638
638
  }
639
- function Te(e) {
639
+ function _e(e) {
640
640
  return new Promise((t, r) => {
641
641
  const n = new Image();
642
642
  n.onload = () => {
@@ -653,24 +653,24 @@ async function Or(e, t, r) {
653
653
  const n = "http://www.w3.org/2000/svg", a = document.createElementNS(n, "svg"), s = document.createElementNS(n, "foreignObject");
654
654
  return a.setAttribute("width", `${t}`), a.setAttribute("height", `${r}`), a.setAttribute("viewBox", `0 0 ${t} ${r}`), s.setAttribute("width", "100%"), s.setAttribute("height", "100%"), s.setAttribute("x", "0"), s.setAttribute("y", "0"), s.setAttribute("externalResourcesRequired", "true"), a.appendChild(s), s.appendChild(e), jr(a);
655
655
  }
656
- const G = (e, t) => {
656
+ const $ = (e, t) => {
657
657
  if (e instanceof t)
658
658
  return !0;
659
659
  const r = Object.getPrototypeOf(e);
660
- return r === null ? !1 : r.constructor.name === t.name || G(r, t);
660
+ return r === null ? !1 : r.constructor.name === t.name || $(r, t);
661
661
  };
662
- function Vr(e) {
662
+ function Ar(e) {
663
663
  const t = e.getPropertyValue("content");
664
664
  return `${e.cssText} content: '${t.replace(/'|"/g, "")}';`;
665
665
  }
666
- function Tr(e, t) {
666
+ function Vr(e, t) {
667
667
  return bt(t).map((r) => {
668
668
  const n = e.getPropertyValue(r), a = e.getPropertyPriority(r);
669
669
  return `${r}: ${n}${a ? " !important" : ""};`;
670
670
  }).join(" ");
671
671
  }
672
- function _r(e, t, r, n) {
673
- const a = `.${e}:${t}`, s = r.cssText ? Vr(r) : Tr(r, n);
672
+ function Tr(e, t, r, n) {
673
+ const a = `.${e}:${t}`, s = r.cssText ? Ar(r) : Vr(r, n);
674
674
  return document.createTextNode(`${a}{${s}}`);
675
675
  }
676
676
  function ct(e, t, r, n) {
@@ -684,9 +684,9 @@ function ct(e, t, r, n) {
684
684
  return;
685
685
  }
686
686
  const i = document.createElement("style");
687
- i.appendChild(_r(c, r, a, n)), t.appendChild(i);
687
+ i.appendChild(Tr(c, r, a, n)), t.appendChild(i);
688
688
  }
689
- function Ar(e, t, r) {
689
+ function _r(e, t, r) {
690
690
  ct(e, t, ":before", r), ct(e, t, ":after", r);
691
691
  }
692
692
  const lt = "application/font-woff", dt = "image/jpeg", Pr = {
@@ -758,29 +758,29 @@ async function Ye(e, t, r) {
758
758
  }
759
759
  async function Ir(e) {
760
760
  const t = e.toDataURL();
761
- return t === "data:," ? e.cloneNode(!1) : Te(t);
761
+ return t === "data:," ? e.cloneNode(!1) : _e(t);
762
762
  }
763
763
  async function Lr(e, t) {
764
764
  if (e.currentSrc) {
765
765
  const s = document.createElement("canvas"), c = s.getContext("2d");
766
766
  s.width = e.clientWidth, s.height = e.clientHeight, c?.drawImage(e, 0, 0, s.width, s.height);
767
767
  const i = s.toDataURL();
768
- return Te(i);
768
+ return _e(i);
769
769
  }
770
770
  const r = e.poster, n = qe(r), a = await Ye(r, n, t);
771
- return Te(a);
771
+ return _e(a);
772
772
  }
773
773
  async function zr(e, t) {
774
774
  var r;
775
775
  try {
776
776
  if (!((r = e?.contentDocument) === null || r === void 0) && r.body)
777
- return await _e(e.contentDocument.body, t, !0);
777
+ return await Pe(e.contentDocument.body, t, !0);
778
778
  } catch {
779
779
  }
780
780
  return e.cloneNode(!1);
781
781
  }
782
782
  async function Dr(e, t) {
783
- return G(e, HTMLCanvasElement) ? Ir(e) : G(e, HTMLVideoElement) ? Lr(e, t) : G(e, HTMLIFrameElement) ? zr(e, t) : e.cloneNode(Et(e));
783
+ return $(e, HTMLCanvasElement) ? Ir(e) : $(e, HTMLVideoElement) ? Lr(e, t) : $(e, HTMLIFrameElement) ? zr(e, t) : e.cloneNode(Et(e));
784
784
  }
785
785
  const Fr = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", Et = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
786
786
  async function Hr(e, t, r) {
@@ -788,7 +788,7 @@ async function Hr(e, t, r) {
788
788
  if (Et(t))
789
789
  return t;
790
790
  let s = [];
791
- return Fr(e) && e.assignedNodes ? s = Q(e.assignedNodes()) : G(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = Q(e.contentDocument.body.childNodes) : s = Q(((a = e.shadowRoot) !== null && a !== void 0 ? a : e).childNodes), s.length === 0 || G(e, HTMLVideoElement) || await s.reduce((c, i) => c.then(() => _e(i, r)).then((u) => {
791
+ return Fr(e) && e.assignedNodes ? s = Q(e.assignedNodes()) : $(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = Q(e.contentDocument.body.childNodes) : s = Q(((a = e.shadowRoot) !== null && a !== void 0 ? a : e).childNodes), s.length === 0 || $(e, HTMLVideoElement) || await s.reduce((c, i) => c.then(() => Pe(i, r)).then((u) => {
792
792
  u && t.appendChild(u);
793
793
  }), Promise.resolve()), t;
794
794
  }
@@ -799,20 +799,20 @@ function Wr(e, t, r) {
799
799
  const a = window.getComputedStyle(e);
800
800
  a.cssText ? (n.cssText = a.cssText, n.transformOrigin = a.transformOrigin) : bt(r).forEach((s) => {
801
801
  let c = a.getPropertyValue(s);
802
- s === "font-size" && c.endsWith("px") && (c = `${Math.floor(parseFloat(c.substring(0, c.length - 2))) - 0.1}px`), G(e, HTMLIFrameElement) && s === "display" && c === "inline" && (c = "block"), s === "d" && t.getAttribute("d") && (c = `path(${t.getAttribute("d")})`), n.setProperty(s, c, a.getPropertyPriority(s));
802
+ s === "font-size" && c.endsWith("px") && (c = `${Math.floor(parseFloat(c.substring(0, c.length - 2))) - 0.1}px`), $(e, HTMLIFrameElement) && s === "display" && c === "inline" && (c = "block"), s === "d" && t.getAttribute("d") && (c = `path(${t.getAttribute("d")})`), n.setProperty(s, c, a.getPropertyPriority(s));
803
803
  });
804
804
  }
805
805
  function Ur(e, t) {
806
- G(e, HTMLTextAreaElement) && (t.innerHTML = e.value), G(e, HTMLInputElement) && t.setAttribute("value", e.value);
806
+ $(e, HTMLTextAreaElement) && (t.innerHTML = e.value), $(e, HTMLInputElement) && t.setAttribute("value", e.value);
807
807
  }
808
808
  function Br(e, t) {
809
- if (G(e, HTMLSelectElement)) {
809
+ if ($(e, HTMLSelectElement)) {
810
810
  const n = Array.from(t.children).find((a) => e.value === a.getAttribute("value"));
811
811
  n && n.setAttribute("selected", "");
812
812
  }
813
813
  }
814
814
  function qr(e, t, r) {
815
- return G(t, Element) && (Wr(e, t, r), Ar(e, t, r), Ur(e, t), Br(e, t)), t;
815
+ return $(t, Element) && (Wr(e, t, r), _r(e, t, r), Ur(e, t), Br(e, t)), t;
816
816
  }
817
817
  async function Yr(e, t) {
818
818
  const r = e.querySelectorAll ? e.querySelectorAll("use") : [];
@@ -823,7 +823,7 @@ async function Yr(e, t) {
823
823
  const i = r[s].getAttribute("xlink:href");
824
824
  if (i) {
825
825
  const u = e.querySelector(i), p = document.querySelector(i);
826
- !u && p && !n[i] && (n[i] = await _e(p, t, !0));
826
+ !u && p && !n[i] && (n[i] = await Pe(p, t, !0));
827
827
  }
828
828
  }
829
829
  const a = Object.values(n);
@@ -838,7 +838,7 @@ async function Yr(e, t) {
838
838
  }
839
839
  return e;
840
840
  }
841
- async function _e(e, t, r) {
841
+ async function Pe(e, t, r) {
842
842
  return !r && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((n) => Dr(n, t)).then((n) => Hr(e, n, t)).then((n) => qr(e, n, t)).then((n) => Yr(n, t));
843
843
  }
844
844
  const kt = /url\((['"]?)([^'"]+?)\1\)/g, Xr = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, Jr = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
@@ -879,7 +879,7 @@ async function jt(e, t, r) {
879
879
  const n = en(e, r);
880
880
  return Kr(n).reduce((s, c) => s.then((i) => Qr(i, c, t, r)), Promise.resolve(n));
881
881
  }
882
- async function ce(e, t, r) {
882
+ async function le(e, t, r) {
883
883
  var n;
884
884
  const a = (n = t.style) === null || n === void 0 ? void 0 : n.getPropertyValue(e);
885
885
  if (a) {
@@ -889,11 +889,11 @@ async function ce(e, t, r) {
889
889
  return !1;
890
890
  }
891
891
  async function tn(e, t) {
892
- await ce("background", e, t) || await ce("background-image", e, t), await ce("mask", e, t) || await ce("-webkit-mask", e, t) || await ce("mask-image", e, t) || await ce("-webkit-mask-image", e, t);
892
+ await le("background", e, t) || await le("background-image", e, t), await le("mask", e, t) || await le("-webkit-mask", e, t) || await le("mask-image", e, t) || await le("-webkit-mask-image", e, t);
893
893
  }
894
894
  async function rn(e, t) {
895
- const r = G(e, HTMLImageElement);
896
- if (!(r && !Be(e.src)) && !(G(e, SVGImageElement) && !Be(e.href.baseVal)))
895
+ const r = $(e, HTMLImageElement);
896
+ if (!(r && !Be(e.src)) && !($(e, SVGImageElement) && !Be(e.href.baseVal)))
897
897
  return;
898
898
  const n = r ? e.src : e.href.baseVal, a = await Ye(n, qe(n), t);
899
899
  await new Promise((s, c) => {
@@ -913,7 +913,7 @@ async function nn(e, t) {
913
913
  await Promise.all(n).then(() => e);
914
914
  }
915
915
  async function Ot(e, t) {
916
- G(e, Element) && (await tn(e, t), await rn(e, t), await nn(e, t));
916
+ $(e, Element) && (await tn(e, t), await rn(e, t), await nn(e, t));
917
917
  }
918
918
  function an(e, t) {
919
919
  const { style: r } = e;
@@ -973,13 +973,13 @@ async function sn(e, t) {
973
973
  Q(a.cssRules || []).forEach((s, c) => {
974
974
  if (s.type === CSSRule.IMPORT_RULE) {
975
975
  let i = c + 1;
976
- const u = s.href, p = pt(u).then((m) => mt(m, t)).then((m) => ft(m).forEach((h) => {
976
+ const u = s.href, p = pt(u).then((m) => mt(m, t)).then((m) => ft(m).forEach((f) => {
977
977
  try {
978
- a.insertRule(h, h.startsWith("@import") ? i += 1 : a.cssRules.length);
979
- } catch (O) {
978
+ a.insertRule(f, f.startsWith("@import") ? i += 1 : a.cssRules.length);
979
+ } catch (A) {
980
980
  console.error("Error inserting rule from remote css", {
981
- rule: h,
982
- error: O
981
+ rule: f,
982
+ error: A
983
983
  });
984
984
  }
985
985
  })).catch((m) => {
@@ -1016,14 +1016,14 @@ async function cn(e, t) {
1016
1016
  const r = Q(e.ownerDocument.styleSheets), n = await sn(r, t);
1017
1017
  return on(n);
1018
1018
  }
1019
- function Vt(e) {
1019
+ function At(e) {
1020
1020
  return e.trim().replace(/["']/g, "");
1021
1021
  }
1022
1022
  function ln(e) {
1023
1023
  const t = /* @__PURE__ */ new Set();
1024
1024
  function r(n) {
1025
1025
  (n.style.fontFamily || getComputedStyle(n).fontFamily).split(",").forEach((s) => {
1026
- t.add(Vt(s));
1026
+ t.add(At(s));
1027
1027
  }), Array.from(n.children).forEach((s) => {
1028
1028
  s instanceof HTMLElement && r(s);
1029
1029
  });
@@ -1032,7 +1032,7 @@ function ln(e) {
1032
1032
  }
1033
1033
  async function dn(e, t) {
1034
1034
  const r = await cn(e, t), n = ln(e);
1035
- return (await Promise.all(r.filter((s) => n.has(Vt(s.style.fontFamily))).map((s) => {
1035
+ return (await Promise.all(r.filter((s) => n.has(At(s.style.fontFamily))).map((s) => {
1036
1036
  const c = s.parentStyleSheet ? s.parentStyleSheet.href : null;
1037
1037
  return jt(s.cssText, c, t);
1038
1038
  }))).join(`
@@ -1046,17 +1046,17 @@ async function un(e, t) {
1046
1046
  }
1047
1047
  }
1048
1048
  async function pn(e, t = {}) {
1049
- const { width: r, height: n } = St(e, t), a = await _e(e, t, !0);
1049
+ const { width: r, height: n } = St(e, t), a = await Pe(e, t, !0);
1050
1050
  return await un(a, t), await Ot(a, t), an(a, t), await Or(a, r, n);
1051
1051
  }
1052
1052
  async function mn(e, t = {}) {
1053
- const { width: r, height: n } = St(e, t), a = await pn(e, t), s = await Te(a), c = document.createElement("canvas"), i = c.getContext("2d"), u = t.pixelRatio || kr(), p = t.canvasWidth || r, m = t.canvasHeight || n;
1053
+ const { width: r, height: n } = St(e, t), a = await pn(e, t), s = await _e(a), c = document.createElement("canvas"), i = c.getContext("2d"), u = t.pixelRatio || kr(), p = t.canvasWidth || r, m = t.canvasHeight || n;
1054
1054
  return c.width = p * u, c.height = m * u, t.skipAutoScale || Rr(c), c.style.width = `${p}`, c.style.height = `${m}`, t.backgroundColor && (i.fillStyle = t.backgroundColor, i.fillRect(0, 0, c.width, c.height)), i.drawImage(s, 0, 0, c.width, c.height), c;
1055
1055
  }
1056
1056
  async function fn(e, t = {}) {
1057
1057
  return (await mn(e, t)).toDataURL();
1058
1058
  }
1059
- const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 15, H = "data-vg-pin-id", yn = () => {
1059
+ const Ge = 2147483647, De = Ge, Fe = 2e6, hn = Ge - 10, gn = Ge - 5, xn = Ge - 15, U = "data-vg-pin-id", yn = () => {
1060
1060
  const e = window.innerWidth;
1061
1061
  return e < 768 ? "mobile" : e < 1024 ? "tablet" : "desktop";
1062
1062
  }, ht = (e, t) => {
@@ -1075,7 +1075,7 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1075
1075
  return "";
1076
1076
  }
1077
1077
  }, gt = ({ url: e, className: t, style: r, tooltipStyle: n, onHover: a }) => {
1078
- const s = de(null), c = () => {
1078
+ const s = ue(null), c = () => {
1079
1079
  if (!s.current || !a) return;
1080
1080
  const i = s.current.getBoundingClientRect(), u = i.top, p = window.innerHeight - i.bottom, m = u < 140 && p > u ? "bottom" : "top";
1081
1081
  a({
@@ -1106,7 +1106,7 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1106
1106
  ]
1107
1107
  }
1108
1108
  );
1109
- }, we = (e) => {
1109
+ }, ve = (e) => {
1110
1110
  const t = [], r = [], n = [];
1111
1111
  let a = e;
1112
1112
  for (; a && a.nodeType === Node.ELEMENT_NODE; ) {
@@ -1135,7 +1135,7 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1135
1135
  vgPath: n.join(" > ")
1136
1136
  };
1137
1137
  }, wn = (e) => {
1138
- const { vgPath: t } = we(e);
1138
+ const { vgPath: t } = ve(e);
1139
1139
  return {
1140
1140
  vgPath: t,
1141
1141
  classHash: e.className,
@@ -1177,13 +1177,13 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1177
1177
  const m = c.getContext("2d");
1178
1178
  if (m) {
1179
1179
  m.imageSmoothingEnabled = !0, m.imageSmoothingQuality = "high";
1180
- const h = (t.left - r) * n, O = (t.top - r) * n, A = u * n, I = p * n;
1180
+ const f = (t.left - r) * n, A = (t.top - r) * n, P = u * n, L = p * n;
1181
1181
  m.drawImage(
1182
1182
  s,
1183
- h,
1184
- O,
1183
+ f,
1185
1184
  A,
1186
- I,
1185
+ P,
1186
+ L,
1187
1187
  0,
1188
1188
  0,
1189
1189
  c.width,
@@ -1241,14 +1241,14 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1241
1241
  }
1242
1242
  const n = e.getBoundingClientRect();
1243
1243
  return !(n.width === 0 || n.height === 0 || n.top === 0 && n.left === 0 && n.width > window.innerWidth * 0.9);
1244
- }, Tt = (e, t = document) => {
1244
+ }, Vt = (e, t = document) => {
1245
1245
  const r = t.querySelector(e);
1246
1246
  if (r) return r;
1247
1247
  const n = t.querySelectorAll("*");
1248
1248
  for (const a of Array.from(n)) {
1249
1249
  const s = a.shadowRoot;
1250
1250
  if (s) {
1251
- const c = Tt(e, s);
1251
+ const c = Vt(e, s);
1252
1252
  if (c) return c;
1253
1253
  }
1254
1254
  }
@@ -1266,19 +1266,19 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1266
1266
  const t = Array.from(document.getElementsByTagName(e.tag));
1267
1267
  let r = null, n = 0;
1268
1268
  for (const a of t) {
1269
- if (!Oe(a, e)) continue;
1269
+ if (!Ve(a, e)) continue;
1270
1270
  let s = 0;
1271
1271
  const c = a.getAttribute("placeholder"), i = e.attributes?.placeholder || e.fingerprint?.placeholder;
1272
1272
  i && c === i && (s += 6);
1273
1273
  const u = a.getAttribute("type"), p = e.attributes?.type || e.fingerprint?.type;
1274
1274
  if (p && u === p && (s += 2), a.innerText?.trim() === e.text.trim() && (s += 5), e.fingerprint?.vgPath) {
1275
- const { vgPath: m } = we(a);
1275
+ const { vgPath: m } = ve(a);
1276
1276
  (m === e.vgPath || e.fingerprint?.vgPath === m) && (s += 10);
1277
1277
  }
1278
1278
  s > n && s >= 7 && (n = s, r = a);
1279
1279
  }
1280
1280
  return r;
1281
- }, Oe = (e, t) => {
1281
+ }, Ve = (e, t) => {
1282
1282
  if (e.tagName.toLowerCase() !== t.tag.toLowerCase()) return !1;
1283
1283
  const r = e.getAttribute("placeholder"), n = t.attributes?.placeholder || t.fingerprint?.placeholder;
1284
1284
  if (n && r && n !== r) return !1;
@@ -1286,25 +1286,25 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1286
1286
  return !(s && a && s !== a);
1287
1287
  }, Rn = (e, t) => {
1288
1288
  if (t) {
1289
- const c = Array.from(document.querySelectorAll(`[${H}="${t}"]`));
1289
+ const c = Array.from(document.querySelectorAll(`[${U}="${t}"]`));
1290
1290
  if (c.length > 0) {
1291
- const i = c.filter((u) => Oe(u, e));
1291
+ const i = c.filter((u) => Ve(u, e));
1292
1292
  if (i.length === 0)
1293
- c.forEach((u) => u.removeAttribute(H));
1293
+ c.forEach((u) => u.removeAttribute(U));
1294
1294
  else {
1295
1295
  const u = i.find((m) => {
1296
- const { vgPath: h } = we(m);
1297
- return h === e.vgPath || e.fingerprint?.vgPath === h;
1296
+ const { vgPath: f } = ve(m);
1297
+ return f === e.vgPath || e.fingerprint?.vgPath === f;
1298
1298
  }), p = u && re(u) ? u : i.find((m) => !(!re(m) || e.metadata?.isModal && !m.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));
1299
1299
  return p ? (c.forEach((m) => {
1300
- m !== p && m.removeAttribute(H);
1300
+ m !== p && m.removeAttribute(U);
1301
1301
  }), p) : null;
1302
1302
  }
1303
1303
  }
1304
1304
  }
1305
- const n = (e.selector ? Array.from(document.querySelectorAll(e.selector)) : []).filter((c) => Oe(c, e));
1305
+ const n = (e.selector ? Array.from(document.querySelectorAll(e.selector)) : []).filter((c) => Ve(c, e));
1306
1306
  let a = n.find((c) => {
1307
- const { vgPath: i } = we(c);
1307
+ const { vgPath: i } = ve(c);
1308
1308
  return i === e.vgPath || e.fingerprint?.vgPath === i;
1309
1309
  }) || n[0] || null;
1310
1310
  if (a && re(a))
@@ -1314,8 +1314,8 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1314
1314
  return a;
1315
1315
  if (e.fallbackSelectors)
1316
1316
  for (const c of e.fallbackSelectors) {
1317
- const i = Tt(c);
1318
- if (i && Oe(i, e) && re(i)) {
1317
+ const i = Vt(c);
1318
+ if (i && Ve(i, e) && re(i)) {
1319
1319
  if (e.metadata?.isModal && !i.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')) continue;
1320
1320
  return i;
1321
1321
  }
@@ -1350,10 +1350,10 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1350
1350
  }
1351
1351
  r = r.parentElement;
1352
1352
  }
1353
- const n = Cn(e), { selector: a, fallbacks: s, vgPath: c } = we(e), i = {};
1353
+ const n = Cn(e), { selector: a, fallbacks: s, vgPath: c } = ve(e), i = {};
1354
1354
  ["placeholder", "aria-label", "name", "type", "alt", "title", "value", "role"].forEach((m) => {
1355
- const h = e.getAttribute(m);
1356
- h && (i[m] = h);
1355
+ const f = e.getAttribute(m);
1356
+ f && (i[m] = f);
1357
1357
  });
1358
1358
  const u = !!e.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content'), p = `${e.tagName.toLowerCase()}-${(e.innerText || "").slice(0, 20).replace(/\s+/g, "_")}-${a.split(" > ").slice(-1)}`;
1359
1359
  return {
@@ -1383,103 +1383,104 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1383
1383
  isModal: u
1384
1384
  }
1385
1385
  };
1386
- }, Vn = () => {
1387
- const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: c } = wr(), [i, u] = C(!1), [p, m] = C(null), [h, O] = C(null), [A, I] = C(""), [W, ne] = C(!1), [ve, be] = C(!1), [M, U] = C(!1), [T, Pe] = C([]), [L, z] = C(null), [Se, Xe] = C(!1), [ue, ae] = C(!1), [Ce, Ee] = C({}), [N, J] = C(null), [ee, pe] = C(!1), [D, me] = C(null), [d, x] = C([]), v = It(() => {
1388
- if (!N) return T;
1389
- const l = d.find((g) => g.annotations.some((y) => y._id === N));
1390
- return l ? l.annotations : T.filter((g) => g._id === N);
1391
- }, [N, T, d]), [b, se] = C(() => {
1386
+ }, An = () => {
1387
+ const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: c } = wr(), [i, u] = S(!1), [p, m] = S(null), [f, A] = S(null), [P, L] = S(""), [B, ne] = S(!1), [be, Se] = S(!1), [N, q] = S(!1), [V, Ce] = S([]), [z, D] = S(null), [Ee, Xe] = S(!1), [pe, ae] = S(!1), [ke, Re] = S({}), [I, Z] = S(null), [ee, me] = S(!1), [F, fe] = S(null), [d, x] = S([]), v = It(() => {
1388
+ const l = Array.isArray(V) ? V : [];
1389
+ if (!I) return l;
1390
+ const h = d.find((g) => g.annotations && Array.isArray(g.annotations) && g.annotations.some((E) => E._id === I));
1391
+ return h ? h.annotations : l.filter((g) => g._id === I);
1392
+ }, [I, V, d]), [b, se] = S(() => {
1392
1393
  if (typeof window > "u") return { top: 24, right: 24 };
1393
1394
  const l = localStorage.getItem("vg-exit-pos");
1394
1395
  return l ? JSON.parse(l) : { top: 24, right: 24 };
1395
- }), [B, k] = C(!1), V = de(null), [F, Ge] = C(() => {
1396
+ }), [Y, k] = S(!1), T = ue(null), [H, $e] = S(() => {
1396
1397
  if (typeof window > "u") return { bottom: 30, right: 30 };
1397
1398
  const l = localStorage.getItem("vg-bar-pos");
1398
1399
  return l ? JSON.parse(l) : { bottom: 30, right: 30 };
1399
- }), [fe, Je] = C(!1), q = de(null), At = (l) => {
1400
+ }), [he, Je] = S(!1), X = ue(null), _t = (l) => {
1400
1401
  l.preventDefault(), l.stopPropagation();
1401
- const g = l.currentTarget.parentElement?.getBoundingClientRect();
1402
- g && (k(!0), V.current = {
1402
+ const h = l.currentTarget.parentElement?.getBoundingClientRect();
1403
+ h && (k(!0), T.current = {
1403
1404
  x: l.clientX,
1404
1405
  y: l.clientY,
1405
1406
  top: b.top,
1406
1407
  right: b.right,
1407
- width: g.width,
1408
- height: g.height
1408
+ width: h.width,
1409
+ height: h.height
1409
1410
  });
1410
1411
  }, Pt = (l) => {
1411
1412
  l.preventDefault(), l.stopPropagation();
1412
- const g = l.currentTarget.parentElement?.getBoundingClientRect();
1413
- g && (Je(!0), q.current = {
1413
+ const h = l.currentTarget.parentElement?.getBoundingClientRect();
1414
+ h && (Je(!0), X.current = {
1414
1415
  x: l.clientX,
1415
1416
  y: l.clientY,
1416
- bottom: F.bottom,
1417
- right: F.right,
1418
- width: g.width,
1419
- height: g.height
1417
+ bottom: H.bottom,
1418
+ right: H.right,
1419
+ width: h.width,
1420
+ height: h.height
1420
1421
  });
1421
1422
  };
1422
1423
  K(() => {
1423
- if (!B && !fe) return;
1424
- const l = (y) => {
1425
- if (B && V.current) {
1426
- const E = y.clientX - V.current.x, R = y.clientY - V.current.y;
1427
- let j = V.current.top + R, f = V.current.right - E;
1428
- const w = 10;
1429
- j = Math.max(w, Math.min(window.innerHeight - V.current.height - w, j)), f = Math.max(w, Math.min(window.innerWidth - V.current.width - w, f)), se({ top: j, right: f });
1424
+ if (!Y && !he) return;
1425
+ const l = (g) => {
1426
+ if (Y && T.current) {
1427
+ const E = g.clientX - T.current.x, R = g.clientY - T.current.y;
1428
+ let O = T.current.top + R, w = T.current.right - E;
1429
+ const y = 10;
1430
+ O = Math.max(y, Math.min(window.innerHeight - T.current.height - y, O)), w = Math.max(y, Math.min(window.innerWidth - T.current.width - y, w)), se({ top: O, right: w });
1430
1431
  }
1431
- if (fe && q.current) {
1432
- const E = y.clientX - q.current.x, R = y.clientY - q.current.y;
1433
- let j = q.current.bottom - R, f = q.current.right - E;
1434
- const w = 10;
1435
- j = Math.max(w, Math.min(window.innerHeight - q.current.height - w, j)), f = Math.max(w, Math.min(window.innerWidth - q.current.width - w, f)), Ge({ bottom: j, right: f });
1432
+ if (he && X.current) {
1433
+ const E = g.clientX - X.current.x, R = g.clientY - X.current.y;
1434
+ let O = X.current.bottom - R, w = X.current.right - E;
1435
+ const y = 10;
1436
+ O = Math.max(y, Math.min(window.innerHeight - X.current.height - y, O)), w = Math.max(y, Math.min(window.innerWidth - X.current.width - y, w)), $e({ bottom: O, right: w });
1436
1437
  }
1437
- }, g = () => {
1438
- B && (k(!1), localStorage.setItem("vg-exit-pos", JSON.stringify(b)), V.current = null), fe && (Je(!1), localStorage.setItem("vg-bar-pos", JSON.stringify(F)), q.current = null);
1438
+ }, h = () => {
1439
+ Y && (k(!1), localStorage.setItem("vg-exit-pos", JSON.stringify(b)), T.current = null), he && (Je(!1), localStorage.setItem("vg-bar-pos", JSON.stringify(H)), X.current = null);
1439
1440
  };
1440
- return window.addEventListener("mousemove", l), window.addEventListener("mouseup", g), () => {
1441
- window.removeEventListener("mousemove", l), window.removeEventListener("mouseup", g);
1441
+ return window.addEventListener("mousemove", l), window.addEventListener("mouseup", h), () => {
1442
+ window.removeEventListener("mousemove", l), window.removeEventListener("mouseup", h);
1442
1443
  };
1443
- }, [B, fe, b, F]);
1444
- const [Ze, $e] = C(null), [Ke, Qe] = C(""), [Tn, _n] = C({}), he = de(null), ge = de(null), oe = ke(() => {
1445
- ge.current || (ge.current = requestAnimationFrame(() => {
1446
- const l = /* @__PURE__ */ new Map(), g = new Set(T.map((f) => f._id));
1447
- document.querySelectorAll(`[${H}]`).forEach((f) => {
1448
- const w = f.getAttribute(H);
1449
- w && !g.has(w) && f.removeAttribute(H);
1444
+ }, [Y, he, b, H]);
1445
+ const [Ze, Me] = S(null), [Ke, Qe] = S(""), [Vn, Tn] = S({}), ge = ue(null), xe = ue(null), oe = je(() => {
1446
+ xe.current || (xe.current = requestAnimationFrame(() => {
1447
+ const l = /* @__PURE__ */ new Map(), h = Array.isArray(V) ? V : [], g = new Set(h.map((y) => y._id));
1448
+ document.querySelectorAll(`[${U}]`).forEach((y) => {
1449
+ const j = y.getAttribute(U);
1450
+ j && !g.has(j) && y.removeAttribute(U);
1450
1451
  });
1451
- const E = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((f) => En(f) && re(f)), R = !!E;
1452
- T.forEach((f) => {
1453
- if (!f.reference) return;
1454
- const w = Rn(f.reference, f._id);
1455
- if (!w || !re(w)) return;
1456
- const P = !!f.reference.metadata?.isModal;
1457
- let Y = !1;
1458
- if (R ? Y = E.contains(w) : Y = !P, !Y) return;
1459
- const X = w.getAttribute(H);
1460
- X !== f._id && (document.querySelectorAll(`[${H}="${f._id}"]`).forEach((S) => {
1461
- S.removeAttribute(H);
1462
- }), X || w.setAttribute(H, f._id)), l.has(w) || l.set(w, []), l.get(w).push(f);
1452
+ const R = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((y) => En(y) && re(y)), O = !!R;
1453
+ V.forEach((y) => {
1454
+ if (!y.reference) return;
1455
+ const j = Rn(y.reference, y._id);
1456
+ if (!j || !re(j)) return;
1457
+ const J = !!y.reference.metadata?.isModal;
1458
+ let W = !1;
1459
+ if (O ? W = R.contains(j) : W = !J, !W) return;
1460
+ const C = j.getAttribute(U);
1461
+ C !== y._id && (document.querySelectorAll(`[${U}="${y._id}"]`).forEach((G) => {
1462
+ G.removeAttribute(U);
1463
+ }), C || j.setAttribute(U, y._id)), l.has(j) || l.set(j, []), l.get(j).push(y);
1463
1464
  });
1464
- const j = [];
1465
- l.forEach((f, w) => {
1466
- const P = w.getBoundingClientRect(), Y = P.left + P.width / 2, X = P.top + P.height / 2;
1467
- if (Y >= 0 && Y <= window.innerWidth && X >= 0 && X <= window.innerHeight) {
1468
- const S = document.elementFromPoint(Y, X);
1469
- if (S && !w.contains(S) && !he.current?.contains(S))
1465
+ const w = [];
1466
+ l.forEach((y, j) => {
1467
+ const J = j.getBoundingClientRect(), W = J.left + J.width / 2, C = J.top + J.height / 2;
1468
+ if (W >= 0 && W <= window.innerWidth && C >= 0 && C <= window.innerHeight) {
1469
+ const G = document.elementFromPoint(W, C);
1470
+ if (G && !j.contains(G) && !ge.current?.contains(G))
1470
1471
  return;
1471
1472
  }
1472
- j.push({
1473
- id: f[0]._id,
1473
+ w.push({
1474
+ id: y[0]._id,
1474
1475
  // Group identified by its primary annotation
1475
- element: w,
1476
- rect: P,
1477
- annotations: f.sort((S, Z) => new Date(Z.timestamp || Z.createdAt).getTime() - new Date(S.timestamp || S.createdAt).getTime()),
1478
- isModal: !!f[0].reference?.metadata?.isModal
1476
+ element: j,
1477
+ rect: J,
1478
+ annotations: y.sort((G, ie) => new Date(ie.timestamp || ie.createdAt).getTime() - new Date(G.timestamp || G.createdAt).getTime()),
1479
+ isModal: !!y[0].reference?.metadata?.isModal
1479
1480
  });
1480
- }), x(j), ge.current = null;
1481
+ }), x(w), xe.current = null;
1481
1482
  }));
1482
- }, [T]), te = ke(async () => {
1483
+ }, [V]), te = je(async () => {
1483
1484
  if (n) {
1484
1485
  ae(!0);
1485
1486
  try {
@@ -1487,8 +1488,13 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1487
1488
  headers: { "x-api-key": n }
1488
1489
  });
1489
1490
  if (l.ok) {
1490
- const E = ((await l.json()).data || []).reduce((R, j) => R.find((w) => w._id === j._id) ? R : R.concat([j]), []);
1491
- Pe(E);
1491
+ const h = await l.json(), g = Array.isArray(h) ? h : h?.data || [];
1492
+ if (!Array.isArray(g)) {
1493
+ console.error("Expected annotations array, got:", typeof g), Ce([]);
1494
+ return;
1495
+ }
1496
+ const E = g.reduce((R, O) => R.find((y) => y._id === O._id) ? R : R.concat([O]), []);
1497
+ Ce(E);
1492
1498
  }
1493
1499
  } catch (l) {
1494
1500
  console.error("Failed to fetch annotations", l);
@@ -1498,55 +1504,55 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1498
1504
  }
1499
1505
  }, [n, a]);
1500
1506
  K(() => {
1501
- M && T.length === 0 && !ue && U(!1);
1502
- }, [M, T.length, ue]), K(() => {
1503
- if (T.length === 0) {
1507
+ N && V.length === 0 && !pe && q(!1);
1508
+ }, [N, V.length, pe]), K(() => {
1509
+ if (V.length === 0) {
1504
1510
  oe();
1505
1511
  return;
1506
1512
  }
1507
1513
  if (!i) {
1508
1514
  oe();
1509
- const l = new MutationObserver(() => oe()), g = new ResizeObserver(() => oe()), y = () => oe();
1515
+ const l = new MutationObserver(() => oe()), h = new ResizeObserver(() => oe()), g = () => oe();
1510
1516
  return l.observe(document.documentElement, {
1511
1517
  childList: !0,
1512
1518
  subtree: !0,
1513
1519
  attributes: !0
1514
- }), g.observe(document.documentElement), window.addEventListener("scroll", y, !0), () => {
1515
- l.disconnect(), g.disconnect(), window.removeEventListener("scroll", y, !0), ge.current && cancelAnimationFrame(ge.current);
1520
+ }), h.observe(document.documentElement), window.addEventListener("scroll", g, !0), () => {
1521
+ l.disconnect(), h.disconnect(), window.removeEventListener("scroll", g, !0), xe.current && cancelAnimationFrame(xe.current);
1516
1522
  };
1517
1523
  }
1518
- }, [i, T.length, oe]), K(() => {
1524
+ }, [i, V.length, oe]), K(() => {
1519
1525
  te();
1520
1526
  }, [te]), K(() => {
1521
- he.current = document.getElementById("viewgate-shadow-host");
1527
+ ge.current = document.getElementById("viewgate-shadow-host");
1522
1528
  }, []);
1523
- const Me = ke((l) => {
1524
- if (!i || h) return;
1525
- const g = xt(l.clientX, l.clientY);
1526
- if (!g || he.current?.contains(g) || g.closest(".vg-no-capture")) {
1529
+ const Ne = je((l) => {
1530
+ if (!i || f) return;
1531
+ const h = xt(l.clientX, l.clientY);
1532
+ if (!h || ge.current?.contains(h) || h.closest(".vg-no-capture")) {
1527
1533
  m(null);
1528
1534
  return;
1529
1535
  }
1530
- const y = g.getBoundingClientRect();
1536
+ const g = h.getBoundingClientRect();
1531
1537
  m({
1532
- tag: g.tagName.toLowerCase(),
1533
- source: g.getAttribute("data-source-path") || "unknown:0",
1534
- rect: y,
1535
- element: g,
1536
- previewText: (g.innerText || "").slice(0, 100) || (g.getAttribute("placeholder") || "").slice(0, 100) || g.tagName.toLowerCase(),
1538
+ tag: h.tagName.toLowerCase(),
1539
+ source: h.getAttribute("data-source-path") || "unknown:0",
1540
+ rect: g,
1541
+ element: h,
1542
+ previewText: (h.innerText || "").slice(0, 100) || (h.getAttribute("placeholder") || "").slice(0, 100) || h.tagName.toLowerCase(),
1537
1543
  semanticReference: {
1538
- ...On(g),
1544
+ ...On(h),
1539
1545
  normalizedOffset: {
1540
- x: (l.clientX - y.left) / y.width,
1541
- y: (l.clientY - y.top) / y.height
1546
+ x: (l.clientX - g.left) / g.width,
1547
+ y: (l.clientY - g.top) / g.height
1542
1548
  }
1543
1549
  }
1544
1550
  });
1545
- }, [i, h]), Ne = ke(async (l) => {
1546
- if (!i || h) return;
1547
- const g = xt(l.clientX, l.clientY);
1548
- if (!(!g || he.current?.contains(g) || g.closest(".vg-no-capture")) && p) {
1549
- l.preventDefault(), l.stopPropagation(), be(!0);
1551
+ }, [i, f]), Ie = je(async (l) => {
1552
+ if (!i || f) return;
1553
+ const h = xt(l.clientX, l.clientY);
1554
+ if (!(!h || ge.current?.contains(h) || h.closest(".vg-no-capture")) && p) {
1555
+ l.preventDefault(), l.stopPropagation(), Se(!0);
1550
1556
  try {
1551
1557
  const R = await fn(document.body, {
1552
1558
  pixelRatio: 2,
@@ -1554,53 +1560,53 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1554
1560
  width: window.innerWidth,
1555
1561
  height: window.innerHeight,
1556
1562
  backgroundColor: "#ffffff",
1557
- filter: (w) => {
1558
- const P = w;
1559
- return !(he.current?.contains(P) || P.id === "viewgate-ui" || P.classList?.contains("vg-no-capture"));
1563
+ filter: (y) => {
1564
+ const j = y;
1565
+ return !(ge.current?.contains(j) || j.id === "viewgate-ui" || j.classList?.contains("vg-no-capture"));
1560
1566
  }
1561
- }), j = await bn(R, p.rect, 32, 2), f = {
1567
+ }), O = await bn(R, p.rect, 32, 2), w = {
1562
1568
  ...p.semanticReference,
1563
1569
  metadata: {
1564
1570
  ...p.semanticReference.metadata,
1565
- elementScreenshot: j
1571
+ elementScreenshot: O
1566
1572
  }
1567
1573
  };
1568
- O({
1574
+ A({
1569
1575
  ...p,
1570
- visualPreview: j,
1571
- semanticReference: f
1576
+ visualPreview: O,
1577
+ semanticReference: w
1572
1578
  });
1573
- } catch (y) {
1574
- console.error("Failed to capture high-fidelity preview:", y), O(p);
1579
+ } catch (g) {
1580
+ console.error("Failed to capture high-fidelity preview:", g), A(p);
1575
1581
  } finally {
1576
- be(!1), m(null);
1582
+ Se(!1), m(null);
1577
1583
  }
1578
1584
  }
1579
- }, [i, p, h]);
1585
+ }, [i, p, f]);
1580
1586
  K(() => {
1581
- const l = (g) => {
1582
- if (g.key === "Escape") {
1583
- h ? O(null) : M ? U(!1) : i && u(!1);
1587
+ const l = (h) => {
1588
+ if (h.key === "Escape") {
1589
+ f ? A(null) : N ? q(!1) : i && u(!1);
1584
1590
  return;
1585
1591
  }
1586
1592
  const E = (() => {
1587
- let f = document.activeElement;
1588
- for (; f && f.shadowRoot && f.shadowRoot.activeElement; )
1589
- f = f.shadowRoot.activeElement;
1590
- return f;
1593
+ let w = document.activeElement;
1594
+ for (; w && w.shadowRoot && w.shadowRoot.activeElement; )
1595
+ w = w.shadowRoot.activeElement;
1596
+ return w;
1591
1597
  })();
1592
1598
  if (["input", "textarea"].includes((E?.tagName || "").toLowerCase()) || E?.isContentEditable) return;
1593
- const j = g.key.toLowerCase();
1594
- j === "c" && !h && !M && u((f) => !f), j === "v" && !h && (T.length > 0 || M) && (U((f) => !f), M || u(!1));
1599
+ const O = h.key.toLowerCase();
1600
+ O === "c" && !f && !N && u((w) => !w), O === "v" && !f && (V.length > 0 || N) && (q((w) => !w), N || u(!1));
1595
1601
  };
1596
- return i && !h ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", l), window.addEventListener("mousemove", Me, !0), window.addEventListener("click", Ne, !0), () => {
1597
- document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", l), window.removeEventListener("mousemove", Me, !0), window.removeEventListener("click", Ne, !0);
1602
+ return i && !f ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", l), window.addEventListener("mousemove", Ne, !0), window.addEventListener("click", Ie, !0), () => {
1603
+ document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", l), window.removeEventListener("mousemove", Ne, !0), window.removeEventListener("click", Ie, !0);
1598
1604
  };
1599
- }, [i, h, M, T, Me, Ne]);
1605
+ }, [i, f, N, V, Ne, Ie]);
1600
1606
  const Gt = async () => {
1601
- if (!h || !A.trim()) return;
1607
+ if (!f || !P.trim()) return;
1602
1608
  ne(!0);
1603
- const { semanticReference: l } = h, [g, y] = (l.source || "").split(":"), E = y || "0";
1609
+ const { semanticReference: l } = f, [h, g] = (l.source || "").split(":"), E = g || "0";
1604
1610
  try {
1605
1611
  if (!(await fetch(`${a}/api/annotations`, {
1606
1612
  method: "POST",
@@ -1609,11 +1615,11 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1609
1615
  "x-api-key": n
1610
1616
  },
1611
1617
  body: JSON.stringify({
1612
- filePath: g,
1618
+ filePath: h,
1613
1619
  line: parseInt(E),
1614
1620
  url: window.location.href,
1615
- message: A,
1616
- componentName: l.componentPath || h.tag,
1621
+ message: P,
1622
+ componentName: l.componentPath || f.tag,
1617
1623
  reference: {
1618
1624
  ...l,
1619
1625
  viewport: {
@@ -1625,14 +1631,14 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1625
1631
  }
1626
1632
  })
1627
1633
  })).ok) throw new Error("Backend failed");
1628
- e(r.success, "success"), O(null), I(""), u(!1), te();
1634
+ e(r.success, "success"), A(null), L(""), u(!1), te();
1629
1635
  } catch (R) {
1630
1636
  console.error(R), e(r.error, "error");
1631
1637
  } finally {
1632
1638
  ne(!1);
1633
1639
  }
1634
1640
  };
1635
- return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1275", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1276", className: "vg-no-capture", children: [
1641
+ return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1283", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1284", className: "vg-no-capture", children: [
1636
1642
  !c && /* @__PURE__ */ o.jsxs(
1637
1643
  "div",
1638
1644
  {
@@ -1644,13 +1650,13 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1644
1650
  display: "flex",
1645
1651
  alignItems: "center",
1646
1652
  gap: "8px",
1647
- transition: B ? "none" : "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
1653
+ transition: Y ? "none" : "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
1648
1654
  },
1649
1655
  children: [
1650
1656
  /* @__PURE__ */ o.jsx(
1651
1657
  "div",
1652
1658
  {
1653
- onMouseDown: At,
1659
+ onMouseDown: _t,
1654
1660
  style: {
1655
1661
  width: "20px",
1656
1662
  height: "32px",
@@ -1674,14 +1680,14 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1674
1680
  onMouseLeave: (l) => {
1675
1681
  l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", l.currentTarget.style.color = "#1e293b";
1676
1682
  },
1677
- children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1320", size: 14 })
1683
+ children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1328", size: 14 })
1678
1684
  }
1679
1685
  ),
1680
1686
  /* @__PURE__ */ o.jsx(
1681
1687
  "button",
1682
1688
  {
1683
1689
  onClick: (l) => {
1684
- l.stopPropagation(), z({
1690
+ l.stopPropagation(), D({
1685
1691
  title: r.exitConfirmTitle || "Close ViewGate?",
1686
1692
  message: r.exitConfirmMessage || "Are you sure you want to close ViewGate?",
1687
1693
  type: "danger",
@@ -1710,7 +1716,7 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1710
1716
  onMouseLeave: (l) => {
1711
1717
  l.currentTarget.style.transform = "scale(1) rotate(0deg)", l.currentTarget.style.color = "#64748b", l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
1712
1718
  },
1713
- children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1360", size: 20, strokeWidth: 2.5 })
1719
+ children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1368", size: 20, strokeWidth: 2.5 })
1714
1720
  }
1715
1721
  )
1716
1722
  ]
@@ -1719,16 +1725,16 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1719
1725
  /* @__PURE__ */ o.jsxs(
1720
1726
  "div",
1721
1727
  {
1722
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1366",
1728
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1374",
1723
1729
  style: {
1724
1730
  position: "fixed",
1725
- bottom: `${F.bottom}px`,
1726
- right: `${F.right}px`,
1731
+ bottom: `${H.bottom}px`,
1732
+ right: `${H.right}px`,
1727
1733
  zIndex: De,
1728
1734
  display: "flex",
1729
1735
  alignItems: "center",
1730
1736
  gap: "8px",
1731
- transition: fe ? "none" : "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"
1737
+ transition: he ? "none" : "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"
1732
1738
  },
1733
1739
  id: "viewgate-ui",
1734
1740
  children: [
@@ -1760,10 +1766,10 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1760
1766
  l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", l.currentTarget.style.color = "#1e293b";
1761
1767
  },
1762
1768
  className: "vg-animate-slide-up",
1763
- children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1409", size: 16 })
1769
+ children: /* @__PURE__ */ o.jsx(ot, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1417", size: 16 })
1764
1770
  }
1765
1771
  ),
1766
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1412", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
1772
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1420", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
1767
1773
  /* @__PURE__ */ o.jsx(
1768
1774
  "button",
1769
1775
  {
@@ -1773,23 +1779,23 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1773
1779
  padding: "12px 24px",
1774
1780
  background: i ? "#ef4444" : void 0
1775
1781
  },
1776
- children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1421", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1777
- i ? /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1422", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1422", size: 20, className: "vg-animate-pop" }),
1778
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1423", children: i ? r.exitMode : r.enterMode })
1782
+ children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1429", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
1783
+ i ? /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1430", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1430", size: 20, className: "vg-animate-pop" }),
1784
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1431", children: i ? r.exitMode : r.enterMode })
1779
1785
  ] })
1780
1786
  }
1781
1787
  ),
1782
- T.length > 0 && /* @__PURE__ */ o.jsxs(
1788
+ V.length > 0 && /* @__PURE__ */ o.jsxs(
1783
1789
  "button",
1784
1790
  {
1785
1791
  onClick: () => {
1786
- U(!M), u(!1), O(null);
1792
+ q(!N), u(!1), A(null);
1787
1793
  },
1788
1794
  className: "vg-button-ghost vg-animate-pop",
1789
1795
  style: { animationDelay: "0.1s" },
1790
1796
  children: [
1791
- /* @__PURE__ */ o.jsx(tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1436", size: 20 }),
1792
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1437", children: r.viewComments })
1797
+ /* @__PURE__ */ o.jsx(tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1444", size: 20 }),
1798
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1445", children: r.viewComments })
1793
1799
  ]
1794
1800
  }
1795
1801
  )
@@ -1797,7 +1803,7 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1797
1803
  ]
1798
1804
  }
1799
1805
  ),
1800
- ve && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1445", style: {
1806
+ be && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1453", style: {
1801
1807
  position: "fixed",
1802
1808
  top: 0,
1803
1809
  left: 0,
@@ -1810,14 +1816,14 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1810
1816
  justifyContent: "center",
1811
1817
  zIndex: De + 1,
1812
1818
  cursor: "wait"
1813
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1451", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1814
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1452", className: "vg-spinner" }),
1815
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1453", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
1819
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1459", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
1820
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1460", className: "vg-spinner" }),
1821
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1461", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
1816
1822
  ] }) }),
1817
- i && !h && /* @__PURE__ */ o.jsx(
1823
+ i && !f && /* @__PURE__ */ o.jsx(
1818
1824
  "div",
1819
1825
  {
1820
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1460",
1826
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1468",
1821
1827
  className: "vg-backdrop-blur",
1822
1828
  style: {
1823
1829
  opacity: 1,
@@ -1833,10 +1839,10 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1833
1839
  }
1834
1840
  }
1835
1841
  ),
1836
- i && p && !h && !ve && /* @__PURE__ */ o.jsx(
1842
+ i && p && !f && !be && /* @__PURE__ */ o.jsx(
1837
1843
  "div",
1838
1844
  {
1839
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1479",
1845
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1487",
1840
1846
  className: "vg-selection-pulse",
1841
1847
  style: {
1842
1848
  top: p.rect.top - 4,
@@ -1848,17 +1854,17 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1848
1854
  children: /* @__PURE__ */ o.jsxs(
1849
1855
  "div",
1850
1856
  {
1851
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1489",
1857
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1497",
1852
1858
  className: "vg-selection-label",
1853
1859
  style: {
1854
1860
  ...p.rect.top < 60 ? p.rect.bottom > window.innerHeight - 60 ? { top: "8px", bottom: "auto" } : { top: "100%", marginTop: "8px", bottom: "auto" } : { top: "-40px", bottom: "auto" },
1855
1861
  ...p.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
1856
1862
  },
1857
1863
  children: [
1858
- /* @__PURE__ */ o.jsx(lr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1505", size: 16 }),
1859
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1506", style: { display: "flex", flexDirection: "column" }, children: [
1860
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1507", style: { fontWeight: 700 }, children: r.selectToComment }),
1861
- /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1508", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
1864
+ /* @__PURE__ */ o.jsx(lr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1513", size: 16 }),
1865
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1514", style: { display: "flex", flexDirection: "column" }, children: [
1866
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1515", style: { fontWeight: 700 }, children: r.selectToComment }),
1867
+ /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1516", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
1862
1868
  Math.round(p.rect.width),
1863
1869
  " × ",
1864
1870
  Math.round(p.rect.height)
@@ -1869,7 +1875,7 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1869
1875
  )
1870
1876
  }
1871
1877
  ),
1872
- h && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1518", className: "vg-animate-fade", style: {
1878
+ f && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1526", className: "vg-animate-fade", style: {
1873
1879
  position: "fixed",
1874
1880
  top: 0,
1875
1881
  left: 0,
@@ -1881,13 +1887,13 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1881
1887
  alignItems: "center",
1882
1888
  justifyContent: "center",
1883
1889
  zIndex: Fe
1884
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1523", className: "vg-glassmorphism vg-animate-slide", style: {
1890
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1531", className: "vg-glassmorphism vg-animate-slide", style: {
1885
1891
  padding: "40px",
1886
1892
  width: "500px",
1887
1893
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
1888
1894
  }, children: [
1889
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1527", style: { textAlign: "center", marginBottom: "32px" }, children: [
1890
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1528", style: {
1895
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1535", style: { textAlign: "center", marginBottom: "32px" }, children: [
1896
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1536", style: {
1891
1897
  width: "48px",
1892
1898
  height: "48px",
1893
1899
  background: "var(--vg-primary-gradient)",
@@ -1898,11 +1904,11 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1898
1904
  margin: "0 auto 16px",
1899
1905
  color: "white",
1900
1906
  boxShadow: "0 8px 16px rgba(99, 102, 241, 0.3)"
1901
- }, children: /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1533", size: 24 }) }),
1902
- /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1535", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1903
- /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1536", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
1907
+ }, children: /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1541", size: 24 }) }),
1908
+ /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1543", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
1909
+ /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1544", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
1904
1910
  ] }),
1905
- h.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1540", style: {
1911
+ f.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1548", style: {
1906
1912
  marginBottom: "24px",
1907
1913
  borderRadius: "12px",
1908
1914
  overflow: "hidden",
@@ -1913,7 +1919,7 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1913
1919
  }, children: /* @__PURE__ */ o.jsx(
1914
1920
  "img",
1915
1921
  {
1916
- src: h.visualPreview,
1922
+ src: f.visualPreview,
1917
1923
  alt: "Preview",
1918
1924
  style: { maxWidth: "100%", maxHeight: "200px", objectFit: "contain", display: "block" }
1919
1925
  }
@@ -1922,21 +1928,21 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1922
1928
  "textarea",
1923
1929
  {
1924
1930
  className: "vg-textarea",
1925
- value: A,
1926
- onChange: (l) => I(l.target.value),
1931
+ value: P,
1932
+ onChange: (l) => L(l.target.value),
1927
1933
  rows: 4,
1928
1934
  placeholder: r.placeholder,
1929
1935
  autoFocus: !0,
1930
1936
  style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
1931
1937
  }
1932
1938
  ),
1933
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1567", style: { display: "flex", gap: "12px" }, children: [
1939
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1575", style: { display: "flex", gap: "12px" }, children: [
1934
1940
  /* @__PURE__ */ o.jsx(
1935
1941
  "button",
1936
1942
  {
1937
- onClick: () => !W && O(null),
1943
+ onClick: () => !B && A(null),
1938
1944
  className: "vg-button-ghost",
1939
- disabled: W,
1945
+ disabled: B,
1940
1946
  style: { flex: 1, padding: "12px" },
1941
1947
  children: r.cancel
1942
1948
  }
@@ -1946,17 +1952,17 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1946
1952
  {
1947
1953
  onClick: Gt,
1948
1954
  className: "vg-button-primary",
1949
- disabled: W || !A.trim(),
1955
+ disabled: B || !P.trim(),
1950
1956
  style: { flex: 2 },
1951
- children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1582", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1952
- W ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1583", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(hr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1583", size: 18 }),
1953
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1584", children: W ? r.submitting : r.sendFeedback || "Send Comment" })
1957
+ children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1590", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1958
+ B ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1591", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(hr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1591", size: 18 }),
1959
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1592", children: B ? r.submitting : r.sendFeedback || "Send Comment" })
1954
1960
  ] })
1955
1961
  }
1956
1962
  )
1957
1963
  ] })
1958
1964
  ] }) }),
1959
- M && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1593", className: "vg-animate-fade", style: {
1965
+ N && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1601", className: "vg-animate-fade", style: {
1960
1966
  position: "fixed",
1961
1967
  top: 0,
1962
1968
  left: 0,
@@ -1968,39 +1974,39 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
1968
1974
  alignItems: "center",
1969
1975
  justifyContent: "center",
1970
1976
  zIndex: Fe
1971
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1598", className: "vg-glassmorphism vg-animate-slide", style: {
1977
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1606", className: "vg-glassmorphism vg-animate-slide", style: {
1972
1978
  padding: "32px",
1973
1979
  width: "650px",
1974
1980
  maxHeight: "85vh",
1975
1981
  display: "flex",
1976
1982
  flexDirection: "column"
1977
1983
  }, children: [
1978
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1602", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1979
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1603", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1980
- /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1604", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: N ? r.commentDetails : r.annotations }),
1981
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1607", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: v.length })
1984
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1610", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
1985
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1611", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1986
+ /* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1612", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: I ? r.commentDetails : r.annotations }),
1987
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1615", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: v.length })
1982
1988
  ] }),
1983
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1611", style: { display: "flex", gap: "8px" }, children: [
1984
- N && /* @__PURE__ */ o.jsx(
1989
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1619", style: { display: "flex", gap: "8px" }, children: [
1990
+ I && /* @__PURE__ */ o.jsx(
1985
1991
  "button",
1986
1992
  {
1987
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1613",
1993
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1621",
1988
1994
  className: "vg-button-ghost",
1989
1995
  style: { padding: "6px 14px", fontSize: "12px" },
1990
- onClick: () => J(null),
1996
+ onClick: () => Z(null),
1991
1997
  children: r.viewAll || "View All"
1992
1998
  }
1993
1999
  ),
1994
2000
  /* @__PURE__ */ o.jsx(
1995
2001
  "button",
1996
2002
  {
1997
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1621",
2003
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1629",
1998
2004
  className: "vg-button-ghost",
1999
2005
  style: { padding: "8px", borderRadius: "50%" },
2000
2006
  onClick: () => {
2001
- U(!1), J(null);
2007
+ q(!1), Z(null);
2002
2008
  },
2003
- children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1626", size: 20 })
2009
+ children: /* @__PURE__ */ o.jsx(Le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1634", size: 20 })
2004
2010
  }
2005
2011
  )
2006
2012
  ] })
@@ -2008,31 +2014,31 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2008
2014
  /* @__PURE__ */ o.jsx(
2009
2015
  "div",
2010
2016
  {
2011
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1631",
2017
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1639",
2012
2018
  style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" },
2013
2019
  className: "vg-custom-scrollbar",
2014
- children: ue ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1637", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1638", className: "vg-spinner" }) }) : v.map((l, g) => /* @__PURE__ */ o.jsxs(
2020
+ children: pe ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1645", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1646", className: "vg-spinner" }) }) : v.map((l, h) => /* @__PURE__ */ o.jsxs(
2015
2021
  "div",
2016
2022
  {
2017
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1642",
2023
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1650",
2018
2024
  className: "vg-glassmorphism vg-animate-slide",
2019
2025
  style: {
2020
2026
  padding: "20px",
2021
2027
  marginBottom: "16px",
2022
2028
  border: "1px solid rgba(0,0,0,0.05)",
2023
2029
  background: "rgba(255,255,255,0.5)",
2024
- animationDelay: `${g * 0.05}s`
2030
+ animationDelay: `${h * 0.05}s`
2025
2031
  },
2026
2032
  children: [
2027
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1653", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: [
2028
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1654", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
2029
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1655", style: { fontSize: "12px", color: "#000000", fontWeight: 600 }, children: ht(l.timestamp || l.createdAt || l.reference?.timestamp, t) }),
2033
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1661", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: [
2034
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1662", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
2035
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1663", style: { fontSize: "12px", color: "#000000", fontWeight: 600 }, children: ht(l.timestamp || l.createdAt || l.reference?.timestamp, t) }),
2030
2036
  l.url && /* @__PURE__ */ o.jsx(
2031
2037
  gt,
2032
2038
  {
2033
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1659",
2039
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1667",
2034
2040
  url: l.url,
2035
- onHover: me,
2041
+ onHover: fe,
2036
2042
  style: {
2037
2043
  display: "flex",
2038
2044
  alignItems: "center",
@@ -2048,12 +2054,12 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2048
2054
  }
2049
2055
  )
2050
2056
  ] }),
2051
- l.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1678", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a", border: "1px solid #dcfce7" }, children: [
2052
- /* @__PURE__ */ o.jsx(le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1679", size: 14 }),
2057
+ l.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1686", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a", border: "1px solid #dcfce7" }, children: [
2058
+ /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1687", size: 14 }),
2053
2059
  " ",
2054
2060
  r.readyForReview
2055
- ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1682", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c", border: "1px solid #ffedd5" }, children: [
2056
- /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1683", size: 14 }),
2061
+ ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1690", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c", border: "1px solid #ffedd5" }, children: [
2062
+ /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1691", size: 14 }),
2057
2063
  " ",
2058
2064
  r.pending
2059
2065
  ] })
@@ -2063,17 +2069,17 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2063
2069
  {
2064
2070
  className: "vg-textarea",
2065
2071
  value: Ke,
2066
- onChange: (y) => Qe(y.target.value),
2072
+ onChange: (g) => Qe(g.target.value),
2067
2073
  rows: 3,
2068
2074
  autoFocus: !0,
2069
2075
  style: { marginBottom: "16px" }
2070
2076
  }
2071
- ) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1698", className: "vg-text-wrap", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: l.message }),
2072
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1701", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: Ze === l._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2077
+ ) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1706", className: "vg-text-wrap", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: l.message }),
2078
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1709", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: Ze === l._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2073
2079
  /* @__PURE__ */ o.jsx(
2074
2080
  "button",
2075
2081
  {
2076
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1704",
2082
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1712",
2077
2083
  className: "vg-button-primary vg-animate-pop",
2078
2084
  style: { padding: "8px 16px", fontSize: "13px" },
2079
2085
  onClick: async () => {
@@ -2082,7 +2088,7 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2082
2088
  method: "PATCH",
2083
2089
  headers: { "Content-Type": "application/json", "x-api-key": n },
2084
2090
  body: JSON.stringify({ message: Ke })
2085
- })).ok && ($e(null), te(), e(r.updateSuccess, "success"));
2091
+ })).ok && (Me(null), te(), e(r.updateSuccess, "success"));
2086
2092
  } catch {
2087
2093
  e(r.error, "error");
2088
2094
  }
@@ -2090,19 +2096,19 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2090
2096
  children: r.save
2091
2097
  }
2092
2098
  ),
2093
- /* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1726", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => $e(null), children: r.cancel })
2099
+ /* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1734", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => Me(null), children: r.cancel })
2094
2100
  ] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2095
2101
  /* @__PURE__ */ o.jsxs(
2096
2102
  "button",
2097
2103
  {
2098
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1730",
2104
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1738",
2099
2105
  className: "vg-button-ghost vg-animate-pop",
2100
2106
  style: { padding: "8px 16px", fontSize: "13px" },
2101
2107
  onClick: () => {
2102
- $e(l._id), Qe(l.message);
2108
+ Me(l._id), Qe(l.message);
2103
2109
  },
2104
2110
  children: [
2105
- /* @__PURE__ */ o.jsx(ur, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1738", size: 14 }),
2111
+ /* @__PURE__ */ o.jsx(ur, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1746", size: 14 }),
2106
2112
  " ",
2107
2113
  r.edit
2108
2114
  ]
@@ -2111,14 +2117,14 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2111
2117
  /* @__PURE__ */ o.jsxs(
2112
2118
  "button",
2113
2119
  {
2114
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1740",
2120
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1748",
2115
2121
  className: "vg-button-ghost vg-animate-pop",
2116
2122
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.05s" },
2117
2123
  onClick: () => {
2118
2124
  l.url && (window.location.href = l.url);
2119
2125
  },
2120
2126
  children: [
2121
- /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1747", size: 14 }),
2127
+ /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1755", size: 14 }),
2122
2128
  " ",
2123
2129
  r.review
2124
2130
  ]
@@ -2127,11 +2133,11 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2127
2133
  l.status === "pending" ? /* @__PURE__ */ o.jsxs(
2128
2134
  "button",
2129
2135
  {
2130
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1750",
2136
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1758",
2131
2137
  className: "vg-button-primary vg-animate-pop",
2132
2138
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
2133
2139
  onClick: () => {
2134
- z({
2140
+ D({
2135
2141
  title: r.markReadyConfirm,
2136
2142
  message: r.confirmMarkReady,
2137
2143
  type: "success",
@@ -2145,13 +2151,13 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2145
2151
  } catch {
2146
2152
  e(r.error, "error");
2147
2153
  } finally {
2148
- z(null);
2154
+ D(null);
2149
2155
  }
2150
2156
  }
2151
2157
  });
2152
2158
  },
2153
2159
  children: [
2154
- /* @__PURE__ */ o.jsx(le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1778", size: 14 }),
2160
+ /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1786", size: 14 }),
2155
2161
  " ",
2156
2162
  r.markReady
2157
2163
  ]
@@ -2159,11 +2165,11 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2159
2165
  ) : /* @__PURE__ */ o.jsxs(
2160
2166
  "button",
2161
2167
  {
2162
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1781",
2168
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1789",
2163
2169
  className: "vg-button-ghost vg-animate-pop",
2164
2170
  style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
2165
2171
  onClick: () => {
2166
- z({
2172
+ D({
2167
2173
  title: r.reopenConfirm,
2168
2174
  message: r.confirmReopen,
2169
2175
  type: "success",
@@ -2177,13 +2183,13 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2177
2183
  } catch {
2178
2184
  e(r.error, "error");
2179
2185
  } finally {
2180
- z(null);
2186
+ D(null);
2181
2187
  }
2182
2188
  }
2183
2189
  });
2184
2190
  },
2185
2191
  children: [
2186
- /* @__PURE__ */ o.jsx(mr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1809", size: 14 }),
2192
+ /* @__PURE__ */ o.jsx(mr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1817", size: 14 }),
2187
2193
  " ",
2188
2194
  r.reopen
2189
2195
  ]
@@ -2192,11 +2198,11 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2192
2198
  /* @__PURE__ */ o.jsx(
2193
2199
  "button",
2194
2200
  {
2195
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1812",
2201
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1820",
2196
2202
  className: "vg-button-ghost vg-animate-pop",
2197
2203
  style: { padding: "8px 12px", color: "#ef4444", borderColor: "#fee2e2", animationDelay: "0.15s" },
2198
2204
  onClick: () => {
2199
- z({
2205
+ D({
2200
2206
  title: r.deleteConfirm,
2201
2207
  message: r.confirmDelete,
2202
2208
  type: "danger",
@@ -2206,21 +2212,21 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2206
2212
  method: "DELETE",
2207
2213
  headers: { "x-api-key": n }
2208
2214
  })).ok) {
2209
- if (N === l._id) {
2215
+ if (I === l._id) {
2210
2216
  const E = v.find((R) => R._id !== l._id);
2211
- E ? J(E._id) : (J(null), U(!1));
2217
+ E ? Z(E._id) : (Z(null), q(!1));
2212
2218
  }
2213
2219
  te(), e(r.deleteSuccess, "success");
2214
2220
  }
2215
2221
  } catch {
2216
2222
  e(r.error, "error");
2217
2223
  } finally {
2218
- z(null);
2224
+ D(null);
2219
2225
  }
2220
2226
  }
2221
2227
  });
2222
2228
  },
2223
- children: /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1850", size: 16 })
2229
+ children: /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1858", size: 16 })
2224
2230
  }
2225
2231
  )
2226
2232
  ] }) })
@@ -2229,10 +2235,10 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2229
2235
  l._id
2230
2236
  ))
2231
2237
  },
2232
- N || "all"
2238
+ I || "all"
2233
2239
  )
2234
2240
  ] }) }),
2235
- L && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1866", className: "vg-animate-fade", style: {
2241
+ z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1874", className: "vg-animate-fade", style: {
2236
2242
  position: "fixed",
2237
2243
  top: 0,
2238
2244
  left: 0,
@@ -2244,35 +2250,35 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2244
2250
  alignItems: "center",
2245
2251
  justifyContent: "center",
2246
2252
  zIndex: Fe + 100
2247
- }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1871", className: "vg-glassmorphism vg-animate-slide", style: {
2253
+ }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1879", className: "vg-glassmorphism vg-animate-slide", style: {
2248
2254
  padding: "40px",
2249
2255
  width: "420px",
2250
2256
  textAlign: "center",
2251
2257
  border: "1px solid rgba(255, 255, 255, 0.1)",
2252
2258
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
2253
2259
  }, children: [
2254
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1878", style: {
2260
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1886", style: {
2255
2261
  width: "64px",
2256
2262
  height: "64px",
2257
- background: L.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
2263
+ background: z.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
2258
2264
  borderRadius: "20px",
2259
2265
  display: "flex",
2260
2266
  alignItems: "center",
2261
2267
  justifyContent: "center",
2262
2268
  margin: "0 auto 24px",
2263
- color: L.type === "danger" ? "#ef4444" : "#6366f1",
2269
+ color: z.type === "danger" ? "#ef4444" : "#6366f1",
2264
2270
  transform: "rotate(-5deg)"
2265
- }, children: L.type === "danger" ? /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1887", size: 32 }) : /* @__PURE__ */ o.jsx(le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1887", size: 32 }) }),
2266
- /* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1889", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: L.title }),
2267
- /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1890", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: L.message }),
2268
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1891", style: { display: "flex", gap: "16px" }, children: [
2271
+ }, children: z.type === "danger" ? /* @__PURE__ */ o.jsx(it, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1895", size: 32 }) : /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1895", size: 32 }) }),
2272
+ /* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1897", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: z.title }),
2273
+ /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1898", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: z.message }),
2274
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1899", style: { display: "flex", gap: "16px" }, children: [
2269
2275
  /* @__PURE__ */ o.jsx(
2270
2276
  "button",
2271
2277
  {
2272
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1892",
2278
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1900",
2273
2279
  className: "vg-button-ghost",
2274
2280
  style: { flex: 1, height: "44px" },
2275
- onClick: () => !ee && z(null),
2281
+ onClick: () => !ee && D(null),
2276
2282
  disabled: ee,
2277
2283
  children: r.no
2278
2284
  }
@@ -2280,13 +2286,13 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2280
2286
  /* @__PURE__ */ o.jsx(
2281
2287
  "button",
2282
2288
  {
2283
- "data-source-path": "/src/components/ViewGateOverlay.tsx:1900",
2289
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:1908",
2284
2290
  className: "vg-button-primary",
2285
2291
  style: {
2286
2292
  flex: 1,
2287
2293
  height: "44px",
2288
- backgroundColor: L.type === "danger" ? "#ef4444" : void 0,
2289
- backgroundImage: L.type === "danger" ? "none" : void 0,
2294
+ backgroundColor: z.type === "danger" ? "#ef4444" : void 0,
2295
+ backgroundImage: z.type === "danger" ? "none" : void 0,
2290
2296
  display: "flex",
2291
2297
  alignItems: "center",
2292
2298
  justifyContent: "center",
@@ -2294,74 +2300,74 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2294
2300
  },
2295
2301
  disabled: ee,
2296
2302
  onClick: async () => {
2297
- pe(!0);
2303
+ me(!0);
2298
2304
  try {
2299
- await L.onConfirm();
2305
+ await z.onConfirm();
2300
2306
  } catch (l) {
2301
2307
  console.error("Confirmation error:", l);
2302
2308
  } finally {
2303
- pe(!1);
2309
+ me(!1);
2304
2310
  }
2305
2311
  },
2306
- children: ee ? /* @__PURE__ */ o.jsx(or, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1925", size: 18, className: "vg-animate-spin" }) : r.yes
2312
+ children: ee ? /* @__PURE__ */ o.jsx(or, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1933", size: 18, className: "vg-animate-spin" }) : r.yes
2307
2313
  }
2308
2314
  )
2309
2315
  ] })
2310
2316
  ] }) }),
2311
- !i && !M && d.map((l, g) => {
2312
- const { rect: y, annotations: E, isModal: R } = l, j = E[0], f = E.length, w = E.some((S) => S.status === "ready_for_review"), P = E.some((S) => S.status !== "ready_for_review"), Y = w && P, X = w && !P;
2317
+ !i && !N && d.map((l, h) => {
2318
+ const { rect: g, annotations: E, isModal: R } = l, O = E[0], w = E.length, y = E.some((C) => C.status === "ready_for_review"), j = E.some((C) => C.status !== "ready_for_review"), J = y && j, W = y && !j;
2313
2319
  return /* @__PURE__ */ o.jsxs(
2314
2320
  "div",
2315
2321
  {
2316
2322
  className: "vg-pin-container vg-animate-pop",
2317
2323
  style: {
2318
2324
  position: "fixed",
2319
- top: y.top - 20,
2320
- left: y.left + y.width / 2 - 16,
2325
+ top: g.top - 20,
2326
+ left: g.left + g.width / 2 - 16,
2321
2327
  width: "32px",
2322
2328
  height: "32px",
2323
2329
  cursor: "pointer",
2324
2330
  transition: "all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",
2325
2331
  zIndex: xn
2326
2332
  },
2327
- onMouseEnter: (S) => {
2328
- window.innerHeight - y.bottom < 250 ? Ee((Ie) => ({ ...Ie, [l.id]: "vg-top" })) : Ee((Ie) => ({ ...Ie, [l.id]: "" }));
2333
+ onMouseEnter: (C) => {
2334
+ window.innerHeight - g.bottom < 250 ? Re((ie) => ({ ...ie, [l.id]: "vg-top" })) : Re((ie) => ({ ...ie, [l.id]: "" }));
2329
2335
  },
2330
- onWheel: (S) => {
2331
- const Z = S.currentTarget.querySelector(".vg-tooltip-scroll");
2332
- Z && Z.scrollBy({ top: S.deltaY, behavior: "smooth" });
2336
+ onWheel: (C) => {
2337
+ const G = C.currentTarget.querySelector(".vg-tooltip-scroll");
2338
+ G && G.scrollBy({ top: C.deltaY, behavior: "smooth" });
2333
2339
  },
2334
2340
  onClick: () => {
2335
- U(!0), J(j._id);
2341
+ q(!0), Z(O._id);
2336
2342
  },
2337
2343
  children: [
2338
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1978", className: `vg-pin-tooltip ${Ce[l.id] || ""}`, style: { padding: "16px" }, children: [
2339
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1979", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "12px" }, children: [
2340
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1980", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2341
- /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1981", size: 14, color: "#6366f1" }),
2342
- /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1982", style: { fontWeight: 800, fontSize: "13px", color: "#0f172a" }, children: [
2343
- f,
2344
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1986", className: `vg-pin-tooltip ${ke[l.id] || ""}`, style: { padding: "16px" }, children: [
2345
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1987", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "12px" }, children: [
2346
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1988", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2347
+ /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1989", size: 14, color: "#6366f1" }),
2348
+ /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1990", style: { fontWeight: 800, fontSize: "13px", color: "#0f172a" }, children: [
2349
+ w,
2344
2350
  " ",
2345
- f === 1 ? "Comentario" : "Comentarios"
2351
+ w === 1 ? "Comentario" : "Comentarios"
2346
2352
  ] })
2347
2353
  ] }),
2348
- R && /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1987", className: "vg-badge", style: { fontSize: "10px", background: "#fef3c7", color: "#92400e", border: "none" }, children: "MODAL" })
2354
+ R && /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1995", className: "vg-badge", style: { fontSize: "10px", background: "#fef3c7", color: "#92400e", border: "none" }, children: "MODAL" })
2349
2355
  ] }),
2350
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1990", className: "vg-tooltip-scroll", style: { maxHeight: "180px", overflowY: "auto" }, children: E.map((S, Z) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1992", style: {
2356
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1998", className: "vg-tooltip-scroll", style: { maxHeight: "180px", overflowY: "auto" }, children: E.map((C, G) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2000", style: {
2351
2357
  padding: "10px 0",
2352
- borderTop: Z === 0 ? "none" : "1px solid #f1f5f9",
2358
+ borderTop: G === 0 ? "none" : "1px solid #f1f5f9",
2353
2359
  display: "flex",
2354
2360
  gap: "12px",
2355
2361
  alignItems: "flex-start"
2356
2362
  }, children: [
2357
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1999", style: { flex: 1, display: "flex", flexDirection: "column", gap: "4px" }, children: [
2358
- /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2000", style: { fontSize: "10px", fontWeight: 600, color: "#64748b" }, children: ht(S.timestamp || S.createdAt, t) }),
2359
- S.url && /* @__PURE__ */ o.jsx(
2363
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2007", style: { flex: 1, display: "flex", flexDirection: "column", gap: "4px" }, children: [
2364
+ /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2008", style: { fontSize: "10px", fontWeight: 600, color: "#64748b" }, children: ht(C.timestamp || C.createdAt, t) }),
2365
+ C.url && /* @__PURE__ */ o.jsx(
2360
2366
  gt,
2361
2367
  {
2362
- "data-source-path": "/src/components/ViewGateOverlay.tsx:2004",
2363
- url: S.url,
2364
- onHover: me,
2368
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:2012",
2369
+ url: C.url,
2370
+ onHover: fe,
2365
2371
  style: {
2366
2372
  display: "flex",
2367
2373
  alignItems: "center",
@@ -2377,9 +2383,9 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2377
2383
  tooltipStyle: { fontSize: "9px" }
2378
2384
  }
2379
2385
  ),
2380
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2022", className: "vg-line-clamp-2", style: { fontSize: "13px", color: "#1e293b", lineHeight: 1.4, fontWeight: 500 }, children: S.message.length > 100 ? S.message.slice(0, 97) + "..." : S.message })
2386
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2030", className: "vg-line-clamp-2", style: { fontSize: "13px", color: "#1e293b", lineHeight: 1.4, fontWeight: 500 }, children: C.message.length > 100 ? C.message.slice(0, 97) + "..." : C.message })
2381
2387
  ] }),
2382
- /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2026", style: { flexShrink: 0, marginTop: "2px" }, children: S.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2028", style: {
2388
+ /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2034", style: { flexShrink: 0, marginTop: "2px" }, children: C.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2036", style: {
2383
2389
  display: "flex",
2384
2390
  alignItems: "center",
2385
2391
  gap: "4px",
@@ -2392,9 +2398,9 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2392
2398
  textTransform: "uppercase",
2393
2399
  border: "1px solid #dcfce7"
2394
2400
  }, children: [
2395
- /* @__PURE__ */ o.jsx(le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2041", size: 10 }),
2401
+ /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2049", size: 10 }),
2396
2402
  r.readyForReview
2397
- ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2045", style: {
2403
+ ] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2053", style: {
2398
2404
  display: "flex",
2399
2405
  alignItems: "center",
2400
2406
  gap: "4px",
@@ -2407,14 +2413,14 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2407
2413
  textTransform: "uppercase",
2408
2414
  border: "1px solid #ffedd5"
2409
2415
  }, children: [
2410
- /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2058", size: 10 }),
2416
+ /* @__PURE__ */ o.jsx(at, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2066", size: 10 }),
2411
2417
  r.pending
2412
2418
  ] }) })
2413
- ] }, S._id)) })
2419
+ ] }, C._id)) })
2414
2420
  ] }),
2415
- /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2068", className: `vg-formal-pin ${X ? "ready" : Y ? "mixed" : ""} ${R ? "modal-variant" : ""}`, style: { position: "relative" }, children: [
2416
- X ? /* @__PURE__ */ o.jsx(le, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2069", size: 18 }) : R ? /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2069", size: 16 }) : /* @__PURE__ */ o.jsx(je, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2069", size: 16 }),
2417
- f > 1 && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2072", className: "vg-pin-badge vg-animate-pop", children: f })
2421
+ /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2076", className: `vg-formal-pin ${W ? "ready" : J ? "mixed" : ""} ${R ? "modal-variant" : ""}`, style: { position: "relative" }, children: [
2422
+ W ? /* @__PURE__ */ o.jsx(de, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2077", size: 18 }) : R ? /* @__PURE__ */ o.jsx(st, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2077", size: 16 }) : /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2077", size: 16 }),
2423
+ w > 1 && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2080", className: "vg-pin-badge vg-animate-pop", children: w })
2418
2424
  ] })
2419
2425
  ]
2420
2426
  },
@@ -2424,25 +2430,25 @@ const Ae = 2147483647, De = Ae, Fe = 2e6, hn = Ae - 10, gn = Ae - 5, xn = Ae - 1
2424
2430
  /* @__PURE__ */ o.jsx(
2425
2431
  "div",
2426
2432
  {
2427
- "data-source-path": "/src/components/ViewGateOverlay.tsx:2081",
2428
- className: `vg-url-tooltip ${D ? "visible" : ""} ${D?.direction === "bottom" ? "vg-bottom" : "vg-top"}`,
2433
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:2089",
2434
+ className: `vg-url-tooltip ${F ? "visible" : ""} ${F?.direction === "bottom" ? "vg-bottom" : "vg-top"}`,
2429
2435
  style: {
2430
- transform: D ? `translate(-50%, ${D.direction === "top" ? "-110%" : "10%"})` : "translate(-50%, 0)",
2431
- left: D?.x || 0,
2432
- top: D?.y || 0
2436
+ transform: F ? `translate(-50%, ${F.direction === "top" ? "-110%" : "10%"})` : "translate(-50%, 0)",
2437
+ left: F?.x || 0,
2438
+ top: F?.y || 0
2433
2439
  },
2434
- children: D?.url
2440
+ children: F?.url
2435
2441
  }
2436
2442
  )
2437
2443
  ] }) });
2438
2444
  };
2439
- function _t(e, t, r) {
2445
+ function Tt(e, t, r) {
2440
2446
  if (!t.endsWith(".tsx") && !t.endsWith(".jsx") || t.includes("node_modules")) return e;
2441
2447
  const n = (i) => i.replace(/\\/g, "/"), a = n(t).replace(n(r), "");
2442
2448
  return e.split(`
2443
2449
  `).map((i, u) => {
2444
2450
  const p = u + 1;
2445
- return i.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (m, h, O) => m.includes("data-source-path") || O === "Fragment" || O === "React.Fragment" ? m : `${h}<${O} data-source-path="${a}:${p}"`);
2451
+ return i.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (m, f, A) => m.includes("data-source-path") || A === "Fragment" || A === "React.Fragment" ? m : `${f}<${A} data-source-path="${a}:${p}"`);
2446
2452
  }).join(`
2447
2453
  `);
2448
2454
  }
@@ -2452,7 +2458,7 @@ function $n() {
2452
2458
  enforce: "pre",
2453
2459
  transform(e, t) {
2454
2460
  return {
2455
- code: _t(e, t, process.cwd()),
2461
+ code: Tt(e, t, process.cwd()),
2456
2462
  map: null
2457
2463
  };
2458
2464
  }
@@ -2460,12 +2466,12 @@ function $n() {
2460
2466
  }
2461
2467
  function Mn(e) {
2462
2468
  const t = this.resourcePath;
2463
- return t ? (process.env.NODE_ENV, _t(e, t, process.cwd())) : e;
2469
+ return t ? (process.env.NODE_ENV, Tt(e, t, process.cwd())) : e;
2464
2470
  }
2465
2471
  export {
2466
2472
  Gn as ViewGate,
2467
- Vn as ViewGateOverlay,
2468
- _t as transformSourcePaths,
2473
+ An as ViewGateOverlay,
2474
+ Tt as transformSourcePaths,
2469
2475
  wr as useViewGate,
2470
2476
  Mn as viewgateNextLoader,
2471
2477
  $n as viewgatePlugin