@feedmepos/mf-inventory-portal 0.0.23-dev.4 → 0.0.23-dev.40
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.
- package/dist/{App-DReDvY0M.js → App-D8DXxTIq.js} +84 -72
- package/dist/{ApprovalView-BMZlYmRk.js → ApprovalView-BWGXkHV6.js} +25 -28
- package/dist/{BindingsDialog-Y2K4I7H7.js → BindingsDialog-D7WypDot.js} +6 -6
- package/dist/{BindingsPicker-DKBq9c37.js → BindingsPicker-DUlGwkwM.js} +8 -9
- package/dist/{BindingsTable-45v4SDfp.js → BindingsTable-BjeZYCaJ.js} +18 -22
- package/dist/ClosingDraftView-o2LEUfo8.js +1190 -0
- package/dist/{ClosingTemplateView-CKJVYSbj.js → ClosingTemplateView-Dt983Cg4.js} +271 -285
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dc_7IyBG.js +142 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CMEOp-0r.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-wocPyZls.js} +18 -19
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C1DjyjyH.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DzoEp-Pg.js} +25 -26
- package/dist/{IngredientGroupView-BuP-HGeg.js → IngredientGroupView-CIPpIpv1.js} +63 -69
- package/dist/IngredientsView-CFV3kX7Q.js +1707 -0
- package/dist/{IntegrationView-kYCaKG0o.js → IntegrationView-DkW32m-t.js} +89 -92
- package/dist/{InventoryBindingForm-BXHq4h-n.js → InventoryBindingForm-B4CBet9W.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CVxJ_bV3.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DpdDVf6O.js} +112 -104
- package/dist/{InventoryBindingSummary-Bjasfc_v.js → InventoryBindingSummary-75ImZtqK.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DM0C4raP.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DfpG3Fy8.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C3O3JebE.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B4d0c3nk.js} +19 -20
- package/dist/{PurchaseOrderPrintPreview-CmjkfTTS.js → PurchaseOrderPrintPreview-BYO0JcQW.js} +17 -18
- package/dist/ReceiveRequestView-cFLNExw9.js +4194 -0
- package/dist/RecipeView-CjfpaHaT.js +609 -0
- package/dist/StockView-HMtD9qar.js +1818 -0
- package/dist/{SupplierView-DAx7E7sR.js → SupplierView-Cidfe-Xm.js} +2325 -787
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CdU3HPBC.js +1275 -0
- package/dist/TransferTemplateView-Doxr1fXP.js +1264 -0
- package/dist/{UnitView-CQPGZ8-r.js → UnitView-C1af71aM.js} +228 -227
- package/dist/{WarehouseView-jy-RNCgy.js → WarehouseView-CviOLXfX.js} +100 -106
- package/dist/api/adjustment-template.d.ts +25 -0
- package/dist/api/bill.d.ts +240 -84
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/inventory.d.ts +15 -6
- package/dist/api/netsuite.d.ts +3 -3
- package/dist/app-BE8SgDqI.js +84466 -0
- package/dist/app.d.ts +64 -0
- package/dist/app.js +2 -2
- package/dist/components/FmCustomAttribute.vue.d.ts +23 -0
- package/dist/components/FmLockableField.vue.d.ts +37 -0
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +3 -1
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +3 -1
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-BAc9M88Q.js → decimal-xj3kVOP6.js} +1 -1
- package/dist/feature-CWpNYcWJ.js +946 -0
- package/dist/format-unit-display-CZ835oaL.js +1215 -0
- package/dist/index-B8IWDKYv.js +29202 -0
- package/dist/{StockView-D9no-mrA.js → index-C6SzYqK7.js} +2242 -3986
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-C2xyYnS7.js +125 -0
- package/dist/stores/feature.d.ts +6 -0
- package/dist/stores/integration/netsuite.d.ts +70 -2
- package/dist/stores/inventory.d.ts +21 -12
- package/dist/stores/supplier.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DJC0UZWv.js → supplier-B-7o9hg1.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-PEQbFRvO.js → use-inventory-binding-dialog-Dm8Ky1MH.js} +10 -11
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
- package/dist/views/adjustment-template/import/export.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateReason.vue.d.ts +18 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1329 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +36 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1303 -0
- package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +625 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +3645 -0
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +2 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +48 -204
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +49 -205
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +6 -3
- package/dist/views/ingredients/components/convert/ConvertFormProps.d.ts +1 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +1 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +2 -1
- package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +12 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +13 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +12 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +40 -17
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +57 -24
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +57 -24
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +120 -42
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +6 -4
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +2 -1
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +24 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +24 -12
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +2 -1
- package/package.json +5 -4
- package/dist/FmDroppableField-8RzKjEdL.js +0 -154
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js +0 -436
- package/dist/FmMultiselectDialog-D7YtdoyJ.js +0 -415
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-zjvFEF5C.js +0 -51
- package/dist/IngredientsView-DMRN-odY.js +0 -1613
- package/dist/ReceiveRequestView-aQZJO8sq.js +0 -4165
- package/dist/RecipeView-DXO43tFi.js +0 -597
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DCA0RUfu.js +0 -1209
- package/dist/TransferTemplateView-CfxdQF1t.js +0 -1261
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-KnSMkJBV.js +0 -33496
- package/dist/date2-CIeUqUIc.js +0 -117
- package/dist/dayjs.min-Df5jSnDJ.js +0 -282
- package/dist/defineDeepModel-BfuQAIoM.js +0 -13
- package/dist/feature-dwB4OxRQ.js +0 -86
- package/dist/format-time-from-id-BbvzyIN6.js +0 -15
- package/dist/format-unit-display-BBWblJEt.js +0 -1216
- package/dist/fuzzy-B9ryZ9VZ.js +0 -41
- package/dist/index-BN0CY3sZ.js +0 -22277
- package/dist/index-Bj1fJum-.js +0 -45
- package/dist/index-C4yL_7rR.js +0 -10545
- package/dist/netsuite-ByWOS6tI.js +0 -194
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
- package/dist/row-action.enum-PMKMRrZR.js +0 -50
- package/dist/rules-C12nWDD1.js +0 -198
- package/dist/use-template-enabled-locations-2-k9g5t8tt.js +0 -86
- package/dist/xlsx-B4XHad7S.js +0 -24004
- package/dist/xlsx.util-BSO4SHJi.js +0 -78
|
@@ -1,25 +1,12 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import {
|
|
3
|
-
import { useCoreStore as
|
|
4
|
-
import { useDialogChild as
|
|
5
|
-
import { defineStore as
|
|
6
|
-
|
|
7
|
-
import { j as nt, u as re, c as Ue, a as ie, i as ot } from "./app-KnSMkJBV.js";
|
|
8
|
-
import { a as oe, b as Ve, d as Ne, s as Be, r as st } from "./xlsx.util-BSO4SHJi.js";
|
|
9
|
-
import { F as lt } from "./FmDroppableField-8RzKjEdL.js";
|
|
10
|
-
import { f as at, d as ne } from "./date2-CIeUqUIc.js";
|
|
11
|
-
import { c as rt, F as O, _ as Le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
12
|
-
import { f as it } from "./format-time-from-id-BbvzyIN6.js";
|
|
13
|
-
import { u as ct } from "./netsuite-ByWOS6tI.js";
|
|
14
|
-
import { R as mt, A as ut } from "./rules-C12nWDD1.js";
|
|
15
|
-
import { F as dt } from "./FmMultiselectDialog-D7YtdoyJ.js";
|
|
16
|
-
import { d as pt } from "./defineDeepModel-BfuQAIoM.js";
|
|
17
|
-
import { u as ft } from "./use-template-enabled-locations-2-k9g5t8tt.js";
|
|
18
|
-
import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
-
const ee = nt((r, s) => {
|
|
1
|
+
import { ref as D, h as F, defineComponent as O, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Fe, toDisplayString as C, unref as v, createCommentVNode as K, createVNode as T, withCtx as P, Fragment as H, renderList as J, computed as E, watch as Re, createSlots as Pe, createBlock as V, isRef as je, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as Je, mergeProps as We } from "vue";
|
|
2
|
+
import { X as qe, u as le, a9 as Xe, D as Se, h as N, f as Qe, e as Ae, aa as oe, q as Ze, ab as Ee, r as Ue, a as ae, b as et, s as tt, v as Ve, w as nt, x as ot, d as z, G as j, H as st, ac as lt, l as at, E as Ne, A as rt, J as it, _ as ct, ad as ne, y as mt, z as ut, B as dt } from "./app-BE8SgDqI.js";
|
|
3
|
+
import { useCoreStore as re, useI18n as B } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialogChild as pt, useSnackbar as Z, useDialog as ie, FmButtonVariant as De, components as L, useProxiedModel as ft, useBreakpoints as vt } from "@feedmepos/ui-library";
|
|
5
|
+
import { defineStore as Be, storeToRefs as Le } from "pinia";
|
|
6
|
+
const ee = qe((r, s) => {
|
|
20
7
|
function o() {
|
|
21
8
|
var t;
|
|
22
|
-
return `business_${((t =
|
|
9
|
+
return `business_${((t = re().currentBusiness.value) == null ? void 0 : t._id) ?? ""}`;
|
|
23
10
|
}
|
|
24
11
|
return {
|
|
25
12
|
async getRecentPublishingJob() {
|
|
@@ -55,32 +42,32 @@ const ee = nt((r, s) => {
|
|
|
55
42
|
return s.post(t, l);
|
|
56
43
|
}
|
|
57
44
|
};
|
|
58
|
-
}), te =
|
|
59
|
-
"
|
|
45
|
+
}), te = Be(
|
|
46
|
+
"closingTemplateTable",
|
|
60
47
|
function() {
|
|
61
|
-
const { t: s } = B(), o = se(), l =
|
|
62
|
-
async function
|
|
63
|
-
if (e.value = [], !!
|
|
48
|
+
const { t: s } = B(), o = se(), l = D({}), e = D(new Array()), t = D(!1), g = le(), f = ee();
|
|
49
|
+
async function p() {
|
|
50
|
+
if (e.value = [], !!g._currentLocation) {
|
|
64
51
|
t.value = !0;
|
|
65
52
|
try {
|
|
66
|
-
const [
|
|
67
|
-
|
|
68
|
-
|
|
53
|
+
const [y, h] = await Promise.all([
|
|
54
|
+
f.readTemplates(),
|
|
55
|
+
f.getRecentPublishingJob()
|
|
69
56
|
]).delayed(1e3);
|
|
70
|
-
e.value =
|
|
71
|
-
} catch (
|
|
72
|
-
console.log("Something went wrong when fetching templates:",
|
|
57
|
+
e.value = y, l.value = h;
|
|
58
|
+
} catch (y) {
|
|
59
|
+
console.log("Something went wrong when fetching templates:", y);
|
|
73
60
|
} finally {
|
|
74
61
|
t.value = !1;
|
|
75
62
|
}
|
|
76
63
|
}
|
|
77
64
|
}
|
|
78
|
-
async function i(
|
|
79
|
-
if (!e.value.find((h) => h._id) &&
|
|
65
|
+
async function i(y) {
|
|
66
|
+
if (!e.value.find((h) => h._id) && g._currentLocation) {
|
|
80
67
|
t.value = !0;
|
|
81
68
|
try {
|
|
82
69
|
const [h] = await Promise.all([
|
|
83
|
-
|
|
70
|
+
f.getTemplate(y),
|
|
84
71
|
new Promise((u) => setTimeout(u, 1e3))
|
|
85
72
|
]);
|
|
86
73
|
e.value = [h];
|
|
@@ -91,14 +78,14 @@ const ee = nt((r, s) => {
|
|
|
91
78
|
}
|
|
92
79
|
}
|
|
93
80
|
}
|
|
94
|
-
function d(
|
|
95
|
-
switch (h =
|
|
81
|
+
function d(y, h) {
|
|
82
|
+
switch (h = Ae(h), y) {
|
|
96
83
|
case N.Details:
|
|
97
84
|
return o.viewTemplate(h);
|
|
98
85
|
case N.Edit:
|
|
99
86
|
return o.updateTemplate(h);
|
|
100
87
|
case N.Delete:
|
|
101
|
-
return o.deleteTemplate(h, t,
|
|
88
|
+
return o.deleteTemplate(h, t, p);
|
|
102
89
|
}
|
|
103
90
|
}
|
|
104
91
|
return {
|
|
@@ -107,8 +94,8 @@ const ee = nt((r, s) => {
|
|
|
107
94
|
id: "_id",
|
|
108
95
|
accessorKey: "_id",
|
|
109
96
|
header: () => s("inventory.closing.table.createdAt"),
|
|
110
|
-
cell(
|
|
111
|
-
return
|
|
97
|
+
cell(y) {
|
|
98
|
+
return Xe(`${y.getValue()}`);
|
|
112
99
|
},
|
|
113
100
|
enableSorting: !0
|
|
114
101
|
},
|
|
@@ -133,9 +120,9 @@ const ee = nt((r, s) => {
|
|
|
133
120
|
id: "enabledLocations",
|
|
134
121
|
accessorKey: "locations.length",
|
|
135
122
|
header: () => s("inventory.closing.table.enabledOutlets"),
|
|
136
|
-
cell(
|
|
123
|
+
cell(y) {
|
|
137
124
|
var u;
|
|
138
|
-
const h = (u =
|
|
125
|
+
const h = (u = y.row.original.locations) == null ? void 0 : u.length;
|
|
139
126
|
return h ? `${h}` : "All";
|
|
140
127
|
},
|
|
141
128
|
enableSorting: !1,
|
|
@@ -155,9 +142,9 @@ const ee = nt((r, s) => {
|
|
|
155
142
|
id: "status",
|
|
156
143
|
header: () => s("inventory.closing.table.status"),
|
|
157
144
|
enableSorting: !1,
|
|
158
|
-
cell(
|
|
145
|
+
cell(y) {
|
|
159
146
|
var x;
|
|
160
|
-
const h =
|
|
147
|
+
const h = y.row.original, u = h._rev, n = (x = l.value.publishedRevs) == null ? void 0 : x[h._id], a = u === n;
|
|
161
148
|
return F(
|
|
162
149
|
"div",
|
|
163
150
|
{
|
|
@@ -178,12 +165,12 @@ const ee = nt((r, s) => {
|
|
|
178
165
|
},
|
|
179
166
|
{
|
|
180
167
|
id: "action",
|
|
181
|
-
cell(
|
|
182
|
-
const h =
|
|
183
|
-
|
|
184
|
-
|
|
168
|
+
cell(y) {
|
|
169
|
+
const h = y.row.original, u = [
|
|
170
|
+
Se[N.Edit],
|
|
171
|
+
Se[N.Delete]
|
|
185
172
|
];
|
|
186
|
-
return
|
|
173
|
+
return Qe(u, (n) => d(n, h));
|
|
187
174
|
},
|
|
188
175
|
enableSorting: !1,
|
|
189
176
|
size: 40,
|
|
@@ -196,7 +183,7 @@ const ee = nt((r, s) => {
|
|
|
196
183
|
recentPublish: l,
|
|
197
184
|
templates: e,
|
|
198
185
|
loading: t,
|
|
199
|
-
fetchTemplates:
|
|
186
|
+
fetchTemplates: p,
|
|
200
187
|
loadTemplate: i
|
|
201
188
|
};
|
|
202
189
|
}
|
|
@@ -238,40 +225,40 @@ function He() {
|
|
|
238
225
|
];
|
|
239
226
|
}
|
|
240
227
|
function gt(r) {
|
|
241
|
-
var
|
|
242
|
-
const o =
|
|
228
|
+
var f;
|
|
229
|
+
const o = re().currentBusiness.value, e = (f = r.map((p) => {
|
|
243
230
|
var u;
|
|
244
|
-
const i =
|
|
245
|
-
["Template ID",
|
|
246
|
-
["Template name",
|
|
231
|
+
const i = p.items.flatMap(ze), d = He(), m = [
|
|
232
|
+
["Template ID", p._id],
|
|
233
|
+
["Template name", p.name],
|
|
247
234
|
["Business name", o == null ? void 0 : o.name],
|
|
248
235
|
["Business ID", o == null ? void 0 : o._id],
|
|
249
236
|
["Menu version", o == null ? void 0 : o.menuVersion],
|
|
250
237
|
[
|
|
251
238
|
"Locations",
|
|
252
|
-
...(u =
|
|
239
|
+
...(u = p.locations) != null && u.length ? [p.locations.map((n) => `${n.name} (${n.dbName})`)] : ["All"]
|
|
253
240
|
],
|
|
254
|
-
["Reference",
|
|
241
|
+
["Reference", p.ref ?? ""],
|
|
255
242
|
[],
|
|
256
243
|
d.map((n) => n.name),
|
|
257
244
|
...i.map((n) => d.map((a) => n[a.id]))
|
|
258
|
-
],
|
|
259
|
-
return { name:
|
|
245
|
+
], y = d.map((n) => `system:${n.id}`), h = oe(m, y);
|
|
246
|
+
return { name: p.name, sheet: h };
|
|
260
247
|
}).reduce(
|
|
261
|
-
(
|
|
248
|
+
(p, i) => {
|
|
262
249
|
var m;
|
|
263
250
|
const d = i.name.slice(0, 12);
|
|
264
|
-
return (m =
|
|
251
|
+
return (m = p.sheetOccurence)[d] ?? (m[d] = 0), p.sheetOccurence[d] += 1, p.sheets[`${d} (${p.sheetOccurence[d]})`] = i.sheet, p;
|
|
265
252
|
},
|
|
266
253
|
{
|
|
267
254
|
sheets: {},
|
|
268
255
|
sheetOccurence: {}
|
|
269
256
|
}
|
|
270
|
-
)) == null ? void 0 :
|
|
271
|
-
return
|
|
257
|
+
)) == null ? void 0 : f.sheets, t = `${o == null ? void 0 : o.name} closing templates (${Ze(/* @__PURE__ */ new Date())}).xlsx`, g = Ee(e);
|
|
258
|
+
return Ue(g, t), t;
|
|
272
259
|
}
|
|
273
260
|
function yt() {
|
|
274
|
-
const r =
|
|
261
|
+
const r = re(), s = ae(), o = et(), l = ze({
|
|
275
262
|
sku: {
|
|
276
263
|
unit: {
|
|
277
264
|
_id: "",
|
|
@@ -284,7 +271,7 @@ function yt() {
|
|
|
284
271
|
_id: "",
|
|
285
272
|
name: "Sugar"
|
|
286
273
|
}
|
|
287
|
-
})[0], e = r.currentBusiness.value, t = He(),
|
|
274
|
+
})[0], e = r.currentBusiness.value, t = He(), g = [
|
|
288
275
|
["Template ID (leave empty to create new)", ""],
|
|
289
276
|
["Template Name", "New template"],
|
|
290
277
|
["Business name", e == null ? void 0 : e.name],
|
|
@@ -299,7 +286,7 @@ function yt() {
|
|
|
299
286
|
[],
|
|
300
287
|
t.map((u) => u.name),
|
|
301
288
|
t.map((u) => l[u.id])
|
|
302
|
-
],
|
|
289
|
+
], f = t.map((u) => `system:${u.id}`), p = oe(g, f), i = o.isEnabled ? o.state.setting.childItems ?? [] : [], d = i.reduce(
|
|
303
290
|
(u, n) => {
|
|
304
291
|
var b, w;
|
|
305
292
|
const a = (b = o.netSuiteItemIdToSkuId.get(n.parentNetSuiteId)) == null ? void 0 : b[0], x = (w = o.netSuiteMeasurementIdToMeasurementId.get(
|
|
@@ -345,29 +332,29 @@ function yt() {
|
|
|
345
332
|
"Enabled (true/false)",
|
|
346
333
|
...i.length ? ["Netsuite Parent"] : []
|
|
347
334
|
]
|
|
348
|
-
),
|
|
349
|
-
Template:
|
|
335
|
+
), y = Ee({
|
|
336
|
+
Template: p,
|
|
350
337
|
Ingredients: m
|
|
351
338
|
}), h = `${e == null ? void 0 : e.name} transfer templates import.xlsx`;
|
|
352
|
-
return
|
|
339
|
+
return Ue(y, h), h;
|
|
353
340
|
}
|
|
354
341
|
function ht(r) {
|
|
355
342
|
if (!r.length || `${r[0]}`.toLocaleLowerCase() === "all")
|
|
356
343
|
return [];
|
|
357
|
-
const s = /(.*) \(((warehouse_|restaurant_).{24,})\)/, l =
|
|
344
|
+
const s = /(.*) \(((warehouse_|restaurant_).{24,})\)/, l = le().locationByDbName;
|
|
358
345
|
return r.map((e) => {
|
|
359
|
-
const t = new Array(),
|
|
360
|
-
if (!
|
|
361
|
-
return t.push(`Enabled location value of ${
|
|
346
|
+
const t = new Array(), g = e.trim(), f = s.exec(g);
|
|
347
|
+
if (!f)
|
|
348
|
+
return t.push(`Enabled location value of ${g} cannot be read.`), {
|
|
362
349
|
errors: t
|
|
363
350
|
};
|
|
364
|
-
const
|
|
365
|
-
return d ? (
|
|
366
|
-
`Location id ${i} has non-matching name. Found ${
|
|
351
|
+
const p = f[1], i = f[2], d = l[i];
|
|
352
|
+
return d ? (p !== d.name && t.push(
|
|
353
|
+
`Location id ${i} has non-matching name. Found ${p} but expected ${d.name}`
|
|
367
354
|
), {
|
|
368
355
|
errors: t,
|
|
369
356
|
location: d
|
|
370
|
-
}) : (t.push(`Location (${
|
|
357
|
+
}) : (t.push(`Location (${p}) of id ${i} is not found.`), {
|
|
371
358
|
errors: t
|
|
372
359
|
});
|
|
373
360
|
});
|
|
@@ -379,15 +366,15 @@ function bt(r) {
|
|
|
379
366
|
l,
|
|
380
367
|
e,
|
|
381
368
|
t,
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
] =
|
|
369
|
+
g,
|
|
370
|
+
f,
|
|
371
|
+
p
|
|
372
|
+
] = Ve(r);
|
|
386
373
|
return {
|
|
387
374
|
id: `${o[1] ?? ""}`.trim(),
|
|
388
375
|
name: `${l[1] ?? ""}`.trim(),
|
|
389
|
-
locations:
|
|
390
|
-
reference: `${
|
|
376
|
+
locations: f.slice(1).map((i) => `${i}`.trim()).filter((i) => i),
|
|
377
|
+
reference: `${p[1] ?? ""}`.trim()
|
|
391
378
|
};
|
|
392
379
|
}
|
|
393
380
|
function _t(r) {
|
|
@@ -397,24 +384,24 @@ function _t(r) {
|
|
|
397
384
|
l,
|
|
398
385
|
e,
|
|
399
386
|
t,
|
|
400
|
-
|
|
401
|
-
p,
|
|
387
|
+
g,
|
|
402
388
|
f,
|
|
389
|
+
p,
|
|
403
390
|
i,
|
|
404
391
|
d,
|
|
405
392
|
...m
|
|
406
|
-
] =
|
|
393
|
+
] = Ve(r);
|
|
407
394
|
if (!s || !s.length || s.some((a) => a.length && !a.startsWith("system:")))
|
|
408
395
|
throw new Error("Missing meta header. Excel file does not come from the template.");
|
|
409
|
-
const
|
|
396
|
+
const y = s.map((a) => a.split(":")[1]), u = ["code", "name", "unit", "enabled"].filter((a) => !y.includes(a));
|
|
410
397
|
if (u.length)
|
|
411
398
|
throw new Error(
|
|
412
399
|
`Missing meta headers (${u.join()}). Excel file does not come from the template.`
|
|
413
400
|
);
|
|
414
401
|
return m.map((a, x) => {
|
|
415
402
|
const c = {};
|
|
416
|
-
for (const $ in
|
|
417
|
-
const b =
|
|
403
|
+
for (const $ in y) {
|
|
404
|
+
const b = y[$];
|
|
418
405
|
Object.assign(c, { [b]: a[$] });
|
|
419
406
|
}
|
|
420
407
|
return {
|
|
@@ -434,45 +421,44 @@ function xt(r) {
|
|
|
434
421
|
);
|
|
435
422
|
}
|
|
436
423
|
function wt(r) {
|
|
437
|
-
const s = r.parent.data, o = new Array(), e =
|
|
424
|
+
const s = r.parent.data, o = new Array(), e = ae().skuByCode[s.code ?? ""];
|
|
438
425
|
if (!e)
|
|
439
426
|
return o.push(`Cannot find ingredient of code ${s.code} ${s.name}`), { errors: o };
|
|
440
427
|
const t = {
|
|
441
428
|
sku: e
|
|
442
|
-
},
|
|
443
|
-
s.unit !== e.unit.abbrev && !
|
|
429
|
+
}, g = /* @__PURE__ */ new Set([e.unit._id, ...e.unit.measurements.map((p) => p.id)]), f = e.unit.measurements.find((p) => p.abbrev === s.unit);
|
|
430
|
+
s.unit !== e.unit.abbrev && !f ? o.push(
|
|
444
431
|
`Cannot find measurement unit of ${s.unit} for (${s.code}) ${s.name}.`
|
|
445
|
-
) : (
|
|
446
|
-
for (const
|
|
447
|
-
const i =
|
|
432
|
+
) : (s.enabled === !0 || `${s.enabled}`.toLocaleLowerCase() === "true") && g.delete(e.unit._id);
|
|
433
|
+
for (const p of r.children) {
|
|
434
|
+
const i = p.data, d = i.unit === e.unit.abbrev ? e.unit : void 0, m = e.unit.measurements.find((y) => y.abbrev === i.unit);
|
|
448
435
|
if (!m && !d) {
|
|
449
436
|
o.push(
|
|
450
437
|
`Cannot find measurement unit of ${i.unit} for (${s.code}) ${s.name}.`
|
|
451
438
|
);
|
|
452
439
|
continue;
|
|
453
440
|
}
|
|
454
|
-
(
|
|
441
|
+
(i.enabled === !0 || `${i.enabled}`.toLocaleLowerCase() === "true") && g.delete((m == null ? void 0 : m.id) ?? (d == null ? void 0 : d._id) ?? "");
|
|
455
442
|
}
|
|
456
|
-
|
|
457
|
-
return p.has(e.unit._id) && t.sku.unit.measurements.every((f) => p.has(f.id)) && o.push(`Ingredient ${e.code} - ${e.name} must have at least one unit enabled.`), { errors: o, templateItem: t };
|
|
443
|
+
return g.has(e.unit._id) && t.sku.unit.measurements.every((p) => g.has(p.id)) && o.push(`Ingredient ${e.code} - ${e.name} must have at least one unit enabled.`), t.disabledMeasurements = [...g], { errors: o, templateItem: t };
|
|
458
444
|
}
|
|
459
445
|
function kt(r) {
|
|
460
446
|
const s = r.SheetNames.filter(
|
|
461
447
|
(t) => !Object.values(ce).map(String).includes(t)
|
|
462
|
-
), l = te().templates, e =
|
|
448
|
+
), l = te().templates, e = tt(l, "_id");
|
|
463
449
|
try {
|
|
464
450
|
return s.reduce(
|
|
465
|
-
(t,
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
const
|
|
451
|
+
(t, g) => {
|
|
452
|
+
const f = new Array(), p = r.Sheets[g], i = bt(p), d = ht(i.locations), m = d.filter((c) => c.location).map((c) => c.location);
|
|
453
|
+
f.push(...d.flatMap((c) => c.errors));
|
|
454
|
+
const y = _t(p).filter(
|
|
469
455
|
(c) => c.data.code || c.data.unit
|
|
470
|
-
), h = xt(
|
|
471
|
-
|
|
456
|
+
), h = xt(y);
|
|
457
|
+
f.push(...h.errors);
|
|
472
458
|
const u = h.result.map(
|
|
473
459
|
(c) => wt(c)
|
|
474
460
|
);
|
|
475
|
-
|
|
461
|
+
f.push(...u.flatMap((c) => c.errors));
|
|
476
462
|
const n = u.filter((c) => c.templateItem).map((c) => c.templateItem);
|
|
477
463
|
if (i.id) {
|
|
478
464
|
const c = e[i.id];
|
|
@@ -480,15 +466,15 @@ function kt(r) {
|
|
|
480
466
|
const b = {
|
|
481
467
|
_id: i.id,
|
|
482
468
|
_rev: "",
|
|
483
|
-
name: i.name || `(unnamed from sheet ${
|
|
469
|
+
name: i.name || `(unnamed from sheet ${g || "<unnamed sheet>"})`,
|
|
484
470
|
items: []
|
|
485
471
|
};
|
|
486
|
-
return
|
|
472
|
+
return f.push(`Template ID ${i.id} is not found.`), t.importUpdateResult.push({
|
|
487
473
|
type: "update",
|
|
488
474
|
original: b,
|
|
489
475
|
template: b,
|
|
490
|
-
excelSheetName:
|
|
491
|
-
errors:
|
|
476
|
+
excelSheetName: g,
|
|
477
|
+
errors: f
|
|
492
478
|
}), t;
|
|
493
479
|
}
|
|
494
480
|
const $ = {
|
|
@@ -501,8 +487,8 @@ function kt(r) {
|
|
|
501
487
|
ref: i.reference,
|
|
502
488
|
items: n
|
|
503
489
|
},
|
|
504
|
-
excelSheetName:
|
|
505
|
-
errors:
|
|
490
|
+
excelSheetName: g,
|
|
491
|
+
errors: f
|
|
506
492
|
};
|
|
507
493
|
return t.importUpdateResult.push($), t;
|
|
508
494
|
}
|
|
@@ -514,8 +500,8 @@ function kt(r) {
|
|
|
514
500
|
ref: i.reference,
|
|
515
501
|
items: n
|
|
516
502
|
},
|
|
517
|
-
excelSheetName:
|
|
518
|
-
errors:
|
|
503
|
+
excelSheetName: g,
|
|
504
|
+
errors: f
|
|
519
505
|
};
|
|
520
506
|
return t.importCreateResult.push(x), t;
|
|
521
507
|
},
|
|
@@ -537,7 +523,7 @@ function kt(r) {
|
|
|
537
523
|
const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-col" }, Ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, It = {
|
|
538
524
|
key: 0,
|
|
539
525
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
540
|
-
}, St = { key: 0 },
|
|
526
|
+
}, St = { key: 0 }, Me = /* @__PURE__ */ O({
|
|
541
527
|
__name: "ClosingTemplateImportItem",
|
|
542
528
|
props: {
|
|
543
529
|
type: {},
|
|
@@ -549,7 +535,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
549
535
|
setup(r) {
|
|
550
536
|
const { t: s } = B();
|
|
551
537
|
return (o, l) => {
|
|
552
|
-
var
|
|
538
|
+
var g, f, p;
|
|
553
539
|
const e = R("FmIcon"), t = R("FmTooltip");
|
|
554
540
|
return k(), I("div", Tt, [
|
|
555
541
|
l[0] || (l[0] = _("div", null, "•", -1)),
|
|
@@ -561,7 +547,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
561
547
|
})
|
|
562
548
|
}, [
|
|
563
549
|
Fe(C(o.name) + " ", 1),
|
|
564
|
-
o.type === "create" ? (k(), I("span", It, "(" + C(v(s)("inventory.closing.template.import.new")) + ")", 1)) :
|
|
550
|
+
o.type === "create" ? (k(), I("span", It, "(" + C(v(s)("inventory.closing.template.import.new")) + ")", 1)) : K("", !0)
|
|
565
551
|
], 2),
|
|
566
552
|
o.errors.length ? (k(), I("div", St, [
|
|
567
553
|
T(t, { "z-index": 50 }, {
|
|
@@ -579,7 +565,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
579
565
|
]),
|
|
580
566
|
_: 1
|
|
581
567
|
})
|
|
582
|
-
])) :
|
|
568
|
+
])) : K("", !0)
|
|
583
569
|
]),
|
|
584
570
|
_("div", {
|
|
585
571
|
class: Y([
|
|
@@ -589,12 +575,12 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
589
575
|
"text-fm-color-typo-secondary": !o.errors.length
|
|
590
576
|
}
|
|
591
577
|
])
|
|
592
|
-
}, C((
|
|
578
|
+
}, C((g = o.locations) != null && g.length ? v(s)("inventory.closing.template.import.nLocations", { count: (f = o.locations) == null ? void 0 : f.length }) : v(s)("inventory.closing.template.import.allLocations")) + ", " + C(v(s)("inventory.closing.template.import.nItems", { count: (p = o.items) == null ? void 0 : p.length })), 3)
|
|
593
579
|
])
|
|
594
580
|
]);
|
|
595
581
|
};
|
|
596
582
|
}
|
|
597
|
-
}),
|
|
583
|
+
}), Dt = { class: "flex flex-col gap-24" }, Mt = { class: "fm-typo-en-body-md-400" }, Ft = {
|
|
598
584
|
key: 0,
|
|
599
585
|
class: "flex items-center gap-8"
|
|
600
586
|
}, Rt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pt = { class: "flex flex-col gap-8" }, At = { class: "line-clamp-2 text-ellipsis break-all" }, Et = {
|
|
@@ -606,38 +592,38 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
606
592
|
}, Vt = { class: "text-fm-color-system-error-300 fm-typo-en-body-sm-400" }, Nt = {
|
|
607
593
|
key: 0,
|
|
608
594
|
class: "max-h-[200px] overflow-y-auto flex flex-col gap-8"
|
|
609
|
-
}, Bt = { class: "fm-typo-en-body-lg-600" }, Lt = /* @__PURE__ */
|
|
595
|
+
}, Bt = { class: "fm-typo-en-body-lg-600" }, Lt = /* @__PURE__ */ O({
|
|
610
596
|
__name: "ClosingTemplateImport",
|
|
611
597
|
setup(r) {
|
|
612
|
-
const s =
|
|
613
|
-
() => !!
|
|
598
|
+
const s = D(null), o = pt(), l = Z(), e = D(!1), t = D(!1), g = D(new Array()), f = D([]), p = D([]), i = E(
|
|
599
|
+
() => !!g.value.length || f.value.some((h) => h.errors.length) || p.value.some((h) => h.errors.length)
|
|
614
600
|
), d = E(
|
|
615
|
-
() => !!
|
|
601
|
+
() => !!f.value.length || !!p.value.length
|
|
616
602
|
), { t: m } = B();
|
|
617
|
-
async function
|
|
618
|
-
|
|
603
|
+
async function y(h) {
|
|
604
|
+
g.value = [], f.value = [], p.value = [];
|
|
619
605
|
try {
|
|
620
606
|
e.value = !0;
|
|
621
607
|
const [u] = await Promise.all([
|
|
622
|
-
|
|
608
|
+
ot(h),
|
|
623
609
|
// fake buffer
|
|
624
610
|
new Promise((c) => setTimeout(c, 1e3))
|
|
625
611
|
]);
|
|
626
612
|
if (!u.SheetNames.filter(
|
|
627
613
|
(c) => !Object.values(ce).map(String).includes(c)
|
|
628
614
|
).find((c) => c)) {
|
|
629
|
-
|
|
615
|
+
g.value.push(m("inventory.ingredient.import.fileError.noSheet"));
|
|
630
616
|
return;
|
|
631
617
|
}
|
|
632
618
|
const x = kt(u);
|
|
633
619
|
if (x.invalidExcel) {
|
|
634
|
-
|
|
620
|
+
g.value.push(
|
|
635
621
|
x.invalidExcelMessage ?? m("inventory.ingredient.import.fileError.invalidExcel")
|
|
636
622
|
);
|
|
637
623
|
return;
|
|
638
624
|
}
|
|
639
|
-
if (
|
|
640
|
-
|
|
625
|
+
if (f.value = x.importCreateResult, p.value = x.importUpdateResult, !f.value.length && !p.value.length) {
|
|
626
|
+
g.value.push(m("inventory.ingredient.import.fileError.noData"));
|
|
641
627
|
return;
|
|
642
628
|
}
|
|
643
629
|
o.emitData(x);
|
|
@@ -648,18 +634,18 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
648
634
|
type: "error"
|
|
649
635
|
}), console.error("Error in reading file", u);
|
|
650
636
|
} finally {
|
|
651
|
-
|
|
637
|
+
g.value.length && l.open({
|
|
652
638
|
title: m("inventory.ingredient.import.fileError.invalidExcel"),
|
|
653
639
|
type: "error"
|
|
654
640
|
}), e.value = !1;
|
|
655
641
|
}
|
|
656
642
|
}
|
|
657
643
|
return Re(s, (h) => {
|
|
658
|
-
h &&
|
|
644
|
+
h && y(h);
|
|
659
645
|
}), (h, u) => {
|
|
660
646
|
const n = R("FmCircularProgress"), a = R("FmIcon"), x = R("FmButton");
|
|
661
|
-
return k(), I("div",
|
|
662
|
-
_("div",
|
|
647
|
+
return k(), I("div", Dt, [
|
|
648
|
+
_("div", Mt, C(v(m)("inventory.closing.template.import.message")), 1),
|
|
663
649
|
t.value ? (k(), I("div", Ft, [
|
|
664
650
|
_("div", null, [
|
|
665
651
|
T(n, {
|
|
@@ -669,7 +655,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
669
655
|
]),
|
|
670
656
|
_("div", Rt, C(v(m)("inventory.formField.loading")), 1)
|
|
671
657
|
])) : (k(), I(H, { key: 1 }, [
|
|
672
|
-
T(
|
|
658
|
+
T(nt, {
|
|
673
659
|
class: Y({
|
|
674
660
|
"w-full": !0,
|
|
675
661
|
"h-[200px]": !s.value
|
|
@@ -714,7 +700,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
714
700
|
}, [
|
|
715
701
|
_("div", At, C(s.value.name), 1)
|
|
716
702
|
], 2),
|
|
717
|
-
e.value ?
|
|
703
|
+
e.value ? K("", !0) : (k(), I("div", Et, [
|
|
718
704
|
T(x, {
|
|
719
705
|
label: v(m)("inventory.ingredient.import.replaceFile"),
|
|
720
706
|
variant: i.value ? "destructive" : "secondary",
|
|
@@ -723,8 +709,8 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
723
709
|
}, null, 8, ["label", "variant", "prepend-icon", "onClick"])
|
|
724
710
|
]))
|
|
725
711
|
], 2),
|
|
726
|
-
|
|
727
|
-
(k(!0), I(H, null, J(
|
|
712
|
+
g.value.length ? (k(), I("div", Ut, [
|
|
713
|
+
(k(!0), I(H, null, J(g.value, ($, b) => (k(), I("div", {
|
|
728
714
|
key: b,
|
|
729
715
|
class: "flex gap-8 items-center"
|
|
730
716
|
}, [
|
|
@@ -735,7 +721,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
735
721
|
}),
|
|
736
722
|
_("div", Vt, C($), 1)
|
|
737
723
|
]))), 128))
|
|
738
|
-
])) :
|
|
724
|
+
])) : K("", !0)
|
|
739
725
|
])
|
|
740
726
|
]),
|
|
741
727
|
key: "0"
|
|
@@ -743,7 +729,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
743
729
|
]), 1032, ["class", "label", "button-label"]),
|
|
744
730
|
d.value ? (k(), I("div", Nt, [
|
|
745
731
|
_("div", Bt, C(v(m)("inventory.ingredient.import.summary")), 1),
|
|
746
|
-
(k(!0), I(H, null, J(
|
|
732
|
+
(k(!0), I(H, null, J(f.value, (c, $) => (k(), V(Me, {
|
|
747
733
|
key: $,
|
|
748
734
|
name: c.template.name,
|
|
749
735
|
locations: c.template.locations,
|
|
@@ -751,7 +737,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
751
737
|
errors: c.errors,
|
|
752
738
|
type: "create"
|
|
753
739
|
}, null, 8, ["name", "locations", "items", "errors"]))), 128)),
|
|
754
|
-
(k(!0), I(H, null, J(
|
|
740
|
+
(k(!0), I(H, null, J(p.value, (c) => (k(), V(Me, {
|
|
755
741
|
key: c.template._id,
|
|
756
742
|
name: c.template.name,
|
|
757
743
|
locations: c.template.locations,
|
|
@@ -759,29 +745,29 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
759
745
|
errors: c.errors,
|
|
760
746
|
type: "update"
|
|
761
747
|
}, null, 8, ["name", "locations", "items", "errors"]))), 128))
|
|
762
|
-
])) :
|
|
748
|
+
])) : K("", !0)
|
|
763
749
|
], 64))
|
|
764
750
|
]);
|
|
765
751
|
};
|
|
766
752
|
}
|
|
767
|
-
}), se =
|
|
768
|
-
const { t: r } = B(), s =
|
|
769
|
-
function
|
|
770
|
-
|
|
753
|
+
}), se = Be("closingTemplateActions", () => {
|
|
754
|
+
const { t: r } = B(), s = ie(), o = Z(), l = ee(), e = te(), { loading: t } = Le(e), g = D({});
|
|
755
|
+
function f() {
|
|
756
|
+
g.value = {
|
|
771
757
|
mode: z.CREATE,
|
|
772
758
|
show: !0,
|
|
773
759
|
"onUpdate:show"(n) {
|
|
774
|
-
|
|
760
|
+
g.value.show = n;
|
|
775
761
|
}
|
|
776
762
|
};
|
|
777
763
|
}
|
|
778
|
-
function
|
|
779
|
-
|
|
764
|
+
function p(n) {
|
|
765
|
+
g.value = {
|
|
780
766
|
mode: z.UPDATE,
|
|
781
767
|
modelValue: n,
|
|
782
768
|
show: !0,
|
|
783
769
|
"onUpdate:show"(a) {
|
|
784
|
-
|
|
770
|
+
g.value.show = a;
|
|
785
771
|
}
|
|
786
772
|
};
|
|
787
773
|
}
|
|
@@ -791,12 +777,12 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
791
777
|
message: "Deleted template can no longer be retrieved",
|
|
792
778
|
primaryActions: {
|
|
793
779
|
text: "Delete",
|
|
794
|
-
variant:
|
|
780
|
+
variant: De.Destructive,
|
|
795
781
|
close: !0
|
|
796
782
|
},
|
|
797
783
|
secondaryActions: {
|
|
798
784
|
text: "Cancel",
|
|
799
|
-
variant:
|
|
785
|
+
variant: De.Plain,
|
|
800
786
|
close: !0
|
|
801
787
|
}
|
|
802
788
|
}).onPrimary(async () => {
|
|
@@ -826,7 +812,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
826
812
|
}
|
|
827
813
|
});
|
|
828
814
|
}
|
|
829
|
-
const d =
|
|
815
|
+
const d = D({});
|
|
830
816
|
function m(n) {
|
|
831
817
|
d.value = {
|
|
832
818
|
template: n,
|
|
@@ -835,11 +821,11 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
835
821
|
d.value.show = a;
|
|
836
822
|
},
|
|
837
823
|
"onAction:edit"() {
|
|
838
|
-
d.value.show = !1,
|
|
824
|
+
d.value.show = !1, p(Ae(n));
|
|
839
825
|
}
|
|
840
826
|
};
|
|
841
827
|
}
|
|
842
|
-
function
|
|
828
|
+
function y() {
|
|
843
829
|
if (!e.templates.length) {
|
|
844
830
|
o.open({
|
|
845
831
|
title: "No data to export",
|
|
@@ -937,17 +923,17 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
937
923
|
}
|
|
938
924
|
}
|
|
939
925
|
return {
|
|
940
|
-
createTemplate:
|
|
926
|
+
createTemplate: f,
|
|
941
927
|
viewTemplate: m,
|
|
942
|
-
updateTemplate:
|
|
928
|
+
updateTemplate: p,
|
|
943
929
|
deleteTemplate: i,
|
|
944
|
-
exportTemplates:
|
|
930
|
+
exportTemplates: y,
|
|
945
931
|
importTemplates: h,
|
|
946
|
-
templateDialogProps:
|
|
932
|
+
templateDialogProps: g,
|
|
947
933
|
templateDetailsProps: d
|
|
948
934
|
};
|
|
949
935
|
});
|
|
950
|
-
var
|
|
936
|
+
var G = /* @__PURE__ */ ((r) => (r.Name = "Name", r.Unit = "Unit", r.Delete = "Delete", r))(G || {});
|
|
951
937
|
function zt(r) {
|
|
952
938
|
return {
|
|
953
939
|
columnDefs: E(() => {
|
|
@@ -990,14 +976,14 @@ function zt(r) {
|
|
|
990
976
|
minSize: 200,
|
|
991
977
|
maxSize: 400,
|
|
992
978
|
cell(e) {
|
|
993
|
-
var
|
|
979
|
+
var g, f, p;
|
|
994
980
|
const t = e.row.original;
|
|
995
981
|
return F("div", { class: "flex items-center gap-32" }, [
|
|
996
982
|
F(
|
|
997
983
|
L.FmFormGroup,
|
|
998
984
|
{
|
|
999
985
|
value: t.sku.unit._id,
|
|
1000
|
-
modelValue: !((
|
|
986
|
+
modelValue: !((g = t.disabledMeasurements) != null && g.includes(t.sku.unit._id))
|
|
1001
987
|
},
|
|
1002
988
|
F(
|
|
1003
989
|
"div",
|
|
@@ -1008,8 +994,8 @@ function zt(r) {
|
|
|
1008
994
|
[
|
|
1009
995
|
F(L.FmCheckbox, {
|
|
1010
996
|
value: t.sku.unit._id,
|
|
1011
|
-
modelValue: !((
|
|
1012
|
-
disabled: r.disabled || !((
|
|
997
|
+
modelValue: !((f = t.disabledMeasurements) != null && f.includes(t.sku.unit._id)),
|
|
998
|
+
disabled: r.disabled || !((p = t.disabledMeasurements) != null && p.includes(t.sku.unit._id)) && t.sku.unit.measurements.every(
|
|
1013
999
|
(i) => {
|
|
1014
1000
|
var d;
|
|
1015
1001
|
return (d = t.disabledMeasurements) == null ? void 0 : d.includes(i.id);
|
|
@@ -1054,12 +1040,12 @@ function zt(r) {
|
|
|
1054
1040
|
),
|
|
1055
1041
|
...Array.from({ length: Math.max(o, 0) }).map((i, d) => {
|
|
1056
1042
|
var h, u, n, a;
|
|
1057
|
-
const m = e.row.original,
|
|
1058
|
-
return
|
|
1043
|
+
const m = e.row.original, y = m.sku.unit.measurements[d];
|
|
1044
|
+
return y ? F(
|
|
1059
1045
|
L.FmFormGroup,
|
|
1060
1046
|
{
|
|
1061
|
-
modelValue: !((h = m.disabledMeasurements) != null && h.includes(
|
|
1062
|
-
value:
|
|
1047
|
+
modelValue: !((h = m.disabledMeasurements) != null && h.includes(y.id)),
|
|
1048
|
+
value: y.id
|
|
1063
1049
|
},
|
|
1064
1050
|
F(
|
|
1065
1051
|
"div",
|
|
@@ -1069,9 +1055,9 @@ function zt(r) {
|
|
|
1069
1055
|
},
|
|
1070
1056
|
[
|
|
1071
1057
|
F(L.FmCheckbox, {
|
|
1072
|
-
value:
|
|
1073
|
-
modelValue: !((u = m.disabledMeasurements) != null && u.includes(
|
|
1074
|
-
disabled: r.disabled || !((n = m.disabledMeasurements) != null && n.includes(
|
|
1058
|
+
value: y.id,
|
|
1059
|
+
modelValue: !((u = m.disabledMeasurements) != null && u.includes(y.id)),
|
|
1060
|
+
disabled: r.disabled || !((n = m.disabledMeasurements) != null && n.includes(y.id)) && ((a = m.disabledMeasurements) == null ? void 0 : a.includes(m.sku.unit._id)) && m.sku.unit.measurements.filter((x) => x.id != y.id).every((x) => {
|
|
1075
1061
|
var c;
|
|
1076
1062
|
return (c = m.disabledMeasurements) == null ? void 0 : c.includes(x.id);
|
|
1077
1063
|
}),
|
|
@@ -1081,14 +1067,14 @@ function zt(r) {
|
|
|
1081
1067
|
r.updateItem({
|
|
1082
1068
|
...m,
|
|
1083
1069
|
disabledMeasurements: (c = m.disabledMeasurements) == null ? void 0 : c.filter(
|
|
1084
|
-
($) => $ !==
|
|
1070
|
+
($) => $ !== y.id
|
|
1085
1071
|
)
|
|
1086
1072
|
});
|
|
1087
1073
|
else {
|
|
1088
1074
|
const $ = m.disabledMeasurements ?? [];
|
|
1089
1075
|
r.updateItem({
|
|
1090
1076
|
...m,
|
|
1091
|
-
disabledMeasurements: [...$,
|
|
1077
|
+
disabledMeasurements: [...$, y.id]
|
|
1092
1078
|
});
|
|
1093
1079
|
}
|
|
1094
1080
|
}
|
|
@@ -1098,13 +1084,13 @@ function zt(r) {
|
|
|
1098
1084
|
{ zIndex: 51 },
|
|
1099
1085
|
{
|
|
1100
1086
|
content() {
|
|
1101
|
-
return
|
|
1087
|
+
return y.abbrev;
|
|
1102
1088
|
},
|
|
1103
1089
|
default() {
|
|
1104
1090
|
return F(
|
|
1105
1091
|
"div",
|
|
1106
1092
|
{ class: "line-clamp-2 fm-typo-en-body-lg-400" },
|
|
1107
|
-
|
|
1093
|
+
y.abbrev
|
|
1108
1094
|
);
|
|
1109
1095
|
}
|
|
1110
1096
|
}
|
|
@@ -1149,7 +1135,7 @@ function zt(r) {
|
|
|
1149
1135
|
})
|
|
1150
1136
|
};
|
|
1151
1137
|
}
|
|
1152
|
-
const Ht = { class: "flex flex-col gap-16 py-12" },
|
|
1138
|
+
const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt = { class: "flex-1 flex flex-col" }, Yt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Gt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Kt = { class: "flex flex-col gap-4" }, Jt = /* @__PURE__ */ O({
|
|
1153
1139
|
__name: "ClosingTemplateItem",
|
|
1154
1140
|
props: {
|
|
1155
1141
|
cellByColId: {},
|
|
@@ -1157,32 +1143,32 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1157
1143
|
},
|
|
1158
1144
|
setup(r) {
|
|
1159
1145
|
const s = r, o = E(() => s.row), l = E(
|
|
1160
|
-
() => o.value.getVisibleCells().filter((e) => e.column.id !==
|
|
1146
|
+
() => o.value.getVisibleCells().filter((e) => e.column.id !== G.Name && e.column.id !== G.Delete)
|
|
1161
1147
|
);
|
|
1162
1148
|
return (e, t) => {
|
|
1163
|
-
var
|
|
1149
|
+
var g, f, p, i, d;
|
|
1164
1150
|
return k(), I("div", Ht, [
|
|
1165
|
-
_("div",
|
|
1166
|
-
_("div",
|
|
1151
|
+
_("div", Ot, [
|
|
1152
|
+
_("div", jt, [
|
|
1167
1153
|
_("div", Yt, C(o.value.original.sku.name), 1),
|
|
1168
|
-
_("div",
|
|
1154
|
+
_("div", Gt, C(o.value.original.sku.code), 1)
|
|
1169
1155
|
]),
|
|
1170
1156
|
_("div", null, [
|
|
1171
|
-
T(v(
|
|
1172
|
-
render: (
|
|
1173
|
-
props: (d = (i = e.cellByColId[v(
|
|
1157
|
+
T(v(j), {
|
|
1158
|
+
render: (p = (f = (g = e.cellByColId[v(G).Delete]) == null ? void 0 : g.column) == null ? void 0 : f.columnDef) == null ? void 0 : p.cell,
|
|
1159
|
+
props: (d = (i = e.cellByColId[v(G).Delete]) == null ? void 0 : i.getContext) == null ? void 0 : d.call(i)
|
|
1174
1160
|
}, null, 8, ["render", "props"])
|
|
1175
1161
|
])
|
|
1176
1162
|
]),
|
|
1177
|
-
_("div",
|
|
1163
|
+
_("div", Kt, [
|
|
1178
1164
|
t[0] || (t[0] = _("div", { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, null, -1)),
|
|
1179
1165
|
(k(!0), I(H, null, J(l.value, (m) => {
|
|
1180
|
-
var
|
|
1166
|
+
var y, h, u;
|
|
1181
1167
|
return k(), I("div", {
|
|
1182
1168
|
key: m.id
|
|
1183
1169
|
}, [
|
|
1184
|
-
T(v(
|
|
1185
|
-
render: (h = (
|
|
1170
|
+
T(v(j), {
|
|
1171
|
+
render: (h = (y = m.column) == null ? void 0 : y.columnDef) == null ? void 0 : h.cell,
|
|
1186
1172
|
props: (u = m.getContext) == null ? void 0 : u.call(m)
|
|
1187
1173
|
}, null, 8, ["render", "props"])
|
|
1188
1174
|
]);
|
|
@@ -1191,25 +1177,25 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1191
1177
|
]);
|
|
1192
1178
|
};
|
|
1193
1179
|
}
|
|
1194
|
-
}), Wt = { class: "flex flex-col gap-16" }, qt = { class: "flex flex-col gap-24" },
|
|
1180
|
+
}), Wt = { class: "flex flex-col gap-16" }, qt = { class: "flex flex-col gap-24" }, Xt = { class: "flex flex-col gap-16" }, Qt = { class: "flex items-center" }, Zt = { class: "flex-1 fm-typo-en-title-sm-600" }, en = { class: "flex flex-col gap-16" }, tn = { class: "flex items-center" }, nn = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, on = /* @__PURE__ */ O({
|
|
1195
1181
|
__name: "ClosingTemplateForm",
|
|
1196
1182
|
props: {
|
|
1197
1183
|
modelValue: {},
|
|
1198
1184
|
disabled: { type: Boolean }
|
|
1199
1185
|
},
|
|
1200
1186
|
setup(r, { expose: s }) {
|
|
1201
|
-
const o = r, l =
|
|
1202
|
-
promptSelectLocations:
|
|
1203
|
-
columnDefs:
|
|
1187
|
+
const o = r, l = st(), { t: e } = B(), t = ae(), g = ie(), {
|
|
1188
|
+
promptSelectLocations: f,
|
|
1189
|
+
columnDefs: p,
|
|
1204
1190
|
rowData: i
|
|
1205
|
-
} =
|
|
1191
|
+
} = lt({
|
|
1206
1192
|
getLocations() {
|
|
1207
1193
|
return l.locations;
|
|
1208
1194
|
},
|
|
1209
1195
|
setLocations(n) {
|
|
1210
1196
|
l.locations = n;
|
|
1211
1197
|
}
|
|
1212
|
-
}), d =
|
|
1198
|
+
}), d = D(), m = D("");
|
|
1213
1199
|
s({
|
|
1214
1200
|
validateInputs: () => {
|
|
1215
1201
|
var n, a;
|
|
@@ -1224,7 +1210,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1224
1210
|
(a = (n = d.value) == null ? void 0 : n.resetInputs) == null || a.call(n);
|
|
1225
1211
|
}
|
|
1226
1212
|
});
|
|
1227
|
-
const
|
|
1213
|
+
const y = zt({
|
|
1228
1214
|
updateItem: (n) => {
|
|
1229
1215
|
l.items = l.items.map((a) => a.sku._id !== n.sku._id ? a : n);
|
|
1230
1216
|
},
|
|
@@ -1237,7 +1223,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1237
1223
|
get disabled() {
|
|
1238
1224
|
return o.disabled;
|
|
1239
1225
|
}
|
|
1240
|
-
}), h = E(() =>
|
|
1226
|
+
}), h = E(() => y.columnDefs.value);
|
|
1241
1227
|
function u() {
|
|
1242
1228
|
const n = t.skus.map((x) => ({
|
|
1243
1229
|
label: x.name,
|
|
@@ -1247,10 +1233,10 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1247
1233
|
var c;
|
|
1248
1234
|
return (c = l.items) == null ? void 0 : c.find(($) => $.sku._id === x.value._id);
|
|
1249
1235
|
}).map((x) => x.value);
|
|
1250
|
-
|
|
1236
|
+
g.open({
|
|
1251
1237
|
title: e("inventory.closing.form.items.selectItem"),
|
|
1252
1238
|
closeButton: !0,
|
|
1253
|
-
contentComponent:
|
|
1239
|
+
contentComponent: it,
|
|
1254
1240
|
contentComponentProps: {
|
|
1255
1241
|
modelValue: a,
|
|
1256
1242
|
items: n,
|
|
@@ -1267,7 +1253,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1267
1253
|
}
|
|
1268
1254
|
}).onPrimary((x) => {
|
|
1269
1255
|
const c = l.items ?? [], $ = x.map((b) => {
|
|
1270
|
-
const w = c.find((
|
|
1256
|
+
const w = c.find((M) => M.sku._id === b._id);
|
|
1271
1257
|
return w || {
|
|
1272
1258
|
sku: b
|
|
1273
1259
|
};
|
|
@@ -1290,19 +1276,19 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1290
1276
|
label: v(e)("inventory.closing.form.name"),
|
|
1291
1277
|
"label-mark": "required",
|
|
1292
1278
|
modelValue: v(l).name,
|
|
1293
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
1294
|
-
rules: [v(
|
|
1279
|
+
"onUpdate:modelValue": a[0] || (a[0] = (M) => v(l).name = M),
|
|
1280
|
+
rules: [v(at)()]
|
|
1295
1281
|
}, null, 8, ["label", "modelValue", "rules"]),
|
|
1296
1282
|
T(x, {
|
|
1297
1283
|
label: v(e)("inventory.closing.form.reference"),
|
|
1298
1284
|
"label-mark": "optional",
|
|
1299
1285
|
modelValue: v(l).ref,
|
|
1300
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
1286
|
+
"onUpdate:modelValue": a[1] || (a[1] = (M) => v(l).ref = M)
|
|
1301
1287
|
}, null, 8, ["label", "modelValue"])
|
|
1302
1288
|
])
|
|
1303
1289
|
]),
|
|
1304
|
-
_("div",
|
|
1305
|
-
_("div",
|
|
1290
|
+
_("div", Xt, [
|
|
1291
|
+
_("div", Qt, [
|
|
1306
1292
|
_("div", Zt, C(v(e)("inventory.closing.form.locations")), 1),
|
|
1307
1293
|
T(c, {
|
|
1308
1294
|
disabled: n.disabled,
|
|
@@ -1310,14 +1296,14 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1310
1296
|
"prepend-icon": "add",
|
|
1311
1297
|
variant: "plain",
|
|
1312
1298
|
class: "border-2 rounded-lg border-fm-color-primary",
|
|
1313
|
-
onClick: v(
|
|
1299
|
+
onClick: v(f)
|
|
1314
1300
|
}, null, 8, ["disabled", "label", "onClick"])
|
|
1315
1301
|
]),
|
|
1316
1302
|
T($, {
|
|
1317
|
-
"column-defs": v(
|
|
1303
|
+
"column-defs": v(p),
|
|
1318
1304
|
"row-data": v(i),
|
|
1319
1305
|
"shrink-at": 9999,
|
|
1320
|
-
onRowClick: v(
|
|
1306
|
+
onRowClick: v(f),
|
|
1321
1307
|
"hide-footer": ""
|
|
1322
1308
|
}, null, 8, ["column-defs", "row-data", "onRowClick"])
|
|
1323
1309
|
]),
|
|
@@ -1330,21 +1316,21 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1330
1316
|
"prepend-icon": "add",
|
|
1331
1317
|
variant: "plain",
|
|
1332
1318
|
class: "border-2 rounded-lg border-fm-color-primary",
|
|
1333
|
-
onClick: a[2] || (a[2] = (
|
|
1319
|
+
onClick: a[2] || (a[2] = (M) => u()),
|
|
1334
1320
|
size: "md"
|
|
1335
1321
|
}, null, 8, ["disabled", "label"])
|
|
1336
1322
|
]),
|
|
1337
1323
|
T(x, {
|
|
1338
1324
|
placeholder: "Filter items",
|
|
1339
1325
|
modelValue: m.value,
|
|
1340
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
1326
|
+
"onUpdate:modelValue": a[4] || (a[4] = (M) => m.value = M)
|
|
1341
1327
|
}, Pe({ _: 2 }, [
|
|
1342
1328
|
m.value ? {
|
|
1343
1329
|
name: "append",
|
|
1344
1330
|
fn: P(() => [
|
|
1345
1331
|
T(b, {
|
|
1346
1332
|
name: "close",
|
|
1347
|
-
onClick: a[3] || (a[3] = (
|
|
1333
|
+
onClick: a[3] || (a[3] = (M) => m.value = ""),
|
|
1348
1334
|
class: "cursor-pointer"
|
|
1349
1335
|
})
|
|
1350
1336
|
]),
|
|
@@ -1355,18 +1341,18 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1355
1341
|
"search-value": m.value,
|
|
1356
1342
|
"column-defs": h.value,
|
|
1357
1343
|
"row-data": v(l).items,
|
|
1358
|
-
key: v(l).items.map((
|
|
1344
|
+
key: v(l).items.map((M) => M.sku._id).join("."),
|
|
1359
1345
|
"hide-footer": v(l).items.length <= 10,
|
|
1360
1346
|
"page-size": Math.min(10, v(l).items.length)
|
|
1361
1347
|
}, {
|
|
1362
|
-
"list-row": P((
|
|
1363
|
-
(k(), V(
|
|
1364
|
-
row:
|
|
1348
|
+
"list-row": P((M) => [
|
|
1349
|
+
(k(), V(Ne, {
|
|
1350
|
+
row: M,
|
|
1365
1351
|
key: v(l).items.map((S) => S.sku._id).join(".")
|
|
1366
1352
|
}, {
|
|
1367
1353
|
default: P((S) => [
|
|
1368
1354
|
T(Jt, {
|
|
1369
|
-
row:
|
|
1355
|
+
row: M,
|
|
1370
1356
|
"cell-by-col-id": S
|
|
1371
1357
|
}, null, 8, ["row", "cell-by-col-id"])
|
|
1372
1358
|
]),
|
|
@@ -1377,7 +1363,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1377
1363
|
}, 8, ["search-value", "column-defs", "row-data", "hide-footer", "page-size"])),
|
|
1378
1364
|
T(w, {
|
|
1379
1365
|
"model-value": v(l).items.length,
|
|
1380
|
-
rules: [v(
|
|
1366
|
+
rules: [v(rt)(1)]
|
|
1381
1367
|
}, null, 8, ["model-value", "rules"])
|
|
1382
1368
|
])
|
|
1383
1369
|
]),
|
|
@@ -1385,7 +1371,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1385
1371
|
}, 8, ["disabled"]);
|
|
1386
1372
|
};
|
|
1387
1373
|
}
|
|
1388
|
-
}), sn = { class: "flex items-center" }, ln = { class: "fm-typo-en-title-md-600" }, an = { class: "flex gap-4" }, rn = /* @__PURE__ */
|
|
1374
|
+
}), sn = { class: "flex items-center" }, ln = { class: "fm-typo-en-title-md-600" }, an = { class: "flex gap-4" }, rn = /* @__PURE__ */ O({
|
|
1389
1375
|
__name: "ClosingTemplateDialog",
|
|
1390
1376
|
props: {
|
|
1391
1377
|
mode: {},
|
|
@@ -1395,7 +1381,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1395
1381
|
emits: ["update:show", "submitted"],
|
|
1396
1382
|
setup(r, { expose: s, emit: o }) {
|
|
1397
1383
|
var $;
|
|
1398
|
-
const l = r, e = o, t = ee(),
|
|
1384
|
+
const l = r, e = o, t = ee(), g = Z(), { t: f } = B(), p = ft(l, "show");
|
|
1399
1385
|
function i() {
|
|
1400
1386
|
return {
|
|
1401
1387
|
_id: "",
|
|
@@ -1403,7 +1389,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1403
1389
|
items: []
|
|
1404
1390
|
};
|
|
1405
1391
|
}
|
|
1406
|
-
const d =
|
|
1392
|
+
const d = D(l.modelValue ?? i()), m = D((($ = l.modelValue) == null ? void 0 : $._id) ?? `${Math.random()}`);
|
|
1407
1393
|
Re(
|
|
1408
1394
|
() => l.show,
|
|
1409
1395
|
(b) => {
|
|
@@ -1411,17 +1397,17 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1411
1397
|
b && (d.value = l.modelValue ?? i(), m.value = ((w = l.modelValue) == null ? void 0 : w._id) ?? `${Math.random()}`);
|
|
1412
1398
|
}
|
|
1413
1399
|
);
|
|
1414
|
-
const
|
|
1400
|
+
const y = D(!1), h = E(() => {
|
|
1415
1401
|
switch (l.mode) {
|
|
1416
1402
|
case z.READ:
|
|
1417
1403
|
return "";
|
|
1418
1404
|
case z.CREATE:
|
|
1419
|
-
return
|
|
1405
|
+
return f("inventory.closing.template.create.title");
|
|
1420
1406
|
case z.UPDATE:
|
|
1421
|
-
return
|
|
1407
|
+
return f("inventory.closing.template.update.title");
|
|
1422
1408
|
}
|
|
1423
1409
|
return "";
|
|
1424
|
-
}), u =
|
|
1410
|
+
}), u = D();
|
|
1425
1411
|
s({
|
|
1426
1412
|
validateInputs: () => {
|
|
1427
1413
|
var b, w;
|
|
@@ -1439,45 +1425,45 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1439
1425
|
async function n() {
|
|
1440
1426
|
const b = d.value;
|
|
1441
1427
|
if (b) {
|
|
1442
|
-
|
|
1428
|
+
y.value = !0;
|
|
1443
1429
|
try {
|
|
1444
|
-
await t.createTemplate(b), await new Promise((w) => setTimeout(w, 1e3)),
|
|
1445
|
-
title:
|
|
1446
|
-
message:
|
|
1430
|
+
await t.createTemplate(b), await new Promise((w) => setTimeout(w, 1e3)), g.open({
|
|
1431
|
+
title: f("inventory.closing.template.create.success"),
|
|
1432
|
+
message: f("inventory.closing.template.create.successMessage"),
|
|
1447
1433
|
type: "success"
|
|
1448
1434
|
}), e("update:show", !1), e("submitted");
|
|
1449
1435
|
} catch (w) {
|
|
1450
|
-
|
|
1451
|
-
title:
|
|
1452
|
-
message:
|
|
1436
|
+
g.open({
|
|
1437
|
+
title: f("inventory.closing.template.create.error"),
|
|
1438
|
+
message: f("inventory.closing.template.create.errorMessage"),
|
|
1453
1439
|
type: "error"
|
|
1454
1440
|
}), console.error("Error in creating closing template", w);
|
|
1455
1441
|
} finally {
|
|
1456
|
-
|
|
1442
|
+
y.value = !1;
|
|
1457
1443
|
}
|
|
1458
1444
|
}
|
|
1459
1445
|
}
|
|
1460
1446
|
async function a() {
|
|
1461
1447
|
const b = d.value;
|
|
1462
1448
|
if (b) {
|
|
1463
|
-
|
|
1449
|
+
y.value = !0;
|
|
1464
1450
|
try {
|
|
1465
1451
|
await t.updateTemplate({
|
|
1466
1452
|
...b,
|
|
1467
1453
|
_rev: b._rev ?? ""
|
|
1468
|
-
}), await new Promise((w) => setTimeout(w, 1e3)),
|
|
1469
|
-
title:
|
|
1470
|
-
message:
|
|
1454
|
+
}), await new Promise((w) => setTimeout(w, 1e3)), g.open({
|
|
1455
|
+
title: f("inventory.closing.template.update.success"),
|
|
1456
|
+
message: f("inventory.closing.template.update.successMessage"),
|
|
1471
1457
|
type: "success"
|
|
1472
1458
|
}), e("update:show", !1), e("submitted");
|
|
1473
1459
|
} catch (w) {
|
|
1474
|
-
|
|
1475
|
-
title:
|
|
1476
|
-
message:
|
|
1460
|
+
g.open({
|
|
1461
|
+
title: f("inventory.closing.template.update.error"),
|
|
1462
|
+
message: f("inventory.closing.template.update.errorMessage"),
|
|
1477
1463
|
type: "error"
|
|
1478
1464
|
}), console.error("Error in updating closing template", w);
|
|
1479
1465
|
} finally {
|
|
1480
|
-
|
|
1466
|
+
y.value = !1;
|
|
1481
1467
|
}
|
|
1482
1468
|
}
|
|
1483
1469
|
}
|
|
@@ -1494,10 +1480,10 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1494
1480
|
(w = (b = u.value) == null ? void 0 : b.validateInputs) == null || w.call(b);
|
|
1495
1481
|
}
|
|
1496
1482
|
return (b, w) => {
|
|
1497
|
-
const A = R("FmButton"),
|
|
1498
|
-
return k(), V(
|
|
1499
|
-
modelValue: v(
|
|
1500
|
-
"onUpdate:modelValue": w[2] || (w[2] = (S) =>
|
|
1483
|
+
const A = R("FmButton"), M = R("FmSideSheet");
|
|
1484
|
+
return k(), V(M, {
|
|
1485
|
+
modelValue: v(p),
|
|
1486
|
+
"onUpdate:modelValue": w[2] || (w[2] = (S) => je(p) ? p.value = S : null),
|
|
1501
1487
|
"dismiss-away": "",
|
|
1502
1488
|
"close-button": "",
|
|
1503
1489
|
"max-width": 800
|
|
@@ -1515,21 +1501,21 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1515
1501
|
onValidationSuccess: x,
|
|
1516
1502
|
"model-value": d.value,
|
|
1517
1503
|
"onUpdate:modelValue": w[0] || (w[0] = (S) => d.value = S),
|
|
1518
|
-
disabled:
|
|
1504
|
+
disabled: y.value,
|
|
1519
1505
|
key: m.value
|
|
1520
1506
|
}, null, 8, ["model-value", "disabled"]))
|
|
1521
1507
|
]),
|
|
1522
1508
|
"side-sheet-footer": P(() => [
|
|
1523
1509
|
_("div", an, [
|
|
1524
1510
|
T(A, {
|
|
1525
|
-
loading:
|
|
1526
|
-
label: v(
|
|
1511
|
+
loading: y.value,
|
|
1512
|
+
label: v(f)("common.save"),
|
|
1527
1513
|
onClick: c
|
|
1528
1514
|
}, null, 8, ["loading", "label"]),
|
|
1529
1515
|
T(A, {
|
|
1530
|
-
disabled:
|
|
1516
|
+
disabled: y.value,
|
|
1531
1517
|
variant: "tertiary",
|
|
1532
|
-
label: v(
|
|
1518
|
+
label: v(f)("common.close"),
|
|
1533
1519
|
onClick: w[1] || (w[1] = (S) => e("update:show", !1))
|
|
1534
1520
|
}, null, 8, ["disabled", "label"])
|
|
1535
1521
|
])
|
|
@@ -1542,7 +1528,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1542
1528
|
function mn(r, s) {
|
|
1543
1529
|
return k(), I("div");
|
|
1544
1530
|
}
|
|
1545
|
-
const un = /* @__PURE__ */
|
|
1531
|
+
const un = /* @__PURE__ */ ct(cn, [["render", mn]]), dn = { class: "flex flex-col gap-40" }, pn = { key: 0 }, fn = {
|
|
1546
1532
|
key: 1,
|
|
1547
1533
|
class: "flex gap-8 items-center"
|
|
1548
1534
|
}, vn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, gn = {
|
|
@@ -1551,12 +1537,12 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1551
1537
|
}, yn = {
|
|
1552
1538
|
key: 3,
|
|
1553
1539
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex flex-col gap-12"
|
|
1554
|
-
}, hn = { class: "fm-typo-en-body-md-600" }, bn = { class: "fm-typo-en-body-md-600" }, _n = { key: 4 }, xn = { class: "fm-typo-en-body-md-600" }, wn = { class: "fm-typo-en-body-md-600" }, kn = { class: "flex sm:flex-col xs:flex-col justify-end gap-8 w-full mb-16" }, Tn = /* @__PURE__ */
|
|
1540
|
+
}, hn = { class: "fm-typo-en-body-md-600" }, bn = { class: "fm-typo-en-body-md-600" }, _n = { key: 4 }, xn = { class: "fm-typo-en-body-md-600" }, wn = { class: "fm-typo-en-body-md-600" }, kn = { class: "flex sm:flex-col xs:flex-col justify-end gap-8 w-full mb-16" }, Tn = /* @__PURE__ */ O({
|
|
1555
1541
|
__name: "ClosingTemplatePublish",
|
|
1556
1542
|
emits: ["close"],
|
|
1557
1543
|
setup(r, { emit: s }) {
|
|
1558
|
-
const o =
|
|
1559
|
-
async function
|
|
1544
|
+
const o = D(!1), l = Z(), e = ee(), t = te(), { t: g } = B(), f = s;
|
|
1545
|
+
async function p() {
|
|
1560
1546
|
o.value = !0;
|
|
1561
1547
|
try {
|
|
1562
1548
|
await e.startNewPublish().delayed(1e3), l.open({
|
|
@@ -1564,12 +1550,12 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1564
1550
|
message: "You may refresh after a while to review publish status",
|
|
1565
1551
|
type: "success"
|
|
1566
1552
|
}), m();
|
|
1567
|
-
} catch (
|
|
1553
|
+
} catch (y) {
|
|
1568
1554
|
l.open({
|
|
1569
1555
|
title: "Something went wrong",
|
|
1570
1556
|
message: "Please try again",
|
|
1571
1557
|
type: "error"
|
|
1572
|
-
}), console.error("error on creating publish task",
|
|
1558
|
+
}), console.error("error on creating publish task", y);
|
|
1573
1559
|
} finally {
|
|
1574
1560
|
o.value = !1;
|
|
1575
1561
|
}
|
|
@@ -1578,9 +1564,9 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1578
1564
|
() => t.templates.length && (!i.value || i.value.outlets.length === i.value.completed.length)
|
|
1579
1565
|
);
|
|
1580
1566
|
function m() {
|
|
1581
|
-
|
|
1567
|
+
f("close");
|
|
1582
1568
|
}
|
|
1583
|
-
return (
|
|
1569
|
+
return (y, h) => {
|
|
1584
1570
|
const u = R("FmCircularProgress"), n = R("i18n-t"), a = R("FmButton");
|
|
1585
1571
|
return k(), I("div", dn, [
|
|
1586
1572
|
v(t).templates.length ? o.value ? (k(), I("div", fn, [
|
|
@@ -1591,7 +1577,7 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1591
1577
|
})
|
|
1592
1578
|
]),
|
|
1593
1579
|
_("div", vn, [
|
|
1594
|
-
_("span", null, C(v(
|
|
1580
|
+
_("span", null, C(v(g)("inventory.closing.template.publish.publishing")), 1)
|
|
1595
1581
|
])
|
|
1596
1582
|
])) : i.value ? i.value.outlets.length === i.value.completed.length ? (k(), I("div", yn, [
|
|
1597
1583
|
T(n, {
|
|
@@ -1606,7 +1592,7 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1606
1592
|
]),
|
|
1607
1593
|
_: 1
|
|
1608
1594
|
}),
|
|
1609
|
-
_("p", null, C(v(
|
|
1595
|
+
_("p", null, C(v(g)("inventory.closing.template.publish.message")), 1)
|
|
1610
1596
|
])) : (k(), I("div", _n, [
|
|
1611
1597
|
T(n, {
|
|
1612
1598
|
keypath: "inventory.closing.template.publish.stillPublishing",
|
|
@@ -1622,17 +1608,17 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1622
1608
|
}),
|
|
1623
1609
|
Fe(" Your recent publishing task is still pending (" + C(i.value.completed.length) + " / " + C(i.value.outlets.length) + "). Please wait until all publishing task has completed. ", 1)
|
|
1624
1610
|
])) : (k(), I("div", gn, [
|
|
1625
|
-
_("p", null, C(v(
|
|
1626
|
-
_("p", null, C(v(
|
|
1611
|
+
_("p", null, C(v(g)("inventory.closing.template.publish.noRecentActivity")), 1),
|
|
1612
|
+
_("p", null, C(v(g)("inventory.closing.template.publish.message")), 1)
|
|
1627
1613
|
])) : (k(), I("div", pn, [
|
|
1628
|
-
_("p", null, C(v(
|
|
1614
|
+
_("p", null, C(v(g)("inventory.closing.template.publish.nothingToPublish")), 1)
|
|
1629
1615
|
])),
|
|
1630
1616
|
_("div", kn, [
|
|
1631
1617
|
T(a, {
|
|
1632
1618
|
disabled: !d.value,
|
|
1633
1619
|
loading: o.value,
|
|
1634
1620
|
label: "Publish to all outlets",
|
|
1635
|
-
onClick:
|
|
1621
|
+
onClick: p
|
|
1636
1622
|
}, null, 8, ["disabled", "loading"]),
|
|
1637
1623
|
T(a, {
|
|
1638
1624
|
variant: "tertiary",
|
|
@@ -1643,12 +1629,12 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1643
1629
|
]);
|
|
1644
1630
|
};
|
|
1645
1631
|
}
|
|
1646
|
-
}), $n = { class: "flex-1 flex flex-col gap-8" }, Cn = { class: "flex flex-col" }, In = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" },
|
|
1632
|
+
}), $n = { class: "flex-1 flex flex-col gap-8" }, Cn = { class: "flex flex-col" }, In = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Dn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Mn = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Un = /* @__PURE__ */ O({
|
|
1647
1633
|
__name: "ClosingTemplateView",
|
|
1648
1634
|
setup(r) {
|
|
1649
|
-
const { t: s } = B(), { createTemplate: o, updateTemplate: l, exportTemplates: e, importTemplates: t } = se(), { templateDialogProps:
|
|
1650
|
-
|
|
1651
|
-
const h = E(() => d.loading), u =
|
|
1635
|
+
const { t: s } = B(), { createTemplate: o, updateTemplate: l, exportTemplates: e, importTemplates: t } = se(), { templateDialogProps: g, templateDetailsProps: f } = Le(se()), p = le(), i = ie(), d = te(), m = mt(), { breakpoints: y } = vt();
|
|
1636
|
+
p.watchLocation(d.fetchTemplates);
|
|
1637
|
+
const h = E(() => d.loading), u = D(""), n = E(() => y.value.xs || y.value.sm), a = E(() => n.value ? 10 : 20);
|
|
1652
1638
|
function x(w) {
|
|
1653
1639
|
switch (w) {
|
|
1654
1640
|
case N.Add:
|
|
@@ -1733,9 +1719,9 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1733
1719
|
}
|
|
1734
1720
|
]);
|
|
1735
1721
|
return (w, A) => {
|
|
1736
|
-
const
|
|
1722
|
+
const M = R("FmTable");
|
|
1737
1723
|
return k(), I(H, null, [
|
|
1738
|
-
T(
|
|
1724
|
+
T(ut, {
|
|
1739
1725
|
title: v(s)("inventory.closing.template.title"),
|
|
1740
1726
|
actions: b.value,
|
|
1741
1727
|
"onClick:action": x
|
|
@@ -1750,12 +1736,12 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1750
1736
|
}
|
|
1751
1737
|
])
|
|
1752
1738
|
}, [
|
|
1753
|
-
T(
|
|
1739
|
+
T(dt, {
|
|
1754
1740
|
searchable: "",
|
|
1755
1741
|
search: u.value,
|
|
1756
1742
|
"onUpdate:search": A[0] || (A[0] = (S) => u.value = S)
|
|
1757
1743
|
}, null, 8, ["search"]),
|
|
1758
|
-
T(
|
|
1744
|
+
T(M, {
|
|
1759
1745
|
style: Ye(v(m).tableHeight),
|
|
1760
1746
|
"column-defs": v(d).columnDefs,
|
|
1761
1747
|
"row-data": v(d).templates,
|
|
@@ -1765,23 +1751,23 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1765
1751
|
"page-size": a.value
|
|
1766
1752
|
}, {
|
|
1767
1753
|
"list-row": P((S) => [
|
|
1768
|
-
T(
|
|
1754
|
+
T(Ne, {
|
|
1769
1755
|
row: S,
|
|
1770
1756
|
onRowClick: (U) => v(l)(U)
|
|
1771
1757
|
}, {
|
|
1772
1758
|
default: P((U) => {
|
|
1773
|
-
var me, ue, de, W, pe, fe, ve, ge, q, ye, he, be, _e, xe, we,
|
|
1759
|
+
var me, ue, de, W, pe, fe, ve, ge, q, ye, he, be, _e, xe, we, X, ke, Te, $e, Ce, Q, Ie;
|
|
1774
1760
|
return [
|
|
1775
1761
|
_("div", $n, [
|
|
1776
1762
|
_("div", Cn, [
|
|
1777
1763
|
_("div", In, [
|
|
1778
|
-
T(v(
|
|
1764
|
+
T(v(j), {
|
|
1779
1765
|
render: (de = (ue = (me = U._id) == null ? void 0 : me.column) == null ? void 0 : ue.columnDef) == null ? void 0 : de.cell,
|
|
1780
1766
|
props: (pe = (W = U._id) == null ? void 0 : W.getContext) == null ? void 0 : pe.call(W)
|
|
1781
1767
|
}, null, 8, ["render", "props"])
|
|
1782
1768
|
]),
|
|
1783
1769
|
_("div", Sn, [
|
|
1784
|
-
T(v(
|
|
1770
|
+
T(v(j), {
|
|
1785
1771
|
render: (ge = (ve = (fe = U.name) == null ? void 0 : fe.column) == null ? void 0 : ve.columnDef) == null ? void 0 : ge.cell,
|
|
1786
1772
|
props: (ye = (q = U.name) == null ? void 0 : q.getContext) == null ? void 0 : ye.call(q)
|
|
1787
1773
|
}, null, 8, ["render", "props"])
|
|
@@ -1789,21 +1775,21 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1789
1775
|
_("div", null, C((he = S.original.locations) != null && he.length ? v(s)("inventory.closing.table.enabledForN", {
|
|
1790
1776
|
count: ((be = S.original.locations) == null ? void 0 : be.length) ?? 0
|
|
1791
1777
|
}) : v(s)("inventory.closing.table.enabledForAll")), 1),
|
|
1792
|
-
_("div",
|
|
1793
|
-
...S.original.items.slice(0, 3).map((
|
|
1778
|
+
_("div", Dn, C([
|
|
1779
|
+
...S.original.items.slice(0, 3).map((Oe) => Oe.sku.name),
|
|
1794
1780
|
...S.original.items.length >= 3 ? [`and ${S.original.items.length - 3} more items`] : []
|
|
1795
1781
|
].join(", ")), 1),
|
|
1796
|
-
_("div",
|
|
1797
|
-
T(v(
|
|
1782
|
+
_("div", Mn, [
|
|
1783
|
+
T(v(j), {
|
|
1798
1784
|
render: (we = (xe = (_e = U.ref) == null ? void 0 : _e.column) == null ? void 0 : xe.columnDef) == null ? void 0 : we.cell,
|
|
1799
|
-
props: (ke = (
|
|
1785
|
+
props: (ke = (X = U.ref) == null ? void 0 : X.getContext) == null ? void 0 : ke.call(X)
|
|
1800
1786
|
}, null, 8, ["render", "props"])
|
|
1801
1787
|
])
|
|
1802
1788
|
]),
|
|
1803
1789
|
_("div", null, [
|
|
1804
|
-
T(v(
|
|
1790
|
+
T(v(j), {
|
|
1805
1791
|
render: (Ce = ($e = (Te = U.status) == null ? void 0 : Te.column) == null ? void 0 : $e.columnDef) == null ? void 0 : Ce.cell,
|
|
1806
|
-
props: (Ie = (
|
|
1792
|
+
props: (Ie = (Q = U.status) == null ? void 0 : Q.getContext) == null ? void 0 : Ie.call(Q)
|
|
1807
1793
|
}, null, 8, ["render", "props"])
|
|
1808
1794
|
])
|
|
1809
1795
|
])
|
|
@@ -1818,9 +1804,9 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1818
1804
|
]),
|
|
1819
1805
|
_: 1
|
|
1820
1806
|
}, 8, ["title", "actions"]),
|
|
1821
|
-
(k(), V(
|
|
1822
|
-
T(un,
|
|
1823
|
-
T(rn, We(v(
|
|
1807
|
+
(k(), V(Ge, { to: "body" }, [
|
|
1808
|
+
T(un, Ke(Je(v(f))), null, 16),
|
|
1809
|
+
T(rn, We(v(g), {
|
|
1824
1810
|
onSubmitted: A[2] || (A[2] = (S) => v(d).fetchTemplates())
|
|
1825
1811
|
}), null, 16)
|
|
1826
1812
|
]))
|
|
@@ -1829,5 +1815,5 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1829
1815
|
}
|
|
1830
1816
|
});
|
|
1831
1817
|
export {
|
|
1832
|
-
|
|
1818
|
+
Un as default
|
|
1833
1819
|
};
|