@feedmepos/mf-menu 0.32.37 → 0.32.38-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/{App-Dl-BiHwh.js → App-DGdS9nht.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Z4PgBxr3.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CBy3XScH.js} +3 -3
  3. package/dist/{Catalog-BSZ8BAbX.js → Catalog-BuI0IVpf.js} +6 -6
  4. package/dist/{Category-bGvXpr0F.js → Category-DSTt-Sl6.js} +9 -9
  5. package/dist/Category-DbL3CS-5.js +224 -0
  6. package/dist/{CookingGuide-DijUR2JM.js → CookingGuide-Baw7iMDl.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B30t_PW1.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BDZDojOt.js} +1 -1
  8. package/dist/{Group-O4L3iHx0.js → Group-BnzmEllK.js} +1 -1
  9. package/dist/{Group-CrqE40ia.js → Group-D158_Fr0.js} +7 -7
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-CsM72Jnq.js → Group.vue_vue_type_script_setup_true_lang-C3H6xvlY.js} +227 -216
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BGR4kFzj.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D2G40Yc6.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-wf0Wm51b.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-D-JOSWUn.js} +1743 -1743
  13. package/dist/{Ingredient-DvvuwOdH.js → Ingredient-C-gP75uQ.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-anFCPZZD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BpuYVaKl.js} +2 -2
  15. package/dist/{LinkProductSideSheet-ImK8azTA.js → LinkProductSideSheet-DN5fbJVw.js} +3 -3
  16. package/dist/{MenuSetting-BX0ohmwF.js → MenuSetting-CjQ6_Ti_.js} +5 -5
  17. package/dist/{PrintRoute-CXYZHJsf.js → PrintRoute-DK25vS8X.js} +4 -4
  18. package/dist/{Product-BnnwL5DZ.js → Product-DCEMAuw3.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DUBnQJZ1.js → Product.vue_vue_type_script_setup_true_lang-DCutU0Ny.js} +348 -337
  20. package/dist/{ProductInternalTools-DzRnmE1r.js → ProductInternalTools-CiDa1V3D.js} +23 -23
  21. package/dist/{Products-CtzHONQZ.js → Products-DUxtMLiy.js} +32 -32
  22. package/dist/{Publish-DmIbDy8-.js → Publish-Bs5zVwDw.js} +3 -3
  23. package/dist/{Recipe-D_0Ezt1C.js → Recipe-_WCpFOU6.js} +4 -4
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DdeQnyfQ.js → RuleView.vue_vue_type_script_setup_true_lang-3AVOVYpW.js} +366 -366
  25. package/dist/{Scheduler-BgQsbdVM.js → Scheduler-BqFwfRlm.js} +3 -3
  26. package/dist/{ServingSequence-DCRzJsrs.js → ServingSequence-ByNsE8ha.js} +3 -3
  27. package/dist/{Setting-CgtttPN_.js → Setting-widqJGfT.js} +5 -5
  28. package/dist/Subcategory-DXaz2g4-.js +345 -0
  29. package/dist/{Takeaway-BfcHs1we.js → Takeaway-Ce_y1_UW.js} +1 -1
  30. package/dist/{Takeaway-CExKsbN5.js → Takeaway-DVBJn6re.js} +4 -4
  31. package/dist/Takeaway.vue_vue_type_script_setup_true_lang-DK2Cp2Dg.js +316 -0
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Br279NC_.js → Thumbnail.vue_vue_type_script_setup_true_lang-CAiNaQMP.js} +4 -4
  33. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-BPs9D7Pq.js +185 -0
  34. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-nFLEeipN.js +6120 -0
  35. package/dist/{Unit-B6P_ykM-.js → Unit-XJLHLSYf.js} +2 -2
  36. package/dist/Variant-BA1AQl9-.js +247 -0
  37. package/dist/{_id_-D2ozS9Ck.js → _id_-CA2rV7Eb.js} +9 -9
  38. package/dist/app-C9zsFCoJ.js +363 -0
  39. package/dist/{app-DqyNXgYz.js → app-D2Sxejos.js} +1 -1
  40. package/dist/app.js +1 -1
  41. package/dist/apps/mf-menu/src/app.d.ts +264 -0
  42. package/dist/apps/mf-menu/src/components/ProductTranslationDialog.vue.d.ts +41 -0
  43. package/dist/apps/mf-menu/src/components/TranslationBadge.vue.d.ts +29 -0
  44. package/dist/apps/mf-menu/src/components/TranslationFieldSection.vue.d.ts +39 -0
  45. package/dist/apps/mf-menu/src/components/TranslationSideSheet.vue.d.ts +23 -0
  46. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +12 -0
  47. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +6 -0
  48. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +54 -0
  49. package/dist/apps/mf-menu/src/components/feature/CategoryManager/Form.vue.d.ts +1 -0
  50. package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +1 -0
  51. package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +16 -0
  52. package/dist/apps/mf-menu/src/components/feature/GroupManager/ProductOverrideTranslation.vue.d.ts +22 -0
  53. package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +6 -0
  54. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +20 -0
  55. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +20 -0
  56. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/category.d.ts +8 -2
  57. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +24 -1
  58. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +16 -0
  59. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +10 -0
  60. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +16 -0
  61. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +6 -0
  62. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +24 -0
  63. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +30 -0
  64. package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +10 -0
  65. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +125 -1
  66. package/dist/apps/mf-menu/src/components/feature/VariantManager/ProductVariantTranslation.vue.d.ts +37 -0
  67. package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +20 -0
  68. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +16 -0
  69. package/dist/apps/mf-menu/src/helper/item.d.ts +1 -0
  70. package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +10 -0
  71. package/dist/apps/mf-menu/src/helper/menu.d.ts +11 -0
  72. package/dist/apps/mf-menu/src/helper/menuImport.d.ts +125 -1
  73. package/dist/apps/mf-menu/src/helper/menuSanitizer.d.ts +125 -1
  74. package/dist/apps/mf-menu/src/manager/menu/category.d.ts +8 -2
  75. package/dist/apps/mf-menu/src/manager/menu/group.d.ts +1 -0
  76. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +125 -1
  77. package/dist/apps/mf-menu/src/manager/menu/subcategory.d.ts +6 -0
  78. package/dist/apps/mf-menu/src/stores/manager/item.d.ts +31 -1
  79. package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +16 -0
  80. package/dist/apps/mf-menu/src/stores/manager/takeaway.d.ts +9 -0
  81. package/dist/apps/mf-menu/src/stores/menu.d.ts +125 -1
  82. package/dist/apps/mf-menu/src/utils/translation.d.ts +2 -0
  83. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddCategoryDialogContentComponent.vue.d.ts +1 -0
  84. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +20 -0
  85. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +46 -0
  86. package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +10 -0
  87. package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +10 -0
  88. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  89. package/dist/assets/linked-status-BrleJSCp.js +13 -0
  90. package/dist/assets/menu-export-Da3-wtnw.js +107 -0
  91. package/dist/assets/override-menu-ChjeVe4O.js +13 -0
  92. package/dist/assets/validate-menu-YVTxOfeq.js +13 -0
  93. package/dist/{catalog-CFKVaXk7.js → catalog-YvUT-JIh.js} +1 -1
  94. package/dist/{catalogSetting-N4nT-nGm.js → catalogSetting-CXOYJZO3.js} +1 -1
  95. package/dist/{currency-Bi_GukGE.js → currency-np4zdWW1.js} +1 -1
  96. package/dist/dayjs.min-CSuLNurY.js +6 -0
  97. package/dist/{index-uiJS0BKT.js → index-3wQe-6lg.js} +1 -1
  98. package/dist/index-CFbB7bM3.js +335 -0
  99. package/dist/index-Cek4Z9eM.js +539 -0
  100. package/dist/{index.vue_vue_type_script_setup_true_lang-CL6a622s.js → index.vue_vue_type_script_setup_true_lang-HZXySVXs.js} +18858 -18656
  101. package/dist/item-DR9qrNf6.js +8117 -0
  102. package/dist/{jszip.min-v__o3BM4.js → jszip.min-Bz8ZTO2s.js} +2 -2
  103. package/dist/{menu-LtIuM7Qj.js → menu-BWsDRctK.js} +1 -1
  104. package/dist/{menuV2-N0hB53Gw.js → menuV2-CfsbyMis.js} +39 -39
  105. package/dist/mf-menu.css +1 -1
  106. package/dist/{priceTier-DZeAvlXs.js → priceTier-BNCJtFVM.js} +1 -1
  107. package/dist/rules-DU-MRKWH.js +212 -0
  108. package/dist/{scheduler-FVlscyjB.js → scheduler-BizSj8q8.js} +4 -4
  109. package/dist/{toExcel-DBCbupeI.js → toExcel-DhRigI9c.js} +2 -2
  110. package/dist/translation-BeqjfyEb.js +75 -0
  111. package/dist/{unit-DNphv-4C.js → unit-CaOym7HP.js} +2 -2
  112. package/package.json +3 -3
  113. package/dist/Category-DMgNea31.js +0 -392
  114. package/dist/Subcategory-6SgvwWpX.js +0 -280
  115. package/dist/Takeaway.vue_vue_type_script_setup_true_lang-GAZ3S2_n.js +0 -305
  116. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BFwMfAlB.js +0 -6024
  117. package/dist/Variant-DmNuLi96.js +0 -230
  118. package/dist/app-CE0yoao0.js +0 -363
  119. package/dist/assets/linked-status-BB6BrSUB.js +0 -13
  120. package/dist/assets/menu-export-C1TBcoi-.js +0 -107
  121. package/dist/assets/override-menu-C0RijOOI.js +0 -13
  122. package/dist/assets/validate-menu-9VpR7oZY.js +0 -13
  123. package/dist/category-BSGaVgyv.js +0 -156
  124. package/dist/dayjs.min-DgXlcVSD.js +0 -6
  125. package/dist/index-BaxQ5Nq0.js +0 -273
  126. package/dist/index-Bun2EboK.js +0 -239
  127. package/dist/item-DPivBmJh.js +0 -6950
  128. package/dist/rules-CIWTZQfh.js +0 -6
  129. package/dist/subcategory-CIctYwBF.js +0 -148
