@feedmepos/mf-menu 0.31.69-prod → 0.31.70-beta.1
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-Byjppp7I.js → App-BYrM7eu_.js} +9 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-a3SOjvXY.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DW7WWXPt.js} +3 -3
- package/dist/{Catalog-Bx3K7UqS.js → Catalog-DsDT7UmG.js} +6 -6
- package/dist/{Category-BxfQ5OjG.js → Category-BPYNqqBt.js} +6 -6
- package/dist/{Category-C01Ct1Tf.js → Category-Bh2JPkuX.js} +4 -4
- package/dist/{CookingGuide-CsTgj78F.js → CookingGuide-trVQ95-q.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Dn-rOcky.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BotLSdlH.js} +1 -1
- package/dist/{Group-BUT2zIZO.js → Group-Bcpohxou.js} +3 -3
- package/dist/{Group-DqV3QKc-.js → Group-Cuquhrwi.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-uzYIOv4G.js → Group.vue_vue_type_script_setup_true_lang-CjA8BFdo.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-zJW4-S9p.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-STwkKlm-.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-7qMW2Pv6.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DzGvvAPu.js} +8 -8
- package/dist/{Ingredient-CM1T0bUh.js → Ingredient-CJThMjBf.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-NETtbB15.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BCSXXPGZ.js} +1052 -1052
- package/dist/{LinkProductSideSheet-CcqAYsNl.js → LinkProductSideSheet-yD0LZrwl.js} +3 -3
- package/dist/{MenuSetting-DYb7ukCf.js → MenuSetting-39ILtlpj.js} +5 -5
- package/dist/{PrintRoute-Cok4l1zV.js → PrintRoute-Bo3Uj4WD.js} +4 -4
- package/dist/{Product-Dhc4Adhn.js → Product-D-4vOHWb.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Cz-_UH53.js → Product.vue_vue_type_script_setup_true_lang-DWYIsOXd.js} +13 -13
- package/dist/{ProductInternalTools-D0RSqHy-.js → ProductInternalTools-Cm8btjdU.js} +6 -6
- package/dist/{Products-Cqm3G5zr.js → Products-0a42qrIf.js} +11 -11
- package/dist/{Publish-B4tEDino.js → Publish-T183LOMo.js} +3 -3
- package/dist/{Recipe-7Dmy8ftx.js → Recipe-DgLTUxSH.js} +4 -4
- package/dist/{Scheduler-DdRzLW-P.js → Scheduler-D00RsNgV.js} +3 -3
- package/dist/{ServingSequence-BInVw61-.js → ServingSequence-CvOj325Y.js} +3 -3
- package/dist/{Setting-DcmNcix_.js → Setting-Bcsr3GKg.js} +5 -5
- package/dist/{Subcategory-BJPHM19c.js → Subcategory-BHPc4SJ-.js} +4 -4
- package/dist/{Takeaway-DffrT2Oe.js → Takeaway-CQMta24J.js} +4 -4
- package/dist/{Takeaway-CAMQB-IJ.js → Takeaway-DkTI4pSg.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-d739Y4lL.js → Takeaway.vue_vue_type_script_setup_true_lang-C7XBPnMH.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DadgzMI1.js → Thumbnail.vue_vue_type_script_setup_true_lang-CBA38mrS.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DBz3IAPN.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D0w9G7dB.js} +15 -15
- package/dist/{Unit-DAjjHptw.js → Unit-DIiTje9a.js} +2 -2
- package/dist/{Variant-DbK_VSB4.js → Variant-DHZT93Sn.js} +3 -3
- package/dist/{_id_-BekyhQuo.js → _id_-CcOB_m8o.js} +10 -10
- package/dist/{app-DtCzoQbv.js → app-BkPmvRZw.js} +26 -26
- package/dist/{app-Dy_PpbJy.js → app-CZJoDdrX.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/assets/{validate-menu-59YPNrR_.js → linked-status-BxY5iXlt.js} +7 -7
- package/dist/assets/{override-menu-aFa61roK.js → override-menu-DMGB4GDq.js} +5 -5
- package/dist/assets/{linked-status-BtBrdkGB.js → validate-menu-DwLkqjCY.js} +7 -7
- package/dist/{catalog-BMQMzuhB.js → catalog-6Xdri8ZQ.js} +1 -1
- package/dist/{catalogSetting-CQzUjCKe.js → catalogSetting-DiBo-LP9.js} +1 -1
- package/dist/{category-COs21nTW.js → category-CWW_n9jw.js} +1 -1
- package/dist/{currency-Dhnr3ve1.js → currency-DVHB2Joi.js} +1 -1
- package/dist/{customAttributes-3FR2K7UT.js → customAttributes-Dw23OTrM.js} +1 -1
- package/dist/{dayjs.min-Ch62VG8w.js → dayjs.min-Da7-BKoh.js} +1 -1
- package/dist/{index-C7QPwnik.js → index-4ktPiS1O.js} +4 -4
- package/dist/{index-eArd_3kW.js → index-BYj-oT0C.js} +1 -1
- package/dist/{index-D12PAJYh.js → index-DxGfr4bl.js} +1 -1
- package/dist/{index-BtcFkeQa.js → index-mjnhuOLJ.js} +3 -3
- package/dist/{item-B-j4iPOr.js → item-B4NROoTp.js} +378 -378
- package/dist/{jszip.min-5blhaVPG.js → jszip.min-Cf8b4Zbq.js} +245 -245
- package/dist/{menu-Ca6KeFDH.js → menu-BfDt7AyU.js} +1776 -1776
- package/dist/{menu-CxC6-3Ha.js → menu-Vir3t1K_.js} +1 -1
- package/dist/{menuV2-vW_kPd7g.js → menuV2-CiI8Hnnx.js} +153 -153
- package/dist/{priceTier-DnE-LoIJ.js → priceTier-CqS50iW2.js} +1 -1
- package/dist/{scheduler-DJ9vrIaV.js → scheduler-cGkprlVx.js} +4 -4
- package/dist/{subcategory-BtKCfoK9.js → subcategory-D0Yga-Ws.js} +2 -2
- package/dist/{toExcel-B8G6ceKY.js → toExcel-D-dRa5v1.js} +2 -2
- package/dist/{unit-8ggZO-G6.js → unit-CTuSt1jZ.js} +2 -2
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var Ue = Object.defineProperty;
|
|
2
2
|
var We = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ne = (e, t, n) => We(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { an as
|
|
4
|
+
import { an as ue, H as I, D as T, A as ae, ao as re, J as B, I as ie, a8 as x, c as G, X as V, ai as oe, ap as Ge, aq as Le, B as qe, aa as Be, ar as ze, as as He, a7 as Je } from "./menu-BfDt7AyU.js";
|
|
5
5
|
import { defineStore as Ye } from "pinia";
|
|
6
6
|
import { shallowRef as j, ref as z, computed as S, shallowReactive as Xe, effectScope as Qe, watch as Ze } from "vue";
|
|
7
7
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
8
8
|
import { useSnackbar as et } from "@feedmepos/ui-library";
|
|
9
|
-
const tt = "/assets/linked-status-
|
|
9
|
+
const tt = "/assets/linked-status-BxY5iXlt.js", nt = "/assets/override-menu-DMGB4GDq.js";
|
|
10
10
|
function rt(e) {
|
|
11
11
|
var o;
|
|
12
12
|
const t = I(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
|
|
13
13
|
return delete t.variant, delete t.thumbnail, [t, ...n || []];
|
|
14
14
|
}
|
|
15
15
|
function ot(e, t, n, o) {
|
|
16
|
-
const r = I(t),
|
|
16
|
+
const r = I(t), a = n ? r.modules.catalog.find((m) => m._id === n) : null, l = o ? r.modules.scheduler.find((m) => m._id === o) : null, u = a ? I(a) : void 0, c = n ? r.modules.catalog.filter((m) => m._id !== n) : [], i = l ? I(l) : void 0, f = e.reduce((m, v) => (m[v._id] = rt(v), m), {});
|
|
17
17
|
function h(m = []) {
|
|
18
18
|
const v = e.map((p) => p._id);
|
|
19
19
|
return [
|
|
@@ -21,20 +21,20 @@ function ot(e, t, n, o) {
|
|
|
21
21
|
...Object.values(f).flatMap((p) => p)
|
|
22
22
|
];
|
|
23
23
|
}
|
|
24
|
-
return
|
|
25
|
-
...
|
|
24
|
+
return u && o ? (u.override.scheduler = {
|
|
25
|
+
...u.override.scheduler,
|
|
26
26
|
[o]: {
|
|
27
|
-
...
|
|
27
|
+
...u.override.scheduler[o],
|
|
28
28
|
_id: o,
|
|
29
29
|
items: h(i == null ? void 0 : i.items).map((m) => ({
|
|
30
30
|
...m,
|
|
31
|
-
orderFrom:
|
|
31
|
+
orderFrom: ae.F_ORDER_FROM.enum.ALL
|
|
32
32
|
}))
|
|
33
33
|
}
|
|
34
|
-
}, r.modules.catalog = [...c,
|
|
35
|
-
...
|
|
34
|
+
}, r.modules.catalog = [...c, u], r) : u ? (u.override.items = {
|
|
35
|
+
...u.override.items,
|
|
36
36
|
...f
|
|
37
|
-
}, r.modules.catalog = [...c,
|
|
37
|
+
}, r.modules.catalog = [...c, u], r) : i ? (i.items = h(i.items), r.modules.scheduler = [
|
|
38
38
|
...r.modules.scheduler.filter((m) => m._id !== o),
|
|
39
39
|
i
|
|
40
40
|
], r) : {
|
|
@@ -50,18 +50,18 @@ function ot(e, t, n, o) {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
function $(e, t, n) {
|
|
53
|
-
var
|
|
53
|
+
var a;
|
|
54
54
|
if (n >= 3) return e;
|
|
55
55
|
const o = t.modules.item.find((l) => l._id === e._id);
|
|
56
56
|
if (!o)
|
|
57
57
|
throw new Error(`_insertItemOverriders - Item not found - ${e._id}`);
|
|
58
|
-
const r = (
|
|
58
|
+
const r = (a = o.groups) == null ? void 0 : a.map((l) => {
|
|
59
59
|
var i, f, h;
|
|
60
|
-
const
|
|
60
|
+
const u = (i = e == null ? void 0 : e.groups) == null ? void 0 : i.find((m) => m._id === l._id);
|
|
61
61
|
let c;
|
|
62
|
-
return
|
|
62
|
+
return u ? c = ((f = l.items) == null ? void 0 : f.map((m) => {
|
|
63
63
|
var p;
|
|
64
|
-
const v = (p =
|
|
64
|
+
const v = (p = u.items) == null ? void 0 : p.find(
|
|
65
65
|
(b) => b._id === m._id && b.combinationKey === m.combinationKey
|
|
66
66
|
);
|
|
67
67
|
return $(v || m, t, n + 1);
|
|
@@ -79,10 +79,10 @@ function $(e, t, n) {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
function st(e, t) {
|
|
82
|
-
const n = e.groups.map((
|
|
83
|
-
const l = t.modules.group.find((c) => c._id ===
|
|
82
|
+
const n = e.groups.map((a) => {
|
|
83
|
+
const l = t.modules.group.find((c) => c._id === a._id), u = ((l == null ? void 0 : l.items) || []).map((c) => {
|
|
84
84
|
var h;
|
|
85
|
-
const i = (h =
|
|
85
|
+
const i = (h = a.items) == null ? void 0 : h.find(
|
|
86
86
|
(m) => m._id === c._id && m.combinationKey === c.combinationKey
|
|
87
87
|
);
|
|
88
88
|
if (i)
|
|
@@ -94,8 +94,8 @@ function st(e, t) {
|
|
|
94
94
|
};
|
|
95
95
|
return $(f, t, 1);
|
|
96
96
|
});
|
|
97
|
-
return { ...
|
|
98
|
-
}), o = e.variant ? e.variant.variantCombinations.map((
|
|
97
|
+
return { ...a, items: u };
|
|
98
|
+
}), o = e.variant ? e.variant.variantCombinations.map((a) => $(a, t, 1)) : [], r = {
|
|
99
99
|
...T.generator.initMenuV4ItemOverrider(),
|
|
100
100
|
_id: e._id,
|
|
101
101
|
name: e.name,
|
|
@@ -110,28 +110,28 @@ function H(e, t) {
|
|
|
110
110
|
return e;
|
|
111
111
|
const n = { ...e, code: t.code };
|
|
112
112
|
return n.groups = (o = n.groups) == null ? void 0 : o.map((r) => {
|
|
113
|
-
var l,
|
|
114
|
-
const
|
|
115
|
-
return r.items = (
|
|
113
|
+
var l, u;
|
|
114
|
+
const a = (l = t.groups) == null ? void 0 : l.find((c) => c._id === r._id);
|
|
115
|
+
return r.items = (u = r.items) == null ? void 0 : u.map((c) => {
|
|
116
116
|
var f;
|
|
117
|
-
const i = (f =
|
|
117
|
+
const i = (f = a == null ? void 0 : a.items) == null ? void 0 : f.find(
|
|
118
118
|
(h) => h._id === c._id && h.combinationKey === c.combinationKey
|
|
119
119
|
);
|
|
120
120
|
return H(c, i);
|
|
121
121
|
}), r;
|
|
122
122
|
}), n;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function ut(e, t) {
|
|
125
125
|
const n = e.items[t._id];
|
|
126
126
|
t.variant && (t.variant = {
|
|
127
127
|
...t.variant,
|
|
128
128
|
variantCombinations: t.variant.variantCombinations.map((r) => {
|
|
129
|
-
const
|
|
129
|
+
const a = n.find(
|
|
130
130
|
(l) => l._id === r._id && l.combinationKey === r.combinationKey
|
|
131
131
|
);
|
|
132
|
-
if (!
|
|
132
|
+
if (!a)
|
|
133
133
|
throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
|
|
134
|
-
return H(
|
|
134
|
+
return H(a, r);
|
|
135
135
|
})
|
|
136
136
|
});
|
|
137
137
|
const o = n.find((r) => !r.combinationKey);
|
|
@@ -139,25 +139,25 @@ function at(e, t) {
|
|
|
139
139
|
throw new Error(`Base item overrider not found - ${t._id}`);
|
|
140
140
|
return t.groups = (o.groups || []).map((r) => {
|
|
141
141
|
var l;
|
|
142
|
-
const
|
|
143
|
-
return r.items = (l = r.items) == null ? void 0 : l.map((
|
|
142
|
+
const a = t.groups.find((u) => u._id === r._id);
|
|
143
|
+
return r.items = (l = r.items) == null ? void 0 : l.map((u) => {
|
|
144
144
|
var i;
|
|
145
|
-
const c = (i =
|
|
146
|
-
(f) => f._id ===
|
|
145
|
+
const c = (i = a == null ? void 0 : a.items) == null ? void 0 : i.find(
|
|
146
|
+
(f) => f._id === u._id && f.combinationKey === u.combinationKey
|
|
147
147
|
);
|
|
148
|
-
return H(
|
|
148
|
+
return H(u, c);
|
|
149
149
|
}), r;
|
|
150
150
|
}), {
|
|
151
151
|
...t,
|
|
152
152
|
price: (o == null ? void 0 : o.price) || t.price
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
async function Ot(e, t, n, o, r,
|
|
156
|
-
const l = I(n),
|
|
155
|
+
async function Ot(e, t, n, o, r, a = !0) {
|
|
156
|
+
const l = I(n), u = a ? ot(t, l, o, r) : l, c = t.reduce((h, m) => (h[m._id] = u.modules.item.find((v) => v._id === m._id), h), {}), i = t.reduce((h, m) => {
|
|
157
157
|
const v = m._id;
|
|
158
158
|
return h[v] = st(c[v], e), h;
|
|
159
159
|
}, {}), f = T.getFallbackPrices({
|
|
160
|
-
rawMenu:
|
|
160
|
+
rawMenu: u,
|
|
161
161
|
items: i,
|
|
162
162
|
catalogId: o || void 0,
|
|
163
163
|
schedulerId: r
|
|
@@ -165,7 +165,7 @@ async function Ot(e, t, n, o, r, u = !0) {
|
|
|
165
165
|
return t.map((h) => {
|
|
166
166
|
const m = h._id, v = c[m];
|
|
167
167
|
return {
|
|
168
|
-
...
|
|
168
|
+
...ut(f, v),
|
|
169
169
|
category: o || r ? v == null ? void 0 : v.category : null
|
|
170
170
|
};
|
|
171
171
|
});
|
|
@@ -173,11 +173,11 @@ async function Ot(e, t, n, o, r, u = !0) {
|
|
|
173
173
|
function Dt(e, t) {
|
|
174
174
|
if (e.length === 0) return "";
|
|
175
175
|
const n = e == null ? void 0 : e.split("variant");
|
|
176
|
-
return ((n == null ? void 0 : n.reduce((r,
|
|
177
|
-
if (
|
|
178
|
-
const l = `variant${
|
|
176
|
+
return ((n == null ? void 0 : n.reduce((r, a) => {
|
|
177
|
+
if (a && a.length > 0) {
|
|
178
|
+
const l = `variant${a.split("/")[0]}`, u = a.split("/")[1], i = t.find(
|
|
179
179
|
({ _id: f }) => f === l
|
|
180
|
-
).options.find(({ _id: f }) => f ===
|
|
180
|
+
).options.find(({ _id: f }) => f === u);
|
|
181
181
|
r.push(((i == null ? void 0 : i.name) || "").trim());
|
|
182
182
|
}
|
|
183
183
|
return r;
|
|
@@ -188,7 +188,7 @@ async function Vt(e, t) {
|
|
|
188
188
|
const n = `${e._id}-${e.updatedAt}-${t}`;
|
|
189
189
|
if (L.has(n))
|
|
190
190
|
return L.get(n);
|
|
191
|
-
const o = await
|
|
191
|
+
const o = await ue(
|
|
192
192
|
tt,
|
|
193
193
|
JSON.stringify({
|
|
194
194
|
menu: e,
|
|
@@ -198,7 +198,7 @@ async function Vt(e, t) {
|
|
|
198
198
|
return L.set(n, o), o;
|
|
199
199
|
}
|
|
200
200
|
async function ce(e, t, n) {
|
|
201
|
-
return await
|
|
201
|
+
return await ue(nt, {
|
|
202
202
|
menu: e,
|
|
203
203
|
catalogId: t,
|
|
204
204
|
schedulerId: n
|
|
@@ -206,14 +206,14 @@ async function ce(e, t, n) {
|
|
|
206
206
|
}
|
|
207
207
|
function Tt(e, t, n) {
|
|
208
208
|
const o = /* @__PURE__ */ new Set();
|
|
209
|
-
function r(
|
|
210
|
-
if (!e || !
|
|
209
|
+
function r(a, l) {
|
|
210
|
+
if (!e || !a || !l || o.has(l)) return !1;
|
|
211
211
|
o.add(l);
|
|
212
|
-
const
|
|
213
|
-
return !
|
|
212
|
+
const u = e.modules.item.find((c) => c._id === l);
|
|
213
|
+
return !u || !u.groups ? !1 : u.groups.some((c) => c._id === a) ? !0 : u.groups.some((c) => {
|
|
214
214
|
const i = e.modules.group.find((f) => f._id === c._id);
|
|
215
215
|
for (const f of (i == null ? void 0 : i.items) || [])
|
|
216
|
-
if (r(
|
|
216
|
+
if (r(a, f._id)) return !0;
|
|
217
217
|
return !1;
|
|
218
218
|
});
|
|
219
219
|
}
|
|
@@ -221,11 +221,11 @@ function Tt(e, t, n) {
|
|
|
221
221
|
}
|
|
222
222
|
function Ft(e, t, n) {
|
|
223
223
|
const o = /* @__PURE__ */ new Set();
|
|
224
|
-
function r(
|
|
225
|
-
if (!e || !
|
|
226
|
-
o.add(
|
|
227
|
-
const
|
|
228
|
-
return !
|
|
224
|
+
function r(a, l) {
|
|
225
|
+
if (!e || !a || !l || o.has(a)) return !1;
|
|
226
|
+
o.add(a);
|
|
227
|
+
const u = e.modules.group.find((c) => c._id === a);
|
|
228
|
+
return !u || !u.items ? !1 : u.items.some((c) => c._id === l) ? !0 : u.items.some((c) => {
|
|
229
229
|
const i = e.modules.item.find((f) => f._id === c._id);
|
|
230
230
|
for (const f of (i == null ? void 0 : i.groups) || [])
|
|
231
231
|
if (r(f._id, l)) return !0;
|
|
@@ -234,17 +234,17 @@ function Ft(e, t, n) {
|
|
|
234
234
|
}
|
|
235
235
|
return r(t, n);
|
|
236
236
|
}
|
|
237
|
-
const
|
|
238
|
-
async function
|
|
237
|
+
const q = /* @__PURE__ */ new Map();
|
|
238
|
+
async function at(e, t, n) {
|
|
239
239
|
const o = `${e._id}-${e.updatedAt}-${t || "null"}-${n || "null"}`;
|
|
240
|
-
if (
|
|
241
|
-
return
|
|
240
|
+
if (q.has(o))
|
|
241
|
+
return q.get(o);
|
|
242
242
|
const r = await ce(e, t, n);
|
|
243
|
-
return
|
|
243
|
+
return q.set(o, r), r;
|
|
244
244
|
}
|
|
245
245
|
async function Kt(e, t, n) {
|
|
246
|
-
var l,
|
|
247
|
-
const o = await
|
|
246
|
+
var l, u;
|
|
247
|
+
const o = await at(e, t, null), r = [], a = (c, i) => {
|
|
248
248
|
const f = I(c);
|
|
249
249
|
for (const h in i)
|
|
250
250
|
i[h] && (f[h] = i[h]);
|
|
@@ -253,12 +253,12 @@ async function Kt(e, t, n) {
|
|
|
253
253
|
for (const c of o.modules.group) {
|
|
254
254
|
const i = (l = c.items) == null ? void 0 : l.find((h) => h._id === n && !h.combinationKey), f = e.modules.item.find((h) => h._id === n);
|
|
255
255
|
if (i) {
|
|
256
|
-
const h = (
|
|
256
|
+
const h = (u = c.items) == null ? void 0 : u.filter((v) => v._id === n && v.combinationKey), m = [i, ...h].map((v) => {
|
|
257
257
|
var w, C;
|
|
258
258
|
const p = v.combinationKey ? (C = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : C.find(
|
|
259
|
-
(
|
|
260
|
-
) : f, b = p && f ?
|
|
261
|
-
return
|
|
259
|
+
(R) => R.combinationKey === v.combinationKey
|
|
260
|
+
) : f, b = p && f ? a(f, p) : v;
|
|
261
|
+
return a(b, v);
|
|
262
262
|
});
|
|
263
263
|
r.push({
|
|
264
264
|
group: c,
|
|
@@ -294,7 +294,7 @@ function O(e) {
|
|
|
294
294
|
function P(e) {
|
|
295
295
|
return e instanceof RegExp ? e.toString() : e;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function k(e) {
|
|
298
298
|
return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
|
|
299
299
|
}
|
|
300
300
|
function K(e, t) {
|
|
@@ -310,7 +310,7 @@ function K(e, t) {
|
|
|
310
310
|
if (!K(e[n], t[n])) return !1;
|
|
311
311
|
return !0;
|
|
312
312
|
}
|
|
313
|
-
if (
|
|
313
|
+
if (k(e) && k(t)) {
|
|
314
314
|
const n = Object.keys(e), o = Object.keys(t);
|
|
315
315
|
if (n.length !== o.length) return !1;
|
|
316
316
|
for (const r of n)
|
|
@@ -320,18 +320,18 @@ function K(e, t) {
|
|
|
320
320
|
return !1;
|
|
321
321
|
}
|
|
322
322
|
function ct(e, t, n) {
|
|
323
|
-
const o = e.length, r = t.length,
|
|
323
|
+
const o = e.length, r = t.length, a = /* @__PURE__ */ new Map();
|
|
324
324
|
for (let c = 0; c < r; c++) {
|
|
325
325
|
const i = n ? n(t[c]) : JSON.stringify(t[c]);
|
|
326
|
-
|
|
326
|
+
a.has(i) || a.set(i, []), a.get(i).push(c);
|
|
327
327
|
}
|
|
328
|
-
const l = [],
|
|
328
|
+
const l = [], u = /* @__PURE__ */ new Set();
|
|
329
329
|
for (let c = 0; c < o; c++) {
|
|
330
|
-
const i = e[c], f = n ? n(i) : JSON.stringify(i), h =
|
|
330
|
+
const i = e[c], f = n ? n(i) : JSON.stringify(i), h = a.get(f);
|
|
331
331
|
if (h) {
|
|
332
332
|
for (const m of h)
|
|
333
|
-
if (!
|
|
334
|
-
l.push({ leftIndex: c, rightIndex: m }),
|
|
333
|
+
if (!u.has(m) && K(i, t[m])) {
|
|
334
|
+
l.push({ leftIndex: c, rightIndex: m }), u.add(m);
|
|
335
335
|
break;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
@@ -341,27 +341,27 @@ function ct(e, t, n) {
|
|
|
341
341
|
function lt(e, t, n) {
|
|
342
342
|
var m, v;
|
|
343
343
|
if (K(e, t)) return;
|
|
344
|
-
const o = { _t: "a" }, r = ((m = n == null ? void 0 : n.arrays) == null ? void 0 : m.detectMove) !== !1,
|
|
345
|
-
let
|
|
346
|
-
if (!l && e.length === t.length && e.length > 0 &&
|
|
347
|
-
const p =
|
|
344
|
+
const o = { _t: "a" }, r = ((m = n == null ? void 0 : n.arrays) == null ? void 0 : m.detectMove) !== !1, a = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.includeValueOnMove) === !0, l = n == null ? void 0 : n.objectHash;
|
|
345
|
+
let u = r ? ct(e, t, l) : [];
|
|
346
|
+
if (!l && e.length === t.length && e.length > 0 && u.length < e.length) {
|
|
347
|
+
const p = k(e[0]) || Array.isArray(e[0]), b = u.length > 0;
|
|
348
348
|
if (p || b) {
|
|
349
|
-
|
|
349
|
+
u = [];
|
|
350
350
|
for (let w = 0; w < e.length; w++)
|
|
351
|
-
|
|
351
|
+
u.push({ leftIndex: w, rightIndex: w });
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
new Set(
|
|
355
|
-
const c = new Set(
|
|
356
|
-
for (const p of
|
|
354
|
+
new Set(u.map((p) => p.leftIndex));
|
|
355
|
+
const c = new Set(u.map((p) => p.rightIndex)), i = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map();
|
|
356
|
+
for (const p of u)
|
|
357
357
|
i.set(p.leftIndex, p.rightIndex), f.set(p.rightIndex, p.leftIndex);
|
|
358
358
|
for (let p = 0; p < e.length; p++) {
|
|
359
359
|
const b = i.get(p);
|
|
360
360
|
if (b !== void 0) {
|
|
361
361
|
const w = J(e[p], t[b], n);
|
|
362
362
|
if (w !== void 0 && (o[b] = w), r && b !== p) {
|
|
363
|
-
const C = `_${p}`,
|
|
364
|
-
o[C] =
|
|
363
|
+
const C = `_${p}`, R = a ? [e[p], b, F] : ["", b, F];
|
|
364
|
+
o[C] = R;
|
|
365
365
|
}
|
|
366
366
|
} else {
|
|
367
367
|
const w = `_${p}`;
|
|
@@ -376,84 +376,84 @@ function lt(e, t, n) {
|
|
|
376
376
|
}
|
|
377
377
|
function dt(e, t, n) {
|
|
378
378
|
if (K(e, t)) return;
|
|
379
|
-
const o = {}, r = Object.keys(e),
|
|
380
|
-
for (const
|
|
381
|
-
if (n != null && n.propertyFilter && !n.propertyFilter(
|
|
379
|
+
const o = {}, r = Object.keys(e), a = Object.keys(t), l = /* @__PURE__ */ new Set([...r, ...a]);
|
|
380
|
+
for (const u of l) {
|
|
381
|
+
if (n != null && n.propertyFilter && !n.propertyFilter(u, { left: e, right: t }))
|
|
382
382
|
continue;
|
|
383
|
-
const c = Object.prototype.hasOwnProperty.call(e,
|
|
383
|
+
const c = Object.prototype.hasOwnProperty.call(e, u), i = Object.prototype.hasOwnProperty.call(t, u);
|
|
384
384
|
if (c && i) {
|
|
385
|
-
const f = J(e[
|
|
386
|
-
f !== void 0 && (o[
|
|
385
|
+
const f = J(e[u], t[u], n);
|
|
386
|
+
f !== void 0 && (o[u] = f);
|
|
387
387
|
} else if (c && !i) {
|
|
388
|
-
const f = n != null && n.omitRemovedValues ? 0 : e[
|
|
389
|
-
o[
|
|
390
|
-
} else !c && i && (o[
|
|
388
|
+
const f = n != null && n.omitRemovedValues ? 0 : e[u];
|
|
389
|
+
o[u] = [f, M, M];
|
|
390
|
+
} else !c && i && (o[u] = [t[u]]);
|
|
391
391
|
}
|
|
392
392
|
return Object.keys(o).length > 0 ? o : void 0;
|
|
393
393
|
}
|
|
394
394
|
function J(e, t, n) {
|
|
395
395
|
if (K(e, t)) return;
|
|
396
396
|
if (e === void 0 && t !== void 0) {
|
|
397
|
-
const
|
|
398
|
-
return [P(
|
|
397
|
+
const u = n != null && n.cloneDiffValues ? O(t) : t;
|
|
398
|
+
return [P(u)];
|
|
399
399
|
}
|
|
400
400
|
if (typeof e !== typeof t || e instanceof Date != t instanceof Date || e instanceof RegExp != t instanceof RegExp || Array.isArray(e) !== Array.isArray(t)) {
|
|
401
|
-
const
|
|
402
|
-
return [P(
|
|
401
|
+
const u = n != null && n.cloneDiffValues ? O(e) : e, c = n != null && n.cloneDiffValues ? O(t) : t;
|
|
402
|
+
return [P(u), P(c)];
|
|
403
403
|
}
|
|
404
404
|
if (Array.isArray(e) && Array.isArray(t))
|
|
405
405
|
return lt(e, t, n);
|
|
406
|
-
if (
|
|
406
|
+
if (k(e) && k(t))
|
|
407
407
|
return dt(e, t, n);
|
|
408
|
-
const
|
|
409
|
-
return [P(
|
|
408
|
+
const a = n != null && n.cloneDiffValues ? O(e) : e, l = n != null && n.cloneDiffValues ? O(t) : t;
|
|
409
|
+
return [P(a), P(l)];
|
|
410
410
|
}
|
|
411
411
|
function ft(e, t, n) {
|
|
412
412
|
return J(e, t, n);
|
|
413
413
|
}
|
|
414
414
|
function mt(e, t, n) {
|
|
415
415
|
const o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
|
|
416
|
-
for (const
|
|
417
|
-
if (
|
|
418
|
-
const c = parseInt(
|
|
416
|
+
for (const u in t) {
|
|
417
|
+
if (u === "_t" || !u.startsWith("_")) continue;
|
|
418
|
+
const c = parseInt(u.slice(1)), i = t[u];
|
|
419
419
|
Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] === F && r.set(c, i[1]));
|
|
420
420
|
}
|
|
421
|
-
const
|
|
421
|
+
const a = [];
|
|
422
422
|
let l = 0;
|
|
423
|
-
for (let
|
|
424
|
-
const c =
|
|
423
|
+
for (let u = 0; ; u++) {
|
|
424
|
+
const c = u.toString(), i = t[c];
|
|
425
425
|
if (i !== void 0)
|
|
426
426
|
if (Array.isArray(i) && i.length === 1)
|
|
427
|
-
|
|
427
|
+
a.push(i[0]);
|
|
428
428
|
else {
|
|
429
429
|
for (; l < e.length && o.has(l); )
|
|
430
430
|
l++;
|
|
431
|
-
l < e.length && (
|
|
431
|
+
l < e.length && (a.push(Y(e[l], i)), l++);
|
|
432
432
|
}
|
|
433
433
|
else {
|
|
434
434
|
let f = !1;
|
|
435
435
|
for (const [h, m] of r.entries())
|
|
436
|
-
if (m ===
|
|
437
|
-
|
|
436
|
+
if (m === u) {
|
|
437
|
+
a.push(e[h]), f = !0;
|
|
438
438
|
break;
|
|
439
439
|
}
|
|
440
440
|
if (!f) {
|
|
441
441
|
for (; l < e.length && (o.has(l) || r.has(l)); )
|
|
442
442
|
l++;
|
|
443
443
|
if (l < e.length)
|
|
444
|
-
|
|
444
|
+
a.push(e[l]), l++;
|
|
445
445
|
else
|
|
446
446
|
break;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
return
|
|
450
|
+
return a;
|
|
451
451
|
}
|
|
452
452
|
function vt(e, t, n) {
|
|
453
453
|
const o = { ...e };
|
|
454
454
|
for (const r in t) {
|
|
455
|
-
const
|
|
456
|
-
Array.isArray(
|
|
455
|
+
const a = t[r];
|
|
456
|
+
Array.isArray(a) ? a.length === 1 ? o[r] = a[0] : a.length === 3 && a[2] === M ? delete o[r] : a.length === 2 && (o[r] = a[1]) : o[r] = Y(o[r], a);
|
|
457
457
|
}
|
|
458
458
|
return o;
|
|
459
459
|
}
|
|
@@ -467,7 +467,7 @@ function Y(e, t, n) {
|
|
|
467
467
|
if (t.length === 3 && t[2] === M)
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
return
|
|
470
|
+
return k(t) && t._t === "a" ? mt(e, t) : k(t) && k(e) ? vt(e, t) : e;
|
|
471
471
|
}
|
|
472
472
|
function le(e, t, n) {
|
|
473
473
|
return Y(e, t);
|
|
@@ -482,8 +482,8 @@ function yt(e) {
|
|
|
482
482
|
if (r.length === 3 && r[2] === M)
|
|
483
483
|
t[o] = [r[0]];
|
|
484
484
|
else if (r.length === 3 && r[2] === F) {
|
|
485
|
-
const
|
|
486
|
-
t[`_${
|
|
485
|
+
const a = r[1];
|
|
486
|
+
t[`_${a}`] = [r[0], o, F];
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
} else {
|
|
@@ -491,8 +491,8 @@ function yt(e) {
|
|
|
491
491
|
if (Array.isArray(r) && r.length === 1)
|
|
492
492
|
t[`_${o}`] = [r[0], M, M];
|
|
493
493
|
else {
|
|
494
|
-
const
|
|
495
|
-
|
|
494
|
+
const a = X(r);
|
|
495
|
+
a !== void 0 && (t[n] = a);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
return t;
|
|
@@ -522,7 +522,7 @@ function X(e) {
|
|
|
522
522
|
if (e.length === 3 && e[2] === F)
|
|
523
523
|
return e;
|
|
524
524
|
}
|
|
525
|
-
return
|
|
525
|
+
return k(e) && e._t === "a" ? yt(e) : k(e) ? ht(e) : e;
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
function de(e) {
|
|
@@ -566,14 +566,14 @@ function St({
|
|
|
566
566
|
includeValueOnMove: !1
|
|
567
567
|
},
|
|
568
568
|
cloneDiffValues: !1
|
|
569
|
-
}), n = j(null), o = j([]), r = z(-1),
|
|
569
|
+
}), n = j(null), o = j([]), r = z(-1), a = j(null), l = S(() => r.value > 0), u = S(() => r.value < o.value.length - 1);
|
|
570
570
|
function c(v) {
|
|
571
571
|
if (n.value === null) {
|
|
572
|
-
n.value = I(v),
|
|
572
|
+
n.value = I(v), a.value = I(v), o.value = [{ delta: null }], r.value = 0;
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
|
-
const p = t.diff(
|
|
576
|
-
if (r.value < o.value.length - 1 && (o.value = o.value.slice(0, r.value + 1)), o.value.push({ delta: p }), r.value++,
|
|
575
|
+
const p = t.diff(a.value, v);
|
|
576
|
+
if (r.value < o.value.length - 1 && (o.value = o.value.slice(0, r.value + 1)), o.value.push({ delta: p }), r.value++, a.value = I(v), o.value.length > e) {
|
|
577
577
|
const b = o.value[1].delta;
|
|
578
578
|
b && n.value && (n.value = t.patch(I(n.value), b)), o.value.shift(), r.value--;
|
|
579
579
|
}
|
|
@@ -592,23 +592,23 @@ function St({
|
|
|
592
592
|
if (l.value) {
|
|
593
593
|
r.value--;
|
|
594
594
|
const v = i(r.value);
|
|
595
|
-
return v && (
|
|
595
|
+
return v && (a.value = I(v)), v;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
function h() {
|
|
599
|
-
if (
|
|
599
|
+
if (u.value) {
|
|
600
600
|
r.value++;
|
|
601
601
|
const v = i(r.value);
|
|
602
|
-
return v && (
|
|
602
|
+
return v && (a.value = I(v)), v;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
function m() {
|
|
606
|
-
n.value = null,
|
|
606
|
+
n.value = null, a.value = null, o.value = [], r.value = -1;
|
|
607
607
|
}
|
|
608
608
|
return {
|
|
609
609
|
push: c,
|
|
610
610
|
canUndo: l,
|
|
611
|
-
canRedo:
|
|
611
|
+
canRedo: u,
|
|
612
612
|
undo: f,
|
|
613
613
|
redo: h,
|
|
614
614
|
clear: m
|
|
@@ -616,7 +616,7 @@ function St({
|
|
|
616
616
|
}
|
|
617
617
|
const bt = {
|
|
618
618
|
async updateMenuModule(e, t) {
|
|
619
|
-
const n =
|
|
619
|
+
const n = B.RequestRunner.operation(t, e.modules);
|
|
620
620
|
if (n.validateError.length > 0)
|
|
621
621
|
throw new Error(n.validateError.join(`
|
|
622
622
|
`));
|
|
@@ -671,11 +671,11 @@ const Pt = Ye(
|
|
|
671
671
|
selector: "position"
|
|
672
672
|
}) : []), r = S(() => {
|
|
673
673
|
var s;
|
|
674
|
-
return ((s = t.currentBusiness.value) == null ? void 0 : s.menuVersion) ||
|
|
675
|
-
}),
|
|
674
|
+
return ((s = t.currentBusiness.value) == null ? void 0 : s.menuVersion) || G.F_MENU_VERSION.v3;
|
|
675
|
+
}), a = S(() => r.value === G.F_MENU_VERSION.v4), l = S(() => {
|
|
676
676
|
const s = e.menu.modules.catalog;
|
|
677
677
|
return x(s, { selector: "name" });
|
|
678
|
-
}),
|
|
678
|
+
}), u = S(() => {
|
|
679
679
|
var d;
|
|
680
680
|
let s = e.menu.modules.catalog.find(
|
|
681
681
|
(y) => y._id === e.currentCatalogId
|
|
@@ -697,9 +697,9 @@ const Pt = Ye(
|
|
|
697
697
|
var y;
|
|
698
698
|
m.value = !0;
|
|
699
699
|
let s = e.menu.modules.catalog;
|
|
700
|
-
if (
|
|
700
|
+
if (u.value && ((y = u.value.linkItemRules) != null && y.length)) {
|
|
701
701
|
const g = T.populateCatalog({
|
|
702
|
-
catalog:
|
|
702
|
+
catalog: u.value,
|
|
703
703
|
ruleGroupSettings: e.menu.ruleGroupSettings,
|
|
704
704
|
items: e.menu.modules.item,
|
|
705
705
|
...e.currentRestaurantAttrParams ?? {}
|
|
@@ -728,9 +728,9 @@ const Pt = Ye(
|
|
|
728
728
|
return h.value = d, m.value = !1, v.value = v.value + 1, d;
|
|
729
729
|
}
|
|
730
730
|
const w = ie.debounce(p, 200);
|
|
731
|
-
let C = null,
|
|
731
|
+
let C = null, R = null;
|
|
732
732
|
function Q() {
|
|
733
|
-
|
|
733
|
+
R && (R(), R = null), C && C.stop(), C = Qe(!0), R = C.run(() => Ze(
|
|
734
734
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
735
735
|
() => {
|
|
736
736
|
m.value || w();
|
|
@@ -765,14 +765,14 @@ const Pt = Ye(
|
|
|
765
765
|
}), ee = S(() => {
|
|
766
766
|
var d;
|
|
767
767
|
let s = h.value.modules.item;
|
|
768
|
-
if (
|
|
769
|
-
const y = (d =
|
|
768
|
+
if (u.value) {
|
|
769
|
+
const y = (d = u.value) == null ? void 0 : d.override.items;
|
|
770
770
|
s = s.filter((g) => {
|
|
771
771
|
var A;
|
|
772
772
|
const _ = (A = y == null ? void 0 : y[g._id]) == null ? void 0 : A.find(
|
|
773
773
|
(E) => !E.combinationKey
|
|
774
774
|
);
|
|
775
|
-
return (_ == null ? void 0 : _.orderFrom) !==
|
|
775
|
+
return (_ == null ? void 0 : _.orderFrom) !== ae.F_ORDER_FROM.enum.NONE;
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
778
|
return V(s, (y) => y.code || y.name);
|
|
@@ -809,13 +809,13 @@ const Pt = Ye(
|
|
|
809
809
|
}
|
|
810
810
|
const _e = S(() => V(h.value.modules.group, (s) => s.name)), Se = S(() => x(h.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
|
|
811
811
|
selector: "name"
|
|
812
|
-
})), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(
|
|
812
|
+
})), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Ge(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
813
813
|
selector: "name"
|
|
814
814
|
})), Ae = S(() => e.menu.modules.cookingGuide), Ie = S(() => {
|
|
815
815
|
const s = Le(e.menu.modules.sku);
|
|
816
816
|
return x(s, { selector: "code" });
|
|
817
817
|
}), U = S(() => {
|
|
818
|
-
const s = !e.currentCatalogId, d = r.value ===
|
|
818
|
+
const s = !e.currentCatalogId, d = r.value === G.F_MENU_VERSION.v4, y = !e.currentSchedulerId, g = {
|
|
819
819
|
create: s && y,
|
|
820
820
|
edit: s && y,
|
|
821
821
|
delete: s && y
|
|
@@ -890,15 +890,15 @@ const Pt = Ye(
|
|
|
890
890
|
const [d, y] = s.split("/");
|
|
891
891
|
return { systemCode: d, taxCode: y };
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function Re(s, d, y) {
|
|
894
894
|
return (s ?? d ?? []).map((g) => W(g)).find((g) => y.some((_) => _.value === g));
|
|
895
895
|
}
|
|
896
|
-
const
|
|
896
|
+
const ke = S(() => {
|
|
897
897
|
var g;
|
|
898
|
-
const s = ["SV5", "SV10"], d =
|
|
898
|
+
const s = ["SV5", "SV10"], d = qe.Country.getCountryFlattenTaxes(
|
|
899
899
|
se().currentCountry.value
|
|
900
|
-
), y = d.filter((_) =>
|
|
901
|
-
label: `${_.name} (${
|
|
900
|
+
), y = d.filter((_) => a.value || !s.includes(_.taxCode)).map((_) => ({
|
|
901
|
+
label: `${_.name} (${Be(_.rate)}%)`,
|
|
902
902
|
value: W(_),
|
|
903
903
|
meta: {
|
|
904
904
|
rate: _.rate
|
|
@@ -936,7 +936,7 @@ const Pt = Ye(
|
|
|
936
936
|
}));
|
|
937
937
|
try {
|
|
938
938
|
if (d || g.some(
|
|
939
|
-
(A) => [
|
|
939
|
+
(A) => [B.F_OPERATION_TYPE.delete, B.F_OPERATION_TYPE.deleteMany].includes(A.operation)
|
|
940
940
|
)) {
|
|
941
941
|
const A = await ze(g, e.menu.modules);
|
|
942
942
|
if (A !== !0) throw new Error(A);
|
|
@@ -976,10 +976,10 @@ const Pt = Ye(
|
|
|
976
976
|
mergedMenu: h,
|
|
977
977
|
// Computed
|
|
978
978
|
version: r,
|
|
979
|
-
isV4:
|
|
979
|
+
isV4: a,
|
|
980
980
|
serveSequence: o,
|
|
981
981
|
catalogs: l,
|
|
982
|
-
currentCatalog:
|
|
982
|
+
currentCatalog: u,
|
|
983
983
|
schedulers: c,
|
|
984
984
|
currentScheduler: i,
|
|
985
985
|
catalogOptions: me,
|
|
@@ -998,7 +998,7 @@ const Pt = Ye(
|
|
|
998
998
|
cookingGuide: Ae,
|
|
999
999
|
skus: Ie,
|
|
1000
1000
|
rules: U,
|
|
1001
|
-
taxSetting:
|
|
1001
|
+
taxSetting: ke,
|
|
1002
1002
|
// Action
|
|
1003
1003
|
setMenu: f,
|
|
1004
1004
|
readMenu: Ee,
|
|
@@ -1013,7 +1013,7 @@ const Pt = Ye(
|
|
|
1013
1013
|
// helper
|
|
1014
1014
|
encodeTax: W,
|
|
1015
1015
|
decodeTax: Ce,
|
|
1016
|
-
getSelectedTax:
|
|
1016
|
+
getSelectedTax: Re,
|
|
1017
1017
|
mapVariant: ge,
|
|
1018
1018
|
// history
|
|
1019
1019
|
canUndoHistory: Ke,
|
|
@@ -1022,7 +1022,7 @@ const Pt = Ye(
|
|
|
1022
1022
|
redoHistory: je,
|
|
1023
1023
|
// cleanup
|
|
1024
1024
|
$dispose: () => {
|
|
1025
|
-
w.cancel(),
|
|
1025
|
+
w.cancel(), R && (R(), R = null), C && (C.stop(), C = null), Ne();
|
|
1026
1026
|
},
|
|
1027
1027
|
$reinitialize: () => {
|
|
1028
1028
|
Q();
|
|
@@ -1037,6 +1037,6 @@ export {
|
|
|
1037
1037
|
Kt as f,
|
|
1038
1038
|
Dt as g,
|
|
1039
1039
|
Ot as m,
|
|
1040
|
-
|
|
1040
|
+
at as o,
|
|
1041
1041
|
Pt as u
|
|
1042
1042
|
};
|