@feedmepos/mf-brand-app-builder 0.5.31-dev.2 → 0.5.31-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-es2MsXs2.js → App-D0eVHajg.js} +7 -7
- package/dist/{AssetsSettings-DhprCc4v.js → AssetsSettings-DJOCXmyp.js} +18 -18
- package/dist/{BrandkitView-DL-Xa9Ib.js → BrandkitView-DTEROqlE.js} +5 -5
- package/dist/{BuilderView-DTY6pVRY.js → BuilderView-Bn4A6u9s.js} +7 -7
- package/dist/{ImageUpload-Dqd5oGI2.js → ImageUpload-Br7jYH_i.js} +8 -8
- package/dist/{LinkButton-De-YNclu.js → LinkButton-DNXBKGCn.js} +1 -1
- package/dist/{ListRepeater-MVsXznzw.js → ListRepeater-DBZO7ium.js} +1 -1
- package/dist/{ManagementSettings-CueLn4v_.js → ManagementSettings-DHh2g_XJ.js} +6 -6
- package/dist/{ProjectView-ByxaVBFb.js → ProjectView-DKXRpIC6.js} +1 -1
- package/dist/{app-DhE9tk6x.js → app-BFlTXtjY.js} +9 -9
- package/dist/app.js +1 -1
- package/dist/{image-D_Djf1PS.js → image-S7-2rbQS.js} +7 -7
- package/dist/index-BUEKCOG0.js +112 -0
- package/dist/{index-D0LOMBBD.js → index-C6_vWPi0.js} +27 -27
- package/dist/{index-Bk6TOZrx.js → index-CPs0rWCO.js} +15 -15
- package/dist/{index-C1rSMuKA.js → index-CawZ03Z8.js} +1 -1
- package/dist/{main-ynjxR98q.js → main-CenEkQQC.js} +3 -3
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/index-C4vwWvn_.js +0 -112
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as at, resolveComponent as ne, createElementBlock as P, openBlock as L, createElementVNode as u, createVNode as x, createCommentVNode as X, withCtx as Ee, unref as f, normalizeStyle as _r, toDisplayString as b, ref as ee, shallowRef as Wn, onMounted as ln, onBeforeUnmount as jn, withDirectives as Ur, normalizeClass as un, vShow as Er, markRaw as da, nextTick as qn, watch as ct, createBlock as Ue, renderSlot as Xn, Fragment as $e, renderList as gt, computed as te, Teleport as Yn, Transition as dn, withKeys as Zn, createTextVNode as ca } from "vue";
|
|
2
|
-
import { B as ar } from "./index-
|
|
2
|
+
import { B as ar } from "./index-BUEKCOG0.js";
|
|
3
3
|
import { B as Jn } from "./ColorPicker-RKWzhLBO.js";
|
|
4
|
-
import { u as Kn } from "./index-
|
|
4
|
+
import { u as Kn } from "./index-CawZ03Z8.js";
|
|
5
5
|
import { useCoreStore as Mr, useI18n as Nr, RestaurantSelector as Qn } from "@feedmepos/mf-common";
|
|
6
6
|
import { u as eo, b as q } from "./brandkit-C8uulbNE.js";
|
|
7
7
|
import { useDialogChild as to, useDialog as Gr, useSnackbar as Hr } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as $r } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
import { d as ro } from "./dayjs.min-DnbY0e60.js";
|
|
10
|
-
import { I as pa, r as va } from "./image-
|
|
10
|
+
import { I as pa, r as va } from "./image-S7-2rbQS.js";
|
|
11
11
|
import { u as ao } from "./useBusinessFeatureFlag-rGPsfDu1.js";
|
|
12
12
|
import { v as fa } from "./v4-CKwdnpQf.js";
|
|
13
13
|
const no = { class: "fm-typo-en-body-md-400" }, oo = { class: "flex gap-8 items-center" }, so = { class: "p-4 relative" }, io = { class: "shadow-lg rounded-lg p-8" }, lo = {
|
|
@@ -9249,7 +9249,7 @@ const Ku = { class: "json-editor" }, Qu = ["title"], ed = { class: "error-text"
|
|
|
9249
9249
|
ae,
|
|
9250
9250
|
_
|
|
9251
9251
|
), Be = va(
|
|
9252
|
-
`https://image.
|
|
9252
|
+
`https://image.feedme.cc/business/${n.currentBusiness.value._id}/${Se.imagePath}`
|
|
9253
9253
|
);
|
|
9254
9254
|
E(), i.value.layout.background = {
|
|
9255
9255
|
url: Be,
|
|
@@ -9299,7 +9299,7 @@ const Ku = { class: "json-editor" }, Qu = ["title"], ed = { class: "error-text"
|
|
|
9299
9299
|
Se,
|
|
9300
9300
|
_
|
|
9301
9301
|
), _e = va(
|
|
9302
|
-
`https://image.
|
|
9302
|
+
`https://image.feedme.cc/business/${n.currentBusiness.value._id}/${Be.imagePath}`
|
|
9303
9303
|
);
|
|
9304
9304
|
E(), i.value.layout.sidePanel = {
|
|
9305
9305
|
url: _e,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { resolveComponent as V, TransitionGroup as qn, defineComponent as se, nextTick as rn, h as ma, isRef as Qn, isReactive as eo, isProxy as to, toRaw as ao, ref as q, computed as ie, createElementBlock as Z, openBlock as N, Fragment as Le, renderList as vt, createElementVNode as I, createVNode as w, createBlock as ae, createCommentVNode as Q, toDisplayString as j, unref as v, withCtx as M, normalizeClass as ye, watch as tt, withDirectives as Gt, withModifiers as ba, vShow as Xt, createTextVNode as no, onMounted as ln, resolveDynamicComponent as Ma, mergeProps as oo, normalizeProps as ro, guardReactiveProps as io, normalizeStyle as lo, renderSlot as wa, provide as so, inject as co, markRaw as uo } from "vue";
|
|
2
|
-
import { T as po, u as Ge } from "./index-
|
|
2
|
+
import { T as po, u as Ge } from "./index-CPs0rWCO.js";
|
|
3
3
|
import { defineStore as mo, storeToRefs as bo } from "pinia";
|
|
4
4
|
import { p as fo } from "./views-BDWw3w14.js";
|
|
5
|
-
import { A as go } from "./index-
|
|
5
|
+
import { A as go } from "./index-C6_vWPi0.js";
|
|
6
6
|
import { v as Ra } from "./v4-CKwdnpQf.js";
|
|
7
7
|
import { _ as ho } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
|
|
8
8
|
import { B as sn } from "./BaDivider-Cp9gfB4r.js";
|
|
9
9
|
import { useI18n as Ze, useCoreStore as We } from "@feedmepos/mf-common";
|
|
10
|
-
import { C as $a, _ as yo, a as vo } from "./main-
|
|
10
|
+
import { C as $a, _ as yo, a as vo } from "./main-CenEkQQC.js";
|
|
11
11
|
import { useDialog as To, components as xo, useSnackbar as Co } from "@feedmepos/ui-library";
|
|
12
12
|
import { useRouter as dn } from "vue-router";
|
|
13
13
|
import { u as Ia, a as _o, b as wo } from "./brandkit-C8uulbNE.js";
|
|
14
|
-
import { u as Ea } from "./index-
|
|
14
|
+
import { u as Ea } from "./index-CawZ03Z8.js";
|
|
15
15
|
import { K as Io, V as Eo } from "./vue-sonner-CBFYmm8_.js";
|
|
16
|
-
import { F as So, a as Ao } from "./app-
|
|
16
|
+
import { F as So, a as Ao } from "./app-BFlTXtjY.js";
|
|
17
17
|
/**!
|
|
18
18
|
* Sortable 1.14.0
|
|
19
19
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -6605,7 +6605,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
|
|
|
6605
6605
|
}
|
|
6606
6606
|
async function g() {
|
|
6607
6607
|
var y;
|
|
6608
|
-
const f = `${"https://{slug}.
|
|
6608
|
+
const f = `${"https://{slug}.feedme.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((y = r.currentBusiness.value) == null ? void 0 : y.id)}`)}`;
|
|
6609
6609
|
l.promise(
|
|
6610
6610
|
async () => {
|
|
6611
6611
|
var x;
|
|
@@ -8171,7 +8171,7 @@ _t.toString = Oa.bind(null, function(t, e, a) {
|
|
|
8171
8171
|
const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full flex gap-8 justify-end items-center" }, _l = /* @__PURE__ */ se({
|
|
8172
8172
|
__name: "PreviewQrCode",
|
|
8173
8173
|
setup(t) {
|
|
8174
|
-
const e = q(), a = We(), n = Ge(), { t: o } = Ze(), r = q(!1), l = ie(() => `${`${"https://{slug}.
|
|
8174
|
+
const e = q(), a = We(), n = Ge(), { t: o } = Ze(), r = q(!1), l = ie(() => `${`${"https://{slug}.feedme.vip".replace("{slug}", `${a.currentBusiness.value.url ?? a.currentBusiness.value._id}`)}`}/preview/${n.state.selectedTemplate.templateId}`);
|
|
8175
8175
|
function i() {
|
|
8176
8176
|
Io.promise(navigator.clipboard.writeText(l.value), {
|
|
8177
8177
|
loading: o("brand.template.shareMenu.copying"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as y, ref as b, resolveComponent as w, createElementBlock as r, openBlock as s, createVNode as c, createCommentVNode as
|
|
2
|
-
import { r as g, I as h } from "./image-
|
|
1
|
+
import { defineComponent as y, ref as b, resolveComponent as w, createElementBlock as r, openBlock as s, createVNode as c, createCommentVNode as d, Fragment as C, createElementVNode as i, unref as u } from "vue";
|
|
2
|
+
import { r as g, I as h } from "./image-S7-2rbQS.js";
|
|
3
3
|
import { useCoreStore as I } from "@feedmepos/mf-common";
|
|
4
|
-
import "./main-
|
|
4
|
+
import "./main-CenEkQQC.js";
|
|
5
5
|
import { _ as $ } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
|
|
6
6
|
import { C as k } from "./CircularProgress-DdblYCtV.js";
|
|
7
7
|
import { v as F } from "./v4-CKwdnpQf.js";
|
|
@@ -22,12 +22,12 @@ const B = { class: "w-full h-[210px] relative" }, P = { class: "absolute z-[1] t
|
|
|
22
22
|
o
|
|
23
23
|
).then((m) => {
|
|
24
24
|
var p;
|
|
25
|
-
const l = `https://image.
|
|
25
|
+
const l = `https://image.feedme.cc/business/${a.currentBusiness.value._id}/${m.imagePath}`;
|
|
26
26
|
e.context.node.input(l);
|
|
27
27
|
const n = new Image();
|
|
28
28
|
(p = e.context) != null && p.ignoreUpdate || (n.onload = () => {
|
|
29
|
-
var
|
|
30
|
-
((
|
|
29
|
+
var f;
|
|
30
|
+
((f = e.context.node.at("$root")) == null ? void 0 : f._value).containerStyles.height = `${Math.min(n.height, 400)}px`;
|
|
31
31
|
}), n.src = g(l);
|
|
32
32
|
}).finally(() => t.value = !1);
|
|
33
33
|
}
|
|
@@ -60,10 +60,10 @@ const B = { class: "w-full h-[210px] relative" }, P = { class: "absolute z-[1] t
|
|
|
60
60
|
class: "!text-[16px] text-fm-color-typo-white"
|
|
61
61
|
})
|
|
62
62
|
])
|
|
63
|
-
], 64)) :
|
|
63
|
+
], 64)) : d("", !0),
|
|
64
64
|
t.value ? (s(), r("div", z, [
|
|
65
65
|
c(u(k))
|
|
66
|
-
])) :
|
|
66
|
+
])) : d("", !0)
|
|
67
67
|
]);
|
|
68
68
|
};
|
|
69
69
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as I, ref as f, computed as k, onBeforeMount as L, resolveComponent as c, createBlock as v, openBlock as u, withCtx as m, createElementVNode as a, createVNode as r, createElementBlock as x, Fragment as M, renderList as F, toDisplayString as P, withModifiers as R } from "vue";
|
|
2
2
|
import { B as y } from "./BaDivider-Cp9gfB4r.js";
|
|
3
3
|
import { _ as W } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
|
|
4
|
-
import { u as $ } from "./index-
|
|
4
|
+
import { u as $ } from "./index-CPs0rWCO.js";
|
|
5
5
|
import "@feedmepos/mf-common";
|
|
6
6
|
const j = {
|
|
7
7
|
key: 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, resolveComponent as y, createBlock as s, openBlock as c, unref as u, withCtx as i, createElementBlock as m, Fragment as x, renderList as g, createElementVNode as p, createVNode as n, resolveDynamicComponent as F } from "vue";
|
|
2
|
-
import { F as f } from "./app-
|
|
2
|
+
import { F as f } from "./app-BFlTXtjY.js";
|
|
3
3
|
const h = { class: "flex justify-end gap-4 items-center w-full py-16 px-12 border-b" }, z = { class: "flex flex-col gap-4 w-full p-12" }, I = /* @__PURE__ */ b({
|
|
4
4
|
__name: "ListRepeater",
|
|
5
5
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as C, ref as y, computed as S, watch as $, resolveComponent as d, createElementBlock as k, openBlock as g, createElementVNode as o, createVNode as u, toDisplayString as _, unref as i, createBlock as F, withCtx as U } from "vue";
|
|
2
2
|
import { useCoreStore as P, useI18n as V } from "@feedmepos/mf-common";
|
|
3
|
-
import { B as h } from "./index-
|
|
3
|
+
import { B as h } from "./index-BUEKCOG0.js";
|
|
4
4
|
import { K as q } from "./vue-sonner-CBFYmm8_.js";
|
|
5
|
-
import { r as I, I as T } from "./image-
|
|
5
|
+
import { r as I, I as T } from "./image-S7-2rbQS.js";
|
|
6
6
|
import { useSnackbar as A } from "@feedmepos/ui-library";
|
|
7
7
|
const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
|
|
8
8
|
"brand",
|
|
@@ -510,12 +510,12 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
|
|
|
510
510
|
url: "",
|
|
511
511
|
thumbnail: ""
|
|
512
512
|
}), x = S(
|
|
513
|
-
() => "https://{slug}.
|
|
513
|
+
() => "https://{slug}.feedme.vip".replace("https://{slug}", "")
|
|
514
514
|
);
|
|
515
515
|
function B() {
|
|
516
516
|
var t, e;
|
|
517
517
|
navigator.clipboard.writeText(
|
|
518
|
-
"https://{slug}.
|
|
518
|
+
"https://{slug}.feedme.vip".replace(
|
|
519
519
|
"{slug}",
|
|
520
520
|
((t = s.currentBusiness.value) == null ? void 0 : t.url) ?? ((e = s.currentBusiness.value) == null ? void 0 : e._id)
|
|
521
521
|
)
|
|
@@ -574,9 +574,9 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
|
|
|
574
574
|
await h.updateBusinessProfile(s.currentBusiness.value._id, {
|
|
575
575
|
name: a.value.name,
|
|
576
576
|
url: a.value.url,
|
|
577
|
-
thumbnail: `https://image.
|
|
577
|
+
thumbnail: `https://image.feedme.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`,
|
|
578
578
|
coverPhoto: s.currentBusiness.value.coverPhoto
|
|
579
|
-
}), a.value.thumbnail = `https://image.
|
|
579
|
+
}), a.value.thumbnail = `https://image.feedme.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`;
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
return $(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, createElementBlock as D, openBlock as I, normalizeClass as m, createElementVNode as E, toDisplayString as C, ref as x, computed as J, watch as K, resolveComponent as l, unref as h, Fragment as v, renderList as W, createVNode as B, createCommentVNode as s, createBlock as r, withCtx as P, h as L } from "vue";
|
|
2
|
-
import { u as Z } from "./index-
|
|
2
|
+
import { u as Z } from "./index-CPs0rWCO.js";
|
|
3
3
|
import { useCoreStore as q, useI18n as X } from "@feedmepos/mf-common";
|
|
4
4
|
import { p as y } from "./views-BDWw3w14.js";
|
|
5
5
|
import { useRouter as b } from "vue-router";
|
|
@@ -7879,12 +7879,12 @@ const wn = {
|
|
|
7879
7879
|
{
|
|
7880
7880
|
path: "/",
|
|
7881
7881
|
name: "brandkit",
|
|
7882
|
-
component: H(() => import("./BrandkitView-
|
|
7882
|
+
component: H(() => import("./BrandkitView-DTEROqlE.js"))
|
|
7883
7883
|
},
|
|
7884
7884
|
{
|
|
7885
7885
|
path: "/projects",
|
|
7886
7886
|
name: "projects",
|
|
7887
|
-
component: H(() => import("./ProjectView-
|
|
7887
|
+
component: H(() => import("./ProjectView-DKXRpIC6.js"))
|
|
7888
7888
|
},
|
|
7889
7889
|
{
|
|
7890
7890
|
path: "/builder",
|
|
@@ -7894,7 +7894,7 @@ const wn = {
|
|
|
7894
7894
|
path: ":templateId(.*)*",
|
|
7895
7895
|
name: "builder",
|
|
7896
7896
|
component: H(
|
|
7897
|
-
() => import("./BuilderView-
|
|
7897
|
+
() => import("./BuilderView-Bn4A6u9s.js")
|
|
7898
7898
|
)
|
|
7899
7899
|
}
|
|
7900
7900
|
]
|
|
@@ -7909,14 +7909,14 @@ const wn = {
|
|
|
7909
7909
|
path: "assets",
|
|
7910
7910
|
name: "settings-assets",
|
|
7911
7911
|
component: H(
|
|
7912
|
-
() => import("./AssetsSettings-
|
|
7912
|
+
() => import("./AssetsSettings-DJOCXmyp.js")
|
|
7913
7913
|
)
|
|
7914
7914
|
},
|
|
7915
7915
|
{
|
|
7916
7916
|
path: "management",
|
|
7917
7917
|
name: "settings-management",
|
|
7918
7918
|
component: H(
|
|
7919
|
-
() => import("./ManagementSettings-
|
|
7919
|
+
() => import("./ManagementSettings-DHh2g_XJ.js")
|
|
7920
7920
|
)
|
|
7921
7921
|
}
|
|
7922
7922
|
]
|
|
@@ -12595,7 +12595,7 @@ const Pc = (e) => {
|
|
|
12595
12595
|
),
|
|
12596
12596
|
BaListRepeater: K(
|
|
12597
12597
|
H(
|
|
12598
|
-
() => import("./ListRepeater-
|
|
12598
|
+
() => import("./ListRepeater-DBZO7ium.js")
|
|
12599
12599
|
)
|
|
12600
12600
|
),
|
|
12601
12601
|
BaTextStyleList: K(
|
|
@@ -12615,13 +12615,13 @@ const Pc = (e) => {
|
|
|
12615
12615
|
),
|
|
12616
12616
|
BaImageUpload: K(
|
|
12617
12617
|
H(
|
|
12618
|
-
() => import("./ImageUpload-
|
|
12618
|
+
() => import("./ImageUpload-Br7jYH_i.js")
|
|
12619
12619
|
),
|
|
12620
12620
|
{ props: ["ignoreUpdate"] }
|
|
12621
12621
|
),
|
|
12622
12622
|
BaLinkButton: K(
|
|
12623
12623
|
H(
|
|
12624
|
-
() => import("./LinkButton-
|
|
12624
|
+
() => import("./LinkButton-DNXBKGCn.js")
|
|
12625
12625
|
)
|
|
12626
12626
|
),
|
|
12627
12627
|
BaSwitch: K(
|
|
@@ -12643,7 +12643,7 @@ const Pc = (e) => {
|
|
|
12643
12643
|
"th-TH": { ...xn, ...yr },
|
|
12644
12644
|
"ko-KR": { ...En, ...wr },
|
|
12645
12645
|
"vi-VN": { ...zn, ...Mr }
|
|
12646
|
-
}, $c = H(() => import("./App-
|
|
12646
|
+
}, $c = H(() => import("./App-D0eVHajg.js"));
|
|
12647
12647
|
export {
|
|
12648
12648
|
hn as F,
|
|
12649
12649
|
pn as a,
|
package/dist/app.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as r, a as p } from "./index-
|
|
1
|
+
import { H as r, a as p } from "./index-C6_vWPi0.js";
|
|
2
2
|
const i = () => p().PWA_ICON_SERVICE_BACKEND;
|
|
3
|
-
async function
|
|
3
|
+
async function s(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.feedme.vip",
|
|
7
7
|
`/image/${e}/${t}`,
|
|
8
8
|
{
|
|
9
9
|
headers: {
|
|
@@ -13,9 +13,9 @@ async function d(e, t, a) {
|
|
|
13
13
|
}
|
|
14
14
|
)).data;
|
|
15
15
|
}
|
|
16
|
-
async function
|
|
16
|
+
async function d(e, t) {
|
|
17
17
|
return (await r.Delete(
|
|
18
|
-
"https://api.
|
|
18
|
+
"https://api.feedme.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: s,
|
|
33
|
+
deleteImage: d,
|
|
34
34
|
uploadAppIcon: o
|
|
35
35
|
};
|
|
36
36
|
function u(e) {
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { H as e, a as i } from "./index-C6_vWPi0.js";
|
|
2
|
+
const o = () => i().PORTAL_V2_BACKEND, p = () => i().LICENSE_BACKEND;
|
|
3
|
+
async function c(t) {
|
|
4
|
+
return (await e.Get(
|
|
5
|
+
"https://api.feedme.vip",
|
|
6
|
+
`/short-url/${t}`
|
|
7
|
+
)).data;
|
|
8
|
+
}
|
|
9
|
+
async function d(t, a, s) {
|
|
10
|
+
return await e.Post(
|
|
11
|
+
"https://api.feedme.vip",
|
|
12
|
+
"/short-url",
|
|
13
|
+
{
|
|
14
|
+
data: {
|
|
15
|
+
slug: t,
|
|
16
|
+
oldSlug: a,
|
|
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 u(t) {
|
|
27
|
+
return (await e.Get(
|
|
28
|
+
"https://api.feedme.vip",
|
|
29
|
+
`/metadata/${t}/config`
|
|
30
|
+
)).data;
|
|
31
|
+
}
|
|
32
|
+
async function f(t, a, s) {
|
|
33
|
+
return (await e.Post(
|
|
34
|
+
"https://api.feedme.vip",
|
|
35
|
+
`/metadata/${t}/config`,
|
|
36
|
+
{
|
|
37
|
+
data: {
|
|
38
|
+
name: a,
|
|
39
|
+
backgroundColor: "#ffffff",
|
|
40
|
+
country: s
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
)).data;
|
|
44
|
+
}
|
|
45
|
+
async function m(t) {
|
|
46
|
+
return (await e.Get(
|
|
47
|
+
"https://api.feedme.vip",
|
|
48
|
+
`/metadata/${t}/brandkit`
|
|
49
|
+
)).data;
|
|
50
|
+
}
|
|
51
|
+
async function h(t, a) {
|
|
52
|
+
return (await e.Post(
|
|
53
|
+
"https://api.feedme.vip",
|
|
54
|
+
`/metadata/${t}/brandkit`,
|
|
55
|
+
{
|
|
56
|
+
data: a
|
|
57
|
+
}
|
|
58
|
+
)).data;
|
|
59
|
+
}
|
|
60
|
+
async function l(t, a) {
|
|
61
|
+
return (await e.Get(
|
|
62
|
+
"https://api.feedme.vip",
|
|
63
|
+
`/metadata/${t}/brandkit/template-history/${a}`
|
|
64
|
+
)).data;
|
|
65
|
+
}
|
|
66
|
+
async function y(t, a, s) {
|
|
67
|
+
return (await e.Post(
|
|
68
|
+
"https://api.feedme.vip",
|
|
69
|
+
`/metadata/${t}/brandkit/template-restore/${a}/${s}`,
|
|
70
|
+
{}
|
|
71
|
+
)).data;
|
|
72
|
+
}
|
|
73
|
+
async function $(t, a) {
|
|
74
|
+
return (await e.Delete(
|
|
75
|
+
"https://api.feedme.vip",
|
|
76
|
+
`/metadata/${t}/brandkit/template-history/${a}`
|
|
77
|
+
)).data;
|
|
78
|
+
}
|
|
79
|
+
async function w(t, a) {
|
|
80
|
+
return await e.Put(
|
|
81
|
+
o(),
|
|
82
|
+
`businesses/${t}/profile`,
|
|
83
|
+
{
|
|
84
|
+
data: a
|
|
85
|
+
}
|
|
86
|
+
).catch((n) => {
|
|
87
|
+
var r;
|
|
88
|
+
throw (r = n.response) == null ? void 0 : r.data;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
async function B(t) {
|
|
92
|
+
return await e.Get(
|
|
93
|
+
p(),
|
|
94
|
+
`api/business/${t}/feature/miniprogram`
|
|
95
|
+
).then((a) => a.data).catch(() => !1);
|
|
96
|
+
}
|
|
97
|
+
const b = {
|
|
98
|
+
getGlobalSlug: c,
|
|
99
|
+
setShortUrl: d,
|
|
100
|
+
getBusinessMetadata: u,
|
|
101
|
+
setBusinessMetadata: f,
|
|
102
|
+
getBusinessBrandkit: m,
|
|
103
|
+
setBusinessBrandkit: h,
|
|
104
|
+
getTemplateHistory: l,
|
|
105
|
+
restoreTemplateVersion: y,
|
|
106
|
+
clearTemplateHistory: $,
|
|
107
|
+
updateBusinessProfile: w,
|
|
108
|
+
getBusinessPremiumStatus: B
|
|
109
|
+
};
|
|
110
|
+
export {
|
|
111
|
+
b as B
|
|
112
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useCoreStore as Ke } from "@feedmepos/mf-common";
|
|
2
|
-
function
|
|
2
|
+
function We(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: ve } = 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"), W = (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) && !(ve in e) && !(oe in e);
|
|
25
25
|
}, Rt = (e) => {
|
|
26
|
-
if (!
|
|
26
|
+
if (!W(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) => W(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 v(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] && v(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 } = {}) => (v(t, (s, i) => {
|
|
76
|
+
n && A(s) ? e[i] = We(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 } = {}) => (W(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
|
+
v(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
|
+
}, Wt = (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 } = {}) => (W(t, (s, i) => {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
|
-
},
|
|
143
|
+
}, vt = (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 } = {}) => (W(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[ve] === "FormData" && e[oe]);
|
|
154
154
|
}
|
|
155
155
|
const Zt = (e) => {
|
|
156
156
|
const t = new Array(10), n = (r, s) => {
|
|
157
|
-
if (
|
|
157
|
+
if (W(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 v(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 && (W(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: W,
|
|
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: v,
|
|
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: Wt,
|
|
226
|
+
toObjectSet: vt,
|
|
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 Wn(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 = We(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 = Wn;
|
|
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
|
|
1779
|
+
"https://country-config.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 vn {
|
|
1800
1800
|
async Get(t, n, r) {
|
|
1801
1801
|
return await V(t).get(n, r);
|
|
1802
1802
|
}
|
|
@@ -1813,7 +1813,7 @@ class Wn {
|
|
|
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 vn();
|
|
1817
1817
|
export {
|
|
1818
1818
|
Yn as A,
|
|
1819
1819
|
yr as H,
|