@feedmepos/mf-menu 0.32.7-beta.2 → 0.32.7-dev

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 (87) hide show
  1. package/dist/{App-BIQ0CTci.js → App-DCkQc7e4.js} +98 -98
  2. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js +161 -0
  3. package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +74 -0
  4. package/dist/{Catalog-D2wc24o8.js → Catalog-CUPoRid3.js} +9 -9
  5. package/dist/{Category-DA5-55d2.js → Category-BkvhZ57Y.js} +7 -7
  6. package/dist/{Category-BPufryqK.js → Category-Cdw0ikhP.js} +4 -4
  7. package/dist/{CookingGuide-DKvou40e.js → CookingGuide-BZ-4oULM.js} +6 -6
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DHoAYdGI.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js} +3 -3
  9. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +26 -0
  10. package/dist/{Group-D60oAvmM.js → Group-C1FaXdUb.js} +1 -1
  11. package/dist/{Group-Bgpc6qE1.js → Group-Cec83DWm.js} +4 -4
  12. package/dist/{Group.vue_vue_type_script_setup_true_lang-BXn3--BL.js → Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js} +128 -128
  13. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BD9IZkwW.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js} +91 -91
  14. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BE3LdBYY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js} +3225 -3225
  15. package/dist/{Ingredient-Brv4hml-.js → Ingredient-DulL8h2B.js} +29 -29
  16. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIOX-pq1.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js} +104 -104
  17. package/dist/{LinkProductSideSheet-BDMbKJ8o.js → LinkProductSideSheet-Br2eE8pC.js} +251 -251
  18. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +69 -0
  19. package/dist/{MenuSetting-DvCu23my.js → MenuSetting-DxW4LCW4.js} +77 -77
  20. package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js → PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js} +8 -8
  21. package/dist/{PrintRoute-DwgLKDUV.js → PrintRoute-Da6Zkx-0.js} +5 -5
  22. package/dist/{Product-EmoWM778.js → Product-Cs76t18_.js} +1 -1
  23. package/dist/{Product.vue_vue_type_script_setup_true_lang-5HyO_RYw.js → Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js} +606 -606
  24. package/dist/{ProductInternalTools-PqzouaF2.js → ProductInternalTools-DPbeRvTM.js} +10 -10
  25. package/dist/{Products-ZgfTT9dI.js → Products--7dGfuuT.js} +52 -52
  26. package/dist/{Publish-CUdRwmN1.js → Publish-COmZtiyX.js} +5 -5
  27. package/dist/{Recipe-BRUxyire.js → Recipe-BaN_1zrP.js} +5 -5
  28. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CPFGkaTr.js → RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js} +451 -448
  29. package/dist/{Scheduler-BXdZh-xC.js → Scheduler-BSUpIAaK.js} +4 -4
  30. package/dist/{ServingSequence-EAZHOHiy.js → ServingSequence-dXBb7e5d.js} +4 -4
  31. package/dist/{Setting-BRut_Xj0.js → Setting-CalEQW0n.js} +6 -6
  32. package/dist/{Subcategory-D6Yrs-vO.js → Subcategory-zPHtX7Vc.js} +5 -5
  33. package/dist/{Takeaway-Bi8JfDWa.js → Takeaway-CRDj2Bpe.js} +5 -5
  34. package/dist/{Takeaway-CRdlNTu7.js → Takeaway-CcnmeTmu.js} +1 -1
  35. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DKQZ9J8Z.js → Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js} +5 -5
  36. package/dist/{TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js → TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js} +5 -5
  37. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DDWk-WUW.js → Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js} +74 -74
  38. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js +6038 -0
  39. package/dist/{Unit-Ccs_k5IS.js → Unit-C7-Oj5S3.js} +3 -3
  40. package/dist/{Variant-BHmgMXq7.js → Variant-CYiMkE0q.js} +4 -4
  41. package/dist/{_id_-DSSoi4Gy.js → _id_-D75ZcNlf.js} +11 -11
  42. package/dist/{app-CzXxFrl1.js → app-5fxKLAzS.js} +447 -447
  43. package/dist/{app-C8Dm2-h4.js → app-BhLVpUSl.js} +35 -35
  44. package/dist/{app-B9seAt5l.js → app-DzVMOviz.js} +1 -1
  45. package/dist/app.js +1 -1
  46. package/dist/apps/mf-menu/src/app.d.ts +20 -0
  47. package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
  48. package/dist/apps/mf-menu/src/components/feature/MenuSelector.vue.d.ts +1 -1
  49. package/dist/apps/mf-menu/src/components/feature/SubcategoryManager/SubcategorySelector.vue.d.ts +1 -1
  50. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +2 -1
  51. package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
  52. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  53. package/dist/assets/linked-status-BoIPm5hC.js +13 -0
  54. package/dist/assets/override-menu-DfTrwWpR.js +13 -0
  55. package/dist/assets/validate-menu-BhWvQ3T9.js +13 -0
  56. package/dist/{catalog-CD-fdGdY.js → catalog-CudNSsIP.js} +1 -1
  57. package/dist/{catalogSetting-Ci85lXor.js → catalogSetting-BVHO9tK3.js} +1 -1
  58. package/dist/{category-6NAH0dUF.js → category-BQpgz1lk.js} +1 -1
  59. package/dist/{currency-BP_z7R5d.js → currency-BfS7H2KE.js} +1 -1
  60. package/dist/{index-BLMijxTj.js → index-BHdPJta4.js} +91 -91
  61. package/dist/{index-C1XCbqC-.js → index-DmGJvREM.js} +56 -56
  62. package/dist/{index-Cftm4-G_.js → index-DuLXS699.js} +5 -5
  63. package/dist/{index-DgDQzkPR.js → index-aaoziUNI.js} +30 -30
  64. package/dist/{index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js → index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js} +40026 -40153
  65. package/dist/item-BtKW0wdj.js +7685 -0
  66. package/dist/{iteration-ZG64Re91.js → iteration-CaliNodx.js} +1 -1
  67. package/dist/{jszip.min-BETdv0rh.js → jszip.min-DXbkmgRD.js} +102 -102
  68. package/dist/{menu-COMXycAe.js → menu-D-lUEuvX.js} +1 -1
  69. package/dist/{menuV2-CeRS0Jw3.js → menuV2-D-6O36DO.js} +357 -348
  70. package/dist/mf-menu.css +1 -1
  71. package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
  72. package/dist/{priceTier-t2T3Q87F.js → priceTier-DKnYaOA9.js} +1 -1
  73. package/dist/{scheduler-BbJUVuiK.js → scheduler-DEwfbYPL.js} +7 -7
  74. package/dist/{subcategory-61kOQh4g.js → subcategory-CQKklgcd.js} +2 -2
  75. package/dist/{toExcel-DIYaK18-.js → toExcel-CRwL-QqF.js} +2 -2
  76. package/dist/{unit-B6StucsI.js → unit-BzM1rmN7.js} +151 -151
  77. package/dist/{vuedraggable-DnBIRDMr.js → vuedraggable-CK8z7qA8.js} +2 -2
  78. package/package.json +3 -2
  79. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-BpEjqhAC.js +0 -161
  80. package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js +0 -74
  81. package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +0 -26
  82. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-Bm_hSelC.js +0 -69
  83. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-JdHaBpaX.js +0 -5997
  84. package/dist/assets/linked-status-Cuf8X8_g.js +0 -13
  85. package/dist/assets/override-menu-yxQLf82k.js +0 -13
  86. package/dist/assets/validate-menu-BwbenBs6.js +0 -13
  87. package/dist/item-ByEPWjef.js +0 -6819
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as N, computed as y, h as c, withModifiers as U, ref as V, resolveComponent as _, createBlock as k, openBlock as d, unref as m, withCtx as h, createElementBlock as D, createVNode as f, Fragment as z, createElementVNode as l, renderList as T, toDisplayString as S, createCommentVNode as H } from "vue";
2
- import { z as i, O as W, u as Q, D as G, a3 as J } from "./index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js";
2
+ import { z as i, O as W, u as Q, D as G, a3 as J } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
3
3
  import { useI18n as X } from "@feedmepos/mf-common";
