@feedmepos/mf-menu 0.31.30-beta.1 → 0.31.31-beta.1

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 (62) hide show
  1. package/dist/{App-CrQBq4gc.js → App-1TX8v7ZA.js} +10 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-D00UOSsK.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js} +12 -12
  3. package/dist/{Catalog-D4m8x_f2.js → Catalog-DWClc58s.js} +75 -74
  4. package/dist/{Category-sQll5ITQ.js → Category-BqKFvFam.js} +60 -60
  5. package/dist/{Category-Ql1kDDH-.js → Category-IYMtMoT-.js} +28 -28
  6. package/dist/{CookingGuide-CSutufcu.js → CookingGuide-BayJ6zj4.js} +103 -101
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BqhYFXNG.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ceq86b3d.js} +1 -1
  8. package/dist/{Group-CnBE6CiB.js → Group-LqSX7ue6.js} +1 -1
  9. package/dist/{Group-YqVh5hC0.js → Group-RujTPTns.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-D9TSH4sS.js → Group.vue_vue_type_script_setup_true_lang-Dj9ZmkYe.js} +138 -137
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CqriuXVC.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js} +16 -16
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CaIU0RsG.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C4IrA3es.js} +4616 -4610
  13. package/dist/{Ingredient-MhLxJzAU.js → Ingredient-_tc8llr1.js} +65 -64
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIbExsMI.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DLFDf-VZ.js} +14 -12
  15. package/dist/{LinkProductSideSheet-D7vYZbFy.js → LinkProductSideSheet-C6rF-G1v.js} +14 -12
  16. package/dist/{MenuSetting-n0me5wY8.js → MenuSetting-xDHeeROY.js} +27 -26
  17. package/dist/{PrintRoute-CudZZYbe.js → PrintRoute-B_TFMn5e.js} +17 -15
  18. package/dist/{Product-DPZQgWET.js → Product-DdEEqrtc.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CdaeZy_o.js → Product.vue_vue_type_script_setup_true_lang-zcistmwh.js} +257 -256
  20. package/dist/{ProductInternalTools-DgANHliV.js → ProductInternalTools-BcC7BF6W.js} +45 -45
  21. package/dist/{Products-Ez4R3jKW.js → Products-Cu0cJshV.js} +74 -72
  22. package/dist/{Publish-B4DEPe1I.js → Publish-Bm3Xiks1.js} +34 -32
  23. package/dist/{Recipe-Cripr-gY.js → Recipe-DWK-luIZ.js} +65 -63
  24. package/dist/{Scheduler-C-OV9d7d.js → Scheduler-Cb1TeBhW.js} +19 -19
  25. package/dist/{ServingSequence-DAumDXP1.js → ServingSequence-evSIET_8.js} +34 -34
  26. package/dist/{Setting-ByaHpIAN.js → Setting-Cn3kwC9F.js} +54 -53
  27. package/dist/{Subcategory-ro2aGt2H.js → Subcategory-q4m4qHsU.js} +34 -34
  28. package/dist/{Takeaway-CJb0ayDC.js → Takeaway-ClepHYGu.js} +14 -14
  29. package/dist/{Takeaway-AEg_0gKg.js → Takeaway-D-rdUZuh.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cjj4bxoL.js → Takeaway.vue_vue_type_script_setup_true_lang-y9Yxstu2.js} +41 -40
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Drf4n4rj.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BSeLfoOA.js} +1108 -1106
  32. package/dist/{Unit-1wzUBplb.js → Unit-IM8Naj82.js} +12 -12
  33. package/dist/{Variant-Dnz2v5u0.js → Variant-fzGvwaMo.js} +16 -16
  34. package/dist/{_id_-C3rBZ6zL.js → _id_-BsKNG9Qv.js} +22 -22
  35. package/dist/{app-sDPxNF11.js → app-BzQRUMTK.js} +3 -3
  36. package/dist/{app-CLY6CoaV.js → app-CoVUUCa_.js} +24 -24
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/assets/{linked-status-BZ4FSJ_Z.js → linked-status-eQqjvOq_.js} +2 -2
  40. package/dist/assets/{override-menu-C-fWJdVd.js → override-menu-C8NTBJgN.js} +2 -2
  41. package/dist/assets/{validate-menu-BDEM_Odz.js → validate-menu-Dn-OO7Ed.js} +2 -2
  42. package/dist/{catalog-bkFntZNz.js → catalog-CaXceaA2.js} +1 -1
  43. package/dist/{catalogSetting-zrKwGJ_C.js → catalogSetting-BGvckFdh.js} +1 -1
  44. package/dist/{category-BuPYaEsy.js → category-u5eo_Vjd.js} +5 -3
  45. package/dist/currency-BPHwez-E.js +7 -0
  46. package/dist/{dayjs.min-CR2NIyKn.js → dayjs.min-Bsr3tJCn.js} +1 -1
  47. package/dist/{index-BNORpjos.js → index-Bbx4iZ6n.js} +27 -27
  48. package/dist/{index-Dp_vLFQp.js → index-DSAG0yWh.js} +22 -20
  49. package/dist/{index-D20u0bCl.js → index-tRQb7RN_.js} +1 -1
  50. package/dist/{item-D4DcBt7N.js → item-BAqzKh4O.js} +801 -799
  51. package/dist/{jszip.min-CRJ61J9H.js → jszip.min-BKJtvCjM.js} +353 -353
  52. package/dist/{menu-Dw-Hpy07.js → menu-CDrsBjmr.js} +11 -9
  53. package/dist/menu-CsIzrBEr.js +74044 -0
  54. package/dist/packages/shared/src/permission/posPermission.d.ts +6 -0
  55. package/dist/{priceTier-EDLTGEjz.js → priceTier-DfbHonGe.js} +4 -4
  56. package/dist/{scheduler-CpPn2BlK.js → scheduler-DTWaBudB.js} +13 -11
  57. package/dist/{subcategory-B_W6vbM8.js → subcategory-D-R5r1Tr.js} +86 -84
  58. package/dist/{toExcel-D02OlDJu.js → toExcel-84VTtSA7.js} +2 -2
  59. package/dist/{unit-fro9wz1K.js → unit-B4zscxzo.js} +24 -23
  60. package/package.json +1 -1
  61. package/dist/currency-BISImIgX.js +0 -7
  62. package/dist/menu-ibc-yXVt.js +0 -107745
