@feedmepos/mf-menu 0.32.76 → 0.32.78
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-D2pK798q.js → App-DPCHWImL.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CHoFzx9k.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C4iacJky.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-DKmzpuS7.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-BWoRN4s5.js} +3 -3
- package/dist/{Catalog-Da2qmeW2.js → Catalog-CBYCvZ4i.js} +6 -6
- package/dist/{Category-BXYjH0dH.js → Category-CbNtnuBB.js} +4 -4
- package/dist/{Category-QRUzSOLZ.js → Category-Dpc6jnS1.js} +14 -14
- package/dist/{CookingGuide-CPI7qV9Z.js → CookingGuide-B848njOa.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-D-lfN4Xw.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CkNSC4k9.js} +1 -1
- package/dist/{Group-C4_-7vPz.js → Group-WQdbziVl.js} +1 -1
- package/dist/{Group-C3bKVuCF.js → Group-yhtx74q4.js} +8 -8
- package/dist/Group.vue_vue_type_script_setup_true_lang-Q0Z5rAEg.js +627 -0
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DmZV1yCe.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-R2zzBkf0.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CmbxGud_.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-_R7RQdJk.js} +2672 -2665
- package/dist/{Ingredient-q8zKgNTY.js → Ingredient-C5i01EIS.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CKaRVmyj.js → InventoryBinding.vue_vue_type_script_setup_true_lang-OpRB3dyV.js} +2 -2
- package/dist/{LinkProductSideSheet-h94g93ZW.js → LinkProductSideSheet-Dt78f3fG.js} +4 -4
- package/dist/{MenuSetting-Juhf48gV.js → MenuSetting-LhwHiH3C.js} +7 -7
- package/dist/{OrderPacing-_4_iXa6e.js → OrderPacing-DXj4J7Sp.js} +5 -5
- package/dist/{PrintRoute-BujMv7Zl.js → PrintRoute-DZQYeMsQ.js} +5 -5
- package/dist/{Product-DnByb90X.js → Product--7aX0fcK.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BDL64d7Q.js → Product.vue_vue_type_script_setup_true_lang-BSsS2dqJ.js} +14 -14
- package/dist/{ProductInternalTools-LMHxDc6R.js → ProductInternalTools-C4_r1tAz.js} +7 -7
- package/dist/{Products-qkRrsj1W.js → Products-CmtzWP4r.js} +40 -40
- package/dist/{Publish-aa8PbFqn.js → Publish-Bquodjpf.js} +4 -4
- package/dist/{Recipe-C5mMNuY_.js → Recipe-DanBt83W.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DfcX0gDQ.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-Ck5gHsEQ.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DJBV2o8C.js → RuleView.vue_vue_type_script_setup_true_lang-xuzVQmfE.js} +791 -791
- package/dist/{Scheduler-Bp05_Qv6.js → Scheduler-CNQbEpCH.js} +3 -3
- package/dist/{ServingSequence-Cs-ST8Oc.js → ServingSequence-BpLukp5s.js} +3 -3
- package/dist/{Setting-BnIq46pa.js → Setting-CqtVbgEX.js} +5 -5
- package/dist/{Subcategory-BAgZ5vsm.js → Subcategory-D05nSckm.js} +6 -6
- package/dist/{Takeaway-DUd0KVAX.js → Takeaway-BojkiMWZ.js} +1 -1
- package/dist/{Takeaway-BIMtyXGB.js → Takeaway-o938dKSs.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Ch-0hq7k.js → Takeaway.vue_vue_type_script_setup_true_lang-CyItVmUO.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BfqnNbPl.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-BrLUgeet.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CbYBwX8e.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BlgJ9HSX.js} +2 -2
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dl7sYg0Q.js +5971 -0
- package/dist/{Unit-CLG2PrgL.js → Unit-BO34czMi.js} +2 -2
- package/dist/{Variant-Cy0JvleU.js → Variant-9hYjzP27.js} +3 -3
- package/dist/{_id_-jplkA1eL.js → _id_-C9EPUJMN.js} +10 -10
- package/dist/{app-J9vFNODI.js → app-BJeTqtv9.js} +331 -331
- package/dist/{app-30Z6mZbq.js → app-Br1rwkSn.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +50 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/BaseForm.vue.d.ts +5 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/BaseForm.vue.d.ts +5 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +9 -0
- package/dist/apps/mf-menu/src/composable/groupHidden.d.ts +26 -0
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +47 -13
- package/dist/apps/mf-menu/src/manager/menu/group.d.ts +12 -3
- package/dist/apps/mf-menu/src/manager/menu/groupExtraction.d.ts +17 -1
- package/dist/apps/mf-menu/src/manager/menu/groupImmutableFields.d.ts +2 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-BffktJ2X.js → linked-status-DeOWgUtC.js} +4 -4
- package/dist/assets/{menu-export-cv_rQBxw.js → menu-export-C4lP1SAy.js} +3 -3
- package/dist/assets/{override-menu-BxfuFlXS.js → override-menu-D_fBjnbT.js} +4 -4
- package/dist/assets/{validate-menu-CBVSVrx9.js → validate-menu-Cyw7mq4e.js} +3 -3
- package/dist/catalog-xBfYjm-n.js +235 -0
- package/dist/{catalogSetting-DR6N1dMx.js → catalogSetting-CuHh62ii.js} +1 -1
- package/dist/{currency-TzQJueZa.js → currency-CSYrHGCM.js} +1 -1
- package/dist/{dayjs.min-CqRhbatW.js → dayjs.min-DMxeixDE.js} +2 -2
- package/dist/{discardConfirm-JZF5xM6V.js → discardConfirm-DEE_kXqK.js} +1 -1
- package/dist/{index-BlsVC9Ep.js → index-CFAe9jDS.js} +71 -57
- package/dist/{index-CUViEtmn.js → index-CgR6vyM1.js} +5 -5
- package/dist/{index-DAkwVhKq.js → index-nDpqIsxv.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-CEZndQrA.js → index.vue_vue_type_script_setup_true_lang-CDnlHcKS.js} +7 -7
- package/dist/{item-CqPMNjVQ.js → item-Cg4hkIm0.js} +4670 -4549
- package/dist/{jszip.min-BAB8KFbL.js → jszip.min-BGGp26Zm.js} +167 -167
- package/dist/{linkProducts-CMKCTrne.js → linkProducts-rOzmlZmQ.js} +4 -4
- package/dist/{memberPricing-Bv62STuu.js → memberPricing-BVC55wej.js} +1 -1
- package/dist/{menu-wjZ0VHbh.js → menu-sD696lXn.js} +1 -1
- package/dist/{menuV2-CwtrrHxb.js → menuV2-Cf41MUAw.js} +28 -28
- package/dist/{order_pacing-3Un89bxb.js → order_pacing-D-VDq_AN.js} +5 -5
- package/dist/{priceTier-CRHLKied.js → priceTier-Dajfy9ll.js} +1 -1
- package/dist/{rules-B_ftcBV6.js → rules-BTp32qER.js} +3 -3
- package/dist/{scheduler-DYeWfbj0.js → scheduler-Ct06dHRB.js} +5 -5
- package/dist/{toExcel-JddNv1bE.js → toExcel-BOsLuO7C.js} +2 -2
- package/dist/{unit-Y0iUG9B2.js → unit-D-Sppjh0.js} +3 -3
- package/package.json +2 -2
- package/dist/Group.vue_vue_type_script_setup_true_lang-CltccIA5.js +0 -622
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DzeQ5yJ6.js +0 -5865
- package/dist/catalog-Q6KsvtTp.js +0 -199
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { u as p, F as m, k as c, g, h, U as v } from "./index.vue_vue_type_script_setup_true_lang-CDnlHcKS.js";
|
|
2
|
+
import "@feedmepos/ui-library";
|
|
3
|
+
function E(s) {
|
|
4
|
+
const t = Object.values(s.items).reduce((e, a) => (e.push({
|
|
5
|
+
_id: a._id,
|
|
6
|
+
isDefault: a.isDefault,
|
|
7
|
+
name: a.name,
|
|
8
|
+
name_locale: a.name_locale,
|
|
9
|
+
price: a.price,
|
|
10
|
+
price_variant: a.price_variant,
|
|
11
|
+
priceTiers: a.priceTiers,
|
|
12
|
+
priceTiers_variant: a.priceTiers_variant,
|
|
13
|
+
orderFrom: a.orderFrom,
|
|
14
|
+
selection: a.selection,
|
|
15
|
+
inventoryBindings: a.inventoryBindings,
|
|
16
|
+
isDynamicAddon: a.isDynamicAddon,
|
|
17
|
+
// nested addon group overrides configured on this addon
|
|
18
|
+
groups: a.groups
|
|
19
|
+
}), e = e.concat((a == null ? void 0 : a.items) || []), e), []);
|
|
20
|
+
return {
|
|
21
|
+
...s,
|
|
22
|
+
items: t
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function _(s) {
|
|
26
|
+
const t = {};
|
|
27
|
+
return s.min !== void 0 && s.min !== null && (t.min = s.min), s.max !== void 0 && s.max !== null && (t.max = s.max), t;
|
|
28
|
+
}
|
|
29
|
+
function F(s, t) {
|
|
30
|
+
if (!t) return s;
|
|
31
|
+
const e = { ...s };
|
|
32
|
+
return e.min === t.min && delete e.min, e.max === t.max && delete e.max, e;
|
|
33
|
+
}
|
|
34
|
+
class u {
|
|
35
|
+
constructor(t, e, a, r) {
|
|
36
|
+
this.catalog = t, this.menuStore = e, this.updateMenu = a, this.dialog = r;
|
|
37
|
+
}
|
|
38
|
+
static getItemAvailable(t) {
|
|
39
|
+
return Object.entries(t.override.items).filter(([, e]) => {
|
|
40
|
+
const a = e.find(
|
|
41
|
+
(n) => !n.combinationKey
|
|
42
|
+
), r = p().version === m.enum.v4;
|
|
43
|
+
return (a == null ? void 0 : a.orderFrom) !== c.enum.NONE && (r || (a == null ? void 0 : a.category) !== "");
|
|
44
|
+
}).map(([e]) => e);
|
|
45
|
+
}
|
|
46
|
+
static getSellingItem(t, e) {
|
|
47
|
+
return u.getItemAvailable(t).filter(
|
|
48
|
+
(a) => {
|
|
49
|
+
var r;
|
|
50
|
+
return !!((r = e.get(a)) != null && r.category);
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
// createCatalog() {
|
|
55
|
+
// this.promptCatalogDialog(undefined, this.create.bind(this));
|
|
56
|
+
// }
|
|
57
|
+
//
|
|
58
|
+
// duplicateCatalog() {
|
|
59
|
+
// if (!this.catalog) return;
|
|
60
|
+
// this.promptCatalogDialog(
|
|
61
|
+
// {
|
|
62
|
+
// ...this.catalog,
|
|
63
|
+
// name: `${this.catalog.name} clone`,
|
|
64
|
+
// },
|
|
65
|
+
// this.create.bind(this),
|
|
66
|
+
// );
|
|
67
|
+
// }
|
|
68
|
+
getCatalog() {
|
|
69
|
+
return this.catalog;
|
|
70
|
+
}
|
|
71
|
+
async update() {
|
|
72
|
+
this.catalog && await this.updateMenu(
|
|
73
|
+
{
|
|
74
|
+
module: h.enum.catalog,
|
|
75
|
+
operation: g.F_OPERATION_TYPE.update,
|
|
76
|
+
data: this.catalog
|
|
77
|
+
},
|
|
78
|
+
this.catalog.name
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
getCatalogGroup(t) {
|
|
82
|
+
var e;
|
|
83
|
+
return this.catalog ? ((e = this.catalog) == null ? void 0 : e.override.groups[t]) ?? { _id: t, groupKey: "" } : null;
|
|
84
|
+
}
|
|
85
|
+
getCatalogSchedulerGroup(t, e) {
|
|
86
|
+
var a, r, n;
|
|
87
|
+
return this.catalog ? ((n = (r = (a = this.catalog) == null ? void 0 : a.override.scheduler[e]) == null ? void 0 : r.groups) == null ? void 0 : n.find((o) => o._id === t)) ?? {
|
|
88
|
+
_id: t,
|
|
89
|
+
groupKey: ""
|
|
90
|
+
} : null;
|
|
91
|
+
}
|
|
92
|
+
overrideCatalogGroups(t) {
|
|
93
|
+
if (!this.catalog) return null;
|
|
94
|
+
const e = {
|
|
95
|
+
...this.catalog.override.groups,
|
|
96
|
+
...t.reduce((a, r) => (a[r._id] = {
|
|
97
|
+
_id: r._id,
|
|
98
|
+
groupKey: "",
|
|
99
|
+
items: r.items,
|
|
100
|
+
..._(r)
|
|
101
|
+
}, a), {})
|
|
102
|
+
};
|
|
103
|
+
this.catalog = {
|
|
104
|
+
...this.catalog,
|
|
105
|
+
override: { ...this.catalog.override, groups: e }
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
overrideCatalogSchedulerGroups(t, e) {
|
|
109
|
+
var o;
|
|
110
|
+
if (!this.catalog) return null;
|
|
111
|
+
const a = ((o = this.catalog.override.scheduler[e]) == null ? void 0 : o.groups) ?? [], r = t.map((i) => i._id), n = [
|
|
112
|
+
...a.filter((i) => !r.includes(i._id)),
|
|
113
|
+
...t.map((i) => ({
|
|
114
|
+
_id: i._id,
|
|
115
|
+
groupKey: "",
|
|
116
|
+
items: i.items,
|
|
117
|
+
..._(i)
|
|
118
|
+
}))
|
|
119
|
+
];
|
|
120
|
+
this.catalog = {
|
|
121
|
+
...this.catalog,
|
|
122
|
+
override: {
|
|
123
|
+
...this.catalog.override,
|
|
124
|
+
scheduler: {
|
|
125
|
+
...this.catalog.override.scheduler,
|
|
126
|
+
[e]: {
|
|
127
|
+
...this.catalog.override.scheduler[e],
|
|
128
|
+
_id: e,
|
|
129
|
+
groups: n
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
getCatalogScheduler(t) {
|
|
136
|
+
return this.catalog ? this.catalog.override.scheduler[t] ?? { _id: t } : null;
|
|
137
|
+
}
|
|
138
|
+
overrideCatalogScheduler(t) {
|
|
139
|
+
if (!this.catalog) return null;
|
|
140
|
+
this.catalog = {
|
|
141
|
+
...this.catalog,
|
|
142
|
+
override: {
|
|
143
|
+
...this.catalog.override,
|
|
144
|
+
scheduler: {
|
|
145
|
+
...this.catalog.override.scheduler,
|
|
146
|
+
[t._id]: t
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
overrideCatalogSchedulerItems(t, e) {
|
|
152
|
+
if (!this.catalog) return null;
|
|
153
|
+
const a = this.getCatalogScheduler(e);
|
|
154
|
+
if (!a) return;
|
|
155
|
+
const r = t.reduce((o, i) => {
|
|
156
|
+
var d;
|
|
157
|
+
const f = ((d = a.items) == null ? void 0 : d.filter((l) => l._id == i)) ?? [];
|
|
158
|
+
return o = o.concat(
|
|
159
|
+
v(i, f, (l) => ({
|
|
160
|
+
...l,
|
|
161
|
+
orderFrom: null
|
|
162
|
+
}))
|
|
163
|
+
), o;
|
|
164
|
+
}, []), n = {
|
|
165
|
+
...a,
|
|
166
|
+
items: r
|
|
167
|
+
};
|
|
168
|
+
this.overrideCatalogScheduler(n);
|
|
169
|
+
}
|
|
170
|
+
injectCatalogToMenu() {
|
|
171
|
+
const t = this.catalog;
|
|
172
|
+
if (!t) return null;
|
|
173
|
+
const e = this.menuStore.state.menu, a = e.modules.catalog.map((r) => r._id === t._id ? t : r);
|
|
174
|
+
return {
|
|
175
|
+
...e,
|
|
176
|
+
modules: {
|
|
177
|
+
...e.modules,
|
|
178
|
+
catalog: a
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
async unlinkProduct(t) {
|
|
183
|
+
this.catalog && (this.updateItemAvailable(
|
|
184
|
+
u.getItemAvailable(this.catalog).filter((e) => !t.includes(e))
|
|
185
|
+
), await this.update());
|
|
186
|
+
}
|
|
187
|
+
async create(t) {
|
|
188
|
+
await this.updateMenu(
|
|
189
|
+
{
|
|
190
|
+
module: h.enum.catalog,
|
|
191
|
+
operation: g.F_OPERATION_TYPE.create,
|
|
192
|
+
data: t
|
|
193
|
+
},
|
|
194
|
+
t.name
|
|
195
|
+
);
|
|
196
|
+
const e = this.menuStore.state.menu.modules.catalog, a = e[e.length - 1]._id;
|
|
197
|
+
this.menuStore.selectCatalog(a);
|
|
198
|
+
}
|
|
199
|
+
updateItemAvailable(t) {
|
|
200
|
+
const e = this.catalog;
|
|
201
|
+
if (!e) return null;
|
|
202
|
+
const r = this.menuStore.state.menu.modules.item.map((n) => n._id).reduce((n, o) => {
|
|
203
|
+
const i = e.override.items[o];
|
|
204
|
+
return n[o] = y(
|
|
205
|
+
o,
|
|
206
|
+
i,
|
|
207
|
+
t.includes(o),
|
|
208
|
+
this.menuStore.version === m.enum.v3
|
|
209
|
+
), n;
|
|
210
|
+
}, {});
|
|
211
|
+
this.catalog = {
|
|
212
|
+
...e,
|
|
213
|
+
override: { ...e.override, items: r }
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function y(s, t, e, a) {
|
|
218
|
+
const r = t == null ? void 0 : t.find((i) => !i.combinationKey), n = e ? (r == null ? void 0 : r.orderFrom) !== c.enum.NONE ? r == null ? void 0 : r.orderFrom : null : c.enum.NONE, o = a ? e ? null : "" : r == null ? void 0 : r.category;
|
|
219
|
+
return [
|
|
220
|
+
{
|
|
221
|
+
...r ?? {},
|
|
222
|
+
orderFrom: n,
|
|
223
|
+
category: o,
|
|
224
|
+
_id: s
|
|
225
|
+
},
|
|
226
|
+
...(t == null ? void 0 : t.filter((i) => !!i.combinationKey)) ?? []
|
|
227
|
+
];
|
|
228
|
+
}
|
|
229
|
+
export {
|
|
230
|
+
u as C,
|
|
231
|
+
F as d,
|
|
232
|
+
E as e,
|
|
233
|
+
y as h,
|
|
234
|
+
_ as p
|
|
235
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as u, d as s } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { k as u, d as s } from "./index.vue_vue_type_script_setup_true_lang-CDnlHcKS.js";
|
|
2
2
|
var n = /* @__PURE__ */ ((e) => (e.AUTO = "auto", e.MANUAL = "manual", e))(n || {}), m = /* @__PURE__ */ ((e) => (e[e.Normal = 0] = "Normal", e[e.Rules = 1] = "Rules", e))(m || {});
|
|
3
3
|
class i {
|
|
4
4
|
static fromCatalog(r, a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as r } from "./app-
|
|
2
|
-
import { V as o } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { g as r } from "./app-BJeTqtv9.js";
|
|
2
|
+
import { V as o } from "./index.vue_vue_type_script_setup_true_lang-CDnlHcKS.js";
|
|
3
3
|
var a = o();
|
|
4
4
|
const m = /* @__PURE__ */ r(a);
|
|
5
5
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as R } from "./discardConfirm-
|
|
2
|
-
import { defineComponent as x, resolveComponent as p, createBlock as d, openBlock as c, Teleport as k, createVNode as g, Transition as N, withCtx as
|
|
1
|
+
import { l as R } from "./discardConfirm-DEE_kXqK.js";
|
|
2
|
+
import { defineComponent as x, resolveComponent as p, createBlock as d, openBlock as c, Teleport as k, createVNode as g, Transition as N, withCtx as C, createCommentVNode as w, withKeys as $, normalizeStyle as I, normalizeClass as f, createElementVNode as h, renderSlot as S, createElementBlock as y, toDisplayString as z, Fragment as U, renderList as B, computed as m, unref as W, ref as P } from "vue";
|
|
3
3
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { useI18n as F } from "@feedmepos/mf-common";
|
|
5
|
-
function
|
|
5
|
+
function b(t) {
|
|
6
6
|
if (!(t != null && t.category))
|
|
7
7
|
return [];
|
|
8
8
|
const e = t.position;
|
|
@@ -12,22 +12,22 @@ function w(t) {
|
|
|
12
12
|
}, ...t.additionalCategories ?? []];
|
|
13
13
|
}
|
|
14
14
|
function j(t) {
|
|
15
|
-
return t != null && t.category ?
|
|
15
|
+
return t != null && t.category ? b(t) : [
|
|
16
16
|
{
|
|
17
17
|
_id: null,
|
|
18
18
|
position: (t == null ? void 0 : t.position) ?? null
|
|
19
19
|
}
|
|
20
20
|
];
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ce(t, e) {
|
|
23
23
|
var o;
|
|
24
|
-
const n =
|
|
24
|
+
const n = b(e);
|
|
25
25
|
return !n || n.length === 0 ? [(o = t.find((a) => a.id === "" || a.id === null)) == null ? void 0 : o.name] : n.map((a) => {
|
|
26
26
|
const r = t.find((i) => i.id === a._id);
|
|
27
27
|
return r ? r.name : "";
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function D(t) {
|
|
31
31
|
return (e) => {
|
|
32
32
|
var o;
|
|
33
33
|
if (t === e.category)
|
|
@@ -36,19 +36,32 @@ function ce(t) {
|
|
|
36
36
|
return (n == null ? void 0 : n.position) ?? null;
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
function ue(t) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
return e - 1;
|
|
39
|
+
function ue(t, e) {
|
|
40
|
+
const n = D(e);
|
|
41
|
+
let o = 0;
|
|
42
|
+
for (const a of t)
|
|
43
|
+
o = Math.max(o, n(a) ?? 0);
|
|
44
|
+
return o + 1;
|
|
47
45
|
}
|
|
48
46
|
function de(t, e) {
|
|
49
|
-
|
|
47
|
+
var a;
|
|
48
|
+
const n = t.category ?? null, o = e(n);
|
|
49
|
+
return {
|
|
50
|
+
...t,
|
|
51
|
+
position: o,
|
|
52
|
+
additionalCategories: ((a = t.additionalCategories) == null ? void 0 : a.map(
|
|
53
|
+
(r) => (
|
|
54
|
+
// a category named twice — as the main one and again here — shares the slot already
|
|
55
|
+
// taken rather than consuming a second one
|
|
56
|
+
r._id === n ? { ...r, position: o } : { ...r, position: e(r._id) }
|
|
57
|
+
)
|
|
58
|
+
)) ?? t.additionalCategories
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function fe(t, e) {
|
|
62
|
+
return t.map((n, o) => X(n, e, o + 1));
|
|
50
63
|
}
|
|
51
|
-
function
|
|
64
|
+
function X(t, e, n) {
|
|
52
65
|
var i;
|
|
53
66
|
const a = j(t).find((s) => s._id === e);
|
|
54
67
|
if ((a == null ? void 0 : a._id) === t.category)
|
|
@@ -65,8 +78,8 @@ function D(t, e, n) {
|
|
|
65
78
|
additionalCategories: r
|
|
66
79
|
};
|
|
67
80
|
}
|
|
68
|
-
function
|
|
69
|
-
const o =
|
|
81
|
+
function me(t, e, n) {
|
|
82
|
+
const o = b(t).concat({
|
|
70
83
|
_id: n,
|
|
71
84
|
position: null
|
|
72
85
|
}), a = R.uniqBy(
|
|
@@ -81,14 +94,14 @@ function fe(t, e, n) {
|
|
|
81
94
|
additionalCategories: i
|
|
82
95
|
};
|
|
83
96
|
}
|
|
84
|
-
const
|
|
97
|
+
const K = {
|
|
85
98
|
class: /* @__PURE__ */ f([
|
|
86
99
|
"flex items-center",
|
|
87
100
|
"px-24 pt-16 pb-8",
|
|
88
101
|
"border-b border-fm-color-neutral-gray-100",
|
|
89
102
|
"space-x-4"
|
|
90
103
|
])
|
|
91
|
-
},
|
|
104
|
+
}, M = { class: "fm-typo-en-title-sm-600 mr-auto" }, O = {
|
|
92
105
|
class: /* @__PURE__ */ f(["flex flex-col", "flex-1 overflow-scroll", "w-full", "px-24"])
|
|
93
106
|
}, q = /* @__PURE__ */ x({
|
|
94
107
|
__name: "FullScreenForm",
|
|
@@ -110,7 +123,7 @@ const M = {
|
|
|
110
123
|
const s = p("fm-button"), l = p("fm-form");
|
|
111
124
|
return c(), d(k, { to: "body" }, [
|
|
112
125
|
g(N, { name: "fade" }, {
|
|
113
|
-
default:
|
|
126
|
+
default: C(() => [
|
|
114
127
|
r.show ? (c(), d(l, {
|
|
115
128
|
key: 0,
|
|
116
129
|
"blame-form-child-on-validation-failed": "",
|
|
@@ -120,11 +133,11 @@ const M = {
|
|
|
120
133
|
onValidationSuccess: o,
|
|
121
134
|
onKeyup: $(a, ["esc"])
|
|
122
135
|
}, {
|
|
123
|
-
default:
|
|
124
|
-
h("div",
|
|
125
|
-
h("p",
|
|
136
|
+
default: C(() => [
|
|
137
|
+
h("div", K, [
|
|
138
|
+
h("p", M, z(r.title), 1),
|
|
126
139
|
S(r.$slots, "append-title", {}, void 0, !0),
|
|
127
|
-
(c(!0),
|
|
140
|
+
(c(!0), y(U, null, B(r.secondaryActions, (u) => (c(), d(s, {
|
|
128
141
|
label: u.label,
|
|
129
142
|
variant: "tertiary",
|
|
130
143
|
onClick: u.click
|
|
@@ -135,19 +148,19 @@ const M = {
|
|
|
135
148
|
variant: "primary"
|
|
136
149
|
}, null, 8, ["label"])
|
|
137
150
|
]),
|
|
138
|
-
h("div",
|
|
151
|
+
h("div", O, [
|
|
139
152
|
S(r.$slots, "default", {}, void 0, !0)
|
|
140
153
|
])
|
|
141
154
|
]),
|
|
142
155
|
_: 3
|
|
143
|
-
}, 8, ["style"])) :
|
|
156
|
+
}, 8, ["style"])) : w("", !0)
|
|
144
157
|
]),
|
|
145
158
|
_: 3
|
|
146
159
|
})
|
|
147
160
|
]);
|
|
148
161
|
};
|
|
149
162
|
}
|
|
150
|
-
}),
|
|
163
|
+
}), pe = /* @__PURE__ */ V(q, [["__scopeId", "data-v-5b5c7179"]]), _e = /* @__PURE__ */ x({
|
|
151
164
|
__name: "PriceTierNotice",
|
|
152
165
|
props: {
|
|
153
166
|
menuStore: {}
|
|
@@ -168,10 +181,10 @@ const M = {
|
|
|
168
181
|
"z-index": 0,
|
|
169
182
|
class: "!max-w-full",
|
|
170
183
|
title: W(a)("menu.price_tier.price_group_description", { group: (l = n.value) == null ? void 0 : l.join(", ") })
|
|
171
|
-
}, null, 8, ["title"])) :
|
|
184
|
+
}, null, 8, ["title"])) : w("", !0);
|
|
172
185
|
};
|
|
173
186
|
}
|
|
174
|
-
}), G = ["alt", "src", "crossorigin"],
|
|
187
|
+
}), G = ["alt", "src", "crossorigin"], he = /* @__PURE__ */ x({
|
|
175
188
|
__name: "Thumbnail",
|
|
176
189
|
props: {
|
|
177
190
|
src: {},
|
|
@@ -199,9 +212,9 @@ const M = {
|
|
|
199
212
|
}
|
|
200
213
|
return e.src;
|
|
201
214
|
});
|
|
202
|
-
return (_,
|
|
215
|
+
return (_, oe) => {
|
|
203
216
|
const v = p("fm-icon"), T = p("fm-card");
|
|
204
|
-
return c(),
|
|
217
|
+
return c(), y("div", {
|
|
205
218
|
class: f([_.className, "flex items-center justify-center"])
|
|
206
219
|
}, [
|
|
207
220
|
g(T, {
|
|
@@ -209,8 +222,8 @@ const M = {
|
|
|
209
222
|
style: I({ width: `${l.value.width}px`, height: `${l.value.height}px` }),
|
|
210
223
|
variant: "outlined"
|
|
211
224
|
}, {
|
|
212
|
-
default:
|
|
213
|
-
u.value && !o.value ? (c(),
|
|
225
|
+
default: C(() => [
|
|
226
|
+
u.value && !o.value ? (c(), y("img", {
|
|
214
227
|
key: u.value,
|
|
215
228
|
alt: s.value,
|
|
216
229
|
class: f(["w-full h-full", "object-cover", a.value ? "" : "hidden"]),
|
|
@@ -224,7 +237,7 @@ const M = {
|
|
|
224
237
|
name: "image",
|
|
225
238
|
outline: ""
|
|
226
239
|
})),
|
|
227
|
-
a.value ?
|
|
240
|
+
a.value ? w("", !0) : (c(), d(v, {
|
|
228
241
|
key: 2,
|
|
229
242
|
class: "animate-spin",
|
|
230
243
|
name: "progress_activity",
|
|
@@ -236,10 +249,10 @@ const M = {
|
|
|
236
249
|
], 2);
|
|
237
250
|
};
|
|
238
251
|
}
|
|
239
|
-
}), H = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"),
|
|
252
|
+
}), H = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), J = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), Q = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), Y = /[^\p{L}\d]+/giu, L = "$1\0$2", E = "";
|
|
240
253
|
function A(t) {
|
|
241
254
|
let e = t.trim();
|
|
242
|
-
e = e.replace(H, L).replace(
|
|
255
|
+
e = e.replace(H, L).replace(J, L), e = e.replace(Y, "\0");
|
|
243
256
|
let n = 0, o = e.length;
|
|
244
257
|
for (; e.charAt(n) === "\0"; )
|
|
245
258
|
n++;
|
|
@@ -249,10 +262,10 @@ function A(t) {
|
|
|
249
262
|
o--;
|
|
250
263
|
return e.slice(n, o).split(/\0/g);
|
|
251
264
|
}
|
|
252
|
-
function
|
|
265
|
+
function Z(t) {
|
|
253
266
|
const e = A(t);
|
|
254
267
|
for (let n = 0; n < e.length; n++) {
|
|
255
|
-
const o = e[n], a =
|
|
268
|
+
const o = e[n], a = Q.exec(o);
|
|
256
269
|
if (a) {
|
|
257
270
|
const r = a.index + (a[1] ?? a[2]).length;
|
|
258
271
|
e.splice(n, 1, o.slice(0, r), o.slice(r));
|
|
@@ -260,21 +273,21 @@ function Y(t) {
|
|
|
260
273
|
}
|
|
261
274
|
return e;
|
|
262
275
|
}
|
|
263
|
-
function
|
|
264
|
-
const [n, o, a] =
|
|
276
|
+
function ge(t, e) {
|
|
277
|
+
const [n, o, a] = re(t, e), r = ee(e == null ? void 0 : e.locale), i = te(e == null ? void 0 : e.locale), s = ne(r, i);
|
|
265
278
|
return n + o.map((l, u) => u === 0 ? s(l) : r(l)).join((e == null ? void 0 : e.delimiter) ?? " ") + a;
|
|
266
279
|
}
|
|
267
|
-
function
|
|
280
|
+
function ee(t) {
|
|
268
281
|
return t === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(t);
|
|
269
282
|
}
|
|
270
|
-
function
|
|
283
|
+
function te(t) {
|
|
271
284
|
return t === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(t);
|
|
272
285
|
}
|
|
273
|
-
function
|
|
286
|
+
function ne(t, e) {
|
|
274
287
|
return (n) => `${e(n[0])}${t(n.slice(1))}`;
|
|
275
288
|
}
|
|
276
|
-
function
|
|
277
|
-
const n = e.split ?? (e.separateNumbers ?
|
|
289
|
+
function re(t, e = {}) {
|
|
290
|
+
const n = e.split ?? (e.separateNumbers ? Z : A), o = e.prefixCharacters ?? E, a = e.suffixCharacters ?? E;
|
|
278
291
|
let r = 0, i = t.length;
|
|
279
292
|
for (; r < t.length; ) {
|
|
280
293
|
const s = t.charAt(r);
|
|
@@ -295,16 +308,17 @@ function ne(t, e = {}) {
|
|
|
295
308
|
];
|
|
296
309
|
}
|
|
297
310
|
export {
|
|
298
|
-
|
|
299
|
-
|
|
311
|
+
pe as F,
|
|
312
|
+
_e as _,
|
|
300
313
|
ue as a,
|
|
301
|
-
|
|
302
|
-
|
|
314
|
+
me as b,
|
|
315
|
+
X as c,
|
|
303
316
|
j as d,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
317
|
+
D as e,
|
|
318
|
+
he as f,
|
|
319
|
+
b as g,
|
|
320
|
+
ce as h,
|
|
321
|
+
fe as i,
|
|
322
|
+
ge as s,
|
|
323
|
+
de as w
|
|
310
324
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as le, ref as f, computed as q, watch as J, resolveComponent as C, createBlock as I, openBlock as h, unref as s, withCtx as k, createElementVNode as p, createVNode as c, createElementBlock as O, createCommentVNode as T, normalizeClass as Q, toDisplayString as F, Fragment as M, renderList as H, renderSlot as se, createSlots as ie } from "vue";
|
|
2
|
-
import { l as E, u as te } from "./discardConfirm-
|
|
2
|
+
import { l as E, u as te } from "./discardConfirm-DEE_kXqK.js";
|
|
3
3
|
import { d as re } from "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
4
|
-
import { i as ue, b as de, d as D, m as W, g as X, h as Z } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { i as ue, b as de, d as D, m as W, g as X, h as Z } from "./index.vue_vue_type_script_setup_true_lang-CDnlHcKS.js";
|
|
5
5
|
import { useI18n as oe } from "@feedmepos/mf-common";
|
|
6
6
|
import { useSnackbar as me, components as ce } from "@feedmepos/ui-library";
|
|
7
7
|
import { _ as ve } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
8
|
-
import { _ as pe } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as fe } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as _e, a as ee, b as ae, c as ne } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as pe } from "./RuleView.vue_vue_type_script_setup_true_lang-xuzVQmfE.js";
|
|
9
|
+
import { _ as fe } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-C4iacJky.js";
|
|
10
|
+
import { _ as _e, a as ee, b as ae, c as ne } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-BrLUgeet.js";
|
|
11
11
|
import { c as he } from "./check-C9mY6LiX.js";
|
|
12
12
|
const ge = { class: "fm-typo-en-title-md-600" }, ye = { class: "pt-8 space-y-24" }, Ve = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, be = { class: "fm-typo-en-body-lg-600" }, xe = {
|
|
13
13
|
key: 0,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as I, h as G, u as Q, d as X, m as j } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { a as I, h as G, u as Q, d as X, m as j } from "./index.vue_vue_type_script_setup_true_lang-CDnlHcKS.js";
|
|
2
2
|
import { defineComponent as P, computed as g, ref as _, watch as W, onMounted as ee, onBeforeUnmount as ae, resolveComponent as N, createBlock as H, openBlock as D, withModifiers as K, withCtx as k, renderSlot as J, createElementBlock as q, createCommentVNode as Y, toDisplayString as O, Fragment as A, createVNode as b, unref as i, createElementVNode as $, renderList as te } from "vue";
|
|
3
|
-
import { u as le, l as ne } from "./discardConfirm-
|
|
3
|
+
import { u as le, l as ne } from "./discardConfirm-DEE_kXqK.js";
|
|
4
4
|
import { useCoreStore as oe, useI18n as Z } from "@feedmepos/mf-common";
|
|
5
5
|
import { components as re } from "@feedmepos/ui-library";
|
|
6
|
-
import { _ as ie } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as ue } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as se } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as ie } from "./RuleView.vue_vue_type_script_setup_true_lang-xuzVQmfE.js";
|
|
7
|
+
import { _ as ue } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-C4iacJky.js";
|
|
8
|
+
import { _ as se } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BlgJ9HSX.js";
|
|
9
9
|
import { c as me } from "./check-C9mY6LiX.js";
|
|
10
|
-
import { f as de } from "./currency-
|
|
10
|
+
import { f as de } from "./currency-CSYrHGCM.js";
|
|
11
11
|
import { c as ce } from "./string-DpfFixWH.js";
|
|
12
12
|
import { g as R } from "./translation-fNx6yEpy.js";
|
|
13
13
|
function pe({
|