@feedmepos/mf-brand-app-builder 0.5.19-dev.8 → 0.5.19-prod.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{App-D43j5j56.js → App-CxzkOiYp.js} +7 -7
  2. package/dist/{AssetsSettings-Divbotpv.js → AssetsSettings-BfzwsNwc.js} +14 -15
  3. package/dist/{BrandkitView-C8BU5x1e.js → BrandkitView-B5e1lPBZ.js} +7 -8
  4. package/dist/{BuilderView-C61M3C2N.js → BuilderView-D6rTN4bY.js} +2383 -3777
  5. package/dist/{ButtonGroup-DDQcWzI9.js → ButtonGroup-D_HkX122.js} +7 -7
  6. package/dist/{ImageUpload-SIGBaXe4.js → ImageUpload-D35iT673.js} +8 -8
  7. package/dist/{LinkButton-BYAExatU.js → LinkButton-S3b9CXMo.js} +1 -1
  8. package/dist/{ListRepeater-hzUtH7O1.js → ListRepeater-Bs1hsoAl.js} +1 -1
  9. package/dist/{ManagementSettings-ng7VWeSW.js → ManagementSettings-BkwP0olm.js} +15 -16
  10. package/dist/{ProjectView-Dvk5eyiy.js → ProjectView-6REvPYf9.js} +32 -33
  11. package/dist/{Select-B1fwJAzB.js → Select-BRYuMWoQ.js} +1 -1
  12. package/dist/{SettingsView-W3VPDZWD.js → SettingsView-DHA7hXUx.js} +4 -4
  13. package/dist/app-BqAjJabB.js +8816 -0
  14. package/dist/app.js +1 -1
  15. package/dist/client/components/src/i18n.d.ts +4 -0
  16. package/dist/client/merchant/src/app.d.ts +2490 -1
  17. package/dist/{image-Bsuqx0Uc.js → image-DTdh09cw.js} +7 -7
  18. package/dist/{index-CUfUCBrv.js → index-BVriAU7U.js} +24 -24
  19. package/dist/{index-CHoPUARg.js → index-BeJwT8GD.js} +15 -15
  20. package/dist/{index-Bu7uBOtG.js → index-D8cxp3MU.js} +1 -1
  21. package/dist/{index-BpIP-u0D.js → index-DFotROkw.js} +19 -19
  22. package/dist/{main-DBrQC_KK.js → main-DcrPdkBw.js} +6589 -4150
  23. package/dist/package.json +1 -1
  24. package/dist/style.css +1 -1
  25. package/package.json +1 -1
  26. package/dist/app-p3PSkafU.js +0 -8693
@@ -1,6 +1,6 @@
1
- import { defineComponent as s, computed as n, resolveComponent as c, openBlock as m, createBlock as d } from "vue";
2
- import { u as i } from "./app-p3PSkafU.js";
3
- const x = /* @__PURE__ */ s({
1
+ import { defineComponent as c, computed as n, resolveComponent as s, openBlock as m, createBlock as d } from "vue";
2
+ import { useI18n as i } from "@feedmepos/mf-common";
3
+ const x = /* @__PURE__ */ c({
4
4
  __name: "ButtonGroup",
5
5
  props: {
6
6
  context: {}
@@ -11,13 +11,13 @@ const x = /* @__PURE__ */ s({
11
11
  label: l(e.label)
12
12
  }))), r = (e) => {
13
13
  t.context.node.input(e.value);
14
- }, a = n(() => o.value.find(
14
+ }, p = n(() => o.value.find(
15
15
  (e) => JSON.stringify(e.value) === JSON.stringify(t.context._value)
16
16
  ));
17
17
  return (e, v) => {
18
- const p = c("FmButtonGroup");
19
- return m(), d(p, {
20
- "model-value": a.value,
18
+ const a = s("FmButtonGroup");
19
+ return m(), d(a, {
20
+ "model-value": p.value,
21
21
  "onUpdate:modelValue": r,
22
22
  items: o.value
23
23
  }, null, 8, ["model-value", "items"]);
@@ -1,7 +1,7 @@
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-Bsuqx0Uc.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 d } from "vue";
2
+ import { r as g, I as h } from "./image-DTdh09cw.js";
3
3
  import { useCoreStore as I } from "@feedmepos/mf-common";
4
- import "./main-DBrQC_KK.js";
4
+ import "./main-DcrPdkBw.js";
5
5
  import { _ as $ } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
6
6
  import { C as k } from "./CircularProgress-h90pbjU3.js";
7
7
  import { v as F } from "./v4-ANoOI1Qw.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.feedmedev.cc/business/${a.currentBusiness.value._id}/${m.imagePath}`;
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 d;
30
- ((d = e.context.node.at("$root")) == null ? void 0 : d._value).containerStyles.height = `${Math.min(n.height, 400)}px`;
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)) : f("", !0),
63
+ ], 64)) : d("", !0),
64
64
  t.value ? (r(), s("div", z, [
65
65
  c(u(k))
66
- ])) : f("", !0)
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, openBlock as u, createBlock as v, withCtx as m, createElementBlock as x, createElementVNode as a, toDisplayString as P, createVNode as r, withModifiers as R, Fragment as M, renderList as F } from "vue";
2
2
  import { B as y } from "./BaDivider-DWZv3fqi.js";
3
3
  import { _ as W } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
