@feedmepos/mf-menu 0.21.6-ex → 0.21.6

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 (54) hide show
  1. package/dist/{App-BXVMiqTP.js → App-DBtNTcNR.js} +3 -3
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CyYl8-m1.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CNN4L2Fg.js} +11 -11
  3. package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-CMNcA1cp.js → ApplyProducts.vue_vue_type_script_setup_true_lang-COQx53IL.js} +10 -12
  4. package/dist/{Catalog-B1lW-1_8.js → Catalog-BgYhJpIH.js} +46 -47
  5. package/dist/{Category-DxnZgdqT.js → Category-0HKQ6ldE.js} +45 -45
  6. package/dist/{CookingGuide-BvrEDZjX.js → CookingGuide-CLSNhSt1.js} +93 -95
  7. package/dist/{Group-XrOkSkL4.js → Group-BlFhf1_m.js} +1 -1
  8. package/dist/{Group-BKugSEvU.js → Group-C4euEgz-.js} +3 -3
  9. package/dist/{Group.vue_vue_type_script_setup_true_lang-CsjZT4is.js → Group.vue_vue_type_script_setup_true_lang-CD4gD5nw.js} +52 -53
  10. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BAAUu2N7.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Svv8NdrZ.js} +22 -22
  11. package/dist/{Ingredient-CR010-Wn.js → Ingredient-DHWMEjpb.js} +73 -74
  12. package/dist/{LinkProductBlock.vue_vue_type_script_setup_true_lang-Cw2a6y44.js → LinkProductBlock.vue_vue_type_script_setup_true_lang-SFWnsg3M.js} +17 -17
  13. package/dist/{LinkProductSideSheet-BJgTSf97.js → LinkProductSideSheet-cTthpmx8.js} +15 -17
  14. package/dist/{PrintRoute-CbT9CW-s.js → PrintRoute-BJyi9fAt.js} +31 -33
  15. package/dist/{Product-DlBGSq0Y.js → Product-5BmrhVQJ.js} +1 -1
  16. package/dist/{Product.vue_vue_type_script_setup_true_lang-CuGR-FeR.js → Product.vue_vue_type_script_setup_true_lang-Bd62eZML.js} +138 -139
  17. package/dist/{Products-D_EaTUi-.js → Products-5dx-OYRX.js} +33 -35
  18. package/dist/{Publish-De2G03XF.js → Publish-CEczqAjh.js} +60 -62
  19. package/dist/{Recipe-BjMKUzts.js → Recipe-0jiRdyOO.js} +63 -65
  20. package/dist/{Scheduler-jEjCsFOW.js → Scheduler-WQdZ3010.js} +11 -11
  21. package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-BNscy-KY.js → SchedulerSelector.vue_vue_type_script_setup_true_lang--DbP9ZPR.js} +1 -1
  22. package/dist/{ServingSequence-li7PbgF6.js → ServingSequence-DZipoinw.js} +41 -41
  23. package/dist/{Setting-7MjGGH52.js → Setting-CsBM08YH.js} +1 -1
  24. package/dist/{Setting.vue_vue_type_script_setup_true_lang-DZKrbU7T.js → Setting.vue_vue_type_script_setup_true_lang-KLF23lPI.js} +24 -25
  25. package/dist/{Takeaway-CvK3lMO3.js → Takeaway-CHiIoHB9.js} +15 -15
  26. package/dist/{Takeaway-Di4eIYlu.js → Takeaway-DP8v0Lom.js} +1 -1
  27. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-8H-AJwX6.js → Takeaway.vue_vue_type_script_setup_true_lang-B-N5UDUD.js} +53 -54
  28. package/dist/{TaxSetting-SCYNH1Bo.js → TaxSetting-B-uBG9N1.js} +6 -6
  29. package/dist/{Unit-BgQ8KhW4.js → Unit-ejJANVzU.js} +2 -2
  30. package/dist/{Variant-6qLsXUoY.js → Variant-CdVPgOSP.js} +21 -21
  31. package/dist/{_id_-BzdMJjOL.js → _id_-DKsmwYyZ.js} +9 -9
  32. package/dist/{app-Bx3R7x6f.js → app-BSiV3fDH.js} +21 -21
  33. package/dist/{app-CAS9hL_4.js → app-CrFAEpTu.js} +1 -1
  34. package/dist/app.js +1 -1
  35. package/dist/assets/{linked-status-DSFQYPbq.js → linked-status-BOwu694W.js} +3 -3
  36. package/dist/assets/{validate-menu-DMWh7uCB.js → validate-menu-D66k-4sM.js} +3 -3
  37. package/dist/{catalog-Vme2ZxIj.js → catalog-C6KhlMjs.js} +1885 -1889
  38. package/dist/{catalog-BUz_og5T.js → catalog-eqc51JtU.js} +1 -1
  39. package/dist/{category-Crv3ldSC.js → category-B17kChJz.js} +13 -15
  40. package/dist/currency-C7T18YFI.js +7 -0
  41. package/dist/{index-D03vJatG.js → index-BYg5aJOD.js} +18 -18
  42. package/dist/{index-gvyi5tec.js → index-MzFFRQ3x.js} +55 -57
  43. package/dist/{item-BH7V9jy4.js → item-ClhHhBl-.js} +329 -331
  44. package/dist/{lodash-BLyLEFgy.js → lodash-DGxcA_8K.js} +1 -1
  45. package/dist/{menu-ByqxqhOW.js → menu-CU6Z92iR.js} +9 -11
  46. package/dist/menu-CmQ0TifR.js +94177 -0
  47. package/dist/{remy-Ci5gLESj.js → remy-BXjIO2Bu.js} +2 -2
  48. package/dist/{scheduler-ClpKGo9t.js → scheduler-kPnr4i9S.js} +36 -38
  49. package/dist/{takeaway-BG7pKphR.js → takeaway-hF7lFjHA.js} +23 -25
  50. package/dist/{toExcel-ByRoCUgs.js → toExcel-BEibiNil.js} +2 -2
  51. package/dist/{unit-BHcuGdxV.js → unit-Cx8dbDLU.js} +55 -56
  52. package/package.json +2 -2
  53. package/dist/currency-BPHwez-E.js +0 -7
  54. package/dist/menu-CyXAqZeR.js +0 -68580
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, ref, watchEffect, computed, watch, openBlock, createElementBlock, normalizeStyle, onBeforeUnmount, createBlock, unref, onMounted, resolveComponent, withDirectives, createElementVNode, createVNode, vShow, Fragment, createCommentVNode, normalizeClass } from "vue";
2
2
  import { FeedMeAuth, useCoreStore } from "@feedmepos/mf-common";
