@feedmepos/mf-menu-portal 1.0.4-dev.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-CrpoLCjA.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-D3CmOOPY.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-BNATtZEY.js → CatalogBinding-3rhuTWDD.js} +30 -29
  6. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-BmG-xpW4.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js} +30 -29
  7. package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BFsRDFpj.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-DMoXTsfG.js → Category-BVCdkA5K.js} +14 -13
  10. package/dist/{Category-DxjdQ-NN.js → Category-P5DYjIeF.js} +2 -2
  11. package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-B3Ts1O-9.js → CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js} +274 -262
  12. package/dist/{CookingGuide-DiZZDYD-.js → CookingGuide-Y-c1NLP5.js} +144 -140
  13. package/dist/{Group-rzfh_o6r.js → Group-D6wA3jCF.js} +2 -2
  14. package/dist/{Group-DFR8q-tt.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-DpjGIuH9.js → Ingredient-CJHkJZ0y.js} +94 -93
  17. package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js} +1 -1
  18. package/dist/{MenuSetting-DR-pDSF_.js → MenuSetting-YcEGo51l.js} +462 -446
  19. package/dist/{OrderPacing-JcTuweqF.js → OrderPacing-DwQU7c0Y.js} +207 -204
  20. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.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-BZyun5lZ.js → Preview-DLeXy5V-.js} +2 -2
  24. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-D_OV9Z_4.js} +1 -1
  25. package/dist/{PrintRoute-CzEx2dCt.js → PrintRoute-R38w0-U2.js} +151 -150
  26. package/dist/{Product-CQb0n06E.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-CBlDEjqF.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-DsIGLKNS.js} +17 -17
  30. package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D8NQTCLx.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CEliG36Z.js} +726 -726
  31. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js} +127 -124
  32. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-0UwUcA2L.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js} +820 -807
  33. package/dist/{ProductInternalTools-QrBR1nFp.js → ProductInternalTools-jE3Ovo4l.js} +3 -3
  34. package/dist/{ProductInventoryDialog-fV38GO1a.js → ProductInventoryDialog-EDlrXupB.js} +1 -1
  35. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Bzb3RrMg.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-LOwSpoiA.js} +1 -1
  36. package/dist/{ProductList.vue_vue_type_script_setup_true_lang-BwKQESr3.js → ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js} +1135 -1098
  37. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-C4iK-sAd.js} +1 -1
  38. package/dist/{Products-B8tysOAL.js → Products-DUE10OyS.js} +51 -49
  39. package/dist/Publish-BlMxKniP.js +1300 -0
  40. package/dist/{Recipe-Ddx31csF.js → Recipe-BhjPAidT.js} +83 -82
  41. package/dist/{Scheduler-CST5L_cw.js → Scheduler-wKG3_D1f.js} +137 -136
  42. package/dist/{ServingSequence-DYyEZI2S.js → ServingSequence-B26BETQs.js} +63 -61
  43. package/dist/Setting-DBdNl3WL.js +185 -0
  44. package/dist/{Subcategory-BIgjzVta.js → Subcategory-B06yMcuE.js} +147 -144
  45. package/dist/{Takeaway-CekhGM-m.js → Takeaway-CFATfy-6.js} +2 -2
  46. package/dist/{Takeaway-aXsPg4JT.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-CshqYpc9.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoS4Btzj.js} +281 -308
  50. package/dist/{Unit-BMW8u0Us.js → Unit-B5wKBmIT.js} +90 -89
  51. package/dist/{Variant-CZsrYRMU.js → Variant-C5ePu0za.js} +167 -174
  52. package/dist/{_id_-D4swrvNa.js → _id_-HRDqt6oD.js} +3 -3
  53. package/dist/{app-BWwwHsWi.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-D7TdiHt4.js → menu-compute-CQdeCEBO.js} +19 -19
  66. package/dist/assets/{validate-menu-DXppWUVq.js → validate-menu-BVo4fNWG.js} +14 -14
  67. package/dist/mf-menu-portal.css +1 -1
  68. package/dist/{provide-CDmXzkhz.js → provide-BGLSDsuJ.js} +99816 -99564
  69. package/dist/{useActionFeedback-Dm2HDa_2.js → useActionFeedback-CElXij1W.js} +1 -1
  70. package/package.json +1 -1
  71. package/dist/Catalog-VU3HhNro.js +0 -374
  72. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Bk4FqVmx.js +0 -117
  73. package/dist/GroupList.vue_vue_type_script_setup_true_lang-DiN-wQXX.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-DTvOvFNa.js +0 -1337
  77. package/dist/Setting-Ip0pGjks.js +0 -179
  78. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CaRR4_j3.js +0 -554