4
4
  import { components as Z, useDialog as ee, useSnackbar as te } from "@feedmepos/ui-library";
5
5
  import { _ as ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
6
- import { _ as ae } from "./app-C8Dm2-h4.js";
7
- import { d as oe, _ as se, u as le, c as re } from "./scheduler-BbJUVuiK.js";
8
- import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
6
+ import { _ as ae } from "./app-BhLVpUSl.js";
7
+ import { d as oe, _ as se, u as le, c as re } from "./scheduler-DEwfbYPL.js";
8
+ import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
9
9
  const ce = {
10
10
  class: "flex flex-1 justify-end"
11
11
  }, ie = {
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as J, ref as L, computed as O, resolveComponent as h, createElementBlock as g, openBlock as d, Fragment as x, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as y, toDisplayString as A, onBeforeMount as oe, watch as F, watchEffect as se, h as $, getCurrentInstance as le, onMounted as re, createBlock as j, createCommentVNode as G, isRef as ie, normalizeClass as Q, renderList as ue } from "vue";
2
2
  import { useRouter as ce } from "vue-router";
3
- import { H, u as W, D as X, O as Z, J as I, z as S, a3 as de } from "./index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js";
3
+ import { H, u as W, D as X, O as Z, J as I, z as S, a3 as de } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
4
4
  import { useI18n as ee, ItemSelector as me, useCoreStore as pe } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as ne, components as Y, useDialog as _e, FmButtonVariant as z, useBreakpoints as fe } from "@feedmepos/ui-library";
