@feedmepos/mf-inventory-portal 1.6.0-dev.2 → 1.6.0-dev.4

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 (90) hide show
  1. package/dist/{App-BWiKiRD2.js → App-xiS9XCUg.js} +4 -4
  2. package/dist/{ApprovalView-TFet-Rht.js → ApprovalView-Co4xloBe.js} +19 -19
  3. package/dist/{BindingsDialog-ByO16R7B.js → BindingsDialog-Ch1xgZ7D.js} +2 -2
  4. package/dist/{BindingsPicker-BzeipJDM.js → BindingsPicker-BSNOsgIa.js} +2 -2
  5. package/dist/{BindingsTable-CATRwDGx.js → BindingsTable-CvoKDM69.js} +3 -3
  6. package/dist/{ClosingDraftView-Bilo3C7N.js → ClosingDraftView-Chy_R-c9.js} +15 -15
  7. package/dist/{ClosingHistoryView-DJEhuzBh.js → ClosingHistoryView-DQUYXIe5.js} +86 -85
  8. package/dist/{ClosingTemplateView-DTS__1eO.js → ClosingTemplateView-yi3O0zya.js} +14 -14
  9. package/dist/{DefaultView-Dpwvllot.js → DefaultView-w0Bc0QUo.js} +2 -2
  10. package/dist/{DeliveryOrderPrintPreview-BZ-BDWlS.js → DeliveryOrderPrintPreview-BzO9UcbC.js} +11 -11
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BMJVOiL_.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DYzIZpMo.js} +2 -2
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-QvgQwP6t.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C1-Z8zpZ.js} +2 -2
  13. package/dist/{FmMultiselectDialog-W0_FfMmH.js → FmMultiselectDialog-8k_CySos.js} +1 -1
  14. package/dist/{FmMultiselectDialog-B1rAOXTC.js → FmMultiselectDialog-C6MHEYsa.js} +2 -2
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DNpKzzVC.js → FmUnitInput.vue_vue_type_script_setup_true_lang-cf1asT1H.js} +5 -5
  16. package/dist/{ImportView-B_3OeL5b.js → ImportView-Z8N8eFi0.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CdNdnCp-.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BabrzvVA.js} +1 -1
  18. package/dist/{IngredientGroupView-B_v-UNeR.js → IngredientGroupView-CNl676Lh.js} +5 -5
  19. package/dist/{IngredientsView-DTXevc-8.js → IngredientsView-6zB8OUXt.js} +15 -15
  20. package/dist/{IntegrationExplorerView-C6JUipFs.js → IntegrationExplorerView-C27IyImO.js} +5 -5
  21. package/dist/{IntegrationView-DX4hhKYv.js → IntegrationView-pDisxkqH.js} +13 -13
  22. package/dist/{InventoryBindingForm-BpNKhiGF.js → InventoryBindingForm-cJUY8472.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BWy-YpCv.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-_mIak9Y4.js} +5 -5
  24. package/dist/{InventoryBindingSummary-BL4AkZY3.js → InventoryBindingSummary-DiOokH9o.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DURnZteR.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CXBvvJc9.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BR0Hc9cL.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D1JFU868.js} +1 -1
  27. package/dist/{PublishView-CELngZXP.js → PublishView-CthOIZV3.js} +3 -3
  28. package/dist/{PurchaseOrderPrintPreview-HCGMQWdo.js → PurchaseOrderPrintPreview-CR8pm2bB.js} +11 -11
  29. package/dist/{ReceiveRequestView-DfrpsGeI.js → ReceiveRequestView-DgqABsfx.js} +26 -26
  30. package/dist/{RecipeView-DCrrdrhp.js → RecipeView-062Vcx0q.js} +1117 -1104
  31. package/dist/{SettingsView-CHoDkUIF.js → SettingsView-B36YQEUM.js} +4 -4
  32. package/dist/{StockView-DlP1-pbq.js → StockView-8orJpsPH.js} +19 -19
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-NZcNoQ6u.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bw-GxZr8.js} +1 -1
  34. package/dist/{SupplierView-DqQbgLqh.js → SupplierView-CQi9bh5A.js} +12 -12
  35. package/dist/{SurchargeView-CtlXOPJ3.js → SurchargeView-BgxF6xyH.js} +6 -6
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-BRrHPAJj.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BbY1p0bB.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bw3UN_Zn.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BiMvxm3x.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-atZZPJBf.js → TransferDetails.vue_vue_type_script_setup_true_lang-DtCPS8FC.js} +122 -122
  39. package/dist/{TransferTemplateView-Dl0k38tD.js → TransferTemplateView-92Xn4mWr.js} +20 -20
  40. package/dist/{UnitCostHistoryView-Dh-yAgvG.js → UnitCostHistoryView-cTI5jhBt.js} +4 -4
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-FqnqY9bU.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-bjr08iok.js} +5 -5
  42. package/dist/{UnitView-D5Zvz2xm.js → UnitView-BqXvkdiR.js} +7 -7
  43. package/dist/{WarehouseView-s5g9AQq5.js → WarehouseView-_2zJPaTf.js} +5 -5
  44. package/dist/WastageTemplateView-DYW58rtZ.js +2381 -0
  45. package/dist/{app-D-l9FM2n.js → app-B790gOK1.js} +3457 -3347
  46. package/dist/app.js +1 -1
  47. package/dist/{closing-template-C56_2aLc.js → closing-template-0jLV_s0d.js} +1 -1
  48. package/dist/{date2-CRMgo5NH.js → date2-BEmmexd8.js} +1 -1
  49. package/dist/{dayjs.min-9bo3vPqj.js → dayjs.min-e4Xq09pW.js} +20 -20
  50. package/dist/{decimal-CsE7mms2.js → decimal-Lptt-Wz-.js} +2 -2
  51. package/dist/{defineDeepModel-DDX70CM6.js → defineDeepModel-emCSlL_h.js} +1 -1
  52. package/dist/{duplicate-template-BrEOP-1V.js → duplicate-template-CShJdJ8d.js} +1 -1
  53. package/dist/{feature-Bl6yUhw_.js → feature-BFFJbkBm.js} +2 -2
  54. package/dist/{format-time-from-id-BuMdYlM9.js → format-time-from-id-Dj-j01eE.js} +1 -1
  55. package/dist/{format-unit-display-CMfuvGP6.js → format-unit-display-CJw32VBR.js} +12 -12
  56. package/dist/{import-export.helper-C9F9d-rh.js → import-export.helper-C07viLOs.js} +6 -6
  57. package/dist/{index-cbmIhZ6F.js → index-B0mYVcHF.js} +1 -1
  58. package/dist/{index-BcOtIfdU.js → index-DJZQrFf7.js} +1 -1
  59. package/dist/{index-BdSVteJV.js → index-TBsXDgch.js} +3 -3
  60. package/dist/{inventory-core-dart.default-DewosGoK.js → inventory-core-dart.default-BieljiaS.js} +1 -1
  61. package/dist/{lz-string-Ye-dLAix.js → lz-string-Co3f7xQi.js} +1 -1
  62. package/dist/{netsuite-Dyw1JtQL.js → netsuite-BMQZw2dt.js} +2 -2
  63. package/dist/{number-YiCgPFTE.js → number-Czc4vu4K.js} +3 -3
  64. package/dist/{predefined-templates-B0Eto9Jx.js → predefined-templates-BVHsFJHC.js} +1 -1
  65. package/dist/{purchase-order-template-zHPLRQDQ.js → purchase-order-template-CMDl8eio.js} +1 -1
  66. package/dist/{recalculationUtils-DZLZlctO.js → recalculationUtils-BZoPTIoG.js} +1 -1
  67. package/dist/{rules-BsVkaxL5.js → rules-DuDYwy_d.js} +2 -2
  68. package/dist/{stock-DlQopDTl.js → stock-DkLzKOLk.js} +1 -1
  69. package/dist/{supplier-UPX_1aFs.js → supplier-Dk3xHNeA.js} +2 -2
  70. package/dist/{surcharge-DO3-kAit.js → surcharge-CUNMAeS3.js} +1 -1
  71. package/dist/tsconfig.app.tsbuildinfo +1 -1
  72. package/dist/{uom-rules-DbhFLCUC.js → uom-rules-DtG5eCqQ.js} +1 -1
  73. package/dist/{use-ingredient-select-dialog-BASkk3-u.js → use-ingredient-select-dialog-CkNu7fD6.js} +2 -2
  74. package/dist/{use-inventory-binding-dialog-DTc48xUU.js → use-inventory-binding-dialog-Cnc65VQI.js} +2 -2
  75. package/dist/use-template-enabled-locations-CRF0AM-M.js +146 -0
  76. package/dist/{use-transfer-locations-BJ0xIECi.js → use-transfer-locations-cX4FfzNZ.js} +7 -7
  77. package/dist/{useHrmPermission-G4mfvYF8.js → useHrmPermission-CmJd4Bup.js} +1 -1
  78. package/dist/{useNavigationMenu-Be-99JmQ.js → useNavigationMenu-BQZghwYI.js} +2 -2
  79. package/dist/{useSseClient-D1h38l_K.js → useSseClient-C3PTrM-h.js} +12 -12
  80. package/dist/views/adjustment-template/wastage-template/actions.d.ts +12 -0
  81. package/dist/views/adjustment-template/wastage-template/helpers.d.ts +33 -0
  82. package/dist/views/adjustment-template/wastage-template/helpers.spec.d.ts +1 -0
  83. package/dist/views/adjustment-template/wastage-template/props.d.ts +2 -0
  84. package/dist/views/adjustment-template/wastage-template/table.d.ts +12 -0
  85. package/dist/{vue-i18n-fX3C6wjd.js → vue-i18n-1noprZJM.js} +202 -202
  86. package/dist/{xlsx-BsL1DoEA.js → xlsx-i55Kt0AR.js} +1 -1
  87. package/dist/{xlsx.util-D_XTOHMv.js → xlsx.util-jC5etKar.js} +3 -3
  88. package/package.json +4 -4
  89. package/dist/WastageTemplateView-XzJSsB29.js +0 -2327
  90. package/dist/use-template-enabled-locations-gwYjb6_p.js +0 -132
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as se, ref as g, computed as w, watch as ce, resolveComponent as x, openBlock as n, createElementBlock as y, createBlock as z, withModifiers as me, createCommentVNode as b, createVNode as _, withCtx as R, createElementVNode as o, toDisplayString as a, unref as i, Fragment as Q, createTextVNode as ee, renderList as ne, normalizeClass as fe, h as q, Teleport as ye } from "vue";
2
2
  import { _ as ge } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
