@feedmepos/mf-inventory-portal 0.0.23-dev.36 → 0.0.23-dev.38

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 (79) hide show
  1. package/dist/{App-CRVwCmFX.js → App-DQgtWkQj.js} +20 -20
  2. package/dist/{ApprovalView-CfJQdSRz.js → ApprovalView-CvSK9fGA.js} +10 -10
  3. package/dist/{BindingsDialog-BKL8E0Ni.js → BindingsDialog-BAC0_xCP.js} +8 -8
  4. package/dist/{BindingsPicker-M9-ARPgB.js → BindingsPicker-ecWMwsNp.js} +3 -3
  5. package/dist/{BindingsTable-BUs8wO0p.js → BindingsTable-D5kQydOU.js} +10 -10
  6. package/dist/{ClosingDraftView-BI3P4oS4.js → ClosingDraftView-CnHQ59rX.js} +46 -46
  7. package/dist/{ClosingTemplateView-D732hJJj.js → ClosingTemplateView-vRTsVZ0c.js} +21 -21
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DzXJBW2r.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CpIzIvkU.js} +17 -17
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BPOPaW5x.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CNzEHF-R.js} +37 -37
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DCYtyGvl.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DBhBaRrd.js} +1 -1
  11. package/dist/{IngredientGroupView-CnnqKFGA.js → IngredientGroupView-BLsABZ3h.js} +1 -1
  12. package/dist/IngredientsView-Cs4TIf6V.js +1794 -0
  13. package/dist/{IntegrationView-6-Qvhwbr.js → IntegrationView-BqAqngtM.js} +137 -137
  14. package/dist/{InventoryBindingForm-F3o3dWhJ.js → InventoryBindingForm-D54V_qZQ.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B1hTEubD.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-KIW9J7Xn.js} +106 -96
  16. package/dist/{InventoryBindingSummary-B9ziVhZr.js → InventoryBindingSummary-htT7GNto.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BquI8s88.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BlEgALMj.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BHRxlIxi.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DHbxXDGy.js} +9 -9
  19. package/dist/{PurchaseOrderPrintPreview-DyjA8BsV.js → PurchaseOrderPrintPreview-hmzxKuIa.js} +5 -5
  20. package/dist/{ReceiveRequestView-BQoADy5j.js → ReceiveRequestView-_YioyWqU.js} +182 -182
  21. package/dist/{RecipeView-DOEPiT-V.js → RecipeView-88KJ0nvU.js} +3 -3
  22. package/dist/StockView-R4cnEbHQ.js +1818 -0
  23. package/dist/{SupplierView-BX6T3B40.js → SupplierView-CevGG507.js} +4 -4
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-C-8uS9KA.js → TransferDetails.vue_vue_type_script_setup_true_lang-CeWP9msS.js} +52 -52
  25. package/dist/{TransferTemplateView-D3smZIqo.js → TransferTemplateView-QDniAq8o.js} +114 -114
  26. package/dist/{UnitView-PZthqb2i.js → UnitView-SjwJ3lZ0.js} +14 -14
  27. package/dist/{WarehouseView-Qqqwk353.js → WarehouseView-55LiPQXG.js} +70 -70
  28. package/dist/api/adjustment-template.d.ts +2 -0
  29. package/dist/api/bill.d.ts +240 -84
  30. package/dist/api/inventory.d.ts +15 -6
  31. package/dist/{app-Dzll4soM.js → app-UTiudUUR.js} +6779 -6514
  32. package/dist/app.d.ts +8 -0
  33. package/dist/app.js +1 -1
  34. package/dist/components/FmCustomAttribute.vue.d.ts +23 -0
  35. package/dist/components/FmLockableField.vue.d.ts +37 -0
  36. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +3 -1
  37. package/dist/components/shell/inventory/binding-ui.vue.d.ts +3 -1
  38. package/dist/{decimal-CSwcVJ9W.js → decimal-tyBgHJ47.js} +1 -1
  39. package/dist/feature-z7inw9y6.js +946 -0
  40. package/dist/{format-unit-display-D2-2_8Wo.js → format-unit-display-DN0KtCh2.js} +61 -61
  41. package/dist/index-Dj2Ccgp1.js +29202 -0
  42. package/dist/{StockView-CyJlLOjk.js → index-DlhdTaa8.js} +2218 -3854
  43. package/dist/{stock-VALQOiWM.js → stock-CxRxidDu.js} +1 -1
  44. package/dist/stores/feature.d.ts +5 -0
  45. package/dist/stores/inventory.d.ts +20 -8
  46. package/dist/stores/supplier.d.ts +1 -1
  47. package/dist/{supplier-CYRocBpq.js → supplier-BhyiTwSJ.js} +1 -1
  48. package/dist/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/{use-inventory-binding-dialog-SiBEsYI-.js → use-inventory-binding-dialog-DwSvUvRl.js} +1 -1
  50. package/dist/views/adjustment-template/wastage-template/WastageTemplateReason.vue.d.ts +18 -0
  51. package/dist/views/adjustment-template/wastage-template/actions.d.ts +37 -3
  52. package/dist/views/adjustment-template/wastage-template/props.d.ts +7 -0
  53. package/dist/views/adjustment-template/wastage-template/table.d.ts +32 -2
  54. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  55. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
  56. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +2 -1
  57. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -12
  58. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -12
  59. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +6 -3
  60. package/dist/views/ingredients/components/convert/ConvertFormProps.d.ts +1 -0
  61. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -2
  62. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +1 -0
  63. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +2 -1
  64. package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
  65. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -17
  66. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -2
  67. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -1
  68. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +48 -24
  69. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +48 -24
  70. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -0
  71. package/dist/views/stock/components/StockRecordCard.vue.d.ts +120 -42
  72. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +4 -2
  73. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +2 -1
  74. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +24 -12
  75. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +24 -12
  76. package/package.json +7 -6
  77. package/dist/IngredientsView-DZS3wyBm.js +0 -1657
  78. package/dist/feature-CFAsUae4.js +0 -92
  79. package/dist/index-CLdXLjws.js +0 -12087
