@feedmepos/mf-menu 0.19.0-beta.9 → 0.19.2

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 (51) hide show
  1. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Xba9MwkY.js → ApplyProduct.vue_vue_type_script_setup_true_lang-W3ALTrsj.js} +11 -10
  2. package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-C4235zyV.js → ApplyProducts.vue_vue_type_script_setup_true_lang-TE9kAVkO.js} +2 -2
  3. package/dist/{Catalog-0ckjo6Cm.js → Catalog-BL63lK7R.js} +8 -8
  4. package/dist/{Category-B5TbJTp7.js → Category-sJPghhZ_.js} +59 -58
  5. package/dist/{CookingGuide-BJcMPrI5.js → CookingGuide-DAE7bgcU.js} +4 -4
  6. package/dist/{Group-BdY6d9w2.js → Group-BxNeMr8F.js} +13 -12
  7. package/dist/{Group-RL9hvzCS.js → Group-DDxRUmm4.js} +1 -1
  8. package/dist/{Group.vue_vue_type_script_setup_true_lang-DKj2wxnf.js → Group.vue_vue_type_script_setup_true_lang-D_YJ5tL_.js} +31 -30
  9. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BADCN2fe.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B9CLSWLu.js} +20 -19
  10. package/dist/{Ingredient-DABna2iN.js → Ingredient-ClwK8EGA.js} +23 -15
  11. package/dist/{LinkProductSideSheet-KUKMnlt9.js → LinkProductSideSheet-Dr54Si8e.js} +19 -19
  12. package/dist/{PrintRoute-BGpV9629.js → PrintRoute-N_fICtn8.js} +9 -9
  13. package/dist/{Product-Cjoo-ZZ8.js → Product-BDwny0B3.js} +1 -1
  14. package/dist/{Product.vue_vue_type_script_setup_true_lang-Vg7fo3g6.js → Product.vue_vue_type_script_setup_true_lang-DCypQ1N4.js} +46 -46
  15. package/dist/{Products-BJM8ZBcg.js → Products-B9jzE3MQ.js} +43 -43
  16. package/dist/{Publish-BZN3JO3j.js → Publish-D8xPK5PZ.js} +29 -29
  17. package/dist/{Recipe-DeMEAf7r.js → Recipe-CTrKvEiB.js} +40 -34
  18. package/dist/{Scheduler-BKUCHyac.js → Scheduler-Bw4Wjlnx.js} +35 -34
  19. package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-Bn3WzWmr.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-cU85Ebal.js} +12 -11
  20. package/dist/ServingSequence-CjrJ1oDe.js +4 -0
  21. package/dist/{Setting-C84nHhbB.js → Setting-lrWK1aCr.js} +1 -1
  22. package/dist/{Setting.vue_vue_type_script_setup_true_lang-BVUe_2pD.js → Setting.vue_vue_type_script_setup_true_lang-BIKArP-6.js} +11 -11
  23. package/dist/{Takeaway-Brt9qfX4.js → Takeaway-BliapyfQ.js} +14 -14
  24. package/dist/{Takeaway-DDJp9sI2.js → Takeaway-C6ESjI6a.js} +1 -1
  25. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BuxnExYT.js → Takeaway.vue_vue_type_script_setup_true_lang-_uYXHAgk.js} +17 -17
  26. package/dist/TaxSetting-B_OVaxnK.js +26 -0
  27. package/dist/{Unit-E9NLW5VO.js → Unit-BpPwsq-R.js} +25 -25
  28. package/dist/{Variant-CZkvJh72.js → Variant-DLnFjrKX.js} +14 -13
  29. package/dist/{_id_-DfPGsfBR.js → _id_-CpB9sDXs.js} +21 -20
  30. package/dist/{app-Cq-DFOLO.js → app-DnjfTTyH.js} +25203 -27930
  31. package/dist/app.js +4 -4
  32. package/dist/assets/{linked-status-CYjwveRv.js → linked-status-DS5Y3Qmg.js} +3 -3
  33. package/dist/assets/{validate-menu-ZRJOzM1B.js → validate-menu-B5z7rBbO.js} +3 -3
  34. package/dist/{catalog-DYX_c6bm.js → catalog-B3zKEMGs.js} +16 -16
  35. package/dist/{catalog-DjrR8z64.js → catalog-DEU4EW82.js} +1 -1
  36. package/dist/{category-LskjLp5B.js → category-CBXUkjZW.js} +7 -7
  37. package/dist/{currency-okf6Zpjf.js → currency-CyIMAuaF.js} +1 -1
  38. package/dist/{index-CYb95BT2.js → index-C0KmJcH7.js} +5 -4
  39. package/dist/{index-Db0m_jtN.js → index-F3JoSMjg.js} +19 -18
  40. package/dist/{item-BBueZjbb.js → item-BVtbX-DR.js} +369 -361
  41. package/dist/{lodash-tlbvqPuY.js → lodash-Dum3fDW4.js} +1 -1
  42. package/dist/{menu-BHHnot9G.js → menu-Bxe-VCgS.js} +1 -1
  43. package/dist/{object-CpqdRN0U.js → object-BNFM25tr.js} +4 -4
  44. package/dist/{scheduler-BrghaQlc.js → scheduler-DPTNLoCR.js} +5 -5
  45. package/dist/style.css +1 -1
  46. package/dist/{takeaway-IUqhoO1E.js → takeaway-GxwSTX8A.js} +18 -13
  47. package/dist/{toExcel-dpwLFARW.js → toExcel-B35ESJnK.js} +2 -2
  48. package/dist/{unit-CNRH1cAq.js → unit-zvgjgaPU.js} +37 -18
  49. package/package.json +2 -3
  50. package/dist/ServingSequence-DNESVxF_.js +0 -4
  51. package/dist/TaxSetting-Cwuof9KZ.js +0 -25
