@feedmepos/mf-brand-app-builder 0.5.33-prod → 0.5.34-dev.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.
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as rt, resolveComponent as ne, createElementBlock as D, openBlock as R, createElementVNode as u, createVNode as S, createCommentVNode as z, withCtx as Le, unref as f, normalizeStyle as Er, toDisplayString as b, ref as re, shallowRef as qn, onMounted as dn, onBeforeUnmount as Xn, withDirectives as Rr, normalizeClass as cn, vShow as Lr, markRaw as pa, nextTick as Yn, watch as dt, createBlock as Ue, renderSlot as Zn, Fragment as $e, renderList as gt, computed as te, Teleport as Jn, Transition as pn, withKeys as Kn, createTextVNode as va } from "vue";
2
- import { B as nr } from "./index-CjXPwLCp.js";
2
+ import { B as nr } from "./index-CVVQJJYY.js";
3
3
  import { B as Qn } from "./ColorPicker-RKWzhLBO.js";
4
- import { u as eo } from "./index-ChqSdT0a.js";
4
+ import { u as eo } from "./index-BA2J-Ffh.js";
5
5
  import { useCoreStore as Gr, useI18n as Hr, RestaurantSelector as to } from "@feedmepos/mf-common";
6
6
  import { u as ro, b as X } from "./brandkit-C8uulbNE.js";
7
7
  import { useDialogChild as ao, useDialog as $r, useSnackbar as Vr } from "@feedmepos/ui-library";
8
8
  import { _ as zr } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  import { d as no } from "./dayjs.min-DnbY0e60.js";
10
- import { I as fa, r as ha } from "./image-S7-2rbQS.js";
10
+ import { I as fa, r as ha } from "./image-D_Djf1PS.js";
11
11
  import { u as oo } from "./useBusinessFeatureFlag-rGPsfDu1.js";
12
12
  import { v as ga } from "./v4-CKwdnpQf.js";