3
- import { c as commonjsGlobal, g as getDefaultExportFromCjs, r as registerVersion, L as Logger, a as getExperimentalSetting, i as isMobileCordova, b as isReactNative, _ as _isFirebaseServerApp, d as _registerComponent, C as Component, e as _getProvider, f as getDefaultEmulatorHost, h as getApp, j as isBrowserExtension, S as SDK_VERSION, k as getModularInstance, E as ErrorFactory, l as createSubscribe, m as deepEqual, n as LogLevel, o as getUA, F as FirebaseError, p as base64Decode, q as isIE, s as querystring, t as isEmpty, u as getApps, v as initializeApp, w as getStorage, x as useMenuStore, y as coreDart, z as menu } from "./menu-CyXAqZeR.js";
4
- import { R as Remy, i as init } from "./remy-Ci5gLESj.js";
3
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs, r as registerVersion, L as Logger, a as getExperimentalSetting, i as isMobileCordova, b as isReactNative, _ as _isFirebaseServerApp, d as _registerComponent, C as Component, e as _getProvider, f as getDefaultEmulatorHost, h as getApp, j as isBrowserExtension, S as SDK_VERSION, k as getModularInstance, E as ErrorFactory, l as createSubscribe, m as deepEqual, n as LogLevel, o as getUA, F as FirebaseError, p as base64Decode, q as isIE, s as querystring, t as isEmpty, u as getApps, v as initializeApp, w as getStorage, x as useMenuStore, y as coreDart, z as menu } from "./menu-CmQ0TifR.js";
4
+ import { R as Remy, i as init } from "./remy-BXjIO2Bu.js";
5
5
  import { FmButtonColorThemeVariant, FmButtonVariant } from "@feedmepos/ui-library";