@@ -1,11 +1,11 @@
1
- import { defineComponent as T, computed as V, ref as I, resolveComponent as C, openBlock as h, createBlock as L, unref as c, withCtx as R, createElementVNode as o, toDisplayString as F, createVNode as s, createElementBlock as $, Fragment as P, renderList as Y, onMounted as oe, withModifiers as O, createCommentVNode as ne, h as K } from "vue";
2
- import { n as q, d as W, D as J, c as se, e as ie, a as Q, x as ue, u as ce, b as re, j as de, k as me } from "./app-Cq-DFOLO.js";
1
+ import { defineComponent as T, computed as V, ref as A, resolveComponent as C, openBlock as h, createBlock as L, unref as c, withCtx as R, createElementVNode as o, toDisplayString as F, createVNode as s, createElementBlock as $, Fragment as P, renderList as Y, onMounted as oe, withModifiers as O, createCommentVNode as ne, h as K } from "vue";
2
+ import { d as W, D as J, c as se, e as ie, a as Q, w as ue, u as ce, b as re, j as de, k as me } from "./app-DnjfTTyH.js";
3
3
  import { useSnackbar as X, useDialogChild as pe, useDialog as ge, components as G } from "@feedmepos/ui-library";
4
- import { u as ve, l as be } from "./lodash-tlbvqPuY.js";
5
- import { _ as fe } from "./TextChip.vue_vue_type_script_setup_true_lang-CNp85hoQ.js";
6
- import { _ as _e, w as he } from "./InfoBasic.vue_vue_type_script_setup_true_lang-DxQBDu16.js";
7
- import { useRouter as ye } from "vue-router";
8
- import { useCoreStore as Ce } from "@feedmepos/mf-common";
4
+ import { u as ve, l as be } from "./lodash-Dum3fDW4.js";
5
+ import { useI18n as q, useCoreStore as fe } from "@feedmepos/mf-common";
6
+ import { _ as _e } from "./TextChip.vue_vue_type_script_setup_true_lang-CNp85hoQ.js";
7
+ import { _ as he, w as ye } from "./InfoBasic.vue_vue_type_script_setup_true_lang-DxQBDu16.js";
8
+ import { useRouter as Ce } from "vue-router";
9
9
  const ke = { class: "fm-typo-en-title-md-600" }, we = { class: "mt-40" }, xe = { class: "fm-typo-en-title-sm-600" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary mt-4 mb-8" }, Fe = { class: "flex gap-8 items-center justify-start" }, Se = /* @__PURE__ */ T({
10
10
  __name: "UpdateCatalogDialog",
11
11
  props: {
@@ -49,7 +49,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, we = { class: "mt-40" }, xe = {
49
49
  label: v.name,
50
50
  value: v._id
51
51
  }))
52
- ]), t = I(y()), d = I(!1), f = I(void 0);
52
+ ]), t = A(y()), d = A(!1), f = A(void 0);
53
53
  function S(v) {
54
54
  f.value = v ? W(v) : y(), t.value = W(f.value), d.value = !0;
55
55
  }
@@ -66,7 +66,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, we = { class: "mt-40" }, xe = {
66
66
  x(), p("onComplete", t.value);
67
67
  }
68
68
  return (v, b) => {
69
- const A = C("FmSelect"), E = C("FmCheckbox"), M = C("FmButton"), D = C("FmSideSheet");
69
+ const I = C("FmSelect"), E = C("FmCheckbox"), M = C("FmButton"), D = C("FmSideSheet");
70
70
  return h(), L(D, {
71
71
  modelValue: d.value,
72
72
  "onUpdate:modelValue": b[5] || (b[5] = (u) => d.value = u),
@@ -93,21 +93,21 @@ const ke = { class: "fm-typo-en-title-md-600" }, we = { class: "mt-40" }, xe = {
93
93
  ])
94
94
  ]),
