superapp-miniapp-invoke-native 1.0.75 → 1.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/lib/main.js +26 -26
- package/lib/main.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/main.js
CHANGED
|
@@ -17,7 +17,7 @@ var s = (n, e, t) => new Promise((r, a) => {
|
|
|
17
17
|
}, i = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(o, d);
|
|
18
18
|
i((t = t.apply(n, e)).next());
|
|
19
19
|
});
|
|
20
|
-
var D = ((n) => (n.DEV = "dev", n.SIT = "sit", n.UAT = "uat", n.PROD = "prod", n.TEST = "test", n))(D || {}),
|
|
20
|
+
var D = ((n) => (n.DEV = "dev", n.SIT = "sit", n.UAT = "uat", n.PROD = "prod", n.TEST = "test", n))(D || {}), $ = ((n) => (n.EU = "eu", n.ASIA = "asia", n))($ || {});
|
|
21
21
|
/*! Capacitor: https://capacitorjs.com/ - MIT License */
|
|
22
22
|
const ge = (n) => n.CapacitorPlatforms = ((e) => {
|
|
23
23
|
const t = /* @__PURE__ */ new Map();
|
|
@@ -54,12 +54,12 @@ const ve = (n) => {
|
|
|
54
54
|
if (f)
|
|
55
55
|
return console.warn(`Capacitor plugin "${c}" already registered. Cannot register plugins twice.`), f.proxy;
|
|
56
56
|
const _ = g(), T = E(c);
|
|
57
|
-
let
|
|
57
|
+
let A;
|
|
58
58
|
const q = (P) => {
|
|
59
59
|
let L;
|
|
60
60
|
const N = (...H) => {
|
|
61
61
|
const j = (() => s(void 0, null, function* () {
|
|
62
|
-
return !
|
|
62
|
+
return !A && _ in p ? A = A = typeof p[_] == "function" ? yield p[_]() : p[_] : d !== null && !A && "web" in p && (A = A = typeof p.web == "function" ? yield p.web() : p.web), A;
|
|
63
63
|
}))().then((x) => {
|
|
64
64
|
const ae = ((b, U) => {
|
|
65
65
|
var G, X;
|
|
@@ -114,7 +114,7 @@ const ve = (n) => {
|
|
|
114
114
|
return i.convertFileSrc || (i.convertFileSrc = (c) => c), i.getPlatform = g, i.handleError = (c) => n.console.error(c), i.isNativePlatform = v, i.isPluginAvailable = k, i.pluginMethodNoop = (c, p, f) => Promise.reject(`${f} does not have an implementation of "${p}".`), i.registerPlugin = y, i.Exception = J, i.DEBUG = !!i.DEBUG, i.isLoggingEnabled = !!i.isLoggingEnabled, i.platform = i.getPlatform(), i.isNative = i.isNativePlatform(), i;
|
|
115
115
|
}, he = (n) => n.Capacitor = ve(n), m = he(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {}), Q = m.registerPlugin;
|
|
116
116
|
m.Plugins;
|
|
117
|
-
class
|
|
117
|
+
class C {
|
|
118
118
|
constructor(e) {
|
|
119
119
|
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);
|
|
120
120
|
}
|
|
@@ -172,7 +172,7 @@ class A {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
const oe = (n) => encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), ie = (n) => n.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
175
|
-
class ye extends
|
|
175
|
+
class ye extends C {
|
|
176
176
|
getCookies() {
|
|
177
177
|
return s(this, null, function* () {
|
|
178
178
|
const e = document.cookie, t = {};
|
|
@@ -253,7 +253,7 @@ const _e = (n, e = {}) => {
|
|
|
253
253
|
(r.includes("application/json") || typeof n.data == "object") && (t.body = JSON.stringify(n.data));
|
|
254
254
|
return t;
|
|
255
255
|
};
|
|
256
|
-
class be extends
|
|
256
|
+
class be extends C {
|
|
257
257
|
request(e) {
|
|
258
258
|
return s(this, null, function* () {
|
|
259
259
|
const t = _e(e, e.webFetchExtra), r = ((v, k = !0) => v ? Object.entries(v).reduce((E, h) => {
|
|
@@ -322,7 +322,7 @@ Q("CapacitorHttp", { web: () => new be() }), /*! Ionic Portals: https://ionic.io
|
|
|
322
322
|
Q("Portals", { web: () => Promise.resolve().then(function() {
|
|
323
323
|
return Pe;
|
|
324
324
|
}).then((n) => new n.PortalsWeb()) });
|
|
325
|
-
const Pe = Object.freeze({ __proto__: null, PortalsWeb: class extends
|
|
325
|
+
const Pe = Object.freeze({ __proto__: null, PortalsWeb: class extends C {
|
|
326
326
|
publishNative(n) {
|
|
327
327
|
return s(this, null, function* () {
|
|
328
328
|
});
|
|
@@ -343,7 +343,7 @@ const Pe = Object.freeze({ __proto__: null, PortalsWeb: class extends A {
|
|
|
343
343
|
var g, v;
|
|
344
344
|
const i = (g = r.mockServerInfo) == null ? void 0 : g.env, u = (v = r.mockServerInfo) == null ? void 0 : v.area;
|
|
345
345
|
let l = null;
|
|
346
|
-
return i && u && (
|
|
346
|
+
return i && u && ($.ASIA === u ? D.UAT === i && (l = a) : $.EU === u && (D.SIT === i ? l = o : D.UAT === i && (l = d))), l;
|
|
347
347
|
})(n, { asiaUatData: yield Promise.resolve().then(() => Ue), euSitData: yield Promise.resolve().then(() => Ie), euUatData: yield Promise.resolve().then(() => De) }), e(t ? t != null && t.default ? t == null ? void 0 : t.default : t : null);
|
|
348
348
|
})), B = class B {
|
|
349
349
|
isNative() {
|
|
@@ -381,7 +381,7 @@ const Pe = Object.freeze({ __proto__: null, PortalsWeb: class extends A {
|
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
};
|
|
384
|
-
S(B, "defaultNativeAppInfoConfig", { mockServerInfo: { area:
|
|
384
|
+
S(B, "defaultNativeAppInfoConfig", { mockServerInfo: { area: $.ASIA, env: D.UAT } });
|
|
385
385
|
let ee = B;
|
|
386
386
|
const V = () => {
|
|
387
387
|
let n = {};
|
|
@@ -423,12 +423,12 @@ const de = (n = () => null) => s(void 0, null, function* () {
|
|
|
423
423
|
return t != null && t.remove ? t.remove : () => null;
|
|
424
424
|
}
|
|
425
425
|
}))(n);
|
|
426
|
-
}),
|
|
427
|
-
|
|
426
|
+
}), F = V();
|
|
427
|
+
F.addListenerHomeHandle = () => null;
|
|
428
428
|
const Se = (n) => {
|
|
429
|
-
|
|
429
|
+
F.addListenerHomeHandle && F.addListenerHomeHandle(), setTimeout(() => {
|
|
430
430
|
((e) => s(void 0, null, function* () {
|
|
431
|
-
e && (
|
|
431
|
+
e && (F.addListenerHomeHandle = yield ((t) => s(void 0, null, function* () {
|
|
432
432
|
if (m.addListener) {
|
|
433
433
|
const r = yield m.addListener(W, "nativeSendHome", (a) => t && t(a));
|
|
434
434
|
return r != null && r.remove ? r.remove : () => null;
|
|
@@ -437,7 +437,7 @@ const Se = (n) => {
|
|
|
437
437
|
}))(n);
|
|
438
438
|
});
|
|
439
439
|
};
|
|
440
|
-
class
|
|
440
|
+
class Ce {
|
|
441
441
|
constructor() {
|
|
442
442
|
this.homeBtnSwitch({ isClick: !0 });
|
|
443
443
|
}
|
|
@@ -499,7 +499,7 @@ class Ae {
|
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const
|
|
502
|
+
const Ae = m.registerPlugin("CameraScanPlugin", { web: new class extends C {
|
|
503
503
|
pickCameraScan(n) {
|
|
504
504
|
return s(this, null, function* () {
|
|
505
505
|
return new Promise((e) => {
|
|
@@ -512,11 +512,11 @@ window.removeAddListenerCameraScan = () => null;
|
|
|
512
512
|
class Oe {
|
|
513
513
|
pickCameraScan(e) {
|
|
514
514
|
return s(this, null, function* () {
|
|
515
|
-
return yield
|
|
515
|
+
return yield Ae.pickCameraScan(e);
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
const Ee = m.registerPlugin("CameraScanMultiplePlugin", { web: new class extends
|
|
519
|
+
const Ee = m.registerPlugin("CameraScanMultiplePlugin", { web: new class extends C {
|
|
520
520
|
pickCameraScanMultiple() {
|
|
521
521
|
return s(this, null, function* () {
|
|
522
522
|
});
|
|
@@ -529,7 +529,7 @@ class Ne {
|
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
|
-
const Me = m.registerPlugin("CameraScanMultipleNoCountPlugin", { web: new class extends
|
|
532
|
+
const Me = m.registerPlugin("CameraScanMultipleNoCountPlugin", { web: new class extends C {
|
|
533
533
|
pickCameraScanMultipleNoCount() {
|
|
534
534
|
return s(this, null, function* () {
|
|
535
535
|
});
|
|
@@ -542,7 +542,7 @@ class Te {
|
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
|
-
const pe = "LaserScanPlugin", ce = m.registerPlugin(pe, { web: new class extends
|
|
545
|
+
const pe = "LaserScanPlugin", ce = m.registerPlugin(pe, { web: new class extends C {
|
|
546
546
|
pickLaserScan() {
|
|
547
547
|
return s(this, null, function* () {
|
|
548
548
|
});
|
|
@@ -551,12 +551,12 @@ const pe = "LaserScanPlugin", ce = m.registerPlugin(pe, { web: new class extends
|
|
|
551
551
|
return s(this, null, function* () {
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
|
-
}() }),
|
|
555
|
-
|
|
554
|
+
}() }), K = V();
|
|
555
|
+
K.removeAddListenerLaserScan = () => null;
|
|
556
556
|
const le = (n = () => null) => {
|
|
557
|
-
|
|
557
|
+
K.removeAddListenerLaserScan && K.removeAddListenerLaserScan();
|
|
558
558
|
const e = (t) => s(void 0, null, function* () {
|
|
559
|
-
t && (
|
|
559
|
+
t && (K.removeAddListenerLaserScan = yield ((r) => s(void 0, null, function* () {
|
|
560
560
|
if (m.addListener) {
|
|
561
561
|
const a = yield m.addListener(pe, "nativeSendLaser", (o) => r && r(o));
|
|
562
562
|
return a != null && a.remove ? a.remove : () => null;
|
|
@@ -595,14 +595,14 @@ class je {
|
|
|
595
595
|
class xe {
|
|
596
596
|
constructor() {
|
|
597
597
|
S(this, "initialContextPlugins", new ee());
|
|
598
|
-
S(this, "communicatePlugins", new
|
|
598
|
+
S(this, "communicatePlugins", new Ce());
|
|
599
599
|
S(this, "cameraScanPlugins", new Oe());
|
|
600
600
|
S(this, "cameraScanMultiplePlugins", new Ne());
|
|
601
601
|
S(this, "cameraScanMultipleNoCountPlugins", new Te());
|
|
602
602
|
S(this, "laserScanPlugins", new je());
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
const
|
|
605
|
+
const Fe = new xe(), Ue = Object.freeze(Object.defineProperty({ __proto__: null, default: { 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" }, data_kong: { token: { access_token: "OLXyjfmHGolOdt7NMLvzh4VEAFRRHZAf", expires_in: 86400, token_type: "bearer" } } } }, Symbol.toStringTag, { value: "Module" })), Ie = Object.freeze(Object.defineProperty({ __proto__: null, default: { 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" }, data_kong: { "X-ASW-APIKey": "bpz8GFrfuul43nCcJbSj08GT56x3K2jy", "EVC-X-ASW-APIKey": "6j2AHemxmsGMmIs9rtdys0DK04Hag6s1" } } }, Symbol.toStringTag, { value: "Module" })), De = Object.freeze(Object.defineProperty({ __proto__: null, default: { 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" }, data_kong: { "X-ASW-APIKey": "axiBpmRYqN99pWG9r3horNTNgWxpvlfG", "EVC-X-ASW-APIKey": "6j2AHemxmsGMmIs9rtdys0DK04Hag6s1" } } }, Symbol.toStringTag, { value: "Module" })), He = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: class extends C {
|
|
606
606
|
homeIsClick() {
|
|
607
607
|
return s(this, null, function* () {
|
|
608
608
|
});
|
|
@@ -660,5 +660,5 @@ const Ke = new xe(), Ue = Object.freeze(Object.defineProperty({ __proto__: null,
|
|
|
660
660
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
661
661
|
export {
|
|
662
662
|
xe as NativeApi,
|
|
663
|
-
|
|
663
|
+
Fe as default
|
|
664
664
|
};
|
package/lib/main.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(h,m){typeof exports=="object"&&typeof module!="undefined"?m(exports):typeof define=="function"&&define.amd?define(["exports"],m):m((h=typeof globalThis!="undefined"?globalThis:h||self).main={})})(this,function(h){"use strict";var Re=Object.defineProperty;var Ke=(h,m,v)=>m in h?Re(h,m,{enumerable:!0,configurable:!0,writable:!0,value:v}):h[m]=v;var N=(h,m,v)=>(Ke(h,typeof m!="symbol"?m+"":m,v),v);var s=(h,m,v)=>new Promise((Y,I)=>{var A=C=>{try{H(v.next(C))}catch(u){I(u)}},D=C=>{try{H(v.throw(C))}catch(u){I(u)}},H=C=>C.done?Y(C.value):Promise.resolve(C.value).then(A,D);H((v=v.apply(h,m)).next())});var m=(t=>(t.DEV="dev",t.SIT="sit",t.UAT="uat",t.PROD="prod",t.TEST="test",t))(m||{}),v=(t=>(t.EU="eu",t.ASIA="asia",t))(v||{});/*! Capacitor: https://capacitorjs.com/ - MIT License */const Y=t=>t.CapacitorPlatforms=(e=>{const n=new Map;n.set("web",{name:"web"});const r=e.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:n};return r.addPlatform=(a,o)=>{r.platforms.set(a,o)},r.setPlatform=a=>{r.platforms.has(a)&&(r.currentPlatform=r.platforms.get(a))},r})(t),I=Y(typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});var A;I.addPlatform,I.setPlatform,function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"}(A||(A={}));class D extends Error{constructor(e,n,r){super(e),this.message=e,this.code=n,this.data=r}}const H=t=>{var e,n,r,a,o;const d=t.CapacitorCustomPlatform||null,i=t.Capacitor||{},w=i.Plugins=i.Plugins||{},p=t.CapacitorPlatforms,y=((e=p==null?void 0:p.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||(()=>d!==null?d.name:(c=>{var l,g;return c!=null&&c.androidBridge?"android":!((g=(l=c==null?void 0:c.webkit)===null||l===void 0?void 0:l.messageHandlers)===null||g===void 0)&&g.bridge?"ios":"web"})(t)),_=((n=p==null?void 0:p.currentPlatform)===null||n===void 0?void 0:n.isNativePlatform)||(()=>y()!=="web"),E=((r=p==null?void 0:p.currentPlatform)===null||r===void 0?void 0:r.isPluginAvailable)||(c=>{const l=b.get(c);return!!(l!=null&&l.platforms.has(y()))||!!x(c)}),x=((a=p==null?void 0:p.currentPlatform)===null||a===void 0?void 0:a.getPluginHeader)||(c=>{var l;return(l=i.PluginHeaders)===null||l===void 0?void 0:l.find(g=>g.name===c)}),b=new Map,P=((o=p==null?void 0:p.currentPlatform)===null||o===void 0?void 0:o.registerPlugin)||((c,l={})=>{const g=b.get(c);if(g)return console.warn(`Capacitor plugin "${c}" already registered. Cannot register plugins twice.`),g.proxy;const k=y(),R=x(c);let j;const ne=L=>{let M;const U=(...J)=>{const K=(()=>s(this,null,function*(){return!j&&k in l?j=j=typeof l[k]=="function"?yield l[k]():l[k]:d!==null&&!j&&"web"in l&&(j=j=typeof l.web=="function"?yield l.web():l.web),j}))().then($=>{const we=((S,F)=>{var re,se;if(!R){if(S)return(se=S[F])===null||se===void 0?void 0:se.bind(S);throw new D(`"${c}" plugin is not implemented on ${k}`,A.Unimplemented)}{const ge=R==null?void 0:R.methods.find(B=>F===B.name);if(ge)return ge.rtype==="promise"?B=>i.nativePromise(c,F.toString(),B):(B,He)=>i.nativeCallback(c,F.toString(),B,He);if(S)return(re=S[F])===null||re===void 0?void 0:re.bind(S)}})($,L);if(we){const S=we(...J);return M=S==null?void 0:S.remove,S}throw new D(`"${c}.${L}()" is not implemented on ${k}`,A.Unimplemented)});return L==="addListener"&&(K.remove=()=>s(this,null,function*(){return M()})),K};return U.toString=()=>`${L.toString()}() { [capacitor code] }`,Object.defineProperty(U,"name",{value:L,writable:!1,configurable:!1}),U},me=ne("addListener"),fe=ne("removeListener"),De=(L,M)=>{const U=me({eventName:L},M),J=()=>s(this,null,function*(){const $=yield U;fe({eventName:L,callbackId:$},M)}),K=new Promise($=>U.then(()=>$({remove:J})));return K.remove=()=>s(this,null,function*(){console.warn("Using addListener() without 'await' is deprecated."),yield J()}),K},ae=new Proxy({},{get(L,M){switch(M){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return R?De:me;case"removeListener":return fe;default:return ne(M)}}});return w[c]=ae,b.set(c,{name:c,proxy:ae,platforms:new Set([...Object.keys(l),...R?[k]:[]])}),ae});return i.convertFileSrc||(i.convertFileSrc=c=>c),i.getPlatform=y,i.handleError=c=>t.console.error(c),i.isNativePlatform=_,i.isPluginAvailable=E,i.pluginMethodNoop=(c,l,g)=>Promise.reject(`${g} does not have an implementation of "${l}".`),i.registerPlugin=P,i.Exception=D,i.DEBUG=!!i.DEBUG,i.isLoggingEnabled=!!i.isLoggingEnabled,i.platform=i.getPlatform(),i.isNative=i.isNativePlatform(),i},C=t=>t.Capacitor=H(t),u=C(typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}),Z=u.registerPlugin;u.Plugins;class O{constructor(e){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)}addListener(e,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(n);const r=this.windowListeners[e];r&&!r.registered&&this.addWindowListener(r);const a=()=>s(this,null,function*(){return this.removeListener(e,n)}),o=Promise.resolve({remove:a});return Object.defineProperty(o,"remove",{value:()=>s(this,null,function*(){console.warn("Using addListener() without 'await' is deprecated."),yield a()})}),o}removeAllListeners(){return s(this,null,function*(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}})}notifyListeners(e,n){const r=this.listeners[e];r&&r.forEach(a=>a(n))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,n){this.windowListeners[n]={registered:!1,windowEventName:e,pluginEventName:n,handler:r=>{this.notifyListeners(n,r)}}}unimplemented(e="not implemented"){return new u.Exception(e,A.Unimplemented)}unavailable(e="not available"){return new u.Exception(e,A.Unavailable)}removeListener(e,n){return s(this,null,function*(){const r=this.listeners[e];if(!r)return;const a=r.indexOf(n);this.listeners[e].splice(a,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])})}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}}const oe=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),ie=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class ve extends O{getCookies(){return s(this,null,function*(){const e=document.cookie,n={};return e.split(";").forEach(r=>{if(r.length<=0)return;let[a,o]=r.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");a=ie(a).trim(),o=ie(o).trim(),n[a]=o}),n})}setCookie(e){return s(this,null,function*(){try{const n=oe(e.key),r=oe(e.value),a=`; expires=${(e.expires||"").replace("expires=","")}`,o=(e.path||"/").replace("path=",""),d=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${n}=${r||""}${a}; path=${o}; ${d};`}catch(n){return Promise.reject(n)}})}deleteCookie(e){return s(this,null,function*(){try{document.cookie=`${e.key}=; Max-Age=0`}catch(n){return Promise.reject(n)}})}clearCookies(){return s(this,null,function*(){try{const e=document.cookie.split(";")||[];for(const n of e)document.cookie=n.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}})}clearAllCookies(){return s(this,null,function*(){try{yield this.clearCookies()}catch(e){return Promise.reject(e)}})}}Z("CapacitorCookies",{web:()=>new ve});const he=(t,e={})=>{const n=Object.assign({method:t.method||"GET",headers:t.headers},e),r=((a={})=>{const o=Object.keys(a);return Object.keys(a).map(d=>d.toLocaleLowerCase()).reduce((d,i,w)=>(d[i]=a[o[w]],d),{})})(t.headers)["content-type"]||"";if(typeof t.data=="string")n.body=t.data;else if(r.includes("application/x-www-form-urlencoded")){const a=new URLSearchParams;for(const[o,d]of Object.entries(t.data||{}))a.set(o,d);n.body=a.toString()}else if(r.includes("multipart/form-data")){const a=new FormData;if(t.data instanceof FormData)t.data.forEach((d,i)=>{a.append(i,d)});else for(const d of Object.keys(t.data))a.append(d,t.data[d]);n.body=a;const o=new Headers(n.headers);o.delete("content-type"),n.headers=o}else(r.includes("application/json")||typeof t.data=="object")&&(n.body=JSON.stringify(t.data));return n};class ye extends O{request(e){return s(this,null,function*(){const n=he(e,e.webFetchExtra),r=((_,E=!0)=>_?Object.entries(_).reduce((x,b)=>{const[P,c]=b;let l,g;return Array.isArray(c)?(g="",c.forEach(k=>{l=E?encodeURIComponent(k):k,g+=`${P}=${l}&`}),g.slice(0,-1)):(l=E?encodeURIComponent(c):c,g=`${P}=${l}`),`${x}&${g}`},"").substr(1):null)(e.params,e.shouldEncodeUrlParams),a=r?`${e.url}?${r}`:e.url,o=yield fetch(a,n),d=o.headers.get("content-type")||"";let i,w,{responseType:p="text"}=o.ok?e:{};switch(d.includes("application/json")&&(p="json"),p){case"arraybuffer":case"blob":w=yield o.blob(),i=yield(_=>s(this,null,function*(){return new Promise((E,x)=>{const b=new FileReader;b.onload=()=>{const P=b.result;E(P.indexOf(",")>=0?P.split(",")[1]:P)},b.onerror=P=>x(P),b.readAsDataURL(_)})}))(w);break;case"json":i=yield o.json();break;default:i=yield o.text()}const y={};return o.headers.forEach((_,E)=>{y[E]=_}),{data:i,headers:y,status:o.status,url:o.url}})}get(e){return s(this,null,function*(){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))})}post(e){return s(this,null,function*(){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))})}put(e){return s(this,null,function*(){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))})}patch(e){return s(this,null,function*(){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))})}delete(e){return s(this,null,function*(){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))})}}function Q(){return u.getPlatform()==="android"?JSON.parse(AndroidInitialContext.initialContext()):window.portalInitialContext}Z("CapacitorHttp",{web:()=>new ye}),Z("Portals",{web:()=>Promise.resolve().then(function(){return _e}).then(t=>new t.PortalsWeb)});const _e=Object.freeze({__proto__:null,PortalsWeb:class extends O{publishNative(t){return s(this,null,function*(){})}}}),ee=t=>{var e,n,r;if(typeof window!="undefined"&&Q&&((e=Q())!=null&&e.value)){const a=(r=(n=Q())==null?void 0:n.value)!=null?r:null;if(!a)return void console.error("native initialContext is undefine");if(!t)return void console.error("initialContext call back is undefine");t(a)}},be=t=>new Promise(e=>s(this,null,function*(){let n=null;n=t!=null&&t.mockData?t.mockData:((r,{asiaUatData:a,euSitData:o,euUatData:d})=>{var y,_;const i=(y=r.mockServerInfo)==null?void 0:y.env,w=(_=r.mockServerInfo)==null?void 0:_.area;let p=null;return i&&w&&(v.ASIA===w?m.UAT===i&&(p=a):v.EU===w&&(m.SIT===i?p=o:m.UAT===i&&(p=d))),p})(t,{asiaUatData:yield Promise.resolve().then(()=>je),euSitData:yield Promise.resolve().then(()=>xe),euUatData:yield Promise.resolve().then(()=>Ue)}),e(n?n!=null&&n.default?n==null?void 0:n.default:n:null)})),X=class X{isNative(){return s(this,null,function*(){return yield(()=>{let e=!1;return ee(n=>{e=!!(n!=null&&n.isNative)}),e})()})}redirectPage(e){return s(this,null,function*(){yield(({callBack:n})=>{ee(r=>{var o;if(!(r!=null&&r.params))return void console.info("initial context native params is undefine");const a=(o=r==null?void 0:r.params)!=null?o:null;a&&(n?n(a):console.error("initial context call back is undefine"))})})(e)})}getNativeInfo(e){return s(this,null,function*(){const n=e!=null&&e.mockServerInfo||e!=null&&e.mockData?e:X.defaultNativeAppInfoConfig;return(yield this.isNative())?yield(()=>{let r=null;return ee(a=>{r=a!=null?a:null}),r})():yield be(n)})}};N(X,"defaultNativeAppInfoConfig",{mockServerInfo:{area:v.ASIA,env:m.UAT}});let te=X;const V=()=>{let t={};return typeof window!="undefined"&&(t=window),t},W="CommunicatePlugin",f=u.registerPlugin(W,{web:()=>Promise.resolve().then(()=>Ie).then(t=>new t.PluginsWeb)}),q=V();q.removeAddListenerFab=()=>null;const Pe=t=>{var n,r;q.removeAddListenerFab&&q.removeAddListenerFab();const e=[];(n=f.showFABMenu)==null||n.call(f,{fabMenu:e}),t&&((r=Object.keys(t))!=null&&r.length)&&(Object.keys(t).forEach(a=>{var o,d,i,w,p,y;e.push({icon:(d=(o=t==null?void 0:t[a])==null?void 0:o.icon)!=null?d:"",id:(w=(i=t==null?void 0:t[a])==null?void 0:i.id)!=null?w:"",name:(y=(p=t==null?void 0:t[a])==null?void 0:p.title)!=null?y:""})}),queueMicrotask(()=>{var a;(a=f.showFABMenu)==null||a.call(f,{fabMenu:e})}),setTimeout(()=>{(a=>s(this,null,function*(){a&&(q.removeAddListenerFab=yield(o=>s(this,null,function*(){if(u.addListener){const d=yield u.addListener(W,"nativeSendFab",i=>o&&o(i));return d!=null&&d.remove?d.remove:()=>null}}))(a))}))(a=>{let o;a!=null&&a.id&&(Object.keys(t).forEach(d=>{var i,w,p;(i=t==null?void 0:t[d])!=null&&i.id&&a.id===t[d].id&&(o=(p=(w=t[d])==null?void 0:w.fn)!=null?p:()=>null)}),typeof o=="function"&&o())})}))},T=V();T.addListenerBackRemoveHandle=()=>null;const de=(t=()=>null)=>s(this,null,function*(){T!=null&&T.addListenerBackRemoveHandle&&typeof T.addListenerBackRemoveHandle=="function"&&T.addListenerBackRemoveHandle(),T.addListenerBackRemoveHandle=yield(e=>s(this,null,function*(){if(u.addListener){const n=yield u.addListener(W,"nativeSendBack",r=>e&&e(r));return n!=null&&n.remove?n.remove:()=>null}}))(t)}),z=V();z.addListenerHomeHandle=()=>null;const ke=t=>{z.addListenerHomeHandle&&z.addListenerHomeHandle(),setTimeout(()=>{(e=>s(this,null,function*(){e&&(z.addListenerHomeHandle=yield(n=>s(this,null,function*(){if(u.addListener){const r=yield u.addListener(W,"nativeSendHome",a=>n&&n(a));return r!=null&&r.remove?r.remove:()=>null}}))(e))}))(t)})};class Se{constructor(){this.homeBtnSwitch({isClick:!0})}homeBtnSwitch(e){return s(this,null,function*(){var n;return yield(n=f.homeIsClick)==null?void 0:n.call(f,e)})}setBackBtn(e){(n=>{const{mounted:r,beforeUnmount:a,callBack:o}=n;r(()=>{de(o)}),a(()=>{de()})})(e)}setHomeBtn(e){ke(e)}setFabBtn(e){Pe(e)}openMiniApp(e){return s(this,null,function*(){return yield f.openMiniApp(e)})}showTitle(e){return s(this,null,function*(){return yield f.showTitle(e)})}showSubMask(e){return s(this,null,function*(){return yield f.showSubMask(e)})}setMiniAppVersion(e){return s(this,null,function*(){return yield f.setMiniAppVersion(e)})}showNativeLoading(){return s(this,null,function*(){return yield f.showDialog()})}cancelNativeLoading(){return s(this,null,function*(){return yield f.cancelDialog()})}getMiniAppKong(e){return s(this,null,function*(){return yield f.getMiniAppKong(e)})}}const Ce=u.registerPlugin("CameraScanPlugin",{web:new class extends O{pickCameraScan(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}}});window.removeAddListenerCameraScan=()=>null;class Le{pickCameraScan(e){return s(this,null,function*(){return yield Ce.pickCameraScan(e)})}}const Ae=u.registerPlugin("CameraScanMultiplePlugin",{web:new class extends O{pickCameraScanMultiple(){return s(this,null,function*(){})}}});class Oe{pickCameraScanMultiple(e){return s(this,null,function*(){return yield Ae.pickCameraScanMultiple(e)})}}const Ee=u.registerPlugin("CameraScanMultipleNoCountPlugin",{web:new class extends O{pickCameraScanMultipleNoCount(){return s(this,null,function*(){})}}});class Me{pickCameraScanMultipleNoCount(e){return s(this,null,function*(){return yield Ee.pickCameraScanMultipleNoCount(e)})}}const ce="LaserScanPlugin",le=u.registerPlugin(ce,{web:new class extends O{pickLaserScan(){return s(this,null,function*(){})}unPickLaserScan(){return s(this,null,function*(){})}}}),G=V();G.removeAddListenerLaserScan=()=>null;const pe=(t=()=>null)=>{G.removeAddListenerLaserScan&&G.removeAddListenerLaserScan();const e=n=>s(this,null,function*(){n&&(G.removeAddListenerLaserScan=yield(r=>s(this,null,function*(){if(u.addListener){const a=yield u.addListener(ce,"nativeSendLaser",o=>r&&r(o));return a!=null&&a.remove?a.remove:()=>null}}))(n))});setTimeout(()=>{e(t)})};class Ne{constructor(){this.pickLaserScan()}pickLaserScan(){return s(this,null,function*(){le.pickLaserScan({isContinue:!1})})}unPickLaserScan(){return s(this,null,function*(){le.unPickLaserScan()})}setLaserScan(e){(n=>{const{mounted:r,beforeUnmount:a,callBack:o}=n;r(()=>{pe(o)}),a(()=>{pe()})})(e)}}class ue{constructor(){N(this,"initialContextPlugins",new te);N(this,"communicatePlugins",new Se);N(this,"cameraScanPlugins",new Le);N(this,"cameraScanMultiplePlugins",new Oe);N(this,"cameraScanMultipleNoCountPlugins",new Me);N(this,"laserScanPlugins",new Ne)}}const Te=new ue,je=Object.freeze(Object.defineProperty({__proto__:null,default:{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"},data_kong:{token:{access_token:"OLXyjfmHGolOdt7NMLvzh4VEAFRRHZAf",expires_in:86400,token_type:"bearer"}}}},Symbol.toStringTag,{value:"Module"})),xe=Object.freeze(Object.defineProperty({__proto__:null,default:{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"},data_kong:{"X-ASW-APIKey":"6j2AHemxmsGMmIs9rtdys0DK04Hag6s1","EVC-X-ASW-APIKey":"6j2AHemxmsGMmIs9rtdys0DK04Hag6s1"}}},Symbol.toStringTag,{value:"Module"})),Ue=Object.freeze(Object.defineProperty({__proto__:null,default:{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"},data_kong:{"X-ASW-APIKey":"axiBpmRYqN99pWG9r3horNTNgWxpvlfG","EVC-X-ASW-APIKey":"6j2AHemxmsGMmIs9rtdys0DK04Hag6s1"}}},Symbol.toStringTag,{value:"Module"})),Ie=Object.freeze(Object.defineProperty({__proto__:null,PluginsWeb:class extends O{homeIsClick(){return s(this,null,function*(){})}openMiniApp(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}showTitle(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}showFABMenu(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}showSubMask(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}setMiniAppVersion(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}showDialog(){return s(this,null,function*(){})}cancelDialog(){return s(this,null,function*(){})}getMiniAppKong(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}}},Symbol.toStringTag,{value:"Module"}));h.NativeApi=ue,h.default=Te,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(h,m){typeof exports=="object"&&typeof module!="undefined"?m(exports):typeof define=="function"&&define.amd?define(["exports"],m):m((h=typeof globalThis!="undefined"?globalThis:h||self).main={})})(this,function(h){"use strict";var Re=Object.defineProperty;var Fe=(h,m,v)=>m in h?Re(h,m,{enumerable:!0,configurable:!0,writable:!0,value:v}):h[m]=v;var M=(h,m,v)=>(Fe(h,typeof m!="symbol"?m+"":m,v),v);var s=(h,m,v)=>new Promise((Y,I)=>{var A=C=>{try{H(v.next(C))}catch(u){I(u)}},D=C=>{try{H(v.throw(C))}catch(u){I(u)}},H=C=>C.done?Y(C.value):Promise.resolve(C.value).then(A,D);H((v=v.apply(h,m)).next())});var m=(t=>(t.DEV="dev",t.SIT="sit",t.UAT="uat",t.PROD="prod",t.TEST="test",t))(m||{}),v=(t=>(t.EU="eu",t.ASIA="asia",t))(v||{});/*! Capacitor: https://capacitorjs.com/ - MIT License */const Y=t=>t.CapacitorPlatforms=(e=>{const n=new Map;n.set("web",{name:"web"});const r=e.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:n};return r.addPlatform=(a,o)=>{r.platforms.set(a,o)},r.setPlatform=a=>{r.platforms.has(a)&&(r.currentPlatform=r.platforms.get(a))},r})(t),I=Y(typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});var A;I.addPlatform,I.setPlatform,function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"}(A||(A={}));class D extends Error{constructor(e,n,r){super(e),this.message=e,this.code=n,this.data=r}}const H=t=>{var e,n,r,a,o;const d=t.CapacitorCustomPlatform||null,i=t.Capacitor||{},w=i.Plugins=i.Plugins||{},p=t.CapacitorPlatforms,y=((e=p==null?void 0:p.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||(()=>d!==null?d.name:(c=>{var l,g;return c!=null&&c.androidBridge?"android":!((g=(l=c==null?void 0:c.webkit)===null||l===void 0?void 0:l.messageHandlers)===null||g===void 0)&&g.bridge?"ios":"web"})(t)),_=((n=p==null?void 0:p.currentPlatform)===null||n===void 0?void 0:n.isNativePlatform)||(()=>y()!=="web"),E=((r=p==null?void 0:p.currentPlatform)===null||r===void 0?void 0:r.isPluginAvailable)||(c=>{const l=b.get(c);return!!(l!=null&&l.platforms.has(y()))||!!x(c)}),x=((a=p==null?void 0:p.currentPlatform)===null||a===void 0?void 0:a.getPluginHeader)||(c=>{var l;return(l=i.PluginHeaders)===null||l===void 0?void 0:l.find(g=>g.name===c)}),b=new Map,P=((o=p==null?void 0:p.currentPlatform)===null||o===void 0?void 0:o.registerPlugin)||((c,l={})=>{const g=b.get(c);if(g)return console.warn(`Capacitor plugin "${c}" already registered. Cannot register plugins twice.`),g.proxy;const k=y(),R=x(c);let j;const ne=L=>{let N;const U=(...J)=>{const F=(()=>s(this,null,function*(){return!j&&k in l?j=j=typeof l[k]=="function"?yield l[k]():l[k]:d!==null&&!j&&"web"in l&&(j=j=typeof l.web=="function"?yield l.web():l.web),j}))().then(K=>{const we=((S,$)=>{var re,se;if(!R){if(S)return(se=S[$])===null||se===void 0?void 0:se.bind(S);throw new D(`"${c}" plugin is not implemented on ${k}`,A.Unimplemented)}{const ge=R==null?void 0:R.methods.find(B=>$===B.name);if(ge)return ge.rtype==="promise"?B=>i.nativePromise(c,$.toString(),B):(B,He)=>i.nativeCallback(c,$.toString(),B,He);if(S)return(re=S[$])===null||re===void 0?void 0:re.bind(S)}})(K,L);if(we){const S=we(...J);return N=S==null?void 0:S.remove,S}throw new D(`"${c}.${L}()" is not implemented on ${k}`,A.Unimplemented)});return L==="addListener"&&(F.remove=()=>s(this,null,function*(){return N()})),F};return U.toString=()=>`${L.toString()}() { [capacitor code] }`,Object.defineProperty(U,"name",{value:L,writable:!1,configurable:!1}),U},me=ne("addListener"),fe=ne("removeListener"),De=(L,N)=>{const U=me({eventName:L},N),J=()=>s(this,null,function*(){const K=yield U;fe({eventName:L,callbackId:K},N)}),F=new Promise(K=>U.then(()=>K({remove:J})));return F.remove=()=>s(this,null,function*(){console.warn("Using addListener() without 'await' is deprecated."),yield J()}),F},ae=new Proxy({},{get(L,N){switch(N){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return R?De:me;case"removeListener":return fe;default:return ne(N)}}});return w[c]=ae,b.set(c,{name:c,proxy:ae,platforms:new Set([...Object.keys(l),...R?[k]:[]])}),ae});return i.convertFileSrc||(i.convertFileSrc=c=>c),i.getPlatform=y,i.handleError=c=>t.console.error(c),i.isNativePlatform=_,i.isPluginAvailable=E,i.pluginMethodNoop=(c,l,g)=>Promise.reject(`${g} does not have an implementation of "${l}".`),i.registerPlugin=P,i.Exception=D,i.DEBUG=!!i.DEBUG,i.isLoggingEnabled=!!i.isLoggingEnabled,i.platform=i.getPlatform(),i.isNative=i.isNativePlatform(),i},C=t=>t.Capacitor=H(t),u=C(typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}),Z=u.registerPlugin;u.Plugins;class O{constructor(e){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)}addListener(e,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(n);const r=this.windowListeners[e];r&&!r.registered&&this.addWindowListener(r);const a=()=>s(this,null,function*(){return this.removeListener(e,n)}),o=Promise.resolve({remove:a});return Object.defineProperty(o,"remove",{value:()=>s(this,null,function*(){console.warn("Using addListener() without 'await' is deprecated."),yield a()})}),o}removeAllListeners(){return s(this,null,function*(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}})}notifyListeners(e,n){const r=this.listeners[e];r&&r.forEach(a=>a(n))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,n){this.windowListeners[n]={registered:!1,windowEventName:e,pluginEventName:n,handler:r=>{this.notifyListeners(n,r)}}}unimplemented(e="not implemented"){return new u.Exception(e,A.Unimplemented)}unavailable(e="not available"){return new u.Exception(e,A.Unavailable)}removeListener(e,n){return s(this,null,function*(){const r=this.listeners[e];if(!r)return;const a=r.indexOf(n);this.listeners[e].splice(a,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])})}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}}const oe=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),ie=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class ve extends O{getCookies(){return s(this,null,function*(){const e=document.cookie,n={};return e.split(";").forEach(r=>{if(r.length<=0)return;let[a,o]=r.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");a=ie(a).trim(),o=ie(o).trim(),n[a]=o}),n})}setCookie(e){return s(this,null,function*(){try{const n=oe(e.key),r=oe(e.value),a=`; expires=${(e.expires||"").replace("expires=","")}`,o=(e.path||"/").replace("path=",""),d=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${n}=${r||""}${a}; path=${o}; ${d};`}catch(n){return Promise.reject(n)}})}deleteCookie(e){return s(this,null,function*(){try{document.cookie=`${e.key}=; Max-Age=0`}catch(n){return Promise.reject(n)}})}clearCookies(){return s(this,null,function*(){try{const e=document.cookie.split(";")||[];for(const n of e)document.cookie=n.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}})}clearAllCookies(){return s(this,null,function*(){try{yield this.clearCookies()}catch(e){return Promise.reject(e)}})}}Z("CapacitorCookies",{web:()=>new ve});const he=(t,e={})=>{const n=Object.assign({method:t.method||"GET",headers:t.headers},e),r=((a={})=>{const o=Object.keys(a);return Object.keys(a).map(d=>d.toLocaleLowerCase()).reduce((d,i,w)=>(d[i]=a[o[w]],d),{})})(t.headers)["content-type"]||"";if(typeof t.data=="string")n.body=t.data;else if(r.includes("application/x-www-form-urlencoded")){const a=new URLSearchParams;for(const[o,d]of Object.entries(t.data||{}))a.set(o,d);n.body=a.toString()}else if(r.includes("multipart/form-data")){const a=new FormData;if(t.data instanceof FormData)t.data.forEach((d,i)=>{a.append(i,d)});else for(const d of Object.keys(t.data))a.append(d,t.data[d]);n.body=a;const o=new Headers(n.headers);o.delete("content-type"),n.headers=o}else(r.includes("application/json")||typeof t.data=="object")&&(n.body=JSON.stringify(t.data));return n};class ye extends O{request(e){return s(this,null,function*(){const n=he(e,e.webFetchExtra),r=((_,E=!0)=>_?Object.entries(_).reduce((x,b)=>{const[P,c]=b;let l,g;return Array.isArray(c)?(g="",c.forEach(k=>{l=E?encodeURIComponent(k):k,g+=`${P}=${l}&`}),g.slice(0,-1)):(l=E?encodeURIComponent(c):c,g=`${P}=${l}`),`${x}&${g}`},"").substr(1):null)(e.params,e.shouldEncodeUrlParams),a=r?`${e.url}?${r}`:e.url,o=yield fetch(a,n),d=o.headers.get("content-type")||"";let i,w,{responseType:p="text"}=o.ok?e:{};switch(d.includes("application/json")&&(p="json"),p){case"arraybuffer":case"blob":w=yield o.blob(),i=yield(_=>s(this,null,function*(){return new Promise((E,x)=>{const b=new FileReader;b.onload=()=>{const P=b.result;E(P.indexOf(",")>=0?P.split(",")[1]:P)},b.onerror=P=>x(P),b.readAsDataURL(_)})}))(w);break;case"json":i=yield o.json();break;default:i=yield o.text()}const y={};return o.headers.forEach((_,E)=>{y[E]=_}),{data:i,headers:y,status:o.status,url:o.url}})}get(e){return s(this,null,function*(){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))})}post(e){return s(this,null,function*(){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))})}put(e){return s(this,null,function*(){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))})}patch(e){return s(this,null,function*(){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))})}delete(e){return s(this,null,function*(){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))})}}function Q(){return u.getPlatform()==="android"?JSON.parse(AndroidInitialContext.initialContext()):window.portalInitialContext}Z("CapacitorHttp",{web:()=>new ye}),Z("Portals",{web:()=>Promise.resolve().then(function(){return _e}).then(t=>new t.PortalsWeb)});const _e=Object.freeze({__proto__:null,PortalsWeb:class extends O{publishNative(t){return s(this,null,function*(){})}}}),ee=t=>{var e,n,r;if(typeof window!="undefined"&&Q&&((e=Q())!=null&&e.value)){const a=(r=(n=Q())==null?void 0:n.value)!=null?r:null;if(!a)return void console.error("native initialContext is undefine");if(!t)return void console.error("initialContext call back is undefine");t(a)}},be=t=>new Promise(e=>s(this,null,function*(){let n=null;n=t!=null&&t.mockData?t.mockData:((r,{asiaUatData:a,euSitData:o,euUatData:d})=>{var y,_;const i=(y=r.mockServerInfo)==null?void 0:y.env,w=(_=r.mockServerInfo)==null?void 0:_.area;let p=null;return i&&w&&(v.ASIA===w?m.UAT===i&&(p=a):v.EU===w&&(m.SIT===i?p=o:m.UAT===i&&(p=d))),p})(t,{asiaUatData:yield Promise.resolve().then(()=>je),euSitData:yield Promise.resolve().then(()=>xe),euUatData:yield Promise.resolve().then(()=>Ue)}),e(n?n!=null&&n.default?n==null?void 0:n.default:n:null)})),X=class X{isNative(){return s(this,null,function*(){return yield(()=>{let e=!1;return ee(n=>{e=!!(n!=null&&n.isNative)}),e})()})}redirectPage(e){return s(this,null,function*(){yield(({callBack:n})=>{ee(r=>{var o;if(!(r!=null&&r.params))return void console.info("initial context native params is undefine");const a=(o=r==null?void 0:r.params)!=null?o:null;a&&(n?n(a):console.error("initial context call back is undefine"))})})(e)})}getNativeInfo(e){return s(this,null,function*(){const n=e!=null&&e.mockServerInfo||e!=null&&e.mockData?e:X.defaultNativeAppInfoConfig;return(yield this.isNative())?yield(()=>{let r=null;return ee(a=>{r=a!=null?a:null}),r})():yield be(n)})}};M(X,"defaultNativeAppInfoConfig",{mockServerInfo:{area:v.ASIA,env:m.UAT}});let te=X;const V=()=>{let t={};return typeof window!="undefined"&&(t=window),t},W="CommunicatePlugin",f=u.registerPlugin(W,{web:()=>Promise.resolve().then(()=>Ie).then(t=>new t.PluginsWeb)}),q=V();q.removeAddListenerFab=()=>null;const Pe=t=>{var n,r;q.removeAddListenerFab&&q.removeAddListenerFab();const e=[];(n=f.showFABMenu)==null||n.call(f,{fabMenu:e}),t&&((r=Object.keys(t))!=null&&r.length)&&(Object.keys(t).forEach(a=>{var o,d,i,w,p,y;e.push({icon:(d=(o=t==null?void 0:t[a])==null?void 0:o.icon)!=null?d:"",id:(w=(i=t==null?void 0:t[a])==null?void 0:i.id)!=null?w:"",name:(y=(p=t==null?void 0:t[a])==null?void 0:p.title)!=null?y:""})}),queueMicrotask(()=>{var a;(a=f.showFABMenu)==null||a.call(f,{fabMenu:e})}),setTimeout(()=>{(a=>s(this,null,function*(){a&&(q.removeAddListenerFab=yield(o=>s(this,null,function*(){if(u.addListener){const d=yield u.addListener(W,"nativeSendFab",i=>o&&o(i));return d!=null&&d.remove?d.remove:()=>null}}))(a))}))(a=>{let o;a!=null&&a.id&&(Object.keys(t).forEach(d=>{var i,w,p;(i=t==null?void 0:t[d])!=null&&i.id&&a.id===t[d].id&&(o=(p=(w=t[d])==null?void 0:w.fn)!=null?p:()=>null)}),typeof o=="function"&&o())})}))},T=V();T.addListenerBackRemoveHandle=()=>null;const de=(t=()=>null)=>s(this,null,function*(){T!=null&&T.addListenerBackRemoveHandle&&typeof T.addListenerBackRemoveHandle=="function"&&T.addListenerBackRemoveHandle(),T.addListenerBackRemoveHandle=yield(e=>s(this,null,function*(){if(u.addListener){const n=yield u.addListener(W,"nativeSendBack",r=>e&&e(r));return n!=null&&n.remove?n.remove:()=>null}}))(t)}),z=V();z.addListenerHomeHandle=()=>null;const ke=t=>{z.addListenerHomeHandle&&z.addListenerHomeHandle(),setTimeout(()=>{(e=>s(this,null,function*(){e&&(z.addListenerHomeHandle=yield(n=>s(this,null,function*(){if(u.addListener){const r=yield u.addListener(W,"nativeSendHome",a=>n&&n(a));return r!=null&&r.remove?r.remove:()=>null}}))(e))}))(t)})};class Se{constructor(){this.homeBtnSwitch({isClick:!0})}homeBtnSwitch(e){return s(this,null,function*(){var n;return yield(n=f.homeIsClick)==null?void 0:n.call(f,e)})}setBackBtn(e){(n=>{const{mounted:r,beforeUnmount:a,callBack:o}=n;r(()=>{de(o)}),a(()=>{de()})})(e)}setHomeBtn(e){ke(e)}setFabBtn(e){Pe(e)}openMiniApp(e){return s(this,null,function*(){return yield f.openMiniApp(e)})}showTitle(e){return s(this,null,function*(){return yield f.showTitle(e)})}showSubMask(e){return s(this,null,function*(){return yield f.showSubMask(e)})}setMiniAppVersion(e){return s(this,null,function*(){return yield f.setMiniAppVersion(e)})}showNativeLoading(){return s(this,null,function*(){return yield f.showDialog()})}cancelNativeLoading(){return s(this,null,function*(){return yield f.cancelDialog()})}getMiniAppKong(e){return s(this,null,function*(){return yield f.getMiniAppKong(e)})}}const Ce=u.registerPlugin("CameraScanPlugin",{web:new class extends O{pickCameraScan(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}}});window.removeAddListenerCameraScan=()=>null;class Le{pickCameraScan(e){return s(this,null,function*(){return yield Ce.pickCameraScan(e)})}}const Ae=u.registerPlugin("CameraScanMultiplePlugin",{web:new class extends O{pickCameraScanMultiple(){return s(this,null,function*(){})}}});class Oe{pickCameraScanMultiple(e){return s(this,null,function*(){return yield Ae.pickCameraScanMultiple(e)})}}const Ee=u.registerPlugin("CameraScanMultipleNoCountPlugin",{web:new class extends O{pickCameraScanMultipleNoCount(){return s(this,null,function*(){})}}});class Ne{pickCameraScanMultipleNoCount(e){return s(this,null,function*(){return yield Ee.pickCameraScanMultipleNoCount(e)})}}const ce="LaserScanPlugin",le=u.registerPlugin(ce,{web:new class extends O{pickLaserScan(){return s(this,null,function*(){})}unPickLaserScan(){return s(this,null,function*(){})}}}),G=V();G.removeAddListenerLaserScan=()=>null;const pe=(t=()=>null)=>{G.removeAddListenerLaserScan&&G.removeAddListenerLaserScan();const e=n=>s(this,null,function*(){n&&(G.removeAddListenerLaserScan=yield(r=>s(this,null,function*(){if(u.addListener){const a=yield u.addListener(ce,"nativeSendLaser",o=>r&&r(o));return a!=null&&a.remove?a.remove:()=>null}}))(n))});setTimeout(()=>{e(t)})};class Me{constructor(){this.pickLaserScan()}pickLaserScan(){return s(this,null,function*(){le.pickLaserScan({isContinue:!1})})}unPickLaserScan(){return s(this,null,function*(){le.unPickLaserScan()})}setLaserScan(e){(n=>{const{mounted:r,beforeUnmount:a,callBack:o}=n;r(()=>{pe(o)}),a(()=>{pe()})})(e)}}class ue{constructor(){M(this,"initialContextPlugins",new te);M(this,"communicatePlugins",new Se);M(this,"cameraScanPlugins",new Le);M(this,"cameraScanMultiplePlugins",new Oe);M(this,"cameraScanMultipleNoCountPlugins",new Ne);M(this,"laserScanPlugins",new Me)}}const Te=new ue,je=Object.freeze(Object.defineProperty({__proto__:null,default:{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"},data_kong:{token:{access_token:"OLXyjfmHGolOdt7NMLvzh4VEAFRRHZAf",expires_in:86400,token_type:"bearer"}}}},Symbol.toStringTag,{value:"Module"})),xe=Object.freeze(Object.defineProperty({__proto__:null,default:{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"},data_kong:{"X-ASW-APIKey":"bpz8GFrfuul43nCcJbSj08GT56x3K2jy","EVC-X-ASW-APIKey":"6j2AHemxmsGMmIs9rtdys0DK04Hag6s1"}}},Symbol.toStringTag,{value:"Module"})),Ue=Object.freeze(Object.defineProperty({__proto__:null,default:{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"},data_kong:{"X-ASW-APIKey":"axiBpmRYqN99pWG9r3horNTNgWxpvlfG","EVC-X-ASW-APIKey":"6j2AHemxmsGMmIs9rtdys0DK04Hag6s1"}}},Symbol.toStringTag,{value:"Module"})),Ie=Object.freeze(Object.defineProperty({__proto__:null,PluginsWeb:class extends O{homeIsClick(){return s(this,null,function*(){})}openMiniApp(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}showTitle(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}showFABMenu(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}showSubMask(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}setMiniAppVersion(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}showDialog(){return s(this,null,function*(){})}cancelDialog(){return s(this,null,function*(){})}getMiniAppKong(t){return s(this,null,function*(){return new Promise(e=>{e(t)})})}}},Symbol.toStringTag,{value:"Module"}));h.NativeApi=ue,h.default=Te,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|