bnstooltips 1.18.3 → 1.18.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.
- package/build/index.es.js +10 -16
- package/build/index.es.js.map +1 -1
- package/build/index.js +10 -16
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -8012,32 +8012,23 @@ function FilterStones(stones) {
|
|
|
8012
8012
|
}
|
|
8013
8013
|
|
|
8014
8014
|
function ItemUpgradeEffects(props) {
|
|
8015
|
-
var _this = this;
|
|
8016
8015
|
var _a = React.useState(undefined), effectData = _a[0], setEffectData = _a[1];
|
|
8017
8016
|
var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
|
|
8018
8017
|
var _c = React.useState(true), fresh = _c[0], setFresh = _c[1];
|
|
8019
|
-
React.useEffect(function () {
|
|
8020
|
-
if (props.client)
|
|
8021
|
-
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
8022
|
-
return __generator(this, function (_a) {
|
|
8023
|
-
return [2 /*return*/];
|
|
8024
|
-
});
|
|
8025
|
-
}); })();
|
|
8026
|
-
}, [props, props.id, props.level, props.client]);
|
|
8027
8018
|
function LoadEffectOptions() {
|
|
8028
8019
|
return __awaiter(this, void 0, void 0, function () {
|
|
8029
8020
|
var result, itemImproveEffectsForName_1;
|
|
8030
|
-
return __generator(this, function (
|
|
8031
|
-
switch (
|
|
8021
|
+
return __generator(this, function (_b) {
|
|
8022
|
+
switch (_b.label) {
|
|
8032
8023
|
case 0:
|
|
8033
8024
|
setLoading(true);
|
|
8034
8025
|
setFresh(false);
|
|
8035
|
-
|
|
8026
|
+
_b.label = 1;
|
|
8036
8027
|
case 1:
|
|
8037
|
-
|
|
8028
|
+
_b.trys.push([1, 3, 4, 5]);
|
|
8038
8029
|
return [4 /*yield*/, props.client.GetAllItemImproveEffectOptionsForItem(props.id, props.level)];
|
|
8039
8030
|
case 2:
|
|
8040
|
-
result =
|
|
8031
|
+
result = _b.sent();
|
|
8041
8032
|
if (result && result.itemImproveEffectOptions && result.itemImproveEffectOptions.length > 0) {
|
|
8042
8033
|
itemImproveEffectsForName_1 = [];
|
|
8043
8034
|
result.itemImproveEffectOptions.sort(function (a, b) { return a.index - b.index; }).forEach(function (effectOption) {
|
|
@@ -8051,11 +8042,14 @@ function ItemUpgradeEffects(props) {
|
|
|
8051
8042
|
else {
|
|
8052
8043
|
setEffectData(undefined);
|
|
8053
8044
|
}
|
|
8054
|
-
return [3 /*break*/,
|
|
8045
|
+
return [3 /*break*/, 5];
|
|
8055
8046
|
case 3:
|
|
8047
|
+
_b.sent();
|
|
8048
|
+
return [3 /*break*/, 5];
|
|
8049
|
+
case 4:
|
|
8056
8050
|
setLoading(false);
|
|
8057
8051
|
return [7 /*endfinally*/];
|
|
8058
|
-
case
|
|
8052
|
+
case 5: return [2 /*return*/];
|
|
8059
8053
|
}
|
|
8060
8054
|
});
|
|
8061
8055
|
});
|