viewgate-wrapper 1.10.7 → 1.10.8
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,10 +1,10 @@
|
|
|
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
|
|
3
|
-
import { createPortal as
|
|
4
|
-
var
|
|
2
|
+
import ht, { useRef as Oe, useState as R, useEffect as Z, forwardRef as et, createElement as _e, createContext as gt, useContext as yt, useCallback as he } from "react";
|
|
3
|
+
import { createPortal as xt } from "react-dom";
|
|
4
|
+
var ge = { exports: {} }, de = {};
|
|
5
5
|
var Le;
|
|
6
|
-
function
|
|
7
|
-
if (Le) return
|
|
6
|
+
function wt() {
|
|
7
|
+
if (Le) return de;
|
|
8
8
|
Le = 1;
|
|
9
9
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
10
10
|
function r(n, a, s) {
|
|
@@ -22,25 +22,25 @@ function yt() {
|
|
|
22
22
|
props: s
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return de.Fragment = t, de.jsx = r, de.jsxs = r, de;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var ue = {};
|
|
28
28
|
var Ne;
|
|
29
|
-
function
|
|
29
|
+
function vt() {
|
|
30
30
|
return Ne || (Ne = 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 === ae ? null : c.displayName || c.name || null;
|
|
35
35
|
if (typeof c == "string") return c;
|
|
36
36
|
switch (c) {
|
|
37
|
-
case
|
|
37
|
+
case T:
|
|
38
38
|
return "Fragment";
|
|
39
39
|
case M:
|
|
40
40
|
return "Profiler";
|
|
41
41
|
case I:
|
|
42
42
|
return "StrictMode";
|
|
43
|
-
case
|
|
43
|
+
case be:
|
|
44
44
|
return "Suspense";
|
|
45
45
|
case z:
|
|
46
46
|
return "SuspenseList";
|
|
@@ -51,18 +51,18 @@ function xt() {
|
|
|
51
51
|
switch (typeof c.tag == "number" && console.error(
|
|
52
52
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
53
53
|
), c.$$typeof) {
|
|
54
|
-
case
|
|
54
|
+
case j:
|
|
55
55
|
return "Portal";
|
|
56
|
-
case
|
|
56
|
+
case A:
|
|
57
57
|
return c.displayName || "Context";
|
|
58
|
-
case
|
|
58
|
+
case P:
|
|
59
59
|
return (c._context.displayName || "Context") + ".Consumer";
|
|
60
|
-
case
|
|
60
|
+
case k:
|
|
61
61
|
var f = c.render;
|
|
62
62
|
return c = c.displayName, c || (c = f.displayName || f.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
|
|
63
|
-
case
|
|
63
|
+
case D:
|
|
64
64
|
return f = c.displayName || null, f !== null ? f : e(c.type) || "Memo";
|
|
65
|
-
case
|
|
65
|
+
case pe:
|
|
66
66
|
f = c._payload, c = c._init;
|
|
67
67
|
try {
|
|
68
68
|
return e(c(f));
|
|
@@ -83,17 +83,17 @@ function xt() {
|
|
|
83
83
|
}
|
|
84
84
|
if (f) {
|
|
85
85
|
f = console;
|
|
86
|
-
var C = f.error,
|
|
86
|
+
var C = f.error, S = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
87
87
|
return C.call(
|
|
88
88
|
f,
|
|
89
89
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
90
|
-
|
|
90
|
+
S
|
|
91
91
|
), t(c);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
function n(c) {
|
|
95
|
-
if (c ===
|
|
96
|
-
if (typeof c == "object" && c !== null && c.$$typeof ===
|
|
95
|
+
if (c === T) return "<>";
|
|
96
|
+
if (typeof c == "object" && c !== null && c.$$typeof === pe)
|
|
97
97
|
return "<...>";
|
|
98
98
|
try {
|
|
99
99
|
var f = e(c);
|
|
@@ -103,14 +103,14 @@ function xt() {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function a() {
|
|
106
|
-
var c =
|
|
106
|
+
var c = K.A;
|
|
107
107
|
return c === null ? null : c.getOwner();
|
|
108
108
|
}
|
|
109
109
|
function s() {
|
|
110
110
|
return Error("react-stack-top-frame");
|
|
111
111
|
}
|
|
112
112
|
function i(c) {
|
|
113
|
-
if (
|
|
113
|
+
if (me.call(c, "key")) {
|
|
114
114
|
var f = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
115
115
|
if (f && f.isReactWarning) return !1;
|
|
116
116
|
}
|
|
@@ -118,7 +118,7 @@ function xt() {
|
|
|
118
118
|
}
|
|
119
119
|
function l(c, f) {
|
|
120
120
|
function C() {
|
|
121
|
-
|
|
121
|
+
Q || (Q = !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
|
f
|
|
124
124
|
));
|
|
@@ -130,18 +130,18 @@ function xt() {
|
|
|
130
130
|
}
|
|
131
131
|
function p() {
|
|
132
132
|
var c = e(this.type);
|
|
133
|
-
return
|
|
133
|
+
return X[c] || (X[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, f, C,
|
|
137
|
+
function u(c, f, C, S, F, U) {
|
|
138
138
|
var b = C.ref;
|
|
139
139
|
return c = {
|
|
140
140
|
$$typeof: v,
|
|
141
141
|
type: c,
|
|
142
142
|
key: f,
|
|
143
143
|
props: C,
|
|
144
|
-
_owner:
|
|
144
|
+
_owner: S
|
|
145
145
|
}, (b !== void 0 ? b : null) !== null ? Object.defineProperty(c, "ref", {
|
|
146
146
|
enumerable: !1,
|
|
147
147
|
get: p
|
|
@@ -159,49 +159,49 @@ function xt() {
|
|
|
159
159
|
configurable: !1,
|
|
160
160
|
enumerable: !1,
|
|
161
161
|
writable: !0,
|
|
162
|
-
value:
|
|
162
|
+
value: F
|
|
163
163
|
}), Object.defineProperty(c, "_debugTask", {
|
|
164
164
|
configurable: !1,
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
writable: !0,
|
|
167
|
-
value:
|
|
167
|
+
value: U
|
|
168
168
|
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
169
169
|
}
|
|
170
|
-
function x(c, f, C,
|
|
170
|
+
function x(c, f, C, S, F, U) {
|
|
171
171
|
var b = f.children;
|
|
172
172
|
if (b !== void 0)
|
|
173
|
-
if (
|
|
174
|
-
if (
|
|
175
|
-
for (
|
|
176
|
-
m(b[
|
|
173
|
+
if (S)
|
|
174
|
+
if (fe(b)) {
|
|
175
|
+
for (S = 0; S < b.length; S++)
|
|
176
|
+
m(b[S]);
|
|
177
177
|
Object.freeze && Object.freeze(b);
|
|
178
178
|
} else
|
|
179
179
|
console.error(
|
|
180
180
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
181
181
|
);
|
|
182
182
|
else m(b);
|
|
183
|
-
if (
|
|
183
|
+
if (me.call(f, "key")) {
|
|
184
184
|
b = e(c);
|
|
185
|
-
var
|
|
186
|
-
return
|
|
185
|
+
var G = Object.keys(f).filter(function(ce) {
|
|
186
|
+
return ce !== "key";
|
|
187
187
|
});
|
|
188
|
-
|
|
188
|
+
S = 0 < G.length ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}", ee[b + S] || (G = 0 < G.length ? "{" + G.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
189
189
|
`A props object containing a "key" prop is being spread into JSX:
|
|
190
190
|
let props = %s;
|
|
191
191
|
<%s {...props} />
|
|
192
192
|
React keys must be passed directly to JSX without using spread:
|
|
193
193
|
let props = %s;
|
|
194
194
|
<%s key={someKey} {...props} />`,
|
|
195
|
-
|
|
195
|
+
S,
|
|
196
196
|
b,
|
|
197
|
-
|
|
197
|
+
G,
|
|
198
198
|
b
|
|
199
|
-
),
|
|
199
|
+
), ee[b + S] = !0);
|
|
200
200
|
}
|
|
201
201
|
if (b = null, C !== void 0 && (r(C), b = "" + C), i(f) && (r(f.key), b = "" + f.key), "key" in f) {
|
|
202
202
|
C = {};
|
|
203
|
-
for (var
|
|
204
|
-
|
|
203
|
+
for (var J in f)
|
|
204
|
+
J !== "key" && (C[J] = f[J]);
|
|
205
205
|
} else C = f;
|
|
206
206
|
return b && l(
|
|
207
207
|
C,
|
|
@@ -211,17 +211,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
211
211
|
b,
|
|
212
212
|
C,
|
|
213
213
|
a(),
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
F,
|
|
215
|
+
U
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
218
|
function m(c) {
|
|
219
|
-
g(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof ===
|
|
219
|
+
g(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === pe && (c._payload.status === "fulfilled" ? g(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
|
|
220
220
|
}
|
|
221
221
|
function g(c) {
|
|
222
222
|
return typeof c == "object" && c !== null && c.$$typeof === v;
|
|
223
223
|
}
|
|
224
|
-
var h =
|
|
224
|
+
var h = ht, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), j = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), I = /* @__PURE__ */ Symbol.for("react.strict_mode"), M = /* @__PURE__ */ Symbol.for("react.profiler"), P = /* @__PURE__ */ Symbol.for("react.consumer"), A = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.forward_ref"), be = /* @__PURE__ */ Symbol.for("react.suspense"), z = /* @__PURE__ */ Symbol.for("react.suspense_list"), D = /* @__PURE__ */ Symbol.for("react.memo"), pe = /* @__PURE__ */ Symbol.for("react.lazy"), $e = /* @__PURE__ */ Symbol.for("react.activity"), ae = /* @__PURE__ */ Symbol.for("react.client.reference"), K = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, me = Object.prototype.hasOwnProperty, fe = Array.isArray, W = console.createTask ? console.createTask : function() {
|
|
225
225
|
return null;
|
|
226
226
|
};
|
|
227
227
|
h = {
|
|
@@ -229,41 +229,41 @@ React keys must be passed directly to JSX without using spread:
|
|
|
229
229
|
return c();
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
var
|
|
232
|
+
var Q, X = {}, oe = h.react_stack_bottom_frame.bind(
|
|
233
233
|
h,
|
|
234
234
|
s
|
|
235
|
-
)(),
|
|
236
|
-
|
|
237
|
-
var
|
|
235
|
+
)(), ie = W(n(s)), ee = {};
|
|
236
|
+
ue.Fragment = T, ue.jsx = function(c, f, C) {
|
|
237
|
+
var S = 1e4 > K.recentlyCreatedOwnerStacks++;
|
|
238
238
|
return x(
|
|
239
239
|
c,
|
|
240
240
|
f,
|
|
241
241
|
C,
|
|
242
242
|
!1,
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
S ? Error("react-stack-top-frame") : oe,
|
|
244
|
+
S ? W(n(c)) : ie
|
|
245
245
|
);
|
|
246
|
-
},
|
|
247
|
-
var
|
|
246
|
+
}, ue.jsxs = function(c, f, C) {
|
|
247
|
+
var S = 1e4 > K.recentlyCreatedOwnerStacks++;
|
|
248
248
|
return x(
|
|
249
249
|
c,
|
|
250
250
|
f,
|
|
251
251
|
C,
|
|
252
252
|
!0,
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
S ? Error("react-stack-top-frame") : oe,
|
|
254
|
+
S ? W(n(c)) : ie
|
|
255
255
|
);
|
|
256
256
|
};
|
|
257
|
-
})()),
|
|
257
|
+
})()), ue;
|
|
258
258
|
}
|
|
259
259
|
var Ie;
|
|
260
|
-
function
|
|
261
|
-
return Ie || (Ie = 1, process.env.NODE_ENV === "production" ?
|
|
260
|
+
function bt() {
|
|
261
|
+
return Ie || (Ie = 1, process.env.NODE_ENV === "production" ? ge.exports = wt() : ge.exports = vt()), ge.exports;
|
|
262
262
|
}
|
|
263
|
-
var o =
|
|
264
|
-
const
|
|
265
|
-
const t = Oe(null), [r, n] =
|
|
266
|
-
return
|
|
263
|
+
var o = bt();
|
|
264
|
+
const Ct = ({ children: e }) => {
|
|
265
|
+
const t = Oe(null), [r, n] = R(null);
|
|
266
|
+
return Z(() => {
|
|
267
267
|
if (t.current && !t.current.shadowRoot) {
|
|
268
268
|
const a = t.current.attachShadow({ mode: "open" });
|
|
269
269
|
document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach((l) => {
|
|
@@ -272,19 +272,19 @@ const vt = ({ children: e }) => {
|
|
|
272
272
|
const i = document.createElement("link");
|
|
273
273
|
i.rel = "stylesheet", i.href = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap", a.appendChild(i), n(a);
|
|
274
274
|
}
|
|
275
|
-
}, []), /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ShadowRootWrapper.tsx:38", ref: t, id: "viewgate-shadow-host", children: r &&
|
|
275
|
+
}, []), /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ShadowRootWrapper.tsx:38", ref: t, id: "viewgate-shadow-host", children: r && xt(e, r) });
|
|
276
276
|
};
|
|
277
|
-
const
|
|
278
|
-
const
|
|
279
|
-
const
|
|
277
|
+
const tt = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim();
|
|
278
|
+
const Et = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
279
|
+
const St = (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 Me = (e) => {
|
|
284
|
-
const t =
|
|
284
|
+
const t = St(e);
|
|
285
285
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
286
286
|
};
|
|
287
|
-
var
|
|
287
|
+
var kt = {
|
|
288
288
|
xmlns: "http://www.w3.org/2000/svg",
|
|
289
289
|
width: 24,
|
|
290
290
|
height: 24,
|
|
@@ -295,13 +295,13 @@ var Et = {
|
|
|
295
295
|
strokeLinecap: "round",
|
|
296
296
|
strokeLinejoin: "round"
|
|
297
297
|
};
|
|
298
|
-
const
|
|
298
|
+
const Rt = (e) => {
|
|
299
299
|
for (const t in e)
|
|
300
300
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
301
301
|
return !0;
|
|
302
302
|
return !1;
|
|
303
303
|
};
|
|
304
|
-
const
|
|
304
|
+
const jt = et(
|
|
305
305
|
({
|
|
306
306
|
color: e = "currentColor",
|
|
307
307
|
size: t = 24,
|
|
@@ -315,13 +315,13 @@ const kt = Ke(
|
|
|
315
315
|
"svg",
|
|
316
316
|
{
|
|
317
317
|
ref: p,
|
|
318
|
-
...
|
|
318
|
+
...kt,
|
|
319
319
|
width: t,
|
|
320
320
|
height: t,
|
|
321
321
|
stroke: e,
|
|
322
322
|
strokeWidth: n ? Number(r) * 24 / Number(t) : r,
|
|
323
|
-
className:
|
|
324
|
-
...!s && !
|
|
323
|
+
className: tt("lucide", a),
|
|
324
|
+
...!s && !Rt(l) && { "aria-hidden": "true" },
|
|
325
325
|
...l
|
|
326
326
|
},
|
|
327
327
|
[
|
|
@@ -331,12 +331,12 @@ const kt = Ke(
|
|
|
331
331
|
)
|
|
332
332
|
);
|
|
333
333
|
const N = (e, t) => {
|
|
334
|
-
const r =
|
|
335
|
-
({ className: n, ...a }, s) => _e(
|
|
334
|
+
const r = et(
|
|
335
|
+
({ className: n, ...a }, s) => _e(jt, {
|
|
336
336
|
ref: s,
|
|
337
337
|
iconNode: t,
|
|
338
|
-
className:
|
|
339
|
-
`lucide-${
|
|
338
|
+
className: tt(
|
|
339
|
+
`lucide-${Et(Me(e))}`,
|
|
340
340
|
`lucide-${e}`,
|
|
341
341
|
n
|
|
342
342
|
),
|
|
@@ -345,25 +345,25 @@ const N = (e, t) => {
|
|
|
345
345
|
);
|
|
346
346
|
return r.displayName = Me(e), r;
|
|
347
347
|
};
|
|
348
|
-
const
|
|
348
|
+
const Ot = [
|
|
349
349
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
350
350
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
351
351
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
352
|
-
],
|
|
353
|
-
const
|
|
352
|
+
], _t = N("circle-alert", Ot);
|
|
353
|
+
const Vt = [
|
|
354
354
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
355
355
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
356
|
-
],
|
|
357
|
-
const
|
|
356
|
+
], se = N("circle-check", Vt);
|
|
357
|
+
const Tt = [
|
|
358
358
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
359
359
|
["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
|
|
360
|
-
], ze = N("clock",
|
|
361
|
-
const
|
|
360
|
+
], ze = N("clock", Tt);
|
|
361
|
+
const Pt = [
|
|
362
362
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
363
363
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
364
364
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
365
|
-
], Fe = N("external-link",
|
|
366
|
-
const
|
|
365
|
+
], Fe = N("external-link", Pt);
|
|
366
|
+
const At = [
|
|
367
367
|
[
|
|
368
368
|
"path",
|
|
369
369
|
{
|
|
@@ -372,9 +372,9 @@ const Tt = [
|
|
|
372
372
|
}
|
|
373
373
|
],
|
|
374
374
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
375
|
-
],
|
|
376
|
-
const
|
|
377
|
-
const
|
|
375
|
+
], Gt = N("eye", At);
|
|
376
|
+
const $t = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Lt = N("loader-circle", $t);
|
|
377
|
+
const Nt = [
|
|
378
378
|
[
|
|
379
379
|
"path",
|
|
380
380
|
{
|
|
@@ -382,8 +382,8 @@ const $t = [
|
|
|
382
382
|
key: "18887p"
|
|
383
383
|
}
|
|
384
384
|
]
|
|
385
|
-
], Ce = N("message-square",
|
|
386
|
-
const
|
|
385
|
+
], Ce = N("message-square", Nt);
|
|
386
|
+
const It = [
|
|
387
387
|
[
|
|
388
388
|
"path",
|
|
389
389
|
{
|
|
@@ -391,8 +391,8 @@ const Lt = [
|
|
|
391
391
|
key: "edeuup"
|
|
392
392
|
}
|
|
393
393
|
]
|
|
394
|
-
],
|
|
395
|
-
const
|
|
394
|
+
], Mt = N("mouse-pointer-2", It);
|
|
395
|
+
const zt = [
|
|
396
396
|
[
|
|
397
397
|
"path",
|
|
398
398
|
{
|
|
@@ -401,12 +401,12 @@ const It = [
|
|
|
401
401
|
}
|
|
402
402
|
],
|
|
403
403
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
404
|
-
],
|
|
405
|
-
const
|
|
404
|
+
], Ft = N("pencil", zt);
|
|
405
|
+
const Dt = [
|
|
406
406
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
407
407
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
408
|
-
],
|
|
409
|
-
const
|
|
408
|
+
], Ht = N("rotate-ccw", Dt);
|
|
409
|
+
const Wt = [
|
|
410
410
|
[
|
|
411
411
|
"path",
|
|
412
412
|
{
|
|
@@ -415,18 +415,18 @@ const Dt = [
|
|
|
415
415
|
}
|
|
416
416
|
],
|
|
417
417
|
["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
|
|
418
|
-
],
|
|
419
|
-
const
|
|
418
|
+
], Ut = N("send", Wt);
|
|
419
|
+
const qt = [
|
|
420
420
|
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
421
421
|
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
422
422
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
423
423
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
424
424
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
425
|
-
], De = N("trash-2",
|
|
426
|
-
const
|
|
425
|
+
], De = N("trash-2", qt);
|
|
426
|
+
const Bt = [
|
|
427
427
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
428
428
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
429
|
-
], Ee = N("x",
|
|
429
|
+
], Ee = N("x", Bt), Yt = {
|
|
430
430
|
en: {
|
|
431
431
|
enterMode: "Enter Feedback Mode",
|
|
432
432
|
exitMode: "Exit Mode",
|
|
@@ -519,19 +519,19 @@ const Ut = [
|
|
|
519
519
|
exitConfirmTitle: "¿Cerrar ViewGate?",
|
|
520
520
|
exitConfirmMessage: "¿Estás seguro de que deseas cerrar ViewGate? Puedes volver a activarlo en cualquier momento agregando ?viewgate=true a la URL."
|
|
521
521
|
}
|
|
522
|
-
},
|
|
523
|
-
const e =
|
|
522
|
+
}, rt = gt(void 0), Xt = () => {
|
|
523
|
+
const e = yt(rt);
|
|
524
524
|
if (!e) throw new Error("useViewGate must be used within a ViewGateProvider");
|
|
525
525
|
return e;
|
|
526
|
-
}, Ve = "viewgate_enabled",
|
|
526
|
+
}, Ve = "viewgate_enabled", Jt = () => typeof window > "u" ? !1 : new URLSearchParams(window.location.search).has("viewgate") ? (sessionStorage.setItem(Ve, "true"), !0) : sessionStorage.getItem(Ve) === "true", on = ({
|
|
527
527
|
children: e,
|
|
528
528
|
language: t = "es",
|
|
529
529
|
apiKey: r,
|
|
530
530
|
baseUrl: n = "https://view-gate.vercel.app"
|
|
531
531
|
}) => {
|
|
532
|
-
const [a, s] =
|
|
533
|
-
|
|
534
|
-
s(
|
|
532
|
+
const [a, s] = R(!1), [i, l] = R([]);
|
|
533
|
+
Z(() => {
|
|
534
|
+
s(Jt());
|
|
535
535
|
}, []);
|
|
536
536
|
const p = () => {
|
|
537
537
|
if (sessionStorage.removeItem(Ve), s(!1), typeof window < "u") {
|
|
@@ -541,10 +541,10 @@ const Ut = [
|
|
|
541
541
|
}, u = (m, g) => {
|
|
542
542
|
const h = Date.now();
|
|
543
543
|
l((v) => [...v, { id: h, message: m, type: g }]), setTimeout(() => {
|
|
544
|
-
l((v) => v.filter((
|
|
544
|
+
l((v) => v.filter((j) => j.id !== h));
|
|
545
545
|
}, 4e3);
|
|
546
|
-
}, x =
|
|
547
|
-
return /* @__PURE__ */ o.jsxs(
|
|
546
|
+
}, x = Yt[t];
|
|
547
|
+
return /* @__PURE__ */ o.jsxs(rt.Provider, { "data-source-path": "/src/components/ViewGateProvider.tsx:248", value: {
|
|
548
548
|
addToast: u,
|
|
549
549
|
language: t,
|
|
550
550
|
t: x,
|
|
@@ -554,10 +554,10 @@ const Ut = [
|
|
|
554
554
|
hasActiveToasts: i.length > 0
|
|
555
555
|
}, children: [
|
|
556
556
|
e,
|
|
557
|
-
a && /* @__PURE__ */ o.jsx(
|
|
557
|
+
a && /* @__PURE__ */ o.jsx(Ct, { "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: [
|
|
558
558
|
/* @__PURE__ */ o.jsx(nn, { "data-source-path": "/src/components/ViewGateProvider.tsx:261" }),
|
|
559
559
|
/* @__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: [
|
|
560
|
-
m.type === "success" ? /* @__PURE__ */ o.jsx(
|
|
560
|
+
m.type === "success" ? /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateProvider.tsx:266", size: 24, color: "#22c55e" }) : /* @__PURE__ */ o.jsx(_t, { "data-source-path": "/src/components/ViewGateProvider.tsx:268", size: 24, color: "#ef4444" }),
|
|
561
561
|
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateProvider.tsx:270", children: [
|
|
562
562
|
/* @__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" ? x.successHeader : x.errorHeader }),
|
|
563
563
|
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateProvider.tsx:274", style: { fontSize: "14px", color: "#000000" }, children: m.message })
|
|
@@ -566,7 +566,7 @@ const Ut = [
|
|
|
566
566
|
] }) })
|
|
567
567
|
] });
|
|
568
568
|
};
|
|
569
|
-
function
|
|
569
|
+
function Zt(e, t) {
|
|
570
570
|
if (e.match(/^[a-z]+:\/\//i))
|
|
571
571
|
return e;
|
|
572
572
|
if (e.match(/^\/\//))
|
|
@@ -576,7 +576,7 @@ function Xt(e, t) {
|
|
|
576
576
|
const r = document.implementation.createHTMLDocument(), n = r.createElement("base"), a = r.createElement("a");
|
|
577
577
|
return r.head.appendChild(n), r.body.appendChild(a), t && (n.href = t), a.href = e, a.href;
|
|
578
578
|
}
|
|
579
|
-
const
|
|
579
|
+
const Kt = /* @__PURE__ */ (() => {
|
|
580
580
|
let e = 0;
|
|
581
581
|
const t = () => (
|
|
582
582
|
// eslint-disable-next-line no-bitwise
|
|
@@ -584,33 +584,33 @@ const Jt = /* @__PURE__ */ (() => {
|
|
|
584
584
|
);
|
|
585
585
|
return () => (e += 1, `u${t()}${e}`);
|
|
586
586
|
})();
|
|
587
|
-
function
|
|
587
|
+
function Y(e) {
|
|
588
588
|
const t = [];
|
|
589
589
|
for (let r = 0, n = e.length; r < n; r++)
|
|
590
590
|
t.push(e[r]);
|
|
591
591
|
return t;
|
|
592
592
|
}
|
|
593
|
-
let
|
|
594
|
-
function
|
|
595
|
-
return
|
|
593
|
+
let re = null;
|
|
594
|
+
function nt(e = {}) {
|
|
595
|
+
return re || (e.includeStyleProperties ? (re = e.includeStyleProperties, re) : (re = Y(window.getComputedStyle(document.documentElement)), re));
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function ye(e, t) {
|
|
598
598
|
const n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
|
|
599
599
|
return n ? parseFloat(n.replace("px", "")) : 0;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
const t =
|
|
601
|
+
function Qt(e) {
|
|
602
|
+
const t = ye(e, "border-left-width"), r = ye(e, "border-right-width");
|
|
603
603
|
return e.clientWidth + t + r;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
const t =
|
|
605
|
+
function er(e) {
|
|
606
|
+
const t = ye(e, "border-top-width"), r = ye(e, "border-bottom-width");
|
|
607
607
|
return e.clientHeight + t + r;
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
const r = t.width ||
|
|
609
|
+
function st(e, t = {}) {
|
|
610
|
+
const r = t.width || Qt(e), n = t.height || er(e);
|
|
611
611
|
return { width: r, height: n };
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function tr() {
|
|
614
614
|
let e, t;
|
|
615
615
|
try {
|
|
616
616
|
t = process;
|
|
@@ -620,10 +620,10 @@ function Qt() {
|
|
|
620
620
|
return r && (e = parseInt(r, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
|
|
621
621
|
}
|
|
622
622
|
const L = 16384;
|
|
623
|
-
function
|
|
623
|
+
function rr(e) {
|
|
624
624
|
(e.width > L || e.height > L) && (e.width > L && e.height > L ? e.width > e.height ? (e.height *= L / e.width, e.width = L) : (e.width *= L / e.height, e.height = L) : e.width > L ? (e.height *= L / e.width, e.width = L) : (e.width *= L / e.height, e.height = L));
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function xe(e) {
|
|
627
627
|
return new Promise((t, r) => {
|
|
628
628
|
const n = new Image();
|
|
629
629
|
n.onload = () => {
|
|
@@ -633,50 +633,50 @@ function ye(e) {
|
|
|
633
633
|
}, n.onerror = r, n.crossOrigin = "anonymous", n.decoding = "async", n.src = e;
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
|
-
async function
|
|
636
|
+
async function nr(e) {
|
|
637
637
|
return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((t) => `data:image/svg+xml;charset=utf-8,${t}`);
|
|
638
638
|
}
|
|
639
|
-
async function
|
|
639
|
+
async function sr(e, t, r) {
|
|
640
640
|
const n = "http://www.w3.org/2000/svg", a = document.createElementNS(n, "svg"), s = document.createElementNS(n, "foreignObject");
|
|
641
|
-
return a.setAttribute("width", `${t}`), a.setAttribute("height", `${r}`), a.setAttribute("viewBox", `0 0 ${t} ${r}`), s.setAttribute("width", "100%"), s.setAttribute("height", "100%"), s.setAttribute("x", "0"), s.setAttribute("y", "0"), s.setAttribute("externalResourcesRequired", "true"), a.appendChild(s), s.appendChild(e),
|
|
641
|
+
return a.setAttribute("width", `${t}`), a.setAttribute("height", `${r}`), a.setAttribute("viewBox", `0 0 ${t} ${r}`), s.setAttribute("width", "100%"), s.setAttribute("height", "100%"), s.setAttribute("x", "0"), s.setAttribute("y", "0"), s.setAttribute("externalResourcesRequired", "true"), a.appendChild(s), s.appendChild(e), nr(a);
|
|
642
642
|
}
|
|
643
|
-
const
|
|
643
|
+
const $ = (e, t) => {
|
|
644
644
|
if (e instanceof t)
|
|
645
645
|
return !0;
|
|
646
646
|
const r = Object.getPrototypeOf(e);
|
|
647
|
-
return r === null ? !1 : r.constructor.name === t.name ||
|
|
647
|
+
return r === null ? !1 : r.constructor.name === t.name || $(r, t);
|
|
648
648
|
};
|
|
649
|
-
function
|
|
649
|
+
function ar(e) {
|
|
650
650
|
const t = e.getPropertyValue("content");
|
|
651
651
|
return `${e.cssText} content: '${t.replace(/'|"/g, "")}';`;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
return
|
|
653
|
+
function or(e, t) {
|
|
654
|
+
return nt(t).map((r) => {
|
|
655
655
|
const n = e.getPropertyValue(r), a = e.getPropertyPriority(r);
|
|
656
656
|
return `${r}: ${n}${a ? " !important" : ""};`;
|
|
657
657
|
}).join(" ");
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
const a = `.${e}:${t}`, s = r.cssText ?
|
|
659
|
+
function ir(e, t, r, n) {
|
|
660
|
+
const a = `.${e}:${t}`, s = r.cssText ? ar(r) : or(r, n);
|
|
661
661
|
return document.createTextNode(`${a}{${s}}`);
|
|
662
662
|
}
|
|
663
663
|
function He(e, t, r, n) {
|
|
664
664
|
const a = window.getComputedStyle(e, r), s = a.getPropertyValue("content");
|
|
665
665
|
if (s === "" || s === "none")
|
|
666
666
|
return;
|
|
667
|
-
const i =
|
|
667
|
+
const i = Kt();
|
|
668
668
|
try {
|
|
669
669
|
t.className = `${t.className} ${i}`;
|
|
670
670
|
} catch {
|
|
671
671
|
return;
|
|
672
672
|
}
|
|
673
673
|
const l = document.createElement("style");
|
|
674
|
-
l.appendChild(
|
|
674
|
+
l.appendChild(ir(i, r, a, n)), t.appendChild(l);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function cr(e, t, r) {
|
|
677
677
|
He(e, t, ":before", r), He(e, t, ":after", r);
|
|
678
678
|
}
|
|
679
|
-
const We = "application/font-woff", Ue = "image/jpeg",
|
|
679
|
+
const We = "application/font-woff", Ue = "image/jpeg", lr = {
|
|
680
680
|
woff: We,
|
|
681
681
|
woff2: We,
|
|
682
682
|
ttf: "application/font-truetype",
|
|
@@ -689,24 +689,24 @@ const We = "application/font-woff", Ue = "image/jpeg", ir = {
|
|
|
689
689
|
svg: "image/svg+xml",
|
|
690
690
|
webp: "image/webp"
|
|
691
691
|
};
|
|
692
|
-
function
|
|
692
|
+
function dr(e) {
|
|
693
693
|
const t = /\.([^./]*?)$/g.exec(e);
|
|
694
694
|
return t ? t[1] : "";
|
|
695
695
|
}
|
|
696
696
|
function Ae(e) {
|
|
697
|
-
const t =
|
|
698
|
-
return
|
|
697
|
+
const t = dr(e).toLowerCase();
|
|
698
|
+
return lr[t] || "";
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function ur(e) {
|
|
701
701
|
return e.split(/,/)[1];
|
|
702
702
|
}
|
|
703
703
|
function Te(e) {
|
|
704
704
|
return e.search(/^(data:)/) !== -1;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function pr(e, t) {
|
|
707
707
|
return `data:${t};base64,${e}`;
|
|
708
708
|
}
|
|
709
|
-
async function
|
|
709
|
+
async function at(e, t, r) {
|
|
710
710
|
const n = await fetch(e, t);
|
|
711
711
|
if (n.status === 404)
|
|
712
712
|
throw new Error(`Resource "${n.url}" not found`);
|
|
@@ -723,19 +723,19 @@ async function nt(e, t, r) {
|
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
725
|
const Se = {};
|
|
726
|
-
function
|
|
726
|
+
function mr(e, t, r) {
|
|
727
727
|
let n = e.replace(/\?.*/, "");
|
|
728
728
|
return r && (n = e), /ttf|otf|eot|woff2?/i.test(n) && (n = n.replace(/.*\//, "")), t ? `[${t}]${n}` : n;
|
|
729
729
|
}
|
|
730
730
|
async function Ge(e, t, r) {
|
|
731
|
-
const n =
|
|
731
|
+
const n = mr(e, t, r.includeQueryParams);
|
|
732
732
|
if (Se[n] != null)
|
|
733
733
|
return Se[n];
|
|
734
734
|
r.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
|
|
735
735
|
let a;
|
|
736
736
|
try {
|
|
737
|
-
const s = await
|
|
738
|
-
a =
|
|
737
|
+
const s = await at(e, r.fetchRequestInit, ({ res: i, result: l }) => (t || (t = i.headers.get("Content-Type") || ""), ur(l)));
|
|
738
|
+
a = pr(s, t);
|
|
739
739
|
} catch (s) {
|
|
740
740
|
a = r.imagePlaceholder || "";
|
|
741
741
|
let i = `Failed to fetch resource: ${e}`;
|
|
@@ -743,65 +743,65 @@ async function Ge(e, t, r) {
|
|
|
743
743
|
}
|
|
744
744
|
return Se[n] = a, a;
|
|
745
745
|
}
|
|
746
|
-
async function
|
|
746
|
+
async function fr(e) {
|
|
747
747
|
const t = e.toDataURL();
|
|
748
|
-
return t === "data:," ? e.cloneNode(!1) :
|
|
748
|
+
return t === "data:," ? e.cloneNode(!1) : xe(t);
|
|
749
749
|
}
|
|
750
|
-
async function
|
|
750
|
+
async function hr(e, t) {
|
|
751
751
|
if (e.currentSrc) {
|
|
752
752
|
const s = document.createElement("canvas"), i = s.getContext("2d");
|
|
753
753
|
s.width = e.clientWidth, s.height = e.clientHeight, i?.drawImage(e, 0, 0, s.width, s.height);
|
|
754
754
|
const l = s.toDataURL();
|
|
755
|
-
return
|
|
755
|
+
return xe(l);
|
|
756
756
|
}
|
|
757
757
|
const r = e.poster, n = Ae(r), a = await Ge(r, n, t);
|
|
758
|
-
return
|
|
758
|
+
return xe(a);
|
|
759
759
|
}
|
|
760
|
-
async function
|
|
760
|
+
async function gr(e, t) {
|
|
761
761
|
var r;
|
|
762
762
|
try {
|
|
763
763
|
if (!((r = e?.contentDocument) === null || r === void 0) && r.body)
|
|
764
|
-
return await
|
|
764
|
+
return await we(e.contentDocument.body, t, !0);
|
|
765
765
|
} catch {
|
|
766
766
|
}
|
|
767
767
|
return e.cloneNode(!1);
|
|
768
768
|
}
|
|
769
|
-
async function
|
|
770
|
-
return
|
|
769
|
+
async function yr(e, t) {
|
|
770
|
+
return $(e, HTMLCanvasElement) ? fr(e) : $(e, HTMLVideoElement) ? hr(e, t) : $(e, HTMLIFrameElement) ? gr(e, t) : e.cloneNode(ot(e));
|
|
771
771
|
}
|
|
772
|
-
const
|
|
773
|
-
async function
|
|
772
|
+
const xr = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", ot = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
|
|
773
|
+
async function wr(e, t, r) {
|
|
774
774
|
var n, a;
|
|
775
|
-
if (
|
|
775
|
+
if (ot(t))
|
|
776
776
|
return t;
|
|
777
777
|
let s = [];
|
|
778
|
-
return
|
|
778
|
+
return xr(e) && e.assignedNodes ? s = Y(e.assignedNodes()) : $(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = Y(e.contentDocument.body.childNodes) : s = Y(((a = e.shadowRoot) !== null && a !== void 0 ? a : e).childNodes), s.length === 0 || $(e, HTMLVideoElement) || await s.reduce((i, l) => i.then(() => we(l, r)).then((p) => {
|
|
779
779
|
p && t.appendChild(p);
|
|
780
780
|
}), Promise.resolve()), t;
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function vr(e, t, r) {
|
|
783
783
|
const n = t.style;
|
|
784
784
|
if (!n)
|
|
785
785
|
return;
|
|
786
786
|
const a = window.getComputedStyle(e);
|
|
787
|
-
a.cssText ? (n.cssText = a.cssText, n.transformOrigin = a.transformOrigin) :
|
|
787
|
+
a.cssText ? (n.cssText = a.cssText, n.transformOrigin = a.transformOrigin) : nt(r).forEach((s) => {
|
|
788
788
|
let i = a.getPropertyValue(s);
|
|
789
|
-
s === "font-size" && i.endsWith("px") && (i = `${Math.floor(parseFloat(i.substring(0, i.length - 2))) - 0.1}px`),
|
|
789
|
+
s === "font-size" && i.endsWith("px") && (i = `${Math.floor(parseFloat(i.substring(0, i.length - 2))) - 0.1}px`), $(e, HTMLIFrameElement) && s === "display" && i === "inline" && (i = "block"), s === "d" && t.getAttribute("d") && (i = `path(${t.getAttribute("d")})`), n.setProperty(s, i, a.getPropertyPriority(s));
|
|
790
790
|
});
|
|
791
791
|
}
|
|
792
|
-
function
|
|
793
|
-
|
|
792
|
+
function br(e, t) {
|
|
793
|
+
$(e, HTMLTextAreaElement) && (t.innerHTML = e.value), $(e, HTMLInputElement) && t.setAttribute("value", e.value);
|
|
794
794
|
}
|
|
795
|
-
function
|
|
796
|
-
if (
|
|
795
|
+
function Cr(e, t) {
|
|
796
|
+
if ($(e, HTMLSelectElement)) {
|
|
797
797
|
const n = Array.from(t.children).find((a) => e.value === a.getAttribute("value"));
|
|
798
798
|
n && n.setAttribute("selected", "");
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
function
|
|
802
|
-
return
|
|
801
|
+
function Er(e, t, r) {
|
|
802
|
+
return $(t, Element) && (vr(e, t, r), cr(e, t, r), br(e, t), Cr(e, t)), t;
|
|
803
803
|
}
|
|
804
|
-
async function
|
|
804
|
+
async function Sr(e, t) {
|
|
805
805
|
const r = e.querySelectorAll ? e.querySelectorAll("use") : [];
|
|
806
806
|
if (r.length === 0)
|
|
807
807
|
return e;
|
|
@@ -810,7 +810,7 @@ async function Cr(e, t) {
|
|
|
810
810
|
const l = r[s].getAttribute("xlink:href");
|
|
811
811
|
if (l) {
|
|
812
812
|
const p = e.querySelector(l), u = document.querySelector(l);
|
|
813
|
-
!p && u && !n[l] && (n[l] = await
|
|
813
|
+
!p && u && !n[l] && (n[l] = await we(u, t, !0));
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
816
|
const a = Object.values(n);
|
|
@@ -825,31 +825,31 @@ async function Cr(e, t) {
|
|
|
825
825
|
}
|
|
826
826
|
return e;
|
|
827
827
|
}
|
|
828
|
-
async function
|
|
829
|
-
return !r && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((n) =>
|
|
828
|
+
async function we(e, t, r) {
|
|
829
|
+
return !r && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((n) => yr(n, t)).then((n) => wr(e, n, t)).then((n) => Er(e, n, t)).then((n) => Sr(n, t));
|
|
830
830
|
}
|
|
831
|
-
const
|
|
832
|
-
function
|
|
831
|
+
const it = /url\((['"]?)([^'"]+?)\1\)/g, kr = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, Rr = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
|
|
832
|
+
function jr(e) {
|
|
833
833
|
const t = e.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1");
|
|
834
834
|
return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`, "g");
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function Or(e) {
|
|
837
837
|
const t = [];
|
|
838
|
-
return e.replace(
|
|
838
|
+
return e.replace(it, (r, n, a) => (t.push(a), r)), t.filter((r) => !Te(r));
|
|
839
839
|
}
|
|
840
|
-
async function
|
|
840
|
+
async function _r(e, t, r, n, a) {
|
|
841
841
|
try {
|
|
842
|
-
const s = r ?
|
|
842
|
+
const s = r ? Zt(t, r) : t, i = Ae(t);
|
|
843
843
|
let l;
|
|
844
|
-
return a || (l = await Ge(s, i, n)), e.replace(
|
|
844
|
+
return a || (l = await Ge(s, i, n)), e.replace(jr(t), `$1${l}$3`);
|
|
845
845
|
} catch {
|
|
846
846
|
}
|
|
847
847
|
return e;
|
|
848
848
|
}
|
|
849
|
-
function
|
|
850
|
-
return t ? e.replace(
|
|
849
|
+
function Vr(e, { preferredFontFormat: t }) {
|
|
850
|
+
return t ? e.replace(Rr, (r) => {
|
|
851
851
|
for (; ; ) {
|
|
852
|
-
const [n, , a] =
|
|
852
|
+
const [n, , a] = kr.exec(r) || [];
|
|
853
853
|
if (!a)
|
|
854
854
|
return "";
|
|
855
855
|
if (a === t)
|
|
@@ -857,30 +857,30 @@ function Or(e, { preferredFontFormat: t }) {
|
|
|
857
857
|
}
|
|
858
858
|
}) : e;
|
|
859
859
|
}
|
|
860
|
-
function
|
|
861
|
-
return e.search(
|
|
860
|
+
function ct(e) {
|
|
861
|
+
return e.search(it) !== -1;
|
|
862
862
|
}
|
|
863
|
-
async function
|
|
864
|
-
if (!
|
|
863
|
+
async function lt(e, t, r) {
|
|
864
|
+
if (!ct(e))
|
|
865
865
|
return e;
|
|
866
|
-
const n =
|
|
867
|
-
return
|
|
866
|
+
const n = Vr(e, r);
|
|
867
|
+
return Or(n).reduce((s, i) => s.then((l) => _r(l, i, t, r)), Promise.resolve(n));
|
|
868
868
|
}
|
|
869
|
-
async function
|
|
869
|
+
async function ne(e, t, r) {
|
|
870
870
|
var n;
|
|
871
871
|
const a = (n = t.style) === null || n === void 0 ? void 0 : n.getPropertyValue(e);
|
|
872
872
|
if (a) {
|
|
873
|
-
const s = await
|
|
873
|
+
const s = await lt(a, null, r);
|
|
874
874
|
return t.style.setProperty(e, s, t.style.getPropertyPriority(e)), !0;
|
|
875
875
|
}
|
|
876
876
|
return !1;
|
|
877
877
|
}
|
|
878
|
-
async function
|
|
879
|
-
await
|
|
878
|
+
async function Tr(e, t) {
|
|
879
|
+
await ne("background", e, t) || await ne("background-image", e, t), await ne("mask", e, t) || await ne("-webkit-mask", e, t) || await ne("mask-image", e, t) || await ne("-webkit-mask-image", e, t);
|
|
880
880
|
}
|
|
881
|
-
async function
|
|
882
|
-
const r =
|
|
883
|
-
if (!(r && !Te(e.src)) && !(
|
|
881
|
+
async function Pr(e, t) {
|
|
882
|
+
const r = $(e, HTMLImageElement);
|
|
883
|
+
if (!(r && !Te(e.src)) && !($(e, SVGImageElement) && !Te(e.href.baseVal)))
|
|
884
884
|
return;
|
|
885
885
|
const n = r ? e.src : e.href.baseVal, a = await Ge(n, Ae(n), t);
|
|
886
886
|
await new Promise((s, i) => {
|
|
@@ -895,14 +895,14 @@ async function Vr(e, t) {
|
|
|
895
895
|
l.decode && (l.decode = s), l.loading === "lazy" && (l.loading = "eager"), r ? (e.srcset = "", e.src = a) : e.href.baseVal = a;
|
|
896
896
|
});
|
|
897
897
|
}
|
|
898
|
-
async function
|
|
899
|
-
const n =
|
|
898
|
+
async function Ar(e, t) {
|
|
899
|
+
const n = Y(e.childNodes).map((a) => dt(a, t));
|
|
900
900
|
await Promise.all(n).then(() => e);
|
|
901
901
|
}
|
|
902
|
-
async function
|
|
903
|
-
|
|
902
|
+
async function dt(e, t) {
|
|
903
|
+
$(e, Element) && (await Tr(e, t), await Pr(e, t), await Ar(e, t));
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function Gr(e, t) {
|
|
906
906
|
const { style: r } = e;
|
|
907
907
|
t.backgroundColor && (r.backgroundColor = t.backgroundColor), t.width && (r.width = `${t.width}px`), t.height && (r.height = `${t.height}px`);
|
|
908
908
|
const n = t.style;
|
|
@@ -922,7 +922,7 @@ async function Ye(e, t) {
|
|
|
922
922
|
let r = e.cssText;
|
|
923
923
|
const n = /url\(["']?([^"')]+)["']?\)/g, s = (r.match(/url\([^)]+\)/g) || []).map(async (i) => {
|
|
924
924
|
let l = i.replace(n, "$1");
|
|
925
|
-
return l.startsWith("https://") || (l = new URL(l, e.url).href),
|
|
925
|
+
return l.startsWith("https://") || (l = new URL(l, e.url).href), at(l, t.fetchRequestInit, ({ result: p }) => (r = r.replace(i, `url(${p})`), [i, p]));
|
|
926
926
|
});
|
|
927
927
|
return Promise.all(s).then(() => r);
|
|
928
928
|
}
|
|
@@ -952,12 +952,12 @@ function Xe(e) {
|
|
|
952
952
|
}
|
|
953
953
|
return t;
|
|
954
954
|
}
|
|
955
|
-
async function
|
|
955
|
+
async function $r(e, t) {
|
|
956
956
|
const r = [], n = [];
|
|
957
957
|
return e.forEach((a) => {
|
|
958
958
|
if ("cssRules" in a)
|
|
959
959
|
try {
|
|
960
|
-
|
|
960
|
+
Y(a.cssRules || []).forEach((s, i) => {
|
|
961
961
|
if (s.type === CSSRule.IMPORT_RULE) {
|
|
962
962
|
let l = i + 1;
|
|
963
963
|
const p = s.href, u = Be(p).then((x) => Ye(x, t)).then((x) => Xe(x).forEach((m) => {
|
|
@@ -986,7 +986,7 @@ async function Ar(e, t) {
|
|
|
986
986
|
}), Promise.all(n).then(() => (e.forEach((a) => {
|
|
987
987
|
if ("cssRules" in a)
|
|
988
988
|
try {
|
|
989
|
-
|
|
989
|
+
Y(a.cssRules || []).forEach((s) => {
|
|
990
990
|
r.push(s);
|
|
991
991
|
});
|
|
992
992
|
} catch (s) {
|
|
@@ -994,66 +994,66 @@ async function Ar(e, t) {
|
|
|
994
994
|
}
|
|
995
995
|
}), r));
|
|
996
996
|
}
|
|
997
|
-
function
|
|
998
|
-
return e.filter((t) => t.type === CSSRule.FONT_FACE_RULE).filter((t) =>
|
|
997
|
+
function Lr(e) {
|
|
998
|
+
return e.filter((t) => t.type === CSSRule.FONT_FACE_RULE).filter((t) => ct(t.style.getPropertyValue("src")));
|
|
999
999
|
}
|
|
1000
|
-
async function
|
|
1000
|
+
async function Nr(e, t) {
|
|
1001
1001
|
if (e.ownerDocument == null)
|
|
1002
1002
|
throw new Error("Provided element is not within a Document");
|
|
1003
|
-
const r =
|
|
1004
|
-
return
|
|
1003
|
+
const r = Y(e.ownerDocument.styleSheets), n = await $r(r, t);
|
|
1004
|
+
return Lr(n);
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function ut(e) {
|
|
1007
1007
|
return e.trim().replace(/["']/g, "");
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function Ir(e) {
|
|
1010
1010
|
const t = /* @__PURE__ */ new Set();
|
|
1011
1011
|
function r(n) {
|
|
1012
1012
|
(n.style.fontFamily || getComputedStyle(n).fontFamily).split(",").forEach((s) => {
|
|
1013
|
-
t.add(
|
|
1013
|
+
t.add(ut(s));
|
|
1014
1014
|
}), Array.from(n.children).forEach((s) => {
|
|
1015
1015
|
s instanceof HTMLElement && r(s);
|
|
1016
1016
|
});
|
|
1017
1017
|
}
|
|
1018
1018
|
return r(e), t;
|
|
1019
1019
|
}
|
|
1020
|
-
async function
|
|
1021
|
-
const r = await
|
|
1022
|
-
return (await Promise.all(r.filter((s) => n.has(
|
|
1020
|
+
async function Mr(e, t) {
|
|
1021
|
+
const r = await Nr(e, t), n = Ir(e);
|
|
1022
|
+
return (await Promise.all(r.filter((s) => n.has(ut(s.style.fontFamily))).map((s) => {
|
|
1023
1023
|
const i = s.parentStyleSheet ? s.parentStyleSheet.href : null;
|
|
1024
|
-
return
|
|
1024
|
+
return lt(s.cssText, i, t);
|
|
1025
1025
|
}))).join(`
|
|
1026
1026
|
`);
|
|
1027
1027
|
}
|
|
1028
|
-
async function
|
|
1029
|
-
const r = t.fontEmbedCSS != null ? t.fontEmbedCSS : t.skipFonts ? null : await
|
|
1028
|
+
async function zr(e, t) {
|
|
1029
|
+
const r = t.fontEmbedCSS != null ? t.fontEmbedCSS : t.skipFonts ? null : await Mr(e, t);
|
|
1030
1030
|
if (r) {
|
|
1031
1031
|
const n = document.createElement("style"), a = document.createTextNode(r);
|
|
1032
1032
|
n.appendChild(a), e.firstChild ? e.insertBefore(n, e.firstChild) : e.appendChild(n);
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
|
-
async function
|
|
1036
|
-
const { width: r, height: n } =
|
|
1037
|
-
return await
|
|
1035
|
+
async function Fr(e, t = {}) {
|
|
1036
|
+
const { width: r, height: n } = st(e, t), a = await we(e, t, !0);
|
|
1037
|
+
return await zr(a, t), await dt(a, t), Gr(a, t), await sr(a, r, n);
|
|
1038
1038
|
}
|
|
1039
|
-
async function
|
|
1040
|
-
const { width: r, height: n } =
|
|
1041
|
-
return i.width = u * p, i.height = x * p, t.skipAutoScale ||
|
|
1039
|
+
async function Dr(e, t = {}) {
|
|
1040
|
+
const { width: r, height: n } = st(e, t), a = await Fr(e, t), s = await xe(a), i = document.createElement("canvas"), l = i.getContext("2d"), p = t.pixelRatio || tr(), u = t.canvasWidth || r, x = t.canvasHeight || n;
|
|
1041
|
+
return i.width = u * p, i.height = x * p, t.skipAutoScale || rr(i), i.style.width = `${u}`, i.style.height = `${x}`, t.backgroundColor && (l.fillStyle = t.backgroundColor, l.fillRect(0, 0, i.width, i.height)), l.drawImage(s, 0, 0, i.width, i.height), i;
|
|
1042
1042
|
}
|
|
1043
|
-
async function
|
|
1044
|
-
return (await
|
|
1043
|
+
async function Je(e, t = {}) {
|
|
1044
|
+
return (await Dr(e, t)).toDataURL("image/jpeg", t.quality || 1);
|
|
1045
1045
|
}
|
|
1046
|
-
const
|
|
1046
|
+
const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 15, qr = () => {
|
|
1047
1047
|
const e = window.innerWidth;
|
|
1048
1048
|
return e < 768 ? "mobile" : e < 1024 ? "tablet" : "desktop";
|
|
1049
|
-
},
|
|
1049
|
+
}, Br = (e) => {
|
|
1050
1050
|
let t = 0;
|
|
1051
1051
|
for (let r = 0; r < e.length; r++) {
|
|
1052
1052
|
const n = e.charCodeAt(r);
|
|
1053
1053
|
t = (t << 5) - t + n, t = t & t;
|
|
1054
1054
|
}
|
|
1055
1055
|
return Math.abs(t).toString(16);
|
|
1056
|
-
},
|
|
1056
|
+
}, Yr = (e, t) => {
|
|
1057
1057
|
if (!e) return "";
|
|
1058
1058
|
try {
|
|
1059
1059
|
const r = new Date(e);
|
|
@@ -1068,10 +1068,10 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1068
1068
|
} catch {
|
|
1069
1069
|
return "";
|
|
1070
1070
|
}
|
|
1071
|
-
},
|
|
1071
|
+
}, Xr = (e) => {
|
|
1072
1072
|
const t = (e.innerText || "").slice(0, 30).trim(), r = {
|
|
1073
1073
|
tag: e.tagName.toLowerCase(),
|
|
1074
|
-
classHash:
|
|
1074
|
+
classHash: Br(e.className),
|
|
1075
1075
|
textSnippet: t,
|
|
1076
1076
|
parentTag: e.parentElement?.tagName.toLowerCase(),
|
|
1077
1077
|
neighborCount: e.parentElement?.children.length || 0
|
|
@@ -1081,7 +1081,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1081
1081
|
a && (r.role = a);
|
|
1082
1082
|
const s = e.getAttribute("name");
|
|
1083
1083
|
return s && (r.name = s), r;
|
|
1084
|
-
},
|
|
1084
|
+
}, Jr = /* @__PURE__ */ (() => {
|
|
1085
1085
|
let e = null, t = null;
|
|
1086
1086
|
return (r) => {
|
|
1087
1087
|
if (!r || typeof window > "u" || typeof document > "u") return r;
|
|
@@ -1102,7 +1102,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1102
1102
|
}
|
|
1103
1103
|
return r;
|
|
1104
1104
|
};
|
|
1105
|
-
})(),
|
|
1105
|
+
})(), Ze = (e, t, r, n) => new Promise((a) => {
|
|
1106
1106
|
const s = new Image();
|
|
1107
1107
|
s.onload = () => {
|
|
1108
1108
|
const i = document.createElement("canvas"), l = window.devicePixelRatio || 1, p = t.width + r * 2, u = t.height + r * 2;
|
|
@@ -1110,15 +1110,15 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1110
1110
|
const x = i.getContext("2d");
|
|
1111
1111
|
if (x) {
|
|
1112
1112
|
x.scale(l, l);
|
|
1113
|
-
let m = (t.left - r) * n, g = (t.top - r) * n, h = p * n, v = u * n,
|
|
1114
|
-
m < 0 && (
|
|
1113
|
+
let m = (t.left - r) * n, g = (t.top - r) * n, h = p * n, v = u * n, j = 0, T = 0, I = p, M = u;
|
|
1114
|
+
m < 0 && (j = Math.abs(m) / n, h += m, I -= j, m = 0), m + h > s.width && (h = s.width - m, I = h / n), g < 0 && (T = Math.abs(g) / n, v += g, M -= T, g = 0), g + v > s.height && (v = s.height - g, M = v / n), x.fillStyle = "#f8fafc", x.fillRect(0, 0, p, u), h > 0 && v > 0 && x.drawImage(
|
|
1115
1115
|
s,
|
|
1116
1116
|
m,
|
|
1117
1117
|
g,
|
|
1118
1118
|
h,
|
|
1119
1119
|
v,
|
|
1120
|
-
|
|
1121
|
-
|
|
1120
|
+
j,
|
|
1121
|
+
T,
|
|
1122
1122
|
I,
|
|
1123
1123
|
M
|
|
1124
1124
|
);
|
|
@@ -1140,7 +1140,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1140
1140
|
"z-index"
|
|
1141
1141
|
].forEach((a) => {
|
|
1142
1142
|
const s = t.getPropertyValue(a);
|
|
1143
|
-
r[a] =
|
|
1143
|
+
r[a] = Jr(s);
|
|
1144
1144
|
}), r;
|
|
1145
1145
|
}, Kr = (e) => {
|
|
1146
1146
|
const r = Object.keys(e).find((s) => s.startsWith("__reactFiber$") || s.startsWith("__reactInternalInstance$"));
|
|
@@ -1156,13 +1156,13 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1156
1156
|
a = a.return;
|
|
1157
1157
|
}
|
|
1158
1158
|
return n.join(" > ") || "Generic Component";
|
|
1159
|
-
},
|
|
1159
|
+
}, pt = (e) => {
|
|
1160
1160
|
if (!e) return !1;
|
|
1161
1161
|
const t = window.getComputedStyle(e), r = e.getBoundingClientRect(), n = e.getAttribute("role");
|
|
1162
1162
|
if (n && ["listbox", "menu", "combobox", "tooltip", "option"].includes(n)) return !1;
|
|
1163
1163
|
const s = 120;
|
|
1164
1164
|
return r.width < s && r.height < s || t.position !== "fixed" && t.position !== "absolute" ? !1 : !!(e.closest('[role="dialog"]') || e.closest('[aria-modal="true"]') || e.classList.contains("modal") || e.classList.contains("modal-content"));
|
|
1165
|
-
},
|
|
1165
|
+
}, Ke = (e) => {
|
|
1166
1166
|
if (!e.isConnected) return !1;
|
|
1167
1167
|
const t = window.getComputedStyle(e);
|
|
1168
1168
|
if (t.display === "none" || t.visibility === "hidden" || t.opacity === "0" || e.offsetWidth === 0 || e.offsetHeight === 0) return !1;
|
|
@@ -1186,7 +1186,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
1188
|
return null;
|
|
1189
|
-
},
|
|
1189
|
+
}, Qe = (e, t) => {
|
|
1190
1190
|
let r = document.elementFromPoint(e, t);
|
|
1191
1191
|
for (; r && r.shadowRoot; ) {
|
|
1192
1192
|
const n = r.shadowRoot.elementFromPoint(e, t);
|
|
@@ -1246,16 +1246,16 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1246
1246
|
for (; h && h.nodeType === Node.ELEMENT_NODE; ) {
|
|
1247
1247
|
let v = h.nodeName.toLowerCase();
|
|
1248
1248
|
s.unshift(v);
|
|
1249
|
-
const
|
|
1250
|
-
|
|
1251
|
-
const
|
|
1252
|
-
|
|
1253
|
-
const I = h.getAttribute("aria-label"), M = h.getAttribute("role"),
|
|
1254
|
-
if (
|
|
1255
|
-
v = `[${h.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${
|
|
1249
|
+
const j = h.id && !h.id.startsWith("__") ? h.id : null;
|
|
1250
|
+
j && a.push(`#${j}`);
|
|
1251
|
+
const T = h.getAttribute("data-testid") || h.getAttribute("data-qa");
|
|
1252
|
+
T && a.push(`[data-testid="${T}"]`);
|
|
1253
|
+
const I = h.getAttribute("aria-label"), M = h.getAttribute("role"), P = h.getAttribute("name");
|
|
1254
|
+
if (T) {
|
|
1255
|
+
v = `[${h.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${T}"]`, g.unshift(v);
|
|
1256
1256
|
break;
|
|
1257
|
-
} else if (
|
|
1258
|
-
v = "#" +
|
|
1257
|
+
} else if (j) {
|
|
1258
|
+
v = "#" + j, g.unshift(v);
|
|
1259
1259
|
break;
|
|
1260
1260
|
} else if (I) {
|
|
1261
1261
|
v = `${h.localName}[aria-label="${I}"]`, g.unshift(v);
|
|
@@ -1263,19 +1263,19 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1263
1263
|
} else if (M) {
|
|
1264
1264
|
v = `${h.localName}[role="${M}"]`, g.unshift(v);
|
|
1265
1265
|
break;
|
|
1266
|
-
} else if (
|
|
1267
|
-
v = `${h.localName}[name="${
|
|
1266
|
+
} else if (P) {
|
|
1267
|
+
v = `${h.localName}[name="${P}"]`, g.unshift(v);
|
|
1268
1268
|
break;
|
|
1269
1269
|
} else {
|
|
1270
|
-
let
|
|
1271
|
-
for (;
|
|
1272
|
-
|
|
1273
|
-
|
|
1270
|
+
let A = h, k = 1;
|
|
1271
|
+
for (; A.previousElementSibling; )
|
|
1272
|
+
A = A.previousElementSibling, A.nodeName.toLowerCase() === h.nodeName.toLowerCase() && k++;
|
|
1273
|
+
k > 1 && (v += `:nth-of-type(${k})`);
|
|
1274
1274
|
}
|
|
1275
1275
|
g.unshift(v), h = h.parentElement;
|
|
1276
1276
|
}
|
|
1277
1277
|
return g.join(" > ");
|
|
1278
|
-
}, l =
|
|
1278
|
+
}, l = pt(e.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')), p = i(e), u = {};
|
|
1279
1279
|
["placeholder", "aria-label", "name", "type", "alt", "title", "value", "role"].forEach((m) => {
|
|
1280
1280
|
const g = e.getAttribute(m);
|
|
1281
1281
|
g && (u[m] = g);
|
|
@@ -1297,63 +1297,63 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1297
1297
|
domPath: s.slice(-10),
|
|
1298
1298
|
viewportSize: { width: window.innerWidth, height: window.innerHeight },
|
|
1299
1299
|
uiContext: tn(e),
|
|
1300
|
-
fingerprint:
|
|
1300
|
+
fingerprint: Xr(e),
|
|
1301
1301
|
metadata: {
|
|
1302
1302
|
hint: `Edit ${t.split(":")[0]} at line ${t.split(":")[1] || "?"}`,
|
|
1303
1303
|
computedStyles: Zr(e),
|
|
1304
|
-
viewportBreakpoint:
|
|
1304
|
+
viewportBreakpoint: qr(),
|
|
1305
1305
|
outerHtml: e.outerHTML.slice(0, 1500),
|
|
1306
1306
|
scrollPosition: { x: window.scrollX, y: window.scrollY },
|
|
1307
1307
|
isModal: l
|
|
1308
1308
|
}
|
|
1309
1309
|
};
|
|
1310
1310
|
}, nn = () => {
|
|
1311
|
-
const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: i } =
|
|
1312
|
-
|
|
1313
|
-
const d = {}, y = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((O) =>
|
|
1314
|
-
|
|
1311
|
+
const { addToast: e, language: t, t: r, apiKey: n, baseUrl: a, disableViewGate: s, hasActiveToasts: i } = Xt(), [l, p] = R(!1), [u, x] = R(null), [m, g] = R(null), [h, v] = R(""), [j, T] = R(!1), [I, M] = R(!1), [P, A] = R(!1), [k, be] = R([]), [z, D] = R(null), [pe, $e] = R(!1), [ae, K] = R(!1), [me, fe] = R({}), [W, Q] = R(null), [X, oe] = R(!1), [ie, ee] = R(null), [c, f] = R(""), [C, S] = R({}), F = Oe(null), U = Oe(null), b = he(() => {
|
|
1312
|
+
U.current || (U.current = requestAnimationFrame(() => {
|
|
1313
|
+
const d = {}, y = Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], .modal, .modal-content')).find((O) => pt(O) && Ke(O)), H = !!y;
|
|
1314
|
+
k.forEach((O) => {
|
|
1315
1315
|
if (!O.reference) return;
|
|
1316
|
-
const _ = en(O.reference),
|
|
1317
|
-
if (_ &&
|
|
1318
|
-
let
|
|
1319
|
-
if (
|
|
1320
|
-
const
|
|
1321
|
-
if (
|
|
1322
|
-
const
|
|
1323
|
-
if (
|
|
1316
|
+
const _ = en(O.reference), E = !!O.reference.metadata?.isModal;
|
|
1317
|
+
if (_ && Ke(_)) {
|
|
1318
|
+
let te = !1;
|
|
1319
|
+
if (H ? te = y.contains(_) : te = !E, !te) return;
|
|
1320
|
+
const V = _.getBoundingClientRect(), le = V.left + V.width / 2, q = V.top + V.height / 2;
|
|
1321
|
+
if (le >= 0 && le <= window.innerWidth && q >= 0 && q <= window.innerHeight) {
|
|
1322
|
+
const B = document.elementFromPoint(le, q);
|
|
1323
|
+
if (B && !_.contains(B) && !F.current?.contains(B))
|
|
1324
1324
|
return;
|
|
1325
1325
|
}
|
|
1326
1326
|
d[O._id] = {
|
|
1327
|
-
top:
|
|
1328
|
-
left:
|
|
1329
|
-
width:
|
|
1330
|
-
isModal:
|
|
1327
|
+
top: V.top + window.scrollY,
|
|
1328
|
+
left: V.left + window.scrollX,
|
|
1329
|
+
width: V.width,
|
|
1330
|
+
isModal: E
|
|
1331
1331
|
};
|
|
1332
1332
|
}
|
|
1333
|
-
}),
|
|
1333
|
+
}), S(d), U.current = null;
|
|
1334
1334
|
}));
|
|
1335
|
-
}, [
|
|
1335
|
+
}, [k]), G = he(async () => {
|
|
1336
1336
|
if (n) {
|
|
1337
|
-
|
|
1337
|
+
K(!0);
|
|
1338
1338
|
try {
|
|
1339
1339
|
const d = await fetch(`${a}/api/annotations`, {
|
|
1340
1340
|
headers: { "x-api-key": n }
|
|
1341
1341
|
});
|
|
1342
1342
|
if (d.ok) {
|
|
1343
1343
|
const w = await d.json();
|
|
1344
|
-
|
|
1344
|
+
be(w.data || []);
|
|
1345
1345
|
}
|
|
1346
1346
|
} catch (d) {
|
|
1347
1347
|
console.error("Failed to fetch annotations", d);
|
|
1348
1348
|
} finally {
|
|
1349
|
-
|
|
1349
|
+
K(!1);
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
}, [n, a]);
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
}, [
|
|
1356
|
-
if (!l &&
|
|
1353
|
+
Z(() => {
|
|
1354
|
+
P && k.length === 0 && !ae && A(!1);
|
|
1355
|
+
}, [P, k.length, ae]), Z(() => {
|
|
1356
|
+
if (!l && k.length > 0) {
|
|
1357
1357
|
b();
|
|
1358
1358
|
const d = new MutationObserver(() => b()), w = new ResizeObserver(() => b()), y = () => b();
|
|
1359
1359
|
return d.observe(document.documentElement, {
|
|
@@ -1361,18 +1361,18 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1361
1361
|
subtree: !0,
|
|
1362
1362
|
attributes: !0
|
|
1363
1363
|
}), w.observe(document.documentElement), window.addEventListener("scroll", y, !0), () => {
|
|
1364
|
-
d.disconnect(), w.disconnect(), window.removeEventListener("scroll", y, !0),
|
|
1364
|
+
d.disconnect(), w.disconnect(), window.removeEventListener("scroll", y, !0), U.current && cancelAnimationFrame(U.current);
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
|
-
}, [l,
|
|
1368
|
-
|
|
1369
|
-
}, [
|
|
1370
|
-
|
|
1367
|
+
}, [l, k.length, b]), Z(() => {
|
|
1368
|
+
G();
|
|
1369
|
+
}, [G]), Z(() => {
|
|
1370
|
+
F.current = document.getElementById("viewgate-shadow-host");
|
|
1371
1371
|
}, []);
|
|
1372
|
-
const
|
|
1372
|
+
const J = he((d) => {
|
|
1373
1373
|
if (!l || m) return;
|
|
1374
|
-
const w =
|
|
1375
|
-
if (!w ||
|
|
1374
|
+
const w = Qe(d.clientX, d.clientY);
|
|
1375
|
+
if (!w || F.current?.contains(w) || w.closest(".vg-no-capture")) {
|
|
1376
1376
|
x(null);
|
|
1377
1377
|
return;
|
|
1378
1378
|
}
|
|
@@ -1391,37 +1391,56 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
1393
|
});
|
|
1394
|
-
}, [l, m]),
|
|
1394
|
+
}, [l, m]), ce = he(async (d) => {
|
|
1395
1395
|
if (!l || m) return;
|
|
1396
|
-
const w =
|
|
1397
|
-
if (!(!w ||
|
|
1396
|
+
const w = Qe(d.clientX, d.clientY);
|
|
1397
|
+
if (!(!w || F.current?.contains(w) || w.closest(".vg-no-capture")) && u) {
|
|
1398
1398
|
d.preventDefault(), d.stopPropagation(), M(!0);
|
|
1399
1399
|
try {
|
|
1400
|
-
const y = u.element.getBoundingClientRect(),
|
|
1400
|
+
const y = u.element.getBoundingClientRect(), H = 24, O = 2, _ = await Je(document.documentElement, {
|
|
1401
1401
|
quality: 0.9,
|
|
1402
1402
|
pixelRatio: O,
|
|
1403
|
+
cacheBust: !0,
|
|
1403
1404
|
width: window.innerWidth,
|
|
1404
1405
|
height: window.innerHeight,
|
|
1405
1406
|
style: {
|
|
1406
1407
|
transform: `scale(${1 / window.devicePixelRatio}) translate(-${window.scrollX}px, -${window.scrollY}px)`,
|
|
1407
1408
|
transformOrigin: "top left"
|
|
1408
1409
|
},
|
|
1409
|
-
filter: (
|
|
1410
|
-
const
|
|
1411
|
-
return !(
|
|
1410
|
+
filter: (q) => {
|
|
1411
|
+
const B = q;
|
|
1412
|
+
return !(F.current?.contains(B) || B.id === "viewgate-ui");
|
|
1412
1413
|
}
|
|
1413
|
-
}),
|
|
1414
|
+
}), E = u.element.getBoundingClientRect(), te = E.top >= 0 && E.left >= 0 && E.bottom <= window.innerHeight && E.right <= window.innerWidth;
|
|
1415
|
+
let V = "";
|
|
1416
|
+
if (te && E.width > 0 && E.height > 0)
|
|
1417
|
+
V = await Ze(_, E, H, O);
|
|
1418
|
+
else
|
|
1419
|
+
try {
|
|
1420
|
+
V = await Je(u.element, {
|
|
1421
|
+
quality: 0.9,
|
|
1422
|
+
pixelRatio: O,
|
|
1423
|
+
cacheBust: !0,
|
|
1424
|
+
filter: (q) => {
|
|
1425
|
+
const B = q;
|
|
1426
|
+
return !F.current?.contains(B);
|
|
1427
|
+
}
|
|
1428
|
+
});
|
|
1429
|
+
} catch (q) {
|
|
1430
|
+
console.warn("Direct element capture failed, falling back to viewport crop:", q), V = await Ze(_, E, H, O);
|
|
1431
|
+
}
|
|
1432
|
+
const le = {
|
|
1414
1433
|
...u.semanticReference,
|
|
1415
1434
|
metadata: {
|
|
1416
1435
|
...u.semanticReference.metadata,
|
|
1417
1436
|
screenshotUrl: _,
|
|
1418
|
-
elementScreenshot:
|
|
1437
|
+
elementScreenshot: V
|
|
1419
1438
|
}
|
|
1420
1439
|
};
|
|
1421
1440
|
g({
|
|
1422
1441
|
...u,
|
|
1423
|
-
visualPreview:
|
|
1424
|
-
semanticReference:
|
|
1442
|
+
visualPreview: V,
|
|
1443
|
+
semanticReference: le
|
|
1425
1444
|
});
|
|
1426
1445
|
} catch (y) {
|
|
1427
1446
|
console.error("Failed to capture preview:", y), g(u);
|
|
@@ -1430,30 +1449,30 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1430
1449
|
}
|
|
1431
1450
|
}
|
|
1432
1451
|
}, [l, u, m]);
|
|
1433
|
-
|
|
1452
|
+
Z(() => {
|
|
1434
1453
|
const d = (w) => {
|
|
1435
1454
|
if (w.key === "Escape") {
|
|
1436
|
-
m ? g(null) :
|
|
1455
|
+
m ? g(null) : P ? A(!1) : l && p(!1);
|
|
1437
1456
|
return;
|
|
1438
1457
|
}
|
|
1439
|
-
const
|
|
1440
|
-
let
|
|
1441
|
-
for (;
|
|
1442
|
-
|
|
1443
|
-
return
|
|
1458
|
+
const H = (() => {
|
|
1459
|
+
let E = document.activeElement;
|
|
1460
|
+
for (; E && E.shadowRoot && E.shadowRoot.activeElement; )
|
|
1461
|
+
E = E.shadowRoot.activeElement;
|
|
1462
|
+
return E;
|
|
1444
1463
|
})();
|
|
1445
|
-
if (["input", "textarea"].includes((
|
|
1464
|
+
if (["input", "textarea"].includes((H?.tagName || "").toLowerCase()) || H?.isContentEditable) return;
|
|
1446
1465
|
const _ = w.key.toLowerCase();
|
|
1447
|
-
_ === "c" && !m && !
|
|
1466
|
+
_ === "c" && !m && !P && p((E) => !E), _ === "v" && !m && (k.length > 0 || P) && (A((E) => !E), P || p(!1));
|
|
1448
1467
|
};
|
|
1449
|
-
return l && !m ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", d), window.addEventListener("mousemove",
|
|
1450
|
-
document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", d), window.removeEventListener("mousemove",
|
|
1468
|
+
return l && !m ? document.body.classList.add("vg-cursor-pointer") : document.body.classList.remove("vg-cursor-pointer"), window.addEventListener("keydown", d), window.addEventListener("mousemove", J, !0), window.addEventListener("click", ce, !0), () => {
|
|
1469
|
+
document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", d), window.removeEventListener("mousemove", J, !0), window.removeEventListener("click", ce, !0);
|
|
1451
1470
|
};
|
|
1452
|
-
}, [l, m,
|
|
1453
|
-
const
|
|
1471
|
+
}, [l, m, P, k, J, ce]);
|
|
1472
|
+
const ft = async () => {
|
|
1454
1473
|
if (!m || !h.trim()) return;
|
|
1455
|
-
|
|
1456
|
-
const { semanticReference: d } = m, [w, y] = (d.source || "").split(":"),
|
|
1474
|
+
T(!0);
|
|
1475
|
+
const { semanticReference: d } = m, [w, y] = (d.source || "").split(":"), H = y || "0";
|
|
1457
1476
|
try {
|
|
1458
1477
|
if (!(await fetch(`${a}/api/annotations`, {
|
|
1459
1478
|
method: "POST",
|
|
@@ -1463,7 +1482,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1463
1482
|
},
|
|
1464
1483
|
body: JSON.stringify({
|
|
1465
1484
|
filePath: w,
|
|
1466
|
-
line: parseInt(
|
|
1485
|
+
line: parseInt(H),
|
|
1467
1486
|
url: window.location.href,
|
|
1468
1487
|
message: h,
|
|
1469
1488
|
componentName: d.componentPath || m.tag,
|
|
@@ -1478,19 +1497,19 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1478
1497
|
}
|
|
1479
1498
|
})
|
|
1480
1499
|
})).ok) throw new Error("Backend failed");
|
|
1481
|
-
e(r.success, "success"), g(null), v(""), p(!1),
|
|
1500
|
+
e(r.success, "success"), g(null), v(""), p(!1), G();
|
|
1482
1501
|
} catch (O) {
|
|
1483
1502
|
console.error(O), e(r.error, "error");
|
|
1484
1503
|
} finally {
|
|
1485
|
-
|
|
1504
|
+
T(!1);
|
|
1486
1505
|
}
|
|
1487
1506
|
};
|
|
1488
|
-
return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1507
|
+
return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:895", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:896", className: "vg-no-capture", children: [
|
|
1489
1508
|
!i && /* @__PURE__ */ o.jsx(
|
|
1490
1509
|
"button",
|
|
1491
1510
|
{
|
|
1492
1511
|
onClick: (d) => {
|
|
1493
|
-
d.stopPropagation(),
|
|
1512
|
+
d.stopPropagation(), D({
|
|
1494
1513
|
title: r.exitConfirmTitle || "Close ViewGate?",
|
|
1495
1514
|
message: r.exitConfirmMessage || "Are you sure you want to close ViewGate?",
|
|
1496
1515
|
type: "danger",
|
|
@@ -1523,10 +1542,10 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1523
1542
|
onMouseLeave: (d) => {
|
|
1524
1543
|
d.currentTarget.style.transform = "scale(1) rotate(0deg)", d.currentTarget.style.color = "#64748b", d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
|
|
1525
1544
|
},
|
|
1526
|
-
children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1545
|
+
children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:940", size: 20, strokeWidth: 2.5 })
|
|
1527
1546
|
}
|
|
1528
1547
|
),
|
|
1529
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1548
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:945", style: { position: "fixed", bottom: "30px", right: "30px", zIndex: ke }, id: "viewgate-ui", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:946", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
|
|
1530
1549
|
/* @__PURE__ */ o.jsx(
|
|
1531
1550
|
"button",
|
|
1532
1551
|
{
|
|
@@ -1536,28 +1555,28 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1536
1555
|
padding: "12px 24px",
|
|
1537
1556
|
background: l ? "#ef4444" : void 0
|
|
1538
1557
|
},
|
|
1539
|
-
children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1540
|
-
l ? /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1541
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1558
|
+
children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:955", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
|
|
1559
|
+
l ? /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:956", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:956", size: 20, className: "vg-animate-pop" }),
|
|
1560
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:957", children: l ? r.exitMode : r.enterMode })
|
|
1542
1561
|
] })
|
|
1543
1562
|
}
|
|
1544
1563
|
),
|
|
1545
|
-
|
|
1564
|
+
k.length > 0 && /* @__PURE__ */ o.jsxs(
|
|
1546
1565
|
"button",
|
|
1547
1566
|
{
|
|
1548
1567
|
onClick: () => {
|
|
1549
|
-
|
|
1568
|
+
A(!P), p(!1), g(null);
|
|
1550
1569
|
},
|
|
1551
1570
|
className: "vg-button-ghost vg-animate-pop",
|
|
1552
1571
|
style: { animationDelay: "0.1s" },
|
|
1553
1572
|
children: [
|
|
1554
|
-
/* @__PURE__ */ o.jsx(
|
|
1555
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1573
|
+
/* @__PURE__ */ o.jsx(Gt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:970", size: 20 }),
|
|
1574
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:971", children: r.viewComments })
|
|
1556
1575
|
]
|
|
1557
1576
|
}
|
|
1558
1577
|
)
|
|
1559
1578
|
] }) }),
|
|
1560
|
-
I && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1579
|
+
I && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:979", style: {
|
|
1561
1580
|
position: "fixed",
|
|
1562
1581
|
top: 0,
|
|
1563
1582
|
left: 0,
|
|
@@ -1570,14 +1589,14 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1570
1589
|
justifyContent: "center",
|
|
1571
1590
|
zIndex: ke + 1,
|
|
1572
1591
|
cursor: "wait"
|
|
1573
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1574
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1575
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1592
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:985", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
|
|
1593
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:986", className: "vg-spinner" }),
|
|
1594
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:987", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
|
|
1576
1595
|
] }) }),
|
|
1577
1596
|
l && !m && /* @__PURE__ */ o.jsx(
|
|
1578
1597
|
"div",
|
|
1579
1598
|
{
|
|
1580
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1599
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:994",
|
|
1581
1600
|
className: "vg-backdrop-blur",
|
|
1582
1601
|
style: {
|
|
1583
1602
|
opacity: 1,
|
|
@@ -1589,36 +1608,36 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1589
1608
|
${u.rect.left}px ${u.rect.bottom}px,
|
|
1590
1609
|
${u.rect.left}px ${u.rect.top}px
|
|
1591
1610
|
)` : "none",
|
|
1592
|
-
zIndex:
|
|
1611
|
+
zIndex: Hr
|
|
1593
1612
|
}
|
|
1594
1613
|
}
|
|
1595
1614
|
),
|
|
1596
1615
|
l && u && !m && !I && /* @__PURE__ */ o.jsx(
|
|
1597
1616
|
"div",
|
|
1598
1617
|
{
|
|
1599
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1618
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1013",
|
|
1600
1619
|
className: "vg-selection-pulse",
|
|
1601
1620
|
style: {
|
|
1602
1621
|
top: u.rect.top - 4,
|
|
1603
1622
|
left: u.rect.left - 4,
|
|
1604
1623
|
width: u.rect.width + 8,
|
|
1605
1624
|
height: u.rect.height + 8,
|
|
1606
|
-
zIndex:
|
|
1625
|
+
zIndex: Wr
|
|
1607
1626
|
},
|
|
1608
1627
|
children: /* @__PURE__ */ o.jsxs(
|
|
1609
1628
|
"div",
|
|
1610
1629
|
{
|
|
1611
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1630
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1023",
|
|
1612
1631
|
className: "vg-selection-label",
|
|
1613
1632
|
style: {
|
|
1614
1633
|
...u.rect.top < 60 ? u.rect.bottom > window.innerHeight - 60 ? { top: "8px", bottom: "auto" } : { top: "100%", marginTop: "8px", bottom: "auto" } : { top: "-40px", bottom: "auto" },
|
|
1615
1634
|
...u.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
|
|
1616
1635
|
},
|
|
1617
1636
|
children: [
|
|
1618
|
-
/* @__PURE__ */ o.jsx(
|
|
1619
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1620
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1621
|
-
/* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1637
|
+
/* @__PURE__ */ o.jsx(Mt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1039", size: 16 }),
|
|
1638
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1040", style: { display: "flex", flexDirection: "column" }, children: [
|
|
1639
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1041", style: { fontWeight: 700 }, children: r.selectToComment }),
|
|
1640
|
+
/* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1042", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
|
|
1622
1641
|
Math.round(u.rect.width),
|
|
1623
1642
|
" × ",
|
|
1624
1643
|
Math.round(u.rect.height)
|
|
@@ -1629,7 +1648,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1629
1648
|
)
|
|
1630
1649
|
}
|
|
1631
1650
|
),
|
|
1632
|
-
m && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1651
|
+
m && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1052", className: "vg-animate-fade", style: {
|
|
1633
1652
|
position: "fixed",
|
|
1634
1653
|
top: 0,
|
|
1635
1654
|
left: 0,
|
|
@@ -1641,13 +1660,13 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1641
1660
|
alignItems: "center",
|
|
1642
1661
|
justifyContent: "center",
|
|
1643
1662
|
zIndex: Re
|
|
1644
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1663
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1057", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
1645
1664
|
padding: "40px",
|
|
1646
1665
|
width: "500px",
|
|
1647
1666
|
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
|
|
1648
1667
|
}, children: [
|
|
1649
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1650
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1668
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1061", style: { textAlign: "center", marginBottom: "32px" }, children: [
|
|
1669
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1062", style: {
|
|
1651
1670
|
width: "48px",
|
|
1652
1671
|
height: "48px",
|
|
1653
1672
|
background: "var(--vg-primary-gradient)",
|
|
@@ -1658,11 +1677,11 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1658
1677
|
margin: "0 auto 16px",
|
|
1659
1678
|
color: "white",
|
|
1660
1679
|
boxShadow: "0 8px 16px rgba(99, 102, 241, 0.3)"
|
|
1661
|
-
}, children: /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1662
|
-
/* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1663
|
-
/* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1680
|
+
}, children: /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1067", size: 24 }) }),
|
|
1681
|
+
/* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1069", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
|
|
1682
|
+
/* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1070", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
|
|
1664
1683
|
] }),
|
|
1665
|
-
m.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1684
|
+
m.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1074", style: {
|
|
1666
1685
|
marginBottom: "24px",
|
|
1667
1686
|
borderRadius: "12px",
|
|
1668
1687
|
overflow: "hidden",
|
|
@@ -1690,13 +1709,13 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1690
1709
|
style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
|
|
1691
1710
|
}
|
|
1692
1711
|
),
|
|
1693
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1712
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1101", style: { display: "flex", gap: "12px" }, children: [
|
|
1694
1713
|
/* @__PURE__ */ o.jsx(
|
|
1695
1714
|
"button",
|
|
1696
1715
|
{
|
|
1697
|
-
onClick: () => !
|
|
1716
|
+
onClick: () => !j && g(null),
|
|
1698
1717
|
className: "vg-button-ghost",
|
|
1699
|
-
disabled:
|
|
1718
|
+
disabled: j,
|
|
1700
1719
|
style: { flex: 1, padding: "12px" },
|
|
1701
1720
|
children: r.cancel
|
|
1702
1721
|
}
|
|
@@ -1704,19 +1723,19 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1704
1723
|
/* @__PURE__ */ o.jsx(
|
|
1705
1724
|
"button",
|
|
1706
1725
|
{
|
|
1707
|
-
onClick:
|
|
1726
|
+
onClick: ft,
|
|
1708
1727
|
className: "vg-button-primary",
|
|
1709
|
-
disabled:
|
|
1728
|
+
disabled: j || !h.trim(),
|
|
1710
1729
|
style: { flex: 2 },
|
|
1711
|
-
children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1712
|
-
|
|
1713
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1730
|
+
children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1116", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
1731
|
+
j ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1117", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(Ut, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1117", size: 18 }),
|
|
1732
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1118", children: j ? r.submitting : r.sendFeedback || "Send Comment" })
|
|
1714
1733
|
] })
|
|
1715
1734
|
}
|
|
1716
1735
|
)
|
|
1717
1736
|
] })
|
|
1718
1737
|
] }) }),
|
|
1719
|
-
|
|
1738
|
+
P && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1128", className: "vg-animate-fade", style: {
|
|
1720
1739
|
position: "fixed",
|
|
1721
1740
|
top: 0,
|
|
1722
1741
|
left: 0,
|
|
@@ -1728,47 +1747,47 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1728
1747
|
alignItems: "center",
|
|
1729
1748
|
justifyContent: "center",
|
|
1730
1749
|
zIndex: Re
|
|
1731
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1750
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1133", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
1732
1751
|
padding: "32px",
|
|
1733
1752
|
width: "650px",
|
|
1734
1753
|
maxHeight: "85vh",
|
|
1735
1754
|
display: "flex",
|
|
1736
1755
|
flexDirection: "column"
|
|
1737
1756
|
}, children: [
|
|
1738
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1739
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1740
|
-
/* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1741
|
-
!
|
|
1757
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1137", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
|
|
1758
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1138", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
|
|
1759
|
+
/* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1139", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: W ? r.commentDetails : r.annotations }),
|
|
1760
|
+
!W && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1143", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: k.length })
|
|
1742
1761
|
] }),
|
|
1743
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1744
|
-
|
|
1762
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1148", style: { display: "flex", gap: "8px" }, children: [
|
|
1763
|
+
W && /* @__PURE__ */ o.jsx(
|
|
1745
1764
|
"button",
|
|
1746
1765
|
{
|
|
1747
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1766
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1150",
|
|
1748
1767
|
className: "vg-button-ghost",
|
|
1749
1768
|
style: { padding: "6px 14px", fontSize: "12px" },
|
|
1750
|
-
onClick: () =>
|
|
1769
|
+
onClick: () => Q(null),
|
|
1751
1770
|
children: r.viewAll || "View All"
|
|
1752
1771
|
}
|
|
1753
1772
|
),
|
|
1754
1773
|
/* @__PURE__ */ o.jsx(
|
|
1755
1774
|
"button",
|
|
1756
1775
|
{
|
|
1757
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1776
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1158",
|
|
1758
1777
|
className: "vg-button-ghost",
|
|
1759
1778
|
style: { padding: "8px", borderRadius: "50%" },
|
|
1760
1779
|
onClick: () => {
|
|
1761
|
-
|
|
1780
|
+
A(!1), Q(null);
|
|
1762
1781
|
},
|
|
1763
|
-
children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1782
|
+
children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1163", size: 20 })
|
|
1764
1783
|
}
|
|
1765
1784
|
)
|
|
1766
1785
|
] })
|
|
1767
1786
|
] }),
|
|
1768
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1787
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1168", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: ae ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1170", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1171", className: "vg-spinner" }) }) : (W ? k.filter((d) => d._id === W) : k).map((d, w) => /* @__PURE__ */ o.jsxs(
|
|
1769
1788
|
"div",
|
|
1770
1789
|
{
|
|
1771
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1790
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1175",
|
|
1772
1791
|
className: "vg-glassmorphism vg-animate-slide",
|
|
1773
1792
|
style: {
|
|
1774
1793
|
padding: "20px",
|
|
@@ -1778,19 +1797,19 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1778
1797
|
animationDelay: `${w * 0.05}s`
|
|
1779
1798
|
},
|
|
1780
1799
|
children: [
|
|
1781
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1782
|
-
d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1783
|
-
/* @__PURE__ */ o.jsx(
|
|
1800
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1186", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1187", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
|
|
1801
|
+
d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1189", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a" }, children: [
|
|
1802
|
+
/* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1190", size: 14 }),
|
|
1784
1803
|
" ",
|
|
1785
1804
|
r.readyForReview
|
|
1786
|
-
] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1787
|
-
/* @__PURE__ */ o.jsx(ze, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1805
|
+
] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1193", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c" }, children: [
|
|
1806
|
+
/* @__PURE__ */ o.jsx(ze, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1194", size: 14 }),
|
|
1788
1807
|
" ",
|
|
1789
1808
|
r.pending
|
|
1790
1809
|
] }),
|
|
1791
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1810
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1197", style: { fontSize: "12px", color: "#000000" }, children: Yr(d.timestamp || d.createdAt || d.reference?.timestamp, t) })
|
|
1792
1811
|
] }) }),
|
|
1793
|
-
|
|
1812
|
+
ie === d._id ? /* @__PURE__ */ o.jsx(
|
|
1794
1813
|
"textarea",
|
|
1795
1814
|
{
|
|
1796
1815
|
className: "vg-textarea",
|
|
@@ -1800,12 +1819,12 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1800
1819
|
autoFocus: !0,
|
|
1801
1820
|
style: { marginBottom: "16px" }
|
|
1802
1821
|
}
|
|
1803
|
-
) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1804
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1822
|
+
) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1213", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: d.message }),
|
|
1823
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1216", style: { display: "flex", gap: "12px", justifyContent: "flex-end", borderTop: "1px solid #f1f5f9", paddingTop: "16px" }, children: ie === d._id ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1805
1824
|
/* @__PURE__ */ o.jsx(
|
|
1806
1825
|
"button",
|
|
1807
1826
|
{
|
|
1808
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1827
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1219",
|
|
1809
1828
|
className: "vg-button-primary vg-animate-pop",
|
|
1810
1829
|
style: { padding: "8px 16px", fontSize: "13px" },
|
|
1811
1830
|
onClick: async () => {
|
|
@@ -1814,7 +1833,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1814
1833
|
method: "PATCH",
|
|
1815
1834
|
headers: { "Content-Type": "application/json", "x-api-key": n },
|
|
1816
1835
|
body: JSON.stringify({ message: c })
|
|
1817
|
-
})).ok && (
|
|
1836
|
+
})).ok && (ee(null), G(), e(r.updateSuccess, "success"));
|
|
1818
1837
|
} catch {
|
|
1819
1838
|
e(r.error, "error");
|
|
1820
1839
|
}
|
|
@@ -1822,19 +1841,19 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1822
1841
|
children: r.save
|
|
1823
1842
|
}
|
|
1824
1843
|
),
|
|
1825
|
-
/* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1844
|
+
/* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1241", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => ee(null), children: r.cancel })
|
|
1826
1845
|
] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1827
1846
|
/* @__PURE__ */ o.jsxs(
|
|
1828
1847
|
"button",
|
|
1829
1848
|
{
|
|
1830
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1849
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1245",
|
|
1831
1850
|
className: "vg-button-ghost vg-animate-pop",
|
|
1832
1851
|
style: { padding: "8px 16px", fontSize: "13px" },
|
|
1833
1852
|
onClick: () => {
|
|
1834
|
-
|
|
1853
|
+
ee(d._id), f(d.message);
|
|
1835
1854
|
},
|
|
1836
1855
|
children: [
|
|
1837
|
-
/* @__PURE__ */ o.jsx(
|
|
1856
|
+
/* @__PURE__ */ o.jsx(Ft, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1253", size: 14 }),
|
|
1838
1857
|
" ",
|
|
1839
1858
|
r.edit
|
|
1840
1859
|
]
|
|
@@ -1843,14 +1862,14 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1843
1862
|
/* @__PURE__ */ o.jsxs(
|
|
1844
1863
|
"button",
|
|
1845
1864
|
{
|
|
1846
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1865
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1255",
|
|
1847
1866
|
className: "vg-button-ghost vg-animate-pop",
|
|
1848
1867
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.05s" },
|
|
1849
1868
|
onClick: () => {
|
|
1850
1869
|
d.url && (window.location.href = d.url);
|
|
1851
1870
|
},
|
|
1852
1871
|
children: [
|
|
1853
|
-
/* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1872
|
+
/* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1262", size: 14 }),
|
|
1854
1873
|
" ",
|
|
1855
1874
|
r.review
|
|
1856
1875
|
]
|
|
@@ -1859,11 +1878,11 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1859
1878
|
d.status === "pending" ? /* @__PURE__ */ o.jsxs(
|
|
1860
1879
|
"button",
|
|
1861
1880
|
{
|
|
1862
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1881
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1265",
|
|
1863
1882
|
className: "vg-button-primary vg-animate-pop",
|
|
1864
1883
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
|
|
1865
1884
|
onClick: () => {
|
|
1866
|
-
|
|
1885
|
+
D({
|
|
1867
1886
|
title: r.markReadyConfirm,
|
|
1868
1887
|
message: r.confirmMarkReady,
|
|
1869
1888
|
type: "success",
|
|
@@ -1873,17 +1892,17 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1873
1892
|
method: "PATCH",
|
|
1874
1893
|
headers: { "Content-Type": "application/json", "x-api-key": n },
|
|
1875
1894
|
body: JSON.stringify({ status: "ready_for_review" })
|
|
1876
|
-
})).ok && (
|
|
1895
|
+
})).ok && (G(), e(r.updateSuccess, "success"));
|
|
1877
1896
|
} catch {
|
|
1878
1897
|
e(r.error, "error");
|
|
1879
1898
|
} finally {
|
|
1880
|
-
|
|
1899
|
+
D(null);
|
|
1881
1900
|
}
|
|
1882
1901
|
}
|
|
1883
1902
|
});
|
|
1884
1903
|
},
|
|
1885
1904
|
children: [
|
|
1886
|
-
/* @__PURE__ */ o.jsx(
|
|
1905
|
+
/* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1293", size: 14 }),
|
|
1887
1906
|
" ",
|
|
1888
1907
|
r.markReady
|
|
1889
1908
|
]
|
|
@@ -1891,11 +1910,11 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1891
1910
|
) : /* @__PURE__ */ o.jsxs(
|
|
1892
1911
|
"button",
|
|
1893
1912
|
{
|
|
1894
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1913
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1296",
|
|
1895
1914
|
className: "vg-button-ghost vg-animate-pop",
|
|
1896
1915
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
|
|
1897
1916
|
onClick: () => {
|
|
1898
|
-
|
|
1917
|
+
D({
|
|
1899
1918
|
title: r.reopenConfirm,
|
|
1900
1919
|
message: r.confirmReopen,
|
|
1901
1920
|
type: "success",
|
|
@@ -1906,17 +1925,17 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1906
1925
|
method: "PATCH",
|
|
1907
1926
|
headers: { "Content-Type": "application/json", "x-api-key": n },
|
|
1908
1927
|
body: JSON.stringify({ status: "pending" })
|
|
1909
|
-
})).ok && (
|
|
1928
|
+
})).ok && (G(), e(r.updateSuccess, "success"));
|
|
1910
1929
|
} catch {
|
|
1911
1930
|
e(r.error, "error");
|
|
1912
1931
|
} finally {
|
|
1913
|
-
|
|
1932
|
+
D(null);
|
|
1914
1933
|
}
|
|
1915
1934
|
}
|
|
1916
1935
|
});
|
|
1917
1936
|
},
|
|
1918
1937
|
children: [
|
|
1919
|
-
/* @__PURE__ */ o.jsx(
|
|
1938
|
+
/* @__PURE__ */ o.jsx(Ht, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1324", size: 14 }),
|
|
1920
1939
|
" ",
|
|
1921
1940
|
r.reopen
|
|
1922
1941
|
]
|
|
@@ -1925,11 +1944,11 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1925
1944
|
/* @__PURE__ */ o.jsx(
|
|
1926
1945
|
"button",
|
|
1927
1946
|
{
|
|
1928
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1947
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1327",
|
|
1929
1948
|
className: "vg-button-ghost vg-animate-pop",
|
|
1930
1949
|
style: { padding: "8px 12px", color: "#ef4444", borderColor: "#fee2e2", animationDelay: "0.15s" },
|
|
1931
1950
|
onClick: () => {
|
|
1932
|
-
|
|
1951
|
+
D({
|
|
1933
1952
|
title: r.deleteConfirm,
|
|
1934
1953
|
message: r.confirmDelete,
|
|
1935
1954
|
type: "danger",
|
|
@@ -1938,16 +1957,16 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1938
1957
|
(await fetch(`${a}/api/annotations/${d._id}`, {
|
|
1939
1958
|
method: "DELETE",
|
|
1940
1959
|
headers: { "x-api-key": n }
|
|
1941
|
-
})).ok && (
|
|
1960
|
+
})).ok && (G(), e(r.deleteSuccess, "success"));
|
|
1942
1961
|
} catch {
|
|
1943
1962
|
e(r.error, "error");
|
|
1944
1963
|
} finally {
|
|
1945
|
-
|
|
1964
|
+
D(null);
|
|
1946
1965
|
}
|
|
1947
1966
|
}
|
|
1948
1967
|
});
|
|
1949
1968
|
},
|
|
1950
|
-
children: /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1969
|
+
children: /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1354", size: 16 })
|
|
1951
1970
|
}
|
|
1952
1971
|
)
|
|
1953
1972
|
] }) })
|
|
@@ -1956,7 +1975,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1956
1975
|
d._id
|
|
1957
1976
|
)) })
|
|
1958
1977
|
] }) }),
|
|
1959
|
-
z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1978
|
+
z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1369", className: "vg-animate-fade", style: {
|
|
1960
1979
|
position: "fixed",
|
|
1961
1980
|
top: 0,
|
|
1962
1981
|
left: 0,
|
|
@@ -1968,14 +1987,14 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1968
1987
|
alignItems: "center",
|
|
1969
1988
|
justifyContent: "center",
|
|
1970
1989
|
zIndex: Re + 100
|
|
1971
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1990
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1374", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
1972
1991
|
padding: "40px",
|
|
1973
1992
|
width: "420px",
|
|
1974
1993
|
textAlign: "center",
|
|
1975
1994
|
border: "1px solid rgba(255, 255, 255, 0.1)",
|
|
1976
1995
|
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
|
|
1977
1996
|
}, children: [
|
|
1978
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1997
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1381", style: {
|
|
1979
1998
|
width: "64px",
|
|
1980
1999
|
height: "64px",
|
|
1981
2000
|
background: z.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
|
|
@@ -1986,25 +2005,25 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1986
2005
|
margin: "0 auto 24px",
|
|
1987
2006
|
color: z.type === "danger" ? "#ef4444" : "#6366f1",
|
|
1988
2007
|
transform: "rotate(-5deg)"
|
|
1989
|
-
}, children: z.type === "danger" ? /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1990
|
-
/* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1991
|
-
/* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1992
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2008
|
+
}, children: z.type === "danger" ? /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1390", size: 32 }) : /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1390", size: 32 }) }),
|
|
2009
|
+
/* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1392", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: z.title }),
|
|
2010
|
+
/* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1393", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: z.message }),
|
|
2011
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1394", style: { display: "flex", gap: "16px" }, children: [
|
|
1993
2012
|
/* @__PURE__ */ o.jsx(
|
|
1994
2013
|
"button",
|
|
1995
2014
|
{
|
|
1996
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2015
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1395",
|
|
1997
2016
|
className: "vg-button-ghost",
|
|
1998
2017
|
style: { flex: 1, height: "44px" },
|
|
1999
|
-
onClick: () => !
|
|
2000
|
-
disabled:
|
|
2018
|
+
onClick: () => !X && D(null),
|
|
2019
|
+
disabled: X,
|
|
2001
2020
|
children: r.no
|
|
2002
2021
|
}
|
|
2003
2022
|
),
|
|
2004
2023
|
/* @__PURE__ */ o.jsx(
|
|
2005
2024
|
"button",
|
|
2006
2025
|
{
|
|
2007
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2026
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1403",
|
|
2008
2027
|
className: "vg-button-primary",
|
|
2009
2028
|
style: {
|
|
2010
2029
|
flex: 1,
|
|
@@ -2016,26 +2035,26 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
2016
2035
|
justifyContent: "center",
|
|
2017
2036
|
gap: "8px"
|
|
2018
2037
|
},
|
|
2019
|
-
disabled:
|
|
2038
|
+
disabled: X,
|
|
2020
2039
|
onClick: async () => {
|
|
2021
|
-
|
|
2040
|
+
oe(!0);
|
|
2022
2041
|
try {
|
|
2023
2042
|
await z.onConfirm();
|
|
2024
2043
|
} catch (d) {
|
|
2025
2044
|
console.error("Confirmation error:", d);
|
|
2026
2045
|
} finally {
|
|
2027
|
-
|
|
2046
|
+
oe(!1);
|
|
2028
2047
|
}
|
|
2029
2048
|
},
|
|
2030
|
-
children:
|
|
2049
|
+
children: X ? /* @__PURE__ */ o.jsx(Lt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1428", size: 18, className: "vg-animate-spin" }) : r.yes
|
|
2031
2050
|
}
|
|
2032
2051
|
)
|
|
2033
2052
|
] })
|
|
2034
2053
|
] }) }),
|
|
2035
|
-
!l && !
|
|
2054
|
+
!l && !P && k.map((d, w) => {
|
|
2036
2055
|
const y = C[d._id];
|
|
2037
2056
|
if (!y) return null;
|
|
2038
|
-
const O =
|
|
2057
|
+
const O = k.slice(0, w).filter(
|
|
2039
2058
|
(_) => _.reference?.selector && _.reference.selector === d.reference?.selector
|
|
2040
2059
|
).length * 34;
|
|
2041
2060
|
return /* @__PURE__ */ o.jsxs(
|
|
@@ -2049,33 +2068,33 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
2049
2068
|
cursor: "pointer",
|
|
2050
2069
|
animationDelay: `${w * 0.08}s`,
|
|
2051
2070
|
transition: "all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",
|
|
2052
|
-
zIndex:
|
|
2071
|
+
zIndex: Ur - w
|
|
2053
2072
|
// Ensure staggered pins don't overlap tooltips weirdly
|
|
2054
2073
|
},
|
|
2055
2074
|
onMouseEnter: (_) => {
|
|
2056
|
-
const
|
|
2057
|
-
window.innerHeight -
|
|
2075
|
+
const E = _.currentTarget.getBoundingClientRect();
|
|
2076
|
+
window.innerHeight - E.bottom < 180 ? fe((V) => ({ ...V, [d._id]: "vg-top" })) : fe((V) => ({ ...V, [d._id]: "" }));
|
|
2058
2077
|
},
|
|
2059
2078
|
onClick: () => {
|
|
2060
|
-
|
|
2079
|
+
A(!0), Q(d._id);
|
|
2061
2080
|
},
|
|
2062
2081
|
children: [
|
|
2063
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2064
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2065
|
-
d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2066
|
-
/* @__PURE__ */ o.jsx(
|
|
2082
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1475", className: `vg-pin-tooltip ${me[d._id] || ""}`, children: [
|
|
2083
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1476", style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "8px" }, children: [
|
|
2084
|
+
d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1478", style: { display: "flex", alignItems: "center", gap: "6px", color: "#16a34a", fontWeight: 700, fontSize: "11px" }, children: [
|
|
2085
|
+
/* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1479", size: 12 }),
|
|
2067
2086
|
" ",
|
|
2068
2087
|
r.readyForReview
|
|
2069
|
-
] }) : /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2070
|
-
/* @__PURE__ */ o.jsx(ze, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2088
|
+
] }) : /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1482", style: { display: "flex", alignItems: "center", gap: "6px", color: y.isModal ? "#f59e0b" : "#ea580c", fontWeight: 700, fontSize: "11px" }, children: [
|
|
2089
|
+
/* @__PURE__ */ o.jsx(ze, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1483", size: 12 }),
|
|
2071
2090
|
" ",
|
|
2072
2091
|
r.pending
|
|
2073
2092
|
] }),
|
|
2074
|
-
y.isModal && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2093
|
+
y.isModal && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1487", 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:1488", children: "MODAL" }) })
|
|
2075
2094
|
] }),
|
|
2076
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2095
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1492", style: { fontWeight: 500, color: "#1e293b", lineHeight: 1.4 }, children: d.message })
|
|
2077
2096
|
] }),
|
|
2078
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2097
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1495", className: `vg-formal-pin ${d.status === "ready_for_review" ? "ready" : ""} ${y.isModal ? "modal-variant" : ""}`, children: d.status === "ready_for_review" ? /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1496", size: 18 }) : y.isModal ? /* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1496", size: 16 }) : /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1496", size: 16 }) })
|
|
2079
2098
|
]
|
|
2080
2099
|
},
|
|
2081
2100
|
`pin-${d._id}`
|
|
@@ -2083,7 +2102,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
2083
2102
|
})
|
|
2084
2103
|
] }) });
|
|
2085
2104
|
};
|
|
2086
|
-
function
|
|
2105
|
+
function mt(e, t, r) {
|
|
2087
2106
|
if (!t.endsWith(".tsx") && !t.endsWith(".jsx") || t.includes("node_modules")) return e;
|
|
2088
2107
|
const n = (l) => l.replace(/\\/g, "/"), a = n(t).replace(n(r), "");
|
|
2089
2108
|
return e.split(`
|
|
@@ -2099,7 +2118,7 @@ function cn() {
|
|
|
2099
2118
|
enforce: "pre",
|
|
2100
2119
|
transform(e, t) {
|
|
2101
2120
|
return {
|
|
2102
|
-
code:
|
|
2121
|
+
code: mt(e, t, process.cwd()),
|
|
2103
2122
|
map: null
|
|
2104
2123
|
};
|
|
2105
2124
|
}
|
|
@@ -2107,13 +2126,13 @@ function cn() {
|
|
|
2107
2126
|
}
|
|
2108
2127
|
function ln(e) {
|
|
2109
2128
|
const t = this.resourcePath;
|
|
2110
|
-
return t ? (process.env.NODE_ENV,
|
|
2129
|
+
return t ? (process.env.NODE_ENV, mt(e, t, process.cwd())) : e;
|
|
2111
2130
|
}
|
|
2112
2131
|
export {
|
|
2113
2132
|
on as ViewGate,
|
|
2114
2133
|
nn as ViewGateOverlay,
|
|
2115
|
-
|
|
2116
|
-
|
|
2134
|
+
mt as transformSourcePaths,
|
|
2135
|
+
Xt as useViewGate,
|
|
2117
2136
|
ln as viewgateNextLoader,
|
|
2118
2137
|
cn as viewgatePlugin
|
|
2119
2138
|
};
|