@feedmepos/mf-brand-app-builder 0.5.14 → 0.5.15

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,7 +1,7 @@
1
1
  import { defineComponent as y, ref as b, resolveComponent as w, createElementBlock as r, openBlock as s, createVNode as c, createCommentVNode as d, Fragment as C, createElementVNode as i, unref as u } from "vue";
2
2
  import { r as g, I as h } from "./image-Dm7AsBZX.js";
3
3
  import { useCoreStore as I } from "@feedmepos/mf-common";
4
- import "./main-BnnUrWK-.js";
4
+ import "./main-D5VZjpda.js";
5
5
  import { _ as $ } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
6
6
  import { C as k } from "./CircularProgress-DdblYCtV.js";
7
7
  import { v as F } from "./v4-CKwdnpQf.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, resolveComponent as y, createBlock as s, openBlock as c, unref as u, withCtx as i, createElementBlock as m, Fragment as x, renderList as g, createElementVNode as p, createVNode as n, resolveDynamicComponent as F } from "vue";
2
- import { F as f } from "./app-BSofsfPH.js";
2
+ import { F as f } from "./app-C-LBEIV5.js";
3
3
  const h = { class: "flex justify-end gap-4 items-center w-full py-16 px-12 border-b" }, z = { class: "flex flex-col gap-4 w-full p-12" }, I = /* @__PURE__ */ b({
4
4
  __name: "ListRepeater",
5
5
  props: {
@@ -8,7 +8,7 @@ const vo = [
8
8
  {
9
9
  path: "/builder",
10
10
  name: "builder",
11
- component: L(() => import("./BuilderView-CdxiU_5V.js"))
11
+ component: L(() => import("./BuilderView-Dtmy06e_.js"))
12
12
  },
13
13
  {
14
14
  path: "/settings",
@@ -4669,18 +4669,18 @@ const go = (e) => {
4669
4669
  BaStepperField: B(L(() => import("./StepperField-xVvcmxNx.js")), { props: ["suffix", "disabled"] }),
4670
4670
  BaColorPicker: B(L(() => import("./ColorPicker-Bz8yOMlS.js"))),
4671
4671
  BaSelect: B(L(() => import("./Select-C2r_c4vv.js")), { props: ["selectItems"] }),
4672
- BaListRepeater: B(L(() => import("./ListRepeater-B_aON8eJ.js"))),
4672
+ BaListRepeater: B(L(() => import("./ListRepeater-Gq-91jcm.js"))),
4673
4673
  BaTextStyleList: B(L(() => import("./TextStyleList-Bef3irUx.js"))),
4674
4674
  BaTextAlign: B(L(() => import("./TextAlign-BSp1Xi7F.js"))),
4675
4675
  BaTextDecorators: B(L(() => import("./TextDecorators-1C54q7us.js"))),
4676
- BaImageUpload: B(L(() => import("./ImageUpload-Cpkzp4iS.js"))),
4676
+ BaImageUpload: B(L(() => import("./ImageUpload-CCUXmhHb.js"))),
4677
4677
  BaLinkButton: B(L(() => import("./LinkButton-D0MS93kZ.js"))),
4678
4678
  BaSwitch: B(L(() => import("./Switch-uc_zN-mb.js"))),
4679
4679
  BaButtonGroup: B(L(() => import("./ButtonGroup-CbW3Lnxj.js")), { props: ["groupItems"] })
4680
4680
  }
4681
4681
  })
4682
4682
  );
4683
- }, ho = L(() => import("./App-DZzvEb1n.js"));
4683
+ }, ho = L(() => import("./App-2Pgm17e1.js"));
4684
4684
  export {
4685
4685
  dn as F,
4686
4686
  pn as a,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { b as p, c as s, r as t } from "./app-BSofsfPH.js";
2
+ import { b as p, c as s, r as t } from "./app-C-LBEIV5.js";
3
3
  export {
4
4
  p as FmApp,
5
5
  s as FormKitPlugin,
@@ -4,6 +4,7 @@ interface ITextDisplayProps {
4
4
  showQr: boolean;
5
5
  showPickUp: boolean;
6
6
  showDelivery: boolean;
7
+ showQueue: boolean;
7
8
  qrStyle: {
8
9
  textColor: string;
9
10
  iconColor: string;
@@ -18,9 +19,11 @@ declare const _default: import("vue").DefineComponent<ITextDisplayProps, {}, {},
18
19
  qrOrder: () => any;
19
20
  delivery: () => any;
20
21
  pickup: () => any;
22
+ queue: () => any;
21
23
  }, string, import("vue").PublicProps, Readonly<ITextDisplayProps> & Readonly<{
22
24
  onQrOrder?: (() => any) | undefined;
23
25
  onDelivery?: (() => any) | undefined;
24
26
  onPickup?: (() => any) | undefined;
27
+ onQueue?: (() => any) | undefined;
25
28
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
29
  export default _default;
@@ -1,4 +1,4 @@
1
- import { defineComponent as ne, createElementBlock as F, openBlock as Y, normalizeStyle as ae, renderSlot as We, computed as Be, createBlock as te, normalizeProps as ut, guardReactiveProps as mt, withCtx as ee, createElementVNode as G, toDisplayString as J, createCommentVNode as Q, Fragment as le, renderList as Ee, normalizeClass as Se, createVNode as W, unref as Te, mergeProps as ve, useTemplateRef as Vt, watch as Xt, resolveComponent as St, withModifiers as xt, createTextVNode as Wt } from "vue";
1
+ import { defineComponent as ne, createElementBlock as F, openBlock as Y, normalizeStyle as ae, renderSlot as We, computed as Be, createBlock as te, normalizeProps as ut, guardReactiveProps as mt, withCtx as ee, createElementVNode as G, toDisplayString as J, createCommentVNode as K, Fragment as le, renderList as Ee, normalizeClass as Se, createVNode as W, unref as Te, mergeProps as ve, useTemplateRef as Vt, watch as Xt, resolveComponent as St, withModifiers as xt, createTextVNode as Wt } from "vue";
2
2
  import { _ as U } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
3
3
  import { C as ht, D as De } from "./CircularProgress-DdblYCtV.js";
4
4
  function Et(i) {
@@ -126,7 +126,7 @@ const qt = {
126
126
  typeof setTimeout > "u" || clearTimeout(i);
127
127
  }
128
128
  };
129
- function K() {
129
+ function Q() {
130
130
  const i = typeof window < "u" ? window : {};
131
131
  return gt(i, qt), i;
132
132
  }
@@ -153,13 +153,13 @@ function ue() {
153
153
  return Date.now();
154
154
  }
155
155
  function Zt(i) {
156
- const e = K();
156
+ const e = Q();
157
157
  let t;
158
158
  return e.getComputedStyle && (t = e.getComputedStyle(i, null)), !t && i.currentStyle && (t = i.currentStyle), t || (t = i.style), t;
159
159
  }
160
160
  function lt(i, e) {
161
161
  e === void 0 && (e = "x");
162
- const t = K();
162
+ const t = Q();
163
163
  let s, r, a;
164
164
  const o = Zt(i);
165
165
  return t.WebKitCSSMatrix ? (r = o.transform || o.webkitTransform, r.split(",").length > 6 && (r = r.split(", ").map((c) => c.replace(",", ".")).join(", ")), a = new t.WebKitCSSMatrix(r === "none" ? "" : r)) : (a = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), s = a.toString().split(",")), e === "x" && (t.WebKitCSSMatrix ? r = a.m41 : s.length === 16 ? r = parseFloat(s[12]) : r = parseFloat(s[4])), e === "y" && (t.WebKitCSSMatrix ? r = a.m42 : s.length === 16 ? r = parseFloat(s[13]) : r = parseFloat(s[5])), r || 0;
@@ -167,14 +167,14 @@ function lt(i, e) {
167
167
  function Ae(i) {
168
168
  return typeof i == "object" && i !== null && i.constructor && Object.prototype.toString.call(i).slice(8, -1) === "Object";
169
169
  }
170
- function Kt(i) {
170
+ function Qt(i) {
171
171
  return typeof window < "u" && typeof window.HTMLElement < "u" ? i instanceof HTMLElement : i && (i.nodeType === 1 || i.nodeType === 11);
172
172
  }
173
173
  function de() {
174
174
  const i = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
175
175
  for (let t = 1; t < arguments.length; t += 1) {
176
176
  const s = t < 0 || arguments.length <= t ? void 0 : arguments[t];
177
- if (s != null && !Kt(s)) {
177
+ if (s != null && !Qt(s)) {
178
178
  const r = Object.keys(Object(s)).filter((a) => e.indexOf(a) < 0);
179
179
  for (let a = 0, o = r.length; a < o; a += 1) {
180
180
  const c = r[a], n = Object.getOwnPropertyDescriptor(s, c);
@@ -193,7 +193,7 @@ function Dt(i) {
193
193
  targetPosition: t,
194
194
  side: s
195
195
  } = i;
196
- const r = K(), a = -e.translate;
196
+ const r = Q(), a = -e.translate;
197
197
  let o = null, c;
198
198
  const n = e.params.speed;
199
199
  e.wrapperEl.style.scrollSnapType = "none", r.cancelAnimationFrame(e.cssModeFrameID);
@@ -223,7 +223,7 @@ function ie(i, e) {
223
223
  const t = [...i.children];
224
224
  return i instanceof HTMLSlotElement && t.push(...i.assignedElements()), e ? t.filter((s) => s.matches(e)) : t;
225
225
  }
226
- function Qt(i, e) {
226
+ function Kt(i, e) {
227
227
  const t = e.contains(i);
228
228
  return !t && e instanceof HTMLSlotElement ? [...e.assignedElements()].includes(i) : t;
229
229
  }
@@ -240,7 +240,7 @@ function ce(i, e) {
240
240
  return t.classList.add(...Array.isArray(e) ? e : we(e)), t;
241
241
  }
242
242
  function Ve(i) {
243
- const e = K(), t = se(), s = i.getBoundingClientRect(), r = t.body, a = i.clientTop || r.clientTop || 0, o = i.clientLeft || r.clientLeft || 0, c = i === e ? e.scrollY : i.scrollTop, n = i === e ? e.scrollX : i.scrollLeft;
243
+ const e = Q(), t = se(), s = i.getBoundingClientRect(), r = t.body, a = i.clientTop || r.clientTop || 0, o = i.clientLeft || r.clientLeft || 0, c = i === e ? e.scrollY : i.scrollTop, n = i === e ? e.scrollX : i.scrollLeft;
244
244
  return {
245
245
  top: s.top + c - a,
246
246
  left: s.left + n - o
@@ -263,7 +263,7 @@ function ei(i, e) {
263
263
  return t;
264
264
  }
265
265
  function be(i, e) {
266
- return K().getComputedStyle(i, null).getPropertyValue(e);
266
+ return Q().getComputedStyle(i, null).getPropertyValue(e);
267
267
  }
268
268
  function He(i) {
269
269
  let e = i, t;
@@ -287,7 +287,7 @@ function _e(i, e) {
287
287
  e && i.addEventListener("transitionend", t);
288
288
  }
289
289
  function dt(i, e, t) {
290
- const s = K();
290
+ const s = Q();
291
291
  return i[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(s.getComputedStyle(i, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(s.getComputedStyle(i, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
292
292
  }
293
293
  function X(i) {
@@ -298,7 +298,7 @@ function qe(i) {
298
298
  }
299
299
  let tt;
300
300
  function ti() {
301
- const i = K(), e = se();
301
+ const i = Q(), e = se();
302
302
  return {
303
303
  smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
304
304
  touch: !!("ontouchstart" in i || i.DocumentTouch && e instanceof i.DocumentTouch)
@@ -312,7 +312,7 @@ function ii(i) {
312
312
  let {
313
313
  userAgent: e
314
314
  } = i === void 0 ? {} : i;
315
- const t = At(), s = K(), r = s.navigator.platform, a = e || s.navigator.userAgent, o = {
315
+ const t = At(), s = Q(), r = s.navigator.platform, a = e || s.navigator.userAgent, o = {
316
316
  ios: !1,
317
317
  android: !1
318
318
  }, c = s.screen.width, n = s.screen.height, f = a.match(/(Android);?[\s\/]+([\d.]+)?/);
@@ -327,7 +327,7 @@ function Ot(i) {
327
327
  }
328
328
  let st;
329
329
  function si() {
330
- const i = K(), e = Ot();
330
+ const i = Q(), e = Ot();
331
331
  let t = !1;
332
332
  function s() {
333
333
  const c = i.navigator.userAgent.toLowerCase();
@@ -357,7 +357,7 @@ function ai(i) {
357
357
  on: t,
358
358
  emit: s
359
359
  } = i;
360
- const r = K();
360
+ const r = Q();
361
361
  let a = null, o = null;
362
362
  const c = () => {
363
363
  !e || e.destroyed || !e.initialized || (s("beforeResize"), s("resize"));
@@ -401,7 +401,7 @@ function ni(i) {
401
401
  on: s,
402
402
  emit: r
403
403
  } = i;
404
- const a = [], o = K(), c = function(l, d) {
404
+ const a = [], o = Q(), c = function(l, d) {
405
405
  d === void 0 && (d = {});
406
406
  const p = o.MutationObserver || o.WebkitMutationObserver, u = new p((h) => {
407
407
  if (e.__preventObserver__) return;
@@ -1395,7 +1395,7 @@ var Fi = {
1395
1395
  function Ni(i, e) {
1396
1396
  e === void 0 && (e = this);
1397
1397
  function t(s) {
1398
- if (!s || s === se() || s === K()) return null;
1398
+ if (!s || s === se() || s === Q()) return null;
1399
1399
  s.assignedSlot && (s = s.assignedSlot);
1400
1400
  const r = s.closest(i);
1401
1401
  return !r && !s.getRootNode ? null : r || t(s.getRootNode().host);
@@ -1403,7 +1403,7 @@ function Ni(i, e) {
1403
1403
  return t(e);
1404
1404
  }
1405
1405
  function Mt(i, e, t) {
1406
- const s = K(), {
1406
+ const s = Q(), {
1407
1407
  params: r
1408
1408
  } = i, a = r.edgeSwipeDetection, o = r.edgeSwipeThreshold;
1409
1409
  return a && (t <= o || t >= s.innerWidth - o) ? a === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
@@ -1431,7 +1431,7 @@ function Vi(i) {
1431
1431
  return;
1432
1432
  !e.animating && a.cssMode && a.loop && e.loopFix();
1433
1433
  let n = s.target;
1434
- if (a.touchEventsTarget === "wrapper" && !Qt(n, e.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || r.isTouched && r.isMoved) return;
1434
+ if (a.touchEventsTarget === "wrapper" && !Kt(n, e.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || r.isTouched && r.isMoved) return;
1435
1435
  const f = !!a.noSwipingClass && a.noSwipingClass !== "", l = s.composedPath ? s.composedPath() : s.path;
1436
1436
  f && s.target && s.target.shadowRoot && l && (n = l[0]);
1437
1437
  const d = a.noSwipingSelector ? a.noSwipingSelector : `.${a.noSwipingClass}`, p = !!(s.target && s.target.shadowRoot);
@@ -1679,7 +1679,7 @@ function Zi(i) {
1679
1679
  const e = this;
1680
1680
  Ye(e, i.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
1681
1681
  }
1682
- function Ki() {
1682
+ function Qi() {
1683
1683
  const i = this;
1684
1684
  i.documentTouchHandlerProceeded || (i.documentTouchHandlerProceeded = !0, i.params.touchReleaseOnEdges && (i.el.style.touchAction = "auto"));
1685
1685
  }
@@ -1721,17 +1721,17 @@ const Ht = (i, e) => {
1721
1721
  capture: !0
1722
1722
  }));
1723
1723
  };
1724
- function Qi() {
1724
+ function Ki() {
1725
1725
  const i = this, {
1726
1726
  params: e
1727
1727
  } = i;
1728
- i.onTouchStart = Vi.bind(i), i.onTouchMove = Xi.bind(i), i.onTouchEnd = Wi.bind(i), i.onDocumentTouchStart = Ki.bind(i), e.cssMode && (i.onScroll = Ui.bind(i)), i.onClick = qi.bind(i), i.onLoad = Zi.bind(i), Ht(i, "on");
1728
+ i.onTouchStart = Vi.bind(i), i.onTouchMove = Xi.bind(i), i.onTouchEnd = Wi.bind(i), i.onDocumentTouchStart = Qi.bind(i), e.cssMode && (i.onScroll = Ui.bind(i)), i.onClick = qi.bind(i), i.onLoad = Zi.bind(i), Ht(i, "on");
1729
1729
  }
1730
1730
  function Ji() {
1731
1731
  Ht(this, "off");
1732
1732
  }
1733
1733
  var es = {
1734
- attachEvents: Qi,
1734
+ attachEvents: Ki,
1735
1735
  detachEvents: Ji
1736
1736
  };
1737
1737
  const Pt = (i, e) => i.grid && e.grid && e.grid.rows > 1;
@@ -1763,7 +1763,7 @@ function ts() {
1763
1763
  function is(i, e, t) {
1764
1764
  if (e === void 0 && (e = "window"), !i || e === "container" && !t) return;
1765
1765
  let s = !1;
1766
- const r = K(), a = e === "window" ? r.innerHeight : t.clientHeight, o = Object.keys(i).map((c) => {
1766
+ const r = Q(), a = e === "window" ? r.innerHeight : t.clientHeight, o = Object.keys(i).map((c) => {
1767
1767
  if (typeof c == "string" && c.indexOf("@") === 0) {
1768
1768
  const n = parseFloat(c.substr(1));
1769
1769
  return {
@@ -2525,7 +2525,7 @@ function fs(i) {
2525
2525
  on: s,
2526
2526
  emit: r
2527
2527
  } = i;
2528
- const a = se(), o = K();
2528
+ const a = se(), o = Q();
2529
2529
  e.keyboard = {
2530
2530
  enabled: !1
2531
2531
  }, t({
@@ -2587,7 +2587,7 @@ function us(i) {
2587
2587
  on: s,
2588
2588
  emit: r
2589
2589
  } = i;
2590
- const a = K();
2590
+ const a = Q();
2591
2591
  t({
2592
2592
  mousewheel: {
2593
2593
  enabled: !1,
@@ -3336,7 +3336,7 @@ function vs(i) {
3336
3336
  on: s,
3337
3337
  emit: r
3338
3338
  } = i;
3339
- const a = K();
3339
+ const a = Q();
3340
3340
  t({
3341
3341
  zoom: {
3342
3342
  enabled: !1,
@@ -3527,12 +3527,12 @@ function vs(i) {
3527
3527
  }
3528
3528
  if (!d.imageEl || !d.imageWrapEl) return;
3529
3529
  e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), d.slideEl.classList.add(`${R.zoomedSlideClass}`);
3530
- let N, j, V, Z, pe, fe, q, re, ge, ye, vt, bt, Ge, je, Ke, Qe, Je, et;
3530
+ let N, j, V, Z, pe, fe, q, re, ge, ye, vt, bt, Ge, je, Qe, Ke, Je, et;
3531
3531
  typeof p.touchesStart.x > "u" && I ? (N = I.pageX, j = I.pageY) : (N = p.touchesStart.x, j = p.touchesStart.y);
3532
3532
  const ke = typeof I == "number" ? I : null;
3533
3533
  o === 1 && ke && (N = void 0, j = void 0, p.touchesStart.x = void 0, p.touchesStart.y = void 0);
3534
3534
  const yt = v();
3535
- H.scale = ke || yt, o = ke || yt, I && !(o === 1 && ke) ? (Je = d.slideEl.offsetWidth, et = d.slideEl.offsetHeight, V = Ve(d.slideEl).left + a.scrollX, Z = Ve(d.slideEl).top + a.scrollY, pe = V + Je / 2 - N, fe = Z + et / 2 - j, ge = d.imageEl.offsetWidth || d.imageEl.clientWidth, ye = d.imageEl.offsetHeight || d.imageEl.clientHeight, vt = ge * H.scale, bt = ye * H.scale, Ge = Math.min(Je / 2 - vt / 2, 0), je = Math.min(et / 2 - bt / 2, 0), Ke = -Ge, Qe = -je, q = pe * H.scale, re = fe * H.scale, q < Ge && (q = Ge), q > Ke && (q = Ke), re < je && (re = je), re > Qe && (re = Qe)) : (q = 0, re = 0), ke && H.scale === 1 && (d.originX = 0, d.originY = 0), d.imageWrapEl.style.transitionDuration = "300ms", d.imageWrapEl.style.transform = `translate3d(${q}px, ${re}px,0)`, d.imageEl.style.transitionDuration = "300ms", d.imageEl.style.transform = `translate3d(0,0,0) scale(${H.scale})`;
3535
+ H.scale = ke || yt, o = ke || yt, I && !(o === 1 && ke) ? (Je = d.slideEl.offsetWidth, et = d.slideEl.offsetHeight, V = Ve(d.slideEl).left + a.scrollX, Z = Ve(d.slideEl).top + a.scrollY, pe = V + Je / 2 - N, fe = Z + et / 2 - j, ge = d.imageEl.offsetWidth || d.imageEl.clientWidth, ye = d.imageEl.offsetHeight || d.imageEl.clientHeight, vt = ge * H.scale, bt = ye * H.scale, Ge = Math.min(Je / 2 - vt / 2, 0), je = Math.min(et / 2 - bt / 2, 0), Qe = -Ge, Ke = -je, q = pe * H.scale, re = fe * H.scale, q < Ge && (q = Ge), q > Qe && (q = Qe), re < je && (re = je), re > Ke && (re = Ke)) : (q = 0, re = 0), ke && H.scale === 1 && (d.originX = 0, d.originY = 0), d.imageWrapEl.style.transitionDuration = "300ms", d.imageWrapEl.style.transform = `translate3d(${q}px, ${re}px,0)`, d.imageEl.style.transitionDuration = "300ms", d.imageEl.style.transform = `translate3d(0,0,0) scale(${H.scale})`;
3536
3536
  }
3537
3537
  function z() {
3538
3538
  const I = e.zoom, H = e.params.zoom;
@@ -3905,7 +3905,7 @@ function Ss(i) {
3905
3905
  });
3906
3906
  let r = !1, a = {};
3907
3907
  const o = (u) => u.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), c = (u) => {
3908
- const h = K();
3908
+ const h = Q();
3909
3909
  let g;
3910
3910
  u ? g = new URL(u) : g = h.location;
3911
3911
  const v = g.pathname.slice(1).split("/").filter((y) => y !== ""), b = v.length, w = v[b - 2], m = v[b - 1];
@@ -3914,7 +3914,7 @@ function Ss(i) {
3914
3914
  value: m
3915
3915
  };
3916
3916
  }, n = (u, h) => {
3917
- const g = K();
3917
+ const g = Q();
3918
3918
  if (!r || !e.params.history.enabled) return;
3919
3919
  let v;
3920
3920
  e.params.url ? v = new URL(e.params.url) : v = g.location;
@@ -3945,7 +3945,7 @@ function Ss(i) {
3945
3945
  }, l = () => {
3946
3946
  a = c(e.params.url), f(e.params.speed, a.value, !1);
3947
3947
  }, d = () => {
3948
- const u = K();
3948
+ const u = Q();
3949
3949
  if (e.params.history) {
3950
3950
  if (!u.history || !u.history.pushState) {
3951
3951
  e.params.history.enabled = !1, e.params.hashNavigation.enabled = !0;
@@ -3958,7 +3958,7 @@ function Ss(i) {
3958
3958
  f(0, a.value, e.params.runCallbacksOnInit), e.params.history.replaceState || u.addEventListener("popstate", l);
3959
3959
  }
3960
3960
  }, p = () => {
3961
- const u = K();
3961
+ const u = Q();
3962
3962
  e.params.history.replaceState || u.removeEventListener("popstate", l);
3963
3963
  };
3964
3964
  s("init", () => {
@@ -3978,7 +3978,7 @@ function xs(i) {
3978
3978
  emit: s,
3979
3979
  on: r
3980
3980
  } = i, a = !1;
3981
- const o = se(), c = K();
3981
+ const o = se(), c = Q();
3982
3982
  t({
3983
3983
  hashNavigation: {
3984
3984
  enabled: !1,
@@ -5608,7 +5608,7 @@ function jt(i, e) {
5608
5608
  })(i, e), r = i / s, a = e / s;
5609
5609
  return `${r}/${a}`;
5610
5610
  }
5611
- const Ks = ["src"], Qs = {
5611
+ const Qs = ["src"], Ks = {
5612
5612
  key: 1,
5613
5613
  class: "bg-fm-color-neutral-gray-100 flex justify-center items-center"
5614
5614
  }, Js = ["src"], er = {
@@ -5640,7 +5640,7 @@ const Ks = ["src"], Qs = {
5640
5640
  key: 0,
5641
5641
  src: Te(Xe)(n.imageUrl),
5642
5642
  class: "w-32 h-32 object-contain"
5643
- }, null, 8, Ks)) : (Y(), F("div", Qs, [
5643
+ }, null, 8, Qs)) : (Y(), F("div", Ks, [
5644
5644
  W(U, {
5645
5645
  name: "add_photo_alternate",
5646
5646
  class: "text-fm-color-neutral-gray-300 !text-[32px]"
@@ -5656,7 +5656,7 @@ const Ks = ["src"], Qs = {
5656
5656
  })
5657
5657
  ]),
5658
5658
  _: 2
5659
- }, 1032, ["link-to", "class"]))), 256)) : Q("", !0),
5659
+ }, 1032, ["link-to", "class"]))), 256)) : K("", !0),
5660
5660
  o.itemsPerRow > 1 ? (Y(), F("div", {
5661
5661
  key: 1,
5662
5662
  class: Se(["grid gap-16", s.value])
@@ -5684,7 +5684,7 @@ const Ks = ["src"], Qs = {
5684
5684
  ]),
5685
5685
  _: 2
5686
5686
  }, 1032, ["link-to", "class"]))), 256))
5687
- ], 2)) : Q("", !0)
5687
+ ], 2)) : K("", !0)
5688
5688
  ]),
5689
5689
  _: 1
5690
5690
  }, 16));
@@ -5941,14 +5941,14 @@ const Ks = ["src"], Qs = {
5941
5941
  ])),
5942
5942
  G("div", gr, [
5943
5943
  G("div", wr, " Hi, " + J(o.data.memberName) + "! ", 1),
5944
- o.showTier && o.data.memberTierName ? (Y(), F("div", vr, J(o.data.memberTierName), 1)) : Q("", !0)
5944
+ o.showTier && o.data.memberTierName ? (Y(), F("div", vr, J(o.data.memberTierName), 1)) : K("", !0)
5945
5945
  ]),
5946
5946
  W(U, {
5947
5947
  name: "chevron_right",
5948
5948
  class: "ml-auto !text-[24px]"
5949
5949
  })
5950
5950
  ]),
5951
- a.value.length > 0 ? (Y(), te(De, { key: 0 })) : Q("", !0),
5951
+ a.value.length > 0 ? (Y(), te(De, { key: 0 })) : K("", !0),
5952
5952
  a.value.length > 0 ? (Y(), F("div", br, [
5953
5953
  (Y(!0), F(le, null, Ee(a.value, (n) => (Y(), F(le, null, [
5954
5954
  G("div", yr, [
@@ -5963,7 +5963,7 @@ const Ks = ["src"], Qs = {
5963
5963
  ]),
5964
5964
  c[5] || (c[5] = G("div", { class: "last:hidden h-[20px] border-r border-fm-color-neutral-gray-100" }, null, -1))
5965
5965
  ], 64))), 256))
5966
- ])) : Q("", !0)
5966
+ ])) : K("", !0)
5967
5967
  ]),
5968
5968
  o.showTitle && o.data.memberTitles.length > 0 || o.showMemberQr ? (Y(), F(le, { key: 0 }, [
5969
5969
  W(De),
@@ -5971,7 +5971,7 @@ const Ks = ["src"], Qs = {
5971
5971
  o.showTitle && o.data.memberTitles.length > 0 ? (Y(), F("div", Tr, [
5972
5972
  c[6] || (c[6] = G("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-primary" }, " Title ", -1)),
5973
5973
  G("div", Mr, J(o.data.memberTitles.join(", ")), 1)
5974
- ])) : Q("", !0),
5974
+ ])) : K("", !0),
5975
5975
  o.showMemberQr ? (Y(), F("button", {
5976
5976
  key: 1,
5977
5977
  class: "w-full flex items-center justify-center gap-8 bg-fm-color-system-warning-100 p-8 rounded-md",
@@ -5982,10 +5982,10 @@ const Ks = ["src"], Qs = {
5982
5982
  class: "!text-[24px] text-fm-color-primary"
5983
5983
  }),
5984
5984
  c[7] || (c[7] = G("span", { class: "text-fm-color-primary fm-typo-en-body-md-600" }, "Show my member QR", -1))
5985
- ])) : Q("", !0)
5985
+ ])) : K("", !0)
5986
5986
  ])
5987
- ], 64)) : Q("", !0)
5988
- ], 64)) : Q("", !0),
5987
+ ], 64)) : K("", !0)
5988
+ ], 64)) : K("", !0),
5989
5989
  o.designStyle === 2 ? (Y(), F(le, { key: 1 }, [
5990
5990
  G("div", Cr, [
5991
5991
  G("div", Pr, [
@@ -6014,7 +6014,7 @@ const Ks = ["src"], Qs = {
6014
6014
  ]),
6015
6015
  G("div", _r, J(n.value), 1)
6016
6016
  ]))), 256))
6017
- ])) : Q("", !0)
6017
+ ])) : K("", !0)
6018
6018
  ]),
6019
6019
  W(U, {
6020
6020
  name: "chevron_right",
@@ -6033,7 +6033,7 @@ const Ks = ["src"], Qs = {
6033
6033
  })
6034
6034
  }, null, 4)
