@feedmepos/mf-common 1.18.0-beta.4 → 1.18.0-beta.5
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/{CustomAttributesForm-bf6dfb87.js → CustomAttributesForm-6e7cfdb3.js} +1 -1
- package/dist/{ItemSelector-bf8fda26.js → ItemSelector-90e1b8ca.js} +285 -272
- package/dist/{RestaurantSelector-87f48f4d.js → RestaurantSelector-8687e464.js} +20 -20
- package/dist/{app-0c1cef77.js → app-4a06b8a0.js} +7 -5
- package/dist/{app-f61631fd.js → app-9575c6c7.js} +425 -427
- package/dist/app.d.ts +2 -0
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +1 -1
- package/dist/components/ItemSelector.vue.d.ts.map +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +2 -2
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ref as ct, computed as
|
2
|
-
import {
|
3
|
-
import { FmButtonVariant as
|
4
|
-
import { c as
|
5
|
-
import { c as un, l as fe, e as
|
1
|
+
import { ref as ct, computed as Le, defineComponent as si, onMounted as li, watch as Dn, resolveComponent as er, openBlock as Ve, createElementBlock as Xe, createElementVNode as Ge, toDisplayString as Pn, unref as Re, createVNode as Ye, isRef as $i, createCommentVNode as Ot, Fragment as nn, renderList as an, createBlock as tr, withCtx as on, normalizeClass as En, Transition as Mn } from "vue";
|
2
|
+
import { _ as Un, h as ci } from "./app-9575c6c7.js";
|
3
|
+
import { FmButtonVariant as zt } from "@feedmepos/ui-library";
|
4
|
+
import { c as At } from "./object-27ce045b.js";
|
5
|
+
import { c as un, l as fe, e as Bt, a as ve, d as tt, b as He, f as di, u as Fn, g as pi, n as hi } from "./app-4a06b8a0.js";
|
6
6
|
import { defineStore as fi } from "pinia";
|
7
7
|
import "vue-router";
|
8
8
|
var dt = {};
|
@@ -20818,7 +20818,7 @@ var rt = {}, yt = {};
|
|
20818
20818
|
})(yt);
|
20819
20819
|
(function(b) {
|
20820
20820
|
Object.defineProperty(b, "__esModule", { value: !0 }), b.FdoTakeawayOverriderV4 = b.FdoSchedulerOverriderV4 = b.FdoGroupOverriderV4 = b.FdoItemOverriderV4 = void 0;
|
20821
|
-
const y =
|
20821
|
+
const y = Bt, g = fe, _ = je, F = yt;
|
20822
20822
|
b.FdoItemOverriderV4 = g.z.object({
|
20823
20823
|
_id: g.z.string(),
|
20824
20824
|
name: g.z.string().nullish(),
|
@@ -20889,7 +20889,7 @@ var rt = {}, yt = {};
|
|
20889
20889
|
override: b.FdoMenuOverriderV4
|
20890
20890
|
}).describe(g.ZodMeta.couch().repo("mProductPosOverrideV4").isSingleDoc().build());
|
20891
20891
|
})(Sn);
|
20892
|
-
var wr = {},
|
20892
|
+
var wr = {}, Tt = {}, _r = {}, Fe = {};
|
20893
20893
|
Object.defineProperty(Fe, "__esModule", { value: !0 });
|
20894
20894
|
Fe.F_CATALOG_TYPE = Fe.F_ADDON_VISIBLE = Fe.F_PRODUCT_VISIBLE = Fe.F_MENU_MODULE_KEY = Fe.F_OVERRIDE_TYPE = Fe.F_PRODUCT_TYPE = Fe.F_ADDON_GROUP_TYPE = void 0;
|
20895
20895
|
const pt = fe;
|
@@ -21046,25 +21046,25 @@ var kr = {};
|
|
21046
21046
|
bindings: y.z.array(b.FdoMenuCookingStepBinding)
|
21047
21047
|
});
|
21048
21048
|
})(kr);
|
21049
|
-
var
|
21050
|
-
Object.defineProperty(
|
21051
|
-
|
21049
|
+
var Vt = {};
|
21050
|
+
Object.defineProperty(Vt, "__esModule", { value: !0 });
|
21051
|
+
Vt.FdoMenuCategory = void 0;
|
21052
21052
|
const mi = tt, rr = fe;
|
21053
|
-
|
21053
|
+
Vt.FdoMenuCategory = rr.z.object({
|
21054
21054
|
_id: rr.z.string(),
|
21055
21055
|
name: rr.z.string(),
|
21056
21056
|
position: rr.z.number().nullish()
|
21057
21057
|
}).describe(mi.ZodMeta.couch().repo("mProductCategory").build());
|
21058
|
-
var
|
21059
|
-
Object.defineProperty(
|
21060
|
-
|
21058
|
+
var Gt = {};
|
21059
|
+
Object.defineProperty(Gt, "__esModule", { value: !0 });
|
21060
|
+
Gt.FdoMenuTakeaway = void 0;
|
21061
21061
|
const bi = ve, ln = fe;
|
21062
|
-
|
21062
|
+
Gt.FdoMenuTakeaway = ln.z.object({
|
21063
21063
|
_id: ln.z.string(),
|
21064
21064
|
name: ln.z.string(),
|
21065
21065
|
price: bi.entity.FdoDinero
|
21066
21066
|
});
|
21067
|
-
var
|
21067
|
+
var Rt = {}, Er = {};
|
21068
21068
|
(function(b) {
|
21069
21069
|
Object.defineProperty(b, "__esModule", { value: !0 }), b.FdoMenuOverride = b.FdoOverrideAddonOrderFrom = b.FdoOverrideAddonVariantPrice = b.FdoOverrideAddonPrice = b.FdoOverrideAddonAvailable = b.FdoOverrideAddonName = b.FdoOverrideProductName = b.FdoOverrideProductScheduler = b.FdoOverrideProductOrderFrom = b.FdoOverrideProductVariantCode = b.FdoOverrideProductCode = b.FdoOverrideProductVariantPrice = b.FdoOverrideProductPrice = b.FdoMenuOverride_Addon = b.FdoMenuOverride_Product = void 0;
|
21070
21070
|
const y = ve, g = tt, _ = fe, F = Fe, O = je;
|
@@ -21145,10 +21145,10 @@ var Vt = {}, Er = {};
|
|
21145
21145
|
]).describe(g.ZodMeta.dart().discriminatedUnion({ baseType: "FdoMenuOverride_Addon" }).build())))
|
21146
21146
|
});
|
21147
21147
|
})(Er);
|
21148
|
-
Object.defineProperty(
|
21149
|
-
|
21148
|
+
Object.defineProperty(Rt, "__esModule", { value: !0 });
|
21149
|
+
Rt.FdoMenuCatalog = void 0;
|
21150
21150
|
const vi = ve, mt = fe, yi = Er;
|
21151
|
-
|
21151
|
+
Rt.FdoMenuCatalog = mt.z.object({
|
21152
21152
|
_id: mt.z.string(),
|
21153
21153
|
name: mt.z.string(),
|
21154
21154
|
inclusiveTaxes: mt.z.array(vi.entity.FdoTaxInclusion).nullish(),
|
@@ -21207,7 +21207,7 @@ kt.FdoMenuRecipe = nr.z.object({
|
|
21207
21207
|
});
|
21208
21208
|
(function(b) {
|
21209
21209
|
Object.defineProperty(b, "__esModule", { value: !0 }), b.FdoMenu = b.FdoMasterCatalogSetting = b.FdoMenuModule = void 0;
|
21210
|
-
const y = ve, g = tt, _ = fe, F = _r, O = _t, q = ht, J = kr, X = wt, N =
|
21210
|
+
const y = ve, g = tt, _ = fe, F = _r, O = _t, q = ht, J = kr, X = wt, N = Vt, I = Gt, T = Rt, V = yt, K = Fr, L = jr, te = kt;
|
21211
21211
|
b.FdoMenuModule = _.z.object({
|
21212
21212
|
product: _.z.array(F.FdoMenuProduct),
|
21213
21213
|
category: _.z.array(N.FdoMenuCategory),
|
@@ -21229,7 +21229,7 @@ kt.FdoMenuRecipe = nr.z.object({
|
|
21229
21229
|
masterCatalogSetting: b.FdoMasterCatalogSetting.nullish(),
|
21230
21230
|
updatedAt: _.z.string().nullish()
|
21231
21231
|
}).describe(g.ZodMeta.couch().repo("mMenuV3").build());
|
21232
|
-
})(
|
21232
|
+
})(Tt);
|
21233
21233
|
var Et = {};
|
21234
21234
|
Object.defineProperty(Et, "__esModule", { value: !0 });
|
21235
21235
|
Et.FdoMenuV4Category = void 0;
|
@@ -21253,7 +21253,7 @@ Ft.FdoMenuV4Group = Je.z.object({
|
|
21253
21253
|
position: Je.z.number(),
|
21254
21254
|
items: Je.z.array(ki.FdoItemOverriderV4)
|
21255
21255
|
});
|
21256
|
-
var
|
21256
|
+
var Kt = {}, nt = {};
|
21257
21257
|
Object.defineProperty(nt, "__esModule", { value: !0 });
|
21258
21258
|
nt.FdtoV4Tax = void 0;
|
21259
21259
|
const ar = fe;
|
@@ -21297,7 +21297,7 @@ nt.FdtoV4Tax = ar.z.object({
|
|
21297
21297
|
costing: y.entity.FdoDinero.nullish(),
|
21298
21298
|
customAttributes: g.z.record(g.z.any()).nullish()
|
21299
21299
|
});
|
21300
|
-
})(
|
21300
|
+
})(Kt);
|
21301
21301
|
var zn = {};
|
21302
21302
|
(function(b) {
|
21303
21303
|
Object.defineProperty(b, "__esModule", { value: !0 }), b.FdoMenuV4Scheduler = b.FdoMenuV4SchedulerAutoLinkConfigFilter = b.F_SCHEDULER_FILTER_TYPE = void 0;
|
@@ -21319,15 +21319,15 @@ var zn = {};
|
|
21319
21319
|
filters: y.z.array(b.FdoMenuV4SchedulerAutoLinkConfigFilter).nullish()
|
21320
21320
|
});
|
21321
21321
|
})(zn);
|
21322
|
-
var
|
21323
|
-
Object.defineProperty(
|
21324
|
-
|
21325
|
-
const
|
21326
|
-
|
21327
|
-
_id:
|
21328
|
-
name:
|
21329
|
-
position:
|
21330
|
-
items:
|
21322
|
+
var Lt = {};
|
21323
|
+
Object.defineProperty(Lt, "__esModule", { value: !0 });
|
21324
|
+
Lt.FdoMenuServeSequence = void 0;
|
21325
|
+
const Dt = fe, Ei = rt;
|
21326
|
+
Lt.FdoMenuServeSequence = Dt.z.object({
|
21327
|
+
_id: Dt.z.string(),
|
21328
|
+
name: Dt.z.string(),
|
21329
|
+
position: Dt.z.number(),
|
21330
|
+
items: Dt.z.array(Ei.FdoItemOverriderV4)
|
21331
21331
|
});
|
21332
21332
|
var jt = {};
|
21333
21333
|
Object.defineProperty(jt, "__esModule", { value: !0 });
|
@@ -21353,7 +21353,7 @@ var Sr = {};
|
|
21353
21353
|
})(Sr);
|
21354
21354
|
(function(b) {
|
21355
21355
|
Object.defineProperty(b, "__esModule", { value: !0 }), b.FdoMenuV4 = b.FdoMenuV4Info = b.FdoMenuModuleV4 = void 0;
|
21356
|
-
const y = tt, g = fe, _ =
|
21356
|
+
const y = tt, g = fe, _ = Tt, F = kr, O = _t, q = kt, J = jr, X = ht, N = yr, I = Et, T = Ft, V = Kt, K = zn, L = Lt, te = jt, se = Sr;
|
21357
21357
|
b.FdoMenuModuleV4 = g.z.object({
|
21358
21358
|
catalog: g.z.array(N.FdoMenuV4Catalog),
|
21359
21359
|
category: g.z.array(I.FdoMenuV4Category),
|
@@ -21385,7 +21385,7 @@ var Sr = {};
|
|
21385
21385
|
var An = {};
|
21386
21386
|
(function(b) {
|
21387
21387
|
Object.defineProperty(b, "__esModule", { value: !0 }), b.FdtoPublishMenu = b.FdtoPublishMenuRestaurant = b.FdtoRestaurantWithMenuV4 = b.FdtoGetFallbackPriceRes = b.FdtoGetFallbackPriceReq = b.FdtoBuiltMenu = b.FdtoBuiltGroup = b.FdtoBuiltItem = b.FdtoVisibility = void 0;
|
21388
|
-
const y = ve, g = fe, _ = je, F = nt, O = Fe, q = wr, J = Et, X = Ft, N =
|
21388
|
+
const y = ve, g = fe, _ = je, F = nt, O = Fe, q = wr, J = Et, X = Ft, N = Kt, I = rt, T = jt, V = Sr;
|
21389
21389
|
b.FdtoVisibility = g.z.object({
|
21390
21390
|
visible: O.F_PRODUCT_VISIBLE,
|
21391
21391
|
reason: g.z.string()
|
@@ -21478,7 +21478,7 @@ var An = {};
|
|
21478
21478
|
})(An);
|
21479
21479
|
(function(b) {
|
21480
21480
|
Object.defineProperty(b, "__esModule", { value: !0 }), b.FdtoOverridedMenu = b.FdtoOverridedMenuModules = b.FdtoOverridedMenuItem = b.FdtoOverridedMenuItemVisibility = b.FdtoOverrideMenuReq = void 0;
|
21481
|
-
const y = fe, g = Sn, _ = wr, F = An, O =
|
21481
|
+
const y = fe, g = Sn, _ = wr, F = An, O = Kt, q = nt;
|
21482
21482
|
b.FdtoOverrideMenuReq = y.z.object({
|
21483
21483
|
catalogId: y.z.string().nullish(),
|
21484
21484
|
dateTime: y.z.string().nullish(),
|
@@ -21511,7 +21511,7 @@ St.FdoPosOverride = qn.z.object({
|
|
21511
21511
|
}).describe(ji.ZodMeta.couch().repo("mProductPosOverrideV3").isSingleDoc().build());
|
21512
21512
|
(function(b) {
|
21513
21513
|
Object.defineProperty(b, "__esModule", { value: !0 }), b.FdtoGetItemLinkedStatus = b.FdtoGetItemLinkedCatalog = b.FdtoMenuGetPriceRes = b.FdtoMenuGetPriceReq = b.FdtoMenuGetPriceItem = b.FdtoMenuGetPriceItemTakeaway = b.FdtoMenuGetPriceSubItem = b.FdtoGetSettingMenuReq = b.FdtoGetCatalogIdRes = b.FdtoGetBillCatalogIdReq = b.FdtoGetCatalogIdReq = b.FdtoRestaurantCatalog = void 0;
|
21514
|
-
const y = ve, g =
|
21514
|
+
const y = ve, g = Bt, _ = fe, F = jn, O = St, q = Tt, J = Fe;
|
21515
21515
|
b.FdtoRestaurantCatalog = _.z.object({
|
21516
21516
|
catalogId: _.z.string().nullish(),
|
21517
21517
|
inHouseDelivery: y.entity.FdoRestaurantInHouseDelivery.nullish(),
|
@@ -21605,7 +21605,7 @@ Ar.F_MENU_MODULE_V4_KEY = zi.z.nativeEnum({
|
|
21605
21605
|
var ni = {};
|
21606
21606
|
(function(b) {
|
21607
21607
|
Object.defineProperty(b, "__esModule", { value: !0 }), b.FdtoMergeMenuReq = b.FdtoMergedAddonGroup = b.FdtoMergedAddon = b.FdtoAddonVisible = b.FdtoMergedProduct = b.FdtoVariantSelectionGroup = b.FdtoVariantSelectionOption = b.FdtoMergedProductTakeaway = b.FdtoProductVisible = void 0;
|
21608
|
-
const y = ve, g = fe, _ = Fe, F = yt, O = nt, q = wt, J = _r, X = Fr, N = St, I =
|
21608
|
+
const y = ve, g = fe, _ = Fe, F = yt, O = nt, q = wt, J = _r, X = Fr, N = St, I = Tt, T = je;
|
21609
21609
|
b.FdtoProductVisible = g.z.object({
|
21610
21610
|
visible: _.F_PRODUCT_VISIBLE,
|
21611
21611
|
reason: g.z.string()
|
@@ -21679,7 +21679,7 @@ var ni = {};
|
|
21679
21679
|
});
|
21680
21680
|
})(ni);
|
21681
21681
|
(function(b) {
|
21682
|
-
var y =
|
21682
|
+
var y = He && He.__createBinding || (Object.create ? function(_, F, O, q) {
|
21683
21683
|
q === void 0 && (q = O);
|
21684
21684
|
var J = Object.getOwnPropertyDescriptor(F, O);
|
21685
21685
|
(!J || ("get" in J ? !F.__esModule : J.writable || J.configurable)) && (J = { enumerable: !0, get: function() {
|
@@ -21687,13 +21687,13 @@ var ni = {};
|
|
21687
21687
|
} }), Object.defineProperty(_, q, J);
|
21688
21688
|
} : function(_, F, O, q) {
|
21689
21689
|
q === void 0 && (q = O), _[q] = F[O];
|
21690
|
-
}), g =
|
21690
|
+
}), g = He && He.__exportStar || function(_, F) {
|
21691
21691
|
for (var O in _)
|
21692
21692
|
O !== "default" && !Object.prototype.hasOwnProperty.call(F, O) && y(F, _, O);
|
21693
21693
|
};
|
21694
|
-
Object.defineProperty(b, "__esModule", { value: !0 }), g(jn, b), g(ri, b), g(Or, b), g(zr, b), g(je, b), g(nt, b), g(St, b), g(Fe, b), g(
|
21694
|
+
Object.defineProperty(b, "__esModule", { value: !0 }), g(jn, b), g(ri, b), g(Or, b), g(zr, b), g(je, b), g(nt, b), g(St, b), g(Fe, b), g(Vt, b), g(kr, b), g(Er, b), g(_t, b), g(kt, b), g(yt, b), g(Gt, b), g(ht, b), g(wt, b), g(Ar, b), g(Et, b), g(Kt, b), g(rt, b), g(zn, b), g(Lt, b), g(jt, b), g(Fr, b), g(Rt, b), g(_r, b), g(jr, b), g(yr, b), g(Ft, b), g(Tt, b), g(ni, b), g(Sn, b), g(Sr, b), g(wr, b), g(An, b);
|
21695
21695
|
})(we);
|
21696
|
-
var ii = {}, ai = {}, Dr = {}, Te = {},
|
21696
|
+
var ii = {}, ai = {}, Dr = {}, Te = {}, Ht = {}, ft = {};
|
21697
21697
|
Object.defineProperty(ft, "__esModule", { value: !0 });
|
21698
21698
|
ft.getMenuVersion = Di;
|
21699
21699
|
ft.generateDocIdWithUniqueRandomString = Pi;
|
@@ -21713,7 +21713,7 @@ function Mi(b, y) {
|
|
21713
21713
|
const g = (_) => _.replace(/([.+?^=!:{}()|\[\]\/\\])/g, "\\$1");
|
21714
21714
|
return new RegExp("^" + g(y).replace(/[*]/g, ".*").replace(/[$]/g, "\\d*") + "$").test(b);
|
21715
21715
|
}
|
21716
|
-
var
|
21716
|
+
var Pt = {}, Ae = {};
|
21717
21717
|
Object.defineProperty(Ae, "__esModule", { value: !0 });
|
21718
21718
|
Ae.BaseOperation = void 0;
|
21719
21719
|
const Nn = ve, or = we, Ui = ft;
|
@@ -22060,7 +22060,7 @@ var bt = {}, oi = { exports: {} };
|
|
22060
22060
|
(function(b, y) {
|
22061
22061
|
(function(g, _) {
|
22062
22062
|
b.exports = _();
|
22063
|
-
})(
|
22063
|
+
})(He, function() {
|
22064
22064
|
var g = 1e3, _ = 6e4, F = 36e5, O = "millisecond", q = "second", J = "minute", X = "hour", N = "day", I = "week", T = "month", V = "quarter", K = "year", L = "date", te = "Invalid Date", se = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, G = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(r) {
|
22065
22065
|
var i = ["th", "st", "nd", "rd"], ne = r % 100;
|
22066
22066
|
return "[" + r + (i[(ne - 20) % 10] || i[ne] || i[0]) + "]";
|
@@ -22346,12 +22346,12 @@ var bt = {}, oi = { exports: {} };
|
|
22346
22346
|
}, re.en = B[x], re.Ls = B, re.p = {}, re;
|
22347
22347
|
});
|
22348
22348
|
})(oi);
|
22349
|
-
var Xi = oi.exports, Qe = {},
|
22350
|
-
function
|
22349
|
+
var Xi = oi.exports, Qe = {}, Mt = {}, Ke = {}, Vn;
|
22350
|
+
function Yt() {
|
22351
22351
|
if (Vn)
|
22352
|
-
return
|
22353
|
-
Vn = 1, Object.defineProperty(
|
22354
|
-
const b = ve, y = we, g = Ae, _ =
|
22352
|
+
return Ke;
|
22353
|
+
Vn = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.VariantOperation = void 0, Ke.isUsingVariantGroup = J, Ke.hasVariantCombination = X, Ke.removeItemOverridersWithCK = I, Ke.itemUseVariant = V, Ke.removeIOWithVariant = K, Ke.removeVariantInItem = L;
|
22354
|
+
const b = ve, y = we, g = Ae, _ = Qt(), F = Jt(), O = it(), q = Pr();
|
22355
22355
|
function J(G, C) {
|
22356
22356
|
var E;
|
22357
22357
|
return (E = C.variant) === null || E === void 0 ? void 0 : E.variantGroupIds.includes(G);
|
@@ -22460,7 +22460,7 @@ function Lt() {
|
|
22460
22460
|
return E.result.item = this.itemOperation.deleteVariantAffected(U, E), E.result.group = this.groupOperation.deleteVariantAffected(U, E), E.result.scheduler = this.schedulerOperation.deleteVariantAffected(U, E), E.result.catalog = this.catalogOperation.deleteVariantAffected(U, E), E;
|
22461
22461
|
}
|
22462
22462
|
}
|
22463
|
-
|
22463
|
+
Ke.VariantOperation = te;
|
22464
22464
|
function se(G, C) {
|
22465
22465
|
if (Array.isArray(G) && Array.isArray(C))
|
22466
22466
|
return G.length === C.length && G.every((E, U) => se(E, C[U]));
|
@@ -22470,14 +22470,14 @@ function Lt() {
|
|
22470
22470
|
} else
|
22471
22471
|
return G === C;
|
22472
22472
|
}
|
22473
|
-
return
|
22473
|
+
return Ke;
|
22474
22474
|
}
|
22475
22475
|
var Gn;
|
22476
22476
|
function Pr() {
|
22477
22477
|
if (Gn)
|
22478
|
-
return
|
22479
|
-
Gn = 1, Object.defineProperty(
|
22480
|
-
const b = ve, y = we, g = Ae, _ =
|
22478
|
+
return Mt;
|
22479
|
+
Gn = 1, Object.defineProperty(Mt, "__esModule", { value: !0 }), Mt.SchedulerOperation = void 0;
|
22480
|
+
const b = ve, y = we, g = Ae, _ = Qt(), F = it(), O = Xt(), q = Yt();
|
22481
22481
|
class J extends g.BaseOperation {
|
22482
22482
|
constructor() {
|
22483
22483
|
super(...arguments), this.module = y.F_MENU_MODULE_V4_KEY.enum.scheduler, this.catalogOperation = new _.CatalogOperation();
|
@@ -22562,14 +22562,14 @@ function Pr() {
|
|
22562
22562
|
}), V;
|
22563
22563
|
}
|
22564
22564
|
}
|
22565
|
-
return
|
22565
|
+
return Mt.SchedulerOperation = J, Mt;
|
22566
22566
|
}
|
22567
22567
|
var Rn;
|
22568
|
-
function
|
22568
|
+
function Xt() {
|
22569
22569
|
if (Rn)
|
22570
22570
|
return Qe;
|
22571
22571
|
Rn = 1, Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.TakeawayOperation = void 0, Qe.usingTakeaway = J, Qe.removeTakeawayused = X, Qe.addTakeawayused = N;
|
22572
|
-
const b = ve, y = we, g = Ae, _ =
|
22572
|
+
const b = ve, y = we, g = Ae, _ = Qt(), F = Jt(), O = it(), q = Pr();
|
22573
22573
|
function J(T, V) {
|
22574
22574
|
var K;
|
22575
22575
|
return T.takeawayUsed === V || ((K = T == null ? void 0 : T.groups) === null || K === void 0 ? void 0 : K.some((L) => (L.items || []).some((te) => J(te, V))));
|
@@ -22634,15 +22634,15 @@ function Ht() {
|
|
22634
22634
|
return Qe.TakeawayOperation = I, Qe;
|
22635
22635
|
}
|
22636
22636
|
var Kn;
|
22637
|
-
function
|
22637
|
+
function Jt() {
|
22638
22638
|
if (Kn)
|
22639
22639
|
return bt;
|
22640
22640
|
Kn = 1;
|
22641
|
-
var b =
|
22641
|
+
var b = He && He.__importDefault || function(se) {
|
22642
22642
|
return se && se.__esModule ? se : { default: se };
|
22643
22643
|
};
|
22644
22644
|
Object.defineProperty(bt, "__esModule", { value: !0 }), bt.GroupOperation = void 0, bt.generateGroupKey = N;
|
22645
|
-
const y = ve, g = b(Xi), _ = we, F = dt, O = Ae, q = it(), J =
|
22645
|
+
const y = ve, g = b(Xi), _ = we, F = dt, O = Ae, q = it(), J = Xt(), X = Yt();
|
22646
22646
|
function N(se) {
|
22647
22647
|
return `${se}//${(/* @__PURE__ */ new Date()).toISOString()}_${y.utils.randomString(6)}`;
|
22648
22648
|
}
|
@@ -22944,7 +22944,7 @@ function it() {
|
|
22944
22944
|
if (Hn)
|
22945
22945
|
return lt;
|
22946
22946
|
Hn = 1, Object.defineProperty(lt, "__esModule", { value: !0 }), lt.ItemOperation = void 0, lt.cleanItems = K, lt.removeItemOverriders = te;
|
22947
|
-
const b = ve, y = we, g = dt, _ = ze, F = Ae, O =
|
22947
|
+
const b = ve, y = we, g = dt, _ = ze, F = Ae, O = Qt(), q = Jt(), J = ui(), X = Pr(), N = Xt(), I = Yt(), T = ft, V = (C, E, U, x) => {
|
22948
22948
|
let B = !1;
|
22949
22949
|
return "combinationKey" in C && (B = (U == null ? void 0 : U.some((R) => {
|
22950
22950
|
var ie;
|
@@ -23228,11 +23228,11 @@ function it() {
|
|
23228
23228
|
return lt;
|
23229
23229
|
}
|
23230
23230
|
var Yn;
|
23231
|
-
function
|
23231
|
+
function Qt() {
|
23232
23232
|
if (Yn)
|
23233
|
-
return
|
23234
|
-
Yn = 1, Object.defineProperty(
|
23235
|
-
const b = ve, y = we, g = Ae, _ = it(), F =
|
23233
|
+
return Pt;
|
23234
|
+
Yn = 1, Object.defineProperty(Pt, "__esModule", { value: !0 }), Pt.CatalogOperation = void 0;
|
23235
|
+
const b = ve, y = we, g = Ae, _ = it(), F = Xt(), O = Yt();
|
23236
23236
|
class q extends g.BaseOperation {
|
23237
23237
|
constructor() {
|
23238
23238
|
super(...arguments), this.module = y.F_MENU_MODULE_V4_KEY.enum.catalog;
|
@@ -23353,7 +23353,7 @@ function Xt() {
|
|
23353
23353
|
}), T;
|
23354
23354
|
}
|
23355
23355
|
}
|
23356
|
-
return
|
23356
|
+
return Pt.CatalogOperation = q, Pt;
|
23357
23357
|
}
|
23358
23358
|
var Mr = {};
|
23359
23359
|
Object.defineProperty(Mr, "__esModule", { value: !0 });
|
@@ -23445,10 +23445,10 @@ class ea extends Zi.BaseOperation {
|
|
23445
23445
|
}
|
23446
23446
|
}
|
23447
23447
|
Ur.CookingGuideOperation = ea;
|
23448
|
-
var
|
23449
|
-
Object.defineProperty(
|
23450
|
-
|
23451
|
-
const pn = ve, ur =
|
23448
|
+
var Wt = {};
|
23449
|
+
Object.defineProperty(Wt, "__esModule", { value: !0 });
|
23450
|
+
Wt.RecipeOperation = void 0;
|
23451
|
+
const pn = ve, ur = Bt, Ze = we, ta = Ae;
|
23452
23452
|
class ra extends ta.BaseOperation {
|
23453
23453
|
constructor() {
|
23454
23454
|
super(...arguments), this.module = Ze.F_MENU_MODULE_V4_KEY.enum.recipe;
|
@@ -23567,7 +23567,7 @@ class ra extends ta.BaseOperation {
|
|
23567
23567
|
}), g;
|
23568
23568
|
}
|
23569
23569
|
}
|
23570
|
-
|
23570
|
+
Wt.RecipeOperation = ra;
|
23571
23571
|
var qr = {};
|
23572
23572
|
Object.defineProperty(qr, "__esModule", { value: !0 });
|
23573
23573
|
qr.ServeSequenceOperation = void 0;
|
@@ -23608,10 +23608,10 @@ class aa extends ia.BaseOperation {
|
|
23608
23608
|
}
|
23609
23609
|
}
|
23610
23610
|
qr.ServeSequenceOperation = aa;
|
23611
|
-
var
|
23612
|
-
Object.defineProperty(
|
23613
|
-
|
23614
|
-
const oa = Ae, et = we, sr = ve, Jn =
|
23611
|
+
var Zt = {};
|
23612
|
+
Object.defineProperty(Zt, "__esModule", { value: !0 });
|
23613
|
+
Zt.SkuOperation = void 0;
|
23614
|
+
const oa = Ae, et = we, sr = ve, Jn = Bt, ua = dt;
|
23615
23615
|
class sa extends oa.BaseOperation {
|
23616
23616
|
constructor() {
|
23617
23617
|
super(...arguments), this.module = et.F_MENU_MODULE_V4_KEY.enum.sku;
|
@@ -23727,13 +23727,13 @@ class sa extends oa.BaseOperation {
|
|
23727
23727
|
}), g;
|
23728
23728
|
}
|
23729
23729
|
}
|
23730
|
-
|
23730
|
+
Zt.SkuOperation = sa;
|
23731
23731
|
var Cr = {};
|
23732
23732
|
Object.defineProperty(Cr, "__esModule", { value: !0 });
|
23733
23733
|
Cr.UnitOperation = void 0;
|
23734
|
-
const
|
23734
|
+
const Nt = ve, la = Bt, Oe = we, $a = Ae, ca = Jt(), da = it(), pa = Wt, ha = Zt;
|
23735
23735
|
function fa(b, y) {
|
23736
|
-
const g = (0,
|
23736
|
+
const g = (0, Nt.DineroFactory)(b).convertPrecision(y).toObject();
|
23737
23737
|
return {
|
23738
23738
|
amount: g.amount,
|
23739
23739
|
precision: g.precision
|
@@ -23743,7 +23743,7 @@ function lr(b, y, g, _) {
|
|
23743
23743
|
let F = !1;
|
23744
23744
|
return {
|
23745
23745
|
data: (b || []).map((O) => {
|
23746
|
-
const q =
|
23746
|
+
const q = Nt.utils.clone(O);
|
23747
23747
|
if (q.type === la.F_INVENTORY_BINDING_TYPE.enum.SKU && y.includes(q.id))
|
23748
23748
|
if (F = !0, q.measurement) {
|
23749
23749
|
const J = _.find((X) => {
|
@@ -23766,7 +23766,7 @@ class ga extends $a.BaseOperation {
|
|
23766
23766
|
super(...arguments), this.module = Oe.F_MENU_MODULE_V4_KEY.enum.unit, this.skuOperation = new ha.SkuOperation(), this.recipeOperation = new pa.RecipeOperation(), this.itemOperation = new da.ItemOperation(), this.groupOperation = new ca.GroupOperation();
|
23767
23767
|
}
|
23768
23768
|
create(y) {
|
23769
|
-
const g =
|
23769
|
+
const g = Nt.utils.clone(y.original), _ = Object.assign(Object.assign({}, y.data), { _id: this.generateDocId() });
|
23770
23770
|
return g[this.module].push(_), {
|
23771
23771
|
result: g,
|
23772
23772
|
validateError: [],
|
@@ -23774,7 +23774,7 @@ class ga extends $a.BaseOperation {
|
|
23774
23774
|
};
|
23775
23775
|
}
|
23776
23776
|
update(y) {
|
23777
|
-
const g =
|
23777
|
+
const g = Nt.utils.clone(y.original), _ = g[this.module].findIndex((J) => J._id === y.data._id), F = this.validateUpdate(y);
|
23778
23778
|
if (F.length > 0)
|
23779
23779
|
return {
|
23780
23780
|
result: g,
|
@@ -23792,7 +23792,7 @@ class ga extends $a.BaseOperation {
|
|
23792
23792
|
};
|
23793
23793
|
}
|
23794
23794
|
delete(y) {
|
23795
|
-
const g =
|
23795
|
+
const g = Nt.utils.clone(y.original), _ = g[this.module].findIndex((O) => O._id === y.data), F = this.validateDelete(y);
|
23796
23796
|
return F.length > 0 ? {
|
23797
23797
|
result: g,
|
23798
23798
|
validateError: F,
|
@@ -23954,10 +23954,10 @@ class ga extends $a.BaseOperation {
|
|
23954
23954
|
}
|
23955
23955
|
}
|
23956
23956
|
Cr.UnitOperation = ga;
|
23957
|
-
Object.defineProperty(
|
23958
|
-
|
23959
|
-
const ma = ve, Be = we, ba = ft, va =
|
23960
|
-
class
|
23957
|
+
Object.defineProperty(Ht, "__esModule", { value: !0 });
|
23958
|
+
Ht.RequestRunner = void 0;
|
23959
|
+
const ma = ve, Be = we, ba = ft, va = Qt(), ya = Mr, wa = Ur, _a = Jt(), ka = it(), Ea = ui(), Fa = Wt, ja = Pr(), Sa = qr, Oa = Zt, za = Xt(), Aa = Cr, Da = Yt();
|
23960
|
+
class It {
|
23961
23961
|
static operation(y, g) {
|
23962
23962
|
let _ = {
|
23963
23963
|
result: g,
|
@@ -23973,7 +23973,7 @@ class xt {
|
|
23973
23973
|
version: F,
|
23974
23974
|
data: q.data,
|
23975
23975
|
link: "link" in q ? q.link : void 0
|
23976
|
-
}, X =
|
23976
|
+
}, X = It.module[q.module][q.operation](J), N = [], I = ma.utils.clone(X.affected);
|
23977
23977
|
for (; I.length > 0; ) {
|
23978
23978
|
const T = I.shift();
|
23979
23979
|
if (!T)
|
@@ -23983,7 +23983,7 @@ class xt {
|
|
23983
23983
|
version: F,
|
23984
23984
|
data: "data" in T ? T.data : void 0,
|
23985
23985
|
link: "link" in T ? T.link : void 0
|
23986
|
-
}, { result: K, affected: L, validateError: te } =
|
23986
|
+
}, { result: K, affected: L, validateError: te } = It.module[T.module].update(V);
|
23987
23987
|
X.result = K, X.affected = L, X.validateError = [...X.validateError, ...te], N.push(T), I.push(...X.affected);
|
23988
23988
|
}
|
23989
23989
|
X.affected = N, _ = Object.assign(Object.assign({}, X), { validateError: [..._.validateError, ...X.validateError] });
|
@@ -23991,8 +23991,8 @@ class xt {
|
|
23991
23991
|
return _;
|
23992
23992
|
}
|
23993
23993
|
}
|
23994
|
-
|
23995
|
-
|
23994
|
+
Ht.RequestRunner = It;
|
23995
|
+
It.module = {
|
23996
23996
|
[Be.F_MENU_MODULE_V4_KEY.enum.catalog]: new va.CatalogOperation(),
|
23997
23997
|
[Be.F_MENU_MODULE_V4_KEY.enum.category]: new ya.CategoryOperation(),
|
23998
23998
|
[Be.F_MENU_MODULE_V4_KEY.enum.group]: new _a.GroupOperation(),
|
@@ -24010,7 +24010,7 @@ xt.module = {
|
|
24010
24010
|
Object.defineProperty(Te, "__esModule", { value: !0 });
|
24011
24011
|
Te.Runnable = void 0;
|
24012
24012
|
Te.requestToArray = qa;
|
24013
|
-
const Pa = dt, Ma =
|
24013
|
+
const Pa = dt, Ma = Ht;
|
24014
24014
|
class Ua {
|
24015
24015
|
constructor(y) {
|
24016
24016
|
this.result = Pa.Menu.generator.initMenuV4(), this.req = y;
|
@@ -24051,23 +24051,23 @@ function qa(b, y) {
|
|
24051
24051
|
}
|
24052
24052
|
Object.defineProperty(Dr, "__esModule", { value: !0 });
|
24053
24053
|
Dr.categoryRequestManager = void 0;
|
24054
|
-
const fn = we,
|
24054
|
+
const fn = we, Ut = Te, cr = ze;
|
24055
24055
|
Dr.categoryRequestManager = {
|
24056
24056
|
createOrUpdate(b) {
|
24057
|
-
const y = (0,
|
24057
|
+
const y = (0, Ut.requestToArray)(b, (g) => ({
|
24058
24058
|
module: fn.F_MENU_MODULE_V4_KEY.enum.category,
|
24059
24059
|
operation: g._id ? cr.F_OPERATION_TYPE.update : cr.F_OPERATION_TYPE.create,
|
24060
24060
|
data: g
|
24061
24061
|
}));
|
24062
|
-
return new
|
24062
|
+
return new Ut.Runnable(y);
|
24063
24063
|
},
|
24064
24064
|
delete(b) {
|
24065
|
-
const y = (0,
|
24065
|
+
const y = (0, Ut.requestToArray)(b, (g) => ({
|
24066
24066
|
module: fn.F_MENU_MODULE_V4_KEY.enum.category,
|
24067
24067
|
operation: cr.F_OPERATION_TYPE.delete,
|
24068
24068
|
data: g
|
24069
24069
|
}));
|
24070
|
-
return new
|
24070
|
+
return new Ut.Runnable(y);
|
24071
24071
|
},
|
24072
24072
|
rearrange(b) {
|
24073
24073
|
const y = {
|
@@ -24075,7 +24075,7 @@ Dr.categoryRequestManager = {
|
|
24075
24075
|
operation: cr.F_OPERATION_TYPE.rearrange,
|
24076
24076
|
data: b
|
24077
24077
|
};
|
24078
|
-
return new
|
24078
|
+
return new Ut.Runnable([y]);
|
24079
24079
|
}
|
24080
24080
|
};
|
24081
24081
|
var xr = {};
|
@@ -24103,11 +24103,11 @@ xr.catalogRequestManager = {
|
|
24103
24103
|
var Nr = {};
|
24104
24104
|
Object.defineProperty(Nr, "__esModule", { value: !0 });
|
24105
24105
|
Nr.groupRequestManager = void 0;
|
24106
|
-
const
|
24106
|
+
const qt = we, $t = Te, pr = ze;
|
24107
24107
|
Nr.groupRequestManager = {
|
24108
24108
|
createOrUpdate(b) {
|
24109
24109
|
const y = (0, $t.requestToArray)(b, (g) => ({
|
24110
|
-
module:
|
24110
|
+
module: qt.F_MENU_MODULE_V4_KEY.enum.group,
|
24111
24111
|
operation: g._id ? pr.F_OPERATION_TYPE.update : pr.F_OPERATION_TYPE.create,
|
24112
24112
|
data: g
|
24113
24113
|
}));
|
@@ -24115,7 +24115,7 @@ Nr.groupRequestManager = {
|
|
24115
24115
|
},
|
24116
24116
|
delete(b) {
|
24117
24117
|
const y = (0, $t.requestToArray)(b, (g) => ({
|
24118
|
-
module:
|
24118
|
+
module: qt.F_MENU_MODULE_V4_KEY.enum.group,
|
24119
24119
|
operation: pr.F_OPERATION_TYPE.delete,
|
24120
24120
|
data: g
|
24121
24121
|
}));
|
@@ -24123,7 +24123,7 @@ Nr.groupRequestManager = {
|
|
24123
24123
|
},
|
24124
24124
|
rearrange(b) {
|
24125
24125
|
const y = {
|
24126
|
-
module:
|
24126
|
+
module: qt.F_MENU_MODULE_V4_KEY.enum.group,
|
24127
24127
|
operation: pr.F_OPERATION_TYPE.rearrange,
|
24128
24128
|
data: b
|
24129
24129
|
};
|
@@ -24133,7 +24133,7 @@ Nr.groupRequestManager = {
|
|
24133
24133
|
let g = this.createOrUpdate(b).request;
|
24134
24134
|
const _ = y.map((F) => ({
|
24135
24135
|
id: F.schedulerId,
|
24136
|
-
module:
|
24136
|
+
module: qt.F_MENU_MODULE_V4_KEY.enum.scheduler,
|
24137
24137
|
data: F.groupOverrider
|
24138
24138
|
}));
|
24139
24139
|
return new $t.Runnable([Object.assign(Object.assign({}, g[0]), { link: _ })]);
|
@@ -24142,7 +24142,7 @@ Nr.groupRequestManager = {
|
|
24142
24142
|
let g = this.createOrUpdate(b).request;
|
24143
24143
|
const _ = y.map((F) => ({
|
24144
24144
|
id: F.id,
|
24145
|
-
module:
|
24145
|
+
module: qt.F_MENU_MODULE_V4_KEY.enum.item,
|
24146
24146
|
data: F.items
|
24147
24147
|
}));
|
24148
24148
|
return new $t.Runnable([Object.assign(Object.assign({}, g[0]), { link: _ })]);
|
@@ -24190,23 +24190,23 @@ Ir.itemRequestManager = {
|
|
24190
24190
|
var Br = {};
|
24191
24191
|
Object.defineProperty(Br, "__esModule", { value: !0 });
|
24192
24192
|
Br.printDepartmentRequestManager = void 0;
|
24193
|
-
const mn = we,
|
24193
|
+
const mn = we, Ct = Te, bn = ze;
|
24194
24194
|
Br.printDepartmentRequestManager = {
|
24195
24195
|
createOrUpdate(b) {
|
24196
|
-
const y = (0,
|
24196
|
+
const y = (0, Ct.requestToArray)(b, (g) => ({
|
24197
24197
|
module: mn.F_MENU_MODULE_V4_KEY.enum.printDepartment,
|
24198
24198
|
operation: g._id ? bn.F_OPERATION_TYPE.update : bn.F_OPERATION_TYPE.create,
|
24199
24199
|
data: g
|
24200
24200
|
}));
|
24201
|
-
return new
|
24201
|
+
return new Ct.Runnable(y);
|
24202
24202
|
},
|
24203
24203
|
delete(b) {
|
24204
|
-
const y = (0,
|
24204
|
+
const y = (0, Ct.requestToArray)(b, (g) => ({
|
24205
24205
|
module: mn.F_MENU_MODULE_V4_KEY.enum.printDepartment,
|
24206
24206
|
operation: bn.F_OPERATION_TYPE.delete,
|
24207
24207
|
data: g
|
24208
24208
|
}));
|
24209
|
-
return new
|
24209
|
+
return new Ct.Runnable(y);
|
24210
24210
|
},
|
24211
24211
|
linkItems(b, y) {
|
24212
24212
|
let g = this.createOrUpdate(b).request;
|
@@ -24214,7 +24214,7 @@ Br.printDepartmentRequestManager = {
|
|
24214
24214
|
id: F._id,
|
24215
24215
|
module: mn.F_MENU_MODULE_V4_KEY.enum.item
|
24216
24216
|
}));
|
24217
|
-
return new
|
24217
|
+
return new Ct.Runnable([Object.assign(Object.assign({}, g[0]), { link: _ })]);
|
24218
24218
|
}
|
24219
24219
|
};
|
24220
24220
|
var Tr = {};
|
@@ -24242,23 +24242,23 @@ Tr.schedulerRequestManager = {
|
|
24242
24242
|
var Vr = {};
|
24243
24243
|
Object.defineProperty(Vr, "__esModule", { value: !0 });
|
24244
24244
|
Vr.takeawayRequestManager = void 0;
|
24245
|
-
const yn = we,
|
24245
|
+
const yn = we, xt = Te, wn = ze;
|
24246
24246
|
Vr.takeawayRequestManager = {
|
24247
24247
|
createOrUpdate(b) {
|
24248
|
-
const y = (0,
|
24248
|
+
const y = (0, xt.requestToArray)(b, (g) => ({
|
24249
24249
|
module: yn.F_MENU_MODULE_V4_KEY.enum.takeaway,
|
24250
24250
|
operation: g._id ? wn.F_OPERATION_TYPE.update : wn.F_OPERATION_TYPE.create,
|
24251
24251
|
data: g
|
24252
24252
|
}));
|
24253
|
-
return new
|
24253
|
+
return new xt.Runnable(y);
|
24254
24254
|
},
|
24255
24255
|
delete(b) {
|
24256
|
-
const y = (0,
|
24256
|
+
const y = (0, xt.requestToArray)(b, (g) => ({
|
24257
24257
|
module: yn.F_MENU_MODULE_V4_KEY.enum.takeaway,
|
24258
24258
|
operation: wn.F_OPERATION_TYPE.delete,
|
24259
24259
|
data: g
|
24260
24260
|
}));
|
24261
|
-
return new
|
24261
|
+
return new xt.Runnable(y);
|
24262
24262
|
},
|
24263
24263
|
linkItems(b, y) {
|
24264
24264
|
let g = this.createOrUpdate(b).request;
|
@@ -24267,7 +24267,7 @@ Vr.takeawayRequestManager = {
|
|
24267
24267
|
discriminator: F.combinationKey,
|
24268
24268
|
module: yn.F_MENU_MODULE_V4_KEY.enum.item
|
24269
24269
|
}));
|
24270
|
-
return new
|
24270
|
+
return new xt.Runnable([Object.assign(Object.assign({}, g[0]), { link: _ })]);
|
24271
24271
|
}
|
24272
24272
|
};
|
24273
24273
|
var Gr = {};
|
@@ -24315,7 +24315,7 @@ Rr.cookingGuideRequestManager = {
|
|
24315
24315
|
}
|
24316
24316
|
};
|
24317
24317
|
(function(b) {
|
24318
|
-
var y =
|
24318
|
+
var y = He && He.__createBinding || (Object.create ? function(_, F, O, q) {
|
24319
24319
|
q === void 0 && (q = O);
|
24320
24320
|
var J = Object.getOwnPropertyDescriptor(F, O);
|
24321
24321
|
(!J || ("get" in J ? !F.__esModule : J.writable || J.configurable)) && (J = { enumerable: !0, get: function() {
|
@@ -24323,7 +24323,7 @@ Rr.cookingGuideRequestManager = {
|
|
24323
24323
|
} }), Object.defineProperty(_, q, J);
|
24324
24324
|
} : function(_, F, O, q) {
|
24325
24325
|
q === void 0 && (q = O), _[q] = F[O];
|
24326
|
-
}), g =
|
24326
|
+
}), g = He && He.__exportStar || function(_, F) {
|
24327
24327
|
for (var O in _)
|
24328
24328
|
O !== "default" && !Object.prototype.hasOwnProperty.call(F, O) && y(F, _, O);
|
24329
24329
|
};
|
@@ -24347,7 +24347,7 @@ Rr.cookingGuideRequestManager = {
|
|
24347
24347
|
Object.defineProperty(b, "F_OPERATION_TYPE", { enumerable: !0, get: function() {
|
24348
24348
|
return g.F_OPERATION_TYPE;
|
24349
24349
|
} });
|
24350
|
-
var _ =
|
24350
|
+
var _ = Ht;
|
24351
24351
|
Object.defineProperty(b, "RequestRunner", { enumerable: !0, get: function() {
|
24352
24352
|
return _.RequestRunner;
|
24353
24353
|
} });
|
@@ -24427,10 +24427,10 @@ const Ka = fi("mf-common-menu", () => {
|
|
24427
24427
|
}
|
24428
24428
|
return y.value;
|
24429
24429
|
}
|
24430
|
-
const _ =
|
24430
|
+
const _ = Le(() => y.value || Va), F = Le(() => {
|
24431
24431
|
var J;
|
24432
24432
|
return ((J = b.currentBusiness.value) == null ? void 0 : J.menuVersion) || we.F_MENU_VERSION.enum.v3;
|
24433
|
-
}), O =
|
24433
|
+
}), O = Le(() => F.value === we.F_MENU_VERSION.enum.v4), q = Le(() => {
|
24434
24434
|
const J = O.value ? [
|
24435
24435
|
{
|
24436
24436
|
_id: null,
|
@@ -24456,12 +24456,12 @@ const Ka = fi("mf-common-menu", () => {
|
|
24456
24456
|
function g(O) {
|
24457
24457
|
return `${O}`.trim().toLowerCase();
|
24458
24458
|
}
|
24459
|
-
const _ =
|
24459
|
+
const _ = Le(() => g(y.value));
|
24460
24460
|
function F(O) {
|
24461
24461
|
return _.value ? O.some((q) => g(q).includes(_.value)) : !0;
|
24462
24462
|
}
|
24463
24463
|
return { searchKey: y, filter: F };
|
24464
|
-
}, Ha = La, Ya = { class: "w-full h-full flex flex-col space-y-16 px-8 overflow-hidden" }, Xa = { class: "flex flex-col space-y-8" }, Ja = { class: "flex items-center space-x-24 w-full" }, Qa = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Wa = { class: "flex-1" }, Za = { key: 0 }, eo = { class: "flex items-center gap-16" }, to = { class: "flex justify-between items-center" }, ro = { class: "flex" }, no = { class: "ml-8 fm-
|
24464
|
+
}, Ha = La, Ya = { class: "w-full h-full flex flex-col space-y-16 px-8 overflow-hidden" }, Xa = { class: "flex flex-col space-y-8" }, Ja = { class: "flex items-center space-x-24 w-full" }, Qa = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Wa = { class: "flex-1" }, Za = { key: 0 }, eo = { class: "flex items-center gap-16" }, to = { class: "flex justify-between items-center" }, ro = { class: "flex" }, no = { class: "ml-8 fm-typo-en-body-lg-600 grow overflow-hidden text-nowrap text-ellipsis" }, io = { key: 0 }, ao = ["id"], oo = {
|
24465
24465
|
class: /* @__PURE__ */ En(["flex items-center"])
|
24466
24466
|
}, uo = { class: "flex items-center w-full" }, so = {
|
24467
24467
|
key: 0,
|
@@ -24477,126 +24477,126 @@ const Ka = fi("mf-common-menu", () => {
|
|
24477
24477
|
},
|
24478
24478
|
emits: ["update:data"],
|
24479
24479
|
setup(b, { emit: y }) {
|
24480
|
-
function g(
|
24481
|
-
const
|
24482
|
-
return
|
24480
|
+
function g(e, t) {
|
24481
|
+
const n = e.findIndex((a) => a === t);
|
24482
|
+
return n < 0 ? [...e, t] : e.filter((a, o) => o !== n);
|
24483
24483
|
}
|
24484
|
-
const _ = b, F = y, O =
|
24484
|
+
const _ = b, F = y, O = Le(() => _.categorizedItems ?? q.categorizedRawMenuItems ?? []), q = Ka(), J = Fn();
|
24485
24485
|
li(async () => {
|
24486
24486
|
_.categorizedItems || await q.getMenu();
|
24487
24487
|
});
|
24488
|
-
const X =
|
24489
|
-
name:
|
24490
|
-
items:
|
24491
|
-
(
|
24492
|
-
var
|
24488
|
+
const X = Le(() => O.value.reduce((e, t) => (e[t.id ?? ""] = {
|
24489
|
+
name: t.name,
|
24490
|
+
items: t.items.map(
|
24491
|
+
(n) => {
|
24492
|
+
var a;
|
24493
24493
|
return {
|
24494
|
-
label:
|
24495
|
-
sublabel:
|
24496
|
-
value:
|
24497
|
-
variant: _.selectVariant ? (
|
24498
|
-
label:
|
24499
|
-
value:
|
24494
|
+
label: n.codeName,
|
24495
|
+
sublabel: n.description,
|
24496
|
+
value: n._id,
|
24497
|
+
variant: _.selectVariant ? (a = n.variant) == null ? void 0 : a.variantCombinations.map((o) => ({
|
24498
|
+
label: o.codeName,
|
24499
|
+
value: o.combinationKey
|
24500
24500
|
})) : [],
|
24501
|
-
customAttributes:
|
24501
|
+
customAttributes: n.customAttributes
|
24502
24502
|
};
|
24503
24503
|
}
|
24504
24504
|
)
|
24505
|
-
},
|
24505
|
+
}, e), {})), I = ct((() => ({
|
24506
24506
|
logic: "AND",
|
24507
24507
|
rules: []
|
24508
24508
|
}))());
|
24509
|
-
function T(
|
24510
|
-
const
|
24511
|
-
var
|
24512
|
-
return (
|
24513
|
-
})).filter((
|
24514
|
-
return [...new Set(
|
24509
|
+
function T(e) {
|
24510
|
+
const t = Object.values(X.value).flatMap((a) => a.items.map((o) => {
|
24511
|
+
var s;
|
24512
|
+
return (s = o.customAttributes) == null ? void 0 : s[e];
|
24513
|
+
})).filter((a) => typeof a == "string" && !!a);
|
24514
|
+
return [...new Set(t)];
|
24515
24515
|
}
|
24516
|
-
const V =
|
24517
|
-
const
|
24516
|
+
const V = Le(() => J.itemAttributeSettings.value.map((e) => {
|
24517
|
+
const t = T(e.key);
|
24518
24518
|
return {
|
24519
|
-
...
|
24520
|
-
values:
|
24519
|
+
...e,
|
24520
|
+
values: t
|
24521
24521
|
};
|
24522
|
-
})), { searchKey: K, filter: L } = Ha(), te =
|
24523
|
-
const
|
24524
|
-
(
|
24525
|
-
if (L([
|
24526
|
-
return
|
24527
|
-
const
|
24528
|
-
return
|
24522
|
+
})), { searchKey: K, filter: L } = Ha(), te = Le(() => {
|
24523
|
+
const e = Object.entries(X.value).reduce(
|
24524
|
+
(n, [a, o]) => {
|
24525
|
+
if (L([o.name]))
|
24526
|
+
return n[a] = o, n;
|
24527
|
+
const s = o.items.filter((l) => Un(l.customAttributes ?? {}, I.value) && L([l.label, ...(l.variant || []).map(($) => $.label)]));
|
24528
|
+
return s.length && (n[a] = { ...o, items: s }), n;
|
24529
24529
|
},
|
24530
24530
|
{}
|
24531
24531
|
);
|
24532
|
-
return Object.entries(
|
24533
|
-
(
|
24534
|
-
const
|
24535
|
-
return
|
24532
|
+
return Object.entries(e).reduce(
|
24533
|
+
(n, [a, o]) => {
|
24534
|
+
const s = o.items.filter((l) => Un(l.customAttributes ?? {}, I.value));
|
24535
|
+
return s.length && (n[a] = { ...o, items: s }), n;
|
24536
24536
|
},
|
24537
24537
|
{}
|
24538
24538
|
);
|
24539
24539
|
});
|
24540
|
-
function se({ value:
|
24541
|
-
let
|
24542
|
-
const
|
24543
|
-
return _.selectVariant &&
|
24540
|
+
function se({ value: e, variant: t }) {
|
24541
|
+
let n = (_.data[e] ?? []).length;
|
24542
|
+
const a = (t == null ? void 0 : t.length) || 0;
|
24543
|
+
return _.selectVariant && n > 1 && (n -= 1), a && n ? n >= a ? !0 : null : !!n;
|
24544
24544
|
}
|
24545
|
-
function G(
|
24546
|
-
const
|
24547
|
-
return
|
24545
|
+
function G(e) {
|
24546
|
+
const t = te.value[e].items || [], n = t.filter((a) => !!se(a));
|
24547
|
+
return t.length && n.length ? n.length === t.length ? !0 : null : !1;
|
24548
24548
|
}
|
24549
|
-
function C(
|
24550
|
-
var
|
24551
|
-
return !!((
|
24549
|
+
function C(e, t) {
|
24550
|
+
var n;
|
24551
|
+
return !!((n = _.data[e.value]) != null && n.find((a) => a.combinationKey === t));
|
24552
24552
|
}
|
24553
|
-
function E(
|
24554
|
-
const
|
24555
|
-
let
|
24556
|
-
for (const
|
24557
|
-
|
24558
|
-
F("update:data",
|
24553
|
+
function E(e, t) {
|
24554
|
+
const n = te.value[e].items || [];
|
24555
|
+
let a = At(_.data);
|
24556
|
+
for (const o of n)
|
24557
|
+
a = x(o, t, a);
|
24558
|
+
F("update:data", a);
|
24559
24559
|
}
|
24560
|
-
function U(
|
24561
|
-
F("update:data", x(
|
24560
|
+
function U(e, t) {
|
24561
|
+
F("update:data", x(e, t, _.data));
|
24562
24562
|
}
|
24563
|
-
function x({ value:
|
24564
|
-
let
|
24565
|
-
if (!
|
24566
|
-
return delete
|
24567
|
-
const
|
24568
|
-
_id:
|
24569
|
-
combinationKey:
|
24563
|
+
function x({ value: e, variant: t }, n, a) {
|
24564
|
+
let o = At(a);
|
24565
|
+
if (!n)
|
24566
|
+
return delete o[e], o;
|
24567
|
+
const s = [{ _id: e }], l = (t ?? []).map(($) => ({
|
24568
|
+
_id: e,
|
24569
|
+
combinationKey: $.value
|
24570
24570
|
}));
|
24571
|
-
return
|
24572
|
-
...
|
24573
|
-
[
|
24574
|
-
},
|
24571
|
+
return o = {
|
24572
|
+
...o,
|
24573
|
+
[e]: _.selectVariant ? [...s, ...l] : t != null && t.length ? l : s
|
24574
|
+
}, o;
|
24575
24575
|
}
|
24576
|
-
function B(
|
24577
|
-
const
|
24578
|
-
let
|
24579
|
-
if (!
|
24580
|
-
|
24576
|
+
function B(e, t) {
|
24577
|
+
const n = { _id: e }, a = At(_.data);
|
24578
|
+
let o = At(a[e] ?? []).filter((s) => !!s.combinationKey);
|
24579
|
+
if (!o.length)
|
24580
|
+
o = [{ _id: e, combinationKey: t }];
|
24581
24581
|
else {
|
24582
|
-
const
|
24583
|
-
if (
|
24584
|
-
|
24585
|
-
else if (
|
24586
|
-
delete
|
24582
|
+
const s = o.findIndex((l) => l.combinationKey === t);
|
24583
|
+
if (s === -1)
|
24584
|
+
o.push({ _id: e, combinationKey: t });
|
24585
|
+
else if (o.splice(s, 1), !o.length) {
|
24586
|
+
delete a[e], F("update:data", a);
|
24587
24587
|
return;
|
24588
24588
|
}
|
24589
24589
|
}
|
24590
24590
|
F("update:data", {
|
24591
|
-
...
|
24592
|
-
[
|
24591
|
+
...a,
|
24592
|
+
[e]: _.selectVariant ? [n, ...o] : o
|
24593
24593
|
});
|
24594
24594
|
}
|
24595
24595
|
const R = ct(
|
24596
|
-
Object.entries(_.data).filter(([
|
24596
|
+
Object.entries(_.data).filter(([e, t]) => !!t.find((n) => !!n.combinationKey)).map(([e, t]) => e)
|
24597
24597
|
);
|
24598
|
-
function ie(
|
24599
|
-
R.value = g(R.value,
|
24598
|
+
function ie(e) {
|
24599
|
+
R.value = g(R.value, e);
|
24600
24600
|
}
|
24601
24601
|
const $e = ct(Object.keys(X.value));
|
24602
24602
|
Dn(
|
@@ -24605,73 +24605,86 @@ const Ka = fi("mf-common-menu", () => {
|
|
24605
24605
|
$e.value = Object.keys(X.value);
|
24606
24606
|
}
|
24607
24607
|
);
|
24608
|
-
function re(
|
24609
|
-
$e.value = g($e.value,
|
24608
|
+
function re(e) {
|
24609
|
+
$e.value = g($e.value, e);
|
24610
24610
|
}
|
24611
|
-
const ue =
|
24612
|
-
const
|
24613
|
-
return { ...
|
24614
|
-
}).filter((
|
24611
|
+
const ue = Le(() => Object.values(_.data).flatMap((e) => e)), Q = Le(() => O.value.map((t) => {
|
24612
|
+
const n = t.items.filter((a) => ue.value.some((o) => o._id === a._id));
|
24613
|
+
return { ...t, items: n };
|
24614
|
+
}).filter((t) => t.items.length).reduce((t, n) => t + n.items.length, 0));
|
24615
24615
|
function d() {
|
24616
|
-
if (O.value.reduce((
|
24617
|
-
for (const [
|
24618
|
-
const
|
24619
|
-
if (
|
24620
|
-
return [
|
24616
|
+
if (O.value.reduce((t, n) => (t += n.items.length, t), 0) >= 150)
|
24617
|
+
for (const [t, n] of Object.entries(X.value)) {
|
24618
|
+
const a = n.items.find((o) => se(o) !== !1);
|
24619
|
+
if (a)
|
24620
|
+
return [t, a.value];
|
24621
24621
|
}
|
24622
24622
|
return null;
|
24623
24623
|
}
|
24624
24624
|
const r = ct([]), i = ct();
|
24625
24625
|
function ne() {
|
24626
|
-
var
|
24626
|
+
var n, a;
|
24627
24627
|
if (!r.value.length || !i.value)
|
24628
24628
|
return;
|
24629
|
-
const
|
24630
|
-
|
24631
|
-
top:
|
24629
|
+
const e = (n = d()) == null ? void 0 : n[1], t = r.value.find(({ id: o }) => o == e);
|
24630
|
+
t && ((a = i.value) == null || a.scrollTo({
|
24631
|
+
top: t.offsetTop
|
24632
24632
|
}));
|
24633
24633
|
}
|
24634
24634
|
Dn(() => r.value, ne);
|
24635
24635
|
function h() {
|
24636
|
-
|
24636
|
+
const e = At(_.data);
|
24637
|
+
Object.entries(te.value).forEach(([t, n]) => {
|
24638
|
+
n.items.forEach((a) => {
|
24639
|
+
Object.assign(e, x(a, !0, e));
|
24640
|
+
});
|
24641
|
+
}), F("update:data", e);
|
24637
24642
|
}
|
24638
24643
|
function H() {
|
24644
|
+
$e.value = Object.keys(X.value);
|
24645
|
+
}
|
24646
|
+
function ce() {
|
24639
24647
|
$e.value = [], R.value = [];
|
24640
24648
|
}
|
24641
|
-
const { t:
|
24642
|
-
return (
|
24643
|
-
const
|
24644
|
-
return Ve(),
|
24649
|
+
const { t: u } = hi();
|
24650
|
+
return (e, t) => {
|
24651
|
+
const n = er("fm-search"), a = er("fm-button"), o = er("fm-checkbox"), s = er("fm-card");
|
24652
|
+
return Ve(), Xe("div", Ya, [
|
24645
24653
|
Ge("div", Xa, [
|
24646
24654
|
Ge("div", Ja, [
|
24647
|
-
Ge("p", Qa, Pn(
|
24655
|
+
Ge("p", Qa, Pn(Re(u)("portalshell.components.itemSelector.productsSelected", { count: Q.value })), 1),
|
24648
24656
|
Ge("div", Wa, [
|
24649
|
-
|
24657
|
+
Ye(n, {
|
24650
24658
|
class: "w-full",
|
24651
24659
|
autofocus: _.autoFocusSearch,
|
24652
|
-
modelValue:
|
24653
|
-
"onUpdate:modelValue":
|
24660
|
+
modelValue: Re(K),
|
24661
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => $i(K) ? K.value = l : null)
|
24654
24662
|
}, null, 8, ["autofocus", "modelValue"])
|
24655
24663
|
])
|
24656
24664
|
]),
|
24657
|
-
V.value.length > 0 ? (Ve(),
|
24658
|
-
|
24665
|
+
V.value.length > 0 ? (Ve(), Xe("div", Za, [
|
24666
|
+
Ye(Re(ci), {
|
24659
24667
|
ref: "filterRef",
|
24660
24668
|
attributes: V.value,
|
24661
24669
|
modelValue: I.value,
|
24662
|
-
"onUpdate:modelValue":
|
24670
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => I.value = l)
|
24663
24671
|
}, null, 8, ["attributes", "modelValue"])
|
24664
24672
|
])) : Ot("", !0),
|
24665
24673
|
Ge("div", eo, [
|
24666
|
-
|
24667
|
-
label:
|
24668
|
-
variant:
|
24674
|
+
Ye(a, {
|
24675
|
+
label: Re(u)("portalshell.components.itemSelector.selectAll"),
|
24676
|
+
variant: Re(zt).Tertiary,
|
24669
24677
|
onClick: h
|
24670
24678
|
}, null, 8, ["label", "variant"]),
|
24671
|
-
|
24672
|
-
label:
|
24673
|
-
variant:
|
24679
|
+
Ye(a, {
|
24680
|
+
label: Re(u)("portalshell.components.itemSelector.expandAll"),
|
24681
|
+
variant: Re(zt).Tertiary,
|
24674
24682
|
onClick: H
|
24683
|
+
}, null, 8, ["label", "variant"]),
|
24684
|
+
Ye(a, {
|
24685
|
+
label: Re(u)("portalshell.components.itemSelector.collapseAll"),
|
24686
|
+
variant: Re(zt).Tertiary,
|
24687
|
+
onClick: ce
|
24675
24688
|
}, null, 8, ["label", "variant"])
|
24676
24689
|
])
|
24677
24690
|
]),
|
@@ -24680,81 +24693,81 @@ const Ka = fi("mf-common-menu", () => {
|
|
24680
24693
|
ref: i,
|
24681
24694
|
class: "flex-1 overflow-y-auto space-y-24 py-16"
|
24682
24695
|
}, [
|
24683
|
-
(Ve(!0),
|
24696
|
+
(Ve(!0), Xe(nn, null, an(Object.entries(te.value), (l) => (Ve(), tr(s, {
|
24684
24697
|
class: "space-y-8 p-16",
|
24685
24698
|
variant: "outlined"
|
24686
24699
|
}, {
|
24687
24700
|
default: on(() => {
|
24688
|
-
var
|
24701
|
+
var $;
|
24689
24702
|
return [
|
24690
24703
|
Ge("div", to, [
|
24691
24704
|
Ge("div", ro, [
|
24692
|
-
|
24693
|
-
indeterminate: G(
|
24705
|
+
Ye(o, {
|
24706
|
+
indeterminate: G(l[0]) === null,
|
24694
24707
|
label: "",
|
24695
|
-
"model-value": G(
|
24696
|
-
value:
|
24708
|
+
"model-value": G(l[0]) ?? !1,
|
24709
|
+
value: l[0],
|
24697
24710
|
class: "flex-1",
|
24698
|
-
"onUpdate:modelValue": (
|
24711
|
+
"onUpdate:modelValue": (c) => E(l[0], c)
|
24699
24712
|
}, null, 8, ["indeterminate", "model-value", "value", "onUpdate:modelValue"]),
|
24700
|
-
Ge("div", no, Pn(((
|
24713
|
+
Ge("div", no, Pn((($ = l[1]) == null ? void 0 : $.name) ?? ""), 1)
|
24701
24714
|
]),
|
24702
|
-
|
24715
|
+
l[1].items.length ? (Ve(), tr(a, {
|
24703
24716
|
key: 0,
|
24704
24717
|
class: En([
|
24705
|
-
$e.value.includes(
|
24718
|
+
$e.value.includes(l[0]) ? "rotate-180" : "",
|
24706
24719
|
"transition-transform"
|
24707
24720
|
]),
|
24708
|
-
variant:
|
24721
|
+
variant: Re(zt).Tertiary,
|
24709
24722
|
"prepend-icon": "keyboard_arrow_up",
|
24710
24723
|
size: "lg",
|
24711
|
-
onClick: (
|
24724
|
+
onClick: (c) => re(l[0])
|
24712
24725
|
}, null, 8, ["class", "variant", "onClick"])) : Ot("", !0)
|
24713
24726
|
]),
|
24714
|
-
|
24727
|
+
Ye(Mn, { name: "expand" }, {
|
24715
24728
|
default: on(() => [
|
24716
|
-
$e.value.includes(
|
24717
|
-
(Ve(!0),
|
24718
|
-
var
|
24719
|
-
return Ve(),
|
24720
|
-
id:
|
24721
|
-
key:
|
24729
|
+
$e.value.includes(l[0]) ? (Ve(), Xe("div", io, [
|
24730
|
+
(Ve(!0), Xe(nn, null, an(l[1].items, (c) => {
|
24731
|
+
var p;
|
24732
|
+
return Ve(), Xe("div", {
|
24733
|
+
id: c.value,
|
24734
|
+
key: c.value,
|
24722
24735
|
ref_for: !0,
|
24723
24736
|
ref_key: "productView",
|
24724
24737
|
ref: r
|
24725
24738
|
}, [
|
24726
24739
|
Ge("div", oo, [
|
24727
24740
|
Ge("div", uo, [
|
24728
|
-
|
24729
|
-
indeterminate: se(
|
24730
|
-
label:
|
24731
|
-
"model-value": se(
|
24732
|
-
value:
|
24741
|
+
Ye(o, {
|
24742
|
+
indeterminate: se(c) === null,
|
24743
|
+
label: c.label,
|
24744
|
+
"model-value": se(c) ?? !1,
|
24745
|
+
value: c,
|
24733
24746
|
class: "flex-1",
|
24734
|
-
"onUpdate:modelValue": (
|
24747
|
+
"onUpdate:modelValue": (f) => U(c, f)
|
24735
24748
|
}, null, 8, ["indeterminate", "label", "model-value", "value", "onUpdate:modelValue"]),
|
24736
|
-
|
24749
|
+
e.showVariant && ((p = c.variant) != null && p.length) ? (Ve(), tr(a, {
|
24737
24750
|
key: 0,
|
24738
24751
|
class: En([
|
24739
|
-
R.value.includes(
|
24752
|
+
R.value.includes(c.value) ? "rotate-180" : "",
|
24740
24753
|
"transition-transform"
|
24741
24754
|
]),
|
24742
|
-
variant:
|
24755
|
+
variant: Re(zt).Tertiary,
|
24743
24756
|
"prepend-icon": "keyboard_arrow_up",
|
24744
|
-
onClick: (
|
24757
|
+
onClick: (f) => ie(c.value)
|
24745
24758
|
}, null, 8, ["class", "variant", "onClick"])) : Ot("", !0)
|
24746
24759
|
])
|
24747
24760
|
]),
|
24748
|
-
|
24761
|
+
Ye(Mn, { name: "expand" }, {
|
24749
24762
|
default: on(() => [
|
24750
|
-
|
24751
|
-
(Ve(!0),
|
24752
|
-
label:
|
24753
|
-
"model-value": C(
|
24763
|
+
e.showVariant && R.value.includes(c.value) ? (Ve(), Xe("div", so, [
|
24764
|
+
(Ve(!0), Xe(nn, null, an(c.variant, (f) => (Ve(), tr(o, {
|
24765
|
+
label: f.label,
|
24766
|
+
"model-value": C(c, f.value),
|
24754
24767
|
"show-all-toggle": !1,
|
24755
|
-
value:
|
24768
|
+
value: f.value,
|
24756
24769
|
class: "w-full",
|
24757
|
-
"onUpdate:modelValue": () => B(
|
24770
|
+
"onUpdate:modelValue": () => B(c.value, f.value)
|
24758
24771
|
}, null, 8, ["label", "model-value", "value", "onUpdate:modelValue"]))), 256))
|
24759
24772
|
])) : Ot("", !0)
|
24760
24773
|
]),
|