@feedmepos/mf-menu 0.31.17-dev → 0.31.17

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 (67) hide show
  1. package/dist/{App-Bi92tsdR.js → App-C0zWv8Bb.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C3rIskDF.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BlBfa-ly.js} +2 -2
  3. package/dist/{Catalog-d_9KGaWO.js → Catalog-hTR0c1zS.js} +18 -18
  4. package/dist/{Category-DCjOc3ks.js → Category-BTpAWhsI.js} +36 -36
  5. package/dist/{Category-BO0EYYGP.js → Category-CxDoeXi_.js} +24 -24
  6. package/dist/{CookingGuide-B3YHoKP-.js → CookingGuide-C87lhZ67.js} +56 -56
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B454jEg0.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BEKiJBLy.js} +1 -1
  8. package/dist/{Group-BTmRo5b4.js → Group-D1kUgRjF.js} +3 -3
  9. package/dist/{Group-Cj39szTY.js → Group-Dad3CsPD.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-CIZithwK.js → Group.vue_vue_type_script_setup_true_lang-C-AS_gUD.js} +54 -54
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DubOzDU3.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dz9BUoZe.js} +6 -6
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C2TnjKpu.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BfZuETkY.js} +317 -317
  13. package/dist/{Ingredient-BTV0a-Tz.js → Ingredient-CL0V9EvP.js} +52 -52
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C7X1K-jY.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BFTt-8OI.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-Cyb0Eex4.js → LinkProductSideSheet-CWMNlFCF.js} +14 -14
  16. package/dist/{MenuSetting-DozrYwzG.js → MenuSetting-DA35bTTq.js} +11 -11
  17. package/dist/{PrintRoute-B2kOXN6N.js → PrintRoute-B49FDrP6.js} +26 -26
  18. package/dist/{Product-DCqWb9i2.js → Product-CBGfSsYA.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DFaQiLsv.js → Product.vue_vue_type_script_setup_true_lang-B3kyqD2S.js} +113 -113
  20. package/dist/ProductInternalTools-DiISILIn.js +415 -0
  21. package/dist/Products-BDvqmjZI.js +270 -0
  22. package/dist/{Publish-BzreviuZ.js → Publish-1zBRSD7U.js} +37 -37
  23. package/dist/{Recipe-BgJFJ4Dx.js → Recipe-D0VAcSN-.js} +25 -25
  24. package/dist/{Scheduler-Xp0G2vel.js → Scheduler-8BDLlHCV.js} +13 -13
  25. package/dist/{ServingSequence-CzA1hyup.js → ServingSequence-Bh3DhN3i.js} +36 -36
  26. package/dist/{Setting-DAkorx7V.js → Setting-BdSJCn6q.js} +24 -24
  27. package/dist/{Subcategory-BCbM_yd4.js → Subcategory-CBfEsTKy.js} +39 -39
  28. package/dist/{Takeaway-DKpjh1Ij.js → Takeaway-WPQ-ow5H.js} +1 -1
  29. package/dist/{Takeaway-DtnIyLkz.js → Takeaway-aLJ1QKbm.js} +12 -12
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-PAB0AAfO.js → Takeaway.vue_vue_type_script_setup_true_lang-ZYP7hH6p.js} +25 -25
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CDABZaRa.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-aHMZigPA.js} +116 -116
  32. package/dist/{Unit-Da9V4qF7.js → Unit-Csan3-PW.js} +8 -8
  33. package/dist/{Variant-ONSE3GDp.js → Variant-aYCqqz9A.js} +18 -18
  34. package/dist/{_id_-Dlu5oAk9.js → _id_-BL-Q5Nck.js} +19 -19
  35. package/dist/{app-nWiUbcbv.js → app-CV3Y87bf.js} +262 -247
  36. package/dist/{app-BNF756eJ.js → app-CngqdPlx.js} +1 -1
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/app.d.ts +12 -0
  39. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUpdatePreview.vue.d.ts +33 -0
  40. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUploadDialog.vue.d.ts +28 -0
  41. package/dist/apps/mf-menu/src/utils/batchProcessor.d.ts +33 -0
  42. package/dist/apps/mf-menu/src/utils/images.d.ts +44 -0
  43. package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
  44. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/assets/{linked-status-C195HQ8m.js → linked-status-CQPFAl1J.js} +2 -2
  46. package/dist/assets/{override-menu-AQwvxLhn.js → override-menu-DP9T_24q.js} +2 -2
  47. package/dist/assets/{validate-menu-BvGiRNmy.js → validate-menu-CcOso72D.js} +2 -2
  48. package/dist/{catalog-DJDsoY-2.js → catalog-ClQJMV9X.js} +1 -1
  49. package/dist/{catalogSetting-C8FvJ4OQ.js → catalogSetting-CXeRg55T.js} +1 -1
  50. package/dist/{category-Bf-qn7ic.js → category-_lR1fIWU.js} +1 -1
  51. package/dist/{currency-DMhhoVtl.js → currency-x_SA4GNt.js} +1 -1
  52. package/dist/{dayjs.min-BN8QQck7.js → dayjs.min-JzYVBtTX.js} +1 -1
  53. package/dist/{index-BWXnodS5.js → index-BaLeGLHZ.js} +23 -23
  54. package/dist/{index-DIDVppoP.js → index-Cb7zxMMe.js} +1 -1
  55. package/dist/{index-DWIFeRdA.js → index-Cjo_VHIT.js} +14 -14
  56. package/dist/{item-2jMu-J2m.js → item-E-Egz6v8.js} +1747 -1711
  57. package/dist/jszip.min-8UVTn3ZT.js +2393 -0
  58. package/dist/{menu-Dk9WJ37H.js → menu-CrEs_Qy-.js} +1 -1
  59. package/dist/{menu-CAzTKH28.js → menu-DYMiA6Oc.js} +156 -156
  60. package/dist/mf-menu.css +1 -1
  61. package/dist/{priceTier-BtHmZYAn.js → priceTier-Bs3jL4nk.js} +1 -1
  62. package/dist/{scheduler-R20M5JrX.js → scheduler-DxMNHPSa.js} +3 -3
  63. package/dist/{subcategory-CyDndVTK.js → subcategory-h4VL-0kK.js} +63 -63
  64. package/dist/{toExcel-DjH_qdTv.js → toExcel-DRJ3j3P7.js} +2 -2
  65. package/dist/{unit-BA6MtbAH.js → unit-D4v2m10X.js} +24 -24
  66. package/package.json +1 -1
  67. package/dist/Products-CybC3HCA.js +0 -2656
