@feedmepos/mf-menu 0.32.71 → 0.32.72

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 (74) hide show
  1. package/dist/{App-Bay6p3xd.js → App-BqlWMfMd.js} +8 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Je_NoQ3y.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CGm_HCN-.js} +12 -12
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-DBjYkJhB.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-DKwW-KuQ.js} +3 -3
  4. package/dist/{Catalog-DfWHNm4n.js → Catalog-DmSqkb83.js} +20 -20
  5. package/dist/{Category-51BrJsdv.js → Category-BViqkFeL.js} +4 -4
  6. package/dist/{Category-m45WrP7O.js → Category-Dlj54Cvf.js} +4 -4
  7. package/dist/{CookingGuide-Dk-ibGYd.js → CookingGuide-CTy27R3R.js} +46 -46
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CzpScELw.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DnkFD9Qo.js} +1 -1
  9. package/dist/{Group-NUWfR17j.js → Group-B_XL8419.js} +1 -1
  10. package/dist/{Group-CZDoqPK7.js → Group-CCHCA3-l.js} +3 -3
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-h8zygLBJ.js → Group.vue_vue_type_script_setup_true_lang-D4UZ_9r_.js} +7 -7
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dq5jMv3_.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Hq-gI8hs.js} +24 -24
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-EsQKUSJa.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CMNiLTsy.js} +7 -7
  14. package/dist/{Ingredient-CcnUyiM5.js → Ingredient-BKMpffiK.js} +4 -4
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BwxZEDVT.js → InventoryBinding.vue_vue_type_script_setup_true_lang-B-A8Yae3.js} +2 -2
  16. package/dist/{LinkProductSideSheet-ClMiajzX.js → LinkProductSideSheet-C0OwARv3.js} +4 -4
  17. package/dist/{MenuSetting-Dw3lVHtp.js → MenuSetting-t2SC98j8.js} +7 -7
  18. package/dist/{OrderPacing-Dh8T7OKW.js → OrderPacing-BeOxlK5N.js} +5 -5
  19. package/dist/{PrintRoute-BrSaSZI3.js → PrintRoute-BehVCEKW.js} +10 -10
  20. package/dist/{Product-CQ7AuhbY.js → Product-JhmPZPy5.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-Bw6l2IEC.js → Product.vue_vue_type_script_setup_true_lang-CaIdoW_3.js} +14 -14
  22. package/dist/ProductInternalTools-BaOhffU-.js +439 -0
  23. package/dist/{Products-CoL7S7-1.js → Products-BEL7jDXA.js} +78 -78
  24. package/dist/{Publish-C_lOqrSX.js → Publish-0paPWlI9.js} +4 -4
  25. package/dist/{Recipe-Ce8qXnG5.js → Recipe-C2EDxRF-.js} +5 -5
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DMB9bFg9.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BpGAz8tp.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-D9i9tMAj.js → RuleView.vue_vue_type_script_setup_true_lang-DP2Sx5Ik.js} +514 -514
  28. package/dist/{Scheduler-B2ZtWIPp.js → Scheduler-Q5uM5gxh.js} +17 -17
  29. package/dist/{ServingSequence-BWZ1YpzI.js → ServingSequence-T4C9GPzV.js} +3 -3
  30. package/dist/{Setting-CdxNVi7G.js → Setting-Ck9fOSnA.js} +5 -5
  31. package/dist/{Subcategory-Bn0O6i5t.js → Subcategory-DA9P_jgR.js} +6 -6
  32. package/dist/{Takeaway-luRkknPl.js → Takeaway-BWHTHlyY.js} +1 -1
  33. package/dist/{Takeaway-yE0GhL5I.js → Takeaway-BhBwxuQ1.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CnZTbF3e.js → Takeaway.vue_vue_type_script_setup_true_lang-CoW3ltrF.js} +5 -5
  35. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-B3N7_zfR.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-B_NVIotA.js} +1 -1
  36. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-BLzzBcqV.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-DKAvaKvf.js} +2 -2
  37. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BvnoCeCw.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-KLajCLq6.js} +15 -15
  38. package/dist/{Unit-JPFtrbuS.js → Unit-Cn8MfZ3t.js} +2 -2
  39. package/dist/{Variant-BGJ-aKF1.js → Variant-D8YObOjv.js} +3 -3
  40. package/dist/{_id_-BUlkRwgU.js → _id_-D3xdoF7g.js} +10 -10
  41. package/dist/{app-CMjz-bvL.js → app-CytlajzP.js} +1 -1
  42. package/dist/{app-2VeaJE9t.js → app-DW6oW0Ma.js} +37 -37
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/app.d.ts +20 -0
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +65 -16
  46. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/assets/{linked-status-B9caUckb.js → linked-status-6NCMYr9j.js} +4 -4
  48. package/dist/assets/{menu-export-DYfPYpgS.js → menu-export-B0G2UoQu.js} +34 -34
  49. package/dist/assets/{override-menu-uNjUqcak.js → override-menu-BLTWWMwC.js} +4 -4
  50. package/dist/assets/{validate-menu-BiXMOXpN.js → validate-menu-Bw1SjjTD.js} +3 -3
  51. package/dist/{catalog--64fgdzd.js → catalog-D-eYUu3U.js} +1 -1
  52. package/dist/{catalogSetting-CplTgRmk.js → catalogSetting-DTuat7sH.js} +1 -1
  53. package/dist/{currency-CjYkQ4FL.js → currency-Dj_Wt0Hv.js} +1 -1
  54. package/dist/dayjs.min-DEj15U1R.js +7 -0
  55. package/dist/{discardConfirm-DOc0ieeO.js → discardConfirm-D8fV6Aag.js} +1 -1
  56. package/dist/{index-Dw_Fw5ni.js → index--oIuzXeT.js} +5 -5
  57. package/dist/{index-CTA48kW2.js → index-DM0Bzsz_.js} +1 -1
  58. package/dist/{index-BrtZ42qx.js → index-Kuoa82jl.js} +6 -6
  59. package/dist/{index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js → index.vue_vue_type_script_setup_true_lang-COHdIM2S.js} +3988 -3982
  60. package/dist/{item-DL0lbXPC.js → item-DY5crb6D.js} +1159 -1164
  61. package/dist/{jszip.min-CTn9qnAT.js → jszip.min-BZ1Z78MP.js} +167 -167
  62. package/dist/{linkProducts-DNPyRjOC.js → linkProducts-96XgmBUL.js} +4 -4
  63. package/dist/{memberPricing-ByMD7Sun.js → memberPricing-WDnr_fBu.js} +1 -1
  64. package/dist/{menu-C77otNXH.js → menu-xKq7gpBv.js} +1 -1
  65. package/dist/{menuV2-Bi_EMfOM.js → menuV2-y6RgekH4.js} +49 -49
  66. package/dist/{order_pacing-29v64nh0.js → order_pacing-5FfwO1W8.js} +5 -5
  67. package/dist/{priceTier-BscL3YjX.js → priceTier-C-qqjKEP.js} +1 -1
  68. package/dist/{rules-BYL-otiB.js → rules-BUN28pvZ.js} +3 -3
  69. package/dist/{scheduler-Cqvnr0u1.js → scheduler-CHwF5zGU.js} +5 -5
  70. package/dist/{toExcel-421pbm-Z.js → toExcel-Doi2nxOH.js} +2 -2
  71. package/dist/{unit-DDtyAbV0.js → unit-BnAly_uA.js} +17 -17
  72. package/package.json +1 -1
  73. package/dist/ProductInternalTools-2rYX2GR0.js +0 -416
  74. package/dist/dayjs.min-DCMtwvjf.js +0 -7
