@feedmepos/mf-inventory-portal 1.2.10-dev.2 → 1.2.10-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 (52) hide show
  1. package/dist/{App-BWhxmKHS.js → App-DE0rygXX.js} +1 -1
  2. package/dist/{ApprovalView-CWKSx6tf.js → ApprovalView-9H9G2OWv.js} +17 -17
  3. package/dist/{BindingsDialog-pf7Pseqo.js → BindingsDialog-BjXHdsGH.js} +2 -2
  4. package/dist/{BindingsPicker-DPF6fGOz.js → BindingsPicker-BijILjQH.js} +4 -4
  5. package/dist/{BindingsTable-BOwDjj1w.js → BindingsTable-DlSpPTRi.js} +1 -1
  6. package/dist/{ClosingDraftView-BdPBSsbx.js → ClosingDraftView-BaDkJuyF.js} +123 -123
  7. package/dist/{ClosingTemplateView-CrFwfxa0.js → ClosingTemplateView-CdESDzwA.js} +26 -26
  8. package/dist/{DeliveryOrderPrintPreview-M96uWAH1.js → DeliveryOrderPrintPreview-Bwrd33F_.js} +9 -9
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BjdAAL2R.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-QlB_K9Yi.js} +16 -16
  10. package/dist/{FmMultiselectDialog-BR3zi2Qz.js → FmMultiselectDialog-CLxZbi3l.js} +4 -4
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-rT6wwbOn.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B6TbIvQI.js} +43 -43
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DXzgrzX9.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CtLFZtQZ.js} +7 -7
  13. package/dist/{IngredientGroupView-CEqIGjmQ.js → IngredientGroupView-DXQ2TKjI.js} +13 -13
  14. package/dist/IngredientsView-FLCGHbsn.js +2467 -0
  15. package/dist/{IntegrationView-CFguVXIq.js → IntegrationView-BKI0tf68.js} +24 -25
  16. package/dist/{InventoryBindingForm-KKLzZfag.js → InventoryBindingForm-BGov_1MJ.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-D1F8sNi4.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-4IM7dQuV.js} +12 -12
  18. package/dist/{InventoryBindingSummary-ypHlF4-M.js → InventoryBindingSummary-BQA0Sm_K.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BHTULAxS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bc5diF2E.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-qOPiI7X6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-s529wQrr.js} +1 -1
  21. package/dist/{PublishView-Dg9HHIt8.js → PublishView-DhZ5eMg0.js} +19 -19
  22. package/dist/{PurchaseOrderPrintPreview-NT9bddXA.js → PurchaseOrderPrintPreview-cMNE8VTL.js} +7 -7
  23. package/dist/{ReceiveRequestView-BqvQC4Yv.js → ReceiveRequestView-Cv-Cgi_o.js} +80 -80
  24. package/dist/{RecipeView-Cq8bWv-p.js → RecipeView-ipT51Tbl.js} +39 -39
  25. package/dist/{StockView-B8Sg9MkB.js → StockView-CKok9_oG.js} +839 -831
  26. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BnAwlQE1.js +172 -0
  27. package/dist/{SupplierView-B6PJPIjW.js → SupplierView-cGpKVDGP.js} +4 -4
  28. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CusQL6MO.js → TransferDetails.vue_vue_type_script_setup_true_lang-0ule7sK7.js} +11 -12
  29. package/dist/{TransferTemplateView-Q76fWi4K.js → TransferTemplateView-DrlLa0ed.js} +109 -109
  30. package/dist/{UnitView-Bcd_C1qi.js → UnitView-YFAtJ0CL.js} +16 -16
  31. package/dist/{WarehouseView-DhkwuXWo.js → WarehouseView-CV5pg-4p.js} +16 -16
  32. package/dist/{app-BLEVBe_A.js → app-CUMtg_U0.js} +11575 -11496
  33. package/dist/app.js +1 -1
  34. package/dist/{closing-template-C7_dXuIo.js → closing-template-Cyva214n.js} +1 -1
  35. package/dist/components/FmInventoryTableToolbar.vue.d.ts +7 -0
  36. package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
  37. package/dist/{decimal-8MxI03d0.js → decimal-117ZlAfM.js} +1 -1
  38. package/dist/{format-unit-display-CerhQXAR.js → format-unit-display-BXHj4DAV.js} +3 -3
  39. package/dist/{index-sEpAJ9CK.js → index-Da1f9OoS.js} +1 -1
  40. package/dist/{index-D-yaA6J1.js → index-PWnt_za9.js} +1 -1
  41. package/dist/{purchase-order-template-BkCYKaeL.js → purchase-order-template-AWsxLxPR.js} +1 -1
  42. package/dist/{stock-CXhe_jH3.js → stock-D7EiEqJe.js} +1 -1
  43. package/dist/stores/integration/netsuite.d.ts +25 -3
  44. package/dist/style.css +1 -1
  45. package/dist/{supplier-DxTkTi0f.js → supplier-DQmyhp0R.js} +1 -1
  46. package/dist/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/{use-ingredient-select-dialog-lmLojXEr.js → use-ingredient-select-dialog-C37DLY6c.js} +4 -4
  48. package/dist/{use-inventory-binding-dialog-DAMV-jsc.js → use-inventory-binding-dialog-CmZereh8.js} +1 -1
  49. package/package.json +1 -1
  50. package/dist/FmAdminBadge-yFwlzxM2.js +0 -44
  51. package/dist/IngredientsView-BjXPJZ3X.js +0 -2313
  52. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DAWM5EXt.js +0 -158