4
- import { u as $ } from "./index-CHoPUARg.js";
4
+ import { u as $ } from "./index-BeJwT8GD.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, 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-p3PSkafU.js";
2
+ import { F as f } from "./app-BqAjJabB.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,10 +1,9 @@
1
1
  import { defineComponent as C, ref as y, computed as S, watch as $, resolveComponent as d, openBlock as g, createElementBlock as k, createElementVNode as o, toDisplayString as _, unref as i, createVNode as u, createBlock as F, withCtx as U } from "vue";
2
- import { useCoreStore as P } from "@feedmepos/mf-common";
3
- import { B as h } from "./index-BpIP-u0D.js";
4
- import { K as V } from "./vue-sonner-PX6Req0V.js";
5
- import { r as q, I } from "./image-Bsuqx0Uc.js";
6
- import { useSnackbar as T } from "@feedmepos/ui-library";
7
- import { u as A } from "./app-p3PSkafU.js";
2
+ import { useCoreStore as P, useI18n as V } from "@feedmepos/mf-common";
3
+ import { B as h } from "./index-DFotROkw.js";
4
+ import { K as q } from "./vue-sonner-PX6Req0V.js";
5
+ import { r as I, I as T } from "./image-DTdh09cw.js";
6
+ import { useSnackbar as A } from "@feedmepos/ui-library";
8
7
  const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
9
8
  "brand",
10
9
  "home",
@@ -503,20 +502,20 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
503
502
  "za",
504
503
  "zm",
505
504
  "zw"
506
- ], D = { class: "w-full flex flex-col gap-40" }, K = { class: "flex flex-col gap-24" }, R = { class: "w-full flex items-center justify-between h-[36px]" }, L = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, M = { class: "w-full flex gap-32" }, O = { class: "relative shrink-0 h-[100px] w-[100px]" }, G = ["src"], H = { 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" }, J = { class: "w-full flex flex-col gap-24 max-w-[400px]" }, Q = { class: "text-fm-color-typo-secondary" }, ne = /* @__PURE__ */ C({
505
+ ], D = { class: "w-full flex flex-col gap-40" }, K = { class: "flex flex-col gap-24" }, R = { class: "w-full flex items-center justify-between h-[36px]" }, L = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, M = { class: "w-full flex gap-32" }, O = { class: "relative shrink-0 h-[100px] w-[100px]" }, G = ["src"], H = { 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" }, J = { class: "w-full flex flex-col gap-24 max-w-[400px]" }, Q = { class: "text-fm-color-typo-secondary" }, te = /* @__PURE__ */ C({
507
506
  __name: "ManagementSettings",
508
507
  setup(W) {
509
- const s = P(), b = T(), { t: n } = A(), p = y(!0), a = y({
508
+ const s = P(), b = A(), { t: n } = V(), p = y(!0), a = y({
510
509
  name: "",
511
510
  url: "",
512
511
  thumbnail: ""
513
512
  }), x = S(
514
- () => "https://{slug}.feedmedev.vip".replace("https://{slug}", "")
513
+ () => "https://{slug}.feedme.vip".replace("https://{slug}", "")
515
514
  );
516
515
  function B() {
517
516
  var t, e;
518
517
  navigator.clipboard.writeText(
519
- "https://{slug}.feedmedev.vip".replace(
518
+ "https://{slug}.feedme.vip".replace(
520
519
  "{slug}",
521
520
  ((t = s.currentBusiness.value) == null ? void 0 : t.url) ?? ((e = s.currentBusiness.value) == null ? void 0 : e._id)
522
521
  )
@@ -539,7 +538,7 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
539
538
  });
540
539
  }
541
540
  function j() {
542
- V.promise(
541
+ q.promise(
543
542
  h.setShortUrl(
544
543
  a.value.url,
545
544
  s.currentBusiness.value.url ?? "",
@@ -567,7 +566,7 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
567
566
  function z(t) {
568
567
  var l, m;
569
568
  const e = ((l = t.dataTransfer) == null ? void 0 : l.files[0]) ?? ((m = t.target) == null ? void 0 : m.files[0]);
570
- I.uploadImage(
569
+ T.uploadImage(
571
570
  s.currentBusiness.value._id,
572
571
  `thumbnail/${(/* @__PURE__ */ new Date()).toISOString()}.${e.name.split(".").pop()}`,
573
572
  e
@@ -575,9 +574,9 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
575
574
  await h.updateBusinessProfile(s.currentBusiness.value._id, {
576
575
  name: a.value.name,
577
576
  url: a.value.url,
578
- thumbnail: `https://image.feedmedev.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`,
577
+ thumbnail: `https://image.feedme.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`,
579
578
  coverPhoto: s.currentBusiness.value.coverPhoto
580
- }), a.value.thumbnail = `https://image.feedmedev.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`;
579
+ }), a.value.thumbnail = `https://image.feedme.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`;
581
580
  });
582
581
  }
583
582
  return $(
@@ -605,7 +604,7 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
605
604
  a.value.thumbnail ? (g(), k("img", {
606
605
  key: 0,
607
606
  class: "h-full w-full rounded-full",
608
- src: i(q)(a.value.thumbnail)
607
+ src: i(I)(a.value.thumbnail)
609
608
  }, null, 8, G)) : (g(), F(m, {
610
609
  key: 1,
611
610
  name: ((v = i(s).currentBusiness.value) == null ? void 0 : v.name) ?? "",
@@ -668,5 +667,5 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
668
667
  }
669
668
  });
670
669
  export {
671
- ne as default
670
+ te as default
672
671
  };