@feedmepos/mf-brand-app-builder 0.5.20-dev.3 → 0.5.20-prod.0

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 (35) hide show
  1. package/dist/{App-DNayQ0r1.js → App-BYIiIzgl.js} +7 -7
  2. package/dist/{AssetsSettings-Cgp-Awzc.js → AssetsSettings-DMEHi2uS.js} +18 -18
  3. package/dist/{BrandkitView-BCggsZJY.js → BrandkitView-BXo0FO6R.js} +2600 -1983
  4. package/dist/{BuilderView-BhuHqSEj.js → BuilderView-CnHk6Qkp.js} +2716 -2162
  5. package/dist/{ImageUpload-CEVZ2Smd.js → ImageUpload-CsSstgwO.js} +8 -8
  6. package/dist/{LinkButton-DRpeZMhV.js → LinkButton-EI8lIb33.js} +1 -1
  7. package/dist/{ListRepeater-BNEN5FMB.js → ListRepeater-BIEp3DDy.js} +1 -1
  8. package/dist/{ManagementSettings-lMIl05UD.js → ManagementSettings-B4vwsKt5.js} +6 -6
  9. package/dist/{ProjectView-Cdm7gqIj.js → ProjectView-lj60UJiJ.js} +36 -36
  10. package/dist/{app-DLQ8KWDz.js → app-ChDWaqYQ.js} +3316 -1239
  11. package/dist/app.js +1 -1
  12. package/dist/brand-core/src/entity.d.ts +20 -0
  13. package/dist/client/components/src/components/Member/MemberCards.vue.d.ts +1 -0
  14. package/dist/client/components/src/components/MemberCard.vue.d.ts +6 -0
  15. package/dist/client/components/src/components/OrderHistoryCard.vue.d.ts +6 -1
  16. package/dist/client/components/src/i18n.d.ts +4 -0
  17. package/dist/client/merchant/src/app.d.ts +2068 -4
  18. package/dist/client/merchant/src/components/modals/TemplateSelectionModal.vue.d.ts +18 -0
  19. package/dist/client/merchant/src/components/order-template/LayoutTemplateSection.vue.d.ts +14 -0
  20. package/dist/client/merchant/src/components/order-template/OrderTemplateEditorButton.vue.d.ts +10 -0
  21. package/dist/client/merchant/src/components/order-template/OrderTemplateEditorForm.vue.d.ts +14 -0
  22. package/dist/client/merchant/src/composables/useNode/index.d.ts +1 -0
  23. package/dist/client/merchant/src/config/defaultTemplateConfig.d.ts +18 -0
  24. package/dist/client/merchant/src/node-configs/member-card/mock-data.d.ts +1 -0
  25. package/dist/client/merchant/src/node-configs/member-card/props.d.ts +1 -0
  26. package/dist/client/merchant/src/stores/business/index.d.ts +108 -0
  27. package/dist/{image-PTt3u2NG.js → image-Bnqhv2q1.js} +7 -7
  28. package/dist/{index-ChqP94MN.js → index-1uBwP1Z9.js} +19 -19
  29. package/dist/{index-eP_AjEnI.js → index-B4ng69tO.js} +1 -1
  30. package/dist/{index-CNJn9sP5.js → index-DO2AwhyJ.js} +216 -216
  31. package/dist/{index-3aVTK-0n.js → index-j6IFIh2x.js} +15 -15
  32. package/dist/{main-D_oG0ihX.js → main-GG3sMSoX.js} +6656 -4135
  33. package/dist/package.json +4 -2
  34. package/dist/style.css +1 -1
  35. package/package.json +4 -2
@@ -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-PTt3u2NG.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-Bnqhv2q1.js";
3
3
  import { useCoreStore as I } from "@feedmepos/mf-common";
4
- import "./main-D_oG0ihX.js";
4
+ import "./main-GG3sMSoX.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-3aVTK-0n.js";
4
+ import { u as $ } from "./index-j6IFIh2x.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-DLQ8KWDz.js";
2
+ import { F as f } from "./app-ChDWaqYQ.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, 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
2
  import { useCoreStore as P, useI18n as V } from "@feedmepos/mf-common";
3
- import { B as h } from "./index-ChqP94MN.js";
3
+ import { B as h } from "./index-1uBwP1Z9.js";
4
4
  import { K as q } from "./vue-sonner-PX6Req0V.js";
