@feedmepos/mf-brand-app-builder 0.5.11 → 0.5.12-alpha

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.
@@ -1,5 +1,5 @@
1
- import { defineComponent as y, ref as b, resolveComponent as w, openBlock as r, createElementBlock as s, createVNode as c, Fragment as C, createElementVNode as i, unref as u, createCommentVNode as d } from "vue";
2
- import { r as g, I as h } from "./image-iPd2Pjtn.js";
1
+ import { defineComponent as y, ref as b, resolveComponent as w, openBlock as r, createElementBlock as s, createVNode as c, Fragment as C, createElementVNode as i, unref as u, createCommentVNode as f } from "vue";
2
+ import { r as g, I as h } from "./image-daxMrkQN.js";
3
3
  import { useCoreStore as I } from "@feedmepos/mf-common";
4
4
  import "./main-CZCjdYQJ.js";
5
5
  import { _ as $ } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.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 a = `https://image.feedme.cc/business/${l.currentBusiness.value._id}/${m.imagePath}`;
25
+ const a = `https://image.feedmedev.cc/business/${l.currentBusiness.value._id}/${m.imagePath}`;
26
26
  e.context.node.input(a);
27
27
  const n = new Image();
28
28
  (p = e.context.attrs.props) != null && p.ignoreUpdate || (n.onload = () => {
29
- var f;
30
- ((f = e.context.node.at("$root")) == null ? void 0 : f._value).containerStyles.height = `${Math.min(n.height, 400)}px`;
29
+ var d;
30
+ ((d = e.context.node.at("$root")) == null ? void 0 : d._value).containerStyles.height = `${Math.min(n.height, 400)}px`;
31
31
  }), n.src = g(a);
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)) : d("", !0),
63
+ ], 64)) : f("", !0),
64
64
  t.value ? (r(), s("div", z, [
65
65
  c(u(k))
66
- ])) : d("", !0)
66
+ ])) : f("", !0)
67
67
  ]);
68
68
  };
69
69
  }
@@ -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-GWwfgXav.js";
2
+ import { u as $, B as y } from "./index-Beoq0KwT.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-JSHXAy49.js";
2
+ import { F as f } from "./app-FNifk80d.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,7 @@
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-ctrCMOtp.js";
4
- import { K as P } from "./vue-sonner-PX6Req0V.js";
5
- import { r as U, I as V } from "./image-iPd2Pjtn.js";
3
+ import { K as P, B as g } from "./index-BGC6ep--.js";
4
+ import { r as U, I as V } from "./image-daxMrkQN.js";
6
5
  const q = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), C = [
7
6
  "brand",
8
7
  "home",
@@ -501,7 +500,7 @@ const q = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), C = [
501
500
  "za",
502
501
  "zm",
503
502
  "zw"
504
- ], A = { class: "w-full flex flex-col gap-40" }, I = { class: "flex flex-col gap-24" }, R = { class: "w-full flex items-center justify-between h-[36px]" }, T = { class: "w-full flex gap-32" }, E = { class: "relative shrink-0 h-[100px] w-[100px]" }, L = ["src"], D = { class: "absolute -top-8 -right-8 rounded-full h-32 w-32 border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white flex justify-center items-center" }, K = { class: "w-full flex flex-col gap-24 max-w-[400px]" }, M = { class: "text-fm-color-typo-secondary" }, W = /* @__PURE__ */ x({
503
+ ], A = { class: "w-full flex flex-col gap-40" }, I = { class: "flex flex-col gap-24" }, R = { class: "w-full flex items-center justify-between h-[36px]" }, T = { class: "w-full flex gap-32" }, E = { class: "relative shrink-0 h-[100px] w-[100px]" }, L = ["src"], D = { class: "absolute -top-8 -right-8 rounded-full h-32 w-32 border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white flex justify-center items-center" }, K = { class: "w-full flex flex-col gap-24 max-w-[400px]" }, M = { class: "text-fm-color-typo-secondary" }, Q = /* @__PURE__ */ x({
505
504
  __name: "ManagementSettings",
506
505
  setup(N) {
507
506
  const s = F(), d = b(!0), a = b({
@@ -509,7 +508,7 @@ const q = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), C = [
509
508
  url: "",
510
509
  thumbnail: ""
511
510
  }), y = B(
512
- () => "https://{slug}.feedme.vip".replace("https://{slug}", "")
511
+ () => "https://{slug}.feedmedev.vip".replace("https://{slug}", "")
513
512
  );
514
513
  function k() {
515
514
  P.promise(
@@ -548,9 +547,9 @@ const q = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), C = [
548
547
  await g.updateBusinessProfile(s.currentBusiness.value._id, {
549
548
  name: a.value.name,
550
549
  url: a.value.url,
551
- thumbnail: `https://image.feedme.cc/business/${s.currentBusiness.value._id}/${u.imagePath}`,
550
+ thumbnail: `https://image.feedmedev.cc/business/${s.currentBusiness.value._id}/${u.imagePath}`,
552
551
  coverPhoto: s.currentBusiness.value.coverPhoto
553
- }), a.value.thumbnail = `https://image.feedme.cc/business/${s.currentBusiness.value._id}/${u.imagePath}`;
552
+ }), a.value.thumbnail = `https://image.feedmedev.cc/business/${s.currentBusiness.value._id}/${u.imagePath}`;
554
553
  });
555
554
  }
556
555
  return j(
@@ -636,5 +635,5 @@ const q = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), C = [
636
635
  }
637
636
  });
