@gamelearn/arcade-components 3.19.0 → 3.19.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.
|
@@ -851,49 +851,55 @@ function InventoryItem({ name: l, description: e, element: n, onFinish: t, sound
|
|
|
851
851
|
}, p = o({ forward: u, escape: u });
|
|
852
852
|
return useEffect(() => p(), [p]), useEffect(() => {
|
|
853
853
|
n || t();
|
|
854
|
-
}, [t, n]), n ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "inventory--layer__info", dir: "auto", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
{
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "inventory-popup__title", children: l }),
|
|
868
|
-
e && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { tabIndex: "0", className: "inventory-popup__description", children: e }),
|
|
869
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "inventory-popup__image", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
870
|
-
Renderer,
|
|
871
|
-
{
|
|
872
|
-
fullscreen: !1,
|
|
873
|
-
gl: { alpha: !0 },
|
|
874
|
-
onCreated: ({ gl: _ }) => {
|
|
875
|
-
_.setClearColor(16777215);
|
|
876
|
-
},
|
|
877
|
-
style: { height: "100%" },
|
|
878
|
-
children: [
|
|
879
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(OrbitControls, { makeDefault: !0, enableKeys: !1, enableZoom: !1, enablePan: !1 }),
|
|
880
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(LightSet, {}),
|
|
881
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
882
|
-
Item$1,
|
|
883
|
-
{
|
|
884
|
-
url: n.url,
|
|
885
|
-
position: [0, 0, 0],
|
|
886
|
-
rotation: [0, 0, 0],
|
|
887
|
-
scale: [1, 1, 1],
|
|
888
|
-
material: n.material || {},
|
|
889
|
-
name: n.name
|
|
854
|
+
}, [t, n]), n ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "inventory--layer__info", dir: "auto", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
855
|
+
"div",
|
|
856
|
+
{
|
|
857
|
+
className: `inventory-popup fadeIn--animation ${e || n.description ? "inventory-popup--withdescription" : ""}`,
|
|
858
|
+
children: [
|
|
859
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
860
|
+
"button",
|
|
861
|
+
{
|
|
862
|
+
type: "button",
|
|
863
|
+
"aria-label": h("inventory.closeDetail"),
|
|
864
|
+
className: "inventory-popup__close",
|
|
865
|
+
onClick: () => {
|
|
866
|
+
u();
|
|
890
867
|
},
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
868
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "icon-close" })
|
|
869
|
+
}
|
|
870
|
+
),
|
|
871
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "inventory-popup__title", children: l || n.name }),
|
|
872
|
+
(e || n.description) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { tabIndex: "0", className: "inventory-popup__description", children: e || n.description }),
|
|
873
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "inventory-popup__image", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
874
|
+
Renderer,
|
|
875
|
+
{
|
|
876
|
+
fullscreen: !1,
|
|
877
|
+
gl: { alpha: !0 },
|
|
878
|
+
onCreated: ({ gl: _ }) => {
|
|
879
|
+
_.setClearColor(16777215);
|
|
880
|
+
},
|
|
881
|
+
style: { height: "100%" },
|
|
882
|
+
children: [
|
|
883
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(OrbitControls, { makeDefault: !0, enableKeys: !1, enableZoom: !1, enablePan: !1 }),
|
|
884
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(LightSet, {}),
|
|
885
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
886
|
+
Item$1,
|
|
887
|
+
{
|
|
888
|
+
url: n.url,
|
|
889
|
+
position: [0, 0, 0],
|
|
890
|
+
rotation: [0, 0, 0],
|
|
891
|
+
scale: [1, 1, 1],
|
|
892
|
+
material: n.material || {},
|
|
893
|
+
name: n.name
|
|
894
|
+
},
|
|
895
|
+
`${n.uid}`
|
|
896
|
+
)
|
|
897
|
+
]
|
|
898
|
+
}
|
|
899
|
+
) })
|
|
900
|
+
]
|
|
901
|
+
}
|
|
902
|
+
) }) : null;
|
|
897
903
|
}
|
|
898
904
|
function commonjsRequire(l) {
|
|
899
905
|
throw new Error('Could not dynamically require "' + l + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -61452,12 +61458,12 @@ function StepOne({ handleContinue: l, handleCancel: e, translate: n, text: t })
|
|
|
61452
61458
|
function StepTwo({ handleFinish: l, translate: e, valid: n, invalid: t }) {
|
|
61453
61459
|
const [s, o] = useState(!1), d = () => {
|
|
61454
61460
|
o(!s);
|
|
61455
|
-
}, f = n === 1 ? "invitationSend" : "invitationsSend", h = t === 1 ? "invitationNotSend" : "invitationsNotSend";
|
|
61461
|
+
}, f = n.current === 1 ? "invitationSend" : "invitationsSend", h = t === 1 ? "invitationNotSend" : "invitationsNotSend";
|
|
61456
61462
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
61457
61463
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "referrals-piece__body", dir: "auto", children: [
|
|
61458
61464
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "referrals-piece__title", children: e("puzzles.referrals.inviter.titleStep2") }),
|
|
61459
61465
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: "referrals-piece__feedback", children: [
|
|
61460
|
-
|
|
61466
|
+
n.current !== 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
|
|
61461
61467
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "referrals-piece__feedbackicon icon-check-circle-black color--success" }),
|
|
61462
61468
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
61463
61469
|
/* @__PURE__ */ jsxRuntimeExports.jsx("strong", { children: n.current }),
|