@feedmepos/mf-inventory-portal 1.2.1 → 1.2.2-5.dev-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/App-DMkUg806.js +297 -0
  2. package/dist/{ApprovalView-DwRrbVDo.js → ApprovalView-DWJh2K6W.js} +65 -64
  3. package/dist/{BindingsDialog-DUVKv10-.js → BindingsDialog-EmHCvqJI.js} +2 -2
  4. package/dist/{BindingsPicker-Daib_iq4.js → BindingsPicker-h_9jm1s0.js} +3 -3
  5. package/dist/{BindingsTable-Bv9UmcJP.js → BindingsTable-BAVWGUoa.js} +1 -1
  6. package/dist/ClosingDraftView-Du4kOwIg.js +1899 -0
  7. package/dist/ClosingHistoryView-DuW2Vtrs.js +355 -0
  8. package/dist/ClosingTemplateView-CfPY8R5M.js +2001 -0
  9. package/dist/{DeliveryOrderPrintPreview-DZPcRAja.js → DeliveryOrderPrintPreview-C6Cj8mOp.js} +9 -9
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-WWIrybw_.js +230 -0
  11. package/dist/{FmMultiselectDialog-CZmwOkrb.js → FmMultiselectDialog-BzWrQOS4.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C-2V2bGc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DwqVRUFz.js} +36 -36
  13. package/dist/ImportView-lKlYeLay.js +1291 -0
  14. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BGnoF1Zz.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-_2WZMZU2.js} +5 -5
  15. package/dist/{IngredientGroupView-CAVYpEj3.js → IngredientGroupView-CrmwR2Xt.js} +34 -35
  16. package/dist/IngredientsView-1bAsyz-b.js +2254 -0
  17. package/dist/{IntegrationView-DdLFyZ4H.js → IntegrationView-D16qeEc_.js} +1773 -1635
  18. package/dist/{InventoryBindingForm-C7BdEDtM.js → InventoryBindingForm-BRwOXV_P.js} +1 -1
  19. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7DND2dQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-NDbtbtqK.js} +28 -28
  20. package/dist/{InventoryBindingSummary-IZ7F-Lti.js → InventoryBindingSummary-DKM2gX8_.js} +1 -1
  21. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-sgqVSlUB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdaiYTdf.js} +4 -4
  22. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DeF32bHu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B0OKeK5O.js} +7 -7
  23. package/dist/{PublishView-DkgfYneI.js → PublishView-D0NnU22l.js} +73 -63
  24. package/dist/{PurchaseOrderPrintPreview-CltLC4o4.js → PurchaseOrderPrintPreview-BmuwNbeL.js} +4 -4
  25. package/dist/{ReceiveRequestView-Dj7ji0DY.js → ReceiveRequestView-j79m7TKk.js} +343 -333
  26. package/dist/RecipeView-D_fNQQ-C.js +636 -0
  27. package/dist/StockView-DX_xeFBT.js +2385 -0
  28. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bg49isUy.js +172 -0
  29. package/dist/{SupplierView-DE_M_9kd.js → SupplierView-DuFTqbOg.js} +1193 -1073
  30. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-c428GXwc.js +3233 -0
  31. package/dist/{TransferTemplateView-gWGBCF3u.js → TransferTemplateView-Ccsfcetz.js} +104 -103
  32. package/dist/UnitView-BklpNsFN.js +674 -0
  33. package/dist/WarehouseView-BrURbU67.js +1066 -0
  34. package/dist/api/adjustment-template.d.ts +1 -0
  35. package/dist/api/bill.d.ts +140 -2
  36. package/dist/api/closing-template.d.ts +1 -0
  37. package/dist/api/closing.d.ts +1 -0
  38. package/dist/api/inventory.d.ts +405 -0
  39. package/dist/api/netsuite.d.ts +5 -1
  40. package/dist/api/purchase-order-template.d.ts +1 -0
  41. package/dist/api/purchase-order.d.ts +3 -0
  42. package/dist/api/shipment.d.ts +11 -0
  43. package/dist/api/stock.d.ts +2 -44
  44. package/dist/api/warehouse.d.ts +3 -1
  45. package/dist/{app-CruHLH1e.js → app-a9r50k3U.js} +68551 -67573
  46. package/dist/app.d.ts +643 -15
  47. package/dist/app.js +6 -6
  48. package/dist/components/FmAdminBadge.vue.d.ts +1 -4
  49. package/dist/components/FmEnhancedSelect.vue.d.ts +30 -0
  50. package/dist/components/FmInventoryTableToolbar.vue.d.ts +16 -2
  51. package/dist/components/FmLockableField.vue.d.ts +3 -0
  52. package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
  53. package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +2 -0
  54. package/dist/composable/defineApi.d.ts +1 -1
  55. package/dist/composable/useIframe.d.ts +2 -2
  56. package/dist/{decimal-izbvCC1j.js → decimal-AusUnA1W.js} +1 -1
  57. package/dist/{format-unit-display-4SAdfyZB.js → format-unit-display-BqkHL-ph.js} +397 -429
  58. package/dist/helper/array.d.ts +1 -0
  59. package/dist/helper/core/country/utils.d.ts +3 -4
  60. package/dist/helper/country.d.ts +6 -255
  61. package/dist/helper/number.d.ts +1 -0
  62. package/dist/import-export.helper-PIyNeHfa.js +238 -0
  63. package/dist/{index-B6GGthLw.js → index-CjxirPvn.js} +283 -268
  64. package/dist/{index-CnQloOEo.js → index-Dj9-pdT9.js} +1 -1
  65. package/dist/layout/SingleColumnLayout.vue.d.ts +6 -3
  66. package/dist/purchase-order-template-CQikvY1p.js +41 -0
  67. package/dist/router/name.d.ts +2 -0
  68. package/dist/stock-CDZ2uWSF.js +83 -0
  69. package/dist/stock-Dw908dIC.js +74 -0
  70. package/dist/stores/feature.d.ts +12 -0
  71. package/dist/stores/integration/netsuite.d.ts +42 -0
  72. package/dist/stores/inventory.d.ts +28 -199
  73. package/dist/stores/location.d.ts +331 -1
  74. package/dist/stores/supplier.d.ts +96 -0
  75. package/dist/stores/warehouse.d.ts +4 -0
  76. package/dist/style.css +1 -1
  77. package/dist/{supplier-CTVE1lHO.js → supplier-BPPBUudN.js} +1 -1
  78. package/dist/tsconfig.app.tsbuildinfo +1 -1
  79. package/dist/{use-ingredient-select-dialog-CM80TfX0.js → use-ingredient-select-dialog-C_fSKN3_.js} +5 -5
  80. package/dist/{use-inventory-binding-dialog-D_omdhgn.js → use-inventory-binding-dialog-ClAkJ864.js} +8 -8
  81. package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -0
  82. package/dist/views/adjustment-template/wastage-template/table.d.ts +60 -0
  83. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +56 -0
  84. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +3 -3
  85. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +468 -0
  86. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +9 -2
  87. package/dist/views/closing-history/ClosingHistoryView.vue.d.ts +2 -0
  88. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +4 -1
  89. package/dist/views/closing-template/helpers/import-export.helper.d.ts +5 -0
  90. package/dist/views/import/ImportView.vue.d.ts +3 -0
  91. package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
  92. package/dist/views/import/helper/import-export.helper.d.ts +4 -0
  93. package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +1 -1
  94. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +181 -12
  95. package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +6 -0
  96. package/dist/views/ingredients/helper/import-export.helper.d.ts +4 -1
  97. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
  98. package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +16 -0
  99. package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +4 -0
  100. package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +16 -0
  101. package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +4 -0
  102. package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +21 -0
  103. package/dist/views/receive-request/components/netsuite/NetSuiteTransactionChangeLog.vue.d.ts +15 -0
  104. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  105. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +420 -2
  106. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +99 -0
  107. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +644 -13
  108. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +711 -14
  109. package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
  110. package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
  111. package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
  112. package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
  113. package/dist/views/stock/components/StockRecordCard.vue.d.ts +70 -1
  114. package/dist/views/stock/components/dialog/RecalculationDialog.vue.d.ts +11 -0
  115. package/dist/views/stock/components/dialog/RecalculationDialogProps.d.ts +3 -0
  116. package/dist/views/stock/components/dialog/StockAdjustmentSideSheet.vue.d.ts +20 -0
  117. package/dist/views/supplier/components/SupplierForm.vue.d.ts +8 -0
  118. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
  119. package/dist/views/supplier/composables/use-supplier-table.d.ts +4 -0
  120. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -0
  121. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
  122. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -0
  123. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
  124. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
  125. package/dist/views/unit/UnitView.vue.d.ts +1 -0
  126. package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
  127. package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
  128. package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
  129. package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
  130. package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
  131. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -0
  132. package/package.json +3 -3
  133. package/dist/App-BqaRC0Sb.js +0 -276
  134. package/dist/ClosingDraftView-sJ_zRPeo.js +0 -1687
  135. package/dist/ClosingTemplateView-cNgXHq1r.js +0 -1908
  136. package/dist/FmAdminBadge-oCnz8SW6.js +0 -34
  137. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BKR8C4p_.js +0 -224
  138. package/dist/IngredientsView-CHHeAJH_.js +0 -1858
  139. package/dist/RecipeView-BukmKdVG.js +0 -621
  140. package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
  141. package/dist/StockView-wxRCw_w-.js +0 -2087
  142. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-eqUOnJoM.js +0 -2336
  143. package/dist/UnitView-BgwDmGZo.js +0 -667
  144. package/dist/WarehouseView-BdccenhO.js +0 -1034
  145. package/dist/array-Ca8T3f_G.js +0 -44
  146. package/dist/helper/core/country/codes.d.ts +0 -255
  147. package/dist/stock-BJP5BB5b.js +0 -146
