@feedmepos/mf-menu 0.32.7-beta.2 → 0.32.7-dev

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 (87) hide show
  1. package/dist/{App-BIQ0CTci.js → App-DCkQc7e4.js} +98 -98
  2. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js +161 -0
  3. package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +74 -0
  4. package/dist/{Catalog-D2wc24o8.js → Catalog-CUPoRid3.js} +9 -9
  5. package/dist/{Category-DA5-55d2.js → Category-BkvhZ57Y.js} +7 -7
  6. package/dist/{Category-BPufryqK.js → Category-Cdw0ikhP.js} +4 -4
  7. package/dist/{CookingGuide-DKvou40e.js → CookingGuide-BZ-4oULM.js} +6 -6
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DHoAYdGI.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js} +3 -3
  9. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +26 -0
  10. package/dist/{Group-D60oAvmM.js → Group-C1FaXdUb.js} +1 -1
  11. package/dist/{Group-Bgpc6qE1.js → Group-Cec83DWm.js} +4 -4
  12. package/dist/{Group.vue_vue_type_script_setup_true_lang-BXn3--BL.js → Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js} +128 -128
  13. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BD9IZkwW.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js} +91 -91
  14. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BE3LdBYY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js} +3225 -3225
  15. package/dist/{Ingredient-Brv4hml-.js → Ingredient-DulL8h2B.js} +29 -29
  16. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIOX-pq1.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js} +104 -104
  17. package/dist/{LinkProductSideSheet-BDMbKJ8o.js → LinkProductSideSheet-Br2eE8pC.js} +251 -251
  18. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +69 -0
  19. package/dist/{MenuSetting-DvCu23my.js → MenuSetting-DxW4LCW4.js} +77 -77
  20. package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js → PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js} +8 -8
  21. package/dist/{PrintRoute-DwgLKDUV.js → PrintRoute-Da6Zkx-0.js} +5 -5
  22. package/dist/{Product-EmoWM778.js → Product-Cs76t18_.js} +1 -1
  23. package/dist/{Product.vue_vue_type_script_setup_true_lang-5HyO_RYw.js → Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js} +606 -606
  24. package/dist/{ProductInternalTools-PqzouaF2.js → ProductInternalTools-DPbeRvTM.js} +10 -10
  25. package/dist/{Products-ZgfTT9dI.js → Products--7dGfuuT.js} +52 -52
  26. package/dist/{Publish-CUdRwmN1.js → Publish-COmZtiyX.js} +5 -5
  27. package/dist/{Recipe-BRUxyire.js → Recipe-BaN_1zrP.js} +5 -5
  28. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CPFGkaTr.js → RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js} +451 -448
  29. package/dist/{Scheduler-BXdZh-xC.js → Scheduler-BSUpIAaK.js} +4 -4
  30. package/dist/{ServingSequence-EAZHOHiy.js → ServingSequence-dXBb7e5d.js} +4 -4
  31. package/dist/{Setting-BRut_Xj0.js → Setting-CalEQW0n.js} +6 -6
  32. package/dist/{Subcategory-D6Yrs-vO.js → Subcategory-zPHtX7Vc.js} +5 -5
  33. package/dist/{Takeaway-Bi8JfDWa.js → Takeaway-CRDj2Bpe.js} +5 -5
  34. package/dist/{Takeaway-CRdlNTu7.js → Takeaway-CcnmeTmu.js} +1 -1
  35. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DKQZ9J8Z.js → Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js} +5 -5
  36. package/dist/{TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js → TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js} +5 -5
  37. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DDWk-WUW.js → Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js} +74 -74
  38. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js +6038 -0
  39. package/dist/{Unit-Ccs_k5IS.js → Unit-C7-Oj5S3.js} +3 -3
  40. package/dist/{Variant-BHmgMXq7.js → Variant-CYiMkE0q.js} +4 -4
  41. package/dist/{_id_-DSSoi4Gy.js → _id_-D75ZcNlf.js} +11 -11
  42. package/dist/{app-CzXxFrl1.js → app-5fxKLAzS.js} +447 -447
  43. package/dist/{app-C8Dm2-h4.js → app-BhLVpUSl.js} +35 -35
  44. package/dist/{app-B9seAt5l.js → app-DzVMOviz.js} +1 -1
  45. package/dist/app.js +1 -1
  46. package/dist/apps/mf-menu/src/app.d.ts +20 -0
  47. package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
  48. package/dist/apps/mf-menu/src/components/feature/MenuSelector.vue.d.ts +1 -1
  49. package/dist/apps/mf-menu/src/components/feature/SubcategoryManager/SubcategorySelector.vue.d.ts +1 -1
  50. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +2 -1
  51. package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
  52. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  53. package/dist/assets/linked-status-BoIPm5hC.js +13 -0
  54. package/dist/assets/override-menu-DfTrwWpR.js +13 -0
  55. package/dist/assets/validate-menu-BhWvQ3T9.js +13 -0
  56. package/dist/{catalog-CD-fdGdY.js → catalog-CudNSsIP.js} +1 -1
  57. package/dist/{catalogSetting-Ci85lXor.js → catalogSetting-BVHO9tK3.js} +1 -1
  58. package/dist/{category-6NAH0dUF.js → category-BQpgz1lk.js} +1 -1
  59. package/dist/{currency-BP_z7R5d.js → currency-BfS7H2KE.js} +1 -1
  60. package/dist/{index-BLMijxTj.js → index-BHdPJta4.js} +91 -91
  61. package/dist/{index-C1XCbqC-.js → index-DmGJvREM.js} +56 -56
  62. package/dist/{index-Cftm4-G_.js → index-DuLXS699.js} +5 -5
  63. package/dist/{index-DgDQzkPR.js → index-aaoziUNI.js} +30 -30
  64. package/dist/{index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js → index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js} +40026 -40153
  65. package/dist/item-BtKW0wdj.js +7685 -0
  66. package/dist/{iteration-ZG64Re91.js → iteration-CaliNodx.js} +1 -1
  67. package/dist/{jszip.min-BETdv0rh.js → jszip.min-DXbkmgRD.js} +102 -102
  68. package/dist/{menu-COMXycAe.js → menu-D-lUEuvX.js} +1 -1
  69. package/dist/{menuV2-CeRS0Jw3.js → menuV2-D-6O36DO.js} +357 -348
  70. package/dist/mf-menu.css +1 -1
  71. package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
  72. package/dist/{priceTier-t2T3Q87F.js → priceTier-DKnYaOA9.js} +1 -1
  73. package/dist/{scheduler-BbJUVuiK.js → scheduler-DEwfbYPL.js} +7 -7
  74. package/dist/{subcategory-61kOQh4g.js → subcategory-CQKklgcd.js} +2 -2
  75. package/dist/{toExcel-DIYaK18-.js → toExcel-CRwL-QqF.js} +2 -2
  76. package/dist/{unit-B6StucsI.js → unit-BzM1rmN7.js} +151 -151
  77. package/dist/{vuedraggable-DnBIRDMr.js → vuedraggable-CK8z7qA8.js} +2 -2
  78. package/package.json +3 -2
  79. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-BpEjqhAC.js +0 -161
  80. package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js +0 -74
  81. package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +0 -26
  82. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-Bm_hSelC.js +0 -69
  83. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-JdHaBpaX.js +0 -5997
  84. package/dist/assets/linked-status-Cuf8X8_g.js +0 -13
  85. package/dist/assets/override-menu-yxQLf82k.js +0 -13
  86. package/dist/assets/validate-menu-BwbenBs6.js +0 -13
  87. package/dist/item-ByEPWjef.js +0 -6819
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as Z, ref as v, computed as $, resolveComponent as W, createElementBlock as c, openBlock as r, createElementVNode as s, createVNode as I, unref as h, createCommentVNode as T, normalizeClass as E, toDisplayString as U, createStaticVNode as B, Fragment as P, renderList as R, createBlock as oe, withCtx as A } from "vue";
2
- import { J as O, F as ne } from "./jszip.min-BETdv0rh.js";
3
- import { D as le, u as ie, I as D, $ as re, K as ce, M as de, N as me } from "./index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js";
2
+ import { J as O, F as ne } from "./jszip.min-DXbkmgRD.js";
3
+ import { D as le, u as ie, I as D, $ as re, K as ce, M as de, N as me } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
4
4
  import { useI18n as ue } from "@feedmepos/mf-common";
