@feedmepos/mf-menu 0.31.71-prod → 0.31.72-prod.remy.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-B5R51HHK.js → App-D0if3wqP.js} +1303 -2464
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Dflill79.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BGmnZ0fU.js} +3 -3
- package/dist/{Catalog-yv_fwu1h.js → Catalog-BtUfD8GQ.js} +26 -26
- package/dist/{Category-lOaUwRrB.js → Category-DM8VSsLr.js} +35 -35
- package/dist/{Category-DEkZ-IWE.js → Category-DnqbAJ8u.js} +22 -22
- package/dist/{CookingGuide-Db8VQK5V.js → CookingGuide-D6lkfqBt.js} +113 -113
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DwsVvlUq.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bm_ojPwl.js} +1 -1
- package/dist/{Group-CFS8D5Uf.js → Group-C5dKF4Nh.js} +3 -3
- package/dist/{Group-B2EXYbcn.js → Group-DuzQnjaf.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BdZ9K2Ht.js → Group.vue_vue_type_script_setup_true_lang-CmNA5T1e.js} +48 -48
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CtlyZlos.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DNB2JuCW.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C-RPhKoA.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-ChBkZPAT.js} +21 -22
- package/dist/{Ingredient-C3B8G0Fd.js → Ingredient-D1WJiFol.js} +23 -23
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BrhhXwp8.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CtRlYhYV.js} +2 -2
- package/dist/{LinkProductSideSheet-DPn7KN3l.js → LinkProductSideSheet-C8rzleiM.js} +3 -3
- package/dist/{MenuSetting-Mph9Pc9s.js → MenuSetting-DMubRzJX.js} +31 -31
- package/dist/{PrintRoute-BwboeALA.js → PrintRoute-BtUchxJF.js} +26 -26
- package/dist/{Product-CNKnPt-z.js → Product-DgBa91qO.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BksTc5Gm.js → Product.vue_vue_type_script_setup_true_lang-HlvAWI2U.js} +71 -71
- package/dist/{ProductInternalTools-DGkoIc6T.js → ProductInternalTools-DtnJTZU3.js} +16 -16
- package/dist/{Products-CkLZYybB.js → Products-DzYBiuui.js} +11 -11
- package/dist/{Publish-Bzq9aREC.js → Publish-ITuDTIzg.js} +56 -57
- package/dist/{Recipe-K55Bnscl.js → Recipe-Cr1UPTHj.js} +13 -13
- package/dist/{Scheduler-ChAmTqSR.js → Scheduler-BydXXFdb.js} +16 -16
- package/dist/{ServingSequence-ywa7-8rG.js → ServingSequence-BIlY0lhh.js} +20 -20
- package/dist/{Setting-CHUNtVho.js → Setting-D2mSH2_l.js} +20 -20
- package/dist/{Subcategory-0-99_i06.js → Subcategory-Dx7lCJaE.js} +19 -19
- package/dist/{Takeaway-BzvxZ_dA.js → Takeaway-DQCHnaxB.js} +10 -10
- package/dist/{Takeaway-CsJf5I8I.js → Takeaway-vZeqiYnK.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Bh8mjdk4.js → Takeaway.vue_vue_type_script_setup_true_lang-BuWEny09.js} +20 -20
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CbxgtwVa.js → Thumbnail.vue_vue_type_script_setup_true_lang-BlF5or9G.js} +20 -20
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dh_CA5gZ.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CIfdrBaX.js} +1505 -1522
- package/dist/{Unit-CbTkNhj2.js → Unit-DaIRAqj9.js} +13 -13
- package/dist/{Variant-NkbzEbF-.js → Variant-CwPHFHql.js} +15 -15
- package/dist/{_id_-mr4_eirX.js → _id_-gdzXnRkY.js} +14 -14
- package/dist/{app-BzsHQwP_.js → app-BRK18Pzq.js} +1 -1
- package/dist/app-C7idHkPU.js +363 -0
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +1626 -1
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +72 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +218 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +81 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +55 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +144 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +165 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +55 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +375 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/tree.d.ts +18 -18
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +81 -0
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +55 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +430 -0
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +375 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +375 -0
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +165 -0
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +81 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +375 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +220 -0
- package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +52 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-CBDpK-sJ.js +13 -0
- package/dist/assets/override-menu-CKhoQX8C.js +13 -0
- package/dist/assets/validate-menu-Bd0HJtEE.js +13 -0
- package/dist/{catalog-C_6TM4e_.js → catalog-DUaNv8KG.js} +1 -1
- package/dist/{catalogSetting-pTMi5i6h.js → catalogSetting-Dv5gg8FZ.js} +1 -1
- package/dist/{category-CHNICcWp.js → category-bK12FQtW.js} +5 -5
- package/dist/{currency-Dx-pn9tw.js → currency-DY6dJBJl.js} +1 -1
- package/dist/{customAttributes-DvHKcDWb.js → customAttributes-DkW26Bc5.js} +1 -1
- package/dist/{index-X3RliLfv.js → index-B0vIEanV.js} +26 -26
- package/dist/{index-DGtoqrTo.js → index-BFUZvKOk.js} +1 -1
- package/dist/{index-CA3_R55p.js → index-C5eLCYqq.js} +13 -13
- package/dist/{index-DqIorABw.js → index-CII83JmK.js} +1 -1
- package/dist/{item-JhHKgoMj.js → item-ve_gbVz-.js} +2729 -2812
- package/dist/iteration-BJCvyPol.js +27 -0
- package/dist/{jszip.min-BQReTtS0.js → jszip.min-Cc_S6qRb.js} +353 -353
- package/dist/{menu-2ymqQnFE.js → menu-B0nEOY1F.js} +27904 -27336
- package/dist/{menu-Bhfx50bt.js → menu-C2TrhHCH.js} +1 -1
- package/dist/{menuV2-ZaA_QLdj.js → menuV2-TGyLK_nb.js} +56 -56
- package/dist/mf-menu.css +1 -1
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
- package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +1 -1
- package/dist/{priceTier-IZtw6WUa.js → priceTier-DrwQuSKr.js} +1 -1
- package/dist/{scheduler-CzuGjuw5.js → scheduler-CQNnLYyx.js} +20 -20
- package/dist/{subcategory-Dt6tFvIu.js → subcategory-mEI4l24p.js} +6 -6
- package/dist/{toExcel-CUrEHCjB.js → toExcel--Sjhn3Fl.js} +2 -2
- package/dist/{unit-Ibbp0wZT.js → unit-C-k6t2BQ.js} +9 -9
- package/package.json +7 -7
- package/dist/app-DVB67WHZ.js +0 -2098
- package/dist/apps/mf-menu/src/components/Announcements.vue.d.ts +0 -19
- package/dist/apps/mf-menu/src/components/feature/RemyButton.vue.d.ts +0 -15
- package/dist/apps/mf-menu/src/components/feature/RemyDialog.vue.d.ts +0 -15
- package/dist/apps/mf-menu/src/helper/remy.d.ts +0 -5
- package/dist/apps/mf-menu/src/stores/announcement/announcement.d.ts +0 -11
- package/dist/assets/linked-status-Dwqdwyog.js +0 -13
- package/dist/assets/override-menu-CGexvHxV.js +0 -13
- package/dist/assets/validate-menu-C2daBpKY.js +0 -13
- package/dist/dayjs.min-BZu87fXJ.js +0 -6
- package/dist/iteration-BoeoXAHD.js +0 -23
|
@@ -1,12 +1,12 @@
|
|
|
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 ue, H as C,
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import { shallowRef as j, ref as
|
|
4
|
+
import { an as ue, H as C, B as T, z as ae, ao as re, J as B, I as ie, ab as x, c as L, X as V, al as oe, ap as Le, aq as ze, A as qe, ad as Be, ar as Ge, as as He, aa as Je } from "./menu-B0nEOY1F.js";
|
|
5
|
+
import { defineStore as Xe } from "pinia";
|
|
6
|
+
import { shallowRef as j, ref as G, computed as S, shallowReactive as Ye, 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-CBDpK-sJ.js", nt = "/assets/override-menu-CKhoQX8C.js";
|
|
10
10
|
function rt(e) {
|
|
11
11
|
var o;
|
|
12
12
|
const t = C(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
|
|
@@ -104,7 +104,7 @@ function st(e, t) {
|
|
|
104
104
|
};
|
|
105
105
|
return [...o, r];
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function H(e, t) {
|
|
108
108
|
var o;
|
|
109
109
|
if (!t)
|
|
110
110
|
return e;
|
|
@@ -117,7 +117,7 @@ function B(e, t) {
|
|
|
117
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
|
-
return
|
|
120
|
+
return H(c, i);
|
|
121
121
|
}), r;
|
|
122
122
|
}), n;
|
|
123
123
|
}
|
|
@@ -131,7 +131,7 @@ function ut(e, t) {
|
|
|
131
131
|
);
|
|
132
132
|
if (!a)
|
|
133
133
|
throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
|
|
134
|
-
return
|
|
134
|
+
return H(a, r);
|
|
135
135
|
})
|
|
136
136
|
});
|
|
137
137
|
const o = n.find((r) => !r.combinationKey);
|
|
@@ -145,7 +145,7 @@ function ut(e, t) {
|
|
|
145
145
|
const c = (i = a == null ? void 0 : a.items) == null ? void 0 : i.find(
|
|
146
146
|
(f) => f._id === u._id && f.combinationKey === u.combinationKey
|
|
147
147
|
);
|
|
148
|
-
return
|
|
148
|
+
return H(u, c);
|
|
149
149
|
}), r;
|
|
150
150
|
}), {
|
|
151
151
|
...t,
|
|
@@ -183,11 +183,11 @@ function Dt(e, t) {
|
|
|
183
183
|
return r;
|
|
184
184
|
}, [])) || []).join(" / ");
|
|
185
185
|
}
|
|
186
|
-
const
|
|
186
|
+
const z = /* @__PURE__ */ new Map();
|
|
187
187
|
async function Vt(e, t) {
|
|
188
188
|
const n = `${e._id}-${e.updatedAt}-${t}`;
|
|
189
|
-
if (
|
|
190
|
-
return
|
|
189
|
+
if (z.has(n))
|
|
190
|
+
return z.get(n);
|
|
191
191
|
const o = await ue(
|
|
192
192
|
tt,
|
|
193
193
|
JSON.stringify({
|
|
@@ -195,7 +195,7 @@ async function Vt(e, t) {
|
|
|
195
195
|
itemId: t
|
|
196
196
|
})
|
|
197
197
|
);
|
|
198
|
-
return
|
|
198
|
+
return z.set(n, o), o;
|
|
199
199
|
}
|
|
200
200
|
async function ce(e, t, n) {
|
|
201
201
|
return await ue(nt, {
|
|
@@ -219,7 +219,7 @@ function Tt(e, t, n) {
|
|
|
219
219
|
}
|
|
220
220
|
return r(t, n);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function Kt(e, t, n) {
|
|
223
223
|
const o = /* @__PURE__ */ new Set();
|
|
224
224
|
function r(a, l) {
|
|
225
225
|
if (!e || !a || !l || o.has(a)) return !1;
|
|
@@ -234,15 +234,15 @@ function Ft(e, t, n) {
|
|
|
234
234
|
}
|
|
235
235
|
return r(t, n);
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const q = /* @__PURE__ */ new Map();
|
|
238
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
|
-
async function
|
|
245
|
+
async function Ft(e, t, n) {
|
|
246
246
|
var l, u;
|
|
247
247
|
const o = await at(e, t, null), r = [], a = (c, i) => {
|
|
248
248
|
const f = C(c);
|
|
@@ -268,7 +268,7 @@ async function Kt(e, t, n) {
|
|
|
268
268
|
}
|
|
269
269
|
return r;
|
|
270
270
|
}
|
|
271
|
-
const M = 0,
|
|
271
|
+
const M = 0, K = 3;
|
|
272
272
|
function it(e) {
|
|
273
273
|
const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
274
274
|
if (!t)
|
|
@@ -297,7 +297,7 @@ function P(e) {
|
|
|
297
297
|
function k(e) {
|
|
298
298
|
return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function F(e, t) {
|
|
301
301
|
if (e === t) return !0;
|
|
302
302
|
if (typeof e != typeof t) return !1;
|
|
303
303
|
if (e instanceof Date && t instanceof Date)
|
|
@@ -307,14 +307,14 @@ function K(e, t) {
|
|
|
307
307
|
if (Array.isArray(e) && Array.isArray(t)) {
|
|
308
308
|
if (e.length !== t.length) return !1;
|
|
309
309
|
for (let n = 0; n < e.length; n++)
|
|
310
|
-
if (!
|
|
310
|
+
if (!F(e[n], t[n])) return !1;
|
|
311
311
|
return !0;
|
|
312
312
|
}
|
|
313
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)
|
|
317
|
-
if (!Object.prototype.hasOwnProperty.call(t, r) || !
|
|
317
|
+
if (!Object.prototype.hasOwnProperty.call(t, r) || !F(e[r], t[r])) return !1;
|
|
318
318
|
return !0;
|
|
319
319
|
}
|
|
320
320
|
return !1;
|
|
@@ -330,7 +330,7 @@ function ct(e, t, n) {
|
|
|
330
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 (!u.has(m) &&
|
|
333
|
+
if (!u.has(m) && F(i, t[m])) {
|
|
334
334
|
l.push({ leftIndex: c, rightIndex: m }), u.add(m);
|
|
335
335
|
break;
|
|
336
336
|
}
|
|
@@ -340,7 +340,7 @@ function ct(e, t, n) {
|
|
|
340
340
|
}
|
|
341
341
|
function lt(e, t, n) {
|
|
342
342
|
var m, v;
|
|
343
|
-
if (
|
|
343
|
+
if (F(e, t)) return;
|
|
344
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
345
|
let u = r ? ct(e, t, l) : [];
|
|
346
346
|
if (!l && e.length === t.length && e.length > 0 && u.length < e.length) {
|
|
@@ -360,7 +360,7 @@ function lt(e, t, n) {
|
|
|
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 I = `_${p}`, R = a ? [e[p], b,
|
|
363
|
+
const I = `_${p}`, R = a ? [e[p], b, K] : ["", b, K];
|
|
364
364
|
o[I] = R;
|
|
365
365
|
}
|
|
366
366
|
} else {
|
|
@@ -375,7 +375,7 @@ function lt(e, t, n) {
|
|
|
375
375
|
return o;
|
|
376
376
|
}
|
|
377
377
|
function dt(e, t, n) {
|
|
378
|
-
if (
|
|
378
|
+
if (F(e, t)) return;
|
|
379
379
|
const o = {}, r = Object.keys(e), a = Object.keys(t), l = /* @__PURE__ */ new Set([...r, ...a]);
|
|
380
380
|
for (const u of l) {
|
|
381
381
|
if (n != null && n.propertyFilter && !n.propertyFilter(u, { left: e, right: t }))
|
|
@@ -392,7 +392,7 @@ function dt(e, t, n) {
|
|
|
392
392
|
return Object.keys(o).length > 0 ? o : void 0;
|
|
393
393
|
}
|
|
394
394
|
function J(e, t, n) {
|
|
395
|
-
if (
|
|
395
|
+
if (F(e, t)) return;
|
|
396
396
|
if (e === void 0 && t !== void 0) {
|
|
397
397
|
const u = n != null && n.cloneDiffValues ? O(t) : t;
|
|
398
398
|
return [P(u)];
|
|
@@ -416,7 +416,7 @@ function mt(e, t, n) {
|
|
|
416
416
|
for (const u in t) {
|
|
417
417
|
if (u === "_t" || !u.startsWith("_")) continue;
|
|
418
418
|
const c = parseInt(u.slice(1)), i = t[u];
|
|
419
|
-
Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] ===
|
|
419
|
+
Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] === K && r.set(c, i[1]));
|
|
420
420
|
}
|
|
421
421
|
const a = [];
|
|
422
422
|
let l = 0;
|
|
@@ -428,7 +428,7 @@ function mt(e, t, n) {
|
|
|
428
428
|
else {
|
|
429
429
|
for (; l < e.length && o.has(l); )
|
|
430
430
|
l++;
|
|
431
|
-
l < e.length && (a.push(
|
|
431
|
+
l < e.length && (a.push(X(e[l], i)), l++);
|
|
432
432
|
}
|
|
433
433
|
else {
|
|
434
434
|
let f = !1;
|
|
@@ -453,11 +453,11 @@ function vt(e, t, n) {
|
|
|
453
453
|
const o = { ...e };
|
|
454
454
|
for (const r in t) {
|
|
455
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] =
|
|
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] = X(o[r], a);
|
|
457
457
|
}
|
|
458
458
|
return o;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function X(e, t, n) {
|
|
461
461
|
if (t === void 0) return e;
|
|
462
462
|
if (Array.isArray(t)) {
|
|
463
463
|
if (t.length === 1)
|
|
@@ -470,7 +470,7 @@ function Y(e, t, n) {
|
|
|
470
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
|
-
return
|
|
473
|
+
return X(e, t);
|
|
474
474
|
}
|
|
475
475
|
function yt(e) {
|
|
476
476
|
const t = { _t: "a" };
|
|
@@ -481,9 +481,9 @@ function yt(e) {
|
|
|
481
481
|
if (Array.isArray(r)) {
|
|
482
482
|
if (r.length === 3 && r[2] === M)
|
|
483
483
|
t[o] = [r[0]];
|
|
484
|
-
else if (r.length === 3 && r[2] ===
|
|
484
|
+
else if (r.length === 3 && r[2] === K) {
|
|
485
485
|
const a = r[1];
|
|
486
|
-
t[`_${a}`] = [r[0], o,
|
|
486
|
+
t[`_${a}`] = [r[0], o, K];
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
} else {
|
|
@@ -491,7 +491,7 @@ 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 a =
|
|
494
|
+
const a = Y(r);
|
|
495
495
|
a !== void 0 && (t[n] = a);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
@@ -504,13 +504,13 @@ function ht(e) {
|
|
|
504
504
|
if (Array.isArray(o))
|
|
505
505
|
o.length === 1 ? t[n] = [o[0], M, M] : o.length === 3 && o[2] === M ? t[n] = [o[0]] : o.length === 2 && (t[n] = [o[1], o[0]]);
|
|
506
506
|
else {
|
|
507
|
-
const r =
|
|
507
|
+
const r = Y(o);
|
|
508
508
|
r !== void 0 && (t[n] = r);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
return t;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Y(e) {
|
|
514
514
|
if (e !== void 0) {
|
|
515
515
|
if (Array.isArray(e)) {
|
|
516
516
|
if (e.length === 1)
|
|
@@ -519,14 +519,14 @@ function X(e) {
|
|
|
519
519
|
return [e[1], e[0]];
|
|
520
520
|
if (e.length === 3 && e[2] === M)
|
|
521
521
|
return [e[0]];
|
|
522
|
-
if (e.length === 3 && e[2] ===
|
|
522
|
+
if (e.length === 3 && e[2] === K)
|
|
523
523
|
return e;
|
|
524
524
|
}
|
|
525
525
|
return k(e) && e._t === "a" ? yt(e) : k(e) ? ht(e) : e;
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
function de(e) {
|
|
529
|
-
return
|
|
529
|
+
return Y(e);
|
|
530
530
|
}
|
|
531
531
|
function pt(e, t, n) {
|
|
532
532
|
const o = de(t);
|
|
@@ -566,7 +566,7 @@ function St({
|
|
|
566
566
|
includeValueOnMove: !1
|
|
567
567
|
},
|
|
568
568
|
cloneDiffValues: !1
|
|
569
|
-
}), n = j(null), o = j([]), r =
|
|
569
|
+
}), n = j(null), o = j([]), r = G(-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
572
|
n.value = C(v), a.value = C(v), o.value = [{ delta: null }], r.value = 0;
|
|
@@ -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
|
`));
|
|
@@ -664,10 +664,10 @@ function wt() {
|
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
const Pt =
|
|
667
|
+
const Pt = Xe(
|
|
668
668
|
"mf-menu-store-v2",
|
|
669
669
|
() => {
|
|
670
|
-
const e =
|
|
670
|
+
const e = Ye(wt()), t = se(), n = et(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
|
|
671
671
|
selector: "position"
|
|
672
672
|
}) : []), r = S(() => {
|
|
673
673
|
var s;
|
|
@@ -692,7 +692,7 @@ const Pt = Ye(
|
|
|
692
692
|
function f(s, d = !0) {
|
|
693
693
|
e.menu = { ...s, _rev: e.menu._rev }, d && D.push(e.menu);
|
|
694
694
|
}
|
|
695
|
-
const h = j(fe()), m =
|
|
695
|
+
const h = j(fe()), m = G(!1), v = G(1);
|
|
696
696
|
async function p() {
|
|
697
697
|
var y;
|
|
698
698
|
m.value = !0;
|
|
@@ -812,7 +812,7 @@ const Pt = Ye(
|
|
|
812
812
|
})), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
813
813
|
selector: "name"
|
|
814
814
|
})), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
|
|
815
|
-
const s =
|
|
815
|
+
const s = ze(e.menu.modules.sku);
|
|
816
816
|
return x(s, { selector: "code" });
|
|
817
817
|
}), U = S(() => {
|
|
818
818
|
const s = !e.currentCatalogId, d = r.value === L.F_MENU_VERSION.v4, y = !e.currentSchedulerId, g = {
|
|
@@ -895,10 +895,10 @@ const Pt = Ye(
|
|
|
895
895
|
}
|
|
896
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
900
|
), y = d.filter((_) => a.value || !s.includes(_.taxCode)).map((_) => ({
|
|
901
|
-
label: `${_.name} (${
|
|
901
|
+
label: `${_.name} (${Be(_.rate)}%)`,
|
|
902
902
|
value: W(_),
|
|
903
903
|
meta: {
|
|
904
904
|
rate: _.rate
|
|
@@ -912,7 +912,7 @@ const Pt = Ye(
|
|
|
912
912
|
const s = await Je.readMenu();
|
|
913
913
|
e.menu = s ?? e.menu, te(null);
|
|
914
914
|
}, xe = async () => {
|
|
915
|
-
const { fetchAllRestaurants: s } =
|
|
915
|
+
const { fetchAllRestaurants: s } = He();
|
|
916
916
|
await s({
|
|
917
917
|
onBatchEnd: (d) => {
|
|
918
918
|
e.restaurants = d;
|
|
@@ -936,9 +936,9 @@ 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
|
-
const A = await
|
|
941
|
+
const A = await Ge(g, e.menu.modules);
|
|
942
942
|
if (A !== !0) throw new Error(A);
|
|
943
943
|
}
|
|
944
944
|
const _ = await bt.updateMenuModule(e.menu, g);
|
|
@@ -950,7 +950,7 @@ const Pt = Ye(
|
|
|
950
950
|
message: _
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
|
-
},
|
|
953
|
+
}, Ke = async (s) => {
|
|
954
954
|
const d = {
|
|
955
955
|
...e.menu,
|
|
956
956
|
masterCatalogSetting: s.masterCatalogSetting,
|
|
@@ -958,7 +958,7 @@ const Pt = Ye(
|
|
|
958
958
|
priceTierSettings: s.priceTierSettings
|
|
959
959
|
};
|
|
960
960
|
return f(d), d;
|
|
961
|
-
}, D = St({ maxHistorySize: 50 }),
|
|
961
|
+
}, D = St({ maxHistorySize: 50 }), Fe = S(() => D.canUndo.value), Pe = S(() => D.canRedo.value), $e = () => {
|
|
962
962
|
const s = D.undo();
|
|
963
963
|
s && f(s, !1);
|
|
964
964
|
}, je = () => {
|
|
@@ -1008,7 +1008,7 @@ const Pt = Ye(
|
|
|
1008
1008
|
selectCategory: De,
|
|
1009
1009
|
setRestaurantAttrParams: Ve,
|
|
1010
1010
|
updateMenu: Te,
|
|
1011
|
-
updateMenuSetting:
|
|
1011
|
+
updateMenuSetting: Ke,
|
|
1012
1012
|
computeMergedMenu: p,
|
|
1013
1013
|
// helper
|
|
1014
1014
|
encodeTax: W,
|
|
@@ -1016,7 +1016,7 @@ const Pt = Ye(
|
|
|
1016
1016
|
getSelectedTax: Re,
|
|
1017
1017
|
mapVariant: ge,
|
|
1018
1018
|
// history
|
|
1019
|
-
canUndoHistory:
|
|
1019
|
+
canUndoHistory: Fe,
|
|
1020
1020
|
canRedoHistory: Pe,
|
|
1021
1021
|
undoHistory: $e,
|
|
1022
1022
|
redoHistory: je,
|
|
@@ -1033,8 +1033,8 @@ const Pt = Ye(
|
|
|
1033
1033
|
export {
|
|
1034
1034
|
Vt as a,
|
|
1035
1035
|
Tt as b,
|
|
1036
|
-
|
|
1037
|
-
|
|
1036
|
+
Kt as c,
|
|
1037
|
+
Ft as f,
|
|
1038
1038
|
Dt as g,
|
|
1039
1039
|
Ot as m,
|
|
1040
1040
|
at as o,
|
package/dist/mf-menu.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.chatbox[data-v-97b727dd]{padding:10px;display:flex;flex-direction:column;height:100%;width:100%;overflow-y:scroll;gap:4px}.chatbox .user-message[data-v-97b727dd]{align-self:end;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .remy-message[data-v-97b727dd]{align-self:start;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .user-name[data-v-97b727dd]{padding:4px 8px;font-size:12px;font-weight:700}.chatbox .selection-container[data-v-97b727dd]{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px}.chatbox .selection-container .selection[data-v-97b727dd]{cursor:pointer}.chatbox .message-bubble[data-v-97b727dd]{background:#f0f0f0;padding:4px 8px;border-radius:6px;line-height:20px;font-size:14px}.chatbox .select-label[data-v-97b727dd]{font-weight:700;font-size:12px;padding:4px 8px;align-self:center}.chatbox .message[data-v-97b727dd]{white-space:pre-wrap}.chatbox .spinner[data-v-97b727dd]{text-align:left}.chatbox .spinner>div[data-v-97b727dd]{width:4px;height:4px;margin:0 2px;background-color:#434343;border-radius:100%;display:inline-block;animation:sk-bouncedelay-97b727dd 1.4s infinite ease-in-out both}.chatbox .spinner .bounce1[data-v-97b727dd]{animation-delay:-.32s}.chatbox .spinner .bounce2[data-v-97b727dd]{animation-delay:-.16s}@keyframes sk-bouncedelay-97b727dd{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.expand-enter-from[data-v-469403ff]{opacity:0;max-height:0}.expand-enter-to[data-v-469403ff],.expand-leave-from[data-v-469403ff]{opacity:1;max-height:1000px}.expand-leave-to[data-v-469403ff]{opacity:0;max-height:0}.expand-enter-active[data-v-469403ff],.expand-leave-active[data-v-469403ff]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-enter-from[data-v-5b5c7179]{opacity:0}.fade-enter-to[data-v-5b5c7179],.fade-leave-from[data-v-5b5c7179]{opacity:1}.fade-leave-to[data-v-5b5c7179]{opacity:0}.fade-enter-active[data-v-5b5c7179],.fade-leave-active[data-v-5b5c7179]{transition:opacity .5s ease}.expand-enter-from[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-to[data-v-e920f110],.expand-leave-from[data-v-e920f110]{opacity:1;max-height:1000px}.expand-leave-to[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-active[data-v-e920f110],.expand-leave-active[data-v-e920f110]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fm-select__menu__wrapper[data-v-89b5becb]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vue-advanced-cropper{text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}.fm-select__menu__wrapper[data-v-ca5e943c]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.description[data-v-02062810] textarea{padding-right:32px}.image-action-overlay[data-v-946af9b7]{visibility:hidden;background-color:#ffffff4d}.container:hover .image-action-overlay[data-v-946af9b7]{visibility:visible}.description[data-v-b3e84ff5] textarea{padding-right:32px}.tree-item-form button:focus{outline:2px solid black}.resize-handle[data-v-570141b0]{cursor:col-resize}.resize-handle[data-v-570141b0]:hover{background-color:var(--fm-color-system-orange-200);filter:opacity(.4)}.resize-grabber[data-v-570141b0]{pointer-events:none}[data-v-f6f1080b] .highlighted-span{background-color:#ff06}.hover-effect:hover:before{content:"";background-color:var(--fm-color-opacity-sm);border-radius:var(--fm-corner-radius-sm);position:absolute;top:0;left:0;height:100%;width:100%}.tree-node .right-area .show-on-hover{display:none}.tree-node:hover .right-area .show-on-hover{display:flex}.drag-handle{cursor:grab;position:absolute;left:0}.tree-node:hover .drag-handle{visibility:visible}.tree-node .drag-handle{visibility:hidden}.drop-indicator-before{position:absolute;left:0;right:0;top:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-after{position:absolute;left:0;right:0;bottom:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-inside{position:absolute;left:0;right:0;top:0;bottom:0;border:2px solid var(--fm-color-primary);border-radius:var(--fm-corner-radius-sm);background-color:var(--fm-color-opacity-sm);z-index:5}.tree-node{position:relative}.tree-container[data-v-9244f342]{width:100%;max-width:100%;height:100%;position:relative}.tree-node-wrapper[data-v-9244f342]{width:100%;position:relative}.empty-tree-message[data-v-9244f342]{padding:20px;text-align:center;color:#666}.being-dragged[data-v-9244f342]{opacity:.5}.drop-before[data-v-9244f342]:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-after[data-v-9244f342]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-inside[data-v-9244f342]{background-color:#4299e11a}.drag-overlay[data-v-9244f342]{position:fixed;padding:4px 8px;background-color:#fff;border:1px solid var(--fm-color-neutral-gray-200);box-shadow:0 2px 4px #0000001a;pointer-events:none;z-index:1000;border-radius:4px;max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-overlay{background-color:#ffffff80}.fade-enter-from[data-v-6c3052b3]{opacity:0}.fade-enter-to[data-v-6c3052b3],.fade-leave-from[data-v-6c3052b3]{opacity:1}.fade-leave-to[data-v-6c3052b3]{opacity:0}.fade-enter-active[data-v-6c3052b3],.fade-leave-active[data-v-6c3052b3]{transition:opacity .5s ease}.expand-enter-active,.expand-leave-active{transition:.3s}.expand-enter-from{opacity:0;max-height:0}.expand-enter-to,.expand-leave-from{opacity:1;max-height:1000px}.expand-leave-to{opacity:0;max-height:0}.app-container{background-color:#fff!important}:root{--vc-clr-primary: #000;--vc-clr-secondary: #090f207f;--vc-clr-white: #ffffff}.carousel,.carousel *{box-sizing:border-box}.carousel{height:var(--vc-carousel-height);overscroll-behavior:none;position:relative;touch-action:pan-x pan-y pinch-zoom;z-index:1}.carousel.is-dragging{touch-action:none}.carousel__track{display:flex;gap:var(--vc-slide-gap);height:100%;list-style:none;margin:0;padding:0;position:relative;transition:transform ease-out;transition-duration:var(--vc-transition-duration);width:100%}.carousel__viewport{height:100%;overflow:hidden;width:100%}.carousel__sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.carousel.is-rtl{direction:rtl}.carousel.is-ttb .carousel__track{flex-direction:column}.carousel.is-btt .carousel__track{flex-direction:column-reverse}.carousel.is-vertical .carousel__slide--clone:first-child{margin-block-start:var(--vc-cloned-offset)}.carousel:not(.is-vertical) .carousel__slide--clone:first-child{margin-inline-start:var(--vc-cloned-offset)}.carousel.is-effect-fade .carousel__track{display:grid;grid-template-columns:100%;grid-template-rows:100%;transition:none}.carousel.is-effect-fade .carousel__slide{grid-area:1 / 1;height:100%;opacity:0;pointer-events:none;transition:opacity ease-in-out;transition-duration:var(--vc-transition-duration);width:100%}.carousel.is-effect-fade .carousel__slide--active{opacity:1;pointer-events:auto}:root{--vc-icn-width: 100%}.carousel__icon{fill:currentColor;height:var(--vc-icn-width);width:var(--vc-icn-width)}:root{--vc-nav-background: transparent;--vc-nav-border-radius: 0;--vc-nav-color: var(--vc-clr-primary);--vc-nav-color-hover: var(--vc-clr-secondary);--vc-nav-height: 30px;--vc-nav-width: 30px}.carousel__next,.carousel__prev{align-items:center;background:var(--vc-nav-background);border:0;border-radius:var(--vc-nav-border-radius);color:var(--vc-nav-color);cursor:pointer;display:flex;font-size:var(--vc-nav-height);height:var(--vc-nav-height);justify-content:center;padding:0;position:absolute;inset-block-start:50%;transform:translateY(-50%);width:var(--vc-nav-width)}.carousel__next--disabled,.carousel__prev--disabled{cursor:not-allowed;opacity:.5}.carousel__next{inset-inline-end:0}.carousel__prev{inset-inline-start:0}.carousel.is-vertical .carousel__next,.carousel.is-vertical .carousel__prev{inset-inline:auto 50%;inset-block-start:auto;transform:translate(50%)}.carousel.is-vertical.is-ttb .carousel__next{inset-block-end:0}.carousel.is-vertical.is-ttb .carousel__prev,.carousel.is-vertical.is-btt .carousel__next{inset-block-start:0}.carousel.is-vertical.is-btt .carousel__prev{inset-block-end:0}@media (hover: hover){.carousel__next:hover,.carousel__prev:hover{color:var(--vc-nav-color-hover)}}:root{--vc-pgn-active-color: var(--vc-clr-primary);--vc-pgn-background-color: var(--vc-clr-secondary);--vc-pgn-border-radius: 0;--vc-pgn-gap: 6px;--vc-pgn-height: 4px;--vc-png-bottom: 10px;--vc-png-left: auto;--vc-png-right: 10px;--vc-pgn-width: 16px}.carousel__pagination{bottom:var(--vc-png-bottom);display:flex;gap:var(--vc-pgn-gap);justify-content:center;left:50%;list-style:none;margin:0;padding:0;position:absolute;transform:translate(-50%)}.carousel__pagination-button{background-color:var(--vc-pgn-background-color);border:0;border-radius:var(--vc-pgn-border-radius);cursor:pointer;display:block;height:var(--vc-pgn-height);margin:0;padding:0;width:var(--vc-pgn-width)}.carousel__pagination-button--active{background-color:var(--vc-pgn-active-color)}@media (hover: hover){.carousel__pagination-button:hover{background-color:var(--vc-pgn-active-color)}}.carousel.is-vertical .carousel__pagination{bottom:50%;flex-direction:column;left:var(--vc-png-left);right:var(--vc-png-right);transform:translateY(50%)}.carousel.is-vertical .carousel__pagination-button{height:var(--vc-pgn-width);width:var(--vc-pgn-height)}.carousel.is-btt .carousel__pagination{flex-direction:column-reverse}.carousel__slide{align-items:center;display:flex;flex-shrink:0;justify-content:center;margin:0;transform:translateZ(0)}.remy-dialog[data-v-9adba964]{position:fixed;z-index:9999;top:25%;right:30px;background:#fff;border:1px solid lightgrey;border-radius:4px;height:50%;width:400px;max-width:90%}.remy-dialog .header[data-v-9adba964]{background:#000;padding:0 12px;border-radius:4px 4px 0 0;height:40px}.remy-dialog .header .title[data-v-9adba964]{color:#fff}.remy-dialog .chatbox-container[data-v-9adba964]{height:calc(100% - 40px)}
|
|
1
|
+
.expand-enter-from[data-v-469403ff]{opacity:0;max-height:0}.expand-enter-to[data-v-469403ff],.expand-leave-from[data-v-469403ff]{opacity:1;max-height:1000px}.expand-leave-to[data-v-469403ff]{opacity:0;max-height:0}.expand-enter-active[data-v-469403ff],.expand-leave-active[data-v-469403ff]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-enter-from[data-v-5b5c7179]{opacity:0}.fade-enter-to[data-v-5b5c7179],.fade-leave-from[data-v-5b5c7179]{opacity:1}.fade-leave-to[data-v-5b5c7179]{opacity:0}.fade-enter-active[data-v-5b5c7179],.fade-leave-active[data-v-5b5c7179]{transition:opacity .5s ease}.expand-enter-from[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-to[data-v-e920f110],.expand-leave-from[data-v-e920f110]{opacity:1;max-height:1000px}.expand-leave-to[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-active[data-v-e920f110],.expand-leave-active[data-v-e920f110]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fm-select__menu__wrapper[data-v-89b5becb]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vue-advanced-cropper{text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}.fm-select__menu__wrapper[data-v-ca5e943c]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.description[data-v-3a138731] textarea{padding-right:32px}.image-action-overlay[data-v-946af9b7]{visibility:hidden;background-color:#ffffff4d}.container:hover .image-action-overlay[data-v-946af9b7]{visibility:visible}.description[data-v-e26ed736] textarea{padding-right:32px}.tree-item-form button:focus{outline:2px solid black}.resize-handle[data-v-570141b0]{cursor:col-resize}.resize-handle[data-v-570141b0]:hover{background-color:var(--fm-color-system-orange-200);filter:opacity(.4)}.resize-grabber[data-v-570141b0]{pointer-events:none}[data-v-f6f1080b] .highlighted-span{background-color:#ff06}.hover-effect:hover:before{content:"";background-color:var(--fm-color-opacity-sm);border-radius:var(--fm-corner-radius-sm);position:absolute;top:0;left:0;height:100%;width:100%}.tree-node .right-area .show-on-hover{display:none}.tree-node:hover .right-area .show-on-hover{display:flex}.drag-handle{cursor:grab;position:absolute;left:0}.tree-node:hover .drag-handle{visibility:visible}.tree-node .drag-handle{visibility:hidden}.drop-indicator-before{position:absolute;left:0;right:0;top:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-after{position:absolute;left:0;right:0;bottom:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-inside{position:absolute;left:0;right:0;top:0;bottom:0;border:2px solid var(--fm-color-primary);border-radius:var(--fm-corner-radius-sm);background-color:var(--fm-color-opacity-sm);z-index:5}.tree-node{position:relative}.tree-container[data-v-9244f342]{width:100%;max-width:100%;height:100%;position:relative}.tree-node-wrapper[data-v-9244f342]{width:100%;position:relative}.empty-tree-message[data-v-9244f342]{padding:20px;text-align:center;color:#666}.being-dragged[data-v-9244f342]{opacity:.5}.drop-before[data-v-9244f342]:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-after[data-v-9244f342]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-inside[data-v-9244f342]{background-color:#4299e11a}.drag-overlay[data-v-9244f342]{position:fixed;padding:4px 8px;background-color:#fff;border:1px solid var(--fm-color-neutral-gray-200);box-shadow:0 2px 4px #0000001a;pointer-events:none;z-index:1000;border-radius:4px;max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-overlay{background-color:#ffffff80}.fade-enter-from[data-v-6c3052b3]{opacity:0}.fade-enter-to[data-v-6c3052b3],.fade-leave-from[data-v-6c3052b3]{opacity:1}.fade-leave-to[data-v-6c3052b3]{opacity:0}.fade-enter-active[data-v-6c3052b3],.fade-leave-active[data-v-6c3052b3]{transition:opacity .5s ease}.expand-enter-active,.expand-leave-active{transition:.3s}.expand-enter-from{opacity:0;max-height:0}.expand-enter-to,.expand-leave-from{opacity:1;max-height:1000px}.expand-leave-to{opacity:0;max-height:0}.app-container{background-color:#fff!important}
|
|
@@ -85,8 +85,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
85
85
|
placeholder: string;
|
|
86
86
|
maxHeight: string | number;
|
|
87
87
|
searchable: boolean;
|
|
88
|
-
clearable: boolean;
|
|
89
88
|
multiple: boolean;
|
|
89
|
+
clearable: boolean;
|
|
90
90
|
searchPlaceholder: string;
|
|
91
91
|
autoSelectFirst: boolean;
|
|
92
92
|
chipIcon: string;
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
14
14
|
bold: boolean;
|
|
15
15
|
}>>> & Readonly<{}>, {
|
|
16
16
|
bold: boolean;
|
|
17
|
-
size: "
|
|
17
|
+
size: "xs" | "sm" | "md";
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
19
|
export default _default;
|
|
20
20
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -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,
|
|
4
|
+
import { u as k, D as M } from "./menu-B0nEOY1F.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as
|
|
2
|
-
import { H as S,
|
|
1
|
+
import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as A, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
|
|
2
|
+
import { H as S, z as r, u as pe, I as ve, J as ue } from "./menu-B0nEOY1F.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ne, a as fe } from "./customAttributes-
|
|
5
|
+
import { _ as ne, a as fe } from "./customAttributes-DkW26Bc5.js";
|
|
6
6
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
7
|
-
import { u as he } from "./menu-
|
|
8
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
7
|
+
import { u as he } from "./menu-C2TrhHCH.js";
|
|
8
|
+
import { L as ge } from "./LinkProductSideSheet-C8rzleiM.js";
|
|
9
9
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "space-y-16"
|
|
@@ -61,9 +61,9 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
61
61
|
"onUpdate:modelValue": X
|
|
62
62
|
}, null, 8, ["model-value", "label", "sublabel"]),
|
|
63
63
|
f.modelValue ? (u(), d("div", Fe, [
|
|
64
|
-
(($ = f.modelValue) == null ? void 0 : $.length) === 0 ? (u(), d("div", ke,
|
|
64
|
+
(($ = f.modelValue) == null ? void 0 : $.length) === 0 ? (u(), d("div", ke, A(n(p)("menu.scheduler.dialog.sections.autolink.all_items")), 1)) : F("", !0),
|
|
65
65
|
((K = f.modelValue) == null ? void 0 : K.length) > 0 ? (u(), d("div", be, [
|
|
66
|
-
h("div", null,
|
|
66
|
+
h("div", null, A(n(p)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
|
|
67
67
|
t(te, {
|
|
68
68
|
content: n(p)("menu.scheduler.dialog.sections.autolink.tooltip"),
|
|
69
69
|
variant: "plain",
|
|
@@ -87,7 +87,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
87
87
|
items: Z,
|
|
88
88
|
"onUpdate:modelValue": (b) => z(k, b)
|
|
89
89
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
90
|
-
h("div", null,
|
|
90
|
+
h("div", null, A(n(p)("menu.scheduler.dialog.sections.filter.matches")), 1),
|
|
91
91
|
T.type === "category" ? (u(), I(B, {
|
|
92
92
|
key: 0,
|
|
93
93
|
"model-value": T.value,
|
|
@@ -100,7 +100,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
100
100
|
class: "flex items-center gap-4",
|
|
101
101
|
key: U
|
|
102
102
|
}, [
|
|
103
|
-
U > 0 ? (u(), d("div", Ue,
|
|
103
|
+
U > 0 ? (u(), d("div", Ue, A(n(p)("menu.scheduler.dialog.sections.filter.or")), 1)) : F("", !0),
|
|
104
104
|
h("div", xe, [
|
|
105
105
|
t(q, {
|
|
106
106
|
"model-value": b,
|
|
@@ -147,7 +147,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
147
147
|
}, Pe = { class: "flex flex-wrap gap-8" }, Te = {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: "pl-32 flex flex-col items-start gap-16"
|
|
150
|
-
},
|
|
150
|
+
}, Le = { class: "w-full" }, Ae = {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: "mt-8"
|
|
153
153
|
}, Ne = { class: "text-red-500 text-sm" }, Re = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Ye = { class: "px-16 py-8 flex-1" }, Me = { class: "px-16 py-8" }, Oe = { class: "flex gap-8 items-center justify-start" }, je = /* @__PURE__ */ ie({
|
|
@@ -225,7 +225,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
225
225
|
if (i.length <= 1) return null;
|
|
226
226
|
for (let l = 0; l < i.length; l++)
|
|
227
227
|
for (let y = l + 1; y < i.length; y++) {
|
|
228
|
-
const g = i[l],
|
|
228
|
+
const g = i[l], L = i[y], ae = w(g.start, g.end), j = w(L.start, L.end);
|
|
229
229
|
for (const x of ae)
|
|
230
230
|
for (const oe of j)
|
|
231
231
|
if (te(x, oe))
|
|
@@ -250,7 +250,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
250
250
|
}
|
|
251
251
|
const b = Y(() => J.categorizedItems.reduce((i, l) => {
|
|
252
252
|
const y = l.items.filter(
|
|
253
|
-
(g) => a.value.items.some(({ _id:
|
|
253
|
+
(g) => a.value.items.some(({ _id: L }) => g._id === L)
|
|
254
254
|
);
|
|
255
255
|
return y.length && i.push({ ...l, items: y }), i;
|
|
256
256
|
}, [])), U = Y(() => C.value === "custom" && a.value.timePeriod.length > 0 ? B(a.value.timePeriod) : null), Q = ye(
|
|
@@ -260,7 +260,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
260
260
|
}
|
|
261
261
|
);
|
|
262
262
|
return (i, l) => {
|
|
263
|
-
const y = _("FmTextField"), g = _("FmRadio"),
|
|
263
|
+
const y = _("FmTextField"), g = _("FmRadio"), L = _("FmRadioGroup"), ae = _("FmCheckbox"), j = _("FmTimePicker"), x = _("FmButton"), oe = _("FmSpacer"), re = _("FmForm"), ce = _("FmSideSheet");
|
|
264
264
|
return u(), I(ce, {
|
|
265
265
|
modelValue: D.value,
|
|
266
266
|
"onUpdate:modelValue": l[7] || (l[7] = (o) => D.value = o),
|
|
@@ -321,7 +321,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
321
321
|
}, {
|
|
322
322
|
default: v(() => [
|
|
323
323
|
h("div", null, [
|
|
324
|
-
t(
|
|
324
|
+
t(L, {
|
|
325
325
|
modelValue: a.value.repeat,
|
|
326
326
|
"onUpdate:modelValue": l[1] || (l[1] = (o) => a.value.repeat = o)
|
|
327
327
|
}, {
|
|
@@ -355,7 +355,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
355
355
|
})
|
|
356
356
|
]),
|
|
357
357
|
h("div", null, [
|
|
358
|
-
t(
|
|
358
|
+
t(L, {
|
|
359
359
|
label: n(e)("menu.scheduler.dialog.sections.period.title"),
|
|
360
360
|
modelValue: C.value,
|
|
361
361
|
"onUpdate:modelValue": l[3] || (l[3] = (o) => C.value = o)
|
|
@@ -375,7 +375,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
375
375
|
t(se, { name: "expand" }, {
|
|
376
376
|
default: v(() => [
|
|
377
377
|
C.value === "custom" ? (u(), d("div", Te, [
|
|
378
|
-
h("div",
|
|
378
|
+
h("div", Le, [
|
|
379
379
|
(u(!0), d(N, null, M(a.value.timePeriod, (o, E) => (u(), d("div", {
|
|
380
380
|
key: E,
|
|
381
381
|
class: "w-full flex gap-8 items-center"
|
|
@@ -397,8 +397,8 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
397
397
|
onClick: (R) => c(E)
|
|
398
398
|
}, null, 8, ["onClick"])
|
|
399
399
|
]))), 128)),
|
|
400
|
-
U.value ? (u(), d("div",
|
|
401
|
-
h("div", Ne,
|
|
400
|
+
U.value ? (u(), d("div", Ae, [
|
|
401
|
+
h("div", Ne, A(U.value), 1)
|
|
402
402
|
])) : F("", !0)
|
|
403
403
|
]),
|
|
404
404
|
t(x, {
|
|
@@ -457,12 +457,12 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
457
457
|
(u(!0), d(N, null, M(b.value, (o) => (u(), d("div", {
|
|
458
458
|
key: o.id
|
|
459
459
|
}, [
|
|
460
|
-
h("div", Re,
|
|
460
|
+
h("div", Re, A(o.name), 1),
|
|
461
461
|
(u(!0), d(N, null, M(o.items, (E) => (u(), d("div", {
|
|
462
462
|
key: E._id,
|
|
463
463
|
class: "flex border-b border-b-gray-100 items-center"
|
|
464
464
|
}, [
|
|
465
|
-
h("div", Ye,
|
|
465
|
+
h("div", Ye, A(E.name), 1),
|
|
466
466
|
h("div", Me, [
|
|
467
467
|
t(x, {
|
|
468
468
|
icon: "delete",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as
|
|
2
|
-
import { J as l,
|
|
1
|
+
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as C, unref as c, withCtx as V, createVNode as A } from "vue";
|
|
2
|
+
import { J as l, z as d, u as F } from "./menu-B0nEOY1F.js";
|
|
3
3
|
import { useI18n as b } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as P } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as v } from "./menuV2-
|
|
5
|
+
import { u as v } from "./menuV2-TGyLK_nb.js";
|
|
6
6
|
const y = /* @__PURE__ */ M({
|
|
7
7
|
__name: "AddSubcategoryDialogContentComponent",
|
|
8
8
|
props: {
|
|
@@ -27,11 +27,11 @@ const y = /* @__PURE__ */ M({
|
|
|
27
27
|
}
|
|
28
28
|
), (i, s) => {
|
|
29
29
|
const g = f("fm-text-field"), a = f("FmForm");
|
|
30
|
-
return
|
|
30
|
+
return C(), x(a, {
|
|
31
31
|
onValidationSuccess: s[1] || (s[1] = (e) => c(p)("primary"))
|
|
32
32
|
}, {
|
|
33
|
-
default:
|
|
34
|
-
|
|
33
|
+
default: V(() => [
|
|
34
|
+
A(g, {
|
|
35
35
|
modelValue: t.value,
|
|
36
36
|
"onUpdate:modelValue": s[0] || (s[0] = (e) => t.value = e),
|
|
37
37
|
rules: [(e) => !!e || c(n)("menu.subcategory.dialog.add.name.required")],
|