3
3
  import { useI18n as ie, useCoreStore as he } from "@feedmepos/mf-common";
4
- import { E as re, B as N, a as _e, u as be } from "./app-D-l9FM2n.js";
4
+ import { E as re, B as N, a as _e, u as be } from "./app-B790gOK1.js";
5
5
  import { F as ue } from "./FmAdminBadge-DjnBAgyv.js";
6
- import { _ as ke } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-QvgQwP6t.js";
6
+ import { _ as ke } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C1-Z8zpZ.js";
7
7
  import { useSnackbar as de, useDialog as xe } from "@feedmepos/ui-library";
8
- import { u as pe } from "./stock-DlQopDTl.js";
9
- import { g as ve, f as De } from "./recalculationUtils-DZLZlctO.js";
10
- import { _ as we } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-FqnqY9bU.js";
8
+ import { u as pe } from "./stock-DkLzKOLk.js";
9
+ import { g as ve, f as De } from "./recalculationUtils-BZoPTIoG.js";
10
+ import { _ as we } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-bjr08iok.js";
11
11
  const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col gap-16" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e = { class: "flex flex-col gap-8" }, Ae = { class: "fm-typo-en-body-md-600" }, Fe = { class: "flex flex-col gap-8" }, Re = { class: "fm-typo-en-body-md-600" }, Ie = { class: "flex items-center gap-8 mb-8" }, Be = {
12
12
  key: 2,
13
13
  class: "text-red-500 text-sm mt-2"
