@feedmepos/mf-inventory-portal 1.2.12-dev.2 → 1.2.12

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 (74) hide show
  1. package/dist/{App-T4sL7Sy4.js → App-CP0Qx_82.js} +40 -44
  2. package/dist/{ApprovalView-CfmNwkYs.js → ApprovalView-D8_PzEpZ.js} +30 -30
  3. package/dist/{BindingsDialog-DDYAQsNs.js → BindingsDialog-BbpKhb0L.js} +2 -2
  4. package/dist/{BindingsPicker-CXZhlZ4b.js → BindingsPicker-DzDxisHj.js} +1 -1
  5. package/dist/{BindingsTable-LQ59h-NA.js → BindingsTable-DCXXSY8e.js} +1 -1
  6. package/dist/{ClosingDraftView-B1J4RCvY.js → ClosingDraftView-CkF-9An8.js} +129 -129
  7. package/dist/{ClosingTemplateView-6NoqcDMF.js → ClosingTemplateView-Ce1l7n0x.js} +28 -28
  8. package/dist/{DeliveryOrderPrintPreview--XMB1yg_.js → DeliveryOrderPrintPreview-CFzsECiK.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXxGymbF.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ZSERZzyn.js} +3 -3
  10. package/dist/{FmMultiselectDialog-DPPNjHO8.js → FmMultiselectDialog-DP992D0Q.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CSgYZv-j.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CzUvuj_c.js} +45 -45
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-tUefDFh2.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DsYwSn0d.js} +1 -1
  13. package/dist/{IngredientGroupView-BjtjeGay.js → IngredientGroupView-DUiKKpvF.js} +32 -31
  14. package/dist/IngredientsView-C3ozIXV8.js +2475 -0
  15. package/dist/{IntegrationView-D8HiAM5K.js → IntegrationView-CydpIwrf.js} +57 -57
  16. package/dist/{InventoryBindingForm-DCtBdWkM.js → InventoryBindingForm-BVd2FzOW.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-RxoPehX0.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYp_JSBb.js} +31 -31
  18. package/dist/{InventoryBindingSummary-DGLMoDKd.js → InventoryBindingSummary-Dthool-6.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D0ElZcnn.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DR0_Qtyc.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BNm3V8o4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BLfGb7mm.js} +1 -1
  21. package/dist/{PublishView-DQcrQkVJ.js → PublishView-BE_aIhZ6.js} +15 -15
  22. package/dist/{PurchaseOrderPrintPreview-1NMEozJD.js → PurchaseOrderPrintPreview-CGeqqFg-.js} +1 -1
  23. package/dist/{ReceiveRequestView-BFs8VYre.js → ReceiveRequestView-Bul9Esf1.js} +63 -62
  24. package/dist/RecipeView-B9AGELV7.js +621 -0
  25. package/dist/{StockView-B80E0r1r.js → StockView-fpJrx4Bd.js} +166 -165
  26. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CFFDw9Mj.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeOEgJ1N.js} +1 -1
  27. package/dist/{SupplierView-E_fX8cgQ.js → SupplierView-cfZTJqef.js} +492 -490
  28. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-m5o77oG-.js +3057 -0
  29. package/dist/{TransferTemplateView-B-uBdQgp.js → TransferTemplateView-PZ8Mad4D.js} +48 -48
  30. package/dist/UnitView-C3gJq1Mt.js +667 -0
  31. package/dist/{WarehouseView-DZSetx-S.js → WarehouseView-CWGQjwJm.js} +32 -32
  32. package/dist/api/inventory.d.ts +0 -306
  33. package/dist/api/purchase-order.d.ts +0 -1
  34. package/dist/{app-CLG8lnmY.js → app-D5PlbdVa.js} +8475 -8810
  35. package/dist/app.d.ts +0 -169
  36. package/dist/app.js +1 -1
  37. package/dist/array-Ca8T3f_G.js +44 -0
  38. package/dist/{closing-template-CHz79DOu.js → closing-template-C4FizLUw.js} +1 -1
  39. package/dist/{decimal-BNFgzHyV.js → decimal-Cv7FZ14q.js} +1 -1
  40. package/dist/{format-unit-display-DYY0F6KV.js → format-unit-display-B0NO6FLh.js} +25 -25
  41. package/dist/helper/number.d.ts +0 -1
  42. package/dist/{index-Bu7FmfHi.js → index-BCo2jtpG.js} +1 -1
  43. package/dist/{index-DiYSFnk1.js → index-DaJ92t7D.js} +1 -1
  44. package/dist/{purchase-order-template-DtfKTZLV.js → purchase-order-template-DLkR7Mva.js} +1 -1
  45. package/dist/router/name.d.ts +0 -1
  46. package/dist/{stock-RE6RExO9.js → stock-AUSAF9Ij.js} +1 -1
  47. package/dist/stores/feature.d.ts +0 -2
  48. package/dist/stores/inventory.d.ts +199 -26
  49. package/dist/{supplier-DkLAGLl7.js → supplier-DBXoP2UX.js} +1 -1
  50. package/dist/tsconfig.app.tsbuildinfo +1 -1
  51. package/dist/{use-ingredient-select-dialog-Bg_kT9z-.js → use-ingredient-select-dialog-DZQR6jfi.js} +1 -1
  52. package/dist/{use-inventory-binding-dialog-CpS4GfwM.js → use-inventory-binding-dialog-8PZ37vLV.js} +1 -1
  53. package/dist/views/ingredients/helper/import-export.helper.d.ts +1 -3
  54. package/dist/views/recipe/RecipeView.vue.d.ts +0 -1
  55. package/dist/views/unit/UnitView.vue.d.ts +0 -1
  56. package/package.json +1 -1
  57. package/dist/ImportView-ClHIcxRw.js +0 -1195
  58. package/dist/IngredientsView-BA6Y-uhX.js +0 -2240
  59. package/dist/RecipeView-DgF_kShy.js +0 -636
  60. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Bxl2Gege.js +0 -3221
  61. package/dist/UnitView-DOIy_8oz.js +0 -674
  62. package/dist/import-export.helper-uZNU9S1q.js +0 -243
  63. package/dist/views/import/ImportView.vue.d.ts +0 -3
  64. package/dist/views/import/components/ImportDialog.vue.d.ts +0 -2
  65. package/dist/views/import/helper/import-export.helper.d.ts +0 -4
  66. package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +0 -17
  67. package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +0 -16
  68. package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +0 -2
  69. package/dist/views/recipe/helper/import-recipe.d.ts +0 -48
  70. package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +0 -12
  71. package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +0 -6
  72. package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +0 -9
  73. package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +0 -5
  74. package/dist/views/unit/helper/import-export.helper.d.ts +0 -40
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as ae, onMounted as Te, computed as L, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as P, renderSlot as xe, withDirectives as Ue, normalizeClass as re, vModelText as Be, reactive as st, h as j, toDisplayString as I, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as je, createBlock as le, mergeProps as Qe, createTextVNode as ne, mergeModels as qe, useModel as lt, isRef as Ye, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
2
- import { O as We, aP as he, t as Ne, L as it, aQ as ut, aR as dt, l as se, aS as mt, b as Ge, a as Ke, Y as Le, c as ge, p as ke, x as be, Z as ye, A as we, M as pt, J as ee, u as Ze, as as ct, a4 as ft, I as Je, e as ue, y as ve, al as yt, W as vt, ad as bt, C as gt, j as Ee, E as ht, G as xt } from "./app-CLG8lnmY.js";
2
+ import { X as We, aP as he, t as Ne, I as it, aQ as ut, aR as dt, l as se, aS as mt, b as Ge, a as Ke, a0 as Le, c as ge, p as ke, x as be, a1 as ye, A as we, M as pt, V as ee, u as Xe, as as ct, a6 as ft, T as Ze, e as ue, y as ve, an as yt, B as vt, af as bt, O as gt, j as Ee, P as ht, Q as xt } from "./app-D5PlbdVa.js";
3
3
  import { useI18n as me } from "@feedmepos/mf-common";
