viewgate-wrapper 1.10.7 → 1.10.9
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,16 +22,16 @@ 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
37
|
case V:
|
|
@@ -40,7 +40,7 @@ function xt() {
|
|
|
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
56
|
case P:
|
|
57
57
|
return c.displayName || "Context";
|
|
58
58
|
case T:
|
|
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
95
|
if (c === V) return "<>";
|
|
96
|
-
if (typeof c == "object" && c !== null && c.$$typeof ===
|
|
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 A = Object.keys(f).filter(function(
|
|
186
|
-
return
|
|
185
|
+
var A = Object.keys(f).filter(function(ce) {
|
|
186
|
+
return ce !== "key";
|
|
187
187
|
});
|
|
188
|
-
|
|
188
|
+
S = 0 < A.length ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}", ee[b + S] || (A = 0 < A.length ? "{" + A.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
|
A,
|
|
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"), V = /* @__PURE__ */ Symbol.for("react.fragment"), I = /* @__PURE__ */ Symbol.for("react.strict_mode"), M = /* @__PURE__ */ Symbol.for("react.profiler"), T = /* @__PURE__ */ Symbol.for("react.consumer"), P = /* @__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 = V, 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 Bt = [
|
|
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", Bt);
|
|
426
|
+
const qt = [
|
|
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", qt), 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;
|
|
@@ -910,19 +910,19 @@ function Pr(e, t) {
|
|
|
910
910
|
r[a] = n[a];
|
|
911
911
|
}), e;
|
|
912
912
|
}
|
|
913
|
-
const
|
|
914
|
-
async function
|
|
915
|
-
let t =
|
|
913
|
+
const Be = {};
|
|
914
|
+
async function qe(e) {
|
|
915
|
+
let t = Be[e];
|
|
916
916
|
if (t != null)
|
|
917
917
|
return t;
|
|
918
918
|
const n = await (await fetch(e)).text();
|
|
919
|
-
return t = { url: e, cssText: n },
|
|
919
|
+
return t = { url: e, cssText: n }, Be[e] = t, t;
|
|
920
920
|
}
|
|
921
921
|
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,15 +952,15 @@ 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
|
-
const p = s.href, u =
|
|
963
|
+
const p = s.href, u = qe(p).then((x) => Ye(x, t)).then((x) => Xe(x).forEach((m) => {
|
|
964
964
|
try {
|
|
965
965
|
a.insertRule(m, m.startsWith("@import") ? l += 1 : a.cssRules.length);
|
|
966
966
|
} catch (g) {
|
|
@@ -977,7 +977,7 @@ async function Ar(e, t) {
|
|
|
977
977
|
});
|
|
978
978
|
} catch (s) {
|
|
979
979
|
const i = e.find((l) => l.href == null) || document.styleSheets[0];
|
|
980
|
-
a.href != null && n.push(
|
|
980
|
+
a.href != null && n.push(qe(a.href).then((l) => Ye(l, t)).then((l) => Xe(l).forEach((p) => {
|
|
981
981
|
i.insertRule(p, i.cssRules.length);
|
|
982
982
|
})).catch((l) => {
|
|
983
983
|
console.error("Error loading remote stylesheet", l);
|
|
@@ -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,56 +994,56 @@ 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();
|
|
1045
1045
|
}
|
|
1046
|
-
const
|
|
1046
|
+
const ve = 2147483647, ke = ve, Re = 2e6, Hr = ve - 10, Wr = ve - 5, Ur = ve - 15, Br = () => {
|
|
1047
1047
|
const e = window.innerWidth;
|
|
1048
1048
|
return e < 768 ? "mobile" : e < 1024 ? "tablet" : "desktop";
|
|
1049
1049
|
}, qr = (e) => {
|
|
@@ -1053,7 +1053,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
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,7 +1068,7 @@ 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
1074
|
classHash: qr(e.className),
|
|
@@ -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,14 +1110,14 @@ 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, V = 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 && (V = Math.abs(g) / n, v += g, M -= V, 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
|
-
|
|
1120
|
+
j,
|
|
1121
1121
|
V,
|
|
1122
1122
|
I,
|
|
1123
1123
|
M
|
|
@@ -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
|
-
|
|
1249
|
+
const j = h.id && !h.id.startsWith("__") ? h.id : null;
|
|
1250
|
+
j && a.push(`#${j}`);
|
|
1251
1251
|
const V = h.getAttribute("data-testid") || h.getAttribute("data-qa");
|
|
1252
1252
|
V && a.push(`[data-testid="${V}"]`);
|
|
1253
1253
|
const I = h.getAttribute("aria-label"), M = h.getAttribute("role"), T = h.getAttribute("name");
|
|
1254
1254
|
if (V) {
|
|
1255
1255
|
v = `[${h.hasAttribute("data-testid") ? "data-testid" : "data-qa"}="${V}"]`, 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);
|
|
@@ -1267,15 +1267,15 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1267
1267
|
v = `${h.localName}[name="${T}"]`, g.unshift(v);
|
|
1268
1268
|
break;
|
|
1269
1269
|
} else {
|
|
1270
|
-
let P = h,
|
|
1270
|
+
let P = h, k = 1;
|
|
1271
1271
|
for (; P.previousElementSibling; )
|
|
1272
|
-
P = P.previousElementSibling, P.nodeName.toLowerCase() === h.nodeName.toLowerCase() &&
|
|
1273
|
-
|
|
1272
|
+
P = P.previousElementSibling, P.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: Br(),
|
|
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((
|
|
1314
|
-
|
|
1315
|
-
if (!
|
|
1316
|
-
const
|
|
1317
|
-
if (
|
|
1318
|
-
let
|
|
1319
|
-
if (
|
|
1320
|
-
const
|
|
1321
|
-
if (
|
|
1322
|
-
const
|
|
1323
|
-
if (
|
|
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, V] = R(!1), [I, M] = R(!1), [T, P] = 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((G) => pt(G) && Ke(G)), H = !!y;
|
|
1314
|
+
k.forEach((G) => {
|
|
1315
|
+
if (!G.reference) return;
|
|
1316
|
+
const O = en(G.reference), E = !!G.reference.metadata?.isModal;
|
|
1317
|
+
if (O && Ke(O)) {
|
|
1318
|
+
let te = !1;
|
|
1319
|
+
if (H ? te = y.contains(O) : te = !E, !te) return;
|
|
1320
|
+
const _ = O.getBoundingClientRect(), le = _.left + _.width / 2, B = _.top + _.height / 2;
|
|
1321
|
+
if (le >= 0 && le <= window.innerWidth && B >= 0 && B <= window.innerHeight) {
|
|
1322
|
+
const q = document.elementFromPoint(le, B);
|
|
1323
|
+
if (q && !O.contains(q) && !F.current?.contains(q))
|
|
1324
1324
|
return;
|
|
1325
1325
|
}
|
|
1326
|
-
d[
|
|
1327
|
-
top:
|
|
1328
|
-
left:
|
|
1329
|
-
width:
|
|
1330
|
-
isModal:
|
|
1326
|
+
d[G._id] = {
|
|
1327
|
+
top: _.top + window.scrollY,
|
|
1328
|
+
left: _.left + window.scrollX,
|
|
1329
|
+
width: _.width,
|
|
1330
|
+
isModal: E
|
|
1331
1331
|
};
|
|
1332
1332
|
}
|
|
1333
|
-
}),
|
|
1333
|
+
}), S(d), U.current = null;
|
|
1334
1334
|
}));
|
|
1335
|
-
}, [
|
|
1335
|
+
}, [k]), A = 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
|
-
T &&
|
|
1355
|
-
}, [T,
|
|
1356
|
-
if (!l &&
|
|
1353
|
+
Z(() => {
|
|
1354
|
+
T && k.length === 0 && !ae && P(!1);
|
|
1355
|
+
}, [T, 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,
|
|
1367
|
+
}, [l, k.length, b]), Z(() => {
|
|
1368
1368
|
A();
|
|
1369
|
-
}, [A]),
|
|
1370
|
-
|
|
1369
|
+
}, [A]), 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,57 @@ 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(),
|
|
1401
|
-
|
|
1402
|
-
|
|
1400
|
+
const y = u.element.getBoundingClientRect(), H = 24, G = 2, O = await Je(document.documentElement, {
|
|
1401
|
+
pixelRatio: 1.5,
|
|
1402
|
+
// Reduced slightly for memory stability
|
|
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: (B) => {
|
|
1411
|
+
const q = B;
|
|
1412
|
+
return !(F.current?.contains(q) || q.id === "viewgate-ui");
|
|
1413
|
+
}
|
|
1414
|
+
}), E = u.element.getBoundingClientRect(), te = E.top >= 0 && E.left >= 0 && E.bottom <= window.innerHeight && E.right <= window.innerWidth;
|
|
1415
|
+
let _ = "";
|
|
1416
|
+
if (te && E.width > 0 && E.height > 0)
|
|
1417
|
+
_ = await Ze(O, E, H, 1.5);
|
|
1418
|
+
else
|
|
1419
|
+
try {
|
|
1420
|
+
_ = await Je(u.element, {
|
|
1421
|
+
pixelRatio: 2,
|
|
1422
|
+
cacheBust: !0,
|
|
1423
|
+
backgroundColor: "#ffffff",
|
|
1424
|
+
// For large elements, white background is safer
|
|
1425
|
+
filter: (B) => {
|
|
1426
|
+
const q = B;
|
|
1427
|
+
return !F.current?.contains(q);
|
|
1428
|
+
}
|
|
1429
|
+
});
|
|
1430
|
+
} catch (B) {
|
|
1431
|
+
console.warn("Direct element capture failed, falling back to viewport crop:", B), _ = await Ze(O, E, H, 1.5);
|
|
1412
1432
|
}
|
|
1413
|
-
|
|
1433
|
+
const le = {
|
|
1414
1434
|
...u.semanticReference,
|
|
1415
1435
|
metadata: {
|
|
1416
1436
|
...u.semanticReference.metadata,
|
|
1417
|
-
screenshotUrl:
|
|
1418
|
-
elementScreenshot:
|
|
1437
|
+
screenshotUrl: O,
|
|
1438
|
+
elementScreenshot: _
|
|
1419
1439
|
}
|
|
1420
1440
|
};
|
|
1421
1441
|
g({
|
|
1422
1442
|
...u,
|
|
1423
|
-
visualPreview:
|
|
1424
|
-
semanticReference:
|
|
1443
|
+
visualPreview: _,
|
|
1444
|
+
semanticReference: le
|
|
1425
1445
|
});
|
|
1426
1446
|
} catch (y) {
|
|
1427
1447
|
console.error("Failed to capture preview:", y), g(u);
|
|
@@ -1430,30 +1450,30 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1430
1450
|
}
|
|
1431
1451
|
}
|
|
1432
1452
|
}, [l, u, m]);
|
|
1433
|
-
|
|
1453
|
+
Z(() => {
|
|
1434
1454
|
const d = (w) => {
|
|
1435
1455
|
if (w.key === "Escape") {
|
|
1436
1456
|
m ? g(null) : T ? P(!1) : l && p(!1);
|
|
1437
1457
|
return;
|
|
1438
1458
|
}
|
|
1439
|
-
const
|
|
1440
|
-
let
|
|
1441
|
-
for (;
|
|
1442
|
-
|
|
1443
|
-
return
|
|
1459
|
+
const H = (() => {
|
|
1460
|
+
let E = document.activeElement;
|
|
1461
|
+
for (; E && E.shadowRoot && E.shadowRoot.activeElement; )
|
|
1462
|
+
E = E.shadowRoot.activeElement;
|
|
1463
|
+
return E;
|
|
1444
1464
|
})();
|
|
1445
|
-
if (["input", "textarea"].includes((
|
|
1446
|
-
const
|
|
1447
|
-
|
|
1465
|
+
if (["input", "textarea"].includes((H?.tagName || "").toLowerCase()) || H?.isContentEditable) return;
|
|
1466
|
+
const O = w.key.toLowerCase();
|
|
1467
|
+
O === "c" && !m && !T && p((E) => !E), O === "v" && !m && (k.length > 0 || T) && (P((E) => !E), T || p(!1));
|
|
1448
1468
|
};
|
|
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",
|
|
1469
|
+
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), () => {
|
|
1470
|
+
document.body.classList.remove("vg-cursor-pointer"), window.removeEventListener("keydown", d), window.removeEventListener("mousemove", J, !0), window.removeEventListener("click", ce, !0);
|
|
1451
1471
|
};
|
|
1452
|
-
}, [l, m, T,
|
|
1453
|
-
const
|
|
1472
|
+
}, [l, m, T, k, J, ce]);
|
|
1473
|
+
const ft = async () => {
|
|
1454
1474
|
if (!m || !h.trim()) return;
|
|
1455
1475
|
V(!0);
|
|
1456
|
-
const { semanticReference: d } = m, [w, y] = (d.source || "").split(":"),
|
|
1476
|
+
const { semanticReference: d } = m, [w, y] = (d.source || "").split(":"), H = y || "0";
|
|
1457
1477
|
try {
|
|
1458
1478
|
if (!(await fetch(`${a}/api/annotations`, {
|
|
1459
1479
|
method: "POST",
|
|
@@ -1463,7 +1483,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1463
1483
|
},
|
|
1464
1484
|
body: JSON.stringify({
|
|
1465
1485
|
filePath: w,
|
|
1466
|
-
line: parseInt(
|
|
1486
|
+
line: parseInt(H),
|
|
1467
1487
|
url: window.location.href,
|
|
1468
1488
|
message: h,
|
|
1469
1489
|
componentName: d.componentPath || m.tag,
|
|
@@ -1479,18 +1499,18 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1479
1499
|
})
|
|
1480
1500
|
})).ok) throw new Error("Backend failed");
|
|
1481
1501
|
e(r.success, "success"), g(null), v(""), p(!1), A();
|
|
1482
|
-
} catch (
|
|
1483
|
-
console.error(
|
|
1502
|
+
} catch (G) {
|
|
1503
|
+
console.error(G), e(r.error, "error");
|
|
1484
1504
|
} finally {
|
|
1485
1505
|
V(!1);
|
|
1486
1506
|
}
|
|
1487
1507
|
};
|
|
1488
|
-
return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1508
|
+
return /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:894", className: "vg-container", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:895", className: "vg-no-capture", children: [
|
|
1489
1509
|
!i && /* @__PURE__ */ o.jsx(
|
|
1490
1510
|
"button",
|
|
1491
1511
|
{
|
|
1492
1512
|
onClick: (d) => {
|
|
1493
|
-
d.stopPropagation(),
|
|
1513
|
+
d.stopPropagation(), D({
|
|
1494
1514
|
title: r.exitConfirmTitle || "Close ViewGate?",
|
|
1495
1515
|
message: r.exitConfirmMessage || "Are you sure you want to close ViewGate?",
|
|
1496
1516
|
type: "danger",
|
|
@@ -1523,10 +1543,10 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1523
1543
|
onMouseLeave: (d) => {
|
|
1524
1544
|
d.currentTarget.style.transform = "scale(1) rotate(0deg)", d.currentTarget.style.color = "#64748b", d.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
|
|
1525
1545
|
},
|
|
1526
|
-
children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1546
|
+
children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:939", size: 20, strokeWidth: 2.5 })
|
|
1527
1547
|
}
|
|
1528
1548
|
),
|
|
1529
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1549
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:944", style: { position: "fixed", bottom: "30px", right: "30px", zIndex: ke }, id: "viewgate-ui", children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:945", className: "vg-action-bar vg-animate-slide-up", style: { transition: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)" }, children: [
|
|
1530
1550
|
/* @__PURE__ */ o.jsx(
|
|
1531
1551
|
"button",
|
|
1532
1552
|
{
|
|
@@ -1536,13 +1556,13 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1536
1556
|
padding: "12px 24px",
|
|
1537
1557
|
background: l ? "#ef4444" : void 0
|
|
1538
1558
|
},
|
|
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:
|
|
1559
|
+
children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:954", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
|
|
1560
|
+
l ? /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:955", size: 20, className: "vg-animate-pop" }) : /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:955", size: 20, className: "vg-animate-pop" }),
|
|
1561
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:956", children: l ? r.exitMode : r.enterMode })
|
|
1542
1562
|
] })
|
|
1543
1563
|
}
|
|
1544
1564
|
),
|
|
1545
|
-
|
|
1565
|
+
k.length > 0 && /* @__PURE__ */ o.jsxs(
|
|
1546
1566
|
"button",
|
|
1547
1567
|
{
|
|
1548
1568
|
onClick: () => {
|
|
@@ -1551,13 +1571,13 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1551
1571
|
className: "vg-button-ghost vg-animate-pop",
|
|
1552
1572
|
style: { animationDelay: "0.1s" },
|
|
1553
1573
|
children: [
|
|
1554
|
-
/* @__PURE__ */ o.jsx(
|
|
1555
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1574
|
+
/* @__PURE__ */ o.jsx(Gt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:969", size: 20 }),
|
|
1575
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:970", children: r.viewComments })
|
|
1556
1576
|
]
|
|
1557
1577
|
}
|
|
1558
1578
|
)
|
|
1559
1579
|
] }) }),
|
|
1560
|
-
I && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1580
|
+
I && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:978", style: {
|
|
1561
1581
|
position: "fixed",
|
|
1562
1582
|
top: 0,
|
|
1563
1583
|
left: 0,
|
|
@@ -1570,14 +1590,14 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1570
1590
|
justifyContent: "center",
|
|
1571
1591
|
zIndex: ke + 1,
|
|
1572
1592
|
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:
|
|
1593
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:984", className: "vg-glassmorphism", style: { padding: "30px 50px", display: "flex", flexDirection: "column", alignItems: "center", gap: "16px" }, children: [
|
|
1594
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:985", className: "vg-spinner" }),
|
|
1595
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:986", style: { fontWeight: 600, fontSize: "14px", color: "#000000" }, children: "Capturando..." })
|
|
1576
1596
|
] }) }),
|
|
1577
1597
|
l && !m && /* @__PURE__ */ o.jsx(
|
|
1578
1598
|
"div",
|
|
1579
1599
|
{
|
|
1580
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1600
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:993",
|
|
1581
1601
|
className: "vg-backdrop-blur",
|
|
1582
1602
|
style: {
|
|
1583
1603
|
opacity: 1,
|
|
@@ -1589,36 +1609,36 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1589
1609
|
${u.rect.left}px ${u.rect.bottom}px,
|
|
1590
1610
|
${u.rect.left}px ${u.rect.top}px
|
|
1591
1611
|
)` : "none",
|
|
1592
|
-
zIndex:
|
|
1612
|
+
zIndex: Hr
|
|
1593
1613
|
}
|
|
1594
1614
|
}
|
|
1595
1615
|
),
|
|
1596
1616
|
l && u && !m && !I && /* @__PURE__ */ o.jsx(
|
|
1597
1617
|
"div",
|
|
1598
1618
|
{
|
|
1599
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1619
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1012",
|
|
1600
1620
|
className: "vg-selection-pulse",
|
|
1601
1621
|
style: {
|
|
1602
1622
|
top: u.rect.top - 4,
|
|
1603
1623
|
left: u.rect.left - 4,
|
|
1604
1624
|
width: u.rect.width + 8,
|
|
1605
1625
|
height: u.rect.height + 8,
|
|
1606
|
-
zIndex:
|
|
1626
|
+
zIndex: Wr
|
|
1607
1627
|
},
|
|
1608
1628
|
children: /* @__PURE__ */ o.jsxs(
|
|
1609
1629
|
"div",
|
|
1610
1630
|
{
|
|
1611
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1631
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1022",
|
|
1612
1632
|
className: "vg-selection-label",
|
|
1613
1633
|
style: {
|
|
1614
1634
|
...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
1635
|
...u.rect.left + 200 > window.innerWidth ? { left: "auto", right: "0" } : { left: "0", right: "auto" }
|
|
1616
1636
|
},
|
|
1617
1637
|
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:
|
|
1638
|
+
/* @__PURE__ */ o.jsx(Mt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1038", size: 16 }),
|
|
1639
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1039", style: { display: "flex", flexDirection: "column" }, children: [
|
|
1640
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1040", style: { fontWeight: 700 }, children: r.selectToComment }),
|
|
1641
|
+
/* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1041", style: { fontSize: "10px", opacity: 0.8, fontFamily: "monospace" }, children: [
|
|
1622
1642
|
Math.round(u.rect.width),
|
|
1623
1643
|
" × ",
|
|
1624
1644
|
Math.round(u.rect.height)
|
|
@@ -1629,7 +1649,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1629
1649
|
)
|
|
1630
1650
|
}
|
|
1631
1651
|
),
|
|
1632
|
-
m && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1652
|
+
m && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1051", className: "vg-animate-fade", style: {
|
|
1633
1653
|
position: "fixed",
|
|
1634
1654
|
top: 0,
|
|
1635
1655
|
left: 0,
|
|
@@ -1641,13 +1661,13 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1641
1661
|
alignItems: "center",
|
|
1642
1662
|
justifyContent: "center",
|
|
1643
1663
|
zIndex: Re
|
|
1644
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1664
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1056", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
1645
1665
|
padding: "40px",
|
|
1646
1666
|
width: "500px",
|
|
1647
1667
|
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
|
|
1648
1668
|
}, 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:
|
|
1669
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1060", style: { textAlign: "center", marginBottom: "32px" }, children: [
|
|
1670
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1061", style: {
|
|
1651
1671
|
width: "48px",
|
|
1652
1672
|
height: "48px",
|
|
1653
1673
|
background: "var(--vg-primary-gradient)",
|
|
@@ -1658,11 +1678,11 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1658
1678
|
margin: "0 auto 16px",
|
|
1659
1679
|
color: "white",
|
|
1660
1680
|
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:
|
|
1681
|
+
}, children: /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1066", size: 24 }) }),
|
|
1682
|
+
/* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1068", style: { margin: "0 0 8px 0", fontSize: "24px", fontWeight: 800, color: "#0f172a" }, children: r.feedbackHeader }),
|
|
1683
|
+
/* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1069", style: { margin: 0, color: "#000000", fontSize: "15px" }, children: r.feedbackSubheader })
|
|
1664
1684
|
] }),
|
|
1665
|
-
m.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1685
|
+
m.visualPreview && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1073", style: {
|
|
1666
1686
|
marginBottom: "24px",
|
|
1667
1687
|
borderRadius: "12px",
|
|
1668
1688
|
overflow: "hidden",
|
|
@@ -1690,13 +1710,13 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1690
1710
|
style: { fontSize: "15px", padding: "16px", marginBottom: "24px" }
|
|
1691
1711
|
}
|
|
1692
1712
|
),
|
|
1693
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1713
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1100", style: { display: "flex", gap: "12px" }, children: [
|
|
1694
1714
|
/* @__PURE__ */ o.jsx(
|
|
1695
1715
|
"button",
|
|
1696
1716
|
{
|
|
1697
|
-
onClick: () => !
|
|
1717
|
+
onClick: () => !j && g(null),
|
|
1698
1718
|
className: "vg-button-ghost",
|
|
1699
|
-
disabled:
|
|
1719
|
+
disabled: j,
|
|
1700
1720
|
style: { flex: 1, padding: "12px" },
|
|
1701
1721
|
children: r.cancel
|
|
1702
1722
|
}
|
|
@@ -1704,19 +1724,19 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1704
1724
|
/* @__PURE__ */ o.jsx(
|
|
1705
1725
|
"button",
|
|
1706
1726
|
{
|
|
1707
|
-
onClick:
|
|
1727
|
+
onClick: ft,
|
|
1708
1728
|
className: "vg-button-primary",
|
|
1709
|
-
disabled:
|
|
1729
|
+
disabled: j || !h.trim(),
|
|
1710
1730
|
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:
|
|
1731
|
+
children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1115", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
1732
|
+
j ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1116", className: "vg-spinner", style: { width: "16px", height: "16px", borderWidth: "2px" } }) : /* @__PURE__ */ o.jsx(Ut, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1116", size: 18 }),
|
|
1733
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1117", children: j ? r.submitting : r.sendFeedback || "Send Comment" })
|
|
1714
1734
|
] })
|
|
1715
1735
|
}
|
|
1716
1736
|
)
|
|
1717
1737
|
] })
|
|
1718
1738
|
] }) }),
|
|
1719
|
-
T && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1739
|
+
T && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1127", className: "vg-animate-fade", style: {
|
|
1720
1740
|
position: "fixed",
|
|
1721
1741
|
top: 0,
|
|
1722
1742
|
left: 0,
|
|
@@ -1728,47 +1748,47 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1728
1748
|
alignItems: "center",
|
|
1729
1749
|
justifyContent: "center",
|
|
1730
1750
|
zIndex: Re
|
|
1731
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1751
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1132", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
1732
1752
|
padding: "32px",
|
|
1733
1753
|
width: "650px",
|
|
1734
1754
|
maxHeight: "85vh",
|
|
1735
1755
|
display: "flex",
|
|
1736
1756
|
flexDirection: "column"
|
|
1737
1757
|
}, 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
|
-
!
|
|
1758
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1136", style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "20px" }, children: [
|
|
1759
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1137", style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
|
|
1760
|
+
/* @__PURE__ */ o.jsx("h2", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1138", style: { margin: 0, fontSize: "20px", fontWeight: 800, color: "#0f172a" }, children: W ? r.commentDetails : r.annotations }),
|
|
1761
|
+
!W && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1142", className: "vg-badge", style: { background: "#e0e7ff", color: "#6366f1" }, children: k.length })
|
|
1742
1762
|
] }),
|
|
1743
|
-
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1744
|
-
|
|
1763
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1147", style: { display: "flex", gap: "8px" }, children: [
|
|
1764
|
+
W && /* @__PURE__ */ o.jsx(
|
|
1745
1765
|
"button",
|
|
1746
1766
|
{
|
|
1747
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1767
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1149",
|
|
1748
1768
|
className: "vg-button-ghost",
|
|
1749
1769
|
style: { padding: "6px 14px", fontSize: "12px" },
|
|
1750
|
-
onClick: () =>
|
|
1770
|
+
onClick: () => Q(null),
|
|
1751
1771
|
children: r.viewAll || "View All"
|
|
1752
1772
|
}
|
|
1753
1773
|
),
|
|
1754
1774
|
/* @__PURE__ */ o.jsx(
|
|
1755
1775
|
"button",
|
|
1756
1776
|
{
|
|
1757
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1777
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1157",
|
|
1758
1778
|
className: "vg-button-ghost",
|
|
1759
1779
|
style: { padding: "8px", borderRadius: "50%" },
|
|
1760
1780
|
onClick: () => {
|
|
1761
|
-
P(!1),
|
|
1781
|
+
P(!1), Q(null);
|
|
1762
1782
|
},
|
|
1763
|
-
children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1783
|
+
children: /* @__PURE__ */ o.jsx(Ee, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1162", size: 20 })
|
|
1764
1784
|
}
|
|
1765
1785
|
)
|
|
1766
1786
|
] })
|
|
1767
1787
|
] }),
|
|
1768
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1788
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1167", style: { maxHeight: "60vh", overflowY: "auto", paddingRight: "10px" }, className: "vg-custom-scrollbar", children: ae ? /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1169", style: { display: "flex", justifyContent: "center", padding: "40px" }, children: /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1170", className: "vg-spinner" }) }) : (W ? k.filter((d) => d._id === W) : k).map((d, w) => /* @__PURE__ */ o.jsxs(
|
|
1769
1789
|
"div",
|
|
1770
1790
|
{
|
|
1771
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1791
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1174",
|
|
1772
1792
|
className: "vg-glassmorphism vg-animate-slide",
|
|
1773
1793
|
style: {
|
|
1774
1794
|
padding: "20px",
|
|
@@ -1778,19 +1798,19 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1778
1798
|
animationDelay: `${w * 0.05}s`
|
|
1779
1799
|
},
|
|
1780
1800
|
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(
|
|
1801
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1185", style: { display: "flex", justifyContent: "space-between", marginBottom: "16px", alignItems: "center" }, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1186", style: { display: "flex", gap: "12px", alignItems: "center" }, children: [
|
|
1802
|
+
d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1188", className: "vg-badge", style: { backgroundColor: "#f0fdf4", color: "#16a34a" }, children: [
|
|
1803
|
+
/* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1189", size: 14 }),
|
|
1784
1804
|
" ",
|
|
1785
1805
|
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:
|
|
1806
|
+
] }) : /* @__PURE__ */ o.jsxs("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1192", className: "vg-badge", style: { backgroundColor: "#fff7ed", color: "#ea580c" }, children: [
|
|
1807
|
+
/* @__PURE__ */ o.jsx(ze, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1193", size: 14 }),
|
|
1788
1808
|
" ",
|
|
1789
1809
|
r.pending
|
|
1790
1810
|
] }),
|
|
1791
|
-
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1811
|
+
/* @__PURE__ */ o.jsx("span", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1196", style: { fontSize: "12px", color: "#000000" }, children: Yr(d.timestamp || d.createdAt || d.reference?.timestamp, t) })
|
|
1792
1812
|
] }) }),
|
|
1793
|
-
|
|
1813
|
+
ie === d._id ? /* @__PURE__ */ o.jsx(
|
|
1794
1814
|
"textarea",
|
|
1795
1815
|
{
|
|
1796
1816
|
className: "vg-textarea",
|
|
@@ -1800,12 +1820,12 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1800
1820
|
autoFocus: !0,
|
|
1801
1821
|
style: { marginBottom: "16px" }
|
|
1802
1822
|
}
|
|
1803
|
-
) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1804
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1823
|
+
) : /* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1212", style: { margin: "0 0 20px 0", fontSize: "16px", color: "#1e293b", lineHeight: 1.6 }, children: d.message }),
|
|
1824
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1215", 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
1825
|
/* @__PURE__ */ o.jsx(
|
|
1806
1826
|
"button",
|
|
1807
1827
|
{
|
|
1808
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1828
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1218",
|
|
1809
1829
|
className: "vg-button-primary vg-animate-pop",
|
|
1810
1830
|
style: { padding: "8px 16px", fontSize: "13px" },
|
|
1811
1831
|
onClick: async () => {
|
|
@@ -1814,7 +1834,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1814
1834
|
method: "PATCH",
|
|
1815
1835
|
headers: { "Content-Type": "application/json", "x-api-key": n },
|
|
1816
1836
|
body: JSON.stringify({ message: c })
|
|
1817
|
-
})).ok && (
|
|
1837
|
+
})).ok && (ee(null), A(), e(r.updateSuccess, "success"));
|
|
1818
1838
|
} catch {
|
|
1819
1839
|
e(r.error, "error");
|
|
1820
1840
|
}
|
|
@@ -1822,19 +1842,19 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1822
1842
|
children: r.save
|
|
1823
1843
|
}
|
|
1824
1844
|
),
|
|
1825
|
-
/* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1845
|
+
/* @__PURE__ */ o.jsx("button", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1240", className: "vg-button-ghost vg-animate-pop", style: { padding: "8px 16px", fontSize: "13px" }, onClick: () => ee(null), children: r.cancel })
|
|
1826
1846
|
] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1827
1847
|
/* @__PURE__ */ o.jsxs(
|
|
1828
1848
|
"button",
|
|
1829
1849
|
{
|
|
1830
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1850
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1244",
|
|
1831
1851
|
className: "vg-button-ghost vg-animate-pop",
|
|
1832
1852
|
style: { padding: "8px 16px", fontSize: "13px" },
|
|
1833
1853
|
onClick: () => {
|
|
1834
|
-
|
|
1854
|
+
ee(d._id), f(d.message);
|
|
1835
1855
|
},
|
|
1836
1856
|
children: [
|
|
1837
|
-
/* @__PURE__ */ o.jsx(
|
|
1857
|
+
/* @__PURE__ */ o.jsx(Ft, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1252", size: 14 }),
|
|
1838
1858
|
" ",
|
|
1839
1859
|
r.edit
|
|
1840
1860
|
]
|
|
@@ -1843,14 +1863,14 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1843
1863
|
/* @__PURE__ */ o.jsxs(
|
|
1844
1864
|
"button",
|
|
1845
1865
|
{
|
|
1846
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1866
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1254",
|
|
1847
1867
|
className: "vg-button-ghost vg-animate-pop",
|
|
1848
1868
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.05s" },
|
|
1849
1869
|
onClick: () => {
|
|
1850
1870
|
d.url && (window.location.href = d.url);
|
|
1851
1871
|
},
|
|
1852
1872
|
children: [
|
|
1853
|
-
/* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1873
|
+
/* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1261", size: 14 }),
|
|
1854
1874
|
" ",
|
|
1855
1875
|
r.review
|
|
1856
1876
|
]
|
|
@@ -1859,11 +1879,11 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1859
1879
|
d.status === "pending" ? /* @__PURE__ */ o.jsxs(
|
|
1860
1880
|
"button",
|
|
1861
1881
|
{
|
|
1862
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1882
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1264",
|
|
1863
1883
|
className: "vg-button-primary vg-animate-pop",
|
|
1864
1884
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
|
|
1865
1885
|
onClick: () => {
|
|
1866
|
-
|
|
1886
|
+
D({
|
|
1867
1887
|
title: r.markReadyConfirm,
|
|
1868
1888
|
message: r.confirmMarkReady,
|
|
1869
1889
|
type: "success",
|
|
@@ -1877,13 +1897,13 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1877
1897
|
} catch {
|
|
1878
1898
|
e(r.error, "error");
|
|
1879
1899
|
} finally {
|
|
1880
|
-
|
|
1900
|
+
D(null);
|
|
1881
1901
|
}
|
|
1882
1902
|
}
|
|
1883
1903
|
});
|
|
1884
1904
|
},
|
|
1885
1905
|
children: [
|
|
1886
|
-
/* @__PURE__ */ o.jsx(
|
|
1906
|
+
/* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1292", size: 14 }),
|
|
1887
1907
|
" ",
|
|
1888
1908
|
r.markReady
|
|
1889
1909
|
]
|
|
@@ -1891,11 +1911,11 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1891
1911
|
) : /* @__PURE__ */ o.jsxs(
|
|
1892
1912
|
"button",
|
|
1893
1913
|
{
|
|
1894
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1914
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1295",
|
|
1895
1915
|
className: "vg-button-ghost vg-animate-pop",
|
|
1896
1916
|
style: { padding: "8px 16px", fontSize: "13px", animationDelay: "0.1s" },
|
|
1897
1917
|
onClick: () => {
|
|
1898
|
-
|
|
1918
|
+
D({
|
|
1899
1919
|
title: r.reopenConfirm,
|
|
1900
1920
|
message: r.confirmReopen,
|
|
1901
1921
|
type: "success",
|
|
@@ -1910,13 +1930,13 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1910
1930
|
} catch {
|
|
1911
1931
|
e(r.error, "error");
|
|
1912
1932
|
} finally {
|
|
1913
|
-
|
|
1933
|
+
D(null);
|
|
1914
1934
|
}
|
|
1915
1935
|
}
|
|
1916
1936
|
});
|
|
1917
1937
|
},
|
|
1918
1938
|
children: [
|
|
1919
|
-
/* @__PURE__ */ o.jsx(
|
|
1939
|
+
/* @__PURE__ */ o.jsx(Ht, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1323", size: 14 }),
|
|
1920
1940
|
" ",
|
|
1921
1941
|
r.reopen
|
|
1922
1942
|
]
|
|
@@ -1925,11 +1945,11 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1925
1945
|
/* @__PURE__ */ o.jsx(
|
|
1926
1946
|
"button",
|
|
1927
1947
|
{
|
|
1928
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1948
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1326",
|
|
1929
1949
|
className: "vg-button-ghost vg-animate-pop",
|
|
1930
1950
|
style: { padding: "8px 12px", color: "#ef4444", borderColor: "#fee2e2", animationDelay: "0.15s" },
|
|
1931
1951
|
onClick: () => {
|
|
1932
|
-
|
|
1952
|
+
D({
|
|
1933
1953
|
title: r.deleteConfirm,
|
|
1934
1954
|
message: r.confirmDelete,
|
|
1935
1955
|
type: "danger",
|
|
@@ -1942,12 +1962,12 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1942
1962
|
} catch {
|
|
1943
1963
|
e(r.error, "error");
|
|
1944
1964
|
} finally {
|
|
1945
|
-
|
|
1965
|
+
D(null);
|
|
1946
1966
|
}
|
|
1947
1967
|
}
|
|
1948
1968
|
});
|
|
1949
1969
|
},
|
|
1950
|
-
children: /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1970
|
+
children: /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1353", size: 16 })
|
|
1951
1971
|
}
|
|
1952
1972
|
)
|
|
1953
1973
|
] }) })
|
|
@@ -1956,7 +1976,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1956
1976
|
d._id
|
|
1957
1977
|
)) })
|
|
1958
1978
|
] }) }),
|
|
1959
|
-
z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1979
|
+
z && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1368", className: "vg-animate-fade", style: {
|
|
1960
1980
|
position: "fixed",
|
|
1961
1981
|
top: 0,
|
|
1962
1982
|
left: 0,
|
|
@@ -1968,14 +1988,14 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1968
1988
|
alignItems: "center",
|
|
1969
1989
|
justifyContent: "center",
|
|
1970
1990
|
zIndex: Re + 100
|
|
1971
|
-
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1991
|
+
}, children: /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1373", className: "vg-glassmorphism vg-animate-slide", style: {
|
|
1972
1992
|
padding: "40px",
|
|
1973
1993
|
width: "420px",
|
|
1974
1994
|
textAlign: "center",
|
|
1975
1995
|
border: "1px solid rgba(255, 255, 255, 0.1)",
|
|
1976
1996
|
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
|
|
1977
1997
|
}, children: [
|
|
1978
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
1998
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1380", style: {
|
|
1979
1999
|
width: "64px",
|
|
1980
2000
|
height: "64px",
|
|
1981
2001
|
background: z.type === "danger" ? "rgba(239, 68, 68, 0.1)" : "rgba(99, 102, 241, 0.1)",
|
|
@@ -1986,25 +2006,25 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
1986
2006
|
margin: "0 auto 24px",
|
|
1987
2007
|
color: z.type === "danger" ? "#ef4444" : "#6366f1",
|
|
1988
2008
|
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:
|
|
2009
|
+
}, children: z.type === "danger" ? /* @__PURE__ */ o.jsx(De, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1389", size: 32 }) : /* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1389", size: 32 }) }),
|
|
2010
|
+
/* @__PURE__ */ o.jsx("h3", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1391", style: { margin: "0 0 12px 0", fontSize: "20px", fontWeight: 800, color: "#000000", letterSpacing: "-0.02em" }, children: z.title }),
|
|
2011
|
+
/* @__PURE__ */ o.jsx("p", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1392", style: { margin: "0 0 32px 0", fontSize: "15px", color: "#000000", lineHeight: 1.6 }, children: z.message }),
|
|
2012
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1393", style: { display: "flex", gap: "16px" }, children: [
|
|
1993
2013
|
/* @__PURE__ */ o.jsx(
|
|
1994
2014
|
"button",
|
|
1995
2015
|
{
|
|
1996
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2016
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1394",
|
|
1997
2017
|
className: "vg-button-ghost",
|
|
1998
2018
|
style: { flex: 1, height: "44px" },
|
|
1999
|
-
onClick: () => !
|
|
2000
|
-
disabled:
|
|
2019
|
+
onClick: () => !X && D(null),
|
|
2020
|
+
disabled: X,
|
|
2001
2021
|
children: r.no
|
|
2002
2022
|
}
|
|
2003
2023
|
),
|
|
2004
2024
|
/* @__PURE__ */ o.jsx(
|
|
2005
2025
|
"button",
|
|
2006
2026
|
{
|
|
2007
|
-
"data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2027
|
+
"data-source-path": "/src/components/ViewGateOverlay.tsx:1402",
|
|
2008
2028
|
className: "vg-button-primary",
|
|
2009
2029
|
style: {
|
|
2010
2030
|
flex: 1,
|
|
@@ -2016,27 +2036,27 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
2016
2036
|
justifyContent: "center",
|
|
2017
2037
|
gap: "8px"
|
|
2018
2038
|
},
|
|
2019
|
-
disabled:
|
|
2039
|
+
disabled: X,
|
|
2020
2040
|
onClick: async () => {
|
|
2021
|
-
|
|
2041
|
+
oe(!0);
|
|
2022
2042
|
try {
|
|
2023
2043
|
await z.onConfirm();
|
|
2024
2044
|
} catch (d) {
|
|
2025
2045
|
console.error("Confirmation error:", d);
|
|
2026
2046
|
} finally {
|
|
2027
|
-
|
|
2047
|
+
oe(!1);
|
|
2028
2048
|
}
|
|
2029
2049
|
},
|
|
2030
|
-
children:
|
|
2050
|
+
children: X ? /* @__PURE__ */ o.jsx(Lt, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1427", size: 18, className: "vg-animate-spin" }) : r.yes
|
|
2031
2051
|
}
|
|
2032
2052
|
)
|
|
2033
2053
|
] })
|
|
2034
2054
|
] }) }),
|
|
2035
|
-
!l && !T &&
|
|
2055
|
+
!l && !T && k.map((d, w) => {
|
|
2036
2056
|
const y = C[d._id];
|
|
2037
2057
|
if (!y) return null;
|
|
2038
|
-
const
|
|
2039
|
-
(
|
|
2058
|
+
const G = k.slice(0, w).filter(
|
|
2059
|
+
(O) => O.reference?.selector && O.reference.selector === d.reference?.selector
|
|
2040
2060
|
).length * 34;
|
|
2041
2061
|
return /* @__PURE__ */ o.jsxs(
|
|
2042
2062
|
"div",
|
|
@@ -2045,37 +2065,37 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
2045
2065
|
style: {
|
|
2046
2066
|
position: "fixed",
|
|
2047
2067
|
top: y.top - 20 - window.scrollY,
|
|
2048
|
-
left: y.left + y.width / 2 - 16 +
|
|
2068
|
+
left: y.left + y.width / 2 - 16 + G - window.scrollX,
|
|
2049
2069
|
cursor: "pointer",
|
|
2050
2070
|
animationDelay: `${w * 0.08}s`,
|
|
2051
2071
|
transition: "all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",
|
|
2052
|
-
zIndex:
|
|
2072
|
+
zIndex: Ur - w
|
|
2053
2073
|
// Ensure staggered pins don't overlap tooltips weirdly
|
|
2054
2074
|
},
|
|
2055
|
-
onMouseEnter: (
|
|
2056
|
-
const
|
|
2057
|
-
window.innerHeight -
|
|
2075
|
+
onMouseEnter: (O) => {
|
|
2076
|
+
const E = O.currentTarget.getBoundingClientRect();
|
|
2077
|
+
window.innerHeight - E.bottom < 180 ? fe((_) => ({ ..._, [d._id]: "vg-top" })) : fe((_) => ({ ..._, [d._id]: "" }));
|
|
2058
2078
|
},
|
|
2059
2079
|
onClick: () => {
|
|
2060
|
-
P(!0),
|
|
2080
|
+
P(!0), Q(d._id);
|
|
2061
2081
|
},
|
|
2062
2082
|
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(
|
|
2083
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1474", className: `vg-pin-tooltip ${me[d._id] || ""}`, children: [
|
|
2084
|
+
/* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1475", style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "8px" }, children: [
|
|
2085
|
+
d.status === "ready_for_review" ? /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1477", style: { display: "flex", alignItems: "center", gap: "6px", color: "#16a34a", fontWeight: 700, fontSize: "11px" }, children: [
|
|
2086
|
+
/* @__PURE__ */ o.jsx(se, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1478", size: 12 }),
|
|
2067
2087
|
" ",
|
|
2068
2088
|
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:
|
|
2089
|
+
] }) : /* @__PURE__ */ o.jsxs("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1481", style: { display: "flex", alignItems: "center", gap: "6px", color: y.isModal ? "#f59e0b" : "#ea580c", fontWeight: 700, fontSize: "11px" }, children: [
|
|
2090
|
+
/* @__PURE__ */ o.jsx(ze, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1482", size: 12 }),
|
|
2071
2091
|
" ",
|
|
2072
2092
|
r.pending
|
|
2073
2093
|
] }),
|
|
2074
|
-
y.isModal && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2094
|
+
y.isModal && /* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1486", 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:1487", children: "MODAL" }) })
|
|
2075
2095
|
] }),
|
|
2076
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2096
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1491", style: { fontWeight: 500, color: "#1e293b", lineHeight: 1.4 }, children: d.message })
|
|
2077
2097
|
] }),
|
|
2078
|
-
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:
|
|
2098
|
+
/* @__PURE__ */ o.jsx("div", { "data-source-path": "/src/components/ViewGateOverlay.tsx:1494", 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:1495", size: 18 }) : y.isModal ? /* @__PURE__ */ o.jsx(Fe, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1495", size: 16 }) : /* @__PURE__ */ o.jsx(Ce, { "data-source-path": "/src/components/ViewGateOverlay.tsx:1495", size: 16 }) })
|
|
2079
2099
|
]
|
|
2080
2100
|
},
|
|
2081
2101
|
`pin-${d._id}`
|
|
@@ -2083,7 +2103,7 @@ const we = 2147483647, ke = we, Re = 2e6, Dr = we - 10, Hr = we - 5, Wr = we - 1
|
|
|
2083
2103
|
})
|
|
2084
2104
|
] }) });
|
|
2085
2105
|
};
|
|
2086
|
-
function
|
|
2106
|
+
function mt(e, t, r) {
|
|
2087
2107
|
if (!t.endsWith(".tsx") && !t.endsWith(".jsx") || t.includes("node_modules")) return e;
|
|
2088
2108
|
const n = (l) => l.replace(/\\/g, "/"), a = n(t).replace(n(r), "");
|
|
2089
2109
|
return e.split(`
|
|
@@ -2099,7 +2119,7 @@ function cn() {
|
|
|
2099
2119
|
enforce: "pre",
|
|
2100
2120
|
transform(e, t) {
|
|
2101
2121
|
return {
|
|
2102
|
-
code:
|
|
2122
|
+
code: mt(e, t, process.cwd()),
|
|
2103
2123
|
map: null
|
|
2104
2124
|
};
|
|
2105
2125
|
}
|
|
@@ -2107,13 +2127,13 @@ function cn() {
|
|
|
2107
2127
|
}
|
|
2108
2128
|
function ln(e) {
|
|
2109
2129
|
const t = this.resourcePath;
|
|
2110
|
-
return t ? (process.env.NODE_ENV,
|
|
2130
|
+
return t ? (process.env.NODE_ENV, mt(e, t, process.cwd())) : e;
|
|
2111
2131
|
}
|
|
2112
2132
|
export {
|
|
2113
2133
|
on as ViewGate,
|
|
2114
2134
|
nn as ViewGateOverlay,
|
|
2115
|
-
|
|
2116
|
-
|
|
2135
|
+
mt as transformSourcePaths,
|
|
2136
|
+
Xt as useViewGate,
|
|
2117
2137
|
ln as viewgateNextLoader,
|
|
2118
2138
|
cn as viewgatePlugin
|
|
2119
2139
|
};
|