@@ -1,9 +1,9 @@
1
- import { defineComponent as Te, ref as V, computed as U, onMounted as Ue, resolveComponent as P, openBlock as w, createElementBlock as L, Fragment as Q, createTextVNode as Z, createBlock as X, withCtx as O, createElementVNode as o, toDisplayString as W, unref as F, createVNode as D, createCommentVNode as ee, h as T, reactive as nt, watch as ot, isRef as Ye, normalizeClass as be, renderList as _e, normalizeStyle as Ke, Teleport as st, mergeProps as rt } from "vue";
2
- import { a7 as lt, u as Ie, at as E, al as Ge, au as qe, o as ct, Y as Ee, k as N, t as it, $ as he, y as ut, z as dt, B as mt, av as We, aw as Ze, ag as Qe, ax as re, am as ft, a9 as Me, a8 as le, a5 as Le, D as Oe, i as Se, h as pt, f as vt, a as yt, Z as Fe, K as gt, L as bt, O as At, P as kt, Q as Be } from "./app-BLEVBe_A.js";
3
- import { useCoreStore as Dt, useI18n as Je } from "@feedmepos/mf-common";
1
+ import { defineComponent as Te, ref as V, computed as U, onMounted as Ue, resolveComponent as P, openBlock as w, createElementBlock as L, Fragment as Q, createTextVNode as Z, createBlock as X, withCtx as O, createElementVNode as o, toDisplayString as W, unref as F, createVNode as k, createCommentVNode as ee, h as T, reactive as nt, watch as ot, isRef as Ye, normalizeClass as be, renderList as _e, normalizeStyle as Ke, Teleport as st, mergeProps as rt } from "vue";
2
+ import { a8 as lt, u as Ie, au as E, am as Ge, av as qe, p as ct, Z as Ee, l as N, t as it, a0 as he, z as ut, B as dt, C as mt, aw as We, ax as Ze, ah as Qe, ay as re, an as ft, aa as Me, a9 as le, a6 as Le, D as Oe, j as Se, i as pt, f as vt, a as yt, $ as Fe, L as gt, O as bt, P as At, Q as Dt, T as je } from "./app-CUMtg_U0.js";
3
+ import { useCoreStore as kt, useI18n as Je } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as He, useDialog as _t, useProxiedModel as ht, components as ge, useBreakpoints as xt } from "@feedmepos/ui-library";
5
5
  import { defineStore as Xe, storeToRefs as wt } from "pinia";
6
- import { a as Ve, u as et } from "./stock-CXhe_jH3.js";
6
+ import { a as Ve, u as et } from "./stock-D7EiEqJe.js";
7
7
  import { E as Ct } from "./empty-placeholder-wf6-BWE8.js";
