viewgate-wrapper 1.10.15 → 1.10.17

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