@feedmepos/mf-menu 0.31.32-prod → 0.31.33-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-NHdXEdrJ.js → App-B4rnpCXN.js} +20 -20
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DoTx23iL.js → ApplyProduct.vue_vue_type_script_setup_true_lang-LtwWMoPW.js} +2 -2
- package/dist/{Catalog-B0fV6Yje.js → Catalog-Cd7J8de0.js} +5 -5
- package/dist/{Category-CJZs9I7F.js → Category-D3WDm9Fe.js} +5 -5
- package/dist/{Category-CUKZ10xq.js → Category-p8UUDEiv.js} +4 -4
- package/dist/{CookingGuide-kVclP--T.js → CookingGuide-hFtxmtGj.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-RI_d10bz.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cf17Iy5i.js} +1 -1
- package/dist/{Group-CAS6o4Fo.js → Group-BTrqZgFd.js} +3 -3
- package/dist/{Group-Bgkye2LL.js → Group-Bv0dyi8v.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-Bij0tGMP.js → Group.vue_vue_type_script_setup_true_lang-vk1J9IxK.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CUa_0qzX.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B1wrLnf6.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-RsDAGQ3o.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CxPaVLVu.js} +8336 -8695
- package/dist/{Ingredient-DpAPMsPZ.js → Ingredient-BCostN4Y.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-MoApzjt6.js → InventoryBinding.vue_vue_type_script_setup_true_lang-MAqpI7ZD.js} +2 -2
- package/dist/{LinkProductSideSheet-CEClo07H.js → LinkProductSideSheet-abzVzmo3.js} +1 -1
- package/dist/{MenuSetting-CoqMT8Vh.js → MenuSetting-TfAo82-E.js} +4 -4
- package/dist/{PrintRoute-DyJil1Hl.js → PrintRoute-B43rP5A9.js} +3 -3
- package/dist/{Product-BPIUTn0_.js → Product-C7cYyDHH.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-fjFGg49e.js → Product.vue_vue_type_script_setup_true_lang-BOq8wMzq.js} +11 -11
- package/dist/{ProductInternalTools-DXgWE6JU.js → ProductInternalTools-CkswVuAF.js} +6 -6
- package/dist/Products-C7BtAjhB.js +659 -0
- package/dist/{Publish-DDzpmm72.js → Publish-DIKqaH2f.js} +3 -3
- package/dist/{Recipe-DHYzO0IS.js → Recipe-_ApT00c_.js} +4 -4
- package/dist/{Scheduler-DBad2mO3.js → Scheduler-DWY1kKHO.js} +3 -3
- package/dist/{ServingSequence-DC7raAtF.js → ServingSequence-Z1S9zOTO.js} +3 -3
- package/dist/{Setting-CPjvUYU9.js → Setting-Bfuf26Gc.js} +4 -4
- package/dist/{Subcategory-DHjc7WeF.js → Subcategory-Lqq6XHz2.js} +4 -4
- package/dist/{Takeaway-CAIAHpA-.js → Takeaway-DGvM9SBP.js} +1 -1
- package/dist/{Takeaway-CJRTaygj.js → Takeaway-DiGzrarg.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BNu9JjwH.js → Takeaway.vue_vue_type_script_setup_true_lang-BfWy217t.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ZRv8Dg6x.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B2wC_Mf0.js} +13 -13
- package/dist/{Unit-DSMSKE6_.js → Unit-D11rRFAf.js} +2 -2
- package/dist/{Variant-DMXxUWnj.js → Variant-LaKYPxDe.js} +3 -3
- package/dist/{_id_-CTq4qK7z.js → _id_-Q_Tyhr4U.js} +9 -9
- package/dist/{app-BTgdGTYz.js → app-Br9mC24D.js} +1 -1
- package/dist/{app-D23N7tJ0.js → app-C5UXrJGj.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +123 -0
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +32 -0
- package/dist/apps/mf-menu/src/helper/{import-export.d.ts → menuImport.d.ts} +3 -127
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-Cfc9wZst.js → linked-status-BhGrXd73.js} +7 -7
- package/dist/assets/{override-menu-BNZggtO_.js → override-menu-CUNDHOWA.js} +2 -2
- package/dist/assets/{validate-menu-CPwUvy9F.js → validate-menu-BqOizHsX.js} +2 -2
- package/dist/{catalog-DcciqmWK.js → catalog-BDyG_i9q.js} +1 -1
- package/dist/{catalogSetting-D4iwoJLb.js → catalogSetting-C33p_dck.js} +1 -1
- package/dist/{category-bhqVqDzJ.js → category-Bi6gpIYU.js} +1 -1
- package/dist/{currency-Clgvy00I.js → currency-DDseyYg1.js} +1 -1
- package/dist/{dayjs.min-DeSv8lfJ.js → dayjs.min-DoQgN0KD.js} +1 -1
- package/dist/{index-DZZJjEOs.js → index-C-zLHAG1.js} +1 -1
- package/dist/{index-CTUaJyIh.js → index-DTUmry92.js} +3 -3
- package/dist/{index-BHbYu_OM.js → index-DxrEwDTr.js} +2 -2
- package/dist/{item-DH1xf2Sa.js → item-DqXzPUy9.js} +373 -373
- package/dist/{jszip.min-CMM2HN8J.js → jszip.min-iAC5WNVU.js} +689 -689
- package/dist/{menu-DcGo3sn5.js → menu-Cir-22ei.js} +160 -160
- package/dist/{menu-Dx39P1vR.js → menu-D6df9rcz.js} +1 -1
- package/dist/{priceTier-3M5cxSYX.js → priceTier-C56BYecC.js} +1 -1
- package/dist/{scheduler-BT3EJBK6.js → scheduler-DCSpt65t.js} +3 -3
- package/dist/{subcategory-B5atmACN.js → subcategory-CydaPy_X.js} +39 -39
- package/dist/{toExcel-BLoj4Wqb.js → toExcel-Bil8CwJs.js} +15 -15
- package/dist/{unit-BsNOQHvZ.js → unit-8DyuBx-X.js} +1 -1
- package/package.json +1 -1
- package/dist/Products-dWmgQ_di.js +0 -270
|
@@ -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, G as q, V as Ca, aj as Aa, Y as Ia, H as be, B as Je, T as go, u as Me, A as Ge, I as at, a1 as Ta, D as kt, O as
|
|
2
|
+
import { createElementBlock as re, openBlock as U, createElementVNode as B, defineComponent as ge, resolveComponent as K, createBlock as J, createVNode as R, 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 kn, mergeProps as po, withModifiers as On, createTextVNode as Bn, resolveDirective as fo, markRaw as ya, render as Wn, mergeModels as wa, useModel as Ea, nextTick as ho, onBeforeUnmount as Sa, normalizeProps as ka, guardReactiveProps as Oa, normalizeStyle as Ra } from "vue";
|
|
3
|
+
import { J as ze, G as q, V as Ca, aj as Aa, Y as Ia, H as be, B as Je, T as go, u as Me, A as Ge, I as at, a1 as Ta, D as kt, O as Ot, P as Ma, Q as Da, R as Fa, U as Fn, ac as Na, M as Pa, K as ki } from "./menu-Cir-22ei.js";
|
|
4
4
|
import { useI18n as ke, 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 Rt, useBreakpoints as _o, useDialogChild as bo } from "@feedmepos/ui-library";
|
|
6
|
+
import { C as ht } from "./catalog-BDyG_i9q.js";
|
|
7
7
|
import { c as La } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
8
|
-
import { a as
|
|
9
|
-
import { _ as Ct, L as xa } from "./LinkProductSideSheet-
|
|
8
|
+
import { a as Oi, _ as yo } from "./tooltip-B5BiPMx9.js";
|
|
9
|
+
import { _ as Ct, L as xa } from "./LinkProductSideSheet-abzVzmo3.js";
|
|
10
10
|
import { _ as ut, a as Ua } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
11
|
-
import { s as Hn, F as Va, _ as za } from "./index-
|
|
12
|
-
import { I as $a, u as Ga } from "./app-
|
|
13
|
-
import { u as Ba } from "./app-
|
|
14
|
-
import { a as Wa, g as wo, d as Ha, c as ja, b as Ka, m as Ya } from "./subcategory-
|
|
11
|
+
import { s as Hn, F as Va, _ as za } from "./index-C-zLHAG1.js";
|
|
12
|
+
import { I as $a, u as Ga } from "./app-C5UXrJGj.js";
|
|
13
|
+
import { u as Ba } from "./app-Br9mC24D.js";
|
|
14
|
+
import { a as Wa, g as wo, d as Ha, c as ja, b as Ka, m as Ya } from "./subcategory-CydaPy_X.js";
|
|
15
15
|
import { _ as bt } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
16
16
|
import "@vue/devtools-api";
|
|
17
|
-
import { u as Xa } from "./category-
|
|
17
|
+
import { u as Xa } from "./category-Bi6gpIYU.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-DTUmry92.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 So } from "./priceTier-
|
|
23
|
+
import { f as Gt } from "./currency-DDseyYg1.js";
|
|
24
|
+
import { u as So } from "./priceTier-C56BYecC.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 ko } 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-LtwWMoPW.js";
|
|
29
|
+
import { V as Ri } from "./index-DxrEwDTr.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 Rn(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 Oo(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 Ro(e) {
|
|
|
316
316
|
linkItems: a
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
class
|
|
319
|
+
class Ro {
|
|
320
320
|
constructor(t, n, i) {
|
|
321
321
|
this.menuStore = t, this.updateMenu = n, this.dialog = i;
|
|
322
322
|
}
|
|
@@ -391,7 +391,7 @@ class Oo {
|
|
|
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((S) => S._id === s._id)) == null ? void 0 : y.items.find((S) => S._id === p._id && S.combinationKey === p.combinationKey), v = !n && !p.combinationKey, h = (x = u.find(
|
|
393
393
|
(S) => S._id == p._id && S.combinationKey == p.combinationKey
|
|
394
|
-
)) == null ? void 0 : x.price, k = p.name ?? (w == null ? void 0 : w.name) ?? (_ == null ? void 0 : _.name) ?? "",
|
|
394
|
+
)) == null ? void 0 : x.price, k = p.name ?? (w == null ? void 0 : w.name) ?? (_ == null ? void 0 : _.name) ?? "", O = {
|
|
395
395
|
...p,
|
|
396
396
|
name: k,
|
|
397
397
|
code: _ == null ? void 0 : _.code,
|
|
@@ -402,8 +402,8 @@ class Oo {
|
|
|
402
402
|
fallbackOrder: _ == null ? void 0 : _.orderFrom,
|
|
403
403
|
priceTiers: p.priceTiers
|
|
404
404
|
};
|
|
405
|
-
return [...c,
|
|
406
|
-
}, []), d =
|
|
405
|
+
return [...c, O];
|
|
406
|
+
}, []), d = Rn(a, s.items);
|
|
407
407
|
return {
|
|
408
408
|
...s,
|
|
409
409
|
type: d,
|
|
@@ -430,7 +430,7 @@ class Oo {
|
|
|
430
430
|
...s,
|
|
431
431
|
items: (s.items ?? []).map((u) => ({ ...u, _id: "" }))
|
|
432
432
|
}, r), {}));
|
|
433
|
-
const a =
|
|
433
|
+
const a = Oo(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(Oi, {
|
|
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
|
+
R(lr),
|
|
558
|
+
(U(!0), re(Ve, null, rt(a.items, (l) => (U(), J(Oi, {
|
|
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
|
+
R(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
|
+
R(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
|
+
R(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
|
+
R(ha, { name: "expand" }, {
|
|
681
681
|
default: W(() => [
|
|
682
682
|
i.toggle ? (U(), re("div", Sr, [
|
|
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(kr, [["__scopeId", "data-v-e920f110"]]);
|
|
694
|
-
var
|
|
694
|
+
var Or = { remy: "https://remy-dev.feedmeapi.com/v1" };
|
|
695
695
|
let We;
|
|
696
|
-
function
|
|
696
|
+
function Rr(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 Or(e) {
|
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
718
|
function Sm(e) {
|
|
719
|
-
We =
|
|
719
|
+
We = Rr({
|
|
720
720
|
token: e,
|
|
721
|
-
url:
|
|
721
|
+
url: Or.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, Oe = (e) => typeof e == "function", te = (e) => typeof e == "string", Re = (e) => typeof e == "boolean", fe = (e) => e !== null && typeof e == "object", Vr = (e) => fe(e) && Oe(e.then) && Oe(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 k() {
|
|
843
843
|
return r(n + o) && o++, o++, t[n + o];
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function O() {
|
|
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: k,
|
|
867
|
-
reset:
|
|
867
|
+
reset: O,
|
|
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 O(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 = k(f, g))
|
|
1180
1180
|
return L = c(g, 4, Z(f)), w(f), L;
|
|
1181
|
-
if (ue =
|
|
1181
|
+
if (ue = O(f, g))
|
|
1182
1182
|
return L = c(g, 5, ne(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, k,
|
|
1284
|
+
function i(v, h, k, O, ...A) {
|
|
1285
1285
|
const T = v.currentPosition();
|
|
1286
|
-
if (T.offset +=
|
|
1286
|
+
if (T.offset += O, T.column += O, n) {
|
|
1287
1287
|
const y = t ? Kn(k, 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, k) {
|
|
1295
|
-
const
|
|
1296
|
-
return t && (
|
|
1295
|
+
const O = { type: v };
|
|
1296
|
+
return t && (O.start = h, O.end = h, O.loc = { start: k, end: k }), O;
|
|
1297
1297
|
}
|
|
1298
|
-
function o(v, h, k,
|
|
1298
|
+
function o(v, h, k, O) {
|
|
1299
1299
|
t && (v.end = h, v.loc && (v.loc.end = k));
|
|
1300
1300
|
}
|
|
1301
1301
|
function r(v, h) {
|
|
1302
|
-
const k = v.context(),
|
|
1303
|
-
return
|
|
1302
|
+
const k = v.context(), O = a(3, k.offset, k.startLoc);
|
|
1303
|
+
return O.value = h, o(O, v.currentOffset(), v.currentPosition()), O;
|
|
1304
1304
|
}
|
|
1305
1305
|
function l(v, h) {
|
|
1306
|
-
const k = v.context(), { lastOffset:
|
|
1306
|
+
const k = v.context(), { lastOffset: O, lastStartLoc: A } = k, T = a(5, O, 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 k = v.context(), { lastOffset:
|
|
1310
|
+
const k = v.context(), { lastOffset: O, lastStartLoc: A } = k, T = a(4, O, 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 k = v.context(), { lastOffset:
|
|
1314
|
+
const k = v.context(), { lastOffset: O, lastStartLoc: A } = k, T = a(9, O, 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(), k = v.context(), { lastOffset:
|
|
1319
|
-
return h.type !== 11 ? (i(v, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, k.lastStartLoc, 0), T.value = "", o(T,
|
|
1318
|
+
const h = v.nextToken(), k = v.context(), { lastOffset: O, lastStartLoc: A } = k, T = a(8, O, A);
|
|
1319
|
+
return h.type !== 11 ? (i(v, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, k.lastStartLoc, 0), T.value = "", o(T, O, A), {
|
|
1320
1320
|
nextConsumeToken: h,
|
|
1321
1321
|
node: T
|
|
1322
1322
|
}) : (h.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, k.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 k = v.context(),
|
|
1328
|
-
return
|
|
1327
|
+
const k = v.context(), O = a(7, k.offset, k.startLoc);
|
|
1328
|
+
return O.value = h, o(O, v.currentOffset(), v.currentPosition()), O;
|
|
1329
1329
|
}
|
|
1330
1330
|
function c(v) {
|
|
1331
1331
|
const h = v.context(), k = a(6, h.offset, h.startLoc);
|
|
1332
|
-
let
|
|
1333
|
-
if (
|
|
1332
|
+
let O = v.nextToken();
|
|
1333
|
+
if (O.type === 8) {
|
|
1334
1334
|
const A = m(v);
|
|
1335
|
-
k.modifier = A.node,
|
|
1335
|
+
k.modifier = A.node, O = A.nextConsumeToken || v.nextToken();
|
|
1336
1336
|
}
|
|
1337
|
-
switch (
|
|
1337
|
+
switch (O.type !== 9 && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(O)), O = v.nextToken(), O.type === 2 && (O = v.nextToken()), O.type) {
|
|
1338
1338
|
case 10:
|
|
1339
|
-
|
|
1339
|
+
O.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(O)), k.key = d(v, O.value || "");
|
|
1340
1340
|
break;
|
|
1341
1341
|
case 4:
|
|
1342
|
-
|
|
1342
|
+
O.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(O)), k.key = s(v, O.value || "");
|
|
1343
1343
|
break;
|
|
1344
1344
|
case 5:
|
|
1345
|
-
|
|
1345
|
+
O.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(O)), k.key = l(v, O.value || "");
|
|
1346
1346
|
break;
|
|
1347
1347
|
case 6:
|
|
1348
|
-
|
|
1348
|
+
O.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(O)), k.key = u(v, O.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), k.key = T, o(k, A.offset, A.startLoc), {
|
|
1354
|
-
nextConsumeToken:
|
|
1354
|
+
nextConsumeToken: O,
|
|
1355
1355
|
node: k
|
|
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(), k = h.currentType === 1 ? v.currentOffset() : h.offset,
|
|
1364
|
+
const h = v.context(), k = h.currentType === 1 ? v.currentOffset() : h.offset, O = h.currentType === 1 ? h.endLoc : h.startLoc, A = a(2, k, O);
|
|
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, k,
|
|
1392
|
+
function E(v, h, k, O) {
|
|
1393
1393
|
const A = v.context();
|
|
1394
|
-
let T =
|
|
1394
|
+
let T = O.items.length === 0;
|
|
1395
1395
|
const y = a(1, h, k);
|
|
1396
|
-
y.cases = [], y.cases.push(
|
|
1396
|
+
y.cases = [], y.cases.push(O);
|
|
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, k, 0), o(y, v.currentOffset(), v.currentPosition()), y;
|
|
1402
1402
|
}
|
|
1403
1403
|
function _(v) {
|
|
1404
|
-
const h = v.context(), { offset: k, startLoc:
|
|
1405
|
-
return h.currentType === 13 ? A : E(v, k,
|
|
1404
|
+
const h = v.context(), { offset: k, startLoc: O } = h, A = p(v);
|
|
1405
|
+
return h.currentType === 13 ? A : E(v, k, O, A);
|
|
1406
1406
|
}
|
|
1407
1407
|
function w(v) {
|
|
1408
|
-
const h = Jr(v, Pe({}, e)), k = h.context(),
|
|
1409
|
-
return t &&
|
|
1408
|
+
const h = Jr(v, Pe({}, e)), k = h.context(), O = a(0, k.offset, k.startLoc);
|
|
1409
|
+
return t && O.loc && (O.loc.source = v), O.body = _(h), e.onCacheKey && (O.cacheKey = e.onCacheKey(v)), k.currentType !== 13 && i(h, _e.UNEXPECTED_LEXICAL_ANALYSIS, k.lastStartLoc, 0, v[k.offset] || ""), o(O, h.currentOffset(), h.currentPosition()), O;
|
|
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 = Rs(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 Os = ["m", "modifier"];
|
|
1792
|
+
function Rs(e) {
|
|
1793
|
+
return At(e, Os);
|
|
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
|
+
Re(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 (Oe(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 && Re(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 || Oe(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 = Oe(e.onWarn) ? e.onWarn : $r, n = te(e.version) ? e.version : Ys, i = te(e.locale) || Oe(e.locale) ? e.locale : Sn, a = Oe(i) ? Sn : 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 = Oe(e.missing) ? e.missing : null, c = Re(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = Re(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, _ = !!e.unresolving, w = Oe(e.postTranslation) ? e.postTranslation : null, v = pe(e.processor) ? e.processor : null, h = Re(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, k = !!e.escapeParameter, O = Oe(e.messageCompiler) ? e.messageCompiler : To, A = Oe(e.messageResolver) ? e.messageResolver : Mo || js, T = Oe(e.localeFallbacker) ? e.localeFallbacker : Do || xs, y = fe(e.fallbackContext) ? e.fallbackContext : void 0, x = e, S = 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: k,
|
|
2279
|
-
messageCompiler:
|
|
2279
|
+
messageCompiler: O,
|
|
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 = Re(m.missingWarn) ? m.missingWarn : e.missingWarn;
|
|
2315
|
+
Re(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, k);
|
|
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 O = `${v}__${s}`;
|
|
2331
|
+
Cn(d) || (O = `${O}__${JSON.stringify(d)}`);
|
|
2332
|
+
let A = l.get(O);
|
|
2333
|
+
return A || (A = new Intl.DateTimeFormat(v, Pe({}, h, d)), l.set(O, 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 = Re(m.missingWarn) ? m.missingWarn : e.missingWarn;
|
|
2392
|
+
Re(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, k);
|
|
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 O = `${v}__${s}`;
|
|
2408
|
+
Cn(d) || (O = `${O}__${JSON.stringify(d)}`);
|
|
2409
|
+
let A = l.get(O);
|
|
2410
|
+
return A || (A = new Intl.NumberFormat(v, Pe({}, h, d)), l.set(O, 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) && Oe(e.pluralRules[t]) ? e.pluralRules[t] : ji, a = fe(e.pluralRules) && te(t) && Oe(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 k =
|
|
2467
|
+
const k = Oe(e.messages) ? e.messages(v, !!h) : fe(e.messages) ? e.messages[v] : !1;
|
|
2468
2468
|
return k || (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) && Oe(e.processor.normalize) ? e.processor.normalize : ll, p = pe(e.processor) && Oe(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 [k,
|
|
2475
|
+
const [k, O] = h;
|
|
2476
2476
|
let A = "text", T = "";
|
|
2477
|
-
h.length === 1 ? fe(k) ? (T = k.modifier || T, A = k.type || A) : te(k) && (T = k || T) : h.length === 2 && (te(k) && (T = k || T), te(
|
|
2477
|
+
h.length === 1 ? fe(k) ? (T = k.modifier || T, A = k.type || A) : te(k) && (T = k || T) : h.length === 2 && (te(k) && (T = k || T), te(O) && (A = O || 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) => Oe(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 = Re(u.missingWarn) ? u.missingWarn : e.missingWarn, d = Re(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, c = Re(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, p = !!u.resolvedMessage, E = te(u.default) || Re(u.default) ? Re(u.default) ? o ? s : () => s : u.default : n ? o ? s : () => s : null, _ = n || E != null && (te(E) || Oe(E)), w = hi(e, u);
|
|
2495
2495
|
c && pl(u);
|
|
2496
2496
|
let [v, h, k] = 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), O = v, A = s;
|
|
2501
|
+
if (!p && !(te(O) || Wt(O) || Ye(O)) && _ && (O = E, A = O), !p && (!(te(O) || Wt(O) || Ye(O)) || !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(O) ? O : Uo(e, s, h, O, A, y);
|
|
2507
2507
|
if (T)
|
|
2508
|
-
return
|
|
2508
|
+
return O;
|
|
2509
2509
|
const S = gl(e, h, k, u), I = ml(S), 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(O) ? O.key : "",
|
|
2514
|
+
locale: h || (Ye(O) ? O.locale : ""),
|
|
2515
|
+
format: te(O) ? O : Ye(O) ? O.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_bc464abb-8cec-4fe6-b4e4-7bcc8b4b6622", 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", 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_bc464abb-8cec-4fe6-b4e4-7bcc8b4b6622", 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.2.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.0.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", 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: "1742", npm_package_dependencies__feedmepos_ui_library: "1.7.0", 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", 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: "20250907.24.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.0-rc.6", 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:12590", 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.7/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", GITHUB_RUN_ID: "17936917352", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "4d0723c2adedace1823fb7fd0774cfcb5b65da5d", 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_5bb5f606-db2c-411d-b81a-1df944f91a7b", INVOCATION_ID: "88e20f204b574b83a8cc7213d8622529", 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: "85", 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", 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 1000018192", 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.36", 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_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.32-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_dependencies_lodash: "^4.17.21", GITHUB_SHA: "4d0723c2adedace1823fb7fd0774cfcb5b65da5d", 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_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_bc464abb-8cec-4fe6-b4e4-7bcc8b4b6622", 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_bc464abb-8cec-4fe6-b4e4-7bcc8b4b6622", 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.8", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_bc464abb-8cec-4fe6-b4e4-7bcc8b4b6622", 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_f8d54016-129c-4090-9f3a-abf8605203c9", 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", 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_f8d54016-129c-4090-9f3a-abf8605203c9", 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.2.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.1.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", 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.0", 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", 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: "20250922.53.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.0-rc.6", 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:13340", 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.7/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", GITHUB_RUN_ID: "18025541418", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "9649549944658a7da567e746d9e274b24c20ee99", 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/KDI-3514-show-price-tier-in-group-importer", 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_bf8547d2-f1cd-4f41-ba0b-bac54161342f", INVOCATION_ID: "c59ca084b6f444619790cc189adc1cf8", 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: "414", GITHUB_TRIGGERING_ACTOR: "heiseshandian", 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", 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 1000018668", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-3514-show-price-tier-in-group-importer", 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.36", 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_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.33-beta.1", 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_dependencies_lodash: "^4.17.21", GITHUB_SHA: "9649549944658a7da567e746d9e274b24c20ee99", 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/KDI-3514-show-price-tier-in-group-importer", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", 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_f8d54016-129c-4090-9f3a-abf8605203c9", 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_f8d54016-129c-4090-9f3a-abf8605203c9", 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.8", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_f8d54016-129c-4090-9f3a-abf8605203c9", 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 R(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 Sl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
2706
2706
|
};
|
|
2707
2707
|
function kl(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 = Re(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 : Sn
|
|
@@ -2714,7 +2714,7 @@ function kl(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 : Re(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : Re(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : Re(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, w = Oe(e.missing) ? e.missing : null, v = Oe(e.missing) ? Qi(e.missing) : null, h = Oe(e.postTranslation) ? e.postTranslation : null, k = t ? t.warnHtmlMessage : Re(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!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 kl(e = {}) {
|
|
|
2733
2733
|
unresolving: !0,
|
|
2734
2734
|
postTranslation: h === null ? void 0 : h,
|
|
2735
2735
|
warnHtmlMessage: k,
|
|
2736
|
-
escapeParameter:
|
|
2736
|
+
escapeParameter: O,
|
|
2737
2737
|
messageResolver: e.messageResolver,
|
|
2738
2738
|
messageCompiler: e.messageCompiler,
|
|
2739
2739
|
__meta: { framework: "vue" }
|
|
@@ -2763,7 +2763,7 @@ function kl(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 Oe(h) ? h : null;
|
|
2767
2767
|
}
|
|
2768
2768
|
function C(F) {
|
|
2769
2769
|
h = F, y.postTranslation = F;
|
|
@@ -2808,7 +2808,7 @@ function kl(e = {}) {
|
|
|
2808
2808
|
return ce((H) => Reflect.apply(Wi, null, [H, ...F]), () => qn(...F), "number format", (H) => Reflect.apply(H.n, H, [...F]), () => Ui, (H) => te(H));
|
|
2809
2809
|
}
|
|
2810
2810
|
function ne(F) {
|
|
2811
|
-
return F.map((H) => te(H) || Ne(H) ||
|
|
2811
|
+
return F.map((H) => te(H) || Ne(H) || Re(H) ? Xi(String(H)) : H);
|
|
2812
2812
|
}
|
|
2813
2813
|
const ee = {
|
|
2814
2814
|
normalize: ne,
|
|
@@ -2842,7 +2842,7 @@ function kl(e = {}) {
|
|
|
2842
2842
|
return !1;
|
|
2843
2843
|
const he = te(H) ? H : l.value, Se = ct(he), tt = y.messageResolver(Se, F);
|
|
2844
2844
|
return Wt(tt) || Ye(tt) || te(tt);
|
|
2845
|
-
}, () => [F], "translate exists", (he) => Reflect.apply(he.te, he, [F, H]), El, (he) =>
|
|
2845
|
+
}, () => [F], "translate exists", (he) => Reflect.apply(he.te, he, [F, H]), El, (he) => Re(he));
|
|
2846
2846
|
}
|
|
2847
2847
|
function qt(F) {
|
|
2848
2848
|
let H = null;
|
|
@@ -2957,10 +2957,10 @@ function kl(e = {}) {
|
|
|
2957
2957
|
k = F, y.warnHtmlMessage = F;
|
|
2958
2958
|
},
|
|
2959
2959
|
get escapeParameter() {
|
|
2960
|
-
return
|
|
2960
|
+
return O;
|
|
2961
2961
|
},
|
|
2962
2962
|
set escapeParameter(F) {
|
|
2963
|
-
|
|
2963
|
+
O = 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 Ol({ 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 Rl(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 Rl(_) && (_[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"), k = K("FmMenuItem"),
|
|
3184
|
+
const v = K("FmIcon"), h = K("FmField"), k = K("FmMenuItem"), O = K("FmMenu"), A = K("FmFormGroup"), T = K("FmChipGroup");
|
|
3185
3185
|
return U(), re("div", Nl, [
|
|
3186
|
-
|
|
3186
|
+
R(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
|
-
O
|
|
3195
|
+
R(O, {
|
|
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
|
+
R(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
|
+
R(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
|
+
R(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 }, [R(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 [R("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 [R("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"), R("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 }, [R("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [Xt(R("img", { ref: "image", src: n.image && n.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[kn, 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 }, [R(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 [R(l, { movable: n.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: W(function() {
|
|
4194
|
+
return [R(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(O) {
|
|
4211
|
+
u[O] || (s[O] = 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(O) {
|
|
4232
|
+
u[O] || (s[O] = 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 }, [R("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), R("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 [R("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), R("div", { class: o.classes.imageWrapper }, [R("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: t[1] || (t[1] = On(function() {
|
|
4627
|
+
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), R("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"])), [[kn, 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
|
}, ku = {
|
|
4657
4657
|
class: /* @__PURE__ */ Ke(["absolute inset-0", "h-full w-full", "rounded-md overflow-hidden"])
|
|
4658
|
-
},
|
|
4658
|
+
}, Ou = {
|
|
4659
4659
|
class: /* @__PURE__ */ Ke(["relative z-0", "w-full h-full", "overflow-hidden"])
|
|
4660
|
-
},
|
|
4660
|
+
}, Ru = { 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", Su, [
|
|
4701
4701
|
B("div", ku, [
|
|
4702
|
-
B("div",
|
|
4703
|
-
|
|
4702
|
+
B("div", Ou, [
|
|
4703
|
+
R(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
|
+
R(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", Ru, [
|
|
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
|
+
R(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 = kt(o), l =
|
|
4919
|
+
const n = e, i = t, a = lt(), o = Qe(), r = kt(o), l = Ot(r), { t: s } = ln(), u = oe(null), m = oe([]), d = Wa({
|
|
4920
4920
|
dialog: a,
|
|
4921
4921
|
menuLoader: l,
|
|
4922
4922
|
isLocalOnly: n.isLocalOnly
|
|
4923
4923
|
}), c = (h, k) => {
|
|
4924
|
-
h ? m.value = [...m.value, k] : m.value = m.value.filter((
|
|
4924
|
+
h ? m.value = [...m.value, k] : m.value = m.value.filter((O) => O.value !== k.value), i(
|
|
4925
4925
|
"update:modelValue",
|
|
4926
|
-
m.value.map((
|
|
4926
|
+
m.value.map((O) => O.value)
|
|
4927
4927
|
);
|
|
4928
4928
|
}, p = (h) => {
|
|
4929
|
-
m.value = m.value.filter((k,
|
|
4929
|
+
m.value = m.value.filter((k, O) => O !== h), i(
|
|
4930
4930
|
"update:modelValue",
|
|
4931
4931
|
m.value.map((k) => k.value)
|
|
4932
4932
|
);
|
|
@@ -4944,9 +4944,9 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
4944
4944
|
},
|
|
4945
4945
|
{ immediate: !0 }
|
|
4946
4946
|
), (h, k) => {
|
|
4947
|
-
const
|
|
4947
|
+
const O = K("FmIcon"), A = K("FmField"), T = K("FmMenuItem"), y = K("FmMenu"), x = K("FmFormGroup"), S = K("FmChipGroup");
|
|
4948
4948
|
return U(), re("div", Lu, [
|
|
4949
|
-
|
|
4949
|
+
R(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
|
+
R(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: k[1] || (k[1] = (N) => v.value = N)
|
|
4964
4964
|
}, {
|
|
4965
4965
|
"menu-button": W(() => [
|
|
4966
|
-
|
|
4966
|
+
R(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
|
-
O
|
|
4972
|
+
R(O, {
|
|
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: k[0] || (k[0] = (N) => E())
|
|
5002
5002
|
}, [
|
|
5003
|
-
O
|
|
5003
|
+
R(O, {
|
|
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
|
+
R(S, {
|
|
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 = kt(r), s =
|
|
5081
|
+
const n = e, i = Me(), a = rn(), o = lt(), r = Qe(), l = kt(r), s = Ot(l), u = Xa({
|
|
5082
5082
|
dialog: o,
|
|
5083
5083
|
menuLoader: s
|
|
5084
5084
|
}), {
|
|
5085
5085
|
checkMenuIsLoading: m
|
|
5086
|
-
} =
|
|
5086
|
+
} = Ot(kt(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
|
+
}), O = oe(), A = () => n.isAddon ? null : R(Ul, {
|
|
5111
|
+
ref: O,
|
|
5112
5112
|
disabled: !c.value.category || n.isAddon || m(),
|
|
5113
5113
|
items: E.value,
|
|
5114
5114
|
modelValue: k.value,
|
|
5115
5115
|
"onUpdate:model-value": (D) => k.value = D,
|
|
5116
5116
|
placeholder: z("menu.product.form.detail.category.placeholder")
|
|
5117
5117
|
}, {
|
|
5118
|
-
"append-menu": () =>
|
|
5118
|
+
"append-menu": () => R("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 = O.value) == null || D.hideMenu(), u.create();
|
|
5124
5124
|
}
|
|
5125
|
-
}, [
|
|
5125
|
+
}, [R(Be.FmIcon, {
|
|
5126
5126
|
color: "primary",
|
|
5127
5127
|
name: "add",
|
|
5128
5128
|
size: "md"
|
|
5129
|
-
}, null),
|
|
5129
|
+
}, null), R("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 ie, 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, [R($, {
|
|
5192
5192
|
"model-value": D.form.code,
|
|
5193
5193
|
placeholder: ((ie = D.fallback) == null ? void 0 : ie.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, [R($, {
|
|
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, [R(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(R(sa, {
|
|
5219
5219
|
class: "absolute top-32 right-4 cursor-pointer",
|
|
5220
5220
|
onClick: I
|
|
5221
|
-
}, null, 512), [[ne, b(yo)("Suggest description")]])])]),
|
|
5221
|
+
}, null, 512), [[ne, b(yo)("Suggest description")]])])]), R(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"])]), R(bt, {
|
|
5227
5227
|
label: b(z)("menu.product.form.detail.category.label")
|
|
5228
5228
|
}, {
|
|
5229
5229
|
default: W(() => [_.value ? (U(), J(j, {
|
|
@@ -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, [R(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"]), R(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, [R(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"]), R(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), R(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(() => [R(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, [R($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), R(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
|
+
R(h, {
|
|
5396
5396
|
id: "inventory-form",
|
|
5397
5397
|
modelValue: a.value,
|
|
5398
5398
|
"onUpdate:modelValue": E[2] || (E[2] = (k) => a.value = k),
|
|
@@ -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
|
+
R(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
|
+
R(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
|
+
R(_, {
|
|
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
|
+
R(w, {
|
|
5435
5435
|
class: "p-16 space-y-24",
|
|
5436
5436
|
variant: "outlined"
|
|
5437
5437
|
}, {
|
|
5438
5438
|
default: W(() => [
|
|
5439
|
-
|
|
5439
|
+
R(b(Ja), {
|
|
5440
5440
|
modelValue: r.value,
|
|
5441
5441
|
"onUpdate:modelValue": E[0] || (E[0] = (k) => r.value = k)
|
|
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 = R(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 R(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, [R(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
|
+
R(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
|
+
R(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
|
+
R(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
|
+
R(_, {
|
|
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
|
+
R(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
|
+
R(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 j;
|
|
5722
5722
|
return G == null ? "" : (j = Da()[G]) == null ? void 0 : j.label;
|
|
5723
|
-
}, k = V(() => Object.values(E.value)),
|
|
5723
|
+
}, k = V(() => Object.values(E.value)), O = oe({}), {
|
|
5724
5724
|
t: A
|
|
5725
5725
|
} = ke(), 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 j = G.row.depth > 0, Z = G.row.original, ne = !_(Z.combinationKey).isDefault || Z.orderFrom === q.F_ORDER_FROM.enum.NONE, ie = !!G.getValue();
|
|
5735
|
-
return
|
|
5735
|
+
return R(Be.FmCheckbox, {
|
|
5736
5736
|
value: "default",
|
|
5737
5737
|
modelValue: ie,
|
|
5738
5738
|
disabled: ne,
|
|
@@ -5754,12 +5754,12 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5754
5754
|
size: 100,
|
|
5755
5755
|
cell: (G) => {
|
|
5756
5756
|
const j = G.getValue();
|
|
5757
|
-
return
|
|
5757
|
+
return R(Be.FmTooltip, {
|
|
5758
5758
|
class: "flex",
|
|
5759
5759
|
content: j,
|
|
5760
5760
|
zIndex: 110
|
|
5761
5761
|
}, {
|
|
5762
|
-
default: () => [
|
|
5762
|
+
default: () => [R("div", {
|
|
5763
5763
|
class: "break-all max-w-[100px]"
|
|
5764
5764
|
}, [j])]
|
|
5765
5765
|
});
|
|
@@ -5877,9 +5877,9 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5877
5877
|
size: 80,
|
|
5878
5878
|
cell: (G) => {
|
|
5879
5879
|
const j = G.row.original, Z = j.orderFrom === q.F_ORDER_FROM.enum.NONE, ne = G.row.depth > 0;
|
|
5880
|
-
return
|
|
5880
|
+
return R("div", {
|
|
5881
5881
|
class: "flex items-center justify-end"
|
|
5882
|
-
}, [_(null).priceTier &&
|
|
5882
|
+
}, [_(null).priceTier && R(da, {
|
|
5883
5883
|
priceTiers: j.priceTiers,
|
|
5884
5884
|
disabled: Z,
|
|
5885
5885
|
"onUpdate:priceTiers": (ie) => {
|
|
@@ -5897,7 +5897,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5897
5897
|
} else
|
|
5898
5898
|
S(j._id, "priceTiers", ie);
|
|
5899
5899
|
}
|
|
5900
|
-
}, null), _(j.combinationKey).inventory &&
|
|
5900
|
+
}, null), _(j.combinationKey).inventory && R(li, {
|
|
5901
5901
|
title: "Inventory",
|
|
5902
5902
|
initialValue: j.inventoryBindings ?? [],
|
|
5903
5903
|
name: j.name ?? j.fallbackName ?? "",
|
|
@@ -5920,14 +5920,14 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5920
5920
|
}, {
|
|
5921
5921
|
default: ({
|
|
5922
5922
|
trigger: ie
|
|
5923
|
-
}) =>
|
|
5923
|
+
}) => R(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 [R(K("fm-button"), {
|
|
5930
|
+
variant: Rt.Tertiary,
|
|
5931
5931
|
disabled: Z,
|
|
5932
5932
|
prependIcon: "inventory_2",
|
|
5933
5933
|
overwriteIconOutline: (ee = j.inventoryBindings) != null && ee.length ? "filled" : "outline",
|
|
@@ -5936,8 +5936,8 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5936
5936
|
}, null)];
|
|
5937
5937
|
}
|
|
5938
5938
|
})
|
|
5939
|
-
}), _(j.combinationKey).link &&
|
|
5940
|
-
variant:
|
|
5939
|
+
}), _(j.combinationKey).link && R(K("fm-button"), {
|
|
5940
|
+
variant: Rt.Tertiary,
|
|
5941
5941
|
prependIcon: "delete",
|
|
5942
5942
|
textColor: ft.NeutralGray400,
|
|
5943
5943
|
disabled: ne,
|
|
@@ -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, [R(xa, {
|
|
6071
6071
|
"categorized-items": G.categorizedItems,
|
|
6072
6072
|
"initial-value": d.value,
|
|
6073
6073
|
"show-variant": G.config.bindToVariant,
|
|
@@ -6077,7 +6077,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6077
6077
|
}, {
|
|
6078
6078
|
default: W(({
|
|
6079
6079
|
trigger: ie
|
|
6080
|
-
}) => [
|
|
6080
|
+
}) => [R(Z, {
|
|
6081
6081
|
"text-color": b(ft).ColorPrimary,
|
|
6082
6082
|
"border-color": b(ft).ColorPrimary,
|
|
6083
6083
|
variant: "secondary",
|
|
@@ -6086,7 +6086,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6086
6086
|
onClick: ie
|
|
6087
6087
|
}, null, 8, ["text-color", "border-color", "label", "onClick"])]),
|
|
6088
6088
|
_: 1
|
|
6089
|
-
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div", wc, [
|
|
6089
|
+
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div", wc, [R(Z, {
|
|
6090
6090
|
"text-color": b(ft).ColorPrimary,
|
|
6091
6091
|
"border-color": b(ft).ColorPrimary,
|
|
6092
6092
|
variant: "secondary",
|
|
@@ -6094,18 +6094,18 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6094
6094
|
"prepend-icon": "add",
|
|
6095
6095
|
onClick: x
|
|
6096
6096
|
}, null, 8, ["text-color", "border-color", "label"])]))], 64)) : se("", !0)]),
|
|
6097
|
-
default: W(() => [B("div", Ec, [B("div", Sc, [
|
|
6097
|
+
default: W(() => [B("div", Ec, [B("div", Sc, [R(ne, {
|
|
6098
6098
|
"column-defs": T.value,
|
|
6099
6099
|
"column-visibility": y.value,
|
|
6100
6100
|
draggable: !we.value && _(null).name,
|
|
6101
|
-
"expanded-state": l.value ? {} :
|
|
6101
|
+
"expanded-state": l.value ? {} : O.value,
|
|
6102
6102
|
"get-sub-row": $,
|
|
6103
6103
|
"page-size": 999,
|
|
6104
6104
|
"row-data": k.value,
|
|
6105
6105
|
"search-value": b(c),
|
|
6106
6106
|
"shrink-at": !1,
|
|
6107
6107
|
"hide-footer": "",
|
|
6108
|
-
"onUpdate:expandedState": j[0] || (j[0] = (ie) =>
|
|
6108
|
+
"onUpdate:expandedState": j[0] || (j[0] = (ie) => O.value = ie),
|
|
6109
6109
|
onDndChanged: j[1] || (j[1] = (ie) => le(ie)),
|
|
6110
6110
|
"onUpdate:dragging": j[2] || (j[2] = (ie) => l.value = ie)
|
|
6111
6111
|
}, null, 8, ["column-defs", "column-visibility", "draggable", "expanded-state", "row-data", "search-value"])])])]),
|
|
@@ -6114,7 +6114,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6114
6114
|
};
|
|
6115
6115
|
}
|
|
6116
6116
|
});
|
|
6117
|
-
function
|
|
6117
|
+
function Oc(e) {
|
|
6118
6118
|
const { t } = ke();
|
|
6119
6119
|
function n(r) {
|
|
6120
6120
|
let l = 0;
|
|
@@ -6163,7 +6163,7 @@ function Rc(e) {
|
|
|
6163
6163
|
minMaxValidationRules: o
|
|
6164
6164
|
};
|
|
6165
6165
|
}
|
|
6166
|
-
const
|
|
6166
|
+
const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
6167
6167
|
key: 0,
|
|
6168
6168
|
class: "pt-8 space-y-32"
|
|
6169
6169
|
}, Ac = { class: "flex gap-8 items-center justify-start" }, ma = /* @__PURE__ */ ge({
|
|
@@ -6179,7 +6179,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6179
6179
|
emits: ["update:group", "submit:group", "status:show"],
|
|
6180
6180
|
setup(e, { expose: t, emit: n }) {
|
|
6181
6181
|
let i = e;
|
|
6182
|
-
const a = n, o = Me(), r = rn(), l = lt(), s = Qe(), u =
|
|
6182
|
+
const a = n, o = Me(), r = rn(), l = lt(), s = Qe(), u = Ot(kt(s)), { countDefaultItems: m, validateGroupItems: d, minMaxValidationRules: c } = Oc(
|
|
6183
6183
|
() => i.group
|
|
6184
6184
|
), p = oe(!1), E = oe(!1), _ = (C) => {
|
|
6185
6185
|
sn.isBoolean(C) ? E.value = C : E.value = !E.value;
|
|
@@ -6197,12 +6197,12 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6197
6197
|
value: q.F_ADDON_GROUP_TYPE.enum.DYNAMIC
|
|
6198
6198
|
}
|
|
6199
6199
|
]);
|
|
6200
|
-
function
|
|
6200
|
+
function O(C) {
|
|
6201
6201
|
a("update:group", C);
|
|
6202
6202
|
}
|
|
6203
6203
|
function A(C) {
|
|
6204
6204
|
function $() {
|
|
6205
|
-
|
|
6205
|
+
O({
|
|
6206
6206
|
...i.group,
|
|
6207
6207
|
items: {},
|
|
6208
6208
|
type: C
|
|
@@ -6222,7 +6222,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6222
6222
|
}).onPrimary($) : $();
|
|
6223
6223
|
}
|
|
6224
6224
|
function T(C) {
|
|
6225
|
-
return new
|
|
6225
|
+
return new Ro(o, u.updateMenu, l).mapGroups(
|
|
6226
6226
|
[C],
|
|
6227
6227
|
w.value.isOverride
|
|
6228
6228
|
)[0];
|
|
@@ -6236,7 +6236,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6236
6236
|
async function I() {
|
|
6237
6237
|
var C;
|
|
6238
6238
|
if (i.action === "add") {
|
|
6239
|
-
const { group: $, linkItems: le } =
|
|
6239
|
+
const { group: $, linkItems: le } = Oo(i.group), ce = {
|
|
6240
6240
|
module: q.F_MENU_MODULE_V4_KEY.enum.group,
|
|
6241
6241
|
operation: ze.F_OPERATION_TYPE.create,
|
|
6242
6242
|
data: $,
|
|
@@ -6282,7 +6282,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6282
6282
|
typeof we == "string" && we && !((le = C[ce]) != null && le.includes(we)) && (C[ce] = [...C[ce] || [], we]);
|
|
6283
6283
|
}), C;
|
|
6284
6284
|
}), P = (C) => {
|
|
6285
|
-
i.group &&
|
|
6285
|
+
i.group && O({
|
|
6286
6286
|
...i.group,
|
|
6287
6287
|
customAttributes: C
|
|
6288
6288
|
});
|
|
@@ -6301,7 +6301,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6301
6301
|
const le = K("fm-text-field"), ce = K("fm-stepper-field"), we = K("FmFormGroup"), G = K("fm-radio"), j = K("fm-radio-group"), Z = K("fm-switch"), ne = K("fm-button"), ie = K("fm-side-sheet");
|
|
6302
6302
|
return U(), re(Ve, null, [
|
|
6303
6303
|
Ce(C.$slots, "default", { trigger: _ }),
|
|
6304
|
-
|
|
6304
|
+
R(ie, {
|
|
6305
6305
|
id: "group-form",
|
|
6306
6306
|
modelValue: E.value,
|
|
6307
6307
|
"onUpdate:modelValue": $[8] || ($[8] = (ee) => E.value = ee),
|
|
@@ -6314,18 +6314,18 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6314
6314
|
"onOn:clickedAway": b(x)
|
|
6315
6315
|
}, {
|
|
6316
6316
|
"side-sheet-header": W(() => [
|
|
6317
|
-
B("p",
|
|
6317
|
+
B("p", Rc, Ee(C.title), 1)
|
|
6318
6318
|
]),
|
|
6319
6319
|
"side-sheet-footer": W(() => [
|
|
6320
6320
|
B("div", Ac, [
|
|
6321
|
-
|
|
6321
|
+
R(ne, {
|
|
6322
6322
|
label: b(tr)(S.value),
|
|
6323
6323
|
loading: p.value,
|
|
6324
6324
|
size: "lg",
|
|
6325
6325
|
type: "submit",
|
|
6326
6326
|
variant: "primary"
|
|
6327
6327
|
}, null, 8, ["label", "loading"]),
|
|
6328
|
-
|
|
6328
|
+
R(ne, {
|
|
6329
6329
|
label: b(D)("menu.common.actions.cancel"),
|
|
6330
6330
|
size: "lg",
|
|
6331
6331
|
variant: "tertiary",
|
|
@@ -6336,10 +6336,10 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6336
6336
|
default: W(() => [
|
|
6337
6337
|
C.group ? (U(), re("div", Cc, [
|
|
6338
6338
|
Ce(C.$slots, "variant-section"),
|
|
6339
|
-
|
|
6339
|
+
R(Ua, null, {
|
|
6340
6340
|
default: W(() => [
|
|
6341
6341
|
B("div", null, [
|
|
6342
|
-
|
|
6342
|
+
R(le, {
|
|
6343
6343
|
modelValue: C.group.name,
|
|
6344
6344
|
"onUpdate:modelValue": $[0] || ($[0] = (ee) => C.group.name = ee),
|
|
6345
6345
|
disabled: h("name"),
|
|
@@ -6348,14 +6348,14 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6348
6348
|
label: b(D)("menu.common.labels.group_name")
|
|
6349
6349
|
}, null, 8, ["modelValue", "disabled", "rules", "label"])
|
|
6350
6350
|
]),
|
|
6351
|
-
|
|
6351
|
+
R(we, {
|
|
6352
6352
|
"model-value": C.group.min + " " + C.group.max,
|
|
6353
6353
|
rules: b(c)
|
|
6354
6354
|
}, {
|
|
6355
6355
|
default: W(() => [
|
|
6356
|
-
|
|
6356
|
+
R(cc, null, {
|
|
6357
6357
|
default: W(() => [
|
|
6358
|
-
|
|
6358
|
+
R(ce, {
|
|
6359
6359
|
modelValue: C.group.min,
|
|
6360
6360
|
"onUpdate:modelValue": $[1] || ($[1] = (ee) => C.group.min = ee),
|
|
6361
6361
|
disabled: h("min"),
|
|
@@ -6363,7 +6363,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6363
6363
|
class: "flex-1",
|
|
6364
6364
|
label: b(D)("menu.common.labels.min_select")
|
|
6365
6365
|
}, null, 8, ["modelValue", "disabled", "label"]),
|
|
6366
|
-
|
|
6366
|
+
R(ce, {
|
|
6367
6367
|
modelValue: C.group.max,
|
|
6368
6368
|
"onUpdate:modelValue": $[2] || ($[2] = (ee) => C.group.max = ee),
|
|
6369
6369
|
disabled: h("max"),
|
|
@@ -6382,7 +6382,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6382
6382
|
label: b(D)("menu.common.labels.group_type")
|
|
6383
6383
|
}, {
|
|
6384
6384
|
default: W(() => [
|
|
6385
|
-
|
|
6385
|
+
R(j, {
|
|
6386
6386
|
disabled: h("type"),
|
|
6387
6387
|
"model-value": C.group.type,
|
|
6388
6388
|
"onUpdate:modelValue": $[3] || ($[3] = (ee) => A(ee))
|
|
@@ -6399,11 +6399,11 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6399
6399
|
]),
|
|
6400
6400
|
_: 1
|
|
6401
6401
|
}, 8, ["label"])) : se("", !0),
|
|
6402
|
-
|
|
6402
|
+
R(bt, {
|
|
6403
6403
|
label: b(D)("menu.common.labels.configuration")
|
|
6404
6404
|
}, {
|
|
6405
6405
|
default: W(() => [
|
|
6406
|
-
|
|
6406
|
+
R(Z, {
|
|
6407
6407
|
modelValue: C.group.stackable,
|
|
6408
6408
|
"onUpdate:modelValue": $[4] || ($[4] = (ee) => C.group.stackable = ee),
|
|
6409
6409
|
disabled: h("stackable"),
|
|
@@ -6420,7 +6420,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6420
6420
|
"sub-title": b(D)("menu.group.form.tagging.subtitle")
|
|
6421
6421
|
}, {
|
|
6422
6422
|
default: W(() => [
|
|
6423
|
-
|
|
6423
|
+
R(b(vo), {
|
|
6424
6424
|
entity: "group",
|
|
6425
6425
|
"model-value": C.group.customAttributes || {},
|
|
6426
6426
|
"onUpdate:modelValue": P,
|
|
@@ -6432,7 +6432,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6432
6432
|
]),
|
|
6433
6433
|
_: 1
|
|
6434
6434
|
}),
|
|
6435
|
-
|
|
6435
|
+
R(we, {
|
|
6436
6436
|
tag: "div",
|
|
6437
6437
|
modelValue: C.group,
|
|
6438
6438
|
rules: [b(d)],
|
|
@@ -6442,13 +6442,13 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6442
6442
|
})
|
|
6443
6443
|
}, {
|
|
6444
6444
|
default: W(() => [
|
|
6445
|
-
|
|
6445
|
+
R(kc, {
|
|
6446
6446
|
"allow-refund-inventory": C.allowRefundInventory ?? !1,
|
|
6447
6447
|
"categorized-items": C.categorizedItems,
|
|
6448
6448
|
config: w.value,
|
|
6449
6449
|
group: C.group,
|
|
6450
|
-
"onUpdate:group": $[5] || ($[5] = (ee) =>
|
|
6451
|
-
"onUpdate:unmapGroup": $[6] || ($[6] = (ee) =>
|
|
6450
|
+
"onUpdate:group": $[5] || ($[5] = (ee) => O(ee)),
|
|
6451
|
+
"onUpdate:unmapGroup": $[6] || ($[6] = (ee) => O(T(ee)))
|
|
6452
6452
|
}, null, 8, ["allow-refund-inventory", "categorized-items", "config", "group"])
|
|
6453
6453
|
]),
|
|
6454
6454
|
_: 1
|
|
@@ -6469,8 +6469,8 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6469
6469
|
},
|
|
6470
6470
|
emits: ["update:combinations"],
|
|
6471
6471
|
setup(e, { expose: t, emit: n }) {
|
|
6472
|
-
var
|
|
6473
|
-
const i = e, a = n, o = Me(), r = lt(), l =
|
|
6472
|
+
var O, A;
|
|
6473
|
+
const i = e, a = n, o = Me(), r = lt(), l = Ot(kt(Qe())), s = oe([]), u = oe(i.combinations[0].combinationKey || ""), m = V(
|
|
6474
6474
|
() => s.value.findIndex((T) => T.combinationKey == u.value)
|
|
6475
6475
|
), d = V(
|
|
6476
6476
|
() => i.combinations.map((T) => ({
|
|
@@ -6500,7 +6500,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6500
6500
|
};
|
|
6501
6501
|
})
|
|
6502
6502
|
};
|
|
6503
|
-
return new
|
|
6503
|
+
return new Ro(o, l.updateMenu, r).mapGroups([I], !0)[0];
|
|
6504
6504
|
});
|
|
6505
6505
|
function p(T) {
|
|
6506
6506
|
var I, N;
|
|
@@ -6557,7 +6557,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6557
6557
|
);
|
|
6558
6558
|
const h = oe();
|
|
6559
6559
|
t({
|
|
6560
|
-
show: (
|
|
6560
|
+
show: (O = h.value) == null ? void 0 : O.show,
|
|
6561
6561
|
trigger: (A = h.value) == null ? void 0 : A.trigger
|
|
6562
6562
|
});
|
|
6563
6563
|
const { t: k } = ke();
|
|
@@ -6588,21 +6588,21 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6588
6588
|
default: W(() => [
|
|
6589
6589
|
B("p", Ic, Ee(b(k)("menu.group.option.variant")), 1),
|
|
6590
6590
|
B("div", Tc, [
|
|
6591
|
-
|
|
6591
|
+
R(x, {
|
|
6592
6592
|
modelValue: u.value,
|
|
6593
6593
|
"onUpdate:modelValue": y[0] || (y[0] = (N) => u.value = N),
|
|
6594
6594
|
items: d.value,
|
|
6595
6595
|
class: "flex-1"
|
|
6596
6596
|
}, null, 8, ["modelValue", "items"]),
|
|
6597
6597
|
B("div", Mc, [
|
|
6598
|
-
|
|
6599
|
-
variant: b(
|
|
6598
|
+
R(S, {
|
|
6599
|
+
variant: b(Rt).Tertiary,
|
|
6600
6600
|
"prepend-icon": "keyboard_arrow_left",
|
|
6601
6601
|
size: "lg",
|
|
6602
6602
|
onClick: y[1] || (y[1] = (N) => E("left"))
|
|
6603
6603
|
}, null, 8, ["variant"]),
|
|
6604
|
-
|
|
6605
|
-
variant: b(
|
|
6604
|
+
R(S, {
|
|
6605
|
+
variant: b(Rt).Tertiary,
|
|
6606
6606
|
"prepend-icon": "keyboard_arrow_right",
|
|
6607
6607
|
size: "lg",
|
|
6608
6608
|
onClick: y[2] || (y[2] = (N) => E("right"))
|
|
@@ -6635,7 +6635,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6635
6635
|
}
|
|
6636
6636
|
const u = V(() => s(l.value).reduce((w, v) => (w[v._id] = {
|
|
6637
6637
|
name: v.name,
|
|
6638
|
-
type:
|
|
6638
|
+
type: Rn(o.items, v.items)
|
|
6639
6639
|
}, w), {})), m = V(() => [
|
|
6640
6640
|
...Object.entries(u.value).map(([w, { name: v, type: h }]) => ({
|
|
6641
6641
|
label: `${v} ${r.value.type ? `(${Hn(h)})` : ""}`.trim(),
|
|
@@ -6643,11 +6643,11 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6643
6643
|
}))
|
|
6644
6644
|
]), d = V(() => !!o.state.currentCatalogId || !!o.state.currentSchedulerId);
|
|
6645
6645
|
V(() => {
|
|
6646
|
-
const w = !o.state.currentSchedulerId, v = o.rules.group.type, h = o.version == q.F_MENU_VERSION.enum.v3, k = o.rules.item.orderFromActiveOnly,
|
|
6646
|
+
const w = !o.state.currentSchedulerId, v = o.rules.group.type, h = o.version == q.F_MENU_VERSION.enum.v3, k = o.rules.item.orderFromActiveOnly, O = o.rules.item.bindToVariant;
|
|
6647
6647
|
return function(T) {
|
|
6648
6648
|
return {
|
|
6649
6649
|
isDefault: (y) => !d.value && !y,
|
|
6650
|
-
link: (y) => !d.value && (!y ||
|
|
6650
|
+
link: (y) => !d.value && (!y || O),
|
|
6651
6651
|
name: (y) => !d.value && !y,
|
|
6652
6652
|
type: v && !T._id && !d.value,
|
|
6653
6653
|
price: T.type != q.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
|
|
@@ -6657,7 +6657,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6657
6657
|
orderFrom: (y) => w ? h ? T.type == q.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? d.value : !!d.value == !y : d.value : !1,
|
|
6658
6658
|
orderFromActiveOnly: k,
|
|
6659
6659
|
showOrderFrom: w ? h ? d.value ? !0 : T.type == q.F_ADDON_GROUP_TYPE.enum.PRODUCT : d.value : !1,
|
|
6660
|
-
bindToVariant:
|
|
6660
|
+
bindToVariant: O,
|
|
6661
6661
|
isOverride: d.value,
|
|
6662
6662
|
isItemGroup: !1,
|
|
6663
6663
|
isV4: !h
|
|
@@ -6674,10 +6674,10 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6674
6674
|
i(c.value), a("primary"), n.close();
|
|
6675
6675
|
};
|
|
6676
6676
|
return (w, v) => {
|
|
6677
|
-
const h = K("FmSearch"), k = K("FmCheckbox"),
|
|
6677
|
+
const h = K("FmSearch"), k = K("FmCheckbox"), O = K("FmButton");
|
|
6678
6678
|
return m.value.length > 0 ? (U(), re("div", Pc, [
|
|
6679
6679
|
B("div", null, [
|
|
6680
|
-
|
|
6680
|
+
R(h, {
|
|
6681
6681
|
autofocus: "",
|
|
6682
6682
|
modelValue: p.value,
|
|
6683
6683
|
"onUpdate:modelValue": v[0] || (v[0] = (A) => p.value = A),
|
|
@@ -6689,7 +6689,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6689
6689
|
(U(!0), re(Ve, null, rt(m.value, (A) => (U(), re("div", {
|
|
6690
6690
|
key: A.value
|
|
6691
6691
|
}, [
|
|
6692
|
-
Xt(
|
|
6692
|
+
Xt(R(k, {
|
|
6693
6693
|
modelValue: c.value,
|
|
6694
6694
|
"onUpdate:modelValue": [
|
|
6695
6695
|
v[1] || (v[1] = (T) => c.value = T),
|
|
@@ -6704,9 +6704,9 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6704
6704
|
])
|
|
6705
6705
|
]),
|
|
6706
6706
|
B("div", xc, [
|
|
6707
|
-
|
|
6707
|
+
R(b(co), null, {
|
|
6708
6708
|
default: W(({ trigger: A }) => [
|
|
6709
|
-
O
|
|
6709
|
+
R(O, {
|
|
6710
6710
|
label: b(E)("menu.common.actions.add_group"),
|
|
6711
6711
|
variant: "tertiary",
|
|
6712
6712
|
"text-color": "primary",
|
|
@@ -6716,12 +6716,12 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6716
6716
|
_: 1
|
|
6717
6717
|
}),
|
|
6718
6718
|
B("div", Uc, [
|
|
6719
|
-
O
|
|
6719
|
+
R(O, {
|
|
6720
6720
|
label: b(E)("menu.common.actions.cancel"),
|
|
6721
6721
|
variant: "tertiary",
|
|
6722
6722
|
onClick: v[3] || (v[3] = (A) => b(n).close())
|
|
6723
6723
|
}, null, 8, ["label"]),
|
|
6724
|
-
O
|
|
6724
|
+
R(O, {
|
|
6725
6725
|
label: b(E)("menu.common.actions.confirm"),
|
|
6726
6726
|
onClick: v[4] || (v[4] = (A) => _())
|
|
6727
6727
|
}, null, 8, ["label"])
|
|
@@ -6732,9 +6732,9 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6732
6732
|
B("p", $c, Ee(b(E)("menu.common.empty.no_group.title")), 1),
|
|
6733
6733
|
B("p", Gc, Ee(b(E)("menu.common.empty.no_group.subtitle")), 1)
|
|
6734
6734
|
]),
|
|
6735
|
-
|
|
6735
|
+
R(b(co), null, {
|
|
6736
6736
|
default: W(({ trigger: A }) => [
|
|
6737
|
-
O
|
|
6737
|
+
R(O, {
|
|
6738
6738
|
label: b(E)("menu.common.actions.add_group"),
|
|
6739
6739
|
icon: "add",
|
|
6740
6740
|
onClick: (T) => A()
|
|
@@ -6805,7 +6805,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6805
6805
|
}
|
|
6806
6806
|
const w = V(() => E(d.value).reduce((M, P) => (M[P._id] = {
|
|
6807
6807
|
name: P.name,
|
|
6808
|
-
type:
|
|
6808
|
+
type: Rn(a.items, P.items)
|
|
6809
6809
|
}, M), {})), v = V(() => [...Object.entries(w.value).map(([M, {
|
|
6810
6810
|
name: P,
|
|
6811
6811
|
type: z
|
|
@@ -6837,20 +6837,20 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6837
6837
|
size: 200,
|
|
6838
6838
|
cell: (M) => {
|
|
6839
6839
|
const P = M.row.original._id, D = _(P).join(", ");
|
|
6840
|
-
return
|
|
6840
|
+
return R(Be.FmTooltip, {
|
|
6841
6841
|
"z-index": 51,
|
|
6842
6842
|
class: "flex",
|
|
6843
6843
|
variant: "rich",
|
|
6844
6844
|
placement: "top"
|
|
6845
6845
|
}, {
|
|
6846
|
-
default: () =>
|
|
6846
|
+
default: () => R("div", {
|
|
6847
6847
|
class: "line-clamp-2 break-all"
|
|
6848
6848
|
}, [D]),
|
|
6849
|
-
content: () =>
|
|
6849
|
+
content: () => R("div", {
|
|
6850
6850
|
class: "py-12 px-16 space-y-12"
|
|
6851
|
-
}, [
|
|
6851
|
+
}, [R("p", {
|
|
6852
6852
|
class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600"
|
|
6853
|
-
}, [l("menu.group.list.columns.products")]),
|
|
6853
|
+
}, [l("menu.group.list.columns.products")]), R("div", {
|
|
6854
6854
|
class: "flex flex-wrap gap-8"
|
|
6855
6855
|
}, [D])])
|
|
6856
6856
|
});
|
|
@@ -6868,7 +6868,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6868
6868
|
icon: "delete",
|
|
6869
6869
|
variant: "tertiary",
|
|
6870
6870
|
textColor: "neutral-gray-400",
|
|
6871
|
-
onClick:
|
|
6871
|
+
onClick: On(async () => {
|
|
6872
6872
|
T(P);
|
|
6873
6873
|
}, ["stop", "prevent"])
|
|
6874
6874
|
}), Fe(Nc, {
|
|
@@ -6893,7 +6893,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6893
6893
|
}]), k = V(() => ({
|
|
6894
6894
|
type: a.version !== q.F_MENU_VERSION.enum.v4
|
|
6895
6895
|
}));
|
|
6896
|
-
function
|
|
6896
|
+
function O() {
|
|
6897
6897
|
r.open({
|
|
6898
6898
|
title: l("menu.product.form.group.add"),
|
|
6899
6899
|
contentComponent: Bc,
|
|
@@ -6987,14 +6987,14 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6987
6987
|
title: b(l)("menu.product.form.group.title"),
|
|
6988
6988
|
"sub-title": b(l)("menu.product.form.group.subtitle")
|
|
6989
6989
|
}, {
|
|
6990
|
-
"append-title": W(() => [
|
|
6990
|
+
"append-title": W(() => [R(z, {
|
|
6991
6991
|
class: "flex-shrink-0",
|
|
6992
6992
|
label: b(l)("menu.product.form.group.add"),
|
|
6993
6993
|
"prepend-icon": "add",
|
|
6994
6994
|
variant: "secondary",
|
|
6995
|
-
onClick:
|
|
6995
|
+
onClick: O
|
|
6996
6996
|
}, null, 8, ["label"])]),
|
|
6997
|
-
default: W(() => [
|
|
6997
|
+
default: W(() => [R(ua, null, {
|
|
6998
6998
|
default: W(() => {
|
|
6999
6999
|
var C;
|
|
7000
7000
|
return [((C = p.value) == null ? void 0 : C.length) > 0 ? (U(), J(D, {
|
|
@@ -7059,10 +7059,10 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7059
7059
|
return s(i.form.inventoryBindings || [], ((_ = i.form.variant) == null ? void 0 : _.variantCombinations) || [], u.value, o.variants);
|
|
7060
7060
|
});
|
|
7061
7061
|
function d(_, w) {
|
|
7062
|
-
var
|
|
7062
|
+
var O, A;
|
|
7063
7063
|
let v = at.clone(i.form);
|
|
7064
7064
|
const h = v.variant;
|
|
7065
|
-
if ((((
|
|
7065
|
+
if ((((O = h == null ? void 0 : h.variantCombinations) == null ? void 0 : O.length) ?? 0) > 0 && h) {
|
|
7066
7066
|
const T = h.variantCombinations.findIndex((x) => x.combinationKey === _);
|
|
7067
7067
|
if (T < 0) return;
|
|
7068
7068
|
const y = at.clone(h.variantCombinations);
|
|
@@ -7110,9 +7110,9 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7110
7110
|
enableSorting: !1,
|
|
7111
7111
|
cell: (_) => {
|
|
7112
7112
|
const w = _.row.original;
|
|
7113
|
-
return l.value ?
|
|
7113
|
+
return l.value ? R("div", {
|
|
7114
7114
|
class: "flex items-center justify-end"
|
|
7115
|
-
}, [
|
|
7115
|
+
}, [R(li, {
|
|
7116
7116
|
name: w.name,
|
|
7117
7117
|
initialValue: w.bindings ?? [],
|
|
7118
7118
|
title: n("menu.inventory.dialog.title", {
|
|
@@ -7124,8 +7124,8 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7124
7124
|
}, {
|
|
7125
7125
|
default: ({
|
|
7126
7126
|
trigger: v
|
|
7127
|
-
}) =>
|
|
7128
|
-
variant:
|
|
7127
|
+
}) => R(K("fm-button"), {
|
|
7128
|
+
variant: Rt.Tertiary,
|
|
7129
7129
|
prependIcon: "edit",
|
|
7130
7130
|
textColor: ft.NeutralGray400,
|
|
7131
7131
|
onClick: v
|
|
@@ -7161,7 +7161,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7161
7161
|
"onUpdate:inventory": (h) => {
|
|
7162
7162
|
d(v._id, h);
|
|
7163
7163
|
}
|
|
7164
|
-
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)),
|
|
7164
|
+
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), R(b(Za), {
|
|
7165
7165
|
"row-data": m.value,
|
|
7166
7166
|
onRowClick: p
|
|
7167
7167
|
}, null, 8, ["row-data"])])])]),
|
|
@@ -7193,8 +7193,8 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7193
7193
|
emits: ["update:form"],
|
|
7194
7194
|
setup(e, { emit: t }) {
|
|
7195
7195
|
const n = e, i = rn(), a = Me(), o = So(), { t: r } = ke(), l = t, s = V(() => a.rules.item), u = V(() => {
|
|
7196
|
-
var
|
|
7197
|
-
const h = n.isOverride ? ((
|
|
7196
|
+
var O, A;
|
|
7197
|
+
const h = n.isOverride ? ((O = n.fallback) == null ? void 0 : O.unit) ?? ((A = n.fallback) == null ? void 0 : A.perXUnit) : void 0, k = n.form.unit ?? n.form.perXUnit ?? h;
|
|
7198
7198
|
return k != null;
|
|
7199
7199
|
}), m = (h) => {
|
|
7200
7200
|
l("update:form", "unit", h ? "" : void 0), l("update:form", "perXUnit", h ? 0 : void 0);
|
|
@@ -7216,8 +7216,8 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7216
7216
|
}
|
|
7217
7217
|
function E(h) {
|
|
7218
7218
|
if (!h && n.form.perXUnit) {
|
|
7219
|
-
const [k,
|
|
7220
|
-
if (
|
|
7219
|
+
const [k, O] = n.form.perXUnit.toString().split(".");
|
|
7220
|
+
if (O && O.length > 4) {
|
|
7221
7221
|
const T = (typeof n.form.perXUnit == "string" ? parseFloat(n.form.perXUnit) : n.form.perXUnit).toFixed(4);
|
|
7222
7222
|
l("update:form", "perXUnit", parseFloat(T));
|
|
7223
7223
|
}
|
|
@@ -7225,7 +7225,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7225
7225
|
}
|
|
7226
7226
|
const _ = oe(!1);
|
|
7227
7227
|
async function w() {
|
|
7228
|
-
var k,
|
|
7228
|
+
var k, O, A, T, y, x, S;
|
|
7229
7229
|
if (!(n.form.name || "")) {
|
|
7230
7230
|
const I = document.getElementById("product-name");
|
|
7231
7231
|
if (I) {
|
|
@@ -7248,7 +7248,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7248
7248
|
We,
|
|
7249
7249
|
{
|
|
7250
7250
|
name: n.form.name || "",
|
|
7251
|
-
lat: (A = (
|
|
7251
|
+
lat: (A = (O = (k = i.currentRestaurant) == null ? void 0 : k.value) == null ? void 0 : O.profile.address.coordinates) == null ? void 0 : A[1],
|
|
7252
7252
|
lon: (x = (y = (T = i.currentRestaurant) == null ? void 0 : T.value) == null ? void 0 : y.profile.address.coordinates) == null ? void 0 : x[0]
|
|
7253
7253
|
},
|
|
7254
7254
|
!0
|
|
@@ -7262,7 +7262,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7262
7262
|
return ((h = a.currentCatalog) == null ? void 0 : h.usePriceTiers) ?? [];
|
|
7263
7263
|
});
|
|
7264
7264
|
return (h, k) => {
|
|
7265
|
-
const
|
|
7265
|
+
const O = K("fm-select"), A = K("FmButton"), T = K("fm-checkbox"), y = K("fm-text-field"), x = fo("tooltip");
|
|
7266
7266
|
return U(), J(ut, {
|
|
7267
7267
|
title: b(r)("menu.product.form.price.title")
|
|
7268
7268
|
}, {
|
|
@@ -7270,7 +7270,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7270
7270
|
var S;
|
|
7271
7271
|
return [
|
|
7272
7272
|
B("div", Yc, [
|
|
7273
|
-
|
|
7273
|
+
R(Ft, {
|
|
7274
7274
|
disable: v.value.length > 0 && b(a).currentCatalog && !b(a).currentScheduler,
|
|
7275
7275
|
min: 0,
|
|
7276
7276
|
"model-value": h.form.price || null,
|
|
@@ -7284,7 +7284,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7284
7284
|
"onUpdate:modelValue": k[0] || (k[0] = (I) => I && l("update:form", "price", I))
|
|
7285
7285
|
}, {
|
|
7286
7286
|
append: W(() => [
|
|
7287
|
-
Xt(
|
|
7287
|
+
Xt(R(sa, {
|
|
7288
7288
|
"pure-styling": "",
|
|
7289
7289
|
onClick: w
|
|
7290
7290
|
}, null, 512), [
|
|
@@ -7293,7 +7293,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7293
7293
|
]),
|
|
7294
7294
|
_: 1
|
|
7295
7295
|
}, 8, ["disable", "model-value", "placeholder", "rules", "label"]),
|
|
7296
|
-
O
|
|
7296
|
+
R(O, {
|
|
7297
7297
|
disabled: !s.value.tax || !d.value.systemCode,
|
|
7298
7298
|
items: d.value.countryTaxOptions,
|
|
7299
7299
|
label: d.value.systemCode ? b(r)("menu.product.form.price.fields.tax.label_with_code", {
|
|
@@ -7312,7 +7312,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7312
7312
|
description: b(r)("menu.price_tier.description")
|
|
7313
7313
|
}, {
|
|
7314
7314
|
append: W(() => [
|
|
7315
|
-
|
|
7315
|
+
R(A, {
|
|
7316
7316
|
label: b(r)("menu.price_tier.add_price_group"),
|
|
7317
7317
|
icon: "add",
|
|
7318
7318
|
variant: "secondary",
|
|
@@ -7333,14 +7333,14 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7333
7333
|
}),
|
|
7334
7334
|
_: 1
|
|
7335
7335
|
}, 8, ["label", "description"])) : se("", !0),
|
|
7336
|
-
|
|
7336
|
+
R(bt, {
|
|
7337
7337
|
label: b(r)("menu.product.form.price.settings.title")
|
|
7338
7338
|
}, {
|
|
7339
7339
|
default: W(() => {
|
|
7340
7340
|
var I, N, M;
|
|
7341
7341
|
return [
|
|
7342
7342
|
B("div", Xc, [
|
|
7343
|
-
|
|
7343
|
+
R(T, {
|
|
7344
7344
|
disabled: !s.value.openPrice || h.isAddon,
|
|
7345
7345
|
"model-value": h.form.openPrice ?? ((I = h.fallback) == null ? void 0 : I.openPrice) ?? !1,
|
|
7346
7346
|
value: h.form.openPrice,
|
|
@@ -7349,7 +7349,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7349
7349
|
"onUpdate:modelValue": k[3] || (k[3] = (P) => l("update:form", "openPrice", P))
|
|
7350
7350
|
}, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
|
|
7351
7351
|
B("div", qc, [
|
|
7352
|
-
|
|
7352
|
+
R(T, {
|
|
7353
7353
|
disabled: !s.value.unit || h.isAddon,
|
|
7354
7354
|
"model-value": u.value,
|
|
7355
7355
|
value: u.value,
|
|
@@ -7360,7 +7360,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7360
7360
|
u.value ? (U(), re("div", Jc, [
|
|
7361
7361
|
B("p", Zc, Ee(b(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
|
|
7362
7362
|
B("div", Qc, [
|
|
7363
|
-
|
|
7363
|
+
R(y, {
|
|
7364
7364
|
disabled: !s.value.unit,
|
|
7365
7365
|
"model-value": h.form.perXUnit || ((N = h.fallback) == null ? void 0 : N.perXUnit) || null,
|
|
7366
7366
|
rules: [
|
|
@@ -7375,7 +7375,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7375
7375
|
}, null, 8, ["disabled", "model-value", "rules", "placeholder"])
|
|
7376
7376
|
]),
|
|
7377
7377
|
B("div", ed, [
|
|
7378
|
-
|
|
7378
|
+
R(y, {
|
|
7379
7379
|
disabled: !s.value.unit,
|
|
7380
7380
|
"model-value": h.form.unit || ((M = h.fallback) == null ? void 0 : M.unit) || null,
|
|
7381
7381
|
rules: [
|
|
@@ -7388,7 +7388,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7388
7388
|
])) : se("", !0)
|
|
7389
7389
|
]),
|
|
7390
7390
|
s.value.costing ? (U(), re("div", td, [
|
|
7391
|
-
|
|
7391
|
+
R(T, {
|
|
7392
7392
|
"model-value": !!h.form.costing,
|
|
7393
7393
|
value: !!h.form.costing,
|
|
7394
7394
|
label: b(r)("menu.product.form.price.settings.track_costing.label"),
|
|
@@ -7396,7 +7396,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7396
7396
|
}, null, 8, ["model-value", "value", "label"]),
|
|
7397
7397
|
h.form.costing ? (U(), re("div", nd, [
|
|
7398
7398
|
B("div", id, [
|
|
7399
|
-
|
|
7399
|
+
R(Ft, {
|
|
7400
7400
|
class: "w-full",
|
|
7401
7401
|
min: 0,
|
|
7402
7402
|
"model-value": h.form.costing || null,
|
|
@@ -7408,7 +7408,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7408
7408
|
])) : se("", !0)
|
|
7409
7409
|
])) : se("", !0),
|
|
7410
7410
|
s.value.minPrice ? (U(), re("div", od, [
|
|
7411
|
-
|
|
7411
|
+
R(T, {
|
|
7412
7412
|
disabled: !s.value.minPrice || h.isAddon,
|
|
7413
7413
|
"model-value": !!h.form.minPrice,
|
|
7414
7414
|
value: !!h.form.minPrice,
|
|
@@ -7447,7 +7447,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7447
7447
|
applyProduct: { type: Boolean }
|
|
7448
7448
|
},
|
|
7449
7449
|
setup(e) {
|
|
7450
|
-
const { t } = ke(), n = e, i =
|
|
7450
|
+
const { t } = ke(), n = e, i = Ot(kt(Qe())), a = V(
|
|
7451
7451
|
() => n.initialValue ? t("menu.print_dept.update") : t("menu.print_dept.add")
|
|
7452
7452
|
), o = V(
|
|
7453
7453
|
() => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
|
|
@@ -7491,7 +7491,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7491
7491
|
const p = K("fm-text-field"), E = K("fm-button"), _ = K("fm-side-sheet");
|
|
7492
7492
|
return U(), re(Ve, null, [
|
|
7493
7493
|
Ce(d.$slots, "default", { trigger: u }),
|
|
7494
|
-
|
|
7494
|
+
R(_, {
|
|
7495
7495
|
id: "variant-form",
|
|
7496
7496
|
modelValue: s.value,
|
|
7497
7497
|
"onUpdate:modelValue": c[3] || (c[3] = (w) => s.value = w),
|
|
@@ -7508,14 +7508,14 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7508
7508
|
]),
|
|
7509
7509
|
"side-sheet-footer": W(() => [
|
|
7510
7510
|
B("div", cd, [
|
|
7511
|
-
|
|
7511
|
+
R(E, {
|
|
7512
7512
|
label: o.value,
|
|
7513
7513
|
loading: l.value,
|
|
7514
7514
|
size: "lg",
|
|
7515
7515
|
type: "submit",
|
|
7516
7516
|
variant: "primary"
|
|
7517
7517
|
}, null, 8, ["label", "loading"]),
|
|
7518
|
-
|
|
7518
|
+
R(E, {
|
|
7519
7519
|
label: b(t)("menu.common.actions.cancel"),
|
|
7520
7520
|
size: "lg",
|
|
7521
7521
|
variant: "tertiary",
|
|
@@ -7525,7 +7525,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7525
7525
|
]),
|
|
7526
7526
|
default: W(() => [
|
|
7527
7527
|
B("div", ud, [
|
|
7528
|
-
|
|
7528
|
+
R(p, {
|
|
7529
7529
|
modelValue: r.value.name,
|
|
7530
7530
|
"onUpdate:modelValue": c[0] || (c[0] = (w) => r.value.name = w),
|
|
7531
7531
|
rules: [
|
|
@@ -7605,8 +7605,8 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7605
7605
|
});
|
|
7606
7606
|
}
|
|
7607
7607
|
function _(v, h) {
|
|
7608
|
-
var
|
|
7609
|
-
let k = [...((A = (
|
|
7608
|
+
var O, A;
|
|
7609
|
+
let k = [...((A = (O = n.form) == null ? void 0 : O.print) == null ? void 0 : A.department) ?? []];
|
|
7610
7610
|
h && !k.includes(v) ? k = [...k, v] : h || (k = k.filter((T) => T !== v)), o("update:form", "print", {
|
|
7611
7611
|
...r(),
|
|
7612
7612
|
...n.form.print,
|
|
@@ -7629,7 +7629,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7629
7629
|
() => s.value.length,
|
|
7630
7630
|
() => _(s.value[s.value.length - 1]._id, !0)
|
|
7631
7631
|
), (v, h) => {
|
|
7632
|
-
const k = K("fm-switch"),
|
|
7632
|
+
const k = K("fm-switch"), O = K("fm-radio"), A = K("fm-radio-group"), T = K("fm-button"), y = K("fm-checkbox");
|
|
7633
7633
|
return U(), J(ut, {
|
|
7634
7634
|
title: b(a)("menu.product.form.print.title")
|
|
7635
7635
|
}, {
|
|
@@ -7643,7 +7643,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7643
7643
|
default: W(() => {
|
|
7644
7644
|
var S;
|
|
7645
7645
|
return [
|
|
7646
|
-
|
|
7646
|
+
R(k, {
|
|
7647
7647
|
"model-value": !((S = v.form.print) != null && S.toRoot),
|
|
7648
7648
|
label: b(a)("menu.product.form.print.config.group_parent.label"),
|
|
7649
7649
|
"label-placement": "right",
|
|
@@ -7654,14 +7654,14 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7654
7654
|
}),
|
|
7655
7655
|
_: 1
|
|
7656
7656
|
}, 8, ["label"])) : se("", !0),
|
|
7657
|
-
|
|
7657
|
+
R(A, {
|
|
7658
7658
|
label: b(a)("menu.product.form.print.kds.label"),
|
|
7659
7659
|
"model-value": ((x = v.form.print) == null ? void 0 : x.sequential) ?? !1,
|
|
7660
7660
|
"onUpdate:modelValue": h[1] || (h[1] = (S) => p(S))
|
|
7661
7661
|
}, {
|
|
7662
7662
|
default: W(() => [
|
|
7663
7663
|
B("div", pd, [
|
|
7664
|
-
(U(!0), re(Ve, null, rt(w.value, (S, I) => (U(), J(
|
|
7664
|
+
(U(!0), re(Ve, null, rt(w.value, (S, I) => (U(), J(O, {
|
|
7665
7665
|
key: I,
|
|
7666
7666
|
label: S.label,
|
|
7667
7667
|
sublabel: S.description,
|
|
@@ -7671,7 +7671,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7671
7671
|
]),
|
|
7672
7672
|
_: 1
|
|
7673
7673
|
}, 8, ["label", "model-value"]),
|
|
7674
|
-
|
|
7674
|
+
R(bt, {
|
|
7675
7675
|
label: b(a)("menu.product.form.print.routes.label")
|
|
7676
7676
|
}, {
|
|
7677
7677
|
default: W(() => [
|
|
@@ -7694,11 +7694,11 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7694
7694
|
class: "handle",
|
|
7695
7695
|
"prepend-icon": "drag_handle",
|
|
7696
7696
|
variant: "tertiary",
|
|
7697
|
-
onClick: h[2] || (h[2] =
|
|
7697
|
+
onClick: h[2] || (h[2] = On(() => {
|
|
7698
7698
|
}, ["stop"]))
|
|
7699
7699
|
}, null, 8, ["disabled"])) : se("", !0)
|
|
7700
7700
|
]),
|
|
7701
|
-
|
|
7701
|
+
R(y, {
|
|
7702
7702
|
id: S,
|
|
7703
7703
|
"data-checked": (P = (M = n.form.print) == null ? void 0 : M.department) == null ? void 0 : P.includes(S),
|
|
7704
7704
|
label: d.value[S],
|
|
@@ -7712,11 +7712,11 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7712
7712
|
}),
|
|
7713
7713
|
_: 1
|
|
7714
7714
|
}, 8, ["item-key", "model-value"])) : se("", !0),
|
|
7715
|
-
|
|
7715
|
+
R(b(md), { "apply-product": !1 }, {
|
|
7716
7716
|
default: W(({ trigger: S }) => [
|
|
7717
7717
|
B("div", gd, [
|
|
7718
|
-
|
|
7719
|
-
variant: b(
|
|
7718
|
+
R(T, {
|
|
7719
|
+
variant: b(Rt).Secondary,
|
|
7720
7720
|
label: b(a)("menu.product.form.print.routes.add"),
|
|
7721
7721
|
"prepend-icon": "add",
|
|
7722
7722
|
onClick: S
|
|
@@ -7801,7 +7801,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7801
7801
|
setup(e, {
|
|
7802
7802
|
emit: t
|
|
7803
7803
|
}) {
|
|
7804
|
-
const n = e, i = Me(), a = V(() => i.rules.item), o =
|
|
7804
|
+
const n = e, i = Me(), a = V(() => i.rules.item), o = Ot(kt(Qe())), {
|
|
7805
7805
|
t: r
|
|
7806
7806
|
} = ke(), l = t, {
|
|
7807
7807
|
hasVariant: s,
|
|
@@ -7870,7 +7870,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7870
7870
|
title: b(r)("menu.product.form.takeaway.title"),
|
|
7871
7871
|
"sub-title": b(r)("menu.product.form.takeaway.subtitle")
|
|
7872
7872
|
}, {
|
|
7873
|
-
default: W(() => [
|
|
7873
|
+
default: W(() => [R(E, {
|
|
7874
7874
|
columnDefs: d.value,
|
|
7875
7875
|
"page-size": b(u).length,
|
|
7876
7876
|
"row-data": b(u),
|
|
@@ -7886,7 +7886,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7886
7886
|
}, wd = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Ed = { class: "flex justify-between pb-16" }, Sd = { class: "flex gap-8" }, kd = {
|
|
7887
7887
|
key: 1,
|
|
7888
7888
|
class: "flex flex-col items-center space-y-16"
|
|
7889
|
-
},
|
|
7889
|
+
}, Od = { class: "flex flex-col items-center space-y-4 w-full" }, Rd = { class: "fm-typo-en-title-sm-600" }, Cd = { class: "text-fm-color-typo-secondary" }, Ad = /* @__PURE__ */ ge({
|
|
7890
7890
|
__name: "SelectVariantDialog",
|
|
7891
7891
|
props: {
|
|
7892
7892
|
selectedVariants: {}
|
|
@@ -7903,7 +7903,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7903
7903
|
const p = K("FmSearch"), E = K("FmCheckbox"), _ = K("FmButton");
|
|
7904
7904
|
return l.value.length > 0 ? (U(), re("div", yd, [
|
|
7905
7905
|
B("div", null, [
|
|
7906
|
-
|
|
7906
|
+
R(p, {
|
|
7907
7907
|
autofocus: "",
|
|
7908
7908
|
modelValue: u.value,
|
|
7909
7909
|
"onUpdate:modelValue": c[0] || (c[0] = (w) => u.value = w),
|
|
@@ -7915,7 +7915,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7915
7915
|
(U(!0), re(Ve, null, rt(l.value, (w) => (U(), re("div", {
|
|
7916
7916
|
key: w.value
|
|
7917
7917
|
}, [
|
|
7918
|
-
Xt(
|
|
7918
|
+
Xt(R(E, {
|
|
7919
7919
|
modelValue: s.value,
|
|
7920
7920
|
"onUpdate:modelValue": [
|
|
7921
7921
|
c[1] || (c[1] = (v) => s.value = v),
|
|
@@ -7930,7 +7930,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7930
7930
|
])
|
|
7931
7931
|
]),
|
|
7932
7932
|
B("div", Ed, [
|
|
7933
|
-
|
|
7933
|
+
R(b(Ri), null, {
|
|
7934
7934
|
default: W(({ trigger: w }) => [
|
|
7935
7935
|
b(a).rules.item.variant ? (U(), J(_, {
|
|
7936
7936
|
key: 0,
|
|
@@ -7943,25 +7943,25 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7943
7943
|
_: 1
|
|
7944
7944
|
}),
|
|
7945
7945
|
B("div", Sd, [
|
|
7946
|
-
|
|
7946
|
+
R(_, {
|
|
7947
7947
|
label: b(o)("menu.common.actions.cancel"),
|
|
7948
7948
|
variant: "tertiary",
|
|
7949
7949
|
onClick: c[3] || (c[3] = (w) => b(t).close())
|
|
7950
7950
|
}, null, 8, ["label"]),
|
|
7951
|
-
|
|
7951
|
+
R(_, {
|
|
7952
7952
|
label: b(o)("menu.common.actions.confirm"),
|
|
7953
7953
|
onClick: c[4] || (c[4] = (w) => m())
|
|
7954
7954
|
}, null, 8, ["label"])
|
|
7955
7955
|
])
|
|
7956
7956
|
])
|
|
7957
7957
|
])) : (U(), re("div", kd, [
|
|
7958
|
-
B("div",
|
|
7959
|
-
B("p",
|
|
7958
|
+
B("div", Od, [
|
|
7959
|
+
B("p", Rd, Ee(b(o)("menu.common.empty.no_variant.title")), 1),
|
|
7960
7960
|
B("p", Cd, Ee(b(o)("menu.common.empty.no_variant.subtitle")), 1)
|
|
7961
7961
|
]),
|
|
7962
|
-
|
|
7962
|
+
R(b(Ri), null, {
|
|
7963
7963
|
default: W(({ trigger: w }) => [
|
|
7964
|
-
|
|
7964
|
+
R(_, {
|
|
7965
7965
|
label: b(o)("menu.variant.add"),
|
|
7966
7966
|
icon: "add",
|
|
7967
7967
|
onClick: (v) => w()
|
|
@@ -8116,7 +8116,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8116
8116
|
}
|
|
8117
8117
|
c("replace:form", a.initDynamicGroupItem(M));
|
|
8118
8118
|
}
|
|
8119
|
-
async function
|
|
8119
|
+
async function O(S, I, N) {
|
|
8120
8120
|
const M = at.clone(n.form);
|
|
8121
8121
|
M.variant.variantCombinations[S][I] = N, p([{
|
|
8122
8122
|
key: "variant",
|
|
@@ -8138,11 +8138,11 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8138
8138
|
cell: (S) => {
|
|
8139
8139
|
var z, D;
|
|
8140
8140
|
const I = S.getValue(), P = ((z = S.row.original.fallback) == null ? void 0 : z.code) ?? n.form.code ?? ((D = n.fallback) == null ? void 0 : D.code);
|
|
8141
|
-
return
|
|
8141
|
+
return R(Be.FmTextField, {
|
|
8142
8142
|
modelValue: I,
|
|
8143
8143
|
placeholder: P || l("menu.product.form.variant.placeholders.no_code"),
|
|
8144
8144
|
"onUpdate:model-value": (C) => {
|
|
8145
|
-
|
|
8145
|
+
O(S.row.index, "code", la(C, !0));
|
|
8146
8146
|
}
|
|
8147
8147
|
}, null);
|
|
8148
8148
|
}
|
|
@@ -8153,14 +8153,14 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8153
8153
|
cell: (S) => {
|
|
8154
8154
|
var P, z;
|
|
8155
8155
|
const I = S.getValue(), M = (P = S.row.original.fallback) == null ? void 0 : P.orderFrom;
|
|
8156
|
-
return
|
|
8156
|
+
return R(Ei, {
|
|
8157
8157
|
modelValue: I,
|
|
8158
8158
|
fallback: n.form.orderFrom ?? M ?? ((z = n.fallback) == null ? void 0 : z.orderFrom),
|
|
8159
8159
|
disable: !s.value.orderFrom,
|
|
8160
8160
|
required: s.value.orderFrom && s.value.orderFromActiveOnly,
|
|
8161
8161
|
editActiveOnly: s.value.orderFromActiveOnly || !1,
|
|
8162
8162
|
"onUpdate:model-value": (D) => {
|
|
8163
|
-
|
|
8163
|
+
O(S.row.index, "orderFrom", D);
|
|
8164
8164
|
},
|
|
8165
8165
|
label: "",
|
|
8166
8166
|
defaultLabel: "Follow general"
|
|
@@ -8174,22 +8174,22 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8174
8174
|
cell: (S) => {
|
|
8175
8175
|
var z, D, C;
|
|
8176
8176
|
const I = S.getValue(), N = S.row.original, P = ((z = N.fallback) == null ? void 0 : z.price) ?? n.form.price ?? ((D = n.fallback) == null ? void 0 : D.price);
|
|
8177
|
-
return
|
|
8177
|
+
return R("div", {
|
|
8178
8178
|
class: "flex items-center gap-8"
|
|
8179
|
-
}, [
|
|
8179
|
+
}, [R(Ft, {
|
|
8180
8180
|
disable: A.value.length > 0 && i.currentCatalog && !i.currentScheduler,
|
|
8181
8181
|
placeholder: P ? Gt(P) : void 0,
|
|
8182
8182
|
modelValue: I,
|
|
8183
8183
|
min: 0,
|
|
8184
8184
|
"onUpdate:model-value": ($) => {
|
|
8185
|
-
|
|
8185
|
+
O(S.row.index, "price", $);
|
|
8186
8186
|
},
|
|
8187
8187
|
nullable: !0,
|
|
8188
8188
|
showCurrency: !1
|
|
8189
|
-
}, null), i.isV4 && !n.isOverride &&
|
|
8189
|
+
}, null), i.isV4 && !n.isOverride && R(da, {
|
|
8190
8190
|
"price-tiers": N.priceTiers,
|
|
8191
8191
|
fallback: (C = N.fallback) == null ? void 0 : C.priceTiers,
|
|
8192
|
-
"onUpdate:price-tiers": ($) =>
|
|
8192
|
+
"onUpdate:price-tiers": ($) => O(S.row.index, "priceTiers", $)
|
|
8193
8193
|
}, null)]);
|
|
8194
8194
|
}
|
|
8195
8195
|
}, {
|
|
@@ -8199,12 +8199,12 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8199
8199
|
cell: (S) => {
|
|
8200
8200
|
var z, D, C;
|
|
8201
8201
|
const I = S.getValue(), N = S.row.original, P = ((z = N.fallback) == null ? void 0 : z.minPrice) ?? n.form.minPrice ?? ((D = n.fallback) == null ? void 0 : D.minPrice);
|
|
8202
|
-
return
|
|
8202
|
+
return R(Ft, {
|
|
8203
8203
|
placeholder: P ? Gt(P) : void 0,
|
|
8204
8204
|
modelValue: I,
|
|
8205
8205
|
max: Ge.Dinero.fromFdoDinero(N.price ?? ((C = N.fallback) == null ? void 0 : C.price) ?? Ge.Dinero.zero().toObject()).toUnit(),
|
|
8206
8206
|
"onUpdate:model-value": ($) => {
|
|
8207
|
-
|
|
8207
|
+
O(S.row.index, "minPrice", $);
|
|
8208
8208
|
},
|
|
8209
8209
|
nullable: !0,
|
|
8210
8210
|
showCurrency: !1
|
|
@@ -8233,13 +8233,13 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8233
8233
|
}, null, 8, ["label"])) : se("", !0)]),
|
|
8234
8234
|
default: W(() => {
|
|
8235
8235
|
var D;
|
|
8236
|
-
return [B("div", Id, [
|
|
8236
|
+
return [B("div", Id, [R(P, {
|
|
8237
8237
|
"model-value": (D = S.form.variant) == null ? void 0 : D.variantGroupIds,
|
|
8238
8238
|
rules: [x]
|
|
8239
8239
|
}, {
|
|
8240
8240
|
default: W(() => {
|
|
8241
8241
|
var C;
|
|
8242
|
-
return [
|
|
8242
|
+
return [R(b(ko), {
|
|
8243
8243
|
"model-value": ((C = S.form.variant) == null ? void 0 : C.variantGroupIds) ?? [],
|
|
8244
8244
|
class: "space-y-16",
|
|
8245
8245
|
group: "variants",
|
|
@@ -8251,14 +8251,14 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8251
8251
|
element: $
|
|
8252
8252
|
}) => {
|
|
8253
8253
|
var le;
|
|
8254
|
-
return [B("div", Td, [
|
|
8255
|
-
variant: b(
|
|
8254
|
+
return [B("div", Td, [R(N, {
|
|
8255
|
+
variant: b(Rt).Tertiary,
|
|
8256
8256
|
class: "handle",
|
|
8257
8257
|
"prepend-icon": "drag_handle"
|
|
8258
|
-
}, null, 8, ["variant"]), B("div", Md, [B("p", Dd, Ee((le = d.value[$]) == null ? void 0 : le.name), 1),
|
|
8258
|
+
}, null, 8, ["variant"]), B("div", Md, [B("p", Dd, Ee((le = d.value[$]) == null ? void 0 : le.name), 1), R(M, {
|
|
8259
8259
|
class: "cursor-pointer",
|
|
8260
8260
|
name: "close",
|
|
8261
|
-
onClick:
|
|
8261
|
+
onClick: On((ce) => {
|
|
8262
8262
|
var we;
|
|
8263
8263
|
return k(((we = S.form.variant) == null ? void 0 : we.variantGroupIds.filter((G) => G !== $)) ?? []);
|
|
8264
8264
|
}, ["stop"])
|
|
@@ -8268,7 +8268,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8268
8268
|
}, 8, ["model-value"])];
|
|
8269
8269
|
}),
|
|
8270
8270
|
_: 1
|
|
8271
|
-
}, 8, ["model-value", "rules"]),
|
|
8271
|
+
}, 8, ["model-value", "rules"]), R(ua, null, {
|
|
8272
8272
|
default: W(() => [h.value.length ? (U(), J(z, {
|
|
8273
8273
|
key: 0,
|
|
8274
8274
|
class: "w-full",
|
|
@@ -8377,7 +8377,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8377
8377
|
[f]: g
|
|
8378
8378
|
};
|
|
8379
8379
|
};
|
|
8380
|
-
async function
|
|
8380
|
+
async function O() {
|
|
8381
8381
|
var f, g;
|
|
8382
8382
|
c.value = p.value._id && A.value ? (await Ya(
|
|
8383
8383
|
a.mergedMenu,
|
|
@@ -8558,7 +8558,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8558
8558
|
Le(() => {
|
|
8559
8559
|
var f;
|
|
8560
8560
|
return (f = p.value.price) == null ? void 0 : f.amount;
|
|
8561
|
-
},
|
|
8561
|
+
}, O, { deep: !0 }), Le(
|
|
8562
8562
|
() => m.value,
|
|
8563
8563
|
(f) => {
|
|
8564
8564
|
f && (p.value = n.initialForm ? be(n.initialForm) : {
|
|
@@ -8568,7 +8568,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8568
8568
|
}
|
|
8569
8569
|
), $t(() => {
|
|
8570
8570
|
var f, g;
|
|
8571
|
-
|
|
8571
|
+
O();
|
|
8572
8572
|
try {
|
|
8573
8573
|
We.startSession({
|
|
8574
8574
|
userId: ((f = o.sessionUser.value) == null ? void 0 : f.id) || "",
|
|
@@ -8611,10 +8611,10 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8611
8611
|
}
|
|
8612
8612
|
const { isAtMost: je } = _o(), Lt = oe(null), qt = Ga(Lt);
|
|
8613
8613
|
return (f, g) => (U(), re(Ve, null, [
|
|
8614
|
-
Ce(f.$slots, "trigger", ka(
|
|
8614
|
+
Ce(f.$slots, "trigger", ka(Oa({
|
|
8615
8615
|
trigger: d
|
|
8616
8616
|
}))),
|
|
8617
|
-
|
|
8617
|
+
R(Va, {
|
|
8618
8618
|
title: l.value,
|
|
8619
8619
|
show: m.value,
|
|
8620
8620
|
"primary-action": {
|
|
@@ -8643,7 +8643,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8643
8643
|
b(je)("sm") ? se("", !0) : (U(), J(Ci, {
|
|
8644
8644
|
key: 0,
|
|
8645
8645
|
class: "fixed",
|
|
8646
|
-
style:
|
|
8646
|
+
style: Ra({
|
|
8647
8647
|
top: "85px",
|
|
8648
8648
|
left: b(qt).right + "px"
|
|
8649
8649
|
}),
|
|
@@ -8662,8 +8662,8 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8662
8662
|
"linked-status": E.value,
|
|
8663
8663
|
"onUpdate:catalogAndScheduler": w
|
|
8664
8664
|
}, null, 8, ["linked-status"])) : se("", !0),
|
|
8665
|
-
|
|
8666
|
-
|
|
8665
|
+
R(za, { "menu-store": b(a) }, null, 8, ["menu-store"]),
|
|
8666
|
+
R(Tt, {
|
|
8667
8667
|
toggle: N.value,
|
|
8668
8668
|
"onUpdate:toggle": [
|
|
8669
8669
|
g[1] || (g[1] = (X) => N.value = X),
|
|
@@ -8674,7 +8674,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8674
8674
|
title: b(r)("menu.product.form.sections.general.title")
|
|
8675
8675
|
}, {
|
|
8676
8676
|
default: W(() => [
|
|
8677
|
-
|
|
8677
|
+
R(tc, {
|
|
8678
8678
|
fallback: c.value,
|
|
8679
8679
|
form: p.value,
|
|
8680
8680
|
"is-addon": T.value,
|
|
@@ -8695,7 +8695,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8695
8695
|
"sub-title": b(r)("menu.product.form.sections.tagging.subtitle")
|
|
8696
8696
|
}, {
|
|
8697
8697
|
default: W(() => [
|
|
8698
|
-
|
|
8698
|
+
R(b(vo), {
|
|
8699
8699
|
entity: "item",
|
|
8700
8700
|
"model-value": p.value.customAttributes || {},
|
|
8701
8701
|
"onUpdate:modelValue": g[3] || (g[3] = (X) => k("customAttributes", X)),
|
|
@@ -8705,7 +8705,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8705
8705
|
_: 1
|
|
8706
8706
|
}, 8, ["title", "sub-title"])) : se("", !0),
|
|
8707
8707
|
y.value ? (U(), re("div", Ld)) : se("", !0),
|
|
8708
|
-
|
|
8708
|
+
R(Tt, {
|
|
8709
8709
|
toggle: z.value,
|
|
8710
8710
|
"onUpdate:toggle": [
|
|
8711
8711
|
g[4] || (g[4] = (X) => z.value = X),
|
|
@@ -8716,7 +8716,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8716
8716
|
title: b(r)("menu.product.form.sections.price.title")
|
|
8717
8717
|
}, {
|
|
8718
8718
|
default: W(() => [
|
|
8719
|
-
|
|
8719
|
+
R(sd, {
|
|
8720
8720
|
fallback: c.value,
|
|
8721
8721
|
form: p.value,
|
|
8722
8722
|
"is-addon": T.value,
|
|
@@ -8739,7 +8739,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8739
8739
|
title: "Update print"
|
|
8740
8740
|
}, {
|
|
8741
8741
|
default: W(() => [
|
|
8742
|
-
|
|
8742
|
+
R(vd, {
|
|
8743
8743
|
fallback: c.value,
|
|
8744
8744
|
form: p.value,
|
|
8745
8745
|
"full-combinations": v.value,
|
|
@@ -8752,7 +8752,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8752
8752
|
_: 1
|
|
8753
8753
|
}, 8, ["toggle"])) : se("", !0),
|
|
8754
8754
|
A.value ? se("", !0) : (U(), re("div", Ud)),
|
|
8755
|
-
|
|
8755
|
+
R(Tt, {
|
|
8756
8756
|
toggle: C.value,
|
|
8757
8757
|
"onUpdate:toggle": [
|
|
8758
8758
|
g[10] || (g[10] = (X) => C.value = X),
|
|
@@ -8763,7 +8763,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8763
8763
|
title: b(r)("menu.product.form.sections.variant.title")
|
|
8764
8764
|
}, {
|
|
8765
8765
|
default: W(() => [
|
|
8766
|
-
|
|
8766
|
+
R(Fd, {
|
|
8767
8767
|
fallback: c.value,
|
|
8768
8768
|
form: p.value,
|
|
8769
8769
|
"full-combinations": v.value,
|
|
@@ -8788,7 +8788,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8788
8788
|
title: "Update group"
|
|
8789
8789
|
}, {
|
|
8790
8790
|
default: W(() => [
|
|
8791
|
-
|
|
8791
|
+
R(Wc, {
|
|
8792
8792
|
fallback: c.value,
|
|
8793
8793
|
form: p.value,
|
|
8794
8794
|
"full-combinations": v.value,
|
|
@@ -8813,7 +8813,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8813
8813
|
title: b(r)("menu.product.form.sections.inventory.title")
|
|
8814
8814
|
}, {
|
|
8815
8815
|
default: W(() => [
|
|
8816
|
-
|
|
8816
|
+
R(Kc, {
|
|
8817
8817
|
fallback: c.value,
|
|
8818
8818
|
form: p.value,
|
|
8819
8819
|
"full-combinations": v.value,
|
|
@@ -8838,7 +8838,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8838
8838
|
title: b(r)("menu.product.form.sections.takeaway.title")
|
|
8839
8839
|
}, {
|
|
8840
8840
|
default: W(() => [
|
|
8841
|
-
|
|
8841
|
+
R(bd, {
|
|
8842
8842
|
fallback: c.value,
|
|
8843
8843
|
form: p.value,
|
|
8844
8844
|
"full-combinations": v.value,
|
|
@@ -8864,7 +8864,7 @@ function pa(e, t) {
|
|
|
8864
8864
|
var o, r, l, s;
|
|
8865
8865
|
const n = (o = t.groups) == null ? void 0 : o.reduce((u, m) => {
|
|
8866
8866
|
const d = e.groups.find((p) => p._id === m._id);
|
|
8867
|
-
return
|
|
8867
|
+
return Rn(e.items, d.items) === q.F_ADDON_GROUP_TYPE.enum.DYNAMIC && u.push(d), u;
|
|
8868
8868
|
}, []);
|
|
8869
8869
|
if (!(n != null && n.length)) return t;
|
|
8870
8870
|
const i = n.map((u) => u._id);
|
|
@@ -8958,7 +8958,7 @@ function jd(e, t) {
|
|
|
8958
8958
|
};
|
|
8959
8959
|
}
|
|
8960
8960
|
const Si = mo("item-manager", () => {
|
|
8961
|
-
const e = Me(), t = Qe(), n = lt(), i = kt(t), a =
|
|
8961
|
+
const e = Me(), t = Qe(), n = lt(), i = kt(t), a = Ot(i), o = an(), { t: r } = ke(), l = (y) => {
|
|
8962
8962
|
if (!o) throw new Error("No current instance found");
|
|
8963
8963
|
const { container: x } = La(Bd, o, {
|
|
8964
8964
|
...y,
|
|
@@ -9137,7 +9137,7 @@ const Si = mo("item-manager", () => {
|
|
|
9137
9137
|
e.currentScheduler ? await _(y) : await w(y)
|
|
9138
9138
|
);
|
|
9139
9139
|
}
|
|
9140
|
-
function
|
|
9140
|
+
function O(y) {
|
|
9141
9141
|
const { updateMenu: x } = a, S = y.length > 1 ? `${y.length} products` : y[0].name;
|
|
9142
9142
|
n.open({
|
|
9143
9143
|
title: r("menu.common.dialog.remove.product.title"),
|
|
@@ -9145,7 +9145,7 @@ const Si = mo("item-manager", () => {
|
|
|
9145
9145
|
primaryActions: {
|
|
9146
9146
|
text: r("menu.common.actions.remove"),
|
|
9147
9147
|
close: !0,
|
|
9148
|
-
variant:
|
|
9148
|
+
variant: Rt.Destructive
|
|
9149
9149
|
},
|
|
9150
9150
|
secondaryActions: {
|
|
9151
9151
|
text: r("menu.common.actions.cancel"),
|
|
@@ -9180,7 +9180,7 @@ const Si = mo("item-manager", () => {
|
|
|
9180
9180
|
e,
|
|
9181
9181
|
a.updateMenu,
|
|
9182
9182
|
n
|
|
9183
|
-
).unlinkProduct(y.map((x) => x._id)) :
|
|
9183
|
+
).unlinkProduct(y.map((x) => x._id)) : O(y);
|
|
9184
9184
|
}
|
|
9185
9185
|
async function T(y) {
|
|
9186
9186
|
const { updateMenu: x } = a;
|
|
@@ -9207,7 +9207,7 @@ export {
|
|
|
9207
9207
|
Ul as C,
|
|
9208
9208
|
cc as F,
|
|
9209
9209
|
Fr as I,
|
|
9210
|
-
|
|
9210
|
+
Ro as M,
|
|
9211
9211
|
md as P,
|
|
9212
9212
|
We as R,
|
|
9213
9213
|
$u as S,
|
|
@@ -9220,10 +9220,10 @@ export {
|
|
|
9220
9220
|
ci as e,
|
|
9221
9221
|
ra as f,
|
|
9222
9222
|
Wd as g,
|
|
9223
|
-
|
|
9223
|
+
Oc as h,
|
|
9224
9224
|
Sm as i,
|
|
9225
|
-
|
|
9226
|
-
|
|
9225
|
+
Oo as j,
|
|
9226
|
+
Rn as k,
|
|
9227
9227
|
pa as l,
|
|
9228
9228
|
Co as m,
|
|
9229
9229
|
la as n,
|