@feedmepos/mf-inventory-portal 0.0.23-dev.42 → 0.0.23-dev.44

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 (61) hide show
  1. package/dist/{App-Cr-n7HVf.js → App-Bu28H-qV.js} +66 -63
  2. package/dist/{ApprovalView-BYHDmt9W.js → ApprovalView-Cgb6Getu.js} +20 -20
  3. package/dist/{BindingsDialog-CI0nYM1_.js → BindingsDialog-DGtPuzr1.js} +2 -2
  4. package/dist/{BindingsPicker-BVzF3C8O.js → BindingsPicker-BamL3_Vk.js} +3 -3
  5. package/dist/{BindingsTable-B21_9L2o.js → BindingsTable-C9FeglE4.js} +1 -1
  6. package/dist/{ClosingDraftView-k2Vsz8-W.js → ClosingDraftView-C_B1u3g1.js} +47 -47
  7. package/dist/{ClosingTemplateView-BLda7tYC.js → ClosingTemplateView-BxK3yAV4.js} +21 -21
  8. package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUDOaU6F.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-DAWPJ65s.js} +11 -11
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXuer_x5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D1PU7pae.js} +7 -7
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Ds3yBf9U.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D1AIFe-0.js} +37 -37
  11. package/dist/{IngredientGroupView-CgZ4YT3i.js → IngredientGroupView-S7ps5Bsc.js} +1 -1
  12. package/dist/{IngredientsView-tPERrF9O.js → IngredientsView-BesGBkXM.js} +14 -15
  13. package/dist/{IntegrationView-CoF_rdWv.js → IntegrationView-Bkf7zGLw.js} +1 -1
  14. package/dist/{InventoryBindingForm-BSnofTIL.js → InventoryBindingForm-DHwTsR2G.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CseHejfD.js} +51 -51
  16. package/dist/{InventoryBindingSummary-qm9ZUFny.js → InventoryBindingSummary-COybHYsZ.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQY98Hj6.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cgv6gv2x.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-NUkiVop4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BGJNkqYH.js} +6 -6
  19. package/dist/PublishView-2EcaLsU2.js +192 -0
  20. package/dist/{PurchaseOrderPrintPreview-CIWiq2NB.js → PurchaseOrderPrintPreview-DPFfFQQd.js} +5 -5
  21. package/dist/ReceiveRequestView-Dnl79p8h.js +1843 -0
  22. package/dist/{RecipeView-CzWlx1Xv.js → RecipeView-CmaMGv6N.js} +25 -25
  23. package/dist/{StockView-IPXGJNN8.js → StockView-CLw8un14.js} +121 -122
  24. package/dist/{SupplierView-DuL3NXc0.js → SupplierView-DLcZ6HDt.js} +11 -12
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-82Bu89OE.js → TransferDetails.vue_vue_type_script_setup_true_lang-DgwS1KTx.js} +137 -137
  26. package/dist/{TransferTemplateView-BEaRafuO.js → TransferTemplateView-BRDq2_Zw.js} +81 -82
  27. package/dist/{UnitView-Cwo0mthQ.js → UnitView-rJrXqu8W.js} +14 -14
  28. package/dist/{WarehouseView-DzjQrpyv.js → WarehouseView-BwSLmicZ.js} +33 -33
  29. package/dist/api/inventory.d.ts +4 -0
  30. package/dist/{app-CpuFfqWF.js → app-F909rQ5n.js} +12512 -11478
  31. package/dist/app.d.ts +24 -0
  32. package/dist/app.js +1 -1
  33. package/dist/{decimal-bSGrDlvd.js → decimal-0pQSNdVz.js} +1 -1
  34. package/dist/{format-unit-display-D4gi2D-O.js → format-unit-display-CM40cl03.js} +60 -60
  35. package/dist/{index-Cn1ato-l.js → index-DzA11XLY.js} +88 -88
  36. package/dist/{index-COeURijn.js → index-rBUXpqWE.js} +3 -3
  37. package/dist/layout/SingleColumnLayout.vue.d.ts +1 -0
  38. package/dist/router/name.d.ts +1 -0
  39. package/dist/{stock-B1Rchi6n.js → stock-c68S1hmD.js} +3 -3
  40. package/dist/stores/feature.d.ts +34 -2
  41. package/dist/stores/location.d.ts +29 -1
  42. package/dist/{supplier-CeY_Gro-.js → supplier-CPuz6JVf.js} +1 -1
  43. package/dist/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/{use-inventory-binding-dialog-BXqY40wn.js → use-inventory-binding-dialog-DjlU5nUb.js} +1 -1
  45. package/dist/views/adjustment-template/wastage-template/actions.d.ts +48 -0
  46. package/dist/views/adjustment-template/wastage-template/table.d.ts +48 -0
  47. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -0
  48. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -0
  49. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +48 -0
  50. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +48 -0
  51. package/dist/views/publish/PublishView.vue.d.ts +2 -0
  52. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +16 -0
  53. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +24 -0
  54. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +24 -0
  55. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +4 -0
  56. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
  57. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
  58. package/dist/vue-i18n-BiavdzKQ.js +2365 -0
  59. package/package.json +1 -1
  60. package/dist/ReceiveRequestView-Dgt3FeGb.js +0 -4205
  61. package/dist/feature-D8aRYGen.js +0 -962