@@ -2,12 +2,12 @@ var tt = Object.defineProperty;
2
2
  var At = (t, e, A) => e in t ? tt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: A }) : t[e] = A;
3
3
  var Te = (t, e, A) => At(t, typeof e != "symbol" ? e + "" : e, A);
4
4
  import { readonly, ref, defineComponent, watchEffect, computed, watch, createElementBlock, openBlock, normalizeStyle, onBeforeUnmount, createBlock, unref, onUnmounted, resolveComponent, onMounted, Fragment, createVNode, createCommentVNode, createElementVNode, normalizeClass } from "vue";
5
- import { c as commonjsGlobal, g as getDefaultExportFromCjs, u as useMenuStore, a as coreDartExports, r as registerVersion, b as getApp, _ as _getProvider, d as getExperimentalSetting, e as getDefaultEmulatorHost, f as _isFirebaseServerApp, h as deepEqual, i as getModularInstance, j as getUA, E as ErrorFactory, k as isIE, l as isEmpty, S as SDK_VERSION, q as querystring, F as FirebaseError, m as isMobileCordova, n as isReactNative, o as base64Decode, L as Logger, p as LogLevel, s as isBrowserExtension, t as isCloudflareWorker, v as _registerComponent, C as Component, w as createSubscribe, x as getApps, y as initializeApp, z as getStorage, A as entityExports, B as coreExports, D as menuExports } from "./index.vue_vue_type_script_setup_true_lang-CL6a622s.js";
5
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs, u as useMenuStore, a as coreDartExports, r as registerVersion, b as getApp, _ as _getProvider, d as getExperimentalSetting, e as getDefaultEmulatorHost, f as _isFirebaseServerApp, h as deepEqual, i as getModularInstance, j as getUA, E as ErrorFactory, k as isIE, l as isEmpty, S as SDK_VERSION, q as querystring, F as FirebaseError, m as isMobileCordova, n as isReactNative, o as base64Decode, L as Logger, p as LogLevel, s as isBrowserExtension, t as isCloudflareWorker, v as _registerComponent, C as Component, w as createSubscribe, x as getApps, y as initializeApp, z as getStorage, A as entityExports, B as coreExports, D as menuExports } from "./index.vue_vue_type_script_setup_true_lang-HZXySVXs.js";
6
6
  import { installBusinessQueryStatePlugin, useI18n, FeedMeAuth, useCoreStore } from "@feedmepos/mf-common";
