viewgate-wrapper 1.9.4 → 1.9.6
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
|
@@ -518,7 +518,7 @@ const va = [
|
|
|
518
518
|
const e = Zs(kn);
|
|
519
519
|
if (!e) throw new Error("useViewGate must be used within a ViewGateProvider");
|
|
520
520
|
return e;
|
|
521
|
-
},
|
|
521
|
+
}, fg = ({
|
|
522
522
|
children: e,
|
|
523
523
|
language: A = "es",
|
|
524
524
|
apiKey: t,
|
|
@@ -533,7 +533,7 @@ const va = [
|
|
|
533
533
|
return /* @__PURE__ */ w.jsxs(kn.Provider, { "data-source-path": "/src/components/ViewGateProvider.tsx:211", value: { addToast: a, language: A, t: i, apiKey: t, baseUrl: r }, children: [
|
|
534
534
|
e,
|
|
535
535
|
/* @__PURE__ */ w.jsx(Aa, { "data-source-path": "/src/components/ViewGateProvider.tsx:213", children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:214", className: "vg-container", children: [
|
|
536
|
-
/* @__PURE__ */ w.jsx(
|
|
536
|
+
/* @__PURE__ */ w.jsx(ug, { "data-source-path": "/src/components/ViewGateProvider.tsx:215" }),
|
|
537
537
|
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:216", className: "vg-toasts", style: { zIndex: 2147483646 }, children: n.map((B) => /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:218", className: `vg-toast vg-animate-slide ${B.type}`, children: [
|
|
538
538
|
B.type === "success" ? /* @__PURE__ */ w.jsx(qA, { "data-source-path": "/src/components/ViewGateProvider.tsx:220", size: 24, color: "#22c55e" }) : /* @__PURE__ */ w.jsx(ia, { "data-source-path": "/src/components/ViewGateProvider.tsx:222", size: 24, color: "#ef4444" }),
|
|
539
539
|
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:224", children: [
|
|
@@ -5381,12 +5381,38 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5381
5381
|
n && (t.role = n);
|
|
5382
5382
|
const s = e.getAttribute("name");
|
|
5383
5383
|
return s && (t.name = s), t;
|
|
5384
|
-
}, ag = (
|
|
5384
|
+
}, ag = (() => {
|
|
5385
|
+
const e = document.createElement("div");
|
|
5386
|
+
return e.style.display = "none", document.documentElement.appendChild(e), (A) => {
|
|
5387
|
+
if (!A) return A;
|
|
5388
|
+
if (A.includes("oklch") || A.includes("oklab") || A.includes("lab(") || A.includes("lch(") || A.includes("color("))
|
|
5389
|
+
try {
|
|
5390
|
+
e.style.color = "", e.style.color = A;
|
|
5391
|
+
const t = getComputedStyle(e).color;
|
|
5392
|
+
if (t) return t;
|
|
5393
|
+
} catch {
|
|
5394
|
+
return "rgb(0,0,0)";
|
|
5395
|
+
}
|
|
5396
|
+
return A;
|
|
5397
|
+
};
|
|
5398
|
+
})(), ig = (e) => {
|
|
5385
5399
|
const A = window.getComputedStyle(e), t = {};
|
|
5386
|
-
return [
|
|
5387
|
-
|
|
5400
|
+
return [
|
|
5401
|
+
"display",
|
|
5402
|
+
"position",
|
|
5403
|
+
"margin",
|
|
5404
|
+
"padding",
|
|
5405
|
+
"font-size",
|
|
5406
|
+
"color",
|
|
5407
|
+
"background-color",
|
|
5408
|
+
"width",
|
|
5409
|
+
"height",
|
|
5410
|
+
"z-index"
|
|
5411
|
+
].forEach((n) => {
|
|
5412
|
+
const s = A.getPropertyValue(n);
|
|
5413
|
+
t[n] = ag(s);
|
|
5388
5414
|
}), t;
|
|
5389
|
-
},
|
|
5415
|
+
}, Bg = (e) => {
|
|
5390
5416
|
const t = Object.keys(e).find((s) => s.startsWith("__reactFiber$") || s.startsWith("__reactInternalInstance$"));
|
|
5391
5417
|
if (!t) return "";
|
|
5392
5418
|
const r = [];
|
|
@@ -5412,7 +5438,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5412
5438
|
}
|
|
5413
5439
|
}
|
|
5414
5440
|
return null;
|
|
5415
|
-
},
|
|
5441
|
+
}, og = (e) => {
|
|
5416
5442
|
if (!e.tag) return null;
|
|
5417
5443
|
const A = document.getElementsByTagName(e.tag);
|
|
5418
5444
|
let t = null, r = 0;
|
|
@@ -5422,14 +5448,14 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5422
5448
|
s.innerText?.includes(e.text.slice(0, 20)) && (a += 4), e.fingerprint?.classHash && s.className.includes(e.fingerprint.classHash) && (a += 2), e.fingerprint?.ariaLabel && s.getAttribute("aria-label") === e.fingerprint.ariaLabel && (a += 3), e.fingerprint?.role && s.getAttribute("role") === e.fingerprint.role && (a += 2), e.parentContext && (s.parentElement?.innerText || "").includes(e.parentContext.slice(0, 30)) && (a += 2), e.fingerprint?.neighborCount === s.parentElement?.children.length && (a += 1), e.fingerprint?.parentTag === s.parentElement?.tagName.toLowerCase() && (a += 1), a > r && a >= 5 && (r = a, t = s);
|
|
5423
5449
|
}
|
|
5424
5450
|
return t;
|
|
5425
|
-
},
|
|
5451
|
+
}, cg = (e) => {
|
|
5426
5452
|
let A = Fr(e.selector);
|
|
5427
5453
|
if (A) return A;
|
|
5428
5454
|
if (e.fallbackSelectors) {
|
|
5429
5455
|
for (const t of e.fallbackSelectors)
|
|
5430
5456
|
if (A = Fr(t), A) return A;
|
|
5431
5457
|
}
|
|
5432
|
-
if (A =
|
|
5458
|
+
if (A = og(e), A) return A;
|
|
5433
5459
|
if (e.metadata?.scrollPosition && e.viewportSize) {
|
|
5434
5460
|
const t = (e.normalizedOffset?.x || 0.5) * window.innerWidth, r = (e.normalizedOffset?.y || 0.5) * window.innerHeight;
|
|
5435
5461
|
if (A = document.elementFromPoint(t, r), A && A.tagName.toLowerCase() === e.tag) return A;
|
|
@@ -5440,7 +5466,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5440
5466
|
text: (e.innerText || e.getAttribute("placeholder") || "").slice(0, 50).trim(),
|
|
5441
5467
|
role: e.getAttribute("role") || void 0,
|
|
5442
5468
|
type: e.getAttribute("type") || void 0
|
|
5443
|
-
}),
|
|
5469
|
+
}), lg = (e) => {
|
|
5444
5470
|
const A = e.parentElement;
|
|
5445
5471
|
if (!A) return;
|
|
5446
5472
|
const t = Array.from(A.children).filter((a) => a !== e).slice(0, 5).map((a) => Zt(a)), r = Array.from(A.children), n = r.indexOf(e);
|
|
@@ -5453,7 +5479,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5453
5479
|
parent: Zt(A),
|
|
5454
5480
|
siblings: t
|
|
5455
5481
|
};
|
|
5456
|
-
},
|
|
5482
|
+
}, gg = (e) => {
|
|
5457
5483
|
let A = "unknown:0", t = e;
|
|
5458
5484
|
for (; t; ) {
|
|
5459
5485
|
const c = t.getAttribute("data-source-path");
|
|
@@ -5463,7 +5489,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5463
5489
|
}
|
|
5464
5490
|
t = t.parentElement;
|
|
5465
5491
|
}
|
|
5466
|
-
const r =
|
|
5492
|
+
const r = Bg(e), n = [], s = [], i = ((c) => {
|
|
5467
5493
|
const l = [];
|
|
5468
5494
|
let g = c;
|
|
5469
5495
|
for (; g && g.nodeType === Node.ELEMENT_NODE; ) {
|
|
@@ -5519,23 +5545,23 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5519
5545
|
fallbackSelectors: [...new Set(n)].slice(0, 5),
|
|
5520
5546
|
domPath: s.slice(-10),
|
|
5521
5547
|
viewportSize: { width: window.innerWidth, height: window.innerHeight },
|
|
5522
|
-
uiContext:
|
|
5548
|
+
uiContext: lg(e),
|
|
5523
5549
|
fingerprint: sg(e),
|
|
5524
5550
|
metadata: {
|
|
5525
5551
|
hint: `Edit ${A.split(":")[0]} at line ${A.split(":")[1] || "?"}`,
|
|
5526
|
-
computedStyles:
|
|
5552
|
+
computedStyles: ig(e),
|
|
5527
5553
|
viewportBreakpoint: tg(),
|
|
5528
5554
|
outerHtml: e.outerHTML.slice(0, 1500),
|
|
5529
5555
|
scrollPosition: { x: window.scrollX, y: window.scrollY }
|
|
5530
5556
|
}
|
|
5531
5557
|
};
|
|
5532
|
-
},
|
|
5558
|
+
}, ug = () => {
|
|
5533
5559
|
const { addToast: e, language: A, t, apiKey: r, baseUrl: n } = ma(), [s, a] = eA(!1), [i, B] = eA(null), [o, c] = eA(null), [l, g] = eA(""), [f, Q] = eA(!1), [C, y] = eA(!1), [h, d] = eA(!1), [I, x] = eA([]), [v, U] = eA(null), [S, D] = eA(!1), [H, k] = eA(!1), [q, Y] = eA({}), [T, P] = eA(null), [aA, X] = eA(null), [Z, gA] = eA(""), [iA, uA] = eA({}), u = jt(null), m = jt(null), b = be(() => {
|
|
5534
5560
|
m.current || (m.current = requestAnimationFrame(() => {
|
|
5535
5561
|
const E = {};
|
|
5536
5562
|
I.forEach((K) => {
|
|
5537
5563
|
if (!K.reference) return;
|
|
5538
|
-
const L =
|
|
5564
|
+
const L = cg(K.reference);
|
|
5539
5565
|
if (L) {
|
|
5540
5566
|
const cA = L.getBoundingClientRect();
|
|
5541
5567
|
E[K._id] = {
|
|
@@ -5596,7 +5622,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5596
5622
|
element: K,
|
|
5597
5623
|
previewText: (K.innerText || "").slice(0, 100) || (K.getAttribute("placeholder") || "").slice(0, 100) || K.tagName.toLowerCase(),
|
|
5598
5624
|
semanticReference: {
|
|
5599
|
-
...
|
|
5625
|
+
...gg(K),
|
|
5600
5626
|
normalizedOffset: {
|
|
5601
5627
|
x: (E.clientX - L.left) / L.width,
|
|
5602
5628
|
y: (E.clientY - L.top) / L.height
|
|
@@ -5699,8 +5725,8 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5699
5725
|
Q(!1);
|
|
5700
5726
|
}
|
|
5701
5727
|
};
|
|
5702
|
-
return /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5703
|
-
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5728
|
+
return /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:669", className: "vg-container", children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:670", className: "vg-no-capture", children: [
|
|
5729
|
+
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:672", style: { position: "fixed", bottom: "30px", right: "30px", zIndex: Mn }, id: "viewgate-ui", children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:673", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
|
|
5704
5730
|
/* @__PURE__ */ w.jsx(
|
|
5705
5731
|
"button",
|
|
5706
5732
|
{
|
|
@@ -5710,9 +5736,9 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5710
5736
|
padding: "12px 24px",
|
|
5711
5737
|
background: s ? "#ef4444" : void 0
|
|
5712
5738
|
},
|
|
5713
|
-
children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5714
|
-
s ? /* @__PURE__ */ w.jsx(Or, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5715
|
-
/* @__PURE__ */ w.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5739
|
+
children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:682", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
|
|
5740
|
+
s ? /* @__PURE__ */ w.jsx(Or, { "data-source-path": "/src/components/ViewGateOverlay.tsx:683", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ w.jsx(mt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:683", size: 20, className: "vg-animate-pop" }),
|
|
5741
|
+
/* @__PURE__ */ w.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:684", children: s ? t.exitMode : t.enterMode })
|
|
5716
5742
|
] })
|
|
5717
5743
|
}
|
|
5718
5744
|
),
|
|
@@ -5725,13 +5751,13 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5725
5751
|
className: "vg-button-ghost vg-animate-pop",
|
|
5726
5752
|
style: { animationDelay: "0.1s" },
|
|
5727
5753
|
children: [
|
|
5728
|
-
/* @__PURE__ */ w.jsx(ua, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5729
|
-
/* @__PURE__ */ w.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5754
|
+
/* @__PURE__ */ w.jsx(ua, { "data-source-path": "/src/components/ViewGateOverlay.tsx:697", size: 20 }),
|
|
5755
|
+
/* @__PURE__ */ w.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:698", children: t.viewComments })
|
|
5730
5756
|
]
|
|
5731
5757
|
}
|
|
5732
5758
|
)
|
|
5733
5759
|
] }) }),
|
|
5734
|
-
C && /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5760
|
+
C && /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:706", style: {
|
|
5735
5761
|
position: "fixed",
|
|
5736
5762
|
top: 0,
|
|
5737
5763
|
left: 0,
|
|
@@ -5744,14 +5770,14 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5744
5770
|
justifyContent: "center",
|
|
5745
5771
|
zIndex: Mn + 1,
|
|
5746
5772
|
cursor: "wait"
|
|
5747
|
-
}, children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5748
|
-
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5749
|
-
/* @__PURE__ */ w.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5773
|
+
}, children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:712", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
|
|
5774
|
+
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:713", className: "vg-spinner" }),
|
|
5775
|
+
/* @__PURE__ */ w.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:714", style: { fontWeight: 600, fontSize: "14px", color: "#1e293b" }, children: "Capturando..." })
|
|
5750
5776
|
] }) }),
|
|
5751
5777
|
s && !o && /* @__PURE__ */ w.jsx(
|
|
5752
5778
|
"div",
|
|
5753
5779
|
{
|
|
5754
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5780
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:721",
|
|
5755
5781
|
className: "vg-backdrop-blur",
|
|
5756
5782
|
style: {
|
|
5757
5783
|
opacity: 1,
|
|
@@ -5770,7 +5796,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5770
5796
|
s && i && !o && !C && /* @__PURE__ */ w.jsx(
|
|
5771
5797
|
"div",
|
|
5772
5798
|
{
|
|
5773
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5799
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:740",
|
|
5774
5800
|
className: "vg-selection-pulse",
|
|
5775
5801
|
style: {
|
|
5776
5802
|
top: i.rect.top - 4,
|
|
@@ -5782,17 +5808,17 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5782
5808
|
children: /* @__PURE__ */ w.jsxs(
|
|
5783
5809
|
"div",
|
|
5784
5810
|
{
|
|
5785
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5811
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:750",
|
|
5786
5812
|
className: "vg-selection-label",
|
|
5787
5813
|
style: {
|
|
5788
5814
|
...i.rect.top < 60 ? i.rect.bottom > window.innerHeight - 60 ? { top: "8px", bottom: "auto" } : { top: "100%", marginTop: "8px", bottom: "auto" } : { top: "-40px", bottom: "auto" },
|
|
5789
5815
|
...i.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
|
|
5790
5816
|
},
|
|
5791
5817
|
children: [
|
|
5792
|
-
/* @__PURE__ */ w.jsx(fa, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5793
|
-
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5794
|
-
/* @__PURE__ */ w.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5795
|
-
/* @__PURE__ */ w.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5818
|
+
/* @__PURE__ */ w.jsx(fa, { "data-source-path": "/src/components/ViewGateOverlay.tsx:766", size: 16 }),
|
|
5819
|
+
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:767", style: { display: "flex", flexDirection: "column" }, children: [
|
|
5820
|
+
/* @__PURE__ */ w.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:768", style: { fontWeight: 700 }, children: t.selectToComment }),
|
|
5821
|
+
/* @__PURE__ */ w.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:769", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
|
|
5796
5822
|
Math.round(i.rect.width),
|
|
5797
5823
|
" × ",
|
|
5798
5824
|
Math.round(i.rect.height)
|
|
@@ -5803,7 +5829,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5803
5829
|
)
|
|
5804
5830
|
}
|
|
5805
5831
|
),
|
|
5806
|
-
o && /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5832
|
+
o && /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:779", className: "vg-animate-fade", style: {
|
|
5807
5833
|
position: "fixed",
|
|
5808
5834
|
top: 0,
|
|
5809
5835
|
left: 0,
|
|
@@ -5815,13 +5841,13 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5815
5841
|
alignItems: "center",
|
|
5816
5842
|
justifyContent: "center",
|
|
5817
5843
|
zIndex: Yt
|
|
5818
|
-
}, children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5844
|
+
}, children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:784", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
5819
5845
|
padding: "40px",
|
|
5820
5846
|
width: "500px",
|
|
5821
5847
|
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
|
|
5822
5848
|
}, children: [
|
|
5823
|
-
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5824
|
-
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5849
|
+
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:788", style: { textAlign: "center", marginBottom: "32px" }, children: [
|
|
5850
|
+
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:789", style: {
|
|
5825
5851
|
width: "48px",
|
|
5826
5852
|
height: "48px",
|
|
5827
5853
|
background: "var(--vg-primary-gradient)",
|
|
@@ -5832,11 +5858,11 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5832
5858
|
margin: "0 auto 16px",
|
|
5833
5859
|
color: "white",
|
|
5834
5860
|
boxShadow: "0 8px 16px rgba(99, 102, 241, 0.3)"
|
|
5835
|
-
}, children: /* @__PURE__ */ w.jsx(mt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5836
|
-
/* @__PURE__ */ w.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5837
|
-
/* @__PURE__ */ w.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5861
|
+
}, children: /* @__PURE__ */ w.jsx(mt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:794", size: 24 }) }),
|
|
5862
|
+
/* @__PURE__ */ w.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:796", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: t.feedbackHeader }),
|
|
5863
|
+
/* @__PURE__ */ w.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:797", style: { margin: 0, color: "#64748b", fontSize: "15px" }, children: t.feedbackSubheader })
|
|
5838
5864
|
] }),
|
|
5839
|
-
o.visualPreview && /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5865
|
+
o.visualPreview && /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:801", style: { marginBottom: "24px", borderRadius: "12px", overflow: "hidden", border: "1px solid #e2e8f0", background: "#f8fafc" }, children: /* @__PURE__ */ w.jsx(
|
|
5840
5866
|
"img",
|
|
5841
5867
|
{
|
|
5842
5868
|
src: o.visualPreview,
|
|
@@ -5856,7 +5882,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5856
5882
|
style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
|
|
5857
5883
|
}
|
|
5858
5884
|
),
|
|
5859
|
-
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5885
|
+
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:820", style: { display: "flex", gap: "12px" }, children: [
|
|
5860
5886
|
/* @__PURE__ */ w.jsx(
|
|
5861
5887
|
"button",
|
|
5862
5888
|
{
|
|
@@ -5873,15 +5899,15 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5873
5899
|
className: "vg-button-primary",
|
|
5874
5900
|
disabled: f || !l.trim(),
|
|
5875
5901
|
style: { flex: 2 },
|
|
5876
|
-
children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5877
|
-
f ? /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5878
|
-
/* @__PURE__ */ w.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5902
|
+
children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:834", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
5903
|
+
f ? /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:835", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ w.jsx(pa, { "data-source-path": "/src/components/ViewGateOverlay.tsx:835", size: 18 }),
|
|
5904
|
+
/* @__PURE__ */ w.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:836", children: f ? t.submitting : t.sendFeedback || "Send Comment" })
|
|
5879
5905
|
] })
|
|
5880
5906
|
}
|
|
5881
5907
|
)
|
|
5882
5908
|
] })
|
|
5883
5909
|
] }) }),
|
|
5884
|
-
h && /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5910
|
+
h && /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:846", className: "vg-animate-fade", style: {
|
|
5885
5911
|
position: "fixed",
|
|
5886
5912
|
top: 0,
|
|
5887
5913
|
left: 0,
|
|
@@ -5893,23 +5919,23 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5893
5919
|
alignItems: "center",
|
|
5894
5920
|
justifyContent: "center",
|
|
5895
5921
|
zIndex: Yt
|
|
5896
|
-
}, children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5922
|
+
}, children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:851", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
5897
5923
|
padding: "32px",
|
|
5898
5924
|
width: "650px",
|
|
5899
5925
|
maxHeight: "85vh",
|
|
5900
5926
|
display: "flex",
|
|
5901
5927
|
flexDirection: "column"
|
|
5902
5928
|
}, children: [
|
|
5903
|
-
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5904
|
-
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5905
|
-
/* @__PURE__ */ w.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5906
|
-
!T && /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5929
|
+
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:855", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
|
|
5930
|
+
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:856", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
|
|
5931
|
+
/* @__PURE__ */ w.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:857", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: T ? t.commentDetails : t.annotations }),
|
|
5932
|
+
!T && /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:861", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: I.length })
|
|
5907
5933
|
] }),
|
|
5908
|
-
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5934
|
+
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:866", style: { display: "flex", gap: "8px" }, children: [
|
|
5909
5935
|
T && /* @__PURE__ */ w.jsx(
|
|
5910
5936
|
"button",
|
|
5911
5937
|
{
|
|
5912
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5938
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:868",
|
|
5913
5939
|
className: "vg-button-ghost",
|
|
5914
5940
|
style: { padding: "6px 14px", fontSize: "12px" },
|
|
5915
5941
|
onClick: () => P(null),
|
|
@@ -5919,21 +5945,21 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5919
5945
|
/* @__PURE__ */ w.jsx(
|
|
5920
5946
|
"button",
|
|
5921
5947
|
{
|
|
5922
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5948
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:876",
|
|
5923
5949
|
className: "vg-button-ghost",
|
|
5924
5950
|
style: { padding: "8px", borderRadius: "50%" },
|
|
5925
5951
|
onClick: () => {
|
|
5926
5952
|
d(!1), P(null);
|
|
5927
5953
|
},
|
|
5928
|
-
children: /* @__PURE__ */ w.jsx(Or, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5954
|
+
children: /* @__PURE__ */ w.jsx(Or, { "data-source-path": "/src/components/ViewGateOverlay.tsx:881", size: 20 })
|
|
5929
5955
|
}
|
|
5930
5956
|
)
|
|
5931
5957
|
] })
|
|
5932
5958
|
] }),
|
|
5933
|
-
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5959
|
+
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:886", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: H ? /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:888", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:889", className: "vg-spinner" }) }) : (T ? I.filter((E) => E._id === T) : I).map((E, K) => /* @__PURE__ */ w.jsxs(
|
|
5934
5960
|
"div",
|
|
5935
5961
|
{
|
|
5936
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5962
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:893",
|
|
5937
5963
|
className: "vg-glassmorphism vg-animate-slide",
|
|
5938
5964
|
style: {
|
|
5939
5965
|
padding: "20px",
|
|
@@ -5943,17 +5969,17 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5943
5969
|
animationDelay: `${K * 0.05}s`
|
|
5944
5970
|
},
|
|
5945
5971
|
children: [
|
|
5946
|
-
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5947
|
-
E.status === "ready_for_review" ? /* @__PURE__ */ w.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5948
|
-
/* @__PURE__ */ w.jsx(qA, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5972
|
+
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:904", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:905", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
|
|
5973
|
+
E.status === "ready_for_review" ? /* @__PURE__ */ w.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:907", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a" }, children: [
|
|
5974
|
+
/* @__PURE__ */ w.jsx(qA, { "data-source-path": "/src/components/ViewGateOverlay.tsx:908", size: 14 }),
|
|
5949
5975
|
" ",
|
|
5950
5976
|
t.readyForReview
|
|
5951
|
-
] }) : /* @__PURE__ */ w.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5952
|
-
/* @__PURE__ */ w.jsx(Dr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5977
|
+
] }) : /* @__PURE__ */ w.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:911", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c" }, children: [
|
|
5978
|
+
/* @__PURE__ */ w.jsx(Dr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:912", size: 14 }),
|
|
5953
5979
|
" ",
|
|
5954
5980
|
t.pending
|
|
5955
5981
|
] }),
|
|
5956
|
-
/* @__PURE__ */ w.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5982
|
+
/* @__PURE__ */ w.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:915", style: { fontSize: "12px", color: "#94a3b8" }, children: ng(E.timestamp || E.createdAt || E.reference?.timestamp, A) })
|
|
5957
5983
|
] }) }),
|
|
5958
5984
|
aA === E._id ? /* @__PURE__ */ w.jsx(
|
|
5959
5985
|
"textarea",
|
|
@@ -5965,12 +5991,12 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5965
5991
|
autoFocus: !0,
|
|
5966
5992
|
style: { marginBottom: "16px" }
|
|
5967
5993
|
}
|
|
5968
|
-
) : /* @__PURE__ */ w.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5969
|
-
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5994
|
+
) : /* @__PURE__ */ w.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:931", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: E.message }),
|
|
5995
|
+
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:934", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: aA === E._id ? /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
5970
5996
|
/* @__PURE__ */ w.jsx(
|
|
5971
5997
|
"button",
|
|
5972
5998
|
{
|
|
5973
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
5999
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:937",
|
|
5974
6000
|
className: "vg-button-primary vg-animate-pop",
|
|
5975
6001
|
style: { padding: "8px 16px", fontSize: "13px" },
|
|
5976
6002
|
onClick: async () => {
|
|
@@ -5987,19 +6013,19 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
5987
6013
|
children: t.save
|
|
5988
6014
|
}
|
|
5989
6015
|
),
|
|
5990
|
-
/* @__PURE__ */ w.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6016
|
+
/* @__PURE__ */ w.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:959", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => X(null), children: t.cancel })
|
|
5991
6017
|
] }) : /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
5992
6018
|
/* @__PURE__ */ w.jsxs(
|
|
5993
6019
|
"button",
|
|
5994
6020
|
{
|
|
5995
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6021
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:963",
|
|
5996
6022
|
className: "vg-button-ghost vg-animate-pop",
|
|
5997
6023
|
style: { padding: "8px 16px", fontSize: "13px" },
|
|
5998
6024
|
onClick: () => {
|
|
5999
6025
|
X(E._id), gA(E.message);
|
|
6000
6026
|
},
|
|
6001
6027
|
children: [
|
|
6002
|
-
/* @__PURE__ */ w.jsx(Ua, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6028
|
+
/* @__PURE__ */ w.jsx(Ua, { "data-source-path": "/src/components/ViewGateOverlay.tsx:971", size: 14 }),
|
|
6003
6029
|
" ",
|
|
6004
6030
|
t.edit
|
|
6005
6031
|
]
|
|
@@ -6008,14 +6034,14 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
6008
6034
|
/* @__PURE__ */ w.jsxs(
|
|
6009
6035
|
"button",
|
|
6010
6036
|
{
|
|
6011
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6037
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:973",
|
|
6012
6038
|
className: "vg-button-ghost vg-animate-pop",
|
|
6013
6039
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.05s" },
|
|
6014
6040
|
onClick: () => {
|
|
6015
6041
|
E.url && (window.location.href = E.url);
|
|
6016
6042
|
},
|
|
6017
6043
|
children: [
|
|
6018
|
-
/* @__PURE__ */ w.jsx(la, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6044
|
+
/* @__PURE__ */ w.jsx(la, { "data-source-path": "/src/components/ViewGateOverlay.tsx:980", size: 14 }),
|
|
6019
6045
|
" ",
|
|
6020
6046
|
t.review
|
|
6021
6047
|
]
|
|
@@ -6024,7 +6050,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
6024
6050
|
E.status === "pending" ? /* @__PURE__ */ w.jsxs(
|
|
6025
6051
|
"button",
|
|
6026
6052
|
{
|
|
6027
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6053
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:983",
|
|
6028
6054
|
className: "vg-button-primary vg-animate-pop",
|
|
6029
6055
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
|
|
6030
6056
|
onClick: () => {
|
|
@@ -6048,7 +6074,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
6048
6074
|
});
|
|
6049
6075
|
},
|
|
6050
6076
|
children: [
|
|
6051
|
-
/* @__PURE__ */ w.jsx(qA, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6077
|
+
/* @__PURE__ */ w.jsx(qA, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1011", size: 14 }),
|
|
6052
6078
|
" ",
|
|
6053
6079
|
t.markReady
|
|
6054
6080
|
]
|
|
@@ -6056,7 +6082,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
6056
6082
|
) : /* @__PURE__ */ w.jsxs(
|
|
6057
6083
|
"button",
|
|
6058
6084
|
{
|
|
6059
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6085
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1014",
|
|
6060
6086
|
className: "vg-button-ghost vg-animate-pop",
|
|
6061
6087
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
|
|
6062
6088
|
onClick: () => {
|
|
@@ -6081,7 +6107,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
6081
6107
|
});
|
|
6082
6108
|
},
|
|
6083
6109
|
children: [
|
|
6084
|
-
/* @__PURE__ */ w.jsx(ha, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6110
|
+
/* @__PURE__ */ w.jsx(ha, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1042", size: 14 }),
|
|
6085
6111
|
" ",
|
|
6086
6112
|
t.reopen
|
|
6087
6113
|
]
|
|
@@ -6090,7 +6116,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
6090
6116
|
/* @__PURE__ */ w.jsx(
|
|
6091
6117
|
"button",
|
|
6092
6118
|
{
|
|
6093
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6119
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1045",
|
|
6094
6120
|
className: "vg-button-ghost vg-animate-pop",
|
|
6095
6121
|
style: { padding: "8px 12px", color: "#ef4444", borderColor: "#fee2e2", animationDelay: "0.15s" },
|
|
6096
6122
|
onClick: () => {
|
|
@@ -6112,7 +6138,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
6112
6138
|
}
|
|
6113
6139
|
});
|
|
6114
6140
|
},
|
|
6115
|
-
children: /* @__PURE__ */ w.jsx(Tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6141
|
+
children: /* @__PURE__ */ w.jsx(Tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1072", size: 16 })
|
|
6116
6142
|
}
|
|
6117
6143
|
)
|
|
6118
6144
|
] }) })
|
|
@@ -6121,7 +6147,7 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
6121
6147
|
E._id
|
|
6122
6148
|
)) })
|
|
6123
6149
|
] }) }),
|
|
6124
|
-
v && /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6150
|
+
v && /* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1087", className: "vg-animate-fade", style: {
|
|
6125
6151
|
position: "fixed",
|
|
6126
6152
|
top: 0,
|
|
6127
6153
|
left: 0,
|
|
@@ -6133,8 +6159,8 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
6133
6159
|
alignItems: "center",
|
|
6134
6160
|
justifyContent: "center",
|
|
6135
6161
|
zIndex: Yt + 1
|
|
6136
|
-
}, children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6137
|
-
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6162
|
+
}, children: /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1092", className: "vg-glassmorphism vg-animate-slide", style: { padding: "32px", width: "400px", textAlign: "center" }, children: [
|
|
6163
|
+
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1093", style: {
|
|
6138
6164
|
width: "48px",
|
|
6139
6165
|
height: "48px",
|
|
6140
6166
|
background: v.type === "danger" ? "#fee2e2" : "#e0e7ff",
|
|
@@ -6144,15 +6170,15 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
6144
6170
|
justifyContent: "center",
|
|
6145
6171
|
margin: "0 auto 20px",
|
|
6146
6172
|
color: v.type === "danger" ? "#ef4444" : "#6366f1"
|
|
6147
|
-
}, children: v.type === "danger" ? /* @__PURE__ */ w.jsx(Tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6148
|
-
/* @__PURE__ */ w.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6149
|
-
/* @__PURE__ */ w.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6150
|
-
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6151
|
-
/* @__PURE__ */ w.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6173
|
+
}, children: v.type === "danger" ? /* @__PURE__ */ w.jsx(Tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1101", size: 24 }) : /* @__PURE__ */ w.jsx(qA, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1101", size: 24 }) }),
|
|
6174
|
+
/* @__PURE__ */ w.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1103", style: { margin: "0 0 8px 0", fontSize: "18px", fontWeight: 800, color: "#0f172a" }, children: v.title }),
|
|
6175
|
+
/* @__PURE__ */ w.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1104", style: { margin: "0 0 24px 0", fontSize: "14px", color: "#64748b", lineHeight: 1.5 }, children: v.message }),
|
|
6176
|
+
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1105", style: { display: "flex", gap: "12px" }, children: [
|
|
6177
|
+
/* @__PURE__ */ w.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1106", className: "vg-button-ghost", style: { flex: 1 }, onClick: () => U(null), children: t.no }),
|
|
6152
6178
|
/* @__PURE__ */ w.jsx(
|
|
6153
6179
|
"button",
|
|
6154
6180
|
{
|
|
6155
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6181
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1107",
|
|
6156
6182
|
className: "vg-button-primary",
|
|
6157
6183
|
style: {
|
|
6158
6184
|
flex: 1,
|
|
@@ -6193,19 +6219,19 @@ const Rn = Gn.default || Gn, ql = 2147483647, Mn = ql, Yt = 2e6, $l = 90, Ag = 1
|
|
|
6193
6219
|
d(!0), P(E._id);
|
|
6194
6220
|
},
|
|
6195
6221
|
children: [
|
|
6196
|
-
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6197
|
-
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6198
|
-
/* @__PURE__ */ w.jsx(qA, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6222
|
+
/* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1162", className: `vg-pin-tooltip ${q[E._id] || ""}`, children: [
|
|
6223
|
+
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1163", style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "8px" }, children: E.status === "ready_for_review" ? /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1165", style: { display: "flex", alignItems: "center", gap: "6px", color: "#16a34a", fontWeight: 700, fontSize: "11px" }, children: [
|
|
6224
|
+
/* @__PURE__ */ w.jsx(qA, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1166", size: 12 }),
|
|
6199
6225
|
" ",
|
|
6200
6226
|
t.readyForReview
|
|
6201
|
-
] }) : /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6202
|
-
/* @__PURE__ */ w.jsx(Dr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6227
|
+
] }) : /* @__PURE__ */ w.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1169", style: { display: "flex", alignItems: "center", gap: "6px", color: "#ea580c", fontWeight: 700, fontSize: "11px" }, children: [
|
|
6228
|
+
/* @__PURE__ */ w.jsx(Dr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1170", size: 12 }),
|
|
6203
6229
|
" ",
|
|
6204
6230
|
t.pending
|
|
6205
6231
|
] }) }),
|
|
6206
|
-
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6232
|
+
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1174", style: { fontWeight: 500, color: "#1e293b", lineHeight: 1.4 }, children: E.message })
|
|
6207
6233
|
] }),
|
|
6208
|
-
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
6234
|
+
/* @__PURE__ */ w.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1177", className: `vg-formal-pin ${E.status === "ready_for_review" ? "ready" : ""}`, children: E.status === "ready_for_review" ? /* @__PURE__ */ w.jsx(qA, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1178", size: 18 }) : /* @__PURE__ */ w.jsx(mt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1178", size: 16 }) })
|
|
6209
6235
|
]
|
|
6210
6236
|
},
|
|
6211
6237
|
`pin-${E._id}`
|
|
@@ -6223,7 +6249,7 @@ function Js(e, A, t) {
|
|
|
6223
6249
|
}).join(`
|
|
6224
6250
|
`);
|
|
6225
6251
|
}
|
|
6226
|
-
function
|
|
6252
|
+
function Cg() {
|
|
6227
6253
|
return {
|
|
6228
6254
|
name: "vite-plugin-viewgate",
|
|
6229
6255
|
enforce: "pre",
|
|
@@ -6235,15 +6261,15 @@ function fg() {
|
|
|
6235
6261
|
}
|
|
6236
6262
|
};
|
|
6237
6263
|
}
|
|
6238
|
-
function
|
|
6264
|
+
function Ug(e) {
|
|
6239
6265
|
const A = this.resourcePath;
|
|
6240
6266
|
return A ? (process.env.NODE_ENV, Js(e, A, process.cwd())) : e;
|
|
6241
6267
|
}
|
|
6242
6268
|
export {
|
|
6243
|
-
|
|
6244
|
-
|
|
6269
|
+
fg as ViewGate,
|
|
6270
|
+
ug as ViewGateOverlay,
|
|
6245
6271
|
Js as transformSourcePaths,
|
|
6246
6272
|
ma as useViewGate,
|
|
6247
|
-
|
|
6248
|
-
|
|
6273
|
+
Ug as viewgateNextLoader,
|
|
6274
|
+
Cg as viewgatePlugin
|
|
6249
6275
|
};
|