@@ -1,14 +1,14 @@
1
- import { defineComponent as J, onMounted as ce, computed as R, ref as E, watch as pe, inject as Ze, resolveComponent as V, openBlock as A, createElementBlock as K, createElementVNode as t, createVNode as c, withCtx as q, renderSlot as Oe, withDirectives as Ve, normalizeClass as ie, vModelText as De, reactive as Je, h as Z, toDisplayString as O, unref as e, createBlock as W, mergeProps as Ee, isRef as Ue, createCommentVNode as Y, Fragment as qe, renderList as Xe, normalizeStyle as Ye, Teleport as et, normalizeProps as tt, guardReactiveProps as ot } from "vue";
2
- import { G as Ne, aB as ue, t as Ae, I as st, aC as lt, aD as nt, i as G, aE as at, b as ze, Z as Re, l as me, a as He, O as re, K as rt, A as de, M as it, E as Q, u as je, af as ut, B as Qe, H as mt, J as dt, d as ee, aF as ne, ac as ct, a0 as pt, x as ft, h as Pe, y as yt, z as vt } from "./app-Dzll4soM.js";
1
+ import { defineComponent as Z, onMounted as ce, computed as R, ref as E, watch as pe, inject as Je, resolveComponent as V, openBlock as D, createElementBlock as K, createElementVNode as t, createVNode as c, withCtx as q, renderSlot as Oe, withDirectives as Ve, normalizeClass as ie, vModelText as Ae, reactive as Ze, h as J, toDisplayString as O, unref as e, createBlock as W, mergeProps as Ee, isRef as Ue, createCommentVNode as Y, Fragment as qe, renderList as Xe, normalizeStyle as Ye, Teleport as et, normalizeProps as tt, guardReactiveProps as ot } from "vue";
2
+ import { H as Ne, ax as ue, t as De, I as st, ay as lt, az as nt, i as G, aA as at, b as ze, $ as Re, l as me, a as He, P as re, L as rt, A as de, M as it, G as Q, u as je, ac as ut, E as Qe, J as mt, K as dt, d as ee, aB as ne, a9 as ct, a1 as pt, y as ft, h as Pe, z as yt, B as vt } from "./app-UTiudUUR.js";
3
3
  import { useI18n as X } from "@feedmepos/mf-common";
4
- import { P as H, a as bt, f as xt, t as _t, b as Le, u as ht } from "./format-unit-display-D2-2_8Wo.js";
4
+ import { P as H, a as bt, f as xt, t as _t, b as Le, u as ht } from "./format-unit-display-DN0KtCh2.js";
5
5
  import { components as ae, useDialog as gt, useSnackbar as Tt, useProxiedModel as Ke, useBreakpoints as Ft } from "@feedmepos/ui-library";
6
6
  import { storeToRefs as Be } from "pinia";
