@feedmepos/mf-menu 0.31.31-beta.1 → 0.31.31-prod

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 (101) hide show
  1. package/dist/{App-1TX8v7ZA.js → App-Cvgz2kQV.js} +22 -24
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Bq84uuiq.js} +22 -22
  3. package/dist/{Catalog-DWClc58s.js → Catalog-Ye-KpQ31.js} +74 -75
  4. package/dist/{Category-BqKFvFam.js → Category-BPChBqVR.js} +60 -60
  5. package/dist/{Category-IYMtMoT-.js → Category-CHcxix2b.js} +28 -28
  6. package/dist/{CookingGuide-BayJ6zj4.js → CookingGuide-DgygBSoB.js} +101 -103
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ceq86b3d.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-ClV6LD2-.js} +1 -1
  8. package/dist/{Group-LqSX7ue6.js → Group-223G1Edd.js} +1 -1
  9. package/dist/{Group-RujTPTns.js → Group-B7EU1xmY.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-Dj9ZmkYe.js → Group.vue_vue_type_script_setup_true_lang-CAZuyOPy.js} +137 -138
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CdjRWC9z.js} +13 -13
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C4IrA3es.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BRQm-UTk.js} +5067 -5049
  13. package/dist/{Ingredient-_tc8llr1.js → Ingredient-Dl1Z5Qt2.js} +64 -65
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DLFDf-VZ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CxuQTH0k.js} +1061 -1063
  15. package/dist/{LinkProductSideSheet-C6rF-G1v.js → LinkProductSideSheet-Y-Z9_9Kp.js} +12 -14
  16. package/dist/{MenuSetting-xDHeeROY.js → MenuSetting-Be44fmVj.js} +26 -27
  17. package/dist/{PrintRoute-B_TFMn5e.js → PrintRoute-BURAEZ6X.js} +15 -17
  18. package/dist/{Product-DdEEqrtc.js → Product-DSlVHbgr.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-zcistmwh.js → Product.vue_vue_type_script_setup_true_lang-DtYarO0L.js} +256 -257
  20. package/dist/{ProductInternalTools-BcC7BF6W.js → ProductInternalTools-gW57aUAO.js} +45 -45
  21. package/dist/{Products-Cu0cJshV.js → Products-Czr-70M8.js} +72 -74
  22. package/dist/{Publish-Bm3Xiks1.js → Publish-XCowNW_z.js} +32 -34
  23. package/dist/{Recipe-DWK-luIZ.js → Recipe-6oNz21AB.js} +63 -65
  24. package/dist/{Scheduler-Cb1TeBhW.js → Scheduler-UYFuFk5E.js} +19 -19
  25. package/dist/{ServingSequence-evSIET_8.js → ServingSequence-w66ujU4D.js} +34 -34
  26. package/dist/{Setting-Cn3kwC9F.js → Setting-Dgn3lOx7.js} +53 -54
  27. package/dist/{Subcategory-q4m4qHsU.js → Subcategory-lnzuxCCH.js} +34 -34
  28. package/dist/{Takeaway-ClepHYGu.js → Takeaway-C5Up5Odr.js} +14 -14
  29. package/dist/{Takeaway-D-rdUZuh.js → Takeaway-DP1GJUPF.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-y9Yxstu2.js → Takeaway.vue_vue_type_script_setup_true_lang-B45keXn7.js} +40 -41
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BSeLfoOA.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-yEIxG4F2.js} +1108 -1109
  32. package/dist/{Unit-IM8Naj82.js → Unit-Bt8aRidX.js} +12 -12
  33. package/dist/{Variant-fzGvwaMo.js → Variant-DXoOAa9M.js} +16 -16
  34. package/dist/{_id_-BsKNG9Qv.js → _id_-D9tvinax.js} +22 -22
  35. package/dist/{app-BzQRUMTK.js → app-Cnlv4rmj.js} +3 -3
  36. package/dist/{app-CoVUUCa_.js → app-DiizQWjo.js} +24 -24
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +88 -16
  39. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +44 -8
  40. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +360 -184
  41. package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +80 -28
  42. package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +44 -8
  43. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +216 -148
  44. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +216 -148
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/category.d.ts +4 -4
  46. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +218 -150
  47. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +142 -82
  48. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +108 -74
  49. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +80 -28
  50. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +44 -8
  51. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +176 -32
  52. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +324 -222
  53. package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +108 -74
  54. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1374 -1040
  55. package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +216 -148
  56. package/dist/apps/mf-menu/src/helper/import-export.d.ts +1374 -1040
  57. package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +108 -74
  58. package/dist/apps/mf-menu/src/helper/menu.d.ts +1523 -1155
  59. package/dist/apps/mf-menu/src/manager/menu/category.d.ts +4 -4
  60. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +1374 -1040
  61. package/dist/apps/mf-menu/src/manager/menu/subcategory.d.ts +4 -4
  62. package/dist/apps/mf-menu/src/stores/manager/item.d.ts +324 -222
  63. package/dist/apps/mf-menu/src/stores/manager/recipe.d.ts +12 -12
  64. package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +142 -82
  65. package/dist/apps/mf-menu/src/stores/manager/sku.d.ts +60 -60
  66. package/dist/apps/mf-menu/src/stores/manager/takeaway.d.ts +6 -6
  67. package/dist/apps/mf-menu/src/stores/manager/unit.d.ts +12 -12
  68. package/dist/apps/mf-menu/src/stores/menu.d.ts +1375 -1041
  69. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +216 -148
  70. package/dist/apps/mf-menu/src/views/CookingGuide/CookingGuideDialog.vue.d.ts +4 -4
  71. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +352 -132
  72. package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +84 -32
  73. package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +84 -32
  74. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  75. package/dist/assets/linked-status-D7AwcSC5.js +24 -0
  76. package/dist/assets/override-menu-Y9T4wxEn.js +24 -0
  77. package/dist/assets/validate-menu-DiAW2jY1.js +24 -0
  78. package/dist/{catalog-CaXceaA2.js → catalog-DUSCax4J.js} +1 -1
  79. package/dist/{catalogSetting-BGvckFdh.js → catalogSetting-18FJ5pkA.js} +1 -1
  80. package/dist/{category-u5eo_Vjd.js → category-B9XvlPFy.js} +3 -5
  81. package/dist/currency-Sno8fZYc.js +7 -0
  82. package/dist/{dayjs.min-Bsr3tJCn.js → dayjs.min-BsfKOrNo.js} +1 -1
  83. package/dist/{index-tRQb7RN_.js → index-BDpkSKDX.js} +1 -1
  84. package/dist/{index-Bbx4iZ6n.js → index-Eomwf2OO.js} +27 -27
  85. package/dist/{index-DSAG0yWh.js → index-ltyOwsRO.js} +20 -22
  86. package/dist/{item-BAqzKh4O.js → item-5Kkzf_eF.js} +1069 -1071
  87. package/dist/{jszip.min-BKJtvCjM.js → jszip.min-CRfpGjN8.js} +545 -545
  88. package/dist/menu-Btcr0nsk.js +108040 -0
  89. package/dist/{menu-CDrsBjmr.js → menu-DYs_VNfB.js} +9 -11
  90. package/dist/mf-menu.css +1 -1
  91. package/dist/{priceTier-DfbHonGe.js → priceTier-DvUjWwCM.js} +4 -4
  92. package/dist/{scheduler-DTWaBudB.js → scheduler-C76blUlS.js} +11 -13
  93. package/dist/{subcategory-D-R5r1Tr.js → subcategory-C44qN5Vk.js} +133 -135
  94. package/dist/{toExcel-84VTtSA7.js → toExcel--vNjpF-b.js} +2 -2
  95. package/dist/{unit-B4zscxzo.js → unit-C4ghZU8x.js} +23 -24
  96. package/package.json +5 -5
  97. package/dist/assets/linked-status-eQqjvOq_.js +0 -24
  98. package/dist/assets/override-menu-C8NTBJgN.js +0 -24
  99. package/dist/assets/validate-menu-Dn-OO7Ed.js +0 -24
  100. package/dist/currency-BPHwez-E.js +0 -7
  101. package/dist/menu-CsIzrBEr.js +0 -74044
