@feedmepos/mf-menu 0.31.71-prod → 0.31.72-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 (104) hide show
  1. package/dist/{App-B5R51HHK.js → App-CL10Jg9U.js} +1441 -2545
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Dflill79.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Cjx5fbP-.js} +3 -3
  3. package/dist/{Catalog-yv_fwu1h.js → Catalog-DH2BdP9z.js} +26 -26
  4. package/dist/{Category-lOaUwRrB.js → Category-DqGNz35T.js} +35 -35
  5. package/dist/{Category-DEkZ-IWE.js → Category-qYUvpLdh.js} +22 -22
  6. package/dist/{CookingGuide-Db8VQK5V.js → CookingGuide-BDdhXyem.js} +113 -113
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DwsVvlUq.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cdpdj5IE.js} +1 -1
  8. package/dist/{Group-CFS8D5Uf.js → Group-BdezABwF.js} +3 -3
  9. package/dist/{Group-B2EXYbcn.js → Group-CC_L3UT-.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BdZ9K2Ht.js → Group.vue_vue_type_script_setup_true_lang-QW6LNvGs.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CtlyZlos.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BRIuJaJC.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C-RPhKoA.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Dsz3Xn9Z.js} +21 -22
  13. package/dist/{Ingredient-C3B8G0Fd.js → Ingredient-BBI1k8pJ.js} +23 -23
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BrhhXwp8.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DAEBkjvK.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-DPn7KN3l.js → LinkProductSideSheet-CjpsPqEi.js} +3 -3
  16. package/dist/{MenuSetting-Mph9Pc9s.js → MenuSetting-C-P1Scc1.js} +31 -31
  17. package/dist/{PrintRoute-BwboeALA.js → PrintRoute-6PwNkgPq.js} +26 -26
  18. package/dist/{Product-CNKnPt-z.js → Product-C9bWKMnR.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-BksTc5Gm.js → Product.vue_vue_type_script_setup_true_lang-B-_k2sxs.js} +71 -71
  20. package/dist/{ProductInternalTools-DGkoIc6T.js → ProductInternalTools-CPOtlBbf.js} +16 -16
  21. package/dist/{Products-CkLZYybB.js → Products-bBYxKoQD.js} +11 -11
  22. package/dist/{Publish-Bzq9aREC.js → Publish-D8kDEEHH.js} +56 -57
  23. package/dist/{Recipe-K55Bnscl.js → Recipe-COSl8UGA.js} +13 -13
  24. package/dist/{Scheduler-ChAmTqSR.js → Scheduler-CbpeTQSj.js} +16 -16
  25. package/dist/{ServingSequence-ywa7-8rG.js → ServingSequence-cj2B74HR.js} +20 -20
  26. package/dist/{Setting-CHUNtVho.js → Setting-D23VkUB7.js} +20 -20
  27. package/dist/{Subcategory-0-99_i06.js → Subcategory-DX8QrFgC.js} +19 -19
  28. package/dist/{Takeaway-BzvxZ_dA.js → Takeaway-DH2SFWfP.js} +10 -10
  29. package/dist/{Takeaway-CsJf5I8I.js → Takeaway-DrhBsRCs.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Bh8mjdk4.js → Takeaway.vue_vue_type_script_setup_true_lang-BToJ-0PD.js} +20 -20
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CbxgtwVa.js → Thumbnail.vue_vue_type_script_setup_true_lang-C2iX4mHA.js} +20 -20
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dh_CA5gZ.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CBfuxySf.js} +15 -16
  33. package/dist/{Unit-CbTkNhj2.js → Unit-DMxFyFY2.js} +13 -13
  34. package/dist/{Variant-NkbzEbF-.js → Variant-rNyjWODP.js} +15 -15
  35. package/dist/{_id_-mr4_eirX.js → _id_-BwarikMA.js} +14 -14
  36. package/dist/{app-BzsHQwP_.js → app-DSzFVevx.js} +1 -1
  37. package/dist/{app-DVB67WHZ.js → app-QPsQPdlC.js} +26 -26
  38. package/dist/app.js +1 -1
  39. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +72 -0
  40. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +36 -0
  41. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +218 -0
  42. package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +1 -1
  43. package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +52 -0
  44. package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +36 -0
  45. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +110 -0
  46. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +110 -0
  47. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +110 -0
  48. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +81 -0
  49. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +55 -0
  50. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +52 -0
  51. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +36 -0
  52. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +144 -0
  53. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +165 -0
  54. package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +55 -0
  55. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +375 -0
  56. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/tree.d.ts +18 -18
  57. package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +110 -0
  58. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +81 -0
  59. package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +55 -0
  60. package/dist/apps/mf-menu/src/helper/menu.d.ts +430 -0
  61. package/dist/apps/mf-menu/src/helper/menuImport.d.ts +375 -0
  62. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +375 -0
  63. package/dist/apps/mf-menu/src/stores/manager/item.d.ts +165 -0
  64. package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +81 -0
  65. package/dist/apps/mf-menu/src/stores/menu.d.ts +375 -0
  66. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +110 -0
  67. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +220 -0
  68. package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +52 -0
  69. package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +52 -0
  70. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  71. package/dist/assets/linked-status-B5NYysaV.js +13 -0
  72. package/dist/assets/override-menu-CZz5sTM4.js +13 -0
  73. package/dist/assets/validate-menu-Bfr1r4Pn.js +13 -0
  74. package/dist/{catalog-C_6TM4e_.js → catalog-GksNTiZI.js} +1 -1
  75. package/dist/{catalogSetting-pTMi5i6h.js → catalogSetting-Df3DEjQ6.js} +1 -1
  76. package/dist/{category-CHNICcWp.js → category-BFAv5nJl.js} +5 -5
  77. package/dist/{currency-Dx-pn9tw.js → currency-B-hSVUof.js} +1 -1
  78. package/dist/{customAttributes-DvHKcDWb.js → customAttributes-B5fqV_rg.js} +1 -1
  79. package/dist/{index-CA3_R55p.js → index-Bk9co2B9.js} +13 -13
  80. package/dist/{index-DqIorABw.js → index-CC3psw9Q.js} +1 -1
  81. package/dist/{index-X3RliLfv.js → index-CFaF-9Hf.js} +26 -26
  82. package/dist/{index-DGtoqrTo.js → index-Cg8D4Rgf.js} +1 -1
  83. package/dist/{item-JhHKgoMj.js → item-ML0US37V.js} +16 -16
  84. package/dist/iteration-CN2IzQNz.js +27 -0
  85. package/dist/{jszip.min-BQReTtS0.js → jszip.min-B19btBFO.js} +245 -245
  86. package/dist/{menu-2ymqQnFE.js → menu-D2OVCn5f.js} +27902 -27334
  87. package/dist/{menu-Bhfx50bt.js → menu-IEr5lLH7.js} +1 -1
  88. package/dist/{menuV2-ZaA_QLdj.js → menuV2-CxFvJ_no.js} +61 -61
  89. package/dist/mf-menu.css +1 -1
  90. package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
  91. package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +1 -1
  92. package/dist/{priceTier-IZtw6WUa.js → priceTier-BRe15JfR.js} +1 -1
  93. package/dist/{scheduler-CzuGjuw5.js → scheduler-CBZXdcgd.js} +20 -20
  94. package/dist/{subcategory-Dt6tFvIu.js → subcategory-Doq8heDm.js} +6 -6
  95. package/dist/{toExcel-CUrEHCjB.js → toExcel-Bkaa9f0N.js} +2 -2
  96. package/dist/{unit-Ibbp0wZT.js → unit-xdbq52iv.js} +9 -9
  97. package/package.json +3 -3
  98. package/dist/apps/mf-menu/src/components/Announcements.vue.d.ts +0 -19
  99. package/dist/apps/mf-menu/src/stores/announcement/announcement.d.ts +0 -11
  100. package/dist/assets/linked-status-Dwqdwyog.js +0 -13
  101. package/dist/assets/override-menu-CGexvHxV.js +0 -13
  102. package/dist/assets/validate-menu-C2daBpKY.js +0 -13
  103. package/dist/dayjs.min-BZu87fXJ.js +0 -6
  104. package/dist/iteration-BoeoXAHD.js +0 -23
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as be, ref as g, computed as A, watch as ve, resolveComponent as I, createElementBlock as S, openBlock as v, Fragment as M, renderSlot as _e, createVNode as u, unref as l, withCtx as p, createBlock as T, createCommentVNode as z, createElementVNode as _, toDisplayString as Y, renderList as Re } from "vue";
2
- import { H as F, Q as ye, u as q, A as Ae, I as J } from "./menu-2ymqQnFE.js";
2
+ import { H as F, Q as ye, u as q, z as Ae, I as J } from "./menu-D2OVCn5f.js";
3
3
  import { b as U } from "./app-5fxKLAzS.js";
