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

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,10 +1,10 @@
1
1
  import { defineComponent as At, resolveComponent as ve, openBlock as ee, createElementBlock as re, createElementVNode as y, createVNode as M, withCtx as Le, normalizeStyle as tr, unref as O, createCommentVNode as De, toDisplayString as P, ref as dr, watch as Qr, withDirectives as gr, vShow as mr, Fragment as Ae, Transition as jr, createTextVNode as Qe, renderList as yr, normalizeClass as Ia } from "vue";
2
- import { B as Ma } from "./index-BiA7EdYJ.js";
2
+ import { B as Ma } from "./index-BpIP-u0D.js";
3
3
  import { K as Pa } from "./ColorPicker-CHzKbuCD.js";
4
- import { u as Ba } from "./index-DHyq9kbn.js";
4
+ import { u as Ba } from "./index-Bu7uBOtG.js";
5
5
  import { useCoreStore as Aa } from "@feedmepos/mf-common";
6
6
  import { u as Ga } from "./index-DzaJbB6y.js";
7
- import { u as Na } from "./app-EDk-Htyr.js";
7
+ import { u as Na } from "./app-p3PSkafU.js";
8
8
  import { _ as _a } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const Ha = { class: "fm-typo-en-body-md-400" }, Wa = { class: "flex gap-8 items-center" }, za = { class: "p-4 relative" }, Va = { class: "shadow-lg rounded-lg p-8" }, qa = {
10
10
  key: 0,
@@ -1,18 +1,18 @@
1
- import { resolveComponent as J, TransitionGroup as ho, defineComponent as fe, h as ya, nextTick as Cn, isRef as yo, isReactive as vo, isProxy as xo, toRaw as To, ref as ie, computed as ae, openBlock as D, createElementBlock as H, Fragment as ke, renderList as ht, createElementVNode as B, toDisplayString as pe, unref as S, createVNode as L, withCtx as Z, createBlock as te, createCommentVNode as q, watch as qe, normalizeClass as ye, withDirectives as Qt, withModifiers as va, vShow as ea, createTextVNode as Co, onMounted as _n, resolveDynamicComponent as ja, mergeProps as _o, normalizeProps as wo, guardReactiveProps as Io, normalizeStyle as So, renderSlot as Oa, provide as Eo, inject as Lo, markRaw as Ao } from "vue";
2
- import { T as Oo, u as je } from "./index-Cr6R9jiY.js";
1
+ import { resolveComponent as J, TransitionGroup as ho, defineComponent as fe, h as ya, nextTick as Cn, isRef as yo, isReactive as vo, isProxy as xo, toRaw as To, ref as oe, computed as ie, openBlock as D, createElementBlock as H, Fragment as ke, renderList as ht, createElementVNode as B, toDisplayString as pe, unref as S, createVNode as L, withCtx as Z, createBlock as te, createCommentVNode as q, watch as qe, normalizeClass as ye, withDirectives as Qt, withModifiers as va, vShow as ea, createTextVNode as Co, onMounted as _n, resolveDynamicComponent as ja, mergeProps as _o, normalizeProps as wo, guardReactiveProps as Io, normalizeStyle as So, renderSlot as Oa, provide as Eo, inject as Lo, markRaw as Ao } from "vue";
2
+ import { T as Oo, u as je } from "./index-CHoPUARg.js";
3
3
  import { defineStore as No, storeToRefs as Fo } from "pinia";
4
4
  import { p as Po } from "./views-BDWw3w14.js";
5
- import { a as Do } from "./index-Cnssd8Iy.js";
5
+ import { a as Do } from "./index-CUfUCBrv.js";
6
6
  import { v as Ha } from "./v4-ANoOI1Qw.js";
7
7
  import { _ as Bo } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
8
8
  import { B as wn } from "./BaDivider-DWZv3fqi.js";
9
- import { u as He, F as ko, a as Ro } from "./app-EDk-Htyr.js";
9
+ import { u as He, F as ko, a as Ro } from "./app-p3PSkafU.js";
10
10
  import { C as Ya, _ as $o, a as Mo } from "./main-DBrQC_KK.js";
11
11
  import { useCoreStore as Ve } from "@feedmepos/mf-common";
12
12
  import { useDialog as Zo, components as Uo, useSnackbar as Vo } from "@feedmepos/ui-library";
13
13
  import { useRouter as In } from "vue-router";
14
14
  import { u as Na } from "./index-DzaJbB6y.js";
15
- import { u as Fa } from "./index-DHyq9kbn.js";
15
+ import { u as Fa } from "./index-Bu7uBOtG.js";
16
16
  import { K as jo, V as Ho } from "./vue-sonner-PX6Req0V.js";
17
17
  const {
18
18
  Axios: Ul,
@@ -470,7 +470,7 @@ var ii = ["evt"], le = function(e, t) {
470
470
  Pe = !1;
471
471
  },
472
472
  dispatchSortableEvent: function(s) {
473
- oe({
473
+ ne({
474
474
  sortable: t,
475
475
  name: s,
476
476
  originalEvent: o
@@ -478,7 +478,7 @@ var ii = ["evt"], le = function(e, t) {
478
478
  }
479
479
  }, i));
480
480
  };
481
- function oe(n) {
481
+ function ne(n) {
482
482
  oi(_e({
483
483
  putSortable: Q,
484
484
  cloneEl: z,
@@ -636,7 +636,7 @@ O.prototype = /** @lends Sortable.prototype */
636
636
  if (hi(a), !x && !(/mousedown|pointerdown/.test(r) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && lt && l && l.tagName.toUpperCase() === "SELECT") && (l = xe(l, o.draggable, a, !1), !(l && l.animated) && Ft !== l)) {
637
637
  if (Ge = ge(l), dt = ge(l, o.draggable), typeof d == "function") {
638
638
  if (d.call(this, e, l, this)) {
639
- oe({
639
+ ne({
640
640
  sortable: t,
641
641
  rootEl: c,
642
642
  name: "filter",
@@ -650,7 +650,7 @@ O.prototype = /** @lends Sortable.prototype */
650
650
  }
651
651
  } else if (d && (d = d.split(",").some(function(u) {
652
652
  if (u = xe(c, u.trim(), a, !1), u)
653
- return oe({
653
+ return ne({
654
654
  sortable: t,
655
655
  rootEl: u,
656
656
  name: "filter",
@@ -683,7 +683,7 @@ O.prototype = /** @lends Sortable.prototype */
683
683
  o._onDrop();
684
684
  return;
685
685
  }
686
- o._disableDelayedDragEvents(), !Ka && o.nativeDraggable && (x.draggable = !0), o._triggerDragStart(e, t), oe({
686
+ o._disableDelayedDragEvents(), !Ka && o.nativeDraggable && (x.draggable = !0), o._triggerDragStart(e, t), ne({
687
687
  sortable: o,
688
688
  name: "choose",
689
689
  originalEvent: e
@@ -728,7 +728,7 @@ O.prototype = /** @lends Sortable.prototype */
728
728
  evt: t
729
729
  }), this.nativeDraggable && $(document, "dragover", ci);
730
730
  var a = this.options;
731
- !e && ce(x, a.dragClass, !1), ce(x, a.ghostClass, !0), O.active = this, e && this._appendGhost(), oe({
731
+ !e && ce(x, a.dragClass, !1), ce(x, a.ghostClass, !0), O.active = this, e && this._appendGhost(), ne({
732
732
  sortable: this,
733
733
  name: "start",
734
734
  originalEvent: t
@@ -801,7 +801,7 @@ O.prototype = /** @lends Sortable.prototype */
801
801
  return;
802
802
  }
803
803
  le("setupClone", this), O.eventCanceled || (z = Nn(x), z.draggable = !1, z.style["will-change"] = "", this._hideClone(), ce(z, this.options.chosenClass, !1), O.clone = z), a.cloneId = Dt(function() {
804
- le("clone", a), !O.eventCanceled && (a.options.removeCloneOnHide || j.insertBefore(z, x), a._hideClone(), oe({
804
+ le("clone", a), !O.eventCanceled && (a.options.removeCloneOnHide || j.insertBefore(z, x), a._hideClone(), ne({
805
805
  sortable: a,
806
806
  name: "clone"
807
807
  }));
@@ -811,7 +811,7 @@ O.prototype = /** @lends Sortable.prototype */
811
811
  _onDragOver: function(e) {
812
812
  var t = this.el, a = e.target, o, i, r, s = this.options, l = s.group, c = O.active, d = wt === l, u = s.sort, p = Q || c, m, b = this, g = !1;
813
813
  if (xa) return;
814
- function _(Ae, ne) {
814
+ function _(Ae, ae) {
815
815
  le(Ae, b, _e({
816
816
  evt: e,
817
817
  isOwner: d,
@@ -827,7 +827,7 @@ O.prototype = /** @lends Sortable.prototype */
827
827
  return Et(j, t, x, o, Ne, X(Ne), e, _t);
828
828
  },
829
829
  changed: T
830
- }, ne));
830
+ }, ae));
831
831
  }
832
832
  function y() {
833
833
  _("dragOverAnimationCapture"), b.captureAnimationState(), b !== p && p.captureAnimationState();
@@ -840,7 +840,7 @@ O.prototype = /** @lends Sortable.prototype */
840
840
  }), b !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (a === x && !x.animated || a === t && !a.animated) && (ze = null), !s.dragoverBubble && !e.rootEl && a !== document && (x.parentNode[ue]._isOutsideThisEl(e.target), !Ae && Ze(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), g = !0;
841
841
  }
842
842
  function T() {
843
- de = ge(x), Fe = ge(x, s.draggable), oe({
843
+ de = ge(x), Fe = ge(x, s.draggable), ne({
844
844
  sortable: b,
845
845
  name: "change",
846
846
  toEl: t,
@@ -909,46 +909,46 @@ O.prototype = /** @lends Sortable.prototype */
909
909
  this._nulling();
910
910
  return;
911
911
  }
912
- Je = !1, It = !1, pt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ta(this.cloneId), Ta(this._dragStartId), this.nativeDraggable && (k(document, "drop", this), k(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), lt && A(document.body, "user-select", ""), A(x, "transform", ""), e && (it && (e.cancelable && e.preventDefault(), !a.dropBubble && e.stopPropagation()), P && P.parentNode && P.parentNode.removeChild(P), (j === Y || Q && Q.lastPutMode !== "clone") && z && z.parentNode && z.parentNode.removeChild(z), x && (this.nativeDraggable && k(x, "dragend", this), ra(x), x.style["will-change"] = "", it && !Je && ce(x, Q ? Q.options.ghostClass : this.options.ghostClass, !1), ce(x, this.options.chosenClass, !1), oe({
912
+ Je = !1, It = !1, pt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ta(this.cloneId), Ta(this._dragStartId), this.nativeDraggable && (k(document, "drop", this), k(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), lt && A(document.body, "user-select", ""), A(x, "transform", ""), e && (it && (e.cancelable && e.preventDefault(), !a.dropBubble && e.stopPropagation()), P && P.parentNode && P.parentNode.removeChild(P), (j === Y || Q && Q.lastPutMode !== "clone") && z && z.parentNode && z.parentNode.removeChild(z), x && (this.nativeDraggable && k(x, "dragend", this), ra(x), x.style["will-change"] = "", it && !Je && ce(x, Q ? Q.options.ghostClass : this.options.ghostClass, !1), ce(x, this.options.chosenClass, !1), ne({
913
913
  sortable: this,
914
914
  name: "unchoose",
915
915
  toEl: Y,
916
916
  newIndex: null,
917
917
  newDraggableIndex: null,
918
918
  originalEvent: e
919
- }), j !== Y ? (de >= 0 && (oe({
919
+ }), j !== Y ? (de >= 0 && (ne({
920
920
  rootEl: Y,
921
921
  name: "add",
922
922
  toEl: Y,
923
923
  fromEl: j,
924
924
  originalEvent: e
925
- }), oe({
925
+ }), ne({
926
926
  sortable: this,
927
927
  name: "remove",
928
928
  toEl: Y,
929
929
  originalEvent: e
930
- }), oe({
930
+ }), ne({
931
931
  rootEl: Y,
932
932
  name: "sort",
933
933
  toEl: Y,
934
934
  fromEl: j,
935
935
  originalEvent: e
936
- }), oe({
936
+ }), ne({
937
937
  sortable: this,
938
938
  name: "sort",
939
939
  toEl: Y,
940
940
  originalEvent: e
941
- })), Q && Q.save()) : de !== Ge && de >= 0 && (oe({
941
+ })), Q && Q.save()) : de !== Ge && de >= 0 && (ne({
942
942
  sortable: this,
943
943
  name: "update",
944
944
  toEl: Y,
945
945
  originalEvent: e
946
- }), oe({
946
+ }), ne({
947
947
  sortable: this,
948
948
  name: "sort",
949
949
  toEl: Y,
950
950
  originalEvent: e
951
- })), O.active && ((de == null || de === -1) && (de = Ge, Fe = dt), oe({
951
+ })), O.active && ((de == null || de === -1) && (de = Ge, Fe = dt), ne({
952
952
  sortable: this,
953
953
  name: "end",
954
954
  toEl: Y,
@@ -5303,7 +5303,7 @@ function sr(n) {
5303
5303
  return e(n);
5304
5304
  }
5305
5305
  const Re = No("editor", () => {
5306
- const n = ie({
5306
+ const n = oe({
5307
5307
  node: [],
5308
5308
  selectedNode: null,
5309
5309
  copied: null,
@@ -5420,7 +5420,7 @@ function xt() {
5420
5420
  const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-color-neutral-white py-16 px-24 border-r border-fm-color-neutral-gray-200 overflow-y-auto" }, cr = { class: "flex flex-col gap-12" }, dr = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ur = { class: "flex flex-col gap-8 justify-center items-center bg-fm-color-neutral-gray-100 py-12 px-16 cursor-grab rounded-md" }, pr = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary text-center" }, fr = /* @__PURE__ */ fe({
5421
5421
  __name: "ElementSidebar",
5422
5422
  setup(n) {
5423
- const e = xt(), t = je(), { t: a } = He(), o = ae(
5423
+ const e = xt(), t = je(), { t: a } = He(), o = ie(
5424
5424
  () => {
5425
5425
  var s;
5426
5426
  return ((s = t.state.selectedTemplate) == null ? void 0 : s.group) || "default";
@@ -5429,7 +5429,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5429
5429
  function i(s) {
5430
5430
  return e.buildNewNode(s.component, {});
5431
5431
  }
5432
- const r = ae(() => on.filter(
5432
+ const r = ie(() => on.filter(
5433
5433
  (s) => s.group == o.value || s.group == "all"
5434
5434
  ));
5435
5435
  return (s, l) => (D(), H("div", lr, [
@@ -5464,7 +5464,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5464
5464
  }), mr = { class: "absolute z-10 flex items-center gap-8 bottom-24 left-1/2 transform -translate-x-1/2 bg-fm-color-neutral-white border border-fm-color-neutral-gray-100 rounded-lg p-8 shadow-light-600" }, br = /* @__PURE__ */ fe({
5465
5465
  __name: "EditorFloatingToobar",
5466
5466
  setup(n) {
5467
- const e = Re(), { state: t } = Fo(e), a = xt(), o = ae(
5467
+ const e = Re(), { state: t } = Fo(e), a = xt(), o = ie(
5468
5468
  () => t.value.selectedNode && t.value.node.length > 0
5469
5469
  ), i = [
5470
5470
  // {
@@ -5521,7 +5521,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5521
5521
  }), gr = { class: "flex items-center gap-8 select-none px-8 py-8 rounded-md active:bg-fm-color-opacity-md transition-all duration-500 cursor-pointer" }, hr = { class: "bg-fm-color-neutral-white px-8 py-8 border border-fm-color-opacity-sm rounded-sm" }, yr = { class: "py-8 px-12 w-full flex items-center justify-between gap-8 transition-all duration-500" }, vr = { class: "flex items-center gap-8" }, xr = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Tr = { class: "flex items-center gap-8" }, Cr = { class: "overflow-y-auto" }, _r = { class: "flex items-center gap-8" }, wr = { class: "fm-typo-en-body-md-400 text-fm-color-primary" }, Ir = { class: "fm-typo-en-body-md-400 text-fm-color-primary" }, Sr = /* @__PURE__ */ fe({
5522
5522
  __name: "TemplatePicker",
5523
5523
  setup(n) {
5524
- const e = ie(!1), t = ie(""), a = ie(""), o = Ve(), i = je(), r = Re(), s = xt(), l = In(), c = Zo(), d = Na(), { t: u } = He(), p = ae(
5524
+ const e = oe(!1), t = oe(""), a = oe(""), o = Ve(), i = je(), r = Re(), s = xt(), l = In(), c = Zo(), d = Na(), { t: u } = He(), p = ie(
5525
5525
  () => i.state.allTemplates.filter(
5526
5526
  (h) => {
5527
5527
  var C;
@@ -5550,7 +5550,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5550
5550
  };
5551
5551
  function b(h) {
5552
5552
  e.value = !1;
5553
- const C = ie(!1), w = async () => {
5553
+ const C = oe(!1), w = async () => {
5554
5554
  d.promise(
5555
5555
  async () => {
5556
5556
  C.value = !0, i.saveTemplate(
@@ -5621,7 +5621,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5621
5621
  }
5622
5622
  function v(h) {
5623
5623
  e.value = !1;
5624
- const C = ie(h.templateAlias), w = ie(!1), I = ae(
5624
+ const C = oe(h.templateAlias), w = oe(!1), I = ie(
5625
5625
  () => C.value === h.templateAlias
5626
5626
  );
5627
5627
  c.open({
@@ -5656,7 +5656,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5656
5656
  }
5657
5657
  function T(h) {
5658
5658
  e.value = !1;
5659
- const C = ie(!1);
5659
+ const C = oe(!1);
5660
5660
  c.open({
5661
5661
  title: u("brand.template.picker.deleteTitle"),
5662
5662
  message: u("brand.template.picker.deleteMessage", {
@@ -5954,7 +5954,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5954
5954
  }), Er = { class: "w-[280px]" }, Lr = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary py-4 px-8" }, Ar = /* @__PURE__ */ fe({
5955
5955
  __name: "TemplateShareMenu",
5956
5956
  setup(n) {
5957
- const e = ie(!1), t = Re(), a = Fa(), o = je(), i = Ve(), r = Na(), { t: s } = He(), { namespace: l } = Ve(), c = [
5957
+ const e = oe(!1), t = Re(), a = Fa(), o = je(), i = Ve(), r = Na(), { t: s } = He(), { namespace: l } = Ve(), c = [
5958
5958
  "6620bdb2823d92001b3a966f",
5959
5959
  "5dc8df2eb3de6a0021295d8f",
5960
5960
  "5d9b00862cb0c4002146e69a",
@@ -5987,7 +5987,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5987
5987
  "678f134f13a27b001c72b1e7",
5988
5988
  "5f76a6ffcd6730001b320816",
5989
5989
  "67ff36e8b11f39001c012541"
5990
- ], d = ae(() => l.value === "dev" || a.state.isPremium || c.includes(i.currentBusiness.value._id));
5990
+ ], d = ie(() => l.value === "dev" || a.state.isPremium || c.includes(i.currentBusiness.value._id));
5991
5991
  function u(y, v) {
5992
5992
  return !y || !d.value ? !1 : (!y.group || y.group == "default") && v == "home" ? y.isPublished && o.state.activeTemplateId !== y.templateId : y.group == "member" && v == "member" ? y.isPublished && o.state.activeMemberTemplateId !== y.templateId : !1;
5993
5993
  }
@@ -5998,7 +5998,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5998
5998
  if (v == "member")
5999
5999
  return y.isPublished ? o.state.activeMemberTemplateId === y.templateId ? s("brand.template.shareMenu.thisTemplateSetAsMemberHomepage") : "" : s("brand.template.shareMenu.templateNotPublished");
6000
6000
  }
6001
- const m = ae(() => {
6001
+ const m = ie(() => {
6002
6002
  var y, v, T, h, C, w, I, E;
6003
6003
  return [
6004
6004
  {
@@ -7634,7 +7634,7 @@ Tt.toString = Ua.bind(null, function(n, e, t) {
7634
7634
  const hs = { class: "flex items-center justify-center" }, ys = { class: "w-full flex gap-8 justify-end items-center" }, vs = /* @__PURE__ */ fe({
7635
7635
  __name: "PreviewQrCode",
7636
7636
  setup(n) {
7637
- const e = ie(), t = Ve(), a = je(), { t: o } = He(), i = ie(!1), r = ae(() => `${`${"https://{slug}.feedmedev.vip".replace("{slug}", `${t.currentBusiness.value.url ?? t.currentBusiness.value._id}`)}`}/preview/${a.state.selectedTemplate.templateId}`);
7637
+ const e = oe(), t = Ve(), a = je(), { t: o } = He(), i = oe(!1), r = ie(() => `${`${"https://{slug}.feedmedev.vip".replace("{slug}", `${t.currentBusiness.value.url ?? t.currentBusiness.value._id}`)}`}/preview/${a.state.selectedTemplate.templateId}`);
7638
7638
  function s() {
7639
7639
  jo.promise(navigator.clipboard.writeText(r.value), {
7640
7640
  loading: o("brand.template.shareMenu.copying"),
@@ -7803,15 +7803,15 @@ const ws = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
7803
7803
  }, As = /* @__PURE__ */ fe({
7804
7804
  __name: "Editor",
7805
7805
  setup(n) {
7806
- const e = Re(), t = Ve(), a = Fa(), o = ae({
7806
+ const e = Re(), t = Ve(), a = Fa(), o = ie({
7807
7807
  get() {
7808
7808
  return e.state.node[0].children;
7809
7809
  },
7810
7810
  set(l) {
7811
7811
  e.setNodeList(l);
7812
7812
  }
7813
- }), i = ae(() => e.state.node[0]), r = ae(() => e.state.selectedNode);
7814
- ie(!1);
7813
+ }), i = ie(() => e.state.node[0]), r = ie(() => e.state.selectedNode);
7814
+ oe(!1);
7815
7815
  function s(l) {
7816
7816
  e.setCurrentNode(l);
7817
7817
  }
@@ -8317,27 +8317,27 @@ class zt extends qt {
8317
8317
  const K = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : p, G = T && I !== p && this.options.updateMissing;
8318
8318
  if (N || M || G) {
8319
8319
  if (this.logger.log(G ? "updateKey" : "missingKey", c, l, r, G ? I : p), i) {
8320
- const ne = this.resolve(r, {
8320
+ const ae = this.resolve(r, {
8321
8321
  ...t,
8322
8322
  keySeparator: !1
8323
8323
  });
8324
- ne && ne.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
8324
+ ae && ae.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
8325
8325
  }
8326
8326
  let se = [];
8327
8327
  const Ie = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
8328
8328
  if (this.options.saveMissingTo === "fallback" && Ie && Ie[0])
8329
- for (let ne = 0; ne < Ie.length; ne++)
8330
- se.push(Ie[ne]);
8329
+ for (let ae = 0; ae < Ie.length; ae++)
8330
+ se.push(Ie[ae]);
8331
8331
  else this.options.saveMissingTo === "all" ? se = this.languageUtils.toResolveHierarchy(t.lng || this.language) : se.push(t.lng || this.language);
8332
- const Ae = (ne, Oe, Ne) => {
8332
+ const Ae = (ae, Oe, Ne) => {
8333
8333
  var Va;
8334
8334
  const _t = T && Ne !== p ? Ne : K;
8335
- this.options.missingKeyHandler ? this.options.missingKeyHandler(ne, l, Oe, _t, G, t) : (Va = this.backendConnector) != null && Va.saveMissing && this.backendConnector.saveMissing(ne, l, Oe, _t, G, t), this.emit("missingKey", ne, l, Oe, p);
8335
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(ae, l, Oe, _t, G, t) : (Va = this.backendConnector) != null && Va.saveMissing && this.backendConnector.saveMissing(ae, l, Oe, _t, G, t), this.emit("missingKey", ae, l, Oe, p);
8336
8336
  };
8337
- this.options.saveMissing && (this.options.saveMissingPlurals && v ? se.forEach((ne) => {
8338
- const Oe = this.pluralResolver.getSuffixes(ne, t);
8337
+ this.options.saveMissing && (this.options.saveMissingPlurals && v ? se.forEach((ae) => {
8338
+ const Oe = this.pluralResolver.getSuffixes(ae, t);
8339
8339
  w && t[`defaultValue${this.options.pluralSeparator}zero`] && Oe.indexOf(`${this.options.pluralSeparator}zero`) < 0 && Oe.push(`${this.options.pluralSeparator}zero`), Oe.forEach((Ne) => {
8340
- Ae([ne], r + Ne, t[`defaultValue${Ne}`] || I);
8340
+ Ae([ae], r + Ne, t[`defaultValue${Ne}`] || I);
8341
8341
  });
8342
8342
  }) : Ae(se, r, I));
8343
8343
  }
@@ -10865,36 +10865,35 @@ const Ws = [
10865
10865
  title: {}
10866
10866
  },
10867
10867
  setup(n) {
10868
- const { t: e } = He(), t = ie([]), a = ie(""), o = n;
10868
+ const { t: e } = He(), t = oe([]), a = oe("");
10869
10869
  Eo(go, {
10870
- register(s) {
10871
- t.value = [...t.value, s].map(
10872
- (l) => ({
10873
- ...l,
10874
- title: e(l.title)
10870
+ register(i) {
10871
+ t.value = [...t.value, i].map(
10872
+ (r) => ({
10873
+ ...r,
10874
+ title: e(r.title)
10875
10875
  })
10876
- ), t.value.length === 1 && (a.value = s.value);
10876
+ ), t.value.length === 1 && (a.value = i.value);
10877
10877
  },
10878
- currentTab: ae(() => a.value)
10878
+ currentTab: ie(() => a.value)
10879
10879
  });
10880
- const i = ae(() => e(o.title));
10881
- function r(s) {
10882
- a.value = s;
10880
+ function o(i) {
10881
+ a.value = i;
10883
10882
  }
10884
- return (s, l) => {
10885
- const c = J("FmTab");
10883
+ return (i, r) => {
10884
+ const s = J("FmTab");
10886
10885
  return D(), H("div", null, [
10887
- B("div", bl, pe(i.value), 1),
10886
+ B("div", bl, pe(i.title), 1),
10888
10887
  L(wn),
10889
10888
  B("div", gl, [
10890
- (D(!0), H(ke, null, ht(t.value, (d) => (D(), te(c, {
10889
+ (D(!0), H(ke, null, ht(t.value, (l) => (D(), te(s, {
10891
10890
  "model-value": a.value,
10892
- "onUpdate:modelValue": l[0] || (l[0] = (u) => r(u)),
10893
- label: d.title,
10894
- value: d.value
10891
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => o(c)),
10892
+ label: l.title,
10893
+ value: l.value
10895
10894
  }, null, 8, ["model-value", "label", "value"]))), 256))
10896
10895
  ]),
10897
- Oa(s.$slots, "default")
10896
+ Oa(i.$slots, "default")
10898
10897
  ]);
10899
10898
  };
10900
10899
  }
@@ -10920,11 +10919,11 @@ const Ws = [
10920
10919
  }), Tl = { class: "h-full flex-shrink-0 w-[308px] bg-fm-color-neutral-white border-l border-fm-color-neutral-gray-200 overflow-y-auto" }, Cl = /* @__PURE__ */ fe({
10921
10920
  __name: "Inspector",
10922
10921
  setup(n) {
10923
- const e = Re(), t = ae(() => e.state.selectedNode), a = ae(() => {
10922
+ const e = Re(), t = ie(() => e.state.selectedNode), a = ie(() => {
10924
10923
  var c;
10925
10924
  const l = ((c = t.value) == null ? void 0 : c.type) ?? null;
10926
10925
  return l !== null ? ul[l] : [];
10927
- }), o = ae(() => {
10926
+ }), o = ie(() => {
10928
10927
  var l;
10929
10928
  return (l = t.value) == null ? void 0 : l.props;
10930
10929
  }), i = Ao({
@@ -10987,7 +10986,7 @@ const Ws = [
10987
10986
  templateId: {}
10988
10987
  },
10989
10988
  setup(n) {
10990
- const e = Ve(), t = Re(), a = je(), o = Fa(), i = In(), r = xt(), s = ie(!0);
10989
+ const e = Ve(), t = Re(), a = je(), o = Fa(), i = In(), r = xt(), s = oe(!0);
10991
10990
  async function l() {
10992
10991
  var d, u;
10993
10992
  s.value = !0, e.currentBusiness.value && ((d = e.currentBusiness.value) != null && d._id && await a.getAllTemplates(e.currentBusiness.value._id), (u = e.currentBusiness.value) != null && u.url && await o.getGlobalSlug(e.currentBusiness.value.url), c());
@@ -1,5 +1,5 @@
1
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-EDk-Htyr.js";
2
+ import { u as i } from "./app-p3PSkafU.js";
3
3
  const x = /* @__PURE__ */ s({
4
4
  __name: "ButtonGroup",
5
5
  props: {
@@ -1,5 +1,5 @@
1
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-C67NP--2.js";
2
+ import { r as g, I as h } from "./image-Bsuqx0Uc.js";
3
3
  import { useCoreStore as I } from "@feedmepos/mf-common";
4
4
  import "./main-DBrQC_KK.js";
5
5
  import { _ as $ } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
@@ -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-Cr6R9jiY.js";
4
+ import { u as $ } from "./index-CHoPUARg.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-EDk-Htyr.js";
2
+ import { F as f } from "./app-p3PSkafU.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
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 } from "@feedmepos/mf-common";
3
- import { B as h } from "./index-BiA7EdYJ.js";
3
+ import { B as h } from "./index-BpIP-u0D.js";
4
4
  import { K as V } from "./vue-sonner-PX6Req0V.js";
5
- import { r as q, I } from "./image-C67NP--2.js";
5
+ import { r as q, I } from "./image-Bsuqx0Uc.js";
6
6
  import { useSnackbar as T } from "@feedmepos/ui-library";
7
- import { u as A } from "./app-EDk-Htyr.js";
7
+ import { u as A } from "./app-p3PSkafU.js";
8
8
  const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
9
9
  "brand",
10
10
  "home",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as De, openBlock as R, createElementBlock as k, normalizeClass as he, createElementVNode as M, toDisplayString as p, 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-Cr6R9jiY.js";
2
+ import { u as ue } from "./index-CHoPUARg.js";
3
3
  import { useCoreStore as Te } from "@feedmepos/mf-common";
4
4
  import { p as Oe } from "./views-BDWw3w14.js";
5
5
  import { useRouter as Ae } from "vue-router";
6
6
  import { g as Ee, c as He } from "./_commonjsHelpers-DaMA6jEr.js";
7
7
  import { useDialog as Me, components as le } from "@feedmepos/ui-library";
8
8
  import { K as se } from "./vue-sonner-PX6Req0V.js";
9
- import { u as Ge } from "./app-EDk-Htyr.js";
9
+ import { u as Ge } from "./app-p3PSkafU.js";
10
10
  var Ce = { exports: {} };
11
11
  (function(_, N) {
12
12
  (function(D, E) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as F, ref as y, computed as h, onMounted as I, resolveComponent as p, openBlock as n, createBlock as d, withCtx as v, createVNode as x, createElementVNode as B, createElementBlock as r, toDisplayString as _, createCommentVNode as c, Fragment as N, renderList as V, normalizeClass as z, createTextVNode as P } from "vue";
2
- import { u as S } from "./app-EDk-Htyr.js";
2
+ import { u as S } from "./app-p3PSkafU.js";
3
3
  const $ = { class: "min-w-[100px] w-full flex items-center justify-between" }, j = ["value"], E = {
4
4
  key: 1,
5
5
  class: "h-full fm-typo-en-body-lg-400 text-fm-color-typo-primary select-none cursor-pointer"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as u, resolveComponent as i, openBlock as c, createElementBlock as p, createElementVNode as f, toDisplayString as d, unref as e, createVNode as s } from "vue";
2
2
  import { useRoute as b, useRouter as g, RouterView as _ } from "vue-router";
3
- import { u as v } from "./app-EDk-Htyr.js";
3
+ import { u as v } from "./app-p3PSkafU.js";
4
4
  const w = { class: "h-full w-full p-24 bg-fm-color-neutral-white overflow-auto flex flex-col gap-24" }, h = { class: "fm-typo-en-title-md-600 text-fm-color-typo-primary" }, B = /* @__PURE__ */ u({
5
5
  __name: "SettingsView",
6
6
  setup(x) {