@feedmepos/mf-menu 0.31.61 → 0.31.62-prod
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-BnUTV-mi.js → App-DlA3uekC.js} +9 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BnTNMX31.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CvYg6wUo.js} +3 -3
- package/dist/{Catalog-BCIc1kLb.js → Catalog-pCWDkPMw.js} +6 -6
- package/dist/{Category-Ce3f5YKh.js → Category-3439_r5Q.js} +4 -4
- package/dist/{Category-D2gSftvv.js → Category-K5N2CBGJ.js} +6 -6
- package/dist/{CookingGuide-CbS9h_LC.js → CookingGuide-Cyyi7IeC.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bvj5FcR7.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cnn9HS6e.js} +1 -1
- package/dist/{Group-DYVoKWFr.js → Group-BwZl7QvU.js} +3 -3
- package/dist/{Group-CWeOELBr.js → Group-DGuz80sx.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-182tMJ-Y.js → Group.vue_vue_type_script_setup_true_lang-Dioi7hbp.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DJdVarDj.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DrlPRHta.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DkpKYx9L.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CYk54quA.js} +7 -7
- package/dist/{Ingredient-DADhhNoB.js → Ingredient-C8R8JWkp.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BGV28fAG.js → InventoryBinding.vue_vue_type_script_setup_true_lang-B_ri8nAR.js} +2 -2
- package/dist/{LinkProductSideSheet-RFRjAwY3.js → LinkProductSideSheet-Bm8qMaT7.js} +3 -3
- package/dist/{MenuSetting-CdWNLLa_.js → MenuSetting-Cpbxj3Ni.js} +5 -5
- package/dist/{PrintRoute-CNO-30Tq.js → PrintRoute-BgmijxYc.js} +4 -4
- package/dist/{Product-CSFRf2AM.js → Product-DiqN1fdt.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CdfXkfGA.js → Product.vue_vue_type_script_setup_true_lang-DMWjdZTa.js} +13 -13
- package/dist/{ProductInternalTools-BLa3wzWv.js → ProductInternalTools-BZP_1J5b.js} +6 -6
- package/dist/{Products-DDvCnhAu.js → Products-Bu08ZHA6.js} +11 -11
- package/dist/{Publish-e3PVDR3Q.js → Publish-B8-JfEe6.js} +3 -3
- package/dist/{Recipe-DD76fw_2.js → Recipe-BN_GjdSr.js} +4 -4
- package/dist/{Scheduler-BdMFJKKA.js → Scheduler-O6ZnPNiY.js} +3 -3
- package/dist/{ServingSequence-DccvYQ9d.js → ServingSequence-14vqMsck.js} +3 -3
- package/dist/{Setting-DQcUCgwT.js → Setting-B3eolrlX.js} +5 -5
- package/dist/{Subcategory-IZz5CVzL.js → Subcategory-oKlgvt_O.js} +4 -4
- package/dist/{Takeaway-DFfttHNy.js → Takeaway-CUp7gM3P.js} +1 -1
- package/dist/{Takeaway-BmTD-FmR.js → Takeaway-DffxlQXM.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CVzoRTks.js → Takeaway.vue_vue_type_script_setup_true_lang-DzdooZE-.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Fa_MXaj-.js → Thumbnail.vue_vue_type_script_setup_true_lang-CrgRP9X1.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ClRL104s.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CWz63sPG.js} +15 -15
- package/dist/{Unit-DAOvrBC4.js → Unit-BS_4ijAX.js} +2 -2
- package/dist/{Variant-Buacz-Fs.js → Variant-B7K-0bVo.js} +3 -3
- package/dist/{_id_-30Xk3295.js → _id_-Ci5sMO0e.js} +10 -10
- package/dist/{app-C3laERZw.js → app-COwpNSVW.js} +26 -26
- package/dist/{app-HZX_rjdU.js → app-DgM8AcTU.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-CHAOfZTw.js → linked-status-PUg9o5oJ.js} +5 -5
- package/dist/assets/{override-menu-CTW2yaIa.js → override-menu-DRvWZtmh.js} +5 -5
- package/dist/assets/{validate-menu-T7LC6VsU.js → validate-menu-Csd9sYUc.js} +2 -2
- package/dist/{catalog-Bu5Nd6V8.js → catalog-bC-_KizS.js} +1 -1
- package/dist/{catalogSetting-CO-KdpP2.js → catalogSetting-yoKSQufN.js} +1 -1
- package/dist/{category-DIzEqSTV.js → category-BvOpmGjK.js} +1 -1
- package/dist/{currency-Dy3N0lwj.js → currency-HB9XCGKo.js} +1 -1
- package/dist/{customAttributes-gFyixAOT.js → customAttributes-Cr8yjY6Y.js} +1 -1
- package/dist/{dayjs.min-KcghZvjn.js → dayjs.min-DirUy8Ue.js} +1 -1
- package/dist/{index-CLwO3tAF.js → index-BBof9t9B.js} +2 -1
- package/dist/{index-Ck_Bw9kK.js → index-DFxThJuR.js} +4 -4
- package/dist/{index-CLuhqkl0.js → index-io3Jgy-r.js} +3 -3
- package/dist/{index-Bdh8J8d1.js → index-wXbWvFwK.js} +1 -1
- package/dist/{item-BwlgtiMR.js → item--StDZzCb.js} +375 -375
- package/dist/{jszip.min-Dn_VicRS.js → jszip.min-otrURh_M.js} +353 -353
- package/dist/{menu-BO6MLUSY.js → menu-1yBiTG7L.js} +1776 -1776
- package/dist/{menu-DR-5QkeV.js → menu-DssZNS7R.js} +1 -1
- package/dist/{menuV2-R9NMUcxp.js → menuV2-BSwBRb60.js} +200 -200
- package/dist/{priceTier-BLG9fxqt.js → priceTier-DlnE8t1n.js} +1 -1
- package/dist/{scheduler-Bt3VEtTl.js → scheduler-DGgJqtoA.js} +4 -4
- package/dist/{subcategory-Dz_jJthr.js → subcategory-DTdhZ0HZ.js} +2 -2
- package/dist/{toExcel-DT65nNdz.js → toExcel-CQdSIOf9.js} +2 -2
- package/dist/{unit---GW4dl-.js → unit-0vP2uHmy.js} +2 -2
- package/package.json +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { defineStore as mo } from "pinia";
|
|
2
|
-
import { createElementBlock as re, openBlock as U, createElementVNode as B, defineComponent as ge, resolveComponent as K, createBlock as J, createVNode as
|
|
3
|
-
import { J as ze, A as q, ag as Ca, ai as Aa, X as Ia, H as be, D as Je, B as Ge, T as go, u as Me, I as at, G as St, O as
|
|
2
|
+
import { createElementBlock as re, openBlock as U, createElementVNode as B, defineComponent as ge, resolveComponent as K, createBlock as J, createVNode as O, toDisplayString as Ee, Fragment as Ve, renderList as rt, h as Fe, ref as oe, computed as V, watch as Le, unref as b, renderSlot as Ce, withCtx as W, createCommentVNode as se, Transition as ha, getCurrentInstance as an, inject as ga, shallowRef as va, onMounted as $t, onUnmounted as _a, Text as ba, normalizeClass as Ke, resolveDynamicComponent as wn, withDirectives as Xt, vShow as Sn, mergeProps as po, withModifiers as Rn, createTextVNode as Bn, resolveDirective as fo, markRaw as ya, render as Wn, mergeModels as wa, useModel as Ea, nextTick as ho, onBeforeUnmount as ka, normalizeProps as Sa, guardReactiveProps as Ra, normalizeStyle as Oa } from "vue";
|
|
3
|
+
import { J as ze, A as q, ag as Ca, ai as Aa, X as Ia, H as be, D as Je, B as Ge, T as go, u as Me, I as at, G as St, O as Rt, P as Ta, Q as Ma, R as Da, U as Fn, aa as Fa, M as Na, K as Si } from "./menu-1yBiTG7L.js";
|
|
4
4
|
import { useI18n as Se, useCoreStore as rn, CustomAttributesForm as vo } from "@feedmepos/mf-common";
|
|
5
|
-
import { useDialog as lt, useSnackbar as Qe, components as Be, FmButtonColorThemeVariant as ft, FmButtonVariant as
|
|
6
|
-
import { C as ht } from "./catalog-
|
|
5
|
+
import { useDialog as lt, useSnackbar as Qe, components as Be, FmButtonColorThemeVariant as ft, FmButtonVariant as Ot, useBreakpoints as _o, useDialogChild as bo } from "@feedmepos/ui-library";
|
|
6
|
+
import { C as ht } from "./catalog-bC-_KizS.js";
|
|
7
7
|
import { c as Pa } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
8
|
-
import { a as
|
|
9
|
-
import { _ as Ct, L as xa } from "./LinkProductSideSheet-
|
|
10
|
-
import { _ as ut, a as bt, b as Ua } from "./customAttributes-
|
|
11
|
-
import { s as Hn, F as Va, _ as za } from "./index-
|
|
12
|
-
import { I as $a, a as Ga } from "./app-
|
|
13
|
-
import { u as Ba } from "./app-
|
|
14
|
-
import { g as wo, b as Wa, c as Ha, a as ja, m as Ka } from "./menuV2-
|
|
8
|
+
import { a as Ri, p as La, _ as yo } from "./tooltip-CQW9YRO5.js";
|
|
9
|
+
import { _ as Ct, L as xa } from "./LinkProductSideSheet-Bm8qMaT7.js";
|
|
10
|
+
import { _ as ut, a as bt, b as Ua } from "./customAttributes-Cr8yjY6Y.js";
|
|
11
|
+
import { s as Hn, F as Va, _ as za } from "./index-wXbWvFwK.js";
|
|
12
|
+
import { I as $a, a as Ga } from "./app-COwpNSVW.js";
|
|
13
|
+
import { u as Ba } from "./app-DgM8AcTU.js";
|
|
14
|
+
import { g as wo, b as Wa, c as Ha, a as ja, m as Ka } from "./menuV2-BSwBRb60.js";
|
|
15
15
|
import "@vue/devtools-api";
|
|
16
|
-
import { u as Ya } from "./subcategory-
|
|
17
|
-
import { u as Xa } from "./category-
|
|
16
|
+
import { u as Ya } from "./subcategory-DTdhZ0HZ.js";
|
|
17
|
+
import { u as Xa } from "./category-BvOpmGjK.js";
|
|
18
18
|
import { u as ui } from "./discardConfirm-BHni0LNu.js";
|
|
19
|
-
import { _ as Ft, l as jn, T as qa } from "./index-
|
|
19
|
+
import { _ as Ft, l as jn, T as qa } from "./index-DFxThJuR.js";
|
|
20
20
|
import { useInventoryStore as Eo, InventoryBindingForm as Ja, InventoryBindingSummary as Za } from "@feedmepos/mf-inventory-portal";
|
|
21
21
|
import { c as sn } from "./check-C9mY6LiX.js";
|
|
22
22
|
import { c as Qa } from "./object-DVUNCr7w.js";
|
|
23
|
-
import { f as Gt } from "./currency-
|
|
24
|
-
import { u as ko } from "./priceTier-
|
|
23
|
+
import { f as Gt } from "./currency-HB9XCGKo.js";
|
|
24
|
+
import { u as ko } from "./priceTier-DlnE8t1n.js";
|
|
25
25
|
import { u as er } from "./search-BAPEUu1R.js";
|
|
26
26
|
import { c as tr } from "./string-DpfFixWH.js";
|
|
27
27
|
import { d as So } from "./vuedraggable-CK8z7qA8.js";
|
|
28
|
-
import { _ as nr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
29
|
-
import { V as
|
|
28
|
+
import { _ as nr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CvYg6wUo.js";
|
|
29
|
+
import { V as Oi } from "./index-io3Jgy-r.js";
|
|
30
30
|
class _n {
|
|
31
31
|
constructor(t, n, i, a) {
|
|
32
32
|
this.scheduler = t, this.menuStore = n, this.updateMenu = i, this.dialog = a;
|
|
@@ -237,7 +237,7 @@ class _n {
|
|
|
237
237
|
})).filter((a) => a.items.length > 0);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function On(e, t) {
|
|
241
241
|
for (const n of t) {
|
|
242
242
|
const i = e.find((a) => a._id === n._id);
|
|
243
243
|
if (i != null && i.isDynamicAddon || n.isDynamicAddon) return q.F_ADDON_GROUP_TYPE.enum.DYNAMIC;
|
|
@@ -297,7 +297,7 @@ function ci(e) {
|
|
|
297
297
|
items: t
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Ro(e) {
|
|
301
301
|
const t = ci(e), n = (o) => ["product", "item", "addonGroup", "group"].some((r) => o._id.startsWith(r)), i = t.items.filter((o) => n(o)), a = t.items.filter((o) => !n(o)).map((o) => ({
|
|
302
302
|
...Je.generator.initMenuV4Item(),
|
|
303
303
|
...o,
|
|
@@ -316,7 +316,7 @@ function Oo(e) {
|
|
|
316
316
|
linkItems: a
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
class
|
|
319
|
+
class Oo {
|
|
320
320
|
constructor(t, n, i) {
|
|
321
321
|
this.menuStore = t, this.updateMenu = n, this.dialog = i;
|
|
322
322
|
}
|
|
@@ -391,7 +391,7 @@ class Ro {
|
|
|
391
391
|
name: go(Me().variants, ((T = E == null ? void 0 : E.variant) == null ? void 0 : T.variantGroupIds) || [])[p.combinationKey]
|
|
392
392
|
} : E, w = (y = o.find((k) => k._id === s._id)) == null ? void 0 : y.items.find((k) => k._id === p._id && k.combinationKey === p.combinationKey), v = !n && !p.combinationKey, h = (x = u.find(
|
|
393
393
|
(k) => k._id == p._id && k.combinationKey == p.combinationKey
|
|
394
|
-
)) == null ? void 0 : x.price, S = p.name ?? (w == null ? void 0 : w.name) ?? (_ == null ? void 0 : _.name) ?? "",
|
|
394
|
+
)) == null ? void 0 : x.price, S = p.name ?? (w == null ? void 0 : w.name) ?? (_ == null ? void 0 : _.name) ?? "", R = {
|
|
395
395
|
...p,
|
|
396
396
|
name: S,
|
|
397
397
|
code: _ == null ? void 0 : _.code,
|
|
@@ -402,8 +402,8 @@ class Ro {
|
|
|
402
402
|
fallbackOrder: _ == null ? void 0 : _.orderFrom,
|
|
403
403
|
priceTiers: p.priceTiers
|
|
404
404
|
};
|
|
405
|
-
return [...c,
|
|
406
|
-
}, []), d =
|
|
405
|
+
return [...c, R];
|
|
406
|
+
}, []), d = On(a, s.items);
|
|
407
407
|
return {
|
|
408
408
|
...s,
|
|
409
409
|
type: d,
|
|
@@ -430,7 +430,7 @@ class Ro {
|
|
|
430
430
|
...s,
|
|
431
431
|
items: (s.items ?? []).map((u) => ({ ...u, _id: "" }))
|
|
432
432
|
}, r), {}));
|
|
433
|
-
const a =
|
|
433
|
+
const a = Ro(n), o = {
|
|
434
434
|
module: q.F_MENU_MODULE_V4_KEY.enum.group,
|
|
435
435
|
operation: ze.F_OPERATION_TYPE.create,
|
|
436
436
|
data: {
|
|
@@ -542,7 +542,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
542
542
|
title: t.title,
|
|
543
543
|
contentComponent: Fe("div", { class: "space-y-4" }, [
|
|
544
544
|
...t.items.map(
|
|
545
|
-
(a) => Fe(
|
|
545
|
+
(a) => Fe(Ri, {
|
|
546
546
|
name: a.name,
|
|
547
547
|
value: a.value || "--"
|
|
548
548
|
})
|
|
@@ -554,8 +554,8 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
554
554
|
const r = K("FmButton");
|
|
555
555
|
return t.variant === "full" ? (U(), re("div", ur, [
|
|
556
556
|
B("div", cr, Ee(a.title), 1),
|
|
557
|
-
|
|
558
|
-
(U(!0), re(Ve, null, rt(a.items, (l) => (U(), J(
|
|
557
|
+
O(lr),
|
|
558
|
+
(U(!0), re(Ve, null, rt(a.items, (l) => (U(), J(Ri, {
|
|
559
559
|
key: l.name,
|
|
560
560
|
name: l.name,
|
|
561
561
|
value: l.value || "--"
|
|
@@ -626,7 +626,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
626
626
|
]),
|
|
627
627
|
B("div", hr, [
|
|
628
628
|
B("div", gr, [
|
|
629
|
-
|
|
629
|
+
O(E, {
|
|
630
630
|
label: b(a)("menu.common.labels.catalog"),
|
|
631
631
|
items: l.value,
|
|
632
632
|
modelValue: r.value,
|
|
@@ -634,7 +634,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
634
634
|
}, null, 8, ["label", "items", "modelValue"])
|
|
635
635
|
]),
|
|
636
636
|
B("div", vr, [
|
|
637
|
-
|
|
637
|
+
O(E, {
|
|
638
638
|
label: b(a)("menu.common.labels.scheduler"),
|
|
639
639
|
items: m.value,
|
|
640
640
|
modelValue: s.value,
|
|
@@ -672,12 +672,12 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
672
672
|
B("p", wr, Ee(i.title), 1),
|
|
673
673
|
i.description ? (U(), re("p", Er, Ee(i.description), 1)) : se("", !0)
|
|
674
674
|
]),
|
|
675
|
-
|
|
675
|
+
O(o, {
|
|
676
676
|
"model-value": i.toggle,
|
|
677
677
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => n("update:toggle", l))
|
|
678
678
|
}, null, 8, ["model-value"])
|
|
679
679
|
]),
|
|
680
|
-
|
|
680
|
+
O(ha, { name: "expand" }, {
|
|
681
681
|
default: W(() => [
|
|
682
682
|
i.toggle ? (U(), re("div", kr, [
|
|
683
683
|
Ce(i.$slots, "default", {}, void 0, !0)
|
|
@@ -691,9 +691,9 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
693
|
}), Tt = /* @__PURE__ */ Ct(Sr, [["__scopeId", "data-v-e920f110"]]);
|
|
694
|
-
var
|
|
694
|
+
var Rr = { remy: "https://remy.feedmeapi.com/v1" };
|
|
695
695
|
let We;
|
|
696
|
-
function
|
|
696
|
+
function Or(e) {
|
|
697
697
|
const t = Ba(), n = $a(e), i = V(() => {
|
|
698
698
|
var s, u, m;
|
|
699
699
|
return ((m = (u = (s = t.publicSetting) == null ? void 0 : s.aiSettings) == null ? void 0 : u.remy) == null ? void 0 : m.enable) || !1;
|
|
@@ -716,9 +716,9 @@ function Rr(e) {
|
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
718
|
function km(e) {
|
|
719
|
-
We =
|
|
719
|
+
We = Or({
|
|
720
720
|
token: e,
|
|
721
|
-
url:
|
|
721
|
+
url: Rr.remy
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
724
|
const Cr = mo("menu-edit-state", {
|
|
@@ -780,7 +780,7 @@ const Ur = Object.prototype.hasOwnProperty;
|
|
|
780
780
|
function Ze(e, t) {
|
|
781
781
|
return Ur.call(e, t);
|
|
782
782
|
}
|
|
783
|
-
const Te = Array.isArray,
|
|
783
|
+
const Te = Array.isArray, Re = (e) => typeof e == "function", te = (e) => typeof e == "string", Oe = (e) => typeof e == "boolean", fe = (e) => e !== null && typeof e == "object", Vr = (e) => fe(e) && Re(e.then) && Re(e.catch), Ao = Object.prototype.toString, di = (e) => Ao.call(e), pe = (e) => di(e) === "[object Object]", zr = (e) => e == null ? "" : Te(e) || pe(e) && e.toString === Ao ? JSON.stringify(e, null, 2) : String(e);
|
|
784
784
|
function mi(e, t = "") {
|
|
785
785
|
return e.reduce((n, i, a) => a === 0 ? n + i : n + t + i, "");
|
|
786
786
|
}
|
|
@@ -842,7 +842,7 @@ function Yr(e) {
|
|
|
842
842
|
function S() {
|
|
843
843
|
return r(n + o) && o++, o++, t[n + o];
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function R() {
|
|
846
846
|
n = 0, i = 1, a = 1, o = 0;
|
|
847
847
|
}
|
|
848
848
|
function A(y = 0) {
|
|
@@ -864,7 +864,7 @@ function Yr(e) {
|
|
|
864
864
|
currentPeek: v,
|
|
865
865
|
next: h,
|
|
866
866
|
peek: S,
|
|
867
|
-
reset:
|
|
867
|
+
reset: R,
|
|
868
868
|
resetPeek: A,
|
|
869
869
|
skipToPeek: T
|
|
870
870
|
};
|
|
@@ -939,7 +939,7 @@ function Jr(e, t = {}) {
|
|
|
939
939
|
const Y = v(f.currentPeek());
|
|
940
940
|
return f.resetPeek(), Y;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function R(f, g) {
|
|
943
943
|
const { currentType: L } = g;
|
|
944
944
|
if (L !== 2)
|
|
945
945
|
return !1;
|
|
@@ -1178,7 +1178,7 @@ function Jr(e, t = {}) {
|
|
|
1178
1178
|
return d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), g.braceNest = 0, wt(f, g);
|
|
1179
1179
|
if (X = S(f, g))
|
|
1180
1180
|
return L = c(g, 4, Z(f)), w(f), L;
|
|
1181
|
-
if (ue =
|
|
1181
|
+
if (ue = R(f, g))
|
|
1182
1182
|
return L = c(g, 5, ie(f)), w(f), L;
|
|
1183
1183
|
if (F = A(f, g))
|
|
1184
1184
|
return L = c(g, 6, ee(f)), w(f), L;
|
|
@@ -1281,9 +1281,9 @@ function es(e, t, n) {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
function ts(e = {}) {
|
|
1283
1283
|
const t = e.location !== !1, { onError: n } = e;
|
|
1284
|
-
function i(v, h, S,
|
|
1284
|
+
function i(v, h, S, R, ...A) {
|
|
1285
1285
|
const T = v.currentPosition();
|
|
1286
|
-
if (T.offset +=
|
|
1286
|
+
if (T.offset += R, T.column += R, n) {
|
|
1287
1287
|
const y = t ? Kn(S, T) : null, x = An(h, y, {
|
|
1288
1288
|
domain: Zr,
|
|
1289
1289
|
args: A
|
|
@@ -1292,31 +1292,31 @@ function ts(e = {}) {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
function a(v, h, S) {
|
|
1295
|
-
const
|
|
1296
|
-
return t && (
|
|
1295
|
+
const R = { type: v };
|
|
1296
|
+
return t && (R.start = h, R.end = h, R.loc = { start: S, end: S }), R;
|
|
1297
1297
|
}
|
|
1298
|
-
function o(v, h, S,
|
|
1298
|
+
function o(v, h, S, R) {
|
|
1299
1299
|
t && (v.end = h, v.loc && (v.loc.end = S));
|
|
1300
1300
|
}
|
|
1301
1301
|
function r(v, h) {
|
|
1302
|
-
const S = v.context(),
|
|
1303
|
-
return
|
|
1302
|
+
const S = v.context(), R = a(3, S.offset, S.startLoc);
|
|
1303
|
+
return R.value = h, o(R, v.currentOffset(), v.currentPosition()), R;
|
|
1304
1304
|
}
|
|
1305
1305
|
function l(v, h) {
|
|
1306
|
-
const S = v.context(), { lastOffset:
|
|
1306
|
+
const S = v.context(), { lastOffset: R, lastStartLoc: A } = S, T = a(5, R, A);
|
|
1307
1307
|
return T.index = parseInt(h, 10), v.nextToken(), o(T, v.currentOffset(), v.currentPosition()), T;
|
|
1308
1308
|
}
|
|
1309
1309
|
function s(v, h) {
|
|
1310
|
-
const S = v.context(), { lastOffset:
|
|
1310
|
+
const S = v.context(), { lastOffset: R, lastStartLoc: A } = S, T = a(4, R, A);
|
|
1311
1311
|
return T.key = h, v.nextToken(), o(T, v.currentOffset(), v.currentPosition()), T;
|
|
1312
1312
|
}
|
|
1313
1313
|
function u(v, h) {
|
|
1314
|
-
const S = v.context(), { lastOffset:
|
|
1314
|
+
const S = v.context(), { lastOffset: R, lastStartLoc: A } = S, T = a(9, R, A);
|
|
1315
1315
|
return T.value = h.replace(Qr, es), v.nextToken(), o(T, v.currentOffset(), v.currentPosition()), T;
|
|
1316
1316
|
}
|
|
1317
1317
|
function m(v) {
|
|
1318
|
-
const h = v.nextToken(), S = v.context(), { lastOffset:
|
|
1319
|
-
return h.type !== 11 ? (i(v, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), T.value = "", o(T,
|
|
1318
|
+
const h = v.nextToken(), S = v.context(), { lastOffset: R, lastStartLoc: A } = S, T = a(8, R, A);
|
|
1319
|
+
return h.type !== 11 ? (i(v, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), T.value = "", o(T, R, A), {
|
|
1320
1320
|
nextConsumeToken: h,
|
|
1321
1321
|
node: T
|
|
1322
1322
|
}) : (h.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, nt(h)), T.value = h.value || "", o(T, v.currentOffset(), v.currentPosition()), {
|
|
@@ -1324,34 +1324,34 @@ function ts(e = {}) {
|
|
|
1324
1324
|
});
|
|
1325
1325
|
}
|
|
1326
1326
|
function d(v, h) {
|
|
1327
|
-
const S = v.context(),
|
|
1328
|
-
return
|
|
1327
|
+
const S = v.context(), R = a(7, S.offset, S.startLoc);
|
|
1328
|
+
return R.value = h, o(R, v.currentOffset(), v.currentPosition()), R;
|
|
1329
1329
|
}
|
|
1330
1330
|
function c(v) {
|
|
1331
1331
|
const h = v.context(), S = a(6, h.offset, h.startLoc);
|
|
1332
|
-
let
|
|
1333
|
-
if (
|
|
1332
|
+
let R = v.nextToken();
|
|
1333
|
+
if (R.type === 8) {
|
|
1334
1334
|
const A = m(v);
|
|
1335
|
-
S.modifier = A.node,
|
|
1335
|
+
S.modifier = A.node, R = A.nextConsumeToken || v.nextToken();
|
|
1336
1336
|
}
|
|
1337
|
-
switch (
|
|
1337
|
+
switch (R.type !== 9 && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(R)), R = v.nextToken(), R.type === 2 && (R = v.nextToken()), R.type) {
|
|
1338
1338
|
case 10:
|
|
1339
|
-
|
|
1339
|
+
R.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(R)), S.key = d(v, R.value || "");
|
|
1340
1340
|
break;
|
|
1341
1341
|
case 4:
|
|
1342
|
-
|
|
1342
|
+
R.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(R)), S.key = s(v, R.value || "");
|
|
1343
1343
|
break;
|
|
1344
1344
|
case 5:
|
|
1345
|
-
|
|
1345
|
+
R.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(R)), S.key = l(v, R.value || "");
|
|
1346
1346
|
break;
|
|
1347
1347
|
case 6:
|
|
1348
|
-
|
|
1348
|
+
R.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(R)), S.key = u(v, R.value || "");
|
|
1349
1349
|
break;
|
|
1350
1350
|
default: {
|
|
1351
1351
|
i(v, _e.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
1352
1352
|
const A = v.context(), T = a(7, A.offset, A.startLoc);
|
|
1353
1353
|
return T.value = "", o(T, A.offset, A.startLoc), S.key = T, o(S, A.offset, A.startLoc), {
|
|
1354
|
-
nextConsumeToken:
|
|
1354
|
+
nextConsumeToken: R,
|
|
1355
1355
|
node: S
|
|
1356
1356
|
};
|
|
1357
1357
|
}
|
|
@@ -1361,7 +1361,7 @@ function ts(e = {}) {
|
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
1363
|
function p(v) {
|
|
1364
|
-
const h = v.context(), S = h.currentType === 1 ? v.currentOffset() : h.offset,
|
|
1364
|
+
const h = v.context(), S = h.currentType === 1 ? v.currentOffset() : h.offset, R = h.currentType === 1 ? h.endLoc : h.startLoc, A = a(2, S, R);
|
|
1365
1365
|
A.items = [];
|
|
1366
1366
|
let T = null;
|
|
1367
1367
|
do {
|
|
@@ -1389,11 +1389,11 @@ function ts(e = {}) {
|
|
|
1389
1389
|
const y = h.currentType === 1 ? h.lastOffset : v.currentOffset(), x = h.currentType === 1 ? h.lastEndLoc : v.currentPosition();
|
|
1390
1390
|
return o(A, y, x), A;
|
|
1391
1391
|
}
|
|
1392
|
-
function E(v, h, S,
|
|
1392
|
+
function E(v, h, S, R) {
|
|
1393
1393
|
const A = v.context();
|
|
1394
|
-
let T =
|
|
1394
|
+
let T = R.items.length === 0;
|
|
1395
1395
|
const y = a(1, h, S);
|
|
1396
|
-
y.cases = [], y.cases.push(
|
|
1396
|
+
y.cases = [], y.cases.push(R);
|
|
1397
1397
|
do {
|
|
1398
1398
|
const x = p(v);
|
|
1399
1399
|
T || (T = x.items.length === 0), y.cases.push(x);
|
|
@@ -1401,12 +1401,12 @@ function ts(e = {}) {
|
|
|
1401
1401
|
return T && i(v, _e.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), o(y, v.currentOffset(), v.currentPosition()), y;
|
|
1402
1402
|
}
|
|
1403
1403
|
function _(v) {
|
|
1404
|
-
const h = v.context(), { offset: S, startLoc:
|
|
1405
|
-
return h.currentType === 13 ? A : E(v, S,
|
|
1404
|
+
const h = v.context(), { offset: S, startLoc: R } = h, A = p(v);
|
|
1405
|
+
return h.currentType === 13 ? A : E(v, S, R, A);
|
|
1406
1406
|
}
|
|
1407
1407
|
function w(v) {
|
|
1408
|
-
const h = Jr(v, Pe({}, e)), S = h.context(),
|
|
1409
|
-
return t &&
|
|
1408
|
+
const h = Jr(v, Pe({}, e)), S = h.context(), R = a(0, S.offset, S.startLoc);
|
|
1409
|
+
return t && R.loc && (R.loc.source = v), R.body = _(h), e.onCacheKey && (R.cacheKey = e.onCacheKey(v)), S.currentType !== 13 && i(h, _e.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, v[S.offset] || ""), o(R, h.currentOffset(), h.currentPosition()), R;
|
|
1410
1410
|
}
|
|
1411
1411
|
return { parse: w };
|
|
1412
1412
|
}
|
|
@@ -1766,7 +1766,7 @@ function Yn(e, t) {
|
|
|
1766
1766
|
throw Qt(n);
|
|
1767
1767
|
}
|
|
1768
1768
|
case 6: {
|
|
1769
|
-
const i = t, a =
|
|
1769
|
+
const i = t, a = Os(i), o = As(i);
|
|
1770
1770
|
return e.linked(Yn(e, o), a ? Yn(e, a) : void 0, e.type);
|
|
1771
1771
|
}
|
|
1772
1772
|
case 7:
|
|
@@ -1788,9 +1788,9 @@ function dn(e, t) {
|
|
|
1788
1788
|
return n;
|
|
1789
1789
|
throw Qt(t);
|
|
1790
1790
|
}
|
|
1791
|
-
const
|
|
1792
|
-
function
|
|
1793
|
-
return At(e,
|
|
1791
|
+
const Rs = ["m", "modifier"];
|
|
1792
|
+
function Os(e) {
|
|
1793
|
+
return At(e, Rs);
|
|
1794
1794
|
}
|
|
1795
1795
|
const Cs = ["k", "key"];
|
|
1796
1796
|
function As(e) {
|
|
@@ -1828,7 +1828,7 @@ function Ts(e, t = {}) {
|
|
|
1828
1828
|
// @__NO_SIDE_EFFECTS__
|
|
1829
1829
|
function Ms(e, t) {
|
|
1830
1830
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && te(e)) {
|
|
1831
|
-
|
|
1831
|
+
Oe(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1832
1832
|
const i = (t.onCacheKey || Is)(e), a = mn[i];
|
|
1833
1833
|
if (a)
|
|
1834
1834
|
return a;
|
|
@@ -1882,7 +1882,7 @@ let Pn;
|
|
|
1882
1882
|
function Pi(e) {
|
|
1883
1883
|
if (te(e))
|
|
1884
1884
|
return e;
|
|
1885
|
-
if (
|
|
1885
|
+
if (Re(e)) {
|
|
1886
1886
|
if (e.resolvedOnce && Pn != null)
|
|
1887
1887
|
return Pn;
|
|
1888
1888
|
if (e.constructor.name === "Function") {
|
|
@@ -1917,7 +1917,7 @@ function Io(e, t, n) {
|
|
|
1917
1917
|
}
|
|
1918
1918
|
function Li(e, t, n) {
|
|
1919
1919
|
let i = !0;
|
|
1920
|
-
for (let a = 0; a < t.length &&
|
|
1920
|
+
for (let a = 0; a < t.length && Oe(i); a++) {
|
|
1921
1921
|
const o = t[a];
|
|
1922
1922
|
te(o) && (i = Us(e, t[a], n));
|
|
1923
1923
|
}
|
|
@@ -2221,7 +2221,7 @@ function Ks(e, t) {
|
|
|
2221
2221
|
let a = e, o = 0;
|
|
2222
2222
|
for (; o < i; ) {
|
|
2223
2223
|
const r = a[n[o]];
|
|
2224
|
-
if (r === void 0 ||
|
|
2224
|
+
if (r === void 0 || Re(a))
|
|
2225
2225
|
return null;
|
|
2226
2226
|
a = r, o++;
|
|
2227
2227
|
}
|
|
@@ -2257,7 +2257,7 @@ const zi = (e) => {
|
|
|
2257
2257
|
}, tl = () => No;
|
|
2258
2258
|
let $i = 0;
|
|
2259
2259
|
function nl(e = {}) {
|
|
2260
|
-
const t =
|
|
2260
|
+
const t = Re(e.onWarn) ? e.onWarn : $r, n = te(e.version) ? e.version : Ys, i = te(e.locale) || Re(e.locale) ? e.locale : kn, a = Re(i) ? kn : i, o = Te(e.fallbackLocale) || pe(e.fallbackLocale) || te(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, r = pe(e.messages) ? e.messages : Ln(a), l = pe(e.datetimeFormats) ? e.datetimeFormats : Ln(a), s = pe(e.numberFormats) ? e.numberFormats : Ln(a), u = Pe(ye(), e.modifiers, Xs()), m = e.pluralRules || ye(), d = Re(e.missing) ? e.missing : null, c = Oe(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = Oe(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, _ = !!e.unresolving, w = Re(e.postTranslation) ? e.postTranslation : null, v = pe(e.processor) ? e.processor : null, h = Oe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, R = Re(e.messageCompiler) ? e.messageCompiler : To, A = Re(e.messageResolver) ? e.messageResolver : Mo || js, T = Re(e.localeFallbacker) ? e.localeFallbacker : Do || xs, y = fe(e.fallbackContext) ? e.fallbackContext : void 0, x = e, k = fe(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), I = fe(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), N = fe(x.__meta) ? x.__meta : {};
|
|
2261
2261
|
$i++;
|
|
2262
2262
|
const M = {
|
|
2263
2263
|
version: n,
|
|
@@ -2276,7 +2276,7 @@ function nl(e = {}) {
|
|
|
2276
2276
|
processor: v,
|
|
2277
2277
|
warnHtmlMessage: h,
|
|
2278
2278
|
escapeParameter: S,
|
|
2279
|
-
messageCompiler:
|
|
2279
|
+
messageCompiler: R,
|
|
2280
2280
|
messageResolver: A,
|
|
2281
2281
|
localeFallbacker: T,
|
|
2282
2282
|
fallbackContext: y,
|
|
@@ -2311,8 +2311,8 @@ function ol(e, t) {
|
|
|
2311
2311
|
return !1;
|
|
2312
2312
|
}
|
|
2313
2313
|
function Gi(e, ...t) {
|
|
2314
|
-
const { datetimeFormats: n, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: r } = e, { __datetimeFormatters: l } = e, [s, u, m, d] = Xn(...t), c =
|
|
2315
|
-
|
|
2314
|
+
const { datetimeFormats: n, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: r } = e, { __datetimeFormatters: l } = e, [s, u, m, d] = Xn(...t), c = Oe(m.missingWarn) ? m.missingWarn : e.missingWarn;
|
|
2315
|
+
Oe(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn;
|
|
2316
2316
|
const p = !!m.part, E = hi(e, m), _ = r(
|
|
2317
2317
|
e,
|
|
2318
2318
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2327,10 +2327,10 @@ function Gi(e, ...t) {
|
|
|
2327
2327
|
gi(e, s, v, c, S);
|
|
2328
2328
|
if (!pe(h) || !te(v))
|
|
2329
2329
|
return i ? In : s;
|
|
2330
|
-
let
|
|
2331
|
-
Cn(d) || (
|
|
2332
|
-
let A = l.get(
|
|
2333
|
-
return A || (A = new Intl.DateTimeFormat(v, Pe({}, h, d)), l.set(
|
|
2330
|
+
let R = `${v}__${s}`;
|
|
2331
|
+
Cn(d) || (R = `${R}__${JSON.stringify(d)}`);
|
|
2332
|
+
let A = l.get(R);
|
|
2333
|
+
return A || (A = new Intl.DateTimeFormat(v, Pe({}, h, d)), l.set(R, A)), p ? A.formatToParts(u) : A.format(u);
|
|
2334
2334
|
}
|
|
2335
2335
|
const Po = [
|
|
2336
2336
|
"localeMatcher",
|
|
@@ -2388,8 +2388,8 @@ function Bi(e, t, n) {
|
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
2390
|
function Wi(e, ...t) {
|
|
2391
|
-
const { numberFormats: n, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: r } = e, { __numberFormatters: l } = e, [s, u, m, d] = qn(...t), c =
|
|
2392
|
-
|
|
2391
|
+
const { numberFormats: n, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: r } = e, { __numberFormatters: l } = e, [s, u, m, d] = qn(...t), c = Oe(m.missingWarn) ? m.missingWarn : e.missingWarn;
|
|
2392
|
+
Oe(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn;
|
|
2393
2393
|
const p = !!m.part, E = hi(e, m), _ = r(
|
|
2394
2394
|
e,
|
|
2395
2395
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2404,10 +2404,10 @@ function Wi(e, ...t) {
|
|
|
2404
2404
|
gi(e, s, v, c, S);
|
|
2405
2405
|
if (!pe(h) || !te(v))
|
|
2406
2406
|
return i ? In : s;
|
|
2407
|
-
let
|
|
2408
|
-
Cn(d) || (
|
|
2409
|
-
let A = l.get(
|
|
2410
|
-
return A || (A = new Intl.NumberFormat(v, Pe({}, h, d)), l.set(
|
|
2407
|
+
let R = `${v}__${s}`;
|
|
2408
|
+
Cn(d) || (R = `${R}__${JSON.stringify(d)}`);
|
|
2409
|
+
let A = l.get(R);
|
|
2410
|
+
return A || (A = new Intl.NumberFormat(v, Pe({}, h, d)), l.set(R, A)), p ? A.formatToParts(u) : A.format(u);
|
|
2411
2411
|
}
|
|
2412
2412
|
const Lo = [
|
|
2413
2413
|
"localeMatcher",
|
|
@@ -2460,21 +2460,21 @@ function dl(e, t) {
|
|
|
2460
2460
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2461
2461
|
}
|
|
2462
2462
|
function ml(e = {}) {
|
|
2463
|
-
const t = e.locale, n = cl(e), i = fe(e.pluralRules) && te(t) &&
|
|
2463
|
+
const t = e.locale, n = cl(e), i = fe(e.pluralRules) && te(t) && Re(e.pluralRules[t]) ? e.pluralRules[t] : ji, a = fe(e.pluralRules) && te(t) && Re(e.pluralRules[t]) ? ji : void 0, o = (v) => v[i(n, v.length, a)], r = e.list || [], l = (v) => r[v], s = e.named || ye();
|
|
2464
2464
|
Ne(e.pluralIndex) && dl(n, s);
|
|
2465
2465
|
const u = (v) => s[v];
|
|
2466
2466
|
function m(v, h) {
|
|
2467
|
-
const S =
|
|
2467
|
+
const S = Re(e.messages) ? e.messages(v, !!h) : fe(e.messages) ? e.messages[v] : !1;
|
|
2468
2468
|
return S || (e.parent ? e.parent.message(v) : rl);
|
|
2469
2469
|
}
|
|
2470
|
-
const d = (v) => e.modifiers ? e.modifiers[v] : al, c = pe(e.processor) &&
|
|
2470
|
+
const d = (v) => e.modifiers ? e.modifiers[v] : al, c = pe(e.processor) && Re(e.processor.normalize) ? e.processor.normalize : ll, p = pe(e.processor) && Re(e.processor.interpolate) ? e.processor.interpolate : ul, E = pe(e.processor) && te(e.processor.type) ? e.processor.type : sl, w = {
|
|
2471
2471
|
list: l,
|
|
2472
2472
|
named: u,
|
|
2473
2473
|
plural: o,
|
|
2474
2474
|
linked: (v, ...h) => {
|
|
2475
|
-
const [S,
|
|
2475
|
+
const [S, R] = h;
|
|
2476
2476
|
let A = "text", T = "";
|
|
2477
|
-
h.length === 1 ? fe(S) ? (T = S.modifier || T, A = S.type || A) : te(S) && (T = S || T) : h.length === 2 && (te(S) && (T = S || T), te(
|
|
2477
|
+
h.length === 1 ? fe(S) ? (T = S.modifier || T, A = S.type || A) : te(S) && (T = S || T) : h.length === 2 && (te(S) && (T = S || T), te(R) && (A = R || A));
|
|
2478
2478
|
const y = m(v, !0)(w), x = (
|
|
2479
2479
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2480
2480
|
A === "vnode" && Te(y) && T ? y[0] : y
|
|
@@ -2489,30 +2489,30 @@ function ml(e = {}) {
|
|
|
2489
2489
|
};
|
|
2490
2490
|
return w;
|
|
2491
2491
|
}
|
|
2492
|
-
const Ki = () => "", Ye = (e) =>
|
|
2492
|
+
const Ki = () => "", Ye = (e) => Re(e);
|
|
2493
2493
|
function Yi(e, ...t) {
|
|
2494
|
-
const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: r, messages: l } = e, [s, u] = Jn(...t), m =
|
|
2494
|
+
const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: r, messages: l } = e, [s, u] = Jn(...t), m = Oe(u.missingWarn) ? u.missingWarn : e.missingWarn, d = Oe(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, c = Oe(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, p = !!u.resolvedMessage, E = te(u.default) || Oe(u.default) ? Oe(u.default) ? o ? s : () => s : u.default : n ? o ? s : () => s : null, _ = n || E != null && (te(E) || Re(E)), w = hi(e, u);
|
|
2495
2495
|
c && pl(u);
|
|
2496
2496
|
let [v, h, S] = p ? [
|
|
2497
2497
|
s,
|
|
2498
2498
|
w,
|
|
2499
2499
|
l[w] || ye()
|
|
2500
|
-
] : xo(e, s, w, r, d, m),
|
|
2501
|
-
if (!p && !(te(
|
|
2500
|
+
] : xo(e, s, w, r, d, m), R = v, A = s;
|
|
2501
|
+
if (!p && !(te(R) || Wt(R) || Ye(R)) && _ && (R = E, A = R), !p && (!(te(R) || Wt(R) || Ye(R)) || !te(h)))
|
|
2502
2502
|
return a ? In : s;
|
|
2503
2503
|
let T = !1;
|
|
2504
2504
|
const y = () => {
|
|
2505
2505
|
T = !0;
|
|
2506
|
-
}, x = Ye(
|
|
2506
|
+
}, x = Ye(R) ? R : Uo(e, s, h, R, A, y);
|
|
2507
2507
|
if (T)
|
|
2508
|
-
return
|
|
2508
|
+
return R;
|
|
2509
2509
|
const k = gl(e, h, S, u), I = ml(k), N = fl(e, x, I), M = i ? i(N, s) : N;
|
|
2510
2510
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2511
2511
|
const P = {
|
|
2512
2512
|
timestamp: Date.now(),
|
|
2513
|
-
key: te(s) ? s : Ye(
|
|
2514
|
-
locale: h || (Ye(
|
|
2515
|
-
format: te(
|
|
2513
|
+
key: te(s) ? s : Ye(R) ? R.key : "",
|
|
2514
|
+
locale: h || (Ye(R) ? R.locale : ""),
|
|
2515
|
+
format: te(R) ? R : Ye(R) ? R.source : "",
|
|
2516
2516
|
message: M
|
|
2517
2517
|
};
|
|
2518
2518
|
P.meta = Pe({}, e.__meta, /* @__PURE__ */ el() || {}), Ns(P);
|
|
@@ -2607,7 +2607,7 @@ function gl(e, t, n, i) {
|
|
|
2607
2607
|
return e.processor && (c.processor = e.processor), i.list && (c.list = i.list), i.named && (c.named = i.named), Ne(i.plural) && (c.pluralIndex = i.plural), c;
|
|
2608
2608
|
}
|
|
2609
2609
|
ps();
|
|
2610
|
-
var vl = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_76e7bdf9-f1cc-422e-8659-99741874e482", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^2.1.8", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_76e7bdf9-f1cc-422e-8659-99741874e482", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-1.3.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.2.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1741", npm_package_dependencies__feedmepos_ui_library: "1.7.4", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20251112.124.1", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.1-rc.4", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:10096", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.10/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.4/x64", GITHUB_RUN_ID: "19440850723", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "e10005f7e3e93c846fa36670724b2d26015698e8", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.2.4", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_package_dependencies_axios: "^1.7.2", npm_package_devDependencies__types_pouchdb_core: "^7.0.15", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_6f038a9e-087a-4948-9795-70ba566da489", INVOCATION_ID: "56ea8e100c7b41039f48a2382da3b66a", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "467", GITHUB_TRIGGERING_ACTOR: "victorchai", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", npm_package_devDependencies__vitest_ui: "^2.1.8", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000027860", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.49", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.61", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_scripts_test_coverage: "vitest --coverage", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "e10005f7e3e93c846fa36670724b2d26015698e8", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_test_ui: "vitest --ui", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_76e7bdf9-f1cc-422e-8659-99741874e482", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "49786844", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_76e7bdf9-f1cc-422e-8659-99741874e482", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.7.21", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_76e7bdf9-f1cc-422e-8659-99741874e482", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
2610
|
+
var vl = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6edf29bb-fd1b-4e34-9e71-ed176b1bbfad", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^2.1.8", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_6edf29bb-fd1b-4e34-9e71-ed176b1bbfad", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4.feedmeapi.com", GTM_ID: "GTM-WR8XHXLH", FIREBASE_MESSAGING_SENDER_ID: "128512026847", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "production", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-1.3.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.2.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-zzez732dna-as.a.run.app", SYSTEMD_EXEC_PID: "1737", npm_package_dependencies__feedmepos_ui_library: "1.7.4", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20251112.124.1", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.1-rc.4", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:12882", GITHUB_WORKFLOW: "Publish mf-menu prod", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.10/x64", REMY_URL: "https://remy.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.4/x64", GITHUB_RUN_ID: "19503934213", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "fac4fddd10cc56823f627793c6571c26cf52af7c", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "production", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.2.4", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu-prod.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", npm_package_dependencies_axios: "^1.7.2", npm_package_devDependencies__types_pouchdb_core: "^7.0.15", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_3fae2345-8ffc-4f70-9dce-bf0b536ef4be", INVOCATION_ID: "ad982e77ceb748da9a3ebec85bb9bbc9", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "112", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-2MP52PC24R", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", npm_package_devDependencies__vitest_ui: "^2.1.8", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000028514", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.49", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.62-prod", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "false", FIREBASE_PROJECT_ID: "feedme-253402", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_scripts_test_coverage: "vitest --coverage", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "fac4fddd10cc56823f627793c6571c26cf52af7c", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_test_ui: "vitest --ui", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_6edf29bb-fd1b-4e34-9e71-ed176b1bbfad", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "7780463", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_6edf29bb-fd1b-4e34-9e71-ed176b1bbfad", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", npm_package_dependencies__feedmepos_menu: "1.7.21", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_6edf29bb-fd1b-4e34-9e71-ed176b1bbfad", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
2611
2611
|
const _l = "10.0.5";
|
|
2612
2612
|
function bl() {
|
|
2613
2613
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Dt().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Dt().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Dt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Dt().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -2692,7 +2692,7 @@ function wl(e, t, n) {
|
|
|
2692
2692
|
}
|
|
2693
2693
|
}
|
|
2694
2694
|
function Xi(e) {
|
|
2695
|
-
return
|
|
2695
|
+
return O(ba, null, e, 0);
|
|
2696
2696
|
}
|
|
2697
2697
|
const qi = "__INTLIFY_META__", Ji = () => [], El = () => !1;
|
|
2698
2698
|
let Zi = 0;
|
|
@@ -2706,7 +2706,7 @@ const kl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
2706
2706
|
};
|
|
2707
2707
|
function Sl(e = {}) {
|
|
2708
2708
|
const { __root: t, __injectWithOption: n } = e, i = t === void 0, a = e.flatJson, o = Ai ? oe : va;
|
|
2709
|
-
let r =
|
|
2709
|
+
let r = Oe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2710
2710
|
const l = o(
|
|
2711
2711
|
// prettier-ignore
|
|
2712
2712
|
t && r ? t.locale.value : te(e.locale) ? e.locale : kn
|
|
@@ -2714,7 +2714,7 @@ function Sl(e = {}) {
|
|
|
2714
2714
|
// prettier-ignore
|
|
2715
2715
|
t && r ? t.fallbackLocale.value : te(e.fallbackLocale) || Te(e.fallbackLocale) || pe(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
2716
2716
|
), u = o(zo(l.value, e)), m = o(pe(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), d = o(pe(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
2717
|
-
let c = t ? t.missingWarn :
|
|
2717
|
+
let c = t ? t.missingWarn : Oe(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : Oe(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : Oe(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, w = Re(e.missing) ? e.missing : null, v = Re(e.missing) ? Qi(e.missing) : null, h = Re(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : Oe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, R = !!e.escapeParameter;
|
|
2718
2718
|
const A = t ? t.modifiers : pe(e.modifiers) ? e.modifiers : {};
|
|
2719
2719
|
let T = e.pluralRules || t && t.pluralRules, y;
|
|
2720
2720
|
y = (() => {
|
|
@@ -2733,7 +2733,7 @@ function Sl(e = {}) {
|
|
|
2733
2733
|
unresolving: !0,
|
|
2734
2734
|
postTranslation: h === null ? void 0 : h,
|
|
2735
2735
|
warnHtmlMessage: S,
|
|
2736
|
-
escapeParameter:
|
|
2736
|
+
escapeParameter: R,
|
|
2737
2737
|
messageResolver: e.messageResolver,
|
|
2738
2738
|
messageCompiler: e.messageCompiler,
|
|
2739
2739
|
__meta: { framework: "vue" }
|
|
@@ -2763,7 +2763,7 @@ function Sl(e = {}) {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
}), M = V(() => u.value), P = /* @__PURE__ */ V(() => m.value), z = /* @__PURE__ */ V(() => d.value);
|
|
2765
2765
|
function D() {
|
|
2766
|
-
return
|
|
2766
|
+
return Re(h) ? h : null;
|
|
2767
2767
|
}
|
|
2768
2768
|
function C(F) {
|
|
2769
2769
|
h = F, y.postTranslation = F;
|
|
@@ -2808,7 +2808,7 @@ function Sl(e = {}) {
|
|
|
2808
2808
|
return ce((j) => Reflect.apply(Wi, null, [j, ...F]), () => qn(...F), "number format", (j) => Reflect.apply(j.n, j, [...F]), () => Ui, (j) => te(j));
|
|
2809
2809
|
}
|
|
2810
2810
|
function ie(F) {
|
|
2811
|
-
return F.map((j) => te(j) || Ne(j) ||
|
|
2811
|
+
return F.map((j) => te(j) || Ne(j) || Oe(j) ? Xi(String(j)) : j);
|
|
2812
2812
|
}
|
|
2813
2813
|
const ee = {
|
|
2814
2814
|
normalize: ie,
|
|
@@ -2842,7 +2842,7 @@ function Sl(e = {}) {
|
|
|
2842
2842
|
return !1;
|
|
2843
2843
|
const he = te(j) ? j : l.value, ke = ct(he), tt = y.messageResolver(ke, F);
|
|
2844
2844
|
return Wt(tt) || Ye(tt) || te(tt);
|
|
2845
|
-
}, () => [F], "translate exists", (he) => Reflect.apply(he.te, he, [F, j]), El, (he) =>
|
|
2845
|
+
}, () => [F], "translate exists", (he) => Reflect.apply(he.te, he, [F, j]), El, (he) => Oe(he));
|
|
2846
2846
|
}
|
|
2847
2847
|
function qt(F) {
|
|
2848
2848
|
let j = null;
|
|
@@ -2957,10 +2957,10 @@ function Sl(e = {}) {
|
|
|
2957
2957
|
S = F, y.warnHtmlMessage = F;
|
|
2958
2958
|
},
|
|
2959
2959
|
get escapeParameter() {
|
|
2960
|
-
return
|
|
2960
|
+
return R;
|
|
2961
2961
|
},
|
|
2962
2962
|
set escapeParameter(F) {
|
|
2963
|
-
|
|
2963
|
+
R = F, y.escapeParameter = F;
|
|
2964
2964
|
},
|
|
2965
2965
|
t: we,
|
|
2966
2966
|
getLocaleMessage: ct,
|
|
@@ -2992,7 +2992,7 @@ const vi = {
|
|
|
2992
2992
|
type: Object
|
|
2993
2993
|
}
|
|
2994
2994
|
};
|
|
2995
|
-
function
|
|
2995
|
+
function Rl({ slots: e }, t) {
|
|
2996
2996
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((i, a) => [
|
|
2997
2997
|
...i,
|
|
2998
2998
|
// prettier-ignore
|
|
@@ -3015,7 +3015,7 @@ Pe({
|
|
|
3015
3015
|
validator: (e) => Ne(e) || !isNaN(e)
|
|
3016
3016
|
}
|
|
3017
3017
|
}, vi);
|
|
3018
|
-
function
|
|
3018
|
+
function Ol(e) {
|
|
3019
3019
|
return Te(e) && !te(e[0]);
|
|
3020
3020
|
}
|
|
3021
3021
|
function Bo(e, t, n, i) {
|
|
@@ -3028,7 +3028,7 @@ function Bo(e, t, n, i) {
|
|
|
3028
3028
|
let u = [r.key];
|
|
3029
3029
|
Te(s) ? u = s.map((c, p) => {
|
|
3030
3030
|
const E = a[c.type], _ = E ? E({ [c.type]: c.value, index: p, parts: s }) : [c.value];
|
|
3031
|
-
return
|
|
3031
|
+
return Ol(_) && (_[0].key = `${c.type}-${p}`), _;
|
|
3032
3032
|
}) : te(s) && (u = [s]);
|
|
3033
3033
|
const m = Pe(ye(), o), d = te(e.tag) || fe(e.tag) ? e.tag : Go();
|
|
3034
3034
|
return Fe(d, m, u);
|
|
@@ -3181,9 +3181,9 @@ const Nl = { class: "flex flex-col gap-4" }, Pl = { class: "fm-select__menu__wra
|
|
|
3181
3181
|
return t({
|
|
3182
3182
|
hideMenu: m
|
|
3183
3183
|
}), (_, w) => {
|
|
3184
|
-
const v = K("FmIcon"), h = K("FmField"), S = K("FmMenuItem"),
|
|
3184
|
+
const v = K("FmIcon"), h = K("FmField"), S = K("FmMenuItem"), R = K("FmMenu"), A = K("FmFormGroup"), T = K("FmChipGroup");
|
|
3185
3185
|
return U(), re("div", Nl, [
|
|
3186
|
-
|
|
3186
|
+
O(A, {
|
|
3187
3187
|
"model-value": _.modelValue,
|
|
3188
3188
|
disabled: _.disabled,
|
|
3189
3189
|
focused: c.value,
|
|
@@ -3192,7 +3192,7 @@ const Nl = { class: "flex flex-col gap-4" }, Pl = { class: "fm-select__menu__wra
|
|
|
3192
3192
|
rules: _.rules
|
|
3193
3193
|
}, {
|
|
3194
3194
|
default: W(({ invalid: y }) => [
|
|
3195
|
-
R
|
|
3195
|
+
O(R, {
|
|
3196
3196
|
disabled: _.disabled,
|
|
3197
3197
|
ref_key: "fmMenuRef",
|
|
3198
3198
|
ref: r,
|
|
@@ -3200,13 +3200,13 @@ const Nl = { class: "flex flex-col gap-4" }, Pl = { class: "fm-select__menu__wra
|
|
|
3200
3200
|
onMenuChanged: w[0] || (w[0] = (x) => c.value = x)
|
|
3201
3201
|
}, {
|
|
3202
3202
|
"menu-button": W(() => [
|
|
3203
|
-
|
|
3203
|
+
O(h, {
|
|
3204
3204
|
class: Ke(_.disabled ? "cursor-not-allowed" : "cursor-pointer"),
|
|
3205
3205
|
focused: c.value,
|
|
3206
3206
|
invalid: y
|
|
3207
3207
|
}, {
|
|
3208
3208
|
append: W(() => [
|
|
3209
|
-
|
|
3209
|
+
O(v, {
|
|
3210
3210
|
color: _.disabled ? "#C7C7CC" : "black",
|
|
3211
3211
|
name: c.value ? "expand_less" : "expand_more",
|
|
3212
3212
|
size: "md"
|
|
@@ -3241,7 +3241,7 @@ const Nl = { class: "flex flex-col gap-4" }, Pl = { class: "fm-select__menu__wra
|
|
|
3241
3241
|
_: 3
|
|
3242
3242
|
}, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
|
|
3243
3243
|
_.shouldShowChips && l.value.length > 0 ? (U(), re("div", Ll, [
|
|
3244
|
-
|
|
3244
|
+
O(T, {
|
|
3245
3245
|
disabled: _.disabled,
|
|
3246
3246
|
items: l.value.map((y) => ({ label: y.label })),
|
|
3247
3247
|
removable: "",
|
|
@@ -3518,7 +3518,7 @@ var Un = et("vue-handler-wrapper"), Yo = { name: "HandlerWrapper", components: {
|
|
|
3518
3518
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
3519
3519
|
Yo.render = function(e, t, n, i, a, o) {
|
|
3520
3520
|
var r = K("DraggableElement");
|
|
3521
|
-
return U(), J("div", { class: o.classes.root }, [
|
|
3521
|
+
return U(), J("div", { class: o.classes.root }, [O(r, { class: o.classes.draggable, onDrag: t[1] || (t[1] = function(l) {
|
|
3522
3522
|
return e.$emit("drag", l);
|
|
3523
3523
|
}), onDragEnd: t[2] || (t[2] = function(l) {
|
|
3524
3524
|
return e.$emit("drag-end");
|
|
@@ -3806,7 +3806,7 @@ var ru = et("vue-simple-handler"), su = et("vue-simple-handler-wrapper"), yi = {
|
|
|
3806
3806
|
yi.render = function(e, t, n, i, a, o) {
|
|
3807
3807
|
var r = K("HandlerWrapper");
|
|
3808
3808
|
return U(), J(r, { class: o.classes.wrapper, "vertical-position": n.verticalPosition, "horizontal-position": n.horizontalPosition, disabled: n.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: W(function() {
|
|
3809
|
-
return [
|
|
3809
|
+
return [O("div", { class: o.classes.default }, null, 2)];
|
|
3810
3810
|
}), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
3811
3811
|
};
|
|
3812
3812
|
var lu = et("vue-simple-line"), uu = et("vue-simple-line-wrapper"), wi = { name: "SimpleLine", components: { LineWrapper: Xo }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
@@ -3825,7 +3825,7 @@ var lu = et("vue-simple-line"), uu = et("vue-simple-line-wrapper"), wi = { name:
|
|
|
3825
3825
|
wi.render = function(e, t, n, i, a, o) {
|
|
3826
3826
|
var r = K("LineWrapper");
|
|
3827
3827
|
return U(), J(r, { class: o.classes.wrapper, position: n.position, disabled: n.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: W(function() {
|
|
3828
|
-
return [
|
|
3828
|
+
return [O("div", { class: o.classes.root }, null, 2)];
|
|
3829
3829
|
}), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
3830
3830
|
};
|
|
3831
3831
|
var zn = et("vue-bounding-box"), cu = ["east", "west", null], du = ["south", "north", null], Qo = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
|
|
@@ -3890,7 +3890,7 @@ var zn = et("vue-bounding-box"), cu = ["east", "west", null], du = ["south", "no
|
|
|
3890
3890
|
t === "west" ? l.left -= o : t === "east" && (l.right += o), n === "north" ? l.top -= r : n === "south" && (l.bottom += r), !n && t ? i = "width" : n && !t && (i = "height"), this.resizable && this.$emit("resize", new $l(l, { allowedDirections: { left: t === "west" || !t, right: t === "east" || !t, bottom: n === "south" || !n, top: n === "north" || !n }, preserveAspectRatio: e.nativeEvent && e.nativeEvent.shiftKey, respectDirection: i }));
|
|
3891
3891
|
} }, emits: ["resize", "resize-end"] };
|
|
3892
3892
|
Qo.render = function(e, t, n, i, a, o) {
|
|
3893
|
-
return U(), J("div", { ref: "box", class: o.classes.root, style: o.style }, [Ce(e.$slots, "default"),
|
|
3893
|
+
return U(), J("div", { ref: "box", class: o.classes.root, style: o.style }, [Ce(e.$slots, "default"), O("div", null, [(U(!0), J(Ve, null, rt(o.lineNodes, function(r) {
|
|
3894
3894
|
return U(), J(wn(r.component), { key: r.name, "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, position: r.name, disabled: r.disabled, onDrag: function(l) {
|
|
3895
3895
|
return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
|
|
3896
3896
|
}, onDragEnd: t[1] || (t[1] = function(l) {
|
|
@@ -4150,7 +4150,7 @@ var vn = et("vue-preview"), ia = { props: { coordinates: { type: Object }, trans
|
|
|
4150
4150
|
e && e.complete && this.refreshImage(), this.refresh();
|
|
4151
4151
|
} } };
|
|
4152
4152
|
ia.render = function(e, t, n, i, a, o) {
|
|
4153
|
-
return U(), J("div", { ref: "root", class: o.classes.root, style: o.style }, [
|
|
4153
|
+
return U(), J("div", { ref: "root", class: o.classes.root, style: o.style }, [O("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [Xt(O("img", { ref: "image", src: n.image && n.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[Sn, n.image && n.image.src]])], 6)], 6);
|
|
4154
4154
|
};
|
|
4155
4155
|
var oa = { components: { Preview: ia }, inheritAttrs: !1 };
|
|
4156
4156
|
oa.render = function(e, t, n, i, a, o) {
|
|
@@ -4189,9 +4189,9 @@ var Gn = et("vue-rectangle-stencil"), aa = { name: "RectangleStencil", component
|
|
|
4189
4189
|
} }, emits: ["resize", "resize-end", "move", "move-end"] };
|
|
4190
4190
|
aa.render = function(e, t, n, i, a, o) {
|
|
4191
4191
|
var r = K("stencil-preview"), l = K("draggable-area"), s = K("bounding-box");
|
|
4192
|
-
return U(), J("div", { class: o.classes.stencil, style: o.style }, [
|
|
4193
|
-
return [
|
|
4194
|
-
return [
|
|
4192
|
+
return U(), J("div", { class: o.classes.stencil, style: o.style }, [O(s, { width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, transitions: n.transitions, class: o.classes.boundingBox, handlers: n.handlers, "handlers-component": n.handlersComponent, "handlers-classes": n.handlersClasses, "handlers-wrappers-classes": n.handlersWrappersClasses, lines: n.lines, "lines-component": n.linesComponent, "lines-classes": n.linesClasses, "lines-wrappers-classes": n.linesWrappersClasses, resizable: n.resizable, onResize: o.onResize, onResizeEnd: o.onResizeEnd }, { default: W(function() {
|
|
4193
|
+
return [O(l, { movable: n.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: W(function() {
|
|
4194
|
+
return [O(r, { image: n.image, coordinates: n.coordinates, width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, class: o.classes.preview, transitions: n.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
|
|
4195
4195
|
}), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
|
|
4196
4196
|
}), _: 1 }, 8, ["width", "height", "transitions", "class", "handlers", "handlers-component", "handlers-classes", "handlers-wrappers-classes", "lines", "lines-component", "lines-classes", "lines-wrappers-classes", "resizable", "onResize", "onResizeEnd"])], 6);
|
|
4197
4197
|
};
|
|
@@ -4207,8 +4207,8 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4207
4207
|
return !(typeof e == "string" && e !== "fill" && e !== "fit");
|
|
4208
4208
|
} }, priority: { type: String, default: "coordinates" }, stencilSize: { type: [Object, Function] }, resizeImage: { type: [Boolean, Object], default: !0 }, moveImage: { type: [Boolean, Object], default: !0 }, autoZoomAlgorithm: { type: Function }, resizeAlgorithm: { type: Function, default: function(e) {
|
|
4209
4209
|
var t = e.event, n = e.coordinates, i = e.aspectRatio, a = e.positionRestrictions, o = e.sizeRestrictions, r = ae(ae({}, n), { right: n.left + n.width, bottom: n.top + n.height }), l = t.params || {}, s = ae({}, t.directions), u = l.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
|
|
4210
|
-
o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), ot.forEach(function(
|
|
4211
|
-
u[
|
|
4210
|
+
o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), ot.forEach(function(R) {
|
|
4211
|
+
u[R] || (s[R] = 0);
|
|
4212
4212
|
});
|
|
4213
4213
|
var m = it(r, s = lo({ coordinates: r, directions: s, sizeRestrictions: o, positionRestrictions: a })).width, d = it(r, s).height, c = l.preserveRatio ? me(r) : Vn(m / d, i);
|
|
4214
4214
|
if (c) {
|
|
@@ -4228,8 +4228,8 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4228
4228
|
}
|
|
4229
4229
|
s = lo({ directions: s, coordinates: r, sizeRestrictions: o, positionRestrictions: a, preserveRatio: !0, compensate: l.compensate });
|
|
4230
4230
|
}
|
|
4231
|
-
return m = it(r, s).width, d = it(r, s).height, (c = l.preserveRatio ? me(r) : Vn(m / d, i)) && Math.abs(c - m / d) > 1e-3 && ot.forEach(function(
|
|
4232
|
-
u[
|
|
4231
|
+
return m = it(r, s).width, d = it(r, s).height, (c = l.preserveRatio ? me(r) : Vn(m / d, i)) && Math.abs(c - m / d) > 1e-3 && ot.forEach(function(R) {
|
|
4232
|
+
u[R] || (s[R] = 0);
|
|
4233
4233
|
}), ri({ event: new _i({ left: -s.left, top: -s.top }), coordinates: { width: n.width + s.right + s.left, height: n.height + s.top + s.bottom, left: n.left, top: n.top }, positionRestrictions: a });
|
|
4234
4234
|
} }, moveAlgorithm: { type: Function, default: ri }, initStretcher: { type: Function, default: function(e) {
|
|
4235
4235
|
var t = e.stretcher, n = e.imageSize, i = me(n);
|
|
@@ -4622,9 +4622,9 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4622
4622
|
}
|
|
4623
4623
|
} }, emits: ["change", "error", "ready"] }, gu = { key: 0, ref: "canvas", style: { display: "none" } }, vu = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
|
|
4624
4624
|
ra.render = function(e, t, n, i, a, o) {
|
|
4625
|
-
return U(), J("div", { ref: "cropper", class: o.classes.cropper }, [
|
|
4626
|
-
return [
|
|
4627
|
-
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2),
|
|
4625
|
+
return U(), J("div", { ref: "cropper", class: o.classes.cropper }, [O("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), O("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(U(), J(wn(n.backgroundWrapperComponent), { class: o.classes.cropperWrapper, "wheel-resize": o.settings.resizeImage.wheel, "touch-resize": o.settings.resizeImage.touch, "touch-move": o.settings.moveImage.touch, "mouse-move": o.settings.moveImage.mouse, onMove: o.onManipulateImage, onResize: o.onManipulateImage }, { default: W(function() {
|
|
4626
|
+
return [O("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), O("div", { class: o.classes.imageWrapper }, [O("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: t[1] || (t[1] = Rn(function() {
|
|
4627
|
+
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), O("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), Xt((U(), J(wn(n.stencilComponent), po({ ref: "stencil", image: o.image, coordinates: a.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, n.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[Sn, a.imageLoaded]]), n.canvas ? (U(), J("canvas", gu, null, 512)) : se("", !0), n.canvas ? (U(), J("canvas", vu, null, 512)) : se("", !0)];
|
|
4628
4628
|
}), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
|
|
4629
4629
|
};
|
|
4630
4630
|
function _u(e, t) {
|
|
@@ -4655,9 +4655,9 @@ const yu = {
|
|
|
4655
4655
|
])
|
|
4656
4656
|
}, Su = {
|
|
4657
4657
|
class: /* @__PURE__ */ Ke(["absolute inset-0", "h-full w-full", "rounded-md overflow-hidden"])
|
|
4658
|
-
},
|
|
4658
|
+
}, Ru = {
|
|
4659
4659
|
class: /* @__PURE__ */ Ke(["relative z-0", "w-full h-full", "overflow-hidden"])
|
|
4660
|
-
},
|
|
4660
|
+
}, Ou = { class: "fm-typo-en-body-lg-600 pb-4" }, Cu = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Au = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Iu = /* @__PURE__ */ ge({
|
|
4661
4661
|
__name: "ImageDropField",
|
|
4662
4662
|
props: {
|
|
4663
4663
|
modelValue: {}
|
|
@@ -4699,8 +4699,8 @@ const yu = {
|
|
|
4699
4699
|
]),
|
|
4700
4700
|
B("div", ku, [
|
|
4701
4701
|
B("div", Su, [
|
|
4702
|
-
B("div",
|
|
4703
|
-
|
|
4702
|
+
B("div", Ru, [
|
|
4703
|
+
O(b(ra), {
|
|
4704
4704
|
class: "cropper h-[150px] w-[200px]",
|
|
4705
4705
|
src: r.value || o.value,
|
|
4706
4706
|
"stencil-props": {
|
|
@@ -4725,7 +4725,7 @@ const yu = {
|
|
|
4725
4725
|
type: "button",
|
|
4726
4726
|
onClick: d
|
|
4727
4727
|
}, [
|
|
4728
|
-
|
|
4728
|
+
O(E, { name: "close" })
|
|
4729
4729
|
])
|
|
4730
4730
|
])
|
|
4731
4731
|
])
|
|
@@ -4736,7 +4736,7 @@ const yu = {
|
|
|
4736
4736
|
onFileUpload: u
|
|
4737
4737
|
}, {
|
|
4738
4738
|
label: W(() => [
|
|
4739
|
-
B("p",
|
|
4739
|
+
B("p", Ou, [
|
|
4740
4740
|
Bn(Ee(b(i)("menu.common.labels.product_image")) + " ", 1),
|
|
4741
4741
|
B("span", Cu, Ee(b(i)("menu.common.labels.optional")), 1)
|
|
4742
4742
|
])
|
|
@@ -4827,7 +4827,7 @@ const yu = {
|
|
|
4827
4827
|
return (u, m) => {
|
|
4828
4828
|
const d = K("fm-select");
|
|
4829
4829
|
return U(), re("div", null, [
|
|
4830
|
-
|
|
4830
|
+
O(d, {
|
|
4831
4831
|
disabled: e.disable,
|
|
4832
4832
|
items: r.value,
|
|
4833
4833
|
label: e.label ?? b(i)("menu.common.labels.order_from"),
|
|
@@ -4916,17 +4916,17 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
4916
4916
|
},
|
|
4917
4917
|
emits: ["update:modelValue"],
|
|
4918
4918
|
setup(e, { emit: t }) {
|
|
4919
|
-
const n = e, i = t, a = lt(), o = Qe(), r = St(o), l =
|
|
4919
|
+
const n = e, i = t, a = lt(), o = Qe(), r = St(o), l = Rt(r), { t: s } = ln(), u = oe(null), m = oe([]), d = Ya({
|
|
4920
4920
|
dialog: a,
|
|
4921
4921
|
menuLoader: l,
|
|
4922
4922
|
isLocalOnly: n.isLocalOnly
|
|
4923
4923
|
}), c = (h, S) => {
|
|
4924
|
-
h ? m.value = [...m.value, S] : m.value = m.value.filter((
|
|
4924
|
+
h ? m.value = [...m.value, S] : m.value = m.value.filter((R) => R.value !== S.value), i(
|
|
4925
4925
|
"update:modelValue",
|
|
4926
|
-
m.value.map((
|
|
4926
|
+
m.value.map((R) => R.value)
|
|
4927
4927
|
);
|
|
4928
4928
|
}, p = (h) => {
|
|
4929
|
-
m.value = m.value.filter((S,
|
|
4929
|
+
m.value = m.value.filter((S, R) => R !== h), i(
|
|
4930
4930
|
"update:modelValue",
|
|
4931
4931
|
m.value.map((S) => S.value)
|
|
4932
4932
|
);
|
|
@@ -4944,9 +4944,9 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
4944
4944
|
},
|
|
4945
4945
|
{ immediate: !0 }
|
|
4946
4946
|
), (h, S) => {
|
|
4947
|
-
const
|
|
4947
|
+
const R = K("FmIcon"), A = K("FmField"), T = K("FmMenuItem"), y = K("FmMenu"), x = K("FmFormGroup"), k = K("FmChipGroup");
|
|
4948
4948
|
return U(), re("div", Lu, [
|
|
4949
|
-
|
|
4949
|
+
O(x, {
|
|
4950
4950
|
"model-value": h.modelValue,
|
|
4951
4951
|
disabled: h.disabled,
|
|
4952
4952
|
focused: v.value,
|
|
@@ -4955,7 +4955,7 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
4955
4955
|
rules: h.rules
|
|
4956
4956
|
}, {
|
|
4957
4957
|
default: W(({ invalid: I }) => [
|
|
4958
|
-
|
|
4958
|
+
O(y, {
|
|
4959
4959
|
disabled: h.disabled,
|
|
4960
4960
|
ref_key: "fmMenuRef",
|
|
4961
4961
|
ref: u,
|
|
@@ -4963,13 +4963,13 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
4963
4963
|
onMenuChanged: S[1] || (S[1] = (N) => v.value = N)
|
|
4964
4964
|
}, {
|
|
4965
4965
|
"menu-button": W(() => [
|
|
4966
|
-
|
|
4966
|
+
O(A, {
|
|
4967
4967
|
class: Ke(h.disabled ? "cursor-not-allowed" : "cursor-pointer"),
|
|
4968
4968
|
focused: v.value,
|
|
4969
4969
|
invalid: I
|
|
4970
4970
|
}, {
|
|
4971
4971
|
append: W(() => [
|
|
4972
|
-
R
|
|
4972
|
+
O(R, {
|
|
4973
4973
|
color: h.disabled ? "#C7C7CC" : "black",
|
|
4974
4974
|
name: v.value ? "expand_less" : "expand_more",
|
|
4975
4975
|
size: "md"
|
|
@@ -5000,7 +5000,7 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
5000
5000
|
type: "button",
|
|
5001
5001
|
onClick: S[0] || (S[0] = (N) => E())
|
|
5002
5002
|
}, [
|
|
5003
|
-
R
|
|
5003
|
+
O(R, {
|
|
5004
5004
|
color: "primary",
|
|
5005
5005
|
name: "add",
|
|
5006
5006
|
size: "md"
|
|
@@ -5015,7 +5015,7 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
5015
5015
|
_: 1
|
|
5016
5016
|
}, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
|
|
5017
5017
|
m.value.length > 0 ? (U(), re("div", Vu, [
|
|
5018
|
-
|
|
5018
|
+
O(k, {
|
|
5019
5019
|
disabled: h.disabled,
|
|
5020
5020
|
items: m.value.map((I) => ({ label: I.label })),
|
|
5021
5021
|
removable: "",
|
|
@@ -5078,12 +5078,12 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5078
5078
|
setup(e, {
|
|
5079
5079
|
emit: t
|
|
5080
5080
|
}) {
|
|
5081
|
-
const n = e, i = Me(), a = rn(), o = lt(), r = Qe(), l = St(r), s =
|
|
5081
|
+
const n = e, i = Me(), a = rn(), o = lt(), r = Qe(), l = St(r), s = Rt(l), u = Xa({
|
|
5082
5082
|
dialog: o,
|
|
5083
5083
|
menuLoader: s
|
|
5084
5084
|
}), {
|
|
5085
5085
|
checkMenuIsLoading: m
|
|
5086
|
-
} =
|
|
5086
|
+
} = Rt(St(Qe())), d = t, c = V(() => i.rules.item), p = V(() => i.categorizedItems), E = V(() => {
|
|
5087
5087
|
const D = p.value.map((C) => ({
|
|
5088
5088
|
label: C.name,
|
|
5089
5089
|
value: C.id
|
|
@@ -5107,26 +5107,26 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5107
5107
|
}
|
|
5108
5108
|
d("update:form", "category", C._id), d("update:form", "additionalCategories", $);
|
|
5109
5109
|
}
|
|
5110
|
-
}),
|
|
5111
|
-
ref:
|
|
5110
|
+
}), R = oe(), A = () => n.isAddon ? null : O(Ul, {
|
|
5111
|
+
ref: R,
|
|
5112
5112
|
disabled: !c.value.category || n.isAddon || m(),
|
|
5113
5113
|
items: E.value,
|
|
5114
5114
|
modelValue: S.value,
|
|
5115
5115
|
"onUpdate:model-value": (D) => S.value = D,
|
|
5116
5116
|
placeholder: z("menu.product.form.detail.category.placeholder")
|
|
5117
5117
|
}, {
|
|
5118
|
-
"append-menu": () =>
|
|
5118
|
+
"append-menu": () => O("button", {
|
|
5119
5119
|
class: "flex items-center py-8 px-16 space-x-8",
|
|
5120
5120
|
type: "button",
|
|
5121
5121
|
onClick: () => {
|
|
5122
5122
|
var D;
|
|
5123
|
-
(D =
|
|
5123
|
+
(D = R.value) == null || D.hideMenu(), u.create();
|
|
5124
5124
|
}
|
|
5125
|
-
}, [
|
|
5125
|
+
}, [O(Be.FmIcon, {
|
|
5126
5126
|
color: "primary",
|
|
5127
5127
|
name: "add",
|
|
5128
5128
|
size: "md"
|
|
5129
|
-
}, null),
|
|
5129
|
+
}, null), O("p", {
|
|
5130
5130
|
class: "fm-typo-en-body-lg-600 text-fm-color-primary"
|
|
5131
5131
|
}, [z("menu.product.form.detail.category.add_new")])])
|
|
5132
5132
|
});
|
|
@@ -5188,12 +5188,12 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5188
5188
|
}, {
|
|
5189
5189
|
default: W(() => {
|
|
5190
5190
|
var ne, ee;
|
|
5191
|
-
return [B("div", Gu, [B("div", Bu, [B("div", Wu, [B("div", Hu, [
|
|
5191
|
+
return [B("div", Gu, [B("div", Bu, [B("div", Wu, [B("div", Hu, [O($, {
|
|
5192
5192
|
"model-value": D.form.code,
|
|
5193
5193
|
placeholder: ((ne = D.fallback) == null ? void 0 : ne.code) || b(z)("menu.product.form.detail.fields.code.placeholder"),
|
|
5194
5194
|
label: b(z)("menu.product.form.detail.fields.code.label"),
|
|
5195
5195
|
"onUpdate:modelValue": C[0] || (C[0] = (Q) => d("update:form", "code", b(la)(Q, D.isOverride)))
|
|
5196
|
-
}, null, 8, ["model-value", "placeholder", "label"])]), B("div", ju, [
|
|
5196
|
+
}, null, 8, ["model-value", "placeholder", "label"])]), B("div", ju, [O($, {
|
|
5197
5197
|
id: "product-name",
|
|
5198
5198
|
disabled: !c.value.name,
|
|
5199
5199
|
"helper-text": T.value > 0 ? b(z)("menu.product.form.detail.fields.name.duplicate_warning", {
|
|
@@ -5206,7 +5206,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5206
5206
|
autofocus: "",
|
|
5207
5207
|
label: b(z)("menu.product.form.detail.fields.name.label"),
|
|
5208
5208
|
"onUpdate:modelValue": C[1] || (C[1] = (Q) => d("update:form", "name", Q))
|
|
5209
|
-
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [
|
|
5209
|
+
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [O(le, {
|
|
5210
5210
|
disabled: !c.value.description,
|
|
5211
5211
|
"model-value": D.form.description || void 0,
|
|
5212
5212
|
placeholder: b(z)("menu.product.form.detail.fields.description.placeholder"),
|
|
@@ -5215,15 +5215,15 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5215
5215
|
}, {
|
|
5216
5216
|
label: W(() => [B("p", Yu, [Bn(Ee(b(z)("menu.product.form.detail.fields.description.label")) + " ", 1), B("span", Xu, Ee(b(z)("menu.product.form.detail.fields.description.optional")), 1)])]),
|
|
5217
5217
|
_: 1
|
|
5218
|
-
}, 8, ["disabled", "model-value", "placeholder"]), Xt(
|
|
5218
|
+
}, 8, ["disabled", "model-value", "placeholder"]), Xt(O(sa, {
|
|
5219
5219
|
class: "absolute top-32 right-4 cursor-pointer",
|
|
5220
5220
|
onClick: I
|
|
5221
|
-
}, null, 512), [[ie, b(yo)("Suggest description")]])])]),
|
|
5221
|
+
}, null, 512), [[ie, b(yo)("Suggest description")]])])]), O(Iu, {
|
|
5222
5222
|
disabled: !c.value.thumbnail,
|
|
5223
5223
|
"model-value": D.thumbnail,
|
|
5224
5224
|
"onUpdate:modelValue": C[3] || (C[3] = (Q) => d("update:thumbnail", Q)),
|
|
5225
5225
|
"onReset:modelValue": C[4] || (C[4] = (Q) => d("reset:thumbnail"))
|
|
5226
|
-
}, null, 8, ["disabled", "model-value"])]),
|
|
5226
|
+
}, null, 8, ["disabled", "model-value"])]), O(bt, {
|
|
5227
5227
|
label: b(z)("menu.product.form.detail.category.label")
|
|
5228
5228
|
}, {
|
|
5229
5229
|
default: W(() => [_.value ? (U(), J(H, {
|
|
@@ -5232,25 +5232,25 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5232
5232
|
"model-value": y.value,
|
|
5233
5233
|
"onUpdate:modelValue": C[5] || (C[5] = (Q) => x(Q))
|
|
5234
5234
|
}, {
|
|
5235
|
-
default: W(() => [B("div", qu, [B("div", Ju, [
|
|
5235
|
+
default: W(() => [B("div", qu, [B("div", Ju, [O(ce, {
|
|
5236
5236
|
disabled: w.value || !c.value.category,
|
|
5237
5237
|
value: Mt.PRODUCT,
|
|
5238
5238
|
label: b(z)("menu.product.form.detail.category.options.product.label"),
|
|
5239
5239
|
sublabel: b(z)("menu.product.form.detail.category.options.product.sublabel")
|
|
5240
|
-
}, null, 8, ["disabled", "value", "label", "sublabel"]),
|
|
5240
|
+
}, null, 8, ["disabled", "value", "label", "sublabel"]), O(Fr, null, {
|
|
5241
5241
|
default: W(() => [b(i).isV4 ? (U(), J(A, {
|
|
5242
5242
|
key: 0
|
|
5243
5243
|
})) : se("", !0)]),
|
|
5244
5244
|
_: 1
|
|
5245
|
-
})]), w.value ? (U(), re("div", Zu, [
|
|
5245
|
+
})]), w.value ? (U(), re("div", Zu, [O(we, {
|
|
5246
5246
|
title: b(z)("menu.product.form.detail.category.add_first"),
|
|
5247
5247
|
variant: "info"
|
|
5248
|
-
}, null, 8, ["title"]),
|
|
5248
|
+
}, null, 8, ["title"]), O(G, {
|
|
5249
5249
|
label: b(z)("menu.common.actions.add"),
|
|
5250
5250
|
"prepend-icon": "add",
|
|
5251
5251
|
variant: "secondary",
|
|
5252
5252
|
onClick: b(u).create
|
|
5253
|
-
}, null, 8, ["label", "onClick"])])) : se("", !0),
|
|
5253
|
+
}, null, 8, ["label", "onClick"])])) : se("", !0), O(ce, {
|
|
5254
5254
|
value: Mt.ADD_ON,
|
|
5255
5255
|
label: b(z)("menu.product.form.detail.category.options.addon.label"),
|
|
5256
5256
|
sublabel: b(z)("menu.product.form.detail.category.options.addon.sublabel")
|
|
@@ -5262,7 +5262,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5262
5262
|
rules: [(Q) => !Q && !D.isOverride ? "Category is required" : !0],
|
|
5263
5263
|
"onUpdate:modelValue": C[6] || (C[6] = (Q) => d("update:form", "category", Q))
|
|
5264
5264
|
}, {
|
|
5265
|
-
default: W(() => [
|
|
5265
|
+
default: W(() => [O(A)]),
|
|
5266
5266
|
_: 1
|
|
5267
5267
|
}, 8, ["model-value", "rules"]))]),
|
|
5268
5268
|
_: 1
|
|
@@ -5270,7 +5270,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5270
5270
|
key: 0,
|
|
5271
5271
|
label: b(z)("menu.product.form.detail.path.label")
|
|
5272
5272
|
}, {
|
|
5273
|
-
default: W(() => [B("div", Qu, [
|
|
5273
|
+
default: W(() => [B("div", Qu, [O($u, {
|
|
5274
5274
|
modelValue: P.value,
|
|
5275
5275
|
"onUpdate:modelValue": C[7] || (C[7] = (Q) => P.value = Q),
|
|
5276
5276
|
items: M.value,
|
|
@@ -5279,7 +5279,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5279
5279
|
"is-local-only": !1
|
|
5280
5280
|
}, null, 8, ["modelValue", "items", "placeholder", "disabled"])])]),
|
|
5281
5281
|
_: 1
|
|
5282
|
-
}, 8, ["label"])) : se("", !0),
|
|
5282
|
+
}, 8, ["label"])) : se("", !0), O(Ei, {
|
|
5283
5283
|
disabled: !c.value.orderFrom,
|
|
5284
5284
|
"model-value": D.form.orderFrom,
|
|
5285
5285
|
"order-from-none": c.value.orderFromNone,
|
|
@@ -5392,7 +5392,7 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5392
5392
|
const _ = K("fm-text-field"), w = K("fm-card"), v = K("fm-button"), h = K("fm-side-sheet");
|
|
5393
5393
|
return U(), re(Ve, null, [
|
|
5394
5394
|
Ce(p.$slots, "default", { trigger: o }),
|
|
5395
|
-
|
|
5395
|
+
O(h, {
|
|
5396
5396
|
id: "inventory-form",
|
|
5397
5397
|
modelValue: a.value,
|
|
5398
5398
|
"onUpdate:modelValue": E[2] || (E[2] = (S) => a.value = S),
|
|
@@ -5410,13 +5410,13 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5410
5410
|
]),
|
|
5411
5411
|
"side-sheet-footer": W(() => [
|
|
5412
5412
|
B("div", pc, [
|
|
5413
|
-
|
|
5413
|
+
O(v, {
|
|
5414
5414
|
label: b(d)("menu.common.actions.add"),
|
|
5415
5415
|
size: "lg",
|
|
5416
5416
|
type: "submit",
|
|
5417
5417
|
variant: "primary"
|
|
5418
5418
|
}, null, 8, ["label"]),
|
|
5419
|
-
|
|
5419
|
+
O(v, {
|
|
5420
5420
|
label: b(d)("menu.common.actions.cancel"),
|
|
5421
5421
|
size: "lg",
|
|
5422
5422
|
variant: "tertiary",
|
|
@@ -5426,17 +5426,17 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5426
5426
|
]),
|
|
5427
5427
|
default: W(() => [
|
|
5428
5428
|
B("div", mc, [
|
|
5429
|
-
|
|
5429
|
+
O(_, {
|
|
5430
5430
|
"model-value": p.name,
|
|
5431
5431
|
disabled: "",
|
|
5432
5432
|
label: b(d)("menu.inventory.form.product_name")
|
|
5433
5433
|
}, null, 8, ["model-value", "label"]),
|
|
5434
|
-
|
|
5434
|
+
O(w, {
|
|
5435
5435
|
class: "p-16 space-y-24",
|
|
5436
5436
|
variant: "outlined"
|
|
5437
5437
|
}, {
|
|
5438
5438
|
default: W(() => [
|
|
5439
|
-
|
|
5439
|
+
O(b(Ja), {
|
|
5440
5440
|
modelValue: r.value,
|
|
5441
5441
|
"onUpdate:modelValue": E[0] || (E[0] = (S) => r.value = S)
|
|
5442
5442
|
}, null, 8, ["modelValue"])
|
|
@@ -5469,7 +5469,7 @@ function hc() {
|
|
|
5469
5469
|
l = c;
|
|
5470
5470
|
}, m = (c) => {
|
|
5471
5471
|
s = c;
|
|
5472
|
-
}, d =
|
|
5472
|
+
}, d = O(o, {
|
|
5473
5473
|
...i,
|
|
5474
5474
|
// close event from the component
|
|
5475
5475
|
"onUpdate:show": (c) => {
|
|
@@ -5524,7 +5524,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5524
5524
|
cell: (r) => {
|
|
5525
5525
|
var u, m;
|
|
5526
5526
|
const l = (u = n.fallback) == null ? void 0 : u[r.row.original.key], s = l ? Gt(l) : void 0;
|
|
5527
|
-
return
|
|
5527
|
+
return O(Ft, {
|
|
5528
5528
|
required: !1,
|
|
5529
5529
|
nullable: !0,
|
|
5530
5530
|
min: n.allowNegativePrice ? void 0 : 0,
|
|
@@ -5537,7 +5537,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5537
5537
|
}];
|
|
5538
5538
|
return (r, l) => {
|
|
5539
5539
|
const s = K("FmTable");
|
|
5540
|
-
return U(), re("div", null, [
|
|
5540
|
+
return U(), re("div", null, [O(s, {
|
|
5541
5541
|
"column-defs": o,
|
|
5542
5542
|
"row-data": r.priceTiers,
|
|
5543
5543
|
"page-size": r.priceTiers.length,
|
|
@@ -5584,13 +5584,13 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5584
5584
|
]),
|
|
5585
5585
|
"side-sheet-footer": W(() => [
|
|
5586
5586
|
B("div", _c, [
|
|
5587
|
-
|
|
5587
|
+
O(w, {
|
|
5588
5588
|
label: l.value,
|
|
5589
5589
|
size: "lg",
|
|
5590
5590
|
type: "submit",
|
|
5591
5591
|
variant: "primary"
|
|
5592
5592
|
}, null, 8, ["label"]),
|
|
5593
|
-
|
|
5593
|
+
O(w, {
|
|
5594
5594
|
label: b(n)("common.cancel"),
|
|
5595
5595
|
size: "lg",
|
|
5596
5596
|
variant: "tertiary",
|
|
@@ -5600,12 +5600,12 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5600
5600
|
]),
|
|
5601
5601
|
default: W(() => [
|
|
5602
5602
|
B("div", vc, [
|
|
5603
|
-
|
|
5603
|
+
O(bt, {
|
|
5604
5604
|
label: b(n)("menu.price_tier.price_group"),
|
|
5605
5605
|
description: b(n)("menu.price_tier.description")
|
|
5606
5606
|
}, {
|
|
5607
5607
|
append: W(() => [
|
|
5608
|
-
|
|
5608
|
+
O(_, {
|
|
5609
5609
|
class: "min-w-fit",
|
|
5610
5610
|
label: b(n)("menu.price_tier.add_price_group"),
|
|
5611
5611
|
icon: "add",
|
|
@@ -5614,7 +5614,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5614
5614
|
}, null, 8, ["label", "onClick"])
|
|
5615
5615
|
]),
|
|
5616
5616
|
default: W(() => [
|
|
5617
|
-
|
|
5617
|
+
O(ca, {
|
|
5618
5618
|
"price-tiers": b(u).priceTiers.value,
|
|
5619
5619
|
"model-value": m.value,
|
|
5620
5620
|
fallback: p.fallback,
|
|
@@ -5662,7 +5662,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5662
5662
|
placement: "top"
|
|
5663
5663
|
}, {
|
|
5664
5664
|
default: W(() => [
|
|
5665
|
-
|
|
5665
|
+
O(m, {
|
|
5666
5666
|
icon: "price_change",
|
|
5667
5667
|
variant: "tertiary",
|
|
5668
5668
|
"text-color": b(ft).NeutralGray400,
|
|
@@ -5720,7 +5720,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5720
5720
|
}), w = V(() => !0), v = (G) => G ? Gt(G, !1) : "", h = (G) => {
|
|
5721
5721
|
var H;
|
|
5722
5722
|
return G == null ? "" : (H = Ma()[G]) == null ? void 0 : H.label;
|
|
5723
|
-
}, S = V(() => Object.values(E.value)),
|
|
5723
|
+
}, S = V(() => Object.values(E.value)), R = oe({}), {
|
|
5724
5724
|
t: A
|
|
5725
5725
|
} = Se(), T = oe([{
|
|
5726
5726
|
accessorKey: "isDefault",
|
|
@@ -5732,7 +5732,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5732
5732
|
if ((Q = (ee = G.row.original) == null ? void 0 : ee.items) != null && Q.length)
|
|
5733
5733
|
return null;
|
|
5734
5734
|
const H = G.row.depth > 0, Z = G.row.original, ie = !_(Z.combinationKey).isDefault || Z.orderFrom === q.F_ORDER_FROM.enum.NONE, ne = !!G.getValue();
|
|
5735
|
-
return
|
|
5735
|
+
return O(Be.FmCheckbox, {
|
|
5736
5736
|
value: "default",
|
|
5737
5737
|
modelValue: ne,
|
|
5738
5738
|
disabled: ie,
|
|
@@ -5754,12 +5754,12 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5754
5754
|
size: 100,
|
|
5755
5755
|
cell: (G) => {
|
|
5756
5756
|
const H = G.getValue();
|
|
5757
|
-
return
|
|
5757
|
+
return O(Be.FmTooltip, {
|
|
5758
5758
|
class: "flex",
|
|
5759
5759
|
content: H,
|
|
5760
5760
|
zIndex: 110
|
|
5761
5761
|
}, {
|
|
5762
|
-
default: () => [
|
|
5762
|
+
default: () => [O("div", {
|
|
5763
5763
|
class: "break-all max-w-[100px]"
|
|
5764
5764
|
}, [H])]
|
|
5765
5765
|
});
|
|
@@ -5877,9 +5877,9 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5877
5877
|
size: 80,
|
|
5878
5878
|
cell: (G) => {
|
|
5879
5879
|
const H = G.row.original, Z = H.orderFrom === q.F_ORDER_FROM.enum.NONE, ie = G.row.depth > 0;
|
|
5880
|
-
return
|
|
5880
|
+
return O("div", {
|
|
5881
5881
|
class: "flex items-center justify-end"
|
|
5882
|
-
}, [_(null).priceTier &&
|
|
5882
|
+
}, [_(null).priceTier && O(da, {
|
|
5883
5883
|
priceTiers: H.priceTiers,
|
|
5884
5884
|
disabled: Z,
|
|
5885
5885
|
"onUpdate:priceTiers": (ne) => {
|
|
@@ -5897,7 +5897,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5897
5897
|
} else
|
|
5898
5898
|
k(H._id, "priceTiers", ne);
|
|
5899
5899
|
}
|
|
5900
|
-
}, null), _(H.combinationKey).inventory &&
|
|
5900
|
+
}, null), _(H.combinationKey).inventory && O(li, {
|
|
5901
5901
|
title: "Inventory",
|
|
5902
5902
|
initialValue: H.inventoryBindings ?? [],
|
|
5903
5903
|
name: H.name ?? H.fallbackName ?? "",
|
|
@@ -5920,14 +5920,14 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5920
5920
|
}, {
|
|
5921
5921
|
default: ({
|
|
5922
5922
|
trigger: ne
|
|
5923
|
-
}) =>
|
|
5923
|
+
}) => O(K("fm-tooltip"), {
|
|
5924
5924
|
content: "Inventory",
|
|
5925
5925
|
zIndex: 110
|
|
5926
5926
|
}, {
|
|
5927
5927
|
default: () => {
|
|
5928
5928
|
var ee;
|
|
5929
|
-
return [
|
|
5930
|
-
variant:
|
|
5929
|
+
return [O(K("fm-button"), {
|
|
5930
|
+
variant: Ot.Tertiary,
|
|
5931
5931
|
disabled: Z,
|
|
5932
5932
|
prependIcon: "inventory_2",
|
|
5933
5933
|
overwriteIconOutline: (ee = H.inventoryBindings) != null && ee.length ? "filled" : "outline",
|
|
@@ -5936,8 +5936,8 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5936
5936
|
}, null)];
|
|
5937
5937
|
}
|
|
5938
5938
|
})
|
|
5939
|
-
}), _(H.combinationKey).link &&
|
|
5940
|
-
variant:
|
|
5939
|
+
}), _(H.combinationKey).link && O(K("fm-button"), {
|
|
5940
|
+
variant: Ot.Tertiary,
|
|
5941
5941
|
prependIcon: "delete",
|
|
5942
5942
|
textColor: ft.NeutralGray400,
|
|
5943
5943
|
disabled: ie,
|
|
@@ -6067,7 +6067,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6067
6067
|
}, {
|
|
6068
6068
|
"append-title": W(() => [G.config.link() ? (U(), re(Ve, {
|
|
6069
6069
|
key: 0
|
|
6070
|
-
}, [u.value ? (U(), re("div", yc, [
|
|
6070
|
+
}, [u.value ? (U(), re("div", yc, [O(xa, {
|
|
6071
6071
|
"categorized-items": G.categorizedItems,
|
|
6072
6072
|
"initial-value": d.value,
|
|
6073
6073
|
"show-variant": G.config.bindToVariant,
|
|
@@ -6079,7 +6079,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6079
6079
|
}, {
|
|
6080
6080
|
default: W(({
|
|
6081
6081
|
trigger: ne
|
|
6082
|
-
}) => [
|
|
6082
|
+
}) => [O(Z, {
|
|
6083
6083
|
"text-color": b(ft).ColorPrimary,
|
|
6084
6084
|
"border-color": b(ft).ColorPrimary,
|
|
6085
6085
|
variant: "secondary",
|
|
@@ -6088,7 +6088,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6088
6088
|
onClick: ne
|
|
6089
6089
|
}, null, 8, ["text-color", "border-color", "label", "onClick"])]),
|
|
6090
6090
|
_: 1
|
|
6091
|
-
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div", wc, [
|
|
6091
|
+
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div", wc, [O(Z, {
|
|
6092
6092
|
"text-color": b(ft).ColorPrimary,
|
|
6093
6093
|
"border-color": b(ft).ColorPrimary,
|
|
6094
6094
|
variant: "secondary",
|
|
@@ -6096,18 +6096,18 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6096
6096
|
"prepend-icon": "add",
|
|
6097
6097
|
onClick: x
|
|
6098
6098
|
}, null, 8, ["text-color", "border-color", "label"])]))], 64)) : se("", !0)]),
|
|
6099
|
-
default: W(() => [B("div", Ec, [B("div", kc, [
|
|
6099
|
+
default: W(() => [B("div", Ec, [B("div", kc, [O(ie, {
|
|
6100
6100
|
"column-defs": T.value,
|
|
6101
6101
|
"column-visibility": y.value,
|
|
6102
6102
|
draggable: !we.value && _(null).name,
|
|
6103
|
-
"expanded-state": l.value ? {} :
|
|
6103
|
+
"expanded-state": l.value ? {} : R.value,
|
|
6104
6104
|
"get-sub-row": $,
|
|
6105
6105
|
"page-size": 999,
|
|
6106
6106
|
"row-data": S.value,
|
|
6107
6107
|
"search-value": b(c),
|
|
6108
6108
|
"shrink-at": !1,
|
|
6109
6109
|
"hide-footer": "",
|
|
6110
|
-
"onUpdate:expandedState": H[1] || (H[1] = (ne) =>
|
|
6110
|
+
"onUpdate:expandedState": H[1] || (H[1] = (ne) => R.value = ne),
|
|
6111
6111
|
onDndChanged: H[2] || (H[2] = (ne) => le(ne)),
|
|
6112
6112
|
"onUpdate:dragging": H[3] || (H[3] = (ne) => l.value = ne)
|
|
6113
6113
|
}, null, 8, ["column-defs", "column-visibility", "draggable", "expanded-state", "row-data", "search-value"])])])]),
|
|
@@ -6116,7 +6116,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6116
6116
|
};
|
|
6117
6117
|
}
|
|
6118
6118
|
});
|
|
6119
|
-
function
|
|
6119
|
+
function Rc(e) {
|
|
6120
6120
|
const { t } = Se();
|
|
6121
6121
|
function n(r) {
|
|
6122
6122
|
let l = 0;
|
|
@@ -6165,7 +6165,7 @@ function Oc(e) {
|
|
|
6165
6165
|
minMaxValidationRules: o
|
|
6166
6166
|
};
|
|
6167
6167
|
}
|
|
6168
|
-
const
|
|
6168
|
+
const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
6169
6169
|
key: 0,
|
|
6170
6170
|
class: "pt-8 space-y-32"
|
|
6171
6171
|
}, Ac = { class: "flex gap-8 items-center justify-start" }, ma = /* @__PURE__ */ ge({
|
|
@@ -6181,7 +6181,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6181
6181
|
emits: ["update:group", "submit:group", "status:show"],
|
|
6182
6182
|
setup(e, { expose: t, emit: n }) {
|
|
6183
6183
|
let i = e;
|
|
6184
|
-
const a = n, o = Me(), r = rn(), l = lt(), s = Qe(), u =
|
|
6184
|
+
const a = n, o = Me(), r = rn(), l = lt(), s = Qe(), u = Rt(St(s)), { countDefaultItems: m, validateGroupItems: d, minMaxValidationRules: c } = Rc(
|
|
6185
6185
|
() => i.group
|
|
6186
6186
|
), p = oe(!1), E = oe(!1), _ = (C) => {
|
|
6187
6187
|
sn.isBoolean(C) ? E.value = C : E.value = !E.value;
|
|
@@ -6199,12 +6199,12 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6199
6199
|
value: q.F_ADDON_GROUP_TYPE.enum.DYNAMIC
|
|
6200
6200
|
}
|
|
6201
6201
|
]);
|
|
6202
|
-
function
|
|
6202
|
+
function R(C) {
|
|
6203
6203
|
a("update:group", C);
|
|
6204
6204
|
}
|
|
6205
6205
|
function A(C) {
|
|
6206
6206
|
function $() {
|
|
6207
|
-
|
|
6207
|
+
R({
|
|
6208
6208
|
...i.group,
|
|
6209
6209
|
items: {},
|
|
6210
6210
|
type: C
|
|
@@ -6224,7 +6224,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6224
6224
|
}).onPrimary($) : $();
|
|
6225
6225
|
}
|
|
6226
6226
|
function T(C) {
|
|
6227
|
-
return new
|
|
6227
|
+
return new Oo(o, u.updateMenu, l).mapGroups(
|
|
6228
6228
|
[C],
|
|
6229
6229
|
w.value.isOverride
|
|
6230
6230
|
)[0];
|
|
@@ -6238,7 +6238,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6238
6238
|
async function I() {
|
|
6239
6239
|
var C;
|
|
6240
6240
|
if (i.action === "add") {
|
|
6241
|
-
const { group: $, linkItems: le } =
|
|
6241
|
+
const { group: $, linkItems: le } = Ro(i.group), ce = {
|
|
6242
6242
|
module: q.F_MENU_MODULE_V4_KEY.enum.group,
|
|
6243
6243
|
operation: ze.F_OPERATION_TYPE.create,
|
|
6244
6244
|
data: $,
|
|
@@ -6284,7 +6284,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6284
6284
|
typeof we == "string" && we && !((le = C[ce]) != null && le.includes(we)) && (C[ce] = [...C[ce] || [], we]);
|
|
6285
6285
|
}), C;
|
|
6286
6286
|
}), P = (C) => {
|
|
6287
|
-
i.group &&
|
|
6287
|
+
i.group && R({
|
|
6288
6288
|
...i.group,
|
|
6289
6289
|
customAttributes: C
|
|
6290
6290
|
});
|
|
@@ -6303,7 +6303,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6303
6303
|
const le = K("fm-text-field"), ce = K("fm-stepper-field"), we = K("FmFormGroup"), G = K("fm-radio"), H = K("fm-radio-group"), Z = K("fm-switch"), ie = K("fm-button"), ne = K("fm-side-sheet");
|
|
6304
6304
|
return U(), re(Ve, null, [
|
|
6305
6305
|
Ce(C.$slots, "default", { trigger: _ }),
|
|
6306
|
-
|
|
6306
|
+
O(ne, {
|
|
6307
6307
|
id: "group-form",
|
|
6308
6308
|
modelValue: E.value,
|
|
6309
6309
|
"onUpdate:modelValue": $[8] || ($[8] = (ee) => E.value = ee),
|
|
@@ -6316,18 +6316,18 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6316
6316
|
"onOn:clickedAway": b(x)
|
|
6317
6317
|
}, {
|
|
6318
6318
|
"side-sheet-header": W(() => [
|
|
6319
|
-
B("p",
|
|
6319
|
+
B("p", Oc, Ee(C.title), 1)
|
|
6320
6320
|
]),
|
|
6321
6321
|
"side-sheet-footer": W(() => [
|
|
6322
6322
|
B("div", Ac, [
|
|
6323
|
-
|
|
6323
|
+
O(ie, {
|
|
6324
6324
|
label: b(tr)(k.value),
|
|
6325
6325
|
loading: p.value,
|
|
6326
6326
|
size: "lg",
|
|
6327
6327
|
type: "submit",
|
|
6328
6328
|
variant: "primary"
|
|
6329
6329
|
}, null, 8, ["label", "loading"]),
|
|
6330
|
-
|
|
6330
|
+
O(ie, {
|
|
6331
6331
|
label: b(D)("menu.common.actions.cancel"),
|
|
6332
6332
|
size: "lg",
|
|
6333
6333
|
variant: "tertiary",
|
|
@@ -6338,10 +6338,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6338
6338
|
default: W(() => [
|
|
6339
6339
|
C.group ? (U(), re("div", Cc, [
|
|
6340
6340
|
Ce(C.$slots, "variant-section"),
|
|
6341
|
-
|
|
6341
|
+
O(Ua, null, {
|
|
6342
6342
|
default: W(() => [
|
|
6343
6343
|
B("div", null, [
|
|
6344
|
-
|
|
6344
|
+
O(le, {
|
|
6345
6345
|
modelValue: C.group.name,
|
|
6346
6346
|
"onUpdate:modelValue": $[0] || ($[0] = (ee) => C.group.name = ee),
|
|
6347
6347
|
disabled: h("name"),
|
|
@@ -6350,14 +6350,14 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6350
6350
|
label: b(D)("menu.common.labels.group_name")
|
|
6351
6351
|
}, null, 8, ["modelValue", "disabled", "rules", "label"])
|
|
6352
6352
|
]),
|
|
6353
|
-
|
|
6353
|
+
O(we, {
|
|
6354
6354
|
"model-value": C.group.min + " " + C.group.max,
|
|
6355
6355
|
rules: b(c)
|
|
6356
6356
|
}, {
|
|
6357
6357
|
default: W(() => [
|
|
6358
|
-
|
|
6358
|
+
O(cc, null, {
|
|
6359
6359
|
default: W(() => [
|
|
6360
|
-
|
|
6360
|
+
O(ce, {
|
|
6361
6361
|
modelValue: C.group.min,
|
|
6362
6362
|
"onUpdate:modelValue": $[1] || ($[1] = (ee) => C.group.min = ee),
|
|
6363
6363
|
disabled: h("min"),
|
|
@@ -6365,7 +6365,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6365
6365
|
class: "flex-1",
|
|
6366
6366
|
label: b(D)("menu.common.labels.min_select")
|
|
6367
6367
|
}, null, 8, ["modelValue", "disabled", "label"]),
|
|
6368
|
-
|
|
6368
|
+
O(ce, {
|
|
6369
6369
|
modelValue: C.group.max,
|
|
6370
6370
|
"onUpdate:modelValue": $[2] || ($[2] = (ee) => C.group.max = ee),
|
|
6371
6371
|
disabled: h("max"),
|
|
@@ -6384,7 +6384,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6384
6384
|
label: b(D)("menu.common.labels.group_type")
|
|
6385
6385
|
}, {
|
|
6386
6386
|
default: W(() => [
|
|
6387
|
-
|
|
6387
|
+
O(H, {
|
|
6388
6388
|
disabled: h("type"),
|
|
6389
6389
|
"model-value": C.group.type,
|
|
6390
6390
|
"onUpdate:modelValue": $[3] || ($[3] = (ee) => A(ee))
|
|
@@ -6401,11 +6401,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6401
6401
|
]),
|
|
6402
6402
|
_: 1
|
|
6403
6403
|
}, 8, ["label"])) : se("", !0),
|
|
6404
|
-
|
|
6404
|
+
O(bt, {
|
|
6405
6405
|
label: b(D)("menu.common.labels.configuration")
|
|
6406
6406
|
}, {
|
|
6407
6407
|
default: W(() => [
|
|
6408
|
-
|
|
6408
|
+
O(Z, {
|
|
6409
6409
|
modelValue: C.group.stackable,
|
|
6410
6410
|
"onUpdate:modelValue": $[4] || ($[4] = (ee) => C.group.stackable = ee),
|
|
6411
6411
|
disabled: h("stackable"),
|
|
@@ -6422,7 +6422,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6422
6422
|
"sub-title": b(D)("menu.group.form.tagging.subtitle")
|
|
6423
6423
|
}, {
|
|
6424
6424
|
default: W(() => [
|
|
6425
|
-
|
|
6425
|
+
O(b(vo), {
|
|
6426
6426
|
entity: "group",
|
|
6427
6427
|
"model-value": C.group.customAttributes || {},
|
|
6428
6428
|
"onUpdate:modelValue": P,
|
|
@@ -6434,7 +6434,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6434
6434
|
]),
|
|
6435
6435
|
_: 1
|
|
6436
6436
|
}),
|
|
6437
|
-
|
|
6437
|
+
O(we, {
|
|
6438
6438
|
tag: "div",
|
|
6439
6439
|
modelValue: C.group,
|
|
6440
6440
|
rules: [b(d)],
|
|
@@ -6444,13 +6444,13 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6444
6444
|
})
|
|
6445
6445
|
}, {
|
|
6446
6446
|
default: W(() => [
|
|
6447
|
-
|
|
6447
|
+
O(Sc, {
|
|
6448
6448
|
"allow-refund-inventory": C.allowRefundInventory ?? !1,
|
|
6449
6449
|
"categorized-items": C.categorizedItems,
|
|
6450
6450
|
config: w.value,
|
|
6451
6451
|
group: C.group,
|
|
6452
|
-
"onUpdate:group": $[5] || ($[5] = (ee) =>
|
|
6453
|
-
"onUpdate:unmapGroup": $[6] || ($[6] = (ee) =>
|
|
6452
|
+
"onUpdate:group": $[5] || ($[5] = (ee) => R(ee)),
|
|
6453
|
+
"onUpdate:unmapGroup": $[6] || ($[6] = (ee) => R(T(ee)))
|
|
6454
6454
|
}, null, 8, ["allow-refund-inventory", "categorized-items", "config", "group"])
|
|
6455
6455
|
]),
|
|
6456
6456
|
_: 1
|
|
@@ -6471,8 +6471,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6471
6471
|
},
|
|
6472
6472
|
emits: ["update:combinations"],
|
|
6473
6473
|
setup(e, { expose: t, emit: n }) {
|
|
6474
|
-
var
|
|
6475
|
-
const i = e, a = n, o = Me(), r = lt(), l =
|
|
6474
|
+
var R, A;
|
|
6475
|
+
const i = e, a = n, o = Me(), r = lt(), l = Rt(St(Qe())), s = oe([]), u = oe(i.combinations[0].combinationKey || ""), m = V(
|
|
6476
6476
|
() => s.value.findIndex((T) => T.combinationKey == u.value)
|
|
6477
6477
|
), d = V(
|
|
6478
6478
|
() => i.combinations.map((T) => ({
|
|
@@ -6502,7 +6502,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6502
6502
|
};
|
|
6503
6503
|
})
|
|
6504
6504
|
};
|
|
6505
|
-
return new
|
|
6505
|
+
return new Oo(o, l.updateMenu, r).mapGroups([I], !0)[0];
|
|
6506
6506
|
});
|
|
6507
6507
|
function p(T) {
|
|
6508
6508
|
var I, N;
|
|
@@ -6559,7 +6559,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6559
6559
|
);
|
|
6560
6560
|
const h = oe();
|
|
6561
6561
|
t({
|
|
6562
|
-
show: (
|
|
6562
|
+
show: (R = h.value) == null ? void 0 : R.show,
|
|
6563
6563
|
trigger: (A = h.value) == null ? void 0 : A.trigger
|
|
6564
6564
|
});
|
|
6565
6565
|
const { t: S } = Se();
|
|
@@ -6590,21 +6590,21 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6590
6590
|
default: W(() => [
|
|
6591
6591
|
B("p", Ic, Ee(b(S)("menu.group.option.variant")), 1),
|
|
6592
6592
|
B("div", Tc, [
|
|
6593
|
-
|
|
6593
|
+
O(x, {
|
|
6594
6594
|
modelValue: u.value,
|
|
6595
6595
|
"onUpdate:modelValue": y[0] || (y[0] = (N) => u.value = N),
|
|
6596
6596
|
items: d.value,
|
|
6597
6597
|
class: "flex-1"
|
|
6598
6598
|
}, null, 8, ["modelValue", "items"]),
|
|
6599
6599
|
B("div", Mc, [
|
|
6600
|
-
|
|
6601
|
-
variant: b(
|
|
6600
|
+
O(k, {
|
|
6601
|
+
variant: b(Ot).Tertiary,
|
|
6602
6602
|
"prepend-icon": "keyboard_arrow_left",
|
|
6603
6603
|
size: "lg",
|
|
6604
6604
|
onClick: y[1] || (y[1] = (N) => E("left"))
|
|
6605
6605
|
}, null, 8, ["variant"]),
|
|
6606
|
-
|
|
6607
|
-
variant: b(
|
|
6606
|
+
O(k, {
|
|
6607
|
+
variant: b(Ot).Tertiary,
|
|
6608
6608
|
"prepend-icon": "keyboard_arrow_right",
|
|
6609
6609
|
size: "lg",
|
|
6610
6610
|
onClick: y[2] || (y[2] = (N) => E("right"))
|
|
@@ -6637,7 +6637,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6637
6637
|
}
|
|
6638
6638
|
const u = V(() => s(l.value).reduce((w, v) => (w[v._id] = {
|
|
6639
6639
|
name: v.name,
|
|
6640
|
-
type:
|
|
6640
|
+
type: On(o.items, v.items)
|
|
6641
6641
|
}, w), {})), m = V(() => [
|
|
6642
6642
|
...Object.entries(u.value).map(([w, { name: v, type: h }]) => ({
|
|
6643
6643
|
label: `${v} ${r.value.type ? `(${Hn(h)})` : ""}`.trim(),
|
|
@@ -6645,11 +6645,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6645
6645
|
}))
|
|
6646
6646
|
]), d = V(() => !!o.state.currentCatalogId || !!o.state.currentSchedulerId);
|
|
6647
6647
|
V(() => {
|
|
6648
|
-
const w = !o.state.currentSchedulerId, v = o.rules.group.type, h = o.version == q.F_MENU_VERSION.enum.v3, S = o.rules.item.orderFromActiveOnly,
|
|
6648
|
+
const w = !o.state.currentSchedulerId, v = o.rules.group.type, h = o.version == q.F_MENU_VERSION.enum.v3, S = o.rules.item.orderFromActiveOnly, R = o.rules.item.bindToVariant;
|
|
6649
6649
|
return function(T) {
|
|
6650
6650
|
return {
|
|
6651
6651
|
isDefault: (y) => !d.value && !y,
|
|
6652
|
-
link: (y) => !d.value && (!y ||
|
|
6652
|
+
link: (y) => !d.value && (!y || R),
|
|
6653
6653
|
name: (y) => !d.value && !y,
|
|
6654
6654
|
type: v && !T._id && !d.value,
|
|
6655
6655
|
price: T.type != q.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
|
|
@@ -6659,7 +6659,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6659
6659
|
orderFrom: (y) => w ? h ? T.type == q.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? d.value : !!d.value == !y : d.value : !1,
|
|
6660
6660
|
orderFromActiveOnly: S,
|
|
6661
6661
|
showOrderFrom: w ? h ? d.value ? !0 : T.type == q.F_ADDON_GROUP_TYPE.enum.PRODUCT : d.value : !1,
|
|
6662
|
-
bindToVariant:
|
|
6662
|
+
bindToVariant: R,
|
|
6663
6663
|
isOverride: d.value,
|
|
6664
6664
|
isItemGroup: !1,
|
|
6665
6665
|
isV4: !h
|
|
@@ -6676,10 +6676,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6676
6676
|
i(c.value), a("primary"), n.close();
|
|
6677
6677
|
};
|
|
6678
6678
|
return (w, v) => {
|
|
6679
|
-
const h = K("FmSearch"), S = K("FmCheckbox"),
|
|
6679
|
+
const h = K("FmSearch"), S = K("FmCheckbox"), R = K("FmButton");
|
|
6680
6680
|
return m.value.length > 0 ? (U(), re("div", Pc, [
|
|
6681
6681
|
B("div", null, [
|
|
6682
|
-
|
|
6682
|
+
O(h, {
|
|
6683
6683
|
autofocus: "",
|
|
6684
6684
|
modelValue: p.value,
|
|
6685
6685
|
"onUpdate:modelValue": v[0] || (v[0] = (A) => p.value = A),
|
|
@@ -6691,7 +6691,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6691
6691
|
(U(!0), re(Ve, null, rt(m.value, (A) => (U(), re("div", {
|
|
6692
6692
|
key: A.value
|
|
6693
6693
|
}, [
|
|
6694
|
-
Xt(
|
|
6694
|
+
Xt(O(S, {
|
|
6695
6695
|
modelValue: c.value,
|
|
6696
6696
|
"onUpdate:modelValue": [
|
|
6697
6697
|
v[1] || (v[1] = (T) => c.value = T),
|
|
@@ -6706,9 +6706,9 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6706
6706
|
])
|
|
6707
6707
|
]),
|
|
6708
6708
|
B("div", xc, [
|
|
6709
|
-
|
|
6709
|
+
O(b(co), null, {
|
|
6710
6710
|
default: W(({ trigger: A }) => [
|
|
6711
|
-
R
|
|
6711
|
+
O(R, {
|
|
6712
6712
|
label: b(E)("menu.common.actions.add_group"),
|
|
6713
6713
|
variant: "tertiary",
|
|
6714
6714
|
"text-color": "primary",
|
|
@@ -6718,12 +6718,12 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6718
6718
|
_: 1
|
|
6719
6719
|
}),
|
|
6720
6720
|
B("div", Uc, [
|
|
6721
|
-
R
|
|
6721
|
+
O(R, {
|
|
6722
6722
|
label: b(E)("menu.common.actions.cancel"),
|
|
6723
6723
|
variant: "tertiary",
|
|
6724
6724
|
onClick: v[3] || (v[3] = (A) => b(n).close())
|
|
6725
6725
|
}, null, 8, ["label"]),
|
|
6726
|
-
R
|
|
6726
|
+
O(R, {
|
|
6727
6727
|
label: b(E)("menu.common.actions.confirm"),
|
|
6728
6728
|
onClick: v[4] || (v[4] = (A) => _())
|
|
6729
6729
|
}, null, 8, ["label"])
|
|
@@ -6734,9 +6734,9 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6734
6734
|
B("p", $c, Ee(b(E)("menu.common.empty.no_group.title")), 1),
|
|
6735
6735
|
B("p", Gc, Ee(b(E)("menu.common.empty.no_group.subtitle")), 1)
|
|
6736
6736
|
]),
|
|
6737
|
-
|
|
6737
|
+
O(b(co), null, {
|
|
6738
6738
|
default: W(({ trigger: A }) => [
|
|
6739
|
-
R
|
|
6739
|
+
O(R, {
|
|
6740
6740
|
label: b(E)("menu.common.actions.add_group"),
|
|
6741
6741
|
icon: "add",
|
|
6742
6742
|
onClick: (T) => A()
|
|
@@ -6807,7 +6807,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6807
6807
|
}
|
|
6808
6808
|
const w = V(() => E(d.value).reduce((M, P) => (M[P._id] = {
|
|
6809
6809
|
name: P.name,
|
|
6810
|
-
type:
|
|
6810
|
+
type: On(a.items, P.items)
|
|
6811
6811
|
}, M), {})), v = V(() => [...Object.entries(w.value).map(([M, {
|
|
6812
6812
|
name: P,
|
|
6813
6813
|
type: z
|
|
@@ -6839,20 +6839,20 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6839
6839
|
size: 200,
|
|
6840
6840
|
cell: (M) => {
|
|
6841
6841
|
const P = M.row.original._id, D = _(P).join(", ");
|
|
6842
|
-
return
|
|
6842
|
+
return O(Be.FmTooltip, {
|
|
6843
6843
|
"z-index": 51,
|
|
6844
6844
|
class: "flex",
|
|
6845
6845
|
variant: "rich",
|
|
6846
6846
|
placement: "top"
|
|
6847
6847
|
}, {
|
|
6848
|
-
default: () =>
|
|
6848
|
+
default: () => O("div", {
|
|
6849
6849
|
class: "line-clamp-2 break-all"
|
|
6850
6850
|
}, [D]),
|
|
6851
|
-
content: () =>
|
|
6851
|
+
content: () => O("div", {
|
|
6852
6852
|
class: "py-12 px-16 space-y-12"
|
|
6853
|
-
}, [
|
|
6853
|
+
}, [O("p", {
|
|
6854
6854
|
class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600"
|
|
6855
|
-
}, [l("menu.group.list.columns.products")]),
|
|
6855
|
+
}, [l("menu.group.list.columns.products")]), O("div", {
|
|
6856
6856
|
class: "flex flex-wrap gap-8"
|
|
6857
6857
|
}, [D])])
|
|
6858
6858
|
});
|
|
@@ -6870,7 +6870,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6870
6870
|
icon: "delete",
|
|
6871
6871
|
variant: "tertiary",
|
|
6872
6872
|
textColor: "neutral-gray-400",
|
|
6873
|
-
onClick:
|
|
6873
|
+
onClick: Rn(async () => {
|
|
6874
6874
|
T(P);
|
|
6875
6875
|
}, ["stop", "prevent"])
|
|
6876
6876
|
}), Fe(Nc, {
|
|
@@ -6895,7 +6895,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6895
6895
|
}]), S = V(() => ({
|
|
6896
6896
|
type: a.version !== q.F_MENU_VERSION.enum.v4
|
|
6897
6897
|
}));
|
|
6898
|
-
function
|
|
6898
|
+
function R() {
|
|
6899
6899
|
r.open({
|
|
6900
6900
|
title: l("menu.product.form.group.add"),
|
|
6901
6901
|
contentComponent: Bc,
|
|
@@ -6989,14 +6989,14 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6989
6989
|
title: b(l)("menu.product.form.group.title"),
|
|
6990
6990
|
"sub-title": b(l)("menu.product.form.group.subtitle")
|
|
6991
6991
|
}, {
|
|
6992
|
-
"append-title": W(() => [
|
|
6992
|
+
"append-title": W(() => [O(z, {
|
|
6993
6993
|
class: "flex-shrink-0",
|
|
6994
6994
|
label: b(l)("menu.product.form.group.add"),
|
|
6995
6995
|
"prepend-icon": "add",
|
|
6996
6996
|
variant: "secondary",
|
|
6997
|
-
onClick:
|
|
6997
|
+
onClick: R
|
|
6998
6998
|
}, null, 8, ["label"])]),
|
|
6999
|
-
default: W(() => [
|
|
6999
|
+
default: W(() => [O(ua, null, {
|
|
7000
7000
|
default: W(() => {
|
|
7001
7001
|
var C;
|
|
7002
7002
|
return [((C = p.value) == null ? void 0 : C.length) > 0 ? (U(), J(D, {
|
|
@@ -7061,10 +7061,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7061
7061
|
return s(i.form.inventoryBindings || [], ((_ = i.form.variant) == null ? void 0 : _.variantCombinations) || [], u.value, o.variants);
|
|
7062
7062
|
});
|
|
7063
7063
|
function d(_, w) {
|
|
7064
|
-
var
|
|
7064
|
+
var R, A;
|
|
7065
7065
|
let v = at.clone(i.form);
|
|
7066
7066
|
const h = v.variant;
|
|
7067
|
-
if ((((
|
|
7067
|
+
if ((((R = h == null ? void 0 : h.variantCombinations) == null ? void 0 : R.length) ?? 0) > 0 && h) {
|
|
7068
7068
|
const T = h.variantCombinations.findIndex((x) => x.combinationKey === _);
|
|
7069
7069
|
if (T < 0) return;
|
|
7070
7070
|
const y = at.clone(h.variantCombinations);
|
|
@@ -7112,9 +7112,9 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7112
7112
|
enableSorting: !1,
|
|
7113
7113
|
cell: (_) => {
|
|
7114
7114
|
const w = _.row.original;
|
|
7115
|
-
return l.value ?
|
|
7115
|
+
return l.value ? O("div", {
|
|
7116
7116
|
class: "flex items-center justify-end"
|
|
7117
|
-
}, [
|
|
7117
|
+
}, [O(li, {
|
|
7118
7118
|
name: w.name,
|
|
7119
7119
|
initialValue: w.bindings ?? [],
|
|
7120
7120
|
title: n("menu.inventory.dialog.title", {
|
|
@@ -7126,8 +7126,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7126
7126
|
}, {
|
|
7127
7127
|
default: ({
|
|
7128
7128
|
trigger: v
|
|
7129
|
-
}) =>
|
|
7130
|
-
variant:
|
|
7129
|
+
}) => O(K("fm-button"), {
|
|
7130
|
+
variant: Ot.Tertiary,
|
|
7131
7131
|
prependIcon: "edit",
|
|
7132
7132
|
textColor: ft.NeutralGray400,
|
|
7133
7133
|
onClick: v
|
|
@@ -7163,7 +7163,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7163
7163
|
"onUpdate:inventory": (h) => {
|
|
7164
7164
|
d(v._id, h);
|
|
7165
7165
|
}
|
|
7166
|
-
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)),
|
|
7166
|
+
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), O(b(Za), {
|
|
7167
7167
|
"row-data": m.value,
|
|
7168
7168
|
onRowClick: p
|
|
7169
7169
|
}, null, 8, ["row-data"])])])]),
|
|
@@ -7195,8 +7195,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7195
7195
|
emits: ["update:form"],
|
|
7196
7196
|
setup(e, { emit: t }) {
|
|
7197
7197
|
const n = e, i = rn(), a = Me(), o = ko(), { t: r } = Se(), l = t, s = V(() => a.rules.item), u = V(() => {
|
|
7198
|
-
var
|
|
7199
|
-
const h = n.isOverride ? ((
|
|
7198
|
+
var R, A;
|
|
7199
|
+
const h = n.isOverride ? ((R = n.fallback) == null ? void 0 : R.unit) ?? ((A = n.fallback) == null ? void 0 : A.perXUnit) : void 0, S = n.form.unit ?? n.form.perXUnit ?? h;
|
|
7200
7200
|
return S != null;
|
|
7201
7201
|
}), m = (h) => {
|
|
7202
7202
|
l("update:form", "unit", h ? "" : void 0), l("update:form", "perXUnit", h ? 0 : void 0);
|
|
@@ -7218,8 +7218,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7218
7218
|
}
|
|
7219
7219
|
function E(h) {
|
|
7220
7220
|
if (!h && n.form.perXUnit) {
|
|
7221
|
-
const [S,
|
|
7222
|
-
if (
|
|
7221
|
+
const [S, R] = n.form.perXUnit.toString().split(".");
|
|
7222
|
+
if (R && R.length > 4) {
|
|
7223
7223
|
const T = (typeof n.form.perXUnit == "string" ? parseFloat(n.form.perXUnit) : n.form.perXUnit).toFixed(4);
|
|
7224
7224
|
l("update:form", "perXUnit", parseFloat(T));
|
|
7225
7225
|
}
|
|
@@ -7227,7 +7227,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7227
7227
|
}
|
|
7228
7228
|
const _ = oe(!1);
|
|
7229
7229
|
async function w() {
|
|
7230
|
-
var S,
|
|
7230
|
+
var S, R, A, T, y, x, k;
|
|
7231
7231
|
if (!(n.form.name || "")) {
|
|
7232
7232
|
const I = document.getElementById("product-name");
|
|
7233
7233
|
if (I) {
|
|
@@ -7250,7 +7250,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7250
7250
|
We,
|
|
7251
7251
|
{
|
|
7252
7252
|
name: n.form.name || "",
|
|
7253
|
-
lat: (A = (
|
|
7253
|
+
lat: (A = (R = (S = i.currentRestaurant) == null ? void 0 : S.value) == null ? void 0 : R.profile.address.coordinates) == null ? void 0 : A[1],
|
|
7254
7254
|
lon: (x = (y = (T = i.currentRestaurant) == null ? void 0 : T.value) == null ? void 0 : y.profile.address.coordinates) == null ? void 0 : x[0]
|
|
7255
7255
|
},
|
|
7256
7256
|
!0
|
|
@@ -7264,7 +7264,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7264
7264
|
return ((h = a.currentCatalog) == null ? void 0 : h.priceTierRules) ?? ((S = a.currentCatalog) == null ? void 0 : S.usePriceTiers) ?? [];
|
|
7265
7265
|
});
|
|
7266
7266
|
return (h, S) => {
|
|
7267
|
-
const
|
|
7267
|
+
const R = K("fm-select"), A = K("FmButton"), T = K("fm-checkbox"), y = K("fm-text-field"), x = fo("tooltip");
|
|
7268
7268
|
return U(), J(ut, {
|
|
7269
7269
|
title: b(r)("menu.product.form.price.title")
|
|
7270
7270
|
}, {
|
|
@@ -7272,7 +7272,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7272
7272
|
var k;
|
|
7273
7273
|
return [
|
|
7274
7274
|
B("div", Yc, [
|
|
7275
|
-
|
|
7275
|
+
O(Ft, {
|
|
7276
7276
|
disable: v.value.length > 0 && b(a).currentCatalog && !b(a).currentScheduler,
|
|
7277
7277
|
min: 0,
|
|
7278
7278
|
"model-value": h.form.price || null,
|
|
@@ -7286,7 +7286,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7286
7286
|
"onUpdate:modelValue": S[0] || (S[0] = (I) => I && l("update:form", "price", I))
|
|
7287
7287
|
}, {
|
|
7288
7288
|
append: W(() => [
|
|
7289
|
-
Xt(
|
|
7289
|
+
Xt(O(sa, {
|
|
7290
7290
|
"pure-styling": "",
|
|
7291
7291
|
onClick: w
|
|
7292
7292
|
}, null, 512), [
|
|
@@ -7295,7 +7295,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7295
7295
|
]),
|
|
7296
7296
|
_: 1
|
|
7297
7297
|
}, 8, ["disable", "model-value", "placeholder", "rules", "label"]),
|
|
7298
|
-
R
|
|
7298
|
+
O(R, {
|
|
7299
7299
|
disabled: !s.value.tax || !d.value.systemCode,
|
|
7300
7300
|
items: d.value.countryTaxOptions,
|
|
7301
7301
|
label: d.value.systemCode ? b(r)("menu.product.form.price.fields.tax.label_with_code", {
|
|
@@ -7314,7 +7314,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7314
7314
|
description: b(r)("menu.price_tier.description")
|
|
7315
7315
|
}, {
|
|
7316
7316
|
append: W(() => [
|
|
7317
|
-
|
|
7317
|
+
O(A, {
|
|
7318
7318
|
label: b(r)("menu.price_tier.add_price_group"),
|
|
7319
7319
|
icon: "add",
|
|
7320
7320
|
variant: "secondary",
|
|
@@ -7335,14 +7335,14 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7335
7335
|
}),
|
|
7336
7336
|
_: 1
|
|
7337
7337
|
}, 8, ["label", "description"])) : se("", !0),
|
|
7338
|
-
|
|
7338
|
+
O(bt, {
|
|
7339
7339
|
label: b(r)("menu.product.form.price.settings.title")
|
|
7340
7340
|
}, {
|
|
7341
7341
|
default: W(() => {
|
|
7342
7342
|
var I, N, M;
|
|
7343
7343
|
return [
|
|
7344
7344
|
B("div", Xc, [
|
|
7345
|
-
|
|
7345
|
+
O(T, {
|
|
7346
7346
|
disabled: !s.value.openPrice || h.isAddon,
|
|
7347
7347
|
"model-value": h.form.openPrice ?? ((I = h.fallback) == null ? void 0 : I.openPrice) ?? !1,
|
|
7348
7348
|
value: h.form.openPrice,
|
|
@@ -7351,7 +7351,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7351
7351
|
"onUpdate:modelValue": S[3] || (S[3] = (P) => l("update:form", "openPrice", P))
|
|
7352
7352
|
}, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
|
|
7353
7353
|
B("div", qc, [
|
|
7354
|
-
|
|
7354
|
+
O(T, {
|
|
7355
7355
|
disabled: !s.value.unit || h.isAddon,
|
|
7356
7356
|
"model-value": u.value,
|
|
7357
7357
|
value: u.value,
|
|
@@ -7362,7 +7362,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7362
7362
|
u.value ? (U(), re("div", Jc, [
|
|
7363
7363
|
B("p", Zc, Ee(b(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
|
|
7364
7364
|
B("div", Qc, [
|
|
7365
|
-
|
|
7365
|
+
O(y, {
|
|
7366
7366
|
disabled: !s.value.unit,
|
|
7367
7367
|
"model-value": h.form.perXUnit || ((N = h.fallback) == null ? void 0 : N.perXUnit) || null,
|
|
7368
7368
|
rules: [
|
|
@@ -7377,7 +7377,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7377
7377
|
}, null, 8, ["disabled", "model-value", "rules", "placeholder"])
|
|
7378
7378
|
]),
|
|
7379
7379
|
B("div", ed, [
|
|
7380
|
-
|
|
7380
|
+
O(y, {
|
|
7381
7381
|
disabled: !s.value.unit,
|
|
7382
7382
|
"model-value": h.form.unit || ((M = h.fallback) == null ? void 0 : M.unit) || null,
|
|
7383
7383
|
rules: [
|
|
@@ -7390,7 +7390,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7390
7390
|
])) : se("", !0)
|
|
7391
7391
|
]),
|
|
7392
7392
|
s.value.costing ? (U(), re("div", td, [
|
|
7393
|
-
|
|
7393
|
+
O(T, {
|
|
7394
7394
|
"model-value": !!h.form.costing,
|
|
7395
7395
|
value: !!h.form.costing,
|
|
7396
7396
|
label: b(r)("menu.product.form.price.settings.track_costing.label"),
|
|
@@ -7398,7 +7398,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7398
7398
|
}, null, 8, ["model-value", "value", "label"]),
|
|
7399
7399
|
h.form.costing ? (U(), re("div", nd, [
|
|
7400
7400
|
B("div", id, [
|
|
7401
|
-
|
|
7401
|
+
O(Ft, {
|
|
7402
7402
|
class: "w-full",
|
|
7403
7403
|
min: 0,
|
|
7404
7404
|
"model-value": h.form.costing || null,
|
|
@@ -7410,7 +7410,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7410
7410
|
])) : se("", !0)
|
|
7411
7411
|
])) : se("", !0),
|
|
7412
7412
|
s.value.minPrice ? (U(), re("div", od, [
|
|
7413
|
-
|
|
7413
|
+
O(T, {
|
|
7414
7414
|
disabled: !s.value.minPrice || h.isAddon,
|
|
7415
7415
|
"model-value": !!h.form.minPrice,
|
|
7416
7416
|
value: !!h.form.minPrice,
|
|
@@ -7449,7 +7449,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7449
7449
|
applyProduct: { type: Boolean }
|
|
7450
7450
|
},
|
|
7451
7451
|
setup(e) {
|
|
7452
|
-
const { t } = Se(), n = e, i =
|
|
7452
|
+
const { t } = Se(), n = e, i = Rt(St(Qe())), a = V(
|
|
7453
7453
|
() => n.initialValue ? t("menu.print_dept.update") : t("menu.print_dept.add")
|
|
7454
7454
|
), o = V(
|
|
7455
7455
|
() => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
|
|
@@ -7493,7 +7493,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7493
7493
|
const p = K("fm-text-field"), E = K("fm-button"), _ = K("fm-side-sheet");
|
|
7494
7494
|
return U(), re(Ve, null, [
|
|
7495
7495
|
Ce(d.$slots, "default", { trigger: u }),
|
|
7496
|
-
|
|
7496
|
+
O(_, {
|
|
7497
7497
|
id: "variant-form",
|
|
7498
7498
|
modelValue: s.value,
|
|
7499
7499
|
"onUpdate:modelValue": c[3] || (c[3] = (w) => s.value = w),
|
|
@@ -7510,14 +7510,14 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7510
7510
|
]),
|
|
7511
7511
|
"side-sheet-footer": W(() => [
|
|
7512
7512
|
B("div", cd, [
|
|
7513
|
-
|
|
7513
|
+
O(E, {
|
|
7514
7514
|
label: o.value,
|
|
7515
7515
|
loading: l.value,
|
|
7516
7516
|
size: "lg",
|
|
7517
7517
|
type: "submit",
|
|
7518
7518
|
variant: "primary"
|
|
7519
7519
|
}, null, 8, ["label", "loading"]),
|
|
7520
|
-
|
|
7520
|
+
O(E, {
|
|
7521
7521
|
label: b(t)("menu.common.actions.cancel"),
|
|
7522
7522
|
size: "lg",
|
|
7523
7523
|
variant: "tertiary",
|
|
@@ -7527,7 +7527,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7527
7527
|
]),
|
|
7528
7528
|
default: W(() => [
|
|
7529
7529
|
B("div", ud, [
|
|
7530
|
-
|
|
7530
|
+
O(p, {
|
|
7531
7531
|
modelValue: r.value.name,
|
|
7532
7532
|
"onUpdate:modelValue": c[0] || (c[0] = (w) => r.value.name = w),
|
|
7533
7533
|
rules: [
|
|
@@ -7607,8 +7607,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7607
7607
|
});
|
|
7608
7608
|
}
|
|
7609
7609
|
function _(v, h) {
|
|
7610
|
-
var
|
|
7611
|
-
let S = [...((A = (
|
|
7610
|
+
var R, A;
|
|
7611
|
+
let S = [...((A = (R = n.form) == null ? void 0 : R.print) == null ? void 0 : A.department) ?? []];
|
|
7612
7612
|
h && !S.includes(v) ? S = [...S, v] : h || (S = S.filter((T) => T !== v)), o("update:form", "print", {
|
|
7613
7613
|
...r(),
|
|
7614
7614
|
...n.form.print,
|
|
@@ -7631,7 +7631,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7631
7631
|
() => s.value.length,
|
|
7632
7632
|
() => _(s.value[s.value.length - 1]._id, !0)
|
|
7633
7633
|
), (v, h) => {
|
|
7634
|
-
const S = K("fm-switch"),
|
|
7634
|
+
const S = K("fm-switch"), R = K("fm-radio"), A = K("fm-radio-group"), T = K("fm-button"), y = K("fm-checkbox");
|
|
7635
7635
|
return U(), J(ut, {
|
|
7636
7636
|
title: b(a)("menu.product.form.print.title")
|
|
7637
7637
|
}, {
|
|
@@ -7645,7 +7645,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7645
7645
|
default: W(() => {
|
|
7646
7646
|
var k;
|
|
7647
7647
|
return [
|
|
7648
|
-
|
|
7648
|
+
O(S, {
|
|
7649
7649
|
"model-value": !((k = v.form.print) != null && k.toRoot),
|
|
7650
7650
|
label: b(a)("menu.product.form.print.config.group_parent.label"),
|
|
7651
7651
|
"label-placement": "right",
|
|
@@ -7656,14 +7656,14 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7656
7656
|
}),
|
|
7657
7657
|
_: 1
|
|
7658
7658
|
}, 8, ["label"])) : se("", !0),
|
|
7659
|
-
|
|
7659
|
+
O(A, {
|
|
7660
7660
|
label: b(a)("menu.product.form.print.kds.label"),
|
|
7661
7661
|
"model-value": ((x = v.form.print) == null ? void 0 : x.sequential) ?? !1,
|
|
7662
7662
|
"onUpdate:modelValue": h[1] || (h[1] = (k) => p(k))
|
|
7663
7663
|
}, {
|
|
7664
7664
|
default: W(() => [
|
|
7665
7665
|
B("div", pd, [
|
|
7666
|
-
(U(!0), re(Ve, null, rt(w.value, (k, I) => (U(), J(
|
|
7666
|
+
(U(!0), re(Ve, null, rt(w.value, (k, I) => (U(), J(R, {
|
|
7667
7667
|
key: I,
|
|
7668
7668
|
label: k.label,
|
|
7669
7669
|
sublabel: k.description,
|
|
@@ -7673,7 +7673,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7673
7673
|
]),
|
|
7674
7674
|
_: 1
|
|
7675
7675
|
}, 8, ["label", "model-value"]),
|
|
7676
|
-
|
|
7676
|
+
O(bt, {
|
|
7677
7677
|
label: b(a)("menu.product.form.print.routes.label")
|
|
7678
7678
|
}, {
|
|
7679
7679
|
default: W(() => [
|
|
@@ -7696,11 +7696,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7696
7696
|
class: "handle",
|
|
7697
7697
|
"prepend-icon": "drag_handle",
|
|
7698
7698
|
variant: "tertiary",
|
|
7699
|
-
onClick: h[2] || (h[2] =
|
|
7699
|
+
onClick: h[2] || (h[2] = Rn(() => {
|
|
7700
7700
|
}, ["stop"]))
|
|
7701
7701
|
}, null, 8, ["disabled"])) : se("", !0)
|
|
7702
7702
|
]),
|
|
7703
|
-
|
|
7703
|
+
O(y, {
|
|
7704
7704
|
id: k,
|
|
7705
7705
|
"data-checked": (P = (M = n.form.print) == null ? void 0 : M.department) == null ? void 0 : P.includes(k),
|
|
7706
7706
|
label: d.value[k],
|
|
@@ -7714,11 +7714,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7714
7714
|
}),
|
|
7715
7715
|
_: 1
|
|
7716
7716
|
}, 8, ["item-key", "model-value"])) : se("", !0),
|
|
7717
|
-
|
|
7717
|
+
O(b(md), { "apply-product": !1 }, {
|
|
7718
7718
|
default: W(({ trigger: k }) => [
|
|
7719
7719
|
B("div", gd, [
|
|
7720
|
-
|
|
7721
|
-
variant: b(
|
|
7720
|
+
O(T, {
|
|
7721
|
+
variant: b(Ot).Secondary,
|
|
7722
7722
|
label: b(a)("menu.product.form.print.routes.add"),
|
|
7723
7723
|
"prepend-icon": "add",
|
|
7724
7724
|
onClick: k
|
|
@@ -7803,7 +7803,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7803
7803
|
setup(e, {
|
|
7804
7804
|
emit: t
|
|
7805
7805
|
}) {
|
|
7806
|
-
const n = e, i = Me(), a = V(() => i.rules.item), o =
|
|
7806
|
+
const n = e, i = Me(), a = V(() => i.rules.item), o = Rt(St(Qe())), {
|
|
7807
7807
|
t: r
|
|
7808
7808
|
} = Se(), l = t, {
|
|
7809
7809
|
hasVariant: s,
|
|
@@ -7872,7 +7872,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7872
7872
|
title: b(r)("menu.product.form.takeaway.title"),
|
|
7873
7873
|
"sub-title": b(r)("menu.product.form.takeaway.subtitle")
|
|
7874
7874
|
}, {
|
|
7875
|
-
default: W(() => [
|
|
7875
|
+
default: W(() => [O(E, {
|
|
7876
7876
|
columnDefs: d.value,
|
|
7877
7877
|
"page-size": b(u).length,
|
|
7878
7878
|
"row-data": b(u),
|
|
@@ -7888,7 +7888,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7888
7888
|
}, wd = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Ed = { class: "flex justify-between pb-16" }, kd = { class: "flex gap-8" }, Sd = {
|
|
7889
7889
|
key: 1,
|
|
7890
7890
|
class: "flex flex-col items-center space-y-16"
|
|
7891
|
-
},
|
|
7891
|
+
}, Rd = { class: "flex flex-col items-center space-y-4 w-full" }, Od = { class: "fm-typo-en-title-sm-600" }, Cd = { class: "text-fm-color-typo-secondary" }, Ad = /* @__PURE__ */ ge({
|
|
7892
7892
|
__name: "SelectVariantDialog",
|
|
7893
7893
|
props: {
|
|
7894
7894
|
selectedVariants: {}
|
|
@@ -7905,7 +7905,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7905
7905
|
const p = K("FmSearch"), E = K("FmCheckbox"), _ = K("FmButton");
|
|
7906
7906
|
return l.value.length > 0 ? (U(), re("div", yd, [
|
|
7907
7907
|
B("div", null, [
|
|
7908
|
-
|
|
7908
|
+
O(p, {
|
|
7909
7909
|
autofocus: "",
|
|
7910
7910
|
modelValue: u.value,
|
|
7911
7911
|
"onUpdate:modelValue": c[0] || (c[0] = (w) => u.value = w),
|
|
@@ -7917,7 +7917,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7917
7917
|
(U(!0), re(Ve, null, rt(l.value, (w) => (U(), re("div", {
|
|
7918
7918
|
key: w.value
|
|
7919
7919
|
}, [
|
|
7920
|
-
Xt(
|
|
7920
|
+
Xt(O(E, {
|
|
7921
7921
|
modelValue: s.value,
|
|
7922
7922
|
"onUpdate:modelValue": [
|
|
7923
7923
|
c[1] || (c[1] = (v) => s.value = v),
|
|
@@ -7932,7 +7932,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7932
7932
|
])
|
|
7933
7933
|
]),
|
|
7934
7934
|
B("div", Ed, [
|
|
7935
|
-
|
|
7935
|
+
O(b(Oi), null, {
|
|
7936
7936
|
default: W(({ trigger: w }) => [
|
|
7937
7937
|
b(a).rules.item.variant ? (U(), J(_, {
|
|
7938
7938
|
key: 0,
|
|
@@ -7945,25 +7945,25 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7945
7945
|
_: 1
|
|
7946
7946
|
}),
|
|
7947
7947
|
B("div", kd, [
|
|
7948
|
-
|
|
7948
|
+
O(_, {
|
|
7949
7949
|
label: b(o)("menu.common.actions.cancel"),
|
|
7950
7950
|
variant: "tertiary",
|
|
7951
7951
|
onClick: c[3] || (c[3] = (w) => b(t).close())
|
|
7952
7952
|
}, null, 8, ["label"]),
|
|
7953
|
-
|
|
7953
|
+
O(_, {
|
|
7954
7954
|
label: b(o)("menu.common.actions.confirm"),
|
|
7955
7955
|
onClick: c[4] || (c[4] = (w) => m())
|
|
7956
7956
|
}, null, 8, ["label"])
|
|
7957
7957
|
])
|
|
7958
7958
|
])
|
|
7959
7959
|
])) : (U(), re("div", Sd, [
|
|
7960
|
-
B("div",
|
|
7961
|
-
B("p",
|
|
7960
|
+
B("div", Rd, [
|
|
7961
|
+
B("p", Od, Ee(b(o)("menu.common.empty.no_variant.title")), 1),
|
|
7962
7962
|
B("p", Cd, Ee(b(o)("menu.common.empty.no_variant.subtitle")), 1)
|
|
7963
7963
|
]),
|
|
7964
|
-
|
|
7964
|
+
O(b(Oi), null, {
|
|
7965
7965
|
default: W(({ trigger: w }) => [
|
|
7966
|
-
|
|
7966
|
+
O(_, {
|
|
7967
7967
|
label: b(o)("menu.variant.add"),
|
|
7968
7968
|
icon: "add",
|
|
7969
7969
|
onClick: (v) => w()
|
|
@@ -8118,7 +8118,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8118
8118
|
}
|
|
8119
8119
|
c("replace:form", a.initDynamicGroupItem(M));
|
|
8120
8120
|
}
|
|
8121
|
-
async function
|
|
8121
|
+
async function R(k, I, N) {
|
|
8122
8122
|
const M = at.clone(n.form);
|
|
8123
8123
|
M.variant.variantCombinations[k][I] = N, p([{
|
|
8124
8124
|
key: "variant",
|
|
@@ -8140,11 +8140,11 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8140
8140
|
cell: (k) => {
|
|
8141
8141
|
var z, D;
|
|
8142
8142
|
const I = k.getValue(), P = ((z = k.row.original.fallback) == null ? void 0 : z.code) ?? n.form.code ?? ((D = n.fallback) == null ? void 0 : D.code);
|
|
8143
|
-
return
|
|
8143
|
+
return O(Be.FmTextField, {
|
|
8144
8144
|
modelValue: I,
|
|
8145
8145
|
placeholder: P || l("menu.product.form.variant.placeholders.no_code"),
|
|
8146
8146
|
"onUpdate:model-value": (C) => {
|
|
8147
|
-
|
|
8147
|
+
R(k.row.index, "code", la(C, !0));
|
|
8148
8148
|
}
|
|
8149
8149
|
}, null);
|
|
8150
8150
|
}
|
|
@@ -8155,14 +8155,14 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8155
8155
|
cell: (k) => {
|
|
8156
8156
|
var P, z;
|
|
8157
8157
|
const I = k.getValue(), M = (P = k.row.original.fallback) == null ? void 0 : P.orderFrom;
|
|
8158
|
-
return
|
|
8158
|
+
return O(Ei, {
|
|
8159
8159
|
modelValue: I,
|
|
8160
8160
|
fallback: n.form.orderFrom ?? M ?? ((z = n.fallback) == null ? void 0 : z.orderFrom),
|
|
8161
8161
|
disable: !s.value.orderFrom,
|
|
8162
8162
|
required: s.value.orderFrom && s.value.orderFromActiveOnly,
|
|
8163
8163
|
editActiveOnly: s.value.orderFromActiveOnly || !1,
|
|
8164
8164
|
"onUpdate:model-value": (D) => {
|
|
8165
|
-
|
|
8165
|
+
R(k.row.index, "orderFrom", D);
|
|
8166
8166
|
},
|
|
8167
8167
|
label: "",
|
|
8168
8168
|
defaultLabel: "Follow general"
|
|
@@ -8176,22 +8176,22 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8176
8176
|
cell: (k) => {
|
|
8177
8177
|
var z, D, C;
|
|
8178
8178
|
const I = k.getValue(), N = k.row.original, P = ((z = N.fallback) == null ? void 0 : z.price) ?? n.form.price ?? ((D = n.fallback) == null ? void 0 : D.price);
|
|
8179
|
-
return
|
|
8179
|
+
return O("div", {
|
|
8180
8180
|
class: "flex items-center gap-8"
|
|
8181
|
-
}, [
|
|
8181
|
+
}, [O(Ft, {
|
|
8182
8182
|
disable: A.value.length > 0 && i.currentCatalog && !i.currentScheduler,
|
|
8183
8183
|
placeholder: P ? Gt(P) : void 0,
|
|
8184
8184
|
modelValue: I,
|
|
8185
8185
|
min: 0,
|
|
8186
8186
|
"onUpdate:model-value": ($) => {
|
|
8187
|
-
|
|
8187
|
+
R(k.row.index, "price", $);
|
|
8188
8188
|
},
|
|
8189
8189
|
nullable: !0,
|
|
8190
8190
|
showCurrency: !1
|
|
8191
|
-
}, null), i.isV4 && !n.isOverride &&
|
|
8191
|
+
}, null), i.isV4 && !n.isOverride && O(da, {
|
|
8192
8192
|
"price-tiers": N.priceTiers,
|
|
8193
8193
|
fallback: (C = N.fallback) == null ? void 0 : C.priceTiers,
|
|
8194
|
-
"onUpdate:price-tiers": ($) =>
|
|
8194
|
+
"onUpdate:price-tiers": ($) => R(k.row.index, "priceTiers", $)
|
|
8195
8195
|
}, null)]);
|
|
8196
8196
|
}
|
|
8197
8197
|
}, {
|
|
@@ -8201,12 +8201,12 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8201
8201
|
cell: (k) => {
|
|
8202
8202
|
var z, D, C;
|
|
8203
8203
|
const I = k.getValue(), N = k.row.original, P = ((z = N.fallback) == null ? void 0 : z.minPrice) ?? n.form.minPrice ?? ((D = n.fallback) == null ? void 0 : D.minPrice);
|
|
8204
|
-
return
|
|
8204
|
+
return O(Ft, {
|
|
8205
8205
|
placeholder: P ? Gt(P) : void 0,
|
|
8206
8206
|
modelValue: I,
|
|
8207
8207
|
max: Ge.Dinero.fromFdoDinero(N.price ?? ((C = N.fallback) == null ? void 0 : C.price) ?? Ge.Dinero.zero().toObject()).toUnit(),
|
|
8208
8208
|
"onUpdate:model-value": ($) => {
|
|
8209
|
-
|
|
8209
|
+
R(k.row.index, "minPrice", $);
|
|
8210
8210
|
},
|
|
8211
8211
|
nullable: !0,
|
|
8212
8212
|
showCurrency: !1
|
|
@@ -8235,13 +8235,13 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8235
8235
|
}, null, 8, ["label"])) : se("", !0)]),
|
|
8236
8236
|
default: W(() => {
|
|
8237
8237
|
var D;
|
|
8238
|
-
return [B("div", Id, [
|
|
8238
|
+
return [B("div", Id, [O(P, {
|
|
8239
8239
|
"model-value": (D = k.form.variant) == null ? void 0 : D.variantGroupIds,
|
|
8240
8240
|
rules: [x]
|
|
8241
8241
|
}, {
|
|
8242
8242
|
default: W(() => {
|
|
8243
8243
|
var C;
|
|
8244
|
-
return [
|
|
8244
|
+
return [O(b(So), {
|
|
8245
8245
|
"model-value": ((C = k.form.variant) == null ? void 0 : C.variantGroupIds) ?? [],
|
|
8246
8246
|
class: "space-y-16",
|
|
8247
8247
|
group: "variants",
|
|
@@ -8253,14 +8253,14 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8253
8253
|
element: $
|
|
8254
8254
|
}) => {
|
|
8255
8255
|
var le;
|
|
8256
|
-
return [B("div", Td, [
|
|
8257
|
-
variant: b(
|
|
8256
|
+
return [B("div", Td, [O(N, {
|
|
8257
|
+
variant: b(Ot).Tertiary,
|
|
8258
8258
|
class: "handle",
|
|
8259
8259
|
"prepend-icon": "drag_handle"
|
|
8260
|
-
}, null, 8, ["variant"]), B("div", Md, [B("p", Dd, Ee((le = d.value[$]) == null ? void 0 : le.name), 1),
|
|
8260
|
+
}, null, 8, ["variant"]), B("div", Md, [B("p", Dd, Ee((le = d.value[$]) == null ? void 0 : le.name), 1), O(M, {
|
|
8261
8261
|
class: "cursor-pointer",
|
|
8262
8262
|
name: "close",
|
|
8263
|
-
onClick:
|
|
8263
|
+
onClick: Rn((ce) => {
|
|
8264
8264
|
var we;
|
|
8265
8265
|
return S(((we = k.form.variant) == null ? void 0 : we.variantGroupIds.filter((G) => G !== $)) ?? []);
|
|
8266
8266
|
}, ["stop"])
|
|
@@ -8270,7 +8270,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8270
8270
|
}, 8, ["model-value"])];
|
|
8271
8271
|
}),
|
|
8272
8272
|
_: 1
|
|
8273
|
-
}, 8, ["model-value", "rules"]),
|
|
8273
|
+
}, 8, ["model-value", "rules"]), O(ua, null, {
|
|
8274
8274
|
default: W(() => [h.value.length ? (U(), J(z, {
|
|
8275
8275
|
key: 0,
|
|
8276
8276
|
class: "w-full",
|
|
@@ -8379,7 +8379,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8379
8379
|
[f]: g
|
|
8380
8380
|
};
|
|
8381
8381
|
};
|
|
8382
|
-
async function
|
|
8382
|
+
async function R() {
|
|
8383
8383
|
var f, g;
|
|
8384
8384
|
c.value = p.value._id && A.value ? (await Ka(
|
|
8385
8385
|
a.mergedMenu,
|
|
@@ -8560,7 +8560,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8560
8560
|
Le(() => {
|
|
8561
8561
|
var f;
|
|
8562
8562
|
return (f = p.value.price) == null ? void 0 : f.amount;
|
|
8563
|
-
},
|
|
8563
|
+
}, R, { deep: !0 }), Le(
|
|
8564
8564
|
() => m.value,
|
|
8565
8565
|
(f) => {
|
|
8566
8566
|
f && (p.value = n.initialForm ? be(n.initialForm) : {
|
|
@@ -8570,7 +8570,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8570
8570
|
}
|
|
8571
8571
|
), $t(() => {
|
|
8572
8572
|
var f, g;
|
|
8573
|
-
|
|
8573
|
+
R();
|
|
8574
8574
|
try {
|
|
8575
8575
|
We.startSession({
|
|
8576
8576
|
userId: ((f = o.sessionUser.value) == null ? void 0 : f.id) || "",
|
|
@@ -8613,10 +8613,10 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8613
8613
|
}
|
|
8614
8614
|
const { isAtMost: je } = _o(), Lt = oe(null), qt = Ga(Lt);
|
|
8615
8615
|
return (f, g) => (U(), re(Ve, null, [
|
|
8616
|
-
Ce(f.$slots, "trigger", Sa(
|
|
8616
|
+
Ce(f.$slots, "trigger", Sa(Ra({
|
|
8617
8617
|
trigger: d
|
|
8618
8618
|
}))),
|
|
8619
|
-
|
|
8619
|
+
O(Va, {
|
|
8620
8620
|
title: l.value,
|
|
8621
8621
|
show: m.value,
|
|
8622
8622
|
"primary-action": {
|
|
@@ -8645,7 +8645,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8645
8645
|
b(je)("sm") ? se("", !0) : (U(), J(Ci, {
|
|
8646
8646
|
key: 0,
|
|
8647
8647
|
class: "fixed",
|
|
8648
|
-
style:
|
|
8648
|
+
style: Oa({
|
|
8649
8649
|
top: "85px",
|
|
8650
8650
|
left: b(qt).right + "px"
|
|
8651
8651
|
}),
|
|
@@ -8664,8 +8664,8 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8664
8664
|
"linked-status": E.value,
|
|
8665
8665
|
"onUpdate:catalogAndScheduler": w
|
|
8666
8666
|
}, null, 8, ["linked-status"])) : se("", !0),
|
|
8667
|
-
|
|
8668
|
-
|
|
8667
|
+
O(za, { "menu-store": b(a) }, null, 8, ["menu-store"]),
|
|
8668
|
+
O(Tt, {
|
|
8669
8669
|
toggle: N.value,
|
|
8670
8670
|
"onUpdate:toggle": [
|
|
8671
8671
|
g[1] || (g[1] = (X) => N.value = X),
|
|
@@ -8676,7 +8676,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8676
8676
|
title: b(r)("menu.product.form.sections.general.title")
|
|
8677
8677
|
}, {
|
|
8678
8678
|
default: W(() => [
|
|
8679
|
-
|
|
8679
|
+
O(tc, {
|
|
8680
8680
|
fallback: c.value,
|
|
8681
8681
|
form: p.value,
|
|
8682
8682
|
"is-addon": T.value,
|
|
@@ -8697,7 +8697,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8697
8697
|
"sub-title": b(r)("menu.product.form.sections.tagging.subtitle")
|
|
8698
8698
|
}, {
|
|
8699
8699
|
default: W(() => [
|
|
8700
|
-
|
|
8700
|
+
O(b(vo), {
|
|
8701
8701
|
entity: "item",
|
|
8702
8702
|
"model-value": p.value.customAttributes || {},
|
|
8703
8703
|
"onUpdate:modelValue": g[3] || (g[3] = (X) => S("customAttributes", X)),
|
|
@@ -8707,7 +8707,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8707
8707
|
_: 1
|
|
8708
8708
|
}, 8, ["title", "sub-title"])) : se("", !0),
|
|
8709
8709
|
y.value ? (U(), re("div", Ld)) : se("", !0),
|
|
8710
|
-
|
|
8710
|
+
O(Tt, {
|
|
8711
8711
|
toggle: z.value,
|
|
8712
8712
|
"onUpdate:toggle": [
|
|
8713
8713
|
g[4] || (g[4] = (X) => z.value = X),
|
|
@@ -8718,7 +8718,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8718
8718
|
title: b(r)("menu.product.form.sections.price.title")
|
|
8719
8719
|
}, {
|
|
8720
8720
|
default: W(() => [
|
|
8721
|
-
|
|
8721
|
+
O(sd, {
|
|
8722
8722
|
fallback: c.value,
|
|
8723
8723
|
form: p.value,
|
|
8724
8724
|
"is-addon": T.value,
|
|
@@ -8741,7 +8741,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8741
8741
|
title: "Update print"
|
|
8742
8742
|
}, {
|
|
8743
8743
|
default: W(() => [
|
|
8744
|
-
|
|
8744
|
+
O(vd, {
|
|
8745
8745
|
fallback: c.value,
|
|
8746
8746
|
form: p.value,
|
|
8747
8747
|
"full-combinations": v.value,
|
|
@@ -8754,7 +8754,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8754
8754
|
_: 1
|
|
8755
8755
|
}, 8, ["toggle"])) : se("", !0),
|
|
8756
8756
|
A.value ? se("", !0) : (U(), re("div", Ud)),
|
|
8757
|
-
|
|
8757
|
+
O(Tt, {
|
|
8758
8758
|
toggle: C.value,
|
|
8759
8759
|
"onUpdate:toggle": [
|
|
8760
8760
|
g[10] || (g[10] = (X) => C.value = X),
|
|
@@ -8765,7 +8765,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8765
8765
|
title: b(r)("menu.product.form.sections.variant.title")
|
|
8766
8766
|
}, {
|
|
8767
8767
|
default: W(() => [
|
|
8768
|
-
|
|
8768
|
+
O(Fd, {
|
|
8769
8769
|
fallback: c.value,
|
|
8770
8770
|
form: p.value,
|
|
8771
8771
|
"full-combinations": v.value,
|
|
@@ -8790,7 +8790,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8790
8790
|
title: "Update group"
|
|
8791
8791
|
}, {
|
|
8792
8792
|
default: W(() => [
|
|
8793
|
-
|
|
8793
|
+
O(Wc, {
|
|
8794
8794
|
fallback: c.value,
|
|
8795
8795
|
form: p.value,
|
|
8796
8796
|
"full-combinations": v.value,
|
|
@@ -8815,7 +8815,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8815
8815
|
title: b(r)("menu.product.form.sections.inventory.title")
|
|
8816
8816
|
}, {
|
|
8817
8817
|
default: W(() => [
|
|
8818
|
-
|
|
8818
|
+
O(Kc, {
|
|
8819
8819
|
fallback: c.value,
|
|
8820
8820
|
form: p.value,
|
|
8821
8821
|
"full-combinations": v.value,
|
|
@@ -8840,7 +8840,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8840
8840
|
title: b(r)("menu.product.form.sections.takeaway.title")
|
|
8841
8841
|
}, {
|
|
8842
8842
|
default: W(() => [
|
|
8843
|
-
|
|
8843
|
+
O(bd, {
|
|
8844
8844
|
fallback: c.value,
|
|
8845
8845
|
form: p.value,
|
|
8846
8846
|
"full-combinations": v.value,
|
|
@@ -8866,7 +8866,7 @@ function pa(e, t) {
|
|
|
8866
8866
|
var o, r, l, s;
|
|
8867
8867
|
const n = (o = t.groups) == null ? void 0 : o.reduce((u, m) => {
|
|
8868
8868
|
const d = e.groups.find((p) => p._id === m._id);
|
|
8869
|
-
return
|
|
8869
|
+
return On(e.items, d.items) === q.F_ADDON_GROUP_TYPE.enum.DYNAMIC && u.push(d), u;
|
|
8870
8870
|
}, []);
|
|
8871
8871
|
if (!(n != null && n.length)) return t;
|
|
8872
8872
|
const i = n.map((u) => u._id);
|
|
@@ -8960,7 +8960,7 @@ function jd(e, t) {
|
|
|
8960
8960
|
};
|
|
8961
8961
|
}
|
|
8962
8962
|
const ki = mo("item-manager", () => {
|
|
8963
|
-
const e = Me(), t = Qe(), n = lt(), i = St(t), a =
|
|
8963
|
+
const e = Me(), t = Qe(), n = lt(), i = St(t), a = Rt(i), o = an(), { t: r } = Se(), l = (y) => {
|
|
8964
8964
|
if (!o) throw new Error("No current instance found");
|
|
8965
8965
|
const { container: x } = Pa(Bd, o, {
|
|
8966
8966
|
...y,
|
|
@@ -9139,7 +9139,7 @@ const ki = mo("item-manager", () => {
|
|
|
9139
9139
|
e.currentScheduler ? await _(y) : await w(y)
|
|
9140
9140
|
);
|
|
9141
9141
|
}
|
|
9142
|
-
function
|
|
9142
|
+
function R(y) {
|
|
9143
9143
|
const { updateMenu: x } = a, k = y.length > 1 ? `${y.length} products` : y[0].name;
|
|
9144
9144
|
n.open({
|
|
9145
9145
|
title: r("menu.common.dialog.remove.product.title"),
|
|
@@ -9147,7 +9147,7 @@ const ki = mo("item-manager", () => {
|
|
|
9147
9147
|
primaryActions: {
|
|
9148
9148
|
text: r("menu.common.actions.remove"),
|
|
9149
9149
|
close: !0,
|
|
9150
|
-
variant:
|
|
9150
|
+
variant: Ot.Destructive
|
|
9151
9151
|
},
|
|
9152
9152
|
secondaryActions: {
|
|
9153
9153
|
text: r("menu.common.actions.cancel"),
|
|
@@ -9182,7 +9182,7 @@ const ki = mo("item-manager", () => {
|
|
|
9182
9182
|
e,
|
|
9183
9183
|
a.updateMenu,
|
|
9184
9184
|
n
|
|
9185
|
-
).unlinkProduct(y.map((x) => x._id)) :
|
|
9185
|
+
).unlinkProduct(y.map((x) => x._id)) : R(y);
|
|
9186
9186
|
}
|
|
9187
9187
|
async function T(y) {
|
|
9188
9188
|
const { updateMenu: x } = a;
|
|
@@ -9209,7 +9209,7 @@ export {
|
|
|
9209
9209
|
Ul as C,
|
|
9210
9210
|
cc as F,
|
|
9211
9211
|
Fr as I,
|
|
9212
|
-
|
|
9212
|
+
Oo as M,
|
|
9213
9213
|
md as P,
|
|
9214
9214
|
We as R,
|
|
9215
9215
|
$u as S,
|
|
@@ -9222,10 +9222,10 @@ export {
|
|
|
9222
9222
|
ci as e,
|
|
9223
9223
|
ra as f,
|
|
9224
9224
|
Wd as g,
|
|
9225
|
-
|
|
9225
|
+
Rc as h,
|
|
9226
9226
|
km as i,
|
|
9227
|
-
|
|
9228
|
-
|
|
9227
|
+
Ro as j,
|
|
9228
|
+
On as k,
|
|
9229
9229
|
pa as l,
|
|
9230
9230
|
Co as m,
|
|
9231
9231
|
la as n,
|