@@ -1,31 +1,29 @@
1
- import { defineComponent as ue, computed as f, ref as E, shallowRef as ne, h as $e, withModifiers as le, onUnmounted as Ae, resolveComponent as m, openBlock as i, createBlock as C, unref as e, withCtx as y, createElementBlock as r, toDisplayString as _, Fragment as I, createElementVNode as v, createVNode as d, renderList as T, createCommentVNode as M, mergeProps as ae, createTextVNode as Ne } from "vue";
1
+ import { defineComponent as ie, computed as f, ref as T, shallowRef as ne, h as $e, withModifiers as le, onUnmounted as Ae, resolveComponent as m, openBlock as u, createBlock as F, unref as e, withCtx as y, createElementBlock as c, toDisplayString as _, Fragment as I, createElementVNode as v, createVNode as d, renderList as z, createCommentVNode as M, mergeProps as ae, createTextVNode as Ne } from "vue";
2
2
  import { useRouter as De } from "vue-router";
3
3
  import { useI18n as Le } from "@feedmepos/mf-common";
4
- import { useDialog as ze, useBreakpoints as Ee, components as oe, FmButtonVariant as Te } from "@feedmepos/ui-library";
4
+ import { useDialog as Ee, useBreakpoints as Te, components as oe, FmButtonVariant as ze } from "@feedmepos/ui-library";
5
+ import { _ as Re } from "./PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js";
5
6
  import { _ as se } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
