@feedmepos/mf-menu 0.19.9 → 0.19.11

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-B821ZRTY.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DBTFdatw.js} +2 -2
  2. package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-B8B1lptL.js → ApplyProducts.vue_vue_type_script_setup_true_lang-CqUHtPyu.js} +2 -2
  3. package/dist/{Catalog-6t4219CO.js → Catalog-cQ3JK0Sc.js} +3 -3
  4. package/dist/{Category-zncIydYw.js → Category-CI-3rUzP.js} +93 -92
  5. package/dist/{CookingGuide-CINA44z5.js → CookingGuide-BCJW_KoQ.js} +3 -3
  6. package/dist/{Group-CHIwDFnl.js → Group-CrY-Fy0Q.js} +1 -1
  7. package/dist/{Group-BotC9H0W.js → Group-DANJryGZ.js} +4 -4
  8. package/dist/{Group.vue_vue_type_script_setup_true_lang-C8D1a1lx.js → Group.vue_vue_type_script_setup_true_lang-D1HIb29M.js} +40 -41
  9. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-HFZgKEZb.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DKi22oTQ.js} +2 -2
  10. package/dist/{Ingredient-gX995_iA.js → Ingredient-MEiH5Efu.js} +4 -4
  11. package/dist/{LinkProductSideSheet-Cpcux4ro.js → LinkProductSideSheet-CQPGDD4s.js} +2 -2
  12. package/dist/{PrintRoute-CJs5FY5p.js → PrintRoute-BiiOOpoF.js} +3 -3
  13. package/dist/{Product-CH-D2B_6.js → Product-D7ZoDXcB.js} +1 -1
  14. package/dist/{Product.vue_vue_type_script_setup_true_lang-BAnrRY0R.js → Product.vue_vue_type_script_setup_true_lang-CS48zyl3.js} +11 -11
  15. package/dist/{Products-0igEN1cM.js → Products-DrYLsqrm.js} +9 -9
  16. package/dist/{Publish-mDp1Gdsa.js → Publish-XhfRFW23.js} +2 -2
  17. package/dist/{Recipe-CbbR1uUA.js → Recipe-CSTlRVKR.js} +4 -4
  18. package/dist/{Scheduler-BNdftL6v.js → Scheduler-8luPsFL5.js} +2 -2
  19. package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-QRpSFVvj.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-CDo_FCal.js} +1 -1
  20. package/dist/ServingSequence-Bq5q0Ou4.js +4 -0
  21. package/dist/{Setting-DPi3b9nn.js → Setting-CIIlWy3x.js} +1 -1
  22. package/dist/{Setting.vue_vue_type_script_setup_true_lang-GfRZXzY9.js → Setting.vue_vue_type_script_setup_true_lang-D9uJ_ZpO.js} +3 -3
  23. package/dist/{Takeaway-B-6ztKGu.js → Takeaway-CC_Xp-JY.js} +1 -1
  24. package/dist/{Takeaway-8WuMd7Ps.js → Takeaway-Cq1D6I9N.js} +4 -4
  25. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DcxpMKmz.js → Takeaway.vue_vue_type_script_setup_true_lang-C5aWDOXe.js} +4 -4
  26. package/dist/{TaxSetting-BwMb7VwK.js → TaxSetting-zbqPDSSV.js} +4 -4
  27. package/dist/{Unit-kwvP1Ytd.js → Unit-B1NqRCAg.js} +2 -2
  28. package/dist/{Variant-RHStYNR2.js → Variant-0n90gldZ.js} +2 -2
  29. package/dist/{_id_-lEMZ3LSk.js → _id_-B_8FNJ2I.js} +6 -6
  30. package/dist/{app-DrXmwwGN.js → app-yBwn3Q3W.js} +32 -30
  31. package/dist/app.js +2 -2
  32. package/dist/assets/{linked-status-t0_uy1Xx.js → linked-status-D4ieMArg.js} +3 -3
  33. package/dist/assets/{validate-menu-6VlTFFRT.js → validate-menu-B10Ts6wp.js} +3 -3
  34. package/dist/{catalog-CjF8QFQf.js → catalog-DIJqNxnV.js} +2403 -2403
  35. package/dist/{catalog-D0Z0dU6_.js → catalog-w1dsSRoE.js} +1 -1
  36. package/dist/{category-D_APQ9Fc.js → category-g5_fzA83.js} +1 -1
  37. package/dist/{currency-DVj9G60-.js → currency-CMInSszq.js} +1 -1
  38. package/dist/{index-CfstOa4S.js → index-D9SXeCiV.js} +3 -3
  39. package/dist/{index-_loW_mjS.js → index-F8EWgxsa.js} +2 -2
  40. package/dist/{item-D5XPIa8E.js → item-B_Zcuof9.js} +12 -12
  41. package/dist/{lodash-CI_4MWrJ.js → lodash-CSvaBy90.js} +1 -1
  42. package/dist/{menu-CkoJ5Q72.js → menu-BOM7xIQU.js} +1 -1
  43. package/dist/{object-DOPRaJ9E.js → object-JuI4xIeI.js} +1 -1
  44. package/dist/{scheduler-nGo4EXl0.js → scheduler-DGUE3dGK.js} +4 -4
  45. package/dist/{takeaway-BzHKI_1c.js → takeaway-BAp9NxwR.js} +4 -4
  46. package/dist/{toExcel-CSOhQq7d.js → toExcel-DiVNbjNA.js} +2 -2
  47. package/dist/{unit-mbFn9z8z.js → unit-BWtDmi0l.js} +2 -2
  48. package/package.json +1 -1
  49. package/dist/ServingSequence-DiUpFFru.js +0 -4
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as U, computed as i, h as u, ref as K, resolveComponent as g, openBlock as d, createElementBlock as p, createVNode as v, withCtx as h, createElementVNode as V, createBlock as j, unref as n, createCommentVNode as C, toDisplayString as A, isRef as D, Fragment as G, renderList as H } from "vue";
2
- import { u as M, n as O, U as $ } from "./app-DrXmwwGN.js";
2
+ import { u as M, n as O, U as $ } from "./app-yBwn3Q3W.js";
3
3
  import { components as I, FmButtonVariant as B, FmButtonColorThemeVariant as b } from "@feedmepos/ui-library";
