@feedmepos/mf-inventory-portal 0.0.25-dev.8 → 0.0.25-dev.9

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 (80) hide show
  1. package/dist/{App-CKLQeRNl.js → App-9zSE_swt.js} +35 -34
  2. package/dist/{ApprovalView-BWO2tkbO.js → ApprovalView-C2tg-wsm.js} +16 -16
  3. package/dist/{BindingsDialog-C0kTZLOn.js → BindingsDialog-eGbOIQkw.js} +6 -6
  4. package/dist/{BindingsPicker-DjcS3uTL.js → BindingsPicker-CVXrd29s.js} +11 -11
  5. package/dist/{BindingsTable-Ctpv958D.js → BindingsTable-CCsQEFnu.js} +5 -5
  6. package/dist/{ClosingDraftView-CsAPSZPc.js → ClosingDraftView-BI8b3CJ9.js} +47 -47
  7. package/dist/ClosingTemplateView-miJnC-ML.js +1859 -0
  8. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js +34 -0
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DJfBmiRt.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9un0wCK.js} +44 -44
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-qZ7Kx-KR.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BRSABJnM.js} +52 -52
  11. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeRvrF7O.js +51 -0
  12. package/dist/{IngredientGroupView-Dc3glXN3.js → IngredientGroupView-ZWCOAljO.js} +1 -1
  13. package/dist/{IngredientsView-btzrUQ1-.js → IngredientsView-5-pSX6y_.js} +16 -14
  14. package/dist/{IntegrationView-DO1SF1Ca.js → IntegrationView-DO3Ambro.js} +1 -1
  15. package/dist/{InventoryBindingForm-_2p-YetL.js → InventoryBindingForm-BjtFP29c.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7ump1tl.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFMZ4VsK.js} +53 -53
  17. package/dist/{InventoryBindingSummary-CEdLu3d9.js → InventoryBindingSummary-C6DkVX-B.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-kLdZ5acK.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-nb1t6u2V.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Da0gmGST.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BcMAXo4F.js} +15 -15
  20. package/dist/{PublishView-CXTiPWIx.js → PublishView-DOMQdIJ7.js} +7 -7
  21. package/dist/{PurchaseOrderPrintPreview-DBviMTyA.js → PurchaseOrderPrintPreview-_MCAsdw9.js} +1 -1
  22. package/dist/{ReceiveRequestView-Ct1AQDGK.js → ReceiveRequestView-902hWGtz.js} +56 -55
  23. package/dist/{RecipeView-C0HiPNvf.js → RecipeView-dmmjklwh.js} +32 -31
  24. package/dist/{index-ro6xANOo.js → StockView-C4lEYLXU.js} +3577 -1764
  25. package/dist/{SupplierView-th75_ohq.js → SupplierView-CO5460uC.js} +12 -11
  26. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-n7fH8GRs.js → TransferDetails.vue_vue_type_script_setup_true_lang-D6sZDCEY.js} +186 -185
  27. package/dist/TransferTemplateView-C9UwNTnY.js +1371 -0
  28. package/dist/{UnitView-lnoMsoBN.js → UnitView-DbYzxCXF.js} +14 -14
  29. package/dist/{WarehouseView-ChXcNnmp.js → WarehouseView-BII4SEVC.js} +332 -314
  30. package/dist/api/inventory.d.ts +7 -6
  31. package/dist/{app-B4RHEuan.js → app-IM1yJnE8.js} +15087 -15907
  32. package/dist/app.js +1 -1
  33. package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
  34. package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
  35. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  36. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  37. package/dist/{decimal-BocxWSo6.js → decimal-DQUpCN-B.js} +1 -1
  38. package/dist/feature-DMBVVBsQ.js +1005 -0
  39. package/dist/{format-unit-display-E_NtfEtV.js → format-unit-display-COuIZISg.js} +242 -238
  40. package/dist/helper/fuzzy.d.ts +1 -1
  41. package/dist/index-CIrsMt6f.js +35546 -0
  42. package/dist/{stock-DpmweZQd.js → stock-BJUTiXXk.js} +3 -3
  43. package/dist/stores/inventory.d.ts +8 -8
  44. package/dist/stores/location.d.ts +9 -0
  45. package/dist/stores/warehouse.d.ts +1 -0
  46. package/dist/{supplier--P-eubcS.js → supplier-CM-qQVyI.js} +1 -1
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/{use-ingredient-select-dialog-C7WZf5D4.js → use-ingredient-select-dialog-Cn79xFNg.js} +3 -4
  49. package/dist/{use-inventory-binding-dialog-DW_kAtLh.js → use-inventory-binding-dialog-zwOG19YV.js} +1 -1
  50. package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
  51. package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
  52. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  53. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
  54. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  55. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +36 -12
  56. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
  57. package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
  58. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
  59. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  60. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  61. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +25 -17
  62. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  63. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  64. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +36 -24
  65. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +36 -24
  66. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  67. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
  68. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
  69. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  70. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +36 -12
  71. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +36 -12
  72. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -0
  73. package/dist/{vue-i18n-SeWrkOlu.js → vue-i18n-CzPFJ9JY.js} +134 -134
  74. package/package.json +3 -3
  75. package/dist/ClosingTemplateView-D0HWVhk3.js +0 -1804
  76. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-BF0lKP9Y.js +0 -142
  77. package/dist/StockView-BG8jsV_X.js +0 -1817
  78. package/dist/TransferTemplateView-Dcz6xGR_.js +0 -1269
  79. package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
  80. package/dist/index-B-MhJgPv.js +0 -29202
