@feedmepos/mf-brand-app-builder 0.5.9-alpha → 0.5.9
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-U8sahJIH.js → App-B6YcNz9J.js} +6 -6
- package/dist/{AssetsSettings-D8finYBV.js → AssetsSettings-CG15hV7Y.js} +5 -5
- package/dist/{BuilderView-Brp8uyFy.js → BuilderView-_GJnGmPe.js} +5 -5
- package/dist/{ImageUpload-Cs8ZnSyM.js → ImageUpload-Df2pyCji.js} +7 -7
- package/dist/{LinkButton-TbTNur2y.js → LinkButton-DqMFLNq4.js} +1 -1
- package/dist/{ListRepeater-BcmUm6I8.js → ListRepeater-SUfIex8L.js} +1 -1
- package/dist/{ManagementSettings-lcSvu8t3.js → ManagementSettings-CwsjtH_h.js} +5 -5
- package/dist/{app-Bk45Lkrw.js → app-PM5nKaby.js} +7 -7
- package/dist/app.js +1 -1
- package/dist/{image-Cq5_XfQ7.js → image-Dv3xJh0r.js} +8 -8
- package/dist/{index-DBvFv0bu.js → index-BVDQVtXj.js} +18 -18
- package/dist/{index-F85an07L.js → index-DlzxFwsT.js} +13 -13
- package/dist/{index-CJrzNGPX.js → index-xFbv8u2S.js} +59 -59
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as d, computed as
|
|
1
|
+
import { defineComponent as d, computed as h, resolveComponent as u, openBlock as l, createElementBlock as m, Fragment as f, renderList as v, createVNode as n, unref as p, withCtx as _, ref as x, onMounted as b, onBeforeMount as w, watch as y, createElementVNode as i, createBlock as B, createCommentVNode as k } from "vue";
|
|
2
2
|
import { useCoreStore as C } from "@feedmepos/mf-common";
|
|
3
3
|
import { V as F } from "./vue-sonner-PX6Req0V.js";
|
|
4
4
|
import { useRoute as R, RouterLink as S, RouterView as V } from "vue-router";
|
|
5
|
-
import { g as L } from "./index-
|
|
5
|
+
import { g as L } from "./index-xFbv8u2S.js";
|
|
6
6
|
const A = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r border-fm-color-neutral-gray-100 p-[10px] flex flex-col gap-12" }, N = /* @__PURE__ */ d({
|
|
7
7
|
__name: "NavigationSidebar",
|
|
8
|
-
setup(
|
|
8
|
+
setup(g) {
|
|
9
9
|
const e = R(), r = [
|
|
10
10
|
// {
|
|
11
11
|
// name: 'home',
|
|
@@ -19,7 +19,7 @@ const A = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r bord
|
|
|
19
19
|
name: "settings",
|
|
20
20
|
icon: "settings"
|
|
21
21
|
}
|
|
22
|
-
], a =
|
|
22
|
+
], a = h(
|
|
23
23
|
() => (t) => e.matched.map((s) => s.name).includes(t)
|
|
24
24
|
);
|
|
25
25
|
return (t, s) => {
|
|
@@ -44,14 +44,14 @@ const A = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r bord
|
|
|
44
44
|
}
|
|
45
45
|
}), P = { class: "relative h-[calc(100vh-56px)] w-screen" }, z = { class: "flex w-full h-full" }, G = /* @__PURE__ */ d({
|
|
46
46
|
__name: "App",
|
|
47
|
-
setup(
|
|
47
|
+
setup(g) {
|
|
48
48
|
const e = C(), r = x(!0);
|
|
49
49
|
async function a() {
|
|
50
50
|
var t;
|
|
51
51
|
r.value = !0, (t = e.currentBusiness.value) != null && t._id && (r.value = !1);
|
|
52
52
|
}
|
|
53
53
|
return b(() => {
|
|
54
|
-
console.log("Running v0.5.9
|
|
54
|
+
console.log("Running v0.5.9"), e.hideSidebar.value = !0, L();
|
|
55
55
|
}), w(() => {
|
|
56
56
|
e.hideSidebar.value = !1;
|
|
57
57
|
}), y(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as c, watch as y, resolveComponent as u, openBlock as P, createElementBlock as B, createElementVNode as w, createBlock as h, createCommentVNode as d, createVNode as D, createSlots as b, withCtx as a, Fragment as j, unref as G } from "vue";
|
|
2
|
-
import { B as X } from "./index-
|
|
3
|
-
import { r as Y, I as C } from "./image-
|
|
2
|
+
import { B as X } from "./index-DlzxFwsT.js";
|
|
3
|
+
import { r as Y, I as C } from "./image-Dv3xJh0r.js";
|
|
4
4
|
import { useCoreStore as m } from "@feedmepos/mf-common";
|
|
5
5
|
import { C as N, D as F } from "./CircularProgress-h90pbjU3.js";
|
|
6
6
|
import { K as V } from "./vue-sonner-PX6Req0V.js";
|
|
@@ -46,7 +46,7 @@ const i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAA
|
|
|
46
46
|
name: e.currentBusiness.value.name,
|
|
47
47
|
thumbnail: e.currentBusiness.value.thumbnail,
|
|
48
48
|
url: e.currentBusiness.value.url,
|
|
49
|
-
coverPhoto: `https://image.
|
|
49
|
+
coverPhoto: `https://image.feedmedev.cc/business/${e.currentBusiness.value._id}/${A}?t=${Date.now().toString()}`
|
|
50
50
|
}).then(
|
|
51
51
|
() => {
|
|
52
52
|
var M;
|
|
@@ -59,7 +59,7 @@ const i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAA
|
|
|
59
59
|
e.currentBusiness.value._id,
|
|
60
60
|
r.value
|
|
61
61
|
).then(
|
|
62
|
-
() => g.value = `https://api.
|
|
62
|
+
() => g.value = `https://api.feedmedev.vip/metadata/${e.currentBusiness.value._id}/pwa-512x512.png`
|
|
63
63
|
);
|
|
64
64
|
},
|
|
65
65
|
{
|
|
@@ -77,7 +77,7 @@ const i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAA
|
|
|
77
77
|
e.currentBusiness.value._id
|
|
78
78
|
).then((A) => A.pwaConfig.name).catch(() => ""), f.value = Y(
|
|
79
79
|
((v = e.currentBusiness.value) == null ? void 0 : v.coverPhoto) ?? ""
|
|
80
|
-
), g.value = `https://api.
|
|
80
|
+
), g.value = `https://api.feedmedev.vip/metadata/${e.currentBusiness.value._id}/pwa-512x512.png`);
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
immediate: !0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as Y, TransitionGroup as Fo, defineComponent as ie, h as Qt, nextTick as On, isRef as Po, isReactive as Ao, isProxy as $o, toRaw as Mo, ref as J, openBlock as D, createElementBlock as O, Fragment as Te, renderList as ot, unref as A, createElementVNode as k, toDisplayString as Pe, createVNode as S, withCtx as M, createBlock as te, createCommentVNode as ne, computed as re, withDirectives as At, withModifiers as Zt, vShow as $t, normalizeClass as Ke, watch as en, createTextVNode as Lo, onMounted as Un, normalizeProps as Cn, mergeProps as Ro, resolveDynamicComponent as Oo, guardReactiveProps as Uo, normalizeStyle as Vo, renderSlot as dn, provide as Ho, inject as zo, markRaw as Yo } from "vue";
|
|
2
|
-
import { T as jo, B as Vn, u as rt } from "./index-
|
|
2
|
+
import { T as jo, B as Vn, u as rt } from "./index-BVDQVtXj.js";
|
|
3
3
|
import { defineStore as Hn, storeToRefs as Go } from "pinia";
|
|
4
4
|
import { v as _n } from "./v4-ANoOI1Qw.js";
|
|
5
5
|
import { _ as ke } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
|
|
@@ -7,8 +7,8 @@ import { _ as Wo, a as Xo, C as Ko } from "./main-BUI2Mmvv.js";
|
|
|
7
7
|
import { useCoreStore as Fe } from "@feedmepos/mf-common";
|
|
8
8
|
import { K as se, V as Jo } from "./vue-sonner-PX6Req0V.js";
|
|
9
9
|
import { useDialog as qo, components as Qo } from "@feedmepos/ui-library";
|
|
10
|
-
import { F as Zo, a as er } from "./app-
|
|
11
|
-
import { B as tr } from "./index-
|
|
10
|
+
import { F as Zo, a as er } from "./app-PM5nKaby.js";
|
|
11
|
+
import { B as tr } from "./index-DlzxFwsT.js";
|
|
12
12
|
/**!
|
|
13
13
|
* Sortable 1.14.0
|
|
14
14
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -2649,7 +2649,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2649
2649
|
}
|
|
2650
2650
|
async function g() {
|
|
2651
2651
|
var w;
|
|
2652
|
-
const m = `${"https://{slug}.
|
|
2652
|
+
const m = `${"https://{slug}.feedmedev.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((w = r.currentBusiness.value) == null ? void 0 : w.id)}`)}`;
|
|
2653
2653
|
se.promise(
|
|
2654
2654
|
async () => {
|
|
2655
2655
|
var v;
|
|
@@ -4211,7 +4211,7 @@ lt.toString = yn.bind(null, function(t, e, n) {
|
|
|
4211
4211
|
const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full flex gap-8 justify-end items-center" }, ha = /* @__PURE__ */ ie({
|
|
4212
4212
|
__name: "PreviewQrCode",
|
|
4213
4213
|
setup(t) {
|
|
4214
|
-
const e = J(), n = Fe(), o = rt(), r = J(!1), i = re(() => `${`${"https://{slug}.
|
|
4214
|
+
const e = J(), n = Fe(), o = rt(), r = J(!1), i = re(() => `${`${"https://{slug}.feedmedev.vip".replace("{slug}", `${n.currentBusiness.value.url}`)}`}/preview/${o.state.selectedTemplate.templateId}`);
|
|
4215
4215
|
function a() {
|
|
4216
4216
|
se.promise(navigator.clipboard.writeText(i.value), {
|
|
4217
4217
|
loading: "Copying...",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as x, ref as y, resolveComponent as b, openBlock as r, createElementBlock as s, createVNode as c, Fragment as w, createElementVNode as i, unref as u, createCommentVNode as
|
|
2
|
-
import { r as
|
|
1
|
+
import { defineComponent as x, ref as y, resolveComponent as b, openBlock as r, createElementBlock as s, createVNode as c, Fragment as w, createElementVNode as i, unref as u, createCommentVNode as d } from "vue";
|
|
2
|
+
import { r as f, I as h } from "./image-Dv3xJh0r.js";
|
|
3
3
|
import { useCoreStore as C } from "@feedmepos/mf-common";
|
|
4
4
|
import "./main-BUI2Mmvv.js";
|
|
5
5
|
import { _ as I } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
|
|
@@ -21,13 +21,13 @@ const F = { class: "w-full h-[210px] relative" }, B = { class: "absolute z-[1] t
|
|
|
21
21
|
`${k()}.${o.name.split(".").pop()}`,
|
|
22
22
|
o
|
|
23
23
|
).then((m) => {
|
|
24
|
-
const l = `https://image.
|
|
24
|
+
const l = `https://image.feedmedev.cc/business/${a.currentBusiness.value._id}/${m.imagePath}`;
|
|
25
25
|
e.context.node.input(l);
|
|
26
26
|
const n = new Image();
|
|
27
27
|
n.onload = () => {
|
|
28
28
|
var p;
|
|
29
29
|
((p = e.context.node.at("$root")) == null ? void 0 : p._value).containerStyles.height = `${Math.min(n.height, 400)}px`;
|
|
30
|
-
}, n.src =
|
|
30
|
+
}, n.src = f(l);
|
|
31
31
|
}).finally(() => t.value = !1);
|
|
32
32
|
}
|
|
33
33
|
async function v() {
|
|
@@ -46,7 +46,7 @@ const F = { class: "w-full h-[210px] relative" }, B = { class: "absolute z-[1] t
|
|
|
46
46
|
i("div", B, [
|
|
47
47
|
i("img", {
|
|
48
48
|
class: "w-full h-full object-contain",
|
|
49
|
-
src: u(
|
|
49
|
+
src: u(f)(e.context._value)
|
|
50
50
|
}, null, 8, P)
|
|
51
51
|
]),
|
|
52
52
|
i("button", {
|
|
@@ -59,10 +59,10 @@ const F = { class: "w-full h-[210px] relative" }, B = { class: "absolute z-[1] t
|
|
|
59
59
|
class: "!text-[16px] text-fm-color-typo-white"
|
|
60
60
|
})
|
|
61
61
|
])
|
|
62
|
-
], 64)) :
|
|
62
|
+
], 64)) : d("", !0),
|
|
63
63
|
t.value ? (r(), s("div", j, [
|
|
64
64
|
c(u($))
|
|
65
|
-
])) :
|
|
65
|
+
])) : d("", !0)
|
|
66
66
|
]);
|
|
67
67
|
};
|
|
68
68
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as L, ref as f, computed as k, onBeforeMount as P, resolveComponent as c, openBlock as p, createBlock as v, withCtx as m, createElementBlock as x, createElementVNode as o, toDisplayString as I, createVNode as r, withModifiers as R, Fragment as C, renderList as F } from "vue";
|
|
2
|
-
import { u as $, B as y } from "./index-
|
|
2
|
+
import { u as $, B as y } from "./index-BVDQVtXj.js";
|
|
3
3
|
import { _ as j } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
|
|
4
4
|
import { useCoreStore as z } from "@feedmepos/mf-common";
|
|
5
5
|
const A = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, resolveComponent as y, openBlock as c, createBlock as s, 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-PM5nKaby.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 x, ref as b, computed as B, watch as j, resolveComponent as m, openBlock as p, createElementBlock as w, createElementVNode as r, createVNode as c, unref as l, createBlock as z, withCtx as S, toDisplayString as $ } from "vue";
|
|
2
2
|
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
3
|
-
import { B as g } from "./index-
|
|
3
|
+
import { B as g } from "./index-DlzxFwsT.js";
|
|
4
4
|
import { K as P } from "./vue-sonner-PX6Req0V.js";
|
|
5
|
-
import { r as U, I as V } from "./image-
|
|
5
|
+
import { r as U, I as V } from "./image-Dv3xJh0r.js";
|
|
6
6
|
const q = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), C = [
|
|
7
7
|
"brand",
|
|
8
8
|
"home",
|
|
@@ -509,7 +509,7 @@ const q = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), C = [
|
|
|
509
509
|
url: "",
|
|
510
510
|
thumbnail: ""
|
|
511
511
|
}), y = B(
|
|
512
|
-
() => "https://{slug}.
|
|
512
|
+
() => "https://{slug}.feedmedev.vip".replace("https://{slug}", "")
|
|
513
513
|
);
|
|
514
514
|
function k() {
|
|
515
515
|
P.promise(
|
|
@@ -548,9 +548,9 @@ const q = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), C = [
|
|
|
548
548
|
await g.updateBusinessProfile(s.currentBusiness.value._id, {
|
|
549
549
|
name: a.value.name,
|
|
550
550
|
url: a.value.url,
|
|
551
|
-
thumbnail: `https://image.
|
|
551
|
+
thumbnail: `https://image.feedmedev.cc/business/${s.currentBusiness.value._id}/${u.imagePath}`,
|
|
552
552
|
coverPhoto: s.currentBusiness.value.coverPhoto
|
|
553
|
-
}), a.value.thumbnail = `https://image.
|
|
553
|
+
}), a.value.thumbnail = `https://image.feedmedev.cc/business/${s.currentBusiness.value._id}/${u.imagePath}`;
|
|
554
554
|
});
|
|
555
555
|
}
|
|
556
556
|
return j(
|
|
@@ -8,7 +8,7 @@ const vo = [
|
|
|
8
8
|
{
|
|
9
9
|
path: "/builder",
|
|
10
10
|
name: "builder",
|
|
11
|
-
component: L(() => import("./BuilderView-
|
|
11
|
+
component: L(() => import("./BuilderView-_GJnGmPe.js"))
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
path: "/settings",
|
|
@@ -19,12 +19,12 @@ const vo = [
|
|
|
19
19
|
{
|
|
20
20
|
path: "assets",
|
|
21
21
|
name: "settings-assets",
|
|
22
|
-
component: L(() => import("./AssetsSettings-
|
|
22
|
+
component: L(() => import("./AssetsSettings-CG15hV7Y.js"))
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
path: "management",
|
|
26
26
|
name: "settings-management",
|
|
27
|
-
component: L(() => import("./ManagementSettings-
|
|
27
|
+
component: L(() => import("./ManagementSettings-CwsjtH_h.js"))
|
|
28
28
|
}
|
|
29
29
|
]
|
|
30
30
|
},
|
|
@@ -4669,18 +4669,18 @@ const go = (e) => {
|
|
|
4669
4669
|
BaStepperField: B(L(() => import("./StepperField-DrHM9EDn.js")), { props: ["suffix", "disabled"] }),
|
|
4670
4670
|
BaColorPicker: B(L(() => import("./ColorPicker-DAysa9fA.js"))),
|
|
4671
4671
|
BaSelect: B(L(() => import("./Select-CbQFoAzb.js")), { props: ["selectItems"] }),
|
|
4672
|
-
BaListRepeater: B(L(() => import("./ListRepeater-
|
|
4672
|
+
BaListRepeater: B(L(() => import("./ListRepeater-SUfIex8L.js"))),
|
|
4673
4673
|
BaTextStyleList: B(L(() => import("./TextStyleList-CuPE80Py.js"))),
|
|
4674
4674
|
BaTextAlign: B(L(() => import("./TextAlign-BOC8ekaH.js"))),
|
|
4675
4675
|
BaTextDecorators: B(L(() => import("./TextDecorators-BJC4umDR.js"))),
|
|
4676
|
-
BaImageUpload: B(L(() => import("./ImageUpload-
|
|
4677
|
-
BaLinkButton: B(L(() => import("./LinkButton-
|
|
4676
|
+
BaImageUpload: B(L(() => import("./ImageUpload-Df2pyCji.js"))),
|
|
4677
|
+
BaLinkButton: B(L(() => import("./LinkButton-DqMFLNq4.js"))),
|
|
4678
4678
|
BaSwitch: B(L(() => import("./Switch-8mmNQUDo.js"))),
|
|
4679
4679
|
BaButtonGroup: B(L(() => import("./ButtonGroup-B3ba45VA.js")), { props: ["groupItems"] })
|
|
4680
4680
|
}
|
|
4681
4681
|
})
|
|
4682
4682
|
);
|
|
4683
|
-
}, ho = L(() => import("./App-
|
|
4683
|
+
}, ho = L(() => import("./App-B6YcNz9J.js"));
|
|
4684
4684
|
export {
|
|
4685
4685
|
dn as F,
|
|
4686
4686
|
pn as a,
|
package/dist/app.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as r } from "./index-
|
|
1
|
+
import { H as r } from "./index-xFbv8u2S.js";
|
|
2
2
|
async function p(e, t, a) {
|
|
3
3
|
const n = new FormData();
|
|
4
4
|
return n.append("file", a), (await r.Put(
|
|
5
|
-
"https://api.
|
|
5
|
+
"https://api.feedmedev.vip",
|
|
6
6
|
`/image/${e}/${t}`,
|
|
7
7
|
{
|
|
8
8
|
headers: {
|
|
@@ -12,15 +12,15 @@ async function p(e, t, a) {
|
|
|
12
12
|
}
|
|
13
13
|
)).data;
|
|
14
14
|
}
|
|
15
|
-
async function
|
|
15
|
+
async function d(e, t) {
|
|
16
16
|
return (await r.Delete(
|
|
17
|
-
"https://api.
|
|
17
|
+
"https://api.feedmedev.vip",
|
|
18
18
|
`/image/${e}/${t}`
|
|
19
19
|
)).data;
|
|
20
20
|
}
|
|
21
|
-
async function
|
|
21
|
+
async function i(e, t) {
|
|
22
22
|
const a = new FormData();
|
|
23
|
-
return a.append("file", t), a.append("businessId", e), (await r.Put("https://pwa-icon-service.
|
|
23
|
+
return a.append("file", t), a.append("businessId", e), (await r.Put("https://pwa-icon-service.feedmeapidev.com", "", {
|
|
24
24
|
headers: {
|
|
25
25
|
"Content-Type": "multipart/form-data"
|
|
26
26
|
},
|
|
@@ -29,8 +29,8 @@ async function s(e, t) {
|
|
|
29
29
|
}
|
|
30
30
|
const o = {
|
|
31
31
|
uploadImage: p,
|
|
32
|
-
deleteImage:
|
|
33
|
-
uploadAppIcon:
|
|
32
|
+
deleteImage: d,
|
|
33
|
+
uploadAppIcon: i
|
|
34
34
|
};
|
|
35
35
|
function c(e) {
|
|
36
36
|
return e.replace("images.feedme-dev.workers.dev", "image.feedmedev.vip").replace("image.feedmedev.cc", "image.feedmedev.vip");
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { openBlock as y, createElementBlock as w, ref as $ } from "vue";
|
|
2
2
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { H as m } from "./index-
|
|
3
|
+
import { H as m } from "./index-xFbv8u2S.js";
|
|
4
4
|
import { defineStore as g } from "pinia";
|
|
5
5
|
import { v as A } from "./v4-ANoOI1Qw.js";
|
|
6
6
|
async function _(e) {
|
|
7
7
|
return (await m.Get(
|
|
8
|
-
"https://api.
|
|
8
|
+
"https://api.feedmedev.vip",
|
|
9
9
|
`/template/${e}`
|
|
10
10
|
)).data;
|
|
11
11
|
}
|
|
12
12
|
async function B(e, l, s) {
|
|
13
13
|
return (await m.Get(
|
|
14
|
-
"https://api.
|
|
14
|
+
"https://api.feedmedev.vip",
|
|
15
15
|
`/template/${e}/${l}/${s}`
|
|
16
16
|
)).data;
|
|
17
17
|
}
|
|
18
18
|
async function P(e, l, s, c) {
|
|
19
19
|
return (await m.Put(
|
|
20
|
-
"https://api.
|
|
20
|
+
"https://api.feedmedev.vip",
|
|
21
21
|
`/template/${e}/${l}/${s.templateId}`,
|
|
22
22
|
{
|
|
23
23
|
data: {
|
|
@@ -29,7 +29,7 @@ async function P(e, l, s, c) {
|
|
|
29
29
|
}
|
|
30
30
|
async function b(e, l) {
|
|
31
31
|
return (await m.Put(
|
|
32
|
-
"https://api.
|
|
32
|
+
"https://api.feedmedev.vip",
|
|
33
33
|
`/template/${e}/active`,
|
|
34
34
|
{
|
|
35
35
|
data: {
|
|
@@ -40,19 +40,19 @@ async function b(e, l) {
|
|
|
40
40
|
}
|
|
41
41
|
async function U(e) {
|
|
42
42
|
return (await m.Get(
|
|
43
|
-
"https://api.
|
|
43
|
+
"https://api.feedmedev.vip",
|
|
44
44
|
`/template/${e}/active`
|
|
45
45
|
)).data;
|
|
46
46
|
}
|
|
47
47
|
async function x(e, l, s) {
|
|
48
48
|
return await m.Head(
|
|
49
|
-
"https://api.
|
|
49
|
+
"https://api.feedmedev.vip",
|
|
50
50
|
`/template/${e}/${l}/${s}`
|
|
51
|
-
).then((
|
|
51
|
+
).then((r) => r.status === 200).catch(() => !1);
|
|
52
52
|
}
|
|
53
53
|
async function M(e, l, s) {
|
|
54
54
|
return (await m.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 M(e, l, s) {
|
|
|
63
63
|
}
|
|
64
64
|
async function N(e, l, s) {
|
|
65
65
|
return (await m.Delete(
|
|
66
|
-
"https://api.
|
|
66
|
+
"https://api.feedmedev.vip",
|
|
67
67
|
`/template/${e}/${l}/${s}`
|
|
68
68
|
)).data;
|
|
69
69
|
}
|
|
@@ -103,7 +103,7 @@ const q = /* @__PURE__ */ I(S, [["render", H]]), z = g("template", () => {
|
|
|
103
103
|
async function c(t) {
|
|
104
104
|
e.value.activeTemplateId = await p.getMainTemplateId(t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function r(t) {
|
|
107
107
|
e.value.selectedTemplate = e.value.allTemplates.find(
|
|
108
108
|
(a) => a.templateId === t
|
|
109
109
|
) ?? null;
|
|
@@ -126,10 +126,10 @@ const q = /* @__PURE__ */ I(S, [["render", H]]), z = g("template", () => {
|
|
|
126
126
|
}
|
|
127
127
|
function T() {
|
|
128
128
|
let t = "Untitled", a = 2;
|
|
129
|
-
e.value.allTemplates.forEach((
|
|
130
|
-
if (!
|
|
131
|
-
const n =
|
|
132
|
-
n.length === 1 && n[0] === "Untitled" ? t = "Untitled 2" : n.length === 2 && n[0] === "Untitled" && !isNaN(+n[1]) && (
|
|
129
|
+
e.value.allTemplates.forEach((d) => {
|
|
130
|
+
if (!d.templateAlias.startsWith("Untitled")) return;
|
|
131
|
+
const n = d.templateAlias.split(" ");
|
|
132
|
+
n.length === 1 && n[0] === "Untitled" ? t = "Untitled 2" : n.length === 2 && n[0] === "Untitled" && !isNaN(+n[1]) && (d.templateAlias.startsWith(`Untitled ${a}`) && (a += 1), t = `Untitled ${a}`);
|
|
133
133
|
});
|
|
134
134
|
const i = {
|
|
135
135
|
templateAlias: t,
|
|
@@ -140,12 +140,12 @@ const q = /* @__PURE__ */ I(S, [["render", H]]), z = g("template", () => {
|
|
|
140
140
|
}
|
|
141
141
|
async function f(t, a, i) {
|
|
142
142
|
await p.renameTemplate(t, a, i).then(() => {
|
|
143
|
-
var
|
|
143
|
+
var d;
|
|
144
144
|
e.value.allTemplates = e.value.allTemplates.map((n) => n.templateId === a ? {
|
|
145
145
|
...n,
|
|
146
146
|
templateAlias: i,
|
|
147
147
|
templateId: a
|
|
148
|
-
} : n), ((
|
|
148
|
+
} : n), ((d = e.value.selectedTemplate) == null ? void 0 : d.templateId) === a && (e.value.selectedTemplate.templateAlias = i);
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
async function v(t, a) {
|
|
@@ -172,7 +172,7 @@ const q = /* @__PURE__ */ I(S, [["render", H]]), z = g("template", () => {
|
|
|
172
172
|
getAllTemplates: l,
|
|
173
173
|
publishTemplate: s,
|
|
174
174
|
getMainTemplateId: c,
|
|
175
|
-
setSelectedTemplate:
|
|
175
|
+
setSelectedTemplate: r,
|
|
176
176
|
saveTemplate: u,
|
|
177
177
|
setMainPageTemplate: o,
|
|
178
178
|
addNewTemplate: T,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { H as n, a as o } from "./index-
|
|
1
|
+
import { H as n, a as o } from "./index-xFbv8u2S.js";
|
|
2
2
|
const i = () => o().PORTAL_V2_BACKEND;
|
|
3
3
|
async function c(t) {
|
|
4
4
|
return (await n.Get(
|
|
5
|
-
"https://api.
|
|
5
|
+
"https://api.feedmedev.vip",
|
|
6
6
|
`/short-url/${t}`
|
|
7
7
|
)).data;
|
|
8
8
|
}
|
|
9
|
-
async function
|
|
9
|
+
async function d(t, a, r) {
|
|
10
10
|
return await n.Post(
|
|
11
|
-
"https://api.
|
|
11
|
+
"https://api.feedmedev.vip",
|
|
12
12
|
"/short-url",
|
|
13
13
|
{
|
|
14
14
|
data: {
|
|
@@ -23,15 +23,15 @@ async function p(t, a, r) {
|
|
|
23
23
|
throw (s = e.response) == null ? void 0 : s.data;
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
async function
|
|
26
|
+
async function p(t) {
|
|
27
27
|
return (await n.Get(
|
|
28
|
-
"https://api.
|
|
28
|
+
"https://api.feedmedev.vip",
|
|
29
29
|
`/metadata/${t}/config`
|
|
30
30
|
)).data;
|
|
31
31
|
}
|
|
32
|
-
async function
|
|
32
|
+
async function u(t, a, r) {
|
|
33
33
|
return (await n.Post(
|
|
34
|
-
"https://api.
|
|
34
|
+
"https://api.feedmedev.vip",
|
|
35
35
|
`/metadata/${t}/config`,
|
|
36
36
|
{
|
|
37
37
|
data: {
|
|
@@ -42,7 +42,7 @@ async function f(t, a, r) {
|
|
|
42
42
|
}
|
|
43
43
|
)).data;
|
|
44
44
|
}
|
|
45
|
-
async function
|
|
45
|
+
async function f(t, a) {
|
|
46
46
|
return await n.Put(
|
|
47
47
|
i(),
|
|
48
48
|
`businesses/${t}/profile`,
|
|
@@ -56,10 +56,10 @@ async function d(t, a) {
|
|
|
56
56
|
}
|
|
57
57
|
const m = {
|
|
58
58
|
getGlobalSlug: c,
|
|
59
|
-
setShortUrl:
|
|
60
|
-
getBusinessMetadata:
|
|
61
|
-
setBusinessMetadata:
|
|
62
|
-
updateBusinessProfile:
|
|
59
|
+
setShortUrl: d,
|
|
60
|
+
getBusinessMetadata: p,
|
|
61
|
+
setBusinessMetadata: u,
|
|
62
|
+
updateBusinessProfile: f
|
|
63
63
|
};
|
|
64
64
|
export {
|
|
65
65
|
m as B
|
|
@@ -4,7 +4,7 @@ function Pe(e, t) {
|
|
|
4
4
|
return e.apply(t, arguments);
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
|
-
var _e = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_197de110-b6ed-4985-a64b-cb789afd3dae", npm_package_devDependencies__types_node: "^20.12.5", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_config_user_agent: "pnpm/8.15.9 npm/? node/v20.18.2 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.12", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_197de110-b6ed-4985-a64b-cb789afd3dae", PIPX_HOME: "/opt/pipx", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_package_devDependencies_tsc_alias: "^1.8.10", npm_package_devDependencies_vite: "^5.2.11", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.2/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", GRADLE_HOME: "/usr/share/gradle-8.12.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --build --force", npm_package_dependencies__feedmepos_mf_common: "^1.8.33", npm_package_devDependencies_npm_run_all2: "^6.1.2", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "712", npm_package_dependencies__feedmepos_ui_library: "^1.2.39", npm_package_dependencies_dotenv: "^16.4.5", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev && pnpm build:dts && pnpm build-types && cp package.json ./dist", npm_package_devDependencies_tailwindcss: "^3.4.3", npm_package_devDependencies_typescript: "~5.4.0", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_only_prod: "pnpm build:mf:prod && pnpm build:dts && pnpm build-types && cp package.json ./dist", npm_package_devDependencies_vue_tsc: "^2.0.11", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250209.1.0", npm_package_scripts_dev: "vite --mode dev", npm_package_devDependencies_prettier: "^3.2.5", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_scripts_prod: "vite --mode prod", npm_package_devDependencies__vue_tsconfig: "^0.5.1", npm_package_devDependencies_vite_plugin_vue_devtools: "^7.0.25", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.6/x64", JOURNAL_STREAM: "8:6215", GITHUB_WORKFLOW: "[PROD] Publish Brand App Builder to NPM", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^9.0.8", npm_config_registry: "https://registry.npmjs.org", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13299527931", STATS_VMFE: "true", npm_package_scripts_deploy_npm_dev: "pnpm run build-only:dev && pnpm publish --tag beta --no-git-checks --access public .", npm_package_dependencies_vue_sonner: "^1.1.4", GITHUB_REF_TYPE: "tag", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "5be440a66326e6ab5c4acd62b7aca313a744611d", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_scripts_deploy_npm_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks --access public .", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/brand-app/.github/workflows/brand-app-npm-prod.yml@refs/tags/builder-v0.5.9-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_2d4086f8-de1e-4ef1-9e01-b84fe05e2ae3", INVOCATION_ID: "dd8fef15dbcb409caf46d10713645c93", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.2/x64/bin/node", npm_package_name: "@feedmepos/mf-brand-app-builder", npm_package_dependencies__formkit_vue: "^1.6.7", npm_package_devDependencies__types_qrcode: "^1.5.5", GITHUB_ACTION: "__run_6", GITHUB_RUN_NUMBER: "19", GITHUB_TRIGGERING_ACTOR: "yinhang1107", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^13.0.0", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 305", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "builder-v0.5.9-alpha", GITHUB_REPOSITORY: "feedmepos/brand-app", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && pnpm tsc-resolve", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false && pnpm tsc-resolve", npm_lifecycle_script: "vite build --mode fmmf:prod", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_devDependencies__vue_eslint_config_prettier: "^9.0.0", GITHUB_REPOSITORY_ID: "810874788", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules/vite/bin/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules/vite/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.5.9-alpha", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_devDependencies__rushstack_eslint_patch: "^1.8.0", npm_lifecycle_event: "build:mf:prod", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^9.0.1", GITHUB_WORKSPACE: "/home/runner/work/brand-app/brand-app", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "5be440a66326e6ab5c4acd62b7aca313a744611d", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_scripts_tsc_resolve: "tsc-alias --project tsconfig.app.json --outDir dist", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/tags/builder-v0.5.9-alpha", GITHUB_ACTOR: "yinhang1107", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_scripts_format: "prettier --write src/", npm_package_dependencies__formkit_core: "^1.6.7", npm_package_dependencies_qrcode: "^1.5.4", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_197de110-b6ed-4985-a64b-cb789afd3dae", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/brand-app/brand-app/client/merchant", GITHUB_ACTOR_ID: "75302725", RUNNER_WORKSPACE: "/home/runner/work/brand-app", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_197de110-b6ed-4985-a64b-cb789afd3dae", npm_package_exports___types: "./dist/merchant/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/brand-app/brand-app/client/merchant", npm_package_devDependencies_eslint_plugin_vue: "^9.23.0", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_197de110-b6ed-4985-a64b-cb789afd3dae", INIT_CWD: "/home/runner/work/brand-app/brand-app/client/merchant", NODE_ENV: "production", VITE_MF_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", VITE_IMAGE_URL: "https://image.feedme.cc", VITE_PWA_ICON_SERVICE: "https://pwa-icon-service.feedmeapi.com", VITE_USER_URL: "https://{slug}.feedme.vip", VITE_MEMBER_URL: "https://{slug}.member.feedme.cc", VITE_BACKEND_URL: "https://api.feedme.vip", LAUNCH_EDITOR: "code" } };
|
|
7
|
+
var _e = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6e193435-dad5-4c48-a811-6c2bb1f7948b", npm_package_devDependencies__types_node: "^20.12.5", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_config_user_agent: "pnpm/8.15.9 npm/? node/v20.18.2 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.12", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_6e193435-dad5-4c48-a811-6c2bb1f7948b", PIPX_HOME: "/opt/pipx", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_package_devDependencies_tsc_alias: "^1.8.10", npm_package_devDependencies_vite: "^5.2.11", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.2/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", GRADLE_HOME: "/usr/share/gradle-8.12.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --build --force", npm_package_dependencies__feedmepos_mf_common: "^1.8.33", npm_package_devDependencies_npm_run_all2: "^6.1.2", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "708", npm_package_dependencies__feedmepos_ui_library: "^1.2.39", npm_package_dependencies_dotenv: "^16.4.5", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev && pnpm build:dts && pnpm build-types && cp package.json ./dist", npm_package_devDependencies_tailwindcss: "^3.4.3", npm_package_devDependencies_typescript: "~5.4.0", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_only_prod: "pnpm build:mf:prod && pnpm build:dts && pnpm build-types && cp package.json ./dist", npm_package_devDependencies_vue_tsc: "^2.0.11", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250209.1.0", npm_package_scripts_dev: "vite --mode dev", npm_package_devDependencies_prettier: "^3.2.5", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_scripts_prod: "vite --mode prod", npm_package_devDependencies__vue_tsconfig: "^0.5.1", npm_package_devDependencies_vite_plugin_vue_devtools: "^7.0.25", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.6/x64", JOURNAL_STREAM: "8:5687", GITHUB_WORKFLOW: "[DEV/BETA] Publish Brand App Builder to NPM", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^9.0.8", npm_config_registry: "https://registry.npmjs.org", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13299500814", STATS_VMFE: "true", npm_package_scripts_deploy_npm_dev: "pnpm run build-only:dev && pnpm publish --tag beta --no-git-checks --access public .", npm_package_dependencies_vue_sonner: "^1.1.4", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "a28f13b4c603c0dffdf845c9843f8c2196715412", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_scripts_deploy_npm_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks --access public .", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/brand-app/.github/workflows/brand-app-npm-dev.yml@refs/heads/dev/ba-portal", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_6fa22dd5-a2d9-492a-afe8-52d9946630c2", INVOCATION_ID: "9dff9f67fb0d4d5a8196d9b0a6d48bc1", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.2/x64/bin/node", npm_package_name: "@feedmepos/mf-brand-app-builder", npm_package_dependencies__formkit_vue: "^1.6.7", npm_package_devDependencies__types_qrcode: "^1.5.5", GITHUB_ACTION: "__run_6", GITHUB_RUN_NUMBER: "54", GITHUB_TRIGGERING_ACTOR: "yinhang1107", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^13.0.0", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 376", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev/ba-portal", GITHUB_REPOSITORY: "feedmepos/brand-app", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && pnpm tsc-resolve", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false && pnpm tsc-resolve", npm_lifecycle_script: "vite build --mode fmmf:dev", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_devDependencies__vue_eslint_config_prettier: "^9.0.0", GITHUB_REPOSITORY_ID: "810874788", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules/vite/bin/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules/vite/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.5.9", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_devDependencies__rushstack_eslint_patch: "^1.8.0", npm_lifecycle_event: "build:mf:dev", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^9.0.1", GITHUB_WORKSPACE: "/home/runner/work/brand-app/brand-app", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "a28f13b4c603c0dffdf845c9843f8c2196715412", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_scripts_tsc_resolve: "tsc-alias --project tsconfig.app.json --outDir dist", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/dev/ba-portal", GITHUB_ACTOR: "yinhang1107", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_scripts_format: "prettier --write src/", npm_package_dependencies__formkit_core: "^1.6.7", npm_package_dependencies_qrcode: "^1.5.4", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_6e193435-dad5-4c48-a811-6c2bb1f7948b", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/brand-app/brand-app/client/merchant", GITHUB_ACTOR_ID: "75302725", RUNNER_WORKSPACE: "/home/runner/work/brand-app", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_6e193435-dad5-4c48-a811-6c2bb1f7948b", npm_package_exports___types: "./dist/merchant/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/brand-app/brand-app/client/merchant", npm_package_devDependencies_eslint_plugin_vue: "^9.23.0", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_6e193435-dad5-4c48-a811-6c2bb1f7948b", INIT_CWD: "/home/runner/work/brand-app/brand-app/client/merchant", NODE_ENV: "production", VITE_MF_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", VITE_IMAGE_URL: "https://image.feedmedev.cc", VITE_PWA_ICON_SERVICE: "https://pwa-icon-service.feedmeapidev.com", VITE_USER_URL: "https://{slug}.feedmedev.vip", VITE_MEMBER_URL: "https://{slug}.member.feedmedev.cc", VITE_BACKEND_URL: "https://api.feedmedev.vip", LAUNCH_EDITOR: "code" } };
|
|
8
8
|
const { toString: nt } = Object.prototype, { getPrototypeOf: le } = Object, J = /* @__PURE__ */ ((e) => (t) => {
|
|
9
9
|
const n = nt.call(t);
|
|
10
10
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
@@ -62,11 +62,11 @@ function se() {
|
|
|
62
62
|
}
|
|
63
63
|
const Rt = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (s, o) => {
|
|
64
64
|
n && A(s) ? e[o] = Pe(s, n) : e[o] = s;
|
|
65
|
-
}, { allOwnKeys: r }), e), Tt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e),
|
|
65
|
+
}, { allOwnKeys: r }), e), Tt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), yt = (e, t, n, r) => {
|
|
66
66
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
67
67
|
value: t.prototype
|
|
68
68
|
}), n && Object.assign(e.prototype, n);
|
|
69
|
-
},
|
|
69
|
+
}, gt = (e, t, n, r) => {
|
|
70
70
|
let s, o, i;
|
|
71
71
|
const c = {};
|
|
72
72
|
if (t = t || {}, e == null) return t;
|
|
@@ -136,11 +136,11 @@ const Rt = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (s, o) => {
|
|
|
136
136
|
};
|
|
137
137
|
return x(e) ? r(e) : r(String(e).split(t)), n;
|
|
138
138
|
}, Ct = () => {
|
|
139
|
-
}, Bt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, ee = "abcdefghijklmnopqrstuvwxyz", be = "0123456789",
|
|
139
|
+
}, Bt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, ee = "abcdefghijklmnopqrstuvwxyz", be = "0123456789", ve = {
|
|
140
140
|
DIGIT: be,
|
|
141
141
|
ALPHA: ee,
|
|
142
142
|
ALPHA_DIGIT: ee + ee.toUpperCase() + be
|
|
143
|
-
}, xt = (e = 16, t =
|
|
143
|
+
}, xt = (e = 16, t = ve.ALPHA_DIGIT) => {
|
|
144
144
|
let n = "";
|
|
145
145
|
const { length: r } = t;
|
|
146
146
|
for (; e--; )
|
|
@@ -150,7 +150,7 @@ const Rt = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (s, o) => {
|
|
|
150
150
|
function Lt(e) {
|
|
151
151
|
return !!(e && A(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const vt = (e) => {
|
|
154
154
|
const t = new Array(10), n = (r, s) => {
|
|
155
155
|
if ($(r)) {
|
|
156
156
|
if (t.indexOf(r) >= 0)
|
|
@@ -167,14 +167,14 @@ const Ht = (e) => {
|
|
|
167
167
|
return r;
|
|
168
168
|
};
|
|
169
169
|
return n(e, 0);
|
|
170
|
-
},
|
|
170
|
+
}, Ht = N("AsyncFunction"), Ft = (e) => e && ($(e) || A(e)) && A(e.then) && A(e.catch), He = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: s, data: o }) => {
|
|
171
171
|
s === U && o === n && r.length && r.shift()();
|
|
172
172
|
}, !1), (s) => {
|
|
173
173
|
r.push(s), U.postMessage(n, "*");
|
|
174
174
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
175
175
|
typeof setImmediate == "function",
|
|
176
176
|
A(U.postMessage)
|
|
177
|
-
), Mt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof _e < "u" && _e.nextTick ||
|
|
177
|
+
), Mt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof _e < "u" && _e.nextTick || He, a = {
|
|
178
178
|
isArray: x,
|
|
179
179
|
isArrayBuffer: Ue,
|
|
180
180
|
isBuffer: rt,
|
|
@@ -204,8 +204,8 @@ const Ht = (e) => {
|
|
|
204
204
|
extend: Rt,
|
|
205
205
|
trim: Et,
|
|
206
206
|
stripBOM: Tt,
|
|
207
|
-
inherits:
|
|
208
|
-
toFlatObject:
|
|
207
|
+
inherits: yt,
|
|
208
|
+
toFlatObject: gt,
|
|
209
209
|
kindOf: J,
|
|
210
210
|
kindOfTest: N,
|
|
211
211
|
endsWith: Ot,
|
|
@@ -225,13 +225,13 @@ const Ht = (e) => {
|
|
|
225
225
|
findKey: Be,
|
|
226
226
|
global: U,
|
|
227
227
|
isContextDefined: xe,
|
|
228
|
-
ALPHABET:
|
|
228
|
+
ALPHABET: ve,
|
|
229
229
|
generateString: xt,
|
|
230
230
|
isSpecCompliantForm: Lt,
|
|
231
|
-
toJSONObject:
|
|
232
|
-
isAsyncFn:
|
|
231
|
+
toJSONObject: vt,
|
|
232
|
+
isAsyncFn: Ht,
|
|
233
233
|
isThenable: Ft,
|
|
234
|
-
setImmediate:
|
|
234
|
+
setImmediate: He,
|
|
235
235
|
asap: Mt
|
|
236
236
|
};
|
|
237
237
|
function _(e, t, n, r, s) {
|
|
@@ -329,11 +329,11 @@ function Y(e, t, n) {
|
|
|
329
329
|
if (a.endsWith(h, "{}"))
|
|
330
330
|
h = r ? h : h.slice(0, -2), f = JSON.stringify(f);
|
|
331
331
|
else if (a.isArray(f) && Gt(f) || (a.isFileList(f) || a.endsWith(h, "[]")) && (E = a.toArray(f)))
|
|
332
|
-
return h = je(h), E.forEach(function(
|
|
333
|
-
!(a.isUndefined(
|
|
332
|
+
return h = je(h), E.forEach(function(g, k) {
|
|
333
|
+
!(a.isUndefined(g) || g === null) && t.append(
|
|
334
334
|
// eslint-disable-next-line no-nested-ternary
|
|
335
335
|
i === !0 ? Ee([h], k, o) : i === null ? h : h + "[]",
|
|
336
|
-
u(
|
|
336
|
+
u(g)
|
|
337
337
|
);
|
|
338
338
|
}), !1;
|
|
339
339
|
}
|
|
@@ -348,14 +348,14 @@ function Y(e, t, n) {
|
|
|
348
348
|
if (!a.isUndefined(f)) {
|
|
349
349
|
if (d.indexOf(f) !== -1)
|
|
350
350
|
throw Error("Circular reference detected in " + h.join("."));
|
|
351
|
-
d.push(f), a.forEach(f, function(E,
|
|
351
|
+
d.push(f), a.forEach(f, function(E, y) {
|
|
352
352
|
(!(a.isUndefined(E) || E === null) && s.call(
|
|
353
353
|
t,
|
|
354
354
|
E,
|
|
355
|
-
a.isString(
|
|
355
|
+
a.isString(y) ? y.trim() : y,
|
|
356
356
|
h,
|
|
357
357
|
b
|
|
358
|
-
)) === !0 && T(E, h ? h.concat(
|
|
358
|
+
)) === !0 && T(E, h ? h.concat(y) : [y]);
|
|
359
359
|
}), d.pop();
|
|
360
360
|
}
|
|
361
361
|
}
|
|
@@ -626,8 +626,8 @@ const rn = a.toObjectSet([
|
|
|
626
626
|
`).forEach(function(i) {
|
|
627
627
|
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && rn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
628
628
|
}), t;
|
|
629
|
-
},
|
|
630
|
-
function
|
|
629
|
+
}, ye = Symbol("internals");
|
|
630
|
+
function v(e) {
|
|
631
631
|
return e && String(e).trim().toLowerCase();
|
|
632
632
|
}
|
|
633
633
|
function V(e) {
|
|
@@ -672,7 +672,7 @@ class w {
|
|
|
672
672
|
set(t, n, r) {
|
|
673
673
|
const s = this;
|
|
674
674
|
function o(c, p, u) {
|
|
675
|
-
const l =
|
|
675
|
+
const l = v(p);
|
|
676
676
|
if (!l)
|
|
677
677
|
throw new Error("header name must be a non-empty string");
|
|
678
678
|
const d = a.findKey(s, l);
|
|
@@ -691,7 +691,7 @@ class w {
|
|
|
691
691
|
return this;
|
|
692
692
|
}
|
|
693
693
|
get(t, n) {
|
|
694
|
-
if (t =
|
|
694
|
+
if (t = v(t), t) {
|
|
695
695
|
const r = a.findKey(this, t);
|
|
696
696
|
if (r) {
|
|
697
697
|
const s = this[r];
|
|
@@ -708,7 +708,7 @@ class w {
|
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
710
|
has(t, n) {
|
|
711
|
-
if (t =
|
|
711
|
+
if (t = v(t), t) {
|
|
712
712
|
const r = a.findKey(this, t);
|
|
713
713
|
return !!(r && this[r] !== void 0 && (!n || te(this, this[r], r, n)));
|
|
714
714
|
}
|
|
@@ -718,7 +718,7 @@ class w {
|
|
|
718
718
|
const r = this;
|
|
719
719
|
let s = !1;
|
|
720
720
|
function o(i) {
|
|
721
|
-
if (i =
|
|
721
|
+
if (i = v(i), i) {
|
|
722
722
|
const c = a.findKey(r, i);
|
|
723
723
|
c && (!n || te(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
724
724
|
}
|
|
@@ -773,11 +773,11 @@ class w {
|
|
|
773
773
|
return n.forEach((s) => r.set(s)), r;
|
|
774
774
|
}
|
|
775
775
|
static accessor(t) {
|
|
776
|
-
const r = (this[
|
|
776
|
+
const r = (this[ye] = this[ye] = {
|
|
777
777
|
accessors: {}
|
|
778
778
|
}).accessors, s = this.prototype;
|
|
779
779
|
function o(i) {
|
|
780
|
-
const c =
|
|
780
|
+
const c = v(i);
|
|
781
781
|
r[c] || (un(s, i), r[c] = !0);
|
|
782
782
|
}
|
|
783
783
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
@@ -871,7 +871,7 @@ const z = (e, t, n = 3) => {
|
|
|
871
871
|
};
|
|
872
872
|
e(d);
|
|
873
873
|
}, n);
|
|
874
|
-
},
|
|
874
|
+
}, ge = (e, t) => {
|
|
875
875
|
const n = e != null;
|
|
876
876
|
return [(r) => t[0]({
|
|
877
877
|
lengthComputable: n,
|
|
@@ -1017,13 +1017,13 @@ const Xe = (e) => {
|
|
|
1017
1017
|
function E() {
|
|
1018
1018
|
if (!m)
|
|
1019
1019
|
return;
|
|
1020
|
-
const
|
|
1020
|
+
const g = w.from(
|
|
1021
1021
|
"getAllResponseHeaders" in m && m.getAllResponseHeaders()
|
|
1022
1022
|
), S = {
|
|
1023
1023
|
data: !c || c === "text" || c === "json" ? m.responseText : m.response,
|
|
1024
1024
|
status: m.status,
|
|
1025
1025
|
statusText: m.statusText,
|
|
1026
|
-
headers:
|
|
1026
|
+
headers: g,
|
|
1027
1027
|
config: e,
|
|
1028
1028
|
request: m
|
|
1029
1029
|
};
|
|
@@ -1050,12 +1050,12 @@ const Xe = (e) => {
|
|
|
1050
1050
|
)), m = null;
|
|
1051
1051
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in m && a.forEach(i.toJSON(), function(k, S) {
|
|
1052
1052
|
m.setRequestHeader(S, k);
|
|
1053
|
-
}), a.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), c && c !== "json" && (m.responseType = s.responseType), u && ([b, f] = z(u, !0), m.addEventListener("progress", b)), p && m.upload && ([d, T] = z(p), m.upload.addEventListener("progress", d), m.upload.addEventListener("loadend", T)), (s.cancelToken || s.signal) && (l = (
|
|
1054
|
-
m && (r(!
|
|
1053
|
+
}), a.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), c && c !== "json" && (m.responseType = s.responseType), u && ([b, f] = z(u, !0), m.addEventListener("progress", b)), p && m.upload && ([d, T] = z(p), m.upload.addEventListener("progress", d), m.upload.addEventListener("loadend", T)), (s.cancelToken || s.signal) && (l = (g) => {
|
|
1054
|
+
m && (r(!g || g.type ? new L(null, e, m) : g), m.abort(), m = null);
|
|
1055
1055
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1056
|
-
const
|
|
1057
|
-
if (
|
|
1058
|
-
r(new _("Unsupported protocol " +
|
|
1056
|
+
const y = ln(s.url);
|
|
1057
|
+
if (y && O.protocols.indexOf(y) === -1) {
|
|
1058
|
+
r(new _("Unsupported protocol " + y + ":", _.ERR_BAD_REQUEST, e));
|
|
1059
1059
|
return;
|
|
1060
1060
|
}
|
|
1061
1061
|
m.send(o || null);
|
|
@@ -1092,10 +1092,10 @@ const Xe = (e) => {
|
|
|
1092
1092
|
let r = 0, s;
|
|
1093
1093
|
for (; r < n; )
|
|
1094
1094
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1095
|
-
},
|
|
1096
|
-
for await (const n of
|
|
1095
|
+
}, yn = async function* (e, t) {
|
|
1096
|
+
for await (const n of gn(e))
|
|
1097
1097
|
yield* Tn(n, t);
|
|
1098
|
-
},
|
|
1098
|
+
}, gn = async function* (e) {
|
|
1099
1099
|
if (e[Symbol.asyncIterator]) {
|
|
1100
1100
|
yield* e;
|
|
1101
1101
|
return;
|
|
@@ -1112,7 +1112,7 @@ const Xe = (e) => {
|
|
|
1112
1112
|
await t.cancel();
|
|
1113
1113
|
}
|
|
1114
1114
|
}, we = (e, t, n, r) => {
|
|
1115
|
-
const s =
|
|
1115
|
+
const s = yn(e, t);
|
|
1116
1116
|
let o = 0, i, c = (p) => {
|
|
1117
1117
|
i || (i = !0, r && r(p));
|
|
1118
1118
|
};
|
|
@@ -1212,7 +1212,7 @@ const wn = async (e) => {
|
|
|
1212
1212
|
duplex: "half"
|
|
1213
1213
|
}), I;
|
|
1214
1214
|
if (a.isFormData(r) && (I = S.headers.get("content-type")) && l.setContentType(I), S.body) {
|
|
1215
|
-
const [P, G] =
|
|
1215
|
+
const [P, G] = ge(
|
|
1216
1216
|
m,
|
|
1217
1217
|
z(Oe(p))
|
|
1218
1218
|
);
|
|
@@ -1230,32 +1230,32 @@ const wn = async (e) => {
|
|
|
1230
1230
|
duplex: "half",
|
|
1231
1231
|
credentials: E ? d : void 0
|
|
1232
1232
|
});
|
|
1233
|
-
let
|
|
1234
|
-
const
|
|
1235
|
-
if (ae && (c ||
|
|
1233
|
+
let y = await fetch(f);
|
|
1234
|
+
const g = ae && (u === "stream" || u === "response");
|
|
1235
|
+
if (ae && (c || g && h)) {
|
|
1236
1236
|
const S = {};
|
|
1237
1237
|
["status", "statusText", "headers"].forEach((me) => {
|
|
1238
|
-
S[me] =
|
|
1238
|
+
S[me] = y[me];
|
|
1239
1239
|
});
|
|
1240
|
-
const I = a.toFiniteNumber(
|
|
1240
|
+
const I = a.toFiniteNumber(y.headers.get("content-length")), [P, G] = c && ge(
|
|
1241
1241
|
I,
|
|
1242
1242
|
z(Oe(c), !0)
|
|
1243
1243
|
) || [];
|
|
1244
|
-
|
|
1245
|
-
we(
|
|
1244
|
+
y = new Response(
|
|
1245
|
+
we(y.body, Ae, P, () => {
|
|
1246
1246
|
G && G(), h && h();
|
|
1247
1247
|
}),
|
|
1248
1248
|
S
|
|
1249
1249
|
);
|
|
1250
1250
|
}
|
|
1251
1251
|
u = u || "text";
|
|
1252
|
-
let k = await K[a.findKey(K, u) || "text"](
|
|
1253
|
-
return !
|
|
1252
|
+
let k = await K[a.findKey(K, u) || "text"](y, e);
|
|
1253
|
+
return !g && h && h(), await new Promise((S, I) => {
|
|
1254
1254
|
Ke(S, I, {
|
|
1255
1255
|
data: k,
|
|
1256
|
-
headers: w.from(
|
|
1257
|
-
status:
|
|
1258
|
-
statusText:
|
|
1256
|
+
headers: w.from(y.headers),
|
|
1257
|
+
status: y.status,
|
|
1258
|
+
statusText: y.statusText,
|
|
1259
1259
|
config: e,
|
|
1260
1260
|
request: f
|
|
1261
1261
|
});
|
|
@@ -1691,7 +1691,7 @@ function Bn() {
|
|
|
1691
1691
|
const { namespace: e, currentCountry: t } = Ie(), n = e.value === "dev", r = t.value === "MY" ? "" : `.${(o = t.value) == null ? void 0 : o.toLowerCase()}`, s = `${n ? "-dev" : ""}${r}.feedmeapi.com`;
|
|
1692
1692
|
tt.PORTAL_V2_BACKEND = `https://portal-v2${s}`;
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1694
|
+
function H(e) {
|
|
1695
1695
|
const t = R.create({
|
|
1696
1696
|
baseURL: e
|
|
1697
1697
|
});
|
|
@@ -1706,19 +1706,19 @@ function v(e) {
|
|
|
1706
1706
|
}
|
|
1707
1707
|
class Un {
|
|
1708
1708
|
async Get(t, n, r) {
|
|
1709
|
-
return await
|
|
1709
|
+
return await H(t).get(n, r);
|
|
1710
1710
|
}
|
|
1711
1711
|
async Post(t, n, r) {
|
|
1712
|
-
return await
|
|
1712
|
+
return await H(t).post(n, r == null ? void 0 : r.data, r);
|
|
1713
1713
|
}
|
|
1714
1714
|
async Put(t, n, r) {
|
|
1715
|
-
return await
|
|
1715
|
+
return await H(t).put(n, r == null ? void 0 : r.data, r);
|
|
1716
1716
|
}
|
|
1717
1717
|
async Delete(t, n, r) {
|
|
1718
|
-
return await
|
|
1718
|
+
return await H(t).delete(n, r);
|
|
1719
1719
|
}
|
|
1720
1720
|
async Head(t, n, r) {
|
|
1721
|
-
return await
|
|
1721
|
+
return await H(t).head(n, r);
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
1724
|
const xn = () => tt, Ln = new Un();
|
package/dist/package.json
CHANGED