viewgate-wrapper 1.11.41 → 1.11.42

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,33 +1,33 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.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;user-select:none!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important}.vg-glassmorphism{background:var(--vg-bg-glass);backdrop-filter:blur(16px) saturate(180%);-webkit-backdrop-filter:blur(16px) saturate(180%);border:1px solid var(--vg-glass-border);box-shadow:0 8px 32px #0000001a;border-radius:var(--vg-radius);position:relative}.vg-button-primary{background:var(--vg-primary-gradient);color:#fff;border:none;padding:12px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:700;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 12px #6366f14d}.vg-button-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #6366f166}.vg-button-primary:disabled,.vg-button-ghost:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.4);transform:none!important;box-shadow:none!important;pointer-events:none}.vg-button-ghost{background:#fffc;color:#1e293b;border:1px solid #e2e8f0;padding:10px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px}.vg-button-ghost:hover{background:#fff;border-color:#cbd5e1;box-shadow:0 4px 12px #0000000d}.vg-badge{background:#f1f5f9;color:#64748b;padding:4px 12px;font-size:11px;border-radius:99px;font-weight:600;display:inline-flex;align-items:center;gap:6px}.vg-textarea{width:100%;box-sizing:border-box;border:1px solid #e2e8f0;border-radius:12px;padding:12px;font-family:var(--vg-font-main);font-size:15px;color:#0f172a;resize:none;outline:none;background:#f8fafc;transition:all .2s ease}.vg-textarea:focus{background:#fff;border-color:var(--vg-primary);box-shadow:0 0 0 4px #6366f11a}@keyframes vg-fade-in{0%{opacity:0}to{opacity:1}}@keyframes vg-slide-in{0%{transform:translateY(30px) scale(.96);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes vg-pop-in{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08);opacity:1}to{transform:scale(1);opacity:1}}@keyframes vg-slide-up-fade{0%{transform:translateY(12px) scale(.95);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.vg-animate-pop{animation:vg-pop-in .4s cubic-bezier(.34,1.56,.64,1) forwards}.vg-animate-slide-up{animation:vg-slide-up-fade .5s cubic-bezier(.22,1,.36,1) forwards}.vg-button-primary,.vg-button-ghost,.vg-pin-container,.vg-action-bar,.vg-glassmorphism{transition:all .3s cubic-bezier(.4,0,.2,1)}.vg-animate-slide{animation:vg-slide-in .5s cubic-bezier(.22,1,.36,1) forwards}.vg-animate-fade{animation:vg-fade-in .35s cubic-bezier(.22,1,.36,1) forwards}.vg-toasts{position:fixed;top:24px;right:24px;display:flex;flex-direction:column;gap:12px}.vg-toast{padding:12px 20px;display:flex;align-items:center;gap:12px;min-width:300px;border-radius:12px;box-shadow:0 10px 30px #0000001a;background:#fff}.vg-toast.success{border-left:6px solid #22c55e}.vg-toast.error{border-left:6px solid #ef4444}.vg-backdrop-blur{position:fixed;top:0;left:0;width:100%;height:100%;-webkit-backdrop-filter:blur(8px) grayscale(.2);backdrop-filter:blur(8px) grayscale(.2);background:#0000001a;pointer-events:none;transition:opacity .3s ease,clip-path .2s cubic-bezier(.19,1,.22,1)}.vg-selection-pulse{position:fixed;pointer-events:none;border:2px solid var(--vg-primary);border-radius:8px;box-shadow:0 0 0 0 var(--vg-primary-glow);animation:vg-pulse 2s infinite;transition:all .2s cubic-bezier(.19,1,.22,1)}@keyframes vg-pulse{0%{box-shadow:0 0 0 0 var(--vg-primary-glow)}70%{box-shadow:0 0 0 15px #6366f100}to{box-shadow:0 0 #6366f100}}.vg-selection-label{position:absolute;top:-40px;left:0;background:var(--vg-primary-gradient);color:#fff;padding:8px 16px;border-radius:20px;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:0 4px 12px #6366f14d;display:flex;align-items:center;gap:8px}.vg-pin-container{transition:transform .2s ease}.vg-pin-container:hover{transform:scale(1.1);z-index:2147483645!important}.vg-formal-pin{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#f97316,#ea580c);border:3px solid white;box-shadow:0 4px 12px #ea580c66;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s ease}.vg-formal-pin.modal-variant{background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 4px 12px #f59e0b66;border-style:dashed}.vg-formal-pin.ready{background:linear-gradient(135deg,#a855f7,#7e22ce);box-shadow:0 4px 12px #a855f766}.vg-formal-pin.completed{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 4px 12px #10b98166}.vg-formal-pin.backlog{background:linear-gradient(135deg,#94a3b8,#64748b);box-shadow:0 4px 12px #64748b66}.vg-formal-pin.bug{background:linear-gradient(135deg,#f43f5e,#e11d48);box-shadow:0 4px 12px #e11d4866}.vg-formal-pin.mixed{border:3px solid #ea580c;box-shadow:0 4px 15px #ea580c66}.vg-pin-tooltip{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%);padding:16px;border-radius:16px;background:#fff;color:#1e293b;width:320px;font-size:13px;box-shadow:0 10px 40px #00000040;opacity:0;visibility:hidden;pointer-events:none;transition:all .3s cubic-bezier(.19,1,.22,1);border:1px solid #e2e8f0;z-index:1000;overflow:hidden}.vg-tooltip-scroll{scrollbar-width:thin;scrollbar-color:rgba(99,102,241,.2) transparent;overflow-y:auto;overflow-x:hidden;padding-right:12px;scroll-behavior:smooth}.vg-tooltip-scroll::-webkit-scrollbar{width:4px}.vg-tooltip-scroll::-webkit-scrollbar-track{background:transparent}.vg-tooltip-scroll::-webkit-scrollbar-thumb{background:#6366f14d;border-radius:10px}.vg-tooltip-scroll::-webkit-scrollbar-thumb:hover{background:#6366f180}.vg-text-wrap{word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;white-space:pre-wrap}.vg-line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;max-height:2.8em}.vg-pin-badge{position:absolute;top:-8px;right:-8px;background:#f43f5e;color:#fff;font-size:10px;font-weight:800;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid white;box-shadow:0 4px 12px #f43f5e66;z-index:2}.vg-pin-tooltip.vg-top{top:auto;bottom:calc(100% + 12px)}.vg-pin-tooltip.vg-tooltip-right{left:0;transform:translate(0)}.vg-pin-tooltip.vg-tooltip-left{left:auto;right:0;transform:translate(0)}.vg-pin-container:hover .vg-pin-tooltip.vg-tooltip-right,.vg-pin-container:hover .vg-pin-tooltip.vg-tooltip-left{transform:translate(0) translateY(-5px)}.vg-pin-container:hover .vg-pin-tooltip{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%) translateY(-5px)}.vg-action-bar{display:flex;gap:12px;padding:0;background:transparent;border:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.vg-custom-scrollbar::-webkit-scrollbar{width:6px}.vg-custom-scrollbar::-webkit-scrollbar-track{background:transparent}.vg-custom-scrollbar::-webkit-scrollbar-thumb{background:#6366f166;border-radius:10px;transition:all .2s ease}.vg-custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#6366f1b3}.vg-spinner{border:3px solid rgba(99,102,241,.1);border-top:3px solid var(--vg-primary);border-radius:50%;width:32px;height:32px;animation:vg-spin .8s linear infinite}@keyframes vg-spin{to{transform:rotate(360deg)}}.vg-animate-spin{animation:vg-spin .8s linear infinite}.vg-cursor-pointer,.vg-cursor-pointer *{cursor:pointer!important}.vg-url-tag{position:relative;cursor:help;transition:all .2s ease}.vg-url-tag:hover{background:#f1f5f9!important;border-color:var(--vg-primary)!important}.vg-url-tooltip{position:fixed;left:0;top:0;background:#0f172a;color:#fff;padding:8px 14px;border-radius:10px;font-size:11px;font-weight:500;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;box-shadow:0 10px 25px -5px #0006;z-index:2147483647;border:1px solid rgba(255,255,255,.1)}.vg-url-tooltip.visible{opacity:1}.vg-url-tooltip:after{content:"";position:absolute;left:50%;transform:translate(-50%);border-width:6px;border-style:solid}.vg-url-tooltip.vg-top:after{top:100%;border-color:#0f172a transparent transparent transparent}.vg-url-tooltip.vg-bottom:after{bottom:100%;border-color:transparent transparent #0f172a transparent}.vg-segmented-control{display:flex;background:#f1f5f9;padding:4px;border-radius:99px;position:relative;cursor:pointer;-webkit-user-select:none;user-select:none;border:4px solid #e2e8f0;width:100%;max-width:480px;margin:0 auto}.vg-segmented-slider{position:absolute;top:4px;bottom:4px;border-radius:99px;transition:all .35s cubic-bezier(.4,0,.2,1);z-index:1}.vg-segmented-item{position:relative;flex:1;padding:8px 4px;font-size:11px;font-weight:700;text-align:center;z-index:2;transition:all .35s ease;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:99px;color:#64748b;white-space:nowrap;min-width:0}.vg-segmented-item.active{color:#fff}.vg-glassmorphism.vg-animate-slide:last-child{margin-bottom:0!important}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- import xt, { createContext as Rr, useEffect as se, useLayoutEffect as ss, useContext as _r, useMemo as ot, useRef as ee, useCallback as _e, useDebugValue as os, useState as C, forwardRef as Tr, createElement as Ga } from "react";
3
- import { createPortal as ns } from "react-dom";
2
+ import xt, { createContext as _r, useEffect as oe, useLayoutEffect as oo, useContext as Tr, useMemo as st, useRef as ee, useCallback as _e, useDebugValue as so, useState as C, forwardRef as Ar, createElement as Ra } from "react";
3
+ import { createPortal as no } from "react-dom";
4
4
  var Xt = { exports: {} }, Ct = {};
5
5
  var sr;
6
- function is() {
6
+ function io() {
7
7
  if (sr) return Ct;
8
8
  sr = 1;
9
- var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), s = /* @__PURE__ */ Symbol.for("react.fragment");
10
- function r(o, c, d) {
9
+ var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), o = /* @__PURE__ */ Symbol.for("react.fragment");
10
+ function r(s, i, c) {
11
11
  var l = null;
12
- if (d !== void 0 && (l = "" + d), c.key !== void 0 && (l = "" + c.key), "key" in c) {
13
- d = {};
14
- for (var u in c)
15
- u !== "key" && (d[u] = c[u]);
16
- } else d = c;
17
- return c = d.ref, {
12
+ if (c !== void 0 && (l = "" + c), i.key !== void 0 && (l = "" + i.key), "key" in i) {
13
+ c = {};
14
+ for (var p in i)
15
+ p !== "key" && (c[p] = i[p]);
16
+ } else c = i;
17
+ return i = c.ref, {
18
18
  $$typeof: e,
19
- type: o,
19
+ type: s,
20
20
  key: l,
21
- ref: c !== void 0 ? c : null,
22
- props: d
21
+ ref: i !== void 0 ? i : null,
22
+ props: c
23
23
  };
24
24
  }
25
- return Ct.Fragment = s, Ct.jsx = r, Ct.jsxs = r, Ct;
25
+ return Ct.Fragment = o, Ct.jsx = r, Ct.jsxs = r, Ct;
26
26
  }
27
27
  var Et = {};
28
- var or;
29
- function cs() {
30
- return or || (or = 1, process.env.NODE_ENV !== "production" && (function() {
28
+ var nr;
29
+ function co() {
30
+ return nr || (nr = 1, process.env.NODE_ENV !== "production" && (function() {
31
31
  function e(f) {
32
32
  if (f == null) return null;
33
33
  if (typeof f == "function")
@@ -44,7 +44,7 @@ function cs() {
44
44
  return "Suspense";
45
45
  case X:
46
46
  return "SuspenseList";
47
- case oe:
47
+ case se:
48
48
  return "Activity";
49
49
  }
50
50
  if (typeof f == "object")
@@ -71,12 +71,12 @@ function cs() {
71
71
  }
72
72
  return null;
73
73
  }
74
- function s(f) {
74
+ function o(f) {
75
75
  return "" + f;
76
76
  }
77
77
  function r(f) {
78
78
  try {
79
- s(f);
79
+ o(f);
80
80
  var R = !1;
81
81
  } catch {
82
82
  R = !0;
@@ -88,10 +88,10 @@ function cs() {
88
88
  R,
89
89
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
90
90
  $
91
- ), s(f);
91
+ ), o(f);
92
92
  }
93
93
  }
94
- function o(f) {
94
+ function s(f) {
95
95
  if (f === T) return "<>";
96
96
  if (typeof f == "object" && f !== null && f.$$typeof === D)
97
97
  return "<...>";
@@ -102,11 +102,11 @@ function cs() {
102
102
  return "<...>";
103
103
  }
104
104
  }
105
- function c() {
105
+ function i() {
106
106
  var f = M.A;
107
107
  return f === null ? null : f.getOwner();
108
108
  }
109
- function d() {
109
+ function c() {
110
110
  return Error("react-stack-top-frame");
111
111
  }
112
112
  function l(f) {
@@ -116,7 +116,7 @@ function cs() {
116
116
  }
117
117
  return f.key !== void 0;
118
118
  }
119
- function u(f, R) {
119
+ function p(f, R) {
120
120
  function z() {
121
121
  L || (L = !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)",
@@ -134,7 +134,7 @@ function cs() {
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
  )), f = this.props.ref, f !== void 0 ? f : null;
136
136
  }
137
- function k(f, R, z, $, Ae, Ee) {
137
+ function S(f, R, z, $, Ae, Ee) {
138
138
  var P = z.ref;
139
139
  return f = {
140
140
  $$typeof: V,
@@ -203,14 +203,14 @@ React keys must be passed directly to JSX without using spread:
203
203
  for (var nt in R)
204
204
  nt !== "key" && (z[nt] = R[nt]);
205
205
  } else z = R;
206
- return P && u(
206
+ return P && p(
207
207
  z,
208
208
  typeof f == "function" ? f.displayName || f.name || "Unknown" : f
209
- ), k(
209
+ ), S(
210
210
  f,
211
211
  P,
212
212
  z,
213
- c(),
213
+ i(),
214
214
  Ae,
215
215
  Ee
216
216
  );
@@ -221,18 +221,18 @@ React keys must be passed directly to JSX without using spread:
221
221
  function h(f) {
222
222
  return typeof f == "object" && f !== null && f.$$typeof === V;
223
223
  }
224
- var S = xt, V = /* @__PURE__ */ Symbol.for("react.transitional.element"), E = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), G = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), ge = /* @__PURE__ */ Symbol.for("react.consumer"), A = /* @__PURE__ */ Symbol.for("react.context"), U = /* @__PURE__ */ Symbol.for("react.forward_ref"), N = /* @__PURE__ */ Symbol.for("react.suspense"), X = /* @__PURE__ */ Symbol.for("react.suspense_list"), re = /* @__PURE__ */ Symbol.for("react.memo"), D = /* @__PURE__ */ Symbol.for("react.lazy"), oe = /* @__PURE__ */ Symbol.for("react.activity"), le = /* @__PURE__ */ Symbol.for("react.client.reference"), M = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, pe = Object.prototype.hasOwnProperty, B = Array.isArray, ne = console.createTask ? console.createTask : function() {
224
+ var k = xt, V = /* @__PURE__ */ Symbol.for("react.transitional.element"), E = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), G = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), ge = /* @__PURE__ */ Symbol.for("react.consumer"), A = /* @__PURE__ */ Symbol.for("react.context"), U = /* @__PURE__ */ Symbol.for("react.forward_ref"), N = /* @__PURE__ */ Symbol.for("react.suspense"), X = /* @__PURE__ */ Symbol.for("react.suspense_list"), re = /* @__PURE__ */ Symbol.for("react.memo"), D = /* @__PURE__ */ Symbol.for("react.lazy"), se = /* @__PURE__ */ Symbol.for("react.activity"), le = /* @__PURE__ */ Symbol.for("react.client.reference"), M = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, pe = Object.prototype.hasOwnProperty, B = Array.isArray, ne = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
- S = {
227
+ k = {
228
228
  react_stack_bottom_frame: function(f) {
229
229
  return f();
230
230
  }
231
231
  };
232
- var L, je = {}, Oe = S.react_stack_bottom_frame.bind(
233
- S,
234
- d
235
- )(), Be = ne(o(d)), Ce = {};
232
+ var L, je = {}, Oe = k.react_stack_bottom_frame.bind(
233
+ k,
234
+ c
235
+ )(), Be = ne(s(c)), Ce = {};
236
236
  Et.Fragment = T, Et.jsx = function(f, R, z) {
237
237
  var $ = 1e4 > M.recentlyCreatedOwnerStacks++;
238
238
  return y(
@@ -241,7 +241,7 @@ React keys must be passed directly to JSX without using spread:
241
241
  z,
242
242
  !1,
243
243
  $ ? Error("react-stack-top-frame") : Oe,
244
- $ ? ne(o(f)) : Be
244
+ $ ? ne(s(f)) : Be
245
245
  );
246
246
  }, Et.jsxs = function(f, R, z) {
247
247
  var $ = 1e4 > M.recentlyCreatedOwnerStacks++;
@@ -251,72 +251,72 @@ React keys must be passed directly to JSX without using spread:
251
251
  z,
252
252
  !0,
253
253
  $ ? Error("react-stack-top-frame") : Oe,
254
- $ ? ne(o(f)) : Be
254
+ $ ? ne(s(f)) : Be
255
255
  );
256
256
  };
257
257
  })()), Et;
258
258
  }
259
- var nr;
260
- function ds() {
261
- return nr || (nr = 1, process.env.NODE_ENV === "production" ? Xt.exports = is() : Xt.exports = cs()), Xt.exports;
262
- }
263
- var t = ds(), Kt = { exports: {} }, ya = {};
264
259
  var ir;
265
- function ls() {
266
- if (ir) return ya;
267
- ir = 1;
260
+ function lo() {
261
+ return ir || (ir = 1, process.env.NODE_ENV === "production" ? Xt.exports = io() : Xt.exports = co()), Xt.exports;
262
+ }
263
+ var t = lo(), Kt = { exports: {} }, ba = {};
264
+ var cr;
265
+ function po() {
266
+ if (cr) return ba;
267
+ cr = 1;
268
268
  var e = xt;
269
- function s(g, h) {
269
+ function o(g, h) {
270
270
  return g === h && (g !== 0 || 1 / g === 1 / h) || g !== g && h !== h;
271
271
  }
272
- var r = typeof Object.is == "function" ? Object.is : s, o = e.useState, c = e.useEffect, d = e.useLayoutEffect, l = e.useDebugValue;
273
- function u(g, h) {
274
- var S = h(), V = o({ inst: { value: S, getSnapshot: h } }), E = V[0].inst, T = V[1];
275
- return d(
272
+ var r = typeof Object.is == "function" ? Object.is : o, s = e.useState, i = e.useEffect, c = e.useLayoutEffect, l = e.useDebugValue;
273
+ function p(g, h) {
274
+ var k = h(), V = s({ inst: { value: k, getSnapshot: h } }), E = V[0].inst, T = V[1];
275
+ return c(
276
276
  function() {
277
- E.value = S, E.getSnapshot = h, m(E) && T({ inst: E });
277
+ E.value = k, E.getSnapshot = h, m(E) && T({ inst: E });
278
278
  },
279
- [g, S, h]
280
- ), c(
279
+ [g, k, h]
280
+ ), i(
281
281
  function() {
282
282
  return m(E) && T({ inst: E }), g(function() {
283
283
  m(E) && T({ inst: E });
284
284
  });
285
285
  },
286
286
  [g]
287
- ), l(S), S;
287
+ ), l(k), k;
288
288
  }
289
289
  function m(g) {
290
290
  var h = g.getSnapshot;
291
291
  g = g.value;
292
292
  try {
293
- var S = h();
294
- return !r(g, S);
293
+ var k = h();
294
+ return !r(g, k);
295
295
  } catch {
296
296
  return !0;
297
297
  }
298
298
  }
299
- function k(g, h) {
299
+ function S(g, h) {
300
300
  return h();
301
301
  }
302
- var y = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? k : u;
303
- return ya.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : y, ya;
302
+ var y = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? S : p;
303
+ return ba.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : y, ba;
304
304
  }
305
- var ba = {};
306
- var cr;
307
- function ps() {
308
- return cr || (cr = 1, process.env.NODE_ENV !== "production" && (function() {
309
- function e(S, V) {
310
- return S === V && (S !== 0 || 1 / S === 1 / V) || S !== S && V !== V;
305
+ var wa = {};
306
+ var dr;
307
+ function uo() {
308
+ return dr || (dr = 1, process.env.NODE_ENV !== "production" && (function() {
309
+ function e(k, V) {
310
+ return k === V && (k !== 0 || 1 / k === 1 / V) || k !== k && V !== V;
311
311
  }
312
- function s(S, V) {
313
- y || c.startTransition === void 0 || (y = !0, console.error(
312
+ function o(k, V) {
313
+ y || i.startTransition === void 0 || (y = !0, console.error(
314
314
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
315
315
  ));
316
316
  var E = V();
317
317
  if (!g) {
318
318
  var T = V();
319
- d(E, T) || (console.error(
319
+ c(E, T) || (console.error(
320
320
  "The result of getSnapshot should be cached to avoid an infinite loop"
321
321
  ), g = !0);
322
322
  }
@@ -328,188 +328,188 @@ function ps() {
328
328
  function() {
329
329
  G.value = E, G.getSnapshot = V, r(G) && x({ inst: G });
330
330
  },
331
- [S, E, V]
332
- ), u(
331
+ [k, E, V]
332
+ ), p(
333
333
  function() {
334
- return r(G) && x({ inst: G }), S(function() {
334
+ return r(G) && x({ inst: G }), k(function() {
335
335
  r(G) && x({ inst: G });
336
336
  });
337
337
  },
338
- [S]
339
- ), k(E), E;
338
+ [k]
339
+ ), S(E), E;
340
340
  }
341
- function r(S) {
342
- var V = S.getSnapshot;
343
- S = S.value;
341
+ function r(k) {
342
+ var V = k.getSnapshot;
343
+ k = k.value;
344
344
  try {
345
345
  var E = V();
346
- return !d(S, E);
346
+ return !c(k, E);
347
347
  } catch {
348
348
  return !0;
349
349
  }
350
350
  }
351
- function o(S, V) {
351
+ function s(k, V) {
352
352
  return V();
353
353
  }
354
354
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
355
- var c = xt, d = typeof Object.is == "function" ? Object.is : e, l = c.useState, u = c.useEffect, m = c.useLayoutEffect, k = c.useDebugValue, y = !1, g = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? o : s;
356
- ba.useSyncExternalStore = c.useSyncExternalStore !== void 0 ? c.useSyncExternalStore : h, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
357
- })()), ba;
355
+ var i = xt, c = typeof Object.is == "function" ? Object.is : e, l = i.useState, p = i.useEffect, m = i.useLayoutEffect, S = i.useDebugValue, y = !1, g = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? s : o;
356
+ wa.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : h, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
357
+ })()), wa;
358
358
  }
359
- var dr;
360
- function us() {
361
- return dr || (dr = 1, process.env.NODE_ENV === "production" ? Kt.exports = ls() : Kt.exports = ps()), Kt.exports;
359
+ var lr;
360
+ function fo() {
361
+ return lr || (lr = 1, process.env.NODE_ENV === "production" ? Kt.exports = po() : Kt.exports = uo()), Kt.exports;
362
362
  }
363
- var lr = us();
364
- const Ar = 0, Ir = 1, Nr = 2, pr = 3;
365
- var ur = Object.prototype.hasOwnProperty;
366
- function Ra(e, s) {
367
- var r, o;
368
- if (e === s) return !0;
369
- if (e && s && (r = e.constructor) === s.constructor) {
370
- if (r === Date) return e.getTime() === s.getTime();
371
- if (r === RegExp) return e.toString() === s.toString();
363
+ var pr = fo();
364
+ const Ir = 0, Nr = 1, zr = 2, ur = 3;
365
+ var fr = Object.prototype.hasOwnProperty;
366
+ function _a(e, o) {
367
+ var r, s;
368
+ if (e === o) return !0;
369
+ if (e && o && (r = e.constructor) === o.constructor) {
370
+ if (r === Date) return e.getTime() === o.getTime();
371
+ if (r === RegExp) return e.toString() === o.toString();
372
372
  if (r === Array) {
373
- if ((o = e.length) === s.length)
374
- for (; o-- && Ra(e[o], s[o]); ) ;
375
- return o === -1;
373
+ if ((s = e.length) === o.length)
374
+ for (; s-- && _a(e[s], o[s]); ) ;
375
+ return s === -1;
376
376
  }
377
377
  if (!r || typeof e == "object") {
378
- o = 0;
378
+ s = 0;
379
379
  for (r in e)
380
- if (ur.call(e, r) && ++o && !ur.call(s, r) || !(r in s) || !Ra(e[r], s[r])) return !1;
381
- return Object.keys(s).length === o;
380
+ if (fr.call(e, r) && ++s && !fr.call(o, r) || !(r in o) || !_a(e[r], o[r])) return !1;
381
+ return Object.keys(o).length === s;
382
382
  }
383
383
  }
384
- return e !== e && s !== s;
384
+ return e !== e && o !== o;
385
385
  }
386
386
  const $e = /* @__PURE__ */ new WeakMap(), Fe = () => {
387
387
  }, de = (
388
388
  /*#__NOINLINE__*/
389
389
  Fe()
390
- ), _a = Object, I = (e) => e === de, Pe = (e) => typeof e == "function", Xe = (e, s) => ({
390
+ ), Ta = Object, I = (e) => e === de, Pe = (e) => typeof e == "function", Xe = (e, o) => ({
391
391
  ...e,
392
- ...s
393
- }), zr = (e) => Pe(e.then), wa = {}, Jt = {}, Ma = "undefined", It = typeof window != Ma, Ta = typeof document != Ma, fs = It && "Deno" in window, gs = () => It && typeof window.requestAnimationFrame != Ma, Pr = (e, s) => {
392
+ ...o
393
+ }), Pr = (e) => Pe(e.then), ka = {}, Jt = {}, La = "undefined", It = typeof window != La, Aa = typeof document != La, go = It && "Deno" in window, mo = () => It && typeof window.requestAnimationFrame != La, Mr = (e, o) => {
394
394
  const r = $e.get(e);
395
395
  return [
396
396
  // Getter
397
- () => !I(s) && e.get(s) || wa,
397
+ () => !I(o) && e.get(o) || ka,
398
398
  // Setter
399
- (o) => {
400
- if (!I(s)) {
401
- const c = e.get(s);
402
- s in Jt || (Jt[s] = c), r[5](s, Xe(c, o), c || wa);
399
+ (s) => {
400
+ if (!I(o)) {
401
+ const i = e.get(o);
402
+ o in Jt || (Jt[o] = i), r[5](o, Xe(i, s), i || ka);
403
403
  }
404
404
  },
405
405
  // Subscriber
406
406
  r[6],
407
407
  // Get server cache snapshot
408
- () => !I(s) && s in Jt ? Jt[s] : !I(s) && e.get(s) || wa
408
+ () => !I(o) && o in Jt ? Jt[o] : !I(o) && e.get(o) || ka
409
409
  ];
410
410
  };
411
- let Aa = !0;
412
- const ms = () => Aa, [Ia, Na] = It && window.addEventListener ? [
411
+ let Ia = !0;
412
+ const ho = () => Ia, [Na, za] = It && window.addEventListener ? [
413
413
  window.addEventListener.bind(window),
414
414
  window.removeEventListener.bind(window)
415
415
  ] : [
416
416
  Fe,
417
417
  Fe
418
- ], hs = () => {
419
- const e = Ta && document.visibilityState;
418
+ ], xo = () => {
419
+ const e = Aa && document.visibilityState;
420
420
  return I(e) || e !== "hidden";
421
- }, xs = (e) => (Ta && document.addEventListener("visibilitychange", e), Ia("focus", e), () => {
422
- Ta && document.removeEventListener("visibilitychange", e), Na("focus", e);
423
- }), vs = (e) => {
424
- const s = () => {
425
- Aa = !0, e();
421
+ }, vo = (e) => (Aa && document.addEventListener("visibilitychange", e), Na("focus", e), () => {
422
+ Aa && document.removeEventListener("visibilitychange", e), za("focus", e);
423
+ }), yo = (e) => {
424
+ const o = () => {
425
+ Ia = !0, e();
426
426
  }, r = () => {
427
- Aa = !1;
427
+ Ia = !1;
428
428
  };
429
- return Ia("online", s), Ia("offline", r), () => {
430
- Na("online", s), Na("offline", r);
429
+ return Na("online", o), Na("offline", r), () => {
430
+ za("online", o), za("offline", r);
431
431
  };
432
- }, ys = {
433
- isOnline: ms,
434
- isVisible: hs
435
- }, bs = {
436
- initFocus: xs,
437
- initReconnect: vs
438
- }, fr = !xt.useId, ht = !It || fs, ws = (e) => gs() ? window.requestAnimationFrame(e) : setTimeout(e, 1), ka = ht ? se : ss, Sa = typeof navigator < "u" && navigator.connection, gr = !ht && Sa && ([
432
+ }, bo = {
433
+ isOnline: ho,
434
+ isVisible: xo
435
+ }, wo = {
436
+ initFocus: vo,
437
+ initReconnect: yo
438
+ }, gr = !xt.useId, ht = !It || go, ko = (e) => mo() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Sa = ht ? oe : oo, ja = typeof navigator < "u" && navigator.connection, mr = !ht && ja && ([
439
439
  "slow-2g",
440
440
  "2g"
441
- ].includes(Sa.effectiveType) || Sa.saveData), Zt = /* @__PURE__ */ new WeakMap(), ks = (e) => _a.prototype.toString.call(e), ja = (e, s) => e === `[object ${s}]`;
442
- let Ss = 0;
443
- const za = (e) => {
444
- const s = typeof e, r = ks(e), o = ja(r, "Date"), c = ja(r, "RegExp"), d = ja(r, "Object");
445
- let l, u;
446
- if (_a(e) === e && !o && !c) {
441
+ ].includes(ja.effectiveType) || ja.saveData), Zt = /* @__PURE__ */ new WeakMap(), So = (e) => Ta.prototype.toString.call(e), Oa = (e, o) => e === `[object ${o}]`;
442
+ let jo = 0;
443
+ const Pa = (e) => {
444
+ const o = typeof e, r = So(e), s = Oa(r, "Date"), i = Oa(r, "RegExp"), c = Oa(r, "Object");
445
+ let l, p;
446
+ if (Ta(e) === e && !s && !i) {
447
447
  if (l = Zt.get(e), l) return l;
448
- if (l = ++Ss + "~", Zt.set(e, l), Array.isArray(e)) {
449
- for (l = "@", u = 0; u < e.length; u++)
450
- l += za(e[u]) + ",";
448
+ if (l = ++jo + "~", Zt.set(e, l), Array.isArray(e)) {
449
+ for (l = "@", p = 0; p < e.length; p++)
450
+ l += Pa(e[p]) + ",";
451
451
  Zt.set(e, l);
452
452
  }
453
- if (d) {
453
+ if (c) {
454
454
  l = "#";
455
- const m = _a.keys(e).sort();
456
- for (; !I(u = m.pop()); )
457
- I(e[u]) || (l += u + ":" + za(e[u]) + ",");
455
+ const m = Ta.keys(e).sort();
456
+ for (; !I(p = m.pop()); )
457
+ I(e[p]) || (l += p + ":" + Pa(e[p]) + ",");
458
458
  Zt.set(e, l);
459
459
  }
460
460
  } else
461
- l = o ? e.toJSON() : s == "symbol" ? e.toString() : s == "string" ? JSON.stringify(e) : "" + e;
461
+ l = s ? e.toJSON() : o == "symbol" ? e.toString() : o == "string" ? JSON.stringify(e) : "" + e;
462
462
  return l;
463
- }, La = (e) => {
463
+ }, Wa = (e) => {
464
464
  if (Pe(e))
465
465
  try {
466
466
  e = e();
467
467
  } catch {
468
468
  e = "";
469
469
  }
470
- const s = e;
471
- return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? za(e) : "", [
470
+ const o = e;
471
+ return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? Pa(e) : "", [
472
472
  e,
473
- s
473
+ o
474
474
  ];
475
475
  };
476
- let js = 0;
477
- const Pa = () => ++js;
478
- async function Mr(...e) {
479
- const [s, r, o, c] = e, d = Xe({
476
+ let Oo = 0;
477
+ const Ma = () => ++Oo;
478
+ async function Lr(...e) {
479
+ const [o, r, s, i] = e, c = Xe({
480
480
  populateCache: !0,
481
481
  throwOnError: !0
482
- }, typeof c == "boolean" ? {
483
- revalidate: c
484
- } : c || {});
485
- let l = d.populateCache;
486
- const u = d.rollbackOnError;
487
- let m = d.optimisticData;
488
- const k = (h) => typeof u == "function" ? u(h) : u !== !1, y = d.throwOnError;
482
+ }, typeof i == "boolean" ? {
483
+ revalidate: i
484
+ } : i || {});
485
+ let l = c.populateCache;
486
+ const p = c.rollbackOnError;
487
+ let m = c.optimisticData;
488
+ const S = (h) => typeof p == "function" ? p(h) : p !== !1, y = c.throwOnError;
489
489
  if (Pe(r)) {
490
- const h = r, S = [], V = s.keys();
490
+ const h = r, k = [], V = o.keys();
491
491
  for (const E of V)
492
492
  // Skip the special useSWRInfinite and useSWRSubscription keys.
493
- !/^\$(inf|sub)\$/.test(E) && h(s.get(E)._k) && S.push(E);
494
- return Promise.all(S.map(g));
493
+ !/^\$(inf|sub)\$/.test(E) && h(o.get(E)._k) && k.push(E);
494
+ return Promise.all(k.map(g));
495
495
  }
496
496
  return g(r);
497
497
  async function g(h) {
498
- const [S] = La(h);
499
- if (!S) return;
500
- const [V, E] = Pr(s, S), [T, G, x, ge] = $e.get(s), A = () => {
501
- const B = T[S];
502
- return (Pe(d.revalidate) ? d.revalidate(V().data, h) : d.revalidate !== !1) && (delete x[S], delete ge[S], B && B[0]) ? B[0](Nr).then(() => V().data) : V().data;
498
+ const [k] = Wa(h);
499
+ if (!k) return;
500
+ const [V, E] = Mr(o, k), [T, G, x, ge] = $e.get(o), A = () => {
501
+ const B = T[k];
502
+ return (Pe(c.revalidate) ? c.revalidate(V().data, h) : c.revalidate !== !1) && (delete x[k], delete ge[k], B && B[0]) ? B[0](zr).then(() => V().data) : V().data;
503
503
  };
504
504
  if (e.length < 3)
505
505
  return A();
506
- let U = o, N, X = !1;
507
- const re = Pa();
508
- G[S] = [
506
+ let U = s, N, X = !1;
507
+ const re = Ma();
508
+ G[k] = [
509
509
  re,
510
510
  0
511
511
  ];
512
- const D = !I(m), oe = V(), le = oe.data, M = oe._c, pe = I(M) ? le : M;
512
+ const D = !I(m), se = V(), le = se.data, M = se._c, pe = I(M) ? le : M;
513
513
  if (D && (m = Pe(m) ? m(pe, le) : m, E({
514
514
  data: m,
515
515
  _c: pe
@@ -519,13 +519,13 @@ async function Mr(...e) {
519
519
  } catch (B) {
520
520
  N = B, X = !0;
521
521
  }
522
- if (U && zr(U))
522
+ if (U && Pr(U))
523
523
  if (U = await U.catch((B) => {
524
524
  N = B, X = !0;
525
- }), re !== G[S][0]) {
525
+ }), re !== G[k][0]) {
526
526
  if (X) throw N;
527
527
  return U;
528
- } else X && D && k(N) && (l = !0, E({
528
+ } else X && D && S(N) && (l = !0, E({
529
529
  data: pe,
530
530
  _c: de
531
531
  }));
@@ -543,7 +543,7 @@ async function Mr(...e) {
543
543
  error: de,
544
544
  _c: de
545
545
  });
546
- if (G[S][1] = Pa(), Promise.resolve(A()).then(() => {
546
+ if (G[k][1] = Ma(), Promise.resolve(A()).then(() => {
547
547
  E({
548
548
  _c: de
549
549
  });
@@ -554,59 +554,59 @@ async function Mr(...e) {
554
554
  return U;
555
555
  }
556
556
  }
557
- const mr = (e, s) => {
557
+ const hr = (e, o) => {
558
558
  for (const r in e)
559
- e[r][0] && e[r][0](s);
560
- }, Os = (e, s) => {
559
+ e[r][0] && e[r][0](o);
560
+ }, Co = (e, o) => {
561
561
  if (!$e.has(e)) {
562
- const r = Xe(bs, s), o = /* @__PURE__ */ Object.create(null), c = Mr.bind(de, e);
563
- let d = Fe;
564
- const l = /* @__PURE__ */ Object.create(null), u = (y, g) => {
562
+ const r = Xe(wo, o), s = /* @__PURE__ */ Object.create(null), i = Lr.bind(de, e);
563
+ let c = Fe;
564
+ const l = /* @__PURE__ */ Object.create(null), p = (y, g) => {
565
565
  const h = l[y] || [];
566
566
  return l[y] = h, h.push(g), () => h.splice(h.indexOf(g), 1);
567
567
  }, m = (y, g, h) => {
568
568
  e.set(y, g);
569
- const S = l[y];
570
- if (S)
571
- for (const V of S)
569
+ const k = l[y];
570
+ if (k)
571
+ for (const V of k)
572
572
  V(g, h);
573
- }, k = () => {
573
+ }, S = () => {
574
574
  if (!$e.has(e) && ($e.set(e, [
575
- o,
575
+ s,
576
576
  /* @__PURE__ */ Object.create(null),
577
577
  /* @__PURE__ */ Object.create(null),
578
578
  /* @__PURE__ */ Object.create(null),
579
- c,
579
+ i,
580
580
  m,
581
- u
581
+ p
582
582
  ]), !ht)) {
583
- const y = r.initFocus(setTimeout.bind(de, mr.bind(de, o, Ar))), g = r.initReconnect(setTimeout.bind(de, mr.bind(de, o, Ir)));
584
- d = () => {
583
+ const y = r.initFocus(setTimeout.bind(de, hr.bind(de, s, Ir))), g = r.initReconnect(setTimeout.bind(de, hr.bind(de, s, Nr)));
584
+ c = () => {
585
585
  y && y(), g && g(), $e.delete(e);
586
586
  };
587
587
  }
588
588
  };
589
- return k(), [
589
+ return S(), [
590
590
  e,
591
- c,
592
- k,
593
- d
591
+ i,
592
+ S,
593
+ c
594
594
  ];
595
595
  }
596
596
  return [
597
597
  e,
598
598
  $e.get(e)[4]
599
599
  ];
600
- }, Cs = (e, s, r, o, c) => {
601
- const d = r.errorRetryCount, l = c.retryCount, u = ~~((Math.random() + 0.5) * (1 << (l < 8 ? l : 8))) * r.errorRetryInterval;
602
- !I(d) && l > d || setTimeout(o, u, c);
603
- }, Es = Ra, [Lr, Vs] = Os(/* @__PURE__ */ new Map()), Gs = Xe(
600
+ }, Eo = (e, o, r, s, i) => {
601
+ const c = r.errorRetryCount, l = i.retryCount, p = ~~((Math.random() + 0.5) * (1 << (l < 8 ? l : 8))) * r.errorRetryInterval;
602
+ !I(c) && l > c || setTimeout(s, p, i);
603
+ }, Vo = _a, [Wr, Go] = Co(/* @__PURE__ */ new Map()), Ro = Xe(
604
604
  {
605
605
  // events
606
606
  onLoadingSlow: Fe,
607
607
  onSuccess: Fe,
608
608
  onError: Fe,
609
- onErrorRetry: Cs,
609
+ onErrorRetry: Eo,
610
610
  onDiscarded: Fe,
611
611
  // switches
612
612
  revalidateOnFocus: !0,
@@ -614,29 +614,29 @@ const mr = (e, s) => {
614
614
  revalidateIfStale: !0,
615
615
  shouldRetryOnError: !0,
616
616
  // timeouts
617
- errorRetryInterval: gr ? 1e4 : 5e3,
617
+ errorRetryInterval: mr ? 1e4 : 5e3,
618
618
  focusThrottleInterval: 5 * 1e3,
619
619
  dedupingInterval: 2 * 1e3,
620
- loadingTimeout: gr ? 5e3 : 3e3,
620
+ loadingTimeout: mr ? 5e3 : 3e3,
621
621
  // providers
622
- compare: Es,
622
+ compare: Vo,
623
623
  isPaused: () => !1,
624
- cache: Lr,
625
- mutate: Vs,
624
+ cache: Wr,
625
+ mutate: Go,
626
626
  fallback: {}
627
627
  },
628
628
  // use web preset by default
629
- ys
630
- ), Rs = (e, s) => {
631
- const r = Xe(e, s);
632
- if (s) {
633
- const { use: o, fallback: c } = e, { use: d, fallback: l } = s;
634
- o && d && (r.use = o.concat(d)), c && l && (r.fallback = Xe(c, l));
629
+ bo
630
+ ), _o = (e, o) => {
631
+ const r = Xe(e, o);
632
+ if (o) {
633
+ const { use: s, fallback: i } = e, { use: c, fallback: l } = o;
634
+ s && c && (r.use = s.concat(c)), i && l && (r.fallback = Xe(i, l));
635
635
  }
636
636
  return r;
637
- }, _s = Rr({}), Ts = "$inf$", Wr = It && window.__SWR_DEVTOOLS_USE__, As = Wr ? window.__SWR_DEVTOOLS_USE__ : [], Is = () => {
638
- Wr && (window.__SWR_DEVTOOLS_REACT__ = xt);
639
- }, Ns = (e) => Pe(e[1]) ? [
637
+ }, To = _r({}), Ao = "$inf$", Dr = It && window.__SWR_DEVTOOLS_USE__, Io = Dr ? window.__SWR_DEVTOOLS_USE__ : [], No = () => {
638
+ Dr && (window.__SWR_DEVTOOLS_REACT__ = xt);
639
+ }, zo = (e) => Pe(e[1]) ? [
640
640
  e[0],
641
641
  e[1],
642
642
  e[2] || {}
@@ -644,33 +644,33 @@ const mr = (e, s) => {
644
644
  e[0],
645
645
  null,
646
646
  (e[1] === null ? e[2] : e[1]) || {}
647
- ], Dr = () => {
648
- const e = _r(_s);
649
- return ot(() => Xe(Gs, e), [
647
+ ], $r = () => {
648
+ const e = Tr(To);
649
+ return st(() => Xe(Ro, e), [
650
650
  e
651
651
  ]);
652
- }, zs = (e) => (s, r, o) => e(s, r && ((...d) => {
653
- const [l] = La(s), [, , , u] = $e.get(Lr);
654
- if (l.startsWith(Ts))
655
- return r(...d);
656
- const m = u[l];
657
- return I(m) ? r(...d) : (delete u[l], m);
658
- }), o), Ps = As.concat(zs), Ms = (e) => function(...r) {
659
- const o = Dr(), [c, d, l] = Ns(r), u = Rs(o, l);
652
+ }, Po = (e) => (o, r, s) => e(o, r && ((...c) => {
653
+ const [l] = Wa(o), [, , , p] = $e.get(Wr);
654
+ if (l.startsWith(Ao))
655
+ return r(...c);
656
+ const m = p[l];
657
+ return I(m) ? r(...c) : (delete p[l], m);
658
+ }), s), Mo = Io.concat(Po), Lo = (e) => function(...r) {
659
+ const s = $r(), [i, c, l] = zo(r), p = _o(s, l);
660
660
  let m = e;
661
- const { use: k } = u, y = (k || []).concat(Ps);
661
+ const { use: S } = p, y = (S || []).concat(Mo);
662
662
  for (let g = y.length; g--; )
663
663
  m = y[g](m);
664
- return m(c, d || u.fetcher || null, u);
665
- }, Ls = (e, s, r) => {
666
- const o = s[e] || (s[e] = []);
667
- return o.push(r), () => {
668
- const c = o.indexOf(r);
669
- c >= 0 && (o[c] = o[o.length - 1], o.pop());
664
+ return m(i, c || p.fetcher || null, p);
665
+ }, Wo = (e, o, r) => {
666
+ const s = o[e] || (o[e] = []);
667
+ return s.push(r), () => {
668
+ const i = s.indexOf(r);
669
+ i >= 0 && (s[i] = s[s.length - 1], s.pop());
670
670
  };
671
671
  };
672
- Is();
673
- const Oa = xt.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
672
+ No();
673
+ const Ca = xt.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
674
674
  // and emitting an error.
675
675
  // We assume that this is only for the `use(thenable)` case, not `use(context)`.
676
676
  // https://github.com/facebook/react/blob/aed00dacfb79d17c53218404c52b1c7aa59c4a89/packages/react-server/src/ReactFizzThenable.js#L45
@@ -683,31 +683,31 @@ const Oa = xt.use || // This extra generic is to avoid TypeScript mixing up the
683
683
  case "rejected":
684
684
  throw e.reason;
685
685
  default:
686
- throw e.status = "pending", e.then((s) => {
687
- e.status = "fulfilled", e.value = s;
688
- }, (s) => {
689
- e.status = "rejected", e.reason = s;
686
+ throw e.status = "pending", e.then((o) => {
687
+ e.status = "fulfilled", e.value = o;
688
+ }, (o) => {
689
+ e.status = "rejected", e.reason = o;
690
690
  }), e;
691
691
  }
692
- }), Ca = {
692
+ }), Ea = {
693
693
  dedupe: !0
694
- }, hr = Promise.resolve(de), Ws = () => Fe, Ds = (e, s, r) => {
695
- const { cache: o, compare: c, suspense: d, fallbackData: l, revalidateOnMount: u, revalidateIfStale: m, refreshInterval: k, refreshWhenHidden: y, refreshWhenOffline: g, keepPreviousData: h, strictServerPrefetchWarning: S } = r, [V, E, T, G] = $e.get(o), [x, ge] = La(e), A = ee(!1), U = ee(!1), N = ee(x), X = ee(s), re = ee(r), D = () => re.current, oe = () => D().isVisible() && D().isOnline(), [le, M, pe, B] = Pr(o, x), ne = ee({}).current, L = I(l) ? I(r.fallback) ? de : r.fallback[x] : l, je = (W, F) => {
694
+ }, xr = Promise.resolve(de), Do = () => Fe, $o = (e, o, r) => {
695
+ const { cache: s, compare: i, suspense: c, fallbackData: l, revalidateOnMount: p, revalidateIfStale: m, refreshInterval: S, refreshWhenHidden: y, refreshWhenOffline: g, keepPreviousData: h, strictServerPrefetchWarning: k } = r, [V, E, T, G] = $e.get(s), [x, ge] = Wa(e), A = ee(!1), U = ee(!1), N = ee(x), X = ee(o), re = ee(r), D = () => re.current, se = () => D().isVisible() && D().isOnline(), [le, M, pe, B] = Mr(s, x), ne = ee({}).current, L = I(l) ? I(r.fallback) ? de : r.fallback[x] : l, je = (W, F) => {
696
696
  for (const q in ne) {
697
697
  const K = q;
698
698
  if (K === "data") {
699
- if (!c(W[K], F[K]) && (!I(W[K]) || !c(Ee, F[K])))
699
+ if (!i(W[K], F[K]) && (!I(W[K]) || !i(Ee, F[K])))
700
700
  return !1;
701
701
  } else if (F[K] !== W[K])
702
702
  return !1;
703
703
  }
704
704
  return !0;
705
- }, Oe = !A.current, Be = ot(() => {
705
+ }, Oe = !A.current, Be = st(() => {
706
706
  const W = le(), F = B(), q = (J) => {
707
707
  const Y = Xe(J);
708
708
  return delete Y._k, (() => {
709
- if (!x || !s || D().isPaused()) return !1;
710
- if (Oe && !I(u)) return u;
709
+ if (!x || !o || D().isPaused()) return !1;
710
+ if (Oe && !I(p)) return p;
711
711
  const Ne = I(L) ? Y.data : L;
712
712
  return I(Ne) || m;
713
713
  })() ? {
@@ -725,30 +725,30 @@ const Oa = xt.use || // This extra generic is to avoid TypeScript mixing up the
725
725
  () => Ve
726
726
  ];
727
727
  }, [
728
- o,
728
+ s,
729
729
  x
730
- ]), Ce = lr.useSyncExternalStore(_e(
730
+ ]), Ce = pr.useSyncExternalStore(_e(
731
731
  (W) => pe(x, (F, q) => {
732
732
  je(q, F) || W();
733
733
  }),
734
734
  // eslint-disable-next-line react-hooks/exhaustive-deps
735
735
  [
736
- o,
736
+ s,
737
737
  x
738
738
  ]
739
- ), Be[0], Be[1]), f = V[x] && V[x].length > 0, R = Ce.data, z = I(R) ? L && zr(L) ? Oa(L) : L : R, $ = Ce.error, Ae = ee(z), Ee = h ? I(R) ? I(Ae.current) ? z : Ae.current : R : z, P = x && I(z), be = ee(null);
739
+ ), Be[0], Be[1]), f = V[x] && V[x].length > 0, R = Ce.data, z = I(R) ? L && Pr(L) ? Ca(L) : L : R, $ = Ce.error, Ae = ee(z), Ee = h ? I(R) ? I(Ae.current) ? z : Ae.current : R : z, P = x && I(z), be = ee(null);
740
740
  !ht && // getServerSnapshot is only called during hydration
741
741
  // eslint-disable-next-line react-hooks/rules-of-hooks
742
- lr.useSyncExternalStore(Ws, () => (be.current = !1, be), () => (be.current = !0, be));
742
+ pr.useSyncExternalStore(Do, () => (be.current = !1, be), () => (be.current = !0, be));
743
743
  const nt = be.current;
744
- S && nt && !d && P && console.warn(`Missing pre-initiated data for serialized key "${x}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
745
- const Me = !x || !s || D().isPaused() || f && !I($) ? !1 : Oe && !I(u) ? u : d ? I(z) ? !1 : m : I(z) || m, He = Oe && Me, me = I(Ce.isValidating) ? He : Ce.isValidating, Ie = I(Ce.isLoading) ? He : Ce.isLoading, ae = _e(
744
+ k && nt && !c && P && console.warn(`Missing pre-initiated data for serialized key "${x}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
745
+ const Me = !x || !o || D().isPaused() || f && !I($) ? !1 : Oe && !I(p) ? p : c ? I(z) ? !1 : m : I(z) || m, He = Oe && Me, me = I(Ce.isValidating) ? He : Ce.isValidating, Ie = I(Ce.isLoading) ? He : Ce.isLoading, ae = _e(
746
746
  async (W) => {
747
747
  const F = X.current;
748
748
  if (!x || !F || U.current || D().isPaused())
749
749
  return !1;
750
750
  let q, K, Ve = !0;
751
- const xe = W || {}, J = !T[x] || !xe.dedupe, Y = () => fr ? !U.current && x === N.current && A.current : x === N.current, Le = {
751
+ const xe = W || {}, J = !T[x] || !xe.dedupe, Y = () => gr ? !U.current && x === N.current && A.current : x === N.current, Le = {
752
752
  isValidating: !1,
753
753
  isLoading: !1
754
754
  }, Ne = () => {
@@ -765,7 +765,7 @@ const Oa = xt.use || // This extra generic is to avoid TypeScript mixing up the
765
765
  Ve && Y() && D().onLoadingSlow(x, r);
766
766
  }, r.loadingTimeout), T[x] = [
767
767
  F(ge),
768
- Pa()
768
+ Ma()
769
769
  ]), [q, K] = T[x], q = await q, J && setTimeout(vt, r.dedupingInterval), !T[x] || T[x][1] !== K)
770
770
  return J && Y() && D().onDiscarded(x), !1;
771
771
  Le.error = de;
@@ -776,13 +776,13 @@ const Oa = xt.use || // This extra generic is to avoid TypeScript mixing up the
776
776
  ue[1] === 0))
777
777
  return Ne(), J && Y() && D().onDiscarded(x), !1;
778
778
  const ze = le().data;
779
- Le.data = c(ze, q) ? ze : q, J && Y() && D().onSuccess(q, x, r);
779
+ Le.data = i(ze, q) ? ze : q, J && Y() && D().onSuccess(q, x, r);
780
780
  } catch (ue) {
781
781
  vt();
782
782
  const ze = D(), { shouldRetryOnError: zt } = ze;
783
- ze.isPaused() || (Le.error = ue, J && Y() && (ze.onError(ue, x, ze), (zt === !0 || Pe(zt) && zt(ue)) && (!D().revalidateOnFocus || !D().revalidateOnReconnect || oe()) && ze.onErrorRetry(ue, x, ze, (Z) => {
783
+ ze.isPaused() || (Le.error = ue, J && Y() && (ze.onError(ue, x, ze), (zt === !0 || Pe(zt) && zt(ue)) && (!D().revalidateOnFocus || !D().revalidateOnReconnect || se()) && ze.onErrorRetry(ue, x, ze, (Z) => {
784
784
  const Je = V[x];
785
- Je && Je[0] && Je[0](pr, Z);
785
+ Je && Je[0] && Je[0](ur, Z);
786
786
  }, {
787
787
  retryCount: (xe.retryCount || 0) + 1,
788
788
  dedupe: !0
@@ -803,67 +803,67 @@ const Oa = xt.use || // This extra generic is to avoid TypeScript mixing up the
803
803
  // eslint-disable-next-line react-hooks/exhaustive-deps
804
804
  [
805
805
  x,
806
- o
806
+ s
807
807
  ]
808
808
  ), Ke = _e(
809
809
  // Use callback to make sure `keyRef.current` returns latest result every time
810
- (...W) => Mr(o, N.current, ...W),
810
+ (...W) => Lr(s, N.current, ...W),
811
811
  // eslint-disable-next-line react-hooks/exhaustive-deps
812
812
  []
813
813
  );
814
- if (ka(() => {
815
- X.current = s, re.current = r, I(R) || (Ae.current = R);
816
- }), ka(() => {
814
+ if (Sa(() => {
815
+ X.current = o, re.current = r, I(R) || (Ae.current = R);
816
+ }), Sa(() => {
817
817
  if (!x) return;
818
- const W = ae.bind(de, Ca);
818
+ const W = ae.bind(de, Ea);
819
819
  let F = 0;
820
820
  D().revalidateOnFocus && (F = Date.now() + D().focusThrottleInterval);
821
- const K = Ls(x, V, (Ve, xe = {}) => {
822
- if (Ve == Ar) {
821
+ const K = Wo(x, V, (Ve, xe = {}) => {
822
+ if (Ve == Ir) {
823
823
  const J = Date.now();
824
- D().revalidateOnFocus && J > F && oe() && (F = J + D().focusThrottleInterval, W());
825
- } else if (Ve == Ir)
826
- D().revalidateOnReconnect && oe() && W();
824
+ D().revalidateOnFocus && J > F && se() && (F = J + D().focusThrottleInterval, W());
825
+ } else if (Ve == Nr)
826
+ D().revalidateOnReconnect && se() && W();
827
827
  else {
828
- if (Ve == Nr)
828
+ if (Ve == zr)
829
829
  return ae();
830
- if (Ve == pr)
830
+ if (Ve == ur)
831
831
  return ae(xe);
832
832
  }
833
833
  });
834
834
  return U.current = !1, N.current = x, A.current = !0, M({
835
835
  _k: ge
836
- }), Me && (T[x] || (I(z) || ht ? W() : ws(W))), () => {
836
+ }), Me && (T[x] || (I(z) || ht ? W() : ko(W))), () => {
837
837
  U.current = !0, K();
838
838
  };
839
839
  }, [
840
840
  x
841
- ]), ka(() => {
841
+ ]), Sa(() => {
842
842
  let W;
843
843
  function F() {
844
- const K = Pe(k) ? k(le().data) : k;
844
+ const K = Pe(S) ? S(le().data) : S;
845
845
  K && W !== -1 && (W = setTimeout(q, K));
846
846
  }
847
847
  function q() {
848
- !le().error && (y || D().isVisible()) && (g || D().isOnline()) ? ae(Ca).then(F) : F();
848
+ !le().error && (y || D().isVisible()) && (g || D().isOnline()) ? ae(Ea).then(F) : F();
849
849
  }
850
850
  return F(), () => {
851
851
  W && (clearTimeout(W), W = -1);
852
852
  };
853
853
  }, [
854
- k,
854
+ S,
855
855
  y,
856
856
  g,
857
857
  x
858
- ]), os(Ee), d) {
859
- if (!fr && ht && P)
858
+ ]), so(Ee), c) {
859
+ if (!gr && ht && P)
860
860
  throw new Error("Fallback data is required when using Suspense in SSR.");
861
- P && (X.current = s, re.current = r, U.current = !1);
862
- const W = G[x], F = !I(W) && P ? Ke(W) : hr;
863
- if (Oa(F), !I($) && P)
861
+ P && (X.current = o, re.current = r, U.current = !1);
862
+ const W = G[x], F = !I(W) && P ? Ke(W) : xr;
863
+ if (Ca(F), !I($) && P)
864
864
  throw $;
865
- const q = P ? ae(Ca) : hr;
866
- !I(Ee) && P && (q.status = "fulfilled", q.value = !0), Oa(q);
865
+ const q = P ? ae(Ea) : xr;
866
+ !I(Ee) && P && (q.status = "fulfilled", q.value = !0), Ca(q);
867
867
  }
868
868
  return {
869
869
  mutate: Ke,
@@ -880,30 +880,30 @@ const Oa = xt.use || // This extra generic is to avoid TypeScript mixing up the
880
880
  return ne.isLoading = !0, Ie;
881
881
  }
882
882
  };
883
- }, xr = Ms(Ds), $s = ({ children: e }) => {
884
- const s = ee(null), [r, o] = C(null);
885
- return se(() => {
886
- if (s.current && !s.current.shadowRoot) {
887
- const c = s.current.attachShadow({ mode: "open" });
888
- document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach((u) => {
889
- (u.textContent?.includes(".vg-") || u.textContent?.includes("--vg-")) && c.appendChild(u.cloneNode(!0));
883
+ }, vr = Lo($o), Fo = ({ children: e }) => {
884
+ const o = ee(null), [r, s] = C(null);
885
+ return oe(() => {
886
+ if (o.current && !o.current.shadowRoot) {
887
+ const i = o.current.attachShadow({ mode: "open" });
888
+ document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach((p) => {
889
+ (p.textContent?.includes(".vg-") || p.textContent?.includes("--vg-")) && i.appendChild(p.cloneNode(!0));
890
890
  });
891
891
  const l = document.createElement("link");
892
- l.rel = "stylesheet", l.href = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap", c.appendChild(l), o(c);
892
+ l.rel = "stylesheet", l.href = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap", i.appendChild(l), s(i);
893
893
  }
894
- }, []), /* @__PURE__ */ t.jsx("div", { "data-vg-id": "49696d6b", "data-source-path": "/src/components/ShadowRootWrapper.tsx:38", ref: s, id: "viewgate-shadow-host", style: { position: "relative", zIndex: 2147483647 }, children: r && ns(e, r) });
894
+ }, []), /* @__PURE__ */ t.jsx("div", { "data-vg-id": "49696d6b", "data-source-path": "/src/components/ShadowRootWrapper.tsx:38", ref: o, id: "viewgate-shadow-host", style: { position: "relative", zIndex: 2147483647 }, children: r && no(e, r) });
895
895
  };
896
- const $r = (...e) => e.filter((s, r, o) => !!s && s.trim() !== "" && o.indexOf(s) === r).join(" ").trim();
897
- const Fs = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
898
- const Bs = (e) => e.replace(
896
+ const Fr = (...e) => e.filter((o, r, s) => !!o && o.trim() !== "" && s.indexOf(o) === r).join(" ").trim();
897
+ const Bo = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
898
+ const Ho = (e) => e.replace(
899
899
  /^([A-Z])|[\s-_]+(\w)/g,
900
- (s, r, o) => o ? o.toUpperCase() : r.toLowerCase()
900
+ (o, r, s) => s ? s.toUpperCase() : r.toLowerCase()
901
901
  );
902
- const vr = (e) => {
903
- const s = Bs(e);
904
- return s.charAt(0).toUpperCase() + s.slice(1);
902
+ const yr = (e) => {
903
+ const o = Ho(e);
904
+ return o.charAt(0).toUpperCase() + o.slice(1);
905
905
  };
906
- var Hs = {
906
+ var Uo = {
907
907
  xmlns: "http://www.w3.org/2000/svg",
908
908
  width: 24,
909
909
  height: 24,
@@ -914,57 +914,57 @@ var Hs = {
914
914
  strokeLinecap: "round",
915
915
  strokeLinejoin: "round"
916
916
  };
917
- const Us = (e) => {
918
- for (const s in e)
919
- if (s.startsWith("aria-") || s === "role" || s === "title")
917
+ const qo = (e) => {
918
+ for (const o in e)
919
+ if (o.startsWith("aria-") || o === "role" || o === "title")
920
920
  return !0;
921
921
  return !1;
922
922
  };
923
- const qs = Tr(
923
+ const Yo = Ar(
924
924
  ({
925
925
  color: e = "currentColor",
926
- size: s = 24,
926
+ size: o = 24,
927
927
  strokeWidth: r = 2,
928
- absoluteStrokeWidth: o,
929
- className: c = "",
930
- children: d,
928
+ absoluteStrokeWidth: s,
929
+ className: i = "",
930
+ children: c,
931
931
  iconNode: l,
932
- ...u
933
- }, m) => Ga(
932
+ ...p
933
+ }, m) => Ra(
934
934
  "svg",
935
935
  {
936
936
  ref: m,
937
- ...Hs,
938
- width: s,
939
- height: s,
937
+ ...Uo,
938
+ width: o,
939
+ height: o,
940
940
  stroke: e,
941
- strokeWidth: o ? Number(r) * 24 / Number(s) : r,
942
- className: $r("lucide", c),
943
- ...!d && !Us(u) && { "aria-hidden": "true" },
944
- ...u
941
+ strokeWidth: s ? Number(r) * 24 / Number(o) : r,
942
+ className: Fr("lucide", i),
943
+ ...!c && !qo(p) && { "aria-hidden": "true" },
944
+ ...p
945
945
  },
946
946
  [
947
- ...l.map(([k, y]) => Ga(k, y)),
948
- ...Array.isArray(d) ? d : [d]
947
+ ...l.map(([S, y]) => Ra(S, y)),
948
+ ...Array.isArray(c) ? c : [c]
949
949
  ]
950
950
  )
951
951
  );
952
- const H = (e, s) => {
953
- const r = Tr(
954
- ({ className: o, ...c }, d) => Ga(qs, {
955
- ref: d,
956
- iconNode: s,
957
- className: $r(
958
- `lucide-${Fs(vr(e))}`,
952
+ const H = (e, o) => {
953
+ const r = Ar(
954
+ ({ className: s, ...i }, c) => Ra(Yo, {
955
+ ref: c,
956
+ iconNode: o,
957
+ className: Fr(
958
+ `lucide-${Bo(yr(e))}`,
959
959
  `lucide-${e}`,
960
- o
960
+ s
961
961
  ),
962
- ...c
962
+ ...i
963
963
  })
964
964
  );
965
- return r.displayName = vr(e), r;
965
+ return r.displayName = yr(e), r;
966
966
  };
967
- const Ys = [
967
+ const Xo = [
968
968
  ["path", { d: "M12 20v-9", key: "1qisl0" }],
969
969
  ["path", { d: "M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z", key: "uouzyp" }],
970
970
  ["path", { d: "M14.12 3.88 16 2", key: "qol33r" }],
@@ -976,8 +976,8 @@ const Ys = [
976
976
  ["path", { d: "M6 13H2", key: "82j7cp" }],
977
977
  ["path", { d: "m8 2 1.88 1.88", key: "fmnt4t" }],
978
978
  ["path", { d: "M9 7.13V6a3 3 0 1 1 6 0v1.13", key: "1vgav8" }]
979
- ], Vt = H("bug", Ys);
980
- const Xs = [
979
+ ], Vt = H("bug", Xo);
980
+ const Ko = [
981
981
  [
982
982
  "path",
983
983
  {
@@ -986,27 +986,27 @@ const Xs = [
986
986
  }
987
987
  ],
988
988
  ["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
989
- ], Ks = H("camera", Xs);
990
- const Js = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], yr = H("chevron-down", Js);
991
- const Zs = [
989
+ ], Jo = H("camera", Ko);
990
+ const Zo = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], br = H("chevron-down", Zo);
991
+ const Qo = [
992
992
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
993
993
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
994
994
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
995
- ], Qs = H("circle-alert", Zs);
996
- const eo = [
995
+ ], es = H("circle-alert", Qo);
996
+ const ts = [
997
997
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
998
998
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
999
- ], st = H("circle-check", eo);
1000
- const to = [
999
+ ], ot = H("circle-check", ts);
1000
+ const as = [
1001
1001
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
1002
1002
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
1003
- ], br = H("clock", to);
1004
- const ao = [
1003
+ ], wr = H("clock", as);
1004
+ const rs = [
1005
1005
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
1006
1006
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
1007
1007
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
1008
- ], Ea = H("external-link", ao);
1009
- const ro = [
1008
+ ], Va = H("external-link", rs);
1009
+ const os = [
1010
1010
  [
1011
1011
  "path",
1012
1012
  {
@@ -1015,26 +1015,26 @@ const ro = [
1015
1015
  }
1016
1016
  ],
1017
1017
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
1018
- ], so = H("eye", ro);
1019
- const oo = [
1018
+ ], ss = H("eye", os);
1019
+ const ns = [
1020
1020
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
1021
1021
  ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
1022
1022
  ["path", { d: "M2 12h20", key: "9i4pu4" }]
1023
- ], Ye = H("globe", oo);
1024
- const no = [
1023
+ ], Ye = H("globe", ns);
1024
+ const is = [
1025
1025
  ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
1026
1026
  ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
1027
1027
  ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
1028
1028
  ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
1029
1029
  ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
1030
1030
  ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
1031
- ], io = H("grip-vertical", no);
1032
- const co = [
1031
+ ], cs = H("grip-vertical", is);
1032
+ const ds = [
1033
1033
  ["path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", key: "g0fldk" }],
1034
1034
  ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
1035
1035
  ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
1036
- ], lo = H("key", co);
1037
- const po = [
1036
+ ], ls = H("key", ds);
1037
+ const ps = [
1038
1038
  [
1039
1039
  "path",
1040
1040
  {
@@ -1056,17 +1056,17 @@ const po = [
1056
1056
  key: "kqbvx6"
1057
1057
  }
1058
1058
  ]
1059
- ], Qt = H("layers", po);
1060
- const uo = [
1059
+ ], Qt = H("layers", ps);
1060
+ const us = [
1061
1061
  ["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
1062
1062
  ["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
1063
- ], ea = H("link", uo);
1064
- const fo = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ta = H("loader-circle", fo);
1065
- const go = [
1063
+ ], ea = H("link", us);
1064
+ const fs = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ta = H("loader-circle", fs);
1065
+ const gs = [
1066
1066
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
1067
1067
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
1068
- ], wr = H("lock", go);
1069
- const mo = [
1068
+ ], kr = H("lock", gs);
1069
+ const ms = [
1070
1070
  [
1071
1071
  "path",
1072
1072
  {
@@ -1074,8 +1074,8 @@ const mo = [
1074
1074
  key: "18887p"
1075
1075
  }
1076
1076
  ]
1077
- ], aa = H("message-square", mo);
1078
- const ho = [
1077
+ ], aa = H("message-square", ms);
1078
+ const hs = [
1079
1079
  [
1080
1080
  "path",
1081
1081
  {
@@ -1083,8 +1083,8 @@ const ho = [
1083
1083
  key: "edeuup"
1084
1084
  }
1085
1085
  ]
1086
- ], xo = H("mouse-pointer-2", ho);
1087
- const vo = [
1086
+ ], xs = H("mouse-pointer-2", hs);
1087
+ const vs = [
1088
1088
  [
1089
1089
  "path",
1090
1090
  {
@@ -1093,16 +1093,16 @@ const vo = [
1093
1093
  }
1094
1094
  ],
1095
1095
  ["path", { d: "m15 5 4 4", key: "1mk7zo" }]
1096
- ], Gt = H("pencil", vo);
1097
- const yo = [
1096
+ ], Gt = H("pencil", vs);
1097
+ const ys = [
1098
1098
  ["path", { d: "M5 12h14", key: "1ays0h" }],
1099
1099
  ["path", { d: "M12 5v14", key: "s699le" }]
1100
- ], bo = H("plus", yo);
1101
- const wo = [
1100
+ ], bs = H("plus", ys);
1101
+ const ws = [
1102
1102
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
1103
1103
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
1104
- ], ko = H("search", wo);
1105
- const So = [
1104
+ ], ks = H("search", ws);
1105
+ const Ss = [
1106
1106
  [
1107
1107
  "path",
1108
1108
  {
@@ -1111,15 +1111,15 @@ const So = [
1111
1111
  }
1112
1112
  ],
1113
1113
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
1114
- ], jo = H("send", So);
1115
- const Oo = [
1114
+ ], js = H("send", Ss);
1115
+ const Os = [
1116
1116
  ["path", { d: "M10 11v6", key: "nco0om" }],
1117
1117
  ["path", { d: "M14 11v6", key: "outv1u" }],
1118
1118
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
1119
1119
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
1120
1120
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
1121
- ], ra = H("trash-2", Oo);
1122
- const Co = [
1121
+ ], ra = H("trash-2", Os);
1122
+ const Cs = [
1123
1123
  [
1124
1124
  "path",
1125
1125
  {
@@ -1129,11 +1129,11 @@ const Co = [
1129
1129
  ],
1130
1130
  ["path", { d: "M12 9v4", key: "juzpu7" }],
1131
1131
  ["path", { d: "M12 17h.01", key: "p32p05" }]
1132
- ], Eo = H("triangle-alert", Co);
1133
- const Vo = [
1132
+ ], Es = H("triangle-alert", Cs);
1133
+ const Vs = [
1134
1134
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
1135
1135
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
1136
- ], Rt = H("x", Vo), Go = {
1136
+ ], Rt = H("x", Vs), Gs = {
1137
1137
  en: {
1138
1138
  enterMode: "Enter Feedback Mode",
1139
1139
  exitMode: "Exit Mode",
@@ -1278,147 +1278,181 @@ const Vo = [
1278
1278
  figmaPrimaryDesign: "Diseño Principal",
1279
1279
  invalidToken: "Token inválido o expirado"
1280
1280
  }
1281
- }, Fr = Rr(void 0), Ro = () => {
1282
- const e = _r(Fr);
1281
+ }, Br = _r(void 0), Rs = () => {
1282
+ const e = Tr(Br);
1283
1283
  if (!e) throw new Error("useViewGate must be used within a ViewGateProvider");
1284
1284
  return e;
1285
- }, Tt = "viewgate_enabled", _o = () => {
1285
+ }, Tt = "viewgate_enabled", _s = () => {
1286
1286
  if (typeof window > "u") return !1;
1287
1287
  const e = new URLSearchParams(window.location.search);
1288
1288
  return e.has("viewgate") || e.has("viewgate-backlog") ? (sessionStorage.setItem(Tt, "true"), !0) : sessionStorage.getItem(Tt) === "true";
1289
- }, en = ({
1289
+ }, on = ({
1290
1290
  children: e,
1291
- language: s = "es",
1291
+ language: o = "es",
1292
1292
  apiKey: r,
1293
- baseUrl: o = "https://view-gate.vercel.app",
1294
- dashboardUrl: c
1293
+ baseUrl: s = "https://view-gate.vercel.app",
1294
+ dashboardUrl: i
1295
1295
  }) => {
1296
- const d = c || (o === "https://view-gate.vercel.app" ? "https://view-gate-dashboard.vercel.app" : o.includes("localhost:5000") ? o.replace("5000", "3000") : o), [l, u] = C(!1), [m, k] = C([]);
1296
+ const c = i || (s === "https://view-gate.vercel.app" ? "https://view-gate-dashboard.vercel.app" : s.includes("localhost:5000") ? s.replace("5000", "3000") : s), [l, p] = C(!1), [m, S] = C([]);
1297
1297
  ee(0);
1298
1298
  const y = ee(null), g = ee(!1);
1299
- se(() => {
1300
- u(_o());
1299
+ oe(() => {
1300
+ p(_s());
1301
1301
  const E = (G) => {
1302
1302
  G.key === "Alt" && !G.repeat && (G.preventDefault(), g.current = !1, y.current && clearTimeout(y.current), y.current = setTimeout(() => {
1303
1303
  const x = new URL(window.location.href);
1304
- x.searchParams.delete("viewgate"), x.searchParams.set("viewgate-backlog", "true"), window.history.replaceState({}, "", x.toString()), u(!0), sessionStorage.setItem(Tt, "true"), window.dispatchEvent(new PopStateEvent("popstate")), S(s === "es" ? "Modo Backlog activado" : "Backlog Mode activated", "success"), g.current = !0, y.current = null;
1304
+ x.searchParams.delete("viewgate"), x.searchParams.set("viewgate-backlog", "true"), window.history.replaceState({}, "", x.toString()), p(!0), sessionStorage.setItem(Tt, "true"), window.dispatchEvent(new PopStateEvent("popstate")), k(o === "es" ? "Modo Backlog activado" : "Backlog Mode activated", "success"), g.current = !0, y.current = null;
1305
1305
  }, 1e3));
1306
1306
  }, T = (G) => {
1307
1307
  if (G.key === "Alt" && (G.preventDefault(), y.current)) {
1308
1308
  clearTimeout(y.current), y.current = null;
1309
1309
  const x = new URL(window.location.href);
1310
- x.searchParams.delete("viewgate-backlog"), x.searchParams.set("viewgate", "true"), window.history.replaceState({}, "", x.toString()), u(!0), sessionStorage.setItem(Tt, "true"), window.dispatchEvent(new PopStateEvent("popstate")), S(s === "es" ? "Modo Normal activado" : "Normal Mode activated", "success");
1310
+ x.searchParams.delete("viewgate-backlog"), x.searchParams.set("viewgate", "true"), window.history.replaceState({}, "", x.toString()), p(!0), sessionStorage.setItem(Tt, "true"), window.dispatchEvent(new PopStateEvent("popstate")), k(o === "es" ? "Modo Normal activado" : "Normal Mode activated", "success");
1311
1311
  }
1312
1312
  };
1313
1313
  return window.addEventListener("keydown", E), window.addEventListener("keyup", T), () => {
1314
1314
  window.removeEventListener("keydown", E), window.removeEventListener("keyup", T);
1315
1315
  };
1316
- }, [s]);
1316
+ }, [o]);
1317
1317
  const h = () => {
1318
- if (sessionStorage.removeItem(Tt), u(!1), typeof window < "u") {
1318
+ if (sessionStorage.removeItem(Tt), p(!1), typeof window < "u") {
1319
1319
  const E = new URL(window.location.href);
1320
1320
  E.searchParams.delete("viewgate"), window.history.replaceState({}, "", E.toString());
1321
1321
  }
1322
- }, S = (E, T) => {
1322
+ }, k = (E, T) => {
1323
1323
  const G = Date.now();
1324
- k((x) => [...x, { id: G, message: E, type: T }]), setTimeout(() => {
1325
- k((x) => x.filter((ge) => ge.id !== G));
1324
+ S((x) => [...x, { id: G, message: E, type: T }]), setTimeout(() => {
1325
+ S((x) => x.filter((ge) => ge.id !== G));
1326
1326
  }, 4e3);
1327
- }, V = Go[s];
1328
- return /* @__PURE__ */ t.jsxs(Fr.Provider, { "data-vg-id": "89da3486", "data-source-path": "/src/components/ViewGateProvider.tsx:369", value: {
1329
- addToast: S,
1330
- language: s,
1327
+ }, V = Gs[o];
1328
+ return /* @__PURE__ */ t.jsxs(Br.Provider, { "data-vg-id": "89da3486", "data-source-path": "/src/components/ViewGateProvider.tsx:369", value: {
1329
+ addToast: k,
1330
+ language: o,
1331
1331
  t: V,
1332
1332
  apiKey: r,
1333
- baseUrl: o,
1334
- dashboardUrl: d,
1333
+ baseUrl: s,
1334
+ dashboardUrl: c,
1335
1335
  disableViewGate: h,
1336
1336
  hasActiveToasts: m.length > 0
1337
1337
  }, children: [
1338
1338
  e,
1339
- l && /* @__PURE__ */ t.jsx($s, { "data-vg-id": "f1499d3a", "data-source-path": "/src/components/ViewGateProvider.tsx:381", children: /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "1bedb79b", "data-source-path": "/src/components/ViewGateProvider.tsx:382", className: "vg-container", children: [
1340
- /* @__PURE__ */ t.jsx(Ho, { "data-vg-id": "d3f262cb", "data-source-path": "/src/components/ViewGateProvider.tsx:383" }),
1339
+ l && /* @__PURE__ */ t.jsx(Fo, { "data-vg-id": "f1499d3a", "data-source-path": "/src/components/ViewGateProvider.tsx:381", children: /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "1bedb79b", "data-source-path": "/src/components/ViewGateProvider.tsx:382", className: "vg-container", children: [
1340
+ /* @__PURE__ */ t.jsx(Xs, { "data-vg-id": "d3f262cb", "data-source-path": "/src/components/ViewGateProvider.tsx:383" }),
1341
1341
  /* @__PURE__ */ t.jsx("div", { "data-vg-id": "1bedb79d", "data-source-path": "/src/components/ViewGateProvider.tsx:384", className: "vg-toasts", style: { zIndex: 2147483647 }, children: m.map((E) => /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "1bedb79e", "data-source-path": "/src/components/ViewGateProvider.tsx:386", className: `vg-toast vg-animate-slide ${E.type}`, children: [
1342
- E.type === "success" ? /* @__PURE__ */ t.jsx(st, { "data-vg-id": "c7ae3b26", "data-source-path": "/src/components/ViewGateProvider.tsx:388", size: 24, color: "#22c55e" }) : E.type === "warning" ? /* @__PURE__ */ t.jsx(Eo, { "data-vg-id": "137eb473", "data-source-path": "/src/components/ViewGateProvider.tsx:390", size: 24, color: "#f59e0b" }) : /* @__PURE__ */ t.jsx(Qs, { "data-vg-id": "e7ad3c7c", "data-source-path": "/src/components/ViewGateProvider.tsx:392", size: 24, color: "#ef4444" }),
1342
+ E.type === "success" ? /* @__PURE__ */ t.jsx(ot, { "data-vg-id": "c7ae3b26", "data-source-path": "/src/components/ViewGateProvider.tsx:388", size: 24, color: "#22c55e" }) : E.type === "warning" ? /* @__PURE__ */ t.jsx(Es, { "data-vg-id": "137eb473", "data-source-path": "/src/components/ViewGateProvider.tsx:390", size: 24, color: "#f59e0b" }) : /* @__PURE__ */ t.jsx(es, { "data-vg-id": "e7ad3c7c", "data-source-path": "/src/components/ViewGateProvider.tsx:392", size: 24, color: "#ef4444" }),
1343
1343
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "61c93bb7", "data-source-path": "/src/components/ViewGateProvider.tsx:394", children: [
1344
- /* @__PURE__ */ t.jsx("strong", { "data-vg-id": "29b8e974", "data-source-path": "/src/components/ViewGateProvider.tsx:395", style: { display: "block", fontSize: "13px", color: "#0f172a", textTransform: "uppercase", marginBottom: "2px" }, children: E.type === "success" ? V.successHeader : E.type === "warning" ? s === "es" ? "Aviso" : "Warning" : V.errorHeader }),
1344
+ /* @__PURE__ */ t.jsx("strong", { "data-vg-id": "29b8e974", "data-source-path": "/src/components/ViewGateProvider.tsx:395", style: { display: "block", fontSize: "13px", color: "#0f172a", textTransform: "uppercase", marginBottom: "2px" }, children: E.type === "success" ? V.successHeader : E.type === "warning" ? o === "es" ? "Aviso" : "Warning" : V.errorHeader }),
1345
1345
  /* @__PURE__ */ t.jsx("span", { "data-vg-id": "fbbd7822", "data-source-path": "/src/components/ViewGateProvider.tsx:398", style: { fontSize: "14px", color: "#000000" }, children: E.message })
1346
1346
  ] })
1347
1347
  ] }, E.id)) })
1348
1348
  ] }) })
1349
1349
  ] });
1350
- }, kr = async (e, s = {}) => {
1350
+ }, Sr = async (e, o = {}) => {
1351
1351
  const {
1352
1352
  scale: r = window.devicePixelRatio || 2,
1353
- padding: o = 48,
1354
- backgroundColor: c = "#000000",
1355
- logging: d = !1
1356
- } = s, l = e.getBoundingClientRect(), u = document.createElement("canvas");
1357
- u.width = (l.width + o * 2) * r, u.height = (l.height + o * 2) * r;
1358
- const m = u.getContext("2d");
1359
- return m ? (m.fillStyle = c, m.fillRect(0, 0, u.width, u.height), m.save(), m.scale(r, r), m.translate(o - l.left, o - l.top), d && console.log("[VGCap] Starting recursive render of", e), await Br(e, m), m.restore(), u.toDataURL("image/webp", 0.98)) : "";
1360
- }, Br = async (e, s) => {
1353
+ padding: s = 48,
1354
+ backgroundColor: i = "#000000",
1355
+ logging: c = !1
1356
+ } = o, l = e.getBoundingClientRect(), p = document.createElement("canvas");
1357
+ p.width = (l.width + s * 2) * r, p.height = (l.height + s * 2) * r;
1358
+ const m = p.getContext("2d");
1359
+ return m ? (m.fillStyle = i, m.fillRect(0, 0, p.width, p.height), m.save(), m.scale(r, r), m.translate(s - l.left, s - l.top), await sa(e, m), m.restore(), p.toDataURL("image/webp", 0.98)) : "";
1360
+ }, sa = async (e, o) => {
1361
1361
  if (e.nodeType === Node.TEXT_NODE) {
1362
- await Ao(e, s);
1362
+ await Ps(e, o);
1363
1363
  return;
1364
1364
  }
1365
- if (e.nodeType !== Node.ELEMENT_NODE) return;
1366
- const r = e, o = window.getComputedStyle(r);
1367
- if (o.display === "none" || o.visibility === "hidden" || o.opacity === "0") return;
1368
- const c = r.getBoundingClientRect();
1369
- s.save(), s.globalAlpha = parseFloat(o.opacity || "1"), To(s, c, o), r instanceof HTMLImageElement && await Io(s, r, c), o.backgroundImage !== "none" && await No(s, r, c, o);
1370
- const d = Array.from(r.childNodes);
1371
- for (const l of d)
1372
- await Br(l, s);
1373
- s.restore();
1374
- }, To = (e, s, r) => {
1375
- const o = parseFloat(r.borderRadius) || 0, c = r.backgroundColor;
1376
- if (e.beginPath(), o > 0) {
1377
- const l = s.left, u = s.top, m = s.width, k = s.height;
1378
- e.moveTo(l + o, u), e.arcTo(l + m, u, l + m, u + k, o), e.arcTo(l + m, u + k, l, u + k, o), e.arcTo(l, u + k, l, u, o), e.arcTo(l, u, l + m, u, o), e.closePath();
1379
- } else
1380
- e.rect(s.left, s.top, s.width, s.height);
1381
- if (r.boxShadow !== "none") {
1382
- const l = r.boxShadow.match(/rgba?\(.*?\)\s+(\d+)px\s+(\d+)px\s+(\d+)px/);
1383
- l && l[0] && (e.shadowColor = l[0], e.shadowBlur = parseInt(l[3] || "0"), e.shadowOffsetX = parseInt(l[1] || "0"), e.shadowOffsetY = parseInt(l[2] || "0"));
1365
+ if (e.nodeType !== Node.ELEMENT_NODE) {
1366
+ if (e instanceof HTMLElement && e.shadowRoot)
1367
+ for (const p of Array.from(e.shadowRoot.childNodes))
1368
+ await sa(p, o);
1369
+ return;
1370
+ }
1371
+ const r = e, s = window.getComputedStyle(r);
1372
+ if (s.display === "none" || s.visibility === "hidden" || s.opacity === "0") return;
1373
+ const i = r.getBoundingClientRect();
1374
+ o.save(), o.globalAlpha *= parseFloat(s.opacity || "1");
1375
+ const c = parseFloat(s.borderRadius) > 0;
1376
+ Ts(o, i, s), As(o, s), Is(o, r, i, s), c && o.clip(), r instanceof HTMLImageElement && await Ms(o, r, i), s.backgroundImage.includes("url(") && await Ls(o, r, i, s);
1377
+ const l = Array.from(r.childNodes);
1378
+ for (const p of l)
1379
+ await sa(p, o);
1380
+ if (r.shadowRoot)
1381
+ for (const p of Array.from(r.shadowRoot.childNodes))
1382
+ await sa(p, o);
1383
+ o.restore(), zs(o, i, s);
1384
+ }, Ts = (e, o, r) => {
1385
+ const s = parseFloat(r.borderRadius) || 0, i = o.left, c = o.top, l = o.width, p = o.height;
1386
+ e.beginPath(), s > 0 ? (e.moveTo(i + s, c), e.arcTo(i + l, c, i + l, c + p, s), e.arcTo(i + l, c + p, i, c + p, s), e.arcTo(i, c + p, i, c, s), e.arcTo(i, c, i + l, c, s), e.closePath()) : e.rect(i, c, l, p);
1387
+ }, As = (e, o) => {
1388
+ if (o.boxShadow === "none") return;
1389
+ const r = o.boxShadow.match(/rgba?\(.*?\)\s+(-?\d+)px\s+(-?\d+)px\s+(\d+)px/);
1390
+ r && r[0] && (e.shadowColor = r[0], e.shadowBlur = parseInt(r[3] || "0"), e.shadowOffsetX = parseInt(r[1] || "0"), e.shadowOffsetY = parseInt(r[2] || "0"));
1391
+ }, Is = (e, o, r, s) => {
1392
+ const i = s.backgroundImage, c = s.backgroundColor;
1393
+ if (i.includes("linear-gradient")) {
1394
+ const l = Ns(e, i, r);
1395
+ if (l) {
1396
+ e.fillStyle = l, e.fill(), e.shadowColor = "transparent";
1397
+ return;
1398
+ }
1384
1399
  }
1385
- c !== "rgba(0, 0, 0, 0)" && c !== "transparent" && (e.fillStyle = c, e.fill());
1386
- const d = parseFloat(r.borderWidth) || 0;
1387
- d > 0 && (e.strokeStyle = r.borderColor, e.lineWidth = d, e.stroke()), e.shadowColor = "transparent", e.shadowBlur = 0;
1388
- }, Ao = async (e, s) => {
1400
+ c !== "rgba(0, 0, 0, 0)" && c !== "transparent" && (e.fillStyle = c, e.fill(), e.shadowColor = "transparent");
1401
+ }, Ns = (e, o, r) => {
1402
+ const s = o.match(/(rgba?\(.*?\)|#[a-fA-F0-9]{3,8}|[a-z]+)(\s+(\d+%))?/g);
1403
+ if (!s || s.length < 2) return null;
1404
+ const i = e.createLinearGradient(r.left, r.top, r.left, r.bottom);
1405
+ return s.forEach((c, l) => {
1406
+ const p = c.trim().split(/\s+/), m = p[0];
1407
+ let S = l / (s.length - 1);
1408
+ p.length > 1 && p[1] && p[1].includes("%") && (S = parseInt(p[1] || "0") / 100);
1409
+ try {
1410
+ m && i.addColorStop(Math.max(0, Math.min(1, S)), m);
1411
+ } catch {
1412
+ }
1413
+ }), i;
1414
+ }, zs = (e, o, r) => {
1415
+ const s = parseFloat(r.borderWidth) || 0;
1416
+ if (s <= 0) return;
1417
+ const i = parseFloat(r.borderRadius) || 0, c = o.left, l = o.top, p = o.width, m = o.height;
1418
+ e.save(), e.strokeStyle = r.borderColor, e.lineWidth = s, e.beginPath(), i > 0 ? (e.moveTo(c + i, l), e.arcTo(c + p, l, c + p, l + m, i), e.arcTo(c + p, l + m, c, l + m, i), e.arcTo(c, l + m, c, l, i), e.arcTo(c, l, c + p, l, i), e.closePath()) : e.rect(c, l, p, m), e.stroke(), e.restore();
1419
+ }, Ps = async (e, o) => {
1389
1420
  const r = e.parentElement;
1390
1421
  if (!r || !e.textContent?.trim()) return;
1391
- const o = window.getComputedStyle(r), c = document.createRange();
1392
- c.selectNodeContents(e);
1393
- const d = c.getClientRects();
1394
- if (d.length === 0) return;
1395
- s.font = `${o.fontStyle} ${o.fontVariant} ${o.fontWeight} ${o.fontSize} ${o.fontFamily}`, s.fillStyle = o.color, s.textBaseline = "alphabetic";
1422
+ const s = window.getComputedStyle(r), i = document.createRange();
1423
+ i.selectNodeContents(e);
1424
+ const c = i.getClientRects();
1425
+ if (c.length === 0) return;
1426
+ o.save(), o.font = `${s.fontStyle} ${s.fontVariant} ${s.fontWeight} ${s.fontSize} ${s.fontFamily}`, o.fillStyle = s.color, o.textBaseline = "alphabetic";
1396
1427
  const l = e.textContent || "";
1397
- for (const u of Array.from(d)) {
1398
- s.fillText(l, u.left, u.bottom - parseFloat(o.fontSize || "16") * 0.2);
1399
- break;
1428
+ for (let p = 0; p < c.length; p++) {
1429
+ const m = c[p];
1430
+ m && p === 0 && o.fillText(l, m.left, m.bottom - parseFloat(s.fontSize || "16") * 0.2);
1400
1431
  }
1401
- }, Io = async (e, s, r, o) => {
1402
- if (s.complete)
1432
+ o.restore();
1433
+ }, Ms = async (e, o, r, s) => {
1434
+ if (o.complete)
1403
1435
  try {
1404
- e.drawImage(s, r.left, r.top, r.width, r.height);
1436
+ e.drawImage(o, r.left, r.top, r.width, r.height);
1405
1437
  } catch {
1406
1438
  }
1407
- }, No = async (e, s, r, o) => {
1408
- const d = o.backgroundImage.match(/url\(["']?(.*?)["']?\)/);
1409
- if (!d) return;
1410
- const l = d[1], u = new Image();
1411
- u.crossOrigin = "anonymous", u.src = l, await new Promise((m) => {
1412
- u.onload = m, u.onerror = m, setTimeout(m, 500);
1413
- }), u.complete && u.naturalWidth > 0 && e.drawImage(u, r.left, r.top, r.width, r.height);
1414
- }, Nt = 2147e6, Sr = Nt, rt = Nt, zo = Nt - 100, Po = Nt - 50, Mo = Nt - 150, Te = "data-vg-pin-id", Lo = () => {
1439
+ }, Ls = async (e, o, r, s) => {
1440
+ const c = s.backgroundImage.match(/url\(["']?(.*?)["']?\)/);
1441
+ if (!c) return;
1442
+ const l = c[1];
1443
+ if (!l) return;
1444
+ const p = new Image();
1445
+ p.crossOrigin = "anonymous", p.src = l, await new Promise((m) => {
1446
+ p.onload = m, p.onerror = m, setTimeout(m, 800);
1447
+ }), p.complete && p.naturalWidth > 0 && e.drawImage(p, r.left, r.top, r.width, r.height);
1448
+ }, Nt = 2147e6, jr = Nt, rt = Nt, Ws = Nt - 100, Ds = Nt - 50, $s = Nt - 150, Te = "data-vg-pin-id", Fs = () => {
1415
1449
  const e = window.innerWidth;
1416
1450
  return e < 768 ? "mobile" : e < 1024 ? "tablet" : "desktop";
1417
- }, jr = (e, s) => {
1451
+ }, Or = (e, o) => {
1418
1452
  if (!e) return "";
1419
1453
  try {
1420
1454
  const r = new Date(e);
1421
- return isNaN(r.getTime()) ? "" : new Intl.DateTimeFormat(s === "es" ? "es-ES" : "en-US", {
1455
+ return isNaN(r.getTime()) ? "" : new Intl.DateTimeFormat(o === "es" ? "es-ES" : "en-US", {
1422
1456
  day: "2-digit",
1423
1457
  month: "2-digit",
1424
1458
  year: "numeric",
@@ -1429,20 +1463,20 @@ const Vo = [
1429
1463
  } catch {
1430
1464
  return "";
1431
1465
  }
1432
- }, Or = ({ url: e, className: s, style: r, tooltipStyle: o, onHover: c }) => {
1433
- const d = ee(null), l = () => {
1434
- if (!d.current || !c) return;
1435
- const k = d.current.getBoundingClientRect(), y = k.top, g = window.innerHeight - k.bottom, h = y < 140 && g > y ? "bottom" : "top";
1436
- c({
1466
+ }, Cr = ({ url: e, className: o, style: r, tooltipStyle: s, onHover: i }) => {
1467
+ const c = ee(null), l = () => {
1468
+ if (!c.current || !i) return;
1469
+ const S = c.current.getBoundingClientRect(), y = S.top, g = window.innerHeight - S.bottom, h = y < 140 && g > y ? "bottom" : "top";
1470
+ i({
1437
1471
  url: e,
1438
- x: k.left + k.width / 2,
1439
- y: h === "top" ? k.top : k.bottom,
1472
+ x: S.left + S.width / 2,
1473
+ y: h === "top" ? S.top : S.bottom,
1440
1474
  direction: h
1441
1475
  });
1442
- }, u = (k) => k.toLowerCase().replace(/\/$/g, "").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g, "/:id"), m = () => {
1476
+ }, p = (S) => S.toLowerCase().replace(/\/$/g, "").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g, "/:id"), m = () => {
1443
1477
  try {
1444
- const k = u(window.location.pathname), y = new URL(e), g = u(y.pathname);
1445
- return k === g || k.startsWith(g) || g.startsWith(k);
1478
+ const S = p(window.location.pathname), y = new URL(e), g = p(y.pathname);
1479
+ return S === g || S.startsWith(g) || g.startsWith(S);
1446
1480
  } catch {
1447
1481
  return !1;
1448
1482
  }
@@ -1450,8 +1484,8 @@ const Vo = [
1450
1484
  return /* @__PURE__ */ t.jsxs(
1451
1485
  "div",
1452
1486
  {
1453
- ref: d,
1454
- className: `vg-url-tag ${s || ""}`,
1487
+ ref: c,
1488
+ className: `vg-url-tag ${o || ""}`,
1455
1489
  style: {
1456
1490
  ...r,
1457
1491
  opacity: m() ? 1 : 0.6,
@@ -1459,7 +1493,7 @@ const Vo = [
1459
1493
  },
1460
1494
  onMouseEnter: l,
1461
1495
  onMouseMove: l,
1462
- onMouseLeave: () => c?.(null),
1496
+ onMouseLeave: () => i?.(null),
1463
1497
  children: [
1464
1498
  /* @__PURE__ */ t.jsx(Ye, { "data-vg-id": "353251b6", "data-source-path": "/src/components/ViewGateOverlay.tsx:149", size: r?.fontSize ? parseInt(r.fontSize) + 1 : 10 }),
1465
1499
  /* @__PURE__ */ t.jsx("span", { "data-vg-id": "1b724dd0", "data-source-path": "/src/components/ViewGateOverlay.tsx:150", style: {
@@ -1472,33 +1506,33 @@ const Vo = [
1472
1506
  }
1473
1507
  );
1474
1508
  }, At = (e) => {
1475
- const s = [], r = [], o = [];
1476
- let c = e, d = !1;
1477
- for (; c && c.nodeType === Node.ELEMENT_NODE; ) {
1478
- const l = c.localName.toLowerCase();
1479
- let u = 1, m = c.previousElementSibling;
1509
+ const o = [], r = [], s = [];
1510
+ let i = e, c = !1;
1511
+ for (; i && i.nodeType === Node.ELEMENT_NODE; ) {
1512
+ const l = i.localName.toLowerCase();
1513
+ let p = 1, m = i.previousElementSibling;
1480
1514
  for (; m; )
1481
- m.localName.toLowerCase() === l && u++, m = m.previousElementSibling;
1482
- const k = l === "body" || l === "head" || l === "html" ? l : `${l}:nth-of-type(${u})`;
1483
- if (o.unshift(k), !d) {
1484
- const y = c.getAttribute("data-testid") || c.getAttribute("data-qa");
1515
+ m.localName.toLowerCase() === l && p++, m = m.previousElementSibling;
1516
+ const S = l === "body" || l === "head" || l === "html" ? l : `${l}:nth-of-type(${p})`;
1517
+ if (s.unshift(S), !c) {
1518
+ const y = i.getAttribute("data-testid") || i.getAttribute("data-qa");
1485
1519
  if (y) {
1486
- const g = c.hasAttribute("data-testid") ? "data-testid" : "data-qa";
1520
+ const g = i.hasAttribute("data-testid") ? "data-testid" : "data-qa";
1487
1521
  r.push(`[${g}="${y}"]`);
1488
1522
  }
1489
- c.id && !c.id.startsWith("vg-") && !c.id.includes(":") ? (s.unshift(`#${c.id}`), d = !0) : y ? (s.unshift(`[${c.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${y}"]`), d = !0) : s.unshift(k);
1523
+ i.id && !i.id.startsWith("vg-") && !i.id.includes(":") ? (o.unshift(`#${i.id}`), c = !0) : y ? (o.unshift(`[${i.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${y}"]`), c = !0) : o.unshift(S);
1490
1524
  }
1491
- if (c = c.parentElement, l === "html") break;
1525
+ if (i = i.parentElement, l === "html") break;
1492
1526
  }
1493
1527
  return {
1494
- selector: s.join(" > "),
1528
+ selector: o.join(" > "),
1495
1529
  fallbacks: r,
1496
- vgPath: o.join(" > ")
1530
+ vgPath: s.join(" > ")
1497
1531
  };
1498
- }, Cr = (e) => {
1499
- const { vgPath: s } = At(e);
1532
+ }, Er = (e) => {
1533
+ const { vgPath: o } = At(e);
1500
1534
  return {
1501
- vgPath: s,
1535
+ vgPath: o,
1502
1536
  classHash: e.className,
1503
1537
  parentTag: e.parentElement?.tagName.toLowerCase(),
1504
1538
  neighborCount: e.parentElement?.children.length,
@@ -1510,29 +1544,29 @@ const Vo = [
1510
1544
  testId: e.getAttribute("data-testid") || e.getAttribute("data-qa") || void 0,
1511
1545
  textSnippet: (e.innerText || "").slice(0, 50).trim()
1512
1546
  };
1513
- }, Wo = /* @__PURE__ */ (() => {
1514
- let e = null, s = null;
1547
+ }, Bs = /* @__PURE__ */ (() => {
1548
+ let e = null, o = null;
1515
1549
  return (r) => {
1516
1550
  if (!r || typeof window > "u" || typeof document > "u") return r;
1517
1551
  if (r.includes("oklch") || r.includes("oklab") || r.includes("lab(") || r.includes("lch(") || r.includes("color("))
1518
1552
  try {
1519
- if (e || (e = document.createElement("canvas"), e.width = 1, e.height = 1), s || (s = e.getContext("2d", { willReadFrequently: !0 })), s) {
1520
- s.fillStyle = "#000000", s.fillStyle = r;
1521
- const d = s.fillStyle;
1522
- if (d && !d.includes("oklch") && !d.includes("oklab"))
1523
- return d;
1553
+ if (e || (e = document.createElement("canvas"), e.width = 1, e.height = 1), o || (o = e.getContext("2d", { willReadFrequently: !0 })), o) {
1554
+ o.fillStyle = "#000000", o.fillStyle = r;
1555
+ const c = o.fillStyle;
1556
+ if (c && !c.includes("oklch") && !c.includes("oklab"))
1557
+ return c;
1524
1558
  }
1525
- const o = document.createElement("div");
1526
- o.style.color = r, document.body.appendChild(o);
1527
- const c = getComputedStyle(o).color;
1528
- return document.body.removeChild(o), c && !c.includes("oklch") ? c : "rgb(0,0,0)";
1559
+ const s = document.createElement("div");
1560
+ s.style.color = r, document.body.appendChild(s);
1561
+ const i = getComputedStyle(s).color;
1562
+ return document.body.removeChild(s), i && !i.includes("oklch") ? i : "rgb(0,0,0)";
1529
1563
  } catch {
1530
1564
  return "rgb(0,0,0)";
1531
1565
  }
1532
1566
  return r;
1533
1567
  };
1534
- })(), Do = (e) => {
1535
- const s = window.getComputedStyle(e), r = {};
1568
+ })(), Hs = (e) => {
1569
+ const o = window.getComputedStyle(e), r = {};
1536
1570
  return [
1537
1571
  "display",
1538
1572
  "position",
@@ -1544,199 +1578,199 @@ const Vo = [
1544
1578
  "width",
1545
1579
  "height",
1546
1580
  "z-index"
1547
- ].forEach((c) => {
1548
- const d = s.getPropertyValue(c);
1549
- r[c] = Wo(d);
1581
+ ].forEach((i) => {
1582
+ const c = o.getPropertyValue(i);
1583
+ r[i] = Bs(c);
1550
1584
  }), r;
1551
- }, $o = (e) => {
1552
- const r = Object.keys(e).find((d) => d.startsWith("__reactFiber$") || d.startsWith("__reactInternalInstance$"));
1585
+ }, Us = (e) => {
1586
+ const r = Object.keys(e).find((c) => c.startsWith("__reactFiber$") || c.startsWith("__reactInternalInstance$"));
1553
1587
  if (!r) return "";
1554
- const o = [];
1555
- let c = e[r];
1556
- for (; c; ) {
1557
- const d = c.type;
1558
- if (typeof d == "function") {
1559
- const l = d.displayName || d.name;
1560
- l && !l.includes("ViewGate") && !o.includes(l) && o.unshift(l);
1588
+ const s = [];
1589
+ let i = e[r];
1590
+ for (; i; ) {
1591
+ const c = i.type;
1592
+ if (typeof c == "function") {
1593
+ const l = c.displayName || c.name;
1594
+ l && !l.includes("ViewGate") && !s.includes(l) && s.unshift(l);
1561
1595
  }
1562
- c = c.return;
1596
+ i = i.return;
1563
1597
  }
1564
- return o.join(" > ") || "Generic Component";
1565
- }, oa = (e) => {
1598
+ return s.join(" > ") || "Generic Component";
1599
+ }, na = (e) => {
1566
1600
  if (!e || e.id === "viewgate-ui" || e.id === "viewgate-shadow-host" || e.closest("#viewgate-shadow-host")) return !1;
1567
1601
  if (e.getAttribute("role") === "dialog" || e.getAttribute("aria-modal") === "true" || e.classList.contains("modal") || e.classList.contains("modal-content")) return !0;
1568
- const s = window.getComputedStyle(e), r = e.getBoundingClientRect(), o = e.getAttribute("role");
1569
- if (o && ["listbox", "menu", "combobox", "tooltip", "option"].includes(o) || r.width < 120 && r.height < 120) return !1;
1570
- const d = parseInt(s.zIndex) || 0, l = s.position === "fixed" || s.position === "absolute", u = r.width > window.innerWidth * 0.4 && r.height > window.innerHeight * 0.4, m = Math.abs(r.left + r.width / 2 - window.innerWidth / 2) < 50, k = e.getAttribute("class") || "", y = k.toLowerCase().includes("modal") || k.toLowerCase().includes("dialog");
1571
- return !!(l && d >= 100 && (u || m || y));
1572
- }, sa = (e) => {
1573
- let s = e;
1574
- for (; s && s !== document.body; ) {
1575
- if (oa(s)) return s;
1576
- s = s.parentElement;
1602
+ const o = window.getComputedStyle(e), r = e.getBoundingClientRect(), s = e.getAttribute("role");
1603
+ if (s && ["listbox", "menu", "combobox", "tooltip", "option"].includes(s) || r.width < 120 && r.height < 120) return !1;
1604
+ const c = parseInt(o.zIndex) || 0, l = o.position === "fixed" || o.position === "absolute", p = r.width > window.innerWidth * 0.4 && r.height > window.innerHeight * 0.4, m = Math.abs(r.left + r.width / 2 - window.innerWidth / 2) < 50, S = e.getAttribute("class") || "", y = S.toLowerCase().includes("modal") || S.toLowerCase().includes("dialog");
1605
+ return !!(l && c >= 100 && (p || m || y));
1606
+ }, oa = (e) => {
1607
+ let o = e;
1608
+ for (; o && o !== document.body; ) {
1609
+ if (na(o)) return o;
1610
+ o = o.parentElement;
1577
1611
  }
1578
1612
  return null;
1579
1613
  }, De = (e) => {
1580
1614
  if (!e.isConnected) return !1;
1581
- const s = window.getComputedStyle(e);
1582
- if (s.display === "none" || s.visibility === "hidden" || s.opacity === "0")
1615
+ const o = window.getComputedStyle(e);
1616
+ if (o.display === "none" || o.visibility === "hidden" || o.opacity === "0")
1583
1617
  return e.tagName !== "BODY" && e.tagName, !1;
1584
1618
  if (e.offsetWidth === 0 || e.offsetHeight === 0)
1585
1619
  return !1;
1586
1620
  let r = e.parentElement;
1587
1621
  for (; r; ) {
1588
- const c = window.getComputedStyle(r);
1589
- if (c.display === "none" || c.visibility === "hidden" || c.opacity === "0") return !1;
1622
+ const i = window.getComputedStyle(r);
1623
+ if (i.display === "none" || i.visibility === "hidden" || i.opacity === "0") return !1;
1590
1624
  r = r.parentElement;
1591
1625
  }
1592
- const o = e.getBoundingClientRect();
1593
- return !(o.width === 0 || o.height === 0);
1594
- }, Hr = (e, s = document) => {
1595
- const r = s.querySelector(e);
1626
+ const s = e.getBoundingClientRect();
1627
+ return !(s.width === 0 || s.height === 0);
1628
+ }, Hr = (e, o = document) => {
1629
+ const r = o.querySelector(e);
1596
1630
  if (r) return r;
1597
- const o = s.querySelectorAll("*");
1598
- for (const c of Array.from(o)) {
1599
- const d = c.shadowRoot;
1600
- if (d) {
1601
- const l = Hr(e, d);
1631
+ const s = o.querySelectorAll("*");
1632
+ for (const i of Array.from(s)) {
1633
+ const c = i.shadowRoot;
1634
+ if (c) {
1635
+ const l = Hr(e, c);
1602
1636
  if (l) return l;
1603
1637
  }
1604
1638
  }
1605
1639
  return null;
1606
- }, Er = (e, s) => {
1607
- let r = document.elementFromPoint(e, s);
1640
+ }, Vr = (e, o) => {
1641
+ let r = document.elementFromPoint(e, o);
1608
1642
  for (; r && r.shadowRoot; ) {
1609
- const o = r.shadowRoot.elementFromPoint(e, s);
1610
- if (!o || o === r) break;
1611
- r = o;
1643
+ const s = r.shadowRoot.elementFromPoint(e, o);
1644
+ if (!s || s === r) break;
1645
+ r = s;
1612
1646
  }
1613
1647
  return r;
1614
- }, Fo = (e) => {
1648
+ }, qs = (e) => {
1615
1649
  if (!e.tag) return null;
1616
- const s = Array.from(document.getElementsByTagName(e.tag));
1617
- let r = null, o = 0;
1618
- for (const c of s) {
1619
- if (!_t(c, e)) continue;
1620
- let d = 0;
1621
- const l = c.getAttribute("placeholder"), u = e.attributes?.placeholder || e.fingerprint?.placeholder;
1622
- u && l === u && (d += 6);
1623
- const m = c.getAttribute("type"), k = e.attributes?.type || e.fingerprint?.type;
1624
- if (k && m === k && (d += 2), c.innerText?.trim() === e.text.trim() && (d += 5), e.fingerprint?.vgPath) {
1625
- const { vgPath: y } = At(c);
1626
- (y === e.vgPath || e.fingerprint?.vgPath === y) && (d += 10);
1650
+ const o = Array.from(document.getElementsByTagName(e.tag));
1651
+ let r = null, s = 0;
1652
+ for (const i of o) {
1653
+ if (!_t(i, e)) continue;
1654
+ let c = 0;
1655
+ const l = i.getAttribute("placeholder"), p = e.attributes?.placeholder || e.fingerprint?.placeholder;
1656
+ p && l === p && (c += 6);
1657
+ const m = i.getAttribute("type"), S = e.attributes?.type || e.fingerprint?.type;
1658
+ if (S && m === S && (c += 2), i.innerText?.trim() === e.text.trim() && (c += 5), e.fingerprint?.vgPath) {
1659
+ const { vgPath: y } = At(i);
1660
+ (y === e.vgPath || e.fingerprint?.vgPath === y) && (c += 10);
1627
1661
  }
1628
- d > o && d >= 7 && (o = d, r = c);
1662
+ c > s && c >= 7 && (s = c, r = i);
1629
1663
  }
1630
1664
  return r;
1631
- }, _t = (e, s) => {
1632
- if (e.tagName.toLowerCase() !== s.tag.toLowerCase()) return !1;
1633
- const r = e.getAttribute("placeholder"), o = s.attributes?.placeholder || s.fingerprint?.placeholder;
1634
- if (o && r && o !== r) return !1;
1635
- const c = e.getAttribute("type"), d = s.attributes?.type || s.fingerprint?.type;
1636
- return !(d && c && d !== c);
1637
- }, Vr = (e, s) => {
1638
- if (s) {
1639
- const l = Array.from(document.querySelectorAll(`[${Te}="${s}"]`));
1665
+ }, _t = (e, o) => {
1666
+ if (e.tagName.toLowerCase() !== o.tag.toLowerCase()) return !1;
1667
+ const r = e.getAttribute("placeholder"), s = o.attributes?.placeholder || o.fingerprint?.placeholder;
1668
+ if (s && r && s !== r) return !1;
1669
+ const i = e.getAttribute("type"), c = o.attributes?.type || o.fingerprint?.type;
1670
+ return !(c && i && c !== i);
1671
+ }, Gr = (e, o) => {
1672
+ if (o) {
1673
+ const l = Array.from(document.querySelectorAll(`[${Te}="${o}"]`));
1640
1674
  if (l.length > 0) {
1641
- const u = l.filter((m) => _t(m, e));
1642
- if (u.length === 0)
1675
+ const p = l.filter((m) => _t(m, e));
1676
+ if (p.length === 0)
1643
1677
  l.forEach((m) => m.removeAttribute(Te));
1644
1678
  else {
1645
- const m = u.find((y) => {
1679
+ const m = p.find((y) => {
1646
1680
  const { vgPath: g } = At(y);
1647
1681
  return g === e.vgPath || e.fingerprint?.vgPath === g;
1648
- }), k = m && De(m) ? m : u.find((y) => !(!De(y) || e.metadata?.isModal && !y.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));
1649
- return k ? (l.forEach((y) => {
1650
- y !== k && y.removeAttribute(Te);
1651
- }), k) : null;
1682
+ }), S = m && De(m) ? m : p.find((y) => !(!De(y) || e.metadata?.isModal && !y.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));
1683
+ return S ? (l.forEach((y) => {
1684
+ y !== S && y.removeAttribute(Te);
1685
+ }), S) : null;
1652
1686
  }
1653
1687
  }
1654
1688
  }
1655
1689
  if (e.vgPath)
1656
1690
  try {
1657
1691
  const l = document.querySelector(e.vgPath);
1658
- if (l && _t(l, e) && De(l) && (!e.metadata?.isModal || sa(l)))
1692
+ if (l && _t(l, e) && De(l) && (!e.metadata?.isModal || oa(l)))
1659
1693
  return l;
1660
1694
  } catch {
1661
1695
  }
1662
- const o = (e.selector ? Array.from(document.querySelectorAll(e.selector)) : []).filter((l) => _t(l, e));
1663
- let c = o.find((l) => {
1664
- const { vgPath: u } = At(l);
1665
- return u === e.vgPath || e.fingerprint?.vgPath === u;
1666
- }) || o[0] || null;
1667
- if (c && De(c))
1668
- if (e.metadata?.isModal && !sa(c))
1669
- c = null;
1696
+ const s = (e.selector ? Array.from(document.querySelectorAll(e.selector)) : []).filter((l) => _t(l, e));
1697
+ let i = s.find((l) => {
1698
+ const { vgPath: p } = At(l);
1699
+ return p === e.vgPath || e.fingerprint?.vgPath === p;
1700
+ }) || s[0] || null;
1701
+ if (i && De(i))
1702
+ if (e.metadata?.isModal && !oa(i))
1703
+ i = null;
1670
1704
  else
1671
- return c;
1705
+ return i;
1672
1706
  if (e.fallbackSelectors)
1673
1707
  for (const l of e.fallbackSelectors) {
1674
- const u = Hr(l);
1675
- if (u && _t(u, e) && De(u)) {
1676
- if (e.metadata?.isModal && !sa(u)) continue;
1677
- return u;
1708
+ const p = Hr(l);
1709
+ if (p && _t(p, e) && De(p)) {
1710
+ if (e.metadata?.isModal && !oa(p)) continue;
1711
+ return p;
1678
1712
  }
1679
1713
  }
1680
- const d = Fo(e);
1681
- return d && De(d) ? e.metadata?.isModal && !sa(d) ? null : d : null;
1682
- }, Va = (e) => ({
1714
+ const c = qs(e);
1715
+ return c && De(c) ? e.metadata?.isModal && !oa(c) ? null : c : null;
1716
+ }, Ga = (e) => ({
1683
1717
  tag: e.tagName.toLowerCase(),
1684
1718
  text: (e.innerText || e.getAttribute("placeholder") || "").slice(0, 50).trim(),
1685
1719
  role: e.getAttribute("role") || void 0,
1686
1720
  type: e.getAttribute("type") || void 0
1687
- }), Gr = (e) => {
1721
+ }), Rr = (e) => {
1688
1722
  if (!e) return "";
1689
- let s = e.replace(/<path[^>]*d="([^"]{50,})"[^>]*\/?>/gi, (r, o) => r.replace(o, `${o.substring(0, 20)}...[STRIPPED_${o.length}]`));
1690
- return s = s.replace(/<polygon[^>]*points="([^"]{50,})"[^>]*\/?>/gi, (r, o) => r.replace(o, `${o.substring(0, 20)}...[STRIPPED_${o.length}]`)), s;
1691
- }, Bo = (e) => {
1692
- const s = e.parentElement;
1693
- if (!s) return;
1694
- const r = Array.from(s.children).filter((l) => l !== e).slice(0, 5).map((l) => Va(l)), o = Array.from(s.children), c = o.indexOf(e);
1695
- let d = "middle";
1696
- return c === 0 && (d = "start"), c === o.length - 1 && (d = "end"), {
1723
+ let o = e.replace(/<path[^>]*d="([^"]{50,})"[^>]*\/?>/gi, (r, s) => r.replace(s, `${s.substring(0, 20)}...[STRIPPED_${s.length}]`));
1724
+ return o = o.replace(/<polygon[^>]*points="([^"]{50,})"[^>]*\/?>/gi, (r, s) => r.replace(s, `${s.substring(0, 20)}...[STRIPPED_${s.length}]`)), o;
1725
+ }, Ys = (e) => {
1726
+ const o = e.parentElement;
1727
+ if (!o) return;
1728
+ const r = Array.from(o.children).filter((l) => l !== e).slice(0, 5).map((l) => Ga(l)), s = Array.from(o.children), i = s.indexOf(e);
1729
+ let c = "middle";
1730
+ return i === 0 && (c = "start"), i === s.length - 1 && (c = "end"), {
1697
1731
  target: {
1698
- ...Va(e),
1699
- location: `${d} of ${s.tagName.toLowerCase()}`
1732
+ ...Ga(e),
1733
+ location: `${c} of ${o.tagName.toLowerCase()}`
1700
1734
  },
1701
- parent: Va(s),
1735
+ parent: Ga(o),
1702
1736
  siblings: r
1703
1737
  };
1704
- }, Ur = (e, s) => {
1738
+ }, Ur = (e, o) => {
1705
1739
  const r = e.getAttribute("data-vg-id") || void 0;
1706
- let o;
1707
- const d = Object.keys(e).find((G) => G.startsWith("__reactFiber$") || G.startsWith("__reactInternalInstance$"));
1708
- if (d) {
1709
- let G = e[d];
1740
+ let s;
1741
+ const c = Object.keys(e).find((G) => G.startsWith("__reactFiber$") || G.startsWith("__reactInternalInstance$"));
1742
+ if (c) {
1743
+ let G = e[c];
1710
1744
  for (; G; ) {
1711
1745
  if (G._debugSource) {
1712
1746
  const { fileName: x, lineNumber: ge, columnNumber: A } = G._debugSource;
1713
- o = `${x}:${ge}${A ? ":" + A : ""}`;
1747
+ s = `${x}:${ge}${A ? ":" + A : ""}`;
1714
1748
  break;
1715
1749
  }
1716
1750
  G = G.return;
1717
1751
  }
1718
1752
  }
1719
- const l = Cr(e), u = {
1753
+ const l = Er(e), p = {
1720
1754
  vgId: r ? 1 : 0,
1721
- fiber: o ? 0.8 : 0,
1755
+ fiber: s ? 0.8 : 0,
1722
1756
  fingerprint: 0.5 + (l.testId ? 0.3 : 0) + (l.ariaLabel ? 0.1 : 0)
1723
1757
  };
1724
- let m = e.getAttribute("data-source-path") || o || "unknown:0";
1725
- const k = $o(e), { selector: y, fallbacks: g, vgPath: h } = At(e), S = {};
1758
+ let m = e.getAttribute("data-source-path") || s || "unknown:0";
1759
+ const S = Us(e), { selector: y, fallbacks: g, vgPath: h } = At(e), k = {};
1726
1760
  ["placeholder", "aria-label", "name", "type", "alt", "title", "value", "role", "data-testid"].forEach((G) => {
1727
1761
  const x = e.getAttribute(G);
1728
- x && (S[G] = x);
1762
+ x && (k[G] = x);
1729
1763
  });
1730
1764
  const V = (() => {
1731
1765
  let G = e;
1732
1766
  for (; G && G !== document.body; ) {
1733
- if (oa(G)) return !0;
1767
+ if (na(G)) return !0;
1734
1768
  G = G.parentElement;
1735
1769
  }
1736
1770
  return !1;
1737
1771
  })();
1738
1772
  let E;
1739
- V && s && !s.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content') && (E = Ur(s));
1773
+ V && o && !o.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content') && (E = Ur(o));
1740
1774
  const T = `${e.tagName.toLowerCase()}-${(e.innerText || "").slice(0, 20).replace(/\s+/g, "_")}-${y.split(" > ").slice(-1)}`;
1741
1775
  return {
1742
1776
  tag: e.tagName.toLowerCase(),
@@ -1746,94 +1780,94 @@ const Vo = [
1746
1780
  selector: y,
1747
1781
  vgPath: h,
1748
1782
  vgId: r,
1749
- outerHtml: Gr(e.outerHTML),
1783
+ outerHtml: Rr(e.outerHTML),
1750
1784
  parentContext: e.parentElement ? `<${e.parentElement.tagName.toLowerCase()} ${Array.from(e.parentElement.attributes).map((G) => `${G.name}="${G.value}"`).join(" ").slice(0, 500)}>` : "N/A",
1751
- componentPath: k,
1785
+ componentPath: S,
1752
1786
  signature: T,
1753
1787
  source: m,
1754
- attributes: S,
1755
- confidence: u,
1788
+ attributes: k,
1789
+ confidence: p,
1756
1790
  fallbackSelectors: [...new Set(g)].slice(0, 5),
1757
1791
  domPath: [],
1758
1792
  viewportSize: { width: window.innerWidth, height: window.innerHeight },
1759
- uiContext: Bo(e),
1760
- fingerprint: Cr(e),
1793
+ uiContext: Ys(e),
1794
+ fingerprint: Er(e),
1761
1795
  metadata: {
1762
1796
  hint: `Edit ${m.split(":")[0]} at line ${m.split(":")[1] || "?"}`,
1763
- computedStyles: Do(e),
1764
- viewportBreakpoint: Lo(),
1765
- outerHtml: Gr(e.outerHTML).slice(0, 2e3),
1797
+ computedStyles: Hs(e),
1798
+ viewportBreakpoint: Fs(),
1799
+ outerHtml: Rr(e.outerHTML).slice(0, 2e3),
1766
1800
  scrollPosition: { x: window.scrollX, y: window.scrollY },
1767
1801
  isModal: V,
1768
1802
  triggerReference: E
1769
1803
  }
1770
1804
  };
1771
- }, Ho = () => {
1772
- const { mutate: e } = Dr(), { addToast: s, language: r, t: o, apiKey: c, baseUrl: d, dashboardUrl: l, disableViewGate: u, hasActiveToasts: m } = Ro(), [k, y] = C(typeof window < "u" ? window.location.pathname + window.location.search : "/"), g = ot(() => typeof window > "u" ? !1 : window.location.href.includes("viewgate-backlog"), [k]);
1773
- se(() => {
1805
+ }, Xs = () => {
1806
+ const { mutate: e } = $r(), { addToast: o, language: r, t: s, apiKey: i, baseUrl: c, dashboardUrl: l, disableViewGate: p, hasActiveToasts: m } = Rs(), [S, y] = C(typeof window < "u" ? window.location.pathname + window.location.search : "/"), g = st(() => typeof window > "u" ? !1 : window.location.href.includes("viewgate-backlog"), [S]);
1807
+ oe(() => {
1774
1808
  const a = () => y(window.location.pathname + window.location.search);
1775
1809
  window.addEventListener("popstate", a);
1776
- const n = window.history.pushState, i = window.history.replaceState;
1777
- return window.history.pushState = function(...p) {
1778
- n.apply(this, p), setTimeout(a, 0);
1779
- }, window.history.replaceState = function(...p) {
1780
- i.apply(this, p), setTimeout(a, 0);
1810
+ const n = window.history.pushState, d = window.history.replaceState;
1811
+ return window.history.pushState = function(...u) {
1812
+ n.apply(this, u), setTimeout(a, 0);
1813
+ }, window.history.replaceState = function(...u) {
1814
+ d.apply(this, u), setTimeout(a, 0);
1781
1815
  }, () => {
1782
- window.removeEventListener("popstate", a), window.history.pushState = n, window.history.replaceState = i;
1816
+ window.removeEventListener("popstate", a), window.history.pushState = n, window.history.replaceState = d;
1783
1817
  };
1784
1818
  }, []);
1785
- const [h, S] = C(!1), [V, E] = C("medium"), [T, G] = C("medium"), [x, ge] = C("all"), [A, U] = C(null), [N, X] = C(null), [re, D] = C(""), [oe, le] = C(!1), [M, pe] = C([]), [B, ne] = C([
1786
- { name: o.figmaPrimaryDesign, link: "" }
1819
+ const [h, k] = C(!1), [V, E] = C("medium"), [T, G] = C("medium"), [x, ge] = C("all"), [A, U] = C(null), [N, X] = C(null), [re, D] = C(""), [se, le] = C(!1), [M, pe] = C([]), [B, ne] = C([
1820
+ { name: s.figmaPrimaryDesign, link: "" }
1787
1821
  ]), [L, je] = C([]), [Oe, Be] = C([]), [Ce, f] = C(null), [R, z] = C(!1), [$, Ae] = C(""), [Ee, P] = C(!1), [be, nt] = C("down");
1788
1822
  ee(null);
1789
- const [Me, He] = C(!1), [me, Ie] = C(!1), [ae, Ke] = C([]), [he, W] = C(null), [F, q] = C(""), [K, Ve] = C(!1), [xe, J] = C({}), [Y, Le] = C(null), [Ne, vt] = C(!1), [Ge, ue] = C(null), [ze, zt] = C([]), [Z, Je] = C(() => typeof window > "u" ? null : localStorage.getItem("vg_token") || sessionStorage.getItem("vg_token")), [ie, na] = C(() => {
1823
+ const [Me, He] = C(!1), [me, Ie] = C(!1), [ae, Ke] = C([]), [he, W] = C(null), [F, q] = C(""), [K, Ve] = C(!1), [xe, J] = C({}), [Y, Le] = C(null), [Ne, vt] = C(!1), [Ge, ue] = C(null), [ze, zt] = C([]), [Z, Je] = C(() => typeof window > "u" ? null : localStorage.getItem("vg_token") || sessionStorage.getItem("vg_token")), [ie, ia] = C(() => {
1790
1824
  if (typeof window > "u") return null;
1791
1825
  const a = localStorage.getItem("vg_user") || sessionStorage.getItem("vg_user");
1792
1826
  return a && a !== "undefined" ? JSON.parse(a) : null;
1793
- }), [yt, ia] = C(() => typeof window > "u" ? null : localStorage.getItem("vg_role") || sessionStorage.getItem("vg_role")), [Ze, Wa] = C(""), [ca, Da] = C(!1), [qo, Yr] = C(!1), [bt, $a] = C(!1), [Pt, Fa] = C(!1), [Mt, Xr] = C(!1), [Lt, Ba] = C(!0), Kr = async (a) => {
1794
- if (a && a.preventDefault(), !(!Ze.trim() || !d)) {
1795
- Da(!0);
1827
+ }), [yt, ca] = C(() => typeof window > "u" ? null : localStorage.getItem("vg_role") || sessionStorage.getItem("vg_role")), [Ze, Da] = C(""), [da, $a] = C(!1), [Js, Yr] = C(!1), [bt, Fa] = C(!1), [Pt, Ba] = C(!1), [Mt, Xr] = C(!1), [Lt, Ha] = C(!0), Kr = async (a) => {
1828
+ if (a && a.preventDefault(), !(!Ze.trim() || !c)) {
1829
+ $a(!0);
1796
1830
  try {
1797
- const n = await fetch(`${d}/api/auth/me`, {
1831
+ const n = await fetch(`${c}/api/auth/me`, {
1798
1832
  headers: {
1799
1833
  Authorization: `Bearer ${Ze.trim()}`,
1800
- "x-api-key": c || ""
1834
+ "x-api-key": i || ""
1801
1835
  }
1802
1836
  });
1803
1837
  if (!n.ok) {
1804
1838
  const w = await n.json().catch(() => ({}));
1805
1839
  throw new Error(w.error || w.message || "Invalid token");
1806
1840
  }
1807
- const i = await n.json();
1808
- console.log("[ViewGate] Auth data received:", i);
1809
- const p = i.user || (i.email ? i : null), v = i.role || p?.role || "dev";
1810
- if (console.log("[ViewGate] Identified as:", p?.email, p?.name, "Role:", v), !p) throw new Error("User not found in token");
1811
- Je(Ze.trim()), na(p), ia(v), localStorage.setItem("vg_token", Ze.trim()), p && localStorage.setItem("vg_user", JSON.stringify(p)), v && localStorage.setItem("vg_role", v), s(r === "es" ? "Sesión iniciada correctamente" : o.successHeader, "success"), Wa(""), Fa(!1), $a(!1), Yr(!1), da();
1841
+ const d = await n.json();
1842
+ console.log("[ViewGate] Auth data received:", d);
1843
+ const u = d.user || (d.email ? d : null), v = d.role || u?.role || "dev";
1844
+ if (console.log("[ViewGate] Identified as:", u?.email, u?.name, "Role:", v), !u) throw new Error("User not found in token");
1845
+ Je(Ze.trim()), ia(u), ca(v), localStorage.setItem("vg_token", Ze.trim()), u && localStorage.setItem("vg_user", JSON.stringify(u)), v && localStorage.setItem("vg_role", v), o(r === "es" ? "Sesión iniciada correctamente" : s.successHeader, "success"), Da(""), Ba(!1), Fa(!1), Yr(!1), la();
1812
1846
  } catch (n) {
1813
- let i = n.message || (r === "es" ? "Clave inválida o expirada" : "Invalid or expired key");
1814
- i.toLowerCase().includes("invalid or expired token") && (i = o.invalidToken), s(i, "error");
1847
+ let d = n.message || (r === "es" ? "Clave inválida o expirada" : "Invalid or expired key");
1848
+ d.toLowerCase().includes("invalid or expired token") && (d = s.invalidToken), o(d, "error");
1815
1849
  } finally {
1816
- Da(!1);
1850
+ $a(!1);
1817
1851
  }
1818
1852
  }
1819
1853
  }, wt = _e(() => {
1820
- console.log("[VIEWGATE_WRAPPER] Clearing session"), Je(null), na(null), ia(null), Ba(!1), sessionStorage.removeItem("vg_token"), sessionStorage.removeItem("vg_user"), sessionStorage.removeItem("vg_role"), localStorage.removeItem("vg_token"), localStorage.removeItem("vg_user"), localStorage.removeItem("vg_role");
1821
- const a = d;
1822
- e((n) => typeof n == "string" && a && n.startsWith(a), void 0, { revalidate: !1 }), Ke([]), ue(null), S(!1), X(null), D(""), Ie(!1), s(r === "es" ? "Sesión finalizada o inválida" : "Session ended or invalid", "error");
1823
- }, [d, r]);
1824
- se(() => {
1854
+ console.log("[VIEWGATE_WRAPPER] Clearing session"), Je(null), ia(null), ca(null), Ha(!1), sessionStorage.removeItem("vg_token"), sessionStorage.removeItem("vg_user"), sessionStorage.removeItem("vg_role"), localStorage.removeItem("vg_token"), localStorage.removeItem("vg_user"), localStorage.removeItem("vg_role");
1855
+ const a = c;
1856
+ e((n) => typeof n == "string" && a && n.startsWith(a), void 0, { revalidate: !1 }), Ke([]), ue(null), k(!1), X(null), D(""), Ie(!1), o(r === "es" ? "Sesión finalizada o inválida" : "Session ended or invalid", "error");
1857
+ }, [c, r]);
1858
+ oe(() => {
1825
1859
  const a = (n) => {
1826
1860
  if (n.data?.type?.startsWith("VIEWGATE_") && console.log("[VIEWGATE_WRAPPER] Received message:", n.data.type, n.data), n.data?.type === "VIEWGATE_AUTH_SUCCESS" || n.data?.type === "VIEWGATE_SILENT_AUTH") {
1827
- const { token: i, user: p, role: v, error: w } = n.data;
1828
- if (console.log("[VIEWGATE_WRAPPER] Auth process:", { type: n.data.type, hasToken: !!i, hasUser: !!p }), w === "NO_SESSION")
1861
+ const { token: d, user: u, role: v, error: w } = n.data;
1862
+ if (console.log("[VIEWGATE_WRAPPER] Auth process:", { type: n.data.type, hasToken: !!d, hasUser: !!u }), w === "NO_SESSION")
1829
1863
  return;
1830
1864
  const O = sessionStorage.getItem("vg_token");
1831
- if (i && i !== O || !i && O) {
1865
+ if (d && d !== O || !d && O) {
1832
1866
  console.log("[VIEWGATE_WRAPPER] Session sync detected change, clearing caches");
1833
- const j = d;
1867
+ const j = c;
1834
1868
  e((Q) => typeof Q == "string" && j && Q.startsWith(j), void 0, { revalidate: !0 }), Ke([]);
1835
1869
  }
1836
- i && (Je(i), sessionStorage.setItem("vg_token", i), localStorage.setItem("vg_token", i), p && (na(p), ia(v || p.role || "dev"), sessionStorage.setItem("vg_user", JSON.stringify(p)), localStorage.setItem("vg_user", JSON.stringify(p))), n.data.type === "VIEWGATE_AUTH_SUCCESS" && s(r === "es" ? "Sesión iniciada correctamente" : "Logged in successfully", "success"));
1870
+ d && (Je(d), sessionStorage.setItem("vg_token", d), localStorage.setItem("vg_token", d), u && (ia(u), ca(v || u.role || "dev"), sessionStorage.setItem("vg_user", JSON.stringify(u)), localStorage.setItem("vg_user", JSON.stringify(u))), n.data.type === "VIEWGATE_AUTH_SUCCESS" && o(r === "es" ? "Sesión iniciada correctamente" : "Logged in successfully", "success"));
1837
1871
  }
1838
1872
  if (n.data?.type === "VIEWGATE_LOGOUT") {
1839
1873
  if (console.log("[VIEWGATE_WRAPPER] Logout message received"), sessionStorage.getItem("vg_token")) {
@@ -1844,117 +1878,117 @@ const Vo = [
1844
1878
  }
1845
1879
  };
1846
1880
  return window.addEventListener("message", a), () => window.removeEventListener("message", a);
1847
- }, [r, wt, d]);
1848
- const da = _e(() => {
1849
- if (!c || !d || Pt) return;
1850
- const a = { "x-api-key": c };
1851
- Z && (a.Authorization = `Bearer ${Z}`), fetch(`${d}/api/projects/settings-check`, {
1881
+ }, [r, wt, c]);
1882
+ const la = _e(() => {
1883
+ if (!i || !c || Pt) return;
1884
+ const a = { "x-api-key": i };
1885
+ Z && (a.Authorization = `Bearer ${Z}`), fetch(`${c}/api/projects/settings-check`, {
1852
1886
  headers: a
1853
1887
  }).then((n) => {
1854
1888
  if (n.status === 403)
1855
1889
  throw wt(), new Error("Unauthorized");
1856
1890
  return n.json();
1857
1891
  }).then((n) => {
1858
- n.projectId && f(n.projectId), typeof n.isFigmaConnected == "boolean" && z(n.isFigmaConnected), typeof n.hasEndpoints == "boolean" && Xr(n.hasEndpoints), Fa(!0);
1892
+ n.projectId && f(n.projectId), typeof n.isFigmaConnected == "boolean" && z(n.isFigmaConnected), typeof n.hasEndpoints == "boolean" && Xr(n.hasEndpoints), Ba(!0);
1859
1893
  }).catch((n) => {
1860
1894
  n.message !== "Unauthorized" && console.error("Failed to fetch project settings-check", n);
1861
1895
  });
1862
- }, [c, d, Pt]), la = _e(() => {
1863
- if (!c || !d || bt) return;
1864
- const a = { "x-api-key": c };
1865
- Z && (a.Authorization = `Bearer ${Z}`), fetch(`${d}/api/projects/endpoints`, {
1896
+ }, [i, c, Pt]), pa = _e(() => {
1897
+ if (!i || !c || bt) return;
1898
+ const a = { "x-api-key": i };
1899
+ Z && (a.Authorization = `Bearer ${Z}`), fetch(`${c}/api/projects/endpoints`, {
1866
1900
  headers: a
1867
1901
  }).then((n) => {
1868
1902
  if (n.status === 403)
1869
1903
  throw wt(), new Error("Unauthorized");
1870
1904
  return n.json();
1871
1905
  }).then((n) => {
1872
- n.endpoints && Array.isArray(n.endpoints) ? Be(n.endpoints) : Array.isArray(n) && Be(n), typeof n.isFigmaConnected == "boolean" && z(n.isFigmaConnected), $a(!0);
1906
+ n.endpoints && Array.isArray(n.endpoints) ? Be(n.endpoints) : Array.isArray(n) && Be(n), typeof n.isFigmaConnected == "boolean" && z(n.isFigmaConnected), Fa(!0);
1873
1907
  }).catch((n) => {
1874
1908
  n.message !== "Unauthorized" && console.error("Failed to fetch project endpoints", n);
1875
1909
  });
1876
- }, [c, d, bt]);
1877
- se(() => {
1878
- (h || Z) && (Pt || da());
1879
- }, [h, Z, Pt, da]), se(() => {
1880
- Ee && !bt && la();
1881
- }, [Ee, bt, la]), se(() => {
1910
+ }, [i, c, bt]);
1911
+ oe(() => {
1912
+ (h || Z) && (Pt || la());
1913
+ }, [h, Z, Pt, la]), oe(() => {
1914
+ Ee && !bt && pa();
1915
+ }, [Ee, bt, pa]), oe(() => {
1882
1916
  if (M.length === 0) return;
1883
1917
  const a = ["frontend"];
1884
1918
  Mt && a.push("backend"), R && a.push("ux");
1885
- const n = M.filter((i) => a.includes(i));
1919
+ const n = M.filter((d) => a.includes(d));
1886
1920
  n.length !== M.length && pe(n);
1887
1921
  }, [Oe.length, R, M]);
1888
- const Ha = _e(async (a) => {
1922
+ const Ua = _e(async (a) => {
1889
1923
  const n = {
1890
- "x-api-key": c
1924
+ "x-api-key": i
1891
1925
  };
1892
1926
  Z && (n.Authorization = `Bearer ${Z}`);
1893
- const i = await fetch(a, { headers: n });
1894
- if (!i.ok) {
1895
- i.status === 403 && wt();
1896
- const p = await i.json().catch(() => ({}));
1897
- let v = p.message || p.error || "Fetch failed";
1898
- v.toLowerCase().includes("invalid or expired token") && (v = o.invalidToken);
1927
+ const d = await fetch(a, { headers: n });
1928
+ if (!d.ok) {
1929
+ d.status === 403 && wt();
1930
+ const u = await d.json().catch(() => ({}));
1931
+ let v = u.message || u.error || "Fetch failed";
1932
+ v.toLowerCase().includes("invalid or expired token") && (v = s.invalidToken);
1899
1933
  const w = new Error(v);
1900
- throw w.status = i.status, w;
1934
+ throw w.status = d.status, w;
1901
1935
  }
1902
- return Ba(!0), i.json();
1903
- }, [c, Z]), Jr = ot(() => g ? "backlog" : "pending,todo,in_progress,review,ready_for_review,bug_fixing", [g]), { data: Wt, isLoading: Dt, error: Ua } = xr(
1904
- c ? `${d}/api/projects/active-sprint` : null,
1905
- Ha,
1936
+ return Ha(!0), d.json();
1937
+ }, [i, Z]), Jr = st(() => g ? "backlog" : "pending,todo,in_progress,review,ready_for_review,bug_fixing", [g]), { data: Wt, isLoading: Dt, error: qa } = vr(
1938
+ i ? `${c}/api/projects/active-sprint` : null,
1939
+ Ua,
1906
1940
  {
1907
1941
  revalidateOnFocus: !0,
1908
1942
  revalidateOnMount: !0,
1909
1943
  dedupingInterval: 6e4
1910
1944
  }
1911
- ), { data: kt, isLoading: Qe, mutate: $t } = xr(
1912
- c && (Wt || g) ? `${d}/api/annotations?status=${Jr}` : null,
1913
- Ha,
1945
+ ), { data: kt, isLoading: Qe, mutate: $t } = vr(
1946
+ i && (Wt || g) ? `${c}/api/annotations?status=${Jr}` : null,
1947
+ Ua,
1914
1948
  {
1915
1949
  refreshInterval: 3e4,
1916
1950
  // Reduced polling frequency to 30s to save resources
1917
1951
  revalidateOnFocus: !0,
1918
1952
  dedupingInterval: 5e3
1919
1953
  }
1920
- ), [et, qa] = C(null), [it, Yo] = C(null), Ya = ee(ae);
1921
- Ya.current = ae;
1922
- const [ce, Ft] = C(null), Xa = ee(null), [ct, Zr] = C([]), Ka = ot(() => {
1954
+ ), [et, Ya] = C(null), [it, Zs] = C(null), Xa = ee(ae);
1955
+ Xa.current = ae;
1956
+ const [ce, Ft] = C(null), Ka = ee(null), [ct, Zr] = C([]), Ja = st(() => {
1923
1957
  const a = ($ || "").toLowerCase().trim();
1924
1958
  return a ? Oe.filter((n) => {
1925
- const i = n.path && n.path.toLowerCase().includes(a), p = n.description && n.description.toLowerCase().includes(a), v = n.method && n.method.toLowerCase().includes(a);
1926
- return i || p || v;
1959
+ const d = n.path && n.path.toLowerCase().includes(a), u = n.description && n.description.toLowerCase().includes(a), v = n.method && n.method.toLowerCase().includes(a);
1960
+ return d || u || v;
1927
1961
  }) : Oe;
1928
- }, [Oe, $]), Ja = ot(() => {
1962
+ }, [Oe, $]), Za = st(() => {
1929
1963
  const a = {}, n = r === "es" ? "Seleccionados" : "Selected";
1930
- return Ka.forEach((i) => {
1931
- const p = `${i.method}|${i.path}`;
1932
- L.includes(p) && (a[n] || (a[n] = { name: n, endpoints: [] }), a[n].endpoints.push(i));
1933
- const w = (i.path || "").split("/").filter((Q) => Q && !["api", "v1.0", "v2", "rest"].includes(Q.toLowerCase()));
1964
+ return Ja.forEach((d) => {
1965
+ const u = `${d.method}|${d.path}`;
1966
+ L.includes(u) && (a[n] || (a[n] = { name: n, endpoints: [] }), a[n].endpoints.push(d));
1967
+ const w = (d.path || "").split("/").filter((Q) => Q && !["api", "v1.0", "v2", "rest"].includes(Q.toLowerCase()));
1934
1968
  let O = w.length > 0 ? w[0] : "General";
1935
1969
  O = O.replace(/([a-z])([A-Z])/g, "$1 $2"), O = O.replace(/([A-Z])([A-Z][a-z])/g, "$1 $2"), O = O.charAt(0).toUpperCase() + O.slice(1), a[O] || (a[O] = { name: O, endpoints: [] });
1936
1970
  const j = a[O];
1937
- j && j.endpoints.push(i);
1938
- }), Object.values(a).sort((i, p) => i.name === n ? -1 : p.name === n || i.name === "General" ? 1 : p.name === "General" ? -1 : i.name.localeCompare(p.name));
1939
- }, [Ka, L, r]), pa = ot(() => {
1971
+ j && j.endpoints.push(d);
1972
+ }), Object.values(a).sort((d, u) => d.name === n ? -1 : u.name === n || d.name === "General" ? 1 : u.name === "General" ? -1 : d.name.localeCompare(u.name));
1973
+ }, [Ja, L, r]), ua = st(() => {
1940
1974
  let a = Array.isArray(ae) ? ae : [];
1941
1975
  if (Y) {
1942
- const i = ct.find((p) => p.annotations && Array.isArray(p.annotations) && p.annotations.some((v) => v._id === Y));
1943
- i ? a = i.annotations : a = a.filter((p) => p._id === Y);
1976
+ const d = ct.find((u) => u.annotations && Array.isArray(u.annotations) && u.annotations.some((v) => v._id === Y));
1977
+ d ? a = d.annotations : a = a.filter((u) => u._id === Y);
1944
1978
  }
1945
- return a = a.filter((i) => i.status !== "completed" && i.status !== "done"), window.location.href.includes("viewgate-backlog") || (ce === "pending" ? a = a.filter((i) => i.status !== "ready_for_review") : ce === "ready" && (a = a.filter((i) => i.status === "ready_for_review"))), x !== "all" && (a = a.filter((i) => (i.priority || "medium") === x)), a;
1979
+ return a = a.filter((d) => d.status !== "completed" && d.status !== "done"), window.location.href.includes("viewgate-backlog") || (ce === "pending" ? a = a.filter((d) => d.status !== "ready_for_review") : ce === "ready" && (a = a.filter((d) => d.status === "ready_for_review"))), x !== "all" && (a = a.filter((d) => (d.priority || "medium") === x)), a;
1946
1980
  }, [Y, ae, ct, ce, x]);
1947
- se(() => {
1948
- Y && pa.length === 0 && !Qe && Le(null);
1949
- }, [Y, pa.length, Qe]);
1981
+ oe(() => {
1982
+ Y && ua.length === 0 && !Qe && Le(null);
1983
+ }, [Y, ua.length, Qe]);
1950
1984
  const [dt, Qr] = C(() => {
1951
1985
  if (typeof window > "u") return { bottom: 30, right: 30 };
1952
1986
  const a = localStorage.getItem("vg-bar-pos");
1953
1987
  return a ? JSON.parse(a) : { bottom: 30, right: 30 };
1954
- }), [St, Za] = C(!1), We = ee(null), es = (a) => {
1988
+ }), [St, Qa] = C(!1), We = ee(null), eo = (a) => {
1955
1989
  a.preventDefault(), a.stopPropagation();
1956
1990
  const n = a.currentTarget.parentElement?.getBoundingClientRect();
1957
- n && (Za(!0), We.current = {
1991
+ n && (Qa(!0), We.current = {
1958
1992
  x: a.clientX,
1959
1993
  y: a.clientY,
1960
1994
  bottom: dt.bottom,
@@ -1963,37 +1997,37 @@ const Vo = [
1963
1997
  height: n.height
1964
1998
  });
1965
1999
  };
1966
- se(() => {
2000
+ oe(() => {
1967
2001
  if (!St) return;
1968
- const a = (i) => {
2002
+ const a = (d) => {
1969
2003
  if (St && We.current) {
1970
- const p = i.clientX - We.current.x, v = i.clientY - We.current.y;
1971
- let w = We.current.bottom - v, O = We.current.right - p;
2004
+ const u = d.clientX - We.current.x, v = d.clientY - We.current.y;
2005
+ let w = We.current.bottom - v, O = We.current.right - u;
1972
2006
  const j = 10;
1973
2007
  w = Math.max(j, Math.min(window.innerHeight - We.current.height - j, w)), O = Math.max(j, Math.min(window.innerWidth - We.current.width - j, O)), Qr({ bottom: w, right: O });
1974
2008
  }
1975
2009
  }, n = () => {
1976
- St && (Za(!1), localStorage.setItem("vg-bar-pos", JSON.stringify(dt)), We.current = null);
2010
+ St && (Qa(!1), localStorage.setItem("vg-bar-pos", JSON.stringify(dt)), We.current = null);
1977
2011
  };
1978
2012
  return window.addEventListener("mousemove", a), window.addEventListener("mouseup", n), () => {
1979
2013
  window.removeEventListener("mousemove", a), window.removeEventListener("mouseup", n);
1980
2014
  };
1981
2015
  }, [St, dt]);
1982
- const [lt, Bt] = C(null), [Qa, er] = C(""), [pt, ua] = C([]), [tt, jt] = C([]), [Ue, Ht] = C([]), [Ut, tr] = C(!1);
1983
- se(() => {
2016
+ const [lt, Bt] = C(null), [er, tr] = C(""), [pt, fa] = C([]), [tt, jt] = C([]), [Ue, Ht] = C([]), [Ut, ar] = C(!1);
2017
+ oe(() => {
1984
2018
  lt && Ht(L);
1985
2019
  }, [L, lt]);
1986
- const [Xo, Ko] = C({}), fa = ee(null), ut = ee(null), ga = ee(null), qt = ee(!1), ar = _e(() => {
2020
+ const [Qs, en] = C({}), ga = ee(null), ut = ee(null), ma = ee(null), qt = ee(!1), rr = _e(() => {
1987
2021
  typeof window > "u" || qt.current || (ut.current && cancelAnimationFrame(ut.current), ut.current = requestAnimationFrame(() => {
1988
- ut.current = null, qt.current = !0, ga.current;
1989
- const a = Ya.current, n = Array.isArray(a) ? a : [], i = new Set(n.map((_) => _._id));
2022
+ ut.current = null, qt.current = !0, ma.current;
2023
+ const a = Xa.current, n = Array.isArray(a) ? a : [], d = new Set(n.map((_) => _._id));
1990
2024
  document.querySelectorAll(`[${Te}]`).forEach((_) => {
1991
2025
  const fe = _.getAttribute(Te);
1992
- fe && !i.has(fe) && _.removeAttribute(Te);
2026
+ fe && !d.has(fe) && _.removeAttribute(Te);
1993
2027
  });
1994
- const p = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], [class*="modal" i], [class*="dialog" i], .fixed, .modal-backdrop, .fixed.inset-0')), v = p.find((_) => oa(_) && De(_));
2028
+ const u = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], [class*="modal" i], [class*="dialog" i], .fixed, .modal-backdrop, .fixed.inset-0')), v = u.find((_) => na(_) && De(_));
1995
2029
  let w = !!v;
1996
- console.log("[ViewGate Debug] Modal Detection:", { potentialModals: p.length, activeModal: v, isAnyModalOpen: w });
2030
+ console.log("[ViewGate Debug] Modal Detection:", { potentialModals: u.length, activeModal: v, isAnyModalOpen: w });
1997
2031
  const O = /* @__PURE__ */ new Map();
1998
2032
  n.forEach((_) => {
1999
2033
  if (!_ || !_.reference) return;
@@ -2018,7 +2052,7 @@ const Vo = [
2018
2052
  return;
2019
2053
  }
2020
2054
  const fe = !!_.reference.metadata?.isModal;
2021
- let te = Vr(_.reference, _._id);
2055
+ let te = Gr(_.reference, _._id);
2022
2056
  if (console.log(`[ViewGate Debug] Processing Pin [${_._id}]:`, { isModalTarget: fe, targetEl: te, isVisible: te ? De(te) : !1 }), !te || !De(te)) return;
2023
2057
  let Re = !1;
2024
2058
  if (fe ? (Re = !0, w = !0, console.log(`[ViewGate Debug] Pin [${_._id}] Modal Open Check: isModalTarget=true`)) : (Re = !w, console.log(`[ViewGate Debug] Pin [${_._id}] No Modal Check: !isAnyModalOpen=${Re}`)), !Re) return;
@@ -2049,96 +2083,96 @@ const Vo = [
2049
2083
  })(O), Zr(j), qt.current = !1;
2050
2084
  }));
2051
2085
  }, [Ge]);
2052
- se(() => {
2086
+ oe(() => {
2053
2087
  if (kt) {
2054
2088
  const a = Array.isArray(kt) ? kt : kt?.data || [];
2055
2089
  if (Array.isArray(a)) {
2056
- const n = a.reduce((i, p) => i.find((w) => w._id === p._id) ? i : i.concat([p]), []);
2090
+ const n = a.reduce((d, u) => d.find((w) => w._id === u._id) ? d : d.concat([u]), []);
2057
2091
  Ke(n);
2058
2092
  }
2059
2093
  } else Qe || Ke([]);
2060
- }, [kt, Qe]), se(() => {
2094
+ }, [kt, Qe]), oe(() => {
2061
2095
  ue(Wt || null);
2062
- }, [Wt]), se(() => {
2096
+ }, [Wt]), oe(() => {
2063
2097
  me && ae.length === 0 && !Qe && Ie(!1);
2064
- }, [me, ae.length, Qe]), se(() => {
2098
+ }, [me, ae.length, Qe]), oe(() => {
2065
2099
  let a = null;
2066
2100
  const n = () => {
2067
- qt.current || ar();
2068
- }, i = new MutationObserver((w) => {
2101
+ qt.current || rr();
2102
+ }, d = new MutationObserver((w) => {
2069
2103
  w.some(
2070
2104
  (j) => j.type !== "attributes" || j.attributeName !== Te && !j.target.parentElement?.closest("#viewgate-shadow-host")
2071
2105
  ) && (a && clearTimeout(a), a = setTimeout(() => {
2072
2106
  n(), setTimeout(n, 350);
2073
2107
  }, 32));
2074
2108
  });
2075
- ga.current = i;
2076
- const p = new ResizeObserver(() => n()), v = () => n();
2077
- return n(), i.observe(document.documentElement, {
2109
+ ma.current = d;
2110
+ const u = new ResizeObserver(() => n()), v = () => n();
2111
+ return n(), d.observe(document.documentElement, {
2078
2112
  childList: !0,
2079
2113
  subtree: !0,
2080
2114
  attributes: !0
2081
- }), p.observe(document.documentElement), window.addEventListener("scroll", v, { capture: !0, passive: !0 }), () => {
2082
- a && clearTimeout(a), i.disconnect(), p.disconnect(), window.removeEventListener("scroll", v, !0), ut.current && cancelAnimationFrame(ut.current), ga.current = null;
2115
+ }), u.observe(document.documentElement), window.addEventListener("scroll", v, { capture: !0, passive: !0 }), () => {
2116
+ a && clearTimeout(a), d.disconnect(), u.disconnect(), window.removeEventListener("scroll", v, !0), ut.current && cancelAnimationFrame(ut.current), ma.current = null;
2083
2117
  };
2084
- }, [h, ae, ar, me, Y, k]);
2085
- const ma = _e((a) => {
2118
+ }, [h, ae, rr, me, Y, S]);
2119
+ const ha = _e((a) => {
2086
2120
  let n = a;
2087
2121
  for (; n && n !== document.body; ) {
2088
- if (oa(n)) return n;
2122
+ if (na(n)) return n;
2089
2123
  n = n.parentElement;
2090
2124
  }
2091
2125
  return null;
2092
2126
  }, []);
2093
- se(() => {
2127
+ oe(() => {
2094
2128
  const a = (n) => {
2095
- const i = n.target;
2096
- i && (ma(i) || (Xa.current = i));
2129
+ const d = n.target;
2130
+ d && (ha(d) || (Ka.current = d));
2097
2131
  };
2098
2132
  return window.addEventListener("mousedown", a, !0), () => window.removeEventListener("mousedown", a, !0);
2099
- }, [ma]), se(() => {
2100
- fa.current = document.getElementById("viewgate-shadow-host");
2133
+ }, [ha]), oe(() => {
2134
+ ga.current = document.getElementById("viewgate-shadow-host");
2101
2135
  }, []);
2102
- const ha = _e((a) => {
2136
+ const xa = _e((a) => {
2103
2137
  if (!h || N) return;
2104
- const n = Er(a.clientX, a.clientY);
2105
- if (!n || fa.current?.contains(n) || n.closest(".vg-no-capture")) {
2138
+ const n = Vr(a.clientX, a.clientY);
2139
+ if (!n || ga.current?.contains(n) || n.closest(".vg-no-capture")) {
2106
2140
  U(null);
2107
2141
  return;
2108
2142
  }
2109
- const i = n.getBoundingClientRect();
2143
+ const d = n.getBoundingClientRect();
2110
2144
  U({
2111
2145
  tag: n.tagName.toLowerCase(),
2112
2146
  source: n.getAttribute("data-source-path") || "unknown:0",
2113
- rect: i,
2147
+ rect: d,
2114
2148
  element: n,
2115
2149
  previewText: (n.innerText || "").slice(0, 100) || (n.getAttribute("placeholder") || "").slice(0, 100) || n.tagName.toLowerCase(),
2116
2150
  semanticReference: {
2117
- ...Ur(n, Xa.current),
2151
+ ...Ur(n, Ka.current),
2118
2152
  normalizedOffset: {
2119
- x: (a.clientX - i.left) / i.width,
2120
- y: (a.clientY - i.top) / i.height
2153
+ x: (a.clientX - d.left) / d.width,
2154
+ y: (a.clientY - d.top) / d.height
2121
2155
  }
2122
2156
  }
2123
2157
  });
2124
- }, [h, N]), xa = _e(async (a) => {
2158
+ }, [h, N]), va = _e(async (a) => {
2125
2159
  if (!h || N) return;
2126
- const n = Er(a.clientX, a.clientY);
2127
- if (!(!n || fa.current?.contains(n) || n.closest(".vg-no-capture")) && A) {
2128
- const i = A;
2129
- let p = i.element;
2130
- ma(p);
2131
- let v = i.semanticReference, w = i.tag;
2160
+ const n = Vr(a.clientX, a.clientY);
2161
+ if (!(!n || ga.current?.contains(n) || n.closest(".vg-no-capture")) && A) {
2162
+ const d = A;
2163
+ let u = d.element;
2164
+ ha(u);
2165
+ let v = d.semanticReference, w = d.tag;
2132
2166
  a.preventDefault(), a.stopPropagation(), He(!0);
2133
2167
  try {
2134
2168
  await new Promise((_) => requestAnimationFrame(_)), await new Promise((_) => setTimeout(_, 150));
2135
- const O = p.getBoundingClientRect(), j = await kr(p, {
2169
+ const O = u.getBoundingClientRect(), j = await Sr(u, {
2136
2170
  scale: 3,
2137
2171
  padding: 48,
2138
2172
  backgroundColor: "#000000"
2139
2173
  }), Q = {
2140
- ...i,
2141
- element: p,
2174
+ ...d,
2175
+ element: u,
2142
2176
  rect: O,
2143
2177
  semanticReference: v,
2144
2178
  tag: w,
@@ -2146,84 +2180,84 @@ const Vo = [
2146
2180
  };
2147
2181
  X(Q);
2148
2182
  } catch (O) {
2149
- console.error("[ViewGate] Capture failed:", O), X(i);
2183
+ console.error("[ViewGate] Capture failed:", O), X(d);
2150
2184
  } finally {
2151
2185
  He(!1), U(null);
2152
2186
  }
2153
2187
  }
2154
2188
  }, [h, A, N]);
2155
- se(() => {
2189
+ oe(() => {
2156
2190
  const a = (n) => {
2157
- const p = (() => {
2191
+ const u = (() => {
2158
2192
  let O = document.activeElement;
2159
2193
  for (; O && O.shadowRoot && O.shadowRoot.activeElement; )
2160
2194
  O = O.shadowRoot.activeElement;
2161
2195
  return O;
2162
2196
  })();
2163
- if (["input", "textarea"].includes((p?.tagName || "").toLowerCase()) || p?.isContentEditable) return;
2197
+ if (["input", "textarea"].includes((u?.tagName || "").toLowerCase()) || u?.isContentEditable) return;
2164
2198
  const w = n.key.toLowerCase();
2165
2199
  if (!Z) {
2166
- (w === "c" || w === "v") && s(r === "es" ? "Debes iniciar sesión en el Dashboard para usar ViewGate" : "Log in to the Dashboard to use ViewGate", "warning");
2200
+ (w === "c" || w === "v") && o(r === "es" ? "Debes iniciar sesión en el Dashboard para usar ViewGate" : "Log in to the Dashboard to use ViewGate", "warning");
2167
2201
  return;
2168
2202
  }
2169
2203
  if (n.key === "Escape") {
2170
- N ? X(null) : me ? Ie(!1) : h && S(!1);
2204
+ N ? X(null) : me ? Ie(!1) : h && k(!1);
2171
2205
  return;
2172
2206
  }
2173
2207
  if (w === "c" && !n.ctrlKey && !n.metaKey && !N && !me) {
2174
2208
  if (!Lt) {
2175
- s(r === "es" ? "Acceso denegado a este proyecto" : "No project access", "error");
2209
+ o(r === "es" ? "Acceso denegado a este proyecto" : "No project access", "error");
2176
2210
  return;
2177
2211
  }
2178
2212
  if (yt === "client") {
2179
- s(r === "es" ? "Acceso de solo lectura (Backlog)" : "Read-only access (Backlog)", "warning");
2213
+ o(r === "es" ? "Acceso de solo lectura (Backlog)" : "Read-only access (Backlog)", "warning");
2180
2214
  return;
2181
2215
  }
2182
2216
  if (Dt && !h) {
2183
- if (Ua?.status === 403 || !Lt) {
2184
- const Q = Ua?.message || (r === "es" ? "Acceso denegado a este proyecto" : "No project access");
2185
- s(Q, "error");
2217
+ if (qa?.status === 403 || !Lt) {
2218
+ const Q = qa?.message || (r === "es" ? "Acceso denegado a este proyecto" : "No project access");
2219
+ o(Q, "error");
2186
2220
  return;
2187
2221
  }
2188
- s(r === "es" ? "Verificando información del sprint..." : "Checking sprint info...", "warning");
2222
+ o(r === "es" ? "Verificando información del sprint..." : "Checking sprint info...", "warning");
2189
2223
  return;
2190
2224
  }
2191
2225
  if (!(Ge && Ge.status !== "closed") && !g && !h) {
2192
- s(r === "es" ? "No hay un sprint activo. No se pueden generar comentarios." : "No active sprint found. Cannot generate comments.", "error");
2226
+ o(r === "es" ? "No hay un sprint activo. No se pueden generar comentarios." : "No active sprint found. Cannot generate comments.", "error");
2193
2227
  return;
2194
2228
  }
2195
- S((j) => !j);
2229
+ k((j) => !j);
2196
2230
  }
2197
2231
  if (w === "v" && !N) {
2198
2232
  if (!Lt) {
2199
- s(r === "es" ? "Acceso denegado a este proyecto" : "No project access", "error");
2233
+ o(r === "es" ? "Acceso denegado a este proyecto" : "No project access", "error");
2200
2234
  return;
2201
2235
  }
2202
- (ae.length > 0 || me) && (Ie((O) => !O), me || S(!1));
2236
+ (ae.length > 0 || me) && (Ie((O) => !O), me || k(!1));
2203
2237
  }
2204
2238
  };
2205
- return h && !N ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", a), window.addEventListener("mousemove", ha, !0), window.addEventListener("click", xa, !0), () => {
2206
- document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", a), window.removeEventListener("mousemove", ha, !0), window.removeEventListener("click", xa, !0);
2239
+ return h && !N ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", a), window.addEventListener("mousemove", xa, !0), window.addEventListener("click", va, !0), () => {
2240
+ document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", a), window.removeEventListener("mousemove", xa, !0), window.removeEventListener("click", va, !0);
2207
2241
  };
2208
- }, [h, N, me, ae, ha, xa, Z, yt]);
2209
- const ts = async () => {
2242
+ }, [h, N, me, ae, xa, va, Z, yt]);
2243
+ const to = async () => {
2210
2244
  if (!N || !re.trim()) return;
2211
2245
  if (M.includes("backend") && L.length === 0) {
2212
- s(r === "es" ? "Selecciona al menos un endpoint de backend" : "Select at least one backend endpoint", "error");
2246
+ o(r === "es" ? "Selecciona al menos un endpoint de backend" : "Select at least one backend endpoint", "error");
2213
2247
  return;
2214
2248
  }
2215
2249
  if (M.includes("ux") && B.some((O) => !O.name.trim() || !O.link.trim())) {
2216
- s(r === "es" ? "Todos los diseños de Figma deben tener nombre y link" : "All Figma designs must have a name and link", "error");
2250
+ o(r === "es" ? "Todos los diseños de Figma deben tener nombre y link" : "All Figma designs must have a name and link", "error");
2217
2251
  return;
2218
2252
  }
2219
2253
  if (!ie) {
2220
- s(r === "es" ? "Selecciona un usuario para comentar" : "Please select a user to comment", "error");
2254
+ o(r === "es" ? "Selecciona un usuario para comentar" : "Please select a user to comment", "error");
2221
2255
  return;
2222
2256
  }
2223
2257
  le(!0);
2224
- const { semanticReference: a } = N, [n, i] = (a.source || "").split(":"), v = {
2258
+ const { semanticReference: a } = N, [n, d] = (a.source || "").split(":"), v = {
2225
2259
  filePath: n,
2226
- line: parseInt(i || "0"),
2260
+ line: parseInt(d || "0"),
2227
2261
  url: window.location.href,
2228
2262
  title: re.length > 50 ? re.substring(0, 50) + "..." : re,
2229
2263
  message: re,
@@ -2251,11 +2285,11 @@ const Vo = [
2251
2285
  avatar: ie.avatar
2252
2286
  });
2253
2287
  try {
2254
- const w = await fetch(`${d}/api/annotations`, {
2288
+ const w = await fetch(`${c}/api/annotations`, {
2255
2289
  method: "POST",
2256
2290
  headers: {
2257
2291
  "Content-Type": "application/json",
2258
- "x-api-key": c,
2292
+ "x-api-key": i,
2259
2293
  Authorization: Z ? `Bearer ${Z}` : ""
2260
2294
  },
2261
2295
  body: JSON.stringify(v)
@@ -2264,32 +2298,32 @@ const Vo = [
2264
2298
  const O = await w.json().catch(() => ({}));
2265
2299
  throw new Error(O.message || O.error || "Backend failed");
2266
2300
  }
2267
- s(o.success, "success"), X(null), D(""), pe([]), ne([{ name: o.figmaPrimaryDesign, link: "" }]), je([]), S(!1), $t();
2301
+ o(s.success, "success"), X(null), D(""), pe([]), ne([{ name: s.figmaPrimaryDesign, link: "" }]), je([]), k(!1), $t();
2268
2302
  } catch (w) {
2269
2303
  console.error(w);
2270
- const O = w.message && w.message !== "Backend failed" ? w.message : o.error;
2271
- s(O, "error");
2304
+ const O = w.message && w.message !== "Backend failed" ? w.message : s.error;
2305
+ o(O, "error");
2272
2306
  } finally {
2273
2307
  le(!1);
2274
2308
  }
2275
- }, as = async (a) => {
2309
+ }, ao = async (a) => {
2276
2310
  He(!0);
2277
2311
  try {
2278
- const n = Vr(a.reference, a._id);
2312
+ const n = Gr(a.reference, a._id);
2279
2313
  if (!n) {
2280
- s(r === "es" ? "No se pudo encontrar el elemento original para la captura" : "Could not find the original element for capture", "error"), He(!1);
2314
+ o(r === "es" ? "No se pudo encontrar el elemento original para la captura" : "Could not find the original element for capture", "error"), He(!1);
2281
2315
  return;
2282
2316
  }
2283
2317
  n.scrollIntoView({ behavior: "smooth", block: "center" }), await new Promise((w) => setTimeout(w, 600));
2284
- const i = n.style.outline, p = n.style.transition;
2285
- n.style.transition = "outline 0.3s ease", n.style.outline = "4px solid #10b981", n.style.outlineOffset = "4px", await new Promise((w) => setTimeout(w, 400)), n.style.outline = i, n.style.transition = p, await new Promise((w) => requestAnimationFrame(w)), await new Promise((w) => setTimeout(w, 50));
2286
- const v = await kr(n, {
2318
+ const d = n.style.outline, u = n.style.transition;
2319
+ n.style.transition = "outline 0.3s ease", n.style.outline = "4px solid #10b981", n.style.outlineOffset = "4px", await new Promise((w) => setTimeout(w, 400)), n.style.outline = d, n.style.transition = u, await new Promise((w) => requestAnimationFrame(w)), await new Promise((w) => setTimeout(w, 50));
2320
+ const v = await Sr(n, {
2287
2321
  scale: 3,
2288
2322
  padding: 48,
2289
2323
  backgroundColor: "#000000"
2290
2324
  });
2291
2325
  if (v) {
2292
- const w = await fetch(`${d}/api/tickets/${a._id}`, {
2326
+ const w = await fetch(`${c}/api/tickets/${a._id}`, {
2293
2327
  method: "PATCH",
2294
2328
  headers: {
2295
2329
  "Content-Type": "application/json",
@@ -2304,11 +2338,11 @@ const Vo = [
2304
2338
  const O = await w.json().catch(() => ({}));
2305
2339
  throw new Error(O.message || O.error || "API failed");
2306
2340
  }
2307
- s(r === "es" ? "¡Ticket resuelto con éxito!" : "Ticket resolved successfully!", "success"), $t();
2341
+ o(r === "es" ? "¡Ticket resuelto con éxito!" : "Ticket resolved successfully!", "success"), $t();
2308
2342
  }
2309
- n.style.outline = i, n.style.transition = p;
2343
+ n.style.outline = d, n.style.transition = u;
2310
2344
  } catch (n) {
2311
- console.error("[ViewGate] Resolve with evidence failed:", n), s(r === "es" ? `Error: ${n.message}` : `Error: ${n.message}`, "error");
2345
+ console.error("[ViewGate] Resolve with evidence failed:", n), o(r === "es" ? `Error: ${n.message}` : `Error: ${n.message}`, "error");
2312
2346
  } finally {
2313
2347
  He(!1);
2314
2348
  }
@@ -2321,7 +2355,7 @@ const Vo = [
2321
2355
  position: "fixed",
2322
2356
  bottom: `${dt.bottom}px`,
2323
2357
  right: `${dt.right}px`,
2324
- zIndex: Sr,
2358
+ zIndex: jr,
2325
2359
  display: "flex",
2326
2360
  alignItems: "center",
2327
2361
  gap: "8px",
@@ -2332,7 +2366,7 @@ const Vo = [
2332
2366
  /* @__PURE__ */ t.jsx(
2333
2367
  "div",
2334
2368
  {
2335
- onMouseDown: es,
2369
+ onMouseDown: eo,
2336
2370
  style: {
2337
2371
  width: "24px",
2338
2372
  height: "40px",
@@ -2357,7 +2391,7 @@ const Vo = [
2357
2391
  a.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", a.currentTarget.style.color = "#1e293b";
2358
2392
  },
2359
2393
  className: "vg-animate-slide-up",
2360
- children: /* @__PURE__ */ t.jsx(io, { "data-vg-id": "3dbe6a11", "data-source-path": "/src/components/ViewGateOverlay.tsx:2064", size: 16 })
2394
+ children: /* @__PURE__ */ t.jsx(cs, { "data-vg-id": "3dbe6a11", "data-source-path": "/src/components/ViewGateOverlay.tsx:2064", size: 16 })
2361
2395
  }
2362
2396
  ),
2363
2397
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "ef883fff", "data-source-path": "/src/components/ViewGateOverlay.tsx:2067", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
@@ -2367,14 +2401,14 @@ const Vo = [
2367
2401
  {
2368
2402
  onClick: () => {
2369
2403
  if (Dt && !h) {
2370
- s(r === "es" ? "Sincronizando con el servidor..." : "Syncing with server...", "warning");
2404
+ o(r === "es" ? "Sincronizando con el servidor..." : "Syncing with server...", "warning");
2371
2405
  return;
2372
2406
  }
2373
2407
  if (!Ge && !g && !h) {
2374
- s(r === "es" ? "No hay un sprint activo. No se pueden generar comentarios." : "No active sprint found. Cannot generate comments.", "error");
2408
+ o(r === "es" ? "No hay un sprint activo. No se pueden generar comentarios." : "No active sprint found. Cannot generate comments.", "error");
2375
2409
  return;
2376
2410
  }
2377
- S(!h);
2411
+ k(!h);
2378
2412
  },
2379
2413
  className: "vg-button-primary vg-animate-pop",
2380
2414
  style: {
@@ -2386,7 +2420,7 @@ const Vo = [
2386
2420
  title: !Ge && !g && !h ? r === "es" ? "Requiere sprint activo" : "Requires active sprint" : "",
2387
2421
  children: /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "ef884001", "data-source-path": "/src/components/ViewGateOverlay.tsx:2106", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
2388
2422
  Dt && !h ? /* @__PURE__ */ t.jsx(ta, { "data-vg-id": "edca6150", "data-source-path": "/src/components/ViewGateOverlay.tsx:2108", size: 20, className: "vg-animate-spin" }) : h ? /* @__PURE__ */ t.jsx(Rt, { "data-vg-id": "ff5f5cf", "data-source-path": "/src/components/ViewGateOverlay.tsx:2110", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ t.jsx(aa, { "data-vg-id": "10c621c4", "data-source-path": "/src/components/ViewGateOverlay.tsx:2112", size: 20, className: "vg-animate-pop" }),
2389
- /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76c43", "data-source-path": "/src/components/ViewGateOverlay.tsx:2114", children: Dt && !h ? r === "es" ? "Cargando..." : "Loading..." : h ? o.exitMode : o.enterMode })
2423
+ /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76c43", "data-source-path": "/src/components/ViewGateOverlay.tsx:2114", children: Dt && !h ? r === "es" ? "Cargando..." : "Loading..." : h ? s.exitMode : s.enterMode })
2390
2424
  ] })
2391
2425
  }
2392
2426
  ),
@@ -2394,13 +2428,13 @@ const Vo = [
2394
2428
  "button",
2395
2429
  {
2396
2430
  onClick: () => {
2397
- Ie(!me), S(!1), X(null);
2431
+ Ie(!me), k(!1), X(null);
2398
2432
  },
2399
2433
  className: "vg-button-ghost vg-animate-pop",
2400
2434
  style: { animationDelay: "0.1s" },
2401
2435
  children: [
2402
- /* @__PURE__ */ t.jsx(so, { "data-vg-id": "cd7341f9", "data-source-path": "/src/components/ViewGateOverlay.tsx:2132", size: 20 }),
2403
- /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76c45", "data-source-path": "/src/components/ViewGateOverlay.tsx:2133", children: o.viewComments })
2436
+ /* @__PURE__ */ t.jsx(ss, { "data-vg-id": "cd7341f9", "data-source-path": "/src/components/ViewGateOverlay.tsx:2132", size: 20 }),
2437
+ /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76c45", "data-source-path": "/src/components/ViewGateOverlay.tsx:2133", children: s.viewComments })
2404
2438
  ]
2405
2439
  }
2406
2440
  )
@@ -2417,7 +2451,7 @@ const Vo = [
2417
2451
  "button",
2418
2452
  {
2419
2453
  onClick: () => {
2420
- S(!0), X({ rect: new DOMRect() });
2454
+ k(!0), X({ rect: new DOMRect() });
2421
2455
  },
2422
2456
  className: "vg-button-primary vg-animate-pop",
2423
2457
  style: {
@@ -2428,7 +2462,7 @@ const Vo = [
2428
2462
  gap: "10px"
2429
2463
  },
2430
2464
  children: [
2431
- /* @__PURE__ */ t.jsx(wr, { "data-vg-id": "422a5ea5", "data-source-path": "/src/components/ViewGateOverlay.tsx:2153", size: 18 }),
2465
+ /* @__PURE__ */ t.jsx(kr, { "data-vg-id": "422a5ea5", "data-source-path": "/src/components/ViewGateOverlay.tsx:2153", size: 18 }),
2432
2466
  /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76c47", "data-source-path": "/src/components/ViewGateOverlay.tsx:2154", style: { fontWeight: 700 }, children: r === "es" ? "Desbloquear con Clave" : "Unlock with Key" })
2433
2467
  ]
2434
2468
  }
@@ -2438,10 +2472,10 @@ const Vo = [
2438
2472
  {
2439
2473
  onClick: (a) => {
2440
2474
  a.stopPropagation(), W({
2441
- title: o.exitConfirmTitle || "Close ViewGate?",
2442
- message: o.exitConfirmMessage || "Are you sure you want to close ViewGate?",
2475
+ title: s.exitConfirmTitle || "Close ViewGate?",
2476
+ message: s.exitConfirmMessage || "Are you sure you want to close ViewGate?",
2443
2477
  type: "danger",
2444
- onConfirm: () => u()
2478
+ onConfirm: () => p()
2445
2479
  });
2446
2480
  },
2447
2481
  className: "vg-button-ghost vg-animate-pop",
@@ -2465,7 +2499,7 @@ const Vo = [
2465
2499
  onMouseLeave: (a) => {
2466
2500
  a.currentTarget.style.color = "#64748b", a.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.8)", a.currentTarget.style.borderColor = "rgba(0,0,0,0.05)", a.currentTarget.style.transform = "scale(1)";
2467
2501
  },
2468
- title: o.close || "Cerrar ViewGate",
2502
+ title: s.close || "Cerrar ViewGate",
2469
2503
  children: /* @__PURE__ */ t.jsx(Rt, { "data-vg-id": "ff5f5d6", "data-source-path": "/src/components/ViewGateOverlay.tsx:2198", size: 20, strokeWidth: 2.5 })
2470
2504
  }
2471
2505
  )
@@ -2484,7 +2518,7 @@ const Vo = [
2484
2518
  display: "flex",
2485
2519
  alignItems: "center",
2486
2520
  justifyContent: "center",
2487
- zIndex: Sr + 1,
2521
+ zIndex: jr + 1,
2488
2522
  cursor: "wait"
2489
2523
  }, children: /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fbf7f", "data-source-path": "/src/components/ViewGateOverlay.tsx:2213", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
2490
2524
  /* @__PURE__ */ t.jsx("div", { "data-vg-id": "17fbf95", "data-source-path": "/src/components/ViewGateOverlay.tsx:2214", className: "vg-spinner" }),
@@ -2504,7 +2538,7 @@ const Vo = [
2504
2538
  ${A.rect.left}px ${A.rect.bottom}px,
2505
2539
  ${A.rect.left}px ${A.rect.top}px
2506
2540
  )` : "none",
2507
- zIndex: zo
2541
+ zIndex: Ws
2508
2542
  }
2509
2543
  }
2510
2544
  ),
@@ -2517,7 +2551,7 @@ const Vo = [
2517
2551
  left: A.rect.left - 4,
2518
2552
  width: A.rect.width + 8,
2519
2553
  height: A.rect.height + 8,
2520
- zIndex: Po
2554
+ zIndex: Ds
2521
2555
  },
2522
2556
  children: /* @__PURE__ */ t.jsxs(
2523
2557
  "div",
@@ -2528,9 +2562,9 @@ const Vo = [
2528
2562
  ...A.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
2529
2563
  },
2530
2564
  children: [
2531
- /* @__PURE__ */ t.jsx(xo, { "data-vg-id": "f840c8ce", "data-source-path": "/src/components/ViewGateOverlay.tsx:2267", size: 16 }),
2565
+ /* @__PURE__ */ t.jsx(xs, { "data-vg-id": "f840c8ce", "data-source-path": "/src/components/ViewGateOverlay.tsx:2267", size: 16 }),
2532
2566
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fbf98", "data-source-path": "/src/components/ViewGateOverlay.tsx:2268", style: { display: "flex", flexDirection: "column" }, children: [
2533
- /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76c64", "data-source-path": "/src/components/ViewGateOverlay.tsx:2269", style: { fontWeight: 700 }, children: o.selectToComment }),
2567
+ /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76c64", "data-source-path": "/src/components/ViewGateOverlay.tsx:2269", style: { fontWeight: 700 }, children: s.selectToComment }),
2534
2568
  /* @__PURE__ */ t.jsxs("span", { "data-vg-id": "52d76c65", "data-source-path": "/src/components/ViewGateOverlay.tsx:2270", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
2535
2569
  Math.round(A.rect.width),
2536
2570
  " × ",
@@ -2576,7 +2610,7 @@ const Vo = [
2576
2610
  color: "white",
2577
2611
  boxShadow: "0 8px 20px -4px var(--vg-primary)",
2578
2612
  animation: "pulse 2s infinite"
2579
- }, children: /* @__PURE__ */ t.jsx(wr, { "data-vg-id": "422a5ede", "data-source-path": "/src/components/ViewGateOverlay.tsx:2301", size: 32 }) }),
2613
+ }, children: /* @__PURE__ */ t.jsx(kr, { "data-vg-id": "422a5ede", "data-source-path": "/src/components/ViewGateOverlay.tsx:2301", size: 32 }) }),
2580
2614
  /* @__PURE__ */ t.jsx("h2", { "data-vg-id": "efa6bb80", "data-source-path": "/src/components/ViewGateOverlay.tsx:2303", style: { margin: "0 0 12px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a", letterSpacing: "-0.025em" }, children: r === "es" ? "ViewGate Protegido" : "ViewGate Protected" }),
2581
2615
  /* @__PURE__ */ t.jsx("p", { "data-vg-id": "1000def7", "data-source-path": "/src/components/ViewGateOverlay.tsx:2306", style: { margin: 0, color: "#64748b", fontSize: "15px", lineHeight: 1.6 }, children: r === "es" ? "Ingresa tu Clave de Acceso Semanal para continuar." : "Enter your project Weekly Access Key to continue." })
2582
2616
  ] }),
@@ -2587,7 +2621,7 @@ const Vo = [
2587
2621
  autoFocus: !0,
2588
2622
  type: "password",
2589
2623
  value: Ze,
2590
- onChange: (a) => Wa(a.target.value),
2624
+ onChange: (a) => Da(a.target.value),
2591
2625
  placeholder: r === "es" ? "Pega tu clave aquí..." : "Paste your key here...",
2592
2626
  style: {
2593
2627
  width: "100%",
@@ -2612,7 +2646,7 @@ const Vo = [
2612
2646
  "button",
2613
2647
  {
2614
2648
  type: "submit",
2615
- disabled: ca || !Ze.trim(),
2649
+ disabled: da || !Ze.trim(),
2616
2650
  className: "vg-button-primary",
2617
2651
  style: {
2618
2652
  width: "100%",
@@ -2623,11 +2657,11 @@ const Vo = [
2623
2657
  gap: "12px",
2624
2658
  fontSize: "16px",
2625
2659
  fontWeight: 700,
2626
- opacity: ca || !Ze.trim() ? 0.7 : 1,
2660
+ opacity: da || !Ze.trim() ? 0.7 : 1,
2627
2661
  boxShadow: "0 10px 15px -3px rgba(99, 102, 241, 0.3)"
2628
2662
  },
2629
2663
  children: [
2630
- ca ? /* @__PURE__ */ t.jsx(ta, { "data-vg-id": "cb81c82b", "data-source-path": "/src/components/ViewGateOverlay.tsx:2361", size: 20, className: "vg-animate-spin" }) : /* @__PURE__ */ t.jsx(lo, { "data-vg-id": "d69f974c", "data-source-path": "/src/components/ViewGateOverlay.tsx:2363", size: 20 }),
2664
+ da ? /* @__PURE__ */ t.jsx(ta, { "data-vg-id": "cb81c82b", "data-source-path": "/src/components/ViewGateOverlay.tsx:2361", size: 20, className: "vg-animate-spin" }) : /* @__PURE__ */ t.jsx(ls, { "data-vg-id": "d69f974c", "data-source-path": "/src/components/ViewGateOverlay.tsx:2363", size: 20 }),
2631
2665
  r === "es" ? "Desbloquear" : "Unlock Now"
2632
2666
  ]
2633
2667
  }
@@ -2638,7 +2672,7 @@ const Vo = [
2638
2672
  "button",
2639
2673
  {
2640
2674
  onClick: () => {
2641
- X(null), S(!1), Ie(!1);
2675
+ X(null), k(!1), Ie(!1);
2642
2676
  },
2643
2677
  className: "vg-button-ghost",
2644
2678
  style: { width: "100%", padding: "12px", fontSize: "14px", color: "#94a3b8" },
@@ -2708,8 +2742,8 @@ const Vo = [
2708
2742
  color: "white",
2709
2743
  boxShadow: "0 4px 12px rgba(99, 102, 241, 0.2)"
2710
2744
  }, children: /* @__PURE__ */ t.jsx(aa, { "data-vg-id": "10c62228", "data-source-path": "/src/components/ViewGateOverlay.tsx:2448", size: 20 }) }),
2711
- /* @__PURE__ */ t.jsx("h2", { "data-vg-id": "efa6bba7", "data-source-path": "/src/components/ViewGateOverlay.tsx:2450", style: { margin: "0 0 4px 0", fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: o.feedbackHeader }),
2712
- /* @__PURE__ */ t.jsx("p", { "data-vg-id": "1000df33", "data-source-path": "/src/components/ViewGateOverlay.tsx:2451", style: { margin: 0, color: "#64748b", fontSize: "14px" }, children: o.feedbackSubheader })
2745
+ /* @__PURE__ */ t.jsx("h2", { "data-vg-id": "efa6bba7", "data-source-path": "/src/components/ViewGateOverlay.tsx:2450", style: { margin: "0 0 4px 0", fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: s.feedbackHeader }),
2746
+ /* @__PURE__ */ t.jsx("p", { "data-vg-id": "1000df33", "data-source-path": "/src/components/ViewGateOverlay.tsx:2451", style: { margin: 0, color: "#64748b", fontSize: "14px" }, children: s.feedbackSubheader })
2713
2747
  ] }),
2714
2748
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fbff3", "data-source-path": "/src/components/ViewGateOverlay.tsx:2455", className: "vg-custom-scrollbar", style: {
2715
2749
  flex: 1,
@@ -2749,13 +2783,13 @@ const Vo = [
2749
2783
  value: re,
2750
2784
  onChange: (a) => D(a.target.value),
2751
2785
  rows: 4,
2752
- placeholder: o.placeholder,
2786
+ placeholder: s.placeholder,
2753
2787
  autoFocus: !0,
2754
2788
  style: { fontSize: "15px", padding: "16px", marginBottom: "24px", minHeight: "120px" }
2755
2789
  }
2756
2790
  ),
2757
2791
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fbff5", "data-source-path": "/src/components/ViewGateOverlay.tsx:2498", style: { marginBottom: "24px" }, children: [
2758
- /* @__PURE__ */ t.jsx("label", { "data-vg-id": "18bd4b33", "data-source-path": "/src/components/ViewGateOverlay.tsx:2499", style: { fontSize: "12px", fontWeight: 700, color: "#64748b", marginBottom: "8px", display: "block" }, children: o.priority }),
2792
+ /* @__PURE__ */ t.jsx("label", { "data-vg-id": "18bd4b33", "data-source-path": "/src/components/ViewGateOverlay.tsx:2499", style: { fontSize: "12px", fontWeight: 700, color: "#64748b", marginBottom: "8px", display: "block" }, children: s.priority }),
2759
2793
  /* @__PURE__ */ t.jsx("div", { "data-vg-id": "17fbff7", "data-source-path": "/src/components/ViewGateOverlay.tsx:2502", style: { display: "flex", gap: "8px" }, children: ["low", "medium", "high", "urgent"].map((a) => /* @__PURE__ */ t.jsx(
2760
2794
  "button",
2761
2795
  {
@@ -2774,24 +2808,24 @@ const Vo = [
2774
2808
  transition: "all 0.2s",
2775
2809
  textTransform: "uppercase"
2776
2810
  },
2777
- children: o[a]
2811
+ children: s[a]
2778
2812
  },
2779
2813
  a
2780
2814
  )) })
2781
2815
  ] }),
2782
2816
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fbff8", "data-source-path": "/src/components/ViewGateOverlay.tsx:2529", style: { marginBottom: "24px" }, children: [
2783
- /* @__PURE__ */ t.jsx("label", { "data-vg-id": "18bd4b36", "data-source-path": "/src/components/ViewGateOverlay.tsx:2530", style: { fontSize: "12px", fontWeight: 700, color: "#64748b", marginBottom: "8px", display: "block" }, children: o.focusAreas }),
2817
+ /* @__PURE__ */ t.jsx("label", { "data-vg-id": "18bd4b36", "data-source-path": "/src/components/ViewGateOverlay.tsx:2530", style: { fontSize: "12px", fontWeight: 700, color: "#64748b", marginBottom: "8px", display: "block" }, children: s.focusAreas }),
2784
2818
  /* @__PURE__ */ t.jsx("div", { "data-vg-id": "17fbffa", "data-source-path": "/src/components/ViewGateOverlay.tsx:2533", style: { display: "flex", gap: "8px", marginBottom: M.length > 0 ? "12px" : "0" }, children: [
2785
- { id: "frontend", label: o.frontend, icon: /* @__PURE__ */ t.jsx(Qt, { "data-vg-id": "377c172e", "data-source-path": "/src/components/ViewGateOverlay.tsx:2535", size: 14 }), color: "#10b981", bg: "#ecfdf5", border: "#d1fae5" },
2786
- { id: "backend", label: o.backend, icon: /* @__PURE__ */ t.jsx(Ye, { "data-vg-id": "7117e5d5", "data-source-path": "/src/components/ViewGateOverlay.tsx:2536", size: 14 }), color: "#6366f1", bg: "#eef2ff", border: "#e0e7ff" },
2787
- { id: "ux", label: o.ux, icon: /* @__PURE__ */ t.jsx(Gt, { "data-vg-id": "de42479a", "data-source-path": "/src/components/ViewGateOverlay.tsx:2537", size: 14 }), color: "#d946ef", bg: "#fdf4ff", border: "#f5d0fe" }
2819
+ { id: "frontend", label: s.frontend, icon: /* @__PURE__ */ t.jsx(Qt, { "data-vg-id": "377c172e", "data-source-path": "/src/components/ViewGateOverlay.tsx:2535", size: 14 }), color: "#10b981", bg: "#ecfdf5", border: "#d1fae5" },
2820
+ { id: "backend", label: s.backend, icon: /* @__PURE__ */ t.jsx(Ye, { "data-vg-id": "7117e5d5", "data-source-path": "/src/components/ViewGateOverlay.tsx:2536", size: 14 }), color: "#6366f1", bg: "#eef2ff", border: "#e0e7ff" },
2821
+ { id: "ux", label: s.ux, icon: /* @__PURE__ */ t.jsx(Gt, { "data-vg-id": "de42479a", "data-source-path": "/src/components/ViewGateOverlay.tsx:2537", size: 14 }), color: "#d946ef", bg: "#fdf4ff", border: "#f5d0fe" }
2788
2822
  ].filter((a) => a.id === "backend" ? Mt : a.id === "ux" ? R : !0).map((a) => {
2789
2823
  const n = M.includes(a.id);
2790
2824
  return /* @__PURE__ */ t.jsxs(
2791
2825
  "button",
2792
2826
  {
2793
2827
  onClick: () => {
2794
- n ? pe(M.filter((i) => i !== a.id)) : (pe([...M, a.id]), a.id === "backend" && la());
2828
+ n ? pe(M.filter((d) => d !== a.id)) : (pe([...M, a.id]), a.id === "backend" && pa());
2795
2829
  },
2796
2830
  style: {
2797
2831
  flex: 1,
@@ -2822,7 +2856,7 @@ const Vo = [
2822
2856
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fc014", "data-source-path": "/src/components/ViewGateOverlay.tsx:2585", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "8px" }, children: [
2823
2857
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fc015", "data-source-path": "/src/components/ViewGateOverlay.tsx:2586", style: { display: "flex", alignItems: "center", gap: "6px" }, children: [
2824
2858
  /* @__PURE__ */ t.jsx(ea, { "data-vg-id": "38884e11", "data-source-path": "/src/components/ViewGateOverlay.tsx:2587", size: 14, style: { color: "#d946ef" } }),
2825
- /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76ce2", "data-source-path": "/src/components/ViewGateOverlay.tsx:2588", style: { fontSize: "11px", fontWeight: 800, color: "#64748b", textTransform: "uppercase", letterSpacing: "0.05em" }, children: o.figmaLink })
2859
+ /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76ce2", "data-source-path": "/src/components/ViewGateOverlay.tsx:2588", style: { fontSize: "11px", fontWeight: 800, color: "#64748b", textTransform: "uppercase", letterSpacing: "0.05em" }, children: s.figmaLink })
2826
2860
  ] }),
2827
2861
  /* @__PURE__ */ t.jsxs(
2828
2862
  "button",
@@ -2847,9 +2881,9 @@ const Vo = [
2847
2881
  onMouseEnter: (a) => a.currentTarget.style.background = "rgba(217, 70, 239, 0.15)",
2848
2882
  onMouseLeave: (a) => a.currentTarget.style.background = "rgba(217, 70, 239, 0.1)",
2849
2883
  children: [
2850
- /* @__PURE__ */ t.jsx(bo, { "data-vg-id": "11a60c74", "data-source-path": "/src/components/ViewGateOverlay.tsx:2611", size: 10 }),
2884
+ /* @__PURE__ */ t.jsx(bs, { "data-vg-id": "11a60c74", "data-source-path": "/src/components/ViewGateOverlay.tsx:2611", size: 10 }),
2851
2885
  " ",
2852
- o.addLink
2886
+ s.addLink
2853
2887
  ]
2854
2888
  }
2855
2889
  )
@@ -2864,11 +2898,11 @@ const Vo = [
2864
2898
  type: "text",
2865
2899
  className: "vg-textarea",
2866
2900
  style: { padding: "8px 10px", fontSize: "11px", minHeight: "auto", borderRadius: "8px", border: "1px solid rgba(0,0,0,0.05)" },
2867
- placeholder: o.figmaNamePlaceholder,
2901
+ placeholder: s.figmaNamePlaceholder,
2868
2902
  value: a.name,
2869
- onChange: (i) => {
2870
- const p = [...B];
2871
- p[n] && (p[n].name = i.target.value, ne(p));
2903
+ onChange: (d) => {
2904
+ const u = [...B];
2905
+ u[n] && (u[n].name = d.target.value, ne(u));
2872
2906
  }
2873
2907
  }
2874
2908
  ),
@@ -2880,11 +2914,11 @@ const Vo = [
2880
2914
  type: "text",
2881
2915
  className: "vg-textarea",
2882
2916
  style: { padding: "8px 10px", fontSize: "11px", minHeight: "auto", borderRadius: "8px", border: "1px solid rgba(0,0,0,0.05)" },
2883
- placeholder: o.figmaLinkPlaceholder,
2917
+ placeholder: s.figmaLinkPlaceholder,
2884
2918
  value: a.link,
2885
- onChange: (i) => {
2886
- const p = [...B];
2887
- p[n] && (p[n].link = i.target.value, ne(p));
2919
+ onChange: (d) => {
2920
+ const u = [...B];
2921
+ u[n] && (u[n].link = d.target.value, ne(u));
2888
2922
  }
2889
2923
  }
2890
2924
  )
@@ -2894,7 +2928,7 @@ const Vo = [
2894
2928
  {
2895
2929
  "data-vg-id": "23e21f97",
2896
2930
  "data-source-path": "/src/components/ViewGateOverlay.tsx:2649",
2897
- onClick: () => ne(B.filter((i, p) => p !== n)),
2931
+ onClick: () => ne(B.filter((d, u) => u !== n)),
2898
2932
  style: {
2899
2933
  background: "rgba(239, 68, 68, 0.05)",
2900
2934
  border: "1px solid rgba(239, 68, 68, 0.1)",
@@ -2907,8 +2941,8 @@ const Vo = [
2907
2941
  alignItems: "center",
2908
2942
  justifyContent: "center"
2909
2943
  },
2910
- onMouseEnter: (i) => i.currentTarget.style.background = "rgba(239, 68, 68, 0.1)",
2911
- onMouseLeave: (i) => i.currentTarget.style.background = "rgba(239, 68, 68, 0.05)",
2944
+ onMouseEnter: (d) => d.currentTarget.style.background = "rgba(239, 68, 68, 0.1)",
2945
+ onMouseLeave: (d) => d.currentTarget.style.background = "rgba(239, 68, 68, 0.05)",
2912
2946
  children: /* @__PURE__ */ t.jsx(ra, { "data-vg-id": "e1375db0", "data-source-path": "/src/components/ViewGateOverlay.tsx:2666", size: 14 })
2913
2947
  }
2914
2948
  )
@@ -2918,7 +2952,7 @@ const Vo = [
2918
2952
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fc037", "data-source-path": "/src/components/ViewGateOverlay.tsx:2679", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "8px" }, children: [
2919
2953
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fc038", "data-source-path": "/src/components/ViewGateOverlay.tsx:2680", style: { display: "flex", alignItems: "center", gap: "6px" }, children: [
2920
2954
  /* @__PURE__ */ t.jsx(Ye, { "data-vg-id": "7117e5fd", "data-source-path": "/src/components/ViewGateOverlay.tsx:2681", size: 14, style: { color: "#6366f1" } }),
2921
- /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76d1a", "data-source-path": "/src/components/ViewGateOverlay.tsx:2682", style: { fontSize: "11px", fontWeight: 700, color: "#64748b" }, children: o.endpoint })
2955
+ /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76d1a", "data-source-path": "/src/components/ViewGateOverlay.tsx:2682", style: { fontSize: "11px", fontWeight: 700, color: "#64748b" }, children: s.endpoint })
2922
2956
  ] }),
2923
2957
  L.length > 0 && /* @__PURE__ */ t.jsxs("span", { "data-vg-id": "52d76d1b", "data-source-path": "/src/components/ViewGateOverlay.tsx:2685", style: { fontSize: "10px", background: "#eef2ff", color: "#6366f1", padding: "2px 8px", borderRadius: "12px", fontWeight: 700 }, children: [
2924
2958
  L.length,
@@ -2950,7 +2984,7 @@ const Vo = [
2950
2984
  },
2951
2985
  children: [
2952
2986
  /* @__PURE__ */ t.jsx("div", { "data-vg-id": "17fc052", "data-source-path": "/src/components/ViewGateOverlay.tsx:2710", style: { display: "flex", gap: "4px", overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" }, children: L.length > 0 ? L.slice(0, 2).map((a) => {
2953
- const n = a.split("|"), i = n.length > 1 ? n[0] : "", p = n.length > 1 ? n[1] : a;
2987
+ const n = a.split("|"), d = n.length > 1 ? n[0] : "", u = n.length > 1 ? n[1] : a;
2954
2988
  return /* @__PURE__ */ t.jsxs("span", { "data-vg-id": "52d76d1e", "data-source-path": "/src/components/ViewGateOverlay.tsx:2717", style: {
2955
2989
  background: "rgba(99, 102, 241, 0.1)",
2956
2990
  color: "#6366f1",
@@ -2959,14 +2993,14 @@ const Vo = [
2959
2993
  fontSize: "11px",
2960
2994
  fontWeight: 600
2961
2995
  }, children: [
2962
- i && /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76d1f", "data-source-path": "/src/components/ViewGateOverlay.tsx:2725", style: { opacity: 0.6, marginRight: "4px" }, children: i }),
2963
- (p || "").split("/").pop() || p
2996
+ d && /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76d1f", "data-source-path": "/src/components/ViewGateOverlay.tsx:2725", style: { opacity: 0.6, marginRight: "4px" }, children: d }),
2997
+ (u || "").split("/").pop() || u
2964
2998
  ] }, a);
2965
2999
  }).concat(L.length > 2 ? [/* @__PURE__ */ t.jsxs("span", { "data-vg-id": "52d76d20", "data-source-path": "/src/components/ViewGateOverlay.tsx:2729", children: [
2966
3000
  "+",
2967
3001
  L.length - 2
2968
- ] }, "more")] : []) : o.selectEndpoint }),
2969
- /* @__PURE__ */ t.jsx(yr, { "data-vg-id": "c71f9a0a", "data-source-path": "/src/components/ViewGateOverlay.tsx:2732", size: 14, style: { color: "#64748b" } })
3002
+ ] }, "more")] : []) : s.selectEndpoint }),
3003
+ /* @__PURE__ */ t.jsx(br, { "data-vg-id": "c71f9a0a", "data-source-path": "/src/components/ViewGateOverlay.tsx:2732", size: 14, style: { color: "#64748b" } })
2970
3004
  ]
2971
3005
  }
2972
3006
  )
@@ -2986,28 +3020,28 @@ const Vo = [
2986
3020
  "button",
2987
3021
  {
2988
3022
  onClick: () => {
2989
- oe || (X(null), S(!1));
3023
+ se || (X(null), k(!1));
2990
3024
  },
2991
3025
  className: "vg-button-ghost",
2992
- disabled: oe,
3026
+ disabled: se,
2993
3027
  style: { flex: 1, padding: "12px" },
2994
- children: o.cancel
3028
+ children: s.cancel
2995
3029
  }
2996
3030
  ),
2997
3031
  /* @__PURE__ */ t.jsx(
2998
3032
  "button",
2999
3033
  {
3000
- onClick: ts,
3034
+ onClick: to,
3001
3035
  className: "vg-button-primary",
3002
- disabled: oe || !re.trim() || M.includes("backend") && L.length === 0 || M.includes("ux") && B.some((a) => !a.name.trim() || !a.link.trim()),
3036
+ disabled: se || !re.trim() || M.includes("backend") && L.length === 0 || M.includes("ux") && B.some((a) => !a.name.trim() || !a.link.trim()),
3003
3037
  style: {
3004
3038
  flex: 2,
3005
- opacity: oe || !re.trim() || M.includes("backend") && L.length === 0 || M.includes("ux") && B.some((a) => !a.name.trim() || !a.link.trim()) ? 0.6 : 1,
3006
- cursor: oe || !re.trim() || M.includes("backend") && L.length === 0 || M.includes("ux") && B.some((a) => !a.name.trim() || !a.link.trim()) ? "not-allowed" : "pointer"
3039
+ opacity: se || !re.trim() || M.includes("backend") && L.length === 0 || M.includes("ux") && B.some((a) => !a.name.trim() || !a.link.trim()) ? 0.6 : 1,
3040
+ cursor: se || !re.trim() || M.includes("backend") && L.length === 0 || M.includes("ux") && B.some((a) => !a.name.trim() || !a.link.trim()) ? "not-allowed" : "pointer"
3007
3041
  },
3008
3042
  children: /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fc058", "data-source-path": "/src/components/ViewGateOverlay.tsx:2778", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
3009
- oe ? /* @__PURE__ */ t.jsx("div", { "data-vg-id": "17fc06e", "data-source-path": "/src/components/ViewGateOverlay.tsx:2779", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ t.jsx(jo, { "data-vg-id": "a3fd5c1c", "data-source-path": "/src/components/ViewGateOverlay.tsx:2779", size: 18 }),
3010
- /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76d3b", "data-source-path": "/src/components/ViewGateOverlay.tsx:2780", children: oe ? o.submitting : o.sendFeedback || "Send Comment" })
3043
+ se ? /* @__PURE__ */ t.jsx("div", { "data-vg-id": "17fc06e", "data-source-path": "/src/components/ViewGateOverlay.tsx:2779", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ t.jsx(js, { "data-vg-id": "a3fd5c1c", "data-source-path": "/src/components/ViewGateOverlay.tsx:2779", size: 18 }),
3044
+ /* @__PURE__ */ t.jsx("span", { "data-vg-id": "52d76d3b", "data-source-path": "/src/components/ViewGateOverlay.tsx:2780", children: se ? s.submitting : s.sendFeedback || "Send Comment" })
3011
3045
  ] })
3012
3046
  }
3013
3047
  )
@@ -3035,7 +3069,7 @@ const Vo = [
3035
3069
  }, children: [
3036
3070
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fc073", "data-source-path": "/src/components/ViewGateOverlay.tsx:2802", style: { display: "flex", flexDirection: "column", gap: "16px", marginBottom: "24px" }, children: [
3037
3071
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fc074", "data-source-path": "/src/components/ViewGateOverlay.tsx:2803", style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
3038
- /* @__PURE__ */ t.jsx("h2", { "data-vg-id": "efa6bc40", "data-source-path": "/src/components/ViewGateOverlay.tsx:2804", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a", whiteSpace: "nowrap" }, children: Y ? o.commentDetails : o.annotations }),
3072
+ /* @__PURE__ */ t.jsx("h2", { "data-vg-id": "efa6bc40", "data-source-path": "/src/components/ViewGateOverlay.tsx:2804", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a", whiteSpace: "nowrap" }, children: Y ? s.commentDetails : s.annotations }),
3039
3073
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fc076", "data-source-path": "/src/components/ViewGateOverlay.tsx:2807", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
3040
3074
  ie ? /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "17fc077", "data-source-path": "/src/components/ViewGateOverlay.tsx:2809", style: { display: "flex", alignItems: "center", gap: "8px", padding: "4px 12px", background: "rgba(99, 102, 241, 0.1)", borderRadius: "20px" }, children: [
3041
3075
  ie.avatar ? /* @__PURE__ */ t.jsx("img", { "data-vg-id": "3cf759ac", "data-source-path": "/src/components/ViewGateOverlay.tsx:2811", src: ie.avatar, style: { width: "20px", height: "20px", borderRadius: "50%" }, alt: "" }) : /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e782f7b", "data-source-path": "/src/components/ViewGateOverlay.tsx:2813", style: { width: "20px", height: "20px", borderRadius: "50%", background: "#6366f1", color: "white", fontSize: "10px", display: "flex", alignItems: "center", justifyContent: "center" }, children: ie.name?.[0] }),
@@ -3063,7 +3097,7 @@ const Vo = [
3063
3097
  ] })
3064
3098
  ] }),
3065
3099
  /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e782f7f", "data-source-path": "/src/components/ViewGateOverlay.tsx:2837", style: { display: "flex", flexDirection: "column", gap: "8px", alignItems: "center", width: "100%" }, children: (() => {
3066
- const a = Array.isArray(ae) ? ae : [], n = Y ? ct.find((j) => j.annotations?.some((Q) => Q._id === Y)) : null, p = (n ? n.annotations : a).filter((j) => j.status !== "completed" && j.status !== "done"), v = p.filter((j) => j.status !== "ready_for_review").length, w = p.filter((j) => j.status === "ready_for_review").length, O = p.length;
3100
+ const a = Array.isArray(ae) ? ae : [], n = Y ? ct.find((j) => j.annotations?.some((Q) => Q._id === Y)) : null, u = (n ? n.annotations : a).filter((j) => j.status !== "completed" && j.status !== "done"), v = u.filter((j) => j.status !== "ready_for_review").length, w = u.filter((j) => j.status === "ready_for_review").length, O = u.length;
3067
3101
  return O <= 0 ? O === 0 ? null : /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e782f80", "data-source-path": "/src/components/ViewGateOverlay.tsx:2851", style: { display: "flex", gap: "8px", opacity: 0.9 }, children: [
3068
3102
  v > 0 && /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e782f81", "data-source-path": "/src/components/ViewGateOverlay.tsx:2853", className: "vg-badge", style: { background: "#fff7ed", color: "#c2410c", border: "1px solid #ffedd5", fontSize: "11px", padding: "2px 8px" }, children: [
3069
3103
  v,
@@ -3095,7 +3129,7 @@ const Vo = [
3095
3129
  onClick: () => Ft(null),
3096
3130
  className: `vg-segmented-item ${ce === null ? "active" : ""}`,
3097
3131
  children: [
3098
- o.viewAll || "Todos",
3132
+ s.viewAll || "Todos",
3099
3133
  " (",
3100
3134
  O,
3101
3135
  ")"
@@ -3147,15 +3181,15 @@ const Vo = [
3147
3181
  transition: "all 0.2s"
3148
3182
  },
3149
3183
  children: [
3150
- o.viewAll || "Todos",
3184
+ s.viewAll || "Todos",
3151
3185
  " (",
3152
- p.filter((j) => g ? !0 : ce === "pending" ? j.status !== "ready_for_review" : ce === "ready" ? j.status === "ready_for_review" : !0).length,
3186
+ u.filter((j) => g ? !0 : ce === "pending" ? j.status !== "ready_for_review" : ce === "ready" ? j.status === "ready_for_review" : !0).length,
3153
3187
  ")"
3154
3188
  ]
3155
3189
  }
3156
3190
  ),
3157
3191
  ["low", "medium", "high", "urgent"].map((j) => {
3158
- const Q = p.filter((_) => g ? !0 : ce === "pending" ? _.status !== "ready_for_review" : ce === "ready" ? _.status === "ready_for_review" : !0).filter((_) => (_.priority || "medium") === j).length;
3192
+ const Q = u.filter((_) => g ? !0 : ce === "pending" ? _.status !== "ready_for_review" : ce === "ready" ? _.status === "ready_for_review" : !0).filter((_) => (_.priority || "medium") === j).length;
3159
3193
  return Q === 0 && x !== j ? null : /* @__PURE__ */ t.jsxs(
3160
3194
  "button",
3161
3195
  {
@@ -3174,7 +3208,7 @@ const Vo = [
3174
3208
  textTransform: "uppercase"
3175
3209
  },
3176
3210
  children: [
3177
- o[j],
3211
+ s[j],
3178
3212
  " (",
3179
3213
  Q,
3180
3214
  ")"
@@ -3192,7 +3226,7 @@ const Vo = [
3192
3226
  {
3193
3227
  style: { flex: 1, overflowY: "auto", paddingRight: "10px", overflowX: "hidden" },
3194
3228
  className: "vg-custom-scrollbar",
3195
- children: Qe ? /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e782f9a", "data-source-path": "/src/components/ViewGateOverlay.tsx:2966", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e782f9b", "data-source-path": "/src/components/ViewGateOverlay.tsx:2967", className: "vg-spinner" }) }) : pa.map((a, n) => /* @__PURE__ */ t.jsxs(
3229
+ children: Qe ? /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e782f9a", "data-source-path": "/src/components/ViewGateOverlay.tsx:2966", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e782f9b", "data-source-path": "/src/components/ViewGateOverlay.tsx:2967", className: "vg-spinner" }) }) : ua.map((a, n) => /* @__PURE__ */ t.jsxs(
3196
3230
  "div",
3197
3231
  {
3198
3232
  className: "vg-glassmorphism vg-animate-slide",
@@ -3206,19 +3240,19 @@ const Vo = [
3206
3240
  children: [
3207
3241
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e782f9c", "data-source-path": "/src/components/ViewGateOverlay.tsx:2982", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: [
3208
3242
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e782f9d", "data-source-path": "/src/components/ViewGateOverlay.tsx:2983", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
3209
- /* @__PURE__ */ t.jsx("span", { "data-vg-id": "8161c33", "data-source-path": "/src/components/ViewGateOverlay.tsx:2984", style: { fontSize: "12px", color: "#000000", fontWeight: 600 }, children: jr(a.timestamp || a.createdAt || a.reference?.timestamp, r) }),
3243
+ /* @__PURE__ */ t.jsx("span", { "data-vg-id": "8161c33", "data-source-path": "/src/components/ViewGateOverlay.tsx:2984", style: { fontSize: "12px", color: "#000000", fontWeight: 600 }, children: Or(a.timestamp || a.createdAt || a.reference?.timestamp, r) }),
3210
3244
  /* @__PURE__ */ t.jsx(
3211
3245
  "div",
3212
3246
  {
3213
3247
  "data-vg-id": "2e782f9f",
3214
3248
  "data-source-path": "/src/components/ViewGateOverlay.tsx:2987",
3215
- onClick: (i) => {
3216
- i.stopPropagation();
3217
- const p = a.key || `VG-${a._id.slice(-6).toUpperCase()}`;
3218
- navigator.clipboard.writeText(p);
3219
- const v = i.currentTarget;
3249
+ onClick: (d) => {
3250
+ d.stopPropagation();
3251
+ const u = a.key || `VG-${a._id.slice(-6).toUpperCase()}`;
3252
+ navigator.clipboard.writeText(u);
3253
+ const v = d.currentTarget;
3220
3254
  v.innerText = "¡Copiado!", v.style.color = "#22c55e", setTimeout(() => {
3221
- v.innerText = p, v.style.color = g ? "#64748b" : "#6366f1";
3255
+ v.innerText = u, v.style.color = g ? "#64748b" : "#6366f1";
3222
3256
  }, 1500);
3223
3257
  },
3224
3258
  style: {
@@ -3253,10 +3287,10 @@ const Vo = [
3253
3287
  marginLeft: "4px"
3254
3288
  }, children: a.creator.avatar ? /* @__PURE__ */ t.jsx("img", { "data-vg-id": "3cf759d4", "data-source-path": "/src/components/ViewGateOverlay.tsx:3035", src: a.creator.avatar, style: { width: "16px", height: "16px", borderRadius: "50%" }, alt: "" }) : /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e782fb8", "data-source-path": "/src/components/ViewGateOverlay.tsx:3037", style: { width: "16px", height: "16px", borderRadius: "50%", background: "#6366f1", color: "white", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "8px", fontWeight: 700 }, children: a.creator.name?.[0] }) }),
3255
3289
  a.url && /* @__PURE__ */ t.jsx(
3256
- Or,
3290
+ Cr,
3257
3291
  {
3258
3292
  url: a.url,
3259
- onHover: qa,
3293
+ onHover: Ya,
3260
3294
  style: {
3261
3295
  display: "flex",
3262
3296
  alignItems: "center",
@@ -3271,33 +3305,33 @@ const Vo = [
3271
3305
  }
3272
3306
  }
3273
3307
  ),
3274
- (a.focusAreas?.length > 0 ? a.focusAreas : [...a.backendEndpoints?.length > 0 ? ["backend"] : [], ...a.figmaReference?.length > 0 ? ["ux"] : []]).map((i) => /* @__PURE__ */ t.jsxs("span", { "data-vg-id": "8161c4e", "data-source-path": "/src/components/ViewGateOverlay.tsx:3063", style: {
3308
+ (a.focusAreas?.length > 0 ? a.focusAreas : [...a.backendEndpoints?.length > 0 ? ["backend"] : [], ...a.figmaReference?.length > 0 ? ["ux"] : []]).map((d) => /* @__PURE__ */ t.jsxs("span", { "data-vg-id": "8161c4e", "data-source-path": "/src/components/ViewGateOverlay.tsx:3063", style: {
3275
3309
  fontSize: "10px",
3276
3310
  fontWeight: 800,
3277
3311
  textTransform: "uppercase",
3278
3312
  padding: "4px 10px",
3279
3313
  borderRadius: "24px",
3280
- background: i === "frontend" ? "linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)" : i === "backend" ? "linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)" : "linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%)",
3281
- color: i === "frontend" ? "#059669" : i === "backend" ? "#4f46e5" : "#c026d3",
3314
+ background: d === "frontend" ? "linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)" : d === "backend" ? "linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)" : "linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%)",
3315
+ color: d === "frontend" ? "#059669" : d === "backend" ? "#4f46e5" : "#c026d3",
3282
3316
  display: "flex",
3283
3317
  alignItems: "center",
3284
3318
  gap: "4px",
3285
- border: `1px solid ${i === "frontend" ? "#a7f3d0" : i === "backend" ? "#c7d2fe" : "#fbcfe8"}`,
3286
- boxShadow: i === "frontend" ? "0 2px 4px rgba(5, 150, 105, 0.05)" : i === "backend" ? "0 2px 4px rgba(79, 70, 229, 0.05)" : "0 2px 4px rgba(192, 38, 211, 0.05)",
3319
+ border: `1px solid ${d === "frontend" ? "#a7f3d0" : d === "backend" ? "#c7d2fe" : "#fbcfe8"}`,
3320
+ boxShadow: d === "frontend" ? "0 2px 4px rgba(5, 150, 105, 0.05)" : d === "backend" ? "0 2px 4px rgba(79, 70, 229, 0.05)" : "0 2px 4px rgba(192, 38, 211, 0.05)",
3287
3321
  letterSpacing: "0.02em"
3288
3322
  }, children: [
3289
- i === "frontend" ? /* @__PURE__ */ t.jsx(Qt, { "data-vg-id": "b806bee7", "data-source-path": "/src/components/ViewGateOverlay.tsx:3071", size: 11, strokeWidth: 2.5 }) : i === "backend" ? /* @__PURE__ */ t.jsx(Ye, { "data-vg-id": "b1e4c277", "data-source-path": "/src/components/ViewGateOverlay.tsx:3071", size: 11, strokeWidth: 2.5 }) : /* @__PURE__ */ t.jsx(Gt, { "data-vg-id": "ea069934", "data-source-path": "/src/components/ViewGateOverlay.tsx:3071", size: 11, strokeWidth: 2.5 }),
3290
- i === "frontend" ? "Frontend" : i === "backend" ? "Backend" : "UX / UI"
3291
- ] }, i))
3323
+ d === "frontend" ? /* @__PURE__ */ t.jsx(Qt, { "data-vg-id": "b806bee7", "data-source-path": "/src/components/ViewGateOverlay.tsx:3071", size: 11, strokeWidth: 2.5 }) : d === "backend" ? /* @__PURE__ */ t.jsx(Ye, { "data-vg-id": "b1e4c277", "data-source-path": "/src/components/ViewGateOverlay.tsx:3071", size: 11, strokeWidth: 2.5 }) : /* @__PURE__ */ t.jsx(Gt, { "data-vg-id": "ea069934", "data-source-path": "/src/components/ViewGateOverlay.tsx:3071", size: 11, strokeWidth: 2.5 }),
3324
+ d === "frontend" ? "Frontend" : d === "backend" ? "Backend" : "UX / UI"
3325
+ ] }, d))
3292
3326
  ] }),
3293
3327
  a.status === "completed" ? /* @__PURE__ */ t.jsxs("span", { "data-vg-id": "8161c52", "data-source-path": "/src/components/ViewGateOverlay.tsx:3077", className: "vg-badge", style: { backgroundColor: "#ecfdf5", color: "#059669", border: "1px solid #d1fae5" }, children: [
3294
- /* @__PURE__ */ t.jsx(st, { "data-vg-id": "a75c1a63", "data-source-path": "/src/components/ViewGateOverlay.tsx:3078", size: 14 }),
3328
+ /* @__PURE__ */ t.jsx(ot, { "data-vg-id": "a75c1a63", "data-source-path": "/src/components/ViewGateOverlay.tsx:3078", size: 14 }),
3295
3329
  " ",
3296
- o.completed || (r === "es" ? "Listo para revisión" : "Ready for Review")
3330
+ s.completed || (r === "es" ? "Listo para revisión" : "Ready for Review")
3297
3331
  ] }) : a.status === "ready_for_review" ? /* @__PURE__ */ t.jsxs("span", { "data-vg-id": "8161c54", "data-source-path": "/src/components/ViewGateOverlay.tsx:3081", className: "vg-badge", style: { backgroundColor: "#f3e8ff", color: "#a855f7", border: "1px solid #e9d5ff" }, children: [
3298
- /* @__PURE__ */ t.jsx(st, { "data-vg-id": "a75c1a65", "data-source-path": "/src/components/ViewGateOverlay.tsx:3082", size: 14 }),
3332
+ /* @__PURE__ */ t.jsx(ot, { "data-vg-id": "a75c1a65", "data-source-path": "/src/components/ViewGateOverlay.tsx:3082", size: 14 }),
3299
3333
  " ",
3300
- o.readyForReview
3334
+ s.readyForReview
3301
3335
  ] }) : a.status === "bug_fixing" ? /* @__PURE__ */ t.jsxs("span", { "data-vg-id": "8161c56", "data-source-path": "/src/components/ViewGateOverlay.tsx:3085", className: "vg-badge", style: { backgroundColor: "#fff1f2", color: "#e11d48", border: "1px solid #ffe4e6" }, children: [
3302
3336
  /* @__PURE__ */ t.jsx(Vt, { "data-vg-id": "3b8b181a", "data-source-path": "/src/components/ViewGateOverlay.tsx:3086", size: 14 }),
3303
3337
  " ",
@@ -3307,8 +3341,8 @@ const Vo = [
3307
3341
  color: g || a.status === "backlog" ? "#64748b" : "#ea580c",
3308
3342
  border: g || a.status === "backlog" ? "1px solid #e2e8f0" : "1px solid #ffedd5"
3309
3343
  }, children: [
3310
- /* @__PURE__ */ t.jsx(br, { "data-vg-id": "62dc6c36", "data-source-path": "/src/components/ViewGateOverlay.tsx:3094", size: 14 }),
3311
- g || a.status === "backlog" ? o.backlog : o.pending
3344
+ /* @__PURE__ */ t.jsx(wr, { "data-vg-id": "62dc6c36", "data-source-path": "/src/components/ViewGateOverlay.tsx:3094", size: 14 }),
3345
+ g || a.status === "backlog" ? s.backlog : s.pending
3312
3346
  ] })
3313
3347
  ] }),
3314
3348
  (a.screenshot || a.reference?.previewUrl) && /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e782fda", "data-source-path": "/src/components/ViewGateOverlay.tsx:3101", style: {
@@ -3347,9 +3381,9 @@ const Vo = [
3347
3381
  border: "1px solid",
3348
3382
  borderColor: a.priority === "low" ? "#d1fae5" : a.priority === "urgent" ? "#fee2e2" : a.priority === "high" ? "#fef3c7" : "#e0e7ff"
3349
3383
  }, children: [
3350
- o.priority,
3384
+ s.priority,
3351
3385
  ": ",
3352
- o[a.priority || "medium"]
3386
+ s[a.priority || "medium"]
3353
3387
  ] }) }),
3354
3388
  /* @__PURE__ */ t.jsx("p", { "data-vg-id": "f01af8be", "data-source-path": "/src/components/ViewGateOverlay.tsx:3140", className: "vg-text-wrap", style: { margin: "0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: a.message }),
3355
3389
  a.figmaReference?.length > 0 && /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e782fe0", "data-source-path": "/src/components/ViewGateOverlay.tsx:3145", style: { marginTop: "16px", display: "flex", flexDirection: "column", gap: "8px", padding: "12px", background: "#faf5ff", borderRadius: "12px", border: "1px solid #fae8ff" }, children: [
@@ -3357,12 +3391,12 @@ const Vo = [
3357
3391
  /* @__PURE__ */ t.jsx(Gt, { "data-vg-id": "ea06996f", "data-source-path": "/src/components/ViewGateOverlay.tsx:3147", size: 14, style: { color: "#d946ef" } }),
3358
3392
  /* @__PURE__ */ t.jsx("span", { "data-vg-id": "8161c8d", "data-source-path": "/src/components/ViewGateOverlay.tsx:3148", style: { fontSize: "11px", fontWeight: 800, color: "#a21caf", textTransform: "uppercase", letterSpacing: "0.05em" }, children: r === "es" ? "Diseños Figma" : "Figma Designs" })
3359
3393
  ] }),
3360
- a.figmaReference.map((i, p) => /* @__PURE__ */ t.jsxs(
3394
+ a.figmaReference.map((d, u) => /* @__PURE__ */ t.jsxs(
3361
3395
  "a",
3362
3396
  {
3363
3397
  "data-vg-id": "ef479849",
3364
3398
  "data-source-path": "/src/components/ViewGateOverlay.tsx:3151",
3365
- href: i.link,
3399
+ href: d.link,
3366
3400
  target: "_blank",
3367
3401
  rel: "noreferrer",
3368
3402
  className: "vg-animate-pop",
@@ -3389,12 +3423,12 @@ const Vo = [
3389
3423
  children: [
3390
3424
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e782ffa", "data-source-path": "/src/components/ViewGateOverlay.tsx:3159", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
3391
3425
  /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e782ffb", "data-source-path": "/src/components/ViewGateOverlay.tsx:3160", style: { width: "24px", height: "24px", borderRadius: "6px", background: "rgba(217, 70, 239, 0.1)", display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ t.jsx(Qt, { "data-vg-id": "b806bf29", "data-source-path": "/src/components/ViewGateOverlay.tsx:3161", size: 12, strokeWidth: 3 }) }),
3392
- /* @__PURE__ */ t.jsx("span", { "data-vg-id": "8161c92", "data-source-path": "/src/components/ViewGateOverlay.tsx:3163", style: { fontWeight: 700 }, children: i.name || "Figma Reference" })
3426
+ /* @__PURE__ */ t.jsx("span", { "data-vg-id": "8161c92", "data-source-path": "/src/components/ViewGateOverlay.tsx:3163", style: { fontWeight: 700 }, children: d.name || "Figma Reference" })
3393
3427
  ] }),
3394
- /* @__PURE__ */ t.jsx(Ea, { "data-vg-id": "5c2be04e", "data-source-path": "/src/components/ViewGateOverlay.tsx:3165", size: 14, style: { opacity: 0.5 } })
3428
+ /* @__PURE__ */ t.jsx(Va, { "data-vg-id": "5c2be04e", "data-source-path": "/src/components/ViewGateOverlay.tsx:3165", size: 14, style: { opacity: 0.5 } })
3395
3429
  ]
3396
3430
  },
3397
- p
3431
+ u
3398
3432
  ))
3399
3433
  ] }),
3400
3434
  a.backendEndpoints?.length > 0 && /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e782fff", "data-source-path": "/src/components/ViewGateOverlay.tsx:3172", style: { marginTop: "16px", display: "flex", flexDirection: "column", gap: "8px", padding: "12px", background: "#f5f8ff", borderRadius: "12px", border: "1px solid #e0e7ff" }, children: [
@@ -3402,9 +3436,9 @@ const Vo = [
3402
3436
  /* @__PURE__ */ t.jsx(Ye, { "data-vg-id": "b1e4c2d2", "data-source-path": "/src/components/ViewGateOverlay.tsx:3174", size: 14, style: { color: "#4f46e5" } }),
3403
3437
  /* @__PURE__ */ t.jsx("span", { "data-vg-id": "8161cac", "data-source-path": "/src/components/ViewGateOverlay.tsx:3175", style: { fontSize: "11px", fontWeight: 800, color: "#3730a3", textTransform: "uppercase", letterSpacing: "0.05em" }, children: "Backend Endpoints" })
3404
3438
  ] }),
3405
- /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e783018", "data-source-path": "/src/components/ViewGateOverlay.tsx:3177", style: { display: "flex", flexWrap: "wrap", gap: "8px" }, children: a.backendEndpoints.map((i) => {
3406
- const p = i.split("|"), v = p.length > 1 ? p[0] : "";
3407
- let w = p.length > 1 ? p[1] || "" : i || "", O = "#4f46e5", j = "#e0e7ff";
3439
+ /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e783018", "data-source-path": "/src/components/ViewGateOverlay.tsx:3177", style: { display: "flex", flexWrap: "wrap", gap: "8px" }, children: a.backendEndpoints.map((d) => {
3440
+ const u = d.split("|"), v = u.length > 1 ? u[0] : "";
3441
+ let w = u.length > 1 ? u[1] || "" : d || "", O = "#4f46e5", j = "#e0e7ff";
3408
3442
  return v === "GET" ? (O = "#059669", j = "#d1fae5") : v === "POST" ? (O = "#ea580c", j = "#ffedd5") : v === "PUT" ? (O = "#0284c7", j = "#e0f2fe") : v === "DELETE" && (O = "#e11d48", j = "#ffe4e6"), /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783019", "data-source-path": "/src/components/ViewGateOverlay.tsx:3192", className: "vg-animate-slide", style: {
3409
3443
  fontSize: "12px",
3410
3444
  padding: "6px 12px",
@@ -3419,7 +3453,7 @@ const Vo = [
3419
3453
  }, children: [
3420
3454
  v && /* @__PURE__ */ t.jsx("span", { "data-vg-id": "8161caf", "data-source-path": "/src/components/ViewGateOverlay.tsx:3198", style: { fontWeight: 800, color: O, background: j, padding: "2px 6px", borderRadius: "4px", fontSize: "10px" }, children: v }),
3421
3455
  /* @__PURE__ */ t.jsx("span", { "data-vg-id": "8161cb0", "data-source-path": "/src/components/ViewGateOverlay.tsx:3199", style: { fontWeight: 600, fontFamily: "monospace", letterSpacing: "-0.02em", color: "#1e293b" }, children: w })
3422
- ] }, i);
3456
+ ] }, d);
3423
3457
  }) })
3424
3458
  ] })
3425
3459
  ] }),
@@ -3431,13 +3465,13 @@ const Vo = [
3431
3465
  className: "vg-button-ghost vg-animate-pop",
3432
3466
  style: { padding: "8px", minWidth: "36px" },
3433
3467
  onClick: () => {
3434
- const i = a.backendEndpoints || [], p = a.focusAreas && a.focusAreas.length > 0 ? a.focusAreas : [
3435
- ...i.length > 0 ? ["backend"] : [],
3468
+ const d = a.backendEndpoints || [], u = a.focusAreas && a.focusAreas.length > 0 ? a.focusAreas : [
3469
+ ...d.length > 0 ? ["backend"] : [],
3436
3470
  ...a.figmaReference && a.figmaReference.length > 0 ? ["ux"] : []
3437
3471
  ];
3438
- Bt(a._id), er(a.message), G(a.priority || "medium"), ua(p), jt(a.figmaReference && a.figmaReference.length > 0 ? a.figmaReference : [{ name: o.figmaPrimaryDesign, link: "" }]), Ht(i), je(i);
3472
+ Bt(a._id), tr(a.message), G(a.priority || "medium"), fa(u), jt(a.figmaReference && a.figmaReference.length > 0 ? a.figmaReference : [{ name: s.figmaPrimaryDesign, link: "" }]), Ht(d), je(d);
3439
3473
  },
3440
- title: o.edit,
3474
+ title: s.edit,
3441
3475
  children: /* @__PURE__ */ t.jsx(Gt, { "data-vg-id": "ea069996", "data-source-path": "/src/components/ViewGateOverlay.tsx:3235", size: 16 })
3442
3476
  }
3443
3477
  ),
@@ -3448,17 +3482,17 @@ const Vo = [
3448
3482
  style: { padding: "8px", minWidth: "36px", color: "#ef4444" },
3449
3483
  onClick: () => {
3450
3484
  W({
3451
- title: o.deleteConfirm,
3452
- message: o.confirmDelete,
3485
+ title: s.deleteConfirm,
3486
+ message: s.confirmDelete,
3453
3487
  type: "danger",
3454
3488
  onConfirm: async () => {
3455
3489
  try {
3456
- (await fetch(`${d}/api/annotations/${a._id}`, {
3490
+ (await fetch(`${c}/api/annotations/${a._id}`, {
3457
3491
  method: "DELETE",
3458
- headers: { "x-api-key": c }
3459
- })).ok && ($t(), s(o.deleteSuccess, "success"));
3492
+ headers: { "x-api-key": i }
3493
+ })).ok && ($t(), o(s.deleteSuccess, "success"));
3460
3494
  } catch {
3461
- s(o.error, "error");
3495
+ o(s.error, "error");
3462
3496
  } finally {
3463
3497
  W(null);
3464
3498
  }
@@ -3474,7 +3508,7 @@ const Vo = [
3474
3508
  yt !== "client" && a.status === "ready_for_review" && /* @__PURE__ */ t.jsxs(
3475
3509
  "button",
3476
3510
  {
3477
- onClick: () => as(a),
3511
+ onClick: () => ao(a),
3478
3512
  className: "vg-button-primary vg-animate-pop",
3479
3513
  style: {
3480
3514
  padding: "8px 16px",
@@ -3489,7 +3523,7 @@ const Vo = [
3489
3523
  },
3490
3524
  disabled: Me,
3491
3525
  children: [
3492
- Me ? /* @__PURE__ */ t.jsx(ta, { "data-vg-id": "a4b73604", "data-source-path": "/src/components/ViewGateOverlay.tsx:3289", size: 14, className: "vg-animate-spin" }) : /* @__PURE__ */ t.jsx(Ks, { "data-vg-id": "41e603c7", "data-source-path": "/src/components/ViewGateOverlay.tsx:3289", size: 14 }),
3526
+ Me ? /* @__PURE__ */ t.jsx(ta, { "data-vg-id": "a4b73604", "data-source-path": "/src/components/ViewGateOverlay.tsx:3289", size: 14, className: "vg-animate-spin" }) : /* @__PURE__ */ t.jsx(Jo, { "data-vg-id": "41e603c7", "data-source-path": "/src/components/ViewGateOverlay.tsx:3289", size: 14 }),
3493
3527
  r === "es" ? "Resolver con Evidencia" : "Resolve & Capture"
3494
3528
  ]
3495
3529
  }
@@ -3512,7 +3546,7 @@ const Vo = [
3512
3546
  cursor: "pointer"
3513
3547
  },
3514
3548
  children: [
3515
- /* @__PURE__ */ t.jsx(Ea, { "data-vg-id": "5c2be088", "data-source-path": "/src/components/ViewGateOverlay.tsx:3309", size: 14 }),
3549
+ /* @__PURE__ */ t.jsx(Va, { "data-vg-id": "5c2be088", "data-source-path": "/src/components/ViewGateOverlay.tsx:3309", size: 14 }),
3516
3550
  r === "es" ? "Ver en Dashboard" : "View in Dashboard"
3517
3551
  ]
3518
3552
  }
@@ -3557,14 +3591,14 @@ const Vo = [
3557
3591
  margin: "0 auto 24px",
3558
3592
  color: he.type === "danger" ? "#ef4444" : "#6366f1",
3559
3593
  transform: "rotate(-5deg)"
3560
- }, children: he.type === "danger" ? /* @__PURE__ */ t.jsx(ra, { "data-vg-id": "45b44221", "data-source-path": "/src/components/ViewGateOverlay.tsx:3346", size: 32 }) : /* @__PURE__ */ t.jsx(st, { "data-vg-id": "a75c1ae2", "data-source-path": "/src/components/ViewGateOverlay.tsx:3346", size: 32 }) }),
3594
+ }, children: he.type === "danger" ? /* @__PURE__ */ t.jsx(ra, { "data-vg-id": "45b44221", "data-source-path": "/src/components/ViewGateOverlay.tsx:3346", size: 32 }) : /* @__PURE__ */ t.jsx(ot, { "data-vg-id": "a75c1ae2", "data-source-path": "/src/components/ViewGateOverlay.tsx:3346", size: 32 }) }),
3561
3595
  /* @__PURE__ */ t.jsx("h3", { "data-vg-id": "53ec569", "data-source-path": "/src/components/ViewGateOverlay.tsx:3348", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: he.title }),
3562
3596
  /* @__PURE__ */ t.jsx("p", { "data-vg-id": "f01af933", "data-source-path": "/src/components/ViewGateOverlay.tsx:3349", style: { margin: "0 0 24px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: he.message }),
3563
3597
  he.showInput && /* @__PURE__ */ t.jsx(
3564
3598
  "textarea",
3565
3599
  {
3566
3600
  className: "vg-textarea",
3567
- placeholder: o.reopenPlaceholder,
3601
+ placeholder: s.reopenPlaceholder,
3568
3602
  value: F,
3569
3603
  onChange: (a) => q(a.target.value),
3570
3604
  rows: 3,
@@ -3580,7 +3614,7 @@ const Vo = [
3580
3614
  style: { flex: 1, height: "44px" },
3581
3615
  onClick: () => !Ne && W(null),
3582
3616
  disabled: Ne,
3583
- children: o.no
3617
+ children: s.no
3584
3618
  }
3585
3619
  ),
3586
3620
  /* @__PURE__ */ t.jsx(
@@ -3610,30 +3644,30 @@ const Vo = [
3610
3644
  vt(!1);
3611
3645
  }
3612
3646
  },
3613
- children: Ne ? /* @__PURE__ */ t.jsx(ta, { "data-vg-id": "a4b73624", "data-source-path": "/src/components/ViewGateOverlay.tsx:3399", size: 18, className: "vg-animate-spin" }) : o.yes
3647
+ children: Ne ? /* @__PURE__ */ t.jsx(ta, { "data-vg-id": "a4b73624", "data-source-path": "/src/components/ViewGateOverlay.tsx:3399", size: 18, className: "vg-animate-spin" }) : s.yes
3614
3648
  }
3615
3649
  )
3616
3650
  ] })
3617
3651
  ] }) }),
3618
3652
  !me && !h && Z && ct.map((a, n) => {
3619
- const { rect: i, annotations: p, isModal: v } = a, w = p[0], O = p.length, j = p.some((b) => b.status === "ready_for_review"), Q = p.some((b) => b.status === "completed" || b.status === "done"), _ = p.some((b) => b.status !== "ready_for_review" && b.status !== "completed" && b.status !== "done"), fe = Q && !j && !_, te = j && !_ && !Q, Re = (j || Q) && !_, ve = (j || Q) && _, ye = p.filter((b) => b.status !== "ready_for_review" && b.status !== "completed" && b.status !== "done").length, we = p.filter((b) => b.status === "ready_for_review").length, ke = p.filter((b) => b.status === "completed" || b.status === "done").length, Se = p.some((b) => b.status === "bug_fixing" || b.type === "bug" || b.originalStatus === "bug_fixing"), Yt = Se && !te && !fe ? "#f43f5e" : ye > 0 ? g ? "#64748b" : "#ea580c" : we > 0 ? "#a855f7" : "#10b981", ft = ct.some((b) => b.element === a.element && b.isTriggerPin), qe = ct.some((b) => b.element === a.element && !b.isTriggerPin), mt = ft && qe ? a.isTriggerPin ? -18 : 18 : 0, Ot = i.top === 0 && i.left === 0 && i.width > window.innerWidth * 0.9;
3653
+ const { rect: d, annotations: u, isModal: v } = a, w = u[0], O = u.length, j = u.some((b) => b.status === "ready_for_review"), Q = u.some((b) => b.status === "completed" || b.status === "done"), _ = u.some((b) => b.status !== "ready_for_review" && b.status !== "completed" && b.status !== "done"), fe = Q && !j && !_, te = j && !_ && !Q, Re = (j || Q) && !_, ve = (j || Q) && _, ye = u.filter((b) => b.status !== "ready_for_review" && b.status !== "completed" && b.status !== "done").length, we = u.filter((b) => b.status === "ready_for_review").length, ke = u.filter((b) => b.status === "completed" || b.status === "done").length, Se = u.some((b) => b.status === "bug_fixing" || b.type === "bug" || b.originalStatus === "bug_fixing"), Yt = Se && !te && !fe ? "#f43f5e" : ye > 0 ? g ? "#64748b" : "#ea580c" : we > 0 ? "#a855f7" : "#10b981", ft = ct.some((b) => b.element === a.element && b.isTriggerPin), qe = ct.some((b) => b.element === a.element && !b.isTriggerPin), mt = ft && qe ? a.isTriggerPin ? -18 : 18 : 0, Ot = d.top === 0 && d.left === 0 && d.width > window.innerWidth * 0.9;
3620
3654
  return /* @__PURE__ */ t.jsxs(
3621
3655
  "div",
3622
3656
  {
3623
3657
  className: "vg-pin-container vg-animate-pop",
3624
3658
  style: {
3625
3659
  position: "fixed",
3626
- top: Math.max(20, Math.min(window.innerHeight - 52, i.top - 20)),
3627
- left: Ot ? Math.max(20, i.left + 40 + mt) : Math.max(20, Math.min(window.innerWidth - 52, i.left + i.width / 2 - 16 + mt)),
3660
+ top: Math.max(20, Math.min(window.innerHeight - 52, d.top - 20)),
3661
+ left: Ot ? Math.max(20, d.left + 40 + mt) : Math.max(20, Math.min(window.innerWidth - 52, d.left + d.width / 2 - 16 + mt)),
3628
3662
  width: "32px",
3629
3663
  height: "32px",
3630
3664
  cursor: "pointer",
3631
3665
  transition: "all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",
3632
- zIndex: Mo
3666
+ zIndex: $s
3633
3667
  },
3634
3668
  onMouseEnter: (b) => {
3635
- const at = b.currentTarget.getBoundingClientRect(), rr = window.innerHeight - at.bottom, rs = at.top;
3636
- rr < 250 && rs > rr ? J((va) => ({ ...va, [a.id]: "vg-top" })) : J((va) => ({ ...va, [a.id]: "" }));
3669
+ const at = b.currentTarget.getBoundingClientRect(), or = window.innerHeight - at.bottom, ro = at.top;
3670
+ or < 250 && ro > or ? J((ya) => ({ ...ya, [a.id]: "vg-top" })) : J((ya) => ({ ...ya, [a.id]: "" }));
3637
3671
  },
3638
3672
  onWheel: (b) => {
3639
3673
  const at = b.currentTarget.querySelector(".vg-tooltip-scroll");
@@ -3643,7 +3677,7 @@ const Vo = [
3643
3677
  Ie(!0), Le(w._id);
3644
3678
  },
3645
3679
  children: [
3646
- /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783057", "data-source-path": "/src/components/ViewGateOverlay.tsx:3474", className: `vg-pin-tooltip ${xe[a.id] || ""} ${Ot || i.left < 160 ? "vg-tooltip-right" : i.left > window.innerWidth - 160 ? "vg-tooltip-left" : ""}`, style: { padding: "16px" }, children: [
3680
+ /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783057", "data-source-path": "/src/components/ViewGateOverlay.tsx:3474", className: `vg-pin-tooltip ${xe[a.id] || ""} ${Ot || d.left < 160 ? "vg-tooltip-right" : d.left > window.innerWidth - 160 ? "vg-tooltip-left" : ""}`, style: { padding: "16px" }, children: [
3647
3681
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783058", "data-source-path": "/src/components/ViewGateOverlay.tsx:3475", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "12px" }, children: [
3648
3682
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783059", "data-source-path": "/src/components/ViewGateOverlay.tsx:3476", style: { display: "flex", alignItems: "center", gap: "8px", flexWrap: "wrap" }, children: [
3649
3683
  a.isTriggerPin ? /* @__PURE__ */ t.jsx(ea, { "data-vg-id": "d88161bf", "data-source-path": "/src/components/ViewGateOverlay.tsx:3478", size: 14, color: Yt }) : /* @__PURE__ */ t.jsx(aa, { "data-vg-id": "7fe17ae", "data-source-path": "/src/components/ViewGateOverlay.tsx:3480", size: 14, color: Yt }),
@@ -3655,7 +3689,7 @@ const Vo = [
3655
3689
  }, children: [
3656
3690
  ye,
3657
3691
  " ",
3658
- g || w.status === "backlog" ? "Backlog" : r === "es" ? ye === 1 ? o.pending : "Pendientes" : "pending"
3692
+ g || w.status === "backlog" ? "Backlog" : r === "es" ? ye === 1 ? s.pending : "Pendientes" : "pending"
3659
3693
  ] }),
3660
3694
  we > 0 && /* @__PURE__ */ t.jsxs("span", { "data-vg-id": "8161d08", "data-source-path": "/src/components/ViewGateOverlay.tsx:3493", style: {
3661
3695
  fontSize: "10px",
@@ -3681,7 +3715,7 @@ const Vo = [
3681
3715
  " ",
3682
3716
  r === "es" ? ke === 1 ? "Completado" : "Completados" : "completed"
3683
3717
  ] }),
3684
- p.some((b) => b.status === "bug_fixing") && /* @__PURE__ */ t.jsx("span", { "data-vg-id": "8161d0a", "data-source-path": "/src/components/ViewGateOverlay.tsx:3517", style: {
3718
+ u.some((b) => b.status === "bug_fixing") && /* @__PURE__ */ t.jsx("span", { "data-vg-id": "8161d0a", "data-source-path": "/src/components/ViewGateOverlay.tsx:3517", style: {
3685
3719
  fontSize: "10px",
3686
3720
  fontWeight: 700,
3687
3721
  color: "#e11d48",
@@ -3700,7 +3734,7 @@ const Vo = [
3700
3734
  textShadow: ve && !g ? "0 1px 2px rgba(0,0,0,0.2)" : "none"
3701
3735
  }, children: "MODAL" })
3702
3736
  ] }),
3703
- /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e783077", "data-source-path": "/src/components/ViewGateOverlay.tsx:3543", className: "vg-tooltip-scroll", style: { maxHeight: "180px", overflowY: "auto" }, children: p.map((b, at) => /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783078", "data-source-path": "/src/components/ViewGateOverlay.tsx:3545", style: {
3737
+ /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e783077", "data-source-path": "/src/components/ViewGateOverlay.tsx:3543", className: "vg-tooltip-scroll", style: { maxHeight: "180px", overflowY: "auto" }, children: u.map((b, at) => /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783078", "data-source-path": "/src/components/ViewGateOverlay.tsx:3545", style: {
3704
3738
  padding: "10px 0",
3705
3739
  borderTop: at === 0 ? "none" : "1px solid #f1f5f9",
3706
3740
  display: "flex",
@@ -3709,14 +3743,14 @@ const Vo = [
3709
3743
  }, children: [
3710
3744
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783079", "data-source-path": "/src/components/ViewGateOverlay.tsx:3552", style: { flex: 1, display: "flex", flexDirection: "column", gap: "4px" }, children: [
3711
3745
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e78307a", "data-source-path": "/src/components/ViewGateOverlay.tsx:3553", style: { display: "flex", alignItems: "center", gap: "6px" }, children: [
3712
- /* @__PURE__ */ t.jsx("span", { "data-vg-id": "8161d10", "data-source-path": "/src/components/ViewGateOverlay.tsx:3554", style: { fontSize: "10px", fontWeight: 600, color: "#64748b" }, children: jr(b.timestamp || b.createdAt, r) }),
3746
+ /* @__PURE__ */ t.jsx("span", { "data-vg-id": "8161d10", "data-source-path": "/src/components/ViewGateOverlay.tsx:3554", style: { fontSize: "10px", fontWeight: 600, color: "#64748b" }, children: Or(b.timestamp || b.createdAt, r) }),
3713
3747
  b.creator && /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e783091", "data-source-path": "/src/components/ViewGateOverlay.tsx:3558", style: { marginLeft: "4px" }, children: b.creator.avatar ? /* @__PURE__ */ t.jsx("img", { "data-vg-id": "3cf75ac4", "data-source-path": "/src/components/ViewGateOverlay.tsx:3560", src: b.creator.avatar, style: { width: "14px", height: "14px", borderRadius: "50%" }, alt: "" }) : /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e783093", "data-source-path": "/src/components/ViewGateOverlay.tsx:3562", style: { width: "14px", height: "14px", borderRadius: "50%", background: "#6366f1", color: "white", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "7px", fontWeight: 700 }, children: b.creator.name?.[0] }) })
3714
3748
  ] }),
3715
3749
  b.url && /* @__PURE__ */ t.jsx(
3716
- Or,
3750
+ Cr,
3717
3751
  {
3718
3752
  url: b.url,
3719
- onHover: qa,
3753
+ onHover: Ya,
3720
3754
  style: {
3721
3755
  display: "flex",
3722
3756
  alignItems: "center",
@@ -3745,7 +3779,7 @@ const Vo = [
3745
3779
  textTransform: "uppercase",
3746
3780
  border: "1px solid",
3747
3781
  borderColor: b.priority === "low" ? "#d1fae5" : b.priority === "urgent" ? "#fee2e2" : b.priority === "high" ? "#fef3c7" : "#e0e7ff"
3748
- }, children: o[b.priority || "medium"] }),
3782
+ }, children: s[b.priority || "medium"] }),
3749
3783
  b.status === "completed" || b.status === "done" ? /* @__PURE__ */ t.jsxs("span", { "data-vg-id": "8161d2c", "data-source-path": "/src/components/ViewGateOverlay.tsx:3607", style: {
3750
3784
  display: "flex",
3751
3785
  alignItems: "center",
@@ -3759,8 +3793,8 @@ const Vo = [
3759
3793
  textTransform: "uppercase",
3760
3794
  border: "1px solid #d1fae5"
3761
3795
  }, children: [
3762
- /* @__PURE__ */ t.jsx(st, { "data-vg-id": "a75c1b3d", "data-source-path": "/src/components/ViewGateOverlay.tsx:3620", size: 10 }),
3763
- o.completed
3796
+ /* @__PURE__ */ t.jsx(ot, { "data-vg-id": "a75c1b3d", "data-source-path": "/src/components/ViewGateOverlay.tsx:3620", size: 10 }),
3797
+ s.completed
3764
3798
  ] }) : b.status === "ready_for_review" ? /* @__PURE__ */ t.jsxs("span", { "data-vg-id": "8161d2e", "data-source-path": "/src/components/ViewGateOverlay.tsx:3624", style: {
3765
3799
  display: "flex",
3766
3800
  alignItems: "center",
@@ -3774,8 +3808,8 @@ const Vo = [
3774
3808
  textTransform: "uppercase",
3775
3809
  border: "1px solid #e9d5ff"
3776
3810
  }, children: [
3777
- b.type === "bug" || b.status === "bug_fixing" || b.originalStatus === "bug_fixing" ? /* @__PURE__ */ t.jsx(Vt, { "data-vg-id": "3b8b18dd", "data-source-path": "/src/components/ViewGateOverlay.tsx:3637", size: 10 }) : /* @__PURE__ */ t.jsx(st, { "data-vg-id": "a75c1de0", "data-source-path": "/src/components/ViewGateOverlay.tsx:3637", size: 10 }),
3778
- o.readyForReview
3811
+ b.type === "bug" || b.status === "bug_fixing" || b.originalStatus === "bug_fixing" ? /* @__PURE__ */ t.jsx(Vt, { "data-vg-id": "3b8b18dd", "data-source-path": "/src/components/ViewGateOverlay.tsx:3637", size: 10 }) : /* @__PURE__ */ t.jsx(ot, { "data-vg-id": "a75c1de0", "data-source-path": "/src/components/ViewGateOverlay.tsx:3637", size: 10 }),
3812
+ s.readyForReview
3779
3813
  ] }) : b.status === "bug_fixing" ? /* @__PURE__ */ t.jsxs("span", { "data-vg-id": "8161fd1", "data-source-path": "/src/components/ViewGateOverlay.tsx:3641", style: {
3780
3814
  display: "flex",
3781
3815
  alignItems: "center",
@@ -3804,8 +3838,8 @@ const Vo = [
3804
3838
  textTransform: "uppercase",
3805
3839
  border: g || b.status === "backlog" ? "1px solid #e2e8f0" : "1px solid #ffedd5"
3806
3840
  }, children: [
3807
- /* @__PURE__ */ t.jsx(br, { "data-vg-id": "62dc6f9c", "data-source-path": "/src/components/ViewGateOverlay.tsx:3671", size: 10 }),
3808
- g || b.status === "backlog" ? o.backlog : o.pending
3841
+ /* @__PURE__ */ t.jsx(wr, { "data-vg-id": "62dc6f9c", "data-source-path": "/src/components/ViewGateOverlay.tsx:3671", size: 10 }),
3842
+ g || b.status === "backlog" ? s.backlog : s.pending
3809
3843
  ] })
3810
3844
  ] })
3811
3845
  ] }, b._id)) })
@@ -3821,7 +3855,7 @@ const Vo = [
3821
3855
  background: Se && !te && !fe ? "linear-gradient(135deg, #f43f5e 0%, #e11d48 100%)" : te ? "linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)" : ve ? Q ? "linear-gradient(135deg, #10b981 0%, #059669 100%)" : "linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)" : void 0
3822
3856
  },
3823
3857
  children: [
3824
- te || fe || Re ? Se && !fe ? /* @__PURE__ */ t.jsx(Vt, { "data-vg-id": "3b8b1b84", "data-source-path": "/src/components/ViewGateOverlay.tsx:3688", size: 18 }) : /* @__PURE__ */ t.jsx(st, { "data-vg-id": "a75c1de7", "data-source-path": "/src/components/ViewGateOverlay.tsx:3688", size: 18 }) : Se ? /* @__PURE__ */ t.jsx(Vt, { "data-vg-id": "3b8b1b86", "data-source-path": "/src/components/ViewGateOverlay.tsx:3688", size: 18 }) : a.isTriggerPin ? /* @__PURE__ */ t.jsx(ea, { "data-vg-id": "d88164a9", "data-source-path": "/src/components/ViewGateOverlay.tsx:3688", size: 16 }) : v ? /* @__PURE__ */ t.jsx(Ea, { "data-vg-id": "5c2be3aa", "data-source-path": "/src/components/ViewGateOverlay.tsx:3688", size: 16 }) : /* @__PURE__ */ t.jsx(aa, { "data-vg-id": "7fe1aae", "data-source-path": "/src/components/ViewGateOverlay.tsx:3688", size: 16 }),
3858
+ te || fe || Re ? Se && !fe ? /* @__PURE__ */ t.jsx(Vt, { "data-vg-id": "3b8b1b84", "data-source-path": "/src/components/ViewGateOverlay.tsx:3688", size: 18 }) : /* @__PURE__ */ t.jsx(ot, { "data-vg-id": "a75c1de7", "data-source-path": "/src/components/ViewGateOverlay.tsx:3688", size: 18 }) : Se ? /* @__PURE__ */ t.jsx(Vt, { "data-vg-id": "3b8b1b86", "data-source-path": "/src/components/ViewGateOverlay.tsx:3688", size: 18 }) : a.isTriggerPin ? /* @__PURE__ */ t.jsx(ea, { "data-vg-id": "d88164a9", "data-source-path": "/src/components/ViewGateOverlay.tsx:3688", size: 16 }) : v ? /* @__PURE__ */ t.jsx(Va, { "data-vg-id": "5c2be3aa", "data-source-path": "/src/components/ViewGateOverlay.tsx:3688", size: 16 }) : /* @__PURE__ */ t.jsx(aa, { "data-vg-id": "7fe1aae", "data-source-path": "/src/components/ViewGateOverlay.tsx:3688", size: 16 }),
3825
3859
  O > 1 && /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e78335c", "data-source-path": "/src/components/ViewGateOverlay.tsx:3691", className: "vg-pin-badge vg-animate-pop", children: O })
3826
3860
  ]
3827
3861
  }
@@ -3898,7 +3932,7 @@ const Vo = [
3898
3932
  )
3899
3933
  ] }),
3900
3934
  /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e78337a", "data-source-path": "/src/components/ViewGateOverlay.tsx:3758", style: { padding: "24px 40px", borderBottom: "1px solid rgba(0,0,0,0.06)", background: "#fcfcfc" }, children: /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e78337b", "data-source-path": "/src/components/ViewGateOverlay.tsx:3759", style: { position: "relative" }, children: [
3901
- /* @__PURE__ */ t.jsx(ko, { "data-vg-id": "8f7bb00f", "data-source-path": "/src/components/ViewGateOverlay.tsx:3760", size: 20, style: { position: "absolute", left: "16px", top: "50%", transform: "translateY(-50%)", color: "#94a3b8" } }),
3935
+ /* @__PURE__ */ t.jsx(ks, { "data-vg-id": "8f7bb00f", "data-source-path": "/src/components/ViewGateOverlay.tsx:3760", size: 20, style: { position: "absolute", left: "16px", top: "50%", transform: "translateY(-50%)", color: "#94a3b8" } }),
3902
3936
  /* @__PURE__ */ t.jsx(
3903
3937
  "input",
3904
3938
  {
@@ -3922,7 +3956,7 @@ const Vo = [
3922
3956
  }
3923
3957
  )
3924
3958
  ] }) }),
3925
- /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e78337e", "data-source-path": "/src/components/ViewGateOverlay.tsx:3781", style: { flex: 1, overflowY: "auto", overflowX: "hidden", padding: "24px 40px" }, className: "vg-custom-scrollbar", children: bt ? Ja.length > 0 ? /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e783382", "data-source-path": "/src/components/ViewGateOverlay.tsx:3788", style: { display: "flex", flexDirection: "column", gap: "0px" }, children: Ja.map((a) => {
3959
+ /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e78337e", "data-source-path": "/src/components/ViewGateOverlay.tsx:3781", style: { flex: 1, overflowY: "auto", overflowX: "hidden", padding: "24px 40px" }, className: "vg-custom-scrollbar", children: bt ? Za.length > 0 ? /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e783382", "data-source-path": "/src/components/ViewGateOverlay.tsx:3788", style: { display: "flex", flexDirection: "column", gap: "0px" }, children: Za.map((a) => {
3926
3960
  const n = a.name === (r === "es" ? "Seleccionados" : "Selected");
3927
3961
  return /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783398", "data-source-path": "/src/components/ViewGateOverlay.tsx:3792", style: { marginBottom: "32px" }, children: [
3928
3962
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783399", "data-source-path": "/src/components/ViewGateOverlay.tsx:3793", style: { display: "flex", alignItems: "center", gap: "12px", marginBottom: "16px", padding: "0 4px" }, children: [
@@ -3948,15 +3982,15 @@ const Vo = [
3948
3982
  display: "grid",
3949
3983
  gridTemplateColumns: "repeat(auto-fill, minmax(340px, 1fr))",
3950
3984
  gap: "12px"
3951
- }, children: a.endpoints.map((i) => {
3952
- const p = `${i.method}|${i.path}`, v = L.includes(p);
3985
+ }, children: a.endpoints.map((d) => {
3986
+ const u = `${d.method}|${d.path}`, v = L.includes(u);
3953
3987
  return /* @__PURE__ */ t.jsxs(
3954
3988
  "div",
3955
3989
  {
3956
3990
  "data-vg-id": "2e78339d",
3957
3991
  "data-source-path": "/src/components/ViewGateOverlay.tsx:3824",
3958
3992
  onClick: () => {
3959
- je(v ? L.filter((w) => w !== p) : [...L, p]);
3993
+ je(v ? L.filter((w) => w !== u) : [...L, u]);
3960
3994
  },
3961
3995
  style: {
3962
3996
  padding: "16px 20px",
@@ -3998,17 +4032,17 @@ const Vo = [
3998
4032
  fontWeight: 800,
3999
4033
  padding: "3px 8px",
4000
4034
  borderRadius: "8px",
4001
- background: i.method === "GET" ? "#dcfce7" : "#fee2e2",
4002
- color: i.method === "GET" ? "#166534" : "#991b1b",
4035
+ background: d.method === "GET" ? "#dcfce7" : "#fee2e2",
4036
+ color: d.method === "GET" ? "#166534" : "#991b1b",
4003
4037
  flexShrink: 0
4004
- }, children: i.method }),
4038
+ }, children: d.method }),
4005
4039
  /* @__PURE__ */ t.jsx("span", { "data-vg-id": "816204d", "data-source-path": "/src/components/ViewGateOverlay.tsx:3884", style: {
4006
4040
  fontWeight: 700,
4007
4041
  color: v ? "#4338ca" : "#1e293b",
4008
4042
  fontSize: "14px",
4009
4043
  wordBreak: "break-all"
4010
- }, children: i.path }),
4011
- i.contract && /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e7833b9", "data-source-path": "/src/components/ViewGateOverlay.tsx:3893", style: {
4044
+ }, children: d.path }),
4045
+ d.contract && /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e7833b9", "data-source-path": "/src/components/ViewGateOverlay.tsx:3893", style: {
4012
4046
  fontSize: "9px",
4013
4047
  fontWeight: 900,
4014
4048
  color: "#6366f1",
@@ -4018,18 +4052,18 @@ const Vo = [
4018
4052
  textTransform: "uppercase"
4019
4053
  }, children: "JSON" })
4020
4054
  ] }),
4021
- i.description && /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e7833ba", "data-source-path": "/src/components/ViewGateOverlay.tsx:3905", style: {
4055
+ d.description && /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e7833ba", "data-source-path": "/src/components/ViewGateOverlay.tsx:3905", style: {
4022
4056
  fontSize: "12px",
4023
4057
  color: "#64748b",
4024
4058
  marginTop: "6px",
4025
4059
  wordBreak: "break-word",
4026
4060
  fontWeight: 450,
4027
4061
  lineHeight: 1.4
4028
- }, children: i.description })
4062
+ }, children: d.description })
4029
4063
  ] })
4030
4064
  ]
4031
4065
  },
4032
- p
4066
+ u
4033
4067
  );
4034
4068
  }) })
4035
4069
  ] }, a.name);
@@ -4178,7 +4212,7 @@ const Vo = [
4178
4212
  ] }),
4179
4213
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e7833fd", "data-source-path": "/src/components/ViewGateOverlay.tsx:4075", style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
4180
4214
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e7833fe", "data-source-path": "/src/components/ViewGateOverlay.tsx:4076", children: [
4181
- /* @__PURE__ */ t.jsx("label", { "data-vg-id": "feec1077", "data-source-path": "/src/components/ViewGateOverlay.tsx:4077", style: { display: "block", fontSize: "12px", fontWeight: 700, color: "#64748b", marginBottom: "8px", textTransform: "uppercase", letterSpacing: "0.5px" }, children: o.priority }),
4215
+ /* @__PURE__ */ t.jsx("label", { "data-vg-id": "feec1077", "data-source-path": "/src/components/ViewGateOverlay.tsx:4077", style: { display: "block", fontSize: "12px", fontWeight: 700, color: "#64748b", marginBottom: "8px", textTransform: "uppercase", letterSpacing: "0.5px" }, children: s.priority }),
4182
4216
  /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e783415", "data-source-path": "/src/components/ViewGateOverlay.tsx:4078", style: { display: "flex", gap: "8px" }, children: ["low", "medium", "high", "urgent"].map((a) => /* @__PURE__ */ t.jsx(
4183
4217
  "button",
4184
4218
  {
@@ -4197,24 +4231,24 @@ const Vo = [
4197
4231
  transition: "all 0.2s",
4198
4232
  textTransform: "capitalize"
4199
4233
  },
4200
- children: o[a]
4234
+ children: s[a]
4201
4235
  },
4202
4236
  a
4203
4237
  )) })
4204
4238
  ] }),
4205
4239
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783416", "data-source-path": "/src/components/ViewGateOverlay.tsx:4098", style: { marginBottom: "8px" }, children: [
4206
- /* @__PURE__ */ t.jsx("label", { "data-vg-id": "feec107a", "data-source-path": "/src/components/ViewGateOverlay.tsx:4099", style: { display: "block", fontSize: "12px", fontWeight: 700, color: "#64748b", marginBottom: "8px", textTransform: "uppercase", letterSpacing: "0.5px" }, children: o.focusAreas }),
4240
+ /* @__PURE__ */ t.jsx("label", { "data-vg-id": "feec107a", "data-source-path": "/src/components/ViewGateOverlay.tsx:4099", style: { display: "block", fontSize: "12px", fontWeight: 700, color: "#64748b", marginBottom: "8px", textTransform: "uppercase", letterSpacing: "0.5px" }, children: s.focusAreas }),
4207
4241
  /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e783418", "data-source-path": "/src/components/ViewGateOverlay.tsx:4100", style: { display: "flex", gap: "8px" }, children: [
4208
- { id: "frontend", label: o.frontend, icon: /* @__PURE__ */ t.jsx(Qt, { "data-vg-id": "b806c346", "data-source-path": "/src/components/ViewGateOverlay.tsx:4102", size: 14 }), color: "#10b981", bg: "#ecfdf5", border: "#d1fae5" },
4209
- { id: "backend", label: o.backend, icon: /* @__PURE__ */ t.jsx(Ye, { "data-vg-id": "b1e4c6d6", "data-source-path": "/src/components/ViewGateOverlay.tsx:4103", size: 14 }), color: "#6366f1", bg: "#eef2ff", border: "#e0e7ff" },
4210
- { id: "ux", label: o.ux, icon: /* @__PURE__ */ t.jsx(Gt, { "data-vg-id": "ea069d93", "data-source-path": "/src/components/ViewGateOverlay.tsx:4104", size: 14 }), color: "#d946ef", bg: "#fdf4ff", border: "#f5d0fe" }
4242
+ { id: "frontend", label: s.frontend, icon: /* @__PURE__ */ t.jsx(Qt, { "data-vg-id": "b806c346", "data-source-path": "/src/components/ViewGateOverlay.tsx:4102", size: 14 }), color: "#10b981", bg: "#ecfdf5", border: "#d1fae5" },
4243
+ { id: "backend", label: s.backend, icon: /* @__PURE__ */ t.jsx(Ye, { "data-vg-id": "b1e4c6d6", "data-source-path": "/src/components/ViewGateOverlay.tsx:4103", size: 14 }), color: "#6366f1", bg: "#eef2ff", border: "#e0e7ff" },
4244
+ { id: "ux", label: s.ux, icon: /* @__PURE__ */ t.jsx(Gt, { "data-vg-id": "ea069d93", "data-source-path": "/src/components/ViewGateOverlay.tsx:4104", size: 14 }), color: "#d946ef", bg: "#fdf4ff", border: "#f5d0fe" }
4211
4245
  ].filter((a) => a.id === "backend" ? Mt : a.id === "ux" ? R : !0).map((a) => {
4212
4246
  const n = pt.includes(a.id);
4213
4247
  return /* @__PURE__ */ t.jsxs(
4214
4248
  "button",
4215
4249
  {
4216
4250
  onClick: () => {
4217
- ua(n ? pt.filter((i) => i !== a.id) : [...pt, a.id]);
4251
+ fa(n ? pt.filter((d) => d !== a.id) : [...pt, a.id]);
4218
4252
  },
4219
4253
  style: {
4220
4254
  flex: 1,
@@ -4246,7 +4280,7 @@ const Vo = [
4246
4280
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e78341d", "data-source-path": "/src/components/ViewGateOverlay.tsx:4141", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "12px" }, children: [
4247
4281
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783433", "data-source-path": "/src/components/ViewGateOverlay.tsx:4142", style: { display: "flex", alignItems: "center", gap: "6px" }, children: [
4248
4282
  /* @__PURE__ */ t.jsx(ea, { "data-vg-id": "d8816599", "data-source-path": "/src/components/ViewGateOverlay.tsx:4143", size: 14, style: { color: "#d946ef" } }),
4249
- /* @__PURE__ */ t.jsx("span", { "data-vg-id": "81620ca", "data-source-path": "/src/components/ViewGateOverlay.tsx:4144", style: { fontSize: "11px", fontWeight: 800, color: "#64748b", textTransform: "uppercase" }, children: o.figmaLink })
4283
+ /* @__PURE__ */ t.jsx("span", { "data-vg-id": "81620ca", "data-source-path": "/src/components/ViewGateOverlay.tsx:4144", style: { fontSize: "11px", fontWeight: 800, color: "#64748b", textTransform: "uppercase" }, children: s.figmaLink })
4250
4284
  ] }),
4251
4285
  /* @__PURE__ */ t.jsxs(
4252
4286
  "button",
@@ -4257,7 +4291,7 @@ const Vo = [
4257
4291
  style: { background: "#fdf4ff", border: "1px solid #f5d0fe", color: "#d946ef", borderRadius: "8px", padding: "4px 10px", fontSize: "11px", fontWeight: 800, cursor: "pointer" },
4258
4292
  children: [
4259
4293
  "+ ",
4260
- o.addLink
4294
+ s.addLink
4261
4295
  ]
4262
4296
  }
4263
4297
  )
@@ -4271,11 +4305,11 @@ const Vo = [
4271
4305
  type: "text",
4272
4306
  className: "vg-textarea",
4273
4307
  style: { padding: "8px 12px", fontSize: "12px", minHeight: "auto", borderRadius: "10px" },
4274
- placeholder: o.figmaNamePlaceholder,
4308
+ placeholder: s.figmaNamePlaceholder,
4275
4309
  value: a.name,
4276
- onChange: (i) => {
4277
- const p = [...tt];
4278
- p[n] && (p[n].name = i.target.value, jt(p));
4310
+ onChange: (d) => {
4311
+ const u = [...tt];
4312
+ u[n] && (u[n].name = d.target.value, jt(u));
4279
4313
  }
4280
4314
  }
4281
4315
  ),
@@ -4287,22 +4321,22 @@ const Vo = [
4287
4321
  type: "text",
4288
4322
  className: "vg-textarea",
4289
4323
  style: { padding: "8px 12px", fontSize: "12px", minHeight: "auto", borderRadius: "10px" },
4290
- placeholder: o.figmaLinkPlaceholder,
4324
+ placeholder: s.figmaLinkPlaceholder,
4291
4325
  value: a.link,
4292
- onChange: (i) => {
4293
- const p = [...tt];
4294
- p[n] && (p[n].link = i.target.value, jt(p));
4326
+ onChange: (d) => {
4327
+ const u = [...tt];
4328
+ u[n] && (u[n].link = d.target.value, jt(u));
4295
4329
  }
4296
4330
  }
4297
4331
  ),
4298
- tt.length > 1 && /* @__PURE__ */ t.jsx("button", { "data-vg-id": "5861c138", "data-source-path": "/src/components/ViewGateOverlay.tsx:4179", onClick: () => jt(tt.filter((i, p) => p !== n)), style: { color: "#ef4444", background: "none", border: "none", cursor: "pointer" }, children: /* @__PURE__ */ t.jsx(ra, { "data-vg-id": "45b44621", "data-source-path": "/src/components/ViewGateOverlay.tsx:4180", size: 16 }) })
4332
+ tt.length > 1 && /* @__PURE__ */ t.jsx("button", { "data-vg-id": "5861c138", "data-source-path": "/src/components/ViewGateOverlay.tsx:4179", onClick: () => jt(tt.filter((d, u) => u !== n)), style: { color: "#ef4444", background: "none", border: "none", cursor: "pointer" }, children: /* @__PURE__ */ t.jsx(ra, { "data-vg-id": "45b44621", "data-source-path": "/src/components/ViewGateOverlay.tsx:4180", size: 16 }) })
4299
4333
  ] }, n)) })
4300
4334
  ] }),
4301
4335
  Mt && pt.includes("backend") && /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783452", "data-source-path": "/src/components/ViewGateOverlay.tsx:4191", className: "vg-animate-slide", style: { padding: "16px", borderRadius: "16px", background: "#f8fafc", border: "1px solid #e2e8f0" }, children: [
4302
4336
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783453", "data-source-path": "/src/components/ViewGateOverlay.tsx:4192", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "8px" }, children: [
4303
4337
  /* @__PURE__ */ t.jsxs("div", { "data-vg-id": "2e783454", "data-source-path": "/src/components/ViewGateOverlay.tsx:4193", style: { display: "flex", alignItems: "center", gap: "6px" }, children: [
4304
4338
  /* @__PURE__ */ t.jsx(Ye, { "data-vg-id": "b1e4c711", "data-source-path": "/src/components/ViewGateOverlay.tsx:4194", size: 14, style: { color: "#6366f1" } }),
4305
- /* @__PURE__ */ t.jsx("span", { "data-vg-id": "81620eb", "data-source-path": "/src/components/ViewGateOverlay.tsx:4195", style: { fontSize: "11px", fontWeight: 800, color: "#64748b", textTransform: "uppercase" }, children: o.endpoint })
4339
+ /* @__PURE__ */ t.jsx("span", { "data-vg-id": "81620eb", "data-source-path": "/src/components/ViewGateOverlay.tsx:4195", style: { fontSize: "11px", fontWeight: 800, color: "#64748b", textTransform: "uppercase" }, children: s.endpoint })
4306
4340
  ] }),
4307
4341
  Ue.length > 0 && /* @__PURE__ */ t.jsxs("span", { "data-vg-id": "81620ec", "data-source-path": "/src/components/ViewGateOverlay.tsx:4198", style: { fontSize: "10px", background: "#eef2ff", color: "#6366f1", padding: "2px 8px", borderRadius: "12px", fontWeight: 700 }, children: [
4308
4342
  Ue.length,
@@ -4321,8 +4355,8 @@ const Vo = [
4321
4355
  /* @__PURE__ */ t.jsx("div", { "data-vg-id": "2e783459", "data-source-path": "/src/components/ViewGateOverlay.tsx:4207", style: { display: "flex", gap: "4px", overflow: "hidden" }, children: Ue.length > 0 ? Ue.slice(0, 2).map((a) => /* @__PURE__ */ t.jsx("span", { "data-vg-id": "81620ef", "data-source-path": "/src/components/ViewGateOverlay.tsx:4209", style: { background: "#eef2ff", color: "#6366f1", padding: "1px 6px", borderRadius: "4px", fontSize: "11px", fontWeight: 600 }, children: a.split("|").pop() }, a)).concat(Ue.length > 2 ? [/* @__PURE__ */ t.jsxs("span", { "data-vg-id": "81620f0", "data-source-path": "/src/components/ViewGateOverlay.tsx:4209", children: [
4322
4356
  "+",
4323
4357
  Ue.length - 2
4324
- ] }, "plus")] : []) : o.selectEndpoint }),
4325
- /* @__PURE__ */ t.jsx(yr, { "data-vg-id": "1cd393c8", "data-source-path": "/src/components/ViewGateOverlay.tsx:4212", size: 14, style: { color: "#64748b" } })
4358
+ ] }, "plus")] : []) : s.selectEndpoint }),
4359
+ /* @__PURE__ */ t.jsx(br, { "data-vg-id": "1cd393c8", "data-source-path": "/src/components/ViewGateOverlay.tsx:4212", size: 14, style: { color: "#64748b" } })
4326
4360
  ]
4327
4361
  }
4328
4362
  )
@@ -4333,8 +4367,8 @@ const Vo = [
4333
4367
  "textarea",
4334
4368
  {
4335
4369
  className: "vg-textarea",
4336
- value: Qa,
4337
- onChange: (a) => er(a.target.value),
4370
+ value: er,
4371
+ onChange: (a) => tr(a.target.value),
4338
4372
  rows: 5,
4339
4373
  style: { minHeight: "120px", fontSize: "15px" }
4340
4374
  }
@@ -4352,7 +4386,7 @@ const Vo = [
4352
4386
  onClick: () => {
4353
4387
  Bt(null), je([]);
4354
4388
  },
4355
- children: o.cancel
4389
+ children: s.cancel
4356
4390
  }
4357
4391
  ),
4358
4392
  /* @__PURE__ */ t.jsx(
@@ -4371,80 +4405,80 @@ const Vo = [
4371
4405
  },
4372
4406
  disabled: Ut,
4373
4407
  onClick: async () => {
4374
- tr(!0);
4408
+ ar(!0);
4375
4409
  try {
4376
- (await fetch(`${d}/api/annotations/${lt}`, {
4410
+ (await fetch(`${c}/api/annotations/${lt}`, {
4377
4411
  method: "PATCH",
4378
4412
  headers: {
4379
4413
  "Content-Type": "application/json",
4380
4414
  Authorization: Z ? `Bearer ${Z}` : "",
4381
- "x-api-key": c || ""
4415
+ "x-api-key": i || ""
4382
4416
  },
4383
4417
  body: JSON.stringify({
4384
- message: Qa,
4418
+ message: er,
4385
4419
  priority: T,
4386
4420
  focusAreas: pt,
4387
4421
  figmaReference: tt,
4388
4422
  backendEndpoints: Ue
4389
4423
  })
4390
- })).ok && (Bt(null), $t(), s(o.updateSuccess, "success"));
4424
+ })).ok && (Bt(null), $t(), o(s.updateSuccess, "success"));
4391
4425
  } catch {
4392
4426
  } finally {
4393
- tr(!1);
4427
+ ar(!1);
4394
4428
  }
4395
4429
  },
4396
- children: Ut ? "..." : o.save
4430
+ children: Ut ? "..." : s.save
4397
4431
  }
4398
4432
  )
4399
4433
  ] })
4400
4434
  ] }) })
4401
4435
  ] }) });
4402
4436
  };
4403
- function qr(e, s, r) {
4404
- if (!s.endsWith(".tsx") && !s.endsWith(".jsx") || s.includes("node_modules")) return e;
4405
- const o = (k) => k.replace(/\\/g, "/"), c = o(s).replace(o(r), ""), d = (k) => {
4437
+ function qr(e, o, r) {
4438
+ if (!o.endsWith(".tsx") && !o.endsWith(".jsx") || o.includes("node_modules")) return e;
4439
+ const s = (S) => S.replace(/\\/g, "/"), i = s(o).replace(s(r), ""), c = (S) => {
4406
4440
  let y = 0;
4407
- for (let g = 0; g < k.length; g++) y = Math.imul(31, y) + k.charCodeAt(g) | 0;
4441
+ for (let g = 0; g < S.length; g++) y = Math.imul(31, y) + S.charCodeAt(g) | 0;
4408
4442
  return (y >>> 0).toString(16);
4409
4443
  };
4410
4444
  let l = 0;
4411
4445
  return e.split(`
4412
- `).map((k, y) => {
4446
+ `).map((S, y) => {
4413
4447
  const g = y + 1;
4414
- return k.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (h, S, V) => {
4448
+ return S.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (h, k, V) => {
4415
4449
  if (h.includes("data-source-path") || h.includes("data-vg-id") || V === "Fragment" || V === "React.Fragment")
4416
4450
  return h;
4417
4451
  l++;
4418
- const E = d(`${c}:${V}:${l}`);
4419
- return `${S}<${V} data-vg-id="${E}" data-source-path="${c}:${g}"`;
4452
+ const E = c(`${i}:${V}:${l}`);
4453
+ return `${k}<${V} data-vg-id="${E}" data-source-path="${i}:${g}"`;
4420
4454
  });
4421
4455
  }).join(`
4422
4456
  `);
4423
4457
  }
4424
- function tn() {
4458
+ function sn() {
4425
4459
  return {
4426
4460
  name: "vite-plugin-viewgate",
4427
4461
  enforce: "pre",
4428
- transform(e, s) {
4462
+ transform(e, o) {
4429
4463
  return {
4430
- code: qr(e, s, process.cwd()),
4464
+ code: qr(e, o, process.cwd()),
4431
4465
  map: null
4432
4466
  };
4433
4467
  }
4434
4468
  };
4435
4469
  }
4436
- function Uo(e) {
4437
- const s = this.resourcePath;
4438
- return s ? (this.getOptions && this.getOptions(), qr(e, s, process.cwd())) : e;
4470
+ function Ks(e) {
4471
+ const o = this.resourcePath;
4472
+ return o ? (this.getOptions && this.getOptions(), qr(e, o, process.cwd())) : e;
4439
4473
  }
4440
- function an(e) {
4441
- return Uo.call(this, e);
4474
+ function nn(e) {
4475
+ return Ks.call(this, e);
4442
4476
  }
4443
4477
  export {
4444
- en as ViewGate,
4445
- Ho as ViewGateOverlay,
4478
+ on as ViewGate,
4479
+ Xs as ViewGateOverlay,
4446
4480
  qr as transformSourcePaths,
4447
- Ro as useViewGate,
4448
- an as viewgateNextLoader,
4449
- tn as viewgatePlugin
4481
+ Rs as useViewGate,
4482
+ nn as viewgateNextLoader,
4483
+ sn as viewgatePlugin
4450
4484
  };