@feedmepos/mf-menu 0.32.7 → 0.32.8-dev

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 (67) hide show
  1. package/dist/{App-6Q1nmlfA.js → App-B5S9byVJ.js} +5457 -4622
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-xLPJOt02.js → ApplyProduct.vue_vue_type_script_setup_true_lang-bSXFWpq_.js} +3 -3
  3. package/dist/{Catalog-Bf5JieUH.js → Catalog-CTfF5FmI.js} +52 -52
  4. package/dist/{Category-BBATgN1o.js → Category-BntCVeoT.js} +57 -57
  5. package/dist/{Category-BSBZlBHF.js → Category-Z3bphlCX.js} +26 -26
  6. package/dist/{CookingGuide-BnjSTAL4.js → CookingGuide-CoPo2Alx.js} +127 -127
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BXdLDaBB.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DJ3sb3XV.js} +1 -1
  8. package/dist/{Group-Dpbz5j1x.js → Group-B7rZfFlT.js} +3 -3
  9. package/dist/{Group-BqXtHWr2.js → Group-CblWJOl1.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-Bz5hEPov.js → Group.vue_vue_type_script_setup_true_lang-wX7yqw0Z.js} +33 -33
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-3a6eV6cB.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW1gBCBA.js} +27 -27
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C6Z7OJz7.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js} +3127 -3127
  13. package/dist/{Ingredient-BZfbbI--.js → Ingredient-Bn-jeNeI.js} +46 -46
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DfyUAd9n.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DbGNFA3D.js} +2 -2
  15. package/dist/{LinkProductSideSheet-C-CcvD1Y.js → LinkProductSideSheet-BjcQDT4U.js} +61 -61
  16. package/dist/{MenuSetting-CRCXtk6n.js → MenuSetting-BT5YSMgK.js} +14 -14
  17. package/dist/{PrintRoute-BqRkve5U.js → PrintRoute-B0j0eqNM.js} +34 -34
  18. package/dist/{Product-cj-wKww4.js → Product-BOMprFhc.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DtCzSk94.js → Product.vue_vue_type_script_setup_true_lang-q9xFzQ0v.js} +142 -142
  20. package/dist/{ProductInternalTools-B5V7Hs15.js → ProductInternalTools-O5d2jMAH.js} +39 -39
  21. package/dist/{Products-a0N50IJw.js → Products-BnMrK40x.js} +15 -15
  22. package/dist/{Publish-CyiUajCw.js → Publish-dTP5mQS3.js} +26 -26
  23. package/dist/{Recipe-CKIoGrBI.js → Recipe-DnftcZPO.js} +26 -26
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-fp_IdVVZ.js → RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js} +2 -2
  25. package/dist/{Scheduler-CwTdAm-V.js → Scheduler-DRLaQK_V.js} +22 -22
  26. package/dist/{ServingSequence-BAxm0bx1.js → ServingSequence-CPIyJ7T8.js} +39 -39
  27. package/dist/{Setting-J9s4VpKm.js → Setting-CLtISC4c.js} +22 -22
  28. package/dist/{Subcategory-BXJ2H9cr.js → Subcategory-b0bXCYYY.js} +32 -32
  29. package/dist/{Takeaway-CPPrIbb0.js → Takeaway-CCIKDCoF.js} +12 -12
  30. package/dist/{Takeaway-Cm9DdUdf.js → Takeaway-h9uUxFJd.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-PRAGlbyK.js → Takeaway.vue_vue_type_script_setup_true_lang-BOG_W-2a.js} +26 -26
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-BQcHroCG.js → Thumbnail.vue_vue_type_script_setup_true_lang-D4KcX3XQ.js} +26 -26
  33. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B3EByLES.js +6016 -0
  34. package/dist/{Unit-9pTm3F5W.js → Unit-B0kiwrN6.js} +13 -13
  35. package/dist/{Variant-qGJvwVW3.js → Variant-CJSk0kTW.js} +18 -18
  36. package/dist/{_id_-BPgTKleB.js → _id_-108G3lsv.js} +22 -22
  37. package/dist/{app-BYd7KCR0.js → app-BTn28hDr.js} +1 -1
  38. package/dist/{app-BoVVV8kG.js → app-CPJH5bgs.js} +26 -26
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/stores/menu.d.ts +4 -0
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{validate-menu-C55soZke.js → linked-status-Bp5piT25.js} +7 -7
  43. package/dist/assets/{override-menu-D2ffZ3LE.js → override-menu-D47qVZAi.js} +2 -2
  44. package/dist/assets/{linked-status-YBCdx1_k.js → validate-menu-YuXYm9iE.js} +7 -7
  45. package/dist/{catalog-DjMrJdom.js → catalog-CpFTifAS.js} +1 -1
  46. package/dist/{catalogSetting-DMUZ11RQ.js → catalogSetting-DjGqI2Vf.js} +1 -1
  47. package/dist/{category-DRr-IdFP.js → category-DaRWiQd8.js} +5 -5
  48. package/dist/{currency-CAUInXnj.js → currency-DbURufyM.js} +1 -1
  49. package/dist/{index-CG5i_sE7.js → index-C6AkIinM.js} +1 -1
  50. package/dist/{index-DOwV5hqi.js → index-D67GKEzf.js} +1 -1
  51. package/dist/{index-hDyuidIm.js → index-kjRAsH_h.js} +38 -38
  52. package/dist/{index-By_yIps1.js → index-pJtym1c6.js} +21 -21
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js → index.vue_vue_type_script_setup_true_lang-BvohjQ00.js} +440 -430
  54. package/dist/item-2WoPAnNJ.js +6838 -0
  55. package/dist/{iteration-V9L5Rk-0.js → iteration-BGItxpWj.js} +1 -1
  56. package/dist/{jszip.min-Danu3otn.js → jszip.min-D8NeBCPG.js} +353 -353
  57. package/dist/{menu-D1PHF11v.js → menu-DVdMR0zo.js} +1 -1
  58. package/dist/{menuV2-BfvbnMWo.js → menuV2-CcBdUc80.js} +73 -73
  59. package/dist/mf-menu.css +1 -1
  60. package/dist/{priceTier-DszOAydN.js → priceTier-CTfRyTuS.js} +1 -1
  61. package/dist/{scheduler-BbQrleYX.js → scheduler-DOMDX4d7.js} +20 -20
  62. package/dist/{subcategory-BnW2z6Vy.js → subcategory-NsslZ1my.js} +6 -6
  63. package/dist/{toExcel-De8V6KyO.js → toExcel-Bdne-Dw_.js} +2 -2
  64. package/dist/{unit-BjQ-Hi7b.js → unit-DKyvdauo.js} +29 -29
  65. package/package.json +1 -1
  66. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BRmrp3_3.js +0 -6038
  67. package/dist/item-Cq7YkZBk.js +0 -7685