6
6
  import { _ as ge } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
7
- import { _ as ve, R as he } from "./app-C8Dm2-h4.js";
7
+ import { _ as ve, R as he } from "./app-BhLVpUSl.js";
8
8
  import { c as ye } from "./check-C9mY6LiX.js";
9
- import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
9
+ import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
10
10
  import { u as ke } from "./search-BAPEUu1R.js";
11
- import { u as xe } from "./app-B9seAt5l.js";
11
+ import { u as xe } from "./app-DzVMOviz.js";
12
12
  import { c as Se } from "./createComponentProgrammatically-Bt2rn1IQ.js";
13
13
  const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex flex-col h-full" }, Ee = { class: "flex gap-8 items-center justify-start" }, Ve = /* @__PURE__ */ J({
14
14
  __name: "Form",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as ne, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as V, openBlock as r, normalizeClass as H, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as k, unref as e, Fragment as L, renderList as B, createTextVNode as re, toDisplayString as N } from "vue";
2
- import { u as me, D as ce, z as f, O as de, A as pe, H as w } from "./index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js";
2
+ import { u as me, D as ce, z as f, O as de, A as pe, H as w } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
3
3
  import { useCoreStore as ve, useI18n as ge } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as fe, useDialog as _e, FmButtonVariant as $, FmButtonColorThemeVariant as P, components as be } from "@feedmepos/ui-library";
