@feedmepos/mf-inventory-portal 0.0.23-dev.24 → 0.0.23-dev.26

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 (49) hide show
  1. package/dist/{App-dQy0_X6Q.js → App-C0hXAs5E.js} +49 -45
  2. package/dist/{ApprovalView-CxwAuXae.js → ApprovalView-Db5Aq3gK.js} +15 -15
  3. package/dist/{BindingsDialog-BX8J03Uc.js → BindingsDialog-dKNKrWKv.js} +9 -9
  4. package/dist/{BindingsPicker-CAW_3sSv.js → BindingsPicker-dN1bNnc0.js} +5 -5
  5. package/dist/{BindingsTable-7UmxSmdW.js → BindingsTable-BA461fcU.js} +8 -8
  6. package/dist/{ClosingDraftView-DukJAMlK.js → ClosingDraftView-aRHVKTA6.js} +68 -69
  7. package/dist/{ClosingTemplateView-Dm7_gMTo.js → ClosingTemplateView-BYnC4Whw.js} +58 -61
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DN3N20Nb.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BdjeCWX1.js} +13 -13
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BrPRiS_u.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CP2euPwM.js} +46 -46
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bln1lReW.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-C4aYGbW2.js} +7 -7
  11. package/dist/{IngredientGroupView-BKIJHeh9.js → IngredientGroupView-vdG6npct.js} +40 -40
  12. package/dist/{IngredientsView-Blnohl3I.js → IngredientsView-DWRAoLHx.js} +207 -210
  13. package/dist/{IntegrationView-Dna4bUA7.js → IntegrationView-Dp_A-Swf.js} +89 -90
  14. package/dist/{InventoryBindingForm-D6HSF8Wn.js → InventoryBindingForm-D_wSUUKv.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CnWvwNjJ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-2Mnqz6HN.js} +27 -27
  16. package/dist/{InventoryBindingSummary-CNNCv8NX.js → InventoryBindingSummary-oyRdM7Pd.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CrMkMTAt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CSabNdfV.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Cw3E2NKS.js → PremiumBadge.vue_vue_type_script_setup_true_lang-tu1Al7wM.js} +17 -18
  19. package/dist/{PurchaseOrderPrintPreview-PEN03dZK.js → PurchaseOrderPrintPreview-B4m8t90I.js} +1 -1
  20. package/dist/{ReceiveRequestView-rTUhjMLY.js → ReceiveRequestView-DIJb_dU2.js} +26 -27
  21. package/dist/{RecipeView-V1hx1AUG.js → RecipeView-Ch5KMGLJ.js} +47 -48
  22. package/dist/{StockView-B5nDn8nO.js → StockView-BVuzsMG7.js} +7 -7
  23. package/dist/{SupplierView-DyyRxm6k.js → SupplierView-DEC2LmtN.js} +203 -206
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D6oZOwHL.js → TransferDetails.vue_vue_type_script_setup_true_lang-9UZWws3P.js} +61 -62
  25. package/dist/{TransferTemplateView-OTR9Re51.js → TransferTemplateView-DAMQ_Whn.js} +144 -145
  26. package/dist/{UnitView-DGhm1JXD.js → UnitView-CFwHRgQ-.js} +3 -3
  27. package/dist/{WarehouseView-DMAvFisd.js → WarehouseView-HE71bVOX.js} +52 -52
  28. package/dist/app-CRSuR04o.js +84133 -0
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-DuJEFEYp.js → decimal-B5DqWjel.js} +1 -1
  31. package/dist/{feature-BRqas45f.js → feature-DxNphYNO.js} +1 -1
  32. package/dist/{format-unit-display-G6VtlQe7.js → format-unit-display-D40MKAIU.js} +50 -53
  33. package/dist/{index-D3f51k-I.js → index-BWDsx2Ik.js} +1 -1
  34. package/dist/{stock-DZkj2LE0.js → stock-BAPZYfON.js} +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/{supplier-Cm5Cw3u7.js → supplier-Bp7xaTFX.js} +1 -1
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{use-inventory-binding-dialog-DCt0wUiw.js → use-inventory-binding-dialog-cxY29PPx.js} +1 -1
  39. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
  40. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
  41. package/dist/views/adjustment-template/import/export.d.ts +60 -0
  42. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1 -1
  43. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1 -1
  44. package/package.json +1 -1
  45. package/dist/FmDroppableField-BqZcDO2v.js +0 -154
  46. package/dist/app-DQRbwx-z.js +0 -58903
  47. package/dist/netsuite-D4b5JceM.js +0 -251
  48. package/dist/xlsx-9Gc42bxv.js +0 -24004
  49. package/dist/xlsx.util-CEvUL8mk.js +0 -78
