viewgate-wrapper 1.10.14 → 1.10.15

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