@feedmepos/mf-menu-portal 1.0.4 → 1.0.5-dev.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 (78) hide show
  1. package/dist/{App-CgYpEYgp.js → App-B2xq1U4S.js} +699 -687
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CPh1GBw9.js} +11 -10
  3. package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-CWe5_Sm5.js → BindingTable.vue_vue_type_script_setup_true_lang-DCgMQJE-.js} +50 -46
  4. package/dist/Catalog-BEI73S_k.js +433 -0
  5. package/dist/{CatalogBinding-BjTeOA91.js → CatalogBinding-3rhuTWDD.js} +30 -29
  6. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-doB3hsWD.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js} +30 -29
  7. package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BpBR-N_x.js → CatalogEditor.vue_vue_type_script_setup_true_lang-Dc72SNpI.js} +314 -304
  8. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CMyubLvP.js +127 -0
  9. package/dist/{Category-6-ppsSmZ.js → Category-BVCdkA5K.js} +14 -13
  10. package/dist/{Category-CdsbuUqi.js → Category-P5DYjIeF.js} +2 -2
  11. package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-DlNUOgyu.js → CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js} +274 -262
  12. package/dist/{CookingGuide-CRyRlBeV.js → CookingGuide-Y-c1NLP5.js} +144 -140
  13. package/dist/{Group-DVrUlq4i.js → Group-D6wA3jCF.js} +2 -2
  14. package/dist/{Group-DqyBHSFx.js → Group-qqr5SUIc.js} +17 -15
  15. package/dist/GroupList.vue_vue_type_script_setup_true_lang-DNTVfY2d.js +1996 -0
  16. package/dist/{Ingredient-CGLfhbvN.js → Ingredient-CJHkJZ0y.js} +94 -93
  17. package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C0rc1FRO.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js} +1 -1
  18. package/dist/{MenuSetting-Oct3vbHj.js → MenuSetting-YcEGo51l.js} +462 -446
  19. package/dist/{OrderPacing-BDkzflgE.js → OrderPacing-DwQU7c0Y.js} +207 -204
  20. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-B259anSs.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-2Cdz70u-.js} +1 -2
  21. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js +44 -0
  22. package/dist/PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js +12 -0
  23. package/dist/{Preview-V9cSpevb.js → Preview-DLeXy5V-.js} +2 -2
  24. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-k5S4mGCN.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-D_OV9Z_4.js} +1 -1
  25. package/dist/{PrintRoute-3UwiMoBU.js → PrintRoute-R38w0-U2.js} +151 -150
  26. package/dist/{Product-LaB-YRTQ.js → Product-sbMCaVhM.js} +8 -7
  27. package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-DoHQeOHy.js +7826 -0
  28. package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D9v88xZs.js +111 -0
  29. package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-BBXGnZtc.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-DsIGLKNS.js} +17 -17
  30. package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-BUC6qUnG.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CEliG36Z.js} +726 -726
  31. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CjQRRqBx.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js} +127 -124
  32. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-3yzUcogQ.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js} +820 -807
  33. package/dist/{ProductInternalTools-DWCgC825.js → ProductInternalTools-jE3Ovo4l.js} +3 -3
  34. package/dist/{ProductInventoryDialog-D0d5RywR.js → ProductInventoryDialog-EDlrXupB.js} +1 -1
  35. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-CmYKO0ZX.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-LOwSpoiA.js} +1 -1
  36. package/dist/{ProductList.vue_vue_type_script_setup_true_lang-DeX8Exly.js → ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js} +1135 -1098
  37. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BFD6_Sbb.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-C4iK-sAd.js} +1 -1
  38. package/dist/{Products-BLUhwFT-.js → Products-DUE10OyS.js} +51 -49
  39. package/dist/Publish-BlMxKniP.js +1300 -0
  40. package/dist/{Recipe-BGfofjHT.js → Recipe-BhjPAidT.js} +83 -82
  41. package/dist/{Scheduler-BL7t8aS7.js → Scheduler-wKG3_D1f.js} +137 -136
  42. package/dist/{ServingSequence-CDFXMCiN.js → ServingSequence-B26BETQs.js} +63 -61
  43. package/dist/Setting-DBdNl3WL.js +185 -0
  44. package/dist/{Subcategory-CnlrVwCy.js → Subcategory-B06yMcuE.js} +147 -144
  45. package/dist/{Takeaway-D8FzvC2w.js → Takeaway-CFATfy-6.js} +2 -2
  46. package/dist/{Takeaway-BWVzwWnh.js → Takeaway-DFqOtls7.js} +17 -16
  47. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CUHB-g9I.js +616 -0
  48. package/dist/TextChip.vue_vue_type_script_setup_true_lang-YkUjMTXo.js +32 -0
  49. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B8nXazx6.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoS4Btzj.js} +281 -308
  50. package/dist/{Unit-Do7Tt8U8.js → Unit-B5wKBmIT.js} +90 -89
  51. package/dist/{Variant-D1kLupxx.js → Variant-C5ePu0za.js} +167 -174
  52. package/dist/{_id_-DomaBHrh.js → _id_-HRDqt6oD.js} +3 -3
  53. package/dist/{app-C_XNYz8_.js → app-CxJjx2ma.js} +39 -39
  54. package/dist/app.js +1 -1
  55. package/dist/apps/mf-menu/src/app.d.ts +35 -0
  56. package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +8 -0
  57. package/dist/apps/mf-menu/src/components/Product/OrderFromChip.vue.d.ts +6 -0
  58. package/dist/apps/mf-menu/src/components/Product/ProductThumbnail.vue.d.ts +6 -0
  59. package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +4 -2
  60. package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +1 -1
  61. package/dist/apps/mf-menu/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
  62. package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +7 -0
  63. package/dist/apps/mf-menu/src/components/layout/PhoneFab.vue.d.ts +9 -0
  64. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  65. package/dist/assets/{menu-compute-Did75Kp9.js → menu-compute-CQdeCEBO.js} +19 -19
  66. package/dist/assets/{validate-menu-DVMOLygB.js → validate-menu-BVo4fNWG.js} +14 -14
  67. package/dist/mf-menu-portal.css +1 -1
  68. package/dist/{provide-Bwf3KcOV.js → provide-BGLSDsuJ.js} +99817 -99565
  69. package/dist/{useActionFeedback-CXx7dOVc.js → useActionFeedback-CElXij1W.js} +1 -1
  70. package/package.json +1 -1
  71. package/dist/Catalog-BrHGEI3p.js +0 -374
  72. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-P59vHZEn.js +0 -117
  73. package/dist/GroupList.vue_vue_type_script_setup_true_lang-oGNs8e8f.js +0 -1807
  74. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +0 -41
  75. package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +0 -7931
  76. package/dist/Publish-Dkjnls7p.js +0 -1337
  77. package/dist/Setting-gYZoZxQG.js +0 -179
  78. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-igS-FXq5.js +0 -554