6035
6035
  ]),
6036
- o.showTier && o.data.memberTierName ? (Y(), F("div", Gr, J(o.data.memberTierName), 1)) : Q("", !0)
6036
+ o.showTier && o.data.memberTierName ? (Y(), F("div", Gr, J(o.data.memberTierName), 1)) : K("", !0)
6037
6037
  ]),
6038
6038
  G("div", jr, J(o.data.memberTierName ? `Collect ${o.data.memberPointToNextTier} more experience to next tier.` : "To unlock this level, you need to make a transaction."), 1)
6039
6039
  ])
@@ -6044,7 +6044,7 @@ const Ks = ["src"], Qs = {
6044
6044
  o.showTitle && o.data.memberTitles.length > 0 ? (Y(), F("div", Fr, [
6045
6045
  c[9] || (c[9] = G("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-primary" }, " Title ", -1)),
6046
6046
  G("div", Nr, J(o.data.memberTitles.join(", ")), 1)
6047
- ])) : Q("", !0),
6047
+ ])) : K("", !0),
6048
6048
  o.showMemberQr ? (Y(), F("button", {
6049
6049
  key: 1,
6050
6050
  class: "w-full flex items-center justify-center gap-8 bg-fm-color-system-warning-100 p-8 rounded-md",
@@ -6055,10 +6055,10 @@ const Ks = ["src"], Qs = {
6055
6055
  class: "!text-[24px] text-fm-color-primary"
6056
6056
  }),
6057
6057
  c[10] || (c[10] = G("span", { class: "text-fm-color-primary fm-typo-en-body-md-600" }, "Show my member QR", -1))
6058
- ])) : Q("", !0)
6058
+ ])) : K("", !0)
6059
6059
  ])