@@ -1,16 +1,17 @@
1
- import { reactive as at, onMounted as Be, h as L, computed as q, defineComponent as pe, openBlock as S, createElementBlock as M, Fragment as ke, renderList as Ue, createElementVNode as l, toDisplayString as U, unref as e, resolveComponent as P, createVNode as d, withCtx as F, createCommentVNode as G, ref as N, createBlock as J, watch as _e, normalizeClass as W, normalizeStyle as ot, createTextVNode as Ee, nextTick as ct, mergeProps as Oe, isRef as Se, Teleport as mt } from "vue";
2
- import { b as Ne, $ as pt, m as Ge, j as ye, P as ft, a1 as ze, L as vt, ao as yt, A as Re, M as bt, n as lt, c as Ae, a8 as Le, G as ie, ap as gt, a as He, aq as _t, ar as kt, as as ht, H as Ct, u as je, at as xt, a0 as St, V as wt, au as Dt, E as nt, J as Ft, e as Fe, av as Ve, a2 as Je, z as $t, _ as Tt, B as Pt, O as We } from "./app-B4RHEuan.js";
3
- import { u as rt, a as It, b as Vt, _ as Rt, g as At } from "./TransferDetails.vue_vue_type_script_setup_true_lang-n7fH8GRs.js";
4
- import { _ as it, u as qt, i as Mt, e as Ut } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-Da0gmGST.js";
1
+ import { reactive as at, onMounted as Be, h as L, computed as q, defineComponent as pe, openBlock as S, createElementBlock as M, Fragment as ke, renderList as Ue, createElementVNode as l, toDisplayString as U, unref as e, resolveComponent as P, createVNode as d, withCtx as F, createCommentVNode as G, ref as N, createBlock as W, watch as _e, normalizeClass as J, normalizeStyle as ot, createTextVNode as Ee, nextTick as ct, mergeProps as Oe, isRef as Se, Teleport as mt } from "vue";
2
+ import { b as Ne, Z as pt, l as Ge, i as ye, O as ft, a0 as ze, K as vt, as as yt, A as Re, M as bt, m as lt, ab as Le, E as ie, at as gt, a as He, au as _t, av as kt, aw as ht, G as Ct, u as je, ax as xt, $ as St, T as wt, ay as Dt, B as nt, H as Ft, d as Fe, az as Ve, a5 as We, y as $t, _ as Tt, z as Pt, N as Je } from "./app-IM1yJnE8.js";
3
+ import { u as rt, a as It, b as Vt, _ as Rt, g as At } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D6sZDCEY.js";
4
+ import { _ as it, u as qt, i as Mt, e as Ut } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BcMAXo4F.js";
5
5
  import { u as Et } from "./useTabStorage-BkIVScW_.js";
