@feedmepos/mf-menu 0.32.37 → 0.32.38

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 (129) hide show
  1. package/dist/{App-Dl-BiHwh.js → App-CONXGagS.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Z4PgBxr3.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DS_gQ7_2.js} +3 -3
  3. package/dist/{Catalog-BSZ8BAbX.js → Catalog-DqGqLNN2.js} +6 -6
  4. package/dist/Category-Brn_eOxZ.js +224 -0
  5. package/dist/{Category-bGvXpr0F.js → Category-DlvKgR7e.js} +9 -9
  6. package/dist/{CookingGuide-DijUR2JM.js → CookingGuide-DvsYJxXb.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B30t_PW1.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CoAJkdZX.js} +1 -1
  8. package/dist/{Group-O4L3iHx0.js → Group-BTdbQ303.js} +1 -1
  9. package/dist/{Group-CrqE40ia.js → Group-CeOonB-B.js} +7 -7
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-CsM72Jnq.js → Group.vue_vue_type_script_setup_true_lang-WW3jF2A7.js} +227 -216
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BGR4kFzj.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Btb2BTqb.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-wf0Wm51b.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DLswQZTA.js} +315 -315
  13. package/dist/{Ingredient-DvvuwOdH.js → Ingredient-DNVMZVrz.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-anFCPZZD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BBjjgCDV.js} +2 -2
  15. package/dist/{LinkProductSideSheet-ImK8azTA.js → LinkProductSideSheet-1ZQVQTG_.js} +3 -3
  16. package/dist/{MenuSetting-BX0ohmwF.js → MenuSetting-CTCx0oeP.js} +5 -5
  17. package/dist/{PrintRoute-CXYZHJsf.js → PrintRoute-CZcDiXfi.js} +4 -4
  18. package/dist/{Product-BnnwL5DZ.js → Product-XtB1aNsr.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DUBnQJZ1.js → Product.vue_vue_type_script_setup_true_lang-vf14Uzzm.js} +348 -337
  20. package/dist/{ProductInternalTools-DzRnmE1r.js → ProductInternalTools-DY1Np_PQ.js} +22 -22
  21. package/dist/{Products-CtzHONQZ.js → Products-DQorirQ3.js} +30 -30
  22. package/dist/{Publish-DmIbDy8-.js → Publish-Bv6Yiafq.js} +3 -3
  23. package/dist/{Recipe-D_0Ezt1C.js → Recipe-BDjd8TQg.js} +4 -4
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DdeQnyfQ.js → RuleView.vue_vue_type_script_setup_true_lang-DLMPV1-F.js} +2 -2
  25. package/dist/{Scheduler-BgQsbdVM.js → Scheduler-XTwUJH8U.js} +3 -3
  26. package/dist/{ServingSequence-DCRzJsrs.js → ServingSequence-BujAc7xS.js} +3 -3
  27. package/dist/{Setting-CgtttPN_.js → Setting-BUovlSPt.js} +5 -5
  28. package/dist/Subcategory-BWZdguIR.js +345 -0
  29. package/dist/{Takeaway-CExKsbN5.js → Takeaway-CGGaO_dh.js} +4 -4
  30. package/dist/{Takeaway-BfcHs1we.js → Takeaway-Doy30uHo.js} +1 -1
  31. package/dist/Takeaway.vue_vue_type_script_setup_true_lang-Iy2ZwQf_.js +316 -0
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Br279NC_.js → Thumbnail.vue_vue_type_script_setup_true_lang-CY9TyaLG.js} +4 -4
  33. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-DiGAs3Gd.js +185 -0
  34. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CZq5WTEG.js +6120 -0
  35. package/dist/{Unit-B6P_ykM-.js → Unit-Bl0DBmQ3.js} +2 -2
  36. package/dist/Variant-DgUxTOkz.js +247 -0
  37. package/dist/{_id_-D2ozS9Ck.js → _id_-BqediDNk.js} +9 -9
  38. package/dist/app-BVB_5Ks2.js +363 -0
  39. package/dist/{app-DqyNXgYz.js → app-DAPQhgfg.js} +1 -1
  40. package/dist/app.js +1 -1
  41. package/dist/apps/mf-menu/src/app.d.ts +264 -0
  42. package/dist/apps/mf-menu/src/components/ProductTranslationDialog.vue.d.ts +41 -0
  43. package/dist/apps/mf-menu/src/components/TranslationBadge.vue.d.ts +29 -0
  44. package/dist/apps/mf-menu/src/components/TranslationFieldSection.vue.d.ts +39 -0
  45. package/dist/apps/mf-menu/src/components/TranslationSideSheet.vue.d.ts +23 -0
  46. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +12 -0
  47. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +6 -0
  48. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +54 -0
  49. package/dist/apps/mf-menu/src/components/feature/CategoryManager/Form.vue.d.ts +1 -0
  50. package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +1 -0
  51. package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +16 -0
  52. package/dist/apps/mf-menu/src/components/feature/GroupManager/ProductOverrideTranslation.vue.d.ts +22 -0
  53. package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +6 -0
  54. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +20 -0
  55. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +20 -0
  56. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/category.d.ts +8 -2
  57. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +24 -1
  58. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +16 -0
  59. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +10 -0
  60. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +16 -0
  61. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +6 -0
  62. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +24 -0
  63. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +30 -0
  64. package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +10 -0
  65. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +125 -1
  66. package/dist/apps/mf-menu/src/components/feature/VariantManager/ProductVariantTranslation.vue.d.ts +37 -0
  67. package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +20 -0
  68. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +16 -0
  69. package/dist/apps/mf-menu/src/helper/item.d.ts +1 -0
  70. package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +10 -0
  71. package/dist/apps/mf-menu/src/helper/menu.d.ts +11 -0
  72. package/dist/apps/mf-menu/src/helper/menuImport.d.ts +125 -1
  73. package/dist/apps/mf-menu/src/helper/menuSanitizer.d.ts +125 -1
  74. package/dist/apps/mf-menu/src/manager/menu/category.d.ts +8 -2
  75. package/dist/apps/mf-menu/src/manager/menu/group.d.ts +1 -0
  76. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +125 -1
  77. package/dist/apps/mf-menu/src/manager/menu/subcategory.d.ts +6 -0
  78. package/dist/apps/mf-menu/src/stores/manager/item.d.ts +31 -1
  79. package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +16 -0
  80. package/dist/apps/mf-menu/src/stores/manager/takeaway.d.ts +9 -0
  81. package/dist/apps/mf-menu/src/stores/menu.d.ts +125 -1
  82. package/dist/apps/mf-menu/src/utils/translation.d.ts +2 -0
  83. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddCategoryDialogContentComponent.vue.d.ts +1 -0
  84. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +20 -0
  85. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +46 -0
  86. package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +10 -0
  87. package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +10 -0
  88. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  89. package/dist/assets/linked-status-CupfG8qX.js +13 -0
  90. package/dist/assets/menu-export-CL6U9A01.js +107 -0
  91. package/dist/assets/override-menu-K_rFGpIx.js +13 -0
  92. package/dist/assets/validate-menu-Dr7DxB6L.js +13 -0
  93. package/dist/{catalog-CFKVaXk7.js → catalog-8-hugI0j.js} +1 -1
  94. package/dist/{catalogSetting-N4nT-nGm.js → catalogSetting-BWa1ZTnY.js} +1 -1
  95. package/dist/{currency-Bi_GukGE.js → currency-B59CBSWJ.js} +1 -1
  96. package/dist/dayjs.min-D1xLv5bP.js +6 -0
  97. package/dist/index-ChzxrjXq.js +539 -0
  98. package/dist/index-DIXBx1sl.js +335 -0
  99. package/dist/{index-uiJS0BKT.js → index-wA29dyse.js} +1 -1
  100. package/dist/{index.vue_vue_type_script_setup_true_lang-CL6a622s.js → index.vue_vue_type_script_setup_true_lang-CZJpW7cW.js} +18104 -17902
  101. package/dist/item-Fu9YmyOy.js +8117 -0
  102. package/dist/{jszip.min-v__o3BM4.js → jszip.min-qs5Z6KRL.js} +383 -383
  103. package/dist/{menu-LtIuM7Qj.js → menu-CoqhBDql.js} +1 -1
  104. package/dist/{menuV2-N0hB53Gw.js → menuV2-CnCDR__p.js} +125 -125
  105. package/dist/mf-menu.css +1 -1
  106. package/dist/{priceTier-DZeAvlXs.js → priceTier-BvG_RNTn.js} +1 -1
  107. package/dist/rules-Av0lxCL-.js +212 -0
  108. package/dist/{scheduler-FVlscyjB.js → scheduler-CrvDOlmc.js} +4 -4
  109. package/dist/{toExcel-DBCbupeI.js → toExcel-CnzBt_4W.js} +2 -2
  110. package/dist/translation-BeqjfyEb.js +75 -0
  111. package/dist/{unit-DNphv-4C.js → unit-h28_cadr.js} +2 -2
  112. package/package.json +3 -3
  113. package/dist/Category-DMgNea31.js +0 -392
  114. package/dist/Subcategory-6SgvwWpX.js +0 -280
  115. package/dist/Takeaway.vue_vue_type_script_setup_true_lang-GAZ3S2_n.js +0 -305
  116. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BFwMfAlB.js +0 -6024
  117. package/dist/Variant-DmNuLi96.js +0 -230
  118. package/dist/app-CE0yoao0.js +0 -363
  119. package/dist/assets/linked-status-BB6BrSUB.js +0 -13
  120. package/dist/assets/menu-export-C1TBcoi-.js +0 -107
  121. package/dist/assets/override-menu-C0RijOOI.js +0 -13
  122. package/dist/assets/validate-menu-9VpR7oZY.js +0 -13
  123. package/dist/category-BSGaVgyv.js +0 -156
  124. package/dist/dayjs.min-DgXlcVSD.js +0 -6
  125. package/dist/index-BaxQ5Nq0.js +0 -273
  126. package/dist/index-Bun2EboK.js +0 -239
  127. package/dist/item-DPivBmJh.js +0 -6950
  128. package/dist/rules-CIWTZQfh.js +0 -6
  129. package/dist/subcategory-CIctYwBF.js +0 -148