@@ -1,25 +1,25 @@
1
- import { defineComponent as ae, ref as w, computed as V, resolveComponent as x, createBlock as Y, openBlock as k, unref as i, withCtx as p, createElementVNode as a, createVNode as l, createElementBlock as I, toDisplayString as S, Fragment as z, renderList as J, withModifiers as le, createCommentVNode as ce, createTextVNode as fe, h as R } from "vue";
1
+ import { defineComponent as ae, ref as w, computed as V, resolveComponent as x, createBlock as Y, openBlock as k, unref as i, withCtx as p, createElementVNode as a, createVNode as l, createElementBlock as I, toDisplayString as S, Fragment as z, renderList as H, withModifiers as le, createCommentVNode as ce, createTextVNode as fe, h as R } from "vue";
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-nWiUbcbv.js";
6
- import { J as ee, K as me, M as re, I as oe, u as xe, Q as Ce, G as we } from "./menu-CAzTKH28.js";
5
+ import { _ as he } from "./app-CV3Y87bf.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-DYMiA6Oc.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-Cyb0Eex4.js";
10
+ import { L as Ve } from "./LinkProductSideSheet-CWMNlFCF.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" }, Me = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Te = { class: "flex gap-8 items-center justify-start" }, Be = /* @__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" }, 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({
14
14
  __name: "CookingGuideStepDialog",
15
15
  emits: ["onComplete"],
16
- setup(N, { expose: g, emit: Q }) {
16
+ setup(N, { 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 = Q;
22
+ const D = J;
23
23
  function L() {
24
24
  return {
25
25
  id: "",
@@ -80,7 +80,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
80
80
  C.value = !1;
81
81
  }
82
82
  );
83
- function M() {
83
+ function B() {
84
84
  $(), D("onComplete", {
85
85
  ...m.value,
86
86
  variables: F.value.reduce((v, { key: t, value: f }) => ({ ...v, [t]: f }), {})
@@ -96,7 +96,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
96
96
  "max-width": 560,
97
97
  "is-container": i(ue).FmForm,
98
98
  "is-container-props": {
99
- onValidationSuccess: M,
99
+ onValidationSuccess: B,
100
100
  blameFormChildOnValidationFailed: !0,
101
101
  class: "flex flex-col h-full"
102
102
  },
@@ -150,26 +150,26 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
150
150
  a("div", Le, S(i(u)("menu.cooking_guide.step_dialog.sections.variables.columns.key")), 1),
151
151
  a("div", Ne, S(i(u)("menu.cooking_guide.step_dialog.sections.variables.columns.value")), 1)
152
152
  ]),
153
- (k(!0), I(z, null, J(F.value, (T, B) => (k(), I("div", {
154
- key: B,
153
+ (k(!0), I(z, null, H(F.value, (T, M) => (k(), I("div", {
154
+ key: M,
155
155
  class: "flex items-center border-b border-b-fm-color-neutral-gray-100"
156
156
  }, [
157
157
  a("div", De, [
158
158
  l(_, {
159
- modelValue: F.value[B].key,
160
- "onUpdate:modelValue": (O) => F.value[B].key = O,
159
+ modelValue: F.value[M].key,
160
+ "onUpdate:modelValue": (O) => F.value[M].key = O,
161
161
  rules: [
162
162
  (O) => !!O || i(u)("menu.cooking_guide.step_dialog.sections.variables.validation.required"),
163
163
  (O) => !O || /^[a-z]+$/.test(O) || i(u)("menu.cooking_guide.step_dialog.sections.variables.validation.lowercase"),
164
- (O) => !O || F.value.findIndex((de) => de.key === O) === B || i(u)("menu.cooking_guide.step_dialog.sections.variables.validation.duplicate")
164
+ (O) => !O || F.value.findIndex((de) => de.key === O) === M || i(u)("menu.cooking_guide.step_dialog.sections.variables.validation.duplicate")
165
165
  ],
166
166
  placeholder: i(u)("menu.cooking_guide.step_dialog.sections.variables.placeholders.key")
167
167
  }, null, 8, ["modelValue", "onUpdate:modelValue", "rules", "placeholder"])
168
168
  ]),
169
169
  a("div", Ge, [
170
170
  l(_, {
171
- modelValue: F.value[B].value,
172
- "onUpdate:modelValue": (O) => F.value[B].value = O,
171
+ modelValue: F.value[M].value,
172
+ "onUpdate:modelValue": (O) => F.value[M].value = O,
173
173
  rules: [
174
174
  (O) => !!O || i(u)("menu.cooking_guide.step_dialog.sections.variables.validation.required")
175
175
  ],
@@ -180,7 +180,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
180
180
  icon: "delete",
181
181
  variant: "tertiary",
182
182
  "text-color": "neutral-gray-400",
183
- onClick: () => A(B)
183
+ onClick: () => A(M)
184
184
  }, null, 8, ["onClick"])
185
185
  ]))), 128))
186
186
  ])
@@ -192,8 +192,8 @@ 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", Me, [
196
- (k(!0), I(z, null, J(h.value, (T) => (k(), Y(P, {
195
+ a("div", Be, [
196
+ (k(!0), I(z, null, H(h.value, (T) => (k(), Y(P, {
197
197
  key: T.label,
198
198
  label: T.label,
199
199
  class: "text-fm-color-primary bg-fm-color-system-warning-100",
@@ -215,16 +215,16 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
215
215
  }, 8, ["modelValue", "header", "is-container", "is-container-props", "onOn:clickedAway"]);
216
216
  };
217
217
  }
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" }, Je = { class: "px-16 py-8 w-[200px] flex flex-col gap-8" }, Qe = /* @__PURE__ */ ae({
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: Q }) {
221
+ setup(N, { 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 = Q;
227
+ const D = J;
228
228
  function L() {
229
229
  return {
230
230
  productId: "",
@@ -244,7 +244,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
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((M) => M.id === h);
247
+ const K = m.value.overrides.findIndex((B) => B.id === h);
248
248
  s ? K < 0 ? m.value.overrides.push({
249
249
  id: h,
250
250
  variables: { [n]: s }
@@ -254,7 +254,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
254
254
  $(), D("onComplete", m.value);
255
255
  }
256
256
  return (h, n) => {
257
- const s = x("FmTextField"), K = x("FmSpacer"), M = x("FmButton"), v = x("FmDialog");
257
+ const s = x("FmTextField"), K = x("FmSpacer"), B = 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(M, {
270
+ l(B, {
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(M, {
277
+ l(B, {
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",
@@ -289,19 +289,19 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
289
289
  a("div", Pe, S(i(u)("menu.cooking_guide.step_override_dialog.columns.variables")), 1),
290
290
  a("div", qe, S(i(u)("menu.cooking_guide.step_override_dialog.columns.value")), 1)
291
291
  ]),
292
- (k(!0), I(z, null, J(E.value, (t) => (k(), I("div", {
292
+ (k(!0), I(z, null, H(E.value, (t) => (k(), I("div", {
293
293
  key: t.id,
294
294
  class: "flex border-t-2"
295
295
  }, [
296
296
  a("div", je, S(t.instruction), 1),
297
297
  a("div", Ye, [
298
- (k(!0), I(z, null, J(t.variables, (f, _) => (k(), I("div", {
298
+ (k(!0), I(z, null, H(t.variables, (f, _) => (k(), I("div", {
299
299
  key: _,
300
300
  class: "py-8 w-full text-ellipsis overflow-hidden whitespace-nowrap"
301
301
  }, S(_), 1))), 128))
302
302
  ]),
303
- a("div", Je, [
304
- (k(!0), I(z, null, J(t.variables, (f, _) => (k(), I("div", { key: _ }, [
303
+ a("div", He, [
304
+ (k(!0), I(z, null, H(t.variables, (f, _) => (k(), I("div", { key: _ }, [
305
305
  l(s, {
306
306
  "model-value": X(t.id, _.toString()),
307
307
  placeholder: f,
@@ -316,7 +316,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
316
316
  }, 8, ["modelValue"]);
317
317
  };
318
318
  }
319
- }), Xe = { class: "fm-typo-en-title-md-600" }, He = { class: "space-y-24" }, We = { class: "flex items-center" }, Ze = { class: "flex-1" }, eo = { class: "flex items-center gap-8" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "flex-1" }, no = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, io = { class: "px-16 py-8 flex-1 flex gap-4 overflow-auto min-w-0" }, lo = { class: "fm-typo-en-body-md-500" }, ao = { class: "px-16 py-8 flex gap-8" }, so = { class: "flex gap-8 items-center justify-start" }, uo = /* @__PURE__ */ ae({
319
+ }), Xe = { class: "fm-typo-en-title-md-600" }, Qe = { class: "space-y-24" }, We = { class: "flex items-center" }, Ze = { class: "flex-1" }, eo = { class: "flex items-center gap-8" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "flex-1" }, no = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, io = { class: "px-16 py-8 flex-1 flex gap-4 overflow-auto min-w-0" }, lo = { class: "fm-typo-en-body-md-500" }, ao = { class: "px-16 py-8 flex gap-8" }, so = { class: "flex gap-8 items-center justify-start" }, uo = /* @__PURE__ */ ae({
320
320
  __name: "CookingGuideDialog",
321
321
  props: {
322
322
  categorizedItems: {
@@ -329,7 +329,7 @@ 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: Q }) {
332
+ setup(N, { expose: g, emit: J }) {
333
333
  const u = N;
334
334
  g({
335
335
  showModal: U,
@@ -383,11 +383,11 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
383
383
  }
384
384
  function n(e) {
385
385
  const o = e.reduce((r, c) => (r[c._id] = r[c._id] ?? [], c.combinationKey && (r[c._id] = [...r[c._id], c.combinationKey]), r), {}), b = Object.entries(o).reduce(
386
- (r, [c, H]) => {
386
+ (r, [c, Q]) => {
387
387
  var te;
388
- return r = H.length > 0 ? [
388
+ return r = Q.length > 0 ? [
389
389
  ...r,
390
- ...H.map((ne) => {
390
+ ...Q.map((ne) => {
391
391
  var ie;
392
392
  return {
393
393
  productId: c,
@@ -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 M({ productId: e, combinationKey: o, overrides: b }) {
419
+ function B({ 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
@@ -439,13 +439,13 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
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 = [
441
441
  ...e,
442
- ...c.variant.variantCombinations.map((H) => ({
442
+ ...c.variant.variantCombinations.map((Q) => ({
443
443
  categoryId: o.id,
444
444
  categoryName: o.name,
445
445
  itemId: c._id,
446
446
  itemCode: c.code,
447
- itemName: `${c.name} - ${H.codeName}`,
448
- combinationKey: H.combinationKey
447
+ itemName: `${c.name} - ${Q.codeName}`,
448
+ combinationKey: Q.combinationKey
449
449
  }))
450
450
  ] : e.push({
451
451
  categoryId: o.id,
@@ -455,17 +455,17 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
455
455
  itemName: c.name
456
456
  });
457
457
  return e;
458
- }, [])), B = V(() => T.value.filter((e) => {
458
+ }, [])), M = V(() => T.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(() => {
462
462
  const e = q.value.toLowerCase();
463
- return e ? B.value.filter(
463
+ return e ? M.value.filter(
464
464
  (o) => {
465
465
  var b;
466
466
  return ((b = o.itemCode) == null ? void 0 : b.toLowerCase().includes(e)) || o.itemName.toLowerCase().includes(e) || o.categoryName.toLowerCase().includes(e);
467
467
  }
468
- ) : B.value;
468
+ ) : M.value;
469
469
  }), de = V(() => O.value.reduce(
470
470
  (e, o) => {
471
471
  const b = e.findIndex((r) => r.id === o.categoryId);
@@ -479,7 +479,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
479
479
  }, e;
480
480
  },
481
481
  []
482
- )), ge = Q;
482
+ )), ge = J;
483
483
  w();
484
484
  const _e = pe(
485
485
  () => !me.isEqual(C.value, d.value),
@@ -491,7 +491,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
491
491
  E(), ge("onSave", d.value);
492
492
  }
493
493
  return (e, o) => {
494
- const b = x("FmTextField"), r = x("FmButton"), c = x("FmCardSection"), H = x("FmCard"), te = x("FmSpacer"), ne = x("FmSearch"), ie = x("FmSideSheet");
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
497
  modelValue: L.value,
@@ -526,7 +526,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
526
526
  ])
527
527
  ]),
528
528
  default: p(() => [
529
- a("div", He, [
529
+ a("div", Qe, [
530
530
  l(Z, {
531
531
  title: i(t)("menu.cooking_guide.dialog.sections.guide_detail.title")
532
532
  }, {
@@ -565,7 +565,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
565
565
  "item-key": "id"
566
566
  }, {
567
567
  item: p(({ element: y, index: j }) => [
568
- l(H, {
568
+ l(Q, {
569
569
  variant: "outlined",
570
570
  class: "rounded-md mb-16 items-center",
571
571
  horizontal: "",
@@ -643,11 +643,11 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
643
643
  }, null, 8, ["modelValue", "placeholder"])
644
644
  ])
645
645
  ]),
646
- (k(!0), I(z, null, J(de.value, (y) => (k(), I("div", {
646
+ (k(!0), I(z, null, H(de.value, (y) => (k(), I("div", {
647
647
  key: y.id || ""
648
648
  }, [
649
649
  a("div", no, S(y.name), 1),
650
- (k(!0), I(z, null, J(y.items, (j) => (k(), I("div", {
650
+ (k(!0), I(z, null, H(y.items, (j) => (k(), I("div", {
651
651
  key: j.itemId,
652
652
  class: "flex items-center"
653
653
  }, [
@@ -675,15 +675,15 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
675
675
  ]),
676
676
  _: 1
677
677
  }, 8, ["modelValue", "header", "is-container", "is-container-props", "onOn:clickedAway"]),
678
- l(Be, {
678
+ l(Me, {
679
679
  ref_key: "cookingGuideStepDialogRef",
680
680
  ref: $,
681
681
  onOnComplete: A
682
682
  }, null, 512),
683
- l(Qe, {
683
+ l(Je, {
684
684
  ref_key: "cookingGuideStepOverrideDialogRef",
685
685
  ref: s,
686
- onOnComplete: M
686
+ onOnComplete: B
687
687
  }, null, 512)
688
688
  ], 64);
689
689
  };
@@ -727,7 +727,7 @@ const po = {
727
727
  setup(N) {
728
728
  const {
729
729
  t: g
730
- } = se(), Q = V(() => [{
730
+ } = se(), J = V(() => [{
731
731
  accessorKey: "name",
732
732
  header: () => g("menu.cooking_guide.table.columns.name"),
733
733
  cell: (n) => n.getValue(),
@@ -812,7 +812,7 @@ 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"), M = x("FmTable"), v = x("FmButton"), t = x("FmListItem"), f = x("FmList");
815
+ const K = x("FmSearch"), B = 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
  }, {
@@ -835,8 +835,8 @@ const po = {
835
835
  }, null, 8, ["modelValue", "placeholder"])]), l(he, {
836
836
  class: "xs:hidden block"
837
837
  }, {
838
- default: p(() => [l(M, {
839
- "column-defs": Q.value,
838
+ default: p(() => [l(B, {
839
+ "column-defs": J.value,
840
840
  loading: D.value,
841
841
  "page-size": C.value.length,
842
842
  "row-data": C.value,
@@ -851,7 +851,7 @@ const po = {
851
851
  class: "w-full px-16 xs:block hidden flex-1 min-h-0 overflow-scroll pb-64",
852
852
  separator: ""
853
853
  }, {
854
- default: p(() => [(k(!0), I(z, null, J(h.value, (_) => (k(), Y(t, {
854
+ default: p(() => [(k(!0), I(z, null, H(h.value, (_) => (k(), Y(t, {
855
855
  key: _._id,
856
856
  label: _.name,
857
857
  style: {
@@ -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-CAzTKH28.js";
4
+ import { u as ly } from "./menu-DYMiA6Oc.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-CIZithwK.js";
6
- import { A as b } from "./item-2jMu-J2m.js";
7
- import { a as h } from "./menu-Dk9WJ37H.js";
5
+ import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-C-AS_gUD.js";
6
+ import { A as b } from "./item-E-Egz6v8.js";
7
+ import { a as h } from "./menu-CrEs_Qy-.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-CIZithwK.js";
1
+ import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-C-AS_gUD.js";
2
2
  export {
3
3
  f as default
4
4
  };