6
- import { useBreakpoints as Ye, components as ve, FmButtonVariant as Ot, useSnackbar as qe, useDialog as Bt, useProxiedModel as Nt } from "@feedmepos/ui-library";
7
- import { P as j, u as ut } from "./format-unit-display-E_NtfEtV.js";
8
- import { _ as zt, F as Lt, a as Xe, b as Ht } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-qZ7Kx-KR.js";
9
- import { c as re, u as jt, _ as Yt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DJfBmiRt.js";
6
+ import { useBreakpoints as Ye, components as ve, FmButtonVariant as Ot, useSnackbar as Ae, useDialog as Bt, useProxiedModel as Nt } from "@feedmepos/ui-library";
7
+ import { P as j, u as ut } from "./format-unit-display-COuIZISg.js";
8
+ import { _ as zt, F as Lt, a as Xe, b as Ht } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BRSABJnM.js";
9
+ import { u as qe } from "./feature-DMBVVBsQ.js";
10
+ import { c as re, u as jt, _ as Yt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9un0wCK.js";
10
11
  import { useI18n as he } from "@feedmepos/mf-common";
11
- import { u as Ke } from "./supplier--P-eubcS.js";
12
+ import { u as Ke } from "./supplier-CM-qQVyI.js";
12
13
  import { _ as Kt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
13
- import { u as Qt } from "./vue-i18n-SeWrkOlu.js";
14
+ import { u as Qt } from "./vue-i18n-CzPFJ9JY.js";
14
15
  import "./array-hChJVZLE.js";
15
16
  var Y = /* @__PURE__ */ ((m) => (m.Code = "Code", m.Name = "Name", m.Amount = "Amount", m.Cost = "Cost", m.TotalCost = "TotalCost", m.Delete = "Delete", m))(Y || {});
16
17
  const et = () => {
@@ -25,7 +26,7 @@ const et = () => {
25
26
  );
26
27
  };
27
28
  function Zt(m) {
28
- const { t: y } = he(), n = at({}), { breakpoints: i } = Ye(), b = Ae(), t = Ne();
29
+ const { t: y } = he(), n = at({}), { breakpoints: i } = Ye(), b = qe(), t = Ne();
29
30
  Be(() => {
30
31
  for (const u of m.items) {
31
32
  if (!u.totalCost)
@@ -322,7 +323,7 @@ function Zt(m) {
322
323
  ))
323
324
  };
324
325
  }
325
- const Gt = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center" }, Jt = { class: "fm-typo-en-body-lg-600 xs:fm-typo-en-body-md-600 mr-auto xs:w-full" }, Wt = { class: "w-[450px] xs:w-full flex" }, Xt = { class: "fm-typo-en-body-md-400 whitespace-nowrap" }, es = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, dt = /* @__PURE__ */ pe({
326
+ const Gt = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center" }, Wt = { class: "fm-typo-en-body-lg-600 xs:fm-typo-en-body-md-600 mr-auto xs:w-full" }, Jt = { class: "w-[450px] xs:w-full flex" }, Xt = { class: "fm-typo-en-body-md-400 whitespace-nowrap" }, es = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, dt = /* @__PURE__ */ pe({
326
327
  __name: "SupplierPriceHistory",
327
328
  props: {
328
329
  prices: {}
@@ -339,8 +340,8 @@ const Gt = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
339
340
  key: t,
340
341
  class: "flex items-center gap-12 xs:gap-4 xs:flex-wrap w-full"
341
342
  }, [
342
- l("div", Jt, U((f = n(t)) == null ? void 0 : f.name), 1),
343
- l("div", Wt, [
343
+ l("div", Wt, U((f = n(t)) == null ? void 0 : f.name), 1),
344
+ l("div", Jt, [
344
345
  (S(!0), M(ke, null, Ue(i.prices[t].slice(0, 3), (g) => {
345
346
  var w;
346
347
  return S(), M("div", {
@@ -542,7 +543,7 @@ const fs = {
542
543
  },
543
544
  emits: ["update:poItems"],
544
545
  setup(m, { emit: y }) {
545
- const n = y, i = N(!1), b = N(7), t = qt(), f = qe(), g = He(), { t: w } = he();
546
+ const n = y, i = N(!1), b = N(7), t = qt(), f = Ae(), g = He(), { t: w } = he();
546
547
  async function u() {
547
548
  if (b.value < 1)
548
549
  return;
@@ -574,7 +575,7 @@ const fs = {
574
575
  }
575
576
  return (a, o) => {
576
577
  const v = P("FmButton"), k = P("FmIcon"), h = P("FmStepperField"), _ = P("FmPopover");
577
- return S(), J(_, {
578
+ return S(), W(_, {
578
579
  disabled: a.disabled,
579
580
  class: "flex",
580
581
  "show-popover": i.value,
@@ -657,7 +658,7 @@ const fs = {
657
658
  }
658
659
  });
659
660
  function Ts() {
660
- const m = qe(), y = rt(), n = N(!1);
661
+ const m = Ae(), y = rt(), n = N(!1);
661
662
  _e(n, (f) => {
662
663
  f && (b.value = !0, i().finally(() => {
663
664
  b.value = !1;
@@ -716,7 +717,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
716
717
  var b, t;
717
718
  return S(), M(ke, null, [
718
719
  l("tr", {
719
- class: W(["border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm", {
720
+ class: J(["border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm", {
720
721
  "bg-fm-color-neutral-gray-100": n.row.getIsSelected()
721
722
  }])
722
723
  }, [
@@ -724,7 +725,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
724
725
  var g, w, u, a;
725
726
  return S(), M("td", {
726
727
  key: f.id,
727
- class: W([
728
+ class: J([
728
729
  "h-[52px] px-16 text-fm-color-typo-primary",
729
730
  ((g = y(f)) == null ? void 0 : g.cellClass) ?? "px-16"
730
731
  ]),
@@ -856,7 +857,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
856
857
  color: a.disabled ? "neutral-gray-200" : "neutral-gray-400"
857
858
  }, null, 8, ["color"]),
858
859
  l("div", {
859
- class: W([a.disabled ? "text-fm-color-typo-disabled" : ""])
860
+ class: J([a.disabled ? "text-fm-color-typo-disabled" : ""])
860
861
  }, U((x = w.value) == null ? void 0 : x.fullName), 3)
861
862
  ])
862
863
  ];
@@ -877,7 +878,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
877
878
  }, Gs = {
878
879
  key: 0,
879
880
  class: "flex-1 flex gap-8 h-48 xs:flex-col xs:pt-16 sm:flex-col sm:pt-16"
880
- }, Js = { class: "flex-1" }, Ws = { class: "flex-1" }, Xs = {
881
+ }, Ws = { class: "flex-1" }, Js = { class: "flex-1" }, Xs = {
881
882
  key: 1,
882
883
  class: "flex items-center gap-4"
883
884
  }, ea = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary translate-y-[1px]" }, ta = { class: "flex flex-col gap-16" }, sa = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, aa = { class: "flex gap-8" }, oa = { key: 0 }, la = /* @__PURE__ */ pe({
@@ -892,7 +893,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
892
893
  },
893
894
  emits: ["validation-success", "form:ready"],
894
895
  setup(m, { expose: y, emit: n }) {
895
- const i = m, b = n, t = Ct(), { t: f } = he(), g = je(), w = He(), u = Ne(), a = Ke(), o = Ae(), v = ut(), { breakpoints: k } = Ye(), h = q(() => k.value.xs || k.value.sm), _ = at({
896
+ const i = m, b = n, t = Ct(), { t: f } = he(), g = je(), w = He(), u = Ne(), a = Ke(), o = qe(), v = ut(), { breakpoints: k } = Ye(), h = q(() => k.value.xs || k.value.sm), _ = at({
896
897
  value: !1
897
898
  }), x = N(!1), D = q(
898
899
  () => {
@@ -1117,7 +1118,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1117
1118
  const E = P("FmChip"), Z = P("FmLabel"), de = P("FmIcon"), be = P("FmField"), ae = P("FmTooltip"), fe = P("FmSelect"), xe = P("FmTextField"), Ie = P("FmTextarea"), we = P("FmSwitch"), A = P("FmDatePicker"), ee = P("FmTimePicker"), le = P("FmFormGroup"), te = P("FmButton"), ce = P("FmTable"), ne = P("FmForm");
1118
1119
  return S(), M("div", Os, [
1119
1120
  l("div", Bs, [
1120
- (me = i.modelValue) != null && me.template ? (S(), J(E, {
1121
+ (me = i.modelValue) != null && me.template ? (S(), W(E, {
1121
1122
  key: 0,
1122
1123
  variant: s.disabled ? "warning" : void 0,
1123
1124
  label: `${e(f)("inventory.transfer.template.title")}: ${((De = D.value) == null ? void 0 : De.name) ?? e(f)("inventory.transfer.form.loading")}`,
@@ -1129,7 +1130,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1129
1130
  icon: "storefront",
1130
1131
  compact: ""
1131
1132
  }, null, 8, ["label"]),
1132
- s.lastClosingDate ? (S(), J(E, {
1133
+ s.lastClosingDate ? (S(), W(E, {
1133
1134
  key: 1,
1134
1135
  label: `${e(f)("inventory.transfer.form.lastClosing")}: ${e(Le)(s.lastClosingDate)} ${e(St)(s.lastClosingDate)}`,
1135
1136
  icon: "calendar_month",
@@ -1173,7 +1174,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1173
1174
  color: s.disabled ? "neutral-gray-200" : "neutral-gray-400"
1174
1175
  }, null, 8, ["color"]),
1175
1176
  l("div", {
1176
- class: W({ "text-fm-color-typo-disabled": s.disabled })
1177
+ class: J({ "text-fm-color-typo-disabled": s.disabled })
1177
1178
  }, U(e(f)(`inventory.transfer.form.type.${$.value.toLocaleLowerCase("en-us")}`)), 3)
1178
1179
  ])
1179
1180
  ]),
@@ -1183,7 +1184,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1183
1184
  _: 1
1184
1185
  }, 8, ["disabled"]),
1185
1186
  l("div", {
1186
- class: W([
1187
+ class: J([
1187
1188
  "fm-typo-en-body-sm-400",
1188
1189
  s.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"
1189
1190
  ])
@@ -1215,7 +1216,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1215
1216
  color: s.disabled ? "neutral-gray-200" : "neutral-gray-400"
1216
1217
  }, null, 8, ["color"]),
1217
1218
  l("div", {
1218
- class: W({ "text-fm-color-typo-disabled": s.disabled })
1219
+ class: J({ "text-fm-color-typo-disabled": s.disabled })
1219
1220
  }, U((C = O.value.find((se) => se.value === R.value)) == null ? void 0 : C.label), 3)
1220
1221
  ])
1221
1222
  ];
@@ -1238,7 +1239,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1238
1239
  }, {
1239
1240
  default: F(() => [
1240
1241
  l("span", {
1241
- class: W([
1242
+ class: J([
1242
1243
  "line-clamp-1 fm-typo-en-body-lg-400",
1243
1244
  s.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
1244
1245
  ])
@@ -1266,7 +1267,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1266
1267
  var C;
1267
1268
  return [
1268
1269
  l("span", {
1269
- class: W([
1270
+ class: J([
1270
1271
  "line-clamp-1 fm-typo-en-body-lg-400",
1271
1272
  s.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
1272
1273
  ])
@@ -1288,9 +1289,9 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1288
1289
  "max-length": 240,
1289
1290
  modelValue: I.value,
1290
1291
  "onUpdate:modelValue": r[3] || (r[3] = (C) => I.value = C),
1291
- class: W([s.disabled ? "text-fm-color-typo-disabled " : ""])
1292
+ class: J([s.disabled ? "text-fm-color-typo-disabled " : ""])
1292
1293
  }, null, 8, ["label", "modelValue", "class"]),
1293
- x.value ? (S(), J(Es, {
1294
+ x.value ? (S(), W(Es, {
1294
1295
  key: 2,
1295
1296
  required: e(t).template != null,
1296
1297
  disabled: s.disabled,
@@ -1306,7 +1307,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1306
1307
  }, null, 8, ["required", "disabled", "supplier", "setting", "items", "onChange"])) : G("", !0),
1307
1308
  e(o).enableBackdatePo ? (S(), M("div", Zs, [
1308
1309
  l("div", {
1309
- class: W([
1310
+ class: J([
1310
1311
  "flex",
1311
1312
  {
1312
1313
  "flex-col": h.value
@@ -1322,16 +1323,16 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1322
1323
  disabled: z.value && !s.lastClosingDate || s.disabled
1323
1324
  }, null, 8, ["modelValue", "label", "sublabel", "disabled"]),
1324
1325
  l("div", {
1325
- class: W({ hidden: h.value, "w-16": !h.value })
1326
+ class: J({ hidden: h.value, "w-16": !h.value })
1326
1327
  }, null, 2),
1327
1328
  e(K) ? (S(), M("div", Gs, [
1328
- l("div", Js, [
1329
+ l("div", Ws, [
1329
1330
  d(A, {
1330
1331
  modelValue: e(Q),
1331
1332
  "onUpdate:modelValue": r[6] || (r[6] = (C) => Se(Q) ? Q.value = C : null)
1332
1333
  }, null, 8, ["modelValue"])
1333
1334
  ]),
1334
- l("div", Ws, [
1335
+ l("div", Js, [
1335
1336
  d(ee, {
1336
1337
  modelValue: e(p),
1337
1338
  "onUpdate:modelValue": r[7] || (r[7] = (C) => Se(p) ? p.value = C : null)
@@ -1339,7 +1340,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1339
1340
  ])
1340
1341
  ])) : G("", !0)
1341
1342
  ], 2),
1342
- e(B) ? (S(), J(le, {
1343
+ e(B) ? (S(), W(le, {
1343
1344
  key: 0,
1344
1345
  modelValue: e(B),
1345
1346
  "onUpdate:modelValue": r[8] || (r[8] = (C) => Se(B) ? B.value = C : null),
@@ -1362,7 +1363,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1362
1363
  rules: [e(Re)(1)]
1363
1364
  }, null, 8, ["model-value", "rules"]),
1364
1365
  l("div", {
1365
- class: W([
1366
+ class: J([
1366
1367
  "flex gap-16",
1367
1368
  {
1368
1369
  "flex-col items-start": h.value,
@@ -1383,7 +1384,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1383
1384
  onClick: r[9] || (r[9] = (C) => Te()),
1384
1385
  size: "md"
1385
1386
  }, null, 8, ["disabled", "label"]),
1386
- e(t).template ? (S(), J(ae, {
1387
+ e(t).template ? (S(), W(ae, {
1387
1388
  key: 0,
1388
1389
  "z-index": 50
1389
1390
  }, {
@@ -1397,7 +1398,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1397
1398
  })
1398
1399
  ]),
1399
1400
  _: 1
1400
- })) : (S(), J(tt, {
1401
+ })) : (S(), W(tt, {
1401
1402
  key: 1,
1402
1403
  "onUpdate:poItems": r[11] || (r[11] = (C) => e(t).items = C),
1403
1404
  disabled: s.disabled || !!e(t).template
@@ -1414,7 +1415,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1414
1415
  disabled: e(H) || s.disabled
1415
1416
  }, null, 8, ["label", "model-value", "disabled"])
1416
1417
  ])) : G("", !0),
1417
- (S(), J(ce, {
1418
+ (S(), W(ce, {
1418
1419
  "column-defs": Ce.value,
1419
1420
  "row-data": e(t).items,
1420
1421
  key: e(t).items.map((C) => C.sku._id).join("."),
@@ -1429,7 +1430,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1429
1430
  }, null, 8, ["compare-price-by-sku", "show-compare-price", "row"])
1430
1431
  ]),
1431
1432
  "list-row": F((C) => [
1432
- (S(), J(nt, {
1433
+ (S(), W(nt, {
1433
1434
  row: C,
1434
1435
  key: e(t).items.map((se) => se.sku._id).join(".")
1435
1436
  }, {
@@ -1466,7 +1467,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1466
1467
  emits: ["update:show", "submitted"],
1467
1468
  setup(m, { expose: y, emit: n }) {
1468
1469
  var Q;
1469
- const i = m, b = n, t = rt(), f = ut(), g = qe(), w = Ke(), u = He(), a = je(), o = Ae(), { t: v } = he(), k = N(!1), h = N(!1), _ = N(!1);
1470
+ const i = m, b = n, t = rt(), f = ut(), g = Ae(), w = Ke(), u = He(), a = je(), o = qe(), { t: v } = he(), k = N(!1), h = N(!1), _ = N(!1);
1470
1471
  async function x(p) {
1471
1472
  if (p) {
1472
1473
  h.value = !1;
@@ -1607,7 +1608,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1607
1608
  }
1608
1609
  return (p, c) => {
1609
1610
  const H = P("FmButton"), oe = P("FmSideSheet");
1610
- return S(), J(oe, {
1611
+ return S(), W(oe, {
1611
1612
  modelValue: e(V),
1612
1613
  "onUpdate:modelValue": c[3] || (c[3] = (X) => Se(V) ? V.value = X : null),
1613
1614
  "dismiss-away": "",
@@ -1620,7 +1621,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1620
1621
  ])
1621
1622
  ]),
1622
1623
  default: F(() => [
1623
- (S(), J(la, {
1624
+ (S(), W(la, {
1624
1625
  class: "w-full",
1625
1626
  ref_key: "formRef",
1626
1627
  ref: O,
@@ -1658,10 +1659,10 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1658
1659
  }), da = { class: "flex flex-col py-8" }, ca = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ma = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, pa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, fa = {
1659
1660
  key: 0,
1660
1661
  class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
1661
- }, va = { class: "pt-8" }, st = "ReceiveRequestViewSearchCriteria", Pa = /* @__PURE__ */ pe({
1662
+ }, va = { class: "pt-8" }, st = "ReceiveRequestViewSearchCriteria", Ia = /* @__PURE__ */ pe({
1662
1663
  __name: "ReceiveRequestView",
1663
1664
  setup(m) {
1664
- const { t: y } = he(), n = qe();
1665
+ const { t: y } = he(), n = Ae();
1665
1666
  Ve.object({
1666
1667
  name: Ve.string().optional().nullable(),
1667
1668
  startDate: Ve.string().optional().nullable(),
@@ -1669,11 +1670,11 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1669
1670
  });
1670
1671
  const i = q(
1671
1672
  () => !o._currentLocation || u.loading.value
1672
- ), b = Et(), t = Ae();
1673
+ ), b = Et(), t = qe();
1673
1674
  function f() {
1674
1675
  const T = {
1675
1676
  name: "",
1676
- ...Je()
1677
+ ...We()
1677
1678
  }, $ = b.getItem(st);
1678
1679
  if (!$)
1679
1680
  return T;
@@ -1688,7 +1689,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1688
1689
  }
1689
1690
  const w = N(f()), u = It("receive/request", w.value), { columnDefs: a } = Vt("receive/request", u), o = je();
1690
1691
  async function v() {
1691
- const T = `inventory-record_${We(w.value.startDate).format("DD-MM-YYYY_HH-mm")}-${We(w.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, $ = u.purchaseOrders.value.flatMap(
1692
+ const T = `inventory-record_${Je(w.value.startDate).format("DD-MM-YYYY_HH-mm")}-${Je(w.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, $ = u.purchaseOrders.value.flatMap(
1692
1693
  (R) => R.items.map((I) => {
1693
1694
  const B = new Date(Mt(R._id) ?? ""), K = R.effectiveAt ? new Date(R.effectiveAt) : void 0, Q = ye(
1694
1695
  At(I.sku, R.deliveryOrder || [])
@@ -1733,7 +1734,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1733
1734
  type: "success"
1734
1735
  });
1735
1736
  }
1736
- const k = N(Je()), h = N("");
1737
+ const k = N(We()), h = N("");
1737
1738
  _e([() => k.value], ([T]) => {
1738
1739
  !T.startDate || !T.endDate || (w.value.startDate = T.startDate, w.value.endDate = T.endDate, u.updateDateRange(
1739
1740
  w.value.startDate,
@@ -1777,7 +1778,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1777
1778
  ]);
1778
1779
  return (T, $) => {
1779
1780
  const O = P("FmTable");
1780
- return S(), J(Tt, {
1781
+ return S(), W(Tt, {
1781
1782
  title: e(y)("inventory.transfer.receiveRequest.title2"),
1782
1783
  actions: ue.value,
1783
1784
  "onClick:action": _
@@ -1786,7 +1787,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1786
1787
  var R;
1787
1788
  return [
1788
1789
  l("div", {
1789
- class: W([
1790
+ class: J([
1790
1791
  "flex flex-col gap-8 max-h-full",
1791
1792
  {
1792
1793
  "p-0": D.value,
@@ -1803,7 +1804,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1803
1804
  search: h.value,
1804
1805
  "onUpdate:search": $[1] || ($[1] = (I) => h.value = I)
1805
1806
  }, null, 8, ["date-range", "search"]),
1806
- (S(), J(O, {
1807
+ (S(), W(O, {
1807
1808
  style: ot(e(z).tableHeight),
1808
1809
  "column-defs": e(a),
1809
1810
  "row-data": e(u).purchaseOrders.value,
@@ -1856,7 +1857,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1856
1857
  _: 1
1857
1858
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
1858
1859
  ], 2),
1859
- (S(), J(mt, { to: "body" }, [
1860
+ (S(), W(mt, { to: "body" }, [
1860
1861
  d(ua, Oe(e(u).transferDialogProps.value, {
1861
1862
  onSubmitted: e(u).fetchData
1862
1863
  }), null, 16, ["onSubmitted"]),
@@ -1872,5 +1873,5 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1872
1873
  }
1873
1874
  });
1874
1875
  export {
1875
- Pa as default
1876
+ Ia as default
1876
1877
  };
@@ -1,15 +1,16 @@
1
- import { defineComponent as q, 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 K, 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, e as V, f as O, S as ye, h as ge, D as ee, i as Y, j, F as te, m 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 Ee, _ as Ce, B as Se, E as Fe, G as oe } from "./app-B4RHEuan.js";
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-IM1yJnE8.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, a as $e } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-BF0lKP9Y.js";
6
- import { defineStore as Pe, storeToRefs as Be } from "pinia";
7
- import { useI18n as H } from "@feedmepos/mf-common";
8
- import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7ump1tl.js";
5
+ import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeRvrF7O.js";
6
+ import { defineStore as $e, storeToRefs as Pe } from "pinia";
7
+ import { useI18n as K } from "@feedmepos/mf-common";
8
+ import { _ as Be } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFMZ4VsK.js";
9
+ import { _ as Te } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
9
10
  const Me = {
10
11
  key: 0,
11
12
  class: "flex flex-col items-center w-full h-full gap-24"
12
- }, Ue = { key: 1 }, Ne = { key: 0 }, ze = /* @__PURE__ */ q({
13
+ }, Ue = { key: 1 }, Ne = { key: 0 }, ze = /* @__PURE__ */ H({
13
14
  __name: "DeleteDialog",
14
15
  props: {
15
16
  type: {},
@@ -45,12 +46,12 @@ const Me = {
45
46
  name: "Menu",
46
47
  bindings: y.value
47
48
  }, null, 8, ["bindings"])
48
- ])) : K("", !0)
49
+ ])) : j("", !0)
49
50
  ]))
50
51
  ], 64);
51
52
  };
52
53
  }
53
- }), G = Pe("recipeForm", function() {
54
+ }), G = $e("recipeForm", function() {
54
55
  const p = ke(), y = se(), a = A(), s = C(!1), c = C();
55
56
  function i() {
56
57
  const n = {
@@ -133,7 +134,7 @@ const Me = {
133
134
  };
134
135
  });
135
136
  function Le() {
136
- const { updateRecipe: h, deleteRecipe: p } = G(), y = A(), { t: a } = H();
137
+ const { updateRecipe: h, deleteRecipe: p } = G(), y = A(), { t: a } = K();
137
138
  async function s(u, d) {
138
139
  const n = O(d);
139
140
  if (u === Y.Edit) {
@@ -191,20 +192,20 @@ function Le() {
191
192
  ingredients: c(n.contains, /* @__PURE__ */ new Set([n._id])).map((l) => {
192
193
  var _, g, r, m, E;
193
194
  const t = d.skuById[l.id];
194
- return t ? l.recipeIds.slice(1).length ? `(linked recipe ${(_ = d.recipeById[l.recipeIds.at(-1) ?? ""]) == null ? void 0 : _.name}) ${t.name} (${j(l.amount)}${((g = l.measurement) == null ? void 0 : g.abbrev) ?? ((r = t == null ? void 0 : t.unit) == null ? void 0 : r.abbrev)})` : `${t.name} (${j(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) ?? ((E = t == null ? void 0 : t.unit) == null ? void 0 : E.abbrev)})` : null;
195
196
  }).filter((l) => l).join(", "),
196
197
  original: n
197
198
  }));
198
199
  }
199
200
  return { columnDefs: i, formatRowData: f };
200
201
  }
201
- const Ye = { class: "flex flex-col gap-40" }, je = {
202
+ const Ye = { class: "flex flex-col gap-40" }, qe = {
202
203
  key: 0,
203
204
  class: "col-span-2 mt-16 border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
204
- }, qe = {
205
+ }, He = {
205
206
  key: 0,
206
207
  class: "flex flex-col items-center w-full h-full gap-24"
207
- }, He = { key: 1 }, Ke = { class: "mt-32" }, Ge = /* @__PURE__ */ q({
208
+ }, Ke = { key: 1 }, je = { class: "mt-32" }, Ge = /* @__PURE__ */ H({
208
209
  __name: "RecipeForm",
209
210
  props: {
210
211
  mode: {},
@@ -214,7 +215,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
214
215
  emits: ["update:modelValue", "click:submit"],
215
216
  setup(h, { expose: p, emit: y }) {
216
217
  var k;
217
- const a = h, s = y, { t: c } = H(), i = F({
218
+ const a = h, s = y, { t: c } = K(), i = F({
218
219
  get() {
219
220
  var e;
220
221
  return ((e = a.modelValue) == null ? void 0 : e.name) ?? "";
@@ -300,7 +301,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
300
301
  default: P(() => {
301
302
  var w;
302
303
  return [
303
- v(Te, {
304
+ v(Be, {
304
305
  id: (w = e.modelValue) == null ? void 0 : w._id,
305
306
  disabled: e.disabled,
306
307
  "model-value": f.value,
@@ -312,7 +313,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
312
313
  _: 1
313
314
  })
314
315
  ]),
315
- e.mode !== b(V).CREATE ? (x(), $("div", je, [
316
+ e.mode !== b(V).CREATE ? (x(), $("div", qe, [
316
317
  R("div", null, [
317
318
  v(D, {
318
319
  label: "Show binded items",
@@ -322,23 +323,23 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
322
323
  disabled: g.value
323
324
  }, null, 8, ["modelValue", "disabled"])
324
325
  ]),
325
- g.value ? (x(), $("div", qe, [
326
+ g.value ? (x(), $("div", He, [
326
327
  v(M),
327
328
  R("div", null, [
328
329
  v(U, { size: "xl" })
329
330
  ]),
330
331
  o[4] || (o[4] = R("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading...", -1)),
331
332
  v(M)
332
- ])) : (x(), $("div", He, [
333
+ ])) : (x(), $("div", Ke, [
333
334
  _.value && t.value.length ? (x(), T(le, {
334
335
  key: 0,
335
336
  name: "Menu",
336
337
  bindings: t.value
337
- }, null, 8, ["bindings"])) : K("", !0)
338
+ }, null, 8, ["bindings"])) : j("", !0)
338
339
  ]))
339
- ])) : K("", !0),
340
- R("div", Ke, [
341
- v($e, {
340
+ ])) : j("", !0),
341
+ R("div", je, [
342
+ v(Te, {
342
343
  entity: "inventoryRecipe",
343
344
  modelValue: u.value,
344
345
  "onUpdate:modelValue": o[3] || (o[3] = (w) => u.value = w)
@@ -349,7 +350,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
349
350
  }, 512);
350
351
  };
351
352
  }
352
- }), Oe = { class: "flex gap-4" }, Je = /* @__PURE__ */ q({
353
+ }), Oe = { class: "flex gap-4" }, Je = /* @__PURE__ */ H({
353
354
  __name: "RecipeDialog",
354
355
  props: {
355
356
  show: { type: Boolean },
@@ -358,7 +359,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
358
359
  },
359
360
  emits: ["update:show"],
360
361
  setup(h) {
361
- const p = h, y = A(), a = se(), { t: s } = H(), c = ae(p, "show"), i = ae(p, "recipe"), f = F(() => {
362
+ const p = h, y = A(), a = se(), { t: s } = K(), c = ae(p, "show"), i = ae(p, "recipe"), f = F(() => {
362
363
  switch (p.mode) {
363
364
  case V.READ:
364
365
  return "";
@@ -487,7 +488,7 @@ function Qe() {
487
488
  "RECIPE",
488
489
  "",
489
490
  (g = y[t.id]) == null ? void 0 : g.name,
490
- j(t.amount),
491
+ q(t.amount),
491
492
  "UNIT"
492
493
  ];
493
494
  }
@@ -500,7 +501,7 @@ function Qe() {
500
501
  "INGREDIENT",
501
502
  (g = a[t.id]) == null ? void 0 : g.code,
502
503
  (r = a[t.id]) == null ? void 0 : r.name,
503
- j(t.amount),
504
+ q(t.amount),
504
505
  t.measurement ? t.measurement.abbrev : (E = (m = a[t.id]) == null ? void 0 : m.unit) == null ? void 0 : E.abbrev
505
506
  ];
506
507
  }
@@ -514,17 +515,17 @@ function Qe() {
514
515
  }), i = Re(s, ["Name", "Type", "Code", "Item", "Amount", "Unit"]);
515
516
  he(i, `RECIPE_${Ve(/* @__PURE__ */ new Date(), "-", "-")}.xlsx`);
516
517
  }
517
- const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it = /* @__PURE__ */ q({
518
+ const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ct = /* @__PURE__ */ H({
518
519
  __name: "RecipeView",
519
520
  setup(h) {
520
- const p = A(), y = F(() => p.recipes), a = xe(), { createRecipe: s, updateRecipe: c } = G(), { recipeDialogProps: i, recipeViewLoading: f } = Be(G()), { columnDefs: u, formatRowData: d } = Le(), n = F(() => d(y.value));
521
+ const p = A(), y = F(() => p.recipes), a = xe(), { createRecipe: s, updateRecipe: c } = G(), { recipeDialogProps: i, recipeViewLoading: f } = Pe(G()), { columnDefs: u, formatRowData: d } = Le(), n = F(() => d(y.value));
521
522
  function l(e) {
522
523
  if (e === "add")
523
524
  return s();
524
525
  if (e === "export")
525
526
  return Qe();
526
527
  }
527
- 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 } = H();
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
529
  return (e, o) => {
529
530
  const B = S("FmTable");
530
531
  return x(), T(Ce, {
@@ -605,5 +606,5 @@ const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-60
605
606
  }
606
607
  });
607
608
  export {
608
- it as default
609
+ ct as default
609
610
  };