@@ -1,19 +1,20 @@
1
- import { defineComponent as oe, computed as T, resolveComponent as y, createBlock as k, openBlock as p, createVNode as o, ref as w, createElementBlock as V, Fragment as z, renderSlot as ye, unref as e, withCtx as g, createElementVNode as f, createCommentVNode as B, renderList as q, createTextVNode as be, toDisplayString as N, h as J, withModifiers as W, normalizeClass as xe } from "vue";
1
+ import { defineComponent as oe, computed as T, resolveComponent as y, createBlock as k, openBlock as p, createVNode as o, ref as w, createElementBlock as V, Fragment as z, renderSlot as ye, unref as e, withCtx as g, createElementVNode as f, createCommentVNode as B, renderList as J, createTextVNode as be, toDisplayString as N, h as W, withModifiers as q, normalizeClass as xe } from "vue";
2
2
  import { useRouter as Ce } from "vue-router";
3
- import { u as de, G as M, O as pe, D as fe, B as ue, A as ke, H as ee, J as ge, aa as re } from "./menu-ibc-yXVt.js";
3
+ import { u as de, B as M, M as pe, A as fe, z as ue, D as ee, H as ge, a8 as re } from "./menu-CsIzrBEr.js";
4
4
  import { useI18n as ne, useCoreStore as ve } from "@feedmepos/mf-common";