638
637
  export {
639
- W as default
638
+ Q as default
640
639
  };
@@ -8,7 +8,7 @@ const vo = [
8
8
  {
9
9
  path: "/builder",
10
10
  name: "builder",
11
- component: L(() => import("./BuilderView-7RZ42i1A.js"))
11
+ component: L(() => import("./BuilderView-B2rfEzWq.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-CpolHf9m.js"))
22
+ component: L(() => import("./AssetsSettings-1acU0aQ0.js"))
23
23
  },
24
24
  {
25
25
  path: "management",
26
26
  name: "settings-management",
27
- component: L(() => import("./ManagementSettings-DLQAE5tt.js"))
27
+ component: L(() => import("./ManagementSettings-C5gq0pe_.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-DYjj8nI1.js"))),
4672
+ BaListRepeater: B(L(() => import("./ListRepeater-Chf5N0BL.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-jL5eYjTl.js"))),
4677
- BaLinkButton: B(L(() => import("./LinkButton-DSzPrKwg.js"))),
4676
+ BaImageUpload: B(L(() => import("./ImageUpload-CzRcR1KB.js"))),
4677
+ BaLinkButton: B(L(() => import("./LinkButton-XDkn23G6.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-BpeA3Apz.js"));
4683
+ }, ho = L(() => import("./App-CxjSiBPH.js"));
4684
4684
  export {
4685
4685
  dn as F,
4686
4686
  pn as a,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { b as p, c as s, r as t } from "./app-JSHXAy49.js";
2
+ import { b as p, c as s, r as t } from "./app-FNifk80d.js";
3
3
  export {
4
4
  p as FmApp,
5
5
  s as FormKitPlugin,
@@ -1,8 +1,8 @@
1
- import { H as r } from "./index-Cf_Vke2-.js";
1
+ import { H as r } from "./index-D_zWpFpJ.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.feedme.vip",
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 i(e, t) {
15
+ async function d(e, t) {
16
16
  return (await r.Delete(
17
- "https://api.feedme.vip",
17
+ "https://api.feedmedev.vip",
18
18
  `/image/${e}/${t}`
19
19
  )).data;
20
20
  }
21
- async function s(e, t) {
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.feedmeapi.com", "", {
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: i,
33
- uploadAppIcon: s
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");