@@ -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-Dcq1bwDq.js";
2
+ import { u as c } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -1,12 +1,12 @@
1
1
  var We = Object.defineProperty;
2
- var Le = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var ne = (e, t, n) => Le(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ao as ae, H as C, B as T, z as ue, ap as re, J as B, I as ie, ac as x, c as L, X as V, am as oe, aq as qe, ar as ze, A as Be, ae as Ge, as as He, at as Je, ab as Ye } from "./index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js";
5
- import { defineStore as Xe } from "pinia";
6
- import { shallowRef as j, ref as G, computed as S, shallowReactive as Ze, effectScope as Qe, watch as et } from "vue";
2
+ var qe = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var ne = (e, t, n) => qe(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { ao as ae, I as C, D as T, A as ue, ap as re, K as B, J as ie, ac as x, a as q, Y as V, am as oe, aq as Le, ar as ze, B as Be, ae as Ge, as as He, at as Je, ab as Ye } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
5
+ import { defineStore as Ze } from "pinia";
6
+ import { shallowRef as j, ref as G, computed as S, shallowReactive as Qe, effectScope as Xe, watch as et } from "vue";
7
7
  import { useCoreStore as se } from "@feedmepos/mf-common";
8
8
  import { useSnackbar as tt } from "@feedmepos/ui-library";
9
- const nt = "/assets/linked-status-YBCdx1_k.js", rt = "/assets/override-menu-D2ffZ3LE.js";
9
+ const nt = "/assets/linked-status-Bp5piT25.js", rt = "/assets/override-menu-D47qVZAi.js";
10
10
  function ot(e) {
11
11
  var o;
12
12
  const t = C(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
@@ -183,11 +183,11 @@ function Vt(e, t) {
183
183
  return r;
184
184
  }, [])) || []).join(" / ");
185
185
  }