4
- import { L as q } from "./LinkProductSideSheet-Cpcux4ro.js";
4
+ import { L as q } from "./LinkProductSideSheet-CQPGDD4s.js";
5
5
  import { _ as J } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
6
6
  import { useI18n as Q } from "@feedmepos/mf-common";
7
7
  const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as T, ref as y, computed as k, resolveComponent as m, openBlock as p, createBlock as w, unref as G, withCtx as f, createElementVNode as s, createVNode as u, toDisplayString as g, createElementBlock as b, Fragment as F, renderList as B } from "vue";
2
- import { d as V } from "./app-DrXmwwGN.js";
2
+ import { d as V } from "./app-yBwn3Q3W.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
- import { u as H, l as J } from "./lodash-CI_4MWrJ.js";
5
+ import { u as H, l as J } from "./lodash-CSvaBy90.js";
6
6
  const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-full" }, R = { class: "flex items-center gap-24 mb-16" }, W = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, X = { class: "flex-1" }, Y = { class: "grow overflow-y-auto py-16 space-y-24" }, Z = { class: "flex items-center" }, ee = { class: "ml-8 fm-card__title grow overflow-hidden text-nowrap text-ellipsis" }, te = { class: "ml-16" }, le = { class: "flex gap-8 items-center justify-start" }, ie = /* @__PURE__ */ T({
7
7
  __name: "ApplyProducts",
8
8
  props: {
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as ie, ref as I, computed as $, resolveComponent as g, openBlock as m, createElementBlock as b, Fragment as V, renderSlot as ye, createVNode as i, unref as e, withCtx as p, createElementVNode as f, renderList as w, createBlock as F, createCommentVNode as z, createTextVNode as be, toDisplayString as k, h as J, withModifiers as Q, normalizeClass as ee } from "vue";
2
2
  import { useCoreStore as ce, useI18n as me } from "@feedmepos/mf-common";
