@feedmepos/mf-menu 0.32.13 → 0.32.15

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 (73) hide show
  1. package/dist/{App-D70-FH5L.js → App-BFUyUrdi.js} +16 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BJdja2N0.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BbjRIN7Z.js} +20 -20
  3. package/dist/{Catalog-WMpN3a0p.js → Catalog-B6VFmr6e.js} +20 -20
  4. package/dist/{Category-C_VsQIHU.js → Category-B-bTjNFI.js} +24 -24
  5. package/dist/{Category-BwHhFTZ-.js → Category-C8uGxpST.js} +84 -84
  6. package/dist/{CookingGuide-D9RNkYDL.js → CookingGuide-BL3uetlO.js} +65 -65
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DtmrxDZm.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-8yIVwc8E.js} +1 -1
  8. package/dist/{Group-DexONgr2.js → Group-BvO-gQZe.js} +1 -1
  9. package/dist/{Group-qRZlg5ST.js → Group-DT9UkkOx.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-DtPY9uUt.js → Group.vue_vue_type_script_setup_true_lang-DZhM1Tpb.js} +56 -56
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B5Qpmj2f.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D48u_DHq.js} +5 -5
  12. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-C_X-lTnN.js +72979 -0
  13. package/dist/{Ingredient-BuOS_Wvm.js → Ingredient-7qWDD9e6.js} +26 -26
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DFvXklj9.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CwjW0wfz.js} +2 -2
  15. package/dist/{LinkProductSideSheet-DJj8Nn4X.js → LinkProductSideSheet-BXW6eNgZ.js} +3 -3
  16. package/dist/{MenuSetting-D6B0gCGV.js → MenuSetting-BSF7O2NL.js} +5 -5
  17. package/dist/{PrintRoute-B7G8f1iC.js → PrintRoute-b1ii5Uz9.js} +20 -20
  18. package/dist/{Product-DpS5EepJ.js → Product-Ce0GJb3c.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CdIukLqA.js → Product.vue_vue_type_script_setup_true_lang-BZVvTAOX.js} +49 -49
  20. package/dist/{ProductInternalTools-CBCyWHOS.js → ProductInternalTools-igbOLRap.js} +20 -20
  21. package/dist/Products-GAyUdhnN.js +292 -0
  22. package/dist/Publish-g60odzhM.js +1300 -0
  23. package/dist/{Recipe-D14rkATU.js → Recipe-B6aye_iC.js} +9 -9
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CdH2ius3.js → RuleView.vue_vue_type_script_setup_true_lang-By8kwuMB.js} +134 -134
  25. package/dist/{Scheduler-DWZqa-jf.js → Scheduler-CyaG6Y5v.js} +7 -7
  26. package/dist/{ServingSequence-Mx7ovvJ1.js → ServingSequence-BXeypgrN.js} +27 -27
  27. package/dist/{Setting-DmHuVXVn.js → Setting-D7GcaNTk.js} +17 -17
  28. package/dist/{Subcategory-DixZPdnT.js → Subcategory-DNUp9ojI.js} +37 -37
  29. package/dist/{Takeaway-BVIymFV_.js → Takeaway-Baqvq5nP.js} +9 -9
  30. package/dist/{Takeaway-DDKeDEbV.js → Takeaway-BjXPeYRv.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CTaCQgRv.js → Takeaway.vue_vue_type_script_setup_true_lang-CgXT2UVL.js} +54 -54
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DveI9xvU.js → Thumbnail.vue_vue_type_script_setup_true_lang-CX8cSbDe.js} +12 -12
  33. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-2nBbq_Yk.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DcjGVQEO.js} +756 -763
  34. package/dist/{Unit-utuaNZBw.js → Unit-mI7lLzCf.js} +2 -2
  35. package/dist/{Variant-CzuJNwen.js → Variant-CVwnODRz.js} +14 -14
  36. package/dist/{_id_-DMDhPQCr.js → _id_-fpn0nBru.js} +14 -14
  37. package/dist/{app-BQUkvrAS.js → app-CCKI85Te.js} +26 -26
  38. package/dist/{app-Bqj3cAPJ.js → app-U5MEN4U1.js} +1 -1
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/Entry.vue.d.ts +1 -0
  41. package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +0 -2
  42. package/dist/apps/mf-menu/src/composable/useClientEvent.d.ts +14 -0
  43. package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +22 -22
  44. package/dist/apps/mf-menu/src/helper/menuExport.d.ts +59 -33
  45. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/assets/{linked-status-ILQVL8r9.js → linked-status-6Jt70XBp.js} +2 -2
  47. package/dist/assets/menu-export-CR0a98CA.js +107 -0
  48. package/dist/assets/{override-menu-DVkGhbA9.js → override-menu-Chsc0CSI.js} +2 -2
  49. package/dist/assets/{validate-menu-y_NQUL02.js → validate-menu-pb0aN4gj.js} +2 -2
  50. package/dist/{catalog-BYzITAmC.js → catalog-BgQmytEA.js} +1 -1
  51. package/dist/{catalogSetting-DAo5tN3P.js → catalogSetting-BS5IaQKq.js} +1 -1
  52. package/dist/{category-D4x8r_lY.js → category-DJMVbmzx.js} +1 -1
  53. package/dist/{currency-CvoBdMM2.js → currency-FHrLDvzy.js} +1 -1
  54. package/dist/dayjs.min-DJGdQr-B.js +6 -0
  55. package/dist/{index-LuH6PJzW.js → index-BywPDIFW.js} +4 -4
  56. package/dist/{index-BLUIaanj.js → index-DYxLHjeC.js} +1 -1
  57. package/dist/{index-6lju0f3r.js → index-XVWDnyu-.js} +17 -17
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-DxF14kn9.js → index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js} +2306 -2306
  59. package/dist/{item-lXMLaKOb.js → item-cmnP2N-a.js} +1089 -1091
  60. package/dist/{jszip.min-CdZ-wY5m.js → jszip.min-psVCZNVl.js} +545 -545
  61. package/dist/{menu-PJc2dQHQ.js → menu-CgQPOu3W.js} +1 -1
  62. package/dist/{menuV2-DinFmdTL.js → menuV2-DHO9OmzU.js} +159 -159
  63. package/dist/mf-menu.css +1 -1
  64. package/dist/{priceTier-CzKIo11g.js → priceTier-CLm9vzaK.js} +1 -1
  65. package/dist/{scheduler-DQjxnoCk.js → scheduler-BMdZdtpj.js} +4 -4
  66. package/dist/{subcategory-CLkDImEU.js → subcategory-Dj_DOvFt.js} +2 -2
  67. package/dist/{toExcel-DPh8DaM0.js → toExcel-XwFFiTiA.js} +2 -2
  68. package/dist/{unit-QYkVoC6_.js → unit-CsuAQsy7.js} +12 -12
  69. package/package.json +3 -3
  70. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-BqhNkaw_.js +0 -96043
  71. package/dist/Products-CcyGNlUl.js +0 -794
  72. package/dist/Publish-rZLHFaJ5.js +0 -1264
  73. package/dist/dayjs.min-C6xioui7.js +0 -6