@@ -1,38 +1,36 @@
1
- import { defineComponent as R, computed as u, ref as ue, shallowRef as $, h as j, withModifiers as A, onUnmounted as re, resolveComponent as b, openBlock as i, createBlock as k, unref as s, withCtx as h, createElementBlock as g, toDisplayString as q, Fragment as L, createElementVNode as v, createVNode as p, renderList as ce, createCommentVNode as w, mergeProps as de } from "vue";
1
+ import { defineComponent as R, computed as u, ref as ue, shallowRef as U, h as j, withModifiers as A, onUnmounted as re, resolveComponent as b, openBlock as i, createBlock as _, unref as s, withCtx as k, createElementBlock as y, toDisplayString as q, Fragment as L, createElementVNode as v, createVNode as p, renderList as ce, createCommentVNode as w, mergeProps as de } from "vue";
2
2
  import { useI18n as me, ItemSelector as ve } from "@feedmepos/mf-common";
3
- import { useDialog as pe, useBreakpoints as ge, components as P, FmButtonVariant as _e } from "@feedmepos/ui-library";
4
- import { _ as fe } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
5
- import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
6
- import { u as ke } from "./useActionFeedback-CXx7dOVc.js";
7
- import { u as ye } from "./useEditorValidation-Ctef5Bxt.js";
8
- import { b as he, u as T, a as xe } from "./provide-Bwf3KcOV.js";
9
- const qe = {
3
+ import { useDialog as pe, useBreakpoints as _e, components as P, FmButtonVariant as ge } from "@feedmepos/ui-library";
4
+ import { _ as fe } from "./PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js";
5
+ import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
6
+ import { _ as ke } from "./PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js";
7
+ import { u as ye } from "./useActionFeedback-CElXij1W.js";
8
+ import { u as he } from "./useEditorValidation-Ctef5Bxt.js";
9
+ import { b as xe, u as T, a as qe } from "./provide-BGLSDsuJ.js";
10
+ const we = {
10
11
  key: 0,
11
12
  class: "flex-1 flex justify-end gap-8 pl-8"
12
- }, we = {
13
+ }, Se = {
13
14
  key: 0,
14
15
  role: "alert",
15
16
  class: "text-fm-color-typo-secondary"
16
- }, Se = { class: "flex justify-end items-center" }, Ce = { class: "w-[320px] xs:w-full xs:px-16 xs:mt-8" }, Fe = {
17
+ }, Ce = { class: "flex justify-end items-center" }, Fe = { class: "w-[320px] xs:w-full xs:px-16 xs:mt-8" }, Ie = {
17
18
  key: 1,
18
19
  class: "flex-1 min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
19
- }, Ie = ["onClick"], Ve = { class: "min-w-0 flex-1 space-y-4" }, ze = { class: "fm-typo-en-body-lg-600 break-words" }, De = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, Ee = {
20
- key: 2,
21
- class: "fixed right-16 bottom-[72px] z-[100]"
22
- }, Me = { class: "fm-typo-en-title-md-600" }, Be = { class: "space-y-32 flex flex-col h-full" }, Ne = { class: "flex gap-8 items-center justify-start" }, Ke = /* @__PURE__ */ R({
20
+ }, Ve = ["onClick"], ze = { class: "min-w-0 flex-1 space-y-4" }, De = { class: "fm-typo-en-body-lg-600 break-words" }, Ee = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, Me = { class: "fm-typo-en-title-md-600" }, Be = { class: "space-y-32 flex flex-col h-full" }, Ne = { class: "flex gap-8 items-center justify-start" }, Ke = /* @__PURE__ */ R({
23
21
  __name: "ServingSequenceList",
24
22
  props: {
25
23
  sdk: {}
26
24
  },
27
25
  setup(D) {
28
- const c = D, { t: a } = me(), S = he(), O = pe(), { run: C } = ke(), _ = T(
26
+ const c = D, { t: a } = me(), S = xe(), O = pe(), { run: C } = ye(), g = T(
29
27
  c.sdk.servingSequence.list
30
28
  ), o = u(
31
- () => _.value.status === "ready" ? _.value.value : null
29
+ () => g.value.status === "ready" ? g.value.value : null
32
30
  ), E = u(() => {
33
31
  var e;
34
32
  return ((e = o.value) == null ? void 0 : e.query) ?? "";
35
- }), { breakpoints: G } = ge(), F = u(() => G.value.xs), Q = u(() => {
33
+ }), { breakpoints: G } = _e(), F = u(() => G.value.xs), Q = u(() => {
36
34
  var e;
37
35
  return [...((e = o.value) == null ? void 0 : e.rows) ?? []];
38
36
  }), f = ue(!1), M = T(
@@ -88,22 +86,22 @@ const qe = {
88
86
  }))
89
87
  );
90
88
  }
91
- const r = $(
89
+ const r = U(
92
90
  c.sdk.servingSequence.editor()
93
- ), y = $(
91
+ ), h = U(
94
92
  r.value.get()
95
93
  );
96
94
  let I = r.value.subscribe((e) => {
97
- y.value = e;
95
+ h.value = e;
98
96
  });
99
97
  const d = u(
100
- () => y.value.status === "ready" ? y.value.value : null
101
- ), V = ye(() => r.value), B = u(
98
+ () => h.value.status === "ready" ? h.value.value : null
99
+ ), V = he(() => r.value), B = u(
102
100
  () => d.value ? V.issue(d.value.fieldIssues, "name") ?? d.value.nameIssue : null
103
101
  );
104
102
  function N(e) {
105
- I(), r.value.dispose(), r.value = c.sdk.servingSequence.editor(e), y.value = r.value.get(), I = r.value.subscribe((t) => {
106
- y.value = t;
103
+ I(), r.value.dispose(), r.value = c.sdk.servingSequence.editor(e), h.value = r.value.get(), I = r.value.subscribe((t) => {
104
+ h.value = t;
107
105
  });
108
106
  }
109
107
  function z() {
@@ -129,7 +127,7 @@ const qe = {
129
127
  }
130
128
  )).kind === "success" && (f.value = !1);
131
129
  }
132
- function U(e) {
130
+ function $(e) {
133
131
  e.remove.state === "allowed" && O.open({
134
132
  title: a("menu.serving_sequence.delete.title"),
135
133
  message: a("menu.serving_sequence.delete.message", {
@@ -138,7 +136,7 @@ const qe = {
138
136
  primaryActions: {
139
137
  text: a("menu.serving_sequence.delete.confirm"),
140
138
  close: !0,
141
- variant: _e.Destructive
139
+ variant: ge.Destructive
142
140
  },
143
141
  secondaryActions: {
144
142
  text: a("menu.common.actions.cancel"),
@@ -212,7 +210,7 @@ const qe = {
212
210
  disabled: e.row.original.remove.state !== "allowed",
213
211
  "aria-label": a("menu.common.actions.delete"),
214
212
  onClick: A(
215
- () => U(e.row.original),
213
+ () => $(e.row.original),
216
214
  ["stop", "prevent"]
217
215
  )
218
216
  })
@@ -223,13 +221,13 @@ const qe = {
223
221
  I(), r.value.dispose(), c.sdk.servingSequence.search("");
224
222
  }), (e, t) => {
225
223
  const n = b("FmButton"), m = b("FmCircularProgress"), ne = b("FmSearch"), le = b("FmTable"), oe = b("FmTextField"), ie = b("FmSideSheet");
226
- return i(), k(be, {
224
+ return i(), _(ke, {
227
225
  "data-visual-root": "serveSequence",
228
226
  heading: s(a)("menu.serving_sequence.title")
229
227
  }, {
230
- "append-heading": h(() => [
231
- s(_).status === "ready" && o.value ? (i(), g("div", qe, [
232
- o.value.totalCount > 0 && !F.value ? (i(), k(n, {
228
+ "append-heading": k(() => [
229
+ s(g).status === "ready" && o.value ? (i(), y("div", we, [
230
+ o.value.totalCount > 0 && !F.value ? (i(), _(n, {
233
231
  key: 0,
234
232
  disabled: o.value.create.state !== "allowed",
235
233
  label: s(a)("menu.serving_sequence.add"),
@@ -238,15 +236,16 @@ const qe = {
238
236
  }, null, 8, ["disabled", "label"])) : w("", !0)
239
237
  ])) : w("", !0)
240
238
  ]),
241
- default: h(() => [
242
- s(_).status === "error" ? (i(), g("p", we, q(s(S)(s(_).error.message)), 1)) : s(_).status === "loading" ? (i(), k(m, { key: 1 })) : o.value && o.value.rows.length === 0 && !E.value ? (i(), k(s(fe), {
239
+ default: k(() => [
240
+ s(g).status === "error" ? (i(), y("p", Se, q(s(S)(s(g).error.message)), 1)) : s(g).status === "loading" ? (i(), _(m, { key: 1 })) : o.value && o.value.rows.length === 0 && !E.value ? (i(), _(s(be), {
243
241
  key: 2,
242
+ class: "xs:pt-24",
244
243
  action: { text: s(a)("menu.serving_sequence.add"), callback: z },
245
244
  title: s(a)("menu.serving_sequence.empty.title"),
246
245
  subtitle: s(a)("menu.serving_sequence.empty.subtitle")
247
- }, null, 8, ["action", "title", "subtitle"])) : o.value ? (i(), g(L, { key: 3 }, [
248
- v("div", Se, [
249
- v("div", Ce, [
246
+ }, null, 8, ["action", "title", "subtitle"])) : o.value ? (i(), y(L, { key: 3 }, [
247
+ v("div", Ce, [
248
+ v("div", Fe, [
250
249
  p(ne, {
251
250
  autofocus: "",
252
251
  class: "mb-8",
@@ -256,15 +255,15 @@ const qe = {
256
255
  }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
257
256
  ])
258
257
  ]),
259
- F.value ? (i(), g("div", Fe, [
260
- (i(!0), g(L, null, ce(o.value.rows, (l) => (i(), g("div", {
258
+ F.value ? (i(), y("div", Ie, [
259
+ (i(!0), y(L, null, ce(o.value.rows, (l) => (i(), y("div", {
261
260
  key: l.id,
262
261
  class: "py-12 px-16 flex space-x-8 items-center",
263
262
  onClick: (x) => K(l)
264
263
  }, [
265
- v("div", Ve, [
266
- v("p", ze, q(l.name), 1),
267
- v("p", De, q(s(a)("menu.common.labels.products_linked", {
264
+ v("div", ze, [
265
+ v("p", De, q(l.name), 1),
266
+ v("p", Ee, q(s(a)("menu.common.labels.products_linked", {
268
267
  count: l.linkedItemCount
269
268
  })), 1)
270
269
  ]),
@@ -275,10 +274,10 @@ const qe = {
275
274
  "prepend-icon": "delete",
276
275
  "text-color": "neutral-gray-400",
277
276
  variant: "tertiary",
278
- onClick: A((x) => U(l), ["stop"])
277
+ onClick: A((x) => $(l), ["stop"])
279
278
  }, null, 8, ["aria-label", "disabled", "onClick"])
280
- ], 8, Ie))), 128))
281
- ])) : (i(), k(le, {
279
+ ], 8, Ve))), 128))
280
+ ])) : (i(), _(le, {
282
281
  key: 0,
283
282
  "column-defs": te.value,
284
283
  "hide-footer": "",
@@ -290,15 +289,18 @@ const qe = {
290
289
  onRowClick: t[0] || (t[0] = (l) => K(l.original)),
291
290
  onDndChanged: se
292
291
  }, null, 8, ["column-defs", "page-size", "row-data", "draggable"])),
293
- o.value.totalCount > 0 && F.value ? (i(), g("div", Ee, [
294
- p(n, {
295
- disabled: o.value.create.state !== "allowed",
296
- label: s(a)("menu.serving_sequence.add"),
297
- "prepend-icon": "add",
298
- variant: "fab",
299
- onClick: z
300
- }, null, 8, ["disabled", "label"])
301
- ])) : w("", !0)
292
+ o.value.totalCount > 0 && F.value ? (i(), _(fe, { key: 2 }, {
293
+ default: k(() => [
294
+ p(n, {
295
+ disabled: o.value.create.state !== "allowed",
296
+ label: s(a)("menu.serving_sequence.add"),
297
+ "prepend-icon": "add",
298
+ variant: "fab",
299
+ onClick: z
300
+ }, null, 8, ["disabled", "label"])
301
+ ]),
302
+ _: 1
303
+ })) : w("", !0)
302
304
  ], 64)) : w("", !0),
303
305
  p(ie, {
304
306
  modelValue: f.value,
@@ -307,13 +309,13 @@ const qe = {
307
309
  "is-container-props": { onValidationSuccess: ee },
308
310
  "max-width": 560
309
311
  }, {
310
- "side-sheet-header": h(() => {
312
+ "side-sheet-header": k(() => {
311
313
  var l;
312
314
  return [
313
315
  v("p", Me, q(((l = d.value) == null ? void 0 : l.mode) === "update" ? s(a)("menu.serving_sequence.update") : s(a)("menu.serving_sequence.add")), 1)
314
316
  ];
315
317
  }),
316
- "side-sheet-footer": h(() => {
318
+ "side-sheet-footer": k(() => {
317
319
  var l, x;
318
320
  return [
319
321
  v("div", Ne, [
@@ -328,12 +330,12 @@ const qe = {
328
330
  label: s(a)("menu.common.actions.cancel"),
329
331
  size: "lg",
330
332
  variant: "tertiary",
331
- onClick: t[1] || (t[1] = (Ue) => f.value = !1)
333
+ onClick: t[1] || (t[1] = ($e) => f.value = !1)
332
334
  }, null, 8, ["label"])
333
335
  ])
334
336
  ];
335
337
  }),
336
- default: h(() => {
338
+ default: k(() => {
337
339
  var l;
338
340
  return [
339
341
  v("div", Be, [
@@ -362,13 +364,13 @@ const qe = {
362
364
  }, 8, ["heading"]);
363
365
  };
364
366
  }
365
- }), Ge = /* @__PURE__ */ R({
367
+ }), Qe = /* @__PURE__ */ R({
366
368
  __name: "ServingSequence",
367
369
  setup(D) {
368
- const c = xe();
369
- return (a, S) => (i(), k(Ke, { sdk: s(c) }, null, 8, ["sdk"]));
370
+ const c = qe();
371
+ return (a, S) => (i(), _(Ke, { sdk: s(c) }, null, 8, ["sdk"]));
370
372
  }
371
373
  });
372
374
  export {
373
- Ge as default
375
+ Qe as default
374
376
  };
@@ -0,0 +1,185 @@
1
+ import { defineComponent as x, computed as A, onUnmounted as R, resolveComponent as r, openBlock as o, createBlock as i, unref as e, withCtx as m, createVNode as l, createElementVNode as d, createElementBlock as c, Fragment as C, renderList as F, createCommentVNode as p, toDisplayString as L } from "vue";
2
+ import { RouterLink as N, useRouter as O, useRoute as G } from "vue-router";
3
+ import { useI18n as W } from "@feedmepos/mf-common";
4
+ import { _ as S } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
5
+ import { _ as E } from "./CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CMyubLvP.js";
6
+ import { _ as j } from "./PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js";
7
+ import { _ as D } from "./SubItemTaxSwitch.vue_vue_type_script_setup_true_lang-DIFXPxna.js";
8
+ import { u as P } from "./useActionFeedback-CElXij1W.js";
9
+ import { R as V } from "./app-CxJjx2ma.js";
10
+ import { a as $, u as q } from "./provide-BGLSDsuJ.js";
11
+ import { _ as z } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js";
12
+ import { _ as H } from "./CatalogEditor.vue_vue_type_script_setup_true_lang-Dc72SNpI.js";
13
+ const J = {
14
+ class: "pt-16 xs:flex-1 xs:overflow-scroll xs:px-16 xs:py-16",
15
+ "data-test": "catalog-setting-body"
16
+ }, K = {
17
+ key: 0,
18
+ class: "max-w-[752px] space-y-32"
19
+ }, Q = {
20
+ key: 0,
21
+ class: "pl-32 space-x-8"
22
+ }, X = { class: "space-y-16" }, Y = { class: "grid" }, Z = { class: "flex items-center gap-12 translate-x-px" }, ee = { class: "fm-typo-en-body-lg-400" }, te = {
23
+ key: 1,
24
+ class: "max-w-[752px] pt-40 flex justify-end"
25
+ }, ae = /* @__PURE__ */ x({
26
+ __name: "MainSetting",
27
+ setup(b) {
28
+ const u = $(), { t } = W(), { run: _ } = P(), n = u.menuSetting.masterCatalogConfiguration(), g = q(n), a = A(
29
+ () => g.value.status === "ready" ? g.value.value : null
30
+ );
31
+ R(() => n.dispose());
32
+ async function y() {
33
+ await _(() => n.submit(), {
34
+ showLoading: () => {
35
+ var v;
36
+ return ((v = a.value) == null ? void 0 : v.status) === "submitting";
37
+ },
38
+ successMessage: t("menu.catalog.main_updated")
39
+ });
40
+ }
41
+ return (v, k) => {
42
+ const h = r("FmButton"), w = r("FmRadio"), U = r("FmRadioGroup"), I = r("FmCheckbox"), M = r("FmSwitch"), T = r("FmIcon"), B = r("FmCard");
43
+ return o(), i(j, {
44
+ class: "xs:overflow-hidden",
45
+ heading: e(t)("menu.common.labels.main")
46
+ }, {
47
+ "prepend-heading": m(() => [
48
+ l(e(N), {
49
+ to: { name: e(V).CATALOG },
50
+ class: "mr-8",
51
+ title: e(t)("menu.catalog.edit.back")
52
+ }, {
53
+ default: m(() => [
54
+ l(h, {
55
+ "prepend-icon": "arrow_back",
56
+ variant: "tertiary",
57
+ "aria-label": e(t)("menu.catalog.edit.back")
58
+ }, null, 8, ["aria-label"])
59
+ ]),
60
+ _: 1
61
+ }, 8, ["to", "title"])
62
+ ]),
63
+ "append-heading": m(() => [
64
+ l(E, { sdk: e(u) }, null, 8, ["sdk"])
65
+ ]),
66
+ default: m(() => [
67
+ l(z),
68
+ d("div", J, [
69
+ a.value ? (o(), c("div", K, [
70
+ l(S, {
71
+ label: e(t)("menu.setting.tax.title")
72
+ }, {
73
+ default: m(() => [
74
+ l(U, {
75
+ "model-value": a.value.taxMode,
76
+ "onUpdate:modelValue": k[0] || (k[0] = (s) => e(n).setTaxMode(s))
77
+ }, {
78
+ default: m(() => [
79
+ l(w, {
80
+ value: "automatic",
81
+ label: e(t)("menu.setting.tax.modes.auto.label"),
82
+ sublabel: e(t)("menu.setting.tax.modes.auto.sublabel")
83
+ }, null, 8, ["label", "sublabel"]),
84
+ l(w, {
85
+ value: "manual",
86
+ label: e(t)("menu.setting.tax.modes.manual.label"),
87
+ sublabel: e(t)("menu.setting.tax.modes.manual.sublabel")
88
+ }, null, 8, ["label", "sublabel"])
89
+ ]),
90
+ _: 1
91
+ }, 8, ["model-value"]),
92
+ a.value.taxMode === "manual" ? (o(), c("div", Q, [
93
+ (o(!0), c(C, null, F(a.value.taxSystems, (s) => (o(), i(I, {
94
+ key: s.systemCode,
95
+ "model-value": s.inclusive,
96
+ value: !0,
97
+ label: e(t)("menu.setting.tax.inclusive", { code: s.systemCode }),
98
+ "onUpdate:modelValue": (f) => e(n).setTaxInclusive(s.systemCode, !!f)
99
+ }, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))
100
+ ])) : p("", !0)
101
+ ]),
102
+ _: 1
103
+ }, 8, ["label"]),
104
+ a.value.subItemOwnTax !== null ? (o(), i(D, {
105
+ key: 0,
106
+ "model-value": a.value.subItemOwnTax,
107
+ "onUpdate:modelValue": e(n).setSubItemOwnTax
108
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : p("", !0),
109
+ a.value.statutoryChargeWaivers.length > 0 ? (o(), i(S, {
110
+ key: 1,
111
+ label: e(t)("menu.catalog.form.statutory_charges.title")
112
+ }, {
113
+ default: m(() => [
114
+ d("div", X, [
115
+ (o(!0), c(C, null, F(a.value.statutoryChargeWaivers, (s) => (o(), i(M, {
116
+ key: s.code,
117
+ "model-value": s.waived,
118
+ label: e(t)("menu.catalog.form.statutory_charges.waive", {
119
+ name: s.name
120
+ }),
121
+ sublabel: e(t)("menu.menu_setting.statutory_charges.sublabel"),
122
+ "label-placement": "right",
123
+ "onUpdate:modelValue": (f) => e(n).setStatutoryChargeWaived(s.code, f)
124
+ }, null, 8, ["model-value", "label", "sublabel", "onUpdate:modelValue"]))), 128))
125
+ ])
126
+ ]),
127
+ _: 1
128
+ }, 8, ["label"])) : p("", !0),
129
+ d("div", Y, [
130
+ l(B, { class: "px-24 py-16 bg-fm-color-system-warning-100 border-none" }, {
131
+ default: m(() => [
132
+ d("div", Z, [
133
+ l(T, {
134
+ name: "warning",
135
+ class: "text-fm-color-system-warning-300"
136
+ }),
137
+ d("p", ee, L(e(t)("menu.setting.catalog.warnings.delivery")), 1)
138
+ ])
139
+ ]),
140
+ _: 1
141
+ })
142
+ ])
143
+ ])) : p("", !0),
144
+ a.value ? (o(), c("div", te, [
145
+ l(h, {
146
+ label: e(t)("menu.common.actions.save"),
147
+ disabled: a.value.submit.state !== "allowed",
148
+ loading: a.value.status === "submitting",
149
+ onClick: y
150
+ }, null, 8, ["label", "disabled", "loading"])
151
+ ])) : p("", !0)
152
+ ])
153
+ ]),
154
+ _: 1
155
+ }, 8, ["heading"]);
156
+ };
157
+ }
158
+ }), oe = /* @__PURE__ */ x({
159
+ __name: "NamedSetting",
160
+ props: {
161
+ id: {}
162
+ },
163
+ setup(b) {
164
+ const u = b, t = $(), _ = O(), n = t.catalog.edit(u.id);
165
+ return R(() => n.dispose()), (g, a) => (o(), i(H, {
166
+ page: "",
167
+ sdk: e(t),
168
+ editor: e(n),
169
+ picker: e(t).linkProduct.catalogue,
170
+ onClose: a[0] || (a[0] = (y) => e(_).push({ name: e(V).CATALOG }))
171
+ }, null, 8, ["sdk", "editor", "picker"]));
172
+ }
173
+ }), ge = /* @__PURE__ */ x({
174
+ __name: "Setting",
175
+ setup(b) {
176
+ const u = G();
177
+ return (t, _) => e(u).params.id === "main" ? (o(), i(ae, { key: 0 })) : (o(), i(oe, {
178
+ key: String(e(u).params.id),
179
+ id: String(e(u).params.id)
180
+ }, null, 8, ["id"]));
181
+ }
182
+ });
183
+ export {
184
+ ge as default
185
+ };