@@ -1,13 +1,14 @@
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 U, renderSlot as xe, withDirectives as Pe, 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 { K as We, aJ as he, t as Ne, I as it, aK as ut, aL as dt, j as se, aM as mt, b as Ke, a as Ge, Q as Le, c as ge, m as ke, Y as be, T as ye, A as we, M as pt, G as ee, u as Je, an as ct, a0 as ft, E as Ze, e as ue, aN as ve, ai as yt, s as vt, aa as bt, B as gt, i as Ee, _ as ht, C as xt } from "./app-CruHLH1e.js";
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 M, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as U, renderSlot as xe, withDirectives as Pe, 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 { Q as We, aT as he, t as Ne, P as it, aU as ut, aV as dt, n as se, aW as mt, b as Ge, a as Ke, $ as Le, c as ge, r as ke, z as be, a0 as ye, A as we, M as pt, L as ee, u as Je, au as ct, a6 as ft, K as Ze, e as ue, B as ve, an as yt, Y as vt, af as bt, G as gt, j as Ee, I as ht, J as xt } from "./app-a9r50k3U.js";
3
3
  import { useI18n as me } from "@feedmepos/mf-common";
4
- import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-4SAdfyZB.js";
5
- import { components as de, useSnackbar as Ct, useProxiedModel as Xe, useBreakpoints as Ft } from "@feedmepos/ui-library";
6
- import { defineStore as St, storeToRefs as He } from "pinia";
7
- import { _ as It, b as Mt, F as $t, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-C-2V2bGc.js";
8
- import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BKR8C4p_.js";
9
- import { u as Rt } from "./supplier-CTVE1lHO.js";
10
- import { u as Ut } from "./use-ingredient-select-dialog-CM80TfX0.js";
4
+ import { P as X, f as _t, t as kt, a as ze, u as wt } from "./format-unit-display-BqkHL-ph.js";
5
+ import { components as de, useSnackbar as Tt, useProxiedModel as Xe, useBreakpoints as Ct } from "@feedmepos/ui-library";
6
+ import { defineStore as Ft, storeToRefs as He } from "pinia";
7
+ import { _ as St, b as It, F as $t, a as Mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DwqVRUFz.js";
8
+ import { c as Ot, u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-WWIrybw_.js";
9
+ import { u as At } from "./supplier-BPPBUudN.js";
10
+ import { u as Rt } from "./use-ingredient-select-dialog-C_fSKN3_.js";
11
+ import { u as Ut } from "./purchase-order-template-CQikvY1p.js";
11
12
  const Pt = { 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({
12
13
  __name: "FmMinMaxInput",
13
14
  props: {
@@ -68,13 +69,13 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
68
69
  Ce([u, x], ([d, y]) => {
69
70
  const w = v ?? {}, i = a(d), g = a(y), O = r.value;
70
71
  if (d !== "" && i === !0) {
71
- const M = Ne(+d, O);
72
- w.min = M;
72
+ const $ = Ne(+d, O);
73
+ w.min = $;
73
74
  } else
74
75
  w.min = null;
75
76
  if (y !== "" && g === !0) {
76
- const M = Ne(+y, O);
77
- w.max = M;
77
+ const $ = Ne(+y, O);
78
+ w.max = $;
78
79
  } else
79
80
  w.max = null;
80
81
  v.min = w.min, v.max = w.max;
@@ -89,7 +90,7 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
89
90
  ], ...h.rules ?? []]);
90
91
  return (d, y) => {
91
92
  const w = V("FmLabel"), i = V("FmField"), g = V("FmFormGroup");
92
- return $(), N("div", Pt, [
93
+ return M(), N("div", Pt, [
93
94
  e("div", Bt, [
94
95
  e("div", qt, [
95
96
  m(w, {
@@ -175,8 +176,8 @@ function Qt(p) {
175
176
  return !s && !u ? `Min & max must be a multiple of ${v}` : s ? u ? !0 : `Max must be a multiple of ${v}` : `Min must be a multiple of ${v}`;
176
177
  };
177
178
  }
178
- const et = St("netsuite-custom-field-helper", () => {
179
- const p = Ke();
179
+ const et = Ft("netsuite-custom-field-helper", () => {
180
+ const p = Ge();
180
181
  function h(v, a, r, s, u) {
181
182
  var F;
182
183
  if (!r) {
@@ -201,12 +202,12 @@ const et = St("netsuite-custom-field-helper", () => {
201
202
  });
202
203
  var Q = /* @__PURE__ */ ((p) => (p.Code = "Code", p.Name = "Name", p.DefaultAmount = "DefaultAmount", p.Limit = "Limit", p.Step = "Step", p.Cost = "Cost", p.Delete = "Delete", p))(Q || {});
203
204
  function Yt(p, h = {}) {
204
- const { t: v } = me(), a = Ge(), r = ge(), s = st({}), u = et();
205
+ const { t: v } = me(), a = Ke(), r = ge(), s = st({}), u = et();
205
206
  Te(() => {
206
207
  for (const c of p.items) {
207
208
  if (!c.totalCost)
208
209
  continue;
209
- const { cost: o } = Dt(
210
+ const { cost: o } = Ot(
210
211
  c.sku,
211
212
  c.quantity,
212
213
  c.measurement,
@@ -291,7 +292,7 @@ function Yt(p, h = {}) {
291
292
  var d;
292
293
  return ((d = o.measurement) == null ? void 0 : d.id) === P.id;
293
294
  }), T = o.sku.unit._id !== f.unit._id || !b || o.measurement && !k;
294
- return j(It, {
295
+ return j(St, {
295
296
  style: {
296
297
  flex: "1 1 0%"
297
298
  },
@@ -319,7 +320,7 @@ function Yt(p, h = {}) {
319
320
  );
320
321
  },
321
322
  rules: [
322
- Mt(o.quantityStep),
323
+ It(o.quantityStep),
323
324
  ...+se(o.quantity) ? [
324
325
  $t(
325
326
  +se(
@@ -331,7 +332,7 @@ function Yt(p, h = {}) {
331
332
  )
332
333
  )
333
334
  ] : [],
334
- Ot(
335
+ Mt(
335
336
  o.maximumQuantity ? +se(o.maximumQuantity) : 1 / 0
336
337
  ),
337
338
  function(d) {
@@ -492,7 +493,7 @@ function Yt(p, h = {}) {
492
493
  })
493
494
  };
494
495
  }
495
- const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-center" }, Gt = { class: "flex-1 flex gap-1 items-center" }, Jt = { 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" }, 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" }, Jt = { 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" }, 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
497
  key: 0,
497
498
  class: "flex gap-8 w-full"
498
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({
@@ -507,11 +508,11 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
507
508
  return a;
508
509
  }
509
510
  return (a, r) => {
510
- var u, x, F, c, o, f, b, k, T, R, P, d, y, w, i, g, O, M, _, W, te, E, B, J, l, n, C, q, z, K;
511
+ var u, x, F, c, o, f, b, k, T, R, P, d, y, w, i, g, O, $, _, W, te, E, B, J, l, n, C, q, z, G;
511
512
  const s = V("FmLabel");
512
- return $(), N("div", Wt, [
513
- e("div", Kt, [
514
- e("div", Gt, [
513
+ return M(), N("div", Wt, [
514
+ e("div", Gt, [
515
+ e("div", Kt, [
515
516
  e("span", Jt, " (" + I(a.row.original.sku.code) + ") ", 1),
516
517
  e("span", Zt, I(a.row.original.sku.name), 1)
517
518
  ]),
@@ -544,13 +545,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
544
545
  r[1] || (r[1] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
545
546
  ])
546
547
  ]),
547
- a.row.original ? ($(), N("div", oo, [
548
+ a.row.original ? (M(), N("div", oo, [
548
549
  e("div", so, [
549
550
  m(s, {
550
551
  label: t(h)(`inventory.transfer.form.items.table.${t(Q).DefaultAmount}`)
551
552
  }, null, 8, ["label"]),
552
553
  m(t(ee), {
553
- render: (M = (O = (g = a.cellByColId[t(Q).DefaultAmount]) == null ? void 0 : g.column) == null ? void 0 : O.columnDef) == null ? void 0 : M.cell,
554
+ render: ($ = (O = (g = a.cellByColId[t(Q).DefaultAmount]) == null ? void 0 : g.column) == null ? void 0 : O.columnDef) == null ? void 0 : $.cell,
554
555
  props: (W = (_ = a.cellByColId[t(Q).DefaultAmount]) == null ? void 0 : _.getContext) == null ? void 0 : W.call(_)
555
556
  }, null, 8, ["render", "props"]),
556
557
  r[2] || (r[2] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
@@ -573,7 +574,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
573
574
  }, null, 8, ["label"]),
574
575
  m(t(ee), {
575
576
  render: (q = (C = (n = a.cellByColId[t(Q).Limit]) == null ? void 0 : n.column) == null ? void 0 : C.columnDef) == null ? void 0 : q.cell,
576
- props: (K = (z = a.cellByColId[t(Q).Limit]) == null ? void 0 : z.getContext) == null ? void 0 : K.call(z)
577
+ props: (G = (z = a.cellByColId[t(Q).Limit]) == null ? void 0 : z.getContext) == null ? void 0 : G.call(z)
577
578
  }, null, 8, ["render", "props"]),
578
579
  r[4] || (r[4] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
579
580
  ])
@@ -593,14 +594,14 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
593
594
  function h(v) {
594
595
  return v.column.columnDef.meta;
595
596
  }
596
- return (v, a) => ($(), N(pe, null, [
597
+ return (v, a) => (M(), N(pe, null, [
597
598
  e("tr", {
598
599
  class: "hover:bg-fm-color-opacity-sm border-b border-fm-color-neutral-gray-100",
599
600
  style: _e({ backgroundColor: v.errorMessage ? "#ffd6d6" : void 0 })
600
601
  }, [
601
- ($(!0), N(pe, null, je(v.row.getVisibleCells(), (r) => {
602
+ (M(!0), N(pe, null, je(v.row.getVisibleCells(), (r) => {
602
603
  var s, u, x, F, c;
603
- return $(), N("td", {
604
+ return M(), N("td", {
604
605
  key: r.id,
605
606
  class: re(["text-fm-color-typo-primary", ((s = h(r)) == null ? void 0 : s.cellClass) ?? "px-16", "py-2"]),
606
607
  style: _e({
@@ -618,7 +619,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
618
619
  ], 6);
619
620
  }), 128))
620
621
  ], 4),
621
- v.errorMessage ? ($(), N("tr", uo, [
622
+ v.errorMessage ? (M(), N("tr", uo, [
622
623
  e("td", {
623
624
  colspan: v.row.getVisibleCells().length,
624
625
  class: "text-red-600 px-16 py-2"
@@ -637,7 +638,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
637
638
  },
638
639
  emits: ["update:disabled"],
639
640
  setup(p, { expose: h, emit: v }) {
640
- const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F = Je(), c = Ge(), o = Rt(), f = ge(), b = Ke(), k = et();
641
+ const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F = Je(), c = Ke(), o = At(), f = ge(), b = Ge(), k = et();
641
642
  Ce(
642
643
  () => s.purchaseOrder.items.length,
643
644
  () => {
@@ -646,7 +647,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
646
647
  ), F.watchLocation(async () => {
647
648
  location && (s.purchaseOrder.supplier || (s.purchaseOrder.supplier = o.suppliers.find((l) => l) ?? s.purchaseOrder.supplier));
648
649
  });
649
- const T = Vt(
650
+ const T = Dt(
650
651
  () => s.purchaseOrder,
651
652
  (l) => {
652
653
  s.purchaseOrder = {
@@ -701,7 +702,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
701
702
  return ((q = C.doc) == null ? void 0 : q._id) === ((z = s.purchaseOrder.supplier) == null ? void 0 : z._id);
702
703
  }) ? `Location ${(n = s.purchaseOrder.supplier) == null ? void 0 : n.name} must be removed because template cannot be used to transfer to itself.` : !0;
703
704
  }
704
- const M = L({
705
+ const $ = L({
705
706
  get() {
706
707
  return s.purchaseOrder.remark ?? void 0;
707
708
  },
@@ -772,7 +773,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
772
773
  });
773
774
  }
774
775
  })
775
- ), E = L(() => te.columnDefs.value), { promptSelectIngredients: B } = Ut();
776
+ ), E = L(() => te.columnDefs.value), { promptSelectIngredients: B } = Rt();
776
777
  async function J() {
777
778
  const n = c.skus.map((D) => ({
778
779
  label: D.name,
@@ -780,13 +781,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
780
781
  value: D
781
782
  })).filter((D) => {
782
783
  var A;
783
- return (A = s.purchaseOrder.items) == null ? void 0 : A.find((G) => G.sku._id === D.value._id);
784
+ return (A = s.purchaseOrder.items) == null ? void 0 : A.find((K) => K.sku._id === D.value._id);
784
785
  }).map((D) => D.value), C = s.purchaseOrder.items ?? [], q = await B(
785
786
  n.map((D) => D._id),
786
787
  (D) => {
787
- const A = c.skuById[D], G = C.find((H) => H.sku._id === A._id);
788
- if (G)
789
- return G;
788
+ const A = c.skuById[D], K = C.find((H) => H.sku._id === A._id);
789
+ if (K)
790
+ return K;
790
791
  const Z = { amount: 1, precision: be(A.unit) };
791
792
  let S = {
792
793
  id: f.usePurchaseOrderV2 ? crypto.randomUUID() : void 0,
@@ -815,21 +816,21 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
815
816
  }
816
817
  );
817
818
  if (!q) return;
818
- const z = q.map((D) => D.sku._id), K = [];
819
+ const z = q.map((D) => D.sku._id), G = [];
819
820
  for (const D of z) {
820
- const A = C.filter((G) => G.sku._id === D);
821
+ const A = C.filter((K) => K.sku._id === D);
821
822
  if (A.length > 0)
822
- K.push(...A);
823
+ G.push(...A);
823
824
  else {
824
- const G = q.find((Z) => Z.sku._id === D);
825
- G && K.push(G);
825
+ const K = q.find((Z) => Z.sku._id === D);
826
+ K && G.push(K);
826
827
  }
827
828
  }
828
- K.sort((D, A) => D.sku.code.localeCompare(A.sku.code)), s.purchaseOrder.items = K;
829
+ G.sort((D, A) => D.sku.code.localeCompare(A.sku.code)), s.purchaseOrder.items = G;
829
830
  }
830
831
  return (l, n) => {
831
- const C = V("FmTextField"), q = V("FmSelect"), z = V("FmTextarea"), K = V("FmButton"), D = V("FmTable"), A = V("FmFormGroup"), G = V("FmForm");
832
- return $(), le(G, {
832
+ const C = V("FmTextField"), q = V("FmSelect"), z = V("FmTextarea"), G = V("FmButton"), D = V("FmTable"), A = V("FmFormGroup"), K = V("FmForm");
833
+ return M(), le(K, {
833
834
  ref_key: "formRef",
834
835
  ref: _,
835
836
  class: "flex flex-col gap-32",
@@ -886,7 +887,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
886
887
  "menu-wrapper": U((S) => {
887
888
  var H;
888
889
  return [
889
- m(At, Qe(S, {
890
+ m(Vt, Qe(S, {
890
891
  items: P.value,
891
892
  "model-value": (H = l.modelValue.purchaseOrder.supplier) == null ? void 0 : H._id
892
893
  }), null, 16, ["items", "model-value"])
@@ -915,8 +916,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
915
916
  label: t(u)("inventory.transfer.form.remark"),
916
917
  "label-mark": "optional",
917
918
  "max-length": 240,
918
- modelValue: M.value,
919
- "onUpdate:modelValue": n[4] || (n[4] = (S) => M.value = S),
919
+ modelValue: $.value,
920
+ "onUpdate:modelValue": n[4] || (n[4] = (S) => $.value = S),
920
921
  class: re({ "text-fm-color-typo-disabled": l.disabled })
921
922
  }, null, 8, ["label", "modelValue", "class"])
922
923
  ])
@@ -924,7 +925,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
924
925
  e("div", yo, [
925
926
  e("div", vo, [
926
927
  n[8] || (n[8] = e("div", { class: "flex-1 fm-typo-en-title-sm-600" }, "Locations", -1)),
927
- m(K, {
928
+ m(G, {
928
929
  disabled: l.disabled,
929
930
  label: "Select location",
930
931
  "prepend-icon": "add",
@@ -953,7 +954,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
953
954
  e("div", go, [
954
955
  e("div", ho, [
955
956
  e("div", xo, I(t(u)("inventory.transfer.form.items.title")), 1),
956
- t(b).isEnabled ? ($(), le(K, {
957
+ t(b).isEnabled ? (M(), le(G, {
957
958
  key: 0,
958
959
  label: "Check NetSuite",
959
960
  "prepend-icon": "troubleshoot",
@@ -961,7 +962,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
961
962
  onClick: y,
962
963
  size: "md"
963
964
  })) : oe("", !0),
964
- m(K, {
965
+ m(G, {
965
966
  disabled: l.disabled,
966
967
  label: t(u)("inventory.transfer.form.items.addItem"),
967
968
  "prepend-icon": "add",
@@ -971,7 +972,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
971
972
  size: "md"
972
973
  }, null, 8, ["disabled", "label"])
973
974
  ]),
974
- t(b).isEnabled ? ($(), N("div", _o, n[9] || (n[9] = [
975
+ t(b).isEnabled ? (M(), N("div", _o, n[9] || (n[9] = [
975
976
  ne(" NetSuite is enabled. "),
976
977
  e("ul", { style: { "list-style": "initial", "margin-left": "20px" } }, [
977
978
  e("li", null, ' When adding new item or changing UOM, the first match available custom code (if any) will be applied to "Code" for each item by default. '),
@@ -990,7 +991,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
990
991
  ]),
991
992
  n[13] || (n[13] = e("p", null, ' You can leave "Max" empty to remove the limit on the maximum quantity of the item when creating an order request. ', -1))
992
993
  ]),
993
- ($(), le(D, {
994
+ (M(), le(D, {
994
995
  "column-defs": E.value,
995
996
  "row-data": t(s).purchaseOrder.items,
996
997
  key: t(s).purchaseOrder.items.map((S) => S.sku._id).join("."),
@@ -1006,7 +1007,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1006
1007
  }, null, 8, ["row", "errorMessage", "disabled"])
1007
1008
  ]),
1008
1009
  "list-row": U((S) => [
1009
- ($(), le(Ze, {
1010
+ (M(), le(Ze, {
1010
1011
  row: S,
1011
1012
  key: t(s).purchaseOrder.items.map((H) => H.sku._id).join(".")
1012
1013
  }, {
@@ -1050,7 +1051,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1050
1051
  }
1051
1052
  return (u, x) => {
1052
1053
  const F = V("FmButton"), c = V("FmDialog");
1053
- return $(), N("div", null, [
1054
+ return M(), N("div", null, [
1054
1055
  m(F, {
1055
1056
  label: v.label,
1056
1057
  loading: v.loading,
@@ -1089,7 +1090,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1089
1090
  ]);
1090
1091
  };
1091
1092
  }
1092
- }), So = { class: "flex items-center" }, Io = { class: "fm-typo-en-title-md-800" }, Mo = { class: "flex gap-4" }, $o = /* @__PURE__ */ ae({
1093
+ }), So = { class: "flex items-center" }, Io = { class: "fm-typo-en-title-md-800" }, $o = { class: "flex gap-4" }, Mo = /* @__PURE__ */ ae({
1093
1094
  __name: "TransferTemplateDialog",
1094
1095
  props: /* @__PURE__ */ qe({
1095
1096
  mode: {},
@@ -1102,7 +1103,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1102
1103
  emits: /* @__PURE__ */ qe(["update:show", "submitted"], ["update:disabled"]),
1103
1104
  setup(p, { expose: h, emit: v }) {
1104
1105
  var w;
1105
- const a = p, r = v, s = _t(), u = Ct(), { t: x } = me(), F = Xe(a, "show");
1106
+ const a = p, r = v, s = Ut(), u = Tt(), { t: x } = me(), F = Xe(a, "show");
1106
1107
  function c() {
1107
1108
  return {
1108
1109
  _id: "",
@@ -1171,20 +1172,20 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1171
1172
  const i = o.value;
1172
1173
  if (i) {
1173
1174
  b.value = !0, (((g = i.purchaseOrder.supplier) == null ? void 0 : g.internal) === ve.enum.warehouse || ((O = i.purchaseOrder.supplier) == null ? void 0 : O.internal) === ve.enum.restaurant) && (i.purchaseOrder.items = i.purchaseOrder.items.map(
1174
- ({ totalCost: M, ..._ }) => _
1175
+ ({ totalCost: $, ..._ }) => _
1175
1176
  ));
1176
1177
  try {
1177
- await s.createTemplate(i), await new Promise((M) => setTimeout(M, 1e3)), u.open({
1178
+ await s.createTemplate(i), await new Promise(($) => setTimeout($, 1e3)), u.open({
1178
1179
  title: x("inventory.transfer.template.create.success"),
1179
1180
  message: x("inventory.transfer.template.create.successMessage"),
1180
1181
  type: "success"
1181
1182
  }), r("update:show", !1), r("submitted");
1182
- } catch (M) {
1183
+ } catch ($) {
1183
1184
  u.open({
1184
1185
  title: x("inventory.transfer.template.create.error"),
1185
1186
  message: x("inventory.transfer.template.create.errorMessage"),
1186
1187
  type: "error"
1187
- }), console.error("Error in creating transfer template", M);
1188
+ }), console.error("Error in creating transfer template", $);
1188
1189
  } finally {
1189
1190
  b.value = !1;
1190
1191
  }
@@ -1195,20 +1196,20 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1195
1196
  const i = o.value;
1196
1197
  if (i) {
1197
1198
  b.value = !0, (((g = i.purchaseOrder.supplier) == null ? void 0 : g.internal) === ve.enum.warehouse || ((O = i.purchaseOrder.supplier) == null ? void 0 : O.internal) === ve.enum.restaurant) && (i.purchaseOrder.items = i.purchaseOrder.items.map(
1198
- ({ totalCost: M, ..._ }) => _
1199
+ ({ totalCost: $, ..._ }) => _
1199
1200
  ));
1200
1201
  try {
1201
- await s.updateTemplate(i), await new Promise((M) => setTimeout(M, 1e3)), u.open({
1202
+ await s.updateTemplate(i), await new Promise(($) => setTimeout($, 1e3)), u.open({
1202
1203
  title: x("inventory.transfer.template.update.success"),
1203
1204
  message: x("inventory.transfer.template.update.successMessage"),
1204
1205
  type: "success"
1205
1206
  }), r("update:show", !1), r("submitted");
1206
- } catch (M) {
1207
+ } catch ($) {
1207
1208
  u.open({
1208
1209
  title: x("inventory.transfer.template.update.error"),
1209
1210
  message: x("inventory.transfer.template.update.errorMessage"),
1210
1211
  type: "error"
1211
- }), console.error("Error in updating transfer template", M);
1212
+ }), console.error("Error in updating transfer template", $);
1212
1213
  } finally {
1213
1214
  b.value = !1;
1214
1215
  }
@@ -1227,8 +1228,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1227
1228
  (g = (i = T.value) == null ? void 0 : i.validateInputs) == null || g.call(i);
1228
1229
  }
1229
1230
  return (i, g) => {
1230
- const O = V("FmButton"), M = V("FmSideSheet");
1231
- return $(), le(M, {
1231
+ const O = V("FmButton"), $ = V("FmSideSheet");
1232
+ return M(), le($, {
1232
1233
  modelValue: t(F),
1233
1234
  "onUpdate:modelValue": g[3] || (g[3] = (_) => Ye(F) ? F.value = _ : null),
1234
1235
  "dismiss-away": "",
@@ -1241,7 +1242,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1241
1242
  ])
1242
1243
  ]),
1243
1244
  default: U(() => [
1244
- ($(), le(To, {
1245
+ (M(), le(To, {
1245
1246
  class: "w-full",
1246
1247
  ref_key: "formRef",
1247
1248
  ref: T,
@@ -1254,7 +1255,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1254
1255
  }, null, 8, ["model-value", "disabled"]))
1255
1256
  ]),
1256
1257
  "side-sheet-footer": U(() => [
1257
- e("div", Mo, [
1258
+ e("div", $o, [
1258
1259
  m(Fo, {
1259
1260
  loading: b.value,
1260
1261
  label: t(x)("common.save"),
@@ -1291,7 +1292,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1291
1292
  }, jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qo = { class: "fm-typo-en-body-lg-600" }, Yo = {
1292
1293
  key: 2,
1293
1294
  class: "flex flex-col gap-4"
1294
- }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ko = { class: "fm-typo-en-body-lg-600" }, Go = {
1295
+ }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Go = { class: "fm-typo-en-body-lg-600" }, Ko = {
1295
1296
  key: 3,
1296
1297
  class: "flex flex-col gap-4"
1297
1298
  }, Jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Zo = { 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 = {
@@ -1323,7 +1324,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1323
1324
  return (b, k) => {
1324
1325
  var g;
1325
1326
  const T = V("FmMenuDivider"), R = V("FmCard"), P = V("FmIcon"), d = V("FmTextField"), y = V("FmTable"), w = V("FmButton"), i = V("FmSideSheet");
1326
- return $(), le(i, {
1327
+ return M(), le(i, {
1327
1328
  header: t(s)("inventory.transfer.template.details.view", { template: (g = b.template) == null ? void 0 : g.name }),
1328
1329
  modelValue: t(f),
1329
1330
  "onUpdate:modelValue": k[2] || (k[2] = (O) => Ye(f) ? f.value = O : null),
@@ -1332,7 +1333,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1332
1333
  "max-width": 1200
1333
1334
  }, {
1334
1335
  default: U(() => {
1335
- var O, M;
1336
+ var O, $;
1336
1337
  return [
1337
1338
  e("div", Oo, [
1338
1339
  e("div", null, [
@@ -1357,26 +1358,26 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1357
1358
  ]),
1358
1359
  e("div", qo, I(t(yt)(((_ = b.template) == null ? void 0 : _._id) ?? "")), 1)
1359
1360
  ]),
1360
- (W = b.template) != null && W.updatedAt ? ($(), N("div", No, [
1361
+ (W = b.template) != null && W.updatedAt ? (M(), N("div", No, [
1361
1362
  e("div", Lo, [
1362
1363
  e("div", Eo, I(t(s)("inventory.transfer.receiveRequest.details.updatedAt")), 1)
1363
1364
  ]),
1364
1365
  e("div", zo, [
1365
1366
  ne(I(t(vt)(new Date(b.template.updatedAt))) + " ", 1),
1366
- (te = b.template.updatedBy) != null && te.name ? ($(), N(pe, { key: 0 }, [
1367
+ (te = b.template.updatedBy) != null && te.name ? (M(), N(pe, { key: 0 }, [
1367
1368
  ne(" (" + I(b.template.updatedBy.name) + ") ", 1)
1368
1369
  ], 64)) : oe("", !0)
1369
1370
  ])
1370
1371
  ])) : oe("", !0),
1371
- (B = (E = u.value) == null ? void 0 : E.supplier) != null && B.name ? ($(), N("div", Ho, [
1372
+ (B = (E = u.value) == null ? void 0 : E.supplier) != null && B.name ? (M(), N("div", Ho, [
1372
1373
  e("div", jo, I(t(s)("inventory.transfer.receiveRequest.details.from")), 1),
1373
1374
  e("div", Qo, I((l = (J = u.value) == null ? void 0 : J.supplier) == null ? void 0 : l.name), 1)
1374
1375
  ])) : oe("", !0),
1375
- (n = u.value) != null && n.ref ? ($(), N("div", Yo, [
1376
+ (n = u.value) != null && n.ref ? (M(), N("div", Yo, [
1376
1377
  e("div", Wo, I(t(s)("inventory.transfer.receiveRequest.details.reference")), 1),
1377
- e("div", Ko, I(u.value.ref), 1)
1378
+ e("div", Go, I(u.value.ref), 1)
1378
1379
  ])) : oe("", !0),
1379
- (C = u.value) != null && C.remark ? ($(), N("div", Go, [
1380
+ (C = u.value) != null && C.remark ? (M(), N("div", Ko, [
1380
1381
  e("div", Jo, I(t(s)("inventory.transfer.receiveRequest.details.remark")), 1),
1381
1382
  e("div", Zo, I(u.value.remark), 1)
1382
1383
  ])) : oe("", !0)
@@ -1389,20 +1390,20 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1389
1390
  e("div", Xo, [
1390
1391
  e("div", es, [
1391
1392
  e("div", ts, I(t(s)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
1392
- ($(!0), N(pe, null, je(((O = u.value) == null ? void 0 : O.items) ?? [], (_) => ($(), N("div", {
1393
+ (M(!0), N(pe, null, je(((O = u.value) == null ? void 0 : O.items) ?? [], (_) => (M(), N("div", {
1393
1394
  key: _.code,
1394
1395
  class: "flex flex-col"
1395
1396
  }, [
1396
1397
  e("div", os, [
1397
1398
  e("div", ss, I(_.name), 1),
1398
1399
  k[3] || (k[3] = e("div", { class: "flex-1 min-w-32" }, null, -1)),
1399
- e("div", ls, I(t(kt)(_.quantity, _.sku.unit, _.measurement)), 1)
1400
+ e("div", ls, I(t(_t)(_.quantity, _.sku.unit, _.measurement)), 1)
1400
1401
  ]),
1401
1402
  e("div", ns, [
1402
1403
  e("div", as, I(_.code), 1),
1403
- _.totalCost && t(r).enableTotalCost ? ($(), N("div", rs, " (" + I(t(bt)(_.totalCost)) + ") ", 1)) : oe("", !0)
1404
+ _.totalCost && t(r).enableTotalCost ? (M(), N("div", rs, " (" + I(t(bt)(_.totalCost)) + ") ", 1)) : oe("", !0)
1404
1405
  ]),
1405
- t(wt)(_) ? ($(), N("div", is, [
1406
+ t(kt)(_) ? (M(), N("div", is, [
1406
1407
  m(P, {
1407
1408
  name: "error",
1408
1409
  color: "system-error-300",
@@ -1432,7 +1433,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1432
1433
  style: { height: "500px" },
1433
1434
  "column-defs": x,
1434
1435
  "search-value": F.value,
1435
- "row-data": ((M = v.template) == null ? void 0 : M.locations) ?? [{ name: "All locations" }]
1436
+ "row-data": (($ = v.template) == null ? void 0 : $.locations) ?? [{ name: "All locations" }]
1436
1437
  }, null, 8, ["search-value", "row-data"])
1437
1438
  ])
1438
1439
  ])
@@ -1452,16 +1453,16 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1452
1453
  }, 8, ["header", "modelValue", "dismiss-away"]);
1453
1454
  };
1454
1455
  }
1455
- }), 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" }, $s = /* @__PURE__ */ ae({
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({
1456
1457
  __name: "TransferTemplateView",
1457
1458
  setup(p) {
1458
- const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = Tt(), { loading: c, templates: o } = He(F), f = Y(!1), b = gt(), k = Je(), { breakpoints: T } = Ft();
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 = Je(), { breakpoints: T } = Ct();
1459
1460
  Te(F.fetchTemplates);
1460
1461
  const R = L(
1461
1462
  () => f.value || c.value || !k._currentLocation
1462
1463
  ), P = L(() => o.value), d = Y(""), y = L(() => T.value.xs || T.value.sm), w = L(() => y.value ? 10 : 20);
1463
- function i(M) {
1464
- switch (M) {
1464
+ function i($) {
1465
+ switch ($) {
1465
1466
  case Ee.Add:
1466
1467
  return v();
1467
1468
  case "refresh":
@@ -1472,8 +1473,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1472
1473
  return s();
1473
1474
  }
1474
1475
  }
1475
- function g(M) {
1476
- return M;
1476
+ function g($) {
1477
+ return $;
1477
1478
  }
1478
1479
  const O = L(() => [
1479
1480
  {
@@ -1498,9 +1499,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1498
1499
  isPrimary: !1
1499
1500
  }
1500
1501
  ]);
1501
- return (M, _) => {
1502
+ return ($, _) => {
1502
1503
  const W = V("FmTable");
1503
- return $(), N(pe, null, [
1504
+ return M(), N(pe, null, [
1504
1505
  m(ht, {
1505
1506
  title: t(h)("inventory.transfer.template.title2"),
1506
1507
  actions: O.value,
@@ -1523,7 +1524,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1523
1524
  search: d.value,
1524
1525
  "onUpdate:search": _[0] || (_[0] = (E) => d.value = E)
1525
1526
  }, null, 8, ["search"]),
1526
- ($(), le(W, {
1527
+ (M(), le(W, {
1527
1528
  style: _e(t(b).tableHeight),
1528
1529
  "column-defs": t(F).columnDefs,
1529
1530
  "row-data": P.value,
@@ -1539,7 +1540,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1539
1540
  onRowClick: (B) => t(a)(B)
1540
1541
  }, {
1541
1542
  default: U((B) => {
1542
- var J, l, n, C, q, z, K, D, A, G, Z, S, H, ie, Fe, Se, Ie, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Ue;
1543
+ var J, l, n, C, q, z, G, D, A, K, Z, S, H, ie, Fe, Se, Ie, $e, Me, Oe, ce, De, Ve, Ae, Re, fe, Ue;
1543
1544
  return [
1544
1545
  e("div", cs, [
1545
1546
  e("div", fs, [
@@ -1551,8 +1552,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1551
1552
  ]),
1552
1553
  e("div", vs, [
1553
1554
  m(t(ee), {
1554
- render: (D = (K = (z = B.name) == null ? void 0 : z.column) == null ? void 0 : K.columnDef) == null ? void 0 : D.cell,
1555
- props: (G = (A = B.name) == null ? void 0 : A.getContext) == null ? void 0 : G.call(A)
1555
+ render: (D = (G = (z = B.name) == null ? void 0 : z.column) == null ? void 0 : G.columnDef) == null ? void 0 : D.cell,
1556
+ props: (K = (A = B.name) == null ? void 0 : A.getContext) == null ? void 0 : K.call(A)
1556
1557
  }, null, 8, ["render", "props"])
1557
1558
  ]),
1558
1559
  e("div", bs, [
@@ -1565,7 +1566,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1565
1566
  e("div", gs, I(E.original.purchaseOrder.items.length ? E.original.purchaseOrder.items.map((tt) => tt.name).join(", ") : "No items"), 1),
1566
1567
  e("div", hs, [
1567
1568
  m(t(ee), {
1568
- render: (Oe = ($e = (Me = B.ref) == null ? void 0 : Me.column) == null ? void 0 : $e.columnDef) == null ? void 0 : Oe.cell,
1569
+ render: (Oe = (Me = ($e = B.ref) == null ? void 0 : $e.column) == null ? void 0 : Me.columnDef) == null ? void 0 : Oe.cell,
1569
1570
  props: (De = (ce = B.ref) == null ? void 0 : ce.getContext) == null ? void 0 : De.call(ce)
1570
1571
  }, null, 8, ["render", "props"])
1571
1572
  ])
@@ -1589,9 +1590,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1589
1590
  }),
1590
1591
  _: 1
1591
1592
  }, 8, ["title", "actions"]),
1592
- ($(), le(nt, { to: "body" }, [
1593
+ (M(), le(nt, { to: "body" }, [
1593
1594
  m(ps, at(rt(t(x))), null, 16),
1594
- m($o, Qe(t(u), {
1595
+ m(Mo, Qe(t(u), {
1595
1596
  onSubmitted: _[2] || (_[2] = (te) => t(F).fetchTemplates())
1596
1597
  }), null, 16)
1597
1598
  ]))
@@ -1600,5 +1601,5 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1600
1601
  }
1601
1602
  });
1602
1603
  export {
1603
- $s as default
1604
+ Os as default
1604
1605
  };