@feedmepos/mf-inventory-portal 0.0.25-dev.41 → 0.0.25-dev.42

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 (43) hide show
  1. package/dist/{App-BqAbcrCa.js → App-BgLyTa3Z.js} +2 -2
  2. package/dist/{ApprovalView-CstNyWuq.js → ApprovalView-UC31qsPD.js} +17 -17
  3. package/dist/{BindingsDialog-B2POgTvT.js → BindingsDialog-h9el4EvX.js} +2 -2
  4. package/dist/{BindingsPicker-Bp8wNAW0.js → BindingsPicker-Cw5AT6xO.js} +1 -1
  5. package/dist/{BindingsTable-C5ToIwJw.js → BindingsTable-Boj3hZup.js} +1 -1
  6. package/dist/{ClosingDraftView-B5KgTQOB.js → ClosingDraftView-DOH7FmkH.js} +2 -2
  7. package/dist/{ClosingTemplateView-B6gT5-A_.js → ClosingTemplateView-CG7qArA8.js} +2 -2
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcedQV1P.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-k1J8dWcK.js} +3 -3
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Bc6eTKR-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C5qp_p1A.js} +1 -1
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C76t4wed.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DBYsiV9t.js} +1 -1
  11. package/dist/{IngredientGroupView-Bo18pDpd.js → IngredientGroupView-CWEw3I3i.js} +14 -14
  12. package/dist/{IngredientsView-D4Tx5h1N.js → IngredientsView-B6EDjPTe.js} +492 -504
  13. package/dist/{IntegrationView-5cTVErK7.js → IntegrationView-DiSoM1K8.js} +1 -1
  14. package/dist/{InventoryBindingForm-D_JUD2PF.js → InventoryBindingForm-nKWx-EUW.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Co33Sz1A.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BMMD4hwX.js} +3 -3
  16. package/dist/{InventoryBindingSummary-DsQqzLxI.js → InventoryBindingSummary-CQnCjIY4.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKCHqrFd.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cr8DwdOC.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-NhSXPpV1.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DnZI3Gfj.js} +1 -1
  19. package/dist/{PublishView-CVReC-7J.js → PublishView-DvHW27pI.js} +7 -7
  20. package/dist/{PurchaseOrderPrintPreview-kHtSdc_I.js → PurchaseOrderPrintPreview-DSTbRKyh.js} +1 -1
  21. package/dist/{ReceiveRequestView-JJdBl6jR.js → ReceiveRequestView-BKRHqSU-.js} +9 -9
  22. package/dist/{RecipeView-BAZzsPdQ.js → RecipeView-CFTrf0YF.js} +21 -21
  23. package/dist/{StockView-Dwzf7ewT.js → StockView-CAPLd29m.js} +1526 -1539
  24. package/dist/{SupplierView-BoTsfsYX.js → SupplierView-C_CrS9FM.js} +441 -453
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-C2ZBmCNY.js → TransferDetails.vue_vue_type_script_setup_true_lang-BWuWB95v.js} +4 -4
  26. package/dist/{TransferTemplateView-BLO1uHet.js → TransferTemplateView-BaJaiaO9.js} +68 -68
  27. package/dist/{UnitView-DfJ-huaQ.js → UnitView-DY9nZs1y.js} +3 -3
  28. package/dist/{WarehouseView-h5_GDAYM.js → WarehouseView-CAFxl8K4.js} +1 -1
  29. package/dist/{app-CRWxxzQN.js → app-Jh5wwLsF.js} +3271 -3260
  30. package/dist/app.js +1 -1
  31. package/dist/{decimal-BDt03-KF.js → decimal-0_acpDRy.js} +1 -1
  32. package/dist/{feature-D_c7uzcV.js → feature-CqX_LtOl.js} +1 -1
  33. package/dist/{format-unit-display-CsfojMpU.js → format-unit-display-CYPC8_oX.js} +2 -2
  34. package/dist/helper/country.d.ts +1 -0
  35. package/dist/{index-BbwuhE-c.js → index-QcOk4LDU.js} +2 -2
  36. package/dist/{stock-DSyF_gBG.js → stock-BpWEKDoQ.js} +1 -1
  37. package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
  38. package/dist/{supplier-BLqNIQG9.js → supplier-By3gzRHW.js} +1 -1
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/{use-ingredient-select-dialog-BSxFzWSk.js → use-ingredient-select-dialog-hkbfGnB9.js} +1 -1
  41. package/dist/{use-inventory-binding-dialog-DyIQsTTm.js → use-inventory-binding-dialog-BFG04MUx.js} +1 -1
  42. package/dist/{vue-i18n-ZO6qpjnw.js → vue-i18n-D57Xfcpf.js} +2 -2
  43. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import { ref as Q, computed as H, defineComponent as Z, mergeModels as ve, useModel as pe, onMounted as Ie, resolveComponent as O, openBlock as k, createElementBlock as z, createElementVNode as f, toDisplayString as L, unref as b, createVNode as V, createBlock as K, withCtx as J, Fragment as G, renderList as U, normalizeClass as q, normalizeStyle as ye, createSlots as be, createCommentVNode as F, withModifiers as Ee, reactive as te, watch as ne, isRef as ie, Teleport as oe } from "vue";