186
- const q = /* @__PURE__ */ new Map();
186
+ const L = /* @__PURE__ */ new Map();
187
187
  async function Tt(e, t) {
188
188
  const n = `${e._id}-${e.updatedAt}-${t}`;
189
- if (q.has(n))
190
- return q.get(n);
189
+ if (L.has(n))
190
+ return L.get(n);
191
191
  const o = await ae(
192
192
  nt,
193
193
  JSON.stringify({
@@ -195,7 +195,7 @@ async function Tt(e, t) {
195
195
  itemId: t
196
196
  })
197
197
  );
198
- return q.set(n, o), o;
198
+ return L.set(n, o), o;
199
199
  }
200
200
  async function ce(e, t, n) {
201
201
  return await ae(rt, {
@@ -204,7 +204,7 @@ async function ce(e, t, n) {
204
204
  schedulerId: n
205
205
  });
206
206
  }
207
- function Ft(e, t, n) {
207
+ function Kt(e, t, n) {
208
208
  const o = /* @__PURE__ */ new Set();
209
209
  function r(u, l) {
210
210
  if (!e || !u || !l || o.has(l)) return !1;
@@ -219,7 +219,7 @@ function Ft(e, t, n) {
219
219
  }
220
220
  return r(t, n);
221
221
  }
222
- function Kt(e, t, n) {
222
+ function Ft(e, t, n) {
223
223
  const o = /* @__PURE__ */ new Set();
224
224
  function r(u, l) {
225
225
  if (!e || !u || !l || o.has(u)) return !1;
@@ -254,9 +254,9 @@ async function Pt(e, t, n) {
254
254
  const i = (l = c.items) == null ? void 0 : l.find((p) => p._id === n && !p.combinationKey), f = e.modules.item.find((p) => p._id === n);
255
255
  if (i) {
256
256
  const p = (a = c.items) == null ? void 0 : a.filter((y) => y._id === n && y.combinationKey), v = [i, ...p].map((y) => {
257
- var w, E;
258
- const h = y.combinationKey ? (E = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : E.find(
259
- (I) => I.combinationKey === y.combinationKey
257
+ var w, I;
258
+ const h = y.combinationKey ? (I = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : I.find(
259
+ (E) => E.combinationKey === y.combinationKey
260
260
  ) : f, b = h && f ? u(f, h) : y;
261
261
  return u(b, y);
262
262
  });
@@ -268,7 +268,7 @@ async function Pt(e, t, n) {
268
268
  }
269
269
  return r;
270
270
  }
271
- const M = 0, F = 3;
271
+ const M = 0, K = 3;
272
272
  function ct(e) {
273
273
  const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
274
274
  if (!t)
@@ -294,10 +294,10 @@ function O(e) {
294
294
  function P(e) {
295
295
  return e instanceof RegExp ? e.toString() : e;
296
296
  }
297
- function k(e) {
297
+ function R(e) {
298
298
  return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
299
299
  }
300
- function K(e, t) {
300
+ function F(e, t) {
301
301
  if (e === t) return !0;
302
302
  if (typeof e != typeof t) return !1;
303
303
  if (e instanceof Date && t instanceof Date)
@@ -307,14 +307,14 @@ function K(e, t) {
307
307
  if (Array.isArray(e) && Array.isArray(t)) {
308
308
  if (e.length !== t.length) return !1;
309
309
  for (let n = 0; n < e.length; n++)
310
- if (!K(e[n], t[n])) return !1;
310
+ if (!F(e[n], t[n])) return !1;
311
311
  return !0;
312
312
  }
313
- if (k(e) && k(t)) {
313
+ if (R(e) && R(t)) {
314
314
  const n = Object.keys(e), o = Object.keys(t);
315
315
  if (n.length !== o.length) return !1;
316
316
  for (const r of n)
317
- if (!Object.prototype.hasOwnProperty.call(t, r) || !K(e[r], t[r])) return !1;
317
+ if (!Object.prototype.hasOwnProperty.call(t, r) || !F(e[r], t[r])) return !1;
318
318
  return !0;
319
319
  }
320
320
  return !1;
@@ -330,7 +330,7 @@ function lt(e, t, n) {
330
330
  const i = e[c], f = n ? n(i) : JSON.stringify(i), p = u.get(f);
331
331
  if (p) {
332
332
  for (const v of p)
333
- if (!a.has(v) && K(i, t[v])) {
333
+ if (!a.has(v) && F(i, t[v])) {
334
334
  l.push({ leftIndex: c, rightIndex: v }), a.add(v);
335
335
  break;
336
336
  }
@@ -340,11 +340,11 @@ function lt(e, t, n) {
340
340
  }
341
341
  function dt(e, t, n) {
342
342
  var v, y;
343
- if (K(e, t)) return;
343
+ if (F(e, t)) return;
344
344
  const o = { _t: "a" }, r = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.detectMove) !== !1, u = ((y = n == null ? void 0 : n.arrays) == null ? void 0 : y.includeValueOnMove) === !0, l = n == null ? void 0 : n.objectHash;
345
345
  let a = r ? lt(e, t, l) : [];
346
346
  if (!l && e.length === t.length && e.length > 0 && a.length < e.length) {
347
- const h = k(e[0]) || Array.isArray(e[0]), b = a.length > 0;
347
+ const h = R(e[0]) || Array.isArray(e[0]), b = a.length > 0;
348
348
  if (h || b) {
349
349
  a = [];
350
350
  for (let w = 0; w < e.length; w++)
@@ -360,8 +360,8 @@ function dt(e, t, n) {
360
360
  if (b !== void 0) {
361
361
  const w = J(e[h], t[b], n);
362
362
  if (w !== void 0 && (o[b] = w), r && b !== h) {
363
- const E = `_${h}`, I = u ? [e[h], b, F] : ["", b, F];
364
- o[E] = I;
363
+ const I = `_${h}`, E = u ? [e[h], b, K] : ["", b, K];
364
+ o[I] = E;
365
365
  }
366
366
  } else {
367
367
  const w = `_${h}`;
@@ -375,7 +375,7 @@ function dt(e, t, n) {
375
375
  return o;
376
376
  }
377
377
  function ft(e, t, n) {
378
- if (K(e, t)) return;
378
+ if (F(e, t)) return;
379
379
  const o = {}, r = Object.keys(e), u = Object.keys(t), l = /* @__PURE__ */ new Set([...r, ...u]);
380
380
  for (const a of l) {
381
381
  if (n != null && n.propertyFilter && !n.propertyFilter(a, { left: e, right: t }))
@@ -392,7 +392,7 @@ function ft(e, t, n) {
392
392
  return Object.keys(o).length > 0 ? o : void 0;
393
393
  }
394
394
  function J(e, t, n) {
395
- if (K(e, t)) return;
395
+ if (F(e, t)) return;
396
396
  if (e === void 0 && t !== void 0) {
397
397
  const a = n != null && n.cloneDiffValues ? O(t) : t;
398
398
  return [P(a)];
@@ -403,7 +403,7 @@ function J(e, t, n) {
403
403
  }
404
404
  if (Array.isArray(e) && Array.isArray(t))
405
405
  return dt(e, t, n);
406
- if (k(e) && k(t))
406
+ if (R(e) && R(t))
407
407
  return ft(e, t, n);
408
408
  const u = n != null && n.cloneDiffValues ? O(e) : e, l = n != null && n.cloneDiffValues ? O(t) : t;
409
409
  return [P(u), P(l)];
@@ -416,7 +416,7 @@ function vt(e, t, n) {
416
416
  for (const a in t) {
417
417
  if (a === "_t" || !a.startsWith("_")) continue;
418
418
  const c = parseInt(a.slice(1)), i = t[a];
419
- Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] === F && r.set(c, i[1]));
419
+ Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] === K && r.set(c, i[1]));
420
420
  }
421
421
  const u = [];
422
422
  let l = 0;
@@ -467,7 +467,7 @@ function Y(e, t, n) {
467
467
  if (t.length === 3 && t[2] === M)
468
468
  return;
469
469
  }
470
- return k(t) && t._t === "a" ? vt(e, t) : k(t) && k(e) ? yt(e, t) : e;
470
+ return R(t) && t._t === "a" ? vt(e, t) : R(t) && R(e) ? yt(e, t) : e;
471
471
  }
472
472
  function le(e, t, n) {
473
473
  return Y(e, t);
@@ -481,9 +481,9 @@ function pt(e) {
481
481
  if (Array.isArray(r)) {
482
482
  if (r.length === 3 && r[2] === M)
483
483
  t[o] = [r[0]];
484
- else if (r.length === 3 && r[2] === F) {
484
+ else if (r.length === 3 && r[2] === K) {
485
485
  const u = r[1];
486
- t[`_${u}`] = [r[0], o, F];
486
+ t[`_${u}`] = [r[0], o, K];
487
487
  }
488
488
  }
489
489
  } else {
@@ -491,7 +491,7 @@ function pt(e) {
491
491
  if (Array.isArray(r) && r.length === 1)
492
492
  t[`_${o}`] = [r[0], M, M];
493
493
  else {
494
- const u = X(r);
494
+ const u = Z(r);
495
495
  u !== void 0 && (t[n] = u);
496
496
  }
497
497
  }
@@ -504,13 +504,13 @@ function ht(e) {
504
504
  if (Array.isArray(o))
505
505
  o.length === 1 ? t[n] = [o[0], M, M] : o.length === 3 && o[2] === M ? t[n] = [o[0]] : o.length === 2 && (t[n] = [o[1], o[0]]);
506
506
  else {
507
- const r = X(o);
507
+ const r = Z(o);
508
508
  r !== void 0 && (t[n] = r);
509
509
  }
510
510
  }
511
511
  return t;
512
512
  }
513
- function X(e) {
513
+ function Z(e) {
514
514
  if (e !== void 0) {
515
515
  if (Array.isArray(e)) {
516
516
  if (e.length === 1)
@@ -519,14 +519,14 @@ function X(e) {
519
519
  return [e[1], e[0]];
520
520
  if (e.length === 3 && e[2] === M)
521
521
  return [e[0]];
522
- if (e.length === 3 && e[2] === F)
522
+ if (e.length === 3 && e[2] === K)
523
523
  return e;
524
524
  }
525
- return k(e) && e._t === "a" ? pt(e) : k(e) ? ht(e) : e;
525
+ return R(e) && e._t === "a" ? pt(e) : R(e) ? ht(e) : e;
526
526
  }
527
527
  }
528
528
  function de(e) {
529
- return X(e);
529
+ return Z(e);
530
530
  }
531
531
  function gt(e, t, n) {
532
532
  const o = de(t);
@@ -664,15 +664,15 @@ function Mt() {
664
664
  }
665
665
  };
666
666
  }
667
- const $t = Xe(
667
+ const $t = Ze(
668
668
  "mf-menu-store-v2",
669
669
  () => {
670
- const e = Ze(Mt()), t = se(), n = tt(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
670
+ const e = Qe(Mt()), t = se(), n = tt(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
671
671
  selector: "position"
672
672
  }) : []), r = S(() => {
673
673
  var s;
674
- return ((s = t.currentBusiness.value) == null ? void 0 : s.menuVersion) || L.F_MENU_VERSION.v3;
675
- }), u = S(() => r.value === L.F_MENU_VERSION.v4), l = S(() => {
674
+ return ((s = t.currentBusiness.value) == null ? void 0 : s.menuVersion) || q.F_MENU_VERSION.v3;
675
+ }), u = S(() => r.value === q.F_MENU_VERSION.v4), l = S(() => {
676
676
  const s = e.menu.modules.catalog;
677
677
  return x(s, { selector: "name" });
678
678
  }), a = S(() => {
@@ -719,25 +719,25 @@ const $t = Xe(
719
719
  );
720
720
  if (e.currentSchedulerId != null) {
721
721
  const g = e.menu.modules.catalog.find(
722
- (R) => R._id === e.currentCatalogId
722
+ (k) => k._id === e.currentCatalogId
723
723
  ), _ = g ? g.override.scheduler[e.currentSchedulerId] : e.menu.modules.scheduler.find(
724
- (R) => R._id === e.currentSchedulerId
725
- ), A = new Set(((_ == null ? void 0 : _.items) || []).map((R) => R._id));
726
- d.modules.item = d.modules.item.filter((R) => A.has(R._id));
724
+ (k) => k._id === e.currentSchedulerId
725
+ ), A = new Set(((_ == null ? void 0 : _.items) || []).map((k) => k._id));
726
+ d.modules.item = d.modules.item.filter((k) => A.has(k._id));
727
727
  }
728
728
  return p.value = d, v.value = !1, y.value = y.value + 1, d;
729
729
  }
730
730
  const w = ie.debounce(h, 200);
731
- let E = null, I = null;
732
- function Z() {
733
- I && (I(), I = null), E && E.stop(), E = Qe(!0), I = E.run(() => et(
731
+ let I = null, E = null;
732
+ function Q() {
733
+ E && (E(), E = null), I && I.stop(), I = Xe(!0), E = I.run(() => et(
734
734
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
735
735
  () => {
736
736
  v.value || w();
737
737
  }
738
738
  )) || null;
739
739
  }
740
- Z();
740
+ Q();
741
741
  const me = S(() => [
742
742
  {
743
743
  label: "Main",
@@ -747,7 +747,7 @@ const $t = Xe(
747
747
  label: s.name,
748
748
  value: s._id
749
749
  }))
750
- ]), Q = S(() => {
750
+ ]), X = S(() => {
751
751
  const s = p.value.modules.category;
752
752
  return [
753
753
  ...U.value.item.addon ? [
@@ -770,7 +770,7 @@ const $t = Xe(
770
770
  s = s.filter((g) => {
771
771
  var A;
772
772
  const _ = (A = m == null ? void 0 : m[g._id]) == null ? void 0 : A.find(
773
- (R) => !R.combinationKey
773
+ (k) => !k.combinationKey
774
774
  );
775
775
  return (_ == null ? void 0 : _.orderFrom) !== ue.F_ORDER_FROM.enum.NONE;
776
776
  });
@@ -785,7 +785,7 @@ const $t = Xe(
785
785
  m,
786
786
  (g) => g.code || g.name
787
787
  ).reduce((g, _, A) => (g[_._id] = A + d[_.category || ""], g), {});
788
- }), pe = S(() => oe(N.value, Q.value, ee.value)), he = S(() => {
788
+ }), pe = S(() => oe(N.value, X.value, ee.value)), he = S(() => {
789
789
  const s = U.value.item.addon ? [
790
790
  {
791
791
  _id: e.currentCatalogId ? "" : null,
@@ -809,12 +809,12 @@ const $t = Xe(
809
809
  }
810
810
  const _e = S(() => V(p.value.modules.group, (s) => s.name)), Se = S(() => x(p.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
811
811
  selector: "name"
812
- })), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(qe(e.menu.modules.recipe, e.menu.modules.sku), {
812
+ })), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
813
813
  selector: "name"
814
814
  })), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
815
815
  const s = ze(e.menu.modules.sku);
816
816
  return x(s, { selector: "code" });
817
- }), Ee = S(() => {
817
+ }), Ie = S(() => {
818
818
  const s = /* @__PURE__ */ new Map();
819
819
  return e.menu.modules.item.forEach((d) => {
820
820
  var m, g;
@@ -823,7 +823,7 @@ const $t = Xe(
823
823
  });
824
824
  }), s;
825
825
  }), U = S(() => {
826
- const s = !e.currentCatalogId, d = r.value === L.F_MENU_VERSION.v4, m = !e.currentSchedulerId, g = {
826
+ const s = !e.currentCatalogId, d = r.value === q.F_MENU_VERSION.v4, m = !e.currentSchedulerId, g = {
827
827
  create: s && m,
828
828
  edit: s && m,
829
829
  delete: s && m
@@ -895,14 +895,14 @@ const $t = Xe(
895
895
  function W(s) {
896
896
  return `${s.systemCode}/${s.taxCode}`;
897
897
  }
898
- function Ie(s) {
898
+ function Ee(s) {
899
899
  const [d, m] = s.split("/");
900
900
  return { systemCode: d, taxCode: m };
901
901
  }
902
- function ke(s, d, m) {
902
+ function Re(s, d, m) {
903
903
  return (s ?? d ?? []).map((g) => W(g)).find((g) => m.some((_) => _.value === g));
904
904
  }
905
- const Re = S(() => {
905
+ const ke = S(() => {
906
906
  var g;
907
907
  const s = ["SV5", "SV10"], d = Be.Country.getCountryFlattenTaxes(
908
908
  se().currentCountry.value
@@ -935,7 +935,7 @@ const $t = Xe(
935
935
  e.currentCategoryIds = s;
936
936
  }, Te = (s) => {
937
937
  e.currentRestaurantAttrParams = s;
938
- }, Fe = async (s, d) => {
938
+ }, Ke = async (s, d) => {
939
939
  const m = Array.isArray(s) ? s : [s];
940
940
  if (!m.length) return;
941
941
  const g = m.map((_) => ({
@@ -959,7 +959,7 @@ const $t = Xe(
959
959
  message: _
960
960
  });
961
961
  }
962
- }, Ke = async (s) => {
962
+ }, Fe = async (s) => {
963
963
  const d = {
964
964
  ...e.menu,
965
965
  masterCatalogSetting: s.masterCatalogSetting,
@@ -992,11 +992,11 @@ const $t = Xe(
992
992
  schedulers: c,
993
993
  currentScheduler: i,
994
994
  catalogOptions: me,
995
- categories: Q,
995
+ categories: X,
996
996
  subcategories: ve,
997
997
  items: ee,
998
998
  sortedItems: ye,
999
- itemCodeMap: Ee,
999
+ itemCodeMap: Ie,
1000
1000
  categorizedItems: pe,
1001
1001
  categorizedRawMenuItems: he,
1002
1002
  variants: N,
@@ -1008,7 +1008,7 @@ const $t = Xe(
1008
1008
  cookingGuide: Ae,
1009
1009
  skus: Ce,
1010
1010
  rules: U,
1011
- taxSetting: Re,
1011
+ taxSetting: ke,
1012
1012
  // Action
1013
1013
  setMenu: f,
1014
1014
  readMenu: xe,
@@ -1017,13 +1017,13 @@ const $t = Xe(
1017
1017
  selectScheduler: De,
1018
1018
  selectCategory: Ve,
1019
1019
  setRestaurantAttrParams: Te,
1020
- updateMenu: Fe,
1021
- updateMenuSetting: Ke,
1020
+ updateMenu: Ke,
1021
+ updateMenuSetting: Fe,
1022
1022
  computeMergedMenu: h,
1023
1023
  // helper
1024
1024
  encodeTax: W,
1025
- decodeTax: Ie,
1026
- getSelectedTax: ke,
1025
+ decodeTax: Ee,
1026
+ getSelectedTax: Re,
1027
1027
  mapVariant: ge,
1028
1028
  // history
1029
1029
  canUndoHistory: Pe,
@@ -1032,18 +1032,18 @@ const $t = Xe(
1032
1032
  redoHistory: Ne,
1033
1033
  // cleanup
1034
1034
  $dispose: () => {
1035
- w.cancel(), I && (I(), I = null), E && (E.stop(), E = null), Ue();
1035
+ w.cancel(), E && (E(), E = null), I && (I.stop(), I = null), Ue();
1036
1036
  },
1037
1037
  $reinitialize: () => {
1038
- Z();
1038
+ Q();
1039
1039
  }
1040
1040
  };
1041
1041
  }
1042
1042
  );
1043
1043
  export {
1044
1044
  Tt as a,
1045
- Ft as b,
1046
- Kt as c,
1045
+ Kt as b,
1046
+ Ft as c,
1047
1047
  Pt as f,
1048
1048
  Vt as g,
1049
1049
  Dt as m,
package/dist/mf-menu.css CHANGED
@@ -1 +1 @@
1
- .expand-enter-from[data-v-60163177]{opacity:0;max-height:0}.expand-enter-to[data-v-60163177],.expand-leave-from[data-v-60163177]{opacity:1;max-height:1000px}.expand-leave-to[data-v-60163177]{opacity:0;max-height:0}.expand-enter-active[data-v-60163177],.expand-leave-active[data-v-60163177]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-enter-from[data-v-5b5c7179]{opacity:0}.fade-enter-to[data-v-5b5c7179],.fade-leave-from[data-v-5b5c7179]{opacity:1}.fade-leave-to[data-v-5b5c7179]{opacity:0}.fade-enter-active[data-v-5b5c7179],.fade-leave-active[data-v-5b5c7179]{transition:opacity .5s ease}.expand-enter-from[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-to[data-v-e920f110],.expand-leave-from[data-v-e920f110]{opacity:1;max-height:1000px}.expand-leave-to[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-active[data-v-e920f110],.expand-leave-active[data-v-e920f110]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fm-select__menu__wrapper[data-v-89b5becb]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vue-advanced-cropper{text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}.fm-select__menu__wrapper[data-v-ca5e943c]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.description[data-v-206a7f23] textarea{padding-right:32px}.image-action-overlay[data-v-946af9b7]{visibility:hidden;background-color:#ffffff4d}.container:hover .image-action-overlay[data-v-946af9b7]{visibility:visible}.description[data-v-39d56d57] textarea{padding-right:32px}.tree-item-form button:focus{outline:2px solid black}.resize-handle[data-v-570141b0]{cursor:col-resize}.resize-handle[data-v-570141b0]:hover{background-color:var(--fm-color-system-orange-200);filter:opacity(.4)}.resize-grabber[data-v-570141b0]{pointer-events:none}[data-v-f6f1080b] .highlighted-span{background-color:#ff06}.hover-effect:hover:before{content:"";background-color:var(--fm-color-opacity-sm);border-radius:var(--fm-corner-radius-sm);position:absolute;top:0;left:0;height:100%;width:100%}.tree-node .right-area .show-on-hover{display:none}.tree-node:hover .right-area .show-on-hover{display:flex}.drag-handle{cursor:grab;position:absolute;left:0}.tree-node:hover .drag-handle{visibility:visible}.tree-node .drag-handle{visibility:hidden}.drop-indicator-before{position:absolute;left:0;right:0;top:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-after{position:absolute;left:0;right:0;bottom:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-inside{position:absolute;left:0;right:0;top:0;bottom:0;border:2px solid var(--fm-color-primary);border-radius:var(--fm-corner-radius-sm);background-color:var(--fm-color-opacity-sm);z-index:5}.tree-node{position:relative}.tree-container[data-v-9244f342]{width:100%;max-width:100%;height:100%;position:relative}.tree-node-wrapper[data-v-9244f342]{width:100%;position:relative}.empty-tree-message[data-v-9244f342]{padding:20px;text-align:center;color:#666}.being-dragged[data-v-9244f342]{opacity:.5}.drop-before[data-v-9244f342]:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-after[data-v-9244f342]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-inside[data-v-9244f342]{background-color:#4299e11a}.drag-overlay[data-v-9244f342]{position:fixed;padding:4px 8px;background-color:#fff;border:1px solid var(--fm-color-neutral-gray-200);box-shadow:0 2px 4px #0000001a;pointer-events:none;z-index:1000;border-radius:4px;max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-overlay{background-color:#ffffff80}.fade-enter-from[data-v-6c3052b3]{opacity:0}.fade-enter-to[data-v-6c3052b3],.fade-leave-from[data-v-6c3052b3]{opacity:1}.fade-leave-to[data-v-6c3052b3]{opacity:0}.fade-enter-active[data-v-6c3052b3],.fade-leave-active[data-v-6c3052b3]{transition:opacity .5s ease}.expand-enter-active,.expand-leave-active{transition:.3s}.expand-enter-from{opacity:0;max-height:0}.expand-enter-to,.expand-leave-from{opacity:1;max-height:1000px}.expand-leave-to{opacity:0;max-height:0}.app-container{background-color:#fff!important}
1
+ .expand-enter-from[data-v-60163177]{opacity:0;max-height:0}.expand-enter-to[data-v-60163177],.expand-leave-from[data-v-60163177]{opacity:1;max-height:1000px}.expand-leave-to[data-v-60163177]{opacity:0;max-height:0}.expand-enter-active[data-v-60163177],.expand-leave-active[data-v-60163177]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-enter-from[data-v-5b5c7179]{opacity:0}.fade-enter-to[data-v-5b5c7179],.fade-leave-from[data-v-5b5c7179]{opacity:1}.fade-leave-to[data-v-5b5c7179]{opacity:0}.fade-enter-active[data-v-5b5c7179],.fade-leave-active[data-v-5b5c7179]{transition:opacity .5s ease}.expand-enter-from[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-to[data-v-e920f110],.expand-leave-from[data-v-e920f110]{opacity:1;max-height:1000px}.expand-leave-to[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-active[data-v-e920f110],.expand-leave-active[data-v-e920f110]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fm-select__menu__wrapper[data-v-89b5becb]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vue-advanced-cropper{text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}.fm-select__menu__wrapper[data-v-ca5e943c]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.description[data-v-cd10e067] textarea{padding-right:32px}.image-action-overlay[data-v-946af9b7]{visibility:hidden;background-color:#ffffff4d}.container:hover .image-action-overlay[data-v-946af9b7]{visibility:visible}.description[data-v-e9a1f9cd] textarea{padding-right:32px}.tree-item-form button:focus{outline:2px solid black}.resize-handle[data-v-570141b0]{cursor:col-resize}.resize-handle[data-v-570141b0]:hover{background-color:var(--fm-color-system-orange-200);filter:opacity(.4)}.resize-grabber[data-v-570141b0]{pointer-events:none}[data-v-f6f1080b] .highlighted-span{background-color:#ff06}.hover-effect:hover:before{content:"";background-color:var(--fm-color-opacity-sm);border-radius:var(--fm-corner-radius-sm);position:absolute;top:0;left:0;height:100%;width:100%}.tree-node .right-area .show-on-hover{display:none}.tree-node:hover .right-area .show-on-hover{display:flex}.drag-handle{cursor:grab;position:absolute;left:0}.tree-node:hover .drag-handle{visibility:visible}.tree-node .drag-handle{visibility:hidden}.drop-indicator-before{position:absolute;left:0;right:0;top:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-after{position:absolute;left:0;right:0;bottom:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-inside{position:absolute;left:0;right:0;top:0;bottom:0;border:2px solid var(--fm-color-primary);border-radius:var(--fm-corner-radius-sm);background-color:var(--fm-color-opacity-sm);z-index:5}.tree-node{position:relative}.tree-container[data-v-9244f342]{width:100%;max-width:100%;height:100%;position:relative}.tree-node-wrapper[data-v-9244f342]{width:100%;position:relative}.empty-tree-message[data-v-9244f342]{padding:20px;text-align:center;color:#666}.being-dragged[data-v-9244f342]{opacity:.5}.drop-before[data-v-9244f342]:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-after[data-v-9244f342]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-inside[data-v-9244f342]{background-color:#4299e11a}.drag-overlay[data-v-9244f342]{position:fixed;padding:4px 8px;background-color:#fff;border:1px solid var(--fm-color-neutral-gray-200);box-shadow:0 2px 4px #0000001a;pointer-events:none;z-index:1000;border-radius:4px;max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-overlay{background-color:#ffffff80}.fade-enter-from[data-v-6c3052b3]{opacity:0}.fade-enter-to[data-v-6c3052b3],.fade-leave-from[data-v-6c3052b3]{opacity:1}.fade-leave-to[data-v-6c3052b3]{opacity:0}.fade-enter-active[data-v-6c3052b3],.fade-leave-active[data-v-6c3052b3]{transition:opacity .5s ease}.expand-enter-active,.expand-leave-active{transition:.3s}.expand-enter-from{opacity:0;max-height:0}.expand-enter-to,.expand-leave-from{opacity:1;max-height:1000px}.expand-leave-to{opacity:0;max-height:0}.app-container{background-color:#fff!important}
@@ -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, D as M } from "./index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js";
4
+ import { u as k, G as M } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
5
5
  const v = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,12 +1,12 @@
1
- import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as A, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
2
- import { H as S, z as r, u as pe, I as ve, J as ue } from "./index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js";
1
+ import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as L, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
2
+ import { I as S, A as r, u as pe, J as ve, K as ue } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
3
3
  import { useI18n as de } from "@feedmepos/mf-common";
4
4
  import { components as _e } from "@feedmepos/ui-library";
5
5
  import { _ as fe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
- import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-fp_IdVVZ.js";
6
+ import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js";
7
7
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
8
- import { u as he } from "./menu-D1PHF11v.js";
9
- import { L as ge } from "./LinkProductSideSheet-C-CcvD1Y.js";
8
+ import { u as he } from "./menu-DVdMR0zo.js";
9
+ import { L as ge } from "./LinkProductSideSheet-BjcQDT4U.js";
10
10
  const Ve = { class: "space-y-8" }, Fe = {
11
11
  key: 0,
12
12
  class: "space-y-16"
@@ -62,9 +62,9 @@ const Ve = { class: "space-y-8" }, Fe = {
62
62
  "onUpdate:modelValue": X
63
63
  }, null, 8, ["model-value", "label", "sublabel"]),
64
64
  f.modelValue ? (u(), d("div", Fe, [
65
- (($ = f.modelValue) == null ? void 0 : $.length) === 0 ? (u(), d("div", ke, A(n(p)("menu.scheduler.dialog.sections.autolink.all_items")), 1)) : F("", !0),
65
+ (($ = f.modelValue) == null ? void 0 : $.length) === 0 ? (u(), d("div", ke, L(n(p)("menu.scheduler.dialog.sections.autolink.all_items")), 1)) : F("", !0),
66
66
  ((K = f.modelValue) == null ? void 0 : K.length) > 0 ? (u(), d("div", be, [
67
- h("div", null, A(n(p)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
67
+ h("div", null, L(n(p)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
68
68
  t(te, {
69
69
  content: n(p)("menu.scheduler.dialog.sections.autolink.tooltip"),
70
70
  variant: "plain",
@@ -88,7 +88,7 @@ const Ve = { class: "space-y-8" }, Fe = {
88
88
  items: Z,
89
89
  "onUpdate:modelValue": (b) => z(k, b)
90
90
  }, null, 8, ["model-value", "onUpdate:modelValue"]),
91
- h("div", null, A(n(p)("menu.scheduler.dialog.sections.filter.matches")), 1),
91
+ h("div", null, L(n(p)("menu.scheduler.dialog.sections.filter.matches")), 1),
92
92
  T.type === "category" ? (u(), I(B, {
93
93
  key: 0,
94
94
  "model-value": T.value,
@@ -101,7 +101,7 @@ const Ve = { class: "space-y-8" }, Fe = {
101
101
  class: "flex items-center gap-4",
102
102
  key: U
103
103
  }, [
104
- U > 0 ? (u(), d("div", Ue, A(n(p)("menu.scheduler.dialog.sections.filter.or")), 1)) : F("", !0),
104
+ U > 0 ? (u(), d("div", Ue, L(n(p)("menu.scheduler.dialog.sections.filter.or")), 1)) : F("", !0),
105
105
  h("div", xe, [
106
106
  t(q, {
107
107
  "model-value": b,
@@ -148,7 +148,7 @@ const Ve = { class: "space-y-8" }, Fe = {
148
148
  }, Pe = { class: "flex flex-wrap gap-8" }, Te = {
149
149
  key: 0,
150
150
  class: "pl-32 flex flex-col items-start gap-16"
151
- }, Le = { class: "w-full" }, Ae = {
151
+ }, Ae = { class: "w-full" }, Le = {
152
152
  key: 0,
153
153
  class: "mt-8"
154
154
  }, Ne = { class: "text-red-500 text-sm" }, Re = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Ye = { class: "px-16 py-8 flex-1" }, Me = { class: "px-16 py-8" }, Oe = { class: "flex gap-8 items-center justify-start" }, Ge = /* @__PURE__ */ ie({
@@ -226,7 +226,7 @@ const Ve = { class: "space-y-8" }, Fe = {
226
226
  if (i.length <= 1) return null;
227
227
  for (let l = 0; l < i.length; l++)
228
228
  for (let y = l + 1; y < i.length; y++) {
229
- const g = i[l], L = i[y], ae = w(g.start, g.end), j = w(L.start, L.end);
229
+ const g = i[l], A = i[y], ae = w(g.start, g.end), j = w(A.start, A.end);
230
230
  for (const x of ae)
231
231
  for (const oe of j)
232
232
  if (te(x, oe))
@@ -251,7 +251,7 @@ const Ve = { class: "space-y-8" }, Fe = {
251
251
  }
252
252
  const b = Y(() => J.categorizedItems.reduce((i, l) => {
253
253
  const y = l.items.filter(
254
- (g) => a.value.items.some(({ _id: L }) => g._id === L)
254
+ (g) => a.value.items.some(({ _id: A }) => g._id === A)
255
255
  );
256
256
  return y.length && i.push({ ...l, items: y }), i;
257
257
  }, [])), U = Y(() => C.value === "custom" && a.value.timePeriod.length > 0 ? B(a.value.timePeriod) : null), Q = ye(
@@ -261,7 +261,7 @@ const Ve = { class: "space-y-8" }, Fe = {
261
261
  }
262
262
  );
263
263
  return (i, l) => {
264
- const y = _("FmTextField"), g = _("FmRadio"), L = _("FmRadioGroup"), ae = _("FmCheckbox"), j = _("FmTimePicker"), x = _("FmButton"), oe = _("FmSpacer"), re = _("FmForm"), ce = _("FmSideSheet");
264
+ const y = _("FmTextField"), g = _("FmRadio"), A = _("FmRadioGroup"), ae = _("FmCheckbox"), j = _("FmTimePicker"), x = _("FmButton"), oe = _("FmSpacer"), re = _("FmForm"), ce = _("FmSideSheet");
265
265
  return u(), I(ce, {
266
266
  modelValue: D.value,
267
267
  "onUpdate:modelValue": l[7] || (l[7] = (o) => D.value = o),
@@ -322,7 +322,7 @@ const Ve = { class: "space-y-8" }, Fe = {
322
322
  }, {
323
323
  default: v(() => [
324
324
  h("div", null, [
325
- t(L, {
325
+ t(A, {
326
326
  modelValue: a.value.repeat,
327
327
  "onUpdate:modelValue": l[1] || (l[1] = (o) => a.value.repeat = o)
328
328
  }, {
@@ -356,7 +356,7 @@ const Ve = { class: "space-y-8" }, Fe = {
356
356
  })
357
357
  ]),
358
358
  h("div", null, [
359
- t(L, {
359
+ t(A, {
360
360
  label: n(e)("menu.scheduler.dialog.sections.period.title"),
361
361
  modelValue: C.value,
362
362
  "onUpdate:modelValue": l[3] || (l[3] = (o) => C.value = o)
@@ -376,7 +376,7 @@ const Ve = { class: "space-y-8" }, Fe = {
376
376
  t(se, { name: "expand" }, {
377
377
  default: v(() => [
378
378
  C.value === "custom" ? (u(), d("div", Te, [
379
- h("div", Le, [
379
+ h("div", Ae, [
380
380
  (u(!0), d(N, null, M(a.value.timePeriod, (o, E) => (u(), d("div", {
381
381
  key: E,
382
382
  class: "w-full flex gap-8 items-center"
@@ -398,8 +398,8 @@ const Ve = { class: "space-y-8" }, Fe = {
398
398
  onClick: (R) => c(E)
399
399
  }, null, 8, ["onClick"])
400
400
  ]))), 128)),
401
- U.value ? (u(), d("div", Ae, [
402
- h("div", Ne, A(U.value), 1)
401
+ U.value ? (u(), d("div", Le, [
402
+ h("div", Ne, L(U.value), 1)
403
403
  ])) : F("", !0)
404
404
  ]),
405
405
  t(x, {
@@ -458,12 +458,12 @@ const Ve = { class: "space-y-8" }, Fe = {
458
458
  (u(!0), d(N, null, M(b.value, (o) => (u(), d("div", {
459
459
  key: o.id
460
460
  }, [
461
- h("div", Re, A(o.name), 1),
461
+ h("div", Re, L(o.name), 1),
462
462
  (u(!0), d(N, null, M(o.items, (E) => (u(), d("div", {
463
463
  key: E._id,
464
464
  class: "flex border-b border-b-gray-100 items-center"
465
465
  }, [
466
- h("div", Ye, A(E.name), 1),
466
+ h("div", Ye, L(E.name), 1),
467
467
  h("div", Me, [
468
468
  t(x, {
469
469
  icon: "delete",