@@ -1,10 +1,9 @@
1
- import { defineComponent as fe, ref as z, resolveComponent as U, openBlock as w, createBlock as ne, withCtx as Z, createElementVNode as o, createTextVNode as ye, toDisplayString as I, unref as b, createVNode as _, h as N, computed as T, onMounted as Ue, watch as He, isRef as xe, createCommentVNode as te, createElementBlock as F, Fragment as J, normalizeClass as ae, renderList as ce, normalizeStyle as De, Teleport as Ie, mergeProps as ze } from "vue";
2
- import { N as Ee, u as pe, a9 as O, k as Le, y as ve, h as S, t as Ne, z as se, n as Oe, aa as Ae, ab as _e, a0 as we, ac as ke, ad as oe, a6 as Ke, a8 as q, K as Ce, D as be, f as ie, e as Ve, d as Ye, a as Ge, p as qe, q as Ze, r as We, s as Je, v as ue } from "./app-DQRbwx-z.js";
3
- import { useCoreStore as Qe, useI18n as je } from "@feedmepos/mf-common";
4
- import { useSnackbar as ge, useDialog as Xe, useProxiedModel as et, components as de, useBreakpoints as tt } from "@feedmepos/ui-library";
5
- import { defineStore as Se, storeToRefs as at } from "pinia";
6
- import { t as nt, d as ot } from "./xlsx.util-CEvUL8mk.js";
7
- import { u as Be } from "./stock-DZkj2LE0.js";
1
+ import { defineComponent as fe, ref as z, resolveComponent as U, openBlock as w, createBlock as ne, withCtx as W, createElementVNode as o, createTextVNode as ye, toDisplayString as I, unref as b, createVNode as _, h as N, computed as M, onMounted as Ue, watch as He, isRef as xe, createCommentVNode as te, createElementBlock as F, Fragment as J, normalizeClass as ae, renderList as ce, normalizeStyle as De, Teleport as Ie, mergeProps as ze } from "vue";
2
+ import { W as Ee, u as pe, ah as O, l as Le, J as ve, i as S, t as Ne, K as se, o as Oe, p as Ke, q as Ve, ai as Ae, aj as _e, a6 as we, ak as ke, al as oe, ac as Ye, ag as q, T as Ce, D as be, h as ie, f as Ge, e as qe, a as We, x as Ze, y as Je, z as Qe, B as Xe, E as ue } from "./app-CRSuR04o.js";
3
+ import { useCoreStore as et, useI18n as je } from "@feedmepos/mf-common";
4
+ import { useSnackbar as ge, useDialog as tt, useProxiedModel as at, components as de, useBreakpoints as nt } from "@feedmepos/ui-library";
5
+ import { defineStore as Se, storeToRefs as ot } from "pinia";
6
+ import { u as Be } from "./stock-BAPZYfON.js";
8
7
  import { E as st } from "./empty-placeholder-wf6-BWE8.js";
