@gamelearn/arcade-components 3.33.1 → 3.33.4
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.
|
@@ -14479,7 +14479,7 @@ function UrlComponent({
|
|
|
14479
14479
|
visible: x,
|
|
14480
14480
|
allowContinue: S = !1
|
|
14481
14481
|
}) {
|
|
14482
|
-
const g = (
|
|
14482
|
+
const g = (P) => e({ type: "translate", payload: P }), v = {
|
|
14483
14483
|
documentType: p,
|
|
14484
14484
|
name: t,
|
|
14485
14485
|
text: h,
|
|
@@ -14493,7 +14493,9 @@ function UrlComponent({
|
|
|
14493
14493
|
escape: R
|
|
14494
14494
|
});
|
|
14495
14495
|
useEffect(() => C(), [C]);
|
|
14496
|
-
const D = s.indexOf("http") !== 0 ? `http://${s}` : s
|
|
14496
|
+
const D = s.indexOf("http") !== 0 ? `http://${s}` : s, N = useCallback(() => {
|
|
14497
|
+
b("click-ui"), window.open(D, "_blank", "noopener,noreferrer"), w(!0);
|
|
14498
|
+
}, [b, D]);
|
|
14497
14499
|
return useEffect(() => {
|
|
14498
14500
|
x || R();
|
|
14499
14501
|
}), x && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "popup--layer", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "popup popup--link", children: [
|
|
@@ -14511,16 +14513,12 @@ function UrlComponent({
|
|
|
14511
14513
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "popup--link__title", children: n }),
|
|
14512
14514
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "popup--link__desc", children: d }),
|
|
14513
14515
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14514
|
-
"
|
|
14516
|
+
"button",
|
|
14515
14517
|
{
|
|
14516
|
-
className: "popup--link__lineclamp popup--link__url",
|
|
14517
|
-
href: D,
|
|
14518
|
-
target: "_blank",
|
|
14519
14518
|
role: "link",
|
|
14520
|
-
|
|
14521
|
-
|
|
14522
|
-
|
|
14523
|
-
},
|
|
14519
|
+
className: "unset-button popup--link__lineclamp popup--link__url",
|
|
14520
|
+
type: "button",
|
|
14521
|
+
onClick: N,
|
|
14524
14522
|
children: f || s
|
|
14525
14523
|
}
|
|
14526
14524
|
)
|
|
@@ -57499,10 +57497,10 @@ function DragItemPuzzleComponent({
|
|
|
57499
57497
|
}
|
|
57500
57498
|
});
|
|
57501
57499
|
}, [d, f, n.name, n.uid]), se = useCallback(() => {
|
|
57502
|
-
R("success"), f({ type: "hidePuzzleButtons", payload: !0 }), P.current = [...P.current, ..._.right.rewards], setTimeout(() => {
|
|
57500
|
+
R("success"), f({ type: "hidePuzzleButtons", payload: !0 }), P.current = [...P.current, ..._.right.rewards], t.solution.right.desc === "" ? setTimeout(() => {
|
|
57503
57501
|
re();
|
|
57504
|
-
}, 2e3);
|
|
57505
|
-
}, [f, re, _.right.rewards]), ee = useCallback(() => {
|
|
57502
|
+
}, 2e3) : re();
|
|
57503
|
+
}, [f, re, t.solution.right.desc, _.right.rewards]), ee = useCallback(() => {
|
|
57506
57504
|
R(""), f({ type: "hidePuzzleButtons", payload: !1 }), f({ type: "failPuzzle" }), P.current = [...P.current, ..._.wrong.rewards];
|
|
57507
57505
|
}, [f, _.wrong.rewards]), K = useCallback(
|
|
57508
57506
|
(J) => {
|