@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,54 +1,55 @@
1
- import { defineComponent as j, resolveComponent as p, openBlock as n, createElementBlock as y, createVNode as s, withCtx as d, createElementVNode as r, toDisplayString as k, createBlock as f, Fragment as L, renderList as N, createCommentVNode as $, computed as _, ref as E, shallowRef as W, onUnmounted as ke, h as C, withModifiers as M, unref as o, mergeProps as be } from "vue";
1
+ import { defineComponent as j, resolveComponent as p, openBlock as n, createElementBlock as k, createVNode as s, withCtx as u, createElementVNode as r, toDisplayString as g, createBlock as v, Fragment as L, renderList as N, createCommentVNode as $, computed as _, ref as E, shallowRef as W, onUnmounted as ge, h as x, withModifiers as M, unref as a, mergeProps as be } from "vue";
2
2
  import { useI18n as he } from "@feedmepos/mf-common";
3
- import { useDialog as we, useBreakpoints as xe, components as U } from "@feedmepos/ui-library";
3
+ import { useDialog as we, useBreakpoints as Ce, components as U } from "@feedmepos/ui-library";
4
+ import { _ as xe } from "./PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js";
4
5
  import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
5
- import { _ as Ce } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C0rc1FRO.js";
6
+ import { _ as Fe } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js";
6
7
  import { _ as Y } from "./vuedraggable-CBtQLb_S.js";