5
- import { useSnackbar as _e, components as te, FmButtonVariant as j, FmButtonColorThemeVariant as Q, useDialog as he, useBreakpoints as Oe } from "@feedmepos/ui-library";
6
- import { _ as Fe, R as ie } from "./app-CLY6CoaV.js";
7
- import { _ as Me } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
5
+ import { useSnackbar as _e, components as te, FmButtonVariant as G, FmButtonColorThemeVariant as Q, useDialog as ke, useBreakpoints as he } from "@feedmepos/ui-library";
6
+ import { _ as Fe, R as ie } from "./app-CoVUUCa_.js";
7
+ import { _ as Oe } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
8
+ import { Country as Me } from "@feedmepos/core";
8
9
  import { _ as ae } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
9
10
  import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
10
- import { _ as ce, a as De } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CqriuXVC.js";
11
+ import { _ as ce, a as De } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js";
11
12
  import { c as Se } from "./check-C9mY6LiX.js";
12
- import { C as I, a as P } from "./catalogSetting-zrKwGJ_C.js";
13
+ import { C as I, a as P } from "./catalogSetting-BGvckFdh.js";
13
14
  import { _ as Te } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
14
15
  import { _ as Ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
15
- import { C as Ee } from "./catalog-bkFntZNz.js";
16
- const Ae = /* @__PURE__ */ oe({
16
+ import { C as Ae } from "./catalog-CaXceaA2.js";
17
+ const Ee = /* @__PURE__ */ oe({
17
18
  __name: "CatalogUsageTable",
18
19
  props: {
19
20
  catalog: {}
@@ -45,7 +46,7 @@ const Ae = /* @__PURE__ */ oe({
45
46
  }, {
46
47
  header: () => o("div", {
47
48
  class: "w-full flex justify-between"
48
- }, [o("p", null, [d("menu.catalog.usage.usage")]), o(Me, {
49
+ }, [o("p", null, [d("menu.catalog.usage.usage")]), o(Oe, {
49
50
  label: `${d("menu.catalog.usage.products", {
50
51
  count: D.catalog.totalProducts
51
52
  })}`,
@@ -67,8 +68,8 @@ const Ae = /* @__PURE__ */ oe({
67
68
  }
68
69
  }];
69
70
  return (b, C) => {
70
- const E = y("FmTable");
71
- return p(), k(E, {
71
+ const A = y("FmTable");
72
+ return p(), k(A, {
72
73
  "column-defs": L,
73
74
  "row-data": S.value,
74
75
  "page-size": S.value.length,
@@ -88,18 +89,18 @@ const Ae = /* @__PURE__ */ oe({
88
89
  n ?? ue.generator.initMenuV4Catalog(),
89
90
  b.value
90
91
  ));
91
- }, b = T(() => C.version === M.F_MENU_VERSION.enum.v4), C = de(), E = ve(), m = pe(fe(_e())), u = w(
92
+ }, b = T(() => C.version === M.F_MENU_VERSION.enum.v4), C = de(), A = ve(), m = pe(fe(_e())), u = w(
92
93
  I.fromCatalog(ue.generator.initMenuV4Catalog(), b.value)
93
- ), Z = T(() => C.catalogs.map((i) => i.name)), A = T({
94
+ ), Z = T(() => C.catalogs.map((i) => i.name)), E = T({
94
95
  get: () => u.value.taxSetting,
95
96
  set: (i) => {
96
97
  u.value.taxSetting = i;
97
98
  }
98
99
  }), h = T(() => {
99
- var v, O;
100
- if (!E.currentCountry.value) return [];
101
- const i = ((v = u.value.taxSetting) == null ? void 0 : v.mode) === P.MANUAL ? ((O = u.value.taxSetting) == null ? void 0 : O.inclusive) ?? [] : [];
102
- return ke.Country.getCountry(E.currentCountry.value).taxSystems.map((U) => {
100
+ var v, F;
101
+ if (!A.currentCountry.value) return [];
102
+ const i = ((v = u.value.taxSetting) == null ? void 0 : v.mode) === P.MANUAL ? ((F = u.value.taxSetting) == null ? void 0 : F.inclusive) ?? [] : [];
103
+ return Me.getCountry(A.currentCountry.value).taxSystems.map((U) => {
103
104
  const s = i.find((l) => l.systemCode === U.code);
104
105
  return {
105
106
  inclusive: (s == null ? void 0 : s.inclusive) || !1,
@@ -110,14 +111,14 @@ const Ae = /* @__PURE__ */ oe({
110
111
  function Y(i) {
111
112
  const n = u.value.taxSetting, v = n.mode === P.AUTO ? I.manualTax(h.value) : ee(n);
112
113
  v.inclusive ?? (v.inclusive = []);
113
- const O = v.inclusive.findIndex((U) => U.systemCode === i.systemCode);
114
- O < 0 ? v.inclusive.push(i) : v.inclusive.splice(O, 1, i), A.value = v;
114
+ const F = v.inclusive.findIndex((U) => U.systemCode === i.systemCode);
115
+ F < 0 ? v.inclusive.push(i) : v.inclusive.splice(F, 1, i), E.value = v;
115
116
  }
116
- function G(i, n) {
117
+ function K(i, n) {
117
118
  const v = ee(u.value);
118
119
  v.markupOptions && (v.markupOptions[i] = n, u.value = v);
119
120
  }
120
- function K(i) {
121
+ function j(i) {
121
122
  const n = ee(u.value);
122
123
  n.markupOptions && (n.markupOptions.splice(i, 1), u.value = n);
123
124
  }
@@ -142,7 +143,7 @@ const Ae = /* @__PURE__ */ oe({
142
143
  }
143
144
  const { t: r } = ne();
144
145
  return D({ trigger: L }), (i, n) => {
145
- const v = y("fm-text-field"), O = y("fm-radio"), U = y("fm-radio-group"), s = y("fm-checkbox"), l = y("fm-switch"), t = y("fm-select"), x = y("fm-button"), R = y("fm-chip"), F = y("fm-card"), $ = y("fm-side-sheet");
146
+ const v = y("fm-text-field"), F = y("fm-radio"), U = y("fm-radio-group"), s = y("fm-checkbox"), l = y("fm-switch"), t = y("fm-select"), x = y("fm-button"), R = y("fm-chip"), O = y("fm-card"), $ = y("fm-side-sheet");
146
147
  return p(), V(z, null, [
147
148
  ye(i.$slots, "default", { trigger: L }),
148
149
  o($, {
@@ -197,17 +198,17 @@ const Ae = /* @__PURE__ */ oe({
197
198
  o(U, {
198
199
  "model-value": (a = u.value.taxSetting) == null ? void 0 : a.mode,
199
200
  "onUpdate:modelValue": n[1] || (n[1] = (c) => {
200
- c === e(P).AUTO ? A.value = e(I).autoTax() : A.value = e(I).manualTax(h.value);
201
+ c === e(P).AUTO ? E.value = e(I).autoTax() : E.value = e(I).manualTax(h.value);
201
202
  })
202
203
  }, {
203
204
  default: g(() => [
204
- o(O, {
205
+ o(F, {
205
206
  value: e(P).AUTO,
206
207
  label: e(r)("menu.catalog.form.tax.auto.label"),
207
208
  sublabel: e(r)("menu.catalog.form.tax.auto.sublabel"),
208
209
  class: "pl-4"
209
210
  }, null, 8, ["value", "label", "sublabel"]),
210
- o(O, {
211
+ o(F, {
211
212
  value: e(P).MANUAL,
212
213
  label: e(r)("menu.catalog.form.tax.manual.label"),
213
214
  sublabel: e(r)("menu.catalog.form.tax.manual.sublabel")
@@ -216,7 +217,7 @@ const Ae = /* @__PURE__ */ oe({
216
217
  _: 1
217
218
  }, 8, ["model-value"]),
218
219
  ((_ = u.value.taxSetting) == null ? void 0 : _.mode) === e(P).MANUAL ? (p(), V("div", Ne, [
219
- (p(!0), V(z, null, q(h.value, (c) => (p(), k(s, {
220
+ (p(!0), V(z, null, J(h.value, (c) => (p(), k(s, {
220
221
  key: c.systemCode,
221
222
  "model-value": c.inclusive,
222
223
  value: !0,
@@ -290,7 +291,7 @@ const Ae = /* @__PURE__ */ oe({
290
291
  o(x, {
291
292
  "text-color": e(Q).ColorPrimary,
292
293
  "border-color": e(Q).ColorPrimary,
293
- variant: e(j).Secondary,
294
+ variant: e(G).Secondary,
294
295
  label: e(r)("menu.catalog.form.markup.add"),
295
296
  "prepend-icon": "add",
296
297
  onClick: a
@@ -298,16 +299,16 @@ const Ae = /* @__PURE__ */ oe({
298
299
  ]),
299
300
  _: 1
300
301
  }, 8, ["categories", "items"]),
301
- (p(!0), V(z, null, q(u.value.markupOptions, (a, _) => (p(), k(ce, {
302
+ (p(!0), V(z, null, J(u.value.markupOptions, (a, _) => (p(), k(ce, {
302
303
  key: _,
303
304
  categories: e(C).categories,
304
305
  items: e(C).items,
305
306
  "model-value": a,
306
307
  action: "update",
307
- "onUpdate:modelValue": (c) => c && G(_, c)
308
+ "onUpdate:modelValue": (c) => c && K(_, c)
308
309
  }, {
309
310
  default: g(({ trigger: c }) => [
310
- o(F, {
311
+ o(O, {
311
312
  id: JSON.stringify(a),
312
313
  class: "py-12 px-16 cursor-pointer",
313
314
  variant: "outlined",
@@ -328,9 +329,9 @@ const Ae = /* @__PURE__ */ oe({
328
329
  }) : e(r)("menu.catalog.form.markup.all_items")), 1)
329
330
  ]),
330
331
  o(x, {
331
- variant: e(j).Tertiary,
332
+ variant: e(G).Tertiary,
332
333
  "prepend-icon": "delete",
333
- onClick: (se) => K(_)
334
+ onClick: (se) => j(_)
334
335
  }, null, 8, ["variant", "onClick"])
335
336
  ])
336
337
  ]),
@@ -355,20 +356,20 @@ const Ae = /* @__PURE__ */ oe({
355
356
  ], 64);
356
357
  };
357
358
  }
358
- }), me = ze, Ge = {
359
+ }), me = ze, Ke = {
359
360
  key: 0
360
- }, Ke = {
361
- class: "flex justify-end items-center"
362
361
  }, je = {
362
+ class: "flex justify-end items-center"
363
+ }, Ge = {
363
364
  class: "w-[320px]"
364
365
  }, Ye = {
365
366
  key: 1,
366
367
  class: "flex-1 flex flex-col min-h-0"
367
368
  }, He = {
368
369
  class: "p-8"
369
- }, Je = {
370
+ }, We = {
370
371
  class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
371
- }, We = ["onClick"], qe = {
372
+ }, qe = ["onClick"], Je = {
372
373
  class: "flex-1 space-y-4"
373
374
  }, Qe = {
374
375
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
@@ -382,14 +383,14 @@ const Ae = /* @__PURE__ */ oe({
382
383
  class: "fm-typo-en-title-md-600"
383
384
  }, la = {
384
385
  class: "space-y-24"
385
- }, le = "main", ya = /* @__PURE__ */ oe({
386
+ }, le = "main", ba = /* @__PURE__ */ oe({
386
387
  __name: "Catalog",
387
388
  setup(X) {
388
- const D = ve(), d = de(), S = _e(), L = fe(S), b = he(), C = pe(L), E = Ce(), {
389
+ const D = ve(), d = de(), S = _e(), L = fe(S), b = ke(), C = pe(L), A = Ce(), {
389
390
  t: m
390
391
  } = ne();
391
392
  function u(s, l) {
392
- var F, $, a, _;
393
+ var O, $, a, _;
393
394
  const t = D.restaurants.value.find(({
394
395
  _id: c
395
396
  }) => c === l._id), x = [...l.linkedDeliveryCatalogs.map((c) => ({
@@ -397,7 +398,7 @@ const Ae = /* @__PURE__ */ oe({
397
398
  selector: c.catalog
398
399
  })), {
399
400
  label: "Delivery (FoodPanda integration)",
400
- selector: (F = t == null ? void 0 : t.foodpandaDelivery) == null ? void 0 : F.catalogId
401
+ selector: (O = t == null ? void 0 : t.foodpandaDelivery) == null ? void 0 : O.catalogId
401
402
  }, {
402
403
  label: "Delivery (GrabFood integration)",
403
404
  selector: ($ = t == null ? void 0 : t.grabfoodDelivery) == null ? void 0 : $.catalogId
@@ -434,7 +435,7 @@ const Ae = /* @__PURE__ */ oe({
434
435
  usage: u(s, l)
435
436
  })).filter((l) => l.usage.length > 0);
436
437
  }
437
- const A = w(!1), h = w(""), Y = T(() => {
438
+ const E = w(!1), h = w(""), Y = T(() => {
438
439
  var l;
439
440
  return [{
440
441
  id: le,
@@ -451,8 +452,8 @@ const Ae = /* @__PURE__ */ oe({
451
452
  disableDelete: !1,
452
453
  defaultOrderFrom: t.defaultOrderFrom
453
454
  }))].map((t) => {
454
- var F;
455
- const x = Z(((F = t.doc) == null ? void 0 : F._id) || null), R = t.doc ? Ee.getSellingItem(t.doc, d.state.menu) : d.state.menu.modules.item;
455
+ var O;
456
+ const x = Z(((O = t.doc) == null ? void 0 : O._id) || null), R = t.doc ? Ae.getSellingItem(t.doc, d.state.menu) : d.state.menu.modules.item;
456
457
  return {
457
458
  ...t,
458
459
  taxMode: t.taxes ? "Manual" : "Automatic",
@@ -464,8 +465,8 @@ const Ae = /* @__PURE__ */ oe({
464
465
  disableDelete: t.disableDelete
465
466
  };
466
467
  });
467
- }), G = T(() => Y.value.filter((s) => s.id !== le)), K = T(() => G.value.filter((s) => s.name.toLowerCase().includes(h.value.toLowerCase()))), H = (s) => {
468
- d.selectCatalog(s === le ? null : s), E.push({
468
+ }), K = T(() => Y.value.filter((s) => s.id !== le)), j = T(() => K.value.filter((s) => s.name.toLowerCase().includes(h.value.toLowerCase()))), H = (s) => {
469
+ d.selectCatalog(s === le ? null : s), A.push({
469
470
  name: ie.EDIT_CATALOG_PRODUCT,
470
471
  params: {
471
472
  id: s
@@ -494,7 +495,7 @@ const Ae = /* @__PURE__ */ oe({
494
495
  primaryActions: {
495
496
  text: m("menu.common.actions.remove"),
496
497
  close: !0,
497
- variant: j.Destructive
498
+ variant: G.Destructive
498
499
  },
499
500
  secondaryActions: {
500
501
  text: m("menu.common.actions.cancel"),
@@ -505,7 +506,7 @@ const Ae = /* @__PURE__ */ oe({
505
506
  module: M.F_MENU_MODULE_V4_KEY.enum.catalog,
506
507
  operation: ge.F_OPERATION_TYPE.delete,
507
508
  data: s.id
508
- }, s.name, !0), d.selectCatalog(null), await E.push({
509
+ }, s.name, !0), d.selectCatalog(null), await A.push({
509
510
  name: ie.CATALOG
510
511
  });
511
512
  });
@@ -524,7 +525,7 @@ const Ae = /* @__PURE__ */ oe({
524
525
  enableSorting: !1,
525
526
  cell: (s) => {
526
527
  const l = s.row.original;
527
- return J("div", {
528
+ return W("div", {
528
529
  class: "flex justify-between"
529
530
  }, [l.autoLink]);
530
531
  }
@@ -538,33 +539,33 @@ const Ae = /* @__PURE__ */ oe({
538
539
  header: "",
539
540
  cell: (s) => {
540
541
  const l = s.row.original;
541
- return J("div", {
542
+ return W("div", {
542
543
  class: "flex justify-end"
543
- }, [J(te.FmButton, {
544
+ }, [W(te.FmButton, {
544
545
  icon: "file_copy",
545
546
  disabled: !l.id,
546
547
  variant: "tertiary",
547
548
  textColor: "neutral-gray-400",
548
- onClick: W(async () => {
549
+ onClick: q(async () => {
549
550
  await i(l);
550
551
  }, ["stop", "prevent"])
551
- }), J(te.FmButton, {
552
+ }), W(te.FmButton, {
552
553
  icon: "delete",
553
554
  disabled: !l.id,
554
555
  variant: "tertiary",
555
556
  textColor: "neutral-gray-400",
556
- onClick: W(async () => {
557
+ onClick: q(async () => {
557
558
  await n(l);
558
559
  }, ["stop", "prevent"])
559
560
  })]);
560
561
  }
561
- }]), O = Oe(), U = T(() => O.breakpoints.value.xs);
562
+ }]), F = he(), U = T(() => F.breakpoints.value.xs);
562
563
  return (s, l) => {
563
- const t = y("fm-button"), x = y("FmSearch"), R = y("FmTable"), F = y("FmButton"), $ = y("fm-side-sheet");
564
+ const t = y("fm-button"), x = y("FmSearch"), R = y("FmTable"), O = y("FmButton"), $ = y("fm-side-sheet");
564
565
  return p(), k(Ue, {
565
566
  heading: e(m)("menu.catalog.title")
566
567
  }, {
567
- "append-heading": g(() => [G.value.length > 0 ? (p(), k(e(me), {
568
+ "append-heading": g(() => [K.value.length > 0 ? (p(), k(e(me), {
568
569
  key: 0,
569
570
  ref_key: "createCatalogManagerFormRef",
570
571
  ref: r
@@ -575,7 +576,7 @@ const Ae = /* @__PURE__ */ oe({
575
576
  class: xe([["xs:fixed xs:z-10 xs:bottom-[68px] xs:right-16"], "ml-auto xs:ml-0 flex flex-row gap-8"])
576
577
  }, [o(t, {
577
578
  label: e(m)("menu.catalog.actions.view_usage"),
578
- onClick: l[0] || (l[0] = (_) => A.value = !0),
579
+ onClick: l[0] || (l[0] = (_) => E.value = !0),
579
580
  variant: "secondary"
580
581
  }, null, 8, ["label"]), o(t, {
581
582
  label: e(m)("menu.catalog.actions.add"),
@@ -584,7 +585,7 @@ const Ae = /* @__PURE__ */ oe({
584
585
  }, null, 8, ["label", "onClick"])])]),
585
586
  _: 1
586
587
  }, 512)) : B("", !0)]),
587
- default: g(() => [G.value.length === 0 ? (p(), k(e(Te), {
588
+ default: g(() => [K.value.length === 0 ? (p(), k(e(Te), {
588
589
  key: 0,
589
590
  subtitle: e(m)("menu.catalog.empty.subtitle"),
590
591
  title: e(m)("menu.catalog.empty.title")
@@ -610,21 +611,21 @@ const Ae = /* @__PURE__ */ oe({
610
611
  placeholder: e(m)("menu.common.labels.search_placeholder", {
611
612
  type: e(m)("menu.catalog.title")
612
613
  })
613
- }, null, 8, ["modelValue", "placeholder"])]), f("div", Je, [(p(!0), V(z, null, q(K.value, (a) => (p(), V("div", {
614
+ }, null, 8, ["modelValue", "placeholder"])]), f("div", We, [(p(!0), V(z, null, J(j.value, (a) => (p(), V("div", {
614
615
  key: a.id,
615
616
  class: "flex flex-row py-12 px-16 items-center",
616
617
  onClick: (_) => H(a.id)
617
- }, [f("div", qe, [f("p", Qe, " Tax calculation: " + N(a.taxMode), 1), f("p", Xe, " Auto link product: " + N(a.autoLink), 1), f("p", Ze, N(a.name), 1)]), f("div", ea, [o(F, {
618
+ }, [f("div", Je, [f("p", Qe, " Tax calculation: " + N(a.taxMode), 1), f("p", Xe, " Auto link product: " + N(a.autoLink), 1), f("p", Ze, N(a.name), 1)]), f("div", ea, [o(O, {
618
619
  "text-color": e(Q).NeutralGray400,
619
- variant: e(j).Tertiary,
620
+ variant: e(G).Tertiary,
620
621
  "prepend-icon": "file_copy",
621
- onClick: W((_) => i(a), ["stop"])
622
- }, null, 8, ["text-color", "variant", "onClick"]), o(F, {
622
+ onClick: q((_) => i(a), ["stop"])
623
+ }, null, 8, ["text-color", "variant", "onClick"]), o(O, {
623
624
  "text-color": e(Q).NeutralGray400,
624
- variant: e(j).Tertiary,
625
+ variant: e(G).Tertiary,
625
626
  "prepend-icon": "delete",
626
- onClick: W((_) => n(a), ["stop"])
627
- }, null, 8, ["text-color", "variant", "onClick"])])], 8, We))), 128))])])) : (p(), V("div", Ge, [f("div", Ke, [f("div", je, [o(x, {
627
+ onClick: q((_) => n(a), ["stop"])
628
+ }, null, 8, ["text-color", "variant", "onClick"])])], 8, qe))), 128))])])) : (p(), V("div", Ke, [f("div", je, [f("div", Ge, [o(x, {
628
629
  modelValue: h.value,
629
630
  "onUpdate:modelValue": l[1] || (l[1] = (a) => h.value = a),
630
631
  autofocus: "",
@@ -635,8 +636,8 @@ const Ae = /* @__PURE__ */ oe({
635
636
  }, null, 8, ["modelValue", "placeholder"])])]), o(Fe, null, {
636
637
  default: g(() => [o(R, {
637
638
  "column-defs": v.value,
638
- "row-data": K.value,
639
- "page-size": K.value.length,
639
+ "row-data": j.value,
640
+ "page-size": j.value.length,
640
641
  "hide-footer": !0,
641
642
  "shrink-at": !1,
642
643
  "search-value": h.value,
@@ -644,13 +645,13 @@ const Ae = /* @__PURE__ */ oe({
644
645
  }, null, 8, ["column-defs", "row-data", "page-size", "search-value"])]),
645
646
  _: 1
646
647
  })])), o($, {
647
- modelValue: A.value,
648
- "onUpdate:modelValue": l[4] || (l[4] = (a) => A.value = a),
648
+ modelValue: E.value,
649
+ "onUpdate:modelValue": l[4] || (l[4] = (a) => E.value = a),
649
650
  "max-width": 1e3,
650
651
  "dismiss-away": ""
651
652
  }, {
652
653
  "side-sheet-header": g(() => [f("p", aa, N(e(m)("menu.catalog.usage.title")), 1)]),
653
- default: g(() => [f("div", la, [(p(!0), V(z, null, q(Y.value, (a, _) => (p(), k(Ae, {
654
+ default: g(() => [f("div", la, [(p(!0), V(z, null, J(Y.value, (a, _) => (p(), k(Ee, {
654
655
  key: _,
655
656
  catalog: a
656
657
  }, null, 8, ["catalog"]))), 128))])]),
@@ -662,5 +663,5 @@ const Ae = /* @__PURE__ */ oe({
662
663
  }
663
664
  });
664
665
  export {
665
- ya as default
666
+ ba as default
666
667
  };