@feedmepos/mf-menu 0.31.18-prod → 0.31.19-beta

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 (68) hide show
  1. package/dist/{App-CA9Sl2_e.js → App-y2Q2D6AO.js} +2400 -1296
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DXC06G_p.js → ApplyProduct.vue_vue_type_script_setup_true_lang-XV96dt6h.js} +2 -2
  3. package/dist/{Catalog-DO0Z3SSz.js → Catalog-Di-YSP-w.js} +5 -5
  4. package/dist/{Category-B1kXrXpy.js → Category-BzydRf7k.js} +21 -21
  5. package/dist/{Category-DTh_5WI5.js → Category-CAccN9m6.js} +8 -8
  6. package/dist/{CookingGuide-eHhSbisd.js → CookingGuide-BQcVxx1R.js} +66 -66
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DKGEMS0s.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BjUqhzCZ.js} +1 -1
  8. package/dist/{Group-Bd61FXOa.js → Group-B8TuooWf.js} +3 -3
  9. package/dist/{Group-Dh5RNyxf.js → Group-CAV74Npz.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-p3ZeU8Ad.js → Group.vue_vue_type_script_setup_true_lang-ClnFek9W.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CuR3HOn4.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DsC5e95X.js} +3 -3
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BjwTTR43.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DV0-XcfW.js} +3078 -3074
  13. package/dist/{Ingredient-BLfFgX0g.js → Ingredient-DMLmjp-1.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C2f4oQV_.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C0tjGp89.js} +2 -2
  15. package/dist/{LinkProductSideSheet-DPIxXikN.js → LinkProductSideSheet-DIvOzMB8.js} +1 -1
  16. package/dist/{MenuSetting-UVUYswl1.js → MenuSetting-C5sIpDMN.js} +16 -16
  17. package/dist/{PrintRoute-B4WpCa5j.js → PrintRoute-NHoHTnMc.js} +26 -26
  18. package/dist/{Product-DMqUEuUP.js → Product-C2SOvPy4.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DvqDdaNh.js → Product.vue_vue_type_script_setup_true_lang-BEHnUKcc.js} +62 -59
  20. package/dist/{ProductInternalTools-BjQILwqA.js → ProductInternalTools-eXFZoo1G.js} +14 -14
  21. package/dist/{Products-BR612MbF.js → Products-3J5DcGEc.js} +15 -15
  22. package/dist/{Publish-HQprte7i.js → Publish-BdWd54a5.js} +32 -32
  23. package/dist/{Recipe-CW8DpUib.js → Recipe-DrNJifKH.js} +9 -9
  24. package/dist/{Scheduler-jwxuWWBc.js → Scheduler-OLKgjhjM.js} +3 -3
  25. package/dist/{ServingSequence-DILOiy8d.js → ServingSequence-DZ-eaRkW.js} +25 -25
  26. package/dist/{Setting-DtHcu5eE.js → Setting-t5Edfa6F.js} +10 -10
  27. package/dist/{Subcategory-BuBhmpHK.js → Subcategory-B1BeXahn.js} +18 -18
  28. package/dist/{Takeaway-CFH-2jGX.js → Takeaway-CS31a0G6.js} +1 -1
  29. package/dist/{Takeaway-Dadg_p4p.js → Takeaway-q69U7AjK.js} +10 -10
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Ccm340Do.js → Takeaway.vue_vue_type_script_setup_true_lang-CNheVEqy.js} +17 -17
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BO_RY7Nb.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-0kXXOsyC.js} +356 -352
  32. package/dist/{Unit-BhC7HKdj.js → Unit-R0fBKDBQ.js} +8 -8
  33. package/dist/{Variant-op1jI8lu.js → Variant-DdIfbckf.js} +8 -8
  34. package/dist/{_id_-C8aH00wO.js → _id_-Cpxz3UoN.js} +17 -17
  35. package/dist/{app-CgdrcHjA.js → app-CMGlnsG5.js} +24 -24
  36. package/dist/{app-DTuhoxK_.js → app-DRorRq_c.js} +1 -1
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/components/Announcements.vue.d.ts +19 -0
  39. package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +1 -1
  40. package/dist/apps/mf-menu/src/helper/menu.d.ts +1 -1
  41. package/dist/apps/mf-menu/src/stores/announcement/announcement.d.ts +11 -0
  42. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/assets/linked-status-CdVNB55V.js +24 -0
  44. package/dist/assets/override-menu-CjvOi-J-.js +24 -0
  45. package/dist/assets/validate-menu-BU_-Jge5.js +24 -0
  46. package/dist/{catalog-C_ivwYaQ.js → catalog-BXSv7rZo.js} +1 -1
  47. package/dist/{catalogSetting-DZueIrzX.js → catalogSetting-DhXLcwI_.js} +1 -1
  48. package/dist/{category-B3iKQFQ-.js → category-LHZTSH3_.js} +1 -1
  49. package/dist/{currency-CA5FQbXi.js → currency-C05JOYSJ.js} +1 -1
  50. package/dist/{dayjs.min-B5JdMy-O.js → dayjs.min-OqJAuW-9.js} +1 -1
  51. package/dist/{index-g0Su2v11.js → index-BgrBG_Iz.js} +11 -11
  52. package/dist/{index-jZfKRlag.js → index-CxytOxGX.js} +1 -1
  53. package/dist/{index-BFdAL_N3.js → index-kz099Vvw.js} +6 -6
  54. package/dist/{item-SVoStXDW.js → item-vz-nrIWG.js} +694 -691
  55. package/dist/{jszip.min-DYjqumCW.js → jszip.min-C2aY4t8L.js} +2 -2
  56. package/dist/menu-CAVt_lFp.js +107896 -0
  57. package/dist/{menu-CTQtotYO.js → menu-DJkyk-fC.js} +1 -1
  58. package/dist/mf-menu.css +1 -1
  59. package/dist/{priceTier-D7hqwCP7.js → priceTier-xvRS9QN2.js} +1 -1
  60. package/dist/{scheduler-sOWjTP9q.js → scheduler-Du42t5zf.js} +3 -3
  61. package/dist/{subcategory-DzOnwchb.js → subcategory-CqKHknsQ.js} +219 -219
  62. package/dist/{toExcel-CXiBEHW2.js → toExcel-BvBlj-X5.js} +2 -2
  63. package/dist/{unit-CejxJLsQ.js → unit-DENherye.js} +1 -1
  64. package/package.json +3 -2
  65. package/dist/assets/linked-status-DjuegQzl.js +0 -24
  66. package/dist/assets/override-menu-SwLrxhgz.js +0 -24
  67. package/dist/assets/validate-menu-kf0hkaus.js +0 -24
  68. package/dist/menu-GZ7mL7Mu.js +0 -132202