6
6
  import { _ as _export_sfc$1 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- import { u as useAppStore } from "./app-CAS9hL_4.js";
7
+ import { u as useAppStore } from "./app-CrFAEpTu.js";
8
8
  const v = "4.8.0", meta = {
9
9
  g: "LottieFiles AE ",
10
10
  a: "",
@@ -1,8 +1,8 @@
1
- import { defineComponent as K, computed as i, h as u, ref as U, resolveComponent as g, openBlock as d, createElementBlock as p, createVNode as f, withCtx as h, createElementVNode as V, createBlock as j, unref as n, createCommentVNode as C, toDisplayString as A, isRef as D, Fragment as G, renderList as H } from "vue";
2
- import { x as M, a8 as O } from "./menu-CyXAqZeR.js";
1
+ import { defineComponent as K, computed as i, h as u, ref as U, resolveComponent as b, openBlock as d, createElementBlock as p, createVNode as f, withCtx as g, createElementVNode as V, createBlock as j, unref as n, createCommentVNode as C, toDisplayString as A, isRef as D, Fragment as G, renderList as H } from "vue";
2
+ import { x as M, ab as O } from "./menu-CmQ0TifR.js";
3
3
  import { u as $ } from "./search-CcGJKqRo.js";
4
- import { components as I, FmButtonVariant as B, FmButtonColorThemeVariant as b } from "@feedmepos/ui-library";
5
- import { L as q } from "./LinkProductSideSheet-BJgTSf97.js";
4
+ import { components as I, FmButtonVariant as B, FmButtonColorThemeVariant as h } from "@feedmepos/ui-library";
5
+ import { L as q } from "./LinkProductSideSheet-cTthpmx8.js";
6
6
  import { _ as J } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
7
7
  import { useI18n as Q } from "@feedmepos/mf-common";
8
8
  const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
@@ -78,7 +78,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
78
78
  u(I.FmButton, {
79
79
  prependIcon: "delete",
80
80
  variant: B.Tertiary,
81
- textColor: b.NeutralGray400,
81
+ textColor: h.NeutralGray400,
82
82
  onClick: () => {
83
83
  var o;
84
84
  if (a > 0) {
@@ -94,10 +94,10 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
94
94
  ]
95
95
  ), S = U({}), L = (t) => t.variant, T = i(() => k.value.reduce((t, e) => t + e.items.length, 0));
96
96
  return (t, e) => {
97
- const r = g("fm-button"), a = g("fm-search"), l = g("fm-table");
97
+ const r = b("fm-button"), a = b("fm-search"), l = b("fm-table");
98
98
  return d(), p("div", W, [
99
99
  f(J, { title: t.title }, {
100
- "append-title": h(() => [
100
+ "append-title": g(() => [
101
101
  V("div", null, [
102
102
  t.editable ? (d(), j(q, {
103
103
  key: 0,
@@ -108,10 +108,10 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
108
108
  title: n(c)("menu.apply_product.link.title"),
109
109
  onSubmit: e[0] || (e[0] = (o) => _("update:overrides", o))
110
110
  }, {
111
- default: h(({ trigger: o }) => [
111
+ default: g(({ trigger: o }) => [
112
112
  f(r, {
113
- "text-color": n(b).ColorPrimary,
114
- "border-color": n(b).ColorPrimary,
113
+ "text-color": n(h).ColorPrimary,
114
+ "border-color": n(h).ColorPrimary,
115
115
  variant: n(B).Secondary,
116
116
  label: n(c)("menu.common.actions.link_product"),
117
117
  "prepend-icon": "link",
@@ -122,7 +122,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
122
122
  }, 8, ["categorized-items", "initial-value", "select-variant", "show-variant", "title"])) : C("", !0)
123
123
  ])
124
124
  ]),
125
- default: h(() => [
125
+ default: g(() => [
126
126
  V("div", X, [
127
127
  t.editable ? (d(), p("p", Y, A(n(c)("menu.common.labels.product_count", { count: T.value })), 1)) : C("", !0),
128
128
  f(a, {
@@ -1,10 +1,8 @@
1
1
  import { defineComponent as T, ref as y, computed as k, resolveComponent as m, openBlock as p, createBlock as w, unref as G, withCtx as f, createElementVNode as s, createVNode as u, toDisplayString as g, createElementBlock as b, Fragment as F, renderList as B } from "vue";
2
- import { D as V } from "./menu-CyXAqZeR.js";
3
- import "@feedmepos/core";
2
+ import { H as V } from "./menu-CmQ0TifR.js";
4
3
  import "@feedmepos/mf-common";
5
- import "@feedmepos/core/entity";
6
- import { u as H, l as J } from "./lodash-BLyLEFgy.js";
7
- const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-full" }, R = { class: "flex items-center gap-24 mb-16" }, W = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, X = { class: "flex-1" }, Y = { class: "grow overflow-y-auto py-16 space-y-24" }, Z = { class: "flex items-center" }, ee = { class: "ml-8 fm-card__title grow overflow-hidden text-nowrap text-ellipsis" }, te = { class: "ml-16" }, le = { class: "flex gap-8 items-center justify-start" }, de = /* @__PURE__ */ T({
4
+ import { u as H, l as J } from "./lodash-DGxcA_8K.js";
5
+ const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-full" }, R = { class: "flex items-center gap-24 mb-16" }, W = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, X = { class: "flex-1" }, Y = { class: "grow overflow-y-auto py-16 space-y-24" }, Z = { class: "flex items-center" }, ee = { class: "ml-8 fm-card__title grow overflow-hidden text-nowrap text-ellipsis" }, te = { class: "ml-16" }, le = { class: "flex gap-8 items-center justify-start" }, re = /* @__PURE__ */ T({
8
6
  __name: "ApplyProducts",
9
7
  props: {
10
8
  title: {
@@ -24,17 +22,17 @@ const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-fu
24
22
  setup(I, { expose: L, emit: O }) {
25
23
  const x = I;
26
24
  L({
27
- show: D,
25
+ show: j,
28
26
  hide: h
29
27
  });
30
28
  const U = O, v = y(!1), _ = y(""), o = y({}), S = y({});
31
- function D(a) {
29
+ function j(a) {
32
30
  S.value = V(a), o.value = V(a), v.value = !0;
33
31
  }
34
32
  function h() {
35
33
  _.value = "", v.value = !1;
36
34
  }
37
- const j = k(() => x.options.map((a) => {
35
+ const A = k(() => x.options.map((a) => {
38
36
  const e = a.items.reduce((l, t) => {
39
37
  var r, i, c;
40
38
  if (!x.canSelectVariant || !((r = t.variant) != null && r.variantGroupIds.length))
@@ -61,7 +59,7 @@ const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-fu
61
59
  totalSelected: e.filter((l) => l.selected).length
62
60
  };
63
61
  }));
64
- function A() {
62
+ function D() {
65
63
  U("onComplete", o.value), h();
66
64
  }
67
65
  function E(a, e, l) {
@@ -79,7 +77,7 @@ const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-fu
79
77
  }
80
78
  const K = k(() => {
81
79
  const a = _.value.toLowerCase();
82
- return j.value.map((e) => ({
80
+ return A.value.map((e) => ({
83
81
  ...e,
84
82
  filteredItems: a ? e.items.filter((l) => l.name.toLowerCase().includes(a)) : e.items
85
83
  }));
@@ -115,7 +113,7 @@ const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-fu
115
113
  label: "Confirm",
116
114
  size: "lg",
117
115
  variant: "primary",
118
- onClick: e[1] || (e[1] = () => A())
116
+ onClick: e[1] || (e[1] = () => D())
119
117
  }),
120
118
  u(l, {
121
119
  label: "Cancel",
@@ -191,5 +189,5 @@ const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-fu
191
189
  }
192
190
  });
193
191
  export {
194
- de as _
192
+ re as _
195
193
  };
@@ -1,30 +1,29 @@
1
- import { defineComponent as ue, ref as I, computed as $, resolveComponent as g, openBlock as m, createElementBlock as b, Fragment as V, renderSlot as ye, createVNode as u, unref as e, withCtx as p, createElementVNode as f, renderList as w, createBlock as F, createCommentVNode as z, createTextVNode as be, toDisplayString as k, h as J, withModifiers as Q, normalizeClass as ee } from "vue";
1
+ import { defineComponent as ue, ref as I, computed as $, resolveComponent as g, openBlock as m, createElementBlock as b, Fragment as V, renderSlot as ye, createVNode as u, unref as e, withCtx as p, createElementVNode as f, renderList as w, createBlock as F, createCommentVNode as z, createTextVNode as be, toDisplayString as k, h as q, withModifiers as Q, normalizeClass as ee } from "vue";
2
2
  import { useCoreStore as ce, useI18n as me } from "@feedmepos/mf-common";
3
- import { B as O, x as de, I as pe, A as fe, z as oe, D as ae, H as ge, Q as ne } from "./menu-CyXAqZeR.js";
4
- import { C as xe } from "./catalog-BUz_og5T.js";
5
- import { useRouter as ke } from "vue-router";
6
- import { _ as Ce, R as se } from "./app-Bx3R7x6f.js";
7
- import { _ as he } from "./PageLayout.vue_vue_type_script_setup_true_lang-BJCuL4EK.js";
8
- import { useSnackbar as _e, components as le, FmButtonColorThemeVariant as W, FmButtonVariant as G, useDialog as Oe, useBreakpoints as Fe } from "@feedmepos/ui-library";
9
- import { c as Me } from "./search-CcGJKqRo.js";
10
- import { C as R, a as L, _ as re } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BAAUu2N7.js";
11
- import { Country as De } from "@feedmepos/core";
3
+ import { G as O, x as de, K as pe, A as fe, z as oe, B as xe, H as ae, J as ge, T as ne } from "./menu-CmQ0TifR.js";
4
+ import { C as ke } from "./catalog-eqc51JtU.js";
5
+ import { useRouter as Ce } from "vue-router";
6
+ import { _ as he, R as se } from "./app-BSiV3fDH.js";
7
+ import { _ as Oe } from "./PageLayout.vue_vue_type_script_setup_true_lang-BJCuL4EK.js";
8
+ import { useSnackbar as _e, components as le, FmButtonColorThemeVariant as W, FmButtonVariant as G, useDialog as Fe, useBreakpoints as Me } from "@feedmepos/ui-library";
9
+ import { c as De } from "./search-CcGJKqRo.js";
10
+ import { C as R, a as L, _ as re } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Svv8NdrZ.js";
12
11
  import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
13
12
  import { _ as te } from "./FormItem.vue_vue_type_script_setup_true_lang-DKsxEK-8.js";
14
13
  import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
15
- const Ae = { class: "space-y-32" }, Ne = {
14
+ const Ae = { class: "space-y-32" }, Te = {
16
15
  key: 0,
17
16
  class: "pl-32 space-x-8"
18
- }, Te = { class: "pl-[60px] space-y-16" }, Ue = { class: "space-x-16 flex items-center" }, Ee = { class: "flex-1 space-y-4" }, Re = { class: "fm-typo-en-body-lg-400" }, Le = { class: "fm-typo-en-body-md-400" }, $e = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__ */ ue({
17
+ }, Ne = { class: "pl-[60px] space-y-16" }, Ue = { class: "space-x-16 flex items-center" }, Ee = { class: "flex-1 space-y-4" }, Re = { class: "fm-typo-en-body-lg-400" }, Le = { class: "fm-typo-en-body-md-400" }, $e = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__ */ ue({
19
18
  __name: "Form",
20
19
  setup(ve, { expose: X }) {
21
20
  const _ = I(!1), A = I(!1), K = (c, s) => {
22
- Me.isBoolean(c) ? _.value = c : _.value = !_.value, _.value && (r.value = R.fromCatalog(
21
+ De.isBoolean(c) ? _.value = c : _.value = !_.value, _.value && (r.value = R.fromCatalog(
23
22
  s ?? oe.generator.initMenuV4Catalog(),
24
- N.value
23
+ T.value
25
24
  ));
26
- }, N = $(() => D.version === O.F_MENU_VERSION.enum.v4), D = de(), P = ce(), d = pe(fe(_e())), r = I(
27
- R.fromCatalog(oe.generator.initMenuV4Catalog(), N.value)
25
+ }, T = $(() => D.version === O.F_MENU_VERSION.enum.v4), D = de(), P = ce(), d = pe(fe(_e())), r = I(
26
+ R.fromCatalog(oe.generator.initMenuV4Catalog(), T.value)
28
27
  ), Z = $(() => D.catalogs.map((c) => c.name)), S = $({
29
28
  get: () => r.value.taxSetting,
30
29
  set: (c) => {
@@ -34,7 +33,7 @@ const Ae = { class: "space-y-32" }, Ne = {
34
33
  var t, a;
35
34
  if (!P.currentCountry.value) return [];
36
35
  const c = ((t = r.value.taxSetting) == null ? void 0 : t.mode) === L.MANUAL ? ((a = r.value.taxSetting) == null ? void 0 : a.inclusive) ?? [] : [];
37
- return De.getCountry(P.currentCountry.value).taxSystems.map((o) => {
36
+ return xe.Country.getCountry(P.currentCountry.value).taxSystems.map((o) => {
38
37
  const v = c.find((x) => x.systemCode === o.code);
39
38
  return {
40
39
  inclusive: (v == null ? void 0 : v.inclusive) || !1,
@@ -56,7 +55,7 @@ const Ae = { class: "space-y-32" }, Ne = {
56
55
  const s = ae(r.value);
57
56
  s.markupOptions && (s.markupOptions.splice(c, 1), r.value = s);
58
57
  }
59
- async function q() {
58
+ async function J() {
60
59
  A.value = !0;
61
60
  const c = {
62
61
  ...r.value,
@@ -77,7 +76,7 @@ const Ae = { class: "space-y-32" }, Ne = {
77
76
  }
78
77
  const { t: i } = me();
79
78
  return X({ trigger: K }), (c, s) => {
80
- const t = g("fm-text-field"), a = g("fm-radio"), o = g("fm-radio-group"), v = g("fm-checkbox"), x = g("fm-switch"), T = g("fm-select"), M = g("fm-button"), U = g("fm-chip"), E = g("fm-card"), l = g("fm-side-sheet");
79
+ const t = g("fm-text-field"), a = g("fm-radio"), o = g("fm-radio-group"), v = g("fm-checkbox"), x = g("fm-switch"), N = g("fm-select"), M = g("fm-button"), U = g("fm-chip"), E = g("fm-card"), l = g("fm-side-sheet");
81
80
  return m(), b(V, null, [
82
81
  ye(c.$slots, "default", { trigger: K }),
83
82
  u(l, {
@@ -85,7 +84,7 @@ const Ae = { class: "space-y-32" }, Ne = {
85
84
  "onUpdate:modelValue": s[7] || (s[7] = (n) => _.value = n),
86
85
  "is-container": e(le).FmForm,
87
86
  "is-container-props": {
88
- onValidationSuccess: q,
87
+ onValidationSuccess: J,
89
88
  blameFormChildOnValidationFailed: !0
90
89
  },
91
90
  "max-width": 560,
@@ -151,7 +150,7 @@ const Ae = { class: "space-y-32" }, Ne = {
151
150
  ]),
152
151
  _: 1
153
152
  }, 8, ["model-value"]),
154
- ((h = r.value.taxSetting) == null ? void 0 : h.mode) === e(L).MANUAL ? (m(), b("div", Ne, [
153
+ ((h = r.value.taxSetting) == null ? void 0 : h.mode) === e(L).MANUAL ? (m(), b("div", Te, [
155
154
  (m(!0), b(V, null, w(C.value, (y) => (m(), F(v, {
156
155
  key: y.systemCode,
157
156
  "model-value": y.inclusive,
@@ -172,7 +171,7 @@ const Ae = { class: "space-y-32" }, Ne = {
172
171
  ]),
173
172
  _: 1
174
173
  }, 8, ["title"]),
175
- N.value ? (m(), F(te, {
174
+ T.value ? (m(), F(te, {
176
175
  key: 0,
177
176
  label: e(i)("menu.catalog.form.link.title")
178
177
  }, {
@@ -184,7 +183,7 @@ const Ae = { class: "space-y-32" }, Ne = {
184
183
  sublabel: e(i)("menu.catalog.form.link.auto_link.sublabel"),
185
184
  "onUpdate:modelValue": s[2] || (s[2] = (n) => r.value.orderFrom = n ? e(O.F_ORDER_FROM).enum.ALL : e(O.F_ORDER_FROM).enum.NONE)
186
185
  }, null, 8, ["model-value", "label", "sublabel"]),
187
- r.value.orderFrom !== e(O.F_ORDER_FROM).enum.NONE ? (m(), F(T, {
186
+ r.value.orderFrom !== e(O.F_ORDER_FROM).enum.NONE ? (m(), F(N, {
188
187
  key: 0,
189
188
  class: "ml-[60px]",
190
189
  items: [
@@ -203,7 +202,7 @@ const Ae = { class: "space-y-32" }, Ne = {
203
202
  ]),
204
203
  _: 1
205
204
  }, 8, ["label"])) : z("", !0),
206
- N.value ? (m(), F(te, {
205
+ T.value ? (m(), F(te, {
207
206
  key: 1,
208
207
  label: e(i)("menu.catalog.form.markup.title")
209
208
  }, {
@@ -215,7 +214,7 @@ const Ae = { class: "space-y-32" }, Ne = {
215
214
  sublabel: e(i)("menu.catalog.form.markup.auto.sublabel"),
216
215
  "onUpdate:modelValue": s[4] || (s[4] = (n) => r.value.markupOptions = n ? [] : null)
217
216
  }, null, 8, ["model-value", "label", "sublabel"]),
218
- f("div", Te, [
217
+ f("div", Ne, [
219
218
  u(re, {
220
219
  categories: e(D).categories,
221
220
  items: e(D).items,
@@ -303,9 +302,9 @@ const Ae = { class: "space-y-32" }, Ne = {
303
302
  class: "fm-typo-en-title-md-600"
304
303
  }, He = {
305
304
  class: "space-y-24"
306
- }, qe = {
307
- class: "space-y-8 flex-1"
308
305
  }, Je = {
306
+ class: "space-y-8 flex-1"
307
+ }, qe = {
309
308
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
310
309
  }, Qe = {
311
310
  class: "fm-typo-cn-body-lg-600"
@@ -313,14 +312,14 @@ const Ae = { class: "space-y-32" }, Ne = {
313
312
  class: "space-y-8 flex-1"
314
313
  }, Xe = {
315
314
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
316
- }, Ze = "main", fa = /* @__PURE__ */ ue({
315
+ }, Ze = "main", pa = /* @__PURE__ */ ue({
317
316
  __name: "Catalog",
318
317
  setup(ve) {
319
- const X = ce(), _ = de(), A = _e(), K = fe(A), N = Oe(), D = pe(K), P = ke(), {
318
+ const X = ce(), _ = de(), A = _e(), K = fe(A), T = Fe(), D = pe(K), P = Ce(), {
320
319
  t: d
321
320
  } = me();
322
321
  function r(t, a) {
323
- var T, M, U, E;
322
+ var N, M, U, E;
324
323
  const o = X.restaurants.value.find(({
325
324
  _id: l
326
325
  }) => l === a._id), v = [...a.linkedDeliveryCatalogs.map((l) => ({
@@ -328,7 +327,7 @@ const Ae = { class: "space-y-32" }, Ne = {
328
327
  selector: l.catalog
329
328
  })), {
330
329
  label: "Delivery (FoodPanda integration)",
331
- selector: (T = o == null ? void 0 : o.foodpandaDelivery) == null ? void 0 : T.catalogId
330
+ selector: (N = o == null ? void 0 : o.foodpandaDelivery) == null ? void 0 : N.catalogId
332
331
  }, {
333
332
  label: "Delivery (GrabFood integration)",
334
333
  selector: (M = o == null ? void 0 : o.grabfoodDelivery) == null ? void 0 : M.catalogId
@@ -373,7 +372,7 @@ const Ae = { class: "space-y-32" }, Ne = {
373
372
  defaultOrderFrom: a.defaultOrderFrom
374
373
  }))].map((a) => {
375
374
  var x;
376
- const o = Z(((x = a.doc) == null ? void 0 : x._id) || null), v = a.doc ? xe.getSellingItem(a.doc, _.state.menu) : _.state.menu.modules.item;
375
+ const o = Z(((x = a.doc) == null ? void 0 : x._id) || null), v = a.doc ? ke.getSellingItem(a.doc, _.state.menu) : _.state.menu.modules.item;
377
376
  return {
378
377
  ...a,
379
378
  taxMode: a.taxes ? "Manual" : "Automatic",
@@ -399,14 +398,14 @@ const Ae = { class: "space-y-32" }, Ne = {
399
398
  name: `${t.name} copy`
400
399
  });
401
400
  }
402
- async function q(t) {
401
+ async function J(t) {
403
402
  const a = _.state.restaurants.filter((o) => [...o.additionalCatalogs, o.inHouseDelivery, ...o.linkedDeliveryCatalogs.map((v) => v.catalog), o.pickupCatalog, o.takeawayCatalog, o.catalogId].includes(t.id)).map((o) => o.name);
404
403
  a.length > 0 ? A.open({
405
404
  type: "error",
406
405
  message: d("menu.catalog.dialogs.remove.error", {
407
406
  restaurants: a
408
407
  })
409
- }) : N.open({
408
+ }) : T.open({
410
409
  title: d("menu.catalog.dialogs.remove.title"),
411
410
  message: d("menu.catalog.dialogs.remove.message", {
412
411
  name: t.name
@@ -444,7 +443,7 @@ const Ae = { class: "space-y-32" }, Ne = {
444
443
  enableSorting: !1,
445
444
  cell: (t) => {
446
445
  const a = t.row.original;
447
- return J("div", {
446
+ return q("div", {
448
447
  class: "flex justify-between"
449
448
  }, [a.autoLink]);
450
449
  }
@@ -458,9 +457,9 @@ const Ae = { class: "space-y-32" }, Ne = {
458
457
  header: "",
459
458
  cell: (t) => {
460
459
  const a = t.row.original;
461
- return J("div", {
460
+ return q("div", {
462
461
  class: "flex justify-end"
463
- }, [J(le.FmButton, {
462
+ }, [q(le.FmButton, {
464
463
  icon: "file_copy",
465
464
  disabled: !a.id,
466
465
  variant: "tertiary",
@@ -468,20 +467,20 @@ const Ae = { class: "space-y-32" }, Ne = {
468
467
  onClick: Q(async () => {
469
468
  await H(a);
470
469
  }, ["stop", "prevent"])
471
- }), J(le.FmButton, {
470
+ }), q(le.FmButton, {
472
471
  icon: "delete",
473
472
  disabled: !a.id,
474
473
  variant: "tertiary",
475
474
  textColor: "neutral-gray-400",
476
475
  onClick: Q(async () => {
477
- await q(a);
476
+ await J(a);
478
477
  }, ["stop", "prevent"])
479
478
  })]);
480
479
  }
481
- }]), c = Fe(), s = $(() => c.breakpoints.value.xs);
480
+ }]), c = Me(), s = $(() => c.breakpoints.value.xs);
482
481
  return (t, a) => {
483
- const o = g("fm-button"), v = g("FmTable"), x = g("FmButton"), T = g("fm-card-header"), M = g("fm-card-section"), U = g("fm-card"), E = g("fm-side-sheet");
484
- return m(), F(he, {
482
+ const o = g("fm-button"), v = g("FmTable"), x = g("FmButton"), N = g("fm-card-header"), M = g("fm-card-section"), U = g("fm-card"), E = g("fm-side-sheet");
483
+ return m(), F(Oe, {
485
484
  heading: e(d)("menu.catalog.title")
486
485
  }, {
487
486
  "append-heading": p(() => [C.value.length > 0 ? (m(), F(e(ie), {
@@ -535,8 +534,8 @@ const Ae = { class: "space-y-32" }, Ne = {
535
534
  "text-color": e(W).NeutralGray400,
536
535
  variant: e(G).Tertiary,
537
536
  "prepend-icon": "delete",
538
- onClick: Q((n) => q(l), ["stop"])
539
- }, null, 8, ["text-color", "variant", "onClick"])])], 8, Pe))), 128))])) : (m(), F(Ce, {
537
+ onClick: Q((n) => J(l), ["stop"])
538
+ }, null, 8, ["text-color", "variant", "onClick"])])], 8, Pe))), 128))])) : (m(), F(he, {
540
539
  key: 0
541
540
  }, {
542
541
  default: p(() => [u(v, {
@@ -560,7 +559,7 @@ const Ae = { class: "space-y-32" }, Ne = {
560
559
  class: "relative",
561
560
  variant: "outlined"
562
561
  }, {
563
- default: p(() => [u(T, {
562
+ default: p(() => [u(N, {
564
563
  subtitle: e(d)("menu.catalog.usage.tax_calculation") + `: ${l.taxMode} (${l.totalProducts} ${e(d)("menu.catalog.usage.products", {
565
564
  count: l.totalProducts
566
565
  })})`,
@@ -571,7 +570,7 @@ const Ae = { class: "space-y-32" }, Ne = {
571
570
  default: p(() => [(m(!0), b(V, null, w(l.restaurants, (h, y) => (m(), b("div", {
572
571
  key: y,
573
572
  class: ee(["flex xs:flex-col", "space-x-24 xs:space-x-0", "xs:space-y-24", "pt-12 first:pt-0"])
574
- }, [f("div", qe, [f("p", Je, k(e(d)("menu.catalog.usage.restaurant")), 1), f("p", Qe, k(h.name), 1)]), f("div", We, [f("p", Xe, k(e(d)("menu.catalog.usage.usage")), 1), (m(!0), b(V, null, w(h.usage, (B) => (m(), b("p", {
573
+ }, [f("div", Je, [f("p", qe, k(e(d)("menu.catalog.usage.restaurant")), 1), f("p", Qe, k(h.name), 1)]), f("div", We, [f("p", Xe, k(e(d)("menu.catalog.usage.usage")), 1), (m(!0), b(V, null, w(h.usage, (B) => (m(), b("p", {
575
574
  key: B,
576
575
  class: "fm-typo-cn-body-lg-600"
577
576
  }, k(B), 1))), 128))])]))), 128))]),
@@ -587,5 +586,5 @@ const Ae = { class: "space-y-32" }, Ne = {
587
586
  }
588
587
  });
589
588
  export {
590
- fa as default
589
+ pa as default
591
590
  };