@@ -2,9 +2,9 @@ import { defineComponent as L, computed as d, ref as g, h as k, withModifiers as
2
2
  import { useI18n as E } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as K, components as R, useBreakpoints as D, FmButtonVariant as G } from "@feedmepos/ui-library";
4
4
  import { _ as I } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { G as q, u as A, a5 as H } from "./index.vue_vue_type_script_setup_true_lang-CL6a622s.js";
5
+ import { G as q, u as A, a4 as H } from "./index.vue_vue_type_script_setup_true_lang-CZJpW7cW.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-DNphv-4C.js";
7
+ import { u as O, U as P } from "./unit-h28_cadr.js";
8
8
  const Q = {
9
9
  key: 0,
10
10
  class: "h-[600px]"
@@ -0,0 +1,247 @@
1
+ import { getCurrentInstance as U, defineComponent as $, computed as x, onMounted as R, h as u, resolveComponent as w, createBlock as L, openBlock as p, unref as t, withCtx as _, createElementBlock as y, Fragment as M, createElementVNode as i, createVNode as c, isRef as z, normalizeClass as N, renderList as G, toDisplayString as S, withModifiers as j, createCommentVNode as Y } from "vue";
2
+ import { useI18n as O } from "@feedmepos/mf-common";
3
+ import { useDialog as Q, useSnackbar as A, FmButtonVariant as B, components as q, useBreakpoints as H } from "@feedmepos/ui-library";
4
+ import { _ as J } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
+ import { _ as W } from "./app-BVB_5Ks2.js";
6
+ import { G as D, u as K, Q as P, M as X, A as Z, a4 as ee } from "./index.vue_vue_type_script_setup_true_lang-CZJpW7cW.js";
7
+ import { V as E } from "./index-ChzxrjXq.js";
8
+ import { _ as ae } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
9
+ import { u as oe } from "./search-BAPEUu1R.js";
10
+ import { defineStore as te } from "pinia";
11
+ import { c as ne } from "./createComponentProgrammatically-Bt2rn1IQ.js";
12
+ import { g as F } from "./translation-BeqjfyEb.js";
13
+ const le = te("variant-manager", () => {
14
+ const I = Q(), n = A(), g = D(n), k = P(g);
15
+ K();
16
+ const f = U(), { t: m } = O(), V = (r) => {
17
+ var h, o;
18
+ const { vNode: C } = ne(
19
+ E,
20
+ f,
21
+ r
22
+ );
23
+ (o = (h = C.component) == null ? void 0 : h.exposed) == null || o.trigger();
24
+ };
25
+ async function d(r) {
26
+ V({
27
+ initialValue: r
28
+ });
29
+ }
30
+ async function v(r) {
31
+ I.open({
32
+ title: m("menu.common.dialog.remove.variant.title"),
33
+ message: m("menu.common.dialog.remove.variant.message", { name: r.name }),
34
+ primaryActions: {
35
+ text: m("menu.common.actions.remove"),
36
+ close: !0,
37
+ variant: B.Destructive
38
+ },
39
+ secondaryActions: {
40
+ text: m("menu.common.actions.cancel"),
41
+ close: !0
42
+ }
43
+ }).onPrimary(async () => {
44
+ await k.updateMenu(
45
+ {
46
+ module: Z.F_MENU_MODULE_V4_KEY.enum.variant,
47
+ operation: X.F_OPERATION_TYPE.delete,
48
+ data: r._id
49
+ },
50
+ r.name,
51
+ !0
52
+ );
53
+ });
54
+ }
55
+ return {
56
+ deleteVariant: v,
57
+ updateVariant: d
58
+ };
59
+ }), se = {
60
+ key: 0,
61
+ class: "flex-1 flex flex-col overflow-hidden max-h-[calc(100vh-56px)] gap-8"
62
+ }, re = {
63
+ class: "flex justify-end"
64
+ }, ie = {
65
+ class: "w-[320px]"
66
+ }, ce = {
67
+ class: "px-16 py-8"
68
+ }, me = {
69
+ class: /* @__PURE__ */ N(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
70
+ }, de = ["onClick"], ue = {
71
+ class: "flex-1 space-y-4"
72
+ }, pe = {
73
+ class: "fm-typo-en-body-lg-600"
74
+ }, fe = {
75
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
76
+ }, _e = {
77
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
78
+ }, ye = {
79
+ key: 1,
80
+ class: "xs:pt-16"
81
+ }, Be = /* @__PURE__ */ $({
82
+ __name: "Variant",
83
+ setup(I) {
84
+ const {
85
+ t: n
86
+ } = O(), g = K(), k = P(D(A())), f = le(), m = x(() => g.variants.map((o) => ({
87
+ ...o,
88
+ usedBy: g.items.filter((e) => {
89
+ var s;
90
+ return (s = e.variant) == null ? void 0 : s.variantGroupIds.includes(o._id);
91
+ }).map(({
92
+ _id: e
93
+ }) => ({
94
+ _id: e
95
+ }))
96
+ }))), {
97
+ filter: V,
98
+ searchKey: d
99
+ } = oe(), v = x(() => m.value.filter((o) => {
100
+ var e;
101
+ return V([o.name, ...((e = o.options) == null ? void 0 : e.map((s) => s.name)) ?? []]);
102
+ }));
103
+ R(() => g.selectCatalog(null));
104
+ const r = x(() => [{
105
+ accessorKey: "name",
106
+ header: () => n("menu.variant.columns.name"),
107
+ size: 360,
108
+ enableSorting: !1,
109
+ cell: (o) => {
110
+ const e = o.row.original, s = o.getValue(), l = Object.keys(e.name_locale ?? {}).map((a) => F(a));
111
+ return u("div", {
112
+ class: "flex items-center gap-8"
113
+ }, [u("span", {
114
+ class: "break-all"
115
+ }, s), ...l.map((a) => u("div", {
116
+ 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"
117
+ }, a))]);
118
+ }
119
+ }, {
120
+ accessorKey: "options",
121
+ header: () => n("menu.variant.columns.options"),
122
+ size: 560,
123
+ enableSorting: !1,
124
+ cell: (o) => {
125
+ const e = o.getValue() ?? [], s = e.some((l) => Object.keys(l.name_locale ?? {}).length > 0), b = Array.from(new Set(e.flatMap((l) => Object.keys(l.name_locale ?? {})))).map((l) => F(l));
126
+ return u("div", {
127
+ class: "flex items-center gap-8"
128
+ }, [u("span", {
129
+ class: "break-all"
130
+ }, e == null ? void 0 : e.map((l) => l.name).join(", ")), ...s ? b.map((l) => u("div", {
131
+ 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"
132
+ }, l)) : []]);
133
+ }
134
+ }, {
135
+ accessorKey: "usedBy",
136
+ header: () => n("menu.variant.columns.applied_products"),
137
+ enableSorting: !1,
138
+ size: 180,
139
+ cell: (o) => n("menu.common.labels.items_linked", {
140
+ count: o.getValue().length
141
+ })
142
+ }, {
143
+ id: "action",
144
+ size: 52,
145
+ meta: {
146
+ cellClass: "pl-16",
147
+ headerContentClass: "-mx-16"
148
+ },
149
+ cell: (o) => u("div", {
150
+ class: "w-full flex justify-end items-center"
151
+ }, [u(q.FmButton, {
152
+ prependIcon: "delete",
153
+ variant: B.Tertiary,
154
+ textColor: "neutral-gray-400",
155
+ onClick: (e) => {
156
+ e.stopPropagation(), f.deleteVariant(o.row.original);
157
+ }
158
+ })])
159
+ }]), C = H(), h = x(() => C.breakpoints.value.xs);
160
+ return (o, e) => {
161
+ const s = w("fm-search"), b = w("fm-table"), l = w("fm-button");
162
+ return p(), L(ae, {
163
+ heading: t(n)("menu.variant.title")
164
+ }, {
165
+ "append-heading": _(() => [m.value.length ? (p(), L(t(E), {
166
+ key: 0
167
+ }, {
168
+ default: _(({
169
+ trigger: a
170
+ }) => [c(J, {
171
+ class: "ml-auto",
172
+ label: t(n)("menu.variant.add"),
173
+ "prepend-icon": "add",
174
+ onClick: j(a, ["stop"])
175
+ }, null, 8, ["label", "onClick"])]),
176
+ _: 1
177
+ })) : Y("", !0)]),
178
+ default: _(() => [m.value.length ? (p(), y(M, {
179
+ key: 0
180
+ }, [h.value ? (p(), y(M, {
181
+ key: 1
182
+ }, [i("div", ce, [c(s, {
183
+ autofocus: "",
184
+ modelValue: t(d),
185
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => z(d) ? d.value = a : null),
186
+ placeholder: t(n)("menu.common.labels.search_placeholder", {
187
+ type: "variants"
188
+ })
189
+ }, null, 8, ["modelValue", "placeholder"])]), i("div", me, [(p(!0), y(M, null, G(v.value, (a) => (p(), y("div", {
190
+ key: a._id,
191
+ class: N(["py-12 px-16", "flex space-x-8", "items-center", "cursor-pointer"]),
192
+ onClick: () => t(f).updateVariant(a)
193
+ }, [i("div", ue, [i("p", pe, S(a.name), 1), i("div", null, [i("p", fe, S(t(n)("menu.common.labels.items_linked", {
194
+ count: a.usedBy.length
195
+ })), 1), i("p", _e, S(t(n)("menu.variant.mobile.value", {
196
+ values: a.options.map((T) => T.name).join(", ")
197
+ })), 1)])]), c(l, {
198
+ variant: t(B).Tertiary,
199
+ "prepend-icon": "delete",
200
+ "text-color": "neutral-gray-400",
201
+ onClick: j(() => t(f).deleteVariant(a), ["stop"])
202
+ }, null, 8, ["variant", "onClick"])], 8, de))), 128))])], 64)) : (p(), y("div", se, [i("div", re, [i("div", ie, [c(s, {
203
+ autofocus: "",
204
+ modelValue: t(d),
205
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => z(d) ? d.value = a : null),
206
+ placeholder: t(n)("menu.common.labels.search_placeholder", {
207
+ type: "variants"
208
+ })
209
+ }, null, 8, ["modelValue", "placeholder"])])]), c(W, null, {
210
+ default: _(() => [c(b, {
211
+ "column-defs": r.value,
212
+ loading: t(k).checkMenuIsLoading(),
213
+ "page-size": v.value.length,
214
+ "row-data": v.value,
215
+ "shrink-at": !1,
216
+ class: "flex-1 overflow-hidden",
217
+ "hide-footer": "",
218
+ "pin-header-row": "",
219
+ onRowClick: e[1] || (e[1] = (a) => {
220
+ t(f).updateVariant(a.original);
221
+ })
222
+ }, null, 8, ["column-defs", "loading", "page-size", "row-data"])]),
223
+ _: 1
224
+ })]))], 64)) : (p(), y("div", ye, [c(ee, {
225
+ subtitle: t(n)("menu.variant.empty.subtitle"),
226
+ title: t(n)("menu.variant.empty.title")
227
+ }, {
228
+ action: _(() => [c(t(E), null, {
229
+ default: _(({
230
+ trigger: a
231
+ }) => [c(l, {
232
+ "prepend-icon": "add",
233
+ label: t(n)("menu.variant.add"),
234
+ onClick: j(a, ["stop"])
235
+ }, null, 8, ["label", "onClick"])]),
236
+ _: 1
237
+ })]),
238
+ _: 1
239
+ }, 8, ["subtitle", "title"])]))]),
240
+ _: 1
241
+ }, 8, ["heading"]);
242
+ };
243
+ }
244
+ });
245
+ export {
246
+ Be as default
247
+ };
@@ -1,19 +1,19 @@
1
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-DgXlcVSD.js";
2
+ import { D as W } from "./dayjs.min-D1xLv5bP.js";
3
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-wf0Wm51b.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-CL6a622s.js";
4
+ import { _ as X, w as Z } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DLswQZTA.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-CZJpW7cW.js";
6
6
  import { useI18n as le } from "@feedmepos/mf-common";
7
7
  import { useSnackbar as se } from "@feedmepos/ui-library";
8
8
  import { _ as R } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
9
- import { L as V } from "./LinkProductSideSheet-ImK8azTA.js";
9
+ import { L as V } from "./LinkProductSideSheet-1ZQVQTG_.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-Br279NC_.js";
13
- import { a as me } from "./menu-LtIuM7Qj.js";
14
- import { m as ce } from "./toExcel-DBCbupeI.js";
15
- import { _ as de, u as pe, c as _e } from "./scheduler-FVlscyjB.js";
16
- import { R as r } from "./app-CE0yoao0.js";
12
+ import { u as ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CY9TyaLG.js";
13
+ import { a as me } from "./menu-CoqhBDql.js";
14
+ import { m as ce } from "./toExcel-CnzBt_4W.js";
15
+ import { _ as de, u as pe, c as _e } from "./scheduler-CrvDOlmc.js";
16
+ import { R as r } from "./app-BVB_5Ks2.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) {