@@ -1,20 +1,19 @@
1
- import { defineComponent as oe, computed as T, resolveComponent as y, createBlock as k, openBlock as p, createVNode as o, ref as w, createElementBlock as V, Fragment as z, renderSlot as ye, unref as e, withCtx as g, createElementVNode as f, createCommentVNode as B, renderList as J, createTextVNode as be, toDisplayString as N, h as W, withModifiers as q, normalizeClass as xe } from "vue";
1
+ import { defineComponent as oe, computed as T, resolveComponent as y, createBlock as k, openBlock as p, createVNode as o, ref as w, createElementBlock as V, Fragment as z, renderSlot as ye, unref as e, withCtx as g, createElementVNode as f, createCommentVNode as B, renderList as q, createTextVNode as be, toDisplayString as N, h as J, withModifiers as W, normalizeClass as xe } from "vue";
2
2
  import { useRouter as Ce } from "vue-router";
3
- import { u as de, B as M, M as pe, A as fe, z as ue, D as ee, H as ge, a8 as re } from "./menu-CsIzrBEr.js";
3
+ import { u as de, G as M, O as pe, D as fe, B as ue, A as ke, H as ee, J as ge, aa as re } from "./menu-Btcr0nsk.js";
4
4
  import { useI18n as ne, useCoreStore as ve } from "@feedmepos/mf-common";