@@ -1,9 +1,9 @@
1
1
  import { computed as m } from "vue";
2
- import { F, g as h, h as S, b as v, i as C, k as N, T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js";
3
- import { u as R } from "./menuV2-Bi_EMfOM.js";
4
- import { C as w, h as E } from "./catalog--64fgdzd.js";
2
+ import { F, g as h, h as S, b as v, i as C, k as N, U as T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-COHdIM2S.js";
3
+ import { u as R } from "./menuV2-y6RgekH4.js";
4
+ import { C as w, h as E } from "./catalog-D-eYUu3U.js";
5
5
  import { useSnackbar as O, useDialog as A } from "@feedmepos/ui-library";
6
- import { a as b } from "./LinkProductSideSheet-ClMiajzX.js";
6
+ import { a as b } from "./LinkProductSideSheet-C0OwARv3.js";
7
7
  function D() {
8
8
  const e = R(), p = m(() => e.categorizedRawMenuItems.filter((o) => o.items.length > 0)), l = m(() => {
9
9
  const o = e.currentCatalog;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, ref as _, watch as S, resolveComponent as b, createBlock as f, openBlock as y, unref as M, computed as T } from "vue";
2
- import { u as h, b as w } from "./index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js";
2
+ import { u as h, b as w } from "./index.vue_vue_type_script_setup_true_lang-COHdIM2S.js";
3
3
  import { useI18n as l } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as x, useDialog as C, useSnackbar as P } from "@feedmepos/ui-library";
5
5
  const k = /* @__PURE__ */ d({
@@ -1,5 +1,5 @@
1
1
  import { computed as n, onMounted as d, onBeforeUnmount as m } from "vue";
2
- import { u as c } from "./index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js";
2
+ import { u as c } from "./index.vue_vue_type_script_setup_true_lang-COHdIM2S.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -1,10 +1,10 @@
1
1
  var We = Object.defineProperty;
2
2
  var Le = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ne = (e, t, n) => Le(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { l as ae } from "./discardConfirm-DOc0ieeO.js";
4
+ import { l as ae } from "./discardConfirm-D8fV6Aag.js";
5
5
  import { defineStore as qe } from "pinia";
6
6
  import { shallowRef as N, ref as B, computed as S, shallowReactive as ze, effectScope as Be, watch as He } from "vue";
7
- import { d as C, f as ue, m as T, k as ie, aq as re, g as H, O as x, c as L, s as V, X as oe, ar as Ge, as as Je, a as Ye, Q as Qe, at as Xe, au as Ze, M as et } from "./index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js";
7
+ import { d as C, f as ue, m as T, k as ie, ar as re, g as H, P as x, c as L, s as V, Y as oe, as as Ge, at as Ye, a as Je, R as Qe, au as Xe, av as Ze, N as et } from "./index.vue_vue_type_script_setup_true_lang-COHdIM2S.js";
8
8
  import { useCoreStore as se } from "@feedmepos/mf-common";
9
9
  import { useSnackbar as tt } from "@feedmepos/ui-library";
10
10
  function nt(e) {
@@ -16,7 +16,7 @@ function nt(e) {
16
16
  }
17
17
  return delete t.variant, delete t.thumbnail, delete t.images, [t, ...n || []];
18
18
  }
19
- const rt = "/assets/linked-status-B9caUckb.js", ot = "/assets/override-menu-uNjUqcak.js";
19
+ const rt = "/assets/linked-status-6NCMYr9j.js", ot = "/assets/override-menu-BLTWWMwC.js";
20
20
  function st(e, t, n, s) {
21
21
  const r = C(t), u = n ? r.modules.catalog.find((f) => f._id === n) : null, c = s ? r.modules.scheduler.find((f) => f._id === s) : null, a = u ? C(u) : void 0, d = n ? r.modules.catalog.filter((f) => f._id !== n) : [], l = c ? C(c) : void 0, g = e.reduce((f, v) => (f[v._id] = nt(v), f), {});
22
22
  function y(f = []) {
@@ -189,7 +189,7 @@ function Tt(e, t) {
189
189
  }, [])) || []).join(" / ");
190
190
  }
191
191
  const q = /* @__PURE__ */ new Map();
192
- async function Kt(e, t) {
192
+ async function Pt(e, t) {
193
193
  const n = `${e._id}-${e.updatedAt}-${t}`;
194
194
  if (q.has(n))
195
195
  return q.get(n);
@@ -217,7 +217,7 @@ async function it(e, t, n) {
217
217
  const r = await ce(e, t, n);
218
218
  return z.set(s, r), r;
219
219
  }
220
- async function Pt(e, t, n) {
220
+ async function Kt(e, t, n) {
221
221
  var c, a;
222
222
  const s = await it(e, t, null), r = [], u = (d, l) => {
223
223
  const g = C(d);
@@ -231,7 +231,7 @@ async function Pt(e, t, n) {
231
231
  const y = (a = d.items) == null ? void 0 : a.filter((v) => v._id === n && v.combinationKey), f = [l, ...y].map((v) => {
232
232
  var M, I;
233
233
  const p = v.combinationKey ? (I = (M = g == null ? void 0 : g.variant) == null ? void 0 : M.variantCombinations) == null ? void 0 : I.find(
234
- (k) => k.combinationKey === v.combinationKey
234
+ (E) => E.combinationKey === v.combinationKey
235
235
  ) : g, b = p && g ? u(g, p) : v;
236
236
  return u(b, v);
237
237
  });
@@ -243,7 +243,7 @@ async function Pt(e, t, n) {
243
243
  }
244
244
  return r;
245
245
  }
246
- const w = 0, K = 3;
246
+ const w = 0, P = 3;
247
247
  function ct(e) {
248
248
  const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
249
249
  if (!t)
@@ -269,10 +269,10 @@ function O(e) {
269
269
  function $(e) {
270
270
  return e instanceof RegExp ? e.toString() : e;
271
271
  }
272
- function E(e) {
272
+ function k(e) {
273
273
  return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
274
274
  }
275
- function P(e, t) {
275
+ function K(e, t) {
276
276
  if (e === t) return !0;
277
277
  if (typeof e != typeof t) return !1;
278
278
  if (e instanceof Date && t instanceof Date)
@@ -282,14 +282,14 @@ function P(e, t) {
282
282
  if (Array.isArray(e) && Array.isArray(t)) {
283
283
  if (e.length !== t.length) return !1;
284
284
  for (let n = 0; n < e.length; n++)
285
- if (!P(e[n], t[n])) return !1;
285
+ if (!K(e[n], t[n])) return !1;
286
286
  return !0;
287
287
  }
288
- if (E(e) && E(t)) {
288
+ if (k(e) && k(t)) {
289
289
  const n = Object.keys(e), s = Object.keys(t);
290
290
  if (n.length !== s.length) return !1;
291
291
  for (const r of n)
292
- if (!Object.prototype.hasOwnProperty.call(t, r) || !P(e[r], t[r])) return !1;
292
+ if (!Object.prototype.hasOwnProperty.call(t, r) || !K(e[r], t[r])) return !1;
293
293
  return !0;
294
294
  }
295
295
  return !1;
@@ -305,7 +305,7 @@ function lt(e, t, n) {
305
305
  const l = e[d], g = n ? n(l) : JSON.stringify(l), y = u.get(g);
306
306
  if (y) {
307
307
  for (const f of y)
308
- if (!a.has(f) && P(l, t[f])) {
308
+ if (!a.has(f) && K(l, t[f])) {
309
309
  c.push({ leftIndex: d, rightIndex: f }), a.add(f);
310
310
  break;
311
311
  }
@@ -315,11 +315,11 @@ function lt(e, t, n) {
315
315
  }
316
316
  function dt(e, t, n) {
317
317
  var f, v;
318
- if (P(e, t)) return;
318
+ if (K(e, t)) return;
319
319
  const s = { _t: "a" }, r = ((f = n == null ? void 0 : n.arrays) == null ? void 0 : f.detectMove) !== !1, u = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.includeValueOnMove) === !0, c = n == null ? void 0 : n.objectHash;
320
320
  let a = r ? lt(e, t, c) : [];
321
321
  if (!c && e.length === t.length && e.length > 0 && a.length < e.length) {
322
- const p = E(e[0]) || Array.isArray(e[0]), b = a.length > 0;
322
+ const p = k(e[0]) || Array.isArray(e[0]), b = a.length > 0;
323
323
  if (p || b) {
324
324
  a = [];
325
325
  for (let M = 0; M < e.length; M++)
@@ -333,10 +333,10 @@ function dt(e, t, n) {
333
333
  for (let p = 0; p < e.length; p++) {
334
334
  const b = l.get(p);
335
335
  if (b !== void 0) {
336
- const M = J(e[p], t[b], n);
336
+ const M = Y(e[p], t[b], n);
337
337
  if (M !== void 0 && (s[b] = M), r && b !== p) {
338
- const I = `_${p}`, k = u ? [e[p], b, K] : ["", b, K];
339
- s[I] = k;
338
+ const I = `_${p}`, E = u ? [e[p], b, P] : ["", b, P];
339
+ s[I] = E;
340
340
  }
341
341
  } else {
342
342
  const M = `_${p}`;
@@ -350,14 +350,14 @@ function dt(e, t, n) {
350
350
  return s;
351
351
  }
352
352
  function mt(e, t, n) {
353
- if (P(e, t)) return;
353
+ if (K(e, t)) return;
354
354
  const s = {}, r = Object.keys(e), u = Object.keys(t), c = /* @__PURE__ */ new Set([...r, ...u]);
355
355
  for (const a of c) {
356
356
  if (n != null && n.propertyFilter && !n.propertyFilter(a, { left: e, right: t }))
357
357
  continue;
358
358
  const d = Object.prototype.hasOwnProperty.call(e, a), l = Object.prototype.hasOwnProperty.call(t, a);
359
359
  if (d && l) {
360
- const g = J(e[a], t[a], n);
360
+ const g = Y(e[a], t[a], n);
361
361
  g !== void 0 && (s[a] = g);
362
362
  } else if (d && !l) {
363
363
  const g = n != null && n.omitRemovedValues ? 0 : e[a];
@@ -366,8 +366,8 @@ function mt(e, t, n) {
366
366
  }
367
367
  return Object.keys(s).length > 0 ? s : void 0;
368
368
  }
369
- function J(e, t, n) {
370
- if (P(e, t)) return;
369
+ function Y(e, t, n) {
370
+ if (K(e, t)) return;
371
371
  if (e === void 0 && t !== void 0) {
372
372
  const a = n != null && n.cloneDiffValues ? O(t) : t;
373
373
  return [$(a)];
@@ -378,20 +378,20 @@ function J(e, t, n) {
378
378
  }
379
379
  if (Array.isArray(e) && Array.isArray(t))
380
380
  return dt(e, t, n);
381
- if (E(e) && E(t))
381
+ if (k(e) && k(t))
382
382
  return mt(e, t, n);
383
383
  const u = n != null && n.cloneDiffValues ? O(e) : e, c = n != null && n.cloneDiffValues ? O(t) : t;
384
384
  return [$(u), $(c)];
385
385
  }
386
386
  function ft(e, t, n) {
387
- return J(e, t, n);
387
+ return Y(e, t, n);
388
388
  }
389
389
  function vt(e, t, n) {
390
390
  const s = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
391
391
  for (const a in t) {
392
392
  if (a === "_t" || !a.startsWith("_")) continue;
393
393
  const d = parseInt(a.slice(1)), l = t[a];
394
- Array.isArray(l) && (l.length === 3 && l[2] === w ? s.add(d) : l.length === 3 && l[2] === K && r.set(d, l[1]));
394
+ Array.isArray(l) && (l.length === 3 && l[2] === w ? s.add(d) : l.length === 3 && l[2] === P && r.set(d, l[1]));
395
395
  }
396
396
  const u = [];
397
397
  let c = 0;
@@ -403,7 +403,7 @@ function vt(e, t, n) {
403
403
  else {
404
404
  for (; c < e.length && s.has(c); )
405
405
  c++;
406
- c < e.length && (u.push(Y(e[c], l)), c++);
406
+ c < e.length && (u.push(J(e[c], l)), c++);
407
407
  }
408
408
  else {
409
409
  let g = !1;
@@ -428,11 +428,11 @@ function yt(e, t, n) {
428
428
  const s = { ...e };
429
429
  for (const r in t) {
430
430
  const u = t[r];
431
- Array.isArray(u) ? u.length === 1 ? s[r] = u[0] : u.length === 3 && u[2] === w ? delete s[r] : u.length === 2 && (s[r] = u[1]) : s[r] = Y(s[r], u);
431
+ Array.isArray(u) ? u.length === 1 ? s[r] = u[0] : u.length === 3 && u[2] === w ? delete s[r] : u.length === 2 && (s[r] = u[1]) : s[r] = J(s[r], u);
432
432
  }
433
433
  return s;
434
434
  }
435
- function Y(e, t, n) {
435
+ function J(e, t, n) {
436
436
  if (t === void 0) return e;
437
437
  if (Array.isArray(t)) {
438
438
  if (t.length === 1)
@@ -442,10 +442,10 @@ function Y(e, t, n) {
442
442
  if (t.length === 3 && t[2] === w)
443
443
  return;
444
444
  }
445
- return E(t) && t._t === "a" ? vt(e, t) : E(t) && E(e) ? yt(e, t) : e;
445
+ return k(t) && t._t === "a" ? vt(e, t) : k(t) && k(e) ? yt(e, t) : e;
446
446
  }
447
447
  function le(e, t, n) {
448
- return Y(e, t);
448
+ return J(e, t);
449
449
  }
450
450
  function gt(e) {
451
451
  const t = { _t: "a" };
@@ -456,9 +456,9 @@ function gt(e) {
456
456
  if (Array.isArray(r)) {
457
457
  if (r.length === 3 && r[2] === w)
458
458
  t[s] = [r[0]];
459
- else if (r.length === 3 && r[2] === K) {
459
+ else if (r.length === 3 && r[2] === P) {
460
460
  const u = r[1];
461
- t[`_${u}`] = [r[0], s, K];
461
+ t[`_${u}`] = [r[0], s, P];
462
462
  }
463
463
  }
464
464
  } else {
@@ -494,10 +494,10 @@ function Q(e) {
494
494
  return [e[1], e[0]];
495
495
  if (e.length === 3 && e[2] === w)
496
496
  return [e[0]];
497
- if (e.length === 3 && e[2] === K)
497
+ if (e.length === 3 && e[2] === P)
498
498
  return e;
499
499
  }
500
- return E(e) && e._t === "a" ? gt(e) : E(e) ? pt(e) : e;
500
+ return k(e) && e._t === "a" ? gt(e) : k(e) ? pt(e) : e;
501
501
  }
502
502
  }
503
503
  function de(e) {
@@ -703,9 +703,9 @@ const $t = qe(
703
703
  return y.value = i, f.value = !1, v.value = v.value + 1, i;
704
704
  }
705
705
  const M = ae.debounce(p, 200);
706
- let I = null, k = null;
706
+ let I = null, E = null;
707
707
  function X() {
708
- k && (k(), k = null), I && I.stop(), I = Be(!0), k = I.run(() => He(
708
+ E && (E(), E = null), I && I.stop(), I = Be(!0), E = I.run(() => He(
709
709
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
710
710
  () => {
711
711
  f.value || M();
@@ -787,7 +787,7 @@ const $t = qe(
787
787
  })), Me = S(() => x(e.menu.modules.unit, { selector: "name" })), we = S(() => x(Ge(e.menu.modules.recipe, e.menu.modules.sku), {
788
788
  selector: "name"
789
789
  })), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
790
- const o = Je(e.menu.modules.sku);
790
+ const o = Ye(e.menu.modules.sku);
791
791
  return x(o, { selector: "code" });
792
792
  }), Ie = S(() => {
793
793
  const o = /* @__PURE__ */ new Map();
@@ -874,16 +874,16 @@ const $t = qe(
874
874
  function W(o) {
875
875
  return `${o.systemCode}/${o.taxCode}`;
876
876
  }
877
- function ke(o) {
877
+ function Ee(o) {
878
878
  const [i, m] = o.split("/");
879
879
  return { systemCode: i, taxCode: m };
880
880
  }
881
- function Ee(o, i, m) {
881
+ function ke(o, i, m) {
882
882
  return (o ?? i ?? []).map((h) => W(h)).find((h) => m.some((_) => _.value === h));
883
883
  }
884
884
  const Re = S(() => {
885
885
  var h;
886
- const o = ["SV5", "SV10"], i = Ye.Country.getCountryFlattenTaxes(
886
+ const o = ["SV5", "SV10"], i = Je.Country.getCountryFlattenTaxes(
887
887
  se().currentCountry.value
888
888
  ), m = i.filter((_) => u.value || !o.includes(_.taxCode)).map((_) => ({
889
889
  label: `${_.name} (${Qe(_.rate)}%)`,
@@ -918,7 +918,7 @@ const $t = qe(
918
918
  e.currentCategoryIds = o;
919
919
  }, Te = (o) => {
920
920
  e.currentRestaurantAttrParams = o;
921
- }, Ke = async (o, i) => {
921
+ }, Pe = async (o, i) => {
922
922
  const m = Array.isArray(o) ? o : [o];
923
923
  if (!m.length) return;
924
924
  const h = m.map((_) => ({
@@ -942,7 +942,7 @@ const $t = qe(
942
942
  message: _
943
943
  });
944
944
  }
945
- }, Pe = async (o) => {
945
+ }, Ke = async (o) => {
946
946
  const i = {
947
947
  ...e.menu,
948
948
  masterCatalogSetting: o.masterCatalogSetting,
@@ -1000,13 +1000,13 @@ const $t = qe(
1000
1000
  selectScheduler: De,
1001
1001
  selectCategory: Ve,
1002
1002
  setRestaurantAttrParams: Te,
1003
- updateMenu: Ke,
1004
- updateMenuSetting: Pe,
1003
+ updateMenu: Pe,
1004
+ updateMenuSetting: Ke,
1005
1005
  computeMergedMenu: p,
1006
1006
  // helper
1007
1007
  encodeTax: W,
1008
- decodeTax: ke,
1009
- getSelectedTax: Ee,
1008
+ decodeTax: Ee,
1009
+ getSelectedTax: ke,
1010
1010
  mapVariant: he,
1011
1011
  // history
1012
1012
  canUndoHistory: $e,
@@ -1015,7 +1015,7 @@ const $t = qe(
1015
1015
  redoHistory: je,
1016
1016
  // cleanup
1017
1017
  $dispose: () => {
1018
- M.cancel(), k && (k(), k = null), I && (I.stop(), I = null), Ue();
1018
+ M.cancel(), E && (E(), E = null), I && (I.stop(), I = null), Ue();
1019
1019
  },
1020
1020
  $reinitialize: () => {
1021
1021
  X();
@@ -1024,8 +1024,8 @@ const $t = qe(
1024
1024
  }
1025
1025
  );
1026
1026
  export {
1027
- Kt as a,
1028
- Pt as f,
1027
+ Pt as a,
1028
+ Kt as f,
1029
1029
  Tt as g,
1030
1030
  nt as i,
1031
1031
  Vt as m,
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as q, ref as V, h as S, computed as N, resolveComponent as I, createBlock as X, openBlock as w, unref as l, withCtx as x, createElementVNode as k, createVNode as v, watch as Z, createElementBlock as L, Fragment as M, renderSlot as ee, renderList as H, toDisplayString as $, createCommentVNode as ae, getCurrentInstance as te, render as ne } from "vue";
2
- import { u as Y, i as oe, b as le, g as B, h as K } from "./index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js";
2
+ import { u as Y, i as oe, b as le, g as B, h as K } from "./index.vue_vue_type_script_setup_true_lang-COHdIM2S.js";
3
3
  import { useI18n as R } from "@feedmepos/mf-common";
4
4
  import { components as A, FmButtonVariant as re, FmButtonColorThemeVariant as j, useSnackbar as ie } from "@feedmepos/ui-library";
5
- import { _ as J, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-D9i9tMAj.js";
5
+ import { _ as J, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-DP2Sx5Ik.js";
6
6
  import { c as de } from "./object-DVUNCr7w.js";
7
- import { _ as ue } from "./app-2VeaJE9t.js";
8
- import { L as ce } from "./LinkProductSideSheet-ClMiajzX.js";
7
+ import { _ as ue } from "./app-DW6oW0Ma.js";
8
+ import { L as ce } from "./LinkProductSideSheet-C0OwARv3.js";
9
9
  import { u as me } from "./search-BAPEUu1R.js";
10
- import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BLzzBcqV.js";
10
+ import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DKAvaKvf.js";
11
11
  import { c as ge } from "./check-C9mY6LiX.js";
12
12
  import { g as G } from "./translation-fNx6yEpy.js";
13
13
  import { c as _e } from "./createComponentProgrammatically-Bt2rn1IQ.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
2
2
  import { useI18n as m } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
4
- import { u as k, b as M } from "./index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js";
4
+ import { u as k, b as M } from "./index.vue_vue_type_script_setup_true_lang-COHdIM2S.js";
5
5
  const b = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, watch as P, ref as E, computed as w, resolveComponent as _, createElementBlock as h, openBlock as F, Fragment as M, createVNode as f, unref as g, withCtx as b, createElementVNode as O, renderList as q, toDisplayString as S } from "vue";
2
- import { g as v, h as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js";
2
+ import { g as v, h as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-COHdIM2S.js";
3
3
  import { useI18n as D } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as k } from "@feedmepos/ui-library";
5
- import { u as R } from "./menuV2-Bi_EMfOM.js";
6
- import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BLzzBcqV.js";
5
+ import { u as R } from "./menuV2-y6RgekH4.js";
6
+ import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DKAvaKvf.js";
7
7
  import { g as N } from "./translation-fNx6yEpy.js";
8
8
  const B = { class: "py-12 px-16 space-y-4" }, U = /* @__PURE__ */ I({
9
9
  __name: "AddSubcategoryDialogContentComponent",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as ce, computed as T, resolveComponent as p, createElementBlock as r, openBlock as s, createVNode as t, createCommentVNode as k, unref as a, toDisplayString as D, createElementVNode as y, withCtx as m, Fragment as $, renderList as N, createBlock as Y, ref as L, Transition as de, createTextVNode as he } from "vue";
2
- import { u as ge, l as Ve } from "./discardConfirm-DOc0ieeO.js";
3
- import { d as w, z as U, u as ke, F as Fe, A as q, g as ie, h as re, P as me } from "./index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js";
2
+ import { u as ge, l as Ve } from "./discardConfirm-D8fV6Aag.js";
3
+ import { d as w, A as U, u as ke, F as Fe, B as q, g as ie, h as re, Q as me } from "./index.vue_vue_type_script_setup_true_lang-COHdIM2S.js";
4
4
  import { useI18n as pe, useAppLocale as be, prefersHour12 as xe } from "@feedmepos/mf-common";
5
5
  import { components as Ce } from "@feedmepos/ui-library";
6
6
  import { _ as Se } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
7
- import { _ as se } from "./RuleView.vue_vue_type_script_setup_true_lang-D9i9tMAj.js";
8
- import { u as we } from "./menu-C77otNXH.js";
9
- import { L as Pe } from "./LinkProductSideSheet-ClMiajzX.js";
7
+ import { _ as se } from "./RuleView.vue_vue_type_script_setup_true_lang-DP2Sx5Ik.js";
8
+ import { u as we } from "./menu-xKq7gpBv.js";
9
+ import { L as Pe } from "./LinkProductSideSheet-C0OwARv3.js";
10
10
  const Ee = { class: "space-y-8" }, Ue = {
11
11
  key: 0,
12
12
  class: "space-y-16"
@@ -1,5 +1,5 @@
1
- import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-EsQKUSJa.js";
2
- import "./discardConfirm-DOc0ieeO.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CMNiLTsy.js";
2
+ import "./discardConfirm-D8fV6Aag.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,12 +1,12 @@
1
1
  import { defineStore as H } from "pinia";
2
- import { defineComponent as M, computed as x, ref as A, watch as S, resolveComponent as V, createBlock as J, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as C, toDisplayString as k, unref as l, Fragment as N, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { D as O, E as te, B as P, d as E, i as $, b as j, m as h, C as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js";
2
+ import { defineComponent as M, computed as x, ref as A, watch as S, resolveComponent as V, createBlock as J, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as C, toDisplayString as k, unref as l, Fragment as O, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
+ import { E as P, G as te, C as B, d as E, i as $, b as j, m as h, D as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-COHdIM2S.js";
4
4
  import { useI18n as q } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as I, components as ae, useDialog as le, FmButtonVariant as ue } from "@feedmepos/ui-library";
6
- import { u as ie, l as se } from "./discardConfirm-DOc0ieeO.js";
6
+ import { u as ie, l as se } from "./discardConfirm-D8fV6Aag.js";
7
7
  import { c as re } from "./check-C9mY6LiX.js";
8
8
  import "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
9
- import "./menuV2-Bi_EMfOM.js";
9
+ import "./menuV2-y6RgekH4.js";
10
10
  import "./app-5fxKLAzS.js";
11
11
  /* empty css */
12
12
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
@@ -22,7 +22,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ M({
22
22
  },
23
23
  emits: ["update:modelValue"],
24
24
  setup(_, { emit: g }) {
25
- const t = _, n = g, c = x(() => O(t.step ?? 1).precision), d = A(t.modelValue.toString());
25
+ const t = _, n = g, c = x(() => P(t.step ?? 1).precision), d = A(t.modelValue.toString());
26
26
  S([() => d.value], ([e]) => {
27
27
  e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
28
28
  });
@@ -33,7 +33,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ M({
33
33
  return;
34
34
  const i = e.currentTarget, a = +`${i.value}${e.key}`;
35
35
  if (isFinite(a)) {
36
- O(a).precision > c.value && e.preventDefault();
36
+ P(a).precision > c.value && e.preventDefault();
37
37
  return;
38
38
  }
39
39
  i.value.length === 0 && (e.key === "-" || e.key === ".") || e.preventDefault();
@@ -98,7 +98,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ M({
98
98
  unit: n.unitName
99
99
  }));
100
100
  function b(a) {
101
- e("conversion", P(a, n.precision));
101
+ e("conversion", B(a, n.precision));
102
102
  }
103
103
  function e(a, o) {
104
104
  const p = E(n.modelValue);
@@ -173,7 +173,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ M({
173
173
  id: (/* @__PURE__ */ new Date()).toISOString(),
174
174
  name: "",
175
175
  abbrev: "",
176
- conversion: P(0, e.value.precision)
176
+ conversion: B(0, e.value.precision)
177
177
  });
178
178
  }
179
179
  function s(u) {
@@ -216,8 +216,8 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ M({
216
216
  show: a,
217
217
  trigger: o
218
218
  }), (u, v) => {
219
- const B = V("FmTextField"), Y = V("FmStepperField"), z = V("FmButton"), L = V("fm-button"), G = V("fm-side-sheet");
220
- return F(), C(N, null, [
219
+ const L = V("FmTextField"), Y = V("FmStepperField"), z = V("FmButton"), N = V("fm-button"), G = V("fm-side-sheet");
220
+ return F(), C(O, null, [
221
221
  X(u.$slots, "default", { trigger: o }),
222
222
  m(G, {
223
223
  id: "unit-form",
@@ -236,14 +236,14 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ M({
236
236
  ]),
237
237
  "side-sheet-footer": w(() => [
238
238
  f("div", we, [
239
- m(L, {
239
+ m(N, {
240
240
  label: b.value,
241
241
  loading: i.value,
242
242
  size: "lg",
243
243
  type: "submit",
244
244
  variant: "primary"
245
245
  }, null, 8, ["label", "loading"]),
246
- m(L, {
246
+ m(N, {
247
247
  label: l(t)("menu.common.actions.cancel"),
248
248
  size: "lg",
249
249
  variant: "tertiary",
@@ -254,7 +254,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ M({
254
254
  default: w(() => [
255
255
  f("div", ge, [
256
256
  f("div", Fe, [
257
- m(B, {
257
+ m(L, {
258
258
  class: "flex-2",
259
259
  label: l(t)("menu.unit.columns.name"),
260
260
  modelValue: e.value.name,
@@ -265,7 +265,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ M({
265
265
  })
266
266
  ]
267
267
  }, null, 8, ["label", "modelValue", "rules"]),
268
- m(B, {
268
+ m(L, {
269
269
  class: "flex-1",
270
270
  label: l(t)("menu.unit.columns.symbol"),
271
271
  modelValue: e.value.abbrev,
@@ -296,7 +296,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ M({
296
296
  variant: "secondary",
297
297
  onClick: y
298
298
  }, null, 8, ["label"]),
299
- (F(!0), C(N, null, Z(e.value.measurements, (r, U) => (F(), C("div", {
299
+ (F(!0), C(O, null, Z(e.value.measurements, (r, U) => (F(), C("div", {
300
300
  key: r.id
301
301
  }, [
302
302
  m(Ve, {
@@ -315,7 +315,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ M({
315
315
  ], 64);
316
316
  };
317
317
  }
318
- }), Ue = xe, Ne = H("unit-manager", () => {
318
+ }), Ue = xe, Oe = H("unit-manager", () => {
319
319
  const _ = le(), g = I(), t = j(g), n = $(t);
320
320
  oe();
321
321
  const c = ee(), { t: d } = q(), b = (o) => {
@@ -368,5 +368,5 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ M({
368
368
  });
369
369
  export {
370
370
  Ue as U,
371
- Ne as u
371
+ Oe as u
372
372
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.32.71",
3
+ "version": "0.32.72",
4
4
  "files": [
5
5
  "dist"
6
6
  ],