viewgate-wrapper 1.10.15 → 1.10.16

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