gearboxdownloadmodal 5.0.74 → 5.0.76
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/dist/index.es.js +11 -7
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4076,7 +4076,7 @@ async function Vt(e, t, n, r, o, i = "download", a) {
|
|
|
4076
4076
|
d(m), A(m);
|
|
4077
4077
|
}).catch((s) => {
|
|
4078
4078
|
let m = s.response.data.error.msg;
|
|
4079
|
-
c(m);
|
|
4079
|
+
c({ message: m });
|
|
4080
4080
|
})) : e === "Flex" ? (r && await JA(
|
|
4081
4081
|
{
|
|
4082
4082
|
_id: t,
|
|
@@ -4091,23 +4091,27 @@ async function Vt(e, t, n, r, o, i = "download", a) {
|
|
|
4091
4091
|
},
|
|
4092
4092
|
o
|
|
4093
4093
|
).then(async (s) => {
|
|
4094
|
+
if (s.message) {
|
|
4095
|
+
c(s);
|
|
4096
|
+
return;
|
|
4097
|
+
}
|
|
4094
4098
|
let { url: m } = s;
|
|
4095
4099
|
d(m), A(m);
|
|
4096
4100
|
}).catch((s) => {
|
|
4097
4101
|
let m = s.response.data.error.msg;
|
|
4098
|
-
c(m);
|
|
4102
|
+
c({ message: m });
|
|
4099
4103
|
})) : e === "Import" ? YA(o, t, n).then((s) => {
|
|
4100
4104
|
let m = s.url;
|
|
4101
4105
|
d(m), A(m);
|
|
4102
4106
|
}).catch((s) => {
|
|
4103
4107
|
let m = s.response.data.error.msg;
|
|
4104
|
-
c(m);
|
|
4108
|
+
c({ message: m });
|
|
4105
4109
|
}) : e === "Ready" && jA(o, t, n).then((s) => {
|
|
4106
4110
|
let m = s.url;
|
|
4107
4111
|
d(m), A(m);
|
|
4108
4112
|
}).catch((s) => {
|
|
4109
4113
|
let m = s.response.data.error.msg;
|
|
4110
|
-
c(m);
|
|
4114
|
+
c({ message: m });
|
|
4111
4115
|
});
|
|
4112
4116
|
});
|
|
4113
4117
|
}
|
|
@@ -5333,13 +5337,13 @@ const ms = [
|
|
|
5333
5337
|
).then((R) => {
|
|
5334
5338
|
V(!1);
|
|
5335
5339
|
}).catch((R) => {
|
|
5336
|
-
V(!1), m(R);
|
|
5340
|
+
V(!1), m(R.message, R);
|
|
5337
5341
|
});
|
|
5338
5342
|
}, Y = async () => {
|
|
5339
5343
|
W(!0), Vt(c, d, o, h, s, "download", M).then((k) => {
|
|
5340
5344
|
W(!1), x(!1);
|
|
5341
5345
|
}).catch((k) => {
|
|
5342
|
-
m(k);
|
|
5346
|
+
m(k.message, k);
|
|
5343
5347
|
});
|
|
5344
5348
|
}, X = async () => {
|
|
5345
5349
|
g(!0);
|
|
@@ -5945,7 +5949,7 @@ const ys = ({
|
|
|
5945
5949
|
const I = c + "/" + K;
|
|
5946
5950
|
g = document.createElement("iframe"), g.setAttribute("src", I), g.style.display = "none", document.body.appendChild(g), g.click(), ee(!1), Lt("Multi downloaded completed successfully");
|
|
5947
5951
|
} catch (p) {
|
|
5948
|
-
ee(!1), A(p.response.data.error.msg), console.error(p);
|
|
5952
|
+
ee(!1), A(p.response.data.error.msg, p.response), console.error(p);
|
|
5949
5953
|
}
|
|
5950
5954
|
}, j = async () => {
|
|
5951
5955
|
d.iosUrl, d.googleUrl, t && t.willSpendCredit ? (ne(!0), se("download"), P(!0)) : (P(!1), await O());
|