5
- import { r as I, I as T } from "./image-PTt3u2NG.js";
5
+ import { r as I, I as T } from "./image-Bnqhv2q1.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}.feedmedev.vip".replace("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}.feedmedev.vip".replace(
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.feedmedev.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`,
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.feedmedev.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`;
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
- import { defineComponent as De, openBlock as R, createElementBlock as k, normalizeClass as he, createElementVNode as M, toDisplayString as N, ref as oe, computed as re, watch as Re, resolveComponent as V, unref as A, Fragment as Qe, renderList as ce, createVNode as Z, createCommentVNode as P, createBlock as q, withCtx as ie, h as je } from "vue";
2
- import { u as ue } from "./index-3aVTK-0n.js";
1
+ import { defineComponent as De, openBlock as R, createElementBlock as k, normalizeClass as he, createElementVNode as M, toDisplayString as N, ref as oe, computed as re, watch as Re, resolveComponent as V, unref as T, Fragment as Qe, renderList as ce, createVNode as Z, createCommentVNode as P, createBlock as q, withCtx as ie, h as je } from "vue";
2
+ import { u as ue } from "./index-j6IFIh2x.js";
3
3
  import { useCoreStore as Te, useI18n as Ae } from "@feedmepos/mf-common";
4
4
  import { p as Oe } from "./views-BDWw3w14.js";
5
5
  import { useRouter as Me } from "vue-router";
@@ -101,15 +101,15 @@ var Ce = { exports: {} };
101
101
  return n ? W : W.endOf(O);
102
102
  }, H = function(L, B) {
103
103
  return r.w(o.toDate()[L].apply(o.toDate("s"), (n ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(B)), o);
104
- }, u = this.$W, T = this.$M, x = this.$D, X = "set" + (this.$u ? "UTC" : "");
104
+ }, u = this.$W, A = this.$M, x = this.$D, X = "set" + (this.$u ? "UTC" : "");
105
105
  switch (h) {
106
106
  case I:
107
107
  return n ? c(1, 0) : c(31, 11);
108
108
  case C:
109
- return n ? c(1, T) : c(0, T + 1);
109
+ return n ? c(1, A) : c(0, A + 1);
110
110
  case l:
111
111
  var K = this.$locale().weekStart || 0, $ = (u < K ? u + 7 : u) - K;
112
- return c(n ? x - $ : x + (6 - $), T);
112
+ return c(n ? x - $ : x + (6 - $), A);
113
113
  case O:
114
114
  case Q:
115
115
  return H(X + "Hours", 0);
@@ -138,9 +138,9 @@ var Ce = { exports: {} };
138
138
  }, i.add = function(e, a) {
139
139
  var o, n = this;
140
140
  e = Number(e);
141
- var h = r.p(a), c = function(T) {
141
+ var h = r.p(a), c = function(A) {
142
142
  var x = j(n);
143
- return r.w(x.date(x.date() + Math.round(T * e)), n);
143
+ return r.w(x.date(x.date() + Math.round(A * e)), n);
144
144
  };
145
145
  if (h === C) return this.set(C, this.$M + e);
146
146
  if (h === I) return this.set(I, this.$y + e);
@@ -153,7 +153,7 @@ var Ce = { exports: {} };
153
153
  }, i.format = function(e) {
154
154
  var a = this, o = this.$locale();
155
155
  if (!this.isValid()) return o.invalidDate || w;
156
- var n = e || "YYYY-MM-DDTHH:mm:ssZ", h = r.z(this), c = this.$H, H = this.$m, u = this.$M, T = o.weekdays, x = o.months, X = o.meridiem, K = function(B, W, ee, te) {
156
+ var n = e || "YYYY-MM-DDTHH:mm:ssZ", h = r.z(this), c = this.$H, H = this.$m, u = this.$M, A = o.weekdays, x = o.months, X = o.meridiem, K = function(B, W, ee, te) {
157
157
  return B && (B[W] || B(a, n)) || ee[W].slice(0, te);
158
158
  }, $ = function(B) {
159
159
  return r.s(c % 12 || 12, B, "0");
@@ -183,11 +183,11 @@ var Ce = { exports: {} };
183
183
  case "d":
184
184
  return String(a.$W);
185
185
  case "dd":
186
- return K(o.weekdaysMin, a.$W, T, 2);
186
+ return K(o.weekdaysMin, a.$W, A, 2);
187
187
  case "ddd":
188
- return K(o.weekdaysShort, a.$W, T, 3);
188
+ return K(o.weekdaysShort, a.$W, A, 3);
189
189
  case "dddd":
190
- return T[a.$W];
190
+ return A[a.$W];
191
191
  case "H":
192
192
  return String(c);
193
193
  case "HH":
@@ -219,7 +219,7 @@ var Ce = { exports: {} };
219
219
  }, i.utcOffset = function() {
220
220
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
221
221
  }, i.diff = function(e, a, o) {
222
- var n, h = this, c = r.p(a), H = j(e), u = (H.utcOffset() - this.utcOffset()) * E, T = this - H, x = function() {
222
+ var n, h = this, c = r.p(a), H = j(e), u = (H.utcOffset() - this.utcOffset()) * E, A = this - H, x = function() {
223
223
  return r.m(h, H);
224
224
  };
225
225
  switch (c) {
@@ -233,22 +233,22 @@ var Ce = { exports: {} };
233
233
  n = x() / 3;
234
234
  break;
235
235
  case l:
236
- n = (T - u) / 6048e5;
236
+ n = (A - u) / 6048e5;
237
237
  break;
238
238
  case O:
239
- n = (T - u) / 864e5;
239
+ n = (A - u) / 864e5;
240
240
  break;
241
241
  case f:
242
- n = T / m;
242
+ n = A / m;
243
243
  break;
244
244
  case G:
245
- n = T / E;
245
+ n = A / E;
246
246
  break;
247
247
  case U:
248
- n = T / D;
248
+ n = A / D;
249
249
  break;
250
250
  default:
251
- n = T;
251
+ n = A;
252
252
  }
253
253
  return o ? n : r.a(n);
254
254
  }, i.daysInMonth = function() {
@@ -581,7 +581,7 @@ const fe = /* @__PURE__ */ Ee(we), Ye = "data:image/png;base64,iVBORw0KGgoAAAANS
581
581
  ), (I, Q) => {
582
582
  const w = V("FmTab"), F = V("FmChip"), Y = V("FmIcon"), v = V("FmMenuItem"), S = V("FmMenuDivider"), J = V("FmPopover");
583
583
  return R(), k("div", ye, [
584
- M("div", We, N(A(s)("brand.project.title.myProjects")), 1),
584
+ M("div", We, N(T(s)("brand.project.title.myProjects")), 1),
585
585
  M("div", Se, [
586
586
  (R(), k(Qe, null, ce(U, (g) => Z(w, {
587
587
  label: g.label,
@@ -591,7 +591,7 @@ const fe = /* @__PURE__ */ Ee(we), Ye = "data:image/png;base64,iVBORw0KGgoAAAANS
591
591
  }, null, 8, ["label", "value", "model-value", "onUpdate:modelValue"])), 64))
592
592
  ]),
593
593
  M("div", ze, [
594
- f.value.every((g) => g.predefined) ? (R(), k("div", Ke, N(A(s)("brand.project.message.customizationLimited")), 1)) : P("", !0),
594
+ f.value.every((g) => g.predefined) ? (R(), k("div", Ke, N(T(s)("brand.project.message.customizationLimited")), 1)) : P("", !0),
595
595
  M("div", Le, [
596
596
  (R(!0), k(Qe, null, ce(f.value, (g) => (R(), k("div", {
597
597
  class: "flex-initial",
@@ -607,22 +607,22 @@ const fe = /* @__PURE__ */ Ee(we), Ye = "data:image/png;base64,iVBORw0KGgoAAAANS
607
607
  group: g.group
608
608
  }, null, 8, ["type", "group"])) : (R(), k("img", qe)),
609
609
  M("div", be, [
610
- g.templateId == A(D).state.activeTemplateId ? (R(), q(F, {
610
+ g.templateId == T(D).state.activeTemplateId ? (R(), q(F, {
611
611
  key: 0,
612
612
  compact: !0,
613
- label: A(s)("brand.project.chip.landing"),
613
+ label: T(s)("brand.project.chip.landing"),
614
614
  class: "text-fm-color-system-warning-300 bg-fm-color-system-warning-100"
615
615
  }, null, 8, ["label"])) : P("", !0),
616
- g.templateId == A(D).state.activeMemberTemplateId ? (R(), q(F, {
616
+ g.templateId == T(D).state.activeMemberTemplateId ? (R(), q(F, {
617
617
  key: 1,
618
618
  compact: !0,
619
- label: A(s)("brand.project.chip.memberLanding"),
619
+ label: T(s)("brand.project.chip.memberLanding"),
620
620
  class: "text-fm-color-system-warning-300 bg-fm-color-system-warning-100"
621
621
  }, null, 8, ["label"])) : P("", !0),
622
622
  g.isPublished && !g.predefined ? (R(), q(F, {
623
623
  key: 2,
624
624
  compact: !0,
625
- label: A(s)("brand.project.chip.published"),
625
+ label: T(s)("brand.project.chip.published"),
626
626
  class: "text-fm-color-system-success-400 bg-fm-color-system-success-100"
627
627
  }, null, 8, ["label"])) : P("", !0),
628
628
  !g.editable && g.predefined ? (R(), k("div", Xe, [
@@ -630,26 +630,26 @@ const fe = /* @__PURE__ */ Ee(we), Ye = "data:image/png;base64,iVBORw0KGgoAAAANS
630
630
  name: "visibility",
631
631
  size: "sm"
632
632
  }),
633
- M("span", null, N(A(s)("brand.project.chip.viewOnly")), 1)
633
+ M("span", null, N(T(s)("brand.project.chip.viewOnly")), 1)
634
634
  ])) : P("", !0),
635
635
  g.editable && g.predefined ? (R(), k("div", Ve, [
636
636
  Z(Y, {
637
637
  name: "edit",
638
638
  size: "sm"
639
639
  }),
640
- M("span", null, N(A(s)("brand.project.chip.limitedCustomization")), 1)
640
+ M("span", null, N(T(s)("brand.project.chip.limitedCustomization")), 1)
641
641
  ])) : P("", !0)
642
642
  ])
643
643
  ], 10, Ze),
644
644
  M("div", _e, [
645
645
  M("div", $e, [
646
646
  M("p", eo, N(g.templateAlias), 1),
647
- g.predefined ? P("", !0) : (R(), k("p", oo, N(A(s)("brand.project.message.editedAgo", {
648
- time: A(ne)(g.updatedAt).fromNow(!0)
647
+ g.predefined ? P("", !0) : (R(), k("p", oo, N(T(s)("brand.project.message.editedAgo", {
648
+ time: T(ne)(g.updatedAt).fromNow(!0)
649
649
  })), 1)),
650
- g.predefined ? (R(), k("p", io, N(A(s)("brand.project.message.nonEditablePage")), 1)) : P("", !0),
651
- g.isPublished && !g.predefined ? (R(), k("p", ao, N(A(s)("brand.project.message.lastPublished", {
652
- date: A(ne)(g.publishedAt).format("D/M/YYYY")
650
+ g.predefined ? (R(), k("p", io, N(T(s)("brand.project.message.nonEditablePage")), 1)) : P("", !0),
651
+ g.isPublished && !g.predefined ? (R(), k("p", ao, N(T(s)("brand.project.message.lastPublished", {
652
+ date: T(ne)(g.publishedAt).format("D/M/YYYY")
653
653
  })), 1)) : P("", !0)
654
654
  ]),
655
655
  g.predefined ? P("", !0) : (R(), q(J, { key: 0 }, {
@@ -659,15 +659,15 @@ const fe = /* @__PURE__ */ Ee(we), Ye = "data:image/png;base64,iVBORw0KGgoAAAANS
659
659
  default: ie(() => [
660
660
  M("div", go, [
661
661
  Z(v, {
662
- label: "{{ t('brand.project.menu.rename') }}",
662
+ label: T(s)("brand.project.menu.rename"),
663
663
  icon: "edit",
664
664
  onClick: (d) => l(g)
665
- }, null, 8, ["onClick"]),
665
+ }, null, 8, ["label", "onClick"]),
666
666
  Z(v, {
667
667
  onClick: (d) => C(g)
668
668
  }, {
669
669
  label: ie(() => [
670
- M("span", to, N(A(s)("brand.project.menu.delete")), 1)
670
+ M("span", to, N(T(s)("brand.project.menu.delete")), 1)
671
671
  ]),
672
672
  prepend: ie(() => [
673
673
  Z(Y, {
@@ -684,7 +684,7 @@ const fe = /* @__PURE__ */ Ee(we), Ye = "data:image/png;base64,iVBORw0KGgoAAAANS
684
684
  onClick: (d) => y(g)
685
685
  }, {
686
686
  label: ie(() => [
687
- M("span", so, N(A(s)("brand.project.menu.unpublish")), 1)
687
+ M("span", so, N(T(s)("brand.project.menu.unpublish")), 1)
688
688
  ]),
689
689
  _: 2
690
690
  }, 1032, ["onClick"])) : P("", !0)