@bitux/review-layer-react 0.1.7 → 0.1.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/Overlay.d.ts +3 -1
- package/dist/ReviewProvider.d.ts +7 -1
- package/dist/review-layer-react.js +1011 -965
- package/dist/review-layer-react.js.map +1 -1
- package/dist/review-layer-react.umd.cjs +15 -15
- package/dist/review-layer-react.umd.cjs.map +1 -1
- package/dist/utils/pageUrl.d.ts +6 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createPortal as
|
|
3
|
-
var
|
|
1
|
+
import fr, { memo as ke, useState as W, useEffect as L, useCallback as D, useRef as ne, useMemo as Be, createContext as Hr, useContext as Gr } from "react";
|
|
2
|
+
import { createPortal as vr } from "react-dom";
|
|
3
|
+
var Me = { exports: {} }, ge = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -10,21 +10,21 @@ var Ne = { exports: {} }, fe = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var r =
|
|
18
|
-
function u
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
for (
|
|
22
|
-
if (
|
|
23
|
-
return { $$typeof:
|
|
13
|
+
var ir;
|
|
14
|
+
function Xr() {
|
|
15
|
+
if (ir) return ge;
|
|
16
|
+
ir = 1;
|
|
17
|
+
var r = fr, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function d(u, f, g) {
|
|
19
|
+
var y, S = {}, m = null, A = null;
|
|
20
|
+
g !== void 0 && (m = "" + g), f.key !== void 0 && (m = "" + f.key), f.ref !== void 0 && (A = f.ref);
|
|
21
|
+
for (y in f) o.call(f, y) && !i.hasOwnProperty(y) && (S[y] = f[y]);
|
|
22
|
+
if (u && u.defaultProps) for (y in f = u.defaultProps, f) S[y] === void 0 && (S[y] = f[y]);
|
|
23
|
+
return { $$typeof: n, type: u, key: m, ref: A, props: S, _owner: s.current };
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return ge.Fragment = t, ge.jsx = d, ge.jsxs = d, ge;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var he = {};
|
|
28
28
|
/**
|
|
29
29
|
* @license React
|
|
30
30
|
* react-jsx-runtime.development.js
|
|
@@ -34,91 +34,91 @@ var ve = {};
|
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
36
|
*/
|
|
37
|
-
var
|
|
38
|
-
function
|
|
39
|
-
return
|
|
40
|
-
var r =
|
|
41
|
-
function
|
|
37
|
+
var ar;
|
|
38
|
+
function qr() {
|
|
39
|
+
return ar || (ar = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
+
var r = fr, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), u = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), z = Symbol.iterator, M = "@@iterator";
|
|
41
|
+
function P(e) {
|
|
42
42
|
if (e === null || typeof e != "object")
|
|
43
43
|
return null;
|
|
44
|
-
var a =
|
|
44
|
+
var a = z && e[z] || e[M];
|
|
45
45
|
return typeof a == "function" ? a : null;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
function
|
|
47
|
+
var $ = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
|
+
function v(e) {
|
|
49
49
|
{
|
|
50
50
|
for (var a = arguments.length, l = new Array(a > 1 ? a - 1 : 0), p = 1; p < a; p++)
|
|
51
51
|
l[p - 1] = arguments[p];
|
|
52
|
-
|
|
52
|
+
k("error", e, l);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function k(e, a, l) {
|
|
56
56
|
{
|
|
57
|
-
var p =
|
|
58
|
-
|
|
59
|
-
var
|
|
60
|
-
return String(
|
|
57
|
+
var p = $.ReactDebugCurrentFrame, C = p.getStackAddendum();
|
|
58
|
+
C !== "" && (a += "%s", l = l.concat([C]));
|
|
59
|
+
var T = l.map(function(_) {
|
|
60
|
+
return String(_);
|
|
61
61
|
});
|
|
62
|
-
|
|
62
|
+
T.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, T);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
function
|
|
68
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
65
|
+
var Y = !1, E = !1, R = !1, V = !1, q = !1, H;
|
|
66
|
+
H = Symbol.for("react.module.reference");
|
|
67
|
+
function Q(e) {
|
|
68
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === i || q || e === s || e === g || e === y || V || e === A || Y || E || R || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === S || e.$$typeof === d || e.$$typeof === u || e.$$typeof === f || // This needs to include all possible module reference object
|
|
69
69
|
// types supported by any Flight configuration anywhere since
|
|
70
70
|
// we don't know which Flight build this will end up being used
|
|
71
71
|
// with.
|
|
72
|
-
e.$$typeof ===
|
|
72
|
+
e.$$typeof === H || e.getModuleId !== void 0));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function ie(e, a, l) {
|
|
75
75
|
var p = e.displayName;
|
|
76
76
|
if (p)
|
|
77
77
|
return p;
|
|
78
|
-
var
|
|
79
|
-
return
|
|
78
|
+
var C = a.displayName || a.name || "";
|
|
79
|
+
return C !== "" ? l + "(" + C + ")" : l;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function h(e) {
|
|
82
82
|
return e.displayName || "Context";
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function b(e) {
|
|
85
85
|
if (e == null)
|
|
86
86
|
return null;
|
|
87
|
-
if (typeof e.tag == "number" &&
|
|
87
|
+
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
88
88
|
return e.displayName || e.name || null;
|
|
89
89
|
if (typeof e == "string")
|
|
90
90
|
return e;
|
|
91
91
|
switch (e) {
|
|
92
|
-
case n:
|
|
93
|
-
return "Fragment";
|
|
94
92
|
case o:
|
|
93
|
+
return "Fragment";
|
|
94
|
+
case t:
|
|
95
95
|
return "Portal";
|
|
96
|
-
case s:
|
|
97
|
-
return "Profiler";
|
|
98
96
|
case i:
|
|
97
|
+
return "Profiler";
|
|
98
|
+
case s:
|
|
99
99
|
return "StrictMode";
|
|
100
|
-
case
|
|
100
|
+
case g:
|
|
101
101
|
return "Suspense";
|
|
102
|
-
case
|
|
102
|
+
case y:
|
|
103
103
|
return "SuspenseList";
|
|
104
104
|
}
|
|
105
105
|
if (typeof e == "object")
|
|
106
106
|
switch (e.$$typeof) {
|
|
107
|
-
case v:
|
|
108
|
-
var a = e;
|
|
109
|
-
return R(a) + ".Consumer";
|
|
110
107
|
case u:
|
|
108
|
+
var a = e;
|
|
109
|
+
return h(a) + ".Consumer";
|
|
110
|
+
case d:
|
|
111
111
|
var l = e;
|
|
112
|
-
return
|
|
112
|
+
return h(l._context) + ".Provider";
|
|
113
113
|
case f:
|
|
114
|
-
return
|
|
115
|
-
case
|
|
114
|
+
return ie(e, e.render, "ForwardRef");
|
|
115
|
+
case S:
|
|
116
116
|
var p = e.displayName || null;
|
|
117
|
-
return p !== null ? p :
|
|
118
|
-
case
|
|
119
|
-
var
|
|
117
|
+
return p !== null ? p : b(e.type) || "Memo";
|
|
118
|
+
case m: {
|
|
119
|
+
var C = e, T = C._payload, _ = C._init;
|
|
120
120
|
try {
|
|
121
|
-
return
|
|
121
|
+
return b(_(T));
|
|
122
122
|
} catch {
|
|
123
123
|
return null;
|
|
124
124
|
}
|
|
@@ -126,18 +126,18 @@ function Xr() {
|
|
|
126
126
|
}
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
129
|
-
var
|
|
130
|
-
function
|
|
129
|
+
var O = Object.assign, I = 0, re, ae, se, fe, ve, w, ee;
|
|
130
|
+
function te() {
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
function
|
|
132
|
+
te.__reactDisabledLog = !0;
|
|
133
|
+
function K() {
|
|
134
134
|
{
|
|
135
|
-
if (
|
|
136
|
-
|
|
135
|
+
if (I === 0) {
|
|
136
|
+
re = console.log, ae = console.info, se = console.warn, fe = console.error, ve = console.group, w = console.groupCollapsed, ee = console.groupEnd;
|
|
137
137
|
var e = {
|
|
138
138
|
configurable: !0,
|
|
139
139
|
enumerable: !0,
|
|
140
|
-
value:
|
|
140
|
+
value: te,
|
|
141
141
|
writable: !0
|
|
142
142
|
};
|
|
143
143
|
Object.defineProperties(console, {
|
|
@@ -150,250 +150,250 @@ function Xr() {
|
|
|
150
150
|
groupEnd: e
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
I++;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function xe() {
|
|
157
157
|
{
|
|
158
|
-
if (
|
|
158
|
+
if (I--, I === 0) {
|
|
159
159
|
var e = {
|
|
160
160
|
configurable: !0,
|
|
161
161
|
enumerable: !0,
|
|
162
162
|
writable: !0
|
|
163
163
|
};
|
|
164
164
|
Object.defineProperties(console, {
|
|
165
|
-
log:
|
|
166
|
-
value:
|
|
165
|
+
log: O({}, e, {
|
|
166
|
+
value: re
|
|
167
167
|
}),
|
|
168
|
-
info:
|
|
169
|
-
value:
|
|
168
|
+
info: O({}, e, {
|
|
169
|
+
value: ae
|
|
170
170
|
}),
|
|
171
|
-
warn:
|
|
172
|
-
value:
|
|
171
|
+
warn: O({}, e, {
|
|
172
|
+
value: se
|
|
173
173
|
}),
|
|
174
|
-
error:
|
|
175
|
-
value:
|
|
174
|
+
error: O({}, e, {
|
|
175
|
+
value: fe
|
|
176
176
|
}),
|
|
177
|
-
group:
|
|
178
|
-
value:
|
|
177
|
+
group: O({}, e, {
|
|
178
|
+
value: ve
|
|
179
179
|
}),
|
|
180
|
-
groupCollapsed:
|
|
181
|
-
value:
|
|
180
|
+
groupCollapsed: O({}, e, {
|
|
181
|
+
value: w
|
|
182
182
|
}),
|
|
183
|
-
groupEnd:
|
|
184
|
-
value:
|
|
183
|
+
groupEnd: O({}, e, {
|
|
184
|
+
value: ee
|
|
185
185
|
})
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
I < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
var Pe =
|
|
192
|
-
function
|
|
191
|
+
var Pe = $.ReactCurrentDispatcher, je;
|
|
192
|
+
function ye(e, a, l) {
|
|
193
193
|
{
|
|
194
|
-
if (
|
|
194
|
+
if (je === void 0)
|
|
195
195
|
try {
|
|
196
196
|
throw Error();
|
|
197
|
-
} catch (
|
|
198
|
-
var p =
|
|
199
|
-
|
|
197
|
+
} catch (C) {
|
|
198
|
+
var p = C.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
+
je = p && p[1] || "";
|
|
200
200
|
}
|
|
201
201
|
return `
|
|
202
|
-
` +
|
|
202
|
+
` + je + e;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
var
|
|
205
|
+
var Ve = !1, me;
|
|
206
206
|
{
|
|
207
|
-
var
|
|
208
|
-
|
|
207
|
+
var wr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
+
me = new wr();
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
if (!e ||
|
|
210
|
+
function Ue(e, a) {
|
|
211
|
+
if (!e || Ve)
|
|
212
212
|
return "";
|
|
213
213
|
{
|
|
214
|
-
var l =
|
|
214
|
+
var l = me.get(e);
|
|
215
215
|
if (l !== void 0)
|
|
216
216
|
return l;
|
|
217
217
|
}
|
|
218
218
|
var p;
|
|
219
|
-
|
|
220
|
-
var
|
|
219
|
+
Ve = !0;
|
|
220
|
+
var C = Error.prepareStackTrace;
|
|
221
221
|
Error.prepareStackTrace = void 0;
|
|
222
|
-
var
|
|
223
|
-
|
|
222
|
+
var T;
|
|
223
|
+
T = Pe.current, Pe.current = null, K();
|
|
224
224
|
try {
|
|
225
225
|
if (a) {
|
|
226
|
-
var
|
|
226
|
+
var _ = function() {
|
|
227
227
|
throw Error();
|
|
228
228
|
};
|
|
229
|
-
if (Object.defineProperty(
|
|
229
|
+
if (Object.defineProperty(_.prototype, "props", {
|
|
230
230
|
set: function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
}
|
|
233
233
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
234
|
try {
|
|
235
|
-
Reflect.construct(
|
|
236
|
-
} catch (
|
|
237
|
-
p =
|
|
235
|
+
Reflect.construct(_, []);
|
|
236
|
+
} catch (G) {
|
|
237
|
+
p = G;
|
|
238
238
|
}
|
|
239
|
-
Reflect.construct(e, [],
|
|
239
|
+
Reflect.construct(e, [], _);
|
|
240
240
|
} else {
|
|
241
241
|
try {
|
|
242
|
-
|
|
243
|
-
} catch (
|
|
244
|
-
p =
|
|
242
|
+
_.call();
|
|
243
|
+
} catch (G) {
|
|
244
|
+
p = G;
|
|
245
245
|
}
|
|
246
|
-
e.call(
|
|
246
|
+
e.call(_.prototype);
|
|
247
247
|
}
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
throw Error();
|
|
251
|
-
} catch (
|
|
252
|
-
p =
|
|
251
|
+
} catch (G) {
|
|
252
|
+
p = G;
|
|
253
253
|
}
|
|
254
254
|
e();
|
|
255
255
|
}
|
|
256
|
-
} catch (
|
|
257
|
-
if (
|
|
258
|
-
for (var
|
|
259
|
-
`),
|
|
260
|
-
`),
|
|
261
|
-
|
|
262
|
-
for (;
|
|
263
|
-
if (
|
|
264
|
-
if (
|
|
256
|
+
} catch (G) {
|
|
257
|
+
if (G && p && typeof G.stack == "string") {
|
|
258
|
+
for (var x = G.stack.split(`
|
|
259
|
+
`), B = p.stack.split(`
|
|
260
|
+
`), F = x.length - 1, N = B.length - 1; F >= 1 && N >= 0 && x[F] !== B[N]; )
|
|
261
|
+
N--;
|
|
262
|
+
for (; F >= 1 && N >= 0; F--, N--)
|
|
263
|
+
if (x[F] !== B[N]) {
|
|
264
|
+
if (F !== 1 || N !== 1)
|
|
265
265
|
do
|
|
266
|
-
if (
|
|
267
|
-
var
|
|
268
|
-
` +
|
|
269
|
-
return e.displayName &&
|
|
266
|
+
if (F--, N--, N < 0 || x[F] !== B[N]) {
|
|
267
|
+
var J = `
|
|
268
|
+
` + x[F].replace(" at new ", " at ");
|
|
269
|
+
return e.displayName && J.includes("<anonymous>") && (J = J.replace("<anonymous>", e.displayName)), typeof e == "function" && me.set(e, J), J;
|
|
270
270
|
}
|
|
271
|
-
while (
|
|
271
|
+
while (F >= 1 && N >= 0);
|
|
272
272
|
break;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
} finally {
|
|
276
|
-
|
|
276
|
+
Ve = !1, Pe.current = T, xe(), Error.prepareStackTrace = C;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
return typeof e == "function" &&
|
|
278
|
+
var ue = e ? e.displayName || e.name : "", oe = ue ? ye(ue) : "";
|
|
279
|
+
return typeof e == "function" && me.set(e, oe), oe;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
return
|
|
281
|
+
function _r(e, a, l) {
|
|
282
|
+
return Ue(e, !1);
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Er(e) {
|
|
285
285
|
var a = e.prototype;
|
|
286
286
|
return !!(a && a.isReactComponent);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function we(e, a, l) {
|
|
289
289
|
if (e == null)
|
|
290
290
|
return "";
|
|
291
291
|
if (typeof e == "function")
|
|
292
|
-
return
|
|
292
|
+
return Ue(e, Er(e));
|
|
293
293
|
if (typeof e == "string")
|
|
294
|
-
return
|
|
294
|
+
return ye(e);
|
|
295
295
|
switch (e) {
|
|
296
|
-
case
|
|
297
|
-
return
|
|
298
|
-
case
|
|
299
|
-
return
|
|
296
|
+
case g:
|
|
297
|
+
return ye("Suspense");
|
|
298
|
+
case y:
|
|
299
|
+
return ye("SuspenseList");
|
|
300
300
|
}
|
|
301
301
|
if (typeof e == "object")
|
|
302
302
|
switch (e.$$typeof) {
|
|
303
303
|
case f:
|
|
304
|
-
return
|
|
305
|
-
case
|
|
306
|
-
return
|
|
307
|
-
case
|
|
308
|
-
var p = e,
|
|
304
|
+
return _r(e.render);
|
|
305
|
+
case S:
|
|
306
|
+
return we(e.type, a, l);
|
|
307
|
+
case m: {
|
|
308
|
+
var p = e, C = p._payload, T = p._init;
|
|
309
309
|
try {
|
|
310
|
-
return
|
|
310
|
+
return we(T(C), a, l);
|
|
311
311
|
} catch {
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
return "";
|
|
316
316
|
}
|
|
317
|
-
var
|
|
318
|
-
function
|
|
317
|
+
var pe = Object.prototype.hasOwnProperty, Ye = {}, He = $.ReactDebugCurrentFrame;
|
|
318
|
+
function _e(e) {
|
|
319
319
|
if (e) {
|
|
320
|
-
var a = e._owner, l =
|
|
321
|
-
|
|
320
|
+
var a = e._owner, l = we(e.type, e._source, a ? a.type : null);
|
|
321
|
+
He.setExtraStackFrame(l);
|
|
322
322
|
} else
|
|
323
|
-
|
|
323
|
+
He.setExtraStackFrame(null);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function Rr(e, a, l, p, C) {
|
|
326
326
|
{
|
|
327
|
-
var
|
|
328
|
-
for (var
|
|
329
|
-
if (
|
|
330
|
-
var
|
|
327
|
+
var T = Function.call.bind(pe);
|
|
328
|
+
for (var _ in e)
|
|
329
|
+
if (T(e, _)) {
|
|
330
|
+
var x = void 0;
|
|
331
331
|
try {
|
|
332
|
-
if (typeof e[
|
|
333
|
-
var
|
|
334
|
-
throw
|
|
332
|
+
if (typeof e[_] != "function") {
|
|
333
|
+
var B = Error((p || "React class") + ": " + l + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
|
+
throw B.name = "Invariant Violation", B;
|
|
335
335
|
}
|
|
336
|
-
|
|
337
|
-
} catch (
|
|
338
|
-
|
|
336
|
+
x = e[_](a, _, p, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
|
+
} catch (F) {
|
|
338
|
+
x = F;
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
x && !(x instanceof Error) && (_e(C), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", l, _, typeof x), _e(null)), x instanceof Error && !(x.message in Ye) && (Ye[x.message] = !0, _e(C), v("Failed %s type: %s", l, x.message), _e(null));
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
var
|
|
345
|
-
function
|
|
346
|
-
return
|
|
344
|
+
var Sr = Array.isArray;
|
|
345
|
+
function Ie(e) {
|
|
346
|
+
return Sr(e);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Cr(e) {
|
|
349
349
|
{
|
|
350
350
|
var a = typeof Symbol == "function" && Symbol.toStringTag, l = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
351
351
|
return l;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function kr(e) {
|
|
355
355
|
try {
|
|
356
|
-
return
|
|
356
|
+
return Ge(e), !1;
|
|
357
357
|
} catch {
|
|
358
358
|
return !0;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Ge(e) {
|
|
362
362
|
return "" + e;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
if (
|
|
366
|
-
return
|
|
364
|
+
function Xe(e) {
|
|
365
|
+
if (kr(e))
|
|
366
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Cr(e)), Ge(e);
|
|
367
367
|
}
|
|
368
|
-
var
|
|
368
|
+
var qe = $.ReactCurrentOwner, Tr = {
|
|
369
369
|
key: !0,
|
|
370
370
|
ref: !0,
|
|
371
371
|
__self: !0,
|
|
372
372
|
__source: !0
|
|
373
|
-
},
|
|
373
|
+
}, Je, Ze;
|
|
374
374
|
function Pr(e) {
|
|
375
|
-
if (
|
|
375
|
+
if (pe.call(e, "ref")) {
|
|
376
376
|
var a = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
377
377
|
if (a && a.isReactWarning)
|
|
378
378
|
return !1;
|
|
379
379
|
}
|
|
380
380
|
return e.ref !== void 0;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
if (
|
|
382
|
+
function jr(e) {
|
|
383
|
+
if (pe.call(e, "key")) {
|
|
384
384
|
var a = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
385
385
|
if (a && a.isReactWarning)
|
|
386
386
|
return !1;
|
|
387
387
|
}
|
|
388
388
|
return e.key !== void 0;
|
|
389
389
|
}
|
|
390
|
-
function jr(e, a) {
|
|
391
|
-
typeof e.ref == "string" && Xe.current;
|
|
392
|
-
}
|
|
393
390
|
function Vr(e, a) {
|
|
391
|
+
typeof e.ref == "string" && qe.current;
|
|
392
|
+
}
|
|
393
|
+
function Ir(e, a) {
|
|
394
394
|
{
|
|
395
395
|
var l = function() {
|
|
396
|
-
|
|
396
|
+
Je || (Je = !0, v("%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://reactjs.org/link/special-props)", a));
|
|
397
397
|
};
|
|
398
398
|
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
399
399
|
get: l,
|
|
@@ -401,10 +401,10 @@ function Xr() {
|
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Dr(e, a) {
|
|
405
405
|
{
|
|
406
406
|
var l = function() {
|
|
407
|
-
|
|
407
|
+
Ze || (Ze = !0, v("%s: `ref` 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://reactjs.org/link/special-props)", a));
|
|
408
408
|
};
|
|
409
409
|
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
410
410
|
get: l,
|
|
@@ -412,70 +412,70 @@ function Xr() {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
var Or = function(e, a, l, p,
|
|
416
|
-
var
|
|
415
|
+
var Or = function(e, a, l, p, C, T, _) {
|
|
416
|
+
var x = {
|
|
417
417
|
// This tag allows us to uniquely identify this as a React Element
|
|
418
|
-
$$typeof:
|
|
418
|
+
$$typeof: n,
|
|
419
419
|
// Built-in properties that belong on the element
|
|
420
420
|
type: e,
|
|
421
421
|
key: a,
|
|
422
422
|
ref: l,
|
|
423
|
-
props:
|
|
423
|
+
props: _,
|
|
424
424
|
// Record the component responsible for creating this element.
|
|
425
|
-
_owner:
|
|
425
|
+
_owner: T
|
|
426
426
|
};
|
|
427
|
-
return
|
|
427
|
+
return x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
428
428
|
configurable: !1,
|
|
429
429
|
enumerable: !1,
|
|
430
430
|
writable: !0,
|
|
431
431
|
value: !1
|
|
432
|
-
}), Object.defineProperty(
|
|
432
|
+
}), Object.defineProperty(x, "_self", {
|
|
433
433
|
configurable: !1,
|
|
434
434
|
enumerable: !1,
|
|
435
435
|
writable: !1,
|
|
436
436
|
value: p
|
|
437
|
-
}), Object.defineProperty(
|
|
437
|
+
}), Object.defineProperty(x, "_source", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
442
|
-
}), Object.freeze && (Object.freeze(
|
|
441
|
+
value: C
|
|
442
|
+
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
443
443
|
};
|
|
444
|
-
function
|
|
444
|
+
function Lr(e, a, l, p, C) {
|
|
445
445
|
{
|
|
446
|
-
var
|
|
447
|
-
l !== void 0 && (
|
|
448
|
-
for (
|
|
449
|
-
|
|
446
|
+
var T, _ = {}, x = null, B = null;
|
|
447
|
+
l !== void 0 && (Xe(l), x = "" + l), jr(a) && (Xe(a.key), x = "" + a.key), Pr(a) && (B = a.ref, Vr(a, C));
|
|
448
|
+
for (T in a)
|
|
449
|
+
pe.call(a, T) && !Tr.hasOwnProperty(T) && (_[T] = a[T]);
|
|
450
450
|
if (e && e.defaultProps) {
|
|
451
|
-
var
|
|
452
|
-
for (
|
|
453
|
-
|
|
451
|
+
var F = e.defaultProps;
|
|
452
|
+
for (T in F)
|
|
453
|
+
_[T] === void 0 && (_[T] = F[T]);
|
|
454
454
|
}
|
|
455
|
-
if (
|
|
456
|
-
var
|
|
457
|
-
|
|
455
|
+
if (x || B) {
|
|
456
|
+
var N = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
|
+
x && Ir(_, N), B && Dr(_, N);
|
|
458
458
|
}
|
|
459
|
-
return Or(e,
|
|
459
|
+
return Or(e, x, B, C, p, qe.current, _);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
var
|
|
463
|
-
function
|
|
462
|
+
var De = $.ReactCurrentOwner, Qe = $.ReactDebugCurrentFrame;
|
|
463
|
+
function le(e) {
|
|
464
464
|
if (e) {
|
|
465
|
-
var a = e._owner, l =
|
|
466
|
-
|
|
465
|
+
var a = e._owner, l = we(e.type, e._source, a ? a.type : null);
|
|
466
|
+
Qe.setExtraStackFrame(l);
|
|
467
467
|
} else
|
|
468
|
-
|
|
468
|
+
Qe.setExtraStackFrame(null);
|
|
469
469
|
}
|
|
470
470
|
var Oe;
|
|
471
471
|
Oe = !1;
|
|
472
|
-
function
|
|
473
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
472
|
+
function Le(e) {
|
|
473
|
+
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Ke() {
|
|
476
476
|
{
|
|
477
|
-
if (
|
|
478
|
-
var e =
|
|
477
|
+
if (De.current) {
|
|
478
|
+
var e = b(De.current.type);
|
|
479
479
|
if (e)
|
|
480
480
|
return `
|
|
481
481
|
|
|
@@ -484,13 +484,13 @@ Check the render method of \`` + e + "`.";
|
|
|
484
484
|
return "";
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Ar(e) {
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
|
-
var
|
|
490
|
+
var er = {};
|
|
491
491
|
function zr(e) {
|
|
492
492
|
{
|
|
493
|
-
var a =
|
|
493
|
+
var a = Ke();
|
|
494
494
|
if (!a) {
|
|
495
495
|
var l = typeof e == "string" ? e : e.displayName || e.name;
|
|
496
496
|
l && (a = `
|
|
@@ -500,39 +500,39 @@ Check the top-level render call using <` + l + ">.");
|
|
|
500
500
|
return a;
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function rr(e, a) {
|
|
504
504
|
{
|
|
505
505
|
if (!e._store || e._store.validated || e.key != null)
|
|
506
506
|
return;
|
|
507
507
|
e._store.validated = !0;
|
|
508
508
|
var l = zr(a);
|
|
509
|
-
if (
|
|
509
|
+
if (er[l])
|
|
510
510
|
return;
|
|
511
|
-
|
|
511
|
+
er[l] = !0;
|
|
512
512
|
var p = "";
|
|
513
|
-
e && e._owner && e._owner !==
|
|
513
|
+
e && e._owner && e._owner !== De.current && (p = " It was passed a child from " + b(e._owner.type) + "."), le(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, p), le(null);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function tr(e, a) {
|
|
517
517
|
{
|
|
518
518
|
if (typeof e != "object")
|
|
519
519
|
return;
|
|
520
|
-
if (
|
|
520
|
+
if (Ie(e))
|
|
521
521
|
for (var l = 0; l < e.length; l++) {
|
|
522
522
|
var p = e[l];
|
|
523
|
-
|
|
523
|
+
Le(p) && rr(p, a);
|
|
524
524
|
}
|
|
525
|
-
else if (
|
|
525
|
+
else if (Le(e))
|
|
526
526
|
e._store && (e._store.validated = !0);
|
|
527
527
|
else if (e) {
|
|
528
|
-
var
|
|
529
|
-
if (typeof
|
|
530
|
-
for (var
|
|
531
|
-
|
|
528
|
+
var C = P(e);
|
|
529
|
+
if (typeof C == "function" && C !== e.entries)
|
|
530
|
+
for (var T = C.call(e), _; !(_ = T.next()).done; )
|
|
531
|
+
Le(_.value) && rr(_.value, a);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Fr(e) {
|
|
536
536
|
{
|
|
537
537
|
var a = e.type;
|
|
538
538
|
if (a == null || typeof a == "string")
|
|
@@ -542,335 +542,349 @@ Check the top-level render call using <` + l + ">.");
|
|
|
542
542
|
l = a.propTypes;
|
|
543
543
|
else if (typeof a == "object" && (a.$$typeof === f || // Note: Memo only checks outer props here.
|
|
544
544
|
// Inner props are checked in the reconciler.
|
|
545
|
-
a.$$typeof ===
|
|
545
|
+
a.$$typeof === S))
|
|
546
546
|
l = a.propTypes;
|
|
547
547
|
else
|
|
548
548
|
return;
|
|
549
549
|
if (l) {
|
|
550
|
-
var p =
|
|
551
|
-
|
|
550
|
+
var p = b(a);
|
|
551
|
+
Rr(l, e.props, "prop", p, e);
|
|
552
552
|
} else if (a.PropTypes !== void 0 && !Oe) {
|
|
553
553
|
Oe = !0;
|
|
554
|
-
var
|
|
555
|
-
|
|
554
|
+
var C = b(a);
|
|
555
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", C || "Unknown");
|
|
556
556
|
}
|
|
557
|
-
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved &&
|
|
557
|
+
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Nr(e) {
|
|
561
561
|
{
|
|
562
562
|
for (var a = Object.keys(e.props), l = 0; l < a.length; l++) {
|
|
563
563
|
var p = a[l];
|
|
564
564
|
if (p !== "children" && p !== "key") {
|
|
565
|
-
|
|
565
|
+
le(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), le(null);
|
|
566
566
|
break;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
e.ref !== null && (
|
|
569
|
+
e.ref !== null && (le(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), le(null));
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
var or = {};
|
|
573
|
-
function
|
|
573
|
+
function nr(e, a, l, p, C, T) {
|
|
574
574
|
{
|
|
575
|
-
var
|
|
576
|
-
if (!
|
|
577
|
-
var
|
|
578
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
579
|
-
var
|
|
580
|
-
|
|
581
|
-
var
|
|
582
|
-
e === null ?
|
|
575
|
+
var _ = Q(e);
|
|
576
|
+
if (!_) {
|
|
577
|
+
var x = "";
|
|
578
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
579
|
+
var B = Ar();
|
|
580
|
+
B ? x += B : x += Ke();
|
|
581
|
+
var F;
|
|
582
|
+
e === null ? F = "null" : Ie(e) ? F = "array" : e !== void 0 && e.$$typeof === n ? (F = "<" + (b(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : F = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, x);
|
|
583
583
|
}
|
|
584
|
-
var
|
|
585
|
-
if (
|
|
586
|
-
return
|
|
587
|
-
if (
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
584
|
+
var N = Lr(e, a, l, C, T);
|
|
585
|
+
if (N == null)
|
|
586
|
+
return N;
|
|
587
|
+
if (_) {
|
|
588
|
+
var J = a.children;
|
|
589
|
+
if (J !== void 0)
|
|
590
590
|
if (p)
|
|
591
|
-
if (
|
|
592
|
-
for (var
|
|
593
|
-
|
|
594
|
-
Object.freeze && Object.freeze(
|
|
591
|
+
if (Ie(J)) {
|
|
592
|
+
for (var ue = 0; ue < J.length; ue++)
|
|
593
|
+
tr(J[ue], e);
|
|
594
|
+
Object.freeze && Object.freeze(J);
|
|
595
595
|
} else
|
|
596
|
-
|
|
596
|
+
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
597
597
|
else
|
|
598
|
-
|
|
598
|
+
tr(J, e);
|
|
599
599
|
}
|
|
600
|
-
if (
|
|
601
|
-
var
|
|
602
|
-
return
|
|
603
|
-
}),
|
|
604
|
-
if (!or[
|
|
605
|
-
var
|
|
606
|
-
|
|
600
|
+
if (pe.call(a, "key")) {
|
|
601
|
+
var oe = b(e), G = Object.keys(a).filter(function(Yr) {
|
|
602
|
+
return Yr !== "key";
|
|
603
|
+
}), Ae = G.length > 0 ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
604
|
+
if (!or[oe + Ae]) {
|
|
605
|
+
var Ur = G.length > 0 ? "{" + G.join(": ..., ") + ": ...}" : "{}";
|
|
606
|
+
v(`A props object containing a "key" prop is being spread into JSX:
|
|
607
607
|
let props = %s;
|
|
608
608
|
<%s {...props} />
|
|
609
609
|
React keys must be passed directly to JSX without using spread:
|
|
610
610
|
let props = %s;
|
|
611
|
-
<%s key={someKey} {...props} />`,
|
|
611
|
+
<%s key={someKey} {...props} />`, Ae, oe, Ur, oe), or[oe + Ae] = !0;
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
return e ===
|
|
614
|
+
return e === o ? Nr(N) : Fr(N), N;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
function Nr(e, a, l) {
|
|
618
|
-
return tr(e, a, l, !0);
|
|
619
|
-
}
|
|
620
617
|
function $r(e, a, l) {
|
|
621
|
-
return
|
|
618
|
+
return nr(e, a, l, !0);
|
|
622
619
|
}
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
620
|
+
function Mr(e, a, l) {
|
|
621
|
+
return nr(e, a, l, !1);
|
|
622
|
+
}
|
|
623
|
+
var Wr = Mr, Br = $r;
|
|
624
|
+
he.Fragment = o, he.jsx = Wr, he.jsxs = Br;
|
|
625
|
+
}()), he;
|
|
626
626
|
}
|
|
627
|
-
process.env.NODE_ENV === "production" ?
|
|
628
|
-
var
|
|
629
|
-
function
|
|
627
|
+
process.env.NODE_ENV === "production" ? Me.exports = Xr() : Me.exports = qr();
|
|
628
|
+
var c = Me.exports;
|
|
629
|
+
function Jr(r) {
|
|
630
630
|
if (r.id && /^[a-zA-Z][\w-]*$/.test(r.id))
|
|
631
631
|
return `#${r.id}`;
|
|
632
|
-
const
|
|
633
|
-
let
|
|
634
|
-
for (;
|
|
635
|
-
let
|
|
636
|
-
if (
|
|
637
|
-
|
|
632
|
+
const n = [];
|
|
633
|
+
let t = r;
|
|
634
|
+
for (; t && t.nodeType === Node.ELEMENT_NODE; ) {
|
|
635
|
+
let o = t.nodeName.toLowerCase();
|
|
636
|
+
if (t.id && /^[a-zA-Z][\w-]*$/.test(t.id)) {
|
|
637
|
+
n.unshift(`#${t.id}`);
|
|
638
638
|
break;
|
|
639
639
|
}
|
|
640
|
-
if (
|
|
641
|
-
const i =
|
|
640
|
+
if (t.className && typeof t.className == "string") {
|
|
641
|
+
const i = t.className.trim().split(/\s+/).filter(Boolean);
|
|
642
642
|
if (i.length > 0) {
|
|
643
|
-
const
|
|
644
|
-
|
|
643
|
+
const d = i.filter((u) => /^[a-zA-Z][\w-]*$/.test(u)).slice(0, 2).map((u) => `.${u}`).join("");
|
|
644
|
+
d && (o += d);
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
)
|
|
653
|
-
if (s.length > 1) {
|
|
654
|
-
const u = s.indexOf(o) + 1;
|
|
655
|
-
n += `:nth-child(${u})`;
|
|
656
|
-
}
|
|
647
|
+
const s = t.parentElement;
|
|
648
|
+
if (s) {
|
|
649
|
+
const i = Array.from(s.children);
|
|
650
|
+
if (i.length > 1) {
|
|
651
|
+
const d = i.indexOf(t) + 1;
|
|
652
|
+
o += `:nth-child(${d})`;
|
|
657
653
|
}
|
|
658
654
|
}
|
|
659
|
-
|
|
655
|
+
n.unshift(o), t = t.parentElement;
|
|
660
656
|
}
|
|
661
|
-
return
|
|
657
|
+
return n.join(" > ");
|
|
662
658
|
}
|
|
663
|
-
const
|
|
664
|
-
function
|
|
665
|
-
if (typeof window > "u") return { x: r, y:
|
|
666
|
-
const
|
|
659
|
+
const Zr = "[data-review-layer-root]", Qr = 16;
|
|
660
|
+
function We(r, n, t = Qr) {
|
|
661
|
+
if (typeof window > "u") return { x: r, y: n };
|
|
662
|
+
const o = t, s = t, i = window.innerWidth - t, d = window.innerHeight - t;
|
|
667
663
|
return {
|
|
668
|
-
x: Math.max(
|
|
669
|
-
y: Math.max(
|
|
664
|
+
x: Math.max(o, Math.min(i, r)),
|
|
665
|
+
y: Math.max(s, Math.min(d, n))
|
|
670
666
|
};
|
|
671
667
|
}
|
|
672
|
-
function
|
|
668
|
+
function pr(r) {
|
|
673
669
|
if (typeof document > "u" || !r) return [];
|
|
674
|
-
const
|
|
675
|
-
let
|
|
676
|
-
for (;
|
|
677
|
-
const
|
|
678
|
-
(
|
|
670
|
+
const n = [];
|
|
671
|
+
let t = r.parentElement;
|
|
672
|
+
for (; t && t !== document.body; ) {
|
|
673
|
+
const o = getComputedStyle(t), s = o.overflowX, i = o.overflowY;
|
|
674
|
+
(s === "scroll" || s === "auto" || s === "overlay" || i === "scroll" || i === "auto" || i === "overlay") && (t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth) && n.push(t), t = t.parentElement;
|
|
679
675
|
}
|
|
680
|
-
return
|
|
676
|
+
return n;
|
|
681
677
|
}
|
|
682
|
-
function
|
|
683
|
-
var
|
|
678
|
+
function gr(r) {
|
|
679
|
+
var n;
|
|
684
680
|
if (typeof document > "u" || !(r != null && r.trim())) return null;
|
|
685
681
|
try {
|
|
686
|
-
const
|
|
687
|
-
return !
|
|
682
|
+
const t = document.querySelector(r);
|
|
683
|
+
return !t || (n = t.closest) != null && n.call(t, Zr) ? null : t.getBoundingClientRect();
|
|
688
684
|
} catch {
|
|
689
685
|
return null;
|
|
690
686
|
}
|
|
691
687
|
}
|
|
692
|
-
function
|
|
688
|
+
function Kr(r) {
|
|
693
689
|
if (typeof window > "u")
|
|
694
690
|
return { relativeX: 0, relativeY: 0 };
|
|
695
|
-
const
|
|
691
|
+
const n = window.innerWidth, t = window.innerHeight;
|
|
696
692
|
return {
|
|
697
|
-
relativeX:
|
|
698
|
-
relativeY:
|
|
693
|
+
relativeX: n > 0 ? r.left / n : 0,
|
|
694
|
+
relativeY: t > 0 ? r.top / t : 0
|
|
699
695
|
};
|
|
700
696
|
}
|
|
701
|
-
function
|
|
697
|
+
function hr(r) {
|
|
702
698
|
if (typeof window > "u")
|
|
703
699
|
return {
|
|
704
700
|
x: r.x ?? 0,
|
|
705
701
|
y: r.y ?? 0
|
|
706
702
|
};
|
|
707
|
-
const
|
|
708
|
-
return
|
|
709
|
-
x:
|
|
710
|
-
y:
|
|
703
|
+
const n = r.relativeX ?? r.relative_x ?? null, t = r.relativeY ?? r.relative_y ?? null;
|
|
704
|
+
return n != null && t != null ? {
|
|
705
|
+
x: n * window.innerWidth,
|
|
706
|
+
y: t * window.innerHeight
|
|
711
707
|
} : {
|
|
712
708
|
x: r.x ?? 0,
|
|
713
709
|
y: r.y ?? 0
|
|
714
710
|
};
|
|
715
711
|
}
|
|
716
|
-
function
|
|
717
|
-
const { x:
|
|
718
|
-
return new DOMRect(t, o,
|
|
712
|
+
function et(r) {
|
|
713
|
+
const { x: n, y: t } = hr(r), o = r.width ?? 100, s = r.height ?? 40;
|
|
714
|
+
return new DOMRect(n, t, o, s);
|
|
719
715
|
}
|
|
720
|
-
function
|
|
716
|
+
function Re(r) {
|
|
721
717
|
if (r.selector) {
|
|
722
|
-
const
|
|
723
|
-
if (
|
|
724
|
-
return { x:
|
|
718
|
+
const n = gr(r.selector);
|
|
719
|
+
if (n != null)
|
|
720
|
+
return { x: n.left, y: n.top };
|
|
725
721
|
}
|
|
726
|
-
return
|
|
722
|
+
return hr(r);
|
|
727
723
|
}
|
|
728
|
-
|
|
724
|
+
const rt = ["path"];
|
|
725
|
+
function tt(r) {
|
|
726
|
+
return r.trim().startsWith("/") ? r.trim() : `/${r.trim()}`;
|
|
727
|
+
}
|
|
728
|
+
function br() {
|
|
729
729
|
if (typeof window > "u") return "/";
|
|
730
730
|
try {
|
|
731
|
-
const r = new URLSearchParams(window.location.search)
|
|
732
|
-
|
|
733
|
-
|
|
731
|
+
const r = new URLSearchParams(window.location.search);
|
|
732
|
+
for (const [, t] of r) {
|
|
733
|
+
const o = t == null ? void 0 : t.trim();
|
|
734
|
+
if (o !== "" && o.startsWith("/"))
|
|
735
|
+
return o;
|
|
736
|
+
}
|
|
737
|
+
for (const t of rt) {
|
|
738
|
+
const o = r.get(t);
|
|
739
|
+
if (o != null && o.trim() !== "")
|
|
740
|
+
return tt(o);
|
|
741
|
+
}
|
|
742
|
+
const n = window.location.pathname || "/";
|
|
743
|
+
if (n === "/iframe.html" || n.endsWith("/iframe.html")) {
|
|
744
|
+
const t = r.get("id");
|
|
745
|
+
if (t != null && t.trim() !== "")
|
|
746
|
+
return `/story/${t.trim()}`;
|
|
747
|
+
}
|
|
734
748
|
} catch {
|
|
735
749
|
}
|
|
736
750
|
return window.location.pathname || "/";
|
|
737
751
|
}
|
|
738
|
-
const
|
|
752
|
+
const j = {
|
|
739
753
|
PENDING: "pending",
|
|
740
754
|
DEV_FIXED: "dev_fixed",
|
|
741
755
|
VALIDATED: "validated"
|
|
742
|
-
},
|
|
743
|
-
function
|
|
744
|
-
if ("status" in
|
|
745
|
-
const { status:
|
|
746
|
-
let
|
|
747
|
-
|
|
748
|
-
motivo:
|
|
749
|
-
url:
|
|
750
|
-
status:
|
|
756
|
+
}, sr = "[review-layer API]";
|
|
757
|
+
function Z(r, n, t) {
|
|
758
|
+
if ("status" in t) {
|
|
759
|
+
const { status: u, statusText: f, body: g = "" } = t;
|
|
760
|
+
let y;
|
|
761
|
+
u === 401 ? y = "No autorizado (401). Revisa que apiKey sea correcta y esté aceptada por la API." : u === 403 ? y = "Acceso denegado (403). Revisa apiKey o permisos del proyecto." : u === 404 ? y = "Recurso no encontrado (404). Revisa apiUrl y que la ruta exista en el backend." : u >= 500 ? y = "Error del servidor (5xx). El backend puede estar caído o sobrecargado." : y = `Respuesta HTTP ${u} ${f}. Revisa la API.`, console.error(sr, r, {
|
|
762
|
+
motivo: y,
|
|
763
|
+
url: n,
|
|
764
|
+
status: u,
|
|
751
765
|
statusText: f,
|
|
752
|
-
body:
|
|
766
|
+
body: g.slice(0, 300)
|
|
753
767
|
});
|
|
754
768
|
return;
|
|
755
769
|
}
|
|
756
|
-
const
|
|
757
|
-
console.error(
|
|
770
|
+
const o = t.networkError, s = o instanceof Error ? o.message : String(o), d = o instanceof TypeError || /failed to fetch|networkerror|load failed|network request failed/i.test(s) ? "Posible CORS o error de red (servidor inalcanzable, bloqueo CORS o certificado). Revisa que apiUrl sea accesible desde este origen y que el backend permita CORS." : `Error inesperado: ${s}`;
|
|
771
|
+
console.error(sr, r, { motivo: d, url: n, error: o });
|
|
758
772
|
}
|
|
759
|
-
function
|
|
773
|
+
function be(r) {
|
|
760
774
|
return {
|
|
761
775
|
"Content-Type": "application/json",
|
|
762
776
|
"x-review-key": r
|
|
763
777
|
};
|
|
764
778
|
}
|
|
765
|
-
async function
|
|
766
|
-
const
|
|
767
|
-
let
|
|
779
|
+
async function ot(r, n, t) {
|
|
780
|
+
const o = `${r}/reviewers`;
|
|
781
|
+
let s;
|
|
768
782
|
try {
|
|
769
|
-
|
|
770
|
-
headers:
|
|
771
|
-
signal:
|
|
783
|
+
s = await fetch(o, {
|
|
784
|
+
headers: be(n),
|
|
785
|
+
signal: t == null ? void 0 : t.signal
|
|
772
786
|
});
|
|
773
|
-
} catch (
|
|
774
|
-
throw
|
|
787
|
+
} catch (d) {
|
|
788
|
+
throw Z("fetchReviewers (red/CORS)", o, { networkError: d }), d;
|
|
775
789
|
}
|
|
776
|
-
if (!
|
|
777
|
-
const
|
|
778
|
-
throw
|
|
790
|
+
if (!s.ok) {
|
|
791
|
+
const d = await s.text();
|
|
792
|
+
throw Z("fetchReviewers", o, { status: s.status, statusText: s.statusText, body: d }), new Error("Failed to fetch reviewers");
|
|
779
793
|
}
|
|
780
|
-
return (await
|
|
794
|
+
return (await s.json()).data ?? [];
|
|
781
795
|
}
|
|
782
|
-
async function
|
|
783
|
-
const
|
|
784
|
-
let
|
|
796
|
+
async function nt(r, n, t) {
|
|
797
|
+
const o = `${r}/comments`;
|
|
798
|
+
let s;
|
|
785
799
|
try {
|
|
786
|
-
|
|
800
|
+
s = await fetch(o, {
|
|
787
801
|
method: "POST",
|
|
788
|
-
headers:
|
|
789
|
-
body: JSON.stringify(
|
|
802
|
+
headers: be(n),
|
|
803
|
+
body: JSON.stringify(t)
|
|
790
804
|
});
|
|
791
|
-
} catch (
|
|
792
|
-
throw
|
|
805
|
+
} catch (d) {
|
|
806
|
+
throw Z("createComment (red/CORS)", o, { networkError: d }), d;
|
|
793
807
|
}
|
|
794
|
-
if (!
|
|
795
|
-
const
|
|
796
|
-
let
|
|
808
|
+
if (!s.ok) {
|
|
809
|
+
const d = await s.text();
|
|
810
|
+
let u = "Failed to create comment";
|
|
797
811
|
try {
|
|
798
|
-
|
|
812
|
+
u = JSON.parse(d).message ?? u;
|
|
799
813
|
} catch {
|
|
800
814
|
}
|
|
801
|
-
throw
|
|
815
|
+
throw Z("createComment", o, { status: s.status, statusText: s.statusText, body: d }), new Error(u);
|
|
802
816
|
}
|
|
803
|
-
return (await
|
|
817
|
+
return (await s.json()).data;
|
|
804
818
|
}
|
|
805
|
-
async function
|
|
806
|
-
const
|
|
807
|
-
let
|
|
819
|
+
async function it(r, n, t, o) {
|
|
820
|
+
const s = new URLSearchParams({ url: t }), i = `${r}/comments?${s}`;
|
|
821
|
+
let d;
|
|
808
822
|
try {
|
|
809
|
-
|
|
810
|
-
headers:
|
|
811
|
-
signal:
|
|
823
|
+
d = await fetch(i, {
|
|
824
|
+
headers: be(n),
|
|
825
|
+
signal: o == null ? void 0 : o.signal
|
|
812
826
|
});
|
|
813
827
|
} catch (f) {
|
|
814
|
-
throw
|
|
828
|
+
throw Z("fetchComments (red/CORS)", i, { networkError: f }), f;
|
|
815
829
|
}
|
|
816
|
-
if (!
|
|
817
|
-
const f = await
|
|
818
|
-
throw
|
|
830
|
+
if (!d.ok) {
|
|
831
|
+
const f = await d.text();
|
|
832
|
+
throw Z("fetchComments", i, { status: d.status, statusText: d.statusText, body: f }), new Error("Failed to fetch comments");
|
|
819
833
|
}
|
|
820
|
-
return (await
|
|
834
|
+
return (await d.json()).data ?? [];
|
|
821
835
|
}
|
|
822
|
-
async function
|
|
823
|
-
const
|
|
824
|
-
let
|
|
836
|
+
async function at(r, n, t, o) {
|
|
837
|
+
const s = `${r}/comments/${t}/status`;
|
|
838
|
+
let i;
|
|
825
839
|
try {
|
|
826
|
-
|
|
840
|
+
i = await fetch(s, {
|
|
827
841
|
method: "PATCH",
|
|
828
|
-
headers:
|
|
829
|
-
body: JSON.stringify({ status:
|
|
842
|
+
headers: be(n),
|
|
843
|
+
body: JSON.stringify({ status: o })
|
|
830
844
|
});
|
|
831
|
-
} catch (
|
|
832
|
-
throw
|
|
845
|
+
} catch (u) {
|
|
846
|
+
throw Z("updateCommentStatus (red/CORS)", s, { networkError: u }), u;
|
|
833
847
|
}
|
|
834
|
-
if (!
|
|
835
|
-
const
|
|
836
|
-
|
|
848
|
+
if (!i.ok) {
|
|
849
|
+
const u = await i.text();
|
|
850
|
+
Z("updateCommentStatus", s, { status: i.status, statusText: i.statusText, body: u });
|
|
837
851
|
let f = "Failed to update comment status";
|
|
838
852
|
try {
|
|
839
|
-
f = JSON.parse(
|
|
853
|
+
f = JSON.parse(u).message ?? f;
|
|
840
854
|
} catch {
|
|
841
855
|
}
|
|
842
856
|
throw new Error(f);
|
|
843
857
|
}
|
|
844
|
-
return (await
|
|
858
|
+
return (await i.json()).data;
|
|
845
859
|
}
|
|
846
|
-
async function
|
|
847
|
-
const
|
|
848
|
-
let
|
|
860
|
+
async function st(r, n, t) {
|
|
861
|
+
const o = `${r}/comments/${t}`;
|
|
862
|
+
let s;
|
|
849
863
|
try {
|
|
850
|
-
|
|
864
|
+
s = await fetch(o, {
|
|
851
865
|
method: "DELETE",
|
|
852
|
-
headers:
|
|
866
|
+
headers: be(n)
|
|
853
867
|
});
|
|
854
|
-
} catch (
|
|
855
|
-
throw
|
|
868
|
+
} catch (i) {
|
|
869
|
+
throw Z("deleteComment (red/CORS)", o, { networkError: i }), i;
|
|
856
870
|
}
|
|
857
|
-
if (!
|
|
858
|
-
const
|
|
859
|
-
|
|
860
|
-
let
|
|
871
|
+
if (!s.ok) {
|
|
872
|
+
const i = await s.text();
|
|
873
|
+
Z("deleteComment", o, { status: s.status, statusText: s.statusText, body: i });
|
|
874
|
+
let d = "Failed to delete comment";
|
|
861
875
|
try {
|
|
862
|
-
|
|
876
|
+
d = JSON.parse(i).message ?? d;
|
|
863
877
|
} catch {
|
|
864
878
|
}
|
|
865
|
-
throw new Error(
|
|
879
|
+
throw new Error(d);
|
|
866
880
|
}
|
|
867
881
|
}
|
|
868
|
-
const
|
|
882
|
+
const lt = {
|
|
869
883
|
position: "fixed",
|
|
870
884
|
inset: 0,
|
|
871
885
|
zIndex: 999997,
|
|
872
886
|
backgroundColor: "transparent"
|
|
873
|
-
},
|
|
887
|
+
}, ut = {
|
|
874
888
|
position: "fixed",
|
|
875
889
|
minWidth: 320,
|
|
876
890
|
maxWidth: 400,
|
|
@@ -880,7 +894,7 @@ const io = {
|
|
|
880
894
|
borderRadius: "var(--ui-radius_8, 8px)",
|
|
881
895
|
boxShadow: "0 8px 24px var(--ui-color-black-alpha-20, rgba(0,0,0,0.15))",
|
|
882
896
|
zIndex: 999998
|
|
883
|
-
},
|
|
897
|
+
}, ct = {
|
|
884
898
|
width: "100%",
|
|
885
899
|
minHeight: 80,
|
|
886
900
|
padding: "var(--ui-positive-Value_200, 8px) var(--ui-positive-Value_300, 12px)",
|
|
@@ -891,14 +905,14 @@ const io = {
|
|
|
891
905
|
fontFamily: "var(--ui-font-family-ui, 'Inter', sans-serif)",
|
|
892
906
|
resize: "vertical",
|
|
893
907
|
boxSizing: "border-box"
|
|
894
|
-
},
|
|
908
|
+
}, dt = {
|
|
895
909
|
width: "100%",
|
|
896
910
|
padding: "var(--ui-positive-Value_200, 8px) var(--ui-positive-Value_300, 12px)",
|
|
897
911
|
marginBottom: "var(--ui-positive-Value_300, 12px)",
|
|
898
912
|
border: "1px solid var(--ui-color-border-default, #d9d9d9)",
|
|
899
913
|
borderRadius: "var(--ui-radius_6, 6px)",
|
|
900
914
|
fontSize: "var(--ui-font-size-sm, 14px)"
|
|
901
|
-
},
|
|
915
|
+
}, lr = {
|
|
902
916
|
padding: "var(--ui-positive-Value_200, 8px) var(--ui-positive-Value_400, 16px)",
|
|
903
917
|
backgroundColor: "var(--ui-color-bg-fill-danger-default, #ff4d4f)",
|
|
904
918
|
color: "var(--ui-color-text-on-color, #fff)",
|
|
@@ -908,108 +922,108 @@ const io = {
|
|
|
908
922
|
cursor: "pointer",
|
|
909
923
|
fontWeight: "var(--ui-font-weight-medium, 500)"
|
|
910
924
|
};
|
|
911
|
-
function
|
|
925
|
+
function ft({
|
|
912
926
|
apiUrl: r,
|
|
913
|
-
apiKey:
|
|
914
|
-
reviewers:
|
|
915
|
-
position:
|
|
916
|
-
payload:
|
|
917
|
-
onClose:
|
|
918
|
-
onSuccess:
|
|
927
|
+
apiKey: n,
|
|
928
|
+
reviewers: t,
|
|
929
|
+
position: o,
|
|
930
|
+
payload: s,
|
|
931
|
+
onClose: i,
|
|
932
|
+
onSuccess: d
|
|
919
933
|
}) {
|
|
920
|
-
var
|
|
921
|
-
const [
|
|
922
|
-
((
|
|
923
|
-
), [
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
}, [
|
|
927
|
-
const M =
|
|
928
|
-
async (
|
|
929
|
-
if (
|
|
930
|
-
|
|
934
|
+
var $;
|
|
935
|
+
const [u, f] = W(""), [g, y] = W(
|
|
936
|
+
(($ = t[0]) == null ? void 0 : $.id) ?? 0
|
|
937
|
+
), [S, m] = W(!1), [A, z] = W(null);
|
|
938
|
+
L(() => {
|
|
939
|
+
t.length > 0 && !g && y(t[0].id);
|
|
940
|
+
}, [t, g]);
|
|
941
|
+
const M = D(
|
|
942
|
+
async (v) => {
|
|
943
|
+
if (v.preventDefault(), !(!u.trim() || !g)) {
|
|
944
|
+
m(!0), z(null);
|
|
931
945
|
try {
|
|
932
|
-
await
|
|
933
|
-
...
|
|
934
|
-
message:
|
|
935
|
-
reviewerId:
|
|
936
|
-
}),
|
|
937
|
-
} catch (
|
|
938
|
-
|
|
946
|
+
await nt(r, n, {
|
|
947
|
+
...s,
|
|
948
|
+
message: u.trim(),
|
|
949
|
+
reviewerId: g
|
|
950
|
+
}), d(), i();
|
|
951
|
+
} catch (k) {
|
|
952
|
+
z(k instanceof Error ? k.message : "Failed to send comment");
|
|
939
953
|
} finally {
|
|
940
|
-
|
|
954
|
+
m(!1);
|
|
941
955
|
}
|
|
942
956
|
}
|
|
943
957
|
},
|
|
944
|
-
[r,
|
|
945
|
-
),
|
|
946
|
-
return
|
|
947
|
-
const
|
|
948
|
-
|
|
958
|
+
[r, n, s, u, g, d, i]
|
|
959
|
+
), P = ne(null);
|
|
960
|
+
return L(() => {
|
|
961
|
+
const v = (k) => {
|
|
962
|
+
k.key === "Escape" && (k.preventDefault(), i());
|
|
949
963
|
};
|
|
950
|
-
return document.addEventListener("keydown",
|
|
951
|
-
}, [
|
|
952
|
-
const
|
|
953
|
-
const
|
|
954
|
-
|
|
964
|
+
return document.addEventListener("keydown", v, !0), () => document.removeEventListener("keydown", v, !0);
|
|
965
|
+
}, [i]), L(() => {
|
|
966
|
+
const v = (k) => {
|
|
967
|
+
const Y = k.target;
|
|
968
|
+
P.current && !P.current.contains(Y) && (k.preventDefault(), k.stopPropagation(), i());
|
|
955
969
|
};
|
|
956
|
-
return document.addEventListener("mousedown",
|
|
957
|
-
}, [
|
|
958
|
-
var
|
|
959
|
-
(
|
|
960
|
-
}, []), /* @__PURE__ */
|
|
970
|
+
return document.addEventListener("mousedown", v, !0), () => document.removeEventListener("mousedown", v, !0);
|
|
971
|
+
}, [i]), L(() => {
|
|
972
|
+
var v;
|
|
973
|
+
(v = P.current) == null || v.focus();
|
|
974
|
+
}, []), /* @__PURE__ */ c.jsxs(
|
|
961
975
|
"div",
|
|
962
976
|
{
|
|
963
|
-
ref:
|
|
977
|
+
ref: P,
|
|
964
978
|
role: "dialog",
|
|
965
979
|
"aria-modal": "true",
|
|
966
980
|
tabIndex: -1,
|
|
967
981
|
style: { position: "fixed", inset: 0, zIndex: 999997, outline: "none" },
|
|
968
982
|
children: [
|
|
969
|
-
/* @__PURE__ */
|
|
983
|
+
/* @__PURE__ */ c.jsx(
|
|
970
984
|
"div",
|
|
971
985
|
{
|
|
972
986
|
role: "presentation",
|
|
973
|
-
style:
|
|
974
|
-
onClick:
|
|
987
|
+
style: lt,
|
|
988
|
+
onClick: i
|
|
975
989
|
}
|
|
976
990
|
),
|
|
977
|
-
/* @__PURE__ */
|
|
991
|
+
/* @__PURE__ */ c.jsx(
|
|
978
992
|
"div",
|
|
979
993
|
{
|
|
980
994
|
style: {
|
|
981
|
-
...
|
|
982
|
-
left: Math.min(
|
|
983
|
-
top:
|
|
995
|
+
...ut,
|
|
996
|
+
left: Math.min(o.x, typeof window < "u" ? window.innerWidth - 420 : o.x),
|
|
997
|
+
top: o.y + 12
|
|
984
998
|
},
|
|
985
|
-
onClick: (
|
|
986
|
-
children: /* @__PURE__ */
|
|
987
|
-
/* @__PURE__ */
|
|
999
|
+
onClick: (v) => v.stopPropagation(),
|
|
1000
|
+
children: /* @__PURE__ */ c.jsxs("form", { onSubmit: M, children: [
|
|
1001
|
+
/* @__PURE__ */ c.jsx(
|
|
988
1002
|
"textarea",
|
|
989
1003
|
{
|
|
990
1004
|
placeholder: "Escribe tu comentario...",
|
|
991
|
-
value:
|
|
992
|
-
onChange: (
|
|
993
|
-
style:
|
|
1005
|
+
value: u,
|
|
1006
|
+
onChange: (v) => f(v.target.value),
|
|
1007
|
+
style: ct,
|
|
994
1008
|
required: !0,
|
|
995
1009
|
autoFocus: !0
|
|
996
1010
|
}
|
|
997
1011
|
),
|
|
998
|
-
/* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ c.jsxs(
|
|
999
1013
|
"select",
|
|
1000
1014
|
{
|
|
1001
|
-
value:
|
|
1002
|
-
onChange: (
|
|
1003
|
-
style:
|
|
1015
|
+
value: g,
|
|
1016
|
+
onChange: (v) => y(Number(v.target.value)),
|
|
1017
|
+
style: dt,
|
|
1004
1018
|
required: !0,
|
|
1005
|
-
disabled:
|
|
1019
|
+
disabled: t.length === 0,
|
|
1006
1020
|
children: [
|
|
1007
|
-
/* @__PURE__ */
|
|
1008
|
-
|
|
1021
|
+
/* @__PURE__ */ c.jsx("option", { value: "", children: t.length === 0 ? "No hay revisores (ejecuta php artisan db:seed en la API)" : "Selecciona revisor" }),
|
|
1022
|
+
t.map((v) => /* @__PURE__ */ c.jsx("option", { value: v.id, children: v.name }, v.id))
|
|
1009
1023
|
]
|
|
1010
1024
|
}
|
|
1011
1025
|
),
|
|
1012
|
-
|
|
1026
|
+
A && /* @__PURE__ */ c.jsx(
|
|
1013
1027
|
"div",
|
|
1014
1028
|
{
|
|
1015
1029
|
style: {
|
|
@@ -1017,30 +1031,30 @@ function uo({
|
|
|
1017
1031
|
fontSize: "var(--ui-font-size-xs, 12px)",
|
|
1018
1032
|
marginBottom: "var(--ui-positive-Value_200, 8px)"
|
|
1019
1033
|
},
|
|
1020
|
-
children:
|
|
1034
|
+
children: A
|
|
1021
1035
|
}
|
|
1022
1036
|
),
|
|
1023
|
-
/* @__PURE__ */
|
|
1024
|
-
/* @__PURE__ */
|
|
1037
|
+
/* @__PURE__ */ c.jsxs("div", { style: { display: "flex", justifyContent: "flex-end", gap: "var(--ui-positive-Value_200, 8px)" }, children: [
|
|
1038
|
+
/* @__PURE__ */ c.jsx(
|
|
1025
1039
|
"button",
|
|
1026
1040
|
{
|
|
1027
1041
|
type: "button",
|
|
1028
|
-
onClick:
|
|
1042
|
+
onClick: i,
|
|
1029
1043
|
style: {
|
|
1030
|
-
...
|
|
1044
|
+
...lr,
|
|
1031
1045
|
backgroundColor: "var(--ui-color-bg-fill-secondary-default, #f0f0f0)",
|
|
1032
1046
|
color: "var(--ui-color-text-primary, #333)"
|
|
1033
1047
|
},
|
|
1034
1048
|
children: "Cancelar"
|
|
1035
1049
|
}
|
|
1036
1050
|
),
|
|
1037
|
-
/* @__PURE__ */
|
|
1051
|
+
/* @__PURE__ */ c.jsx(
|
|
1038
1052
|
"button",
|
|
1039
1053
|
{
|
|
1040
1054
|
type: "submit",
|
|
1041
|
-
style:
|
|
1042
|
-
disabled:
|
|
1043
|
-
children:
|
|
1055
|
+
style: lr,
|
|
1056
|
+
disabled: S || t.length === 0,
|
|
1057
|
+
children: S ? "Enviando..." : "Enviar comentario"
|
|
1044
1058
|
}
|
|
1045
1059
|
)
|
|
1046
1060
|
] })
|
|
@@ -1051,8 +1065,8 @@ function uo({
|
|
|
1051
1065
|
}
|
|
1052
1066
|
);
|
|
1053
1067
|
}
|
|
1054
|
-
const
|
|
1055
|
-
function
|
|
1068
|
+
const vt = ke(ft), pt = "var(--ui-color-red-500, #ef4444)";
|
|
1069
|
+
function gt(r) {
|
|
1056
1070
|
return {
|
|
1057
1071
|
position: "fixed",
|
|
1058
1072
|
outline: `2px solid ${r}`,
|
|
@@ -1062,82 +1076,82 @@ function vo(r) {
|
|
|
1062
1076
|
boxSizing: "border-box"
|
|
1063
1077
|
};
|
|
1064
1078
|
}
|
|
1065
|
-
const
|
|
1066
|
-
selector:
|
|
1067
|
-
active:
|
|
1068
|
-
fallbackComment:
|
|
1069
|
-
outlineColor:
|
|
1079
|
+
const ht = ke(function({
|
|
1080
|
+
selector: n,
|
|
1081
|
+
active: t,
|
|
1082
|
+
fallbackComment: o,
|
|
1083
|
+
outlineColor: s = pt
|
|
1070
1084
|
}) {
|
|
1071
|
-
const [
|
|
1072
|
-
if (!
|
|
1073
|
-
|
|
1085
|
+
const [i, d] = W(null), u = D(() => {
|
|
1086
|
+
if (!t) {
|
|
1087
|
+
d(null);
|
|
1074
1088
|
return;
|
|
1075
1089
|
}
|
|
1076
|
-
const f =
|
|
1090
|
+
const f = n != null && n.trim() ? gr(n) : null;
|
|
1077
1091
|
if (f) {
|
|
1078
|
-
|
|
1092
|
+
d(f);
|
|
1079
1093
|
return;
|
|
1080
1094
|
}
|
|
1081
|
-
if (
|
|
1082
|
-
|
|
1095
|
+
if (o) {
|
|
1096
|
+
d(et(o));
|
|
1083
1097
|
return;
|
|
1084
1098
|
}
|
|
1085
|
-
|
|
1086
|
-
}, [t, o
|
|
1087
|
-
return
|
|
1088
|
-
|
|
1089
|
-
}, [
|
|
1090
|
-
if (
|
|
1091
|
-
return window.addEventListener("scroll",
|
|
1092
|
-
window.removeEventListener("scroll",
|
|
1099
|
+
d(null);
|
|
1100
|
+
}, [n, t, o]);
|
|
1101
|
+
return L(() => {
|
|
1102
|
+
u();
|
|
1103
|
+
}, [u]), L(() => {
|
|
1104
|
+
if (t)
|
|
1105
|
+
return window.addEventListener("scroll", u, !0), window.addEventListener("resize", u), () => {
|
|
1106
|
+
window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
|
|
1093
1107
|
};
|
|
1094
|
-
}, [
|
|
1108
|
+
}, [t, u]), !t || i == null ? null : /* @__PURE__ */ c.jsx(
|
|
1095
1109
|
"div",
|
|
1096
1110
|
{
|
|
1097
1111
|
"aria-hidden": !0,
|
|
1098
1112
|
style: {
|
|
1099
|
-
...
|
|
1100
|
-
left:
|
|
1101
|
-
top:
|
|
1102
|
-
width:
|
|
1103
|
-
height:
|
|
1113
|
+
...gt(s),
|
|
1114
|
+
left: i.left,
|
|
1115
|
+
top: i.top,
|
|
1116
|
+
width: i.width,
|
|
1117
|
+
height: i.height
|
|
1104
1118
|
}
|
|
1105
1119
|
}
|
|
1106
1120
|
);
|
|
1107
|
-
}),
|
|
1121
|
+
}), Se = 32, ur = 150, ze = 250, X = {
|
|
1108
1122
|
cardBg: "var(--ui-color-bg-surface-default, #ffffff)",
|
|
1109
1123
|
cardFooterBg: "var(--ui-color-bg-surface-secondary-default, #f8fafc)",
|
|
1110
1124
|
textDark: "var(--ui-color-text-primary, #333333)",
|
|
1111
1125
|
textMuted: "var(--ui-color-text-secondary, #888888)",
|
|
1112
1126
|
border: "var(--ui-color-border-default, #cccccc)",
|
|
1113
1127
|
shadow: "var(--ui-shadow-card, 0 4px 16px rgba(0, 0, 0, 0.12))"
|
|
1114
|
-
},
|
|
1115
|
-
[
|
|
1116
|
-
[
|
|
1117
|
-
[
|
|
1118
|
-
},
|
|
1119
|
-
[
|
|
1120
|
-
[
|
|
1121
|
-
[
|
|
1122
|
-
},
|
|
1123
|
-
[
|
|
1124
|
-
[
|
|
1125
|
-
[
|
|
1126
|
-
},
|
|
1127
|
-
[
|
|
1128
|
-
[
|
|
1129
|
-
[
|
|
1130
|
-
},
|
|
1131
|
-
[
|
|
1132
|
-
[
|
|
1133
|
-
[
|
|
1128
|
+
}, bt = {
|
|
1129
|
+
[j.PENDING]: "Pendiente",
|
|
1130
|
+
[j.DEV_FIXED]: "Corregido",
|
|
1131
|
+
[j.VALIDATED]: "Validado"
|
|
1132
|
+
}, xt = {
|
|
1133
|
+
[j.PENDING]: "PENDIENTE",
|
|
1134
|
+
[j.DEV_FIXED]: "CORREGIDO",
|
|
1135
|
+
[j.VALIDATED]: "VALIDADO"
|
|
1136
|
+
}, ce = {
|
|
1137
|
+
[j.PENDING]: "var(--ui-color-red-500, rgb(240, 69, 69))",
|
|
1138
|
+
[j.DEV_FIXED]: "var(--ui-color-yellow-500, rgb(235, 179, 8))",
|
|
1139
|
+
[j.VALIDATED]: "var(--ui-color-green-500, rgb(33, 196, 94))"
|
|
1140
|
+
}, cr = {
|
|
1141
|
+
[j.PENDING]: "var(--ui-color-bg-surface-danger-default, #fef2f2)",
|
|
1142
|
+
[j.DEV_FIXED]: "var(--ui-color-bg-surface-warning-default, #fffbeb)",
|
|
1143
|
+
[j.VALIDATED]: "var(--ui-color-bg-surface-success-default, #f0fdf4)"
|
|
1144
|
+
}, Ce = {
|
|
1145
|
+
[j.PENDING]: "var(--ui-color-red-500, #ef4444)",
|
|
1146
|
+
[j.DEV_FIXED]: "var(--ui-color-orange-500, #f59e0b)",
|
|
1147
|
+
[j.VALIDATED]: "var(--ui-color-green-500, #22c55e)"
|
|
1134
1148
|
};
|
|
1135
|
-
function
|
|
1136
|
-
const
|
|
1137
|
-
return
|
|
1149
|
+
function yt(r) {
|
|
1150
|
+
const n = r.trim().split(/\s+/);
|
|
1151
|
+
return n.length >= 2 ? (n[0][0] + n[n.length - 1][0]).toUpperCase() : r.slice(0, 2).toUpperCase() || "?";
|
|
1138
1152
|
}
|
|
1139
|
-
const
|
|
1140
|
-
/* @__PURE__ */
|
|
1153
|
+
const mt = () => /* @__PURE__ */ c.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", style: { marginRight: 4, flexShrink: 0 }, children: /* @__PURE__ */ c.jsx("path", { d: "M10 3L4.5 8.5L2 6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), wt = ({ color: r }) => /* @__PURE__ */ c.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", style: { flexShrink: 0 }, children: [
|
|
1154
|
+
/* @__PURE__ */ c.jsx(
|
|
1141
1155
|
"path",
|
|
1142
1156
|
{
|
|
1143
1157
|
d: "M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z",
|
|
@@ -1148,7 +1162,7 @@ const xo = () => /* @__PURE__ */ d.jsx("svg", { width: "12", height: "12", viewB
|
|
|
1148
1162
|
fill: "none"
|
|
1149
1163
|
}
|
|
1150
1164
|
),
|
|
1151
|
-
/* @__PURE__ */
|
|
1165
|
+
/* @__PURE__ */ c.jsx(
|
|
1152
1166
|
"path",
|
|
1153
1167
|
{
|
|
1154
1168
|
d: "M8 10h.01M12 10h.01M16 10h.01",
|
|
@@ -1157,12 +1171,12 @@ const xo = () => /* @__PURE__ */ d.jsx("svg", { width: "12", height: "12", viewB
|
|
|
1157
1171
|
strokeLinecap: "round"
|
|
1158
1172
|
}
|
|
1159
1173
|
)
|
|
1160
|
-
] }),
|
|
1174
|
+
] }), _t = (r) => ({
|
|
1161
1175
|
position: "fixed",
|
|
1162
|
-
width:
|
|
1163
|
-
height:
|
|
1176
|
+
width: Se,
|
|
1177
|
+
height: Se,
|
|
1164
1178
|
borderRadius: "50%",
|
|
1165
|
-
backgroundColor:
|
|
1179
|
+
backgroundColor: ce[r] ?? ce[j.PENDING],
|
|
1166
1180
|
color: "var(--ui-color-text-on-color, #fff)",
|
|
1167
1181
|
display: "flex",
|
|
1168
1182
|
alignItems: "center",
|
|
@@ -1172,31 +1186,31 @@ const xo = () => /* @__PURE__ */ d.jsx("svg", { width: "12", height: "12", viewB
|
|
|
1172
1186
|
boxShadow: "0 2px 8px var(--ui-color-black-alpha-20, rgba(0,0,0,0.2))",
|
|
1173
1187
|
zIndex: 999998,
|
|
1174
1188
|
border: "2px solid var(--ui-color-white, #fff)"
|
|
1175
|
-
}),
|
|
1189
|
+
}), Et = {
|
|
1176
1190
|
position: "fixed",
|
|
1177
1191
|
width: ze,
|
|
1178
1192
|
minWidth: ze,
|
|
1179
1193
|
maxWidth: ze,
|
|
1180
1194
|
boxSizing: "border-box",
|
|
1181
|
-
backgroundColor:
|
|
1195
|
+
backgroundColor: X.cardBg,
|
|
1182
1196
|
borderRadius: "var(--ui-radius_12, 12px)",
|
|
1183
|
-
boxShadow:
|
|
1197
|
+
boxShadow: X.shadow,
|
|
1184
1198
|
fontSize: "var(--ui-font-size-sm, 14px)",
|
|
1185
1199
|
fontFamily: "var(--ui-font-family-ui, 'Inter', sans-serif)",
|
|
1186
1200
|
zIndex: 999999,
|
|
1187
1201
|
pointerEvents: "auto"
|
|
1188
|
-
},
|
|
1202
|
+
}, Rt = {
|
|
1189
1203
|
display: "flex",
|
|
1190
1204
|
alignItems: "center",
|
|
1191
1205
|
justifyContent: "space-between",
|
|
1192
1206
|
gap: "var(--ui-positive-Value_250, 10px)",
|
|
1193
|
-
borderBottom: `1px solid ${
|
|
1207
|
+
borderBottom: `1px solid ${X.border}`,
|
|
1194
1208
|
padding: "var(--ui-positive-Value_300, 12px)"
|
|
1195
|
-
},
|
|
1209
|
+
}, St = (r) => ({
|
|
1196
1210
|
width: 40,
|
|
1197
1211
|
height: 40,
|
|
1198
1212
|
borderRadius: "50%",
|
|
1199
|
-
backgroundColor:
|
|
1213
|
+
backgroundColor: ce[r] ?? ce[j.PENDING],
|
|
1200
1214
|
color: "var(--ui-color-text-on-color, #fff)",
|
|
1201
1215
|
border: "2px solid var(--ui-color-white, #fff)",
|
|
1202
1216
|
display: "flex",
|
|
@@ -1206,18 +1220,18 @@ const xo = () => /* @__PURE__ */ d.jsx("svg", { width: "12", height: "12", viewB
|
|
|
1206
1220
|
fontWeight: "var(--ui-font-weight-bold, 700)",
|
|
1207
1221
|
flexShrink: 0,
|
|
1208
1222
|
overflow: "hidden"
|
|
1209
|
-
}),
|
|
1210
|
-
reviewer:
|
|
1211
|
-
status:
|
|
1223
|
+
}), Ct = ke(function({
|
|
1224
|
+
reviewer: n,
|
|
1225
|
+
status: t
|
|
1212
1226
|
}) {
|
|
1213
|
-
const
|
|
1214
|
-
if (
|
|
1215
|
-
const
|
|
1216
|
-
return /* @__PURE__ */
|
|
1227
|
+
const o = n == null ? void 0 : n.image_url, s = (n == null ? void 0 : n.name) ?? "Revisor", i = St(t);
|
|
1228
|
+
if (o && o.trim()) {
|
|
1229
|
+
const d = ce[t] ?? ce[j.PENDING];
|
|
1230
|
+
return /* @__PURE__ */ c.jsx("div", { style: { ...i, border: `2px solid ${d}` }, children: /* @__PURE__ */ c.jsx(
|
|
1217
1231
|
"img",
|
|
1218
1232
|
{
|
|
1219
|
-
src:
|
|
1220
|
-
alt:
|
|
1233
|
+
src: o,
|
|
1234
|
+
alt: s,
|
|
1221
1235
|
style: {
|
|
1222
1236
|
width: "100%",
|
|
1223
1237
|
height: "100%",
|
|
@@ -1227,8 +1241,8 @@ const xo = () => /* @__PURE__ */ d.jsx("svg", { width: "12", height: "12", viewB
|
|
|
1227
1241
|
}
|
|
1228
1242
|
) });
|
|
1229
1243
|
}
|
|
1230
|
-
return /* @__PURE__ */
|
|
1231
|
-
}),
|
|
1244
|
+
return /* @__PURE__ */ c.jsx("div", { style: i, children: yt(s) });
|
|
1245
|
+
}), kt = {
|
|
1232
1246
|
flexShrink: 0,
|
|
1233
1247
|
width: "var(--ui-positive-Value_600, 24px)",
|
|
1234
1248
|
height: "var(--ui-positive-Value_600, 24px)",
|
|
@@ -1236,15 +1250,15 @@ const xo = () => /* @__PURE__ */ d.jsx("svg", { width: "12", height: "12", viewB
|
|
|
1236
1250
|
border: "none",
|
|
1237
1251
|
borderRadius: "var(--ui-radius_6, 6px)",
|
|
1238
1252
|
backgroundColor: "transparent",
|
|
1239
|
-
color:
|
|
1253
|
+
color: X.textDark,
|
|
1240
1254
|
cursor: "pointer",
|
|
1241
1255
|
fontSize: "var(--ui-positive-Value_450, 18px)",
|
|
1242
1256
|
lineHeight: 1,
|
|
1243
1257
|
display: "flex",
|
|
1244
1258
|
alignItems: "center",
|
|
1245
1259
|
justifyContent: "center"
|
|
1246
|
-
},
|
|
1247
|
-
const
|
|
1260
|
+
}, Tt = (r) => {
|
|
1261
|
+
const n = Ce[r] ?? Ce[j.PENDING];
|
|
1248
1262
|
return {
|
|
1249
1263
|
display: "inline-flex",
|
|
1250
1264
|
alignItems: "center",
|
|
@@ -1255,42 +1269,42 @@ const xo = () => /* @__PURE__ */ d.jsx("svg", { width: "12", height: "12", viewB
|
|
|
1255
1269
|
fontFamily: "var(--ui-font-family-ui, 'Inter', sans-serif)",
|
|
1256
1270
|
textTransform: "uppercase",
|
|
1257
1271
|
letterSpacing: "0.02em",
|
|
1258
|
-
backgroundColor:
|
|
1259
|
-
color:
|
|
1260
|
-
border: `1px solid ${
|
|
1272
|
+
backgroundColor: cr[r] ?? cr[j.PENDING],
|
|
1273
|
+
color: n,
|
|
1274
|
+
border: `1px solid ${n}`
|
|
1261
1275
|
};
|
|
1262
|
-
},
|
|
1276
|
+
}, Pt = {
|
|
1263
1277
|
display: "block",
|
|
1264
1278
|
fontSize: "var(--ui-font-size-2xs, 10px)",
|
|
1265
1279
|
fontWeight: "var(--ui-font-weight-semibold, 600)",
|
|
1266
1280
|
fontFamily: "var(--ui-font-family-ui, 'Inter', sans-serif)",
|
|
1267
|
-
color:
|
|
1281
|
+
color: X.textMuted,
|
|
1268
1282
|
textTransform: "uppercase",
|
|
1269
1283
|
letterSpacing: "0.04em"
|
|
1270
|
-
},
|
|
1284
|
+
}, jt = {
|
|
1271
1285
|
width: "100%",
|
|
1272
1286
|
padding: "var(--ui-positive-Value_200, 8px) var(--ui-positive-Value_300, 12px)",
|
|
1273
1287
|
paddingRight: "var(--ui-positive-Value_800, 32px)",
|
|
1274
1288
|
fontSize: "var(--ui-font-size-xs, 13px)",
|
|
1275
1289
|
fontFamily: "var(--ui-font-family-ui, 'Inter', sans-serif)",
|
|
1276
1290
|
borderRadius: "var(--ui-radius_8, 8px)",
|
|
1277
|
-
border: `1px solid ${
|
|
1278
|
-
backgroundColor:
|
|
1279
|
-
color:
|
|
1291
|
+
border: `1px solid ${X.border}`,
|
|
1292
|
+
backgroundColor: X.cardBg,
|
|
1293
|
+
color: X.textDark,
|
|
1280
1294
|
cursor: "pointer",
|
|
1281
1295
|
appearance: "none",
|
|
1282
1296
|
backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L2 4h8z'/%3E%3C/svg%3E")`,
|
|
1283
1297
|
backgroundRepeat: "no-repeat",
|
|
1284
1298
|
backgroundPosition: "right var(--ui-positive-Value_250, 10px) center"
|
|
1285
|
-
},
|
|
1299
|
+
}, Vt = {
|
|
1286
1300
|
display: "flex",
|
|
1287
1301
|
alignItems: "center",
|
|
1288
1302
|
justifyContent: "flex-end",
|
|
1289
1303
|
gap: "var(--ui-positive-Value_200, 8px)",
|
|
1290
1304
|
padding: "var(--ui-positive-Value_300, 12px)",
|
|
1291
|
-
borderTop: `1px solid ${
|
|
1292
|
-
backgroundColor:
|
|
1293
|
-
},
|
|
1305
|
+
borderTop: `1px solid ${X.border}`,
|
|
1306
|
+
backgroundColor: X.cardFooterBg
|
|
1307
|
+
}, xr = {
|
|
1294
1308
|
minWidth: 100,
|
|
1295
1309
|
padding: "var(--ui-positive-Value_200, 8px) var(--ui-positive-Value_350, 14px)",
|
|
1296
1310
|
fontSize: "var(--ui-font-size-xs, 13px)",
|
|
@@ -1299,229 +1313,229 @@ const xo = () => /* @__PURE__ */ d.jsx("svg", { width: "12", height: "12", viewB
|
|
|
1299
1313
|
borderRadius: "var(--ui-radius_8, 8px)",
|
|
1300
1314
|
cursor: "pointer",
|
|
1301
1315
|
border: "none"
|
|
1302
|
-
},
|
|
1303
|
-
...
|
|
1316
|
+
}, It = {
|
|
1317
|
+
...xr,
|
|
1304
1318
|
backgroundColor: "transparent",
|
|
1305
|
-
color:
|
|
1306
|
-
},
|
|
1319
|
+
color: X.textDark
|
|
1320
|
+
}, Ee = "review-layer-resolve-btn", Dt = [
|
|
1307
1321
|
"pending",
|
|
1308
1322
|
"dev_fixed",
|
|
1309
1323
|
"validated"
|
|
1310
|
-
],
|
|
1311
|
-
...
|
|
1324
|
+
], Ot = {
|
|
1325
|
+
...xr,
|
|
1312
1326
|
backgroundColor: "var(--ui-color-bg-fill-success-default, #22c55e)",
|
|
1313
1327
|
color: "var(--ui-color-text-on-color, #fff)"
|
|
1314
1328
|
};
|
|
1315
|
-
function
|
|
1329
|
+
function Lt({
|
|
1316
1330
|
comment: r,
|
|
1317
|
-
offset:
|
|
1318
|
-
apiUrl:
|
|
1319
|
-
apiKey:
|
|
1320
|
-
onStatusChange:
|
|
1321
|
-
reviewMode:
|
|
1331
|
+
offset: n = { dx: 0, dy: 0 },
|
|
1332
|
+
apiUrl: t,
|
|
1333
|
+
apiKey: o,
|
|
1334
|
+
onStatusChange: s,
|
|
1335
|
+
reviewMode: i = !1
|
|
1322
1336
|
}) {
|
|
1323
|
-
var
|
|
1324
|
-
const [
|
|
1325
|
-
|
|
1337
|
+
var fe, ve;
|
|
1338
|
+
const [d, u] = W(!1), [f, g] = W(!1), [y, S] = W(() => Re(r)), [m, A] = W(!1), [z, M] = W(null), P = ne(null), $ = ne(null), v = ne(null), k = D(() => {
|
|
1339
|
+
S(Re(r));
|
|
1326
1340
|
}, [r]);
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
}, [
|
|
1341
|
+
L(() => {
|
|
1342
|
+
k();
|
|
1343
|
+
}, [k]), L(() => {
|
|
1330
1344
|
if (!(typeof window > "u"))
|
|
1331
|
-
return window.addEventListener("scroll",
|
|
1332
|
-
window.removeEventListener("scroll",
|
|
1345
|
+
return window.addEventListener("scroll", k, !0), window.addEventListener("resize", k), () => {
|
|
1346
|
+
window.removeEventListener("scroll", k, !0), window.removeEventListener("resize", k);
|
|
1333
1347
|
};
|
|
1334
|
-
}, [
|
|
1348
|
+
}, [k]), L(() => {
|
|
1335
1349
|
if (!r.selector || typeof document > "u") return;
|
|
1336
|
-
const
|
|
1337
|
-
if (!
|
|
1338
|
-
const
|
|
1339
|
-
return () =>
|
|
1340
|
-
}, [r.selector,
|
|
1341
|
-
const
|
|
1342
|
-
|
|
1343
|
-
}, []),
|
|
1344
|
-
|
|
1345
|
-
}, [
|
|
1346
|
-
f || (
|
|
1347
|
-
|
|
1348
|
-
},
|
|
1349
|
-
}, [f]),
|
|
1350
|
-
|
|
1351
|
-
}, [
|
|
1352
|
-
f || (
|
|
1353
|
-
|
|
1354
|
-
},
|
|
1355
|
-
}, [f]),
|
|
1356
|
-
if (
|
|
1357
|
-
f && (
|
|
1350
|
+
const w = document.querySelector(r.selector);
|
|
1351
|
+
if (!w) return;
|
|
1352
|
+
const te = pr(w).map((K) => (K.addEventListener("scroll", k, !0), () => K.removeEventListener("scroll", k, !0)));
|
|
1353
|
+
return () => te.forEach((K) => K());
|
|
1354
|
+
}, [r.selector, k]);
|
|
1355
|
+
const Y = D(() => {
|
|
1356
|
+
P.current !== null && (clearTimeout(P.current), P.current = null);
|
|
1357
|
+
}, []), E = D(() => {
|
|
1358
|
+
i || (Y(), u(!0));
|
|
1359
|
+
}, [i, Y]), R = D(() => {
|
|
1360
|
+
f || (P.current = setTimeout(() => {
|
|
1361
|
+
P.current = null, u(!1);
|
|
1362
|
+
}, ur));
|
|
1363
|
+
}, [f]), V = D(() => {
|
|
1364
|
+
Y(), u(!0);
|
|
1365
|
+
}, [Y]), q = D(() => {
|
|
1366
|
+
f || (P.current = setTimeout(() => {
|
|
1367
|
+
P.current = null, u(!1);
|
|
1368
|
+
}, ur));
|
|
1369
|
+
}, [f]), H = D(() => {
|
|
1370
|
+
if (i) {
|
|
1371
|
+
f && (g(!1), u(!1));
|
|
1358
1372
|
return;
|
|
1359
1373
|
}
|
|
1360
|
-
f ? (
|
|
1361
|
-
}, [
|
|
1362
|
-
|
|
1374
|
+
f ? (g(!1), u(!1)) : (g(!0), u(!0));
|
|
1375
|
+
}, [i, f]);
|
|
1376
|
+
L(() => {
|
|
1363
1377
|
if (!f) return;
|
|
1364
|
-
const
|
|
1365
|
-
var
|
|
1366
|
-
const
|
|
1367
|
-
(
|
|
1378
|
+
const w = (ee) => {
|
|
1379
|
+
var K, xe;
|
|
1380
|
+
const te = ee.target;
|
|
1381
|
+
(K = $.current) != null && K.contains(te) || (xe = v.current) != null && xe.contains(te) || (g(!1), u(!1));
|
|
1368
1382
|
};
|
|
1369
|
-
return document.addEventListener("mousedown",
|
|
1370
|
-
}, [f]),
|
|
1371
|
-
|
|
1372
|
-
}, [
|
|
1373
|
-
const
|
|
1374
|
-
|
|
1375
|
-
}, []),
|
|
1376
|
-
async (
|
|
1377
|
-
if (
|
|
1378
|
-
M(null),
|
|
1383
|
+
return document.addEventListener("mousedown", w, !0), () => document.removeEventListener("mousedown", w, !0);
|
|
1384
|
+
}, [f]), L(() => () => Y(), [Y]), L(() => {
|
|
1385
|
+
i && (g(!1), u(!1));
|
|
1386
|
+
}, [i]);
|
|
1387
|
+
const Q = y.x + n.dx, ie = y.y + n.dy, { x: h, y: b } = We(Q, ie, Se / 2), O = d && !f, I = D(() => {
|
|
1388
|
+
g(!1), u(!1);
|
|
1389
|
+
}, []), re = D(
|
|
1390
|
+
async (w) => {
|
|
1391
|
+
if (w !== r.status) {
|
|
1392
|
+
M(null), A(!0);
|
|
1379
1393
|
try {
|
|
1380
|
-
await
|
|
1381
|
-
} catch (
|
|
1382
|
-
M(
|
|
1394
|
+
await at(t, o, r.id, w), s();
|
|
1395
|
+
} catch (ee) {
|
|
1396
|
+
M(ee instanceof Error ? ee.message : "Error al actualizar");
|
|
1383
1397
|
} finally {
|
|
1384
|
-
|
|
1398
|
+
A(!1);
|
|
1385
1399
|
}
|
|
1386
1400
|
}
|
|
1387
1401
|
},
|
|
1388
|
-
[
|
|
1389
|
-
),
|
|
1390
|
-
M(null),
|
|
1402
|
+
[t, o, r.id, r.status, s]
|
|
1403
|
+
), ae = D(async () => {
|
|
1404
|
+
M(null), A(!0);
|
|
1391
1405
|
try {
|
|
1392
|
-
await
|
|
1393
|
-
} catch (
|
|
1394
|
-
M(
|
|
1406
|
+
await st(t, o, r.id), s(), I();
|
|
1407
|
+
} catch (w) {
|
|
1408
|
+
M(w instanceof Error ? w.message : "Error al eliminar");
|
|
1395
1409
|
} finally {
|
|
1396
|
-
|
|
1410
|
+
A(!1);
|
|
1397
1411
|
}
|
|
1398
|
-
}, [
|
|
1399
|
-
() => ({ ...
|
|
1400
|
-
[r.status,
|
|
1412
|
+
}, [t, o, r.id, s, I]), se = Be(
|
|
1413
|
+
() => ({ ..._t(r.status), left: h, top: b, transform: "translate(-50%, -50%)" }),
|
|
1414
|
+
[r.status, h, b]
|
|
1401
1415
|
);
|
|
1402
|
-
return /* @__PURE__ */
|
|
1403
|
-
/* @__PURE__ */
|
|
1404
|
-
|
|
1416
|
+
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
1417
|
+
/* @__PURE__ */ c.jsx(
|
|
1418
|
+
ht,
|
|
1405
1419
|
{
|
|
1406
1420
|
selector: r.selector,
|
|
1407
|
-
active:
|
|
1421
|
+
active: O,
|
|
1408
1422
|
fallbackComment: r,
|
|
1409
|
-
outlineColor:
|
|
1423
|
+
outlineColor: Ce[r.status] ?? Ce[j.PENDING]
|
|
1410
1424
|
}
|
|
1411
1425
|
),
|
|
1412
|
-
/* @__PURE__ */
|
|
1426
|
+
/* @__PURE__ */ c.jsx(
|
|
1413
1427
|
"div",
|
|
1414
1428
|
{
|
|
1415
|
-
ref:
|
|
1429
|
+
ref: $,
|
|
1416
1430
|
role: "button",
|
|
1417
1431
|
tabIndex: 0,
|
|
1418
1432
|
"aria-label": `Comentario: ${r.message.slice(0, 30)}...`,
|
|
1419
|
-
"aria-expanded":
|
|
1420
|
-
style:
|
|
1421
|
-
onMouseEnter:
|
|
1422
|
-
onMouseLeave:
|
|
1423
|
-
onClick:
|
|
1424
|
-
children: /* @__PURE__ */
|
|
1433
|
+
"aria-expanded": d,
|
|
1434
|
+
style: se,
|
|
1435
|
+
onMouseEnter: E,
|
|
1436
|
+
onMouseLeave: R,
|
|
1437
|
+
onClick: H,
|
|
1438
|
+
children: /* @__PURE__ */ c.jsx(wt, { color: "var(--ui-color-white, #fff)" })
|
|
1425
1439
|
}
|
|
1426
1440
|
),
|
|
1427
|
-
|
|
1441
|
+
d && /* @__PURE__ */ c.jsxs(
|
|
1428
1442
|
"div",
|
|
1429
1443
|
{
|
|
1430
|
-
ref:
|
|
1444
|
+
ref: v,
|
|
1431
1445
|
role: "dialog",
|
|
1432
1446
|
"aria-label": "Detalle del comentario",
|
|
1433
1447
|
style: {
|
|
1434
|
-
...
|
|
1435
|
-
left:
|
|
1436
|
-
top:
|
|
1448
|
+
...Et,
|
|
1449
|
+
left: h + Se / 2 + 6,
|
|
1450
|
+
top: b
|
|
1437
1451
|
},
|
|
1438
|
-
onMouseEnter:
|
|
1439
|
-
onMouseLeave:
|
|
1452
|
+
onMouseEnter: V,
|
|
1453
|
+
onMouseLeave: q,
|
|
1440
1454
|
children: [
|
|
1441
|
-
/* @__PURE__ */
|
|
1442
|
-
/* @__PURE__ */
|
|
1443
|
-
/* @__PURE__ */
|
|
1444
|
-
/* @__PURE__ */
|
|
1445
|
-
/* @__PURE__ */
|
|
1446
|
-
/* @__PURE__ */
|
|
1455
|
+
/* @__PURE__ */ c.jsxs("div", { style: Rt, children: [
|
|
1456
|
+
/* @__PURE__ */ c.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10, flex: 1, minWidth: 0 }, children: [
|
|
1457
|
+
/* @__PURE__ */ c.jsx(Ct, { reviewer: r.reviewer, status: r.status }),
|
|
1458
|
+
/* @__PURE__ */ c.jsxs("div", { children: [
|
|
1459
|
+
/* @__PURE__ */ c.jsx("div", { style: { fontWeight: 700, fontSize: 14, color: X.textDark }, children: ((fe = r.reviewer) == null ? void 0 : fe.name) ?? "Revisor" }),
|
|
1460
|
+
/* @__PURE__ */ c.jsx("div", { style: { fontSize: 12, color: X.textMuted }, children: ((ve = r.reviewer) == null ? void 0 : ve.job_title) ?? "Revisor" })
|
|
1447
1461
|
] })
|
|
1448
1462
|
] }),
|
|
1449
|
-
/* @__PURE__ */
|
|
1463
|
+
/* @__PURE__ */ c.jsx(
|
|
1450
1464
|
"button",
|
|
1451
1465
|
{
|
|
1452
1466
|
type: "button",
|
|
1453
|
-
"aria-label": r.status ===
|
|
1454
|
-
style:
|
|
1455
|
-
disabled:
|
|
1456
|
-
onClick: (
|
|
1457
|
-
|
|
1467
|
+
"aria-label": r.status === j.VALIDATED ? "Eliminar comentario" : "Cerrar",
|
|
1468
|
+
style: kt,
|
|
1469
|
+
disabled: m,
|
|
1470
|
+
onClick: (w) => {
|
|
1471
|
+
w.stopPropagation(), r.status === j.VALIDATED ? ae() : I();
|
|
1458
1472
|
},
|
|
1459
|
-
onMouseDown: (
|
|
1473
|
+
onMouseDown: (w) => w.stopPropagation(),
|
|
1460
1474
|
children: "✕"
|
|
1461
1475
|
}
|
|
1462
1476
|
)
|
|
1463
1477
|
] }),
|
|
1464
|
-
/* @__PURE__ */
|
|
1465
|
-
/* @__PURE__ */
|
|
1466
|
-
r.status ===
|
|
1467
|
-
|
|
1478
|
+
/* @__PURE__ */ c.jsxs("div", { style: { padding: 12, display: "flex", alignItems: "flex-start", flexDirection: "column", gap: 4 }, children: [
|
|
1479
|
+
/* @__PURE__ */ c.jsxs("div", { style: Tt(r.status), children: [
|
|
1480
|
+
r.status === j.VALIDATED && /* @__PURE__ */ c.jsx(mt, {}),
|
|
1481
|
+
xt[r.status] ?? r.status
|
|
1468
1482
|
] }),
|
|
1469
|
-
/* @__PURE__ */
|
|
1470
|
-
/* @__PURE__ */
|
|
1471
|
-
/* @__PURE__ */
|
|
1472
|
-
/* @__PURE__ */
|
|
1483
|
+
/* @__PURE__ */ c.jsx("div", { style: { color: X.textDark, lineHeight: 1.5, marginBottom: 12, marginTop: 12 }, children: r.message }),
|
|
1484
|
+
/* @__PURE__ */ c.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4, width: "100%" }, children: [
|
|
1485
|
+
/* @__PURE__ */ c.jsx("label", { style: Pt, htmlFor: `comment-status-${r.id}`, children: "Cambiar estado" }),
|
|
1486
|
+
/* @__PURE__ */ c.jsx(
|
|
1473
1487
|
"select",
|
|
1474
1488
|
{
|
|
1475
1489
|
id: `comment-status-${r.id}`,
|
|
1476
|
-
style:
|
|
1490
|
+
style: jt,
|
|
1477
1491
|
value: r.status,
|
|
1478
|
-
disabled:
|
|
1479
|
-
onChange: (
|
|
1480
|
-
onMouseDown: (
|
|
1492
|
+
disabled: m,
|
|
1493
|
+
onChange: (w) => re(w.target.value),
|
|
1494
|
+
onMouseDown: (w) => w.stopPropagation(),
|
|
1481
1495
|
"aria-label": "Cambiar estado del comentario",
|
|
1482
|
-
children:
|
|
1496
|
+
children: Dt.map((w) => /* @__PURE__ */ c.jsx("option", { value: w, children: bt[w] }, w))
|
|
1483
1497
|
}
|
|
1484
1498
|
),
|
|
1485
|
-
|
|
1499
|
+
z && /* @__PURE__ */ c.jsx("div", { style: { marginTop: 8, fontSize: 11, color: "var(--ui-color-text-danger-default, rgb(240, 69, 69))" }, children: z })
|
|
1486
1500
|
] })
|
|
1487
1501
|
] }),
|
|
1488
|
-
/* @__PURE__ */
|
|
1489
|
-
/* @__PURE__ */
|
|
1502
|
+
/* @__PURE__ */ c.jsxs("div", { style: Vt, children: [
|
|
1503
|
+
/* @__PURE__ */ c.jsx(
|
|
1490
1504
|
"button",
|
|
1491
1505
|
{
|
|
1492
1506
|
type: "button",
|
|
1493
|
-
style:
|
|
1494
|
-
onMouseDown: (
|
|
1495
|
-
onClick: (
|
|
1496
|
-
|
|
1507
|
+
style: It,
|
|
1508
|
+
onMouseDown: (w) => w.stopPropagation(),
|
|
1509
|
+
onClick: (w) => {
|
|
1510
|
+
w.stopPropagation(), I();
|
|
1497
1511
|
},
|
|
1498
1512
|
children: "Cerrar"
|
|
1499
1513
|
}
|
|
1500
1514
|
),
|
|
1501
|
-
r.status !==
|
|
1502
|
-
/* @__PURE__ */
|
|
1503
|
-
.${
|
|
1515
|
+
r.status !== j.VALIDATED && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
1516
|
+
/* @__PURE__ */ c.jsx("style", { children: `
|
|
1517
|
+
.${Ee}:hover:not(:disabled) {
|
|
1504
1518
|
background-color: var(--ui-color-bg-fill-success-hover, #16a34a) !important;
|
|
1505
1519
|
}
|
|
1506
|
-
.${
|
|
1520
|
+
.${Ee}:active:not(:disabled) {
|
|
1507
1521
|
background-color: var(--ui-color-bg-fill-success-pressed, #15803d) !important;
|
|
1508
1522
|
}
|
|
1509
|
-
.${
|
|
1523
|
+
.${Ee}:disabled {
|
|
1510
1524
|
background-color: var(--ui-color-bg-fill-success-default, #22c55e) !important;
|
|
1511
1525
|
opacity: 0.7;
|
|
1512
1526
|
cursor: not-allowed;
|
|
1513
1527
|
}
|
|
1514
1528
|
` }),
|
|
1515
|
-
/* @__PURE__ */
|
|
1529
|
+
/* @__PURE__ */ c.jsx(
|
|
1516
1530
|
"button",
|
|
1517
1531
|
{
|
|
1518
1532
|
type: "button",
|
|
1519
|
-
className:
|
|
1520
|
-
style:
|
|
1521
|
-
disabled:
|
|
1522
|
-
onMouseDown: (
|
|
1523
|
-
onClick: (
|
|
1524
|
-
|
|
1533
|
+
className: Ee,
|
|
1534
|
+
style: Ot,
|
|
1535
|
+
disabled: m,
|
|
1536
|
+
onMouseDown: (w) => w.stopPropagation(),
|
|
1537
|
+
onClick: (w) => {
|
|
1538
|
+
w.stopPropagation(), re("validated");
|
|
1525
1539
|
},
|
|
1526
1540
|
children: "Validar"
|
|
1527
1541
|
}
|
|
@@ -1533,133 +1547,134 @@ function Oo({
|
|
|
1533
1547
|
)
|
|
1534
1548
|
] });
|
|
1535
1549
|
}
|
|
1536
|
-
const
|
|
1537
|
-
function
|
|
1538
|
-
const
|
|
1539
|
-
for (let
|
|
1540
|
-
const
|
|
1550
|
+
const At = ke(Lt), zt = 25, Ft = 36;
|
|
1551
|
+
function Nt(r) {
|
|
1552
|
+
const n = /* @__PURE__ */ new Map();
|
|
1553
|
+
for (let t = 0; t < r.length; t++) {
|
|
1554
|
+
const o = r[t], { x: s, y: i } = Re(o), { x: d, y: u } = We(s, i);
|
|
1541
1555
|
let f = 0;
|
|
1542
|
-
for (let
|
|
1543
|
-
const { x:
|
|
1544
|
-
Math.hypot(
|
|
1556
|
+
for (let g = 0; g < t; g++) {
|
|
1557
|
+
const { x: y, y: S } = Re(r[g]), { x: m, y: A } = We(y, S);
|
|
1558
|
+
Math.hypot(d - m, u - A) < zt && f++;
|
|
1545
1559
|
}
|
|
1546
|
-
|
|
1560
|
+
n.set(o.id, { dx: f * Ft, dy: 0 });
|
|
1547
1561
|
}
|
|
1548
|
-
return
|
|
1562
|
+
return n;
|
|
1549
1563
|
}
|
|
1550
|
-
function
|
|
1564
|
+
function $t() {
|
|
1551
1565
|
return typeof window > "u" ? "" : `${window.innerWidth}x${window.innerHeight}`;
|
|
1552
1566
|
}
|
|
1553
|
-
function
|
|
1567
|
+
function Mt({
|
|
1554
1568
|
apiUrl: r,
|
|
1555
|
-
apiKey:
|
|
1569
|
+
apiKey: n,
|
|
1570
|
+
getPageUrl: t,
|
|
1556
1571
|
reviewMode: o,
|
|
1557
|
-
setReviewMode:
|
|
1572
|
+
setReviewMode: s,
|
|
1558
1573
|
reviewers: i,
|
|
1559
|
-
comments:
|
|
1574
|
+
comments: d,
|
|
1560
1575
|
loadComments: u,
|
|
1561
|
-
commentsLoadFailed:
|
|
1576
|
+
commentsLoadFailed: f = !1
|
|
1562
1577
|
}) {
|
|
1563
|
-
const [
|
|
1564
|
-
|
|
1565
|
-
}, [
|
|
1566
|
-
|
|
1578
|
+
const [g, y] = W(null), S = ne(null), [m, A] = W(null), z = D(() => {
|
|
1579
|
+
g && (g.style.outline = "", g.style.outlineOffset = "", y(null));
|
|
1580
|
+
}, [g]), M = D(() => {
|
|
1581
|
+
S.current && (S.current.style.outline = "", S.current.style.outlineOffset = "", S.current = null);
|
|
1567
1582
|
}, []);
|
|
1568
|
-
|
|
1569
|
-
o || (
|
|
1570
|
-
}, [o,
|
|
1583
|
+
L(() => {
|
|
1584
|
+
o || (z(), M());
|
|
1585
|
+
}, [o, z, M]), L(() => {
|
|
1571
1586
|
if (typeof document > "u") return;
|
|
1572
|
-
const
|
|
1573
|
-
return
|
|
1574
|
-
document.body.style.cursor =
|
|
1587
|
+
const h = document.body.style.cursor;
|
|
1588
|
+
return m ? document.body.style.cursor = "default" : o && (document.body.style.cursor = "crosshair"), () => {
|
|
1589
|
+
document.body.style.cursor = h;
|
|
1575
1590
|
};
|
|
1576
|
-
}, [o,
|
|
1577
|
-
const
|
|
1578
|
-
var
|
|
1579
|
-
if (!
|
|
1580
|
-
const
|
|
1581
|
-
return
|
|
1582
|
-
}, []),
|
|
1583
|
-
(
|
|
1584
|
-
if (!o ||
|
|
1585
|
-
const
|
|
1586
|
-
!
|
|
1591
|
+
}, [o, m]);
|
|
1592
|
+
const P = D((h) => {
|
|
1593
|
+
var O;
|
|
1594
|
+
if (!h || typeof document > "u" || h === document.body || h === document.documentElement) return !0;
|
|
1595
|
+
const b = (O = h.tagName) == null ? void 0 : O.toUpperCase();
|
|
1596
|
+
return b === "BODY" || b === "HTML" ? !0 : h.parentElement !== document.body ? !1 : h.id === "root" || h.getAttribute("data-review-layer-host") != null || document.body.children.length === 1;
|
|
1597
|
+
}, []), $ = D(
|
|
1598
|
+
(h) => {
|
|
1599
|
+
if (!o || m) return;
|
|
1600
|
+
const b = h.target.nodeType === Node.ELEMENT_NODE ? h.target : h.target.parentElement;
|
|
1601
|
+
!b || P(b) || (z(), y(b), b.style.outline = "2px solid var(--ui-color-bg-fill-danger-default, #ff4d4f)", b.style.outlineOffset = "2px");
|
|
1587
1602
|
},
|
|
1588
|
-
[o,
|
|
1589
|
-
),
|
|
1590
|
-
(
|
|
1591
|
-
var
|
|
1592
|
-
if (
|
|
1593
|
-
const
|
|
1594
|
-
|
|
1603
|
+
[o, m, z, P]
|
|
1604
|
+
), v = D(
|
|
1605
|
+
(h) => {
|
|
1606
|
+
var O;
|
|
1607
|
+
if (m) return;
|
|
1608
|
+
const b = h.relatedTarget;
|
|
1609
|
+
g && (!b || !g.contains(b)) && !(b && ((O = g.contains) != null && O.call(g, b))) && z();
|
|
1595
1610
|
},
|
|
1596
|
-
[
|
|
1597
|
-
),
|
|
1598
|
-
(
|
|
1599
|
-
if (!o ||
|
|
1600
|
-
const
|
|
1601
|
-
if (!
|
|
1602
|
-
|
|
1603
|
-
const
|
|
1604
|
-
|
|
1605
|
-
const
|
|
1606
|
-
|
|
1607
|
-
position: { x:
|
|
1611
|
+
[g, m, z]
|
|
1612
|
+
), k = D(
|
|
1613
|
+
(h) => {
|
|
1614
|
+
if (!o || m) return;
|
|
1615
|
+
const b = h.target;
|
|
1616
|
+
if (!b || P(b) || b.closest("[data-review-layer-root]")) return;
|
|
1617
|
+
h.preventDefault(), h.stopPropagation(), z();
|
|
1618
|
+
const O = b;
|
|
1619
|
+
S.current = O, O.style.outline = "2px solid var(--ui-color-bg-fill-danger-default, #ff4d4f)", O.style.outlineOffset = "2px";
|
|
1620
|
+
const I = O.getBoundingClientRect(), re = Jr(b), { relativeX: ae, relativeY: se } = Kr(I);
|
|
1621
|
+
A({
|
|
1622
|
+
position: { x: I.left + I.width / 2, y: I.bottom },
|
|
1608
1623
|
payload: {
|
|
1609
|
-
selector:
|
|
1610
|
-
x: Math.round(
|
|
1611
|
-
y: Math.round(
|
|
1612
|
-
relativeX:
|
|
1613
|
-
relativeY:
|
|
1614
|
-
width: Math.round(
|
|
1615
|
-
height: Math.round(
|
|
1616
|
-
url: typeof window < "u" ?
|
|
1617
|
-
viewport:
|
|
1624
|
+
selector: re,
|
|
1625
|
+
x: Math.round(I.left),
|
|
1626
|
+
y: Math.round(I.top),
|
|
1627
|
+
relativeX: ae,
|
|
1628
|
+
relativeY: se,
|
|
1629
|
+
width: Math.round(I.width),
|
|
1630
|
+
height: Math.round(I.height),
|
|
1631
|
+
url: typeof window < "u" ? (t == null ? void 0 : t()) ?? br() : "/",
|
|
1632
|
+
viewport: $t(),
|
|
1618
1633
|
userAgent: typeof navigator < "u" ? navigator.userAgent : "",
|
|
1619
1634
|
pageTitle: typeof document < "u" ? document.title : ""
|
|
1620
1635
|
}
|
|
1621
1636
|
});
|
|
1622
1637
|
},
|
|
1623
|
-
[o,
|
|
1638
|
+
[o, m, z, P]
|
|
1624
1639
|
);
|
|
1625
|
-
|
|
1640
|
+
L(() => {
|
|
1626
1641
|
if (o)
|
|
1627
|
-
return document.addEventListener("mouseover",
|
|
1628
|
-
document.removeEventListener("mouseover",
|
|
1642
|
+
return document.addEventListener("mouseover", $, !0), document.addEventListener("mouseout", v, !0), document.addEventListener("click", k, !0), () => {
|
|
1643
|
+
document.removeEventListener("mouseover", $, !0), document.removeEventListener("mouseout", v, !0), document.removeEventListener("click", k, !0);
|
|
1629
1644
|
};
|
|
1630
|
-
}, [o,
|
|
1631
|
-
const [
|
|
1632
|
-
if (
|
|
1633
|
-
const
|
|
1634
|
-
|
|
1635
|
-
(
|
|
1645
|
+
}, [o, $, v, k]);
|
|
1646
|
+
const [Y, E] = W(0), R = D(() => {
|
|
1647
|
+
if (E((h) => h + 1), S.current) {
|
|
1648
|
+
const h = S.current.getBoundingClientRect();
|
|
1649
|
+
A(
|
|
1650
|
+
(b) => b ? { ...b, position: { x: h.left + h.width / 2, y: h.bottom } } : null
|
|
1636
1651
|
);
|
|
1637
1652
|
}
|
|
1638
1653
|
}, []);
|
|
1639
|
-
|
|
1654
|
+
L(() => {
|
|
1640
1655
|
if (!(typeof window > "u"))
|
|
1641
|
-
return window.addEventListener("resize",
|
|
1642
|
-
window.removeEventListener("resize",
|
|
1656
|
+
return window.addEventListener("resize", R), window.addEventListener("scroll", R, !0), () => {
|
|
1657
|
+
window.removeEventListener("resize", R), window.removeEventListener("scroll", R, !0);
|
|
1643
1658
|
};
|
|
1644
|
-
}, [
|
|
1645
|
-
if (!
|
|
1646
|
-
const
|
|
1647
|
-
return () =>
|
|
1648
|
-
}, [
|
|
1649
|
-
const
|
|
1650
|
-
() =>
|
|
1651
|
-
[
|
|
1652
|
-
),
|
|
1653
|
-
|
|
1654
|
-
}, [
|
|
1659
|
+
}, [R]), L(() => {
|
|
1660
|
+
if (!m || !S.current) return;
|
|
1661
|
+
const h = S.current, O = pr(h).map((I) => (I.addEventListener("scroll", R, !0), () => I.removeEventListener("scroll", R, !0)));
|
|
1662
|
+
return () => O.forEach((I) => I());
|
|
1663
|
+
}, [m, R]);
|
|
1664
|
+
const V = Be(
|
|
1665
|
+
() => Nt(d),
|
|
1666
|
+
[d, Y]
|
|
1667
|
+
), q = D(() => {
|
|
1668
|
+
M(), A(null);
|
|
1669
|
+
}, [M]), H = {
|
|
1655
1670
|
position: "fixed",
|
|
1656
1671
|
inset: 0,
|
|
1657
1672
|
zIndex: 999999,
|
|
1658
1673
|
pointerEvents: "none",
|
|
1659
1674
|
cursor: o ? "crosshair" : void 0
|
|
1660
|
-
},
|
|
1661
|
-
/* @__PURE__ */
|
|
1662
|
-
o && /* @__PURE__ */
|
|
1675
|
+
}, Q = /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
1676
|
+
/* @__PURE__ */ c.jsx("div", { style: H, "aria-hidden": !0, "data-review-layer-root": !0 }),
|
|
1677
|
+
o && /* @__PURE__ */ c.jsxs(
|
|
1663
1678
|
"div",
|
|
1664
1679
|
{
|
|
1665
1680
|
"data-review-layer-root": !0,
|
|
@@ -1680,12 +1695,12 @@ function No({
|
|
|
1680
1695
|
pointerEvents: "auto"
|
|
1681
1696
|
},
|
|
1682
1697
|
children: [
|
|
1683
|
-
/* @__PURE__ */
|
|
1684
|
-
/* @__PURE__ */
|
|
1698
|
+
/* @__PURE__ */ c.jsx("span", { children: "Modo revisión (Shift+R para salir)" }),
|
|
1699
|
+
/* @__PURE__ */ c.jsx(
|
|
1685
1700
|
"button",
|
|
1686
1701
|
{
|
|
1687
1702
|
type: "button",
|
|
1688
|
-
onClick: () =>
|
|
1703
|
+
onClick: () => s(!1),
|
|
1689
1704
|
"aria-label": "Salir del modo revisión",
|
|
1690
1705
|
style: {
|
|
1691
1706
|
padding: 0,
|
|
@@ -1709,7 +1724,7 @@ function No({
|
|
|
1709
1724
|
]
|
|
1710
1725
|
}
|
|
1711
1726
|
),
|
|
1712
|
-
|
|
1727
|
+
f && /* @__PURE__ */ c.jsxs(
|
|
1713
1728
|
"div",
|
|
1714
1729
|
{
|
|
1715
1730
|
style: {
|
|
@@ -1731,8 +1746,8 @@ function No({
|
|
|
1731
1746
|
pointerEvents: "auto"
|
|
1732
1747
|
},
|
|
1733
1748
|
children: [
|
|
1734
|
-
/* @__PURE__ */
|
|
1735
|
-
/* @__PURE__ */
|
|
1749
|
+
/* @__PURE__ */ c.jsx("span", { children: "No se pudo conectar. Mostrando últimos datos guardados. Reintentar no garantiza respuesta hasta que el servicio esté activo." }),
|
|
1750
|
+
/* @__PURE__ */ c.jsx(
|
|
1736
1751
|
"button",
|
|
1737
1752
|
{
|
|
1738
1753
|
type: "button",
|
|
@@ -1753,33 +1768,33 @@ function No({
|
|
|
1753
1768
|
]
|
|
1754
1769
|
}
|
|
1755
1770
|
),
|
|
1756
|
-
|
|
1757
|
-
|
|
1771
|
+
d.map((h) => /* @__PURE__ */ c.jsx("div", { "data-review-layer-pin": !0, style: { pointerEvents: "auto" }, children: /* @__PURE__ */ c.jsx(
|
|
1772
|
+
At,
|
|
1758
1773
|
{
|
|
1759
|
-
comment:
|
|
1760
|
-
offset:
|
|
1774
|
+
comment: h,
|
|
1775
|
+
offset: V.get(h.id),
|
|
1761
1776
|
apiUrl: r,
|
|
1762
|
-
apiKey:
|
|
1777
|
+
apiKey: n,
|
|
1763
1778
|
onStatusChange: u,
|
|
1764
1779
|
reviewMode: o
|
|
1765
1780
|
}
|
|
1766
|
-
) },
|
|
1767
|
-
|
|
1768
|
-
|
|
1781
|
+
) }, h.id)),
|
|
1782
|
+
m && /* @__PURE__ */ c.jsx("div", { "data-review-layer-modal": !0, style: { pointerEvents: "auto" }, children: /* @__PURE__ */ c.jsx(
|
|
1783
|
+
vt,
|
|
1769
1784
|
{
|
|
1770
1785
|
apiUrl: r,
|
|
1771
|
-
apiKey:
|
|
1786
|
+
apiKey: n,
|
|
1772
1787
|
reviewers: i,
|
|
1773
|
-
position:
|
|
1774
|
-
payload:
|
|
1775
|
-
onClose:
|
|
1788
|
+
position: m.position,
|
|
1789
|
+
payload: m.payload,
|
|
1790
|
+
onClose: q,
|
|
1776
1791
|
onSuccess: u
|
|
1777
1792
|
}
|
|
1778
1793
|
) })
|
|
1779
|
-
] }),
|
|
1780
|
-
return
|
|
1794
|
+
] }), ie = typeof document < "u" ? document.body : null;
|
|
1795
|
+
return ie ? vr(Q, ie) : null;
|
|
1781
1796
|
}
|
|
1782
|
-
const
|
|
1797
|
+
const Wt = `/**
|
|
1783
1798
|
* Tokens de diseño UI para review-layer-react.
|
|
1784
1799
|
* Las variables se inyectan en :root al montar ReviewProvider.
|
|
1785
1800
|
* Puedes sobrescribirlas en tu app para adaptar el tema.
|
|
@@ -2105,196 +2120,227 @@ const $o = `/**
|
|
|
2105
2120
|
--ui-shadow-modal: 0 var(--ui-shadow-04-y) var(--ui-shadow-04-blur) var(--ui-shadow-04-Color);
|
|
2106
2121
|
}
|
|
2107
2122
|
`;
|
|
2108
|
-
function
|
|
2109
|
-
const
|
|
2110
|
-
r &&
|
|
2111
|
-
}, [r,
|
|
2112
|
-
|
|
2123
|
+
function Bt(r, n, t) {
|
|
2124
|
+
const o = D(() => {
|
|
2125
|
+
r && t((s) => !s);
|
|
2126
|
+
}, [r, t]);
|
|
2127
|
+
L(() => {
|
|
2113
2128
|
if (!r) return;
|
|
2114
|
-
const
|
|
2115
|
-
(
|
|
2129
|
+
const s = (i) => {
|
|
2130
|
+
(i.key === "r" || i.key === "R" || i.code === "KeyR") && i.shiftKey && !i.ctrlKey && !i.metaKey && (i.preventDefault(), o());
|
|
2116
2131
|
};
|
|
2117
|
-
return window.addEventListener("keydown",
|
|
2118
|
-
}, [r,
|
|
2132
|
+
return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
|
|
2133
|
+
}, [r, o]);
|
|
2119
2134
|
}
|
|
2120
|
-
const
|
|
2121
|
-
function
|
|
2122
|
-
if (r == null) return
|
|
2135
|
+
const Ut = "review_layer:v1:";
|
|
2136
|
+
function Yt(r, n) {
|
|
2137
|
+
if (r == null) return n;
|
|
2123
2138
|
try {
|
|
2124
|
-
return JSON.parse(r) ??
|
|
2139
|
+
return JSON.parse(r) ?? n;
|
|
2125
2140
|
} catch {
|
|
2126
|
-
return
|
|
2141
|
+
return n;
|
|
2127
2142
|
}
|
|
2128
2143
|
}
|
|
2129
|
-
function
|
|
2130
|
-
const
|
|
2131
|
-
return
|
|
2144
|
+
function de(r, n, t, o) {
|
|
2145
|
+
const s = `${Ut}${Ht(r)}:${t}`;
|
|
2146
|
+
return o != null ? `${s}:${o}` : s;
|
|
2132
2147
|
}
|
|
2133
|
-
function
|
|
2148
|
+
function Ht(r) {
|
|
2134
2149
|
return r.replace(/\/+$/, "") || "/";
|
|
2135
2150
|
}
|
|
2136
|
-
function
|
|
2151
|
+
function Te(r) {
|
|
2137
2152
|
if (typeof localStorage > "u") return null;
|
|
2138
|
-
const
|
|
2139
|
-
return
|
|
2153
|
+
const n = localStorage.getItem(r);
|
|
2154
|
+
return Yt(n, null);
|
|
2140
2155
|
}
|
|
2141
|
-
function
|
|
2156
|
+
function yr(r, n) {
|
|
2142
2157
|
if (!(typeof localStorage > "u"))
|
|
2143
2158
|
try {
|
|
2144
|
-
localStorage.setItem(r, JSON.stringify({ data:
|
|
2159
|
+
localStorage.setItem(r, JSON.stringify({ data: n, at: Date.now() }));
|
|
2145
2160
|
} catch {
|
|
2146
2161
|
}
|
|
2147
2162
|
}
|
|
2148
|
-
function
|
|
2149
|
-
const
|
|
2150
|
-
return (
|
|
2163
|
+
function Fe(r, n, t) {
|
|
2164
|
+
const o = Te(de(r, n, "comments", t));
|
|
2165
|
+
return (o == null ? void 0 : o.data) ?? null;
|
|
2151
2166
|
}
|
|
2152
|
-
function
|
|
2153
|
-
|
|
2167
|
+
function Gt(r, n, t, o) {
|
|
2168
|
+
yr(de(r, n, "comments", t), o);
|
|
2154
2169
|
}
|
|
2155
|
-
function
|
|
2156
|
-
const
|
|
2157
|
-
return (
|
|
2170
|
+
function Ne(r, n) {
|
|
2171
|
+
const t = Te(de(r, n, "reviewers"));
|
|
2172
|
+
return (t == null ? void 0 : t.data) ?? null;
|
|
2173
|
+
}
|
|
2174
|
+
function Xt(r, n, t) {
|
|
2175
|
+
yr(de(r, n, "reviewers"), t);
|
|
2158
2176
|
}
|
|
2159
|
-
function
|
|
2160
|
-
|
|
2177
|
+
function qt(r, n, t) {
|
|
2178
|
+
const o = Te(de(r, n, "comments", t));
|
|
2179
|
+
return (o == null ? void 0 : o.at) ?? null;
|
|
2161
2180
|
}
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2181
|
+
function Jt(r, n) {
|
|
2182
|
+
const t = Te(de(r, n, "reviewers"));
|
|
2183
|
+
return (t == null ? void 0 : t.at) ?? null;
|
|
2184
|
+
}
|
|
2185
|
+
const Zt = "https://review-layer-api.onrender.com/api", mr = Hr(null);
|
|
2186
|
+
let $e = null;
|
|
2187
|
+
function eo() {
|
|
2188
|
+
const r = Gr(mr);
|
|
2166
2189
|
if (!r)
|
|
2167
2190
|
throw new Error("useReview must be used within ReviewProvider");
|
|
2168
2191
|
return r;
|
|
2169
2192
|
}
|
|
2170
|
-
const
|
|
2171
|
-
function
|
|
2193
|
+
const U = "[review-layer]", dr = 2500;
|
|
2194
|
+
function ro({
|
|
2172
2195
|
children: r,
|
|
2173
|
-
enabled:
|
|
2174
|
-
apiUrl:
|
|
2175
|
-
apiKey:
|
|
2196
|
+
enabled: n = !0,
|
|
2197
|
+
apiUrl: t,
|
|
2198
|
+
apiKey: o,
|
|
2199
|
+
getPageUrl: s
|
|
2176
2200
|
}) {
|
|
2177
|
-
const i = (
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2201
|
+
const i = (t == null ? void 0 : t.trim()) || Zt, [d, u] = W(!1), [f, g] = W([]), [y, S] = W([]), [m, A] = W(!1), z = ne(!1), M = ne(null), P = D(
|
|
2202
|
+
() => (s == null ? void 0 : s()) ?? br(),
|
|
2203
|
+
[s]
|
|
2204
|
+
);
|
|
2205
|
+
Bt(n, d, u);
|
|
2206
|
+
const $ = D(
|
|
2207
|
+
async (E) => {
|
|
2208
|
+
if (!n || !i || !o) {
|
|
2209
|
+
console.warn(U, "loadReviewers omitido: faltan enabled, apiUrl o apiKey", {
|
|
2210
|
+
enabled: n,
|
|
2184
2211
|
apiUrl: i,
|
|
2185
|
-
hasApiKey: !!
|
|
2212
|
+
hasApiKey: !!o
|
|
2186
2213
|
});
|
|
2187
2214
|
return;
|
|
2188
2215
|
}
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
const
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2216
|
+
const R = Jt(i, o);
|
|
2217
|
+
if (R != null && Date.now() - R < dr) {
|
|
2218
|
+
const V = Ne(i, o);
|
|
2219
|
+
if (V != null) {
|
|
2220
|
+
g(V);
|
|
2221
|
+
return;
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
if (!z.current) {
|
|
2225
|
+
z.current = !0, console.log(U, "Cargando revisores...", { apiUrl: i });
|
|
2226
|
+
try {
|
|
2227
|
+
const V = await ot(i, o, { signal: E });
|
|
2228
|
+
E != null && E.aborted || (g(V), Xt(i, o, V), console.log(U, "Revisores cargados:", V.length));
|
|
2229
|
+
} catch (V) {
|
|
2230
|
+
if (V instanceof Error && V.name === "AbortError") return;
|
|
2231
|
+
if (!(E != null && E.aborted)) {
|
|
2232
|
+
console.error(U, "Error al cargar revisores:", V);
|
|
2233
|
+
const q = Ne(i, o);
|
|
2234
|
+
q != null && (g(q), console.log(U, "Usando revisores en caché:", q.length));
|
|
2235
|
+
}
|
|
2236
|
+
} finally {
|
|
2237
|
+
z.current = !1;
|
|
2199
2238
|
}
|
|
2200
2239
|
}
|
|
2201
2240
|
},
|
|
2202
|
-
[
|
|
2203
|
-
),
|
|
2204
|
-
async (
|
|
2205
|
-
if (!
|
|
2206
|
-
console.warn(
|
|
2207
|
-
enabled:
|
|
2241
|
+
[n, i, o]
|
|
2242
|
+
), v = D(
|
|
2243
|
+
async (E) => {
|
|
2244
|
+
if (!n || !i || !o) {
|
|
2245
|
+
console.warn(U, "loadComments omitido: faltan enabled, apiUrl o apiKey", {
|
|
2246
|
+
enabled: n,
|
|
2208
2247
|
apiUrl: i,
|
|
2209
|
-
hasApiKey: !!
|
|
2248
|
+
hasApiKey: !!o
|
|
2210
2249
|
});
|
|
2211
2250
|
return;
|
|
2212
2251
|
}
|
|
2213
|
-
const
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2252
|
+
const R = P(), V = Fe(i, o, R);
|
|
2253
|
+
V != null && S(V);
|
|
2254
|
+
const q = qt(i, o, R);
|
|
2255
|
+
if (!(q != null && Date.now() - q < dr && V != null) && M.current !== R) {
|
|
2256
|
+
M.current = R, console.log(U, "Cargando comentarios...", { apiUrl: i, url: R });
|
|
2257
|
+
try {
|
|
2258
|
+
A(!1);
|
|
2259
|
+
const H = await it(i, o, R, { signal: E });
|
|
2260
|
+
E != null && E.aborted || (S(H), Gt(i, o, R, H), console.log(U, "Comentarios cargados:", H.length));
|
|
2261
|
+
} catch (H) {
|
|
2262
|
+
if (H instanceof Error && H.name === "AbortError") return;
|
|
2263
|
+
if (!(E != null && E.aborted)) {
|
|
2264
|
+
A(!0), console.error(U, "Error al cargar comentarios:", H);
|
|
2265
|
+
const Q = Fe(i, o, R);
|
|
2266
|
+
Q != null ? (S(Q), console.log(U, "Usando comentarios en caché:", Q.length)) : console.warn(U, "Sin caché de comentarios; la lista quedará vacía hasta que la API responda.");
|
|
2267
|
+
}
|
|
2268
|
+
} finally {
|
|
2269
|
+
M.current = null;
|
|
2225
2270
|
}
|
|
2226
2271
|
}
|
|
2227
2272
|
},
|
|
2228
|
-
[
|
|
2273
|
+
[n, i, o, P]
|
|
2229
2274
|
);
|
|
2230
|
-
|
|
2231
|
-
if (!
|
|
2232
|
-
console.warn(
|
|
2233
|
-
enabled:
|
|
2275
|
+
L(() => {
|
|
2276
|
+
if (!n || !i || !o) {
|
|
2277
|
+
console.warn(U, "Provider activo pero sin carga: enabled, apiUrl y apiKey son requeridos.", {
|
|
2278
|
+
enabled: n,
|
|
2234
2279
|
apiUrl: i,
|
|
2235
|
-
hasApiKey: !!
|
|
2280
|
+
hasApiKey: !!o
|
|
2236
2281
|
});
|
|
2237
2282
|
return;
|
|
2238
2283
|
}
|
|
2239
|
-
const
|
|
2240
|
-
|
|
2241
|
-
}, [
|
|
2284
|
+
const E = P(), R = Ne(i, o), V = Fe(i, o, E);
|
|
2285
|
+
R != null && (g(R), console.log(U, "Revisores desde caché (inicial):", R.length)), V != null && (S(V), console.log(U, "Comentarios desde caché (inicial):", V.length, { url: E }));
|
|
2286
|
+
}, [n, i, o, P]), L(() => {
|
|
2242
2287
|
if (typeof document > "u") return;
|
|
2243
|
-
const
|
|
2244
|
-
if (!document.getElementById(
|
|
2245
|
-
const
|
|
2246
|
-
|
|
2247
|
-
}
|
|
2248
|
-
}, []),
|
|
2249
|
-
if (!
|
|
2250
|
-
const
|
|
2251
|
-
if (
|
|
2252
|
-
return
|
|
2288
|
+
const E = "review-layer-ui-variables";
|
|
2289
|
+
if (!document.getElementById(E)) {
|
|
2290
|
+
const R = document.createElement("style");
|
|
2291
|
+
R.id = E, R.textContent = Wt, document.head.appendChild(R);
|
|
2292
|
+
}
|
|
2293
|
+
}, []), L(() => {
|
|
2294
|
+
if (!n || !i || !o) return;
|
|
2295
|
+
const E = `${i}:${o}`;
|
|
2296
|
+
if ($e !== E)
|
|
2297
|
+
return $e = E, console.log(U, "Inicio de carga (revisores + comentarios)", { apiUrl: i, apiKey: o ? "***" : "(vacío)" }), $(), v(), () => {
|
|
2253
2298
|
setTimeout(() => {
|
|
2254
|
-
|
|
2299
|
+
$e = null;
|
|
2255
2300
|
}, 0);
|
|
2256
2301
|
};
|
|
2257
|
-
}, [
|
|
2258
|
-
if (!
|
|
2259
|
-
const
|
|
2260
|
-
return window.addEventListener("popstate",
|
|
2261
|
-
}, [
|
|
2262
|
-
const
|
|
2302
|
+
}, [n, i, o, $, v]), L(() => {
|
|
2303
|
+
if (!n) return;
|
|
2304
|
+
const E = () => v();
|
|
2305
|
+
return window.addEventListener("popstate", E), () => window.removeEventListener("popstate", E);
|
|
2306
|
+
}, [n, v]);
|
|
2307
|
+
const k = Be(
|
|
2263
2308
|
() => ({
|
|
2264
2309
|
apiUrl: i,
|
|
2265
|
-
apiKey:
|
|
2266
|
-
reviewMode:
|
|
2310
|
+
apiKey: o,
|
|
2311
|
+
reviewMode: d,
|
|
2267
2312
|
setReviewMode: u,
|
|
2268
|
-
reviewers:
|
|
2269
|
-
comments:
|
|
2270
|
-
loadComments:
|
|
2271
|
-
commentsLoadFailed:
|
|
2313
|
+
reviewers: f,
|
|
2314
|
+
comments: y,
|
|
2315
|
+
loadComments: v,
|
|
2316
|
+
commentsLoadFailed: m
|
|
2272
2317
|
}),
|
|
2273
|
-
[i,
|
|
2274
|
-
),
|
|
2275
|
-
/* @__PURE__ */
|
|
2276
|
-
|
|
2318
|
+
[i, o, d, u, f, y, v, m]
|
|
2319
|
+
), Y = n && typeof document < "u" ? vr(
|
|
2320
|
+
/* @__PURE__ */ c.jsx(
|
|
2321
|
+
Mt,
|
|
2277
2322
|
{
|
|
2278
2323
|
apiUrl: i,
|
|
2279
|
-
apiKey:
|
|
2280
|
-
|
|
2324
|
+
apiKey: o,
|
|
2325
|
+
getPageUrl: P,
|
|
2326
|
+
reviewMode: d,
|
|
2281
2327
|
setReviewMode: u,
|
|
2282
|
-
reviewers:
|
|
2283
|
-
comments:
|
|
2284
|
-
loadComments:
|
|
2285
|
-
commentsLoadFailed:
|
|
2328
|
+
reviewers: f,
|
|
2329
|
+
comments: y,
|
|
2330
|
+
loadComments: v,
|
|
2331
|
+
commentsLoadFailed: m
|
|
2286
2332
|
}
|
|
2287
2333
|
),
|
|
2288
2334
|
document.body
|
|
2289
2335
|
) : null;
|
|
2290
|
-
return /* @__PURE__ */
|
|
2336
|
+
return /* @__PURE__ */ c.jsxs(mr.Provider, { value: k, children: [
|
|
2291
2337
|
r,
|
|
2292
|
-
|
|
2338
|
+
Y
|
|
2293
2339
|
] });
|
|
2294
2340
|
}
|
|
2295
2341
|
export {
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2342
|
+
Zt as DEFAULT_API_URL,
|
|
2343
|
+
ro as ReviewProvider,
|
|
2344
|
+
eo as useReview
|
|
2299
2345
|
};
|
|
2300
2346
|
//# sourceMappingURL=review-layer-react.js.map
|