4
- import { P as X, f as _t, t as kt, a as ze, u as wt } from "./format-unit-display-DYY0F6KV.js";
5
- import { components as de, useSnackbar as Tt, useProxiedModel as Xe, useBreakpoints as Ct } from "@feedmepos/ui-library";
4
+ import { P as J, f as _t, t as kt, a as ze, u as wt } from "./format-unit-display-B0NO6FLh.js";
5
+ import { components as de, useSnackbar as Tt, useProxiedModel as Je, useBreakpoints as Ct } from "@feedmepos/ui-library";
6
6
  import { defineStore as Ft, storeToRefs as He } from "pinia";
7
- import { _ as St, b as It, F as Mt, a as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CSgYZv-j.js";
8
- import { c as Ot, u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXxGymbF.js";
9
- import { u as At } from "./supplier-DkLAGLl7.js";
10
- import { u as Rt } from "./use-ingredient-select-dialog-Bg_kT9z-.js";
11
- import { u as Pt } from "./purchase-order-template-DtfKTZLV.js";
7
+ import { _ as St, b as It, F as Mt, a as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CzUvuj_c.js";
8
+ import { c as Ot, u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ZSERZzyn.js";
9
+ import { u as At } from "./supplier-DBXoP2UX.js";
10
+ import { u as Rt } from "./use-ingredient-select-dialog-DZQR6jfi.js";
11
+ import { u as Pt } from "./purchase-order-template-DLkR7Mva.js";
12
12
  const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Lt = { class: "flex-1" }, Et = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
13
13
  __name: "FmMinMaxInput",
14
14
  props: {
@@ -489,11 +489,11 @@ function Yt(p, h = {}) {
489
489
  ...b,
490
490
  id: f
491
491
  });
492
- return c.enableTotalCost && p.transferType === X.PURCHASE ? o : o.filter((f) => f.id !== "Cost");
492
+ return c.enableTotalCost && p.transferType === J.PURCHASE ? o : o.filter((f) => f.id !== "Cost");
493
493
  })
494
494
  };
495
495
  }