6
- import { _ as Re } from "./BindingLinkDialog.vue_vue_type_script_setup_true_lang-BZVQRyRI.js";
7
- import { _ as ie } from "./BindingTable.vue_vue_type_script_setup_true_lang-D3CmOOPY.js";
8
- import { _ as qe } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
9
- import { u as Pe } from "./useActionFeedback-Dm2HDa_2.js";
10
- import { u as Ke } from "./useEditorValidation-Ctef5Bxt.js";
11
- import { b as Oe, u as Qe, a as je } from "./provide-CDmXzkhz.js";
12
- const Ge = {
7
+ import { _ as qe } from "./BindingLinkDialog.vue_vue_type_script_setup_true_lang-BZVQRyRI.js";
8
+ import { _ as ue } from "./BindingTable.vue_vue_type_script_setup_true_lang-DCgMQJE-.js";
9
+ import { _ as Pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js";
10
+ import { u as Ke } from "./useActionFeedback-CElXij1W.js";
11
+ import { u as Oe } from "./useEditorValidation-Ctef5Bxt.js";
12
+ import { b as Qe, u as je, a as Ge } from "./provide-BGLSDsuJ.js";
13
+ const He = {
13
14
  key: 0,
14
15
  class: "flex-1 flex justify-between gap-8 pl-8"
15
- }, He = { class: "flex items-center" }, Je = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, We = { class: "fm-typo-en-body-md-600" }, Xe = {
16
+ }, Je = { class: "flex items-center" }, We = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Xe = { class: "fm-typo-en-body-md-600" }, Ye = {
16
17
  key: 0,
17
18
  role: "alert",
18
19
  class: "text-fm-color-typo-secondary"
19
- }, Ye = {
20
+ }, Ze = {
20
21
  key: 1,
21
22
  class: "text-fm-color-typo-secondary"
22
- }, Ze = { class: "flex justify-end items-center" }, et = { class: "w-[320px] xs:w-full xs:px-16 xs:mt-8" }, tt = {
23
+ }, et = { class: "flex justify-end items-center" }, tt = { class: "w-[320px] xs:w-full xs:px-16 xs:mt-8" }, nt = {
23
24
  key: 1,
24
25
  class: "flex-1 min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
25
- }, nt = ["onClick"], lt = { class: "min-w-0 flex-1" }, at = { class: "fm-typo-en-body-lg-600 mb-4 break-words" }, ot = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, st = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, it = {
26
- key: 2,
27
- class: "fixed right-16 bottom-[72px] z-[100]"
28
- }, ut = { class: "fm-typo-en-title-md-600" }, dt = {
26
+ }, lt = ["onClick"], at = { class: "min-w-0 flex-1" }, ot = { class: "fm-typo-en-body-lg-600 mb-4 break-words" }, st = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, ut = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, it = { class: "fm-typo-en-title-md-600" }, dt = {
29
27
  key: 0,
30
28
  class: "pt-8 flex flex-col gap-8"
31
29
  }, mt = {
@@ -35,21 +33,21 @@ const Ge = {
35
33
  key: 0,
36
34
  class: "fm-typo-en-body-sm-400 text-fm-color-system-error-500",
37
35
  role: "alert"
38
- }, pt = { class: "flex gap-8 items-center justify-start" }, bt = /* @__PURE__ */ ue({
36
+ }, pt = { class: "flex gap-8 items-center justify-start" }, bt = /* @__PURE__ */ ie({
39
37
  __name: "IngredientList",
40
38
  props: {
41
39
  sdk: {}
42
40
  },
43
41
  setup(R) {
44
- const F = R, { t } = Le(), w = Oe(), q = ze(), de = De(), { run: P } = Pe(), x = Qe(F.sdk.sku.list), c = f(
42
+ const h = R, { t } = Le(), w = Qe(), q = Ee(), de = De(), { run: P } = Ke(), x = je(h.sdk.sku.list), r = f(
45
43
  () => x.value.status === "ready" ? x.value.value : null
46
44
  ), me = f(() => {
47
45
  var n;
48
- return ((n = c.value) == null ? void 0 : n.query) ?? "";
49
- }), { breakpoints: re } = Ee(), A = f(() => re.value.xs), ce = f(() => {
46
+ return ((n = r.value) == null ? void 0 : n.query) ?? "";
47
+ }), { breakpoints: re } = Te(), A = f(() => re.value.xs), ce = f(() => {
50
48
  var n;
51
- return [...((n = c.value) == null ? void 0 : n.rows) ?? []];
52
- }), g = E(!1), N = E(!1), V = E("recipe"), s = ne(F.sdk.sku.editor()), S = ne(
49
+ return [...((n = r.value) == null ? void 0 : n.rows) ?? []];
50
+ }), g = T(!1), N = T(!1), V = T("recipe"), s = ne(h.sdk.sku.editor()), S = ne(
53
51
  s.value.get()
54
52
  );
55
53
  let D = s.value.subscribe(
@@ -59,7 +57,7 @@ const Ge = {
59
57
  );
60
58
  const a = f(
61
59
  () => S.value.status === "ready" ? S.value.value : null
62
- ), p = Ke(() => s.value), K = f(
60
+ ), p = Oe(() => s.value), K = f(
63
61
  () => a.value ? p.issue(a.value.fieldIssues, "name") ?? a.value.nameIssue : null
64
62
  ), O = f(
65
63
  () => a.value ? p.issue(a.value.fieldIssues, "code") ?? a.value.codeIssue : null
@@ -81,7 +79,7 @@ const Ge = {
81
79
  )["onUpdate:modelValue"](l);
82
80
  }
83
81
  function H(n) {
84
- D(), s.value.dispose(), s.value = F.sdk.sku.editor(n), S.value = s.value.get(), D = s.value.subscribe(
82
+ D(), s.value.dispose(), s.value = h.sdk.sku.editor(n), S.value = s.value.get(), D = s.value.subscribe(
85
83
  (l) => {
86
84
  S.value = l;
87
85
  }
@@ -89,7 +87,7 @@ const Ge = {
89
87
  }
90
88
  function L() {
91
89
  var n;
92
- ((n = c.value) == null ? void 0 : n.create.state) === "allowed" && (H(), g.value = !0);
90
+ ((n = r.value) == null ? void 0 : n.create.state) === "allowed" && (H(), g.value = !0);
93
91
  }
94
92
  function J(n) {
95
93
  H(n.id), g.value = !0;
@@ -140,14 +138,14 @@ const Ge = {
140
138
  primaryActions: {
141
139
  text: t("menu.common.actions.remove"),
142
140
  close: !0,
143
- variant: Te.Destructive
141
+ variant: ze.Destructive
144
142
  },
145
143
  secondaryActions: {
146
144
  text: t("menu.common.actions.cancel"),
147
145
  close: !0
148
146
  }
149
147
  }).onPrimary(async () => {
150
- await P(() => F.sdk.sku.remove(n.id), {
148
+ await P(() => h.sdk.sku.remove(n.id), {
151
149
  successMessage: t("menu.sku.form.removed", { name: n.name })
152
150
  });
153
151
  });
@@ -214,20 +212,20 @@ const Ge = {
214
212
  D(), s.value.dispose();
215
213
  }), (n, l) => {
216
214
  const k = m("FmButton"), U = m("FmCircularProgress"), ge = m("FmSearch"), _e = m("FmTable"), Z = m("FmTextField"), xe = m("FmLabel"), Fe = m("FmField"), he = m("FmMenuHeader"), Ce = m("FmMenuDivider"), we = m("FmMenuItem"), Ie = m("FmMenu"), Me = m("FmFormGroup"), Se = m("FmSwitch"), Ue = m("FmSelect"), Be = m("FmCard"), Ve = m("FmSideSheet");
217
- return i(), C(qe, {
215
+ return u(), F(Pe, {
218
216
  "data-visual-root": "sku",
219
217
  heading: e(t)("menu.ingredient.title")
220
218
  }, {
221
219
  "append-heading": y(() => [
222
- e(x).status === "ready" && c.value ? (i(), r("div", Ge, [
223
- v("div", He, [
224
- v("div", Je, [
225
- v("p", We, _(c.value.totalCount), 1)
220
+ e(x).status === "ready" && r.value ? (u(), c("div", He, [
221
+ v("div", Je, [
222
+ v("div", We, [
223
+ v("p", Xe, _(r.value.totalCount), 1)
226
224
  ])
227
225
  ]),
228
- c.value.totalCount > 0 && !A.value ? (i(), C(k, {
226
+ r.value.totalCount > 0 && !A.value ? (u(), F(k, {
229
227
  key: 0,
230
- disabled: c.value.create.state !== "allowed",
228
+ disabled: r.value.create.state !== "allowed",
231
229
  label: e(t)("menu.ingredient.actions.add"),
232
230
  "prepend-icon": "add",
233
231
  onClick: L
@@ -237,7 +235,7 @@ const Ge = {
237
235
  default: y(() => {
238
236
  var ee;
239
237
  return [
240
- e(x).status === "error" ? (i(), r("p", Xe, _(e(w)(e(x).error.message)), 1)) : e(x).status === "unavailable" ? (i(), r("p", Ye, _(e(w)(e(x).reason)), 1)) : e(x).status === "loading" ? (i(), C(U, { key: 2 })) : c.value && c.value.totalCount === 0 ? (i(), C(e(se), {
238
+ e(x).status === "error" ? (u(), c("p", Ye, _(e(w)(e(x).error.message)), 1)) : e(x).status === "unavailable" ? (u(), c("p", Ze, _(e(w)(e(x).reason)), 1)) : e(x).status === "loading" ? (u(), F(U, { key: 2 })) : r.value && r.value.totalCount === 0 ? (u(), F(e(se), {
241
239
  key: 3,
242
240
  action: {
243
241
  text: e(t)("menu.ingredient.empty.action"),
@@ -245,28 +243,28 @@ const Ge = {
245
243
  },
246
244
  title: e(t)("menu.ingredient.empty.title"),
247
245
  subtitle: e(t)("menu.ingredient.empty.subtitle")
248
- }, null, 8, ["action", "title", "subtitle"])) : c.value ? (i(), r(I, { key: 4 }, [
249
- v("div", Ze, [
250
- v("div", et, [
246
+ }, null, 8, ["action", "title", "subtitle"])) : r.value ? (u(), c(I, { key: 4 }, [
247
+ v("div", et, [
248
+ v("div", tt, [
251
249
  d(ge, {
252
250
  autofocus: "",
253
251
  class: "mb-8",
254
252
  "model-value": me.value,
255
253
  placeholder: e(t)("menu.ingredient.table.search.placeholder"),
256
- "onUpdate:modelValue": F.sdk.sku.search
254
+ "onUpdate:modelValue": h.sdk.sku.search
257
255
  }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
258
256
  ])
259
257
  ]),
260
- A.value ? (i(), r("div", tt, [
261
- (i(!0), r(I, null, T(c.value.rows, (o) => (i(), r("div", {
258
+ A.value ? (u(), c("div", nt, [
259
+ (u(!0), c(I, null, z(r.value.rows, (o) => (u(), c("div", {
262
260
  key: o.id,
263
261
  class: "py-12 px-16 flex space-x-8 items-center",
264
- onClick: (h) => J(o)
262
+ onClick: (C) => J(o)
265
263
  }, [
266
- v("div", lt, [
267
- v("p", at, _(o.name), 1),
268
- v("p", ot, _(e(t)("menu.ingredient.table.mobile.code", { code: o.code })), 1),
269
- v("p", st, _(e(t)("menu.ingredient.table.mobile.unit", {
264
+ v("div", at, [
265
+ v("p", ot, _(o.name), 1),
266
+ v("p", st, _(e(t)("menu.ingredient.table.mobile.code", { code: o.code })), 1),
267
+ v("p", ut, _(e(t)("menu.ingredient.table.mobile.unit", {
270
268
  unit: e(t)("menu.sku.unit_option", {
271
269
  name: o.unitName,
272
270
  symbol: o.unitSymbol
@@ -280,28 +278,31 @@ const Ge = {
280
278
  "prepend-icon": "delete",
281
279
  "text-color": "neutral-gray-400",
282
280
  variant: "tertiary",
283
- onClick: le((h) => W(o), ["stop"])
281
+ onClick: le((C) => W(o), ["stop"])
284
282
  }, null, 8, ["aria-label", "disabled", "onClick"])
285
- ], 8, nt))), 128))
286
- ])) : (i(), C(_e, {
283
+ ], 8, lt))), 128))
284
+ ])) : (u(), F(_e, {
287
285
  key: 0,
288
286
  "column-defs": be.value,
289
287
  "hide-footer": "",
290
- "page-size": Math.max(c.value.rows.length, 1),
288
+ "page-size": Math.max(r.value.rows.length, 1),
291
289
  "pin-header-row": "",
292
290
  "row-data": ce.value,
293
291
  "shrink-at": !1,
294
292
  onRowClick: l[0] || (l[0] = (o) => J(o.original))
295
293
  }, null, 8, ["column-defs", "page-size", "row-data"])),
296
- c.value.totalCount > 0 && A.value ? (i(), r("div", it, [
297
- d(k, {
298
- disabled: c.value.create.state !== "allowed",
299
- label: e(t)("menu.ingredient.actions.add"),
300
- "prepend-icon": "add",
301
- variant: "fab",
302
- onClick: L
303
- }, null, 8, ["disabled", "label"])
304
- ])) : M("", !0)
294
+ r.value.totalCount > 0 && A.value ? (u(), F(Re, { key: 2 }, {
295
+ default: y(() => [
296
+ d(k, {
297
+ disabled: r.value.create.state !== "allowed",
298
+ label: e(t)("menu.ingredient.actions.add"),
299
+ "prepend-icon": "add",
300
+ variant: "fab",
301
+ onClick: L
302
+ }, null, 8, ["disabled", "label"])
303
+ ]),
304
+ _: 1
305
+ })) : M("", !0)
305
306
  ], 64)) : M("", !0),
306
307
  d(Ve, {
307
308
  modelValue: g.value,
@@ -314,16 +315,16 @@ const Ge = {
314
315
  "side-sheet-header": y(() => {
315
316
  var o;
316
317
  return [
317
- v("p", ut, _(((o = a.value) == null ? void 0 : o.mode) === "update" ? e(t)("menu.sku.update") : e(t)("menu.sku.add")), 1)
318
+ v("p", it, _(((o = a.value) == null ? void 0 : o.mode) === "update" ? e(t)("menu.sku.update") : e(t)("menu.sku.add")), 1)
318
319
  ];
319
320
  }),
320
321
  "side-sheet-footer": y(() => {
321
- var o, h;
322
+ var o, C;
322
323
  return [
323
324
  v("div", pt, [
324
325
  d(k, {
325
326
  disabled: ((o = a.value) == null ? void 0 : o.submit.state) !== "allowed",
326
- label: ((h = a.value) == null ? void 0 : h.mode) === "update" ? e(t)("menu.common.actions.update") : e(t)("menu.common.actions.add"),
327
+ label: ((C = a.value) == null ? void 0 : C.mode) === "update" ? e(t)("menu.common.actions.update") : e(t)("menu.common.actions.add"),
327
328
  size: "lg",
328
329
  type: "submit",
329
330
  variant: "primary"
@@ -332,33 +333,33 @@ const Ge = {
332
333
  label: e(t)("menu.common.actions.cancel"),
333
334
  size: "lg",
334
335
  variant: "tertiary",
335
- onClick: l[9] || (l[9] = (z) => g.value = !1)
336
+ onClick: l[9] || (l[9] = (E) => g.value = !1)
336
337
  }, null, 8, ["label"])
337
338
  ])
338
339
  ];
339
340
  }),
340
341
  default: y(() => {
341
- var o, h, z, te;
342
+ var o, C, E, te;
342
343
  return [
343
- (o = a.value) != null && o.noUnits ? (i(), r("div", dt, [
344
+ (o = a.value) != null && o.noUnits ? (u(), c("div", dt, [
344
345
  d(e(se), {
345
346
  action: { text: e(t)("menu.unit.add"), callback: ke },
346
347
  title: e(t)("menu.sku.empty.no_unit"),
347
348
  subtitle: e(t)("menu.sku.empty.subtitle")
348
349
  }, null, 8, ["action", "title", "subtitle"])
349
- ])) : (i(), r("div", mt, [
350
+ ])) : (u(), c("div", mt, [
350
351
  v("div", rt, [
351
352
  d(Z, ae({
352
353
  class: "flex-2",
353
354
  "error-messages": O.value ? [e(w)(O.value)] : [],
354
355
  label: e(t)("menu.sku.columns.code"),
355
- "model-value": ((h = a.value) == null ? void 0 : h.code) ?? ""
356
+ "model-value": ((C = a.value) == null ? void 0 : C.code) ?? ""
356
357
  }, e(p).field("code", s.value.setCode)), null, 16, ["error-messages", "label", "model-value"]),
357
358
  d(Z, ae({
358
359
  class: "flex-1",
359
360
  "error-messages": K.value ? [e(w)(K.value)] : [],
360
361
  label: e(t)("menu.sku.columns.name"),
361
- "model-value": ((z = a.value) == null ? void 0 : z.name) ?? ""
362
+ "model-value": ((E = a.value) == null ? void 0 : E.name) ?? ""
362
363
  }, e(p).field("name", s.value.setName)), null, 16, ["error-messages", "label", "model-value"])
363
364
  ]),
364
365
  d(Me, {
@@ -392,14 +393,14 @@ const Ge = {
392
393
  var B;
393
394
  return [
394
395
  v("div", ct, [
395
- (i(!0), r(I, null, T(((B = a.value) == null ? void 0 : B.unitGroups) ?? [], (u) => (i(), r(I, {
396
- key: u.unitId
396
+ (u(!0), c(I, null, z(((B = a.value) == null ? void 0 : B.unitGroups) ?? [], (i) => (u(), c(I, {
397
+ key: i.unitId
397
398
  }, [
398
399
  d(he, {
399
- label: u.name
400
+ label: i.name
400
401
  }, null, 8, ["label"]),
401
402
  d(Ce),
402
- (i(!0), r(I, null, T(u.options, (b) => (i(), C(we, {
403
+ (u(!0), c(I, null, z(i.options, (b) => (u(), F(we, {
403
404
  key: `${b.unitId}:${b.measurementId ?? "base"}`,
404
405
  label: e(t)("menu.sku.unit_option", {
405
406
  name: b.name,
@@ -434,40 +435,40 @@ const Ge = {
434
435
  "model-value": (($ = a.value) == null ? void 0 : $.convertible) ?? !1,
435
436
  sublabel: e(t)("menu.sku.convertible.sublabel"),
436
437
  "label-placement": "right",
437
- "onUpdate:modelValue": l[1] || (l[1] = (u) => (e(p).touch("convert"), s.value.setConvertible(u)))
438
+ "onUpdate:modelValue": l[1] || (l[1] = (i) => (e(p).touch("convert"), s.value.setConvertible(i)))
438
439
  }, null, 8, ["label", "model-value", "sublabel"]),
439
- (B = a.value) != null && B.convertible ? (i(), r(I, { key: 0 }, [
440
+ (B = a.value) != null && B.convertible ? (u(), c(I, { key: 0 }, [
440
441
  d(Ue, {
441
- items: a.value.convertOptions.map((u) => ({
442
+ items: a.value.convertOptions.map((i) => ({
442
443
  label: e(t)("menu.sku.convert_option", {
443
- name: u.name,
444
- symbol: u.symbol
444
+ name: i.name,
445
+ symbol: i.symbol
445
446
  }),
446
- value: u.measurementId
447
+ value: i.measurementId
447
448
  })),
448
449
  label: e(t)("menu.sku.convertible.convert_to"),
449
450
  "model-value": a.value.convertMeasurementId,
450
- "onUpdate:modelValue": l[2] || (l[2] = (u) => s.value.selectConvertMeasurement(u))
451
+ "onUpdate:modelValue": l[2] || (l[2] = (i) => s.value.selectConvertMeasurement(i))
451
452
  }, null, 8, ["items", "label", "model-value"]),
452
- d(ie, {
453
+ d(ue, {
453
454
  kind: "recipe",
454
455
  disabled: X.value,
455
456
  rows: j(a.value.recipeBindings),
456
- onLink: l[3] || (l[3] = (u) => Y("recipe")),
457
- onRemove: l[4] || (l[4] = (u) => (e(p).touch("convert"), s.value.removeBinding(u))),
457
+ onLink: l[3] || (l[3] = (i) => Y("recipe")),
458
+ onRemove: l[4] || (l[4] = (i) => (e(p).touch("convert"), s.value.removeBinding(i))),
458
459
  onUpdateAmount: G,
459
- onUpdateMeasurement: l[5] || (l[5] = (u, b) => s.value.setBindingMeasurement(u, b))
460
+ onUpdateMeasurement: l[5] || (l[5] = (i, b) => s.value.setBindingMeasurement(i, b))
460
461
  }, null, 8, ["disabled", "rows"]),
461
- d(ie, {
462
+ d(ue, {
462
463
  kind: "ingredient",
463
464
  disabled: X.value,
464
465
  rows: j(a.value.ingredientBindings),
465
- onLink: l[6] || (l[6] = (u) => Y("ingredient")),
466
- onRemove: l[7] || (l[7] = (u) => (e(p).touch("convert"), s.value.removeBinding(u))),
466
+ onLink: l[6] || (l[6] = (i) => Y("ingredient")),
467
+ onRemove: l[7] || (l[7] = (i) => (e(p).touch("convert"), s.value.removeBinding(i))),
467
468
  onUpdateAmount: G,
468
- onUpdateMeasurement: l[8] || (l[8] = (u, b) => s.value.setBindingMeasurement(u, b))
469
+ onUpdateMeasurement: l[8] || (l[8] = (i, b) => s.value.setBindingMeasurement(i, b))
469
470
  }, null, 8, ["disabled", "rows"]),
470
- Q.value ? (i(), r("p", vt, _(e(w)(Q.value)), 1)) : M("", !0)
471
+ Q.value ? (u(), c("p", vt, _(e(w)(Q.value)), 1)) : M("", !0)
471
472
  ], 64)) : M("", !0)
472
473
  ];
473
474
  }),
@@ -478,7 +479,7 @@ const Ge = {
478
479
  }),
479
480
  _: 1
480
481
  }, 8, ["modelValue", "is-container", "is-container-props"]),
481
- d(Re, {
482
+ d(qe, {
482
483
  modelValue: N.value,
483
484
  "onUpdate:modelValue": l[11] || (l[11] = (o) => N.value = o),
484
485
  candidates: fe.value,
@@ -493,13 +494,13 @@ const Ge = {
493
494
  }, 8, ["heading"]);
494
495
  };
495
496
  }
496
- }), St = /* @__PURE__ */ ue({
497
+ }), Ut = /* @__PURE__ */ ie({
497
498
  __name: "Ingredient",
498
499
  setup(R) {
499
- const F = je();
500
- return (t, w) => (i(), C(bt, { sdk: e(F) }, null, 8, ["sdk"]));
500
+ const h = Ge();
501
+ return (t, w) => (u(), F(bt, { sdk: e(h) }, null, 8, ["sdk"]));
501
502
  }
502
503
  });
503
504
  export {
504
- St as default
505
+ Ut as default
505
506
  };
@@ -2,7 +2,7 @@ import { defineComponent as Ge, ref as V, computed as h, watch as ue, resolveCom
2
2
  import { d as Ue } from "./vuedraggable-CBtQLb_S.js";
3
3
  import { useI18n as je, ItemSelector as $e } from "@feedmepos/mf-common";
4
4
  import { components as ze } from "@feedmepos/ui-library";
5
- import { r as Me } from "./provide-CDmXzkhz.js";
5
+ import { r as Me } from "./provide-BGLSDsuJ.js";
6
6
  import { r as Be, a as re } from "./ruleValueKey-BF52PuHb.js";
7
7
  import { _ as De } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
8
8
  import { u as Ke } from "./useEditorValidation-Ctef5Bxt.js";