@canaia/ui-kit 0.0.11-alpha.20 → 0.0.11-alpha.22
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as hA from "react";
|
|
2
|
-
import _e, { Children as ao, isValidElement as rr, createContext as Wn, useContext as je, useRef as JA, useEffect as PA, useCallback as oA, useState as
|
|
2
|
+
import _e, { Children as ao, isValidElement as rr, createContext as Wn, useContext as je, useRef as JA, useEffect as PA, useCallback as oA, useState as xA, useId as Qn, useLayoutEffect as Mg, useMemo as zA, forwardRef as dt, useInsertionEffect as o0, Fragment as xB, createElement as Ts, Component as Mw, memo as dw, useSyncExternalStore as fw, cloneElement as Nn, PureComponent as ww, useReducer as Dw, useImperativeHandle as hw } from "react";
|
|
3
3
|
import { createPortal as B0 } from "react-dom";
|
|
4
4
|
var fi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function go(A) {
|
|
@@ -283,7 +283,7 @@ function pw() {
|
|
|
283
283
|
var AA = m ? m.displayName || m.name : "", iA = AA ? tA(AA) : "";
|
|
284
284
|
return typeof m == "function" && sA.set(m, iA), iA;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function mA(m, rA, uA) {
|
|
287
287
|
return O(m, !1);
|
|
288
288
|
}
|
|
289
289
|
function QA(m) {
|
|
@@ -306,7 +306,7 @@ function pw() {
|
|
|
306
306
|
if (typeof m == "object")
|
|
307
307
|
switch (m.$$typeof) {
|
|
308
308
|
case a:
|
|
309
|
-
return
|
|
309
|
+
return mA(m.render);
|
|
310
310
|
case E:
|
|
311
311
|
return Z(m.type, rA, uA);
|
|
312
312
|
case I: {
|
|
@@ -963,7 +963,7 @@ La.exports;
|
|
|
963
963
|
} catch {
|
|
964
964
|
}
|
|
965
965
|
}(), O = fA && fA.isTypedArray;
|
|
966
|
-
function
|
|
966
|
+
function mA(T, v, j) {
|
|
967
967
|
switch (j.length) {
|
|
968
968
|
case 0:
|
|
969
969
|
return T.call(v);
|
|
@@ -1331,7 +1331,7 @@ La.exports;
|
|
|
1331
1331
|
ne = -1;
|
|
1332
1332
|
for (var le = Array(v + 1); ++ne < v; )
|
|
1333
1333
|
le[ne] = DA[ne];
|
|
1334
|
-
return le[v] = j(be),
|
|
1334
|
+
return le[v] = j(be), mA(T, this, le);
|
|
1335
1335
|
};
|
|
1336
1336
|
}
|
|
1337
1337
|
function cr(T, v) {
|
|
@@ -1452,7 +1452,7 @@ function ha(A, e, t, n) {
|
|
|
1452
1452
|
};
|
|
1453
1453
|
}
|
|
1454
1454
|
function tD(A) {
|
|
1455
|
-
const { isOpen: e, ref: t } = A, [n, i] =
|
|
1455
|
+
const { isOpen: e, ref: t } = A, [n, i] = xA(e), [r, o] = xA(!1);
|
|
1456
1456
|
return PA(() => {
|
|
1457
1457
|
r || (i(e), o(!0));
|
|
1458
1458
|
}, [e, r, n]), ha(
|
|
@@ -1476,7 +1476,7 @@ function R0(A) {
|
|
|
1476
1476
|
defaultValue: t,
|
|
1477
1477
|
onChange: n,
|
|
1478
1478
|
shouldUpdate: i = (I, c) => I !== c
|
|
1479
|
-
} = A, r = In(n), o = In(i), [B, a] =
|
|
1479
|
+
} = A, r = In(n), o = In(i), [B, a] = xA(t), g = e !== void 0, l = g ? e : B, E = In(
|
|
1480
1480
|
(I) => {
|
|
1481
1481
|
const Q = typeof I == "function" ? I(l) : I;
|
|
1482
1482
|
o(l, Q) && (g || a(Q), r(Q));
|
|
@@ -1491,7 +1491,7 @@ function C0(A = {}) {
|
|
|
1491
1491
|
onOpen: t,
|
|
1492
1492
|
isOpen: n,
|
|
1493
1493
|
id: i
|
|
1494
|
-
} = A, r = In(t), o = In(e), [B, a] =
|
|
1494
|
+
} = A, r = In(t), o = In(e), [B, a] = xA(A.defaultIsOpen || !1), g = n !== void 0 ? n : B, l = n !== void 0, E = Qn(), I = i ?? `disclosure-${E}`, c = oA(() => {
|
|
1495
1495
|
l || a(!1), o == null || o();
|
|
1496
1496
|
}, [l, o]), Q = oA(() => {
|
|
1497
1497
|
l || a(!0), r == null || r();
|
|
@@ -7250,8 +7250,8 @@ function am() {
|
|
|
7250
7250
|
}
|
|
7251
7251
|
function h(O) {
|
|
7252
7252
|
if (typeof O == "object" && O !== null) {
|
|
7253
|
-
var
|
|
7254
|
-
switch (
|
|
7253
|
+
var mA = O.$$typeof;
|
|
7254
|
+
switch (mA) {
|
|
7255
7255
|
case e:
|
|
7256
7256
|
var QA = O.type;
|
|
7257
7257
|
switch (QA) {
|
|
@@ -7272,11 +7272,11 @@ function am() {
|
|
|
7272
7272
|
case o:
|
|
7273
7273
|
return Z;
|
|
7274
7274
|
default:
|
|
7275
|
-
return
|
|
7275
|
+
return mA;
|
|
7276
7276
|
}
|
|
7277
7277
|
}
|
|
7278
7278
|
case t:
|
|
7279
|
-
return
|
|
7279
|
+
return mA;
|
|
7280
7280
|
}
|
|
7281
7281
|
}
|
|
7282
7282
|
}
|
|
@@ -7767,9 +7767,9 @@ const AF = function(e) {
|
|
|
7767
7767
|
disableTransitionOnChange: o
|
|
7768
7768
|
} = {},
|
|
7769
7769
|
colorModeManager: B = Vm
|
|
7770
|
-
} = e, a = Cm(), g = r === "dark" ? "dark" : "light", [l, E] =
|
|
7770
|
+
} = e, a = Cm(), g = r === "dark" ? "dark" : "light", [l, E] = xA(
|
|
7771
7771
|
() => MQ(B, g)
|
|
7772
|
-
), [I, c] =
|
|
7772
|
+
), [I, c] = xA(
|
|
7773
7773
|
() => MQ(B)
|
|
7774
7774
|
), { getSystemTheme: Q, setClassName: U, setDataset: R, addListener: C } = zA(
|
|
7775
7775
|
() => Sm({
|
|
@@ -8307,7 +8307,7 @@ function dQ(A) {
|
|
|
8307
8307
|
}), e;
|
|
8308
8308
|
}
|
|
8309
8309
|
const eI = typeof window < "u", oF = eI ? Mg : PA, or = ({ children: A, custom: e, initial: t = !0, onExitComplete: n, presenceAffectsLayout: i = !0, mode: r = "sync", propagate: o = !1 }) => {
|
|
8310
|
-
const [B, a] = AI(o), g = zA(() => dQ(A), [A]), l = o && !B ? [] : g.map(sa), E = JA(!0), I = JA(g), c = _s(() => /* @__PURE__ */ new Map()), [Q, U] =
|
|
8310
|
+
const [B, a] = AI(o), g = zA(() => dQ(A), [A]), l = o && !B ? [] : g.map(sa), E = JA(!0), I = JA(g), c = _s(() => /* @__PURE__ */ new Map()), [Q, U] = xA(g), [R, C] = xA(g);
|
|
8311
8311
|
oF(() => {
|
|
8312
8312
|
E.current = !1, I.current = g;
|
|
8313
8313
|
for (let h = 0; h < R.length; h++) {
|
|
@@ -13374,7 +13374,7 @@ const IA = T9(), V9 = {
|
|
|
13374
13374
|
containerStyle: a,
|
|
13375
13375
|
motionVariants: g = V9,
|
|
13376
13376
|
toastSpacing: l = "0.5rem"
|
|
13377
|
-
} = A, [E, I] =
|
|
13377
|
+
} = A, [E, I] = xA(B), c = Pm();
|
|
13378
13378
|
Xr(() => {
|
|
13379
13379
|
c || n == null || n();
|
|
13380
13380
|
}, [c]), Xr(() => {
|
|
@@ -13955,7 +13955,7 @@ const [Yu, q9] = Ve({
|
|
|
13955
13955
|
children: A.children
|
|
13956
13956
|
}
|
|
13957
13957
|
), Ak = (A) => {
|
|
13958
|
-
const { appendToParentPortal: e, children: t } = A, [n, i] =
|
|
13958
|
+
const { appendToParentPortal: e, children: t } = A, [n, i] = xA(null), r = JA(null), [, o] = xA({});
|
|
13959
13959
|
PA(() => o({}), []);
|
|
13960
13960
|
const B = q9(), a = vm();
|
|
13961
13961
|
Pi(() => {
|
|
@@ -13986,7 +13986,7 @@ const [Yu, q9] = Ve({
|
|
|
13986
13986
|
const { children: e, containerRef: t, appendToParentPortal: n } = A, i = t.current, r = i ?? (typeof window < "u" ? document.body : void 0), o = zA(() => {
|
|
13987
13987
|
const a = i == null ? void 0 : i.ownerDocument.createElement("div");
|
|
13988
13988
|
return a && (a.className = bI), a;
|
|
13989
|
-
}, [i]), [, B] =
|
|
13989
|
+
}, [i]), [, B] = xA({});
|
|
13990
13990
|
return Pi(() => B({}), []), Pi(() => {
|
|
13991
13991
|
if (!(!o || !r))
|
|
13992
13992
|
return r.appendChild(o), () => {
|
|
@@ -14158,7 +14158,7 @@ function WI() {
|
|
|
14158
14158
|
return Nl(() => () => i.current.destroy()), i.current;
|
|
14159
14159
|
},
|
|
14160
14160
|
(i) => {
|
|
14161
|
-
const r = e(), [o, B] =
|
|
14161
|
+
const r = e(), [o, B] = xA(-1), a = JA(null);
|
|
14162
14162
|
Nl(() => () => {
|
|
14163
14163
|
a.current && r.unregister(a.current);
|
|
14164
14164
|
}, []), Nl(() => {
|
|
@@ -14201,7 +14201,7 @@ function Uk(A) {
|
|
|
14201
14201
|
...o
|
|
14202
14202
|
} = A;
|
|
14203
14203
|
Fk(A), uk(A);
|
|
14204
|
-
const B = ck(), [a, g] =
|
|
14204
|
+
const B = ck(), [a, g] = xA(-1);
|
|
14205
14205
|
PA(() => () => {
|
|
14206
14206
|
g(-1);
|
|
14207
14207
|
}, []);
|
|
@@ -14507,7 +14507,7 @@ const Wr = {
|
|
|
14507
14507
|
transitionEnd: l,
|
|
14508
14508
|
animatePresenceProps: E,
|
|
14509
14509
|
...I
|
|
14510
|
-
} = A, [c, Q] =
|
|
14510
|
+
} = A, [c, Q] = xA(!1);
|
|
14511
14511
|
PA(() => {
|
|
14512
14512
|
const F = setTimeout(() => {
|
|
14513
14513
|
Q(!0);
|
|
@@ -14619,7 +14619,7 @@ function qu(A) {
|
|
|
14619
14619
|
crossOrigin: o,
|
|
14620
14620
|
sizes: B,
|
|
14621
14621
|
ignoreFallback: a
|
|
14622
|
-
} = A, [g, l] =
|
|
14622
|
+
} = A, [g, l] = xA("pending");
|
|
14623
14623
|
PA(() => {
|
|
14624
14624
|
l(t ? "loading" : "pending");
|
|
14625
14625
|
}, [t]);
|
|
@@ -14701,7 +14701,7 @@ const Tk = {
|
|
|
14701
14701
|
position: "relative",
|
|
14702
14702
|
flexShrink: 0
|
|
14703
14703
|
}, $u = dA((A, e) => {
|
|
14704
|
-
const t = ft("Avatar", A), [n, i] =
|
|
14704
|
+
const t = ft("Avatar", A), [n, i] = xA(!1), {
|
|
14705
14705
|
src: r,
|
|
14706
14706
|
srcSet: o,
|
|
14707
14707
|
name: B,
|
|
@@ -14835,7 +14835,7 @@ function LE(A) {
|
|
|
14835
14835
|
}
|
|
14836
14836
|
LE.displayName = "ButtonSpinner";
|
|
14837
14837
|
function xk(A) {
|
|
14838
|
-
const [e, t] =
|
|
14838
|
+
const [e, t] = xA(!A);
|
|
14839
14839
|
return { ref: oA((r) => {
|
|
14840
14840
|
r && t(r.tagName === "BUTTON");
|
|
14841
14841
|
}, []), type: e ? "button" : void 0 };
|
|
@@ -15124,7 +15124,7 @@ function Kk(A) {
|
|
|
15124
15124
|
isDisabled: i,
|
|
15125
15125
|
isReadOnly: r,
|
|
15126
15126
|
...o
|
|
15127
|
-
} = A, B = Qn(), a = e || `field-${B}`, g = `${a}-label`, l = `${a}-feedback`, E = `${a}-helptext`, [I, c] =
|
|
15127
|
+
} = A, B = Qn(), a = e || `field-${B}`, g = `${a}-label`, l = `${a}-feedback`, E = `${a}-helptext`, [I, c] = xA(!1), [Q, U] = xA(!1), [R, C] = xA(!1), u = oA(
|
|
15128
15128
|
(V = {}, x = null) => ({
|
|
15129
15129
|
id: E,
|
|
15130
15130
|
...V,
|
|
@@ -15322,11 +15322,11 @@ function rM(A = {}) {
|
|
|
15322
15322
|
"onBlur",
|
|
15323
15323
|
"onFocus",
|
|
15324
15324
|
"aria-describedby"
|
|
15325
|
-
]), V = In(c), x = In(B), N = In(a), [S, G] =
|
|
15325
|
+
]), V = In(c), x = In(B), N = In(a), [S, G] = xA(!1), [L, eA] = xA(!1), [k, z] = xA(!1), K = JA(!1);
|
|
15326
15326
|
PA(() => Ok((QA) => {
|
|
15327
15327
|
K.current = QA;
|
|
15328
15328
|
}), []);
|
|
15329
|
-
const H = JA(null), [EA, cA] =
|
|
15329
|
+
const H = JA(null), [EA, cA] = xA(!0), [M, W] = xA(!!l), _ = E !== void 0, f = _ ? E : M, J = oA(
|
|
15330
15330
|
(QA) => {
|
|
15331
15331
|
if (n || t) {
|
|
15332
15332
|
QA.preventDefault();
|
|
@@ -15549,7 +15549,7 @@ function $k(A) {
|
|
|
15549
15549
|
A.preventDefault(), A.stopPropagation();
|
|
15550
15550
|
}
|
|
15551
15551
|
function AN(A) {
|
|
15552
|
-
const [e, t] =
|
|
15552
|
+
const [e, t] = xA(A), [n, i] = xA(!1);
|
|
15553
15553
|
return A !== e && (i(!0), t(A)), n;
|
|
15554
15554
|
}
|
|
15555
15555
|
const eN = {
|
|
@@ -15948,11 +15948,11 @@ function IN() {
|
|
|
15948
15948
|
);
|
|
15949
15949
|
throw O.name = "Invariant Violation", O;
|
|
15950
15950
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
15951
|
-
var
|
|
15952
|
-
!W[
|
|
15951
|
+
var mA = tA + ":" + nA;
|
|
15952
|
+
!W[mA] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
15953
15953
|
_ < 3 && (r(
|
|
15954
15954
|
"You are manually calling a React.PropTypes validation function for the `" + sA + "` prop on `" + tA + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
15955
|
-
), W[
|
|
15955
|
+
), W[mA] = !0, _++);
|
|
15956
15956
|
}
|
|
15957
15957
|
}
|
|
15958
15958
|
return q[nA] == null ? D ? q[nA] === null ? new U("The " + UA + " `" + sA + "` is marked as required " + ("in `" + tA + "`, but its value is `null`.")) : new U("The " + UA + " `" + sA + "` is marked as required in " + ("`" + tA + "`, but its value is `undefined`.")) : null : M(q, nA, tA, UA, sA);
|
|
@@ -16037,8 +16037,8 @@ function IN() {
|
|
|
16037
16037
|
if (Q(nA, M[tA]))
|
|
16038
16038
|
return null;
|
|
16039
16039
|
var UA = JSON.stringify(M, function(fA, O) {
|
|
16040
|
-
var
|
|
16041
|
-
return
|
|
16040
|
+
var mA = H(O);
|
|
16041
|
+
return mA === "symbol" ? String(O) : O;
|
|
16042
16042
|
});
|
|
16043
16043
|
return new U("Invalid " + D + " `" + q + "` of value `" + String(nA) + "` " + ("supplied to `" + J + "`, expected one of " + UA + "."));
|
|
16044
16044
|
}
|
|
@@ -16078,8 +16078,8 @@ function IN() {
|
|
|
16078
16078
|
return null;
|
|
16079
16079
|
O.data && n(O.data, "expectedType") && UA.push(O.data.expectedType);
|
|
16080
16080
|
}
|
|
16081
|
-
var
|
|
16082
|
-
return new U("Invalid " + nA + " `" + tA + "` supplied to " + ("`" + q + "`" +
|
|
16081
|
+
var mA = UA.length > 0 ? ", expected one of type [" + UA.join(", ") + "]" : "";
|
|
16082
|
+
return new U("Invalid " + nA + " `" + tA + "` supplied to " + ("`" + q + "`" + mA + "."));
|
|
16083
16083
|
}
|
|
16084
16084
|
return R(f);
|
|
16085
16085
|
}
|
|
@@ -16266,7 +16266,7 @@ function Jl(A, e) {
|
|
|
16266
16266
|
return typeof A == "function" ? A(e) : A && (A.current = e), A;
|
|
16267
16267
|
}
|
|
16268
16268
|
function uN(A, e) {
|
|
16269
|
-
var t =
|
|
16269
|
+
var t = xA(function() {
|
|
16270
16270
|
return {
|
|
16271
16271
|
// value
|
|
16272
16272
|
value: A,
|
|
@@ -16454,7 +16454,7 @@ var RM = PI({}, function(A) {
|
|
|
16454
16454
|
async: !0,
|
|
16455
16455
|
ssr: typeof document < "u"
|
|
16456
16456
|
}), hN = /* @__PURE__ */ Wn(void 0), SN = [], zI = /* @__PURE__ */ dt(function(e, t) {
|
|
16457
|
-
var n, i =
|
|
16457
|
+
var n, i = xA(), r = i[0], o = i[1], B = JA(), a = JA(!1), g = JA(null), l = xA({}), E = l[1], I = e.children, c = e.disabled, Q = c === void 0 ? !1 : c, U = e.noFocusGuards, R = U === void 0 ? !1 : U, C = e.persistentFocus, u = C === void 0 ? !1 : C, F = e.crossFrame, h = F === void 0 ? !0 : F, d = e.autoFocus, w = d === void 0 ? !0 : d, V = e.allowTextSelection, x = e.group, N = e.className, S = e.whiteList, G = e.hasPositiveIndices, L = e.shards, eA = L === void 0 ? SN : L, k = e.as, z = k === void 0 ? "div" : k, K = e.lockProps, H = K === void 0 ? {} : K, EA = e.sideCar, cA = e.returnFocus, M = cA === void 0 ? !1 : cA, W = e.focusOptions, _ = e.onActivation, f = e.onDeactivation, J = xA({}), D = J[0], q = oA(function(aA) {
|
|
16458
16458
|
var wA = aA.captureFocusRestore;
|
|
16459
16459
|
if (!g.current) {
|
|
16460
16460
|
var CA, FA = (CA = document) == null ? void 0 : CA.activeElement;
|
|
@@ -16482,7 +16482,7 @@ var RM = PI({}, function(A) {
|
|
|
16482
16482
|
process.env.NODE_ENV !== "production" && (typeof V < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), PA(function() {
|
|
16483
16483
|
!B.current && typeof z != "string" && console.error("FocusLock: could not obtain ref to internal node");
|
|
16484
16484
|
}, []));
|
|
16485
|
-
var O = $i((n = {}, n[lM] = Q && "disabled", n[$E] = x, n), H),
|
|
16485
|
+
var O = $i((n = {}, n[lM] = Q && "disabled", n[$E] = x, n), H), mA = R !== !0, QA = mA && R !== "tail", Z = EM([t, fA]), $ = zA(function() {
|
|
16486
16486
|
return {
|
|
16487
16487
|
observed: B,
|
|
16488
16488
|
shards: eA,
|
|
@@ -16490,7 +16490,7 @@ var RM = PI({}, function(A) {
|
|
|
16490
16490
|
active: a.current
|
|
16491
16491
|
};
|
|
16492
16492
|
}, [Q, a.current, eA, r]);
|
|
16493
|
-
return /* @__PURE__ */ _e.createElement(xB, null,
|
|
16493
|
+
return /* @__PURE__ */ _e.createElement(xB, null, mA && [
|
|
16494
16494
|
/* @__PURE__ */ _e.createElement("div", {
|
|
16495
16495
|
key: "guard-first",
|
|
16496
16496
|
"data-focus-guard": !0,
|
|
@@ -17621,7 +17621,7 @@ function Zb(A) {
|
|
|
17621
17621
|
return e.length === 1 || e.length > 1 && /[^a-zA-Z0-9]/.test(e);
|
|
17622
17622
|
}
|
|
17623
17623
|
function Jb(A = {}) {
|
|
17624
|
-
const { timeout: e = 300, preventDefault: t = () => !0 } = A, [n, i] =
|
|
17624
|
+
const { timeout: e = 300, preventDefault: t = () => !0 } = A, [n, i] = xA([]), r = JA(void 0), o = () => {
|
|
17625
17625
|
r.current && (clearTimeout(r.current), r.current = null);
|
|
17626
17626
|
}, B = () => {
|
|
17627
17627
|
o(), r.current = setTimeout(() => {
|
|
@@ -18335,7 +18335,7 @@ function b3(A) {
|
|
|
18335
18335
|
var eA, k = h === "y" ? Vt : mt, z = h === "y" ? An : en, K = h === "y" ? "height" : "width", H = w[h], EA = H + R[k], cA = H - R[z], M = c ? -x[K] / 2 : 0, W = u === to ? V[K] : x[K], _ = u === to ? -x[K] : -V[K], f = e.elements.arrow, J = c && f ? Bc(f) : {
|
|
18336
18336
|
width: 0,
|
|
18337
18337
|
height: 0
|
|
18338
|
-
}, D = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ed(), q = D[k], nA = D[z], tA = nB(0, V[K], J[K]), UA = F ? V[K] / 2 - M - tA - q - S.mainAxis : W - tA - q - S.mainAxis, sA = F ? -V[K] / 2 + M + tA + nA + S.mainAxis : _ + tA + nA + S.mainAxis, fA = e.elements.arrow && OB(e.elements.arrow), O = fA ? h === "y" ? fA.clientTop || 0 : fA.clientLeft || 0 : 0,
|
|
18338
|
+
}, D = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ed(), q = D[k], nA = D[z], tA = nB(0, V[K], J[K]), UA = F ? V[K] / 2 - M - tA - q - S.mainAxis : W - tA - q - S.mainAxis, sA = F ? -V[K] / 2 + M + tA + nA + S.mainAxis : _ + tA + nA + S.mainAxis, fA = e.elements.arrow && OB(e.elements.arrow), O = fA ? h === "y" ? fA.clientTop || 0 : fA.clientLeft || 0 : 0, mA = (eA = G == null ? void 0 : G[h]) != null ? eA : 0, QA = H + UA - mA - O, Z = H + sA - mA, $ = nB(c ? ag(EA, QA) : EA, H, c ? qi(cA, Z) : cA);
|
|
18339
18339
|
w[h] = $, L[h] = $ - H;
|
|
18340
18340
|
}
|
|
18341
18341
|
if (B) {
|
|
@@ -18886,7 +18886,7 @@ function Bd(A = {}) {
|
|
|
18886
18886
|
onMouseOver: I,
|
|
18887
18887
|
onMouseLeave: c,
|
|
18888
18888
|
...Q
|
|
18889
|
-
} = A, [U, R] =
|
|
18889
|
+
} = A, [U, R] = xA(!0), [C, u] = xA(!1), F = gW(), h = (H) => {
|
|
18890
18890
|
H && H.tagName !== "BUTTON" && R(!1);
|
|
18891
18891
|
}, d = U ? E : E || 0, w = t && !n, V = oA(
|
|
18892
18892
|
(H) => {
|
|
@@ -19073,7 +19073,7 @@ function UW(A = {}) {
|
|
|
19073
19073
|
enabled: x || Q,
|
|
19074
19074
|
placement: E,
|
|
19075
19075
|
direction: c
|
|
19076
|
-
}), [eA, k] =
|
|
19076
|
+
}), [eA, k] = xA(-1);
|
|
19077
19077
|
iD(R, {
|
|
19078
19078
|
focusRef: C,
|
|
19079
19079
|
visible: x
|
|
@@ -19582,7 +19582,7 @@ class NW {
|
|
|
19582
19582
|
}
|
|
19583
19583
|
const gs = new NW();
|
|
19584
19584
|
function sd(A, e) {
|
|
19585
|
-
const [t, n] =
|
|
19585
|
+
const [t, n] = xA(0);
|
|
19586
19586
|
return PA(() => {
|
|
19587
19587
|
const i = A.current;
|
|
19588
19588
|
if (i) {
|
|
@@ -19620,7 +19620,7 @@ function bW(A) {
|
|
|
19620
19620
|
N.key === "Escape" && (N.stopPropagation(), r && (t == null || t()), a == null || a());
|
|
19621
19621
|
},
|
|
19622
19622
|
[r, t, a]
|
|
19623
|
-
), [u, F] =
|
|
19623
|
+
), [u, F] = xA(!1), [h, d] = xA(!1), w = oA(
|
|
19624
19624
|
(N = {}, S = null) => ({
|
|
19625
19625
|
role: "dialog",
|
|
19626
19626
|
...N,
|
|
@@ -20890,7 +20890,7 @@ function Zv(A) {
|
|
|
20890
20890
|
orientation: B = "horizontal",
|
|
20891
20891
|
direction: a = "ltr",
|
|
20892
20892
|
...g
|
|
20893
|
-
} = A, [l, E] =
|
|
20893
|
+
} = A, [l, E] = xA(e ?? 0), [I, c] = R0({
|
|
20894
20894
|
defaultValue: e ?? 0,
|
|
20895
20895
|
value: n,
|
|
20896
20896
|
onChange: t
|
|
@@ -21264,8 +21264,8 @@ function eH(A = {}) {
|
|
|
21264
21264
|
const O = H.current;
|
|
21265
21265
|
if (!O)
|
|
21266
21266
|
return null;
|
|
21267
|
-
const
|
|
21268
|
-
return
|
|
21267
|
+
const mA = U0(O);
|
|
21268
|
+
return mA.localName === "body" ? ja(H) : mA;
|
|
21269
21269
|
},
|
|
21270
21270
|
"scroll",
|
|
21271
21271
|
() => {
|
|
@@ -21278,9 +21278,9 @@ function eH(A = {}) {
|
|
|
21278
21278
|
cA(), W();
|
|
21279
21279
|
}, [cA, W]), ha(() => H.current, "pointerleave", D);
|
|
21280
21280
|
const UA = oA(
|
|
21281
|
-
(O = {},
|
|
21281
|
+
(O = {}, mA = null) => ({
|
|
21282
21282
|
...O,
|
|
21283
|
-
ref: gt(H,
|
|
21283
|
+
ref: gt(H, mA, S),
|
|
21284
21284
|
onPointerEnter: Be(O.onPointerEnter, (Z) => {
|
|
21285
21285
|
Z.pointerType !== "touch" && J();
|
|
21286
21286
|
}),
|
|
@@ -21300,7 +21300,7 @@ function eH(A = {}) {
|
|
|
21300
21300
|
S
|
|
21301
21301
|
]
|
|
21302
21302
|
), sA = oA(
|
|
21303
|
-
(O = {},
|
|
21303
|
+
(O = {}, mA = null) => G(
|
|
21304
21304
|
{
|
|
21305
21305
|
...O,
|
|
21306
21306
|
style: {
|
|
@@ -21309,18 +21309,18 @@ function eH(A = {}) {
|
|
|
21309
21309
|
[Bt.arrowShadowColor.var]: U
|
|
21310
21310
|
}
|
|
21311
21311
|
},
|
|
21312
|
-
|
|
21312
|
+
mA
|
|
21313
21313
|
),
|
|
21314
21314
|
[G, Q, U]
|
|
21315
21315
|
), fA = oA(
|
|
21316
|
-
(O = {},
|
|
21316
|
+
(O = {}, mA = null) => {
|
|
21317
21317
|
const QA = {
|
|
21318
21318
|
...O.style,
|
|
21319
21319
|
position: "relative",
|
|
21320
21320
|
transformOrigin: Bt.transformOrigin.varRef
|
|
21321
21321
|
};
|
|
21322
21322
|
return {
|
|
21323
|
-
ref:
|
|
21323
|
+
ref: mA,
|
|
21324
21324
|
...w,
|
|
21325
21325
|
...O,
|
|
21326
21326
|
id: K,
|
|
@@ -21877,7 +21877,7 @@ const iH = {
|
|
|
21877
21877
|
fontFamilySubtitle: N = "Lato",
|
|
21878
21878
|
...S
|
|
21879
21879
|
}, G) => {
|
|
21880
|
-
const [L, eA] =
|
|
21880
|
+
const [L, eA] = xA(""), k = (z) => {
|
|
21881
21881
|
eA(z), i(z);
|
|
21882
21882
|
};
|
|
21883
21883
|
return /* @__PURE__ */ s.jsxs(zB, { isRequired: C, children: [
|
|
@@ -22223,7 +22223,7 @@ const fz = ({
|
|
|
22223
22223
|
initialImage: o,
|
|
22224
22224
|
isReadOnly: B = !1
|
|
22225
22225
|
}) => {
|
|
22226
|
-
const [a, g] =
|
|
22226
|
+
const [a, g] = xA(null);
|
|
22227
22227
|
PA(() => {
|
|
22228
22228
|
typeof o == "string" ? g(o) : o instanceof File ? g(URL.createObjectURL(o)) : g(null);
|
|
22229
22229
|
}, [o]);
|
|
@@ -24355,7 +24355,7 @@ function tf() {
|
|
|
24355
24355
|
z.current && (cA({
|
|
24356
24356
|
type: "openDialog"
|
|
24357
24357
|
}), L(), z.current.value = null, z.current.click());
|
|
24358
|
-
}, [cA, L, eA, C, sA, q, G, B]),
|
|
24358
|
+
}, [cA, L, eA, C, sA, q, G, B]), mA = oA(function(X) {
|
|
24359
24359
|
!k.current || !k.current.isEqualNode(X.target) || (X.key === " " || X.key === "Enter" || X.keyCode === 32 || X.keyCode === 13) && (X.preventDefault(), O());
|
|
24360
24360
|
}, [k, O]), QA = oA(function() {
|
|
24361
24361
|
cA({
|
|
@@ -24379,7 +24379,7 @@ function tf() {
|
|
|
24379
24379
|
return function() {
|
|
24380
24380
|
var X = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, BA = X.refKey, y = BA === void 0 ? "ref" : BA, P = X.role, gA = X.onKeyDown, SA = X.onFocus, VA = X.onBlur, re = X.onClick, de = X.onDragEnter, xe = X.onDragOver, $A = X.onDragLeave, Se = X.onDrop, Ue = Ug(X, SG);
|
|
24381
24381
|
return He(He(Us({
|
|
24382
|
-
onKeyDown: wA(dn(gA,
|
|
24382
|
+
onKeyDown: wA(dn(gA, mA)),
|
|
24383
24383
|
onFocus: wA(dn(SA, QA)),
|
|
24384
24384
|
onBlur: wA(dn(VA, Z)),
|
|
24385
24385
|
onClick: aA(dn(re, $)),
|
|
@@ -24392,7 +24392,7 @@ function tf() {
|
|
|
24392
24392
|
tabIndex: 0
|
|
24393
24393
|
} : {}), Ue);
|
|
24394
24394
|
};
|
|
24395
|
-
}, [k,
|
|
24395
|
+
}, [k, mA, QA, Z, $, nA, tA, UA, fA, d, w, n]), YA = oA(function(X) {
|
|
24396
24396
|
X.stopPropagation();
|
|
24397
24397
|
}, []), RA = zA(function() {
|
|
24398
24398
|
return function() {
|
|
@@ -24610,7 +24610,7 @@ const Dz = ({
|
|
|
24610
24610
|
minHeight: F = "auto",
|
|
24611
24611
|
type: h = "text"
|
|
24612
24612
|
}, d) => {
|
|
24613
|
-
const [w, V] =
|
|
24613
|
+
const [w, V] = xA(!0), x = (L) => {
|
|
24614
24614
|
o(L.target.value);
|
|
24615
24615
|
}, N = ve[l], S = N[200], G = N[300];
|
|
24616
24616
|
return /* @__PURE__ */ s.jsxs(zB, { isRequired: B, children: [
|
|
@@ -25065,7 +25065,7 @@ var HG = function(A) {
|
|
|
25065
25065
|
}
|
|
25066
25066
|
var z, K, H, EA = Array.prototype, cA = Function.prototype, M = Object.prototype, W = F["__core-js_shared__"], _ = (z = /[^.]+$/.exec(W && W.keys && W.keys.IE_PROTO || "")) ? "Symbol(src)_1." + z : "", f = cA.toString, J = M.hasOwnProperty, D = M.toString, q = RegExp("^" + f.call(J).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), nA = F.Symbol, tA = F.Uint8Array, UA = M.propertyIsEnumerable, sA = EA.splice, fA = (K = Object.keys, H = Object, function(p) {
|
|
25067
25067
|
return K(H(p));
|
|
25068
|
-
}), O = rn(F, "DataView"),
|
|
25068
|
+
}), O = rn(F, "DataView"), mA = rn(F, "Map"), QA = rn(F, "Promise"), Z = rn(F, "Set"), $ = rn(F, "WeakMap"), aA = rn(Object, "create"), wA = on(O), CA = on(mA), FA = on(QA), TA = on(Z), YA = on($), RA = nA ? nA.prototype : void 0, X = RA ? RA.valueOf : void 0, BA = RA ? RA.toString : void 0;
|
|
25069
25069
|
function y(p) {
|
|
25070
25070
|
var Y = -1, AA = p ? p.length : 0;
|
|
25071
25071
|
for (this.clear(); ++Y < AA; ) {
|
|
@@ -25136,7 +25136,7 @@ var HG = function(A) {
|
|
|
25136
25136
|
var AA = this.__data__, iA = de(AA, p);
|
|
25137
25137
|
return iA < 0 ? AA.push([p, Y]) : AA[iA][1] = Y, this;
|
|
25138
25138
|
}, gA.prototype.clear = function() {
|
|
25139
|
-
this.__data__ = { hash: new y(), map: new (
|
|
25139
|
+
this.__data__ = { hash: new y(), map: new (mA || P)(), string: new y() };
|
|
25140
25140
|
}, gA.prototype.delete = function(p) {
|
|
25141
25141
|
return Ei(this, p).delete(p);
|
|
25142
25142
|
}, gA.prototype.get = function(p) {
|
|
@@ -25161,7 +25161,7 @@ var HG = function(A) {
|
|
|
25161
25161
|
var AA = this.__data__;
|
|
25162
25162
|
if (AA instanceof P) {
|
|
25163
25163
|
var iA = AA.__data__;
|
|
25164
|
-
if (!
|
|
25164
|
+
if (!mA || iA.length < 199) return iA.push([p, Y]), this;
|
|
25165
25165
|
AA = this.__data__ = new gA(iA);
|
|
25166
25166
|
}
|
|
25167
25167
|
return AA.set(p, Y), this;
|
|
@@ -25388,7 +25388,7 @@ var HG = function(A) {
|
|
|
25388
25388
|
return AA != null && AA[p] === Y && (Y !== void 0 || p in Object(AA));
|
|
25389
25389
|
};
|
|
25390
25390
|
}
|
|
25391
|
-
(O && jt(new O(new ArrayBuffer(1))) != "[object DataView]" ||
|
|
25391
|
+
(O && jt(new O(new ArrayBuffer(1))) != "[object DataView]" || mA && jt(new mA()) != o || QA && jt(QA.resolve()) != "[object Promise]" || Z && jt(new Z()) != a || $ && jt(new $()) != "[object WeakMap]") && (jt = function(p) {
|
|
25392
25392
|
var Y = D.call(p), AA = Y == B ? p.constructor : void 0, iA = AA ? on(AA) : void 0;
|
|
25393
25393
|
if (iA) switch (iA) {
|
|
25394
25394
|
case wA:
|
|
@@ -25595,16 +25595,16 @@ var HG = function(A) {
|
|
|
25595
25595
|
return q = W === !0, [(D = []).concat.apply(D, r(M.map(function(tA) {
|
|
25596
25596
|
var UA = { name: tA[0], regions: tA[1], iso2: tA[2], countryCode: tA[3], dialCode: tA[3], format: k(_, tA[3], tA[4], f, J), priority: tA[5] || 0 }, sA = [];
|
|
25597
25597
|
return tA[6] && tA[6].map(function(fA) {
|
|
25598
|
-
var O = function(
|
|
25598
|
+
var O = function(mA) {
|
|
25599
25599
|
for (var QA = 1; QA < arguments.length; QA++) {
|
|
25600
25600
|
var Z = arguments[QA] != null ? arguments[QA] : {}, $ = Object.keys(Z);
|
|
25601
25601
|
typeof Object.getOwnPropertySymbols == "function" && ($ = $.concat(Object.getOwnPropertySymbols(Z).filter(function(aA) {
|
|
25602
25602
|
return Object.getOwnPropertyDescriptor(Z, aA).enumerable;
|
|
25603
25603
|
}))), $.forEach(function(aA) {
|
|
25604
|
-
n(
|
|
25604
|
+
n(mA, aA, Z[aA]);
|
|
25605
25605
|
});
|
|
25606
25606
|
}
|
|
25607
|
-
return
|
|
25607
|
+
return mA;
|
|
25608
25608
|
}({}, UA);
|
|
25609
25609
|
O.dialCode = tA[3] + fA, O.isAreaCode = !0, O.areaCodeLength = fA.length, sA.push(O);
|
|
25610
25610
|
}), sA.length > 0 ? (UA.mainCode = !0, q || W.constructor.name === "Array" && W.includes(tA[2]) ? (UA.hasAreaCodes = !0, [UA].concat(sA)) : (nA = nA.concat(sA), [UA])) : [UA];
|
|
@@ -25635,7 +25635,7 @@ var HG = function(A) {
|
|
|
25635
25635
|
return J[1] && (_[4] = J[1]), J[3] && (_[5] = J[3]), J[2] && (_[6] = J[2]), _;
|
|
25636
25636
|
});
|
|
25637
25637
|
}
|
|
25638
|
-
var EA = function M(W, _, f, J, D, q, nA, tA, UA, sA, fA, O,
|
|
25638
|
+
var EA = function M(W, _, f, J, D, q, nA, tA, UA, sA, fA, O, mA, QA) {
|
|
25639
25639
|
a(this, M), this.filterRegions = function(RA, X) {
|
|
25640
25640
|
if (typeof RA == "string") {
|
|
25641
25641
|
var BA = RA;
|
|
@@ -25691,9 +25691,9 @@ var HG = function(A) {
|
|
|
25691
25691
|
var Z = function(RA, X, BA) {
|
|
25692
25692
|
var y = [];
|
|
25693
25693
|
return K(y, 1, RA, !0), K(y, 3, X), K(y, 2, BA), y;
|
|
25694
|
-
}(tA, UA, sA), $ = H(JSON.parse(JSON.stringify(L)), Z), aA = H(JSON.parse(JSON.stringify(eA)), Z), wA = G(z($, W, O,
|
|
25694
|
+
}(tA, UA, sA), $ = H(JSON.parse(JSON.stringify(L)), Z), aA = H(JSON.parse(JSON.stringify(eA)), Z), wA = G(z($, W, O, mA, QA), 2), CA = wA[0], FA = wA[1];
|
|
25695
25695
|
if (_) {
|
|
25696
|
-
var TA = G(z(aA, W, O,
|
|
25696
|
+
var TA = G(z(aA, W, O, mA, QA), 2), YA = TA[0];
|
|
25697
25697
|
TA[1], CA = this.sortTerritories(YA, CA);
|
|
25698
25698
|
}
|
|
25699
25699
|
f && (CA = this.filterRegions(f, CA)), this.onlyCountries = this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(J, CA, nA.includes("onlyCountries")), q), fA, nA.includes("onlyCountries")), this.preferredCountries = D.length === 0 ? [] : this.localizeCountries(this.getFilteredCountryList(D, CA, nA.includes("preferredCountries")), fA, nA.includes("preferredCountries")), this.hiddenAreaCodes = this.excludeCountries(this.getFilteredCountryList(J, FA), q);
|
|
@@ -25922,8 +25922,8 @@ var HG = function(A) {
|
|
|
25922
25922
|
q = J.disableInitialCountryGuess ? 0 : fA.length > 1 ? D.guessSelectedCountry(fA.substring(0, 6), J.country, tA, sA) || 0 : J.country && tA.find(function(Z) {
|
|
25923
25923
|
return Z.iso2 == J.country;
|
|
25924
25924
|
}) || 0;
|
|
25925
|
-
var O,
|
|
25926
|
-
O = fA === "" && q === 0 ? "" : D.formatNumber((J.disableCountryCode ? "" :
|
|
25925
|
+
var O, mA = fA.length < 2 && q && !x()(fA, q.dialCode) ? q.dialCode : "";
|
|
25926
|
+
O = fA === "" && q === 0 ? "" : D.formatNumber((J.disableCountryCode ? "" : mA) + fA, q.name ? q : void 0);
|
|
25927
25927
|
var QA = tA.findIndex(function(Z) {
|
|
25928
25928
|
return Z == q;
|
|
25929
25929
|
});
|
|
@@ -25943,17 +25943,17 @@ var HG = function(A) {
|
|
|
25943
25943
|
if (J === null) return this.setState({ selectedCountry: 0, formattedNumber: "" });
|
|
25944
25944
|
var D = this.state, q = D.onlyCountries, nA = D.selectedCountry, tA = D.hiddenAreaCodes, UA = this.props, sA = UA.country, fA = UA.prefix;
|
|
25945
25945
|
if (J === "") return this.setState({ selectedCountry: nA, formattedNumber: "" });
|
|
25946
|
-
var O,
|
|
25947
|
-
if (nA && x()(J, fA + nA.dialCode))
|
|
25946
|
+
var O, mA, QA = J.replace(/\D/g, "");
|
|
25947
|
+
if (nA && x()(J, fA + nA.dialCode)) mA = this.formatNumber(QA, nA), this.setState({ formattedNumber: mA });
|
|
25948
25948
|
else {
|
|
25949
25949
|
var Z = (O = this.props.disableCountryGuess ? nA : this.guessSelectedCountry(QA.substring(0, 6), sA, q, tA) || nA) && x()(QA, fA + O.dialCode) ? O.dialCode : "";
|
|
25950
|
-
|
|
25950
|
+
mA = this.formatNumber((this.props.disableCountryCode ? "" : Z) + QA, O || void 0), this.setState({ selectedCountry: O, formattedNumber: mA });
|
|
25951
25951
|
}
|
|
25952
25952
|
} }, { key: "render", value: function() {
|
|
25953
|
-
var J, D, q, nA = this, tA = this.state, UA = tA.onlyCountries, sA = tA.selectedCountry, fA = tA.showDropdown, O = tA.formattedNumber,
|
|
25953
|
+
var J, D, q, nA = this, tA = this.state, UA = tA.onlyCountries, sA = tA.selectedCountry, fA = tA.showDropdown, O = tA.formattedNumber, mA = tA.hiddenAreaCodes, QA = this.props, Z = QA.disableDropdown, $ = QA.renderStringAsFlag, aA = QA.isValid, wA = QA.defaultErrorMessage, CA = QA.specialLabel;
|
|
25954
25954
|
if (typeof aA == "boolean") D = aA;
|
|
25955
25955
|
else {
|
|
25956
|
-
var FA = aA(O.replace(/\D/g, ""), sA, UA,
|
|
25956
|
+
var FA = aA(O.replace(/\D/g, ""), sA, UA, mA);
|
|
25957
25957
|
typeof FA == "boolean" ? (D = FA) === !1 && (q = wA) : (D = !1, q = FA);
|
|
25958
25958
|
}
|
|
25959
25959
|
var TA = S()((n(J = {}, this.props.containerClass, !0), n(J, "react-tel-input", !0), J)), YA = S()({ arrow: !0, up: fA }), RA = S()(n({ "form-control": !0, "invalid-number": !D, open: fA }, this.props.inputClass, !0)), X = S()({ "selected-flag": !0, open: fA }), BA = S()(n({ "flag-dropdown": !0, "invalid-number": !D, open: fA }, this.props.buttonClass, !0)), y = "flag ".concat(sA && sA.iso2);
|
|
@@ -26013,7 +26013,7 @@ const GG = /* @__PURE__ */ go(HG), pz = ({
|
|
|
26013
26013
|
isDisabled: l = !1,
|
|
26014
26014
|
isReadOnly: E = !1
|
|
26015
26015
|
}) => {
|
|
26016
|
-
const [I, c] =
|
|
26016
|
+
const [I, c] = xA(!0), Q = ve[a], U = Q[200], R = Q[300], C = (u, F) => {
|
|
26017
26017
|
i && i(u, F);
|
|
26018
26018
|
};
|
|
26019
26019
|
return /* @__PURE__ */ s.jsx(ZA, { children: /* @__PURE__ */ s.jsxs(zB, { isRequired: g, children: [
|
|
@@ -30295,7 +30295,7 @@ function $J(A) {
|
|
|
30295
30295
|
codeTextData: N,
|
|
30296
30296
|
data: N,
|
|
30297
30297
|
codeFlowValue: N,
|
|
30298
|
-
definition: r(
|
|
30298
|
+
definition: r(mA),
|
|
30299
30299
|
definitionDestinationString: o,
|
|
30300
30300
|
definitionLabelString: o,
|
|
30301
30301
|
definitionTitleString: o,
|
|
@@ -30700,7 +30700,7 @@ function $J(A) {
|
|
|
30700
30700
|
value: ""
|
|
30701
30701
|
};
|
|
30702
30702
|
}
|
|
30703
|
-
function
|
|
30703
|
+
function mA() {
|
|
30704
30704
|
return {
|
|
30705
30705
|
type: "definition",
|
|
30706
30706
|
identifier: "",
|
|
@@ -35838,7 +35838,7 @@ function ez(A) {
|
|
|
35838
35838
|
return ae({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 2.5a5.5 5.5 0 0 1 3.096 10.047 9.005 9.005 0 0 1 5.9 8.181.75.75 0 1 1-1.499.044 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.5-.045 9.005 9.005 0 0 1 5.9-8.18A5.5 5.5 0 0 1 12 2.5ZM8 8a4 4 0 1 0 8 0 4 4 0 0 0-8 0Z" }, child: [] }] })(A);
|
|
35839
35839
|
}
|
|
35840
35840
|
const sw = ({ iconDefault: A, iconHover: e, isActive: t }) => {
|
|
35841
|
-
const [n, i] =
|
|
35841
|
+
const [n, i] = xA(!1);
|
|
35842
35842
|
return /* @__PURE__ */ s.jsx(
|
|
35843
35843
|
"span",
|
|
35844
35844
|
{
|
|
@@ -35865,7 +35865,7 @@ const sw = ({ iconDefault: A, iconHover: e, isActive: t }) => {
|
|
|
35865
35865
|
menuOptions: l = [],
|
|
35866
35866
|
...E
|
|
35867
35867
|
}) => {
|
|
35868
|
-
const I = e || Hi.colors.primary[500], c = at(I, 0.7), Q = at(I, 0.8), U = l.filter((u) => u.isVisible), [R, C] =
|
|
35868
|
+
const I = e || Hi.colors.primary[500], c = at(I, 0.7), Q = at(I, 0.8), U = l.filter((u) => u.isVisible), [R, C] = xA(
|
|
35869
35869
|
Array(U.length).fill(!1)
|
|
35870
35870
|
);
|
|
35871
35871
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -36004,7 +36004,7 @@ const sw = ({ iconDefault: A, iconHover: e, isActive: t }) => {
|
|
|
36004
36004
|
onSend: e,
|
|
36005
36005
|
disabled: t = !1
|
|
36006
36006
|
}) => {
|
|
36007
|
-
const [n, i] =
|
|
36007
|
+
const [n, i] = xA(""), r = JA(null), [o, B] = xA("3xl"), a = (E) => {
|
|
36008
36008
|
if (i(E.target.value), r.current) {
|
|
36009
36009
|
r.current.style.height = "auto";
|
|
36010
36010
|
const I = r.current.scrollHeight;
|
|
@@ -36070,7 +36070,7 @@ const sw = ({ iconDefault: A, iconHover: e, isActive: t }) => {
|
|
|
36070
36070
|
) })
|
|
36071
36071
|
] }) });
|
|
36072
36072
|
}, kz = ({ color: A, menuOptions: e, currentUrl: t, ...n }) => {
|
|
36073
|
-
const i = ["hub", "play", "elevate", "assist", "talent", "ad", "collect", "localhost"], [r, o] =
|
|
36073
|
+
const i = ["hub", "play", "elevate", "assist", "talent", "ad", "collect", "localhost"], [r, o] = xA(null), a = `sidebarOpen_${window.location.hostname.split(".").find((C) => i.includes(C)) || "default"}`, [g, l] = xA(() => {
|
|
36074
36074
|
const Q = localStorage.getItem(a);
|
|
36075
36075
|
return Q === null ? (localStorage.setItem(a, "true"), !0) : Q === "true";
|
|
36076
36076
|
}), E = A || ve.primary[400], I = xs(ve, `${E.split(".")[0]}.300`), c = () => {
|
|
@@ -36310,27 +36310,25 @@ const Wz = ({
|
|
|
36310
36310
|
colorIcon: e,
|
|
36311
36311
|
onClickPinned: t,
|
|
36312
36312
|
onClickConversation: n,
|
|
36313
|
-
onExpandedChange: i
|
|
36314
|
-
index: r,
|
|
36315
|
-
onChange: o
|
|
36313
|
+
onExpandedChange: i
|
|
36316
36314
|
}) => {
|
|
36317
|
-
const [
|
|
36318
|
-
() => A.map((
|
|
36315
|
+
const [r, o] = xA(
|
|
36316
|
+
() => A.map((a) => Array.isArray(a.content) ? a.content.map((g) => g.is_pinned) : [])
|
|
36319
36317
|
);
|
|
36320
36318
|
PA(() => {
|
|
36321
|
-
|
|
36322
|
-
if (!Array.isArray(
|
|
36323
|
-
const
|
|
36324
|
-
return
|
|
36319
|
+
o((a) => A.map((g, l) => {
|
|
36320
|
+
if (!Array.isArray(g.content)) return [];
|
|
36321
|
+
const E = a[l] || [];
|
|
36322
|
+
return g.content.map((I, c) => c < E.length ? E[c] : g.title === "Favorites" ? !0 : I.is_pinned);
|
|
36325
36323
|
}));
|
|
36326
36324
|
}, [A]);
|
|
36327
|
-
const
|
|
36328
|
-
if (
|
|
36329
|
-
const
|
|
36330
|
-
return
|
|
36325
|
+
const B = (a, g, l) => {
|
|
36326
|
+
if (o((E) => {
|
|
36327
|
+
const I = [...E], c = [...I[a]], Q = !c[g];
|
|
36328
|
+
return c[g] = Q, I[a] = c, I;
|
|
36331
36329
|
}), t) {
|
|
36332
|
-
const
|
|
36333
|
-
t(
|
|
36330
|
+
const E = !r[a][g];
|
|
36331
|
+
t(l, E);
|
|
36334
36332
|
}
|
|
36335
36333
|
};
|
|
36336
36334
|
return /* @__PURE__ */ s.jsx(wt, { borderRadius: "1px", width: "100%", padding: ".5rem", children: /* @__PURE__ */ s.jsx(
|
|
@@ -36339,14 +36337,13 @@ const Wz = ({
|
|
|
36339
36337
|
defaultIndex: [0],
|
|
36340
36338
|
allowMultiple: !0,
|
|
36341
36339
|
width: "100%",
|
|
36342
|
-
|
|
36343
|
-
|
|
36344
|
-
|
|
36345
|
-
|
|
36346
|
-
|
|
36347
|
-
i && i(I);
|
|
36340
|
+
onChange: (a) => {
|
|
36341
|
+
const g = Array.isArray(a) ? a : [a], l = A.map(
|
|
36342
|
+
(E, I) => g.includes(I)
|
|
36343
|
+
);
|
|
36344
|
+
i && i(l);
|
|
36348
36345
|
},
|
|
36349
|
-
children: A.map((
|
|
36346
|
+
children: A.map((a, g) => !Array.isArray(a.content) || a.content.length === 0 ? null : /* @__PURE__ */ s.jsxs(Ou, { border: "none", children: [
|
|
36350
36347
|
/* @__PURE__ */ s.jsx("h2", { children: /* @__PURE__ */ s.jsxs(zu, { children: [
|
|
36351
36348
|
/* @__PURE__ */ s.jsx(
|
|
36352
36349
|
ZA,
|
|
@@ -36357,12 +36354,12 @@ const Wz = ({
|
|
|
36357
36354
|
fontSize: "1rem",
|
|
36358
36355
|
lineHeight: "1.5rem",
|
|
36359
36356
|
fontWeight: 700,
|
|
36360
|
-
children:
|
|
36357
|
+
children: a.title
|
|
36361
36358
|
}
|
|
36362
36359
|
),
|
|
36363
36360
|
/* @__PURE__ */ s.jsx(ju, { boxSize: 4 })
|
|
36364
36361
|
] }) }),
|
|
36365
|
-
/* @__PURE__ */ s.jsx(Xu, { pb: 4, textAlign: "left", children: /* @__PURE__ */ s.jsx(Gg, { children:
|
|
36362
|
+
/* @__PURE__ */ s.jsx(Xu, { pb: 4, textAlign: "left", children: /* @__PURE__ */ s.jsx(Gg, { children: a.content.map((l, E) => /* @__PURE__ */ s.jsxs(
|
|
36366
36363
|
LM,
|
|
36367
36364
|
{
|
|
36368
36365
|
display: "flex",
|
|
@@ -36375,29 +36372,29 @@ const Wz = ({
|
|
|
36375
36372
|
width: "95%",
|
|
36376
36373
|
position: "relative",
|
|
36377
36374
|
_hover: {
|
|
36378
|
-
".pin-icon":
|
|
36375
|
+
".pin-icon": r[g][E] ? {} : { visibility: "visible", opacity: 1 }
|
|
36379
36376
|
},
|
|
36380
36377
|
cursor: n ? "pointer" : "default",
|
|
36381
36378
|
onClick: () => {
|
|
36382
|
-
n && n(
|
|
36379
|
+
n && n(l.id);
|
|
36383
36380
|
},
|
|
36384
36381
|
children: [
|
|
36385
|
-
|
|
36382
|
+
l.title,
|
|
36386
36383
|
e && /* @__PURE__ */ s.jsx(
|
|
36387
36384
|
ZA,
|
|
36388
36385
|
{
|
|
36389
36386
|
className: "pin-icon",
|
|
36390
36387
|
cursor: "pointer",
|
|
36391
|
-
visibility:
|
|
36392
|
-
opacity:
|
|
36388
|
+
visibility: r[g][E] ? "visible" : "hidden",
|
|
36389
|
+
opacity: r[g][E] ? 1 : 0,
|
|
36393
36390
|
transition: "opacity 0.2s ease, visibility 0.2s ease",
|
|
36394
|
-
onClick: (
|
|
36395
|
-
|
|
36391
|
+
onClick: (I) => {
|
|
36392
|
+
I.stopPropagation(), B(g, E, l.id);
|
|
36396
36393
|
},
|
|
36397
36394
|
children: /* @__PURE__ */ s.jsx(
|
|
36398
36395
|
KM,
|
|
36399
36396
|
{
|
|
36400
|
-
as:
|
|
36397
|
+
as: r[g][E] ? nz : tz,
|
|
36401
36398
|
color: e,
|
|
36402
36399
|
boxSize: 6
|
|
36403
36400
|
}
|
|
@@ -36406,9 +36403,9 @@ const Wz = ({
|
|
|
36406
36403
|
)
|
|
36407
36404
|
]
|
|
36408
36405
|
},
|
|
36409
|
-
|
|
36406
|
+
l.id
|
|
36410
36407
|
)) }) })
|
|
36411
|
-
] },
|
|
36408
|
+
] }, g))
|
|
36412
36409
|
}
|
|
36413
36410
|
) });
|
|
36414
36411
|
}, vz = ({ items: A, navigation: e }) => {
|
|
@@ -36454,7 +36451,7 @@ const Wz = ({
|
|
|
36454
36451
|
textValue: r = "",
|
|
36455
36452
|
...o
|
|
36456
36453
|
}, B) => {
|
|
36457
|
-
const [a, g] =
|
|
36454
|
+
const [a, g] = xA(r);
|
|
36458
36455
|
PA(() => {
|
|
36459
36456
|
e && g(r);
|
|
36460
36457
|
}, [r, e]);
|
|
@@ -36812,7 +36809,7 @@ const Oz = ({
|
|
|
36812
36809
|
checkedLabel: o = "",
|
|
36813
36810
|
uncheckedLabel: B = ""
|
|
36814
36811
|
}) => {
|
|
36815
|
-
const [a, g] =
|
|
36812
|
+
const [a, g] = xA(A), l = (E) => {
|
|
36816
36813
|
if (!r) return;
|
|
36817
36814
|
const I = E.target.checked;
|
|
36818
36815
|
g(I), e && e(I);
|
|
@@ -36913,7 +36910,7 @@ const Oz = ({
|
|
|
36913
36910
|
fontSizeSubtitle: x = "1rem",
|
|
36914
36911
|
alignSubtitle: N = "left"
|
|
36915
36912
|
}) => {
|
|
36916
|
-
const [S, G] =
|
|
36913
|
+
const [S, G] = xA(e);
|
|
36917
36914
|
PA(() => {
|
|
36918
36915
|
n && G(e);
|
|
36919
36916
|
}, [n, e]);
|
|
@@ -37349,12 +37346,14 @@ const nj = ({
|
|
|
37349
37346
|
hideCloseButton: a = !1,
|
|
37350
37347
|
closeOnEsc: g = !0,
|
|
37351
37348
|
closeOnOverlayClick: l = !0,
|
|
37352
|
-
|
|
37353
|
-
|
|
37349
|
+
overlayDark: E = !1,
|
|
37350
|
+
...I
|
|
37351
|
+
}) => /* @__PURE__ */ s.jsx(wt, { alignItems: "center", justifyContent: "center", ...I, children: /* @__PURE__ */ s.jsxs(ii, { isOpen: r, onClose: B, isCentered: !0, closeOnEsc: g, closeOnOverlayClick: l, children: [
|
|
37354
37352
|
/* @__PURE__ */ s.jsx(
|
|
37355
37353
|
ai,
|
|
37356
37354
|
{
|
|
37357
|
-
|
|
37355
|
+
bg: E ? "black.50" : "rgba(165, 165, 165, 0.6)",
|
|
37356
|
+
display: E ? "block" : void 0
|
|
37358
37357
|
}
|
|
37359
37358
|
),
|
|
37360
37359
|
/* @__PURE__ */ s.jsx(ri, { backgroundColor: "assist.200", borderRadius: "1rem", boxShadow: "0 0 0 rgba(0, 0, 0, 0.06)", maxWidth: "664px", width: "100%", children: /* @__PURE__ */ s.jsxs(ZA, { maxWidth: "306px", margin: " 66px auto", textAlign: "left", width: "100%", children: [
|
|
@@ -37364,7 +37363,7 @@ const nj = ({
|
|
|
37364
37363
|
] }),
|
|
37365
37364
|
/* @__PURE__ */ s.jsx(KB, { _hover: { backgroundColor: "white.100" }, hidden: a }),
|
|
37366
37365
|
/* @__PURE__ */ s.jsxs(oi, { padding: "0", children: [
|
|
37367
|
-
t == null ? void 0 : t.map((
|
|
37366
|
+
t == null ? void 0 : t.map((c, Q) => /* @__PURE__ */ s.jsxs(KA, { alignItems: "center", children: [
|
|
37368
37367
|
o || /* @__PURE__ */ s.jsx(gz, { size: "20", color: "#2f93df" }),
|
|
37369
37368
|
/* @__PURE__ */ s.jsx(
|
|
37370
37369
|
yA,
|
|
@@ -37372,10 +37371,10 @@ const nj = ({
|
|
|
37372
37371
|
fontFamily: "Lato",
|
|
37373
37372
|
color: "black.400",
|
|
37374
37373
|
margin: "4px 4px",
|
|
37375
|
-
children:
|
|
37374
|
+
children: c.name
|
|
37376
37375
|
}
|
|
37377
37376
|
)
|
|
37378
|
-
] },
|
|
37377
|
+
] }, Q)),
|
|
37379
37378
|
/* @__PURE__ */ s.jsxs(
|
|
37380
37379
|
Je,
|
|
37381
37380
|
{
|
|
@@ -37552,7 +37551,7 @@ const ij = ({ text: A, onClick: e }) => /* @__PURE__ */ s.jsxs(KA, { flexDirecti
|
|
|
37552
37551
|
}
|
|
37553
37552
|
);
|
|
37554
37553
|
}, oj = ({ items: A, onClick: e, size: t, indexActive: n }) => {
|
|
37555
|
-
const [i, r] =
|
|
37554
|
+
const [i, r] = xA(null);
|
|
37556
37555
|
PA(() => {
|
|
37557
37556
|
n !== void 0 && A[n] && r(A[n].value);
|
|
37558
37557
|
}, [n, A]);
|
|
@@ -37582,9 +37581,9 @@ const ij = ({ text: A, onClick: e }) => /* @__PURE__ */ s.jsxs(KA, { flexDirecti
|
|
|
37582
37581
|
},
|
|
37583
37582
|
a
|
|
37584
37583
|
)) });
|
|
37585
|
-
}, Bj = ({ elements: A }) => {
|
|
37586
|
-
const
|
|
37587
|
-
t(
|
|
37584
|
+
}, Bj = ({ elements: A, expandedItem: e, setExpandedItem: t }) => {
|
|
37585
|
+
const n = (i) => {
|
|
37586
|
+
t(e === i ? null : i);
|
|
37588
37587
|
};
|
|
37589
37588
|
return /* @__PURE__ */ s.jsx(ZA, { w: "100%", mx: "auto", children: A.map((i) => {
|
|
37590
37589
|
const r = e === i.id;
|
|
@@ -37641,7 +37640,7 @@ const ij = ({ text: A, onClick: e }) => /* @__PURE__ */ s.jsxs(KA, { flexDirecti
|
|
|
37641
37640
|
] }, i.id);
|
|
37642
37641
|
}) });
|
|
37643
37642
|
}, aj = ({ color: A, icon: e, title: t, status: n, menuOptions: i, textBottomOption: r, currentUrl: o, ...B }) => {
|
|
37644
|
-
const a = ["hub", "play", "elevate", "assist", "talent", "ad", "collect", "localhost"], l = `sidebarOpen_${window.location.hostname.split(".").find((w) => a.includes(w)) || "default"}`, [E, I] =
|
|
37643
|
+
const a = ["hub", "play", "elevate", "assist", "talent", "ad", "collect", "localhost"], l = `sidebarOpen_${window.location.hostname.split(".").find((w) => a.includes(w)) || "default"}`, [E, I] = xA(() => {
|
|
37645
37644
|
const F = localStorage.getItem(l);
|
|
37646
37645
|
return F === null ? (localStorage.setItem(l, "true"), !0) : F === "true";
|
|
37647
37646
|
}), c = A || ve.primary[400], Q = xs(ve, `${c.split(".")[0]}.300`), U = () => {
|