fansunited-widget-poll 2.2.1-RC1 → 2.2.2
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/package.json +1 -1
- package/poll-manager.es.js +19 -18
- package/poll-manager.umd.js +4 -4
package/package.json
CHANGED
package/poll-manager.es.js
CHANGED
|
@@ -55167,7 +55167,7 @@ const dhe = ["component", "color", "children", "indicator", "variant", "slots",
|
|
|
55167
55167
|
]
|
|
55168
55168
|
}, sI = ({ label: t, property: e, value: n, defaultValue: r, placeholder: i, description: a, onChange: o }) => {
|
|
55169
55169
|
const s = (c, u, d, f) => {
|
|
55170
|
-
f.getText().trim() === "" ? o("") : o(c);
|
|
55170
|
+
d !== "api" && (f.getText().trim() === "" ? o("") : o(c));
|
|
55171
55171
|
};
|
|
55172
55172
|
return e === "description" ? /* @__PURE__ */ $.jsxs(
|
|
55173
55173
|
Nt,
|
|
@@ -67875,7 +67875,7 @@ const Dl = Tn("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
67875
67875
|
console.error(f), d();
|
|
67876
67876
|
}
|
|
67877
67877
|
}), u = (f, p) => {
|
|
67878
|
-
const h = p.map((g) => ({ entity_id: g, entity_type: "GAME" }));
|
|
67878
|
+
const h = p.map((g) => ({ entity_id: g, entity_type: "GAME", entity_relationship: "relatedTo" }));
|
|
67879
67879
|
t.onChange(h);
|
|
67880
67880
|
}, d = () => o(!a);
|
|
67881
67881
|
return Xe(() => {
|
|
@@ -67945,7 +67945,7 @@ const Dl = Tn("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
67945
67945
|
console.error(f), d();
|
|
67946
67946
|
}
|
|
67947
67947
|
}), u = (f, p) => {
|
|
67948
|
-
const h = p.map((g) => ({ entity_id: g, entity_type: "TEMPLATE" }));
|
|
67948
|
+
const h = p.map((g) => ({ entity_id: g, entity_type: "TEMPLATE", entity_relationship: "relatedTo" }));
|
|
67949
67949
|
t.onChange(h);
|
|
67950
67950
|
}, d = () => o(!a);
|
|
67951
67951
|
return Xe(() => {
|
|
@@ -70609,43 +70609,43 @@ const nSe = R.forwardRef(function(t, e) {
|
|
|
70609
70609
|
}
|
|
70610
70610
|
) : /* @__PURE__ */ $.jsx($.Fragment, {})
|
|
70611
70611
|
] });
|
|
70612
|
-
}, pSe = ({ defaultValue: t,
|
|
70613
|
-
const
|
|
70612
|
+
}, pSe = ({ defaultValue: t, isClearable: e = !0, labels: n, onChange: r }) => {
|
|
70613
|
+
const i = wt.useRef(null), a = [
|
|
70614
70614
|
{
|
|
70615
70615
|
id: "FREE",
|
|
70616
|
-
label:
|
|
70616
|
+
label: n.free
|
|
70617
70617
|
},
|
|
70618
70618
|
{
|
|
70619
70619
|
id: "LEAD",
|
|
70620
|
-
label:
|
|
70620
|
+
label: n.lead
|
|
70621
70621
|
},
|
|
70622
70622
|
{
|
|
70623
70623
|
id: "REGISTERED",
|
|
70624
|
-
label:
|
|
70624
|
+
label: n.registered
|
|
70625
70625
|
}
|
|
70626
70626
|
];
|
|
70627
70627
|
return /* @__PURE__ */ $.jsxs(Nt, { size: "sm", sx: { mb: 2 }, children: [
|
|
70628
|
-
/* @__PURE__ */ $.jsx(Wt, { children:
|
|
70628
|
+
/* @__PURE__ */ $.jsx(Wt, { children: n.authRequirement }),
|
|
70629
70629
|
/* @__PURE__ */ $.jsx(
|
|
70630
70630
|
wr,
|
|
70631
70631
|
Ae(ce({
|
|
70632
70632
|
value: t,
|
|
70633
70633
|
size: "sm",
|
|
70634
70634
|
slotProps: { button: { sx: { whiteSpace: "nowrap" } } },
|
|
70635
|
-
onChange: (
|
|
70635
|
+
onChange: (o, s) => r(s),
|
|
70636
70636
|
sx: { minHeight: "37px" }
|
|
70637
|
-
}, t && {
|
|
70637
|
+
}, t && e && {
|
|
70638
70638
|
endDecorator: /* @__PURE__ */ $.jsx(
|
|
70639
70639
|
jn,
|
|
70640
70640
|
{
|
|
70641
70641
|
variant: "plain",
|
|
70642
70642
|
color: "neutral",
|
|
70643
|
-
onMouseDown: (
|
|
70644
|
-
|
|
70643
|
+
onMouseDown: (o) => {
|
|
70644
|
+
o.stopPropagation();
|
|
70645
70645
|
},
|
|
70646
70646
|
onClick: () => {
|
|
70647
|
-
var
|
|
70648
|
-
|
|
70647
|
+
var o;
|
|
70648
|
+
r(null), (o = i.current) == null || o.focusVisible();
|
|
70649
70649
|
},
|
|
70650
70650
|
sx: { width: "18px", height: "18px" },
|
|
70651
70651
|
children: /* @__PURE__ */ $.jsx(lj, {})
|
|
@@ -70653,10 +70653,10 @@ const nSe = R.forwardRef(function(t, e) {
|
|
|
70653
70653
|
),
|
|
70654
70654
|
indicator: null
|
|
70655
70655
|
}), {
|
|
70656
|
-
children:
|
|
70656
|
+
children: a.map((o) => /* @__PURE__ */ $.jsx(qn, { value: o.id, children: o.label }, o.id))
|
|
70657
70657
|
})
|
|
70658
70658
|
),
|
|
70659
|
-
/* @__PURE__ */ $.jsx(ba, { children:
|
|
70659
|
+
/* @__PURE__ */ $.jsx(ba, { children: n.authRequirementDescription })
|
|
70660
70660
|
] });
|
|
70661
70661
|
};
|
|
70662
70662
|
function hSe() {
|
|
@@ -74458,6 +74458,7 @@ const _ke = [10, 15, 20, 25, 50], kke = (t) => {
|
|
|
74458
74458
|
label: e.description,
|
|
74459
74459
|
property: "mini_games_explanation",
|
|
74460
74460
|
defaultValue: t.option.description || "",
|
|
74461
|
+
value: t.option.description || "",
|
|
74461
74462
|
placeholder: "",
|
|
74462
74463
|
description: e.optionDescriptionExplanation,
|
|
74463
74464
|
onChange: a
|
|
@@ -74877,7 +74878,7 @@ const _ke = [10, 15, 20, 25, 50], kke = (t) => {
|
|
|
74877
74878
|
/* @__PURE__ */ L.jsx(r, { label: e.flags, children: /* @__PURE__ */ L.jsx(s, { labels: e, flags: t.requestBody.flags || [], onChange: m }) }),
|
|
74878
74879
|
/* @__PURE__ */ L.jsx(r, { label: e.images, children: /* @__PURE__ */ L.jsx(o, { labels: e, defaultValue: t.requestBody.images, onChange: v }) }),
|
|
74879
74880
|
/* @__PURE__ */ L.jsx(r, { label: e.labels, children: /* @__PURE__ */ L.jsx(i, { labels: e, type: e.labels, defaultValue: t.requestBody.labels, onChange: b }) }),
|
|
74880
|
-
/* @__PURE__ */ L.jsx(r, { label: e.rules, children: /* @__PURE__ */ L.jsx(n, { property: "rules", defaultValue: t.requestBody.rules, onChange: x }) }),
|
|
74881
|
+
/* @__PURE__ */ L.jsx(r, { label: e.rules, children: /* @__PURE__ */ L.jsx(n, { property: "rules", value: t.requestBody.rules, defaultValue: t.requestBody.rules, onChange: x }) }),
|
|
74881
74882
|
/* @__PURE__ */ L.jsx(r, { label: e.schedule, children: t.requestBody.id ? /* @__PURE__ */ L.jsx(u, { labels: e, entityId: t.requestBody.id, entityType: "POLL" }) : /* @__PURE__ */ L.jsx(Qe, { children: e.scheduledTaskNotAvailable }) })
|
|
74882
74883
|
]
|
|
74883
74884
|
}
|