@@ -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-DxF14kn9.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-kj6HkxwD.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-BQUkvrAS.js";
9
- import { _ as _sfc_main$5 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-2nBbq_Yk.js";
10
- import { u as useAppStore } from "./app-Bqj3cAPJ.js";
8
+ import { r as routers, u as useMenuNavigatorStatus } from "./app-CCKI85Te.js";
9
+ import { _ as _sfc_main$5 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DcjGVQEO.js";
10
+ import { u as useAppStore } from "./app-U5MEN4U1.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,13 +13396,20 @@ const _hoisted_1 = {
13396
13396
  async function a(l) {
13397
13397
  try {
13398
13398
  if (!o.value) {
13399
- const f = "6GhcttsJ9Rj9cTevcdrpin";
13399
+ const f = "MaGoXrEWuEJNpWgKTqseee";
13400
13400
  console.log(`Initialize feature flag with key *${f.slice(f.length - 4)}`), await s({ apiKey: f });
13401
13401
  }
13402
13402
  console.log("Retrieving menu_unique_product_code flag");
13403
- const u = await n(l, "menu_unique_product_code"), S = await n(
13403
+ const u = await n(
13404
13404
  l,
13405
- "portal_menu_schedule_publish_menu"
13405
+ "menu_unique_product_code",
13406
+ !1,
13407
+ (f) => typeof f == "boolean" ? f : f === "true"
13408
+ ), S = await n(
13409
+ l,
13410
+ "portal_menu_schedule_publish_menu",
13411
+ !1,
13412
+ (f) => typeof f == "boolean" ? f : f === "true"
13406
13413
  );
13407
13414
  A.updateFeatureFlags({
13408
13415
  uniqueProductCode: u || !1,
@@ -13421,7 +13428,7 @@ const _hoisted_1 = {
13421
13428
  l && l === entityExports.F_MENU_VERSION.enum.v4 && router.addRoute({
13422
13429
  path: "/serving-sequence",
13423
13430
  name: "serving-sequence",
13424
- component: () => import("./ServingSequence-Mx7ovvJ1.js")
13431
+ component: () => import("./ServingSequence-BXeypgrN.js")
13425
13432
  });
13426
13433
  }
13427
13434
  ), watch(
@@ -1,10 +1,10 @@
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 a, isRef as A, createBlock as D, Fragment as G, renderList as H } from "vue";
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-CdH2ius3.js";
5
- import { L as $ } from "./LinkProductSideSheet-DJj8Nn4X.js";
4
+ import { _ as O } from "./RuleView.vue_vue_type_script_setup_true_lang-By8kwuMB.js";
5
+ import { L as $ } from "./LinkProductSideSheet-BXW6eNgZ.js";
6
6
  import { u as q } from "./search-BAPEUu1R.js";
7
- import { u as J, an as Q } from "./index.vue_vue_type_script_setup_true_lang-DxF14kn9.js";
7
+ import { u as J, ao as Q } from "./index.vue_vue_type_script_setup_true_lang-kj6HkxwD.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"
@@ -26,12 +26,12 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
26
26
  const s = z, _ = F, L = J(), { searchKey: m, filter: w } = q(), y = i(() => s.categorizedItems || L.categorizedItems), k = i(() => Q(y.value, s.overrides)), P = i(() => k.value.reduce((t, e) => {
27
27
  if (w([e.name]))
28
28
  return t.push(e), t;
29
- const r = e.items.filter((n) => w([n.label]));
29
+ const r = e.items.filter((a) => w([a.label]));
30
30
  return r.length && t.push({ ...e, items: r }), t;
31
31
  }, [])), R = i(() => s.showVariant || s.selectVariant);
32
32
  function S(t, e) {
33
- var n, l;
34
- const r = e ? (n = s.overrides) == null ? void 0 : n.filter((o) => !(o._id === t && o.combinationKey === e)) : (l = s.overrides) == null ? void 0 : l.filter((o) => o._id !== t);
33
+ var a, l;
34
+ const r = e ? (a = s.overrides) == null ? void 0 : a.filter((o) => !(o._id === t && o.combinationKey === e)) : (l = s.overrides) == null ? void 0 : l.filter((o) => o._id !== t);
35
35
  _("update:overrides", r ?? []);
36
36
  }
37
37
  const { t: c } = M(), E = i(
@@ -70,7 +70,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
70
70
  id: "action",
71
71
  enableSorting: !1,
72
72
  cell: (e) => {
73
- const r = e.row.original, n = e.row.depth;
73
+ const r = e.row.original, a = e.row.depth;
74
74
  return s.editable ? u(
75
75
  "div",
76
76
  {
@@ -82,7 +82,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
82
82
  textColor: h.NeutralGray400,
83
83
  onClick: () => {
84
84
  var o;
85
- if (n > 0) {
85
+ if (a > 0) {
86
86
  const v = (o = e.row.getParentRow()) == null ? void 0 : o.original;
87
87
  S(v.value, r.value);
88
88
  } else
@@ -95,7 +95,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
95
95
  ]
96
96
  ), x = U({}), N = (t) => t.variant, T = i(() => k.value.reduce((t, e) => t + e.items.length, 0));
97
97
  return (t, e) => {
98
- const r = b("fm-button"), n = b("fm-search"), l = b("fm-table");
98
+ const r = b("fm-button"), a = b("fm-search"), l = b("fm-table");
99
99
  return d(), p("div", W, [
100
100
  f(O, { title: t.title }, {
101
101
  "append-title": g(() => [
@@ -106,15 +106,15 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
106
106
  "initial-value": t.overrides,
107
107
  "select-variant": t.selectVariant,
108
108
  "show-variant": R.value,
109
- title: a(c)("menu.apply_product.link.title"),
109
+ title: n(c)("menu.apply_product.link.title"),
110
110
  onSubmit: e[0] || (e[0] = ({ items: o }) => _("update:overrides", o))
111
111
  }, {
112
112
  default: g(({ trigger: o }) => [
113
113
  f(r, {
114
- "text-color": a(h).ColorPrimary,
115
- "border-color": a(h).ColorPrimary,
116
- variant: a(I).Secondary,
117
- label: t.linkButtonLabel || a(c)("menu.common.actions.link_product"),
114
+ "text-color": n(h).ColorPrimary,
115
+ "border-color": n(h).ColorPrimary,
116
+ variant: n(I).Secondary,
117
+ label: t.linkButtonLabel || n(c)("menu.common.actions.link_product"),
118
118
  "prepend-icon": "link",
119
119
  onClick: o
120
120
  }, null, 8, ["text-color", "border-color", "variant", "label", "onClick"])
@@ -125,11 +125,11 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
125
125
  ]),
126
126
  default: g(() => [
127
127
  V("div", X, [
128
- t.editable ? (d(), p("p", Y, j(a(c)("menu.common.labels.product_count", { count: T.value })), 1)) : C("", !0),
129
- f(n, {
130
- modelValue: a(m),
128
+ t.editable ? (d(), p("p", Y, j(n(c)("menu.common.labels.product_count", { count: T.value })), 1)) : C("", !0),
129
+ f(a, {
130
+ modelValue: n(m),
131
131
  "onUpdate:modelValue": e[1] || (e[1] = (o) => A(m) ? m.value = o : null),
132
- placeholder: a(c)("menu.common.labels.search_product"),
132
+ placeholder: n(c)("menu.common.labels.search_product"),
133
133
  class: "flex-1"
134
134
  }, null, 8, ["modelValue", "placeholder"])
135
135
  ])
@@ -146,7 +146,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
146
146
  "get-sub-row": N,
147
147
  "page-size": 9999,
148
148
  "row-data": o.items,
149
- "search-value": a(m),
149
+ "search-value": n(m),
150
150
  "shrink-at": !1,
151
151
  "hide-footer": "",
152
152
  "onUpdate:expandedState": e[2] || (e[2] = (v) => x.value = v)
@@ -1,17 +1,17 @@
1
- import { defineComponent as se, computed as x, resolveComponent as _, createBlock as V, openBlock as p, createVNode as o, ref as K, createElementBlock as F, Fragment as G, 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";
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, P as fe, G as ge, D as re, B as Oe, I as le, K as ve, ac as ie, a3 as Me } from "./index.vue_vue_type_script_setup_true_lang-DxF14kn9.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-kj6HkxwD.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-BQUkvrAS.js";
6
+ import { _ as Se, R as ce } from "./app-CCKI85Te.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-CdH2ius3.js";
10
- import { _ as me, a as we } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B5Qpmj2f.js";
9
+ import { _ as Ue } from "./RuleView.vue_vue_type_script_setup_true_lang-By8kwuMB.js";
10
+ import { _ as me, a as we } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D48u_DHq.js";
11
11
  import { c as Ee } from "./check-C9mY6LiX.js";
12
- import { C as B, a as P } from "./catalogSetting-DAo5tN3P.js";
12
+ import { C as B, a as P } from "./catalogSetting-BS5IaQKq.js";
13
13
  import { _ as Ae } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
14
- import { C as Ne } from "./catalog-BYzITAmC.js";
14
+ import { C as Ne } from "./catalog-BgQmytEA.js";
15
15
  const Re = /* @__PURE__ */ se({
16
16
  __name: "CatalogUsageTable",
17
17
  props: {
@@ -80,15 +80,15 @@ const Re = /* @__PURE__ */ se({
80
80
  }), Le = { class: "space-y-32" }, $e = {
81
81
  key: 0,
82
82
  class: "pl-32 space-x-8"
83
- }, Ie = { class: "pl-[60px] space-y-16" }, Be = { class: "space-x-16 flex items-center" }, Pe = { class: "flex-1 space-y-4" }, ze = { class: "fm-typo-en-body-lg-400" }, Ke = { class: "fm-typo-en-body-md-400" }, Ge = { class: "flex gap-8 items-center justify-start" }, je = /* @__PURE__ */ se({
83
+ }, Ie = { class: "pl-[60px] space-y-16" }, Be = { class: "space-x-16 flex items-center" }, Pe = { class: "flex-1 space-y-4" }, ze = { class: "fm-typo-en-body-lg-400" }, Ge = { class: "fm-typo-en-body-md-400" }, Ke = { class: "flex gap-8 items-center justify-start" }, je = /* @__PURE__ */ se({
84
84
  __name: "Form",
85
85
  setup(ee, { expose: D }) {
86
- const d = K(!1), S = K(!1), R = (c, u) => {
86
+ const d = G(!1), S = G(!1), R = (c, u) => {
87
87
  Ee.isBoolean(c) ? d.value = c : d.value = !d.value, d.value && (r.value = B.fromCatalog(
88
88
  u ?? re.generator.initMenuV4Catalog(),
89
89
  y.value
90
90
  ));
91
- }, y = x(() => C.version === M.F_MENU_VERSION.enum.v4), C = pe(), E = _e(), m = fe(ge(ye())), r = K(
91
+ }, y = x(() => C.version === M.F_MENU_VERSION.enum.v4), C = pe(), E = _e(), m = fe(ge(ye())), r = G(
92
92
  B.fromCatalog(re.generator.initMenuV4Catalog(), y.value)
93
93
  ), ae = x(() => C.catalogs.map((c) => c.name)), j = x({
94
94
  get: () => r.value.taxSetting,
@@ -143,7 +143,7 @@ const Re = /* @__PURE__ */ se({
143
143
  const { t: i } = ue();
144
144
  return D({ trigger: R }), (c, u) => {
145
145
  const f = _("fm-text-field"), k = _("fm-radio"), w = _("fm-radio-group"), A = _("fm-checkbox"), $ = _("fm-switch"), s = _("fm-select"), a = _("fm-button"), l = _("fm-chip"), O = _("fm-card"), I = _("fm-side-sheet");
146
- return p(), F(G, null, [
146
+ return p(), F(K, null, [
147
147
  be(c.$slots, "default", { trigger: R }),
148
148
  o(I, {
149
149
  modelValue: d.value,
@@ -156,7 +156,7 @@ const Re = /* @__PURE__ */ se({
156
156
  "max-width": 560
157
157
  }, {
158
158
  "side-sheet-footer": g(() => [
159
- v("div", Ge, [
159
+ v("div", Ke, [
160
160
  o(a, {
161
161
  loading: S.value,
162
162
  label: e(i)("menu.common.actions.add"),
@@ -215,7 +215,7 @@ const Re = /* @__PURE__ */ se({
215
215
  _: 1
216
216
  }, 8, ["model-value"]),
217
217
  ((b = r.value.taxSetting) == null ? void 0 : b.mode) === e(P).MANUAL ? (p(), F("div", $e, [
218
- (p(!0), F(G, null, X(Y.value, (n) => (p(), V(A, {
218
+ (p(!0), F(K, null, X(Y.value, (n) => (p(), V(A, {
219
219
  key: n.systemCode,
220
220
  "model-value": n.inclusive,
221
221
  value: !0,
@@ -297,7 +297,7 @@ const Re = /* @__PURE__ */ se({
297
297
  ]),
298
298
  _: 1
299
299
  }, 8, ["categories", "items"]),
300
- (p(!0), F(G, null, X(r.value.markupOptions, (t, b) => (p(), V(me, {
300
+ (p(!0), F(K, null, X(r.value.markupOptions, (t, b) => (p(), V(me, {
301
301
  key: b,
302
302
  categories: e(C).categories,
303
303
  items: e(C).items,
@@ -322,7 +322,7 @@ const Re = /* @__PURE__ */ se({
322
322
  _: 2
323
323
  }, 1024),
324
324
  v("p", ze, N(e(i)("menu.catalog.form.markup.config", { number: b + 1 })), 1),
325
- v("p", Ke, N(t.includeItems ? e(i)("menu.catalog.form.markup.products", {
325
+ v("p", Ge, N(t.includeItems ? e(i)("menu.catalog.form.markup.products", {
326
326
  count: t.includeItems.length
327
327
  }) : e(i)("menu.catalog.form.markup.all_items")), 1)
328
328
  ]),
@@ -438,7 +438,7 @@ const Re = /* @__PURE__ */ se({
438
438
  usage: j(s, a)
439
439
  })).filter((a) => a.usage.length > 0);
440
440
  }
441
- const L = K(!1), U = K(""), q = x(() => {
441
+ const L = G(!1), U = G(""), q = x(() => {
442
442
  var a;
443
443
  return [{
444
444
  id: oe,
@@ -479,7 +479,7 @@ const Re = /* @__PURE__ */ se({
479
479
  id: s
480
480
  }
481
481
  });
482
- }, u = K(null);
482
+ }, u = G(null);
483
483
  function f(s) {
484
484
  var a;
485
485
  (a = u.value) == null || a.trigger(null, {
@@ -608,7 +608,7 @@ const Re = /* @__PURE__ */ se({
608
608
  _: 1
609
609
  })]),
610
610
  _: 1
611
- }, 8, ["subtitle", "title"])) : (p(), F(G, {
611
+ }, 8, ["subtitle", "title"])) : (p(), F(K, {
612
612
  key: 1
613
613
  }, [$.value ? (p(), F("div", qe, [v("div", Je, [o(O, {
614
614
  autofocus: "",
@@ -618,7 +618,7 @@ const Re = /* @__PURE__ */ se({
618
618
  placeholder: e(m)("menu.common.labels.search_placeholder", {
619
619
  type: e(m)("menu.catalog.title")
620
620
  })
621
- }, null, 8, ["modelValue", "placeholder"])]), v("div", Qe, [(p(!0), F(G, null, X(i.value, (n) => (p(), F("div", {
621
+ }, null, 8, ["modelValue", "placeholder"])]), v("div", Qe, [(p(!0), F(K, null, X(i.value, (n) => (p(), F("div", {
622
622
  key: n.id,
623
623
  class: "flex flex-row py-12 px-16 items-center",
624
624
  onClick: (h) => c(n.id)
@@ -659,7 +659,7 @@ const Re = /* @__PURE__ */ se({
659
659
  "dismiss-away": ""
660
660
  }, {
661
661
  "side-sheet-header": g(() => [v("p", oa, N(e(m)("menu.catalog.usage.title")), 1)]),
662
- default: g(() => [L.value ? (p(), F("div", na, [(p(!0), F(G, null, X(q.value, (n, h) => (p(), V(Re, {
662
+ default: g(() => [L.value ? (p(), F("div", na, [(p(!0), F(K, null, X(q.value, (n, h) => (p(), V(Re, {
663
663
  key: h,
664
664
  catalog: n
665
665
  }, null, 8, ["catalog"]))), 128))])) : z("", !0)]),
@@ -1,20 +1,20 @@
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 P, Fragment as z, renderList as U, toDisplayString as E, createBlock as S } from "vue";
2
- import { useI18n as L } from "@feedmepos/mf-common";
3
- import { useSnackbar as M, useBreakpoints as Y, useDialog as $ } from "@feedmepos/ui-library";
4
- import { G as F, u as A, Y as I, P as T, K as j, A as q, a3 as G } from "./index.vue_vue_type_script_setup_true_lang-DxF14kn9.js";
5
- import { _ as R } from "./app-BQUkvrAS.js";
6
- import { u as B } from "./menu-PJc2dQHQ.js";
7
- import { u as H } from "./category-D4x8r_lY.js";
8
- const J = {
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 K, Fragment as P, renderList as U, toDisplayString as E, createBlock as S } from "vue";
2
+ import { useI18n as M } from "@feedmepos/mf-common";
3
+ import { useSnackbar as L, useBreakpoints as $, useDialog as A } from "@feedmepos/ui-library";
4
+ import { G as F, u as I, Z as Y, Q as T, M as j, A as q, a4 as G } from "./index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js";
5
+ import { _ as Q } from "./app-CCKI85Te.js";
6
+ import { u as B } from "./menu-CgQPOu3W.js";
7
+ import { u as R } from "./category-DJMVbmzx.js";
8
+ const Z = {
9
9
  key: 0
10
- }, Q = {
10
+ }, H = {
11
11
  class: "flex justify-end items-center"
12
- }, W = {
12
+ }, J = {
13
13
  class: "w-[320px]"
14
- }, X = {
14
+ }, W = {
15
15
  key: 1,
16
16
  class: "flex-1 flex flex-col min-h-0"
17
- }, Z = {
17
+ }, X = {
18
18
  class: "p-8"
19
19
  }, ee = {
20
20
  class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
@@ -27,7 +27,7 @@ const J = {
27
27
  }, ne = /* @__PURE__ */ V({
28
28
  __name: "CategoryTable",
29
29
  setup(D) {
30
- const f = M(), y = F(f), h = T(y), d = A(), {
30
+ const f = L(), y = F(f), h = T(y), d = I(), {
31
31
  categories: v
32
32
  } = B(), b = k(() => {
33
33
  var r, t;
@@ -39,10 +39,10 @@ const J = {
39
39
  position: e.id ? ((p = l[e.id]) == null ? void 0 : p.position) ?? c + 1 : null
40
40
  };
41
41
  });
42
- return I(o, (e) => e.name);
42
+ return Y(o, (e) => e.name);
43
43
  }), n = C(""), m = k(() => b.value.filter((l) => l.name.toLowerCase().includes(n.value.toLowerCase()))), {
44
44
  t: s
45
- } = L(), x = C([{
45
+ } = M(), x = C([{
46
46
  accessorKey: "name",
47
47
  header: () => s("menu.category.columns.title"),
48
48
  enableSorting: !1,
@@ -61,7 +61,7 @@ const J = {
61
61
  });
62
62
  }
63
63
  }]);
64
- async function K(l) {
64
+ async function N(l) {
65
65
  var e;
66
66
  const o = d.currentCatalog;
67
67
  if (!o)
@@ -86,10 +86,10 @@ const J = {
86
86
  }
87
87
  }, "Category");
88
88
  }
89
- const N = Y(), O = k(() => N.breakpoints.value.xs);
89
+ const O = $(), z = k(() => O.breakpoints.value.xs);
90
90
  return (l, o) => {
91
91
  const r = w("FmSearch"), t = w("FmTable");
92
- return O.value ? (u(), g("div", X, [i("div", Z, [_(r, {
92
+ return z.value ? (u(), g("div", W, [i("div", X, [_(r, {
93
93
  autofocus: "",
94
94
  modelValue: n.value,
95
95
  "onUpdate:modelValue": o[1] || (o[1] = (e) => n.value = e),
@@ -97,12 +97,12 @@ const J = {
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(z, null, U(m.value, (e) => (u(), g("div", {
100
+ }, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), g(P, null, U(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", {
104
104
  count: e.items.length
105
- })), 1)])]))), 128))])])) : (u(), g("div", J, [i("div", Q, [i("div", W, [_(r, {
105
+ })), 1)])]))), 128))])])) : (u(), g("div", Z, [i("div", H, [i("div", J, [_(r, {
106
106
  modelValue: n.value,
107
107
  "onUpdate:modelValue": o[0] || (o[0] = (e) => n.value = e),
108
108
  autofocus: "",
@@ -110,8 +110,8 @@ const J = {
110
110
  placeholder: a(s)("menu.common.labels.search_placeholder", {
111
111
  type: a(s)("menu.category.title")
112
112
  })
113
- }, null, 8, ["modelValue", "placeholder"])])]), _(R, null, {
114
- default: P(() => [_(t, {
113
+ }, null, 8, ["modelValue", "placeholder"])])]), _(Q, null, {
114
+ default: K(() => [_(t, {
115
115
  "column-defs": x.value,
116
116
  draggable: a(d).rules.category.overrideSequence,
117
117
  "page-size": m.value.length,
@@ -120,7 +120,7 @@ const J = {
120
120
  "shrink-at": !1,
121
121
  "hide-footer": "",
122
122
  "pin-header-row": "",
123
- onDndChanged: K
123
+ onDndChanged: N
124
124
  }, null, 8, ["column-defs", "draggable", "page-size", "row-data", "search-value"])]),
125
125
  _: 1
126
126
  })]));
@@ -129,7 +129,7 @@ const J = {
129
129
  }), me = /* @__PURE__ */ V({
130
130
  __name: "Category",
131
131
  setup(D) {
132
- const f = $(), y = M(), h = F(y), d = T(h), v = H({ dialog: f, menuLoader: d }), { categories: b } = B(), { t: n } = L();
132
+ const f = A(), 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
  }