@feedmepos/mf-menu 0.19.2 → 0.19.3

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.
Files changed (49) hide show
  1. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-W3ALTrsj.js → ApplyProduct.vue_vue_type_script_setup_true_lang-B94bwxZs.js} +2 -2
  2. package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-TE9kAVkO.js → ApplyProducts.vue_vue_type_script_setup_true_lang-AhWYIaEX.js} +2 -2
  3. package/dist/{Catalog-BL63lK7R.js → Catalog-CphmfHzo.js} +45 -45
  4. package/dist/{Category-sJPghhZ_.js → Category-CS9IaLGe.js} +6 -6
  5. package/dist/{CookingGuide-DAE7bgcU.js → CookingGuide-ChpX6wk2.js} +3 -3
  6. package/dist/{Group-DDxRUmm4.js → Group-DHQqemyj.js} +1 -1
  7. package/dist/{Group-BxNeMr8F.js → Group-DZrVyzSW.js} +4 -4
  8. package/dist/{Group.vue_vue_type_script_setup_true_lang-D_YJ5tL_.js → Group.vue_vue_type_script_setup_true_lang-KtmJXRoE.js} +7 -7
  9. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B9CLSWLu.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D2P7w1R0.js} +2 -2
  10. package/dist/{Ingredient-ClwK8EGA.js → Ingredient-BrUxMr3l.js} +4 -4
  11. package/dist/{LinkProductSideSheet-Dr54Si8e.js → LinkProductSideSheet-qIA_dKq_.js} +2 -2
  12. package/dist/{PrintRoute-N_fICtn8.js → PrintRoute-D1XFp0PD.js} +3 -3
  13. package/dist/{Product-BDwny0B3.js → Product-DK2zUE5v.js} +1 -1
  14. package/dist/{Product.vue_vue_type_script_setup_true_lang-DCypQ1N4.js → Product.vue_vue_type_script_setup_true_lang-DSQAY3Gz.js} +11 -11
  15. package/dist/{Products-B9jzE3MQ.js → Products-GlbJp4sM.js} +8 -8
  16. package/dist/{Publish-D8xPK5PZ.js → Publish-B_6zhqFq.js} +2 -2
  17. package/dist/{Recipe-CTrKvEiB.js → Recipe-Bkit5ypT.js} +4 -4
  18. package/dist/{Scheduler-Bw4Wjlnx.js → Scheduler-Bv3nJ7hG.js} +2 -2
  19. package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-cU85Ebal.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-CmNysx4f.js} +1 -1
  20. package/dist/ServingSequence-v6nXMXUb.js +4 -0
  21. package/dist/{Setting-lrWK1aCr.js → Setting-DLMeyjzN.js} +1 -1
  22. package/dist/{Setting.vue_vue_type_script_setup_true_lang-BIKArP-6.js → Setting.vue_vue_type_script_setup_true_lang-BEvqNM4t.js} +3 -3
  23. package/dist/{Takeaway-C6ESjI6a.js → Takeaway-CuN1UTLr.js} +1 -1
  24. package/dist/{Takeaway-BliapyfQ.js → Takeaway-DKRA1eiI.js} +4 -4
  25. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-_uYXHAgk.js → Takeaway.vue_vue_type_script_setup_true_lang-BvMTiHso.js} +4 -4
  26. package/dist/{TaxSetting-B_OVaxnK.js → TaxSetting-B3FGwL7j.js} +4 -4
  27. package/dist/{Unit-BpPwsq-R.js → Unit-CEn5Ij_L.js} +2 -2
  28. package/dist/{Variant-DLnFjrKX.js → Variant-BkGiVA4h.js} +2 -2
  29. package/dist/{_id_-CpB9sDXs.js → _id_-DYkUn-_T.js} +6 -6
  30. package/dist/{app-DnjfTTyH.js → app-CZB0S6GF.js} +2366 -2366
  31. package/dist/app.js +2 -2
  32. package/dist/assets/{linked-status-DS5Y3Qmg.js → linked-status-Bn4uaXGM.js} +8 -8
  33. package/dist/assets/{validate-menu-B5z7rBbO.js → validate-menu-BTQuKNEA.js} +8 -8
  34. package/dist/{catalog-DEU4EW82.js → catalog-D3tgKmMn.js} +1 -1
  35. package/dist/{catalog-B3zKEMGs.js → catalog-USi_ttVm.js} +7450 -7450
  36. package/dist/{category-CBXUkjZW.js → category-LWr8T58z.js} +1 -1
  37. package/dist/{currency-CyIMAuaF.js → currency-DKK9xC6n.js} +1 -1
  38. package/dist/{index-C0KmJcH7.js → index-Bvp0E23d.js} +467 -467
  39. package/dist/{index-F3JoSMjg.js → index-CKc0UptG.js} +3 -3
  40. package/dist/{item-BVtbX-DR.js → item-C7Q5zno7.js} +118 -118
  41. package/dist/{lodash-Dum3fDW4.js → lodash-B3ZfQdZl.js} +1 -1
  42. package/dist/{menu-Bxe-VCgS.js → menu-DGMuUZSo.js} +1 -1
  43. package/dist/{object-BNFM25tr.js → object-4zTGlAvf.js} +1 -1
  44. package/dist/{scheduler-DPTNLoCR.js → scheduler-DF7awhFR.js} +4 -4
  45. package/dist/{takeaway-GxwSTX8A.js → takeaway-COS4KOI3.js} +4 -4
  46. package/dist/{toExcel-B35ESJnK.js → toExcel-BxO1Q4cj.js} +2 -2
  47. package/dist/{unit-zvgjgaPU.js → unit-BxSPj42Q.js} +2 -2
  48. package/package.json +3 -3
  49. package/dist/ServingSequence-CjrJ1oDe.js +0 -4
@@ -1,23 +1,23 @@
1
1
  import { defineStore as Vn } from "pinia";
2
- import { b as B, h as be, G as gi, H as bi, I as yi, d as ae, m as ye, c as _e, J as Nn, u as me, K as Sn, L as _i, M as Ue, N as lt, a as Ye, i as He, O as en, P as Et, g as ut, e as Lt, n as wi, y as Ci, Q as Si, z as Ri, F as ki, l as Ai, S as Rn, T as Mi } from "./app-DnjfTTyH.js";
2
+ import { b as B, h as be, G as gi, H as bi, I as yi, d as ae, m as ye, c as _e, J as Nn, u as me, K as Sn, L as _i, M as Ue, N as lt, a as Ye, i as He, O as en, P as Et, g as ut, e as Lt, n as wi, y as Ci, Q as Si, z as Ri, F as ki, l as Ai, S as Rn, T as Mi } from "./app-CZB0S6GF.js";
3
3
  import { useDialog as xe, useSnackbar as Be, components as Me, useDialogChild as tn, FmButtonVariant as Le, FmButtonColorThemeVariant as $e, useBreakpoints as Bn } from "@feedmepos/ui-library";