@@ -1,9 +1,9 @@
1
- import { defineComponent as ye, ref as O, resolveComponent as E, openBlock as _, createBlock as ne, withCtx as N, createElementVNode as o, createTextVNode as ge, toDisplayString as L, unref as h, createVNode as D, h as $, computed as M, onMounted as He, watch as ze, isRef as _e, createElementBlock as F, Fragment as Z, createCommentVNode as le, normalizeClass as ie, renderList as ue, normalizeStyle as we, Teleport as Ee, mergeProps as Le } from "vue";
2
- import { W as Ne, u as be, ae as q, l as Oe, J as he, i as C, t as Ve, K as ce, p as Ke, q as Ye, r as Ge, af as ke, ag as je, a2 as Ce, ah as Se, ai as oe, a8 as qe, ad as J, T as Be, D as De, h as de, f as We, e as Ze, a as Je, y as Qe, _ as Xe, z as et, B as tt, E as me } from "./app-CpuFfqWF.js";
1
+ import { defineComponent as ye, ref as O, resolveComponent as E, openBlock as _, createBlock as ne, withCtx as N, createElementVNode as o, createTextVNode as ge, toDisplayString as L, unref as h, createVNode as D, h as $, computed as M, onMounted as He, watch as ze, isRef as _e, createElementBlock as F, Fragment as W, createCommentVNode as le, normalizeClass as ie, renderList as ue, normalizeStyle as we, Teleport as Ee, mergeProps as Le } from "vue";
2
+ import { X as Ne, u as be, af as q, m as Oe, K as he, j as C, t as Ve, L as ce, q as Ke, r as Ye, s as Ge, ag as ke, ah as je, a3 as Ce, ai as Se, aj as oe, a9 as qe, ae as X, V as Be, D as De, i as de, h as Ze, f as We, a as Xe, z as Je, _ as Qe, B as et, E as tt, G as me } from "./app-F909rQ5n.js";
3
3
  import { useCoreStore as at, useI18n as Fe } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as Ae, useDialog as nt, useProxiedModel as ot, components as ae, useBreakpoints as st } from "@feedmepos/ui-library";
5
5
  import { defineStore as Re, storeToRefs as rt } from "pinia";
6
- import { u as $e } from "./stock-B1Rchi6n.js";
6
+ import { u as $e } from "./stock-c68S1hmD.js";
7
7
  import { E as lt } from "./empty-placeholder-wf6-BWE8.js";
