@gamelearn/arcade-components 3.18.5 → 3.19.1
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.
|
@@ -58077,43 +58077,43 @@ function TestComponent({
|
|
|
58077
58077
|
] });
|
|
58078
58078
|
}
|
|
58079
58079
|
const OPTIONS = ["yes", "no"], LETTERS = ["A", "B"];
|
|
58080
|
-
function ApplicableBox({ setSurveyData: l, survey: e, id: n, translate: t
|
|
58081
|
-
const
|
|
58082
|
-
l({ ...e, [n]:
|
|
58080
|
+
function ApplicableBox({ setSurveyData: l, survey: e, id: n, translate: t }) {
|
|
58081
|
+
const s = (o) => {
|
|
58082
|
+
l({ ...e, [n]: o });
|
|
58083
58083
|
};
|
|
58084
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "survey--page__item", children: OPTIONS.map((
|
|
58084
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "survey--page__item", children: OPTIONS.map((o, d) => (
|
|
58085
58085
|
// TODO: convert this buttons to radiobutton and not agilize this question in order to A11y
|
|
58086
58086
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
58087
58087
|
"button",
|
|
58088
58088
|
{
|
|
58089
|
-
"data-testid": `applicablebox-${OPTIONS[
|
|
58089
|
+
"data-testid": `applicablebox-${OPTIONS[d]}`,
|
|
58090
58090
|
type: "button",
|
|
58091
|
-
onClick: () => o
|
|
58092
|
-
className: `unset-button survey--response__item ${e[n] ===
|
|
58091
|
+
onClick: () => s(o),
|
|
58092
|
+
className: `unset-button survey--response__item ${e[n] === o ? "selected" : ""}`,
|
|
58093
58093
|
children: [
|
|
58094
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "survey--response__index", children: LETTERS[
|
|
58095
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "survey--response__text", children: t(`survey.${
|
|
58094
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "survey--response__index", children: LETTERS[d] }),
|
|
58095
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "survey--response__text", children: t(`survey.${o}`) })
|
|
58096
58096
|
]
|
|
58097
58097
|
},
|
|
58098
|
-
|
|
58098
|
+
o
|
|
58099
58099
|
)
|
|
58100
58100
|
)) });
|
|
58101
58101
|
}
|
|
58102
58102
|
const OPINION_OPTIONS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
58103
|
-
function OpinionBox({ setSurveyData: l, survey: e, id: n, translate: t
|
|
58104
|
-
const
|
|
58105
|
-
l({ ...e, [n]:
|
|
58103
|
+
function OpinionBox({ setSurveyData: l, survey: e, id: n, translate: t }) {
|
|
58104
|
+
const s = (o) => {
|
|
58105
|
+
l({ ...e, [n]: o });
|
|
58106
58106
|
};
|
|
58107
58107
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "survey--page__item", "aria-label": "opinion box", children: [
|
|
58108
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "survey--points", children: OPINION_OPTIONS.map((
|
|
58108
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "survey--points", children: OPINION_OPTIONS.map((o) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
58109
58109
|
"button",
|
|
58110
58110
|
{
|
|
58111
58111
|
type: "button",
|
|
58112
|
-
onClick: () => o
|
|
58113
|
-
className: `unset-button survey--points__item survey--points__item--colorized ${e[n] ===
|
|
58114
|
-
children:
|
|
58112
|
+
onClick: () => s(o),
|
|
58113
|
+
className: `unset-button survey--points__item survey--points__item--colorized ${e[n] === o ? "selected" : ""}`,
|
|
58114
|
+
children: o
|
|
58115
58115
|
},
|
|
58116
|
-
|
|
58116
|
+
o
|
|
58117
58117
|
)) }),
|
|
58118
58118
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "survey--points__labels", children: [
|
|
58119
58119
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t("survey.bad") }),
|
|
@@ -58186,7 +58186,6 @@ function SurveyComponent({ emitEvent: l, soundActions: e }) {
|
|
|
58186
58186
|
id: PAGES[s].id,
|
|
58187
58187
|
survey: n,
|
|
58188
58188
|
translate: u,
|
|
58189
|
-
changePage: (T) => p(!1),
|
|
58190
58189
|
literalLabel: u(`survey.question${s + 1}`, { ordinal: s + 1 })
|
|
58191
58190
|
}
|
|
58192
58191
|
)
|
|
@@ -61453,12 +61452,12 @@ function StepOne({ handleContinue: l, handleCancel: e, translate: n, text: t })
|
|
|
61453
61452
|
function StepTwo({ handleFinish: l, translate: e, valid: n, invalid: t }) {
|
|
61454
61453
|
const [s, o] = useState(!1), d = () => {
|
|
61455
61454
|
o(!s);
|
|
61456
|
-
}, f = n === 1 ? "invitationSend" : "invitationsSend", h = t === 1 ? "invitationNotSend" : "invitationsNotSend";
|
|
61455
|
+
}, f = n.current === 1 ? "invitationSend" : "invitationsSend", h = t === 1 ? "invitationNotSend" : "invitationsNotSend";
|
|
61457
61456
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
61458
61457
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "referrals-piece__body", dir: "auto", children: [
|
|
61459
61458
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "referrals-piece__title", children: e("puzzles.referrals.inviter.titleStep2") }),
|
|
61460
61459
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: "referrals-piece__feedback", children: [
|
|
61461
|
-
|
|
61460
|
+
n.current !== 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
|
|
61462
61461
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "referrals-piece__feedbackicon icon-check-circle-black color--success" }),
|
|
61463
61462
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
61464
61463
|
/* @__PURE__ */ jsxRuntimeExports.jsx("strong", { children: n.current }),
|