@feedmepos/mf-inventory-portal 0.0.23-dev.27 → 0.0.23-dev.29

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 (40) hide show
  1. package/dist/{App-B2-rB0yC.js → App-Cb0DKDZS.js} +2 -2
  2. package/dist/{ApprovalView-DrL44_4i.js → ApprovalView-Cifc-Y_m.js} +2 -2
  3. package/dist/{BindingsDialog-G_9Qdbjt.js → BindingsDialog-huZq9ea8.js} +2 -2
  4. package/dist/{BindingsPicker-D6Dbm59Q.js → BindingsPicker-fFhc3-J_.js} +1 -1
  5. package/dist/{BindingsTable-rpkfHFu6.js → BindingsTable-i3JEZnKw.js} +1 -1
  6. package/dist/ClosingDraftView-C8yh1aar.js +1190 -0
  7. package/dist/{ClosingTemplateView-Cbq14r2J.js → ClosingTemplateView-CUfFxnXb.js} +1 -1
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CiK3jJzv.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lcB61e9L.js} +3 -3
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BCnEgLFo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-FrCm7O_S.js} +1 -1
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-6e20tPAa.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BtwkTwMB.js} +1 -1
  11. package/dist/{IngredientGroupView-DXvlg9T2.js → IngredientGroupView-DS1OeV_l.js} +1 -1
  12. package/dist/{IngredientsView-Oasfl3n4.js → IngredientsView-1ICj0ozR.js} +4 -4
  13. package/dist/{IntegrationView-Ba2eeCeF.js → IntegrationView-BCwOX1nf.js} +1 -1
  14. package/dist/{InventoryBindingForm-B4v03AdY.js → InventoryBindingForm-BObD8RZu.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DmkxsM2R.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-YGmtVDLf.js} +3 -3
  16. package/dist/{InventoryBindingSummary-B74nSYWo.js → InventoryBindingSummary-D1OHZ8H_.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BIcIrcdw.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CJSNaaWU.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CSVYXLNb.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C-oLUbzX.js} +1 -1
  19. package/dist/{PurchaseOrderPrintPreview-DjMM9eMI.js → PurchaseOrderPrintPreview-s-lWuBrs.js} +1 -1
  20. package/dist/{ReceiveRequestView-C-8s7_EU.js → ReceiveRequestView-BR1NkASK.js} +10 -10
  21. package/dist/{RecipeView-Dj_0TDsF.js → RecipeView-BdmH9QHY.js} +3 -3
  22. package/dist/{StockView-stjLfg3f.js → StockView-CzIY1FD0.js} +7 -7
  23. package/dist/{SupplierView-DeglTp5H.js → SupplierView-CDdzeK4D.js} +4 -4
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CmQCMEiN.js → TransferDetails.vue_vue_type_script_setup_true_lang-9gBm-Qpw.js} +4 -4
  25. package/dist/{TransferTemplateView-BPP181lL.js → TransferTemplateView-BYuUr8m6.js} +6 -6
  26. package/dist/{UnitView-DY0X-xIJ.js → UnitView-CAKx1qNs.js} +3 -3
  27. package/dist/{WarehouseView-D1rxo-vc.js → WarehouseView-DRveYDl1.js} +1 -1
  28. package/dist/{app-CCSWGqGQ.js → app-CutWLf0m.js} +1347 -1300
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-GRRZU5-3.js → decimal-Dv59Tc95.js} +1 -1
  31. package/dist/{feature-3Nr7NqEl.js → feature-CcnwSkJs.js} +1 -1
  32. package/dist/{format-unit-display-BA-KI-a-.js → format-unit-display-mDGo4-C8.js} +2 -2
  33. package/dist/{index-i0DM_jxR.js → index-BRw5keOc.js} +1 -1
  34. package/dist/stock-Bqhch78I.js +125 -0
  35. package/dist/{supplier-BmEIB4Jq.js → supplier-DElqqxGT.js} +1 -1
  36. package/dist/tsconfig.app.tsbuildinfo +1 -1
  37. package/dist/{use-inventory-binding-dialog-DKJCAeBg.js → use-inventory-binding-dialog-CfHThiv9.js} +1 -1
  38. package/package.json +2 -2
  39. package/dist/ClosingDraftView-CbIQxG9i.js +0 -1144
  40. package/dist/stock-ntKQ4Rgr.js +0 -110
