@feedmepos/mf-menu 0.31.25-prod → 0.31.26-beta
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-Dh1pqMOa.js → App-CmVRrtzl.js} +20 -20
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-fMSzWXLm.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CCEY8zww.js} +2 -2
- package/dist/{Catalog-Dz2FWCF9.js → Catalog-hfPWMIqJ.js} +5 -5
- package/dist/{Category-DZMZp5Nt.js → Category-MHj2SHDY.js} +4 -4
- package/dist/{Category-CePNCz6K.js → Category-RWgR5RPC.js} +5 -5
- package/dist/{CookingGuide-X620J8BM.js → CookingGuide-D2IbZIM2.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-KrGcIPtk.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-C3eUxz-L.js} +1 -1
- package/dist/{Group-BkX5h_LK.js → Group-4j_yrF1A.js} +3 -3
- package/dist/{Group--nU_rj9s.js → Group-C6dDhtam.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DK7DJi38.js → Group.vue_vue_type_script_setup_true_lang-D2b3lWnP.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B9M9SGm7.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DezcrneE.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CZDLJE-D.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CIOrpuZN.js} +10652 -10528
- package/dist/{Ingredient-DfhaZ-wr.js → Ingredient-BOM5f1Ro.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CiaFq05P.js → InventoryBinding.vue_vue_type_script_setup_true_lang-mnsufxZx.js} +2 -2
- package/dist/{LinkProductSideSheet-BKAP9Tyv.js → LinkProductSideSheet-CqRP7Dbg.js} +1 -1
- package/dist/{MenuSetting-DKLq8pGh.js → MenuSetting-BP_SRn7_.js} +4 -4
- package/dist/{PrintRoute-Cov4oghW.js → PrintRoute-Dx83MXq5.js} +3 -3
- package/dist/{Product-BgdoNBSK.js → Product-Dzj1sFSD.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-9E6_VC3G.js → Product.vue_vue_type_script_setup_true_lang-DiEDSXIy.js} +11 -11
- package/dist/{ProductInternalTools-C98zVdOZ.js → ProductInternalTools-mAsVWmtM.js} +6 -6
- package/dist/{Products-CLM1i5xG.js → Products-CS0DpqQ-.js} +10 -10
- package/dist/{Publish-5gruOuZx.js → Publish-BjHWdTkt.js} +3 -3
- package/dist/{Recipe-CYIpkOYQ.js → Recipe-B-wYnW0w.js} +4 -4
- package/dist/{Scheduler-Dq9MV_-G.js → Scheduler-DTvU9SnZ.js} +3 -3
- package/dist/{ServingSequence-CuCFy7F5.js → ServingSequence-DpNV6JL7.js} +3 -3
- package/dist/{Setting-MEmtR1ZU.js → Setting-DEMaXO6I.js} +4 -4
- package/dist/{Subcategory-DUoqN9M6.js → Subcategory-Bntu00RK.js} +4 -4
- package/dist/{Takeaway-CVmAgqzA.js → Takeaway-BHXbUNRi.js} +1 -1
- package/dist/{Takeaway-pFU8-TUG.js → Takeaway-DvdyfhDH.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cn9JgG5U.js → Takeaway.vue_vue_type_script_setup_true_lang-Dj6dHEU8.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B4DHOLSa.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-0wvmU7EA.js} +13 -13
- package/dist/{Unit-C6TibREI.js → Unit-BHzKfnRa.js} +2 -2
- package/dist/{Variant-Ck0YGXis.js → Variant-3eXw7Ofo.js} +3 -3
- package/dist/{_id_-B8kMmYWo.js → _id_-YzFBsmdR.js} +9 -9
- package/dist/{app-BJ1KW8tq.js → app-B8wzphuq.js} +1 -1
- package/dist/{app-BsOc-hDy.js → app-D-txe13V.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +3 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-QB7vUygN.js → linked-status-rZ725JW4.js} +2 -2
- package/dist/assets/{override-menu-jClpu51E.js → override-menu-C-WbLa1W.js} +2 -2
- package/dist/assets/{validate-menu-5nm88Xyf.js → validate-menu-CMtuHFoh.js} +2 -2
- package/dist/{catalog-DDK-30Sr.js → catalog-D6N_vbUK.js} +1 -1
- package/dist/{catalogSetting-Cb7F67Pn.js → catalogSetting-DQ7QXUPB.js} +1 -1
- package/dist/{category-CpktXRmc.js → category-DQcwwieP.js} +1 -1
- package/dist/{currency-CR_0D_Ja.js → currency-2OYgsGeg.js} +1 -1
- package/dist/{dayjs.min-CoJvRvbv.js → dayjs.min-Dfg_PyYQ.js} +1 -1
- package/dist/{index-1EJqSZcC.js → index-BgWYUt5I.js} +3 -3
- package/dist/{index-DKFy67sf.js → index-CtkGKZ0h.js} +2 -2
- package/dist/{index-7wYavAQg.js → index-D8z0V2Kl.js} +1 -1
- package/dist/{item-C3_VwZTx.js → item-Z3PUu2TZ.js} +661 -661
- package/dist/{jszip.min--pyepd6o.js → jszip.min-C7i1HiyO.js} +245 -245
- package/dist/{menu-BQktlR6E.js → menu-CqCxxWlg.js} +1 -1
- package/dist/{menu-sy0LPoiL.js → menu-nEyQb4Ot.js} +615 -622
- package/dist/{priceTier-D4VFUf2Y.js → priceTier-n1wcq86O.js} +1 -1
- package/dist/{scheduler-0-eB982B.js → scheduler-DIuOrYvo.js} +3 -3
- package/dist/{subcategory-DkgpE61N.js → subcategory-CrzQifWh.js} +48 -48
- package/dist/{toExcel-BfmkRGuA.js → toExcel-Di4CzDxu.js} +2 -2
- package/dist/{unit-B92p9AYV.js → unit-DyNWTc81.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
|
|
2
2
|
import { useI18n as m } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as k, D as M } from "./menu-
|
|
4
|
+
import { u as k, D as M } from "./menu-nEyQb4Ot.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as le, computed as Y, resolveComponent as v, createElementBlock as i, openBlock as u, createVNode as l, createCommentVNode as g, unref as a, toDisplayString as P, createElementVNode as y, withCtx as _, Fragment as D, renderList as A, createBlock as N, ref as T, Transition as ee, createTextVNode as se } from "vue";
|
|
2
|
-
import { H as b, G as d, u as ie, I as de, J as X } from "./menu-
|
|
2
|
+
import { H as b, G as d, u as ie, I as de, J as X } from "./menu-nEyQb4Ot.js";
|
|
3
3
|
import { useI18n as te } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as re } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as ce } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
6
|
import { _ as W } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
7
7
|
import { u as me } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as pe } from "./menu-
|
|
9
|
-
import { L as _e } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as pe } from "./menu-CqCxxWlg.js";
|
|
9
|
+
import { L as _e } from "./LinkProductSideSheet-CqRP7Dbg.js";
|
|
10
10
|
const ve = { class: "space-y-8" }, fe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
import { H as k, B as O, ak as
|
|
1
|
+
import { shallowRef as Q, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as H, defineComponent as Te, resolveComponent as z, createBlock as Ve, openBlock as Ne, unref as N, withCtx as Oe, createVNode as xe } from "vue";
|
|
2
|
+
import { H as k, B as O, ak as X, G as I, al as G, J as S, I as ee, aa as M, c as D, Y as E, aj as L, am as Pe, an as Ae, A as Ue, ac as Ke, ao as De, ap as $e, a9 as qe, u as He } from "./menu-nEyQb4Ot.js";
|
|
3
3
|
import { useCoreStore as J, useI18n as te } from "@feedmepos/mf-common";
|
|
4
|
-
import { useSnackbar as
|
|
5
|
-
import { defineStore as
|
|
6
|
-
const
|
|
4
|
+
import { useSnackbar as We, useDialogChild as Ye } from "@feedmepos/ui-library";
|
|
5
|
+
import { defineStore as Be } from "pinia";
|
|
6
|
+
const je = "/assets/linked-status-rZ725JW4.js", ze = "/assets/override-menu-C-WbLa1W.js";
|
|
7
7
|
function Ge(e) {
|
|
8
8
|
var o;
|
|
9
9
|
const n = k(e), a = (o = n.variant) == null ? void 0 : o.variantCombinations;
|
|
@@ -101,7 +101,7 @@ function Je(e, n) {
|
|
|
101
101
|
};
|
|
102
102
|
return [...o, r];
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function W(e, n) {
|
|
105
105
|
var o;
|
|
106
106
|
if (!n)
|
|
107
107
|
return e;
|
|
@@ -114,11 +114,11 @@ function Y(e, n) {
|
|
|
114
114
|
const u = (s = f == null ? void 0 : f.items) == null ? void 0 : s.find(
|
|
115
115
|
(p) => p._id === d._id && p.combinationKey === d.combinationKey
|
|
116
116
|
);
|
|
117
|
-
return
|
|
117
|
+
return W(d, u);
|
|
118
118
|
}), r;
|
|
119
119
|
}), a;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Ze(e, n) {
|
|
122
122
|
const a = e.items[n._id];
|
|
123
123
|
n.variant && (n.variant = {
|
|
124
124
|
...n.variant,
|
|
@@ -128,7 +128,7 @@ function Qe(e, n) {
|
|
|
128
128
|
);
|
|
129
129
|
if (!f)
|
|
130
130
|
throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
|
|
131
|
-
return
|
|
131
|
+
return W(f, r);
|
|
132
132
|
})
|
|
133
133
|
});
|
|
134
134
|
const o = a.find((r) => !r.combinationKey);
|
|
@@ -142,7 +142,7 @@ function Qe(e, n) {
|
|
|
142
142
|
const d = (u = f == null ? void 0 : f.items) == null ? void 0 : u.find(
|
|
143
143
|
(s) => s._id === i._id && s.combinationKey === i.combinationKey
|
|
144
144
|
);
|
|
145
|
-
return
|
|
145
|
+
return W(i, d);
|
|
146
146
|
}), r;
|
|
147
147
|
}), {
|
|
148
148
|
...n,
|
|
@@ -162,7 +162,7 @@ async function dt(e, n, a, o, r, f = !0) {
|
|
|
162
162
|
return n.map((p) => {
|
|
163
163
|
const g = p._id, y = d[g];
|
|
164
164
|
return {
|
|
165
|
-
...
|
|
165
|
+
...Ze(s, y),
|
|
166
166
|
category: o || r ? y == null ? void 0 : y.category : null
|
|
167
167
|
};
|
|
168
168
|
});
|
|
@@ -185,8 +185,8 @@ async function ft(e, n) {
|
|
|
185
185
|
const a = `${e._id}-${e.updatedAt}-${n}`;
|
|
186
186
|
if ($.has(a))
|
|
187
187
|
return $.get(a);
|
|
188
|
-
const o = await
|
|
189
|
-
|
|
188
|
+
const o = await X(
|
|
189
|
+
je,
|
|
190
190
|
JSON.stringify({
|
|
191
191
|
menu: e,
|
|
192
192
|
itemId: n
|
|
@@ -195,7 +195,7 @@ async function ft(e, n) {
|
|
|
195
195
|
return $.set(a, o), o;
|
|
196
196
|
}
|
|
197
197
|
async function ne(e, n, a) {
|
|
198
|
-
return await
|
|
198
|
+
return await X(ze, {
|
|
199
199
|
menu: e,
|
|
200
200
|
catalogId: n,
|
|
201
201
|
schedulerId: a
|
|
@@ -232,7 +232,7 @@ function _t(e, n, a) {
|
|
|
232
232
|
return r(n, a);
|
|
233
233
|
}
|
|
234
234
|
const q = /* @__PURE__ */ new Map();
|
|
235
|
-
async function
|
|
235
|
+
async function Qe(e, n, a) {
|
|
236
236
|
const o = `${e._id}-${e.updatedAt}-${n || "null"}-${a || "null"}`;
|
|
237
237
|
if (q.has(o))
|
|
238
238
|
return q.get(o);
|
|
@@ -241,7 +241,7 @@ async function Xe(e, n, a) {
|
|
|
241
241
|
}
|
|
242
242
|
async function gt(e, n, a) {
|
|
243
243
|
var l, i;
|
|
244
|
-
const o = await
|
|
244
|
+
const o = await Qe(e, n, null), r = [], f = (d, u) => {
|
|
245
245
|
const s = k(d);
|
|
246
246
|
for (const p in u)
|
|
247
247
|
u[p] && (s[p] = u[p]);
|
|
@@ -265,10 +265,10 @@ async function gt(e, n, a) {
|
|
|
265
265
|
}
|
|
266
266
|
return r;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Xe({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
|
-
const n =
|
|
271
|
+
const n = Q([]), a = T(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
|
|
272
272
|
function f(u) {
|
|
273
273
|
n.value.push(u), a.value++, n.value.length > e && (n.value.shift(), a.value--);
|
|
274
274
|
}
|
|
@@ -338,10 +338,10 @@ function tt() {
|
|
|
338
338
|
currentSchedulerId: ""
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
const nt =
|
|
341
|
+
const nt = Be(
|
|
342
342
|
"mf-menu-store-v2",
|
|
343
343
|
() => {
|
|
344
|
-
const e = Fe(tt()), n = J(), a =
|
|
344
|
+
const e = Fe(tt()), n = J(), a = We(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
|
|
345
345
|
selector: "position"
|
|
346
346
|
}) : []), r = h(() => {
|
|
347
347
|
var t;
|
|
@@ -353,9 +353,9 @@ const nt = je(
|
|
|
353
353
|
(t) => t._id === e.currentSchedulerId
|
|
354
354
|
));
|
|
355
355
|
function s(t, c = !0) {
|
|
356
|
-
e.menu = { ...t, _rev: e.menu._rev }, c &&
|
|
356
|
+
e.menu = { ...t, _rev: e.menu._rev }, c && w.push(e.menu);
|
|
357
357
|
}
|
|
358
|
-
const p =
|
|
358
|
+
const p = Q(oe()), g = T(!1), y = T(1);
|
|
359
359
|
async function b() {
|
|
360
360
|
g.value = !0;
|
|
361
361
|
const t = await ne(
|
|
@@ -391,7 +391,7 @@ const nt = je(
|
|
|
391
391
|
label: t.name,
|
|
392
392
|
value: t._id
|
|
393
393
|
}))
|
|
394
|
-
]),
|
|
394
|
+
]), Y = h(() => {
|
|
395
395
|
const t = p.value.modules.category;
|
|
396
396
|
return [
|
|
397
397
|
...U.value.item.addon ? [
|
|
@@ -401,12 +401,12 @@ const nt = je(
|
|
|
401
401
|
position: 0
|
|
402
402
|
}
|
|
403
403
|
] : [],
|
|
404
|
-
...
|
|
404
|
+
...E(t, (c) => c.name)
|
|
405
405
|
];
|
|
406
406
|
}), re = h(() => {
|
|
407
407
|
const t = p.value.modules.subCategory || [];
|
|
408
|
-
return
|
|
409
|
-
}),
|
|
408
|
+
return E(t, (c) => c.name);
|
|
409
|
+
}), B = h(() => {
|
|
410
410
|
var c;
|
|
411
411
|
let t = p.value.modules.item;
|
|
412
412
|
if (i.value) {
|
|
@@ -419,17 +419,17 @@ const nt = je(
|
|
|
419
419
|
return (_ == null ? void 0 : _.orderFrom) !== I.F_ORDER_FROM.enum.NONE;
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
|
-
return
|
|
422
|
+
return E(t, (m) => m.code || m.name);
|
|
423
423
|
}), ae = h(() => {
|
|
424
|
-
const t = e.menu.modules.category, c =
|
|
424
|
+
const t = e.menu.modules.category, c = E(t, (v) => v.name).reduce(
|
|
425
425
|
(v, _, C) => (v[_._id] = C, v),
|
|
426
426
|
{ "": 0 }
|
|
427
427
|
), m = e.menu.modules.item;
|
|
428
|
-
return
|
|
428
|
+
return E(
|
|
429
429
|
m,
|
|
430
430
|
(v) => v.code || v.name
|
|
431
431
|
).reduce((v, _, C) => (v[_._id] = C + c[_.category || ""], v), {});
|
|
432
|
-
}), se = h(() => L(A.value,
|
|
432
|
+
}), se = h(() => L(A.value, Y.value, B.value)), ue = h(() => {
|
|
433
433
|
const t = U.value.item.addon ? [
|
|
434
434
|
{
|
|
435
435
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -451,7 +451,7 @@ const nt = je(
|
|
|
451
451
|
const c = t.map((v) => A.value.find((_) => _._id === v)).filter((v) => !!v);
|
|
452
452
|
return O.fullVariantCombination(c).reduce((v, _) => (v[_.combinationKey] = _.selectionName.join(" / "), v), {});
|
|
453
453
|
}
|
|
454
|
-
const ce = h(() =>
|
|
454
|
+
const ce = h(() => E(p.value.modules.group, (t) => t.name)), le = h(() => M(p.value.modules.takeaway, { selector: "name" })), de = h(() => M(e.menu.modules.printDepartment || [], {
|
|
455
455
|
selector: "name"
|
|
456
456
|
})), me = h(() => M(e.menu.modules.unit, { selector: "name" })), fe = h(() => M(Pe(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
457
457
|
selector: "name"
|
|
@@ -554,11 +554,11 @@ const nt = je(
|
|
|
554
554
|
};
|
|
555
555
|
}), he = async () => {
|
|
556
556
|
const t = await qe.readMenu();
|
|
557
|
-
e.menu = t ?? e.menu,
|
|
557
|
+
e.menu = t ?? e.menu, j(null);
|
|
558
558
|
}, be = async () => {
|
|
559
559
|
const { fetchAllRestaurants: t } = $e(), c = await t();
|
|
560
560
|
e.restaurants = M(c, { selector: "name" });
|
|
561
|
-
},
|
|
561
|
+
}, j = (t) => {
|
|
562
562
|
e.currentCatalogId = t;
|
|
563
563
|
}, Ce = (t) => {
|
|
564
564
|
e.currentSchedulerId = t;
|
|
@@ -588,7 +588,7 @@ const nt = je(
|
|
|
588
588
|
message: _
|
|
589
589
|
});
|
|
590
590
|
}
|
|
591
|
-
},
|
|
591
|
+
}, we = async (t) => {
|
|
592
592
|
const c = {
|
|
593
593
|
...e.menu,
|
|
594
594
|
masterCatalogSetting: t.masterCatalogSetting,
|
|
@@ -596,7 +596,7 @@ const nt = je(
|
|
|
596
596
|
priceTierSettings: t.priceTierSettings
|
|
597
597
|
};
|
|
598
598
|
return s(c), c;
|
|
599
|
-
},
|
|
599
|
+
}, w = Xe({ maxHistorySize: 50 }), Ee = h(() => w.canUndo.value), Ie = h(() => w.canRedo.value);
|
|
600
600
|
return {
|
|
601
601
|
state: e,
|
|
602
602
|
// loading state
|
|
@@ -613,9 +613,9 @@ const nt = je(
|
|
|
613
613
|
schedulers: d,
|
|
614
614
|
currentScheduler: u,
|
|
615
615
|
catalogOptions: P,
|
|
616
|
-
categories:
|
|
616
|
+
categories: Y,
|
|
617
617
|
subcategories: re,
|
|
618
|
-
items:
|
|
618
|
+
items: B,
|
|
619
619
|
sortedItems: ae,
|
|
620
620
|
categorizedItems: se,
|
|
621
621
|
categorizedRawMenuItems: ue,
|
|
@@ -633,11 +633,11 @@ const nt = je(
|
|
|
633
633
|
setMenu: s,
|
|
634
634
|
readMenu: he,
|
|
635
635
|
readRestaurants: be,
|
|
636
|
-
selectCatalog:
|
|
636
|
+
selectCatalog: j,
|
|
637
637
|
selectScheduler: Ce,
|
|
638
638
|
selectCategory: Me,
|
|
639
639
|
updateMenu: Se,
|
|
640
|
-
updateMenuSetting:
|
|
640
|
+
updateMenuSetting: we,
|
|
641
641
|
computeMergedMenu: b,
|
|
642
642
|
// helper
|
|
643
643
|
encodeTax: K,
|
|
@@ -645,22 +645,22 @@ const nt = je(
|
|
|
645
645
|
getSelectedTax: ve,
|
|
646
646
|
mapVariant: ie,
|
|
647
647
|
// history
|
|
648
|
-
canUndoHistory:
|
|
648
|
+
canUndoHistory: Ee,
|
|
649
649
|
canRedoHistory: Ie,
|
|
650
650
|
undoHistory: () => {
|
|
651
|
-
const t =
|
|
651
|
+
const t = w.undo();
|
|
652
652
|
t && s(t, !1);
|
|
653
653
|
},
|
|
654
654
|
redoHistory: () => {
|
|
655
|
-
const t =
|
|
655
|
+
const t = w.redo();
|
|
656
656
|
t && s(t, !1);
|
|
657
657
|
},
|
|
658
658
|
clearHistory: () => {
|
|
659
|
-
|
|
659
|
+
w.clear();
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
),
|
|
663
|
+
), Z = /* @__PURE__ */ Te({
|
|
664
664
|
__name: "AddSubcategoryDialogContentComponent",
|
|
665
665
|
props: {
|
|
666
666
|
initialValue: {}
|
|
@@ -673,7 +673,7 @@ const nt = je(
|
|
|
673
673
|
o.value = l ?? "";
|
|
674
674
|
}
|
|
675
675
|
);
|
|
676
|
-
const o = T(n.initialValue), { emitData: r, emitAction: f } =
|
|
676
|
+
const o = T(n.initialValue), { emitData: r, emitAction: f } = Ye();
|
|
677
677
|
return H(
|
|
678
678
|
o,
|
|
679
679
|
(l) => {
|
|
@@ -711,7 +711,7 @@ const nt = je(
|
|
|
711
711
|
const u = T(!1);
|
|
712
712
|
e.open({
|
|
713
713
|
title: o("menu.subcategory.manager.dialog.add.title"),
|
|
714
|
-
contentComponent:
|
|
714
|
+
contentComponent: Z,
|
|
715
715
|
primaryActions: {
|
|
716
716
|
text: o("menu.subcategory.manager.dialog.add.action"),
|
|
717
717
|
close: !1,
|
|
@@ -742,7 +742,7 @@ const nt = je(
|
|
|
742
742
|
function l(u) {
|
|
743
743
|
e.open({
|
|
744
744
|
title: o("menu.subcategory.manager.dialog.update.title"),
|
|
745
|
-
contentComponent:
|
|
745
|
+
contentComponent: Z,
|
|
746
746
|
contentComponentProps: {
|
|
747
747
|
initialValue: u.name
|
|
748
748
|
},
|
|
@@ -808,6 +808,6 @@ export {
|
|
|
808
808
|
gt as f,
|
|
809
809
|
mt as g,
|
|
810
810
|
dt as m,
|
|
811
|
-
|
|
811
|
+
Qe as o,
|
|
812
812
|
nt as u
|
|
813
813
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CIOrpuZN.js";
|
|
2
|
+
import "./menu-nEyQb4Ot.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as J } from "pinia";
|
|
2
2
|
import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-
|
|
3
|
+
import { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-nEyQb4Ot.js";
|
|
4
4
|
import { useI18n as L } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as se } from "./discardConfirm-BHni0LNu.js";
|