superapp-miniapp-invoke-native 1.0.46 → 1.0.48

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.
@@ -0,0 +1,4 @@
1
+ const e = { data_info: { bu: { default_tenant_code: "KVN", tenants: [{ code: "KVN", name: "KVN", store_detail_list: [{ buCode: "KVN", code: "9998", name: "KVNL 9998" }], stores: ["9998"], timezone: "Europe/Amsterdam" }], errorCode: 0, errorMessage: "", requseCodeTag: 6, success: !1 }, menus: [{ code: "osp-superapp-inventory", id: "6113847737833037825", name: "Inventory", parent_id: "0" }, { code: "osp-superapp-event-count", id: "6113867563402076161", name: "Event Count", parent_id: "6113847737833037825" }, { code: "osp-superapp-shelf-fulfillment", id: "6113867975718936577", name: "Shelf Fulfillment", parent_id: "6113847737833037825" }, { code: "osp-superapp-reports", id: "6113868456755273729", name: "Reports", parent_id: "0" }, { code: "osp-superapp-user-management", id: "6113868869072134145", name: "User Management", parent_id: "0" }, { code: "osp-superapp-online-orders", id: "6318558832782852097", name: "Online Orders", parent_id: "0" }, { code: "osp-superapp-pick-pack-orders", id: "6318559348178927617", name: "Pick & Pack Orders", parent_id: "6318558832782852097" }, { code: "osp-superapp-collect-orders", id: "6318559863575003137", name: "Collect Orders", parent_id: "6318558832782852097" }, { code: "osp-superapp-collect-orders@unpack_orders/home", id: "6318560756928200705", name: "Unpack Orders", parent_id: "6318558832782852097" }, { code: "osp-superapp-collect-orders@orders_collect/search", id: "6318561856439828481", name: "Search Orders", parent_id: "6318558832782852097" }], serverInfo: { serverArea: "eu", serverEnv: "sit" }, token: { access_token: "2c0d362e-5835-4bac-b168-a00ac9856998", expires_in: 86399, refresh_token: "992e3a36-fd27-4074-af15-f09a4a939b67", scope: "read write", token_type: "bearer" }, user: { create_time: "2023-08-22 11: 08: 21", email: "ospsuperapp2@163.com", gender: "", id: "6113892817809776640", introduction: "", language: "en", last_modify_time: "2023-08-24 10: 53: 32", password_strength_name: "MIDDLE", password_validity_period: "PERMANENT", password_validity_period_time: "2856-12-22 11: 08: 21", phone: "", real_name: "ospsuperapp2", special: "false", status: "NORMAL", tenant_id: "0", time_zone: "Europe/Amsterdam", type: "STAFF", user_name: "ospsuperapp2", errorCode: 0, errorMessage: "", requseCodeTag: 4, success: !1 } }, data_store: { buCode: "KVN", code: "9998", name: "KVNL 9998" }, data_language: { code: "en", id: "en_US", name: "English" } };
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,28 @@
1
+ import { W as n } from "./b68136c6.js";
2
+ class a extends n {
3
+ async homeIsClick() {
4
+ }
5
+ async openMinApp(e) {
6
+ return new Promise((s) => {
7
+ s(e);
8
+ });
9
+ }
10
+ async showTitle(e) {
11
+ return new Promise((s) => {
12
+ s(e);
13
+ });
14
+ }
15
+ async showFABMenu(e) {
16
+ return new Promise((s) => {
17
+ s(e);
18
+ });
19
+ }
20
+ async showSubMask(e) {
21
+ return new Promise((s) => {
22
+ s(e);
23
+ });
24
+ }
25
+ }
26
+ export {
27
+ a as PluginsWeb
28
+ };
@@ -0,0 +1,473 @@
1
+ var de = Object.defineProperty;
2
+ var ue = (n, e, t) => e in n ? de(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var B = (n, e, t) => (ue(n, typeof e != "symbol" ? e + "" : e, t), t);
4
+ /*! Capacitor: https://capacitorjs.com/ - MIT License */
5
+ const me = (n) => n.CapacitorPlatforms = ((e) => {
6
+ const t = /* @__PURE__ */ new Map();
7
+ t.set("web", { name: "web" });
8
+ const a = e.CapacitorPlatforms || { currentPlatform: { name: "web" }, platforms: t };
9
+ return a.addPlatform = (i, r) => {
10
+ a.platforms.set(i, r);
11
+ }, a.setPlatform = (i) => {
12
+ a.platforms.has(i) && (a.currentPlatform = a.platforms.get(i));
13
+ }, a;
14
+ })(n), ie = me(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
15
+ var I;
16
+ ie.addPlatform, ie.setPlatform, function(n) {
17
+ n.Unimplemented = "UNIMPLEMENTED", n.Unavailable = "UNAVAILABLE";
18
+ }(I || (I = {}));
19
+ class _ extends Error {
20
+ constructor(e, t, a) {
21
+ super(e), this.message = e, this.code = t, this.data = a;
22
+ }
23
+ }
24
+ const pe = (n) => {
25
+ var e, t, a, i, r;
26
+ const o = n.CapacitorCustomPlatform || null, s = n.Capacitor || {}, f = s.Plugins = s.Plugins || {}, d = n.CapacitorPlatforms, w = ((e = d == null ? void 0 : d.currentPlatform) === null || e === void 0 ? void 0 : e.getPlatform) || (() => o !== null ? o.name : ((l) => {
27
+ var c, u;
28
+ return l != null && l.androidBridge ? "android" : !((u = (c = l == null ? void 0 : l.webkit) === null || c === void 0 ? void 0 : c.messageHandlers) === null || u === void 0) && u.bridge ? "ios" : "web";
29
+ })(n)), p = ((t = d == null ? void 0 : d.currentPlatform) === null || t === void 0 ? void 0 : t.isNativePlatform) || (() => w() !== "web"), L = ((a = d == null ? void 0 : d.currentPlatform) === null || a === void 0 ? void 0 : a.isPluginAvailable) || ((l) => {
30
+ const c = h.get(l);
31
+ return !!(c != null && c.platforms.has(w())) || !!E(l);
32
+ }), E = ((i = d == null ? void 0 : d.currentPlatform) === null || i === void 0 ? void 0 : i.getPluginHeader) || ((l) => {
33
+ var c;
34
+ return (c = s.PluginHeaders) === null || c === void 0 ? void 0 : c.find((u) => u.name === l);
35
+ }), h = /* @__PURE__ */ new Map(), v = ((r = d == null ? void 0 : d.currentPlatform) === null || r === void 0 ? void 0 : r.registerPlugin) || ((l, c = {}) => {
36
+ const u = h.get(l);
37
+ if (u)
38
+ return console.warn(`Capacitor plugin "${l}" already registered. Cannot register plugins twice.`), u.proxy;
39
+ const g = w(), j = E(l);
40
+ let C;
41
+ const R = (P) => {
42
+ let A;
43
+ const H = (...T) => {
44
+ const O = (async () => (!C && g in c ? C = C = typeof c[g] == "function" ? await c[g]() : c[g] : o !== null && !C && "web" in c && (C = C = typeof c.web == "function" ? await c.web() : c.web), C))().then((S) => {
45
+ const te = ((b, U) => {
46
+ var G, J;
47
+ if (!j) {
48
+ if (b)
49
+ return (J = b[U]) === null || J === void 0 ? void 0 : J.bind(b);
50
+ throw new _(`"${l}" plugin is not implemented on ${g}`, I.Unimplemented);
51
+ }
52
+ {
53
+ const ae = j == null ? void 0 : j.methods.find(($) => U === $.name);
54
+ if (ae)
55
+ return ae.rtype === "promise" ? ($) => s.nativePromise(l, U.toString(), $) : ($, ce) => s.nativeCallback(l, U.toString(), $, ce);
56
+ if (b)
57
+ return (G = b[U]) === null || G === void 0 ? void 0 : G.bind(b);
58
+ }
59
+ })(S, P);
60
+ if (te) {
61
+ const b = te(...T);
62
+ return A = b == null ? void 0 : b.remove, b;
63
+ }
64
+ throw new _(`"${l}.${P}()" is not implemented on ${g}`, I.Unimplemented);
65
+ });
66
+ return P === "addListener" && (O.remove = async () => A()), O;
67
+ };
68
+ return H.toString = () => `${P.toString()}() { [capacitor code] }`, Object.defineProperty(H, "name", { value: P, writable: !1, configurable: !1 }), H;
69
+ }, ee = R("addListener"), ne = R("removeListener"), le = (P, A) => {
70
+ const H = ee({ eventName: P }, A), T = async () => {
71
+ const S = await H;
72
+ ne({ eventName: P, callbackId: S }, A);
73
+ }, O = new Promise((S) => H.then(() => S({ remove: T })));
74
+ return O.remove = async () => {
75
+ console.warn("Using addListener() without 'await' is deprecated."), await T();
76
+ }, O;
77
+ }, q = new Proxy({}, { get(P, A) {
78
+ switch (A) {
79
+ case "$$typeof":
80
+ return;
81
+ case "toJSON":
82
+ return () => ({});
83
+ case "addListener":
84
+ return j ? le : ee;
85
+ case "removeListener":
86
+ return ne;
87
+ default:
88
+ return R(A);
89
+ }
90
+ } });
91
+ return f[l] = q, h.set(l, { name: l, proxy: q, platforms: /* @__PURE__ */ new Set([...Object.keys(c), ...j ? [g] : []]) }), q;
92
+ });
93
+ return s.convertFileSrc || (s.convertFileSrc = (l) => l), s.getPlatform = w, s.handleError = (l) => n.console.error(l), s.isNativePlatform = p, s.isPluginAvailable = L, s.pluginMethodNoop = (l, c, u) => Promise.reject(`${u} does not have an implementation of "${c}".`), s.registerPlugin = v, s.Exception = _, s.DEBUG = !!s.DEBUG, s.isLoggingEnabled = !!s.isLoggingEnabled, s.platform = s.getPlatform(), s.isNative = s.isNativePlatform(), s;
94
+ }, fe = (n) => n.Capacitor = pe(n), m = fe(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}), Q = m.registerPlugin;
95
+ m.Plugins;
96
+ class Y {
97
+ constructor(e) {
98
+ this.listeners = {}, this.windowListeners = {}, e && (console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`), this.config = e);
99
+ }
100
+ addListener(e, t) {
101
+ this.listeners[e] || (this.listeners[e] = []), this.listeners[e].push(t);
102
+ const a = this.windowListeners[e];
103
+ a && !a.registered && this.addWindowListener(a);
104
+ const i = async () => this.removeListener(e, t), r = Promise.resolve({ remove: i });
105
+ return Object.defineProperty(r, "remove", { value: async () => {
106
+ console.warn("Using addListener() without 'await' is deprecated."), await i();
107
+ } }), r;
108
+ }
109
+ async removeAllListeners() {
110
+ this.listeners = {};
111
+ for (const e in this.windowListeners)
112
+ this.removeWindowListener(this.windowListeners[e]);
113
+ this.windowListeners = {};
114
+ }
115
+ notifyListeners(e, t) {
116
+ const a = this.listeners[e];
117
+ a && a.forEach((i) => i(t));
118
+ }
119
+ hasListeners(e) {
120
+ return !!this.listeners[e].length;
121
+ }
122
+ registerWindowListener(e, t) {
123
+ this.windowListeners[t] = { registered: !1, windowEventName: e, pluginEventName: t, handler: (a) => {
124
+ this.notifyListeners(t, a);
125
+ } };
126
+ }
127
+ unimplemented(e = "not implemented") {
128
+ return new m.Exception(e, I.Unimplemented);
129
+ }
130
+ unavailable(e = "not available") {
131
+ return new m.Exception(e, I.Unavailable);
132
+ }
133
+ async removeListener(e, t) {
134
+ const a = this.listeners[e];
135
+ if (!a)
136
+ return;
137
+ const i = a.indexOf(t);
138
+ this.listeners[e].splice(i, 1), this.listeners[e].length || this.removeWindowListener(this.windowListeners[e]);
139
+ }
140
+ addWindowListener(e) {
141
+ window.addEventListener(e.windowEventName, e.handler), e.registered = !0;
142
+ }
143
+ removeWindowListener(e) {
144
+ e && (window.removeEventListener(e.windowEventName, e.handler), e.registered = !1);
145
+ }
146
+ }
147
+ const re = (n) => encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), se = (n) => n.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
148
+ class we extends Y {
149
+ async getCookies() {
150
+ const e = document.cookie, t = {};
151
+ return e.split(";").forEach((a) => {
152
+ if (a.length <= 0)
153
+ return;
154
+ let [i, r] = a.replace(/=/, "CAP_COOKIE").split("CAP_COOKIE");
155
+ i = se(i).trim(), r = se(r).trim(), t[i] = r;
156
+ }), t;
157
+ }
158
+ async setCookie(e) {
159
+ try {
160
+ const t = re(e.key), a = re(e.value), i = `; expires=${(e.expires || "").replace("expires=", "")}`, r = (e.path || "/").replace("path=", ""), o = e.url != null && e.url.length > 0 ? `domain=${e.url}` : "";
161
+ document.cookie = `${t}=${a || ""}${i}; path=${r}; ${o};`;
162
+ } catch (t) {
163
+ return Promise.reject(t);
164
+ }
165
+ }
166
+ async deleteCookie(e) {
167
+ try {
168
+ document.cookie = `${e.key}=; Max-Age=0`;
169
+ } catch (t) {
170
+ return Promise.reject(t);
171
+ }
172
+ }
173
+ async clearCookies() {
174
+ try {
175
+ const e = document.cookie.split(";") || [];
176
+ for (const t of e)
177
+ document.cookie = t.replace(/^ +/, "").replace(/=.*/, `=;expires=${(/* @__PURE__ */ new Date()).toUTCString()};path=/`);
178
+ } catch (e) {
179
+ return Promise.reject(e);
180
+ }
181
+ }
182
+ async clearAllCookies() {
183
+ try {
184
+ await this.clearCookies();
185
+ } catch (e) {
186
+ return Promise.reject(e);
187
+ }
188
+ }
189
+ }
190
+ Q("CapacitorCookies", { web: () => new we() });
191
+ const he = (n, e = {}) => {
192
+ const t = Object.assign({ method: n.method || "GET", headers: n.headers }, e), a = ((i = {}) => {
193
+ const r = Object.keys(i);
194
+ return Object.keys(i).map((o) => o.toLocaleLowerCase()).reduce((o, s, f) => (o[s] = i[r[f]], o), {});
195
+ })(n.headers)["content-type"] || "";
196
+ if (typeof n.data == "string")
197
+ t.body = n.data;
198
+ else if (a.includes("application/x-www-form-urlencoded")) {
199
+ const i = new URLSearchParams();
200
+ for (const [r, o] of Object.entries(n.data || {}))
201
+ i.set(r, o);
202
+ t.body = i.toString();
203
+ } else if (a.includes("multipart/form-data")) {
204
+ const i = new FormData();
205
+ if (n.data instanceof FormData)
206
+ n.data.forEach((o, s) => {
207
+ i.append(s, o);
208
+ });
209
+ else
210
+ for (const o of Object.keys(n.data))
211
+ i.append(o, n.data[o]);
212
+ t.body = i;
213
+ const r = new Headers(t.headers);
214
+ r.delete("content-type"), t.headers = r;
215
+ } else
216
+ (a.includes("application/json") || typeof n.data == "object") && (t.body = JSON.stringify(n.data));
217
+ return t;
218
+ };
219
+ class ve extends Y {
220
+ async request(e) {
221
+ const t = he(e, e.webFetchExtra), a = ((p, L = !0) => p ? Object.entries(p).reduce((E, h) => {
222
+ const [v, l] = h;
223
+ let c, u;
224
+ return Array.isArray(l) ? (u = "", l.forEach((g) => {
225
+ c = L ? encodeURIComponent(g) : g, u += `${v}=${c}&`;
226
+ }), u.slice(0, -1)) : (c = L ? encodeURIComponent(l) : l, u = `${v}=${c}`), `${E}&${u}`;
227
+ }, "").substr(1) : null)(e.params, e.shouldEncodeUrlParams), i = a ? `${e.url}?${a}` : e.url, r = await fetch(i, t), o = r.headers.get("content-type") || "";
228
+ let s, f, { responseType: d = "text" } = r.ok ? e : {};
229
+ switch (o.includes("application/json") && (d = "json"), d) {
230
+ case "arraybuffer":
231
+ case "blob":
232
+ f = await r.blob(), s = await (async (p) => new Promise((L, E) => {
233
+ const h = new FileReader();
234
+ h.onload = () => {
235
+ const v = h.result;
236
+ L(v.indexOf(",") >= 0 ? v.split(",")[1] : v);
237
+ }, h.onerror = (v) => E(v), h.readAsDataURL(p);
238
+ }))(f);
239
+ break;
240
+ case "json":
241
+ s = await r.json();
242
+ break;
243
+ default:
244
+ s = await r.text();
245
+ }
246
+ const w = {};
247
+ return r.headers.forEach((p, L) => {
248
+ w[L] = p;
249
+ }), { data: s, headers: w, status: r.status, url: r.url };
250
+ }
251
+ async get(e) {
252
+ return this.request(Object.assign(Object.assign({}, e), { method: "GET" }));
253
+ }
254
+ async post(e) {
255
+ return this.request(Object.assign(Object.assign({}, e), { method: "POST" }));
256
+ }
257
+ async put(e) {
258
+ return this.request(Object.assign(Object.assign({}, e), { method: "PUT" }));
259
+ }
260
+ async patch(e) {
261
+ return this.request(Object.assign(Object.assign({}, e), { method: "PATCH" }));
262
+ }
263
+ async delete(e) {
264
+ return this.request(Object.assign(Object.assign({}, e), { method: "DELETE" }));
265
+ }
266
+ }
267
+ function K() {
268
+ return m.getPlatform() === "android" ? JSON.parse(AndroidInitialContext.initialContext()) : window.portalInitialContext;
269
+ }
270
+ Q("CapacitorHttp", { web: () => new ve() }), /*! Ionic Portals: https://ionic.io/portals - Commercial License */
271
+ Q("Portals", { web: () => Promise.resolve().then(function() {
272
+ return ge;
273
+ }).then((n) => new n.PortalsWeb()) });
274
+ const ge = Object.freeze({ __proto__: null, PortalsWeb: class extends Y {
275
+ async publishNative(n) {
276
+ }
277
+ } });
278
+ var x = ((n) => (n.DEV = "dev", n.SIT = "sit", n.UAT = "uat", n.PROD = "prod", n.TEST = "test", n))(x || {}), F = ((n) => (n.EU = "eu", n.ASIA = "asia", n))(F || {});
279
+ const V = (n) => {
280
+ var e, t;
281
+ if (typeof window < "u" && K && ((e = K()) != null && e.value)) {
282
+ const a = ((t = K()) == null ? void 0 : t.value) ?? null;
283
+ if (!a)
284
+ return void console.error("native initialContext is undefine");
285
+ if (!n)
286
+ return void console.error("initialContext call back is undefine");
287
+ n(a);
288
+ }
289
+ }, be = (n) => new Promise(async (e) => {
290
+ let t = null;
291
+ t = n != null && n.mockData ? n.mockData : ((a, { asiaUatData: i, euSitData: r, euUatData: o }) => {
292
+ var w, p;
293
+ const s = (w = a.mockServerInfo) == null ? void 0 : w.env, f = (p = a.mockServerInfo) == null ? void 0 : p.area;
294
+ let d = null;
295
+ return s && f && (F.ASIA === f ? x.UAT === s && (d = i) : F.EU === f && (x.SIT === s ? d = r : x.UAT === s && (d = o))), d;
296
+ })(n, { asiaUatData: await import("./ecff8422.js"), euSitData: await import("./cb9a50d4.js"), euUatData: await import("./16ebb4f1.js") }), e(t ? t != null && t.default ? t == null ? void 0 : t.default : t : null);
297
+ }), N = class N {
298
+ constructor() {
299
+ B(this, "nativeAppInfoConfig");
300
+ this.nativeAppInfoConfig = N.defaultNativeAppInfoConfig;
301
+ }
302
+ async getIsNativeHandle() {
303
+ return await (() => {
304
+ let e = !1;
305
+ return V((t) => {
306
+ e = !!(t != null && t.isNative);
307
+ }), e;
308
+ })();
309
+ }
310
+ async specifiedPageHandle(e) {
311
+ await (({ cb: t }) => {
312
+ V((a) => {
313
+ if (!(a != null && a.params))
314
+ return void console.error("native params is undefine");
315
+ const i = JSON.parse(a.params) ?? null;
316
+ if (!i)
317
+ return;
318
+ const { params: r, routeName: o } = i;
319
+ r && o && (t ? t(i) : console.error("call back is undefine"));
320
+ });
321
+ })(e);
322
+ }
323
+ async nativeAppInfoHandle(e) {
324
+ return this.nativeAppInfoConfig = e != null && e.mockServerInfo || e != null && e.mockData ? e : N.defaultNativeAppInfoConfig, await this.getIsNativeHandle() ? await (() => {
325
+ let t = null;
326
+ return V((a) => {
327
+ t = a ?? null;
328
+ }), t;
329
+ })() : await be(this.nativeAppInfoConfig);
330
+ }
331
+ };
332
+ B(N, "defaultNativeAppInfoConfig", { mockServerInfo: { area: F.ASIA, env: x.UAT } });
333
+ let X = N;
334
+ const Z = () => {
335
+ let n = null;
336
+ return n = typeof window > "u" ? {} : window, n;
337
+ }, W = "CommunicatePlugin", y = m.registerPlugin(W, { web: () => import("./5643c678.js").then((n) => new n.PluginsWeb()) }), k = Z();
338
+ k.addListenerBackHandle = () => null;
339
+ const ye = (n) => {
340
+ k != null && k.addListenerBackHandle && k.addListenerBackHandle(), setTimeout(() => {
341
+ (async (e) => {
342
+ k != null && k.addListenerBackHandle && e && (k.addListenerBackHandle = await (async (t) => {
343
+ if (m.addListener) {
344
+ const a = await m.addListener(W, "nativeSendBack", (i) => t && t(i));
345
+ return a != null && a.remove ? a.remove : () => null;
346
+ }
347
+ })(e));
348
+ })(n);
349
+ });
350
+ };
351
+ let oe;
352
+ const z = (n) => {
353
+ oe = (e) => {
354
+ n && n(e);
355
+ };
356
+ }, M = Z();
357
+ M.addListenerHomeHandle = () => null;
358
+ const Pe = (n) => {
359
+ M.addListenerHomeHandle && M.addListenerHomeHandle(), setTimeout(() => {
360
+ (async (e) => {
361
+ e && (M.addListenerHomeHandle = await (async (t) => {
362
+ if (m.addListener) {
363
+ const a = await m.addListener(W, "nativeSendHome", (i) => t && t(i));
364
+ return a != null && a.remove ? a.remove : () => null;
365
+ }
366
+ })(e));
367
+ })(n);
368
+ });
369
+ }, D = Z();
370
+ D.removeAddListenerFab = () => null;
371
+ const ke = (n) => {
372
+ var t, a;
373
+ D.removeAddListenerFab && D.removeAddListenerFab();
374
+ const e = [];
375
+ (t = y.showFABMenu) == null || t.call(y, { fabMenu: e }), n && ((a = Object.keys(n)) != null && a.length) && (Object.keys(n).forEach((i) => {
376
+ e.push({ icon: n[i].icon, id: n[i].id, name: n[i].title });
377
+ }), queueMicrotask(() => {
378
+ var i;
379
+ (i = y.showFABMenu) == null || i.call(y, { fabMenu: e });
380
+ }), setTimeout(() => {
381
+ (async (i) => {
382
+ i && (D.removeAddListenerFab = await (async (r) => {
383
+ if (m.addListener) {
384
+ const o = await m.addListener(W, "nativeSendFab", (s) => r && r(s));
385
+ return o != null && o.remove ? o.remove : () => null;
386
+ }
387
+ })(i));
388
+ })((i) => {
389
+ let r;
390
+ i && i.id && Object.keys(n).forEach((o) => {
391
+ i.id === n[o].id && (r = n[o].fn);
392
+ }), r && r();
393
+ });
394
+ }, 10));
395
+ };
396
+ class Le {
397
+ async homeIsClick(e) {
398
+ y.homeIsClick(e);
399
+ }
400
+ async openMinApp(e) {
401
+ return await y.openMinApp(e);
402
+ }
403
+ async showTitle(e) {
404
+ return await y.showTitle(e);
405
+ }
406
+ async showSubMask(e) {
407
+ return await y.showSubMask(e);
408
+ }
409
+ backBtnApiHooks(e) {
410
+ return (({ backBtnCb: t, router: a }) => ({ initBackBtnHandle: () => {
411
+ a && a.afterEach((i) => {
412
+ ye(() => {
413
+ i != null && i.name && oe(i.name);
414
+ });
415
+ });
416
+ }, registerBackBtnHandle: (i) => {
417
+ const { onMounted: r, onUnmounted: o } = i;
418
+ r(() => {
419
+ z((s) => {
420
+ t && t(s);
421
+ });
422
+ }), o(() => {
423
+ z && z(() => "");
424
+ });
425
+ } }))(e);
426
+ }
427
+ homeHandle(e) {
428
+ Pe(e);
429
+ }
430
+ setFabHandle(e) {
431
+ ke(e);
432
+ }
433
+ }
434
+ const Ce = new class extends X {
435
+ constructor() {
436
+ super();
437
+ B(this, "communicatePlugins", new Le());
438
+ }
439
+ async getIsNativeHandle() {
440
+ return await super.getIsNativeHandle();
441
+ }
442
+ async specifiedPageHandle(e) {
443
+ return await super.specifiedPageHandle(e);
444
+ }
445
+ async nativeAppInfoHandle(e) {
446
+ return await super.nativeAppInfoHandle(e);
447
+ }
448
+ async homeIsClick(e) {
449
+ this.communicatePlugins.homeIsClick(e);
450
+ }
451
+ async openMinApp(e) {
452
+ return await this.communicatePlugins.openMinApp(e);
453
+ }
454
+ async showTitle(e) {
455
+ return await this.communicatePlugins.showTitle(e);
456
+ }
457
+ async showSubMask(e) {
458
+ return await this.communicatePlugins.showSubMask(e);
459
+ }
460
+ backBtnApiHooks(e) {
461
+ return this.communicatePlugins.backBtnApiHooks(e);
462
+ }
463
+ homeHandle(e) {
464
+ this.communicatePlugins.homeHandle(e);
465
+ }
466
+ setFabHandle(e) {
467
+ this.communicatePlugins.setFabHandle(e);
468
+ }
469
+ }();
470
+ export {
471
+ Y as W,
472
+ Ce as m
473
+ };
@@ -0,0 +1,4 @@
1
+ const e = { data_info: { bu: { default_tenant_code: "KVN", tenants: [{ code: "KVN", name: "KVN", store_detail_list: [{ buCode: "KVN", code: "9998", name: "KVNL 9998" }], stores: ["9998"], timezone: "Europe/Amsterdam" }], errorCode: 0, errorMessage: "", requseCodeTag: 6, success: !1 }, menus: [{ code: "osp-superapp-inventory", id: "6113847737833037825", name: "Inventory", parent_id: "0" }, { code: "osp-superapp-event-count", id: "6113867563402076161", name: "Event Count", parent_id: "6113847737833037825" }, { code: "osp-superapp-shelf-fulfillment", id: "6113867975718936577", name: "Shelf Fulfillment", parent_id: "6113847737833037825" }, { code: "osp-superapp-reports", id: "6113868456755273729", name: "Reports", parent_id: "0" }, { code: "osp-superapp-user-management", id: "6113868869072134145", name: "User Management", parent_id: "0" }, { code: "osp-superapp-online-orders", id: "6318558832782852097", name: "Online Orders", parent_id: "0" }, { code: "osp-superapp-pick-pack-orders", id: "6318559348178927617", name: "Pick & Pack Orders", parent_id: "6318558832782852097" }, { code: "osp-superapp-collect-orders", id: "6318559863575003137", name: "Collect Orders", parent_id: "6318558832782852097" }, { code: "osp-superapp-collect-orders@unpack_orders/home", id: "6318560756928200705", name: "Unpack Orders", parent_id: "6318558832782852097" }, { code: "osp-superapp-collect-orders@orders_collect/search", id: "6318561856439828481", name: "Search Orders", parent_id: "6318558832782852097" }], serverInfo: { serverArea: "eu", serverEnv: "sit" }, token: { access_token: "2c0d362e-5835-4bac-b168-a00ac9856998", expires_in: 86399, refresh_token: "992e3a36-fd27-4074-af15-f09a4a939b67", scope: "read write", token_type: "bearer" }, user: { create_time: "2023-08-22 11: 08: 21", email: "ospsuperapp2@163.com", gender: "", id: "6113892817809776640", introduction: "", language: "en", last_modify_time: "2023-08-24 10: 53: 32", password_strength_name: "MIDDLE", password_validity_period: "PERMANENT", password_validity_period_time: "2856-12-22 11: 08: 21", phone: "", real_name: "ospsuperapp2", special: "false", status: "NORMAL", tenant_id: "0", time_zone: "Europe/Amsterdam", type: "STAFF", user_name: "ospsuperapp2", errorCode: 0, errorMessage: "", requseCodeTag: 4, success: !1 } }, data_store: { buCode: "KVN", code: "9998", name: "KVNL 9998" }, data_language: { code: "en", id: "en_US", name: "English" } };
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const e = { data_info: { bu: { default_tenant_code: "WTCHK", tenants: [{ store_detail_list: [{ name: "APELDOORN HOOFDSTRAAT 136", code: "3462" }], name: "WTCHK", stores: ["3462"], timezone: "Europe/Amsterdam", code: "WTCHK" }] }, menus: [{ code: "osp-superapp-inventory", id: "6113847737833037825", name: "Inventory", parent_id: "0" }, { code: "osp-superapp-event-count", id: "6113867563402076161", name: "Event Count", parent_id: "6113847737833037825" }, { code: "osp-superapp-shelf-fulfillment", id: "6113867975718936577", name: "Shelf Fulfillment", parent_id: "6113847737833037825" }, { code: "osp-superapp-reports", id: "6113868456755273729", name: "Reports", parent_id: "0" }, { code: "osp-superapp-user-management", id: "6113868869072134145", name: "User Management", parent_id: "0" }, { code: "osp-superapp-online-orders", id: "6318558832782852097", name: "Online Orders", parent_id: "0" }, { code: "osp-superapp-pick-pack-orders", id: "6318559348178927617", name: "Pick & Pack Orders", parent_id: "6318558832782852097" }, { code: "osp-superapp-collect-orders", id: "6318559863575003137", name: "Collect Orders", parent_id: "6318558832782852097" }, { code: "osp-superapp-collect-orders@unpack_orders/home", id: "6318560756928200705", name: "Unpack Orders", parent_id: "6318558832782852097" }, { code: "osp-superapp-collect-orders@orders_collect/search", id: "6318561856439828481", name: "Search Orders", parent_id: "6318558832782852097" }], serverInfo: { serverArea: "asia", serverEnv: "uat" }, token: { access_token: "2c0d362e-5835-4bac-b168-a00ac9856998", expires_in: 86399, refresh_token: "992e3a36-fd27-4074-af15-f09a4a939b67", scope: "read write", token_type: "bearer" }, user: { create_time: "2023-08-22 11: 08: 21", email: "ospsuperapp2@163.com", gender: "", id: "6113892817809776640", introduction: "", language: "en", last_modify_time: "2023-08-24 10: 53: 32", password_strength_name: "MIDDLE", password_validity_period: "PERMANENT", password_validity_period_time: "2856-12-22 11: 08: 21", phone: "", real_name: "ospsuperapp2", special: "false", status: "NORMAL", tenant_id: "0", time_zone: "Europe/Amsterdam", type: "STAFF", user_name: "ospsuperapp2", errorCode: 0, errorMessage: "", requseCodeTag: 4, success: !1 } }, data_store: { name: "APELDOORN HOOFDSTRAAT 3462", code: "3462" }, data_language: { code: "en", id: "en_US", name: "English" } };
2
+ export {
3
+ e as default
4
+ };