@feedmepos/mf-menu 0.32.43 → 0.32.45-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 (84) hide show
  1. package/dist/{App-C9b4SjED.js → App-u5AOIdU4.js} +1472 -1459
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C1T4Ewek.js → ApplyProduct.vue_vue_type_script_setup_true_lang-RTdI8EVk.js} +3 -3
  3. package/dist/{Catalog-BVrf3VaX.js → Catalog-DDMz6wD9.js} +44 -44
  4. package/dist/{Category-BkReM5IG.js → Category-BE0d0_de.js} +24 -24
  5. package/dist/{Category-BMzIQqIE.js → Category-DoIleKPb.js} +78 -78
  6. package/dist/{CookingGuide-CvctI1TH.js → CookingGuide-iP5hFtlB.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-bYSEp6Wb.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CSaMT7Gr.js} +1 -1
  8. package/dist/{Group-CHkNuuHE.js → Group-AXDRjsKC.js} +3 -3
  9. package/dist/{Group-BQzmXagr.js → Group-xjimyqnO.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BkruJTpL.js → Group.vue_vue_type_script_setup_true_lang-DB_X7ws3.js} +173 -173
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CBz83Qd1.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D_IUSYDa.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dpx4meDa.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Suib7m8i.js} +1750 -1751
  13. package/dist/{Ingredient-BNsKYrQB.js → Ingredient-yr2DWIMw.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DzzwwdA_.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BpiU1gRP.js} +2 -2
  15. package/dist/{LinkProductSideSheet-C6-wef-M.js → LinkProductSideSheet-2MbaATTn.js} +45 -45
  16. package/dist/{MenuSetting-DRaw7b6m.js → MenuSetting-BhkjzPiN.js} +47 -47
  17. package/dist/{PrintRoute-BKB-thVp.js → PrintRoute-ChqpbVo4.js} +39 -39
  18. package/dist/{Product-vviXmBR1.js → Product-BpnGnMzm.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-5h-k6zad.js → Product.vue_vue_type_script_setup_true_lang-COkk299w.js} +465 -463
  20. package/dist/{ProductInternalTools-DtLk3xFR.js → ProductInternalTools-BEwLYcEn.js} +66 -66
  21. package/dist/Products-lONe7x_i.js +291 -0
  22. package/dist/{Publish-jx0_H_26.js → Publish-CXRgBz-S.js} +29 -29
  23. package/dist/{Recipe-Dk04ge-_.js → Recipe-Bbt3hG6N.js} +24 -24
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DaCVUn1i.js → RuleView.vue_vue_type_script_setup_true_lang-DXisBADc.js} +366 -366
  25. package/dist/{Scheduler-vFTvCVcY.js → Scheduler-DJsgP_Hi.js} +11 -11
  26. package/dist/{ServingSequence-DiBqQ_iS.js → ServingSequence-DALjVV2I.js} +44 -44
  27. package/dist/{Setting-CtzJ_pVM.js → Setting-B23o5SoS.js} +17 -17
  28. package/dist/{Subcategory-Cmv2W67T.js → Subcategory-CS4MEgtM.js} +109 -110
  29. package/dist/{Takeaway-DBW4UPFZ.js → Takeaway-CI2Y-_LF.js} +13 -13
  30. package/dist/{Takeaway-ChaYk0Ix.js → Takeaway-D27iA6M6.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-C7RL3ITP.js → Takeaway.vue_vue_type_script_setup_true_lang-Ca3qK9zO.js} +111 -111
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-edwJ1203.js → Thumbnail.vue_vue_type_script_setup_true_lang-Da2jQE45.js} +27 -27
  33. package/dist/TranslationFieldSection.vue_vue_type_script_setup_true_lang-DUScE-82.js +278 -0
  34. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-E3-hgVdd.js +140 -0
  35. package/dist/TranslationViewChip.vue_vue_type_script_setup_true_lang-BlACWsDs.js +60 -0
  36. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DnuNFxC7.js +6130 -0
  37. package/dist/{Unit-BgLqPMLe.js → Unit-5pv3oxSc.js} +8 -8
  38. package/dist/Variant-CTAI6p6r.js +248 -0
  39. package/dist/{_id_-CDN7as0K.js → _id_-D09xegPQ.js} +28 -28
  40. package/dist/{app-0AQBxO0B.js → app-8-JCz9b5.js} +1 -1
  41. package/dist/app-Bk0DN7oZ.js +363 -0
  42. package/dist/app.js +1 -1
  43. package/dist/apps/mf-menu/src/components/translation/LanguageChip.vue.d.ts +18 -0
  44. package/dist/apps/mf-menu/src/components/translation/LanguageSelector.vue.d.ts +33 -0
  45. package/dist/apps/mf-menu/src/components/translation/LocaleIconBadge.vue.d.ts +29 -0
  46. package/dist/apps/mf-menu/src/components/translation/TranslationFieldRow.vue.d.ts +39 -0
  47. package/dist/apps/mf-menu/src/components/translation/TranslationViewChip.vue.d.ts +15 -0
  48. package/dist/apps/mf-menu/src/composable/translationLanguages.d.ts +16 -0
  49. package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
  50. package/dist/apps/mf-menu/src/utils/translation.d.ts +1 -1
  51. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  52. package/dist/assets/{linked-status-DTIHdzDw.js → linked-status-dENy3aw3.js} +5 -5
  53. package/dist/assets/{menu-export-CpcyYnR-.js → menu-export-E9V7bg-T.js} +2 -2
  54. package/dist/assets/{override-menu-CASoFjhZ.js → override-menu-HaI7O9Fu.js} +5 -5
  55. package/dist/assets/{validate-menu-C5AkexWv.js → validate-menu-C8LhbVSM.js} +2 -2
  56. package/dist/{catalog-BA1e4WAu.js → catalog-DhXoYsFF.js} +1 -1
  57. package/dist/{catalogSetting-DE5rjVfj.js → catalogSetting-DyRqWzdW.js} +1 -1
  58. package/dist/{currency-D5qYOpxI.js → currency-BkmIftYM.js} +1 -1
  59. package/dist/dayjs.min-nQqVHQcC.js +6 -0
  60. package/dist/index-28XF3UnN.js +246 -0
  61. package/dist/{index-vPs04fVf.js → index-BQ95VVc6.js} +33 -32
  62. package/dist/index-BXWquw9Z.js +472 -0
  63. package/dist/{index.vue_vue_type_script_setup_true_lang-DSZsSghE.js → index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js} +270 -244
  64. package/dist/{item-Dp17qTYi.js → item-DmTvGVsp.js} +3270 -3406
  65. package/dist/{jszip.min-DlpCmtaR.js → jszip.min-8Z5To_Pk.js} +6 -7
  66. package/dist/{menu-BOVrJ7di.js → menu-Csu9X1_I.js} +1 -1
  67. package/dist/{menuV2-BHnldQiM.js → menuV2-CC-vGiv5.js} +71 -71
  68. package/dist/{priceTier-BRQz1GRF.js → priceTier-Bj9Y6SSr.js} +1 -1
  69. package/dist/{rules-CO49kqfr.js → rules-Dod2cBHH.js} +12 -12
  70. package/dist/{scheduler-BDHjl8t7.js → scheduler-B3M-715v.js} +29 -29
  71. package/dist/{toExcel-DGdZKSxT.js → toExcel-67ufpOxx.js} +2 -2
  72. package/dist/{unit-D7QVgTp_.js → unit-BQrnccs6.js} +35 -35
  73. package/package.json +1 -1
  74. package/dist/Products-BR3iBVFd.js +0 -307
  75. package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-I6qrPmxY.js +0 -144
  76. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-Cs6s_csi.js +0 -196
  77. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DIbjlDVn.js +0 -5767
  78. package/dist/Variant-B8yxF5mJ.js +0 -247
  79. package/dist/app-BU6wILmn.js +0 -2286
  80. package/dist/dayjs.min-BFDAHpA8.js +0 -7
  81. package/dist/index--nQbIQ0d.js +0 -545
  82. package/dist/translation-BCZ1Ruvv.js +0 -93
  83. /package/dist/apps/mf-menu/src/components/{TranslationBadge.vue.d.ts → translation/TranslationBadge.vue.d.ts} +0 -0
  84. /package/dist/apps/mf-menu/src/components/{TranslationFieldSection.vue.d.ts → translation/TranslationFieldSection.vue.d.ts} +0 -0
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as L, computed as d, ref as g, h as k, withModifiers as x, resolveComponent as p, createBlock as b, openBlock as a, unref as e, withCtx as h, createElementVNode as o, createVNode as r, toDisplayString as f, createCommentVNode as N, createElementBlock as u, Fragment as v, normalizeClass as C, renderList as T } from "vue";
2
2
  import { useI18n as E } from "@feedmepos/mf-common";
