@feedmepos/mf-brand-app-builder 0.5.31-dev.2 → 0.5.32-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,4 +1,4 @@
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 Le, renderList as vt, createElementVNode as I, createVNode as w, createBlock as ae, createCommentVNode as Q, toDisplayString as j, unref as v, 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";
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
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";
@@ -7,13 +7,13 @@ 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-ynjxR98q.js";
10
+ import { C as $a, _ as yo, a as vo } from "./main-Dm1Xcanz.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-C1rSMuKA.js";
14
+ import { u as Ea } from "./index-Bi5NByw1.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-DhE9tk6x.js";
16
+ import { F as So, a as Ao } from "./app-r_Tzagik.js";
17
17
  /**!
18
18
  * Sortable 1.14.0
19
19
  * @author RubaXa <trash@rubaxa.org>
@@ -34,7 +34,7 @@ function Ie(t) {
34
34
  for (var e = 1; e < arguments.length; e++) {
35
35
  var a = arguments[e] != null ? arguments[e] : {};
36
36
  e % 2 ? Za(Object(a), !0).forEach(function(n) {
37
- Bo(t, n, a[n]);
37
+ Lo(t, n, a[n]);
38
38
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(a)) : Za(Object(a)).forEach(function(n) {
39
39
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(a, n));
40
40
  });
@@ -49,7 +49,7 @@ function kt(t) {
49
49
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
50
50
  }, kt(t);
51
51
  }
52
- function Bo(t, e, a) {
52
+ function Lo(t, e, a) {
53
53
  return e in t ? Object.defineProperty(t, e, {
54
54
  value: a,
55
55
  enumerable: !0,
@@ -67,7 +67,7 @@ function De() {
67
67
  return t;
68
68
  }, De.apply(this, arguments);
69
69
  }
70
- function Lo(t, e) {
70
+ function Bo(t, e) {
71
71
  if (t == null) return {};
72
72
  var a = {}, n = Object.keys(t), o, r;
73
73
  for (r = 0; r < n.length; r++)
@@ -76,7 +76,7 @@ function Lo(t, e) {
76
76
  }
77
77
  function ko(t, e) {
78
78
  if (t == null) return {};
79
- var a = Lo(t, e), n, o;
79
+ var a = Bo(t, e), n, o;
80
80
  if (Object.getOwnPropertySymbols) {
81
81
  var r = Object.getOwnPropertySymbols(t);
82
82
  for (o = 0; o < r.length; o++)
@@ -413,15 +413,15 @@ var Xe = [], Kt = {
413
413
  function Uo(t) {
414
414
  var e = t.sortable, a = t.rootEl, n = t.name, o = t.targetEl, r = t.cloneEl, l = t.toEl, i = t.fromEl, s = t.oldIndex, d = t.newIndex, c = t.oldDraggableIndex, p = t.newDraggableIndex, m = t.originalEvent, u = t.putSortable, b = t.extraEventProperties;
415
415
  if (e = e || a && a[pe], !!e) {
416
- var g, B = e.options, f = "on" + n.charAt(0).toUpperCase() + n.substr(1);
416
+ var g, L = e.options, f = "on" + n.charAt(0).toUpperCase() + n.substr(1);
417
417
  window.CustomEvent && !Ne && !Tt ? g = new CustomEvent(n, {
418
418
  bubbles: !0,
419
419
  cancelable: !0
420
420
  }) : (g = document.createEvent("Event"), g.initEvent(n, !0, !0)), g.to = l || a, g.from = i || a, g.item = o || a, g.clone = r, g.oldIndex = s, g.newIndex = d, g.oldDraggableIndex = c, g.newDraggableIndex = p, g.originalEvent = m, g.pullMode = u ? u.lastPutMode : void 0;
421
- var y = Ie(Ie({}, b), xt.getEventProperties(n, e));
422
- for (var T in y)
423
- g[T] = y[T];
424
- a && a.dispatchEvent(g), B[f] && B[f].call(e, g);
421
+ var v = Ie(Ie({}, b), xt.getEventProperties(n, e));
422
+ for (var T in v)
423
+ g[T] = v[T];
424
+ a && a.dispatchEvent(g), L[f] && L[f].call(e, g);
425
425
  }
426
426
  }
427
427
  var Vo = ["evt"], le = function(e, a) {
@@ -793,7 +793,7 @@ S.prototype = /** @lends Sortable.prototype */
793
793
  _onDragOver: function(e) {
794
794
  var a = this.el, n = e.target, o, r, l, i = this.options, s = i.group, d = S.active, c = It === s, p = i.sort, m = ee || d, u, b = this, g = !1;
795
795
  if (fa) return;
796
- function B(Fe, lt) {
796
+ function L(Fe, lt) {
797
797
  le(Fe, b, Ie({
798
798
  evt: e,
799
799
  isOwner: c,
@@ -804,7 +804,7 @@ S.prototype = /** @lends Sortable.prototype */
804
804
  canSort: p,
805
805
  fromSortable: m,
806
806
  target: n,
807
- completed: y,
807
+ completed: v,
808
808
  onMove: function(Pa, Kn) {
809
809
  return At($, a, h, o, Pa, J(Pa), e, Kn);
810
810
  },
@@ -812,13 +812,13 @@ S.prototype = /** @lends Sortable.prototype */
812
812
  }, lt));
813
813
  }
814
814
  function f() {
815
- B("dragOverAnimationCapture"), b.captureAnimationState(), b !== m && m.captureAnimationState();
815
+ L("dragOverAnimationCapture"), b.captureAnimationState(), b !== m && m.captureAnimationState();
816
816
  }
817
- function y(Fe) {
818
- return B("dragOverCompleted", {
817
+ function v(Fe) {
818
+ return L("dragOverCompleted", {
819
819
  insertion: Fe
820
820
  }), Fe && (c ? d._hideClone() : d._showClone(b), b !== m && (ce(h, ee ? ee.options.ghostClass : d.options.ghostClass, !1), ce(h, i.ghostClass, !0)), ee !== b && b !== S.active ? ee = b : b === S.active && ee && (ee = null), m === b && (b._ignoreWhileAnimating = n), b.animateAll(function() {
821
- B("dragOverAnimationComplete"), b._ignoreWhileAnimating = null;
821
+ L("dragOverAnimationComplete"), b._ignoreWhileAnimating = null;
822
822
  }), b !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (n === h && !h.animated || n === a && !n.animated) && (Je = null), !i.dragoverBubble && !e.rootEl && n !== document && (h.parentNode[pe]._isOutsideThisEl(e.target), !Fe && ze(e)), !i.dragoverBubble && e.stopPropagation && e.stopPropagation(), g = !0;
823
823
  }
824
824
  function T() {
@@ -831,25 +831,25 @@ S.prototype = /** @lends Sortable.prototype */
831
831
  originalEvent: e
832
832
  });
833
833
  }
834
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ce(n, i.draggable, a, !0), B("dragOver"), S.eventCanceled) return g;
834
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ce(n, i.draggable, a, !0), L("dragOver"), S.eventCanceled) return g;
835
835
  if (h.contains(e.target) || n.animated && n.animatingX && n.animatingY || b._ignoreWhileAnimating === n)
836
- return y(!1);
836
+ return v(!1);
837
837
  if (Mt = !1, d && !i.disabled && (c ? p || (l = H !== $) : ee === this || (this.lastPutMode = It.checkPull(this, d, h, e)) && s.checkPut(this, d, h, e))) {
838
- if (u = this._getDirection(e, n) === "vertical", o = J(h), B("dragOverValid"), S.eventCanceled) return g;
838
+ if (u = this._getDirection(e, n) === "vertical", o = J(h), L("dragOverValid"), S.eventCanceled) return g;
839
839
  if (l)
840
- return H = $, f(), this._hideClone(), B("revert"), S.eventCanceled || (je ? $.insertBefore(h, je) : $.appendChild(h)), y(!0);
840
+ return H = $, f(), this._hideClone(), L("revert"), S.eventCanceled || (je ? $.insertBefore(h, je) : $.appendChild(h)), v(!0);
841
841
  var x = Sa(a, i.draggable);
842
842
  if (!x || Jo(e, u, this) && !x.animated) {
843
843
  if (x === h)
844
- return y(!1);
844
+ return v(!1);
845
845
  if (x && a === e.target && (n = x), n && (r = J(n)), At($, a, h, o, n, r, e, !!n) !== !1)
846
- return f(), a.appendChild(h), H = a, T(), y(!0);
846
+ return f(), a.appendChild(h), H = a, T(), v(!0);
847
847
  } else if (x && Xo(e, u, this)) {
848
- var L = at(a, 0, i, !0);
849
- if (L === h)
850
- return y(!1);
851
- if (n = L, r = J(n), At($, a, h, o, n, r, e, !1) !== !1)
852
- return f(), a.insertBefore(h, L), H = a, T(), y(!0);
848
+ var B = at(a, 0, i, !0);
849
+ if (B === h)
850
+ return v(!1);
851
+ if (n = B, r = J(n), At($, a, h, o, n, r, e, !1) !== !1)
852
+ return f(), a.insertBefore(h, B), H = a, T(), v(!0);
853
853
  } else if (n.parentNode === a) {
854
854
  r = J(n);
855
855
  var D = 0, F, C = h.parentNode !== a, _ = !Yo(h.animated && h.toRect || o, n.animated && n.toRect || r, u), A = u ? "top" : "left", U = Ha(n, "top", "top") || Ha(h, "top", "top"), ne = U ? U.scrollTop : void 0;
@@ -862,16 +862,16 @@ S.prototype = /** @lends Sortable.prototype */
862
862
  while (z && (E(z, "display") === "none" || z === k));
863
863
  }
864
864
  if (D === 0 || z === n)
865
- return y(!1);
865
+ return v(!1);
866
866
  Je = n, ft = D;
867
867
  var He = n.nextElementSibling, O = !1;
868
868
  O = D === 1;
869
869
  var Se = At($, a, h, o, n, r, e, O);
870
870
  if (Se !== !1)
871
- return (Se === 1 || Se === -1) && (O = Se === 1), fa = !0, setTimeout(Go, 30), f(), O && !He ? a.appendChild(h) : n.parentNode.insertBefore(h, O ? He : n), U && bn(U, 0, ne - U.scrollTop), H = h.parentNode, F !== void 0 && !Et && (Nt = Math.abs(F - J(n)[A])), T(), y(!0);
871
+ return (Se === 1 || Se === -1) && (O = Se === 1), fa = !0, setTimeout(Go, 30), f(), O && !He ? a.appendChild(h) : n.parentNode.insertBefore(h, O ? He : n), U && bn(U, 0, ne - U.scrollTop), H = h.parentNode, F !== void 0 && !Et && (Nt = Math.abs(F - J(n)[A])), T(), v(!0);
872
872
  }
873
873
  if (a.contains(h))
874
- return y(!1);
874
+ return v(!1);
875
875
  }
876
876
  return !1;
877
877
  },
