viewgate-wrapper 1.10.16 → 1.10.17

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