7
- import { _ as wt, b as kt, F as Ct, a as St } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BPOPaW5x.js";
8
- import { u as Ge } from "./feature-CFAsUae4.js";
9
- import { c as Mt, u as $t, _ as It } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DzXJBW2r.js";
10
- import { u as Ot } from "./supplier-CYRocBpq.js";
11
- const Vt = { class: "flex flex-col" }, Dt = { class: "flex flex-col" }, At = { class: "flex-1" }, Rt = { class: "flex items-center" }, Pt = { class: "flex-1" }, Lt = { class: "flex-1" }, Bt = /* @__PURE__ */ J({
7
+ import { _ as wt, b as kt, F as St, a as Ct } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CNzEHF-R.js";
8
+ import { u as Ge } from "./feature-z7inw9y6.js";
9
+ import { c as Mt, u as $t, _ as It } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CpIzIvkU.js";
10
+ import { u as Ot } from "./supplier-BhyiTwSJ.js";
11
+ const Vt = { class: "flex flex-col" }, At = { class: "flex flex-col" }, Dt = { class: "flex-1" }, Rt = { class: "flex items-center" }, Pt = { class: "flex-1" }, Lt = { class: "flex-1" }, Bt = /* @__PURE__ */ Z({
12
12
  __name: "FmMinMaxInput",
13
13
  props: {
14
14
  rules: {},
@@ -57,29 +57,29 @@ const Vt = { class: "flex flex-col" }, Dt = { class: "flex flex-col" }, At = { c
57
57
  const m = R(() => {
58
58
  const { min: p, max: r } = u ?? {};
59
59
  return Math.max((p == null ? void 0 : p.precision) ?? 0, (r == null ? void 0 : r.precision) ?? 0, x.precision ?? 0);
60
- }), C = (p) => {
60
+ }), S = (p) => {
61
61
  if (!p) return "";
62
62
  const r = lt(p), b = m.value, a = ue(r, b);
63
63
  return nt(
64
64
  +G(a),
65
65
  a.precision
66
66
  );
67
- }, i = E(C(u.min)), l = E(C(u.max));
67
+ }, i = E(S(u.min)), l = E(S(u.max));
68
68
  pe([i, l], ([p, r]) => {
69
69
  const b = u ?? {}, a = o(p), f = o(r), w = m.value;
70
70
  if (p !== "" && a === !0) {
71
- const s = Ae(+p, w);
71
+ const s = De(+p, w);
72
72
  b.min = s;
73
73
  } else
74
74
  b.min = null;
75
75
  if (r !== "" && f === !0) {
76
- const s = Ae(+r, w);
76
+ const s = De(+r, w);
77
77
  b.max = s;
78
78
  } else
79
79
  b.max = null;
80
80
  u.min = b.min, u.max = b.max;
81
81
  });
82
- const d = Symbol.for("fm:form-state"), k = Ze(d, null), h = R(() => x.disabled ?? (k == null ? void 0 : k.getDisabled()) ?? !1), D = E(), F = E(), v = E(!1), g = E(!1), I = R(() => v.value || g.value), B = R(() => [...[
82
+ const d = Symbol.for("fm:form-state"), k = Je(d, null), h = R(() => x.disabled ?? (k == null ? void 0 : k.getDisabled()) ?? !1), A = E(), F = E(), v = E(!1), g = E(!1), I = R(() => v.value || g.value), B = R(() => [...[
83
83
  function() {
84
84
  return typeof o(i.value) == "string" || typeof o(l.value) == "string" ? "Must be a number" : !0;
85
85
  },
@@ -89,9 +89,9 @@ const Vt = { class: "flex flex-col" }, Dt = { class: "flex flex-col" }, At = { c
89
89
  ], ...x.rules ?? []]);
90
90
  return (p, r) => {
91
91
  const b = V("FmLabel"), a = V("FmField"), f = V("FmFormGroup");
92
- return A(), K("div", Vt, [
93
- t("div", Dt, [
94
- t("div", At, [
92
+ return D(), K("div", Vt, [
93
+ t("div", At, [
94
+ t("div", Dt, [
95
95
  c(b, {
96
96
  label: p.label,
97
97
  disabled: p.disabled,
@@ -108,7 +108,7 @@ const Vt = { class: "flex flex-col" }, Dt = { class: "flex flex-col" }, At = { c
108
108
  Ve(t("input", {
109
109
  type: "text",
110
110
  ref_key: "minInputRef",
111
- ref: D,
111
+ ref: A,
112
112
  onFocus: r[0] || (r[0] = () => v.value = !0),
113
113
  onBlur: r[1] || (r[1] = () => v.value = !1),
114
114
  "onUpdate:modelValue": r[2] || (r[2] = (w) => i.value = w),
@@ -118,7 +118,7 @@ const Vt = { class: "flex flex-col" }, Dt = { class: "flex flex-col" }, At = { c
118
118
  "text-fm-color-typo-disabled": h.value
119
119
  })
120
120
  }, null, 34), [
121
- [De, i.value]
121
+ [Ae, i.value]
122
122
  ])
123
123
  ]),
124
124
  r[7] || (r[7] = t("div", { class: "block h-32 mx-4 w-[1px] bg-fm-color-neutral-gray-200" }, null, -1)),
@@ -137,7 +137,7 @@ const Vt = { class: "flex flex-col" }, Dt = { class: "flex flex-col" }, At = { c
137
137
  "text-fm-color-typo-disabled": h.value
138
138
  })
139
139
  }, null, 34), [
140
- [De, l.value]
140
+ [Ae, l.value]
141
141
  ])
142
142
  ]),
143
143
  Oe(p.$slots, "append")
@@ -171,13 +171,13 @@ function Ut(y, x) {
171
171
  function qt(y) {
172
172
  const x = at(y), u = G(y);
173
173
  return function(m) {
174
- const C = !(m != null && m.min) || x(m.min) === !0, i = !(m != null && m.max) || x(m.max) === !0;
175
- return !C && !i ? `Min & max must be a multiple of ${u}` : C ? i ? !0 : `Max must be a multiple of ${u}` : `Min must be a multiple of ${u}`;
174
+ const S = !(m != null && m.min) || x(m.min) === !0, i = !(m != null && m.max) || x(m.max) === !0;
175
+ return !S && !i ? `Min & max must be a multiple of ${u}` : S ? i ? !0 : `Max must be a multiple of ${u}` : `Min must be a multiple of ${u}`;
176
176
  };
177
177
  }
178
178
  var L = /* @__PURE__ */ ((y) => (y.Code = "Code", y.Name = "Name", y.DefaultAmount = "DefaultAmount", y.Limit = "Limit", y.MinimumAmount = "MinimumAmount", y.Step = "Step", y.Cost = "Cost", y.Delete = "Delete", y))(L || {});
179
179
  function Nt(y) {
180
- const { t: x } = X(), u = ze(), o = Je({});
180
+ const { t: x } = X(), u = ze(), o = Ze({});
181
181
  ce(() => {
182
182
  for (const i of y.items) {
183
183
  if (!i.totalCost)
@@ -196,7 +196,7 @@ function Nt(y) {
196
196
  size: 180,
197
197
  cell(i) {
198
198
  const l = i.row.original;
199
- return Z(ae.FmTextField, {
199
+ return J(ae.FmTextField, {
200
200
  modelValue: l.code,
201
201
  "onUpdate:modelValue": (d) => {
202
202
  y.updateItem({
@@ -217,7 +217,7 @@ function Nt(y) {
217
217
  minSize: 300,
218
218
  cell(i) {
219
219
  const l = i.row.original;
220
- return Z(ae.FmTextField, {
220
+ return J(ae.FmTextField, {
221
221
  modelValue: l.name,
222
222
  "onUpdate:modelValue": (d) => {
223
223
  y.updateItem({
@@ -238,11 +238,11 @@ function Nt(y) {
238
238
  minSize: 200,
239
239
  cell(i) {
240
240
  var v;
241
- const l = i.row.original, d = He(), k = d.skuById[l.sku._id], h = d.unitById[(v = k.unit) == null ? void 0 : v._id], D = h.measurements.find((g) => {
241
+ const l = i.row.original, d = He(), k = d.skuById[l.sku._id], h = d.unitById[(v = k.unit) == null ? void 0 : v._id], A = h.measurements.find((g) => {
242
242
  var I;
243
243
  return ((I = l.measurement) == null ? void 0 : I.id) === g.id;
244
- }), F = l.sku.unit._id !== k.unit._id || !h || l.measurement && !D;
245
- return Z(wt, {
244
+ }), F = l.sku.unit._id !== k.unit._id || !h || l.measurement && !A;
245
+ return J(wt, {
246
246
  style: {
247
247
  flex: "1 1 0%"
248
248
  },
@@ -271,7 +271,7 @@ function Nt(y) {
271
271
  },
272
272
  rules: [
273
273
  kt(l.quantityStep),
274
- Ct(
274
+ St(
275
275
  +G(
276
276
  l.minimumQuantity ?? {
277
277
  amount: 1,
@@ -280,7 +280,7 @@ function Nt(y) {
280
280
  }
281
281
  )
282
282
  ),
283
- St(
283
+ Ct(
284
284
  l.maximumQuantity ? +G(l.maximumQuantity) : 1 / 0
285
285
  ),
286
286
  function(I) {
@@ -299,7 +299,7 @@ function Nt(y) {
299
299
  minSize: 280,
300
300
  cell(i) {
301
301
  const l = i.row.original;
302
- return Z(Bt, {
302
+ return J(Bt, {
303
303
  style: {
304
304
  flex: "1 1 0%"
305
305
  },
@@ -336,7 +336,7 @@ function Nt(y) {
336
336
  minSize: 100,
337
337
  cell(i) {
338
338
  const l = i.row.original;
339
- return Z(ae.FmTextField, {
339
+ return J(ae.FmTextField, {
340
340
  modelValue: G(l.quantityStep ?? Re.reset(), !1),
341
341
  key: l.sku._id,
342
342
  "onUpdate:modelValue": (d) => {
@@ -361,7 +361,7 @@ function Nt(y) {
361
361
  header: "",
362
362
  cell(i) {
363
363
  const l = i.row.original;
364
- return Z(ae.FmButton, {
364
+ return J(ae.FmButton, {
365
365
  class: "delete-button",
366
366
  key: l.sku._id,
367
367
  type: "button",
@@ -386,7 +386,7 @@ function Nt(y) {
386
386
  columnDefs: R(() => Ge().enableTotalCost && y.transferType === H.PURCHASE ? m : m.filter((l) => l.id !== "Cost"))
387
387
  };
388
388
  }
389
- const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-center" }, jt = { class: "flex-1 flex gap-1 items-center" }, Qt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Kt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Gt = { class: "flex gap-8 w-full" }, Wt = { class: "flex-1 flex flex-col gap-4" }, Zt = { class: "flex-1 flex flex-col gap-4" }, Jt = { class: "flex gap-8 w-full" }, Xt = { class: "flex-1 flex flex-col gap-4" }, Yt = { class: "flex-1 flex flex-col gap-4" }, eo = { class: "flex gap-8 w-full" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = /* @__PURE__ */ J({
389
+ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-center" }, jt = { class: "flex-1 flex gap-1 items-center" }, Qt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Kt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Gt = { class: "flex gap-8 w-full" }, Wt = { class: "flex-1 flex flex-col gap-4" }, Jt = { class: "flex-1 flex flex-col gap-4" }, Zt = { class: "flex gap-8 w-full" }, Xt = { class: "flex-1 flex flex-col gap-4" }, Yt = { class: "flex-1 flex flex-col gap-4" }, eo = { class: "flex gap-8 w-full" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = /* @__PURE__ */ Z({
390
390
  __name: "TransferTemplateItem",
391
391
  props: {
392
392
  cellByColId: {},
@@ -395,9 +395,9 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
395
395
  setup(y) {
396
396
  const { t: x } = X();
397
397
  return (u, o) => {
398
- var C, i, l, d, k, h, D, F, v, g, I, B, p, r, b, a, f, w, s, n, S, $, M, _, P, U, N, j, T, z;
398
+ var S, i, l, d, k, h, A, F, v, g, I, B, p, r, b, a, f, w, s, n, C, $, M, _, P, U, N, j, T, z;
399
399
  const m = V("FmLabel");
400
- return A(), K("div", zt, [
400
+ return D(), K("div", zt, [
401
401
  t("div", Ht, [
402
402
  t("div", jt, [
403
403
  t("span", Qt, " (" + O(u.row.original.sku.code) + ") ", 1),
@@ -405,7 +405,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
405
405
  ]),
406
406
  t("div", null, [
407
407
  c(e(Q), {
408
- render: (l = (i = (C = u.cellByColId.Delete) == null ? void 0 : C.column) == null ? void 0 : i.columnDef) == null ? void 0 : l.cell,
408
+ render: (l = (i = (S = u.cellByColId.Delete) == null ? void 0 : S.column) == null ? void 0 : i.columnDef) == null ? void 0 : l.cell,
409
409
  props: (k = (d = u.cellByColId.Delete) == null ? void 0 : d.getContext) == null ? void 0 : k.call(d)
410
410
  }, null, 8, ["render", "props"])
411
411
  ])
@@ -416,12 +416,12 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
416
416
  label: e(x)(`inventory.transfer.form.items.table.${e(L).Code}`)
417
417
  }, null, 8, ["label"]),
418
418
  c(e(Q), {
419
- render: (F = (D = (h = u.cellByColId[e(L).Code]) == null ? void 0 : h.column) == null ? void 0 : D.columnDef) == null ? void 0 : F.cell,
419
+ render: (F = (A = (h = u.cellByColId[e(L).Code]) == null ? void 0 : h.column) == null ? void 0 : A.columnDef) == null ? void 0 : F.cell,
420
420
  props: (g = (v = u.cellByColId[e(L).Code]) == null ? void 0 : v.getContext) == null ? void 0 : g.call(v)
421
421
  }, null, 8, ["render", "props"]),
422
422
  o[0] || (o[0] = t("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
423
423
  ]),
424
- t("div", Zt, [
424
+ t("div", Jt, [
425
425
  c(m, {
426
426
  label: e(x)(`inventory.transfer.form.items.table.${e(L).Name}`)
427
427
  }, null, 8, ["label"]),
@@ -432,7 +432,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
432
432
  o[1] || (o[1] = t("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
433
433
  ])
434
434
  ]),
435
- t("div", Jt, [
435
+ t("div", Zt, [
436
436
  t("div", Xt, [
437
437
  c(m, {
438
438
  label: e(x)(`inventory.transfer.form.items.table.${e(L).DefaultAmount}`)
@@ -448,7 +448,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
448
448
  label: e(x)(`inventory.transfer.form.items.table.${e(L).Step}`)
449
449
  }, null, 8, ["label"]),
450
450
  c(e(Q), {
451
- render: (M = ($ = (S = u.cellByColId[e(L).Step]) == null ? void 0 : S.column) == null ? void 0 : $.columnDef) == null ? void 0 : M.cell,
451
+ render: (M = ($ = (C = u.cellByColId[e(L).Step]) == null ? void 0 : C.column) == null ? void 0 : $.columnDef) == null ? void 0 : M.cell,
452
452
  props: (P = (_ = u.cellByColId[e(L).Step]) == null ? void 0 : _.getContext) == null ? void 0 : P.call(_)
453
453
  }, null, 8, ["render", "props"]),
454
454
  o[3] || (o[3] = t("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
@@ -469,20 +469,20 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
469
469
  ]);
470
470
  };
471
471
  }
472
- }), so = { class: "flex flex-col gap-16" }, lo = { class: "flex flex-col gap-24" }, no = { class: "flex flex-col gap-16" }, ao = { class: "flex items-center" }, ro = { class: "flex flex-col" }, io = { class: "flex flex-col gap-16" }, uo = { class: "flex" }, mo = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, co = /* @__PURE__ */ J({
472
+ }), so = { class: "flex flex-col gap-16" }, lo = { class: "flex flex-col gap-24" }, no = { class: "flex flex-col gap-16" }, ao = { class: "flex items-center" }, ro = { class: "flex flex-col" }, io = { class: "flex flex-col gap-16" }, uo = { class: "flex" }, mo = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, co = /* @__PURE__ */ Z({
473
473
  __name: "TransferTemplateForm",
474
474
  props: {
475
475
  modelValue: {},
476
476
  disabled: { type: Boolean }
477
477
  },
478
478
  setup(y, { expose: x }) {
479
- const u = y, o = Ne(), { t: m } = X(), C = je(), i = He(), l = Ot(), d = ze();
479
+ const u = y, o = Ne(), { t: m } = X(), S = je(), i = He(), l = Ot(), d = ze();
480
480
  pe(
481
481
  () => u.modelValue,
482
482
  (s) => {
483
483
  console.log("TransferTemplateForm.model", s);
484
484
  }
485
- ), C.watchLocation(async () => {
485
+ ), S.watchLocation(async () => {
486
486
  location && (o.purchaseOrder.supplier || (o.purchaseOrder.supplier = l.suppliers.find((s) => s) ?? o.purchaseOrder.supplier));
487
487
  });
488
488
  const k = gt(), h = $t(
@@ -493,14 +493,14 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
493
493
  supplier: s.supplier ?? (o == null ? void 0 : o.purchaseOrder.supplier)
494
494
  };
495
495
  }
496
- ), D = R({
496
+ ), A = R({
497
497
  get() {
498
498
  var s, n;
499
499
  return typeof ((n = (s = o.purchaseOrder) == null ? void 0 : s.supplier) == null ? void 0 : n.internal) == "string" ? H.TRANSFER : H.PURCHASE;
500
500
  },
501
501
  set(s) {
502
- var S, $;
503
- const n = typeof (($ = (S = o.purchaseOrder) == null ? void 0 : S.supplier) == null ? void 0 : $.internal) == "string" ? H.TRANSFER : H.PURCHASE;
502
+ var C, $;
503
+ const n = typeof (($ = (C = o.purchaseOrder) == null ? void 0 : C.supplier) == null ? void 0 : $.internal) == "string" ? H.TRANSFER : H.PURCHASE;
504
504
  s !== n && (o.purchaseOrder.supplier = s === H.PURCHASE ? h.locationOptionsTypePurchase.value[0] : h.locationOptionsTypeTransfer.value[0]);
505
505
  }
506
506
  }), F = R(() => h.transferLocationOptions.value), v = R({
@@ -525,9 +525,9 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
525
525
  });
526
526
  function p() {
527
527
  var s, n;
528
- return (s = o.locations) != null && s.find((S) => {
528
+ return (s = o.locations) != null && s.find((C) => {
529
529
  var $, M;
530
- return (($ = S.doc) == null ? void 0 : $._id) === ((M = o.purchaseOrder.supplier) == null ? void 0 : M._id);
530
+ return (($ = C.doc) == null ? void 0 : $._id) === ((M = o.purchaseOrder.supplier) == null ? void 0 : M._id);
531
531
  }) ? `Location ${(n = o.purchaseOrder.supplier) == null ? void 0 : n.name} must be removed because template cannot be used to transfer to itself.` : !0;
532
532
  }
533
533
  const r = R({
@@ -575,14 +575,14 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
575
575
  }
576
576
  }), f = R(() => a.columnDefs.value);
577
577
  function w() {
578
- const s = i.skus.map((S) => ({
579
- label: S.name,
580
- sublabel: S.code,
581
- value: S
582
- })), n = s.filter((S) => {
578
+ const s = i.skus.map((C) => ({
579
+ label: C.name,
580
+ sublabel: C.code,
581
+ value: C
582
+ })), n = s.filter((C) => {
583
583
  var $;
584
- return ($ = o.purchaseOrder.items) == null ? void 0 : $.find((M) => M.sku._id === S.value._id);
585
- }).map((S) => S.value);
584
+ return ($ = o.purchaseOrder.items) == null ? void 0 : $.find((M) => M.sku._id === C.value._id);
585
+ }).map((C) => C.value);
586
586
  k.open({
587
587
  title: m("inventory.transfer.form.items.selectItem"),
588
588
  closeButton: !0,
@@ -601,8 +601,8 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
601
601
  close: !0,
602
602
  variant: "tertiary"
603
603
  }
604
- }).onPrimary((S) => {
605
- const $ = o.purchaseOrder.items ?? [], M = S.map((_) => {
604
+ }).onPrimary((C) => {
605
+ const $ = o.purchaseOrder.items ?? [], M = C.map((_) => {
606
606
  const P = $.find((T) => T.sku._id === _._id);
607
607
  if (P)
608
608
  return P;
@@ -629,8 +629,8 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
629
629
  });
630
630
  }
631
631
  return (s, n) => {
632
- const S = V("FmTextField"), $ = V("FmSelect"), M = V("FmTextarea"), _ = V("FmButton"), P = V("FmTable"), U = V("FmFormGroup"), N = V("FmForm");
633
- return A(), W(N, {
632
+ const C = V("FmTextField"), $ = V("FmSelect"), M = V("FmTextarea"), _ = V("FmButton"), P = V("FmTable"), U = V("FmFormGroup"), N = V("FmForm");
633
+ return D(), W(N, {
634
634
  ref_key: "formRef",
635
635
  ref: b,
636
636
  class: "flex flex-col gap-32",
@@ -641,7 +641,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
641
641
  return [
642
642
  t("div", so, [
643
643
  t("div", lo, [
644
- c(S, {
644
+ c(C, {
645
645
  label: e(m)("inventory.transfer.form.name"),
646
646
  "label-mark": "required",
647
647
  modelValue: e(o).name,
@@ -650,8 +650,8 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
650
650
  }, null, 8, ["label", "modelValue", "rules"]),
651
651
  c($, {
652
652
  label: e(m)("inventory.transfer.form.type.title"),
653
- "model-value": D.value,
654
- "onUpdate:modelValue": n[1] || (n[1] = (T) => D.value = T),
653
+ "model-value": A.value,
654
+ "onUpdate:modelValue": n[1] || (n[1] = (T) => A.value = T),
655
655
  items: [
656
656
  {
657
657
  label: e(m)("inventory.transfer.form.type.purchase"),
@@ -669,7 +669,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
669
669
  rules: [e(de)(1)(F.value)]
670
670
  }, null, 8, ["label", "model-value", "items", "rules"]),
671
671
  c($, {
672
- label: D.value === e(H).PURCHASE ? e(m)("inventory.transfer.form.purchaseFrom") : e(m)("inventory.transfer.form.transferFrom"),
672
+ label: A.value === e(H).PURCHASE ? e(m)("inventory.transfer.form.purchaseFrom") : e(m)("inventory.transfer.form.transferFrom"),
673
673
  modelValue: v.value,
674
674
  "onUpdate:modelValue": n[2] || (n[2] = (T) => v.value = T),
675
675
  items: F.value
@@ -685,7 +685,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
685
685
  }),
686
686
  _: 1
687
687
  }, 8, ["label", "modelValue", "items"]),
688
- c(S, {
688
+ c(C, {
689
689
  label: e(m)("inventory.transfer.form.reference"),
690
690
  "label-mark": "optional",
691
691
  modelValue: e(o).purchaseOrder.ref,
@@ -743,7 +743,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
743
743
  size: "md"
744
744
  }, null, 8, ["disabled", "label"])
745
745
  ]),
746
- (A(), W(P, {
746
+ (D(), W(P, {
747
747
  "column-defs": f.value,
748
748
  "row-data": e(o).purchaseOrder.items,
749
749
  key: e(o).purchaseOrder.items.map((T) => T.sku._id).join("."),
@@ -751,7 +751,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
751
751
  "page-size": e(o).purchaseOrder.items.length
752
752
  }, {
753
753
  "list-row": q((T) => [
754
- (A(), W(Qe, {
754
+ (D(), W(Qe, {
755
755
  row: T,
756
756
  key: e(o).purchaseOrder.items.map((z) => z.sku._id).join(".")
757
757
  }, {
@@ -777,7 +777,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
777
777
  }, 8, ["disabled"]);
778
778
  };
779
779
  }
780
- }), po = { class: "flex items-center" }, fo = { class: "fm-typo-en-title-md-800" }, yo = { class: "flex gap-4" }, vo = /* @__PURE__ */ J({
780
+ }), po = { class: "flex items-center" }, fo = { class: "fm-typo-en-title-md-800" }, yo = { class: "flex gap-4" }, vo = /* @__PURE__ */ Z({
781
781
  __name: "TransferTemplateDialog",
782
782
  props: {
783
783
  mode: {},
@@ -787,7 +787,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
787
787
  emits: ["update:show", "submitted"],
788
788
  setup(y, { expose: x, emit: u }) {
789
789
  var b;
790
- const o = y, m = u, C = bt(), i = Tt(), { t: l } = X(), d = Ke(o, "show");
790
+ const o = y, m = u, S = bt(), i = Tt(), { t: l } = X(), d = Ke(o, "show");
791
791
  function k() {
792
792
  return {
793
793
  _id: "",
@@ -818,12 +818,12 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
818
818
  }
819
819
  };
820
820
  }
821
- const h = E(o.modelValue ?? k()), D = E(((b = o.modelValue) == null ? void 0 : b._id) ?? `${Math.random()}`);
821
+ const h = E(o.modelValue ?? k()), A = E(((b = o.modelValue) == null ? void 0 : b._id) ?? `${Math.random()}`);
822
822
  pe(
823
823
  () => o.show,
824
824
  (a) => {
825
825
  var f;
826
- a && (h.value = o.modelValue ?? k(), D.value = ((f = o.modelValue) == null ? void 0 : f._id) ?? `${Math.random()}`);
826
+ a && (h.value = o.modelValue ?? k(), A.value = ((f = o.modelValue) == null ? void 0 : f._id) ?? `${Math.random()}`);
827
827
  }
828
828
  );
829
829
  const F = E(!1), v = R(() => {
@@ -859,7 +859,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
859
859
  ({ totalCost: s, ...n }) => n
860
860
  ));
861
861
  try {
862
- await C.createTemplate(a), await new Promise((s) => setTimeout(s, 1e3)), i.open({
862
+ await S.createTemplate(a), await new Promise((s) => setTimeout(s, 1e3)), i.open({
863
863
  title: l("inventory.transfer.template.create.success"),
864
864
  message: l("inventory.transfer.template.create.successMessage"),
865
865
  type: "success"
@@ -883,7 +883,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
883
883
  ({ totalCost: s, ...n }) => n
884
884
  ));
885
885
  try {
886
- await C.updateTemplate(a), await new Promise((s) => setTimeout(s, 1e3)), i.open({
886
+ await S.updateTemplate(a), await new Promise((s) => setTimeout(s, 1e3)), i.open({
887
887
  title: l("inventory.transfer.template.update.success"),
888
888
  message: l("inventory.transfer.template.update.successMessage"),
889
889
  type: "success"
@@ -913,7 +913,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
913
913
  }
914
914
  return (a, f) => {
915
915
  const w = V("FmButton"), s = V("FmSideSheet");
916
- return A(), W(s, {
916
+ return D(), W(s, {
917
917
  modelValue: e(d),
918
918
  "onUpdate:modelValue": f[2] || (f[2] = (n) => Ue(d) ? d.value = n : null),
919
919
  "dismiss-away": "",
@@ -926,7 +926,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
926
926
  ])
927
927
  ]),
928
928
  default: q(() => [
929
- (A(), W(co, {
929
+ (D(), W(co, {
930
930
  class: "w-full",
931
931
  ref_key: "formRef",
932
932
  ref: g,
@@ -934,7 +934,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
934
934
  "model-value": h.value,
935
935
  "onUpdate:modelValue": f[0] || (f[0] = (n) => h.value = n),
936
936
  disabled: F.value,
937
- key: D.value
937
+ key: A.value
938
938
  }, null, 8, ["model-value", "disabled"]))
939
939
  ]),
940
940
  "side-sheet-footer": q(() => [
@@ -956,22 +956,22 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
956
956
  }, 8, ["modelValue"]);
957
957
  };
958
958
  }
959
- }), bo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, xo = { class: "flex justify-between" }, _o = { class: "fm-typo-en-body-lg-600" }, ho = { class: "fm-status-badge fm-status-badge-info-secondary" }, go = { class: "flex flex-col gap-8" }, To = { class: "flex flex-col gap-4" }, Fo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, wo = { class: "flex gap-1" }, ko = { class: "fm-typo-en-body-lg-600" }, Co = {
959
+ }), bo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, xo = { class: "flex justify-between" }, _o = { class: "fm-typo-en-body-lg-600" }, ho = { class: "fm-status-badge fm-status-badge-info-secondary" }, go = { class: "flex flex-col gap-8" }, To = { class: "flex flex-col gap-4" }, Fo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, wo = { class: "flex gap-1" }, ko = { class: "fm-typo-en-body-lg-600" }, So = {
960
960
  key: 0,
961
961
  class: "flex flex-col gap-4"
962
- }, So = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Mo = { class: "fm-typo-en-body-lg-600" }, $o = {
962
+ }, Co = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Mo = { class: "fm-typo-en-body-lg-600" }, $o = {
963
963
  key: 1,
964
964
  class: "flex flex-col gap-4"
965
965
  }, Io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oo = { class: "fm-typo-en-body-lg-600" }, Vo = {
966
966
  key: 2,
967
967
  class: "flex flex-col gap-4"
968
- }, Do = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ao = { class: "fm-typo-en-body-lg-600" }, Ro = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Po = { class: "flex flex-col gap-8" }, Lo = { class: "fm-typo-en-body-lg-600" }, Bo = { class: "flex w-full gap-4" }, Eo = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, Uo = { class: "fm-typo-en-body-lg-600 shrink-0" }, qo = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, No = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, zo = {
968
+ }, Ao = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Do = { class: "fm-typo-en-body-lg-600" }, Ro = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Po = { class: "flex flex-col gap-8" }, Lo = { class: "fm-typo-en-body-lg-600" }, Bo = { class: "flex w-full gap-4" }, Eo = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, Uo = { class: "fm-typo-en-body-lg-600 shrink-0" }, qo = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, No = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, zo = {
969
969
  key: 0,
970
970
  class: "shrink-0 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
971
971
  }, Ho = {
972
972
  key: 0,
973
973
  class: "flex gap-4 items-center"
974
- }, jo = { class: "flex flex-col gap-12" }, Qo = { class: "flex flex-col gap-8" }, Ko = { class: "flex gap-8 xs:flex-col" }, Go = /* @__PURE__ */ J({
974
+ }, jo = { class: "flex flex-col gap-12" }, Qo = { class: "flex flex-col gap-8" }, Ko = { class: "flex gap-8 xs:flex-col" }, Go = /* @__PURE__ */ Z({
975
975
  __name: "TransferTemplateDetails",
976
976
  props: {
977
977
  template: {},
@@ -979,7 +979,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
979
979
  },
980
980
  emits: ["update:show", "action:edit"],
981
981
  setup(y, { emit: x }) {
982
- const u = y, o = x, m = Ge(), { t: C } = X(), i = R(() => {
982
+ const u = y, o = x, m = Ge(), { t: S } = X(), i = R(() => {
983
983
  var F;
984
984
  return (F = u.template) == null ? void 0 : F.purchaseOrder;
985
985
  }), l = [
@@ -990,14 +990,14 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
990
990
  var F, v, g, I;
991
991
  return ((v = (F = i.value) == null ? void 0 : F.supplier) == null ? void 0 : v.internal) === "restaurant" || ((I = (g = i.value) == null ? void 0 : g.supplier) == null ? void 0 : I.internal) === "warehouse" ? H.TRANSFER : H.PURCHASE;
992
992
  }
993
- ), h = E(!0), D = Ke(u, "show");
993
+ ), h = E(!0), A = Ke(u, "show");
994
994
  return (F, v) => {
995
995
  var f;
996
996
  const g = V("FmMenuDivider"), I = V("FmCard"), B = V("FmIcon"), p = V("FmTextField"), r = V("FmTable"), b = V("FmButton"), a = V("FmSideSheet");
997
- return A(), W(a, {
998
- header: e(C)("inventory.transfer.template.details.view", { template: (f = F.template) == null ? void 0 : f.name }),
999
- modelValue: e(D),
1000
- "onUpdate:modelValue": v[2] || (v[2] = (w) => Ue(D) ? D.value = w : null),
997
+ return D(), W(a, {
998
+ header: e(S)("inventory.transfer.template.details.view", { template: (f = F.template) == null ? void 0 : f.name }),
999
+ modelValue: e(A),
1000
+ "onUpdate:modelValue": v[2] || (v[2] = (w) => Ue(A) ? A.value = w : null),
1001
1001
  "dismiss-away": h.value,
1002
1002
  "close-button": "",
1003
1003
  "max-width": 500
@@ -1012,11 +1012,11 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1012
1012
  class: "flex flex-col gap-8 px-12 py-16"
1013
1013
  }, {
1014
1014
  default: q(() => {
1015
- var n, S, $, M, _, P, U;
1015
+ var n, C, $, M, _, P, U;
1016
1016
  return [
1017
1017
  t("div", xo, [
1018
- t("div", _o, O(e(C)("inventory.transfer.template.details.templateSummary")), 1),
1019
- t("div", ho, O(e(C)(
1018
+ t("div", _o, O(e(S)("inventory.transfer.template.details.templateSummary")), 1),
1019
+ t("div", ho, O(e(S)(
1020
1020
  `inventory.transfer.receiveRequest.details.type.${k.value.toLocaleLowerCase("en-US")}`
1021
1021
  )), 1)
1022
1022
  ]),
@@ -1024,21 +1024,21 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1024
1024
  t("div", go, [
1025
1025
  t("div", To, [
1026
1026
  t("div", Fo, [
1027
- t("div", wo, O(e(C)("inventory.transfer.receiveRequest.details.createdAt")), 1)
1027
+ t("div", wo, O(e(S)("inventory.transfer.receiveRequest.details.createdAt")), 1)
1028
1028
  ]),
1029
1029
  t("div", ko, O(e(ct)(((n = F.template) == null ? void 0 : n._id) ?? "")), 1)
1030
1030
  ]),
1031
- ($ = (S = i.value) == null ? void 0 : S.supplier) != null && $.name ? (A(), K("div", Co, [
1032
- t("div", So, O(e(C)("inventory.transfer.receiveRequest.details.from")), 1),
1031
+ ($ = (C = i.value) == null ? void 0 : C.supplier) != null && $.name ? (D(), K("div", So, [
1032
+ t("div", Co, O(e(S)("inventory.transfer.receiveRequest.details.from")), 1),
1033
1033
  t("div", Mo, O((_ = (M = i.value) == null ? void 0 : M.supplier) == null ? void 0 : _.name), 1)
1034
1034
  ])) : Y("", !0),
1035
- (P = i.value) != null && P.ref ? (A(), K("div", $o, [
1036
- t("div", Io, O(e(C)("inventory.transfer.receiveRequest.details.reference")), 1),
1035
+ (P = i.value) != null && P.ref ? (D(), K("div", $o, [
1036
+ t("div", Io, O(e(S)("inventory.transfer.receiveRequest.details.reference")), 1),
1037
1037
  t("div", Oo, O(i.value.ref), 1)
1038
1038
  ])) : Y("", !0),
1039
- (U = i.value) != null && U.remark ? (A(), K("div", Vo, [
1040
- t("div", Do, O(e(C)("inventory.transfer.receiveRequest.details.remark")), 1),
1041
- t("div", Ao, O(i.value.remark), 1)
1039
+ (U = i.value) != null && U.remark ? (D(), K("div", Vo, [
1040
+ t("div", Ao, O(e(S)("inventory.transfer.receiveRequest.details.remark")), 1),
1041
+ t("div", Do, O(i.value.remark), 1)
1042
1042
  ])) : Y("", !0)
1043
1043
  ])
1044
1044
  ];
@@ -1048,8 +1048,8 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1048
1048
  ]),
1049
1049
  t("div", Ro, [
1050
1050
  t("div", Po, [
1051
- t("div", Lo, O(e(C)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
1052
- (A(!0), K(qe, null, Xe(((w = i.value) == null ? void 0 : w.items) ?? [], (n) => (A(), K("div", {
1051
+ t("div", Lo, O(e(S)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
1052
+ (D(!0), K(qe, null, Xe(((w = i.value) == null ? void 0 : w.items) ?? [], (n) => (D(), K("div", {
1053
1053
  key: n.code,
1054
1054
  class: "flex flex-col"
1055
1055
  }, [
@@ -1060,9 +1060,9 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1060
1060
  ]),
1061
1061
  t("div", qo, [
1062
1062
  t("div", No, O(n.code), 1),
1063
- n.totalCost && e(m).enableTotalCost ? (A(), K("div", zo, " (" + O(e(pt)(n.totalCost)) + ") ", 1)) : Y("", !0)
1063
+ n.totalCost && e(m).enableTotalCost ? (D(), K("div", zo, " (" + O(e(pt)(n.totalCost)) + ") ", 1)) : Y("", !0)
1064
1064
  ]),
1065
- e(_t)(n) ? (A(), K("div", Ho, [
1065
+ e(_t)(n) ? (D(), K("div", Ho, [
1066
1066
  c(B, {
1067
1067
  name: "error",
1068
1068
  color: "system-error-300",
@@ -1102,7 +1102,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1102
1102
  "side-sheet-footer": q(() => [
1103
1103
  t("div", Ko, [
1104
1104
  c(b, {
1105
- label: e(C)("common.edit"),
1105
+ label: e(S)("common.edit"),
1106
1106
  onClick: v[1] || (v[1] = (w) => o("action:edit")),
1107
1107
  variant: "tertiary"
1108
1108
  }, null, 8, ["label"])
@@ -1112,13 +1112,13 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1112
1112
  }, 8, ["header", "modelValue", "dismiss-away"]);
1113
1113
  };
1114
1114
  }
1115
- }), Wo = { class: "flex-1 flex flex-col gap-8" }, Zo = { class: "flex flex-col" }, Jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Yo = { class: "fm-typo-en-body-lg-400" }, es = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, ts = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, cs = /* @__PURE__ */ J({
1115
+ }), Wo = { class: "flex-1 flex flex-col gap-8" }, Jo = { class: "flex flex-col" }, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Yo = { class: "fm-typo-en-body-lg-400" }, es = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, ts = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, cs = /* @__PURE__ */ Z({
1116
1116
  __name: "TransferTemplateView",
1117
1117
  setup(y) {
1118
- const { t: x } = X(), { createTemplate: u, viewTemplate: o, importTemplates: m, exportTemplates: C } = Le(), { templateDialogProps: i, templateDetailsProps: l } = Be(Le()), d = ht(), { loading: k, templates: h } = Be(d), D = E(!1), F = ft(), v = je(), { breakpoints: g } = Ft();
1118
+ const { t: x } = X(), { createTemplate: u, viewTemplate: o, importTemplates: m, exportTemplates: S } = Le(), { templateDialogProps: i, templateDetailsProps: l } = Be(Le()), d = ht(), { loading: k, templates: h } = Be(d), A = E(!1), F = ft(), v = je(), { breakpoints: g } = Ft();
1119
1119
  ce(d.fetchTemplates);
1120
1120
  const I = R(
1121
- () => D.value || k.value || !v._currentLocation
1121
+ () => A.value || k.value || !v._currentLocation
1122
1122
  ), B = R(() => h.value), p = E(""), r = R(() => g.value.xs || g.value.sm), b = R(() => r.value ? 10 : 20);
1123
1123
  function a(s) {
1124
1124
  switch (s) {
@@ -1129,7 +1129,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1129
1129
  case "import":
1130
1130
  return m();
1131
1131
  case "export":
1132
- return C();
1132
+ return S();
1133
1133
  }
1134
1134
  }
1135
1135
  function f(s) {
@@ -1159,8 +1159,8 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1159
1159
  }
1160
1160
  ]);
1161
1161
  return (s, n) => {
1162
- const S = V("FmTable");
1163
- return A(), K(qe, null, [
1162
+ const C = V("FmTable");
1163
+ return D(), K(qe, null, [
1164
1164
  c(yt, {
1165
1165
  title: e(x)("inventory.transfer.template.title2"),
1166
1166
  actions: w.value,
@@ -1183,7 +1183,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1183
1183
  search: p.value,
1184
1184
  "onUpdate:search": n[0] || (n[0] = (M) => p.value = M)
1185
1185
  }, null, 8, ["search"]),
1186
- (A(), W(S, {
1186
+ (D(), W(C, {
1187
1187
  style: Ye(e(F).tableHeight),
1188
1188
  "column-defs": e(d).columnDefs,
1189
1189
  "row-data": B.value,
@@ -1199,11 +1199,11 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1199
1199
  onRowClick: (_) => e(o)(_)
1200
1200
  }, {
1201
1201
  default: q((_) => {
1202
- var P, U, N, j, T, z, fe, ye, te, ve, be, xe, _e, oe, he, ge, Te, Fe, we, ke, se, Ce, Se, Me, $e, le, Ie;
1202
+ var P, U, N, j, T, z, fe, ye, te, ve, be, xe, _e, oe, he, ge, Te, Fe, we, ke, se, Se, Ce, Me, $e, le, Ie;
1203
1203
  return [
1204
1204
  t("div", Wo, [
1205
- t("div", Zo, [
1206
- t("div", Jo, [
1205
+ t("div", Jo, [
1206
+ t("div", Zo, [
1207
1207
  c(e(Q), {
1208
1208
  render: (N = (U = (P = _._id) == null ? void 0 : P.column) == null ? void 0 : U.columnDef) == null ? void 0 : N.cell,
1209
1209
  props: (T = (j = _._id) == null ? void 0 : j.getContext) == null ? void 0 : T.call(j)
@@ -1226,13 +1226,13 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1226
1226
  t("div", ts, [
1227
1227
  c(e(Q), {
1228
1228
  render: (ke = (we = (Fe = _.ref) == null ? void 0 : Fe.column) == null ? void 0 : we.columnDef) == null ? void 0 : ke.cell,
1229
- props: (Ce = (se = _.ref) == null ? void 0 : se.getContext) == null ? void 0 : Ce.call(se)
1229
+ props: (Se = (se = _.ref) == null ? void 0 : se.getContext) == null ? void 0 : Se.call(se)
1230
1230
  }, null, 8, ["render", "props"])
1231
1231
  ])
1232
1232
  ]),
1233
1233
  t("div", null, [
1234
1234
  c(e(Q), {
1235
- render: ($e = (Me = (Se = _.type) == null ? void 0 : Se.column) == null ? void 0 : Me.columnDef) == null ? void 0 : $e.cell,
1235
+ render: ($e = (Me = (Ce = _.type) == null ? void 0 : Ce.column) == null ? void 0 : Me.columnDef) == null ? void 0 : $e.cell,
1236
1236
  props: (Ie = (le = _.type) == null ? void 0 : le.getContext) == null ? void 0 : Ie.call(le)
1237
1237
  }, null, 8, ["render", "props"])
1238
1238
  ])
@@ -1249,7 +1249,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1249
1249
  }),
1250
1250
  _: 1
1251
1251
  }, 8, ["title", "actions"]),
1252
- (A(), W(et, { to: "body" }, [
1252
+ (D(), W(et, { to: "body" }, [
1253
1253
  c(Go, tt(ot(e(l))), null, 16),
1254
1254
  c(vo, Ee(e(i), {
1255
1255
  onSubmitted: n[2] || (n[2] = ($) => e(d).fetchTemplates())