95
95
  default: R(() => [
96
- s(A, {
96
+ s(I, {
97
97
  modelValue: t.value.catalogId,
98
98
  "onUpdate:modelValue": b[0] || (b[0] = (u) => t.value.catalogId = u),
99
99
  items: _.value,
100
100
  class: "mb-24",
101
101
  label: c(i)("menu.publish.update_catalog_dialog.sections.default.label")
102
102
  }, null, 8, ["modelValue", "items", "label"]),
103
- s(A, {
103
+ s(I, {
104
104
  modelValue: t.value.takeawayCatalog,
105
105
  "onUpdate:modelValue": b[1] || (b[1] = (u) => t.value.takeawayCatalog = u),
106
106
  items: g.value,
107
107
  class: "mb-24",
108
108
  label: c(i)("menu.publish.update_catalog_dialog.sections.pos_takeaway.label")
109
109
  }, null, 8, ["modelValue", "items", "label"]),
110
- s(A, {
110
+ s(I, {
111
111
  modelValue: t.value.pickupCatalog,
112
112
  "onUpdate:modelValue": b[2] || (b[2] = (u) => t.value.pickupCatalog = u),
113
113
  items: g.value,
@@ -136,7 +136,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, we = { class: "mt-40" }, xe = {
136
136
  function Z(k) {
137
137
  return k ? J(k).format("DD/MM/YY HH:mm") : "-";
138
138
  }
139
- function Ae(k, w, l) {
139
+ function Ie(k, w, l) {
140
140
  const i = (n, p = !1) => {
141
141
  var y;
142
142
  return n === void 0 && !p ? "-" : ((y = l.find((_) => _.value === (n || null))) == null ? void 0 : y.label) || "-";
@@ -156,7 +156,7 @@ function Ae(k, w, l) {
156
156
  };
157
157
  });
158
158
  }
159
- const Ie = {
159
+ const Ae = {
160
160
  key: 0,
161
161
  class: "flex items-center justify-center"
162
162
  }, $e = {
@@ -168,7 +168,7 @@ const Ie = {
168
168
  restaurant: {}
169
169
  },
170
170
  setup(k) {
171
- const w = k, l = X(), { custom: i } = Q(l), n = I(!1), p = I(null);
171
+ const w = k, l = X(), { custom: i } = Q(l), n = A(!1), p = A(null);
172
172
  async function y() {
173
173
  await i(
174
174
  async () => {
@@ -191,14 +191,14 @@ const Ie = {
191
191
  var S;
192
192
  const d = w.restaurant.revertConfig;
193
193
  if (!d) return [];
194
- const f = Ae(
194
+ const f = Ie(
195
195
  [
196
196
  {
197
197
  ...d,
198
198
  catalogId: d.catalogId || null
199
199
  }
200
200
  ],
201
- Ce().restaurants.value,
201
+ fe().restaurants.value,
202
202
  _.value
203
203
  )[0];
204
204
  return [
@@ -218,12 +218,12 @@ const Ie = {
218
218
  });
219
219
  return oe(async () => y()), pe(), (d, f) => {
220
220
  const S = C("FmCircularProgress");
221
- return n.value ? (h(), $("div", Ie, [
221
+ return n.value ? (h(), $("div", Ae, [
222
222
  s(S, { size: "lg" })
223
223
  ])) : (h(), $("div", $e, [
224
224
  o("div", Me, F(c(g)("menu.revert.description", { name: w.restaurant.name })), 1),
225
225
  o("div", De, [
226
- (h(!0), $(P, null, Y(t.value, (x) => (h(), L(_e, {
226
+ (h(!0), $(P, null, Y(t.value, (x) => (h(), L(he, {
227
227
  key: x.label,
228
228
  name: x.label,
229
229
  value: x.value || "--"
@@ -263,17 +263,17 @@ const Ie = {
263
263
  }, ta = /* @__PURE__ */ T({
264
264
  __name: "Publish",
265
265
  setup(k) {
266
- const w = ye(), {
266
+ const w = Ce(), {
267
267
  t: l
268
268
  } = q(), i = (e) => t.state.menu.updatedAt === e.updatedAt, n = ({
269
269
  row: e
270
270
  }) => {
271
271
  const a = i(e);
272
- return s(fe, {
272
+ return s(_e, {
273
273
  label: l(a ? "menu.publish.table.status.latest" : "menu.publish.table.status.outdated"),
274
274
  variant: a ? "success" : "warning"
275
275
  }, null);
276
- }, p = I({}), y = [{
276
+ }, p = A({}), y = [{
277
277
  accessorKey: "name",
278
278
  header: () => l("menu.publish.table.columns.restaurant"),
279
279
  cell: (e) => e.getValue(),
@@ -318,7 +318,7 @@ const Ie = {
318
318
  const a = e.row.original;
319
319
  return t.state.menu.updatedAt, a.updatedAt, K("div", {
320
320
  class: "flex justify-end gap-8"
321
- }, [f && a.revertConfig ? he(K(G.FmButton, {
321
+ }, [f && a.revertConfig ? ye(K(G.FmButton, {
322
322
  prependIcon: "undo",
323
323
  variant: "secondary",
324
324
  onClick: O(async () => {
@@ -329,7 +329,7 @@ const Ie = {
329
329
  icon: "ios_share",
330
330
  variant: "secondary",
331
331
  onClick: O(async () => {
332
- const m = A(e.row.original);
332
+ const m = I(e.row.original);
333
333
  await D(m);
334
334
  }, ["stop", "prevent"])
335
335
  })]);
@@ -337,7 +337,7 @@ const Ie = {
337
337
  meta: {
338
338
  width: "150px"
339
339
  }
340
- }], _ = I(""), g = I(), t = ce(), d = ge(), f = V(() => t.version !== re.F_MENU_VERSION.enum.v3);
340
+ }], _ = A(""), g = A(), t = ce(), d = ge(), f = V(() => t.version !== re.F_MENU_VERSION.enum.v3);
341
341
  async function S(e) {
342
342
  e.revertConfig && d.open({
343
343
  title: "Revert menu",
@@ -373,7 +373,7 @@ const Ie = {
373
373
  var a;
374
374
  return e ? ((a = B.value.find((m) => m._id === e)) == null ? void 0 : a.name) ?? l("menu.publish.labels.catalog.invalid") : l("menu.publish.labels.catalog.main");
375
375
  }
376
- function A(e) {
376
+ function I(e) {
377
377
  return {
378
378
  restaurantId: e._id,
379
379
  catalogId: e.catalogId || void 0,
@@ -384,7 +384,7 @@ const Ie = {
384
384
  }
385
385
  function E(e) {
386
386
  var m;
387
- const a = A(e);
387
+ const a = I(e);
388
388
  (m = g.value) == null || m.show(a);
389
389
  }
390
390
  const M = Q(X());
@@ -421,7 +421,7 @@ const Ie = {
421
421
  else
422
422
  for (const a of e) {
423
423
  const m = u.value[a];
424
- await D(A(m));
424
+ await D(I(m));
425
425
  }
426
426
  }
427
427
  return (e, a) => {
@@ -487,7 +487,7 @@ const Ie = {
487
487
  disabled: v.value,
488
488
  icon: "ios_share",
489
489
  variant: "tertiary",
490
- onClick: O(() => D(A(r)), ["stop"])
490
+ onClick: O(() => D(I(r)), ["stop"])
491
491
  }, null, 8, ["disabled", "onClick"])])]),
492
492
  _: 2
493
493
  }, 1032, ["label", "onClick"]))), 128))]),
@@ -1,12 +1,12 @@
1
- import { defineComponent as j, computed as h, ref as w, reactive as Q, watch as W, resolveComponent as k, openBlock as g, createElementBlock as F, Fragment as E, renderSlot as X, createVNode as m, unref as e, withCtx as x, createElementVNode as c, toDisplayString as S, getCurrentInstance as Z, h as L, withModifiers as D, createBlock as O, renderList as ee, normalizeClass as z, createCommentVNode as ne } from "vue";
2
- import { n as I, i as K, a as $, d as te, m as P, e as Y, g as ae, b as T, h as U, u as G, l as oe, _ as le, k as ie, j as se, f as ce } from "./app-Cq-DFOLO.js";
3
- import { useSnackbar as A, components as q, useDialog as re, FmButtonVariant as H, useBreakpoints as ue } from "@feedmepos/ui-library";
4
- import "@feedmepos/mf-common";
1
+ import { defineComponent as j, computed as h, ref as w, reactive as Q, watch as W, resolveComponent as k, openBlock as g, createElementBlock as F, Fragment as E, renderSlot as X, createVNode as d, unref as e, withCtx as x, createElementVNode as c, toDisplayString as S, getCurrentInstance as Z, h as L, withModifiers as D, createBlock as O, renderList as ee, normalizeClass as z, createCommentVNode as ne } from "vue";
2
+ import { i as K, a as I, d as te, m as P, e as Y, g as ae, b as T, h as U, u as G, l as oe, _ as le, k as ie, j as se, f as ce } from "./app-DnjfTTyH.js";
3
+ import { useSnackbar as $, components as q, useDialog as re, FmButtonVariant as H, useBreakpoints as ue } from "@feedmepos/ui-library";
4
+ import { useI18n as A } from "@feedmepos/mf-common";
5
5
  import "vue-router";
6
- import { defineStore as de } from "pinia";
7
- import "./unit-CNRH1cAq.js";
8
- import { u as me, l as pe } from "./lodash-tlbvqPuY.js";
9
- import { _ as B, j as fe } from "./index-CYb95BT2.js";
6
+ import { defineStore as me } from "pinia";
7
+ import "./unit-zvgjgaPU.js";
8
+ import { u as de, l as pe } from "./lodash-Dum3fDW4.js";
9
+ import { _ as B, j as fe } from "./index-C0KmJcH7.js";
10
10
  const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ j({
11
11
  __name: "Form",
12
12
  props: {
@@ -14,11 +14,13 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
14
14
  invalidSkuAndRecipe: {}
15
15
  },
16
16
  setup(C, { expose: r }) {
17
- const { t: u } = I(), p = C, f = K($(A())), b = h(() => p.initialValue ? u("menu.recipe.update") : u("menu.recipe.add")), _ = h(() => p.initialValue ? u("menu.common.actions.update") : u("menu.common.actions.add")), v = w(!1), o = w(!1), V = (n) => {
17
+ const { t: u } = A(), p = C, f = K(I($())), b = h(() => p.initialValue ? u("menu.recipe.update") : u("menu.recipe.add")), _ = h(
18
+ () => p.initialValue ? u("menu.common.actions.update") : u("menu.common.actions.add")
19
+ ), v = w(!1), o = w(!1), V = (n) => {
18
20
  ae.isBoolean(n) ? o.value = n : o.value = !o.value;
19
21
  }, t = Q(
20
22
  p.initialValue ? te(p.initialValue) : P.generator.initRecipe()
21
- ), R = h(() => p.invalidSkuAndRecipe.skus), a = h(() => p.invalidSkuAndRecipe.recipes), y = me(
23
+ ), R = h(() => p.invalidSkuAndRecipe.skus), a = h(() => p.invalidSkuAndRecipe.recipes), y = de(
22
24
  () => !pe.isEqual(t, p.initialValue || P.generator.initRecipe()),
23
25
  () => {
24
26
  o.value = !1;
@@ -59,10 +61,10 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
59
61
  const N = k("FmTextField"), M = k("FmFormGroup"), s = k("fm-button"), J = k("fm-side-sheet");
60
62
  return g(), F(E, null, [
61
63
  X(n.$slots, "default", { trigger: V }),
62
- m(J, {
64
+ d(J, {
63
65
  id: "unit-form",
64
66
  modelValue: o.value,
65
- "onUpdate:modelValue": i[5] || (i[5] = (d) => o.value = d),
67
+ "onUpdate:modelValue": i[5] || (i[5] = (m) => o.value = m),
66
68
  "is-container": e(q).FmForm,
67
69
  "is-container-props": {
68
70
  onValidationSuccess: l,
@@ -77,14 +79,14 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
77
79
  ]),
78
80
  "side-sheet-footer": x(() => [
79
81
  c("div", ge, [
80
- m(s, {
82
+ d(s, {
81
83
  label: _.value,
82
84
  loading: v.value,
83
85
  size: "lg",
84
86
  type: "submit",
85
87
  variant: "primary"
86
88
  }, null, 8, ["label", "loading"]),
87
- m(s, {
89
+ d(s, {
88
90
  label: e(u)("menu.common.actions.cancel"),
89
91
  size: "lg",
90
92
  variant: "tertiary",
@@ -95,30 +97,34 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
95
97
  default: x(() => [
96
98
  c("div", ve, [
97
99
  c("div", ye, [
98
- m(N, {
100
+ d(N, {
99
101
  class: "flex-2",
100
102
  label: e(u)("menu.recipe.columns.name"),
101
103
  modelValue: t.name,
102
- "onUpdate:modelValue": i[0] || (i[0] = (d) => t.name = d),
104
+ "onUpdate:modelValue": i[0] || (i[0] = (m) => t.name = m),
103
105
  autofocus: "",
104
- rules: [(d) => !!d || e(u)("menu.common.validation.required", { field: e(u)("menu.recipe.columns.name").toLowerCase() })]
106
+ rules: [
107
+ (m) => !!m || e(u)("menu.common.validation.required", {
108
+ field: e(u)("menu.recipe.columns.name").toLowerCase()
109
+ })
110
+ ]
105
111
  }, null, 8, ["label", "modelValue", "rules"])
106
112
  ]),
107
- m(M, {
113
+ d(M, {
108
114
  modelValue: t.contains,
109
- "onUpdate:modelValue": i[3] || (i[3] = (d) => t.contains = d),
110
- rules: [(d) => d.length > 0 || e(u)("menu.recipe.validation.bind_required")]
115
+ "onUpdate:modelValue": i[3] || (i[3] = (m) => t.contains = m),
116
+ rules: [(m) => m.length > 0 || e(u)("menu.recipe.validation.bind_required")]
111
117
  }, {
112
118
  default: x(() => [
113
- m(B, {
119
+ d(B, {
114
120
  modelValue: t.contains,
115
- "onUpdate:modelValue": i[1] || (i[1] = (d) => t.contains = d),
121
+ "onUpdate:modelValue": i[1] || (i[1] = (m) => t.contains = m),
116
122
  type: e(Y.F_INVENTORY_BINDING_TYPE).enum.RECIPE,
117
123
  "filter-option-ids": a.value
118
124
  }, null, 8, ["modelValue", "type", "filter-option-ids"]),
119
- m(B, {
125
+ d(B, {
120
126
  modelValue: t.contains,
121
- "onUpdate:modelValue": i[2] || (i[2] = (d) => t.contains = d),
127
+ "onUpdate:modelValue": i[2] || (i[2] = (m) => t.contains = m),
122
128
  type: e(Y.F_INVENTORY_BINDING_TYPE).enum.SKU,
123
129
  "filter-option-ids": R.value
124
130
  }, null, 8, ["modelValue", "type", "filter-option-ids"])
@@ -132,8 +138,8 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
132
138
  ], 64);
133
139
  };
134
140
  }
135
- }), he = be, ke = de("recipe-manager", () => {
136
- const C = re(), r = A(), u = $(r), p = K(u), f = G(), b = Z(), { t: _ } = I(), v = (a) => {
141
+ }), he = be, ke = me("recipe-manager", () => {
142
+ const C = re(), r = $(), u = I(r), p = K(u), f = G(), b = Z(), { t: _ } = A(), v = (a) => {
137
143
  var l, n;
138
144
  const { vNode: y } = oe(
139
145
  he,
@@ -216,8 +222,8 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
216
222
  setup(C) {
217
223
  const {
218
224
  t: r
219
- } = I(), u = A();
220
- $(u);
225
+ } = A(), u = $();
226
+ I(u);
221
227
  const p = G(), f = ke(), b = h(() => p.recipes), _ = h(() => b.value.filter((y) => `${y.name}`.toLowerCase().includes(v.value.toLowerCase()))), v = w(""), o = w([{
222
228
  accessorKey: "name",
223
229
  header: () => r("menu.recipe.table.columns.name"),
@@ -271,7 +277,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
271
277
  key: 1
272
278
  }, [a.value ? (g(), F(E, {
273
279
  key: 1
274
- }, [c("div", Fe, [m(n, {
280
+ }, [c("div", Fe, [d(n, {
275
281
  modelValue: v.value,
276
282
  "onUpdate:modelValue": l[2] || (l[2] = (s) => v.value = s),
277
283
  autofocus: "",
@@ -281,19 +287,19 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
281
287
  key: s._id,
282
288
  class: z(["py-12 px-16", "flex space-x-8", "items-center", "cursor-pointer"]),
283
289
  onClick: () => e(f).updateRecipe(s)
284
- }, [c("div", Ee, [c("p", Se, S(s.name), 1), c("p", we, S(s.ingredients), 1)]), m(N, {
290
+ }, [c("div", Ee, [c("p", Se, S(s.name), 1), c("p", we, S(s.ingredients), 1)]), d(N, {
285
291
  variant: e(H).Tertiary,
286
292
  "prepend-icon": "delete",
287
293
  "text-color": "neutral-gray-400",
288
294
  onClick: D(() => e(f).deleteRecipe(s), ["stop"])
289
- }, null, 8, ["variant", "onClick"])], 8, Ce))), 128))])], 64)) : (g(), F("div", Ve, [c("div", xe, [m(n, {
295
+ }, null, 8, ["variant", "onClick"])], 8, Ce))), 128))])], 64)) : (g(), F("div", Ve, [c("div", xe, [d(n, {
290
296
  modelValue: v.value,
291
297
  "onUpdate:modelValue": l[0] || (l[0] = (s) => v.value = s),
292
298
  autofocus: "",
293
299
  class: "mb-8 w-[320px]",
294
300
  placeholder: e(r)("menu.recipe.table.search.placeholder")
295
- }, null, 8, ["modelValue", "placeholder"])]), m(se, null, {
296
- default: x(() => [m(i, {
301
+ }, null, 8, ["modelValue", "placeholder"])]), d(se, null, {
302
+ default: x(() => [d(i, {
297
303
  "column-defs": o.value,
298
304
  "page-size": _.value.length,
299
305
  "row-data": _.value,
@@ -304,7 +310,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
304
310
  }, null, 8, ["column-defs", "page-size", "row-data"])]),
305
311
  _: 1
306
312
  })]))], 64))]),
307
- "append-heading": x(() => [c("div", Ne, [c("div", Me, [c("div", Oe, [c("p", Te, S(t.value), 1)])]), m(M), b.value.length > 0 ? (g(), O(ce, {
313
+ "append-heading": x(() => [c("div", Ne, [c("div", Me, [c("div", Oe, [c("p", Te, S(t.value), 1)])]), d(M), b.value.length > 0 ? (g(), O(ce, {
308
314
  key: 0,
309
315
  label: e(r)("menu.recipe.actions.add"),
310
316
  "prepend-icon": "add",
@@ -1,7 +1,8 @@
1
- import { defineComponent as N, computed as y, h as c, withModifiers as U, ref as V, resolveComponent as _, openBlock as d, createBlock as k, unref as m, withCtx as h, createElementVNode as l, createCommentVNode as H, createElementBlock as D, Fragment as M, createVNode as f, renderList as T, toDisplayString as S } from "vue";
2
- import { n as W, b as i, u as Q, i as G, a as J, _ as X, f as Z, k as ee, j as te } from "./app-Cq-DFOLO.js";
3
- import { components as ne, useDialog as ae, useSnackbar as se } from "@feedmepos/ui-library";
4
- import { d as oe, _ as le, u as re, c as ue } from "./scheduler-BrghaQlc.js";
1
+ import { defineComponent as N, computed as y, h as c, withModifiers as U, ref as V, resolveComponent as _, openBlock as d, createBlock as k, unref as m, withCtx as h, createElementVNode as l, createCommentVNode as H, createElementBlock as D, Fragment as I, createVNode as f, renderList as T, toDisplayString as S } from "vue";
2
+ import { b as i, u as W, i as Q, a as G, _ as J, f as X, k as Z, j as ee } from "./app-DnjfTTyH.js";
3
+ import { components as te, useDialog as ne, useSnackbar as ae } from "@feedmepos/ui-library";
4
+ import { d as oe, _ as se, u as le, c as re } from "./scheduler-DPTNLoCR.js";
5
+ import { useI18n as ue } from "@feedmepos/mf-common";
5
6
  const ce = {
6
7
  class: "flex flex-1 justify-end"
7
8
  }, ie = {
@@ -18,12 +19,12 @@ const ce = {
18
19
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
19
20
  }, _e = {
20
21
  key: 0
21
- }, Se = /* @__PURE__ */ N({
22
+ }, xe = /* @__PURE__ */ N({
22
23
  __name: "Scheduler",
23
24
  setup(he) {
24
25
  const {
25
26
  t: a
26
- } = W(), Y = y(() => [{
27
+ } = ue(), M = y(() => [{
27
28
  accessorKey: "name",
28
29
  header: () => a("menu.scheduler.table.columns.name"),
29
30
  cell: (e) => e.getValue(),
@@ -34,9 +35,9 @@ const ce = {
34
35
  cell: (e) => {
35
36
  const {
36
37
  repeat: t,
37
- weekDay: o
38
+ weekDay: s
38
39
  } = e.row.original;
39
- return F(t, o);
40
+ return F(t, s);
40
41
  },
41
42
  enableSorting: !1
42
43
  }, {
@@ -46,7 +47,7 @@ const ce = {
46
47
  const t = e.getValue();
47
48
  return c("div", {
48
49
  class: ""
49
- }, t.map((o) => c("div", `${o.start} - ${o.end}`)));
50
+ }, t.map((s) => c("div", `${s.start} - ${s.end}`)));
50
51
  },
51
52
  enableSorting: !1
52
53
  }, {
@@ -66,7 +67,7 @@ const ce = {
66
67
  enableSorting: !1,
67
68
  cell: (e) => c("div", {
68
69
  class: "flex justify-end"
69
- }, [c(ne.FmIcon, {
70
+ }, [c(te.FmIcon, {
70
71
  name: "delete",
71
72
  outline: !0,
72
73
  color: "neutral-gray-400",
@@ -82,25 +83,25 @@ const ce = {
82
83
  [i.F_SCHEDULE_DAY.enum.friday]: "Friday",
83
84
  [i.F_SCHEDULE_DAY.enum.saturday]: "Saturday",
84
85
  [i.F_SCHEDULE_DAY.enum.sunday]: "Sunday"
85
- }, z = Object.keys(r).slice(0, 5), I = Object.keys(r).slice(5);
86
+ }, Y = Object.keys(r).slice(0, 5), z = Object.keys(r).slice(5);
86
87
  function F(e, t) {
87
88
  if (e === i.F_SCHEDULE_FREQUENCY.enum.daily || t.length === Object.keys(r).length)
88
89
  return "Daily";
89
- const o = Object.keys(r), {
90
- includes: s,
90
+ const s = Object.keys(r), {
91
+ includes: o,
91
92
  excludes: v
92
- } = o.reduce((u, n) => (t.includes(n) ? u.includes.push(n) : u.excludes.push(n), u), {
93
+ } = s.reduce((u, n) => (t.includes(n) ? u.includes.push(n) : u.excludes.push(n), u), {
93
94
  includes: [],
94
95
  excludes: []
95
96
  });
96
- return v.length === 1 ? `Daily except ${r[v[0]]}` : E(s, z) ? "Weekdays" : E(s, I) ? "Weekends" : s.every((u, n) => {
97
+ return v.length === 1 ? `Daily except ${r[v[0]]}` : E(o, Y) ? "Weekdays" : E(o, z) ? "Weekends" : o.every((u, n) => {
97
98
  if (n === 0) return !0;
98
- const b = o.findIndex((P) => P === u);
99
- return s[n - 1] === o[b - 1];
100
- }) ? s.length === 1 ? r[s[0]] : `${r[s[0]]} to ${r[s[s.length - 1]]}` : s.map((u) => r[u]).join(", ");
99
+ const b = s.findIndex((P) => P === u);
100
+ return o[n - 1] === s[b - 1];
101
+ }) ? o.length === 1 ? r[o[0]] : `${r[o[0]]} to ${r[o[o.length - 1]]}` : o.map((u) => r[u]).join(", ");
101
102
  }
102
103
  function E(e, t) {
103
- return e.length !== t.length ? !1 : e.every((o, s) => o === t[s]);
104
+ return e.length !== t.length ? !1 : e.every((s, o) => s === t[o]);
104
105
  }
105
106
  const x = V();
106
107
  function L() {
@@ -111,7 +112,7 @@ const ce = {
111
112
  var t;
112
113
  C.value || (t = x.value) == null || t.show(e);
113
114
  }
114
- const q = ae();
115
+ const q = ne();
115
116
  function j(e) {
116
117
  let t = [c("span", a("menu.scheduler.dialogs.remove.message", {
117
118
  name: e.name
@@ -135,19 +136,19 @@ const ce = {
135
136
  });
136
137
  }
137
138
  async function O(e) {
138
- const t = e._id ? re(e) : ue(e);
139
+ const t = e._id ? le(e) : re(e);
139
140
  await w.updateMenu(t, e.name);
140
141
  }
141
- const A = Q(), B = y(() => A.categorizedRawMenuItems), p = y(() => A.state.menu.modules.scheduler), w = G(J(se())), C = y(() => w.checkMenuIsLoading()), g = V(""), K = y(() => {
142
+ const A = W(), B = y(() => A.categorizedRawMenuItems), p = y(() => A.state.menu.modules.scheduler), w = Q(G(ae())), C = y(() => w.checkMenuIsLoading()), g = V(""), K = y(() => {
142
143
  const e = g.value.toLowerCase();
143
144
  return e ? p.value.filter((t) => t.name.toLowerCase().includes(e)) : p.value;
144
145
  });
145
146
  return (e, t) => {
146
- const o = _("FmSearch"), s = _("FmTable"), v = _("FmButton"), R = _("FmListItem"), u = _("FmList");
147
- return d(), k(X, {
147
+ const s = _("FmSearch"), o = _("FmTable"), v = _("FmButton"), R = _("FmListItem"), u = _("FmList");
148
+ return d(), k(J, {
148
149
  heading: m(a)("menu.scheduler.title")
149
150
  }, {
150
- "append-heading": h(() => [l("div", ce, [p.value.length > 0 ? (d(), k(Z, {
151
+ "append-heading": h(() => [l("div", ce, [p.value.length > 0 ? (d(), k(X, {
151
152
  key: 0,
152
153
  disabled: C.value,
153
154
  icon: "add",
@@ -155,7 +156,7 @@ const ce = {
155
156
  variant: "primary",
156
157
  onClick: L
157
158
  }, null, 8, ["disabled", "label"])) : H("", !0)])]),
158
- default: h(() => [p.value.length === 0 ? (d(), k(m(ee), {
159
+ default: h(() => [p.value.length === 0 ? (d(), k(m(Z), {
159
160
  key: 0,
160
161
  action: {
161
162
  text: m(a)("menu.scheduler.empty.action"),
@@ -163,19 +164,19 @@ const ce = {
163
164
  },
164
165
  subtitle: m(a)("menu.scheduler.empty.subtitle"),
165
166
  title: m(a)("menu.scheduler.empty.title")
166
- }, null, 8, ["action", "subtitle", "title"])) : (d(), D(M, {
167
+ }, null, 8, ["action", "subtitle", "title"])) : (d(), D(I, {
167
168
  key: 1
168
- }, [l("div", ie, [l("div", de, [f(o, {
169
+ }, [l("div", ie, [l("div", de, [f(s, {
169
170
  modelValue: g.value,
170
171
  "onUpdate:modelValue": t[0] || (t[0] = (n) => g.value = n),
171
172
  autofocus: "",
172
173
  class: "mb-8 xs:px-16 xs:mt-8",
173
174
  placeholder: m(a)("menu.scheduler.table.search.placeholder")
174
- }, null, 8, ["modelValue", "placeholder"])])]), f(te, {
175
+ }, null, 8, ["modelValue", "placeholder"])])]), f(ee, {
175
176
  class: "xs:hidden block"
176
177
  }, {
177
- default: h(() => [f(s, {
178
- "column-defs": Y.value,
178
+ default: h(() => [f(o, {
179
+ "column-defs": M.value,
179
180
  "page-size": p.value.length,
180
181
  "row-data": p.value,
181
182
  "search-value": g.value,
@@ -189,7 +190,7 @@ const ce = {
189
190
  class: "flex-col flex-1 min-h-0 overflow-auto xs:flex hidden w-full px-16 pb-64",
190
191
  separator: ""
191
192
  }, {
192
- default: h(() => [(d(!0), D(M, null, T(K.value, (n) => (d(), k(R, {
193
+ default: h(() => [(d(!0), D(I, null, T(K.value, (n) => (d(), k(R, {
193
194
  key: n._id,
194
195
  label: n.name,
195
196
  style: {
@@ -206,7 +207,7 @@ const ce = {
206
207
  _: 2
207
208
  }, 1032, ["label", "onClick"]))), 128))]),
208
209
  _: 1
209
- })], 64)), f(le, {
210
+ })], 64)), f(se, {
210
211
  ref_key: "schedulerDialogRef",
211
212
  ref: x,
212
213
  "categorized-items": B.value,
@@ -218,5 +219,5 @@ const ce = {
218
219
  }
219
220
  });
220
221
  export {
221
- Se as default
222
+ xe as default
222
223
  };
@@ -1,12 +1,13 @@
1
- import { defineComponent as S, computed as m, resolveComponent as l, openBlock as o, createBlock as s, withCtx as r, createVNode as d, createElementVNode as v, toDisplayString as y, unref as C, createElementBlock as k, Fragment as g, renderList as x } from "vue";
2
- import { u as I, n as M } from "./app-Cq-DFOLO.js";
3
- const V = /* @__PURE__ */ S({
1
+ import { defineComponent as S, computed as a, resolveComponent as l, openBlock as o, createBlock as s, withCtx as r, createVNode as d, createElementVNode as v, toDisplayString as y, unref as C, createElementBlock as k, Fragment as I, renderList as g } from "vue";
2
+ import { u as x } from "./app-DnjfTTyH.js";
3
+ import { useI18n as M } from "@feedmepos/mf-common";
4
+ const $ = /* @__PURE__ */ S({
4
5
  __name: "SchedulerSelector",
5
6
  setup(B) {
6
- const n = I(), { t } = M(), u = m(() => {
7
- const e = n.schedulers.find((a) => a._id === n.state.currentSchedulerId);
7
+ const n = x(), { t } = M(), m = a(() => {
8
+ const e = n.schedulers.find((u) => u._id === n.state.currentSchedulerId);
8
9
  return e ? e.name : t("menu.common.labels.all_day");
9
- }), _ = m(() => [
10
+ }), _ = a(() => [
10
11
  { label: t("menu.common.labels.all_day"), value: "" },
11
12
  ...n.schedulers.map((e) => ({
12
13
  label: e.name.length > 15 ? `${e.name.substring(0, 15)}...` : e.name,
@@ -16,23 +17,23 @@ const V = /* @__PURE__ */ S({
16
17
  function p(e) {
17
18
  n.selectScheduler(e);
18
19
  }
19
- return (e, a) => {
20
+ return (e, u) => {
20
21
  const i = l("FmIcon"), b = l("FmChip"), h = l("FmMenuItem"), f = l("FmMenu");
21
22
  return o(), s(f, null, {
22
23
  "menu-button": r(() => [
23
24
  d(b, {
24
- label: u.value,
25
+ label: m.value,
25
26
  class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400"
26
27
  }, {
27
28
  default: r(() => [
28
- v("p", null, y(C(t)("menu.common.labels.scheduler_title", { label: u.value })), 1),
29
+ v("p", null, y(C(t)("menu.common.labels.scheduler_title", { label: m.value })), 1),
29
30
  d(i, { name: "expand_more" })
30
31
  ]),
31
32
  _: 1
32
33
  }, 8, ["label"])
33
34
  ]),
34
35
  default: r(() => [
35
- (o(!0), k(g, null, x(_.value, (c, F) => (o(), s(h, {
36
+ (o(!0), k(I, null, g(_.value, (c, F) => (o(), s(h, {
36
37
  key: F,
37
38
  label: c.label,
38
39
  onClick: (E) => p(c.value)
@@ -44,5 +45,5 @@ const V = /* @__PURE__ */ S({
44
45
  }
45
46
  });
46
47
  export {
47
- V as _
48
+ $ as _
48
49
  };
@@ -0,0 +1,4 @@
1
+ import { v as f } from "./app-DnjfTTyH.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Setting.vue_vue_type_script_setup_true_lang-BVUe_2pD.js";
1
+ import { _ as f } from "./Setting.vue_vue_type_script_setup_true_lang-BIKArP-6.js";
2
2
  export {
3
3
  f as default
4
4
  };