2
2
  import { E as he } from "./empty-placeholder-wf6-BWE8.js";
3
- import { u as _, aQ as se, b as re, aR as Be, aJ as Ce, e as T, _ as Se, z as ke } from "./app-CRWxxzQN.js";
3
+ import { u as _, aQ as se, b as re, aR as Be, aJ as Ce, e as T, _ as Se, B as ke } from "./app-Jh5wwLsF.js";
4
4
  import { useSnackbar as le, useDialogChild as xe, useDialog as ae, useProxiedModel as ue, useBreakpoints as $ } from "@feedmepos/ui-library";
5
5
  import { useI18n as Y, useCoreStore as we } from "@feedmepos/mf-common";
6
6
  function Me() {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Co33Sz1A.js";
1
+ import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BMMD4hwX.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as J, computed as _, reactive as Q, resolveComponent as x, openBlock as m, createElementBlock as y, createVNode as c, createElementVNode as n, toDisplayString as v, unref as l, createBlock as V, createCommentVNode as g, Fragment as R, renderList as T, withCtx as S, nextTick as X } from "vue";
2
- import { a as Z, aT as ee, aU as ne, i as B, aV as oe, L as N, K as te, F as ie } from "./app-CRWxxzQN.js";
3
- import { u as le } from "./use-inventory-binding-dialog-DyIQsTTm.js";
4
- import { _ as re, c as se, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Bc6eTKR-.js";
2
+ import { a as Z, aT as ee, aU as ne, i as B, aV as oe, L as N, K as te, F as ie } from "./app-Jh5wwLsF.js";
3
+ import { u as le } from "./use-inventory-binding-dialog-BFG04MUx.js";
4
+ import { _ as re, c as se, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-C5qp_p1A.js";
5
5
  import { useI18n as ae } from "@feedmepos/mf-common";
6
6
  const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-16" }, ce = { class: "flex items-center" }, pe = { class: "flex-1 fm-typo-en-title-sm-600" }, fe = { class: "flex flex-col" }, ye = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ve = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, _e = {
7
7
  class: "flex items-center w-full border-b border-fm-color-neutral-gray-100",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as s, resolveComponent as c, openBlock as m, createBlock as d, h as g } from "vue";
2
2
  import { useI18n as p } from "@feedmepos/mf-common";
3
3
  import { components as u } from "@feedmepos/ui-library";
4
- import { F as r } from "./app-CRWxxzQN.js";
4
+ import { F as r } from "./app-Jh5wwLsF.js";
5
5
  const B = /* @__PURE__ */ s({
6
6
  __name: "InventoryBindingSummary",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
2
- import { K as d } from "./app-CRWxxzQN.js";
2
+ import { K as d } from "./app-Jh5wwLsF.js";
3
3
  const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { aA as d, aB as f, W as _, u as h } from "./app-CRWxxzQN.js";
1
+ import { aA as d, aB as f, W as _, u as h } from "./app-Jh5wwLsF.js";
2
2
  import { useCoreStore as F } from "@feedmepos/mf-common";
3
3
  import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as S, createVNode as l, withCtx as x } from "vue";
4
4
  function I(e, t) {
@@ -1,11 +1,11 @@
1
- import { defineComponent as Q, ref as z, computed as r, resolveComponent as s, openBlock as I, createBlock as R, unref as h, createSlots as X, withCtx as u, createElementVNode as v, normalizeClass as Z, createVNode as n, normalizeStyle as ee, Teleport as te, h as f } from "vue";
2
- import { u as oe, a as ne, aP as ae, y as se, _ as le, ai as B } from "./app-CRWxxzQN.js";
1
+ import { defineComponent as Q, ref as D, computed as r, resolveComponent as s, openBlock as I, createBlock as R, unref as h, createSlots as X, withCtx as u, createElementVNode as v, normalizeClass as Z, createVNode as n, normalizeStyle as ee, Teleport as te, h as f } from "vue";
2
+ import { u as oe, a as ne, aP as ae, z as se, _ as le, ai as B } from "./app-Jh5wwLsF.js";
3
3
  import { useBreakpoints as ie, useDialog as re, useSnackbar as ue, components as H } from "@feedmepos/ui-library";
4
- import { u as ce } from "./vue-i18n-ZO6qpjnw.js";
4
+ import { u as ce } from "./vue-i18n-D57Xfcpf.js";
5
5
  const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */ Q({
6
6
  __name: "PublishView",
7
7
  setup(be) {
8
- const { t: o } = ce(), { breakpoints: x } = ie(), l = oe(), A = ne(), S = ae(), g = z(!1), c = r(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), Y = se(), P = re(), N = ue(), $ = r(() => l.locations), _ = r(() => x.value.xs || x.value.sm), U = r(() => _.value ? 10 : 20), q = r(() => [
8
+ const { t: o } = ce(), { breakpoints: x } = ie(), l = oe(), A = ne(), S = ae(), g = D(!1), c = r(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), Y = se(), P = re(), N = ue(), $ = r(() => l.locations), _ = r(() => x.value.xs || x.value.sm), U = r(() => _.value ? 10 : 20), q = r(() => [
9
9
  {
10
10
  label: "Refresh",
11
11
  value: "refresh",
@@ -30,7 +30,7 @@ const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
30
30
  break;
31
31
  }
32
32
  }
33
- const w = z(!1), K = [
33
+ const w = D(!1), K = [
34
34
  {
35
35
  value: "publish",
36
36
  label: o("inventory.publish.actions.publishAll")
@@ -160,7 +160,7 @@ const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
160
160
  "list-row": u((i) => [
161
161
  n(d, { row: i }, {
162
162
  default: u((p) => {
163
- var C, F, k, b, M, L, T, V, y, D;
163
+ var C, F, k, b, M, L, T, V, y, z;
164
164
  return [
165
165
  v("div", me, [
166
166
  v("div", de, [
@@ -172,7 +172,7 @@ const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
172
172
  v("div", pe, [
173
173
  n(m, {
174
174
  render: (V = (T = (L = p.name) == null ? void 0 : L.column) == null ? void 0 : T.columnDef) == null ? void 0 : V.cell,
175
- props: (D = (y = p.name) == null ? void 0 : y.getContext) == null ? void 0 : D.call(y)
175
+ props: (z = (y = p.name) == null ? void 0 : y.getContext) == null ? void 0 : z.call(y)
176
176
  }, null, 8, ["render", "props"])
177
177
  ])
178
178
  ])
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { au as y, ah as C } from "./app-CRWxxzQN.js";
3
+ import { au as y, ah as C } from "./app-Jh5wwLsF.js";
4
4
  const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, T = { class: "sub-header" }, q = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
5
5
  class: "text-left",
6
6
  style: { width: "20%" }
@@ -1,17 +1,17 @@
1
1
  import { reactive as gt, onMounted as Xe, h as j, defineComponent as de, openBlock as k, createElementBlock as D, Fragment as ue, renderList as Ie, createElementVNode as l, toDisplayString as P, unref as t, resolveComponent as $, createVNode as c, withCtx as T, createCommentVNode as H, computed as N, ref as q, createBlock as Q, watch as _e, normalizeClass as K, normalizeStyle as _t, createTextVNode as $e, nextTick as Dt, mergeProps as Ke, isRef as we, createSlots as Tt, Teleport as Vt, normalizeProps as Pt, guardReactiveProps as Rt } from "vue";
2
- import { b as Ze, Z as ht, l as Me, i as Fe, a0 as Ge, K as At, ar as Et, A as ze, M as Mt, m as kt, ab as We, E as ve, as as Ut, a as He, at as qt, au as Ot, av as Nt, H as Qe, G as xt, u as Je, aw as Bt, ax as Lt, $ as zt, T as Ht, ay as jt, B as Ct, d as Ee, v as Yt, w as Kt, x as Qt, az as Le, a5 as pt, y as Xt, _ as Zt, z as Gt, N as ft } from "./app-CRWxxzQN.js";
3
- import { u as et, a as Wt, P as Ye, b as Jt, _ as es, g as ts } from "./TransferDetails.vue_vue_type_script_setup_true_lang-C2ZBmCNY.js";
4
- import { _ as St, u as ss, i as os, e as as } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-NhSXPpV1.js";
2
+ import { b as Ze, Z as ht, l as Me, i as Fe, a0 as Ge, K as At, ar as Et, A as ze, M as Mt, m as kt, ab as We, E as ve, as as Ut, a as He, at as qt, au as Ot, av as Nt, H as Qe, G as xt, u as Je, aw as Bt, ax as Lt, $ as zt, T as Ht, ay as jt, C as Ct, d as Ee, w as Yt, x as Kt, y as Qt, az as Le, a5 as pt, z as Xt, _ as Zt, B as Gt, N as ft } from "./app-Jh5wwLsF.js";
3
+ import { u as et, a as Wt, P as Ye, b as Jt, _ as es, g as ts } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BWuWB95v.js";
4
+ import { _ as St, u as ss, i as os, e as as } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-DnZI3Gfj.js";
5
5
  import { u as ls } from "./useTabStorage-BkIVScW_.js";
6
6
  import { useBreakpoints as tt, components as ge, FmButtonVariant as ns, useSnackbar as De, useDialog as wt, useProxiedModel as Ft } from "@feedmepos/ui-library";
7
- import { u as It, P as ae } from "./format-unit-display-CsfojMpU.js";
8
- import { _ as rs, F as is, a as us, b as ds } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Bc6eTKR-.js";
9
- import { u as st } from "./feature-D_c7uzcV.js";
10
- import { c as Se, u as cs, _ as ms } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcedQV1P.js";
7
+ import { u as It, P as ae } from "./format-unit-display-CYPC8_oX.js";
8
+ import { _ as rs, F as is, a as us, b as ds } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-C5qp_p1A.js";
9
+ import { u as st } from "./feature-CqX_LtOl.js";
10
+ import { c as Se, u as cs, _ as ms } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-k1J8dWcK.js";
11
11
  import { useI18n as he } from "@feedmepos/mf-common";
12
- import { u as ot } from "./supplier-BLqNIQG9.js";
12
+ import { u as ot } from "./supplier-By3gzRHW.js";
13
13
  import { _ as ps } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
14
- import { u as fs } from "./vue-i18n-ZO6qpjnw.js";
14
+ import { u as fs } from "./vue-i18n-D57Xfcpf.js";
15
15
  import { defineStore as vs } from "pinia";
16
16
  import "./array-hChJVZLE.js";
17
17
  var G = /* @__PURE__ */ ((y) => (y.Code = "Code", y.Name = "Name", y.TemplateName = "TemplateName", y.Amount = "Amount", y.Cost = "Cost", y.TotalCost = "TotalCost", y.Delete = "Delete", y))(G || {});
@@ -1,11 +1,11 @@
1
- import { defineComponent as H, ref as C, onMounted as re, resolveComponent as S, openBlock as x, createElementBlock as $, Fragment as ie, createElementVNode as R, toDisplayString as ce, createVNode as v, createCommentVNode as j, computed as F, watch as ue, createBlock as T, withCtx as P, unref as b, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
2
- import { a as A, d as V, e as O, S as ye, f as ge, D as ee, h as Y, i as q, F as te, l as be, U as _e, A as we, o as ne, p as Re, r as he, q as Ve, u as xe, y as Ee, _ as Ce, z as Se, B as Fe, E as oe } from "./app-CRWxxzQN.js";
1
+ import { defineComponent as H, ref as E, onMounted as re, resolveComponent as S, openBlock as x, createElementBlock as $, Fragment as ie, createElementVNode as R, toDisplayString as ce, createVNode as v, createCommentVNode as j, computed as F, watch as ue, createBlock as T, withCtx as P, unref as b, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
2
+ import { a as A, d as V, e as O, S as ye, f as ge, D as ee, h as Y, i as q, F as te, l as be, U as _e, A as we, p as ne, q as Re, s as he, r as Ve, u as xe, z as Ce, _ as Ee, B as Se, C as Fe, E as oe } from "./app-Jh5wwLsF.js";
3
3
  import { useDialog as ke, useSnackbar as se, useProxiedModel as ae, useBreakpoints as De } from "@feedmepos/ui-library";
4
4
  import { i as Ae, _ as Ie } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
- import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-C76t4wed.js";
5
+ import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DBYsiV9t.js";
6
6
  import { defineStore as $e, storeToRefs as Pe } from "pinia";
7
7
  import { useI18n as K } from "@feedmepos/mf-common";
8
- import { _ as Be } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Co33Sz1A.js";
8
+ import { _ as Be } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BMMD4hwX.js";
9
9
  import { _ as Te } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
10
10
  const Me = {
11
11
  key: 0,
@@ -19,7 +19,7 @@ const Me = {
19
19
  bindedItems: {}
20
20
  },
21
21
  setup(h) {
22
- const p = h, y = C(p.bindedItems || []), a = C(!1);
22
+ const p = h, y = E(p.bindedItems || []), a = E(!1);
23
23
  re(() => {
24
24
  s();
25
25
  });
@@ -52,7 +52,7 @@ const Me = {
52
52
  };
53
53
  }
54
54
  }), G = $e("recipeForm", function() {
55
- const p = ke(), y = se(), a = A(), s = C(!1), c = C();
55
+ const p = ke(), y = se(), a = A(), s = E(!1), c = E();
56
56
  function i() {
57
57
  const n = {
58
58
  recipe: {},
@@ -190,9 +190,9 @@ function Le() {
190
190
  return u.map((n) => ({
191
191
  recipe: n.name,
192
192
  ingredients: c(n.contains, /* @__PURE__ */ new Set([n._id])).map((l) => {
193
- var _, g, r, m, E;
193
+ var _, g, r, m, C;
194
194
  const t = d.skuById[l.id];
195
- return t ? l.recipeIds.slice(1).length ? `(linked recipe ${(_ = d.recipeById[l.recipeIds.at(-1) ?? ""]) == null ? void 0 : _.name}) ${t.name} (${q(l.amount)}${((g = l.measurement) == null ? void 0 : g.abbrev) ?? ((r = t == null ? void 0 : t.unit) == null ? void 0 : r.abbrev)})` : `${t.name} (${q(l.amount)}${((m = l.measurement) == null ? void 0 : m.abbrev) ?? ((E = t == null ? void 0 : t.unit) == null ? void 0 : E.abbrev)})` : null;
195
+ return t ? l.recipeIds.slice(1).length ? `(linked recipe ${(_ = d.recipeById[l.recipeIds.at(-1) ?? ""]) == null ? void 0 : _.name}) ${t.name} (${q(l.amount)}${((g = l.measurement) == null ? void 0 : g.abbrev) ?? ((r = t == null ? void 0 : t.unit) == null ? void 0 : r.abbrev)})` : `${t.name} (${q(l.amount)}${((m = l.measurement) == null ? void 0 : m.abbrev) ?? ((C = t == null ? void 0 : t.unit) == null ? void 0 : C.abbrev)})` : null;
196
196
  }).filter((l) => l).join(", "),
197
197
  original: n
198
198
  }));
@@ -248,7 +248,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
248
248
  function d() {
249
249
  s("click:submit");
250
250
  }
251
- const n = C();
251
+ const n = E();
252
252
  p({
253
253
  validateInputs: () => {
254
254
  var e, o;
@@ -263,7 +263,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
263
263
  (o = (e = n.value) == null ? void 0 : e.resetInputs) == null || o.call(e);
264
264
  }
265
265
  });
266
- const l = A(), t = C([]), _ = C(!1), g = C(!1);
266
+ const l = A(), t = E([]), _ = E(!1), g = E(!1);
267
267
  ue(_, async (e) => {
268
268
  r(e);
269
269
  });
@@ -273,7 +273,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
273
273
  }
274
274
  const m = F(
275
275
  () => l.recipes.map((e) => ({ label: e.name, value: e.name }))
276
- ), E = C((k = a.modelValue) == null ? void 0 : k.name);
276
+ ), C = E((k = a.modelValue) == null ? void 0 : k.name);
277
277
  return (e, o) => {
278
278
  const B = S("FmTextField"), I = S("FmCard"), D = S("FmSwitch"), M = S("FmSpacer"), U = S("FmCircularProgress"), N = S("FmForm");
279
279
  return x(), T(N, {
@@ -290,7 +290,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
290
290
  "onUpdate:modelValue": o[0] || (o[0] = (w) => i.value = w),
291
291
  rules: [
292
292
  b(be)(),
293
- b(_e)(m.value, E.value, (w) => `[${w.value}] already exists`)
293
+ b(_e)(m.value, C.value, (w) => `[${w.value}] already exists`)
294
294
  ],
295
295
  "label-mark": "required"
296
296
  }, null, 8, ["disabled", "label", "model-value", "rules"]),
@@ -379,7 +379,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
379
379
  return s("common.add");
380
380
  }
381
381
  return "";
382
- }), d = C(), n = C(!1);
382
+ }), d = E(), n = E(!1);
383
383
  async function l() {
384
384
  n.value = !0;
385
385
  try {
@@ -432,7 +432,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
432
432
  }
433
433
  }
434
434
  return (r, m) => {
435
- const E = S("FmButton"), k = S("FmSideSheet");
435
+ const C = S("FmButton"), k = S("FmSideSheet");
436
436
  return x(), T(k, {
437
437
  "model-value": b(c),
438
438
  "onUpdate:modelValue": m[3] || (m[3] = (e) => Z(c) ? c.value = e : null),
@@ -443,12 +443,12 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
443
443
  }, {
444
444
  "side-sheet-footer": P(() => [
445
445
  R("div", Oe, [
446
- v(E, {
446
+ v(C, {
447
447
  loading: n.value,
448
448
  label: u.value,
449
449
  onClick: _
450
450
  }, null, 8, ["loading", "label"]),
451
- v(E, {
451
+ v(C, {
452
452
  disabled: n.value,
453
453
  label: b(s)("common.close"),
454
454
  variant: "tertiary",
@@ -495,14 +495,14 @@ function Qe() {
495
495
  ),
496
496
  ...l.map(
497
497
  (t, _) => {
498
- var g, r, m, E;
498
+ var g, r, m, C;
499
499
  return [
500
500
  !n.length && _ === 0 ? f.name : "",
501
501
  "INGREDIENT",
502
502
  (g = a[t.id]) == null ? void 0 : g.code,
503
503
  (r = a[t.id]) == null ? void 0 : r.name,
504
504
  q(t.amount),
505
- t.measurement ? t.measurement.abbrev : (E = (m = a[t.id]) == null ? void 0 : m.unit) == null ? void 0 : E.abbrev
505
+ t.measurement ? t.measurement.abbrev : (C = (m = a[t.id]) == null ? void 0 : m.unit) == null ? void 0 : C.abbrev
506
506
  ];
507
507
  }
508
508
  )
@@ -525,10 +525,10 @@ const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-60
525
525
  if (e === "export")
526
526
  return Qe();
527
527
  }
528
- const t = C(""), _ = F(() => f.value), { breakpoints: g } = De(), r = F(() => g.value.xs || g.value.sm), m = F(() => r.value ? 10 : 20), E = Ee(), { t: k } = K();
528
+ const t = E(""), _ = F(() => f.value), { breakpoints: g } = De(), r = F(() => g.value.xs || g.value.sm), m = F(() => r.value ? 10 : 20), C = Ce(), { t: k } = K();
529
529
  return (e, o) => {
530
530
  const B = S("FmTable");
531
- return x(), T(Ce, {
531
+ return x(), T(Ee, {
532
532
  title: b(k)("inventory.recipe.title"),
533
533
  actions: [
534
534
  {
@@ -557,7 +557,7 @@ const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-60
557
557
  "onUpdate:search": o[0] || (o[0] = (I) => t.value = I)
558
558
  }, null, 8, ["search"]),
559
559
  (x(), T(B, {
560
- style: me(b(E).tableHeight),
560
+ style: me(b(C).tableHeight),
561
561
  "column-defs": b(u),
562
562
  "row-data": n.value,
563
563
  "search-value": t.value,