@@ -23,7 +23,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
23
23
  }, Ue = { class: "fm-typo-en-body-sm-600" }, Pe = { class: "flex flex-col gap-4" }, Ne = { key: 0 }, Me = {
24
24
  key: 1,
25
25
  class: "flex flex-col gap-8"
26
- }, Ke = { class: "fm-typo-en-body-md-600" }, je = { class: "flex flex-col gap-8 max-h-[300px] overflow-y-auto" }, He = { class: "flex items-center justify-between" }, ze = { class: "fm-typo-en-body-sm-600" }, We = { class: "flex items-center gap-8" }, Ye = {
26
+ }, Ke = { class: "fm-typo-en-body-md-600" }, He = { class: "flex flex-col gap-8 max-h-[300px] overflow-y-auto" }, je = { class: "flex items-center justify-between" }, ze = { class: "fm-typo-en-body-sm-600" }, We = { class: "flex items-center gap-8" }, Ye = {
27
27
  key: 0,
28
28
  class: "fm-typo-en-body-xs-600 px-8 py-4 rounded-4 bg-fm-color-neutral-100 text-fm-color-typo-secondary"
29
29
  }, Ge = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Je = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Qe = {
@@ -48,14 +48,14 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
48
48
  },
49
49
  emits: ["submitted"],