7
- import { _ as Fe } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
8
- import { u as Pe } from "./useActionFeedback-CXx7dOVc.js";
9
- import { u as Se } from "./useEditorValidation-Ctef5Bxt.js";
10
- import { b as Ve, u as Z, a as Le } from "./provide-Bwf3KcOV.js";
11
- const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-lg-600" }, De = { class: "fm-typo-en-body-md-400" }, Ie = /* @__PURE__ */ j({
8
+ import { _ as Pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js";
9
+ import { u as Se } from "./useActionFeedback-CElXij1W.js";
10
+ import { u as Ve } from "./useEditorValidation-Ctef5Bxt.js";
11
+ import { b as Le, u as Z, a as $e } from "./provide-BGLSDsuJ.js";
12
+ const De = { class: "fm-typo-en-body-lg-600" }, Ie = { class: "fm-typo-en-body-lg-600" }, Re = { class: "fm-typo-en-body-md-400" }, ze = /* @__PURE__ */ j({
12
13
  __name: "RemoveRouteConfirmation",
13
14
  props: {
14
15
  row: {}
15
16
  },
16
- setup(z) {
17
+ setup(D) {
17
18
  return (i, t) => {
18
- const h = p("i18n-t"), F = p("FmIcon"), w = p("FmListItem"), g = p("FmList");
19
- return n(), y("div", null, [
19
+ const h = p("i18n-t"), F = p("FmIcon"), w = p("FmListItem"), y = p("FmList");
20
+ return n(), k("div", null, [
20
21
  s(h, {
21
22
  keypath: i.row.linkedProductCount > 0 ? "menu.print_route.dialogs.remove.message.with_products" : "menu.print_route.dialogs.remove.message.confirm",
22
23
  scope: "global",
23
24
  tag: "p"
24
25
  }, {
25
- count: d(() => [
26
- r("span", $e, k(i.row.linkedProductCount), 1)
26
+ count: u(() => [
27
+ r("span", De, g(i.row.linkedProductCount), 1)
27
28
  ]),
28
- name: d(() => [
29
- r("span", ze, k(i.row.name), 1)
29
+ name: u(() => [
30
+ r("span", Ie, g(i.row.name), 1)
30
31
  ]),
31
32
  _: 1
32
33
  }, 8, ["keypath"]),
33
- i.row.linkedProductCount > 0 ? (n(), f(g, {
34
+ i.row.linkedProductCount > 0 ? (n(), v(y, {
34
35
  key: 0,
35
36
  class: "mt-8"
36
37
  }, {
37
- default: d(() => [
38
- (n(!0), y(L, null, N(i.row.linkedProductNames, (l) => (n(), f(w, {
38
+ default: u(() => [
39
+ (n(!0), k(L, null, N(i.row.linkedProductNames, (l) => (n(), v(w, {
39
40
  key: l,
40
41
  class: "!p-0 !gap-4 mt-4",
41
42
  clickable: !1
42
43
  }, {
43
- prepend: d(() => [
44
+ prepend: u(() => [
44
45
  s(F, {
45
46
  color: "neutral-gray-900",
46
47
  name: "fiber_manual_record",
47
48
  size: "sm"
48
49
  })
49
50
  ]),
50
- default: d(() => [
51
- r("span", De, k(l), 1)
51
+ default: u(() => [
52
+ r("span", Re, g(l), 1)
52
53
  ]),
53
54
  _: 2
54
55
  }, 1024))), 128))
@@ -58,43 +59,40 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
58
59
  ]);
59
60
  };
60
61
  }
61
- }), Re = { class: "flex flex-1 justify-end" }, Be = {
62
+ }), Be = { class: "flex flex-1 justify-end" }, Ae = {
62
63
  key: 0,
63
64
  class: "flex flex-col gap-16 items-start"
64
- }, Ae = {
65
+ }, Ee = {
65
66
  class: "text-fm-color-typo-secondary",
66
67
  role: "alert"
67
- }, Ee = {
68
+ }, Me = {
68
69
  key: 1,
69
70
  "data-menu-state": "unavailable"
70
- }, Me = { class: "flex justify-end items-center" }, Ue = { class: "w-[320px] xs:w-full xs:px-16" }, Ne = { class: "min-w-0 grow space-y-4" }, je = { class: "fm-typo-en-body-lg-600 break-words" }, Ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, Qe = {
71
- key: 2,
72
- class: "fixed right-16 bottom-[72px] z-[100]"
73
- }, Te = { class: "fm-typo-en-title-md-600" }, Oe = { class: "flex flex-col gap-32 pb-16" }, Ge = { class: "space-y-16" }, qe = { class: "flex items-center gap-8" }, He = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Je = { class: "flex gap-8 items-center justify-start" }, We = /* @__PURE__ */ j({
71
+ }, Ue = { class: "flex justify-end items-center" }, Ne = { class: "w-[320px] xs:w-full xs:px-16" }, je = { class: "min-w-0 grow space-y-4" }, Ke = { class: "fm-typo-en-body-lg-600 break-words" }, Qe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, Te = { class: "fm-typo-en-title-md-600" }, Oe = { class: "flex flex-col gap-32 pb-16" }, Ge = { class: "space-y-16" }, qe = { class: "flex items-center gap-8" }, He = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Je = { class: "flex gap-8 items-center justify-start" }, We = /* @__PURE__ */ j({
74
72
  __name: "PrintRouteList",
75
73
  props: {
76
74
  sdk: {}
77
75
  },
78
- setup(z) {
79
- const i = z, { t } = he(), h = Ve(), F = we(), { run: w } = Pe(), g = Z(
76
+ setup(D) {
77
+ const i = D, { t } = he(), h = Le(), F = we(), { run: w } = Se(), y = Z(
80
78
  i.sdk.printDepartment.list
81
79
  ), l = _(
82
- () => g.value.status === "ready" ? g.value.value : null
80
+ () => y.value.status === "ready" ? y.value.value : null
83
81
  ), ee = _(() => {
84
82
  var e;
85
83
  return ((e = l.value) == null ? void 0 : e.query) ?? "";
86
- }), { breakpoints: te } = xe(), D = _(() => te.value.xs), oe = _(() => {
84
+ }), { breakpoints: te } = Ce(), I = _(() => te.value.xs), ae = _(() => {
87
85
  var e;
88
86
  return [...((e = l.value) == null ? void 0 : e.rows) ?? []];
89
- }), b = E(!1), P = E(!1), I = E(!1);
90
- async function ae() {
91
- I.value = !0;
87
+ }), b = E(!1), P = E(!1), R = E(!1);
88
+ async function oe() {
89
+ R.value = !0;
92
90
  try {
93
91
  await w(() => i.sdk.printDepartment.retryRead(), {
94
92
  showLoading: !1
95
93
  });
96
94
  } finally {
97
- I.value = !1;
95
+ R.value = !1;
98
96
  }
99
97
  }
100
98
  const K = Z(
@@ -131,14 +129,14 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
131
129
  id: "actions",
132
130
  enableSorting: !1,
133
131
  header: "",
134
- cell: (u) => C("div", { class: "flex justify-end" }, [
135
- C(U.FmButton, {
132
+ cell: (d) => x("div", { class: "flex justify-end" }, [
133
+ x(U.FmButton, {
136
134
  icon: "delete",
137
135
  variant: "tertiary",
138
136
  textColor: "neutral-gray-400",
139
137
  "aria-label": t("menu.common.actions.remove"),
140
138
  onClick: M(
141
- () => c.value.unlinkProduct(u.row.original.id),
139
+ () => c.value.unlinkProduct(d.row.original.id),
142
140
  ["stop", "prevent"]
143
141
  )
144
142
  })
@@ -148,24 +146,24 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
148
146
  }
149
147
  const c = W(
150
148
  i.sdk.printDepartment.editor()
151
- ), x = W(
149
+ ), C = W(
152
150
  c.value.get()
153
151
  );
154
- let R = c.value.subscribe(
155
- (e) => x.value = e
152
+ let z = c.value.subscribe(
153
+ (e) => C.value = e
156
154
  );
157
155
  const m = _(
158
- () => x.value.status === "ready" ? x.value.value : null
159
- ), B = Se(() => c.value), Q = _(
156
+ () => C.value.status === "ready" ? C.value.value : null
157
+ ), B = Ve(() => c.value), Q = _(
160
158
  () => m.value ? B.issue(m.value.fieldIssues, "name") : null
161
159
  );
162
160
  function T(e) {
163
- R(), c.value.dispose(), c.value = i.sdk.printDepartment.editor(e), x.value = c.value.get(), R = c.value.subscribe(
164
- (u) => x.value = u
161
+ z(), c.value.dispose(), c.value = i.sdk.printDepartment.editor(e), C.value = c.value.get(), z = c.value.subscribe(
162
+ (d) => C.value = d
165
163
  );
166
164
  }
167
- ke(() => {
168
- i.sdk.printDepartment.search(""), R(), c.value.dispose();
165
+ ge(() => {
166
+ i.sdk.printDepartment.search(""), z(), c.value.dispose();
169
167
  });
170
168
  function A() {
171
169
  !l.value || l.value.create.state !== "allowed" || (T(), b.value = !0);
@@ -198,8 +196,8 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
198
196
  });
199
197
  }
200
198
  async function ce() {
201
- var v;
202
- const e = ((v = m.value) == null ? void 0 : v.name.trim()) ?? "";
199
+ var f;
200
+ const e = ((f = m.value) == null ? void 0 : f.name.trim()) ?? "";
203
201
  (await w(
204
202
  () => B.submit(() => c.value.submit()),
205
203
  {
@@ -224,7 +222,7 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
224
222
  function q(e) {
225
223
  F.open({
226
224
  title: t("menu.print_route.dialogs.remove.title"),
227
- contentComponent: C(Ie, { row: e }),
225
+ contentComponent: x(ze, { row: e }),
228
226
  primaryActions: {
229
227
  text: t("menu.print_route.actions.remove"),
230
228
  close: !0,
@@ -263,8 +261,8 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
263
261
  size: 52,
264
262
  meta: { cellClass: "pl-16", headerContentClass: "-mx-16" },
265
263
  enableSorting: !1,
266
- cell: (e) => C("div", { class: "flex justify-end" }, [
267
- C(U.FmButton, {
264
+ cell: (e) => x("div", { class: "flex justify-end" }, [
265
+ x(U.FmButton, {
268
266
  icon: "delete",
269
267
  textColor: "neutral-gray-400",
270
268
  variant: "tertiary",
@@ -281,135 +279,138 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
281
279
  function pe(e) {
282
280
  c.value.setLinkedProducts(e), P.value = !1;
283
281
  }
284
- return (e, u) => {
285
- const v = p("FmButton"), S = p("FmCircularProgress"), H = p("FmSearch"), J = p("FmTable"), _e = p("FmListItem"), ve = p("FmList"), fe = p("FmTextField"), ye = p("FmSpacer"), ge = p("FmSideSheet");
286
- return n(), f(Fe, {
287
- heading: o(t)("menu.print_route.title")
282
+ return (e, d) => {
283
+ const f = p("FmButton"), S = p("FmCircularProgress"), H = p("FmSearch"), J = p("FmTable"), _e = p("FmListItem"), ve = p("FmList"), fe = p("FmTextField"), ye = p("FmSpacer"), ke = p("FmSideSheet");
284
+ return n(), v(Pe, {
285
+ heading: a(t)("menu.print_route.title")
288
286
  }, {
289
- "append-heading": d(() => [
290
- r("div", Re, [
291
- l.value && l.value.totalCount > 0 && !D.value ? (n(), f(v, {
287
+ "append-heading": u(() => [
288
+ r("div", Be, [
289
+ l.value && l.value.totalCount > 0 && !I.value ? (n(), v(f, {
292
290
  key: 0,
293
291
  disabled: l.value.create.state !== "allowed",
294
- label: o(t)("menu.print_route.actions.add"),
292
+ label: a(t)("menu.print_route.actions.add"),
295
293
  "prepend-icon": "add",
296
294
  variant: "primary",
297
295
  onClick: A
298
296
  }, null, 8, ["disabled", "label"])) : $("", !0)
299
297
  ])
300
298
  ]),
301
- default: d(() => [
302
- o(g).status === "error" ? (n(), y("div", Be, [
303
- r("p", Ae, k(o(h)(o(g).error.message)), 1),
304
- s(v, {
305
- label: o(t)("menu.common.actions.retry"),
306
- loading: I.value,
299
+ default: u(() => [
300
+ a(y).status === "error" ? (n(), k("div", Ae, [
301
+ r("p", Ee, g(a(h)(a(y).error.message)), 1),
302
+ s(f, {
303
+ label: a(t)("menu.common.actions.retry"),
304
+ loading: R.value,
307
305
  "prepend-icon": "refresh",
308
306
  size: "md",
309
307
  variant: "secondary",
310
- onClick: ae
308
+ onClick: oe
311
309
  }, null, 8, ["label", "loading"])
312
- ])) : o(g).status === "unavailable" ? (n(), y("div", Ee, [
313
- s(o(X), {
314
- subtitle: o(t)("menu.print_route.empty.subtitle"),
315
- title: o(t)("menu.print_route.empty.title")
310
+ ])) : a(y).status === "unavailable" ? (n(), k("div", Me, [
311
+ s(a(X), {
312
+ subtitle: a(t)("menu.print_route.empty.subtitle"),
313
+ title: a(t)("menu.print_route.empty.title")
316
314
  }, null, 8, ["subtitle", "title"])
317
- ])) : o(g).status === "loading" ? (n(), f(S, { key: 2 })) : l.value && l.value.totalCount === 0 ? (n(), f(o(X), {
315
+ ])) : a(y).status === "loading" ? (n(), v(S, { key: 2 })) : l.value && l.value.totalCount === 0 ? (n(), v(a(X), {
318
316
  key: 3,
319
- action: l.value.create.state === "allowed" ? { text: o(t)("menu.print_route.empty.action"), callback: A } : void 0,
320
- subtitle: o(t)("menu.print_route.empty.subtitle"),
321
- title: o(t)("menu.print_route.empty.title")
322
- }, null, 8, ["action", "subtitle", "title"])) : l.value ? (n(), y(L, { key: 4 }, [
323
- r("div", Me, [
324
- r("div", Ue, [
317
+ action: l.value.create.state === "allowed" ? { text: a(t)("menu.print_route.empty.action"), callback: A } : void 0,
318
+ subtitle: a(t)("menu.print_route.empty.subtitle"),
319
+ title: a(t)("menu.print_route.empty.title")
320
+ }, null, 8, ["action", "subtitle", "title"])) : l.value ? (n(), k(L, { key: 4 }, [
321
+ r("div", Ue, [
322
+ r("div", Ne, [
325
323
  s(H, {
326
324
  autofocus: "",
327
325
  class: "my-8",
328
326
  "model-value": ee.value,
329
- placeholder: o(t)("menu.print_route.table.search.placeholder"),
327
+ placeholder: a(t)("menu.print_route.table.search.placeholder"),
330
328
  "onUpdate:modelValue": i.sdk.printDepartment.search
331
329
  }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
332
330
  ])
333
331
  ]),
334
- D.value ? (n(), f(ve, {
332
+ I.value ? (n(), v(ve, {
335
333
  key: 1,
336
334
  class: "w-full px-16 flex-1 min-h-0 overflow-scroll pb-64",
337
335
  separator: ""
338
336
  }, {
339
- default: d(() => [
340
- (n(!0), y(L, null, N(l.value.rows, (a) => (n(), f(_e, {
341
- key: a.id,
337
+ default: u(() => [
338
+ (n(!0), k(L, null, N(l.value.rows, (o) => (n(), v(_e, {
339
+ key: o.id,
342
340
  class: "!py-12 !px-0",
343
- onClick: (V) => O(a)
341
+ onClick: (V) => O(o)
344
342
  }, {
345
- default: d(() => [
346
- r("div", Ne, [
347
- r("div", je, k(a.name), 1),
348
- r("div", Ke, k(o(t)("menu.print_route.table.mobile.products_linked", {
349
- count: a.linkedProductCount
343
+ default: u(() => [
344
+ r("div", je, [
345
+ r("div", Ke, g(o.name), 1),
346
+ r("div", Qe, g(a(t)("menu.print_route.table.mobile.products_linked", {
347
+ count: o.linkedProductCount
350
348
  })), 1)
351
349
  ]),
352
- s(v, {
350
+ s(f, {
353
351
  class: "shrink-0",
354
- "aria-label": o(t)("menu.print_route.actions.remove"),
355
- disabled: a.remove.state !== "allowed",
352
+ "aria-label": a(t)("menu.print_route.actions.remove"),
353
+ disabled: o.remove.state !== "allowed",
356
354
  icon: "delete",
357
355
  "text-color": "neutral-gray-400",
358
356
  variant: "tertiary",
359
- onClick: M((V) => q(a), ["stop"])
357
+ onClick: M((V) => q(o), ["stop"])
360
358
  }, null, 8, ["aria-label", "disabled", "onClick"])
361
359
  ]),
362
360
  _: 2
363
361
  }, 1032, ["onClick"]))), 128))
364
362
  ]),
365
363
  _: 1
366
- })) : (n(), f(J, {
364
+ })) : (n(), v(J, {
367
365
  key: 0,
368
366
  "column-defs": me.value,
369
367
  "page-size": l.value.rows.length,
370
- "row-data": oe.value,
368
+ "row-data": ae.value,
371
369
  "shrink-at": !1,
372
370
  "hide-footer": "",
373
371
  "pin-header-row": "",
374
- onRowClick: u[0] || (u[0] = (a) => O(a.original))
372
+ onRowClick: d[0] || (d[0] = (o) => O(o.original))
375
373
  }, null, 8, ["column-defs", "page-size", "row-data"])),
376
- l.value.totalCount > 0 && D.value ? (n(), y("div", Qe, [
377
- s(v, {
378
- disabled: l.value.create.state !== "allowed",
379
- label: o(t)("menu.print_route.actions.add"),
380
- "prepend-icon": "add",
381
- variant: "fab",
382
- onClick: A
383
- }, null, 8, ["disabled", "label"])
384
- ])) : $("", !0)
374
+ l.value.totalCount > 0 && I.value ? (n(), v(xe, { key: 2 }, {
375
+ default: u(() => [
376
+ s(f, {
377
+ disabled: l.value.create.state !== "allowed",
378
+ label: a(t)("menu.print_route.actions.add"),
379
+ "prepend-icon": "add",
380
+ variant: "fab",
381
+ onClick: A
382
+ }, null, 8, ["disabled", "label"])
383
+ ]),
384
+ _: 1
385
+ })) : $("", !0)
385
386
  ], 64)) : $("", !0),
386
- s(ge, {
387
+ s(ke, {
387
388
  modelValue: b.value,
388
- "onUpdate:modelValue": u[3] || (u[3] = (a) => b.value = a),
389
- "is-container": o(U).FmForm,
389
+ "onUpdate:modelValue": d[3] || (d[3] = (o) => b.value = o),
390
+ "is-container": a(U).FmForm,
390
391
  "is-container-props": { onValidationSuccess: ce },
391
392
  "max-width": 560,
392
393
  "onOn:clickedAway": de
393
394
  }, {
394
- "side-sheet-header": d(() => {
395
- var a;
395
+ "side-sheet-header": u(() => {
396
+ var o;
396
397
  return [
397
- r("p", Te, k(((a = m.value) == null ? void 0 : a.mode) === "update" ? o(t)("menu.print_route.department_dialog.update.title") : o(t)("menu.print_route.department_dialog.add.title")), 1)
398
+ r("p", Te, g(((o = m.value) == null ? void 0 : o.mode) === "update" ? a(t)("menu.print_route.department_dialog.update.title") : a(t)("menu.print_route.department_dialog.add.title")), 1)
398
399
  ];
399
400
  }),
400
- "side-sheet-footer": d(() => {
401
- var a, V;
401
+ "side-sheet-footer": u(() => {
402
+ var o, V;
402
403
  return [
403
404
  r("div", Je, [
404
- s(v, {
405
- disabled: ((a = m.value) == null ? void 0 : a.submit.state) !== "allowed",
406
- label: ((V = m.value) == null ? void 0 : V.mode) === "update" ? o(t)("menu.print_route.department_dialog.update.action") : o(t)("menu.print_route.department_dialog.add.action"),
405
+ s(f, {
406
+ disabled: ((o = m.value) == null ? void 0 : o.submit.state) !== "allowed",
407
+ label: ((V = m.value) == null ? void 0 : V.mode) === "update" ? a(t)("menu.print_route.department_dialog.update.action") : a(t)("menu.print_route.department_dialog.add.action"),
407
408
  size: "lg",
408
409
  type: "submit",
409
410
  variant: "primary"
410
411
  }, null, 8, ["disabled", "label"]),
411
- s(v, {
412
- label: o(t)("menu.print_route.department_dialog.actions.cancel"),
412
+ s(f, {
413
+ label: a(t)("menu.print_route.department_dialog.actions.cancel"),
413
414
  size: "lg",
414
415
  variant: "tertiary",
415
416
  onClick: G
@@ -417,70 +418,70 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
417
418
  ])
418
419
  ];
419
420
  }),
420
- default: d(() => [
421
+ default: u(() => [
421
422
  r("div", Oe, [
422
423
  s(Y, {
423
- title: o(t)("menu.print_route.department_dialog.sections.route_detail.title")
424
+ title: a(t)("menu.print_route.department_dialog.sections.route_detail.title")
424
425
  }, {
425
- default: d(() => {
426
- var a;
426
+ default: u(() => {
427
+ var o;
427
428
  return [
428
429
  s(fe, be({
429
430
  autofocus: "",
430
- "error-messages": Q.value ? [o(h)(Q.value)] : [],
431
- label: o(t)(
431
+ "error-messages": Q.value ? [a(h)(Q.value)] : [],
432
+ label: a(t)(
432
433
  "menu.print_route.department_dialog.sections.route_detail.name.label"
433
434
  ),
434
- "model-value": ((a = m.value) == null ? void 0 : a.name) ?? "",
435
- placeholder: o(t)(
435
+ "model-value": ((o = m.value) == null ? void 0 : o.name) ?? "",
436
+ placeholder: a(t)(
436
437
  "menu.print_route.department_dialog.sections.route_detail.name.placeholder"
437
438
  )
438
- }, o(B).field("name", c.value.setName)), null, 16, ["error-messages", "label", "model-value", "placeholder"])
439
+ }, a(B).field("name", c.value.setName)), null, 16, ["error-messages", "label", "model-value", "placeholder"])
439
440
  ];
440
441
  }),
441
442
  _: 1
442
443
  }, 8, ["title"]),
443
444
  s(Y, {
444
- title: o(t)("menu.print_route.department_dialog.sections.link_product.title")
445
+ title: a(t)("menu.print_route.department_dialog.sections.link_product.title")
445
446
  }, {
446
- "append-title": d(() => [
447
+ "append-title": u(() => [
447
448
  s(ye),
448
- s(v, {
449
- label: o(t)(
449
+ s(f, {
450
+ label: a(t)(
450
451
  "menu.print_route.department_dialog.sections.link_product.link"
451
452
  ),
452
453
  "border-color": "primary",
453
454
  "prepend-icon": "link",
454
455
  "text-color": "primary",
455
456
  variant: "secondary",
456
- onClick: u[1] || (u[1] = (a) => P.value = !0)
457
+ onClick: d[1] || (d[1] = (o) => P.value = !0)
457
458
  }, null, 8, ["label"])
458
459
  ]),
459
- default: d(() => [
460
+ default: u(() => [
460
461
  r("div", Ge, [
461
462
  r("div", qe, [
462
- r("p", He, k(o(t)(
463
+ r("p", He, g(a(t)(
463
464
  "menu.print_route.department_dialog.sections.link_product.products_linked",
464
465
  { count: ie.value }
465
466
  )), 1),
466
467
  s(H, {
467
468
  class: "flex-1",
468
469
  "model-value": re.value,
469
- placeholder: o(t)(
470
+ placeholder: a(t)(
470
471
  "menu.print_route.department_dialog.sections.link_product.search"
471
472
  ),
472
- "onUpdate:modelValue": u[2] || (u[2] = (a) => c.value.setLinkedProductQuery(String(a ?? "")))
473
+ "onUpdate:modelValue": d[2] || (d[2] = (o) => c.value.setLinkedProductQuery(String(o ?? "")))
473
474
  }, null, 8, ["model-value", "placeholder"])
474
475
  ]),
475
476
  r("div", null, [
476
- (n(!0), y(L, null, N(se.value, (a) => (n(), y("div", {
477
- key: a.id ?? ""
477
+ (n(!0), k(L, null, N(se.value, (o) => (n(), k("div", {
478
+ key: o.id ?? ""
478
479
  }, [
479
480
  s(J, {
480
- "column-defs": ue(a),
481
+ "column-defs": ue(o),
481
482
  "hide-footer": "",
482
- "page-size": a.products.length,
483
- "row-data": [...a.products],
483
+ "page-size": o.products.length,
484
+ "row-data": [...o.products],
484
485
  "shrink-at": !1
485
486
  }, null, 8, ["column-defs", "page-size", "row-data"])
486
487
  ]))), 128))
@@ -493,12 +494,12 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
493
494
  ]),
494
495
  _: 1
495
496
  }, 8, ["modelValue", "is-container", "is-container-props"]),
496
- s(Ce, {
497
+ s(Fe, {
497
498
  modelValue: P.value,
498
- "onUpdate:modelValue": u[4] || (u[4] = (a) => P.value = a),
499
+ "onUpdate:modelValue": d[4] || (d[4] = (o) => P.value = o),
499
500
  catalogue: ne.value,
500
501
  "selected-product-ids": le.value,
501
- title: o(t)("menu.print_route.department_dialog.sections.link_product.title"),
502
+ title: a(t)("menu.print_route.department_dialog.sections.link_product.title"),
502
503
  onSubmit: pe
503
504
  }, null, 8, ["modelValue", "catalogue", "selected-product-ids", "title"])
504
505
  ]),
@@ -506,13 +507,13 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
506
507
  }, 8, ["heading"]);
507
508
  };
508
509
  }
509
- }), rt = /* @__PURE__ */ j({
510
+ }), it = /* @__PURE__ */ j({
510
511
  __name: "PrintRoute",
511
- setup(z) {
512
- const i = Le();
513
- return (t, h) => (n(), f(We, { sdk: o(i) }, null, 8, ["sdk"]));
512
+ setup(D) {
513
+ const i = $e();
514
+ return (t, h) => (n(), v(We, { sdk: a(i) }, null, 8, ["sdk"]));
514
515
  }
515
516
  });
516
517
  export {
517
- rt as default
518
+ it as default
518
519
  };
@@ -1,17 +1,18 @@
1
1
  import { defineComponent as m, resolveComponent as i, openBlock as c, createBlock as s, unref as t, withCtx as e, createVNode as o } from "vue";
2
2
  import { RouterLink as p } from "vue-router";
3
- import { useI18n as _ } from "@feedmepos/mf-common";
4
- import { _ as l } from "./ProductList.vue_vue_type_script_setup_true_lang-DeX8Exly.js";
5
- import { a as u } from "./provide-Bwf3KcOV.js";
6
- import { R as d } from "./app-C_XNYz8_.js";
7
- import { _ as f } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-doB3hsWD.js";
3
+ import { useI18n as l } from "@feedmepos/mf-common";
4
+ import { _ } from "./ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js";
5
+ import { a as u } from "./provide-BGLSDsuJ.js";
6
+ import { R as d } from "./app-CxJjx2ma.js";
7
+ import { _ as f } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js";
8
8
  const A = /* @__PURE__ */ m({
9
9
  __name: "Product",
10
10
  setup(k) {
11
- const r = u(), { t: a } = _();
11
+ const r = u(), { t: a } = l();
12
12
  return (g, b) => {
13
13
  const n = i("FmButton");
14
- return c(), s(l, {
14
+ return c(), s(_, {
15
+ class: "xs:overflow-hidden",
15
16
  sdk: t(r),
16
17
  "catalog-page": ""
17
18
  }, {