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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/{App-PIGOcNDx.js → App-ByLgARNp.js} +37 -33
  2. package/dist/{ApprovalView-D1BiL6Eb.js → ApprovalView-e85YmdZN.js} +4 -4
  3. package/dist/{BindingsDialog-Svbe6kls.js → BindingsDialog-giBUD0IH.js} +2 -2
  4. package/dist/{BindingsPicker-CuPWowOy.js → BindingsPicker-CC4MmPbF.js} +2 -2
  5. package/dist/{BindingsTable-C0wTK7Tu.js → BindingsTable-WphZdzrA.js} +6 -6
  6. package/dist/ClosingDraftView-CQM1Sx45.js +755 -0
  7. package/dist/{ClosingTemplateView-DYB4bk26.js → ClosingTemplateView-1lzoDyet.js} +32 -31
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DApYBey2.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cv-vvzr5.js} +19 -19
  9. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BHY6DKjD.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BvkN-71q.js} +2 -2
  10. package/dist/{FmMultiselectDialog-DmiCS2MH.js → FmMultiselectDialog-DScMA6iG.js} +15 -15
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BZijME3G.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DIFQcrc0.js} +2 -2
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DEmObD4q.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-t4pim_k9.js} +1 -1
  13. package/dist/{IngredientGroupView-CwyP0VR-.js → IngredientGroupView-UegBM_JK.js} +12 -11
  14. package/dist/{IngredientsView-NtoU_ukl.js → IngredientsView-BfW-jZLM.js} +13 -12
  15. package/dist/{IntegrationView-CGBphMfH.js → IntegrationView-FYNNzKia.js} +50 -50
  16. package/dist/{InventoryBindingForm-C86nm-C1.js → InventoryBindingForm-DsHv_IHG.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B-hMO0wv.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BURSXafS.js} +13 -13
  18. package/dist/{InventoryBindingSummary-DLQRCqmv.js → InventoryBindingSummary-BLb4MRPZ.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CZsvmIju.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BG78-DHs.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BsEfEmYR.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CqID5_7v.js} +2 -2
  21. package/dist/{PurchaseOrderPrintPreview-BQ4eedE7.js → PurchaseOrderPrintPreview-BBMU3teq.js} +1 -1
  22. package/dist/{ReceiveRequestView-5CJF48wa.js → ReceiveRequestView-vbANEzne.js} +19 -19
  23. package/dist/{RecipeView-DxCEmBEs.js → RecipeView-DW4DY0C0.js} +11 -10
  24. package/dist/{StockView-DcTDvPWu.js → StockView-C5btudss.js} +1356 -1457
  25. package/dist/{SupplierView-Bz44BdU-.js → SupplierView-B2aObtwK.js} +14 -13
  26. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DpVa6Exh.js → TransferDetails.vue_vue_type_script_setup_true_lang-B2LOvVef.js} +17 -16
  27. package/dist/{TransferTemplateView-D-bEaxob.js → TransferTemplateView-BKumN_p6.js} +57 -56
  28. package/dist/{UnitView-C0BQQzCx.js → UnitView-CHLucv9s.js} +81 -80
  29. package/dist/{WarehouseView-CXZwvNvG.js → WarehouseView-G8pej6Y2.js} +25 -24
  30. package/dist/api/closing-draft.d.ts +6 -0
  31. package/dist/api/closing.d.ts +1 -0
  32. package/dist/{app-D0Gx27w2.js → app-BXjk74IB.js} +2175 -2140
  33. package/dist/app.d.ts +3 -0
  34. package/dist/app.js +1 -1
  35. package/dist/components/row-action.enum.d.ts +1 -0
  36. package/dist/{date2-Ci5ROICb.js → date2-CWAt9bRf.js} +1 -1
  37. package/dist/{dayjs.min-CHLyNvFi.js → dayjs.min-D3jPOnu6.js} +17 -17
  38. package/dist/{decimal-BfCXdz5w.js → decimal-DC07xoJW.js} +1 -1
  39. package/dist/{defineDeepModel-BUK9npmw.js → defineDeepModel-CiD4GtOw.js} +1 -1
  40. package/dist/{feature-B_jNIFmj.js → feature-6tcLMotY.js} +1 -1
  41. package/dist/form-mode.enum-BKiNVH6A.js +4 -0
  42. package/dist/{format-time-from-id-DBB6aOha.js → format-time-from-id-CYU5Z9Mt.js} +1 -1
  43. package/dist/{format-unit-display-CDJ1ljmF.js → format-unit-display-CY-0bznr.js} +83 -82
  44. package/dist/{fuzzy-t_DxwCxM.js → fuzzy-BMkhNYLR.js} +1 -1
  45. package/dist/{index-Cqh8dnaX.js → index-BXwQa14X.js} +1 -1
  46. package/dist/{index-CaC2cCOr.js → index-CRLd5xyg.js} +1 -1
  47. package/dist/{index-CEnwiSNc.js → index-DqwAtOgI.js} +1 -1
  48. package/dist/{netsuite-Amm_idsL.js → netsuite-fYUUk_ss.js} +1 -1
  49. package/dist/router/name.d.ts +1 -0
  50. package/dist/{row-action.enum-PMKMRrZR.js → row-action.enum-7rGLGZ5v.js} +10 -5
  51. package/dist/{rules-DrmWDZZ7.js → rules-BmRGm3yv.js} +39 -35
  52. package/dist/stock-CEX0DP2B.js +111 -0
  53. package/dist/stores/inventory.d.ts +1 -4
  54. package/dist/style.css +1 -1
  55. package/dist/{supplier-J8OTJPSV.js → supplier-CdJmZr7w.js} +22 -22
  56. package/dist/tsconfig.app.tsbuildinfo +1 -1
  57. package/dist/{use-inventory-binding-dialog-BYHugl4t.js → use-inventory-binding-dialog-B0G2XYSw.js} +2 -2
  58. package/dist/{use-template-enabled-locations-2-rSd9SeNy.js → use-template-enabled-locations-2-xbPJWHCs.js} +2 -2
  59. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
  60. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
  61. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +447 -0
  62. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +22 -0
  63. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +2601 -0
  64. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
  65. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
  66. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -192
  67. package/dist/{xlsx-BCfGO1MX.js → xlsx-CTOKp7SQ.js} +1 -1
  68. package/dist/{xlsx.util-Bf_CCXgS.js → xlsx.util-D5NFSfDg.js} +1 -1
  69. package/package.json +1 -1
