@bitux/review-layer-react 0.1.3 → 0.1.5

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.
@@ -1,6 +1,6 @@
1
- import le, { memo as Rr, useState as A, useEffect as F, useCallback as j, useRef as mr, useMemo as $r, createContext as $e, useContext as Me } from "react";
2
- import { createPortal as se } from "react-dom";
3
- var Ar = { exports: {} }, lr = {};
1
+ import sr, { memo as Re, useState as F, useEffect as z, useCallback as j, useRef as me, useMemo as $e, createContext as Mr, useContext as Wr } from "react";
2
+ import { createPortal as cr } from "react-dom";
3
+ var Ae = { exports: {} }, le = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.min.js
@@ -10,21 +10,21 @@ var Ar = { exports: {} }, lr = {};
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 oe;
14
- function We() {
15
- if (oe) return lr;
16
- oe = 1;
17
- var e = le, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function v(g, d, w) {
13
+ var or;
14
+ function Br() {
15
+ if (or) return le;
16
+ or = 1;
17
+ var r = sr, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function p(g, d, w) {
19
19
  var x, y = {}, P = null, S = null;
20
20
  w !== void 0 && (P = "" + w), d.key !== void 0 && (P = "" + d.key), d.ref !== void 0 && (S = d.ref);
21
21
  for (x in d) i.call(d, x) && !s.hasOwnProperty(x) && (y[x] = d[x]);
22
22
  if (g && g.defaultProps) for (x in d = g.defaultProps, d) y[x] === void 0 && (y[x] = d[x]);
23
23
  return { $$typeof: t, type: g, key: P, ref: S, props: y, _owner: a.current };
24
24
  }
25
- return lr.Fragment = o, lr.jsx = v, lr.jsxs = v, lr;
25
+ return le.Fragment = o, le.jsx = p, le.jsxs = p, le;
26
26
  }
27
- var sr = {};
27
+ var se = {};
28
28
  /**
29
29
  * @license React
30
30
  * react-jsx-runtime.development.js
@@ -34,61 +34,61 @@ var sr = {};
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 te;
38
- function Be() {
39
- return te || (te = 1, process.env.NODE_ENV !== "production" && function() {
40
- var e = le, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), g = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), V = Symbol.iterator, $ = "@@iterator";
41
- function L(r) {
42
- if (r === null || typeof r != "object")
37
+ var tr;
38
+ function Yr() {
39
+ return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
40
+ var r = sr, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), g = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), V = Symbol.iterator, $ = "@@iterator";
41
+ function L(e) {
42
+ if (e === null || typeof e != "object")
43
43
  return null;
44
- var n = V && r[V] || r[$];
44
+ var n = V && e[V] || e[$];
45
45
  return typeof n == "function" ? n : null;
46
46
  }
47
- var c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
- function p(r) {
47
+ var c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
+ function f(e) {
49
49
  {
50
- for (var n = arguments.length, u = new Array(n > 1 ? n - 1 : 0), f = 1; f < n; f++)
51
- u[f - 1] = arguments[f];
52
- I("error", r, u);
50
+ for (var n = arguments.length, u = new Array(n > 1 ? n - 1 : 0), v = 1; v < n; v++)
51
+ u[v - 1] = arguments[v];
52
+ I("error", e, u);
53
53
  }
54
54
  }
55
- function I(r, n, u) {
55
+ function I(e, n, u) {
56
56
  {
57
- var f = c.ReactDebugCurrentFrame, E = f.getStackAddendum();
57
+ var v = c.ReactDebugCurrentFrame, E = v.getStackAddendum();
58
58
  E !== "" && (n += "%s", u = u.concat([E]));
59
59
  var R = u.map(function(h) {
60
60
  return String(h);
61
61
  });
62
- R.unshift("Warning: " + n), Function.prototype.apply.call(console[r], console, R);
62
+ R.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, R);
63
63
  }
64
64
  }
65
- var N = !1, H = !1, er = !1, or = !1, tr = !1, X;
65
+ var N = !1, H = !1, re = !1, oe = !1, te = !1, X;
66
66
  X = Symbol.for("react.module.reference");
67
- function m(r) {
68
- return !!(typeof r == "string" || typeof r == "function" || r === i || r === s || tr || r === a || r === w || r === x || or || r === S || N || H || er || typeof r == "object" && r !== null && (r.$$typeof === P || r.$$typeof === y || r.$$typeof === v || r.$$typeof === g || r.$$typeof === d || // This needs to include all possible module reference object
67
+ function m(e) {
68
+ return !!(typeof e == "string" || typeof e == "function" || e === i || e === s || te || e === a || e === w || e === x || oe || e === S || N || H || re || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === y || e.$$typeof === p || e.$$typeof === g || e.$$typeof === d || // 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
- r.$$typeof === X || r.getModuleId !== void 0));
72
+ e.$$typeof === X || e.getModuleId !== void 0));
73
73
  }
74
- function C(r, n, u) {
75
- var f = r.displayName;
76
- if (f)
77
- return f;
74
+ function k(e, n, u) {
75
+ var v = e.displayName;
76
+ if (v)
77
+ return v;
78
78
  var E = n.displayName || n.name || "";
79
79
  return E !== "" ? u + "(" + E + ")" : u;
80
80
  }
81
- function z(r) {
82
- return r.displayName || "Context";
81
+ function A(e) {
82
+ return e.displayName || "Context";
83
83
  }
84
- function T(r) {
85
- if (r == null)
84
+ function T(e) {
85
+ if (e == null)
86
86
  return null;
87
- if (typeof r.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
88
- return r.displayName || r.name || null;
89
- if (typeof r == "string")
90
- return r;
91
- switch (r) {
87
+ if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
88
+ return e.displayName || e.name || null;
89
+ if (typeof e == "string")
90
+ return e;
91
+ switch (e) {
92
92
  case i:
93
93
  return "Fragment";
94
94
  case o:
@@ -102,21 +102,21 @@ function Be() {
102
102
  case x:
103
103
  return "SuspenseList";
104
104
  }
105
- if (typeof r == "object")
106
- switch (r.$$typeof) {
105
+ if (typeof e == "object")
106
+ switch (e.$$typeof) {
107
107
  case g:
108
- var n = r;
109
- return z(n) + ".Consumer";
110
- case v:
111
- var u = r;
112
- return z(u._context) + ".Provider";
108
+ var n = e;
109
+ return A(n) + ".Consumer";
110
+ case p:
111
+ var u = e;
112
+ return A(u._context) + ".Provider";
113
113
  case d:
114
- return C(r, r.render, "ForwardRef");
114
+ return k(e, e.render, "ForwardRef");
115
115
  case y:
116
- var f = r.displayName || null;
117
- return f !== null ? f : T(r.type) || "Memo";
116
+ var v = e.displayName || null;
117
+ return v !== null ? v : T(e.type) || "Memo";
118
118
  case P: {
119
- var E = r, R = E._payload, h = E._init;
119
+ var E = e, R = E._payload, h = E._init;
120
120
  try {
121
121
  return T(h(R));
122
122
  } catch {
@@ -126,101 +126,101 @@ function Be() {
126
126
  }
127
127
  return null;
128
128
  }
129
- var G = Object.assign, Y = 0, J, dr, fr, nr, ir, _, q;
130
- function ar() {
129
+ var G = Object.assign, Y = 0, J, de, fe, ne, ie, _, q;
130
+ function ae() {
131
131
  }
132
- ar.__reactDisabledLog = !0;
133
- function vr() {
132
+ ae.__reactDisabledLog = !0;
133
+ function ve() {
134
134
  {
135
135
  if (Y === 0) {
136
- J = console.log, dr = console.info, fr = console.warn, nr = console.error, ir = console.group, _ = console.groupCollapsed, q = console.groupEnd;
137
- var r = {
136
+ J = console.log, de = console.info, fe = console.warn, ne = console.error, ie = console.group, _ = console.groupCollapsed, q = console.groupEnd;
137
+ var e = {
138
138
  configurable: !0,
139
139
  enumerable: !0,
140
- value: ar,
140
+ value: ae,
141
141
  writable: !0
142
142
  };
143
143
  Object.defineProperties(console, {
144
- info: r,
145
- log: r,
146
- warn: r,
147
- error: r,
148
- group: r,
149
- groupCollapsed: r,
150
- groupEnd: r
144
+ info: e,
145
+ log: e,
146
+ warn: e,
147
+ error: e,
148
+ group: e,
149
+ groupCollapsed: e,
150
+ groupEnd: e
151
151
  });
152
152
  }
153
153
  Y++;
154
154
  }
155
155
  }
156
- function pr() {
156
+ function pe() {
157
157
  {
158
158
  if (Y--, Y === 0) {
159
- var r = {
159
+ var e = {
160
160
  configurable: !0,
161
161
  enumerable: !0,
162
162
  writable: !0
163
163
  };
164
164
  Object.defineProperties(console, {
165
- log: G({}, r, {
165
+ log: G({}, e, {
166
166
  value: J
167
167
  }),
168
- info: G({}, r, {
169
- value: dr
168
+ info: G({}, e, {
169
+ value: de
170
170
  }),
171
- warn: G({}, r, {
172
- value: fr
171
+ warn: G({}, e, {
172
+ value: fe
173
173
  }),
174
- error: G({}, r, {
175
- value: nr
174
+ error: G({}, e, {
175
+ value: ne
176
176
  }),
177
- group: G({}, r, {
178
- value: ir
177
+ group: G({}, e, {
178
+ value: ie
179
179
  }),
180
- groupCollapsed: G({}, r, {
180
+ groupCollapsed: G({}, e, {
181
181
  value: _
182
182
  }),
183
- groupEnd: G({}, r, {
183
+ groupEnd: G({}, e, {
184
184
  value: q
185
185
  })
186
186
  });
187
187
  }
188
- Y < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
+ Y < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
189
  }
190
190
  }
191
- var Cr = c.ReactCurrentDispatcher, kr;
192
- function gr(r, n, u) {
191
+ var ke = c.ReactCurrentDispatcher, Ce;
192
+ function ge(e, n, u) {
193
193
  {
194
- if (kr === void 0)
194
+ if (Ce === void 0)
195
195
  try {
196
196
  throw Error();
197
197
  } catch (E) {
198
- var f = E.stack.trim().match(/\n( *(at )?)/);
199
- kr = f && f[1] || "";
198
+ var v = E.stack.trim().match(/\n( *(at )?)/);
199
+ Ce = v && v[1] || "";
200
200
  }
201
201
  return `
202
- ` + kr + r;
202
+ ` + Ce + e;
203
203
  }
204
204
  }
205
- var Pr = !1, br;
205
+ var Pe = !1, be;
206
206
  {
207
- var ge = typeof WeakMap == "function" ? WeakMap : Map;
208
- br = new ge();
207
+ var br = typeof WeakMap == "function" ? WeakMap : Map;
208
+ be = new br();
209
209
  }
210
- function Mr(r, n) {
211
- if (!r || Pr)
210
+ function Me(e, n) {
211
+ if (!e || Pe)
212
212
  return "";
213
213
  {
214
- var u = br.get(r);
214
+ var u = be.get(e);
215
215
  if (u !== void 0)
216
216
  return u;
217
217
  }
218
- var f;
219
- Pr = !0;
218
+ var v;
219
+ Pe = !0;
220
220
  var E = Error.prepareStackTrace;
221
221
  Error.prepareStackTrace = void 0;
222
222
  var R;
223
- R = Cr.current, Cr.current = null, vr();
223
+ R = ke.current, ke.current = null, ve();
224
224
  try {
225
225
  if (n) {
226
226
  var h = function() {
@@ -234,29 +234,29 @@ function Be() {
234
234
  try {
235
235
  Reflect.construct(h, []);
236
236
  } catch (W) {
237
- f = W;
237
+ v = W;
238
238
  }
239
- Reflect.construct(r, [], h);
239
+ Reflect.construct(e, [], h);
240
240
  } else {
241
241
  try {
242
242
  h.call();
243
243
  } catch (W) {
244
- f = W;
244
+ v = W;
245
245
  }
246
- r.call(h.prototype);
246
+ e.call(h.prototype);
247
247
  }
248
248
  } else {
249
249
  try {
250
250
  throw Error();
251
251
  } catch (W) {
252
- f = W;
252
+ v = W;
253
253
  }
254
- r();
254
+ e();
255
255
  }
256
256
  } catch (W) {
257
- if (W && f && typeof W.stack == "string") {
257
+ if (W && v && typeof W.stack == "string") {
258
258
  for (var b = W.stack.split(`
259
- `), M = f.stack.split(`
259
+ `), M = v.stack.split(`
260
260
  `), D = b.length - 1, O = M.length - 1; D >= 1 && O >= 0 && b[D] !== M[O]; )
261
261
  O--;
262
262
  for (; D >= 1 && O >= 0; D--, O--)
@@ -266,158 +266,158 @@ function Be() {
266
266
  if (D--, O--, O < 0 || b[D] !== M[O]) {
267
267
  var U = `
268
268
  ` + b[D].replace(" at new ", " at ");
269
- return r.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", r.displayName)), typeof r == "function" && br.set(r, U), U;
269
+ return e.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", e.displayName)), typeof e == "function" && be.set(e, U), U;
270
270
  }
271
271
  while (D >= 1 && O >= 0);
272
272
  break;
273
273
  }
274
274
  }
275
275
  } finally {
276
- Pr = !1, Cr.current = R, pr(), Error.prepareStackTrace = E;
276
+ Pe = !1, ke.current = R, pe(), Error.prepareStackTrace = E;
277
277
  }
278
- var K = r ? r.displayName || r.name : "", Z = K ? gr(K) : "";
279
- return typeof r == "function" && br.set(r, Z), Z;
278
+ var K = e ? e.displayName || e.name : "", Z = K ? ge(K) : "";
279
+ return typeof e == "function" && be.set(e, Z), Z;
280
280
  }
281
- function be(r, n, u) {
282
- return Mr(r, !1);
281
+ function hr(e, n, u) {
282
+ return Me(e, !1);
283
283
  }
284
- function he(r) {
285
- var n = r.prototype;
284
+ function xr(e) {
285
+ var n = e.prototype;
286
286
  return !!(n && n.isReactComponent);
287
287
  }
288
- function hr(r, n, u) {
289
- if (r == null)
288
+ function he(e, n, u) {
289
+ if (e == null)
290
290
  return "";
291
- if (typeof r == "function")
292
- return Mr(r, he(r));
293
- if (typeof r == "string")
294
- return gr(r);
295
- switch (r) {
291
+ if (typeof e == "function")
292
+ return Me(e, xr(e));
293
+ if (typeof e == "string")
294
+ return ge(e);
295
+ switch (e) {
296
296
  case w:
297
- return gr("Suspense");
297
+ return ge("Suspense");
298
298
  case x:
299
- return gr("SuspenseList");
299
+ return ge("SuspenseList");
300
300
  }
301
- if (typeof r == "object")
302
- switch (r.$$typeof) {
301
+ if (typeof e == "object")
302
+ switch (e.$$typeof) {
303
303
  case d:
304
- return be(r.render);
304
+ return hr(e.render);
305
305
  case y:
306
- return hr(r.type, n, u);
306
+ return he(e.type, n, u);
307
307
  case P: {
308
- var f = r, E = f._payload, R = f._init;
308
+ var v = e, E = v._payload, R = v._init;
309
309
  try {
310
- return hr(R(E), n, u);
310
+ return he(R(E), n, u);
311
311
  } catch {
312
312
  }
313
313
  }
314
314
  }
315
315
  return "";
316
316
  }
317
- var ur = Object.prototype.hasOwnProperty, Wr = {}, Br = c.ReactDebugCurrentFrame;
318
- function xr(r) {
319
- if (r) {
320
- var n = r._owner, u = hr(r.type, r._source, n ? n.type : null);
321
- Br.setExtraStackFrame(u);
317
+ var ue = Object.prototype.hasOwnProperty, We = {}, Be = c.ReactDebugCurrentFrame;
318
+ function xe(e) {
319
+ if (e) {
320
+ var n = e._owner, u = he(e.type, e._source, n ? n.type : null);
321
+ Be.setExtraStackFrame(u);
322
322
  } else
323
- Br.setExtraStackFrame(null);
323
+ Be.setExtraStackFrame(null);
324
324
  }
325
- function xe(r, n, u, f, E) {
325
+ function yr(e, n, u, v, E) {
326
326
  {
327
- var R = Function.call.bind(ur);
328
- for (var h in r)
329
- if (R(r, h)) {
327
+ var R = Function.call.bind(ue);
328
+ for (var h in e)
329
+ if (R(e, h)) {
330
330
  var b = void 0;
331
331
  try {
332
- if (typeof r[h] != "function") {
333
- var M = Error((f || "React class") + ": " + u + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
332
+ if (typeof e[h] != "function") {
333
+ var M = Error((v || "React class") + ": " + u + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
334
334
  throw M.name = "Invariant Violation", M;
335
335
  }
336
- b = r[h](n, h, f, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ b = e[h](n, h, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
337
  } catch (D) {
338
338
  b = D;
339
339
  }
340
- b && !(b instanceof Error) && (xr(E), p("%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).", f || "React class", u, h, typeof b), xr(null)), b instanceof Error && !(b.message in Wr) && (Wr[b.message] = !0, xr(E), p("Failed %s type: %s", u, b.message), xr(null));
340
+ b && !(b instanceof Error) && (xe(E), f("%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).", v || "React class", u, h, typeof b), xe(null)), b instanceof Error && !(b.message in We) && (We[b.message] = !0, xe(E), f("Failed %s type: %s", u, b.message), xe(null));
341
341
  }
342
342
  }
343
343
  }
344
- var ye = Array.isArray;
345
- function jr(r) {
346
- return ye(r);
344
+ var mr = Array.isArray;
345
+ function je(e) {
346
+ return mr(e);
347
347
  }
348
- function me(r) {
348
+ function wr(e) {
349
349
  {
350
- var n = typeof Symbol == "function" && Symbol.toStringTag, u = n && r[Symbol.toStringTag] || r.constructor.name || "Object";
350
+ var n = typeof Symbol == "function" && Symbol.toStringTag, u = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
351
351
  return u;
352
352
  }
353
353
  }
354
- function we(r) {
354
+ function _r(e) {
355
355
  try {
356
- return Yr(r), !1;
356
+ return Ye(e), !1;
357
357
  } catch {
358
358
  return !0;
359
359
  }
360
360
  }
361
- function Yr(r) {
362
- return "" + r;
361
+ function Ye(e) {
362
+ return "" + e;
363
363
  }
364
- function Ur(r) {
365
- if (we(r))
366
- return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", me(r)), Yr(r);
364
+ function Ue(e) {
365
+ if (_r(e))
366
+ return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wr(e)), Ye(e);
367
367
  }
368
- var Gr = c.ReactCurrentOwner, _e = {
368
+ var Ge = c.ReactCurrentOwner, Er = {
369
369
  key: !0,
370
370
  ref: !0,
371
371
  __self: !0,
372
372
  __source: !0
373
- }, Hr, Xr;
374
- function Ee(r) {
375
- if (ur.call(r, "ref")) {
376
- var n = Object.getOwnPropertyDescriptor(r, "ref").get;
373
+ }, He, Xe;
374
+ function Rr(e) {
375
+ if (ue.call(e, "ref")) {
376
+ var n = Object.getOwnPropertyDescriptor(e, "ref").get;
377
377
  if (n && n.isReactWarning)
378
378
  return !1;
379
379
  }
380
- return r.ref !== void 0;
380
+ return e.ref !== void 0;
381
381
  }
382
- function Re(r) {
383
- if (ur.call(r, "key")) {
384
- var n = Object.getOwnPropertyDescriptor(r, "key").get;
382
+ function Sr(e) {
383
+ if (ue.call(e, "key")) {
384
+ var n = Object.getOwnPropertyDescriptor(e, "key").get;
385
385
  if (n && n.isReactWarning)
386
386
  return !1;
387
387
  }
388
- return r.key !== void 0;
388
+ return e.key !== void 0;
389
389
  }
390
- function Se(r, n) {
391
- typeof r.ref == "string" && Gr.current;
390
+ function kr(e, n) {
391
+ typeof e.ref == "string" && Ge.current;
392
392
  }
393
- function Ce(r, n) {
393
+ function Cr(e, n) {
394
394
  {
395
395
  var u = function() {
396
- Hr || (Hr = !0, p("%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)", n));
396
+ He || (He = !0, f("%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)", n));
397
397
  };
398
- u.isReactWarning = !0, Object.defineProperty(r, "key", {
398
+ u.isReactWarning = !0, Object.defineProperty(e, "key", {
399
399
  get: u,
400
400
  configurable: !0
401
401
  });
402
402
  }
403
403
  }
404
- function ke(r, n) {
404
+ function Pr(e, n) {
405
405
  {
406
406
  var u = function() {
407
- Xr || (Xr = !0, p("%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)", n));
407
+ Xe || (Xe = !0, f("%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)", n));
408
408
  };
409
- u.isReactWarning = !0, Object.defineProperty(r, "ref", {
409
+ u.isReactWarning = !0, Object.defineProperty(e, "ref", {
410
410
  get: u,
411
411
  configurable: !0
412
412
  });
413
413
  }
414
414
  }
415
- var Pe = function(r, n, u, f, E, R, h) {
415
+ var jr = function(e, n, u, v, E, R, h) {
416
416
  var b = {
417
417
  // This tag allows us to uniquely identify this as a React Element
418
418
  $$typeof: t,
419
419
  // Built-in properties that belong on the element
420
- type: r,
420
+ type: e,
421
421
  key: n,
422
422
  ref: u,
423
423
  props: h,
@@ -433,7 +433,7 @@ function Be() {
433
433
  configurable: !1,
434
434
  enumerable: !1,
435
435
  writable: !1,
436
- value: f
436
+ value: v
437
437
  }), Object.defineProperty(b, "_source", {
438
438
  configurable: !1,
439
439
  enumerable: !1,
@@ -441,58 +441,58 @@ function Be() {
441
441
  value: E
442
442
  }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
443
443
  };
444
- function je(r, n, u, f, E) {
444
+ function Vr(e, n, u, v, E) {
445
445
  {
446
446
  var R, h = {}, b = null, M = null;
447
- u !== void 0 && (Ur(u), b = "" + u), Re(n) && (Ur(n.key), b = "" + n.key), Ee(n) && (M = n.ref, Se(n, E));
447
+ u !== void 0 && (Ue(u), b = "" + u), Sr(n) && (Ue(n.key), b = "" + n.key), Rr(n) && (M = n.ref, kr(n, E));
448
448
  for (R in n)
449
- ur.call(n, R) && !_e.hasOwnProperty(R) && (h[R] = n[R]);
450
- if (r && r.defaultProps) {
451
- var D = r.defaultProps;
449
+ ue.call(n, R) && !Er.hasOwnProperty(R) && (h[R] = n[R]);
450
+ if (e && e.defaultProps) {
451
+ var D = e.defaultProps;
452
452
  for (R in D)
453
453
  h[R] === void 0 && (h[R] = D[R]);
454
454
  }
455
455
  if (b || M) {
456
- var O = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
457
- b && Ce(h, O), M && ke(h, O);
456
+ var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
457
+ b && Cr(h, O), M && Pr(h, O);
458
458
  }
459
- return Pe(r, b, M, E, f, Gr.current, h);
459
+ return jr(e, b, M, E, v, Ge.current, h);
460
460
  }
461
461
  }
462
- var Vr = c.ReactCurrentOwner, Jr = c.ReactDebugCurrentFrame;
463
- function Q(r) {
464
- if (r) {
465
- var n = r._owner, u = hr(r.type, r._source, n ? n.type : null);
466
- Jr.setExtraStackFrame(u);
462
+ var Ve = c.ReactCurrentOwner, Je = c.ReactDebugCurrentFrame;
463
+ function Q(e) {
464
+ if (e) {
465
+ var n = e._owner, u = he(e.type, e._source, n ? n.type : null);
466
+ Je.setExtraStackFrame(u);
467
467
  } else
468
- Jr.setExtraStackFrame(null);
468
+ Je.setExtraStackFrame(null);
469
469
  }
470
- var Tr;
471
- Tr = !1;
472
- function Dr(r) {
473
- return typeof r == "object" && r !== null && r.$$typeof === t;
470
+ var Te;
471
+ Te = !1;
472
+ function De(e) {
473
+ return typeof e == "object" && e !== null && e.$$typeof === t;
474
474
  }
475
- function qr() {
475
+ function qe() {
476
476
  {
477
- if (Vr.current) {
478
- var r = T(Vr.current.type);
479
- if (r)
477
+ if (Ve.current) {
478
+ var e = T(Ve.current.type);
479
+ if (e)
480
480
  return `
481
481
 
482
- Check the render method of \`` + r + "`.";
482
+ Check the render method of \`` + e + "`.";
483
483
  }
484
484
  return "";
485
485
  }
486
486
  }
487
- function Ve(r) {
487
+ function Tr(e) {
488
488
  return "";
489
489
  }
490
- var Zr = {};
491
- function Te(r) {
490
+ var Ze = {};
491
+ function Dr(e) {
492
492
  {
493
- var n = qr();
493
+ var n = qe();
494
494
  if (!n) {
495
- var u = typeof r == "string" ? r : r.displayName || r.name;
495
+ var u = typeof e == "string" ? e : e.displayName || e.name;
496
496
  u && (n = `
497
497
 
498
498
  Check the top-level render call using <` + u + ">.");
@@ -500,41 +500,41 @@ Check the top-level render call using <` + u + ">.");
500
500
  return n;
501
501
  }
502
502
  }
503
- function Qr(r, n) {
503
+ function Qe(e, n) {
504
504
  {
505
- if (!r._store || r._store.validated || r.key != null)
505
+ if (!e._store || e._store.validated || e.key != null)
506
506
  return;
507
- r._store.validated = !0;
508
- var u = Te(n);
509
- if (Zr[u])
507
+ e._store.validated = !0;
508
+ var u = Dr(n);
509
+ if (Ze[u])
510
510
  return;
511
- Zr[u] = !0;
512
- var f = "";
513
- r && r._owner && r._owner !== Vr.current && (f = " It was passed a child from " + T(r._owner.type) + "."), Q(r), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, f), Q(null);
511
+ Ze[u] = !0;
512
+ var v = "";
513
+ e && e._owner && e._owner !== Ve.current && (v = " It was passed a child from " + T(e._owner.type) + "."), Q(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), Q(null);
514
514
  }
515
515
  }
516
- function Kr(r, n) {
516
+ function Ke(e, n) {
517
517
  {
518
- if (typeof r != "object")
518
+ if (typeof e != "object")
519
519
  return;
520
- if (jr(r))
521
- for (var u = 0; u < r.length; u++) {
522
- var f = r[u];
523
- Dr(f) && Qr(f, n);
520
+ if (je(e))
521
+ for (var u = 0; u < e.length; u++) {
522
+ var v = e[u];
523
+ De(v) && Qe(v, n);
524
524
  }
525
- else if (Dr(r))
526
- r._store && (r._store.validated = !0);
527
- else if (r) {
528
- var E = L(r);
529
- if (typeof E == "function" && E !== r.entries)
530
- for (var R = E.call(r), h; !(h = R.next()).done; )
531
- Dr(h.value) && Qr(h.value, n);
525
+ else if (De(e))
526
+ e._store && (e._store.validated = !0);
527
+ else if (e) {
528
+ var E = L(e);
529
+ if (typeof E == "function" && E !== e.entries)
530
+ for (var R = E.call(e), h; !(h = R.next()).done; )
531
+ De(h.value) && Qe(h.value, n);
532
532
  }
533
533
  }
534
534
  }
535
- function De(r) {
535
+ function Ir(e) {
536
536
  {
537
- var n = r.type;
537
+ var n = e.type;
538
538
  if (n == null || typeof n == "string")
539
539
  return;
540
540
  var u;
@@ -547,90 +547,90 @@ Check the top-level render call using <` + u + ">.");
547
547
  else
548
548
  return;
549
549
  if (u) {
550
- var f = T(n);
551
- xe(u, r.props, "prop", f, r);
552
- } else if (n.PropTypes !== void 0 && !Tr) {
553
- Tr = !0;
550
+ var v = T(n);
551
+ yr(u, e.props, "prop", v, e);
552
+ } else if (n.PropTypes !== void 0 && !Te) {
553
+ Te = !0;
554
554
  var E = T(n);
555
- p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
555
+ f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
556
556
  }
557
- typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
+ typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
558
558
  }
559
559
  }
560
- function Ie(r) {
560
+ function Or(e) {
561
561
  {
562
- for (var n = Object.keys(r.props), u = 0; u < n.length; u++) {
563
- var f = n[u];
564
- if (f !== "children" && f !== "key") {
565
- Q(r), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), Q(null);
562
+ for (var n = Object.keys(e.props), u = 0; u < n.length; u++) {
563
+ var v = n[u];
564
+ if (v !== "children" && v !== "key") {
565
+ Q(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), Q(null);
566
566
  break;
567
567
  }
568
568
  }
569
- r.ref !== null && (Q(r), p("Invalid attribute `ref` supplied to `React.Fragment`."), Q(null));
569
+ e.ref !== null && (Q(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), Q(null));
570
570
  }
571
571
  }
572
- var re = {};
573
- function ee(r, n, u, f, E, R) {
572
+ var er = {};
573
+ function rr(e, n, u, v, E, R) {
574
574
  {
575
- var h = m(r);
575
+ var h = m(e);
576
576
  if (!h) {
577
577
  var b = "";
578
- (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (b += " 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 M = Ve();
580
- M ? b += M : b += qr();
578
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " 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 M = Tr();
580
+ M ? b += M : b += qe();
581
581
  var D;
582
- r === null ? D = "null" : jr(r) ? D = "array" : r !== void 0 && r.$$typeof === t ? (D = "<" + (T(r.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : D = typeof r, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, b);
582
+ e === null ? D = "null" : je(e) ? D = "array" : e !== void 0 && e.$$typeof === t ? (D = "<" + (T(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : D = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, b);
583
583
  }
584
- var O = je(r, n, u, E, R);
584
+ var O = Vr(e, n, u, E, R);
585
585
  if (O == null)
586
586
  return O;
587
587
  if (h) {
588
588
  var U = n.children;
589
589
  if (U !== void 0)
590
- if (f)
591
- if (jr(U)) {
590
+ if (v)
591
+ if (je(U)) {
592
592
  for (var K = 0; K < U.length; K++)
593
- Kr(U[K], r);
593
+ Ke(U[K], e);
594
594
  Object.freeze && Object.freeze(U);
595
595
  } else
596
- p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
+ f("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
- Kr(U, r);
598
+ Ke(U, e);
599
599
  }
600
- if (ur.call(n, "key")) {
601
- var Z = T(r), W = Object.keys(n).filter(function(Ne) {
602
- return Ne !== "key";
603
- }), Ir = W.length > 0 ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}";
604
- if (!re[Z + Ir]) {
605
- var Fe = W.length > 0 ? "{" + W.join(": ..., ") + ": ...}" : "{}";
606
- p(`A props object containing a "key" prop is being spread into JSX:
600
+ if (ue.call(n, "key")) {
601
+ var Z = T(e), W = Object.keys(n).filter(function($r) {
602
+ return $r !== "key";
603
+ }), Ie = W.length > 0 ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}";
604
+ if (!er[Z + Ie]) {
605
+ var Nr = W.length > 0 ? "{" + W.join(": ..., ") + ": ...}" : "{}";
606
+ f(`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} />`, Ir, Z, Fe, Z), re[Z + Ir] = !0;
611
+ <%s key={someKey} {...props} />`, Ie, Z, Nr, Z), er[Z + Ie] = !0;
612
612
  }
613
613
  }
614
- return r === i ? Ie(O) : De(O), O;
614
+ return e === i ? Or(O) : Ir(O), O;
615
615
  }
616
616
  }
617
- function Oe(r, n, u) {
618
- return ee(r, n, u, !0);
617
+ function Lr(e, n, u) {
618
+ return rr(e, n, u, !0);
619
619
  }
620
- function Le(r, n, u) {
621
- return ee(r, n, u, !1);
620
+ function zr(e, n, u) {
621
+ return rr(e, n, u, !1);
622
622
  }
623
- var ze = Le, Ae = Oe;
624
- sr.Fragment = i, sr.jsx = ze, sr.jsxs = Ae;
625
- }()), sr;
623
+ var Ar = zr, Fr = Lr;
624
+ se.Fragment = i, se.jsx = Ar, se.jsxs = Fr;
625
+ }()), se;
626
626
  }
627
- process.env.NODE_ENV === "production" ? Ar.exports = We() : Ar.exports = Be();
628
- var l = Ar.exports;
629
- function Ye(e) {
630
- if (e.id && /^[a-zA-Z][\w-]*$/.test(e.id))
631
- return `#${e.id}`;
627
+ process.env.NODE_ENV === "production" ? Ae.exports = Br() : Ae.exports = Yr();
628
+ var l = Ae.exports;
629
+ function Ur(r) {
630
+ if (r.id && /^[a-zA-Z][\w-]*$/.test(r.id))
631
+ return `#${r.id}`;
632
632
  const t = [];
633
- let o = e;
633
+ let o = r;
634
634
  for (; o && o.nodeType === Node.ELEMENT_NODE; ) {
635
635
  let i = o.nodeName.toLowerCase();
636
636
  if (o.id && /^[a-zA-Z][\w-]*$/.test(o.id)) {
@@ -640,7 +640,7 @@ function Ye(e) {
640
640
  if (o.className && typeof o.className == "string") {
641
641
  const a = o.className.trim().split(/\s+/).filter(Boolean);
642
642
  if (a.length > 0) {
643
- const s = a.filter((v) => /^[a-zA-Z][\w-]*$/.test(v)).slice(0, 2).map((v) => `.${v}`).join("");
643
+ const s = a.filter((p) => /^[a-zA-Z][\w-]*$/.test(p)).slice(0, 2).map((p) => `.${p}`).join("");
644
644
  s && (i += s);
645
645
  }
646
646
  }
@@ -648,11 +648,11 @@ function Ye(e) {
648
648
  const a = o.parentElement;
649
649
  if (a) {
650
650
  const s = Array.from(a.children).filter(
651
- (v) => v.nodeName === o.nodeName
651
+ (p) => p.nodeName === o.nodeName
652
652
  );
653
653
  if (s.length > 1) {
654
- const v = s.indexOf(o) + 1;
655
- i += `:nth-child(${v})`;
654
+ const p = s.indexOf(o) + 1;
655
+ i += `:nth-child(${p})`;
656
656
  }
657
657
  }
658
658
  }
@@ -660,87 +660,87 @@ function Ye(e) {
660
660
  }
661
661
  return t.join(" > ");
662
662
  }
663
- const Ue = "[data-review-layer-root]", Ge = 16;
664
- function Fr(e, t, o = Ge) {
665
- if (typeof window > "u") return { x: e, y: t };
666
- const i = o, a = o, s = window.innerWidth - o, v = window.innerHeight - o;
663
+ const Gr = "[data-review-layer-root]", Hr = 16;
664
+ function Fe(r, t, o = Hr) {
665
+ if (typeof window > "u") return { x: r, y: t };
666
+ const i = o, a = o, s = window.innerWidth - o, p = window.innerHeight - o;
667
667
  return {
668
- x: Math.max(i, Math.min(s, e)),
669
- y: Math.max(a, Math.min(v, t))
668
+ x: Math.max(i, Math.min(s, r)),
669
+ y: Math.max(a, Math.min(p, t))
670
670
  };
671
671
  }
672
- function ce(e) {
672
+ function dr(r) {
673
673
  var t;
674
- if (typeof document > "u" || !(e != null && e.trim())) return null;
674
+ if (typeof document > "u" || !(r != null && r.trim())) return null;
675
675
  try {
676
- const o = document.querySelector(e);
677
- return !o || (t = o.closest) != null && t.call(o, Ue) ? null : o.getBoundingClientRect();
676
+ const o = document.querySelector(r);
677
+ return !o || (t = o.closest) != null && t.call(o, Gr) ? null : o.getBoundingClientRect();
678
678
  } catch {
679
679
  return null;
680
680
  }
681
681
  }
682
- function He(e) {
682
+ function Xr(r) {
683
683
  if (typeof window > "u")
684
684
  return { relativeX: 0, relativeY: 0 };
685
685
  const t = window.innerWidth, o = window.innerHeight;
686
686
  return {
687
- relativeX: t > 0 ? e.left / t : 0,
688
- relativeY: o > 0 ? e.top / o : 0
687
+ relativeX: t > 0 ? r.left / t : 0,
688
+ relativeY: o > 0 ? r.top / o : 0
689
689
  };
690
690
  }
691
- function Nr(e) {
691
+ function Ne(r) {
692
692
  if (typeof window > "u")
693
693
  return {
694
- x: e.x ?? 0,
695
- y: e.y ?? 0
694
+ x: r.x ?? 0,
695
+ y: r.y ?? 0
696
696
  };
697
- const t = e.relativeX ?? e.relative_x ?? null, o = e.relativeY ?? e.relative_y ?? null;
697
+ const t = r.relativeX ?? r.relative_x ?? null, o = r.relativeY ?? r.relative_y ?? null;
698
698
  return t != null && o != null ? {
699
699
  x: t * window.innerWidth,
700
700
  y: o * window.innerHeight
701
701
  } : {
702
- x: e.x ?? 0,
703
- y: e.y ?? 0
702
+ x: r.x ?? 0,
703
+ y: r.y ?? 0
704
704
  };
705
705
  }
706
- function Xe(e) {
707
- const { x: t, y: o } = Nr(e), i = e.width ?? 100, a = e.height ?? 40;
706
+ function Jr(r) {
707
+ const { x: t, y: o } = Ne(r), i = r.width ?? 100, a = r.height ?? 40;
708
708
  return new DOMRect(t, o, i, a);
709
709
  }
710
- function wr(e) {
711
- const t = (e.relativeX ?? e.relative_x) != null && (e.relativeY ?? e.relative_y) != null, o = e.x != null && e.y != null;
710
+ function we(r) {
711
+ const t = (r.relativeX ?? r.relative_x) != null && (r.relativeY ?? r.relative_y) != null, o = r.x != null && r.y != null;
712
712
  if (t || o)
713
- return Nr(e);
714
- if (e.selector) {
715
- const i = ce(e.selector);
713
+ return Ne(r);
714
+ if (r.selector) {
715
+ const i = dr(r.selector);
716
716
  if (i != null)
717
717
  return { x: i.left, y: i.top };
718
718
  }
719
- return Nr(e);
719
+ return Ne(r);
720
720
  }
721
- const k = {
721
+ const C = {
722
722
  PENDING: "pending",
723
723
  DEV_FIXED: "dev_fixed",
724
724
  VALIDATED: "validated"
725
725
  };
726
- function cr(e) {
726
+ function ce(r) {
727
727
  return {
728
728
  "Content-Type": "application/json",
729
- "x-review-key": e
729
+ "x-review-key": r
730
730
  };
731
731
  }
732
- async function Je(e, t, o) {
733
- const i = await fetch(`${e}/reviewers`, {
734
- headers: cr(t),
732
+ async function qr(r, t, o) {
733
+ const i = await fetch(`${r}/reviewers`, {
734
+ headers: ce(t),
735
735
  signal: o == null ? void 0 : o.signal
736
736
  });
737
737
  if (!i.ok) throw new Error("Failed to fetch reviewers");
738
738
  return (await i.json()).data ?? [];
739
739
  }
740
- async function qe(e, t, o) {
741
- const i = await fetch(`${e}/comments`, {
740
+ async function Zr(r, t, o) {
741
+ const i = await fetch(`${r}/comments`, {
742
742
  method: "POST",
743
- headers: cr(t),
743
+ headers: ce(t),
744
744
  body: JSON.stringify(o)
745
745
  });
746
746
  if (!i.ok) {
@@ -749,30 +749,30 @@ async function qe(e, t, o) {
749
749
  }
750
750
  return (await i.json()).data;
751
751
  }
752
- async function Ze(e, t, o, i) {
753
- const a = new URLSearchParams({ url: o }), s = await fetch(`${e}/comments?${a}`, {
754
- headers: cr(t),
752
+ async function Qr(r, t, o, i) {
753
+ const a = new URLSearchParams({ url: o }), s = await fetch(`${r}/comments?${a}`, {
754
+ headers: ce(t),
755
755
  signal: i == null ? void 0 : i.signal
756
756
  });
757
757
  if (!s.ok) throw new Error("Failed to fetch comments");
758
758
  return (await s.json()).data ?? [];
759
759
  }
760
- async function Qe(e, t, o, i) {
761
- const a = await fetch(`${e}/comments/${o}/status`, {
760
+ async function Kr(r, t, o, i) {
761
+ const a = await fetch(`${r}/comments/${o}/status`, {
762
762
  method: "PATCH",
763
- headers: cr(t),
763
+ headers: ce(t),
764
764
  body: JSON.stringify({ status: i })
765
765
  });
766
766
  if (!a.ok) {
767
- const v = await a.json().catch(() => ({}));
768
- throw new Error(v.message || "Failed to update comment status");
767
+ const p = await a.json().catch(() => ({}));
768
+ throw new Error(p.message || "Failed to update comment status");
769
769
  }
770
770
  return (await a.json()).data;
771
771
  }
772
- async function Ke(e, t, o) {
773
- const i = await fetch(`${e}/comments/${o}`, {
772
+ async function eo(r, t, o) {
773
+ const i = await fetch(`${r}/comments/${o}`, {
774
774
  method: "DELETE",
775
- headers: cr(t)
775
+ headers: ce(t)
776
776
  });
777
777
  if (!i.ok) {
778
778
  const a = await i.json().catch(() => ({}));
@@ -784,7 +784,7 @@ const ro = {
784
784
  inset: 0,
785
785
  zIndex: 999997,
786
786
  backgroundColor: "transparent"
787
- }, eo = {
787
+ }, oo = {
788
788
  position: "fixed",
789
789
  minWidth: 320,
790
790
  maxWidth: 400,
@@ -794,7 +794,7 @@ const ro = {
794
794
  borderRadius: "var(--ui-radius_8, 8px)",
795
795
  boxShadow: "0 8px 24px var(--ui-color-black-alpha-20, rgba(0,0,0,0.15))",
796
796
  zIndex: 999998
797
- }, oo = {
797
+ }, to = {
798
798
  width: "100%",
799
799
  minHeight: 80,
800
800
  padding: "var(--ui-positive-Value_200, 8px) var(--ui-positive-Value_300, 12px)",
@@ -805,14 +805,14 @@ const ro = {
805
805
  fontFamily: "var(--ui-font-family-ui, 'Inter', sans-serif)",
806
806
  resize: "vertical",
807
807
  boxSizing: "border-box"
808
- }, to = {
808
+ }, no = {
809
809
  width: "100%",
810
810
  padding: "var(--ui-positive-Value_200, 8px) var(--ui-positive-Value_300, 12px)",
811
811
  marginBottom: "var(--ui-positive-Value_300, 12px)",
812
812
  border: "1px solid var(--ui-color-border-default, #d9d9d9)",
813
813
  borderRadius: "var(--ui-radius_6, 6px)",
814
814
  fontSize: "var(--ui-font-size-sm, 14px)"
815
- }, no = {
815
+ }, nr = {
816
816
  padding: "var(--ui-positive-Value_200, 8px) var(--ui-positive-Value_400, 16px)",
817
817
  backgroundColor: "var(--ui-color-bg-fill-danger-default, #ff4d4f)",
818
818
  color: "var(--ui-color-text-on-color, #fff)",
@@ -823,19 +823,19 @@ const ro = {
823
823
  fontWeight: "var(--ui-font-weight-medium, 500)"
824
824
  };
825
825
  function io({
826
- apiUrl: e,
826
+ apiUrl: r,
827
827
  apiKey: t,
828
828
  reviewers: o,
829
829
  position: i,
830
830
  payload: a,
831
831
  onClose: s,
832
- onSuccess: v
832
+ onSuccess: p
833
833
  }) {
834
834
  var L;
835
- const [g, d] = A(""), [w, x] = A(
835
+ const [g, d] = F(""), [w, x] = F(
836
836
  ((L = o[0]) == null ? void 0 : L.id) ?? 0
837
- ), [y, P] = A(!1), [S, V] = A(null);
838
- F(() => {
837
+ ), [y, P] = F(!1), [S, V] = F(null);
838
+ z(() => {
839
839
  o.length > 0 && !w && x(o[0].id);
840
840
  }, [o, w]);
841
841
  const $ = j(
@@ -843,35 +843,39 @@ function io({
843
843
  if (c.preventDefault(), !(!g.trim() || !w)) {
844
844
  P(!0), V(null);
845
845
  try {
846
- await qe(e, t, {
846
+ await Zr(r, t, {
847
847
  ...a,
848
848
  message: g.trim(),
849
849
  reviewerId: w
850
- }), v(), s();
851
- } catch (p) {
852
- V(p instanceof Error ? p.message : "Failed to send comment");
850
+ }), p(), s();
851
+ } catch (f) {
852
+ V(f instanceof Error ? f.message : "Failed to send comment");
853
853
  } finally {
854
854
  P(!1);
855
855
  }
856
856
  }
857
857
  },
858
- [e, t, a, g, w, v, s]
858
+ [r, t, a, g, w, p, s]
859
859
  );
860
- return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
860
+ return z(() => {
861
+ const c = (f) => {
862
+ f.key === "Escape" && (f.preventDefault(), s());
863
+ };
864
+ return document.addEventListener("keydown", c, !0), () => document.removeEventListener("keydown", c, !0);
865
+ }, [s]), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
861
866
  /* @__PURE__ */ l.jsx(
862
867
  "div",
863
868
  {
864
869
  role: "presentation",
865
870
  style: ro,
866
- onClick: s,
867
- onKeyDown: (c) => c.key === "Escape" && s()
871
+ onClick: s
868
872
  }
869
873
  ),
870
874
  /* @__PURE__ */ l.jsx(
871
875
  "div",
872
876
  {
873
877
  style: {
874
- ...eo,
878
+ ...oo,
875
879
  left: Math.min(i.x, typeof window < "u" ? window.innerWidth - 420 : i.x),
876
880
  top: i.y + 12
877
881
  },
@@ -883,7 +887,7 @@ function io({
883
887
  placeholder: "Escribe tu comentario...",
884
888
  value: g,
885
889
  onChange: (c) => d(c.target.value),
886
- style: oo,
890
+ style: to,
887
891
  required: !0,
888
892
  autoFocus: !0
889
893
  }
@@ -893,7 +897,7 @@ function io({
893
897
  {
894
898
  value: w,
895
899
  onChange: (c) => x(Number(c.target.value)),
896
- style: to,
900
+ style: no,
897
901
  required: !0,
898
902
  disabled: o.length === 0,
899
903
  children: [
@@ -913,56 +917,71 @@ function io({
913
917
  children: S
914
918
  }
915
919
  ),
916
- /* @__PURE__ */ l.jsx("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ l.jsx(
917
- "button",
918
- {
919
- type: "submit",
920
- style: no,
921
- disabled: y || o.length === 0,
922
- children: y ? "Enviando..." : "Enviar comentario"
923
- }
924
- ) })
920
+ /* @__PURE__ */ l.jsxs("div", { style: { display: "flex", justifyContent: "flex-end", gap: "var(--ui-positive-Value_200, 8px)" }, children: [
921
+ /* @__PURE__ */ l.jsx(
922
+ "button",
923
+ {
924
+ type: "button",
925
+ onClick: s,
926
+ style: {
927
+ ...nr,
928
+ backgroundColor: "var(--ui-color-bg-fill-secondary-default, #f0f0f0)",
929
+ color: "var(--ui-color-text-primary, #333)"
930
+ },
931
+ children: "Cancelar"
932
+ }
933
+ ),
934
+ /* @__PURE__ */ l.jsx(
935
+ "button",
936
+ {
937
+ type: "submit",
938
+ style: nr,
939
+ disabled: y || o.length === 0,
940
+ children: y ? "Enviando..." : "Enviar comentario"
941
+ }
942
+ )
943
+ ] })
925
944
  ] })
926
945
  }
927
946
  )
928
947
  ] });