5
5
  import { FmButtonVariant as z, useSnackbar as V, useDialog as pe, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
6
- import { _ as ge } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
7
- import { u as fe, a as he } from "./menu-COMXycAe.js";
8
- import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-5HyO_RYw.js";
6
+ import { _ as ge } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
+ import { u as fe, a as he } from "./menu-D-lUEuvX.js";
8
+ import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js";
9
9
  import { p as be } from "./tooltip-CQW9YRO5.js";
10
- import { s as ve, t as _e } from "./item-ByEPWjef.js";
10
+ import { t as ve, v as _e } from "./item-BtKW0wdj.js";
11
11
  const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center justify-between p-16 border-b border-gray-200" }, Ie = { class: "flex gap-8" }, ke = { class: "border-b border-gray-200" }, Ce = { class: "flex" }, Ue = { class: "flex-1 overflow-hidden" }, je = {
12
12
  key: 0,
13
13
  class: "h-full flex flex-col"
@@ -84,9 +84,9 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
84
84
  ]),
85
85
  s("div", Ue, [
86
86
  y.value === "matched" ? (r(), c("div", je, [
87
- b.value === 0 ? (r(), c("div", Fe, [...l[3] || (l[3] = [
87
+ b.value === 0 ? (r(), c("div", Fe, l[3] || (l[3] = [
88
88
  B('<div class="text-center text-gray-500"><svg class="mx-auto h-48 w-48 text-gray-400 mb-16" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg><p class="fm-typo-en-body-lg text-gray-500">No matched images found</p><p class="fm-typo-en-body-sm text-gray-400 mt-4"> Make sure your image filenames match product names </p></div>', 1)
89
- ])])) : (r(), c("div", Me, [
89
+ ]))) : (r(), c("div", Me, [
90
90
  l[4] || (l[4] = s("div", { class: "grid grid-cols-3 gap-16 pb-12 border-b border-gray-200 mb-16" }, [
91
91
  s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Product Name"),
92
92
  s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Current Image"),
@@ -121,9 +121,9 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
121
121
  ])
122
122
  ]))
123
123
  ])) : y.value === "unmatched" ? (r(), c("div", Re, [
124
- k.value === 0 ? (r(), c("div", Ae, [...l[5] || (l[5] = [
124
+ k.value === 0 ? (r(), c("div", Ae, l[5] || (l[5] = [
125
125
  B('<div class="text-center text-gray-500"><svg class="mx-auto h-48 w-48 text-gray-400 mb-16" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg><p class="fm-typo-en-body-lg text-gray-500">All images matched!</p><p class="fm-typo-en-body-sm text-gray-400 mt-4">No unmatched images found</p></div>', 1)
126
- ])])) : (r(), c("div", Oe, [
126
+ ]))) : (r(), c("div", Oe, [
127
127
  l[6] || (l[6] = s("div", { class: "grid grid-cols-2 gap-16 pb-12 border-b border-gray-200 mb-16" }, [
128
128
  s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Filename"),
129
129
  s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Image")
@@ -1,23 +1,23 @@
1
1
  var de = Object.defineProperty;
2
- var pe = (v, e, n) => e in v ? de(v, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : v[e] = n;
3
- var K = (v, e, n) => pe(v, typeof e != "symbol" ? e + "" : e, n);
2
+ var pe = (C, e, n) => e in C ? de(C, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : C[e] = n;
3
+ var K = (C, e, n) => pe(C, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { defineComponent as j, computed as D, ref as oe, resolveComponent as $, createBlock as N, openBlock as T, unref as l, withCtx as E, createElementVNode as S, toDisplayString as ae, createVNode as _, createCommentVNode as re, createElementBlock as B, Fragment as H } from "vue";
5
- import { D as V } from "./iteration-ZG64Re91.js";
6
- import { m as A, A as O, f as g, a as L, b as J, e as P, n as U, w as fe } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BE3LdBYY.js";
7
- import { J as be, F as he } from "./jszip.min-BETdv0rh.js";
8
- import { u as ne, D as ie, A as z, G as q, z as se, B as ge, H as X, I as Z } from "./index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js";
5
+ import { D as V } from "./iteration-CaliNodx.js";
6
+ import { m as A, A as O, f as g, a as L, b as J, e as P, n as U, w as fe } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js";
7
+ import { J as be, F as he } from "./jszip.min-DXbkmgRD.js";
8
+ import { u as ne, D as ie, A as z, G as q, z as se, B as ge, H as X, I as Z } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
9
9
  import { useCoreStore as ce, useI18n as ye } from "@feedmepos/mf-common";
10
10
  import { useDialog as me, useDialogChild as _e, useSnackbar as le, useBreakpoints as ke, FmButtonVariant as Y, FmButtonColorThemeVariant as G } from "@feedmepos/ui-library";
11
11
  import { _ as W } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
12
- import { _ as ve, a as Q } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js";
13
- import { _ as we } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
14
- import { u as xe, a as Ce } from "./menu-COMXycAe.js";
15
- import { u as Fe } from "./item-ByEPWjef.js";
16
- import { _ as ee, a as Me } from "./Product.vue_vue_type_script_setup_true_lang-5HyO_RYw.js";
17
- import { L as te } from "./LinkProductSideSheet-BDMbKJ8o.js";
18
- import { _ as Ie } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-JdHaBpaX.js";
19
- import { u as Se } from "./Thumbnail.vue_vue_type_script_setup_true_lang-DDWk-WUW.js";
20
- import { m as Ee } from "./toExcel-DIYaK18-.js";
12
+ import { _ as ve, a as Q } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
13
+ import { _ as we } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
14
+ import { u as xe, a as Ce } from "./menu-D-lUEuvX.js";
15
+ import { u as Fe } from "./item-BtKW0wdj.js";
16
+ import { _ as ee, a as Me } from "./Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js";
17
+ import { L as te } from "./LinkProductSideSheet-Br2eE8pC.js";
18
+ import { _ as Ie } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js";
19
+ import { u as Se } from "./Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js";
20
+ import { m as Ee } from "./toExcel-CRwL-QqF.js";
21
21
  const Te = { class: "space-y-24 mb-24" }, De = ["innerHTML"], Ne = { class: "flex justify-end gap-8" }, Ke = /* @__PURE__ */ j({
22
22
  __name: "ConfirmActionDialog",
23
23
  props: {
@@ -25,8 +25,8 @@ const Te = { class: "space-y-24 mb-24" }, De = ["innerHTML"], Ne = { class: "fle
25
25
  value: {},
26
26
  message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
27
27
  },
28
- setup(v) {
29
- const e = v, n = D(() => e.message.replace("[[value]]", e.value)), i = oe(""), t = me(), { emitAction: o } = _e();
28
+ setup(C) {
29
+ const e = C, n = D(() => e.message.replace("[[value]]", e.value)), i = oe(""), t = me(), { emitAction: o } = _e();
30
30
  return (r, a) => {
31
31
  const m = $("FmTextField"), c = $("FmButton"), u = $("FmForm");
32
32
  return T(), N(u, {
@@ -35,7 +35,7 @@ const Te = { class: "space-y-24 mb-24" }, De = ["innerHTML"], Ne = { class: "fle
35
35
  }, {
36
36
  default: E(() => [
37
37
  S("div", Te, [
38
- S("div", null, ae(v.description), 1),
38
+ S("div", null, ae(r.description), 1),
39
39
  S("div", { innerHTML: n.value }, null, 8, De),
40
40
  S("div", null, [
41
41
  _(m, {
@@ -45,8 +45,8 @@ const Te = { class: "space-y-24 mb-24" }, De = ["innerHTML"], Ne = { class: "fle
45
45
  a[1] || (a[1] = () => {
46
46
  })
47
47
  ],
48
- placeholder: v.value,
49
- rules: [(s) => s === v.value || "Value does not match"]
48
+ placeholder: r.value,
49
+ rules: [(s) => s === r.value || "Value does not match"]
50
50
  }, null, 8, ["modelValue", "placeholder", "rules"])
51
51
  ]),
52
52
  S("div", Ne, [
@@ -68,7 +68,7 @@ const Te = { class: "space-y-24 mb-24" }, De = ["innerHTML"], Ne = { class: "fle
68
68
  }
69
69
  }), Ge = /* @__PURE__ */ j({
70
70
  __name: "Migrate",
71
- setup(v) {
71
+ setup(C) {
72
72
  const e = ne(), n = ce(), i = le(), { minor: t } = ie(i), o = oe(!1), r = me();
73
73
  async function a() {
74
74
  m.value || o.value || r.open({
@@ -163,7 +163,7 @@ class Ve {
163
163
  ), c = t[r._id] || [], u = m.filter((d) => !c.includes(d)), s = [];
164
164
  if (u.forEach((d) => {
165
165
  const f = a.variant.variantCombinations.find(
166
- (w) => w.combinationKey === d
166
+ (v) => v.combinationKey === d
167
167
  );
168
168
  f && (s.push({
169
169
  _id: r._id,
@@ -172,7 +172,7 @@ class Ve {
172
172
  orderFrom: f.orderFrom
173
173
  }), t[r._id].push(d));
174
174
  }), s.length > 0) {
175
- const d = e.findIndex((w) => w._id === r._id && !w.combinationKey), f = d >= 0 ? d + 1 : o + 1;
175
+ const d = e.findIndex((v) => v._id === r._id && !v.combinationKey), f = d >= 0 ? d + 1 : o + 1;
176
176
  e.splice(f, 0, ...s), o += s.length;
177
177
  }
178
178
  }
@@ -292,7 +292,7 @@ class Ve {
292
292
  throw new Error("Invalid addon group id");
293
293
  const r = {};
294
294
  return o.items.map((a, m) => {
295
- var b, C, F;
295
+ var b, x, F;
296
296
  const c = this.menu.modules.item.find((h) => h._id === a._id);
297
297
  if (!c)
298
298
  throw new Error("Invalid item id");
@@ -300,12 +300,12 @@ class Ve {
300
300
  a.combinationKey && (u = (b = c.variant) == null ? void 0 : b.variantCombinations.find(
301
301
  (h) => h.combinationKey === a.combinationKey
302
302
  ));
303
- const s = (C = t.items) == null ? void 0 : C.find(
303
+ const s = (x = t.items) == null ? void 0 : x.find(
304
304
  (h) => h._id === a._id && h.combinationKey === a.combinationKey
305
305
  ), d = c.name, f = A(
306
306
  this.menu,
307
307
  ((F = c.variant) == null ? void 0 : F.variantGroupIds) ?? []
308
- ), w = (s == null ? void 0 : s.price) ?? a.price ?? (u == null ? void 0 : u.price) ?? c.price;
308
+ ), v = (s == null ? void 0 : s.price) ?? a.price ?? (u == null ? void 0 : u.price) ?? c.price;
309
309
  return a.name && !a.combinationKey && (r[a._id] = a.name), {
310
310
  id: t._id,
311
311
  name: o.name,
@@ -318,7 +318,7 @@ class Ve {
318
318
  itemNameOverrider: r[a._id] || "",
319
319
  combinationKey: a.combinationKey ?? "",
320
320
  combinationName: a.combinationKey ? f[a.combinationKey] : "",
321
- price: parseFloat(g(w)),
321
+ price: parseFloat(g(v)),
322
322
  priceTier: a.priceTiers || {},
323
323
  orderFrom: (s == null ? void 0 : s.orderFrom) ?? a.orderFrom ?? c.orderFrom ?? "ALL",
324
324
  isDefault: a.isDefault === !0 ? "T" : "",
@@ -382,10 +382,10 @@ class Ve {
382
382
  }), e;
383
383
  }
384
384
  exportToExcel() {
385
- var w;
385
+ var v;
386
386
  const e = [], { rows: n, metaData: i } = this.transformData();
387
- i.priceTiers = ((w = this.menu.priceTierSettings) == null ? void 0 : w.map((b) => b.key)) || [];
388
- const t = n.map(({ priceTier: b, tag: C, ...F }) => {
387
+ i.priceTiers = ((v = this.menu.priceTierSettings) == null ? void 0 : v.map((b) => b.key)) || [];
388
+ const t = n.map(({ priceTier: b, tag: x, ...F }) => {
389
389
  const h = Object.entries(F), M = h.findIndex(([y]) => y === "price");
390
390
  return [
391
391
  ...h.slice(0, M + 1).map(([, y]) => y),
@@ -393,7 +393,7 @@ class Ve {
393
393
  (y) => parseFloat(g(b[y])) || ""
394
394
  ),
395
395
  ...h.slice(M + 1).map(([, y]) => y),
396
- ...this.attributeSettings.map((y) => C[y.key] || "")
396
+ ...this.attributeSettings.map((y) => x[y.key] || "")
397
397
  ];
398
398
  }), o = this.createWorkbookExcelJS(
399
399
  t,
@@ -401,8 +401,8 @@ class Ve {
401
401
  this.exportCatalogToExcelExcelJS()
402
402
  ), r = o.worksheets[0];
403
403
  L(r, this.attributeSettings, i.priceTiers), this.formatWorkbookCell(o);
404
- const m = this.transformAddonGroup().map(({ priceTier: b, ...C }) => {
405
- const { index: F, ...h } = C, M = Object.entries(h), y = M.findIndex(([p]) => p === "price");
404
+ const m = this.transformAddonGroup().map(({ priceTier: b, ...x }) => {
405
+ const { index: F, ...h } = x, M = Object.entries(h), y = M.findIndex(([p]) => p === "price");
406
406
  return [
407
407
  ...M.slice(0, y + 1).map(([, p]) => p),
408
408
  ...i.priceTiers.map(
@@ -418,10 +418,10 @@ class Ve {
418
418
  J(u, i.priceTiers), this.formatWorkbookCell(c);
419
419
  const s = this.transformItemsLinkWithGroup(), d = Object.keys(s), f = new P.Workbook();
420
420
  if (d.length > 0)
421
- d.forEach((b, C) => {
421
+ d.forEach((b, x) => {
422
422
  const F = Object.values(s[b]), h = this.menu.modules.group.find((p) => p._id === b);
423
423
  if (!h) throw new Error(`Group not found for id: ${b}`);
424
- const M = U(`${C + 1}. ${h.name}`), y = f.addWorksheet(M);
424
+ const M = U(`${x + 1}. ${h.name}`), y = f.addWorksheet(M);
425
425
  y.columns = [
426
426
  { header: "Group ID", key: "groupId" },
427
427
  { header: "Item ID", key: "itemId" },
@@ -515,20 +515,20 @@ class Ve {
515
515
  }
516
516
  const $e = { class: "flex-1 flex justify-between gap-8 pl-8" }, Re = { class: "flex items-center" }, Ae = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Pe = { class: "fm-typo-en-body-md-600 font-semibold" }, Oe = { class: "flex gap-8" }, nt = /* @__PURE__ */ j({
517
517
  __name: "Products",
518
- setup(v) {
518
+ setup(C) {
519
519
  const { t: e } = ye(), n = ce(), i = ie(le()), t = ne(), o = D(() => t.rules.item), r = Fe(), a = D(() => !t.state.currentSchedulerId), { selectedCategories: m } = xe(), c = D(() => ({
520
520
  ...ge.menuV4ToV3(X(t.state.menu)),
521
521
  _id: t.state.menu._id,
522
522
  _rev: t.state.menu._rev
523
523
  })), u = D(() => {
524
- const p = Z.flatten(m.value.map((x) => x.items));
525
- return Z.uniqBy(p, (x) => x._id).length;
524
+ const p = Z.flatten(m.value.map((w) => w.items));
525
+ return Z.uniqBy(p, (w) => w._id).length;
526
526
  });
527
- async function s(p, x) {
527
+ async function s(p, w) {
528
528
  const I = new be();
529
529
  for (let R = 0; R < p.length; R++) {
530
530
  const ue = await p[R].xlsx.writeBuffer();
531
- I.file(`${x[R]}.xlsx`, ue);
531
+ I.file(`${w[R]}.xlsx`, ue);
532
532
  }
533
533
  const k = await I.generateAsync({ type: "blob" });
534
534
  he.saveAs(k, `books_${V().format("DD-MM-YYYY_HH-mm")}.zip`);
@@ -538,8 +538,8 @@ const $e = { class: "flex-1 flex justify-between gap-8 pl-8" }, Re = { class: "f
538
538
  async () => {
539
539
  var p;
540
540
  if (await t.readMenu(), t.version === se.F_MENU_VERSION.enum.v4) {
541
- const x = X(t.state.menu), I = new Ve(
542
- x,
541
+ const w = X(t.state.menu), I = new Ve(
542
+ w,
543
543
  ((p = n.currentBusiness.value) == null ? void 0 : p.attributeSettings) ?? []
544
544
  ).exportToExcel(), k = [
545
545
  `menu_${V().format("DD-MM-YYYY_HH-mm")}`,
@@ -548,8 +548,8 @@ const $e = { class: "flex-1 flex justify-between gap-8 pl-8" }, Re = { class: "f
548
548
  ];
549
549
  s(I, k);
550
550
  } else {
551
- const x = Ee(c.value), I = `menu_${V().format("DD-MM-YYYY_HH-mm")}`;
552
- await fe(x, `${I}.xlsx`, {
551
+ const w = Ee(c.value), I = `menu_${V().format("DD-MM-YYYY_HH-mm")}`;
552
+ await fe(w, `${I}.xlsx`, {
553
553
  bookType: "xlsx",
554
554
  bookSST: !1,
555
555
  type: "array"
@@ -561,13 +561,13 @@ const $e = { class: "flex-1 flex justify-between gap-8 pl-8" }, Re = { class: "f
561
561
  }
562
562
  const {
563
563
  menuItems: f,
564
- categories: w,
564
+ categories: v,
565
565
  linkItemRules: b,
566
- handleSubmit: C,
566
+ handleSubmit: x,
567
567
  catalogManager: F,
568
568
  schedulerManager: h
569
569
  } = Se(!1), M = ke(), y = D(() => M.breakpoints.value.xs);
570
- return Ce().resetOnMount(), (p, x) => {
570
+ return Ce().resetOnMount(), (p, w) => {
571
571
  const I = $("fm-button");
572
572
  return T(), N(we, {
573
573
  heading: l(e)("menu.products.title")
@@ -639,17 +639,17 @@ const $e = { class: "flex-1 flex justify-between gap-8 pl-8" }, Re = { class: "f
639
639
  key: 0,
640
640
  label: l(e)("menu.products.actions.add"),
641
641
  "prepend-icon": "add",
642
- onClick: x[0] || (x[0] = (k) => l(r).create(null))
642
+ onClick: w[0] || (w[0] = (k) => l(r).create(null))
643
643
  }, null, 8, ["label"])) : a.value ? (T(), N(te, {
644
644
  key: 1,
645
645
  "categorized-items": l(F).linkableItems.value,
646
646
  "initial-value": l(F).currentItems.value,
647
647
  "show-variant": !1,
648
648
  "menu-items": l(f),
649
- categories: l(w),
649
+ categories: l(v),
650
650
  "link-item-rules": l(b),
651
651
  "no-scheduler": a.value,
652
- onSubmit: l(C)
652
+ onSubmit: l(x)
653
653
  }, {
654
654
  default: E(({ trigger: k }) => [
655
655
  _(W, {
@@ -665,10 +665,10 @@ const $e = { class: "flex-1 flex justify-between gap-8 pl-8" }, Re = { class: "f
665
665
  "initial-value": l(h).currentItems.value,
666
666
  "show-variant": !1,
667
667
  "menu-items": l(f),
668
- categories: l(w),
668
+ categories: l(v),
669
669
  "link-item-rules": l(b),
670
670
  "no-scheduler": a.value,
671
- onSubmit: l(C)
671
+ onSubmit: l(x)
672
672
  }, {
673
673
  default: E(({ trigger: k }) => [
674
674
  _(W, {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as G, ref as V, computed as R, onMounted as re, resolveComponent as w, createElementBlock as U, openBlock as y, createVNode as i, createElementVNode as o, toDisplayString as A, unref as r, Fragment as O, renderList as W, createBlock as T, withCtx as L, createCommentVNode as ce, withModifiers as N, h as Y } from "vue";
2
- import { D as ae, c as de } from "./iteration-ZG64Re91.js";
2
+ import { D as ae, c as de } from "./iteration-CaliNodx.js";
3
3
  import { useRouter as me } from "vue-router";
4
- import { O as pe, b as ge } from "./app-CzXxFrl1.js";
5
- import { A as be, G as ve, D as te, ab as fe, H as Z, I as _e, u as he, z as ye, a3 as Ce } from "./index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js";
4
+ import { O as pe, b as ge } from "./app-5fxKLAzS.js";
5
+ import { A as be, G as ve, D as te, ab as fe, H as Z, I as _e, u as he, z as ye, a3 as Ce } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
6
6
  import { useI18n as J, useCoreStore as ke, RestaurantSelector as we } from "@feedmepos/mf-common";
7
7
  import { useSnackbar as le, useDialogChild as xe, useDialog as Ve, components as ee } from "@feedmepos/ui-library";
8
- import { _ as Se } from "./TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js";
9
- import { _ as Fe } from "./app-C8Dm2-h4.js";
8
+ import { _ as Se } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
9
+ import { _ as Fe } from "./app-BhLVpUSl.js";
10
10
  import { a as Ie, w as Ae, p as Me } from "./tooltip-CQW9YRO5.js";
11
11
  import { u as $e } from "./discardConfirm-BHni0LNu.js";
12
12
  function se(S) {
@@ -2,14 +2,14 @@ import { defineComponent as z, computed as h, ref as w, reactive as Q, watch as
2
2
  import { useI18n as U } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as $, components as j, useDialog as ne, FmButtonVariant as G, useBreakpoints as oe } from "@feedmepos/ui-library";
4
4
  import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as le } from "./app-C8Dm2-h4.js";
6
- import { O as q, D as A, H as ie, B as P, I as se, G as B, J as I, z as T, u as H, a3 as re } from "./index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js";
7
- import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
5
+ import { _ as le } from "./app-BhLVpUSl.js";
6
+ import { O as q, D as A, H as ie, B as P, I as se, G as B, J as I, z as T, u as H, a3 as re } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
7
+ import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
8
8
  import { defineStore as ue } from "pinia";
9
- import { _ as Y, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-CIOX-pq1.js";
9
+ import { _ as Y, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js";
10
10
  import { u as de } from "./discardConfirm-BHni0LNu.js";
11
11
  import { c as pe } from "./check-C9mY6LiX.js";
12
- import "./unit-B6StucsI.js";
12
+ import "./unit-BzM1rmN7.js";
13
13
  import { c as fe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
14
14
  const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ z({
15
15
  __name: "Form",