@@ -2,9 +2,9 @@ import { defineComponent as K, computed as i, h as u, ref as U, resolveComponent
2
2
  import { useI18n as M } from "@feedmepos/mf-common";
3
3
  import { components as B, FmButtonColorThemeVariant as h, FmButtonVariant as I } from "@feedmepos/ui-library";
4
4
  import { _ as O } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
5
- import { L as $ } from "./LinkProductSideSheet-DPIxXikN.js";
5
+ import { L as $ } from "./LinkProductSideSheet-DIvOzMB8.js";
6
6
  import { u as q } from "./search-BAPEUu1R.js";
7
- import { u as J, ar as Q } from "./menu-GZ7mL7Mu.js";
7
+ import { u as J, ar as Q } from "./menu-CAVt_lFp.js";
8
8
  const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
9
9
  key: 0,
10
10
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as oe, computed as T, resolveComponent as y, createBlock as k, openBlock as p, createVNode as o, ref as w, createElementBlock as V, Fragment as z, renderSlot as ye, unref as e, withCtx as g, createElementVNode as f, createCommentVNode as B, renderList as q, createTextVNode as be, toDisplayString as N, h as J, withModifiers as W, normalizeClass as xe } from "vue";
2
2
  import { useRouter as Ce } from "vue-router";
3
- import { u as de, G as M, O as pe, B as fe, A as ue, z as ke, H as ee, J as ge, a9 as re } from "./menu-GZ7mL7Mu.js";
3
+ import { u as de, G as M, O as pe, D as fe, B as ue, A as ke, H as ee, J as ge, a9 as re } from "./menu-CAVt_lFp.js";
4
4
  import { useI18n as ne, useCoreStore as ve } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as _e, components as te, FmButtonVariant as j, FmButtonColorThemeVariant as Q, useDialog as he, useBreakpoints as Oe } from "@feedmepos/ui-library";
6
- import { _ as Fe, R as ie } from "./app-CgdrcHjA.js";
6
+ import { _ as Fe, R as ie } from "./app-CMGlnsG5.js";
7
7
  import { _ as Me } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
8
8
  import { _ as ae } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
9
9
  import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
10
- import { _ as ce, a as De } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CuR3HOn4.js";
10
+ import { _ as ce, a as De } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DsC5e95X.js";
11
11
  import { c as Se } from "./check-C9mY6LiX.js";
12
- import { C as I, a as P } from "./catalogSetting-DZueIrzX.js";
12
+ import { C as I, a as P } from "./catalogSetting-DhXLcwI_.js";
13
13
  import { _ as Te } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