929
948
  }
930
- const ao = Rr(io), uo = "var(--ui-color-red-500, #ef4444)";
931
- function lo(e) {
949
+ const ao = Re(io), uo = "var(--ui-color-red-500, #ef4444)";
950
+ function lo(r) {
932
951
  return {
933
952
  position: "fixed",
934
- outline: `2px solid ${e}`,
953
+ outline: `2px solid ${r}`,
935
954
  outlineOffset: "var(--ui-positive-Value_200, 2px)",
936
955
  pointerEvents: "none",
937
956
  zIndex: 999997,
938
957
  boxSizing: "border-box"
939
958
  };
940
959
  }
941
- const so = Rr(function({
960
+ const so = Re(function({
942
961
  selector: t,
943
962
  active: o,
944
963
  fallbackComment: i,
945
964
  outlineColor: a = uo
946
965
  }) {
947
- const [s, v] = A(null), g = j(() => {
966
+ const [s, p] = F(null), g = j(() => {
948
967
  if (!o) {
949
- v(null);
968
+ p(null);
950
969
  return;
951
970
  }
952
- const d = t != null && t.trim() ? ce(t) : null;
971
+ const d = t != null && t.trim() ? dr(t) : null;
953
972
  if (d) {
954
- v(d);
973
+ p(d);
955
974
  return;
956
975
  }
957
976
  if (i) {
958
- v(Xe(i));
977
+ p(Jr(i));
959
978
  return;
960
979
  }
961
- v(null);
980
+ p(null);
962
981
  }, [t, o, i]);
963
- return F(() => {
982
+ return z(() => {
964
983
  g();
965
- }, [g]), F(() => {
984
+ }, [g]), z(() => {
966
985
  if (o)
967
986
  return window.addEventListener("scroll", g, !0), window.addEventListener("resize", g), () => {
968
987
  window.removeEventListener("scroll", g, !0), window.removeEventListener("resize", g);
@@ -980,7 +999,7 @@ const so = Rr(function({
980
999
  }
981
1000
  }
982
1001
  );
983
- }), _r = 32, ne = 15e5, Or = 250, B = {
1002
+ }), _e = 32, ir = 150, Oe = 250, B = {
984
1003
  cardBg: "var(--ui-color-bg-surface-default, #ffffff)",
985
1004
  cardFooterBg: "var(--ui-color-bg-surface-secondary-default, #f8fafc)",
986
1005
  textDark: "var(--ui-color-text-primary, #333333)",
@@ -988,36 +1007,36 @@ const so = Rr(function({
988
1007
  border: "var(--ui-color-border-default, #cccccc)",
989
1008
  shadow: "var(--ui-shadow-card, 0 4px 16px rgba(0, 0, 0, 0.12))"
990
1009
  }, co = {
991
- [k.PENDING]: "Pendiente",
992
- [k.DEV_FIXED]: "Corregido",
993
- [k.VALIDATED]: "Validado"
1010
+ [C.PENDING]: "Pendiente",
1011
+ [C.DEV_FIXED]: "Corregido",
1012
+ [C.VALIDATED]: "Validado"
994
1013
  }, fo = {
995
- [k.PENDING]: "PENDIENTE",
996
- [k.DEV_FIXED]: "CORREGIDO",
997
- [k.VALIDATED]: "VALIDADO"
998
- }, rr = {
999
- [k.PENDING]: "var(--ui-color-red-500, rgb(240, 69, 69))",
1000
- [k.DEV_FIXED]: "var(--ui-color-yellow-500, rgb(235, 179, 8))",
1001
- [k.VALIDATED]: "var(--ui-color-green-500, rgb(33, 196, 94))"
1002
- }, ie = {
1003
- [k.PENDING]: "var(--ui-color-bg-surface-danger-default, #fef2f2)",
1004
- [k.DEV_FIXED]: "var(--ui-color-bg-surface-warning-default, #fffbeb)",
1005
- [k.VALIDATED]: "var(--ui-color-bg-surface-success-default, #f0fdf4)"
1006
- }, Er = {
1007
- [k.PENDING]: "var(--ui-color-red-500, #ef4444)",
1008
- [k.DEV_FIXED]: "var(--ui-color-orange-500, #f59e0b)",
1009
- [k.VALIDATED]: "var(--ui-color-green-500, #22c55e)"
1014
+ [C.PENDING]: "PENDIENTE",
1015
+ [C.DEV_FIXED]: "CORREGIDO",
1016
+ [C.VALIDATED]: "VALIDADO"
1017
+ }, ee = {
1018
+ [C.PENDING]: "var(--ui-color-red-500, rgb(240, 69, 69))",
1019
+ [C.DEV_FIXED]: "var(--ui-color-yellow-500, rgb(235, 179, 8))",
1020
+ [C.VALIDATED]: "var(--ui-color-green-500, rgb(33, 196, 94))"
1021
+ }, ar = {
1022
+ [C.PENDING]: "var(--ui-color-bg-surface-danger-default, #fef2f2)",
1023
+ [C.DEV_FIXED]: "var(--ui-color-bg-surface-warning-default, #fffbeb)",
1024
+ [C.VALIDATED]: "var(--ui-color-bg-surface-success-default, #f0fdf4)"
1025
+ }, Ee = {
1026
+ [C.PENDING]: "var(--ui-color-red-500, #ef4444)",
1027
+ [C.DEV_FIXED]: "var(--ui-color-orange-500, #f59e0b)",
1028
+ [C.VALIDATED]: "var(--ui-color-green-500, #22c55e)"
1010
1029
  };
1011
- function vo(e) {
1012
- const t = e.trim().split(/\s+/);
1013
- return t.length >= 2 ? (t[0][0] + t[t.length - 1][0]).toUpperCase() : e.slice(0, 2).toUpperCase() || "?";
1030
+ function vo(r) {
1031
+ const t = r.trim().split(/\s+/);
1032
+ return t.length >= 2 ? (t[0][0] + t[t.length - 1][0]).toUpperCase() : r.slice(0, 2).toUpperCase() || "?";
1014
1033
  }
1015
- const po = () => /* @__PURE__ */ l.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", style: { marginRight: 4, flexShrink: 0 }, children: /* @__PURE__ */ l.jsx("path", { d: "M10 3L4.5 8.5L2 6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), go = ({ color: e }) => /* @__PURE__ */ l.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", style: { flexShrink: 0 }, children: [
1034
+ const po = () => /* @__PURE__ */ l.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", style: { marginRight: 4, flexShrink: 0 }, children: /* @__PURE__ */ l.jsx("path", { d: "M10 3L4.5 8.5L2 6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), go = ({ color: r }) => /* @__PURE__ */ l.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", style: { flexShrink: 0 }, children: [
1016
1035
  /* @__PURE__ */ l.jsx(
1017
1036
  "path",
1018
1037
  {
1019
1038
  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",
1020
- stroke: e,
1039
+ stroke: r,
1021
1040
  strokeWidth: "2",
1022
1041
  strokeLinecap: "round",
1023
1042
  strokeLinejoin: "round",
@@ -1033,12 +1052,12 @@ const po = () => /* @__PURE__ */ l.jsx("svg", { width: "12", height: "12", viewB
1033
1052
  strokeLinecap: "round"
1034
1053
  }
1035
1054
  )
1036
- ] }), bo = (e) => ({
1055
+ ] }), bo = (r) => ({
1037
1056
  position: "fixed",
1038
- width: _r,
1039
- height: _r,
1057
+ width: _e,
1058
+ height: _e,
1040
1059
  borderRadius: "50%",
1041
- backgroundColor: rr[e] ?? rr[k.PENDING],
1060
+ backgroundColor: ee[r] ?? ee[C.PENDING],
1042
1061
  color: "var(--ui-color-text-on-color, #fff)",
1043
1062
  display: "flex",
1044
1063
  alignItems: "center",
@@ -1050,9 +1069,9 @@ const po = () => /* @__PURE__ */ l.jsx("svg", { width: "12", height: "12", viewB
1050
1069
  border: "2px solid var(--ui-color-white, #fff)"
1051
1070
  }), ho = {
1052
1071
  position: "fixed",
1053
- width: Or,
1054
- minWidth: Or,
1055
- maxWidth: Or,
1072
+ width: Oe,
1073
+ minWidth: Oe,
1074
+ maxWidth: Oe,
1056
1075
  boxSizing: "border-box",
1057
1076
  backgroundColor: B.cardBg,
1058
1077
  borderRadius: "var(--ui-radius_12, 12px)",
@@ -1068,11 +1087,11 @@ const po = () => /* @__PURE__ */ l.jsx("svg", { width: "12", height: "12", viewB
1068
1087
  gap: "var(--ui-positive-Value_250, 10px)",
1069
1088
  borderBottom: `1px solid ${B.border}`,
1070
1089
  padding: "var(--ui-positive-Value_300, 12px)"
1071
- }, yo = (e) => ({
1090
+ }, yo = (r) => ({
1072
1091
  width: 40,
1073
1092
  height: 40,
1074
1093
  borderRadius: "50%",
1075
- backgroundColor: rr[e] ?? rr[k.PENDING],
1094
+ backgroundColor: ee[r] ?? ee[C.PENDING],
1076
1095
  color: "var(--ui-color-text-on-color, #fff)",
1077
1096
  border: "2px solid var(--ui-color-white, #fff)",
1078
1097
  display: "flex",
@@ -1082,14 +1101,14 @@ const po = () => /* @__PURE__ */ l.jsx("svg", { width: "12", height: "12", viewB
1082
1101
  fontWeight: "var(--ui-font-weight-bold, 700)",
1083
1102
  flexShrink: 0,
1084
1103
  overflow: "hidden"
1085
- }), mo = Rr(function({
1104
+ }), mo = Re(function({
1086
1105
  reviewer: t,
1087
1106
  status: o
1088
1107
  }) {
1089
1108
  const i = t == null ? void 0 : t.image_url, a = (t == null ? void 0 : t.name) ?? "Revisor", s = yo(o);
1090
1109
  if (i && i.trim()) {
1091
- const v = rr[o] ?? rr[k.PENDING];
1092
- return /* @__PURE__ */ l.jsx("div", { style: { ...s, border: `2px solid ${v}` }, children: /* @__PURE__ */ l.jsx(
1110
+ const p = ee[o] ?? ee[C.PENDING];
1111
+ return /* @__PURE__ */ l.jsx("div", { style: { ...s, border: `2px solid ${p}` }, children: /* @__PURE__ */ l.jsx(
1093
1112
  "img",
1094
1113
  {
1095
1114
  src: i,
@@ -1119,8 +1138,8 @@ const po = () => /* @__PURE__ */ l.jsx("svg", { width: "12", height: "12", viewB
1119
1138
  display: "flex",
1120
1139
  alignItems: "center",
1121
1140
  justifyContent: "center"
1122
- }, _o = (e) => {
1123
- const t = Er[e] ?? Er[k.PENDING];
1141
+ }, _o = (r) => {
1142
+ const t = Ee[r] ?? Ee[C.PENDING];
1124
1143
  return {
1125
1144
  display: "inline-flex",
1126
1145
  alignItems: "center",
@@ -1131,7 +1150,7 @@ const po = () => /* @__PURE__ */ l.jsx("svg", { width: "12", height: "12", viewB
1131
1150
  fontFamily: "var(--ui-font-family-ui, 'Inter', sans-serif)",
1132
1151
  textTransform: "uppercase",
1133
1152
  letterSpacing: "0.02em",
1134
- backgroundColor: ie[e] ?? ie[k.PENDING],
1153
+ backgroundColor: ar[r] ?? ar[C.PENDING],
1135
1154
  color: t,
1136
1155
  border: `1px solid ${t}`
1137
1156
  };
@@ -1166,7 +1185,7 @@ const po = () => /* @__PURE__ */ l.jsx("svg", { width: "12", height: "12", viewB
1166
1185
  padding: "var(--ui-positive-Value_300, 12px)",
1167
1186
  borderTop: `1px solid ${B.border}`,
1168
1187
  backgroundColor: B.cardFooterBg
1169
- }, de = {
1188
+ }, fr = {
1170
1189
  minWidth: 100,
1171
1190
  padding: "var(--ui-positive-Value_200, 8px) var(--ui-positive-Value_350, 14px)",
1172
1191
  fontSize: "var(--ui-font-size-xs, 13px)",
@@ -1175,34 +1194,34 @@ const po = () => /* @__PURE__ */ l.jsx("svg", { width: "12", height: "12", viewB
1175
1194
  borderRadius: "var(--ui-radius_8, 8px)",
1176
1195
  cursor: "pointer",
1177
1196
  border: "none"
1178
- }, Co = {
1179
- ...de,
1197
+ }, ko = {
1198
+ ...fr,
1180
1199
  backgroundColor: "transparent",
1181
1200
  color: B.textDark
1182
- }, yr = "review-layer-resolve-btn", ko = [
1201
+ }, ye = "review-layer-resolve-btn", Co = [
1183
1202
  "pending",
1184
1203
  "dev_fixed",
1185
1204
  "validated"
1186
1205
  ], Po = {
1187
- ...de,
1206
+ ...fr,
1188
1207
  backgroundColor: "var(--ui-color-bg-fill-success-default, #22c55e)",
1189
1208
  color: "var(--ui-color-text-on-color, #fff)"
1190
1209
  };
1191
1210
  function jo({
1192
- comment: e,
1211
+ comment: r,
1193
1212
  offset: t = { dx: 0, dy: 0 },
1194
1213
  apiUrl: o,
1195
1214
  apiKey: i,
1196
1215
  onStatusChange: a,
1197
1216
  reviewMode: s = !1
1198
1217
  }) {
1199
- var nr, ir;
1200
- const [v, g] = A(!1), [d, w] = A(!1), [x, y] = A(() => wr(e)), [P, S] = A(!1), [V, $] = A(null), L = mr(null), c = mr(null), p = mr(null), I = j(() => {
1201
- y(wr(e));
1202
- }, [e]);
1203
- F(() => {
1218
+ var ne, ie;
1219
+ const [p, g] = F(!1), [d, w] = F(!1), [x, y] = F(() => we(r)), [P, S] = F(!1), [V, $] = F(null), L = me(null), c = me(null), f = me(null), I = j(() => {
1220
+ y(we(r));
1221
+ }, [r]);
1222
+ z(() => {
1204
1223
  I();
1205
- }, [I]), F(() => {
1224
+ }, [I]), z(() => {
1206
1225
  if (!(typeof window > "u"))
1207
1226
  return window.addEventListener("scroll", I, !0), window.addEventListener("resize", I), () => {
1208
1227
  window.removeEventListener("scroll", I, !0), window.removeEventListener("resize", I);
@@ -1212,16 +1231,16 @@ function jo({
1212
1231
  L.current !== null && (clearTimeout(L.current), L.current = null);
1213
1232
  }, []), H = j(() => {
1214
1233
  s || (N(), g(!0));
1215
- }, [s, N]), er = j(() => {
1234
+ }, [s, N]), re = j(() => {
1216
1235
  d || (L.current = setTimeout(() => {
1217
1236
  L.current = null, g(!1);
1218
- }, ne));
1219
- }, [d]), or = j(() => {
1237
+ }, ir));
1238
+ }, [d]), oe = j(() => {
1220
1239
  N(), g(!0);
1221
- }, [N]), tr = j(() => {
1240
+ }, [N]), te = j(() => {
1222
1241
  d || (L.current = setTimeout(() => {
1223
1242
  L.current = null, g(!1);
1224
- }, ne));
1243
+ }, ir));
1225
1244
  }, [d]), X = j(() => {
1226
1245
  if (s) {
1227
1246
  d && (w(!1), g(!1));
@@ -1229,25 +1248,25 @@ function jo({
1229
1248
  }
1230
1249
  d ? (w(!1), g(!1)) : (w(!0), g(!0));
1231
1250
  }, [s, d]);
1232
- F(() => {
1251
+ z(() => {
1233
1252
  if (!d) return;
1234
1253
  const _ = (q) => {
1235
- var vr, pr;
1236
- const ar = q.target;
1237
- (vr = c.current) != null && vr.contains(ar) || (pr = p.current) != null && pr.contains(ar) || (w(!1), g(!1));
1254
+ var ve, pe;
1255
+ const ae = q.target;
1256
+ (ve = c.current) != null && ve.contains(ae) || (pe = f.current) != null && pe.contains(ae) || (w(!1), g(!1));
1238
1257
  };
1239
1258
  return document.addEventListener("mousedown", _, !0), () => document.removeEventListener("mousedown", _, !0);
1240
- }, [d]), F(() => () => N(), [N]), F(() => {
1259
+ }, [d]), z(() => () => N(), [N]), z(() => {
1241
1260
  s && (w(!1), g(!1));
1242
1261
  }, [s]);
1243
- const m = x.x + t.dx, C = x.y + t.dy, { x: z, y: T } = Fr(m, C, _r / 2), G = v && !d, Y = j(() => {
1262
+ const m = x.x + t.dx, k = x.y + t.dy, { x: A, y: T } = Fe(m, k, _e / 2), G = p && !d, Y = j(() => {
1244
1263
  w(!1), g(!1);
1245
1264
  }, []), J = j(
1246
1265
  async (_) => {
1247
- if (_ !== e.status) {
1266
+ if (_ !== r.status) {
1248
1267
  $(null), S(!0);
1249
1268
  try {
1250
- await Qe(o, i, e.id, _), a();
1269
+ await Kr(o, i, r.id, _), a();
1251
1270
  } catch (q) {
1252
1271
  $(q instanceof Error ? q.message : "Error al actualizar");
1253
1272
  } finally {
@@ -1255,28 +1274,28 @@ function jo({
1255
1274
  }
1256
1275
  }
1257
1276
  },
1258
- [o, i, e.id, e.status, a]
1259
- ), dr = j(async () => {
1277
+ [o, i, r.id, r.status, a]
1278
+ ), de = j(async () => {
1260
1279
  $(null), S(!0);
1261
1280
  try {
1262
- await Ke(o, i, e.id), a(), Y();
1281
+ await eo(o, i, r.id), a(), Y();
1263
1282
  } catch (_) {
1264
1283
  $(_ instanceof Error ? _.message : "Error al eliminar");
1265
1284
  } finally {
1266
1285
  S(!1);
1267
1286
  }
1268
- }, [o, i, e.id, a, Y]), fr = $r(
1269
- () => ({ ...bo(e.status), left: z, top: T, transform: "translate(-50%, -50%)" }),
1270
- [e.status, z, T]
1287
+ }, [o, i, r.id, a, Y]), fe = $e(
1288
+ () => ({ ...bo(r.status), left: A, top: T, transform: "translate(-50%, -50%)" }),
1289
+ [r.status, A, T]
1271
1290
  );
1272
1291
  return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1273
1292
  /* @__PURE__ */ l.jsx(
1274
1293
  so,
1275
1294
  {
1276
- selector: e.selector,
1295
+ selector: r.selector,
1277
1296
  active: G,
1278
- fallbackComment: e,
1279
- outlineColor: Er[e.status] ?? Er[k.PENDING]
1297
+ fallbackComment: r,
1298
+ outlineColor: Ee[r.status] ?? Ee[C.PENDING]
1280
1299
  }
1281
1300
  ),
1282
1301
  /* @__PURE__ */ l.jsx(
@@ -1285,46 +1304,46 @@ function jo({
1285
1304
  ref: c,
1286
1305
  role: "button",
1287
1306
  tabIndex: 0,
1288
- "aria-label": `Comentario: ${e.message.slice(0, 30)}...`,
1289
- "aria-expanded": v,
1290
- style: fr,
1307
+ "aria-label": `Comentario: ${r.message.slice(0, 30)}...`,
1308
+ "aria-expanded": p,
1309
+ style: fe,
1291
1310
  onMouseEnter: H,
1292
- onMouseLeave: er,
1311
+ onMouseLeave: re,
1293
1312
  onClick: X,
1294
1313
  children: /* @__PURE__ */ l.jsx(go, { color: "var(--ui-color-white, #fff)" })
1295
1314
  }
1296
1315
  ),
1297
- v && /* @__PURE__ */ l.jsxs(
1316
+ p && /* @__PURE__ */ l.jsxs(
1298
1317
  "div",
1299
1318
  {
1300
- ref: p,
1319
+ ref: f,
1301
1320
  role: "dialog",
1302
1321
  "aria-label": "Detalle del comentario",
1303
1322
  style: {
1304
1323
  ...ho,
1305
- left: z + _r / 2 + 6,
1324
+ left: A + _e / 2 + 6,
1306
1325
  top: T
1307
1326
  },
1308
- onMouseEnter: or,
1309
- onMouseLeave: tr,
1327
+ onMouseEnter: oe,
1328
+ onMouseLeave: te,
1310
1329
  children: [
1311
1330
  /* @__PURE__ */ l.jsxs("div", { style: xo, children: [
1312
1331
  /* @__PURE__ */ l.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10, flex: 1, minWidth: 0 }, children: [
1313
- /* @__PURE__ */ l.jsx(mo, { reviewer: e.reviewer, status: e.status }),
1332
+ /* @__PURE__ */ l.jsx(mo, { reviewer: r.reviewer, status: r.status }),
1314
1333
  /* @__PURE__ */ l.jsxs("div", { children: [
1315
- /* @__PURE__ */ l.jsx("div", { style: { fontWeight: 700, fontSize: 14, color: B.textDark }, children: ((nr = e.reviewer) == null ? void 0 : nr.name) ?? "Revisor" }),
1316
- /* @__PURE__ */ l.jsx("div", { style: { fontSize: 12, color: B.textMuted }, children: ((ir = e.reviewer) == null ? void 0 : ir.job_title) ?? "Revisor" })
1334
+ /* @__PURE__ */ l.jsx("div", { style: { fontWeight: 700, fontSize: 14, color: B.textDark }, children: ((ne = r.reviewer) == null ? void 0 : ne.name) ?? "Revisor" }),
1335
+ /* @__PURE__ */ l.jsx("div", { style: { fontSize: 12, color: B.textMuted }, children: ((ie = r.reviewer) == null ? void 0 : ie.job_title) ?? "Revisor" })
1317
1336
  ] })
1318
1337
  ] }),
1319
1338
  /* @__PURE__ */ l.jsx(
1320
1339
  "button",
1321
1340
  {
1322
1341
  type: "button",
1323
- "aria-label": e.status === k.VALIDATED ? "Eliminar comentario" : "Cerrar",
1342
+ "aria-label": r.status === C.VALIDATED ? "Eliminar comentario" : "Cerrar",
1324
1343
  style: wo,
1325
1344
  disabled: P,
1326
1345
  onClick: (_) => {
1327
- _.stopPropagation(), e.status === k.VALIDATED ? dr() : Y();
1346
+ _.stopPropagation(), r.status === C.VALIDATED ? de() : Y();
1328
1347
  },
1329
1348
  onMouseDown: (_) => _.stopPropagation(),
1330
1349
  children: "✕"
@@ -1332,24 +1351,24 @@ function jo({
1332
1351
  )
1333
1352
  ] }),
1334
1353
  /* @__PURE__ */ l.jsxs("div", { style: { padding: 12, display: "flex", alignItems: "flex-start", flexDirection: "column", gap: 4 }, children: [
1335
- /* @__PURE__ */ l.jsxs("div", { style: _o(e.status), children: [
1336
- e.status === k.VALIDATED && /* @__PURE__ */ l.jsx(po, {}),
1337
- fo[e.status] ?? e.status
1354
+ /* @__PURE__ */ l.jsxs("div", { style: _o(r.status), children: [
1355
+ r.status === C.VALIDATED && /* @__PURE__ */ l.jsx(po, {}),
1356
+ fo[r.status] ?? r.status
1338
1357
  ] }),
1339
- /* @__PURE__ */ l.jsx("div", { style: { color: B.textDark, lineHeight: 1.5, marginBottom: 12, marginTop: 12 }, children: e.message }),
1358
+ /* @__PURE__ */ l.jsx("div", { style: { color: B.textDark, lineHeight: 1.5, marginBottom: 12, marginTop: 12 }, children: r.message }),
1340
1359
  /* @__PURE__ */ l.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4, width: "100%" }, children: [
1341
- /* @__PURE__ */ l.jsx("label", { style: Eo, htmlFor: `comment-status-${e.id}`, children: "Cambiar estado" }),
1360
+ /* @__PURE__ */ l.jsx("label", { style: Eo, htmlFor: `comment-status-${r.id}`, children: "Cambiar estado" }),
1342
1361
  /* @__PURE__ */ l.jsx(
1343
1362
  "select",
1344
1363
  {
1345
- id: `comment-status-${e.id}`,
1364
+ id: `comment-status-${r.id}`,
1346
1365
  style: Ro,
1347
- value: e.status,
1366
+ value: r.status,
1348
1367
  disabled: P,
1349
1368
  onChange: (_) => J(_.target.value),
1350
1369
  onMouseDown: (_) => _.stopPropagation(),
1351
1370
  "aria-label": "Cambiar estado del comentario",
1352
- children: ko.map((_) => /* @__PURE__ */ l.jsx("option", { value: _, children: co[_] }, _))
1371
+ children: Co.map((_) => /* @__PURE__ */ l.jsx("option", { value: _, children: co[_] }, _))
1353
1372
  }
1354
1373
  ),
1355
1374
  V && /* @__PURE__ */ l.jsx("div", { style: { marginTop: 8, fontSize: 11, color: "var(--ui-color-text-danger-default, rgb(240, 69, 69))" }, children: V })
@@ -1360,7 +1379,7 @@ function jo({
1360
1379
  "button",
1361
1380
  {
1362
1381
  type: "button",
1363
- style: Co,
1382
+ style: ko,
1364
1383
  onMouseDown: (_) => _.stopPropagation(),
1365
1384
  onClick: (_) => {
1366
1385
  _.stopPropagation(), Y();
@@ -1368,15 +1387,15 @@ function jo({
1368
1387
  children: "Cerrar"
1369
1388
  }
1370
1389
  ),
1371
- e.status !== k.VALIDATED && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1390
+ r.status !== C.VALIDATED && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1372
1391
  /* @__PURE__ */ l.jsx("style", { children: `
1373
- .${yr}:hover:not(:disabled) {
1392
+ .${ye}:hover:not(:disabled) {
1374
1393
  background-color: var(--ui-color-bg-fill-success-hover, #16a34a) !important;
1375
1394
  }
1376
- .${yr}:active:not(:disabled) {
1395
+ .${ye}:active:not(:disabled) {
1377
1396
  background-color: var(--ui-color-bg-fill-success-pressed, #15803d) !important;
1378
1397
  }
1379
- .${yr}:disabled {
1398
+ .${ye}:disabled {
1380
1399
  background-color: var(--ui-color-bg-fill-success-default, #22c55e) !important;
1381
1400
  opacity: 0.7;
1382
1401
  cursor: not-allowed;
@@ -1386,7 +1405,7 @@ function jo({
1386
1405
  "button",
1387
1406
  {
1388
1407
  type: "button",
1389
- className: yr,
1408
+ className: ye,
1390
1409
  style: Po,
1391
1410
  disabled: P,
1392
1411
  onMouseDown: (_) => _.stopPropagation(),
@@ -1403,15 +1422,15 @@ function jo({
1403
1422
  )
1404
1423
  ] });
1405
1424
  }
1406
- const Vo = Rr(jo), To = 25, Do = 36;
1407
- function Io(e) {
1425
+ const Vo = Re(jo), To = 25, Do = 36;
1426
+ function Io(r) {
1408
1427
  const t = /* @__PURE__ */ new Map();
1409
- for (let o = 0; o < e.length; o++) {
1410
- const i = e[o], { x: a, y: s } = wr(i), { x: v, y: g } = Fr(a, s);
1428
+ for (let o = 0; o < r.length; o++) {
1429
+ const i = r[o], { x: a, y: s } = we(i), { x: p, y: g } = Fe(a, s);
1411
1430
  let d = 0;
1412
1431
  for (let w = 0; w < o; w++) {
1413
- const { x, y } = wr(e[w]), { x: P, y: S } = Fr(x, y);
1414
- Math.hypot(v - P, g - S) < To && d++;
1432
+ const { x, y } = we(r[w]), { x: P, y: S } = Fe(x, y);
1433
+ Math.hypot(p - P, g - S) < To && d++;
1415
1434
  }
1416
1435
  t.set(i.id, { dx: d * Do, dy: 0 });
1417
1436
  }
@@ -1421,23 +1440,23 @@ function Oo() {
1421
1440
  return typeof window > "u" ? "" : `${window.innerWidth}x${window.innerHeight}`;
1422
1441
  }
1423
1442
  function Lo({
1424
- apiUrl: e,
1443
+ apiUrl: r,
1425
1444
  apiKey: t,
1426
1445
  reviewMode: o,
1427
1446
  setReviewMode: i,
1428
1447
  reviewers: a,
1429
1448
  comments: s,
1430
- loadComments: v,
1449
+ loadComments: p,
1431
1450
  commentsLoadFailed: g = !1
1432
1451
  }) {
1433
- const [d, w] = A(null), x = mr(null), [y, P] = A(null), S = j(() => {
1452
+ const [d, w] = F(null), x = me(null), [y, P] = F(null), S = j(() => {
1434
1453
  d && (d.style.outline = "", d.style.outlineOffset = "", w(null));
1435
1454
  }, [d]), V = j(() => {
1436
1455
  x.current && (x.current.style.outline = "", x.current.style.outlineOffset = "", x.current = null);
1437
1456
  }, []);
1438
- F(() => {
1457
+ z(() => {
1439
1458
  o || (S(), V());
1440
- }, [o, S, V]), F(() => {
1459
+ }, [o, S, V]), z(() => {
1441
1460
  if (typeof document > "u") return;
1442
1461
  const m = document.body.style.cursor;
1443
1462
  return y ? document.body.style.cursor = "default" : o && (document.body.style.cursor = "crosshair"), () => {
@@ -1445,34 +1464,34 @@ function Lo({
1445
1464
  };
1446
1465
  }, [o, y]);
1447
1466
  const $ = j((m) => {
1448
- var z;
1467
+ var A;
1449
1468
  if (!m || typeof document > "u" || m === document.body || m === document.documentElement) return !0;
1450
- const C = (z = m.tagName) == null ? void 0 : z.toUpperCase();
1451
- return C === "BODY" || C === "HTML" ? !0 : m.parentElement !== document.body ? !1 : m.id === "root" || m.getAttribute("data-review-layer-host") != null || document.body.children.length === 1;
1469
+ const k = (A = m.tagName) == null ? void 0 : A.toUpperCase();
1470
+ return k === "BODY" || k === "HTML" ? !0 : m.parentElement !== document.body ? !1 : m.id === "root" || m.getAttribute("data-review-layer-host") != null || document.body.children.length === 1;
1452
1471
  }, []), L = j(
1453
1472
  (m) => {
1454
1473
  if (!o || y) return;
1455
- const C = m.target.nodeType === Node.ELEMENT_NODE ? m.target : m.target.parentElement;
1456
- !C || $(C) || (S(), w(C), C.style.outline = "2px solid var(--ui-color-bg-fill-danger-default, #ff4d4f)", C.style.outlineOffset = "2px");
1474
+ const k = m.target.nodeType === Node.ELEMENT_NODE ? m.target : m.target.parentElement;
1475
+ !k || $(k) || (S(), w(k), k.style.outline = "2px solid var(--ui-color-bg-fill-danger-default, #ff4d4f)", k.style.outlineOffset = "2px");
1457
1476
  },
1458
1477
  [o, y, S, $]
1459
1478
  ), c = j(
1460
1479
  (m) => {
1461
- var z;
1480
+ var A;
1462
1481
  if (y) return;
1463
- const C = m.relatedTarget;
1464
- d && (!C || !d.contains(C)) && !(C && ((z = d.contains) != null && z.call(d, C))) && S();
1482
+ const k = m.relatedTarget;
1483
+ d && (!k || !d.contains(k)) && !(k && ((A = d.contains) != null && A.call(d, k))) && S();
1465
1484
  },
1466
1485
  [d, y, S]
1467
- ), p = j(
1486
+ ), f = j(
1468
1487
  (m) => {
1469
1488
  if (!o || y) return;
1470
- const C = m.target;
1471
- if (!C || $(C) || C.closest("[data-review-layer-root]")) return;
1489
+ const k = m.target;
1490
+ if (!k || $(k) || k.closest("[data-review-layer-root]")) return;
1472
1491
  m.preventDefault(), m.stopPropagation(), S();
1473
- const z = C;
1474
- x.current = z, z.style.outline = "2px solid var(--ui-color-bg-fill-danger-default, #ff4d4f)", z.style.outlineOffset = "2px";
1475
- const T = z.getBoundingClientRect(), G = Ye(C), { relativeX: Y, relativeY: J } = He(T);
1492
+ const A = k;
1493
+ x.current = A, A.style.outline = "2px solid var(--ui-color-bg-fill-danger-default, #ff4d4f)", A.style.outlineOffset = "2px";
1494
+ const T = A.getBoundingClientRect(), G = Ur(k), { relativeX: Y, relativeY: J } = Xr(T);
1476
1495
  P({
1477
1496
  position: { x: T.left + T.width / 2, y: T.bottom },
1478
1497
  payload: {
@@ -1492,33 +1511,33 @@ function Lo({
1492
1511
  },
1493
1512
  [o, y, S, $]
1494
1513
  );
1495
- F(() => {
1514
+ z(() => {
1496
1515
  if (o)
1497
- return document.addEventListener("mouseover", L, !0), document.addEventListener("mouseout", c, !0), document.addEventListener("click", p, !0), () => {
1498
- document.removeEventListener("mouseover", L, !0), document.removeEventListener("mouseout", c, !0), document.removeEventListener("click", p, !0);
1516
+ return document.addEventListener("mouseover", L, !0), document.addEventListener("mouseout", c, !0), document.addEventListener("click", f, !0), () => {
1517
+ document.removeEventListener("mouseover", L, !0), document.removeEventListener("mouseout", c, !0), document.removeEventListener("click", f, !0);
1499
1518
  };
1500
- }, [o, L, c, p]);
1501
- const [I, N] = A(0);
1502
- F(() => {
1519
+ }, [o, L, c, f]);
1520
+ const [I, N] = F(0);
1521
+ z(() => {
1503
1522
  if (typeof window > "u") return;
1504
- const m = () => N((C) => C + 1);
1523
+ const m = () => N((k) => k + 1);
1505
1524
  return window.addEventListener("resize", m), window.addEventListener("scroll", m, !0), () => {
1506
1525
  window.removeEventListener("resize", m), window.removeEventListener("scroll", m, !0);
1507
1526
  };
1508
1527
  }, []);
1509
- const H = $r(
1528
+ const H = $e(
1510
1529
  () => Io(s),
1511
1530
  [s, I]
1512
- ), er = j(() => {
1531
+ ), re = j(() => {
1513
1532
  V(), P(null);
1514
- }, [V]), or = {
1533
+ }, [V]), oe = {
1515
1534
  position: "fixed",
1516
1535
  inset: 0,
1517
1536
  zIndex: 999999,
1518
1537
  pointerEvents: "none",
1519
1538
  cursor: o ? "crosshair" : void 0
1520
- }, tr = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1521
- /* @__PURE__ */ l.jsx("div", { style: or, "aria-hidden": !0, "data-review-layer-root": !0 }),
1539
+ }, te = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1540
+ /* @__PURE__ */ l.jsx("div", { style: oe, "aria-hidden": !0, "data-review-layer-root": !0 }),
1522
1541
  o && /* @__PURE__ */ l.jsxs(
1523
1542
  "div",
1524
1543
  {
@@ -1596,7 +1615,7 @@ function Lo({
1596
1615
  "button",
1597
1616
  {
1598
1617
  type: "button",
1599
- onClick: () => v(),
1618
+ onClick: () => p(),
1600
1619
  style: {
1601
1620
  padding: "var(--ui-positive-Value_100, 4px) var(--ui-positive-Value_250, 10px)",
1602
1621
  fontSize: "var(--ui-font-size-xs, 12px)",
@@ -1618,437 +1637,437 @@ function Lo({
1618
1637
  {
1619
1638
  comment: m,
1620
1639
  offset: H.get(m.id),
1621
- apiUrl: e,
1640
+ apiUrl: r,
1622
1641
  apiKey: t,
1623
- onStatusChange: v,
1642
+ onStatusChange: p,
1624
1643
  reviewMode: o
1625
1644
  }
1626
1645
  ) }, m.id)),
1627
1646
  y && /* @__PURE__ */ l.jsx("div", { "data-review-layer-modal": !0, style: { pointerEvents: "auto" }, children: /* @__PURE__ */ l.jsx(
1628
1647
  ao,
1629
1648
  {
1630
- apiUrl: e,
1649
+ apiUrl: r,
1631
1650
  apiKey: t,
1632
1651
  reviewers: a,
1633
1652
  position: y.position,
1634
1653
  payload: y.payload,
1635
- onClose: er,
1636
- onSuccess: v
1654
+ onClose: re,
1655
+ onSuccess: p
1637
1656
  }
1638
1657
  ) })
1639
1658
  ] }), X = typeof document < "u" ? document.body : null;
1640
- return X ? se(tr, X) : null;
1659
+ return X ? cr(te, X) : null;
1660
+ }
1661
+ const zo = `/**
1662
+ * Tokens de diseño UI para review-layer-react.
1663
+ * Las variables se inyectan en :root al montar ReviewProvider.
1664
+ * Puedes sobrescribirlas en tu app para adaptar el tema.
1665
+ */
1666
+ :root {
1667
+ /* Colores base */
1668
+ --ui-color-white: rgb(255, 255, 255);
1669
+ --ui-color-black: rgb(0, 0, 0);
1670
+ --ui-color-red-50: rgb(255, 242, 242);
1671
+ --ui-color-red-100: rgb(252, 227, 227);
1672
+ --ui-color-red-200: rgb(250, 189, 189);
1673
+ --ui-color-red-300: rgb(245, 148, 148);
1674
+ --ui-color-red-400: rgb(242, 107, 107);
1675
+ --ui-color-red-500: rgb(240, 69, 69);
1676
+ --ui-color-red-600: rgb(212, 61, 61);
1677
+ --ui-color-red-700: rgb(184, 51, 51);
1678
+ --ui-color-red-800: rgb(156, 43, 43);
1679
+ --ui-color-red-900: rgb(128, 36, 36);
1680
+ --ui-color-orange-50: rgb(255, 247, 242);
1681
+ --ui-color-orange-100: rgb(252, 237, 227);
1682
+ --ui-color-orange-200: rgb(252, 209, 176);
1683
+ --ui-color-orange-300: rgb(250, 176, 125);
1684
+ --ui-color-orange-400: rgb(250, 145, 74);
1685
+ --ui-color-orange-500: rgb(250, 115, 23);
1686
+ --ui-color-orange-600: rgb(219, 102, 20);
1687
+ --ui-color-orange-700: rgb(189, 87, 18);
1688
+ --ui-color-orange-800: rgb(158, 74, 13);
1689
+ --ui-color-orange-900: rgb(128, 59, 10);
1690
+ --ui-color-yellow-50: rgb(255, 250, 242);
1691
+ --ui-color-yellow-100: rgb(252, 245, 227);
1692
+ --ui-color-yellow-200: rgb(247, 230, 173);
1693
+ --ui-color-yellow-300: rgb(242, 214, 117);
1694
+ --ui-color-yellow-400: rgb(240, 196, 64);
1695
+ --ui-color-yellow-500: rgb(235, 179, 8);
1696
+ --ui-color-yellow-600: rgb(209, 158, 8);
1697
+ --ui-color-yellow-700: rgb(181, 140, 5);
1698
+ --ui-color-yellow-800: rgb(156, 120, 5);
1699
+ --ui-color-yellow-900: rgb(128, 97, 5);
1700
+ --ui-color-lime-50: rgb(250, 255, 242);
1701
+ --ui-color-lime-100: rgb(242, 252, 227);
1702
+ --ui-color-lime-200: rgb(214, 240, 176);
1703
+ --ui-color-lime-300: rgb(186, 227, 125);
1704
+ --ui-color-lime-400: rgb(161, 217, 74);
1705
+ --ui-color-lime-500: rgb(133, 204, 23);
1706
+ --ui-color-lime-600: rgb(120, 186, 20);
1707
+ --ui-color-lime-700: rgb(107, 166, 18);
1708
+ --ui-color-lime-800: rgb(97, 148, 15);
1709
+ --ui-color-lime-900: rgb(84, 128, 13);
1710
+ --ui-color-green-50: rgb(242, 255, 245);
1711
+ --ui-color-green-100: rgb(227, 252, 237);
1712
+ --ui-color-green-200: rgb(179, 240, 201);
1713
+ --ui-color-green-300: rgb(130, 224, 166);
1714
+ --ui-color-green-400: rgb(84, 212, 130);
1715
+ --ui-color-green-500: rgb(33, 196, 94);
1716
+ --ui-color-green-600: rgb(31, 181, 87);
1717
+ --ui-color-green-700: rgb(28, 163, 79);
1718
+ --ui-color-green-800: rgb(26, 145, 69);
1719
+ --ui-color-green-900: rgb(23, 128, 61);
1720
+ --ui-color-cyan-50: rgb(242, 252, 255);
1721
+ --ui-color-cyan-100: rgb(227, 250, 252);
1722
+ --ui-color-cyan-200: rgb(171, 232, 242);
1723
+ --ui-color-cyan-300: rgb(117, 217, 232);
1724
+ --ui-color-cyan-400: rgb(61, 199, 222);
1725
+ --ui-color-cyan-500: rgb(5, 181, 212);
1726
+ --ui-color-cyan-600: rgb(5, 163, 191);
1727
+ --ui-color-cyan-700: rgb(5, 145, 171);
1728
+ --ui-color-cyan-800: rgb(5, 128, 148);
1729
+ --ui-color-cyan-900: rgb(5, 110, 128);
1730
+ --ui-color-azure-50: rgb(242, 250, 255);
1731
+ --ui-color-azure-100: rgb(227, 245, 252);
1732
+ --ui-color-azure-200: rgb(173, 224, 247);
1733
+ --ui-color-azure-300: rgb(120, 204, 242);
1734
+ --ui-color-azure-400: rgb(69, 186, 237);
1735
+ --ui-color-azure-500: rgb(13, 166, 232);
1736
+ --ui-color-azure-600: rgb(13, 148, 207);
1737
+ --ui-color-azure-700: rgb(10, 128, 181);
1738
+ --ui-color-azure-800: rgb(10, 110, 156);
1739
+ --ui-color-azure-900: rgb(8, 89, 128);
1740
+ --ui-color-blue-50: rgb(242, 245, 255);
1741
+ --ui-color-blue-100: rgb(227, 232, 252);
1742
+ --ui-color-blue-200: rgb(184, 196, 237);
1743
+ --ui-color-blue-300: rgb(140, 161, 222);
1744
+ --ui-color-blue-400: rgb(97, 125, 209);
1745
+ --ui-color-blue-500: rgb(54, 89, 194);
1746
+ --ui-color-blue-600: rgb(51, 82, 176);
1747
+ --ui-color-blue-700: rgb(46, 74, 161);
1748
+ --ui-color-blue-800: rgb(41, 66, 145);
1749
+ --ui-color-blue-900: rgb(36, 59, 128);
1750
+ --ui-color-violet-50: rgb(245, 242, 255);
1751
+ --ui-color-violet-100: rgb(237, 227, 252);
1752
+ --ui-color-violet-200: rgb(209, 186, 250);
1753
+ --ui-color-violet-300: rgb(181, 143, 245);
1754
+ --ui-color-violet-400: rgb(153, 102, 242);
1755
+ --ui-color-violet-500: rgb(125, 59, 237);
1756
+ --ui-color-violet-600: rgb(110, 51, 209);
1757
+ --ui-color-violet-700: rgb(97, 46, 184);
1758
+ --ui-color-violet-800: rgb(82, 38, 156);
1759
+ --ui-color-violet-900: rgb(66, 31, 128);
1760
+ --ui-color-magenta-50: rgb(255, 242, 247);
1761
+ --ui-color-magenta-100: rgb(252, 227, 240);
1762
+ --ui-color-magenta-200: rgb(247, 184, 214);
1763
+ --ui-color-magenta-300: rgb(245, 140, 186);
1764
+ --ui-color-magenta-400: rgb(240, 94, 161);
1765
+ --ui-color-magenta-500: rgb(235, 51, 135);
1766
+ --ui-color-magenta-600: rgb(209, 46, 120);
1767
+ --ui-color-magenta-700: rgb(181, 41, 105);
1768
+ --ui-color-magenta-800: rgb(156, 33, 89);
1769
+ --ui-color-magenta-900: rgb(128, 28, 74);
1770
+ --ui-color-rose-50: rgb(255, 242, 245);
1771
+ --ui-color-rose-100: rgb(252, 227, 232);
1772
+ --ui-color-rose-200: rgb(245, 179, 194);
1773
+ --ui-color-rose-300: rgb(240, 128, 153);
1774
+ --ui-color-rose-400: rgb(232, 79, 112);
1775
+ --ui-color-rose-500: rgb(224, 28, 71);
1776
+ --ui-color-rose-600: rgb(201, 26, 64);
1777
+ --ui-color-rose-700: rgb(176, 23, 56);
1778
+ --ui-color-rose-800: rgb(153, 20, 48);
1779
+ --ui-color-rose-900: rgb(128, 15, 41);
1780
+ --ui-color-light-gray-50: rgb(247, 247, 250);
1781
+ --ui-color-light-gray-100: rgb(240, 242, 242);
1782
+ --ui-color-light-gray-200: rgb(224, 227, 230);
1783
+ --ui-color-light-gray-300: rgb(212, 214, 217);
1784
+ --ui-color-light-gray-400: rgb(199, 199, 204);
1785
+ --ui-color-light-gray-500: rgb(186, 189, 191);
1786
+ --ui-color-light-gray-600: rgb(171, 173, 179);
1787
+ --ui-color-light-gray-700: rgb(158, 163, 166);
1788
+ --ui-color-light-gray-800: rgb(145, 148, 153);
1789
+ --ui-color-light-gray-900: rgb(133, 135, 140);
1790
+ --ui-color-dark-gray-50: rgb(120, 122, 128);
1791
+ --ui-color-dark-gray-100: rgb(107, 110, 115);
1792
+ --ui-color-dark-gray-200: rgb(97, 99, 105);
1793
+ --ui-color-dark-gray-300: rgb(89, 89, 94);
1794
+ --ui-color-dark-gray-400: rgb(77, 79, 84);
1795
+ --ui-color-dark-gray-500: rgb(69, 69, 74);
1796
+ --ui-color-dark-gray-600: rgb(59, 61, 64);
1797
+ --ui-color-dark-gray-700: rgb(48, 51, 54);
1798
+ --ui-color-dark-gray-800: rgb(38, 41, 43);
1799
+ --ui-color-dark-gray-900: rgb(31, 31, 33);
1800
+ --ui-color-black-alpha-transparent: rgba(0, 0, 0, 0);
1801
+ --ui-color-black-alpha-5: rgba(0, 0, 0, 0.05);
1802
+ --ui-color-black-alpha-10: rgba(0, 0, 0, 0.1);
1803
+ --ui-color-black-alpha-20: rgba(0, 0, 0, 0.2);
1804
+ --ui-color-black-alpha-30: rgba(0, 0, 0, 0.3);
1805
+ --ui-color-black-alpha-40: rgba(0, 0, 0, 0.4);
1806
+ --ui-color-black-alpha-50: rgba(0, 0, 0, 0.5);
1807
+ --ui-color-black-alpha-60: rgba(0, 0, 0, 0.6);
1808
+ --ui-color-black-alpha-70: rgba(0, 0, 0, 0.7);
1809
+ --ui-color-black-alpha-80: rgba(0, 0, 0, 0.8);
1810
+ --ui-color-black-alpha-90: rgba(0, 0, 0, 0.9);
1811
+
1812
+ /* Espaciado positivo */
1813
+ --ui-positive-Value_0: 0;
1814
+ --ui-positive-Value_12: 0.66px;
1815
+ --ui-positive-Value_25: 1px;
1816
+ --ui-positive-Value_50: 2px;
1817
+ --ui-positive-Value_100: 4px;
1818
+ --ui-positive-Value_150: 6px;
1819
+ --ui-positive-Value_200: 8px;
1820
+ --ui-positive-Value_250: 10px;
1821
+ --ui-positive-Value_275: 11px;
1822
+ --ui-positive-Value_300: 12px;
1823
+ --ui-positive-Value_325: 13px;
1824
+ --ui-positive-Value_350: 14px;
1825
+ --ui-positive-Value_400: 16px;
1826
+ --ui-positive-Value_450: 18px;
1827
+ --ui-positive-Value_500: 20px;
1828
+ --ui-positive-Value_600: 24px;
1829
+ --ui-positive-Value_700: 28px;
1830
+ --ui-positive-Value_750: 30px;
1831
+ --ui-positive-Value_800: 32px;
1832
+ --ui-positive-Value_900: 36px;
1833
+ --ui-positive-Value_1000: 40px;
1834
+ --ui-positive-Value_1200: 48px;
1835
+ --ui-positive-Value_1400: 56px;
1836
+ --ui-positive-Value_1600: 64px;
1837
+ --ui-positive-Value_2000: 80px;
1838
+ --ui-positive-Value_2400: 96px;
1839
+ --ui-positive-Value_2800: 112px;
1840
+ --ui-positive-Value_3200: 128px;
1841
+ --ui-positive-Value_full: 9999px;
1842
+
1843
+ /* Sombras */
1844
+ --ui-shadow-01-x: 0;
1845
+ --ui-shadow-01-y: 1px;
1846
+ --ui-shadow-01-blur: 2px;
1847
+ --ui-shadow-01-Spread: 0;
1848
+ --ui-shadow-02-x: 0;
1849
+ --ui-shadow-02-y: 2px;
1850
+ --ui-shadow-02-blur: 4px;
1851
+ --ui-shadow-02-Spread: -1px;
1852
+ --ui-shadow-03-x: 0;
1853
+ --ui-shadow-03-y: 4px;
1854
+ --ui-shadow-03-blur: 8px;
1855
+ --ui-shadow-03-Spread: -2px;
1856
+ --ui-shadow-04-x: 0;
1857
+ --ui-shadow-04-y: 8px;
1858
+ --ui-shadow-04-blur: 16px;
1859
+ --ui-shadow-04-Spread: -4px;
1860
+ --ui-shadow-05-x: 0;
1861
+ --ui-shadow-05-y: 16px;
1862
+ --ui-shadow-05-blur: 24px;
1863
+ --ui-shadow-05-Spread: -8px;
1864
+ --ui-shadow-01-Color: var(--ui-color-black-alpha-10);
1865
+ --ui-shadow-02-Color: var(--ui-color-black-alpha-20);
1866
+ --ui-shadow-03-Color: var(--ui-color-black-alpha-20);
1867
+ --ui-shadow-04-Color: var(--ui-color-black-alpha-30);
1868
+ --ui-shadow-05-Color: var(--ui-color-black-alpha-30);
1869
+
1870
+ /* Z-index */
1871
+ --ui-z-hide: -1;
1872
+ --ui-z-base: 0;
1873
+ --ui-z-raised: 100;
1874
+ --ui-z-sticky: 200;
1875
+ --ui-z-shell: 300;
1876
+ --ui-z-dropdown: 400;
1877
+ --ui-z-popover: 500;
1878
+ --ui-z-tooltip: 600;
1879
+ --ui-z-modalBackdrop: 690;
1880
+ --ui-z-modal: 700;
1881
+ --ui-z-toast: 800;
1882
+ --ui-z-overlay: 900;
1883
+ --ui-z-max: 99999;
1884
+
1885
+ /* Tipografía */
1886
+ --ui-font-family-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
1887
+ --ui-font-family-mono: "IBM Plex Mono";
1888
+ --ui-font-weight-regular: 400;
1889
+ --ui-font-weight-medium: 500;
1890
+ --ui-font-weight-semibold: 600;
1891
+ --ui-font-weight-bold: 700;
1892
+
1893
+ /* Radios */
1894
+ --ui-radius_0: 0;
1895
+ --ui-radius_2: 2px;
1896
+ --ui-radius_4: 4px;
1897
+ --ui-radius_6: 6px;
1898
+ --ui-radius_8: 8px;
1899
+ --ui-radius_10: 10px;
1900
+ --ui-radius_12: 12px;
1901
+ --ui-radius_16: 16px;
1902
+ --ui-radius_24: 24px;
1903
+ --ui-radius_full: 9999px;
1904
+
1905
+ /* Semánticos: texto */
1906
+ --ui-color-text-primary: var(--ui-color-dark-gray-700);
1907
+ --ui-color-text-secondary: var(--ui-color-dark-gray-300);
1908
+ --ui-color-text-tertiary: var(--ui-color-dark-gray-100);
1909
+ --ui-color-text-disabled: var(--ui-color-light-gray-500);
1910
+ --ui-color-text-on-color: var(--ui-color-white);
1911
+ --ui-color-text-danger-default: var(--ui-color-red-700);
1912
+ --ui-color-text-danger-hover: var(--ui-color-red-800);
1913
+ --ui-color-text-danger-pressed: var(--ui-color-red-900);
1914
+
1915
+ /* Semánticos: bordes */
1916
+ --ui-color-border-default: var(--ui-color-light-gray-400);
1917
+ --ui-color-border-subtle: var(--ui-color-light-gray-300);
1918
+ --ui-color-border-strong: var(--ui-color-dark-gray-400);
1919
+ --ui-color-border-danger: var(--ui-color-red-500);
1920
+
1921
+ /* Semánticos: superficies y fondos */
1922
+ --ui-color-bg-surface-default: var(--ui-color-white);
1923
+ --ui-color-bg-surface-secondary-default: var(--ui-color-light-gray-50);
1924
+ --ui-color-bg-surface-secondary-hover: var(--ui-color-light-gray-100);
1925
+ --ui-color-bg-fill-danger-default: var(--ui-color-red-500);
1926
+ --ui-color-bg-fill-danger-hover: var(--ui-color-red-600);
1927
+ --ui-color-bg-fill-danger-pressed: var(--ui-color-red-700);
1928
+ --ui-color-bg-fill-success-default: var(--ui-color-green-500);
1929
+ --ui-color-bg-fill-success-hover: var(--ui-color-green-600);
1930
+ --ui-color-bg-fill-success-pressed: var(--ui-color-green-700);
1931
+ --ui-color-bg-surface-success-default: var(--ui-color-green-50);
1932
+ --ui-color-bg-surface-success-hover: var(--ui-color-green-100);
1933
+ --ui-color-bg-surface-success-selected: var(--ui-color-green-200);
1934
+ --ui-color-bg-surface-danger-default: var(--ui-color-red-50);
1935
+ --ui-color-bg-surface-danger-hover: var(--ui-color-red-100);
1936
+ --ui-color-bg-surface-danger-selected: var(--ui-color-red-200);
1937
+ --ui-color-bg-surface-warning-default: var(--ui-color-yellow-50);
1938
+ --ui-color-bg-surface-warning-hover: var(--ui-color-yellow-100);
1939
+ --ui-color-bg-surface-warning-selected: var(--ui-color-yellow-200);
1940
+
1941
+ /* Espaciado (space) */
1942
+ --ui-Positive-space_0: var(--ui-positive-Value_0);
1943
+ --ui-Positive-space_2: var(--ui-positive-Value_100);
1944
+ --ui-Positive-space_4: var(--ui-positive-Value_100);
1945
+ --ui-Positive-space_6: var(--ui-positive-Value_150);
1946
+ --ui-Positive-space_8: var(--ui-positive-Value_200);
1947
+ --ui-Positive-space_10: var(--ui-positive-Value_250);
1948
+ --ui-Positive-space_12: var(--ui-positive-Value_300);
1949
+ --ui-Positive-space_16: var(--ui-positive-Value_400);
1950
+ --ui-Positive-space_20: var(--ui-positive-Value_500);
1951
+ --ui-Positive-space_24: var(--ui-positive-Value_600);
1952
+ --ui-Positive-space_28: var(--ui-positive-Value_700);
1953
+ --ui-Positive-space_32: var(--ui-positive-Value_800);
1954
+ --ui-Positive-space_40: var(--ui-positive-Value_1000);
1955
+ --ui-Positive-space_48: var(--ui-positive-Value_1200);
1956
+ --ui-Positive-space_56: var(--ui-positive-Value_1400);
1957
+ --ui-Positive-space_64: var(--ui-positive-Value_1600);
1958
+ --ui-Positive-space_80: var(--ui-positive-Value_2000);
1959
+ --ui-Positive-space_96: var(--ui-positive-Value_2400);
1960
+
1961
+ /* Tamaños de fuente */
1962
+ --ui-font-size-2xs: var(--ui-positive-Value_250);
1963
+ --ui-font-size-xs: var(--ui-positive-Value_300);
1964
+ --ui-font-size-sm: var(--ui-positive-Value_350);
1965
+ --ui-font-size-md: var(--ui-positive-Value_400);
1966
+ --ui-font-size-lg: var(--ui-positive-Value_450);
1967
+ --ui-font-size-xl: var(--ui-positive-Value_500);
1968
+ --ui-font-size-2xl: var(--ui-positive-Value_600);
1969
+ --ui-font-size-3xl: var(--ui-positive-Value_750);
1970
+ --ui-font-size-4xl: var(--ui-positive-Value_900);
1971
+ --ui-font-size-5xl: var(--ui-positive-Value_1200);
1972
+
1973
+ /* Line height (muestra) */
1974
+ --ui-font-lh-10-normal: 14.5px;
1975
+ --ui-font-lh-12-normal: 17.5px;
1976
+ --ui-font-lh-14-normal: 20.5px;
1977
+ --ui-font-lh-16-normal: 23px;
1978
+ --ui-font-lh-18-normal: 26px;
1979
+ --ui-font-lh-20-snug: 25px;
1980
+
1981
+ /* Sombras compuestas (para uso en box-shadow) */
1982
+ --ui-shadow-card: 0 4px 16px var(--ui-shadow-01-Color);
1983
+ --ui-shadow-popover: 0 var(--ui-shadow-02-y) var(--ui-shadow-02-blur) var(--ui-shadow-02-Color);
1984
+ --ui-shadow-modal: 0 var(--ui-shadow-04-y) var(--ui-shadow-04-blur) var(--ui-shadow-04-Color);
1641
1985
  }
1642
- const zo = `/**\r
1643
- * Tokens de diseño UI para review-layer-react.\r
1644
- * Las variables se inyectan en :root al montar ReviewProvider.\r
1645
- * Puedes sobrescribirlas en tu app para adaptar el tema.\r
1646
- */\r
1647
- :root {\r
1648
- /* Colores base */\r
1649
- --ui-color-white: rgb(255, 255, 255);\r
1650
- --ui-color-black: rgb(0, 0, 0);\r
1651
- --ui-color-red-50: rgb(255, 242, 242);\r
1652
- --ui-color-red-100: rgb(252, 227, 227);\r
1653
- --ui-color-red-200: rgb(250, 189, 189);\r
1654
- --ui-color-red-300: rgb(245, 148, 148);\r
1655
- --ui-color-red-400: rgb(242, 107, 107);\r
1656
- --ui-color-red-500: rgb(240, 69, 69);\r
1657
- --ui-color-red-600: rgb(212, 61, 61);\r
1658
- --ui-color-red-700: rgb(184, 51, 51);\r
1659
- --ui-color-red-800: rgb(156, 43, 43);\r
1660
- --ui-color-red-900: rgb(128, 36, 36);\r
1661
- --ui-color-orange-50: rgb(255, 247, 242);\r
1662
- --ui-color-orange-100: rgb(252, 237, 227);\r
1663
- --ui-color-orange-200: rgb(252, 209, 176);\r
1664
- --ui-color-orange-300: rgb(250, 176, 125);\r
1665
- --ui-color-orange-400: rgb(250, 145, 74);\r
1666
- --ui-color-orange-500: rgb(250, 115, 23);\r
1667
- --ui-color-orange-600: rgb(219, 102, 20);\r
1668
- --ui-color-orange-700: rgb(189, 87, 18);\r
1669
- --ui-color-orange-800: rgb(158, 74, 13);\r
1670
- --ui-color-orange-900: rgb(128, 59, 10);\r
1671
- --ui-color-yellow-50: rgb(255, 250, 242);\r
1672
- --ui-color-yellow-100: rgb(252, 245, 227);\r
1673
- --ui-color-yellow-200: rgb(247, 230, 173);\r
1674
- --ui-color-yellow-300: rgb(242, 214, 117);\r
1675
- --ui-color-yellow-400: rgb(240, 196, 64);\r
1676
- --ui-color-yellow-500: rgb(235, 179, 8);\r
1677
- --ui-color-yellow-600: rgb(209, 158, 8);\r
1678
- --ui-color-yellow-700: rgb(181, 140, 5);\r
1679
- --ui-color-yellow-800: rgb(156, 120, 5);\r
1680
- --ui-color-yellow-900: rgb(128, 97, 5);\r
1681
- --ui-color-lime-50: rgb(250, 255, 242);\r
1682
- --ui-color-lime-100: rgb(242, 252, 227);\r
1683
- --ui-color-lime-200: rgb(214, 240, 176);\r
1684
- --ui-color-lime-300: rgb(186, 227, 125);\r
1685
- --ui-color-lime-400: rgb(161, 217, 74);\r
1686
- --ui-color-lime-500: rgb(133, 204, 23);\r
1687
- --ui-color-lime-600: rgb(120, 186, 20);\r
1688
- --ui-color-lime-700: rgb(107, 166, 18);\r
1689
- --ui-color-lime-800: rgb(97, 148, 15);\r
1690
- --ui-color-lime-900: rgb(84, 128, 13);\r
1691
- --ui-color-green-50: rgb(242, 255, 245);\r
1692
- --ui-color-green-100: rgb(227, 252, 237);\r
1693
- --ui-color-green-200: rgb(179, 240, 201);\r
1694
- --ui-color-green-300: rgb(130, 224, 166);\r
1695
- --ui-color-green-400: rgb(84, 212, 130);\r
1696
- --ui-color-green-500: rgb(33, 196, 94);\r
1697
- --ui-color-green-600: rgb(31, 181, 87);\r
1698
- --ui-color-green-700: rgb(28, 163, 79);\r
1699
- --ui-color-green-800: rgb(26, 145, 69);\r
1700
- --ui-color-green-900: rgb(23, 128, 61);\r
1701
- --ui-color-cyan-50: rgb(242, 252, 255);\r
1702
- --ui-color-cyan-100: rgb(227, 250, 252);\r
1703
- --ui-color-cyan-200: rgb(171, 232, 242);\r
1704
- --ui-color-cyan-300: rgb(117, 217, 232);\r
1705
- --ui-color-cyan-400: rgb(61, 199, 222);\r
1706
- --ui-color-cyan-500: rgb(5, 181, 212);\r
1707
- --ui-color-cyan-600: rgb(5, 163, 191);\r
1708
- --ui-color-cyan-700: rgb(5, 145, 171);\r
1709
- --ui-color-cyan-800: rgb(5, 128, 148);\r
1710
- --ui-color-cyan-900: rgb(5, 110, 128);\r
1711
- --ui-color-azure-50: rgb(242, 250, 255);\r
1712
- --ui-color-azure-100: rgb(227, 245, 252);\r
1713
- --ui-color-azure-200: rgb(173, 224, 247);\r
1714
- --ui-color-azure-300: rgb(120, 204, 242);\r
1715
- --ui-color-azure-400: rgb(69, 186, 237);\r
1716
- --ui-color-azure-500: rgb(13, 166, 232);\r
1717
- --ui-color-azure-600: rgb(13, 148, 207);\r
1718
- --ui-color-azure-700: rgb(10, 128, 181);\r
1719
- --ui-color-azure-800: rgb(10, 110, 156);\r
1720
- --ui-color-azure-900: rgb(8, 89, 128);\r
1721
- --ui-color-blue-50: rgb(242, 245, 255);\r
1722
- --ui-color-blue-100: rgb(227, 232, 252);\r
1723
- --ui-color-blue-200: rgb(184, 196, 237);\r
1724
- --ui-color-blue-300: rgb(140, 161, 222);\r
1725
- --ui-color-blue-400: rgb(97, 125, 209);\r
1726
- --ui-color-blue-500: rgb(54, 89, 194);\r
1727
- --ui-color-blue-600: rgb(51, 82, 176);\r
1728
- --ui-color-blue-700: rgb(46, 74, 161);\r
1729
- --ui-color-blue-800: rgb(41, 66, 145);\r
1730
- --ui-color-blue-900: rgb(36, 59, 128);\r
1731
- --ui-color-violet-50: rgb(245, 242, 255);\r
1732
- --ui-color-violet-100: rgb(237, 227, 252);\r
1733
- --ui-color-violet-200: rgb(209, 186, 250);\r
1734
- --ui-color-violet-300: rgb(181, 143, 245);\r
1735
- --ui-color-violet-400: rgb(153, 102, 242);\r
1736
- --ui-color-violet-500: rgb(125, 59, 237);\r
1737
- --ui-color-violet-600: rgb(110, 51, 209);\r
1738
- --ui-color-violet-700: rgb(97, 46, 184);\r
1739
- --ui-color-violet-800: rgb(82, 38, 156);\r
1740
- --ui-color-violet-900: rgb(66, 31, 128);\r
1741
- --ui-color-magenta-50: rgb(255, 242, 247);\r
1742
- --ui-color-magenta-100: rgb(252, 227, 240);\r
1743
- --ui-color-magenta-200: rgb(247, 184, 214);\r
1744
- --ui-color-magenta-300: rgb(245, 140, 186);\r
1745
- --ui-color-magenta-400: rgb(240, 94, 161);\r
1746
- --ui-color-magenta-500: rgb(235, 51, 135);\r
1747
- --ui-color-magenta-600: rgb(209, 46, 120);\r
1748
- --ui-color-magenta-700: rgb(181, 41, 105);\r
1749
- --ui-color-magenta-800: rgb(156, 33, 89);\r
1750
- --ui-color-magenta-900: rgb(128, 28, 74);\r
1751
- --ui-color-rose-50: rgb(255, 242, 245);\r
1752
- --ui-color-rose-100: rgb(252, 227, 232);\r
1753
- --ui-color-rose-200: rgb(245, 179, 194);\r
1754
- --ui-color-rose-300: rgb(240, 128, 153);\r
1755
- --ui-color-rose-400: rgb(232, 79, 112);\r
1756
- --ui-color-rose-500: rgb(224, 28, 71);\r
1757
- --ui-color-rose-600: rgb(201, 26, 64);\r
1758
- --ui-color-rose-700: rgb(176, 23, 56);\r
1759
- --ui-color-rose-800: rgb(153, 20, 48);\r
1760
- --ui-color-rose-900: rgb(128, 15, 41);\r
1761
- --ui-color-light-gray-50: rgb(247, 247, 250);\r
1762
- --ui-color-light-gray-100: rgb(240, 242, 242);\r
1763
- --ui-color-light-gray-200: rgb(224, 227, 230);\r
1764
- --ui-color-light-gray-300: rgb(212, 214, 217);\r
1765
- --ui-color-light-gray-400: rgb(199, 199, 204);\r
1766
- --ui-color-light-gray-500: rgb(186, 189, 191);\r
1767
- --ui-color-light-gray-600: rgb(171, 173, 179);\r
1768
- --ui-color-light-gray-700: rgb(158, 163, 166);\r
1769
- --ui-color-light-gray-800: rgb(145, 148, 153);\r
1770
- --ui-color-light-gray-900: rgb(133, 135, 140);\r
1771
- --ui-color-dark-gray-50: rgb(120, 122, 128);\r
1772
- --ui-color-dark-gray-100: rgb(107, 110, 115);\r
1773
- --ui-color-dark-gray-200: rgb(97, 99, 105);\r
1774
- --ui-color-dark-gray-300: rgb(89, 89, 94);\r
1775
- --ui-color-dark-gray-400: rgb(77, 79, 84);\r
1776
- --ui-color-dark-gray-500: rgb(69, 69, 74);\r
1777
- --ui-color-dark-gray-600: rgb(59, 61, 64);\r
1778
- --ui-color-dark-gray-700: rgb(48, 51, 54);\r
1779
- --ui-color-dark-gray-800: rgb(38, 41, 43);\r
1780
- --ui-color-dark-gray-900: rgb(31, 31, 33);\r
1781
- --ui-color-black-alpha-transparent: rgba(0, 0, 0, 0);\r
1782
- --ui-color-black-alpha-5: rgba(0, 0, 0, 0.05);\r
1783
- --ui-color-black-alpha-10: rgba(0, 0, 0, 0.1);\r
1784
- --ui-color-black-alpha-20: rgba(0, 0, 0, 0.2);\r
1785
- --ui-color-black-alpha-30: rgba(0, 0, 0, 0.3);\r
1786
- --ui-color-black-alpha-40: rgba(0, 0, 0, 0.4);\r
1787
- --ui-color-black-alpha-50: rgba(0, 0, 0, 0.5);\r
1788
- --ui-color-black-alpha-60: rgba(0, 0, 0, 0.6);\r
1789
- --ui-color-black-alpha-70: rgba(0, 0, 0, 0.7);\r
1790
- --ui-color-black-alpha-80: rgba(0, 0, 0, 0.8);\r
1791
- --ui-color-black-alpha-90: rgba(0, 0, 0, 0.9);\r
1792
- \r
1793
- /* Espaciado positivo */\r
1794
- --ui-positive-Value_0: 0;\r
1795
- --ui-positive-Value_12: 0.66px;\r
1796
- --ui-positive-Value_25: 1px;\r
1797
- --ui-positive-Value_50: 2px;\r
1798
- --ui-positive-Value_100: 4px;\r
1799
- --ui-positive-Value_150: 6px;\r
1800
- --ui-positive-Value_200: 8px;\r
1801
- --ui-positive-Value_250: 10px;\r
1802
- --ui-positive-Value_275: 11px;\r
1803
- --ui-positive-Value_300: 12px;\r
1804
- --ui-positive-Value_325: 13px;\r
1805
- --ui-positive-Value_350: 14px;\r
1806
- --ui-positive-Value_400: 16px;\r
1807
- --ui-positive-Value_450: 18px;\r
1808
- --ui-positive-Value_500: 20px;\r
1809
- --ui-positive-Value_600: 24px;\r
1810
- --ui-positive-Value_700: 28px;\r
1811
- --ui-positive-Value_750: 30px;\r
1812
- --ui-positive-Value_800: 32px;\r
1813
- --ui-positive-Value_900: 36px;\r
1814
- --ui-positive-Value_1000: 40px;\r
1815
- --ui-positive-Value_1200: 48px;\r
1816
- --ui-positive-Value_1400: 56px;\r
1817
- --ui-positive-Value_1600: 64px;\r
1818
- --ui-positive-Value_2000: 80px;\r
1819
- --ui-positive-Value_2400: 96px;\r
1820
- --ui-positive-Value_2800: 112px;\r
1821
- --ui-positive-Value_3200: 128px;\r
1822
- --ui-positive-Value_full: 9999px;\r
1823
- \r
1824
- /* Sombras */\r
1825
- --ui-shadow-01-x: 0;\r
1826
- --ui-shadow-01-y: 1px;\r
1827
- --ui-shadow-01-blur: 2px;\r
1828
- --ui-shadow-01-Spread: 0;\r
1829
- --ui-shadow-02-x: 0;\r
1830
- --ui-shadow-02-y: 2px;\r
1831
- --ui-shadow-02-blur: 4px;\r
1832
- --ui-shadow-02-Spread: -1px;\r
1833
- --ui-shadow-03-x: 0;\r
1834
- --ui-shadow-03-y: 4px;\r
1835
- --ui-shadow-03-blur: 8px;\r
1836
- --ui-shadow-03-Spread: -2px;\r
1837
- --ui-shadow-04-x: 0;\r
1838
- --ui-shadow-04-y: 8px;\r
1839
- --ui-shadow-04-blur: 16px;\r
1840
- --ui-shadow-04-Spread: -4px;\r
1841
- --ui-shadow-05-x: 0;\r
1842
- --ui-shadow-05-y: 16px;\r
1843
- --ui-shadow-05-blur: 24px;\r
1844
- --ui-shadow-05-Spread: -8px;\r
1845
- --ui-shadow-01-Color: var(--ui-color-black-alpha-10);\r
1846
- --ui-shadow-02-Color: var(--ui-color-black-alpha-20);\r
1847
- --ui-shadow-03-Color: var(--ui-color-black-alpha-20);\r
1848
- --ui-shadow-04-Color: var(--ui-color-black-alpha-30);\r
1849
- --ui-shadow-05-Color: var(--ui-color-black-alpha-30);\r
1850
- \r
1851
- /* Z-index */\r
1852
- --ui-z-hide: -1;\r
1853
- --ui-z-base: 0;\r
1854
- --ui-z-raised: 100;\r
1855
- --ui-z-sticky: 200;\r
1856
- --ui-z-shell: 300;\r
1857
- --ui-z-dropdown: 400;\r
1858
- --ui-z-popover: 500;\r
1859
- --ui-z-tooltip: 600;\r
1860
- --ui-z-modalBackdrop: 690;\r
1861
- --ui-z-modal: 700;\r
1862
- --ui-z-toast: 800;\r
1863
- --ui-z-overlay: 900;\r
1864
- --ui-z-max: 99999;\r
1865
- \r
1866
- /* Tipografía */\r
1867
- --ui-font-family-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;\r
1868
- --ui-font-family-mono: "IBM Plex Mono";\r
1869
- --ui-font-weight-regular: 400;\r
1870
- --ui-font-weight-medium: 500;\r
1871
- --ui-font-weight-semibold: 600;\r
1872
- --ui-font-weight-bold: 700;\r
1873
- \r
1874
- /* Radios */\r
1875
- --ui-radius_0: 0;\r
1876
- --ui-radius_2: 2px;\r
1877
- --ui-radius_4: 4px;\r
1878
- --ui-radius_6: 6px;\r
1879
- --ui-radius_8: 8px;\r
1880
- --ui-radius_10: 10px;\r
1881
- --ui-radius_12: 12px;\r
1882
- --ui-radius_16: 16px;\r
1883
- --ui-radius_24: 24px;\r
1884
- --ui-radius_full: 9999px;\r
1885
- \r
1886
- /* Semánticos: texto */\r
1887
- --ui-color-text-primary: var(--ui-color-dark-gray-700);\r
1888
- --ui-color-text-secondary: var(--ui-color-dark-gray-300);\r
1889
- --ui-color-text-tertiary: var(--ui-color-dark-gray-100);\r
1890
- --ui-color-text-disabled: var(--ui-color-light-gray-500);\r
1891
- --ui-color-text-on-color: var(--ui-color-white);\r
1892
- --ui-color-text-danger-default: var(--ui-color-red-700);\r
1893
- --ui-color-text-danger-hover: var(--ui-color-red-800);\r
1894
- --ui-color-text-danger-pressed: var(--ui-color-red-900);\r
1895
- \r
1896
- /* Semánticos: bordes */\r
1897
- --ui-color-border-default: var(--ui-color-light-gray-400);\r
1898
- --ui-color-border-subtle: var(--ui-color-light-gray-300);\r
1899
- --ui-color-border-strong: var(--ui-color-dark-gray-400);\r
1900
- --ui-color-border-danger: var(--ui-color-red-500);\r
1901
- \r
1902
- /* Semánticos: superficies y fondos */\r
1903
- --ui-color-bg-surface-default: var(--ui-color-white);\r
1904
- --ui-color-bg-surface-secondary-default: var(--ui-color-light-gray-50);\r
1905
- --ui-color-bg-surface-secondary-hover: var(--ui-color-light-gray-100);\r
1906
- --ui-color-bg-fill-danger-default: var(--ui-color-red-500);\r
1907
- --ui-color-bg-fill-danger-hover: var(--ui-color-red-600);\r
1908
- --ui-color-bg-fill-danger-pressed: var(--ui-color-red-700);\r
1909
- --ui-color-bg-fill-success-default: var(--ui-color-green-500);\r
1910
- --ui-color-bg-fill-success-hover: var(--ui-color-green-600);\r
1911
- --ui-color-bg-fill-success-pressed: var(--ui-color-green-700);\r
1912
- --ui-color-bg-surface-success-default: var(--ui-color-green-50);\r
1913
- --ui-color-bg-surface-success-hover: var(--ui-color-green-100);\r
1914
- --ui-color-bg-surface-success-selected: var(--ui-color-green-200);\r
1915
- --ui-color-bg-surface-danger-default: var(--ui-color-red-50);\r
1916
- --ui-color-bg-surface-danger-hover: var(--ui-color-red-100);\r
1917
- --ui-color-bg-surface-danger-selected: var(--ui-color-red-200);\r
1918
- --ui-color-bg-surface-warning-default: var(--ui-color-yellow-50);\r
1919
- --ui-color-bg-surface-warning-hover: var(--ui-color-yellow-100);\r
1920
- --ui-color-bg-surface-warning-selected: var(--ui-color-yellow-200);\r
1921
- \r
1922
- /* Espaciado (space) */\r
1923
- --ui-Positive-space_0: var(--ui-positive-Value_0);\r
1924
- --ui-Positive-space_2: var(--ui-positive-Value_100);\r
1925
- --ui-Positive-space_4: var(--ui-positive-Value_100);\r
1926
- --ui-Positive-space_6: var(--ui-positive-Value_150);\r
1927
- --ui-Positive-space_8: var(--ui-positive-Value_200);\r
1928
- --ui-Positive-space_10: var(--ui-positive-Value_250);\r
1929
- --ui-Positive-space_12: var(--ui-positive-Value_300);\r
1930
- --ui-Positive-space_16: var(--ui-positive-Value_400);\r
1931
- --ui-Positive-space_20: var(--ui-positive-Value_500);\r
1932
- --ui-Positive-space_24: var(--ui-positive-Value_600);\r
1933
- --ui-Positive-space_28: var(--ui-positive-Value_700);\r
1934
- --ui-Positive-space_32: var(--ui-positive-Value_800);\r
1935
- --ui-Positive-space_40: var(--ui-positive-Value_1000);\r
1936
- --ui-Positive-space_48: var(--ui-positive-Value_1200);\r
1937
- --ui-Positive-space_56: var(--ui-positive-Value_1400);\r
1938
- --ui-Positive-space_64: var(--ui-positive-Value_1600);\r
1939
- --ui-Positive-space_80: var(--ui-positive-Value_2000);\r
1940
- --ui-Positive-space_96: var(--ui-positive-Value_2400);\r
1941
- \r
1942
- /* Tamaños de fuente */\r
1943
- --ui-font-size-2xs: var(--ui-positive-Value_250);\r
1944
- --ui-font-size-xs: var(--ui-positive-Value_300);\r
1945
- --ui-font-size-sm: var(--ui-positive-Value_350);\r
1946
- --ui-font-size-md: var(--ui-positive-Value_400);\r
1947
- --ui-font-size-lg: var(--ui-positive-Value_450);\r
1948
- --ui-font-size-xl: var(--ui-positive-Value_500);\r
1949
- --ui-font-size-2xl: var(--ui-positive-Value_600);\r
1950
- --ui-font-size-3xl: var(--ui-positive-Value_750);\r
1951
- --ui-font-size-4xl: var(--ui-positive-Value_900);\r
1952
- --ui-font-size-5xl: var(--ui-positive-Value_1200);\r
1953
- \r
1954
- /* Line height (muestra) */\r
1955
- --ui-font-lh-10-normal: 14.5px;\r
1956
- --ui-font-lh-12-normal: 17.5px;\r
1957
- --ui-font-lh-14-normal: 20.5px;\r
1958
- --ui-font-lh-16-normal: 23px;\r
1959
- --ui-font-lh-18-normal: 26px;\r
1960
- --ui-font-lh-20-snug: 25px;\r
1961
- \r
1962
- /* Sombras compuestas (para uso en box-shadow) */\r
1963
- --ui-shadow-card: 0 4px 16px var(--ui-shadow-01-Color);\r
1964
- --ui-shadow-popover: 0 var(--ui-shadow-02-y) var(--ui-shadow-02-blur) var(--ui-shadow-02-Color);\r
1965
- --ui-shadow-modal: 0 var(--ui-shadow-04-y) var(--ui-shadow-04-blur) var(--ui-shadow-04-Color);\r
1966
- }\r
1967
1986
  `;
1968
- function Ao(e, t, o) {
1987
+ function Ao(r, t, o) {
1969
1988
  const i = j(() => {
1970
- e && o((a) => !a);
1971
- }, [e, o]);
1972
- F(() => {
1973
- if (!e) return;
1989
+ r && o((a) => !a);
1990
+ }, [r, o]);
1991
+ z(() => {
1992
+ if (!r) return;
1974
1993
  const a = (s) => {
1975
1994
  (s.key === "r" || s.key === "R" || s.code === "KeyR") && s.shiftKey && !s.ctrlKey && !s.metaKey && (s.preventDefault(), i());
1976
1995
  };
1977
1996
  return window.addEventListener("keydown", a), () => window.removeEventListener("keydown", a);
1978
- }, [e, i]);
1997
+ }, [r, i]);
1979
1998
  }
1980
1999
  const Fo = "review_layer:v1:";
1981
- function No(e, t) {
1982
- if (e == null) return t;
2000
+ function No(r, t) {
2001
+ if (r == null) return t;
1983
2002
  try {
1984
- return JSON.parse(e) ?? t;
2003
+ return JSON.parse(r) ?? t;
1985
2004
  } catch {
1986
2005
  return t;
1987
2006
  }
1988
2007
  }
1989
- function Sr(e, t, o, i) {
1990
- const a = `${Fo}${$o(e)}:${o}`;
2008
+ function Se(r, t, o, i) {
2009
+ const a = `${Fo}${$o(r)}:${o}`;
1991
2010
  return i != null ? `${a}:${i}` : a;
1992
2011
  }
1993
- function $o(e) {
1994
- return e.replace(/\/+$/, "") || "/";
2012
+ function $o(r) {
2013
+ return r.replace(/\/+$/, "") || "/";
1995
2014
  }
1996
- function fe(e) {
2015
+ function vr(r) {
1997
2016
  if (typeof localStorage > "u") return null;
1998
- const t = localStorage.getItem(e);
2017
+ const t = localStorage.getItem(r);
1999
2018
  return No(t, null);
2000
2019
  }
2001
- function ve(e, t) {
2020
+ function pr(r, t) {
2002
2021
  if (!(typeof localStorage > "u"))
2003
2022
  try {
2004
- localStorage.setItem(e, JSON.stringify({ data: t, at: Date.now() }));
2023
+ localStorage.setItem(r, JSON.stringify({ data: t, at: Date.now() }));
2005
2024
  } catch {
2006
2025
  }
2007
2026
  }
2008
- function Lr(e, t, o) {
2009
- const i = fe(Sr(e, t, "comments", o));
2027
+ function Le(r, t, o) {
2028
+ const i = vr(Se(r, t, "comments", o));
2010
2029
  return (i == null ? void 0 : i.data) ?? null;
2011
2030
  }
2012
- function Mo(e, t, o, i) {
2013
- ve(Sr(e, t, "comments", o), i);
2031
+ function Mo(r, t, o, i) {
2032
+ pr(Se(r, t, "comments", o), i);
2014
2033
  }
2015
- function ae(e, t) {
2016
- const o = fe(Sr(e, t, "reviewers"));
2034
+ function ur(r, t) {
2035
+ const o = vr(Se(r, t, "reviewers"));
2017
2036
  return (o == null ? void 0 : o.data) ?? null;
2018
2037
  }
2019
- function Wo(e, t, o) {
2020
- ve(Sr(e, t, "reviewers"), o);
2038
+ function Wo(r, t, o) {
2039
+ pr(Se(r, t, "reviewers"), o);
2021
2040
  }
2022
2041
  const Bo = "https://review-layer-api.onrender.com/api";
2023
- function ue() {
2042
+ function lr() {
2024
2043
  return typeof window > "u" ? "/" : window.location.pathname || "/";
2025
2044
  }
2026
- const pe = $e(null);
2027
- let zr = null;
2045
+ const gr = Mr(null);
2046
+ let ze = null;
2028
2047
  function Go() {
2029
- const e = Me(pe);
2030
- if (!e)
2048
+ const r = Wr(gr);
2049
+ if (!r)
2031
2050
  throw new Error("useReview must be used within ReviewProvider");
2032
- return e;
2051
+ return r;
2033
2052
  }
2034
2053
  function Ho({
2035
- children: e,
2054
+ children: r,
2036
2055
  enabled: t = !0,
2037
2056
  apiUrl: o,
2038
2057
  apiKey: i
2039
2058
  }) {
2040
- const a = (o == null ? void 0 : o.trim()) || Bo, [s, v] = A(!1), [g, d] = A([]), [w, x] = A([]), [y, P] = A(!1);
2041
- Ao(t, s, v);
2059
+ const a = (o == null ? void 0 : o.trim()) || Bo, [s, p] = F(!1), [g, d] = F([]), [w, x] = F([]), [y, P] = F(!1);
2060
+ Ao(t, s, p);
2042
2061
  const S = j(
2043
2062
  async (c) => {
2044
2063
  if (!(!t || !a || !i))
2045
2064
  try {
2046
- const p = await Je(a, i, { signal: c });
2047
- c != null && c.aborted || (d(p), Wo(a, i, p));
2048
- } catch (p) {
2049
- if (p instanceof Error && p.name === "AbortError") return;
2065
+ const f = await qr(a, i, { signal: c });
2066
+ c != null && c.aborted || (d(f), Wo(a, i, f));
2067
+ } catch (f) {
2068
+ if (f instanceof Error && f.name === "AbortError") return;
2050
2069
  if (!(c != null && c.aborted)) {
2051
- const I = ae(a, i);
2070
+ const I = ur(a, i);
2052
2071
  I != null && d(I);
2053
2072
  }
2054
2073
  }
@@ -2057,68 +2076,68 @@ function Ho({
2057
2076
  ), V = j(
2058
2077
  async (c) => {
2059
2078
  if (!t || !a || !i) return;
2060
- const p = ue(), I = Lr(a, i, p);
2079
+ const f = lr(), I = Le(a, i, f);
2061
2080
  I != null && x(I);
2062
2081
  try {
2063
2082
  P(!1);
2064
- const N = await Ze(a, i, p, { signal: c });
2065
- c != null && c.aborted || (x(N), Mo(a, i, p, N));
2083
+ const N = await Qr(a, i, f, { signal: c });
2084
+ c != null && c.aborted || (x(N), Mo(a, i, f, N));
2066
2085
  } catch (N) {
2067
2086
  if (N instanceof Error && N.name === "AbortError") return;
2068
2087
  if (!(c != null && c.aborted)) {
2069
2088
  P(!0);
2070
- const H = Lr(a, i, p);
2089
+ const H = Le(a, i, f);
2071
2090
  H != null && x(H);
2072
2091
  }
2073
2092
  }
2074
2093
  },
2075
2094
  [t, a, i]
2076
2095
  );
2077
- F(() => {
2096
+ z(() => {
2078
2097
  if (!t || !a || !i) return;
2079
- const c = ue(), p = ae(a, i), I = Lr(a, i, c);
2080
- p != null && d(p), I != null && x(I);
2081
- }, [t, a, i]), F(() => {
2098
+ const c = lr(), f = ur(a, i), I = Le(a, i, c);
2099
+ f != null && d(f), I != null && x(I);
2100
+ }, [t, a, i]), z(() => {
2082
2101
  if (typeof document > "u") return;
2083
2102
  const c = "review-layer-ui-variables";
2084
2103
  if (!document.getElementById(c)) {
2085
- const p = document.createElement("style");
2086
- p.id = c, p.textContent = zo, document.head.appendChild(p);
2104
+ const f = document.createElement("style");
2105
+ f.id = c, f.textContent = zo, document.head.appendChild(f);
2087
2106
  }
2088
- }, []), F(() => {
2107
+ }, []), z(() => {
2089
2108
  if (!t || !a || !i) return;
2090
2109
  const c = `${a}:${i}`;
2091
- if (zr !== c)
2092
- return zr = c, S(), V(), () => {
2110
+ if (ze !== c)
2111
+ return ze = c, S(), V(), () => {
2093
2112
  setTimeout(() => {
2094
- zr = null;
2113
+ ze = null;
2095
2114
  }, 0);
2096
2115
  };
2097
- }, [t, a, i, S, V]), F(() => {
2116
+ }, [t, a, i, S, V]), z(() => {
2098
2117
  if (!t) return;
2099
2118
  const c = () => V();
2100
2119
  return window.addEventListener("popstate", c), () => window.removeEventListener("popstate", c);
2101
2120
  }, [t, V]);
2102
- const $ = $r(
2121
+ const $ = $e(
2103
2122
  () => ({
2104
2123
  apiUrl: a,
2105
2124
  apiKey: i,
2106
2125
  reviewMode: s,
2107
- setReviewMode: v,
2126
+ setReviewMode: p,
2108
2127
  reviewers: g,
2109
2128
  comments: w,
2110
2129
  loadComments: V,
2111
2130
  commentsLoadFailed: y
2112
2131
  }),
2113
- [a, i, s, v, g, w, V, y]
2114
- ), L = t && typeof document < "u" ? se(
2132
+ [a, i, s, p, g, w, V, y]
2133
+ ), L = t && typeof document < "u" ? cr(
2115
2134
  /* @__PURE__ */ l.jsx(
2116
2135
  Lo,
2117
2136
  {
2118
2137
  apiUrl: a,
2119
2138
  apiKey: i,
2120
2139
  reviewMode: s,
2121
- setReviewMode: v,
2140
+ setReviewMode: p,
2122
2141
  reviewers: g,
2123
2142
  comments: w,
2124
2143
  loadComments: V,
@@ -2127,8 +2146,8 @@ function Ho({
2127
2146
  ),
2128
2147
  document.body
2129
2148
  ) : null;
2130
- return /* @__PURE__ */ l.jsxs(pe.Provider, { value: $, children: [
2131
- e,
2149
+ return /* @__PURE__ */ l.jsxs(gr.Provider, { value: $, children: [
2150
+ r,
2132
2151
  L
2133
2152
  ] });
2134
2153
  }