8
8
  const Te = Ne((n, d) => {
9
9
  function e() {
@@ -187,8 +187,8 @@ function yt(n, d) {
187
187
  (y) => y.id,
188
188
  (y) => y.balance
189
189
  ), u = [...n.items, ...n.negativeStockItems ?? []], m = u.map((y) => {
190
- var Q;
191
- const K = ((Q = e.get(y.sku._id)) == null ? void 0 : Q[0]) ?? mt;
190
+ var J;
191
+ const K = ((J = e.get(y.sku._id)) == null ? void 0 : J[0]) ?? mt;
192
192
  return pt(y, K);
193
193
  }), g = vt(u), l = at().currentBusiness.value, b = gt(g), R = [
194
194
  ["Business name:", l == null ? void 0 : l.name],
@@ -341,7 +341,7 @@ const bt = Re(
341
341
  e.closeDraftDialog(), l();
342
342
  }
343
343
  function P(r, s) {
344
- switch (s = Ze(s), r) {
344
+ switch (s = We(s), r) {
345
345
  case de.Details:
346
346
  return e.viewDraft(s);
347
347
  case de.Export:
@@ -365,7 +365,7 @@ const bt = Re(
365
365
  },
366
366
  {
367
367
  id: "updatedAt",
368
- accessorFn: (r) => J(r.updatedAt),
368
+ accessorFn: (r) => X(r.updatedAt),
369
369
  header: () => "Updated at",
370
370
  enableSorting: !0,
371
371
  size: 200
@@ -463,7 +463,7 @@ const bt = Re(
463
463
  value: q.enum.rejectDraft
464
464
  }
465
465
  ];
466
- return We(
466
+ return Ze(
467
467
  [
468
468
  ...v,
469
469
  ...s.status === oe.enum.DRAFT ? U : []
@@ -512,7 +512,7 @@ const bt = Re(
512
512
  }, Vt = { class: "flex-1 flex flex-col items-center" }, Kt = {
513
513
  class: "py-12 flex flex-col gap-4 flex-1",
514
514
  name: "delivery details"
515
- }, Yt = { class: "flex flex-col gap-8" }, Gt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, qt = { class: "flex flex-col gap-4" }, Wt = { class: "flex gap-8" }, Zt = /* @__PURE__ */ ye({
515
+ }, Yt = { class: "flex flex-col gap-8" }, Gt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, qt = { class: "flex flex-col gap-4" }, Zt = { class: "flex gap-8" }, Wt = /* @__PURE__ */ ye({
516
516
  __name: "ClosingDraftDialog",
517
517
  props: {
518
518
  show: { type: Boolean },
@@ -520,7 +520,7 @@ const bt = Re(
520
520
  },
521
521
  emits: ["submitted"],
522
522
  setup(n, { emit: d }) {
523
- const e = n, u = $e(), m = pe(), g = ot(e, "show"), x = O(!1), l = O(new Array()), b = Se(), R = Ae(), P = Je(), T = d, r = M(() => {
523
+ const e = n, u = $e(), m = pe(), g = ot(e, "show"), x = O(!1), l = O(new Array()), b = Se(), R = Ae(), P = Xe(), T = d, r = M(() => {
524
524
  var a, t;
525
525
  return [
526
526
  ...((a = e.draft) == null ? void 0 : a.items) ?? [],
@@ -536,7 +536,7 @@ const bt = Re(
536
536
  He(w), ze(
537
537
  () => e.show,
538
538
  (a) => {
539
- a && (W.value = te[0], w());
539
+ a && (Z.value = te[0], w());
540
540
  }
541
541
  );
542
542
  const U = ce(0), S = ce(100);
@@ -736,9 +736,9 @@ const bt = Re(
736
736
  }
737
737
  }
738
738
  ];
739
- }), Q = M(() => K.value.map((a) => a.size ?? 0).reduce((a, t) => a + t)), se = M(() => s.value.map((a) => {
740
- var G, X;
741
- const t = (G = B.value.get(a._id)) == null ? void 0 : G[0], i = ((X = V.value.get(a._id)) == null ? void 0 : X[0]) ?? U;
739
+ }), J = M(() => K.value.map((a) => a.size ?? 0).reduce((a, t) => a + t)), se = M(() => s.value.map((a) => {
740
+ var G, Q;
741
+ const t = (G = B.value.get(a._id)) == null ? void 0 : G[0], i = ((Q = V.value.get(a._id)) == null ? void 0 : Q[0]) ?? U;
742
742
  if (!t)
743
743
  return {
744
744
  code: a.code,
@@ -772,12 +772,12 @@ const bt = Re(
772
772
  var t, i, f;
773
773
  if (!e.draft) return [];
774
774
  const a = e.draft.approvedAt ? {
775
- action: `Approve at ${J(e.draft.approvedAt)}`,
775
+ action: `Approve at ${X(e.draft.approvedAt)}`,
776
776
  // actionAt: props.draft.approvedAt,
777
777
  actionBy: e.draft.approvedBy,
778
778
  remark: e.draft.approveRemark
779
779
  } : (t = e.draft.rejectionHistory) == null ? void 0 : t.computeFirst((c) => ({
780
- action: `Reject at ${J(c.rejectedAt)}`,
780
+ action: `Reject at ${X(c.rejectedAt)}`,
781
781
  // actionAt: e.rejectedAt,
782
782
  actionBy: c.rejectedBy,
783
783
  remark: c.rejectRemark
@@ -789,7 +789,7 @@ const bt = Re(
789
789
  },
790
790
  {
791
791
  label: "Created at",
792
- value: J(e.draft.createdAt)
792
+ value: X(e.draft.createdAt)
793
793
  },
794
794
  {
795
795
  label: "Created by",
@@ -797,7 +797,7 @@ const bt = Re(
797
797
  },
798
798
  {
799
799
  label: "Updated at",
800
- value: J(e.draft.updatedAt)
800
+ value: X(e.draft.updatedAt)
801
801
  },
802
802
  {
803
803
  label: "Updated by",
@@ -805,7 +805,7 @@ const bt = Re(
805
805
  },
806
806
  {
807
807
  label: "Effective at",
808
- value: J(e.draft.effectiveAt ?? e.draft.updatedAt)
808
+ value: X(e.draft.effectiveAt ?? e.draft.updatedAt)
809
809
  },
810
810
  e.draft.remark ? {
811
811
  label: "Remark",
@@ -833,13 +833,13 @@ const bt = Re(
833
833
  label: "Action history",
834
834
  value: "history"
835
835
  }
836
- ], W = O(te[0]), Y = M(() => {
836
+ ], Z = O(te[0]), Y = M(() => {
837
837
  var t, i, f, c;
838
838
  return [
839
839
  ...(((t = e.draft) == null ? void 0 : t.rejectionHistory) ?? []).map(
840
840
  (p) => ({
841
841
  header: "Reject",
842
- date: J(p.rejectedAt),
842
+ date: X(p.rejectedAt),
843
843
  info: [
844
844
  {
845
845
  label: "Rejected by",
@@ -855,7 +855,7 @@ const bt = Re(
855
855
  ...(i = e.draft) != null && i.approvedBy ? [
856
856
  {
857
857
  header: "Approve",
858
- date: e.draft.approvedAt ? J(e.draft.approvedAt) : "",
858
+ date: e.draft.approvedAt ? X(e.draft.approvedAt) : "",
859
859
  info: [
860
860
  {
861
861
  label: "Approved by",
@@ -879,7 +879,7 @@ const bt = Re(
879
879
  ].filter((j) => j).join(" ");
880
880
  });
881
881
  return (a, t) => {
882
- const i = E("FmButtonGroup"), f = E("FmMenuDivider"), c = E("FmCard"), p = E("FmButton"), I = E("FmCircularProgress"), j = E("FmTable"), G = E("FmSpacer"), X = E("FmTooltip"), H = E("FmSideSheet");
882
+ const i = E("FmButtonGroup"), f = E("FmMenuDivider"), c = E("FmCard"), p = E("FmButton"), I = E("FmCircularProgress"), j = E("FmTable"), G = E("FmSpacer"), Q = E("FmTooltip"), H = E("FmSideSheet");
883
883
  return _(), ne(H, {
884
884
  "dismiss-away": "",
885
885
  "max-width": 900,
@@ -890,9 +890,9 @@ const bt = Re(
890
890
  "side-sheet-footer": N(() => {
891
891
  var A, k;
892
892
  return [
893
- o("div", Wt, [
894
- ((A = e.draft) == null ? void 0 : A.status) === h(oe).enum.DRAFT ? (_(), F(Z, { key: 0 }, [
895
- re.value ? (_(), ne(X, {
893
+ o("div", Zt, [
894
+ ((A = e.draft) == null ? void 0 : A.status) === h(oe).enum.DRAFT ? (_(), F(W, { key: 0 }, [
895
+ re.value ? (_(), ne(Q, {
896
896
  key: 0,
897
897
  "z-index": 51
898
898
  }, {
@@ -933,11 +933,11 @@ const bt = Re(
933
933
  o("div", null, [
934
934
  D(i, {
935
935
  items: te,
936
- modelValue: W.value,
937
- "onUpdate:modelValue": t[0] || (t[0] = (A) => W.value = A)
936
+ modelValue: Z.value,
937
+ "onUpdate:modelValue": t[0] || (t[0] = (A) => Z.value = A)
938
938
  }, null, 8, ["modelValue"])
939
939
  ]),
940
- W.value.value === "overview" ? (_(), F(Z, { key: 0 }, [
940
+ Z.value.value === "overview" ? (_(), F(W, { key: 0 }, [
941
941
  D(c, {
942
942
  variant: "outlined",
943
943
  class: "flex flex-col gap-8 px-12 py-16"
@@ -954,7 +954,7 @@ const bt = Re(
954
954
  ])
955
955
  ]),
956
956
  D(f),
957
- (_(!0), F(Z, null, ue(ee.value, (z, ve) => (_(), F("div", {
957
+ (_(!0), F(W, null, ue(ee.value, (z, ve) => (_(), F("div", {
958
958
  class: "flex flex-col gap-4",
959
959
  key: ve
960
960
  }, [
@@ -993,7 +993,7 @@ const bt = Re(
993
993
  t[11] || (t[11] = o("div", { class: "h-80" }, null, -1))
994
994
  ])) : (_(), F("div", Ft, [
995
995
  o("div", {
996
- style: we({ width: `${Q.value}px` })
996
+ style: we({ width: `${J.value}px` })
997
997
  }, [
998
998
  D(j, {
999
999
  "column-defs": K.value,
@@ -1003,9 +1003,9 @@ const bt = Re(
1003
1003
  ]))
1004
1004
  ])
1005
1005
  ], 64)) : le("", !0),
1006
- W.value.value === "history" ? (_(), F("div", Rt, [
1006
+ Z.value.value === "history" ? (_(), F("div", Rt, [
1007
1007
  Y.value.length ? (_(), F("div", Mt, [
1008
- (_(!0), F(Z, null, ue(Y.value, (A, k) => (_(), F(Z, { key: k }, [
1008
+ (_(!0), F(W, null, ue(Y.value, (A, k) => (_(), F(W, { key: k }, [
1009
1009
  o("div", Pt, [
1010
1010
  o("div", It, [
1011
1011
  o("div", Ut, [
@@ -1058,13 +1058,13 @@ const bt = Re(
1058
1058
  }, {
1059
1059
  default: N(() => [
1060
1060
  o("div", Yt, [
1061
- (_(!0), F(Z, null, ue(A.info, (z, ve) => (_(), F("div", {
1061
+ (_(!0), F(W, null, ue(A.info, (z, ve) => (_(), F("div", {
1062
1062
  key: ve,
1063
1063
  class: "flex flex-col gap-4"
1064
1064
  }, [
1065
1065
  o("div", Gt, L(z == null ? void 0 : z.label), 1),
1066
1066
  o("div", qt, [
1067
- (_(!0), F(Z, null, ue(z == null ? void 0 : z.values, (Ie, Ue) => (_(), F("div", {
1067
+ (_(!0), F(W, null, ue(z == null ? void 0 : z.values, (Ie, Ue) => (_(), F("div", {
1068
1068
  key: Ue,
1069
1069
  class: "fm-typo-en-body-lg-600"
1070
1070
  }, L(Ie), 1))), 128))
@@ -1097,10 +1097,10 @@ const bt = Re(
1097
1097
  }, 8, ["model-value"]);
1098
1098
  };
1099
1099
  }
1100
- }), Jt = { class: "flex-1 flex flex-col gap-8" }, Qt = { class: "flex flex-col" }, Xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ea = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ta = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, aa = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, ua = /* @__PURE__ */ ye({
1100
+ }), Xt = { class: "flex-1 flex flex-col gap-8" }, Jt = { class: "flex flex-col" }, Qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ea = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ta = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, aa = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, ua = /* @__PURE__ */ ye({
1101
1101
  __name: "ClosingDraftView",
1102
1102
  setup(n) {
1103
- const { t: d } = Fe(), { viewDraft: e } = pe(), { viewClosingDraftProps: u, viewClosingDraftShow: m } = rt(pe()), g = be(), x = bt(), l = Qe(), { breakpoints: b } = st();
1103
+ const { t: d } = Fe(), { viewDraft: e } = pe(), { viewClosingDraftProps: u, viewClosingDraftShow: m } = rt(pe()), g = be(), x = bt(), l = Je(), { breakpoints: b } = st();
1104
1104
  g.watchLocation(x.fetchDrafts);
1105
1105
  const R = M(() => x.loading), P = O(""), T = M(() => b.value.xs || b.value.sm), r = M(() => T.value ? 10 : 20);
1106
1106
  function s(S) {
@@ -1127,8 +1127,8 @@ const bt = Re(
1127
1127
  ]);
1128
1128
  return (S, w) => {
1129
1129
  const V = E("FmTable");
1130
- return _(), F(Z, null, [
1131
- D(Xe, {
1130
+ return _(), F(W, null, [
1131
+ D(Qe, {
1132
1132
  title: h(d)("inventory.closing.draft.title"),
1133
1133
  actions: U.value,
1134
1134
  "onClick:action": s
@@ -1164,19 +1164,19 @@ const bt = Re(
1164
1164
  onRowClick: (y) => h(e)(y)
1165
1165
  }, {
1166
1166
  default: N((y) => {
1167
- var K, Q, se, ee, te, W, Y, re, a, t, i, f, c, p, I, j, G, X, H, A;
1167
+ var K, J, se, ee, te, Z, Y, re, a, t, i, f, c, p, I, j, G, Q, H, A;
1168
1168
  return [
1169
- o("div", Jt, [
1170
- o("div", Qt, [
1171
- o("div", Xt, [
1169
+ o("div", Xt, [
1170
+ o("div", Jt, [
1171
+ o("div", Qt, [
1172
1172
  D(h(me), {
1173
- render: (se = (Q = (K = y._id) == null ? void 0 : K.column) == null ? void 0 : Q.columnDef) == null ? void 0 : se.cell,
1173
+ render: (se = (J = (K = y._id) == null ? void 0 : K.column) == null ? void 0 : J.columnDef) == null ? void 0 : se.cell,
1174
1174
  props: (te = (ee = y._id) == null ? void 0 : ee.getContext) == null ? void 0 : te.call(ee)
1175
1175
  }, null, 8, ["render", "props"])
1176
1176
  ]),
1177
1177
  o("div", ea, [
1178
1178
  D(h(me), {
1179
- render: (re = (Y = (W = y.name) == null ? void 0 : W.column) == null ? void 0 : Y.columnDef) == null ? void 0 : re.cell,
1179
+ render: (re = (Y = (Z = y.name) == null ? void 0 : Z.column) == null ? void 0 : Y.columnDef) == null ? void 0 : re.cell,
1180
1180
  props: (t = (a = y.name) == null ? void 0 : a.getContext) == null ? void 0 : t.call(a)
1181
1181
  }, null, 8, ["render", "props"])
1182
1182
  ]),
@@ -1193,7 +1193,7 @@ const bt = Re(
1193
1193
  ]),
1194
1194
  o("div", null, [
1195
1195
  D(h(me), {
1196
- render: (X = (G = (j = y.status) == null ? void 0 : j.column) == null ? void 0 : G.columnDef) == null ? void 0 : X.cell,
1196
+ render: (Q = (G = (j = y.status) == null ? void 0 : j.column) == null ? void 0 : G.columnDef) == null ? void 0 : Q.cell,
1197
1197
  props: (A = (H = y.status) == null ? void 0 : H.getContext) == null ? void 0 : A.call(H)
1198
1198
  }, null, 8, ["render", "props"])
1199
1199
  ])
@@ -1210,7 +1210,7 @@ const bt = Re(
1210
1210
  _: 1
1211
1211
  }, 8, ["title", "actions"]),
1212
1212
  (_(), ne(Ee, { to: "body" }, [
1213
- D(Zt, Le(h(u), {
1213
+ D(Wt, Le(h(u), {
1214
1214
  show: h(m),
1215
1215
  "onUpdate:show": w[2] || (w[2] = (B) => _e(m) ? m.value = B : null),
1216
1216
  onSubmitted: w[3] || (w[3] = () => (m.value = !1, h(x).fetchDrafts()))
@@ -1,5 +1,5 @@
1
- import { ref as D, h as F, defineComponent as O, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Fe, toDisplayString as C, unref as v, createCommentVNode as K, createVNode as T, withCtx as P, Fragment as H, renderList as W, computed as E, watch as Re, createSlots as Pe, createBlock as V, isRef as je, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as We, mergeProps as Je } from "vue";
2
- import { W as qe, u as le, a8 as Qe, D as Se, h as N, f as Xe, e as Ae, a9 as oe, q as Ze, aa as Ee, r as Ue, a as ae, b as et, s as tt, v as Ve, w as nt, x as ot, d as z, E as j, G as st, ab as lt, l as at, B as Ne, A as rt, H as it, ac as ct, ad as ne, y as mt, _ as ut, z as dt } from "./app-CpuFfqWF.js";
1
+ import { ref as D, h as F, defineComponent as O, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Fe, toDisplayString as C, unref as v, createCommentVNode as K, createVNode as T, withCtx as P, Fragment as H, renderList as J, computed as E, watch as Re, createSlots as Pe, createBlock as V, isRef as je, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as Je, mergeProps as We } from "vue";
2
+ import { X as qe, u as le, a9 as Xe, D as Se, i as N, h as Qe, f as Ae, aa as oe, r as Ze, ab as Ee, s as Ue, a as ae, b as et, v as tt, w as Ve, x as nt, y as ot, e as z, G as j, H as st, ac as lt, m as at, E as Ne, A as rt, J as it, ad as ct, ae as ne, z as mt, _ as ut, B as dt } from "./app-F909rQ5n.js";
3
3
  import { useCoreStore as re, useI18n as B } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as pt, useSnackbar as Z, useDialog as ie, FmButtonVariant as De, components as L, useProxiedModel as ft, useBreakpoints as vt } from "@feedmepos/ui-library";
5
5
  import { defineStore as Be, storeToRefs as Le } from "pinia";
@@ -95,7 +95,7 @@ const ee = qe((r, s) => {
95
95
  accessorKey: "_id",
96
96
  header: () => s("inventory.closing.table.createdAt"),
97
97
  cell(y) {
98
- return Qe(`${y.getValue()}`);
98
+ return Xe(`${y.getValue()}`);
99
99
  },
100
100
  enableSorting: !0
101
101
  },
@@ -170,7 +170,7 @@ const ee = qe((r, s) => {
170
170
  Se[N.Edit],
171
171
  Se[N.Delete]
172
172
  ];
173
- return Xe(u, (n) => d(n, h));
173
+ return Qe(u, (n) => d(n, h));
174
174
  },
175
175
  enableSorting: !1,
176
176
  size: 40,
@@ -553,7 +553,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
553
553
  T(t, { "z-index": 50 }, {
554
554
  content: P(() => [
555
555
  _("ol", null, [
556
- (k(!0), I(H, null, W(o.errors, (i, d) => (k(), I("li", { key: d }, C(i), 1))), 128))
556
+ (k(!0), I(H, null, J(o.errors, (i, d) => (k(), I("li", { key: d }, C(i), 1))), 128))
557
557
  ])
558
558
  ]),
559
559
  default: P(() => [
@@ -710,7 +710,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
710
710
  ]))
711
711
  ], 2),
712
712
  g.value.length ? (k(), I("div", Ut, [
713
- (k(!0), I(H, null, W(g.value, ($, b) => (k(), I("div", {
713
+ (k(!0), I(H, null, J(g.value, ($, b) => (k(), I("div", {
714
714
  key: b,
715
715
  class: "flex gap-8 items-center"
716
716
  }, [
@@ -729,7 +729,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
729
729
  ]), 1032, ["class", "label", "button-label"]),
730
730
  d.value ? (k(), I("div", Nt, [
731
731
  _("div", Bt, C(v(m)("inventory.ingredient.import.summary")), 1),
732
- (k(!0), I(H, null, W(f.value, (c, $) => (k(), V(Me, {
732
+ (k(!0), I(H, null, J(f.value, (c, $) => (k(), V(Me, {
733
733
  key: $,
734
734
  name: c.template.name,
735
735
  locations: c.template.locations,
@@ -737,7 +737,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
737
737
  errors: c.errors,
738
738
  type: "create"
739
739
  }, null, 8, ["name", "locations", "items", "errors"]))), 128)),
740
- (k(!0), I(H, null, W(p.value, (c) => (k(), V(Me, {
740
+ (k(!0), I(H, null, J(p.value, (c) => (k(), V(Me, {
741
741
  key: c.template._id,
742
742
  name: c.template.name,
743
743
  locations: c.template.locations,
@@ -1135,7 +1135,7 @@ function zt(r) {
1135
1135
  })
1136
1136
  };
1137
1137
  }
1138
- const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt = { class: "flex-1 flex flex-col" }, Yt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Gt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Kt = { class: "flex flex-col gap-4" }, Wt = /* @__PURE__ */ O({
1138
+ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt = { class: "flex-1 flex flex-col" }, Yt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Gt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Kt = { class: "flex flex-col gap-4" }, Jt = /* @__PURE__ */ O({
1139
1139
  __name: "ClosingTemplateItem",
1140
1140
  props: {
1141
1141
  cellByColId: {},
@@ -1162,7 +1162,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1162
1162
  ]),
1163
1163
  _("div", Kt, [
1164
1164
  t[0] || (t[0] = _("div", { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, null, -1)),
1165
- (k(!0), I(H, null, W(l.value, (m) => {
1165
+ (k(!0), I(H, null, J(l.value, (m) => {
1166
1166
  var y, h, u;
1167
1167
  return k(), I("div", {
1168
1168
  key: m.id
@@ -1177,7 +1177,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1177
1177
  ]);
1178
1178
  };
1179
1179
  }
1180
- }), Jt = { class: "flex flex-col gap-16" }, qt = { class: "flex flex-col gap-24" }, Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center" }, Zt = { class: "flex-1 fm-typo-en-title-sm-600" }, en = { class: "flex flex-col gap-16" }, tn = { class: "flex items-center" }, nn = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, on = /* @__PURE__ */ O({
1180
+ }), Wt = { class: "flex flex-col gap-16" }, qt = { class: "flex flex-col gap-24" }, Xt = { class: "flex flex-col gap-16" }, Qt = { class: "flex items-center" }, Zt = { class: "flex-1 fm-typo-en-title-sm-600" }, en = { class: "flex flex-col gap-16" }, tn = { class: "flex items-center" }, nn = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, on = /* @__PURE__ */ O({
1181
1181
  __name: "ClosingTemplateForm",
1182
1182
  props: {
1183
1183
  modelValue: {},
@@ -1270,7 +1270,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1270
1270
  disabled: n.disabled
1271
1271
  }, {
1272
1272
  default: P(() => [
1273
- _("div", Jt, [
1273
+ _("div", Wt, [
1274
1274
  _("div", qt, [
1275
1275
  T(x, {
1276
1276
  label: v(e)("inventory.closing.form.name"),
@@ -1287,8 +1287,8 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1287
1287
  }, null, 8, ["label", "modelValue"])
1288
1288
  ])
1289
1289
  ]),
1290
- _("div", Qt, [
1291
- _("div", Xt, [
1290
+ _("div", Xt, [
1291
+ _("div", Qt, [
1292
1292
  _("div", Zt, C(v(e)("inventory.closing.form.locations")), 1),
1293
1293
  T(c, {
1294
1294
  disabled: n.disabled,
@@ -1351,7 +1351,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1351
1351
  key: v(l).items.map((S) => S.sku._id).join(".")
1352
1352
  }, {
1353
1353
  default: P((S) => [
1354
- T(Wt, {
1354
+ T(Jt, {
1355
1355
  row: M,
1356
1356
  "cell-by-col-id": S
1357
1357
  }, null, 8, ["row", "cell-by-col-id"])
@@ -1756,14 +1756,14 @@ const un = /* @__PURE__ */ ct(cn, [["render", mn]]), dn = { class: "flex flex-co
1756
1756
  onRowClick: (U) => v(l)(U)
1757
1757
  }, {
1758
1758
  default: P((U) => {
1759
- var me, ue, de, J, pe, fe, ve, ge, q, ye, he, be, _e, xe, we, Q, ke, Te, $e, Ce, X, Ie;
1759
+ var me, ue, de, W, pe, fe, ve, ge, q, ye, he, be, _e, xe, we, X, ke, Te, $e, Ce, Q, Ie;
1760
1760
  return [
1761
1761
  _("div", $n, [
1762
1762
  _("div", Cn, [
1763
1763
  _("div", In, [
1764
1764
  T(v(j), {
1765
1765
  render: (de = (ue = (me = U._id) == null ? void 0 : me.column) == null ? void 0 : ue.columnDef) == null ? void 0 : de.cell,
1766
- props: (pe = (J = U._id) == null ? void 0 : J.getContext) == null ? void 0 : pe.call(J)
1766
+ props: (pe = (W = U._id) == null ? void 0 : W.getContext) == null ? void 0 : pe.call(W)
1767
1767
  }, null, 8, ["render", "props"])
1768
1768
  ]),
1769
1769
  _("div", Sn, [
@@ -1782,14 +1782,14 @@ const un = /* @__PURE__ */ ct(cn, [["render", mn]]), dn = { class: "flex flex-co
1782
1782
  _("div", Mn, [
1783
1783
  T(v(j), {
1784
1784
  render: (we = (xe = (_e = U.ref) == null ? void 0 : _e.column) == null ? void 0 : xe.columnDef) == null ? void 0 : we.cell,
1785
- props: (ke = (Q = U.ref) == null ? void 0 : Q.getContext) == null ? void 0 : ke.call(Q)
1785
+ props: (ke = (X = U.ref) == null ? void 0 : X.getContext) == null ? void 0 : ke.call(X)
1786
1786
  }, null, 8, ["render", "props"])
1787
1787
  ])
1788
1788
  ]),
1789
1789
  _("div", null, [
1790
1790
  T(v(j), {
1791
1791
  render: (Ce = ($e = (Te = U.status) == null ? void 0 : Te.column) == null ? void 0 : $e.columnDef) == null ? void 0 : Ce.cell,
1792
- props: (Ie = (X = U.status) == null ? void 0 : X.getContext) == null ? void 0 : Ie.call(X)
1792
+ props: (Ie = (Q = U.status) == null ? void 0 : Q.getContext) == null ? void 0 : Ie.call(Q)
1793
1793
  }, null, 8, ["render", "props"])
1794
1794
  ])
1795
1795
  ])
@@ -1805,8 +1805,8 @@ const un = /* @__PURE__ */ ct(cn, [["render", mn]]), dn = { class: "flex flex-co
1805
1805
  _: 1
1806
1806
  }, 8, ["title", "actions"]),
1807
1807
  (k(), V(Ge, { to: "body" }, [
1808
- T(un, Ke(We(v(f))), null, 16),
1809
- T(rn, Je(v(g), {
1808
+ T(un, Ke(Je(v(f))), null, 16),
1809
+ T(rn, We(v(g), {
1810
1810
  onSubmitted: A[2] || (A[2] = (S) => v(d).fetchTemplates())
1811
1811
  }), null, 16)
1812
1812
  ]))
@@ -1,19 +1,19 @@
1
1
  import { defineComponent as g, openBlock as a, createElementBlock as i, createElementVNode as m, toDisplayString as u, unref as h, Fragment as C, renderList as N, computed as v, resolveComponent as V, createVNode as S, createCommentVNode as w, h as B } from "vue";
2
- import { i as b, J as F, e as $ } from "./app-CpuFfqWF.js";
2
+ import { j as b, K as F, f as $ } from "./app-F909rQ5n.js";
3
3
  import { useI18n as k, useCoreStore as I } from "@feedmepos/mf-common";
4
4
  import { components as O } from "@feedmepos/ui-library";
5
- const T = { class: "flex flex-col" }, z = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, j = { class: "flex-1 py-8 px-16" }, D = {
5
+ const T = { class: "flex flex-col" }, j = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, z = { class: "flex-1 py-8 px-16" }, D = {
6
6
  class: "flex-0 py-8 px-16",
7
7
  style: { "flex-basis": "120px" }
8
- }, E = { class: "flex-1 py-8 px-16" }, M = {
8
+ }, E = { class: "flex-1 py-8 px-16" }, K = {
9
9
  key: 0,
10
10
  class: "flex-0 py-8 px-16",
11
11
  style: { "flex-basis": "120px" }
12
- }, K = {
12
+ }, M = {
13
13
  key: 1,
14
14
  class: "flex-0 py-8 px-16",
15
15
  style: { "flex-basis": "120px" }
16
- }, q = /* @__PURE__ */ g({
16
+ }, G = /* @__PURE__ */ g({
17
17
  __name: "IngredientBindedItem",
18
18
  props: {
19
19
  name: {},
@@ -33,8 +33,8 @@ const T = { class: "flex flex-col" }, z = { class: "flex flex-row fm-typo-en-bod
33
33
  return o.unit !== void 0;
34
34
  }
35
35
  return (o, c) => (a(), i("div", T, [
36
- m("div", z, [
37
- m("div", j, u(o.name), 1),
36
+ m("div", j, [
37
+ m("div", z, u(o.name), 1),
38
38
  m("div", D, u(h(p)("inventory.ingredient.bindedItems.amount")), 1)
39
39
  ]),
40
40
  (a(!0), i(C, null, N(o.bindings, (n) => (a(), i("div", {
@@ -42,14 +42,14 @@ const T = { class: "flex flex-col" }, z = { class: "flex flex-row fm-typo-en-bod
42
42
  class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
43
43
  }, [
44
44
  m("div", E, u(n.name), 1),
45
- f(n) ? (a(), i("div", M, u(l(n, n.unit)), 1)) : (a(), i("div", K, u(h(b)(n.amount, !1)), 1))
45
+ f(n) ? (a(), i("div", K, u(l(n, n.unit)), 1)) : (a(), i("div", M, u(h(b)(n.amount, !1)), 1))
46
46
  ]))), 128))
47
47
  ]));
48
48
  }
49
49
  }), U = {
50
50
  key: 0,
51
51
  class: "flex flex-col gap-16"
52
- }, G = /* @__PURE__ */ g({
52
+ }, H = /* @__PURE__ */ g({
53
53
  __name: "FmCustomAttribute",
54
54
  props: {
55
55
  entity: {},
@@ -137,6 +137,6 @@ const T = { class: "flex flex-col" }, z = { class: "flex flex-row fm-typo-en-bod
137
137
  }
138
138
  });
139
139
  export {
140
- q as _,
141
- G as a
140
+ G as _,
141
+ H as a
142
142
  };
@@ -1,7 +1,7 @@
1
- import { i as k, t as B, an as w, u as H, as as I, aC as R, aD as M } from "./app-CpuFfqWF.js";
2
- import { u as j } from "./supplier-CeY_Gro-.js";
3
- import { P as S } from "./format-unit-display-D4gi2D-O.js";
4
- import { computed as y, defineComponent as $, mergeModels as W, useModel as J, resolveComponent as U, openBlock as T, createElementBlock as A, normalizeStyle as K, createElementVNode as D, createVNode as Q, withCtx as X, createBlock as x, createCommentVNode as N, Fragment as Y, renderList as Z, unref as V } from "vue";
1
+ import { j as k, t as B, ao as w, u as H, at as I, aD as R, aE as M } from "./app-F909rQ5n.js";
2
+ import { u as j } from "./supplier-CPuz6JVf.js";
3
+ import { P as S } from "./format-unit-display-CM40cl03.js";
4
+ import { computed as y, defineComponent as $, mergeModels as W, useModel as J, resolveComponent as U, openBlock as T, createElementBlock as A, normalizeStyle as K, createElementVNode as D, createVNode as Q, withCtx as X, createBlock as x, createCommentVNode as E, Fragment as Y, renderList as Z, unref as V } from "vue";
5
5
  function z(l, r, e) {
6
6
  var s;
7
7
  if (!!r.measurement === !!e && ((s = r.measurement) == null ? void 0 : s.id) === e)
@@ -81,7 +81,7 @@ function re(l, r, e = !1, n = !1) {
81
81
  set(u) {
82
82
  const a = l() ?? {};
83
83
  if (s.value === S.PURCHASE) {
84
- const _ = (n ? t.suppliers : t.businessSuppliers).find((E) => E._id === u);
84
+ const _ = (n ? t.suppliers : t.businessSuppliers).find((N) => N._id === u);
85
85
  r({
86
86
  ...a,
87
87
  supplier: _ ? F(_) : a.supplier
@@ -248,7 +248,7 @@ const G = { class: "sticky top-0 bg-white mb-8" }, q = { class: "overflow-y-auto
248
248
  variant: "tertiary",
249
249
  "prepend-icon": "close",
250
250
  onClick: s[0] || (s[0] = (f) => e.value = "")
251
- })) : N("", !0)
251
+ })) : E("", !0)
252
252
  ]),
253
253
  _: 1
254
254
  }, 8, ["modelValue"])
@@ -265,7 +265,7 @@ const G = { class: "sticky top-0 bg-white mb-8" }, q = { class: "overflow-y-auto
265
265
  return V(M)(o.modelValue, f.value) && ((g = b.el) == null || g.scrollIntoView({ behavior: "smooth", block: "center" }), console.log("scrollTo", b.el)), void 0;
266
266
  }
267
267
  }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
268
- t.value.length ? N("", !0) : (T(), x(p, {
268
+ t.value.length ? E("", !0) : (T(), x(p, {
269
269
  key: 0,
270
270
  disabled: "",
271
271
  label: "No options available"