viewgate-wrapper 1.10.11 → 1.10.12
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,37 +1,37 @@
|
|
|
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 ze, createContext as Vt, useContext as Pt, useCallback as Ce } from "react";
|
|
3
3
|
import { createPortal as At } from "react-dom";
|
|
4
|
-
var
|
|
4
|
+
var Ee = { 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
|
-
function r(n,
|
|
10
|
+
function r(n, s, a) {
|
|
11
11
|
var i = null;
|
|
12
|
-
if (
|
|
13
|
-
|
|
14
|
-
for (var d in
|
|
15
|
-
d !== "key" && (
|
|
16
|
-
} else
|
|
17
|
-
return
|
|
12
|
+
if (a !== void 0 && (i = "" + a), s.key !== void 0 && (i = "" + s.key), "key" in s) {
|
|
13
|
+
a = {};
|
|
14
|
+
for (var d in s)
|
|
15
|
+
d !== "key" && (a[d] = s[d]);
|
|
16
|
+
} else a = s;
|
|
17
|
+
return s = a.ref, {
|
|
18
18
|
$$typeof: e,
|
|
19
19
|
type: n,
|
|
20
20
|
key: i,
|
|
21
|
-
ref:
|
|
22
|
-
props:
|
|
21
|
+
ref: s !== void 0 ? s : null,
|
|
22
|
+
props: a
|
|
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
31
|
function e(c) {
|
|
32
32
|
if (c == null) return null;
|
|
33
33
|
if (typeof c == "function")
|
|
34
|
-
return c.$$typeof ===
|
|
34
|
+
return c.$$typeof === ce ? null : c.displayName || c.name || null;
|
|
35
35
|
if (typeof c == "string") return c;
|
|
36
36
|
switch (c) {
|
|
37
37
|
case P:
|
|
@@ -40,9 +40,9 @@ function $t() {
|
|
|
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";
|
|
@@ -53,19 +53,19 @@ function $t() {
|
|
|
53
53
|
), c.$$typeof) {
|
|
54
54
|
case T:
|
|
55
55
|
return "Portal";
|
|
56
|
-
case
|
|
56
|
+
case F:
|
|
57
57
|
return c.displayName || "Context";
|
|
58
58
|
case A:
|
|
59
59
|
return (c._context.displayName || "Context") + ".Consumer";
|
|
60
60
|
case _:
|
|
61
|
-
var
|
|
62
|
-
return c = c.displayName, c || (c =
|
|
63
|
-
case
|
|
64
|
-
return
|
|
65
|
-
case
|
|
66
|
-
|
|
61
|
+
var y = c.render;
|
|
62
|
+
return c = c.displayName, c || (c = y.displayName || y.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
|
|
63
|
+
case H:
|
|
64
|
+
return y = c.displayName || null, y !== null ? y : e(c.type) || "Memo";
|
|
65
|
+
case xe:
|
|
66
|
+
y = c._payload, c = c._init;
|
|
67
67
|
try {
|
|
68
|
-
return e(c(
|
|
68
|
+
return e(c(y));
|
|
69
69
|
} catch {
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -77,15 +77,15 @@ function $t() {
|
|
|
77
77
|
function r(c) {
|
|
78
78
|
try {
|
|
79
79
|
t(c);
|
|
80
|
-
var
|
|
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 && c[Symbol.toStringTag] || c.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
91
|
), t(c);
|
|
@@ -93,54 +93,54 @@ function $t() {
|
|
|
93
93
|
}
|
|
94
94
|
function n(c) {
|
|
95
95
|
if (c === P) return "<>";
|
|
96
|
-
if (typeof c == "object" && c !== null && c.$$typeof ===
|
|
96
|
+
if (typeof c == "object" && c !== null && c.$$typeof === xe)
|
|
97
97
|
return "<...>";
|
|
98
98
|
try {
|
|
99
|
-
var
|
|
100
|
-
return
|
|
99
|
+
var y = e(c);
|
|
100
|
+
return y ? "<" + y + ">" : "<...>";
|
|
101
101
|
} catch {
|
|
102
102
|
return "<...>";
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
var c =
|
|
105
|
+
function s() {
|
|
106
|
+
var c = te.A;
|
|
107
107
|
return c === null ? null : c.getOwner();
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function a() {
|
|
110
110
|
return Error("react-stack-top-frame");
|
|
111
111
|
}
|
|
112
112
|
function i(c) {
|
|
113
|
-
if (
|
|
114
|
-
var
|
|
115
|
-
if (
|
|
113
|
+
if (we.call(c, "key")) {
|
|
114
|
+
var y = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
115
|
+
if (y && y.isReactWarning) return !1;
|
|
116
116
|
}
|
|
117
117
|
return c.key !== void 0;
|
|
118
118
|
}
|
|
119
|
-
function d(c,
|
|
120
|
-
function
|
|
121
|
-
|
|
119
|
+
function d(c, 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(c, "key", {
|
|
127
|
+
get: b,
|
|
128
128
|
configurable: !0
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
function p() {
|
|
132
132
|
var c = e(this.type);
|
|
133
|
-
return
|
|
133
|
+
return Q[c] || (Q[c] = !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
|
)), c = this.props.ref, c !== void 0 ? c : null;
|
|
136
136
|
}
|
|
137
|
-
function u(c,
|
|
138
|
-
var O =
|
|
137
|
+
function u(c, y, b, k, ne, q) {
|
|
138
|
+
var O = b.ref;
|
|
139
139
|
return c = {
|
|
140
|
-
$$typeof:
|
|
140
|
+
$$typeof: w,
|
|
141
141
|
type: c,
|
|
142
|
-
key:
|
|
143
|
-
props:
|
|
142
|
+
key: y,
|
|
143
|
+
props: b,
|
|
144
144
|
_owner: k
|
|
145
145
|
}, (O !== void 0 ? O : null) !== null ? Object.defineProperty(c, "ref", {
|
|
146
146
|
enumerable: !1,
|
|
@@ -159,7 +159,7 @@ function $t() {
|
|
|
159
159
|
configurable: !1,
|
|
160
160
|
enumerable: !1,
|
|
161
161
|
writable: !0,
|
|
162
|
-
value:
|
|
162
|
+
value: ne
|
|
163
163
|
}), Object.defineProperty(c, "_debugTask", {
|
|
164
164
|
configurable: !1,
|
|
165
165
|
enumerable: !1,
|
|
@@ -167,11 +167,11 @@ function $t() {
|
|
|
167
167
|
value: q
|
|
168
168
|
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
var O =
|
|
170
|
+
function v(c, y, b, k, ne, q) {
|
|
171
|
+
var O = y.children;
|
|
172
172
|
if (O !== void 0)
|
|
173
173
|
if (k)
|
|
174
|
-
if (
|
|
174
|
+
if (ve(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 (
|
|
183
|
+
if (we.call(y, "key")) {
|
|
184
184
|
O = e(c);
|
|
185
|
-
var V = Object.keys(
|
|
186
|
-
return
|
|
185
|
+
var V = Object.keys(y).filter(function(Te) {
|
|
186
|
+
return Te !== "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}", be[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,92 +196,92 @@ React keys must be passed directly to JSX without using spread:
|
|
|
196
196
|
O,
|
|
197
197
|
V,
|
|
198
198
|
O
|
|
199
|
-
),
|
|
199
|
+
), be[O + k] = !0);
|
|
200
200
|
}
|
|
201
|
-
if (O = null,
|
|
202
|
-
|
|
203
|
-
for (var
|
|
204
|
-
|
|
205
|
-
} else
|
|
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
206
|
return O && d(
|
|
207
|
-
|
|
207
|
+
b,
|
|
208
208
|
typeof c == "function" ? c.displayName || c.name || "Unknown" : c
|
|
209
209
|
), u(
|
|
210
210
|
c,
|
|
211
211
|
O,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
b,
|
|
213
|
+
s(),
|
|
214
|
+
ne,
|
|
215
215
|
q
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
218
|
function m(c) {
|
|
219
|
-
x(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof ===
|
|
219
|
+
x(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === xe && (c._payload.status === "fulfilled" ? x(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
|
|
220
220
|
}
|
|
221
221
|
function x(c) {
|
|
222
|
-
return typeof c == "object" && c !== null && c.$$typeof ===
|
|
222
|
+
return typeof c == "object" && c !== null && c.$$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"), xe = /* @__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, we = Object.prototype.hasOwnProperty, ve = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
225
225
|
return null;
|
|
226
226
|
};
|
|
227
|
-
|
|
227
|
+
f = {
|
|
228
228
|
react_stack_bottom_frame: function(c) {
|
|
229
229
|
return c();
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
var
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
)(), U = B(n(
|
|
236
|
-
|
|
237
|
-
var k = 1e4 >
|
|
238
|
-
return
|
|
232
|
+
var re, Q = {}, le = f.react_stack_bottom_frame.bind(
|
|
233
|
+
f,
|
|
234
|
+
a
|
|
235
|
+
)(), U = B(n(a)), be = {};
|
|
236
|
+
he.Fragment = P, he.jsx = function(c, y, b) {
|
|
237
|
+
var k = 1e4 > te.recentlyCreatedOwnerStacks++;
|
|
238
|
+
return v(
|
|
239
239
|
c,
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
y,
|
|
241
|
+
b,
|
|
242
242
|
!1,
|
|
243
|
-
k ? Error("react-stack-top-frame") :
|
|
243
|
+
k ? Error("react-stack-top-frame") : le,
|
|
244
244
|
k ? B(n(c)) : U
|
|
245
245
|
);
|
|
246
|
-
},
|
|
247
|
-
var k = 1e4 >
|
|
248
|
-
return
|
|
246
|
+
}, he.jsxs = function(c, y, b) {
|
|
247
|
+
var k = 1e4 > te.recentlyCreatedOwnerStacks++;
|
|
248
|
+
return v(
|
|
249
249
|
c,
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
y,
|
|
251
|
+
b,
|
|
252
252
|
!0,
|
|
253
|
-
k ? Error("react-stack-top-frame") :
|
|
253
|
+
k ? Error("react-stack-top-frame") : le,
|
|
254
254
|
k ? B(n(c)) : 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" ? Ee.exports = $t() : Ee.exports = Gt()), Ee.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
|
-
const
|
|
268
|
+
const s = t.current.attachShadow({ mode: "open" });
|
|
269
269
|
document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach((d) => {
|
|
270
|
-
(d.textContent?.includes(".vg-") || d.textContent?.includes("--vg-")) &&
|
|
270
|
+
(d.textContent?.includes(".vg-") || d.textContent?.includes("--vg-")) && s.appendChild(d.cloneNode(!0));
|
|
271
271
|
});
|
|
272
272
|
const i = document.createElement("link");
|
|
273
|
-
i.rel = "stylesheet", i.href = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap",
|
|
273
|
+
i.rel = "stylesheet", i.href = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap", s.appendChild(i), n(s);
|
|
274
274
|
}
|
|
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 = {
|
|
@@ -307,11 +307,11 @@ const Ft = mt(
|
|
|
307
307
|
size: t = 24,
|
|
308
308
|
strokeWidth: r = 2,
|
|
309
309
|
absoluteStrokeWidth: n,
|
|
310
|
-
className:
|
|
311
|
-
children:
|
|
310
|
+
className: s = "",
|
|
311
|
+
children: a,
|
|
312
312
|
iconNode: i,
|
|
313
313
|
...d
|
|
314
|
-
}, p) =>
|
|
314
|
+
}, p) => ze(
|
|
315
315
|
"svg",
|
|
316
316
|
{
|
|
317
317
|
ref: p,
|
|
@@ -320,27 +320,27 @@ const Ft = mt(
|
|
|
320
320
|
height: t,
|
|
321
321
|
stroke: e,
|
|
322
322
|
strokeWidth: n ? Number(r) * 24 / Number(t) : r,
|
|
323
|
-
className: ft("lucide",
|
|
324
|
-
...!
|
|
323
|
+
className: ft("lucide", s),
|
|
324
|
+
...!a && !Dt(d) && { "aria-hidden": "true" },
|
|
325
325
|
...d
|
|
326
326
|
},
|
|
327
327
|
[
|
|
328
|
-
...i.map(([u,
|
|
329
|
-
...Array.isArray(
|
|
328
|
+
...i.map(([u, v]) => ze(u, v)),
|
|
329
|
+
...Array.isArray(a) ? a : [a]
|
|
330
330
|
]
|
|
331
331
|
)
|
|
332
332
|
);
|
|
333
333
|
const N = (e, t) => {
|
|
334
334
|
const r = mt(
|
|
335
|
-
({ className: n, ...
|
|
336
|
-
ref:
|
|
335
|
+
({ className: n, ...s }, a) => ze(Ft, {
|
|
336
|
+
ref: a,
|
|
337
337
|
iconNode: t,
|
|
338
338
|
className: ft(
|
|
339
|
-
`lucide-${
|
|
339
|
+
`lucide-${Mt(Ke(e))}`,
|
|
340
340
|
`lucide-${e}`,
|
|
341
341
|
n
|
|
342
342
|
),
|
|
343
|
-
...
|
|
343
|
+
...s
|
|
344
344
|
})
|
|
345
345
|
);
|
|
346
346
|
return r.displayName = Ke(e), r;
|
|
@@ -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" }]
|
|
@@ -390,7 +390,7 @@ const Qt = [
|
|
|
390
390
|
key: "18887p"
|
|
391
391
|
}
|
|
392
392
|
]
|
|
393
|
-
],
|
|
393
|
+
], $e = N("message-square", Qt);
|
|
394
394
|
const er = [
|
|
395
395
|
[
|
|
396
396
|
"path",
|
|
@@ -410,10 +410,10 @@ const rr = [
|
|
|
410
410
|
],
|
|
411
411
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
412
412
|
], nr = N("pencil", rr);
|
|
413
|
-
const
|
|
413
|
+
const ar = [
|
|
414
414
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
415
415
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
416
|
-
],
|
|
416
|
+
], sr = N("rotate-ccw", ar);
|
|
417
417
|
const or = [
|
|
418
418
|
[
|
|
419
419
|
"path",
|
|
@@ -531,43 +531,43 @@ const lr = [
|
|
|
531
531
|
const e = Pt(ht);
|
|
532
532
|
if (!e) throw new Error("useViewGate must be used within a ViewGateProvider");
|
|
533
533
|
return e;
|
|
534
|
-
},
|
|
534
|
+
}, De = "viewgate_enabled", pr = () => typeof window > "u" ? !1 : new URLSearchParams(window.location.search).has("viewgate") ? (sessionStorage.setItem(De, "true"), !0) : sessionStorage.getItem(De) === "true", En = ({
|
|
535
535
|
children: e,
|
|
536
536
|
language: t = "es",
|
|
537
537
|
apiKey: r,
|
|
538
538
|
baseUrl: n = "https://view-gate.vercel.app"
|
|
539
539
|
}) => {
|
|
540
|
-
const [
|
|
541
|
-
|
|
542
|
-
|
|
540
|
+
const [s, a] = j(!1), [i, d] = j([]);
|
|
541
|
+
Z(() => {
|
|
542
|
+
a(pr());
|
|
543
543
|
}, []);
|
|
544
544
|
const p = () => {
|
|
545
|
-
if (sessionStorage.removeItem(
|
|
545
|
+
if (sessionStorage.removeItem(De), a(!1), typeof window < "u") {
|
|
546
546
|
const m = new URL(window.location.href);
|
|
547
547
|
m.searchParams.delete("viewgate"), window.history.replaceState({}, "", m.toString());
|
|
548
548
|
}
|
|
549
549
|
}, u = (m, x) => {
|
|
550
|
-
const
|
|
551
|
-
d((
|
|
552
|
-
d((
|
|
550
|
+
const f = Date.now();
|
|
551
|
+
d((w) => [...w, { id: f, message: m, type: x }]), setTimeout(() => {
|
|
552
|
+
d((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,
|
|
562
562
|
hasActiveToasts: i.length > 0
|
|
563
563
|
}, children: [
|
|
564
564
|
e,
|
|
565
|
-
|
|
565
|
+
s && /* @__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)) })
|
|
@@ -581,8 +581,8 @@ function mr(e, t) {
|
|
|
581
581
|
return window.location.protocol + e;
|
|
582
582
|
if (e.match(/^[a-z]+:/i))
|
|
583
583
|
return e;
|
|
584
|
-
const r = document.implementation.createHTMLDocument(), n = r.createElement("base"),
|
|
585
|
-
return r.head.appendChild(n), r.body.appendChild(
|
|
584
|
+
const r = document.implementation.createHTMLDocument(), n = r.createElement("base"), s = r.createElement("a");
|
|
585
|
+
return r.head.appendChild(n), r.body.appendChild(s), t && (n.href = t), s.href = e, s.href;
|
|
586
586
|
}
|
|
587
587
|
const fr = /* @__PURE__ */ (() => {
|
|
588
588
|
let e = 0;
|
|
@@ -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 se = null;
|
|
602
602
|
function gt(e = {}) {
|
|
603
|
-
return
|
|
603
|
+
return se || (e.includeStyleProperties ? (se = e.includeStyleProperties, se) : (se = K(window.getComputedStyle(document.documentElement)), se));
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Re(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 = Re(e, "border-left-width"), r = Re(e, "border-right-width");
|
|
611
611
|
return e.clientWidth + t + r;
|
|
612
612
|
}
|
|
613
613
|
function gr(e) {
|
|
614
|
-
const t =
|
|
614
|
+
const t = Re(e, "border-top-width"), r = Re(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 je(e) {
|
|
635
635
|
return new Promise((t, r) => {
|
|
636
636
|
const n = new Image();
|
|
637
637
|
n.onload = () => {
|
|
@@ -645,8 +645,8 @@ async function wr(e) {
|
|
|
645
645
|
return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((t) => `data:image/svg+xml;charset=utf-8,${t}`);
|
|
646
646
|
}
|
|
647
647
|
async function vr(e, t, r) {
|
|
648
|
-
const n = "http://www.w3.org/2000/svg",
|
|
649
|
-
return
|
|
648
|
+
const n = "http://www.w3.org/2000/svg", s = document.createElementNS(n, "svg"), a = document.createElementNS(n, "foreignObject");
|
|
649
|
+
return s.setAttribute("width", `${t}`), s.setAttribute("height", `${r}`), s.setAttribute("viewBox", `0 0 ${t} ${r}`), a.setAttribute("width", "100%"), a.setAttribute("height", "100%"), a.setAttribute("x", "0"), a.setAttribute("y", "0"), a.setAttribute("externalResourcesRequired", "true"), s.appendChild(a), a.appendChild(e), wr(s);
|
|
650
650
|
}
|
|
651
651
|
const L = (e, t) => {
|
|
652
652
|
if (e instanceof t)
|
|
@@ -660,17 +660,17 @@ function br(e) {
|
|
|
660
660
|
}
|
|
661
661
|
function Cr(e, t) {
|
|
662
662
|
return gt(t).map((r) => {
|
|
663
|
-
const n = e.getPropertyValue(r),
|
|
664
|
-
return `${r}: ${n}${
|
|
663
|
+
const n = e.getPropertyValue(r), s = e.getPropertyPriority(r);
|
|
664
|
+
return `${r}: ${n}${s ? " !important" : ""};`;
|
|
665
665
|
}).join(" ");
|
|
666
666
|
}
|
|
667
667
|
function Er(e, t, r, n) {
|
|
668
|
-
const
|
|
669
|
-
return document.createTextNode(`${
|
|
668
|
+
const s = `.${e}:${t}`, a = r.cssText ? br(r) : Cr(r, n);
|
|
669
|
+
return document.createTextNode(`${s}{${a}}`);
|
|
670
670
|
}
|
|
671
671
|
function nt(e, t, r, n) {
|
|
672
|
-
const
|
|
673
|
-
if (
|
|
672
|
+
const s = window.getComputedStyle(e, r), a = s.getPropertyValue("content");
|
|
673
|
+
if (a === "" || a === "none")
|
|
674
674
|
return;
|
|
675
675
|
const i = fr();
|
|
676
676
|
try {
|
|
@@ -679,19 +679,19 @@ function nt(e, t, r, n) {
|
|
|
679
679
|
return;
|
|
680
680
|
}
|
|
681
681
|
const d = document.createElement("style");
|
|
682
|
-
d.appendChild(Er(i, r,
|
|
682
|
+
d.appendChild(Er(i, r, s, n)), t.appendChild(d);
|
|
683
683
|
}
|
|
684
684
|
function Sr(e, t, r) {
|
|
685
685
|
nt(e, t, ":before", r), nt(e, t, ":after", r);
|
|
686
686
|
}
|
|
687
|
-
const
|
|
688
|
-
woff:
|
|
689
|
-
woff2:
|
|
687
|
+
const at = "application/font-woff", st = "image/jpeg", kr = {
|
|
688
|
+
woff: at,
|
|
689
|
+
woff2: at,
|
|
690
690
|
ttf: "application/font-truetype",
|
|
691
691
|
eot: "application/vnd.ms-fontobject",
|
|
692
692
|
png: "image/png",
|
|
693
|
-
jpg:
|
|
694
|
-
jpeg:
|
|
693
|
+
jpg: st,
|
|
694
|
+
jpeg: st,
|
|
695
695
|
gif: "image/gif",
|
|
696
696
|
tiff: "image/tiff",
|
|
697
697
|
svg: "image/svg+xml",
|
|
@@ -708,7 +708,7 @@ function He(e) {
|
|
|
708
708
|
function jr(e) {
|
|
709
709
|
return e.split(/,/)[1];
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Fe(e) {
|
|
712
712
|
return e.search(/^(data:)/) !== -1;
|
|
713
713
|
}
|
|
714
714
|
function Or(e, t) {
|
|
@@ -718,58 +718,58 @@ async function xt(e, t, r) {
|
|
|
718
718
|
const n = await fetch(e, t);
|
|
719
719
|
if (n.status === 404)
|
|
720
720
|
throw new Error(`Resource "${n.url}" not found`);
|
|
721
|
-
const
|
|
722
|
-
return new Promise((
|
|
721
|
+
const s = await n.blob();
|
|
722
|
+
return new Promise((a, i) => {
|
|
723
723
|
const d = new FileReader();
|
|
724
724
|
d.onerror = i, d.onloadend = () => {
|
|
725
725
|
try {
|
|
726
|
-
|
|
726
|
+
a(r({ res: n, result: d.result }));
|
|
727
727
|
} catch (p) {
|
|
728
728
|
i(p);
|
|
729
729
|
}
|
|
730
|
-
}, d.readAsDataURL(
|
|
730
|
+
}, d.readAsDataURL(s);
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
const
|
|
733
|
+
const Le = {};
|
|
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 (Le[n] != null)
|
|
741
|
+
return Le[n];
|
|
742
742
|
r.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
|
|
743
|
-
let
|
|
743
|
+
let s;
|
|
744
744
|
try {
|
|
745
|
-
const
|
|
746
|
-
|
|
747
|
-
} catch (
|
|
748
|
-
|
|
745
|
+
const a = await xt(e, r.fetchRequestInit, ({ res: i, result: d }) => (t || (t = i.headers.get("Content-Type") || ""), jr(d)));
|
|
746
|
+
s = Or(a, t);
|
|
747
|
+
} catch (a) {
|
|
748
|
+
s = r.imagePlaceholder || "";
|
|
749
749
|
let i = `Failed to fetch resource: ${e}`;
|
|
750
|
-
|
|
750
|
+
a && (i = typeof a == "string" ? a : a.message), i && console.warn(i);
|
|
751
751
|
}
|
|
752
|
-
return
|
|
752
|
+
return Le[n] = s, s;
|
|
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) : je(t);
|
|
757
757
|
}
|
|
758
758
|
async function Vr(e, t) {
|
|
759
759
|
if (e.currentSrc) {
|
|
760
|
-
const
|
|
761
|
-
|
|
762
|
-
const d =
|
|
763
|
-
return
|
|
760
|
+
const a = document.createElement("canvas"), i = a.getContext("2d");
|
|
761
|
+
a.width = e.clientWidth, a.height = e.clientHeight, i?.drawImage(e, 0, 0, a.width, a.height);
|
|
762
|
+
const d = a.toDataURL();
|
|
763
|
+
return je(d);
|
|
764
764
|
}
|
|
765
|
-
const r = e.poster, n = He(r),
|
|
766
|
-
return
|
|
765
|
+
const r = e.poster, n = He(r), s = await We(r, n, t);
|
|
766
|
+
return je(s);
|
|
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 Oe(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
|
|
782
|
-
var n,
|
|
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
|
+
var n, s;
|
|
783
783
|
if (wt(t))
|
|
784
784
|
return t;
|
|
785
|
-
let
|
|
786
|
-
return
|
|
785
|
+
let a = [];
|
|
786
|
+
return $r(e) && e.assignedNodes ? a = K(e.assignedNodes()) : L(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? a = K(e.contentDocument.body.childNodes) : a = K(((s = e.shadowRoot) !== null && s !== void 0 ? s : e).childNodes), a.length === 0 || L(e, HTMLVideoElement) || await a.reduce((i, d) => i.then(() => Oe(d, r)).then((p) => {
|
|
787
787
|
p && t.appendChild(p);
|
|
788
788
|
}), Promise.resolve()), t;
|
|
789
789
|
}
|
|
@@ -791,50 +791,50 @@ function Lr(e, t, r) {
|
|
|
791
791
|
const n = t.style;
|
|
792
792
|
if (!n)
|
|
793
793
|
return;
|
|
794
|
-
const
|
|
795
|
-
|
|
796
|
-
let i =
|
|
797
|
-
|
|
794
|
+
const s = window.getComputedStyle(e);
|
|
795
|
+
s.cssText ? (n.cssText = s.cssText, n.transformOrigin = s.transformOrigin) : gt(r).forEach((a) => {
|
|
796
|
+
let i = s.getPropertyValue(a);
|
|
797
|
+
a === "font-size" && i.endsWith("px") && (i = `${Math.floor(parseFloat(i.substring(0, i.length - 2))) - 0.1}px`), L(e, HTMLIFrameElement) && a === "display" && i === "inline" && (i = "block"), a === "d" && t.getAttribute("d") && (i = `path(${t.getAttribute("d")})`), n.setProperty(a, i, s.getPropertyPriority(a));
|
|
798
798
|
});
|
|
799
799
|
}
|
|
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
|
-
const n = Array.from(t.children).find((
|
|
805
|
+
const n = Array.from(t.children).find((s) => e.value === s.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") : [];
|
|
814
814
|
if (r.length === 0)
|
|
815
815
|
return e;
|
|
816
816
|
const n = {};
|
|
817
|
-
for (let
|
|
818
|
-
const d = r[
|
|
817
|
+
for (let a = 0; a < r.length; a++) {
|
|
818
|
+
const d = r[a].getAttribute("xlink:href");
|
|
819
819
|
if (d) {
|
|
820
820
|
const p = e.querySelector(d), u = document.querySelector(d);
|
|
821
|
-
!p && u && !n[d] && (n[d] = await
|
|
821
|
+
!p && u && !n[d] && (n[d] = await Oe(u, t, !0));
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
const
|
|
825
|
-
if (
|
|
826
|
-
const
|
|
827
|
-
i.setAttribute("xmlns",
|
|
828
|
-
const d = document.createElementNS(
|
|
824
|
+
const s = Object.values(n);
|
|
825
|
+
if (s.length) {
|
|
826
|
+
const a = "http://www.w3.org/1999/xhtml", i = document.createElementNS(a, "svg");
|
|
827
|
+
i.setAttribute("xmlns", a), i.style.position = "absolute", i.style.width = "0", i.style.height = "0", i.style.overflow = "hidden", i.style.display = "none";
|
|
828
|
+
const d = document.createElementNS(a, "defs");
|
|
829
829
|
i.appendChild(d);
|
|
830
|
-
for (let p = 0; p <
|
|
831
|
-
d.appendChild(
|
|
830
|
+
for (let p = 0; p < s.length; p++)
|
|
831
|
+
d.appendChild(s[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 Oe(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) {
|
|
@@ -843,13 +843,13 @@ function Hr(e) {
|
|
|
843
843
|
}
|
|
844
844
|
function Wr(e) {
|
|
845
845
|
const t = [];
|
|
846
|
-
return e.replace(vt, (r, n,
|
|
846
|
+
return e.replace(vt, (r, n, s) => (t.push(s), r)), t.filter((r) => !Fe(r));
|
|
847
847
|
}
|
|
848
|
-
async function Br(e, t, r, n,
|
|
848
|
+
async function Br(e, t, r, n, s) {
|
|
849
849
|
try {
|
|
850
|
-
const
|
|
850
|
+
const a = r ? mr(t, r) : t, i = He(t);
|
|
851
851
|
let d;
|
|
852
|
-
return
|
|
852
|
+
return s || (d = await We(a, i, n)), e.replace(Hr(t), `$1${d}$3`);
|
|
853
853
|
} catch {
|
|
854
854
|
}
|
|
855
855
|
return e;
|
|
@@ -857,10 +857,10 @@ async function Br(e, t, r, n, a) {
|
|
|
857
857
|
function Ur(e, { preferredFontFormat: t }) {
|
|
858
858
|
return t ? e.replace(Fr, (r) => {
|
|
859
859
|
for (; ; ) {
|
|
860
|
-
const [n, ,
|
|
861
|
-
if (!
|
|
860
|
+
const [n, , s] = Dr.exec(r) || [];
|
|
861
|
+
if (!s)
|
|
862
862
|
return "";
|
|
863
|
-
if (
|
|
863
|
+
if (s === t)
|
|
864
864
|
return `src: ${n};`;
|
|
865
865
|
}
|
|
866
866
|
}) : e;
|
|
@@ -872,39 +872,39 @@ 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((
|
|
875
|
+
return Wr(n).reduce((a, i) => a.then((d) => Br(d, i, t, r)), Promise.resolve(n));
|
|
876
876
|
}
|
|
877
|
-
async function
|
|
877
|
+
async function oe(e, t, r) {
|
|
878
878
|
var n;
|
|
879
|
-
const
|
|
880
|
-
if (
|
|
881
|
-
const
|
|
882
|
-
return t.style.setProperty(e,
|
|
879
|
+
const s = (n = t.style) === null || n === void 0 ? void 0 : n.getPropertyValue(e);
|
|
880
|
+
if (s) {
|
|
881
|
+
const a = await Ct(s, null, r);
|
|
882
|
+
return t.style.setProperty(e, a, t.style.getPropertyPriority(e)), !0;
|
|
883
883
|
}
|
|
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);
|
|
891
|
-
if (!(r && !
|
|
891
|
+
if (!(r && !Fe(e.src)) && !(L(e, SVGImageElement) && !Fe(e.href.baseVal)))
|
|
892
892
|
return;
|
|
893
|
-
const n = r ? e.src : e.href.baseVal,
|
|
894
|
-
await new Promise((
|
|
895
|
-
e.onload =
|
|
893
|
+
const n = r ? e.src : e.href.baseVal, s = await We(n, He(n), t);
|
|
894
|
+
await new Promise((a, i) => {
|
|
895
|
+
e.onload = a, e.onerror = t.onImageErrorHandler ? (...p) => {
|
|
896
896
|
try {
|
|
897
|
-
|
|
897
|
+
a(t.onImageErrorHandler(...p));
|
|
898
898
|
} catch (u) {
|
|
899
899
|
i(u);
|
|
900
900
|
}
|
|
901
901
|
} : i;
|
|
902
902
|
const d = e;
|
|
903
|
-
d.decode && (d.decode =
|
|
903
|
+
d.decode && (d.decode = a), d.loading === "lazy" && (d.loading = "eager"), r ? (e.srcset = "", e.src = s) : e.href.baseVal = s;
|
|
904
904
|
});
|
|
905
905
|
}
|
|
906
906
|
async function Xr(e, t) {
|
|
907
|
-
const n =
|
|
907
|
+
const n = K(e.childNodes).map((s) => Et(s, t));
|
|
908
908
|
await Promise.all(n).then(() => e);
|
|
909
909
|
}
|
|
910
910
|
async function Et(e, t) {
|
|
@@ -914,8 +914,8 @@ function Jr(e, t) {
|
|
|
914
914
|
const { style: r } = e;
|
|
915
915
|
t.backgroundColor && (r.backgroundColor = t.backgroundColor), t.width && (r.width = `${t.width}px`), t.height && (r.height = `${t.height}px`);
|
|
916
916
|
const n = t.style;
|
|
917
|
-
return n != null && Object.keys(n).forEach((
|
|
918
|
-
r[
|
|
917
|
+
return n != null && Object.keys(n).forEach((s) => {
|
|
918
|
+
r[s] = n[s];
|
|
919
919
|
}), e;
|
|
920
920
|
}
|
|
921
921
|
const ot = {};
|
|
@@ -928,77 +928,77 @@ async function it(e) {
|
|
|
928
928
|
}
|
|
929
929
|
async function ct(e, t) {
|
|
930
930
|
let r = e.cssText;
|
|
931
|
-
const n = /url\(["']?([^"')]+)["']?\)/g,
|
|
931
|
+
const n = /url\(["']?([^"')]+)["']?\)/g, a = (r.match(/url\([^)]+\)/g) || []).map(async (i) => {
|
|
932
932
|
let d = i.replace(n, "$1");
|
|
933
933
|
return d.startsWith("https://") || (d = new URL(d, e.url).href), xt(d, t.fetchRequestInit, ({ result: p }) => (r = r.replace(i, `url(${p})`), [i, p]));
|
|
934
934
|
});
|
|
935
|
-
return Promise.all(
|
|
935
|
+
return Promise.all(a).then(() => r);
|
|
936
936
|
}
|
|
937
937
|
function lt(e) {
|
|
938
938
|
if (e == null)
|
|
939
939
|
return [];
|
|
940
940
|
const t = [], r = /(\/\*[\s\S]*?\*\/)/gi;
|
|
941
941
|
let n = e.replace(r, "");
|
|
942
|
-
const
|
|
942
|
+
const s = new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})", "gi");
|
|
943
943
|
for (; ; ) {
|
|
944
|
-
const p =
|
|
944
|
+
const p = s.exec(n);
|
|
945
945
|
if (p === null)
|
|
946
946
|
break;
|
|
947
947
|
t.push(p[0]);
|
|
948
948
|
}
|
|
949
|
-
n = n.replace(
|
|
950
|
-
const
|
|
949
|
+
n = n.replace(s, "");
|
|
950
|
+
const a = /@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi, i = "((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})", d = new RegExp(i, "gi");
|
|
951
951
|
for (; ; ) {
|
|
952
|
-
let p =
|
|
952
|
+
let p = a.exec(n);
|
|
953
953
|
if (p === null) {
|
|
954
954
|
if (p = d.exec(n), p === null)
|
|
955
955
|
break;
|
|
956
|
-
|
|
956
|
+
a.lastIndex = d.lastIndex;
|
|
957
957
|
} else
|
|
958
|
-
d.lastIndex =
|
|
958
|
+
d.lastIndex = a.lastIndex;
|
|
959
959
|
t.push(p[0]);
|
|
960
960
|
}
|
|
961
961
|
return t;
|
|
962
962
|
}
|
|
963
963
|
async function Zr(e, t) {
|
|
964
964
|
const r = [], n = [];
|
|
965
|
-
return e.forEach((
|
|
966
|
-
if ("cssRules" in
|
|
965
|
+
return e.forEach((s) => {
|
|
966
|
+
if ("cssRules" in s)
|
|
967
967
|
try {
|
|
968
|
-
|
|
969
|
-
if (
|
|
968
|
+
K(s.cssRules || []).forEach((a, i) => {
|
|
969
|
+
if (a.type === CSSRule.IMPORT_RULE) {
|
|
970
970
|
let d = i + 1;
|
|
971
|
-
const p =
|
|
971
|
+
const p = a.href, u = it(p).then((v) => ct(v, t)).then((v) => lt(v).forEach((m) => {
|
|
972
972
|
try {
|
|
973
|
-
|
|
973
|
+
s.insertRule(m, m.startsWith("@import") ? d += 1 : s.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
|
-
} catch (
|
|
986
|
+
} catch (a) {
|
|
987
987
|
const i = e.find((d) => d.href == null) || document.styleSheets[0];
|
|
988
|
-
|
|
988
|
+
s.href != null && n.push(it(s.href).then((d) => ct(d, t)).then((d) => lt(d).forEach((p) => {
|
|
989
989
|
i.insertRule(p, i.cssRules.length);
|
|
990
990
|
})).catch((d) => {
|
|
991
991
|
console.error("Error loading remote stylesheet", d);
|
|
992
|
-
})), console.error("Error inlining remote css file",
|
|
992
|
+
})), console.error("Error inlining remote css file", a);
|
|
993
993
|
}
|
|
994
|
-
}), Promise.all(n).then(() => (e.forEach((
|
|
995
|
-
if ("cssRules" in
|
|
994
|
+
}), Promise.all(n).then(() => (e.forEach((s) => {
|
|
995
|
+
if ("cssRules" in s)
|
|
996
996
|
try {
|
|
997
|
-
|
|
998
|
-
r.push(
|
|
997
|
+
K(s.cssRules || []).forEach((a) => {
|
|
998
|
+
r.push(a);
|
|
999
999
|
});
|
|
1000
|
-
} catch (
|
|
1001
|
-
console.error(`Error while reading CSS rules from ${
|
|
1000
|
+
} catch (a) {
|
|
1001
|
+
console.error(`Error while reading CSS rules from ${s.href}`, a);
|
|
1002
1002
|
}
|
|
1003
1003
|
}), r));
|
|
1004
1004
|
}
|
|
@@ -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) {
|
|
@@ -1017,41 +1017,41 @@ function St(e) {
|
|
|
1017
1017
|
function en(e) {
|
|
1018
1018
|
const t = /* @__PURE__ */ new Set();
|
|
1019
1019
|
function r(n) {
|
|
1020
|
-
(n.style.fontFamily || getComputedStyle(n).fontFamily).split(",").forEach((
|
|
1021
|
-
t.add(St(
|
|
1022
|
-
}), Array.from(n.children).forEach((
|
|
1023
|
-
|
|
1020
|
+
(n.style.fontFamily || getComputedStyle(n).fontFamily).split(",").forEach((a) => {
|
|
1021
|
+
t.add(St(a));
|
|
1022
|
+
}), Array.from(n.children).forEach((a) => {
|
|
1023
|
+
a instanceof HTMLElement && r(a);
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
1026
|
return r(e), t;
|
|
1027
1027
|
}
|
|
1028
1028
|
async function tn(e, t) {
|
|
1029
1029
|
const r = await Qr(e, t), n = en(e);
|
|
1030
|
-
return (await Promise.all(r.filter((
|
|
1031
|
-
const i =
|
|
1032
|
-
return Ct(
|
|
1030
|
+
return (await Promise.all(r.filter((a) => n.has(St(a.style.fontFamily))).map((a) => {
|
|
1031
|
+
const i = a.parentStyleSheet ? a.parentStyleSheet.href : null;
|
|
1032
|
+
return Ct(a.cssText, i, t);
|
|
1033
1033
|
}))).join(`
|
|
1034
1034
|
`);
|
|
1035
1035
|
}
|
|
1036
1036
|
async function rn(e, t) {
|
|
1037
1037
|
const r = t.fontEmbedCSS != null ? t.fontEmbedCSS : t.skipFonts ? null : await tn(e, t);
|
|
1038
1038
|
if (r) {
|
|
1039
|
-
const n = document.createElement("style"),
|
|
1040
|
-
n.appendChild(
|
|
1039
|
+
const n = document.createElement("style"), s = document.createTextNode(r);
|
|
1040
|
+
n.appendChild(s), e.firstChild ? e.insertBefore(n, e.firstChild) : e.appendChild(n);
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
async function nn(e, t = {}) {
|
|
1044
|
-
const { width: r, height: n } = yt(e, t),
|
|
1045
|
-
return await rn(
|
|
1044
|
+
const { width: r, height: n } = yt(e, t), s = await Oe(e, t, !0);
|
|
1045
|
+
return await rn(s, t), await Et(s, t), Jr(s, t), await vr(s, r, n);
|
|
1046
1046
|
}
|
|
1047
|
-
async function
|
|
1048
|
-
const { width: r, height: n } = yt(e, t),
|
|
1049
|
-
return i.width = u * p, i.height =
|
|
1047
|
+
async function an(e, t = {}) {
|
|
1048
|
+
const { width: r, height: n } = yt(e, t), s = await nn(e, t), a = await je(s), i = document.createElement("canvas"), d = 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 && (d.fillStyle = t.backgroundColor, d.fillRect(0, 0, i.width, i.height)), d.drawImage(a, 0, 0, i.width, i.height), i;
|
|
1050
1050
|
}
|
|
1051
1051
|
async function dt(e, t = {}) {
|
|
1052
|
-
return (await
|
|
1052
|
+
return (await an(e, t)).toDataURL();
|
|
1053
1053
|
}
|
|
1054
|
-
const
|
|
1054
|
+
const _e = 2147483647, Ne = _e, Me = 2e6, sn = _e - 10, on = _e - 5, cn = _e - 15, Se = "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) => {
|
|
@@ -1085,10 +1085,10 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1085
1085
|
neighborCount: e.parentElement?.children.length || 0
|
|
1086
1086
|
}, n = e.getAttribute("aria-label");
|
|
1087
1087
|
n && (r.ariaLabel = n);
|
|
1088
|
-
const
|
|
1089
|
-
|
|
1090
|
-
const
|
|
1091
|
-
return
|
|
1088
|
+
const s = e.getAttribute("role");
|
|
1089
|
+
s && (r.role = s);
|
|
1090
|
+
const a = e.getAttribute("name");
|
|
1091
|
+
return a && (r.name = a), r;
|
|
1092
1092
|
}, mn = /* @__PURE__ */ (() => {
|
|
1093
1093
|
let e = null, t = null;
|
|
1094
1094
|
return (r) => {
|
|
@@ -1097,32 +1097,32 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1097
1097
|
try {
|
|
1098
1098
|
if (e || (e = document.createElement("canvas"), e.width = 1, e.height = 1), t || (t = e.getContext("2d", { willReadFrequently: !0 })), t) {
|
|
1099
1099
|
t.fillStyle = "#000000", t.fillStyle = r;
|
|
1100
|
-
const
|
|
1101
|
-
if (
|
|
1102
|
-
return
|
|
1100
|
+
const a = t.fillStyle;
|
|
1101
|
+
if (a && !a.includes("oklch") && !a.includes("oklab"))
|
|
1102
|
+
return a;
|
|
1103
1103
|
}
|
|
1104
1104
|
const n = document.createElement("div");
|
|
1105
1105
|
n.style.color = r, document.body.appendChild(n);
|
|
1106
|
-
const
|
|
1107
|
-
return document.body.removeChild(n),
|
|
1106
|
+
const s = getComputedStyle(n).color;
|
|
1107
|
+
return document.body.removeChild(n), s && !s.includes("oklch") ? s : "rgb(0,0,0)";
|
|
1108
1108
|
} catch {
|
|
1109
1109
|
return "rgb(0,0,0)";
|
|
1110
1110
|
}
|
|
1111
1111
|
return r;
|
|
1112
1112
|
};
|
|
1113
|
-
})(), ut = (e, t, r, n) => new Promise((
|
|
1114
|
-
const
|
|
1115
|
-
|
|
1113
|
+
})(), ut = (e, t, r, n) => new Promise((s) => {
|
|
1114
|
+
const a = new Image();
|
|
1115
|
+
a.onload = () => {
|
|
1116
1116
|
const i = document.createElement("canvas"), d = window.devicePixelRatio || 1, p = t.width + r * 2, u = t.height + r * 2;
|
|
1117
1117
|
i.width = p * d, i.height = u * d;
|
|
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,
|
|
1118
|
+
const v = i.getContext("2d");
|
|
1119
|
+
if (v) {
|
|
1120
|
+
v.scale(d, d);
|
|
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 > a.width && (f = a.width - m, z = f / n), x < 0 && (P = Math.abs(x) / n, w += x, D -= P, x = 0), x + w > a.height && (w = a.height - x, D = w / n), v.fillStyle = "#ffffff", v.fillRect(0, 0, p, u), f > 0 && w > 0 && v.drawImage(a, m, x, f, w, T, P, z, D);
|
|
1123
1123
|
}
|
|
1124
|
-
|
|
1125
|
-
},
|
|
1124
|
+
s(i.toDataURL("image/png"));
|
|
1125
|
+
}, a.onerror = () => s(""), a.src = e;
|
|
1126
1126
|
}), fn = (e) => {
|
|
1127
1127
|
const t = window.getComputedStyle(e), r = {};
|
|
1128
1128
|
return [
|
|
@@ -1136,50 +1136,50 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1136
1136
|
"width",
|
|
1137
1137
|
"height",
|
|
1138
1138
|
"z-index"
|
|
1139
|
-
].forEach((
|
|
1140
|
-
const
|
|
1141
|
-
r[
|
|
1139
|
+
].forEach((s) => {
|
|
1140
|
+
const a = t.getPropertyValue(s);
|
|
1141
|
+
r[s] = mn(a);
|
|
1142
1142
|
}), r;
|
|
1143
1143
|
}, hn = (e) => {
|
|
1144
|
-
const r = Object.keys(e).find((
|
|
1144
|
+
const r = Object.keys(e).find((a) => a.startsWith("__reactFiber$") || a.startsWith("__reactInternalInstance$"));
|
|
1145
1145
|
if (!r) return "";
|
|
1146
1146
|
const n = [];
|
|
1147
|
-
let
|
|
1148
|
-
for (;
|
|
1149
|
-
const
|
|
1150
|
-
if (typeof
|
|
1151
|
-
const i =
|
|
1147
|
+
let s = e[r];
|
|
1148
|
+
for (; s; ) {
|
|
1149
|
+
const a = s.type;
|
|
1150
|
+
if (typeof a == "function") {
|
|
1151
|
+
const i = a.displayName || a.name;
|
|
1152
1152
|
i && !i.includes("ViewGate") && !n.includes(i) && n.unshift(i);
|
|
1153
1153
|
}
|
|
1154
|
-
|
|
1154
|
+
s = s.return;
|
|
1155
1155
|
}
|
|
1156
1156
|
return n.join(" > ") || "Generic Component";
|
|
1157
1157
|
}, kt = (e) => {
|
|
1158
1158
|
if (!e) return !1;
|
|
1159
1159
|
const t = window.getComputedStyle(e), r = e.getBoundingClientRect(), n = e.getAttribute("role");
|
|
1160
1160
|
if (n && ["listbox", "menu", "combobox", "tooltip", "option"].includes(n)) return !1;
|
|
1161
|
-
const
|
|
1162
|
-
return r.width <
|
|
1163
|
-
},
|
|
1161
|
+
const a = 120;
|
|
1162
|
+
return r.width < a && r.height < a || 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
|
+
}, 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;
|
|
1167
1167
|
let r = e.parentElement;
|
|
1168
1168
|
for (; r; ) {
|
|
1169
|
-
const
|
|
1170
|
-
if (
|
|
1169
|
+
const s = window.getComputedStyle(r);
|
|
1170
|
+
if (s.display === "none" || s.visibility === "hidden" || s.opacity === "0") return !1;
|
|
1171
1171
|
r = r.parentElement;
|
|
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
|
+
}, ke = (e, t = document) => {
|
|
1176
1176
|
const r = t.querySelector(e);
|
|
1177
1177
|
if (r) return r;
|
|
1178
1178
|
const n = t.querySelectorAll("*");
|
|
1179
|
-
for (const
|
|
1180
|
-
const
|
|
1181
|
-
if (
|
|
1182
|
-
const i =
|
|
1179
|
+
for (const s of Array.from(n)) {
|
|
1180
|
+
const a = s.shadowRoot;
|
|
1181
|
+
if (a) {
|
|
1182
|
+
const i = ke(e, a);
|
|
1183
1183
|
if (i) return i;
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
@@ -1196,24 +1196,32 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1196
1196
|
if (!e.tag) return null;
|
|
1197
1197
|
const t = document.getElementsByTagName(e.tag);
|
|
1198
1198
|
let r = null, n = 0;
|
|
1199
|
-
for (let
|
|
1200
|
-
const
|
|
1199
|
+
for (let s = 0; s < t.length; s++) {
|
|
1200
|
+
const a = t[s];
|
|
1201
1201
|
let i = 0;
|
|
1202
|
-
|
|
1202
|
+
a.innerText?.includes(e.text.slice(0, 20)) && (i += 4), e.fingerprint?.classHash && a.className.includes(e.fingerprint.classHash) && (i += 2), e.fingerprint?.ariaLabel && a.getAttribute("aria-label") === e.fingerprint.ariaLabel && (i += 3), e.fingerprint?.role && a.getAttribute("role") === e.fingerprint.role && (i += 2), e.parentContext && (a.parentElement?.innerText || "").includes(e.parentContext.slice(0, 30)) && (i += 2), e.fingerprint?.neighborCount === a.parentElement?.children.length && (i += 1), e.fingerprint?.parentTag === a.parentElement?.tagName.toLowerCase() && (i += 1), i > n && i >= 5 && (n = i, r = a);
|
|
1203
1203
|
}
|
|
1204
1204
|
return r;
|
|
1205
1205
|
}, yn = (e, t) => {
|
|
1206
1206
|
if (t) {
|
|
1207
|
-
const n =
|
|
1208
|
-
if (n
|
|
1207
|
+
const n = ke(`[${Se}="${t}"]`);
|
|
1208
|
+
if (n)
|
|
1209
|
+
return ye(n) ? n : null;
|
|
1209
1210
|
}
|
|
1210
|
-
let r =
|
|
1211
|
-
if (r
|
|
1211
|
+
let r = ke(e.selector);
|
|
1212
|
+
if (r && ye(r))
|
|
1213
|
+
if (e.metadata?.isModal && !r.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content'))
|
|
1214
|
+
r = null;
|
|
1215
|
+
else
|
|
1216
|
+
return r;
|
|
1212
1217
|
if (e.fallbackSelectors) {
|
|
1213
1218
|
for (const n of e.fallbackSelectors)
|
|
1214
|
-
if (r =
|
|
1219
|
+
if (r = ke(n), r && ye(r)) {
|
|
1220
|
+
if (e.metadata?.isModal && !r.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')) continue;
|
|
1221
|
+
return r;
|
|
1222
|
+
}
|
|
1215
1223
|
}
|
|
1216
|
-
return r = gn(e), r
|
|
1224
|
+
return r = gn(e), r && ye(r) ? e.metadata?.isModal && !r.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content') ? null : r : null;
|
|
1217
1225
|
}, Ie = (e) => ({
|
|
1218
1226
|
tag: e.tagName.toLowerCase(),
|
|
1219
1227
|
text: (e.innerText || e.getAttribute("placeholder") || "").slice(0, 50).trim(),
|
|
@@ -1222,12 +1230,12 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1222
1230
|
}), xn = (e) => {
|
|
1223
1231
|
const t = e.parentElement;
|
|
1224
1232
|
if (!t) return;
|
|
1225
|
-
const r = Array.from(t.children).filter((i) => i !== e).slice(0, 5).map((i) => Ie(i)), n = Array.from(t.children),
|
|
1226
|
-
let
|
|
1227
|
-
return
|
|
1233
|
+
const r = Array.from(t.children).filter((i) => i !== e).slice(0, 5).map((i) => Ie(i)), n = Array.from(t.children), s = n.indexOf(e);
|
|
1234
|
+
let a = "middle";
|
|
1235
|
+
return s === 0 && (a = "start"), s === n.length - 1 && (a = "end"), {
|
|
1228
1236
|
target: {
|
|
1229
1237
|
...Ie(e),
|
|
1230
|
-
location: `${
|
|
1238
|
+
location: `${a} of ${t.tagName.toLowerCase()}`
|
|
1231
1239
|
},
|
|
1232
1240
|
parent: Ie(t),
|
|
1233
1241
|
siblings: r
|
|
@@ -1242,39 +1250,45 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1242
1250
|
}
|
|
1243
1251
|
r = r.parentElement;
|
|
1244
1252
|
}
|
|
1245
|
-
const n = hn(e),
|
|
1253
|
+
const n = hn(e), s = [], a = [], i = (m) => {
|
|
1246
1254
|
const x = [];
|
|
1247
|
-
let
|
|
1248
|
-
for (;
|
|
1249
|
-
let
|
|
1250
|
-
|
|
1251
|
-
const T =
|
|
1252
|
-
T &&
|
|
1253
|
-
const P =
|
|
1254
|
-
P &&
|
|
1255
|
-
const z =
|
|
1255
|
+
let f = m;
|
|
1256
|
+
for (; f && f.nodeType === Node.ELEMENT_NODE; ) {
|
|
1257
|
+
let w = f.nodeName.toLowerCase();
|
|
1258
|
+
a.unshift(w);
|
|
1259
|
+
const T = f.id && !f.id.startsWith("__") ? f.id : null;
|
|
1260
|
+
T && s.push(`#${T}`);
|
|
1261
|
+
const P = f.getAttribute("data-testid") || f.getAttribute("data-qa");
|
|
1262
|
+
P && s.push(`[data-testid="${P}"]`);
|
|
1263
|
+
const z = f.getAttribute("placeholder"), D = f.getAttribute("aria-label"), A = f.getAttribute("role"), F = f.getAttribute("name"), _ = f.getAttribute("title");
|
|
1256
1264
|
if (P) {
|
|
1257
|
-
|
|
1265
|
+
w = `[${f.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${P}"]`, x.unshift(w);
|
|
1258
1266
|
break;
|
|
1259
1267
|
} else if (T) {
|
|
1260
|
-
|
|
1268
|
+
w = "#" + T, x.unshift(w);
|
|
1261
1269
|
break;
|
|
1262
1270
|
} else if (z) {
|
|
1263
|
-
|
|
1271
|
+
w = `${f.localName}[placeholder="${z}"]`, x.unshift(w);
|
|
1264
1272
|
break;
|
|
1265
1273
|
} else if (D) {
|
|
1266
|
-
|
|
1274
|
+
w = `${f.localName}[aria-label="${D}"]`, x.unshift(w);
|
|
1267
1275
|
break;
|
|
1268
1276
|
} else if (A) {
|
|
1269
|
-
|
|
1277
|
+
w = `${f.localName}[role="${A}"]`, x.unshift(w);
|
|
1278
|
+
break;
|
|
1279
|
+
} else if (F) {
|
|
1280
|
+
w = `${f.localName}[name="${F}"]`, x.unshift(w);
|
|
1281
|
+
break;
|
|
1282
|
+
} else if (_) {
|
|
1283
|
+
w = `${f.localName}[title="${_}"]`, x.unshift(w);
|
|
1270
1284
|
break;
|
|
1271
1285
|
} else {
|
|
1272
|
-
let
|
|
1273
|
-
for (;
|
|
1274
|
-
|
|
1275
|
-
|
|
1286
|
+
let W = f, $ = 1;
|
|
1287
|
+
for (; W.previousElementSibling; )
|
|
1288
|
+
W = W.previousElementSibling, W.nodeName.toLowerCase() === f.nodeName.toLowerCase() && $++;
|
|
1289
|
+
$ > 1 && (w += `:nth-of-type(${$})`);
|
|
1276
1290
|
}
|
|
1277
|
-
x.unshift(
|
|
1291
|
+
x.unshift(w), f = f.parentElement;
|
|
1278
1292
|
}
|
|
1279
1293
|
return x.join(" > ");
|
|
1280
1294
|
}, d = kt(e.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')), p = i(e), u = {};
|
|
@@ -1282,7 +1296,7 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1282
1296
|
const x = e.getAttribute(m);
|
|
1283
1297
|
x && (u[m] = x);
|
|
1284
1298
|
});
|
|
1285
|
-
const
|
|
1299
|
+
const v = `${e.tagName.toLowerCase()}-${(e.innerText || "").slice(0, 20).replace(/\s+/g, "_")}-${p.split(" > ").slice(-1)}`;
|
|
1286
1300
|
return {
|
|
1287
1301
|
tag: e.tagName.toLowerCase(),
|
|
1288
1302
|
id: e.id || "",
|
|
@@ -1292,11 +1306,11 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1292
1306
|
outerHtml: e.outerHTML,
|
|
1293
1307
|
parentContext: (e.parentElement?.innerText || "").slice(0, 150).trim(),
|
|
1294
1308
|
componentPath: n,
|
|
1295
|
-
signature:
|
|
1309
|
+
signature: v,
|
|
1296
1310
|
source: t,
|
|
1297
1311
|
attributes: u,
|
|
1298
|
-
fallbackSelectors: [...new Set(
|
|
1299
|
-
domPath:
|
|
1312
|
+
fallbackSelectors: [...new Set(s)].slice(0, 5),
|
|
1313
|
+
domPath: a.slice(-10),
|
|
1300
1314
|
viewportSize: { width: window.innerWidth, height: window.innerHeight },
|
|
1301
1315
|
uiContext: xn(e),
|
|
1302
1316
|
fingerprint: pn(e),
|
|
@@ -1310,242 +1324,238 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1310
1324
|
}
|
|
1311
1325
|
};
|
|
1312
1326
|
}, vn = () => {
|
|
1313
|
-
const { addToast: e, language: t, t: r, apiKey: n, baseUrl:
|
|
1327
|
+
const { addToast: e, language: t, t: r, apiKey: n, baseUrl: s, disableViewGate: a, hasActiveToasts: i } = ur(), [d, 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), [xe, Be] = j(!1), [ce, te] = j(!1), [we, ve] = j({}), [B, re] = j(null), [Q, le] = j(!1), [U, be] = j(() => {
|
|
1314
1328
|
if (typeof window > "u") return { top: 24, right: 24 };
|
|
1315
1329
|
const l = localStorage.getItem("vg-exit-pos");
|
|
1316
1330
|
return l ? JSON.parse(l) : { top: 24, right: 24 };
|
|
1317
|
-
}), [c,
|
|
1331
|
+
}), [c, y] = j(!1), b = ge(null), [k, ne] = j(() => {
|
|
1318
1332
|
if (typeof window > "u") return { bottom: 30, right: 30 };
|
|
1319
1333
|
const l = localStorage.getItem("vg-bar-pos");
|
|
1320
1334
|
return l ? JSON.parse(l) : { bottom: 30, right: 30 };
|
|
1321
|
-
}), [q, O] = j(!1), V =
|
|
1335
|
+
}), [q, O] = j(!1), V = ge(null), de = (l) => {
|
|
1322
1336
|
l.preventDefault(), l.stopPropagation();
|
|
1323
|
-
const
|
|
1324
|
-
|
|
1337
|
+
const h = l.currentTarget.parentElement?.getBoundingClientRect();
|
|
1338
|
+
h && (y(!0), b.current = {
|
|
1325
1339
|
x: l.clientX,
|
|
1326
1340
|
y: l.clientY,
|
|
1327
1341
|
top: U.top,
|
|
1328
1342
|
right: U.right,
|
|
1329
|
-
width:
|
|
1330
|
-
height:
|
|
1343
|
+
width: h.width,
|
|
1344
|
+
height: h.height
|
|
1331
1345
|
});
|
|
1332
|
-
},
|
|
1346
|
+
}, Te = (l) => {
|
|
1333
1347
|
l.preventDefault(), l.stopPropagation();
|
|
1334
|
-
const
|
|
1335
|
-
|
|
1348
|
+
const h = l.currentTarget.parentElement?.getBoundingClientRect();
|
|
1349
|
+
h && (O(!0), V.current = {
|
|
1336
1350
|
x: l.clientX,
|
|
1337
1351
|
y: l.clientY,
|
|
1338
1352
|
bottom: k.bottom,
|
|
1339
1353
|
right: k.right,
|
|
1340
|
-
width:
|
|
1341
|
-
height:
|
|
1354
|
+
width: h.width,
|
|
1355
|
+
height: h.height
|
|
1342
1356
|
});
|
|
1343
1357
|
};
|
|
1344
|
-
|
|
1358
|
+
Z(() => {
|
|
1345
1359
|
if (!c && !q) return;
|
|
1346
|
-
const l = (
|
|
1347
|
-
if (c &&
|
|
1348
|
-
const
|
|
1349
|
-
let
|
|
1360
|
+
const l = (g) => {
|
|
1361
|
+
if (c && b.current) {
|
|
1362
|
+
const G = g.clientX - b.current.x, C = g.clientY - b.current.y;
|
|
1363
|
+
let E = b.current.top + C, S = b.current.right - G;
|
|
1350
1364
|
const R = 10;
|
|
1351
|
-
|
|
1365
|
+
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)), be({ top: E, right: S });
|
|
1352
1366
|
}
|
|
1353
1367
|
if (q && V.current) {
|
|
1354
|
-
const
|
|
1355
|
-
let
|
|
1368
|
+
const G = g.clientX - V.current.x, C = g.clientY - V.current.y;
|
|
1369
|
+
let E = V.current.bottom - C, S = V.current.right - G;
|
|
1356
1370
|
const R = 10;
|
|
1357
|
-
|
|
1371
|
+
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
1372
|
}
|
|
1359
|
-
},
|
|
1360
|
-
c && (
|
|
1373
|
+
}, h = () => {
|
|
1374
|
+
c && (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
1375
|
};
|
|
1362
|
-
return window.addEventListener("mousemove", l), window.addEventListener("mouseup",
|
|
1363
|
-
window.removeEventListener("mousemove", l), window.removeEventListener("mouseup",
|
|
1376
|
+
return window.addEventListener("mousemove", l), window.addEventListener("mouseup", h), () => {
|
|
1377
|
+
window.removeEventListener("mousemove", l), window.removeEventListener("mouseup", h);
|
|
1364
1378
|
};
|
|
1365
1379
|
}, [c, q, U, k]);
|
|
1366
|
-
const [Ue,
|
|
1367
|
-
|
|
1368
|
-
const l = {},
|
|
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))
|
|
1380
|
+
const [Ue, Ve] = j(null), [qe, Ye] = j(""), [jt, Ot] = j({}), ae = ge(null), ue = ge(null), pe = Ce(() => {
|
|
1381
|
+
ue.current || (ue.current = requestAnimationFrame(() => {
|
|
1382
|
+
const l = {}, g = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((C) => kt(C) && ye(C)), G = !!g;
|
|
1383
|
+
_.forEach((C) => {
|
|
1384
|
+
if (!C.reference) return;
|
|
1385
|
+
const E = yn(C.reference, C._id), S = !!C.reference.metadata?.isModal;
|
|
1386
|
+
if (E) {
|
|
1387
|
+
const R = E.getAttribute(Se);
|
|
1388
|
+
R ? R !== C._id && (console.warn(`Element already tagged with ${R}, skipping ${C._id}`), R.length < 10 && E.setAttribute(Se, C._id)) : E.setAttribute(Se, C._id);
|
|
1389
|
+
let Y = !1;
|
|
1390
|
+
if (G ? Y = g.contains(E) : Y = !S, !Y) return;
|
|
1391
|
+
const M = E.getBoundingClientRect(), me = M.left + M.width / 2, X = M.top + M.height / 2;
|
|
1392
|
+
if (me >= 0 && me <= window.innerWidth && X >= 0 && X <= window.innerHeight) {
|
|
1393
|
+
const J = document.elementFromPoint(me, X);
|
|
1394
|
+
if (J && !E.contains(J) && !ae.current?.contains(J))
|
|
1385
1395
|
return;
|
|
1386
1396
|
}
|
|
1387
|
-
l[
|
|
1388
|
-
top:
|
|
1389
|
-
left:
|
|
1390
|
-
width:
|
|
1391
|
-
isModal:
|
|
1397
|
+
l[C._id] = {
|
|
1398
|
+
top: M.top + window.scrollY,
|
|
1399
|
+
left: M.left + window.scrollX,
|
|
1400
|
+
width: M.width,
|
|
1401
|
+
isModal: S
|
|
1392
1402
|
};
|
|
1393
1403
|
}
|
|
1394
|
-
}), Ot(l),
|
|
1404
|
+
}), Ot(l), ue.current = null;
|
|
1395
1405
|
}));
|
|
1396
|
-
}, [_]),
|
|
1406
|
+
}, [_]), ee = Ce(async () => {
|
|
1397
1407
|
if (n) {
|
|
1398
|
-
|
|
1408
|
+
te(!0);
|
|
1399
1409
|
try {
|
|
1400
|
-
const l = await fetch(`${
|
|
1410
|
+
const l = await fetch(`${s}/api/annotations`, {
|
|
1401
1411
|
headers: { "x-api-key": n }
|
|
1402
1412
|
});
|
|
1403
1413
|
if (l.ok) {
|
|
1404
|
-
const
|
|
1405
|
-
|
|
1414
|
+
const G = ((await l.json()).data || []).reduce((C, E) => C.find((R) => R._id === E._id) ? C : C.concat([E]), []);
|
|
1415
|
+
W(G);
|
|
1406
1416
|
}
|
|
1407
1417
|
} catch (l) {
|
|
1408
1418
|
console.error("Failed to fetch annotations", l);
|
|
1409
1419
|
} finally {
|
|
1410
|
-
|
|
1420
|
+
te(!1);
|
|
1411
1421
|
}
|
|
1412
1422
|
}
|
|
1413
|
-
}, [n,
|
|
1414
|
-
|
|
1415
|
-
A && _.length === 0 && !
|
|
1416
|
-
}, [A, _.length,
|
|
1423
|
+
}, [n, s]);
|
|
1424
|
+
Z(() => {
|
|
1425
|
+
A && _.length === 0 && !ce && F(!1);
|
|
1426
|
+
}, [A, _.length, ce]), Z(() => {
|
|
1417
1427
|
if (!d && _.length > 0) {
|
|
1418
|
-
|
|
1419
|
-
const l = new MutationObserver(() =>
|
|
1428
|
+
pe();
|
|
1429
|
+
const l = new MutationObserver(() => pe()), h = new ResizeObserver(() => pe()), g = () => pe();
|
|
1420
1430
|
return l.observe(document.documentElement, {
|
|
1421
1431
|
childList: !0,
|
|
1422
1432
|
subtree: !0,
|
|
1423
1433
|
attributes: !0
|
|
1424
|
-
}),
|
|
1425
|
-
l.disconnect(),
|
|
1434
|
+
}), h.observe(document.documentElement), window.addEventListener("scroll", g, !0), () => {
|
|
1435
|
+
l.disconnect(), h.disconnect(), window.removeEventListener("scroll", g, !0), ue.current && cancelAnimationFrame(ue.current);
|
|
1426
1436
|
};
|
|
1427
1437
|
}
|
|
1428
|
-
}, [d, _.length,
|
|
1429
|
-
|
|
1430
|
-
}, [
|
|
1431
|
-
|
|
1438
|
+
}, [d, _.length, pe]), Z(() => {
|
|
1439
|
+
ee();
|
|
1440
|
+
}, [ee]), Z(() => {
|
|
1441
|
+
ae.current = document.getElementById("viewgate-shadow-host");
|
|
1432
1442
|
}, []);
|
|
1433
|
-
const
|
|
1443
|
+
const Pe = Ce((l) => {
|
|
1434
1444
|
if (!d || m) return;
|
|
1435
|
-
const
|
|
1436
|
-
if (!
|
|
1437
|
-
|
|
1445
|
+
const h = pt(l.clientX, l.clientY);
|
|
1446
|
+
if (!h || ae.current?.contains(h) || h.closest(".vg-no-capture")) {
|
|
1447
|
+
v(null);
|
|
1438
1448
|
return;
|
|
1439
1449
|
}
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1442
|
-
tag:
|
|
1443
|
-
source:
|
|
1444
|
-
rect:
|
|
1445
|
-
element:
|
|
1446
|
-
previewText: (
|
|
1450
|
+
const g = h.getBoundingClientRect();
|
|
1451
|
+
v({
|
|
1452
|
+
tag: h.tagName.toLowerCase(),
|
|
1453
|
+
source: h.getAttribute("data-source-path") || "unknown:0",
|
|
1454
|
+
rect: g,
|
|
1455
|
+
element: h,
|
|
1456
|
+
previewText: (h.innerText || "").slice(0, 100) || (h.getAttribute("placeholder") || "").slice(0, 100) || h.tagName.toLowerCase(),
|
|
1447
1457
|
semanticReference: {
|
|
1448
|
-
...wn(
|
|
1458
|
+
...wn(h),
|
|
1449
1459
|
normalizedOffset: {
|
|
1450
|
-
x: (l.clientX -
|
|
1451
|
-
y: (l.clientY -
|
|
1460
|
+
x: (l.clientX - g.left) / g.width,
|
|
1461
|
+
y: (l.clientY - g.top) / g.height
|
|
1452
1462
|
}
|
|
1453
1463
|
}
|
|
1454
1464
|
});
|
|
1455
|
-
}, [d, m]),
|
|
1465
|
+
}, [d, m]), Ae = Ce(async (l) => {
|
|
1456
1466
|
if (!d || m) return;
|
|
1457
|
-
const
|
|
1458
|
-
if (!(!
|
|
1467
|
+
const h = pt(l.clientX, l.clientY);
|
|
1468
|
+
if (!(!h || ae.current?.contains(h) || h.closest(".vg-no-capture")) && u) {
|
|
1459
1469
|
l.preventDefault(), l.stopPropagation(), D(!0);
|
|
1460
1470
|
try {
|
|
1461
|
-
const
|
|
1471
|
+
const C = window.scrollX, E = window.scrollY, S = await dt(document.documentElement, {
|
|
1462
1472
|
pixelRatio: 1.5,
|
|
1463
1473
|
cacheBust: !0,
|
|
1464
1474
|
width: window.innerWidth,
|
|
1465
1475
|
height: window.innerHeight,
|
|
1466
1476
|
backgroundColor: "#ffffff",
|
|
1467
1477
|
style: {
|
|
1468
|
-
transform: `scale(${1 / window.devicePixelRatio}) translate(-${
|
|
1478
|
+
transform: `scale(${1 / window.devicePixelRatio}) translate(-${C}px, -${E}px)`,
|
|
1469
1479
|
transformOrigin: "top left"
|
|
1470
1480
|
},
|
|
1471
|
-
filter: (
|
|
1472
|
-
const
|
|
1473
|
-
return !(
|
|
1481
|
+
filter: (X) => {
|
|
1482
|
+
const J = X;
|
|
1483
|
+
return !(ae.current?.contains(J) || J.id === "viewgate-ui");
|
|
1474
1484
|
}
|
|
1475
|
-
}), R = u.element.getBoundingClientRect(),
|
|
1476
|
-
let
|
|
1477
|
-
if (
|
|
1478
|
-
|
|
1485
|
+
}), R = u.element.getBoundingClientRect(), Y = R.top >= 0 && R.left >= 0 && R.bottom <= window.innerHeight && R.right <= window.innerWidth;
|
|
1486
|
+
let M = "";
|
|
1487
|
+
if (Y && R.width > 0 && R.height > 0)
|
|
1488
|
+
M = await ut(S, R, 24, 1.5);
|
|
1479
1489
|
else
|
|
1480
1490
|
try {
|
|
1481
|
-
|
|
1491
|
+
M = await dt(u.element, {
|
|
1482
1492
|
pixelRatio: 2,
|
|
1483
1493
|
cacheBust: !0,
|
|
1484
1494
|
backgroundColor: "#ffffff",
|
|
1485
|
-
filter: (
|
|
1486
|
-
const
|
|
1487
|
-
return !
|
|
1495
|
+
filter: (X) => {
|
|
1496
|
+
const J = X;
|
|
1497
|
+
return !ae.current?.contains(J);
|
|
1488
1498
|
}
|
|
1489
1499
|
});
|
|
1490
1500
|
} catch {
|
|
1491
|
-
|
|
1501
|
+
M = await ut(S, R, 24, 1.5);
|
|
1492
1502
|
}
|
|
1493
|
-
const
|
|
1503
|
+
const me = {
|
|
1494
1504
|
...u.semanticReference,
|
|
1495
1505
|
metadata: {
|
|
1496
1506
|
...u.semanticReference.metadata,
|
|
1497
|
-
screenshotUrl:
|
|
1498
|
-
elementScreenshot:
|
|
1507
|
+
screenshotUrl: S,
|
|
1508
|
+
elementScreenshot: M
|
|
1499
1509
|
}
|
|
1500
1510
|
};
|
|
1501
1511
|
x({
|
|
1502
1512
|
...u,
|
|
1503
|
-
visualPreview:
|
|
1504
|
-
semanticReference:
|
|
1513
|
+
visualPreview: M,
|
|
1514
|
+
semanticReference: me
|
|
1505
1515
|
});
|
|
1506
|
-
} catch (
|
|
1507
|
-
console.error("Failed to capture preview:",
|
|
1516
|
+
} catch (g) {
|
|
1517
|
+
console.error("Failed to capture preview:", g), x(u);
|
|
1508
1518
|
} finally {
|
|
1509
|
-
D(!1),
|
|
1519
|
+
D(!1), v(null);
|
|
1510
1520
|
}
|
|
1511
1521
|
}
|
|
1512
1522
|
}, [d, u, m]);
|
|
1513
|
-
|
|
1514
|
-
const l = (
|
|
1515
|
-
if (
|
|
1516
|
-
m ? x(null) : A ?
|
|
1523
|
+
Z(() => {
|
|
1524
|
+
const l = (h) => {
|
|
1525
|
+
if (h.key === "Escape") {
|
|
1526
|
+
m ? x(null) : A ? F(!1) : d && p(!1);
|
|
1517
1527
|
return;
|
|
1518
1528
|
}
|
|
1519
|
-
const
|
|
1520
|
-
let
|
|
1521
|
-
for (;
|
|
1522
|
-
|
|
1523
|
-
return
|
|
1529
|
+
const G = (() => {
|
|
1530
|
+
let S = document.activeElement;
|
|
1531
|
+
for (; S && S.shadowRoot && S.shadowRoot.activeElement; )
|
|
1532
|
+
S = S.shadowRoot.activeElement;
|
|
1533
|
+
return S;
|
|
1524
1534
|
})();
|
|
1525
|
-
if (["input", "textarea"].includes((
|
|
1526
|
-
const
|
|
1527
|
-
|
|
1535
|
+
if (["input", "textarea"].includes((G?.tagName || "").toLowerCase()) || G?.isContentEditable) return;
|
|
1536
|
+
const E = h.key.toLowerCase();
|
|
1537
|
+
E === "c" && !m && !A && p((S) => !S), E === "v" && !m && (_.length > 0 || A) && (F((S) => !S), A || p(!1));
|
|
1528
1538
|
};
|
|
1529
|
-
return d && !m ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", l), window.addEventListener("mousemove",
|
|
1530
|
-
document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", l), window.removeEventListener("mousemove",
|
|
1539
|
+
return d && !m ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", l), window.addEventListener("mousemove", Pe, !0), window.addEventListener("click", Ae, !0), () => {
|
|
1540
|
+
document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", l), window.removeEventListener("mousemove", Pe, !0), window.removeEventListener("click", Ae, !0);
|
|
1531
1541
|
};
|
|
1532
|
-
}, [d, m, A, _,
|
|
1542
|
+
}, [d, m, A, _, Pe, Ae]);
|
|
1533
1543
|
const _t = async () => {
|
|
1534
|
-
if (!m || !
|
|
1544
|
+
if (!m || !f.trim()) return;
|
|
1535
1545
|
P(!0);
|
|
1536
|
-
const { semanticReference: l } = m, [
|
|
1546
|
+
const { semanticReference: l } = m, [h, g] = (l.source || "").split(":"), G = g || "0";
|
|
1537
1547
|
try {
|
|
1538
|
-
if (!(await fetch(`${
|
|
1548
|
+
if (!(await fetch(`${s}/api/annotations`, {
|
|
1539
1549
|
method: "POST",
|
|
1540
1550
|
headers: {
|
|
1541
1551
|
"Content-Type": "application/json",
|
|
1542
1552
|
"x-api-key": n
|
|
1543
1553
|
},
|
|
1544
1554
|
body: JSON.stringify({
|
|
1545
|
-
filePath:
|
|
1546
|
-
line: parseInt(
|
|
1555
|
+
filePath: h,
|
|
1556
|
+
line: parseInt(G),
|
|
1547
1557
|
url: window.location.href,
|
|
1548
|
-
message:
|
|
1558
|
+
message: f,
|
|
1549
1559
|
componentName: l.componentPath || m.tag,
|
|
1550
1560
|
reference: {
|
|
1551
1561
|
...l,
|
|
@@ -1558,14 +1568,14 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1558
1568
|
}
|
|
1559
1569
|
})
|
|
1560
1570
|
})).ok) throw new Error("Backend failed");
|
|
1561
|
-
e(r.success, "success"), x(null),
|
|
1562
|
-
} catch (
|
|
1563
|
-
console.error(
|
|
1571
|
+
e(r.success, "success"), x(null), w(""), p(!1), ee();
|
|
1572
|
+
} catch (C) {
|
|
1573
|
+
console.error(C), e(r.error, "error");
|
|
1564
1574
|
} finally {
|
|
1565
1575
|
P(!1);
|
|
1566
1576
|
}
|
|
1567
1577
|
};
|
|
1568
|
-
return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1578
|
+
return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1051", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1052", className: "vg-no-capture", children: [
|
|
1569
1579
|
!i && /* @__PURE__ */ o.jsxs(
|
|
1570
1580
|
"div",
|
|
1571
1581
|
{
|
|
@@ -1573,7 +1583,7 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1573
1583
|
position: "fixed",
|
|
1574
1584
|
top: `${U.top}px`,
|
|
1575
1585
|
right: `${U.right}px`,
|
|
1576
|
-
zIndex:
|
|
1586
|
+
zIndex: Ne + 10,
|
|
1577
1587
|
display: "flex",
|
|
1578
1588
|
alignItems: "center",
|
|
1579
1589
|
gap: "8px",
|
|
@@ -1583,7 +1593,7 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1583
1593
|
/* @__PURE__ */ o.jsx(
|
|
1584
1594
|
"div",
|
|
1585
1595
|
{
|
|
1586
|
-
onMouseDown:
|
|
1596
|
+
onMouseDown: de,
|
|
1587
1597
|
style: {
|
|
1588
1598
|
width: "20px",
|
|
1589
1599
|
height: "32px",
|
|
@@ -1607,18 +1617,18 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1607
1617
|
onMouseLeave: (l) => {
|
|
1608
1618
|
l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", l.currentTarget.style.color = "#1e293b";
|
|
1609
1619
|
},
|
|
1610
|
-
children: /* @__PURE__ */ o.jsx(tt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1620
|
+
children: /* @__PURE__ */ o.jsx(tt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1096", size: 14 })
|
|
1611
1621
|
}
|
|
1612
1622
|
),
|
|
1613
1623
|
/* @__PURE__ */ o.jsx(
|
|
1614
1624
|
"button",
|
|
1615
1625
|
{
|
|
1616
1626
|
onClick: (l) => {
|
|
1617
|
-
l.stopPropagation(),
|
|
1627
|
+
l.stopPropagation(), H({
|
|
1618
1628
|
title: r.exitConfirmTitle || "Close ViewGate?",
|
|
1619
1629
|
message: r.exitConfirmMessage || "Are you sure you want to close ViewGate?",
|
|
1620
1630
|
type: "danger",
|
|
1621
|
-
onConfirm: () =>
|
|
1631
|
+
onConfirm: () => a()
|
|
1622
1632
|
});
|
|
1623
1633
|
},
|
|
1624
1634
|
title: "Cerrar ViewGate",
|
|
@@ -1643,7 +1653,7 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1643
1653
|
onMouseLeave: (l) => {
|
|
1644
1654
|
l.currentTarget.style.transform = "scale(1) rotate(0deg)", l.currentTarget.style.color = "#64748b", l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
|
|
1645
1655
|
},
|
|
1646
|
-
children: /* @__PURE__ */ o.jsx(Ge, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1656
|
+
children: /* @__PURE__ */ o.jsx(Ge, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1136", size: 20, strokeWidth: 2.5 })
|
|
1647
1657
|
}
|
|
1648
1658
|
)
|
|
1649
1659
|
]
|
|
@@ -1652,12 +1662,12 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1652
1662
|
/* @__PURE__ */ o.jsxs(
|
|
1653
1663
|
"div",
|
|
1654
1664
|
{
|
|
1655
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1665
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1142",
|
|
1656
1666
|
style: {
|
|
1657
1667
|
position: "fixed",
|
|
1658
1668
|
bottom: `${k.bottom}px`,
|
|
1659
1669
|
right: `${k.right}px`,
|
|
1660
|
-
zIndex:
|
|
1670
|
+
zIndex: Ne,
|
|
1661
1671
|
display: "flex",
|
|
1662
1672
|
alignItems: "center",
|
|
1663
1673
|
gap: "8px",
|
|
@@ -1668,7 +1678,7 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1668
1678
|
/* @__PURE__ */ o.jsx(
|
|
1669
1679
|
"div",
|
|
1670
1680
|
{
|
|
1671
|
-
onMouseDown:
|
|
1681
|
+
onMouseDown: Te,
|
|
1672
1682
|
style: {
|
|
1673
1683
|
width: "24px",
|
|
1674
1684
|
height: "40px",
|
|
@@ -1693,10 +1703,10 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1693
1703
|
l.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.85)", l.currentTarget.style.color = "#1e293b";
|
|
1694
1704
|
},
|
|
1695
1705
|
className: "vg-animate-slide-up",
|
|
1696
|
-
children: /* @__PURE__ */ o.jsx(tt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1706
|
+
children: /* @__PURE__ */ o.jsx(tt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1185", size: 16 })
|
|
1697
1707
|
}
|
|
1698
1708
|
),
|
|
1699
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1709
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1188", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
|
|
1700
1710
|
/* @__PURE__ */ o.jsx(
|
|
1701
1711
|
"button",
|
|
1702
1712
|
{
|
|
@@ -1706,9 +1716,9 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1706
1716
|
padding: "12px 24px",
|
|
1707
1717
|
background: d ? "#ef4444" : void 0
|
|
1708
1718
|
},
|
|
1709
|
-
children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1710
|
-
d ? /* @__PURE__ */ o.jsx(Ge, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1711
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1719
|
+
children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1197", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
|
|
1720
|
+
d ? /* @__PURE__ */ o.jsx(Ge, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1198", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx($e, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1198", size: 20, className: "vg-animate-pop" }),
|
|
1721
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1199", children: d ? r.exitMode : r.enterMode })
|
|
1712
1722
|
] })
|
|
1713
1723
|
}
|
|
1714
1724
|
),
|
|
@@ -1716,13 +1726,13 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1716
1726
|
"button",
|
|
1717
1727
|
{
|
|
1718
1728
|
onClick: () => {
|
|
1719
|
-
|
|
1729
|
+
F(!A), p(!1), x(null);
|
|
1720
1730
|
},
|
|
1721
1731
|
className: "vg-button-ghost vg-animate-pop",
|
|
1722
1732
|
style: { animationDelay: "0.1s" },
|
|
1723
1733
|
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:
|
|
1734
|
+
/* @__PURE__ */ o.jsx(Xt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1212", size: 20 }),
|
|
1735
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1213", children: r.viewComments })
|
|
1726
1736
|
]
|
|
1727
1737
|
}
|
|
1728
1738
|
)
|
|
@@ -1730,7 +1740,7 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1730
1740
|
]
|
|
1731
1741
|
}
|
|
1732
1742
|
),
|
|
1733
|
-
z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1743
|
+
z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1221", style: {
|
|
1734
1744
|
position: "fixed",
|
|
1735
1745
|
top: 0,
|
|
1736
1746
|
left: 0,
|
|
@@ -1741,16 +1751,16 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1741
1751
|
display: "flex",
|
|
1742
1752
|
alignItems: "center",
|
|
1743
1753
|
justifyContent: "center",
|
|
1744
|
-
zIndex:
|
|
1754
|
+
zIndex: Ne + 1,
|
|
1745
1755
|
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:
|
|
1756
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1227", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
|
|
1757
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1228", className: "vg-spinner" }),
|
|
1758
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1229", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
|
|
1749
1759
|
] }) }),
|
|
1750
1760
|
d && !m && /* @__PURE__ */ o.jsx(
|
|
1751
1761
|
"div",
|
|
1752
1762
|
{
|
|
1753
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1763
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1236",
|
|
1754
1764
|
className: "vg-backdrop-blur",
|
|
1755
1765
|
style: {
|
|
1756
1766
|
opacity: 1,
|
|
@@ -1762,14 +1772,14 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1762
1772
|
${u.rect.left}px ${u.rect.bottom}px,
|
|
1763
1773
|
${u.rect.left}px ${u.rect.top}px
|
|
1764
1774
|
)` : "none",
|
|
1765
|
-
zIndex:
|
|
1775
|
+
zIndex: sn
|
|
1766
1776
|
}
|
|
1767
1777
|
}
|
|
1768
1778
|
),
|
|
1769
1779
|
d && u && !m && !z && /* @__PURE__ */ o.jsx(
|
|
1770
1780
|
"div",
|
|
1771
1781
|
{
|
|
1772
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1782
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1255",
|
|
1773
1783
|
className: "vg-selection-pulse",
|
|
1774
1784
|
style: {
|
|
1775
1785
|
top: u.rect.top - 4,
|
|
@@ -1781,17 +1791,17 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1781
1791
|
children: /* @__PURE__ */ o.jsxs(
|
|
1782
1792
|
"div",
|
|
1783
1793
|
{
|
|
1784
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1794
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1265",
|
|
1785
1795
|
className: "vg-selection-label",
|
|
1786
1796
|
style: {
|
|
1787
1797
|
...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
1798
|
...u.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
|
|
1789
1799
|
},
|
|
1790
1800
|
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:
|
|
1801
|
+
/* @__PURE__ */ o.jsx(tr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1281", size: 16 }),
|
|
1802
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1282", style: { display: "flex", flexDirection: "column" }, children: [
|
|
1803
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1283", style: { fontWeight: 700 }, children: r.selectToComment }),
|
|
1804
|
+
/* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1284", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
|
|
1795
1805
|
Math.round(u.rect.width),
|
|
1796
1806
|
" × ",
|
|
1797
1807
|
Math.round(u.rect.height)
|
|
@@ -1802,7 +1812,7 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1802
1812
|
)
|
|
1803
1813
|
}
|
|
1804
1814
|
),
|
|
1805
|
-
m && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1815
|
+
m && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1294", className: "vg-animate-fade", style: {
|
|
1806
1816
|
position: "fixed",
|
|
1807
1817
|
top: 0,
|
|
1808
1818
|
left: 0,
|
|
@@ -1813,14 +1823,14 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1813
1823
|
display: "flex",
|
|
1814
1824
|
alignItems: "center",
|
|
1815
1825
|
justifyContent: "center",
|
|
1816
|
-
zIndex:
|
|
1817
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1826
|
+
zIndex: Me
|
|
1827
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1299", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
1818
1828
|
padding: "40px",
|
|
1819
1829
|
width: "500px",
|
|
1820
1830
|
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
|
|
1821
1831
|
}, 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:
|
|
1832
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1303", style: { textAlign: "center", marginBottom: "32px" }, children: [
|
|
1833
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1304", style: {
|
|
1824
1834
|
width: "48px",
|
|
1825
1835
|
height: "48px",
|
|
1826
1836
|
background: "var(--vg-primary-gradient)",
|
|
@@ -1831,11 +1841,11 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1831
1841
|
margin: "0 auto 16px",
|
|
1832
1842
|
color: "white",
|
|
1833
1843
|
boxShadow: "0 8px 16px rgba(99, 102, 241, 0.3)"
|
|
1834
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
1835
|
-
/* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1836
|
-
/* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1844
|
+
}, children: /* @__PURE__ */ o.jsx($e, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1309", size: 24 }) }),
|
|
1845
|
+
/* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1311", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
|
|
1846
|
+
/* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1312", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
|
|
1837
1847
|
] }),
|
|
1838
|
-
m.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1848
|
+
m.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1316", style: {
|
|
1839
1849
|
marginBottom: "24px",
|
|
1840
1850
|
borderRadius: "12px",
|
|
1841
1851
|
overflow: "hidden",
|
|
@@ -1855,15 +1865,15 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1855
1865
|
"textarea",
|
|
1856
1866
|
{
|
|
1857
1867
|
className: "vg-textarea",
|
|
1858
|
-
value:
|
|
1859
|
-
onChange: (l) =>
|
|
1868
|
+
value: f,
|
|
1869
|
+
onChange: (l) => w(l.target.value),
|
|
1860
1870
|
rows: 4,
|
|
1861
1871
|
placeholder: r.placeholder,
|
|
1862
1872
|
autoFocus: !0,
|
|
1863
1873
|
style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
|
|
1864
1874
|
}
|
|
1865
1875
|
),
|
|
1866
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1876
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1343", style: { display: "flex", gap: "12px" }, children: [
|
|
1867
1877
|
/* @__PURE__ */ o.jsx(
|
|
1868
1878
|
"button",
|
|
1869
1879
|
{
|
|
@@ -1879,17 +1889,17 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1879
1889
|
{
|
|
1880
1890
|
onClick: _t,
|
|
1881
1891
|
className: "vg-button-primary",
|
|
1882
|
-
disabled: T || !
|
|
1892
|
+
disabled: T || !f.trim(),
|
|
1883
1893
|
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:
|
|
1894
|
+
children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1358", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
1895
|
+
T ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1359", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(ir, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1359", size: 18 }),
|
|
1896
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1360", children: T ? r.submitting : r.sendFeedback || "Send Comment" })
|
|
1887
1897
|
] })
|
|
1888
1898
|
}
|
|
1889
1899
|
)
|
|
1890
1900
|
] })
|
|
1891
1901
|
] }) }),
|
|
1892
|
-
A && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1902
|
+
A && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1370", className: "vg-animate-fade", style: {
|
|
1893
1903
|
position: "fixed",
|
|
1894
1904
|
top: 0,
|
|
1895
1905
|
left: 0,
|
|
@@ -1900,94 +1910,94 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1900
1910
|
display: "flex",
|
|
1901
1911
|
alignItems: "center",
|
|
1902
1912
|
justifyContent: "center",
|
|
1903
|
-
zIndex:
|
|
1904
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1913
|
+
zIndex: Me
|
|
1914
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1375", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
1905
1915
|
padding: "32px",
|
|
1906
1916
|
width: "650px",
|
|
1907
1917
|
maxHeight: "85vh",
|
|
1908
1918
|
display: "flex",
|
|
1909
1919
|
flexDirection: "column"
|
|
1910
1920
|
}, 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:
|
|
1921
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1379", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
|
|
1922
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1380", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
|
|
1923
|
+
/* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1381", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: B ? r.commentDetails : r.annotations }),
|
|
1924
|
+
!B && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1385", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: _.length })
|
|
1915
1925
|
] }),
|
|
1916
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1926
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1390", style: { display: "flex", gap: "8px" }, children: [
|
|
1917
1927
|
B && /* @__PURE__ */ o.jsx(
|
|
1918
1928
|
"button",
|
|
1919
1929
|
{
|
|
1920
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1930
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1392",
|
|
1921
1931
|
className: "vg-button-ghost",
|
|
1922
1932
|
style: { padding: "6px 14px", fontSize: "12px" },
|
|
1923
|
-
onClick: () =>
|
|
1933
|
+
onClick: () => re(null),
|
|
1924
1934
|
children: r.viewAll || "View All"
|
|
1925
1935
|
}
|
|
1926
1936
|
),
|
|
1927
1937
|
/* @__PURE__ */ o.jsx(
|
|
1928
1938
|
"button",
|
|
1929
1939
|
{
|
|
1930
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1940
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1400",
|
|
1931
1941
|
className: "vg-button-ghost",
|
|
1932
1942
|
style: { padding: "8px", borderRadius: "50%" },
|
|
1933
1943
|
onClick: () => {
|
|
1934
|
-
|
|
1944
|
+
F(!1), re(null);
|
|
1935
1945
|
},
|
|
1936
|
-
children: /* @__PURE__ */ o.jsx(Ge, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1946
|
+
children: /* @__PURE__ */ o.jsx(Ge, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1405", size: 20 })
|
|
1937
1947
|
}
|
|
1938
1948
|
)
|
|
1939
1949
|
] })
|
|
1940
1950
|
] }),
|
|
1941
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1951
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1410", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: ce ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1412", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1413", className: "vg-spinner" }) }) : (B ? _.filter((l) => l._id === B) : _).map((l, h) => /* @__PURE__ */ o.jsxs(
|
|
1942
1952
|
"div",
|
|
1943
1953
|
{
|
|
1944
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1954
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1417",
|
|
1945
1955
|
className: "vg-glassmorphism vg-animate-slide",
|
|
1946
1956
|
style: {
|
|
1947
1957
|
padding: "20px",
|
|
1948
1958
|
marginBottom: "16px",
|
|
1949
1959
|
border: "1px solid rgba(0,0,0,0.05)",
|
|
1950
1960
|
background: "rgba(255,255,255,0.5)",
|
|
1951
|
-
animationDelay: `${
|
|
1961
|
+
animationDelay: `${h * 0.05}s`
|
|
1952
1962
|
},
|
|
1953
1963
|
children: [
|
|
1954
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1955
|
-
l.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1956
|
-
/* @__PURE__ */ o.jsx(
|
|
1964
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1428", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1429", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
|
|
1965
|
+
l.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1431", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a" }, children: [
|
|
1966
|
+
/* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1432", size: 14 }),
|
|
1957
1967
|
" ",
|
|
1958
1968
|
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:
|
|
1969
|
+
] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1435", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c" }, children: [
|
|
1970
|
+
/* @__PURE__ */ o.jsx(Qe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1436", size: 14 }),
|
|
1961
1971
|
" ",
|
|
1962
1972
|
r.pending
|
|
1963
1973
|
] }),
|
|
1964
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1974
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1439", style: { fontSize: "12px", color: "#000000" }, children: un(l.timestamp || l.createdAt || l.reference?.timestamp, t) })
|
|
1965
1975
|
] }) }),
|
|
1966
1976
|
Ue === l._id ? /* @__PURE__ */ o.jsx(
|
|
1967
1977
|
"textarea",
|
|
1968
1978
|
{
|
|
1969
1979
|
className: "vg-textarea",
|
|
1970
1980
|
value: qe,
|
|
1971
|
-
onChange: (
|
|
1981
|
+
onChange: (g) => Ye(g.target.value),
|
|
1972
1982
|
rows: 3,
|
|
1973
1983
|
autoFocus: !0,
|
|
1974
1984
|
style: { marginBottom: "16px" }
|
|
1975
1985
|
}
|
|
1976
|
-
) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1977
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1986
|
+
) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1455", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: l.message }),
|
|
1987
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1458", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: Ue === l._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1978
1988
|
/* @__PURE__ */ o.jsx(
|
|
1979
1989
|
"button",
|
|
1980
1990
|
{
|
|
1981
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1991
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1461",
|
|
1982
1992
|
className: "vg-button-primary vg-animate-pop",
|
|
1983
1993
|
style: { padding: "8px 16px", fontSize: "13px" },
|
|
1984
1994
|
onClick: async () => {
|
|
1985
1995
|
try {
|
|
1986
|
-
(await fetch(`${
|
|
1996
|
+
(await fetch(`${s}/api/annotations/${l._id}`, {
|
|
1987
1997
|
method: "PATCH",
|
|
1988
1998
|
headers: { "Content-Type": "application/json", "x-api-key": n },
|
|
1989
1999
|
body: JSON.stringify({ message: qe })
|
|
1990
|
-
})).ok && (
|
|
2000
|
+
})).ok && (Ve(null), ee(), e(r.updateSuccess, "success"));
|
|
1991
2001
|
} catch {
|
|
1992
2002
|
e(r.error, "error");
|
|
1993
2003
|
}
|
|
@@ -1995,19 +2005,19 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
1995
2005
|
children: r.save
|
|
1996
2006
|
}
|
|
1997
2007
|
),
|
|
1998
|
-
/* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2008
|
+
/* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1483", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => Ve(null), children: r.cancel })
|
|
1999
2009
|
] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2000
2010
|
/* @__PURE__ */ o.jsxs(
|
|
2001
2011
|
"button",
|
|
2002
2012
|
{
|
|
2003
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2013
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1487",
|
|
2004
2014
|
className: "vg-button-ghost vg-animate-pop",
|
|
2005
2015
|
style: { padding: "8px 16px", fontSize: "13px" },
|
|
2006
2016
|
onClick: () => {
|
|
2007
|
-
|
|
2017
|
+
Ve(l._id), Ye(l.message);
|
|
2008
2018
|
},
|
|
2009
2019
|
children: [
|
|
2010
|
-
/* @__PURE__ */ o.jsx(nr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2020
|
+
/* @__PURE__ */ o.jsx(nr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1495", size: 14 }),
|
|
2011
2021
|
" ",
|
|
2012
2022
|
r.edit
|
|
2013
2023
|
]
|
|
@@ -2016,14 +2026,14 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
2016
2026
|
/* @__PURE__ */ o.jsxs(
|
|
2017
2027
|
"button",
|
|
2018
2028
|
{
|
|
2019
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2029
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1497",
|
|
2020
2030
|
className: "vg-button-ghost vg-animate-pop",
|
|
2021
2031
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.05s" },
|
|
2022
2032
|
onClick: () => {
|
|
2023
2033
|
l.url && (window.location.href = l.url);
|
|
2024
2034
|
},
|
|
2025
2035
|
children: [
|
|
2026
|
-
/* @__PURE__ */ o.jsx(et, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2036
|
+
/* @__PURE__ */ o.jsx(et, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1504", size: 14 }),
|
|
2027
2037
|
" ",
|
|
2028
2038
|
r.review
|
|
2029
2039
|
]
|
|
@@ -2032,31 +2042,31 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
2032
2042
|
l.status === "pending" ? /* @__PURE__ */ o.jsxs(
|
|
2033
2043
|
"button",
|
|
2034
2044
|
{
|
|
2035
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2045
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1507",
|
|
2036
2046
|
className: "vg-button-primary vg-animate-pop",
|
|
2037
2047
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
|
|
2038
2048
|
onClick: () => {
|
|
2039
|
-
|
|
2049
|
+
H({
|
|
2040
2050
|
title: r.markReadyConfirm,
|
|
2041
2051
|
message: r.confirmMarkReady,
|
|
2042
2052
|
type: "success",
|
|
2043
2053
|
onConfirm: async () => {
|
|
2044
2054
|
try {
|
|
2045
|
-
(await fetch(`${
|
|
2055
|
+
(await fetch(`${s}/api/annotations/${l._id}`, {
|
|
2046
2056
|
method: "PATCH",
|
|
2047
2057
|
headers: { "Content-Type": "application/json", "x-api-key": n },
|
|
2048
2058
|
body: JSON.stringify({ status: "ready_for_review" })
|
|
2049
|
-
})).ok && (
|
|
2059
|
+
})).ok && (ee(), e(r.updateSuccess, "success"));
|
|
2050
2060
|
} catch {
|
|
2051
2061
|
e(r.error, "error");
|
|
2052
2062
|
} finally {
|
|
2053
|
-
|
|
2063
|
+
H(null);
|
|
2054
2064
|
}
|
|
2055
2065
|
}
|
|
2056
2066
|
});
|
|
2057
2067
|
},
|
|
2058
2068
|
children: [
|
|
2059
|
-
/* @__PURE__ */ o.jsx(
|
|
2069
|
+
/* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1535", size: 14 }),
|
|
2060
2070
|
" ",
|
|
2061
2071
|
r.markReady
|
|
2062
2072
|
]
|
|
@@ -2064,32 +2074,32 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
2064
2074
|
) : /* @__PURE__ */ o.jsxs(
|
|
2065
2075
|
"button",
|
|
2066
2076
|
{
|
|
2067
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2077
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1538",
|
|
2068
2078
|
className: "vg-button-ghost vg-animate-pop",
|
|
2069
2079
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
|
|
2070
2080
|
onClick: () => {
|
|
2071
|
-
|
|
2081
|
+
H({
|
|
2072
2082
|
title: r.reopenConfirm,
|
|
2073
2083
|
message: r.confirmReopen,
|
|
2074
2084
|
type: "success",
|
|
2075
2085
|
// Reopening is a positive action, use success theme (indigo/check) or we could add a neutral theme
|
|
2076
2086
|
onConfirm: async () => {
|
|
2077
2087
|
try {
|
|
2078
|
-
(await fetch(`${
|
|
2088
|
+
(await fetch(`${s}/api/annotations/${l._id}`, {
|
|
2079
2089
|
method: "PATCH",
|
|
2080
2090
|
headers: { "Content-Type": "application/json", "x-api-key": n },
|
|
2081
2091
|
body: JSON.stringify({ status: "pending" })
|
|
2082
|
-
})).ok && (
|
|
2092
|
+
})).ok && (ee(), e(r.updateSuccess, "success"));
|
|
2083
2093
|
} catch {
|
|
2084
2094
|
e(r.error, "error");
|
|
2085
2095
|
} finally {
|
|
2086
|
-
|
|
2096
|
+
H(null);
|
|
2087
2097
|
}
|
|
2088
2098
|
}
|
|
2089
2099
|
});
|
|
2090
2100
|
},
|
|
2091
2101
|
children: [
|
|
2092
|
-
/* @__PURE__ */ o.jsx(
|
|
2102
|
+
/* @__PURE__ */ o.jsx(sr, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1566", size: 14 }),
|
|
2093
2103
|
" ",
|
|
2094
2104
|
r.reopen
|
|
2095
2105
|
]
|
|
@@ -2098,29 +2108,29 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
2098
2108
|
/* @__PURE__ */ o.jsx(
|
|
2099
2109
|
"button",
|
|
2100
2110
|
{
|
|
2101
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2111
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1569",
|
|
2102
2112
|
className: "vg-button-ghost vg-animate-pop",
|
|
2103
2113
|
style: { padding: "8px 12px", color: "#ef4444", borderColor: "#fee2e2", animationDelay: "0.15s" },
|
|
2104
2114
|
onClick: () => {
|
|
2105
|
-
|
|
2115
|
+
H({
|
|
2106
2116
|
title: r.deleteConfirm,
|
|
2107
2117
|
message: r.confirmDelete,
|
|
2108
2118
|
type: "danger",
|
|
2109
2119
|
onConfirm: async () => {
|
|
2110
2120
|
try {
|
|
2111
|
-
(await fetch(`${
|
|
2121
|
+
(await fetch(`${s}/api/annotations/${l._id}`, {
|
|
2112
2122
|
method: "DELETE",
|
|
2113
2123
|
headers: { "x-api-key": n }
|
|
2114
|
-
})).ok && (
|
|
2124
|
+
})).ok && (ee(), e(r.deleteSuccess, "success"));
|
|
2115
2125
|
} catch {
|
|
2116
2126
|
e(r.error, "error");
|
|
2117
2127
|
} finally {
|
|
2118
|
-
|
|
2128
|
+
H(null);
|
|
2119
2129
|
}
|
|
2120
2130
|
}
|
|
2121
2131
|
});
|
|
2122
2132
|
},
|
|
2123
|
-
children: /* @__PURE__ */ o.jsx(rt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2133
|
+
children: /* @__PURE__ */ o.jsx(rt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1596", size: 16 })
|
|
2124
2134
|
}
|
|
2125
2135
|
)
|
|
2126
2136
|
] }) })
|
|
@@ -2129,7 +2139,7 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
2129
2139
|
l._id
|
|
2130
2140
|
)) })
|
|
2131
2141
|
] }) }),
|
|
2132
|
-
|
|
2142
|
+
$ && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1611", className: "vg-animate-fade", style: {
|
|
2133
2143
|
position: "fixed",
|
|
2134
2144
|
top: 0,
|
|
2135
2145
|
left: 0,
|
|
@@ -2140,76 +2150,76 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
2140
2150
|
display: "flex",
|
|
2141
2151
|
alignItems: "center",
|
|
2142
2152
|
justifyContent: "center",
|
|
2143
|
-
zIndex:
|
|
2144
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2153
|
+
zIndex: Me + 100
|
|
2154
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1616", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
2145
2155
|
padding: "40px",
|
|
2146
2156
|
width: "420px",
|
|
2147
2157
|
textAlign: "center",
|
|
2148
2158
|
border: "1px solid rgba(255, 255, 255, 0.1)",
|
|
2149
2159
|
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
|
|
2150
2160
|
}, children: [
|
|
2151
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2161
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1623", style: {
|
|
2152
2162
|
width: "64px",
|
|
2153
2163
|
height: "64px",
|
|
2154
|
-
background:
|
|
2164
|
+
background: $.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
|
|
2155
2165
|
borderRadius: "20px",
|
|
2156
2166
|
display: "flex",
|
|
2157
2167
|
alignItems: "center",
|
|
2158
2168
|
justifyContent: "center",
|
|
2159
2169
|
margin: "0 auto 24px",
|
|
2160
|
-
color:
|
|
2170
|
+
color: $.type === "danger" ? "#ef4444" : "#6366f1",
|
|
2161
2171
|
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:
|
|
2172
|
+
}, children: $.type === "danger" ? /* @__PURE__ */ o.jsx(rt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1632", size: 32 }) : /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1632", size: 32 }) }),
|
|
2173
|
+
/* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1634", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: $.title }),
|
|
2174
|
+
/* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1635", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: $.message }),
|
|
2175
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1636", style: { display: "flex", gap: "16px" }, children: [
|
|
2166
2176
|
/* @__PURE__ */ o.jsx(
|
|
2167
2177
|
"button",
|
|
2168
2178
|
{
|
|
2169
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2179
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1637",
|
|
2170
2180
|
className: "vg-button-ghost",
|
|
2171
2181
|
style: { flex: 1, height: "44px" },
|
|
2172
|
-
onClick: () => !
|
|
2173
|
-
disabled:
|
|
2182
|
+
onClick: () => !Q && H(null),
|
|
2183
|
+
disabled: Q,
|
|
2174
2184
|
children: r.no
|
|
2175
2185
|
}
|
|
2176
2186
|
),
|
|
2177
2187
|
/* @__PURE__ */ o.jsx(
|
|
2178
2188
|
"button",
|
|
2179
2189
|
{
|
|
2180
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2190
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1645",
|
|
2181
2191
|
className: "vg-button-primary",
|
|
2182
2192
|
style: {
|
|
2183
2193
|
flex: 1,
|
|
2184
2194
|
height: "44px",
|
|
2185
|
-
backgroundColor:
|
|
2186
|
-
backgroundImage:
|
|
2195
|
+
backgroundColor: $.type === "danger" ? "#ef4444" : void 0,
|
|
2196
|
+
backgroundImage: $.type === "danger" ? "none" : void 0,
|
|
2187
2197
|
display: "flex",
|
|
2188
2198
|
alignItems: "center",
|
|
2189
2199
|
justifyContent: "center",
|
|
2190
2200
|
gap: "8px"
|
|
2191
2201
|
},
|
|
2192
|
-
disabled:
|
|
2202
|
+
disabled: Q,
|
|
2193
2203
|
onClick: async () => {
|
|
2194
|
-
|
|
2204
|
+
le(!0);
|
|
2195
2205
|
try {
|
|
2196
|
-
await
|
|
2206
|
+
await $.onConfirm();
|
|
2197
2207
|
} catch (l) {
|
|
2198
2208
|
console.error("Confirmation error:", l);
|
|
2199
2209
|
} finally {
|
|
2200
|
-
|
|
2210
|
+
le(!1);
|
|
2201
2211
|
}
|
|
2202
2212
|
},
|
|
2203
|
-
children:
|
|
2213
|
+
children: Q ? /* @__PURE__ */ o.jsx(Kt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1670", size: 18, className: "vg-animate-spin" }) : r.yes
|
|
2204
2214
|
}
|
|
2205
2215
|
)
|
|
2206
2216
|
] })
|
|
2207
2217
|
] }) }),
|
|
2208
|
-
!d && !A && _.map((l,
|
|
2209
|
-
const
|
|
2210
|
-
if (!
|
|
2211
|
-
const
|
|
2212
|
-
(
|
|
2218
|
+
!d && !A && _.map((l, h) => {
|
|
2219
|
+
const g = jt[l._id];
|
|
2220
|
+
if (!g) return null;
|
|
2221
|
+
const C = _.slice(0, h).filter(
|
|
2222
|
+
(E) => E.reference?.selector && E.reference.selector === l.reference?.selector
|
|
2213
2223
|
).length * 34;
|
|
2214
2224
|
return /* @__PURE__ */ o.jsxs(
|
|
2215
2225
|
"div",
|
|
@@ -2217,38 +2227,38 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
2217
2227
|
className: "vg-pin-container vg-animate-pop",
|
|
2218
2228
|
style: {
|
|
2219
2229
|
position: "fixed",
|
|
2220
|
-
top:
|
|
2221
|
-
left:
|
|
2230
|
+
top: g.top - 20 - window.scrollY,
|
|
2231
|
+
left: g.left + g.width / 2 - 16 + C - window.scrollX,
|
|
2222
2232
|
cursor: "pointer",
|
|
2223
|
-
animationDelay: `${
|
|
2233
|
+
animationDelay: `${h * 0.08}s`,
|
|
2224
2234
|
transition: "all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",
|
|
2225
|
-
zIndex: cn -
|
|
2235
|
+
zIndex: cn - h
|
|
2226
2236
|
// Ensure staggered pins don't overlap tooltips weirdly
|
|
2227
2237
|
},
|
|
2228
|
-
onMouseEnter: (
|
|
2229
|
-
const
|
|
2230
|
-
window.innerHeight -
|
|
2238
|
+
onMouseEnter: (E) => {
|
|
2239
|
+
const S = E.currentTarget.getBoundingClientRect();
|
|
2240
|
+
window.innerHeight - S.bottom < 180 ? ve((Y) => ({ ...Y, [l._id]: "vg-top" })) : ve((Y) => ({ ...Y, [l._id]: "" }));
|
|
2231
2241
|
},
|
|
2232
2242
|
onClick: () => {
|
|
2233
|
-
|
|
2243
|
+
F(!0), re(l._id);
|
|
2234
2244
|
},
|
|
2235
2245
|
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
|
-
l.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2239
|
-
/* @__PURE__ */ o.jsx(
|
|
2246
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1717", className: `vg-pin-tooltip ${we[l._id] || ""}`, children: [
|
|
2247
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1718", style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "8px" }, children: [
|
|
2248
|
+
l.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1720", style: { display: "flex", alignItems: "center", gap: "6px", color: "#16a34a", fontWeight: 700, fontSize: "11px" }, children: [
|
|
2249
|
+
/* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1721", size: 12 }),
|
|
2240
2250
|
" ",
|
|
2241
2251
|
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:
|
|
2252
|
+
] }) : /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1724", style: { display: "flex", alignItems: "center", gap: "6px", color: g.isModal ? "#f59e0b" : "#ea580c", fontWeight: 700, fontSize: "11px" }, children: [
|
|
2253
|
+
/* @__PURE__ */ o.jsx(Qe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1725", size: 12 }),
|
|
2244
2254
|
" ",
|
|
2245
2255
|
r.pending
|
|
2246
2256
|
] }),
|
|
2247
|
-
|
|
2257
|
+
g.isModal && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1729", 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:1730", children: "MODAL" }) })
|
|
2248
2258
|
] }),
|
|
2249
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2259
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1734", style: { fontWeight: 500, color: "#1e293b", lineHeight: 1.4 }, children: l.message })
|
|
2250
2260
|
] }),
|
|
2251
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2261
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1737", className: `vg-formal-pin ${l.status === "ready_for_review" ? "ready" : ""} ${g.isModal ? "modal-variant" : ""}`, children: l.status === "ready_for_review" ? /* @__PURE__ */ o.jsx(ie, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1738", size: 18 }) : g.isModal ? /* @__PURE__ */ o.jsx(et, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1738", size: 16 }) : /* @__PURE__ */ o.jsx($e, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1738", size: 16 }) })
|
|
2252
2262
|
]
|
|
2253
2263
|
},
|
|
2254
2264
|
`pin-${l._id}`
|
|
@@ -2258,11 +2268,11 @@ const je = 2147483647, Le = je, Ne = 2e6, an = je - 10, on = je - 5, cn = je - 1
|
|
|
2258
2268
|
};
|
|
2259
2269
|
function Rt(e, t, r) {
|
|
2260
2270
|
if (!t.endsWith(".tsx") && !t.endsWith(".jsx") || t.includes("node_modules")) return e;
|
|
2261
|
-
const n = (d) => d.replace(/\\/g, "/"),
|
|
2271
|
+
const n = (d) => d.replace(/\\/g, "/"), s = n(t).replace(n(r), "");
|
|
2262
2272
|
return e.split(`
|
|
2263
2273
|
`).map((d, p) => {
|
|
2264
2274
|
const u = p + 1;
|
|
2265
|
-
return d.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g, (
|
|
2275
|
+
return d.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="${s}:${u}"`);
|
|
2266
2276
|
}).join(`
|
|
2267
2277
|
`);
|
|
2268
2278
|
}
|