fansunited-management-components 1.43.0-RC1 → 1.43.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 +37 -23
- package/index.umd.js +2 -2
- package/package.json +1 -1
- package/src/components/Flags/Flags.d.ts +2 -0
- package/src/services/https/HttpsService.d.ts +2 -0
package/index.es.js
CHANGED
|
@@ -11485,6 +11485,20 @@ class oA extends qS {
|
|
|
11485
11485
|
body: JSON.stringify(n)
|
|
11486
11486
|
});
|
|
11487
11487
|
}));
|
|
11488
|
+
ee(this, "getClientBadges", () => T(this, null, function* () {
|
|
11489
|
+
const n = `/clients/${this.clientId}/features/loyalty/badges?`, r = { key: this.apiKey }, i = yield this.getToken();
|
|
11490
|
+
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r), {
|
|
11491
|
+
headers: Q(j({}, this.headers), { Authorization: "Bearer " + i })
|
|
11492
|
+
});
|
|
11493
|
+
}));
|
|
11494
|
+
ee(this, "updateClientBadges", (n) => T(this, null, function* () {
|
|
11495
|
+
const r = `/clients/${this.clientId}/features/loyalty/badges?`, i = yield this.getToken();
|
|
11496
|
+
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams({ key: this.apiKey }), {
|
|
11497
|
+
headers: Q(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11498
|
+
method: "PUT",
|
|
11499
|
+
body: JSON.stringify(n)
|
|
11500
|
+
});
|
|
11501
|
+
}));
|
|
11488
11502
|
this.loyaltyBaseUrl = JS(n.environment), this.predictionBaseUrl = XS(n.environment), this.miniGamesApiBaseUrl = ZS(n.environment), this.reportingApiBaseUrl = eA(n.environment), this.votingApiBaseUrl = tA(n.environment), this.profileApiBaseUrl = rA(n.environment), this.customResolverUrl = nA(n.environment), this.discussionsApiBaseUrl = iA(n.environment);
|
|
11489
11503
|
}
|
|
11490
11504
|
}
|
|
@@ -27712,33 +27726,33 @@ const cL = {
|
|
|
27712
27726
|
color: "#333"
|
|
27713
27727
|
})
|
|
27714
27728
|
}, uL = (e) => e.map((t) => ({ label: t, value: t })), dL = (e) => {
|
|
27715
|
-
const [t, n] = K(""), [r, i] = K(!1), o = uL(e.flags),
|
|
27716
|
-
e.onChange(
|
|
27717
|
-
},
|
|
27718
|
-
n(
|
|
27719
|
-
},
|
|
27720
|
-
|
|
27721
|
-
const { key:
|
|
27729
|
+
const [t, n] = K(""), [r, i] = K(!1), o = e.sx || { marginBottom: "16px" }, a = uL(e.flags), s = () => i(!r), l = (h) => {
|
|
27730
|
+
e.onChange(h.map((p) => p.value));
|
|
27731
|
+
}, c = (h) => {
|
|
27732
|
+
n(h);
|
|
27733
|
+
}, d = (h) => {
|
|
27734
|
+
h.persist();
|
|
27735
|
+
const { key: p } = h;
|
|
27722
27736
|
if (t)
|
|
27723
|
-
switch (
|
|
27737
|
+
switch (p) {
|
|
27724
27738
|
case "Enter":
|
|
27725
27739
|
case "Tab":
|
|
27726
27740
|
if (e.flags && e.flags.length === 0) {
|
|
27727
|
-
const
|
|
27728
|
-
e.onChange(
|
|
27741
|
+
const m = [...e.flags, t];
|
|
27742
|
+
e.onChange(m);
|
|
27729
27743
|
}
|
|
27730
|
-
if (e.flags && e.flags.length > 0 &&
|
|
27731
|
-
const
|
|
27732
|
-
e.onChange(
|
|
27744
|
+
if (e.flags && e.flags.length > 0 && f()) {
|
|
27745
|
+
const m = [...e.flags, t];
|
|
27746
|
+
e.onChange(m);
|
|
27733
27747
|
}
|
|
27734
|
-
n(""),
|
|
27748
|
+
n(""), h.preventDefault();
|
|
27735
27749
|
}
|
|
27736
|
-
},
|
|
27737
|
-
let
|
|
27738
|
-
return e.flags.length && e.flags.includes(t) ? (
|
|
27750
|
+
}, f = () => {
|
|
27751
|
+
let h = !1;
|
|
27752
|
+
return e.flags.length && e.flags.includes(t) ? (s(), h) : (h = !0, h);
|
|
27739
27753
|
};
|
|
27740
27754
|
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
27741
|
-
/* @__PURE__ */ u.jsx(le, { sx:
|
|
27755
|
+
/* @__PURE__ */ u.jsx(le, { sx: o, children: /* @__PURE__ */ u.jsx(
|
|
27742
27756
|
db,
|
|
27743
27757
|
{
|
|
27744
27758
|
styles: cL,
|
|
@@ -27747,14 +27761,14 @@ const cL = {
|
|
|
27747
27761
|
isClearable: !0,
|
|
27748
27762
|
isMulti: !0,
|
|
27749
27763
|
menuIsOpen: !1,
|
|
27750
|
-
onChange:
|
|
27751
|
-
onInputChange:
|
|
27752
|
-
onKeyDown:
|
|
27764
|
+
onChange: l,
|
|
27765
|
+
onInputChange: c,
|
|
27766
|
+
onKeyDown: d,
|
|
27753
27767
|
placeholder: e.labels.flagsPlaceholder,
|
|
27754
|
-
value:
|
|
27768
|
+
value: a
|
|
27755
27769
|
}
|
|
27756
27770
|
) }),
|
|
27757
|
-
/* @__PURE__ */ u.jsx(gt, { showToast: r, message: e.labels.repeatedValueMessage, color: "warning", hideToast:
|
|
27771
|
+
/* @__PURE__ */ u.jsx(gt, { showToast: r, message: e.labels.repeatedValueMessage, color: "warning", hideToast: s })
|
|
27758
27772
|
] });
|
|
27759
27773
|
}, To = (e) => {
|
|
27760
27774
|
const [t, n] = K(!1), [r, i] = K(!1), [o, a] = K(!1), [s, l] = K(!1), [c, d] = K(""), [f, h] = K("primary"), [p, m] = K(""), g = Te(null), v = () => {
|