6060
- ], 64)) : Q("", !0)
6061
- ], 64)) : Q("", !0)
6060
+ ], 64)) : K("", !0)
6061
+ ], 64)) : K("", !0)
6062
6062
  ]),
6063
6063
  _: 1
6064
6064
  })) : !o.data && !o.authLoading && o.signedIn ? (Y(), F("div", Vr, [
@@ -6076,7 +6076,7 @@ const Ks = ["src"], Qs = {
6076
6076
  type: "button",
6077
6077
  onClick: c[3] || (c[3] = (n) => s("joinMember"))
6078
6078
  }, " Join membership ")
6079
- ])) : Q("", !0)
6079
+ ])) : K("", !0)
6080
6080
  ]),
6081
6081
  _: 1
6082
6082
  }, 16));
@@ -6113,17 +6113,18 @@ const Ks = ["src"], Qs = {
6113
6113
  }, null, 8, ["name", "style"])
6114
6114
  ], 4));
6115
6115
  }
6116
- }), Ur = { class: "flex flex-col items-center gap-12" }, Zr = ["onClick"], Kr = { class: "fm-typo-en-body-md-600" }, Qr = /* @__PURE__ */ ne({
6116
+ }), Ur = { class: "flex flex-col items-center gap-12" }, Zr = ["onClick"], Qr = { class: "fm-typo-en-body-md-600" }, Kr = /* @__PURE__ */ ne({
6117
6117
  __name: "OrderMethod",
6118
6118
  props: {
6119
6119
  containerStyles: {},
6120
6120
  showQr: { type: Boolean },
6121
6121
  showPickUp: { type: Boolean },
6122
6122
  showDelivery: { type: Boolean },
6123
+ showQueue: { type: Boolean },
6123
6124
  qrStyle: {},
6124
6125
  pickupDeliveryStyle: {}
6125
6126
  },
6126
- emits: ["qrOrder", "delivery", "pickup"],
6127
+ emits: ["qrOrder", "delivery", "pickup", "queue"],
6127
6128
  setup(i, { emit: e }) {
6128
6129
  const t = i, s = e, r = Be(() => [
6129
6130
  ...t.showDelivery ? [
@@ -6143,6 +6144,15 @@ const Ks = ["src"], Qs = {
6143
6144
  s("pickup");
6144
6145
  }
6145
6146
  }
6147
+ ] : [],
6148
+ ...t.showQueue ? [
6149
+ {
6150
+ name: "Queue",
6151
+ icon: "add_to_queue",
6152
+ action: () => {
6153
+ s("queue");
6154
+ }
6155
+ }
6146
6156
  ] : []
6147
6157
  ]);
6148
6158
  return (a, o) => (Y(), te(me, ve(a.containerStyles, { class: "overflow-hidden" }), {
@@ -6161,15 +6171,15 @@ const Ks = ["src"], Qs = {
6161
6171
  Wt(" Start ordering ")
6162
6172
  ])),
6163
6173
  _: 1
6164
- }, 8, ["button-color", "text-color", "icon-color"])) : Q("", !0),
6174
+ }, 8, ["button-color", "text-color", "icon-color"])) : K("", !0),
6165
6175
  r.value.length > 0 ? (Y(), F("div", {
6166
6176
  key: 1,
6167
- class: Se(["w-full py-4 px-16 flex items-center", r.value.length > 1 ? "justify-between" : "justify-center"])
6177
+ class: Se(["w-full py-4 px-16 flex items-center gap-4", r.value.length > 1 ? "justify-between" : "justify-center"])
6168
6178
  }, [
6169
6179
  (Y(!0), F(le, null, Ee(r.value, (c) => (Y(), F(le, null, [
6170
6180
  G("button", {
6171
6181
  type: "button",
6172
- class: "w-full flex items-center justify-center gap-[10px]",
6182
+ class: "w-full flex items-center justify-center gap-8",
6173
6183
  onClick: c.action,
6174
6184
  style: ae({
6175
6185
  color: a.pickupDeliveryStyle.textColor
@@ -6182,11 +6192,11 @@ const Ks = ["src"], Qs = {
6182
6192
  color: a.pickupDeliveryStyle.iconColor
6183
6193
  })
6184
6194
  }, null, 8, ["name", "style"]),
6185
- G("div", Kr, J(c.name), 1)
6195
+ G("div", Qr, J(c.name), 1)
6186
6196
  ], 12, Zr),
6187
6197
  o[2] || (o[2] = G("div", { class: "last:hidden h-[20px] border-r border-fm-color-neutral-gray-100" }, null, -1))
6188
6198
  ], 64))), 256))
6189
- ], 2)) : Q("", !0)
6199
+ ], 2)) : K("", !0)
6190
6200
  ])