@@ -1198,9 +1198,9 @@ var oa = mn(function(t, e, a, n) {
1198
1198
  ha !== a && (ha = a, Ot(), ct = e.scroll, c = e.scrollFn, ct === !0 && (ct = Re(a, !0)));
1199
1199
  var p = 0, m = ct;
1200
1200
  do {
1201
- var u = m, b = J(u), g = b.top, B = b.bottom, f = b.left, y = b.right, T = b.width, x = b.height, L = void 0, D = void 0, F = u.scrollWidth, C = u.scrollHeight, _ = E(u), A = u.scrollLeft, U = u.scrollTop;
1202
- u === s ? (L = T < F && (_.overflowX === "auto" || _.overflowX === "scroll" || _.overflowX === "visible"), D = x < C && (_.overflowY === "auto" || _.overflowY === "scroll" || _.overflowY === "visible")) : (L = T < F && (_.overflowX === "auto" || _.overflowX === "scroll"), D = x < C && (_.overflowY === "auto" || _.overflowY === "scroll"));
1203
- var ne = L && (Math.abs(y - o) <= l && A + T < F) - (Math.abs(f - o) <= l && !!A), z = D && (Math.abs(B - r) <= l && U + x < C) - (Math.abs(g - r) <= l && !!U);
1201
+ var u = m, b = J(u), g = b.top, L = b.bottom, f = b.left, v = b.right, T = b.width, x = b.height, B = void 0, D = void 0, F = u.scrollWidth, C = u.scrollHeight, _ = E(u), A = u.scrollLeft, U = u.scrollTop;
1202
+ u === s ? (B = T < F && (_.overflowX === "auto" || _.overflowX === "scroll" || _.overflowX === "visible"), D = x < C && (_.overflowY === "auto" || _.overflowY === "scroll" || _.overflowY === "visible")) : (B = T < F && (_.overflowX === "auto" || _.overflowX === "scroll"), D = x < C && (_.overflowY === "auto" || _.overflowY === "scroll"));
1203
+ var ne = B && (Math.abs(v - o) <= l && A + T < F) - (Math.abs(f - o) <= l && !!A), z = D && (Math.abs(L - r) <= l && U + x < C) - (Math.abs(g - r) <= l && !!U);
1204
1204
  if (!X[p])
1205
1205
  for (var fe = 0; fe <= p; fe++)
1206
1206
  X[fe] || (X[fe] = {});
@@ -1245,20 +1245,20 @@ Aa.prototype = {
1245
1245
  De(Aa, {
1246
1246
  pluginName: "revertOnSpill"
1247
1247
  });
1248
- function Ba() {
1248
+ function La() {
1249
1249
  }
1250
- Ba.prototype = {
1250
+ La.prototype = {
1251
1251
  onSpill: function(e) {
1252
1252
  var a = e.dragEl, n = e.putSortable, o = n || this.sortable;
1253
1253
  o.captureAnimationState(), a.parentNode && a.parentNode.removeChild(a), o.animateAll();
1254
1254
  },
1255
1255
  drop: xn
1256
1256
  };
1257
- De(Ba, {
1257
+ De(La, {
1258
1258
  pluginName: "removeOnSpill"
1259
1259
  });
1260
1260
  S.mount(new tr());
1261
- S.mount(Ba, Aa);
1261
+ S.mount(La, Aa);
1262
1262
  function ra(t) {
1263
1263
  t.parentElement !== null && t.parentElement.removeChild(t);
1264
1264
  }
@@ -1518,14 +1518,14 @@ function vr({ $slots: t, tag: e, realList: a, getKey: n }) {
1518
1518
  function An(t, e) {
1519
1519
  rn(() => this.$emit(t.toLowerCase(), e));
1520
1520
  }
1521
- function Bn(t) {
1521
+ function Ln(t) {
1522
1522
  return (e, a) => {
1523
1523
  if (this.realList !== null)
1524
1524
  return this[`onDrag${t}`](e, a);
1525
1525
  };
1526
1526
  }
1527
1527
  function Tr(t) {
1528
- const e = Bn.call(this, t);
1528
+ const e = Ln.call(this, t);
1529
1529
  return (a, n) => {
1530
1530
  e.call(this, a, n), An.call(this, t, a);
1531
1531
  };
@@ -1567,7 +1567,7 @@ const xr = {
1567
1567
  "update:modelValue",
1568
1568
  "change",
1569
1569
  ...[...va.manageAndEmit, ...va.emit].map((t) => t.toLowerCase())
1570
- ], Ln = se({
1570
+ ], Bn = se({
1571
1571
  name: "draggable",
1572
1572
  inheritAttrs: !1,
1573
1573
  props: xr,
@@ -1608,7 +1608,7 @@ const xr = {
1608
1608
  callBackBuilder: {
1609
1609
  manageAndEmit: (r) => Tr.call(this, r),
1610
1610
  emit: (r) => An.bind(this, r),
1611
- manage: (r) => Bn.call(this, r)
1611
+ manage: (r) => Ln.call(this, r)
1612
1612
  }
1613
1613
  }), o = e.nodeType === 1 ? e : e.parentElement;
1614
1614
  this._sortable = new S(o, n), this.targetDomElement = o, o.__draggable_component__ = this;
@@ -2015,7 +2015,7 @@ const xr = {
2015
2015
  memberTitles: ["Title 1", "Title 2"],
2016
2016
  memberCurrentTierTotal: 1050,
2017
2017
  memberPointToNextTier: 50
2018
- }, Br = {
2018
+ }, Lr = {
2019
2019
  ...xe({
2020
2020
  marginLeft: "12px",
2021
2021
  marginRight: "12px",
@@ -2034,7 +2034,7 @@ const xr = {
2034
2034
  signedIn: !0,
2035
2035
  designStyle: 1,
2036
2036
  showMemberQr: !0
2037
- }, Lr = {
2037
+ }, Br = {
2038
2038
  ...xe({
2039
2039
  marginLeft: "12px",
2040
2040
  marginRight: "12px",
@@ -2070,9 +2070,9 @@ const xr = {
2070
2070
  }),
2071
2071
  label: Qa("user.branches.ourOutlets"),
2072
2072
  sublabel: Qa("user.branches.findStoreNearYou"),
2073
- iconColor: "#FF7823",
2074
- labelColor: "#1C1C1E",
2075
- sublabelColor: "#6B6B6B"
2073
+ iconColor: "var(--brand-color-primary)",
2074
+ labelColor: "var(--brand-color-typo-primary)",
2075
+ sublabelColor: "var(--brand-color-typo-secondary)"
2076
2076
  }, Dn = [
2077
2077
  {
2078
2078
  thumbnailPhoto: "",
@@ -5260,7 +5260,7 @@ const xr = {
5260
5260
  referralRecords: [],
5261
5261
  submittingReferrerCode: !1
5262
5262
  }
5263
- }, La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5263
+ }, Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5264
5264
  __proto__: null,
5265
5265
  BranchList: kr,
5266
5266
  ButtonList: Er,
@@ -5269,11 +5269,11 @@ const xr = {
5269
5269
  ImageCarousel: Ar,
5270
5270
  ImageDisplay: Sr,
5271
5271
  MemberAchievements: Fr,
5272
- MemberCard: Br,
5272
+ MemberCard: Lr,
5273
5273
  MemberCards: Pr,
5274
5274
  MemberSummary: Rr,
5275
5275
  OrderHistoryCard: Dr,
5276
- OrderMethod: Lr,
5276
+ OrderMethod: Br,
5277
5277
  TextDisplay: Ir,
5278
5278
  _Credit: $r,
5279
5279
  _MemberProfile: Ur,
@@ -5306,7 +5306,7 @@ const Ue = mo("editor", () => {
5306
5306
  const m = Ct(), u = Ge();
5307
5307
  if (p instanceof go && ((b = p.response) == null ? void 0 : b.data) == "Template not found") {
5308
5308
  const g = fo.find(
5309
- (B) => B.templateId == c
5309
+ (L) => L.templateId == c
5310
5310
  );
5311
5311
  if (g) {
5312
5312
  u.addNewTemplate({
@@ -5315,12 +5315,12 @@ const Ue = mo("editor", () => {
5315
5315
  name: g.templateAlias,
5316
5316
  predefined: !0
5317
5317
  });
5318
- const B = m.buildNewNode(
5318
+ const L = m.buildNewNode(
5319
5319
  g.type,
5320
5320
  {},
5321
- La[g.type]
5321
+ Ba[g.type]
5322
5322
  );
5323
- a(B), o(B), await u.saveTemplate(d, [B]);
5323
+ a(L), o(L), await u.saveTemplate(d, [L]);
5324
5324
  return;
5325
5325
  }
5326
5326
  }
@@ -5365,7 +5365,7 @@ function Ct() {
5365
5365
  type: r,
5366
5366
  // structuredClone cannot clone function
5367
5367
  props: i ?? {
5368
- ...structuredClone(La[r])
5368
+ ...structuredClone(Ba[r])
5369
5369
  },
5370
5370
  data: l,
5371
5371
  children: []
@@ -5417,9 +5417,9 @@ const zr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5417
5417
  (i) => i.group == o.value || i.group == "all"
5418
5418
  ));
5419
5419
  return (i, s) => (N(), Z("div", zr, [
5420
- (N(!0), Z(Le, null, vt(l.value, (d, c) => (N(), Z("section", jr, [
5421
- I("div", Wr, j(v(n)(d.title)), 1),
5422
- w(v(Ln), {
5420
+ (N(!0), Z(Be, null, vt(l.value, (d, c) => (N(), Z("section", jr, [
5421
+ I("div", Wr, j(y(n)(d.title)), 1),
5422
+ w(y(Bn), {
5423
5423
  list: d.children,
5424
5424
  group: { name: "components", pull: "clone", put: !1 },
5425
5425
  sort: !1,
@@ -5433,12 +5433,12 @@ const zr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5433
5433
  class: "text-[24px] text-fm-color-typo-secondary",
5434
5434
  name: p.icon
5435
5435
  }, null, 8, ["name"]),
5436
- I("div", Xr, j(v(n)(p.title)), 1)
5436
+ I("div", Xr, j(y(n)(p.title)), 1)
5437
5437
  ])
5438
5438
  ]),
5439
5439
  _: 2
5440
5440
  }, 1032, ["list"]),
5441
- c !== v(qa).length - 1 ? (N(), ae(sn, {
5441
+ c !== y(qa).length - 1 ? (N(), ae(sn, {
5442
5442
  key: 0,
5443
5443
  class: "mt-12"
5444
5444
  })) : Q("", !0)
@@ -5491,13 +5491,13 @@ const zr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5491
5491
  return (l, i) => {
5492
5492
  const s = V("FmButton");
5493
5493
  return N(), Z("div", Kr, [
5494
- (N(), Z(Le, null, vt(r, (d) => w(s, {
5494
+ (N(), Z(Be, null, vt(r, (d) => w(s, {
5495
5495
  size: "md",
5496
5496
  "prepend-icon": d.icon,
5497
5497
  onClick: d.action,
5498
5498
  variant: "tertiary",
5499
5499
  "icon-color": d.iconColor,
5500
- disabled: !v(a).selectedNode || d.disabled()
5500
+ disabled: !y(a).selectedNode || d.disabled()
5501
5501
  }, null, 8, ["prepend-icon", "onClick", "icon-color", "disabled"])), 64))
5502
5502
  ]);
5503
5503
  };
@@ -5633,8 +5633,8 @@ const zr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
5633
5633
  height: "auto",
5634
5634
  boxShadow: "0px 4px 8px 0px rgba(199, 199, 204, 0.24), 0px 4px 8px 0px color(display-p3 0.7804 0.7804 0.8 / 0.24)"
5635
5635
  },
5636
- label: "Our Outlets",
5637
- sublabel: "Find a store near you",
5636
+ label: "user.branches.ourOutlets",
5637
+ sublabel: "user.branches.findStoreNearYou",
5638
5638
  iconColor: "var(--brand-color-primary)",
5639
5639
  labelColor: "var(--brand-color-typo-primary)",
5640
5640
  sublabelColor: "var(--brand-color-typo-secondary)"
@@ -5958,8 +5958,8 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
5958
5958
  }, {
5959
5959
  "dialog-header": M(() => [
5960
5960
  I("div", ai, [
5961
- I("h2", ni, j(v(a)("brand.template.selection.title")), 1),
5962
- I("p", oi, j(v(a)("brand.template.selection.description")), 1)
5961
+ I("h2", ni, j(y(a)("brand.template.selection.title")), 1),
5962
+ I("p", oi, j(y(a)("brand.template.selection.description")), 1)
5963
5963
  ])
5964
5964
  ]),
5965
5965
  "dialog-footer": M(() => [
@@ -5967,13 +5967,13 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
5967
5967
  w(c, {
5968
5968
  variant: "tertiary",
5969
5969
  onClick: s[2] || (s[2] = (m) => i.$emit("close")),
5970
- label: v(a)("brand.template.selection.cancel")
5970
+ label: y(a)("brand.template.selection.cancel")
5971
5971
  }, null, 8, ["label"]),
5972
5972
  w(c, {
5973
5973
  variant: "primary",
5974
5974
  disabled: !n.value,
5975
5975
  onClick: r,
5976
- label: v(a)("brand.template.selection.create")
5976
+ label: y(a)("brand.template.selection.create")
5977
5977
  }, null, 8, ["disabled", "label"])
5978
5978
  ])
5979
5979
  ]),
@@ -5993,13 +5993,13 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
5993
5993
  size: "xl",
5994
5994
  class: "text-fm-color-neutral-gray-400 mb-8"
5995
5995
  }),
5996
- I("div", si, j(v(a)("brand.template.selection.defaultPreview")), 1)
5996
+ I("div", si, j(y(a)("brand.template.selection.defaultPreview")), 1)
5997
5997
  ])
5998
5998
  ]),
5999
5999
  I("div", di, [
6000
6000
  I("div", null, [
6001
- I("h3", ci, j(v(a)("brand.template.selection.defaultTitle")), 1),
6002
- I("p", ui, j(v(a)("brand.template.selection.defaultDescription")), 1)
6001
+ I("h3", ci, j(y(a)("brand.template.selection.defaultTitle")), 1),
6002
+ I("p", ui, j(y(a)("brand.template.selection.defaultDescription")), 1)
6003
6003
  ])
6004
6004
  ])
6005
6005
  ], 2),
@@ -6017,13 +6017,13 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6017
6017
  size: "xl",
6018
6018
  class: "text-fm-color-neutral-gray-400 mb-8"
6019
6019
  }),
6020
- I("div", bi, j(v(a)("brand.template.selection.blankPreview")), 1)
6020
+ I("div", bi, j(y(a)("brand.template.selection.blankPreview")), 1)
6021
6021
  ])
6022
6022
  ]),
6023
6023
  I("div", fi, [
6024
6024
  I("div", null, [
6025
- I("h3", gi, j(v(a)("brand.template.selection.blankTitle")), 1),
6026
- I("p", hi, j(v(a)("brand.template.selection.blankDescription")), 1)
6025
+ I("h3", gi, j(y(a)("brand.template.selection.blankTitle")), 1),
6026
+ I("p", hi, j(y(a)("brand.template.selection.blankDescription")), 1)
6027
6027
  ])
6028
6028
  ])
6029
6029
  ], 2)
@@ -6033,7 +6033,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6033
6033
  }, 8, ["model-value"]);
6034
6034
  };
6035
6035
  }
6036
- }), Ti = { 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" }, xi = { class: "bg-fm-color-neutral-white px-8 py-8 border border-fm-color-opacity-sm rounded-sm" }, Ci = { class: "py-8 px-12 w-full flex items-center justify-between gap-8 transition-all duration-500" }, _i = { class: "flex items-center gap-8" }, wi = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Ii = { class: "flex items-center gap-8" }, Ei = { class: "overflow-y-auto" }, Si = { class: "flex items-center gap-8" }, Ai = { class: "fm-typo-en-body-md-400 text-fm-color-primary" }, Bi = { class: "fm-typo-en-body-md-400 text-fm-color-primary" }, Li = /* @__PURE__ */ se({
6036
+ }), Ti = { 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" }, xi = { class: "bg-fm-color-neutral-white px-8 py-8 border border-fm-color-opacity-sm rounded-sm" }, Ci = { class: "py-8 px-12 w-full flex items-center justify-between gap-8 transition-all duration-500" }, _i = { class: "flex items-center gap-8" }, wi = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Ii = { class: "flex items-center gap-8" }, Ei = { class: "overflow-y-auto" }, Si = { class: "flex items-center gap-8" }, Ai = { class: "fm-typo-en-body-md-400 text-fm-color-primary" }, Li = { class: "fm-typo-en-body-md-400 text-fm-color-primary" }, Bi = /* @__PURE__ */ se({
6037
6037
  __name: "TemplatePicker",
6038
6038
  setup(t) {
6039
6039
  const e = q(!1), a = q(""), n = q(""), o = q(!1), r = q("default"), l = We(), i = Ge(), s = Ue(), d = Ct(), c = dn(), p = To(), m = Ia(), { t: u } = Ze(), b = ie(
@@ -6066,7 +6066,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6066
6066
  }
6067
6067
  );
6068
6068
  };
6069
- function B(C) {
6069
+ function L(C) {
6070
6070
  if (e.value = !1, r.value = C || "default", s.isSaved())
6071
6071
  o.value = !0;
6072
6072
  else {
@@ -6118,7 +6118,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6118
6118
  const _ = r.value === "member" ? "member" : void 0;
6119
6119
  g(_, C);
6120
6120
  }
6121
- function y() {
6121
+ function v() {
6122
6122
  o.value = !1, r.value = "default";
6123
6123
  }
6124
6124
  function T(C) {
@@ -6145,7 +6145,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6145
6145
  function x(C) {
6146
6146
  n.value = C;
6147
6147
  }
6148
- function L() {
6148
+ function B() {
6149
6149
  n.value = "";
6150
6150
  }
6151
6151
  function D(C) {
@@ -6229,7 +6229,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6229
6229
  }
6230
6230
  ), (C, _) => {
6231
6231
  const A = V("FmIcon"), U = V("FmChip"), ne = V("FmMenuDivider"), z = V("FmSearch"), fe = V("FmMenuItem"), He = V("FmPopover");
6232
- return N(), Z(Le, null, [
6232
+ return N(), Z(Be, null, [
6233
6233
  w(He, {
6234
6234
  width: 300,
6235
6235
  "max-height": 400,
@@ -6240,10 +6240,10 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6240
6240
  var O, Se;
6241
6241
  return [
6242
6242
  I("div", Ti, [
6243
- (O = v(i).state.selectedTemplate) != null && O.isPublished && ![
6244
- v(i).state.activeTemplateId,
6245
- v(i).state.activeMemberTemplateId
6246
- ].includes(v(i).state.selectedTemplate.templateId) ? (N(), ae(U, {
6243
+ (O = y(i).state.selectedTemplate) != null && O.isPublished && ![
6244
+ y(i).state.activeTemplateId,
6245
+ y(i).state.activeMemberTemplateId
6246
+ ].includes(y(i).state.selectedTemplate.templateId) ? (N(), ae(U, {
6247
6247
  key: 0,
6248
6248
  class: "bg-fm-color-system-success-100",
6249
6249
  compact: ""
@@ -6257,13 +6257,13 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6257
6257
  ]),
6258
6258
  _: 1
6259
6259
  })) : Q("", !0),
6260
- v(i).state.selectedTemplate && [
6261
- v(i).state.activeTemplateId,
6262
- v(i).state.activeMemberTemplateId
6263
- ].includes(v(i).state.selectedTemplate.templateId) ? (N(), ae(U, {
6260
+ y(i).state.selectedTemplate && [
6261
+ y(i).state.activeTemplateId,
6262
+ y(i).state.activeMemberTemplateId
6263
+ ].includes(y(i).state.selectedTemplate.templateId) ? (N(), ae(U, {
6264
6264
  key: 1,
6265
6265
  class: ye([{
6266
- grayscale: !v(i).state.selectedTemplate.isPublished
6266
+ grayscale: !y(i).state.selectedTemplate.isPublished
6267
6267
  }, "bg-fm-color-system-warning-100"]),
6268
6268
  compact: ""
6269
6269
  }, {
@@ -6272,16 +6272,16 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6272
6272
  size: "sm",
6273
6273
  class: "text-fm-color-primary",
6274
6274
  outline: "",
6275
- name: v(i).state.selectedTemplate.templateId == v(i).state.activeTemplateId ? "home" : "account_circle"
6275
+ name: y(i).state.selectedTemplate.templateId == y(i).state.activeTemplateId ? "home" : "account_circle"
6276
6276
  }, null, 8, ["name"])
6277
6277
  ]),
6278
6278
  _: 1
6279
6279
  }, 8, ["class"])) : Q("", !0),
6280
6280
  I("p", {
6281
6281
  class: ye({
6282
- italic: !v(s).isSaved()
6282
+ italic: !y(s).isSaved()
6283
6283
  })
6284
- }, j((Se = v(i).state.selectedTemplate) == null ? void 0 : Se.templateAlias), 3),
6284
+ }, j((Se = y(i).state.selectedTemplate) == null ? void 0 : Se.templateAlias), 3),
6285
6285
  w(A, {
6286
6286
  name: e.value ? "keyboard_arrow_up" : "keyboard_arrow_down"
6287
6287
  }, null, 8, ["name"])
@@ -6290,13 +6290,13 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6290
6290
  }),
6291
6291
  default: M(() => [
6292
6292
  I("div", xi, [
6293
- v(i).state.selectedTemplate ? (N(), Z(Le, { key: 0 }, [
6293
+ y(i).state.selectedTemplate ? (N(), Z(Be, { key: 0 }, [
6294
6294
  I("div", Ci, [
6295
6295
  I("div", _i, [
6296
- v(i).state.selectedTemplate.isPublished && ![
6297
- v(i).state.activeTemplateId,
6298
- v(i).state.activeMemberTemplateId
6299
- ].includes(v(i).state.selectedTemplate.templateId) ? (N(), ae(U, {
6296
+ y(i).state.selectedTemplate.isPublished && ![
6297
+ y(i).state.activeTemplateId,
6298
+ y(i).state.activeMemberTemplateId
6299
+ ].includes(y(i).state.selectedTemplate.templateId) ? (N(), ae(U, {
6300
6300
  key: 0,
6301
6301
  class: "bg-fm-color-system-success-100",
6302
6302
  compact: ""
@@ -6311,12 +6311,12 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6311
6311
  _: 1
6312
6312
  })) : Q("", !0),
6313
6313
  [
6314
- v(i).state.activeTemplateId,
6315
- v(i).state.activeMemberTemplateId
6316
- ].includes(v(i).state.selectedTemplate.templateId) ? (N(), ae(U, {
6314
+ y(i).state.activeTemplateId,
6315
+ y(i).state.activeMemberTemplateId
6316
+ ].includes(y(i).state.selectedTemplate.templateId) ? (N(), ae(U, {
6317
6317
  key: 1,
6318
6318
  class: ye([{
6319
- grayscale: !v(i).state.selectedTemplate.isPublished
6319
+ grayscale: !y(i).state.selectedTemplate.isPublished
6320
6320
  }, "bg-fm-color-system-warning-100"]),
6321
6321
  compact: ""
6322
6322
  }, {
@@ -6325,25 +6325,25 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6325
6325
  size: "sm",
6326
6326
  class: "text-fm-color-primary",
6327
6327
  outline: "",
6328
- name: v(i).state.selectedTemplate.templateId == v(i).state.activeTemplateId ? "home" : "account_circle"
6328
+ name: y(i).state.selectedTemplate.templateId == y(i).state.activeTemplateId ? "home" : "account_circle"
6329
6329
  }, null, 8, ["name"])
6330
6330
  ]),
6331
6331
  _: 1
6332
6332
  }, 8, ["class"])) : Q("", !0),
6333
- I("span", wi, j(v(i).state.selectedTemplate.templateAlias), 1)
6333
+ I("span", wi, j(y(i).state.selectedTemplate.templateAlias), 1)
6334
6334
  ]),
6335
6335
  I("div", Ii, [
6336
6336
  w(A, {
6337
6337
  name: "edit",
6338
6338
  outline: "",
6339
6339
  class: "text-fm-color-neutral-black cursor-pointer",
6340
- onClick: _[0] || (_[0] = (O) => D(v(i).state.selectedTemplate))
6340
+ onClick: _[0] || (_[0] = (O) => D(y(i).state.selectedTemplate))
6341
6341
  }),
6342
6342
  w(A, {
6343
6343
  outline: "",
6344
6344
  name: "delete",
6345
6345
  class: "text-fm-color-system-error-300 cursor-pointer",
6346
- onClick: _[1] || (_[1] = (O) => F(v(i).state.selectedTemplate))
6346
+ onClick: _[1] || (_[1] = (O) => F(y(i).state.selectedTemplate))
6347
6347
  })
6348
6348
  ])
6349
6349
  ]),
@@ -6353,26 +6353,26 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6353
6353
  "model-value": a.value,
6354
6354
  "onUpdate:modelValue": _[2] || (_[2] = (O) => a.value = O),
6355
6355
  class: "p-4",
6356
- placeholder: v(u)("brand.template.picker.search")
6356
+ placeholder: y(u)("brand.template.picker.search")
6357
6357
  }, null, 8, ["model-value", "placeholder"]),
6358
6358
  I("div", Ei, [
6359
- (N(!0), Z(Le, null, vt(b.value, (O, Se) => {
6359
+ (N(!0), Z(Be, null, vt(b.value, (O, Se) => {
6360
6360
  var Fe;
6361
- return N(), Z(Le, {
6361
+ return N(), Z(Be, {
6362
6362
  key: O.templateId
6363
6363
  }, [
6364
6364
  w(fe, {
6365
6365
  label: O.templateAlias,
6366
- "model-value": O.templateId === ((Fe = v(i).state.selectedTemplate) == null ? void 0 : Fe.templateId),
6366
+ "model-value": O.templateId === ((Fe = y(i).state.selectedTemplate) == null ? void 0 : Fe.templateId),
6367
6367
  onClick: (lt) => T(O),
6368
6368
  onMouseover: (lt) => x(O.templateId),
6369
- onMouseout: L,
6369
+ onMouseout: B,
6370
6370
  class: "[&>div]:h-40"
6371
6371
  }, {
6372
6372
  prepend: M(() => [
6373
6373
  O.isPublished && ![
6374
- v(i).state.activeTemplateId,
6375
- v(i).state.activeMemberTemplateId
6374
+ y(i).state.activeTemplateId,
6375
+ y(i).state.activeMemberTemplateId
6376
6376
  ].includes(O.templateId) ? (N(), ae(U, {
6377
6377
  key: 0,
6378
6378
  class: "bg-fm-color-system-success-100",
@@ -6389,8 +6389,8 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6389
6389
  _: 1
6390
6390
  })) : Q("", !0),
6391
6391
  [
6392
- v(i).state.activeTemplateId,
6393
- v(i).state.activeMemberTemplateId
6392
+ y(i).state.activeTemplateId,
6393
+ y(i).state.activeMemberTemplateId
6394
6394
  ].includes(O.templateId) ? (N(), ae(U, {
6395
6395
  key: 1,
6396
6396
  class: ye(["bg-fm-color-system-warning-100", {
@@ -6402,7 +6402,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6402
6402
  w(A, {
6403
6403
  color: "primary",
6404
6404
  class: "text-fm-color-primary",
6405
- name: O.templateId == v(i).state.activeTemplateId ? "home" : "account_circle",
6405
+ name: O.templateId == y(i).state.activeTemplateId ? "home" : "account_circle",
6406
6406
  size: "sm",
6407
6407
  outline: ""
6408
6408
  }, null, 8, ["name"])
@@ -6426,7 +6426,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6426
6426
  }, null, 8, ["onClick"]), [
6427
6427
  [
6428
6428
  Xt,
6429
- b.value.length > 1 && O.templateId !== v(i).state.activeTemplateId
6429
+ b.value.length > 1 && O.templateId !== y(i).state.activeTemplateId
6430
6430
  ]
6431
6431
  ])
6432
6432
  ], 512), [
@@ -6444,12 +6444,12 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6444
6444
  ]),
6445
6445
  Gt(w(fe, {
6446
6446
  disabled: "",
6447
- label: v(u)("brand.template.picker.noTemplateFound")
6447
+ label: y(u)("brand.template.picker.noTemplateFound")
6448
6448
  }, null, 8, ["label"]), [
6449
6449
  [Xt, b.value.length === 0]
6450
6450
  ]),
6451
6451
  w(ne, { inset: "" }),
6452
- w(fe, { onClick: B }, {
6452
+ w(fe, { onClick: L }, {
6453
6453
  prepend: M(() => [
6454
6454
  w(A, {
6455
6455
  name: "add",
@@ -6457,12 +6457,12 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6457
6457
  })
6458
6458
  ]),
6459
6459
  label: M(() => [
6460
- I("div", Ai, j(v(u)("brand.template.picker.addNewTemplate")), 1)
6460
+ I("div", Ai, j(y(u)("brand.template.picker.addNewTemplate")), 1)
6461
6461
  ]),
6462
6462
  _: 1
6463
6463
  }),
6464
6464
  w(fe, {
6465
- onClick: _[3] || (_[3] = (O) => B("member"))
6465
+ onClick: _[3] || (_[3] = (O) => L("member"))
6466
6466
  }, {
6467
6467
  prepend: M(() => [
6468
6468
  w(A, {
@@ -6471,7 +6471,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6471
6471
  })
6472
6472
  ]),
6473
6473
  label: M(() => [
6474
- I("div", Bi, j(v(u)("brand.template.picker.addMemberTemplate")), 1)
6474
+ I("div", Li, j(y(u)("brand.template.picker.addMemberTemplate")), 1)
6475
6475
  ]),
6476
6476
  _: 1
6477
6477
  })
@@ -6482,7 +6482,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6482
6482
  w(vi, {
6483
6483
  show: o.value,
6484
6484
  "template-options": [],
6485
- onClose: y,
6485
+ onClose: v,
6486
6486
  onSelect: f
6487
6487
  }, null, 8, ["show"])
6488
6488
  ], 64);
@@ -6525,18 +6525,18 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6525
6525
  "5f76a6ffcd6730001b320816",
6526
6526
  "67ff36e8b11f39001c012541"
6527
6527
  ], c = ie(() => s.value === "dev" || n.state.isPremium || d.includes(r.currentBusiness.value._id));
6528
- function p(f, y) {
6529
- return !f || !c.value ? !1 : (!f.group || f.group == "default") && y == "home" ? f.isPublished && o.state.activeTemplateId !== f.templateId : f.group == "member" && y == "member" ? f.isPublished && o.state.activeMemberTemplateId !== f.templateId : !1;
6528
+ function p(f, v) {
6529
+ return !f || !c.value ? !1 : (!f.group || f.group == "default") && v == "home" ? f.isPublished && o.state.activeTemplateId !== f.templateId : f.group == "member" && v == "member" ? f.isPublished && o.state.activeMemberTemplateId !== f.templateId : !1;
6530
6530
  }
6531
- function m(f, y) {
6531
+ function m(f, v) {
6532
6532
  if (!f || f.group == "referral") return "";
6533
- if (y == "home")
6533
+ if (v == "home")
6534
6534
  return f.isPublished ? o.state.activeTemplateId === f.templateId ? i("brand.template.shareMenu.thisTemplateSetAsHomepage") : "" : i("brand.template.shareMenu.templateNotPublished");
6535
- if (y == "member")
6535
+ if (v == "member")
6536
6536
  return f.isPublished ? o.state.activeMemberTemplateId === f.templateId ? i("brand.template.shareMenu.thisTemplateSetAsMemberHomepage") : "" : i("brand.template.shareMenu.templateNotPublished");
6537
6537
  }
6538
6538
  const u = ie(() => {
6539
- var f, y, T, x, L, D, F, C;
6539
+ var f, v, T, x, B, D, F, C;
6540
6540
  return [
6541
6541
  {
6542
6542
  label: i("brand.template.shareMenu.saveAndPublish"),
@@ -6564,7 +6564,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6564
6564
  {
6565
6565
  label: i("brand.template.shareMenu.publishAsMainHomepage"),
6566
6566
  sublabel: m(o.state.selectedTemplate, "home"),
6567
- sublabelClass: (f = o.state.selectedTemplate) != null && f.isPublished ? o.state.activeTemplateId === ((y = o.state.selectedTemplate) == null ? void 0 : y.templateId) ? "text-fm-color-typo-warning" : "" : "text-fm-color-typo-warning",
6567
+ sublabelClass: (f = o.state.selectedTemplate) != null && f.isPublished ? o.state.activeTemplateId === ((v = o.state.selectedTemplate) == null ? void 0 : v.templateId) ? "text-fm-color-typo-warning" : "" : "text-fm-color-typo-warning",
6568
6568
  icon: "home",
6569
6569
  action: () => {
6570
6570
  b();
@@ -6583,7 +6583,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6583
6583
  },
6584
6584
  {
6585
6585
  label: i("brand.template.shareMenu.copyPublicLinkView"),
6586
- sublabel: (L = o.state.selectedTemplate) != null && L.templateId.startsWith("member-") || (D = o.state.selectedTemplate) != null && D.isPublished ? "" : i("brand.template.shareMenu.notPublishedYet"),
6586
+ sublabel: (B = o.state.selectedTemplate) != null && B.templateId.startsWith("member-") || (D = o.state.selectedTemplate) != null && D.isPublished ? "" : i("brand.template.shareMenu.notPublishedYet"),
6587
6587
  sublabelClass: "text-fm-color-typo-warning",
6588
6588
  icon: "link",
6589
6589
  action: () => {
@@ -6604,8 +6604,8 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6604
6604
  );
6605
6605
  }
6606
6606
  async function g() {
6607
- var y;
6608
- const f = `${"https://{slug}.feedmedev.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((y = r.currentBusiness.value) == null ? void 0 : y.id)}`)}`;
6607
+ var v;
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;
@@ -6621,11 +6621,11 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6621
6621
  }
6622
6622
  );
6623
6623
  }
6624
- async function B() {
6625
- var f, y;
6624
+ async function L() {
6625
+ var f, v;
6626
6626
  (f = o.state.selectedTemplate) != null && f.isPublished && l.promise(o.unpublishTemplate(r.currentBusiness.value._id), {
6627
6627
  loading: i("brand.template.shareMenu.unpublishing", {
6628
- templateAlias: (y = o.state.selectedTemplate) == null ? void 0 : y.templateAlias
6628
+ templateAlias: (v = o.state.selectedTemplate) == null ? void 0 : v.templateAlias
6629
6629
  }),
6630
6630
  success: () => {
6631
6631
  var T;
@@ -6636,30 +6636,30 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6636
6636
  error: () => i("brand.template.shareMenu.errorUnpublishing")
6637
6637
  });
6638
6638
  }
6639
- return (f, y) => {
6640
- const T = V("FmButton"), x = V("FmMenuDivider"), L = V("FmMenuItem"), D = V("FmMenu");
6639
+ return (f, v) => {
6640
+ const T = V("FmButton"), x = V("FmMenuDivider"), B = V("FmMenuItem"), D = V("FmMenu");
6641
6641
  return N(), ae(D, {
6642
6642
  placement: "bottom-end",
6643
- onMenuChanged: y[0] || (y[0] = (F) => e.value = F)
6643
+ onMenuChanged: v[0] || (v[0] = (F) => e.value = F)
6644
6644
  }, {
6645
6645
  "menu-button": M(() => [
6646
6646
  w(T, {
6647
6647
  "prepend-icon": "publish",
6648
6648
  "append-icon": e.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
6649
- label: v(i)("brand.template.shareMenu.share")
6649
+ label: y(i)("brand.template.shareMenu.share")
6650
6650
  }, null, 8, ["append-icon", "label"])
6651
6651
  ]),
6652
6652
  default: M(() => {
6653
6653
  var F;
6654
6654
  return [
6655
6655
  I("div", ki, [
6656
- I("div", Di, j(v(i)("brand.template.shareMenu.publishThisTemplate")), 1),
6657
- (N(!0), Z(Le, null, vt(u.value, (C) => (N(), Z(Le, null, [
6656
+ I("div", Di, j(y(i)("brand.template.shareMenu.publishThisTemplate")), 1),
6657
+ (N(!0), Z(Be, null, vt(u.value, (C) => (N(), Z(Be, null, [
6658
6658
  w(x, {
6659
6659
  inset: "",
6660
6660
  class: "!mx-4 hidden [&:nth-last-child(2)]:block"
6661
6661
  }),
6662
- w(L, {
6662
+ w(B, {
6663
6663
  label: C.label,
6664
6664
  sublabel: C.sublabel,
6665
6665
  icon: C.icon,
@@ -6694,9 +6694,9 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6694
6694
  inset: "",
6695
6695
  class: "!mx-4"
6696
6696
  }),
6697
- w(L, {
6698
- disabled: !((F = v(o).state.selectedTemplate) != null && F.isPublished),
6699
- onClick: B
6697
+ w(B, {
6698
+ disabled: !((F = y(o).state.selectedTemplate) != null && F.isPublished),
6699
+ onClick: L
6700
6700
  }, {
6701
6701
  label: M(() => {
6702
6702
  var C;
@@ -6704,9 +6704,9 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6704
6704
  I("div", {
6705
6705
  class: ye([
6706
6706
  "fm-typo-en-body-md-400 max-w-[240px]",
6707
- (C = v(o).state.selectedTemplate) != null && C.isPublished ? "text-fm-color-typo-error" : "text-fm-color-typo-disabled"
6707
+ (C = y(o).state.selectedTemplate) != null && C.isPublished ? "text-fm-color-typo-error" : "text-fm-color-typo-disabled"
6708
6708
  ])
6709
- }, j(v(i)("brand.template.shareMenu.unpublish")), 3)
6709
+ }, j(y(i)("brand.template.shareMenu.unpublish")), 3)
6710
6710
  ];
6711
6711
  }),
6712
6712
  _: 1
@@ -6995,7 +6995,7 @@ var Rn = {};
6995
6995
  };
6996
6996
  })(Rn);
6997
6997
  var zt = {};
6998
- const $e = Yt, Bt = [
6998
+ const $e = Yt, Lt = [
6999
6999
  // L M Q H
7000
7000
  1,
7001
7001
  1,
@@ -7157,7 +7157,7 @@ const $e = Yt, Bt = [
7157
7157
  49,
7158
7158
  68,
7159
7159
  81
7160
- ], Lt = [
7160
+ ], Bt = [
7161
7161
  // L M Q H
7162
7162
  7,
7163
7163
  10,
@@ -7323,13 +7323,13 @@ const $e = Yt, Bt = [
7323
7323
  zt.getBlocksCount = function(e, a) {
7324
7324
  switch (a) {
7325
7325
  case $e.L:
7326
- return Bt[(e - 1) * 4 + 0];
7326
+ return Lt[(e - 1) * 4 + 0];
7327
7327
  case $e.M:
7328
- return Bt[(e - 1) * 4 + 1];
7328
+ return Lt[(e - 1) * 4 + 1];
7329
7329
  case $e.Q:
7330
- return Bt[(e - 1) * 4 + 2];
7330
+ return Lt[(e - 1) * 4 + 2];
7331
7331
  case $e.H:
7332
- return Bt[(e - 1) * 4 + 3];
7332
+ return Lt[(e - 1) * 4 + 3];
7333
7333
  default:
7334
7334
  return;
7335
7335
  }
@@ -7337,13 +7337,13 @@ zt.getBlocksCount = function(e, a) {
7337
7337
  zt.getTotalCodewordsCount = function(e, a) {
7338
7338
  switch (a) {
7339
7339
  case $e.L:
7340
- return Lt[(e - 1) * 4 + 0];
7340
+ return Bt[(e - 1) * 4 + 0];
7341
7341
  case $e.M:
7342
- return Lt[(e - 1) * 4 + 1];
7342
+ return Bt[(e - 1) * 4 + 1];
7343
7343
  case $e.Q:
7344
- return Lt[(e - 1) * 4 + 2];
7344
+ return Bt[(e - 1) * 4 + 2];
7345
7345
  case $e.H:
7346
- return Lt[(e - 1) * 4 + 3];
7346
+ return Bt[(e - 1) * 4 + 3];
7347
7347
  default:
7348
7348
  return;
7349
7349
  }
@@ -7509,8 +7509,8 @@ Ee.testAlphanumeric = function(e) {
7509
7509
  function c(m, u) {
7510
7510
  let b = 0;
7511
7511
  return m.forEach(function(g) {
7512
- const B = d(g.mode, u);
7513
- b += B + g.getBitsLength();
7512
+ const L = d(g.mode, u);
7513
+ b += L + g.getBitsLength();
7514
7514
  }), b;
7515
7515
  }
7516
7516
  function p(m, u) {
@@ -7524,9 +7524,9 @@ Ee.testAlphanumeric = function(e) {
7524
7524
  if (!r.isValid(u))
7525
7525
  throw new Error("Invalid QR Code version");
7526
7526
  typeof g > "u" && (g = o.BYTE);
7527
- const B = e.getSymbolTotalCodewords(u), f = a.getTotalCodewordsCount(u, b), y = (B - f) * 8;
7528
- if (g === o.MIXED) return y;
7529
- const T = y - d(g, u);
7527
+ const L = e.getSymbolTotalCodewords(u), f = a.getTotalCodewordsCount(u, b), v = (L - f) * 8;
7528
+ if (g === o.MIXED) return v;
7529
+ const T = v - d(g, u);
7530
7530
  switch (g) {
7531
7531
  case o.NUMERIC:
7532
7532
  return Math.floor(T / 10 * 3);
@@ -7540,16 +7540,16 @@ Ee.testAlphanumeric = function(e) {
7540
7540
  }
7541
7541
  }, t.getBestVersionForData = function(u, b) {
7542
7542
  let g;
7543
- const B = n.from(b, n.M);
7543
+ const L = n.from(b, n.M);
7544
7544
  if (Array.isArray(u)) {
7545
7545
  if (u.length > 1)
7546
- return p(u, B);
7546
+ return p(u, L);
7547
7547
  if (u.length === 0)
7548
7548
  return 1;
7549
7549
  g = u[0];
7550
7550
  } else
7551
7551
  g = u;
7552
- return s(g.mode, g.getLength(), B);
7552
+ return s(g.mode, g.getLength(), L);
7553
7553
  }, t.getEncodedBits = function(u) {
7554
7554
  if (!r.isValid(u) || u < 7)
7555
7555
  throw new Error("Invalid QR Code version");
@@ -7713,10 +7713,10 @@ var el = it, jn = { exports: {} };
7713
7713
  l[n] = 0;
7714
7714
  var i = e.PriorityQueue.make();
7715
7715
  i.push(n, 0);
7716
- for (var s, d, c, p, m, u, b, g, B; !i.empty(); ) {
7716
+ for (var s, d, c, p, m, u, b, g, L; !i.empty(); ) {
7717
7717
  s = i.pop(), d = s.value, p = s.cost, m = a[d] || {};
7718
7718
  for (c in m)
7719
- m.hasOwnProperty(c) && (u = m[c], b = p + u, g = l[c], B = typeof l[c] > "u", (B || g > b) && (l[c] = b, i.push(c, b), r[c] = d));
7719
+ m.hasOwnProperty(c) && (u = m[c], b = p + u, g = l[c], L = typeof l[c] > "u", (L || g > b) && (l[c] = b, i.push(c, b), r[c] = d));
7720
7720
  }
7721
7721
  if (typeof o < "u" && typeof l[o] > "u") {
7722
7722
  var f = ["Could not find a path from ", n, " to ", o, "."].join("");
@@ -7777,22 +7777,22 @@ var tl = jn.exports;
7777
7777
  function d(f) {
7778
7778
  return unescape(encodeURIComponent(f)).length;
7779
7779
  }
7780
- function c(f, y, T) {
7780
+ function c(f, v, T) {
7781
7781
  const x = [];
7782
- let L;
7783
- for (; (L = f.exec(T)) !== null; )
7782
+ let B;
7783
+ for (; (B = f.exec(T)) !== null; )
7784
7784
  x.push({
7785
- data: L[0],
7786
- index: L.index,
7787
- mode: y,
7788
- length: L[0].length
7785
+ data: B[0],
7786
+ index: B.index,
7787
+ mode: v,
7788
+ length: B[0].length
7789
7789
  });
7790
7790
  return x;
7791
7791
  }
7792
7792
  function p(f) {
7793
- const y = c(l.NUMERIC, e.NUMERIC, f), T = c(l.ALPHANUMERIC, e.ALPHANUMERIC, f);
7794
- let x, L;
7795
- return i.isKanjiModeEnabled() ? (x = c(l.BYTE, e.BYTE, f), L = c(l.KANJI, e.KANJI, f)) : (x = c(l.BYTE_KANJI, e.BYTE, f), L = []), y.concat(T, x, L).sort(function(F, C) {
7793
+ const v = c(l.NUMERIC, e.NUMERIC, f), T = c(l.ALPHANUMERIC, e.ALPHANUMERIC, f);
7794
+ let x, B;
7795
+ return i.isKanjiModeEnabled() ? (x = c(l.BYTE, e.BYTE, f), B = c(l.KANJI, e.KANJI, f)) : (x = c(l.BYTE_KANJI, e.BYTE, f), B = []), v.concat(T, x, B).sort(function(F, C) {
7796
7796
  return F.index - C.index;
7797
7797
  }).map(function(F) {
7798
7798
  return {
@@ -7802,8 +7802,8 @@ var tl = jn.exports;
7802
7802
  };
7803
7803
  });
7804
7804
  }
7805
- function m(f, y) {
7806
- switch (y) {
7805
+ function m(f, v) {
7806
+ switch (v) {
7807
7807
  case e.NUMERIC:
7808
7808
  return a.getBitsLength(f);
7809
7809
  case e.ALPHANUMERIC:
@@ -7815,66 +7815,66 @@ var tl = jn.exports;
7815
7815
  }
7816
7816
  }
7817
7817
  function u(f) {
7818
- return f.reduce(function(y, T) {
7819
- const x = y.length - 1 >= 0 ? y[y.length - 1] : null;
7820
- return x && x.mode === T.mode ? (y[y.length - 1].data += T.data, y) : (y.push(T), y);
7818
+ return f.reduce(function(v, T) {
7819
+ const x = v.length - 1 >= 0 ? v[v.length - 1] : null;
7820
+ return x && x.mode === T.mode ? (v[v.length - 1].data += T.data, v) : (v.push(T), v);
7821
7821
  }, []);
7822
7822
  }
7823
7823
  function b(f) {
7824
- const y = [];
7824
+ const v = [];
7825
7825
  for (let T = 0; T < f.length; T++) {
7826
7826
  const x = f[T];
7827
7827
  switch (x.mode) {
7828
7828
  case e.NUMERIC:
7829
- y.push([
7829
+ v.push([
7830
7830
  x,
7831
7831
  { data: x.data, mode: e.ALPHANUMERIC, length: x.length },
7832
7832
  { data: x.data, mode: e.BYTE, length: x.length }
7833
7833
  ]);
7834
7834
  break;
7835
7835
  case e.ALPHANUMERIC:
7836
- y.push([
7836
+ v.push([
7837
7837
  x,
7838
7838
  { data: x.data, mode: e.BYTE, length: x.length }
7839
7839
  ]);
7840
7840
  break;
7841
7841
  case e.KANJI:
7842
- y.push([
7842
+ v.push([
7843
7843
  x,
7844
7844
  { data: x.data, mode: e.BYTE, length: d(x.data) }
7845
7845
  ]);
7846
7846
  break;
7847
7847
  case e.BYTE:
7848
- y.push([
7848
+ v.push([
7849
7849
  { data: x.data, mode: e.BYTE, length: d(x.data) }
7850
7850
  ]);
7851
7851
  }
7852
7852
  }
7853
- return y;
7853
+ return v;
7854
7854
  }
7855
- function g(f, y) {
7855
+ function g(f, v) {
7856
7856
  const T = {}, x = { start: {} };
7857
- let L = ["start"];
7857
+ let B = ["start"];
7858
7858
  for (let D = 0; D < f.length; D++) {
7859
7859
  const F = f[D], C = [];
7860
7860
  for (let _ = 0; _ < F.length; _++) {
7861
7861
  const A = F[_], U = "" + D + _;
7862
7862
  C.push(U), T[U] = { node: A, lastCount: 0 }, x[U] = {};
7863
- for (let ne = 0; ne < L.length; ne++) {
7864
- const z = L[ne];
7865
- T[z] && T[z].node.mode === A.mode ? (x[z][U] = m(T[z].lastCount + A.length, A.mode) - m(T[z].lastCount, A.mode), T[z].lastCount += A.length) : (T[z] && (T[z].lastCount = A.length), x[z][U] = m(A.length, A.mode) + 4 + e.getCharCountIndicator(A.mode, y));
7863
+ for (let ne = 0; ne < B.length; ne++) {
7864
+ const z = B[ne];
7865
+ T[z] && T[z].node.mode === A.mode ? (x[z][U] = m(T[z].lastCount + A.length, A.mode) - m(T[z].lastCount, A.mode), T[z].lastCount += A.length) : (T[z] && (T[z].lastCount = A.length), x[z][U] = m(A.length, A.mode) + 4 + e.getCharCountIndicator(A.mode, v));
7866
7866
  }
7867
7867
  }
7868
- L = C;
7868
+ B = C;
7869
7869
  }
7870
- for (let D = 0; D < L.length; D++)
7871
- x[L[D]].end = 0;
7870
+ for (let D = 0; D < B.length; D++)
7871
+ x[B[D]].end = 0;
7872
7872
  return { map: x, table: T };
7873
7873
  }
7874
- function B(f, y) {
7874
+ function L(f, v) {
7875
7875
  let T;
7876
7876
  const x = e.getBestModeForData(f);
7877
- if (T = e.from(y, x), T !== e.BYTE && T.bit < x.bit)
7877
+ if (T = e.from(v, x), T !== e.BYTE && T.bit < x.bit)
7878
7878
  throw new Error('"' + f + '" cannot be encoded with mode ' + e.toString(T) + `.
7879
7879
  Suggested mode is: ` + e.toString(x));
7880
7880
  switch (T === e.KANJI && !i.isKanjiModeEnabled() && (T = e.BYTE), T) {
@@ -7888,18 +7888,18 @@ var tl = jn.exports;
7888
7888
  return new o(f);
7889
7889
  }
7890
7890
  }
7891
- t.fromArray = function(y) {
7892
- return y.reduce(function(T, x) {
7893
- return typeof x == "string" ? T.push(B(x, null)) : x.data && T.push(B(x.data, x.mode)), T;
7891
+ t.fromArray = function(v) {
7892
+ return v.reduce(function(T, x) {
7893
+ return typeof x == "string" ? T.push(L(x, null)) : x.data && T.push(L(x.data, x.mode)), T;
7894
7894
  }, []);
7895
- }, t.fromString = function(y, T) {
7896
- const x = p(y, i.isKanjiModeEnabled()), L = b(x), D = g(L, T), F = s.find_path(D.map, "start", "end"), C = [];
7895
+ }, t.fromString = function(v, T) {
7896
+ const x = p(v, i.isKanjiModeEnabled()), B = b(x), D = g(B, T), F = s.find_path(D.map, "start", "end"), C = [];
7897
7897
  for (let _ = 1; _ < F.length - 1; _++)
7898
7898
  C.push(D.table[F[_]].node);
7899
7899
  return t.fromArray(u(C));
7900
- }, t.rawSplit = function(y) {
7900
+ }, t.rawSplit = function(v) {
7901
7901
  return t.fromArray(
7902
- p(y, i.isKanjiModeEnabled())
7902
+ p(v, i.isKanjiModeEnabled())
7903
7903
  );
7904
7904
  };
7905
7905
  })(zn);
@@ -7975,21 +7975,21 @@ function bl(t, e, a) {
7975
7975
  function fl(t, e, a) {
7976
7976
  const n = Wt.getSymbolTotalCodewords(e), o = Ca.getTotalCodewordsCount(e, a), r = n - o, l = Ca.getBlocksCount(e, a), i = n % l, s = l - i, d = Math.floor(n / l), c = Math.floor(r / l), p = c + 1, m = d - c, u = new il(m);
7977
7977
  let b = 0;
7978
- const g = new Array(l), B = new Array(l);
7978
+ const g = new Array(l), L = new Array(l);
7979
7979
  let f = 0;
7980
- const y = new Uint8Array(t.buffer);
7980
+ const v = new Uint8Array(t.buffer);
7981
7981
  for (let F = 0; F < l; F++) {
7982
7982
  const C = F < s ? c : p;
7983
- g[F] = y.slice(b, b + C), B[F] = u.encode(g[F]), b += C, f = Math.max(f, C);
7983
+ g[F] = v.slice(b, b + C), L[F] = u.encode(g[F]), b += C, f = Math.max(f, C);
7984
7984
  }
7985
7985
  const T = new Uint8Array(n);
7986
- let x = 0, L, D;
7987
- for (L = 0; L < f; L++)
7986
+ let x = 0, B, D;
7987
+ for (B = 0; B < f; B++)
7988
7988
  for (D = 0; D < l; D++)
7989
- L < g[D].length && (T[x++] = g[D][L]);
7990
- for (L = 0; L < m; L++)
7989
+ B < g[D].length && (T[x++] = g[D][B]);
7990
+ for (B = 0; B < m; B++)
7991
7991
  for (D = 0; D < l; D++)
7992
- T[x++] = B[D][L];
7992
+ T[x++] = L[D][B];
7993
7993
  return T;
7994
7994
  }
7995
7995
  function gl(t, e, a, n) {
@@ -8080,8 +8080,8 @@ var Wn = {}, Fa = {};
8080
8080
  for (let u = 0; u < d; u++) {
8081
8081
  let b = (m * d + u) * 4, g = r.color.light;
8082
8082
  if (m >= c && u >= c && m < d - c && u < d - c) {
8083
- const B = Math.floor((m - c) / s), f = Math.floor((u - c) / s);
8084
- g = p[i[B * l + f] ? 1 : 0];
8083
+ const L = Math.floor((m - c) / s), f = Math.floor((u - c) / s);
8084
+ g = p[i[L * l + f] ? 1 : 0];
8085
8085
  }
8086
8086
  n[b++] = g.r, n[b++] = g.g, n[b++] = g.b, n[b] = g.a;
8087
8087
  }
@@ -8204,7 +8204,7 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
8204
8204
  "dialog-button": M(() => [
8205
8205
  w(p, {
8206
8206
  placement: "bottom",
8207
- content: v(o)("brand.template.shareMenu.maintenanceTooltip")
8207
+ content: y(o)("brand.template.shareMenu.maintenanceTooltip")
8208
8208
  }, {
8209
8209
  default: M(() => [
8210
8210
  w(c, {
@@ -8217,7 +8217,7 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
8217
8217
  }, 8, ["content"])
8218
8218
  ]),
8219
8219
  "dialog-header": M(() => [
8220
- no(j(v(o)("brand.template.shareMenu.share")), 1)
8220
+ no(j(y(o)("brand.template.shareMenu.share")), 1)
8221
8221
  ]),
8222
8222
  default: M(() => [
8223
8223
  I("div", xl, [
@@ -8231,11 +8231,11 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
8231
8231
  I("div", Cl, [
8232
8232
  w(c, {
8233
8233
  variant: "secondary",
8234
- label: v(o)("brand.common.cancel"),
8234
+ label: y(o)("brand.common.cancel"),
8235
8235
  onClick: d[0] || (d[0] = (u) => r.value = !1)
8236
8236
  }, null, 8, ["label"]),
8237
8237
  w(c, {
8238
- label: v(o)("brand.template.shareMenu.copyPublicLinkView"),
8238
+ label: y(o)("brand.template.shareMenu.copyPublicLinkView"),
8239
8239
  onClick: i
8240
8240
  }, null, 8, ["label"])
8241
8241
  ])
@@ -8276,7 +8276,7 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
8276
8276
  return (s, d) => {
8277
8277
  const c = V("FmButton");
8278
8278
  return N(), Z("div", wl, [
8279
- w(Li),
8279
+ w(Bi),
8280
8280
  I("div", Il, [
8281
8281
  w(_l),
8282
8282
  w(c, {
@@ -8284,17 +8284,17 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
8284
8284
  variant: "tertiary",
8285
8285
  "prepend-icon": "save",
8286
8286
  onClick: i,
8287
- disabled: v(e).isSaved()
8287
+ disabled: y(e).isSaved()
8288
8288
  }, null, 8, ["disabled"]),
8289
8289
  w(Ni)
8290
8290
  ])
8291
8291
  ]);
8292
8292
  };
8293
8293
  }
8294
- }), Sl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gray-100 flex flex-col" }, Al = { class: "w-[375px] border border-fm-color-neutral-gray-200 m-auto pb-24 bg-brand-background-base" }, Bl = {
8294
+ }), Sl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gray-100 flex flex-col" }, Al = { class: "w-[375px] border border-fm-color-neutral-gray-200 m-auto pb-24 bg-brand-background-base" }, Ll = {
8295
8295
  key: 0,
8296
8296
  class: "flex items-center justify-between pt-8 px-12"
8297
- }, Ll = { class: "flex items-center justify-center cursor-pointer rounded-full text-fm-color-typo-secondary !h-32 !w-32 border-1 border-fm-color-neutral-gray-200" }, kl = ["onClickCapture"], Dl = {
8297
+ }, Bl = { class: "flex items-center justify-center cursor-pointer rounded-full text-fm-color-typo-secondary !h-32 !w-32 border-1 border-fm-color-neutral-gray-200" }, kl = ["onClickCapture"], Dl = {
8298
8298
  key: 0,
8299
8299
  class: "w-full h-[100px] flex items-center justify-center text-fm-color-typo-secondary mt-24"
8300
8300
  }, Nl = /* @__PURE__ */ se({
@@ -8336,7 +8336,7 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
8336
8336
  I("div", Al, [
8337
8337
  r.value ? (N(), ae(Ma($a[r.value.type]), oo({ key: 0 }, {
8338
8338
  data: r.value.data,
8339
- ...La[r.value.type],
8339
+ ...Ba[r.value.type],
8340
8340
  ...r.value.props
8341
8341
  }, {
8342
8342
  onClick: d[1] || (d[1] = (p) => i(r.value))
@@ -8344,9 +8344,9 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
8344
8344
  default: M(() => {
8345
8345
  var p, m;
8346
8346
  return [
8347
- r.value.type == "Homepage" && ((p = r.value.props) == null ? void 0 : p.hideCountrySwitcher) !== !0 ? (N(), Z("div", Bl, [
8347
+ r.value.type == "Homepage" && ((p = r.value.props) == null ? void 0 : p.hideCountrySwitcher) !== !0 ? (N(), Z("div", Ll, [
8348
8348
  w(yo, { data: { selectedCountry: "MY" } }),
8349
- I("div", Ll, [
8349
+ I("div", Bl, [
8350
8350
  w(c, {
8351
8351
  class: "rounded-full",
8352
8352
  name: "account_circle",
@@ -8359,7 +8359,7 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
8359
8359
  title: "Member",
8360
8360
  className: "block"
8361
8361
  })) : Q("", !0),
8362
- w(v(Ln), {
8362
+ w(y(Bn), {
8363
8363
  class: ye(["w-full h-full flex flex-col gap-16", { "min-h-[600px]": r.value.type == "Homepage" }]),
8364
8364
  modelValue: o.value,
8365
8365
  "onUpdate:modelValue": d[0] || (d[0] = (u) => o.value = u),
@@ -8372,7 +8372,7 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
8372
8372
  return [
8373
8373
  I("div", {
8374
8374
  class: "relative cursor-grab",
8375
- onClickCapture: ba((B) => i(u), ["prevent", "stop"])
8375
+ onClickCapture: ba((L) => i(u), ["prevent", "stop"])
8376
8376
  }, [
8377
8377
  (N(), ae(Ma($a[u.type]), ro(io({ data: u.data, ...u.props })), null, 16)),
8378
8378
  u._id === ((b = l.value) == null ? void 0 : b._id) ? (N(), Z("div", {
@@ -9469,17 +9469,17 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
9469
9469
  }
9470
9470
  ]
9471
9471
  }
9472
- ], Be = (t) => t, Vl = [
9472
+ ], Le = (t) => t, Vl = [
9473
9473
  {
9474
9474
  $cmp: "ConfigTab",
9475
9475
  props: {
9476
- title: Be("brand.template.nodeConfig.orderHistoryCard.title")
9476
+ title: Le("brand.template.nodeConfig.orderHistoryCard.title")
9477
9477
  },
9478
9478
  children: [
9479
9479
  {
9480
9480
  $cmp: "ConfigTabItem",
9481
9481
  props: {
9482
- title: Be(
9482
+ title: Le(
9483
9483
  "brand.template.nodeConfig.orderHistoryCard.memberCardTitle"
9484
9484
  ),
9485
9485
  value: "memberCard"
@@ -9490,18 +9490,18 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
9490
9490
  children: [
9491
9491
  {
9492
9492
  $formkit: "BaButtonGroup",
9493
- label: Be(
9493
+ label: Le(
9494
9494
  "brand.template.nodeConfig.orderHistoryCard.signInStateLabel"
9495
9495
  ),
9496
9496
  groupItems: [
9497
9497
  {
9498
- label: Be(
9498
+ label: Le(
9499
9499
  "brand.template.nodeConfig.orderHistoryCard.signedInLabel"
9500
9500
  ),
9501
9501
  value: !0
9502
9502
  },
9503
9503
  {
9504
- label: Be(
9504
+ label: Le(
9505
9505
  "brand.template.nodeConfig.orderHistoryCard.notSignedInLabel"
9506
9506
  ),
9507
9507
  value: !1
@@ -9511,18 +9511,18 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
9511
9511
  },
9512
9512
  {
9513
9513
  $formkit: "BaButtonGroup",
9514
- label: Be(
9514
+ label: Le(
9515
9515
  "brand.template.nodeConfig.orderHistoryCard.memberStateLabel"
9516
9516
  ),
9517
9517
  groupItems: [
9518
9518
  {
9519
- label: Be(
9519
+ label: Le(
9520
9520
  "brand.template.nodeConfig.orderHistoryCard.withOrdersLabel"
9521
9521
  ),
9522
9522
  value: Dn
9523
9523
  },
9524
9524
  {
9525
- label: Be(
9525
+ label: Le(
9526
9526
  "brand.template.nodeConfig.orderHistoryCard.withoutOrdersLabel"
9527
9527
  ),
9528
9528
  value: []
@@ -9537,7 +9537,7 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
9537
9537
  {
9538
9538
  $cmp: "ConfigTabItem",
9539
9539
  props: {
9540
- title: Be("brand.template.nodeConfig.orderHistoryCard.frameTitle"),
9540
+ title: Le("brand.template.nodeConfig.orderHistoryCard.frameTitle"),
9541
9541
  value: "frame"
9542
9542
  },
9543
9543
  children: [...be]
@@ -9950,7 +9950,7 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
9950
9950
  setup(t) {
9951
9951
  const { t: e } = Ze();
9952
9952
  return (a, n) => (N(), Z("div", null, [
9953
- a.label ? (N(), Z("div", Ql, j(v(e)(a.label)), 1)) : Q("", !0),
9953
+ a.label ? (N(), Z("div", Ql, j(y(e)(a.label)), 1)) : Q("", !0),
9954
9954
  I("div", es, [
9955
9955
  wa(a.$slots, "default")
9956
9956
  ])
@@ -9980,13 +9980,13 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
9980
9980
  return (r, l) => {
9981
9981
  const i = V("FmTab");
9982
9982
  return N(), Z("div", null, [
9983
- I("div", as, j(v(e)(r.title)), 1),
9983
+ I("div", as, j(y(e)(r.title)), 1),
9984
9984
  w(sn),
9985
9985
  I("div", ns, [
9986
- (N(!0), Z(Le, null, vt(a.value, (s) => (N(), ae(i, {
9986
+ (N(!0), Z(Be, null, vt(a.value, (s) => (N(), ae(i, {
9987
9987
  "model-value": n.value,
9988
9988
  "onUpdate:modelValue": l[0] || (l[0] = (d) => o(d)),
9989
- label: s.title,
9989
+ label: y(e)(s.title),
9990
9990
  value: s.value
9991
9991
  }, null, 8, ["model-value", "label", "value"]))), 256))
9992
9992
  ]),
@@ -10006,7 +10006,7 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
10006
10006
  a ? a.register(e) : console.warn("ConfigTabItem is to be used with ConfigTab as parent");
10007
10007
  }), (n, o) => {
10008
10008
  var r;
10009
- return ((r = v(a)) == null ? void 0 : r.currentTab.value) === n.value ? (N(), Z("div", rs, [
10009
+ return ((r = y(a)) == null ? void 0 : r.currentTab.value) === n.value ? (N(), Z("div", rs, [
10010
10010
  I("div", is, [
10011
10011
  wa(n.$slots, "default")
10012
10012
  ])
@@ -10058,7 +10058,7 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
10058
10058
  }
10059
10059
  }
10060
10060
  return (s, d) => (N(), Z("div", ss, [
10061
- a.value ? (N(), ae(v(So), {
10061
+ a.value ? (N(), ae(y(So), {
10062
10062
  config: { rootClasses: i },
10063
10063
  type: "form",
10064
10064
  actions: !1,
@@ -10068,16 +10068,16 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
10068
10068
  preserve: ""
10069
10069
  }, {
10070
10070
  default: M(() => [
10071
- w(v(Ao), {
10071
+ w(y(Ao), {
10072
10072
  schema: n.value,
10073
- library: v(r)
10073
+ library: y(r)
10074
10074
  }, null, 8, ["schema", "library"])
10075
10075
  ]),
10076
10076
  _: 1
10077
10077
  }, 8, ["config", "model-value"])) : Q("", !0)
10078
10078
  ]));
10079
10079
  }
10080
- }), cs = { class: "relative h-full w-screen flex flex-col overflow-y-hidden" }, us = { class: "flex h-full" }, Bs = /* @__PURE__ */ se({
10080
+ }), cs = { class: "relative h-full w-screen flex flex-col overflow-y-hidden" }, us = { class: "flex h-full" }, Ls = /* @__PURE__ */ se({
10081
10081
  __name: "BuilderView",
10082
10082
  props: {
10083
10083
  templateId: {}
@@ -10094,8 +10094,8 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
10094
10094
  if (n.state.allTemplates.length > 0) {
10095
10095
  const u = typeof r.currentRoute.value.params.templateId == "object" ? r.currentRoute.value.params.templateId[0] : r.currentRoute.value.params.templateId, b = n.state.allTemplates.find(
10096
10096
  (f) => u == f.templateId
10097
- ), g = (p = [...n.state.allTemplates].shift()) == null ? void 0 : p.templateId, B = (b == null ? void 0 : b.templateId) || (u != null && u.startsWith("member-") ? u : void 0) || g;
10098
- await a.setFromTemplate(c, B), n.setSelectedTemplate(B), (!n.state.activeMemberTemplateId || !n.state.activeTemplateId) && await n.getMainTemplateId(c);
10097
+ ), g = (p = [...n.state.allTemplates].shift()) == null ? void 0 : p.templateId, L = (b == null ? void 0 : b.templateId) || (u != null && u.startsWith("member-") ? u : void 0) || g;
10098
+ await a.setFromTemplate(c, L), n.setSelectedTemplate(L), (!n.state.activeMemberTemplateId || !n.state.activeTemplateId) && await n.getMainTemplateId(c);
10099
10099
  } else {
10100
10100
  console.log("No templates found, creating a new one"), n.addNewTemplate();
10101
10101
  const u = l.buildNewNode("Homepage", {});
@@ -10123,7 +10123,7 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
10123
10123
  ), (c, p) => {
10124
10124
  const m = V("FmCircularProgress"), u = V("FmOverlay");
10125
10125
  return N(), Z("div", cs, [
10126
- w(v(Eo), {
10126
+ w(y(Eo), {
10127
10127
  position: "top-right",
10128
10128
  "rich-colors": "",
10129
10129
  "close-button": "",
@@ -10151,5 +10151,5 @@ const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full
10151
10151
  }
10152
10152
  });
10153
10153
  export {
10154
- Bs as default
10154
+ Ls as default
10155
10155
  };