13
13
  const so = { class: "fm-typo-en-body-md-400" }, io = { class: "flex gap-8 items-center" }, lo = { class: "p-4 relative" }, uo = { class: "shadow-lg rounded-lg p-8" }, co = {
@@ -9249,7 +9249,7 @@ const ed = { class: "json-editor" }, td = ["title"], rd = { class: "error-text"
9249
9249
  K,
9250
9250
  w
9251
9251
  ), Te = ha(
9252
- `https://image.feedme.cc/business/${n.currentBusiness.value._id}/${ge.imagePath}`
9252
+ `https://image.feedmedev.cc/business/${n.currentBusiness.value._id}/${ge.imagePath}`
9253
9253
  );
9254
9254
  E(), i.value.layout.background = {
9255
9255
  url: Te,
@@ -9299,7 +9299,7 @@ const ed = { class: "json-editor" }, td = ["title"], rd = { class: "error-text"
9299
9299
  ge,
9300
9300
  w
9301
9301
  ), Ce = ha(
9302
- `https://image.feedme.cc/business/${n.currentBusiness.value._id}/${Te.imagePath}`
9302
+ `https://image.feedmedev.cc/business/${n.currentBusiness.value._id}/${Te.imagePath}`
9303
9303
  );
9304
9304
  E(), i.value.layout.sidePanel = {
9305
9305
  url: Ce,
@@ -1,19 +1,19 @@
1
1
  import { resolveComponent as V, TransitionGroup as qn, defineComponent as se, nextTick as rn, h as ma, isRef as Qn, isReactive as eo, isProxy as to, toRaw as ao, ref as q, computed as ie, createElementBlock as Z, openBlock as N, Fragment as Be, renderList as vt, createElementVNode as I, createVNode as w, createBlock as ae, createCommentVNode as Q, toDisplayString as j, unref as y, withCtx as M, normalizeClass as ye, watch as tt, withDirectives as Gt, withModifiers as ba, vShow as Xt, createTextVNode as no, onMounted as ln, resolveDynamicComponent as Ma, mergeProps as oo, normalizeProps as ro, guardReactiveProps as io, normalizeStyle as lo, renderSlot as wa, provide as so, inject as co, markRaw as uo } from "vue";
2
- import { T as po, u as Ge } from "./index-CPs0rWCO.js";
2
+ import { T as po, u as Ge } from "./index-Bk6TOZrx.js";
3
3
  import { defineStore as mo, storeToRefs as bo } from "pinia";
4
4
  import { p as fo } from "./views-BDWw3w14.js";
5
- import { A as go } from "./index-C6_vWPi0.js";
5
+ import { A as go } from "./index-D0LOMBBD.js";
6
6
  import { v as Ra } from "./v4-CKwdnpQf.js";
7
7
  import { _ as ho } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
8
8
  import { B as sn } from "./BaDivider-Cp9gfB4r.js";
9
9
  import { useI18n as Ze, useCoreStore as We } from "@feedmepos/mf-common";
10
- import { C as $a, _ as yo, a as vo } from "./main-Gc3KE77V.js";
10
+ import { C as $a, _ as yo, a as vo } from "./main-CZUn1F57.js";
11
11
  import { useDialog as To, components as xo, useSnackbar as Co } from "@feedmepos/ui-library";
12
12
  import { useRouter as dn } from "vue-router";
13
13
  import { u as Ia, a as _o, b as wo } from "./brandkit-C8uulbNE.js";
14
- import { u as Ea } from "./index-ChqSdT0a.js";
14
+ import { u as Ea } from "./index-BA2J-Ffh.js";
15
15
  import { K as Io, V as Eo } from "./vue-sonner-CBFYmm8_.js";
16
- import { F as So, a as Ao } from "./app-CgJDqvV4.js";
16
+ import { F as So, a as Ao } from "./app-gGU5lzjk.js";
17
17
  /**!
18
18
  * Sortable 1.14.0
19
19
  * @author RubaXa <trash@rubaxa.org>
@@ -6605,7 +6605,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6605
6605
  }
6606
6606
  async function g() {
6607
6607
  var v;
6608
- const f = `${"https://{slug}.feedme.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((v = r.currentBusiness.value) == null ? void 0 : v.id)}`)}`;
6608
+ const f = `${"https://{slug}.feedmedev.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((v = r.currentBusiness.value) == null ? void 0 : v.id)}`)}`;
6609
6609
  l.promise(
6610
6610
  async () => {
6611
6611
  var x;
@@ -8171,7 +8171,7 @@ _t.toString = Oa.bind(null, function(t, e, a) {
8171
8171
  const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full flex gap-8 justify-end items-center" }, _l = /* @__PURE__ */ se({
8172
8172
  __name: "PreviewQrCode",
8173
8173
  setup(t) {
8174
- const e = q(), a = We(), n = Ge(), { t: o } = Ze(), r = q(!1), l = ie(() => `${`${"https://{slug}.feedme.vip".replace("{slug}", `${a.currentBusiness.value.url ?? a.currentBusiness.value._id}`)}`}/preview/${n.state.selectedTemplate.templateId}`);
8174
+ const e = q(), a = We(), n = Ge(), { t: o } = Ze(), r = q(!1), l = ie(() => `${`${"https://{slug}.feedmedev.vip".replace("{slug}", `${a.currentBusiness.value.url ?? a.currentBusiness.value._id}`)}`}/preview/${n.state.selectedTemplate.templateId}`);
8175
8175
  function i() {
8176
8176
  Io.promise(navigator.clipboard.writeText(l.value), {
8177
8177
  loading: o("brand.template.shareMenu.copying"),
@@ -1,7 +1,7 @@
1
- import { defineComponent as y, ref as b, resolveComponent as w, createElementBlock as r, openBlock as s, createVNode as c, createCommentVNode as d, Fragment as C, createElementVNode as i, unref as u } from "vue";
2
- import { r as g, I as h } from "./image-S7-2rbQS.js";
1
+ import { defineComponent as y, ref as b, resolveComponent as w, createElementBlock as r, openBlock as s, createVNode as c, createCommentVNode as f, Fragment as C, createElementVNode as i, unref as u } from "vue";
2
+ import { r as g, I as h } from "./image-D_Djf1PS.js";
3
3
  import { useCoreStore as I } from "@feedmepos/mf-common";
4
- import "./main-Gc3KE77V.js";
4
+ import "./main-CZUn1F57.js";
5
5
  import { _ as $ } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
6
6
  import { C as k } from "./CircularProgress-DdblYCtV.js";
7
7
  import { v as F } from "./v4-CKwdnpQf.js";
@@ -22,12 +22,12 @@ const B = { class: "w-full h-[210px] relative" }, P = { class: "absolute z-[1] t
22
22
  o
23
23
  ).then((m) => {
24
24
  var p;
25
- const l = `https://image.feedme.cc/business/${a.currentBusiness.value._id}/${m.imagePath}`;
25
+ const l = `https://image.feedmedev.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 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(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)) : d("", !0),
63
+ ], 64)) : f("", !0),
64
64
  t.value ? (s(), r("div", z, [
65
65
  c(u(k))
66
- ])) : d("", !0)
66
+ ])) : f("", !0)
67
67
  ]);
68
68
  };
69
69
  }
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as I, ref as f, computed as k, onBeforeMount as L, resolveComponent as c, createBlock as v, openBlock as u, withCtx as m, createElementVNode as a, createVNode as r, createElementBlock as x, Fragment as M, renderList as F, toDisplayString as P, withModifiers as R } from "vue";
2
2
  import { B as y } from "./BaDivider-Cp9gfB4r.js";
3
3
  import { _ as W } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
4
- import { u as $ } from "./index-CPs0rWCO.js";
4
+ import { u as $ } from "./index-Bk6TOZrx.js";
5
5
  import "@feedmepos/mf-common";
6
6
  const j = {
7
7
  key: 1,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, resolveComponent as y, createBlock as s, openBlock as c, unref as u, withCtx as i, createElementBlock as m, Fragment as x, renderList as g, createElementVNode as p, createVNode as n, resolveDynamicComponent as F } from "vue";
2
- import { F as f } from "./app-CgJDqvV4.js";
2
+ import { F as f } from "./app-gGU5lzjk.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,10 @@
1
- import { defineComponent as C, ref as y, computed as S, watch as $, resolveComponent as d, createElementBlock as k, openBlock as g, createElementVNode as o, createVNode as u, toDisplayString as _, unref as i, createBlock as F, withCtx as U } from "vue";
2
- import { useCoreStore as P, useI18n as V } from "@feedmepos/mf-common";
3
- import { B as h } from "./index-CjXPwLCp.js";
4
- import { K as q } from "./vue-sonner-CBFYmm8_.js";
5
- import { r as I, I as T } from "./image-S7-2rbQS.js";
6
- import { useSnackbar as A } from "@feedmepos/ui-library";
7
- const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
1
+ import { defineComponent as C, ref as k, computed as S, watch as F, resolveComponent as d, createElementBlock as _, openBlock as g, createElementVNode as o, createVNode as m, toDisplayString as B, unref as l, createBlock as I, withCtx as P } from "vue";
2
+ import { useCoreStore as V, useI18n as q } from "@feedmepos/mf-common";
3
+ import { B as v } from "./index-CVVQJJYY.js";
4
+ import { K as T } from "./vue-sonner-CBFYmm8_.js";
5
+ import { r as A, I as D } from "./image-D_Djf1PS.js";
6
+ import { useSnackbar as E } from "@feedmepos/ui-library";
7
+ const N = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), R = [
8
8
  "brand",
9
9
  "home",
10
10
  "app",
@@ -502,122 +502,133 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
502
502
  "za",
503
503
  "zm",
504
504
  "zw"
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({
505
+ ], K = { class: "w-full flex flex-col gap-40" }, L = { class: "flex flex-col gap-24" }, M = { class: "w-full flex items-center justify-between h-[36px]" }, O = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, G = { class: "w-full flex gap-32" }, H = { class: "relative shrink-0 h-[100px] w-[100px]" }, J = ["src"], Q = { 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" }, W = { class: "w-full flex flex-col gap-24 max-w-[400px]" }, X = { class: "text-fm-color-typo-secondary" }, re = /* @__PURE__ */ C({
506
506
  __name: "ManagementSettings",
507
- setup(W) {
508
- const s = P(), b = A(), { t: n } = V(), p = y(!0), a = y({
507
+ setup(Y) {
508
+ const e = V(), b = E(), { t: r } = q(), p = k(!0), n = k({
509
509
  name: "",
510
510
  url: "",
511
511
  thumbnail: ""
512
512
  }), x = S(
513
- () => "https://{slug}.feedme.vip".replace("https://{slug}", "")
513
+ () => "https://{slug}.feedmedev.vip".replace("https://{slug}", "")
514
514
  );
515
- function B() {
516
- var t, e;
515
+ function h(t) {
516
+ var a;
517
+ const s = (a = e.currentBusiness.value) == null ? void 0 : a._id;
518
+ return s ? t || s : "";
519
+ }
520
+ function j(t) {
521
+ var a;
522
+ const s = (a = e.currentBusiness.value) == null ? void 0 : a._id;
523
+ return !t || t === s ? "" : t;
524
+ }
525
+ function z() {
526
+ var t;
517
527
  navigator.clipboard.writeText(
518
- "https://{slug}.feedme.vip".replace(
528
+ "https://{slug}.feedmedev.vip".replace(
519
529
  "{slug}",
520
- ((t = s.currentBusiness.value) == null ? void 0 : t.url) ?? ((e = s.currentBusiness.value) == null ? void 0 : e._id)
530
+ h((t = e.currentBusiness.value) == null ? void 0 : t.url)
521
531
  )
522
532
  ).then(() => {
523
533
  b.open(
524
534
  {
525
- message: n("brand.settings.management.toast.copiedUrl"),
535
+ message: r("brand.settings.management.toast.copiedUrl"),
526
536
  type: "success"
527
537
  },
528
538
  1500
529
539
  );
530
- }).catch((l) => {
540
+ }).catch((s) => {
531
541
  b.open(
532
542
  {
533
- message: n("brand.settings.management.toast.failedToCopyUrl"),
543
+ message: r("brand.settings.management.toast.failedToCopyUrl"),
534
544
  type: "error"
535
545
  },
536
546
  1500
537
547
  );
538
548
  });
539
549
  }
540
- function j() {
541
- q.promise(
550
+ function $() {
551
+ T.promise(
542
552
  async () => {
543
- var t;
544
- return a.value.url != ((t = s.currentBusiness.value) == null ? void 0 : t.url) && await h.setShortUrl(
545
- a.value.url,
546
- s.currentBusiness.value.url ?? "",
547
- s.currentBusiness.value._id
548
- ).catch((e) => {
549
- throw { message: e.message };
550
- }), await h.updateBusinessProfile(s.currentBusiness.value._id, {
551
- name: a.value.name,
552
- url: a.value.url,
553
- thumbnail: s.currentBusiness.value.thumbnail,
554
- coverPhoto: s.currentBusiness.value.coverPhoto
555
- }).then((e) => e).catch((e) => {
556
- throw { message: e.message };
553
+ var s;
554
+ const t = h(n.value.url);
555
+ return n.value.url != ((s = e.currentBusiness.value) == null ? void 0 : s.url) && await v.setShortUrl(
556
+ n.value.url,
557
+ e.currentBusiness.value.url ?? "",
558
+ e.currentBusiness.value._id
559
+ ).catch((a) => {
560
+ throw { message: a.message };
561
+ }), await v.updateBusinessProfile(e.currentBusiness.value._id, {
562
+ name: n.value.name,
563
+ url: n.value.url,
564
+ thumbnail: e.currentBusiness.value.thumbnail,
565
+ coverPhoto: e.currentBusiness.value.coverPhoto
566
+ }).then((a) => (e.currentBusiness.value.name = n.value.name, e.currentBusiness.value.url = t, a)).catch((a) => {
567
+ throw { message: a.message };
557
568
  });
558
569
  },
559
570
  {
560
- loading: n("brand.settings.management.toast.saving"),
561
- success: () => n("brand.settings.management.toast.saved"),
562
- error: (t) => t.message ?? n("brand.settings.management.toast.errorSaving")
571
+ loading: r("brand.settings.management.toast.saving"),
572
+ success: () => r("brand.settings.management.toast.saved"),
573
+ error: (t) => t.message ?? r("brand.settings.management.toast.errorSaving")
563
574
  }
564
575
  );
565
576
  }
566
- function z(t) {
567
- var l, m;
568
- const e = ((l = t.dataTransfer) == null ? void 0 : l.files[0]) ?? ((m = t.target) == null ? void 0 : m.files[0]);
569
- T.uploadImage(
570
- s.currentBusiness.value._id,
571
- `thumbnail/${(/* @__PURE__ */ new Date()).toISOString()}.${e.name.split(".").pop()}`,
572
- e
573
- ).then(async (c) => {
574
- await h.updateBusinessProfile(s.currentBusiness.value._id, {
575
- name: a.value.name,
576
- url: a.value.url,
577
- thumbnail: `https://image.feedme.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`,
578
- coverPhoto: s.currentBusiness.value.coverPhoto
579
- }), a.value.thumbnail = `https://image.feedme.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`;
577
+ function U(t) {
578
+ var a, c;
579
+ const s = ((a = t.dataTransfer) == null ? void 0 : a.files[0]) ?? ((c = t.target) == null ? void 0 : c.files[0]);
580
+ D.uploadImage(
581
+ e.currentBusiness.value._id,
582
+ `thumbnail/${(/* @__PURE__ */ new Date()).toISOString()}.${s.name.split(".").pop()}`,
583
+ s
584
+ ).then(async (u) => {
585
+ await v.updateBusinessProfile(e.currentBusiness.value._id, {
586
+ name: n.value.name,
587
+ url: n.value.url,
588
+ thumbnail: `https://image.feedmedev.cc/business/${e.currentBusiness.value._id}/${u.imagePath}`,
589
+ coverPhoto: e.currentBusiness.value.coverPhoto
590
+ }), e.currentBusiness.value.thumbnail = `https://image.feedmedev.cc/business/${e.currentBusiness.value._id}/${u.imagePath}`, n.value.thumbnail = `https://image.feedmedev.cc/business/${e.currentBusiness.value._id}/${u.imagePath}`;
580
591
  });
581
592
  }
582
- return $(
583
- () => s.currentBusiness.value,
593
+ return F(
594
+ () => e.currentBusiness.value,
584
595
  () => {
585
- var t, e, l;
586
- a.value.name = ((t = s.currentBusiness.value) == null ? void 0 : t.name) ?? "", a.value.url = ((e = s.currentBusiness.value) == null ? void 0 : e.url) ?? "", a.value.thumbnail = ((l = s.currentBusiness.value) == null ? void 0 : l.thumbnail) ?? "";
596
+ var t, s, a;
597
+ n.value.name = ((t = e.currentBusiness.value) == null ? void 0 : t.name) ?? "", n.value.url = j((s = e.currentBusiness.value) == null ? void 0 : s.url), n.value.thumbnail = ((a = e.currentBusiness.value) == null ? void 0 : a.thumbnail) ?? "";
587
598
  },
588
599
  { immediate: !0 }
589
- ), (t, e) => {
590
- var v, w;
591
- const l = d("FmButton"), m = d("FmAvatar"), c = d("FmIcon"), f = d("FmTextField");
592
- return g(), k("div", D, [
593
- o("div", K, [
594
- o("div", R, [
595
- o("h2", L, _(i(n)("brand.settings.management.details")), 1),
596
- u(l, {
600
+ ), (t, s) => {
601
+ var w, y;
602
+ const a = d("FmButton"), c = d("FmAvatar"), u = d("FmIcon"), f = d("FmTextField");
603
+ return g(), _("div", K, [
604
+ o("div", L, [
605
+ o("div", M, [
606
+ o("h2", O, B(l(r)("brand.settings.management.details")), 1),
607
+ m(a, {
597
608
  disabled: p.value,
598
- label: i(n)("brand.settings.management.save"),
599
- onClick: j
609
+ label: l(r)("brand.settings.management.save"),
610
+ onClick: $
600
611
  }, null, 8, ["disabled", "label"])
601
612
  ]),
602
- o("div", M, [
603
- o("div", O, [
604
- a.value.thumbnail ? (g(), k("img", {
613
+ o("div", G, [
614
+ o("div", H, [
615
+ n.value.thumbnail ? (g(), _("img", {
605
616
  key: 0,
606
617
  class: "h-full w-full rounded-full",
607
- src: i(I)(a.value.thumbnail)
608
- }, null, 8, G)) : (g(), F(m, {
618
+ src: l(A)(n.value.thumbnail)
619
+ }, null, 8, J)) : (g(), I(c, {
609
620
  key: 1,
610
- name: ((v = i(s).currentBusiness.value) == null ? void 0 : v.name) ?? "",
621
+ name: ((w = l(e).currentBusiness.value) == null ? void 0 : w.name) ?? "",
611
622
  class: "h-full w-full !fm-typo-en-title-md-600 bg-fm-color-primary-oats text-fm-color-primary"
612
623
  }, null, 8, ["name"])),
613
- o("button", H, [
624
+ o("button", Q, [
614
625
  o("input", {
615
626
  class: "absolute top-0 left-0 h-32 w-32 opacity-0 cursor-pointer",
616
627
  type: "file",
617
628
  accept: "image/*",
618
- onChange: z
629
+ onChange: U
619
630
  }, null, 32),
620
- u(c, {
631
+ m(u, {
621
632
  size: "md",
622
633
  name: "edit",
623
634
  color: "neutral-black",
@@ -625,36 +636,36 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
625
636
  })
626
637
  ])
627
638
  ]),
628
- o("div", J, [
629
- u(f, {
639
+ o("div", W, [
640
+ m(f, {
630
641
  class: "w-full",
631
- label: i(n)("brand.settings.management.businessName"),
632
- modelValue: a.value.name,
642
+ label: l(r)("brand.settings.management.businessName"),
643
+ modelValue: n.value.name,
633
644
  "onUpdate:modelValue": [
634
- e[0] || (e[0] = (r) => a.value.name = r),
635
- e[1] || (e[1] = (r) => p.value = !1)
645
+ s[0] || (s[0] = (i) => n.value.name = i),
646
+ s[1] || (s[1] = (i) => p.value = !1)
636
647
  ]
637
648
  }, null, 8, ["label", "modelValue"]),
638
- u(f, {
649
+ m(f, {
639
650
  class: "w-full",
640
- label: i(n)("brand.settings.management.url"),
641
- placeholder: (w = i(s).currentBusiness.value) == null ? void 0 : w._id,
642
- modelValue: a.value.url,
651
+ label: l(r)("brand.settings.management.url"),
652
+ placeholder: (y = l(e).currentBusiness.value) == null ? void 0 : y._id,
653
+ modelValue: n.value.url,
643
654
  "onUpdate:modelValue": [
644
- e[2] || (e[2] = (r) => a.value.url = r),
645
- e[3] || (e[3] = (r) => p.value = !1)
655
+ s[2] || (s[2] = (i) => n.value.url = i),
656
+ s[3] || (s[3] = (i) => p.value = !1)
646
657
  ],
647
658
  rules: [
648
- (r) => !r || i(E).test(r) || i(n)("brand.settings.management.validation.minCharacters"),
649
- (r) => !r || !i(N).includes(r) || i(n)("brand.settings.management.validation.reservedUrl")
659
+ (i) => !i || l(N).test(i) || l(r)("brand.settings.management.validation.minCharacters"),
660
+ (i) => !i || !l(R).includes(i) || l(r)("brand.settings.management.validation.reservedUrl")
650
661
  ]
651
662
  }, {
652
- append: U(() => [
653
- o("span", Q, _(x.value), 1),
654
- u(l, {
663
+ append: P(() => [
664
+ o("span", X, B(x.value), 1),
665
+ m(a, {
655
666
  icon: "content_copy",
656
667
  variant: "plain",
657
- onClick: B
668
+ onClick: z
658
669
  })
659
670
  ]),
660
671
  _: 1
@@ -667,5 +678,5 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
667
678
  }
668
679
  });
669
680
  export {
670
- te as default
681
+ re as default
671
682
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, createElementBlock as D, openBlock as I, normalizeClass as m, createElementVNode as E, toDisplayString as C, ref as x, computed as J, watch as K, resolveComponent as l, unref as h, Fragment as v, renderList as W, createVNode as B, createCommentVNode as s, createBlock as r, withCtx as P, h as L } from "vue";
2
- import { u as Z } from "./index-CPs0rWCO.js";
2
+ import { u as Z } from "./index-Bk6TOZrx.js";
3
3
  import { useCoreStore as q, useI18n as X } from "@feedmepos/mf-common";
4
4
  import { p as y } from "./views-BDWw3w14.js";
5
5
  import { useRouter as b } from "vue-router";
@@ -9400,12 +9400,12 @@ const Ln = {
9400
9400
  {
9401
9401
  path: "/",
9402
9402
  name: "brandkit",
9403
- component: () => import("./BrandkitView-kCfJD399.js")
9403
+ component: () => import("./BrandkitView-CngvcS-w.js")
9404
9404
  },
9405
9405
  {
9406
9406
  path: "/projects",
9407
9407
  name: "projects",
9408
- component: () => import("./ProjectView-DKXRpIC6.js")
9408
+ component: () => import("./ProjectView-ByxaVBFb.js")
9409
9409
  },
9410
9410
  {
9411
9411
  path: "/builder",
@@ -9414,7 +9414,7 @@ const Ln = {
9414
9414
  {
9415
9415
  path: ":templateId(.*)*",
9416
9416
  name: "builder",
9417
- component: () => import("./BuilderView-CwkHLsXN.js")
9417
+ component: () => import("./BuilderView-2uVmU1ol.js")
9418
9418
  }
9419
9419
  ]
9420
9420
  },
@@ -9427,12 +9427,12 @@ const Ln = {
9427
9427
  {
9428
9428
  path: "assets",
9429
9429
  name: "settings-assets",
9430
- component: () => import("./AssetsSettings-F-AJxGfJ.js")
9430
+ component: () => import("./AssetsSettings-DtZ6goQl.js")
9431
9431
  },
9432
9432
  {
9433
9433
  path: "management",
9434
9434
  name: "settings-management",
9435
- component: () => import("./ManagementSettings-CywfdXkh.js")
9435
+ component: () => import("./ManagementSettings-D0goBMzs.js")
9436
9436
  }
9437
9437
  ]
9438
9438
  },
@@ -14110,7 +14110,7 @@ const Eu = (e) => {
14110
14110
  ),
14111
14111
  BaListRepeater: G(
14112
14112
  V(
14113
- () => import("./ListRepeater-Cl4iMK2W.js")
14113
+ () => import("./ListRepeater-BDOH5lgb.js")
14114
14114
  )
14115
14115
  ),
14116
14116
  BaTextStyleList: G(
@@ -14130,13 +14130,13 @@ const Eu = (e) => {
14130
14130
  ),
14131
14131
  BaImageUpload: G(
14132
14132
  V(
14133
- () => import("./ImageUpload-U-gz7WBm.js")
14133
+ () => import("./ImageUpload-Bbj8q-qi.js")
14134
14134
  ),
14135
14135
  { props: ["ignoreUpdate"] }
14136
14136
  ),
14137
14137
  BaLinkButton: G(
14138
14138
  V(
14139
- () => import("./LinkButton-DNXBKGCn.js")
14139
+ () => import("./LinkButton-De-YNclu.js")
14140
14140
  )
14141
14141
  ),
14142
14142
  BaSwitch: G(
@@ -14159,7 +14159,7 @@ const Eu = (e) => {
14159
14159
  "ko-KR": { ...Hn, ...xi },
14160
14160
  "vi-VN": { ...zn, ...Ni },
14161
14161
  "ms-MY": { ...ai, ...Ki }
14162
- }, Vu = V(() => import("./App-DJtSFF0b.js"));
14162
+ }, Vu = V(() => import("./App-B5URkgR6.js"));
14163
14163
  export {
14164
14164
  hn as F,
14165
14165
  pn as a,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { c as i, d as o, i as e, r as m } from "./app-CgJDqvV4.js";
2
+ import { c as i, d as o, i as e, r as m } from "./app-gGU5lzjk.js";
3
3
  export {
4
4
  i as FmApp,
5
5
  o as FormKitPlugin,
@@ -1,9 +1,9 @@
1
- import { H as r, a as p } from "./index-C6_vWPi0.js";
1
+ import { H as r, a as p } from "./index-D0LOMBBD.js";
2
2
  const i = () => p().PWA_ICON_SERVICE_BACKEND;
3
- async function s(e, t, a) {
3
+ async function d(e, t, a) {
4
4
  const n = new FormData();
5
5
  return n.append("file", a), (await r.Put(
6
- "https://api.feedme.vip",
6
+ "https://api.feedmedev.vip",
7
7
  `/image/${e}/${t}`,
8
8
  {
9
9
  headers: {
@@ -13,9 +13,9 @@ async function s(e, t, a) {
13
13
  }
14
14
  )).data;
15
15
  }
16
- async function d(e, t) {
16
+ async function s(e, t) {
17
17
  return (await r.Delete(
18
- "https://api.feedme.vip",
18
+ "https://api.feedmedev.vip",
19
19
  `/image/${e}/${t}`
20
20
  )).data;
21
21
  }
@@ -29,8 +29,8 @@ async function o(e, t) {
29
29
  })).data;
30
30
  }
31
31
  const f = {
32
- uploadImage: s,
33
- deleteImage: d,
32
+ uploadImage: d,
33
+ deleteImage: s,
34
34
  uploadAppIcon: o
35
35
  };
36
36
  function u(e) {
@@ -1,4 +1,4 @@
1
- import { B as u } from "./index-CjXPwLCp.js";
1
+ import { B as u } from "./index-CVVQJJYY.js";
2
2
  import { defineStore as a } from "pinia";
3
3
  import { ref as r } from "vue";
4
4
  const c = a("business", () => {