viewgate-wrapper 1.10.33 → 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.
package/dist/viewgate-wrapper.js
CHANGED
|
@@ -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
|
|
65
|
+
case T:
|
|
66
66
|
v = Q._payload, Q = Q._init;
|
|
67
67
|
try {
|
|
68
68
|
return t(Q(v));
|
|
@@ -83,17 +83,17 @@ function Wa() {
|
|
|
83
83
|
}
|
|
84
84
|
if (v) {
|
|
85
85
|
v = console;
|
|
86
|
-
var V = v.error,
|
|
86
|
+
var V = v.error, j = typeof Symbol == "function" && Symbol.toStringTag && Q[Symbol.toStringTag] || Q.constructor.name || "Object";
|
|
87
87
|
return V.call(
|
|
88
88
|
v,
|
|
89
89
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
90
|
-
|
|
90
|
+
j
|
|
91
91
|
), A(Q);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
function r(Q) {
|
|
95
95
|
if (Q === C) return "<>";
|
|
96
|
-
if (typeof Q == "object" && Q !== null && Q.$$typeof ===
|
|
96
|
+
if (typeof Q == "object" && Q !== null && Q.$$typeof === T)
|
|
97
97
|
return "<...>";
|
|
98
98
|
try {
|
|
99
99
|
var v = t(Q);
|
|
@@ -103,7 +103,7 @@ function Wa() {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function s() {
|
|
106
|
-
var Q =
|
|
106
|
+
var Q = Y.A;
|
|
107
107
|
return Q === null ? null : Q.getOwner();
|
|
108
108
|
}
|
|
109
109
|
function n() {
|
|
@@ -134,15 +134,15 @@ function Wa() {
|
|
|
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
|
)), Q = this.props.ref, Q !== void 0 ? Q : null;
|
|
136
136
|
}
|
|
137
|
-
function l(Q, v, V,
|
|
138
|
-
var
|
|
137
|
+
function l(Q, v, V, j, $A, HA) {
|
|
138
|
+
var z = V.ref;
|
|
139
139
|
return Q = {
|
|
140
140
|
$$typeof: h,
|
|
141
141
|
type: Q,
|
|
142
142
|
key: v,
|
|
143
143
|
props: V,
|
|
144
|
-
_owner:
|
|
145
|
-
}, (
|
|
144
|
+
_owner: j
|
|
145
|
+
}, (z !== void 0 ? z : null) !== null ? Object.defineProperty(Q, "ref", {
|
|
146
146
|
enumerable: !1,
|
|
147
147
|
get: a
|
|
148
148
|
}) : Object.defineProperty(Q, "ref", { enumerable: !1, value: null }), Q._store = {}, Object.defineProperty(Q._store, "validated", {
|
|
@@ -167,48 +167,48 @@ function Wa() {
|
|
|
167
167
|
value: HA
|
|
168
168
|
}), Object.freeze && (Object.freeze(Q.props), Object.freeze(Q)), Q;
|
|
169
169
|
}
|
|
170
|
-
function c(Q, v, V,
|
|
171
|
-
var
|
|
172
|
-
if (
|
|
173
|
-
if (
|
|
174
|
-
if (X(
|
|
175
|
-
for (
|
|
176
|
-
B(j
|
|
177
|
-
Object.freeze && Object.freeze(
|
|
170
|
+
function c(Q, v, V, j, $A, HA) {
|
|
171
|
+
var z = v.children;
|
|
172
|
+
if (z !== void 0)
|
|
173
|
+
if (j)
|
|
174
|
+
if (X(z)) {
|
|
175
|
+
for (j = 0; j < z.length; j++)
|
|
176
|
+
B(z[j]);
|
|
177
|
+
Object.freeze && Object.freeze(z);
|
|
178
178
|
} else
|
|
179
179
|
console.error(
|
|
180
180
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
181
181
|
);
|
|
182
|
-
else B(
|
|
182
|
+
else B(z);
|
|
183
183
|
if (iA.call(v, "key")) {
|
|
184
|
-
|
|
184
|
+
z = t(Q);
|
|
185
185
|
var TA = Object.keys(v).filter(function(Fe) {
|
|
186
186
|
return Fe !== "key";
|
|
187
187
|
});
|
|
188
|
-
|
|
188
|
+
j = 0 < TA.length ? "{key: someKey, " + TA.join(": ..., ") + ": ...}" : "{key: someKey}", ZA[z + j] || (TA = 0 < TA.length ? "{" + TA.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
189
189
|
`A props object containing a "key" prop is being spread into JSX:
|
|
190
190
|
let props = %s;
|
|
191
191
|
<%s {...props} />
|
|
192
192
|
React keys must be passed directly to JSX without using spread:
|
|
193
193
|
let props = %s;
|
|
194
194
|
<%s key={someKey} {...props} />`,
|
|
195
|
-
Y,
|
|
196
195
|
j,
|
|
196
|
+
z,
|
|
197
197
|
TA,
|
|
198
|
-
|
|
199
|
-
), ZA[
|
|
198
|
+
z
|
|
199
|
+
), ZA[z + j] = !0);
|
|
200
200
|
}
|
|
201
|
-
if (
|
|
201
|
+
if (z = null, V !== void 0 && (e(V), z = "" + V), o(v) && (e(v.key), z = "" + v.key), "key" in v) {
|
|
202
202
|
V = {};
|
|
203
203
|
for (var Me in v)
|
|
204
204
|
Me !== "key" && (V[Me] = v[Me]);
|
|
205
205
|
} else V = v;
|
|
206
|
-
return
|
|
206
|
+
return z && i(
|
|
207
207
|
V,
|
|
208
208
|
typeof Q == "function" ? Q.displayName || Q.name || "Unknown" : Q
|
|
209
209
|
), l(
|
|
210
210
|
Q,
|
|
211
|
-
|
|
211
|
+
z,
|
|
212
212
|
V,
|
|
213
213
|
s(),
|
|
214
214
|
$A,
|
|
@@ -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 ===
|
|
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"),
|
|
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 = {
|
|
@@ -234,24 +234,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
234
234
|
n
|
|
235
235
|
)(), Ze = xA(r(n)), ZA = {};
|
|
236
236
|
pt.Fragment = C, pt.jsx = function(Q, v, V) {
|
|
237
|
-
var
|
|
237
|
+
var j = 1e4 > Y.recentlyCreatedOwnerStacks++;
|
|
238
238
|
return c(
|
|
239
239
|
Q,
|
|
240
240
|
v,
|
|
241
241
|
V,
|
|
242
242
|
!1,
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
j ? Error("react-stack-top-frame") : Re,
|
|
244
|
+
j ? xA(r(Q)) : Ze
|
|
245
245
|
);
|
|
246
246
|
}, pt.jsxs = function(Q, v, V) {
|
|
247
|
-
var
|
|
247
|
+
var j = 1e4 > Y.recentlyCreatedOwnerStacks++;
|
|
248
248
|
return c(
|
|
249
249
|
Q,
|
|
250
250
|
v,
|
|
251
251
|
V,
|
|
252
252
|
!0,
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
j ? Error("react-stack-top-frame") : Re,
|
|
254
|
+
j ? xA(r(Q)) : Ze
|
|
255
255
|
);
|
|
256
256
|
};
|
|
257
257
|
})()), pt;
|
|
@@ -509,8 +509,8 @@ async function Ui(...t) {
|
|
|
509
509
|
P,
|
|
510
510
|
0
|
|
511
511
|
];
|
|
512
|
-
const
|
|
513
|
-
if (
|
|
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 _ &&
|
|
528
|
+
} else _ && T && l(K) && (o = !0, p({
|
|
529
529
|
data: iA,
|
|
530
530
|
_c: SA
|
|
531
531
|
}));
|
|
@@ -692,21 +692,21 @@ 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),
|
|
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") {
|
|
699
|
-
if (!s(
|
|
699
|
+
if (!s(Z[rA], R[rA]) && (!G(Z[rA]) || !s(HA, R[rA])))
|
|
700
700
|
return !1;
|
|
701
|
-
} else if (R[rA] !==
|
|
701
|
+
} else if (R[rA] !== Z[rA])
|
|
702
702
|
return !1;
|
|
703
703
|
}
|
|
704
704
|
return !0;
|
|
705
705
|
}, Re = !y.current, Ze = Lt(() => {
|
|
706
|
-
const
|
|
706
|
+
const Z = dA(), R = X(), eA = (nA) => {
|
|
707
707
|
const QA = Ke(nA);
|
|
708
708
|
return delete QA._k, (() => {
|
|
709
|
-
if (!w || !A ||
|
|
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;
|
|
@@ -715,7 +715,7 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
715
715
|
isLoading: !0,
|
|
716
716
|
...QA
|
|
717
717
|
} : QA;
|
|
718
|
-
}, rA = eA(
|
|
718
|
+
}, rA = eA(Z), CA = Z === R ? rA : eA(R);
|
|
719
719
|
let DA = rA;
|
|
720
720
|
return [
|
|
721
721
|
() => {
|
|
@@ -728,31 +728,31 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
728
728
|
r,
|
|
729
729
|
w
|
|
730
730
|
]), ZA = kn.useSyncExternalStore(Ie(
|
|
731
|
-
(
|
|
732
|
-
yA(eA, R) ||
|
|
731
|
+
(Z) => iA(w, (R, eA) => {
|
|
732
|
+
yA(eA, R) || Z();
|
|
733
733
|
}),
|
|
734
734
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
735
735
|
[
|
|
736
736
|
r,
|
|
737
737
|
w
|
|
738
738
|
]
|
|
739
|
-
), Ze[0], Ze[1]), Q = h[w] && h[w].length > 0, v = ZA.data, V = G(v) ? uA && Qi(uA) ? gs(uA) : uA : v,
|
|
739
|
+
), Ze[0], Ze[1]), Q = h[w] && h[w].length > 0, v = ZA.data, V = G(v) ? uA && Qi(uA) ? gs(uA) : uA : v, j = ZA.error, $A = IA(V), HA = f ? G(v) ? G($A.current) ? V : $A.current : v : V, z = w && G(V), TA = IA(null);
|
|
740
740
|
!at && // getServerSnapshot is only called during hydration
|
|
741
741
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
742
742
|
kn.useSyncExternalStore(xc, () => (TA.current = !1, TA), () => (TA.current = !0, TA));
|
|
743
743
|
const Me = TA.current;
|
|
744
|
-
u && Me && !n &&
|
|
745
|
-
const Fe = !w || !A ||
|
|
746
|
-
async (
|
|
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 || 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
|
+
async (Z) => {
|
|
747
747
|
const R = _.current;
|
|
748
|
-
if (!w || !R || F.current ||
|
|
748
|
+
if (!w || !R || F.current || T().isPaused())
|
|
749
749
|
return !1;
|
|
750
750
|
let eA, rA, CA = !0;
|
|
751
|
-
const DA =
|
|
751
|
+
const DA = Z || {}, nA = !C[w] || !DA.dedupe, QA = () => Wn ? !F.current && w === K.current && y.current : w === K.current, Ge = {
|
|
752
752
|
isValidating: !1,
|
|
753
753
|
isLoading: !1
|
|
754
754
|
}, qA = () => {
|
|
755
|
-
|
|
755
|
+
Y(Ge);
|
|
756
756
|
}, ft = () => {
|
|
757
757
|
const fA = C[w];
|
|
758
758
|
fA && fA[1] === rA && delete C[w];
|
|
@@ -761,26 +761,26 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
761
761
|
};
|
|
762
762
|
G(dA().data) && (WA.isLoading = !0);
|
|
763
763
|
try {
|
|
764
|
-
if (nA && (
|
|
765
|
-
CA && QA() &&
|
|
764
|
+
if (nA && (Y(WA), e.loadingTimeout && G(dA().data) && setTimeout(() => {
|
|
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() &&
|
|
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() &&
|
|
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() &&
|
|
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 =
|
|
783
|
-
Ae.isPaused() || (Ge.error = fA, nA && QA() && (Ae.onError(fA, w, Ae), (fe === !0 || ce(fe) && fe(fA)) && (!
|
|
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
|
}, {
|
|
@@ -807,7 +807,7 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
807
807
|
]
|
|
808
808
|
), ne = Ie(
|
|
809
809
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
810
|
-
(...
|
|
810
|
+
(...Z) => Ui(r, K.current, ...Z),
|
|
811
811
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
812
812
|
[]
|
|
813
813
|
);
|
|
@@ -815,15 +815,15 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
815
815
|
_.current = A, P.current = e, G(v) || ($A.current = v);
|
|
816
816
|
}), cs(() => {
|
|
817
817
|
if (!w) return;
|
|
818
|
-
const
|
|
818
|
+
const Z = XA.bind(SA, ds);
|
|
819
819
|
let R = 0;
|
|
820
|
-
|
|
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
|
-
|
|
824
|
+
T().revalidateOnFocus && nA > R && pA() && (R = nA + T().focusThrottleInterval, Z());
|
|
825
825
|
} else if (CA == hi)
|
|
826
|
-
|
|
826
|
+
T().revalidateOnReconnect && pA() && Z();
|
|
827
827
|
else {
|
|
828
828
|
if (CA == pi)
|
|
829
829
|
return XA();
|
|
@@ -831,24 +831,24 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
831
831
|
return XA(DA);
|
|
832
832
|
}
|
|
833
833
|
});
|
|
834
|
-
return F.current = !1, K.current = w, y.current = !0,
|
|
834
|
+
return F.current = !1, K.current = w, y.current = !0, Y({
|
|
835
835
|
_k: H
|
|
836
|
-
}), Fe && (C[w] || (G(V) || at ?
|
|
836
|
+
}), Fe && (C[w] || (G(V) || at ? Z() : nc(Z))), () => {
|
|
837
837
|
F.current = !0, rA();
|
|
838
838
|
};
|
|
839
839
|
}, [
|
|
840
840
|
w
|
|
841
841
|
]), cs(() => {
|
|
842
|
-
let
|
|
842
|
+
let Z;
|
|
843
843
|
function R() {
|
|
844
844
|
const rA = ce(l) ? l(dA().data) : l;
|
|
845
|
-
rA &&
|
|
845
|
+
rA && Z !== -1 && (Z = setTimeout(eA, rA));
|
|
846
846
|
}
|
|
847
847
|
function eA() {
|
|
848
|
-
!dA().error && (c ||
|
|
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);
|
|
852
852
|
};
|
|
853
853
|
}, [
|
|
854
854
|
l,
|
|
@@ -856,14 +856,14 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
856
856
|
B,
|
|
857
857
|
w
|
|
858
858
|
]), ka(HA), n) {
|
|
859
|
-
if (!Wn && at &&
|
|
859
|
+
if (!Wn && at && z)
|
|
860
860
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
|
861
|
-
|
|
862
|
-
const
|
|
863
|
-
if (gs(R), !G(
|
|
864
|
-
throw
|
|
865
|
-
const eA =
|
|
866
|
-
!G(HA) &&
|
|
861
|
+
z && (_.current = A, P.current = e, F.current = !1);
|
|
862
|
+
const Z = x[w], R = !G(Z) && z ? ne(Z) : jn;
|
|
863
|
+
if (gs(R), !G(j) && z)
|
|
864
|
+
throw j;
|
|
865
|
+
const eA = z ? XA(ds) : jn;
|
|
866
|
+
!G(HA) && z && (eA.status = "fulfilled", eA.value = !0), gs(eA);
|
|
867
867
|
}
|
|
868
868
|
return {
|
|
869
869
|
mutate: ne,
|
|
@@ -871,7 +871,7 @@ const gs = gt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
871
871
|
return xA.data = !0, HA;
|
|
872
872
|
},
|
|
873
873
|
get error() {
|
|
874
|
-
return xA.error = !0,
|
|
874
|
+
return xA.error = !0, j;
|
|
875
875
|
},
|
|
876
876
|
get isValidating() {
|
|
877
877
|
return xA.isValidating = !0, Ne;
|
|
@@ -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
|
|
2438
|
-
P +=
|
|
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,24 +5415,24 @@ 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),
|
|
5419
|
-
this.topLeftBorderDoubleOuterBox = s > 0 || n > 0 ? sA(r.left + F / 3, r.top + w / 3, s - F / 3, n - w / 3,
|
|
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
|
-
var
|
|
5422
|
+
var J;
|
|
5423
5423
|
(function(t) {
|
|
5424
5424
|
t[t.TOP_LEFT = 0] = "TOP_LEFT", t[t.TOP_RIGHT = 1] = "TOP_RIGHT", t[t.BOTTOM_RIGHT = 2] = "BOTTOM_RIGHT", t[t.BOTTOM_LEFT = 3] = "BOTTOM_LEFT";
|
|
5425
|
-
})(
|
|
5425
|
+
})(J || (J = {}));
|
|
5426
5426
|
const sA = (t, A, e, r, s) => {
|
|
5427
5427
|
const n = 4 * ((Math.sqrt(2) - 1) / 3), o = e * n, i = r * n, a = t + e, l = A + r;
|
|
5428
5428
|
switch (s) {
|
|
5429
|
-
case
|
|
5429
|
+
case J.TOP_LEFT:
|
|
5430
5430
|
return new Ue(new E(t, l), new E(t, l - i), new E(a - o, A), new E(a, A));
|
|
5431
|
-
case
|
|
5431
|
+
case J.TOP_RIGHT:
|
|
5432
5432
|
return new Ue(new E(t, A), new E(t + o, A), new E(a, l - i), new E(a, l));
|
|
5433
|
-
case
|
|
5433
|
+
case J.BOTTOM_RIGHT:
|
|
5434
5434
|
return new Ue(new E(a, A), new E(a, A + i), new E(t + o, l), new E(t, l));
|
|
5435
|
-
case
|
|
5435
|
+
case J.BOTTOM_LEFT:
|
|
5436
5436
|
default:
|
|
5437
5437
|
return new Ue(new E(a, l), new E(a - o, l), new E(t, A + i), new E(t, A));
|
|
5438
5438
|
}
|
|
@@ -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),
|
|
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:
|
|
7313
|
+
backgroundColor: T,
|
|
7314
7314
|
scale: A.scale ?? s.devicePixelRatio ?? 1,
|
|
7315
7315
|
x: (A.x ?? 0) + _,
|
|
7316
7316
|
y: (A.y ?? 0) + P,
|
|
@@ -7319,11 +7319,11 @@ const qw = (t) => {
|
|
|
7319
7319
|
imageSmoothing: A.imageSmoothing,
|
|
7320
7320
|
imageSmoothingQuality: A.imageSmoothingQuality
|
|
7321
7321
|
};
|
|
7322
|
-
let dA,
|
|
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"),
|
|
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
|
}
|
|
7328
7328
|
}, eh = (t, A, e) => {
|
|
7329
7329
|
const r = A.ownerDocument, s = r.documentElement ? lt(t, getComputedStyle(r.documentElement).backgroundColor) : Be.TRANSPARENT, n = r.body ? lt(t, getComputedStyle(r.body).backgroundColor) : Be.TRANSPARENT, o = typeof e == "string" ? lt(t, e) : e === null ? Be.TRANSPARENT : 4294967295;
|
|
@@ -7652,19 +7652,22 @@ 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(...
|
|
7656
|
-
b.apply(this,
|
|
7657
|
-
}, window.history.replaceState = function(...
|
|
7658
|
-
U.apply(this,
|
|
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,
|
|
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
|
});
|
|
7667
|
-
if (!b.ok)
|
|
7667
|
+
if (!b.ok) {
|
|
7668
|
+
const U = await b.json().catch(() => ({}));
|
|
7669
|
+
throw new Error(U.message || U.error || "Fetch failed");
|
|
7670
|
+
}
|
|
7668
7671
|
return b.json();
|
|
7669
7672
|
}, [r]), Me = Lt(() => i ? "backlog" : "pending,todo,in_progress,review,ready_for_review,bug_fixing", [i]), { data: Fe, isLoading: $r } = zn(
|
|
7670
7673
|
r ? `${s}/api/projects/active-sprint` : null,
|
|
@@ -7681,13 +7684,13 @@ const qw = (t) => {
|
|
|
7681
7684
|
revalidateOnFocus: !0,
|
|
7682
7685
|
dedupingInterval: 2e3
|
|
7683
7686
|
}
|
|
7684
|
-
), [ne, qr] = k(null),
|
|
7685
|
-
|
|
7687
|
+
), [ne, qr] = k(null), Z = IA(X);
|
|
7688
|
+
Z.current = X;
|
|
7686
7689
|
const [R, eA] = k(null), rA = IA(null), [CA, DA] = k([]), nA = Lt(() => {
|
|
7687
7690
|
let d = Array.isArray(X) ? X : [];
|
|
7688
7691
|
if (v) {
|
|
7689
|
-
const U = CA.find((
|
|
7690
|
-
U ? d = U.annotations : d = d.filter((
|
|
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);
|
|
7691
7694
|
}
|
|
7692
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;
|
|
7693
7696
|
}, [v, X, CA, R, C]);
|
|
@@ -7729,16 +7732,16 @@ const qw = (t) => {
|
|
|
7729
7732
|
if (!qA && !fe) return;
|
|
7730
7733
|
const d = (U) => {
|
|
7731
7734
|
if (qA && WA.current) {
|
|
7732
|
-
const
|
|
7733
|
-
let
|
|
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;
|
|
7734
7737
|
const S = 10;
|
|
7735
|
-
|
|
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: $ });
|
|
7736
7739
|
}
|
|
7737
7740
|
if (fe && VA.current) {
|
|
7738
|
-
const
|
|
7739
|
-
let
|
|
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;
|
|
7740
7743
|
const S = 10;
|
|
7741
|
-
|
|
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: $ });
|
|
7742
7745
|
}
|
|
7743
7746
|
}, b = () => {
|
|
7744
7747
|
qA && (ft(!1), localStorage.setItem("vg-exit-pos", JSON.stringify(QA)), WA.current = null), fe && (Yt(!1), localStorage.setItem("vg-bar-pos", JSON.stringify(fA)), VA.current = null);
|
|
@@ -7750,12 +7753,12 @@ const qw = (t) => {
|
|
|
7750
7753
|
const [As, es] = k(null), [Ln, Tn] = k(""), [dh, uh] = k({}), jt = IA(null), $e = IA(null), wt = Ie(() => {
|
|
7751
7754
|
typeof window > "u" || ($e.current && cancelAnimationFrame($e.current), $e.current = requestAnimationFrame(() => {
|
|
7752
7755
|
$e.current = null;
|
|
7753
|
-
const d =
|
|
7756
|
+
const d = Z.current, b = Array.isArray(d) ? d : [], U = new Set(b.map((AA) => AA._id));
|
|
7754
7757
|
document.querySelectorAll(`[${ae}]`).forEach((AA) => {
|
|
7755
7758
|
const bA = AA.getAttribute(ae);
|
|
7756
7759
|
bA && !U.has(bA) && AA.removeAttribute(ae);
|
|
7757
7760
|
});
|
|
7758
|
-
const M = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-backdrop, .fixed.inset-0')).find((AA) => Fn(AA) && ve(AA)),
|
|
7761
|
+
const M = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-backdrop, .fixed.inset-0')).find((AA) => Fn(AA) && ve(AA)), W = !!M, $ = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map();
|
|
7759
7762
|
b.forEach((AA) => {
|
|
7760
7763
|
if (!AA || !AA.reference) return;
|
|
7761
7764
|
try {
|
|
@@ -7772,7 +7775,7 @@ const qw = (t) => {
|
|
|
7772
7775
|
}
|
|
7773
7776
|
if (!wA || !ve(wA)) return;
|
|
7774
7777
|
let KA = !1;
|
|
7775
|
-
if (
|
|
7778
|
+
if (W ? KA = M.contains(wA) : RA ? KA = !0 : KA = !bA, !KA) return;
|
|
7776
7779
|
const oe = wA.getAttribute(ae);
|
|
7777
7780
|
oe !== AA._id && (document.querySelectorAll(`[${ae}="${AA._id}"]`).forEach((hA) => {
|
|
7778
7781
|
hA.removeAttribute(ae);
|
|
@@ -7805,15 +7808,15 @@ const qw = (t) => {
|
|
|
7805
7808
|
if (Ne) {
|
|
7806
7809
|
const d = Array.isArray(Ne) ? Ne : Ne?.data || [];
|
|
7807
7810
|
if (Array.isArray(d)) {
|
|
7808
|
-
const b = d.reduce((U,
|
|
7811
|
+
const b = d.reduce((U, L) => U.find((W) => W._id === L._id) ? U : U.concat([L]), []);
|
|
7809
7812
|
xA(b);
|
|
7810
7813
|
}
|
|
7811
7814
|
} else ue || xA([]);
|
|
7812
7815
|
}, [Ne, ue]), kA(() => {
|
|
7813
|
-
|
|
7816
|
+
z(Fe || null);
|
|
7814
7817
|
}, [Fe]), kA(() => {
|
|
7815
|
-
|
|
7816
|
-
}, [
|
|
7818
|
+
Y && X.length === 0 && !ue && iA(!1);
|
|
7819
|
+
}, [Y, X.length, ue]), kA(() => {
|
|
7817
7820
|
wt();
|
|
7818
7821
|
const d = new MutationObserver(() => wt()), b = new ResizeObserver(() => wt()), U = () => wt();
|
|
7819
7822
|
return d.observe(document.documentElement, {
|
|
@@ -7823,7 +7826,7 @@ const qw = (t) => {
|
|
|
7823
7826
|
}), b.observe(document.documentElement), window.addEventListener("scroll", U, !0), () => {
|
|
7824
7827
|
d.disconnect(), b.disconnect(), window.removeEventListener("scroll", U, !0), $e.current && cancelAnimationFrame($e.current);
|
|
7825
7828
|
};
|
|
7826
|
-
}, [c, X, wt,
|
|
7829
|
+
}, [c, X, wt, Y, v, a]);
|
|
7827
7830
|
const ts = Ie((d) => {
|
|
7828
7831
|
let b = d;
|
|
7829
7832
|
for (; b && b !== document.body; ) {
|
|
@@ -7869,23 +7872,23 @@ const qw = (t) => {
|
|
|
7869
7872
|
if (!(!b || jt.current?.contains(b) || b.closest(".vg-no-capture")) && w) {
|
|
7870
7873
|
d.preventDefault(), d.stopPropagation(), dA(!0);
|
|
7871
7874
|
try {
|
|
7872
|
-
const U = w.element,
|
|
7875
|
+
const U = w.element, L = U.getBoundingClientRect(), M = ts(U) || document.body, W = M.getBoundingClientRect(), $ = await Ta(M, {
|
|
7873
7876
|
scale: 2,
|
|
7874
7877
|
useCORS: !0,
|
|
7875
7878
|
logging: !1,
|
|
7876
7879
|
backgroundColor: "#ffffff",
|
|
7877
7880
|
ignoreElements: (bA) => jt.current?.contains(bA) || bA.id === "viewgate-shadow-host"
|
|
7878
|
-
}), S = document.createElement("canvas"), UA = S.getContext("2d"), OA =
|
|
7879
|
-
S.width =
|
|
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(
|
|
7880
7883
|
$,
|
|
7881
7884
|
OA * 2,
|
|
7882
7885
|
AA * 2,
|
|
7883
|
-
|
|
7884
|
-
|
|
7886
|
+
L.width * 2,
|
|
7887
|
+
L.height * 2,
|
|
7885
7888
|
0,
|
|
7886
7889
|
0,
|
|
7887
|
-
|
|
7888
|
-
|
|
7890
|
+
L.width * 2,
|
|
7891
|
+
L.height * 2
|
|
7889
7892
|
), S.toBlob(async (bA) => {
|
|
7890
7893
|
if (bA) {
|
|
7891
7894
|
const ee = new FileReader();
|
|
@@ -7908,34 +7911,34 @@ const qw = (t) => {
|
|
|
7908
7911
|
kA(() => {
|
|
7909
7912
|
const d = (b) => {
|
|
7910
7913
|
if (b.key === "Escape") {
|
|
7911
|
-
y ? F(null) :
|
|
7914
|
+
y ? F(null) : Y ? iA(!1) : c && B(!1);
|
|
7912
7915
|
return;
|
|
7913
7916
|
}
|
|
7914
|
-
const
|
|
7917
|
+
const L = (() => {
|
|
7915
7918
|
let $ = document.activeElement;
|
|
7916
7919
|
for (; $ && $.shadowRoot && $.shadowRoot.activeElement; )
|
|
7917
7920
|
$ = $.shadowRoot.activeElement;
|
|
7918
7921
|
return $;
|
|
7919
7922
|
})();
|
|
7920
|
-
if (["input", "textarea"].includes((
|
|
7921
|
-
const
|
|
7922
|
-
if (
|
|
7923
|
+
if (["input", "textarea"].includes((L?.tagName || "").toLowerCase()) || L?.isContentEditable) return;
|
|
7924
|
+
const W = b.key.toLowerCase();
|
|
7925
|
+
if (W === "c" && !y && !Y) {
|
|
7923
7926
|
if (!(HA && HA.status !== "closed") && !i && !c) {
|
|
7924
7927
|
t(A === "es" ? "No hay un sprint activo. No se pueden generar comentarios." : "No active sprint found. Cannot generate comments.", "error");
|
|
7925
7928
|
return;
|
|
7926
7929
|
}
|
|
7927
7930
|
B((S) => !S);
|
|
7928
7931
|
}
|
|
7929
|
-
|
|
7932
|
+
W === "v" && !y && (X.length > 0 || Y) && (iA(($) => !$), Y || B(!1));
|
|
7930
7933
|
};
|
|
7931
7934
|
return c && !y ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", d), window.addEventListener("mousemove", rs, !0), window.addEventListener("click", ss, !0), () => {
|
|
7932
7935
|
document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", d), window.removeEventListener("mousemove", rs, !0), window.removeEventListener("click", ss, !0);
|
|
7933
7936
|
};
|
|
7934
|
-
}, [c, y,
|
|
7937
|
+
}, [c, y, Y, X, rs, ss]);
|
|
7935
7938
|
const Na = async () => {
|
|
7936
7939
|
if (!y || !K.trim()) return;
|
|
7937
|
-
|
|
7938
|
-
const { semanticReference: d } = y, [b, U] = (d.source || "").split(":"),
|
|
7940
|
+
T(!0);
|
|
7941
|
+
const { semanticReference: d } = y, [b, U] = (d.source || "").split(":"), L = U || "0";
|
|
7939
7942
|
try {
|
|
7940
7943
|
const M = await fetch(`${s}/api/annotations`, {
|
|
7941
7944
|
method: "POST",
|
|
@@ -7945,7 +7948,7 @@ const qw = (t) => {
|
|
|
7945
7948
|
},
|
|
7946
7949
|
body: JSON.stringify({
|
|
7947
7950
|
filePath: b,
|
|
7948
|
-
line: parseInt(
|
|
7951
|
+
line: parseInt(L),
|
|
7949
7952
|
url: window.location.href,
|
|
7950
7953
|
title: K.length > 50 ? K.substring(0, 50) + "..." : K,
|
|
7951
7954
|
message: K,
|
|
@@ -7965,19 +7968,19 @@ const qw = (t) => {
|
|
|
7965
7968
|
})
|
|
7966
7969
|
});
|
|
7967
7970
|
if (!M.ok) {
|
|
7968
|
-
const
|
|
7969
|
-
throw new Error(
|
|
7971
|
+
const W = await M.json().catch(() => ({}));
|
|
7972
|
+
throw new Error(W.message || W.error || "Backend failed");
|
|
7970
7973
|
}
|
|
7971
7974
|
t(e.success, "success"), F(null), _(""), B(!1), XA();
|
|
7972
7975
|
} catch (M) {
|
|
7973
7976
|
console.error(M);
|
|
7974
|
-
const
|
|
7975
|
-
t(
|
|
7977
|
+
const W = M.message && M.message !== "Backend failed" ? M.message : e.error;
|
|
7978
|
+
t(W, "error");
|
|
7976
7979
|
} finally {
|
|
7977
|
-
|
|
7980
|
+
T(!1);
|
|
7978
7981
|
}
|
|
7979
7982
|
};
|
|
7980
|
-
return /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
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: [
|
|
7981
7984
|
!o && /* @__PURE__ */ g.jsxs(
|
|
7982
7985
|
"div",
|
|
7983
7986
|
{
|
|
@@ -8019,7 +8022,7 @@ const qw = (t) => {
|
|
|
8019
8022
|
onMouseLeave: (d) => {
|
|
8020
8023
|
d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", d.currentTarget.style.color = "#1e293b";
|
|
8021
8024
|
},
|
|
8022
|
-
children: /* @__PURE__ */ g.jsx(Ao, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8025
|
+
children: /* @__PURE__ */ g.jsx(Ao, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1570", size: 14 })
|
|
8023
8026
|
}
|
|
8024
8027
|
),
|
|
8025
8028
|
/* @__PURE__ */ g.jsx(
|
|
@@ -8055,7 +8058,7 @@ const qw = (t) => {
|
|
|
8055
8058
|
onMouseLeave: (d) => {
|
|
8056
8059
|
d.currentTarget.style.transform = "scale(1) rotate(0deg)", d.currentTarget.style.color = "#64748b", d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
|
|
8057
8060
|
},
|
|
8058
|
-
children: /* @__PURE__ */ g.jsx(fs, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8061
|
+
children: /* @__PURE__ */ g.jsx(fs, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1610", size: 20, strokeWidth: 2.5 })
|
|
8059
8062
|
}
|
|
8060
8063
|
)
|
|
8061
8064
|
]
|
|
@@ -8104,10 +8107,10 @@ const qw = (t) => {
|
|
|
8104
8107
|
d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", d.currentTarget.style.color = "#1e293b";
|
|
8105
8108
|
},
|
|
8106
8109
|
className: "vg-animate-slide-up",
|
|
8107
|
-
children: /* @__PURE__ */ g.jsx(Ao, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8110
|
+
children: /* @__PURE__ */ g.jsx(Ao, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1659", size: 16 })
|
|
8108
8111
|
}
|
|
8109
8112
|
),
|
|
8110
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8113
|
+
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1662", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
|
|
8111
8114
|
/* @__PURE__ */ g.jsx(
|
|
8112
8115
|
"button",
|
|
8113
8116
|
{
|
|
@@ -8126,9 +8129,9 @@ const qw = (t) => {
|
|
|
8126
8129
|
opacity: !HA && !i && !c ? 0.7 : 1
|
|
8127
8130
|
},
|
|
8128
8131
|
title: !HA && !i && !c ? A === "es" ? "Requiere sprint activo" : "Requires active sprint" : "",
|
|
8129
|
-
children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8130
|
-
c ? /* @__PURE__ */ g.jsx(fs, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8131
|
-
/* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8132
|
+
children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1680", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
|
|
8133
|
+
c ? /* @__PURE__ */ g.jsx(fs, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1681", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ g.jsx(Ar, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1681", size: 20, className: "vg-animate-pop" }),
|
|
8134
|
+
/* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1682", children: c ? e.exitMode : e.enterMode })
|
|
8132
8135
|
] })
|
|
8133
8136
|
}
|
|
8134
8137
|
),
|
|
@@ -8136,13 +8139,13 @@ const qw = (t) => {
|
|
|
8136
8139
|
"button",
|
|
8137
8140
|
{
|
|
8138
8141
|
onClick: () => {
|
|
8139
|
-
iA(!
|
|
8142
|
+
iA(!Y), B(!1), F(null);
|
|
8140
8143
|
},
|
|
8141
8144
|
className: "vg-button-ghost vg-animate-pop",
|
|
8142
8145
|
style: { animationDelay: "0.1s" },
|
|
8143
8146
|
children: [
|
|
8144
|
-
/* @__PURE__ */ g.jsx(Gc, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8145
|
-
/* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8147
|
+
/* @__PURE__ */ g.jsx(Gc, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1695", size: 20 }),
|
|
8148
|
+
/* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1696", children: e.viewComments })
|
|
8146
8149
|
]
|
|
8147
8150
|
}
|
|
8148
8151
|
)
|
|
@@ -8150,7 +8153,7 @@ const qw = (t) => {
|
|
|
8150
8153
|
]
|
|
8151
8154
|
}
|
|
8152
8155
|
),
|
|
8153
|
-
pA && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8156
|
+
pA && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1704", style: {
|
|
8154
8157
|
position: "fixed",
|
|
8155
8158
|
top: 0,
|
|
8156
8159
|
left: 0,
|
|
@@ -8163,9 +8166,9 @@ const qw = (t) => {
|
|
|
8163
8166
|
justifyContent: "center",
|
|
8164
8167
|
zIndex: Ms + 1,
|
|
8165
8168
|
cursor: "wait"
|
|
8166
|
-
}, children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8167
|
-
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8168
|
-
/* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8169
|
+
}, children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1710", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
|
|
8170
|
+
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1711", className: "vg-spinner" }),
|
|
8171
|
+
/* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1712", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
|
|
8169
8172
|
] }) }),
|
|
8170
8173
|
c && !y && /* @__PURE__ */ g.jsx(
|
|
8171
8174
|
"div",
|
|
@@ -8205,10 +8208,10 @@ const qw = (t) => {
|
|
|
8205
8208
|
...w.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
|
|
8206
8209
|
},
|
|
8207
8210
|
children: [
|
|
8208
|
-
/* @__PURE__ */ g.jsx(jc, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8209
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8210
|
-
/* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8211
|
-
/* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8211
|
+
/* @__PURE__ */ g.jsx(jc, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1764", size: 16 }),
|
|
8212
|
+
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1765", style: { display: "flex", flexDirection: "column" }, children: [
|
|
8213
|
+
/* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1766", style: { fontWeight: 700 }, children: e.selectToComment }),
|
|
8214
|
+
/* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1767", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
|
|
8212
8215
|
Math.round(w.rect.width),
|
|
8213
8216
|
" × ",
|
|
8214
8217
|
Math.round(w.rect.height)
|
|
@@ -8219,7 +8222,7 @@ const qw = (t) => {
|
|
|
8219
8222
|
)
|
|
8220
8223
|
}
|
|
8221
8224
|
),
|
|
8222
|
-
y && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8225
|
+
y && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1777", className: "vg-animate-fade", style: {
|
|
8223
8226
|
position: "fixed",
|
|
8224
8227
|
top: 0,
|
|
8225
8228
|
left: 0,
|
|
@@ -8231,13 +8234,13 @@ const qw = (t) => {
|
|
|
8231
8234
|
alignItems: "center",
|
|
8232
8235
|
justifyContent: "center",
|
|
8233
8236
|
zIndex: Ns
|
|
8234
|
-
}, children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8237
|
+
}, children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1782", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
8235
8238
|
padding: "40px",
|
|
8236
8239
|
width: "500px",
|
|
8237
8240
|
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
|
|
8238
8241
|
}, children: [
|
|
8239
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8240
|
-
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8242
|
+
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1786", style: { textAlign: "center", marginBottom: "32px" }, children: [
|
|
8243
|
+
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1787", style: {
|
|
8241
8244
|
width: "48px",
|
|
8242
8245
|
height: "48px",
|
|
8243
8246
|
background: "var(--vg-primary-gradient)",
|
|
@@ -8248,11 +8251,11 @@ const qw = (t) => {
|
|
|
8248
8251
|
margin: "0 auto 16px",
|
|
8249
8252
|
color: "white",
|
|
8250
8253
|
boxShadow: "0 8px 16px rgba(99, 102, 241, 0.3)"
|
|
8251
|
-
}, children: /* @__PURE__ */ g.jsx(Ar, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8252
|
-
/* @__PURE__ */ g.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8253
|
-
/* @__PURE__ */ g.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8254
|
+
}, children: /* @__PURE__ */ g.jsx(Ar, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1792", size: 24 }) }),
|
|
8255
|
+
/* @__PURE__ */ g.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1794", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: e.feedbackHeader }),
|
|
8256
|
+
/* @__PURE__ */ g.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1795", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: e.feedbackSubheader })
|
|
8254
8257
|
] }),
|
|
8255
|
-
y.visualPreview && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8258
|
+
y.visualPreview && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1799", style: {
|
|
8256
8259
|
marginBottom: "24px",
|
|
8257
8260
|
borderRadius: "8px",
|
|
8258
8261
|
overflow: "hidden",
|
|
@@ -8279,9 +8282,9 @@ const qw = (t) => {
|
|
|
8279
8282
|
style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
|
|
8280
8283
|
}
|
|
8281
8284
|
),
|
|
8282
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8283
|
-
/* @__PURE__ */ g.jsx("label", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8284
|
-
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8285
|
+
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1826", style: { marginBottom: "24px" }, children: [
|
|
8286
|
+
/* @__PURE__ */ g.jsx("label", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1827", style: { fontSize: "12px", fontWeight: 700, color: "#64748b", marginBottom: "8px", display: "block" }, children: e.priority }),
|
|
8287
|
+
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1830", style: { display: "flex", gap: "8px" }, children: ["low", "medium", "high", "urgent"].map((d) => /* @__PURE__ */ g.jsx(
|
|
8285
8288
|
"button",
|
|
8286
8289
|
{
|
|
8287
8290
|
onClick: () => u(d),
|
|
@@ -8304,7 +8307,7 @@ const qw = (t) => {
|
|
|
8304
8307
|
d
|
|
8305
8308
|
)) })
|
|
8306
8309
|
] }),
|
|
8307
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8310
|
+
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1856", style: { display: "flex", gap: "12px" }, children: [
|
|
8308
8311
|
/* @__PURE__ */ g.jsx(
|
|
8309
8312
|
"button",
|
|
8310
8313
|
{
|
|
@@ -8322,15 +8325,15 @@ const qw = (t) => {
|
|
|
8322
8325
|
className: "vg-button-primary",
|
|
8323
8326
|
disabled: P || !K.trim(),
|
|
8324
8327
|
style: { flex: 2 },
|
|
8325
|
-
children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8326
|
-
P ? /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8327
|
-
/* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8328
|
+
children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1871", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
8329
|
+
P ? /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1872", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ g.jsx(to, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1872", size: 18 }),
|
|
8330
|
+
/* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1873", children: P ? e.submitting : e.sendFeedback || "Send Comment" })
|
|
8328
8331
|
] })
|
|
8329
8332
|
}
|
|
8330
8333
|
)
|
|
8331
8334
|
] })
|
|
8332
8335
|
] }) }),
|
|
8333
|
-
|
|
8336
|
+
Y && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1883", className: "vg-animate-fade", style: {
|
|
8334
8337
|
position: "fixed",
|
|
8335
8338
|
top: 0,
|
|
8336
8339
|
left: 0,
|
|
@@ -8342,7 +8345,7 @@ const qw = (t) => {
|
|
|
8342
8345
|
alignItems: "center",
|
|
8343
8346
|
justifyContent: "center",
|
|
8344
8347
|
zIndex: Ns
|
|
8345
|
-
}, children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8348
|
+
}, children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1889", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
8346
8349
|
padding: "32px",
|
|
8347
8350
|
width: "650px",
|
|
8348
8351
|
maxHeight: "80vh",
|
|
@@ -8350,9 +8353,9 @@ const qw = (t) => {
|
|
|
8350
8353
|
flexDirection: "column",
|
|
8351
8354
|
transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"
|
|
8352
8355
|
}, children: [
|
|
8353
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8354
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8355
|
-
/* @__PURE__ */ g.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8356
|
+
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1894", style: { display: "flex", flexDirection: "column", gap: "16px", marginBottom: "24px" }, children: [
|
|
8357
|
+
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1895", style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
8358
|
+
/* @__PURE__ */ g.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1896", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a", whiteSpace: "nowrap" }, children: v ? e.commentDetails : e.annotations }),
|
|
8356
8359
|
/* @__PURE__ */ g.jsx(
|
|
8357
8360
|
"button",
|
|
8358
8361
|
{
|
|
@@ -8361,25 +8364,25 @@ const qw = (t) => {
|
|
|
8361
8364
|
onClick: () => {
|
|
8362
8365
|
iA(!1), V(null), eA(null), x("all");
|
|
8363
8366
|
},
|
|
8364
|
-
children: /* @__PURE__ */ g.jsx(fs, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8367
|
+
children: /* @__PURE__ */ g.jsx(fs, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1904", size: 20 })
|
|
8365
8368
|
}
|
|
8366
8369
|
)
|
|
8367
8370
|
] }),
|
|
8368
|
-
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8369
|
-
const d = Array.isArray(X) ? X : [], b = v ? CA.find((S) => S.annotations?.some((UA) => UA._id === v)) : null,
|
|
8370
|
-
return $ <= 0 ? $ === 0 ? null : /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8371
|
-
M > 0 && /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
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, 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
|
+
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
|
+
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: [
|
|
8372
8375
|
M,
|
|
8373
8376
|
" ",
|
|
8374
8377
|
M === 1 ? "pendiente" : "pendientes"
|
|
8375
8378
|
] }),
|
|
8376
|
-
|
|
8377
|
-
|
|
8379
|
+
W > 0 && /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1928", className: "vg-badge", style: { background: "#f3e8ff", color: "#a855f7", border: "1px solid #e9d5ff", fontSize: "11px", padding: "2px 8px" }, children: [
|
|
8380
|
+
W,
|
|
8378
8381
|
" ",
|
|
8379
|
-
A === "es" ?
|
|
8382
|
+
A === "es" ? W === 1 ? "Listo para revisión" : "Listos para revisión" : "ready for review"
|
|
8380
8383
|
] })
|
|
8381
8384
|
] }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
8382
|
-
!i && /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8385
|
+
!i && /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1939", className: "vg-segmented-control", style: { marginBottom: "4px" }, children: [
|
|
8383
8386
|
/* @__PURE__ */ g.jsx(
|
|
8384
8387
|
"div",
|
|
8385
8388
|
{
|
|
@@ -8426,13 +8429,13 @@ const qw = (t) => {
|
|
|
8426
8429
|
children: [
|
|
8427
8430
|
A === "es" ? "Listo para revisión" : "Ready for Review",
|
|
8428
8431
|
" (",
|
|
8429
|
-
|
|
8432
|
+
W,
|
|
8430
8433
|
")"
|
|
8431
8434
|
]
|
|
8432
8435
|
}
|
|
8433
8436
|
)
|
|
8434
8437
|
] }),
|
|
8435
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8438
|
+
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1970", style: { display: "flex", gap: "6px", justifyContent: "center", flexWrap: "wrap", marginTop: i ? "0" : "4px" }, children: [
|
|
8436
8439
|
/* @__PURE__ */ g.jsxs(
|
|
8437
8440
|
"button",
|
|
8438
8441
|
{
|
|
@@ -8452,13 +8455,13 @@ const qw = (t) => {
|
|
|
8452
8455
|
children: [
|
|
8453
8456
|
e.viewAll || "Todos",
|
|
8454
8457
|
" (",
|
|
8455
|
-
|
|
8458
|
+
L.filter((S) => i ? !0 : R === "pending" ? S.status !== "ready_for_review" : R === "ready" ? S.status === "ready_for_review" : !0).length,
|
|
8456
8459
|
")"
|
|
8457
8460
|
]
|
|
8458
8461
|
}
|
|
8459
8462
|
),
|
|
8460
8463
|
["low", "medium", "high", "urgent"].map((S) => {
|
|
8461
|
-
const UA =
|
|
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;
|
|
8462
8465
|
return UA === 0 && C !== S ? null : /* @__PURE__ */ g.jsxs(
|
|
8463
8466
|
"button",
|
|
8464
8467
|
{
|
|
@@ -8495,7 +8498,7 @@ const qw = (t) => {
|
|
|
8495
8498
|
{
|
|
8496
8499
|
style: { flex: 1, overflowY: "auto", paddingRight: "10px", overflowX: "hidden" },
|
|
8497
8500
|
className: "vg-custom-scrollbar",
|
|
8498
|
-
children: ue ? /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8501
|
+
children: ue ? /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2036", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2037", className: "vg-spinner" }) }) : nA.map((d, b) => /* @__PURE__ */ g.jsxs(
|
|
8499
8502
|
"div",
|
|
8500
8503
|
{
|
|
8501
8504
|
className: "vg-glassmorphism vg-animate-slide",
|
|
@@ -8507,20 +8510,20 @@ const qw = (t) => {
|
|
|
8507
8510
|
animationDelay: `${b * 0.05}s`
|
|
8508
8511
|
},
|
|
8509
8512
|
children: [
|
|
8510
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8511
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8512
|
-
/* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8513
|
+
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2052", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: [
|
|
8514
|
+
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2053", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
|
|
8515
|
+
/* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2054", style: { fontSize: "12px", color: "#000000", fontWeight: 600 }, children: ci(d.timestamp || d.createdAt || d.reference?.timestamp, A) }),
|
|
8513
8516
|
/* @__PURE__ */ g.jsx(
|
|
8514
8517
|
"div",
|
|
8515
8518
|
{
|
|
8516
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8519
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:2057",
|
|
8517
8520
|
onClick: (U) => {
|
|
8518
8521
|
U.stopPropagation();
|
|
8519
|
-
const
|
|
8520
|
-
navigator.clipboard.writeText(
|
|
8522
|
+
const L = d.key || `VG-${d._id.slice(-6).toUpperCase()}`;
|
|
8523
|
+
navigator.clipboard.writeText(L);
|
|
8521
8524
|
const M = U.currentTarget;
|
|
8522
8525
|
M.innerText = "¡Copiado!", M.style.color = "#22c55e", setTimeout(() => {
|
|
8523
|
-
M.innerText =
|
|
8526
|
+
M.innerText = L, M.style.color = i ? "#64748b" : "#6366f1";
|
|
8524
8527
|
}, 1500);
|
|
8525
8528
|
},
|
|
8526
8529
|
style: {
|
|
@@ -8538,7 +8541,7 @@ const qw = (t) => {
|
|
|
8538
8541
|
children: d.key || `VG-${d._id.slice(-6).toUpperCase()}`
|
|
8539
8542
|
}
|
|
8540
8543
|
),
|
|
8541
|
-
d.reference?.metadata?.isModal && /* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8544
|
+
d.reference?.metadata?.isModal && /* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2086", className: "vg-badge", style: {
|
|
8542
8545
|
fontSize: "10px",
|
|
8543
8546
|
background: i ? "#f1f5f9" : d.status === "completed" || d.status === "done" ? "#ecfdf5" : d.status === "ready_for_review" ? "#f3e8ff" : "#fef3c7",
|
|
8544
8547
|
color: i ? "#64748b" : d.status === "completed" || d.status === "done" ? "#059669" : d.status === "ready_for_review" ? "#a855f7" : "#92400e",
|
|
@@ -8565,24 +8568,24 @@ const qw = (t) => {
|
|
|
8565
8568
|
}
|
|
8566
8569
|
)
|
|
8567
8570
|
] }),
|
|
8568
|
-
d.status === "completed" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8569
|
-
/* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8571
|
+
d.status === "completed" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2114", className: "vg-badge", style: { backgroundColor: "#ecfdf5", color: "#059669", border: "1px solid #d1fae5" }, children: [
|
|
8572
|
+
/* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2115", size: 14 }),
|
|
8570
8573
|
" ",
|
|
8571
8574
|
e.completed || (A === "es" ? "Listo para revisión" : "Ready for Review")
|
|
8572
|
-
] }) : d.status === "ready_for_review" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8573
|
-
/* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8575
|
+
] }) : d.status === "ready_for_review" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2118", className: "vg-badge", style: { backgroundColor: "#f3e8ff", color: "#a855f7", border: "1px solid #e9d5ff" }, children: [
|
|
8576
|
+
/* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2119", size: 14 }),
|
|
8574
8577
|
" ",
|
|
8575
8578
|
e.readyForReview
|
|
8576
|
-
] }) : d.status === "bug_fixing" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8577
|
-
/* @__PURE__ */ g.jsx(us, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8579
|
+
] }) : d.status === "bug_fixing" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2122", className: "vg-badge", style: { backgroundColor: "#fff1f2", color: "#e11d48", border: "1px solid #ffe4e6" }, children: [
|
|
8580
|
+
/* @__PURE__ */ g.jsx(us, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2123", size: 14 }),
|
|
8578
8581
|
" ",
|
|
8579
8582
|
"Bug Fixing"
|
|
8580
|
-
] }) : /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8583
|
+
] }) : /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2126", className: "vg-badge", style: {
|
|
8581
8584
|
backgroundColor: i || d.status === "backlog" ? "#f1f5f9" : "#fff7ed",
|
|
8582
8585
|
color: i || d.status === "backlog" ? "#64748b" : "#ea580c",
|
|
8583
8586
|
border: i || d.status === "backlog" ? "1px solid #e2e8f0" : "1px solid #ffedd5"
|
|
8584
8587
|
}, children: [
|
|
8585
|
-
/* @__PURE__ */ g.jsx($n, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8588
|
+
/* @__PURE__ */ g.jsx($n, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2131", size: 14 }),
|
|
8586
8589
|
i || d.status === "backlog" ? e.backlog : e.pending
|
|
8587
8590
|
] })
|
|
8588
8591
|
] }),
|
|
@@ -8596,8 +8599,8 @@ const qw = (t) => {
|
|
|
8596
8599
|
autoFocus: !0,
|
|
8597
8600
|
style: { marginBottom: "16px" }
|
|
8598
8601
|
}
|
|
8599
|
-
) : /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8600
|
-
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8602
|
+
) : /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2147", style: { marginBottom: "20px" }, children: [
|
|
8603
|
+
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2148", style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "8px" }, children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2149", style: {
|
|
8601
8604
|
fontSize: "10px",
|
|
8602
8605
|
fontWeight: 800,
|
|
8603
8606
|
color: d.priority === "low" ? "#059669" : d.priority === "urgent" ? "#b91c1c" : d.priority === "high" ? "#b45309" : "#4338ca",
|
|
@@ -8612,10 +8615,10 @@ const qw = (t) => {
|
|
|
8612
8615
|
": ",
|
|
8613
8616
|
e[d.priority || "medium"]
|
|
8614
8617
|
] }) }),
|
|
8615
|
-
/* @__PURE__ */ g.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8618
|
+
/* @__PURE__ */ g.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2163", className: "vg-text-wrap", style: { margin: "0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: d.message })
|
|
8616
8619
|
] }),
|
|
8617
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8618
|
-
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8620
|
+
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2167", style: { display: "flex", justifyContent: "flex-end", alignItems: "center", gap: "12px", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: [
|
|
8621
|
+
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2169", style: { display: "flex", gap: "6px" }, children: As !== d._id && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
8619
8622
|
/* @__PURE__ */ g.jsx(
|
|
8620
8623
|
"button",
|
|
8621
8624
|
{
|
|
@@ -8625,7 +8628,7 @@ const qw = (t) => {
|
|
|
8625
8628
|
d.url && (window.location.href = d.url);
|
|
8626
8629
|
},
|
|
8627
8630
|
title: e.review,
|
|
8628
|
-
children: /* @__PURE__ */ g.jsx(qn, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8631
|
+
children: /* @__PURE__ */ g.jsx(qn, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2180", size: 16 })
|
|
8629
8632
|
}
|
|
8630
8633
|
),
|
|
8631
8634
|
/* @__PURE__ */ g.jsx(
|
|
@@ -8637,7 +8640,7 @@ const qw = (t) => {
|
|
|
8637
8640
|
es(d._id), Tn(d.message), p(d.priority || "medium");
|
|
8638
8641
|
},
|
|
8639
8642
|
title: e.edit,
|
|
8640
|
-
children: /* @__PURE__ */ g.jsx(Zc, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8643
|
+
children: /* @__PURE__ */ g.jsx(Zc, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2192", size: 16 })
|
|
8641
8644
|
}
|
|
8642
8645
|
),
|
|
8643
8646
|
/* @__PURE__ */ g.jsx(
|
|
@@ -8665,11 +8668,11 @@ const qw = (t) => {
|
|
|
8665
8668
|
});
|
|
8666
8669
|
},
|
|
8667
8670
|
title: A === "es" ? "Eliminar" : "Delete",
|
|
8668
|
-
children: /* @__PURE__ */ g.jsx(ro, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8671
|
+
children: /* @__PURE__ */ g.jsx(ro, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2222", size: 16 })
|
|
8669
8672
|
}
|
|
8670
8673
|
)
|
|
8671
8674
|
] }) }),
|
|
8672
|
-
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8675
|
+
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2229", style: { display: "flex", gap: "8px" }, children: As === d._id ? /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
8673
8676
|
/* @__PURE__ */ g.jsx(
|
|
8674
8677
|
"button",
|
|
8675
8678
|
{
|
|
@@ -8692,7 +8695,7 @@ const qw = (t) => {
|
|
|
8692
8695
|
children: e.save
|
|
8693
8696
|
}
|
|
8694
8697
|
),
|
|
8695
|
-
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8698
|
+
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2258", style: { display: "flex", gap: "4px", marginLeft: "12px" }, children: ["low", "medium", "high", "urgent"].map((U) => /* @__PURE__ */ g.jsx(
|
|
8696
8699
|
"button",
|
|
8697
8700
|
{
|
|
8698
8701
|
onClick: () => p(U),
|
|
@@ -8713,7 +8716,7 @@ const qw = (t) => {
|
|
|
8713
8716
|
},
|
|
8714
8717
|
U
|
|
8715
8718
|
)) }),
|
|
8716
|
-
/* @__PURE__ */ g.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8719
|
+
/* @__PURE__ */ g.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2281", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px", marginLeft: "auto" }, onClick: () => es(null), children: e.cancel })
|
|
8717
8720
|
] }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
8718
8721
|
!i && (d.status === "pending" || !["ready_for_review", "completed", "done"].includes(d.status || "")) && /* @__PURE__ */ g.jsxs(
|
|
8719
8722
|
"button",
|
|
@@ -8741,13 +8744,13 @@ const qw = (t) => {
|
|
|
8741
8744
|
});
|
|
8742
8745
|
},
|
|
8743
8746
|
children: [
|
|
8744
|
-
/* @__PURE__ */ g.jsx(to, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8747
|
+
/* @__PURE__ */ g.jsx(to, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2314", size: 14 }),
|
|
8745
8748
|
" ",
|
|
8746
8749
|
e.markReady
|
|
8747
8750
|
]
|
|
8748
8751
|
}
|
|
8749
8752
|
),
|
|
8750
|
-
!i && d.status === "ready_for_review" && /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8753
|
+
!i && d.status === "ready_for_review" && /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2318", style: { display: "flex", gap: "8px" }, children: [
|
|
8751
8754
|
/* @__PURE__ */ g.jsxs(
|
|
8752
8755
|
"button",
|
|
8753
8756
|
{
|
|
@@ -8760,10 +8763,11 @@ const qw = (t) => {
|
|
|
8760
8763
|
type: "success",
|
|
8761
8764
|
onConfirm: async () => {
|
|
8762
8765
|
try {
|
|
8766
|
+
const U = d.originalStatus || (d.screenshot ? "bug_fixing" : "pending");
|
|
8763
8767
|
(await fetch(`${s}/api/annotations/${d._id}`, {
|
|
8764
8768
|
method: "PATCH",
|
|
8765
8769
|
headers: { "Content-Type": "application/json", "x-api-key": r },
|
|
8766
|
-
body: JSON.stringify({ status:
|
|
8770
|
+
body: JSON.stringify({ status: U })
|
|
8767
8771
|
})).ok && (XA(), t(e.updateSuccess, "success"));
|
|
8768
8772
|
} catch {
|
|
8769
8773
|
t(e.error, "error");
|
|
@@ -8774,7 +8778,7 @@ const qw = (t) => {
|
|
|
8774
8778
|
});
|
|
8775
8779
|
},
|
|
8776
8780
|
children: [
|
|
8777
|
-
/* @__PURE__ */ g.jsx(qc, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8781
|
+
/* @__PURE__ */ g.jsx(qc, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2352", size: 14 }),
|
|
8778
8782
|
" ",
|
|
8779
8783
|
e.reopen
|
|
8780
8784
|
]
|
|
@@ -8806,7 +8810,7 @@ const qw = (t) => {
|
|
|
8806
8810
|
});
|
|
8807
8811
|
},
|
|
8808
8812
|
children: [
|
|
8809
|
-
/* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8813
|
+
/* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2382", size: 14 }),
|
|
8810
8814
|
" ",
|
|
8811
8815
|
e.completed
|
|
8812
8816
|
]
|
|
@@ -8823,7 +8827,7 @@ const qw = (t) => {
|
|
|
8823
8827
|
v || "all"
|
|
8824
8828
|
)
|
|
8825
8829
|
] }) }),
|
|
8826
|
-
uA && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8830
|
+
uA && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2401", className: "vg-animate-fade", style: {
|
|
8827
8831
|
position: "fixed",
|
|
8828
8832
|
top: 0,
|
|
8829
8833
|
left: 0,
|
|
@@ -8835,14 +8839,14 @@ const qw = (t) => {
|
|
|
8835
8839
|
alignItems: "center",
|
|
8836
8840
|
justifyContent: "center",
|
|
8837
8841
|
zIndex: Ns + 100
|
|
8838
|
-
}, children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8842
|
+
}, children: /* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2406", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
8839
8843
|
padding: "40px",
|
|
8840
8844
|
width: "420px",
|
|
8841
8845
|
textAlign: "center",
|
|
8842
8846
|
border: "1px solid rgba(255, 255, 255, 0.1)",
|
|
8843
8847
|
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
|
|
8844
8848
|
}, children: [
|
|
8845
|
-
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8849
|
+
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2413", style: {
|
|
8846
8850
|
width: "64px",
|
|
8847
8851
|
height: "64px",
|
|
8848
8852
|
background: uA.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
|
|
@@ -8853,17 +8857,17 @@ const qw = (t) => {
|
|
|
8853
8857
|
margin: "0 auto 24px",
|
|
8854
8858
|
color: uA.type === "danger" ? "#ef4444" : "#6366f1",
|
|
8855
8859
|
transform: "rotate(-5deg)"
|
|
8856
|
-
}, children: uA.type === "danger" ? /* @__PURE__ */ g.jsx(ro, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8857
|
-
/* @__PURE__ */ g.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8858
|
-
/* @__PURE__ */ g.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8859
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
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: [
|
|
8860
8864
|
/* @__PURE__ */ g.jsx(
|
|
8861
8865
|
"button",
|
|
8862
8866
|
{
|
|
8863
8867
|
className: "vg-button-ghost",
|
|
8864
8868
|
style: { flex: 1, height: "44px" },
|
|
8865
|
-
onClick: () => !
|
|
8866
|
-
disabled:
|
|
8869
|
+
onClick: () => !j && yA(null),
|
|
8870
|
+
disabled: j,
|
|
8867
8871
|
children: e.no
|
|
8868
8872
|
}
|
|
8869
8873
|
),
|
|
@@ -8881,7 +8885,7 @@ const qw = (t) => {
|
|
|
8881
8885
|
justifyContent: "center",
|
|
8882
8886
|
gap: "8px"
|
|
8883
8887
|
},
|
|
8884
|
-
disabled:
|
|
8888
|
+
disabled: j,
|
|
8885
8889
|
onClick: async () => {
|
|
8886
8890
|
$A(!0);
|
|
8887
8891
|
try {
|
|
@@ -8892,13 +8896,13 @@ const qw = (t) => {
|
|
|
8892
8896
|
$A(!1);
|
|
8893
8897
|
}
|
|
8894
8898
|
},
|
|
8895
|
-
children:
|
|
8899
|
+
children: j ? /* @__PURE__ */ g.jsx(Wc, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2460", size: 18, className: "vg-animate-spin" }) : e.yes
|
|
8896
8900
|
}
|
|
8897
8901
|
)
|
|
8898
8902
|
] })
|
|
8899
8903
|
] }) }),
|
|
8900
|
-
!
|
|
8901
|
-
const { rect: U, annotations:
|
|
8904
|
+
!Y && !c && CA.map((d, b) => {
|
|
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;
|
|
8902
8906
|
return /* @__PURE__ */ g.jsxs(
|
|
8903
8907
|
"div",
|
|
8904
8908
|
{
|
|
@@ -8922,24 +8926,24 @@ const qw = (t) => {
|
|
|
8922
8926
|
Ve && Ve.scrollBy({ top: I.deltaY, behavior: "smooth" });
|
|
8923
8927
|
},
|
|
8924
8928
|
onClick: () => {
|
|
8925
|
-
iA(!0), V(
|
|
8929
|
+
iA(!0), V(W._id);
|
|
8926
8930
|
},
|
|
8927
8931
|
children: [
|
|
8928
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8929
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8930
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8931
|
-
d.isTriggerPin ? /* @__PURE__ */ g.jsx(eo, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8932
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8933
|
-
RA > 0 && /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
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: {
|
|
8934
8938
|
fontSize: "10px",
|
|
8935
8939
|
background: i ? "#f1f5f9" : "#fff7ed",
|
|
8936
8940
|
color: i ? "#64748b" : "#c2410c"
|
|
8937
8941
|
}, children: [
|
|
8938
8942
|
RA,
|
|
8939
8943
|
" ",
|
|
8940
|
-
i ||
|
|
8944
|
+
i || W.status === "backlog" ? "Backlog" : A === "es" ? RA === 1 ? e.pending : "Pendientes" : "pending"
|
|
8941
8945
|
] }),
|
|
8942
|
-
KA > 0 && /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8946
|
+
KA > 0 && /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2554", style: {
|
|
8943
8947
|
fontSize: "10px",
|
|
8944
8948
|
fontWeight: 700,
|
|
8945
8949
|
color: "#a855f7",
|
|
@@ -8951,7 +8955,7 @@ const qw = (t) => {
|
|
|
8951
8955
|
" ",
|
|
8952
8956
|
A === "es" ? KA === 1 ? "Listo para revisión" : "Listos para revisión" : "ready for review"
|
|
8953
8957
|
] }),
|
|
8954
|
-
oe > 0 && /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8958
|
+
oe > 0 && /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2566", style: {
|
|
8955
8959
|
fontSize: "10px",
|
|
8956
8960
|
fontWeight: 700,
|
|
8957
8961
|
color: "#059669",
|
|
@@ -8963,7 +8967,7 @@ const qw = (t) => {
|
|
|
8963
8967
|
" ",
|
|
8964
8968
|
A === "es" ? oe === 1 ? "Completado" : "Completados" : "completed"
|
|
8965
8969
|
] }),
|
|
8966
|
-
|
|
8970
|
+
L.some((I) => I.status === "bug_fixing") && /* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2578", style: {
|
|
8967
8971
|
fontSize: "10px",
|
|
8968
8972
|
fontWeight: 700,
|
|
8969
8973
|
color: "#e11d48",
|
|
@@ -8973,7 +8977,7 @@ const qw = (t) => {
|
|
|
8973
8977
|
}, children: "BUG" })
|
|
8974
8978
|
] })
|
|
8975
8979
|
] }),
|
|
8976
|
-
M && /* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8980
|
+
M && /* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2592", className: "vg-badge", style: {
|
|
8977
8981
|
fontSize: "10px",
|
|
8978
8982
|
background: i ? "#f1f5f9" : wA ? `linear-gradient(90deg, #ea580c 50%, ${UA ? "#10b981" : "#a855f7"} 50%)` : RA > 0 ? "#fff7ed" : AA ? "#ecfdf5" : "#f3e8ff",
|
|
8979
8983
|
color: i ? "#64748b" : wA ? "#ffffff" : RA > 0 ? "#c2410c" : AA ? "#059669" : "#a855f7",
|
|
@@ -8982,15 +8986,15 @@ const qw = (t) => {
|
|
|
8982
8986
|
textShadow: wA && !i ? "0 1px 2px rgba(0,0,0,0.2)" : "none"
|
|
8983
8987
|
}, children: "MODAL" })
|
|
8984
8988
|
] }),
|
|
8985
|
-
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
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: {
|
|
8986
8990
|
padding: "10px 0",
|
|
8987
8991
|
borderTop: Ve === 0 ? "none" : "1px solid #f1f5f9",
|
|
8988
8992
|
display: "flex",
|
|
8989
8993
|
gap: "12px",
|
|
8990
8994
|
alignItems: "flex-start"
|
|
8991
8995
|
}, children: [
|
|
8992
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
8993
|
-
/* @__PURE__ */ g.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
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) }),
|
|
8994
8998
|
I.url && /* @__PURE__ */ g.jsx(
|
|
8995
8999
|
li,
|
|
8996
9000
|
{
|
|
@@ -9011,10 +9015,10 @@ const qw = (t) => {
|
|
|
9011
9015
|
tooltipStyle: { fontSize: "9px" }
|
|
9012
9016
|
}
|
|
9013
9017
|
),
|
|
9014
|
-
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
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 })
|
|
9015
9019
|
] }),
|
|
9016
|
-
/* @__PURE__ */ g.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
9017
|
-
/* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
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: {
|
|
9018
9022
|
fontSize: "8px",
|
|
9019
9023
|
fontWeight: 800,
|
|
9020
9024
|
color: I.priority === "low" ? "#059669" : I.priority === "urgent" ? "#b91c1c" : I.priority === "high" ? "#b45309" : "#4338ca",
|
|
@@ -9025,7 +9029,7 @@ const qw = (t) => {
|
|
|
9025
9029
|
border: "1px solid",
|
|
9026
9030
|
borderColor: I.priority === "low" ? "#d1fae5" : I.priority === "urgent" ? "#fee2e2" : I.priority === "high" ? "#fef3c7" : "#e0e7ff"
|
|
9027
9031
|
}, children: e[I.priority || "medium"] }),
|
|
9028
|
-
I.status === "completed" || I.status === "done" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
9032
|
+
I.status === "completed" || I.status === "done" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2655", style: {
|
|
9029
9033
|
display: "flex",
|
|
9030
9034
|
alignItems: "center",
|
|
9031
9035
|
gap: "4px",
|
|
@@ -9038,9 +9042,9 @@ const qw = (t) => {
|
|
|
9038
9042
|
textTransform: "uppercase",
|
|
9039
9043
|
border: "1px solid #d1fae5"
|
|
9040
9044
|
}, children: [
|
|
9041
|
-
/* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
9045
|
+
/* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2668", size: 10 }),
|
|
9042
9046
|
e.completed
|
|
9043
|
-
] }) : I.status === "ready_for_review" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
9047
|
+
] }) : I.status === "ready_for_review" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2672", style: {
|
|
9044
9048
|
display: "flex",
|
|
9045
9049
|
alignItems: "center",
|
|
9046
9050
|
gap: "4px",
|
|
@@ -9053,9 +9057,9 @@ const qw = (t) => {
|
|
|
9053
9057
|
textTransform: "uppercase",
|
|
9054
9058
|
border: "1px solid #e9d5ff"
|
|
9055
9059
|
}, children: [
|
|
9056
|
-
/* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
9060
|
+
/* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2685", size: 10 }),
|
|
9057
9061
|
e.readyForReview
|
|
9058
|
-
] }) : I.status === "bug_fixing" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
9062
|
+
] }) : I.status === "bug_fixing" ? /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2689", style: {
|
|
9059
9063
|
display: "flex",
|
|
9060
9064
|
alignItems: "center",
|
|
9061
9065
|
gap: "4px",
|
|
@@ -9068,9 +9072,9 @@ const qw = (t) => {
|
|
|
9068
9072
|
textTransform: "uppercase",
|
|
9069
9073
|
border: "1px solid #ffe4e6"
|
|
9070
9074
|
}, children: [
|
|
9071
|
-
/* @__PURE__ */ g.jsx(us, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
9075
|
+
/* @__PURE__ */ g.jsx(us, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2702", size: 10 }),
|
|
9072
9076
|
"Bug Fixing"
|
|
9073
|
-
] }) : /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
9077
|
+
] }) : /* @__PURE__ */ g.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:2706", style: {
|
|
9074
9078
|
display: "flex",
|
|
9075
9079
|
alignItems: "center",
|
|
9076
9080
|
gap: "4px",
|
|
@@ -9083,7 +9087,7 @@ const qw = (t) => {
|
|
|
9083
9087
|
textTransform: "uppercase",
|
|
9084
9088
|
border: i || I.status === "backlog" ? "1px solid #e2e8f0" : "1px solid #ffedd5"
|
|
9085
9089
|
}, children: [
|
|
9086
|
-
/* @__PURE__ */ g.jsx($n, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
9090
|
+
/* @__PURE__ */ g.jsx($n, { "data-source-path": "/src/components/ViewGateOverlay.tsx:2719", size: 10 }),
|
|
9087
9091
|
i || I.status === "backlog" ? e.backlog : e.pending
|
|
9088
9092
|
] })
|
|
9089
9093
|
] })
|
|
@@ -9092,15 +9096,15 @@ const qw = (t) => {
|
|
|
9092
9096
|
/* @__PURE__ */ g.jsxs(
|
|
9093
9097
|
"div",
|
|
9094
9098
|
{
|
|
9095
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
9099
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:2729",
|
|
9096
9100
|
className: `vg-formal-pin ${AA ? "completed" : bA || ee ? "ready" : JA ? "bug" : wA ? "mixed" : i ? "backlog" : ""} ${d.isTriggerPin ? "modal-variant" : ""}`,
|
|
9097
9101
|
style: {
|
|
9098
9102
|
position: "relative",
|
|
9099
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
|
|
9100
9104
|
},
|
|
9101
9105
|
children: [
|
|
9102
|
-
bA || AA || ee ? /* @__PURE__ */ g.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
9103
|
-
$ > 1 && /* @__PURE__ */ g.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
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: $ })
|
|
9104
9108
|
]
|
|
9105
9109
|
}
|
|
9106
9110
|
)
|