@gamelearn/arcade-components 3.26.0 → 3.27.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.
|
@@ -40348,10 +40348,8 @@ function requireScheduler_development() {
|
|
|
40348
40348
|
}();
|
|
40349
40349
|
}(scheduler_development)), scheduler_development;
|
|
40350
40350
|
}
|
|
40351
|
-
|
|
40352
|
-
|
|
40353
|
-
return hasRequiredScheduler || (hasRequiredScheduler = 1, process.env.NODE_ENV === "production" ? scheduler.exports = requireScheduler_production_min() : scheduler.exports = requireScheduler_development()), scheduler.exports;
|
|
40354
|
-
}
|
|
40351
|
+
process.env.NODE_ENV === "production" ? scheduler.exports = requireScheduler_production_min() : scheduler.exports = requireScheduler_development();
|
|
40352
|
+
var schedulerExports = scheduler.exports;
|
|
40355
40353
|
/**
|
|
40356
40354
|
* @license React
|
|
40357
40355
|
* react-reconciler.production.min.js
|
|
@@ -40364,7 +40362,7 @@ function requireScheduler() {
|
|
|
40364
40362
|
var reactReconciler_production_min, hasRequiredReactReconciler_production_min;
|
|
40365
40363
|
function requireReactReconciler_production_min() {
|
|
40366
40364
|
return hasRequiredReactReconciler_production_min || (hasRequiredReactReconciler_production_min = 1, reactReconciler_production_min = function(e) {
|
|
40367
|
-
var n = {}, t = React__default, s =
|
|
40365
|
+
var n = {}, t = React__default, s = schedulerExports, o = Object.assign;
|
|
40368
40366
|
function d(x) {
|
|
40369
40367
|
for (var A = "https://reactjs.org/docs/error-decoder.html?invariant=" + x, j = 1; j < arguments.length; j++)
|
|
40370
40368
|
A += "&args[]=" + encodeURIComponent(arguments[j]);
|
|
@@ -44481,7 +44479,7 @@ var reactReconciler_development = { exports: {} };
|
|
|
44481
44479
|
var hasRequiredReactReconciler_development;
|
|
44482
44480
|
function requireReactReconciler_development() {
|
|
44483
44481
|
return hasRequiredReactReconciler_development || (hasRequiredReactReconciler_development = 1, process.env.NODE_ENV !== "production" && (reactReconciler_development.exports = function(e) {
|
|
44484
|
-
var n = {}, t = React__default, s =
|
|
44482
|
+
var n = {}, t = React__default, s = schedulerExports, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, d = !1;
|
|
44485
44483
|
function h(a) {
|
|
44486
44484
|
d = a;
|
|
44487
44485
|
}
|
|
@@ -53745,7 +53743,6 @@ function updatePicture(l) {
|
|
|
53745
53743
|
e && e.batchDraw();
|
|
53746
53744
|
}
|
|
53747
53745
|
}
|
|
53748
|
-
var schedulerExports = requireScheduler();
|
|
53749
53746
|
const NO_CONTEXT = {}, UPDATE_SIGNAL = {};
|
|
53750
53747
|
Konva.Node.prototype._applyProps = applyNodeProps;
|
|
53751
53748
|
function appendInitialChild(l, e) {
|
|
@@ -57467,20 +57464,19 @@ function DragItemPuzzleComponent({
|
|
|
57467
57464
|
targetId: n.uid,
|
|
57468
57465
|
name: n.name
|
|
57469
57466
|
}
|
|
57470
|
-
})
|
|
57467
|
+
});
|
|
57471
57468
|
}, [d, f, n.name, n.uid]), se = useCallback(() => {
|
|
57472
57469
|
T("success"), f({ type: "hidePuzzleButtons", payload: !0 }), D.current = [...D.current, ...E.right.rewards], setTimeout(() => {
|
|
57473
57470
|
te();
|
|
57474
57471
|
}, 2e3);
|
|
57475
57472
|
}, [f, te, E.right.rewards]), ee = useCallback(() => {
|
|
57476
|
-
f({ type: "
|
|
57477
|
-
} }), T(""), f({ type: "hidePuzzleButtons", payload: !1 }), f({ type: "failPuzzle" }), D.current = [...D.current, ...E.wrong.rewards];
|
|
57473
|
+
T(""), f({ type: "hidePuzzleButtons", payload: !1 }), f({ type: "failPuzzle" }), D.current = [...D.current, ...E.wrong.rewards];
|
|
57478
57474
|
}, [f, E.wrong.rewards]), K = useCallback(
|
|
57479
57475
|
(J) => {
|
|
57480
57476
|
const H = J.dataTransfer.getData("item");
|
|
57481
57477
|
S.current.setPointersPositions(J);
|
|
57482
57478
|
const W = G(J);
|
|
57483
|
-
f({ type: "hidePuzzleButtons", payload: !0 }), W && X(H) ? (T("success"),
|
|
57479
|
+
f({ type: "hidePuzzleButtons", payload: !0 }), W && X(H) ? (T("success"), t.solution.right.desc === "" && se()) : (T("failed"), t.solution.wrong.desc === "" && setTimeout(() => {
|
|
57484
57480
|
ee();
|
|
57485
57481
|
}, 2e3));
|
|
57486
57482
|
},
|