3
- import { useSnackbar as K, components as R, useBreakpoints as D, FmButtonVariant as I } from "@feedmepos/ui-library";
4
- import { _ as q } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { B as A, u as G, a2 as H } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
3
+ import { useSnackbar as K, components as R, useBreakpoints as D, FmButtonVariant as G } from "@feedmepos/ui-library";
4
+ import { _ as I } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
+ import { G as q, u as A, a4 as H } from "./index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js";
6
6
  import { _ as J } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { u as O, U as P } from "./unit-D7QVgTp_.js";
7
+ import { u as O, U as P } from "./unit-BQrnccs6.js";
8
8
  const Q = {
9
9
  key: 0,
10
10
  class: "h-[600px]"
@@ -32,8 +32,8 @@ const Q = {
32
32
  __name: "Unit",
33
33
  setup(re) {
34
34
  const w = K();
35
- A(w);
36
- const S = G(), i = O(), {
35
+ q(w);
36
+ const S = A(), i = O(), {
37
37
  t: n
38
38
  } = E(), m = d(() => S.units), _ = d(() => m.value.filter((s) => `${s.name} ${s.abbrev}`.toLowerCase().includes(c.value.toLowerCase()))), c = g(""), U = g([{
39
39
  accessorKey: "name",
@@ -101,7 +101,7 @@ const Q = {
101
101
  class: C(["py-12 px-16", "flex space-x-8", "items-center"]),
102
102
  onClick: () => e(i).updateUnit(t)
103
103
  }, [o("div", ee, [o("p", te, f(t.name), 1), o("p", ne, f(e(n)("menu.common.labels.symbol")) + ": " + f(t.abbrev), 1)]), r(j, {
104
- variant: e(I).Tertiary,
104
+ variant: e(G).Tertiary,
105
105
  "prepend-icon": "delete",
106
106
  "text-color": "neutral-gray-400",
107
107
  onClick: x(() => e(i).deleteUnit(t), ["stop"])
@@ -125,7 +125,7 @@ const Q = {
125
125
  "append-heading": h(() => [o("div", oe, [o("div", le, [o("div", ae, [o("p", se, f(F.value), 1)])]), r(z), r(e(P), null, {
126
126
  default: h(({
127
127
  trigger: t
128
- }) => [m.value.length > 0 ? (a(), b(q, {
128
+ }) => [m.value.length > 0 ? (a(), b(I, {
129
129
  key: 0,
130
130
  label: e(n)("menu.unit.add"),
131
131
  "prepend-icon": "add",
@@ -0,0 +1,248 @@
1
+ import { getCurrentInstance as $, defineComponent as T, computed as b, onMounted as U, h as u, resolveComponent as w, createBlock as j, openBlock as p, unref as o, withCtx as _, createElementBlock as y, Fragment as M, createElementVNode as i, createVNode as c, isRef as z, normalizeClass as F, renderList as R, toDisplayString as S, withModifiers as B, createCommentVNode as G } from "vue";
2
+ import { useI18n as N } from "@feedmepos/mf-common";
3
+ import { useDialog as Y, useSnackbar as A, FmButtonVariant as E, components as Q, useBreakpoints as q } from "@feedmepos/ui-library";
4
+ import { _ as H } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
+ import { _ as J } from "./app-Bk0DN7oZ.js";
6
+ import { G as D, u as K, Q as O, M as W, A as X, a4 as Z } from "./index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js";
7
+ import { V as L } from "./index-BXWquw9Z.js";
8
+ import { _ as ee } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
9
+ import { _ as ae } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-BlACWsDs.js";
10
+ import { u as oe } from "./search-BAPEUu1R.js";
11
+ import { defineStore as ne } from "pinia";
12
+ import { c as te } from "./createComponentProgrammatically-Bt2rn1IQ.js";
13
+ import { g as le } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-DUScE-82.js";
14
+ const se = ne("variant-manager", () => {
15
+ const I = Y(), t = A(), g = D(t), x = O(g);
16
+ K();
17
+ const f = $(), { t: m } = N(), k = (r) => {
18
+ var h, a;
19
+ const { vNode: V } = te(
20
+ L,
21
+ f,
22
+ r
23
+ );
24
+ (a = (h = V.component) == null ? void 0 : h.exposed) == null || a.trigger();
25
+ };
26
+ async function d(r) {
27
+ k({
28
+ initialValue: r
29
+ });
30
+ }
31
+ async function v(r) {
32
+ I.open({
33
+ title: m("menu.common.dialog.remove.variant.title"),
34
+ message: m("menu.common.dialog.remove.variant.message", { name: r.name }),
35
+ primaryActions: {
36
+ text: m("menu.common.actions.remove"),
37
+ close: !0,
38
+ variant: E.Destructive
39
+ },
40
+ secondaryActions: {
41
+ text: m("menu.common.actions.cancel"),
42
+ close: !0
43
+ }
44
+ }).onPrimary(async () => {
45
+ await x.updateMenu(
46
+ {
47
+ module: X.F_MENU_MODULE_V4_KEY.enum.variant,
48
+ operation: W.F_OPERATION_TYPE.delete,
49
+ data: r._id
50
+ },
51
+ r.name,
52
+ !0
53
+ );
54
+ });
55
+ }
56
+ return {
57
+ deleteVariant: v,
58
+ updateVariant: d
59
+ };
60
+ }), re = {
61
+ key: 0,
62
+ class: "flex-1 flex flex-col overflow-hidden max-h-[calc(100vh-56px)] gap-8"
63
+ }, ie = {
64
+ class: "flex justify-end"
65
+ }, ce = {
66
+ class: "w-[320px]"
67
+ }, me = {
68
+ class: "px-16 py-8"
69
+ }, de = {
70
+ class: /* @__PURE__ */ F(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
71
+ }, ue = ["onClick"], pe = {
72
+ class: "flex-1 space-y-4"
73
+ }, fe = {
74
+ class: "fm-typo-en-body-lg-600"
75
+ }, _e = {
76
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
77
+ }, ye = {
78
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
79
+ }, ge = {
80
+ key: 1,
81
+ class: "xs:pt-16"
82
+ }, Ie = /* @__PURE__ */ T({
83
+ __name: "Variant",
84
+ setup(I) {
85
+ const {
86
+ t
87
+ } = N(), g = K(), x = O(D(A())), f = se(), m = b(() => g.variants.map((a) => ({
88
+ ...a,
89
+ usedBy: g.items.filter((e) => {
90
+ var s;
91
+ return (s = e.variant) == null ? void 0 : s.variantGroupIds.includes(a._id);
92
+ }).map(({
93
+ _id: e
94
+ }) => ({
95
+ _id: e
96
+ }))
97
+ }))), {
98
+ filter: k,
99
+ searchKey: d
100
+ } = oe(), v = b(() => m.value.filter((a) => {
101
+ var e;
102
+ return k([a.name, ...((e = a.options) == null ? void 0 : e.map((s) => s.name)) ?? []]);
103
+ }));
104
+ U(() => g.selectCatalog(null));
105
+ const r = b(() => [{
106
+ accessorKey: "name",
107
+ header: () => t("menu.variant.columns.name"),
108
+ size: 360,
109
+ enableSorting: !1,
110
+ cell: (a) => {
111
+ const e = a.row.original, s = a.getValue();
112
+ return u("div", {
113
+ class: "flex items-center gap-8"
114
+ }, [u("span", {
115
+ class: "break-all"
116
+ }, s), e.name_locale ? u(ae, {
117
+ nameLocale: e.name_locale ?? {}
118
+ }) : null]);
119
+ }
120
+ }, {
121
+ accessorKey: "options",
122
+ header: () => t("menu.variant.columns.options"),
123
+ size: 560,
124
+ enableSorting: !1,
125
+ cell: (a) => {
126
+ const e = a.getValue() ?? [], s = e.some((l) => Object.keys(l.name_locale ?? {}).length > 0), C = Array.from(new Set(e.flatMap((l) => Object.keys(l.name_locale ?? {})))).map((l) => le(l));
127
+ return u("div", {
128
+ class: "flex items-center gap-8"
129
+ }, [u("span", {
130
+ class: "break-all"
131
+ }, e == null ? void 0 : e.map((l) => l.name).join(", ")), ...s ? C.map((l) => u("div", {
132
+ class: "rounded-lg border border-fm-color-primary text-fm-color-primary flex items-center justify-center fm-typo-en-body-sm-600 px-8"
133
+ }, l)) : []]);
134
+ }
135
+ }, {
136
+ accessorKey: "usedBy",
137
+ header: () => t("menu.variant.columns.applied_products"),
138
+ enableSorting: !1,
139
+ size: 180,
140
+ cell: (a) => t("menu.common.labels.items_linked", {
141
+ count: a.getValue().length
142
+ })
143
+ }, {
144
+ id: "action",
145
+ size: 52,
146
+ meta: {
147
+ cellClass: "pl-16",
148
+ headerContentClass: "-mx-16"
149
+ },
150
+ cell: (a) => u("div", {
151
+ class: "w-full flex justify-end items-center"
152
+ }, [u(Q.FmButton, {
153
+ prependIcon: "delete",
154
+ variant: E.Tertiary,
155
+ textColor: "neutral-gray-400",
156
+ onClick: (e) => {
157
+ e.stopPropagation(), f.deleteVariant(a.row.original);
158
+ }
159
+ })])
160
+ }]), V = q(), h = b(() => V.breakpoints.value.xs);
161
+ return (a, e) => {
162
+ const s = w("fm-search"), C = w("fm-table"), l = w("fm-button");
163
+ return p(), j(ee, {
164
+ heading: o(t)("menu.variant.title")
165
+ }, {
166
+ "append-heading": _(() => [m.value.length ? (p(), j(o(L), {
167
+ key: 0
168
+ }, {
169
+ default: _(({
170
+ trigger: n
171
+ }) => [c(H, {
172
+ class: "ml-auto",
173
+ label: o(t)("menu.variant.add"),
174
+ "prepend-icon": "add",
175
+ onClick: B(n, ["stop"])
176
+ }, null, 8, ["label", "onClick"])]),
177
+ _: 1
178
+ })) : G("", !0)]),
179
+ default: _(() => [m.value.length ? (p(), y(M, {
180
+ key: 0
181
+ }, [h.value ? (p(), y(M, {
182
+ key: 1
183
+ }, [i("div", me, [c(s, {
184
+ autofocus: "",
185
+ modelValue: o(d),
186
+ "onUpdate:modelValue": e[2] || (e[2] = (n) => z(d) ? d.value = n : null),
187
+ placeholder: o(t)("menu.common.labels.search_placeholder", {
188
+ type: "variants"
189
+ })
190
+ }, null, 8, ["modelValue", "placeholder"])]), i("div", de, [(p(!0), y(M, null, R(v.value, (n) => (p(), y("div", {
191
+ key: n._id,
192
+ class: F(["py-12 px-16", "flex space-x-8", "items-center", "cursor-pointer"]),
193
+ onClick: () => o(f).updateVariant(n)
194
+ }, [i("div", pe, [i("p", fe, S(n.name), 1), i("div", null, [i("p", _e, S(o(t)("menu.common.labels.items_linked", {
195
+ count: n.usedBy.length
196
+ })), 1), i("p", ye, S(o(t)("menu.variant.mobile.value", {
197
+ values: n.options.map((P) => P.name).join(", ")
198
+ })), 1)])]), c(l, {
199
+ variant: o(E).Tertiary,
200
+ "prepend-icon": "delete",
201
+ "text-color": "neutral-gray-400",
202
+ onClick: B(() => o(f).deleteVariant(n), ["stop"])
203
+ }, null, 8, ["variant", "onClick"])], 8, ue))), 128))])], 64)) : (p(), y("div", re, [i("div", ie, [i("div", ce, [c(s, {
204
+ autofocus: "",
205
+ modelValue: o(d),
206
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => z(d) ? d.value = n : null),
207
+ placeholder: o(t)("menu.common.labels.search_placeholder", {
208
+ type: "variants"
209
+ })
210
+ }, null, 8, ["modelValue", "placeholder"])])]), c(J, null, {
211
+ default: _(() => [c(C, {
212
+ "column-defs": r.value,
213
+ loading: o(x).checkMenuIsLoading(),
214
+ "page-size": v.value.length,
215
+ "row-data": v.value,
216
+ "shrink-at": !1,
217
+ class: "flex-1 overflow-hidden",
218
+ "hide-footer": "",
219
+ "pin-header-row": "",
220
+ onRowClick: e[1] || (e[1] = (n) => {
221
+ o(f).updateVariant(n.original);
222
+ })
223
+ }, null, 8, ["column-defs", "loading", "page-size", "row-data"])]),
224
+ _: 1
225
+ })]))], 64)) : (p(), y("div", ge, [c(Z, {
226
+ subtitle: o(t)("menu.variant.empty.subtitle"),
227
+ title: o(t)("menu.variant.empty.title")
228
+ }, {
229
+ action: _(() => [c(o(L), null, {
230
+ default: _(({
231
+ trigger: n
232
+ }) => [c(l, {
233
+ "prepend-icon": "add",
234
+ label: o(t)("menu.variant.add"),
235
+ onClick: B(n, ["stop"])
236
+ }, null, 8, ["label", "onClick"])]),
237
+ _: 1
238
+ })]),
239
+ _: 1
240
+ }, 8, ["subtitle", "title"])]))]),
241
+ _: 1
242
+ }, 8, ["heading"]);
243
+ };
244
+ }
245
+ });
246
+ export {
247
+ Ie as default
248
+ };
@@ -1,23 +1,23 @@
1
- import { defineComponent as F, computed as d, ref as p, watch as A, onMounted as H, resolveComponent as m, createElementBlock as K, openBlock as b, Fragment as W, createVNode as n, withCtx as u, createElementVNode as i, toDisplayString as M, unref as e, createBlock as R } from "vue";
2
- import { D as j } from "./dayjs.min-BFDAHpA8.js";
3
- import { useRoute as J, useRouter as Q } from "vue-router";
4
- import { _ as X, w as Z } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Dpx4meDa.js";
5
- import { B as ee, u as te, A as ae, G as oe, O as ne } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
1
+ import { defineComponent as F, computed as d, ref as p, watch as A, onMounted as H, resolveComponent as m, createElementBlock as K, openBlock as b, Fragment as Q, createVNode as n, withCtx as u, createElementVNode as i, toDisplayString as M, unref as e, createBlock as D } from "vue";
2
+ import { D as W } from "./dayjs.min-nQqVHQcC.js";
3
+ import { useRoute as j, useRouter as J } from "vue-router";
4
+ import { _ as X, w as Z } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Suib7m8i.js";
5
+ import { G as ee, u as te, D as ae, I as oe, Q as ne } from "./index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js";
6
6
  import { useI18n as le } from "@feedmepos/mf-common";
7
7
  import { useSnackbar as se } from "@feedmepos/ui-library";
8
- import { _ as D } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
9
- import { L as V } from "./LinkProductSideSheet-C6-wef-M.js";
8
+ import { _ as R } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
9
+ import { L as V } from "./LinkProductSideSheet-2MbaATTn.js";
10
10
  import { _ as ue } from "./index-CisutoS9.js";
11
11
  import { _ as re } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
12
- import { u as ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-edwJ1203.js";
13
- import { a as me } from "./menu-BOVrJ7di.js";
14
- import { m as ce } from "./toExcel-DGdZKSxT.js";
15
- import { _ as de, u as pe, c as _e } from "./scheduler-BDHjl8t7.js";
16
- import { R as r } from "./app-BU6wILmn.js";
12
+ import { u as ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-Da2jQE45.js";
13
+ import { a as me } from "./menu-Csu9X1_I.js";
14
+ import { m as ce } from "./toExcel-67ufpOxx.js";
15
+ import { _ as de, u as pe, c as _e } from "./scheduler-B3M-715v.js";
16
+ import { R as r } from "./app-Bk0DN7oZ.js";
17
17
  const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class: "flex ml-auto space-x-8" }, be = { class: "flex-1 flex flex-col overflow-hidden" }, Ge = /* @__PURE__ */ F({
18
18
  __name: "[id]",
19
19
  setup(ke) {
20
- const E = J(), _ = Q(), k = ee(se()), L = ne(k), a = te(), { t: l } = le(), O = d(() => a.categorizedRawMenuItems), f = d(() => !a.state.currentSchedulerId), G = p();
20
+ const E = j(), _ = J(), k = ee(se()), L = ne(k), a = te(), { t: l } = le(), O = d(() => a.categorizedRawMenuItems), f = d(() => !a.state.currentSchedulerId), G = p();
21
21
  async function z(o) {
22
22
  const t = o._id ? pe(o) : _e(o);
23
23
  await L.updateMenu(t, o.name);
@@ -66,7 +66,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
66
66
  await k.minor(
67
67
  async () => {
68
68
  await a.readMenu();
69
- const o = await ce($.value), t = `menu_${j().format("DD-MM-YYYY_HH-mm")}`;
69
+ const o = await ce($.value), t = `menu_${W().format("DD-MM-YYYY_HH-mm")}`;
70
70
  await Z(o, `${t}.xlsx`, {
71
71
  bookType: "xlsx",
72
72
  bookSST: !1,
@@ -82,12 +82,12 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
82
82
  linkItemRules: T,
83
83
  handleSubmit: y,
84
84
  catalogManager: C,
85
- schedulerManager: w
85
+ schedulerManager: I
86
86
  } = ie(!1);
87
87
  return me().resetOnUnmount(), (o, t) => {
88
- var I;
89
- const Y = m("fm-bottom-sheet"), N = m("fm-button"), B = m("router-link"), P = m("fm-tabs"), q = m("router-view");
90
- return b(), K(W, null, [
88
+ var w;
89
+ const Y = m("fm-bottom-sheet"), N = m("fm-button"), P = m("router-link"), q = m("fm-tabs"), B = m("router-view");
90
+ return b(), K(Q, null, [
91
91
  n(de, {
92
92
  ref_key: "schedulerDialogRef",
93
93
  ref: G,
@@ -122,11 +122,11 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
122
122
  _: 1
123
123
  }, 8, ["modelValue"]),
124
124
  n(re, {
125
- heading: ((I = e(a).currentCatalog) == null ? void 0 : I.name) ?? "Main",
125
+ heading: ((w = e(a).currentCatalog) == null ? void 0 : w.name) ?? "Main",
126
126
  class: "flex flex-col max-h-[calc(100vh-56px)] overflow-hidden"
127
127
  }, {
128
128
  "prepend-heading": u(() => [
129
- n(B, {
129
+ n(P, {
130
130
  to: { name: e(r).CATALOG },
131
131
  class: "mr-8",
132
132
  title: e(l)("menu.catalog.edit.back")
@@ -142,7 +142,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
142
142
  ]),
143
143
  "append-heading": u(() => [
144
144
  i("div", ge, [
145
- f.value ? (b(), R(V, {
145
+ f.value ? (b(), D(V, {
146
146
  key: 0,
147
147
  "categorized-items": e(C).linkableItems.value,
148
148
  "initial-value": e(C).currentItems.value,
@@ -154,17 +154,17 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
154
154
  onSubmit: e(y)
155
155
  }, {
156
156
  default: u(({ trigger: s }) => [
157
- n(D, {
157
+ n(R, {
158
158
  label: e(l)("menu.catalog.edit.link_product"),
159
159
  "prepend-icon": "link",
160
160
  onClick: s
161
161
  }, null, 8, ["label", "onClick"])
162
162
  ]),
163
163
  _: 1
164
- }, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (b(), R(V, {
164
+ }, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (b(), D(V, {
165
165
  key: 1,
166
- "categorized-items": e(w).linkableItems.value,
167
- "initial-value": e(w).currentItems.value,
166
+ "categorized-items": e(I).linkableItems.value,
167
+ "initial-value": e(I).currentItems.value,
168
168
  "show-variant": !1,
169
169
  "menu-items": e(x),
170
170
  categories: e(S),
@@ -173,7 +173,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
173
173
  onSubmit: e(y)
174
174
  }, {
175
175
  default: u(({ trigger: s }) => [
176
- n(D, {
176
+ n(R, {
177
177
  label: e(l)("menu.catalog.edit.apply_scheduler"),
178
178
  onClick: s
179
179
  }, null, 8, ["label", "onClick"])
@@ -183,7 +183,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
183
183
  ])
184
184
  ]),
185
185
  default: u(() => [
186
- n(P, {
186
+ n(q, {
187
187
  modelValue: c.value,
188
188
  "onUpdate:modelValue": t[3] || (t[3] = (s) => c.value = s),
189
189
  items: h.value,
@@ -191,7 +191,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
191
191
  }, null, 8, ["modelValue", "items"]),
192
192
  i("div", be, [
193
193
  n(ue, { "menu-store": e(a) }, null, 8, ["menu-store"]),
194
- n(q)
194
+ n(B)
195
195
  ])
196
196
  ]),
197
197
  _: 1
@@ -1,5 +1,5 @@
1
1
  import { defineStore as r } from "pinia";
2
- import { a7 as a, a8 as s, a9 as l } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
2
+ import { a9 as a, aa as s, ab as l } from "./index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js";
3
3
  const u = {
4
4
  async read() {
5
5
  return a(await s().get("/public-setting"));