9
8
  const Fe = Ee((a, l) => {
10
9
  function e() {
@@ -66,7 +65,7 @@ const Fe = Ee((a, l) => {
66
65
  class: "flex flex-col gap-32",
67
66
  disabled: v.value
68
67
  }, {
69
- default: Z(() => [
68
+ default: W(() => [
70
69
  o("div", rt, [
71
70
  y[2] || (y[2] = ye(" You are about to ")),
72
71
  o("span", lt, I(f.action == b(O).enum.approveDraft ? "approve" : "reject"), 1),
@@ -177,7 +176,7 @@ function pt(a) {
177
176
  ];
178
177
  }
179
178
  function vt(a, l) {
180
- var r, s, p, H, M, j, Q;
179
+ var r, s, p, H, T, j, Q;
181
180
  const e = l.groupBy(
182
181
  (h) => h.id,
183
182
  (h) => h.balance
@@ -185,7 +184,7 @@ function vt(a, l) {
185
184
  var K;
186
185
  const k = ((K = e.get(h.sku._id)) == null ? void 0 : K[0]) ?? ut;
187
186
  return mt(h, k);
188
- }), d = ft(a.items), i = Qe().currentBusiness.value, f = pt(d), y = [
187
+ }), d = ft(a.items), i = et().currentBusiness.value, f = pt(d), y = [
189
188
  ["Business name:", i == null ? void 0 : i.name],
190
189
  ["Business ID:", i == null ? void 0 : i._id],
191
190
  ["Menu version", i == null ? void 0 : i.menuVersion],
@@ -196,7 +195,7 @@ function vt(a, l) {
196
195
  ["Recent action", a.approvedAt ? "Approve" : a.rejectionHistory ? "Reject" : ""],
197
196
  [
198
197
  "Action by",
199
- a.approvedAt ? (p = a.approvedBy) == null ? void 0 : p.name : a.rejectionHistory ? (M = (H = a.rejectionHistory[0]) == null ? void 0 : H.rejectedBy) == null ? void 0 : M.name : ""
198
+ a.approvedAt ? (p = a.approvedBy) == null ? void 0 : p.name : a.rejectionHistory ? (T = (H = a.rejectionHistory[0]) == null ? void 0 : H.rejectedBy) == null ? void 0 : T.name : ""
200
199
  ],
201
200
  [
202
201
  "Action at",
@@ -209,13 +208,13 @@ function vt(a, l) {
209
208
  [],
210
209
  f.map((h) => h.name),
211
210
  ...c.map((h) => f.map((k) => h[k.id]))
212
- ], B = f.map((h) => `system:${h.id}`), R = nt(y, B), $ = `[${i == null ? void 0 : i.name}] closing draft (${Oe(new Date(a.updatedAt))}).xlsx`;
213
- return ot(R, $), $;
211
+ ], B = f.map((h) => `system:${h.id}`), R = Oe(y, B), $ = `[${i == null ? void 0 : i.name}] closing draft (${Ke(new Date(a.updatedAt))}).xlsx`;
212
+ return Ve(R, $), $;
214
213
  }
215
214
  const me = Se(
216
215
  "closingDraftActions",
217
216
  function() {
218
- const l = Xe(), e = ge(), c = ke(), d = Be(), v = z(!1), i = z();
217
+ const l = tt(), e = ge(), c = ke(), d = Be(), v = z(!1), i = z();
219
218
  function f(s) {
220
219
  const p = {
221
220
  draft: s
@@ -225,8 +224,8 @@ const me = Se(
225
224
  async function y(s) {
226
225
  var H;
227
226
  if (s.status === oe.enum.COMPLETED) {
228
- const M = s.closingId;
229
- if (!M)
227
+ const T = s.closingId;
228
+ if (!T)
230
229
  return e.open({
231
230
  title: "Something went wrong",
232
231
  message: "Closing draft is completed but closing document cannot be found.",
@@ -234,7 +233,7 @@ const me = Se(
234
233
  }), console.error("Closing draft is completed but closing document cannot be found.", {
235
234
  draftId: s == null ? void 0 : s._id
236
235
  }), [];
237
- const j = await c.getClosingById(M);
236
+ const j = await c.getClosingById(T);
238
237
  return (j == null ? void 0 : j.skus) ?? [];
239
238
  } else
240
239
  return await d.readStockBalance(), ((H = d.stockBalance) == null ? void 0 : H.skus) ?? [];
@@ -287,7 +286,7 @@ const me = Se(
287
286
  };
288
287
  }
289
288
  );
290
- function Me(a) {
289
+ function Te(a) {
291
290
  switch (a) {
292
291
  case "DRAFT":
293
292
  return "fm-status-badge-draft";
@@ -299,7 +298,7 @@ function Me(a) {
299
298
  return "fm-status-badge-complete";
300
299
  }
301
300
  }
302
- const gt = Se("closingTable", function() {
301
+ const gt = Se("closingDraftTable", function() {
303
302
  const { t: l } = je(), e = me(), c = z(new Array()), d = z(!1), v = pe(), i = Fe();
304
303
  async function f() {
305
304
  if (c.value = [], !!v._currentLocation) {
@@ -334,7 +333,7 @@ const gt = Se("closingTable", function() {
334
333
  e.closeDraftDialog(), f();
335
334
  }
336
335
  function R(r, s) {
337
- switch (s = Ye(s), r) {
336
+ switch (s = qe(s), r) {
338
337
  case ie.Details:
339
338
  return e.viewDraft(s);
340
339
  case ie.Export:
@@ -352,7 +351,7 @@ const gt = Se("closingTable", function() {
352
351
  accessorKey: "_id",
353
352
  header: () => l("inventory.closing.table.createdAt"),
354
353
  cell(r) {
355
- return Ke(`${r.getValue()}`);
354
+ return Ye(`${r.getValue()}`);
356
355
  },
357
356
  enableSorting: !0
358
357
  },
@@ -406,7 +405,7 @@ const gt = Se("closingTable", function() {
406
405
  N(
407
406
  "div",
408
407
  {
409
- class: ["fm-status-badge", Me(p)]
408
+ class: ["fm-status-badge", Te(p)]
410
409
  },
411
410
  Ce(p)
412
411
  )
@@ -431,9 +430,9 @@ const gt = Se("closingTable", function() {
431
430
  value: O.enum.rejectDraft
432
431
  }
433
432
  ];
434
- return Ve(
433
+ return Ge(
435
434
  [...p, ...s.status === oe.enum.DRAFT ? H : []],
436
- (M) => R(M, s)
435
+ (T) => R(T, s)
437
436
  );
438
437
  },
439
438
  enableSorting: !1,
@@ -464,7 +463,7 @@ const gt = Se("closingTable", function() {
464
463
  }, $t = ["src"], Rt = {
465
464
  key: 1,
466
465
  class: "px-4 flex flex-col"
467
- }, Mt = { class: "flex gap-12 content-stretch" }, Tt = {
466
+ }, Tt = { class: "flex gap-12 content-stretch" }, Mt = {
468
467
  class: "flex flex-col w-24",
469
468
  name: "circles"
470
469
  }, Pt = { class: "flex-1 flex flex-col items-center" }, Ut = { class: "flex-1 flex flex-col items-center" }, Ht = {
@@ -484,16 +483,16 @@ const gt = Se("closingTable", function() {
484
483
  },
485
484
  emits: ["submitted"],
486
485
  setup(a, { emit: l }) {
487
- const e = a, c = Be(), d = me(), v = et(e, "show"), i = z(!1), f = z(new Array()), y = ke(), B = ge(), R = Ge(), $ = l, r = T(() => {
486
+ const e = a, c = Be(), d = me(), v = at(e, "show"), i = z(!1), f = z(new Array()), y = ke(), B = ge(), R = We(), $ = l, r = M(() => {
488
487
  var n, t;
489
488
  return [
490
489
  ...((n = e.draft) == null ? void 0 : n.items) ?? [],
491
490
  ...((t = e.draft) == null ? void 0 : t.negativeStockItems) ?? []
492
491
  ];
493
- }), s = T(() => {
492
+ }), s = M(() => {
494
493
  const n = r.value.map((t) => t.sku);
495
494
  return n.sort((t, m) => t.code.localeCompare(m.code)), n;
496
- }), p = T(() => r.value.groupBy(
495
+ }), p = M(() => r.value.groupBy(
497
496
  (t) => t.sku._id,
498
497
  (t) => t.measurementsAmounts.filter((m) => !m.measurement.abbrev.toLocaleLowerCase().includes("inactive")).map((m) => m.measurement.id)
499
498
  ));
@@ -503,7 +502,7 @@ const gt = Se("closingTable", function() {
503
502
  n && (V.value = ee[0], j());
504
503
  }
505
504
  );
506
- const H = se(0), M = se(100);
505
+ const H = se(0), T = se(100);
507
506
  async function j() {
508
507
  var t, m, u;
509
508
  i.value = !0;
@@ -535,12 +534,12 @@ const gt = Se("closingTable", function() {
535
534
  i.value = !1;
536
535
  }
537
536
  }
538
- const Q = T(
537
+ const Q = M(
539
538
  () => f.value.groupBy(
540
539
  (n) => n.id,
541
540
  (n) => n.balance
542
541
  )
543
- ), h = T(() => r.value.groupBy((n) => n.sku._id));
542
+ ), h = M(() => r.value.groupBy((n) => n.sku._id));
544
543
  function k(n) {
545
544
  return N(
546
545
  de.FmTooltip,
@@ -555,7 +554,7 @@ const gt = Se("closingTable", function() {
555
554
  }
556
555
  );
557
556
  }
558
- const K = T(() => {
557
+ const K = M(() => {
559
558
  const n = s.value.reduce((m, u) => {
560
559
  var x, g, P, Y;
561
560
  return console.log(
@@ -680,9 +679,9 @@ const gt = Se("closingTable", function() {
680
679
  }
681
680
  }
682
681
  ];
683
- }), re = T(() => K.value.map((n) => n.size ?? 0).reduce((n, t) => n + t)), le = T(() => s.value.map((n) => {
684
- var L, W;
685
- const t = (L = h.value.get(n._id)) == null ? void 0 : L[0], m = ((W = Q.value.get(n._id)) == null ? void 0 : W[0]) ?? H;
682
+ }), re = M(() => K.value.map((n) => n.size ?? 0).reduce((n, t) => n + t)), le = M(() => s.value.map((n) => {
683
+ var L, Z;
684
+ const t = (L = h.value.get(n._id)) == null ? void 0 : L[0], m = ((Z = Q.value.get(n._id)) == null ? void 0 : Z[0]) ?? H;
686
685
  if (!t)
687
686
  return {
688
687
  code: n.code,
@@ -697,7 +696,7 @@ const gt = Se("closingTable", function() {
697
696
  const u = $e(t), x = Ae(u, m), g = m.amount === 0 ? null : _e(x, {
698
697
  ...m,
699
698
  amount: Math.abs(m.amount)
700
- }), P = g ? ve(g, M) : null;
699
+ }), P = g ? ve(g, T) : null;
701
700
  return {
702
701
  code: n.code,
703
702
  name: n.name,
@@ -712,7 +711,7 @@ const gt = Se("closingTable", function() {
712
711
  adjustedAmount: +S(x),
713
712
  adjustedDiffPercentage: P ? +S(we(P, 2)) : null
714
713
  };
715
- })), X = T(() => {
714
+ })), X = M(() => {
716
715
  var t, m;
717
716
  if (!e.draft) return [];
718
717
  const n = e.draft.approvedAt ? {
@@ -769,7 +768,7 @@ const gt = Se("closingTable", function() {
769
768
  label: "Action history",
770
769
  value: "history"
771
770
  }
772
- ], V = z(ee[0]), E = T(() => {
771
+ ], V = z(ee[0]), E = M(() => {
773
772
  var t, m, u, x;
774
773
  return [
775
774
  ...(((t = e.draft) == null ? void 0 : t.rejectionHistory) ?? []).map(
@@ -807,15 +806,15 @@ const gt = Se("closingTable", function() {
807
806
  ];
808
807
  });
809
808
  return (n, t) => {
810
- const m = U("FmButtonGroup"), u = U("FmMenuDivider"), x = U("FmCard"), g = U("FmButton"), P = U("FmCircularProgress"), Y = U("FmTable"), L = U("FmSpacer"), W = U("FmSideSheet");
811
- return w(), ne(W, {
809
+ const m = U("FmButtonGroup"), u = U("FmMenuDivider"), x = U("FmCard"), g = U("FmButton"), P = U("FmCircularProgress"), Y = U("FmTable"), L = U("FmSpacer"), Z = U("FmSideSheet");
810
+ return w(), ne(Z, {
812
811
  "dismiss-away": "",
813
812
  "max-width": 900,
814
813
  "model-value": b(v),
815
814
  "onUpdate:modelValue": t[5] || (t[5] = (A) => xe(v) ? v.value = A : null),
816
815
  header: "Closing details"
817
816
  }, {
818
- "side-sheet-footer": Z(() => {
817
+ "side-sheet-footer": W(() => {
819
818
  var A, D;
820
819
  return [
821
820
  o("div", Gt, [
@@ -838,7 +837,7 @@ const gt = Se("closingTable", function() {
838
837
  ])
839
838
  ];
840
839
  }),
841
- default: Z(() => [
840
+ default: W(() => [
842
841
  o("div", yt, [
843
842
  o("div", null, [
844
843
  _(m, {
@@ -852,14 +851,14 @@ const gt = Se("closingTable", function() {
852
851
  variant: "outlined",
853
852
  class: "flex flex-col gap-8 px-12 py-16"
854
853
  }, {
855
- default: Z(() => {
854
+ default: W(() => {
856
855
  var A, D;
857
856
  return [
858
857
  o("div", bt, [
859
858
  t[6] || (t[6] = o("div", { class: "fm-typo-en-body-lg-600" }, "Closing summary", -1)),
860
859
  o("div", ht, [
861
860
  o("div", {
862
- class: ae(["fm-status-badge", b(Me)(((A = n.draft) == null ? void 0 : A.status) ?? "DRAFT")])
861
+ class: ae(["fm-status-badge", b(Te)(((A = n.draft) == null ? void 0 : A.status) ?? "DRAFT")])
863
862
  }, I(b(Ce)(((D = n.draft) == null ? void 0 : D.status) ?? "")), 3)
864
863
  ])
865
864
  ]),
@@ -916,8 +915,8 @@ const gt = Se("closingTable", function() {
916
915
  V.value.value === "history" ? (w(), F("div", Bt, [
917
916
  E.value.length ? (w(), F("div", Rt, [
918
917
  (w(!0), F(J, null, ce(E.value, (A, D) => (w(), F(J, { key: D }, [
919
- o("div", Mt, [
920
- o("div", Tt, [
918
+ o("div", Tt, [
919
+ o("div", Mt, [
921
920
  o("div", Pt, [
922
921
  o("div", {
923
922
  class: ae([
@@ -966,7 +965,7 @@ const gt = Se("closingTable", function() {
966
965
  variant: "outlined",
967
966
  class: "py-12 px-16"
968
967
  }, {
969
- default: Z(() => [
968
+ default: W(() => [
970
969
  o("div", Kt, [
971
970
  (w(!0), F(J, null, ce(A.info, (C, G) => (w(), F("div", {
972
971
  key: G,
@@ -974,10 +973,10 @@ const gt = Se("closingTable", function() {
974
973
  }, [
975
974
  o("div", Vt, I(C == null ? void 0 : C.label), 1),
976
975
  o("div", Yt, [
977
- (w(!0), F(J, null, ce(C == null ? void 0 : C.values, (Te, Pe) => (w(), F("div", {
976
+ (w(!0), F(J, null, ce(C == null ? void 0 : C.values, (Me, Pe) => (w(), F("div", {
978
977
  key: Pe,
979
978
  class: "fm-typo-en-body-lg-600"
980
- }, I(Te), 1))), 128))
979
+ }, I(Me), 1))), 128))
981
980
  ])
982
981
  ]))), 128))
983
982
  ])
@@ -1007,22 +1006,22 @@ const gt = Se("closingTable", function() {
1007
1006
  }, 8, ["model-value"]);
1008
1007
  };
1009
1008
  }
1010
- }), Zt = { class: "flex-1 flex flex-col gap-8" }, Wt = { class: "flex flex-col" }, Jt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, ea = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, ia = /* @__PURE__ */ fe({
1009
+ }), Wt = { class: "flex-1 flex flex-col gap-8" }, Zt = { class: "flex flex-col" }, Jt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, ea = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, ca = /* @__PURE__ */ fe({
1011
1010
  __name: "ClosingDraftView",
1012
1011
  setup(a) {
1013
- const { t: l } = je(), { viewDraft: e } = me(), { viewClosingDraftProps: c, viewClosingDraftShow: d } = at(me()), v = pe(), i = gt(), f = qe(), { breakpoints: y } = tt();
1012
+ const { t: l } = je(), { viewDraft: e } = me(), { viewClosingDraftProps: c, viewClosingDraftShow: d } = ot(me()), v = pe(), i = gt(), f = Ze(), { breakpoints: y } = nt();
1014
1013
  v.watchLocation(i.fetchDrafts);
1015
- const B = T(() => i.loading), R = z(""), $ = T(() => y.value.xs || y.value.sm), r = T(() => $.value ? 10 : 20);
1016
- function s(M) {
1017
- switch (M) {
1014
+ const B = M(() => i.loading), R = z(""), $ = M(() => y.value.xs || y.value.sm), r = M(() => $.value ? 10 : 20);
1015
+ function s(T) {
1016
+ switch (T) {
1018
1017
  case "refresh":
1019
1018
  return i.fetchDrafts();
1020
1019
  }
1021
1020
  }
1022
- function p(M) {
1023
- return M;
1021
+ function p(T) {
1022
+ return T;
1024
1023
  }
1025
- const H = T(() => $.value ? [
1024
+ const H = M(() => $.value ? [
1026
1025
  {
1027
1026
  label: "Refresh",
1028
1027
  value: "refresh",
@@ -1035,15 +1034,15 @@ const gt = Se("closingTable", function() {
1035
1034
  isPrimary: !1
1036
1035
  }
1037
1036
  ]);
1038
- return (M, j) => {
1037
+ return (T, j) => {
1039
1038
  const Q = U("FmTable");
1040
1039
  return w(), F(J, null, [
1041
- _(Ze, {
1040
+ _(Je, {
1042
1041
  title: b(l)("inventory.closing.draft.title"),
1043
1042
  actions: H.value,
1044
1043
  "onClick:action": s
1045
1044
  }, {
1046
- default: Z(() => [
1045
+ default: W(() => [
1047
1046
  o("div", {
1048
1047
  class: ae([
1049
1048
  "flex flex-col gap-8 max-h-full",
@@ -1053,7 +1052,7 @@ const gt = Se("closingTable", function() {
1053
1052
  }
1054
1053
  ])
1055
1054
  }, [
1056
- _(We, {
1055
+ _(Qe, {
1057
1056
  "change-location": "",
1058
1057
  searchable: "",
1059
1058
  search: R.value,
@@ -1068,16 +1067,16 @@ const gt = Se("closingTable", function() {
1068
1067
  onRowClick: j[1] || (j[1] = (h) => b(e)(h.original)),
1069
1068
  "page-size": r.value
1070
1069
  }, {
1071
- "list-row": Z((h) => [
1072
- _(Je, {
1070
+ "list-row": W((h) => [
1071
+ _(Xe, {
1073
1072
  row: h,
1074
1073
  onRowClick: (k) => b(e)(k)
1075
1074
  }, {
1076
- default: Z((k) => {
1077
- var K, re, le, X, ee, V, E, n, t, m, u, x, g, P, Y, L, W, A, D, C;
1075
+ default: W((k) => {
1076
+ var K, re, le, X, ee, V, E, n, t, m, u, x, g, P, Y, L, Z, A, D, C;
1078
1077
  return [
1079
- o("div", Zt, [
1080
- o("div", Wt, [
1078
+ o("div", Wt, [
1079
+ o("div", Zt, [
1081
1080
  o("div", Jt, [
1082
1081
  _(b(ue), {
1083
1082
  render: (le = (re = (K = k._id) == null ? void 0 : K.column) == null ? void 0 : re.columnDef) == null ? void 0 : le.cell,
@@ -1103,7 +1102,7 @@ const gt = Se("closingTable", function() {
1103
1102
  ]),
1104
1103
  o("div", null, [
1105
1104
  _(b(ue), {
1106
- render: (A = (W = (L = k.status) == null ? void 0 : L.column) == null ? void 0 : W.columnDef) == null ? void 0 : A.cell,
1105
+ render: (A = (Z = (L = k.status) == null ? void 0 : L.column) == null ? void 0 : Z.columnDef) == null ? void 0 : A.cell,
1107
1106
  props: (C = (D = k.status) == null ? void 0 : D.getContext) == null ? void 0 : C.call(D)
1108
1107
  }, null, 8, ["render", "props"])
1109
1108
  ])
@@ -1131,5 +1130,5 @@ const gt = Se("closingTable", function() {
1131
1130
  }
1132
1131
  });
1133
1132
  export {
1134
- ia as default
1133
+ ca as default
1135
1134
  };