@feedmepos/mf-menu 0.31.71-prod → 0.31.72-remy

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 (105) hide show
  1. package/dist/{App-B5R51HHK.js → App-27TpQ9Rh.js} +1442 -2546
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Dflill79.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CumuJ63E.js} +3 -3
  3. package/dist/{Catalog-yv_fwu1h.js → Catalog-qUXEGPwx.js} +26 -26
  4. package/dist/{Category-lOaUwRrB.js → Category-C9sdulfS.js} +35 -35
  5. package/dist/{Category-DEkZ-IWE.js → Category-DGUI1Glw.js} +22 -22
  6. package/dist/{CookingGuide-Db8VQK5V.js → CookingGuide-DIVESXs6.js} +113 -113
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DwsVvlUq.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-B48GyN96.js} +1 -1
  8. package/dist/{Group-CFS8D5Uf.js → Group-C8gRQIjf.js} +3 -3
  9. package/dist/{Group-B2EXYbcn.js → Group-CTzxLznN.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BdZ9K2Ht.js → Group.vue_vue_type_script_setup_true_lang-BPCjOiTv.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CtlyZlos.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-M7EU3tby.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-h09saJxj.js} +21 -22
  13. package/dist/{Ingredient-C3B8G0Fd.js → Ingredient-DaWcvad4.js} +23 -23
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BrhhXwp8.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C9VpUX0B.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-DPn7KN3l.js → LinkProductSideSheet-b_gN9u5S.js} +3 -3
  16. package/dist/{MenuSetting-Mph9Pc9s.js → MenuSetting-B32RCTN9.js} +31 -31
  17. package/dist/{PrintRoute-BwboeALA.js → PrintRoute-BEXM1XO1.js} +26 -26
  18. package/dist/{Product-CNKnPt-z.js → Product-Dg6vmxu4.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-BksTc5Gm.js → Product.vue_vue_type_script_setup_true_lang-m1D4IZS3.js} +71 -71
  20. package/dist/{ProductInternalTools-DGkoIc6T.js → ProductInternalTools-DiG53QXf.js} +17 -17
  21. package/dist/{Products-CkLZYybB.js → Products-Bp4RN2tP.js} +11 -11
  22. package/dist/{Publish-Bzq9aREC.js → Publish-DHrjYAJO.js} +56 -57
  23. package/dist/{Recipe-K55Bnscl.js → Recipe-CPpiiwTj.js} +13 -13
  24. package/dist/{Scheduler-ChAmTqSR.js → Scheduler-BVgOUrgq.js} +16 -16
  25. package/dist/{ServingSequence-ywa7-8rG.js → ServingSequence-BvvQ7iAu.js} +20 -20
  26. package/dist/{Setting-CHUNtVho.js → Setting-C828ShhE.js} +20 -20
  27. package/dist/{Subcategory-0-99_i06.js → Subcategory-Bw4NC1zr.js} +19 -19
  28. package/dist/{Takeaway-CsJf5I8I.js → Takeaway-BP9vO3uO.js} +1 -1
  29. package/dist/{Takeaway-BzvxZ_dA.js → Takeaway-CZBbeNL8.js} +10 -10
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Bh8mjdk4.js → Takeaway.vue_vue_type_script_setup_true_lang-Bf6h1oOm.js} +20 -20
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CbxgtwVa.js → Thumbnail.vue_vue_type_script_setup_true_lang-BCqjdxf-.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-CTouhy0y.js} +16 -17
  33. package/dist/{Unit-CbTkNhj2.js → Unit-C0XP2gQF.js} +13 -13
  34. package/dist/{Variant-NkbzEbF-.js → Variant-CR6fNlW6.js} +15 -15
  35. package/dist/{_id_-mr4_eirX.js → _id_-DPpuWlln.js} +14 -14
  36. package/dist/{app-DVB67WHZ.js → app-CtQEOIp5.js} +471 -468
  37. package/dist/{app-BzsHQwP_.js → app-xaGd6_oS.js} +1 -1
  38. package/dist/app.js +1 -1
  39. package/dist/apps/mf-menu/src/app.d.ts +1626 -0
  40. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +72 -0
  41. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +36 -0
  42. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +218 -0
  43. package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +1 -1
  44. package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +52 -0
  45. package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +36 -0
  46. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +110 -0
  47. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +110 -0
  48. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +110 -0
  49. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +81 -0
  50. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +55 -0
  51. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +52 -0
  52. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +36 -0
  53. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +144 -0
  54. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +165 -0
  55. package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +55 -0
  56. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +375 -0
  57. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/tree.d.ts +18 -18
  58. package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +110 -0
  59. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +81 -0
  60. package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +55 -0
  61. package/dist/apps/mf-menu/src/helper/menu.d.ts +430 -0
  62. package/dist/apps/mf-menu/src/helper/menuImport.d.ts +375 -0
  63. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +375 -0
  64. package/dist/apps/mf-menu/src/stores/manager/item.d.ts +165 -0
  65. package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +81 -0
  66. package/dist/apps/mf-menu/src/stores/menu.d.ts +375 -0
  67. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +110 -0
  68. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +220 -0
  69. package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +52 -0
  70. package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +52 -0
  71. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  72. package/dist/assets/linked-status-Ds3VKRNn.js +13 -0
  73. package/dist/assets/override-menu-BVPA9mG0.js +13 -0
  74. package/dist/assets/validate-menu-Ctwk0tSN.js +13 -0
  75. package/dist/{catalog-C_6TM4e_.js → catalog-B1AtGIOR.js} +1 -1
  76. package/dist/{catalogSetting-pTMi5i6h.js → catalogSetting-D76y7yoz.js} +1 -1
  77. package/dist/{category-CHNICcWp.js → category-B3MkQ7Pp.js} +5 -5
  78. package/dist/{currency-Dx-pn9tw.js → currency-DYj4YAoX.js} +1 -1
  79. package/dist/{customAttributes-DvHKcDWb.js → customAttributes-CfwqBwao.js} +1 -1
  80. package/dist/{index-DqIorABw.js → index-8_TFzfuI.js} +1 -1
  81. package/dist/{index-CA3_R55p.js → index-CAQqh5h4.js} +13 -13
  82. package/dist/{index-X3RliLfv.js → index-DNhoEElA.js} +26 -26
  83. package/dist/{index-DGtoqrTo.js → index-DUUtEjnd.js} +1 -1
  84. package/dist/{item-JhHKgoMj.js → item-MTfRKilm.js} +378 -378
  85. package/dist/iteration-DXXAmTGt.js +27 -0
  86. package/dist/{jszip.min-BQReTtS0.js → jszip.min-y7wFpnaP.js} +245 -245
  87. package/dist/{menu-Bhfx50bt.js → menu-C_m3ZEIK.js} +1 -1
  88. package/dist/{menu-2ymqQnFE.js → menu-DQurCWMa.js} +27902 -27334
  89. package/dist/{menuV2-ZaA_QLdj.js → menuV2-0FFzegP7.js} +92 -92
  90. package/dist/mf-menu.css +1 -1
  91. package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
  92. package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +1 -1
  93. package/dist/{priceTier-IZtw6WUa.js → priceTier-DMFtjpmw.js} +1 -1
  94. package/dist/{scheduler-CzuGjuw5.js → scheduler-D0IlDwT3.js} +20 -20
  95. package/dist/{subcategory-Dt6tFvIu.js → subcategory-D32FJH5D.js} +6 -6
  96. package/dist/{toExcel-CUrEHCjB.js → toExcel-CsQ_y0DF.js} +2 -2
  97. package/dist/{unit-Ibbp0wZT.js → unit-Bthb3r-g.js} +9 -9
  98. package/package.json +4 -4
  99. package/dist/apps/mf-menu/src/components/Announcements.vue.d.ts +0 -19
  100. package/dist/apps/mf-menu/src/stores/announcement/announcement.d.ts +0 -11
  101. package/dist/assets/linked-status-Dwqdwyog.js +0 -13
  102. package/dist/assets/override-menu-CGexvHxV.js +0 -13
  103. package/dist/assets/validate-menu-C2daBpKY.js +0 -13
  104. package/dist/dayjs.min-BZu87fXJ.js +0 -6
  105. package/dist/iteration-BoeoXAHD.js +0 -23