@@ -1,1144 +0,0 @@
1
- import { defineComponent as fe, ref as z, resolveComponent as U, openBlock as w, createBlock as oe, withCtx as W, createElementVNode as o, createTextVNode as ye, toDisplayString as I, unref as b, createVNode as _, h as O, computed as T, onMounted as Ue, watch as He, isRef as xe, createCommentVNode as ae, createElementBlock as B, Fragment as Q, normalizeClass as ne, renderList as ce, normalizeStyle as De, Teleport as Ie, mergeProps as ze } from "vue";
2
- import { W as Ee, u as pe, ah as K, l as Le, J as ve, i as j, t as Ne, K as re, o as Oe, p as Ke, q as Ve, ai as Ae, aj as _e, a6 as we, ak as ke, al as se, 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-CCSWGqGQ.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-ntKQ4Rgr.js";
7
- import { E as st } from "./empty-placeholder-wf6-BWE8.js";
8
- const Fe = Ee((a, c) => {
9
- function e() {
10
- return pe().currentLocation.dbName;
11
- }
12
- return {
13
- async getDraft(i) {
14
- const d = e(), p = `${a.inventoryBackendUrl}/${d}/closing-draft/${i}`;
15
- return c.get(p);
16
- },
17
- async readDrafts() {
18
- const i = e(), d = `${a.inventoryBackendUrl}/${i}/closing-draft`;
19
- return c.get(d);
20
- },
21
- async runOperation(i) {
22
- const d = e(), p = `${a.inventoryBackendUrl}/${d}/closing-draft/run-operation`;
23
- return c.post(p, i);
24
- }
25
- };
26
- }), rt = { class: "fm-typo-en-body-lg-400" }, lt = { class: "fm-typo-en-body-lg-600" }, ct = { class: "flex gap-12 py-8 justify-end w-full" }, he = /* @__PURE__ */ fe({
27
- __name: "ClosingDraftAction",
28
- props: {
29
- draft: {},
30
- action: {},
31
- onCancel: { type: Function },
32
- onFinished: { type: Function }
33
- },
34
- setup(a) {
35
- const c = a, e = z(), i = Fe(), d = ge(), p = z(!1);
36
- async function A() {
37
- p.value = !0;
38
- try {
39
- await i.runOperation({
40
- _id: c.draft._id,
41
- _rev: c.draft._rev ?? "",
42
- action: c.action,
43
- data: {
44
- remark: e.value
45
- }
46
- }).delayed(500), d.open({
47
- title: "Success",
48
- message: "Action submitted",
49
- type: "success"
50
- }), c.onFinished();
51
- } catch (l) {
52
- d.open({
53
- title: "Something went wrong",
54
- message: "Unable to submit actino. Please try again",
55
- type: "error"
56
- }), console.error("error on submit closing draft aciont", l);
57
- } finally {
58
- p.value = !1;
59
- }
60
- }
61
- return (l, g) => {
62
- const S = U("FmTextField"), $ = U("FmButton"), R = U("FmForm");
63
- return w(), oe(R, {
64
- onValidationSuccess: A,
65
- class: "flex flex-col gap-32",
66
- disabled: p.value
67
- }, {
68
- default: W(() => [
69
- o("div", rt, [
70
- g[2] || (g[2] = ye(" You are about to ")),
71
- o("span", lt, I(l.action == b(K).enum.approveDraft ? "approve" : "reject"), 1),
72
- g[3] || (g[3] = ye(" this draft. Please provider a remark to justify this action. "))
73
- ]),
74
- _(S, {
75
- modelValue: e.value,
76
- "onUpdate:modelValue": g[0] || (g[0] = (r) => e.value = r),
77
- label: "Remark",
78
- "label-mark": "required",
79
- rules: [b(Le)()]
80
- }, null, 8, ["modelValue", "rules"]),
81
- o("div", ct, [
82
- _($, {
83
- label: "Cancel",
84
- variant: "tertiary",
85
- onClick: g[1] || (g[1] = (r) => l.onCancel())
86
- }),
87
- _($, {
88
- label: l.action == b(K).enum.approveDraft ? "Approve" : "Reject",
89
- type: "submit",
90
- variant: l.action == b(K).enum.approveDraft ? "primary" : "destructive",
91
- loading: p.value
92
- }, null, 8, ["label", "variant", "loading"])
93
- ])
94
- ]),
95
- _: 1
96
- }, 8, ["disabled"]);
97
- };
98
- }
99
- }), it = re(0);
100
- function $e(a) {
101
- const c = a.measurementsAmounts.groupBy((i) => i.measurement.id), e = a.sku.unit.measurements.reduce((i, d) => {
102
- var l, g;
103
- const p = ((g = (l = c.get(d.id)) == null ? void 0 : l[0]) == null ? void 0 : g.amount) ?? it, A = ve(d.conversion, p);
104
- return i + +j(A);
105
- }, +j(a.baseAmount));
106
- return Ne(e, a.baseAmount.precision);
107
- }
108
- const ut = re(0), dt = re(100);
109
- function mt(a, c) {
110
- const e = $e(a), i = Ae(e, c), d = c.amount === 0 ? null : _e(i, {
111
- ...c,
112
- amount: Math.abs(c.amount)
113
- }), p = d ? ve(d, dt) : null;
114
- return {
115
- code: a.sku.code,
116
- name: a.sku.name,
117
- baseUnit: a.sku.unit.abbrev,
118
- baseUnitAmount: +j(a.baseAmount),
119
- ...a.measurementsAmounts.filter((l) => Re(l.measurement)).reduce(
120
- (l, g, S) => (l[`measurementAbbrev${S}`] = `(${g.measurement.abbrev}) × ${j(g.measurement.conversion)}`, l[`measurementAmount${S}`] = +j(g.amount), l),
121
- {}
122
- ),
123
- systemBalance: +j(c),
124
- physicalBalance: +j(e),
125
- adjustedAmount: +j(i),
126
- adjustedDiffPercentage: p ? +j(we(p, 2)) : null
127
- };
128
- }
129
- function Re(a) {
130
- return !a.abbrev.toLocaleLowerCase().includes("inactive");
131
- }
132
- function ft(a) {
133
- return a.reduce(
134
- (c, e) => Math.max(c, e.sku.unit.measurements.filter(Re).length),
135
- 0
136
- );
137
- }
138
- function pt(a) {
139
- return [
140
- {
141
- id: "code",
142
- name: "Code"
143
- },
144
- {
145
- id: "name",
146
- name: "Name"
147
- },
148
- {
149
- id: "unit",
150
- name: "Base unit amount"
151
- },
152
- {
153
- id: "baseUnit",
154
- name: "Base unit"
155
- },
156
- ...Array.from({ length: a }).flatMap((e, i) => [
157
- {
158
- id: `measurementAmount${i}`,
159
- name: `UOM amount ${i + 1}`
160
- },
161
- {
162
- id: `measurementAbbrev${i}`,
163
- name: `UOM ${i + 1}`
164
- }
165
- ]),
166
- {
167
- id: "physicalBalance",
168
- name: "Total balance"
169
- },
170
- {
171
- id: "systemBalance",
172
- name: "System balance"
173
- },
174
- {
175
- id: "adjustedAmount",
176
- name: "Adjusted amount"
177
- },
178
- {
179
- id: "adjustedDiffPercentage",
180
- name: "Diff (%)"
181
- }
182
- ];
183
- }
184
- function vt(a, c) {
185
- var s, f, H, M, C, X, F;
186
- const e = c.groupBy(
187
- (v) => v.id,
188
- (v) => v.balance
189
- ), i = [...a.items, ...a.negativeStockItems ?? []], d = i.map((v) => {
190
- var Z;
191
- const E = ((Z = e.get(v.sku._id)) == null ? void 0 : Z[0]) ?? ut;
192
- return mt(v, E);
193
- }), p = ft(i), l = et().currentBusiness.value, g = pt(p), S = [
194
- ["Business name:", l == null ? void 0 : l.name],
195
- ["Business ID:", l == null ? void 0 : l._id],
196
- ["Menu version", l == null ? void 0 : l.menuVersion],
197
- ["Created at", new Date(a.createdAt)],
198
- ["Created by", (s = a.createdBy) == null ? void 0 : s.name],
199
- ["Updated at", new Date(a.updatedAt)],
200
- ["Updated by", (f = a.updatedBy) == null ? void 0 : f.name],
201
- ["Recent action", a.approvedAt ? "Approve" : a.rejectionHistory ? "Reject" : ""],
202
- [
203
- "Action by",
204
- a.approvedAt ? (H = a.approvedBy) == null ? void 0 : H.name : a.rejectionHistory ? (C = (M = a.rejectionHistory[0]) == null ? void 0 : M.rejectedBy) == null ? void 0 : C.name : ""
205
- ],
206
- [
207
- "Action at",
208
- a.approvedAt ? new Date(a.approvedAt) : a.rejectionHistory ? new Date((X = a.rejectionHistory[0]) == null ? void 0 : X.rejectedAt) : ""
209
- ],
210
- [
211
- "Action remark",
212
- a.approvedAt ? a.approveRemark : a.rejectionHistory ? new Date((F = a.rejectionHistory[0]) == null ? void 0 : F.rejectRemark) : ""
213
- ],
214
- [],
215
- g.map((v) => v.name),
216
- ...d.map((v) => g.map((E) => v[E.id]))
217
- ], $ = g.map((v) => `system:${v.id}`), R = Oe(S, $), r = `[${l == null ? void 0 : l.name}] closing draft (${Ke(new Date(a.updatedAt))}).xlsx`;
218
- return Ve(R, r), r;
219
- }
220
- const me = Se(
221
- "closingDraftActions",
222
- function() {
223
- const c = tt(), e = ge(), i = ke(), d = Be(), p = z(!1), A = z();
224
- function l(s) {
225
- const f = {
226
- draft: s
227
- };
228
- A.value = f, p.value = !0;
229
- }
230
- async function g(s) {
231
- var H;
232
- if (s.status === se.enum.COMPLETED) {
233
- const M = s.closingId;
234
- if (!M)
235
- return e.open({
236
- title: "Something went wrong",
237
- message: "Closing draft is completed but closing document cannot be found.",
238
- type: "error"
239
- }), console.error("Closing draft is completed but closing document cannot be found.", {
240
- draftId: s == null ? void 0 : s._id
241
- }), [];
242
- const C = await i.getClosingById(M);
243
- return (C == null ? void 0 : C.skus) ?? [];
244
- } else
245
- return await d.readStockBalance(), ((H = d.stockBalance) == null ? void 0 : H.skus) ?? [];
246
- }
247
- async function S(s, f) {
248
- f || (e.open({
249
- title: "Exporting",
250
- message: "Fetching data..."
251
- }), f = await g(s)), vt(s, f);
252
- }
253
- function $(s, f) {
254
- c.open({
255
- title: "Approve draft",
256
- contentComponent: he,
257
- contentComponentProps: {
258
- draft: s,
259
- action: K.enum.approveDraft,
260
- onFinished: () => {
261
- c.close(), f == null || f();
262
- },
263
- onCancel: () => c.close()
264
- }
265
- });
266
- }
267
- function R(s, f) {
268
- c.open({
269
- title: "Reject draft",
270
- contentComponent: he,
271
- contentComponentProps: {
272
- draft: s,
273
- action: K.enum.rejectDraft,
274
- onFinished: () => {
275
- c.close(), f == null || f();
276
- },
277
- onCancel: () => c.close()
278
- }
279
- });
280
- }
281
- function r() {
282
- p.value = !1;
283
- }
284
- return {
285
- viewDraft: l,
286
- closeDraftDialog: r,
287
- approveDraft: $,
288
- rejectDraft: R,
289
- exportDraft: S,
290
- viewClosingDraftShow: p,
291
- viewClosingDraftProps: A
292
- };
293
- }
294
- );
295
- function Me(a) {
296
- switch (a) {
297
- case "DRAFT":
298
- return "fm-status-badge-draft";
299
- case "PROCESSING":
300
- return "fm-status-badge-processing";
301
- case "FAILED":
302
- return "fm-status-badge-cancel";
303
- case "COMPLETED":
304
- return "fm-status-badge-complete";
305
- }
306
- }
307
- const gt = Se("closingDraftTable", function() {
308
- const { t: c } = je(), e = me(), i = z(new Array()), d = z(!1), p = pe(), A = Fe();
309
- async function l() {
310
- if (i.value = [], !!p._currentLocation) {
311
- d.value = !0;
312
- try {
313
- const [r] = await Promise.all([A.readDrafts()]).delayed(1e3);
314
- i.value = r.reverse();
315
- } catch (r) {
316
- console.log("Something went wrong when fetching drafts:", r);
317
- } finally {
318
- d.value = !1;
319
- }
320
- }
321
- }
322
- async function g(r) {
323
- if (!i.value.find((s) => s._id) && p._currentLocation) {
324
- d.value = !0;
325
- try {
326
- const [s] = await Promise.all([
327
- A.getDraft(r),
328
- new Promise((f) => setTimeout(f, 1e3))
329
- ]);
330
- i.value = [s];
331
- } catch (s) {
332
- console.log("Something went wrong when fetching drafts:", s);
333
- } finally {
334
- d.value = !1;
335
- }
336
- }
337
- }
338
- function S() {
339
- e.closeDraftDialog(), l();
340
- }
341
- function $(r, s) {
342
- switch (s = qe(s), r) {
343
- case ie.Details:
344
- return e.viewDraft(s);
345
- case ie.Export:
346
- return e.exportDraft(s);
347
- case K.enum.approveDraft:
348
- return e.approveDraft(s, S);
349
- case K.enum.rejectDraft:
350
- return e.rejectDraft(s, S);
351
- }
352
- }
353
- return {
354
- columnDefs: [
355
- {
356
- id: "_id",
357
- accessorKey: "_id",
358
- header: () => c("inventory.closing.table.createdAt"),
359
- cell(r) {
360
- return Ye(`${r.getValue()}`);
361
- },
362
- enableSorting: !0
363
- },
364
- {
365
- id: "updatedAt",
366
- accessorFn: (r) => q(r.updatedAt),
367
- header: () => "Updated at",
368
- enableSorting: !0,
369
- size: 200
370
- },
371
- {
372
- id: "updatedBy",
373
- accessorKey: "updatedBy.name",
374
- header: () => "Last update by",
375
- enableSorting: !0,
376
- size: 200
377
- },
378
- {
379
- id: "noOfItems",
380
- accessorFn: (r) => {
381
- var s;
382
- return r.items.length + (((s = r.negativeStockItems) == null ? void 0 : s.length) ?? 0);
383
- },
384
- header: () => c("inventory.closing.table.noOfItems"),
385
- enableSorting: !1,
386
- meta: {
387
- width: "10rem",
388
- textAlign: "right"
389
- }
390
- },
391
- {
392
- id: "recentRemark",
393
- accessorFn: (r) => {
394
- var s;
395
- return (r == null ? void 0 : r.approveRemark) ?? ((s = r == null ? void 0 : r.rejectionHistory) == null ? void 0 : s.computeFirst((f) => f.rejectRemark));
396
- },
397
- header: () => "Recent remark"
398
- },
399
- {
400
- id: "status",
401
- accessorFn: (r) => r.status,
402
- header: () => c("inventory.closing.table.status"),
403
- enableSorting: !1,
404
- cell(r) {
405
- const f = r.row.original.status;
406
- return O(
407
- "div",
408
- {
409
- class: "flex"
410
- },
411
- O(
412
- "div",
413
- {
414
- class: ["fm-status-badge", Me(f)]
415
- },
416
- Ce(f)
417
- )
418
- );
419
- }
420
- },
421
- {
422
- id: "action",
423
- cell(r) {
424
- const s = r.row.original, f = [
425
- be[ie.Details],
426
- be[ie.Export]
427
- ], H = [
428
- {
429
- translationKey: "inventory.closing.draft.approveDraft",
430
- color: "text-fm-color-typo-primary",
431
- value: K.enum.approveDraft
432
- },
433
- {
434
- translationKey: "inventory.closing.draft.rejectDraft",
435
- color: "text-fm-color-typo-error",
436
- value: K.enum.rejectDraft
437
- }
438
- ];
439
- return Ge(
440
- [...f, ...s.status === se.enum.DRAFT ? H : []],
441
- (M) => $(M, s)
442
- );
443
- },
444
- enableSorting: !1,
445
- size: 40,
446
- meta: {
447
- cellClass: "",
448
- headerClass: ""
449
- }
450
- }
451
- ],
452
- drafts: i,
453
- loading: d,
454
- fetchDrafts: l,
455
- loadDraft: g
456
- };
457
- }), yt = { class: "w-full flex flex-col gap-32" }, bt = { class: "flex justify-between" }, ht = { class: "flex" }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Dt = { class: "flex gap-1" }, At = { class: "fm-typo-en-body-lg-600" }, _t = { class: "flex flex-col gap-16" }, wt = { class: "flex" }, kt = { key: 0 }, Ct = {
458
- key: 0,
459
- class: "w-full flex flex-col items-center"
460
- }, jt = { class: "flex items-center gap-8" }, St = {
461
- key: 1,
462
- class: "overflow-x-auto"
463
- }, Bt = {
464
- key: 1,
465
- class: "flex-1 xs:w-screen xs:max-w-full"
466
- }, Ft = {
467
- key: 0,
468
- class: "flex flex-col items-center gap-8 h-full"
469
- }, $t = ["src"], Rt = {
470
- key: 1,
471
- class: "px-4 flex flex-col"
472
- }, Mt = { class: "flex gap-12 content-stretch" }, Tt = {
473
- class: "flex flex-col w-24",
474
- name: "circles"
475
- }, Pt = { class: "flex-1 flex flex-col items-center" }, Ut = { class: "flex-1 flex flex-col items-center" }, Ht = {
476
- class: "py-12 flex flex-col gap-4",
477
- name: "received-at header"
478
- }, It = { class: "fm-typo-en-body-lg-400" }, zt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Et = { class: "flex gap-12 content-stretch" }, Lt = {
479
- class: "flex flex-col w-24",
480
- name: "circles"
481
- }, Nt = { class: "flex-1 flex flex-col items-center" }, Ot = {
482
- class: "py-12 flex flex-col gap-4 flex-1",
483
- name: "delivery details"
484
- }, Kt = { class: "flex flex-col gap-8" }, Vt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Yt = { class: "flex flex-col gap-4" }, Gt = { class: "flex gap-8" }, qt = /* @__PURE__ */ fe({
485
- __name: "ClosingDraftDialog",
486
- props: {
487
- show: { type: Boolean },
488
- draft: {}
489
- },
490
- emits: ["submitted"],
491
- setup(a, { emit: c }) {
492
- const e = a, i = Be(), d = me(), p = at(e, "show"), A = z(!1), l = z(new Array()), g = ke(), S = ge(), $ = We(), R = c, r = T(() => {
493
- var n, t;
494
- return [
495
- ...((n = e.draft) == null ? void 0 : n.items) ?? [],
496
- ...((t = e.draft) == null ? void 0 : t.negativeStockItems) ?? []
497
- ];
498
- }), s = T(() => {
499
- const n = r.value.map((t) => t.sku);
500
- return n.sort((t, m) => t.code.localeCompare(m.code)), n;
501
- }), f = T(() => r.value.groupBy(
502
- (t) => t.sku._id,
503
- (t) => t.measurementsAmounts.filter((m) => !m.measurement.abbrev.toLocaleLowerCase().includes("inactive")).map((m) => m.measurement.id)
504
- ));
505
- Ue(C), He(
506
- () => e.show,
507
- (n) => {
508
- n && (V.value = te[0], C());
509
- }
510
- );
511
- const H = re(0), M = re(100);
512
- async function C() {
513
- var t, m, u;
514
- A.value = !0;
515
- const n = ((t = e.draft) == null ? void 0 : t.status) === se.enum.COMPLETED;
516
- try {
517
- if (await $.init(), n) {
518
- const h = e.draft.closingId;
519
- if (!h) {
520
- S.open({
521
- title: "Something went wrong",
522
- message: "Closing draft is completed but closing document cannot be found.",
523
- type: "error"
524
- }), console.error("Closing draft is completed but closing document cannot be found.", {
525
- draftId: (m = e.draft) == null ? void 0 : m._id
526
- });
527
- return;
528
- }
529
- const y = await g.getClosingById(h);
530
- l.value = (y == null ? void 0 : y.skus) ?? [];
531
- } else
532
- await i.readStockBalance(), l.value = ((u = i.stockBalance) == null ? void 0 : u.skus) ?? [];
533
- } catch (h) {
534
- S.open({
535
- title: "Something went wrong",
536
- message: "Something went wrong when fetching info. Please try again.",
537
- type: "error"
538
- }), console.error("error on fetch stock balances", h);
539
- } finally {
540
- A.value = !1;
541
- }
542
- }
543
- const X = T(
544
- () => l.value.groupBy(
545
- (n) => n.id,
546
- (n) => n.balance
547
- )
548
- ), F = T(() => r.value.groupBy((n) => n.sku._id));
549
- function v(n) {
550
- return O(
551
- de.FmTooltip,
552
- { zIndex: 51, placement: "left", class: "w-full flex justify-end" },
553
- {
554
- default() {
555
- return n;
556
- },
557
- content() {
558
- return "Differences are calculated using this formula: (Adjusted / System) × 100%";
559
- }
560
- }
561
- );
562
- }
563
- const E = T(() => {
564
- const n = s.value.reduce((m, u) => {
565
- var h, y, P, Y;
566
- return console.log(
567
- "Measurement counts",
568
- u.unit.name,
569
- u.unit.abbrev,
570
- (y = (h = f.value) == null ? void 0 : h.get(u._id)) == null ? void 0 : y[0].length
571
- ), Math.max(m, ((Y = (P = f.value) == null ? void 0 : P.get(u._id)) == null ? void 0 : Y[0].length) ?? 0);
572
- }, 0);
573
- return [
574
- {
575
- id: "code",
576
- accessorKey: "code",
577
- header: () => "Code",
578
- size: 200
579
- },
580
- {
581
- id: "name",
582
- accessorKey: "name",
583
- header: () => "Name",
584
- size: 300
585
- },
586
- {
587
- id: "baseUnitAmount",
588
- accessorKey: "baseUnitAmount",
589
- header: () => v("Base unit amount"),
590
- size: 200,
591
- meta: {
592
- textAlign: "right"
593
- }
594
- },
595
- {
596
- id: "baseUnit",
597
- accessorKey: "baseUnit",
598
- header: () => "Base unit",
599
- size: 200
600
- },
601
- ...Array.from({ length: n }).flatMap((m, u) => {
602
- const h = `measurementAbbrev${u}`, y = `measurementAmount${u}`;
603
- return [
604
- {
605
- id: y,
606
- accessorKey: y,
607
- header: () => v(`UOM amount ${u + 1}`),
608
- size: 200,
609
- meta: {
610
- textAlign: "right"
611
- }
612
- },
613
- {
614
- id: h,
615
- accessorKey: h,
616
- header: () => `UOM ${u + 1}`,
617
- size: 200
618
- }
619
- ];
620
- }),
621
- {
622
- id: "physicalBalance",
623
- accessorKey: "physicalBalance",
624
- header: () => v("Total balance"),
625
- size: 200,
626
- meta: {
627
- textAlign: "right"
628
- }
629
- },
630
- {
631
- id: "systemBalance",
632
- accessorKey: "systemBalance",
633
- header: () => v("System balance"),
634
- size: 200,
635
- meta: {
636
- textAlign: "right"
637
- }
638
- },
639
- {
640
- id: "adjustedAmount",
641
- accessorKey: "adjustedAmount",
642
- header: () => v("Adjusted amount"),
643
- size: 200,
644
- meta: {
645
- textAlign: "right"
646
- }
647
- },
648
- {
649
- id: "adjustedDiffPercentage",
650
- accessorKey: "adjustedDiffPercentage",
651
- header: () => O(
652
- de.FmTooltip,
653
- { zIndex: 51, placement: "left", class: "w-full flex justify-end" },
654
- {
655
- default() {
656
- return O("div", { class: "flex items-center gap-4" }, [
657
- "Diff (%)",
658
- O(de.FmIcon, { name: "info", color: "neutral-gray-400", size: "sm" })
659
- ]);
660
- },
661
- content() {
662
- return "Differences are calculated using this formula: (Adjusted / System) × 100%";
663
- }
664
- }
665
- ),
666
- size: 200,
667
- cell(m) {
668
- const u = m.row.original.adjustedDiffPercentage;
669
- if (!u) return "N/A";
670
- const h = u.toFixed(2);
671
- if (h === "0.00")
672
- return O("div", { class: "flex items-center gap-4 justify-end" }, ["0.00"]);
673
- const y = u > 0;
674
- return O("div", { class: "flex items-center gap-4 justify-end" }, [
675
- O(de.FmIcon, {
676
- name: y ? "arrow_drop_up" : "arrow_drop_down",
677
- color: y ? "system-success-300" : "system-error-300",
678
- size: "md"
679
- }),
680
- h
681
- ]);
682
- },
683
- meta: {
684
- textAlign: "right"
685
- }
686
- }
687
- ];
688
- }), Z = T(() => E.value.map((n) => n.size ?? 0).reduce((n, t) => n + t)), le = T(() => s.value.map((n) => {
689
- var N, J;
690
- const t = (N = F.value.get(n._id)) == null ? void 0 : N[0], m = ((J = X.value.get(n._id)) == null ? void 0 : J[0]) ?? H;
691
- if (!t)
692
- return {
693
- code: n.code,
694
- name: n.name,
695
- baseUnit: n.unit.abbrev,
696
- baseUnitAmount: 0,
697
- systemBalance: +j(m),
698
- physicalBalance: 0,
699
- adjustedAmount: -+j(m),
700
- adjustedDiffPercentage: -100
701
- };
702
- const u = $e(t), h = Ae(u, m), y = m.amount === 0 ? null : _e(h, {
703
- ...m,
704
- amount: Math.abs(m.amount)
705
- }), P = y ? ve(y, M) : null;
706
- return {
707
- code: n.code,
708
- name: n.name,
709
- baseUnit: n.unit.abbrev,
710
- baseUnitAmount: +j(t.baseAmount),
711
- ...t.measurementsAmounts.filter((D) => {
712
- var x, k, G;
713
- return (G = (k = (x = f.value) == null ? void 0 : x.get(n._id)) == null ? void 0 : k[0]) == null ? void 0 : G.includes(D.measurement.id);
714
- }).reduce((D, x, k) => (D[`measurementAbbrev${k}`] = `(${x.measurement.abbrev}) × ${j(x.measurement.conversion)}`, D[`measurementAmount${k}`] = +j(x.amount), D), {}),
715
- systemBalance: +j(m),
716
- physicalBalance: +j(u),
717
- adjustedAmount: +j(h),
718
- adjustedDiffPercentage: P ? +j(we(P, 2)) : null
719
- };
720
- })), ee = T(() => {
721
- var t, m;
722
- if (!e.draft) return [];
723
- const n = e.draft.approvedAt ? {
724
- action: `Approve at ${q(e.draft.approvedAt)}`,
725
- // actionAt: props.draft.approvedAt,
726
- actionBy: e.draft.approvedBy,
727
- remark: e.draft.approveRemark
728
- } : (t = e.draft.rejectionHistory) == null ? void 0 : t.computeFirst((u) => ({
729
- action: `Reject at ${q(u.rejectedAt)}`,
730
- // actionAt: e.rejectedAt,
731
- actionBy: u.rejectedBy,
732
- remark: u.rejectRemark
733
- }));
734
- return [
735
- {
736
- label: "Created at",
737
- value: q(e.draft.createdAt)
738
- },
739
- {
740
- label: "Created by",
741
- value: e.draft.createdBy.name
742
- },
743
- {
744
- label: "Updated at",
745
- value: q(e.draft.updatedAt)
746
- },
747
- {
748
- label: "Updated by",
749
- value: e.draft.updatedBy.name
750
- },
751
- {
752
- label: "Effective at",
753
- value: q(e.draft.effectiveAt ?? e.draft.updatedAt)
754
- },
755
- e.draft.remark ? {
756
- label: "Remark",
757
- value: e.draft.remark
758
- } : null,
759
- n ? {
760
- label: "Last action",
761
- value: n.action
762
- } : null,
763
- n && n.actionBy ? {
764
- label: "Last action by",
765
- value: (m = n.actionBy) == null ? void 0 : m.name
766
- } : null,
767
- n && n.remark ? {
768
- label: "Action remark",
769
- value: n.remark
770
- } : null
771
- ].filter((u) => u).map((u) => u);
772
- }), te = [
773
- {
774
- label: "Overview",
775
- value: "overview"
776
- },
777
- {
778
- label: "Action history",
779
- value: "history"
780
- }
781
- ], V = z(te[0]), L = T(() => {
782
- var t, m, u, h;
783
- return [
784
- ...(((t = e.draft) == null ? void 0 : t.rejectionHistory) ?? []).map(
785
- (y) => ({
786
- header: "Reject",
787
- date: q(y.rejectedAt),
788
- info: [
789
- {
790
- label: "Rejected by",
791
- values: [y.rejectedBy.name]
792
- },
793
- {
794
- label: "Rejection remark",
795
- values: [y.rejectRemark]
796
- }
797
- ]
798
- })
799
- ),
800
- ...(m = e.draft) != null && m.approvedBy ? [
801
- {
802
- header: "Approve",
803
- date: e.draft.approvedAt ? q(e.draft.approvedAt) : "",
804
- info: [
805
- {
806
- label: "Approved by",
807
- values: [(u = e.draft) == null ? void 0 : u.approvedBy.name]
808
- },
809
- {
810
- label: "Approval remark",
811
- values: [((h = e.draft) == null ? void 0 : h.approveRemark) ?? ""]
812
- }
813
- ]
814
- }
815
- ] : []
816
- ];
817
- });
818
- return (n, t) => {
819
- const m = U("FmButtonGroup"), u = U("FmMenuDivider"), h = U("FmCard"), y = U("FmButton"), P = U("FmCircularProgress"), Y = U("FmTable"), N = U("FmSpacer"), J = U("FmSideSheet");
820
- return w(), oe(J, {
821
- "dismiss-away": "",
822
- "max-width": 900,
823
- "model-value": b(p),
824
- "onUpdate:modelValue": t[5] || (t[5] = (D) => xe(p) ? p.value = D : null),
825
- header: "Closing details"
826
- }, {
827
- "side-sheet-footer": W(() => {
828
- var D, x;
829
- return [
830
- o("div", Gt, [
831
- ((D = e.draft) == null ? void 0 : D.status) === b(se).enum.DRAFT ? (w(), oe(y, {
832
- key: 0,
833
- label: "Approve",
834
- onClick: t[2] || (t[2] = () => e.draft && b(d).approveDraft(e.draft, () => R("submitted")))
835
- })) : ae("", !0),
836
- ((x = e.draft) == null ? void 0 : x.status) === b(se).enum.DRAFT ? (w(), oe(y, {
837
- key: 1,
838
- label: "Reject",
839
- variant: "destructive",
840
- onClick: t[3] || (t[3] = () => e.draft && b(d).rejectDraft(e.draft, () => R("submitted")))
841
- })) : ae("", !0),
842
- _(y, {
843
- label: "Close",
844
- variant: "tertiary",
845
- onClick: t[4] || (t[4] = (k) => p.value = !1)
846
- })
847
- ])
848
- ];
849
- }),
850
- default: W(() => [
851
- o("div", yt, [
852
- o("div", null, [
853
- _(m, {
854
- items: te,
855
- modelValue: V.value,
856
- "onUpdate:modelValue": t[0] || (t[0] = (D) => V.value = D)
857
- }, null, 8, ["modelValue"])
858
- ]),
859
- V.value.value === "overview" ? (w(), B(Q, { key: 0 }, [
860
- _(h, {
861
- variant: "outlined",
862
- class: "flex flex-col gap-8 px-12 py-16"
863
- }, {
864
- default: W(() => {
865
- var D, x;
866
- return [
867
- o("div", bt, [
868
- t[6] || (t[6] = o("div", { class: "fm-typo-en-body-lg-600" }, "Closing summary", -1)),
869
- o("div", ht, [
870
- o("div", {
871
- class: ne(["fm-status-badge", b(Me)(((D = n.draft) == null ? void 0 : D.status) ?? "DRAFT")])
872
- }, I(b(Ce)(((x = n.draft) == null ? void 0 : x.status) ?? "")), 3)
873
- ])
874
- ]),
875
- _(u),
876
- (w(!0), B(Q, null, ce(ee.value, (k, G) => (w(), B("div", {
877
- class: "flex flex-col gap-4",
878
- key: G
879
- }, [
880
- o("div", xt, [
881
- o("div", Dt, I(k.label), 1)
882
- ]),
883
- o("div", At, I(k.value), 1)
884
- ]))), 128))
885
- ];
886
- }),
887
- _: 1
888
- }),
889
- o("div", _t, [
890
- o("div", wt, [
891
- t[7] || (t[7] = o("div", { class: "flex-1 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, " Closing items ", -1)),
892
- A.value ? ae("", !0) : (w(), B("div", kt, [
893
- _(y, {
894
- label: "Export data",
895
- "prepend-icon": "download",
896
- variant: "secondary",
897
- "text-color": "primary",
898
- "bg-color": "transparent",
899
- "border-color": "primary",
900
- onClick: t[1] || (t[1] = (D) => n.draft ? b(d).exportDraft(n.draft, l.value) : null)
901
- })
902
- ]))
903
- ]),
904
- A.value ? (w(), B("div", Ct, [
905
- t[9] || (t[9] = o("div", { class: "h-80" }, null, -1)),
906
- o("div", jt, [
907
- o("div", null, [
908
- _(P, { size: "md" })
909
- ]),
910
- t[8] || (t[8] = o("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Fetching info... ", -1))
911
- ]),
912
- t[10] || (t[10] = o("div", { class: "h-80" }, null, -1))
913
- ])) : (w(), B("div", St, [
914
- o("div", {
915
- style: De({ width: `${Z.value}px` })
916
- }, [
917
- _(Y, {
918
- "column-defs": E.value,
919
- "row-data": le.value
920
- }, null, 8, ["column-defs", "row-data"])
921
- ], 4)
922
- ]))
923
- ])
924
- ], 64)) : ae("", !0),
925
- V.value.value === "history" ? (w(), B("div", Bt, [
926
- L.value.length ? (w(), B("div", Rt, [
927
- (w(!0), B(Q, null, ce(L.value, (D, x) => (w(), B(Q, { key: x }, [
928
- o("div", Mt, [
929
- o("div", Tt, [
930
- o("div", Pt, [
931
- o("div", {
932
- class: ne([
933
- {
934
- "bg-fm-color-primary": x !== 0,
935
- "bg-white": x === 0
936
- },
937
- "w-[2px] h-full"
938
- ])
939
- }, null, 2)
940
- ]),
941
- t[13] || (t[13] = o("div", { class: "h-24 w-24 bg-fm-color-primary rounded-full" }, null, -1)),
942
- o("div", Ut, [
943
- o("div", {
944
- class: ne([
945
- {
946
- "bg-fm-color-primary": x < L.value.length - 1,
947
- "bg-white": x >= L.value.length - 1
948
- },
949
- "w-[2px] h-full"
950
- ])
951
- }, null, 2)
952
- ])
953
- ]),
954
- o("div", Ht, [
955
- o("div", It, I(D.header), 1),
956
- o("div", zt, I(D.date), 1)
957
- ])
958
- ]),
959
- o("div", Et, [
960
- o("div", Lt, [
961
- o("div", Nt, [
962
- o("div", {
963
- class: ne([
964
- {
965
- "bg-fm-color-primary": x < L.value.length - 1,
966
- "bg-white": x >= L.value.length - 1
967
- },
968
- "w-[2px] h-full"
969
- ])
970
- }, null, 2)
971
- ])
972
- ]),
973
- o("div", Ot, [
974
- _(h, {
975
- variant: "outlined",
976
- class: "py-12 px-16"
977
- }, {
978
- default: W(() => [
979
- o("div", Kt, [
980
- (w(!0), B(Q, null, ce(D.info, (k, G) => (w(), B("div", {
981
- key: G,
982
- class: "flex flex-col gap-4"
983
- }, [
984
- o("div", Vt, I(k == null ? void 0 : k.label), 1),
985
- o("div", Yt, [
986
- (w(!0), B(Q, null, ce(k == null ? void 0 : k.values, (Te, Pe) => (w(), B("div", {
987
- key: Pe,
988
- class: "fm-typo-en-body-lg-600"
989
- }, I(Te), 1))), 128))
990
- ])
991
- ]))), 128))
992
- ])
993
- ]),
994
- _: 2
995
- }, 1024)
996
- ])
997
- ])
998
- ], 64))), 128))
999
- ])) : (w(), B("div", Ft, [
1000
- _(N),
1001
- o("div", null, [
1002
- o("img", {
1003
- src: b(st),
1004
- alt: "List is empty"
1005
- }, null, 8, $t)
1006
- ]),
1007
- t[11] || (t[11] = o("div", { class: "fm-typo-en-body-lg-600" }, I("No records found"), -1)),
1008
- t[12] || (t[12] = o("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, I("You can track approval and rejection history here"), -1)),
1009
- _(N),
1010
- _(N)
1011
- ]))
1012
- ])) : ae("", !0)
1013
- ])
1014
- ]),
1015
- _: 1
1016
- }, 8, ["model-value"]);
1017
- };
1018
- }
1019
- }), 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({
1020
- __name: "ClosingDraftView",
1021
- setup(a) {
1022
- const { t: c } = je(), { viewDraft: e } = me(), { viewClosingDraftProps: i, viewClosingDraftShow: d } = ot(me()), p = pe(), A = gt(), l = Ze(), { breakpoints: g } = nt();
1023
- p.watchLocation(A.fetchDrafts);
1024
- const S = T(() => A.loading), $ = z(""), R = T(() => g.value.xs || g.value.sm), r = T(() => R.value ? 10 : 20);
1025
- function s(M) {
1026
- switch (M) {
1027
- case "refresh":
1028
- return A.fetchDrafts();
1029
- }
1030
- }
1031
- function f(M) {
1032
- return M;
1033
- }
1034
- const H = T(() => R.value ? [
1035
- {
1036
- label: "Refresh",
1037
- value: "refresh",
1038
- isPrimary: !1
1039
- }
1040
- ] : [
1041
- {
1042
- label: "Refresh",
1043
- value: "refresh",
1044
- isPrimary: !1
1045
- }
1046
- ]);
1047
- return (M, C) => {
1048
- const X = U("FmTable");
1049
- return w(), B(Q, null, [
1050
- _(Je, {
1051
- title: b(c)("inventory.closing.draft.title"),
1052
- actions: H.value,
1053
- "onClick:action": s
1054
- }, {
1055
- default: W(() => [
1056
- o("div", {
1057
- class: ne([
1058
- "flex flex-col gap-8 max-h-full",
1059
- {
1060
- "p-0": R.value,
1061
- "px-24 ": !R.value
1062
- }
1063
- ])
1064
- }, [
1065
- _(Qe, {
1066
- "change-location": "",
1067
- searchable: "",
1068
- search: $.value,
1069
- "onUpdate:search": C[0] || (C[0] = (F) => $.value = F)
1070
- }, null, 8, ["search"]),
1071
- _(X, {
1072
- style: De(b(l).tableHeight),
1073
- "column-defs": b(A).columnDefs,
1074
- "row-data": b(A).drafts,
1075
- "search-value": $.value,
1076
- loading: S.value,
1077
- onRowClick: C[1] || (C[1] = (F) => b(e)(F.original)),
1078
- "page-size": r.value
1079
- }, {
1080
- "list-row": W((F) => [
1081
- _(Xe, {
1082
- row: F,
1083
- onRowClick: (v) => b(e)(v)
1084
- }, {
1085
- default: W((v) => {
1086
- var E, Z, le, ee, te, V, L, n, t, m, u, h, y, P, Y, N, J, D, x, k;
1087
- return [
1088
- o("div", Wt, [
1089
- o("div", Zt, [
1090
- o("div", Jt, [
1091
- _(b(ue), {
1092
- render: (le = (Z = (E = v._id) == null ? void 0 : E.column) == null ? void 0 : Z.columnDef) == null ? void 0 : le.cell,
1093
- props: (te = (ee = v._id) == null ? void 0 : ee.getContext) == null ? void 0 : te.call(ee)
1094
- }, null, 8, ["render", "props"])
1095
- ]),
1096
- o("div", Qt, [
1097
- _(b(ue), {
1098
- render: (n = (L = (V = v.name) == null ? void 0 : V.column) == null ? void 0 : L.columnDef) == null ? void 0 : n.cell,
1099
- props: (m = (t = v.name) == null ? void 0 : t.getContext) == null ? void 0 : m.call(t)
1100
- }, null, 8, ["render", "props"])
1101
- ]),
1102
- o("div", Xt, I([
1103
- ...F.original.items.slice(0, 3).map((G) => G.sku.name),
1104
- ...F.original.items.length >= 3 ? [`and ${F.original.items.length - 3} more items`] : []
1105
- ].join(", ")), 1),
1106
- o("div", ea, [
1107
- _(b(ue), {
1108
- render: (y = (h = (u = v.ref) == null ? void 0 : u.column) == null ? void 0 : h.columnDef) == null ? void 0 : y.cell,
1109
- props: (Y = (P = v.ref) == null ? void 0 : P.getContext) == null ? void 0 : Y.call(P)
1110
- }, null, 8, ["render", "props"])
1111
- ])
1112
- ]),
1113
- o("div", null, [
1114
- _(b(ue), {
1115
- render: (D = (J = (N = v.status) == null ? void 0 : N.column) == null ? void 0 : J.columnDef) == null ? void 0 : D.cell,
1116
- props: (k = (x = v.status) == null ? void 0 : x.getContext) == null ? void 0 : k.call(x)
1117
- }, null, 8, ["render", "props"])
1118
- ])
1119
- ])
1120
- ];
1121
- }),
1122
- _: 2
1123
- }, 1032, ["row", "onRowClick"])
1124
- ]),
1125
- _: 1
1126
- }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
1127
- ], 2)
1128
- ]),
1129
- _: 1
1130
- }, 8, ["title", "actions"]),
1131
- (w(), oe(Ie, { to: "body" }, [
1132
- _(qt, ze(b(i), {
1133
- show: b(d),
1134
- "onUpdate:show": C[2] || (C[2] = (F) => xe(d) ? d.value = F : null),
1135
- onSubmitted: C[3] || (C[3] = () => (d.value = !1, b(A).fetchDrafts()))
1136
- }), null, 16, ["show"])
1137
- ]))
1138
- ], 64);
1139
- };
1140
- }
1141
- });
1142
- export {
1143
- ca as default
1144
- };