@feedmepos/mf-menu 0.32.41-dev → 0.32.41-dev.2

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 (66) hide show
  1. package/dist/{App-BBcgfTlG.js → App-mCGGnjeS.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-OrSFDz8s.js → ApplyProduct.vue_vue_type_script_setup_true_lang-MWoYiClD.js} +3 -3
  3. package/dist/{Catalog-16-XsXPU.js → Catalog-CM2wnQ4l.js} +44 -44
  4. package/dist/{Category-CTntkYfO.js → Category-Bp9tGWwJ.js} +24 -24
  5. package/dist/{Category-CZGmamNx.js → Category-bsL9IQ5n.js} +24 -24
  6. package/dist/{CookingGuide-DbMIe9_K.js → CookingGuide-Cy0Kt6Ys.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-KbbZAmIv.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CX4s7NYy.js} +1 -1
  8. package/dist/{Group-DIIuJACV.js → Group-0hMArGNs.js} +1 -1
  9. package/dist/{Group-BZd7YYFK.js → Group-BKFZMvZg.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BrjgJ3NE.js → Group.vue_vue_type_script_setup_true_lang-st4plK2R.js} +18 -18
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DxjmWrLI.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-8zW2KIMn.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DOaMHGe_.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-UhuYuL-A.js} +2986 -2985
  13. package/dist/{Ingredient-Bmt5K9iD.js → Ingredient-CvE0xujL.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-GsuKEhFQ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-iEhZ4_5G.js} +2 -2
  15. package/dist/{LinkProductSideSheet-bUXGmrKI.js → LinkProductSideSheet-CbppLDSB.js} +45 -45
  16. package/dist/{MenuSetting-BX0ptcTg.js → MenuSetting-CQ9HnQKx.js} +47 -47
  17. package/dist/{PrintRoute-Diwh3HTz.js → PrintRoute-Cc81zV6Q.js} +39 -39
  18. package/dist/{Product-Dujeig8N.js → Product-kFoTn7zI.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CYkZCser.js → Product.vue_vue_type_script_setup_true_lang-BVF9SBEL.js} +128 -128
  20. package/dist/{ProductInternalTools-klTjOQCE.js → ProductInternalTools-CwxPRqTy.js} +66 -66
  21. package/dist/Products-IBe-R8XN.js +334 -0
  22. package/dist/{Publish-NZPrvmyi.js → Publish-BE-PPNO8.js} +29 -29
  23. package/dist/{Recipe-Dlw0C6gW.js → Recipe-Ddts2It2.js} +24 -24
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CYx6T762.js → RuleView.vue_vue_type_script_setup_true_lang-DQjE4JRi.js} +295 -295
  25. package/dist/{Scheduler-DsQdgoLu.js → Scheduler-CqP0Ha2K.js} +11 -11
  26. package/dist/{ServingSequence-B9z8EaGP.js → ServingSequence-WpneAUiB.js} +44 -44
  27. package/dist/{Setting-ec0DdRF7.js → Setting-CNGZaUUT.js} +17 -17
  28. package/dist/{Subcategory-ChpQhSVG.js → Subcategory-BVN0OH_q.js} +51 -51
  29. package/dist/{Takeaway-D3FlVQp7.js → Takeaway-BtnGTcvW.js} +1 -1
  30. package/dist/{Takeaway-D4DEkAmo.js → Takeaway-LFslRotB.js} +13 -13
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DSao2Kxm.js → Takeaway.vue_vue_type_script_setup_true_lang-CJZfd5JB.js} +28 -28
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Deu4-qaj.js → Thumbnail.vue_vue_type_script_setup_true_lang-CI8eK98T.js} +27 -27
  33. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-Dglm0-9O.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CfA400oN.js} +4 -4
  34. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DVJb9jBY.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-SNBrW4Or.js} +12 -12
  35. package/dist/{Unit-odR08MnE.js → Unit-kL0Wjfb6.js} +8 -8
  36. package/dist/{Variant-4KiJoM6w.js → Variant-Cj82yGYE.js} +24 -24
  37. package/dist/{_id_-Catkkx7h.js → _id_-B-guZ25K.js} +28 -28
  38. package/dist/app-D4se7Sr4.js +1643 -0
  39. package/dist/{app-Ba81wWHP.js → app-DiVDYcc9.js} +1 -1
  40. package/dist/app.js +2 -2
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-pcUpPyqX.js → linked-status-C4nECq-3.js} +2 -2
  43. package/dist/assets/{menu-export-jKixYJMZ.js → menu-export-PPICN1VA.js} +2 -2
  44. package/dist/assets/{override-menu-B7PRcoFy.js → override-menu-BaYdZfDk.js} +2 -2
  45. package/dist/assets/{validate-menu-BP-GZf3a.js → validate-menu-DCyVSa7R.js} +2 -2
  46. package/dist/{catalog-DzVVQnuB.js → catalog-BTsgJdVe.js} +1 -1
  47. package/dist/{catalogSetting-CVpP5Ffj.js → catalogSetting-BNYPChMH.js} +1 -1
  48. package/dist/{currency-BvFATAPr.js → currency-2KuoTCt5.js} +1 -1
  49. package/dist/dayjs.min-BE8PtbAQ.js +7 -0
  50. package/dist/{index-DX-MOpoZ.js → index-GaHNc4iH.js} +43 -43
  51. package/dist/{index-BxTVwMqI.js → index-UthDVOpX.js} +31 -31
  52. package/dist/{index-CLbcP_tB.js → index-fLVJt8Pt.js} +1 -1
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-kAgODQk6.js → index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js} +242 -267
  54. package/dist/{item-DybTsHw-.js → item-DYsNPLH9.js} +14 -14
  55. package/dist/{jszip.min-BqfTPXF5.js → jszip.min-CLQSAAHL.js} +388 -387
  56. package/dist/{menu-DM97MTPH.js → menu-Btb1sPTh.js} +1 -1
  57. package/dist/{menuV2-MAWvzZYI.js → menuV2-Bfj5ljzI.js} +71 -71
  58. package/dist/{priceTier-DtbwffZ8.js → priceTier-DHp_DiBo.js} +1 -1
  59. package/dist/{rules-DjL44XM2.js → rules-B5QEx6OC.js} +11 -11
  60. package/dist/{scheduler-DdfAPCOy.js → scheduler-CI-LJfho.js} +29 -29
  61. package/dist/{toExcel-Bj7g8zi5.js → toExcel-CHdQxEnw.js} +2 -2
  62. package/dist/{unit-SsjSaoZy.js → unit-D53f5n16.js} +35 -35
  63. package/package.json +2 -1
  64. package/dist/Products-DrWglbo9.js +0 -291
  65. package/dist/app-DmWoLe5_.js +0 -363
  66. package/dist/dayjs.min-BdQPTGQm.js +0 -6
