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