6191
6201
  ]),
6192
6202
  _: 1
@@ -6548,7 +6558,7 @@ const ra = /* @__PURE__ */ ia(sa), aa = { class: "fm-typo-en-body-sm-600" }, Nt
6548
6558
  class: "!text-[16px]"
6549
6559
  }, null, 8, ["name"]),
6550
6560
  G("span", aa, J(s.value.label), 1)
6551
- ], 2)) : Q("", !0);
6561
+ ], 2)) : K("", !0);
6552
6562
  }
6553
6563
  }), na = { class: "py-12 px-24 w-full h-[93px] flex items-center justify-center bg-fm-color-neutral-white rounded-[12px]" }, oa = { class: "w-full p-12 flex flex-col gap-8 rounded-[12px]" }, la = {
6554
6564
  key: 0,
@@ -6602,7 +6612,7 @@ const ra = /* @__PURE__ */ ia(sa), aa = { class: "fm-typo-en-body-sm-600" }, Nt
6602
6612
  G("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, " No order yet "),
6603
6613
  G("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Start by placing an order today! ")
6604
6614
  ], -1))
6605
- ])) : Q("", !0)
6615
+ ])) : K("", !0)
6606
6616
  ]),
6607
6617
  _: 1
6608
6618
  }, 16)) : s.signedIn && !s.authLoading && s.data.length > 0 ? (Y(!0), F(le, { key: 3 }, Ee(s.data, (a) => (Y(), te(me, ve({ ref_for: !0 }, s.containerStyles, {
@@ -6631,7 +6641,7 @@ const ra = /* @__PURE__ */ ia(sa), aa = { class: "fm-typo-en-body-sm-600" }, Nt
6631
6641
  ])
6632
6642
  ]),
6633
6643
  _: 2
6634
- }, 1040, ["onClick"]))), 256)) : Q("", !0)
6644
+ }, 1040, ["onClick"]))), 256)) : K("", !0)
6635
6645
  ], 2));