5
- import { useSnackbar as _e, components as te, FmButtonVariant as G, FmButtonColorThemeVariant as Q, useDialog as ke, useBreakpoints as he } from "@feedmepos/ui-library";
6
- import { _ as Fe, R as ie } from "./app-CoVUUCa_.js";
7
- import { _ as Oe } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
8
- import { Country as Me } from "@feedmepos/core";
5
+ import { useSnackbar as _e, components as te, FmButtonVariant as j, FmButtonColorThemeVariant as Q, useDialog as he, useBreakpoints as Oe } from "@feedmepos/ui-library";
6
+ import { _ as Fe, R as ie } from "./app-DiizQWjo.js";
7
+ import { _ as Me } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
9
8
  import { _ as ae } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
10
9
  import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
11
- import { _ as ce, a as De } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js";
10
+ import { _ as ce, a as De } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CdjRWC9z.js";
12
11
  import { c as Se } from "./check-C9mY6LiX.js";
13
- import { C as I, a as P } from "./catalogSetting-BGvckFdh.js";
12
+ import { C as I, a as P } from "./catalogSetting-18FJ5pkA.js";
14
13
  import { _ as Te } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
15
14
  import { _ as Ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
16
- import { C as Ae } from "./catalog-CaXceaA2.js";
17
- const Ee = /* @__PURE__ */ oe({
15
+ import { C as Ee } from "./catalog-DUSCax4J.js";
16
+ const Ae = /* @__PURE__ */ oe({
18
17
  __name: "CatalogUsageTable",
19
18
  props: {
20
19
  catalog: {}
@@ -46,7 +45,7 @@ const Ee = /* @__PURE__ */ oe({
46
45
  }, {
47
46
  header: () => o("div", {
48
47
  class: "w-full flex justify-between"
49
- }, [o("p", null, [d("menu.catalog.usage.usage")]), o(Oe, {
48
+ }, [o("p", null, [d("menu.catalog.usage.usage")]), o(Me, {
50
49
  label: `${d("menu.catalog.usage.products", {
51
50
  count: D.catalog.totalProducts
52
51
  })}`,
@@ -68,8 +67,8 @@ const Ee = /* @__PURE__ */ oe({
68
67
  }
69
68
  }];
70
69
  return (b, C) => {
71
- const A = y("FmTable");
72
- return p(), k(A, {
70
+ const E = y("FmTable");
71
+ return p(), k(E, {
73
72
  "column-defs": L,
74
73
  "row-data": S.value,
75
74
  "page-size": S.value.length,
@@ -89,18 +88,18 @@ const Ee = /* @__PURE__ */ oe({
89
88
  n ?? ue.generator.initMenuV4Catalog(),
90
89
  b.value
91
90
  ));
92
- }, b = T(() => C.version === M.F_MENU_VERSION.enum.v4), C = de(), A = ve(), m = pe(fe(_e())), u = w(
91
+ }, b = T(() => C.version === M.F_MENU_VERSION.enum.v4), C = de(), E = ve(), m = pe(fe(_e())), u = w(
93
92
  I.fromCatalog(ue.generator.initMenuV4Catalog(), b.value)
94
- ), Z = T(() => C.catalogs.map((i) => i.name)), E = T({
93
+ ), Z = T(() => C.catalogs.map((i) => i.name)), A = T({
95
94
  get: () => u.value.taxSetting,
96
95
  set: (i) => {
97
96
  u.value.taxSetting = i;
98
97
  }
99
98
  }), h = T(() => {
100
- var v, F;
101
- if (!A.currentCountry.value) return [];
102
- const i = ((v = u.value.taxSetting) == null ? void 0 : v.mode) === P.MANUAL ? ((F = u.value.taxSetting) == null ? void 0 : F.inclusive) ?? [] : [];
103
- return Me.getCountry(A.currentCountry.value).taxSystems.map((U) => {
99
+ var v, O;
100
+ if (!E.currentCountry.value) return [];
101
+ const i = ((v = u.value.taxSetting) == null ? void 0 : v.mode) === P.MANUAL ? ((O = u.value.taxSetting) == null ? void 0 : O.inclusive) ?? [] : [];
102
+ return ke.Country.getCountry(E.currentCountry.value).taxSystems.map((U) => {
104
103
  const s = i.find((l) => l.systemCode === U.code);
105
104
  return {
106
105
  inclusive: (s == null ? void 0 : s.inclusive) || !1,
@@ -111,14 +110,14 @@ const Ee = /* @__PURE__ */ oe({
111
110
  function Y(i) {
112
111
  const n = u.value.taxSetting, v = n.mode === P.AUTO ? I.manualTax(h.value) : ee(n);
113
112
  v.inclusive ?? (v.inclusive = []);
114
- const F = v.inclusive.findIndex((U) => U.systemCode === i.systemCode);
115
- F < 0 ? v.inclusive.push(i) : v.inclusive.splice(F, 1, i), E.value = v;
113
+ const O = v.inclusive.findIndex((U) => U.systemCode === i.systemCode);
114
+ O < 0 ? v.inclusive.push(i) : v.inclusive.splice(O, 1, i), A.value = v;
116
115
  }
117
- function K(i, n) {
116
+ function G(i, n) {
118
117
  const v = ee(u.value);
119
118
  v.markupOptions && (v.markupOptions[i] = n, u.value = v);
120
119
  }
121
- function j(i) {
120
+ function K(i) {
122
121
  const n = ee(u.value);
123
122
  n.markupOptions && (n.markupOptions.splice(i, 1), u.value = n);
124
123
  }
@@ -143,7 +142,7 @@ const Ee = /* @__PURE__ */ oe({
143
142
  }
144
143
  const { t: r } = ne();
145
144
  return D({ trigger: L }), (i, n) => {
146
- const v = y("fm-text-field"), F = y("fm-radio"), U = y("fm-radio-group"), s = y("fm-checkbox"), l = y("fm-switch"), t = y("fm-select"), x = y("fm-button"), R = y("fm-chip"), O = y("fm-card"), $ = y("fm-side-sheet");
145
+ const v = y("fm-text-field"), O = y("fm-radio"), U = y("fm-radio-group"), s = y("fm-checkbox"), l = y("fm-switch"), t = y("fm-select"), x = y("fm-button"), R = y("fm-chip"), F = y("fm-card"), $ = y("fm-side-sheet");
147
146
  return p(), V(z, null, [
148
147
  ye(i.$slots, "default", { trigger: L }),
149
148
  o($, {
@@ -198,17 +197,17 @@ const Ee = /* @__PURE__ */ oe({
198
197
  o(U, {
199
198
  "model-value": (a = u.value.taxSetting) == null ? void 0 : a.mode,
200
199
  "onUpdate:modelValue": n[1] || (n[1] = (c) => {
201
- c === e(P).AUTO ? E.value = e(I).autoTax() : E.value = e(I).manualTax(h.value);
200
+ c === e(P).AUTO ? A.value = e(I).autoTax() : A.value = e(I).manualTax(h.value);
202
201
  })
203
202
  }, {
204
203
  default: g(() => [
205
- o(F, {
204
+ o(O, {
206
205
  value: e(P).AUTO,
207
206
  label: e(r)("menu.catalog.form.tax.auto.label"),
208
207
  sublabel: e(r)("menu.catalog.form.tax.auto.sublabel"),
209
208
  class: "pl-4"
210
209
  }, null, 8, ["value", "label", "sublabel"]),
211
- o(F, {
210
+ o(O, {
212
211
  value: e(P).MANUAL,
213
212
  label: e(r)("menu.catalog.form.tax.manual.label"),
214
213
  sublabel: e(r)("menu.catalog.form.tax.manual.sublabel")
@@ -217,7 +216,7 @@ const Ee = /* @__PURE__ */ oe({
217
216
  _: 1
218
217
  }, 8, ["model-value"]),
219
218
  ((_ = u.value.taxSetting) == null ? void 0 : _.mode) === e(P).MANUAL ? (p(), V("div", Ne, [
220
- (p(!0), V(z, null, J(h.value, (c) => (p(), k(s, {
219
+ (p(!0), V(z, null, q(h.value, (c) => (p(), k(s, {
221
220
  key: c.systemCode,
222
221
  "model-value": c.inclusive,
223
222
  value: !0,
@@ -291,7 +290,7 @@ const Ee = /* @__PURE__ */ oe({
291
290
  o(x, {
292
291
  "text-color": e(Q).ColorPrimary,
293
292
  "border-color": e(Q).ColorPrimary,
294
- variant: e(G).Secondary,
293
+ variant: e(j).Secondary,
295
294
  label: e(r)("menu.catalog.form.markup.add"),
296
295
  "prepend-icon": "add",
297
296
  onClick: a
@@ -299,16 +298,16 @@ const Ee = /* @__PURE__ */ oe({
299
298
  ]),
300
299
  _: 1
301
300
  }, 8, ["categories", "items"]),
302
- (p(!0), V(z, null, J(u.value.markupOptions, (a, _) => (p(), k(ce, {
301
+ (p(!0), V(z, null, q(u.value.markupOptions, (a, _) => (p(), k(ce, {
303
302
  key: _,
304
303
  categories: e(C).categories,
305
304
  items: e(C).items,
306
305
  "model-value": a,
307
306
  action: "update",
308
- "onUpdate:modelValue": (c) => c && K(_, c)
307
+ "onUpdate:modelValue": (c) => c && G(_, c)
309
308
  }, {
310
309
  default: g(({ trigger: c }) => [
311
- o(O, {
310
+ o(F, {
312
311
  id: JSON.stringify(a),
313
312
  class: "py-12 px-16 cursor-pointer",
314
313
  variant: "outlined",
@@ -329,9 +328,9 @@ const Ee = /* @__PURE__ */ oe({
329
328
  }) : e(r)("menu.catalog.form.markup.all_items")), 1)
330
329
  ]),
331
330
  o(x, {
332
- variant: e(G).Tertiary,
331
+ variant: e(j).Tertiary,
333
332
  "prepend-icon": "delete",
334
- onClick: (se) => j(_)
333
+ onClick: (se) => K(_)
335
334
  }, null, 8, ["variant", "onClick"])
336
335
  ])
337
336
  ]),
@@ -356,20 +355,20 @@ const Ee = /* @__PURE__ */ oe({
356
355
  ], 64);
357
356
  };
358
357
  }
359
- }), me = ze, Ke = {
358
+ }), me = ze, Ge = {
360
359
  key: 0
361
- }, je = {
360
+ }, Ke = {
362
361
  class: "flex justify-end items-center"
363
- }, Ge = {
362
+ }, je = {
364
363
  class: "w-[320px]"
365
364
  }, Ye = {
366
365
  key: 1,
367
366
  class: "flex-1 flex flex-col min-h-0"
368
367
  }, He = {
369
368
  class: "p-8"
370
- }, We = {
369
+ }, Je = {
371
370
  class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
372
- }, qe = ["onClick"], Je = {
371
+ }, We = ["onClick"], qe = {
373
372
  class: "flex-1 space-y-4"
374
373
  }, Qe = {
375
374
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
@@ -383,14 +382,14 @@ const Ee = /* @__PURE__ */ oe({
383
382
  class: "fm-typo-en-title-md-600"
384
383
  }, la = {
385
384
  class: "space-y-24"
386
- }, le = "main", ba = /* @__PURE__ */ oe({
385
+ }, le = "main", ya = /* @__PURE__ */ oe({
387
386
  __name: "Catalog",
388
387
  setup(X) {
389
- const D = ve(), d = de(), S = _e(), L = fe(S), b = ke(), C = pe(L), A = Ce(), {
388
+ const D = ve(), d = de(), S = _e(), L = fe(S), b = he(), C = pe(L), E = Ce(), {
390
389
  t: m
391
390
  } = ne();
392
391
  function u(s, l) {
393
- var O, $, a, _;
392
+ var F, $, a, _;
394
393
  const t = D.restaurants.value.find(({
395
394
  _id: c
396
395
  }) => c === l._id), x = [...l.linkedDeliveryCatalogs.map((c) => ({
@@ -398,7 +397,7 @@ const Ee = /* @__PURE__ */ oe({
398
397
  selector: c.catalog
399
398
  })), {
400
399
  label: "Delivery (FoodPanda integration)",
401
- selector: (O = t == null ? void 0 : t.foodpandaDelivery) == null ? void 0 : O.catalogId
400
+ selector: (F = t == null ? void 0 : t.foodpandaDelivery) == null ? void 0 : F.catalogId
402
401
  }, {
403
402
  label: "Delivery (GrabFood integration)",
404
403
  selector: ($ = t == null ? void 0 : t.grabfoodDelivery) == null ? void 0 : $.catalogId
@@ -435,7 +434,7 @@ const Ee = /* @__PURE__ */ oe({
435
434
  usage: u(s, l)
436
435
  })).filter((l) => l.usage.length > 0);
437
436
  }
438
- const E = w(!1), h = w(""), Y = T(() => {
437
+ const A = w(!1), h = w(""), Y = T(() => {
439
438
  var l;
440
439
  return [{
441
440
  id: le,
@@ -452,8 +451,8 @@ const Ee = /* @__PURE__ */ oe({
452
451
  disableDelete: !1,
453
452
  defaultOrderFrom: t.defaultOrderFrom
454
453
  }))].map((t) => {
455
- var O;
456
- const x = Z(((O = t.doc) == null ? void 0 : O._id) || null), R = t.doc ? Ae.getSellingItem(t.doc, d.state.menu) : d.state.menu.modules.item;
454
+ var F;
455
+ const x = Z(((F = t.doc) == null ? void 0 : F._id) || null), R = t.doc ? Ee.getSellingItem(t.doc, d.state.menu) : d.state.menu.modules.item;
457
456
  return {
458
457
  ...t,
459
458
  taxMode: t.taxes ? "Manual" : "Automatic",
@@ -465,8 +464,8 @@ const Ee = /* @__PURE__ */ oe({
465
464
  disableDelete: t.disableDelete
466
465
  };
467
466
  });
468
- }), K = T(() => Y.value.filter((s) => s.id !== le)), j = T(() => K.value.filter((s) => s.name.toLowerCase().includes(h.value.toLowerCase()))), H = (s) => {
469
- d.selectCatalog(s === le ? null : s), A.push({
467
+ }), G = T(() => Y.value.filter((s) => s.id !== le)), K = T(() => G.value.filter((s) => s.name.toLowerCase().includes(h.value.toLowerCase()))), H = (s) => {
468
+ d.selectCatalog(s === le ? null : s), E.push({
470
469
  name: ie.EDIT_CATALOG_PRODUCT,
471
470
  params: {
472
471
  id: s
@@ -495,7 +494,7 @@ const Ee = /* @__PURE__ */ oe({
495
494
  primaryActions: {
496
495
  text: m("menu.common.actions.remove"),
497
496
  close: !0,
498
- variant: G.Destructive
497
+ variant: j.Destructive
499
498
  },
500
499
  secondaryActions: {
501
500
  text: m("menu.common.actions.cancel"),
@@ -506,7 +505,7 @@ const Ee = /* @__PURE__ */ oe({
506
505
  module: M.F_MENU_MODULE_V4_KEY.enum.catalog,
507
506
  operation: ge.F_OPERATION_TYPE.delete,
508
507
  data: s.id
509
- }, s.name, !0), d.selectCatalog(null), await A.push({
508
+ }, s.name, !0), d.selectCatalog(null), await E.push({
510
509
  name: ie.CATALOG
511
510
  });
512
511
  });
@@ -525,7 +524,7 @@ const Ee = /* @__PURE__ */ oe({
525
524
  enableSorting: !1,
526
525
  cell: (s) => {
527
526
  const l = s.row.original;
528
- return W("div", {
527
+ return J("div", {
529
528
  class: "flex justify-between"
530
529
  }, [l.autoLink]);
531
530
  }
@@ -539,33 +538,33 @@ const Ee = /* @__PURE__ */ oe({
539
538
  header: "",
540
539
  cell: (s) => {
541
540
  const l = s.row.original;
542
- return W("div", {
541
+ return J("div", {
543
542
  class: "flex justify-end"
544
- }, [W(te.FmButton, {
543
+ }, [J(te.FmButton, {
545
544
  icon: "file_copy",
546
545
  disabled: !l.id,
547
546
  variant: "tertiary",
548
547
  textColor: "neutral-gray-400",
549
- onClick: q(async () => {
548
+ onClick: W(async () => {
550
549
  await i(l);
551
550
  }, ["stop", "prevent"])
552
- }), W(te.FmButton, {
551
+ }), J(te.FmButton, {
553
552
  icon: "delete",
554
553
  disabled: !l.id,
555
554
  variant: "tertiary",
556
555
  textColor: "neutral-gray-400",
557
- onClick: q(async () => {
556
+ onClick: W(async () => {
558
557
  await n(l);
559
558
  }, ["stop", "prevent"])
560
559
  })]);
561
560
  }
562
- }]), F = he(), U = T(() => F.breakpoints.value.xs);
561
+ }]), O = Oe(), U = T(() => O.breakpoints.value.xs);
563
562
  return (s, l) => {
564
- const t = y("fm-button"), x = y("FmSearch"), R = y("FmTable"), O = y("FmButton"), $ = y("fm-side-sheet");
563
+ const t = y("fm-button"), x = y("FmSearch"), R = y("FmTable"), F = y("FmButton"), $ = y("fm-side-sheet");
565
564
  return p(), k(Ue, {
566
565
  heading: e(m)("menu.catalog.title")
567
566
  }, {
568
- "append-heading": g(() => [K.value.length > 0 ? (p(), k(e(me), {
567
+ "append-heading": g(() => [G.value.length > 0 ? (p(), k(e(me), {
569
568
  key: 0,
570
569
  ref_key: "createCatalogManagerFormRef",
571
570
  ref: r
@@ -576,7 +575,7 @@ const Ee = /* @__PURE__ */ oe({
576
575
  class: xe([["xs:fixed xs:z-10 xs:bottom-[68px] xs:right-16"], "ml-auto xs:ml-0 flex flex-row gap-8"])
577
576
  }, [o(t, {
578
577
  label: e(m)("menu.catalog.actions.view_usage"),
579
- onClick: l[0] || (l[0] = (_) => E.value = !0),
578
+ onClick: l[0] || (l[0] = (_) => A.value = !0),
580
579
  variant: "secondary"
581
580
  }, null, 8, ["label"]), o(t, {
582
581
  label: e(m)("menu.catalog.actions.add"),
@@ -585,7 +584,7 @@ const Ee = /* @__PURE__ */ oe({
585
584
  }, null, 8, ["label", "onClick"])])]),
586
585
  _: 1
587
586
  }, 512)) : B("", !0)]),
588
- default: g(() => [K.value.length === 0 ? (p(), k(e(Te), {
587
+ default: g(() => [G.value.length === 0 ? (p(), k(e(Te), {
589
588
  key: 0,
590
589
  subtitle: e(m)("menu.catalog.empty.subtitle"),
591
590
  title: e(m)("menu.catalog.empty.title")
@@ -611,21 +610,21 @@ const Ee = /* @__PURE__ */ oe({
611
610
  placeholder: e(m)("menu.common.labels.search_placeholder", {
612
611
  type: e(m)("menu.catalog.title")
613
612
  })
614
- }, null, 8, ["modelValue", "placeholder"])]), f("div", We, [(p(!0), V(z, null, J(j.value, (a) => (p(), V("div", {
613
+ }, null, 8, ["modelValue", "placeholder"])]), f("div", Je, [(p(!0), V(z, null, q(K.value, (a) => (p(), V("div", {
615
614
  key: a.id,
616
615
  class: "flex flex-row py-12 px-16 items-center",
617
616
  onClick: (_) => H(a.id)
618
- }, [f("div", Je, [f("p", Qe, " Tax calculation: " + N(a.taxMode), 1), f("p", Xe, " Auto link product: " + N(a.autoLink), 1), f("p", Ze, N(a.name), 1)]), f("div", ea, [o(O, {
617
+ }, [f("div", qe, [f("p", Qe, " Tax calculation: " + N(a.taxMode), 1), f("p", Xe, " Auto link product: " + N(a.autoLink), 1), f("p", Ze, N(a.name), 1)]), f("div", ea, [o(F, {
619
618
  "text-color": e(Q).NeutralGray400,
620
- variant: e(G).Tertiary,
619
+ variant: e(j).Tertiary,
621
620
  "prepend-icon": "file_copy",
622
- onClick: q((_) => i(a), ["stop"])
623
- }, null, 8, ["text-color", "variant", "onClick"]), o(O, {
621
+ onClick: W((_) => i(a), ["stop"])
622
+ }, null, 8, ["text-color", "variant", "onClick"]), o(F, {
624
623
  "text-color": e(Q).NeutralGray400,
625
- variant: e(G).Tertiary,
624
+ variant: e(j).Tertiary,
626
625
  "prepend-icon": "delete",
627
- onClick: q((_) => n(a), ["stop"])
628
- }, null, 8, ["text-color", "variant", "onClick"])])], 8, qe))), 128))])])) : (p(), V("div", Ke, [f("div", je, [f("div", Ge, [o(x, {
626
+ onClick: W((_) => n(a), ["stop"])
627
+ }, null, 8, ["text-color", "variant", "onClick"])])], 8, We))), 128))])])) : (p(), V("div", Ge, [f("div", Ke, [f("div", je, [o(x, {
629
628
  modelValue: h.value,
630
629
  "onUpdate:modelValue": l[1] || (l[1] = (a) => h.value = a),
631
630
  autofocus: "",
@@ -636,8 +635,8 @@ const Ee = /* @__PURE__ */ oe({
636
635
  }, null, 8, ["modelValue", "placeholder"])])]), o(Fe, null, {
637
636
  default: g(() => [o(R, {
638
637
  "column-defs": v.value,
639
- "row-data": j.value,
640
- "page-size": j.value.length,
638
+ "row-data": K.value,
639
+ "page-size": K.value.length,
641
640
  "hide-footer": !0,
642
641
  "shrink-at": !1,
643
642
  "search-value": h.value,
@@ -645,13 +644,13 @@ const Ee = /* @__PURE__ */ oe({
645
644
  }, null, 8, ["column-defs", "row-data", "page-size", "search-value"])]),
646
645
  _: 1
647
646
  })])), o($, {
648
- modelValue: E.value,
649
- "onUpdate:modelValue": l[4] || (l[4] = (a) => E.value = a),
647
+ modelValue: A.value,
648
+ "onUpdate:modelValue": l[4] || (l[4] = (a) => A.value = a),
650
649
  "max-width": 1e3,
651
650
  "dismiss-away": ""
652
651
  }, {
653
652
  "side-sheet-header": g(() => [f("p", aa, N(e(m)("menu.catalog.usage.title")), 1)]),
654
- default: g(() => [f("div", la, [(p(!0), V(z, null, J(Y.value, (a, _) => (p(), k(Ee, {
653
+ default: g(() => [f("div", la, [(p(!0), V(z, null, q(Y.value, (a, _) => (p(), k(Ae, {
655
654
  key: _,
656
655
  catalog: a
657
656
  }, null, 8, ["catalog"]))), 128))])]),
@@ -663,5 +662,5 @@ const Ee = /* @__PURE__ */ oe({
663
662
  }
664
663
  });
665
664
  export {
666
- ba as default
665
+ ya as default
667
666
  };