viewgate-wrapper 1.10.34 → 1.10.35

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.
@@ -62,7 +62,7 @@ function Wa() {
62
62
  return Q = Q.displayName, Q || (Q = v.displayName || v.name || "", Q = Q !== "" ? "ForwardRef(" + Q + ")" : "ForwardRef"), Q;
63
63
  case P:
64
64
  return v = Q.displayName || null, v !== null ? v : t(Q.type) || "Memo";
65
- case L:
65
+ case T:
66
66
  v = Q._payload, Q = Q._init;
67
67
  try {
68
68
  return t(Q(v));
@@ -93,7 +93,7 @@ function Wa() {
93
93
  }
94
94
  function r(Q) {
95
95
  if (Q === C) return "<>";
96
- if (typeof Q == "object" && Q !== null && Q.$$typeof === L)
96
+ if (typeof Q == "object" && Q !== null && Q.$$typeof === T)
97
97
  return "<...>";
98
98
  try {
99
99
  var v = t(Q);
@@ -216,12 +216,12 @@ React keys must be passed directly to JSX without using spread:
216
216
  );
217
217
  }
218
218
  function B(Q) {
219
- f(Q) ? Q._store && (Q._store.validated = 1) : typeof Q == "object" && Q !== null && Q.$$typeof === L && (Q._payload.status === "fulfilled" ? f(Q._payload.value) && Q._payload.value._store && (Q._payload.value._store.validated = 1) : Q._store && (Q._store.validated = 1));
219
+ f(Q) ? Q._store && (Q._store.validated = 1) : typeof Q == "object" && Q !== null && Q.$$typeof === T && (Q._payload.status === "fulfilled" ? f(Q._payload.value) && Q._payload.value._store && (Q._payload.value._store.validated = 1) : Q._store && (Q._store.validated = 1));
220
220
  }
221
221
  function f(Q) {
222
222
  return typeof Q == "object" && Q !== null && Q.$$typeof === h;
223
223
  }
224
- var u = gt, h = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), C = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), H = /* @__PURE__ */ Symbol.for("react.consumer"), y = /* @__PURE__ */ Symbol.for("react.context"), F = /* @__PURE__ */ Symbol.for("react.forward_ref"), K = /* @__PURE__ */ Symbol.for("react.suspense"), _ = /* @__PURE__ */ Symbol.for("react.suspense_list"), P = /* @__PURE__ */ Symbol.for("react.memo"), L = /* @__PURE__ */ Symbol.for("react.lazy"), pA = /* @__PURE__ */ Symbol.for("react.activity"), dA = /* @__PURE__ */ Symbol.for("react.client.reference"), Y = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, iA = Object.prototype.hasOwnProperty, X = Array.isArray, xA = console.createTask ? console.createTask : function() {
224
+ var u = gt, h = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), C = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), H = /* @__PURE__ */ Symbol.for("react.consumer"), y = /* @__PURE__ */ Symbol.for("react.context"), F = /* @__PURE__ */ Symbol.for("react.forward_ref"), K = /* @__PURE__ */ Symbol.for("react.suspense"), _ = /* @__PURE__ */ Symbol.for("react.suspense_list"), P = /* @__PURE__ */ Symbol.for("react.memo"), T = /* @__PURE__ */ Symbol.for("react.lazy"), pA = /* @__PURE__ */ Symbol.for("react.activity"), dA = /* @__PURE__ */ Symbol.for("react.client.reference"), Y = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, iA = Object.prototype.hasOwnProperty, X = Array.isArray, xA = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
227
  u = {
@@ -509,8 +509,8 @@ async function Ui(...t) {
509
509
  P,
510
510
  0
511
511
  ];
512
- const L = !G(a), pA = h(), dA = pA.data, Y = pA._c, iA = G(Y) ? dA : Y;
513
- if (L && (a = ce(a) ? a(iA, dA) : a, p({
512
+ const T = !G(a), pA = h(), dA = pA.data, Y = pA._c, iA = G(Y) ? dA : Y;
513
+ if (T && (a = ce(a) ? a(iA, dA) : a, p({
514
514
  data: a,
515
515
  _c: iA
516
516
  })), ce(F))
@@ -525,7 +525,7 @@ async function Ui(...t) {
525
525
  }), P !== x[u][0]) {
526
526
  if (_) throw K;
527
527
  return F;
528
- } else _ && L && l(K) && (o = !0, p({
528
+ } else _ && T && l(K) && (o = !0, p({
529
529
  data: iA,
530
530
  _c: SA
531
531
  }));
@@ -692,7 +692,7 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
692
692
  }), ds = {
693
693
  dedupe: !0
694
694
  }, jn = Promise.resolve(SA), xc = () => Ce, yc = (t, A, e) => {
695
- const { cache: r, compare: s, suspense: n, fallbackData: o, revalidateOnMount: i, revalidateIfStale: a, refreshInterval: l, refreshWhenHidden: c, refreshWhenOffline: B, keepPreviousData: f, strictServerPrefetchWarning: u } = e, [h, p, C, x] = Qe.get(r), [w, H] = En(t), y = IA(!1), F = IA(!1), K = IA(w), _ = IA(A), P = IA(e), L = () => P.current, pA = () => L().isVisible() && L().isOnline(), [dA, Y, iA, X] = Ci(r, w), xA = IA({}).current, uA = G(o) ? G(e.fallback) ? SA : e.fallback[w] : o, yA = (Z, R) => {
695
+ const { cache: r, compare: s, suspense: n, fallbackData: o, revalidateOnMount: i, revalidateIfStale: a, refreshInterval: l, refreshWhenHidden: c, refreshWhenOffline: B, keepPreviousData: f, strictServerPrefetchWarning: u } = e, [h, p, C, x] = Qe.get(r), [w, H] = En(t), y = IA(!1), F = IA(!1), K = IA(w), _ = IA(A), P = IA(e), T = () => P.current, pA = () => T().isVisible() && T().isOnline(), [dA, Y, iA, X] = Ci(r, w), xA = IA({}).current, uA = G(o) ? G(e.fallback) ? SA : e.fallback[w] : o, yA = (Z, R) => {
696
696
  for (const eA in xA) {
697
697
  const rA = eA;
698
698
  if (rA === "data") {
@@ -706,7 +706,7 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
706
706
  const Z = dA(), R = X(), eA = (nA) => {
707
707
  const QA = Ke(nA);
708
708
  return delete QA._k, (() => {
709
- if (!w || !A || L().isPaused()) return !1;
709
+ if (!w || !A || T().isPaused()) return !1;
710
710
  if (Re && !G(i)) return i;
711
711
  const qA = G(uA) ? QA.data : uA;
712
712
  return G(qA) || a;
@@ -742,10 +742,10 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
742
742
  kn.useSyncExternalStore(xc, () => (TA.current = !1, TA), () => (TA.current = !0, TA));
743
743
  const Me = TA.current;
744
744
  u && Me && !n && z && console.warn(`Missing pre-initiated data for serialized key "${w}" 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 Fe = !w || !A || L().isPaused() || Q && !G(j) ? !1 : Re && !G(i) ? i : n ? G(V) ? !1 : a : G(V) || a, $r = Re && Fe, Ne = G(ZA.isValidating) ? $r : ZA.isValidating, ue = G(ZA.isLoading) ? $r : ZA.isLoading, XA = Ie(
745
+ const Fe = !w || !A || T().isPaused() || Q && !G(j) ? !1 : Re && !G(i) ? i : n ? G(V) ? !1 : a : G(V) || a, $r = Re && Fe, Ne = G(ZA.isValidating) ? $r : ZA.isValidating, ue = G(ZA.isLoading) ? $r : ZA.isLoading, XA = Ie(
746
746
  async (Z) => {
747
747
  const R = _.current;
748
- if (!w || !R || F.current || L().isPaused())
748
+ if (!w || !R || F.current || T().isPaused())
749
749
  return !1;
750
750
  let eA, rA, CA = !0;
751
751
  const DA = Z || {}, nA = !C[w] || !DA.dedupe, QA = () => Wn ? !F.current && w === K.current && y.current : w === K.current, Ge = {
@@ -762,25 +762,25 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
762
762
  G(dA().data) && (WA.isLoading = !0);
763
763
  try {
764
764
  if (nA && (Y(WA), e.loadingTimeout && G(dA().data) && setTimeout(() => {
765
- CA && QA() && L().onLoadingSlow(w, e);
765
+ CA && QA() && T().onLoadingSlow(w, e);
766
766
  }, e.loadingTimeout), C[w] = [
767
767
  R(H),
768
768
  js()
769
769
  ]), [eA, rA] = C[w], eA = await eA, nA && setTimeout(ft, e.dedupingInterval), !C[w] || C[w][1] !== rA)
770
- return nA && QA() && L().onDiscarded(w), !1;
770
+ return nA && QA() && T().onDiscarded(w), !1;
771
771
  Ge.error = SA;
772
772
  const fA = p[w];
773
773
  if (!G(fA) && // case 1
774
774
  (rA <= fA[0] || // case 2
775
775
  rA <= fA[1] || // case 3
776
776
  fA[1] === 0))
777
- return qA(), nA && QA() && L().onDiscarded(w), !1;
777
+ return qA(), nA && QA() && T().onDiscarded(w), !1;
778
778
  const Ae = dA().data;
779
- Ge.data = s(Ae, eA) ? Ae : eA, nA && QA() && L().onSuccess(eA, w, e);
779
+ Ge.data = s(Ae, eA) ? Ae : eA, nA && QA() && T().onSuccess(eA, w, e);
780
780
  } catch (fA) {
781
781
  ft();
782
- const Ae = L(), { shouldRetryOnError: fe } = Ae;
783
- Ae.isPaused() || (Ge.error = fA, nA && QA() && (Ae.onError(fA, w, Ae), (fe === !0 || ce(fe) && fe(fA)) && (!L().revalidateOnFocus || !L().revalidateOnReconnect || pA()) && Ae.onErrorRetry(fA, w, Ae, (Yt) => {
782
+ const Ae = T(), { shouldRetryOnError: fe } = Ae;
783
+ Ae.isPaused() || (Ge.error = fA, nA && QA() && (Ae.onError(fA, w, Ae), (fe === !0 || ce(fe) && fe(fA)) && (!T().revalidateOnFocus || !T().revalidateOnReconnect || pA()) && Ae.onErrorRetry(fA, w, Ae, (Yt) => {
784
784
  const VA = h[w];
785
785
  VA && VA[0] && VA[0](Pn, Yt);
786
786
  }, {
@@ -817,13 +817,13 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
817
817
  if (!w) return;
818
818
  const Z = XA.bind(SA, ds);
819
819
  let R = 0;
820
- L().revalidateOnFocus && (R = Date.now() + L().focusThrottleInterval);
820
+ T().revalidateOnFocus && (R = Date.now() + T().focusThrottleInterval);
821
821
  const rA = Ec(w, h, (CA, DA = {}) => {
822
822
  if (CA == wi) {
823
823
  const nA = Date.now();
824
- L().revalidateOnFocus && nA > R && pA() && (R = nA + L().focusThrottleInterval, Z());
824
+ T().revalidateOnFocus && nA > R && pA() && (R = nA + T().focusThrottleInterval, Z());
825
825
  } else if (CA == hi)
826
- L().revalidateOnReconnect && pA() && Z();
826
+ T().revalidateOnReconnect && pA() && Z();
827
827
  else {
828
828
  if (CA == pi)
829
829
  return XA();
@@ -845,7 +845,7 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
845
845
  rA && Z !== -1 && (Z = setTimeout(eA, rA));
846
846
  }
847
847
  function eA() {
848
- !dA().error && (c || L().isVisible()) && (B || L().isOnline()) ? XA(ds).then(R) : R();
848
+ !dA().error && (c || T().isVisible()) && (B || T().isOnline()) ? XA(ds).then(R) : R();
849
849
  }
850
850
  return R(), () => {
851
851
  Z && (clearTimeout(Z), Z = -1);
@@ -2434,8 +2434,8 @@ const ge = (t) => t.type === 15, BA = (t) => t.type === 17, O = (t) => t.type ==
2434
2434
  const F = (K) => {
2435
2435
  const _ = K.filter(mA);
2436
2436
  let P = "(";
2437
- for (const L of _)
2438
- P += L.type === 18 && L.name === "calc" ? F(L.values) : BA(L) ? L.number : L.type === 6 || O(L) ? L.value : "";
2437
+ for (const T of _)
2438
+ P += T.type === 18 && T.name === "calc" ? F(T.values) : BA(T) ? T.number : T.type === 6 || O(T) ? T.value : "";
2439
2439
  return P += ")", P;
2440
2440
  };
2441
2441
  if (H.type === 18) {
@@ -5415,8 +5415,8 @@ class iw {
5415
5415
  f.push((s + o) / r.width), f.push((c + a) / r.width), f.push((n + B) / r.height), f.push((i + l) / r.height);
5416
5416
  const u = Math.max(...f);
5417
5417
  u > 1 && (s /= u, n /= u, o /= u, i /= u, a /= u, l /= u, c /= u, B /= u);
5418
- const h = r.width - o, p = r.height - l, C = r.width - a, x = r.height - B, w = e.borderTopWidth, H = e.borderRightWidth, y = e.borderBottomWidth, F = e.borderLeftWidth, K = D(e.paddingTop, A.bounds.width), _ = D(e.paddingRight, A.bounds.width), P = D(e.paddingBottom, A.bounds.width), L = D(e.paddingLeft, A.bounds.width);
5419
- this.topLeftBorderDoubleOuterBox = s > 0 || n > 0 ? sA(r.left + F / 3, r.top + w / 3, s - F / 3, n - w / 3, J.TOP_LEFT) : new E(r.left + F / 3, r.top + w / 3), this.topRightBorderDoubleOuterBox = s > 0 || n > 0 ? sA(r.left + h, r.top + w / 3, o - H / 3, i - w / 3, J.TOP_RIGHT) : new E(r.left + r.width - H / 3, r.top + w / 3), this.bottomRightBorderDoubleOuterBox = a > 0 || l > 0 ? sA(r.left + C, r.top + p, a - H / 3, l - y / 3, J.BOTTOM_RIGHT) : new E(r.left + r.width - H / 3, r.top + r.height - y / 3), this.bottomLeftBorderDoubleOuterBox = c > 0 || B > 0 ? sA(r.left + F / 3, r.top + x, c - F / 3, B - y / 3, J.BOTTOM_LEFT) : new E(r.left + F / 3, r.top + r.height - y / 3), this.topLeftBorderDoubleInnerBox = s > 0 || n > 0 ? sA(r.left + F * 2 / 3, r.top + w * 2 / 3, s - F * 2 / 3, n - w * 2 / 3, J.TOP_LEFT) : new E(r.left + F * 2 / 3, r.top + w * 2 / 3), this.topRightBorderDoubleInnerBox = s > 0 || n > 0 ? sA(r.left + h, r.top + w * 2 / 3, o - H * 2 / 3, i - w * 2 / 3, J.TOP_RIGHT) : new E(r.left + r.width - H * 2 / 3, r.top + w * 2 / 3), this.bottomRightBorderDoubleInnerBox = a > 0 || l > 0 ? sA(r.left + C, r.top + p, a - H * 2 / 3, l - y * 2 / 3, J.BOTTOM_RIGHT) : new E(r.left + r.width - H * 2 / 3, r.top + r.height - y * 2 / 3), this.bottomLeftBorderDoubleInnerBox = c > 0 || B > 0 ? sA(r.left + F * 2 / 3, r.top + x, c - F * 2 / 3, B - y * 2 / 3, J.BOTTOM_LEFT) : new E(r.left + F * 2 / 3, r.top + r.height - y * 2 / 3), this.topLeftBorderStroke = s > 0 || n > 0 ? sA(r.left + F / 2, r.top + w / 2, s - F / 2, n - w / 2, J.TOP_LEFT) : new E(r.left + F / 2, r.top + w / 2), this.topRightBorderStroke = s > 0 || n > 0 ? sA(r.left + h, r.top + w / 2, o - H / 2, i - w / 2, J.TOP_RIGHT) : new E(r.left + r.width - H / 2, r.top + w / 2), this.bottomRightBorderStroke = a > 0 || l > 0 ? sA(r.left + C, r.top + p, a - H / 2, l - y / 2, J.BOTTOM_RIGHT) : new E(r.left + r.width - H / 2, r.top + r.height - y / 2), this.bottomLeftBorderStroke = c > 0 || B > 0 ? sA(r.left + F / 2, r.top + x, c - F / 2, B - y / 2, J.BOTTOM_LEFT) : new E(r.left + F / 2, r.top + r.height - y / 2), this.topLeftBorderBox = s > 0 || n > 0 ? sA(r.left, r.top, s, n, J.TOP_LEFT) : new E(r.left, r.top), this.topRightBorderBox = o > 0 || i > 0 ? sA(r.left + h, r.top, o, i, J.TOP_RIGHT) : new E(r.left + r.width, r.top), this.bottomRightBorderBox = a > 0 || l > 0 ? sA(r.left + C, r.top + p, a, l, J.BOTTOM_RIGHT) : new E(r.left + r.width, r.top + r.height), this.bottomLeftBorderBox = c > 0 || B > 0 ? sA(r.left, r.top + x, c, B, J.BOTTOM_LEFT) : new E(r.left, r.top + r.height), this.topLeftPaddingBox = s > 0 || n > 0 ? sA(r.left + F, r.top + w, Math.max(0, s - F), Math.max(0, n - w), J.TOP_LEFT) : new E(r.left + F, r.top + w), this.topRightPaddingBox = o > 0 || i > 0 ? sA(r.left + Math.min(h, r.width - H), r.top + w, h > r.width + H ? 0 : Math.max(0, o - H), Math.max(0, i - w), J.TOP_RIGHT) : new E(r.left + r.width - H, r.top + w), this.bottomRightPaddingBox = a > 0 || l > 0 ? sA(r.left + Math.min(C, r.width - F), r.top + Math.min(p, r.height - y), Math.max(0, a - H), Math.max(0, l - y), J.BOTTOM_RIGHT) : new E(r.left + r.width - H, r.top + r.height - y), this.bottomLeftPaddingBox = c > 0 || B > 0 ? sA(r.left + F, r.top + Math.min(x, r.height - y), Math.max(0, c - F), Math.max(0, B - y), J.BOTTOM_LEFT) : new E(r.left + F, r.top + r.height - y), this.topLeftContentBox = s > 0 || n > 0 ? sA(r.left + F + L, r.top + w + K, Math.max(0, s - (F + L)), Math.max(0, n - (w + K)), J.TOP_LEFT) : new E(r.left + F + L, r.top + w + K), this.topRightContentBox = o > 0 || i > 0 ? sA(r.left + Math.min(h, r.width + F + L), r.top + w + K, h > r.width + F + L ? 0 : o - F + L, i - (w + K), J.TOP_RIGHT) : new E(r.left + r.width - (H + _), r.top + w + K), this.bottomRightContentBox = a > 0 || l > 0 ? sA(r.left + Math.min(C, r.width - (F + L)), r.top + Math.min(p, r.height + w + K), Math.max(0, a - (H + _)), l - (y + P), J.BOTTOM_RIGHT) : new E(r.left + r.width - (H + _), r.top + r.height - (y + P)), this.bottomLeftContentBox = c > 0 || B > 0 ? sA(r.left + F + L, r.top + x, Math.max(0, c - (F + L)), B - (y + P), J.BOTTOM_LEFT) : new E(r.left + F + L, r.top + r.height - (y + P));
5418
+ const h = r.width - o, p = r.height - l, C = r.width - a, x = r.height - B, w = e.borderTopWidth, H = e.borderRightWidth, y = e.borderBottomWidth, F = e.borderLeftWidth, K = D(e.paddingTop, A.bounds.width), _ = D(e.paddingRight, A.bounds.width), P = D(e.paddingBottom, A.bounds.width), T = D(e.paddingLeft, A.bounds.width);
5419
+ this.topLeftBorderDoubleOuterBox = s > 0 || n > 0 ? sA(r.left + F / 3, r.top + w / 3, s - F / 3, n - w / 3, J.TOP_LEFT) : new E(r.left + F / 3, r.top + w / 3), this.topRightBorderDoubleOuterBox = s > 0 || n > 0 ? sA(r.left + h, r.top + w / 3, o - H / 3, i - w / 3, J.TOP_RIGHT) : new E(r.left + r.width - H / 3, r.top + w / 3), this.bottomRightBorderDoubleOuterBox = a > 0 || l > 0 ? sA(r.left + C, r.top + p, a - H / 3, l - y / 3, J.BOTTOM_RIGHT) : new E(r.left + r.width - H / 3, r.top + r.height - y / 3), this.bottomLeftBorderDoubleOuterBox = c > 0 || B > 0 ? sA(r.left + F / 3, r.top + x, c - F / 3, B - y / 3, J.BOTTOM_LEFT) : new E(r.left + F / 3, r.top + r.height - y / 3), this.topLeftBorderDoubleInnerBox = s > 0 || n > 0 ? sA(r.left + F * 2 / 3, r.top + w * 2 / 3, s - F * 2 / 3, n - w * 2 / 3, J.TOP_LEFT) : new E(r.left + F * 2 / 3, r.top + w * 2 / 3), this.topRightBorderDoubleInnerBox = s > 0 || n > 0 ? sA(r.left + h, r.top + w * 2 / 3, o - H * 2 / 3, i - w * 2 / 3, J.TOP_RIGHT) : new E(r.left + r.width - H * 2 / 3, r.top + w * 2 / 3), this.bottomRightBorderDoubleInnerBox = a > 0 || l > 0 ? sA(r.left + C, r.top + p, a - H * 2 / 3, l - y * 2 / 3, J.BOTTOM_RIGHT) : new E(r.left + r.width - H * 2 / 3, r.top + r.height - y * 2 / 3), this.bottomLeftBorderDoubleInnerBox = c > 0 || B > 0 ? sA(r.left + F * 2 / 3, r.top + x, c - F * 2 / 3, B - y * 2 / 3, J.BOTTOM_LEFT) : new E(r.left + F * 2 / 3, r.top + r.height - y * 2 / 3), this.topLeftBorderStroke = s > 0 || n > 0 ? sA(r.left + F / 2, r.top + w / 2, s - F / 2, n - w / 2, J.TOP_LEFT) : new E(r.left + F / 2, r.top + w / 2), this.topRightBorderStroke = s > 0 || n > 0 ? sA(r.left + h, r.top + w / 2, o - H / 2, i - w / 2, J.TOP_RIGHT) : new E(r.left + r.width - H / 2, r.top + w / 2), this.bottomRightBorderStroke = a > 0 || l > 0 ? sA(r.left + C, r.top + p, a - H / 2, l - y / 2, J.BOTTOM_RIGHT) : new E(r.left + r.width - H / 2, r.top + r.height - y / 2), this.bottomLeftBorderStroke = c > 0 || B > 0 ? sA(r.left + F / 2, r.top + x, c - F / 2, B - y / 2, J.BOTTOM_LEFT) : new E(r.left + F / 2, r.top + r.height - y / 2), this.topLeftBorderBox = s > 0 || n > 0 ? sA(r.left, r.top, s, n, J.TOP_LEFT) : new E(r.left, r.top), this.topRightBorderBox = o > 0 || i > 0 ? sA(r.left + h, r.top, o, i, J.TOP_RIGHT) : new E(r.left + r.width, r.top), this.bottomRightBorderBox = a > 0 || l > 0 ? sA(r.left + C, r.top + p, a, l, J.BOTTOM_RIGHT) : new E(r.left + r.width, r.top + r.height), this.bottomLeftBorderBox = c > 0 || B > 0 ? sA(r.left, r.top + x, c, B, J.BOTTOM_LEFT) : new E(r.left, r.top + r.height), this.topLeftPaddingBox = s > 0 || n > 0 ? sA(r.left + F, r.top + w, Math.max(0, s - F), Math.max(0, n - w), J.TOP_LEFT) : new E(r.left + F, r.top + w), this.topRightPaddingBox = o > 0 || i > 0 ? sA(r.left + Math.min(h, r.width - H), r.top + w, h > r.width + H ? 0 : Math.max(0, o - H), Math.max(0, i - w), J.TOP_RIGHT) : new E(r.left + r.width - H, r.top + w), this.bottomRightPaddingBox = a > 0 || l > 0 ? sA(r.left + Math.min(C, r.width - F), r.top + Math.min(p, r.height - y), Math.max(0, a - H), Math.max(0, l - y), J.BOTTOM_RIGHT) : new E(r.left + r.width - H, r.top + r.height - y), this.bottomLeftPaddingBox = c > 0 || B > 0 ? sA(r.left + F, r.top + Math.min(x, r.height - y), Math.max(0, c - F), Math.max(0, B - y), J.BOTTOM_LEFT) : new E(r.left + F, r.top + r.height - y), this.topLeftContentBox = s > 0 || n > 0 ? sA(r.left + F + T, r.top + w + K, Math.max(0, s - (F + T)), Math.max(0, n - (w + K)), J.TOP_LEFT) : new E(r.left + F + T, r.top + w + K), this.topRightContentBox = o > 0 || i > 0 ? sA(r.left + Math.min(h, r.width + F + T), r.top + w + K, h > r.width + F + T ? 0 : o - F + T, i - (w + K), J.TOP_RIGHT) : new E(r.left + r.width - (H + _), r.top + w + K), this.bottomRightContentBox = a > 0 || l > 0 ? sA(r.left + Math.min(C, r.width - (F + T)), r.top + Math.min(p, r.height + w + K), Math.max(0, a - (H + _)), l - (y + P), J.BOTTOM_RIGHT) : new E(r.left + r.width - (H + _), r.top + r.height - (y + P)), this.bottomLeftContentBox = c > 0 || B > 0 ? sA(r.left + F + T, r.top + x, Math.max(0, c - (F + T)), B - (y + P), J.BOTTOM_LEFT) : new E(r.left + F + T, r.top + r.height - (y + P));
5420
5420
  }
5421
5421
  }
5422
5422
  var J;
@@ -7308,9 +7308,9 @@ const qw = (t) => {
7308
7308
  throw new Error("Unable to find element in cloned iframe");
7309
7309
  const y = await w.toIFrame(r, f);
7310
7310
  p.end("clone");
7311
- const { width: F, height: K, left: _, top: P } = vn(H) || kf(H) ? ol(H.ownerDocument) : Rr(u, H), L = eh(u, H, A.backgroundColor), pA = {
7311
+ const { width: F, height: K, left: _, top: P } = vn(H) || kf(H) ? ol(H.ownerDocument) : Rr(u, H), T = eh(u, H, A.backgroundColor), pA = {
7312
7312
  canvas: A.canvas,
7313
- backgroundColor: L,
7313
+ backgroundColor: T,
7314
7314
  scale: A.scale ?? s.devicePixelRatio ?? 1,
7315
7315
  x: (A.x ?? 0) + _,
7316
7316
  y: (A.y ?? 0) + P,
@@ -7321,7 +7321,7 @@ const qw = (t) => {
7321
7321
  };
7322
7322
  let dA, Y;
7323
7323
  try {
7324
- return C ? (u.logger.debug("Document cloned, using foreign object rendering"), p.start("render-foreignobject"), dA = await new Mw(u, pA).render(H), p.end("render-foreignobject")) : (u.logger.debug(`Document cloned, element located at ${_},${P} with size ${F}x${K} using computed rendering`), u.logger.debug("Starting DOM parsing"), p.start("parse"), Y = Ua(u, H), p.end("parse"), L === Y.styles.backgroundColor && (Y.styles.backgroundColor = Be.TRANSPARENT), u.logger.debug(`Starting renderer for element at ${pA.x},${pA.y} with size ${pA.width}x${pA.height}`), p.start("render"), dA = await new Sn(u, pA).render(Y), p.end("render")), p.start("cleanup"), (A.removeContainer ?? !0) && (ti.destroy(y) || u.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), p.end("cleanup"), p.end("total"), u.logger.debug("Finished rendering"), h && p.logSummary(), dA;
7324
+ return C ? (u.logger.debug("Document cloned, using foreign object rendering"), p.start("render-foreignobject"), dA = await new Mw(u, pA).render(H), p.end("render-foreignobject")) : (u.logger.debug(`Document cloned, element located at ${_},${P} with size ${F}x${K} using computed rendering`), u.logger.debug("Starting DOM parsing"), p.start("parse"), Y = Ua(u, H), p.end("parse"), T === Y.styles.backgroundColor && (Y.styles.backgroundColor = Be.TRANSPARENT), u.logger.debug(`Starting renderer for element at ${pA.x},${pA.y} with size ${pA.width}x${pA.height}`), p.start("render"), dA = await new Sn(u, pA).render(Y), p.end("render")), p.start("cleanup"), (A.removeContainer ?? !0) && (ti.destroy(y) || u.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), p.end("cleanup"), p.end("total"), u.logger.debug("Finished rendering"), h && p.logSummary(), dA;
7325
7325
  } finally {
7326
7326
  Y && Y.restoreTree();
7327
7327
  }
@@ -7652,15 +7652,15 @@ const qw = (t) => {
7652
7652
  const d = () => l(window.location.pathname);
7653
7653
  window.addEventListener("popstate", d);
7654
7654
  const b = window.history.pushState, U = window.history.replaceState;
7655
- return window.history.pushState = function(...T) {
7656
- b.apply(this, T), d();
7657
- }, window.history.replaceState = function(...T) {
7658
- U.apply(this, T), d();
7655
+ return window.history.pushState = function(...L) {
7656
+ b.apply(this, L), d();
7657
+ }, window.history.replaceState = function(...L) {
7658
+ U.apply(this, L), d();
7659
7659
  }, () => {
7660
7660
  window.removeEventListener("popstate", d), window.history.pushState = b, window.history.replaceState = U;
7661
7661
  };
7662
7662
  }, []);
7663
- const [c, B] = k(!1), [f, u] = k("medium"), [h, p] = k("medium"), [C, x] = k("all"), [w, H] = k(null), [y, F] = k(null), [K, _] = k(""), [P, L] = k(!1), [pA, dA] = k(!1), [Y, iA] = k(!1), [X, xA] = k([]), [uA, yA] = k(null), [Re, Ze] = k(!1), [ZA, Q] = k({}), [v, V] = k(null), [j, $A] = k(!1), [HA, z] = k(null), TA = Ie(async (d) => {
7663
+ const [c, B] = k(!1), [f, u] = k("medium"), [h, p] = k("medium"), [C, x] = k("all"), [w, H] = k(null), [y, F] = k(null), [K, _] = k(""), [P, T] = k(!1), [pA, dA] = k(!1), [Y, iA] = k(!1), [X, xA] = k([]), [uA, yA] = k(null), [Re, Ze] = k(!1), [ZA, Q] = k({}), [v, V] = k(null), [j, $A] = k(!1), [HA, z] = k(null), TA = Ie(async (d) => {
7664
7664
  const b = await fetch(d, {
7665
7665
  headers: { "x-api-key": r }
7666
7666
  });
@@ -7689,8 +7689,8 @@ const qw = (t) => {
7689
7689
  const [R, eA] = k(null), rA = IA(null), [CA, DA] = k([]), nA = Lt(() => {
7690
7690
  let d = Array.isArray(X) ? X : [];
7691
7691
  if (v) {
7692
- const U = CA.find((T) => T.annotations && Array.isArray(T.annotations) && T.annotations.some((M) => M._id === v));
7693
- U ? d = U.annotations : d = d.filter((T) => T._id === v);
7692
+ const U = CA.find((L) => L.annotations && Array.isArray(L.annotations) && L.annotations.some((M) => M._id === v));
7693
+ U ? d = U.annotations : d = d.filter((L) => L._id === v);
7694
7694
  }
7695
7695
  return d = d.filter((U) => U.status !== "completed" && U.status !== "done"), window.location.href.includes("viewgate-backlog") || (R === "pending" ? d = d.filter((U) => U.status !== "ready_for_review") : R === "ready" && (d = d.filter((U) => U.status === "ready_for_review"))), C !== "all" && (d = d.filter((U) => (U.priority || "medium") === C)), d;
7696
7696
  }, [v, X, CA, R, C]);
@@ -7732,14 +7732,14 @@ const qw = (t) => {
7732
7732
  if (!qA && !fe) return;
7733
7733
  const d = (U) => {
7734
7734
  if (qA && WA.current) {
7735
- const T = U.clientX - WA.current.x, M = U.clientY - WA.current.y;
7736
- let W = WA.current.top + M, $ = WA.current.right - T;
7735
+ const L = U.clientX - WA.current.x, M = U.clientY - WA.current.y;
7736
+ let W = WA.current.top + M, $ = WA.current.right - L;
7737
7737
  const S = 10;
7738
7738
  W = Math.max(S, Math.min(window.innerHeight - WA.current.height - S, W)), $ = Math.max(S, Math.min(window.innerWidth - WA.current.width - S, $)), Ge({ top: W, right: $ });
7739
7739
  }
7740
7740
  if (fe && VA.current) {
7741
- const T = U.clientX - VA.current.x, M = U.clientY - VA.current.y;
7742
- let W = VA.current.bottom - M, $ = VA.current.right - T;
7741
+ const L = U.clientX - VA.current.x, M = U.clientY - VA.current.y;
7742
+ let W = VA.current.bottom - M, $ = VA.current.right - L;
7743
7743
  const S = 10;
7744
7744
  W = Math.max(S, Math.min(window.innerHeight - VA.current.height - S, W)), $ = Math.max(S, Math.min(window.innerWidth - VA.current.width - S, $)), Ae({ bottom: W, right: $ });
7745
7745
  }
@@ -7808,7 +7808,7 @@ const qw = (t) => {
7808
7808
  if (Ne) {
7809
7809
  const d = Array.isArray(Ne) ? Ne : Ne?.data || [];
7810
7810
  if (Array.isArray(d)) {
7811
- const b = d.reduce((U, T) => U.find((W) => W._id === T._id) ? U : U.concat([T]), []);
7811
+ const b = d.reduce((U, L) => U.find((W) => W._id === L._id) ? U : U.concat([L]), []);
7812
7812
  xA(b);
7813
7813
  }
7814
7814
  } else ue || xA([]);
@@ -7872,23 +7872,23 @@ const qw = (t) => {
7872
7872
  if (!(!b || jt.current?.contains(b) || b.closest(".vg-no-capture")) && w) {
7873
7873
  d.preventDefault(), d.stopPropagation(), dA(!0);
7874
7874
  try {
7875
- const U = w.element, T = U.getBoundingClientRect(), M = ts(U) || document.body, W = M.getBoundingClientRect(), $ = await Ta(M, {
7875
+ const U = w.element, L = U.getBoundingClientRect(), M = ts(U) || document.body, W = M.getBoundingClientRect(), $ = await Ta(M, {
7876
7876
  scale: 2,
7877
7877
  useCORS: !0,
7878
7878
  logging: !1,
7879
7879
  backgroundColor: "#ffffff",
7880
7880
  ignoreElements: (bA) => jt.current?.contains(bA) || bA.id === "viewgate-shadow-host"
7881
- }), S = document.createElement("canvas"), UA = S.getContext("2d"), OA = T.left - W.left, AA = T.top - W.top;
7882
- S.width = T.width * 2, S.height = T.height * 2, UA ? (UA.drawImage(
7881
+ }), S = document.createElement("canvas"), UA = S.getContext("2d"), OA = L.left - W.left, AA = L.top - W.top;
7882
+ S.width = L.width * 2, S.height = L.height * 2, UA ? (UA.drawImage(
7883
7883
  $,
7884
7884
  OA * 2,
7885
7885
  AA * 2,
7886
- T.width * 2,
7887
- T.height * 2,
7886
+ L.width * 2,
7887
+ L.height * 2,
7888
7888
  0,
7889
7889
  0,
7890
- T.width * 2,
7891
- T.height * 2
7890
+ L.width * 2,
7891
+ L.height * 2
7892
7892
  ), S.toBlob(async (bA) => {
7893
7893
  if (bA) {
7894
7894
  const ee = new FileReader();
@@ -7914,13 +7914,13 @@ const qw = (t) => {
7914
7914
  y ? F(null) : Y ? iA(!1) : c && B(!1);
7915
7915
  return;
7916
7916
  }
7917
- const T = (() => {
7917
+ const L = (() => {
7918
7918
  let $ = document.activeElement;
7919
7919
  for (; $ && $.shadowRoot && $.shadowRoot.activeElement; )
7920
7920
  $ = $.shadowRoot.activeElement;
7921
7921
  return $;
7922
7922
  })();
7923
- if (["input", "textarea"].includes((T?.tagName || "").toLowerCase()) || T?.isContentEditable) return;
7923
+ if (["input", "textarea"].includes((L?.tagName || "").toLowerCase()) || L?.isContentEditable) return;
7924
7924
  const W = b.key.toLowerCase();
7925
7925
  if (W === "c" && !y && !Y) {
7926
7926
  if (!(HA && HA.status !== "closed") && !i && !c) {
@@ -7937,8 +7937,8 @@ const qw = (t) => {
7937
7937
  }, [c, y, Y, X, rs, ss]);
7938
7938
  const Na = async () => {
7939
7939
  if (!y || !K.trim()) return;
7940
- L(!0);
7941
- const { semanticReference: d } = y, [b, U] = (d.source || "").split(":"), T = U || "0";
7940
+ T(!0);
7941
+ const { semanticReference: d } = y, [b, U] = (d.source || "").split(":"), L = U || "0";
7942
7942
  try {
7943
7943
  const M = await fetch(`${s}/api/annotations`, {
7944
7944
  method: "POST",
@@ -7948,7 +7948,7 @@ const qw = (t) => {
7948
7948
  },
7949
7949
  body: JSON.stringify({
7950
7950
  filePath: b,
7951
- line: parseInt(T),
7951
+ line: parseInt(L),
7952
7952
  url: window.location.href,
7953
7953
  title: K.length > 50 ? K.substring(0, 50) + "..." : K,
7954
7954
  message: K,
@@ -7977,7 +7977,7 @@ const qw = (t) => {
7977
7977
  const W = M.message && M.message !== "Backend failed" ? M.message : e.error;
7978
7978
  t(W, "error");
7979
7979
  } finally {
7980
- L(!1);
7980
+ T(!1);
7981
7981
  }
7982
7982
  };
7983
7983
  return /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1525", className: "vg-container", children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1526", className: "vg-no-capture", children: [
@@ -8369,7 +8369,7 @@ const qw = (t) => {
8369
8369
  )
8370
8370
  ] }),
8371
8371
  /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1907", style: { display: "flex", flexDirection: "column", gap: "8px", alignItems: "center", width: "100%" }, children: (() => {
8372
- const d = Array.isArray(X) ? X : [], b = v ? CA.find((S) => S.annotations?.some((UA) => UA._id === v)) : null, T = (b ? b.annotations : d).filter((S) => S.status !== "completed" && S.status !== "done"), M = T.filter((S) => S.status !== "ready_for_review").length, W = T.filter((S) => S.status === "ready_for_review").length, $ = T.length;
8372
+ const d = Array.isArray(X) ? X : [], b = v ? CA.find((S) => S.annotations?.some((UA) => UA._id === v)) : null, L = (b ? b.annotations : d).filter((S) => S.status !== "completed" && S.status !== "done"), M = L.filter((S) => S.status !== "ready_for_review").length, W = L.filter((S) => S.status === "ready_for_review").length, $ = L.length;
8373
8373
  return $ <= 0 ? $ === 0 ? null : /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1921", style: { display: "flex", gap: "8px", opacity: 0.9 }, children: [
8374
8374
  M > 0 && /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1923", className: "vg-badge", style: { background: "#fff7ed", color: "#c2410c", border: "1px solid #ffedd5", fontSize: "11px", padding: "2px 8px" }, children: [
8375
8375
  M,
@@ -8455,13 +8455,13 @@ const qw = (t) => {
8455
8455
  children: [
8456
8456
  e.viewAll || "Todos",
8457
8457
  " (",
8458
- T.filter((S) => i ? !0 : R === "pending" ? S.status !== "ready_for_review" : R === "ready" ? S.status === "ready_for_review" : !0).length,
8458
+ L.filter((S) => i ? !0 : R === "pending" ? S.status !== "ready_for_review" : R === "ready" ? S.status === "ready_for_review" : !0).length,
8459
8459
  ")"
8460
8460
  ]
8461
8461
  }
8462
8462
  ),
8463
8463
  ["low", "medium", "high", "urgent"].map((S) => {
8464
- const UA = T.filter((OA) => i ? !0 : R === "pending" ? OA.status !== "ready_for_review" : R === "ready" ? OA.status === "ready_for_review" : !0).filter((OA) => (OA.priority || "medium") === S).length;
8464
+ const UA = L.filter((OA) => i ? !0 : R === "pending" ? OA.status !== "ready_for_review" : R === "ready" ? OA.status === "ready_for_review" : !0).filter((OA) => (OA.priority || "medium") === S).length;
8465
8465
  return UA === 0 && C !== S ? null : /* @__PURE__ */ g.jsxs(
8466
8466
  "button",
8467
8467
  {
@@ -8519,11 +8519,11 @@ const qw = (t) => {
8519
8519
  "data-source-path": "/src/components/ViewGateOverlay.tsx:2057",
8520
8520
  onClick: (U) => {
8521
8521
  U.stopPropagation();
8522
- const T = d.key || `VG-${d._id.slice(-6).toUpperCase()}`;
8523
- navigator.clipboard.writeText(T);
8522
+ const L = d.key || `VG-${d._id.slice(-6).toUpperCase()}`;
8523
+ navigator.clipboard.writeText(L);
8524
8524
  const M = U.currentTarget;
8525
8525
  M.innerText = "¡Copiado!", M.style.color = "#22c55e", setTimeout(() => {
8526
- M.innerText = T, M.style.color = i ? "#64748b" : "#6366f1";
8526
+ M.innerText = L, M.style.color = i ? "#64748b" : "#6366f1";
8527
8527
  }, 1500);
8528
8528
  },
8529
8529
  style: {
@@ -8763,10 +8763,11 @@ const qw = (t) => {
8763
8763
  type: "success",
8764
8764
  onConfirm: async () => {
8765
8765
  try {
8766
+ const U = d.originalStatus || (d.screenshot ? "bug_fixing" : "pending");
8766
8767
  (await fetch(`${s}/api/annotations/${d._id}`, {
8767
8768
  method: "PATCH",
8768
8769
  headers: { "Content-Type": "application/json", "x-api-key": r },
8769
- body: JSON.stringify({ status: "pending" })
8770
+ body: JSON.stringify({ status: U })
8770
8771
  })).ok && (XA(), t(e.updateSuccess, "success"));
8771
8772
  } catch {
8772
8773
  t(e.error, "error");
@@ -8777,7 +8778,7 @@ const qw = (t) => {
8777
8778
  });
8778
8779
  },
8779
8780
  children: [
8780
- /* @__PURE__ */ g.jsx(qc, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2347", size: 14 }),
8781
+ /* @__PURE__ */ g.jsx(qc, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2352", size: 14 }),
8781
8782
  " ",
8782
8783
  e.reopen
8783
8784
  ]
@@ -8809,7 +8810,7 @@ const qw = (t) => {
8809
8810
  });
8810
8811
  },
8811
8812
  children: [
8812
- /* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2377", size: 14 }),
8813
+ /* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2382", size: 14 }),
8813
8814
  " ",
8814
8815
  e.completed
8815
8816
  ]
@@ -8826,7 +8827,7 @@ const qw = (t) => {
8826
8827
  v || "all"
8827
8828
  )
8828
8829
  ] }) }),
8829
- uA && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2396", className: "vg-animate-fade", style: {
8830
+ uA && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2401", className: "vg-animate-fade", style: {
8830
8831
  position: "fixed",
8831
8832
  top: 0,
8832
8833
  left: 0,
@@ -8838,14 +8839,14 @@ const qw = (t) => {
8838
8839
  alignItems: "center",
8839
8840
  justifyContent: "center",
8840
8841
  zIndex: Ns + 100
8841
- }, children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2401", className: "vg-glassmorphism vg-animate-slide", style: {
8842
+ }, children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2406", className: "vg-glassmorphism vg-animate-slide", style: {
8842
8843
  padding: "40px",
8843
8844
  width: "420px",
8844
8845
  textAlign: "center",
8845
8846
  border: "1px solid rgba(255, 255, 255, 0.1)",
8846
8847
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
8847
8848
  }, children: [
8848
- /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2408", style: {
8849
+ /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2413", style: {
8849
8850
  width: "64px",
8850
8851
  height: "64px",
8851
8852
  background: uA.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
@@ -8856,10 +8857,10 @@ const qw = (t) => {
8856
8857
  margin: "0 auto 24px",
8857
8858
  color: uA.type === "danger" ? "#ef4444" : "#6366f1",
8858
8859
  transform: "rotate(-5deg)"
8859
- }, children: uA.type === "danger" ? /* @__PURE__ */ g.jsx(ro, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2417", size: 32 }) : /* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2417", size: 32 }) }),
8860
- /* @__PURE__ */ g.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2419", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: uA.title }),
8861
- /* @__PURE__ */ g.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2420", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: uA.message }),
8862
- /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2421", style: { display: "flex", gap: "16px" }, children: [
8860
+ }, children: uA.type === "danger" ? /* @__PURE__ */ g.jsx(ro, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2422", size: 32 }) : /* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2422", size: 32 }) }),
8861
+ /* @__PURE__ */ g.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2424", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: uA.title }),
8862
+ /* @__PURE__ */ g.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2425", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: uA.message }),
8863
+ /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2426", style: { display: "flex", gap: "16px" }, children: [
8863
8864
  /* @__PURE__ */ g.jsx(
8864
8865
  "button",
8865
8866
  {
@@ -8895,13 +8896,13 @@ const qw = (t) => {
8895
8896
  $A(!1);
8896
8897
  }
8897
8898
  },
8898
- children: j ? /* @__PURE__ */ g.jsx(Wc, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2455", size: 18, className: "vg-animate-spin" }) : e.yes
8899
+ children: j ? /* @__PURE__ */ g.jsx(Wc, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2460", size: 18, className: "vg-animate-spin" }) : e.yes
8899
8900
  }
8900
8901
  )
8901
8902
  ] })
8902
8903
  ] }) }),
8903
8904
  !Y && !c && CA.map((d, b) => {
8904
- const { rect: U, annotations: T, isModal: M } = d, W = T[0], $ = T.length, S = T.some((I) => I.status === "ready_for_review"), UA = T.some((I) => I.status === "completed" || I.status === "done"), OA = T.some((I) => I.status !== "ready_for_review" && I.status !== "completed" && I.status !== "done"), AA = UA && !S && !OA, bA = S && !OA && !UA, ee = (S || UA) && !OA, wA = (S || UA) && OA, RA = T.filter((I) => I.status !== "ready_for_review" && I.status !== "completed" && I.status !== "done").length, KA = T.filter((I) => I.status === "ready_for_review").length, oe = T.filter((I) => I.status === "completed" || I.status === "done").length, JA = T.some((I) => I.status === "bug_fixing"), hA = RA > 0 ? JA ? "#f43f5e" : i ? "#64748b" : "#ea580c" : KA > 0 ? "#a855f7" : "#10b981", me = CA.some((I) => I.element === d.element && I.isTriggerPin), Ga = CA.some((I) => I.element === d.element && !I.isTriggerPin), Kn = me && Ga ? d.isTriggerPin ? -18 : 18 : 0, Dn = U.top === 0 && U.left === 0 && U.width > window.innerWidth * 0.9;
8905
+ const { rect: U, annotations: L, isModal: M } = d, W = L[0], $ = L.length, S = L.some((I) => I.status === "ready_for_review"), UA = L.some((I) => I.status === "completed" || I.status === "done"), OA = L.some((I) => I.status !== "ready_for_review" && I.status !== "completed" && I.status !== "done"), AA = UA && !S && !OA, bA = S && !OA && !UA, ee = (S || UA) && !OA, wA = (S || UA) && OA, RA = L.filter((I) => I.status !== "ready_for_review" && I.status !== "completed" && I.status !== "done").length, KA = L.filter((I) => I.status === "ready_for_review").length, oe = L.filter((I) => I.status === "completed" || I.status === "done").length, JA = L.some((I) => I.status === "bug_fixing"), hA = RA > 0 ? JA ? "#f43f5e" : i ? "#64748b" : "#ea580c" : KA > 0 ? "#a855f7" : "#10b981", me = CA.some((I) => I.element === d.element && I.isTriggerPin), Ga = CA.some((I) => I.element === d.element && !I.isTriggerPin), Kn = me && Ga ? d.isTriggerPin ? -18 : 18 : 0, Dn = U.top === 0 && U.left === 0 && U.width > window.innerWidth * 0.9;
8905
8906
  return /* @__PURE__ */ g.jsxs(
8906
8907
  "div",
8907
8908
  {
@@ -8928,12 +8929,12 @@ const qw = (t) => {
8928
8929
  iA(!0), V(W._id);
8929
8930
  },
8930
8931
  children: [
8931
- /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2530", className: `vg-pin-tooltip ${ZA[d.id] || ""} ${Dn || U.left < 160 ? "vg-tooltip-right" : U.left > window.innerWidth - 160 ? "vg-tooltip-left" : ""}`, style: { padding: "16px" }, children: [
8932
- /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2531", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "12px" }, children: [
8933
- /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2532", style: { display: "flex", alignItems: "center", gap: "8px", flexWrap: "wrap" }, children: [
8934
- d.isTriggerPin ? /* @__PURE__ */ g.jsx(eo, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2534", size: 14, color: hA }) : /* @__PURE__ */ g.jsx(Ar, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2536", size: 14, color: hA }),
8935
- /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2538", style: { display: "flex", gap: "4px" }, children: [
8936
- RA > 0 && /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2540", className: "vg-badge", style: {
8932
+ /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2535", className: `vg-pin-tooltip ${ZA[d.id] || ""} ${Dn || U.left < 160 ? "vg-tooltip-right" : U.left > window.innerWidth - 160 ? "vg-tooltip-left" : ""}`, style: { padding: "16px" }, children: [
8933
+ /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2536", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "12px" }, children: [
8934
+ /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2537", style: { display: "flex", alignItems: "center", gap: "8px", flexWrap: "wrap" }, children: [
8935
+ d.isTriggerPin ? /* @__PURE__ */ g.jsx(eo, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2539", size: 14, color: hA }) : /* @__PURE__ */ g.jsx(Ar, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2541", size: 14, color: hA }),
8936
+ /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2543", style: { display: "flex", gap: "4px" }, children: [
8937
+ RA > 0 && /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2545", className: "vg-badge", style: {
8937
8938
  fontSize: "10px",
8938
8939
  background: i ? "#f1f5f9" : "#fff7ed",
8939
8940
  color: i ? "#64748b" : "#c2410c"
@@ -8942,7 +8943,7 @@ const qw = (t) => {
8942
8943
  " ",
8943
8944
  i || W.status === "backlog" ? "Backlog" : A === "es" ? RA === 1 ? e.pending : "Pendientes" : "pending"
8944
8945
  ] }),
8945
- KA > 0 && /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2549", style: {
8946
+ KA > 0 && /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2554", style: {
8946
8947
  fontSize: "10px",
8947
8948
  fontWeight: 700,
8948
8949
  color: "#a855f7",
@@ -8954,7 +8955,7 @@ const qw = (t) => {
8954
8955
  " ",
8955
8956
  A === "es" ? KA === 1 ? "Listo para revisión" : "Listos para revisión" : "ready for review"
8956
8957
  ] }),
8957
- oe > 0 && /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2561", style: {
8958
+ oe > 0 && /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2566", style: {
8958
8959
  fontSize: "10px",
8959
8960
  fontWeight: 700,
8960
8961
  color: "#059669",
@@ -8966,7 +8967,7 @@ const qw = (t) => {
8966
8967
  " ",
8967
8968
  A === "es" ? oe === 1 ? "Completado" : "Completados" : "completed"
8968
8969
  ] }),
8969
- T.some((I) => I.status === "bug_fixing") && /* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2573", style: {
8970
+ L.some((I) => I.status === "bug_fixing") && /* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2578", style: {
8970
8971
  fontSize: "10px",
8971
8972
  fontWeight: 700,
8972
8973
  color: "#e11d48",
@@ -8976,7 +8977,7 @@ const qw = (t) => {
8976
8977
  }, children: "BUG" })
8977
8978
  ] })
8978
8979
  ] }),
8979
- M && /* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2587", className: "vg-badge", style: {
8980
+ M && /* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2592", className: "vg-badge", style: {
8980
8981
  fontSize: "10px",
8981
8982
  background: i ? "#f1f5f9" : wA ? `linear-gradient(90deg, #ea580c 50%, ${UA ? "#10b981" : "#a855f7"} 50%)` : RA > 0 ? "#fff7ed" : AA ? "#ecfdf5" : "#f3e8ff",
8982
8983
  color: i ? "#64748b" : wA ? "#ffffff" : RA > 0 ? "#c2410c" : AA ? "#059669" : "#a855f7",
@@ -8985,15 +8986,15 @@ const qw = (t) => {
8985
8986
  textShadow: wA && !i ? "0 1px 2px rgba(0,0,0,0.2)" : "none"
8986
8987
  }, children: "MODAL" })
8987
8988
  ] }),
8988
- /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2599", className: "vg-tooltip-scroll", style: { maxHeight: "180px", overflowY: "auto" }, children: T.map((I, Ve) => /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2601", style: {
8989
+ /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2604", className: "vg-tooltip-scroll", style: { maxHeight: "180px", overflowY: "auto" }, children: L.map((I, Ve) => /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2606", style: {
8989
8990
  padding: "10px 0",
8990
8991
  borderTop: Ve === 0 ? "none" : "1px solid #f1f5f9",
8991
8992
  display: "flex",
8992
8993
  gap: "12px",
8993
8994
  alignItems: "flex-start"
8994
8995
  }, children: [
8995
- /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2608", style: { flex: 1, display: "flex", flexDirection: "column", gap: "4px" }, children: [
8996
- /* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2609", style: { fontSize: "10px", fontWeight: 600, color: "#64748b" }, children: ci(I.timestamp || I.createdAt, A) }),
8996
+ /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2613", style: { flex: 1, display: "flex", flexDirection: "column", gap: "4px" }, children: [
8997
+ /* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2614", style: { fontSize: "10px", fontWeight: 600, color: "#64748b" }, children: ci(I.timestamp || I.createdAt, A) }),
8997
8998
  I.url && /* @__PURE__ */ g.jsx(
8998
8999
  li,
8999
9000
  {
@@ -9014,10 +9015,10 @@ const qw = (t) => {
9014
9015
  tooltipStyle: { fontSize: "9px" }
9015
9016
  }
9016
9017
  ),
9017
- /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2631", className: "vg-line-clamp-2", style: { fontSize: "13px", color: "#1e293b", lineHeight: 1.4, fontWeight: 500 }, children: I.message.length > 100 ? I.message.slice(0, 97) + "..." : I.message })
9018
+ /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2636", className: "vg-line-clamp-2", style: { fontSize: "13px", color: "#1e293b", lineHeight: 1.4, fontWeight: 500 }, children: I.message.length > 100 ? I.message.slice(0, 97) + "..." : I.message })
9018
9019
  ] }),
9019
- /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2635", style: { flexShrink: 0, marginTop: "2px", display: "flex", flexDirection: "column", gap: "4px", alignItems: "flex-end" }, children: [
9020
- /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2636", style: {
9020
+ /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2640", style: { flexShrink: 0, marginTop: "2px", display: "flex", flexDirection: "column", gap: "4px", alignItems: "flex-end" }, children: [
9021
+ /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2641", style: {
9021
9022
  fontSize: "8px",
9022
9023
  fontWeight: 800,
9023
9024
  color: I.priority === "low" ? "#059669" : I.priority === "urgent" ? "#b91c1c" : I.priority === "high" ? "#b45309" : "#4338ca",
@@ -9028,7 +9029,7 @@ const qw = (t) => {
9028
9029
  border: "1px solid",
9029
9030
  borderColor: I.priority === "low" ? "#d1fae5" : I.priority === "urgent" ? "#fee2e2" : I.priority === "high" ? "#fef3c7" : "#e0e7ff"
9030
9031
  }, children: e[I.priority || "medium"] }),
9031
- I.status === "completed" || I.status === "done" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2650", style: {
9032
+ I.status === "completed" || I.status === "done" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2655", style: {
9032
9033
  display: "flex",
9033
9034
  alignItems: "center",
9034
9035
  gap: "4px",
@@ -9041,9 +9042,9 @@ const qw = (t) => {
9041
9042
  textTransform: "uppercase",
9042
9043
  border: "1px solid #d1fae5"
9043
9044
  }, children: [
9044
- /* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2663", size: 10 }),
9045
+ /* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2668", size: 10 }),
9045
9046
  e.completed
9046
- ] }) : I.status === "ready_for_review" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2667", style: {
9047
+ ] }) : I.status === "ready_for_review" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2672", style: {
9047
9048
  display: "flex",
9048
9049
  alignItems: "center",
9049
9050
  gap: "4px",
@@ -9056,9 +9057,9 @@ const qw = (t) => {
9056
9057
  textTransform: "uppercase",
9057
9058
  border: "1px solid #e9d5ff"
9058
9059
  }, children: [
9059
- /* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2680", size: 10 }),
9060
+ /* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2685", size: 10 }),
9060
9061
  e.readyForReview
9061
- ] }) : I.status === "bug_fixing" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2684", style: {
9062
+ ] }) : I.status === "bug_fixing" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2689", style: {
9062
9063
  display: "flex",
9063
9064
  alignItems: "center",
9064
9065
  gap: "4px",
@@ -9071,9 +9072,9 @@ const qw = (t) => {
9071
9072
  textTransform: "uppercase",
9072
9073
  border: "1px solid #ffe4e6"
9073
9074
  }, children: [
9074
- /* @__PURE__ */ g.jsx(us, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2697", size: 10 }),
9075
+ /* @__PURE__ */ g.jsx(us, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2702", size: 10 }),
9075
9076
  "Bug Fixing"
9076
- ] }) : /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2701", style: {
9077
+ ] }) : /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2706", style: {
9077
9078
  display: "flex",
9078
9079
  alignItems: "center",
9079
9080
  gap: "4px",
@@ -9086,7 +9087,7 @@ const qw = (t) => {
9086
9087
  textTransform: "uppercase",
9087
9088
  border: i || I.status === "backlog" ? "1px solid #e2e8f0" : "1px solid #ffedd5"
9088
9089
  }, children: [
9089
- /* @__PURE__ */ g.jsx($n, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2714", size: 10 }),
9090
+ /* @__PURE__ */ g.jsx($n, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2719", size: 10 }),
9090
9091
  i || I.status === "backlog" ? e.backlog : e.pending
9091
9092
  ] })
9092
9093
  ] })