50
50
  setup(ae, { expose: S, emit: V }) {
51
- const K = V, { t } = ie(), L = pe(), I = re(), k = de(), D = g(!1), v = g(""), m = g(""), $ = g(!1), O = g([]), l = g(!1), s = g([]), C = g(!1), h = g([]), F = g(!1), B = w(() => ve(O.value)), E = w(() => {
51
+ const K = V, { t } = ie(), O = pe(), I = re(), k = de(), D = g(!1), v = g(""), m = g(""), $ = g(!1), E = g([]), l = g(!1), s = g([]), C = g(!1), h = g([]), F = g(!1), B = w(() => ve(E.value)), U = w(() => {
52
52
  if (!v.value) return [];
53
53
  const r = B.value.find((e) => e.value === v.value);
54
54
  return r ? B.value.filter((e) => e.date.getTime() > r.date.getTime()).sort((e, d) => d.date.getTime() - e.date.getTime()) : [];
55
55
  }), W = w({
56
56
  get: () => {
57
57
  if ($.value && m.value) {
58
- const r = O.value.find((e) => N(e._id) === m.value);
58
+ const r = E.value.find((e) => N(e._id) === m.value);
59
59
  return (r == null ? void 0 : r._id) || m.value;
60
60
  }
61
61
  return m.value;
@@ -63,7 +63,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
63
63
  set: (r) => {
64
64
  $.value && r ? m.value = N(r) : m.value = r;
65
65
  }
66
- }), j = w(() => {
66
+ }), H = w(() => {
67
67
  if (v.value)
68
68
  try {
69
69
  const r = N(v.value);
@@ -81,7 +81,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
81
81
  return t("inventory.stock.recalculation.error.endDateBeforeOpening");
82
82
  }
83
83
  return "";
84
- }), M = w(() => !!v.value && !!m.value && !Y.value), H = w(() => s.value.some(
84
+ }), M = w(() => !!v.value && !!m.value && !Y.value), j = w(() => s.value.some(
85
85
  (r) => !r.completedAt && !r.failedReason
86
86
  ));
87
87
  async function X() {
@@ -98,7 +98,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
98
98
  l.value = !0;
99
99
  try {
100
100
  const r = await I.getLastNClosings(30);
101
- O.value = r;
101
+ E.value = r;
102
102
  } catch (r) {
103
103
  console.error("Error fetching recent closings:", r), k.open({
104
104
  title: t("common.error"),
@@ -112,7 +112,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
112
112
  async function Z() {
113
113
  C.value = !0;
114
114
  try {
115
- const r = await L.recalculation.recalculationRequests();
115
+ const r = await O.recalculation.recalculationRequests();
116
116
  s.value = r;
117
117
  } catch (r) {
118
118
  console.error("Error fetching recalculation requests:", r);
@@ -127,7 +127,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
127
127
  }
128
128
  F.value = !0;
129
129
  try {
130
- const r = await L.recalculation.getAffectedClosingDrafts(
130
+ const r = await O.recalculation.getAffectedClosingDrafts(
131
131
  v.value,
132
132
  m.value
133
133
  );
@@ -153,12 +153,12 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
153
153
  if (M.value) {
154
154
  l.value = !0;
155
155
  try {
156
- if (await L.recalculation.scheduleRecalculation({
156
+ if (await O.recalculation.scheduleRecalculation({
157
157
  openingId: v.value,
158
158
  untilDate: m.value
159
159
  }), h.value.length > 0) {
160
160
  const r = h.value.map((e) => e._id);
161
- await L.recalculation.scheduleInvalidateClosingDraftCache(r);
161
+ await O.recalculation.scheduleInvalidateClosingDraftCache(r);
162
162
  }
163
163
  k.open({
164
164
  title: t("common.success"),
@@ -177,7 +177,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
177
177
  }
178
178
  }
179
179
  return (r, e) => {
180
- const d = x("FmButton"), U = x("FmSelect"), c = x("FmRadio"), f = x("FmDatePicker"), A = x("FmAlert"), P = x("FmDialog");
180
+ const d = x("FmButton"), T = x("FmSelect"), c = x("FmRadio"), f = x("FmDatePicker"), A = x("FmAlert"), P = x("FmDialog");
181
181
  return n(), y("div", null, [
182
182
  r.showButton ? (n(), z(d, {
183
183
  key: 0,
@@ -196,7 +196,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
196
196
  o("div", Se, a(i(t)("inventory.stock.recalculation.title")), 1)
197
197
  ]),
198
198
  "dialog-footer": R(() => [
199
- H.value ? (n(), y("div", et, [
199
+ j.value ? (n(), y("div", et, [
200
200
  _(d, {
201
201
  variant: "tertiary",
202
202
  onClick: e[6] || (e[6] = (u) => D.value = !1),
@@ -221,14 +221,14 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
221
221
  default: R(() => [
222
222
  o("div", Ve, [
223
223
  o("div", Ce, a(i(t)("inventory.stock.recalculation.description")), 1),
224
- H.value ? b("", !0) : (n(), y(Q, { key: 0 }, [
224
+ j.value ? b("", !0) : (n(), y(Q, { key: 0 }, [
225
225
  o("div", $e, [
226
226
  o("p", Ae, [
227
227
  ee(a(i(t)("inventory.stock.recalculation.openingDate")) + " ", 1),
228
228
  e[8] || (e[8] = o("span", { class: "text-fm-color-system-error-300" }, "*", -1))
229
229
  ]),
230
230
  e[9] || (e[9] = o("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary mb-4" }, " Showing the last 30 closing records. Select the opening date to start recalculation. ", -1)),
231
- _(U, {
231
+ _(T, {
232
232
  modelValue: v.value,
233
233
  "onUpdate:modelValue": e[0] || (e[0] = (u) => v.value = u),
234
234
  items: B.value,
@@ -256,11 +256,11 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
256
256
  label: i(t)("inventory.stock.recalculation.selectByClosing")
257
257
  }, null, 8, ["modelValue", "label"])
258
258
  ]),
259
- $.value ? (n(), z(U, {
259
+ $.value ? (n(), z(T, {
260
260
  key: 1,
261
261
  modelValue: W.value,
262
262
  "onUpdate:modelValue": e[4] || (e[4] = (u) => W.value = u),
263
- items: E.value,
263
+ items: U.value,
264
264
  placeholder: i(t)("inventory.stock.recalculation.selectClosing"),
265
265
  loading: l.value,
266
266
  disabled: !v.value || l.value
@@ -269,7 +269,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
269
269
  modelValue: m.value,
270
270
  "onUpdate:modelValue": e[3] || (e[3] = (u) => m.value = u),
271
271
  placeholder: i(t)("inventory.stock.recalculation.selectDate"),
272
- min: j.value,
272
+ min: H.value,
273
273
  disabled: !v.value || l.value
274
274
  }, null, 8, ["modelValue", "placeholder", "min", "disabled"])),
275
275
  Y.value ? (n(), y("div", Be, a(Y.value), 1)) : b("", !0)
@@ -300,14 +300,14 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
300
300
  ], 64)),
301
301
  s.value.length > 0 ? (n(), y("div", Me, [
302
302
  o("p", Ke, a(i(t)("inventory.stock.recalculation.recentRequests")), 1),
303
- o("div", je, [
303
+ o("div", He, [
304
304
  (n(!0), y(Q, null, ne(s.value, (u) => {
305
305
  var p;
306
306
  return n(), y("div", {
307
307
  key: u._id,
308
308
  class: "p-12 border border-fm-color-border-primary rounded-8 flex flex-col gap-4"
309
309
  }, [
310
- o("div", He, [
310
+ o("div", je, [
311
311
  o("div", ze, a(i(t)("inventory.stock.recalculation.requestedAt")) + ": " + a(new Date(u.createdAt).toLocaleString()), 1),
312
312
  o("div", We, [
313
313
  (p = u.meta) != null && p.openingType ? (n(), y("div", Ye, a(u.meta.openingType === "stockSnapshot" ? "Snapshot" : "Closing"), 1)) : b("", !0),
@@ -376,9 +376,9 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
376
376
  },
377
377
  emits: ["submitted"],
378
378
  setup(ae, { expose: S, emit: V }) {
379
- const K = V, { t } = ie(), L = pe(), I = re(), k = de(), D = g(!1), v = g(""), m = g(""), $ = g([]), O = g([]), l = g(!1), s = g([]), C = g(!1), h = g([]), F = g(!1), B = w(
380
- () => ve($.value, O.value)
381
- ), E = w(() => De(
379
+ const K = V, { t } = ie(), O = pe(), I = re(), k = de(), D = g(!1), v = g(""), m = g(""), $ = g([]), E = g([]), l = g(!1), s = g([]), C = g(!1), h = g([]), F = g(!1), B = w(
380
+ () => ve($.value, E.value)
381
+ ), U = w(() => De(
382
382
  h.value.filter((e) => !!e.closingId).map((e) => ({ closingId: e.closingId, draftCreatedAt: new Date(N(e._id)) }))
383
383
  )), W = w(() => {
384
384
  if (v.value)
@@ -389,7 +389,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
389
389
  } catch (e) {
390
390
  console.error("Error parsing date from opening ID:", e);
391
391
  }
392
- }), j = w(() => {
392
+ }), H = w(() => {
393
393
  if (!v.value || !m.value) return "";
394
394
  const e = N(v.value);
395
395
  if (e && m.value) {
@@ -402,7 +402,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
402
402
  if (!m.value) return !1;
403
403
  const e = new Date(m.value), d = /* @__PURE__ */ new Date();
404
404
  return d.setHours(0, 0, 0, 0), e.setHours(0, 0, 0, 0), e >= d;
405
- }), M = w(() => !!v.value && !!m.value && !j.value), H = w(() => s.value.some(
405
+ }), M = w(() => !!v.value && !!m.value && !H.value), j = w(() => s.value.some(
406
406
  (e) => !e.completedAt && !e.failedReason
407
407
  ));
408
408
  async function X() {
@@ -433,7 +433,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
433
433
  async function Z() {
434
434
  try {
435
435
  const e = await I.getLastNStockSnapshots(30);
436
- O.value = e;
436
+ E.value = e;
437
437
  } catch (e) {
438
438
  console.error("Error fetching recent snapshots:", e);
439
439
  }
@@ -441,7 +441,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
441
441
  async function G() {
442
442
  C.value = !0;
443
443
  try {
444
- const e = await L.recalculation.recalculationRequests();
444
+ const e = await O.recalculation.recalculationRequests();
445
445
  s.value = e;
446
446
  } catch (e) {
447
447
  console.error("Error fetching recalculation requests:", e);
@@ -458,7 +458,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
458
458
  try {
459
459
  const e = new Date(m.value);
460
460
  e.setHours(23, 59, 59, 999);
461
- const d = await L.recalculation.getAffectedClosingDrafts(
461
+ const d = await O.recalculation.getAffectedClosingDrafts(
462
462
  v.value,
463
463
  e.toISOString()
464
464
  );
@@ -476,7 +476,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
476
476
  ce(
477
477
  [v, m],
478
478
  () => {
479
- v.value && m.value && !j.value ? J() : h.value = [];
479
+ v.value && m.value && !H.value ? J() : h.value = [];
480
480
  },
481
481
  { immediate: !1 }
482
482
  );
@@ -484,13 +484,14 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
484
484
  if (!(!M.value || !m.value)) {
485
485
  l.value = !0;
486
486
  try {
487
- if (await L.recalculation.scheduleRecalculation({
487
+ const e = new Date(m.value);
488
+ if (e.setHours(23, 59, 59, 999), await O.recalculation.scheduleRecalculation({
488
489
  openingId: v.value,
489
- untilDate: new Date(m.value).toISOString(),
490
+ untilDate: e.toISOString(),
490
491
  recalculateBySnapshot: !0
491
492
  }), h.value.length > 0) {
492
- const e = h.value.map((d) => d._id);
493
- await L.recalculation.scheduleInvalidateClosingDraftCache(e);
493
+ const d = h.value.map((T) => T._id);
494
+ await O.recalculation.scheduleInvalidateClosingDraftCache(d);
494
495
  }
495
496
  k.open({
496
497
  title: t("common.success"),
@@ -509,9 +510,9 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
509
510
  }
510
511
  }
511
512
  return (e, d) => {
512
- const U = x("FmButton"), c = x("FmSelect"), f = x("FmDatePicker"), A = x("FmSnackbar"), P = x("FmAlert"), u = x("FmDialog");
513
+ const T = x("FmButton"), c = x("FmSelect"), f = x("FmDatePicker"), A = x("FmSnackbar"), P = x("FmAlert"), u = x("FmDialog");
513
514
  return n(), y("div", null, [
514
- e.showButton ? (n(), z(U, {
515
+ e.showButton ? (n(), z(T, {
515
516
  key: 0,
516
517
  "prepend-icon": "info",
517
518
  variant: "tertiary",
@@ -528,20 +529,20 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
528
529
  o("div", ot, a(i(t)("inventory.stock.recalculation.title")), 1)
529
530
  ]),
530
531
  "dialog-footer": R(() => [
531
- H.value ? (n(), y("div", It, [
532
- _(U, {
532
+ j.value ? (n(), y("div", It, [
533
+ _(T, {
533
534
  variant: "tertiary",
534
535
  onClick: d[3] || (d[3] = (p) => D.value = !1),
535
536
  label: i(t)("common.close")
536
537
  }, null, 8, ["label"])
537
538
  ])) : (n(), y("div", Rt, [
538
- _(U, {
539
+ _(T, {
539
540
  variant: "tertiary",
540
541
  onClick: d[2] || (d[2] = (p) => D.value = !1),
541
542
  disabled: l.value,
542
543
  label: i(t)("common.cancel")
543
544
  }, null, 8, ["disabled", "label"]),
544
- _(U, {
545
+ _(T, {
545
546
  variant: "primary",
546
547
  onClick: r,
547
548
  disabled: !M.value || l.value,
@@ -553,7 +554,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
553
554
  default: R(() => [
554
555
  o("div", at, [
555
556
  o("div", lt, a(i(t)("inventory.stock.recalculation.description")), 1),
556
- H.value ? b("", !0) : (n(), y(Q, { key: 0 }, [
557
+ j.value ? b("", !0) : (n(), y(Q, { key: 0 }, [
557
558
  o("div", nt, [
558
559
  o("p", st, [
559
560
  ee(a(i(t)("inventory.stock.recalculation.openingDate")) + " ", 1),
@@ -582,7 +583,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
582
583
  min: W.value,
583
584
  disabled: !v.value || l.value
584
585
  }, null, 8, ["modelValue", "placeholder", "min", "disabled"]),
585
- j.value ? (n(), y("div", rt, a(j.value), 1)) : b("", !0),
586
+ H.value ? (n(), y("div", rt, a(H.value), 1)) : b("", !0),
586
587
  Y.value ? (n(), z(A, {
587
588
  key: 1,
588
589
  title: "Warning",
@@ -590,7 +591,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
590
591
  description: "You have selected today or a future date. The stock balance will be refreshed accordingly."
591
592
  })) : b("", !0)
592
593
  ]),
593
- v.value && m.value && !j.value ? (n(), z(P, {
594
+ v.value && m.value && !H.value ? (n(), z(P, {
594
595
  key: 0,
595
596
  type: "info"
596
597
  }, {
@@ -608,7 +609,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
608
609
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
609
610
  }, [
610
611
  d[9] || (d[9] = ee(" • ")),
611
- p.closingId && E.value.get(p.closingId) ? (n(), y("span", yt, a(E.value.get(p.closingId)), 1)) : (n(), y("span", gt, a(p._id), 1)),
612
+ p.closingId && U.value.get(p.closingId) ? (n(), y("span", yt, a(U.value.get(p.closingId)), 1)) : (n(), y("span", gt, a(p._id), 1)),
612
613
  p.effectiveAt ? (n(), y("span", ht, " (" + a(new Date(p.effectiveAt).toLocaleString()) + ") ", 1)) : b("", !0)
613
614
  ]))), 128))
614
615
  ])
@@ -653,7 +654,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
653
654
  ]);
654
655
  };
655
656
  }
656
- }), Tt = { class: "fm-typo-en-heading-lg-600" }, Lt = { class: "flex flex-col gap-16" }, Ot = { class: "flex flex-col gap-4" }, Et = { class: "fm-typo-en-label-md-400 text-fm-color-typo-secondary" }, Ut = { class: "fm-typo-en-body-md-400" }, Pt = { class: "flex flex-col gap-4" }, Nt = { class: "fm-typo-en-label-md-400 text-fm-color-typo-secondary" }, Mt = { class: "fm-typo-en-body-md-400" }, Kt = { class: "flex flex-col gap-4" }, jt = { class: "fm-typo-en-label-md-400 text-fm-color-typo-secondary" }, Ht = { class: "flex gap-8 ml-auto" }, zt = /* @__PURE__ */ se({
657
+ }), Tt = { class: "fm-typo-en-heading-lg-600" }, Lt = { class: "flex flex-col gap-16" }, Ot = { class: "flex flex-col gap-4" }, Et = { class: "fm-typo-en-label-md-400 text-fm-color-typo-secondary" }, Ut = { class: "fm-typo-en-body-md-400" }, Pt = { class: "flex flex-col gap-4" }, Nt = { class: "fm-typo-en-label-md-400 text-fm-color-typo-secondary" }, Mt = { class: "fm-typo-en-body-md-400" }, Kt = { class: "flex flex-col gap-4" }, Ht = { class: "fm-typo-en-label-md-400 text-fm-color-typo-secondary" }, jt = { class: "flex gap-8 ml-auto" }, zt = /* @__PURE__ */ se({
657
658
  __name: "ClosingDetailDialog",
658
659
  props: {
659
660
  modelValue: { type: Boolean },
@@ -662,9 +663,9 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
662
663
  },
663
664
  emits: ["update:modelValue"],
664
665
  setup(ae, { emit: S }) {
665
- const { t: V } = ie(), K = _e(), t = ae, L = S, I = w({
666
+ const { t: V } = ie(), K = _e(), t = ae, O = S, I = w({
666
667
  get: () => t.modelValue,
667
- set: (l) => L("update:modelValue", l)
668
+ set: (l) => O("update:modelValue", l)
668
669
  }), k = g("");
669
670
  ce(I, (l) => {
670
671
  l || (k.value = "");
@@ -690,7 +691,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
690
691
  costs: l.costs,
691
692
  weightedAverage: l.weightedAverage
692
693
  };
693
- })), O = [
694
+ })), E = [
694
695
  {
695
696
  accessorKey: "skuName",
696
697
  header: () => V("inventory.ingredient.name", "Ingredient Name"),
@@ -745,7 +746,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
745
746
  const C = x("FmTextField"), h = x("FmTable"), F = x("FmButton"), B = x("FmDialog");
746
747
  return n(), z(B, {
747
748
  modelValue: I.value,
748
- "onUpdate:modelValue": s[2] || (s[2] = (E) => I.value = E),
749
+ "onUpdate:modelValue": s[2] || (s[2] = (U) => I.value = U),
749
750
  "close-button": "",
750
751
  dismissAway: "",
751
752
  "max-width": "900px"
@@ -754,19 +755,19 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
754
755
  o("div", Tt, a(m.value), 1)
755
756
  ]),
756
757
  default: R(() => {
757
- var E;
758
+ var U;
758
759
  return [
759
760
  o("div", Lt, [
760
761
  o("div", Ot, [
761
762
  o("div", Et, a(t.type === "closing" ? i(V)("inventory.closing.history.closingId") : i(V)("inventory.closing.history.snapshotId", "Snapshot ID")), 1),
762
- o("div", Ut, a(((E = t.data) == null ? void 0 : E._id) ?? "-"), 1)
763
+ o("div", Ut, a(((U = t.data) == null ? void 0 : U._id) ?? "-"), 1)
763
764
  ]),
764
765
  o("div", Pt, [
765
766
  o("div", Nt, a(i(V)("inventory.closing.history.date")), 1),
766
767
  o("div", Mt, a(v.value), 1)
767
768
  ]),
768
769
  o("div", Kt, [
769
- o("div", jt, a(i(V)("inventory.closing.history.ingredientBalances", "Ingredient Balances")) + " (" + a(D.value.length) + ") ", 1),
770
+ o("div", Ht, a(i(V)("inventory.closing.history.ingredientBalances", "Ingredient Balances")) + " (" + a(D.value.length) + ") ", 1),
770
771
  _(C, {
771
772
  modelValue: k.value,
772
773
  "onUpdate:modelValue": s[0] || (s[0] = (W) => k.value = W),
@@ -774,7 +775,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
774
775
  }, null, 8, ["modelValue"]),
775
776
  _(h, {
776
777
  "row-data": $.value,
777
- "column-defs": O,
778
+ "column-defs": E,
778
779
  pagination: { pageSize: 10 },
779
780
  "search-value": k.value
780
781
  }, null, 8, ["row-data", "search-value"])
@@ -783,10 +784,10 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
783
784
  ];
784
785
  }),
785
786
  "dialog-footer": R(() => [
786
- o("div", Ht, [
787
+ o("div", jt, [
787
788
  _(F, {
788
789
  variant: "tertiary",
789
- onClick: s[1] || (s[1] = (E) => I.value = !1),
790
+ onClick: s[1] || (s[1] = (U) => I.value = !1),
790
791
  label: "Close"
791
792
  })
792
793
  ])
@@ -798,11 +799,11 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
798
799
  }), Wt = { class: "flex flex-col gap-16 p-16" }, Yt = { class: "flex flex-col gap-16" }, Gt = { class: "flex gap-8 ml-auto" }, no = /* @__PURE__ */ se({
799
800
  __name: "ClosingHistoryView",
800
801
  setup(ae) {
801
- var d, U;
802
- const { t: S } = ie(), V = re(), K = be(), t = he(), L = xe(), I = de(), k = g("closings"), D = [
802
+ var d, T;
803
+ const { t: S } = ie(), V = re(), K = be(), t = he(), O = xe(), I = de(), k = g("closings"), D = [
803
804
  { label: "Closings", value: "closings" },
804
805
  { label: "Snapshots", value: "snapshots" }
805
- ], v = g([]), m = g(!1), $ = g([]), O = g(!1), l = g(!1), s = g("closing"), C = g(null);
806
+ ], v = g([]), m = g(!1), $ = g([]), E = g(!1), l = g(!1), s = g("closing"), C = g(null);
806
807
  function h(c) {
807
808
  return [
808
809
  c.getFullYear(),
@@ -810,7 +811,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
810
811
  String(c.getDate()).padStart(2, "0")
811
812
  ].join("-");
812
813
  }
813
- const F = () => h(new Date(Date.now() - 864e5)), B = g(F()), E = w(() => {
814
+ const F = () => h(new Date(Date.now() - 864e5)), B = g(F()), U = w(() => {
814
815
  const c = [];
815
816
  return k.value === "closings" ? c.push(
816
817
  {
@@ -849,14 +850,14 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
849
850
  prependIcon: "refresh"
850
851
  }
851
852
  ), c;
852
- }), W = g(), j = g();
853
+ }), W = g(), H = g();
853
854
  function Y(c) {
854
855
  var f, A;
855
856
  switch (c) {
856
857
  case "recalculation":
857
- return k.value === "closings" ? (f = W.value) == null ? void 0 : f.open() : (A = j.value) == null ? void 0 : A.open();
858
+ return k.value === "closings" ? (f = W.value) == null ? void 0 : f.open() : (A = H.value) == null ? void 0 : A.open();
858
859
  case "initiateOpening": {
859
- L.open({
860
+ O.open({
860
861
  title: "Initiate Opening Balance",
861
862
  message: "Initiate opening balance if no opening balance exists for the current location.",
862
863
  primaryActions: { text: "Confirm", close: !0 }
@@ -889,9 +890,9 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
889
890
  }
890
891
  }
891
892
  }
892
- const M = g(!1), H = g(!1), X = F();
893
+ const M = g(!1), j = g(!1), X = F();
893
894
  async function te() {
894
- H.value = !0;
895
+ j.value = !0;
895
896
  try {
896
897
  await V.initiateStockSnapshot(B.value), I.open({
897
898
  message: "Stock snapshot created successfully.",
@@ -903,7 +904,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
903
904
  type: "error"
904
905
  });
905
906
  } finally {
906
- H.value = !1;
907
+ j.value = !1;
907
908
  }
908
909
  }
909
910
  const oe = [
@@ -938,7 +939,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
938
939
  cell: (c) => c.getValue() || "-"
939
940
  }
940
941
  ], Z = [
941
- ...(U = t.sessionUser.value) != null && U.role.isAdmin ? [
942
+ ...(T = t.sessionUser.value) != null && T.role.isAdmin ? [
942
943
  {
943
944
  accessorKey: "_id",
944
945
  header: () => q(
@@ -988,14 +989,14 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
988
989
  }
989
990
  async function J() {
990
991
  if (K.currentLocationDBName) {
991
- O.value = !0;
992
+ E.value = !0;
992
993
  try {
993
994
  const c = await V.getLastNStockSnapshots(30);
994
995
  $.value = c;
995
996
  } catch (c) {
996
997
  console.error("Error fetching stock snapshots:", c), $.value = [];
997
998
  } finally {
998
- O.value = !1;
999
+ E.value = !1;
999
1000
  }
1000
1001
  }
1001
1002
  }
@@ -1010,7 +1011,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
1010
1011
  }), (c, f) => {
1011
1012
  const A = x("FmTabs"), P = x("FmTable"), u = x("FmDatePicker"), p = x("FmButton"), le = x("FmDialog");
1012
1013
  return n(), z(ge, {
1013
- actions: E.value,
1014
+ actions: U.value,
1014
1015
  title: i(S)("inventory.closing.history.title"),
1015
1016
  "onClick:action": Y
1016
1017
  }, {
@@ -1022,7 +1023,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
1022
1023
  }),
1023
1024
  _(A, {
1024
1025
  "model-value": k.value,
1025
- "onUpdate:modelValue": f[0] || (f[0] = (T) => k.value = T),
1026
+ "onUpdate:modelValue": f[0] || (f[0] = (L) => k.value = L),
1026
1027
  items: D
1027
1028
  }, null, 8, ["model-value"]),
1028
1029
  k.value === "closings" ? (n(), y(Q, { key: 0 }, [
@@ -1031,16 +1032,16 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
1031
1032
  loading: m.value,
1032
1033
  "row-data": v.value,
1033
1034
  "column-defs": oe,
1034
- onRowClick: f[1] || (f[1] = (T) => r(T.original))
1035
+ onRowClick: f[1] || (f[1] = (L) => r(L.original))
1035
1036
  }, null, 8, ["loading", "row-data"])
1036
1037
  ], 64)) : b("", !0),
1037
1038
  k.value === "snapshots" ? (n(), y(Q, { key: 1 }, [
1038
1039
  f[10] || (f[10] = o("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Displaying the last 30 stock snapshot records. Snapshots are generated based on adjustments from the last 60 days. Click on a row to view details. ", -1)),
1039
1040
  _(P, {
1040
- loading: O.value,
1041
+ loading: E.value,
1041
1042
  "row-data": $.value,
1042
1043
  "column-defs": Z,
1043
- onRowClick: f[2] || (f[2] = (T) => e(T.original))
1044
+ onRowClick: f[2] || (f[2] = (L) => e(L.original))
1044
1045
  }, null, 8, ["loading", "row-data"])
1045
1046
  ], 64)) : b("", !0)
1046
1047
  ]),
@@ -1049,23 +1050,23 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
1049
1050
  "show-button": !1,
1050
1051
  ref_key: "recalculationDialogRef",
1051
1052
  ref: W,
1052
- onSubmitted: f[3] || (f[3] = (T) => G())
1053
+ onSubmitted: f[3] || (f[3] = (L) => G())
1053
1054
  }, null, 512),
1054
1055
  _(Bt, {
1055
1056
  "show-button": !1,
1056
1057
  ref_key: "snapshotRecalculationDialogRef",
1057
- ref: j,
1058
- onSubmitted: f[4] || (f[4] = (T) => J())
1058
+ ref: H,
1059
+ onSubmitted: f[4] || (f[4] = (L) => J())
1059
1060
  }, null, 512),
1060
1061
  _(zt, {
1061
1062
  modelValue: l.value,
1062
- "onUpdate:modelValue": f[5] || (f[5] = (T) => l.value = T),
1063
+ "onUpdate:modelValue": f[5] || (f[5] = (L) => l.value = L),
1063
1064
  type: s.value,
1064
1065
  data: C.value
1065
1066
  }, null, 8, ["modelValue", "type", "data"]),
1066
1067
  _(le, {
1067
1068
  modelValue: M.value,
1068
- "onUpdate:modelValue": f[8] || (f[8] = (T) => M.value = T),
1069
+ "onUpdate:modelValue": f[8] || (f[8] = (L) => M.value = L),
1069
1070
  "close-button": "",
1070
1071
  dismissAway: "",
1071
1072
  "max-width": "400px"
@@ -1078,7 +1079,7 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
1078
1079
  f[12] || (f[12] = o("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Create a stock snapshot for the selected date. The snapshot will capture stock balances based on adjustments from the last 60 days before the selected date. ", -1)),
1079
1080
  _(u, {
1080
1081
  modelValue: B.value,
1081
- "onUpdate:modelValue": f[6] || (f[6] = (T) => B.value = T),
1082
+ "onUpdate:modelValue": f[6] || (f[6] = (L) => B.value = L),
1082
1083
  label: "Snapshot Date",
1083
1084
  max: i(X)
1084
1085
  }, null, 8, ["modelValue", "max"])
@@ -1088,15 +1089,15 @@ const Se = { class: "fm-typo-en-heading-lg-600" }, Ve = { class: "flex flex-col
1088
1089
  o("div", Gt, [
1089
1090
  _(p, {
1090
1091
  variant: "tertiary",
1091
- onClick: f[7] || (f[7] = (T) => M.value = !1),
1092
+ onClick: f[7] || (f[7] = (L) => M.value = !1),
1092
1093
  label: "Cancel",
1093
- disabled: H.value
1094
+ disabled: j.value
1094
1095
  }, null, 8, ["disabled"]),
1095
1096
  _(p, {
1096
1097
  variant: "primary",
1097
1098
  onClick: te,
1098
1099
  label: "Confirm",
1099
- loading: H.value
1100
+ loading: j.value
1100
1101
  }, null, 8, ["loading"])
1101
1102
  ])
1102
1103
  ]),
@@ -4,23 +4,23 @@ import { useI18n as oe, useCoreStore as Ce } from "@feedmepos/mf-common";
4
4
  import { useDialog as _e, useDialogChild as Ze, useSnackbar as xe, FmButtonVariant as fe, components as et, useProxiedModel as tt, useBreakpoints as ot } from "@feedmepos/ui-library";
5
5
  import { defineStore as Be, storeToRefs as Ne } from "pinia";
6
6
  import { F as Z } from "./form-mode.enum-BKiNVH6A.js";
7
- import { a as we } from "./closing-template-C56_2aLc.js";
8
- import { u as Ie, c as Ue, a as De, l as nt } from "./app-D-l9FM2n.js";
9
- import { t as be, a as Se, d as Ae, s as Le, r as st } from "./xlsx.util-D_XTOHMv.js";
7
+ import { a as we } from "./closing-template-0jLV_s0d.js";
8
+ import { u as Ie, c as Ue, a as De, l as nt } from "./app-B790gOK1.js";
9
+ import { t as be, a as Se, d as Ae, s as Le, r as st } from "./xlsx.util-jC5etKar.js";
10
10
  import { F as at } from "./FmDroppableField-J0xUsOTV.js";
11
- import { f as Ve, a as ge } from "./date2-CRMgo5NH.js";
11
+ import { f as Ve, a as ge } from "./date2-BEmmexd8.js";
12
12
  import { D as ye, R as Y } from "./row-action.enum-DQ9bJ_uv.js";
13
13
  import { c as lt } from "./component-kqxARxvM.js";
14
- import { f as rt } from "./format-time-from-id-BuMdYlM9.js";
15
- import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bw3UN_Zn.js";
16
- import { u as ct } from "./netsuite-Dyw1JtQL.js";
17
- import { u as ut } from "./duplicate-template-BrEOP-1V.js";
18
- import { _ as mt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-QvgQwP6t.js";
19
- import { R as dt, A as pt } from "./rules-BsVkaxL5.js";
20
- import { u as ze } from "./use-ingredient-select-dialog-BASkk3-u.js";
21
- import { d as ft } from "./defineDeepModel-DDX70CM6.js";
22
- import { u as yt } from "./use-template-enabled-locations-gwYjb6_p.js";
23
- import { _ as vt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-BRrHPAJj.js";
14
+ import { f as rt } from "./format-time-from-id-Dj-j01eE.js";
15
+ import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BiMvxm3x.js";
16
+ import { u as ct } from "./netsuite-BMQZw2dt.js";
17
+ import { u as ut } from "./duplicate-template-CShJdJ8d.js";
18
+ import { _ as mt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C1-Z8zpZ.js";
19
+ import { R as dt, A as pt } from "./rules-DuDYwy_d.js";
20
+ import { u as ze } from "./use-ingredient-select-dialog-CkNu7fD6.js";
21
+ import { d as ft } from "./defineDeepModel-emCSlL_h.js";
22
+ import { u as yt } from "./use-template-enabled-locations-CRF0AM-M.js";
23
+ import { _ as vt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-BbY1p0bB.js";
24
24
  import { _ as gt, F as ve } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
25
25
  import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
26
26
  const ke = Be(
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as p, computed as f, watchEffect as d, resolveComponent as n, openBlock as _, createElementBlock as v, createVNode as o, createElementVNode as c } from "vue";
2
2
  import { useRouter as g } from "vue-router";
3
3
  import { useCoreStore as x } from "@feedmepos/mf-common";
4
- import { u as S } from "./useNavigationMenu-Be-99JmQ.js";
5
- import { u as y } from "./feature-Bl6yUhw_.js";
4
+ import { u as S } from "./useNavigationMenu-BQZghwYI.js";
5
+ import { u as y } from "./feature-BFFJbkBm.js";
6
6
  const C = { class: "flex flex-col items-center w-full h-full gap-24" }, V = /* @__PURE__ */ p({
7
7
  __name: "DefaultView",
8
8
  setup(F) {