6636
6646
  }
6637
6647
  }), wa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='flag-icons-my'%20viewBox='0%200%20640%20480'%3e%3cg%20clip-path='url(%23my-a)'%3e%3cpath%20fill='%23C00'%20d='M0%200h640v480H0z'/%3e%3cpath%20fill='%23C00'%20d='M0%200h640v34.3H0z'/%3e%3cpath%20fill='%23fff'%20d='M0%2034.3h640v34.3H0z'/%3e%3cpath%20fill='%23C00'%20d='M0%2068.6h640v34.3H0z'/%3e%3cpath%20fill='%23fff'%20d='M0%20102.9h640V137H0z'/%3e%3cpath%20fill='%23C00'%20d='M0%20137.1h640v34.3H0z'/%3e%3cpath%20fill='%23fff'%20d='M0%20171.4h640v34.3H0z'/%3e%3cpath%20fill='%23C00'%20d='M0%20205.7h640V240H0z'/%3e%3cpath%20fill='%23fff'%20d='M0%20240h640v34.3H0z'/%3e%3cpath%20fill='%23C00'%20d='M0%20274.3h640v34.3H0z'/%3e%3cpath%20fill='%23fff'%20d='M0%20308.6h640v34.3H0z'/%3e%3cpath%20fill='%23C00'%20d='M0%20342.9h640V377H0z'/%3e%3cpath%20fill='%23fff'%20d='M0%20377.1h640v34.3H0z'/%3e%3cpath%20fill='%23C00'%20d='M0%20411.4h640v34.3H0z'/%3e%3cpath%20fill='%23fff'%20d='M0%20445.7h640V480H0z'/%3e%3cpath%20fill='%23006'%20d='M0%20.5h320v274.3H0z'/%3e%3cpath%20fill='%23FC0'%20d='m207.5%2073.8%206%2040.7%2023-34-12.4%2039.2%2035.5-20.8-28.1%2030%2041-3.2-38.3%2014.8%2038.3%2014.8-41-3.2%2028.1%2030-35.5-20.8%2012.3%2039.3-23-34.1-6%2040.7-5.9-40.7-23%2034%2012.4-39.2-35.5%2020.8%2028-30-41%203.2%2038.4-14.8-38.3-14.8%2041%203.2-28.1-30%2035.5%2020.8-12.4-39.3%2023%2034.1zm-33.3%201.7a71.1%2071.1%200%200%200-100%2065%2071.1%2071.1%200%200%200%20100%2065%2080%2080%200%200%201-83.2%206.2%2080%2080%200%200%201-43.4-71.2%2080%2080%200%200%201%20126.6-65'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='my-a'%3e%3cpath%20fill='%23fff'%20d='M0%200h640v480H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", va = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='flag-icons-sg'%20viewBox='0%200%20640%20480'%3e%3cdefs%3e%3cclipPath%20id='sg-a'%3e%3cpath%20fill-opacity='.7'%20d='M0%200h640v480H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20fill-rule='evenodd'%20clip-path='url(%23sg-a)'%3e%3cpath%20fill='%23fff'%20d='M-20%200h720v480H-20z'/%3e%3cpath%20fill='%23df0000'%20d='M-20%200h720v240H-20z'/%3e%3cpath%20fill='%23fff'%20d='M146%2040.2a84.4%2084.4%200%200%200%20.8%20165.2%2086%2086%200%200%201-106.6-59%2086%2086%200%200%201%2059-106c16-4.6%2030.8-4.7%2046.9-.2z'/%3e%3cpath%20fill='%23fff'%20d='m133%20110%204.9%2015-13-9.2-12.8%209.4%204.7-15.2-12.8-9.3%2015.9-.2%205-15%205%2015h15.8zm17.5%2052%205%2015.1-13-9.2-12.9%209.3%204.8-15.1-12.8-9.4%2015.9-.1%204.9-15.1%205%2015h16zm58.5-.4%204.9%2015.2-13-9.3-12.8%209.3%204.7-15.1-12.8-9.3%2015.9-.2%205-15%205%2015h15.8zm17.4-51.6%204.9%2015.1-13-9.2-12.8%209.3%204.8-15.1-12.9-9.4%2016-.1%204.8-15.1%205%2015h16zm-46.3-34.3%205%2015.2-13-9.3-12.9%209.4%204.8-15.2-12.8-9.4%2015.8-.1%205-15.1%205%2015h16z'/%3e%3c/g%3e%3c/svg%3e", ba = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='flag-icons-id'%20viewBox='0%200%20640%20480'%3e%3cpath%20fill='%23e70011'%20d='M0%200h640v240H0Z'/%3e%3cpath%20fill='%23fff'%20d='M0%20240h640v240H0Z'/%3e%3c/svg%3e", ya = { class: "bg-transparent" }, Sa = { class: "flex gap-4 items-center" }, xa = { class: "border border-fm-color-neutral-gray-100" }, Ea = ["src"], Ta = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary" }, Ma = /* @__PURE__ */ ne({
@@ -6714,7 +6724,7 @@ const Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6714
6724
  MemberCard: qr,
6715
6725
  OrderDetails: La,
6716
6726
  OrderHistoryCard: ga,
6717
- OrderMethod: Qr,
6727
+ OrderMethod: Kr,
6718
6728
  OrderTypeChip: Nt,
6719
6729
  TextDisplay: Zs
6720
6730
  }, Symbol.toStringTag, { value: "Module" }));
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-brand-app-builder",
3
- "version": "0.5.14",
3
+ "version": "0.5.15",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-brand-app-builder",
3
- "version": "0.5.14",
3
+ "version": "0.5.15",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"