14
14
  import { _ as Ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
15
- import { C as Ee } from "./catalog-C_ivwYaQ.js";
15
+ import { C as Ee } from "./catalog-BXSv7rZo.js";
16
16
  const Ae = /* @__PURE__ */ oe({
17
17
  __name: "CatalogUsageTable",
18
18
  props: {
@@ -1,19 +1,19 @@
1
- import { defineComponent as A, ref as F, computed as B, watch as se, resolveComponent as p, createElementBlock as E, openBlock as f, Fragment as Z, renderSlot as re, createVNode as d, unref as e, withCtx as g, createElementVNode as n, toDisplayString as T, h as L, withModifiers as D, getCurrentInstance as ie, renderList as ce, createBlock as U, createCommentVNode as ue } from "vue";
1
+ import { defineComponent as A, ref as F, computed as B, watch as se, resolveComponent as p, createElementBlock as E, openBlock as f, Fragment as Z, renderSlot as re, createVNode as d, unref as e, withCtx as g, createElementVNode as n, toDisplayString as T, h as L, withModifiers as z, getCurrentInstance as ie, renderList as ce, createBlock as U, createCommentVNode as ue } from "vue";
2
2
  import { useI18n as j } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Y, components as R, useDialog as ee, FmButtonVariant as H, useBreakpoints as de, FmButtonColorThemeVariant as me } from "@feedmepos/ui-library";
4
4
  import { _ as pe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { B as G, u as ge, $ as fe, Y as _e, G as K, a3 as ye, O as q, J as te } from "./menu-GZ7mL7Mu.js";
5
+ import { D as G, u as ge, $ as fe, Y as _e, G as K, a3 as ye, O as q, J as te } from "./menu-CAVt_lFp.js";
6
6
  import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { _ as he } from "./app-CgdrcHjA.js";
7
+ import { _ as he } from "./app-CMGlnsG5.js";
8
8
  import { c as be } from "./createForm-BoUQeZTd.js";
9
9
  import { _ as Q } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
10
10
  import { u as xe } from "./discardConfirm-BHni0LNu.js";
11
11
  import { c as X } from "./object-DVUNCr7w.js";
12
12
  import { r as Ce } from "./rules-CIWTZQfh.js";
13
- import { u as J, a as ke } from "./menu-CTQtotYO.js";
13
+ import { u as J, a as ke } from "./menu-DJkyk-fC.js";
14
14
  import { c as we } from "./check-C9mY6LiX.js";
15
- import { u as Fe } from "./item-SVoStXDW.js";
16
- import { u as oe } from "./category-B3iKQFQ-.js";
15
+ import { u as Fe } from "./item-vz-nrIWG.js";
16
+ import { u as oe } from "./category-LHZTSH3_.js";
17
17
  import { _ as Ve } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
18
18
  const $e = {
19
19
  class: "fm-typo-en-title-md-600"
@@ -72,7 +72,7 @@ const $e = {
72
72
  outline: !0,
73
73
  variant: "tertiary",
74
74
  textColor: "neutral-gray-400",
75
- onClick: D(async () => {
75
+ onClick: z(async () => {
76
76
  await s(a);
77
77
  }, ["stop", "prevent"])
78
78
  })]);
@@ -85,11 +85,11 @@ const $e = {
85
85
  await r.update(o._id);
86
86
  }
87
87
  const y = B(() => m.version === K.F_MENU_VERSION.enum.v4);
88
- async function I(o) {
88
+ async function D(o) {
89
89
  const a = ye(o, i.value.id);
90
90
  await r.updateMany(a);
91
91
  }
92
- const z = xe(() => i.value.name !== _.initialValue.name, () => {
92
+ const I = xe(() => i.value.name !== _.initialValue.name, () => {
93
93
  u.value = !1;
94
94
  });
95
95
  async function c() {
@@ -124,7 +124,7 @@ const $e = {
124
124
  blameFormChildOnValidationFailed: !0
125
125
  },
126
126
  "max-width": 560,
127
- "onOn:clickedAway": e(z)
127
+ "onOn:clickedAway": e(I)
128
128
  }, {
129
129
  "side-sheet-header": g(() => [n("p", $e, T(e(t)("menu.category.title")), 1)]),
130
130
  "side-sheet-footer": g(() => [n("div", Oe, [d(W, {
@@ -179,7 +179,7 @@ const $e = {
179
179
  "shrink-at": !1,
180
180
  "hide-footer": "",
181
181
  "pin-header-row": "",
182
- onDndChanged: I,
182
+ onDndChanged: D,
183
183
  onRowClick: a[2] || (a[2] = (v) => s(v.original))
184
184
  }, null, 8, ["draggable", "page-size", "row-data", "search-value"])])]),
185
185
  _: 1
@@ -192,12 +192,12 @@ const $e = {
192
192
  key: 0
193
193
  }, Pe = {
194
194
  class: "flex justify-end items-center"
195
- }, Ie = {
195
+ }, De = {
196
196
  class: "w-[320px]"
197
- }, ze = {
197
+ }, Ie = {
198
198
  key: 1,
199
199
  class: "flex-1 flex flex-col min-h-0"
200
- }, De = {
200
+ }, ze = {
201
201
  class: "p-8"
202
202
  }, Re = {
203
203
  class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
@@ -252,7 +252,7 @@ const $e = {
252
252
  disabled: !s.id,
253
253
  variant: "tertiary",
254
254
  textColor: "neutral-gray-400",
255
- onClick: D(async () => {
255
+ onClick: z(async () => {
256
256
  await u(s);
257
257
  }, ["stop", "prevent"])
258
258
  })]);
@@ -301,8 +301,8 @@ const $e = {
301
301
  }
302
302
  const S = de(), P = B(() => S.breakpoints.value.xs);
303
303
  return (l, s) => {
304
- const y = p("FmSearch"), I = p("FmTable"), z = p("FmButton");
305
- return P.value ? (f(), E("div", ze, [n("div", De, [d(y, {
304
+ const y = p("FmSearch"), D = p("FmTable"), I = p("FmButton");
305
+ return P.value ? (f(), E("div", Ie, [n("div", ze, [d(y, {
306
306
  autofocus: "",
307
307
  modelValue: r.value,
308
308
  "onUpdate:modelValue": s[2] || (s[2] = (c) => r.value = c),
@@ -316,13 +316,13 @@ const $e = {
316
316
  onClick: (o) => C(c)
317
317
  }, [n("div", Ae, [n("p", je, T(c.name), 1), n("p", Ye, T(e(t)(c.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
318
318
  count: c.items.length
319
- })), 1)]), d(z, {
319
+ })), 1)]), d(I, {
320
320
  "text-color": e(me).NeutralGray400,
321
321
  variant: e(H).Tertiary,
322
322
  "prepend-icon": "delete",
323
323
  disabled: !c.id,
324
- onClick: D((o) => u(c), ["stop"])
325
- }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ke))), 128))])])) : (f(), E("div", Ne, [n("div", Pe, [n("div", Ie, [d(y, {
324
+ onClick: z((o) => u(c), ["stop"])
325
+ }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ke))), 128))])])) : (f(), E("div", Ne, [n("div", Pe, [n("div", De, [d(y, {
326
326
  modelValue: r.value,
327
327
  "onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
328
328
  autofocus: "",
@@ -331,7 +331,7 @@ const $e = {
331
331
  type: e(t)("menu.category.title")
332
332
  })
333
333
  }, null, 8, ["modelValue", "placeholder"])])]), d(he, null, {
334
- default: g(() => [d(I, {
334
+ default: g(() => [d(D, {
335
335
  "column-defs": O.value,
336
336
  draggable: !0,
337
337
  "page-size": e(m).length,
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as S, computed as k, ref as C, resolveComponent as w, createElementBlock as _, openBlock as u, createElementVNode as i, createVNode as g, unref as n, withCtx as K, Fragment as P, renderList as U, toDisplayString as E, createBlock as V } from "vue";
2
2
  import { useI18n as L } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as M, useBreakpoints as Y, useDialog as $ } from "@feedmepos/ui-library";
4
- import { B as F, u as I, Y as j, O as B, J as A, G } from "./menu-GZ7mL7Mu.js";
5
- import { _ as J } from "./app-CgdrcHjA.js";
6
- import { u as O } from "./menu-CTQtotYO.js";
4
+ import { D as F, u as I, Y as j, O as D, J as A, G } from "./menu-CAVt_lFp.js";
5
+ import { _ as J } from "./app-CMGlnsG5.js";
6
+ import { u as O } from "./menu-DJkyk-fC.js";
7
7
  import { _ as R } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
8
- import { u as q } from "./category-B3iKQFQ-.js";
8
+ import { u as q } from "./category-LHZTSH3_.js";
9
9
  const H = {
10
10
  key: 0
11
11
  }, Q = {
@@ -28,7 +28,7 @@ const H = {
28
28
  }, ne = /* @__PURE__ */ S({
29
29
  __name: "CategoryTable",
30
30
  setup(T) {
31
- const f = M(), y = F(f), h = B(y), p = I(), {
31
+ const f = M(), y = F(f), h = D(y), p = I(), {
32
32
  categories: v
33
33
  } = O(), b = k(() => {
34
34
  var l, t;
@@ -62,7 +62,7 @@ const H = {
62
62
  });
63
63
  }
64
64
  }]);
65
- async function D(r) {
65
+ async function B(r) {
66
66
  var e;
67
67
  const o = p.currentCatalog;
68
68
  if (!o)
@@ -121,7 +121,7 @@ const H = {
121
121
  "shrink-at": !1,
122
122
  "hide-footer": "",
123
123
  "pin-header-row": "",
124
- onDndChanged: D
124
+ onDndChanged: B
125
125
  }, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
126
126
  _: 1
127
127
  })]));
@@ -130,7 +130,7 @@ const H = {
130
130
  }), pe = /* @__PURE__ */ S({
131
131
  __name: "Category",
132
132
  setup(T) {
133
- const f = $(), y = M(), h = F(y), p = B(h), v = q({ dialog: f, menuLoader: p }), { categories: b } = O(), { t: a } = L();
133
+ const f = $(), y = M(), h = F(y), p = D(h), v = q({ dialog: f, menuLoader: p }), { categories: b } = O(), { t: a } = L();
134
134
  function d() {
135
135
  v.create();
136
136
  }
@@ -2,25 +2,25 @@ import { defineComponent as ae, ref as w, computed as V, resolveComponent as x,
2
2
  import { useI18n as se } from "@feedmepos/mf-common";
3
3
  import { components as ue, useSnackbar as be, useDialog as ye } from "@feedmepos/ui-library";
4
4
  import { _ as ke } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as he } from "./app-CgdrcHjA.js";
6
- import { H as ee, I as me, J as re, G as oe, u as xe, O as Ce, B as we } from "./menu-GZ7mL7Mu.js";
5
+ import { _ as he } from "./app-CMGlnsG5.js";
6
+ import { H as ee, I as me, J as re, G as oe, u as xe, O as Ce, D as we } from "./menu-CAVt_lFp.js";
7
7
  import { d as Fe } from "./vuedraggable-CK8z7qA8.js";
8
8
  import { _ as Z } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
9
9
  import { u as pe } from "./discardConfirm-BHni0LNu.js";
10
- import { L as Ve } from "./LinkProductSideSheet-DPIxXikN.js";
10
+ import { L as Ve } from "./LinkProductSideSheet-DIvOzMB8.js";
11
11
  import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
12
12
  import { _ as Ie } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
13
- const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = { class: "space-y-32" }, Ke = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, Le = { class: "px-16 py-8 w-[40%]" }, Ne = { class: "px-16 py-8 grow" }, De = { class: "px-16 py-8 w-[40%]" }, Ge = { class: "px-16 py-8 grow" }, Ue = { class: "space-y-16" }, Be = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Te = { class: "flex gap-8 items-center justify-start" }, Me = /* @__PURE__ */ ae({
13
+ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = { class: "space-y-32" }, Ke = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, De = { class: "px-16 py-8 w-[40%]" }, Le = { class: "px-16 py-8 grow" }, Ne = { class: "px-16 py-8 w-[40%]" }, Ge = { class: "px-16 py-8 grow" }, Ue = { class: "space-y-16" }, Te = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Be = { class: "flex gap-8 items-center justify-start" }, Me = /* @__PURE__ */ ae({
14
14
  __name: "CookingGuideStepDialog",
15
15
  emits: ["onComplete"],
16
- setup(N, { expose: g, emit: J }) {
16
+ setup(L, { expose: g, emit: J }) {
17
17
  const { t: u } = se();
18
18
  g({
19
19
  show: d,
20
20
  hide: $
21
21
  });
22
- const D = J;
23
- function L() {
22
+ const N = J;
23
+ function D() {
24
24
  return {
25
25
  id: "",
26
26
  variables: {},
@@ -29,14 +29,14 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
29
29
  }
30
30
  const C = w(!1), U = w(!1), E = w(void 0);
31
31
  function d(v) {
32
- U.value = !!v, E.value = v ? ee(v) : L(), m.value = ee(E.value), F.value = Object.entries(m.value.variables).map(
32
+ U.value = !!v, E.value = v ? ee(v) : D(), m.value = ee(E.value), F.value = Object.entries(m.value.variables).map(
33
33
  ([t, f]) => ({ key: t, value: f })
34
34
  ), C.value = !0;
35
35
  }
36
36
  function $() {
37
37
  C.value = !1;
38
38
  }
39
- const m = w(L()), F = w([]);
39
+ const m = w(D()), F = w([]);
40
40
  function X() {
41
41
  F.value.push({ key: "", value: "" });
42
42
  }
@@ -80,8 +80,8 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
80
80
  C.value = !1;
81
81
  }
82
82
  );
83
- function B() {
84
- $(), D("onComplete", {
83
+ function T() {
84
+ $(), N("onComplete", {
85
85
  ...m.value,
86
86
  variables: F.value.reduce((v, { key: t, value: f }) => ({ ...v, [t]: f }), {})
87
87
  });
@@ -90,13 +90,13 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
90
90
  const f = x("FmButton"), _ = x("FmTextField"), P = x("FmChip"), W = x("FmTextarea"), q = x("FmSideSheet");
91
91
  return k(), Y(q, {
92
92
  modelValue: C.value,
93
- "onUpdate:modelValue": t[1] || (t[1] = (T) => C.value = T),
93
+ "onUpdate:modelValue": t[1] || (t[1] = (B) => C.value = B),
94
94
  closeButton: !1,
95
95
  header: n.value,
96
96
  "max-width": 560,
97
97
  "is-container": i(ue).FmForm,
98
98
  "is-container-props": {
99
- onValidationSuccess: B,
99
+ onValidationSuccess: T,
100
100
  blameFormChildOnValidationFailed: !0,
101
101
  class: "flex flex-col h-full"
102
102
  },
@@ -114,7 +114,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
114
114
  ])
115
115
  ]),
116
116
  "side-sheet-footer": p(() => [
117
- a("div", Te, [
117
+ a("div", Be, [
118
118
  l(f, {
119
119
  label: s.value,
120
120
  size: "lg",
@@ -147,14 +147,14 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
147
147
  default: p(() => [
148
148
  a("div", null, [
149
149
  a("div", Ke, [
150
- a("div", Le, S(i(u)("menu.cooking_guide.step_dialog.sections.variables.columns.key")), 1),
151
- a("div", Ne, S(i(u)("menu.cooking_guide.step_dialog.sections.variables.columns.value")), 1)
150
+ a("div", De, S(i(u)("menu.cooking_guide.step_dialog.sections.variables.columns.key")), 1),
151
+ a("div", Le, S(i(u)("menu.cooking_guide.step_dialog.sections.variables.columns.value")), 1)
152
152
  ]),
153
- (k(!0), I(z, null, H(F.value, (T, M) => (k(), I("div", {
153
+ (k(!0), I(z, null, H(F.value, (B, M) => (k(), I("div", {
154
154
  key: M,
155
155
  class: "flex items-center border-b border-b-fm-color-neutral-gray-100"
156
156
  }, [
157
- a("div", De, [
157
+ a("div", Ne, [
158
158
  l(_, {
159
159
  modelValue: F.value[M].key,
160
160
  "onUpdate:modelValue": (O) => F.value[M].key = O,
@@ -192,17 +192,17 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
192
192
  }, {
193
193
  default: p(() => [
194
194
  a("div", Ue, [
195
- a("div", Be, [
196
- (k(!0), I(z, null, H(h.value, (T) => (k(), Y(P, {
197
- key: T.label,
198
- label: T.label,
195
+ a("div", Te, [
196
+ (k(!0), I(z, null, H(h.value, (B) => (k(), Y(P, {
197
+ key: B.label,
198
+ label: B.label,
199
199
  class: "text-fm-color-primary bg-fm-color-system-warning-100",
200
- onMousedown: le(() => G(T.label), ["prevent"])
200
+ onMousedown: le(() => G(B.label), ["prevent"])
201
201
  }, null, 8, ["label", "onMousedown"]))), 128))
202
202
  ]),
203
203
  l(W, {
204
204
  modelValue: m.value.instruction,
205
- "onUpdate:modelValue": t[0] || (t[0] = (T) => m.value.instruction = T),
205
+ "onUpdate:modelValue": t[0] || (t[0] = (B) => m.value.instruction = B),
206
206
  ref: "textareaRef"
207
207
  }, null, 8, ["modelValue"])
208
208
  ])
@@ -218,14 +218,14 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
218
218
  }), ze = { class: "w-[700px]" }, Re = { class: "flex bg-fm-color-neutral-gray-100" }, Ae = { class: "px-16 py-8 grow" }, Pe = { class: "px-16 py-8 w-[200px]" }, qe = { class: "px-16 py-8 w-[200px]" }, je = { class: "px-16 py-8 grow" }, Ye = { class: "px-16 py-8 w-[200px] flex flex-col gap-8" }, He = { class: "px-16 py-8 w-[200px] flex flex-col gap-8" }, Je = /* @__PURE__ */ ae({
219
219
  __name: "CookingGuideStepOverrideDialog",
220
220
  emits: ["onComplete"],
221
- setup(N, { expose: g, emit: J }) {
221
+ setup(L, { expose: g, emit: J }) {
222
222
  const { t: u } = se();
223
223
  g({
224
224
  show: d,
225
225
  hide: $
226
226
  });
227
- const D = J;
228
- function L() {
227
+ const N = J;
228
+ function D() {
229
229
  return {
230
230
  productId: "",
231
231
  overrides: []
@@ -233,28 +233,28 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
233
233
  }
234
234
  const C = w(!1), U = w(""), E = w([]);
235
235
  function d(h) {
236
- U.value = h.itemName, E.value = h.steps, m.value = h.bindings ? ee(h.bindings) : L(), C.value = !0;
236
+ U.value = h.itemName, E.value = h.steps, m.value = h.bindings ? ee(h.bindings) : D(), C.value = !0;
237
237
  }
238
238
  function $() {
239
239
  C.value = !1;
240
240
  }
241
- const m = w(L()), F = V(() => m.value.overrides.reduce((h, n) => (h[n.id] = n, h), {}));
241
+ const m = w(D()), F = V(() => m.value.overrides.reduce((h, n) => (h[n.id] = n, h), {}));
242
242
  function X(h, n) {
243
243
  var s;
244
244
  return ((s = F.value[h]) == null ? void 0 : s.variables[n]) ?? "";
245
245
  }
246
246
  function A(h, n, s) {
247
- const K = m.value.overrides.findIndex((B) => B.id === h);
247
+ const K = m.value.overrides.findIndex((T) => T.id === h);
248
248
  s ? K < 0 ? m.value.overrides.push({
249
249
  id: h,
250
250
  variables: { [n]: s }
251
251
  }) : m.value.overrides[K].variables[n] = s : K >= 0 && (delete m.value.overrides[K].variables[n], Object.keys(m.value.overrides[K].variables).length || m.value.overrides.splice(K, 1));
252
252
  }
253
253
  function G() {
254
- $(), D("onComplete", m.value);
254
+ $(), N("onComplete", m.value);
255
255
  }
256
256
  return (h, n) => {
257
- const s = x("FmTextField"), K = x("FmSpacer"), B = x("FmButton"), v = x("FmDialog");
257
+ const s = x("FmTextField"), K = x("FmSpacer"), T = x("FmButton"), v = x("FmDialog");
258
258
  return k(), Y(v, {
259
259
  modelValue: C.value,
260
260
  "onUpdate:modelValue": n[0] || (n[0] = (t) => C.value = t),
@@ -267,14 +267,14 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
267
267
  ]),
268
268
  "dialog-footer": p(() => [
269
269
  l(K),
270
- l(B, {
270
+ l(T, {
271
271
  class: "sm:w-full xs:w-full",
272
272
  label: i(u)("menu.cooking_guide.step_override_dialog.actions.cancel"),
273
273
  size: "md",
274
274
  variant: "tertiary",
275
275
  onClick: $
276
276
  }, null, 8, ["label"]),
277
- l(B, {
277
+ l(T, {
278
278
  class: "sm:w-full xs:w-full",
279
279
  label: i(u)("menu.cooking_guide.step_override_dialog.actions.save"),
280
280
  size: "md",
@@ -329,13 +329,13 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
329
329
  }
330
330
  },
331
331
  emits: ["onSave"],
332
- setup(N, { expose: g, emit: J }) {
333
- const u = N;
332
+ setup(L, { expose: g, emit: J }) {
333
+ const u = L;
334
334
  g({
335
335
  showModal: U,
336
336
  hideModal: E
337
337
  });
338
- function D() {
338
+ function N() {
339
339
  return {
340
340
  _id: "",
341
341
  name: "",
@@ -343,14 +343,14 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
343
343
  steps: []
344
344
  };
345
345
  }
346
- const L = w(!1), C = w(void 0);
346
+ const D = w(!1), C = w(void 0);
347
347
  function U(e) {
348
- C.value = e ? ee(e) : D(), d.value = ee(C.value), L.value = !0;
348
+ C.value = e ? ee(e) : N(), d.value = ee(C.value), D.value = !0;
349
349
  }
350
350
  function E() {
351
- L.value = !1;
351
+ D.value = !1;
352
352
  }
353
- const d = w(D()), $ = w();
353
+ const d = w(N()), $ = w();
354
354
  function m() {
355
355
  var e;
356
356
  (e = $.value) == null || e.show();
@@ -416,7 +416,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
416
416
  bindings: h(e.itemId, e.combinationKey)
417
417
  });
418
418
  }
419
- function B({ productId: e, combinationKey: o, overrides: b }) {
419
+ function T({ productId: e, combinationKey: o, overrides: b }) {
420
420
  const r = d.value.bindings.map((c) => ({
421
421
  ...c,
422
422
  overrides: c.productId === e && c.combinationKey == o ? b : c.overrides
@@ -434,7 +434,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
434
434
  const b = e[o.productId] ?? [];
435
435
  return o.combinationKey ? e[o.productId] = [...b, o.combinationKey] : e[o.productId] = [], e;
436
436
  }, {})
437
- ), q = w(""), T = V(() => u.categorizedItems.reduce((e, o) => {
437
+ ), q = w(""), B = V(() => u.categorizedItems.reduce((e, o) => {
438
438
  var b, r;
439
439
  for (const c of o.items)
440
440
  (b = c.variant) != null && b.variantGroupIds.length && ((r = c.variant) == null ? void 0 : r.variantGroupIds.length) > 0 ? e = [
@@ -455,7 +455,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
455
455
  itemName: c.name
456
456
  });
457
457
  return e;
458
- }, [])), M = V(() => T.value.filter((e) => {
458
+ }, [])), M = V(() => B.value.filter((e) => {
459
459
  const o = W.value[e.itemId];
460
460
  return !!o && (!e.combinationKey || o.includes(e.combinationKey));
461
461
  })), O = V(() => {
@@ -484,7 +484,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
484
484
  const _e = pe(
485
485
  () => !me.isEqual(C.value, d.value),
486
486
  () => {
487
- L.value = !1;
487
+ D.value = !1;
488
488
  }
489
489
  );
490
490
  function ve() {
@@ -494,8 +494,8 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
494
494
  const b = x("FmTextField"), r = x("FmButton"), c = x("FmCardSection"), Q = x("FmCard"), te = x("FmSpacer"), ne = x("FmSearch"), ie = x("FmSideSheet");
495
495
  return k(), I(z, null, [
496
496
  l(ie, {
497
- modelValue: L.value,
498
- "onUpdate:modelValue": o[4] || (o[4] = (y) => L.value = y),
497
+ modelValue: D.value,
498
+ "onUpdate:modelValue": o[4] || (o[4] = (y) => D.value = y),
499
499
  header: f.value,
500
500
  "max-width": 560,
501
501
  "is-container": i(ue).FmForm,
@@ -600,14 +600,14 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
600
600
  ]),
601
601
  _: 1
602
602
  }, 8, ["title"]),
603
- N.canApplyItems ? (k(), Y(Z, {
603
+ L.canApplyItems ? (k(), Y(Z, {
604
604
  key: 0,
605
605
  title: i(t)("menu.cooking_guide.dialog.sections.apply_product.title")
606
606
  }, {
607
607
  "append-title": p(() => [
608
608
  l(te),
609
609
  l(Ve, {
610
- "categorized-items": N.categorizedItems,
610
+ "categorized-items": L.categorizedItems,
611
611
  "initial-value": d.value.bindings.map((y) => ({
612
612
  _id: y.productId,
613
613
  combinationKey: y.combinationKey
@@ -683,31 +683,31 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
683
683
  l(Je, {
684
684
  ref_key: "cookingGuideStepOverrideDialogRef",
685
685
  ref: s,
686
- onOnComplete: B
686
+ onOnComplete: T
687
687
  }, null, 512)
688
688
  ], 64);
689
689
  };
690
690
  }
691
691
  });
692
- function ro(N) {
692
+ function ro(L) {
693
693
  return {
694
694
  module: oe.F_MENU_MODULE_V4_KEY.enum.cookingGuide,
695
695
  operation: re.F_OPERATION_TYPE.create,
696
- data: oe.FdoMenuCookingGuide.parse(N)
696
+ data: oe.FdoMenuCookingGuide.parse(L)
697
697
  };
698
698
  }
699
- function co(N) {
699
+ function co(L) {
700
700
  return {
701
701
  module: oe.F_MENU_MODULE_V4_KEY.enum.cookingGuide,
702
702
  operation: re.F_OPERATION_TYPE.update,
703
- data: oe.FdoMenuCookingGuide.parse(N)
703
+ data: oe.FdoMenuCookingGuide.parse(L)
704
704
  };
705
705
  }
706
- function mo(N) {
706
+ function mo(L) {
707
707
  return {
708
708
  module: oe.F_MENU_MODULE_V4_KEY.enum.cookingGuide,
709
709
  operation: re.F_OPERATION_TYPE.delete,
710
- data: N._id
710
+ data: L._id
711
711
  };
712
712
  }
713
713
  const po = {
@@ -724,7 +724,7 @@ const po = {
724
724
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
725
725
  }, Eo = /* @__PURE__ */ ae({
726
726
  __name: "CookingGuide",
727
- setup(N) {
727
+ setup(L) {
728
728
  const {
729
729
  t: g
730
730
  } = se(), J = V(() => [{
@@ -771,14 +771,14 @@ const po = {
771
771
  A(n.row.original);
772
772
  }, ["stop", "prevent"])
773
773
  })])
774
- }]), u = xe(), D = V(() => E.checkMenuIsLoading()), L = V(() => u.categorizedItems), C = V(() => u.state.menu.modules.cookingGuide), U = V(() => C.value.length > 0), E = Ce(we(be())), d = w();
774
+ }]), u = xe(), N = V(() => E.checkMenuIsLoading()), D = V(() => u.categorizedItems), C = V(() => u.state.menu.modules.cookingGuide), U = V(() => C.value.length > 0), E = Ce(we(be())), d = w();
775
775
  function $() {
776
776
  var n;
777
- D.value || (n = d.value) == null || n.showModal();
777
+ N.value || (n = d.value) == null || n.showModal();
778
778
  }
779
779
  function m(n) {
780
780
  var s;
781
- D.value || (s = d.value) == null || s.showModal(n);
781
+ N.value || (s = d.value) == null || s.showModal(n);
782
782
  }
783
783
  async function F(n) {
784
784
  const s = n._id ? co(n) : ro(n);
@@ -812,13 +812,13 @@ const po = {
812
812
  return n ? C.value.filter((s) => s.name.toLowerCase().includes(n)) : C.value;
813
813
  });
814
814
  return (n, s) => {
815
- const K = x("FmSearch"), B = x("FmTable"), v = x("FmButton"), t = x("FmListItem"), f = x("FmList");
815
+ const K = x("FmSearch"), T = x("FmTable"), v = x("FmButton"), t = x("FmListItem"), f = x("FmList");
816
816
  return k(), Y(Ie, {
817
817
  heading: i(g)("menu.cooking_guide.title")
818
818
  }, {
819
819
  "append-heading": p(() => [a("div", po, [U.value ? (k(), Y(ke, {
820
820
  key: 0,
821
- disabled: D.value,
821
+ disabled: N.value,
822
822
  icon: "add",
823
823
  label: i(g)("menu.cooking_guide.actions.add"),
824
824
  variant: "primary",
@@ -835,9 +835,9 @@ const po = {
835
835
  }, null, 8, ["modelValue", "placeholder"])]), l(he, {
836
836
  class: "xs:hidden block"
837
837
  }, {
838
- default: p(() => [l(B, {
838
+ default: p(() => [l(T, {
839
839
  "column-defs": J.value,
840
- loading: D.value,
840
+ loading: N.value,
841
841
  "page-size": C.value.length,
842
842
  "row-data": C.value,
843
843
  "search-value": G.value,
@@ -864,7 +864,7 @@ const po = {
864
864
  })), 1), a("div", bo, S(i(g)("menu.cooking_guide.table.columns.steps", {
865
865
  count: _.steps.length
866
866
  })), 1)])]), l(v, {
867
- disabled: D.value,
867
+ disabled: N.value,
868
868
  icon: "delete",
869
869
  variant: "tertiary",
870
870
  "text-color": "neutral-gray-400",
@@ -884,7 +884,7 @@ const po = {
884
884
  }, null, 8, ["action", "subtitle", "title"])), l(uo, {
885
885
  ref_key: "cookingGuideDialogRef",
886
886
  ref: d,
887
- "categorized-items": L.value,
887
+ "categorized-items": D.value,
888
888
  onOnSave: F
889
889
  }, null, 8, ["categorized-items"])]),
890
890
  _: 1
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as ft, computed as Le, createBlock as ue, openBlock as T, unref as Fe, withCtx as je, renderSlot as Ws, mergeModels as Ls, useModel as ry, ref as be, createElementBlock as ne, onMounted as ay, Fragment as we, createCommentVNode as xe, watch as Ar, resolveComponent as K, createElementVNode as te, createVNode as U, renderList as ct, toDisplayString as $t, mergeProps as iy, normalizeClass as uy, withModifiers as oy } from "vue";
2
2
  import { useI18n as qs } from "@feedmepos/mf-common";
3
3
  import { _ as sy } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
4
- import { u as ly } from "./menu-GZ7mL7Mu.js";
4
+ import { u as ly } from "./menu-CAVt_lFp.js";
5
5
  import { useBreakpoints as Ks, useDialog as cy, useDialogChild as fy } from "@feedmepos/ui-library";
6
6
  import { _ as Qi } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
7
7
  const Eg = /* @__PURE__ */ ft({
@@ -2,9 +2,9 @@ import { defineComponent as m, ref as p, createBlock as i, openBlock as d, unref
2
2
  import { useI18n as _ } from "@feedmepos/mf-common";
3
3
  import { _ as f } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
4
4
  import { _ as g } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
5
- import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-p3ZeU8Ad.js";
6
- import { A as b } from "./item-SVoStXDW.js";
7
- import { a as h } from "./menu-CTQtotYO.js";
5
+ import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-ClnFek9W.js";
6
+ import { A as b } from "./item-vz-nrIWG.js";
7
+ import { a as h } from "./menu-DJkyk-fC.js";
8
8
  const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "flex items-center" }, k = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, C = { class: "fm-typo-en-body-md-600 font-semibold" }, j = /* @__PURE__ */ m({
9
9
  __name: "Group",
10
10
  setup(N) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-p3ZeU8Ad.js";
1
+ import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-ClnFek9W.js";
2
2
  export {
3
3
  f as default
4
4
  };