@feedmepos/mf-brand-app-builder 0.5.46-prod → 0.5.47-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/App-Ck5Q4Z44.js +114 -0
- package/dist/{AssetsSettings-Do8rt2sU.js → AssetsSettings-DtZ6goQl.js} +22 -22
- package/dist/{BrandkitView-nfDiG0HS.js → BrandkitView-BZCLurZL.js} +3366 -3315
- package/dist/{BuilderView-D6aesdSu.js → BuilderView-BDYSDiXE.js} +7 -7
- package/dist/{CredentialSettings-BB_Yroul.js → CredentialSettings-3eVBw1x8.js} +1 -1
- package/dist/{ImageUpload-BZj85a8g.js → ImageUpload-XCqd_Lf1.js} +8 -8
- package/dist/{LinkButton-DNXBKGCn.js → LinkButton-De-YNclu.js} +1 -1
- package/dist/{ListRepeater-tz5QcoGP.js → ListRepeater-BjWvukJ6.js} +1 -1
- package/dist/{ManagementSettings-CjsGetkI.js → ManagementSettings-CWAKkmbz.js} +6 -6
- package/dist/{ProjectView-Dc-furGA.js → ProjectView-DO6VUrFS.js} +3 -3
- package/dist/{app-MFB1wiue.js → app-BG4E6k9-.js} +183 -151
- package/dist/app.js +1 -1
- package/dist/client/merchant/src/app.d.ts +32 -0
- package/dist/client/merchant/src/composables/miniprogramPortalEntry.d.ts +12 -0
- package/dist/{dayjs.min-Ctmrwhx3.js → dayjs.min-Df-s3E18.js} +1 -1
- package/dist/{image-S7-2rbQS.js → image-D_Djf1PS.js} +7 -7
- package/dist/{index-BpYD24Jn.js → index-BA2J-Ffh.js} +1 -1
- package/dist/{index-CPs0rWCO.js → index-Bk6TOZrx.js} +15 -15
- package/dist/index-CVVQJJYY.js +134 -0
- package/dist/{index-C6_vWPi0.js → index-D0LOMBBD.js} +27 -27
- package/dist/{main-LDiBfnFA.js → main-C91a3jWJ.js} +4 -4
- package/dist/package.json +1 -1
- package/dist/style.css +1 -1
- package/dist/{useBusinessFeatureFlag-Dw4hpcYo.js → useBusinessFeatureFlag-CfpvWi12.js} +218 -227
- package/package.json +1 -1
- package/dist/App-DD3xAvwR.js +0 -121
- package/dist/index-CP6_oC8N.js +0 -134
package/dist/app.js
CHANGED
|
@@ -359,6 +359,7 @@ export declare const i18nMessages: {
|
|
|
359
359
|
confirmLogoutMessage: string;
|
|
360
360
|
logoutAction: string;
|
|
361
361
|
cancelAction: string;
|
|
362
|
+
membershipCheckFailed: string;
|
|
362
363
|
};
|
|
363
364
|
referral: {
|
|
364
365
|
title: string;
|
|
@@ -544,6 +545,9 @@ export declare const i18nMessages: {
|
|
|
544
545
|
description: string;
|
|
545
546
|
save: string;
|
|
546
547
|
unsavedChanges: string;
|
|
548
|
+
miniprogramV2BannerTitle: string;
|
|
549
|
+
miniprogramV2BannerDescription: string;
|
|
550
|
+
miniprogramV2BannerAction: string;
|
|
547
551
|
logo: string;
|
|
548
552
|
color: {
|
|
549
553
|
_: string;
|
|
@@ -1801,6 +1805,7 @@ export declare const i18nMessages: {
|
|
|
1801
1805
|
confirmLogoutMessage: string;
|
|
1802
1806
|
logoutAction: string;
|
|
1803
1807
|
cancelAction: string;
|
|
1808
|
+
membershipCheckFailed: string;
|
|
1804
1809
|
};
|
|
1805
1810
|
};
|
|
1806
1811
|
utils: {
|
|
@@ -1841,6 +1846,9 @@ export declare const i18nMessages: {
|
|
|
1841
1846
|
description: string;
|
|
1842
1847
|
save: string;
|
|
1843
1848
|
unsavedChanges: string;
|
|
1849
|
+
miniprogramV2BannerTitle: string;
|
|
1850
|
+
miniprogramV2BannerDescription: string;
|
|
1851
|
+
miniprogramV2BannerAction: string;
|
|
1844
1852
|
logo: string;
|
|
1845
1853
|
color: {
|
|
1846
1854
|
_: string;
|
|
@@ -3075,6 +3083,9 @@ export declare const i18nMessages: {
|
|
|
3075
3083
|
cancelAction: string;
|
|
3076
3084
|
};
|
|
3077
3085
|
};
|
|
3086
|
+
member: {
|
|
3087
|
+
membershipCheckFailed: string;
|
|
3088
|
+
};
|
|
3078
3089
|
};
|
|
3079
3090
|
utils: {
|
|
3080
3091
|
voucher: {
|
|
@@ -3114,6 +3125,9 @@ export declare const i18nMessages: {
|
|
|
3114
3125
|
description: string;
|
|
3115
3126
|
save: string;
|
|
3116
3127
|
unsavedChanges: string;
|
|
3128
|
+
miniprogramV2BannerTitle: string;
|
|
3129
|
+
miniprogramV2BannerDescription: string;
|
|
3130
|
+
miniprogramV2BannerAction: string;
|
|
3117
3131
|
logo: string;
|
|
3118
3132
|
color: {
|
|
3119
3133
|
_: string;
|
|
@@ -4348,6 +4362,9 @@ export declare const i18nMessages: {
|
|
|
4348
4362
|
cancelAction: string;
|
|
4349
4363
|
};
|
|
4350
4364
|
};
|
|
4365
|
+
member: {
|
|
4366
|
+
membershipCheckFailed: string;
|
|
4367
|
+
};
|
|
4351
4368
|
};
|
|
4352
4369
|
utils: {
|
|
4353
4370
|
voucher: {
|
|
@@ -4387,6 +4404,9 @@ export declare const i18nMessages: {
|
|
|
4387
4404
|
description: string;
|
|
4388
4405
|
save: string;
|
|
4389
4406
|
unsavedChanges: string;
|
|
4407
|
+
miniprogramV2BannerTitle: string;
|
|
4408
|
+
miniprogramV2BannerDescription: string;
|
|
4409
|
+
miniprogramV2BannerAction: string;
|
|
4390
4410
|
logo: string;
|
|
4391
4411
|
color: {
|
|
4392
4412
|
_: string;
|
|
@@ -5509,6 +5529,7 @@ export declare const i18nMessages: {
|
|
|
5509
5529
|
confirmLogoutMessage: string;
|
|
5510
5530
|
logoutAction: string;
|
|
5511
5531
|
cancelAction: string;
|
|
5532
|
+
membershipCheckFailed: string;
|
|
5512
5533
|
};
|
|
5513
5534
|
referral: {
|
|
5514
5535
|
title: string;
|
|
@@ -5859,6 +5880,9 @@ export declare const i18nMessages: {
|
|
|
5859
5880
|
description: string;
|
|
5860
5881
|
save: string;
|
|
5861
5882
|
unsavedChanges: string;
|
|
5883
|
+
miniprogramV2BannerTitle: string;
|
|
5884
|
+
miniprogramV2BannerDescription: string;
|
|
5885
|
+
miniprogramV2BannerAction: string;
|
|
5862
5886
|
logo: string;
|
|
5863
5887
|
color: {
|
|
5864
5888
|
_: string;
|
|
@@ -6980,6 +7004,7 @@ export declare const i18nMessages: {
|
|
|
6980
7004
|
confirmLogoutMessage: string;
|
|
6981
7005
|
logoutAction: string;
|
|
6982
7006
|
cancelAction: string;
|
|
7007
|
+
membershipCheckFailed: string;
|
|
6983
7008
|
};
|
|
6984
7009
|
referral: {
|
|
6985
7010
|
title: string;
|
|
@@ -7330,6 +7355,9 @@ export declare const i18nMessages: {
|
|
|
7330
7355
|
description: string;
|
|
7331
7356
|
save: string;
|
|
7332
7357
|
unsavedChanges: string;
|
|
7358
|
+
miniprogramV2BannerTitle: string;
|
|
7359
|
+
miniprogramV2BannerDescription: string;
|
|
7360
|
+
miniprogramV2BannerAction: string;
|
|
7333
7361
|
logo: string;
|
|
7334
7362
|
color: {
|
|
7335
7363
|
_: string;
|
|
@@ -8421,6 +8449,7 @@ export declare const i18nMessages: {
|
|
|
8421
8449
|
confirmLogoutMessage: string;
|
|
8422
8450
|
logoutAction: string;
|
|
8423
8451
|
cancelAction: string;
|
|
8452
|
+
membershipCheckFailed: string;
|
|
8424
8453
|
};
|
|
8425
8454
|
referral: {
|
|
8426
8455
|
title: string;
|
|
@@ -8773,6 +8802,9 @@ export declare const i18nMessages: {
|
|
|
8773
8802
|
description: string;
|
|
8774
8803
|
save: string;
|
|
8775
8804
|
unsavedChanges: string;
|
|
8805
|
+
miniprogramV2BannerTitle: string;
|
|
8806
|
+
miniprogramV2BannerDescription: string;
|
|
8807
|
+
miniprogramV2BannerAction: string;
|
|
8776
8808
|
logo: string;
|
|
8777
8809
|
color: {
|
|
8778
8810
|
_: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { LocationQuery } from 'vue-router';
|
|
2
|
+
type MerchantContext = {
|
|
3
|
+
businessId?: string | null;
|
|
4
|
+
country?: string | null;
|
|
5
|
+
restaurantId?: string | null;
|
|
6
|
+
};
|
|
7
|
+
export declare function miniprogramPortalEntry(query: LocationQuery, selected: MerchantContext, namespace: string): {
|
|
8
|
+
name: string;
|
|
9
|
+
query: Record<string, string>;
|
|
10
|
+
href: string;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as r, a as p } from "./index-
|
|
1
|
+
import { H as r, a as p } from "./index-D0LOMBBD.js";
|
|
2
2
|
const i = () => p().PWA_ICON_SERVICE_BACKEND;
|
|
3
|
-
async function
|
|
3
|
+
async function d(e, t, a) {
|
|
4
4
|
const n = new FormData();
|
|
5
5
|
return n.append("file", a), (await r.Put(
|
|
6
|
-
"https://api.
|
|
6
|
+
"https://api.feedmedev.vip",
|
|
7
7
|
`/image/${e}/${t}`,
|
|
8
8
|
{
|
|
9
9
|
headers: {
|
|
@@ -13,9 +13,9 @@ async function s(e, t, a) {
|
|
|
13
13
|
}
|
|
14
14
|
)).data;
|
|
15
15
|
}
|
|
16
|
-
async function
|
|
16
|
+
async function s(e, t) {
|
|
17
17
|
return (await r.Delete(
|
|
18
|
-
"https://api.
|
|
18
|
+
"https://api.feedmedev.vip",
|
|
19
19
|
`/image/${e}/${t}`
|
|
20
20
|
)).data;
|
|
21
21
|
}
|
|
@@ -29,8 +29,8 @@ async function o(e, t) {
|
|
|
29
29
|
})).data;
|
|
30
30
|
}
|
|
31
31
|
const f = {
|
|
32
|
-
uploadImage:
|
|
33
|
-
deleteImage:
|
|
32
|
+
uploadImage: d,
|
|
33
|
+
deleteImage: s,
|
|
34
34
|
uploadAppIcon: o
|
|
35
35
|
};
|
|
36
36
|
function u(e) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { H as d } from "./index-
|
|
1
|
+
import { H as d } from "./index-D0LOMBBD.js";
|
|
2
2
|
import { defineStore as w } from "pinia";
|
|
3
3
|
import { ref as y } from "vue";
|
|
4
4
|
import { v as I } from "./v4-CKwdnpQf.js";
|
|
5
5
|
async function g(e) {
|
|
6
6
|
return (await d.Get(
|
|
7
|
-
"https://api.
|
|
7
|
+
"https://api.feedmedev.vip",
|
|
8
8
|
`/template/${e}`
|
|
9
9
|
)).data;
|
|
10
10
|
}
|
|
11
11
|
async function A(e, l, p) {
|
|
12
12
|
return (await d.Get(
|
|
13
|
-
"https://api.
|
|
13
|
+
"https://api.feedmedev.vip",
|
|
14
14
|
`/template/${e}/${l}/${p}`
|
|
15
15
|
)).data;
|
|
16
16
|
}
|
|
17
17
|
async function P(e, l, p, m) {
|
|
18
18
|
return (await d.Put(
|
|
19
|
-
"https://api.
|
|
19
|
+
"https://api.feedmedev.vip",
|
|
20
20
|
`/template/${e}/${l}/${p.templateId}`,
|
|
21
21
|
{
|
|
22
22
|
data: {
|
|
@@ -29,7 +29,7 @@ async function P(e, l, p, m) {
|
|
|
29
29
|
}
|
|
30
30
|
async function M(e, l, p) {
|
|
31
31
|
return (await d.Put(
|
|
32
|
-
"https://api.
|
|
32
|
+
"https://api.feedmedev.vip",
|
|
33
33
|
`/template/${e}/active${p ? `/${p}` : ""}`,
|
|
34
34
|
{
|
|
35
35
|
data: {
|
|
@@ -40,19 +40,19 @@ async function M(e, l, p) {
|
|
|
40
40
|
}
|
|
41
41
|
async function b(e, l) {
|
|
42
42
|
return (await d.Get(
|
|
43
|
-
"https://api.
|
|
43
|
+
"https://api.feedmedev.vip",
|
|
44
44
|
`/template/${e}/active${l ? `/${l}` : ""}`
|
|
45
45
|
)).data;
|
|
46
46
|
}
|
|
47
47
|
async function U(e, l, p) {
|
|
48
48
|
return await d.Head(
|
|
49
|
-
"https://api.
|
|
49
|
+
"https://api.feedmedev.vip",
|
|
50
50
|
`/template/${e}/${l}/${p}`
|
|
51
51
|
).then((c) => c.status === 200).catch(() => !1);
|
|
52
52
|
}
|
|
53
53
|
async function B(e, l, p) {
|
|
54
54
|
return (await d.Post(
|
|
55
|
-
"https://api.
|
|
55
|
+
"https://api.feedmedev.vip",
|
|
56
56
|
`/template/${e}/${l}/rename`,
|
|
57
57
|
{
|
|
58
58
|
data: {
|
|
@@ -63,7 +63,7 @@ async function B(e, l, p) {
|
|
|
63
63
|
}
|
|
64
64
|
async function x(e, l, p) {
|
|
65
65
|
return (await d.Delete(
|
|
66
|
-
"https://api.
|
|
66
|
+
"https://api.feedmedev.vip",
|
|
67
67
|
`/template/${e}/${l}/${p}`
|
|
68
68
|
)).data;
|
|
69
69
|
}
|
|
@@ -120,7 +120,7 @@ const i = {
|
|
|
120
120
|
t
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
async function
|
|
123
|
+
async function v(a, t) {
|
|
124
124
|
i.setMainPageTemplateId(
|
|
125
125
|
a,
|
|
126
126
|
e.value.selectedTemplate.templateId,
|
|
@@ -129,7 +129,7 @@ const i = {
|
|
|
129
129
|
e.value.activeTemplateId = e.value.selectedTemplate.templateId;
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function o(a = {}) {
|
|
133
133
|
let t = "Untitled", s = 2;
|
|
134
134
|
e.value.allTemplates.forEach((r) => {
|
|
135
135
|
if (!r.templateAlias.startsWith("Untitled")) return;
|
|
@@ -145,7 +145,7 @@ const i = {
|
|
|
145
145
|
};
|
|
146
146
|
e.value.allTemplates.push(n), e.value.selectedTemplate = n;
|
|
147
147
|
}
|
|
148
|
-
async function
|
|
148
|
+
async function f(a, t, s) {
|
|
149
149
|
await i.renameTemplate(a, t, s).then(() => {
|
|
150
150
|
var n;
|
|
151
151
|
e.value.allTemplates = e.value.allTemplates.map((r) => r.templateId === t ? {
|
|
@@ -185,9 +185,9 @@ const i = {
|
|
|
185
185
|
getMainTemplateId: m,
|
|
186
186
|
setSelectedTemplate: c,
|
|
187
187
|
saveTemplate: T,
|
|
188
|
-
setMainPageTemplate:
|
|
189
|
-
addNewTemplate:
|
|
190
|
-
renameTemplate:
|
|
188
|
+
setMainPageTemplate: v,
|
|
189
|
+
addNewTemplate: o,
|
|
190
|
+
renameTemplate: f,
|
|
191
191
|
deleteTemplate: h,
|
|
192
192
|
unpublishTemplate: $
|
|
193
193
|
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { H as a, a as d } from "./index-D0LOMBBD.js";
|
|
2
|
+
const o = () => d().PORTAL_V2_BACKEND, c = () => d().LICENSE_BACKEND;
|
|
3
|
+
async function p(t) {
|
|
4
|
+
return (await a.Get(
|
|
5
|
+
"https://api.feedmedev.vip",
|
|
6
|
+
`/short-url/${t}`
|
|
7
|
+
)).data;
|
|
8
|
+
}
|
|
9
|
+
async function u(t, e, s) {
|
|
10
|
+
return await a.Post(
|
|
11
|
+
"https://api.feedmedev.vip",
|
|
12
|
+
"/short-url",
|
|
13
|
+
{
|
|
14
|
+
data: {
|
|
15
|
+
slug: t,
|
|
16
|
+
oldSlug: e,
|
|
17
|
+
type: "BUSINESS",
|
|
18
|
+
businessId: s
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
).then((n) => n.data).catch((n) => {
|
|
22
|
+
var r;
|
|
23
|
+
throw (r = n.response) == null ? void 0 : r.data;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
async function f(t) {
|
|
27
|
+
return (await a.Get(
|
|
28
|
+
"https://api.feedmedev.vip",
|
|
29
|
+
`/metadata/${t}/config`
|
|
30
|
+
)).data;
|
|
31
|
+
}
|
|
32
|
+
async function m(t, e, s) {
|
|
33
|
+
return (await a.Post(
|
|
34
|
+
"https://api.feedmedev.vip",
|
|
35
|
+
`/metadata/${t}/config`,
|
|
36
|
+
{
|
|
37
|
+
data: {
|
|
38
|
+
name: e,
|
|
39
|
+
backgroundColor: "#ffffff",
|
|
40
|
+
country: s
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
)).data;
|
|
44
|
+
}
|
|
45
|
+
async function l(t) {
|
|
46
|
+
return (await a.Get(
|
|
47
|
+
"https://api.feedmedev.vip",
|
|
48
|
+
`/metadata/${t}/brandkit`
|
|
49
|
+
)).data;
|
|
50
|
+
}
|
|
51
|
+
async function h(t, e) {
|
|
52
|
+
return (await a.Post(
|
|
53
|
+
"https://api.feedmedev.vip",
|
|
54
|
+
`/metadata/${t}/brandkit`,
|
|
55
|
+
{
|
|
56
|
+
data: e
|
|
57
|
+
}
|
|
58
|
+
)).data;
|
|
59
|
+
}
|
|
60
|
+
async function v(t, e) {
|
|
61
|
+
return (await a.Get(
|
|
62
|
+
"https://api.feedmedev.vip",
|
|
63
|
+
`/metadata/${t}/brandkit/template-history/${e}`
|
|
64
|
+
)).data;
|
|
65
|
+
}
|
|
66
|
+
async function y(t, e, s) {
|
|
67
|
+
return (await a.Post(
|
|
68
|
+
"https://api.feedmedev.vip",
|
|
69
|
+
`/metadata/${t}/brandkit/template-restore/${e}/${s}`,
|
|
70
|
+
{}
|
|
71
|
+
)).data;
|
|
72
|
+
}
|
|
73
|
+
async function $(t, e) {
|
|
74
|
+
return (await a.Delete(
|
|
75
|
+
"https://api.feedmedev.vip",
|
|
76
|
+
`/metadata/${t}/brandkit/template-history/${e}`
|
|
77
|
+
)).data;
|
|
78
|
+
}
|
|
79
|
+
async function w(t, e) {
|
|
80
|
+
const s = {
|
|
81
|
+
...e,
|
|
82
|
+
url: e.url || t
|
|
83
|
+
};
|
|
84
|
+
return await a.Put(
|
|
85
|
+
o(),
|
|
86
|
+
`businesses/${t}/profile`,
|
|
87
|
+
{
|
|
88
|
+
data: s
|
|
89
|
+
}
|
|
90
|
+
).catch((r) => {
|
|
91
|
+
var i;
|
|
92
|
+
throw (i = r.response) == null ? void 0 : i.data;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
async function g(t) {
|
|
96
|
+
return await a.Get(
|
|
97
|
+
c(),
|
|
98
|
+
`api/business/${t}/feature/miniprogram`
|
|
99
|
+
).then((e) => e.data).catch(() => !1);
|
|
100
|
+
}
|
|
101
|
+
async function B(t) {
|
|
102
|
+
return (await a.Get(
|
|
103
|
+
"https://api.feedmedev.vip",
|
|
104
|
+
`/metadata/${t}/credentials`,
|
|
105
|
+
{}
|
|
106
|
+
)).data;
|
|
107
|
+
}
|
|
108
|
+
async function P(t, e) {
|
|
109
|
+
return (await a.Post(
|
|
110
|
+
"https://api.feedmedev.vip",
|
|
111
|
+
`/metadata/${t}/credentials`,
|
|
112
|
+
{
|
|
113
|
+
data: e
|
|
114
|
+
}
|
|
115
|
+
)).data;
|
|
116
|
+
}
|
|
117
|
+
const k = {
|
|
118
|
+
getGlobalSlug: p,
|
|
119
|
+
setShortUrl: u,
|
|
120
|
+
getBusinessMetadata: f,
|
|
121
|
+
setBusinessMetadata: m,
|
|
122
|
+
getBusinessBrandkit: l,
|
|
123
|
+
setBusinessBrandkit: h,
|
|
124
|
+
getTemplateHistory: v,
|
|
125
|
+
restoreTemplateVersion: y,
|
|
126
|
+
clearTemplateHistory: $,
|
|
127
|
+
updateBusinessProfile: w,
|
|
128
|
+
getBusinessPremiumStatus: g,
|
|
129
|
+
getCredentials: B,
|
|
130
|
+
updateCredentials: P
|
|
131
|
+
};
|
|
132
|
+
export {
|
|
133
|
+
k as B
|
|
134
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useCoreStore as Ke } from "@feedmepos/mf-common";
|
|
2
|
-
function
|
|
2
|
+
function ve(e, t) {
|
|
3
3
|
return function() {
|
|
4
4
|
return e.apply(t, arguments);
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
7
|
var Pe = {};
|
|
8
|
-
const { toString: wt } = Object.prototype, { getPrototypeOf: Ee } = Object, { iterator: oe, toStringTag:
|
|
8
|
+
const { toString: wt } = Object.prototype, { getPrototypeOf: Ee } = Object, { iterator: oe, toStringTag: We } = Symbol, ie = /* @__PURE__ */ ((e) => (t) => {
|
|
9
9
|
const n = wt.call(t);
|
|
10
10
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
11
11
|
})(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => ie(t) === e), ae = (e) => (t) => typeof t === e, { isArray: M } = Array, H = ae("undefined");
|
|
@@ -17,25 +17,25 @@ function Et(e) {
|
|
|
17
17
|
let t;
|
|
18
18
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Xe(e.buffer), t;
|
|
19
19
|
}
|
|
20
|
-
const St = ae("string"), A = ae("function"), Ge = ae("number"),
|
|
20
|
+
const St = ae("string"), A = ae("function"), Ge = ae("number"), v = (e) => e !== null && typeof e == "object", gt = (e) => e === !0 || e === !1, ee = (e) => {
|
|
21
21
|
if (ie(e) !== "object")
|
|
22
22
|
return !1;
|
|
23
23
|
const t = Ee(e);
|
|
24
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
24
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(We in e) && !(oe in e);
|
|
25
25
|
}, Rt = (e) => {
|
|
26
|
-
if (!
|
|
26
|
+
if (!v(e) || K(e))
|
|
27
27
|
return !1;
|
|
28
28
|
try {
|
|
29
29
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
30
30
|
} catch {
|
|
31
31
|
return !1;
|
|
32
32
|
}
|
|
33
|
-
}, Ot = P("Date"), At = P("File"), Tt = P("Blob"), Ct = P("FileList"), Nt = (e) =>
|
|
33
|
+
}, Ot = P("Date"), At = P("File"), Tt = P("Blob"), Ct = P("FileList"), Nt = (e) => v(e) && A(e.pipe), xt = (e) => {
|
|
34
34
|
let t;
|
|
35
35
|
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = ie(e)) === "formdata" || // detect form-data instance
|
|
36
36
|
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
37
37
|
}, Pt = P("URLSearchParams"), [_t, Ft, Ut, Lt] = ["ReadableStream", "Request", "Response", "Headers"].map(P), Bt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
38
|
-
function
|
|
38
|
+
function W(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
39
39
|
if (e === null || typeof e > "u")
|
|
40
40
|
return;
|
|
41
41
|
let r, s;
|
|
@@ -69,11 +69,11 @@ function me() {
|
|
|
69
69
|
ee(n[o]) && ee(s) ? n[o] = me(n[o], s) : ee(s) ? n[o] = me({}, s) : M(s) ? n[o] = s.slice() : (!t || !H(s)) && (n[o] = s);
|
|
70
70
|
};
|
|
71
71
|
for (let s = 0, i = arguments.length; s < i; s++)
|
|
72
|
-
arguments[s] &&
|
|
72
|
+
arguments[s] && W(arguments[s], r);
|
|
73
73
|
return n;
|
|
74
74
|
}
|
|
75
|
-
const Dt = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
76
|
-
n && A(s) ? e[i] =
|
|
75
|
+
const Dt = (e, t, n, { allOwnKeys: r } = {}) => (W(t, (s, i) => {
|
|
76
|
+
n && A(s) ? e[i] = ve(s, n) : e[i] = s;
|
|
77
77
|
}, { allOwnKeys: r }), e), kt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), jt = (e, t, n, r) => {
|
|
78
78
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
79
79
|
value: t.prototype
|
|
@@ -121,11 +121,11 @@ const Dt = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, i) => {
|
|
|
121
121
|
}
|
|
122
122
|
), _e = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Kt = P("RegExp"), Ye = (e, t) => {
|
|
123
123
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
124
|
-
|
|
124
|
+
W(n, (s, i) => {
|
|
125
125
|
let o;
|
|
126
126
|
(o = t(s, i, e)) !== !1 && (r[i] = o || s);
|
|
127
127
|
}), Object.defineProperties(e, r);
|
|
128
|
-
},
|
|
128
|
+
}, vt = (e) => {
|
|
129
129
|
Ye(e, (t, n) => {
|
|
130
130
|
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
131
131
|
return !1;
|
|
@@ -140,7 +140,7 @@ const Dt = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, i) => {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
|
-
},
|
|
143
|
+
}, Wt = (e, t) => {
|
|
144
144
|
const n = {}, r = (s) => {
|
|
145
145
|
s.forEach((i) => {
|
|
146
146
|
n[i] = !0;
|
|
@@ -150,11 +150,11 @@ const Dt = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, i) => {
|
|
|
150
150
|
}, Xt = () => {
|
|
151
151
|
}, Gt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
152
152
|
function Qt(e) {
|
|
153
|
-
return !!(e && A(e.append) && e[
|
|
153
|
+
return !!(e && A(e.append) && e[We] === "FormData" && e[oe]);
|
|
154
154
|
}
|
|
155
155
|
const Zt = (e) => {
|
|
156
156
|
const t = new Array(10), n = (r, s) => {
|
|
157
|
-
if (
|
|
157
|
+
if (v(r)) {
|
|
158
158
|
if (t.indexOf(r) >= 0)
|
|
159
159
|
return;
|
|
160
160
|
if (K(r))
|
|
@@ -162,7 +162,7 @@ const Zt = (e) => {
|
|
|
162
162
|
if (!("toJSON" in r)) {
|
|
163
163
|
t[s] = r;
|
|
164
164
|
const i = M(r) ? [] : {};
|
|
165
|
-
return
|
|
165
|
+
return W(r, (o, c) => {
|
|
166
166
|
const d = n(o, s + 1);
|
|
167
167
|
!H(d) && (i[c] = d);
|
|
168
168
|
}), t[s] = void 0, i;
|
|
@@ -171,7 +171,7 @@ const Zt = (e) => {
|
|
|
171
171
|
return r;
|
|
172
172
|
};
|
|
173
173
|
return n(e, 0);
|
|
174
|
-
}, Yt = P("AsyncFunction"), en = (e) => e && (
|
|
174
|
+
}, Yt = P("AsyncFunction"), en = (e) => e && (v(e) || A(e)) && A(e.then) && A(e.catch), et = ((e, t) => e ? setImmediate : t ? ((n, r) => (k.addEventListener("message", ({ source: s, data: i }) => {
|
|
175
175
|
s === k && i === n && r.length && r.shift()();
|
|
176
176
|
}, !1), (s) => {
|
|
177
177
|
r.push(s), k.postMessage(n, "*");
|
|
@@ -187,7 +187,7 @@ const Zt = (e) => {
|
|
|
187
187
|
isString: St,
|
|
188
188
|
isNumber: Ge,
|
|
189
189
|
isBoolean: gt,
|
|
190
|
-
isObject:
|
|
190
|
+
isObject: v,
|
|
191
191
|
isPlainObject: ee,
|
|
192
192
|
isEmptyObject: Rt,
|
|
193
193
|
isReadableStream: _t,
|
|
@@ -204,7 +204,7 @@ const Zt = (e) => {
|
|
|
204
204
|
isURLSearchParams: Pt,
|
|
205
205
|
isTypedArray: Mt,
|
|
206
206
|
isFileList: Ct,
|
|
207
|
-
forEach:
|
|
207
|
+
forEach: W,
|
|
208
208
|
merge: me,
|
|
209
209
|
extend: Dt,
|
|
210
210
|
trim: Bt,
|
|
@@ -222,8 +222,8 @@ const Zt = (e) => {
|
|
|
222
222
|
hasOwnProp: _e,
|
|
223
223
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
224
224
|
reduceDescriptors: Ye,
|
|
225
|
-
freezeMethods:
|
|
226
|
-
toObjectSet:
|
|
225
|
+
freezeMethods: vt,
|
|
226
|
+
toObjectSet: Wt,
|
|
227
227
|
toCamelCase: Vt,
|
|
228
228
|
noop: Xt,
|
|
229
229
|
toFiniteNumber: Gt,
|
|
@@ -1648,7 +1648,7 @@ function Kn(e) {
|
|
|
1648
1648
|
return e.apply(null, n);
|
|
1649
1649
|
};
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1651
|
+
function vn(e) {
|
|
1652
1652
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1653
1653
|
}
|
|
1654
1654
|
const we = {
|
|
@@ -1726,7 +1726,7 @@ Object.entries(we).forEach(([e, t]) => {
|
|
|
1726
1726
|
we[t] = e;
|
|
1727
1727
|
});
|
|
1728
1728
|
function yt(e) {
|
|
1729
|
-
const t = new j(e), n =
|
|
1729
|
+
const t = new j(e), n = ve(j.prototype.request, t);
|
|
1730
1730
|
return a.extend(n, j.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1731
1731
|
return yt(I(e, s));
|
|
1732
1732
|
}, n;
|
|
@@ -1744,7 +1744,7 @@ w.all = function(t) {
|
|
|
1744
1744
|
return Promise.all(t);
|
|
1745
1745
|
};
|
|
1746
1746
|
w.spread = Kn;
|
|
1747
|
-
w.isAxiosError =
|
|
1747
|
+
w.isAxiosError = vn;
|
|
1748
1748
|
w.mergeConfig = I;
|
|
1749
1749
|
w.AxiosHeaders = T;
|
|
1750
1750
|
w.formToJSON = (e) => at(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
@@ -1776,7 +1776,7 @@ let re = {
|
|
|
1776
1776
|
};
|
|
1777
1777
|
async function hr() {
|
|
1778
1778
|
const e = Ke().currentCountry.value, { data: t } = await w.get(
|
|
1779
|
-
"https://country-config.feedmeapi.com",
|
|
1779
|
+
"https://country-config-dev.feedmeapi.com",
|
|
1780
1780
|
{
|
|
1781
1781
|
params: { country: e ?? "MY" }
|
|
1782
1782
|
}
|
|
@@ -1796,7 +1796,7 @@ function V(e) {
|
|
|
1796
1796
|
(n) => Promise.reject(n)
|
|
1797
1797
|
), t;
|
|
1798
1798
|
}
|
|
1799
|
-
class
|
|
1799
|
+
class Wn {
|
|
1800
1800
|
async Get(t, n, r) {
|
|
1801
1801
|
return await V(t).get(n, r);
|
|
1802
1802
|
}
|
|
@@ -1813,7 +1813,7 @@ class vn {
|
|
|
1813
1813
|
return await V(t).head(n, r);
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
|
-
const mr = () => re, yr = new
|
|
1816
|
+
const mr = () => re, yr = new Wn();
|
|
1817
1817
|
export {
|
|
1818
1818
|
Yn as A,
|
|
1819
1819
|
yr as H,
|