@@ -1,18 +1,18 @@
1
- import { defineComponent as le, ref as V, computed as F, resolveComponent as x, createBlock as T, openBlock as g, unref as n, withCtx as p, createElementVNode as a, createVNode as l, createElementBlock as E, toDisplayString as S, Fragment as z, renderList as Q, withModifiers as ae, createCommentVNode as ce, createTextVNode as fe, h as R } from "vue";
1
+ import { defineComponent as le, ref as V, computed as F, resolveComponent as x, createBlock as T, openBlock as g, unref as n, withCtx as p, createElementVNode as a, createVNode as l, createElementBlock as E, toDisplayString as S, Fragment as z, renderList as J, withModifiers as ae, createCommentVNode as ce, createTextVNode as fe, h as A } from "vue";
2
2
  import { useI18n as se } from "@feedmepos/mf-common";
3
3
  import { components as de, useBreakpoints as be, useSnackbar as ye, useDialog as ke } from "@feedmepos/ui-library";
4
4
  import { _ as he } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as xe } from "./app-DmWoLe5_.js";
6
- import { I as ee, J as me, M as re, A as oe, u as Ce, Q as we, G as Fe, a4 as Ve } from "./index.vue_vue_type_script_setup_true_lang-kAgODQk6.js";
5
+ import { _ as xe } from "./app-D4se7Sr4.js";
6
+ import { G as ee, H as me, J as re, y as oe, u as Ce, O as we, B as Fe, a2 as Ve } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
7
7
  import { d as Se } from "./vuedraggable-CK8z7qA8.js";
8
- import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-CYx6T762.js";
8
+ import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-DQjE4JRi.js";
9
9
  import { u as pe } from "./discardConfirm-BHni0LNu.js";