4
- import { C as De } from "./catalog-DEU4EW82.js";
4
+ import { C as De } from "./catalog-D3tgKmMn.js";
5
5
  import { openBlock as P, createElementBlock as Z, createElementVNode as D, defineComponent as se, computed as T, resolveComponent as L, createVNode as A, unref as h, createBlock as W, renderSlot as pe, withCtx as N, Fragment as Re, renderList as Ge, resolveDynamicComponent as _t, withDirectives as Xe, vShow as Ct, mergeProps as Ln, withModifiers as St, createCommentVNode as ee, ref as X, createTextVNode as wt, toDisplayString as le, normalizeClass as Fe, onMounted as gt, resolveDirective as Gt, h as ce, toRaw as Gn, watch as Ce, Transition as xi, onBeforeUnmount as Ii, normalizeProps as Oi, guardReactiveProps as zi, normalizeStyle as Ei, nextTick as Fi, getCurrentInstance as Pi, render as Di } from "vue";
6
6
  import { useI18n as ue, useCoreStore as Rt } from "@feedmepos/mf-common";
7
- import { u as Ti } from "./category-CBXUkjZW.js";
7
+ import { u as Ti } from "./category-LWr8T58z.js";
8
8
  import { a as Wn, _ as kn } from "./InfoBasic.vue_vue_type_script_setup_true_lang-DxQBDu16.js";
9
9
  import { _ as We, a as Ui } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
10
- import { _ as Je } from "./FormItem.vue_vue_type_script_setup_true_lang-DKsxEK-8.js";
11
- import { f as at } from "./currency-CyIMAuaF.js";
12
- import { _ as Qe, T as $i, l as Wt } from "./takeaway-GxwSTX8A.js";
10
+ import { _ as Qe } from "./FormItem.vue_vue_type_script_setup_true_lang-DKsxEK-8.js";
11
+ import { f as at } from "./currency-DKK9xC6n.js";
12
+ import { _ as Je, T as $i, l as Wt } from "./takeaway-COS4KOI3.js";
13
13
  import { V as Kn } from "./vuedraggable-WU01qJgi.js";
14
- import { l as Ne, u as Vi } from "./lodash-Dum3fDW4.js";
14
+ import { l as Ne, u as Vi } from "./lodash-B3ZfQdZl.js";
15
15
  import "vue-router";
16
- import { V as An } from "./index-F3JoSMjg.js";
17
- import { s as Kt, F as Ni } from "./object-BNFM25tr.js";
18
- import { L as Bi } from "./LinkProductSideSheet-Dr54Si8e.js";
16
+ import { V as An } from "./index-CKc0UptG.js";
17
+ import { s as Kt, F as Ni } from "./object-4zTGlAvf.js";
18
+ import { L as Bi } from "./LinkProductSideSheet-qIA_dKq_.js";
19
19
  import { c as Li } from "./string-DpfFixWH.js";
20
- import { _ as Gi } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-W3ALTrsj.js";
20
+ import { _ as Gi } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-B94bwxZs.js";
21
21
  const Wi = {
22
22
  xmlns: "http://www.w3.org/2000/svg",
23
23
  width: "24",
@@ -511,14 +511,14 @@ class Yn {
511
511
  return !!this.menuStore.state.currentCatalogId || !!this.menuStore.state.currentSchedulerId;
512
512
  }
513
513
  }
