fansunited-management-components 1.0.0-RC1 → 1.0.0-RC2
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/index.es.js +56 -59
- package/index.umd.js +4 -4
- package/package.json +1 -1
- package/src/components/DynamicFields/DynamicFields.d.ts +1 -0
package/index.es.js
CHANGED
|
@@ -48346,7 +48346,7 @@ const Qt = /* @__PURE__ */ B.forwardRef(function(e, r) {
|
|
|
48346
48346
|
}),
|
|
48347
48347
|
children: [
|
|
48348
48348
|
/* @__PURE__ */ E.jsx(Cr, { color: "primary", children: t }),
|
|
48349
|
-
/* @__PURE__ */ E.jsx(Qu, { defaultValue: e, onChange: i, children: r.map((a) => /* @__PURE__ */ E.jsx(fa, { value: a, children: a }, a)) })
|
|
48349
|
+
/* @__PURE__ */ E.jsx(Qu, { defaultValue: e, onChange: i, children: r.map((a, s) => /* @__PURE__ */ E.jsx(fa, { value: a, children: a }, `basic-select-${a}-${s}`)) })
|
|
48350
48350
|
]
|
|
48351
48351
|
}
|
|
48352
48352
|
);
|
|
@@ -50214,7 +50214,7 @@ const vQ = ({ isLoading: t, images: e, onClick: r }) => /* @__PURE__ */ E.jsxs(E
|
|
|
50214
50214
|
)
|
|
50215
50215
|
]
|
|
50216
50216
|
}
|
|
50217
|
-
) }, n.id);
|
|
50217
|
+
) }, `sportal-image-${n.id}`);
|
|
50218
50218
|
}) }),
|
|
50219
50219
|
t ? /* @__PURE__ */ E.jsx(
|
|
50220
50220
|
Ne,
|
|
@@ -51511,7 +51511,7 @@ const gb = ({ labels: t, title: e, image: r, onChangeImages: n, clearImage: i })
|
|
|
51511
51511
|
onChangeImages: (m) => f(m, v),
|
|
51512
51512
|
clearImage: () => p(v)
|
|
51513
51513
|
},
|
|
51514
|
-
v
|
|
51514
|
+
`branding-image-${v}`
|
|
51515
51515
|
)) }) : /* @__PURE__ */ E.jsx(E.Fragment, {})
|
|
51516
51516
|
] }),
|
|
51517
51517
|
/* @__PURE__ */ E.jsx(jo, { value: 1, children: /* @__PURE__ */ E.jsx(Ne, { children: Object.keys(a.colors).map((v) => /* @__PURE__ */ E.jsx(Ne, { mb: 2, children: /* @__PURE__ */ E.jsx(
|
|
@@ -51523,7 +51523,7 @@ const gb = ({ labels: t, title: e, image: r, onChangeImages: n, clearImage: i })
|
|
|
51523
51523
|
required: !1,
|
|
51524
51524
|
onChange: (m) => d(m, v)
|
|
51525
51525
|
}
|
|
51526
|
-
) }, v)) }) }),
|
|
51526
|
+
) }, `branding-color-${v}`)) }) }),
|
|
51527
51527
|
/* @__PURE__ */ E.jsx(jo, { value: 2, children: /* @__PURE__ */ E.jsx(Ne, { children: Object.keys(a.urls).map((v) => /* @__PURE__ */ E.jsx(Ne, { mb: 2, children: /* @__PURE__ */ E.jsx(
|
|
51528
51528
|
Wh,
|
|
51529
51529
|
{
|
|
@@ -51533,7 +51533,7 @@ const gb = ({ labels: t, title: e, image: r, onChangeImages: n, clearImage: i })
|
|
|
51533
51533
|
required: !1,
|
|
51534
51534
|
onChange: (m) => h(m, v)
|
|
51535
51535
|
}
|
|
51536
|
-
) }, v)) }) })
|
|
51536
|
+
) }, `branding-url-${v}`)) }) })
|
|
51537
51537
|
] }) });
|
|
51538
51538
|
};
|
|
51539
51539
|
var Bm = {}, mX = Ht;
|
|
@@ -53576,27 +53576,27 @@ const ui = /* @__PURE__ */ Rn(PX), bb = (t) => {
|
|
|
53576
53576
|
),
|
|
53577
53577
|
/* @__PURE__ */ E.jsx(cr, { showToast: s, message: "Succesfully cleared the duration time", color: "primary", hideToast: c })
|
|
53578
53578
|
] });
|
|
53579
|
-
}, kX = (t) => t ? Object.entries(t).map(([e, r]) => ({ key: e, value: r })) : [], RX = (t) => t.reduce((e, r) => (e[r.key] = r.value, e), {}), MX = ({ labels: t,
|
|
53580
|
-
const [
|
|
53581
|
-
|
|
53582
|
-
},
|
|
53583
|
-
i
|
|
53584
|
-
},
|
|
53585
|
-
|
|
53586
|
-
},
|
|
53587
|
-
const
|
|
53588
|
-
_
|
|
53579
|
+
}, kX = (t) => t ? Object.entries(t).map(([e, r]) => ({ key: e, value: r })) : [], RX = (t) => t.reduce((e, r) => (e[r.key] = r.value, e), {}), MX = ({ labels: t, type: e, defaultValue: r, onChange: n }) => {
|
|
53580
|
+
const [i, a] = we(kX(r)), [s, l] = we(null), [c, u] = we(""), [d, h] = we(""), [f, p] = we(""), [v, m] = we(""), y = () => {
|
|
53581
|
+
a([...i, { key: c, value: f }]), u(""), p("");
|
|
53582
|
+
}, b = (_) => {
|
|
53583
|
+
a(i.filter((C, x) => x !== _));
|
|
53584
|
+
}, g = (_, C) => {
|
|
53585
|
+
h(C.key), m(C.value), l(_);
|
|
53586
|
+
}, w = (_) => {
|
|
53587
|
+
const C = [...i];
|
|
53588
|
+
C[_] = { key: d, value: v }, a(C), l(null), h(""), m(""), n(RX(C));
|
|
53589
53589
|
};
|
|
53590
53590
|
return /* @__PURE__ */ E.jsxs(Ne, { children: [
|
|
53591
|
-
|
|
53591
|
+
i.map((_, C) => /* @__PURE__ */ E.jsx(Ms, { style: { marginBottom: "10px", display: "flex", padding: "10px" }, children: /* @__PURE__ */ E.jsx(hm, { style: { flex: 1 }, children: s === C ? /* @__PURE__ */ E.jsxs(Ne, { display: "flex", alignItems: "center", children: [
|
|
53592
53592
|
/* @__PURE__ */ E.jsx(
|
|
53593
53593
|
jr,
|
|
53594
53594
|
{
|
|
53595
53595
|
size: "md",
|
|
53596
53596
|
variant: "outlined",
|
|
53597
53597
|
color: "neutral",
|
|
53598
|
-
defaultValue:
|
|
53599
|
-
onChange: (
|
|
53598
|
+
defaultValue: d,
|
|
53599
|
+
onChange: (x) => h(x.target.value),
|
|
53600
53600
|
sx: {
|
|
53601
53601
|
backgroundColor: "#fff",
|
|
53602
53602
|
borderRadius: "md",
|
|
@@ -53610,8 +53610,8 @@ const ui = /* @__PURE__ */ Rn(PX), bb = (t) => {
|
|
|
53610
53610
|
size: "md",
|
|
53611
53611
|
variant: "outlined",
|
|
53612
53612
|
color: "neutral",
|
|
53613
|
-
defaultValue:
|
|
53614
|
-
onChange: (
|
|
53613
|
+
defaultValue: v,
|
|
53614
|
+
onChange: (x) => m(x.target.value),
|
|
53615
53615
|
sx: {
|
|
53616
53616
|
backgroundColor: "#fff",
|
|
53617
53617
|
borderRadius: "md",
|
|
@@ -53619,35 +53619,35 @@ const ui = /* @__PURE__ */ Rn(PX), bb = (t) => {
|
|
|
53619
53619
|
}
|
|
53620
53620
|
}
|
|
53621
53621
|
),
|
|
53622
|
-
/* @__PURE__ */ E.jsx(Qt, { title: t.save, children:
|
|
53622
|
+
/* @__PURE__ */ E.jsx(Qt, { title: t.save, children: d && v ? /* @__PURE__ */ E.jsx(_n, { onClick: () => w(C), children: /* @__PURE__ */ E.jsx(ib, {}) }) : /* @__PURE__ */ E.jsx("span", { children: /* @__PURE__ */ E.jsx(_n, { disabled: !0, children: /* @__PURE__ */ E.jsx(ib, {}) }) }) })
|
|
53623
53623
|
] }) : /* @__PURE__ */ E.jsxs(Ne, { display: "flex", justifyContent: "space-between", alignItems: "center", children: [
|
|
53624
53624
|
/* @__PURE__ */ E.jsxs(Ne, { children: [
|
|
53625
53625
|
/* @__PURE__ */ E.jsxs(Qe, { style: { fontWeight: "bold" }, children: [
|
|
53626
53626
|
t.keyDynamicFields,
|
|
53627
53627
|
": ",
|
|
53628
|
-
/* @__PURE__ */ E.jsx(Qe, { whiteSpace: "wrap", children:
|
|
53628
|
+
/* @__PURE__ */ E.jsx(Qe, { whiteSpace: "wrap", children: _.key })
|
|
53629
53629
|
] }),
|
|
53630
53630
|
/* @__PURE__ */ E.jsxs(Qe, { style: { color: "gray" }, children: [
|
|
53631
53631
|
t.valueDynamicFields,
|
|
53632
53632
|
": ",
|
|
53633
|
-
/* @__PURE__ */ E.jsx(Qe, { whiteSpace: "wrap", children:
|
|
53633
|
+
/* @__PURE__ */ E.jsx(Qe, { whiteSpace: "wrap", children: _.value })
|
|
53634
53634
|
] })
|
|
53635
53635
|
] }),
|
|
53636
53636
|
/* @__PURE__ */ E.jsxs(Ne, { children: [
|
|
53637
|
-
/* @__PURE__ */ E.jsx(Qt, { title: t.edit, children: /* @__PURE__ */ E.jsx(_n, { onClick: () =>
|
|
53638
|
-
/* @__PURE__ */ E.jsx(Qt, { title: t.delete, children: /* @__PURE__ */ E.jsx(_n, { onClick: () =>
|
|
53637
|
+
/* @__PURE__ */ E.jsx(Qt, { title: t.edit, children: /* @__PURE__ */ E.jsx(_n, { onClick: () => g(C, _), children: /* @__PURE__ */ E.jsx(XJ, {}) }) }),
|
|
53638
|
+
/* @__PURE__ */ E.jsx(Qt, { title: t.delete, children: /* @__PURE__ */ E.jsx(_n, { onClick: () => b(C), children: /* @__PURE__ */ E.jsx(QJ, {}) }) })
|
|
53639
53639
|
] })
|
|
53640
|
-
] }) }) },
|
|
53641
|
-
/* @__PURE__ */ E.jsxs(Ne, { display: "flex", alignItems: "center", style: { marginTop:
|
|
53640
|
+
] }) }) }, `dynamic-fields-${e}-${C}`)),
|
|
53641
|
+
/* @__PURE__ */ E.jsxs(Ne, { display: "flex", alignItems: "center", style: { marginTop: i && i.length ? "20px" : "0px" }, children: [
|
|
53642
53642
|
/* @__PURE__ */ E.jsx(
|
|
53643
53643
|
jr,
|
|
53644
53644
|
{
|
|
53645
53645
|
size: "md",
|
|
53646
53646
|
variant: "outlined",
|
|
53647
53647
|
color: "neutral",
|
|
53648
|
-
value:
|
|
53648
|
+
value: c,
|
|
53649
53649
|
placeholder: t.keyDynamicFields,
|
|
53650
|
-
onChange: (
|
|
53650
|
+
onChange: (_) => u(_.target.value),
|
|
53651
53651
|
sx: {
|
|
53652
53652
|
backgroundColor: "#fff",
|
|
53653
53653
|
borderRadius: "md",
|
|
@@ -53661,8 +53661,8 @@ const ui = /* @__PURE__ */ Rn(PX), bb = (t) => {
|
|
|
53661
53661
|
size: "md",
|
|
53662
53662
|
variant: "outlined",
|
|
53663
53663
|
color: "neutral",
|
|
53664
|
-
value:
|
|
53665
|
-
onChange: (
|
|
53664
|
+
value: f,
|
|
53665
|
+
onChange: (_) => p(_.target.value),
|
|
53666
53666
|
placeholder: t.valueDynamicFields,
|
|
53667
53667
|
sx: {
|
|
53668
53668
|
backgroundColor: "#fff",
|
|
@@ -53671,7 +53671,7 @@ const ui = /* @__PURE__ */ Rn(PX), bb = (t) => {
|
|
|
53671
53671
|
}
|
|
53672
53672
|
}
|
|
53673
53673
|
),
|
|
53674
|
-
/* @__PURE__ */ E.jsx(Qt, { title: "Add", children:
|
|
53674
|
+
/* @__PURE__ */ E.jsx(Qt, { title: "Add", children: c && f ? /* @__PURE__ */ E.jsx(Tt, { onClick: y, children: /* @__PURE__ */ E.jsx(nb, {}) }) : /* @__PURE__ */ E.jsx("span", { children: /* @__PURE__ */ E.jsx(Tt, { disabled: !0, children: /* @__PURE__ */ E.jsx(nb, {}) }) }) })
|
|
53675
53675
|
] })
|
|
53676
53676
|
] });
|
|
53677
53677
|
};
|
|
@@ -56479,7 +56479,6 @@ var ute = /* @__PURE__ */ lf(function(t, e) {
|
|
|
56479
56479
|
}), j1 = ute;
|
|
56480
56480
|
const dte = {
|
|
56481
56481
|
control: (t, e) => $e(Ae({}, t), {
|
|
56482
|
-
height: "36px",
|
|
56483
56482
|
minHeight: "36px",
|
|
56484
56483
|
borderColor: e.isFocused ? "#0b6bcb" : "#ced4da",
|
|
56485
56484
|
boxShadow: e.isFocused ? "0 0 0 0px 1px 2px 0px rgba(25, 118, 210, 0.25)" : "none",
|
|
@@ -56491,11 +56490,11 @@ const dte = {
|
|
|
56491
56490
|
}
|
|
56492
56491
|
}),
|
|
56493
56492
|
valueContainer: (t) => $e(Ae({}, t), {
|
|
56494
|
-
|
|
56495
|
-
marginTop: "
|
|
56493
|
+
minHeight: "36px",
|
|
56494
|
+
marginTop: "0px"
|
|
56496
56495
|
}),
|
|
56497
56496
|
indicatorsContainer: (t) => $e(Ae({}, t), {
|
|
56498
|
-
|
|
56497
|
+
minHeight: "36px"
|
|
56499
56498
|
}),
|
|
56500
56499
|
menu: (t) => $e(Ae({}, t), {
|
|
56501
56500
|
position: "relative"
|
|
@@ -56534,11 +56533,11 @@ const dte = {
|
|
|
56534
56533
|
switch (f) {
|
|
56535
56534
|
case "Enter":
|
|
56536
56535
|
case "Tab":
|
|
56537
|
-
if (t.flags.length === 0) {
|
|
56536
|
+
if (t.flags && t.flags.length === 0) {
|
|
56538
56537
|
const p = [...t.flags, e];
|
|
56539
56538
|
t.onChange(p);
|
|
56540
56539
|
}
|
|
56541
|
-
if (t.flags.length > 0 && d()) {
|
|
56540
|
+
if (t.flags && t.flags.length > 0 && d()) {
|
|
56542
56541
|
const p = [...t.flags, e];
|
|
56543
56542
|
t.onChange(p);
|
|
56544
56543
|
}
|
|
@@ -56798,7 +56797,7 @@ const dte = {
|
|
|
56798
56797
|
onChangeImages: (c) => a(c, l),
|
|
56799
56798
|
clearImage: () => s(l)
|
|
56800
56799
|
},
|
|
56801
|
-
l
|
|
56800
|
+
`images-${l}`
|
|
56802
56801
|
)) }) : /* @__PURE__ */ E.jsx(E.Fragment, {})
|
|
56803
56802
|
] });
|
|
56804
56803
|
}, yte = ({ environment: t, userNotFound: e }) => {
|
|
@@ -56910,7 +56909,7 @@ const qi = ({ label: t, values: e, allValues: r, valuesMap: n, showAll: i, showA
|
|
|
56910
56909
|
}
|
|
56911
56910
|
}
|
|
56912
56911
|
)
|
|
56913
|
-
] }, u)),
|
|
56912
|
+
] }, `checkbox-value-${t}-${u}`)),
|
|
56914
56913
|
i === !1 ? /* @__PURE__ */ E.jsx(Jv, { children: /* @__PURE__ */ E.jsx(pm, { onClick: l, children: a }) }) : /* @__PURE__ */ E.jsx(E.Fragment, {})
|
|
56915
56914
|
]
|
|
56916
56915
|
}
|
|
@@ -57023,7 +57022,7 @@ const Ete = (t) => {
|
|
|
57023
57022
|
const [e, r] = we([]), [n, i] = we([]), [a, s] = we(!1), { sdk: l } = mn(), c = () => I(void 0, null, function* () {
|
|
57024
57023
|
try {
|
|
57025
57024
|
const h = yield l.topX.getGames({ limit: 50 }), f = yield l.matchQuiz.getGames({ limit: 50 }), p = [...h.data, ...f.data];
|
|
57026
|
-
if (t.related.length > 0) {
|
|
57025
|
+
if (t.related && t.related.length > 0) {
|
|
57027
57026
|
const v = p.filter((m) => {
|
|
57028
57027
|
var y;
|
|
57029
57028
|
return (y = t.related) == null ? void 0 : y.some((b) => b.entity_id === m.id);
|
|
@@ -57058,7 +57057,7 @@ const Ete = (t) => {
|
|
|
57058
57057
|
multiple: !0,
|
|
57059
57058
|
indicator: /* @__PURE__ */ E.jsx(Wm, {}),
|
|
57060
57059
|
defaultValue: e,
|
|
57061
|
-
renderValue: (h) => /* @__PURE__ */ E.jsx(Ne, { sx: { display: "flex", gap: "0.25rem", flexWrap: "wrap" }, children: h.map((f, p) => /* @__PURE__ */ E.jsx(cm, { variant: "soft", color: "primary", children: f.label }, p)) }),
|
|
57060
|
+
renderValue: (h) => /* @__PURE__ */ E.jsx(Ne, { sx: { display: "flex", gap: "0.25rem", flexWrap: "wrap" }, children: h.map((f, p) => /* @__PURE__ */ E.jsx(cm, { variant: "soft", color: "primary", children: f.label }, `related-game-${f.label}-${p}`)) }),
|
|
57062
57061
|
onChange: u,
|
|
57063
57062
|
sx: {
|
|
57064
57063
|
minWidth: "15rem",
|
|
@@ -57076,7 +57075,7 @@ const Ete = (t) => {
|
|
|
57076
57075
|
}
|
|
57077
57076
|
}
|
|
57078
57077
|
},
|
|
57079
|
-
children: n.map((h) => /* @__PURE__ */ E.jsx(fa, { value: h.id, children: h.title ? h.title + ` (${h.type})` : `Game with no title (${h.type}). ID: ${h.id}` }, h.id))
|
|
57078
|
+
children: n.map((h) => /* @__PURE__ */ E.jsx(fa, { value: h.id, children: h.title ? h.title + ` (${h.type})` : `Game with no title (${h.type}). ID: ${h.id}` }, `related-game-title-${h.id}`))
|
|
57080
57079
|
}
|
|
57081
57080
|
)
|
|
57082
57081
|
]
|
|
@@ -57128,7 +57127,7 @@ const Ete = (t) => {
|
|
|
57128
57127
|
multiple: !0,
|
|
57129
57128
|
indicator: /* @__PURE__ */ E.jsx(Wm, {}),
|
|
57130
57129
|
defaultValue: e,
|
|
57131
|
-
renderValue: (h) => /* @__PURE__ */ E.jsx(Ne, { sx: { display: "flex", gap: "0.25rem", flexWrap: "wrap" }, children: h.map((f, p) => /* @__PURE__ */ E.jsx(cm, { variant: "soft", color: "primary", children: f.label }, p)) }),
|
|
57130
|
+
renderValue: (h) => /* @__PURE__ */ E.jsx(Ne, { sx: { display: "flex", gap: "0.25rem", flexWrap: "wrap" }, children: h.map((f, p) => /* @__PURE__ */ E.jsx(cm, { variant: "soft", color: "primary", children: f.label }, `related-template-${f.label}-${p}`)) }),
|
|
57132
57131
|
onChange: u,
|
|
57133
57132
|
sx: {
|
|
57134
57133
|
minWidth: "15rem",
|
|
@@ -57146,7 +57145,7 @@ const Ete = (t) => {
|
|
|
57146
57145
|
}
|
|
57147
57146
|
}
|
|
57148
57147
|
},
|
|
57149
|
-
children: n.map((h) => /* @__PURE__ */ E.jsx(fa, { value: h.id, children: h.name || `Template with no name. ID: ${h.id}` }, h.id))
|
|
57148
|
+
children: n.map((h) => /* @__PURE__ */ E.jsx(fa, { value: h.id, children: h.name || `Template with no name. ID: ${h.id}` }, `related-template-name-${h.id}`))
|
|
57150
57149
|
}
|
|
57151
57150
|
)
|
|
57152
57151
|
]
|
|
@@ -57400,7 +57399,7 @@ const sre = ({ option: t }) => /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
|
57400
57399
|
const [a, s] = we(null), [l, c] = we(!1), { sdk: u } = mn(), d = () => c(!l), h = (m) => {
|
|
57401
57400
|
s(m), i(m ? [m.id] : []);
|
|
57402
57401
|
}, f = 3, v = H1((m, y) => {
|
|
57403
|
-
if (!m && r.length && u.football.getCompetitions({ competitionIds: r }).then((b) => {
|
|
57402
|
+
if (!m && r && r.length && u.football.getCompetitions({ competitionIds: r }).then((b) => {
|
|
57404
57403
|
s(Wb(b)[0]);
|
|
57405
57404
|
}).catch((b) => {
|
|
57406
57405
|
d(), console.error(b), y([]);
|
|
@@ -57442,15 +57441,14 @@ const sre = ({ option: t }) => /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
|
57442
57441
|
borderColor: e.isFocused ? "#1976d2" : "#ced4da"
|
|
57443
57442
|
// Keep border color on hover
|
|
57444
57443
|
},
|
|
57445
|
-
height: "36px",
|
|
57446
57444
|
minHeight: "36px"
|
|
57447
57445
|
}),
|
|
57448
57446
|
valueContainer: (t) => $e(Ae({}, t), {
|
|
57449
|
-
|
|
57450
|
-
marginTop: "
|
|
57447
|
+
minHeight: "36px",
|
|
57448
|
+
marginTop: "0px"
|
|
57451
57449
|
}),
|
|
57452
57450
|
indicatorsContainer: (t) => $e(Ae({}, t), {
|
|
57453
|
-
|
|
57451
|
+
minHeight: "36px"
|
|
57454
57452
|
}),
|
|
57455
57453
|
menu: (t) => $e(Ae({}, t), {
|
|
57456
57454
|
position: "relative"
|
|
@@ -57486,9 +57484,9 @@ const sre = ({ option: t }) => /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
|
57486
57484
|
const [n, i] = we([]), [a, s] = we(!1), { sdk: l } = mn(), c = () => s(!a), u = (p) => {
|
|
57487
57485
|
i(p);
|
|
57488
57486
|
const v = p.map((m) => m.id);
|
|
57489
|
-
r(v.length ? v : null);
|
|
57487
|
+
r(v && v.length ? v : null);
|
|
57490
57488
|
}, d = 3, f = H1((p, v) => {
|
|
57491
|
-
if (!p && e.length && l.profile.getByIds(e).then((m) => {
|
|
57489
|
+
if (!p && e && e.length && l.profile.getByIds(e).then((m) => {
|
|
57492
57490
|
i(qb(m));
|
|
57493
57491
|
}).catch((m) => {
|
|
57494
57492
|
c(), console.error(m), v([]);
|
|
@@ -57579,7 +57577,6 @@ const sre = ({ option: t }) => /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
|
57579
57577
|
}
|
|
57580
57578
|
), pre = {
|
|
57581
57579
|
control: (t, e) => $e(Ae({}, t), {
|
|
57582
|
-
height: "36px",
|
|
57583
57580
|
minHeight: "36px",
|
|
57584
57581
|
borderColor: e.isFocused ? "#0b6bcb" : "#ced4da",
|
|
57585
57582
|
boxShadow: e.isFocused ? "0 0 0 0px 1px 2px 0px rgba(25, 118, 210, 0.25)" : "none",
|
|
@@ -57590,11 +57587,11 @@ const sre = ({ option: t }) => /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
|
57590
57587
|
}
|
|
57591
57588
|
}),
|
|
57592
57589
|
valueContainer: (t) => $e(Ae({}, t), {
|
|
57593
|
-
|
|
57594
|
-
marginTop: "
|
|
57590
|
+
minHeight: "36px",
|
|
57591
|
+
marginTop: "0px"
|
|
57595
57592
|
}),
|
|
57596
57593
|
indicatorsContainer: (t) => $e(Ae({}, t), {
|
|
57597
|
-
|
|
57594
|
+
minHeight: "36px"
|
|
57598
57595
|
}),
|
|
57599
57596
|
menu: (t) => $e(Ae({}, t), {
|
|
57600
57597
|
position: "relative"
|
|
@@ -57633,11 +57630,11 @@ const sre = ({ option: t }) => /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
|
57633
57630
|
switch (f) {
|
|
57634
57631
|
case "Enter":
|
|
57635
57632
|
case "Tab":
|
|
57636
|
-
if (t.tags.length === 0) {
|
|
57633
|
+
if (t.tags && t.tags.length === 0) {
|
|
57637
57634
|
const p = [...t.tags, e];
|
|
57638
57635
|
t.onChange(p);
|
|
57639
57636
|
}
|
|
57640
|
-
if (t.tags.length > 0 && d()) {
|
|
57637
|
+
if (t.tags && t.tags.length > 0 && d()) {
|
|
57641
57638
|
const p = [...t.tags, e];
|
|
57642
57639
|
t.onChange(p);
|
|
57643
57640
|
}
|
|
@@ -57645,7 +57642,7 @@ const sre = ({ option: t }) => /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
|
57645
57642
|
}
|
|
57646
57643
|
}, d = () => {
|
|
57647
57644
|
let h = !1;
|
|
57648
|
-
return t.tags.length && t.tags.includes(e) ? (s(), h) : (h = !0, h);
|
|
57645
|
+
return t.tags && t.tags.length && t.tags.includes(e) ? (s(), h) : (h = !0, h);
|
|
57649
57646
|
};
|
|
57650
57647
|
return /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
57651
57648
|
/* @__PURE__ */ E.jsx(
|