8
8
  const Re = lt((l, s) => {
9
9
  function e() {
@@ -27,10 +27,10 @@ const Re = lt((l, s) => {
27
27
  return s.post(_, u);
28
28
  }
29
29
  };
30
- }), St = { class: "fm-typo-en-body-lg-400" }, Ft = { class: "fm-typo-en-body-lg-600" }, Bt = {
30
+ }), St = { class: "fm-typo-en-body-lg-400" }, Ft = { class: "fm-typo-en-body-lg-600" }, jt = {
31
31
  key: 0,
32
32
  class: "flex flex-col"
33
- }, jt = { class: "flex gap-12 py-8 justify-end w-full" }, Pe = /* @__PURE__ */ Te({
33
+ }, Bt = { class: "flex gap-12 py-8 justify-end w-full" }, Pe = /* @__PURE__ */ Te({
34
34
  __name: "ClosingDraftAction",
35
35
  props: {
36
36
  draft: {},
@@ -119,7 +119,7 @@ const Re = lt((l, s) => {
119
119
  }
120
120
  }
121
121
  return (n, a) => {
122
- const B = P("FmLabel"), M = P("FmDatePicker"), f = P("FmTimePicker"), g = P("FmTextField"), b = P("FmButton"), $ = P("FmForm");
122
+ const j = P("FmLabel"), M = P("FmDatePicker"), f = P("FmTimePicker"), g = P("FmTextField"), b = P("FmButton"), $ = P("FmForm");
123
123
  return R.value ? (w(), X($, {
124
124
  key: 1,
125
125
  onValidationSuccess: Y,
@@ -132,42 +132,42 @@ const Re = lt((l, s) => {
132
132
  o("span", Ft, W(C.value), 1),
133
133
  a[5] || (a[5] = Z(" this draft. Please provide a remark to justify this action. "))
134
134
  ]),
135
- n.action === F(E).enum.approveDraft ? (w(), L("div", Bt, [
136
- D(B, { class: "fm-typo-en-body-lg-600" }, {
135
+ n.action === F(E).enum.approveDraft ? (w(), L("div", jt, [
136
+ k(j, { class: "fm-typo-en-body-lg-600" }, {
137
137
  default: O(() => a[6] || (a[6] = [
138
138
  Z("Closing Date")
139
139
  ])),
140
140
  _: 1
141
141
  }),
142
- D(M, {
142
+ k(M, {
143
143
  modelValue: v.value,
144
144
  "onUpdate:modelValue": a[0] || (a[0] = (H) => v.value = H)
145
145
  }, null, 8, ["modelValue"]),
146
- D(B, { class: "fm-typo-en-body-lg-600" }, {
146
+ k(j, { class: "fm-typo-en-body-lg-600" }, {
147
147
  default: O(() => a[7] || (a[7] = [
148
148
  Z("Closing Time")
149
149
  ])),
150
150
  _: 1
151
151
  }),
152
- D(f, {
152
+ k(f, {
153
153
  modelValue: I.value,
154
154
  "onUpdate:modelValue": a[1] || (a[1] = (H) => I.value = H)
155
155
  }, null, 8, ["modelValue"])
156
156
  ])) : ee("", !0),
157
- D(g, {
157
+ k(g, {
158
158
  modelValue: e.value,
159
159
  "onUpdate:modelValue": a[2] || (a[2] = (H) => e.value = H),
160
160
  label: "Remark",
161
161
  "label-mark": "required",
162
162
  rules: [F(ct)()]
163
163
  }, null, 8, ["modelValue", "rules"]),
164
- o("div", jt, [
165
- D(b, {
164
+ o("div", Bt, [
165
+ k(b, {
166
166
  label: "Cancel",
167
167
  variant: "tertiary",
168
168
  onClick: a[3] || (a[3] = (H) => n.onCancel())
169
169
  }),
170
- D(b, {
170
+ k(b, {
171
171
  label: C.value,
172
172
  type: "submit",
173
173
  variant: x.value,
@@ -281,21 +281,21 @@ function Lt(l) {
281
281
  function Ut(l, s, e) {
282
282
  var M, f, g, b, $, H, te;
283
283
  const u = s.groupBy(
284
- (j) => j.id,
285
- (j) => j.balance
284
+ (B) => B.id,
285
+ (B) => B.balance
286
286
  ), p = e.groupBy(
287
- (j) => j.id,
288
- (j) => j.balance
289
- ), _ = [...l.items, ...l.negativeStockItems ?? []], m = at(_), R = _.map((j) => {
287
+ (B) => B.id,
288
+ (B) => B.balance
289
+ ), _ = [...l.items, ...l.negativeStockItems ?? []], m = at(_), R = _.map((B) => {
290
290
  var ie, ue, de;
291
- const J = ((ie = u.get(j.sku._id)) == null ? void 0 : ie[0]) ?? Tt, ce = ((ue = m == null ? void 0 : m.get(j.sku._id)) == null ? void 0 : ue[0]) ?? [];
291
+ const J = ((ie = u.get(B.sku._id)) == null ? void 0 : ie[0]) ?? Tt, ce = ((ue = m == null ? void 0 : m.get(B.sku._id)) == null ? void 0 : ue[0]) ?? [];
292
292
  return Rt(
293
- j,
293
+ B,
294
294
  J,
295
295
  ce,
296
- (de = p.get(j.sku._id)) == null ? void 0 : de[0]
296
+ (de = p.get(B.sku._id)) == null ? void 0 : de[0]
297
297
  );
298
- }), C = Mt(_), v = Dt().currentBusiness.value, I = Lt(C), Y = [
298
+ }), C = Mt(_), v = kt().currentBusiness.value, I = Lt(C), Y = [
299
299
  ["Business name:", v == null ? void 0 : v.name],
300
300
  ["Business ID:", v == null ? void 0 : v._id],
301
301
  ["Menu version", v == null ? void 0 : v.menuVersion],
@@ -317,10 +317,10 @@ function Ut(l, s, e) {
317
317
  l.approvedAt ? l.approveRemark : l.rejectionHistory ? new Date((te = l.rejectionHistory[0]) == null ? void 0 : te.rejectRemark) : ""
318
318
  ],
319
319
  [],
320
- I.map((j) => j.name),
321
- ...R.map((j) => I.map((J) => j[J.id]))
322
- ], n = I.map((j) => `system:${j.id}`), a = ut(Y, n), B = `[${v == null ? void 0 : v.name}] closing draft (${dt(new Date(l.updatedAt))}).xlsx`;
323
- return mt(a, B), B;
320
+ I.map((B) => B.name),
321
+ ...R.map((B) => I.map((J) => B[J.id]))
322
+ ], n = I.map((B) => `system:${B.id}`), a = ut(Y, n), j = `[${v == null ? void 0 : v.name}] closing draft (${dt(new Date(l.updatedAt))}).xlsx`;
323
+ return mt(a, j), j;
324
324
  }
325
325
  const Et = { class: "flex flex-col" }, Ht = { class: "flex gap-12 py-8 justify-end w-full" }, Vt = /* @__PURE__ */ Te({
326
326
  __name: "RefreshBalanceAction",
@@ -390,34 +390,34 @@ const Et = { class: "flex flex-col" }, Ht = { class: "flex gap-12 py-8 justify-e
390
390
  ])
391
391
  ], -1)),
392
392
  o("div", Et, [
393
- D(v, { class: "fm-typo-en-body-lg-600" }, {
393
+ k(v, { class: "fm-typo-en-body-lg-600" }, {
394
394
  default: O(() => x[3] || (x[3] = [
395
395
  Z("Closing Date")
396
396
  ])),
397
397
  _: 1
398
398
  }),
399
- D(I, {
399
+ k(I, {
400
400
  modelValue: _.value,
401
- "onUpdate:modelValue": x[0] || (x[0] = (B) => _.value = B)
401
+ "onUpdate:modelValue": x[0] || (x[0] = (j) => _.value = j)
402
402
  }, null, 8, ["modelValue"]),
403
- D(v, { class: "fm-typo-en-body-lg-600" }, {
403
+ k(v, { class: "fm-typo-en-body-lg-600" }, {
404
404
  default: O(() => x[4] || (x[4] = [
405
405
  Z("Closing Time")
406
406
  ])),
407
407
  _: 1
408
408
  }),
409
- D(Y, {
409
+ k(Y, {
410
410
  modelValue: m.value,
411
- "onUpdate:modelValue": x[1] || (x[1] = (B) => m.value = B)
411
+ "onUpdate:modelValue": x[1] || (x[1] = (j) => m.value = j)
412
412
  }, null, 8, ["modelValue"])
413
413
  ]),
414
414
  o("div", Ht, [
415
- D(n, {
415
+ k(n, {
416
416
  label: "Cancel",
417
417
  variant: "tertiary",
418
- onClick: x[2] || (x[2] = (B) => C.onCancel())
418
+ onClick: x[2] || (x[2] = (j) => C.onCancel())
419
419
  }),
420
- D(n, {
420
+ k(n, {
421
421
  label: "Refresh balance",
422
422
  type: "submit",
423
423
  variant: "primary",
@@ -454,10 +454,10 @@ const Et = { class: "flex flex-col" }, Ht = { class: "flex gap-12 py-8 justify-e
454
454
  draftId: f._id
455
455
  }), [];
456
456
  const H = await u.readAdjustmentById($);
457
- return ((H == null ? void 0 : H.skus) ?? []).map((j) => ({
458
- id: j.sku._id,
459
- balance: j.fromBalance,
460
- costs: j.fromCostBalances
457
+ return ((H == null ? void 0 : H.skus) ?? []).map((B) => ({
458
+ id: B.sku._id,
459
+ balance: B.fromBalance,
460
+ costs: B.fromCostBalances
461
461
  }));
462
462
  } else
463
463
  return await _.readStockBalance(), ((b = _.stockBalance) == null ? void 0 : b.skus) ?? [];
@@ -524,7 +524,7 @@ const Et = { class: "flex flex-col" }, Ht = { class: "flex gap-12 py-8 justify-e
524
524
  type: "success"
525
525
  }), g == null || g();
526
526
  }
527
- function B() {
527
+ function j() {
528
528
  m.value = !1;
529
529
  }
530
530
  async function M(f, g, b) {
@@ -544,7 +544,7 @@ const Et = { class: "flex flex-col" }, Ht = { class: "flex gap-12 py-8 justify-e
544
544
  }
545
545
  return {
546
546
  viewDraft: C,
547
- closeDraftDialog: B,
547
+ closeDraftDialog: j,
548
548
  approveDraft: I,
549
549
  rejectDraft: Y,
550
550
  markAsFailed: n,
@@ -556,7 +556,7 @@ const Et = { class: "flex flex-col" }, Ht = { class: "flex gap-12 py-8 justify-e
556
556
  };
557
557
  }
558
558
  );
559
- function je(l) {
559
+ function Be(l) {
560
560
  switch (l) {
561
561
  case "DRAFT":
562
562
  return "fm-status-badge-draft";
@@ -591,7 +591,7 @@ const Nt = Xe(
591
591
  try {
592
592
  const [a] = await Promise.all([
593
593
  m.getDraft(n),
594
- new Promise((B) => setTimeout(B, 1e3))
594
+ new Promise((j) => setTimeout(j, 1e3))
595
595
  ]);
596
596
  u.value = [a];
597
597
  } catch (a) {
@@ -640,8 +640,8 @@ const Nt = Xe(
640
640
  header: () => "Effective at",
641
641
  cell(n) {
642
642
  const a = n.row.original;
643
- let B = n.getValue();
644
- return B || (B = Me(a._id)), le(B);
643
+ let j = n.getValue();
644
+ return j || (j = Me(a._id)), le(j);
645
645
  },
646
646
  enableSorting: !0,
647
647
  size: 200
@@ -677,7 +677,7 @@ const Nt = Xe(
677
677
  id: "recentRemark",
678
678
  accessorFn: (n) => {
679
679
  var a;
680
- return (n == null ? void 0 : n.approveRemark) ?? ((a = n == null ? void 0 : n.rejectionHistory) == null ? void 0 : a.computeFirst((B) => B.rejectRemark)) ?? n.remark;
680
+ return (n == null ? void 0 : n.approveRemark) ?? ((a = n == null ? void 0 : n.rejectionHistory) == null ? void 0 : a.computeFirst((j) => j.rejectRemark)) ?? n.remark;
681
681
  },
682
682
  header: () => "Recent remark"
683
683
  },
@@ -688,8 +688,8 @@ const Nt = Xe(
688
688
  enableSorting: !1,
689
689
  cell(n) {
690
690
  var b;
691
- const a = n.row.original, B = a.status, M = new Date(a.updatedAt), f = (b = a == null ? void 0 : a.rejectionHistory) == null ? void 0 : b.computeFirst(($) => $.rejectedAt), g = f ? new Date(f) : null;
692
- return B === "DRAFT" && g ? g.getTime() > M.getTime() ? T(
691
+ const a = n.row.original, j = a.status, M = new Date(a.updatedAt), f = (b = a == null ? void 0 : a.rejectionHistory) == null ? void 0 : b.computeFirst(($) => $.rejectedAt), g = f ? new Date(f) : null;
692
+ return j === "DRAFT" && g ? g.getTime() > M.getTime() ? T(
693
693
  "div",
694
694
  {
695
695
  class: "flex"
@@ -697,7 +697,7 @@ const Nt = Xe(
697
697
  T(
698
698
  "div",
699
699
  {
700
- class: ["fm-status-badge", je("FAILED")]
700
+ class: ["fm-status-badge", Be("FAILED")]
701
701
  },
702
702
  "Rejected"
703
703
  )
@@ -709,7 +709,7 @@ const Nt = Xe(
709
709
  T(
710
710
  "div",
711
711
  {
712
- class: ["fm-status-badge", je("PROCESSING")]
712
+ class: ["fm-status-badge", Be("PROCESSING")]
713
713
  },
714
714
  "Updated"
715
715
  )
@@ -721,9 +721,9 @@ const Nt = Xe(
721
721
  T(
722
722
  "div",
723
723
  {
724
- class: ["fm-status-badge", je(B)]
724
+ class: ["fm-status-badge", Be(j)]
725
725
  },
726
- Le(B)
726
+ Le(j)
727
727
  )
728
728
  );
729
729
  }
@@ -731,7 +731,7 @@ const Nt = Xe(
731
731
  {
732
732
  id: "action",
733
733
  cell(n) {
734
- const a = n.row.original, B = [
734
+ const a = n.row.original, j = [
735
735
  Oe[Se.Details],
736
736
  Oe[Se.Export]
737
737
  ], M = [
@@ -753,7 +753,7 @@ const Nt = Xe(
753
753
  ];
754
754
  return pt(
755
755
  [
756
- ...B,
756
+ ...j,
757
757
  ...a.status === re.enum.DRAFT ? M : []
758
758
  ],
759
759
  (f) => I(f, a)
@@ -804,7 +804,7 @@ const Nt = Xe(
804
804
  }, ba = { class: "flex-1 flex flex-col items-center" }, Aa = {
805
805
  class: "py-12 flex flex-col gap-4 flex-1",
806
806
  name: "delivery details"
807
- }, ka = { class: "flex flex-col gap-8" }, Da = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, _a = { class: "flex flex-col gap-4" }, ha = { class: "flex gap-8" }, xa = /* @__PURE__ */ Te({
807
+ }, Da = { class: "flex flex-col gap-8" }, ka = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, _a = { class: "flex flex-col gap-4" }, ha = { class: "flex gap-8" }, xa = /* @__PURE__ */ Te({
808
808
  __name: "ClosingDraftDialog",
809
809
  props: {
810
810
  show: { type: Boolean },
@@ -812,7 +812,7 @@ const Nt = Xe(
812
812
  },
813
813
  emits: ["submitted", "refresh"],
814
814
  setup(l, { emit: s }) {
815
- const e = l, u = et(), p = $e(), _ = ht(e, "show"), m = V(!1), R = V(!1), C = V(!1), x = V(new Array()), v = V(new Array()), I = Ve(), Y = Re(), n = He(), a = yt(), B = Ie(), M = nt({}), f = U(() => new Set(
815
+ const e = l, u = et(), p = $e(), _ = ht(e, "show"), m = V(!1), R = V(!1), C = V(!1), x = V(new Array()), v = V(new Array()), I = Ve(), Y = Re(), n = He(), a = yt(), j = Ie(), M = nt({}), f = U(() => new Set(
816
816
  a.skus.filter((r) => {
817
817
  var t;
818
818
  return M[(t = r.customAttributes) == null ? void 0 : t.tag];
@@ -840,10 +840,10 @@ const Nt = Xe(
840
840
  });
841
841
  }
842
842
  );
843
- const j = he(0), J = he(100);
843
+ const B = he(0), J = he(100);
844
844
  async function ce() {
845
845
  var t, y, d;
846
- if (!B._currentLocation) return;
846
+ if (!j._currentLocation) return;
847
847
  m.value = !0;
848
848
  const r = ((t = e.draft) == null ? void 0 : t.status) === re.enum.COMPLETED;
849
849
  v.value = [];
@@ -862,7 +862,7 @@ const Nt = Xe(
862
862
  }
863
863
  const c = await I.readAdjustmentById(i), A = (c == null ? void 0 : c.skus) ?? [];
864
864
  for (const h of A) {
865
- const k = {
865
+ const D = {
866
866
  id: h.sku._id,
867
867
  balance: h.fromBalance,
868
868
  costs: h.fromCostBalances
@@ -871,7 +871,7 @@ const Nt = Xe(
871
871
  balance: h.toBalance,
872
872
  costs: h.toCostBalances
873
873
  };
874
- x.value.push(k), v.value.push(q);
874
+ x.value.push(D), v.value.push(q);
875
875
  }
876
876
  } else
877
877
  x.value = ((d = e.draft) == null ? void 0 : d.stockSnapshot) ?? [];
@@ -905,10 +905,10 @@ const Nt = Xe(
905
905
  const i = (h = e.draft) == null ? void 0 : h._rev, c = 30, A = 2e3;
906
906
  try {
907
907
  await I.recalculation.scheduleCalculateStockSnapshotAtDate(d, e.draft._id);
908
- let k = null;
909
- for (let q = 0; q < c && (k = await Y.getDraft(e.draft._id).delayed(A), k._rev === i); q++)
908
+ let D = null;
909
+ for (let q = 0; q < c && (D = await Y.getDraft(e.draft._id).delayed(A), D._rev === i); q++)
910
910
  ;
911
- if (!k || k._rev === i) {
911
+ if (!D || D._rev === i) {
912
912
  n.open({
913
913
  title: "Refresh failed",
914
914
  message: "Failed to refresh stock balance. Please try again.",
@@ -916,17 +916,17 @@ const Nt = Xe(
916
916
  }), console.error("error refreshing stock balances: there is no change in _rev");
917
917
  return;
918
918
  }
919
- g("refresh", k), x.value = k.stockSnapshot ?? [], n.open({
919
+ g("refresh", D), x.value = D.stockSnapshot ?? [], n.open({
920
920
  title: "Balance refreshed",
921
921
  message: "Stock balance has been recalculated.",
922
922
  type: "success"
923
923
  });
924
- } catch (k) {
924
+ } catch (D) {
925
925
  n.open({
926
926
  title: "Refresh failed",
927
927
  message: "Failed to refresh stock balance. Please try again.",
928
928
  type: "error"
929
- }), console.error("error refreshing stock balances", k);
929
+ }), console.error("error refreshing stock balances", D);
930
930
  } finally {
931
931
  R.value = !1;
932
932
  }
@@ -1019,10 +1019,10 @@ const Nt = Xe(
1019
1019
  },
1020
1020
  header: () => oe("Actual balance"),
1021
1021
  cell(y) {
1022
- var k;
1022
+ var D;
1023
1023
  const d = y.row.original, i = Fe.fromNumber(d.physicalBalance);
1024
1024
  let c = !0, A = d.physicalBalance;
1025
- const h = (k = v.value.find((q) => q.id === d.id)) == null ? void 0 : k.balance;
1025
+ const h = (D = v.value.find((q) => q.id === d.id)) == null ? void 0 : D.balance;
1026
1026
  return h && (Fe.equals({
1027
1027
  a: i,
1028
1028
  b: h
@@ -1137,8 +1137,8 @@ const Nt = Xe(
1137
1137
  let c = Array.from({ length: r }).map((A, h) => {
1138
1138
  if (!d[`measurementAmount${h}`])
1139
1139
  return null;
1140
- const k = d[`measurementAmount${h}`], q = d[`measurementAbbrev${h}`];
1141
- return i(k, q);
1140
+ const D = d[`measurementAmount${h}`], q = d[`measurementAbbrev${h}`];
1141
+ return i(D, q);
1142
1142
  }).filter((A) => A);
1143
1143
  return (d.baseUnitAmount || !c.length) && (c = [i(d.baseUnitAmount, d.baseUnit), ...c]), T(
1144
1144
  "div",
@@ -1153,7 +1153,7 @@ const Nt = Xe(
1153
1153
  }
1154
1154
  }
1155
1155
  ];
1156
- }), xe = U(() => Ae.value.map((r) => r.size ?? 0).reduce((r, t) => r + t)), fe = V(""), ke = U(() => {
1156
+ }), xe = U(() => Ae.value.map((r) => r.size ?? 0).reduce((r, t) => r + t)), fe = V(""), De = U(() => {
1157
1157
  var y, d;
1158
1158
  const r = ((d = (y = e.draft) == null ? void 0 : y.negativeStockItems) == null ? void 0 : d.reduce(
1159
1159
  (i, c) => (i[c.sku._id] = c, i),
@@ -1161,7 +1161,7 @@ const Nt = Xe(
1161
1161
  )) ?? {};
1162
1162
  return H.value.map((i) => {
1163
1163
  var Ce, S, z, K;
1164
- const c = (Ce = de.value.get(i._id)) == null ? void 0 : Ce[0], A = ((S = ue.value.get(i._id)) == null ? void 0 : S[0]) ?? j;
1164
+ const c = (Ce = de.value.get(i._id)) == null ? void 0 : Ce[0], A = ((S = ue.value.get(i._id)) == null ? void 0 : S[0]) ?? B;
1165
1165
  if (!c)
1166
1166
  return {
1167
1167
  id: i._id,
@@ -1175,10 +1175,10 @@ const Nt = Xe(
1175
1175
  adjustedDiffPercentage: -100,
1176
1176
  isTemplateItem: !r[i._id]
1177
1177
  };
1178
- const h = tt(c), k = (K = (z = v.value) == null ? void 0 : z.find(
1178
+ const h = tt(c), D = (K = (z = v.value) == null ? void 0 : z.find(
1179
1179
  (G) => G.id === i._id
1180
1180
  )) == null ? void 0 : K.balance, q = We(
1181
- k ?? h,
1181
+ D ?? h,
1182
1182
  A
1183
1183
  ), we = A.amount === 0 ? null : Ze(q, {
1184
1184
  ...A,
@@ -1271,7 +1271,7 @@ const Nt = Xe(
1271
1271
  const r = ((d = e.draft) == null ? void 0 : d.activityLogs) ?? [], t = ((i = e.draft) == null ? void 0 : i.rejectionHistory) ?? [];
1272
1272
  for (const A of t)
1273
1273
  r.find(
1274
- (k) => `${k.action}_${k.performedAt}` == `${E.enum.rejectDraft}_${A.rejectedAt}`
1274
+ (D) => `${D.action}_${D.performedAt}` == `${E.enum.rejectDraft}_${A.rejectedAt}`
1275
1275
  ) || r.push({
1276
1276
  action: E.enum.rejectDraft,
1277
1277
  performedAt: A.rejectedAt,
@@ -1280,8 +1280,8 @@ const Nt = Xe(
1280
1280
  });
1281
1281
  return (c = e.draft) != null && c.approvedAt && (r.find(
1282
1282
  (h) => {
1283
- var k;
1284
- return `${h.action}_${h.performedAt}` == `${E.enum.approveDraft}_${(k = e.draft) == null ? void 0 : k.approvedAt}`;
1283
+ var D;
1284
+ return `${h.action}_${h.performedAt}` == `${E.enum.approveDraft}_${(D = e.draft) == null ? void 0 : D.approvedAt}`;
1285
1285
  }
1286
1286
  ) || r.push({
1287
1287
  action: E.enum.approveDraft,
@@ -1304,18 +1304,18 @@ const Nt = Xe(
1304
1304
  ]
1305
1305
  })
1306
1306
  );
1307
- }), De = U(() => {
1307
+ }), ke = U(() => {
1308
1308
  var i, c, A, h;
1309
1309
  if ((i = e == null ? void 0 : e.draft) != null && i.approvedAt) return "Draft is already approved.";
1310
1310
  if (((c = e.draft) == null ? void 0 : c.status) !== re.enum.DRAFT) return "Status is not draft.";
1311
- const r = ke.value.some((k) => k.physicalBalance < 0), t = ((h = (A = u.stockBalance.skus) == null ? void 0 : A.filter((k) => k.balance.amount < 0)) == null ? void 0 : h.map((k) => k.id)) ?? [], y = new Set(H.value.map((k) => k._id)), d = t.filter((k) => !y.has(k)).length;
1311
+ const r = De.value.some((D) => D.physicalBalance < 0), t = ((h = (A = u.stockBalance.skus) == null ? void 0 : A.filter((D) => D.balance.amount < 0)) == null ? void 0 : h.map((D) => D.id)) ?? [], y = new Set(H.value.map((D) => D._id)), d = t.filter((D) => !y.has(D)).length;
1312
1312
  return [
1313
1313
  r ? "Negative total exist." : null,
1314
1314
  d ? "Negative stock is not included in this draft. Reopen draft in POS and apply changes." : null
1315
- ].filter((k) => k).join(" ");
1315
+ ].filter((D) => D).join(" ");
1316
1316
  });
1317
1317
  return (r, t) => {
1318
- const y = P("FmButtonGroup"), d = P("FmMenuDivider"), i = P("FmCard"), c = P("FmButton"), A = P("FmCircularProgress"), h = P("FmChip"), k = P("FmTextField"), q = P("FmIcon"), we = P("FmTable"), ye = P("FmSpacer"), Ne = P("FmTooltip"), Ce = P("FmSideSheet");
1318
+ const y = P("FmButtonGroup"), d = P("FmMenuDivider"), i = P("FmCard"), c = P("FmButton"), A = P("FmCircularProgress"), h = P("FmChip"), D = P("FmTextField"), q = P("FmIcon"), we = P("FmTable"), ye = P("FmSpacer"), Ne = P("FmTooltip"), Ce = P("FmSideSheet");
1319
1319
  return w(), X(Ce, {
1320
1320
  "dismiss-away": "",
1321
1321
  "max-width": 9999,
@@ -1328,15 +1328,15 @@ const Nt = Xe(
1328
1328
  return [
1329
1329
  o("div", ha, [
1330
1330
  ((S = e.draft) == null ? void 0 : S.status) === F(re).enum.DRAFT ? (w(), L(Q, { key: 0 }, [
1331
- De.value ? (w(), X(Ne, {
1331
+ ke.value ? (w(), X(Ne, {
1332
1332
  key: 0,
1333
1333
  "z-index": 51
1334
1334
  }, {
1335
1335
  content: O(() => [
1336
- Z(W(De.value), 1)
1336
+ Z(W(ke.value), 1)
1337
1337
  ]),
1338
1338
  default: O(() => [
1339
- D(c, {
1339
+ k(c, {
1340
1340
  disabled: "",
1341
1341
  key: "approve key",
1342
1342
  label: "Approve",
@@ -1366,7 +1366,7 @@ const Nt = Xe(
1366
1366
  }));
1367
1367
  })
1368
1368
  }, null, 8, ["loading"])) : ee("", !0),
1369
- D(c, {
1369
+ k(c, {
1370
1370
  label: "Close",
1371
1371
  variant: "tertiary",
1372
1372
  onClick: t[9] || (t[9] = (ne) => _.value = !1)
@@ -1377,14 +1377,14 @@ const Nt = Xe(
1377
1377
  default: O(() => [
1378
1378
  o("div", zt, [
1379
1379
  o("div", null, [
1380
- D(y, {
1380
+ k(y, {
1381
1381
  items: ve,
1382
1382
  modelValue: se.value,
1383
1383
  "onUpdate:modelValue": t[0] || (t[0] = (S) => se.value = S)
1384
1384
  }, null, 8, ["modelValue"])
1385
1385
  ]),
1386
1386
  se.value.value === "overview" ? (w(), L(Q, { key: 0 }, [
1387
- D(i, {
1387
+ k(i, {
1388
1388
  variant: "outlined",
1389
1389
  class: "flex flex-col gap-8 px-12 py-16"
1390
1390
  }, {
@@ -1395,11 +1395,11 @@ const Nt = Xe(
1395
1395
  t[11] || (t[11] = o("div", { class: "fm-typo-en-body-lg-600" }, "Closing summary", -1)),
1396
1396
  o("div", Yt, [
1397
1397
  o("div", {
1398
- class: be(["fm-status-badge", F(je)(((S = r.draft) == null ? void 0 : S.status) ?? "DRAFT")])
1398
+ class: be(["fm-status-badge", F(Be)(((S = r.draft) == null ? void 0 : S.status) ?? "DRAFT")])
1399
1399
  }, W(F(Le)(((z = r.draft) == null ? void 0 : z.status) ?? "")), 3)
1400
1400
  ])
1401
1401
  ]),
1402
- D(d),
1402
+ k(d),
1403
1403
  o("div", Kt, [
1404
1404
  (w(!0), L(Q, null, _e(pe.value, (K, G) => (w(), L("div", {
1405
1405
  class: "flex flex-col gap-4",
@@ -1430,7 +1430,7 @@ const Nt = Xe(
1430
1430
  loading: R.value,
1431
1431
  onClick: ie
1432
1432
  }, null, 8, ["loading"])) : ee("", !0),
1433
- D(c, {
1433
+ k(c, {
1434
1434
  label: "Export data",
1435
1435
  "prepend-icon": "download",
1436
1436
  variant: "secondary",
@@ -1449,7 +1449,7 @@ const Nt = Xe(
1449
1449
  t[14] || (t[14] = o("div", { class: "h-80" }, null, -1)),
1450
1450
  o("div", ea, [
1451
1451
  o("div", null, [
1452
- D(A, { size: "md" })
1452
+ k(A, { size: "md" })
1453
1453
  ]),
1454
1454
  t[13] || (t[13] = o("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Fetching info... ", -1))
1455
1455
  ]),
@@ -1457,18 +1457,18 @@ const Nt = Xe(
1457
1457
  ])) : (w(), L(Q, { key: 1 }, [
1458
1458
  o("div", ta, [
1459
1459
  o("div", aa, [
1460
- D(h, {
1460
+ k(h, {
1461
1461
  label: "Template Item(s)",
1462
1462
  selected: b.value.templateItem,
1463
1463
  onClick: t[2] || (t[2] = (S) => b.value.templateItem = !b.value.templateItem)
1464
1464
  }, null, 8, ["selected"]),
1465
- D(h, {
1465
+ k(h, {
1466
1466
  label: "Non-template Item(s)",
1467
1467
  selected: b.value.nonTemplateItem,
1468
1468
  onClick: t[3] || (t[3] = (S) => b.value.nonTemplateItem = !b.value.nonTemplateItem)
1469
1469
  }, null, 8, ["selected"])
1470
1470
  ]),
1471
- D(k, {
1471
+ k(D, {
1472
1472
  modelValue: fe.value,
1473
1473
  "onUpdate:modelValue": t[4] || (t[4] = (S) => fe.value = S),
1474
1474
  placeholder: "Filter items"
@@ -1506,9 +1506,9 @@ const Nt = Xe(
1506
1506
  o("div", {
1507
1507
  style: Ke({ minWidth: `${xe.value}px` })
1508
1508
  }, [
1509
- D(we, {
1509
+ k(we, {
1510
1510
  "column-defs": Ae.value,
1511
- "row-data": ke.value,
1511
+ "row-data": De.value,
1512
1512
  "search-value": fe.value
1513
1513
  }, null, 8, ["column-defs", "row-data", "search-value"])
1514
1514
  ], 4)
@@ -1565,17 +1565,17 @@ const Nt = Xe(
1565
1565
  ])
1566
1566
  ]),
1567
1567
  o("div", Aa, [
1568
- D(i, {
1568
+ k(i, {
1569
1569
  variant: "outlined",
1570
1570
  class: "py-12 px-16"
1571
1571
  }, {
1572
1572
  default: O(() => [
1573
- o("div", ka, [
1573
+ o("div", Da, [
1574
1574
  (w(!0), L(Q, null, _e(S.info, (K, G) => (w(), L("div", {
1575
1575
  key: G,
1576
1576
  class: "flex flex-col gap-4"
1577
1577
  }, [
1578
- o("div", Da, W(K == null ? void 0 : K.label), 1),
1578
+ o("div", ka, W(K == null ? void 0 : K.label), 1),
1579
1579
  o("div", _a, [
1580
1580
  (w(!0), L(Q, null, _e(K == null ? void 0 : K.values, (ne, me) => (w(), L("div", {
1581
1581
  key: me,
@@ -1591,7 +1591,7 @@ const Nt = Xe(
1591
1591
  ])
1592
1592
  ], 64))), 128))
1593
1593
  ])) : (w(), L("div", ra, [
1594
- D(ye),
1594
+ k(ye),
1595
1595
  o("div", null, [
1596
1596
  o("img", {
1597
1597
  src: F(Ct),
@@ -1600,8 +1600,8 @@ const Nt = Xe(
1600
1600
  ]),
1601
1601
  t[16] || (t[16] = o("div", { class: "fm-typo-en-body-lg-600" }, W("No records found"), -1)),
1602
1602
  t[17] || (t[17] = o("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, W("You can track approval and rejection history here"), -1)),
1603
- D(ye),
1604
- D(ye)
1603
+ k(ye),
1604
+ k(ye)
1605
1605
  ]))
1606
1606
  ])) : ee("", !0)
1607
1607
  ])
@@ -1610,7 +1610,7 @@ const Nt = Xe(
1610
1610
  }, 8, ["model-value"]);
1611
1611
  };
1612
1612
  }
1613
- }), wa = { class: "flex-1 flex flex-col gap-8" }, Ca = { class: "flex flex-col" }, Sa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fa = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ba = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, ja = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Ua = /* @__PURE__ */ Te({
1613
+ }), wa = { class: "flex-1 flex flex-col gap-8" }, Ca = { class: "flex flex-col" }, Sa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fa = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ja = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Ba = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Ua = /* @__PURE__ */ Te({
1614
1614
  __name: "ClosingDraftView",
1615
1615
  setup(l) {
1616
1616
  const { t: s } = Je(), { viewDraft: e } = $e(), { viewClosingDraftProps: u, viewClosingDraftShow: p } = wt($e()), _ = Ie(), m = Nt(), R = gt(), { breakpoints: C } = xt();
@@ -1625,7 +1625,7 @@ const Nt = Xe(
1625
1625
  function a(M) {
1626
1626
  return M;
1627
1627
  }
1628
- const B = U(() => I.value ? [
1628
+ const j = U(() => I.value ? [
1629
1629
  {
1630
1630
  label: s("inventory.common.refresh"),
1631
1631
  value: "refresh",
@@ -1641,9 +1641,9 @@ const Nt = Xe(
1641
1641
  return (M, f) => {
1642
1642
  const g = P("FmTable");
1643
1643
  return w(), L(Q, null, [
1644
- D(bt, {
1644
+ k(bt, {
1645
1645
  title: F(s)("inventory.closing.draft.title"),
1646
- actions: B.value,
1646
+ actions: j.value,
1647
1647
  "onClick:action": n
1648
1648
  }, {
1649
1649
  default: O(() => [
@@ -1656,13 +1656,13 @@ const Nt = Xe(
1656
1656
  }
1657
1657
  ])
1658
1658
  }, [
1659
- D(At, {
1659
+ k(At, {
1660
1660
  "change-location": "",
1661
1661
  searchable: "",
1662
1662
  search: v.value,
1663
1663
  "onUpdate:search": f[0] || (f[0] = (b) => v.value = b)
1664
1664
  }, null, 8, ["search"]),
1665
- D(g, {
1665
+ k(g, {
1666
1666
  style: Ke(F(R).tableHeight),
1667
1667
  "column-defs": F(m).columnDefs,
1668
1668
  "row-data": F(m).drafts,
@@ -1672,41 +1672,41 @@ const Nt = Xe(
1672
1672
  "page-size": Y.value
1673
1673
  }, {
1674
1674
  "list-row": O((b) => [
1675
- D(kt, {
1675
+ k(Dt, {
1676
1676
  row: b,
1677
1677
  onRowClick: ($) => F(e)($)
1678
1678
  }, {
1679
1679
  default: O(($) => {
1680
- var H, te, j, J, ce, ie, ue, de, oe, Ae, xe, fe, ke, pe, ve, se, ae, De, r, t;
1680
+ var H, te, B, J, ce, ie, ue, de, oe, Ae, xe, fe, De, pe, ve, se, ae, ke, r, t;
1681
1681
  return [
1682
1682
  o("div", wa, [
1683
1683
  o("div", Ca, [
1684
1684
  o("div", Sa, [
1685
- D(F(Be), {
1686
- render: (j = (te = (H = $._id) == null ? void 0 : H.column) == null ? void 0 : te.columnDef) == null ? void 0 : j.cell,
1685
+ k(F(je), {
1686
+ render: (B = (te = (H = $._id) == null ? void 0 : H.column) == null ? void 0 : te.columnDef) == null ? void 0 : B.cell,
1687
1687
  props: (ce = (J = $._id) == null ? void 0 : J.getContext) == null ? void 0 : ce.call(J)
1688
1688
  }, null, 8, ["render", "props"])
1689
1689
  ]),
1690
1690
  o("div", Fa, [
1691
- D(F(Be), {
1691
+ k(F(je), {
1692
1692
  render: (de = (ue = (ie = $.name) == null ? void 0 : ie.column) == null ? void 0 : ue.columnDef) == null ? void 0 : de.cell,
1693
1693
  props: (Ae = (oe = $.name) == null ? void 0 : oe.getContext) == null ? void 0 : Ae.call(oe)
1694
1694
  }, null, 8, ["render", "props"])
1695
1695
  ]),
1696
- o("div", Ba, W([
1696
+ o("div", ja, W([
1697
1697
  ...b.original.items.slice(0, 3).map((y) => y.sku.name),
1698
1698
  ...b.original.items.length >= 3 ? [`and ${b.original.items.length - 3} more items`] : []
1699
1699
  ].join(", ")), 1),
1700
- o("div", ja, [
1701
- D(F(Be), {
1702
- render: (ke = (fe = (xe = $.ref) == null ? void 0 : xe.column) == null ? void 0 : fe.columnDef) == null ? void 0 : ke.cell,
1700
+ o("div", Ba, [
1701
+ k(F(je), {
1702
+ render: (De = (fe = (xe = $.ref) == null ? void 0 : xe.column) == null ? void 0 : fe.columnDef) == null ? void 0 : De.cell,
1703
1703
  props: (ve = (pe = $.ref) == null ? void 0 : pe.getContext) == null ? void 0 : ve.call(pe)
1704
1704
  }, null, 8, ["render", "props"])
1705
1705
  ])
1706
1706
  ]),
1707
1707
  o("div", null, [
1708
- D(F(Be), {
1709
- render: (De = (ae = (se = $.status) == null ? void 0 : se.column) == null ? void 0 : ae.columnDef) == null ? void 0 : De.cell,
1708
+ k(F(je), {
1709
+ render: (ke = (ae = (se = $.status) == null ? void 0 : se.column) == null ? void 0 : ae.columnDef) == null ? void 0 : ke.cell,
1710
1710
  props: (t = (r = $.status) == null ? void 0 : r.getContext) == null ? void 0 : t.call(r)
1711
1711
  }, null, 8, ["render", "props"])
1712
1712
  ])
@@ -1723,7 +1723,7 @@ const Nt = Xe(
1723
1723
  _: 1
1724
1724
  }, 8, ["title", "actions"]),
1725
1725
  (w(), X(st, { to: "body" }, [
1726
- D(xa, rt(F(u), {
1726
+ k(xa, rt(F(u), {
1727
1727
  show: F(p),
1728
1728
  "onUpdate:show": f[2] || (f[2] = (b) => Ye(p) ? p.value = b : null),
1729
1729
  onSubmitted: f[3] || (f[3] = () => (p.value = !1, F(m).fetchDrafts())),