10
- import { L as Ie } from "./LinkProductSideSheet-bUXGmrKI.js";
11
- import { _ as $e } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
12
- const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = { class: "space-y-32" }, Le = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, Ne = { class: "px-16 py-8 w-[40%]" }, De = { class: "px-16 py-8 grow" }, Ge = { class: "px-16 py-8 w-[40%]" }, Me = { 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" }, ze = /* @__PURE__ */ le({
10
+ import { L as $e } from "./LinkProductSideSheet-CbppLDSB.js";
11
+ import { _ as Ie } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
12
+ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = { class: "space-y-32" }, Le = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, Ne = { class: "px-16 py-8 w-[40%]" }, De = { class: "px-16 py-8 grow" }, Be = { 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" }, ze = /* @__PURE__ */ le({
13
13
  __name: "CookingGuideStepDialog",
14
14
  emits: ["onComplete"],
15
- setup(G, { expose: _, emit: X }) {
15
+ setup(B, { expose: _, emit: X }) {
16
16
  const { t: r } = se();
17
17
  _({
18
18
  show: s,
@@ -26,9 +26,9 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
26
26
  instruction: ""
27
27
  };
28
28
  }
29
- const C = V(!1), A = V(!1), $ = V(void 0);
29
+ const C = V(!1), R = V(!1), I = V(void 0);
30
30
  function s(v) {
31
- A.value = !!v, $.value = v ? ee(v) : D(), c.value = ee($.value), w.value = Object.entries(c.value.variables).map(
31
+ R.value = !!v, I.value = v ? ee(v) : D(), c.value = ee(I.value), w.value = Object.entries(c.value.variables).map(
32
32
  ([t, f]) => ({ key: t, value: f })
33
33
  ), C.value = !0;
34
34
  }
@@ -39,16 +39,16 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
39
39
  function q() {
40
40
  w.value.push({ key: "", value: "" });
41
41
  }
42
- function H(v) {
42
+ function Q(v) {
43
43
  w.value.splice(v, 1);
44
44
  }
45
45
  function j(v) {
46
46
  const t = document.activeElement;
47
47
  if (t && t.tagName === "TEXTAREA") {
48
- const f = t.selectionStart, L = t.selectionEnd, M = c.value.instruction, I = M.substring(0, f) + `{{${v}}}` + M.substring(L);
48
+ const f = t.selectionStart, L = t.selectionEnd, G = c.value.instruction, $ = G.substring(0, f) + `{{${v}}}` + G.substring(L);
49
49
  c.value = {
50
50
  ...c.value,
51
- instruction: I
51
+ instruction: $
52
52
  }, setTimeout(() => {
53
53
  t.focus();
54
54
  const Y = f + `{{${v}}}`.length;
@@ -65,7 +65,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
65
65
  label: t
66
66
  }), v),
67
67
  []
68
- )), h = F(() => A.value ? r("menu.cooking_guide.step_dialog.update.title") : r("menu.cooking_guide.step_dialog.add.title")), K = F(() => A.value ? r("menu.cooking_guide.step_dialog.update.action") : r("menu.cooking_guide.step_dialog.add.action"));
68
+ )), h = F(() => R.value ? r("menu.cooking_guide.step_dialog.update.title") : r("menu.cooking_guide.step_dialog.add.title")), K = F(() => R.value ? r("menu.cooking_guide.step_dialog.update.action") : r("menu.cooking_guide.step_dialog.add.action"));
69
69
  V();
70
70
  const i = pe(
71
71
  () => !me.isEqual(
@@ -73,7 +73,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
73
73
  ...c.value,
74
74
  variables: w.value.reduce((v, { key: t, value: f }) => ({ ...v, [t]: f }), {})
75
75
  },
76
- $.value
76
+ I.value
77
77
  ),
78
78
  () => {
79
79
  C.value = !1;
@@ -86,7 +86,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
86
86
  });
87
87
  }
88
88
  return (v, t) => {
89
- const f = x("FmButton"), L = x("FmTextField"), M = x("FmChip"), I = x("FmTextarea"), Y = x("FmSideSheet");
89
+ const f = x("FmButton"), L = x("FmTextField"), G = x("FmChip"), $ = x("FmTextarea"), Y = x("FmSideSheet");
90
90
  return g(), T(Y, {
91
91
  modelValue: C.value,
92
92
  "onUpdate:modelValue": t[1] || (t[1] = (U) => C.value = U),
@@ -149,26 +149,26 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
149
149
  a("div", Ne, S(n(r)("menu.cooking_guide.step_dialog.sections.variables.columns.key")), 1),
150
150
  a("div", De, S(n(r)("menu.cooking_guide.step_dialog.sections.variables.columns.value")), 1)
151
151
  ]),
152
- (g(!0), E(z, null, Q(w.value, (U, B) => (g(), E("div", {
153
- key: B,
152
+ (g(!0), E(z, null, J(w.value, (U, M) => (g(), E("div", {
153
+ key: M,
154
154
  class: "flex items-center border-b border-b-fm-color-neutral-gray-100"
155
155
  }, [
156
- a("div", Ge, [
156
+ a("div", Be, [
157
157
  l(L, {
158
- modelValue: w.value[B].key,
159
- "onUpdate:modelValue": (N) => w.value[B].key = N,
158
+ modelValue: w.value[M].key,
159
+ "onUpdate:modelValue": (N) => w.value[M].key = N,
160
160
  rules: [
161
161
  (N) => !!N || n(r)("menu.cooking_guide.step_dialog.sections.variables.validation.required"),
162
162
  (N) => !N || /^[a-z]+$/.test(N) || n(r)("menu.cooking_guide.step_dialog.sections.variables.validation.lowercase"),
163
- (N) => !N || w.value.findIndex((ue) => ue.key === N) === B || n(r)("menu.cooking_guide.step_dialog.sections.variables.validation.duplicate")
163
+ (N) => !N || w.value.findIndex((ue) => ue.key === N) === M || n(r)("menu.cooking_guide.step_dialog.sections.variables.validation.duplicate")
164
164
  ],
165
165
  placeholder: n(r)("menu.cooking_guide.step_dialog.sections.variables.placeholders.key")
166
166
  }, null, 8, ["modelValue", "onUpdate:modelValue", "rules", "placeholder"])
167
167
  ]),
168
- a("div", Me, [
168
+ a("div", Ge, [
169
169
  l(L, {
170
- modelValue: w.value[B].value,
171
- "onUpdate:modelValue": (N) => w.value[B].value = N,
170
+ modelValue: w.value[M].value,
171
+ "onUpdate:modelValue": (N) => w.value[M].value = N,
172
172
  rules: [
173
173
  (N) => !!N || n(r)("menu.cooking_guide.step_dialog.sections.variables.validation.required")
174
174
  ],
@@ -179,7 +179,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
179
179
  icon: "delete",
180
180
  variant: "tertiary",
181
181
  "text-color": "neutral-gray-400",
182
- onClick: () => H(B)
182
+ onClick: () => Q(M)
183
183
  }, null, 8, ["onClick"])
184
184
  ]))), 128))
185
185
  ])
@@ -191,15 +191,15 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
191
191
  }, {
192
192
  default: p(() => [
193
193
  a("div", Ue, [
194
- a("div", Be, [
195
- (g(!0), E(z, null, Q(k.value, (U) => (g(), T(M, {
194
+ a("div", Me, [
195
+ (g(!0), E(z, null, J(k.value, (U) => (g(), T(G, {
196
196
  key: U.label,
197
197
  label: U.label,
198
198
  class: "text-fm-color-primary bg-fm-color-system-warning-100",
199
199
  onMousedown: ae(() => j(U.label), ["prevent"])
200
200
  }, null, 8, ["label", "onMousedown"]))), 128))
201
201
  ]),
202
- l(I, {
202
+ l($, {
203
203
  modelValue: c.value.instruction,
204
204
  "onUpdate:modelValue": t[0] || (t[0] = (U) => c.value.instruction = U),
205
205
  ref: "textareaRef"
@@ -214,10 +214,10 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
214
214
  }, 8, ["modelValue", "header", "is-container", "is-container-props", "onOn:clickedAway"]);
215
215
  };
216
216
  }
217
- }), Ae = { class: "w-[700px]" }, Re = { class: "flex bg-fm-color-neutral-gray-100" }, Pe = { class: "px-16 py-8 grow" }, qe = { class: "px-16 py-8 w-[200px]" }, je = { class: "px-16 py-8 w-[200px]" }, Ye = { class: "px-16 py-8 grow" }, Je = { class: "px-16 py-8 w-[200px] flex flex-col gap-8" }, Qe = { class: "px-16 py-8 w-[200px] flex flex-col gap-8" }, Xe = /* @__PURE__ */ le({
217
+ }), Re = { class: "w-[700px]" }, Ae = { class: "flex bg-fm-color-neutral-gray-100" }, Pe = { class: "px-16 py-8 grow" }, qe = { class: "px-16 py-8 w-[200px]" }, je = { class: "px-16 py-8 w-[200px]" }, Ye = { class: "px-16 py-8 grow" }, He = { 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" }, Xe = /* @__PURE__ */ le({
218
218
  __name: "CookingGuideStepOverrideDialog",
219
219
  emits: ["onComplete"],
220
- setup(G, { expose: _, emit: X }) {
220
+ setup(B, { expose: _, emit: X }) {
221
221
  const { t: r } = se();
222
222
  _({
223
223
  show: s,
@@ -230,9 +230,9 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
230
230
  overrides: []
231
231
  };
232
232
  }
233
- const C = V(!1), A = V(""), $ = V([]);
233
+ const C = V(!1), R = V(""), I = V([]);
234
234
  function s(k) {
235
- A.value = k.itemName, $.value = k.steps, c.value = k.bindings ? ee(k.bindings) : D(), C.value = !0;
235
+ R.value = k.itemName, I.value = k.steps, c.value = k.bindings ? ee(k.bindings) : D(), C.value = !0;
236
236
  }
237
237
  function O() {
238
238
  C.value = !1;
@@ -242,7 +242,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
242
242
  var K;
243
243
  return ((K = w.value[k]) == null ? void 0 : K.variables[h]) ?? "";
244
244
  }
245
- function H(k, h, K) {
245
+ function Q(k, h, K) {
246
246
  const i = c.value.overrides.findIndex((u) => u.id === k);
247
247
  K ? i < 0 ? c.value.overrides.push({
248
248
  id: k,
@@ -282,29 +282,29 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
282
282
  }, null, 8, ["label"])
283
283
  ]),
284
284
  default: p(() => [
285
- a("div", Ae, [
286
- a("div", Re, [
285
+ a("div", Re, [
286
+ a("div", Ae, [
287
287
  a("div", Pe, S(n(r)("menu.cooking_guide.step_override_dialog.columns.instructions")), 1),
288
288
  a("div", qe, S(n(r)("menu.cooking_guide.step_override_dialog.columns.variables")), 1),
289
289
  a("div", je, S(n(r)("menu.cooking_guide.step_override_dialog.columns.value")), 1)
290
290
  ]),
291
- (g(!0), E(z, null, Q($.value, (t) => (g(), E("div", {
291
+ (g(!0), E(z, null, J(I.value, (t) => (g(), E("div", {
292
292
  key: t.id,
293
293
  class: "flex border-t-2"
294
294
  }, [
295
295
  a("div", Ye, S(t.instruction), 1),
296
- a("div", Je, [
297
- (g(!0), E(z, null, Q(t.variables, (f, L) => (g(), E("div", {
296
+ a("div", He, [
297
+ (g(!0), E(z, null, J(t.variables, (f, L) => (g(), E("div", {
298
298
  key: L,
299
299
  class: "py-8 w-full text-ellipsis overflow-hidden whitespace-nowrap"
300
300
  }, S(L), 1))), 128))
301
301
  ]),
302
- a("div", Qe, [
303
- (g(!0), E(z, null, Q(t.variables, (f, L) => (g(), E("div", { key: L }, [
302
+ a("div", Je, [
303
+ (g(!0), E(z, null, J(t.variables, (f, L) => (g(), E("div", { key: L }, [
304
304
  l(K, {
305
305
  "model-value": q(t.id, L.toString()),
306
306
  placeholder: f,
307
- "onUpdate:modelValue": (M) => H(t.id, L.toString(), M)
307
+ "onUpdate:modelValue": (G) => Q(t.id, L.toString(), G)
308
308
  }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
309
309
  ]))), 128))
310
310
  ])
@@ -315,7 +315,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
315
315
  }, 8, ["modelValue"]);
316
316
  };
317
317
  }
318
- }), He = { class: "fm-typo-en-title-md-600" }, We = { class: "space-y-24" }, Ze = { class: "flex items-center" }, eo = { class: "flex-1" }, oo = { class: "flex items-center gap-8" }, to = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, no = { class: "flex-1" }, io = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, ao = { class: "px-16 py-8 flex-1 flex gap-4 overflow-auto min-w-0" }, lo = { class: "fm-typo-en-body-md-500" }, so = { class: "px-16 py-8 flex gap-8" }, uo = { class: "flex gap-8 items-center justify-start" }, ro = /* @__PURE__ */ le({
318
+ }), Qe = { class: "fm-typo-en-title-md-600" }, We = { class: "space-y-24" }, Ze = { class: "flex items-center" }, eo = { class: "flex-1" }, oo = { class: "flex items-center gap-8" }, to = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, no = { class: "flex-1" }, io = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, ao = { class: "px-16 py-8 flex-1 flex gap-4 overflow-auto min-w-0" }, lo = { class: "fm-typo-en-body-md-500" }, so = { class: "px-16 py-8 flex gap-8" }, uo = { class: "flex gap-8 items-center justify-start" }, ro = /* @__PURE__ */ le({
319
319
  __name: "CookingGuideDialog",
320
320
  props: {
321
321
  categorizedItems: {
@@ -328,11 +328,11 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
328
328
  }
329
329
  },
330
330
  emits: ["onSave"],
331
- setup(G, { expose: _, emit: X }) {
332
- const r = G;
331
+ setup(B, { expose: _, emit: X }) {
332
+ const r = B;
333
333
  _({
334
- showModal: A,
335
- hideModal: $
334
+ showModal: R,
335
+ hideModal: I
336
336
  });
337
337
  function P() {
338
338
  return {
@@ -343,10 +343,10 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
343
343
  };
344
344
  }
345
345
  const D = V(!1), C = V(void 0);
346
- function A(e) {
346
+ function R(e) {
347
347
  C.value = e ? ee(e) : P(), s.value = ee(C.value), D.value = !0;
348
348
  }
349
- function $() {
349
+ function I() {
350
350
  D.value = !1;
351
351
  }
352
352
  const s = V(P()), O = V();
@@ -361,7 +361,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
361
361
  function q(e) {
362
362
  s.value.steps.splice(e, 1);
363
363
  }
364
- function H(e) {
364
+ function Q(e) {
365
365
  if (!e.id)
366
366
  s.value.steps.push({ ...e, id: (/* @__PURE__ */ new Date()).toISOString() });
367
367
  else {
@@ -428,7 +428,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
428
428
  );
429
429
  o >= 0 && s.value.bindings.splice(o, 1);
430
430
  }
431
- const { t } = se(), f = F(() => s.value._id ? t("menu.cooking_guide.dialog.update.title") : t("menu.cooking_guide.dialog.add.title")), L = F(() => s.value._id ? t("menu.cooking_guide.dialog.update.action") : t("menu.cooking_guide.dialog.add.action")), M = F(() => s.value.bindings.length), I = F(
431
+ const { t } = se(), f = F(() => s.value._id ? t("menu.cooking_guide.dialog.update.title") : t("menu.cooking_guide.dialog.add.title")), L = F(() => s.value._id ? t("menu.cooking_guide.dialog.update.action") : t("menu.cooking_guide.dialog.add.action")), G = F(() => s.value.bindings.length), $ = F(
432
432
  () => s.value.bindings.reduce((e, o) => {
433
433
  const b = e[o.productId] ?? [];
434
434
  return o.combinationKey ? e[o.productId] = [...b, o.combinationKey] : e[o.productId] = [], e;
@@ -454,17 +454,17 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
454
454
  itemName: m.name
455
455
  });
456
456
  return e;
457
- }, [])), B = F(() => U.value.filter((e) => {
458
- const o = I.value[e.itemId];
457
+ }, [])), M = F(() => U.value.filter((e) => {
458
+ const o = $.value[e.itemId];
459
459
  return !!o && (!e.combinationKey || o.includes(e.combinationKey));
460
460
  })), N = F(() => {
461
461
  const e = Y.value.toLowerCase();
462
- return e ? B.value.filter(
462
+ return e ? M.value.filter(
463
463
  (o) => {
464
464
  var b;
465
465
  return ((b = o.itemCode) == null ? void 0 : b.toLowerCase().includes(e)) || o.itemName.toLowerCase().includes(e) || o.categoryName.toLowerCase().includes(e);
466
466
  }
467
- ) : B.value;
467
+ ) : M.value;
468
468
  }), ue = F(() => N.value.reduce(
469
469
  (e, o) => {
470
470
  const b = e.findIndex((d) => d.id === o.categoryId);
@@ -487,7 +487,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
487
487
  }
488
488
  );
489
489
  function ve() {
490
- $(), ge("onSave", s.value);
490
+ I(), ge("onSave", s.value);
491
491
  }
492
492
  return (e, o) => {
493
493
  const b = x("FmTextField"), d = x("FmButton"), m = x("FmCardSection"), W = x("FmCard"), te = x("FmSpacer"), ne = x("FmSearch"), ie = x("FmSideSheet");
@@ -506,7 +506,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
506
506
  "onOn:clickedAway": n(_e)
507
507
  }, {
508
508
  "side-sheet-header": p(() => [
509
- a("span", He, S(f.value), 1)
509
+ a("span", Qe, S(f.value), 1)
510
510
  ]),
511
511
  "side-sheet-footer": p(() => [
512
512
  a("div", uo, [
@@ -520,7 +520,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
520
520
  variant: "tertiary",
521
521
  label: n(t)("menu.cooking_guide.dialog.actions.cancel"),
522
522
  size: "lg",
523
- onClick: $
523
+ onClick: I
524
524
  }, null, 8, ["label"])
525
525
  ])
526
526
  ]),
@@ -563,7 +563,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
563
563
  handle: ".handle",
564
564
  "item-key": "id"
565
565
  }, {
566
- item: p(({ element: y, index: J }) => [
566
+ item: p(({ element: y, index: H }) => [
567
567
  l(W, {
568
568
  variant: "outlined",
569
569
  class: "rounded-md mb-16 items-center",
@@ -588,7 +588,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
588
588
  l(d, {
589
589
  icon: "delete",
590
590
  variant: "tertiary",
591
- onClick: ae(() => q(J), ["stop"])
591
+ onClick: ae(() => q(H), ["stop"])
592
592
  }, null, 8, ["onClick"])
593
593
  ]),
594
594
  _: 2
@@ -599,14 +599,14 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
599
599
  ]),
600
600
  _: 1
601
601
  }, 8, ["title"]),
602
- G.canApplyItems ? (g(), T(Z, {
602
+ B.canApplyItems ? (g(), T(Z, {
603
603
  key: 0,
604
604
  title: n(t)("menu.cooking_guide.dialog.sections.apply_product.title")
605
605
  }, {
606
606
  "append-title": p(() => [
607
607
  l(te),
608
- l(Ie, {
609
- "categorized-items": G.categorizedItems,
608
+ l($e, {
609
+ "categorized-items": B.categorizedItems,
610
610
  "initial-value": s.value.bindings.map((y) => ({
611
611
  _id: y.productId,
612
612
  combinationKey: y.combinationKey
@@ -632,7 +632,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
632
632
  default: p(() => [
633
633
  a("div", oo, [
634
634
  a("div", to, S(n(t)("menu.cooking_guide.dialog.sections.apply_product.products_linked", {
635
- count: M.value
635
+ count: G.value
636
636
  })), 1),
637
637
  a("div", no, [
638
638
  l(ne, {
@@ -642,27 +642,27 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
642
642
  }, null, 8, ["modelValue", "placeholder"])
643
643
  ])
644
644
  ]),
645
- (g(!0), E(z, null, Q(ue.value, (y) => (g(), E("div", {
645
+ (g(!0), E(z, null, J(ue.value, (y) => (g(), E("div", {
646
646
  key: y.id || ""
647
647
  }, [
648
648
  a("div", io, S(y.name), 1),
649
- (g(!0), E(z, null, Q(y.items, (J) => (g(), E("div", {
650
- key: J.itemId,
649
+ (g(!0), E(z, null, J(y.items, (H) => (g(), E("div", {
650
+ key: H.itemId,
651
651
  class: "flex items-center"
652
652
  }, [
653
653
  a("div", ao, [
654
- a("span", lo, S((J.itemCode ? `${J.itemCode} ` : "") + J.itemName), 1)
654
+ a("span", lo, S((H.itemCode ? `${H.itemCode} ` : "") + H.itemName), 1)
655
655
  ]),
656
656
  a("div", so, [
657
657
  l(d, {
658
658
  icon: "edit",
659
659
  variant: "tertiary",
660
- onClick: () => i(J)
660
+ onClick: () => i(H)
661
661
  }, null, 8, ["onClick"]),
662
662
  l(d, {
663
663
  icon: "delete",
664
664
  variant: "tertiary",
665
- onClick: () => v(J)
665
+ onClick: () => v(H)
666
666
  }, null, 8, ["onClick"])
667
667
  ])
668
668
  ]))), 128))
@@ -677,7 +677,7 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
677
677
  l(ze, {
678
678
  ref_key: "cookingGuideStepDialogRef",
679
679
  ref: O,
680
- onOnComplete: H
680
+ onOnComplete: Q
681
681
  }, null, 512),
682
682
  l(Xe, {
683
683
  ref_key: "cookingGuideStepOverrideDialogRef",
@@ -688,25 +688,25 @@ const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = {
688
688
  };
689
689
  }
690
690
  });
691
- function co(G) {
691
+ function co(B) {
692
692
  return {
693
693
  module: oe.F_MENU_MODULE_V4_KEY.enum.cookingGuide,
694
694
  operation: re.F_OPERATION_TYPE.create,
695
- data: oe.FdoMenuCookingGuide.parse(G)
695
+ data: oe.FdoMenuCookingGuide.parse(B)
696
696
  };
697
697
  }
698
- function mo(G) {
698
+ function mo(B) {
699
699
  return {
700
700
  module: oe.F_MENU_MODULE_V4_KEY.enum.cookingGuide,
701
701
  operation: re.F_OPERATION_TYPE.update,
702
- data: oe.FdoMenuCookingGuide.parse(G)
702
+ data: oe.FdoMenuCookingGuide.parse(B)
703
703
  };
704
704
  }
705
- function po(G) {
705
+ function po(B) {
706
706
  return {
707
707
  module: oe.F_MENU_MODULE_V4_KEY.enum.cookingGuide,
708
708
  operation: re.F_OPERATION_TYPE.delete,
709
- data: G._id
709
+ data: B._id
710
710
  };
711
711
  }
712
712
  const go = {
@@ -723,7 +723,7 @@ const go = {
723
723
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
724
724
  }, Eo = /* @__PURE__ */ le({
725
725
  __name: "CookingGuide",
726
- setup(G) {
726
+ setup(B) {
727
727
  const {
728
728
  t: _
729
729
  } = se(), X = be(), r = F(() => X.breakpoints.value.xs), P = F(() => [{
@@ -760,9 +760,9 @@ const go = {
760
760
  headerContentClass: "-mx-16"
761
761
  },
762
762
  enableSorting: !1,
763
- cell: (i) => R("div", {
763
+ cell: (i) => A("div", {
764
764
  class: "flex justify-end"
765
- }, [R(de.FmButton, {
765
+ }, [A(de.FmButton, {
766
766
  icon: "delete",
767
767
  textColor: "neutral-gray-400",
768
768
  variant: "tertiary",
@@ -770,7 +770,7 @@ const go = {
770
770
  k(i.row.original);
771
771
  }, ["stop", "prevent"])
772
772
  })])
773
- }]), D = Ce(), C = F(() => O.checkMenuIsLoading()), A = F(() => D.categorizedItems), $ = F(() => D.state.menu.modules.cookingGuide), s = F(() => $.value.length > 0), O = we(Fe(ye())), c = V();
773
+ }]), D = Ce(), C = F(() => O.checkMenuIsLoading()), R = F(() => D.categorizedItems), I = F(() => D.state.menu.modules.cookingGuide), s = F(() => I.value.length > 0), O = we(Fe(ye())), c = V();
774
774
  function w() {
775
775
  var i;
776
776
  C.value || (i = c.value) == null || i.showModal();
@@ -779,20 +779,20 @@ const go = {
779
779
  var u;
780
780
  C.value || (u = c.value) == null || u.showModal(i);
781
781
  }
782
- async function H(i) {
782
+ async function Q(i) {
783
783
  const u = i._id ? mo(i) : co(i);
784
784
  await O.updateMenu(u, i.name);
785
785
  }
786
786
  const j = ke();
787
787
  async function k(i) {
788
- let u = [R("span", _("menu.cooking_guide.dialogs.remove.message.prefix")), R("span", {
788
+ let u = [A("span", _("menu.cooking_guide.dialogs.remove.message.prefix")), A("span", {
789
789
  class: "fm-typo-en-body-lg-600"
790
- }, i.name), R("span", "?")];
791
- i.bindings.length && (u = [R("span", _("menu.cooking_guide.dialogs.remove.message.products_using")), R("span", {
790
+ }, i.name), A("span", "?")];
791
+ i.bindings.length && (u = [A("span", _("menu.cooking_guide.dialogs.remove.message.products_using")), A("span", {
792
792
  class: "fm-typo-en-body-lg-600"
793
- }, i.bindings.length), R("span", _("menu.cooking_guide.dialogs.remove.message.products_count")), ...u]), j.open({
793
+ }, i.bindings.length), A("span", _("menu.cooking_guide.dialogs.remove.message.products_count")), ...u]), j.open({
794
794
  title: _("menu.cooking_guide.dialogs.remove.title"),
795
- contentComponent: R("div", u),
795
+ contentComponent: A("div", u),
796
796
  primaryActions: {
797
797
  text: _("menu.cooking_guide.actions.remove"),
798
798
  close: !0,
@@ -808,11 +808,11 @@ const go = {
808
808
  }
809
809
  const h = V(""), K = F(() => {
810
810
  const i = h.value.toLowerCase();
811
- return i ? $.value.filter((u) => u.name.toLowerCase().includes(i)) : $.value;
811
+ return i ? I.value.filter((u) => u.name.toLowerCase().includes(i)) : I.value;
812
812
  });
813
813
  return (i, u) => {
814
- const v = x("FmSearch"), t = x("FmTable"), f = x("FmButton"), L = x("FmListItem"), M = x("FmList");
815
- return g(), T($e, {
814
+ const v = x("FmSearch"), t = x("FmTable"), f = x("FmButton"), L = x("FmListItem"), G = x("FmList");
815
+ return g(), T(Ie, {
816
816
  heading: n(_)("menu.cooking_guide.title")
817
817
  }, {
818
818
  "append-heading": p(() => [a("div", go, [s.value ? (g(), T(he, {
@@ -827,33 +827,33 @@ const go = {
827
827
  key: 1
828
828
  }, [a("div", _o, [l(v, {
829
829
  modelValue: h.value,
830
- "onUpdate:modelValue": u[1] || (u[1] = (I) => h.value = I),
830
+ "onUpdate:modelValue": u[1] || (u[1] = ($) => h.value = $),
831
831
  autofocus: "",
832
832
  class: "my-8 w-[320px] xs:w-full xs:px-16",
833
833
  placeholder: n(_)("menu.cooking_guide.table.search.placeholder")
834
- }, null, 8, ["modelValue", "placeholder"])]), r.value ? (g(), T(M, {
834
+ }, null, 8, ["modelValue", "placeholder"])]), r.value ? (g(), T(G, {
835
835
  key: 1,
836
836
  class: "w-full px-16 flex-1 min-h-0 overflow-scroll pb-64",
837
837
  separator: ""
838
838
  }, {
839
- default: p(() => [(g(!0), E(z, null, Q(K.value, (I) => (g(), T(L, {
840
- key: I._id,
841
- label: I.name,
839
+ default: p(() => [(g(!0), E(z, null, J(K.value, ($) => (g(), T(L, {
840
+ key: $._id,
841
+ label: $.name,
842
842
  style: {
843
843
  padding: "12px 0 !important"
844
844
  },
845
- onClick: () => q(I)
845
+ onClick: () => q($)
846
846
  }, {
847
- default: p(() => [a("div", vo, [a("div", fo, S(I.name), 1), a("div", null, [a("div", bo, S(n(_)("menu.cooking_guide.table.mobile.products_linked", {
848
- count: I.bindings.length
847
+ default: p(() => [a("div", vo, [a("div", fo, S($.name), 1), a("div", null, [a("div", bo, S(n(_)("menu.cooking_guide.table.mobile.products_linked", {
848
+ count: $.bindings.length
849
849
  })), 1), a("div", yo, S(n(_)("menu.cooking_guide.table.columns.steps", {
850
- count: I.steps.length
850
+ count: $.steps.length
851
851
  })), 1)])]), l(f, {
852
852
  disabled: C.value,
853
853
  icon: "delete",
854
854
  variant: "tertiary",
855
855
  "text-color": "neutral-gray-400",
856
- onClick: ae(() => k(I), ["stop"])
856
+ onClick: ae(() => k($), ["stop"])
857
857
  }, null, 8, ["disabled", "onClick"])]),
858
858
  _: 2
859
859
  }, 1032, ["label", "onClick"]))), 128))]),
@@ -864,13 +864,13 @@ const go = {
864
864
  default: p(() => [l(t, {
865
865
  "column-defs": P.value,
866
866
  loading: C.value,
867
- "page-size": $.value.length,
868
- "row-data": $.value,
867
+ "page-size": I.value.length,
868
+ "row-data": I.value,
869
869
  "search-value": h.value,
870
870
  shrinkAt: !1,
871
871
  "hide-footer": "",
872
872
  "pin-header-row": "",
873
- onRowClick: u[2] || (u[2] = (I) => q(I.original))
873
+ onRowClick: u[2] || (u[2] = ($) => q($.original))
874
874
  }, null, 8, ["column-defs", "loading", "page-size", "row-data", "search-value"])]),
875
875
  _: 1
876
876
  }))], 64)) : (g(), T(n(Ve), {
@@ -884,8 +884,8 @@ const go = {
884
884
  }, null, 8, ["action", "subtitle", "title"])), l(ro, {
885
885
  ref_key: "cookingGuideDialogRef",
886
886
  ref: c,
887
- "categorized-items": A.value,
888
- onOnSave: H
887
+ "categorized-items": R.value,
888
+ onOnSave: Q
889
889
  }, null, 8, ["categorized-items"])]),
890
890
  _: 1
891
891
  }, 8, ["heading"]);
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as S, computed as o, createBlock as v, openBlock as t, unref as c, withCtx as g, renderSlot as B, ref as A, resolveComponent as I, createElementBlock as a, createElementVNode as m, createCommentVNode as b, Fragment as f, renderList as C, toDisplayString as d, withModifiers as F } from "vue";
2
2
  import { useI18n as V } from "@feedmepos/mf-common";
3
3
  import { _ as M } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
4
- import { u as D } from "./index.vue_vue_type_script_setup_true_lang-kAgODQk6.js";
4
+ import { u as D } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
5
5
  import { useBreakpoints as E } from "@feedmepos/ui-library";
6
6
  import { _ as y } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
7
7
  const X = /* @__PURE__ */ S({
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-BrjgJ3NE.js";
1
+ import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-st4plK2R.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -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-BrjgJ3NE.js";
6
- import { B as b } from "./item-DybTsHw-.js";
7
- import { a as h } from "./menu-DM97MTPH.js";
5
+ import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-st4plK2R.js";
6
+ import { B as b } from "./item-DYsNPLH9.js";
7
+ import { a as h } from "./menu-Btb1sPTh.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" }, A = /* @__PURE__ */ m({
9
9
  __name: "Group",
10
10
  setup(B) {