@@ -1,4 +1,4 @@
1
- import { u as h, A as n, J as d, ag as _ } from "./menu-2ymqQnFE.js";
1
+ import { u as h, z as n, J as d, ag as _ } from "./menu-DQurCWMa.js";
2
2
  import "@feedmepos/ui-library";
3
3
  class u {
4
4
  constructor(t, e, r, a) {
@@ -1,4 +1,4 @@
1
- import { A as u, H as i } from "./menu-2ymqQnFE.js";
1
+ import { z as u, H as i } from "./menu-DQurCWMa.js";
2
2
  var a = /* @__PURE__ */ ((e) => (e.AUTO = "auto", e.MANUAL = "manual", e))(a || {}), m = /* @__PURE__ */ ((e) => (e[e.Normal = 0] = "Normal", e[e.Rules = 1] = "Rules", e))(m || {});
3
3
  class s {
4
4
  static fromCatalog(r, n) {
@@ -1,5 +1,5 @@
1
- import { defineComponent as M, watch as _, ref as f, resolveComponent as g, createBlock as x, openBlock as A, unref as l, withCtx as C, createVNode as V } from "vue";
2
- import { J as s, A as u, u as F } from "./menu-2ymqQnFE.js";
1
+ import { defineComponent as M, watch as _, ref as f, resolveComponent as g, createBlock as x, openBlock as C, unref as l, withCtx as V, createVNode as A } from "vue";
2
+ import { J as s, z as u, u as F } from "./menu-DQurCWMa.js";
3
3
  import { useI18n as E } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as O } from "@feedmepos/ui-library";
5
5
  const y = /* @__PURE__ */ M({
@@ -26,11 +26,11 @@ const y = /* @__PURE__ */ M({
26
26
  }
27
27
  ), (m, e) => {
28
28
  const o = g("fm-text-field"), a = g("FmForm");
29
- return A(), x(a, {
29
+ return C(), x(a, {
30
30
  onValidationSuccess: e[1] || (e[1] = (c) => l(p)("primary"))
31
31
  }, {
32
- default: C(() => [
33
- V(o, {
32
+ default: V(() => [
33
+ A(o, {
34
34
  modelValue: i.value,
35
35
  "onUpdate:modelValue": e[0] || (e[0] = (c) => i.value = c),
36
36
  rules: [(c) => !!c || l(t)("menu.category.dialog.add.name.required")],
@@ -1,4 +1,4 @@
1
- import { B as e } from "./menu-2ymqQnFE.js";
1
+ import { A as e } from "./menu-DQurCWMa.js";
2
2
  function n(r, o = !0) {
3
3
  return e.Dinero.fromFdoDinero(r).toFormat(o).replaceAll(" ", "");
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, createElementBlock as c, openBlock as u, normalizeClass as h, renderSlot as y, createCommentVNode as _, createVNode as $, createElementVNode as m, toDisplayString as f, withCtx as A, computed as d } from "vue";
2
- import { I as b } from "./menu-2ymqQnFE.js";
2
+ import { I as b } from "./menu-DQurCWMa.js";
3
3
  import { x as T, N as E } from "./app-5fxKLAzS.js";
4
4
  import { useCoreStore as I, EMPTY_RULE as N, isEmptyMongoQuery as C, isEmptyRule as S } from "@feedmepos/mf-common";
5
5
  const w = /* @__PURE__ */ v({
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as W, ref as A, resolveComponent as v, createElementBlock as E, openBlock as I, Fragment as B, createElementVNode as g, createVNode as c, normalizeClass as T, withCtx as _, toDisplayString as S, unref as i, h as G, watch as O, onMounted as K, nextTick as M, readonly as N, getCurrentInstance as U, getCurrentScope as L, onScopeDispose as $ } from "vue";
2
2
  import { useI18n as q, useCustomAttributes as H, useCoreStore as J } from "@feedmepos/mf-common";
3
3
  import { components as Q } from "@feedmepos/ui-library";
4
- import { u as X, _ as k } from "./customAttributes-DvHKcDWb.js";
4
+ import { u as X, _ as k } from "./customAttributes-CfwqBwao.js";
5
5
  const Y = {
6
6
  class: /* @__PURE__ */ T(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
7
7
  }, Z = {
@@ -1,12 +1,12 @@
1
- import { B as S, A, u as K, H as O, D as q, I as R } from "./menu-2ymqQnFE.js";
2
- import { defineComponent as T, ref as f, computed as B, watch as L, onMounted as z, onBeforeUnmount as H, resolveComponent as F, createBlock as N, openBlock as M, withModifiers as D, withCtx as g, renderSlot as U, createElementBlock as P, Fragment as W, createVNode as c, unref as i, createElementVNode as C, createCommentVNode as j, toDisplayString as Y } from "vue";
1
+ import { A as S, z as A, u as K, H as O, B as q, I as z } from "./menu-DQurCWMa.js";
2
+ import { defineComponent as T, ref as f, computed as B, watch as L, onMounted as R, onBeforeUnmount as H, resolveComponent as F, createBlock as N, openBlock as M, withModifiers as C, withCtx as g, renderSlot as U, createElementBlock as P, Fragment as W, createVNode as c, unref as i, createElementVNode as D, createCommentVNode as j, toDisplayString as Y } from "vue";
3
3
  import { useI18n as I } from "@feedmepos/mf-common";
4
4
  import { components as Z } from "@feedmepos/ui-library";
5
- import { _ as G } from "./customAttributes-DvHKcDWb.js";
5
+ import { _ as G } from "./customAttributes-CfwqBwao.js";
6
6
  import { u as J } from "./discardConfirm-BHni0LNu.js";
7
- import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Dflill79.js";
7
+ import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CumuJ63E.js";
8
8
  import { c as X } from "./check-C9mY6LiX.js";
9
- import { f as ee } from "./currency-Dx-pn9tw.js";
9
+ import { f as ee } from "./currency-DYj4YAoX.js";
10
10
  import { c as ae } from "./string-DpfFixWH.js";
11
11
  const te = /* @__PURE__ */ T({
12
12
  __name: "CurrencyInput",
@@ -91,7 +91,7 @@ const te = /* @__PURE__ */ T({
91
91
  e.key >= "0" && e.key <= "9" || e.key === "." || e.key === "," || e.key === "-" || e.key === "Backspace" || e.key === "ArrowLeft" || e.key === "ArrowRight" || e.key === "Tab" || e.preventDefault();
92
92
  }
93
93
  };
94
- return z(() => {
94
+ return R(() => {
95
95
  var e;
96
96
  r.value && ((e = r.value.inputEl) == null || e.addEventListener("keydown", _));
97
97
  }), H(() => {
@@ -111,11 +111,11 @@ const te = /* @__PURE__ */ T({
111
111
  rules: b,
112
112
  inputmode: "decimal",
113
113
  onFocusChanged: t[0] || (t[0] = (o) => v.value = o),
114
- onWheel: t[1] || (t[1] = D(() => {
114
+ onWheel: t[1] || (t[1] = C(() => {
115
115
  }, ["prevent"])),
116
- onTouchmove: t[2] || (t[2] = D(() => {
116
+ onTouchmove: t[2] || (t[2] = C(() => {
117
117
  }, ["prevent"])),
118
- onScroll: t[3] || (t[3] = D(() => {
118
+ onScroll: t[3] || (t[3] = C(() => {
119
119
  }, ["prevent"]))
120
120
  }, {
121
121
  append: g(() => [
@@ -158,7 +158,7 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
158
158
  return (o = d.fallback) != null && o.price && (l.price = null), l;
159
159
  }
160
160
  const s = f(k()), _ = B(() => d.action === "add" ? n("menu.takeaway.add") : n("menu.takeaway.update")), e = J(
161
- () => !R.isEqual(
161
+ () => !z.isEqual(
162
162
  s.value,
163
163
  d.initialValue || {
164
164
  ...q.generator.initMenuV4Takeaway(),
@@ -195,10 +195,10 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
195
195
  "onOn:clickedAway": i(e)
196
196
  }, {
197
197
  "side-sheet-header": g(() => [
198
- C("p", le, Y(_.value), 1)
198
+ D("p", le, Y(_.value), 1)
199
199
  ]),
200
200
  "side-sheet-footer": g(() => [
201
- C("div", ne, [
201
+ D("div", ne, [
202
202
  c(w, {
203
203
  label: i(ae)(i(n)(`menu.common.actions.${l.action}`)),
204
204
  loading: V.value,
@@ -215,7 +215,7 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
215
215
  ])
216
216
  ]),
217
217
  default: g(() => [
218
- C("div", oe, [
218
+ D("div", oe, [
219
219
  c(G, null, {
220
220
  default: g(() => {
221
221
  var p;
@@ -1,24 +1,24 @@
1
- import { defineComponent as R, computed as w, ref as E, watch as C, resolveComponent as g, createElementBlock as F, openBlock as V, Fragment as K, renderSlot as j, createVNode as s, unref as n, withCtx as m, createElementVNode as d, createBlock as M, createCommentVNode as U, normalizeClass as H, createSlots as J, toDisplayString as Q } from "vue";
2
- import { O as W, G as X, H as f, D, J as I, A as S, I as Z } from "./menu-2ymqQnFE.js";
1
+ import { defineComponent as G, computed as w, ref as E, watch as C, resolveComponent as g, createElementBlock as F, openBlock as V, Fragment as K, renderSlot as j, createVNode as s, unref as n, withCtx as m, createElementVNode as d, createBlock as M, createCommentVNode as U, normalizeClass as H, createSlots as J, toDisplayString as Q } from "vue";
2
+ import { O as W, D as X, H as f, B, J as D, z as I, I as Z } from "./menu-DQurCWMa.js";
3
3
  import { d as ee } from "./vuedraggable-CK8z7qA8.js";
4
4
  import { useI18n as te } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as ae, components as ne } from "@feedmepos/ui-library";
6
- import { _ as oe, a as le } from "./customAttributes-DvHKcDWb.js";
6
+ import { _ as oe, a as le } from "./customAttributes-CfwqBwao.js";
7
7
  import { u as ie } from "./discardConfirm-BHni0LNu.js";
8
- import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Dflill79.js";
8
+ import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CumuJ63E.js";
9
9
  import { c as re } from "./check-C9mY6LiX.js";
10
10
  const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32" }, de = ["data-not-allow-sort"], ce = {
11
11
  key: 1,
12
12
  class: "w-24"
13
- }, pe = { class: "flex-1" }, fe = { class: "flex gap-8 items-center justify-start" }, ve = /* @__PURE__ */ R({
13
+ }, pe = { class: "flex-1" }, fe = { class: "flex gap-8 items-center justify-start" }, ve = /* @__PURE__ */ G({
14
14
  __name: "Form",
15
15
  props: {
16
16
  initialValue: {}
17
17
  },
18
- setup(B, { expose: N }) {
19
- const r = B, b = W(X(ae())), { t: o } = te(), A = w(
18
+ setup(S, { expose: N }) {
19
+ const r = S, b = W(X(ae())), { t: o } = te(), L = w(
20
20
  () => r.initialValue ? o("menu.variant.form.title.edit") : o("menu.variant.form.title.add")
21
- ), L = w(() => r.initialValue ? "Update" : "Add"), O = () => {
21
+ ), A = w(() => r.initialValue ? "Update" : "Add"), O = () => {
22
22
  if (r.initialValue) {
23
23
  const e = f(r.initialValue);
24
24
  return e.options.push({
@@ -26,7 +26,7 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
26
26
  name: ""
27
27
  }), e;
28
28
  } else
29
- return { ...D.generator.initMenuV4VariantGroup(), usedBy: [] };
29
+ return { ...B.generator.initMenuV4VariantGroup(), usedBy: [] };
30
30
  }, t = E(O()), y = E(!1), i = E(!1), x = (e) => {
31
31
  re.isBoolean(e) ? i.value = e : i.value = !i.value;
32
32
  };
@@ -47,7 +47,7 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
47
47
  }
48
48
  ];
49
49
  }
50
- function P(e) {
50
+ function z(e) {
51
51
  const a = f(t.value.options);
52
52
  t.value.options = a.filter((l) => l._id !== e);
53
53
  }
@@ -60,11 +60,11 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
60
60
  immediate: !0
61
61
  }
62
62
  );
63
- function T(e) {
63
+ function P(e) {
64
64
  const a = e.draggedContext.futureIndex, l = e.relatedContext.list;
65
65
  return a !== l.length - 1;
66
66
  }
67
- const Y = ie(
67
+ const T = ie(
68
68
  () => {
69
69
  if (r.initialValue) {
70
70
  const e = t.value.options.filter((a) => !!a.name.trim());
@@ -75,25 +75,25 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
75
75
  () => {
76
76
  i.value = !1;
77
77
  }
78
- ), z = async () => {
78
+ ), Y = async () => {
79
79
  try {
80
80
  y.value = !0;
81
81
  const e = f(t.value);
82
82
  e.options = e.options.filter((a) => !!a.name.trim()), r.initialValue ? await b.updateMenu(
83
83
  {
84
- module: S.F_MENU_MODULE_V4_KEY.enum.variant,
85
- operation: I.F_OPERATION_TYPE.update,
84
+ module: I.F_MENU_MODULE_V4_KEY.enum.variant,
85
+ operation: D.F_OPERATION_TYPE.update,
86
86
  data: e
87
87
  },
88
88
  e.name
89
89
  ) : await b.updateMenu(
90
90
  {
91
- module: S.F_MENU_MODULE_V4_KEY.enum.variant,
92
- operation: I.F_OPERATION_TYPE.create,
91
+ module: I.F_MENU_MODULE_V4_KEY.enum.variant,
92
+ operation: D.F_OPERATION_TYPE.create,
93
93
  data: e
94
94
  },
95
95
  e.name
96
- ), x(!1), t.value = { ...D.generator.initMenuV4VariantGroup(), usedBy: [] };
96
+ ), x(!1), t.value = { ...B.generator.initMenuV4VariantGroup(), usedBy: [] };
97
97
  } finally {
98
98
  y.value = !1;
99
99
  }
@@ -107,28 +107,28 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
107
107
  show: i,
108
108
  trigger: x
109
109
  }), (e, a) => {
110
- const l = g("fm-text-field"), c = g("fm-icon"), v = g("fm-button"), G = g("fm-side-sheet");
110
+ const l = g("fm-text-field"), c = g("fm-icon"), v = g("fm-button"), R = g("fm-side-sheet");
111
111
  return V(), F(K, null, [
112
112
  j(e.$slots, "default", { trigger: x }),
113
- s(G, {
113
+ s(R, {
114
114
  id: "variant-form",
115
115
  modelValue: i.value,
116
116
  "onUpdate:modelValue": a[2] || (a[2] = (_) => i.value = _),
117
117
  "is-container": n(ne).FmForm,
118
118
  "is-container-props": {
119
- onValidationSuccess: z,
119
+ onValidationSuccess: Y,
120
120
  blameFormChildOnValidationFailed: !0
121
121
  },
122
122
  "max-width": 560,
123
- "onOn:clickedAway": n(Y)
123
+ "onOn:clickedAway": n(T)
124
124
  }, {
125
125
  "side-sheet-header": m(() => [
126
- d("p", ue, Q(A.value), 1)
126
+ d("p", ue, Q(L.value), 1)
127
127
  ]),
128
128
  "side-sheet-footer": m(() => [
129
129
  d("div", fe, [
130
130
  s(v, {
131
- label: L.value,
131
+ label: A.value,
132
132
  loading: y.value,
133
133
  size: "lg",
134
134
  type: "submit",
@@ -166,7 +166,7 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
166
166
  d("div", null, [
167
167
  s(n(ee), {
168
168
  "model-value": t.value.options,
169
- move: T,
169
+ move: P,
170
170
  class: "space-y-16",
171
171
  group: "categories",
172
172
  handle: ".handle",
@@ -199,7 +199,7 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
199
199
  fn: m(() => [
200
200
  s(c, {
201
201
  name: "close",
202
- onClick: (h) => P(u._id)
202
+ onClick: (h) => z(u._id)
203
203
  }, null, 8, ["onClick"])
204
204
  ]),
205
205
  key: "0"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, resolveComponent as p, createBlock as f, openBlock as i, Teleport as E, createVNode as _, Transition as g, withCtx as h, createCommentVNode as L, withKeys as w, normalizeStyle as F, normalizeClass as d, createElementVNode as m, renderSlot as x, createElementBlock as T, toDisplayString as R, Fragment as A, renderList as v, computed as C, unref as I } from "vue";
2
- import { _ as k } from "./LinkProductSideSheet-DPn7KN3l.js";
2
+ import { _ as k } from "./LinkProductSideSheet-b_gN9u5S.js";
3
3
  import { useI18n as U } from "@feedmepos/mf-common";
4
4
  const N = {
5
5
  class: /* @__PURE__ */ d([