@@ -9095,15 +9096,15 @@ const qw = (t) => {
9095
9096
  /* @__PURE__ */ g.jsxs(
9096
9097
  "div",
9097
9098
  {
9098
- "data-source-path": "/src/components/ViewGateOverlay.tsx:2724",
9099
+ "data-source-path": "/src/components/ViewGateOverlay.tsx:2729",
9099
9100
  className: `vg-formal-pin ${AA ? "completed" : bA || ee ? "ready" : JA ? "bug" : wA ? "mixed" : i ? "backlog" : ""} ${d.isTriggerPin ? "modal-variant" : ""}`,
9100
9101
  style: {
9101
9102
  position: "relative",
9102
9103
  background: JA ? "linear-gradient(135deg, #f43f5e 0%, #e11d48 100%)" : wA ? UA ? "linear-gradient(135deg, #10b981 0%, #059669 100%)" : "linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)" : void 0
9103
9104
  },
9104
9105
  children: [
9105
- bA || AA || ee ? /* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2731", size: 18 }) : JA ? /* @__PURE__ */ g.jsx(us, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2731", size: 18 }) : d.isTriggerPin ? /* @__PURE__ */ g.jsx(eo, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2731", size: 16 }) : M ? /* @__PURE__ */ g.jsx(qn, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2731", size: 16 }) : /* @__PURE__ */ g.jsx(Ar, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2731", size: 16 }),
9106
- $ > 1 && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2734", className: "vg-pin-badge vg-animate-pop", children: $ })
9106
+ bA || AA || ee ? /* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2736", size: 18 }) : JA ? /* @__PURE__ */ g.jsx(us, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2736", size: 18 }) : d.isTriggerPin ? /* @__PURE__ */ g.jsx(eo, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2736", size: 16 }) : M ? /* @__PURE__ */ g.jsx(qn, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2736", size: 16 }) : /* @__PURE__ */ g.jsx(Ar, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2736", size: 16 }),
9107
+ $ > 1 && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2739", className: "vg-pin-badge vg-animate-pop", children: $ })
9107
9108
  ]
9108
9109
  }
9109
9110
  )