@feedmepos/mf-inventory-portal 1.2.30-dev.1 → 1.2.30
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-kX4bqoEe.js → App-CZJre5y8.js} +57 -55
- package/dist/{ApprovalView-DCNKqVE2.js → ApprovalView-CnxHxojY.js} +34 -28
- package/dist/{BindingsDialog-d7f1f8gf.js → BindingsDialog-C6lCOPNs.js} +2 -2
- package/dist/{BindingsPicker-2HJOx0QW.js → BindingsPicker-DZtFKLQ5.js} +6 -5
- package/dist/{BindingsTable-CPAjxOZG.js → BindingsTable-BmQGLuJ4.js} +28 -24
- package/dist/{ClosingDraftView-CUng41eo.js → ClosingDraftView-KLtlh31f.js} +183 -175
- package/dist/{ClosingHistoryView-CcGc2NwU.js → ClosingHistoryView-Rf1yMhMj.js} +43 -41
- package/dist/ClosingTemplateView-C_IiKnGx.js +2019 -0
- package/dist/{DeliveryOrderPrintPreview-BsM-CCc5.js → DeliveryOrderPrintPreview-UF7V005U.js} +15 -14
- package/dist/FmDroppableField-J0xUsOTV.js +154 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-cuggJ5Xd.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcMvEdc0.js} +74 -72
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CqAeF0wL.js +279 -0
- package/dist/{FmMultiselectDialog-BGbrqXUF.js → FmMultiselectDialog-B0aKuf2o.js} +1 -1
- package/dist/FmMultiselectDialog-BasrjBFA.js +597 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-isogcN1O.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CaYJJkXz.js} +51 -49
- package/dist/{ImportView-wAVrMEwL.js → ImportView-DRSoz0uM.js} +81 -74
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVUF4I2Q.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DA8SlWPy.js} +5 -5
- package/dist/{IngredientGroupView-BZczeXdL.js → IngredientGroupView-D5Laak2-.js} +73 -65
- package/dist/{IngredientsView-D5N5Y1ZY.js → IngredientsView-TG3fPQhR.js} +358 -345
- package/dist/{IntegrationView-Hrslmuc1.js → IntegrationView-CElpjyo7.js} +219 -209
- package/dist/{InventoryBindingForm-DH6wgxOG.js → InventoryBindingForm-CBgxRYBd.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Drr5vD6f.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ys5GBHoQ.js} +41 -40
- package/dist/{InventoryBindingSummary-BU1ehpQZ.js → InventoryBindingSummary-OK3vNWhi.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1ueC4GfZ.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-9QRntUlk.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-FHcU1zZt.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Bc01NoOn.js} +22 -21
- package/dist/{PublishView-CQtj0f31.js → PublishView-CLMfiLjP.js} +26 -23
- package/dist/{PurchaseOrderPrintPreview-BQyXtHST.js → PurchaseOrderPrintPreview-Dy77yWDC.js} +10 -9
- package/dist/{ReceiveRequestView-Dm-h_SrY.js → ReceiveRequestView-BhD-NaHE.js} +478 -462
- package/dist/{RecipeView-DNNRvr1w.js → RecipeView-RWaO94w_.js} +73 -64
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js +251 -0
- package/dist/{StockView-CaOm5BCx.js → StockView-D5t8OxaG.js} +292 -282
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Z91XRszD.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-3Asf1TGd.js} +1 -1
- package/dist/{SupplierView-JSII9qwL.js → SupplierView-DiospFKq.js} +92 -80
- package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-DfCHteOF.js +177 -0
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CNtvx-LA.js +123 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Mehd4lGs.js → TransferDetails.vue_vue_type_script_setup_true_lang-p959Op4k.js} +318 -305
- package/dist/{TransferTemplateView-DyCpNKJd.js → TransferTemplateView-ePZFdZ0p.js} +228 -216
- package/dist/{UnitView-CqN7mlJ2.js → UnitView-Banlxw7y.js} +70 -63
- package/dist/{WarehouseView-gFWD-m8e.js → WarehouseView-BL-p5hbi.js} +123 -114
- package/dist/WastageTemplateView-B1pmSuW0.js +2288 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/app-EpEEb8EO.js +64040 -0
- package/dist/app-rgirz_52.js +8024 -0
- package/dist/app.d.ts +0 -21
- package/dist/app.js +6 -6
- package/dist/closing-template-zIjwO1_E.js +117 -0
- package/dist/date2-Dnc8Y81g.js +116 -0
- package/dist/dayjs.min-TdUgzmww.js +282 -0
- package/dist/{decimal-DfF_g5rc.js → decimal-C6s3GvGb.js} +4 -3
- package/dist/defineDeepModel-BSaaXVBF.js +19 -0
- package/dist/duplicate-template-Bw0H416G.js +34 -0
- package/dist/feature-C95Hao53.js +20162 -0
- package/dist/form-mode.enum-BKiNVH6A.js +4 -0
- package/dist/format-time-from-id-DlbHo6kY.js +15 -0
- package/dist/{format-unit-display-ivAljvlo.js → format-unit-display-QBS54q0R.js} +308 -297
- package/dist/{import-export.helper-B2MWv9v7.js → import-export.helper-CUKCKtP7.js} +56 -52
- package/dist/index-CFn_9RMm.js +45 -0
- package/dist/{index-DZaT0ZaL.js → index-S9Ak__QC.js} +1 -1
- package/dist/{index-BbhuWHyh.js → index-goD-WGVb.js} +16 -14
- package/dist/lodash-gq8IrP4j.js +3678 -0
- package/dist/netsuite-CnhAKyAO.js +4316 -0
- package/dist/{purchase-order-template-DdybMC_P.js → purchase-order-template-CBIpWdEW.js} +1 -1
- package/dist/router/shared.spec.d.ts +1 -0
- package/dist/row-action.enum-BcW_L_nE.js +67 -0
- package/dist/rules-DKklsaS1.js +201 -0
- package/dist/{stock-BYagIdsj.js → stock-3K93Mif9.js} +1 -1
- package/dist/{stock-V4ciPiBe.js → stock-BW8fen3H.js} +11 -10
- package/dist/style.css +1 -1
- package/dist/{supplier-CgtB1I9I.js → supplier-CObCSfot.js} +27 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BIQovyZX.js → use-ingredient-select-dialog-DwvQiaVW.js} +4 -3
- package/dist/{use-inventory-binding-dialog-DyjicXgc.js → use-inventory-binding-dialog-CuLEHLDM.js} +4 -3
- package/dist/use-template-enabled-locations-2-DkUJeppb.js +111 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1 -1
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +0 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1 -13
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +0 -12
- package/dist/vue-i18n-CUznvVzc.js +2365 -0
- package/dist/xlsx-bT1p3YVR.js +24004 -0
- package/dist/xlsx.util-Cr9DpDFb.js +78 -0
- package/package.json +5 -5
- package/dist/ClosingTemplateView-D8IAdhDb.js +0 -2041
- package/dist/app-CnQ49Lyb.js +0 -131483
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as w, t as H, i as T, I as P } from "./rules-DKklsaS1.js";
|
|
2
|
+
import { u as j } from "./feature-C95Hao53.js";
|
|
2
3
|
import { useCoreStore as g } from "@feedmepos/mf-common";
|
|
4
|
+
import { a as y, d as k, n as I, e as S } from "./app-EpEEb8EO.js";
|
|
5
|
+
import { b as N, d as $, s as _ } from "./xlsx.util-Cr9DpDFb.js";
|
|
6
|
+
import { f as O } from "./date2-Dnc8Y81g.js";
|
|
3
7
|
function R() {
|
|
4
8
|
return {
|
|
5
9
|
low: 6,
|
|
@@ -14,33 +18,33 @@ const B = {
|
|
|
14
18
|
measurements: []
|
|
15
19
|
};
|
|
16
20
|
function D(e) {
|
|
17
|
-
return !e || Object.keys(e).length === 0 ? "" : Object.entries(e).map(([t,
|
|
21
|
+
return !e || Object.keys(e).length === 0 ? "" : Object.entries(e).map(([t, a]) => `${t}: ${a}`).join(", ");
|
|
18
22
|
}
|
|
19
23
|
function A(e) {
|
|
20
24
|
if (!e || e.trim() === "")
|
|
21
25
|
return;
|
|
22
|
-
const t = {},
|
|
23
|
-
for (const n of
|
|
26
|
+
const t = {}, a = e.split(",").map((n) => n.trim());
|
|
27
|
+
for (const n of a) {
|
|
24
28
|
const s = n.indexOf(":");
|
|
25
29
|
if (s > 0) {
|
|
26
|
-
const c = n.substring(0, s).trim(),
|
|
27
|
-
c &&
|
|
30
|
+
const c = n.substring(0, s).trim(), r = n.substring(s + 1).trim();
|
|
31
|
+
c && r && (t[c] = r);
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
34
|
return Object.keys(t).length > 0 ? t : void 0;
|
|
31
35
|
}
|
|
32
36
|
function V(e) {
|
|
33
|
-
var
|
|
37
|
+
var a, n, s, c, r;
|
|
34
38
|
return {
|
|
35
39
|
code: e.code,
|
|
36
40
|
name: e.name,
|
|
37
41
|
unit: e.unit.name,
|
|
38
42
|
baseUnit: e.unit.abbrev,
|
|
39
|
-
measurementName: ((
|
|
43
|
+
measurementName: ((a = e.unit.measurements.find((m) => m.id === e.trackingMeasurement)) == null ? void 0 : a.abbrev) ?? e.unit.abbrev,
|
|
40
44
|
valuationMethod: e.valuation ?? "WAVG",
|
|
41
|
-
pricePerUnit: (n = e.defaultCost) != null && n.costPerUnit ? +
|
|
45
|
+
pricePerUnit: (n = e.defaultCost) != null && n.costPerUnit ? +w((s = e.defaultCost) == null ? void 0 : s.costPerUnit) : 0,
|
|
42
46
|
thresholdLow: ((c = e.thresholds) == null ? void 0 : c.low) ?? R().low,
|
|
43
|
-
thresholdMid: ((
|
|
47
|
+
thresholdMid: ((r = e.thresholds) == null ? void 0 : r.mid) ?? R().mid,
|
|
44
48
|
customAttributes: D(e.customAttributes)
|
|
45
49
|
};
|
|
46
50
|
}
|
|
@@ -67,7 +71,7 @@ function E() {
|
|
|
67
71
|
id: "measurementName",
|
|
68
72
|
name: "Measurement Name"
|
|
69
73
|
}
|
|
70
|
-
], t =
|
|
74
|
+
], t = j(), a = g(), n = k(a.currentCountry.value);
|
|
71
75
|
return t.enableTotalCost && e.push(
|
|
72
76
|
{
|
|
73
77
|
id: "valuationMethod",
|
|
@@ -77,7 +81,7 @@ function E() {
|
|
|
77
81
|
id: "pricePerUnit",
|
|
78
82
|
name: `Price per unit (${n == null ? void 0 : n.currency})`
|
|
79
83
|
}
|
|
80
|
-
), ((s =
|
|
84
|
+
), ((s = a.currentBusiness.value) == null ? void 0 : s.menuVersion) === "v4" && e.push(
|
|
81
85
|
{
|
|
82
86
|
id: "thresholdLow",
|
|
83
87
|
name: "Show RED when remaining"
|
|
@@ -91,7 +95,7 @@ function E() {
|
|
|
91
95
|
name: "Custom Attributes"
|
|
92
96
|
}), e;
|
|
93
97
|
}
|
|
94
|
-
function
|
|
98
|
+
function Q() {
|
|
95
99
|
const t = y().skus.map(V), n = g().currentBusiness.value, s = E(), c = [
|
|
96
100
|
["Business name:", n == null ? void 0 : n.name],
|
|
97
101
|
["Business ID:", n == null ? void 0 : n._id],
|
|
@@ -99,29 +103,29 @@ function G() {
|
|
|
99
103
|
[],
|
|
100
104
|
s.map((o) => o.name),
|
|
101
105
|
...t.map((o) => s.map((u) => o[u.id]))
|
|
102
|
-
],
|
|
103
|
-
return
|
|
106
|
+
], r = s.map((o) => `system:${o.id}`), m = N(c, r), d = `${n == null ? void 0 : n.name} ingredients (${O(/* @__PURE__ */ new Date())}).xlsx`;
|
|
107
|
+
return $(m, d), d;
|
|
104
108
|
}
|
|
105
109
|
function X() {
|
|
106
|
-
const t = g().currentBusiness.value,
|
|
110
|
+
const t = g().currentBusiness.value, a = E(), n = [
|
|
107
111
|
["Business name:", t == null ? void 0 : t.name],
|
|
108
112
|
["Business ID:", t == null ? void 0 : t._id],
|
|
109
113
|
["Menu version", t == null ? void 0 : t.menuVersion],
|
|
110
114
|
[],
|
|
111
|
-
|
|
112
|
-
], s =
|
|
113
|
-
return
|
|
115
|
+
a.map((m) => m.name)
|
|
116
|
+
], s = a.map((m) => `system:${m.id}`), c = N(n, s), r = "FeedMe ingredients template.xlsx";
|
|
117
|
+
return $(c, r), r;
|
|
114
118
|
}
|
|
115
|
-
function
|
|
119
|
+
function L(e) {
|
|
116
120
|
const [
|
|
117
121
|
t,
|
|
118
|
-
|
|
122
|
+
a,
|
|
119
123
|
n,
|
|
120
124
|
s,
|
|
121
125
|
c,
|
|
122
|
-
|
|
126
|
+
r,
|
|
123
127
|
...m
|
|
124
|
-
] =
|
|
128
|
+
] = _(e);
|
|
125
129
|
if (!t || !t.length || t.some((l) => l.length && !l.startsWith("system:")))
|
|
126
130
|
throw new Error("Missing meta header. Excel file does not come from the template.");
|
|
127
131
|
const d = t.map((l) => l.split(":")[1]), u = ["code", "name", "unit", "baseUnit", "measurementName"].filter((l) => !d.includes(l));
|
|
@@ -129,22 +133,22 @@ function Y(e) {
|
|
|
129
133
|
throw new Error(
|
|
130
134
|
`Missing meta headers (${u.join()}). Excel file does not come from the template.`
|
|
131
135
|
);
|
|
132
|
-
return m.map((l,
|
|
136
|
+
return m.map((l, h) => {
|
|
133
137
|
const f = {};
|
|
134
138
|
for (const v in d) {
|
|
135
139
|
const b = d[v];
|
|
136
140
|
Object.assign(f, { [b]: l[v] });
|
|
137
141
|
}
|
|
138
142
|
return {
|
|
139
|
-
index:
|
|
143
|
+
index: h,
|
|
140
144
|
data: f
|
|
141
145
|
};
|
|
142
146
|
});
|
|
143
147
|
}
|
|
144
|
-
function U(e, t,
|
|
148
|
+
function U(e, t, a, { ignoreErrors: n = !1 } = {}) {
|
|
145
149
|
var M;
|
|
146
|
-
const c = y().units,
|
|
147
|
-
m.length > 1 &&
|
|
150
|
+
const c = y().units, r = new Array(), m = a.filter((i) => i.data.code === e.code);
|
|
151
|
+
m.length > 1 && r.push(
|
|
148
152
|
`Code ${e.code} is already used in row ${m.map((i) => i.index + 6).join()}.`
|
|
149
153
|
);
|
|
150
154
|
const d = c.find((i) => {
|
|
@@ -152,24 +156,24 @@ function U(e, t, r, { ignoreErrors: n = !1 } = {}) {
|
|
|
152
156
|
return i.abbrev === e.baseUnit && ((x = i.name) == null ? void 0 : x.trim()) === ((C = e.unit) == null ? void 0 : C.trim());
|
|
153
157
|
}), o = d == null ? void 0 : d.measurements.find((i) => i.abbrev === e.measurementName);
|
|
154
158
|
if (!d)
|
|
155
|
-
|
|
159
|
+
r.push(`Cannot find base unit of symbol ${e.baseUnit}.`);
|
|
156
160
|
else if (e.baseUnit !== e.measurementName && !o) {
|
|
157
161
|
const i = `Cannot find unit conversion for ${e.baseUnit} with symbol ${e.measurementName || "[empty]"}.`;
|
|
158
|
-
|
|
162
|
+
r.push(i);
|
|
159
163
|
}
|
|
160
164
|
const u = S.options.find(
|
|
161
165
|
(i) => i === e.valuationMethod
|
|
162
166
|
);
|
|
163
|
-
e.valuationMethod && !u &&
|
|
167
|
+
e.valuationMethod && !u && r.push(
|
|
164
168
|
`Expected valuation method to be one of ${S.options.join()} but got ${e.valuationMethod} instead.`
|
|
165
169
|
);
|
|
166
|
-
const l = g().currentCountry.value,
|
|
170
|
+
const l = g().currentCountry.value, h = (i) => `${i}`.length && P()(i) === !0, f = h(`${e.pricePerUnit}`) === !0 ? {
|
|
167
171
|
costPerUnit: {
|
|
168
|
-
...
|
|
169
|
-
currency: ((M =
|
|
172
|
+
...H(Number(e.pricePerUnit) || 0, T(Number(e.pricePerUnit) || 0)),
|
|
173
|
+
currency: ((M = k(l)) == null ? void 0 : M.currency) ?? "MYR"
|
|
170
174
|
},
|
|
171
175
|
measurement: o
|
|
172
|
-
} : void 0, v =
|
|
176
|
+
} : void 0, v = h(`${e.thresholdLow}`) && h(`${e.thresholdMid}`) ? {
|
|
173
177
|
low: Number(e.thresholdLow) || 0,
|
|
174
178
|
mid: Number(e.thresholdMid) || 0
|
|
175
179
|
} : void 0, b = "customAttributes" in e ? A(e.customAttributes) : null;
|
|
@@ -185,31 +189,31 @@ function U(e, t, r, { ignoreErrors: n = !1 } = {}) {
|
|
|
185
189
|
thresholds: v,
|
|
186
190
|
...b !== null && { customAttributes: b }
|
|
187
191
|
},
|
|
188
|
-
errors:
|
|
192
|
+
errors: r,
|
|
189
193
|
excelRowNumber: t + 6
|
|
190
194
|
};
|
|
191
195
|
}
|
|
192
|
-
function
|
|
196
|
+
function Z(e) {
|
|
193
197
|
try {
|
|
194
|
-
const t =
|
|
198
|
+
const t = L(e).filter((o) => o.data.code), n = y().skus, s = I(n, "code"), c = t.filter((o) => !s[o.data.code]), r = t.filter((o) => s[o.data.code]), m = c.map(
|
|
195
199
|
(o) => U(o.data, o.index, t)
|
|
196
|
-
), d =
|
|
197
|
-
const u = U(o.data, o.index, t),
|
|
198
|
-
let l =
|
|
200
|
+
), d = r.map((o) => {
|
|
201
|
+
const u = U(o.data, o.index, t), p = s[o.data.code];
|
|
202
|
+
let l = p.customAttributes;
|
|
199
203
|
return "customAttributes" in o.data && (l = A(o.data.customAttributes)), {
|
|
200
204
|
...u,
|
|
201
205
|
type: "update",
|
|
202
|
-
original:
|
|
206
|
+
original: p,
|
|
203
207
|
sku: {
|
|
204
208
|
// to maintain original props not in the import excel, e.g. inventory binding, etc...
|
|
205
|
-
...
|
|
206
|
-
code: u.sku.code ||
|
|
207
|
-
name: u.sku.name ||
|
|
208
|
-
unit: u.sku.unit ||
|
|
209
|
-
trackingMeasurement: u.sku.trackingMeasurement ||
|
|
210
|
-
valuation: u.sku.valuation ||
|
|
211
|
-
defaultCost: u.sku.defaultCost ||
|
|
212
|
-
thresholds: u.sku.thresholds ||
|
|
209
|
+
...p,
|
|
210
|
+
code: u.sku.code || p.code,
|
|
211
|
+
name: u.sku.name || p.name,
|
|
212
|
+
unit: u.sku.unit || p.unit,
|
|
213
|
+
trackingMeasurement: u.sku.trackingMeasurement || p.trackingMeasurement,
|
|
214
|
+
valuation: u.sku.valuation || p.valuation,
|
|
215
|
+
defaultCost: u.sku.defaultCost || p.defaultCost,
|
|
216
|
+
thresholds: u.sku.thresholds || p.thresholds,
|
|
213
217
|
customAttributes: l
|
|
214
218
|
}
|
|
215
219
|
};
|
|
@@ -232,7 +236,7 @@ export {
|
|
|
232
236
|
X as a,
|
|
233
237
|
E as b,
|
|
234
238
|
R as d,
|
|
235
|
-
|
|
236
|
-
|
|
239
|
+
Q as e,
|
|
240
|
+
Z as g,
|
|
237
241
|
A as s
|
|
238
242
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { w as h } from "./app-EpEEb8EO.js";
|
|
2
|
+
var a = { exports: {} };
|
|
3
|
+
function x(r, s = 100, u = {}) {
|
|
4
|
+
if (typeof r != "function")
|
|
5
|
+
throw new TypeError(`Expected the first parameter to be a function, got \`${typeof r}\`.`);
|
|
6
|
+
if (s < 0)
|
|
7
|
+
throw new RangeError("`wait` must not be negative.");
|
|
8
|
+
const { immediate: f } = typeof u == "boolean" ? { immediate: u } : u;
|
|
9
|
+
let t, n, e, m, l;
|
|
10
|
+
function p() {
|
|
11
|
+
const o = Date.now() - m;
|
|
12
|
+
if (o < s && o >= 0)
|
|
13
|
+
e = setTimeout(p, s - o);
|
|
14
|
+
else if (e = void 0, !f) {
|
|
15
|
+
const d = t, i = n;
|
|
16
|
+
t = void 0, n = void 0, l = r.apply(d, i);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
const c = function(...o) {
|
|
20
|
+
if (t && this !== t)
|
|
21
|
+
throw new Error("Debounced method called with different contexts.");
|
|
22
|
+
t = this, n = o, m = Date.now();
|
|
23
|
+
const d = f && !e;
|
|
24
|
+
if (e || (e = setTimeout(p, s)), d) {
|
|
25
|
+
const i = t, b = n;
|
|
26
|
+
t = void 0, n = void 0, l = r.apply(i, b);
|
|
27
|
+
}
|
|
28
|
+
return l;
|
|
29
|
+
};
|
|
30
|
+
return c.clear = () => {
|
|
31
|
+
e && (clearTimeout(e), e = void 0);
|
|
32
|
+
}, c.flush = () => {
|
|
33
|
+
if (!e)
|
|
34
|
+
return;
|
|
35
|
+
const o = t, d = n;
|
|
36
|
+
t = void 0, n = void 0, l = r.apply(o, d), clearTimeout(e), e = void 0;
|
|
37
|
+
}, c;
|
|
38
|
+
}
|
|
39
|
+
a.exports.debounce = x;
|
|
40
|
+
a.exports = x;
|
|
41
|
+
var w = a.exports;
|
|
42
|
+
const y = /* @__PURE__ */ h(w);
|
|
43
|
+
export {
|
|
44
|
+
y as d
|
|
45
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as x, ab as V, ac as q, ad as Ne, a1 as cl, a8 as sr, ae as Lt, af as fl, ag as $l } from "./app-EpEEb8EO.js";
|
|
2
2
|
function vl(t, e) {
|
|
3
3
|
for (var r = 0; r < e.length; r++) {
|
|
4
4
|
const n = e[r];
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ref as b, computed as u } from "vue";
|
|
2
|
-
import { u as
|
|
2
|
+
import { u as p } from "./netsuite-CnhAKyAO.js";
|
|
3
|
+
import { u as d, y as h, B as v } from "./app-EpEEb8EO.js";
|
|
3
4
|
import { useSnackbar as E } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as m } from "./feature-C95Hao53.js";
|
|
4
6
|
function I() {
|
|
5
7
|
return {
|
|
6
8
|
setting: {
|
|
@@ -41,7 +43,7 @@ function C() {
|
|
|
41
43
|
},
|
|
42
44
|
async init() {
|
|
43
45
|
var n, e, t, a;
|
|
44
|
-
const o =
|
|
46
|
+
const o = h();
|
|
45
47
|
try {
|
|
46
48
|
const s = await o.readMenu();
|
|
47
49
|
i.value.menu = ((n = s.modules) == null ? void 0 : n.item) ?? [], i.value.group = ((e = s.modules) == null ? void 0 : e.group) ?? [], i.value.variants = ((t = s.modules) == null ? void 0 : t.variant) ?? [];
|
|
@@ -60,18 +62,18 @@ function C() {
|
|
|
60
62
|
}
|
|
61
63
|
};
|
|
62
64
|
}
|
|
63
|
-
function
|
|
65
|
+
function y() {
|
|
64
66
|
return {
|
|
65
67
|
locationId: ""
|
|
66
68
|
};
|
|
67
69
|
}
|
|
68
|
-
const r = b(
|
|
70
|
+
const r = b(y());
|
|
69
71
|
function w() {
|
|
70
72
|
const o = d(), n = v();
|
|
71
73
|
return o.watchLocation(async (e) => {
|
|
72
74
|
if (m().enabledXilnexOpeningMigration) {
|
|
73
75
|
if (!e) {
|
|
74
|
-
r.value =
|
|
76
|
+
r.value = y();
|
|
75
77
|
return;
|
|
76
78
|
}
|
|
77
79
|
r.value.locationId = e.dbName;
|
|
@@ -92,18 +94,18 @@ function w() {
|
|
|
92
94
|
}
|
|
93
95
|
};
|
|
94
96
|
}
|
|
95
|
-
function
|
|
97
|
+
function S() {
|
|
96
98
|
return {
|
|
97
99
|
locationId: ""
|
|
98
100
|
};
|
|
99
101
|
}
|
|
100
|
-
const l = b(
|
|
102
|
+
const l = b(S());
|
|
101
103
|
function x() {
|
|
102
104
|
const o = d(), n = v();
|
|
103
105
|
return o.watchLocation(async (e) => {
|
|
104
106
|
if (m()) {
|
|
105
107
|
if (!e) {
|
|
106
|
-
l.value =
|
|
108
|
+
l.value = S();
|
|
107
109
|
return;
|
|
108
110
|
}
|
|
109
111
|
l.value.locationId = e.dbName;
|
|
@@ -124,8 +126,8 @@ function x() {
|
|
|
124
126
|
}
|
|
125
127
|
};
|
|
126
128
|
}
|
|
127
|
-
function
|
|
128
|
-
const o =
|
|
129
|
+
function _() {
|
|
130
|
+
const o = p(), n = C(), e = w(), t = x(), a = u(() => o.isEnabled), s = u(() => n.isEnabled), f = u(() => e.isEnabled), c = u(() => t.isEnabled);
|
|
129
131
|
return {
|
|
130
132
|
get enabledIntegrations() {
|
|
131
133
|
return [
|
|
@@ -155,8 +157,8 @@ function N() {
|
|
|
155
157
|
};
|
|
156
158
|
}
|
|
157
159
|
export {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
w as a,
|
|
161
|
+
x as b,
|
|
162
|
+
_ as c,
|
|
163
|
+
C as u
|
|
162
164
|
};
|