514
- const Zi = "/assets/linked-status-DS5Y3Qmg.js";
515
- function Qi(e) {
514
+ const Zi = "/assets/linked-status-Bn4uaXGM.js";
515
+ function Ji(e) {
516
516
  var i;
517
517
  const n = ae(e), t = (i = n.variant) == null ? void 0 : i.variantCombinations;
518
518
  return delete n.variant, delete n.thumbnail, [n, ...t || []];
519
519
  }
520
- function Ji(e, n, t, i) {
521
- const a = ae(n), o = t ? a.modules.catalog.find((p) => p._id === t) : null, r = i ? a.modules.scheduler.find((p) => p._id === i) : null, l = o ? ae(o) : void 0, s = t ? a.modules.catalog.filter((p) => p._id !== t) : [], u = r ? ae(r) : void 0, c = e.reduce((p, d) => (p[d._id] = Qi(d), p), {});
520
+ function Qi(e, n, t, i) {
521
+ const a = ae(n), o = t ? a.modules.catalog.find((p) => p._id === t) : null, r = i ? a.modules.scheduler.find((p) => p._id === i) : null, l = o ? ae(o) : void 0, s = t ? a.modules.catalog.filter((p) => p._id !== t) : [], u = r ? ae(r) : void 0, c = e.reduce((p, d) => (p[d._id] = Ji(d), p), {});
522
522
  function m(p = []) {
523
523
  const d = e.map((g) => g._id);
524
524
  return [
@@ -658,7 +658,7 @@ function to(e, n) {
658
658
  };
659
659
  }
660
660
  async function no(e, n, t, i, a, o = !0) {
661
- const r = ae(t), l = o ? Ji(n, r, i, a) : r, s = n.reduce((m, p) => (m[p._id] = l.modules.item.find((d) => d._id === p._id), m), {}), u = n.reduce((m, p) => {
661
+ const r = ae(t), l = o ? Qi(n, r, i, a) : r, s = n.reduce((m, p) => (m[p._id] = l.modules.item.find((d) => d._id === p._id), m), {}), u = n.reduce((m, p) => {
662
662
  const d = p._id;
663
663
  return m[d] = eo(s[d], e), m;
664
664
  }, {}), c = ye.getFallbackPrices({
@@ -979,7 +979,7 @@ function On(e) {
979
979
  function Zn(e) {
980
980
  return e != e;
981
981
  }
982
- function Qn(e, n) {
982
+ function Jn(e, n) {
983
983
  return Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2));
984
984
  }
985
985
  var ot = function(e, n) {
@@ -1054,7 +1054,7 @@ rn.render = function(e, n, t, i, a, o) {
1054
1054
  return o.onMouseLeave && o.onMouseLeave.apply(o, arguments);
1055
1055
  }) }, [pe(e.$slots, "default")], 34);
1056
1056
  };
1057
- var Dt = Ie("vue-handler-wrapper"), Jn = { name: "HandlerWrapper", components: { DraggableElement: rn }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
1057
+ var Dt = Ie("vue-handler-wrapper"), Qn = { name: "HandlerWrapper", components: { DraggableElement: rn }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
1058
1058
  var e;
1059
1059
  if (this.horizontalPosition || this.verticalPosition) {
1060
1060
  var n, t = Xn(this.horizontalPosition, this.verticalPosition);
@@ -1062,7 +1062,7 @@ var Dt = Ie("vue-handler-wrapper"), Jn = { name: "HandlerWrapper", components: {
1062
1062
  } else e = Dt({ disabled: this.disabled });
1063
1063
  return { root: e, draggable: Dt("draggable") };
1064
1064
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
1065
- Jn.render = function(e, n, t, i, a, o) {
1065
+ Qn.render = function(e, n, t, i, a, o) {
1066
1066
  var r = L("DraggableElement");
1067
1067
  return P(), W("div", { class: o.classes.root }, [A(r, { class: o.classes.draggable, onDrag: n[1] || (n[1] = function(l) {
1068
1068
  return e.$emit("drag", l);
@@ -1335,7 +1335,7 @@ function Dn(e) {
1335
1335
  function ft(e, n, t) {
1336
1336
  return n == 0 && t == 0 ? e / 2 : n == 0 ? 0 : t == 0 ? e : e * Math.abs(n / (n + t));
1337
1337
  }
1338
- var Mo = Ie("vue-simple-handler"), xo = Ie("vue-simple-handler-wrapper"), sn = { name: "SimpleHandler", components: { HandlerWrapper: Jn }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
1338
+ var Mo = Ie("vue-simple-handler"), xo = Ie("vue-simple-handler-wrapper"), sn = { name: "SimpleHandler", components: { HandlerWrapper: Qn }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
1339
1339
  return { hover: !1 };
1340
1340
  }, computed: { classes: function() {
1341
1341
  var e, n = (ke(e = {}, this.horizontalPosition, !!this.horizontalPosition), ke(e, this.verticalPosition, !!this.verticalPosition), ke(e, "".concat(this.horizontalPosition, "-").concat(this.verticalPosition), !!(this.verticalPosition && this.horizontalPosition)), ke(e, "hover", this.hover), e);
@@ -1466,7 +1466,7 @@ var Fo = Ie("vue-draggable-area"), ai = { name: "DraggableArea", props: { movabl
1466
1466
  }, onTouchEnd: function() {
1467
1467
  this.touchStarted = !1, this.processEnd();
1468
1468
  }, onTouchMove: function(e) {
1469
- this.touches.length >= 1 && (this.touchStarted ? (this.processMove(e, e.touches), e.preventDefault(), e.stopPropagation()) : Qn({ x: this.touches[0].clientX, y: this.touches[0].clientY }, { x: e.touches[0].clientX, y: e.touches[0].clientY }) > this.activationDistance && (this.initAnchor({ clientX: e.touches[0].clientX, clientY: e.touches[0].clientY }), this.touchStarted = !0));
1469
+ this.touches.length >= 1 && (this.touchStarted ? (this.processMove(e, e.touches), e.preventDefault(), e.stopPropagation()) : Jn({ x: this.touches[0].clientX, y: this.touches[0].clientY }, { x: e.touches[0].clientX, y: e.touches[0].clientY }) > this.activationDistance && (this.initAnchor({ clientX: e.touches[0].clientX, clientY: e.touches[0].clientY }), this.touchStarted = !0));
1470
1470
  }, onMouseDown: function(e) {
1471
1471
  if (this.movable && e.button === 0) {
1472
1472
  var n = { fake: !0, clientX: e.clientX, clientY: e.clientY };
@@ -1573,7 +1573,7 @@ function Tn(e, n) {
1573
1573
  return e.forEach(function(l) {
1574
1574
  o.left += (l.clientX - i) / e.length, o.top += (l.clientY - a) / e.length;
1575
1575
  }), e.forEach(function(l) {
1576
- r += Qn({ x: o.left, y: o.top }, { x: l.clientX - i, y: l.clientY - a });
1576
+ r += Jn({ x: o.left, y: o.top }, { x: l.clientX - i, y: l.clientY - a });
1577
1577
  }), { centerMass: o, spread: r, count: e.length };
1578
1578
  }
1579
1579
  var si = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 }, eventsFilter: { type: Function, required: !1 } }, beforeMount: function() {
@@ -1641,8 +1641,8 @@ si.render = function(e, n, t, i, a, o) {
1641
1641
  return o.onWheel && o.onWheel.apply(o, arguments);
1642
1642
  }) }, [pe(e.$slots, "default")], 544);
1643
1643
  };
1644
- var Qt = { components: { TransformableImage: si }, props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 } }, emits: ["resize", "move"] };
1645
- Qt.render = function(e, n, t, i, a, o) {
1644
+ var Jt = { components: { TransformableImage: si }, props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 } }, emits: ["resize", "move"] };
1645
+ Jt.render = function(e, n, t, i, a, o) {
1646
1646
  var r = L("transformable-image");
1647
1647
  return P(), W(r, { "touch-move": t.touchMove, "touch-resize": t.touchResize, "mouse-move": t.mouseMove, "wheel-resize": t.wheelResize, onMove: n[1] || (n[1] = function(l) {
1648
1648
  return e.$emit("move", l);
@@ -1741,10 +1741,10 @@ ci.render = function(e, n, t, i, a, o) {
1741
1741
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
1742
1742
  }), _: 1 }, 8, ["width", "height", "transitions", "class", "handlers", "handlers-component", "handlers-classes", "handlers-wrappers-classes", "lines", "lines-component", "lines-classes", "lines-wrappers-classes", "resizable", "onResize", "onResizeEnd"])], 6);
1743
1743
  };
1744
- var To = ["transitions"], Pe = Ie("vue-advanced-cropper"), di = { name: "Cropper", components: { BackgroundWrapper: Qt }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
1744
+ var To = ["transitions"], Pe = Ie("vue-advanced-cropper"), di = { name: "Cropper", components: { BackgroundWrapper: Jt }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
1745
1745
  return ci;
1746
1746
  } }, backgroundWrapperComponent: { type: [Object, String], default: function() {
1747
- return Qt;
1747
+ return Jt;
1748
1748
  } }, stencilProps: { type: Object, default: function() {
1749
1749
  return {};
1750
1750
  } }, autoZoom: { type: Boolean, default: !1 }, imageClass: { type: String }, boundariesClass: { type: String }, backgroundClass: { type: String }, foregroundClass: { type: String }, minWidth: { type: [Number, String] }, minHeight: { type: [Number, String] }, maxWidth: { type: [Number, String] }, maxHeight: { type: [Number, String] }, debounce: { type: [Boolean, Number], default: 500 }, transitions: { type: Boolean, default: !0 }, checkOrientation: { type: Boolean, default: !0 }, canvas: { type: [Object, Boolean], default: !0 }, crossOrigin: { type: [Boolean, String], default: void 0 }, transitionTime: { type: Number, default: 300 }, imageRestriction: { type: String, default: "fit-area", validator: function(e) {
@@ -2319,7 +2319,7 @@ function Zo(e, n) {
2319
2319
  pe(e.$slots, "default")
2320
2320
  ]);
2321
2321
  }
2322
- const Qo = /* @__PURE__ */ lt(Xo, [["render", Zo]]), Jo = {
2322
+ const Jo = /* @__PURE__ */ lt(Xo, [["render", Zo]]), Qo = {
2323
2323
  class: "flex flex-row xs:flex-col gap-24"
2324
2324
  }, ea = {
2325
2325
  class: "flex-1 flex flex-col gap-24"
@@ -2445,8 +2445,8 @@ const ca = /* @__PURE__ */ se({
2445
2445
  title: h(b)("menu.product.form.detail.title")
2446
2446
  }, {
2447
2447
  default: N(() => {
2448
- var Y, J;
2449
- return [D("div", Jo, [D("div", ea, [D("div", ta, [D("div", na, [A(y, {
2448
+ var Y, Q;
2449
+ return [D("div", Qo, [D("div", ea, [D("div", ta, [D("div", na, [A(y, {
2450
2450
  "model-value": F.form.code,
2451
2451
  placeholder: ((Y = F.fallback) == null ? void 0 : Y.code) || h(b)("menu.product.form.detail.fields.code.placeholder"),
2452
2452
  label: h(b)("menu.product.form.detail.fields.code.label"),
@@ -2458,7 +2458,7 @@ const ca = /* @__PURE__ */ se({
2458
2458
  count: C.value
2459
2459
  }) : void 0,
2460
2460
  "model-value": F.form.name,
2461
- placeholder: (J = F.fallback) == null ? void 0 : J.name,
2461
+ placeholder: (Q = F.fallback) == null ? void 0 : Q.name,
2462
2462
  rules: m.value.name ? [(z) => !!z || h(b)("menu.product.form.detail.fields.name.required")] : void 0,
2463
2463
  "label-mark": "required",
2464
2464
  autofocus: "",
@@ -2480,7 +2480,7 @@ const ca = /* @__PURE__ */ se({
2480
2480
  "model-value": F.thumbnail,
2481
2481
  "onUpdate:modelValue": k[3] || (k[3] = (z) => c("update:thumbnail", z)),
2482
2482
  "onReset:modelValue": k[4] || (k[4] = (z) => c("reset:thumbnail"))
2483
- }, null, 8, ["disabled", "model-value"])]), A(Je, {
2483
+ }, null, 8, ["disabled", "model-value"])]), A(Qe, {
2484
2484
  label: h(b)("menu.product.form.detail.category.label")
2485
2485
  }, {
2486
2486
  default: N(() => [g.value ? (P(), W(O, {
@@ -2494,7 +2494,7 @@ const ca = /* @__PURE__ */ se({
2494
2494
  value: je.PRODUCT,
2495
2495
  label: h(b)("menu.product.form.detail.category.options.product.label"),
2496
2496
  sublabel: h(b)("menu.product.form.detail.category.options.product.sublabel")
2497
- }, null, 8, ["disabled", "value", "label", "sublabel"]), A(Qo, null, {
2497
+ }, null, 8, ["disabled", "value", "label", "sublabel"]), A(Jo, null, {
2498
2498
  default: N(() => [h(i).isV4 ? (P(), W(_, {
2499
2499
  key: 0
2500
2500
  })) : ee("", !0)]),
@@ -2632,7 +2632,7 @@ const ca = /* @__PURE__ */ se({
2632
2632
  var F;
2633
2633
  return [
2634
2634
  D("div", da, [
2635
- A(Qe, {
2635
+ A(Je, {
2636
2636
  min: 0,
2637
2637
  "model-value": _.form.price || null,
2638
2638
  placeholder: (F = _.fallback) != null && F.price ? h(at)(_.fallback.price, !1) : void 0,
@@ -2667,7 +2667,7 @@ const ca = /* @__PURE__ */ se({
2667
2667
  "onUpdate:modelValue": C[1] || (C[1] = (k) => r("update:form", "taxes", [h(Et).decodeTax(k)]))
2668
2668
  }, null, 8, ["disabled", "items", "label", "model-value"])
2669
2669
  ]),
2670
- A(Je, {
2670
+ A(Qe, {
2671
2671
  label: h(o)("menu.product.form.price.settings.title")
2672
2672
  }, {
2673
2673
  default: N(() => {
@@ -2729,7 +2729,7 @@ const ca = /* @__PURE__ */ se({
2729
2729
  }, null, 8, ["model-value", "value", "label"]),
2730
2730
  _.form.costing ? (P(), Z("div", ya, [
2731
2731
  D("div", _a, [
2732
- A(Qe, {
2732
+ A(Je, {
2733
2733
  class: "w-full",
2734
2734
  min: 0,
2735
2735
  "model-value": _.form.costing || null,
@@ -2750,7 +2750,7 @@ const ca = /* @__PURE__ */ se({
2750
2750
  }, null, 8, ["disabled", "model-value", "value", "label"]),
2751
2751
  D("div", Ca, [
2752
2752
  D("div", Sa, [
2753
- _.form.minPrice ? (P(), W(Qe, {
2753
+ _.form.minPrice ? (P(), W(Je, {
2754
2754
  key: 0,
2755
2755
  max: h(_e.Dinero).fromFdoDinero(_.form.price).toUnit(),
2756
2756
  min: 0,
@@ -2944,7 +2944,7 @@ const pi = /* @__PURE__ */ lt(Pa, [["render", Ua]]), $a = {
2944
2944
  }
2945
2945
  function _(y) {
2946
2946
  var R, G;
2947
- const M = ((R = t.form.variant) == null ? void 0 : R.variantGroupIds) || [], f = (G = t.form.variant) == null ? void 0 : G.variantCombinations, O = y.split(/(?=variant)/g).map((Y) => Y.replace(/\/*$/, "")).filter((Y) => M.some((J) => Y.includes(J))).join("/");
2947
+ const M = ((R = t.form.variant) == null ? void 0 : R.variantGroupIds) || [], f = (G = t.form.variant) == null ? void 0 : G.variantCombinations, O = y.split(/(?=variant)/g).map((Y) => Y.replace(/\/*$/, "")).filter((Y) => M.some((Q) => Y.includes(Q))).join("/");
2948
2948
  return f == null ? void 0 : f.find((Y) => Y.combinationKey === O);
2949
2949
  }
2950
2950
  const C = (y) => {
@@ -2976,8 +2976,8 @@ const pi = /* @__PURE__ */ lt(Pa, [["render", Ua]]), $a = {
2976
2976
  const O = f.map((G) => i.variants.find((Y) => Y._id === G)), R = ye.fullVariantCombination(O).map(({
2977
2977
  combinationKey: G
2978
2978
  }) => {
2979
- var J;
2980
- const Y = (J = t.form.variant) == null ? void 0 : J.variantCombinations.find((z) => z.combinationKey === G);
2979
+ var Q;
2980
+ const Y = (Q = t.form.variant) == null ? void 0 : Q.variantCombinations.find((z) => z.combinationKey === G);
2981
2981
  return M(Y || {
2982
2982
  _id: t.form._id,
2983
2983
  combinationKey: G
@@ -3069,7 +3069,7 @@ const pi = /* @__PURE__ */ lt(Pa, [["render", Ua]]), $a = {
3069
3069
  cell: (y) => {
3070
3070
  var O, R;
3071
3071
  const M = y.getValue(), x = ((O = y.row.original.fallback) == null ? void 0 : O.price) ?? t.form.price ?? ((R = t.fallback) == null ? void 0 : R.price);
3072
- return ce(Qe, {
3072
+ return ce(Je, {
3073
3073
  placeholder: x ? at(x) : void 0,
3074
3074
  modelValue: M,
3075
3075
  min: 0,
@@ -3087,7 +3087,7 @@ const pi = /* @__PURE__ */ lt(Pa, [["render", Ua]]), $a = {
3087
3087
  cell: (y) => {
3088
3088
  var O, R, G;
3089
3089
  const M = y.getValue(), f = y.row.original, x = ((O = f.fallback) == null ? void 0 : O.minPrice) ?? t.form.minPrice ?? ((R = t.fallback) == null ? void 0 : R.minPrice);
3090
- return ce(Qe, {
3090
+ return ce(Je, {
3091
3091
  placeholder: x ? at(x) : void 0,
3092
3092
  modelValue: M,
3093
3093
  max: _e.Dinero.fromFdoDinero(f.price ?? ((G = f.fallback) == null ? void 0 : G.price) ?? _e.Dinero.zero().toObject()).toUnit(),
@@ -3138,12 +3138,12 @@ const pi = /* @__PURE__ */ lt(Pa, [["render", Ua]]), $a = {
3138
3138
  item: N(({
3139
3139
  element: Y
3140
3140
  }) => {
3141
- var J;
3141
+ var Q;
3142
3142
  return [D("div", Va, [A(f, {
3143
3143
  variant: h(Le).Tertiary,
3144
3144
  class: "handle",
3145
3145
  "prepend-icon": "drag_handle"
3146
- }, null, 8, ["variant"]), D("div", Na, [D("p", Ba, le((J = m.value[Y]) == null ? void 0 : J.name), 1), A(v, {
3146
+ }, null, 8, ["variant"]), D("div", Na, [D("p", Ba, le((Q = m.value[Y]) == null ? void 0 : Q.name), 1), A(v, {
3147
3147
  class: "cursor-pointer",
3148
3148
  name: "close",
3149
3149
  onClick: St((z) => {
@@ -3426,15 +3426,15 @@ function cn(e = "https://inventory.feedmedev.cc/") {
3426
3426
  mountInventoryBindingPicker: i
3427
3427
  };
3428
3428
  }
3429
- var Qa = { mainBackend: "https://portal-v2-dev.feedmeapi.com", menuBackend: "https://menu-v4-dev.feedmeapi.com", inventoryPortal: "https://inventory.feedmedev.cc/", remy: "https://remy-dev.feedmeapi.com/v1", firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, gtm: { id: "GTM-P7Z9FMS6", serverUrl: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", env: "development", serverMeasurementId: "G-759WBZPF06", debug: !0 } };
3430
- const Ja = /* @__PURE__ */ se({
3429
+ var Ja = { mainBackend: "https://portal-v2-dev.feedmeapi.com", menuBackend: "https://menu-v4-dev.feedmeapi.com", inventoryPortal: "https://inventory.feedmedev.cc/", remy: "https://remy-dev.feedmeapi.com/v1", firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, gtm: { id: "GTM-P7Z9FMS6", serverUrl: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", env: "development", serverMeasurementId: "G-759WBZPF06", debug: !0 } };
3430
+ const Qa = /* @__PURE__ */ se({
3431
3431
  __name: "InventoryPicker",
3432
3432
  props: {
3433
3433
  type: { default: "RECIPE" },
3434
3434
  bindings: { default: () => [] }
3435
3435
  },
3436
3436
  setup(e) {
3437
- const n = e, t = xe(), i = X(), a = cn(Qa.inventoryPortal);
3437
+ const n = e, t = xe(), i = X(), a = cn(Ja.inventoryPortal);
3438
3438
  ue();
3439
3439
  async function o() {
3440
3440
  if (i.value)
@@ -3520,7 +3520,7 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3520
3520
  return new Promise((I) => {
3521
3521
  d.open({
3522
3522
  title: `Pick ${C === Lt.F_INVENTORY_BINDING_TYPE.enum.RECIPE ? "recipe" : "ingredient"}`,
3523
- contentComponent: Ja,
3523
+ contentComponent: Qa,
3524
3524
  contentComponentProps: {
3525
3525
  type: C,
3526
3526
  bindings: E
@@ -3605,7 +3605,7 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3605
3605
  ], 64);
3606
3606
  };
3607
3607
  }
3608
- }), Jt = or, ar = {
3608
+ }), Qt = or, ar = {
3609
3609
  key: 0
3610
3610
  }, rr = {
3611
3611
  key: 1
@@ -3654,7 +3654,7 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3654
3654
  header: () => I("menu.group.option.product_title"),
3655
3655
  enableSorting: !1,
3656
3656
  cell: (z) => {
3657
- const U = z.getValue(), $ = z.row.original, Q = z.row.depth > 0, j = $.combinationKey ? Hn($.combinationKey, me().variants) : null;
3657
+ const U = z.getValue(), $ = z.row.original, J = z.row.depth > 0, j = $.combinationKey ? Hn($.combinationKey, me().variants) : null;
3658
3658
  return ce("div", ce(Me.FmTextField, {
3659
3659
  modelValue: U,
3660
3660
  placeholder: j ?? "",
@@ -3662,7 +3662,7 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3662
3662
  rules: j ? void 0 : [(ne) => ne.length > 0 || I("menu.group.option.product_title_required")],
3663
3663
  "onUpdate:modelValue": (ne) => {
3664
3664
  var te;
3665
- if (Q) {
3665
+ if (J) {
3666
3666
  const we = (te = z.row.getParentRow()) == null ? void 0 : te.original;
3667
3667
  if (!we) return;
3668
3668
  y(we._id, $.combinationKey ?? "", "name", ne);
@@ -3692,12 +3692,12 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3692
3692
  });
3693
3693
  },
3694
3694
  cell: (z) => {
3695
- const U = z.getValue(), $ = z.row.original, Q = $.fallbackPrice, j = z.row.depth > 0;
3696
- return ce(Qe, {
3697
- placeholder: Q ? at(Q) : void 0,
3695
+ const U = z.getValue(), $ = z.row.original, J = $.fallbackPrice, j = z.row.depth > 0;
3696
+ return ce(Je, {
3697
+ placeholder: J ? at(J) : void 0,
3698
3698
  modelValue: U,
3699
- required: !Q,
3700
- nullable: !!Q,
3699
+ required: !J,
3700
+ nullable: !!J,
3701
3701
  min: g ? void 0 : 0,
3702
3702
  "onUpdate:modelValue": (ne) => {
3703
3703
  var te;
@@ -3723,10 +3723,10 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3723
3723
  header: () => I("menu.common.labels.order_from"),
3724
3724
  enableSorting: !1,
3725
3725
  cell: (z) => {
3726
- const U = z.getValue(), $ = z.row.original, Q = $.fallbackOrder, j = z.row.depth > 0;
3726
+ const U = z.getValue(), $ = z.row.original, J = $.fallbackOrder, j = z.row.depth > 0;
3727
3727
  return ce(on, {
3728
3728
  modelValue: U,
3729
- fallback: Q,
3729
+ fallback: J,
3730
3730
  disable: !d($.combinationKey).orderFrom,
3731
3731
  required: !0,
3732
3732
  editActiveOnly: d($.combinationKey).orderFromActiveOnly,
@@ -3761,12 +3761,12 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3761
3761
  const U = z.row.original, $ = z.row.depth > 0;
3762
3762
  return A("div", {
3763
3763
  class: "flex items-center"
3764
- }, [d(U.combinationKey).inventory && A(Jt, {
3764
+ }, [d(U.combinationKey).inventory && A(Qt, {
3765
3765
  title: "Inventory",
3766
3766
  initialValue: U.inventoryBindings ?? [],
3767
3767
  name: U.name ?? U.fallbackName ?? "",
3768
3768
  allowRefund: t.allowRefundInventory,
3769
- "onUpdate:inventory": (Q) => {
3769
+ "onUpdate:inventory": (J) => {
3770
3770
  var j;
3771
3771
  if ($) {
3772
3772
  const ne = (j = z.row.getParentRow()) == null ? void 0 : j.original;
@@ -3776,14 +3776,14 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3776
3776
  U.combinationKey ?? "",
3777
3777
  // @ts-ignore
3778
3778
  "inventoryBindings",
3779
- Q
3779
+ J
3780
3780
  );
3781
3781
  } else
3782
- k(U._id, "inventoryBindings", Q);
3782
+ k(U._id, "inventoryBindings", J);
3783
3783
  }
3784
3784
  }, {
3785
3785
  default: ({
3786
- trigger: Q
3786
+ trigger: J
3787
3787
  }) => A(L("fm-tooltip"), {
3788
3788
  content: "Inventory",
3789
3789
  zIndex: 110
@@ -3795,7 +3795,7 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3795
3795
  prependIcon: "inventory_2",
3796
3796
  overwriteIconOutline: (j = U.inventoryBindings) != null && j.length ? "filled" : "outline",
3797
3797
  textColor: $e.NeutralGray400,
3798
- onClick: Q
3798
+ onClick: J
3799
3799
  }, null)];
3800
3800
  }
3801
3801
  })
@@ -3804,9 +3804,9 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3804
3804
  prependIcon: "delete",
3805
3805
  textColor: $e.NeutralGray400,
3806
3806
  onClick: () => {
3807
- var Q;
3807
+ var J;
3808
3808
  if ($) {
3809
- const j = (Q = z.row.getParentRow()) == null ? void 0 : Q.original;
3809
+ const j = (J = z.row.getParentRow()) == null ? void 0 : J.original;
3810
3810
  if (!j) return;
3811
3811
  f(j._id, U.combinationKey ?? "");
3812
3812
  } else
@@ -3839,12 +3839,12 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3839
3839
  });
3840
3840
  }
3841
3841
  function k(z, U, $) {
3842
- const Q = t.group.items[z];
3843
- if (!Q) return;
3842
+ const J = t.group.items[z];
3843
+ if (!J) return;
3844
3844
  const j = {
3845
- ...Q
3845
+ ...J
3846
3846
  };
3847
- U === "price" ? j[U] = !$ && !Q.fallbackPrice ? _e.Dinero.zero().toObject() : $ : j[U] = $, i("update:group", {
3847
+ U === "price" ? j[U] = !$ && !J.fallbackPrice ? _e.Dinero.zero().toObject() : $ : j[U] = $, i("update:group", {
3848
3848
  ...t.group,
3849
3849
  items: {
3850
3850
  ...t.group.items,
@@ -3852,14 +3852,14 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3852
3852
  }
3853
3853
  });
3854
3854
  }
3855
- function y(z, U, $, Q) {
3855
+ function y(z, U, $, J) {
3856
3856
  var we, ct;
3857
3857
  const j = ae(t.group), ne = (we = j.items[z].items) == null ? void 0 : we.findIndex((dt) => dt.combinationKey === U);
3858
3858
  if (!ut.isSet(ne)) return;
3859
3859
  let te = (ct = j.items[z].items) == null ? void 0 : ct[ne];
3860
3860
  te && (te = {
3861
3861
  ...te,
3862
- [$]: Q
3862
+ [$]: J
3863
3863
  }, j.items[z].items[ne] = te, i("update:group", j));
3864
3864
  }
3865
3865
  function M(z) {
@@ -3867,8 +3867,8 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3867
3867
  delete U.items[z], i("update:group", U);
3868
3868
  }
3869
3869
  function f(z, U) {
3870
- const $ = ae(t.group), Q = $.items[z];
3871
- Q && (Q.items = (Q.items || []).filter((j) => j.combinationKey !== U), $.items[z] = Q, i("update:group", $));
3870
+ const $ = ae(t.group), J = $.items[z];
3871
+ J && (J.items = (J.items || []).filter((j) => j.combinationKey !== U), $.items[z] = J, i("update:group", $));
3872
3872
  }
3873
3873
  const v = T(() => t.categorizedItems.flatMap((z) => z.items).reduce((z, U) => {
3874
3874
  var $;
@@ -3878,18 +3878,18 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3878
3878
  }, z;
3879
3879
  }, {})), x = (z) => {
3880
3880
  var j, ne;
3881
- const $ = o.state.menu.modules.item.find((te) => te._id === z._id), Q = z.combinationKey ? {
3881
+ const $ = o.state.menu.modules.item.find((te) => te._id === z._id), J = z.combinationKey ? {
3882
3882
  ...(j = $ == null ? void 0 : $.variant) == null ? void 0 : j.variantCombinations.find((te) => te.combinationKey === z.combinationKey),
3883
3883
  name: Nn(me().variants, ((ne = $ == null ? void 0 : $.variant) == null ? void 0 : ne.variantGroupIds) || [])[z.combinationKey]
3884
3884
  } : $;
3885
- return Q == null ? void 0 : Q.name;
3885
+ return J == null ? void 0 : J.name;
3886
3886
  }, O = async (z) => {
3887
3887
  let U = nn(t.group);
3888
3888
  U = {
3889
3889
  ...U,
3890
3890
  items: z.map(($) => {
3891
- const Q = U.items.find((ne) => ne._id == $._id && ne.combinationKey == $.combinationKey), j = v.value[$._id];
3892
- return Q || {
3891
+ const J = U.items.find((ne) => ne._id == $._id && ne.combinationKey == $.combinationKey), j = v.value[$._id];
3892
+ return J || {
3893
3893
  ...$,
3894
3894
  name: x($),
3895
3895
  price: $.combinationKey ? j.variants[$.combinationKey || ""].price : j.price,
@@ -3900,14 +3900,14 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3900
3900
  }, R = (z) => z.items;
3901
3901
  function G(z) {
3902
3902
  const U = ae(t.group);
3903
- U.items = z.reduce(($, Q) => ({
3903
+ U.items = z.reduce(($, J) => ({
3904
3904
  ...$,
3905
- [Q._id]: Q
3905
+ [J._id]: J
3906
3906
  }), {}), i("update:group", U);
3907
3907
  }
3908
- const Y = Bn(), J = T(() => Y.breakpoints.value.xs);
3908
+ const Y = Bn(), Q = T(() => Y.breakpoints.value.xs);
3909
3909
  return (z, U) => {
3910
- const $ = L("fm-button"), Q = L("fm-table");
3910
+ const $ = L("fm-button"), J = L("fm-table");
3911
3911
  return P(), W(We, {
3912
3912
  title: h(I)("menu.group.option.title")
3913
3913
  }, {
@@ -3940,10 +3940,10 @@ const tr = { class: "fm-typo-en-title-md-600 mr-auto" }, nr = { class: "space-y-
3940
3940
  "prepend-icon": "add",
3941
3941
  onClick: F
3942
3942
  }, null, 8, ["text-color", "border-color", "label"])]))], 64)) : ee("", !0)]),
3943
- default: N(() => [D("div", sr, [D("div", lr, [A(Q, {
3943
+ default: N(() => [D("div", sr, [D("div", lr, [A(J, {
3944
3944
  "column-defs": S.value,
3945
3945
  "column-visibility": b.value,
3946
- draggable: !J.value && d(null).name,
3946
+ draggable: !Q.value && d(null).name,
3947
3947
  "expanded-state": l.value ? {} : E.value,
3948
3948
  "get-sub-row": R,
3949
3949
  "page-size": 999,
@@ -4144,7 +4144,7 @@ const pr = /* @__PURE__ */ lt(cr, [["render", mr]]), hr = { class: "fm-typo-en-t
4144
4144
  ]),
4145
4145
  _: 1
4146
4146
  }, 8, ["model-value", "rules"]),
4147
- m.value.type ? (P(), W(Je, {
4147
+ m.value.type ? (P(), W(Qe, {
4148
4148
  key: 0,
4149
4149
  label: h(I)("menu.common.labels.group_type")
4150
4150
  }, {
@@ -4166,7 +4166,7 @@ const pr = /* @__PURE__ */ lt(cr, [["render", mr]]), hr = { class: "fm-typo-en-t
4166
4166
  ]),
4167
4167
  _: 1
4168
4168
  }, 8, ["label"])) : ee("", !0),
4169
- A(Je, {
4169
+ A(Qe, {
4170
4170
  label: h(I)("menu.common.labels.configuration")
4171
4171
  }, {
4172
4172
  default: N(() => [
@@ -4645,12 +4645,12 @@ const pr = /* @__PURE__ */ lt(cr, [["render", mr]]), hr = { class: "fm-typo-en-t
4645
4645
  const f = !i.state.currentSchedulerId, v = i.rules.group.type, x = i.version == B.F_MENU_VERSION.enum.v3, O = i.rules.item.orderFromActiveOnly, R = i.rules.item.bindToVariant;
4646
4646
  return function(Y) {
4647
4647
  return {
4648
- link: (J) => !k.value && (!J || R),
4649
- name: (J) => !k.value && !J,
4648
+ link: (Q) => !k.value && (!Q || R),
4649
+ name: (Q) => !k.value && !Q,
4650
4650
  type: v && !Y._id && !k.value,
4651
4651
  price: Y.type != B.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
4652
4652
  inventory: f ? x ? !k.value && Y.type == B.F_ADDON_GROUP_TYPE.enum.NORMAL : !k.value : !1,
4653
- orderFrom: (J) => f ? x ? Y.type == B.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? k.value : !!k.value == !J : k.value : !1,
4653
+ orderFrom: (Q) => f ? x ? Y.type == B.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? k.value : !!k.value == !Q : k.value : !1,
4654
4654
  orderFromActiveOnly: O,
4655
4655
  showOrderFrom: f ? x ? k.value ? !0 : Y.type == B.F_ADDON_GROUP_TYPE.enum.PRODUCT : k.value : !1,
4656
4656
  bindToVariant: R,
@@ -4813,7 +4813,7 @@ const Pr = {
4813
4813
  const b = S.row.original;
4814
4814
  return l.value ? A("div", {
4815
4815
  class: "flex items-center justify-end"
4816
- }, [A(Jt, {
4816
+ }, [A(Qt, {
4817
4817
  name: b.name,
4818
4818
  initialValue: b.bindings ?? [],
4819
4819
  title: t("menu.inventory.dialog.title", {
@@ -4865,7 +4865,7 @@ const Pr = {
4865
4865
  title: h(t)("menu.inventory.title"),
4866
4866
  subTitle: h(t)("menu.inventory.subtitle")
4867
4867
  }, {
4868
- default: N(() => [D("div", Pr, [D("div", Dr, [(P(!0), Z(Re, null, Ge(m.value, (F) => (P(), W(h(Jt), {
4868
+ default: N(() => [D("div", Pr, [D("div", Dr, [(P(!0), Z(Re, null, Ge(m.value, (F) => (P(), W(h(Qt), {
4869
4869
  ref_for: !0,
4870
4870
  ref_key: "inventoryManagerForms",
4871
4871
  ref: E,
@@ -5203,7 +5203,7 @@ const Pr = {
5203
5203
  default: N(() => {
5204
5204
  var y;
5205
5205
  return [
5206
- l.value.printConfig ? (P(), W(Je, {
5206
+ l.value.printConfig ? (P(), W(Qe, {
5207
5207
  key: 0,
5208
5208
  label: h(a)("menu.product.form.print.config.label")
5209
5209
  }, {
@@ -5238,7 +5238,7 @@ const Pr = {
5238
5238
  ]),
5239
5239
  _: 1
5240
5240
  }, 8, ["label", "model-value"]),
5241
- A(Je, {
5241
+ A(Qe, {
5242
5242
  label: h(a)("menu.product.form.print.routes.label")
5243
5243
  }, {
5244
5244
  default: N(() => [
@@ -5304,7 +5304,7 @@ const Pr = {
5304
5304
  }), Hr = { class: "flex items-center justify-between" }, Xr = { class: "space-y-4 flex-1" }, qr = { class: "fm-typo-en-title-sm-600" }, Zr = {
5305
5305
  key: 0,
5306
5306
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
5307
- }, Qr = { key: 0 }, Jr = /* @__PURE__ */ se({
5307
+ }, Jr = { key: 0 }, Qr = /* @__PURE__ */ se({
5308
5308
  __name: "ToggleCard",
5309
5309
  props: {
5310
5310
  title: {},
@@ -5335,7 +5335,7 @@ const Pr = {
5335
5335
  ]),
5336
5336
  A(xi, { name: "expand" }, {
5337
5337
  default: N(() => [
5338
- i.toggle ? (P(), Z("div", Qr, [
5338
+ i.toggle ? (P(), Z("div", Jr, [
5339
5339
  pe(i.$slots, "default", {}, void 0, !0)
5340
5340
  ])) : ee("", !0)
5341
5341
  ]),
@@ -5346,7 +5346,7 @@ const Pr = {
5346
5346
  }));
5347
5347
  };
5348
5348
  }
5349
- }), Ke = /* @__PURE__ */ lt(Jr, [["__scopeId", "data-v-e920f110"]]), es = {}, ts = { class: "py-4" };
5349
+ }), Ke = /* @__PURE__ */ lt(Qr, [["__scopeId", "data-v-e920f110"]]), es = {}, ts = { class: "py-4" };
5350
5350
  function ns(e, n) {
5351
5351
  return P(), Z("div", ts, n[0] || (n[0] = [
5352
5352
  D("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
@@ -5685,7 +5685,7 @@ const is = /* @__PURE__ */ lt(es, [["render", ns]]), os = {
5685
5685
  const Y = X(
5686
5686
  !!d.value.inventoryBindings || (((hn = d.value.variant) == null ? void 0 : hn.variantCombinations) || []).some((K) => !!K.inventoryBindings) || !1
5687
5687
  );
5688
- function J(K) {
5688
+ function Q(K) {
5689
5689
  var V, re, he;
5690
5690
  K || (d.value = {
5691
5691
  ...d.value,
@@ -5717,7 +5717,7 @@ const is = /* @__PURE__ */ lt(es, [["render", ns]]), os = {
5717
5717
  });
5718
5718
  }
5719
5719
  const $ = X(!!d.value.print);
5720
- function Q(K) {
5720
+ function J(K) {
5721
5721
  K || (d.value = { ...d.value, print: void 0 });
5722
5722
  }
5723
5723
  const j = X(
@@ -5897,7 +5897,7 @@ const is = /* @__PURE__ */ lt(es, [["render", ns]]), os = {
5897
5897
  toggle: $.value,
5898
5898
  "onUpdate:toggle": [
5899
5899
  V[6] || (V[6] = (q) => $.value = q),
5900
- V[7] || (V[7] = (q) => Q(q))
5900
+ V[7] || (V[7] = (q) => J(q))
5901
5901
  ],
5902
5902
  description: "Use a different print setting",
5903
5903
  disabled: "",
@@ -5971,7 +5971,7 @@ const is = /* @__PURE__ */ lt(es, [["render", ns]]), os = {
5971
5971
  toggle: Y.value,
5972
5972
  "onUpdate:toggle": [
5973
5973
  V[15] || (V[15] = (q) => Y.value = q),
5974
- V[16] || (V[16] = (q) => J(q))
5974
+ V[16] || (V[16] = (q) => Q(q))
5975
5975
  ],
5976
5976
  disabled: !b.value,
5977
5977
  description: "Use a different inventory setting",
@@ -6086,28 +6086,28 @@ const dn = Vn("item-manager", () => {
6086
6086
  return delete v.variant, delete v.thumbnail, [v, ...x || []];
6087
6087
  }
6088
6088
  function u(f, v, x, O) {
6089
- const R = ae(v), G = x ? R.modules.catalog.find((j) => j._id === x) : null, Y = O ? R.modules.scheduler.find((j) => j._id === O) : null, J = G ? ae(G) : void 0, z = x ? R.modules.catalog.filter((j) => j._id !== x) : [], U = Y ? ae(Y) : void 0, $ = f.reduce((j, ne) => (j[ne._id] = s(ne), j), {});
6090
- function Q(j = []) {
6089
+ const R = ae(v), G = x ? R.modules.catalog.find((j) => j._id === x) : null, Y = O ? R.modules.scheduler.find((j) => j._id === O) : null, Q = G ? ae(G) : void 0, z = x ? R.modules.catalog.filter((j) => j._id !== x) : [], U = Y ? ae(Y) : void 0, $ = f.reduce((j, ne) => (j[ne._id] = s(ne), j), {});
6090
+ function J(j = []) {
6091
6091
  const ne = f.map((te) => te._id);
6092
6092
  return [
6093
6093
  ...j.filter((te) => !ne.includes(te._id)),
6094
6094
  ...Object.values($).flatMap((te) => te)
6095
6095
  ];
6096
6096
  }
6097
- return J && O ? (J.override.scheduler = {
6098
- ...J.override.scheduler,
6097
+ return Q && O ? (Q.override.scheduler = {
6098
+ ...Q.override.scheduler,
6099
6099
  [O]: {
6100
- ...J.override.scheduler[O],
6100
+ ...Q.override.scheduler[O],
6101
6101
  _id: O,
6102
- items: Q(U == null ? void 0 : U.items).map((j) => ({
6102
+ items: J(U == null ? void 0 : U.items).map((j) => ({
6103
6103
  ...j,
6104
6104
  orderFrom: B.F_ORDER_FROM.enum.ALL
6105
6105
  }))
6106
6106
  }
6107
- }, R.modules.catalog = [...z, J], R) : J ? (J.override.items = {
6108
- ...J.override.items,
6107
+ }, R.modules.catalog = [...z, Q], R) : Q ? (Q.override.items = {
6108
+ ...Q.override.items,
6109
6109
  ...$
6110
- }, R.modules.catalog = [...z, J], R) : U ? (U.items = Q(U.items), R.modules.scheduler = [
6110
+ }, R.modules.catalog = [...z, Q], R) : U ? (U.items = J(U.items), R.modules.scheduler = [
6111
6111
  ...R.modules.scheduler.filter((j) => j._id !== O),
6112
6112
  U
6113
6113
  ], R) : {
@@ -6167,10 +6167,10 @@ const dn = Vn("item-manager", () => {
6167
6167
  _id: x
6168
6168
  }, R = (G = O == null ? void 0 : O.items) == null ? void 0 : G.filter((Y) => Y._id === f._id);
6169
6169
  await p(f, R, async (Y) => {
6170
- const J = Y.modules.catalog.find(
6170
+ const Q = Y.modules.catalog.find(
6171
6171
  (z) => z._id === v._id
6172
6172
  );
6173
- await new De(J, e, a.updateMenu, t).update();
6173
+ await new De(Q, e, a.updateMenu, t).update();
6174
6174
  });
6175
6175
  }
6176
6176
  async function g(f) {
@@ -6195,10 +6195,10 @@ const dn = Vn("item-manager", () => {
6195
6195
  }
6196
6196
  async function _(f) {
6197
6197
  var R, G;
6198
- const v = e.state.currentSchedulerId, x = ae(e.currentCatalog), O = (G = ((R = x.override.scheduler[v]) == null ? void 0 : R.items) || []) == null ? void 0 : G.reduce((Y, J) => {
6199
- if (J.combinationKey) return [...Y, J];
6200
- const z = f.find((U) => U._id === J._id);
6201
- return z ? [...Y, { ...J, price: z.price }] : [...Y, J];
6198
+ const v = e.state.currentSchedulerId, x = ae(e.currentCatalog), O = (G = ((R = x.override.scheduler[v]) == null ? void 0 : R.items) || []) == null ? void 0 : G.reduce((Y, Q) => {
6199
+ if (Q.combinationKey) return [...Y, Q];
6200
+ const z = f.find((U) => U._id === Q._id);
6201
+ return z ? [...Y, { ...Q, price: z.price }] : [...Y, Q];
6202
6202
  }, []);
6203
6203
  x.override.scheduler = {
6204
6204
  ...x.override.scheduler,
@@ -6212,13 +6212,13 @@ const dn = Vn("item-manager", () => {
6212
6212
  async function C(f) {
6213
6213
  var R;
6214
6214
  const v = ae(e.currentCatalog), x = (R = Object.entries(v.override.items)) == null ? void 0 : R.reduce(
6215
- (G, [Y, J]) => {
6215
+ (G, [Y, Q]) => {
6216
6216
  const z = f.find(($) => $._id === Y);
6217
6217
  if (!z)
6218
- return G[Y] = J, G;
6219
- const U = J.find(($) => !$.combinationKey);
6218
+ return G[Y] = Q, G;
6219
+ const U = Q.find(($) => !$.combinationKey);
6220
6220
  return G[Y] = [
6221
- ...J.filter(($) => !!$.combinationKey),
6221
+ ...Q.filter(($) => !!$.combinationKey),
6222
6222
  {
6223
6223
  ...U,
6224
6224
  code: z.code || void 0,