@canaia/ui-kit 0.0.12-alpha.36 → 0.0.12-alpha.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canaia-ui-kit.es.js +159 -158
- package/dist/canaia-ui-kit.umd.js +47 -47
- package/package.json +1 -1
package/dist/canaia-ui-kit.es.js
CHANGED
|
@@ -323,14 +323,14 @@ function d4() {
|
|
|
323
323
|
return "";
|
|
324
324
|
}
|
|
325
325
|
var AA = Object.prototype.hasOwnProperty, cA = {}, SA = Q.ReactDebugCurrentFrame;
|
|
326
|
-
function
|
|
326
|
+
function RA(V) {
|
|
327
327
|
if (V) {
|
|
328
328
|
var aA = V._owner, FA = Y(V.type, V._source, aA ? aA.type : null);
|
|
329
329
|
SA.setExtraStackFrame(FA);
|
|
330
330
|
} else
|
|
331
331
|
SA.setExtraStackFrame(null);
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function UA(V, aA, FA, HA, qA) {
|
|
334
334
|
{
|
|
335
335
|
var ce = Function.call.bind(AA);
|
|
336
336
|
for (var Ae in V)
|
|
@@ -345,7 +345,7 @@ function d4() {
|
|
|
345
345
|
} catch (ze) {
|
|
346
346
|
ee = ze;
|
|
347
347
|
}
|
|
348
|
-
ee && !(ee instanceof Error) && (
|
|
348
|
+
ee && !(ee instanceof Error) && (RA(qA), h("%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).", HA || "React class", FA, Ae, typeof ee), RA(null)), ee instanceof Error && !(ee.message in cA) && (cA[ee.message] = !0, RA(qA), h("Failed %s type: %s", FA, ee.message), RA(null));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
@@ -556,7 +556,7 @@ Check the top-level render call using <` + FA + ">.");
|
|
|
556
556
|
return;
|
|
557
557
|
if (FA) {
|
|
558
558
|
var HA = X(aA);
|
|
559
|
-
|
|
559
|
+
UA(FA, V.props, "prop", HA, V);
|
|
560
560
|
} else if (aA.PropTypes !== void 0 && !Gn) {
|
|
561
561
|
Gn = !0;
|
|
562
562
|
var qA = X(aA);
|
|
@@ -1012,14 +1012,14 @@ IB.exports;
|
|
|
1012
1012
|
return b(Z(_));
|
|
1013
1013
|
};
|
|
1014
1014
|
}
|
|
1015
|
-
var SA = Array.prototype,
|
|
1015
|
+
var SA = Array.prototype, RA = Function.prototype, UA = Object.prototype, kA = L["__core-js_shared__"], LA = RA.toString, QA = UA.hasOwnProperty, $ = function() {
|
|
1016
1016
|
var b = /[^.]+$/.exec(kA && kA.keys && kA.keys.IE_PROTO || "");
|
|
1017
1017
|
return b ? "Symbol(src)_1." + b : "";
|
|
1018
|
-
}(), lA =
|
|
1018
|
+
}(), lA = UA.toString, N = LA.call(Object), O = RegExp(
|
|
1019
1019
|
"^" + LA.call(QA).replace(M, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1020
1020
|
), gA = dA ? L.Buffer : void 0, yA = L.Symbol, vA = L.Uint8Array;
|
|
1021
1021
|
gA && gA.allocUnsafe;
|
|
1022
|
-
var Ee = cA(Object.getPrototypeOf, Object), Te = Object.create, Ye =
|
|
1022
|
+
var Ee = cA(Object.getPrototypeOf, Object), Te = Object.create, Ye = UA.propertyIsEnumerable, ae = SA.splice, Ne = yA ? yA.toStringTag : void 0, we = function() {
|
|
1023
1023
|
try {
|
|
1024
1024
|
var b = Ie(Object, "defineProperty");
|
|
1025
1025
|
return b({}, "", {}), b;
|
|
@@ -1329,7 +1329,7 @@ IB.exports;
|
|
|
1329
1329
|
return !!$ && $ in b;
|
|
1330
1330
|
}
|
|
1331
1331
|
function Rr(b) {
|
|
1332
|
-
var Z = b && b.constructor, _ = typeof Z == "function" && Z.prototype ||
|
|
1332
|
+
var Z = b && b.constructor, _ = typeof Z == "function" && Z.prototype || UA;
|
|
1333
1333
|
return b === _;
|
|
1334
1334
|
}
|
|
1335
1335
|
function Aa(b) {
|
|
@@ -14783,13 +14783,13 @@ const RZ = {
|
|
|
14783
14783
|
);
|
|
14784
14784
|
});
|
|
14785
14785
|
R2.displayName = "Avatar";
|
|
14786
|
-
const
|
|
14787
|
-
|
|
14786
|
+
const CA = IA("div");
|
|
14787
|
+
CA.displayName = "Box";
|
|
14788
14788
|
const U2 = wA(
|
|
14789
14789
|
function(e, t) {
|
|
14790
14790
|
const { size: n, centerContent: i = !0, ...r } = e, o = i ? { display: "flex", alignItems: "center", justifyContent: "center" } : {};
|
|
14791
14791
|
return /* @__PURE__ */ E.jsx(
|
|
14792
|
-
|
|
14792
|
+
CA,
|
|
14793
14793
|
{
|
|
14794
14794
|
ref: t,
|
|
14795
14795
|
boxSize: n,
|
|
@@ -16480,8 +16480,8 @@ var H2 = iQ({}, function(A) {
|
|
|
16480
16480
|
var n, i = bA(), r = i[0], o = i[1], a = zA(), s = zA(!1), l = zA(null), c = bA({}), g = c[1], B = e.children, u = e.disabled, I = u === void 0 ? !1 : u, f = e.noFocusGuards, d = f === void 0 ? !1 : f, Q = e.persistentFocus, h = Q === void 0 ? !1 : Q, C = e.crossFrame, U = C === void 0 ? !0 : C, R = e.autoFocus, F = R === void 0 ? !0 : R, w = e.allowTextSelection, m = e.group, x = e.className, D = e.whiteList, y = e.hasPositiveIndices, J = e.shards, X = J === void 0 ? hJ : J, k = e.as, W = k === void 0 ? "div" : k, j = e.lockProps, v = j === void 0 ? {} : j, iA = e.sideCar, rA = e.returnFocus, M = rA === void 0 ? !1 : rA, H = e.focusOptions, K = e.onActivation, p = e.onDeactivation, P = bA({}), S = P[0], L = sA(function(cA) {
|
|
16481
16481
|
var SA = cA.captureFocusRestore;
|
|
16482
16482
|
if (!l.current) {
|
|
16483
|
-
var
|
|
16484
|
-
l.current =
|
|
16483
|
+
var RA, UA = (RA = document) == null ? void 0 : RA.activeElement;
|
|
16484
|
+
l.current = UA, UA !== document.body && (l.current = SA(UA));
|
|
16485
16485
|
}
|
|
16486
16486
|
a.current && K && K(a.current), s.current = !0, g();
|
|
16487
16487
|
}, [K]), nA = sA(function() {
|
|
@@ -16489,12 +16489,12 @@ var H2 = iQ({}, function(A) {
|
|
|
16489
16489
|
}, [p]), tA = sA(function(cA) {
|
|
16490
16490
|
var SA = l.current;
|
|
16491
16491
|
if (SA) {
|
|
16492
|
-
var
|
|
16493
|
-
if (
|
|
16494
|
-
var kA = typeof
|
|
16492
|
+
var RA = (typeof SA == "function" ? SA() : SA) || document.body, UA = typeof M == "function" ? M(RA) : M;
|
|
16493
|
+
if (UA) {
|
|
16494
|
+
var kA = typeof UA == "object" ? UA : void 0;
|
|
16495
16495
|
l.current = null, cA ? Promise.resolve().then(function() {
|
|
16496
|
-
return
|
|
16497
|
-
}) :
|
|
16496
|
+
return RA.focus(kA);
|
|
16497
|
+
}) : RA.focus(kA);
|
|
16498
16498
|
}
|
|
16499
16499
|
}
|
|
16500
16500
|
}, [M]), dA = sA(function(cA) {
|
|
@@ -18402,8 +18402,8 @@ function TY(A) {
|
|
|
18402
18402
|
F[U] = AA, J[U] = AA - v;
|
|
18403
18403
|
}
|
|
18404
18404
|
if (a) {
|
|
18405
|
-
var cA, SA = U === "x" ? an : sn,
|
|
18406
|
-
F[R] = gA, J[R] = gA -
|
|
18405
|
+
var cA, SA = U === "x" ? an : sn, RA = U === "x" ? vn : Nn, UA = F[R], kA = R === "y" ? "height" : "width", LA = UA + d[SA], QA = UA - d[RA], $ = [an, sn].indexOf(Q) !== -1, lA = (cA = y == null ? void 0 : y[R]) != null ? cA : 0, N = $ ? LA : UA - w[kA] - m[kA] - lA + D.altAxis, O = $ ? UA + w[kA] + m[kA] - lA - D.altAxis : QA, gA = u && $ ? eY(N, UA, O) : Ql(u ? N : LA, UA, u ? O : QA);
|
|
18406
|
+
F[R] = gA, J[R] = gA - UA;
|
|
18407
18407
|
}
|
|
18408
18408
|
e.modifiersData[n] = J;
|
|
18409
18409
|
}
|
|
@@ -24332,7 +24332,7 @@ function FS() {
|
|
|
24332
24332
|
var L = sA(function($) {
|
|
24333
24333
|
m ? m($) : console.error($);
|
|
24334
24334
|
}, [m]), nA = sA(function($) {
|
|
24335
|
-
$.preventDefault(), $.persist(),
|
|
24335
|
+
$.preventDefault(), $.persist(), UA($), P.current = [].concat(wX(P.current), [$.target]), lg($) && Promise.resolve(i($)).then(function(lA) {
|
|
24336
24336
|
if (!(kB($) && !w)) {
|
|
24337
24337
|
var N = lA.length, O = N > 0 && BX({
|
|
24338
24338
|
files: lA,
|
|
@@ -24354,7 +24354,7 @@ function FS() {
|
|
|
24354
24354
|
return L(lA);
|
|
24355
24355
|
});
|
|
24356
24356
|
}, [i, l, L, w, D, o, r, a, s, x]), tA = sA(function($) {
|
|
24357
|
-
$.preventDefault(), $.persist(),
|
|
24357
|
+
$.preventDefault(), $.persist(), UA($);
|
|
24358
24358
|
var lA = lg($);
|
|
24359
24359
|
if (lA && $.dataTransfer)
|
|
24360
24360
|
try {
|
|
@@ -24363,7 +24363,7 @@ function FS() {
|
|
|
24363
24363
|
}
|
|
24364
24364
|
return lA && g && g($), !1;
|
|
24365
24365
|
}, [g, w]), dA = sA(function($) {
|
|
24366
|
-
$.preventDefault(), $.persist(),
|
|
24366
|
+
$.preventDefault(), $.persist(), UA($);
|
|
24367
24367
|
var lA = P.current.filter(function(O) {
|
|
24368
24368
|
return k.current && k.current.contains(O);
|
|
24369
24369
|
}), N = lA.indexOf($.target);
|
|
@@ -24400,7 +24400,7 @@ function FS() {
|
|
|
24400
24400
|
type: "setFiles"
|
|
24401
24401
|
}), B && B(N, O, lA), O.length > 0 && I && I(O, lA), N.length > 0 && u && u(N, lA);
|
|
24402
24402
|
}, [rA, a, D, o, r, s, B, u, I, x]), mA = sA(function($) {
|
|
24403
|
-
$.preventDefault(), $.persist(),
|
|
24403
|
+
$.preventDefault(), $.persist(), UA($), P.current = [], lg($) && Promise.resolve(i($)).then(function(lA) {
|
|
24404
24404
|
kB($) && !w || EA(lA, $);
|
|
24405
24405
|
}).catch(function(lA) {
|
|
24406
24406
|
return L(lA);
|
|
@@ -24448,9 +24448,9 @@ function FS() {
|
|
|
24448
24448
|
return n ? null : lA;
|
|
24449
24449
|
}, SA = function(lA) {
|
|
24450
24450
|
return R ? null : cA(lA);
|
|
24451
|
-
}, CA = function(lA) {
|
|
24452
|
-
return F ? null : cA(lA);
|
|
24453
24451
|
}, RA = function(lA) {
|
|
24452
|
+
return F ? null : cA(lA);
|
|
24453
|
+
}, UA = function(lA) {
|
|
24454
24454
|
w && lA.stopPropagation();
|
|
24455
24455
|
}, kA = _A(function() {
|
|
24456
24456
|
return function() {
|
|
@@ -24460,10 +24460,10 @@ function FS() {
|
|
|
24460
24460
|
onFocus: SA(Ei(yA, fA)),
|
|
24461
24461
|
onBlur: SA(Ei(vA, Y)),
|
|
24462
24462
|
onClick: cA(Ei(Ee, AA)),
|
|
24463
|
-
onDragEnter:
|
|
24464
|
-
onDragOver:
|
|
24465
|
-
onDragLeave:
|
|
24466
|
-
onDrop:
|
|
24463
|
+
onDragEnter: RA(Ei(Te, nA)),
|
|
24464
|
+
onDragOver: RA(Ei(Ye, tA)),
|
|
24465
|
+
onDragLeave: RA(Ei(ae, dA)),
|
|
24466
|
+
onDrop: RA(Ei(Ne, mA)),
|
|
24467
24467
|
role: typeof O == "string" && O !== "" ? O : "presentation"
|
|
24468
24468
|
}, N, k), !n && !R ? {
|
|
24469
24469
|
tabIndex: 0
|
|
@@ -24625,10 +24625,10 @@ const UEA = ({
|
|
|
24625
24625
|
accept: C,
|
|
24626
24626
|
maxSize: d
|
|
24627
24627
|
});
|
|
24628
|
-
return /* @__PURE__ */ E.jsxs(
|
|
24628
|
+
return /* @__PURE__ */ E.jsxs(CA, { children: [
|
|
24629
24629
|
/* @__PURE__ */ E.jsx(XA, { mt: 4, alignItems: "flex-start", children: r.trim() && /* @__PURE__ */ E.jsx(DA, { fontSize: "20px", fontWeight: "700", color: s, mb: 2, children: r }) }),
|
|
24630
24630
|
/* @__PURE__ */ E.jsxs(
|
|
24631
|
-
|
|
24631
|
+
CA,
|
|
24632
24632
|
{
|
|
24633
24633
|
...R(),
|
|
24634
24634
|
py: "70px",
|
|
@@ -25149,7 +25149,7 @@ var kX = function(A) {
|
|
|
25149
25149
|
}
|
|
25150
25150
|
var W, j, v, iA = Array.prototype, rA = Function.prototype, M = Object.prototype, H = C["__core-js_shared__"], K = (W = /[^.]+$/.exec(H && H.keys && H.keys.IE_PROTO || "")) ? "Symbol(src)_1." + W : "", p = rA.toString, P = M.hasOwnProperty, S = M.toString, L = RegExp("^" + p.call(P).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), nA = C.Symbol, tA = C.Uint8Array, dA = M.propertyIsEnumerable, EA = iA.splice, mA = (j = Object.keys, v = Object, function(T) {
|
|
25151
25151
|
return j(v(T));
|
|
25152
|
-
}), q = Zn(C, "DataView"), NA = Zn(C, "Map"), fA = Zn(C, "Promise"), Y = Zn(C, "Set"), AA = Zn(C, "WeakMap"), cA = Zn(Object, "create"), SA = Jn(q),
|
|
25152
|
+
}), q = Zn(C, "DataView"), NA = Zn(C, "Map"), fA = Zn(C, "Promise"), Y = Zn(C, "Set"), AA = Zn(C, "WeakMap"), cA = Zn(Object, "create"), SA = Jn(q), RA = Jn(NA), UA = Jn(fA), kA = Jn(Y), LA = Jn(AA), QA = nA ? nA.prototype : void 0, $ = QA ? QA.valueOf : void 0, lA = QA ? QA.toString : void 0;
|
|
25153
25153
|
function N(T) {
|
|
25154
25154
|
var z = -1, eA = T ? T.length : 0;
|
|
25155
25155
|
for (this.clear(); ++z < eA; ) {
|
|
@@ -25477,9 +25477,9 @@ var kX = function(A) {
|
|
|
25477
25477
|
if (oA) switch (oA) {
|
|
25478
25478
|
case SA:
|
|
25479
25479
|
return "[object DataView]";
|
|
25480
|
-
case CA:
|
|
25481
|
-
return o;
|
|
25482
25480
|
case RA:
|
|
25481
|
+
return o;
|
|
25482
|
+
case UA:
|
|
25483
25483
|
return "[object Promise]";
|
|
25484
25484
|
case kA:
|
|
25485
25485
|
return s;
|
|
@@ -25775,12 +25775,12 @@ var kX = function(A) {
|
|
|
25775
25775
|
var Y = function(QA, $, lA) {
|
|
25776
25776
|
var N = [];
|
|
25777
25777
|
return j(N, 1, QA, !0), j(N, 3, $), j(N, 2, lA), N;
|
|
25778
|
-
}(tA, dA, EA), AA = v(JSON.parse(JSON.stringify(J)), Y), cA = v(JSON.parse(JSON.stringify(X)), Y), SA = y(W(AA, H, q, NA, fA), 2),
|
|
25778
|
+
}(tA, dA, EA), AA = v(JSON.parse(JSON.stringify(J)), Y), cA = v(JSON.parse(JSON.stringify(X)), Y), SA = y(W(AA, H, q, NA, fA), 2), RA = SA[0], UA = SA[1];
|
|
25779
25779
|
if (K) {
|
|
25780
25780
|
var kA = y(W(cA, H, q, NA, fA), 2), LA = kA[0];
|
|
25781
|
-
kA[1],
|
|
25781
|
+
kA[1], RA = this.sortTerritories(LA, RA);
|
|
25782
25782
|
}
|
|
25783
|
-
p && (
|
|
25783
|
+
p && (RA = this.filterRegions(p, RA)), this.onlyCountries = this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(P, RA, nA.includes("onlyCountries")), L), mA, nA.includes("onlyCountries")), this.preferredCountries = S.length === 0 ? [] : this.localizeCountries(this.getFilteredCountryList(S, RA, nA.includes("preferredCountries")), mA, nA.includes("preferredCountries")), this.hiddenAreaCodes = this.excludeCountries(this.getFilteredCountryList(P, UA), L);
|
|
25784
25784
|
}, rA = function(M) {
|
|
25785
25785
|
function H(P) {
|
|
25786
25786
|
var S;
|
|
@@ -25791,20 +25791,20 @@ var kX = function(A) {
|
|
|
25791
25791
|
return m()(AA.name.toLowerCase(), Y.toLowerCase());
|
|
25792
25792
|
}, B(B(S)))[0] : null;
|
|
25793
25793
|
}), S.guessSelectedCountry = U()(function(Y, AA, cA, SA) {
|
|
25794
|
-
var
|
|
25794
|
+
var RA;
|
|
25795
25795
|
if (S.props.enableAreaCodes === !1 && (SA.some(function(LA) {
|
|
25796
25796
|
if (m()(Y, LA.dialCode)) return cA.some(function(QA) {
|
|
25797
|
-
if (LA.iso2 === QA.iso2 && QA.mainCode) return
|
|
25797
|
+
if (LA.iso2 === QA.iso2 && QA.mainCode) return RA = QA, !0;
|
|
25798
25798
|
}), !0;
|
|
25799
|
-
}),
|
|
25800
|
-
var
|
|
25799
|
+
}), RA)) return RA;
|
|
25800
|
+
var UA = cA.find(function(LA) {
|
|
25801
25801
|
return LA.iso2 == AA;
|
|
25802
25802
|
});
|
|
25803
|
-
if (Y.trim() === "") return
|
|
25803
|
+
if (Y.trim() === "") return UA;
|
|
25804
25804
|
var kA = cA.reduce(function(LA, QA) {
|
|
25805
25805
|
return m()(Y, QA.dialCode) && (QA.dialCode.length > LA.dialCode.length || QA.dialCode.length === LA.dialCode.length && QA.priority < LA.priority) ? QA : LA;
|
|
25806
25806
|
}, { dialCode: "", priority: 10001 }, B(B(S)));
|
|
25807
|
-
return kA.name ? kA :
|
|
25807
|
+
return kA.name ? kA : UA;
|
|
25808
25808
|
}), S.updateCountry = function(Y) {
|
|
25809
25809
|
var AA, cA = S.state.onlyCountries;
|
|
25810
25810
|
(AA = Y.indexOf(0) >= "0" && Y.indexOf(0) <= "9" ? cA.find(function(SA) {
|
|
@@ -25816,9 +25816,9 @@ var kX = function(A) {
|
|
|
25816
25816
|
if (Y) {
|
|
25817
25817
|
var cA = S.dropdownRef;
|
|
25818
25818
|
if (cA && document.body) {
|
|
25819
|
-
var SA = cA.offsetHeight,
|
|
25820
|
-
if (S.props.enableSearch ? $ <
|
|
25821
|
-
else if (lA >
|
|
25819
|
+
var SA = cA.offsetHeight, RA = cA.getBoundingClientRect().top + document.body.scrollTop, UA = RA + SA, kA = Y, LA = kA.getBoundingClientRect(), QA = kA.offsetHeight, $ = LA.top + document.body.scrollTop, lA = $ + QA, N = $ - RA + cA.scrollTop, O = SA / 2 - QA / 2;
|
|
25820
|
+
if (S.props.enableSearch ? $ < RA + 32 : $ < RA) AA && (N -= O), cA.scrollTop = N;
|
|
25821
|
+
else if (lA > UA) {
|
|
25822
25822
|
AA && (N += O);
|
|
25823
25823
|
var gA = SA - QA;
|
|
25824
25824
|
cA.scrollTop = N - gA;
|
|
@@ -25830,9 +25830,9 @@ var kX = function(A) {
|
|
|
25830
25830
|
Y && document.body && (Y.scrollTop = 0);
|
|
25831
25831
|
}, S.formatNumber = function(Y, AA) {
|
|
25832
25832
|
if (!AA) return Y;
|
|
25833
|
-
var cA, SA = AA.format,
|
|
25834
|
-
if (
|
|
25835
|
-
if (Y && Y.length < 2 || !cA || !QA) return
|
|
25833
|
+
var cA, SA = AA.format, RA = S.props, UA = RA.disableCountryCode, kA = RA.enableAreaCodeStretch, LA = RA.enableLongNumbers, QA = RA.autoFormat;
|
|
25834
|
+
if (UA ? ((cA = SA.split(" ")).shift(), cA = cA.join(" ")) : kA && AA.isAreaCode ? ((cA = SA.split(" "))[1] = cA[1].replace(/\.+/, "".padEnd(AA.areaCodeLength, ".")), cA = cA.join(" ")) : cA = SA, !Y || Y.length === 0) return UA ? "" : S.props.prefix;
|
|
25835
|
+
if (Y && Y.length < 2 || !cA || !QA) return UA ? Y : S.props.prefix + Y;
|
|
25836
25836
|
var $, lA = F()(cA, function(N, O) {
|
|
25837
25837
|
if (N.remainingText.length === 0) return N;
|
|
25838
25838
|
if (O !== ".") return { formattedText: N.formattedText + O, remainingText: N.remainingText };
|
|
@@ -25853,32 +25853,32 @@ var kX = function(A) {
|
|
|
25853
25853
|
return S.state.selectedCountry ? { name: S.state.selectedCountry.name || "", dialCode: S.state.selectedCountry.dialCode || "", countryCode: S.state.selectedCountry.iso2 || "", format: S.state.selectedCountry.format || "" } : {};
|
|
25854
25854
|
}, S.handleFlagDropdownClick = function(Y) {
|
|
25855
25855
|
if (Y.preventDefault(), S.state.showDropdown || !S.props.disabled) {
|
|
25856
|
-
var AA = S.state, cA = AA.preferredCountries, SA = AA.onlyCountries,
|
|
25857
|
-
return kA.dialCode ===
|
|
25856
|
+
var AA = S.state, cA = AA.preferredCountries, SA = AA.onlyCountries, RA = AA.selectedCountry, UA = S.concatPreferredCountries(cA, SA).findIndex(function(kA) {
|
|
25857
|
+
return kA.dialCode === RA.dialCode && kA.iso2 === RA.iso2;
|
|
25858
25858
|
});
|
|
25859
|
-
S.setState({ showDropdown: !S.state.showDropdown, highlightCountryIndex:
|
|
25859
|
+
S.setState({ showDropdown: !S.state.showDropdown, highlightCountryIndex: UA }, function() {
|
|
25860
25860
|
S.state.showDropdown && S.scrollTo(S.getElement(S.state.highlightCountryIndex));
|
|
25861
25861
|
});
|
|
25862
25862
|
}
|
|
25863
25863
|
}, S.handleInput = function(Y) {
|
|
25864
|
-
var AA = Y.target.value, cA = S.props, SA = cA.prefix,
|
|
25864
|
+
var AA = Y.target.value, cA = S.props, SA = cA.prefix, RA = cA.onChange, UA = S.props.disableCountryCode ? "" : SA, kA = S.state.selectedCountry, LA = S.state.freezeSelection;
|
|
25865
25865
|
if (!S.props.countryCodeEditable) {
|
|
25866
25866
|
var QA = SA + (kA.hasAreaCodes ? S.state.onlyCountries.find(function(ae) {
|
|
25867
25867
|
return ae.iso2 === kA.iso2 && ae.mainCode;
|
|
25868
25868
|
}).dialCode : kA.dialCode);
|
|
25869
25869
|
if (AA.slice(0, QA.length) !== QA) return;
|
|
25870
25870
|
}
|
|
25871
|
-
if (AA === SA) return
|
|
25871
|
+
if (AA === SA) return RA && RA("", S.getCountryData(), Y, ""), S.setState({ formattedNumber: "" });
|
|
25872
25872
|
if (!(AA.replace(/\D/g, "").length > 15 && (S.props.enableLongNumbers === !1 || typeof S.props.enableLongNumbers == "number" && AA.replace(/\D/g, "").length > S.props.enableLongNumbers)) && AA !== S.state.formattedNumber) {
|
|
25873
25873
|
Y.preventDefault ? Y.preventDefault() : Y.returnValue = !1;
|
|
25874
25874
|
var $ = S.props.country, lA = S.state, N = lA.onlyCountries, O = lA.selectedCountry, gA = lA.hiddenAreaCodes;
|
|
25875
|
-
if (
|
|
25875
|
+
if (RA && Y.persist(), AA.length > 0) {
|
|
25876
25876
|
var yA = AA.replace(/\D/g, "");
|
|
25877
|
-
(!S.state.freezeSelection || O && O.dialCode.length > yA.length) && (kA = S.props.disableCountryGuess ? O : S.guessSelectedCountry(yA.substring(0, 6), $, N, gA) || O, LA = !1),
|
|
25877
|
+
(!S.state.freezeSelection || O && O.dialCode.length > yA.length) && (kA = S.props.disableCountryGuess ? O : S.guessSelectedCountry(yA.substring(0, 6), $, N, gA) || O, LA = !1), UA = S.formatNumber(yA, kA), kA = kA.dialCode ? kA : O;
|
|
25878
25878
|
}
|
|
25879
|
-
var vA = Y.target.selectionStart, Ee = Y.target.selectionStart, Te = S.state.formattedNumber, Ye =
|
|
25880
|
-
S.setState({ formattedNumber:
|
|
25881
|
-
Ye > 0 && (Ee -= Ye),
|
|
25879
|
+
var vA = Y.target.selectionStart, Ee = Y.target.selectionStart, Te = S.state.formattedNumber, Ye = UA.length - Te.length;
|
|
25880
|
+
S.setState({ formattedNumber: UA, freezeSelection: LA, selectedCountry: kA }, function() {
|
|
25881
|
+
Ye > 0 && (Ee -= Ye), UA.charAt(UA.length - 1) == ")" ? S.numberInputRef.setSelectionRange(UA.length - 1, UA.length - 1) : Ee > 0 && Te.length >= UA.length ? S.numberInputRef.setSelectionRange(Ee, Ee) : vA < Te.length && S.numberInputRef.setSelectionRange(vA, vA), RA && RA(UA.replace(/[^0-9]+/g, ""), S.getCountryData(), Y, UA);
|
|
25882
25882
|
});
|
|
25883
25883
|
}
|
|
25884
25884
|
}, S.handleInputClick = function(Y) {
|
|
@@ -25891,7 +25891,7 @@ var kX = function(A) {
|
|
|
25891
25891
|
return LA == Y;
|
|
25892
25892
|
});
|
|
25893
25893
|
if (SA) {
|
|
25894
|
-
var
|
|
25894
|
+
var RA = S.state.formattedNumber.replace(" ", "").replace("(", "").replace(")", "").replace("-", ""), UA = RA.length > 1 ? RA.replace(cA.dialCode, SA.dialCode) : SA.dialCode, kA = S.formatNumber(UA.replace(/\D/g, ""), SA);
|
|
25895
25895
|
S.setState({ showDropdown: !1, selectedCountry: SA, freezeSelection: !0, formattedNumber: kA, searchValue: "" }, function() {
|
|
25896
25896
|
S.cursorToEnd(), S.props.onChange && S.props.onChange(kA.replace(/[^0-9]+/g, ""), S.getCountryData(), AA, kA);
|
|
25897
25897
|
});
|
|
@@ -25921,8 +25921,8 @@ var kX = function(A) {
|
|
|
25921
25921
|
if (cA.includes("form-control") && (Y.which === AA.ENTER || Y.which === AA.ESC)) return Y.target.blur();
|
|
25922
25922
|
if (S.state.showDropdown && !S.props.disabled && (!cA.includes("search-box") || Y.which === AA.UP || Y.which === AA.DOWN || Y.which === AA.ENTER || Y.which === AA.ESC && Y.target.value === "")) {
|
|
25923
25923
|
Y.preventDefault ? Y.preventDefault() : Y.returnValue = !1;
|
|
25924
|
-
var SA = function(
|
|
25925
|
-
S.setState({ highlightCountryIndex: S.getHighlightCountryIndex(
|
|
25924
|
+
var SA = function(RA) {
|
|
25925
|
+
S.setState({ highlightCountryIndex: S.getHighlightCountryIndex(RA) }, function() {
|
|
25926
25926
|
S.scrollTo(S.getElement(S.state.highlightCountryIndex), !0);
|
|
25927
25927
|
});
|
|
25928
25928
|
};
|
|
@@ -25945,40 +25945,40 @@ var kX = function(A) {
|
|
|
25945
25945
|
}
|
|
25946
25946
|
}
|
|
25947
25947
|
}, S.handleInputKeyDown = function(Y) {
|
|
25948
|
-
var AA = S.props, cA = AA.keys, SA = AA.onEnterKeyPress,
|
|
25949
|
-
Y.which === cA.ENTER && SA && SA(Y),
|
|
25948
|
+
var AA = S.props, cA = AA.keys, SA = AA.onEnterKeyPress, RA = AA.onKeyDown;
|
|
25949
|
+
Y.which === cA.ENTER && SA && SA(Y), RA && RA(Y);
|
|
25950
25950
|
}, S.handleClickOutside = function(Y) {
|
|
25951
25951
|
S.dropdownRef && !S.dropdownContainerRef.contains(Y.target) && S.state.showDropdown && S.setState({ showDropdown: !1 });
|
|
25952
25952
|
}, S.handleSearchChange = function(Y) {
|
|
25953
|
-
var AA = Y.currentTarget.value, cA = S.state, SA = cA.preferredCountries,
|
|
25954
|
-
if (AA === "" &&
|
|
25953
|
+
var AA = Y.currentTarget.value, cA = S.state, SA = cA.preferredCountries, RA = cA.selectedCountry, UA = 0;
|
|
25954
|
+
if (AA === "" && RA) {
|
|
25955
25955
|
var kA = S.state.onlyCountries;
|
|
25956
|
-
|
|
25957
|
-
return LA ==
|
|
25956
|
+
UA = S.concatPreferredCountries(SA, kA).findIndex(function(LA) {
|
|
25957
|
+
return LA == RA;
|
|
25958
25958
|
}), setTimeout(function() {
|
|
25959
|
-
return S.scrollTo(S.getElement(
|
|
25959
|
+
return S.scrollTo(S.getElement(UA));
|
|
25960
25960
|
}, 100);
|
|
25961
25961
|
}
|
|
25962
|
-
S.setState({ searchValue: AA, highlightCountryIndex:
|
|
25962
|
+
S.setState({ searchValue: AA, highlightCountryIndex: UA });
|
|
25963
25963
|
}, S.concatPreferredCountries = function(Y, AA) {
|
|
25964
25964
|
return Y.length > 0 ? r(new Set(Y.concat(AA))) : AA;
|
|
25965
25965
|
}, S.getDropdownCountryName = function(Y) {
|
|
25966
25966
|
return Y.localName || Y.name;
|
|
25967
25967
|
}, S.getSearchFilteredCountries = function() {
|
|
25968
|
-
var Y = S.state, AA = Y.preferredCountries, cA = Y.onlyCountries, SA = Y.searchValue,
|
|
25969
|
-
if (
|
|
25970
|
-
if (/^\d+$/.test(kA)) return
|
|
25968
|
+
var Y = S.state, AA = Y.preferredCountries, cA = Y.onlyCountries, SA = Y.searchValue, RA = S.props.enableSearch, UA = S.concatPreferredCountries(AA, cA), kA = SA.trim().toLowerCase().replace("+", "");
|
|
25969
|
+
if (RA && kA) {
|
|
25970
|
+
if (/^\d+$/.test(kA)) return UA.filter(function($) {
|
|
25971
25971
|
var lA = $.dialCode;
|
|
25972
25972
|
return ["".concat(lA)].some(function(N) {
|
|
25973
25973
|
return N.toLowerCase().includes(kA);
|
|
25974
25974
|
});
|
|
25975
25975
|
});
|
|
25976
|
-
var LA =
|
|
25976
|
+
var LA = UA.filter(function($) {
|
|
25977
25977
|
var lA = $.iso2;
|
|
25978
25978
|
return ["".concat(lA)].some(function(N) {
|
|
25979
25979
|
return N.toLowerCase().includes(kA);
|
|
25980
25980
|
});
|
|
25981
|
-
}), QA =
|
|
25981
|
+
}), QA = UA.filter(function($) {
|
|
25982
25982
|
var lA = $.name, N = $.localName;
|
|
25983
25983
|
return $.iso2, ["".concat(lA), "".concat(N || "")].some(function(O) {
|
|
25984
25984
|
return O.toLowerCase().includes(kA);
|
|
@@ -25986,9 +25986,9 @@ var kX = function(A) {
|
|
|
25986
25986
|
});
|
|
25987
25987
|
return S.scrollToTop(), r(new Set([].concat(LA, QA)));
|
|
25988
25988
|
}
|
|
25989
|
-
return
|
|
25989
|
+
return UA;
|
|
25990
25990
|
}, S.getCountryDropdownList = function() {
|
|
25991
|
-
var Y = S.state, AA = Y.preferredCountries, cA = Y.highlightCountryIndex, SA = Y.showDropdown,
|
|
25991
|
+
var Y = S.state, AA = Y.preferredCountries, cA = Y.highlightCountryIndex, SA = Y.showDropdown, RA = Y.searchValue, UA = S.props, kA = UA.disableDropdown, LA = UA.prefix, QA = S.props, $ = QA.enableSearch, lA = QA.searchNotFound, N = QA.disableSearchIcon, O = QA.searchClass, gA = QA.searchStyle, yA = QA.searchPlaceholder, vA = QA.autocompleteSearch, Ee = S.getSearchFilteredCountries().map(function(ae, Ne) {
|
|
25992
25992
|
var we = cA === Ne, Ut = D()({ country: !0, preferred: ae.iso2 === "us" || ae.iso2 === "gb", active: ae.iso2 === "us", highlight: we }), We = "flag ".concat(ae.iso2);
|
|
25993
25993
|
return d.a.createElement("li", Object.assign({ ref: function(pn) {
|
|
25994
25994
|
return S["flag_no_".concat(Ne)] = pn;
|
|
@@ -25996,11 +25996,11 @@ var kX = function(A) {
|
|
|
25996
25996
|
return S.handleFlagItemClick(ae, pn);
|
|
25997
25997
|
}, role: "option" }, we ? { "aria-selected": !0 } : {}), d.a.createElement("div", { className: We }), d.a.createElement("span", { className: "country-name" }, S.getDropdownCountryName(ae)), d.a.createElement("span", { className: "dial-code" }, ae.format ? S.formatNumber(ae.dialCode, ae) : LA + ae.dialCode));
|
|
25998
25998
|
}), Te = d.a.createElement("li", { key: "dashes", className: "divider" });
|
|
25999
|
-
AA.length > 0 && (!$ || $ && !
|
|
25999
|
+
AA.length > 0 && (!$ || $ && !RA.trim()) && Ee.splice(AA.length, 0, Te);
|
|
26000
26000
|
var Ye = D()(n({ "country-list": !0, hide: !SA }, S.props.dropdownClass, !0));
|
|
26001
26001
|
return d.a.createElement("ul", { ref: function(ae) {
|
|
26002
26002
|
return !$ && ae && ae.focus(), S.dropdownRef = ae;
|
|
26003
|
-
}, className: Ye, style: S.props.dropdownStyle, role: "listbox", tabIndex: "0" }, $ && d.a.createElement("li", { className: D()(n({ search: !0 }, O, O)) }, !N && d.a.createElement("span", { className: D()(n({ "search-emoji": !0 }, "".concat(O, "-emoji"), O)), role: "img", "aria-label": "Magnifying glass" }, "🔎"), d.a.createElement("input", { className: D()(n({ "search-box": !0 }, "".concat(O, "-box"), O)), style: gA, type: "search", placeholder: yA, autoFocus: !0, autoComplete: vA ? "on" : "off", value:
|
|
26003
|
+
}, className: Ye, style: S.props.dropdownStyle, role: "listbox", tabIndex: "0" }, $ && d.a.createElement("li", { className: D()(n({ search: !0 }, O, O)) }, !N && d.a.createElement("span", { className: D()(n({ "search-emoji": !0 }, "".concat(O, "-emoji"), O)), role: "img", "aria-label": "Magnifying glass" }, "🔎"), d.a.createElement("input", { className: D()(n({ "search-box": !0 }, "".concat(O, "-box"), O)), style: gA, type: "search", placeholder: yA, autoFocus: !0, autoComplete: vA ? "on" : "off", value: RA, onChange: S.handleSearchChange })), Ee.length > 0 ? Ee : d.a.createElement("li", { className: "no-entries-message" }, d.a.createElement("span", null, lA)));
|
|
26004
26004
|
};
|
|
26005
26005
|
var L, nA = new iA(P.enableAreaCodes, P.enableTerritories, P.regions, P.onlyCountries, P.preferredCountries, P.excludeCountries, P.preserveOrder, P.masks, P.priority, P.areaCodes, P.localization, P.prefix, P.defaultMask, P.alwaysDefaultMask), tA = nA.onlyCountries, dA = nA.preferredCountries, EA = nA.hiddenAreaCodes, mA = P.value ? P.value.replace(/\D/g, "") : "";
|
|
26006
26006
|
L = P.disableInitialCountryGuess ? 0 : mA.length > 1 ? S.guessSelectedCountry(mA.substring(0, 6), P.country, tA, EA) || 0 : P.country && tA.find(function(Y) {
|
|
@@ -26034,14 +26034,14 @@ var kX = function(A) {
|
|
|
26034
26034
|
NA = this.formatNumber((this.props.disableCountryCode ? "" : Y) + fA, q || void 0), this.setState({ selectedCountry: q, formattedNumber: NA });
|
|
26035
26035
|
}
|
|
26036
26036
|
} }, { key: "render", value: function() {
|
|
26037
|
-
var P, S, L, nA = this, tA = this.state, dA = tA.onlyCountries, EA = tA.selectedCountry, mA = tA.showDropdown, q = tA.formattedNumber, NA = tA.hiddenAreaCodes, fA = this.props, Y = fA.disableDropdown, AA = fA.renderStringAsFlag, cA = fA.isValid, SA = fA.defaultErrorMessage,
|
|
26037
|
+
var P, S, L, nA = this, tA = this.state, dA = tA.onlyCountries, EA = tA.selectedCountry, mA = tA.showDropdown, q = tA.formattedNumber, NA = tA.hiddenAreaCodes, fA = this.props, Y = fA.disableDropdown, AA = fA.renderStringAsFlag, cA = fA.isValid, SA = fA.defaultErrorMessage, RA = fA.specialLabel;
|
|
26038
26038
|
if (typeof cA == "boolean") S = cA;
|
|
26039
26039
|
else {
|
|
26040
|
-
var
|
|
26041
|
-
typeof
|
|
26040
|
+
var UA = cA(q.replace(/\D/g, ""), EA, dA, NA);
|
|
26041
|
+
typeof UA == "boolean" ? (S = UA) === !1 && (L = SA) : (S = !1, L = UA);
|
|
26042
26042
|
}
|
|
26043
26043
|
var kA = D()((n(P = {}, this.props.containerClass, !0), n(P, "react-tel-input", !0), P)), LA = D()({ arrow: !0, up: mA }), QA = D()(n({ "form-control": !0, "invalid-number": !S, open: mA }, this.props.inputClass, !0)), $ = D()({ "selected-flag": !0, open: mA }), lA = D()(n({ "flag-dropdown": !0, "invalid-number": !S, open: mA }, this.props.buttonClass, !0)), N = "flag ".concat(EA && EA.iso2);
|
|
26044
|
-
return d.a.createElement("div", { className: "".concat(kA, " ").concat(this.props.className), style: this.props.style || this.props.containerStyle, onKeyDown: this.handleKeydown },
|
|
26044
|
+
return d.a.createElement("div", { className: "".concat(kA, " ").concat(this.props.className), style: this.props.style || this.props.containerStyle, onKeyDown: this.handleKeydown }, RA && d.a.createElement("div", { className: "special-label" }, RA), L && d.a.createElement("div", { className: "invalid-number-message" }, L), d.a.createElement("input", Object.assign({ className: QA, style: this.props.inputStyle, onChange: this.handleInput, onClick: this.handleInputClick, onDoubleClick: this.handleDoubleClick, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onCopy: this.handleInputCopy, value: q, onKeyDown: this.handleInputKeyDown, placeholder: this.props.placeholder, disabled: this.props.disabled, type: "tel" }, this.props.inputProps, { ref: function(O) {
|
|
26045
26045
|
nA.numberInputRef = O, typeof nA.props.inputProps.ref == "function" ? nA.props.inputProps.ref(O) : typeof nA.props.inputProps.ref == "object" && (nA.props.inputProps.ref.current = O);
|
|
26046
26046
|
} })), d.a.createElement("div", { className: lA, style: this.props.buttonStyle, ref: function(O) {
|
|
26047
26047
|
return nA.dropdownContainerRef = O;
|
|
@@ -26099,7 +26099,7 @@ const vX = /* @__PURE__ */ Bs(kX), wEA = ({
|
|
|
26099
26099
|
const [B, u] = bA(!0), I = qe[s], f = I[200], d = I[300], Q = (h, C) => {
|
|
26100
26100
|
i && i(h, C);
|
|
26101
26101
|
};
|
|
26102
|
-
return /* @__PURE__ */ E.jsx(
|
|
26102
|
+
return /* @__PURE__ */ E.jsx(CA, { children: /* @__PURE__ */ E.jsxs(Mc, { isRequired: l, children: [
|
|
26103
26103
|
/* @__PURE__ */ E.jsxs(Qs, { fontSize: "16px", children: [
|
|
26104
26104
|
r && /* @__PURE__ */ E.jsx(
|
|
26105
26105
|
Et,
|
|
@@ -26142,7 +26142,7 @@ const vX = /* @__PURE__ */ Bs(kX), wEA = ({
|
|
|
26142
26142
|
r && B && e && /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
26143
26143
|
/* @__PURE__ */ E.jsx(DA, { fontSize: "14px", color: "gray.500", mb: "10px", textAlign: "start", children: e }),
|
|
26144
26144
|
/* @__PURE__ */ E.jsx(XA, { wrap: "wrap", mb: 2, gap: 4, children: t.map((h, C) => /* @__PURE__ */ E.jsx(
|
|
26145
|
-
|
|
26145
|
+
CA,
|
|
26146
26146
|
{
|
|
26147
26147
|
flexBasis: { base: "100%", sm: "49%" },
|
|
26148
26148
|
children: /* @__PURE__ */ E.jsx(
|
|
@@ -26269,7 +26269,7 @@ const vX = /* @__PURE__ */ Bs(kX), wEA = ({
|
|
|
26269
26269
|
};
|
|
26270
26270
|
}, DEA = ({ message: A, userImage: e, timestamp: t, isError: n = !1, userName: i = "User", type: r = "text", src: o = "", alt: a = "" }) => /* @__PURE__ */ E.jsxs(ln, { justify: "flex-end", spacing: 2, w: "100%", py: 2, alignItems: "start", children: [
|
|
26271
26271
|
/* @__PURE__ */ E.jsxs(
|
|
26272
|
-
|
|
26272
|
+
CA,
|
|
26273
26273
|
{
|
|
26274
26274
|
bg: r !== "text" ? "transparent" : "white.100",
|
|
26275
26275
|
color: "black",
|
|
@@ -26283,7 +26283,7 @@ const vX = /* @__PURE__ */ Bs(kX), wEA = ({
|
|
|
26283
26283
|
wordBreak: "break-word",
|
|
26284
26284
|
alignItems: "flex-start",
|
|
26285
26285
|
children: [
|
|
26286
|
-
r === "image" ? /* @__PURE__ */ E.jsx(
|
|
26286
|
+
r === "image" ? /* @__PURE__ */ E.jsx(CA, { maxWidth: "24.3125rem", height: "13.4375rem", children: /* @__PURE__ */ E.jsx("img", { src: o, alt: a, style: { width: "100%", objectFit: "contain", height: "100%" } }) }) : /* @__PURE__ */ E.jsx(DA, { textAlign: "right", fontSize: "md", whiteSpace: "normal", children: A }),
|
|
26287
26287
|
t && /* @__PURE__ */ E.jsx(DA, { fontSize: "xs", color: "gray.500", textAlign: "right", mt: 1, children: t })
|
|
26288
26288
|
]
|
|
26289
26289
|
}
|
|
@@ -30363,7 +30363,7 @@ function LK(A) {
|
|
|
30363
30363
|
transforms: [],
|
|
30364
30364
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
30365
30365
|
enter: {
|
|
30366
|
-
autolink: r(
|
|
30366
|
+
autolink: r(RA),
|
|
30367
30367
|
autolinkProtocol: x,
|
|
30368
30368
|
autolinkEmail: x,
|
|
30369
30369
|
atxHeading: r(Y),
|
|
@@ -30391,11 +30391,11 @@ function LK(A) {
|
|
|
30391
30391
|
htmlTextData: x,
|
|
30392
30392
|
image: r(SA),
|
|
30393
30393
|
label: o,
|
|
30394
|
-
link: r(
|
|
30394
|
+
link: r(RA),
|
|
30395
30395
|
listItem: r(kA),
|
|
30396
30396
|
listItemValue: B,
|
|
30397
|
-
listOrdered: r(
|
|
30398
|
-
listUnordered: r(
|
|
30397
|
+
listOrdered: r(UA, g),
|
|
30398
|
+
listUnordered: r(UA),
|
|
30399
30399
|
paragraph: r(LA),
|
|
30400
30400
|
reference: p,
|
|
30401
30401
|
referenceString: o,
|
|
@@ -30825,7 +30825,7 @@ function LK(A) {
|
|
|
30825
30825
|
alt: null
|
|
30826
30826
|
};
|
|
30827
30827
|
}
|
|
30828
|
-
function
|
|
30828
|
+
function RA() {
|
|
30829
30829
|
return {
|
|
30830
30830
|
type: "link",
|
|
30831
30831
|
title: null,
|
|
@@ -30833,7 +30833,7 @@ function LK(A) {
|
|
|
30833
30833
|
children: []
|
|
30834
30834
|
};
|
|
30835
30835
|
}
|
|
30836
|
-
function
|
|
30836
|
+
function UA(N) {
|
|
30837
30837
|
return {
|
|
30838
30838
|
type: "list",
|
|
30839
30839
|
ordered: N.type === "listOrdered",
|
|
@@ -34989,7 +34989,7 @@ const SeA = Er`
|
|
|
34989
34989
|
50% { opacity: 0.3; }
|
|
34990
34990
|
100% { opacity: 1; }
|
|
34991
34991
|
`, xeA = () => /* @__PURE__ */ E.jsx(ln, { spacing: "2px", children: Array.from({ length: 3 }).map((A, e) => /* @__PURE__ */ E.jsx(
|
|
34992
|
-
|
|
34992
|
+
CA,
|
|
34993
34993
|
{
|
|
34994
34994
|
width: "7px",
|
|
34995
34995
|
height: "7px",
|
|
@@ -35036,7 +35036,7 @@ const SeA = Er`
|
|
|
35036
35036
|
return /* @__PURE__ */ E.jsxs(pt, { className: "chat-assistant__wrapper", align: "flex-start", spacing: 2, w: "100%", py: 2, children: [
|
|
35037
35037
|
/* @__PURE__ */ E.jsxs(ln, { spacing: 2, w: "100%", children: [
|
|
35038
35038
|
/* @__PURE__ */ E.jsx(
|
|
35039
|
-
|
|
35039
|
+
CA,
|
|
35040
35040
|
{
|
|
35041
35041
|
display: "flex",
|
|
35042
35042
|
alignItems: "center",
|
|
@@ -35051,7 +35051,7 @@ const SeA = Er`
|
|
|
35051
35051
|
}
|
|
35052
35052
|
),
|
|
35053
35053
|
/* @__PURE__ */ E.jsx(
|
|
35054
|
-
|
|
35054
|
+
CA,
|
|
35055
35055
|
{
|
|
35056
35056
|
bg: "transparent",
|
|
35057
35057
|
color: "black",
|
|
@@ -35063,7 +35063,7 @@ const SeA = Er`
|
|
|
35063
35063
|
borderRadius: "50px",
|
|
35064
35064
|
children: /* @__PURE__ */ E.jsxs(XA, { justify: "space-between", align: "center", w: "100%", children: [
|
|
35065
35065
|
/* @__PURE__ */ E.jsx(
|
|
35066
|
-
|
|
35066
|
+
CA,
|
|
35067
35067
|
{
|
|
35068
35068
|
fontSize: "md",
|
|
35069
35069
|
whiteSpace: "pre-wrap",
|
|
@@ -35383,7 +35383,7 @@ const SeA = Er`
|
|
|
35383
35383
|
},
|
|
35384
35384
|
children: [
|
|
35385
35385
|
/* @__PURE__ */ E.jsx(
|
|
35386
|
-
|
|
35386
|
+
CA,
|
|
35387
35387
|
{
|
|
35388
35388
|
fontSize: "2xl",
|
|
35389
35389
|
as: "div",
|
|
@@ -35952,7 +35952,7 @@ const Tx = ({ iconDefault: A, iconHover: e, isActive: t }) => {
|
|
|
35952
35952
|
Array(d.length).fill(!1)
|
|
35953
35953
|
);
|
|
35954
35954
|
return /* @__PURE__ */ E.jsx(
|
|
35955
|
-
|
|
35955
|
+
CA,
|
|
35956
35956
|
{
|
|
35957
35957
|
position: "fixed",
|
|
35958
35958
|
top: "0",
|
|
@@ -35996,7 +35996,7 @@ const Tx = ({ iconDefault: A, iconHover: e, isActive: t }) => {
|
|
|
35996
35996
|
}
|
|
35997
35997
|
)
|
|
35998
35998
|
] }),
|
|
35999
|
-
/* @__PURE__ */ E.jsx(
|
|
35999
|
+
/* @__PURE__ */ E.jsx(CA, { as: "a", onClick: n, cursor: "pointer", children: /* @__PURE__ */ E.jsx(_eA, { platform: A }) })
|
|
36000
36000
|
] }),
|
|
36001
36001
|
/* @__PURE__ */ E.jsxs(SB, { offset: [0, 0], children: [
|
|
36002
36002
|
/* @__PURE__ */ E.jsx(
|
|
@@ -36012,7 +36012,7 @@ const Tx = ({ iconDefault: A, iconHover: e, isActive: t }) => {
|
|
|
36012
36012
|
_active: { borderColor: f },
|
|
36013
36013
|
_focus: { borderColor: u, boxShadow: "0 0 0 3px rgba(66, 153, 225, 0.6)" },
|
|
36014
36014
|
children: /* @__PURE__ */ E.jsx(pt, { align: "flex-end", spacing: 0, children: /* @__PURE__ */ E.jsxs(XA, { align: "center", gap: "10px", children: [
|
|
36015
|
-
/* @__PURE__ */ E.jsx(
|
|
36015
|
+
/* @__PURE__ */ E.jsx(CA, { as: KeA, color: e, size: 18 }),
|
|
36016
36016
|
/* @__PURE__ */ E.jsx(DA, { color: e, fontSize: "18px", fontWeight: "medium", marginRight: 2, children: i }),
|
|
36017
36017
|
/* @__PURE__ */ E.jsx(xc, { fontSize: "24px", color: e })
|
|
36018
36018
|
] }) })
|
|
@@ -36098,8 +36098,8 @@ const Tx = ({ iconDefault: A, iconHover: e, isActive: t }) => {
|
|
|
36098
36098
|
}, c = (g) => {
|
|
36099
36099
|
g.key === "Enter" && !t && (g.preventDefault(), l());
|
|
36100
36100
|
};
|
|
36101
|
-
return /* @__PURE__ */ E.jsx(
|
|
36102
|
-
/* @__PURE__ */ E.jsx(
|
|
36101
|
+
return /* @__PURE__ */ E.jsx(CA, { w: "100%", children: /* @__PURE__ */ E.jsxs(um, { children: [
|
|
36102
|
+
/* @__PURE__ */ E.jsx(CA, { width: "100%", paddingRight: "40px", borderRadius: o, background: "white.100", border: "1px solid", borderColor: "black.100", children: /* @__PURE__ */ E.jsx(
|
|
36103
36103
|
Xl,
|
|
36104
36104
|
{
|
|
36105
36105
|
ref: r,
|
|
@@ -36160,7 +36160,7 @@ const Tx = ({ iconDefault: A, iconHover: e, isActive: t }) => {
|
|
|
36160
36160
|
c((I) => (localStorage.setItem(s, String(!I)), !I));
|
|
36161
36161
|
};
|
|
36162
36162
|
return /* @__PURE__ */ E.jsx(
|
|
36163
|
-
|
|
36163
|
+
CA,
|
|
36164
36164
|
{
|
|
36165
36165
|
bg: qe.white[100],
|
|
36166
36166
|
color: qe.black[400],
|
|
@@ -36448,7 +36448,7 @@ const VEA = ({
|
|
|
36448
36448
|
children: A.map((s, l) => !Array.isArray(s.content) || s.content.length === 0 ? null : /* @__PURE__ */ E.jsxs(I2, { border: "none", children: [
|
|
36449
36449
|
/* @__PURE__ */ E.jsx("h2", { children: /* @__PURE__ */ E.jsxs(u2, { children: [
|
|
36450
36450
|
/* @__PURE__ */ E.jsx(
|
|
36451
|
-
|
|
36451
|
+
CA,
|
|
36452
36452
|
{
|
|
36453
36453
|
as: "span",
|
|
36454
36454
|
flex: "1",
|
|
@@ -36483,7 +36483,7 @@ const VEA = ({
|
|
|
36483
36483
|
children: [
|
|
36484
36484
|
c.title,
|
|
36485
36485
|
e && /* @__PURE__ */ E.jsx(
|
|
36486
|
-
|
|
36486
|
+
CA,
|
|
36487
36487
|
{
|
|
36488
36488
|
className: "pin-icon",
|
|
36489
36489
|
cursor: "pointer",
|
|
@@ -36638,12 +36638,12 @@ const NEA = ({ type: A = "progress" }) => {
|
|
|
36638
36638
|
borderTopLeftRadius: ".75rem",
|
|
36639
36639
|
borderTopRightRadius: ".75rem",
|
|
36640
36640
|
justifyContent: "space-around",
|
|
36641
|
-
children: A.map((i, r) => /* @__PURE__ */ E.jsxs(
|
|
36641
|
+
children: A.map((i, r) => /* @__PURE__ */ E.jsxs(CA, { maxWidth: "max-content", textAlign: "center", padding: "1rem", children: [
|
|
36642
36642
|
/* @__PURE__ */ E.jsx(DA, { color: t, fontSize: "1rem", fontWeight: "bold", children: i.title }),
|
|
36643
36643
|
/* @__PURE__ */ E.jsx(DA, { fontSize: "0.875rem", color: n, paddingTop: ".25rem", children: i.option })
|
|
36644
36644
|
] }, r))
|
|
36645
36645
|
}
|
|
36646
|
-
), GEA = ({ text: A = "Positive Ranking", value: e = "1,302" }) => /* @__PURE__ */ E.jsxs(
|
|
36646
|
+
), GEA = ({ text: A = "Positive Ranking", value: e = "1,302" }) => /* @__PURE__ */ E.jsxs(CA, { color: "black.600", maxWidth: "max-content", width: "100%", children: [
|
|
36647
36647
|
/* @__PURE__ */ E.jsx(DA, { fontSize: "1rem", children: A }),
|
|
36648
36648
|
/* @__PURE__ */ E.jsx(DA, { fontSize: "1.75rem", fontWeight: "bold", textAlign: "left", marginTop: "0.25rem", children: e })
|
|
36649
36649
|
] }), ZEA = ({
|
|
@@ -36654,7 +36654,7 @@ const NEA = ({ type: A = "progress" }) => {
|
|
|
36654
36654
|
borderRadius: i = ".5rem",
|
|
36655
36655
|
children: r,
|
|
36656
36656
|
...o
|
|
36657
|
-
}) => /* @__PURE__ */ E.jsx(
|
|
36657
|
+
}) => /* @__PURE__ */ E.jsx(CA, { ...o, backgroundColor: A, boxShadow: e, maxWidth: t, width: "100%", padding: n, borderRadius: i, children: r }), bx = ({ color: A, width: e = "89" }) => /* @__PURE__ */ E.jsxs(CA, { position: "relative", width: e, height: e, children: [
|
|
36658
36658
|
/* @__PURE__ */ E.jsxs(
|
|
36659
36659
|
"svg",
|
|
36660
36660
|
{
|
|
@@ -36725,7 +36725,7 @@ const NEA = ({ type: A = "progress" }) => {
|
|
|
36725
36725
|
] }), JEA = ({ color: A = "elevate" }) => {
|
|
36726
36726
|
const [e] = Uc("colors", [`${A}.500`]);
|
|
36727
36727
|
return /* @__PURE__ */ E.jsx(
|
|
36728
|
-
|
|
36728
|
+
CA,
|
|
36729
36729
|
{
|
|
36730
36730
|
position: "fixed",
|
|
36731
36731
|
top: 0,
|
|
@@ -36802,7 +36802,7 @@ const YEA = ({
|
|
|
36802
36802
|
i || (A === "idle" || A === "recording" ? n && n() : (A === "playing" || A === "paused") && t());
|
|
36803
36803
|
};
|
|
36804
36804
|
return /* @__PURE__ */ E.jsxs(
|
|
36805
|
-
|
|
36805
|
+
CA,
|
|
36806
36806
|
{
|
|
36807
36807
|
display: "flex",
|
|
36808
36808
|
alignItems: "center",
|
|
@@ -36829,8 +36829,8 @@ const YEA = ({
|
|
|
36829
36829
|
fontSize: "20px"
|
|
36830
36830
|
}
|
|
36831
36831
|
),
|
|
36832
|
-
/* @__PURE__ */ E.jsx(
|
|
36833
|
-
|
|
36832
|
+
/* @__PURE__ */ E.jsx(CA, { display: "flex", justifyContent: "center", flex: "1", mx: "16px", alignItems: "center", children: A === "idle" ? /* @__PURE__ */ E.jsx(DA, { fontSize: "sm", fontWeight: "bold", color: "white", children: "Record your voice" }) : A === "recording" ? /* @__PURE__ */ E.jsx(CA, { display: "flex", gap: "2px", alignItems: "center", children: s.map((g, B) => /* @__PURE__ */ E.jsx(
|
|
36833
|
+
CA,
|
|
36834
36834
|
{
|
|
36835
36835
|
width: "2px",
|
|
36836
36836
|
height: `${g * 3}px`,
|
|
@@ -36839,8 +36839,8 @@ const YEA = ({
|
|
|
36839
36839
|
_hover: { bg: "gray.200" }
|
|
36840
36840
|
},
|
|
36841
36841
|
B
|
|
36842
|
-
)) }) : /* @__PURE__ */ E.jsx(
|
|
36843
|
-
|
|
36842
|
+
)) }) : /* @__PURE__ */ E.jsx(CA, { display: "flex", gap: "2px", alignItems: "center", children: s.map((g, B) => /* @__PURE__ */ E.jsx(
|
|
36843
|
+
CA,
|
|
36844
36844
|
{
|
|
36845
36845
|
width: "2px",
|
|
36846
36846
|
height: `${g * 3}px`,
|
|
@@ -36886,7 +36886,7 @@ const YEA = ({
|
|
|
36886
36886
|
},
|
|
36887
36887
|
children: [
|
|
36888
36888
|
o.icon && /* @__PURE__ */ E.jsx(
|
|
36889
|
-
|
|
36889
|
+
CA,
|
|
36890
36890
|
{
|
|
36891
36891
|
as: "span",
|
|
36892
36892
|
display: "flex",
|
|
@@ -36898,7 +36898,7 @@ const YEA = ({
|
|
|
36898
36898
|
boxSize: o.iconSize || "16px",
|
|
36899
36899
|
color: o.iconColor || "gray.800",
|
|
36900
36900
|
marginRight: "5px",
|
|
36901
|
-
children: /* @__PURE__ */ E.jsx(
|
|
36901
|
+
children: /* @__PURE__ */ E.jsx(CA, { as: o.icon, boxSize: "100%" })
|
|
36902
36902
|
}
|
|
36903
36903
|
),
|
|
36904
36904
|
o.label
|
|
@@ -36919,7 +36919,7 @@ const YEA = ({
|
|
|
36919
36919
|
const B = g.target.checked;
|
|
36920
36920
|
l(B), e && e(B);
|
|
36921
36921
|
};
|
|
36922
|
-
return /* @__PURE__ */ E.jsxs(
|
|
36922
|
+
return /* @__PURE__ */ E.jsxs(CA, { display: "flex", alignItems: "center", children: [
|
|
36923
36923
|
/* @__PURE__ */ E.jsx(
|
|
36924
36924
|
Qs,
|
|
36925
36925
|
{
|
|
@@ -37082,7 +37082,7 @@ const YEA = ({
|
|
|
37082
37082
|
const a = (s) => {
|
|
37083
37083
|
i && i(s);
|
|
37084
37084
|
};
|
|
37085
|
-
return /* @__PURE__ */ E.jsx(
|
|
37085
|
+
return /* @__PURE__ */ E.jsx(CA, { bg: "gray.100", borderRadius: "md", boxShadow: "md", p: "3px", children: /* @__PURE__ */ E.jsx(
|
|
37086
37086
|
qm,
|
|
37087
37087
|
{
|
|
37088
37088
|
index: o,
|
|
@@ -37285,7 +37285,7 @@ const YEA = ({
|
|
|
37285
37285
|
overflowY: "auto",
|
|
37286
37286
|
children: [
|
|
37287
37287
|
/* @__PURE__ */ E.jsxs(ln, { spacing: 2, justifyContent: "center", children: [
|
|
37288
|
-
/* @__PURE__ */ E.jsx(
|
|
37288
|
+
/* @__PURE__ */ E.jsx(CA, { w: "45px", minW: "45px", flexShrink: 0, display: "flex", justifyContent: "center", children: /* @__PURE__ */ E.jsx(
|
|
37289
37289
|
stA,
|
|
37290
37290
|
{
|
|
37291
37291
|
color: f[i] || f.primary,
|
|
@@ -37469,7 +37469,7 @@ const YEA = ({
|
|
|
37469
37469
|
};
|
|
37470
37470
|
return /* @__PURE__ */ E.jsxs(pt, { align: "flex-start", spacing: 2, w: "100%", py: 2, children: [
|
|
37471
37471
|
/* @__PURE__ */ E.jsx(ln, { spacing: 2, w: "100%", children: /* @__PURE__ */ E.jsx(
|
|
37472
|
-
|
|
37472
|
+
CA,
|
|
37473
37473
|
{
|
|
37474
37474
|
bg: "transparent",
|
|
37475
37475
|
color: "black",
|
|
@@ -37543,7 +37543,7 @@ const AIA = ({
|
|
|
37543
37543
|
backgroundColor: "assist.200",
|
|
37544
37544
|
borderRadius: "1rem",
|
|
37545
37545
|
boxShadow: "0 0 0 rgba(0, 0, 0, 0.06)",
|
|
37546
|
-
children: /* @__PURE__ */ E.jsxs(
|
|
37546
|
+
children: /* @__PURE__ */ E.jsxs(CA, { children: [
|
|
37547
37547
|
/* @__PURE__ */ E.jsxs(oi, { fontFamily: "Sansation-Bold", children: [
|
|
37548
37548
|
/* @__PURE__ */ E.jsx(DA, { fontSize: "20px", children: A }),
|
|
37549
37549
|
/* @__PURE__ */ E.jsx(DA, { fontSize: "28px", children: e })
|
|
@@ -37551,7 +37551,7 @@ const AIA = ({
|
|
|
37551
37551
|
/* @__PURE__ */ E.jsx(Xo, { _hover: { backgroundColor: "white.100" }, hidden: s }),
|
|
37552
37552
|
/* @__PURE__ */ E.jsxs(ri, { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", children: [
|
|
37553
37553
|
/* @__PURE__ */ E.jsx(XA, { direction: "column", align: "center", gap: 1, children: t == null ? void 0 : t.map((u, I) => /* @__PURE__ */ E.jsxs(XA, { align: "center", justify: "flex-start", w: "100%", gap: 3, children: [
|
|
37554
|
-
/* @__PURE__ */ E.jsx(
|
|
37554
|
+
/* @__PURE__ */ E.jsx(CA, { mt: "3px", children: o || /* @__PURE__ */ E.jsx(ltA, { size: "20", color: "#2f93df" }) }),
|
|
37555
37555
|
/* @__PURE__ */ E.jsx(DA, { fontFamily: "Lato", color: "black.400", fontSize: "19px", children: u.name })
|
|
37556
37556
|
] }, I)) }),
|
|
37557
37557
|
/* @__PURE__ */ E.jsx(
|
|
@@ -37697,7 +37697,7 @@ const eIA = ({ text: A, onClick: e }) => /* @__PURE__ */ E.jsxs(XA, { flexDirect
|
|
|
37697
37697
|
update: BtA
|
|
37698
37698
|
}, r = _A(() => i[A], [A]), o = A === "soon" ? "Próximamente" : "Mejora tu plan";
|
|
37699
37699
|
return /* @__PURE__ */ E.jsxs(
|
|
37700
|
-
|
|
37700
|
+
CA,
|
|
37701
37701
|
{
|
|
37702
37702
|
position: "absolute",
|
|
37703
37703
|
top: "-13px",
|
|
@@ -37764,10 +37764,10 @@ const eIA = ({ text: A, onClick: e }) => /* @__PURE__ */ E.jsxs(XA, { flexDirect
|
|
|
37764
37764
|
const o = r.replace(/\s+/g, ""), a = o.slice(0, 3), l = ((c = o.slice(3).match(/.{1,3}/g)) == null ? void 0 : c.join(" ")) || "";
|
|
37765
37765
|
return `(${a}) ${l}`;
|
|
37766
37766
|
};
|
|
37767
|
-
return /* @__PURE__ */ E.jsx(
|
|
37767
|
+
return /* @__PURE__ */ E.jsx(CA, { w: "100%", mx: "auto", children: A.map((r) => {
|
|
37768
37768
|
const o = e === r.id;
|
|
37769
37769
|
return /* @__PURE__ */ E.jsxs(
|
|
37770
|
-
|
|
37770
|
+
CA,
|
|
37771
37771
|
{
|
|
37772
37772
|
mb: 6,
|
|
37773
37773
|
bg: "#F9F9F9",
|
|
@@ -37785,7 +37785,7 @@ const eIA = ({ text: A, onClick: e }) => /* @__PURE__ */ E.jsxs(XA, { flexDirect
|
|
|
37785
37785
|
width: "100%",
|
|
37786
37786
|
children: [
|
|
37787
37787
|
/* @__PURE__ */ E.jsxs(XA, { align: "center", flex: "1", children: [
|
|
37788
|
-
/* @__PURE__ */ E.jsx(
|
|
37788
|
+
/* @__PURE__ */ E.jsx(CA, { mr: 3, children: r.icon }),
|
|
37789
37789
|
/* @__PURE__ */ E.jsx(DA, { fontWeight: "bold", fontSize: "19px", fontFamily: "Heading", children: r.name })
|
|
37790
37790
|
] }),
|
|
37791
37791
|
/* @__PURE__ */ E.jsxs(XA, { align: "center", flex: "1", justify: "flex-start", width: "45%", minW: "45%", children: [
|
|
@@ -37842,13 +37842,13 @@ const eIA = ({ text: A, onClick: e }) => /* @__PURE__ */ E.jsxs(XA, { flexDirect
|
|
|
37842
37842
|
]
|
|
37843
37843
|
}
|
|
37844
37844
|
),
|
|
37845
|
-
/* @__PURE__ */ E.jsx(AQ, { in: o, animateOpacity: !0, children: /* @__PURE__ */ E.jsx(
|
|
37845
|
+
/* @__PURE__ */ E.jsx(AQ, { in: o, animateOpacity: !0, children: /* @__PURE__ */ E.jsx(CA, { px: 5, py: 4, bg: "white", borderBottomRadius: "8px", children: r.children }) })
|
|
37846
37846
|
]
|
|
37847
37847
|
},
|
|
37848
37848
|
r.id
|
|
37849
37849
|
);
|
|
37850
37850
|
}) });
|
|
37851
|
-
}, utA = () => /* @__PURE__ */ E.jsx(
|
|
37851
|
+
}, utA = () => /* @__PURE__ */ E.jsx(CA, { display: "inline-flex", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ E.jsx(mQ, { boxSize: "18px" }) }), EtA = ({ open: A }) => /* @__PURE__ */ E.jsx(CA, { display: "inline-flex", alignItems: "center", justifyContent: "center", children: A ? /* @__PURE__ */ E.jsx(wu, { boxSize: "18px" }) : /* @__PURE__ */ E.jsx(xc, { boxSize: "18px" }) }), ItA = 6, ftA = "24px", dtA = on(CA);
|
|
37852
37852
|
function GF({
|
|
37853
37853
|
open: A,
|
|
37854
37854
|
items: e,
|
|
@@ -37981,7 +37981,7 @@ const rIA = ({
|
|
|
37981
37981
|
const X = Array.isArray(x.children) && x.children.length > 0, k = !!(o && x.url && (o === x.url || o.startsWith(x.url + "/"))), W = `opt-${y}-${J}`, j = C[W] ?? !1, v = () => {
|
|
37982
37982
|
X && R(W), x.onClick && !X && x.onClick();
|
|
37983
37983
|
};
|
|
37984
|
-
return /* @__PURE__ */ E.jsxs(
|
|
37984
|
+
return /* @__PURE__ */ E.jsxs(CA, { width: "100%", children: [
|
|
37985
37985
|
/* @__PURE__ */ E.jsx(
|
|
37986
37986
|
ve,
|
|
37987
37987
|
{
|
|
@@ -38006,10 +38006,10 @@ const rIA = ({
|
|
|
38006
38006
|
"> div > p": { fontWeight: "bold" }
|
|
38007
38007
|
},
|
|
38008
38008
|
children: /* @__PURE__ */ E.jsxs(XA, { align: "center", width: "100%", justifyContent: B ? "flex-start" : "center", children: [
|
|
38009
|
-
B && /* @__PURE__ */ E.jsx(
|
|
38009
|
+
B && /* @__PURE__ */ E.jsx(CA, { width: `${D * 12}px`, flexShrink: 0 }),
|
|
38010
38010
|
x.icon,
|
|
38011
38011
|
B && /* @__PURE__ */ E.jsx(DA, { ml: 2, transition: "font-weight 0.2s ease", color: "black.500", noOfLines: 1, children: x.title }),
|
|
38012
|
-
X && B && /* @__PURE__ */ E.jsx(
|
|
38012
|
+
X && B && /* @__PURE__ */ E.jsx(CA, { ml: 2, children: /* @__PURE__ */ E.jsx(utA, {}) })
|
|
38013
38013
|
] })
|
|
38014
38014
|
}
|
|
38015
38015
|
),
|
|
@@ -38027,7 +38027,7 @@ const rIA = ({
|
|
|
38027
38027
|
] }, W);
|
|
38028
38028
|
}, w = 6;
|
|
38029
38029
|
return /* @__PURE__ */ E.jsxs(
|
|
38030
|
-
|
|
38030
|
+
CA,
|
|
38031
38031
|
{
|
|
38032
38032
|
bg: qe.white[100],
|
|
38033
38033
|
color: qe.black[400],
|
|
@@ -38066,15 +38066,15 @@ const rIA = ({
|
|
|
38066
38066
|
}
|
|
38067
38067
|
),
|
|
38068
38068
|
/* @__PURE__ */ E.jsx(
|
|
38069
|
-
|
|
38069
|
+
CA,
|
|
38070
38070
|
{
|
|
38071
38071
|
flexShrink: 0,
|
|
38072
38072
|
pt: "20px",
|
|
38073
38073
|
pb: "12px",
|
|
38074
38074
|
px: B ? 4 : 0,
|
|
38075
|
-
children: B ? /* @__PURE__ */ E.jsxs(
|
|
38075
|
+
children: B ? /* @__PURE__ */ E.jsxs(CA, { justifyContent: "center", textAlign: "center", children: [
|
|
38076
38076
|
/* @__PURE__ */ E.jsx(DA, { color: "#5AA9E6", fontFamily: "Sansation-Bold", fontSize: "24px", width: "100%", children: t }),
|
|
38077
|
-
/* @__PURE__ */ E.jsxs(XA, { width: "100%", justifyContent: "
|
|
38077
|
+
/* @__PURE__ */ E.jsxs(XA, { width: "100%", justifyContent: "center", alignItems: "center", mt: 2, children: [
|
|
38078
38078
|
Q,
|
|
38079
38079
|
/* @__PURE__ */ E.jsx(DA, { color: A, fontSize: "16px", children: h })
|
|
38080
38080
|
] })
|
|
@@ -38082,7 +38082,7 @@ const rIA = ({
|
|
|
38082
38082
|
}
|
|
38083
38083
|
),
|
|
38084
38084
|
/* @__PURE__ */ E.jsx(
|
|
38085
|
-
|
|
38085
|
+
CA,
|
|
38086
38086
|
{
|
|
38087
38087
|
flex: "1",
|
|
38088
38088
|
overflowY: "auto",
|
|
@@ -38108,7 +38108,7 @@ const rIA = ({
|
|
|
38108
38108
|
spacing: 0,
|
|
38109
38109
|
pb: "72px",
|
|
38110
38110
|
children: [
|
|
38111
|
-
i.length > 0 && i[0].options.length > 0 && /* @__PURE__ */ E.jsx(
|
|
38111
|
+
i.length > 0 && i[0].options.length > 0 && /* @__PURE__ */ E.jsx(CA, { width: "100%", mt: 4, alignItems: "center", ml: B ? 4 : 0, children: F(i[0].options[0], 0, 0, "chat") }),
|
|
38112
38112
|
i.slice(1).map((x, D) => {
|
|
38113
38113
|
var j;
|
|
38114
38114
|
const y = D + 1, J = `section-${y}`, X = (((j = x.options) == null ? void 0 : j.length) ?? 0) > 0, k = C[J] ?? !1, W = () => R(J);
|
|
@@ -38130,6 +38130,7 @@ const rIA = ({
|
|
|
38130
38130
|
cursor: "pointer",
|
|
38131
38131
|
onClick: W,
|
|
38132
38132
|
userSelect: "none",
|
|
38133
|
+
mb: 2,
|
|
38133
38134
|
children: [
|
|
38134
38135
|
/* @__PURE__ */ E.jsx(
|
|
38135
38136
|
DA,
|
|
@@ -38143,7 +38144,7 @@ const rIA = ({
|
|
|
38143
38144
|
children: x.title
|
|
38144
38145
|
}
|
|
38145
38146
|
),
|
|
38146
|
-
/* @__PURE__ */ E.jsx(
|
|
38147
|
+
/* @__PURE__ */ E.jsx(CA, { w: ftA, display: "flex", justifyContent: "center", children: X && /* @__PURE__ */ E.jsx(EtA, { open: !!k }) })
|
|
38147
38148
|
]
|
|
38148
38149
|
}
|
|
38149
38150
|
),
|
|
@@ -38169,7 +38170,7 @@ const rIA = ({
|
|
|
38169
38170
|
}
|
|
38170
38171
|
),
|
|
38171
38172
|
r && r.length > 0 && /* @__PURE__ */ E.jsx(
|
|
38172
|
-
|
|
38173
|
+
CA,
|
|
38173
38174
|
{
|
|
38174
38175
|
as: "footer",
|
|
38175
38176
|
flexShrink: 0,
|
|
@@ -38236,7 +38237,7 @@ const rIA = ({
|
|
|
38236
38237
|
flexDirection: "column",
|
|
38237
38238
|
mt: "4px",
|
|
38238
38239
|
children: [
|
|
38239
|
-
/* @__PURE__ */ E.jsx(
|
|
38240
|
+
/* @__PURE__ */ E.jsx(CA, { as: "span", textAlign: "center", children: /* @__PURE__ */ E.jsx(QtA, { width: 40, height: 40 }) }),
|
|
38240
38241
|
/* @__PURE__ */ E.jsx(DA, { fontFamily: "Sansation-Bold", fontSize: "20px", children: "¡Atención!" })
|
|
38241
38242
|
]
|
|
38242
38243
|
}
|
|
@@ -38302,7 +38303,7 @@ const rIA = ({
|
|
|
38302
38303
|
flexDirection: "column",
|
|
38303
38304
|
mt: "4px",
|
|
38304
38305
|
children: [
|
|
38305
|
-
/* @__PURE__ */ E.jsx(
|
|
38306
|
+
/* @__PURE__ */ E.jsx(CA, { as: "span", textAlign: "center", children: /* @__PURE__ */ E.jsx(htA, { width: 40, height: 40 }) }),
|
|
38306
38307
|
/* @__PURE__ */ E.jsx(DA, { fontFamily: "Sansation-Bold", fontSize: "20px", children: "¡Atención!" })
|
|
38307
38308
|
]
|
|
38308
38309
|
}
|
|
@@ -38340,7 +38341,7 @@ const rIA = ({
|
|
|
38340
38341
|
}
|
|
38341
38342
|
), sIA = ({ color: A = "elevate", width: e }) => {
|
|
38342
38343
|
const [t] = Uc("colors", [`${A}.500`]);
|
|
38343
|
-
return /* @__PURE__ */ E.jsx(
|
|
38344
|
+
return /* @__PURE__ */ E.jsx(CA, { display: "flex", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ E.jsx(bx, { color: t || "elevate.500", width: e }) });
|
|
38344
38345
|
};
|
|
38345
38346
|
async function CtA(A, e) {
|
|
38346
38347
|
const t = A.getReader();
|
|
@@ -38470,7 +38471,7 @@ function DtA(A) {
|
|
|
38470
38471
|
throw new Error(`Expected content-type to be ${tf}, Actual: ${e}`);
|
|
38471
38472
|
}
|
|
38472
38473
|
const mtA = ({ content: A }) => /* @__PURE__ */ E.jsx(
|
|
38473
|
-
|
|
38474
|
+
CA,
|
|
38474
38475
|
{
|
|
38475
38476
|
display: "flex",
|
|
38476
38477
|
ml: "auto",
|
|
@@ -50730,9 +50731,9 @@ const UcA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAA0CAYAAAAew7HJA
|
|
|
50730
50731
|
console.error("Chart render error", o);
|
|
50731
50732
|
}
|
|
50732
50733
|
}));
|
|
50733
|
-
}, [A]), /* @__PURE__ */ E.jsxs(
|
|
50734
|
-
/* @__PURE__ */ E.jsx(
|
|
50735
|
-
/* @__PURE__ */ E.jsx(
|
|
50734
|
+
}, [A]), /* @__PURE__ */ E.jsxs(CA, { display: "flex", alignItems: "center", gap: 2, p: 2, children: [
|
|
50735
|
+
/* @__PURE__ */ E.jsx(CA, { as: "img", src: UcA, w: 8, h: 8, objectFit: "contain" }),
|
|
50736
|
+
/* @__PURE__ */ E.jsx(CA, { p: 3, flex: "1", textAlign: "left", children: /* @__PURE__ */ E.jsx("div", { ref: e }) })
|
|
50736
50737
|
] });
|
|
50737
50738
|
};
|
|
50738
50739
|
function wcA(A) {
|
|
@@ -50822,7 +50823,7 @@ const bcA = ({ apiDomain: A, welcomeMessage: e, thinkingMessage: t }) => {
|
|
|
50822
50823
|
h: "full",
|
|
50823
50824
|
children: [
|
|
50824
50825
|
/* @__PURE__ */ E.jsx(
|
|
50825
|
-
|
|
50826
|
+
CA,
|
|
50826
50827
|
{
|
|
50827
50828
|
flex: "1",
|
|
50828
50829
|
overflowY: "auto",
|
|
@@ -50850,7 +50851,7 @@ const bcA = ({ apiDomain: A, welcomeMessage: e, thinkingMessage: t }) => {
|
|
|
50850
50851
|
)
|
|
50851
50852
|
}
|
|
50852
50853
|
),
|
|
50853
|
-
/* @__PURE__ */ E.jsx(
|
|
50854
|
+
/* @__PURE__ */ E.jsx(CA, { p: 4, borderTop: "1px solid", borderColor: "gray.200", children: /* @__PURE__ */ E.jsx("form", { ref: s, onSubmit: c, children: /* @__PURE__ */ E.jsxs(XA, { gap: 2, children: [
|
|
50854
50855
|
/* @__PURE__ */ E.jsx(Ka, { name: "message", placeholder: "Escribe tu mensaje…", isDisabled: r }),
|
|
50855
50856
|
/* @__PURE__ */ E.jsx(
|
|
50856
50857
|
ve,
|
|
@@ -54313,7 +54314,7 @@ const aEA = {
|
|
|
54313
54314
|
return /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
54314
54315
|
/* @__PURE__ */ E.jsx(VcA, { onClick: () => t(!0) }),
|
|
54315
54316
|
/* @__PURE__ */ E.jsx(
|
|
54316
|
-
|
|
54317
|
+
CA,
|
|
54317
54318
|
{
|
|
54318
54319
|
position: "fixed",
|
|
54319
54320
|
top: "0",
|
|
@@ -54327,7 +54328,7 @@ const aEA = {
|
|
|
54327
54328
|
}
|
|
54328
54329
|
),
|
|
54329
54330
|
/* @__PURE__ */ E.jsxs(
|
|
54330
|
-
|
|
54331
|
+
CA,
|
|
54331
54332
|
{
|
|
54332
54333
|
position: "fixed",
|
|
54333
54334
|
bg: "white",
|
|
@@ -54341,7 +54342,7 @@ const aEA = {
|
|
|
54341
54342
|
...o,
|
|
54342
54343
|
children: [
|
|
54343
54344
|
/* @__PURE__ */ E.jsx(
|
|
54344
|
-
|
|
54345
|
+
CA,
|
|
54345
54346
|
{
|
|
54346
54347
|
position: "absolute",
|
|
54347
54348
|
top: "0.5rem",
|
|
@@ -54367,7 +54368,7 @@ const aEA = {
|
|
|
54367
54368
|
borderColor: "gray.200"
|
|
54368
54369
|
},
|
|
54369
54370
|
children: [
|
|
54370
|
-
/* @__PURE__ */ E.jsx(
|
|
54371
|
+
/* @__PURE__ */ E.jsx(CA, { children: /* @__PURE__ */ E.jsx(
|
|
54371
54372
|
DA,
|
|
54372
54373
|
{
|
|
54373
54374
|
fontFamily: "Sansation-Regular, sans-serif",
|
|
@@ -54378,7 +54379,7 @@ const aEA = {
|
|
|
54378
54379
|
children: "Pregunta a Canaia"
|
|
54379
54380
|
}
|
|
54380
54381
|
) }),
|
|
54381
|
-
/* @__PURE__ */ E.jsxs(
|
|
54382
|
+
/* @__PURE__ */ E.jsxs(CA, { mr: n ? "72px" : 2, children: [
|
|
54382
54383
|
/* @__PURE__ */ E.jsx(
|
|
54383
54384
|
Et,
|
|
54384
54385
|
{
|
|
@@ -54431,7 +54432,7 @@ const gIA = ({
|
|
|
54431
54432
|
closeOnEsc: a = !0,
|
|
54432
54433
|
closeOnOverlayClick: s = !0
|
|
54433
54434
|
}) => {
|
|
54434
|
-
const l = () => i == null ? null : typeof i == "string" ? /* @__PURE__ */ E.jsx(DA, { fontFamily: "Lato-Regular", fontSize: "19px", lineHeight: "1.4", children: i }) : /* @__PURE__ */ E.jsx(E.Fragment, { children: i }), c = () => r == null ? null : typeof r == "string" ? /* @__PURE__ */ E.jsx(DA, { fontFamily: "Lato-Regular", fontSize: "19px", lineHeight: "1.4", mt: "30px", children: r }) : /* @__PURE__ */ E.jsx(
|
|
54435
|
+
const l = () => i == null ? null : typeof i == "string" ? /* @__PURE__ */ E.jsx(DA, { fontFamily: "Lato-Regular", fontSize: "19px", lineHeight: "1.4", children: i }) : /* @__PURE__ */ E.jsx(E.Fragment, { children: i }), c = () => r == null ? null : typeof r == "string" ? /* @__PURE__ */ E.jsx(DA, { fontFamily: "Lato-Regular", fontSize: "19px", lineHeight: "1.4", mt: "30px", children: r }) : /* @__PURE__ */ E.jsx(CA, { mt: "30px", children: r });
|
|
54435
54436
|
return /* @__PURE__ */ E.jsx(pt, { alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ E.jsxs(
|
|
54436
54437
|
ni,
|
|
54437
54438
|
{
|
|
@@ -54464,7 +54465,7 @@ const gIA = ({
|
|
|
54464
54465
|
flexDir: "column",
|
|
54465
54466
|
gap: "2",
|
|
54466
54467
|
children: [
|
|
54467
|
-
/* @__PURE__ */ E.jsx(
|
|
54468
|
+
/* @__PURE__ */ E.jsx(CA, { as: "span", textAlign: "center", children: /* @__PURE__ */ E.jsx(lEA, { size: 40, color: "#DB071E", strokeWidth: 0.5 }) }),
|
|
54468
54469
|
/* @__PURE__ */ E.jsx(DA, { fontFamily: "Sansation-Bold", fontSize: "20px", color: "danger.400", children: "¡Atención!" })
|
|
54469
54470
|
]
|
|
54470
54471
|
}
|
|
@@ -54607,7 +54608,7 @@ const gIA = ({
|
|
|
54607
54608
|
alignItems: "center",
|
|
54608
54609
|
justifyContent: "center",
|
|
54609
54610
|
flexDirection: "column",
|
|
54610
|
-
children: /* @__PURE__ */ E.jsx(
|
|
54611
|
+
children: /* @__PURE__ */ E.jsx(CA, { as: "span", textAlign: "center", children: /* @__PURE__ */ E.jsx(cEA, { width: 45, height: 45 }) })
|
|
54611
54612
|
}
|
|
54612
54613
|
),
|
|
54613
54614
|
/* @__PURE__ */ E.jsx(Xo, { hidden: r }),
|