7
7
  import { createRouter, createWebHistory, useRouter } from "vue-router";
8
- import { r as routers, u as useMenuNavigatorStatus } from "./app-CE0yoao0.js";
9
- import { _ as _sfc_main$5 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BFwMfAlB.js";
10
- import { u as useAppStore } from "./app-DqyNXgYz.js";
8
+ import { r as routers, u as useMenuNavigatorStatus } from "./app-C9zsFCoJ.js";
9
+ import { _ as _sfc_main$5 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-nFLEeipN.js";
10
+ import { u as useAppStore } from "./app-D2Sxejos.js";
11
11
  var flagsmith$1 = { exports: {} }, flagsmith = flagsmith$1.exports, hasRequiredFlagsmith;
12
12
  function requireFlagsmith() {
13
13
  return hasRequiredFlagsmith || (hasRequiredFlagsmith = 1, function(t, e) {
@@ -13376,7 +13376,7 @@ registerAuth(
13376
13376
  "Browser"
13377
13377
  /* ClientPlatform.BROWSER */
13378
13378
  );
13379
- var define_appEndpoint_default = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" } };
13379
+ var define_appEndpoint_default = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "image.feedmedev.cc", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" } };
13380
13380
  async function initFirebase() {
13381
13381
  if (getApps().length) {
13382
13382
  console.warn("mf-menu:firebase already initialized by another app");
@@ -13396,7 +13396,7 @@ const _hoisted_1 = {
13396
13396
  async function l(f) {
13397
13397
  try {
13398
13398
  if (!a.value) {
13399
- const y = "6GhcttsJ9Rj9cTevcdrpin";
13399
+ const y = "MaGoXrEWuEJNpWgKTqseee";
13400
13400
  console.log(`Initialize feature flag with key *${y.slice(y.length - 4)}`), await s({ apiKey: y });
13401
13401
  }
13402
13402
  const S = await n(
@@ -13443,7 +13443,7 @@ const _hoisted_1 = {
13443
13443
  f && f === entityExports.F_MENU_VERSION.enum.v4 && router.addRoute({
13444
13444
  path: "/serving-sequence",
13445
13445
  name: "serving-sequence",
13446
- component: () => import("./ServingSequence-DCRzJsrs.js")
13446
+ component: () => import("./ServingSequence-ByNsE8ha.js")
13447
13447
  });
13448
13448
  }
13449
13449
  ), watch(
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as K, computed as i, h as u, ref as U, resolveComponent as b, createElementBlock as p, openBlock as d, createVNode as f, withCtx as g, createElementVNode as V, createCommentVNode as C, toDisplayString as j, unref as n, isRef as A, createBlock as D, Fragment as G, renderList as H } from "vue";
2
2
  import { useI18n as M } from "@feedmepos/mf-common";
3
3
  import { components as B, FmButtonColorThemeVariant as h, FmButtonVariant as I } from "@feedmepos/ui-library";
4
- import { _ as O } from "./RuleView.vue_vue_type_script_setup_true_lang-DdeQnyfQ.js";
5
- import { L as $ } from "./LinkProductSideSheet-ImK8azTA.js";
4
+ import { _ as O } from "./RuleView.vue_vue_type_script_setup_true_lang-3AVOVYpW.js";
5
+ import { L as $ } from "./LinkProductSideSheet-DN5fbJVw.js";
6
6
  import { u as q } from "./search-BAPEUu1R.js";
7
- import { u as J, ap as Q } from "./index.vue_vue_type_script_setup_true_lang-CL6a622s.js";
7
+ import { u as J, ap as Q } from "./index.vue_vue_type_script_setup_true_lang-HZXySVXs.js";
8
8
  const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
9
9
  key: 0,
10
10
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as se, computed as x, resolveComponent as _, createBlock as V, openBlock as p, createVNode as o, ref as G, createElementBlock as F, Fragment as K, renderSlot as be, unref as e, withCtx as g, createElementVNode as v, createCommentVNode as z, renderList as X, createTextVNode as xe, toDisplayString as N, markRaw as Ce, toRaw as ke, h as J, withModifiers as Q, normalizeClass as he } from "vue";
2
2
  import { useRouter as Fe } from "vue-router";
3
- import { u as pe, A as M, Q as fe, G as ge, D as re, B as Oe, I as le, M as ve, ae as ie, a5 as Me } from "./index.vue_vue_type_script_setup_true_lang-CL6a622s.js";
3
+ import { u as pe, A as M, Q as fe, G as ge, D as re, B as Oe, I as le, M as ve, ad as ie, a4 as Me } from "./index.vue_vue_type_script_setup_true_lang-HZXySVXs.js";
4
4
  import { useI18n as ue, useCoreStore as _e } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as ye, components as ne, FmButtonVariant as W, FmButtonColorThemeVariant as Z, useDialog as Ve, useBreakpoints as De } from "@feedmepos/ui-library";
6
- import { _ as Se, R as ce } from "./app-CE0yoao0.js";
6
+ import { _ as Se, R as ce } from "./app-C9zsFCoJ.js";
7
7
  import { _ as Te } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
8
8
  import { _ as te } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
9
- import { _ as Ue } from "./RuleView.vue_vue_type_script_setup_true_lang-DdeQnyfQ.js";
10
- import { _ as me, a as we } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BGR4kFzj.js";
9
+ import { _ as Ue } from "./RuleView.vue_vue_type_script_setup_true_lang-3AVOVYpW.js";
10
+ import { _ as me, a as we } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D2G40Yc6.js";
11
11
  import { c as Ee } from "./check-C9mY6LiX.js";
12
- import { C as B, a as P } from "./catalogSetting-N4nT-nGm.js";
12
+ import { C as B, a as P } from "./catalogSetting-CXOYJZO3.js";
13
13
  import { _ as Ae } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
14
- import { C as Ne } from "./catalog-CFKVaXk7.js";
14
+ import { C as Ne } from "./catalog-YvUT-JIh.js";
15
15
  const Re = /* @__PURE__ */ se({
16
16
  __name: "CatalogUsageTable",
17
17
  props: {
@@ -1,10 +1,10 @@
1
- import { defineComponent as V, computed as k, ref as C, resolveComponent as w, createElementBlock as g, openBlock as u, createElementVNode as i, createVNode as _, unref as a, withCtx as z, Fragment as K, renderList as P, toDisplayString as E, createBlock as S } from "vue";
1
+ import { defineComponent as V, computed as k, ref as C, resolveComponent as w, createElementBlock as g, openBlock as u, createElementVNode as i, createVNode as _, unref as a, withCtx as z, Fragment as A, renderList as K, toDisplayString as E, createBlock as S } from "vue";
2
2
  import { useI18n as M } from "@feedmepos/mf-common";
3
- import { useSnackbar as L, useBreakpoints as U, useDialog as A } from "@feedmepos/ui-library";
4
- import { G as F, u as I, $ as Y, Q as T, M as j, A as q, a5 as G } from "./index.vue_vue_type_script_setup_true_lang-CL6a622s.js";
5
- import { _ as Q } from "./app-CE0yoao0.js";
6
- import { u as B } from "./menu-LtIuM7Qj.js";
7
- import { u as R } from "./category-BSGaVgyv.js";
3
+ import { useSnackbar as L, useBreakpoints as P, useDialog as U } from "@feedmepos/ui-library";
4
+ import { G as F, u as I, $ as Y, Q as T, M as j, A as q, a4 as G } from "./index.vue_vue_type_script_setup_true_lang-HZXySVXs.js";
5
+ import { _ as Q } from "./app-C9zsFCoJ.js";
6
+ import { u as B } from "./menu-BWsDRctK.js";
7
+ import { A as R } from "./item-DR9qrNf6.js";
8
8
  const H = {
9
9
  key: 0
10
10
  }, J = {
@@ -86,7 +86,7 @@ const H = {
86
86
  }
87
87
  }, "Category");
88
88
  }
89
- const O = U(), $ = k(() => O.breakpoints.value.xs);
89
+ const O = P(), $ = k(() => O.breakpoints.value.xs);
90
90
  return (l, o) => {
91
91
  const r = w("FmSearch"), t = w("FmTable");
92
92
  return $.value ? (u(), g("div", X, [i("div", Z, [_(r, {
@@ -97,7 +97,7 @@ const H = {
97
97
  placeholder: a(s)("menu.common.labels.search_placeholder", {
98
98
  type: a(s)("menu.category.title")
99
99
  })
100
- }, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), g(K, null, P(m.value, (e) => (u(), g("div", {
100
+ }, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), g(A, null, K(m.value, (e) => (u(), g("div", {
101
101
  key: e.id || "",
102
102
  class: "flex flex-row py-12 px-16"
103
103
  }, [i("div", oe, [i("p", te, E(e.name), 1), i("p", ae, E(a(s)(e.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
@@ -129,7 +129,7 @@ const H = {
129
129
  }), me = /* @__PURE__ */ V({
130
130
  __name: "Category",
131
131
  setup(D) {
132
- const f = A(), y = L(), h = F(y), d = T(h), v = R({ dialog: f, menuLoader: d }), { categories: b } = B(), { t: n } = M();
132
+ const f = U(), y = L(), h = F(y), d = T(h), v = R({ dialog: f, menuLoader: d }), { categories: b } = B(), { t: n } = M();
133
133
  function m() {
134
134
  v.create();
135
135
  }
@@ -0,0 +1,224 @@
1
+ import { defineComponent as S, ref as B, computed as C, h as m, withModifiers as E, getCurrentInstance as Y, resolveComponent as k, createElementBlock as f, openBlock as c, createElementVNode as s, createVNode as d, unref as a, withCtx as w, Fragment as Q, renderList as q, toDisplayString as V, createBlock as y, createCommentVNode as H } from "vue";
2
+ import { useI18n as T } from "@feedmepos/mf-common";
3
+ import { useDialog as N, useSnackbar as j, components as J, FmButtonVariant as L, useBreakpoints as W, FmButtonColorThemeVariant as X } from "@feedmepos/ui-library";
4
+ import { _ as Z } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
+ import { G as A, Q as D, M as ee, A as te, a4 as oe } from "./index.vue_vue_type_script_setup_true_lang-HZXySVXs.js";
6
+ import { _ as ae } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
+ import { _ as ne } from "./app-C9zsFCoJ.js";
8
+ import { c as le } from "./createForm-BoUQeZTd.js";
9
+ import { a as se, A as I } from "./item-DR9qrNf6.js";
10
+ import { u as O, a as re } from "./menu-BWsDRctK.js";
11
+ import { g as ce } from "./translation-BeqjfyEb.js";
12
+ const ie = se, me = {
13
+ key: 0
14
+ }, de = {
15
+ class: "flex justify-end items-center"
16
+ }, ue = {
17
+ class: "w-[320px]"
18
+ }, pe = {
19
+ key: 1,
20
+ class: "flex-1 flex flex-col min-h-0"
21
+ }, _e = {
22
+ class: "p-8"
23
+ }, ge = {
24
+ class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
25
+ }, fe = ["onClick"], ye = {
26
+ class: "flex-1 space-y-4"
27
+ }, he = {
28
+ class: "fm-typo-en-body-lg-600"
29
+ }, ve = {
30
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
31
+ }, be = /* @__PURE__ */ S({
32
+ __name: "CategoryTable",
33
+ setup(R) {
34
+ const u = N(), p = j(), h = A(p), _ = D(h), v = I({
35
+ dialog: u,
36
+ menuLoader: _
37
+ }), {
38
+ categories: i
39
+ } = O(), n = B(""), g = C(() => i.value.filter((e) => e.name.toLowerCase().includes(n.value.toLowerCase()))), {
40
+ t: l
41
+ } = T(), F = B([{
42
+ accessorKey: "name",
43
+ header: () => l("menu.category.columns.title"),
44
+ enableSorting: !1,
45
+ meta: {
46
+ width: "auto"
47
+ },
48
+ cell: (e) => {
49
+ const o = e.row.original, r = e.getValue(), x = Object.keys(o.name_locale ?? {}).map((t) => ce(t));
50
+ return m("div", {
51
+ class: "flex items-center gap-8"
52
+ }, [m("span", {
53
+ class: "break-all"
54
+ }, r), ...x.map((t) => m("div", {
55
+ class: "rounded-lg border border-fm-color-primary text-fm-color-primary flex items-center justify-center fm-typo-en-body-sm-600 px-8"
56
+ }, t))]);
57
+ }
58
+ }, {
59
+ accessorKey: "items",
60
+ header: () => l("menu.category.columns.products"),
61
+ enableSorting: !1,
62
+ size: 200,
63
+ cell: (e) => {
64
+ const o = e.row.original;
65
+ return l(o.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
66
+ count: o.items.length
67
+ });
68
+ }
69
+ }, {
70
+ id: "actions",
71
+ size: 52,
72
+ meta: {
73
+ cellClass: "pl-16",
74
+ headerContentClass: "-mx-16"
75
+ },
76
+ header: "",
77
+ cell: (e) => {
78
+ const o = e.row.original;
79
+ return m("div", {
80
+ class: "flex justify-end"
81
+ }, [m(J.FmButton, {
82
+ icon: "delete",
83
+ disabled: !o.id,
84
+ variant: "tertiary",
85
+ textColor: "neutral-gray-400",
86
+ onClick: E(async () => {
87
+ await b(o);
88
+ }, ["stop", "prevent"])
89
+ })]);
90
+ }
91
+ }]);
92
+ async function b(e) {
93
+ if (!e.id) {
94
+ p.open({
95
+ message: l("menu.category.dialog.remove.error"),
96
+ type: "warning"
97
+ });
98
+ return;
99
+ }
100
+ u.open({
101
+ title: l("menu.category.dialog.remove.title"),
102
+ message: l("menu.common.dialog.remove_confirmation", {
103
+ name: e.name
104
+ }),
105
+ primaryActions: {
106
+ text: "Remove",
107
+ close: !0,
108
+ variant: L.Destructive
109
+ },
110
+ secondaryActions: {
111
+ text: "Cancel",
112
+ close: !0
113
+ }
114
+ }).onPrimary(async () => {
115
+ await _.updateMenu({
116
+ module: te.F_MENU_MODULE_V4_KEY.enum.category,
117
+ operation: ee.F_OPERATION_TYPE.delete,
118
+ // `category.id` is guaranteed to be defined due to the earlier check in `deleteCategory`.
119
+ data: e.id
120
+ }, e.name, !0);
121
+ });
122
+ }
123
+ async function z(e) {
124
+ const o = e.map((r) => r.id).filter((r) => !!r);
125
+ await v.rearrange(o);
126
+ }
127
+ const U = Y();
128
+ async function M(e) {
129
+ le(U, ie, {
130
+ initialValue: e
131
+ });
132
+ }
133
+ const K = W(), P = C(() => K.breakpoints.value.xs);
134
+ return (e, o) => {
135
+ const r = k("FmSearch"), $ = k("FmTable"), x = k("FmButton");
136
+ return P.value ? (c(), f("div", pe, [s("div", _e, [d(r, {
137
+ autofocus: "",
138
+ modelValue: n.value,
139
+ "onUpdate:modelValue": o[2] || (o[2] = (t) => n.value = t),
140
+ class: "w-full",
141
+ placeholder: a(l)("menu.common.labels.search_placeholder", {
142
+ type: "categories"
143
+ })
144
+ }, null, 8, ["modelValue", "placeholder"])]), s("div", ge, [(c(!0), f(Q, null, q(g.value, (t) => (c(), f("div", {
145
+ key: t.id || "",
146
+ class: "flex flex-row py-12 px-16",
147
+ onClick: (G) => M(t)
148
+ }, [s("div", ye, [s("p", he, V(t.name), 1), s("p", ve, V(a(l)(t.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
149
+ count: t.items.length
150
+ })), 1)]), d(x, {
151
+ "text-color": a(X).NeutralGray400,
152
+ variant: a(L).Tertiary,
153
+ "prepend-icon": "delete",
154
+ disabled: !t.id,
155
+ onClick: E((G) => b(t), ["stop"])
156
+ }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, fe))), 128))])])) : (c(), f("div", me, [s("div", de, [s("div", ue, [d(r, {
157
+ modelValue: n.value,
158
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => n.value = t),
159
+ autofocus: "",
160
+ class: "mb-8",
161
+ placeholder: a(l)("menu.common.labels.search_placeholder", {
162
+ type: a(l)("menu.category.title")
163
+ })
164
+ }, null, 8, ["modelValue", "placeholder"])])]), d(ne, null, {
165
+ default: w(() => [d($, {
166
+ "column-defs": F.value,
167
+ draggable: !0,
168
+ "page-size": a(i).length,
169
+ "row-data": a(i),
170
+ "search-value": n.value,
171
+ "shrink-at": !1,
172
+ "hide-footer": "",
173
+ "pin-header-row": "",
174
+ onDndChanged: z,
175
+ onRowClick: o[1] || (o[1] = (t) => M(t.original))
176
+ }, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
177
+ _: 1
178
+ })]));
179
+ };
180
+ }
181
+ }), xe = { class: "flex-1 flex justify-between gap-8 pl-8" }, ke = { class: "flex items-center" }, Ce = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, we = { class: "fm-typo-en-body-md-600 font-semibold" }, Ae = /* @__PURE__ */ S({
182
+ __name: "Category",
183
+ setup(R) {
184
+ const u = N(), p = j(), h = A(p), _ = D(h), v = I({ dialog: u, menuLoader: _ }), { categories: i } = O(), { t: n } = T();
185
+ function g() {
186
+ v.create();
187
+ }
188
+ const l = C(() => i.value.length);
189
+ return re().resetOnMount(), (F, b) => (c(), y(ae, {
190
+ heading: a(n)("menu.category.title")
191
+ }, {
192
+ default: w(() => [
193
+ a(i).length > 0 ? (c(), y(be, { key: 0 })) : (c(), y(a(oe), {
194
+ key: 1,
195
+ action: {
196
+ text: a(n)("menu.category.add"),
197
+ callback: g
198
+ },
199
+ subtitle: a(n)("menu.category.empty.subtitle"),
200
+ title: a(n)("menu.category.empty.title")
201
+ }, null, 8, ["action", "subtitle", "title"]))
202
+ ]),
203
+ "append-heading": w(() => [
204
+ s("div", xe, [
205
+ s("div", ke, [
206
+ s("div", Ce, [
207
+ s("p", we, V(l.value), 1)
208
+ ])
209
+ ]),
210
+ a(i).length > 0 ? (c(), y(Z, {
211
+ key: 0,
212
+ label: a(n)("menu.category.add"),
213
+ "prepend-icon": "add",
214
+ onClick: g
215
+ }, null, 8, ["label"])) : H("", !0)
216
+ ])
217
+ ]),
218
+ _: 1
219
+ }, 8, ["heading"]));
220
+ }
221
+ });
222
+ export {
223
+ Ae as default
224
+ };
@@ -2,12 +2,12 @@ import { defineComponent as le, ref as V, computed as F, resolveComponent as x,
2
2
  import { useI18n as se } from "@feedmepos/mf-common";
3
3
  import { components as de, useBreakpoints as be, useSnackbar as ye, useDialog as ke } from "@feedmepos/ui-library";
4
4
  import { _ as he } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as xe } from "./app-CE0yoao0.js";
6
- import { I as ee, J as me, M as re, A as oe, u as Ce, Q as we, G as Fe, a5 as Ve } from "./index.vue_vue_type_script_setup_true_lang-CL6a622s.js";
5
+ import { _ as xe } from "./app-C9zsFCoJ.js";
6
+ import { I as ee, J as me, M as re, A as oe, u as Ce, Q as we, G as Fe, a4 as Ve } from "./index.vue_vue_type_script_setup_true_lang-HZXySVXs.js";
7
7
  import { d as Se } from "./vuedraggable-CK8z7qA8.js";
8
- import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-DdeQnyfQ.js";
8
+ import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-3AVOVYpW.js";
9
9
  import { u as pe } from "./discardConfirm-BHni0LNu.js";
10
- import { L as Ie } from "./LinkProductSideSheet-ImK8azTA.js";
10
+ import { L as Ie } from "./LinkProductSideSheet-DN5fbJVw.js";
11
11
  import { _ as $e } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
12
12
  const Oe = { class: "flex items-center gap-8" }, Ee = { class: "grow" }, Ke = { class: "space-y-32" }, Le = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, Ne = { class: "px-16 py-8 w-[40%]" }, De = { class: "px-16 py-8 grow" }, Ge = { class: "px-16 py-8 w-[40%]" }, Me = { class: "px-16 py-8 grow" }, Ue = { class: "space-y-16" }, Be = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Te = { class: "flex gap-8 items-center justify-start" }, ze = /* @__PURE__ */ le({
13
13
  __name: "CookingGuideStepDialog",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as S, computed as o, createBlock as v, openBlock as t, unref as c, withCtx as g, renderSlot as B, ref as A, resolveComponent as I, createElementBlock as a, createElementVNode as m, createCommentVNode as b, Fragment as f, renderList as C, toDisplayString as d, withModifiers as F } from "vue";
2
2
  import { useI18n as V } from "@feedmepos/mf-common";
3
3
  import { _ as M } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
4
- import { u as D } from "./index.vue_vue_type_script_setup_true_lang-CL6a622s.js";
4
+ import { u as D } from "./index.vue_vue_type_script_setup_true_lang-HZXySVXs.js";
5
5
  import { useBreakpoints as E } from "@feedmepos/ui-library";
6
6
  import { _ as y } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
7
7
  const X = /* @__PURE__ */ S({
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-CsM72Jnq.js";
1
+ import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-C3H6xvlY.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -2,14 +2,14 @@ import { defineComponent as m, ref as p, createBlock as i, openBlock as d, unref
2
2
  import { useI18n as _ } from "@feedmepos/mf-common";
3
3
  import { _ as f } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
4
4
  import { _ as g } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
5
- import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-CsM72Jnq.js";
6
- import { A as b } from "./item-DPivBmJh.js";
7
- import { a as h } from "./menu-LtIuM7Qj.js";
8
- const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "flex items-center" }, k = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, C = { class: "fm-typo-en-body-md-600 font-semibold" }, j = /* @__PURE__ */ m({
5
+ import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-C3H6xvlY.js";
6
+ import { B as b } from "./item-DR9qrNf6.js";
7
+ import { a as h } from "./menu-BWsDRctK.js";
8
+ const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "flex items-center" }, k = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, C = { class: "fm-typo-en-body-md-600 font-semibold" }, A = /* @__PURE__ */ m({
9
9
  __name: "Group",
10
- setup(N) {
10
+ setup(B) {
11
11
  const o = p(0), { t: r } = _();
12
- return h().resetOnMount(), (V, s) => (d(), i(g, {
12
+ return h().resetOnMount(), (N, s) => (d(), i(g, {
13
13
  heading: n(r)("menu.group.title")
14
14
  }, {
15
15
  default: a(() => [
@@ -44,5 +44,5 @@ const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "fle
44
44
  }
45
45
  });
46
46
  export {
47
- j as default
47
+ A as default
48
48
  };