@feedmepos/mf-menu 0.31.16-beta.1 → 0.31.17-beta.1

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 (70) hide show
  1. package/dist/{App-Bsppf5CN.js → App-BUjwToat.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DTuPAGEJ.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CBPOCkmg.js} +2 -2
  3. package/dist/{Catalog-Bj3MNcLG.js → Catalog-BkfsckOV.js} +18 -18
  4. package/dist/{Category-CHvG2e6b.js → Category-C7EPAK0G.js} +36 -36
  5. package/dist/{Category-WLIH1Zyc.js → Category-DTKlxBpE.js} +24 -24
  6. package/dist/{CookingGuide-C8N45xnL.js → CookingGuide-DCazfCuz.js} +56 -56
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-GriZxAIw.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2hApsFMq.js} +1 -1
  8. package/dist/{Group-CR3LWKXE.js → Group-DLjkPLk9.js} +1 -1
  9. package/dist/{Group-Byj3qEBv.js → Group-DNBFvwk-.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-tecpeqJT.js → Group.vue_vue_type_script_setup_true_lang-8Upt5al2.js} +54 -54
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BkLHDcZV.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BIWySrgb.js} +6 -6
  12. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-YOzhk0a0.js +96257 -0
  13. package/dist/{Ingredient-BCfCDCFS.js → Ingredient-BUIIhzYV.js} +52 -52
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CpXnjduY.js → InventoryBinding.vue_vue_type_script_setup_true_lang-nqY-pxrW.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-BGlLnnm9.js → LinkProductSideSheet-xIuPAwp7.js} +14 -14
  16. package/dist/{MenuSetting-CdKhTxyc.js → MenuSetting-C3J66nHM.js} +11 -11
  17. package/dist/{PrintRoute-B-UlUlSD.js → PrintRoute-DnZrJ9IW.js} +26 -26
  18. package/dist/{Product-BggNPOwm.js → Product-jBcyCvO7.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DPOaafZ-.js → Product.vue_vue_type_script_setup_true_lang-CsaY9Kve.js} +113 -113
  20. package/dist/ProductInternalTools-CUZSrxvR.js +415 -0
  21. package/dist/Products-CRFXG-Du.js +270 -0
  22. package/dist/{Publish-BTPdN1Ub.js → Publish-Ch5QlJ9v.js} +37 -37
  23. package/dist/{Recipe-CibJRxHH.js → Recipe-BZJUndG3.js} +25 -25
  24. package/dist/{Scheduler-DAShXnol.js → Scheduler-BgMTPzhG.js} +13 -13
  25. package/dist/{ServingSequence-DFs7VR5V.js → ServingSequence-BISPWfTD.js} +36 -36
  26. package/dist/{Setting-aApApOKZ.js → Setting-4L-p0np0.js} +24 -24
  27. package/dist/{Subcategory-CGnGq5Kd.js → Subcategory-CptCl4cb.js} +39 -39
  28. package/dist/{Takeaway-rJDqoozq.js → Takeaway-BAM3XfIf.js} +1 -1
  29. package/dist/{Takeaway-C8M-Z4eK.js → Takeaway-DqiGDTfg.js} +12 -12
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CrFeCwvr.js → Takeaway.vue_vue_type_script_setup_true_lang-oZo0esEd.js} +25 -25
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CCVSPoDB.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C7QOuqzZ.js} +115 -115
  32. package/dist/{Unit-CcWjE73k.js → Unit-BYAvg037.js} +8 -8
  33. package/dist/{Variant-BDPjFaAa.js → Variant-uGUG4vH2.js} +18 -18
  34. package/dist/{_id_-mUBoDBKS.js → _id_-Uf140OcM.js} +19 -19
  35. package/dist/{app-BBoQR7rs.js → app-50bXo6rU.js} +262 -247
  36. package/dist/{app-sdhJyRKX.js → app-CUuWtEOn.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/import/PreviewAddonContent.vue.d.ts +1618 -0
  40. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUpdatePreview.vue.d.ts +33 -0
  41. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUploadDialog.vue.d.ts +28 -0
  42. package/dist/apps/mf-menu/src/helper/import-export.d.ts +15 -19
  43. package/dist/apps/mf-menu/src/utils/batchProcessor.d.ts +33 -0
  44. package/dist/apps/mf-menu/src/utils/images.d.ts +44 -0
  45. package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
  46. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/assets/{linked-status-BkX3Y-ws.js → linked-status-Dsak7omL.js} +2 -2
  48. package/dist/assets/{override-menu-Bo0ZNZ-U.js → override-menu-COqLF5sS.js} +2 -2
  49. package/dist/assets/{validate-menu-CIWz9YXT.js → validate-menu-DkLBw23v.js} +2 -2
  50. package/dist/{catalog-BbukcamZ.js → catalog-x_NpHc5w.js} +1 -1
  51. package/dist/{catalogSetting-7ZMZjqGs.js → catalogSetting-DU_dUoSh.js} +1 -1
  52. package/dist/{category-Cq2MmCBq.js → category-DJRGfRhf.js} +1 -1
  53. package/dist/{currency-OQd6moI9.js → currency-ljvNxerM.js} +1 -1
  54. package/dist/{dayjs.min-m51FMJgI.js → dayjs.min-DsjutQjn.js} +1 -1
  55. package/dist/{index-b9FcXU4s.js → index-Bb7-YO3o.js} +23 -23
  56. package/dist/{index-DlTid7hh.js → index-C58VTE70.js} +14 -14
  57. package/dist/{index-B5uSVMTf.js → index-CBnsZeF8.js} +1 -1
  58. package/dist/{item-96CGb3Kx.js → item-Cerfyitf.js} +1521 -1485
  59. package/dist/jszip.min-Co4cqzOU.js +2393 -0
  60. package/dist/{menu-Bqiz6B2P.js → menu-B7KFi80A.js} +154 -154
  61. package/dist/{menu-BmBsIlGC.js → menu-Bpul41jT.js} +1 -1
  62. package/dist/mf-menu.css +1 -1
  63. package/dist/{priceTier-Ck8MqQWD.js → priceTier-CfW69h1F.js} +1 -1
  64. package/dist/{scheduler-DeOCwKnf.js → scheduler-DsO3qpTw.js} +3 -3
  65. package/dist/{subcategory-DbiQCCF5.js → subcategory-Cb_rqtHz.js} +84 -84
  66. package/dist/{toExcel-BsguLQA5.js → toExcel-P9X-WSN5.js} +15 -15
  67. package/dist/{unit-CnM6N-39.js → unit-Dej_sihQ.js} +24 -24
  68. package/package.json +3 -2
  69. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-BRlU0arf.js +0 -73010
  70. package/dist/Products-DZFgAKxB.js +0 -2660
@@ -1,16 +1,16 @@
1
- import { defineComponent as S, ref as V, computed as z, watch as F, resolveComponent as w, createElementBlock as I, openBlock as y, Fragment as O, renderSlot as A, createVNode as r, unref as n, withCtx as f, createElementVNode as _, createBlock as D, createCommentVNode as E, toDisplayString as L } from "vue";
2
- import { J as b, K as N } from "./menu-Bqiz6B2P.js";
1
+ import { defineComponent as S, ref as V, computed as I, watch as z, resolveComponent as w, createElementBlock as F, openBlock as y, Fragment as O, renderSlot as A, createVNode as r, unref as n, withCtx as f, createElementVNode as _, createBlock as D, createCommentVNode as E, toDisplayString as L } from "vue";
2
+ import { H as b, I as N } from "./menu-B7KFi80A.js";
3
3
  import { useI18n as j, ItemSelector as P } from "@feedmepos/mf-common";
4
4
  import { components as U, FmButtonVariant as q } from "@feedmepos/ui-library";
5
- import { u as J } from "./discardConfirm-BHni0LNu.js";
6
- import { c as K } from "./check-C9mY6LiX.js";
5
+ import { u as H } from "./discardConfirm-BHni0LNu.js";
6
+ import { c as M } from "./check-C9mY6LiX.js";
7
7
  /* empty css */
8
- const M = (i, u) => {
8
+ const T = (i, u) => {
9
9
  const s = i.__vccOpts || i;
10
10
  for (const [c, t] of u)
11
11
  s[c] = t;
12
12
  return s;
13
- }, T = { class: "fm-typo-en-title-md-600 mr-auto" }, $ = { class: "flex gap-8 items-center justify-start" }, G = /* @__PURE__ */ S({
13
+ }, $ = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8 items-center justify-start" }, J = /* @__PURE__ */ S({
14
14
  __name: "LinkProductSideSheet",
15
15
  props: {
16
16
  initialValue: { default: () => [] },
@@ -24,12 +24,12 @@ const M = (i, u) => {
24
24
  emits: ["submit"],
25
25
  setup(i, { emit: u }) {
26
26
  const s = i, c = u, t = V(!1), v = (e) => {
27
- K.isBoolean(e) ? t.value = e : t.value = !t.value;
27
+ M.isBoolean(e) ? t.value = e : t.value = !t.value;
28
28
  };
29
29
  function d(e) {
30
30
  return e.reduce((o, a) => (o[a._id] = [...o[a._id] ?? [], a], o), {});
31
31
  }
32
- const k = s.initialValue, l = V(d(b(k))), h = z(() => Object.values(l.value).flatMap((e) => e)), g = J(
32
+ const k = s.initialValue, l = V(d(b(k))), h = I(() => Object.values(l.value).flatMap((e) => e)), g = H(
33
33
  () => !N.isEqual(d(s.initialValue), l.value),
34
34
  () => {
35
35
  t.value = !1;
@@ -38,7 +38,7 @@ const M = (i, u) => {
38
38
  function B() {
39
39
  c("submit", h.value), t.value = !1;
40
40
  }
41
- F(
41
+ z(
42
42
  () => t.value,
43
43
  () => {
44
44
  l.value = d(b(s.initialValue));
@@ -47,7 +47,7 @@ const M = (i, u) => {
47
47
  const { t: m } = j();
48
48
  return (e, o) => {
49
49
  const a = w("fm-button"), C = w("fm-side-sheet");
50
- return y(), I(O, null, [
50
+ return y(), F(O, null, [
51
51
  A(e.$slots, "default", { trigger: v }, void 0, !0),
52
52
  r(C, {
53
53
  id: "group-form",
@@ -70,10 +70,10 @@ const M = (i, u) => {
70
70
  "prepend-icon": "arrow_back",
71
71
  onClick: v
72
72
  }, null, 8, ["variant"])),
73
- _("p", T, L(e.title || n(m)("menu.link_product.title")), 1)
73
+ _("p", $, L(e.title || n(m)("menu.link_product.title")), 1)
74
74
  ]),
75
75
  "side-sheet-footer": f(() => [
76
- _("div", $, [
76
+ _("div", G, [
77
77
  r(a, {
78
78
  label: n(m)("menu.common.actions.confirm"),
79
79
  size: "lg",
@@ -105,8 +105,8 @@ const M = (i, u) => {
105
105
  ], 64);
106
106
  };
107
107
  }
108
- }), x = /* @__PURE__ */ M(G, [["__scopeId", "data-v-45139c60"]]);
108
+ }), x = /* @__PURE__ */ T(J, [["__scopeId", "data-v-45139c60"]]);
109
109
  export {
110
110
  x as L,
111
- M as _
111
+ T as _
112
112
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as P, computed as T, ref as F, watch as J, createVNode as n, resolveComponent as c, createBlock as V, openBlock as d, unref as e, withCtx as p, createElementVNode as _, createElementBlock as k, createCommentVNode as y, Fragment as K, renderList as q, toDisplayString as U } from "vue";
2
- import { u as H, G as Q, z as R, J as M } from "./menu-Bqiz6B2P.js";
1
+ import { defineComponent as G, computed as T, ref as F, watch as H, createVNode as n, resolveComponent as c, createBlock as V, openBlock as d, unref as e, withCtx as p, createElementVNode as _, createElementBlock as k, createCommentVNode as y, Fragment as K, renderList as q, toDisplayString as U } from "vue";
2
+ import { u as J, B as Q, z as R, H as M } from "./menu-B7KFi80A.js";
3
3
  import { useI18n as W, useCoreStore as X } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as Y, components as Z, FmButtonVariant as ee, FmButtonColorThemeVariant as te } from "@feedmepos/ui-library";
5
5
  import { _ as A } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
6
- import { _ as le } from "./app-BBoQR7rs.js";
6
+ import { _ as le } from "./app-50bXo6rU.js";
7
7
  import { _ as ne } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
8
- import { C as b, a as m } from "./catalogSetting-7ZMZjqGs.js";
9
- import { u as oe } from "./priceTier-Ck8MqQWD.js";
8
+ import { C as b, a as m } from "./catalogSetting-DU_dUoSh.js";
9
+ import { u as oe } from "./priceTier-CfW69h1F.js";
10
10
  const ae = {
11
11
  class: "py-16"
12
12
  }, se = {
@@ -25,13 +25,13 @@ const ae = {
25
25
  class: "fm-typo-en-title-md-600"
26
26
  }, de = {
27
27
  class: "text-fm-color-typo-secondary"
28
- }, ye = /* @__PURE__ */ P({
28
+ }, ye = /* @__PURE__ */ G({
29
29
  __name: "MenuSetting",
30
30
  setup(pe) {
31
31
  var h;
32
32
  const {
33
33
  t
34
- } = W(), v = H(), w = X(), N = Y(), B = Q(N), u = T(() => ({
34
+ } = W(), v = J(), w = X(), B = Y(), N = Q(B), u = T(() => ({
35
35
  lowStock: v.state.menu.lowStockThreshold,
36
36
  taxSetting: v.state.menu.masterCatalogSetting,
37
37
  priceTierSettings: v.state.menu.priceTierSettings
@@ -42,7 +42,7 @@ const ae = {
42
42
  label: t("menu.menu_setting.tabs.price_group"),
43
43
  value: "price-group"
44
44
  }] : []]), i = F(b.transformTax((h = u.value.taxSetting) == null ? void 0 : h.inclusiveTaxes));
45
- J(() => u.value, (a) => {
45
+ H(() => u.value, (a) => {
46
46
  var l;
47
47
  i.value = b.transformTax((l = a.taxSetting) == null ? void 0 : l.inclusiveTaxes);
48
48
  });
@@ -67,7 +67,7 @@ const ae = {
67
67
  if (u.value.lowStock !== null && u.value.lowStock !== void 0 && !Number.isInteger(u.value.lowStock))
68
68
  return;
69
69
  const a = i.value.mode === m.AUTO ? null : M(i.value.inclusive);
70
- await B.minor(async () => {
70
+ await N.minor(async () => {
71
71
  const l = u.value.lowStock === null || u.value.lowStock === void 0 || u.value.lowStock === 0;
72
72
  await v.updateMenuSetting({
73
73
  masterCatalogSetting: {
@@ -132,10 +132,10 @@ const ae = {
132
132
  "model-value": o.inclusive,
133
133
  value: !0,
134
134
  label: o.systemCode + " inclusive",
135
- "onUpdate:modelValue": (G) => {
135
+ "onUpdate:modelValue": (P) => {
136
136
  L({
137
137
  ...o,
138
- inclusive: G
138
+ inclusive: P
139
139
  });
140
140
  }
141
141
  }, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))])) : y("", !0)]),
@@ -1,15 +1,15 @@
1
- import { defineComponent as J, ref as k, computed as f, resolveComponent as g, createBlock as P, openBlock as p, unref as l, withCtx as m, createElementVNode as i, createVNode as c, createCommentVNode as Q, toDisplayString as S, createElementBlock as L, Fragment as A, renderList as R, h as _, withModifiers as q } from "vue";
2
- import { useI18n as H } from "@feedmepos/mf-common";
1
+ import { defineComponent as H, ref as k, computed as f, resolveComponent as g, createBlock as P, openBlock as p, unref as l, withCtx as m, createElementVNode as i, createVNode as c, createCommentVNode as J, toDisplayString as S, createElementBlock as L, Fragment as A, renderList as K, h as _, withModifiers as q } from "vue";
2
+ import { useI18n as Q } from "@feedmepos/mf-common";
3
3
  import { components as W, useSnackbar as ee, useDialog as te } from "@feedmepos/ui-library";
4
4
  import { _ as oe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as ne } from "./app-BBoQR7rs.js";
6
- import { J as j, K as ae, M as B, I as V, u as le, Q as re, G as se } from "./menu-Bqiz6B2P.js";
5
+ import { _ as ne } from "./app-50bXo6rU.js";
6
+ import { H as j, I as ae, J as R, G as V, u as le, O as re, B as se } from "./menu-B7KFi80A.js";
7
7
  import { u as ie } from "./discardConfirm-BHni0LNu.js";
8
- import { L as ue } from "./LinkProductSideSheet-BGlLnnm9.js";
8
+ import { L as ue } from "./LinkProductSideSheet-xIuPAwp7.js";
9
9
  import { _ as G } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
10
10
  import { _ as de } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
11
11
  import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
12
- const me = { class: "fm-typo-en-title-md-600" }, pe = { class: "space-y-32" }, _e = { class: "space-y-16" }, fe = { class: "flex items-center gap-8" }, ve = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ye = { class: "flex-1" }, ge = { class: "grow overflow-y-auto" }, he = { class: "text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-fm-color-neutral-gray-200" }, be = { class: "flex items-center border-b border-b-fm-color-neutral-gray-100" }, xe = { class: "px-16 py-8 flex-1" }, ke = { class: "py-8" }, Fe = { class: "flex gap-8 items-center justify-start" }, Ie = /* @__PURE__ */ J({
12
+ const me = { class: "fm-typo-en-title-md-600" }, pe = { class: "space-y-32" }, _e = { class: "space-y-16" }, fe = { class: "flex items-center gap-8" }, ve = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ye = { class: "flex-1" }, ge = { class: "grow overflow-y-auto" }, he = { class: "text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-fm-color-neutral-gray-200" }, be = { class: "flex items-center border-b border-b-fm-color-neutral-gray-100" }, xe = { class: "px-16 py-8 flex-1" }, ke = { class: "py-8" }, Fe = { class: "flex gap-8 items-center justify-start" }, Ie = /* @__PURE__ */ H({
13
13
  __name: "PrintDepartmentDialog",
14
14
  props: {
15
15
  categorizedItems: {
@@ -23,7 +23,7 @@ const me = { class: "fm-typo-en-title-md-600" }, pe = { class: "space-y-32" }, _
23
23
  },
24
24
  emits: ["onSave"],
25
25
  setup(v, { expose: t, emit: h }) {
26
- const K = v;
26
+ const N = v;
27
27
  t({
28
28
  showModal: z,
29
29
  hideModal: w
@@ -49,19 +49,19 @@ const me = { class: "fm-typo-en-title-md-600" }, pe = { class: "space-y-32" }, _
49
49
  applyToItems: r.map((a) => a._id)
50
50
  };
51
51
  }
52
- function N(r) {
52
+ function $(r) {
53
53
  n.value = {
54
54
  ...n.value,
55
55
  applyToItems: n.value.applyToItems.filter((a) => a !== r)
56
56
  };
57
57
  }
58
- const { t: u } = H(), O = f(() => n.value._id ? u("menu.print_route.department_dialog.update.title") : u("menu.print_route.department_dialog.add.title")), I = f(() => n.value._id ? u("menu.print_route.department_dialog.update.action") : u("menu.print_route.department_dialog.add.action")), U = f(() => n.value.applyToItems.length), $ = f(
58
+ const { t: u } = Q(), O = f(() => n.value._id ? u("menu.print_route.department_dialog.update.title") : u("menu.print_route.department_dialog.add.title")), I = f(() => n.value._id ? u("menu.print_route.department_dialog.update.action") : u("menu.print_route.department_dialog.add.action")), U = f(() => n.value.applyToItems.length), B = f(
59
59
  () => n.value.applyToItems.reduce((r, a) => (r[a] = [], r), {})
60
60
  ), e = k(""), o = f(() => {
61
61
  const r = e.value.toLowerCase();
62
- return K.categorizedItems.reduce((a, d) => {
62
+ return N.categorizedItems.reduce((a, d) => {
63
63
  const D = d.items.filter(
64
- (C) => (!r || C.name.toLowerCase().includes(r)) && !!$.value[C._id]
64
+ (C) => (!r || C.name.toLowerCase().includes(r)) && !!B.value[C._id]
65
65
  );
66
66
  return D.length && a.push({ ...d, items: D }), a;
67
67
  }, []);
@@ -172,16 +172,16 @@ const me = { class: "fm-typo-en-title-md-600" }, pe = { class: "space-y-32" }, _
172
172
  ])
173
173
  ]),
174
174
  i("div", ge, [
175
- (p(!0), L(A, null, R(o.value, (s) => (p(), L("div", null, [
175
+ (p(!0), L(A, null, K(o.value, (s) => (p(), L("div", null, [
176
176
  i("div", he, S(s.name), 1),
177
- (p(!0), L(A, null, R(s.items, (Y) => (p(), L("div", be, [
177
+ (p(!0), L(A, null, K(s.items, (Y) => (p(), L("div", be, [
178
178
  i("div", xe, S(Y.name), 1),
179
179
  i("div", ke, [
180
180
  c(C, {
181
181
  icon: "delete",
182
182
  variant: "tertiary",
183
183
  "text-color": "neutral-gray-400",
184
- onClick: () => N(Y._id)
184
+ onClick: () => $(Y._id)
185
185
  }, null, 8, ["onClick"])
186
186
  ])
187
187
  ]))), 256))
@@ -190,7 +190,7 @@ const me = { class: "fm-typo-en-title-md-600" }, pe = { class: "space-y-32" }, _
190
190
  ])
191
191
  ]),
192
192
  _: 1
193
- }, 8, ["title"])) : Q("", !0)
193
+ }, 8, ["title"])) : J("", !0)
194
194
  ])
195
195
  ]),
196
196
  _: 1
@@ -201,7 +201,7 @@ const me = { class: "fm-typo-en-title-md-600" }, pe = { class: "space-y-32" }, _
201
201
  function Ce(v, t) {
202
202
  return {
203
203
  module: V.F_MENU_MODULE_V4_KEY.enum.printDepartment,
204
- operation: B.F_OPERATION_TYPE.create,
204
+ operation: R.F_OPERATION_TYPE.create,
205
205
  data: V.FdoMenuPrintDepartment.parse(v),
206
206
  link: t.map((h) => ({
207
207
  module: V.F_MENU_MODULE_V4_KEY.enum.item,
@@ -212,7 +212,7 @@ function Ce(v, t) {
212
212
  function Ve(v, t) {
213
213
  return {
214
214
  module: V.F_MENU_MODULE_V4_KEY.enum.printDepartment,
215
- operation: B.F_OPERATION_TYPE.update,
215
+ operation: R.F_OPERATION_TYPE.update,
216
216
  data: V.FdoMenuPrintDepartment.parse(v),
217
217
  link: t.map((h) => ({
218
218
  module: V.F_MENU_MODULE_V4_KEY.enum.item,
@@ -223,7 +223,7 @@ function Ve(v, t) {
223
223
  function we(v) {
224
224
  return {
225
225
  module: V.F_MENU_MODULE_V4_KEY.enum.printDepartment,
226
- operation: B.F_OPERATION_TYPE.delete,
226
+ operation: R.F_OPERATION_TYPE.delete,
227
227
  data: v._id
228
228
  };
229
229
  }
@@ -237,12 +237,12 @@ const Ee = {
237
237
  class: "fm-typo-en-body-lg-600"
238
238
  }, Le = {
239
239
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
240
- }, Ye = /* @__PURE__ */ J({
240
+ }, Ye = /* @__PURE__ */ H({
241
241
  __name: "PrintRoute",
242
242
  setup(v) {
243
243
  const {
244
244
  t
245
- } = H(), h = le(), K = f(() => h.categorizedItems), b = f(() => {
245
+ } = Q(), h = le(), N = f(() => h.categorizedItems), b = f(() => {
246
246
  const e = h.state.menu.modules.item;
247
247
  return h.printDepartments.map((y) => ({
248
248
  ...y,
@@ -300,7 +300,7 @@ const Ee = {
300
300
  });
301
301
  }
302
302
  const n = re(se(ee())), F = f(() => n.checkMenuIsLoading());
303
- async function N(e) {
303
+ async function $(e) {
304
304
  const o = e._id ? Ve(e, e.applyToItems) : Ce(e, e.applyToItems);
305
305
  await n.updateMenu(o, e.name);
306
306
  }
@@ -331,7 +331,7 @@ const Ee = {
331
331
  await n.updateMenu(we(e), e.name, !0);
332
332
  });
333
333
  }
334
- const I = k(""), U = k(), $ = f(() => {
334
+ const I = k(""), U = k(), B = f(() => {
335
335
  if (!I.value) return b.value;
336
336
  const e = I.value.toLowerCase();
337
337
  return b.value.filter((o) => o.name.toLowerCase().includes(e));
@@ -348,7 +348,7 @@ const Ee = {
348
348
  label: l(t)("menu.print_route.actions.add"),
349
349
  variant: "primary",
350
350
  onClick: z
351
- }, null, 8, ["disabled", "label"])) : Q("", !0)])]),
351
+ }, null, 8, ["disabled", "label"])) : J("", !0)])]),
352
352
  default: m(() => [x.value ? (p(), L(A, {
353
353
  key: 1
354
354
  }, [i("div", Te, [c(y, {
@@ -376,7 +376,7 @@ const Ee = {
376
376
  class: "w-full px-16 xs:block hidden flex-1 min-h-0 overflow-scroll pb-64",
377
377
  separator: ""
378
378
  }, {
379
- default: m(() => [(p(!0), L(A, null, R($.value, (d) => (p(), P(r, {
379
+ default: m(() => [(p(!0), L(A, null, K(B.value, (d) => (p(), P(r, {
380
380
  key: d._id,
381
381
  label: d.name,
382
382
  style: {
@@ -407,8 +407,8 @@ const Ee = {
407
407
  }, null, 8, ["action", "subtitle", "title"])), c(Ie, {
408
408
  ref_key: "printDepartmentRef",
409
409
  ref: U,
410
- "categorized-items": K.value,
411
- onOnSave: N
410
+ "categorized-items": N.value,
411
+ onOnSave: $
412
412
  }, null, 8, ["categorized-items"])]),
413
413
  _: 1
414
414
  }, 8, ["heading"]);
@@ -1,4 +1,4 @@
1
- import { a as f } from "./Product.vue_vue_type_script_setup_true_lang-DPOaafZ-.js";
1
+ import { a as f } from "./Product.vue_vue_type_script_setup_true_lang-CsaY9Kve.js";
2
2
  export {
3
3
  f as default
4
4
  };