@vbotma/sdk 3.2.8 → 3.2.9
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +81 -81
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -204,35 +204,35 @@ function A(n, e) {
|
|
|
204
204
|
return `option ${w} is not supported in Mini Apps version ${s()}`;
|
|
205
205
|
}, F = S(() => !l()), b = S(() => s() !== "0.0"), k = S(() => e.isMounted ? e.isMounted() : !0), C = S(
|
|
206
206
|
() => r() && b() && F() && k()
|
|
207
|
-
),
|
|
207
|
+
), q = (g) => {
|
|
208
208
|
const w = new Et(g);
|
|
209
209
|
return ["task", "promise"].includes(e.returns) ? u.left(w) : m.left(w);
|
|
210
|
-
},
|
|
210
|
+
}, I = (...g) => o === "plain" ? m.tryCatch(() => n(...g), (w) => w) : o === "promise" ? u.tryCatch(() => n(...g), (w) => w) : n(...g);
|
|
211
211
|
return Object.assign(
|
|
212
212
|
(...g) => {
|
|
213
213
|
var V;
|
|
214
214
|
const w = "Unable to call function:";
|
|
215
215
|
if (!r())
|
|
216
|
-
return
|
|
216
|
+
return q(`${w} it can't be called outside Mini Apps`);
|
|
217
217
|
if (!b())
|
|
218
|
-
return
|
|
218
|
+
return q(`${w} the SDK was not initialized. Use the SDK init() function`);
|
|
219
219
|
const _ = l();
|
|
220
220
|
if (_)
|
|
221
|
-
return
|
|
221
|
+
return q(`${w} ${_}`);
|
|
222
222
|
const x = f(...g);
|
|
223
223
|
if (x)
|
|
224
|
-
return
|
|
224
|
+
return q(`${w} ${x}`);
|
|
225
225
|
if (!k()) {
|
|
226
226
|
const R = (V = e.isMounting) != null && V.call(e) ? "mounting. Wait for the mount completion" : "unmounted. Use the mount() method";
|
|
227
|
-
return
|
|
227
|
+
return q(`${w} the component is ${R}`);
|
|
228
228
|
}
|
|
229
|
-
return
|
|
229
|
+
return I(...g);
|
|
230
230
|
},
|
|
231
231
|
n,
|
|
232
232
|
{
|
|
233
233
|
isAvailable: C,
|
|
234
234
|
ifAvailable(...g) {
|
|
235
|
-
return C() ? N.some(
|
|
235
|
+
return C() ? N.some(I(...g)) : N.none;
|
|
236
236
|
}
|
|
237
237
|
},
|
|
238
238
|
p ? { isSupported: F } : {},
|
|
@@ -344,15 +344,15 @@ class _e {
|
|
|
344
344
|
isPageReload: p,
|
|
345
345
|
onMounted: b.setState,
|
|
346
346
|
restoreState: s.get
|
|
347
|
-
}), C = { version: F, requires: f, isVBma: e },
|
|
347
|
+
}), C = { version: F, requires: f, isVBma: e }, q = E({
|
|
348
348
|
...C,
|
|
349
349
|
returns: "plain"
|
|
350
|
-
}),
|
|
350
|
+
}), I = E({
|
|
351
351
|
...C,
|
|
352
352
|
returns: "either",
|
|
353
353
|
isMounted: k.isMounted
|
|
354
354
|
});
|
|
355
|
-
this.isMounted = k.isMounted, this.isSupported = U(f, F), this.state = b.state, this.setStateFp =
|
|
355
|
+
this.isMounted = k.isMounted, this.isSupported = U(f, F), this.state = b.state, this.setStateFp = I((g) => {
|
|
356
356
|
const w = { ...this.state(), ...Se(g) };
|
|
357
357
|
return b.hasDiff(w) ? c.pipe(
|
|
358
358
|
a(f, l(w)),
|
|
@@ -360,15 +360,15 @@ class _e {
|
|
|
360
360
|
b.setState(w);
|
|
361
361
|
})
|
|
362
362
|
) : m.right(void 0);
|
|
363
|
-
}), this.setState = /* @__PURE__ */ h(this.setStateFp), this.onClickFp =
|
|
363
|
+
}), this.setState = /* @__PURE__ */ h(this.setStateFp), this.onClickFp = q(r), this.onClick = /* @__PURE__ */ h(this.onClickFp), this.offClickFp = q(i), this.offClick = /* @__PURE__ */ h(this.offClickFp), this.mountFp = q(() => {
|
|
364
364
|
const g = () => {
|
|
365
365
|
};
|
|
366
366
|
return c.pipe(k.mount(), m.match(g, g));
|
|
367
367
|
}), this.mount = /* @__PURE__ */ h(this.mountFp), this.unmount = k.unmount, this.stateSetters = (g) => {
|
|
368
|
-
const w =
|
|
368
|
+
const w = I((_) => this.setStateFp({ [g]: _ }));
|
|
369
369
|
return [/* @__PURE__ */ h(w), w];
|
|
370
370
|
}, this.stateBoolSetters = (g) => {
|
|
371
|
-
const [, w] = this.stateSetters(g), _ =
|
|
371
|
+
const [, w] = this.stateSetters(g), _ = I(() => w(!1)), x = I(() => w(!0));
|
|
372
372
|
return [
|
|
373
373
|
[/* @__PURE__ */ h(_), _],
|
|
374
374
|
[/* @__PURE__ */ h(x), x]
|
|
@@ -509,14 +509,14 @@ function Z(n) {
|
|
|
509
509
|
isPageReload: $t
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
|
-
const Ce = /* @__PURE__ */ oe("0.0"),
|
|
512
|
+
const Ce = /* @__PURE__ */ oe("0.0"), y = se({ version: Ce });
|
|
513
513
|
// @__NO_SIDE_EFFECTS__
|
|
514
514
|
function Ae(n, e) {
|
|
515
515
|
return {
|
|
516
516
|
...c.pipe(
|
|
517
517
|
v(),
|
|
518
518
|
T,
|
|
519
|
-
|
|
519
|
+
y,
|
|
520
520
|
Z(n)
|
|
521
521
|
),
|
|
522
522
|
onClick(s, r) {
|
|
@@ -706,21 +706,21 @@ class Pt {
|
|
|
706
706
|
}), k = { version: e, requires: "web_app_biometry_request_auth", isVBma: a }, C = E({
|
|
707
707
|
...k,
|
|
708
708
|
returns: "either"
|
|
709
|
-
}),
|
|
709
|
+
}), q = E({
|
|
710
710
|
...k,
|
|
711
711
|
returns: "task"
|
|
712
|
-
}),
|
|
712
|
+
}), I = E({
|
|
713
713
|
...k,
|
|
714
714
|
isMounted: b.isMounted,
|
|
715
715
|
returns: "task"
|
|
716
716
|
});
|
|
717
|
-
this.isAvailable = F.getter("available"), this.isMounted = b.isMounted, this.isSupported = U("web_app_biometry_request_auth", e), this.state = F.state, this.unmount = b.unmount, this.mountFp =
|
|
717
|
+
this.isAvailable = F.getter("available"), this.isMounted = b.isMounted, this.isSupported = U("web_app_biometry_request_auth", e), this.state = F.state, this.unmount = b.unmount, this.mountFp = q(b.mount), this.authenticateFp = I((g) => this.isAvailable() ? c.pipe(
|
|
718
718
|
s("web_app_biometry_request_auth", "biometry_auth_requested", {
|
|
719
719
|
...g,
|
|
720
720
|
params: { reason: ((g || {}).reason || "").trim() }
|
|
721
721
|
}),
|
|
722
722
|
u.map((w) => (F.setState({ token: w.token }), w))
|
|
723
|
-
) : u.left(je())), this.openSettingsFp = C(() => r("web_app_biometry_open_settings")), this.requestAccessFp =
|
|
723
|
+
) : u.left(je())), this.openSettingsFp = C(() => r("web_app_biometry_open_settings")), this.requestAccessFp = I((g) => c.pipe(
|
|
724
724
|
s("web_app_biometry_request_access", "biometry_info_received", {
|
|
725
725
|
...g,
|
|
726
726
|
params: { reason: ((g || {}).reason || "").trim() }
|
|
@@ -729,7 +729,7 @@ class Pt {
|
|
|
729
729
|
const _ = ge(w);
|
|
730
730
|
return _.available ? (F.setState(_), u.right(_.accessRequested)) : u.left(je());
|
|
731
731
|
})
|
|
732
|
-
)), this.updateTokenFp =
|
|
732
|
+
)), this.updateTokenFp = I((g = {}) => {
|
|
733
733
|
var w;
|
|
734
734
|
return c.pipe(
|
|
735
735
|
s("web_app_biometry_update_token", "biometry_token_updated", {
|
|
@@ -753,7 +753,7 @@ function Ot() {
|
|
|
753
753
|
...c.pipe(
|
|
754
754
|
v(),
|
|
755
755
|
T,
|
|
756
|
-
|
|
756
|
+
y,
|
|
757
757
|
L,
|
|
758
758
|
Z("biometry")
|
|
759
759
|
),
|
|
@@ -959,7 +959,7 @@ const Re = se({
|
|
|
959
959
|
function Wt() {
|
|
960
960
|
return new Gt(c.pipe(
|
|
961
961
|
v(),
|
|
962
|
-
|
|
962
|
+
y,
|
|
963
963
|
Re
|
|
964
964
|
));
|
|
965
965
|
}
|
|
@@ -1035,7 +1035,7 @@ const et = se({ createRequestId: Me });
|
|
|
1035
1035
|
function Kt() {
|
|
1036
1036
|
return new Qt(c.pipe(
|
|
1037
1037
|
v(),
|
|
1038
|
-
|
|
1038
|
+
y,
|
|
1039
1039
|
L,
|
|
1040
1040
|
et
|
|
1041
1041
|
));
|
|
@@ -1051,7 +1051,7 @@ function zt({ request: n, ...e }) {
|
|
|
1051
1051
|
function Nt() {
|
|
1052
1052
|
return zt(c.pipe(
|
|
1053
1053
|
v(),
|
|
1054
|
-
|
|
1054
|
+
y,
|
|
1055
1055
|
L
|
|
1056
1056
|
));
|
|
1057
1057
|
}
|
|
@@ -1077,7 +1077,7 @@ function Zt() {
|
|
|
1077
1077
|
return Yt(c.pipe(
|
|
1078
1078
|
v(),
|
|
1079
1079
|
L,
|
|
1080
|
-
|
|
1080
|
+
y
|
|
1081
1081
|
));
|
|
1082
1082
|
}
|
|
1083
1083
|
const Xt = /* @__PURE__ */ Zt(), vn = /* @__PURE__ */ h(Xt);
|
|
@@ -1136,7 +1136,7 @@ function ts() {
|
|
|
1136
1136
|
return new es(c.pipe(
|
|
1137
1137
|
v(),
|
|
1138
1138
|
T,
|
|
1139
|
-
|
|
1139
|
+
y
|
|
1140
1140
|
));
|
|
1141
1141
|
}
|
|
1142
1142
|
const kn = /* @__PURE__ */ ts();
|
|
@@ -1147,7 +1147,7 @@ function ss({ postEvent: n, ...e }) {
|
|
|
1147
1147
|
function rs() {
|
|
1148
1148
|
return ss(c.pipe(
|
|
1149
1149
|
v(),
|
|
1150
|
-
|
|
1150
|
+
y,
|
|
1151
1151
|
T
|
|
1152
1152
|
));
|
|
1153
1153
|
}
|
|
@@ -1162,7 +1162,7 @@ function is({ request: n, ...e }) {
|
|
|
1162
1162
|
function os() {
|
|
1163
1163
|
return is(c.pipe(
|
|
1164
1164
|
v(),
|
|
1165
|
-
|
|
1165
|
+
y,
|
|
1166
1166
|
L
|
|
1167
1167
|
));
|
|
1168
1168
|
}
|
|
@@ -1342,7 +1342,7 @@ class us {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
1344
|
function ls() {
|
|
1345
|
-
return new us(c.pipe(v(), L,
|
|
1345
|
+
return new us(c.pipe(v(), L, y));
|
|
1346
1346
|
}
|
|
1347
1347
|
const En = /* @__PURE__ */ ls();
|
|
1348
1348
|
function ds({ postEvent: n, ...e }) {
|
|
@@ -1376,7 +1376,7 @@ function fs() {
|
|
|
1376
1376
|
return bs(c.pipe(
|
|
1377
1377
|
v(),
|
|
1378
1378
|
T,
|
|
1379
|
-
|
|
1379
|
+
y
|
|
1380
1380
|
));
|
|
1381
1381
|
}
|
|
1382
1382
|
const tt = /* @__PURE__ */ fs(), An = /* @__PURE__ */ h(tt);
|
|
@@ -1500,10 +1500,10 @@ class Ss {
|
|
|
1500
1500
|
});
|
|
1501
1501
|
this.isAvailable = a.getter("available"), this.isAccessRequested = a.getter("accessRequested"), this.isAccessGranted = a.getter("accessGranted"), this.isSupported = U("web_app_check_location", e), this.isMounted = l.isMounted, this.state = a.state, this.unmount = l.unmount, this.mountFp = b(l.mount), this.openSettingsFp = F(() => r("web_app_open_location_settings")), this.requestLocationFp = k((C) => c.pipe(
|
|
1502
1502
|
s("web_app_request_location", "location_requested", C),
|
|
1503
|
-
u.map((
|
|
1504
|
-
if (!
|
|
1503
|
+
u.map((q) => {
|
|
1504
|
+
if (!q.available)
|
|
1505
1505
|
return a.setState({ available: !1 }), null;
|
|
1506
|
-
const { available:
|
|
1506
|
+
const { available: I, ...g } = q;
|
|
1507
1507
|
return g;
|
|
1508
1508
|
})
|
|
1509
1509
|
)), this.mount = /* @__PURE__ */ h(this.mountFp), this.openSettings = /* @__PURE__ */ h(this.openSettingsFp), this.requestLocation = /* @__PURE__ */ h(this.requestLocationFp);
|
|
@@ -1513,7 +1513,7 @@ function Cs() {
|
|
|
1513
1513
|
return new Ss(c.pipe(
|
|
1514
1514
|
v(),
|
|
1515
1515
|
T,
|
|
1516
|
-
|
|
1516
|
+
y,
|
|
1517
1517
|
L,
|
|
1518
1518
|
Z("locationManager")
|
|
1519
1519
|
));
|
|
@@ -1895,17 +1895,17 @@ class ys {
|
|
|
1895
1895
|
if (this._isCssVarsBound())
|
|
1896
1896
|
return m.left(new Ee());
|
|
1897
1897
|
C || (C = (g) => `--vb-theme-${gt(g)}`);
|
|
1898
|
-
const
|
|
1898
|
+
const q = (g) => {
|
|
1899
1899
|
Object.entries(a.state()).forEach(([w, _]) => {
|
|
1900
1900
|
_ && g(w, _);
|
|
1901
1901
|
});
|
|
1902
|
-
},
|
|
1903
|
-
|
|
1902
|
+
}, I = () => {
|
|
1903
|
+
q((g, w) => {
|
|
1904
1904
|
Te(C(g), w);
|
|
1905
1905
|
});
|
|
1906
1906
|
};
|
|
1907
|
-
return
|
|
1908
|
-
|
|
1907
|
+
return I(), a.state.sub(I), this._isCssVarsBound.set(!0), m.right(() => {
|
|
1908
|
+
q(Ve), a.state.unsub(I), this._isCssVarsBound.set(!1);
|
|
1909
1909
|
});
|
|
1910
1910
|
}), this.mountFp = b(f.mount), this.unmount = f.unmount, this.bindCssVars = /* @__PURE__ */ h(this.bindCssVarsFp), this.mount = /* @__PURE__ */ h(this.mountFp);
|
|
1911
1911
|
}
|
|
@@ -2167,28 +2167,28 @@ class Is {
|
|
|
2167
2167
|
onChange: e.set
|
|
2168
2168
|
});
|
|
2169
2169
|
this.state = k.state;
|
|
2170
|
-
const C = (_) => be(_) ? _ : P(p)[_],
|
|
2170
|
+
const C = (_) => be(_) ? _ : P(p)[_], q = (_) => S(() => C(_()));
|
|
2171
2171
|
this.isActive = k.getter("isActive"), this.isSupported = S(() => [
|
|
2172
2172
|
"web_app_set_header_color",
|
|
2173
2173
|
"web_app_set_background_color",
|
|
2174
2174
|
"web_app_set_bottom_bar_color"
|
|
2175
2175
|
].some((_) => te(_, P(r))));
|
|
2176
|
-
const
|
|
2177
|
-
this.isCssVarsBound = S(
|
|
2178
|
-
if (
|
|
2176
|
+
const I = O(!1);
|
|
2177
|
+
this.isCssVarsBound = S(I), this.bindCssVarsFp = A((_) => {
|
|
2178
|
+
if (I())
|
|
2179
2179
|
return m.left(new Ee());
|
|
2180
2180
|
const [x, V] = qe(() => {
|
|
2181
|
-
|
|
2181
|
+
I.set(!1);
|
|
2182
2182
|
}), R = (H, $) => {
|
|
2183
2183
|
const W = () => {
|
|
2184
2184
|
Te(H, $() || null);
|
|
2185
2185
|
};
|
|
2186
2186
|
W(), x($.sub(W), Ve.bind(null, H));
|
|
2187
2187
|
};
|
|
2188
|
-
return _ || (_ = (H) => `--tg-${We(H)}`), R(_("bgColor"), this.bgColorRgb), R(_("bottomBarColor"), this.bottomBarColorRgb), R(_("headerColor"), this.headerColorRgb),
|
|
2188
|
+
return _ || (_ = (H) => `--tg-${We(H)}`), R(_("bgColor"), this.bgColorRgb), R(_("bottomBarColor"), this.bottomBarColorRgb), R(_("headerColor"), this.headerColorRgb), I.set(!0), m.right(V);
|
|
2189
2189
|
}, { isVBma: o, returns: "either", isMounted: this.isMounted }), this.bindCssVars = /* @__PURE__ */ h(this.bindCssVarsFp);
|
|
2190
2190
|
const g = (_) => {
|
|
2191
|
-
const x = k.getter(_), V =
|
|
2191
|
+
const x = k.getter(_), V = q(x), R = {
|
|
2192
2192
|
headerColor: "web_app_set_header_color",
|
|
2193
2193
|
bgColor: "web_app_set_background_color",
|
|
2194
2194
|
bottomBarColor: "web_app_set_bottom_bar_color"
|
|
@@ -2254,7 +2254,7 @@ function Es() {
|
|
|
2254
2254
|
...c.pipe(
|
|
2255
2255
|
v(),
|
|
2256
2256
|
T,
|
|
2257
|
-
|
|
2257
|
+
y,
|
|
2258
2258
|
Z("miniApp")
|
|
2259
2259
|
),
|
|
2260
2260
|
offVisibilityChanged(n) {
|
|
@@ -2310,7 +2310,7 @@ class xs {
|
|
|
2310
2310
|
}
|
|
2311
2311
|
}
|
|
2312
2312
|
function Ms() {
|
|
2313
|
-
return new xs(c.pipe(v()));
|
|
2313
|
+
return new xs(c.pipe(v(), y));
|
|
2314
2314
|
}
|
|
2315
2315
|
const Tn = /* @__PURE__ */ Ms();
|
|
2316
2316
|
function Rs(n) {
|
|
@@ -2402,7 +2402,7 @@ class Ts {
|
|
|
2402
2402
|
}
|
|
2403
2403
|
}
|
|
2404
2404
|
function Vs() {
|
|
2405
|
-
return new Ts(c.pipe(v(), L,
|
|
2405
|
+
return new Ts(c.pipe(v(), L, y));
|
|
2406
2406
|
}
|
|
2407
2407
|
const Vn = /* @__PURE__ */ Vs();
|
|
2408
2408
|
function Ls({ request: n, ...e }) {
|
|
@@ -2415,7 +2415,7 @@ function Ls({ request: n, ...e }) {
|
|
|
2415
2415
|
function $s() {
|
|
2416
2416
|
return Ls(c.pipe(
|
|
2417
2417
|
v(),
|
|
2418
|
-
|
|
2418
|
+
y,
|
|
2419
2419
|
L
|
|
2420
2420
|
));
|
|
2421
2421
|
}
|
|
@@ -2492,7 +2492,7 @@ function Ps({
|
|
|
2492
2492
|
// @__NO_SIDE_EFFECTS__
|
|
2493
2493
|
function Hs() {
|
|
2494
2494
|
return Ps({
|
|
2495
|
-
...c.pipe(v(), Re,
|
|
2495
|
+
...c.pipe(v(), Re, y),
|
|
2496
2496
|
requestPhoneAccess: nt
|
|
2497
2497
|
});
|
|
2498
2498
|
}
|
|
@@ -2505,7 +2505,7 @@ function Os({ requestContact: n, ...e }) {
|
|
|
2505
2505
|
// @__NO_SIDE_EFFECTS__
|
|
2506
2506
|
function Ds() {
|
|
2507
2507
|
return Os({
|
|
2508
|
-
...c.pipe(v(),
|
|
2508
|
+
...c.pipe(v(), y),
|
|
2509
2509
|
requestContact(n) {
|
|
2510
2510
|
return c.pipe(
|
|
2511
2511
|
it(n),
|
|
@@ -2525,7 +2525,7 @@ function Gs({ request: n, ...e }) {
|
|
|
2525
2525
|
function Us() {
|
|
2526
2526
|
return Gs(c.pipe(
|
|
2527
2527
|
v(),
|
|
2528
|
-
|
|
2528
|
+
y,
|
|
2529
2529
|
L
|
|
2530
2530
|
));
|
|
2531
2531
|
}
|
|
@@ -2635,20 +2635,20 @@ class Qs {
|
|
|
2635
2635
|
f() ? u.left(new Be("The QR Scanner is already opened")) : async () => o("web_app_open_scan_qr_popup", { text: b.text }),
|
|
2636
2636
|
u.chainW(() => {
|
|
2637
2637
|
f.set(!0);
|
|
2638
|
-
const [k, C] = qe(),
|
|
2638
|
+
const [k, C] = qe(), q = (I) => (C(), f.set(!1), I);
|
|
2639
2639
|
return c.pipe(
|
|
2640
|
-
we((
|
|
2640
|
+
we((I) => {
|
|
2641
2641
|
k(
|
|
2642
2642
|
// The scanner was closed externally.
|
|
2643
|
-
s(
|
|
2643
|
+
s(I),
|
|
2644
2644
|
// The scanner was closed internally.
|
|
2645
2645
|
f.sub((g) => {
|
|
2646
|
-
g ||
|
|
2646
|
+
g || I();
|
|
2647
2647
|
}),
|
|
2648
2648
|
r(b.onCaptured)
|
|
2649
2649
|
);
|
|
2650
2650
|
}, b),
|
|
2651
|
-
u.mapBoth(
|
|
2651
|
+
u.mapBoth(q, q)
|
|
2652
2652
|
);
|
|
2653
2653
|
})
|
|
2654
2654
|
)), this.open = /* @__PURE__ */ h(this.openFp), this.capture = /* @__PURE__ */ h(this.captureFp), this.close = /* @__PURE__ */ h(this.closeFp);
|
|
@@ -2656,7 +2656,7 @@ class Qs {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
function Ks() {
|
|
2658
2658
|
return new Qs({
|
|
2659
|
-
...c.pipe(v(), T,
|
|
2659
|
+
...c.pipe(v(), T, y),
|
|
2660
2660
|
onClosed(n) {
|
|
2661
2661
|
return j("scan_qr_popup_closed", n);
|
|
2662
2662
|
},
|
|
@@ -3074,7 +3074,7 @@ class Zs {
|
|
|
3074
3074
|
function Xs() {
|
|
3075
3075
|
return new Zs(c.pipe(
|
|
3076
3076
|
v(),
|
|
3077
|
-
|
|
3077
|
+
y,
|
|
3078
3078
|
L,
|
|
3079
3079
|
et
|
|
3080
3080
|
));
|
|
@@ -3238,11 +3238,11 @@ class tr {
|
|
|
3238
3238
|
isMounted: l.isMounted,
|
|
3239
3239
|
returns: "either"
|
|
3240
3240
|
}), k = (C) => {
|
|
3241
|
-
const
|
|
3242
|
-
return a.hasDiff(
|
|
3241
|
+
const q = { isVerticalEnabled: C };
|
|
3242
|
+
return a.hasDiff(q) ? c.pipe(
|
|
3243
3243
|
e("web_app_setup_swipe_behavior", { allow_vertical_swipe: C }),
|
|
3244
3244
|
m.map(() => {
|
|
3245
|
-
a.setState(
|
|
3245
|
+
a.setState(q);
|
|
3246
3246
|
})
|
|
3247
3247
|
) : m.right(void 0);
|
|
3248
3248
|
};
|
|
@@ -3257,7 +3257,7 @@ function sr() {
|
|
|
3257
3257
|
return new tr(c.pipe(
|
|
3258
3258
|
v(),
|
|
3259
3259
|
T,
|
|
3260
|
-
|
|
3260
|
+
y,
|
|
3261
3261
|
Z("swipeBehavior")
|
|
3262
3262
|
));
|
|
3263
3263
|
}
|
|
@@ -3292,7 +3292,7 @@ function nr() {
|
|
|
3292
3292
|
return rr(c.pipe(
|
|
3293
3293
|
v(),
|
|
3294
3294
|
L,
|
|
3295
|
-
|
|
3295
|
+
y
|
|
3296
3296
|
));
|
|
3297
3297
|
}
|
|
3298
3298
|
const ir = /* @__PURE__ */ nr(), Kn = /* @__PURE__ */ h(ir);
|
|
@@ -3313,7 +3313,7 @@ function ar() {
|
|
|
3313
3313
|
return or(c.pipe(
|
|
3314
3314
|
v(),
|
|
3315
3315
|
Re,
|
|
3316
|
-
|
|
3316
|
+
y
|
|
3317
3317
|
));
|
|
3318
3318
|
}
|
|
3319
3319
|
const cr = /* @__PURE__ */ ar(), zn = /* @__PURE__ */ h(cr);
|
|
@@ -3325,7 +3325,7 @@ function ur() {
|
|
|
3325
3325
|
return pr(c.pipe(
|
|
3326
3326
|
v(),
|
|
3327
3327
|
T,
|
|
3328
|
-
|
|
3328
|
+
y
|
|
3329
3329
|
));
|
|
3330
3330
|
}
|
|
3331
3331
|
const lr = /* @__PURE__ */ ur(), Nn = /* @__PURE__ */ h(lr);
|
|
@@ -3347,7 +3347,7 @@ function hr() {
|
|
|
3347
3347
|
return dr({
|
|
3348
3348
|
...c.pipe(
|
|
3349
3349
|
v(),
|
|
3350
|
-
|
|
3350
|
+
y,
|
|
3351
3351
|
L
|
|
3352
3352
|
),
|
|
3353
3353
|
createRequestId: Me
|
|
@@ -3404,7 +3404,7 @@ function Fr() {
|
|
|
3404
3404
|
return wr(c.pipe(
|
|
3405
3405
|
v(),
|
|
3406
3406
|
L,
|
|
3407
|
-
|
|
3407
|
+
y
|
|
3408
3408
|
));
|
|
3409
3409
|
}
|
|
3410
3410
|
const Sr = /* @__PURE__ */ Fr(), Xn = /* @__PURE__ */ h(Sr);
|
|
@@ -3420,7 +3420,7 @@ function vr() {
|
|
|
3420
3420
|
return Cr(c.pipe(
|
|
3421
3421
|
v(),
|
|
3422
3422
|
T,
|
|
3423
|
-
|
|
3423
|
+
y
|
|
3424
3424
|
));
|
|
3425
3425
|
}
|
|
3426
3426
|
const kr = /* @__PURE__ */ vr(), ei = /* @__PURE__ */ h(kr), ke = /* @__PURE__ */ oe(!1);
|
|
@@ -3442,7 +3442,7 @@ function qr() {
|
|
|
3442
3442
|
...c.pipe(
|
|
3443
3443
|
v(),
|
|
3444
3444
|
T,
|
|
3445
|
-
|
|
3445
|
+
y
|
|
3446
3446
|
),
|
|
3447
3447
|
isInlineMode: ke
|
|
3448
3448
|
});
|
|
@@ -3463,8 +3463,8 @@ class Er {
|
|
|
3463
3463
|
request: b,
|
|
3464
3464
|
isViewportStable: k,
|
|
3465
3465
|
isFullscreen: C,
|
|
3466
|
-
isVBma:
|
|
3467
|
-
version:
|
|
3466
|
+
isVBma: q,
|
|
3467
|
+
version: I,
|
|
3468
3468
|
postEvent: g
|
|
3469
3469
|
}) {
|
|
3470
3470
|
//#region Other properties.
|
|
@@ -3682,7 +3682,7 @@ class Er {
|
|
|
3682
3682
|
initialState(B) {
|
|
3683
3683
|
const X = (K) => () => {
|
|
3684
3684
|
const [J, D] = K === "safe-area" ? ["web_app_request_safe_area", "safe_area_changed"] : ["web_app_request_content_safe_area", "content_safe_area_changed"];
|
|
3685
|
-
return te(J, P(
|
|
3685
|
+
return te(J, P(I)) ? b(J, D, B) : u.right({ top: 0, left: 0, right: 0, bottom: 0 });
|
|
3686
3686
|
}, M = (K) => () => typeof K == "boolean" ? u.right(K) : u.fromEither(K());
|
|
3687
3687
|
return c.pipe(
|
|
3688
3688
|
u.Do,
|
|
@@ -3718,13 +3718,13 @@ class Er {
|
|
|
3718
3718
|
restoreState: e.get
|
|
3719
3719
|
}), W = (B) => S(() => this.safeAreaInsets()[B]), ae = (B) => S(() => this.contentSafeAreaInsets()[B]);
|
|
3720
3720
|
this.state = _.state, this.height = _.getter("height"), this.stableHeight = _.getter("stableHeight"), this.width = _.getter("width"), this.isExpanded = _.getter("isExpanded"), this.safeAreaInsets = _.getter("safeAreaInsets"), this.safeAreaInsetTop = W("top"), this.safeAreaInsetBottom = W("bottom"), this.safeAreaInsetLeft = W("left"), this.safeAreaInsetRight = W("right"), this.contentSafeAreaInsets = _.getter("contentSafeAreaInsets"), this.contentSafeAreaInsetTop = ae("top"), this.contentSafeAreaInsetBottom = ae("bottom"), this.contentSafeAreaInsetLeft = ae("left"), this.contentSafeAreaInsetRight = ae("right");
|
|
3721
|
-
const ot = E({ isVBma:
|
|
3722
|
-
isVBma:
|
|
3721
|
+
const ot = E({ isVBma: q, returns: "task" }), Le = E({
|
|
3722
|
+
isVBma: q,
|
|
3723
3723
|
returns: "either"
|
|
3724
3724
|
}), at = E({
|
|
3725
|
-
isVBma:
|
|
3725
|
+
isVBma: q,
|
|
3726
3726
|
requires: "web_app_request_fullscreen",
|
|
3727
|
-
version:
|
|
3727
|
+
version: I,
|
|
3728
3728
|
returns: "task"
|
|
3729
3729
|
}), $e = (B) => at((X) => c.pipe(
|
|
3730
3730
|
b(
|
|
@@ -3790,7 +3790,7 @@ function Br() {
|
|
|
3790
3790
|
...c.pipe(
|
|
3791
3791
|
v(),
|
|
3792
3792
|
Z("viewport"),
|
|
3793
|
-
|
|
3793
|
+
y,
|
|
3794
3794
|
T,
|
|
3795
3795
|
L
|
|
3796
3796
|
),
|