4
4
  import { useI18n as ke, useCustomAttributes as K, useCoreStore as Ce, ItemSelector as he, EMPTY_RULE as B, isEmptyRule as W } from "@feedmepos/mf-common";
5
5
  import { components as Ve, FmButtonVariant as X } from "@feedmepos/ui-library";
6
- import { c as ge, u as Ie, a as h, m as O, f as E } from "./customAttributes-DvHKcDWb.js";
6
+ import { c as ge, u as Ie, a as h, m as O, f as E } from "./customAttributes-B5fqV_rg.js";
7
7
  import { u as Se } from "./discardConfirm-BHni0LNu.js";
8
- import { u as we } from "./menuV2-ZaA_QLdj.js";
8
+ import { u as we } from "./menuV2-CxFvJ_no.js";
9
9
  import { c as Fe } from "./check-C9mY6LiX.js";
10
10
  /* empty css */
11
11
  const Ue = (c, N) => {
@@ -1,14 +1,14 @@
1
- import { defineComponent as le, ref as U, computed as V, watch as P, resolveComponent as g, createBlock as J, openBlock as y, unref as e, withCtx as p, createElementVNode as r, createVNode as l, createElementBlock as R, Fragment as ue, renderList as oe, toDisplayString as D, createCommentVNode as z, withModifiers as be } from "vue";
2
- import { u as se, I as W, G as ce, B as ge, H as re } from "./menu-2ymqQnFE.js";
1
+ import { defineComponent as le, ref as $, computed as V, watch as P, resolveComponent as g, createBlock as J, openBlock as y, unref as e, withCtx as p, createElementVNode as r, createVNode as l, createElementBlock as R, Fragment as ue, renderList as oe, toDisplayString as D, createCommentVNode as z, withModifiers as be } from "vue";
2
+ import { u as se, I as W, D as ce, A as ge, H as re } from "./menu-D2OVCn5f.js";
3
3
  import { useI18n as ae, useCustomAttributes as ie, useCoreStore as de, EMPTY_RULE as Q, isEmptyRule as me } from "@feedmepos/mf-common";
4
4
  import { components as ne, FmButtonVariant as E, useDialog as ye, useSnackbar as pe, useBreakpoints as he, FmButtonColorThemeVariant as te } from "@feedmepos/ui-library";
5
- import { u as ke, c as Ce, m as q, _ as X, a as K, f as H } from "./customAttributes-DvHKcDWb.js";
6
- import { _ as _e } from "./app-DVB67WHZ.js";
5
+ import { u as ke, c as Ce, m as q, _ as X, a as K, f as H } from "./customAttributes-B5fqV_rg.js";
6
+ import { _ as _e } from "./app-QPsQPdlC.js";
7
7
  import { b as Y } from "./app-5fxKLAzS.js";
8
8
  import { u as Se } from "./discardConfirm-BHni0LNu.js";
9
9
  import { _ as xe } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
10
- import { C as j, a as N } from "./catalogSetting-pTMi5i6h.js";
11
- import { u as we } from "./priceTier-IZtw6WUa.js";
10
+ import { C as j, a as N } from "./catalogSetting-Df3DEjQ6.js";
11
+ import { u as we } from "./priceTier-BRe15JfR.js";
12
12
  const Re = {
13
13
  class: "fm-typo-en-title-md-600 mr-auto"
14
14
  }, Ae = {
@@ -19,11 +19,11 @@ const Re = {
19
19
  class: "grid md:grid-cols-3 gap-16"
20
20
  }, Fe = {
21
21
  class: "md:col-span-2 space-y-16"
22
- }, Ge = {
23
- class: "flex justify-end"
24
22
  }, Ue = {
23
+ class: "flex justify-end"
24
+ }, $e = {
25
25
  class: "flex gap-8 items-center justify-start"
26
- }, $e = /* @__PURE__ */ le({
26
+ }, Ge = /* @__PURE__ */ le({
27
27
  __name: "RuleGroupSideSheet",
28
28
  props: {
29
29
  modelValue: {
@@ -35,9 +35,9 @@ const Re = {
35
35
  setup(Z, {
36
36
  emit: o
37
37
  }) {
38
- const S = Z, $ = o, {
38
+ const S = Z, G = o, {
39
39
  t: i
40
- } = ae(), A = se(), t = U({
40
+ } = ae(), A = se(), t = $({
41
41
  name: "",
42
42
  description: "",
43
43
  rules: []
@@ -62,8 +62,8 @@ const Re = {
62
62
  categories: V(() => A.categories || [])
63
63
  }), x = V({
64
64
  get: () => S.modelValue,
65
- set: (u) => $("update:modelValue", u)
66
- }), L = U(null);
65
+ set: (u) => G("update:modelValue", u)
66
+ }), L = $(null);
67
67
  P(() => S.editingGroup, (u) => {
68
68
  u ? t.value = {
69
69
  name: u.name,
@@ -93,13 +93,13 @@ const Re = {
93
93
  rules: []
94
94
  });
95
95
  });
96
- function G(u) {
96
+ function U(u) {
97
97
  return `${u}_${(/* @__PURE__ */ new Date()).toISOString()}`;
98
98
  }
99
99
  async function _() {
100
100
  var a;
101
101
  const u = {
102
- _id: ((a = S.editingGroup) == null ? void 0 : a._id) ?? G("group"),
102
+ _id: ((a = S.editingGroup) == null ? void 0 : a._id) ?? U("group"),
103
103
  name: t.value.name,
104
104
  description: t.value.description,
105
105
  rules: t.value.rules.map((s) => ({
@@ -114,11 +114,11 @@ const Re = {
114
114
  } : void 0
115
115
  }))
116
116
  };
117
- $("submit", u);
117
+ G("submit", u);
118
118
  }
119
119
  function m() {
120
120
  t.value.rules.push({
121
- _id: G("rule"),
121
+ _id: U("rule"),
122
122
  restaurantRule: {
123
123
  restaurantAttributes: null,
124
124
  restaurantCustomAttributes: null
@@ -163,7 +163,7 @@ const Re = {
163
163
  "prepend-icon": "arrow_back",
164
164
  onClick: a[0] || (a[0] = () => x.value = !1)
165
165
  }, null, 8, ["variant"]), r("p", Re, D(u.editingGroup ? e(i)("menu.rule_groups.edit_group") : e(i)("menu.rule_groups.create_group")), 1)]),
166
- "side-sheet-footer": p(() => [r("div", Ue, [l(s, {
166
+ "side-sheet-footer": p(() => [r("div", $e, [l(s, {
167
167
  label: e(i)("common.save"),
168
168
  size: "lg",
169
169
  type: "submit",
@@ -257,7 +257,7 @@ const Re = {
257
257
  }, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])];
258
258
  }),
259
259
  _: 2
260
- }, 1032, ["label"])])]), r("div", Ge, [l(s, {
260
+ }, 1032, ["label"])])]), r("div", Ue, [l(s, {
261
261
  variant: e(E).Tertiary,
262
262
  "prepend-icon": "delete",
263
263
  onClick: (w) => v(O)
@@ -309,7 +309,7 @@ const Re = {
309
309
  setup(Z) {
310
310
  const {
311
311
  t: o
312
- } = ae(), S = ye(), $ = pe(), i = ce($), A = se(), t = U(A.state.menu.ruleGroupSettings || {
312
+ } = ae(), S = ye(), G = pe(), i = ce(G), A = se(), t = $(A.state.menu.ruleGroupSettings || {
313
313
  groups: []
314
314
  });
315
315
  P(() => A.state.menu.ruleGroupSettings, (n) => {
@@ -319,7 +319,7 @@ const Re = {
319
319
  }, {
320
320
  deep: !0
321
321
  });
322
- const k = U(!1), F = U(null), h = he(), M = V(() => h.breakpoints.value.xs), T = U(""), I = V(() => t.value.groups.filter((n) => n.name.toLowerCase().includes(T.value.toLowerCase()))), x = [{
322
+ const k = $(!1), F = $(null), h = he(), M = V(() => h.breakpoints.value.xs), T = $(""), I = V(() => t.value.groups.filter((n) => n.name.toLowerCase().includes(T.value.toLowerCase()))), x = [{
323
323
  header: o("menu.rule_groups.table.columns.name"),
324
324
  accessorKey: "name",
325
325
  enableSorting: !0
@@ -344,7 +344,7 @@ const Re = {
344
344
  function L(n) {
345
345
  _(n.original);
346
346
  }
347
- function G() {
347
+ function U() {
348
348
  F.value = null, k.value = !0;
349
349
  }
350
350
  function _(n) {
@@ -398,7 +398,7 @@ const Re = {
398
398
  }, null, 8, ["modelValue", "placeholder"])]), l(f, {
399
399
  icon: "add",
400
400
  variant: e(E).Secondary,
401
- onClick: G
401
+ onClick: U
402
402
  }, null, 8, ["variant"])]), r("div", ze, [(y(!0), R(ue, null, oe(I.value, (s) => (y(), R("div", {
403
403
  key: s._id,
404
404
  class: "flex flex-row py-12 px-16 cursor-pointer",
@@ -411,7 +411,7 @@ const Re = {
411
411
  }, null, 8, ["text-color", "variant", "onClick"])], 8, Pe))), 128))])])) : (y(), R("div", Me, [r("div", Ie, [r("div", null, [r("h1", Be, D(e(o)("menu.rule_groups.title")), 1), r("p", Ne, D(e(o)("menu.rule_groups.description")), 1)]), l(f, {
412
412
  label: e(o)("menu.rule_groups.create_group"),
413
413
  icon: "add",
414
- onClick: G
414
+ onClick: U
415
415
  }, null, 8, ["label"])]), r("div", De, [r("div", Ee, [l(u, {
416
416
  modelValue: T.value,
417
417
  "onUpdate:modelValue": c[0] || (c[0] = (s) => T.value = s),
@@ -427,7 +427,7 @@ const Re = {
427
427
  onRowClick: L
428
428
  }, null, 8, ["row-data", "page-size"])]),
429
429
  _: 1
430
- })])), l($e, {
430
+ })])), l(Ge, {
431
431
  modelValue: k.value,
432
432
  "onUpdate:modelValue": c[2] || (c[2] = (s) => k.value = s),
433
433
  "editing-group": F.value,
@@ -458,14 +458,14 @@ const Re = {
458
458
  }, vt = /* @__PURE__ */ le({
459
459
  __name: "MenuSetting",
460
460
  setup(Z) {
461
- var G;
461
+ var U;
462
462
  const {
463
463
  t: o
464
- } = ae(), S = se(), $ = de(), i = pe(), A = ce(i), t = V(() => ({
464
+ } = ae(), S = se(), G = de(), i = pe(), A = ce(i), t = V(() => ({
465
465
  lowStock: S.state.menu.lowStockThreshold,
466
466
  taxSetting: S.state.menu.masterCatalogSetting,
467
467
  priceTierSettings: S.state.menu.priceTierSettings
468
- })), k = U("conf"), F = V(() => [{
468
+ })), k = $("conf"), F = V(() => [{
469
469
  label: o("menu.menu_setting.tabs.menu_configuration"),
470
470
  value: "conf"
471
471
  }, ...S.isV4 ? [{
@@ -474,15 +474,15 @@ const Re = {
474
474
  }, {
475
475
  label: o("menu.menu_setting.tabs.link_product_rule_groups"),
476
476
  value: "link-product-rule-groups"
477
- }] : []]), h = U(j.transformTax((G = t.value.taxSetting) == null ? void 0 : G.inclusiveTaxes));
477
+ }] : []]), h = $(j.transformTax((U = t.value.taxSetting) == null ? void 0 : U.inclusiveTaxes));
478
478
  P(() => t.value, (_) => {
479
479
  var m;
480
480
  h.value = j.transformTax((m = _.taxSetting) == null ? void 0 : m.inclusiveTaxes);
481
481
  });
482
482
  const M = V(() => {
483
- if (!$.currentCountry.value) return [];
483
+ if (!G.currentCountry.value) return [];
484
484
  const _ = h.value.mode === N.MANUAL ? h.value.inclusive ?? [] : [];
485
- return ge.Country.getCountry($.currentCountry.value).taxSystems.map((v) => {
485
+ return ge.Country.getCountry(G.currentCountry.value).taxSystems.map((v) => {
486
486
  const C = _.find((n) => n.systemCode === v.code);
487
487
  return {
488
488
  inclusive: (C == null ? void 0 : C.inclusive) || !1,
@@ -1,15 +1,15 @@
1
- import { defineComponent as H, ref as T, 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 B, h as _, withModifiers as q } from "vue";
1
+ import { defineComponent as J, ref as T, 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 G, toDisplayString as S, createElementBlock as L, Fragment as A, renderList as B, h as _, withModifiers as q } from "vue";
2
2
  import { useI18n as Q } from "@feedmepos/mf-common";
3
3
  import { components as W, useSnackbar as te, useDialog as oe } from "@feedmepos/ui-library";
4
4
  import { _ as ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as ae } from "./app-DVB67WHZ.js";
6
- import { H as j, I as le, J as Y, A as C, u as re, O as se, G as ie } from "./menu-2ymqQnFE.js";
7
- import { _ as G } from "./customAttributes-DvHKcDWb.js";
5
+ import { _ as ae } from "./app-QPsQPdlC.js";
6
+ import { H as j, I as le, J as Y, z as C, u as re, O as se, D as ie } from "./menu-D2OVCn5f.js";
7
+ import { _ as H } from "./customAttributes-B5fqV_rg.js";
8
8
  import { u as ue } from "./discardConfirm-BHni0LNu.js";
9
- import { L as de } from "./LinkProductSideSheet-DPn7KN3l.js";
9
+ import { L as de } from "./LinkProductSideSheet-CjpsPqEi.js";
10
10
  import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
11
11
  import { _ as me } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
12
- const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, fe = { class: "space-y-16" }, ve = { class: "flex items-center gap-8" }, ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "flex-1" }, he = { class: "grow overflow-y-auto" }, be = { 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" }, xe = { class: "px-16 py-8 flex-1" }, ke = { class: "py-8" }, Fe = { class: "flex gap-8 items-center justify-start" }, Ie = /* @__PURE__ */ H({
12
+ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, fe = { class: "space-y-16" }, ve = { class: "flex items-center gap-8" }, ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "flex-1" }, he = { class: "grow overflow-y-auto" }, be = { 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" }, xe = { class: "px-16 py-8 flex-1" }, ke = { class: "py-8" }, Fe = { class: "flex gap-8 items-center justify-start" }, Ie = /* @__PURE__ */ J({
13
13
  __name: "PrintDepartmentDialog",
14
14
  props: {
15
15
  categorizedItems: {
@@ -25,7 +25,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
25
25
  setup(v, { expose: t, emit: h }) {
26
26
  const N = v;
27
27
  t({
28
- showModal: z,
28
+ showModal: D,
29
29
  hideModal: V
30
30
  });
31
31
  function b() {
@@ -36,7 +36,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
36
36
  };
37
37
  }
38
38
  const x = T(!1), M = T(void 0);
39
- function z(r) {
39
+ function D(r) {
40
40
  M.value = r ? j(r) : b(), n.value = j(M.value), x.value = !0;
41
41
  }
42
42
  function V() {
@@ -55,15 +55,15 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
55
55
  applyToItems: n.value.applyToItems.filter((a) => a !== r)
56
56
  };
57
57
  }
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")), F = 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), K = 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")), F = f(() => n.value._id ? u("menu.print_route.department_dialog.update.action") : u("menu.print_route.department_dialog.add.action")), z = f(() => n.value.applyToItems.length), K = f(
59
59
  () => n.value.applyToItems.reduce((r, a) => (r[a] = [], r), {})
60
60
  ), e = T(""), o = f(() => {
61
61
  const r = e.value.toLowerCase();
62
62
  return N.categorizedItems.reduce((a, d) => {
63
- const D = d.items.filter(
63
+ const U = d.items.filter(
64
64
  (I) => (!r || I.name.toLowerCase().includes(r)) && !!K.value[I._id]
65
65
  );
66
- return D.length && a.push({ ...d, items: D }), a;
66
+ return U.length && a.push({ ...d, items: U }), a;
67
67
  }, []);
68
68
  }), y = h, w = ue(
69
69
  () => !le.isEqual(M.value, n.value),
@@ -75,7 +75,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
75
75
  V(), y("onSave", n.value);
76
76
  }
77
77
  return (r, a) => {
78
- const d = g("FmTextField"), D = g("FmSpacer"), I = g("FmButton"), X = g("FmSearch"), Z = g("FmSideSheet");
78
+ const d = g("FmTextField"), U = g("FmSpacer"), I = g("FmButton"), X = g("FmSearch"), Z = g("FmSideSheet");
79
79
  return p(), P(Z, {
80
80
  modelValue: x.value,
81
81
  "onUpdate:modelValue": a[3] || (a[3] = (s) => x.value = s),
@@ -110,7 +110,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
110
110
  ]),
111
111
  default: m(() => [
112
112
  i("div", _e, [
113
- c(G, {
113
+ c(H, {
114
114
  title: l(u)("menu.print_route.department_dialog.sections.route_detail.title")
115
115
  }, {
116
116
  default: m(() => [
@@ -127,12 +127,12 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
127
127
  ]),
128
128
  _: 1
129
129
  }, 8, ["title"]),
130
- v.canApplyItems ? (p(), P(G, {
130
+ v.canApplyItems ? (p(), P(H, {
131
131
  key: 0,
132
132
  title: l(u)("menu.print_route.department_dialog.sections.link_product.title")
133
133
  }, {
134
134
  "append-title": m(() => [
135
- c(D),
135
+ c(U),
136
136
  c(de, {
137
137
  "categorized-items": v.categorizedItems,
138
138
  "initial-value": n.value.applyToItems.map((s) => ({
@@ -157,7 +157,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
157
157
  i("div", fe, [
158
158
  i("div", ve, [
159
159
  i("div", ye, S(l(u)("menu.print_route.department_dialog.sections.link_product.products_linked", {
160
- count: U.value
160
+ count: z.value
161
161
  })), 1),
162
162
  i("div", ge, [
163
163
  c(X, {
@@ -191,7 +191,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
191
191
  ])
192
192
  ]),
193
193
  _: 1
194
- }, 8, ["title"])) : J("", !0)
194
+ }, 8, ["title"])) : G("", !0)
195
195
  ])
196
196
  ]),
197
197
  _: 1
@@ -238,7 +238,7 @@ const Ee = {
238
238
  class: "fm-typo-en-body-lg-600"
239
239
  }, Le = {
240
240
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
241
- }, Ye = /* @__PURE__ */ H({
241
+ }, Ye = /* @__PURE__ */ J({
242
242
  __name: "PrintRoute",
243
243
  setup(v) {
244
244
  const {
@@ -287,13 +287,13 @@ const Ee = {
287
287
  }, ["stop", "prevent"])
288
288
  })])
289
289
  }]);
290
- function z() {
290
+ function D() {
291
291
  var e;
292
- k.value || (e = U.value) == null || e.showModal();
292
+ k.value || (e = z.value) == null || e.showModal();
293
293
  }
294
294
  function V(e) {
295
295
  var o;
296
- k.value || (o = U.value) == null || o.showModal({
296
+ k.value || (o = z.value) == null || o.showModal({
297
297
  ...e,
298
298
  applyToItems: e.applyToItems.map(({
299
299
  _id: y
@@ -332,7 +332,7 @@ const Ee = {
332
332
  await n.updateMenu(we(e), e.name, !0);
333
333
  });
334
334
  }
335
- const F = T(""), U = T(), K = f(() => {
335
+ const F = T(""), z = T(), K = f(() => {
336
336
  if (!F.value) return b.value;
337
337
  const e = F.value.toLowerCase();
338
338
  return b.value.filter((o) => o.name.toLowerCase().includes(e));
@@ -348,8 +348,8 @@ const Ee = {
348
348
  icon: "add",
349
349
  label: l(t)("menu.print_route.actions.add"),
350
350
  variant: "primary",
351
- onClick: z
352
- }, null, 8, ["disabled", "label"])) : J("", !0)])]),
351
+ onClick: D
352
+ }, null, 8, ["disabled", "label"])) : G("", !0)])]),
353
353
  default: m(() => [x.value ? (p(), L(A, {
354
354
  key: 1
355
355
  }, [i("div", Te, [c(y, {
@@ -401,13 +401,13 @@ const Ee = {
401
401
  key: 0,
402
402
  action: {
403
403
  text: l(t)("menu.print_route.empty.action"),
404
- callback: z
404
+ callback: D
405
405
  },
406
406
  subtitle: l(t)("menu.print_route.empty.subtitle"),
407
407
  title: l(t)("menu.print_route.empty.title")
408
408
  }, null, 8, ["action", "subtitle", "title"])), c(Ie, {
409
409
  ref_key: "printDepartmentRef",
410
- ref: U,
410
+ ref: z,
411
411
  "categorized-items": N.value,
412
412
  onOnSave: $
413
413
  }, null, 8, ["categorized-items"])]),
@@ -1,4 +1,4 @@
1
- import { a as f } from "./Product.vue_vue_type_script_setup_true_lang-BksTc5Gm.js";
1
+ import { a as f } from "./Product.vue_vue_type_script_setup_true_lang-B-_k2sxs.js";
2
2
  export {
3
3
  f as default
4
4
  };