3
- import { b as O, u as de, i as pe, a as fe, m as oe, c as xe, g as ke, d as ae, h as ge, x as ne, _ as Ce, k as he, j as Oe, R as se } from "./app-DrXmwwGN.js";
4
- import { C as Fe } from "./catalog-D0Z0dU6_.js";
3
+ import { b as O, u as de, i as pe, a as fe, m as oe, c as xe, g as ke, d as ae, h as ge, x as ne, _ as Ce, k as he, j as Oe, R as se } from "./app-yBwn3Q3W.js";
4
+ import { C as Fe } from "./catalog-w1dsSRoE.js";
5
5
  import { useRouter as Me } from "vue-router";
6
6
  import { useSnackbar as _e, components as le, FmButtonColorThemeVariant as W, FmButtonVariant as G, useDialog as De, useBreakpoints as Ve } from "@feedmepos/ui-library";
7
- import { C as R, a as L, _ as re } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-HFZgKEZb.js";
7
+ import { C as R, a as L, _ as re } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DKi22oTQ.js";
8
8
  import { _ as Se } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
9
9
  import { _ as te } from "./FormItem.vue_vue_type_script_setup_true_lang-DKsxEK-8.js";
10
10
  const Ae = { class: "space-y-32" }, Ne = {
@@ -1,13 +1,13 @@
1
- import { defineComponent as j, ref as w, computed as B, watch as re, resolveComponent as y, openBlock as h, createElementBlock as T, Fragment as Z, renderSlot as ie, createVNode as u, unref as e, withCtx as v, createElementVNode as o, toDisplayString as L, h as z, withModifiers as R, getCurrentInstance as ce, renderList as ue, createBlock as O, createCommentVNode as de } from "vue";
2
- import { u as K, a as me } from "./menu-CkoJ5Q72.js";
3
- import { a as Y, u as pe, b as A, g as fe, h as ee, i as q, j as ge, _ as _e, k as ye, f as ve } from "./app-DrXmwwGN.js";
4
- import { useSnackbar as G, components as P, useDialog as te, FmButtonVariant as Q, useBreakpoints as he, FmButtonColorThemeVariant as be } from "@feedmepos/ui-library";
5
- import { u as ae } from "./category-D_APQ9Fc.js";
1
+ import { defineComponent as P, ref as w, computed as B, watch as re, resolveComponent as y, openBlock as h, createElementBlock as T, Fragment as Z, renderSlot as ie, createVNode as d, unref as e, withCtx as v, createElementVNode as o, toDisplayString as L, h as z, withModifiers as A, getCurrentInstance as ce, renderList as ue, createBlock as O, createCommentVNode as de } from "vue";
2
+ import { u as j, a as me } from "./menu-BOM7xIQU.js";
3
+ import { a as Y, u as pe, b as I, g as fe, h as ee, i as q, j as ge, _ as _e, k as ye, f as ve } from "./app-yBwn3Q3W.js";
4
+ import { useSnackbar as G, components as K, useDialog as te, FmButtonVariant as Q, useBreakpoints as he, FmButtonColorThemeVariant as be } from "@feedmepos/ui-library";
5
+ import { u as ae } from "./category-g5_fzA83.js";
6
6
  import { c as xe } from "./createForm-DPAQWnoK.js";
7
- import { c as W } from "./object-DOPRaJ9E.js";
8
- import { u as Ce } from "./item-D5XPIa8E.js";
7
+ import { c as W } from "./object-JuI4xIeI.js";
8
+ import { u as Ce } from "./item-B_Zcuof9.js";
9
9
  import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
10
- import { u as ke } from "./lodash-CI_4MWrJ.js";
10
+ import { u as ke } from "./lodash-CSvaBy90.js";
11
11
  import { useI18n as H } from "@feedmepos/mf-common";
12
12
  function we(p, f = "This field can't be empty.") {
13
13
  return p == null || Array.isArray(p) && p.length === 0 || typeof p == "string" && p.trim() === "" ? f : !0;
@@ -18,15 +18,15 @@ const Fe = {
18
18
  class: "flex flex-col gap-32 h-full min-h-0 py-16"
19
19
  }, $e = {
20
20
  class: "flex gap-24 items-center"
21
- }, Me = {
22
- class: "text-fm-color-typo-secondary"
23
21
  }, Se = {
22
+ class: "text-fm-color-typo-secondary"
23
+ }, Me = {
24
24
  class: "flex-1"
25
25
  }, Ee = {
26
26
  class: "flex-1 overflow-hidden min-h-[300px]"
27
27
  }, Te = {
28
28
  class: "flex gap-8 items-center justify-start"
29
- }, Be = /* @__PURE__ */ j({
29
+ }, Be = /* @__PURE__ */ P({
30
30
  __name: "Form",
31
31
  props: {
32
32
  initialValue: {}
@@ -37,20 +37,21 @@ const Fe = {
37
37
  }) {
38
38
  const x = p, k = G(), V = Y(k), g = q(V), s = pe(), b = Ce(), {
39
39
  categories: i
40
- } = K(), {
41
- t: d
42
- } = H(), $ = w(!1), m = w(!1), M = (t) => {
40
+ } = j(), {
41
+ t: c
42
+ } = H(), $ = w(!1), m = w(!1), S = (t) => {
43
43
  fe.isBoolean(t) ? m.value = t : m.value = !m.value;
44
- }, c = w(W(x.initialValue)), S = w(""), E = B(() => {
44
+ }, u = w(W(x.initialValue)), M = w(""), E = B(() => {
45
45
  var t;
46
- return ((t = i.value.find((a) => a.id === c.value.id)) == null ? void 0 : t.items) || [];
46
+ return ((t = i.value.find((a) => a.id === u.value.id)) == null ? void 0 : t.items) || [];
47
47
  }), n = [{
48
48
  accessorKey: "name",
49
- header: () => d("menu.category.products.columns.name"),
50
- enableSorting: !1,
51
- meta: {
52
- width: "auto"
53
- }
49
+ header: () => c("menu.category.products.columns.name"),
50
+ enableSorting: !1
51
+ }, {
52
+ accessorKey: "code",
53
+ header: () => c("menu.category.products.columns.code"),
54
+ enableSorting: !1
54
55
  }, {
55
56
  id: "actions",
56
57
  size: 52,
@@ -63,57 +64,57 @@ const Fe = {
63
64
  const a = t.row.original;
64
65
  return z("div", {
65
66
  class: "flex justify-end"
66
- }, [z(P.FmIcon, {
67
- name: "edit",
67
+ }, [z(K.FmButton, {
68
+ icon: "edit",
68
69
  outline: !0,
69
- class: "cursor-pointer",
70
- color: "neutral-gray-400",
71
- onClick: R(async () => {
70
+ variant: "tertiary",
71
+ textColor: "neutral-gray-400",
72
+ onClick: A(async () => {
72
73
  await _(a);
73
74
  }, ["stop", "prevent"])
74
75
  })]);
75
76
  }
76
77
  }];
77
78
  async function l() {
78
- await b.create(c.value.id);
79
+ await b.create(u.value.id);
79
80
  }
80
81
  async function _(t) {
81
82
  await b.update(t._id);
82
83
  }
83
- const N = B(() => s.version === A.F_MENU_VERSION.enum.v4);
84
+ const N = B(() => s.version === I.F_MENU_VERSION.enum.v4);
84
85
  async function U(t) {
85
86
  await b.rearrange(t.map((a) => a._id));
86
87
  }
87
- const r = ke(() => c.value.name !== x.initialValue.name, () => {
88
+ const r = ke(() => u.value.name !== x.initialValue.name, () => {
88
89
  m.value = !1;
89
90
  });
90
91
  async function D() {
91
- const t = s.categories.find((I) => I._id === c.value.id), {
92
+ const t = s.categories.find((R) => R._id === u.value.id), {
92
93
  updateMenu: a
93
94
  } = g;
94
95
  await a({
95
- module: A.F_MENU_MODULE_V4_KEY.enum.category,
96
+ module: I.F_MENU_MODULE_V4_KEY.enum.category,
96
97
  operation: ee.F_OPERATION_TYPE.update,
97
98
  data: {
98
99
  ...t,
99
- name: c.value.name ?? (t == null ? void 0 : t.name)
100
+ name: u.value.name ?? (t == null ? void 0 : t.name)
100
101
  }
101
- }, c.value.name), M(!1);
102
+ }, u.value.name), S(!1);
102
103
  }
103
104
  return re(() => m.value, () => {
104
- m.value && (c.value = W(x.initialValue));
105
+ m.value && (u.value = W(x.initialValue));
105
106
  }), f({
106
- trigger: M,
107
+ trigger: S,
107
108
  show: m
108
109
  }), (t, a) => {
109
- const I = y("FmTextField"), oe = y("FmButton"), ne = y("FmSearch"), le = y("FmTable"), J = y("fm-button"), se = y("fm-side-sheet");
110
+ const R = y("FmTextField"), oe = y("FmButton"), ne = y("FmSearch"), le = y("FmTable"), J = y("fm-button"), se = y("fm-side-sheet");
110
111
  return h(), T(Z, null, [ie(t.$slots, "default", {
111
- trigger: M
112
- }), u(se, {
112
+ trigger: S
113
+ }), d(se, {
113
114
  id: "group-form",
114
115
  modelValue: m.value,
115
116
  "onUpdate:modelValue": a[4] || (a[4] = (C) => m.value = C),
116
- "is-container": e(P).FmForm,
117
+ "is-container": e(K).FmForm,
117
118
  "is-container-props": {
118
119
  onValidationSuccess: D,
119
120
  blameFormChildOnValidationFailed: !0
@@ -122,56 +123,56 @@ const Fe = {
122
123
  "z-index": 50,
123
124
  "onOn:clickedAway": e(r)
124
125
  }, {
125
- "side-sheet-header": v(() => [o("p", Fe, L(e(d)("menu.category.title")), 1)]),
126
- "side-sheet-footer": v(() => [o("div", Te, [u(J, {
127
- label: e(d)("menu.common.actions.update"),
126
+ "side-sheet-header": v(() => [o("p", Fe, L(e(c)("menu.category.title")), 1)]),
127
+ "side-sheet-footer": v(() => [o("div", Te, [d(J, {
128
+ label: e(c)("menu.common.actions.update"),
128
129
  loading: $.value,
129
130
  size: "lg",
130
131
  type: "submit",
131
132
  variant: "primary",
132
- disabled: !c.value.id
133
- }, null, 8, ["label", "loading", "disabled"]), u(J, {
134
- label: e(d)("menu.common.actions.cancel"),
133
+ disabled: !u.value.id
134
+ }, null, 8, ["label", "loading", "disabled"]), d(J, {
135
+ label: e(c)("menu.common.actions.cancel"),
135
136
  size: "lg",
136
137
  variant: "tertiary",
137
138
  onClick: a[3] || (a[3] = () => m.value = !1)
138
139
  }, null, 8, ["label"])])]),
139
- default: v(() => [o("div", Ve, [u(X, {
140
- title: e(d)("menu.category.detail")
140
+ default: v(() => [o("div", Ve, [d(X, {
141
+ title: e(c)("menu.category.detail")
141
142
  }, {
142
- default: v(() => [u(I, {
143
- label: e(d)("menu.category.name"),
144
- modelValue: c.value.name,
145
- "onUpdate:modelValue": a[0] || (a[0] = (C) => c.value.name = C),
146
- disabled: !c.value.id,
143
+ default: v(() => [d(R, {
144
+ label: e(c)("menu.category.name"),
145
+ modelValue: u.value.name,
146
+ "onUpdate:modelValue": a[0] || (a[0] = (C) => u.value.name = C),
147
+ disabled: !u.value.id,
147
148
  rules: [e(we)]
148
149
  }, null, 8, ["label", "modelValue", "disabled", "rules"])]),
149
150
  _: 1
150
- }, 8, ["title"]), u(X, {
151
- title: e(d)("menu.category.products.title"),
151
+ }, 8, ["title"]), d(X, {
152
+ title: e(c)("menu.category.products.title"),
152
153
  class: "flex-1 min-h-0",
153
154
  shrinkable: !0
154
155
  }, {
155
- "append-title": v(() => [u(oe, {
156
- label: e(d)("menu.category.products.add"),
156
+ "append-title": v(() => [d(oe, {
157
+ label: e(c)("menu.category.products.add"),
157
158
  variant: "secondary",
158
159
  "prepend-icon": "add",
159
160
  "text-color": "primary",
160
161
  "border-color": "primary",
161
162
  onClick: l
162
163
  }, null, 8, ["label"])]),
163
- default: v(() => [o("div", $e, [o("div", Me, L(e(d)("menu.category.products.linked_count", {
164
+ default: v(() => [o("div", $e, [o("div", Se, L(e(c)("menu.category.products.linked_count", {
164
165
  count: E.value.length
165
- })), 1), o("div", Se, [u(ne, {
166
- placeholder: e(d)("menu.common.actions.search"),
167
- modelValue: S.value,
168
- "onUpdate:modelValue": a[1] || (a[1] = (C) => S.value = C)
169
- }, null, 8, ["placeholder", "modelValue"])])]), o("div", Ee, [u(le, {
166
+ })), 1), o("div", Me, [d(ne, {
167
+ placeholder: e(c)("menu.common.actions.search"),
168
+ modelValue: M.value,
169
+ "onUpdate:modelValue": a[1] || (a[1] = (C) => M.value = C)
170
+ }, null, 8, ["placeholder", "modelValue"])])]), o("div", Ee, [d(le, {
170
171
  "column-defs": n,
171
172
  draggable: N.value,
172
173
  "page-size": E.value.length,
173
174
  "row-data": E.value,
174
- "search-value": S.value,
175
+ "search-value": M.value,
175
176
  "shrink-at": !1,
176
177
  "hide-footer": "",
177
178
  "pin-header-row": "",
@@ -195,15 +196,15 @@ const Fe = {
195
196
  class: "flex-1 flex flex-col min-h-0"
196
197
  }, De = {
197
198
  class: "p-8"
198
- }, Ie = {
199
+ }, Re = {
199
200
  class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
200
- }, Re = ["onClick"], Ae = {
201
+ }, Ae = ["onClick"], Ie = {
201
202
  class: "flex-1 space-y-4"
202
- }, Pe = {
203
+ }, Ke = {
203
204
  class: "fm-typo-en-body-lg-600"
204
- }, je = {
205
+ }, Pe = {
205
206
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
206
- }, Ke = /* @__PURE__ */ j({
207
+ }, je = /* @__PURE__ */ P({
207
208
  __name: "CategoryTable",
208
209
  setup(p) {
209
210
  const f = te(), F = G(), x = Y(F), k = q(x), V = ae({
@@ -211,9 +212,9 @@ const Fe = {
211
212
  menuLoader: k
212
213
  }), {
213
214
  categories: g
214
- } = K(), s = w(""), b = B(() => g.value.filter((n) => n.name.toLowerCase().includes(s.value.toLowerCase()))), {
215
+ } = j(), s = w(""), b = B(() => g.value.filter((n) => n.name.toLowerCase().includes(s.value.toLowerCase()))), {
215
216
  t: i
216
- } = H(), d = w([{
217
+ } = H(), c = w([{
217
218
  accessorKey: "name",
218
219
  header: () => i("menu.category.columns.title"),
219
220
  enableSorting: !1,
@@ -243,12 +244,12 @@ const Fe = {
243
244
  const l = n.row.original;
244
245
  return z("div", {
245
246
  class: "flex justify-end"
246
- }, [z(P.FmButton, {
247
+ }, [z(K.FmButton, {
247
248
  icon: "delete",
248
249
  disabled: !l.id,
249
250
  variant: "tertiary",
250
251
  textColor: "neutral-gray-400",
251
- onClick: R(async () => {
252
+ onClick: A(async () => {
252
253
  await $(l);
253
254
  }, ["stop", "prevent"])
254
255
  })]);
@@ -278,7 +279,7 @@ const Fe = {
278
279
  }
279
280
  }).onPrimary(async () => {
280
281
  await k.updateMenu({
281
- module: A.F_MENU_MODULE_V4_KEY.enum.category,
282
+ module: I.F_MENU_MODULE_V4_KEY.enum.category,
282
283
  operation: ee.F_OPERATION_TYPE.delete,
283
284
  data: n.id
284
285
  }, n.name, !0);
@@ -288,16 +289,16 @@ const Fe = {
288
289
  const l = n.map((_) => _.id).filter((_) => !!_);
289
290
  await V.rearrange(l);
290
291
  }
291
- const M = ce();
292
- async function c(n) {
293
- xe(M, Le, {
292
+ const S = ce();
293
+ async function u(n) {
294
+ xe(S, Le, {
294
295
  initialValue: n
295
296
  });
296
297
  }
297
- const S = he(), E = B(() => S.breakpoints.value.xs);
298
+ const M = he(), E = B(() => M.breakpoints.value.xs);
298
299
  return (n, l) => {
299
300
  const _ = y("FmSearch"), N = y("FmTable"), U = y("FmButton");
300
- return E.value ? (h(), T("div", Ue, [o("div", De, [u(_, {
301
+ return E.value ? (h(), T("div", Ue, [o("div", De, [d(_, {
301
302
  autofocus: "",
302
303
  modelValue: s.value,
303
304
  "onUpdate:modelValue": l[2] || (l[2] = (r) => s.value = r),
@@ -305,19 +306,19 @@ const Fe = {
305
306
  placeholder: e(i)("menu.common.labels.search_placeholder", {
306
307
  type: "categories"
307
308
  })
308
- }, null, 8, ["modelValue", "placeholder"])]), o("div", Ie, [(h(!0), T(Z, null, ue(b.value, (r) => (h(), T("div", {
309
+ }, null, 8, ["modelValue", "placeholder"])]), o("div", Re, [(h(!0), T(Z, null, ue(b.value, (r) => (h(), T("div", {
309
310
  key: r.id || "",
310
311
  class: "flex flex-row py-12 px-16",
311
- onClick: (D) => c(r)
312
- }, [o("div", Ae, [o("p", Pe, L(r.name), 1), o("p", je, L(e(i)(r.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
312
+ onClick: (D) => u(r)
313
+ }, [o("div", Ie, [o("p", Ke, L(r.name), 1), o("p", Pe, L(e(i)(r.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
313
314
  count: r.items.length
314
- })), 1)]), u(U, {
315
+ })), 1)]), d(U, {
315
316
  "text-color": e(be).NeutralGray400,
316
317
  variant: e(Q).Tertiary,
317
318
  "prepend-icon": "delete",
318
319
  disabled: !r.id,
319
- onClick: R((D) => $(r), ["stop"])
320
- }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Re))), 128))])])) : (h(), T("div", Oe, [o("div", ze, [o("div", Ne, [u(_, {
320
+ onClick: A((D) => $(r), ["stop"])
321
+ }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ae))), 128))])])) : (h(), T("div", Oe, [o("div", ze, [o("div", Ne, [d(_, {
321
322
  modelValue: s.value,
322
323
  "onUpdate:modelValue": l[0] || (l[0] = (r) => s.value = r),
323
324
  autofocus: "",
@@ -325,9 +326,9 @@ const Fe = {
325
326
  placeholder: e(i)("menu.common.labels.search_placeholder", {
326
327
  type: e(i)("menu.category.title")
327
328
  })
328
- }, null, 8, ["modelValue", "placeholder"])])]), u(ge, null, {
329
- default: v(() => [u(N, {
330
- "column-defs": d.value,
329
+ }, null, 8, ["modelValue", "placeholder"])])]), d(ge, null, {
330
+ default: v(() => [d(N, {
331
+ "column-defs": c.value,
331
332
  draggable: !0,
332
333
  "page-size": e(g).length,
333
334
  "row-data": e(g),
@@ -336,25 +337,25 @@ const Fe = {
336
337
  "hide-footer": "",
337
338
  "pin-header-row": "",
338
339
  onDndChanged: m,
339
- onRowClick: l[1] || (l[1] = (r) => c(r.original))
340
+ onRowClick: l[1] || (l[1] = (r) => u(r.original))
340
341
  }, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
341
342
  _: 1
342
343
  })]));
343
344
  };
344
345
  }
345
- }), Ye = { class: "flex-1 flex justify-between gap-8 pl-8" }, qe = { class: "flex items-center" }, Ge = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, He = { class: "fm-typo-en-body-md-600 font-semibold" }, st = /* @__PURE__ */ j({
346
+ }), Ye = { class: "flex-1 flex justify-between gap-8 pl-8" }, qe = { class: "flex items-center" }, Ge = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, He = { class: "fm-typo-en-body-md-600 font-semibold" }, st = /* @__PURE__ */ P({
346
347
  __name: "Category",
347
348
  setup(p) {
348
- const f = te(), F = G(), x = Y(F), k = q(x), V = ae({ dialog: f, menuLoader: k }), { categories: g } = K(), { t: s } = H();
349
+ const f = te(), F = G(), x = Y(F), k = q(x), V = ae({ dialog: f, menuLoader: k }), { categories: g } = j(), { t: s } = H();
349
350
  function b() {
350
351
  V.create();
351
352
  }
352
353
  const i = B(() => g.value.length);
353
- return me().resetOnMount(), (d, $) => (h(), O(_e, {
354
+ return me().resetOnMount(), (c, $) => (h(), O(_e, {
354
355
  heading: e(s)("menu.category.title")
355
356
  }, {
356
357
  default: v(() => [
357
- e(g).length > 0 ? (h(), O(Ke, { key: 0 })) : (h(), O(e(ye), {
358
+ e(g).length > 0 ? (h(), O(je, { key: 0 })) : (h(), O(e(ye), {
358
359
  key: 1,
359
360
  action: {
360
361
  text: e(s)("menu.category.add"),
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as le, ref as h, computed as w, resolveComponent as x, openBlock as g, createBlock as P, unref as t, withCtx as c, createElementVNode as a, createVNode as i, toDisplayString as V, createElementBlock as $, Fragment as z, renderList as q, createTextVNode as be, withModifiers as se, createCommentVNode as ce, h as R } from "vue";
2
- import { d as Z, b as ee, h as ue, u as ye, i as ke, a as he, _ as xe, f as Ce, k as we, j as Ve } from "./app-DrXmwwGN.js";
2
+ import { d as Z, b as ee, h as ue, u as ye, i as ke, a as he, _ as xe, f as Ce, k as we, j as Ve } from "./app-yBwn3Q3W.js";
3
3
  import { components as de, useSnackbar as Fe, useDialog as Se } from "@feedmepos/ui-library";
4
4
  import { V as $e } from "./vuedraggable-WU01qJgi.js";
5
- import { _ as Ie } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-B8B1lptL.js";
5
+ import { _ as Ie } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-CqUHtPyu.js";
6
6
  import { useI18n as ie } from "@feedmepos/mf-common";
7
7
  import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
8
- import { u as me, l as pe } from "./lodash-CI_4MWrJ.js";
8
+ import { u as me, l as pe } from "./lodash-CSvaBy90.js";
9
9
  const Oe = { class: "flex items-center gap-8" }, De = { class: "grow" }, Ne = { class: "space-y-32" }, Le = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, Ue = { class: "px-16 py-8 w-[40%]" }, Ge = { class: "px-16 py-8 grow" }, Ke = { class: "flex items-center border-b border-b-fm-color-neutral-gray-100" }, Be = { class: "px-16 py-8 w-[40%]" }, Ee = { class: "px-16 py-8 grow" }, Me = { class: "space-y-16" }, ze = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Te = { class: "flex gap-8 items-center justify-start" }, Re = /* @__PURE__ */ le({
10
10
  __name: "CookingGuideStepDialog",
11
11
  emits: ["onComplete"],
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-C8D1a1lx.js";
1
+ import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-D1HIb29M.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as m, ref as c, openBlock as i, createBlock as d, unref as n, withCtx as a, createVNode as l, createElementVNode as e, toDisplayString as p, createCommentVNode as u } from "vue";
2
- import { _ as f, f as _ } from "./app-DrXmwwGN.js";
3
- import { _ as g } from "./Group.vue_vue_type_script_setup_true_lang-C8D1a1lx.js";
4
- import { a as y } from "./menu-CkoJ5Q72.js";
5
- import { A as b } from "./item-D5XPIa8E.js";
2
+ import { _ as f, f as _ } from "./app-yBwn3Q3W.js";
3
+ import { _ as g } from "./Group.vue_vue_type_script_setup_true_lang-D1HIb29M.js";
4
+ import { a as y } from "./menu-BOM7xIQU.js";
5
+ import { A as b } from "./item-B_Zcuof9.js";
6
6
  import { useI18n as h } from "@feedmepos/mf-common";
7
7
  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" }, S = /* @__PURE__ */ m({
8
8
  __name: "Group",