viewgate-wrapper 1.10.11 → 1.10.13
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,18 +1,18 @@
|
|
|
1
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:var(--vg-primary-gradient);border:3px solid white;box-shadow:0 4px 12px #6366f166;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.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:12px 16px;border-radius:12px;background:#fff;color:#1e293b;width:240px;font-size:13px;box-shadow:0 10px 40px #00000026;opacity:0;pointer-events:none;transition:all .2s ease;border:1px solid #e2e8f0}.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}')),document.head.appendChild(r)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
import Tt, { useRef as
|
|
2
|
+
import Tt, { useRef as ge, useState as j, useEffect as Z, forwardRef as mt, createElement as Ie, createContext as Vt, useContext as Pt, useCallback as Ee } from "react";
|
|
3
3
|
import { createPortal as At } from "react-dom";
|
|
4
|
-
var
|
|
4
|
+
var Se = { exports: {} }, fe = {};
|
|
5
5
|
var Xe;
|
|
6
|
-
function
|
|
7
|
-
if (Xe) return
|
|
6
|
+
function $t() {
|
|
7
|
+
if (Xe) return fe;
|
|
8
8
|
Xe = 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 i = null;
|
|
12
12
|
if (s !== void 0 && (i = "" + s), a.key !== void 0 && (i = "" + a.key), "key" in a) {
|
|
13
13
|
s = {};
|
|
14
|
-
for (var
|
|
15
|
-
|
|
14
|
+
for (var c in a)
|
|
15
|
+
c !== "key" && (s[c] = a[c]);
|
|
16
16
|
} else s = a;
|
|
17
17
|
return a = s.ref, {
|
|
18
18
|
$$typeof: e,
|
|
@@ -22,156 +22,156 @@ function Gt() {
|
|
|
22
22
|
props: s
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return fe.Fragment = t, fe.jsx = r, fe.jsxs = r, fe;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var he = {};
|
|
28
28
|
var Je;
|
|
29
|
-
function
|
|
29
|
+
function Gt() {
|
|
30
30
|
return Je || (Je = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
31
|
-
function e(
|
|
32
|
-
if (
|
|
33
|
-
if (typeof
|
|
34
|
-
return
|
|
35
|
-
if (typeof
|
|
36
|
-
switch (
|
|
31
|
+
function e(l) {
|
|
32
|
+
if (l == null) return null;
|
|
33
|
+
if (typeof l == "function")
|
|
34
|
+
return l.$$typeof === ce ? null : l.displayName || l.name || null;
|
|
35
|
+
if (typeof l == "string") return l;
|
|
36
|
+
switch (l) {
|
|
37
37
|
case P:
|
|
38
38
|
return "Fragment";
|
|
39
39
|
case D:
|
|
40
40
|
return "Profiler";
|
|
41
41
|
case z:
|
|
42
42
|
return "StrictMode";
|
|
43
|
-
case
|
|
43
|
+
case W:
|
|
44
44
|
return "Suspense";
|
|
45
|
-
case
|
|
45
|
+
case $:
|
|
46
46
|
return "SuspenseList";
|
|
47
47
|
case Be:
|
|
48
48
|
return "Activity";
|
|
49
49
|
}
|
|
50
|
-
if (typeof
|
|
51
|
-
switch (typeof
|
|
50
|
+
if (typeof l == "object")
|
|
51
|
+
switch (typeof l.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
|
+
), l.$$typeof) {
|
|
54
54
|
case T:
|
|
55
55
|
return "Portal";
|
|
56
|
-
case
|
|
57
|
-
return
|
|
56
|
+
case F:
|
|
57
|
+
return l.displayName || "Context";
|
|
58
58
|
case A:
|
|
59
|
-
return (
|
|
59
|
+
return (l._context.displayName || "Context") + ".Consumer";
|
|
60
60
|
case _:
|
|
61
|
-
var
|
|
62
|
-
return
|
|
63
|
-
case
|
|
64
|
-
return
|
|
65
|
-
case
|
|
66
|
-
|
|
61
|
+
var y = l.render;
|
|
62
|
+
return l = l.displayName, l || (l = y.displayName || y.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
|
|
63
|
+
case H:
|
|
64
|
+
return y = l.displayName || null, y !== null ? y : e(l.type) || "Memo";
|
|
65
|
+
case we:
|
|
66
|
+
y = l._payload, l = l._init;
|
|
67
67
|
try {
|
|
68
|
-
return e(
|
|
68
|
+
return e(l(y));
|
|
69
69
|
} catch {
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
return null;
|
|
73
73
|
}
|
|
74
|
-
function t(
|
|
75
|
-
return "" +
|
|
74
|
+
function t(l) {
|
|
75
|
+
return "" + l;
|
|
76
76
|
}
|
|
77
|
-
function r(
|
|
77
|
+
function r(l) {
|
|
78
78
|
try {
|
|
79
|
-
t(
|
|
80
|
-
var
|
|
79
|
+
t(l);
|
|
80
|
+
var y = !1;
|
|
81
81
|
} catch {
|
|
82
|
-
|
|
82
|
+
y = !0;
|
|
83
83
|
}
|
|
84
|
-
if (
|
|
85
|
-
|
|
86
|
-
var
|
|
87
|
-
return
|
|
88
|
-
|
|
84
|
+
if (y) {
|
|
85
|
+
y = console;
|
|
86
|
+
var b = y.error, k = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
|
|
87
|
+
return b.call(
|
|
88
|
+
y,
|
|
89
89
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
90
90
|
k
|
|
91
|
-
), t(
|
|
91
|
+
), t(l);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function n(
|
|
95
|
-
if (
|
|
96
|
-
if (typeof
|
|
94
|
+
function n(l) {
|
|
95
|
+
if (l === P) return "<>";
|
|
96
|
+
if (typeof l == "object" && l !== null && l.$$typeof === we)
|
|
97
97
|
return "<...>";
|
|
98
98
|
try {
|
|
99
|
-
var
|
|
100
|
-
return
|
|
99
|
+
var y = e(l);
|
|
100
|
+
return y ? "<" + y + ">" : "<...>";
|
|
101
101
|
} catch {
|
|
102
102
|
return "<...>";
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function a() {
|
|
106
|
-
var
|
|
107
|
-
return
|
|
106
|
+
var l = te.A;
|
|
107
|
+
return l === null ? null : l.getOwner();
|
|
108
108
|
}
|
|
109
109
|
function s() {
|
|
110
110
|
return Error("react-stack-top-frame");
|
|
111
111
|
}
|
|
112
|
-
function i(
|
|
113
|
-
if (
|
|
114
|
-
var
|
|
115
|
-
if (
|
|
112
|
+
function i(l) {
|
|
113
|
+
if (ve.call(l, "key")) {
|
|
114
|
+
var y = Object.getOwnPropertyDescriptor(l, "key").get;
|
|
115
|
+
if (y && y.isReactWarning) return !1;
|
|
116
116
|
}
|
|
117
|
-
return
|
|
117
|
+
return l.key !== void 0;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
function
|
|
121
|
-
|
|
119
|
+
function c(l, y) {
|
|
120
|
+
function b() {
|
|
121
|
+
re || (re = !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
|
+
y
|
|
124
124
|
));
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
get:
|
|
126
|
+
b.isReactWarning = !0, Object.defineProperty(l, "key", {
|
|
127
|
+
get: b,
|
|
128
128
|
configurable: !0
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
function p() {
|
|
132
|
-
var
|
|
133
|
-
return
|
|
132
|
+
var l = e(this.type);
|
|
133
|
+
return Q[l] || (Q[l] = !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
|
+
)), l = this.props.ref, l !== void 0 ? l : null;
|
|
136
136
|
}
|
|
137
|
-
function u(
|
|
138
|
-
var O =
|
|
139
|
-
return
|
|
140
|
-
$$typeof:
|
|
141
|
-
type:
|
|
142
|
-
key:
|
|
143
|
-
props:
|
|
137
|
+
function u(l, y, b, k, ne, q) {
|
|
138
|
+
var O = b.ref;
|
|
139
|
+
return l = {
|
|
140
|
+
$$typeof: w,
|
|
141
|
+
type: l,
|
|
142
|
+
key: y,
|
|
143
|
+
props: b,
|
|
144
144
|
_owner: k
|
|
145
|
-
}, (O !== void 0 ? O : null) !== null ? Object.defineProperty(
|
|
145
|
+
}, (O !== void 0 ? O : null) !== null ? Object.defineProperty(l, "ref", {
|
|
146
146
|
enumerable: !1,
|
|
147
147
|
get: p
|
|
148
|
-
}) : Object.defineProperty(
|
|
148
|
+
}) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
149
149
|
configurable: !1,
|
|
150
150
|
enumerable: !1,
|
|
151
151
|
writable: !0,
|
|
152
152
|
value: 0
|
|
153
|
-
}), Object.defineProperty(
|
|
153
|
+
}), Object.defineProperty(l, "_debugInfo", {
|
|
154
154
|
configurable: !1,
|
|
155
155
|
enumerable: !1,
|
|
156
156
|
writable: !0,
|
|
157
157
|
value: null
|
|
158
|
-
}), Object.defineProperty(
|
|
158
|
+
}), Object.defineProperty(l, "_debugStack", {
|
|
159
159
|
configurable: !1,
|
|
160
160
|
enumerable: !1,
|
|
161
161
|
writable: !0,
|
|
162
|
-
value:
|
|
163
|
-
}), Object.defineProperty(
|
|
162
|
+
value: ne
|
|
163
|
+
}), Object.defineProperty(l, "_debugTask", {
|
|
164
164
|
configurable: !1,
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
writable: !0,
|
|
167
167
|
value: q
|
|
168
|
-
}), Object.freeze && (Object.freeze(
|
|
168
|
+
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
var O =
|
|
170
|
+
function v(l, y, b, k, ne, q) {
|
|
171
|
+
var O = y.children;
|
|
172
172
|
if (O !== void 0)
|
|
173
173
|
if (k)
|
|
174
|
-
if (
|
|
174
|
+
if (be(O)) {
|
|
175
175
|
for (k = 0; k < O.length; k++)
|
|
176
176
|
m(O[k]);
|
|
177
177
|
Object.freeze && Object.freeze(O);
|
|
@@ -180,12 +180,12 @@ function $t() {
|
|
|
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
182
|
else m(O);
|
|
183
|
-
if (
|
|
184
|
-
O = e(
|
|
185
|
-
var V = Object.keys(
|
|
183
|
+
if (ve.call(y, "key")) {
|
|
184
|
+
O = e(l);
|
|
185
|
+
var V = Object.keys(y).filter(function(_e) {
|
|
186
186
|
return _e !== "key";
|
|
187
187
|
});
|
|
188
|
-
k = 0 < V.length ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
188
|
+
k = 0 < V.length ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}", Ce[O + k] || (V = 0 < V.length ? "{" + V.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} />
|
|
@@ -196,78 +196,78 @@ React keys must be passed directly to JSX without using spread:
|
|
|
196
196
|
O,
|
|
197
197
|
V,
|
|
198
198
|
O
|
|
199
|
-
),
|
|
199
|
+
), Ce[O + k] = !0);
|
|
200
200
|
}
|
|
201
|
-
if (O = null,
|
|
202
|
-
|
|
203
|
-
for (var
|
|
204
|
-
|
|
205
|
-
} else
|
|
206
|
-
return O &&
|
|
207
|
-
|
|
208
|
-
typeof
|
|
201
|
+
if (O = null, b !== void 0 && (r(b), O = "" + b), i(y) && (r(y.key), O = "" + y.key), "key" in y) {
|
|
202
|
+
b = {};
|
|
203
|
+
for (var de in y)
|
|
204
|
+
de !== "key" && (b[de] = y[de]);
|
|
205
|
+
} else b = y;
|
|
206
|
+
return O && c(
|
|
207
|
+
b,
|
|
208
|
+
typeof l == "function" ? l.displayName || l.name || "Unknown" : l
|
|
209
209
|
), u(
|
|
210
|
-
|
|
210
|
+
l,
|
|
211
211
|
O,
|
|
212
|
-
|
|
212
|
+
b,
|
|
213
213
|
a(),
|
|
214
|
-
|
|
214
|
+
ne,
|
|
215
215
|
q
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
|
-
function m(
|
|
219
|
-
x(
|
|
218
|
+
function m(l) {
|
|
219
|
+
x(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === we && (l._payload.status === "fulfilled" ? x(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
|
|
220
220
|
}
|
|
221
|
-
function x(
|
|
222
|
-
return typeof
|
|
221
|
+
function x(l) {
|
|
222
|
+
return typeof l == "object" && l !== null && l.$$typeof === w;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var f = Tt, w = /* @__PURE__ */ Symbol.for("react.transitional.element"), T = /* @__PURE__ */ Symbol.for("react.portal"), P = /* @__PURE__ */ Symbol.for("react.fragment"), z = /* @__PURE__ */ Symbol.for("react.strict_mode"), D = /* @__PURE__ */ Symbol.for("react.profiler"), A = /* @__PURE__ */ Symbol.for("react.consumer"), F = /* @__PURE__ */ Symbol.for("react.context"), _ = /* @__PURE__ */ Symbol.for("react.forward_ref"), W = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), H = /* @__PURE__ */ Symbol.for("react.memo"), we = /* @__PURE__ */ Symbol.for("react.lazy"), Be = /* @__PURE__ */ Symbol.for("react.activity"), ce = /* @__PURE__ */ Symbol.for("react.client.reference"), te = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ve = Object.prototype.hasOwnProperty, be = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
225
225
|
return null;
|
|
226
226
|
};
|
|
227
|
-
|
|
228
|
-
react_stack_bottom_frame: function(
|
|
229
|
-
return
|
|
227
|
+
f = {
|
|
228
|
+
react_stack_bottom_frame: function(l) {
|
|
229
|
+
return l();
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
var
|
|
233
|
-
|
|
232
|
+
var re, Q = {}, le = f.react_stack_bottom_frame.bind(
|
|
233
|
+
f,
|
|
234
234
|
s
|
|
235
|
-
)(), U = B(n(s)),
|
|
236
|
-
|
|
237
|
-
var k = 1e4 >
|
|
238
|
-
return
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
235
|
+
)(), U = B(n(s)), Ce = {};
|
|
236
|
+
he.Fragment = P, he.jsx = function(l, y, b) {
|
|
237
|
+
var k = 1e4 > te.recentlyCreatedOwnerStacks++;
|
|
238
|
+
return v(
|
|
239
|
+
l,
|
|
240
|
+
y,
|
|
241
|
+
b,
|
|
242
242
|
!1,
|
|
243
|
-
k ? Error("react-stack-top-frame") :
|
|
244
|
-
k ? B(n(
|
|
243
|
+
k ? Error("react-stack-top-frame") : le,
|
|
244
|
+
k ? B(n(l)) : U
|
|
245
245
|
);
|
|
246
|
-
},
|
|
247
|
-
var k = 1e4 >
|
|
248
|
-
return
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
246
|
+
}, he.jsxs = function(l, y, b) {
|
|
247
|
+
var k = 1e4 > te.recentlyCreatedOwnerStacks++;
|
|
248
|
+
return v(
|
|
249
|
+
l,
|
|
250
|
+
y,
|
|
251
|
+
b,
|
|
252
252
|
!0,
|
|
253
|
-
k ? Error("react-stack-top-frame") :
|
|
254
|
-
k ? B(n(
|
|
253
|
+
k ? Error("react-stack-top-frame") : le,
|
|
254
|
+
k ? B(n(l)) : U
|
|
255
255
|
);
|
|
256
256
|
};
|
|
257
|
-
})()),
|
|
257
|
+
})()), he;
|
|
258
258
|
}
|
|
259
259
|
var Ze;
|
|
260
260
|
function Lt() {
|
|
261
|
-
return Ze || (Ze = 1, process.env.NODE_ENV === "production" ?
|
|
261
|
+
return Ze || (Ze = 1, process.env.NODE_ENV === "production" ? Se.exports = $t() : Se.exports = Gt()), Se.exports;
|
|
262
262
|
}
|
|
263
263
|
var o = Lt();
|
|
264
264
|
const Nt = ({ children: e }) => {
|
|
265
|
-
const t =
|
|
266
|
-
return
|
|
265
|
+
const t = ge(null), [r, n] = j(null);
|
|
266
|
+
return Z(() => {
|
|
267
267
|
if (t.current && !t.current.shadowRoot) {
|
|
268
268
|
const a = t.current.attachShadow({ mode: "open" });
|
|
269
|
-
document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach((
|
|
270
|
-
(
|
|
269
|
+
document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach((c) => {
|
|
270
|
+
(c.textContent?.includes(".vg-") || c.textContent?.includes("--vg-")) && a.appendChild(c.cloneNode(!0));
|
|
271
271
|
});
|
|
272
272
|
const i = document.createElement("link");
|
|
273
273
|
i.rel = "stylesheet", i.href = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap", a.appendChild(i), n(a);
|
|
@@ -275,13 +275,13 @@ const Nt = ({ children: e }) => {
|
|
|
275
275
|
}, []), /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ShadowRootWrapper.tsx:38", ref: t, id: "viewgate-shadow-host", children: r && At(e, r) });
|
|
276
276
|
};
|
|
277
277
|
const ft = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim();
|
|
278
|
-
const
|
|
279
|
-
const
|
|
278
|
+
const Mt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
279
|
+
const It = (e) => e.replace(
|
|
280
280
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
281
281
|
(t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
|
|
282
282
|
);
|
|
283
283
|
const Ke = (e) => {
|
|
284
|
-
const t =
|
|
284
|
+
const t = It(e);
|
|
285
285
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
286
286
|
};
|
|
287
287
|
var zt = {
|
|
@@ -310,8 +310,8 @@ const Ft = mt(
|
|
|
310
310
|
className: a = "",
|
|
311
311
|
children: s,
|
|
312
312
|
iconNode: i,
|
|
313
|
-
...
|
|
314
|
-
}, p) =>
|
|
313
|
+
...c
|
|
314
|
+
}, p) => Ie(
|
|
315
315
|
"svg",
|
|
316
316
|
{
|
|
317
317
|
ref: p,
|
|
@@ -321,22 +321,22 @@ const Ft = mt(
|
|
|
321
321
|
stroke: e,
|
|
322
322
|
strokeWidth: n ? Number(r) * 24 / Number(t) : r,
|
|
323
323
|
className: ft("lucide", a),
|
|
324
|
-
...!s && !Dt(
|
|
325
|
-
...
|
|
324
|
+
...!s && !Dt(c) && { "aria-hidden": "true" },
|
|
325
|
+
...c
|
|
326
326
|
},
|
|
327
327
|
[
|
|
328
|
-
...i.map(([u,
|
|
328
|
+
...i.map(([u, v]) => Ie(u, v)),
|
|
329
329
|
...Array.isArray(s) ? s : [s]
|
|
330
330
|
]
|
|
331
331
|
)
|
|
332
332
|
);
|
|
333
333
|
const N = (e, t) => {
|
|
334
334
|
const r = mt(
|
|
335
|
-
({ className: n, ...a }, s) =>
|
|
335
|
+
({ className: n, ...a }, s) => Ie(Ft, {
|
|
336
336
|
ref: s,
|
|
337
337
|
iconNode: t,
|
|
338
338
|
className: ft(
|
|
339
|
-
`lucide-${
|
|
339
|
+
`lucide-${Mt(Ke(e))}`,
|
|
340
340
|
`lucide-${e}`,
|
|
341
341
|
n
|
|
342
342
|
),
|
|
@@ -353,7 +353,7 @@ const Ht = [
|
|
|
353
353
|
const Bt = [
|
|
354
354
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
355
355
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
356
|
-
],
|
|
356
|
+
], ie = N("circle-check", Bt);
|
|
357
357
|
const Ut = [
|
|
358
358
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
359
359
|
["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
|
|
@@ -434,7 +434,7 @@ const cr = [
|
|
|
434
434
|
const lr = [
|
|
435
435
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
436
436
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
437
|
-
],
|
|
437
|
+
], $e = N("x", lr), dr = {
|
|
438
438
|
en: {
|
|
439
439
|
enterMode: "Enter Feedback Mode",
|
|
440
440
|
exitMode: "Exit Mode",
|
|
@@ -537,8 +537,8 @@ const lr = [
|
|
|
537
537
|
apiKey: r,
|
|
538
538
|
baseUrl: n = "https://view-gate.vercel.app"
|
|
539
539
|
}) => {
|
|
540
|
-
const [a, s] = j(!1), [i,
|
|
541
|
-
|
|
540
|
+
const [a, s] = j(!1), [i, c] = j([]);
|
|
541
|
+
Z(() => {
|
|
542
542
|
s(pr());
|
|
543
543
|
}, []);
|
|
544
544
|
const p = () => {
|
|
@@ -547,15 +547,15 @@ const lr = [
|
|
|
547
547
|
m.searchParams.delete("viewgate"), window.history.replaceState({}, "", m.toString());
|
|
548
548
|
}
|
|
549
549
|
}, u = (m, x) => {
|
|
550
|
-
const
|
|
551
|
-
|
|
552
|
-
|
|
550
|
+
const f = Date.now();
|
|
551
|
+
c((w) => [...w, { id: f, message: m, type: x }]), setTimeout(() => {
|
|
552
|
+
c((w) => w.filter((T) => T.id !== f));
|
|
553
553
|
}, 4e3);
|
|
554
|
-
},
|
|
554
|
+
}, v = dr[t];
|
|
555
555
|
return /* @__PURE__ */ o.jsxs(ht.Provider, { "data-source-path": "/src/components/ViewGateProvider.tsx:248", value: {
|
|
556
556
|
addToast: u,
|
|
557
557
|
language: t,
|
|
558
|
-
t:
|
|
558
|
+
t: v,
|
|
559
559
|
apiKey: r,
|
|
560
560
|
baseUrl: n,
|
|
561
561
|
disableViewGate: p,
|
|
@@ -565,9 +565,9 @@ const lr = [
|
|
|
565
565
|
a && /* @__PURE__ */ o.jsx(Nt, { "data-source-path": "/src/components/ViewGateProvider.tsx:259", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:260", className: "vg-container", children: [
|
|
566
566
|
/* @__PURE__ */ o.jsx(vn, { "data-source-path": "/src/components/ViewGateProvider.tsx:261" }),
|
|
567
567
|
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:262", className: "vg-toasts", style: { zIndex: 2147483646 }, children: i.map((m) => /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:264", className: `vg-toast vg-animate-slide ${m.type}`, children: [
|
|
568
|
-
m.type === "success" ? /* @__PURE__ */ o.jsx(
|
|
568
|
+
m.type === "success" ? /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateProvider.tsx:266", size: 24, color: "#22c55e" }) : /* @__PURE__ */ o.jsx(Wt, { "data-source-path": "/src/components/ViewGateProvider.tsx:268", size: 24, color: "#ef4444" }),
|
|
569
569
|
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:270", children: [
|
|
570
|
-
/* @__PURE__ */ o.jsx("strong", { "data-source-path": "/src/components/ViewGateProvider.tsx:271", style: { display: "block", fontSize: "13px", color: "#0f172a", textTransform: "uppercase", marginBottom: "2px" }, children: m.type === "success" ?
|
|
570
|
+
/* @__PURE__ */ o.jsx("strong", { "data-source-path": "/src/components/ViewGateProvider.tsx:271", style: { display: "block", fontSize: "13px", color: "#0f172a", textTransform: "uppercase", marginBottom: "2px" }, children: m.type === "success" ? v.successHeader : v.errorHeader }),
|
|
571
571
|
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateProvider.tsx:274", style: { fontSize: "14px", color: "#000000" }, children: m.message })
|
|
572
572
|
] })
|
|
573
573
|
] }, m.id)) })
|
|
@@ -592,26 +592,26 @@ const fr = /* @__PURE__ */ (() => {
|
|
|
592
592
|
);
|
|
593
593
|
return () => (e += 1, `u${t()}${e}`);
|
|
594
594
|
})();
|
|
595
|
-
function
|
|
595
|
+
function K(e) {
|
|
596
596
|
const t = [];
|
|
597
597
|
for (let r = 0, n = e.length; r < n; r++)
|
|
598
598
|
t.push(e[r]);
|
|
599
599
|
return t;
|
|
600
600
|
}
|
|
601
|
-
let
|
|
601
|
+
let ae = null;
|
|
602
602
|
function gt(e = {}) {
|
|
603
|
-
return
|
|
603
|
+
return ae || (e.includeStyleProperties ? (ae = e.includeStyleProperties, ae) : (ae = K(window.getComputedStyle(document.documentElement)), ae));
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function ke(e, t) {
|
|
606
606
|
const n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
|
|
607
607
|
return n ? parseFloat(n.replace("px", "")) : 0;
|
|
608
608
|
}
|
|
609
609
|
function hr(e) {
|
|
610
|
-
const t =
|
|
610
|
+
const t = ke(e, "border-left-width"), r = ke(e, "border-right-width");
|
|
611
611
|
return e.clientWidth + t + r;
|
|
612
612
|
}
|
|
613
613
|
function gr(e) {
|
|
614
|
-
const t =
|
|
614
|
+
const t = ke(e, "border-top-width"), r = ke(e, "border-bottom-width");
|
|
615
615
|
return e.clientHeight + t + r;
|
|
616
616
|
}
|
|
617
617
|
function yt(e, t = {}) {
|
|
@@ -627,11 +627,11 @@ function yr() {
|
|
|
627
627
|
const r = t && t.env ? t.env.devicePixelRatio : null;
|
|
628
628
|
return r && (e = parseInt(r, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
|
|
629
629
|
}
|
|
630
|
-
const
|
|
630
|
+
const I = 16384;
|
|
631
631
|
function xr(e) {
|
|
632
|
-
(e.width >
|
|
632
|
+
(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));
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function Re(e) {
|
|
635
635
|
return new Promise((t, r) => {
|
|
636
636
|
const n = new Image();
|
|
637
637
|
n.onload = () => {
|
|
@@ -678,8 +678,8 @@ function nt(e, t, r, n) {
|
|
|
678
678
|
} catch {
|
|
679
679
|
return;
|
|
680
680
|
}
|
|
681
|
-
const
|
|
682
|
-
|
|
681
|
+
const c = document.createElement("style");
|
|
682
|
+
c.appendChild(Er(i, r, a, n)), t.appendChild(c);
|
|
683
683
|
}
|
|
684
684
|
function Sr(e, t, r) {
|
|
685
685
|
nt(e, t, ":before", r), nt(e, t, ":after", r);
|
|
@@ -720,56 +720,56 @@ async function xt(e, t, r) {
|
|
|
720
720
|
throw new Error(`Resource "${n.url}" not found`);
|
|
721
721
|
const a = await n.blob();
|
|
722
722
|
return new Promise((s, i) => {
|
|
723
|
-
const
|
|
724
|
-
|
|
723
|
+
const c = new FileReader();
|
|
724
|
+
c.onerror = i, c.onloadend = () => {
|
|
725
725
|
try {
|
|
726
|
-
s(r({ res: n, result:
|
|
726
|
+
s(r({ res: n, result: c.result }));
|
|
727
727
|
} catch (p) {
|
|
728
728
|
i(p);
|
|
729
729
|
}
|
|
730
|
-
},
|
|
730
|
+
}, c.readAsDataURL(a);
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
const
|
|
733
|
+
const Ge = {};
|
|
734
734
|
function _r(e, t, r) {
|
|
735
735
|
let n = e.replace(/\?.*/, "");
|
|
736
736
|
return r && (n = e), /ttf|otf|eot|woff2?/i.test(n) && (n = n.replace(/.*\//, "")), t ? `[${t}]${n}` : n;
|
|
737
737
|
}
|
|
738
738
|
async function We(e, t, r) {
|
|
739
739
|
const n = _r(e, t, r.includeQueryParams);
|
|
740
|
-
if (
|
|
741
|
-
return
|
|
740
|
+
if (Ge[n] != null)
|
|
741
|
+
return Ge[n];
|
|
742
742
|
r.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
|
|
743
743
|
let a;
|
|
744
744
|
try {
|
|
745
|
-
const s = await xt(e, r.fetchRequestInit, ({ res: i, result:
|
|
745
|
+
const s = await xt(e, r.fetchRequestInit, ({ res: i, result: c }) => (t || (t = i.headers.get("Content-Type") || ""), jr(c)));
|
|
746
746
|
a = Or(s, t);
|
|
747
747
|
} catch (s) {
|
|
748
748
|
a = r.imagePlaceholder || "";
|
|
749
749
|
let i = `Failed to fetch resource: ${e}`;
|
|
750
750
|
s && (i = typeof s == "string" ? s : s.message), i && console.warn(i);
|
|
751
751
|
}
|
|
752
|
-
return
|
|
752
|
+
return Ge[n] = a, a;
|
|
753
753
|
}
|
|
754
754
|
async function Tr(e) {
|
|
755
755
|
const t = e.toDataURL();
|
|
756
|
-
return t === "data:," ? e.cloneNode(!1) :
|
|
756
|
+
return t === "data:," ? e.cloneNode(!1) : Re(t);
|
|
757
757
|
}
|
|
758
758
|
async function Vr(e, t) {
|
|
759
759
|
if (e.currentSrc) {
|
|
760
760
|
const s = document.createElement("canvas"), i = s.getContext("2d");
|
|
761
761
|
s.width = e.clientWidth, s.height = e.clientHeight, i?.drawImage(e, 0, 0, s.width, s.height);
|
|
762
|
-
const
|
|
763
|
-
return
|
|
762
|
+
const c = s.toDataURL();
|
|
763
|
+
return Re(c);
|
|
764
764
|
}
|
|
765
765
|
const r = e.poster, n = He(r), a = await We(r, n, t);
|
|
766
|
-
return
|
|
766
|
+
return Re(a);
|
|
767
767
|
}
|
|
768
768
|
async function Pr(e, t) {
|
|
769
769
|
var r;
|
|
770
770
|
try {
|
|
771
771
|
if (!((r = e?.contentDocument) === null || r === void 0) && r.body)
|
|
772
|
-
return await
|
|
772
|
+
return await je(e.contentDocument.body, t, !0);
|
|
773
773
|
} catch {
|
|
774
774
|
}
|
|
775
775
|
return e.cloneNode(!1);
|
|
@@ -777,13 +777,13 @@ async function Pr(e, t) {
|
|
|
777
777
|
async function Ar(e, t) {
|
|
778
778
|
return L(e, HTMLCanvasElement) ? Tr(e) : L(e, HTMLVideoElement) ? Vr(e, t) : L(e, HTMLIFrameElement) ? Pr(e, t) : e.cloneNode(wt(e));
|
|
779
779
|
}
|
|
780
|
-
const
|
|
781
|
-
async function
|
|
780
|
+
const $r = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", wt = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
|
|
781
|
+
async function Gr(e, t, r) {
|
|
782
782
|
var n, a;
|
|
783
783
|
if (wt(t))
|
|
784
784
|
return t;
|
|
785
785
|
let s = [];
|
|
786
|
-
return
|
|
786
|
+
return $r(e) && e.assignedNodes ? s = K(e.assignedNodes()) : L(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 || L(e, HTMLVideoElement) || await s.reduce((i, c) => i.then(() => je(c, r)).then((p) => {
|
|
787
787
|
p && t.appendChild(p);
|
|
788
788
|
}), Promise.resolve()), t;
|
|
789
789
|
}
|
|
@@ -800,14 +800,14 @@ function Lr(e, t, r) {
|
|
|
800
800
|
function Nr(e, t) {
|
|
801
801
|
L(e, HTMLTextAreaElement) && (t.innerHTML = e.value), L(e, HTMLInputElement) && t.setAttribute("value", e.value);
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function Mr(e, t) {
|
|
804
804
|
if (L(e, HTMLSelectElement)) {
|
|
805
805
|
const n = Array.from(t.children).find((a) => e.value === a.getAttribute("value"));
|
|
806
806
|
n && n.setAttribute("selected", "");
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
|
-
function
|
|
810
|
-
return L(t, Element) && (Lr(e, t, r), Sr(e, t, r), Nr(e, t),
|
|
809
|
+
function Ir(e, t, r) {
|
|
810
|
+
return L(t, Element) && (Lr(e, t, r), Sr(e, t, r), Nr(e, t), Mr(e, t)), t;
|
|
811
811
|
}
|
|
812
812
|
async function zr(e, t) {
|
|
813
813
|
const r = e.querySelectorAll ? e.querySelectorAll("use") : [];
|
|
@@ -815,26 +815,26 @@ async function zr(e, t) {
|
|
|
815
815
|
return e;
|
|
816
816
|
const n = {};
|
|
817
817
|
for (let s = 0; s < r.length; s++) {
|
|
818
|
-
const
|
|
819
|
-
if (
|
|
820
|
-
const p = e.querySelector(
|
|
821
|
-
!p && u && !n[
|
|
818
|
+
const c = r[s].getAttribute("xlink:href");
|
|
819
|
+
if (c) {
|
|
820
|
+
const p = e.querySelector(c), u = document.querySelector(c);
|
|
821
|
+
!p && u && !n[c] && (n[c] = await je(u, t, !0));
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
824
|
const a = Object.values(n);
|
|
825
825
|
if (a.length) {
|
|
826
826
|
const s = "http://www.w3.org/1999/xhtml", i = document.createElementNS(s, "svg");
|
|
827
827
|
i.setAttribute("xmlns", s), i.style.position = "absolute", i.style.width = "0", i.style.height = "0", i.style.overflow = "hidden", i.style.display = "none";
|
|
828
|
-
const
|
|
829
|
-
i.appendChild(
|
|
828
|
+
const c = document.createElementNS(s, "defs");
|
|
829
|
+
i.appendChild(c);
|
|
830
830
|
for (let p = 0; p < a.length; p++)
|
|
831
|
-
|
|
831
|
+
c.appendChild(a[p]);
|
|
832
832
|
e.appendChild(i);
|
|
833
833
|
}
|
|
834
834
|
return e;
|
|
835
835
|
}
|
|
836
|
-
async function
|
|
837
|
-
return !r && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((n) => Ar(n, t)).then((n) =>
|
|
836
|
+
async function je(e, t, r) {
|
|
837
|
+
return !r && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((n) => Ar(n, t)).then((n) => Gr(e, n, t)).then((n) => Ir(e, n, t)).then((n) => zr(n, t));
|
|
838
838
|
}
|
|
839
839
|
const vt = /url\((['"]?)([^'"]+?)\1\)/g, Dr = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, Fr = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
|
|
840
840
|
function Hr(e) {
|
|
@@ -848,8 +848,8 @@ function Wr(e) {
|
|
|
848
848
|
async function Br(e, t, r, n, a) {
|
|
849
849
|
try {
|
|
850
850
|
const s = r ? mr(t, r) : t, i = He(t);
|
|
851
|
-
let
|
|
852
|
-
return a || (
|
|
851
|
+
let c;
|
|
852
|
+
return a || (c = await We(s, i, n)), e.replace(Hr(t), `$1${c}$3`);
|
|
853
853
|
} catch {
|
|
854
854
|
}
|
|
855
855
|
return e;
|
|
@@ -872,9 +872,9 @@ async function Ct(e, t, r) {
|
|
|
872
872
|
if (!bt(e))
|
|
873
873
|
return e;
|
|
874
874
|
const n = Ur(e, r);
|
|
875
|
-
return Wr(n).reduce((s, i) => s.then((
|
|
875
|
+
return Wr(n).reduce((s, i) => s.then((c) => Br(c, i, t, r)), Promise.resolve(n));
|
|
876
876
|
}
|
|
877
|
-
async function
|
|
877
|
+
async function oe(e, t, r) {
|
|
878
878
|
var n;
|
|
879
879
|
const a = (n = t.style) === null || n === void 0 ? void 0 : n.getPropertyValue(e);
|
|
880
880
|
if (a) {
|
|
@@ -884,7 +884,7 @@ async function se(e, t, r) {
|
|
|
884
884
|
return !1;
|
|
885
885
|
}
|
|
886
886
|
async function qr(e, t) {
|
|
887
|
-
await
|
|
887
|
+
await oe("background", e, t) || await oe("background-image", e, t), await oe("mask", e, t) || await oe("-webkit-mask", e, t) || await oe("mask-image", e, t) || await oe("-webkit-mask-image", e, t);
|
|
888
888
|
}
|
|
889
889
|
async function Yr(e, t) {
|
|
890
890
|
const r = L(e, HTMLImageElement);
|
|
@@ -899,12 +899,12 @@ async function Yr(e, t) {
|
|
|
899
899
|
i(u);
|
|
900
900
|
}
|
|
901
901
|
} : i;
|
|
902
|
-
const
|
|
903
|
-
|
|
902
|
+
const c = e;
|
|
903
|
+
c.decode && (c.decode = s), c.loading === "lazy" && (c.loading = "eager"), r ? (e.srcset = "", e.src = a) : e.href.baseVal = a;
|
|
904
904
|
});
|
|
905
905
|
}
|
|
906
906
|
async function Xr(e, t) {
|
|
907
|
-
const n =
|
|
907
|
+
const n = K(e.childNodes).map((a) => Et(a, t));
|
|
908
908
|
await Promise.all(n).then(() => e);
|
|
909
909
|
}
|
|
910
910
|
async function Et(e, t) {
|
|
@@ -929,8 +929,8 @@ async function it(e) {
|
|
|
929
929
|
async function ct(e, t) {
|
|
930
930
|
let r = e.cssText;
|
|
931
931
|
const n = /url\(["']?([^"')]+)["']?\)/g, s = (r.match(/url\([^)]+\)/g) || []).map(async (i) => {
|
|
932
|
-
let
|
|
933
|
-
return
|
|
932
|
+
let c = i.replace(n, "$1");
|
|
933
|
+
return c.startsWith("https://") || (c = new URL(c, e.url).href), xt(c, t.fetchRequestInit, ({ result: p }) => (r = r.replace(i, `url(${p})`), [i, p]));
|
|
934
934
|
});
|
|
935
935
|
return Promise.all(s).then(() => r);
|
|
936
936
|
}
|
|
@@ -947,15 +947,15 @@ function lt(e) {
|
|
|
947
947
|
t.push(p[0]);
|
|
948
948
|
}
|
|
949
949
|
n = n.replace(a, "");
|
|
950
|
-
const s = /@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi, i = "((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",
|
|
950
|
+
const s = /@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi, i = "((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})", c = new RegExp(i, "gi");
|
|
951
951
|
for (; ; ) {
|
|
952
952
|
let p = s.exec(n);
|
|
953
953
|
if (p === null) {
|
|
954
|
-
if (p =
|
|
954
|
+
if (p = c.exec(n), p === null)
|
|
955
955
|
break;
|
|
956
|
-
s.lastIndex =
|
|
956
|
+
s.lastIndex = c.lastIndex;
|
|
957
957
|
} else
|
|
958
|
-
|
|
958
|
+
c.lastIndex = s.lastIndex;
|
|
959
959
|
t.push(p[0]);
|
|
960
960
|
}
|
|
961
961
|
return t;
|
|
@@ -965,36 +965,36 @@ async function Zr(e, t) {
|
|
|
965
965
|
return e.forEach((a) => {
|
|
966
966
|
if ("cssRules" in a)
|
|
967
967
|
try {
|
|
968
|
-
|
|
968
|
+
K(a.cssRules || []).forEach((s, i) => {
|
|
969
969
|
if (s.type === CSSRule.IMPORT_RULE) {
|
|
970
|
-
let
|
|
971
|
-
const p = s.href, u = it(p).then((
|
|
970
|
+
let c = i + 1;
|
|
971
|
+
const p = s.href, u = it(p).then((v) => ct(v, t)).then((v) => lt(v).forEach((m) => {
|
|
972
972
|
try {
|
|
973
|
-
a.insertRule(m, m.startsWith("@import") ?
|
|
973
|
+
a.insertRule(m, m.startsWith("@import") ? c += 1 : a.cssRules.length);
|
|
974
974
|
} catch (x) {
|
|
975
975
|
console.error("Error inserting rule from remote css", {
|
|
976
976
|
rule: m,
|
|
977
977
|
error: x
|
|
978
978
|
});
|
|
979
979
|
}
|
|
980
|
-
})).catch((
|
|
981
|
-
console.error("Error loading remote css",
|
|
980
|
+
})).catch((v) => {
|
|
981
|
+
console.error("Error loading remote css", v.toString());
|
|
982
982
|
});
|
|
983
983
|
n.push(u);
|
|
984
984
|
}
|
|
985
985
|
});
|
|
986
986
|
} catch (s) {
|
|
987
|
-
const i = e.find((
|
|
988
|
-
a.href != null && n.push(it(a.href).then((
|
|
987
|
+
const i = e.find((c) => c.href == null) || document.styleSheets[0];
|
|
988
|
+
a.href != null && n.push(it(a.href).then((c) => ct(c, t)).then((c) => lt(c).forEach((p) => {
|
|
989
989
|
i.insertRule(p, i.cssRules.length);
|
|
990
|
-
})).catch((
|
|
991
|
-
console.error("Error loading remote stylesheet",
|
|
990
|
+
})).catch((c) => {
|
|
991
|
+
console.error("Error loading remote stylesheet", c);
|
|
992
992
|
})), console.error("Error inlining remote css file", s);
|
|
993
993
|
}
|
|
994
994
|
}), Promise.all(n).then(() => (e.forEach((a) => {
|
|
995
995
|
if ("cssRules" in a)
|
|
996
996
|
try {
|
|
997
|
-
|
|
997
|
+
K(a.cssRules || []).forEach((s) => {
|
|
998
998
|
r.push(s);
|
|
999
999
|
});
|
|
1000
1000
|
} catch (s) {
|
|
@@ -1008,7 +1008,7 @@ function Kr(e) {
|
|
|
1008
1008
|
async function Qr(e, t) {
|
|
1009
1009
|
if (e.ownerDocument == null)
|
|
1010
1010
|
throw new Error("Provided element is not within a Document");
|
|
1011
|
-
const r =
|
|
1011
|
+
const r = K(e.ownerDocument.styleSheets), n = await Zr(r, t);
|
|
1012
1012
|
return Kr(n);
|
|
1013
1013
|
}
|
|
1014
1014
|
function St(e) {
|
|
@@ -1041,17 +1041,17 @@ async function rn(e, t) {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
async function nn(e, t = {}) {
|
|
1044
|
-
const { width: r, height: n } = yt(e, t), a = await
|
|
1044
|
+
const { width: r, height: n } = yt(e, t), a = await je(e, t, !0);
|
|
1045
1045
|
return await rn(a, t), await Et(a, t), Jr(a, t), await vr(a, r, n);
|
|
1046
1046
|
}
|
|
1047
1047
|
async function sn(e, t = {}) {
|
|
1048
|
-
const { width: r, height: n } = yt(e, t), a = await nn(e, t), s = await
|
|
1049
|
-
return i.width = u * p, i.height =
|
|
1048
|
+
const { width: r, height: n } = yt(e, t), a = await nn(e, t), s = await Re(a), i = document.createElement("canvas"), c = i.getContext("2d"), p = t.pixelRatio || yr(), u = t.canvasWidth || r, v = t.canvasHeight || n;
|
|
1049
|
+
return i.width = u * p, i.height = v * p, t.skipAutoScale || xr(i), i.style.width = `${u}`, i.style.height = `${v}`, t.backgroundColor && (c.fillStyle = t.backgroundColor, c.fillRect(0, 0, i.width, i.height)), c.drawImage(s, 0, 0, i.width, i.height), i;
|
|
1050
1050
|
}
|
|
1051
1051
|
async function dt(e, t = {}) {
|
|
1052
1052
|
return (await sn(e, t)).toDataURL();
|
|
1053
1053
|
}
|
|
1054
|
-
const
|
|
1054
|
+
const Oe = 2147483647, Le = Oe, Ne = 2e6, an = Oe - 10, on = Oe - 5, cn = Oe - 15, xe = "data-vg-pin-id", ln = () => {
|
|
1055
1055
|
const e = window.innerWidth;
|
|
1056
1056
|
return e < 768 ? "mobile" : e < 1024 ? "tablet" : "desktop";
|
|
1057
1057
|
}, dn = (e) => {
|
|
@@ -1113,13 +1113,13 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1113
1113
|
})(), ut = (e, t, r, n) => new Promise((a) => {
|
|
1114
1114
|
const s = new Image();
|
|
1115
1115
|
s.onload = () => {
|
|
1116
|
-
const i = document.createElement("canvas"),
|
|
1117
|
-
i.width = p *
|
|
1118
|
-
const
|
|
1119
|
-
if (
|
|
1120
|
-
|
|
1121
|
-
let m = (t.left - r) * n, x = (t.top - r) * n,
|
|
1122
|
-
m < 0 && (T = Math.abs(m) / n,
|
|
1116
|
+
const i = document.createElement("canvas"), c = window.devicePixelRatio || 1, p = t.width + r * 2, u = t.height + r * 2;
|
|
1117
|
+
i.width = p * c, i.height = u * c;
|
|
1118
|
+
const v = i.getContext("2d");
|
|
1119
|
+
if (v) {
|
|
1120
|
+
v.scale(c, c);
|
|
1121
|
+
let m = (t.left - r) * n, x = (t.top - r) * n, f = p * n, w = u * n, T = 0, P = 0, z = p, D = u;
|
|
1122
|
+
m < 0 && (T = Math.abs(m) / n, f += m, z -= T, m = 0), m + f > s.width && (f = s.width - m, z = f / n), x < 0 && (P = Math.abs(x) / n, w += x, D -= P, x = 0), x + w > s.height && (w = s.height - x, D = w / n), v.fillStyle = "#ffffff", v.fillRect(0, 0, p, u), f > 0 && w > 0 && v.drawImage(s, m, x, f, w, T, P, z, D);
|
|
1123
1123
|
}
|
|
1124
1124
|
a(i.toDataURL("image/png"));
|
|
1125
1125
|
}, s.onerror = () => a(""), s.src = e;
|
|
@@ -1160,7 +1160,7 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1160
1160
|
if (n && ["listbox", "menu", "combobox", "tooltip", "option"].includes(n)) return !1;
|
|
1161
1161
|
const s = 120;
|
|
1162
1162
|
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"));
|
|
1163
|
-
},
|
|
1163
|
+
}, ye = (e) => {
|
|
1164
1164
|
if (!e.isConnected) return !1;
|
|
1165
1165
|
const t = window.getComputedStyle(e);
|
|
1166
1166
|
if (t.display === "none" || t.visibility === "hidden" || t.opacity === "0" || e.offsetWidth === 0 || e.offsetHeight === 0) return !1;
|
|
@@ -1172,14 +1172,14 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1172
1172
|
}
|
|
1173
1173
|
const n = e.getBoundingClientRect();
|
|
1174
1174
|
return !(n.width === 0 || n.height === 0 || n.top === 0 && n.left === 0 && n.width > window.innerWidth * 0.9);
|
|
1175
|
-
},
|
|
1175
|
+
}, Fe = (e, t = document) => {
|
|
1176
1176
|
const r = t.querySelector(e);
|
|
1177
1177
|
if (r) return r;
|
|
1178
1178
|
const n = t.querySelectorAll("*");
|
|
1179
1179
|
for (const a of Array.from(n)) {
|
|
1180
1180
|
const s = a.shadowRoot;
|
|
1181
1181
|
if (s) {
|
|
1182
|
-
const i =
|
|
1182
|
+
const i = Fe(e, s);
|
|
1183
1183
|
if (i) return i;
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
@@ -1199,22 +1199,35 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1199
1199
|
for (let a = 0; a < t.length; a++) {
|
|
1200
1200
|
const s = t[a];
|
|
1201
1201
|
let i = 0;
|
|
1202
|
-
|
|
1202
|
+
const c = s.getAttribute("placeholder");
|
|
1203
|
+
e.attributes?.placeholder && c === e.attributes.placeholder ? i += 6 : c && e.attributes?.placeholder && c.includes(e.attributes.placeholder) && (i += 2), s.innerText?.trim() === e.text.trim() ? i += 5 : s.innerText?.includes(e.text.slice(0, 20)) && (i += 3), e.fingerprint?.classHash && s.className.includes(e.fingerprint.classHash) && (i += 2), e.fingerprint?.ariaLabel && s.getAttribute("aria-label") === e.fingerprint.ariaLabel && (i += 3), e.fingerprint?.role && s.getAttribute("role") === e.fingerprint.role && (i += 2), e.parentContext && (s.parentElement?.innerText || "").includes(e.parentContext.slice(0, 30)) && (i += 2), e.fingerprint?.neighborCount === s.parentElement?.children.length && (i += 1), e.fingerprint?.parentTag === s.parentElement?.tagName.toLowerCase() && (i += 1), i > n && i >= 7 && (n = i, r = s);
|
|
1203
1204
|
}
|
|
1204
1205
|
return r;
|
|
1205
1206
|
}, yn = (e, t) => {
|
|
1206
1207
|
if (t) {
|
|
1207
|
-
const n =
|
|
1208
|
-
if (n
|
|
1208
|
+
const n = Array.from(document.querySelectorAll(`[${xe}="${t}"]`));
|
|
1209
|
+
if (n.length > 0) {
|
|
1210
|
+
const a = n.find((s) => !(!ye(s) || e.metadata?.isModal && !s.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));
|
|
1211
|
+
return a ? (n.forEach((s) => {
|
|
1212
|
+
s !== a && s.removeAttribute(xe);
|
|
1213
|
+
}), a) : null;
|
|
1214
|
+
}
|
|
1209
1215
|
}
|
|
1210
|
-
let r =
|
|
1211
|
-
if (r
|
|
1216
|
+
let r = Fe(e.selector);
|
|
1217
|
+
if (r && ye(r))
|
|
1218
|
+
if (e.metadata?.isModal && !r.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content'))
|
|
1219
|
+
r = null;
|
|
1220
|
+
else
|
|
1221
|
+
return r;
|
|
1212
1222
|
if (e.fallbackSelectors) {
|
|
1213
1223
|
for (const n of e.fallbackSelectors)
|
|
1214
|
-
if (r =
|
|
1224
|
+
if (r = Fe(n), r && ye(r)) {
|
|
1225
|
+
if (e.metadata?.isModal && !r.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')) continue;
|
|
1226
|
+
return r;
|
|
1227
|
+
}
|
|
1215
1228
|
}
|
|
1216
|
-
return r = gn(e), r
|
|
1217
|
-
},
|
|
1229
|
+
return r = gn(e), r && ye(r) ? e.metadata?.isModal && !r.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content') ? null : r : null;
|
|
1230
|
+
}, Me = (e) => ({
|
|
1218
1231
|
tag: e.tagName.toLowerCase(),
|
|
1219
1232
|
text: (e.innerText || e.getAttribute("placeholder") || "").slice(0, 50).trim(),
|
|
1220
1233
|
role: e.getAttribute("role") || void 0,
|
|
@@ -1222,14 +1235,14 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1222
1235
|
}), xn = (e) => {
|
|
1223
1236
|
const t = e.parentElement;
|
|
1224
1237
|
if (!t) return;
|
|
1225
|
-
const r = Array.from(t.children).filter((i) => i !== e).slice(0, 5).map((i) =>
|
|
1238
|
+
const r = Array.from(t.children).filter((i) => i !== e).slice(0, 5).map((i) => Me(i)), n = Array.from(t.children), a = n.indexOf(e);
|
|
1226
1239
|
let s = "middle";
|
|
1227
1240
|
return a === 0 && (s = "start"), a === n.length - 1 && (s = "end"), {
|
|
1228
1241
|
target: {
|
|
1229
|
-
...
|
|
1242
|
+
...Me(e),
|
|
1230
1243
|
location: `${s} of ${t.tagName.toLowerCase()}`
|
|
1231
1244
|
},
|
|
1232
|
-
parent:
|
|
1245
|
+
parent: Me(t),
|
|
1233
1246
|
siblings: r
|
|
1234
1247
|
};
|
|
1235
1248
|
}, wn = (e) => {
|
|
@@ -1244,45 +1257,51 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1244
1257
|
}
|
|
1245
1258
|
const n = hn(e), a = [], s = [], i = (m) => {
|
|
1246
1259
|
const x = [];
|
|
1247
|
-
let
|
|
1248
|
-
for (;
|
|
1249
|
-
let
|
|
1250
|
-
s.unshift(
|
|
1251
|
-
const T =
|
|
1260
|
+
let f = m;
|
|
1261
|
+
for (; f && f.nodeType === Node.ELEMENT_NODE; ) {
|
|
1262
|
+
let w = f.nodeName.toLowerCase();
|
|
1263
|
+
s.unshift(w);
|
|
1264
|
+
const T = f.id && !f.id.startsWith("__") ? f.id : null;
|
|
1252
1265
|
T && a.push(`#${T}`);
|
|
1253
|
-
const P =
|
|
1266
|
+
const P = f.getAttribute("data-testid") || f.getAttribute("data-qa");
|
|
1254
1267
|
P && a.push(`[data-testid="${P}"]`);
|
|
1255
|
-
const z =
|
|
1268
|
+
const z = f.getAttribute("placeholder"), D = f.getAttribute("aria-label"), A = f.getAttribute("role"), F = f.getAttribute("name"), _ = f.getAttribute("title");
|
|
1256
1269
|
if (P) {
|
|
1257
|
-
|
|
1270
|
+
w = `[${f.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${P}"]`, x.unshift(w);
|
|
1258
1271
|
break;
|
|
1259
1272
|
} else if (T) {
|
|
1260
|
-
|
|
1273
|
+
w = "#" + T, x.unshift(w);
|
|
1261
1274
|
break;
|
|
1262
1275
|
} else if (z) {
|
|
1263
|
-
|
|
1276
|
+
w = `${f.localName}[placeholder="${z}"]`, x.unshift(w);
|
|
1264
1277
|
break;
|
|
1265
1278
|
} else if (D) {
|
|
1266
|
-
|
|
1279
|
+
w = `${f.localName}[aria-label="${D}"]`, x.unshift(w);
|
|
1267
1280
|
break;
|
|
1268
1281
|
} else if (A) {
|
|
1269
|
-
|
|
1282
|
+
w = `${f.localName}[role="${A}"]`, x.unshift(w);
|
|
1283
|
+
break;
|
|
1284
|
+
} else if (F) {
|
|
1285
|
+
w = `${f.localName}[name="${F}"]`, x.unshift(w);
|
|
1286
|
+
break;
|
|
1287
|
+
} else if (_) {
|
|
1288
|
+
w = `${f.localName}[title="${_}"]`, x.unshift(w);
|
|
1270
1289
|
break;
|
|
1271
1290
|
} else {
|
|
1272
|
-
let
|
|
1273
|
-
for (;
|
|
1274
|
-
|
|
1275
|
-
|
|
1291
|
+
let W = f, $ = 1;
|
|
1292
|
+
for (; W.previousElementSibling; )
|
|
1293
|
+
W = W.previousElementSibling, W.nodeName.toLowerCase() === f.nodeName.toLowerCase() && $++;
|
|
1294
|
+
$ > 1 && (w += `:nth-of-type(${$})`);
|
|
1276
1295
|
}
|
|
1277
|
-
x.unshift(
|
|
1296
|
+
x.unshift(w), f = f.parentElement;
|
|
1278
1297
|
}
|
|
1279
1298
|
return x.join(" > ");
|
|
1280
|
-
},
|
|
1299
|
+
}, c = kt(e.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')), p = i(e), u = {};
|
|
1281
1300
|
["placeholder", "aria-label", "name", "type", "alt", "title", "value", "role"].forEach((m) => {
|
|
1282
1301
|
const x = e.getAttribute(m);
|
|
1283
1302
|
x && (u[m] = x);
|
|
1284
1303
|
});
|
|
1285
|
-
const
|
|
1304
|
+
const v = `${e.tagName.toLowerCase()}-${(e.innerText || "").slice(0, 20).replace(/\s+/g, "_")}-${p.split(" > ").slice(-1)}`;
|
|
1286
1305
|
return {
|
|
1287
1306
|
tag: e.tagName.toLowerCase(),
|
|
1288
1307
|
id: e.id || "",
|
|
@@ -1292,7 +1311,7 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1292
1311
|
outerHtml: e.outerHTML,
|
|
1293
1312
|
parentContext: (e.parentElement?.innerText || "").slice(0, 150).trim(),
|
|
1294
1313
|
componentPath: n,
|
|
1295
|
-
signature:
|
|
1314
|
+
signature: v,
|
|
1296
1315
|
source: t,
|
|
1297
1316
|
attributes: u,
|
|
1298
1317
|
fallbackSelectors: [...new Set(a)].slice(0, 5),
|
|
@@ -1306,234 +1325,230 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1306
1325
|
viewportBreakpoint: ln(),
|
|
1307
1326
|
outerHtml: e.outerHTML.slice(0, 1500),
|
|
1308
1327
|
scrollPosition: { x: window.scrollX, y: window.scrollY },
|
|
1309
|
-
isModal:
|
|
1328
|
+
isModal: c
|
|
1310
1329
|
}
|
|
1311
1330
|
};
|
|
1312
1331
|
}, vn = () => {
|
|
1313
|
-
const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: i } = ur(), [
|
|
1332
|
+
const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: i } = ur(), [c, p] = j(!1), [u, v] = j(null), [m, x] = j(null), [f, w] = j(""), [T, P] = j(!1), [z, D] = j(!1), [A, F] = j(!1), [_, W] = j([]), [$, H] = j(null), [we, Be] = j(!1), [ce, te] = j(!1), [ve, be] = j({}), [B, re] = j(null), [Q, le] = j(!1), [U, Ce] = j(() => {
|
|
1314
1333
|
if (typeof window > "u") return { top: 24, right: 24 };
|
|
1315
|
-
const
|
|
1316
|
-
return
|
|
1317
|
-
}), [
|
|
1334
|
+
const d = localStorage.getItem("vg-exit-pos");
|
|
1335
|
+
return d ? JSON.parse(d) : { top: 24, right: 24 };
|
|
1336
|
+
}), [l, y] = j(!1), b = ge(null), [k, ne] = j(() => {
|
|
1318
1337
|
if (typeof window > "u") return { bottom: 30, right: 30 };
|
|
1319
|
-
const
|
|
1320
|
-
return
|
|
1321
|
-
}), [q, O] = j(!1), V =
|
|
1322
|
-
|
|
1323
|
-
const
|
|
1324
|
-
|
|
1325
|
-
x:
|
|
1326
|
-
y:
|
|
1338
|
+
const d = localStorage.getItem("vg-bar-pos");
|
|
1339
|
+
return d ? JSON.parse(d) : { bottom: 30, right: 30 };
|
|
1340
|
+
}), [q, O] = j(!1), V = ge(null), de = (d) => {
|
|
1341
|
+
d.preventDefault(), d.stopPropagation();
|
|
1342
|
+
const h = d.currentTarget.parentElement?.getBoundingClientRect();
|
|
1343
|
+
h && (y(!0), b.current = {
|
|
1344
|
+
x: d.clientX,
|
|
1345
|
+
y: d.clientY,
|
|
1327
1346
|
top: U.top,
|
|
1328
1347
|
right: U.right,
|
|
1329
|
-
width:
|
|
1330
|
-
height:
|
|
1348
|
+
width: h.width,
|
|
1349
|
+
height: h.height
|
|
1331
1350
|
});
|
|
1332
|
-
}, _e = (
|
|
1333
|
-
|
|
1334
|
-
const
|
|
1335
|
-
|
|
1336
|
-
x:
|
|
1337
|
-
y:
|
|
1351
|
+
}, _e = (d) => {
|
|
1352
|
+
d.preventDefault(), d.stopPropagation();
|
|
1353
|
+
const h = d.currentTarget.parentElement?.getBoundingClientRect();
|
|
1354
|
+
h && (O(!0), V.current = {
|
|
1355
|
+
x: d.clientX,
|
|
1356
|
+
y: d.clientY,
|
|
1338
1357
|
bottom: k.bottom,
|
|
1339
1358
|
right: k.right,
|
|
1340
|
-
width:
|
|
1341
|
-
height:
|
|
1359
|
+
width: h.width,
|
|
1360
|
+
height: h.height
|
|
1342
1361
|
});
|
|
1343
1362
|
};
|
|
1344
|
-
|
|
1345
|
-
if (!
|
|
1346
|
-
const
|
|
1347
|
-
if (
|
|
1348
|
-
const
|
|
1349
|
-
let
|
|
1363
|
+
Z(() => {
|
|
1364
|
+
if (!l && !q) return;
|
|
1365
|
+
const d = (g) => {
|
|
1366
|
+
if (l && b.current) {
|
|
1367
|
+
const G = g.clientX - b.current.x, C = g.clientY - b.current.y;
|
|
1368
|
+
let E = b.current.top + C, S = b.current.right - G;
|
|
1350
1369
|
const R = 10;
|
|
1351
|
-
|
|
1370
|
+
E = Math.max(R, Math.min(window.innerHeight - b.current.height - R, E)), S = Math.max(R, Math.min(window.innerWidth - b.current.width - R, S)), Ce({ top: E, right: S });
|
|
1352
1371
|
}
|
|
1353
1372
|
if (q && V.current) {
|
|
1354
|
-
const
|
|
1355
|
-
let
|
|
1373
|
+
const G = g.clientX - V.current.x, C = g.clientY - V.current.y;
|
|
1374
|
+
let E = V.current.bottom - C, S = V.current.right - G;
|
|
1356
1375
|
const R = 10;
|
|
1357
|
-
|
|
1376
|
+
E = Math.max(R, Math.min(window.innerHeight - V.current.height - R, E)), S = Math.max(R, Math.min(window.innerWidth - V.current.width - R, S)), ne({ bottom: E, right: S });
|
|
1358
1377
|
}
|
|
1359
|
-
},
|
|
1360
|
-
|
|
1378
|
+
}, h = () => {
|
|
1379
|
+
l && (y(!1), localStorage.setItem("vg-exit-pos", JSON.stringify(U)), b.current = null), q && (O(!1), localStorage.setItem("vg-bar-pos", JSON.stringify(k)), V.current = null);
|
|
1361
1380
|
};
|
|
1362
|
-
return window.addEventListener("mousemove",
|
|
1363
|
-
window.removeEventListener("mousemove",
|
|
1381
|
+
return window.addEventListener("mousemove", d), window.addEventListener("mouseup", h), () => {
|
|
1382
|
+
window.removeEventListener("mousemove", d), window.removeEventListener("mouseup", h);
|
|
1364
1383
|
};
|
|
1365
|
-
}, [
|
|
1366
|
-
const [Ue, Te] = j(null), [qe, Ye] = j(""), [jt, Ot] = j({}),
|
|
1367
|
-
|
|
1368
|
-
const
|
|
1369
|
-
_.forEach((
|
|
1370
|
-
if (!
|
|
1371
|
-
const
|
|
1372
|
-
if (
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
const I = C.getBoundingClientRect(), Y = I.left + I.width / 2, ue = I.top + I.height / 2;
|
|
1382
|
-
if (Y >= 0 && Y <= window.innerWidth && ue >= 0 && ue <= window.innerHeight) {
|
|
1383
|
-
const H = document.elementFromPoint(Y, ue);
|
|
1384
|
-
if (H && !C.contains(H) && !re.current?.contains(H))
|
|
1384
|
+
}, [l, q, U, k]);
|
|
1385
|
+
const [Ue, Te] = j(null), [qe, Ye] = j(""), [jt, Ot] = j({}), se = ge(null), ue = ge(null), pe = Ee(() => {
|
|
1386
|
+
ue.current || (ue.current = requestAnimationFrame(() => {
|
|
1387
|
+
const d = {}, g = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((C) => kt(C) && ye(C)), G = !!g;
|
|
1388
|
+
_.forEach((C) => {
|
|
1389
|
+
if (!C.reference) return;
|
|
1390
|
+
const E = yn(C.reference, C._id), S = !!C.reference.metadata?.isModal;
|
|
1391
|
+
if (E) {
|
|
1392
|
+
const R = E.getAttribute(xe);
|
|
1393
|
+
R ? R !== C._id && (console.warn(`Element already tagged with ${R}, skipping ${C._id}`), R.length < 10 && E.setAttribute(xe, C._id)) : E.setAttribute(xe, C._id);
|
|
1394
|
+
let Y = !1;
|
|
1395
|
+
if (G ? Y = g.contains(E) : Y = !S, !Y) return;
|
|
1396
|
+
const M = E.getBoundingClientRect(), me = M.left + M.width / 2, X = M.top + M.height / 2;
|
|
1397
|
+
if (me >= 0 && me <= window.innerWidth && X >= 0 && X <= window.innerHeight) {
|
|
1398
|
+
const J = document.elementFromPoint(me, X);
|
|
1399
|
+
if (J && !E.contains(J) && !se.current?.contains(J))
|
|
1385
1400
|
return;
|
|
1386
1401
|
}
|
|
1387
|
-
|
|
1388
|
-
top:
|
|
1389
|
-
left:
|
|
1390
|
-
width:
|
|
1391
|
-
isModal:
|
|
1402
|
+
d[C._id] = {
|
|
1403
|
+
top: M.top + window.scrollY,
|
|
1404
|
+
left: M.left + window.scrollX,
|
|
1405
|
+
width: M.width,
|
|
1406
|
+
isModal: S
|
|
1392
1407
|
};
|
|
1393
1408
|
}
|
|
1394
|
-
}), Ot(
|
|
1409
|
+
}), Ot(d), ue.current = null;
|
|
1395
1410
|
}));
|
|
1396
|
-
}, [_]),
|
|
1411
|
+
}, [_]), ee = Ee(async () => {
|
|
1397
1412
|
if (n) {
|
|
1398
|
-
|
|
1413
|
+
te(!0);
|
|
1399
1414
|
try {
|
|
1400
|
-
const
|
|
1415
|
+
const d = await fetch(`${a}/api/annotations`, {
|
|
1401
1416
|
headers: { "x-api-key": n }
|
|
1402
1417
|
});
|
|
1403
|
-
if (
|
|
1404
|
-
const
|
|
1405
|
-
|
|
1418
|
+
if (d.ok) {
|
|
1419
|
+
const G = ((await d.json()).data || []).reduce((C, E) => C.find((R) => R._id === E._id) ? C : C.concat([E]), []);
|
|
1420
|
+
W(G);
|
|
1406
1421
|
}
|
|
1407
|
-
} catch (
|
|
1408
|
-
console.error("Failed to fetch annotations",
|
|
1422
|
+
} catch (d) {
|
|
1423
|
+
console.error("Failed to fetch annotations", d);
|
|
1409
1424
|
} finally {
|
|
1410
|
-
|
|
1425
|
+
te(!1);
|
|
1411
1426
|
}
|
|
1412
1427
|
}
|
|
1413
1428
|
}, [n, a]);
|
|
1414
|
-
|
|
1415
|
-
A && _.length === 0 && !
|
|
1416
|
-
}, [A, _.length,
|
|
1417
|
-
if (!
|
|
1418
|
-
|
|
1419
|
-
const
|
|
1420
|
-
return
|
|
1429
|
+
Z(() => {
|
|
1430
|
+
A && _.length === 0 && !ce && F(!1);
|
|
1431
|
+
}, [A, _.length, ce]), Z(() => {
|
|
1432
|
+
if (!c && _.length > 0) {
|
|
1433
|
+
pe();
|
|
1434
|
+
const d = new MutationObserver(() => pe()), h = new ResizeObserver(() => pe()), g = () => pe();
|
|
1435
|
+
return d.observe(document.documentElement, {
|
|
1421
1436
|
childList: !0,
|
|
1422
1437
|
subtree: !0,
|
|
1423
1438
|
attributes: !0
|
|
1424
|
-
}),
|
|
1425
|
-
|
|
1439
|
+
}), h.observe(document.documentElement), window.addEventListener("scroll", g, !0), () => {
|
|
1440
|
+
d.disconnect(), h.disconnect(), window.removeEventListener("scroll", g, !0), ue.current && cancelAnimationFrame(ue.current);
|
|
1426
1441
|
};
|
|
1427
1442
|
}
|
|
1428
|
-
}, [
|
|
1429
|
-
|
|
1430
|
-
}, [
|
|
1431
|
-
|
|
1443
|
+
}, [c, _.length, pe]), Z(() => {
|
|
1444
|
+
ee();
|
|
1445
|
+
}, [ee]), Z(() => {
|
|
1446
|
+
se.current = document.getElementById("viewgate-shadow-host");
|
|
1432
1447
|
}, []);
|
|
1433
|
-
const Ve =
|
|
1434
|
-
if (!
|
|
1435
|
-
const
|
|
1436
|
-
if (!
|
|
1437
|
-
|
|
1448
|
+
const Ve = Ee((d) => {
|
|
1449
|
+
if (!c || m) return;
|
|
1450
|
+
const h = pt(d.clientX, d.clientY);
|
|
1451
|
+
if (!h || se.current?.contains(h) || h.closest(".vg-no-capture")) {
|
|
1452
|
+
v(null);
|
|
1438
1453
|
return;
|
|
1439
1454
|
}
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1442
|
-
tag:
|
|
1443
|
-
source:
|
|
1444
|
-
rect:
|
|
1445
|
-
element:
|
|
1446
|
-
previewText: (
|
|
1455
|
+
const g = h.getBoundingClientRect();
|
|
1456
|
+
v({
|
|
1457
|
+
tag: h.tagName.toLowerCase(),
|
|
1458
|
+
source: h.getAttribute("data-source-path") || "unknown:0",
|
|
1459
|
+
rect: g,
|
|
1460
|
+
element: h,
|
|
1461
|
+
previewText: (h.innerText || "").slice(0, 100) || (h.getAttribute("placeholder") || "").slice(0, 100) || h.tagName.toLowerCase(),
|
|
1447
1462
|
semanticReference: {
|
|
1448
|
-
...wn(
|
|
1463
|
+
...wn(h),
|
|
1449
1464
|
normalizedOffset: {
|
|
1450
|
-
x: (
|
|
1451
|
-
y: (
|
|
1465
|
+
x: (d.clientX - g.left) / g.width,
|
|
1466
|
+
y: (d.clientY - g.top) / g.height
|
|
1452
1467
|
}
|
|
1453
1468
|
}
|
|
1454
1469
|
});
|
|
1455
|
-
}, [
|
|
1456
|
-
if (!
|
|
1457
|
-
const
|
|
1458
|
-
if (!(!
|
|
1459
|
-
|
|
1470
|
+
}, [c, m]), Pe = Ee(async (d) => {
|
|
1471
|
+
if (!c || m) return;
|
|
1472
|
+
const h = pt(d.clientX, d.clientY);
|
|
1473
|
+
if (!(!h || se.current?.contains(h) || h.closest(".vg-no-capture")) && u) {
|
|
1474
|
+
d.preventDefault(), d.stopPropagation(), D(!0);
|
|
1460
1475
|
try {
|
|
1461
|
-
const
|
|
1476
|
+
const C = window.scrollX, E = window.scrollY, S = await dt(document.documentElement, {
|
|
1462
1477
|
pixelRatio: 1.5,
|
|
1463
1478
|
cacheBust: !0,
|
|
1464
1479
|
width: window.innerWidth,
|
|
1465
1480
|
height: window.innerHeight,
|
|
1466
1481
|
backgroundColor: "#ffffff",
|
|
1467
1482
|
style: {
|
|
1468
|
-
transform: `scale(${1 / window.devicePixelRatio}) translate(-${
|
|
1483
|
+
transform: `scale(${1 / window.devicePixelRatio}) translate(-${C}px, -${E}px)`,
|
|
1469
1484
|
transformOrigin: "top left"
|
|
1470
1485
|
},
|
|
1471
|
-
filter: (
|
|
1472
|
-
const
|
|
1473
|
-
return !(
|
|
1486
|
+
filter: (X) => {
|
|
1487
|
+
const J = X;
|
|
1488
|
+
return !(se.current?.contains(J) || J.id === "viewgate-ui");
|
|
1474
1489
|
}
|
|
1475
|
-
}), R = u.element.getBoundingClientRect(),
|
|
1476
|
-
let
|
|
1477
|
-
if (
|
|
1478
|
-
|
|
1490
|
+
}), R = u.element.getBoundingClientRect(), Y = R.top >= 0 && R.left >= 0 && R.bottom <= window.innerHeight && R.right <= window.innerWidth;
|
|
1491
|
+
let M = "";
|
|
1492
|
+
if (Y && R.width > 0 && R.height > 0)
|
|
1493
|
+
M = await ut(S, R, 24, 1.5);
|
|
1479
1494
|
else
|
|
1480
1495
|
try {
|
|
1481
|
-
|
|
1496
|
+
M = await dt(u.element, {
|
|
1482
1497
|
pixelRatio: 2,
|
|
1483
1498
|
cacheBust: !0,
|
|
1484
1499
|
backgroundColor: "#ffffff",
|
|
1485
|
-
filter: (
|
|
1486
|
-
const
|
|
1487
|
-
return !
|
|
1500
|
+
filter: (X) => {
|
|
1501
|
+
const J = X;
|
|
1502
|
+
return !se.current?.contains(J);
|
|
1488
1503
|
}
|
|
1489
1504
|
});
|
|
1490
1505
|
} catch {
|
|
1491
|
-
|
|
1506
|
+
M = await ut(S, R, 24, 1.5);
|
|
1492
1507
|
}
|
|
1493
|
-
const
|
|
1508
|
+
const me = {
|
|
1494
1509
|
...u.semanticReference,
|
|
1495
1510
|
metadata: {
|
|
1496
1511
|
...u.semanticReference.metadata,
|
|
1497
|
-
screenshotUrl:
|
|
1498
|
-
elementScreenshot:
|
|
1512
|
+
screenshotUrl: S,
|
|
1513
|
+
elementScreenshot: M
|
|
1499
1514
|
}
|
|
1500
1515
|
};
|
|
1501
1516
|
x({
|
|
1502
1517
|
...u,
|
|
1503
|
-
visualPreview:
|
|
1504
|
-
semanticReference:
|
|
1518
|
+
visualPreview: M,
|
|
1519
|
+
semanticReference: me
|
|
1505
1520
|
});
|
|
1506
|
-
} catch (
|
|
1507
|
-
console.error("Failed to capture preview:",
|
|
1521
|
+
} catch (g) {
|
|
1522
|
+
console.error("Failed to capture preview:", g), x(u);
|
|
1508
1523
|
} finally {
|
|
1509
|
-
D(!1),
|
|
1524
|
+
D(!1), v(null);
|
|
1510
1525
|
}
|
|
1511
1526
|
}
|
|
1512
|
-
}, [
|
|
1513
|
-
|
|
1514
|
-
const
|
|
1515
|
-
if (
|
|
1516
|
-
m ? x(null) : A ?
|
|
1527
|
+
}, [c, u, m]);
|
|
1528
|
+
Z(() => {
|
|
1529
|
+
const d = (h) => {
|
|
1530
|
+
if (h.key === "Escape") {
|
|
1531
|
+
m ? x(null) : A ? F(!1) : c && p(!1);
|
|
1517
1532
|
return;
|
|
1518
1533
|
}
|
|
1519
|
-
const
|
|
1520
|
-
let
|
|
1521
|
-
for (;
|
|
1522
|
-
|
|
1523
|
-
return
|
|
1534
|
+
const G = (() => {
|
|
1535
|
+
let S = document.activeElement;
|
|
1536
|
+
for (; S && S.shadowRoot && S.shadowRoot.activeElement; )
|
|
1537
|
+
S = S.shadowRoot.activeElement;
|
|
1538
|
+
return S;
|
|
1524
1539
|
})();
|
|
1525
|
-
if (["input", "textarea"].includes((
|
|
1526
|
-
const
|
|
1527
|
-
|
|
1540
|
+
if (["input", "textarea"].includes((G?.tagName || "").toLowerCase()) || G?.isContentEditable) return;
|
|
1541
|
+
const E = h.key.toLowerCase();
|
|
1542
|
+
E === "c" && !m && !A && p((S) => !S), E === "v" && !m && (_.length > 0 || A) && (F((S) => !S), A || p(!1));
|
|
1528
1543
|
};
|
|
1529
|
-
return
|
|
1530
|
-
document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown",
|
|
1544
|
+
return c && !m ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", d), window.addEventListener("mousemove", Ve, !0), window.addEventListener("click", Pe, !0), () => {
|
|
1545
|
+
document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", d), window.removeEventListener("mousemove", Ve, !0), window.removeEventListener("click", Pe, !0);
|
|
1531
1546
|
};
|
|
1532
|
-
}, [
|
|
1547
|
+
}, [c, m, A, _, Ve, Pe]);
|
|
1533
1548
|
const _t = async () => {
|
|
1534
|
-
if (!m || !
|
|
1549
|
+
if (!m || !f.trim()) return;
|
|
1535
1550
|
P(!0);
|
|
1536
|
-
const { semanticReference:
|
|
1551
|
+
const { semanticReference: d } = m, [h, g] = (d.source || "").split(":"), G = g || "0";
|
|
1537
1552
|
try {
|
|
1538
1553
|
if (!(await fetch(`${a}/api/annotations`, {
|
|
1539
1554
|
method: "POST",
|
|
@@ -1542,13 +1557,13 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1542
1557
|
"x-api-key": n
|
|
1543
1558
|
},
|
|
1544
1559
|
body: JSON.stringify({
|
|
1545
|
-
filePath:
|
|
1546
|
-
line: parseInt(
|
|
1560
|
+
filePath: h,
|
|
1561
|
+
line: parseInt(G),
|
|
1547
1562
|
url: window.location.href,
|
|
1548
|
-
message:
|
|
1549
|
-
componentName:
|
|
1563
|
+
message: f,
|
|
1564
|
+
componentName: d.componentPath || m.tag,
|
|
1550
1565
|
reference: {
|
|
1551
|
-
...
|
|
1566
|
+
...d,
|
|
1552
1567
|
viewport: {
|
|
1553
1568
|
width: window.innerWidth,
|
|
1554
1569
|
height: window.innerHeight
|
|
@@ -1558,14 +1573,14 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1558
1573
|
}
|
|
1559
1574
|
})
|
|
1560
1575
|
})).ok) throw new Error("Backend failed");
|
|
1561
|
-
e(r.success, "success"), x(null),
|
|
1562
|
-
} catch (
|
|
1563
|
-
console.error(
|
|
1576
|
+
e(r.success, "success"), x(null), w(""), p(!1), ee();
|
|
1577
|
+
} catch (C) {
|
|
1578
|
+
console.error(C), e(r.error, "error");
|
|
1564
1579
|
} finally {
|
|
1565
1580
|
P(!1);
|
|
1566
1581
|
}
|
|
1567
1582
|
};
|
|
1568
|
-
return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1583
|
+
return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1077", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1078", className: "vg-no-capture", children: [
|
|
1569
1584
|
!i && /* @__PURE__ */ o.jsxs(
|
|
1570
1585
|
"div",
|
|
1571
1586
|
{
|
|
@@ -1577,13 +1592,13 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1577
1592
|
display: "flex",
|
|
1578
1593
|
alignItems: "center",
|
|
1579
1594
|
gap: "8px",
|
|
1580
|
-
transition:
|
|
1595
|
+
transition: l ? "none" : "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
|
|
1581
1596
|
},
|
|
1582
1597
|
children: [
|
|
1583
1598
|
/* @__PURE__ */ o.jsx(
|
|
1584
1599
|
"div",
|
|
1585
1600
|
{
|
|
1586
|
-
onMouseDown:
|
|
1601
|
+
onMouseDown: de,
|
|
1587
1602
|
style: {
|
|
1588
1603
|
width: "20px",
|
|
1589
1604
|
height: "32px",
|
|
@@ -1595,26 +1610,26 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1595
1610
|
justifyContent: "center",
|
|
1596
1611
|
cursor: "grab",
|
|
1597
1612
|
color: "#1e293b",
|
|
1598
|
-
opacity:
|
|
1599
|
-
visibility:
|
|
1613
|
+
opacity: c ? 0 : 1,
|
|
1614
|
+
visibility: c ? "hidden" : "visible",
|
|
1600
1615
|
transition: "all 0.2s",
|
|
1601
1616
|
border: "1px solid rgba(0,0,0,0.1)",
|
|
1602
1617
|
boxShadow: "0 2px 8px rgba(0,0,0,0.05)"
|
|
1603
1618
|
},
|
|
1604
|
-
onMouseEnter: (
|
|
1605
|
-
|
|
1619
|
+
onMouseEnter: (d) => {
|
|
1620
|
+
d.currentTarget.style.backgroundColor = "white", d.currentTarget.style.color = "#000000";
|
|
1606
1621
|
},
|
|
1607
|
-
onMouseLeave: (
|
|
1608
|
-
|
|
1622
|
+
onMouseLeave: (d) => {
|
|
1623
|
+
d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", d.currentTarget.style.color = "#1e293b";
|
|
1609
1624
|
},
|
|
1610
|
-
children: /* @__PURE__ */ o.jsx(tt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1625
|
+
children: /* @__PURE__ */ o.jsx(tt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1122", size: 14 })
|
|
1611
1626
|
}
|
|
1612
1627
|
),
|
|
1613
1628
|
/* @__PURE__ */ o.jsx(
|
|
1614
1629
|
"button",
|
|
1615
1630
|
{
|
|
1616
|
-
onClick: (
|
|
1617
|
-
|
|
1631
|
+
onClick: (d) => {
|
|
1632
|
+
d.stopPropagation(), H({
|
|
1618
1633
|
title: r.exitConfirmTitle || "Close ViewGate?",
|
|
1619
1634
|
message: r.exitConfirmMessage || "Are you sure you want to close ViewGate?",
|
|
1620
1635
|
type: "danger",
|
|
@@ -1637,13 +1652,13 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1637
1652
|
color: "#64748b",
|
|
1638
1653
|
transition: "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
|
|
1639
1654
|
},
|
|
1640
|
-
onMouseEnter: (
|
|
1641
|
-
|
|
1655
|
+
onMouseEnter: (d) => {
|
|
1656
|
+
d.currentTarget.style.transform = "scale(1.1) rotate(90deg)", d.currentTarget.style.color = "#ef4444", d.currentTarget.style.backgroundColor = "white";
|
|
1642
1657
|
},
|
|
1643
|
-
onMouseLeave: (
|
|
1644
|
-
|
|
1658
|
+
onMouseLeave: (d) => {
|
|
1659
|
+
d.currentTarget.style.transform = "scale(1) rotate(0deg)", d.currentTarget.style.color = "#64748b", d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
|
|
1645
1660
|
},
|
|
1646
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1661
|
+
children: /* @__PURE__ */ o.jsx($e, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1162", size: 20, strokeWidth: 2.5 })
|
|
1647
1662
|
}
|
|
1648
1663
|
)
|
|
1649
1664
|
]
|
|
@@ -1652,7 +1667,7 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1652
1667
|
/* @__PURE__ */ o.jsxs(
|
|
1653
1668
|
"div",
|
|
1654
1669
|
{
|
|
1655
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1670
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1168",
|
|
1656
1671
|
style: {
|
|
1657
1672
|
position: "fixed",
|
|
1658
1673
|
bottom: `${k.bottom}px`,
|
|
@@ -1680,35 +1695,35 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1680
1695
|
justifyContent: "center",
|
|
1681
1696
|
cursor: "grab",
|
|
1682
1697
|
color: "#1e293b",
|
|
1683
|
-
opacity:
|
|
1684
|
-
visibility:
|
|
1698
|
+
opacity: c ? 0 : 1,
|
|
1699
|
+
visibility: c ? "hidden" : "visible",
|
|
1685
1700
|
transition: "all 0.2s",
|
|
1686
1701
|
border: "1px solid rgba(0,0,0,0.1)",
|
|
1687
1702
|
boxShadow: "0 2px 8px rgba(0,0,0,0.05)"
|
|
1688
1703
|
},
|
|
1689
|
-
onMouseEnter: (
|
|
1690
|
-
|
|
1704
|
+
onMouseEnter: (d) => {
|
|
1705
|
+
d.currentTarget.style.backgroundColor = "white", d.currentTarget.style.color = "#000000";
|
|
1691
1706
|
},
|
|
1692
|
-
onMouseLeave: (
|
|
1693
|
-
|
|
1707
|
+
onMouseLeave: (d) => {
|
|
1708
|
+
d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", d.currentTarget.style.color = "#1e293b";
|
|
1694
1709
|
},
|
|
1695
1710
|
className: "vg-animate-slide-up",
|
|
1696
|
-
children: /* @__PURE__ */ o.jsx(tt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1711
|
+
children: /* @__PURE__ */ o.jsx(tt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1211", size: 16 })
|
|
1697
1712
|
}
|
|
1698
1713
|
),
|
|
1699
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1714
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1214", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
|
|
1700
1715
|
/* @__PURE__ */ o.jsx(
|
|
1701
1716
|
"button",
|
|
1702
1717
|
{
|
|
1703
|
-
onClick: () => p(!
|
|
1718
|
+
onClick: () => p(!c),
|
|
1704
1719
|
className: "vg-button-primary vg-animate-pop",
|
|
1705
1720
|
style: {
|
|
1706
1721
|
padding: "12px 24px",
|
|
1707
|
-
background:
|
|
1722
|
+
background: c ? "#ef4444" : void 0
|
|
1708
1723
|
},
|
|
1709
|
-
children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1710
|
-
|
|
1711
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1724
|
+
children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1223", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
|
|
1725
|
+
c ? /* @__PURE__ */ o.jsx($e, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1224", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1224", size: 20, className: "vg-animate-pop" }),
|
|
1726
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1225", children: c ? r.exitMode : r.enterMode })
|
|
1712
1727
|
] })
|
|
1713
1728
|
}
|
|
1714
1729
|
),
|
|
@@ -1716,13 +1731,13 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1716
1731
|
"button",
|
|
1717
1732
|
{
|
|
1718
1733
|
onClick: () => {
|
|
1719
|
-
|
|
1734
|
+
F(!A), p(!1), x(null);
|
|
1720
1735
|
},
|
|
1721
1736
|
className: "vg-button-ghost vg-animate-pop",
|
|
1722
1737
|
style: { animationDelay: "0.1s" },
|
|
1723
1738
|
children: [
|
|
1724
|
-
/* @__PURE__ */ o.jsx(Xt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1725
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1739
|
+
/* @__PURE__ */ o.jsx(Xt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1238", size: 20 }),
|
|
1740
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1239", children: r.viewComments })
|
|
1726
1741
|
]
|
|
1727
1742
|
}
|
|
1728
1743
|
)
|
|
@@ -1730,7 +1745,7 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1730
1745
|
]
|
|
1731
1746
|
}
|
|
1732
1747
|
),
|
|
1733
|
-
z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1748
|
+
z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1247", style: {
|
|
1734
1749
|
position: "fixed",
|
|
1735
1750
|
top: 0,
|
|
1736
1751
|
left: 0,
|
|
@@ -1743,14 +1758,14 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1743
1758
|
justifyContent: "center",
|
|
1744
1759
|
zIndex: Le + 1,
|
|
1745
1760
|
cursor: "wait"
|
|
1746
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1747
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1748
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1761
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1253", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
|
|
1762
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1254", className: "vg-spinner" }),
|
|
1763
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1255", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
|
|
1749
1764
|
] }) }),
|
|
1750
|
-
|
|
1765
|
+
c && !m && /* @__PURE__ */ o.jsx(
|
|
1751
1766
|
"div",
|
|
1752
1767
|
{
|
|
1753
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1768
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1262",
|
|
1754
1769
|
className: "vg-backdrop-blur",
|
|
1755
1770
|
style: {
|
|
1756
1771
|
opacity: 1,
|
|
@@ -1766,10 +1781,10 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1766
1781
|
}
|
|
1767
1782
|
}
|
|
1768
1783
|
),
|
|
1769
|
-
|
|
1784
|
+
c && u && !m && !z && /* @__PURE__ */ o.jsx(
|
|
1770
1785
|
"div",
|
|
1771
1786
|
{
|
|
1772
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1787
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1281",
|
|
1773
1788
|
className: "vg-selection-pulse",
|
|
1774
1789
|
style: {
|
|
1775
1790
|
top: u.rect.top - 4,
|
|
@@ -1781,17 +1796,17 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1781
1796
|
children: /* @__PURE__ */ o.jsxs(
|
|
1782
1797
|
"div",
|
|
1783
1798
|
{
|
|
1784
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1799
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1291",
|
|
1785
1800
|
className: "vg-selection-label",
|
|
1786
1801
|
style: {
|
|
1787
1802
|
...u.rect.top < 60 ? u.rect.bottom > window.innerHeight - 60 ? { top: "8px", bottom: "auto" } : { top: "100%", marginTop: "8px", bottom: "auto" } : { top: "-40px", bottom: "auto" },
|
|
1788
1803
|
...u.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
|
|
1789
1804
|
},
|
|
1790
1805
|
children: [
|
|
1791
|
-
/* @__PURE__ */ o.jsx(tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1792
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1793
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1794
|
-
/* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1806
|
+
/* @__PURE__ */ o.jsx(tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1307", size: 16 }),
|
|
1807
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1308", style: { display: "flex", flexDirection: "column" }, children: [
|
|
1808
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1309", style: { fontWeight: 700 }, children: r.selectToComment }),
|
|
1809
|
+
/* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1310", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
|
|
1795
1810
|
Math.round(u.rect.width),
|
|
1796
1811
|
" × ",
|
|
1797
1812
|
Math.round(u.rect.height)
|
|
@@ -1802,7 +1817,7 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1802
1817
|
)
|
|
1803
1818
|
}
|
|
1804
1819
|
),
|
|
1805
|
-
m && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1820
|
+
m && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1320", className: "vg-animate-fade", style: {
|
|
1806
1821
|
position: "fixed",
|
|
1807
1822
|
top: 0,
|
|
1808
1823
|
left: 0,
|
|
@@ -1814,13 +1829,13 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1814
1829
|
alignItems: "center",
|
|
1815
1830
|
justifyContent: "center",
|
|
1816
1831
|
zIndex: Ne
|
|
1817
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1832
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1325", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
1818
1833
|
padding: "40px",
|
|
1819
1834
|
width: "500px",
|
|
1820
1835
|
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
|
|
1821
1836
|
}, children: [
|
|
1822
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1823
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1837
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1329", style: { textAlign: "center", marginBottom: "32px" }, children: [
|
|
1838
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1330", style: {
|
|
1824
1839
|
width: "48px",
|
|
1825
1840
|
height: "48px",
|
|
1826
1841
|
background: "var(--vg-primary-gradient)",
|
|
@@ -1831,11 +1846,11 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1831
1846
|
margin: "0 auto 16px",
|
|
1832
1847
|
color: "white",
|
|
1833
1848
|
boxShadow: "0 8px 16px rgba(99, 102, 241, 0.3)"
|
|
1834
|
-
}, children: /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1835
|
-
/* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1836
|
-
/* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1849
|
+
}, children: /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1335", size: 24 }) }),
|
|
1850
|
+
/* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1337", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
|
|
1851
|
+
/* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1338", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
|
|
1837
1852
|
] }),
|
|
1838
|
-
m.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1853
|
+
m.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1342", style: {
|
|
1839
1854
|
marginBottom: "24px",
|
|
1840
1855
|
borderRadius: "12px",
|
|
1841
1856
|
overflow: "hidden",
|
|
@@ -1855,15 +1870,15 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1855
1870
|
"textarea",
|
|
1856
1871
|
{
|
|
1857
1872
|
className: "vg-textarea",
|
|
1858
|
-
value:
|
|
1859
|
-
onChange: (
|
|
1873
|
+
value: f,
|
|
1874
|
+
onChange: (d) => w(d.target.value),
|
|
1860
1875
|
rows: 4,
|
|
1861
1876
|
placeholder: r.placeholder,
|
|
1862
1877
|
autoFocus: !0,
|
|
1863
1878
|
style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
|
|
1864
1879
|
}
|
|
1865
1880
|
),
|
|
1866
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1881
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1369", style: { display: "flex", gap: "12px" }, children: [
|
|
1867
1882
|
/* @__PURE__ */ o.jsx(
|
|
1868
1883
|
"button",
|
|
1869
1884
|
{
|
|
@@ -1879,17 +1894,17 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1879
1894
|
{
|
|
1880
1895
|
onClick: _t,
|
|
1881
1896
|
className: "vg-button-primary",
|
|
1882
|
-
disabled: T || !
|
|
1897
|
+
disabled: T || !f.trim(),
|
|
1883
1898
|
style: { flex: 2 },
|
|
1884
|
-
children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1885
|
-
T ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1886
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1899
|
+
children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1384", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
1900
|
+
T ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1385", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(ir, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1385", size: 18 }),
|
|
1901
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1386", children: T ? r.submitting : r.sendFeedback || "Send Comment" })
|
|
1887
1902
|
] })
|
|
1888
1903
|
}
|
|
1889
1904
|
)
|
|
1890
1905
|
] })
|
|
1891
1906
|
] }) }),
|
|
1892
|
-
A && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1907
|
+
A && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1396", className: "vg-animate-fade", style: {
|
|
1893
1908
|
position: "fixed",
|
|
1894
1909
|
top: 0,
|
|
1895
1910
|
left: 0,
|
|
@@ -1901,93 +1916,93 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1901
1916
|
alignItems: "center",
|
|
1902
1917
|
justifyContent: "center",
|
|
1903
1918
|
zIndex: Ne
|
|
1904
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1919
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1401", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
1905
1920
|
padding: "32px",
|
|
1906
1921
|
width: "650px",
|
|
1907
1922
|
maxHeight: "85vh",
|
|
1908
1923
|
display: "flex",
|
|
1909
1924
|
flexDirection: "column"
|
|
1910
1925
|
}, children: [
|
|
1911
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1912
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1913
|
-
/* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1914
|
-
!B && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1926
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1405", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
|
|
1927
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1406", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
|
|
1928
|
+
/* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1407", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: B ? r.commentDetails : r.annotations }),
|
|
1929
|
+
!B && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1411", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: _.length })
|
|
1915
1930
|
] }),
|
|
1916
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1931
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1416", style: { display: "flex", gap: "8px" }, children: [
|
|
1917
1932
|
B && /* @__PURE__ */ o.jsx(
|
|
1918
1933
|
"button",
|
|
1919
1934
|
{
|
|
1920
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1935
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1418",
|
|
1921
1936
|
className: "vg-button-ghost",
|
|
1922
1937
|
style: { padding: "6px 14px", fontSize: "12px" },
|
|
1923
|
-
onClick: () =>
|
|
1938
|
+
onClick: () => re(null),
|
|
1924
1939
|
children: r.viewAll || "View All"
|
|
1925
1940
|
}
|
|
1926
1941
|
),
|
|
1927
1942
|
/* @__PURE__ */ o.jsx(
|
|
1928
1943
|
"button",
|
|
1929
1944
|
{
|
|
1930
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1945
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1426",
|
|
1931
1946
|
className: "vg-button-ghost",
|
|
1932
1947
|
style: { padding: "8px", borderRadius: "50%" },
|
|
1933
1948
|
onClick: () => {
|
|
1934
|
-
|
|
1949
|
+
F(!1), re(null);
|
|
1935
1950
|
},
|
|
1936
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1951
|
+
children: /* @__PURE__ */ o.jsx($e, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1431", size: 20 })
|
|
1937
1952
|
}
|
|
1938
1953
|
)
|
|
1939
1954
|
] })
|
|
1940
1955
|
] }),
|
|
1941
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1956
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1436", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: ce ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1438", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1439", className: "vg-spinner" }) }) : (B ? _.filter((d) => d._id === B) : _).map((d, h) => /* @__PURE__ */ o.jsxs(
|
|
1942
1957
|
"div",
|
|
1943
1958
|
{
|
|
1944
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1959
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1443",
|
|
1945
1960
|
className: "vg-glassmorphism vg-animate-slide",
|
|
1946
1961
|
style: {
|
|
1947
1962
|
padding: "20px",
|
|
1948
1963
|
marginBottom: "16px",
|
|
1949
1964
|
border: "1px solid rgba(0,0,0,0.05)",
|
|
1950
1965
|
background: "rgba(255,255,255,0.5)",
|
|
1951
|
-
animationDelay: `${
|
|
1966
|
+
animationDelay: `${h * 0.05}s`
|
|
1952
1967
|
},
|
|
1953
1968
|
children: [
|
|
1954
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1955
|
-
|
|
1956
|
-
/* @__PURE__ */ o.jsx(
|
|
1969
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1454", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1455", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
|
|
1970
|
+
d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1457", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a" }, children: [
|
|
1971
|
+
/* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1458", size: 14 }),
|
|
1957
1972
|
" ",
|
|
1958
1973
|
r.readyForReview
|
|
1959
|
-
] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1960
|
-
/* @__PURE__ */ o.jsx(Qe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1974
|
+
] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1461", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c" }, children: [
|
|
1975
|
+
/* @__PURE__ */ o.jsx(Qe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1462", size: 14 }),
|
|
1961
1976
|
" ",
|
|
1962
1977
|
r.pending
|
|
1963
1978
|
] }),
|
|
1964
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1979
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1465", style: { fontSize: "12px", color: "#000000" }, children: un(d.timestamp || d.createdAt || d.reference?.timestamp, t) })
|
|
1965
1980
|
] }) }),
|
|
1966
|
-
Ue ===
|
|
1981
|
+
Ue === d._id ? /* @__PURE__ */ o.jsx(
|
|
1967
1982
|
"textarea",
|
|
1968
1983
|
{
|
|
1969
1984
|
className: "vg-textarea",
|
|
1970
1985
|
value: qe,
|
|
1971
|
-
onChange: (
|
|
1986
|
+
onChange: (g) => Ye(g.target.value),
|
|
1972
1987
|
rows: 3,
|
|
1973
1988
|
autoFocus: !0,
|
|
1974
1989
|
style: { marginBottom: "16px" }
|
|
1975
1990
|
}
|
|
1976
|
-
) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1977
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1991
|
+
) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1481", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: d.message }),
|
|
1992
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1484", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: Ue === d._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1978
1993
|
/* @__PURE__ */ o.jsx(
|
|
1979
1994
|
"button",
|
|
1980
1995
|
{
|
|
1981
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1996
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1487",
|
|
1982
1997
|
className: "vg-button-primary vg-animate-pop",
|
|
1983
1998
|
style: { padding: "8px 16px", fontSize: "13px" },
|
|
1984
1999
|
onClick: async () => {
|
|
1985
2000
|
try {
|
|
1986
|
-
(await fetch(`${a}/api/annotations/${
|
|
2001
|
+
(await fetch(`${a}/api/annotations/${d._id}`, {
|
|
1987
2002
|
method: "PATCH",
|
|
1988
2003
|
headers: { "Content-Type": "application/json", "x-api-key": n },
|
|
1989
2004
|
body: JSON.stringify({ message: qe })
|
|
1990
|
-
})).ok && (Te(null),
|
|
2005
|
+
})).ok && (Te(null), ee(), e(r.updateSuccess, "success"));
|
|
1991
2006
|
} catch {
|
|
1992
2007
|
e(r.error, "error");
|
|
1993
2008
|
}
|
|
@@ -1995,19 +2010,19 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1995
2010
|
children: r.save
|
|
1996
2011
|
}
|
|
1997
2012
|
),
|
|
1998
|
-
/* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2013
|
+
/* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1509", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => Te(null), children: r.cancel })
|
|
1999
2014
|
] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2000
2015
|
/* @__PURE__ */ o.jsxs(
|
|
2001
2016
|
"button",
|
|
2002
2017
|
{
|
|
2003
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2018
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1513",
|
|
2004
2019
|
className: "vg-button-ghost vg-animate-pop",
|
|
2005
2020
|
style: { padding: "8px 16px", fontSize: "13px" },
|
|
2006
2021
|
onClick: () => {
|
|
2007
|
-
Te(
|
|
2022
|
+
Te(d._id), Ye(d.message);
|
|
2008
2023
|
},
|
|
2009
2024
|
children: [
|
|
2010
|
-
/* @__PURE__ */ o.jsx(nr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2025
|
+
/* @__PURE__ */ o.jsx(nr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1521", size: 14 }),
|
|
2011
2026
|
" ",
|
|
2012
2027
|
r.edit
|
|
2013
2028
|
]
|
|
@@ -2016,47 +2031,47 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
2016
2031
|
/* @__PURE__ */ o.jsxs(
|
|
2017
2032
|
"button",
|
|
2018
2033
|
{
|
|
2019
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2034
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1523",
|
|
2020
2035
|
className: "vg-button-ghost vg-animate-pop",
|
|
2021
2036
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.05s" },
|
|
2022
2037
|
onClick: () => {
|
|
2023
|
-
|
|
2038
|
+
d.url && (window.location.href = d.url);
|
|
2024
2039
|
},
|
|
2025
2040
|
children: [
|
|
2026
|
-
/* @__PURE__ */ o.jsx(et, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2041
|
+
/* @__PURE__ */ o.jsx(et, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1530", size: 14 }),
|
|
2027
2042
|
" ",
|
|
2028
2043
|
r.review
|
|
2029
2044
|
]
|
|
2030
2045
|
}
|
|
2031
2046
|
),
|
|
2032
|
-
|
|
2047
|
+
d.status === "pending" ? /* @__PURE__ */ o.jsxs(
|
|
2033
2048
|
"button",
|
|
2034
2049
|
{
|
|
2035
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2050
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1533",
|
|
2036
2051
|
className: "vg-button-primary vg-animate-pop",
|
|
2037
2052
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
|
|
2038
2053
|
onClick: () => {
|
|
2039
|
-
|
|
2054
|
+
H({
|
|
2040
2055
|
title: r.markReadyConfirm,
|
|
2041
2056
|
message: r.confirmMarkReady,
|
|
2042
2057
|
type: "success",
|
|
2043
2058
|
onConfirm: async () => {
|
|
2044
2059
|
try {
|
|
2045
|
-
(await fetch(`${a}/api/annotations/${
|
|
2060
|
+
(await fetch(`${a}/api/annotations/${d._id}`, {
|
|
2046
2061
|
method: "PATCH",
|
|
2047
2062
|
headers: { "Content-Type": "application/json", "x-api-key": n },
|
|
2048
2063
|
body: JSON.stringify({ status: "ready_for_review" })
|
|
2049
|
-
})).ok && (
|
|
2064
|
+
})).ok && (ee(), e(r.updateSuccess, "success"));
|
|
2050
2065
|
} catch {
|
|
2051
2066
|
e(r.error, "error");
|
|
2052
2067
|
} finally {
|
|
2053
|
-
|
|
2068
|
+
H(null);
|
|
2054
2069
|
}
|
|
2055
2070
|
}
|
|
2056
2071
|
});
|
|
2057
2072
|
},
|
|
2058
2073
|
children: [
|
|
2059
|
-
/* @__PURE__ */ o.jsx(
|
|
2074
|
+
/* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1561", size: 14 }),
|
|
2060
2075
|
" ",
|
|
2061
2076
|
r.markReady
|
|
2062
2077
|
]
|
|
@@ -2064,32 +2079,32 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
2064
2079
|
) : /* @__PURE__ */ o.jsxs(
|
|
2065
2080
|
"button",
|
|
2066
2081
|
{
|
|
2067
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2082
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1564",
|
|
2068
2083
|
className: "vg-button-ghost vg-animate-pop",
|
|
2069
2084
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
|
|
2070
2085
|
onClick: () => {
|
|
2071
|
-
|
|
2086
|
+
H({
|
|
2072
2087
|
title: r.reopenConfirm,
|
|
2073
2088
|
message: r.confirmReopen,
|
|
2074
2089
|
type: "success",
|
|
2075
2090
|
// Reopening is a positive action, use success theme (indigo/check) or we could add a neutral theme
|
|
2076
2091
|
onConfirm: async () => {
|
|
2077
2092
|
try {
|
|
2078
|
-
(await fetch(`${a}/api/annotations/${
|
|
2093
|
+
(await fetch(`${a}/api/annotations/${d._id}`, {
|
|
2079
2094
|
method: "PATCH",
|
|
2080
2095
|
headers: { "Content-Type": "application/json", "x-api-key": n },
|
|
2081
2096
|
body: JSON.stringify({ status: "pending" })
|
|
2082
|
-
})).ok && (
|
|
2097
|
+
})).ok && (ee(), e(r.updateSuccess, "success"));
|
|
2083
2098
|
} catch {
|
|
2084
2099
|
e(r.error, "error");
|
|
2085
2100
|
} finally {
|
|
2086
|
-
|
|
2101
|
+
H(null);
|
|
2087
2102
|
}
|
|
2088
2103
|
}
|
|
2089
2104
|
});
|
|
2090
2105
|
},
|
|
2091
2106
|
children: [
|
|
2092
|
-
/* @__PURE__ */ o.jsx(ar, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2107
|
+
/* @__PURE__ */ o.jsx(ar, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1592", size: 14 }),
|
|
2093
2108
|
" ",
|
|
2094
2109
|
r.reopen
|
|
2095
2110
|
]
|
|
@@ -2098,38 +2113,38 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
2098
2113
|
/* @__PURE__ */ o.jsx(
|
|
2099
2114
|
"button",
|
|
2100
2115
|
{
|
|
2101
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2116
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1595",
|
|
2102
2117
|
className: "vg-button-ghost vg-animate-pop",
|
|
2103
2118
|
style: { padding: "8px 12px", color: "#ef4444", borderColor: "#fee2e2", animationDelay: "0.15s" },
|
|
2104
2119
|
onClick: () => {
|
|
2105
|
-
|
|
2120
|
+
H({
|
|
2106
2121
|
title: r.deleteConfirm,
|
|
2107
2122
|
message: r.confirmDelete,
|
|
2108
2123
|
type: "danger",
|
|
2109
2124
|
onConfirm: async () => {
|
|
2110
2125
|
try {
|
|
2111
|
-
(await fetch(`${a}/api/annotations/${
|
|
2126
|
+
(await fetch(`${a}/api/annotations/${d._id}`, {
|
|
2112
2127
|
method: "DELETE",
|
|
2113
2128
|
headers: { "x-api-key": n }
|
|
2114
|
-
})).ok && (
|
|
2129
|
+
})).ok && (ee(), e(r.deleteSuccess, "success"));
|
|
2115
2130
|
} catch {
|
|
2116
2131
|
e(r.error, "error");
|
|
2117
2132
|
} finally {
|
|
2118
|
-
|
|
2133
|
+
H(null);
|
|
2119
2134
|
}
|
|
2120
2135
|
}
|
|
2121
2136
|
});
|
|
2122
2137
|
},
|
|
2123
|
-
children: /* @__PURE__ */ o.jsx(rt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2138
|
+
children: /* @__PURE__ */ o.jsx(rt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1622", size: 16 })
|
|
2124
2139
|
}
|
|
2125
2140
|
)
|
|
2126
2141
|
] }) })
|
|
2127
2142
|
]
|
|
2128
2143
|
},
|
|
2129
|
-
|
|
2144
|
+
d._id
|
|
2130
2145
|
)) })
|
|
2131
2146
|
] }) }),
|
|
2132
|
-
|
|
2147
|
+
$ && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1637", className: "vg-animate-fade", style: {
|
|
2133
2148
|
position: "fixed",
|
|
2134
2149
|
top: 0,
|
|
2135
2150
|
left: 0,
|
|
@@ -2141,75 +2156,75 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
2141
2156
|
alignItems: "center",
|
|
2142
2157
|
justifyContent: "center",
|
|
2143
2158
|
zIndex: Ne + 100
|
|
2144
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2159
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1642", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
2145
2160
|
padding: "40px",
|
|
2146
2161
|
width: "420px",
|
|
2147
2162
|
textAlign: "center",
|
|
2148
2163
|
border: "1px solid rgba(255, 255, 255, 0.1)",
|
|
2149
2164
|
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
|
|
2150
2165
|
}, children: [
|
|
2151
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2166
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1649", style: {
|
|
2152
2167
|
width: "64px",
|
|
2153
2168
|
height: "64px",
|
|
2154
|
-
background:
|
|
2169
|
+
background: $.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
|
|
2155
2170
|
borderRadius: "20px",
|
|
2156
2171
|
display: "flex",
|
|
2157
2172
|
alignItems: "center",
|
|
2158
2173
|
justifyContent: "center",
|
|
2159
2174
|
margin: "0 auto 24px",
|
|
2160
|
-
color:
|
|
2175
|
+
color: $.type === "danger" ? "#ef4444" : "#6366f1",
|
|
2161
2176
|
transform: "rotate(-5deg)"
|
|
2162
|
-
}, children:
|
|
2163
|
-
/* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2164
|
-
/* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2165
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2177
|
+
}, children: $.type === "danger" ? /* @__PURE__ */ o.jsx(rt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1658", size: 32 }) : /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1658", size: 32 }) }),
|
|
2178
|
+
/* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1660", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: $.title }),
|
|
2179
|
+
/* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1661", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: $.message }),
|
|
2180
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1662", style: { display: "flex", gap: "16px" }, children: [
|
|
2166
2181
|
/* @__PURE__ */ o.jsx(
|
|
2167
2182
|
"button",
|
|
2168
2183
|
{
|
|
2169
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2184
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1663",
|
|
2170
2185
|
className: "vg-button-ghost",
|
|
2171
2186
|
style: { flex: 1, height: "44px" },
|
|
2172
|
-
onClick: () => !
|
|
2173
|
-
disabled:
|
|
2187
|
+
onClick: () => !Q && H(null),
|
|
2188
|
+
disabled: Q,
|
|
2174
2189
|
children: r.no
|
|
2175
2190
|
}
|
|
2176
2191
|
),
|
|
2177
2192
|
/* @__PURE__ */ o.jsx(
|
|
2178
2193
|
"button",
|
|
2179
2194
|
{
|
|
2180
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2195
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1671",
|
|
2181
2196
|
className: "vg-button-primary",
|
|
2182
2197
|
style: {
|
|
2183
2198
|
flex: 1,
|
|
2184
2199
|
height: "44px",
|
|
2185
|
-
backgroundColor:
|
|
2186
|
-
backgroundImage:
|
|
2200
|
+
backgroundColor: $.type === "danger" ? "#ef4444" : void 0,
|
|
2201
|
+
backgroundImage: $.type === "danger" ? "none" : void 0,
|
|
2187
2202
|
display: "flex",
|
|
2188
2203
|
alignItems: "center",
|
|
2189
2204
|
justifyContent: "center",
|
|
2190
2205
|
gap: "8px"
|
|
2191
2206
|
},
|
|
2192
|
-
disabled:
|
|
2207
|
+
disabled: Q,
|
|
2193
2208
|
onClick: async () => {
|
|
2194
|
-
|
|
2209
|
+
le(!0);
|
|
2195
2210
|
try {
|
|
2196
|
-
await
|
|
2197
|
-
} catch (
|
|
2198
|
-
console.error("Confirmation error:",
|
|
2211
|
+
await $.onConfirm();
|
|
2212
|
+
} catch (d) {
|
|
2213
|
+
console.error("Confirmation error:", d);
|
|
2199
2214
|
} finally {
|
|
2200
|
-
|
|
2215
|
+
le(!1);
|
|
2201
2216
|
}
|
|
2202
2217
|
},
|
|
2203
|
-
children:
|
|
2218
|
+
children: Q ? /* @__PURE__ */ o.jsx(Kt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1696", size: 18, className: "vg-animate-spin" }) : r.yes
|
|
2204
2219
|
}
|
|
2205
2220
|
)
|
|
2206
2221
|
] })
|
|
2207
2222
|
] }) }),
|
|
2208
|
-
!
|
|
2209
|
-
const
|
|
2210
|
-
if (!
|
|
2211
|
-
const
|
|
2212
|
-
(
|
|
2223
|
+
!c && !A && _.map((d, h) => {
|
|
2224
|
+
const g = jt[d._id];
|
|
2225
|
+
if (!g) return null;
|
|
2226
|
+
const C = _.slice(0, h).filter(
|
|
2227
|
+
(E) => E.reference?.selector && E.reference.selector === d.reference?.selector
|
|
2213
2228
|
).length * 34;
|
|
2214
2229
|
return /* @__PURE__ */ o.jsxs(
|
|
2215
2230
|
"div",
|
|
@@ -2217,52 +2232,52 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
2217
2232
|
className: "vg-pin-container vg-animate-pop",
|
|
2218
2233
|
style: {
|
|
2219
2234
|
position: "fixed",
|
|
2220
|
-
top:
|
|
2221
|
-
left:
|
|
2235
|
+
top: g.top - 20 - window.scrollY,
|
|
2236
|
+
left: g.left + g.width / 2 - 16 + C - window.scrollX,
|
|
2222
2237
|
cursor: "pointer",
|
|
2223
|
-
animationDelay: `${
|
|
2238
|
+
animationDelay: `${h * 0.08}s`,
|
|
2224
2239
|
transition: "all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",
|
|
2225
|
-
zIndex: cn -
|
|
2240
|
+
zIndex: cn - h
|
|
2226
2241
|
// Ensure staggered pins don't overlap tooltips weirdly
|
|
2227
2242
|
},
|
|
2228
|
-
onMouseEnter: (
|
|
2229
|
-
const
|
|
2230
|
-
window.innerHeight -
|
|
2243
|
+
onMouseEnter: (E) => {
|
|
2244
|
+
const S = E.currentTarget.getBoundingClientRect();
|
|
2245
|
+
window.innerHeight - S.bottom < 180 ? be((Y) => ({ ...Y, [d._id]: "vg-top" })) : be((Y) => ({ ...Y, [d._id]: "" }));
|
|
2231
2246
|
},
|
|
2232
2247
|
onClick: () => {
|
|
2233
|
-
|
|
2248
|
+
F(!0), re(d._id);
|
|
2234
2249
|
},
|
|
2235
2250
|
children: [
|
|
2236
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2237
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2238
|
-
|
|
2239
|
-
/* @__PURE__ */ o.jsx(
|
|
2251
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1743", className: `vg-pin-tooltip ${ve[d._id] || ""}`, children: [
|
|
2252
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1744", style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "8px" }, children: [
|
|
2253
|
+
d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1746", style: { display: "flex", alignItems: "center", gap: "6px", color: "#16a34a", fontWeight: 700, fontSize: "11px" }, children: [
|
|
2254
|
+
/* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1747", size: 12 }),
|
|
2240
2255
|
" ",
|
|
2241
2256
|
r.readyForReview
|
|
2242
|
-
] }) : /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2243
|
-
/* @__PURE__ */ o.jsx(Qe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2257
|
+
] }) : /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1750", style: { display: "flex", alignItems: "center", gap: "6px", color: g.isModal ? "#f59e0b" : "#ea580c", fontWeight: 700, fontSize: "11px" }, children: [
|
|
2258
|
+
/* @__PURE__ */ o.jsx(Qe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1751", size: 12 }),
|
|
2244
2259
|
" ",
|
|
2245
2260
|
r.pending
|
|
2246
2261
|
] }),
|
|
2247
|
-
|
|
2262
|
+
g.isModal && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1755", style: { display: "flex", alignItems: "center", gap: "6px", color: "#f59e0b", fontWeight: 700, fontSize: "11px", marginLeft: "auto" }, children: /* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1756", children: "MODAL" }) })
|
|
2248
2263
|
] }),
|
|
2249
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2264
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1760", style: { fontWeight: 500, color: "#1e293b", lineHeight: 1.4 }, children: d.message })
|
|
2250
2265
|
] }),
|
|
2251
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2266
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1763", className: `vg-formal-pin ${d.status === "ready_for_review" ? "ready" : ""} ${g.isModal ? "modal-variant" : ""}`, children: d.status === "ready_for_review" ? /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1764", size: 18 }) : g.isModal ? /* @__PURE__ */ o.jsx(et, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1764", size: 16 }) : /* @__PURE__ */ o.jsx(Ae, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1764", size: 16 }) })
|
|
2252
2267
|
]
|
|
2253
2268
|
},
|
|
2254
|
-
`pin-${
|
|
2269
|
+
`pin-${d._id}`
|
|
2255
2270
|
);
|
|
2256
2271
|
})
|
|
2257
2272
|
] }) });
|
|
2258
2273
|
};
|
|
2259
2274
|
function Rt(e, t, r) {
|
|
2260
2275
|
if (!t.endsWith(".tsx") && !t.endsWith(".jsx") || t.includes("node_modules")) return e;
|
|
2261
|
-
const n = (
|
|
2276
|
+
const n = (c) => c.replace(/\\/g, "/"), a = n(t).replace(n(r), "");
|
|
2262
2277
|
return e.split(`
|
|
2263
|
-
`).map((
|
|
2278
|
+
`).map((c, p) => {
|
|
2264
2279
|
const u = p + 1;
|
|
2265
|
-
return
|
|
2280
|
+
return c.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (v, m, x) => v.includes("data-source-path") || x === "Fragment" || x === "React.Fragment" ? v : `${m}<${x} data-source-path="${a}:${u}"`);
|
|
2266
2281
|
}).join(`
|
|
2267
2282
|
`);
|
|
2268
2283
|
}
|