496
- const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-center" }, Kt = { class: "flex-1 flex gap-1 items-center" }, Zt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Jt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xt = { class: "flex gap-8 w-full" }, eo = { class: "flex-1 flex flex-col gap-4" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = {
496
+ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-center" }, Kt = { class: "flex-1 flex gap-1 items-center" }, Xt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Zt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Jt = { class: "flex gap-8 w-full" }, eo = { class: "flex-1 flex flex-col gap-4" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = {
497
497
  key: 0,
498
498
  class: "flex gap-8 w-full"
499
499
  }, so = { class: "flex-1 flex flex-col gap-4" }, lo = { class: "flex-1 flex flex-col gap-4" }, no = { class: "flex gap-8 w-full" }, ao = { class: "flex-1 flex flex-col gap-4" }, ro = /* @__PURE__ */ ae({
@@ -508,13 +508,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
508
508
  return a;
509
509
  }
510
510
  return (a, r) => {
511
- var u, x, F, c, o, f, b, k, T, R, U, d, y, w, i, g, O, M, _, W, te, E, B, Z, l, n, C, q, z, G;
511
+ var u, x, F, c, o, f, b, k, T, R, U, d, y, w, i, g, O, M, _, W, te, E, B, X, l, n, C, q, z, G;
512
512
  const s = V("FmLabel");
513
513
  return $(), N("div", Wt, [
514
514
  e("div", Gt, [
515
515
  e("div", Kt, [
516
- e("span", Zt, " (" + I(a.row.original.sku.code) + ") ", 1),
517
- e("span", Jt, I(a.row.original.sku.name), 1)
516
+ e("span", Xt, " (" + I(a.row.original.sku.code) + ") ", 1),
517
+ e("span", Zt, I(a.row.original.sku.name), 1)
518
518
  ]),
519
519
  e("div", null, [
520
520
  m(t(ee), {
@@ -523,7 +523,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
523
523
  }, null, 8, ["render", "props"])
524
524
  ])
525
525
  ]),
526
- e("div", Xt, [
526
+ e("div", Jt, [
527
527
  e("div", eo, [
528
528
  m(s, {
529
529
  label: t(h)(`inventory.transfer.form.items.table.${t(Q).Code}`)
@@ -562,7 +562,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
562
562
  }, null, 8, ["label"]),
563
563
  m(t(ee), {
564
564
  render: (B = (E = (te = a.cellByColId[t(Q).Step]) == null ? void 0 : te.column) == null ? void 0 : E.columnDef) == null ? void 0 : B.cell,
565
- props: (l = (Z = a.cellByColId[t(Q).Step]) == null ? void 0 : Z.getContext) == null ? void 0 : l.call(Z)
565
+ props: (l = (X = a.cellByColId[t(Q).Step]) == null ? void 0 : X.getContext) == null ? void 0 : l.call(X)
566
566
  }, null, 8, ["render", "props"]),
567
567
  r[3] || (r[3] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
568
568
  ])
@@ -638,7 +638,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
638
638
  },
639
639
  emits: ["update:disabled"],
640
640
  setup(p, { expose: h, emit: v }) {
641
- const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F = Ze(), c = Ke(), o = At(), f = ge(), b = Ge(), k = et();
641
+ const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F = Xe(), c = Ke(), o = At(), f = ge(), b = Ge(), k = et();
642
642
  Ce(
643
643
  () => s.purchaseOrder.items.length,
644
644
  () => {
@@ -658,12 +658,12 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
658
658
  ), R = L({
659
659
  get() {
660
660
  var l, n;
661
- return typeof ((n = (l = s.purchaseOrder) == null ? void 0 : l.supplier) == null ? void 0 : n.internal) == "string" ? X.TRANSFER : X.PURCHASE;
661
+ return typeof ((n = (l = s.purchaseOrder) == null ? void 0 : l.supplier) == null ? void 0 : n.internal) == "string" ? J.TRANSFER : J.PURCHASE;
662
662
  },
663
663
  set(l) {
664
664
  var C, q;
665
- const n = typeof ((q = (C = s.purchaseOrder) == null ? void 0 : C.supplier) == null ? void 0 : q.internal) == "string" ? X.TRANSFER : X.PURCHASE;
666
- l !== n && (s.purchaseOrder.supplier = l === X.PURCHASE ? T.locationOptionsTypePurchase.value[0] : T.locationOptionsTypeTransfer.value[0]);
665
+ const n = typeof ((q = (C = s.purchaseOrder) == null ? void 0 : C.supplier) == null ? void 0 : q.internal) == "string" ? J.TRANSFER : J.PURCHASE;
666
+ l !== n && (s.purchaseOrder.supplier = l === J.PURCHASE ? T.locationOptionsTypePurchase.value[0] : T.locationOptionsTypeTransfer.value[0]);
667
667
  }
668
668
  }), U = L(() => T.transferLocationOptions.value), d = L({
669
669
  get() {
@@ -754,7 +754,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
754
754
  return s.purchaseOrder.items;
755
755
  },
756
756
  get transferType() {
757
- return X.PURCHASE;
757
+ return J.PURCHASE;
758
758
  },
759
759
  get disabled() {
760
760
  return a.disabled;
@@ -774,7 +774,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
774
774
  }
775
775
  })
776
776
  ), E = L(() => te.columnDefs.value), { promptSelectIngredients: B } = Rt();
777
- async function Z() {
777
+ async function X() {
778
778
  const n = c.skus.map((D) => ({
779
779
  label: D.name,
780
780
  sublabel: D.code,
@@ -788,25 +788,25 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
788
788
  const A = c.skuById[D], K = C.find((H) => H.sku._id === A._id);
789
789
  if (K)
790
790
  return K;
791
- const J = { amount: 1, precision: be(A.unit) };
791
+ const Z = { amount: 1, precision: be(A.unit) };
792
792
  let S = {
793
793
  id: f.usePurchaseOrderV2 ? crypto.randomUUID() : void 0,
794
794
  sku: A,
795
795
  code: A.code,
796
796
  name: A.name,
797
- quantity: J,
798
- minimumQuantity: J,
797
+ quantity: Z,
798
+ minimumQuantity: Z,
799
799
  // maximumQuantity: adjustmentAmountMultiplyDecimal(minimumQuantity, {
800
800
  // amount: 100,
801
801
  // precision: 0
802
802
  // }),
803
- quantityStep: J
803
+ quantityStep: Z
804
804
  };
805
805
  return k.validateUnitInput(
806
806
  S,
807
807
  A,
808
808
  {
809
- amount: J,
809
+ amount: Z,
810
810
  measurement: null
811
811
  },
812
812
  (H) => {
@@ -822,7 +822,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
822
822
  if (A.length > 0)
823
823
  G.push(...A);
824
824
  else {
825
- const K = q.find((J) => J.sku._id === D);
825
+ const K = q.find((Z) => Z.sku._id === D);
826
826
  K && G.push(K);
827
827
  }
828
828
  }
@@ -837,7 +837,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
837
837
  disabled: l.disabled
838
838
  }, {
839
839
  default: P(() => {
840
- var J;
840
+ var Z;
841
841
  return [
842
842
  e("div", co, [
843
843
  e("div", fo, [
@@ -855,13 +855,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
855
855
  items: [
856
856
  {
857
857
  label: t(u)("inventory.transfer.form.type.purchase"),
858
- value: t(X).PURCHASE,
858
+ value: t(J).PURCHASE,
859
859
  disabled: !t(T).locationOptionsTypePurchase.value.length,
860
860
  sublabel: t(T).locationOptionsTypePurchase.value.length ? void 0 : t(u)("inventory.transfer.form.noSupplierAvailable")
861
861
  },
862
862
  {
863
863
  label: t(u)("inventory.transfer.form.type.transfer"),
864
- value: t(X).TRANSFER,
864
+ value: t(J).TRANSFER,
865
865
  disabled: !t(T).locationOptionsTypeTransfer.value.length,
866
866
  sublabel: t(T).locationOptionsTypeTransfer.value.length ? void 0 : t(u)("inventory.transfer.form.noLocationAvailable")
867
867
  }
@@ -879,7 +879,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
879
879
  _: 1
880
880
  }, 8, ["label", "model-value", "items", "rules"]),
881
881
  m(q, {
882
- label: R.value === t(X).PURCHASE ? t(u)("inventory.transfer.form.purchaseFrom") : t(u)("inventory.transfer.form.transferFrom"),
882
+ label: R.value === t(J).PURCHASE ? t(u)("inventory.transfer.form.purchaseFrom") : t(u)("inventory.transfer.form.transferFrom"),
883
883
  modelValue: d.value,
884
884
  "onUpdate:modelValue": n[2] || (n[2] = (S) => d.value = S),
885
885
  items: U.value
@@ -944,7 +944,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
944
944
  e("div", bo, [
945
945
  m(A, {
946
946
  "model-value": [
947
- (J = a.modelValue.purchaseOrder.supplier) == null ? void 0 : J._id,
947
+ (Z = a.modelValue.purchaseOrder.supplier) == null ? void 0 : Z._id,
948
948
  ...a.modelValue.locations ?? []
949
949
  ].join(","),
950
950
  rules: [O]
@@ -968,7 +968,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
968
968
  "prepend-icon": "add",
969
969
  variant: "plain",
970
970
  class: "border-2 rounded-lg border-fm-color-primary",
971
- onClick: n[5] || (n[5] = (S) => Z()),
971
+ onClick: n[5] || (n[5] = (S) => X()),
972
972
  size: "md"
973
973
  }, null, 8, ["disabled", "label"])
974
974
  ]),
@@ -1007,7 +1007,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1007
1007
  }, null, 8, ["row", "errorMessage", "disabled"])
1008
1008
  ]),
1009
1009
  "list-row": P((S) => [
1010
- ($(), le(Je, {
1010
+ ($(), le(Ze, {
1011
1011
  row: S,
1012
1012
  key: t(s).purchaseOrder.items.map((H) => H.sku._id).join(".")
1013
1013
  }, {
@@ -1103,7 +1103,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1103
1103
  emits: /* @__PURE__ */ qe(["update:show", "submitted"], ["update:disabled"]),
1104
1104
  setup(p, { expose: h, emit: v }) {
1105
1105
  var w;
1106
- const a = p, r = v, s = Pt(), u = Tt(), { t: x } = me(), F = Xe(a, "show");
1106
+ const a = p, r = v, s = Pt(), u = Tt(), { t: x } = me(), F = Je(a, "show");
1107
1107
  function c() {
1108
1108
  return {
1109
1109
  _id: "",
@@ -1295,7 +1295,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1295
1295
  }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Go = { class: "fm-typo-en-body-lg-600" }, Ko = {
1296
1296
  key: 3,
1297
1297
  class: "flex flex-col gap-4"
1298
- }, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jo = { class: "fm-typo-en-body-lg-600" }, Xo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, es = { class: "flex flex-col gap-8" }, ts = { class: "fm-typo-en-body-lg-600" }, os = { class: "flex w-full gap-4" }, ss = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, ls = { class: "fm-typo-en-body-lg-600 shrink-0" }, ns = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, as = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, rs = {
1298
+ }, Xo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Zo = { class: "fm-typo-en-body-lg-600" }, Jo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, es = { class: "flex flex-col gap-8" }, ts = { class: "fm-typo-en-body-lg-600" }, os = { class: "flex w-full gap-4" }, ss = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, ls = { class: "fm-typo-en-body-lg-600 shrink-0" }, ns = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, as = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, rs = {
1299
1299
  key: 0,
1300
1300
  class: "shrink-0 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
1301
1301
  }, is = {
@@ -1318,9 +1318,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1318
1318
  ], F = Y(""), c = L(
1319
1319
  () => {
1320
1320
  var b, k, T, R;
1321
- return ((k = (b = u.value) == null ? void 0 : b.supplier) == null ? void 0 : k.internal) === "restaurant" || ((R = (T = u.value) == null ? void 0 : T.supplier) == null ? void 0 : R.internal) === "warehouse" ? X.TRANSFER : X.PURCHASE;
1321
+ return ((k = (b = u.value) == null ? void 0 : b.supplier) == null ? void 0 : k.internal) === "restaurant" || ((R = (T = u.value) == null ? void 0 : T.supplier) == null ? void 0 : R.internal) === "warehouse" ? J.TRANSFER : J.PURCHASE;
1322
1322
  }
1323
- ), o = Y(!0), f = Xe(v, "show");
1323
+ ), o = Y(!0), f = Je(v, "show");
1324
1324
  return (b, k) => {
1325
1325
  var g;
1326
1326
  const T = V("FmMenuDivider"), R = V("FmCard"), U = V("FmIcon"), d = V("FmTextField"), y = V("FmTable"), w = V("FmButton"), i = V("FmSideSheet");
@@ -1342,7 +1342,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1342
1342
  class: "flex flex-col gap-8 px-12 py-16"
1343
1343
  }, {
1344
1344
  default: P(() => {
1345
- var _, W, te, E, B, Z, l, n, C;
1345
+ var _, W, te, E, B, X, l, n, C;
1346
1346
  return [
1347
1347
  e("div", Do, [
1348
1348
  e("div", Vo, I(t(s)("inventory.transfer.template.details.templateSummary")), 1),
@@ -1371,15 +1371,15 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1371
1371
  ])) : oe("", !0),
1372
1372
  (B = (E = u.value) == null ? void 0 : E.supplier) != null && B.name ? ($(), N("div", Ho, [
1373
1373
  e("div", jo, I(t(s)("inventory.transfer.receiveRequest.details.from")), 1),
1374
- e("div", Qo, I((l = (Z = u.value) == null ? void 0 : Z.supplier) == null ? void 0 : l.name), 1)
1374
+ e("div", Qo, I((l = (X = u.value) == null ? void 0 : X.supplier) == null ? void 0 : l.name), 1)
1375
1375
  ])) : oe("", !0),
1376
1376
  (n = u.value) != null && n.ref ? ($(), N("div", Yo, [
1377
1377
  e("div", Wo, I(t(s)("inventory.transfer.receiveRequest.details.reference")), 1),
1378
1378
  e("div", Go, I(u.value.ref), 1)
1379
1379
  ])) : oe("", !0),
1380
1380
  (C = u.value) != null && C.remark ? ($(), N("div", Ko, [
1381
- e("div", Zo, I(t(s)("inventory.transfer.receiveRequest.details.remark")), 1),
1382
- e("div", Jo, I(u.value.remark), 1)
1381
+ e("div", Xo, I(t(s)("inventory.transfer.receiveRequest.details.remark")), 1),
1382
+ e("div", Zo, I(u.value.remark), 1)
1383
1383
  ])) : oe("", !0)
1384
1384
  ])
1385
1385
  ];
@@ -1387,7 +1387,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1387
1387
  _: 1
1388
1388
  })
1389
1389
  ]),
1390
- e("div", Xo, [
1390
+ e("div", Jo, [
1391
1391
  e("div", es, [
1392
1392
  e("div", ts, I(t(s)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
1393
1393
  ($(!0), N(pe, null, je(((O = u.value) == null ? void 0 : O.items) ?? [], (_) => ($(), N("div", {
@@ -1456,7 +1456,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1456
1456
  }), cs = { class: "flex-1 flex flex-col gap-8" }, fs = { class: "flex flex-col" }, ys = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vs = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, bs = { class: "fm-typo-en-body-lg-400" }, gs = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, hs = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Os = /* @__PURE__ */ ae({
1457
1457
  __name: "TransferTemplateView",
1458
1458
  setup(p) {
1459
- const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = wt(), { loading: c, templates: o } = He(F), f = Y(!1), b = gt(), k = Ze(), { breakpoints: T } = Ct();
1459
+ const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = wt(), { loading: c, templates: o } = He(F), f = Y(!1), b = gt(), k = Xe(), { breakpoints: T } = Ct();
1460
1460
  Te(F.fetchTemplates);
1461
1461
  const R = L(
1462
1462
  () => f.value || c.value || !k._currentLocation
@@ -1535,18 +1535,18 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1535
1535
  "page-size": w.value
1536
1536
  }, {
1537
1537
  "list-row": P((E) => [
1538
- m(Je, {
1538
+ m(Ze, {
1539
1539
  row: E,
1540
1540
  onRowClick: (B) => t(a)(B)
1541
1541
  }, {
1542
1542
  default: P((B) => {
1543
- var Z, l, n, C, q, z, G, D, A, K, J, S, H, ie, Fe, Se, Ie, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Pe;
1543
+ var X, l, n, C, q, z, G, D, A, K, Z, S, H, ie, Fe, Se, Ie, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Pe;
1544
1544
  return [
1545
1545
  e("div", cs, [
1546
1546
  e("div", fs, [
1547
1547
  e("div", ys, [
1548
1548
  m(t(ee), {
1549
- render: (n = (l = (Z = B._id) == null ? void 0 : Z.column) == null ? void 0 : l.columnDef) == null ? void 0 : n.cell,
1549
+ render: (n = (l = (X = B._id) == null ? void 0 : X.column) == null ? void 0 : l.columnDef) == null ? void 0 : n.cell,
1550
1550
  props: (q = (C = B._id) == null ? void 0 : C.getContext) == null ? void 0 : q.call(C)
1551
1551
  }, null, 8, ["render", "props"])
1552
1552
  ]),
@@ -1558,7 +1558,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1558
1558
  ]),
1559
1559
  e("div", bs, [
1560
1560
  m(t(ee), {
1561
- render: (H = (S = (J = B.supplier) == null ? void 0 : J.column) == null ? void 0 : S.columnDef) == null ? void 0 : H.cell,
1561
+ render: (H = (S = (Z = B.supplier) == null ? void 0 : Z.column) == null ? void 0 : S.columnDef) == null ? void 0 : H.cell,
1562
1562
  props: (Fe = (ie = B.supplier) == null ? void 0 : ie.getContext) == null ? void 0 : Fe.call(ie)
1563
1563
  }, null, 8, ["render", "props"])
1564
1564
  ]),