@vbotma/sdk 5.0.0 → 5.0.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.
- package/README.md +7 -18
- package/dist/dts/host-features/Link/HostLink.d.ts +1 -1
- 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 +67 -67
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ var pt = (n, e, s) => e in n ? ct(n, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var t = (n, e, s) => pt(n, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
import { batch as ue, signal as O, computed as S } from "@vbotma/signals";
|
|
5
5
|
import { supports as te, isVBmaFp as ut, postEventFp as ye, off as ne, on as j, request2Fp as Ge, requestFp as lt, invokeCustomMethodFp as dt, retrieveLaunchParamsFp as le, retrieveRawInitDataFp as ht, captureSameReq as _t, getHostBridge as d, LATEST_VERSION as bt, logger as He } from "@vbotma/bridge";
|
|
6
|
-
import { CancelledError as Ri, InvalidLaunchParamsError as
|
|
6
|
+
import { CancelledError as Ri, InvalidLaunchParamsError as Vi, InvokeCustomMethodFailedError as Ti, LaunchParamsRetrieveError as Li, MethodParameterUnsupportedError as $i, MethodUnsupportedError as Pi, TimeoutError as Hi, UnknownEnvError as Oi, applyPolyfills as Di, createLogger as ji, createPostEvent as Gi, createStartParam as Wi, createStartParamFp as Ui, debug as Qi, decodeBase64Url as Ki, decodeBase64UrlFp as Ni, decodeStartParam as zi, decodeStartParamFp as Ji, deepSnakeToCamelObjKeys as Yi, defineHostBridge as Zi, defineWebComponentBridge as Xi, emitEvent as eo, encodeBase64Url as to, getHostBridge as so, getReleaseVersion as ro, isSafeToCreateStartParam as no, isVBma as io, isVBmaFp as oo, logger as ao, mockVBotEnv as co, off as po, offAll as uo, on as lo, retrieveLaunchParams as ho, retrieveLaunchParamsFp as _o, retrieveRawInitData as bo, retrieveRawInitDataFp as fo, retrieveRawLaunchParams as go, retrieveRawLaunchParamsFp as mo, setDebug as wo, setLaunchParams as Fo, setTargetOrigin as So, supports as Co, targetOrigin as vo } from "@vbotma/bridge";
|
|
7
7
|
import { throwifyFpFn as he, throwifyAnyEither as We, setStorageValue as ft, getStorageValue as gt, snakeToKebab as mt, createCbCollector as qe, camelToKebab as Ue, BetterTaskEither as we } from "@vbotma/toolkit";
|
|
8
8
|
import { BetterPromise as Qe } from "better-promises";
|
|
9
9
|
import { toRGBFullFp as wt, isRGB as be, pipeQueryToSchema as Ft, pipeJsonToSchema as St } from "@vbotma/transformers";
|
|
10
|
-
import { isAnyRGB as yo, isRGB as qo, isRGBA as Io, isRGBAShort as Eo, isRGBShort as Bo, parseInitDataQuery as Ao, parseInitDataQueryFp as xo, parseLaunchParamsQuery as Mo, parseLaunchParamsQueryFp as Ro, serializeInitDataQuery as
|
|
10
|
+
import { isAnyRGB as yo, isRGB as qo, isRGBA as Io, isRGBAShort as Eo, isRGBShort as Bo, parseInitDataQuery as Ao, parseInitDataQueryFp as xo, parseLaunchParamsQuery as Mo, parseLaunchParamsQueryFp as Ro, serializeInitDataQuery as Vo, serializeLaunchParamsQuery as To, toRGB as Lo, toRGBFp as $o, toRGBFull as Po, toRGBFullFp as Ho } from "@vbotma/transformers";
|
|
11
11
|
import { either as m, function as p, option as z, taskEither as u } from "fp-ts";
|
|
12
12
|
import { errorClass as G, errorClassWithData as Ie } from "error-kid";
|
|
13
13
|
import { parse as Oe, record as Ct, string as N, array as vt, safeParse as Fe, looseObject as De, pipe as Ke, transform as Ne, date as ze, optional as kt, number as Je, integer as yt } from "valibot";
|
|
@@ -194,9 +194,9 @@ function A(n, e) {
|
|
|
194
194
|
return;
|
|
195
195
|
const [g, w] = "every" in c ? ["every", c.every] : ["some", c.some];
|
|
196
196
|
for (let _ = 0; _ < w.length; _++) {
|
|
197
|
-
const x = w[_],
|
|
198
|
-
if (
|
|
199
|
-
return
|
|
197
|
+
const x = w[_], T = typeof x == "function" ? x() : te(x, s()) ? void 0 : `it is unsupported in Mini Apps version ${s()}`;
|
|
198
|
+
if (T && (g === "every" || _ === w.length - 1))
|
|
199
|
+
return T;
|
|
200
200
|
}
|
|
201
201
|
}, f = (...g) => {
|
|
202
202
|
for (const w in e.supports)
|
|
@@ -210,7 +210,7 @@ function A(n, e) {
|
|
|
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
|
-
var
|
|
213
|
+
var T;
|
|
214
214
|
const w = "Unable to call function:";
|
|
215
215
|
if (!r())
|
|
216
216
|
return q(`${w} it can't be called outside Mini Apps`);
|
|
@@ -223,7 +223,7 @@ function A(n, e) {
|
|
|
223
223
|
if (x)
|
|
224
224
|
return q(`${w} ${x}`);
|
|
225
225
|
if (!k()) {
|
|
226
|
-
const R = (
|
|
226
|
+
const R = (T = e.isMounting) != null && T.call(e) ? "mounting. Wait for the mount completion" : "unmounted. Use the mount() method";
|
|
227
227
|
return q(`${w} the component is ${R}`);
|
|
228
228
|
}
|
|
229
229
|
return I(...g);
|
|
@@ -383,7 +383,7 @@ class _e {
|
|
|
383
383
|
return S(() => this.state()[e]);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
class
|
|
386
|
+
class Vt {
|
|
387
387
|
constructor(e) {
|
|
388
388
|
/**
|
|
389
389
|
* Signal indicating if the component is currently visible.
|
|
@@ -485,7 +485,7 @@ function se(n) {
|
|
|
485
485
|
function oe(n, e) {
|
|
486
486
|
return O(n, e);
|
|
487
487
|
}
|
|
488
|
-
const Ze = /* @__PURE__ */ oe(ye), re = (...n) => Ze()(...n),
|
|
488
|
+
const Ze = /* @__PURE__ */ oe(ye), re = (...n) => Ze()(...n), Tt = (...n) => We(re(...n)), V = se({
|
|
489
489
|
postEvent: re
|
|
490
490
|
});
|
|
491
491
|
function Lt(n) {
|
|
@@ -515,7 +515,7 @@ function Ae(n, e) {
|
|
|
515
515
|
return {
|
|
516
516
|
...p.pipe(
|
|
517
517
|
v(),
|
|
518
|
-
|
|
518
|
+
V,
|
|
519
519
|
y,
|
|
520
520
|
Z(n)
|
|
521
521
|
),
|
|
@@ -527,7 +527,7 @@ function Ae(n, e) {
|
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
|
-
const fn = /* @__PURE__ */ new
|
|
530
|
+
const fn = /* @__PURE__ */ new Vt(
|
|
531
531
|
/* @__PURE__ */ Ae("backButton", "back_button_pressed")
|
|
532
532
|
);
|
|
533
533
|
class xe {
|
|
@@ -752,7 +752,7 @@ function Dt() {
|
|
|
752
752
|
return new Ht({
|
|
753
753
|
...p.pipe(
|
|
754
754
|
v(),
|
|
755
|
-
|
|
755
|
+
V,
|
|
756
756
|
y,
|
|
757
757
|
L,
|
|
758
758
|
Z("biometry")
|
|
@@ -835,7 +835,7 @@ function Gt() {
|
|
|
835
835
|
return new jt(p.pipe(
|
|
836
836
|
v(),
|
|
837
837
|
Z("closingBehavior"),
|
|
838
|
-
|
|
838
|
+
V
|
|
839
839
|
));
|
|
840
840
|
}
|
|
841
841
|
const Fn = /* @__PURE__ */ Gt();
|
|
@@ -1135,7 +1135,7 @@ class ts {
|
|
|
1135
1135
|
function ss() {
|
|
1136
1136
|
return new ts(p.pipe(
|
|
1137
1137
|
v(),
|
|
1138
|
-
|
|
1138
|
+
V,
|
|
1139
1139
|
y
|
|
1140
1140
|
));
|
|
1141
1141
|
}
|
|
@@ -1148,7 +1148,7 @@ function ns() {
|
|
|
1148
1148
|
return rs(p.pipe(
|
|
1149
1149
|
v(),
|
|
1150
1150
|
y,
|
|
1151
|
-
|
|
1151
|
+
V
|
|
1152
1152
|
));
|
|
1153
1153
|
}
|
|
1154
1154
|
const is = /* @__PURE__ */ ns(), qn = /* @__PURE__ */ h(is);
|
|
@@ -1361,7 +1361,7 @@ function hs({ postEvent: n, ...e }) {
|
|
|
1361
1361
|
}
|
|
1362
1362
|
// @__NO_SIDE_EFFECTS__
|
|
1363
1363
|
function _s() {
|
|
1364
|
-
return hs(p.pipe(v(),
|
|
1364
|
+
return hs(p.pipe(v(), V));
|
|
1365
1365
|
}
|
|
1366
1366
|
const bs = /* @__PURE__ */ _s(), An = /* @__PURE__ */ h(bs);
|
|
1367
1367
|
function fs({ postEvent: n, version: e, ...s }) {
|
|
@@ -1374,7 +1374,7 @@ function fs({ postEvent: n, version: e, ...s }) {
|
|
|
1374
1374
|
function gs() {
|
|
1375
1375
|
return fs(p.pipe(
|
|
1376
1376
|
v(),
|
|
1377
|
-
|
|
1377
|
+
V,
|
|
1378
1378
|
y
|
|
1379
1379
|
));
|
|
1380
1380
|
}
|
|
@@ -1511,7 +1511,7 @@ class Cs {
|
|
|
1511
1511
|
function vs() {
|
|
1512
1512
|
return new Cs(p.pipe(
|
|
1513
1513
|
v(),
|
|
1514
|
-
|
|
1514
|
+
V,
|
|
1515
1515
|
y,
|
|
1516
1516
|
L,
|
|
1517
1517
|
Z("locationManager")
|
|
@@ -1744,10 +1744,10 @@ class ks {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
//#endregion
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1747
|
+
function Ve(n, e) {
|
|
1748
1748
|
document.documentElement.style.setProperty(n, e);
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function Te(n) {
|
|
1751
1751
|
document.documentElement.style.removeProperty(n);
|
|
1752
1752
|
}
|
|
1753
1753
|
function ys(n) {
|
|
@@ -1900,11 +1900,11 @@ class qs {
|
|
|
1900
1900
|
});
|
|
1901
1901
|
}, I = () => {
|
|
1902
1902
|
q((g, w) => {
|
|
1903
|
-
|
|
1903
|
+
Ve(C(g), w);
|
|
1904
1904
|
});
|
|
1905
1905
|
};
|
|
1906
1906
|
return I(), a.state.sub(I), this._isCssVarsBound.set(!0), m.right(() => {
|
|
1907
|
-
q(
|
|
1907
|
+
q(Te), a.state.unsub(I), this._isCssVarsBound.set(!1);
|
|
1908
1908
|
});
|
|
1909
1909
|
}), this.mountFp = b(f.mount), this.unmount = f.unmount, this.bindCssVars = /* @__PURE__ */ h(this.bindCssVarsFp), this.mount = /* @__PURE__ */ h(this.mountFp);
|
|
1910
1910
|
}
|
|
@@ -1934,7 +1934,7 @@ function rt(n, e, s) {
|
|
|
1934
1934
|
(r) => ({ ...r, defaults: s })
|
|
1935
1935
|
);
|
|
1936
1936
|
}
|
|
1937
|
-
const
|
|
1937
|
+
const Vn = /* @__PURE__ */ new ks(
|
|
1938
1938
|
/* @__PURE__ */ rt("mainButton", "main_button_pressed", {
|
|
1939
1939
|
bgColor: S(() => de.buttonColor() || "#2481cc"),
|
|
1940
1940
|
textColor: S(() => de.buttonTextColor() || "#ffffff")
|
|
@@ -2126,11 +2126,11 @@ class Es {
|
|
|
2126
2126
|
[this.headerColor, "web_app_set_header_color"],
|
|
2127
2127
|
[this.bgColor, "web_app_set_background_color"],
|
|
2128
2128
|
[this.bottomBarColor, "web_app_set_bottom_bar_color"]
|
|
2129
|
-
].forEach(([x,
|
|
2129
|
+
].forEach(([x, T]) => {
|
|
2130
2130
|
const R = x();
|
|
2131
|
-
if (!be(R) && (
|
|
2131
|
+
if (!be(R) && (T !== "web_app_set_header_color" || !["bg_color", "secondary_bg_color"].includes(R))) {
|
|
2132
2132
|
const H = _[R];
|
|
2133
|
-
H && i(
|
|
2133
|
+
H && i(T, { color: H });
|
|
2134
2134
|
}
|
|
2135
2135
|
});
|
|
2136
2136
|
}, b = new ie({
|
|
@@ -2176,18 +2176,18 @@ class Es {
|
|
|
2176
2176
|
this.isCssVarsBound = S(I), this.bindCssVarsFp = A((_) => {
|
|
2177
2177
|
if (I())
|
|
2178
2178
|
return m.left(new Ee());
|
|
2179
|
-
const [x,
|
|
2179
|
+
const [x, T] = qe(() => {
|
|
2180
2180
|
I.set(!1);
|
|
2181
2181
|
}), R = (H, $) => {
|
|
2182
2182
|
const U = () => {
|
|
2183
|
-
|
|
2183
|
+
Ve(H, $() || null);
|
|
2184
2184
|
};
|
|
2185
|
-
U(), x($.sub(U),
|
|
2185
|
+
U(), x($.sub(U), Te.bind(null, H));
|
|
2186
2186
|
};
|
|
2187
|
-
return _ || (_ = (H) => `--tg-${Ue(H)}`), R(_("bgColor"), this.bgColorRgb), R(_("bottomBarColor"), this.bottomBarColorRgb), R(_("headerColor"), this.headerColorRgb), I.set(!0), m.right(
|
|
2187
|
+
return _ || (_ = (H) => `--tg-${Ue(H)}`), R(_("bgColor"), this.bgColorRgb), R(_("bottomBarColor"), this.bottomBarColorRgb), R(_("headerColor"), this.headerColorRgb), I.set(!0), m.right(T);
|
|
2188
2188
|
}, { isVBma: o, returns: "either", isMounted: this.isMounted }), this.bindCssVars = /* @__PURE__ */ h(this.bindCssVarsFp);
|
|
2189
2189
|
const g = (_) => {
|
|
2190
|
-
const x = k.getter(_),
|
|
2190
|
+
const x = k.getter(_), T = q(x), R = {
|
|
2191
2191
|
headerColor: "web_app_set_header_color",
|
|
2192
2192
|
bgColor: "web_app_set_background_color",
|
|
2193
2193
|
bottomBarColor: "web_app_set_bottom_bar_color"
|
|
@@ -2225,7 +2225,7 @@ class Es {
|
|
|
2225
2225
|
} : void 0
|
|
2226
2226
|
}
|
|
2227
2227
|
);
|
|
2228
|
-
return [x,
|
|
2228
|
+
return [x, T, /* @__PURE__ */ h(H), H];
|
|
2229
2229
|
};
|
|
2230
2230
|
[
|
|
2231
2231
|
this.bgColor,
|
|
@@ -2252,7 +2252,7 @@ function Bs() {
|
|
|
2252
2252
|
return new Es({
|
|
2253
2253
|
...p.pipe(
|
|
2254
2254
|
v(),
|
|
2255
|
-
|
|
2255
|
+
V,
|
|
2256
2256
|
y,
|
|
2257
2257
|
Z("miniApp")
|
|
2258
2258
|
),
|
|
@@ -2311,8 +2311,8 @@ class Ms {
|
|
|
2311
2311
|
function Rs() {
|
|
2312
2312
|
return new Ms(y(v()));
|
|
2313
2313
|
}
|
|
2314
|
-
const
|
|
2315
|
-
function
|
|
2314
|
+
const Tn = /* @__PURE__ */ Rs();
|
|
2315
|
+
function Vs(n) {
|
|
2316
2316
|
const e = n.message.trim(), s = (n.title || "").trim(), r = n.buttons || [];
|
|
2317
2317
|
if (s.length > 64)
|
|
2318
2318
|
return m.left(new Q(`Invalid title: ${s}`));
|
|
@@ -2338,7 +2338,7 @@ function Ts(n) {
|
|
|
2338
2338
|
}
|
|
2339
2339
|
return m.right({ title: s, message: e, buttons: i });
|
|
2340
2340
|
}
|
|
2341
|
-
class
|
|
2341
|
+
class Ts {
|
|
2342
2342
|
constructor({ version: e, isVBma: s, request: r }) {
|
|
2343
2343
|
/**
|
|
2344
2344
|
* Signal indicating if any popup is currently opened.
|
|
@@ -2388,7 +2388,7 @@ class Vs {
|
|
|
2388
2388
|
});
|
|
2389
2389
|
this.isSupported = W("web_app_open_popup", e), this.isOpened = S(i), this.showFp = c((a) => p.pipe(
|
|
2390
2390
|
this.isOpened() ? u.left(new Be("A popup is already opened")) : u.right(void 0),
|
|
2391
|
-
u.chainW(() => u.fromEither(
|
|
2391
|
+
u.chainW(() => u.fromEither(Vs(a))),
|
|
2392
2392
|
u.chain((l) => (i.set(!0), r("web_app_open_popup", "popup_closed", {
|
|
2393
2393
|
...a,
|
|
2394
2394
|
params: l
|
|
@@ -2401,7 +2401,7 @@ class Vs {
|
|
|
2401
2401
|
}
|
|
2402
2402
|
}
|
|
2403
2403
|
function Ls() {
|
|
2404
|
-
return new
|
|
2404
|
+
return new Ts(p.pipe(v(), L, y));
|
|
2405
2405
|
}
|
|
2406
2406
|
const Ln = /* @__PURE__ */ Ls();
|
|
2407
2407
|
function $s({ request: n, ...e }) {
|
|
@@ -2655,7 +2655,7 @@ class Ks {
|
|
|
2655
2655
|
}
|
|
2656
2656
|
function Ns() {
|
|
2657
2657
|
return new Ks({
|
|
2658
|
-
...p.pipe(v(),
|
|
2658
|
+
...p.pipe(v(), V, y),
|
|
2659
2659
|
onClosed(n) {
|
|
2660
2660
|
return j("scan_qr_popup_closed", n);
|
|
2661
2661
|
},
|
|
@@ -3255,7 +3255,7 @@ class sr {
|
|
|
3255
3255
|
function rr() {
|
|
3256
3256
|
return new sr(p.pipe(
|
|
3257
3257
|
v(),
|
|
3258
|
-
|
|
3258
|
+
V,
|
|
3259
3259
|
y,
|
|
3260
3260
|
Z("swipeBehavior")
|
|
3261
3261
|
));
|
|
@@ -3323,7 +3323,7 @@ function ur({ postEvent: n, ...e }) {
|
|
|
3323
3323
|
function lr() {
|
|
3324
3324
|
return ur(p.pipe(
|
|
3325
3325
|
v(),
|
|
3326
|
-
|
|
3326
|
+
V,
|
|
3327
3327
|
y
|
|
3328
3328
|
));
|
|
3329
3329
|
}
|
|
@@ -3382,7 +3382,7 @@ function gr({ postEvent: n, ...e }) {
|
|
|
3382
3382
|
}
|
|
3383
3383
|
// @__NO_SIDE_EFFECTS__
|
|
3384
3384
|
function mr() {
|
|
3385
|
-
return gr(p.pipe(v(),
|
|
3385
|
+
return gr(p.pipe(v(), V));
|
|
3386
3386
|
}
|
|
3387
3387
|
const wr = /* @__PURE__ */ mr(), Xn = /* @__PURE__ */ h(wr);
|
|
3388
3388
|
function Fr({ request: n, ...e }) {
|
|
@@ -3418,7 +3418,7 @@ function vr({ postEvent: n, ...e }) {
|
|
|
3418
3418
|
function kr() {
|
|
3419
3419
|
return vr(p.pipe(
|
|
3420
3420
|
v(),
|
|
3421
|
-
|
|
3421
|
+
V,
|
|
3422
3422
|
y
|
|
3423
3423
|
));
|
|
3424
3424
|
}
|
|
@@ -3440,7 +3440,7 @@ function Ir() {
|
|
|
3440
3440
|
return qr({
|
|
3441
3441
|
...p.pipe(
|
|
3442
3442
|
v(),
|
|
3443
|
-
|
|
3443
|
+
V,
|
|
3444
3444
|
y
|
|
3445
3445
|
),
|
|
3446
3446
|
isInlineMode: ke
|
|
@@ -3671,7 +3671,7 @@ class Br {
|
|
|
3671
3671
|
width: B.width,
|
|
3672
3672
|
stableHeight: B.is_state_stable ? B.height : void 0
|
|
3673
3673
|
});
|
|
3674
|
-
},
|
|
3674
|
+
}, T = (B) => {
|
|
3675
3675
|
_.setState({ isFullscreen: B.is_fullscreen });
|
|
3676
3676
|
}, R = (B) => {
|
|
3677
3677
|
_.setState({ safeAreaInsets: B });
|
|
@@ -3709,10 +3709,10 @@ class Br {
|
|
|
3709
3709
|
},
|
|
3710
3710
|
isPageReload: s,
|
|
3711
3711
|
onMounted(B) {
|
|
3712
|
-
o(x), c(
|
|
3712
|
+
o(x), c(T), i(R), r(H), _.setState(B);
|
|
3713
3713
|
},
|
|
3714
3714
|
onUnmounted() {
|
|
3715
|
-
F(x), l(
|
|
3715
|
+
F(x), l(T), f(R), a(H);
|
|
3716
3716
|
},
|
|
3717
3717
|
restoreState: e.get
|
|
3718
3718
|
}), U = (B) => S(() => this.safeAreaInsets()[B]), ae = (B) => S(() => this.contentSafeAreaInsets()[B]);
|
|
@@ -3758,7 +3758,7 @@ class Br {
|
|
|
3758
3758
|
const D = B(K);
|
|
3759
3759
|
if (D) {
|
|
3760
3760
|
const Pe = () => {
|
|
3761
|
-
|
|
3761
|
+
Ve(D, `${J()}px`);
|
|
3762
3762
|
};
|
|
3763
3763
|
M.push({ update: Pe, removeListener: J.sub(Pe), cssVar: D });
|
|
3764
3764
|
}
|
|
@@ -3768,7 +3768,7 @@ class Br {
|
|
|
3768
3768
|
M.update();
|
|
3769
3769
|
}), ce.set(!0), m.right(() => {
|
|
3770
3770
|
X.forEach((M) => {
|
|
3771
|
-
M.removeListener(),
|
|
3771
|
+
M.removeListener(), Te(M.cssVar);
|
|
3772
3772
|
}), ce.set(!1);
|
|
3773
3773
|
});
|
|
3774
3774
|
}
|
|
@@ -3790,7 +3790,7 @@ function Ar() {
|
|
|
3790
3790
|
v(),
|
|
3791
3791
|
Z("viewport"),
|
|
3792
3792
|
y,
|
|
3793
|
-
|
|
3793
|
+
V,
|
|
3794
3794
|
L
|
|
3795
3795
|
),
|
|
3796
3796
|
isFullscreen() {
|
|
@@ -3899,7 +3899,7 @@ class Rr {
|
|
|
3899
3899
|
}
|
|
3900
3900
|
}
|
|
3901
3901
|
const ii = new Rr();
|
|
3902
|
-
class
|
|
3902
|
+
class Vr {
|
|
3903
3903
|
/**
|
|
3904
3904
|
* Listens to 'web_app_setup_main_button' methods calls from Mini App.
|
|
3905
3905
|
*/
|
|
@@ -3916,8 +3916,8 @@ class Tr {
|
|
|
3916
3916
|
d().send("main_button_pressed");
|
|
3917
3917
|
}
|
|
3918
3918
|
}
|
|
3919
|
-
const oi = new
|
|
3920
|
-
class
|
|
3919
|
+
const oi = new Vr();
|
|
3920
|
+
class Tr {
|
|
3921
3921
|
/**
|
|
3922
3922
|
* Listens to 'web_app_setup_secondary_button' methods calls from Mini App.
|
|
3923
3923
|
*/
|
|
@@ -3934,7 +3934,7 @@ class Vr {
|
|
|
3934
3934
|
d().send("secondary_button_pressed");
|
|
3935
3935
|
}
|
|
3936
3936
|
}
|
|
3937
|
-
const ai = new
|
|
3937
|
+
const ai = new Tr();
|
|
3938
3938
|
class Lr {
|
|
3939
3939
|
/**
|
|
3940
3940
|
* Listens to 'web_app_setup_settings_button' methods calls from Mini App.
|
|
@@ -4325,7 +4325,7 @@ class Ur {
|
|
|
4325
4325
|
/**
|
|
4326
4326
|
* Listens to 'web_app_open_vb_link' methods calls from Mini App.
|
|
4327
4327
|
*/
|
|
4328
|
-
|
|
4328
|
+
onOpenVbLink(e) {
|
|
4329
4329
|
return d().on("web_app_open_vb_link", (r) => {
|
|
4330
4330
|
r && e(r);
|
|
4331
4331
|
});
|
|
@@ -4610,7 +4610,7 @@ function nn(n = {}) {
|
|
|
4610
4610
|
n.postEvent && Ze.set(n.postEvent);
|
|
4611
4611
|
const [i, o] = qe(
|
|
4612
4612
|
j("reload_iframe", () => {
|
|
4613
|
-
He().log("Received a request to reload the page"),
|
|
4613
|
+
He().log("Received a request to reload the page"), Tt("iframe_will_reload"), window.location.reload();
|
|
4614
4614
|
})
|
|
4615
4615
|
), { acceptCustomStyles: c = !0 } = n;
|
|
4616
4616
|
if (c) {
|
|
@@ -4632,7 +4632,7 @@ function nn(n = {}) {
|
|
|
4632
4632
|
const Ai = he(nn);
|
|
4633
4633
|
export {
|
|
4634
4634
|
Ye as AccessDeniedError,
|
|
4635
|
-
|
|
4635
|
+
Vt as BackButton,
|
|
4636
4636
|
Ht as Biometry,
|
|
4637
4637
|
Ee as CSSVarsBoundError,
|
|
4638
4638
|
Ri as CancelledError,
|
|
@@ -4657,13 +4657,13 @@ export {
|
|
|
4657
4657
|
jr as HostInvoice,
|
|
4658
4658
|
Ur as HostLink,
|
|
4659
4659
|
Wr as HostLocationManager,
|
|
4660
|
-
|
|
4660
|
+
Vr as HostMainButton,
|
|
4661
4661
|
Hr as HostMiniApp,
|
|
4662
4662
|
sn as HostNotification,
|
|
4663
4663
|
$r as HostPopup,
|
|
4664
4664
|
Nr as HostPrivacy,
|
|
4665
4665
|
Gr as HostQrScanner,
|
|
4666
|
-
|
|
4666
|
+
Tr as HostSecondaryButton,
|
|
4667
4667
|
Lr as HostSettingsButton,
|
|
4668
4668
|
Xr as HostSharing,
|
|
4669
4669
|
Jr as HostSwipeBehavior,
|
|
@@ -4672,9 +4672,9 @@ export {
|
|
|
4672
4672
|
ps as InitData,
|
|
4673
4673
|
Q as InvalidArgumentsError,
|
|
4674
4674
|
bn as InvalidEnvError,
|
|
4675
|
-
|
|
4675
|
+
Vi as InvalidLaunchParamsError,
|
|
4676
4676
|
ls as Invoice,
|
|
4677
|
-
|
|
4677
|
+
Ti as InvokeCustomMethodFailedError,
|
|
4678
4678
|
Li as LaunchParamsRetrieveError,
|
|
4679
4679
|
Cs as LocationManager,
|
|
4680
4680
|
ks as MainButton,
|
|
@@ -4683,7 +4683,7 @@ export {
|
|
|
4683
4683
|
Es as MiniApp,
|
|
4684
4684
|
Et as NotAvailableError,
|
|
4685
4685
|
Ms as Notification,
|
|
4686
|
-
|
|
4686
|
+
Ts as Popup,
|
|
4687
4687
|
Ks as QrScanner,
|
|
4688
4688
|
zs as Refresh,
|
|
4689
4689
|
Ys as SecondaryButton,
|
|
@@ -4777,10 +4777,10 @@ export {
|
|
|
4777
4777
|
oo as isVBmaFp,
|
|
4778
4778
|
Rn as locationManager,
|
|
4779
4779
|
ao as logger,
|
|
4780
|
-
|
|
4780
|
+
Vn as mainButton,
|
|
4781
4781
|
As as miniApp,
|
|
4782
4782
|
co as mockVBotEnv,
|
|
4783
|
-
|
|
4783
|
+
Tn as notification,
|
|
4784
4784
|
po as off,
|
|
4785
4785
|
uo as offAll,
|
|
4786
4786
|
lo as on,
|
|
@@ -4793,7 +4793,7 @@ export {
|
|
|
4793
4793
|
Mo as parseLaunchParamsQuery,
|
|
4794
4794
|
Ro as parseLaunchParamsQueryFp,
|
|
4795
4795
|
Ln as popup,
|
|
4796
|
-
|
|
4796
|
+
Tt as postEvent,
|
|
4797
4797
|
re as postEventFp,
|
|
4798
4798
|
Dn as qrScanner,
|
|
4799
4799
|
Yn as readTextFromClipboard,
|
|
@@ -4825,8 +4825,8 @@ export {
|
|
|
4825
4825
|
Wn as secureStorage,
|
|
4826
4826
|
Xn as sendData,
|
|
4827
4827
|
wr as sendDataFp,
|
|
4828
|
-
|
|
4829
|
-
|
|
4828
|
+
Vo as serializeInitDataQuery,
|
|
4829
|
+
To as serializeLaunchParamsQuery,
|
|
4830
4830
|
wo as setDebug,
|
|
4831
4831
|
kn as setEmojiStatus,
|
|
4832
4832
|
es as setEmojiStatusFp,
|