5
- import { _ as E } from "./FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js";
6
- import { _ as ye } from "./RuleView.vue_vue_type_script_setup_true_lang-CPFGkaTr.js";
7
- import { _ as z, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BD9IZkwW.js";
8
- import { C as _, a as x } from "./catalogSetting-Ci85lXor.js";
9
- import { C as xe } from "./catalog-CD-fdGdY.js";
5
+ import { _ as E } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
+ import { _ as ye } from "./RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js";
7
+ import { _ as z, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js";
8
+ import { C as _, a as x } from "./catalogSetting-BVHO9tK3.js";
9
+ import { C as xe } from "./catalog-CudNSsIP.js";
10
10
  const Ce = {
11
11
  class: /* @__PURE__ */ H(["overflow-scroll", "flex-1", "xs:px-16 xs:py-16", "pt-16"])
12
12
  }, Oe = {
@@ -2,16 +2,16 @@ import { defineComponent as L, ref as w, watch as W, resolveComponent as y, crea
2
2
  import { useI18n as T } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as B, components as j, useDialog as Y, FmButtonVariant as R, useBreakpoints as ae, FmButtonColorThemeVariant 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 { D, u as N, O as U, J as K, z as q, a3 as le } from "./index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js";
6
- import { _ as se } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
7
- import { _ as re } from "./app-C8Dm2-h4.js";
5
+ import { D, u as N, O as U, J as K, z as q, a3 as le } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
6
+ import { _ as se } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
+ import { _ as re } from "./app-BhLVpUSl.js";
8
8
  import { c as ie } from "./createForm-BoUQeZTd.js";
9
9
  import { u as ce } from "./discardConfirm-BHni0LNu.js";
10
10
  import { c as I } from "./object-DVUNCr7w.js";
11
11
  import { r as ue } from "./rules-CIWTZQfh.js";
12
12
  import { c as de } from "./check-C9mY6LiX.js";
13
- import { u as G } from "./subcategory-61kOQh4g.js";
14
- import { a as me } from "./menu-COMXycAe.js";
13
+ import { u as G } from "./subcategory-CQKklgcd.js";
14
+ import { a as me } from "./menu-D-lUEuvX.js";
15
15
  const pe = {
16
16
  class: "fm-typo-en-title-md-600"
17
17
  }, _e = {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as f, computed as y, ref as k, createBlock as i, openBlock as d, unref as a, withCtx as s, createElementVNode as t, toDisplayString as b, createCommentVNode as g, createVNode as m } from "vue";
2
- import { D as x, u as v, O as w, J as E, z as M } from "./index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js";
2
+ import { D as x, u as v, O as w, J as E, z as M } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
3
3
  import { useI18n as T } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as V } from "@feedmepos/ui-library";
5
5
  import { _ as h } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
6
- import { _ as C } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
7
- import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-DKQZ9J8Z.js";
8
- import { T as O, l as S } from "./index-BLMijxTj.js";
9
- import { a as L } from "./menu-COMXycAe.js";
6
+ import { _ as C } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
+ import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js";
8
+ import { T as O, l as S } from "./index-BHdPJta4.js";
9
+ import { a as L } from "./menu-D-lUEuvX.js";
10
10
  const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "flex items-center" }, D = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, F = { class: "fm-typo-en-body-md-600 font-semibold" }, G = /* @__PURE__ */ f({
11
11
  __name: "Takeaway",
12
12
  setup(I) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Takeaway.vue_vue_type_script_setup_true_lang-DKQZ9J8Z.js";
1
+ import { _ as f } from "./Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,13 +1,13 @@
1
1
  import { getCurrentInstance as te, defineComponent as ne, computed as h, watch as oe, h as R, resolveComponent as S, createElementBlock as C, openBlock as _, Fragment as O, normalizeClass as D, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as P, renderList as ie, createBlock as $, createCommentVNode as G, toDisplayString as I, withModifiers as H } from "vue";
2
- import { D as q, u as Q, O as W, J as z, z as N, H as L, A as se, an as J, a3 as re } from "./index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js";
2
+ import { D as q, u as Q, O as W, J as z, z as N, H as L, A as se, an as J, a3 as re } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
3
3
  import { useI18n as X, useCoreStore as le } from "@feedmepos/mf-common";
4
4
  import { useDialog as ce, useSnackbar as Z, FmButtonVariant as A, components as de, useBreakpoints as ue } from "@feedmepos/ui-library";
5
- import { _ as me } from "./app-C8Dm2-h4.js";
6
- import { a as ye, l as ee, T as pe } from "./index-BLMijxTj.js";
5
+ import { _ as me } from "./app-BhLVpUSl.js";
6
+ import { a as ye, l as ee, T as pe } from "./index-BHdPJta4.js";
7
7
  import { u as fe } from "./search-BAPEUu1R.js";
8
- import { f as F } from "./currency-BP_z7R5d.js";
8
+ import { f as F } from "./currency-BfS7H2KE.js";
9
9
  import { defineStore as _e } from "pinia";
10
- import { C as ke } from "./catalog-CD-fdGdY.js";
10
+ import { C as ke } from "./catalog-CudNSsIP.js";
11
11
  import { c as ve } from "./createComponentProgrammatically-Bt2rn1IQ.js";
12
12
  function we(T, U, l, m) {
13
13
  var y, v, w, g;
@@ -1,5 +1,5 @@
1
- import { defineComponent as l, computed as r, createElementBlock as i, openBlock as m, normalizeClass as s, toDisplayString as p } from "vue";
2
- const f = /* @__PURE__ */ l({
1
+ import { defineComponent as i, computed as r, createElementBlock as s, openBlock as m, normalizeClass as p, toDisplayString as d } from "vue";
2
+ const f = /* @__PURE__ */ i({
3
3
  __name: "TextChip",
4
4
  props: {
5
5
  label: {},
@@ -10,9 +10,9 @@ const f = /* @__PURE__ */ l({
10
10
  },
11
11
  setup(o) {
12
12
  const e = o, n = r(() => e.variant === "warning" ? "primary" : "typo-" + e.variant), t = r(() => e.variant === "neutral" ? "neutral-gray-100" : "system-" + e.variant + "-100"), a = r(() => e.size === "xs" ? "text-[8px] tracking-wide leading-[10px] no-underline" : e.size === "sm" ? e.bold ? "fm-typo-en-body-sm-600" : "fm-typo-en-body-sm-400" : e.bold ? "fm-typo-en-body-md-600" : "fm-typo-en-body-md-400");
13
- return (d, u) => (m(), i("span", {
14
- class: s(`inline-block fm-corner-radius-md px-4 py-[2px] ${a.value} text-fm-color-${n.value} bg-fm-color-${t.value} text-nowrap max-w-full ${e.border ? "border border-fm-color-neutral-gray-400" : ""}`)
15
- }, p(o.label), 3));
13
+ return (l, u) => (m(), s("span", {
14
+ class: p(`inline-block fm-corner-radius-md px-4 py-[2px] ${a.value} text-fm-color-${n.value} bg-fm-color-${t.value} text-nowrap max-w-full ${e.border ? "border border-fm-color-neutral-gray-400" : ""}`)
15
+ }, d(l.label), 3));
16
16
  }
17
17
  });
18
18
  export {
@@ -1,26 +1,26 @@
1
1
  import { computed as d, defineComponent as x, ref as F, resolveComponent as b, createElementBlock as L, openBlock as w, normalizeClass as O, createVNode as K, normalizeStyle as $, withCtx as B, createBlock as U, createCommentVNode as j } from "vue";
2
- import { z as h, J as E, D as R, O as C, ak as D, u as y, c as J } from "./index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js";
3
- import { u as S } from "./menuV2-CeRS0Jw3.js";
4
- import { C as v, h as N } from "./catalog-CD-fdGdY.js";
2
+ import { z as h, J as E, D as R, O as C, ak as D, u as y, c as J } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
3
+ import { u as S } from "./menuV2-D-6O36DO.js";
4
+ import { C as v, h as N } from "./catalog-CudNSsIP.js";
5
5
  import { useSnackbar as k, useDialog as Y } from "@feedmepos/ui-library";
6
- import { a as T } from "./LinkProductSideSheet-BDMbKJ8o.js";
6
+ import { a as T } from "./LinkProductSideSheet-Br2eE8pC.js";
7
7
  import { useI18n as q } from "@feedmepos/mf-common";
8
8
  function G() {
9
- const e = S(), o = d(() => e.categorizedRawMenuItems.filter((u) => u.items.length > 0)), i = d(() => {
10
- const u = e.currentCatalog;
9
+ const t = S(), o = d(() => t.categorizedRawMenuItems.filter((u) => u.items.length > 0)), i = d(() => {
10
+ const u = t.currentCatalog;
11
11
  return u ? v.getItemAvailable(u).map((n) => ({ _id: n })) : [];
12
12
  });
13
13
  async function c(u) {
14
- const n = e.currentCatalog;
14
+ const n = t.currentCatalog;
15
15
  if (!n) return;
16
- const a = new Set(u), r = e.state.menu.modules.item.map((l) => l._id).reduce(
16
+ const a = new Set(u), r = t.state.menu.modules.item.map((l) => l._id).reduce(
17
17
  (l, m) => {
18
18
  const f = n.override.items[m];
19
19
  return l[m] = N(
20
20
  m,
21
21
  f,
22
22
  a.has(m),
23
- e.version === h.F_MENU_VERSION.enum.v3
23
+ t.version === h.F_MENU_VERSION.enum.v3
24
24
  ), l;
25
25
  },
26
26
  {}
@@ -36,7 +36,7 @@ function G() {
36
36
  */
37
37
  linkItemRules: null
38
38
  };
39
- await e.updateMenu({
39
+ await t.updateMenu({
40
40
  module: h.F_MENU_MODULE_V4_KEY.enum.catalog,
41
41
  operation: E.F_OPERATION_TYPE.update,
42
42
  data: s
@@ -49,13 +49,13 @@ function G() {
49
49
  await z(u, !1);
50
50
  }
51
51
  async function _(u) {
52
- const n = e.currentCatalog;
52
+ const n = t.currentCatalog;
53
53
  if (!n) return;
54
54
  const a = {
55
55
  ...n,
56
56
  linkItemRules: u
57
57
  };
58
- await e.updateMenu({
58
+ await t.updateMenu({
59
59
  module: h.F_MENU_MODULE_V4_KEY.enum.catalog,
60
60
  operation: E.F_OPERATION_TYPE.update,
61
61
  data: a
@@ -70,14 +70,14 @@ function G() {
70
70
  saveLinkItemRules: _
71
71
  };
72
72
  }
73
- async function z(e, o) {
73
+ async function z(t, o) {
74
74
  var u;
75
75
  const i = S(), c = i.currentCatalog;
76
- if (!c || e.length === 0) return;
77
- const g = i.version === h.F_MENU_VERSION.enum.v3, p = e.reduce(
76
+ if (!c || t.length === 0) return;
77
+ const g = i.version === h.F_MENU_VERSION.enum.v3, p = t.reduce(
78
78
  (n, a) => {
79
- const t = c.override.items[a];
80
- return n[a] = N(a, t, o, g), n;
79
+ const e = c.override.items[a];
80
+ return n[a] = N(a, e, o, g), n;
81
81
  },
82
82
  {}
83
83
  ), _ = {
@@ -97,35 +97,35 @@ async function z(e, o) {
97
97
  });
98
98
  }
99
99
  function H() {
100
- const e = S(), o = k(), i = Y(), c = R(o), g = C(c), p = d(() => {
101
- const n = e.categorizedRawMenuItems, a = new Set(
102
- e.currentCatalog ? v.getItemAvailable(e.currentCatalog) : e.state.menu.modules.item.map((t) => t._id)
100
+ const t = S(), o = k(), i = Y(), c = R(o), g = C(c), p = d(() => {
101
+ const n = t.categorizedRawMenuItems, a = new Set(
102
+ t.currentCatalog ? v.getItemAvailable(t.currentCatalog) : t.state.menu.modules.item.map((e) => e._id)
103
103
  );
104
- return n.map((t) => ({
105
- ...t,
106
- items: t.items.filter((r) => a.has(r._id))
107
- })).filter((t) => t.items.length > 0);
104
+ return n.map((e) => ({
105
+ ...e,
106
+ items: e.items.filter((r) => a.has(r._id))
107
+ })).filter((e) => e.items.length > 0);
108
108
  }), _ = d(() => {
109
109
  var r;
110
- const n = e.currentScheduler;
110
+ const n = t.currentScheduler;
111
111
  if (!n) return [];
112
- const a = e.currentCatalog, t = a ? ((r = a.override.scheduler[n._id]) == null ? void 0 : r.items) ?? [] : n.items;
112
+ const a = t.currentCatalog, e = a ? ((r = a.override.scheduler[n._id]) == null ? void 0 : r.items) ?? [] : n.items;
113
113
  return [
114
- ...new Set(t.filter((s) => s.orderFrom != h.F_ORDER_FROM.enum.NONE).map((s) => s._id))
114
+ ...new Set(e.filter((s) => s.orderFrom != h.F_ORDER_FROM.enum.NONE).map((s) => s._id))
115
115
  ].map((s) => ({ _id: s }));
116
116
  });
117
117
  async function u(n) {
118
- const a = e.currentScheduler;
118
+ const a = t.currentScheduler;
119
119
  if (!a) return;
120
- const t = e.currentCatalog;
121
- if (t && e.rules.scheduler.override) {
120
+ const e = t.currentCatalog;
121
+ if (e && t.rules.scheduler.override) {
122
122
  const r = new v(
123
- t,
124
123
  e,
124
+ t,
125
125
  g.updateMenu,
126
126
  i
127
127
  );
128
- r.overrideCatalogSchedulerItems(n, a._id), await e.updateMenu({
128
+ r.overrideCatalogSchedulerItems(n, a._id), await t.updateMenu({
129
129
  module: h.F_MENU_MODULE_V4_KEY.enum.catalog,
130
130
  operation: E.F_OPERATION_TYPE.update,
131
131
  data: r.getCatalog()
@@ -146,7 +146,7 @@ function H() {
146
146
  ...a,
147
147
  items: r
148
148
  };
149
- await e.updateMenu({
149
+ await t.updateMenu({
150
150
  module: h.F_MENU_MODULE_V4_KEY.enum.scheduler,
151
151
  operation: E.F_OPERATION_TYPE.update,
152
152
  data: s
@@ -160,21 +160,21 @@ function H() {
160
160
  };
161
161
  }
162
162
  const Q = () => {
163
- const e = y(), o = k(), i = R(o), c = C(i), g = d(() => e.categorizedRawMenuItems.filter((n) => n.items.length > 0)), p = d(() => {
164
- const n = e.currentCatalog;
163
+ const t = y(), o = k(), i = R(o), c = C(i), g = d(() => t.categorizedRawMenuItems.filter((n) => n.items.length > 0)), p = d(() => {
164
+ const n = t.currentCatalog;
165
165
  return n ? v.getItemAvailable(n).map((a) => ({ _id: a })) : [];
166
166
  });
167
167
  async function _(n) {
168
- const a = e.currentCatalog;
168
+ const a = t.currentCatalog;
169
169
  if (!a) return;
170
- const t = new Set(n), s = e.state.menu.modules.item.map((m) => m._id).reduce(
170
+ const e = new Set(n), s = t.state.menu.modules.item.map((m) => m._id).reduce(
171
171
  (m, f) => {
172
172
  const I = a.override.items[f];
173
173
  return m[f] = N(
174
174
  f,
175
175
  I,
176
- t.has(f),
177
- e.version === J.F_MENU_VERSION.v3
176
+ e.has(f),
177
+ t.version === J.F_MENU_VERSION.v3
178
178
  ), m;
179
179
  },
180
180
  {}
@@ -197,9 +197,9 @@ const Q = () => {
197
197
  );
198
198
  }
199
199
  async function u(n) {
200
- const a = e.currentCatalog;
200
+ const a = t.currentCatalog;
201
201
  if (!a) return;
202
- const t = {
202
+ const e = {
203
203
  ...a,
204
204
  linkItemRules: n
205
205
  };
@@ -207,9 +207,9 @@ const Q = () => {
207
207
  {
208
208
  module: h.F_MENU_MODULE_V4_KEY.enum.catalog,
209
209
  operation: E.F_OPERATION_TYPE.update,
210
- data: t
210
+ data: e
211
211
  },
212
- t.name
212
+ e.name
213
213
  );
214
214
  }
215
215
  return {
@@ -219,29 +219,29 @@ const Q = () => {
219
219
  saveLinkItemRules: u
220
220
  };
221
221
  }, W = () => {
222
- const e = y(), o = k(), i = Y(), c = R(o), g = C(c), p = d(() => {
223
- const n = e.categorizedRawMenuItems, a = new Set(
224
- e.currentCatalog ? v.getItemAvailable(e.currentCatalog) : e.state.menu.modules.item.map((t) => t._id)
222
+ const t = y(), o = k(), i = Y(), c = R(o), g = C(c), p = d(() => {
223
+ const n = t.categorizedRawMenuItems, a = new Set(
224
+ t.currentCatalog ? v.getItemAvailable(t.currentCatalog) : t.state.menu.modules.item.map((e) => e._id)
225
225
  );
226
- return n.map((t) => ({
227
- ...t,
228
- items: t.items.filter((r) => a.has(r._id))
229
- })).filter((t) => t.items.length > 0);
226
+ return n.map((e) => ({
227
+ ...e,
228
+ items: e.items.filter((r) => a.has(r._id))
229
+ })).filter((e) => e.items.length > 0);
230
230
  }), _ = d(() => {
231
231
  var r;
232
- const n = e.currentScheduler;
232
+ const n = t.currentScheduler;
233
233
  if (!n) return [];
234
- const a = e.currentCatalog, t = a ? ((r = a.override.scheduler[n._id]) == null ? void 0 : r.items) ?? [] : n.items;
234
+ const a = t.currentCatalog, e = a ? ((r = a.override.scheduler[n._id]) == null ? void 0 : r.items) ?? [] : n.items;
235
235
  return [
236
- ...new Set(t.filter((s) => s.orderFrom != h.F_ORDER_FROM.enum.NONE).map((s) => s._id))
236
+ ...new Set(e.filter((s) => s.orderFrom != h.F_ORDER_FROM.enum.NONE).map((s) => s._id))
237
237
  ].map((s) => ({ _id: s }));
238
238
  });
239
239
  async function u(n) {
240
- const a = e.currentScheduler;
240
+ const a = t.currentScheduler;
241
241
  if (!a) return;
242
- const t = e.currentCatalog;
243
- if (t && e.rules.scheduler.override) {
244
- const r = new v(t, e, g.updateMenu, i);
242
+ const e = t.currentCatalog;
243
+ if (e && t.rules.scheduler.override) {
244
+ const r = new v(e, t, g.updateMenu, i);
245
245
  r.overrideCatalogSchedulerItems(n, a._id), await r.update();
246
246
  } else {
247
247
  const r = n.reduce(
@@ -275,7 +275,7 @@ const Q = () => {
275
275
  applyProduct: u
276
276
  };
277
277
  };
278
- function se(e) {
278
+ function se(t) {
279
279
  const o = {
280
280
  // Under FdoMenuV4Category _id is string, but here we need null for Addon, so we bypass the type checking
281
281
  // @ts-ignore
@@ -283,18 +283,18 @@ function se(e) {
283
283
  name: "Addon",
284
284
  position: 0
285
285
  };
286
- if (!e) {
287
- const t = y(), r = d(() => t.state.menu.modules.item ?? []), s = d(() => {
286
+ if (!t) {
287
+ const e = y(), r = d(() => e.state.menu.modules.item ?? []), s = d(() => {
288
288
  var M;
289
- return ((M = t.currentCatalog) == null ? void 0 : M.linkItemRules) ?? null;
290
- }), l = W(), m = Q(), f = d(() => !t.state.currentSchedulerId), I = (M) => {
289
+ return ((M = e.currentCatalog) == null ? void 0 : M.linkItemRules) ?? null;
290
+ }), l = W(), m = Q(), f = d(() => !e.state.currentSchedulerId), I = (M) => {
291
291
  if (M.mode === T.Rules)
292
292
  m.saveLinkItemRules(M.linkItemRules);
293
293
  else {
294
294
  const P = M.items.map((V) => V._id);
295
295
  f.value ? m.applyProduct(P) : l.applyProduct(P);
296
296
  }
297
- }, A = d(() => [o, ...t.state.menu.modules.category ?? []]);
297
+ }, A = d(() => [o, ...e.state.menu.modules.category ?? []]);
298
298
  return {
299
299
  menuItems: r,
300
300
  categories: A,
@@ -306,13 +306,13 @@ function se(e) {
306
306
  };
307
307
  }
308
308
  const i = S(), c = d(() => i.state.menu.modules.item ?? []), g = d(() => {
309
- var t;
310
- return ((t = i.currentCatalog) == null ? void 0 : t.linkItemRules) ?? null;
311
- }), p = H(), _ = G(), u = d(() => !i.state.currentSchedulerId), n = (t) => {
312
- if (t.mode === T.Rules)
313
- _.saveLinkItemRules(t.linkItemRules);
309
+ var e;
310
+ return ((e = i.currentCatalog) == null ? void 0 : e.linkItemRules) ?? null;
311
+ }), p = H(), _ = G(), u = d(() => !i.state.currentSchedulerId), n = (e) => {
312
+ if (e.mode === T.Rules)
313
+ _.saveLinkItemRules(e.linkItemRules);
314
314
  else {
315
- const r = t.items.map((s) => s._id);
315
+ const r = e.items.map((s) => s._id);
316
316
  u.value ? _.applyProduct(r) : p.applyProduct(r);
317
317
  }
318
318
  }, a = d(() => [o, ...i.state.menu.modules.category ?? []]);
@@ -335,8 +335,8 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
335
335
  size: {},
336
336
  crossorigin: { type: Boolean, default: !0 }
337
337
  },
338
- setup(e) {
339
- const o = e, { t: i } = q(), c = F(!1), g = F(!o.src), p = () => {
338
+ setup(t) {
339
+ const o = t, { t: i } = q(), c = F(!1), g = F(!o.src), p = () => {
340
340
  c.value = !1, g.value = !0;
341
341
  }, _ = () => {
342
342
  c.value = !0, g.value = !0;
@@ -349,12 +349,12 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
349
349
  }), a = d(() => {
350
350
  if (!o.src) return null;
351
351
  if (o.crossorigin) {
352
- const t = o.src.includes("?") ? "&" : "?";
353
- return `${o.src}${t}_cors=${Date.now()}`;
352
+ const e = o.src.includes("?") ? "&" : "?";
353
+ return `${o.src}${e}_cors=${Date.now()}`;
354
354
  }
355
355
  return o.src;
356
356
  });
357
- return (t, r) => {
357
+ return (e, r) => {
358
358
  const s = b("fm-icon"), l = b("fm-card");
359
359
  return w(), L("div", {
360
360
  class: O([e.className, "flex items-center justify-center"])