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

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,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 oe, computed as ie, openBlock as D, createElementBlock as H, Fragment as ke, renderList as ht, createElementVNode as B, toDisplayString as pe, unref as I, 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-B36QBcNq.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 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";
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-CX1OCjQw.js";
5
+ import { a as Do } from "./index-Cnssd8Iy.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-x8DBcMsK.js";
9
+ import { u as He, F as ko, a as Ro } from "./app-EDk-Htyr.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-DGVhAq_7.js";
15
+ import { u as Fa } from "./index-DHyq9kbn.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
- ne({
473
+ oe({
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 ne(n) {
481
+ function oe(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
- ne({
639
+ oe({
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 ne({
653
+ return oe({
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), ne({
686
+ o._disableDelayedDragEvents(), !Ka && o.nativeDraggable && (x.draggable = !0), o._triggerDragStart(e, t), oe({
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(), ne({
731
+ !e && ce(x, a.dragClass, !1), ce(x, a.ghostClass, !0), O.active = this, e && this._appendGhost(), oe({
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(), ne({
804
+ le("clone", a), !O.eventCanceled && (a.options.removeCloneOnHide || j.insertBefore(z, x), a._hideClone(), oe({
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, ae) {
814
+ function _(Ae, ne) {
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
- }, ae));
830
+ }, ne));
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), ne({
843
+ de = ge(x), Fe = ge(x, s.draggable), oe({
844
844
  sortable: b,
845
845
  name: "change",
846
846
  toEl: t,
@@ -870,8 +870,8 @@ O.prototype = /** @lends Sortable.prototype */
870
870
  return y(), t.insertBefore(x, C), Y = t, T(), v(!0);
871
871
  } else if (a.parentNode === t) {
872
872
  i = X(a);
873
- var w = 0, S, E = x.parentNode !== t, R = !si(x.animated && x.toRect || o, a.animated && a.toRect || i, m), U = m ? "top" : "left", M = Ja(a, "top", "top") || Ja(x, "top", "top"), N = M ? M.scrollTop : void 0;
874
- ze !== a && (S = i[U], pt = !1, It = !R && s.invertSwap || E), w = mi(e, a, i, m, R ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, It, ze === a);
873
+ var w = 0, I, E = x.parentNode !== t, R = !si(x.animated && x.toRect || o, a.animated && a.toRect || i, m), U = m ? "top" : "left", M = Ja(a, "top", "top") || Ja(x, "top", "top"), N = M ? M.scrollTop : void 0;
874
+ ze !== a && (I = i[U], pt = !1, It = !R && s.invertSwap || E), w = mi(e, a, i, m, R ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, It, ze === a);
875
875
  var V;
876
876
  if (w !== 0) {
877
877
  var K = ge(x);
@@ -886,7 +886,7 @@ O.prototype = /** @lends Sortable.prototype */
886
886
  se = w === 1;
887
887
  var Ie = Et(j, t, x, o, a, i, e, se);
888
888
  if (Ie !== !1)
889
- return (Ie === 1 || Ie === -1) && (se = Ie === 1), xa = !0, setTimeout(ui, 30), y(), se && !G ? t.appendChild(x) : a.parentNode.insertBefore(x, se ? G : a), M && On(M, 0, N - M.scrollTop), Y = x.parentNode, S !== void 0 && !It && (Pt = Math.abs(S - X(a)[U])), T(), v(!0);
889
+ return (Ie === 1 || Ie === -1) && (se = Ie === 1), xa = !0, setTimeout(ui, 30), y(), se && !G ? t.appendChild(x) : a.parentNode.insertBefore(x, se ? G : a), M && On(M, 0, N - M.scrollTop), Y = x.parentNode, I !== void 0 && !It && (Pt = Math.abs(I - X(a)[U])), T(), v(!0);
890
890
  }
891
891
  if (t.contains(x))
892
892
  return v(!1);
@@ -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), ne({
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({
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 && (ne({
919
+ }), j !== Y ? (de >= 0 && (oe({
920
920
  rootEl: Y,
921
921
  name: "add",
922
922
  toEl: Y,
923
923
  fromEl: j,
924
924
  originalEvent: e
925
- }), ne({
925
+ }), oe({
926
926
  sortable: this,
927
927
  name: "remove",
928
928
  toEl: Y,
929
929
  originalEvent: e
930
- }), ne({
930
+ }), oe({
931
931
  rootEl: Y,
932
932
  name: "sort",
933
933
  toEl: Y,
934
934
  fromEl: j,
935
935
  originalEvent: e
936
- }), ne({
936
+ }), oe({
937
937
  sortable: this,
938
938
  name: "sort",
939
939
  toEl: Y,
940
940
  originalEvent: e
941
- })), Q && Q.save()) : de !== Ge && de >= 0 && (ne({
941
+ })), Q && Q.save()) : de !== Ge && de >= 0 && (oe({
942
942
  sortable: this,
943
943
  name: "update",
944
944
  toEl: Y,
945
945
  originalEvent: e
946
- }), ne({
946
+ }), oe({
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), ne({
951
+ })), O.active && ((de == null || de === -1) && (de = Ge, Fe = dt), oe({
952
952
  sortable: this,
953
953
  name: "end",
954
954
  toEl: Y,
@@ -1216,9 +1216,9 @@ var ca = An(function(n, e, t, a) {
1216
1216
  Ca !== t && (Ca = t, Bt(), rt = e.scroll, d = e.scrollFn, rt === !0 && (rt = De(t, !0)));
1217
1217
  var u = 0, p = rt;
1218
1218
  do {
1219
- var m = p, b = X(m), g = b.top, _ = b.bottom, y = b.left, v = b.right, T = b.width, h = b.height, C = void 0, w = void 0, S = m.scrollWidth, E = m.scrollHeight, R = A(m), U = m.scrollLeft, M = m.scrollTop;
1220
- m === l ? (C = T < S && (R.overflowX === "auto" || R.overflowX === "scroll" || R.overflowX === "visible"), w = h < E && (R.overflowY === "auto" || R.overflowY === "scroll" || R.overflowY === "visible")) : (C = T < S && (R.overflowX === "auto" || R.overflowX === "scroll"), w = h < E && (R.overflowY === "auto" || R.overflowY === "scroll"));
1221
- var N = C && (Math.abs(v - o) <= r && U + T < S) - (Math.abs(y - o) <= r && !!U), V = w && (Math.abs(_ - i) <= r && M + h < E) - (Math.abs(g - i) <= r && !!M);
1219
+ var m = p, b = X(m), g = b.top, _ = b.bottom, y = b.left, v = b.right, T = b.width, h = b.height, C = void 0, w = void 0, I = m.scrollWidth, E = m.scrollHeight, R = A(m), U = m.scrollLeft, M = m.scrollTop;
1220
+ m === l ? (C = T < I && (R.overflowX === "auto" || R.overflowX === "scroll" || R.overflowX === "visible"), w = h < E && (R.overflowY === "auto" || R.overflowY === "scroll" || R.overflowY === "visible")) : (C = T < I && (R.overflowX === "auto" || R.overflowX === "scroll"), w = h < E && (R.overflowY === "auto" || R.overflowY === "scroll"));
1221
+ var N = C && (Math.abs(v - o) <= r && U + T < I) - (Math.abs(y - o) <= r && !!U), V = w && (Math.abs(_ - i) <= r && M + h < E) - (Math.abs(g - i) <= r && !!M);
1222
1222
  if (!W[u])
1223
1223
  for (var K = 0; K <= u; K++)
1224
1224
  W[K] || (W[K] = {});
@@ -5303,7 +5303,7 @@ function sr(n) {
5303
5303
  return e(n);
5304
5304
  }
5305
5305
  const Re = No("editor", () => {
5306
- const n = oe({
5306
+ const n = ie({
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 = ie(
5423
+ const e = xt(), t = je(), { t: a } = He(), o = ae(
5424
5424
  () => {
5425
5425
  var s;
5426
5426
  return ((s = t.state.selectedTemplate) == null ? void 0 : s.group) || "default";
@@ -5429,13 +5429,13 @@ 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 = ie(() => on.filter(
5432
+ const r = ae(() => on.filter(
5433
5433
  (s) => s.group == o.value || s.group == "all"
5434
5434
  ));
5435
5435
  return (s, l) => (D(), H("div", lr, [
5436
5436
  (D(!0), H(ke, null, ht(r.value, (c, d) => (D(), H("section", cr, [
5437
- B("div", dr, pe(I(a)(c.title)), 1),
5438
- L(I(zn), {
5437
+ B("div", dr, pe(S(a)(c.title)), 1),
5438
+ L(S(zn), {
5439
5439
  list: c.children,
5440
5440
  group: { name: "components", pull: "clone", put: !1 },
5441
5441
  sort: !1,
@@ -5449,12 +5449,12 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5449
5449
  class: "text-[24px] text-fm-color-typo-secondary",
5450
5450
  name: u.icon
5451
5451
  }, null, 8, ["name"]),
5452
- B("div", pr, pe(I(a)(u.title)), 1)
5452
+ B("div", pr, pe(S(a)(u.title)), 1)
5453
5453
  ])
5454
5454
  ]),
5455
5455
  _: 2
5456
5456
  }, 1032, ["list"]),
5457
- d !== I(on).length - 1 ? (D(), te(wn, {
5457
+ d !== S(on).length - 1 ? (D(), te(wn, {
5458
5458
  key: 0,
5459
5459
  class: "mt-12"
5460
5460
  })) : q("", !0)
@@ -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 = ie(
5467
+ const e = Re(), { state: t } = Fo(e), a = xt(), o = ae(
5468
5468
  () => t.value.selectedNode && t.value.node.length > 0
5469
5469
  ), i = [
5470
5470
  // {
@@ -5513,7 +5513,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5513
5513
  onClick: c.action,
5514
5514
  variant: "tertiary",
5515
5515
  "icon-color": c.iconColor,
5516
- disabled: !I(t).selectedNode || c.disabled()
5516
+ disabled: !S(t).selectedNode || c.disabled()
5517
5517
  }, null, 8, ["prepend-icon", "onClick", "icon-color", "disabled"])), 64))
5518
5518
  ]);
5519
5519
  };
@@ -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 = 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(
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(
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 = oe(!1), w = async () => {
5553
+ const C = ie(!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 = oe(h.templateAlias), w = oe(!1), S = ie(
5624
+ const C = ie(h.templateAlias), w = ie(!1), I = ae(
5625
5625
  () => C.value === h.templateAlias
5626
5626
  );
5627
5627
  c.open({
@@ -5629,7 +5629,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5629
5629
  primaryActions: {
5630
5630
  text: u("brand.template.picker.confirm"),
5631
5631
  close: !1,
5632
- disabled: S,
5632
+ disabled: I,
5633
5633
  isLoading: w
5634
5634
  },
5635
5635
  secondaryActions: { text: u("brand.template.picker.cancel"), close: !0 },
@@ -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 = oe(!1);
5659
+ const C = ie(!1);
5660
5660
  c.open({
5661
5661
  title: u("brand.template.picker.deleteTitle"),
5662
5662
  message: u("brand.template.picker.deleteMessage", {
@@ -5699,7 +5699,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5699
5699
  () => {
5700
5700
  }
5701
5701
  ), (h, C) => {
5702
- const w = J("FmIcon"), S = J("FmChip"), E = J("FmMenuDivider"), R = J("FmSearch"), U = J("FmMenuItem"), M = J("FmPopover");
5702
+ const w = J("FmIcon"), I = J("FmChip"), E = J("FmMenuDivider"), R = J("FmSearch"), U = J("FmMenuItem"), M = J("FmPopover");
5703
5703
  return D(), te(M, {
5704
5704
  width: 300,
5705
5705
  "max-height": 400,
@@ -5710,10 +5710,10 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5710
5710
  var N, V;
5711
5711
  return [
5712
5712
  B("div", gr, [
5713
- (N = I(i).state.selectedTemplate) != null && N.isPublished && ![
5714
- I(i).state.activeTemplateId,
5715
- I(i).state.activeMemberTemplateId
5716
- ].includes(I(i).state.selectedTemplate.templateId) ? (D(), te(S, {
5713
+ (N = S(i).state.selectedTemplate) != null && N.isPublished && ![
5714
+ S(i).state.activeTemplateId,
5715
+ S(i).state.activeMemberTemplateId
5716
+ ].includes(S(i).state.selectedTemplate.templateId) ? (D(), te(I, {
5717
5717
  key: 0,
5718
5718
  class: "bg-fm-color-system-success-100",
5719
5719
  compact: ""
@@ -5727,13 +5727,13 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5727
5727
  ]),
5728
5728
  _: 1
5729
5729
  })) : q("", !0),
5730
- I(i).state.selectedTemplate && [
5731
- I(i).state.activeTemplateId,
5732
- I(i).state.activeMemberTemplateId
5733
- ].includes(I(i).state.selectedTemplate.templateId) ? (D(), te(S, {
5730
+ S(i).state.selectedTemplate && [
5731
+ S(i).state.activeTemplateId,
5732
+ S(i).state.activeMemberTemplateId
5733
+ ].includes(S(i).state.selectedTemplate.templateId) ? (D(), te(I, {
5734
5734
  key: 1,
5735
5735
  class: ye([{
5736
- grayscale: !I(i).state.selectedTemplate.isPublished
5736
+ grayscale: !S(i).state.selectedTemplate.isPublished
5737
5737
  }, "bg-fm-color-system-warning-100"]),
5738
5738
  compact: ""
5739
5739
  }, {
@@ -5742,16 +5742,16 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5742
5742
  size: "sm",
5743
5743
  class: "text-fm-color-primary",
5744
5744
  outline: "",
5745
- name: I(i).state.selectedTemplate.templateId == I(i).state.activeTemplateId ? "home" : "account_circle"
5745
+ name: S(i).state.selectedTemplate.templateId == S(i).state.activeTemplateId ? "home" : "account_circle"
5746
5746
  }, null, 8, ["name"])
5747
5747
  ]),
5748
5748
  _: 1
5749
5749
  }, 8, ["class"])) : q("", !0),
5750
5750
  B("p", {
5751
5751
  class: ye({
5752
- italic: !I(r).isSaved()
5752
+ italic: !S(r).isSaved()
5753
5753
  })
5754
- }, pe((V = I(i).state.selectedTemplate) == null ? void 0 : V.templateAlias), 3),
5754
+ }, pe((V = S(i).state.selectedTemplate) == null ? void 0 : V.templateAlias), 3),
5755
5755
  L(w, {
5756
5756
  name: e.value ? "keyboard_arrow_up" : "keyboard_arrow_down"
5757
5757
  }, null, 8, ["name"])
@@ -5760,13 +5760,13 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5760
5760
  }),
5761
5761
  default: Z(() => [
5762
5762
  B("div", hr, [
5763
- I(i).state.selectedTemplate ? (D(), H(ke, { key: 0 }, [
5763
+ S(i).state.selectedTemplate ? (D(), H(ke, { key: 0 }, [
5764
5764
  B("div", yr, [
5765
5765
  B("div", vr, [
5766
- I(i).state.selectedTemplate.isPublished && ![
5767
- I(i).state.activeTemplateId,
5768
- I(i).state.activeMemberTemplateId
5769
- ].includes(I(i).state.selectedTemplate.templateId) ? (D(), te(S, {
5766
+ S(i).state.selectedTemplate.isPublished && ![
5767
+ S(i).state.activeTemplateId,
5768
+ S(i).state.activeMemberTemplateId
5769
+ ].includes(S(i).state.selectedTemplate.templateId) ? (D(), te(I, {
5770
5770
  key: 0,
5771
5771
  class: "bg-fm-color-system-success-100",
5772
5772
  compact: ""
@@ -5781,12 +5781,12 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5781
5781
  _: 1
5782
5782
  })) : q("", !0),
5783
5783
  [
5784
- I(i).state.activeTemplateId,
5785
- I(i).state.activeMemberTemplateId
5786
- ].includes(I(i).state.selectedTemplate.templateId) ? (D(), te(S, {
5784
+ S(i).state.activeTemplateId,
5785
+ S(i).state.activeMemberTemplateId
5786
+ ].includes(S(i).state.selectedTemplate.templateId) ? (D(), te(I, {
5787
5787
  key: 1,
5788
5788
  class: ye([{
5789
- grayscale: !I(i).state.selectedTemplate.isPublished
5789
+ grayscale: !S(i).state.selectedTemplate.isPublished
5790
5790
  }, "bg-fm-color-system-warning-100"]),
5791
5791
  compact: ""
5792
5792
  }, {
@@ -5795,25 +5795,25 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5795
5795
  size: "sm",
5796
5796
  class: "text-fm-color-primary",
5797
5797
  outline: "",
5798
- name: I(i).state.selectedTemplate.templateId == I(i).state.activeTemplateId ? "home" : "account_circle"
5798
+ name: S(i).state.selectedTemplate.templateId == S(i).state.activeTemplateId ? "home" : "account_circle"
5799
5799
  }, null, 8, ["name"])
5800
5800
  ]),
5801
5801
  _: 1
5802
5802
  }, 8, ["class"])) : q("", !0),
5803
- B("span", xr, pe(I(i).state.selectedTemplate.templateAlias), 1)
5803
+ B("span", xr, pe(S(i).state.selectedTemplate.templateAlias), 1)
5804
5804
  ]),
5805
5805
  B("div", Tr, [
5806
5806
  L(w, {
5807
5807
  name: "edit",
5808
5808
  outline: "",
5809
5809
  class: "text-fm-color-neutral-black cursor-pointer",
5810
- onClick: C[0] || (C[0] = (N) => v(I(i).state.selectedTemplate))
5810
+ onClick: C[0] || (C[0] = (N) => v(S(i).state.selectedTemplate))
5811
5811
  }),
5812
5812
  L(w, {
5813
5813
  outline: "",
5814
5814
  name: "delete",
5815
5815
  class: "text-fm-color-system-error-300 cursor-pointer",
5816
- onClick: C[1] || (C[1] = (N) => T(I(i).state.selectedTemplate))
5816
+ onClick: C[1] || (C[1] = (N) => T(S(i).state.selectedTemplate))
5817
5817
  })
5818
5818
  ])
5819
5819
  ]),
@@ -5823,7 +5823,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5823
5823
  "model-value": t.value,
5824
5824
  "onUpdate:modelValue": C[2] || (C[2] = (N) => t.value = N),
5825
5825
  class: "p-4",
5826
- placeholder: I(u)("brand.template.picker.search")
5826
+ placeholder: S(u)("brand.template.picker.search")
5827
5827
  }, null, 8, ["model-value", "placeholder"]),
5828
5828
  B("div", Cr, [
5829
5829
  (D(!0), H(ke, null, ht(p.value, (N, V) => {
@@ -5833,7 +5833,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5833
5833
  }, [
5834
5834
  L(U, {
5835
5835
  label: N.templateAlias,
5836
- "model-value": N.templateId === ((K = I(i).state.selectedTemplate) == null ? void 0 : K.templateId),
5836
+ "model-value": N.templateId === ((K = S(i).state.selectedTemplate) == null ? void 0 : K.templateId),
5837
5837
  onClick: (G) => g(N),
5838
5838
  onMouseover: (G) => _(N.templateId),
5839
5839
  onMouseout: y,
@@ -5841,9 +5841,9 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5841
5841
  }, {
5842
5842
  prepend: Z(() => [
5843
5843
  N.isPublished && ![
5844
- I(i).state.activeTemplateId,
5845
- I(i).state.activeMemberTemplateId
5846
- ].includes(N.templateId) ? (D(), te(S, {
5844
+ S(i).state.activeTemplateId,
5845
+ S(i).state.activeMemberTemplateId
5846
+ ].includes(N.templateId) ? (D(), te(I, {
5847
5847
  key: 0,
5848
5848
  class: "bg-fm-color-system-success-100",
5849
5849
  compact: ""
@@ -5859,9 +5859,9 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5859
5859
  _: 1
5860
5860
  })) : q("", !0),
5861
5861
  [
5862
- I(i).state.activeTemplateId,
5863
- I(i).state.activeMemberTemplateId
5864
- ].includes(N.templateId) ? (D(), te(S, {
5862
+ S(i).state.activeTemplateId,
5863
+ S(i).state.activeMemberTemplateId
5864
+ ].includes(N.templateId) ? (D(), te(I, {
5865
5865
  key: 1,
5866
5866
  class: ye(["bg-fm-color-system-warning-100", {
5867
5867
  grayscale: !N.isPublished
@@ -5872,7 +5872,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5872
5872
  L(w, {
5873
5873
  color: "primary",
5874
5874
  class: "text-fm-color-primary",
5875
- name: N.templateId == I(i).state.activeTemplateId ? "home" : "account_circle",
5875
+ name: N.templateId == S(i).state.activeTemplateId ? "home" : "account_circle",
5876
5876
  size: "sm",
5877
5877
  outline: ""
5878
5878
  }, null, 8, ["name"])
@@ -5896,7 +5896,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5896
5896
  }, null, 8, ["onClick"]), [
5897
5897
  [
5898
5898
  ea,
5899
- p.value.length > 1 && N.templateId !== I(i).state.activeTemplateId
5899
+ p.value.length > 1 && N.templateId !== S(i).state.activeTemplateId
5900
5900
  ]
5901
5901
  ])
5902
5902
  ], 512), [
@@ -5914,7 +5914,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5914
5914
  ]),
5915
5915
  Qt(L(U, {
5916
5916
  disabled: "",
5917
- label: I(u)("brand.template.picker.noTemplateFound")
5917
+ label: S(u)("brand.template.picker.noTemplateFound")
5918
5918
  }, null, 8, ["label"]), [
5919
5919
  [ea, p.value.length === 0]
5920
5920
  ]),
@@ -5927,7 +5927,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5927
5927
  })
5928
5928
  ]),
5929
5929
  label: Z(() => [
5930
- B("div", wr, pe(I(u)("brand.template.picker.addNewTemplate")), 1)
5930
+ B("div", wr, pe(S(u)("brand.template.picker.addNewTemplate")), 1)
5931
5931
  ]),
5932
5932
  _: 1
5933
5933
  }),
@@ -5941,7 +5941,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5941
5941
  })
5942
5942
  ]),
5943
5943
  label: Z(() => [
5944
- B("div", Ir, pe(I(u)("brand.template.picker.addMemberTemplate")), 1)
5944
+ B("div", Ir, pe(S(u)("brand.template.picker.addMemberTemplate")), 1)
5945
5945
  ]),
5946
5946
  _: 1
5947
5947
  })
@@ -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 = oe(!1), t = Re(), a = Fa(), o = je(), i = Ve(), r = Na(), { t: s } = He(), { namespace: l } = Ve(), c = [
5957
+ const e = ie(!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 = ie(() => l.value === "dev" || a.state.isPremium || c.includes(i.currentBusiness.value._id));
5990
+ ], d = ae(() => 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,8 +5998,8 @@ 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 = ie(() => {
6002
- var y, v, T, h, C, w, S, E;
6001
+ const m = ae(() => {
6002
+ var y, v, T, h, C, w, I, E;
6003
6003
  return [
6004
6004
  {
6005
6005
  label: s("brand.template.shareMenu.saveAndPublish"),
@@ -6052,7 +6052,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
6052
6052
  action: () => {
6053
6053
  g();
6054
6054
  },
6055
- disabled: !((S = o.state.selectedTemplate) != null && S.isPublished) || !((E = o.state.selectedTemplate) != null && E.templateId.startsWith("member-"))
6055
+ disabled: !((I = o.state.selectedTemplate) != null && I.isPublished) || !((E = o.state.selectedTemplate) != null && E.templateId.startsWith("member-"))
6056
6056
  }
6057
6057
  ];
6058
6058
  });
@@ -6103,20 +6103,20 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
6103
6103
  const T = J("FmButton"), h = J("FmMenuDivider"), C = J("FmMenuItem"), w = J("FmMenu");
6104
6104
  return D(), te(w, {
6105
6105
  placement: "bottom-end",
6106
- onMenuChanged: v[0] || (v[0] = (S) => e.value = S)
6106
+ onMenuChanged: v[0] || (v[0] = (I) => e.value = I)
6107
6107
  }, {
6108
6108
  "menu-button": Z(() => [
6109
6109
  L(T, {
6110
6110
  "prepend-icon": "publish",
6111
6111
  "append-icon": e.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
6112
- label: I(s)("brand.template.shareMenu.share")
6112
+ label: S(s)("brand.template.shareMenu.share")
6113
6113
  }, null, 8, ["append-icon", "label"])
6114
6114
  ]),
6115
6115
  default: Z(() => {
6116
- var S;
6116
+ var I;
6117
6117
  return [
6118
6118
  B("div", Er, [
6119
- B("div", Lr, pe(I(s)("brand.template.shareMenu.publishThisTemplate")), 1),
6119
+ B("div", Lr, pe(S(s)("brand.template.shareMenu.publishThisTemplate")), 1),
6120
6120
  (D(!0), H(ke, null, ht(m.value, (E) => (D(), H(ke, null, [
6121
6121
  L(h, {
6122
6122
  inset: "",
@@ -6158,7 +6158,7 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
6158
6158
  class: "!mx-4"
6159
6159
  }),
6160
6160
  L(C, {
6161
- disabled: !((S = I(o).state.selectedTemplate) != null && S.isPublished),
6161
+ disabled: !((I = S(o).state.selectedTemplate) != null && I.isPublished),
6162
6162
  onClick: _
6163
6163
  }, {
6164
6164
  label: Z(() => {
@@ -6167,9 +6167,9 @@ const lr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
6167
6167
  B("div", {
6168
6168
  class: ye([
6169
6169
  "fm-typo-en-body-md-400 max-w-[240px]",
6170
- (E = I(o).state.selectedTemplate) != null && E.isPublished ? "text-fm-color-typo-error" : "text-fm-color-typo-disabled"
6170
+ (E = S(o).state.selectedTemplate) != null && E.isPublished ? "text-fm-color-typo-error" : "text-fm-color-typo-disabled"
6171
6171
  ])
6172
- }, pe(I(s)("brand.template.shareMenu.unpublish")), 3)
6172
+ }, pe(S(s)("brand.template.shareMenu.unpublish")), 3)
6173
6173
  ];
6174
6174
  }),
6175
6175
  _: 1
@@ -7255,13 +7255,13 @@ var Xr = lo.exports;
7255
7255
  function u(y) {
7256
7256
  const v = d(r.NUMERIC, e.NUMERIC, y), T = d(r.ALPHANUMERIC, e.ALPHANUMERIC, y);
7257
7257
  let h, C;
7258
- return s.isKanjiModeEnabled() ? (h = d(r.BYTE, e.BYTE, y), C = d(r.KANJI, e.KANJI, y)) : (h = d(r.BYTE_KANJI, e.BYTE, y), C = []), v.concat(T, h, C).sort(function(S, E) {
7259
- return S.index - E.index;
7260
- }).map(function(S) {
7258
+ return s.isKanjiModeEnabled() ? (h = d(r.BYTE, e.BYTE, y), C = d(r.KANJI, e.KANJI, y)) : (h = d(r.BYTE_KANJI, e.BYTE, y), C = []), v.concat(T, h, C).sort(function(I, E) {
7259
+ return I.index - E.index;
7260
+ }).map(function(I) {
7261
7261
  return {
7262
- data: S.data,
7263
- mode: S.mode,
7264
- length: S.length
7262
+ data: I.data,
7263
+ mode: I.mode,
7264
+ length: I.length
7265
7265
  };
7266
7266
  });
7267
7267
  }
@@ -7319,9 +7319,9 @@ var Xr = lo.exports;
7319
7319
  const T = {}, h = { start: {} };
7320
7320
  let C = ["start"];
7321
7321
  for (let w = 0; w < y.length; w++) {
7322
- const S = y[w], E = [];
7323
- for (let R = 0; R < S.length; R++) {
7324
- const U = S[R], M = "" + w + R;
7322
+ const I = y[w], E = [];
7323
+ for (let R = 0; R < I.length; R++) {
7324
+ const U = I[R], M = "" + w + R;
7325
7325
  E.push(M), T[M] = { node: U, lastCount: 0 }, h[M] = {};
7326
7326
  for (let N = 0; N < C.length; N++) {
7327
7327
  const V = C[N];
@@ -7356,9 +7356,9 @@ var Xr = lo.exports;
7356
7356
  return typeof h == "string" ? T.push(_(h, null)) : h.data && T.push(_(h.data, h.mode)), T;
7357
7357
  }, []);
7358
7358
  }, n.fromString = function(v, T) {
7359
- const h = u(v, s.isKanjiModeEnabled()), C = b(h), w = g(C, T), S = l.find_path(w.map, "start", "end"), E = [];
7360
- for (let R = 1; R < S.length - 1; R++)
7361
- E.push(w.table[S[R]].node);
7359
+ const h = u(v, s.isKanjiModeEnabled()), C = b(h), w = g(C, T), I = l.find_path(w.map, "start", "end"), E = [];
7360
+ for (let R = 1; R < I.length - 1; R++)
7361
+ E.push(w.table[I[R]].node);
7362
7362
  return n.fromArray(m(E));
7363
7363
  }, n.rawSplit = function(v) {
7364
7364
  return n.fromArray(
@@ -7441,9 +7441,9 @@ function us(n, e, t) {
7441
7441
  const g = new Array(r), _ = new Array(r);
7442
7442
  let y = 0;
7443
7443
  const v = new Uint8Array(n.buffer);
7444
- for (let S = 0; S < r; S++) {
7445
- const E = S < l ? d : u;
7446
- g[S] = v.slice(b, b + E), _[S] = m.encode(g[S]), b += E, y = Math.max(y, E);
7444
+ for (let I = 0; I < r; I++) {
7445
+ const E = I < l ? d : u;
7446
+ g[I] = v.slice(b, b + E), _[I] = m.encode(g[I]), b += E, y = Math.max(y, E);
7447
7447
  }
7448
7448
  const T = new Uint8Array(a);
7449
7449
  let h = 0, C, w;
@@ -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 = 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}`);
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}`);
7638
7638
  function s() {
7639
7639
  jo.promise(navigator.clipboard.writeText(r.value), {
7640
7640
  loading: o("brand.template.shareMenu.copying"),
@@ -7667,7 +7667,7 @@ const hs = { class: "flex items-center justify-center" }, ys = { class: "w-full
7667
7667
  "dialog-button": Z(() => [
7668
7668
  L(u, {
7669
7669
  placement: "bottom",
7670
- content: I(o)("brand.template.shareMenu.maintenanceTooltip")
7670
+ content: S(o)("brand.template.shareMenu.maintenanceTooltip")
7671
7671
  }, {
7672
7672
  default: Z(() => [
7673
7673
  L(d, {
@@ -7680,7 +7680,7 @@ const hs = { class: "flex items-center justify-center" }, ys = { class: "w-full
7680
7680
  }, 8, ["content"])
7681
7681
  ]),
7682
7682
  "dialog-header": Z(() => [
7683
- Co(pe(I(o)("brand.template.shareMenu.share")), 1)
7683
+ Co(pe(S(o)("brand.template.shareMenu.share")), 1)
7684
7684
  ]),
7685
7685
  default: Z(() => [
7686
7686
  B("div", hs, [
@@ -7694,11 +7694,11 @@ const hs = { class: "flex items-center justify-center" }, ys = { class: "w-full
7694
7694
  B("div", ys, [
7695
7695
  L(d, {
7696
7696
  variant: "secondary",
7697
- label: I(o)("brand.common.cancel"),
7697
+ label: S(o)("brand.common.cancel"),
7698
7698
  onClick: c[0] || (c[0] = (m) => i.value = !1)
7699
7699
  }, null, 8, ["label"]),
7700
7700
  L(d, {
7701
- label: I(o)("brand.template.shareMenu.copyPublicLinkView"),
7701
+ label: S(o)("brand.template.shareMenu.copyPublicLinkView"),
7702
7702
  onClick: s
7703
7703
  }, null, 8, ["label"])
7704
7704
  ])
@@ -7747,7 +7747,7 @@ const hs = { class: "flex items-center justify-center" }, ys = { class: "w-full
7747
7747
  variant: "tertiary",
7748
7748
  "prepend-icon": "save",
7749
7749
  onClick: s,
7750
- disabled: I(e).isSaved()
7750
+ disabled: S(e).isSaved()
7751
7751
  }, null, 8, ["disabled"]),
7752
7752
  L(Ar)
7753
7753
  ])
@@ -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 = ie({
7806
+ const e = Re(), t = Ve(), a = Fa(), o = ae({
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 = ie(() => e.state.node[0]), r = ie(() => e.state.selectedNode);
7814
- oe(!1);
7813
+ }), i = ae(() => e.state.node[0]), r = ae(() => e.state.selectedNode);
7814
+ ie(!1);
7815
7815
  function s(l) {
7816
7816
  e.setCurrentNode(l);
7817
7817
  }
@@ -7868,7 +7868,7 @@ const ws = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
7868
7868
  title: "Member",
7869
7869
  className: "block"
7870
7870
  })) : q("", !0),
7871
- L(I(zn), {
7871
+ L(S(zn), {
7872
7872
  class: ye(["w-full h-full flex flex-col gap-16", { "min-h-[600px]": i.value.type == "Homepage" }]),
7873
7873
  modelValue: o.value,
7874
7874
  "onUpdate:modelValue": c[0] || (c[0] = (g) => o.value = g),
@@ -8278,9 +8278,9 @@ class zt extends qt {
8278
8278
  let p = u == null ? void 0 : u.res;
8279
8279
  const m = (u == null ? void 0 : u.usedKey) || r, b = (u == null ? void 0 : u.exactUsedKey) || r, g = ["[object Number]", "[object Function]", "[object RegExp]"], _ = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, v = t.count !== void 0 && !F(t.count), T = zt.hasDefaultValue(t), h = v ? this.pluralResolver.getSuffix(c, t.count, t) : "", C = t.ordinal && v ? this.pluralResolver.getSuffix(c, t.count, {
8280
8280
  ordinal: !1
8281
- }) : "", w = v && !t.ordinal && t.count === 0, S = w && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${h}`] || t[`defaultValue${C}`] || t.defaultValue;
8281
+ }) : "", w = v && !t.ordinal && t.count === 0, I = w && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${h}`] || t[`defaultValue${C}`] || t.defaultValue;
8282
8282
  let E = p;
8283
- y && !p && T && (E = S);
8283
+ y && !p && T && (E = I);
8284
8284
  const R = bn(E), U = Object.prototype.toString.apply(E);
8285
8285
  if (y && E && R && g.indexOf(U) < 0 && !(F(_) && Array.isArray(E))) {
8286
8286
  if (!t.returnObjects && !this.options.returnObjects) {
@@ -8298,7 +8298,7 @@ class zt extends qt {
8298
8298
  const G = `${V}${i}${K}`;
8299
8299
  T && !p ? N[K] = this.translate(G, {
8300
8300
  ...t,
8301
- defaultValue: bn(S) ? S[K] : void 0,
8301
+ defaultValue: bn(I) ? I[K] : void 0,
8302
8302
  joinArrays: !1,
8303
8303
  ns: s
8304
8304
  }) : N[K] = this.translate(G, {
@@ -8313,33 +8313,33 @@ class zt extends qt {
8313
8313
  p = p.join(_), p && (p = this.extendTranslation(p, e, t, a));
8314
8314
  else {
8315
8315
  let M = !1, N = !1;
8316
- !this.isValidLookup(p) && T && (M = !0, p = S), this.isValidLookup(p) || (N = !0, p = r);
8317
- const K = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : p, G = T && S !== p && this.options.updateMissing;
8316
+ !this.isValidLookup(p) && T && (M = !0, p = I), this.isValidLookup(p) || (N = !0, p = r);
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
- if (this.logger.log(G ? "updateKey" : "missingKey", c, l, r, G ? S : p), i) {
8320
- const ae = this.resolve(r, {
8319
+ if (this.logger.log(G ? "updateKey" : "missingKey", c, l, r, G ? I : p), i) {
8320
+ const ne = this.resolve(r, {
8321
8321
  ...t,
8322
8322
  keySeparator: !1
8323
8323
  });
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.");
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.");
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 ae = 0; ae < Ie.length; ae++)
8330
- se.push(Ie[ae]);
8329
+ for (let ne = 0; ne < Ie.length; ne++)
8330
+ se.push(Ie[ne]);
8331
8331
  else this.options.saveMissingTo === "all" ? se = this.languageUtils.toResolveHierarchy(t.lng || this.language) : se.push(t.lng || this.language);
8332
- const Ae = (ae, Oe, Ne) => {
8332
+ const Ae = (ne, Oe, Ne) => {
8333
8333
  var Va;
8334
8334
  const _t = T && Ne !== p ? Ne : K;
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);
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);
8336
8336
  };
8337
- this.options.saveMissing && (this.options.saveMissingPlurals && v ? se.forEach((ae) => {
8338
- const Oe = this.pluralResolver.getSuffixes(ae, t);
8337
+ this.options.saveMissing && (this.options.saveMissingPlurals && v ? se.forEach((ne) => {
8338
+ const Oe = this.pluralResolver.getSuffixes(ne, 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([ae], r + Ne, t[`defaultValue${Ne}`] || S);
8340
+ Ae([ne], r + Ne, t[`defaultValue${Ne}`] || I);
8341
8341
  });
8342
- }) : Ae(se, r, S));
8342
+ }) : Ae(se, r, I));
8343
8343
  }
8344
8344
  p = this.extendTranslation(p, e, t, u, a), N && p === r && this.options.appendNamespaceToMissingKey && (p = `${l}:${r}`), (N || M) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${r}` : r, M ? p : void 0, t));
8345
8345
  }
@@ -8411,12 +8411,12 @@ class zt extends qt {
8411
8411
  if ((w = this.i18nFormat) != null && w.addLookupKeys)
8412
8412
  this.i18nFormat.addLookupKeys(h, d, T, _, t);
8413
8413
  else {
8414
- let S;
8415
- p && (S = this.pluralResolver.getSuffix(T, t.count, t));
8414
+ let I;
8415
+ p && (I = this.pluralResolver.getSuffix(T, t.count, t));
8416
8416
  const E = `${this.options.pluralSeparator}zero`, R = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
8417
- if (p && (h.push(d + S), t.ordinal && S.indexOf(R) === 0 && h.push(d + S.replace(R, this.options.pluralSeparator)), m && h.push(d + E)), b) {
8417
+ if (p && (h.push(d + I), t.ordinal && I.indexOf(R) === 0 && h.push(d + I.replace(R, this.options.pluralSeparator)), m && h.push(d + E)), b) {
8418
8418
  const U = `${d}${this.options.contextSeparator}${t.context}`;
8419
- h.push(U), p && (h.push(U + S), t.ordinal && S.indexOf(R) === 0 && h.push(U + S.replace(R, this.options.pluralSeparator)), m && h.push(U + E));
8419
+ h.push(U), p && (h.push(U + I), t.ordinal && I.indexOf(R) === 0 && h.push(U + I.replace(R, this.options.pluralSeparator)), m && h.push(U + E));
8420
8420
  }
8421
8421
  }
8422
8422
  let C;
@@ -10853,7 +10853,7 @@ const Ws = [
10853
10853
  setup(n) {
10854
10854
  const { t: e } = He();
10855
10855
  return (t, a) => (D(), H("div", null, [
10856
- t.label ? (D(), H("div", pl, pe(I(e)(t.label)), 1)) : q("", !0),
10856
+ t.label ? (D(), H("div", pl, pe(S(e)(t.label)), 1)) : q("", !0),
10857
10857
  B("div", fl, [
10858
10858
  Oa(t.$slots, "default")
10859
10859
  ])
@@ -10865,30 +10865,36 @@ const Ws = [
10865
10865
  title: {}
10866
10866
  },
10867
10867
  setup(n) {
10868
- const { t: e } = He(), t = oe([]), a = oe("");
10868
+ const { t: e } = He(), t = ie([]), a = ie(""), o = n;
10869
10869
  Eo(go, {
10870
- register(i) {
10871
- t.value = [...t.value, i], t.value.length === 1 && (a.value = i.value);
10870
+ register(s) {
10871
+ t.value = [...t.value, s].map(
10872
+ (l) => ({
10873
+ ...l,
10874
+ title: e(l.title)
10875
+ })
10876
+ ), t.value.length === 1 && (a.value = s.value);
10872
10877
  },
10873
- currentTab: ie(() => a.value)
10878
+ currentTab: ae(() => a.value)
10874
10879
  });
10875
- function o(i) {
10876
- a.value = i;
10880
+ const i = ae(() => e(o.title));
10881
+ function r(s) {
10882
+ a.value = s;
10877
10883
  }
10878
- return (i, r) => {
10879
- const s = J("FmTab");
10884
+ return (s, l) => {
10885
+ const c = J("FmTab");
10880
10886
  return D(), H("div", null, [
10881
- B("div", bl, pe(I(e)(i.title)), 1),
10887
+ B("div", bl, pe(i.value), 1),
10882
10888
  L(wn),
10883
10889
  B("div", gl, [
10884
- (D(!0), H(ke, null, ht(t.value, (l) => (D(), te(s, {
10890
+ (D(!0), H(ke, null, ht(t.value, (d) => (D(), te(c, {
10885
10891
  "model-value": a.value,
10886
- "onUpdate:modelValue": r[0] || (r[0] = (c) => o(c)),
10887
- label: I(e)(l.title),
10888
- value: l.value
10892
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => r(u)),
10893
+ label: d.title,
10894
+ value: d.value
10889
10895
  }, null, 8, ["model-value", "label", "value"]))), 256))
10890
10896
  ]),
10891
- Oa(i.$slots, "default")
10897
+ Oa(s.$slots, "default")
10892
10898
  ]);
10893
10899
  };
10894
10900
  }
@@ -10904,7 +10910,7 @@ const Ws = [
10904
10910
  t ? t.register(e) : console.warn("ConfigTabItem is to be used with ConfigTab as parent");
10905
10911
  }), (a, o) => {
10906
10912
  var i;
10907
- return ((i = I(t)) == null ? void 0 : i.currentTab.value) === a.value ? (D(), H("div", yl, [
10913
+ return ((i = S(t)) == null ? void 0 : i.currentTab.value) === a.value ? (D(), H("div", yl, [
10908
10914
  B("div", vl, [
10909
10915
  Oa(a.$slots, "default")
10910
10916
  ])
@@ -10914,11 +10920,11 @@ const Ws = [
10914
10920
  }), 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({
10915
10921
  __name: "Inspector",
10916
10922
  setup(n) {
10917
- const e = Re(), t = ie(() => e.state.selectedNode), a = ie(() => {
10923
+ const e = Re(), t = ae(() => e.state.selectedNode), a = ae(() => {
10918
10924
  var c;
10919
10925
  const l = ((c = t.value) == null ? void 0 : c.type) ?? null;
10920
10926
  return l !== null ? ul[l] : [];
10921
- }), o = ie(() => {
10927
+ }), o = ae(() => {
10922
10928
  var l;
10923
10929
  return (l = t.value) == null ? void 0 : l.props;
10924
10930
  }), i = Ao({
@@ -10956,7 +10962,7 @@ const Ws = [
10956
10962
  }
10957
10963
  }
10958
10964
  return (l, c) => (D(), H("div", Tl, [
10959
- t.value ? (D(), te(I(ko), {
10965
+ t.value ? (D(), te(S(ko), {
10960
10966
  config: { rootClasses: s },
10961
10967
  type: "form",
10962
10968
  actions: !1,
@@ -10966,9 +10972,9 @@ const Ws = [
10966
10972
  preserve: ""
10967
10973
  }, {
10968
10974
  default: Z(() => [
10969
- L(I(Ro), {
10975
+ L(S(Ro), {
10970
10976
  schema: a.value,
10971
- library: I(i)
10977
+ library: S(i)
10972
10978
  }, null, 8, ["schema", "library"])
10973
10979
  ]),
10974
10980
  _: 1
@@ -10981,7 +10987,7 @@ const Ws = [
10981
10987
  templateId: {}
10982
10988
  },
10983
10989
  setup(n) {
10984
- const e = Ve(), t = Re(), a = je(), o = Fa(), i = In(), r = xt(), s = oe(!0);
10990
+ const e = Ve(), t = Re(), a = je(), o = Fa(), i = In(), r = xt(), s = ie(!0);
10985
10991
  async function l() {
10986
10992
  var d, u;
10987
10993
  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());
@@ -11021,7 +11027,7 @@ const Ws = [
11021
11027
  ), (d, u) => {
11022
11028
  const p = J("FmCircularProgress"), m = J("FmOverlay");
11023
11029
  return D(), H("div", _l, [
11024
- L(I(Ho), {
11030
+ L(S(Ho), {
11025
11031
  position: "top-right",
11026
11032
  "rich-colors": "",
11027
11033
  "close-button": "",