@@ -1,20 +1,21 @@
1
1
  import { defineComponent as Q, mergeModels as Gd, computed as F, useModel as Hd, resolveComponent as T, openBlock as E, createElementBlock as O, createElementVNode as g, createVNode as N, withCtx as k, toDisplayString as A, unref as f, Fragment as q, renderList as ee, ref as L, createBlock as j, createCommentVNode as K, isRef as Qe, createTextVNode as Id, normalizeClass as J, watch as Fd, createSlots as jd, onMounted as Kd, normalizeStyle as Wd, Teleport as Yd } from "vue";
2
- import { u as re } from "./supplier-J8OTJPSV.js";
3
- import { D as ed, R as $e, F as U } from "./row-action.enum-PMKMRrZR.js";
2
+ import { u as re } from "./supplier-CdJmZr7w.js";
3
+ import { D as ed, R as $e } from "./row-action.enum-7rGLGZ5v.js";
4
4
  import { c as Xd, _ as Zd, F as le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
5
- import { c as Pe, a as Od, f as dd, d as zd, C as he, i as wd, u as pe } from "./app-D0Gx27w2.js";
5
+ import { c as Pe, a as Od, f as dd, d as zd, C as he, i as wd, u as pe } from "./app-BXjk74IB.js";
6
6
  import { useI18n as X, useCoreStore as Fe } from "@feedmepos/mf-common";
7
- import { u as Oe } from "./netsuite-Amm_idsL.js";
7
+ import { u as Oe } from "./netsuite-fYUUk_ss.js";
8
8
  import { useDialog as we, useSnackbar as me, useProxiedModel as td, useDialogChild as qd, useBreakpoints as Jd } from "@feedmepos/ui-library";
9
- import { u as Qd, _ as et, a as dt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BHY6DKjD.js";
10
- import { R as G } from "./rules-DrmWDZZ7.js";
11
- import { F as tt } from "./FmMultiselectDialog-DmiCS2MH.js";
9
+ import { u as Qd, _ as et, a as dt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BvkN-71q.js";
10
+ import { F as U } from "./form-mode.enum-BKiNVH6A.js";
11
+ import { R as G } from "./rules-BmRGm3yv.js";
12
+ import { F as tt } from "./FmMultiselectDialog-DScMA6iG.js";
12
13
  import { _ as rt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
13
- import { _ as nt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BZijME3G.js";
14
- import { u as Ad } from "./feature-B_jNIFmj.js";
14
+ import { _ as nt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DIFQcrc0.js";
15
+ import { u as Ad } from "./feature-6tcLMotY.js";
15
16
  import { defineStore as ot } from "pinia";
16
- import { t as Rd, d as Td, s as at, r as it } from "./xlsx.util-Bf_CCXgS.js";
17
- import { f as $t } from "./date2-Ci5ROICb.js";
17
+ import { t as Rd, d as Td, s as at, r as it } from "./xlsx.util-D5NFSfDg.js";
18
+ import { f as $t } from "./date2-CWAt9bRf.js";
18
19
  import { F as lt } from "./FmDroppableField-8RzKjEdL.js";
19
20
  function st(e, d) {
20
21
  const { t } = X(), r = Oe();
@@ -2828,7 +2829,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
2828
2829
  }), mr = { class: "flex flex-col py-8" }, yr = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, vr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, hr = {
2829
2830
  key: 0,
2830
2831
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
2831
- }, br = "You are managing business-level supplier list. These suppliers will be made visible to all locations.", Vr = /* @__PURE__ */ Q({
2832
+ }, br = "You are managing business-level supplier list. These suppliers will be made visible to all locations.", Ur = /* @__PURE__ */ Q({
2832
2833
  __name: "SupplierView",
2833
2834
  setup(e) {
2834
2835
  const { importSuppliers: d, exportSuppliers: t } = pr(), r = re(), n = pe(), o = Ad(), a = Oe(), $ = L(!1), l = we(), u = me(), { t: p } = X();
@@ -3038,5 +3039,5 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
3038
3039
  }
3039
3040
  });
3040
3041
  export {
3041
- Vr as default
3042
+ Ur as default
3042
3043
  };
@@ -1,18 +1,19 @@
1
1
  import { ref as L, computed as Y, h as ee, defineComponent as Qe, resolveComponent as se, openBlock as p, createBlock as W, unref as n, isRef as We, withCtx as fe, createElementVNode as r, createElementBlock as D, createVNode as z, createCommentVNode as q, Fragment as ae, toDisplayString as v, normalizeClass as pe, renderList as ve } from "vue";
2
- import { i as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BHY6DKjD.js";
3
- import { j as Ze, u as he, B as w, D as Xe, c as Ue, v as U, s as Le, r as Ee } from "./app-D0Gx27w2.js";
4
- import { t as et, b as tt, h as je, d as $e } from "./date2-Ci5ROICb.js";
5
- import { F as Ie, D as M, R as T } from "./row-action.enum-PMKMRrZR.js";
2
+ import { i as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BvkN-71q.js";
3
+ import { k as Ze, u as he, G as w, r as Xe, c as Ue, y as U, s as Le, w as Ee } from "./app-BXjk74IB.js";
4
+ import { t as et, b as tt, h as je, d as $e } from "./date2-CWAt9bRf.js";
5
+ import { F as Ie } from "./form-mode.enum-BKiNVH6A.js";
6
6
  import { useDialog as Be, useSnackbar as Ke, useProxiedModel as rt } from "@feedmepos/ui-library";
7
- import { p as st, f as be } from "./format-time-from-id-DBB6aOha.js";
8
- import { u as Ve } from "./feature-B_jNIFmj.js";
9
- import { b as at, u as nt, f as Ge, P as ne } from "./format-unit-display-CDJ1ljmF.js";
7
+ import { p as st, f as be } from "./format-time-from-id-CYU5Z9Mt.js";
8
+ import { u as Ve } from "./feature-6tcLMotY.js";
9
+ import { b as at, u as nt, f as Ge, P as ne } from "./format-unit-display-CY-0bznr.js";
10
10
  import { c as Fe } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
11
- import { i as Re, c as ye, a as ie, k as ot, j as Me } from "./rules-DrmWDZZ7.js";
12
- import { F as lt } from "./decimal-BfCXdz5w.js";
11
+ import { D as M, R as T } from "./row-action.enum-7rGLGZ5v.js";
12
+ import { i as Re, c as ye, a as ie, k as ot, j as Me } from "./rules-BmRGm3yv.js";
13
+ import { F as lt } from "./decimal-DC07xoJW.js";
13
14
  import { useI18n as He } from "@feedmepos/mf-common";
14
15
  import { E as ct } from "./empty-placeholder-wf6-BWE8.js";
15
- import { u as it } from "./netsuite-Amm_idsL.js";
16
+ import { u as it } from "./netsuite-fYUUk_ss.js";
16
17
  const ze = Ze((m, _) => {
17
18
  const i = he();
18
19
  return {
@@ -102,7 +103,7 @@ const ze = Ze((m, _) => {
102
103
  successMessage: "Purchase order has been rejected"
103
104
  }
104
105
  }, de = L();
105
- function Lr(m, _) {
106
+ function jr(m, _) {
106
107
  const i = Be(), s = he(), S = Ve(), g = at(), N = nt(), P = L(!1), u = Ke(), E = ze(), l = L(new Array()), f = L(
107
108
  _ != null && _.startDate && (_ != null && _.endDate) ? _ : Je()
108
109
  ), h = Y(() => {
@@ -397,7 +398,7 @@ const ce = {
397
398
  value: w.enum.completeReceive
398
399
  }
399
400
  };
400
- function jr(m, _) {
401
+ function Br(m, _) {
401
402
  const i = he(), { t: s } = He();
402
403
  function S(l) {
403
404
  switch (l.status) {
@@ -658,7 +659,7 @@ const mt = { class: "flex flex-col gap-16 w-full h-full" }, ft = {
658
659
  }, gr = { class: "flex-1 flex flex-col items-center" }, _r = {
659
660
  class: "py-12 flex flex-col gap-4 flex-1",
660
661
  name: "delivery details"
661
- }, wr = { class: "flex flex-col gap-8" }, Sr = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Rr = { class: "flex flex-col gap-4" }, Or = { class: "flex gap-8 xs:flex-col" }, Br = /* @__PURE__ */ Qe({
662
+ }, wr = { class: "flex flex-col gap-8" }, Sr = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Rr = { class: "flex flex-col gap-4" }, Or = { class: "flex gap-8 xs:flex-col" }, Kr = /* @__PURE__ */ Qe({
662
663
  __name: "TransferDetails",
663
664
  props: {
664
665
  poRequest: {},
@@ -1220,9 +1221,9 @@ const mt = { class: "flex flex-col gap-16 w-full h-full" }, ft = {
1220
1221
  }
1221
1222
  });
1222
1223
  export {
1223
- Br as _,
1224
- Lr as a,
1225
- jr as b,
1224
+ Kr as _,
1225
+ jr as a,
1226
+ Br as b,
1226
1227
  ut as g,
1227
1228
  ze as u
1228
1229
  };
@@ -1,23 +1,24 @@
1
- import { defineComponent as Z, onMounted as pe, computed as A, ref as B, watch as ce, inject as We, resolveComponent as O, openBlock as R, createElementBlock as Q, createElementVNode as t, createVNode as c, withCtx as E, renderSlot as Ie, withDirectives as Ve, normalizeClass as ie, vModelText as Re, reactive as Ze, h as W, toDisplayString as C, unref as e, createBlock as K, mergeProps as Ue, isRef as Ee, createCommentVNode as Y, Fragment as qe, renderList as Je, normalizeStyle as Xe, Teleport as Ye, normalizeProps as et, guardReactiveProps as tt } from "vue";
2
- import { u as ot, _ as st, a as lt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BHY6DKjD.js";
1
+ import { defineComponent as Z, onMounted as pe, computed as R, ref as B, watch as ce, inject as We, resolveComponent as O, openBlock as A, createElementBlock as Q, createElementVNode as t, createVNode as c, withCtx as E, renderSlot as Ie, withDirectives as Ve, normalizeClass as ie, vModelText as Ae, reactive as Ze, h as W, toDisplayString as C, unref as e, createBlock as K, mergeProps as Ue, isRef as Ee, createCommentVNode as Y, Fragment as qe, renderList as Je, normalizeStyle as Xe, Teleport as Ye, normalizeProps as et, guardReactiveProps as tt } from "vue";
2
+ import { u as ot, _ as st, a as lt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BvkN-71q.js";
3
3
  import { useI18n as J } from "@feedmepos/mf-common";
4
- import { P as N, a as nt, f as rt, t as at, b as Ae, u as it } from "./format-unit-display-CDJ1ljmF.js";
5
- import { F as ee, R as De } from "./row-action.enum-PMKMRrZR.js";
6
- import { a as Ne, u as ze, x as ne } from "./app-D0Gx27w2.js";
4
+ import { P as N, a as nt, f as rt, t as at, b as Re, u as it } from "./format-unit-display-CY-0bznr.js";
5
+ import { R as De } from "./row-action.enum-7rGLGZ5v.js";
6
+ import { a as Ne, u as ze, A as ne } from "./app-BXjk74IB.js";
7
7
  import { components as re, useDialog as ut, useSnackbar as mt, useProxiedModel as je, useBreakpoints as dt } from "@feedmepos/ui-library";
8
8
  import { storeToRefs as Pe } from "pinia";
9
- import { u as ue, t as Le, I as pt, l as ct, n as ft, a as G, m as yt, R as me, g as ae, c as vt, A as de, M as bt, b as xt, j as _t } from "./rules-DrmWDZZ7.js";
10
- import { d as He } from "./defineDeepModel-BUK9npmw.js";
11
- import { _ as ht, b as gt, F as Ft, a as Tt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BZijME3G.js";
12
- import { u as Qe } from "./feature-B_jNIFmj.js";
13
- import { c as wt, u as kt, _ as Mt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DApYBey2.js";
14
- import { F as Be } from "./index-CaC2cCOr.js";
15
- import { u as St } from "./supplier-J8OTJPSV.js";
16
- import { F as $t } from "./FmMultiselectDialog-DmiCS2MH.js";
9
+ import { F as ee } from "./form-mode.enum-BKiNVH6A.js";
10
+ import { u as ue, t as Le, I as pt, n as ct, o as ft, a as G, p as yt, R as me, g as ae, c as vt, A as de, M as bt, b as xt, j as _t } from "./rules-BmRGm3yv.js";
11
+ import { d as He } from "./defineDeepModel-CiD4GtOw.js";
12
+ import { _ as ht, b as gt, F as Ft, a as Tt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DIFQcrc0.js";
13
+ import { u as Qe } from "./feature-6tcLMotY.js";
14
+ import { c as wt, u as kt, _ as Mt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cv-vvzr5.js";
15
+ import { F as Be } from "./index-CRLd5xyg.js";
16
+ import { u as St } from "./supplier-CdJmZr7w.js";
17
+ import { F as $t } from "./FmMultiselectDialog-DScMA6iG.js";
17
18
  import { F as j, _ as Ge } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
18
- import { u as Ct } from "./use-template-enabled-locations-2-rSd9SeNy.js";
19
- import { f as Ot } from "./format-time-from-id-DBB6aOha.js";
20
- const It = { class: "flex flex-col" }, Vt = { class: "flex flex-col" }, Rt = { class: "flex-1" }, At = { class: "flex items-center" }, Dt = { class: "flex-1" }, Pt = { class: "flex-1" }, Lt = /* @__PURE__ */ Z({
19
+ import { u as Ct } from "./use-template-enabled-locations-2-xbPJWHCs.js";
20
+ import { f as Ot } from "./format-time-from-id-CYU5Z9Mt.js";
21
+ const It = { class: "flex flex-col" }, Vt = { class: "flex flex-col" }, At = { class: "flex-1" }, Rt = { class: "flex items-center" }, Dt = { class: "flex-1" }, Pt = { class: "flex-1" }, Lt = /* @__PURE__ */ Z({
21
22
  __name: "FmMinMaxInput",
22
23
  props: {
23
24
  rules: {},
@@ -63,7 +64,7 @@ const It = { class: "flex flex-col" }, Vt = { class: "flex flex-col" }, Rt = { c
63
64
  m.min = r, m.max = y;
64
65
  }
65
66
  });
66
- const p = A(() => {
67
+ const p = R(() => {
67
68
  const { min: b, max: a } = m ?? {};
68
69
  return Math.max((b == null ? void 0 : b.precision) ?? 0, (a == null ? void 0 : a.precision) ?? 0, _.precision ?? 0);
69
70
  }), d = (b) => {
@@ -88,7 +89,7 @@ const It = { class: "flex flex-col" }, Vt = { class: "flex flex-col" }, Rt = { c
88
89
  h.max = null;
89
90
  m.min = h.min, m.max = h.max;
90
91
  });
91
- const x = Symbol.for("fm:form-state"), T = We(x, null), S = A(() => _.disabled ?? (T == null ? void 0 : T.getDisabled()) ?? !1), I = B(), g = B(), f = B(!1), w = B(!1), L = A(() => f.value || w.value), q = A(() => [...[
92
+ const x = Symbol.for("fm:form-state"), T = We(x, null), S = R(() => _.disabled ?? (T == null ? void 0 : T.getDisabled()) ?? !1), I = B(), g = B(), f = B(!1), w = B(!1), L = R(() => f.value || w.value), q = R(() => [...[
92
93
  function() {
93
94
  return typeof o(s.value) == "string" || typeof o(u.value) == "string" ? "Must be a number" : !0;
94
95
  },
@@ -98,9 +99,9 @@ const It = { class: "flex flex-col" }, Vt = { class: "flex flex-col" }, Rt = { c
98
99
  ], ..._.rules ?? []]);
99
100
  return (b, a) => {
100
101
  const h = O("FmLabel"), r = O("FmField"), y = O("FmFormGroup");
101
- return R(), Q("div", It, [
102
+ return A(), Q("div", It, [
102
103
  t("div", Vt, [
103
- t("div", Rt, [
104
+ t("div", At, [
104
105
  c(h, {
105
106
  label: b.label,
106
107
  disabled: b.disabled,
@@ -110,7 +111,7 @@ const It = { class: "flex flex-col" }, Vt = { class: "flex flex-col" }, Rt = { c
110
111
  ]),
111
112
  c(r, { focused: L.value }, {
112
113
  default: E(() => [
113
- t("div", At, [
114
+ t("div", Rt, [
114
115
  Ie(b.$slots, "prepend"),
115
116
  a[6] || (a[6] = t("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Min.", -1)),
116
117
  t("div", Dt, [
@@ -127,7 +128,7 @@ const It = { class: "flex flex-col" }, Vt = { class: "flex flex-col" }, Rt = { c
127
128
  "text-fm-color-typo-disabled": S.value
128
129
  })
129
130
  }, null, 34), [
130
- [Re, s.value]
131
+ [Ae, s.value]
131
132
  ])
132
133
  ]),
133
134
  a[7] || (a[7] = t("div", { class: "block h-32 mx-4 w-[1px] bg-fm-color-neutral-gray-200" }, null, -1)),
@@ -146,7 +147,7 @@ const It = { class: "flex flex-col" }, Vt = { class: "flex flex-col" }, Rt = { c
146
147
  "text-fm-color-typo-disabled": S.value
147
148
  })
148
149
  }, null, 34), [
149
- [Re, u.value]
150
+ [Ae, u.value]
150
151
  ])
151
152
  ]),
152
153
  Ie(b.$slots, "append")
@@ -385,7 +386,7 @@ function qt(v) {
385
386
  }
386
387
  ];
387
388
  return {
388
- columnDefs: A(() => Qe().enableTotalCost && v.transferType === N.PURCHASE ? o : o.filter((s) => s.id !== "Cost"))
389
+ columnDefs: R(() => Qe().enableTotalCost && v.transferType === N.PURCHASE ? o : o.filter((s) => s.id !== "Cost"))
389
390
  };
390
391
  }
391
392
  const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-center" }, jt = { class: "flex-1 flex gap-1 items-center" }, Ht = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Qt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Gt = { class: "flex gap-8 w-full" }, Kt = { class: "flex-1 flex flex-col gap-4" }, Wt = { class: "flex-1 flex flex-col gap-4" }, Zt = { class: "flex gap-8 w-full" }, Jt = { class: "flex-1 flex flex-col gap-4" }, Xt = { class: "flex-1 flex flex-col gap-4" }, Yt = { class: "flex gap-8 w-full" }, eo = { class: "flex-1 flex flex-col gap-4" }, to = /* @__PURE__ */ Z({
@@ -399,7 +400,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
399
400
  return (m, o) => {
400
401
  var d, s, u, x, T, S, I, g, f, w, L, q, b, a, h, r, y, l, n, i, $, V, k, F, D, z, H, M, U, X;
401
402
  const p = O("FmLabel");
402
- return R(), Q("div", Nt, [
403
+ return A(), Q("div", Nt, [
403
404
  t("div", zt, [
404
405
  t("div", jt, [
405
406
  t("span", Ht, " (" + C(m.row.original.sku.code) + ") ", 1),
@@ -495,7 +496,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
495
496
  supplier: l.supplier ?? (o == null ? void 0 : o.purchaseOrder.supplier)
496
497
  };
497
498
  }
498
- ), S = A({
499
+ ), S = R({
499
500
  get() {
500
501
  var l, n;
501
502
  return typeof ((n = (l = o.purchaseOrder) == null ? void 0 : l.supplier) == null ? void 0 : n.internal) == "string" ? N.TRANSFER : N.PURCHASE;
@@ -505,7 +506,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
505
506
  const n = typeof (($ = (i = o.purchaseOrder) == null ? void 0 : i.supplier) == null ? void 0 : $.internal) == "string" ? N.TRANSFER : N.PURCHASE;
506
507
  l !== n && (o.purchaseOrder.supplier = l === N.PURCHASE ? T.locationOptionsTypePurchase.value[0] : T.locationOptionsTypeTransfer.value[0]);
507
508
  }
508
- }), I = A(() => T.transferLocationOptions.value), g = A({
509
+ }), I = R(() => T.transferLocationOptions.value), g = R({
509
510
  get() {
510
511
  var l;
511
512
  return (l = o.purchaseOrder.supplier) == null ? void 0 : l._id;
@@ -532,7 +533,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
532
533
  return (($ = i.doc) == null ? void 0 : $._id) === ((V = o.purchaseOrder.supplier) == null ? void 0 : V._id);
533
534
  }) ? `Location ${(n = o.purchaseOrder.supplier) == null ? void 0 : n.name} must be removed because template cannot be used to transfer to itself.` : !0;
534
535
  }
535
- const b = A({
536
+ const b = R({
536
537
  get() {
537
538
  return o.purchaseOrder.remark ?? void 0;
538
539
  },
@@ -575,7 +576,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
575
576
  get disabled() {
576
577
  return m.disabled;
577
578
  }
578
- }), r = A(() => h.columnDefs.value);
579
+ }), r = R(() => h.columnDefs.value);
579
580
  function y() {
580
581
  const l = s.skus.map((i) => ({
581
582
  label: i.name,
@@ -627,7 +628,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
627
628
  }
628
629
  return (l, n) => {
629
630
  const i = O("FmTextField"), $ = O("FmSelect"), V = O("FmTextarea"), k = O("FmButton"), F = O("FmTable"), D = O("FmFormGroup"), z = O("FmForm");
630
- return R(), K(z, {
631
+ return A(), K(z, {
631
632
  ref_key: "formRef",
632
633
  ref: a,
633
634
  class: "flex flex-col gap-32",
@@ -740,7 +741,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
740
741
  size: "md"
741
742
  }, null, 8, ["disabled", "label"])
742
743
  ]),
743
- (R(), K(F, {
744
+ (A(), K(F, {
744
745
  "column-defs": r.value,
745
746
  "row-data": e(o).purchaseOrder.items,
746
747
  key: e(o).purchaseOrder.items.map((M) => M.sku._id).join("."),
@@ -748,7 +749,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
748
749
  "page-size": e(o).purchaseOrder.items.length
749
750
  }, {
750
751
  "list-row": E((M) => [
751
- (R(), K(Ge, {
752
+ (A(), K(Ge, {
752
753
  row: M,
753
754
  key: e(o).purchaseOrder.items.map((U) => U.sku._id).join(".")
754
755
  }, {
@@ -823,7 +824,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
823
824
  r && (S.value = o.modelValue ?? T(), I.value = ((y = o.modelValue) == null ? void 0 : y._id) ?? `${Math.random()}`);
824
825
  }
825
826
  );
826
- const g = B(!1), f = A(() => {
827
+ const g = B(!1), f = R(() => {
827
828
  switch (o.mode) {
828
829
  case ee.READ:
829
830
  return "";
@@ -910,7 +911,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
910
911
  }
911
912
  return (r, y) => {
912
913
  const l = O("FmButton"), n = O("FmSideSheet");
913
- return R(), K(n, {
914
+ return A(), K(n, {
914
915
  modelValue: e(x),
915
916
  "onUpdate:modelValue": y[2] || (y[2] = (i) => Ee(x) ? x.value = i : null),
916
917
  "dismiss-away": "",
@@ -923,7 +924,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
923
924
  ])
924
925
  ]),
925
926
  default: E(() => [
926
- (R(), K(mo, {
927
+ (A(), K(mo, {
927
928
  class: "w-full",
928
929
  ref_key: "formRef",
929
930
  ref: w,
@@ -962,7 +963,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
962
963
  }, Co = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oo = { class: "fm-typo-en-body-lg-600" }, Io = {
963
964
  key: 2,
964
965
  class: "flex flex-col gap-4"
965
- }, Vo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ro = { class: "fm-typo-en-body-lg-600" }, Ao = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Do = { class: "flex flex-col gap-8" }, Po = { class: "fm-typo-en-body-lg-600" }, Lo = { class: "flex w-full gap-4" }, Bo = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, Uo = { class: "fm-typo-en-body-lg-600 shrink-0" }, Eo = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, qo = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, No = {
966
+ }, Vo = { 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" }, Do = { class: "flex flex-col gap-8" }, Po = { class: "fm-typo-en-body-lg-600" }, Lo = { class: "flex w-full gap-4" }, Bo = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, Uo = { class: "fm-typo-en-body-lg-600 shrink-0" }, Eo = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, qo = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, No = {
966
967
  key: 0,
967
968
  class: "shrink-0 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
968
969
  }, zo = {
@@ -976,13 +977,13 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
976
977
  },
977
978
  emits: ["update:show", "action:edit"],
978
979
  setup(v, { emit: _ }) {
979
- const m = v, o = _, p = Qe(), { t: d } = J(), s = A(() => {
980
+ const m = v, o = _, p = Qe(), { t: d } = J(), s = R(() => {
980
981
  var g;
981
982
  return (g = m.template) == null ? void 0 : g.purchaseOrder;
982
983
  }), u = [
983
984
  { accessorKey: "name", header: () => "Name" },
984
985
  { accessorKey: "type", header: () => "Type" }
985
- ], x = B(""), T = A(
986
+ ], x = B(""), T = R(
986
987
  () => {
987
988
  var g, f, w, L;
988
989
  return ((f = (g = s.value) == null ? void 0 : g.supplier) == null ? void 0 : f.internal) === "restaurant" || ((L = (w = s.value) == null ? void 0 : w.supplier) == null ? void 0 : L.internal) === "warehouse" ? N.TRANSFER : N.PURCHASE;
@@ -991,7 +992,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
991
992
  return (g, f) => {
992
993
  var y;
993
994
  const w = O("FmMenuDivider"), L = O("FmCard"), q = O("FmIcon"), b = O("FmTextField"), a = O("FmTable"), h = O("FmButton"), r = O("FmSideSheet");
994
- return R(), K(r, {
995
+ return A(), K(r, {
995
996
  header: e(d)("inventory.transfer.template.details.view", { template: (y = g.template) == null ? void 0 : y.name }),
996
997
  modelValue: e(I),
997
998
  "onUpdate:modelValue": f[2] || (f[2] = (l) => Ee(I) ? I.value = l : null),
@@ -1025,17 +1026,17 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
1025
1026
  ]),
1026
1027
  t("div", wo, C(e(Ot)(((i = g.template) == null ? void 0 : i._id) ?? "")), 1)
1027
1028
  ]),
1028
- (V = ($ = s.value) == null ? void 0 : $.supplier) != null && V.name ? (R(), Q("div", ko, [
1029
+ (V = ($ = s.value) == null ? void 0 : $.supplier) != null && V.name ? (A(), Q("div", ko, [
1029
1030
  t("div", Mo, C(e(d)("inventory.transfer.receiveRequest.details.from")), 1),
1030
1031
  t("div", So, C((F = (k = s.value) == null ? void 0 : k.supplier) == null ? void 0 : F.name), 1)
1031
1032
  ])) : Y("", !0),
1032
- (D = s.value) != null && D.ref ? (R(), Q("div", $o, [
1033
+ (D = s.value) != null && D.ref ? (A(), Q("div", $o, [
1033
1034
  t("div", Co, C(e(d)("inventory.transfer.receiveRequest.details.reference")), 1),
1034
1035
  t("div", Oo, C(s.value.ref), 1)
1035
1036
  ])) : Y("", !0),
1036
- (z = s.value) != null && z.remark ? (R(), Q("div", Io, [
1037
+ (z = s.value) != null && z.remark ? (A(), Q("div", Io, [
1037
1038
  t("div", Vo, C(e(d)("inventory.transfer.receiveRequest.details.remark")), 1),
1038
- t("div", Ro, C(s.value.remark), 1)
1039
+ t("div", Ao, C(s.value.remark), 1)
1039
1040
  ])) : Y("", !0)
1040
1041
  ])
1041
1042
  ];
@@ -1043,10 +1044,10 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
1043
1044
  _: 1
1044
1045
  })
1045
1046
  ]),
1046
- t("div", Ao, [
1047
+ t("div", Ro, [
1047
1048
  t("div", Do, [
1048
1049
  t("div", Po, C(e(d)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
1049
- (R(!0), Q(qe, null, Je(((l = s.value) == null ? void 0 : l.items) ?? [], (i) => (R(), Q("div", {
1050
+ (A(!0), Q(qe, null, Je(((l = s.value) == null ? void 0 : l.items) ?? [], (i) => (A(), Q("div", {
1050
1051
  key: i.code,
1051
1052
  class: "flex flex-col"
1052
1053
  }, [
@@ -1057,9 +1058,9 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
1057
1058
  ]),
1058
1059
  t("div", Eo, [
1059
1060
  t("div", qo, C(i.code), 1),
1060
- i.totalCost && e(p).enableTotalCost ? (R(), Q("div", No, " (" + C(e(_t)(i.totalCost)) + ") ", 1)) : Y("", !0)
1061
+ i.totalCost && e(p).enableTotalCost ? (A(), Q("div", No, " (" + C(e(_t)(i.totalCost)) + ") ", 1)) : Y("", !0)
1061
1062
  ]),
1062
- e(at)(i) ? (R(), Q("div", zo, [
1063
+ e(at)(i) ? (A(), Q("div", zo, [
1063
1064
  c(q, {
1064
1065
  name: "error",
1065
1066
  color: "system-error-300",
@@ -1109,14 +1110,14 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
1109
1110
  }, 8, ["header", "modelValue", "dismiss-away"]);
1110
1111
  };
1111
1112
  }
1112
- }), Ko = { class: "flex-1 flex flex-col gap-8" }, Wo = { class: "flex flex-col" }, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xo = { class: "fm-typo-en-body-lg-400" }, Yo = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, es = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, hs = /* @__PURE__ */ Z({
1113
+ }), Ko = { class: "flex-1 flex flex-col gap-8" }, Wo = { class: "flex flex-col" }, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xo = { class: "fm-typo-en-body-lg-400" }, Yo = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, es = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, gs = /* @__PURE__ */ Z({
1113
1114
  __name: "TransferTemplateView",
1114
1115
  setup(v) {
1115
- const { t: _ } = J(), { createTemplate: m, viewTemplate: o, importTemplates: p, exportTemplates: d } = Ae(), { templateDialogProps: s, templateDetailsProps: u } = Pe(Ae()), x = it(), { loading: T, templates: S } = Pe(x), I = B(!1), g = ot(), f = ze(), { breakpoints: w } = dt();
1116
+ const { t: _ } = J(), { createTemplate: m, viewTemplate: o, importTemplates: p, exportTemplates: d } = Re(), { templateDialogProps: s, templateDetailsProps: u } = Pe(Re()), x = it(), { loading: T, templates: S } = Pe(x), I = B(!1), g = ot(), f = ze(), { breakpoints: w } = dt();
1116
1117
  pe(x.fetchTemplates);
1117
- const L = A(
1118
+ const L = R(
1118
1119
  () => I.value || T.value || !f._currentLocation
1119
- ), q = A(() => S.value), b = B(""), a = A(() => w.value.xs || w.value.sm), h = A(() => a.value ? 10 : 20);
1120
+ ), q = R(() => S.value), b = B(""), a = R(() => w.value.xs || w.value.sm), h = R(() => a.value ? 10 : 20);
1120
1121
  function r(n) {
1121
1122
  switch (n) {
1122
1123
  case De.Add:
@@ -1132,7 +1133,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
1132
1133
  function y(n) {
1133
1134
  return n;
1134
1135
  }
1135
- const l = A(() => [
1136
+ const l = R(() => [
1136
1137
  {
1137
1138
  label: _("inventory.closing.template.create.title"),
1138
1139
  value: De.Add,
@@ -1157,7 +1158,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
1157
1158
  ]);
1158
1159
  return (n, i) => {
1159
1160
  const $ = O("FmTable");
1160
- return R(), Q(qe, null, [
1161
+ return A(), Q(qe, null, [
1161
1162
  c(st, {
1162
1163
  title: e(_)("inventory.transfer.template.title2"),
1163
1164
  actions: l.value,
@@ -1180,7 +1181,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
1180
1181
  search: b.value,
1181
1182
  "onUpdate:search": i[0] || (i[0] = (k) => b.value = k)
1182
1183
  }, null, 8, ["search"]),
1183
- (R(), K($, {
1184
+ (A(), K($, {
1184
1185
  style: Xe(e(g).tableHeight),
1185
1186
  "column-defs": e(x).columnDefs,
1186
1187
  "row-data": q.value,
@@ -1246,7 +1247,7 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
1246
1247
  }),
1247
1248
  _: 1
1248
1249
  }, 8, ["title", "actions"]),
1249
- (R(), K(Ye, { to: "body" }, [
1250
+ (A(), K(Ye, { to: "body" }, [
1250
1251
  c(Go, et(tt(e(u))), null, 16),
1251
1252
  c(yo, Ue(e(s), {
1252
1253
  onSubmitted: i[2] || (i[2] = (V) => e(x).fetchTemplates())
@@ -1257,5 +1258,5 @@ const Nt = { class: "flex flex-col gap-8 py-16" }, zt = { class: "flex items-cen
1257
1258
  }
1258
1259
  });
1259
1260
  export {
1260
- hs as default
1261
+ gs as default
1261
1262
  };