@feedmepos/mf-menu 0.31.18-beta.1 → 0.31.18-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BK1uq2xG.js → App-CA9Sl2_e.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BxmQjSQz.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DXC06G_p.js} +2 -2
- package/dist/{Catalog-B-xQdHMy.js → Catalog-DO0Z3SSz.js} +5 -5
- package/dist/{Category-C42tTiSI.js → Category-B1kXrXpy.js} +5 -5
- package/dist/{Category-CzRNYRBk.js → Category-DTh_5WI5.js} +4 -4
- package/dist/{CookingGuide-BKKGd2m5.js → CookingGuide-eHhSbisd.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-hepA5znK.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DKGEMS0s.js} +1 -1
- package/dist/{Group-PXIbHEqa.js → Group-Bd61FXOa.js} +3 -3
- package/dist/{Group-u5OpTO2e.js → Group-Dh5RNyxf.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CXOSqz-O.js → Group.vue_vue_type_script_setup_true_lang-p3ZeU8Ad.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B-f0vrLT.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CuR3HOn4.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C_Gtdb_p.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BjwTTR43.js} +6 -6
- package/dist/{Ingredient-CvS2iQC0.js → Ingredient-BLfFgX0g.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-D8f7V-nV.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C2f4oQV_.js} +2 -2
- package/dist/{LinkProductSideSheet-Bs0cDAmD.js → LinkProductSideSheet-DPIxXikN.js} +1 -1
- package/dist/{MenuSetting-D14CuFUI.js → MenuSetting-UVUYswl1.js} +4 -4
- package/dist/{PrintRoute-B_MpXEGJ.js → PrintRoute-B4WpCa5j.js} +3 -3
- package/dist/{Product-BUhtfcVV.js → Product-DMqUEuUP.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DZaRt0yD.js → Product.vue_vue_type_script_setup_true_lang-DvqDdaNh.js} +11 -11
- package/dist/{ProductInternalTools-B0pVP45m.js → ProductInternalTools-BjQILwqA.js} +6 -6
- package/dist/{Products-DpmqGz85.js → Products-BR612MbF.js} +10 -10
- package/dist/{Publish-Cs2wT42D.js → Publish-HQprte7i.js} +3 -3
- package/dist/{Recipe-DE6Rz4PD.js → Recipe-CW8DpUib.js} +4 -4
- package/dist/{Scheduler-BDlNMSfq.js → Scheduler-jwxuWWBc.js} +3 -3
- package/dist/{ServingSequence-CVcTpRBr.js → ServingSequence-DILOiy8d.js} +3 -3
- package/dist/{Setting-BvCbaGoy.js → Setting-DtHcu5eE.js} +4 -4
- package/dist/{Subcategory-0PT6iTXc.js → Subcategory-BuBhmpHK.js} +4 -4
- package/dist/{Takeaway-ffu3gDN_.js → Takeaway-CFH-2jGX.js} +1 -1
- package/dist/{Takeaway-uycmh73x.js → Takeaway-Dadg_p4p.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-B1NonCQj.js → Takeaway.vue_vue_type_script_setup_true_lang-Ccm340Do.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CSBBIEo1.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BO_RY7Nb.js} +14 -14
- package/dist/{Unit-Cr8NUeIj.js → Unit-BhC7HKdj.js} +2 -2
- package/dist/{Variant-Cl5K2I1w.js → Variant-op1jI8lu.js} +3 -3
- package/dist/{_id_-uvsVLhRr.js → _id_-C8aH00wO.js} +9 -9
- package/dist/{app-Bpn2-8Jh.js → app-CgdrcHjA.js} +24 -24
- package/dist/{app-a5ZRhTRs.js → app-DTuhoxK_.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/fmtree/dragging.d.ts +1 -1
- package/dist/assets/{linked-status-GpfvtkNB.js → linked-status-DjuegQzl.js} +2 -2
- package/dist/assets/{override-menu-CgtNT3sx.js → override-menu-SwLrxhgz.js} +2 -2
- package/dist/assets/{validate-menu-BXl9NLMB.js → validate-menu-kf0hkaus.js} +2 -2
- package/dist/{catalog-B3QL91RG.js → catalog-C_ivwYaQ.js} +1 -1
- package/dist/{catalogSetting-CCyotDjQ.js → catalogSetting-DZueIrzX.js} +1 -1
- package/dist/{category-DhNK0OPE.js → category-B3iKQFQ-.js} +1 -1
- package/dist/{currency-BPexAUDS.js → currency-CA5FQbXi.js} +1 -1
- package/dist/{dayjs.min-CcunQozF.js → dayjs.min-B5JdMy-O.js} +1 -1
- package/dist/{index-DlDukgi9.js → index-BFdAL_N3.js} +3 -3
- package/dist/{index-grZbtR6x.js → index-g0Su2v11.js} +2 -2
- package/dist/{index-Bcba8Wma.js → index-jZfKRlag.js} +1 -1
- package/dist/{item-DexJlGaD.js → item-SVoStXDW.js} +390 -390
- package/dist/{jszip.min-By_xrC7F.js → jszip.min-DYjqumCW.js} +2 -2
- package/dist/{menu-X8Jq-xjN.js → menu-CTQtotYO.js} +1 -1
- package/dist/{menu-Ct96Z70I.js → menu-GZ7mL7Mu.js} +7 -7
- package/dist/{priceTier-BBA3A9E3.js → priceTier-D7hqwCP7.js} +1 -1
- package/dist/{scheduler-QlV4INCV.js → scheduler-sOWjTP9q.js} +3 -3
- package/dist/{subcategory-CcSeGS4T.js → subcategory-DzOnwchb.js} +39 -39
- package/dist/{toExcel-Cp4rog4P.js → toExcel-CXiBEHW2.js} +2 -2
- package/dist/{unit-D9aQSB59.js → unit-CejxJLsQ.js} +1 -1
- package/package.json +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { defineStore as mo } from "pinia";
|
|
2
|
-
import { createElementBlock as re, openBlock as U, createElementVNode as B, defineComponent as ve, resolveComponent as H, createBlock as Z, createVNode as
|
|
3
|
-
import { J as Ve, G as ee, V as
|
|
2
|
+
import { createElementBlock as re, openBlock as U, createElementVNode as B, defineComponent as ve, resolveComponent as H, createBlock as Z, createVNode as A, toDisplayString as ye, Fragment as Ue, renderList as at, h as De, ref as te, computed as z, watch as Fe, unref as b, renderSlot as Re, withCtx as G, createCommentVNode as se, Transition as ha, resolveDynamicComponent as wn, withDirectives as Xt, vShow as kn, mergeProps as po, withModifiers as Cn, createTextVNode as Gn, normalizeClass as He, getCurrentInstance as an, inject as ga, shallowRef as va, onMounted as $t, onUnmounted as _a, Text as ba, 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 Ca, normalizeStyle as Ra } from "vue";
|
|
3
|
+
import { J as Ve, G as ee, V as Aa, ai as Oa, Y as Ia, H as ge, A as qe, T as go, u as Te, z as $e, I as ot, B as kt, O as Ct, P as Ta, Q as Ma, R as Da, U as Pn, ab as Pa, M as Na, K as ki } from "./menu-GZ7mL7Mu.js";
|
|
4
4
|
import { useI18n as Se, useCoreStore as rn, CustomAttributesForm as vo } from "@feedmepos/mf-common";
|
|
5
|
-
import { useDialog as st, useSnackbar as Ze, components as Be, FmButtonColorThemeVariant as pt, FmButtonVariant as
|
|
6
|
-
import { C as ft } from "./catalog-
|
|
5
|
+
import { useDialog as st, useSnackbar as Ze, components as Be, FmButtonColorThemeVariant as pt, FmButtonVariant as Rt, useBreakpoints as _o, useDialogChild as bo } from "@feedmepos/ui-library";
|
|
6
|
+
import { C as ft } from "./catalog-C_ivwYaQ.js";
|
|
7
7
|
import { c as Fa } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
8
8
|
import { a as Ci, _ as yo } from "./tooltip-B5BiPMx9.js";
|
|
9
|
-
import { _ as
|
|
9
|
+
import { _ as At, L as La } from "./LinkProductSideSheet-DPIxXikN.js";
|
|
10
10
|
import { _ as lt, a as xa } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
11
|
-
import { s as Hn, F as Ua, _ as Va } from "./index-
|
|
12
|
-
import { I as za, u as $a } from "./app-
|
|
13
|
-
import { u as Ba } from "./app-
|
|
14
|
-
import { a as Ga, g as wo, d as Wa, c as Ha, b as ja, m as Ka } from "./subcategory-
|
|
11
|
+
import { s as Hn, F as Ua, _ as Va } from "./index-jZfKRlag.js";
|
|
12
|
+
import { I as za, u as $a } from "./app-CgdrcHjA.js";
|
|
13
|
+
import { u as Ba } from "./app-DTuhoxK_.js";
|
|
14
|
+
import { a as Ga, g as wo, d as Wa, c as Ha, b as ja, m as Ka } from "./subcategory-DzOnwchb.js";
|
|
15
15
|
import { _ as _t } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
16
|
-
import { u as Ya } from "./category-
|
|
16
|
+
import { u as Ya } from "./category-B3iKQFQ-.js";
|
|
17
17
|
import "@vue/devtools-api";
|
|
18
18
|
import { u as ui } from "./discardConfirm-BHni0LNu.js";
|
|
19
|
-
import { _ as Pt, l as jn, T as Xa } from "./index-
|
|
19
|
+
import { _ as Pt, l as jn, T as Xa } from "./index-BFdAL_N3.js";
|
|
20
20
|
import { useInventoryStore as Eo, InventoryBindingForm as qa, InventoryBindingSummary as Ja } from "@feedmepos/mf-inventory-portal";
|
|
21
21
|
import { c as sn } from "./check-C9mY6LiX.js";
|
|
22
22
|
import { c as Za } from "./object-DVUNCr7w.js";
|
|
23
|
-
import { f as Bt } from "./currency-
|
|
24
|
-
import { u as So } from "./priceTier-
|
|
23
|
+
import { f as Bt } from "./currency-CA5FQbXi.js";
|
|
24
|
+
import { u as So } from "./priceTier-D7hqwCP7.js";
|
|
25
25
|
import { u as Qa } from "./search-BAPEUu1R.js";
|
|
26
26
|
import { c as er } from "./string-DpfFixWH.js";
|
|
27
27
|
import { d as ko } from "./vuedraggable-CK8z7qA8.js";
|
|
28
|
-
import { _ as tr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
29
|
-
import { V as
|
|
28
|
+
import { _ as tr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DXC06G_p.js";
|
|
29
|
+
import { V as Ri } from "./index-g0Su2v11.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;
|
|
@@ -211,7 +211,7 @@ class _n {
|
|
|
211
211
|
const a = t.reduce((r, l) => {
|
|
212
212
|
const s = n.items.filter((u) => u._id == l) ?? [];
|
|
213
213
|
return r = r.concat(
|
|
214
|
-
|
|
214
|
+
Aa(l, s, (u) => ({
|
|
215
215
|
...u,
|
|
216
216
|
orderFrom: null
|
|
217
217
|
}))
|
|
@@ -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 ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC;
|
|
@@ -316,7 +316,7 @@ function Co(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 Ao {
|
|
|
391
391
|
name: go(Te().variants, ((O = E == null ? void 0 : E.variant) == null ? void 0 : O.variantGroupIds) || [])[p.combinationKey]
|
|
392
392
|
} : E, y = (w = o.find((k) => k._id === s._id)) == null ? void 0 : w.items.find((k) => k._id === p._id && k.combinationKey === p.combinationKey), g = !n && !p.combinationKey, v = (x = u.find(
|
|
393
393
|
(k) => k._id == p._id && k.combinationKey == p.combinationKey
|
|
394
|
-
)) == null ? void 0 : x.price, S = p.name ?? (y == null ? void 0 : y.name) ?? (_ == null ? void 0 : _.name) ?? "",
|
|
394
|
+
)) == null ? void 0 : x.price, S = p.name ?? (y == null ? void 0 : y.name) ?? (_ == null ? void 0 : _.name) ?? "", R = {
|
|
395
395
|
...p,
|
|
396
396
|
name: S,
|
|
397
397
|
code: _ == null ? void 0 : _.code,
|
|
@@ -402,8 +402,8 @@ class Ao {
|
|
|
402
402
|
fallbackOrder: _ == null ? void 0 : _.orderFrom,
|
|
403
403
|
priceTiers: p.priceTiers
|
|
404
404
|
};
|
|
405
|
-
return [...c,
|
|
406
|
-
}, []), d =
|
|
405
|
+
return [...c, R];
|
|
406
|
+
}, []), d = Rn(a, s.items);
|
|
407
407
|
return {
|
|
408
408
|
...s,
|
|
409
409
|
type: d,
|
|
@@ -493,7 +493,7 @@ class Ao {
|
|
|
493
493
|
return !!this.menuStore.state.currentCatalogId || !!this.menuStore.state.currentSchedulerId;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Ao(e) {
|
|
497
497
|
if (!e)
|
|
498
498
|
return [];
|
|
499
499
|
const t = [];
|
|
@@ -507,7 +507,7 @@ function ir(e, t) {
|
|
|
507
507
|
}
|
|
508
508
|
function or(e, t) {
|
|
509
509
|
const n = ge(e);
|
|
510
|
-
return
|
|
510
|
+
return Ao(t).forEach((o) => {
|
|
511
511
|
delete n[o];
|
|
512
512
|
}), (n.items ?? []).forEach((o) => {
|
|
513
513
|
const r = o.combinationKey ?? null;
|
|
@@ -525,10 +525,10 @@ function rr(e, t) {
|
|
|
525
525
|
B("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
|
|
526
526
|
]));
|
|
527
527
|
}
|
|
528
|
-
const sr = /* @__PURE__ */
|
|
528
|
+
const sr = /* @__PURE__ */ At(ar, [["render", rr]]), lr = {
|
|
529
529
|
key: 0,
|
|
530
530
|
class: "ml-40 w-[320px] fm-corner-radius-lg p-16 border border-fm-color-neutral-gray-200 space-y-4"
|
|
531
|
-
}, ur = { class: "fm-typo-en-title-sm-600" },
|
|
531
|
+
}, ur = { class: "fm-typo-en-title-sm-600" }, Ai = /* @__PURE__ */ ve({
|
|
532
532
|
__name: "Summary",
|
|
533
533
|
props: {
|
|
534
534
|
title: {},
|
|
@@ -554,7 +554,7 @@ const sr = /* @__PURE__ */ Rt(ar, [["render", rr]]), lr = {
|
|
|
554
554
|
const r = H("FmButton");
|
|
555
555
|
return t.variant === "full" ? (U(), re("div", lr, [
|
|
556
556
|
B("div", ur, ye(a.title), 1),
|
|
557
|
-
|
|
557
|
+
A(sr),
|
|
558
558
|
(U(!0), re(Ue, null, at(a.items, (l) => (U(), Z(Ci, {
|
|
559
559
|
key: l.name,
|
|
560
560
|
name: l.name,
|
|
@@ -626,7 +626,7 @@ const sr = /* @__PURE__ */ Rt(ar, [["render", rr]]), lr = {
|
|
|
626
626
|
]),
|
|
627
627
|
B("div", fr, [
|
|
628
628
|
B("div", hr, [
|
|
629
|
-
|
|
629
|
+
A(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 sr = /* @__PURE__ */ Rt(ar, [["render", rr]]), lr = {
|
|
|
634
634
|
}, null, 8, ["label", "items", "modelValue"])
|
|
635
635
|
]),
|
|
636
636
|
B("div", gr, [
|
|
637
|
-
|
|
637
|
+
A(E, {
|
|
638
638
|
label: b(a)("menu.common.labels.scheduler"),
|
|
639
639
|
items: m.value,
|
|
640
640
|
modelValue: s.value,
|
|
@@ -661,7 +661,7 @@ const sr = /* @__PURE__ */ Rt(ar, [["render", rr]]), lr = {
|
|
|
661
661
|
const n = t;
|
|
662
662
|
return (i, a) => {
|
|
663
663
|
const o = H("fm-switch"), r = H("fm-card");
|
|
664
|
-
return i.disabled ?
|
|
664
|
+
return i.disabled ? Re(i.$slots, "default", { key: 0 }, void 0, !0) : (U(), Z(r, {
|
|
665
665
|
key: 1,
|
|
666
666
|
class: "p-16 space-y-24",
|
|
667
667
|
variant: "outlined"
|
|
@@ -672,15 +672,15 @@ const sr = /* @__PURE__ */ Rt(ar, [["render", rr]]), lr = {
|
|
|
672
672
|
B("p", yr, ye(i.title), 1),
|
|
673
673
|
i.description ? (U(), re("p", wr, ye(i.description), 1)) : se("", !0)
|
|
674
674
|
]),
|
|
675
|
-
|
|
675
|
+
A(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
|
+
A(ha, { name: "expand" }, {
|
|
681
681
|
default: G(() => [
|
|
682
682
|
i.toggle ? (U(), re("div", Er, [
|
|
683
|
-
|
|
683
|
+
Re(i.$slots, "default", {}, void 0, !0)
|
|
684
684
|
])) : se("", !0)
|
|
685
685
|
]),
|
|
686
686
|
_: 3
|
|
@@ -690,8 +690,8 @@ const sr = /* @__PURE__ */ Rt(ar, [["render", rr]]), lr = {
|
|
|
690
690
|
}));
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
}), Tt = /* @__PURE__ */
|
|
694
|
-
var kr = { remy: "https://remy
|
|
693
|
+
}), Tt = /* @__PURE__ */ At(Sr, [["__scopeId", "data-v-e920f110"]]);
|
|
694
|
+
var kr = { remy: "https://remy.feedmeapi.com/v1" };
|
|
695
695
|
let Ge;
|
|
696
696
|
function Cr(e) {
|
|
697
697
|
const t = Ba(), n = za(e), i = z(() => {
|
|
@@ -721,14 +721,14 @@ function Em(e) {
|
|
|
721
721
|
url: kr.remy
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
|
-
const
|
|
724
|
+
const Rr = mo("menu-edit-state", {
|
|
725
725
|
state: () => ({
|
|
726
726
|
isUpdatingItem: !1,
|
|
727
727
|
storedCatalogId: null,
|
|
728
728
|
storedSchedulerId: null
|
|
729
729
|
})
|
|
730
730
|
});
|
|
731
|
-
async function
|
|
731
|
+
async function Ar(e) {
|
|
732
732
|
const { items: t, processor: n, batchSize: i = 5, batchDelay: a = 200, onProgress: o, progressMessage: r } = e, l = t.length, s = [];
|
|
733
733
|
for (let u = 0; u < t.length; u += i) {
|
|
734
734
|
const m = t.slice(u, u + i), d = u + 1, c = Math.min(u + i, t.length), p = `Processing items ${d}-${c}/${l}...`;
|
|
@@ -768,7 +768,7 @@ async function Ir(e, t = "image.jpg", n = "image/jpeg") {
|
|
|
768
768
|
return i ? new File([i.blob], t, { type: n }) : null;
|
|
769
769
|
}
|
|
770
770
|
async function Sm(e, t, n = {}) {
|
|
771
|
-
return
|
|
771
|
+
return Ar({
|
|
772
772
|
items: e,
|
|
773
773
|
processor: (i) => t(i.url, i.filename),
|
|
774
774
|
...n
|
|
@@ -777,10 +777,10 @@ async function Sm(e, t, n = {}) {
|
|
|
777
777
|
const Tr = {}, Mr = { class: "pl-32" };
|
|
778
778
|
function Dr(e, t) {
|
|
779
779
|
return U(), re("div", Mr, [
|
|
780
|
-
|
|
780
|
+
Re(e.$slots, "default")
|
|
781
781
|
]);
|
|
782
782
|
}
|
|
783
|
-
const Pr = /* @__PURE__ */
|
|
783
|
+
const Pr = /* @__PURE__ */ At(Tr, [["render", Dr]]);
|
|
784
784
|
function Oi(e, t) {
|
|
785
785
|
var n = Object.keys(e);
|
|
786
786
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1035,7 +1035,7 @@ mi.render = function(e, t, n, i, a, o) {
|
|
|
1035
1035
|
return o.onMouseOver && o.onMouseOver.apply(o, arguments);
|
|
1036
1036
|
}), onMouseleave: t[4] || (t[4] = function() {
|
|
1037
1037
|
return o.onMouseLeave && o.onMouseLeave.apply(o, arguments);
|
|
1038
|
-
}) }, [
|
|
1038
|
+
}) }, [Re(e.$slots, "default")], 34);
|
|
1039
1039
|
};
|
|
1040
1040
|
var Fn = Qe("vue-handler-wrapper"), Do = { name: "HandlerWrapper", components: { DraggableElement: mi }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
|
|
1041
1041
|
var e;
|
|
@@ -1047,7 +1047,7 @@ var Fn = Qe("vue-handler-wrapper"), Do = { name: "HandlerWrapper", components: {
|
|
|
1047
1047
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
1048
1048
|
Do.render = function(e, t, n, i, a, o) {
|
|
1049
1049
|
var r = H("DraggableElement");
|
|
1050
|
-
return U(), Z("div", { class: o.classes.root }, [
|
|
1050
|
+
return U(), Z("div", { class: o.classes.root }, [A(r, { class: o.classes.draggable, onDrag: t[1] || (t[1] = function(l) {
|
|
1051
1051
|
return e.$emit("drag", l);
|
|
1052
1052
|
}), onDragEnd: t[2] || (t[2] = function(l) {
|
|
1053
1053
|
return e.$emit("drag-end");
|
|
@@ -1056,7 +1056,7 @@ Do.render = function(e, t, n, i, a, o) {
|
|
|
1056
1056
|
}), onEnter: t[4] || (t[4] = function(l) {
|
|
1057
1057
|
return e.$emit("enter");
|
|
1058
1058
|
}) }, { default: G(function() {
|
|
1059
|
-
return [
|
|
1059
|
+
return [Re(e.$slots, "default")];
|
|
1060
1060
|
}), _: 3 }, 8, ["class"])], 2);
|
|
1061
1061
|
};
|
|
1062
1062
|
var Ur = Qe("vue-line-wrapper"), Po = { name: "LineWrapper", components: { DraggableElement: mi }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
|
|
@@ -1074,7 +1074,7 @@ Po.render = function(e, t, n, i, a, o) {
|
|
|
1074
1074
|
}), onEnter: t[4] || (t[4] = function(l) {
|
|
1075
1075
|
return e.$emit("enter");
|
|
1076
1076
|
}) }, { default: G(function() {
|
|
1077
|
-
return [
|
|
1077
|
+
return [Re(e.$slots, "default")];
|
|
1078
1078
|
}), _: 3 }, 8, ["class"]);
|
|
1079
1079
|
};
|
|
1080
1080
|
var it = ["left", "right", "top", "bottom"], Vr = ["left", "right"], zr = ["top", "bottom"], $r = ["left", "top"], Br = ["fill-area", "fit-area", "stencil", "none"], Di = { left: 0, top: 0, width: 0, height: 0 };
|
|
@@ -1102,7 +1102,7 @@ function Qt(e, t) {
|
|
|
1102
1102
|
function nt(e, t) {
|
|
1103
1103
|
return { left: e.left - t.left, top: e.top - t.top, width: e.width + t.left + t.right, height: e.height + t.top + t.bottom };
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function An(e) {
|
|
1106
1106
|
return { left: -e.left, top: -e.top };
|
|
1107
1107
|
}
|
|
1108
1108
|
function We(e, t) {
|
|
@@ -1151,7 +1151,7 @@ function On(e, t) {
|
|
|
1151
1151
|
function xe(e, t, n) {
|
|
1152
1152
|
n === void 0 && (n = !1);
|
|
1153
1153
|
var i = Ht(e, t);
|
|
1154
|
-
return We(e, n ?
|
|
1154
|
+
return We(e, n ? An(i) : i);
|
|
1155
1155
|
}
|
|
1156
1156
|
function qn(e) {
|
|
1157
1157
|
return { width: e.right !== void 0 && e.left !== void 0 ? e.right - e.left : 1 / 0, height: e.bottom !== void 0 && e.top !== void 0 ? e.bottom - e.top : 1 / 0 };
|
|
@@ -1236,7 +1236,7 @@ function Kr(e) {
|
|
|
1236
1236
|
var t = e.event, n = e.coordinates, i = e.visibleArea, a = e.getAreaRestrictions, o = ie({}, i), r = ie({}, n);
|
|
1237
1237
|
if (t.type === "setCoordinates") {
|
|
1238
1238
|
var l = Math.max(0, r.width - o.width), s = Math.max(0, r.height - o.height);
|
|
1239
|
-
l > s ? o = Xe(o, Math.min(r.width / o.width, Wt(o, a({ visibleArea: o, type: "resize" })))) : s > l && (o = Xe(o, Math.min(r.height / o.height, Wt(o, a({ visibleArea: o, type: "resize" }))))), o = xe(o = We(o,
|
|
1239
|
+
l > s ? o = Xe(o, Math.min(r.width / o.width, Wt(o, a({ visibleArea: o, type: "resize" })))) : s > l && (o = Xe(o, Math.min(r.height / o.height, Wt(o, a({ visibleArea: o, type: "resize" }))))), o = xe(o = We(o, An(Ht(r, rt(o)))), a({ visibleArea: o, type: "move" }));
|
|
1240
1240
|
}
|
|
1241
1241
|
return { visibleArea: o, coordinates: r };
|
|
1242
1242
|
}
|
|
@@ -1270,7 +1270,7 @@ function Zr(e) {
|
|
|
1270
1270
|
var _ = { stencil: { minimum: Math.max(a.minWidth ? a.minWidth / d.width : 0, a.minHeight ? a.minHeight / d.height : 0), maximum: Math.min(a.maxWidth ? a.maxWidth / d.width : 1 / 0, a.maxHeight ? a.maxHeight / d.height : 1 / 0, Wt(d, r)) }, area: { maximum: Wt(m, o({ visibleArea: m, type: "resize" })) } };
|
|
1271
1271
|
s.factor && E && (s.factor < 1 ? (p = Math.max(s.factor, _.stencil.minimum)) > 1 && (p = 1) : s.factor > 1 && (p = Math.min(s.factor, Math.min(_.area.maximum, _.stencil.maximum))) < 1 && (p = 1)), p && (m = Xe(m, p, s.center));
|
|
1272
1272
|
var y = n.left - i.left, g = i.width + i.left - (n.width + n.left), v = n.top - i.top, S = i.height + i.top - (n.height + n.top);
|
|
1273
|
-
return m = xe(m = We(m, Ht(m, { left: r.left !== void 0 ? r.left - y * p : void 0, top: r.top !== void 0 ? r.top - v * p : void 0, bottom: r.bottom !== void 0 ? r.bottom + S * p : void 0, right: r.right !== void 0 ? r.right + g * p : void 0 })), o({ visibleArea: m, type: "move" })), d.width = d.width * p, d.height = d.height * p, d.left = m.left + y * p, d.top = m.top + v * p, d = xe(d, In(rt(m), r)), s.factor && E && l && (s.factor > 1 ? c = Math.min(_.area.maximum, s.factor) / p : s.factor < 1 && (c = Math.max(d.height / m.height, d.width / m.width, s.factor / p)), c !== 1 && (m = We(m = xe(m = Xe(m, c, s.factor > 1 ? s.center : Le(d)), o({ visibleArea: m, type: "move" })),
|
|
1273
|
+
return m = xe(m = We(m, Ht(m, { left: r.left !== void 0 ? r.left - y * p : void 0, top: r.top !== void 0 ? r.top - v * p : void 0, bottom: r.bottom !== void 0 ? r.bottom + S * p : void 0, right: r.right !== void 0 ? r.right + g * p : void 0 })), o({ visibleArea: m, type: "move" })), d.width = d.width * p, d.height = d.height * p, d.left = m.left + y * p, d.top = m.top + v * p, d = xe(d, In(rt(m), r)), s.factor && E && l && (s.factor > 1 ? c = Math.min(_.area.maximum, s.factor) / p : s.factor < 1 && (c = Math.max(d.height / m.height, d.width / m.width, s.factor / p)), c !== 1 && (m = We(m = xe(m = Xe(m, c, s.factor > 1 ? s.center : Le(d)), o({ visibleArea: m, type: "move" })), An(Ht(d, rt(m)))))), { coordinates: d, visibleArea: m };
|
|
1274
1274
|
}
|
|
1275
1275
|
function Qr(e) {
|
|
1276
1276
|
var t = e.aspectRatio, n = e.getAreaRestrictions, i = e.coordinates, a = e.visibleArea, o = e.sizeRestrictions, r = e.positionRestrictions, l = e.imageSize, s = e.previousImageSize, u = e.angle, m = ie({}, i), d = ie({}, a), c = St(Le(ie({ left: 0, top: 0 }, s)), u);
|
|
@@ -1335,7 +1335,7 @@ var ts = Qe("vue-simple-handler"), ns = Qe("vue-simple-handler-wrapper"), pi = {
|
|
|
1335
1335
|
pi.render = function(e, t, n, i, a, o) {
|
|
1336
1336
|
var r = H("HandlerWrapper");
|
|
1337
1337
|
return U(), Z(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: G(function() {
|
|
1338
|
-
return [
|
|
1338
|
+
return [A("div", { class: o.classes.default }, null, 2)];
|
|
1339
1339
|
}), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
1340
1340
|
};
|
|
1341
1341
|
var is = Qe("vue-simple-line"), os = Qe("vue-simple-line-wrapper"), fi = { name: "SimpleLine", components: { LineWrapper: Po }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
@@ -1354,7 +1354,7 @@ var is = Qe("vue-simple-line"), os = Qe("vue-simple-line-wrapper"), fi = { name:
|
|
|
1354
1354
|
fi.render = function(e, t, n, i, a, o) {
|
|
1355
1355
|
var r = H("LineWrapper");
|
|
1356
1356
|
return U(), Z(r, { class: o.classes.wrapper, position: n.position, disabled: n.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: G(function() {
|
|
1357
|
-
return [
|
|
1357
|
+
return [A("div", { class: o.classes.root }, null, 2)];
|
|
1358
1358
|
}), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
1359
1359
|
};
|
|
1360
1360
|
var xn = Qe("vue-bounding-box"), as = ["east", "west", null], rs = ["south", "north", null], xo = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
|
|
@@ -1419,7 +1419,7 @@ var xn = Qe("vue-bounding-box"), as = ["east", "west", null], rs = ["south", "no
|
|
|
1419
1419
|
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 Lr(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 }));
|
|
1420
1420
|
} }, emits: ["resize", "resize-end"] };
|
|
1421
1421
|
xo.render = function(e, t, n, i, a, o) {
|
|
1422
|
-
return U(), Z("div", { ref: "box", class: o.classes.root, style: o.style }, [
|
|
1422
|
+
return U(), Z("div", { ref: "box", class: o.classes.root, style: o.style }, [Re(e.$slots, "default"), A("div", null, [(U(!0), Z(Ue, null, at(o.lineNodes, function(r) {
|
|
1423
1423
|
return U(), Z(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) {
|
|
1424
1424
|
return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
|
|
1425
1425
|
}, onDragEnd: t[1] || (t[1] = function(l) {
|
|
@@ -1476,7 +1476,7 @@ Uo.render = function(e, t, n, i, a, o) {
|
|
|
1476
1476
|
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
1477
1477
|
}), onMousedown: t[2] || (t[2] = function() {
|
|
1478
1478
|
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
1479
|
-
}) }, [
|
|
1479
|
+
}) }, [Re(e.$slots, "default")], 544);
|
|
1480
1480
|
};
|
|
1481
1481
|
function Un(e) {
|
|
1482
1482
|
var t, n;
|
|
@@ -1622,7 +1622,7 @@ zo.render = function(e, t, n, i, a, o) {
|
|
|
1622
1622
|
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
1623
1623
|
}), onWheel: t[3] || (t[3] = function() {
|
|
1624
1624
|
return o.onWheel && o.onWheel.apply(o, arguments);
|
|
1625
|
-
}) }, [
|
|
1625
|
+
}) }, [Re(e.$slots, "default")], 544);
|
|
1626
1626
|
};
|
|
1627
1627
|
var Zn = { components: { TransformableImage: zo }, props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 } }, emits: ["resize", "move"] };
|
|
1628
1628
|
Zn.render = function(e, t, n, i, a, o) {
|
|
@@ -1632,7 +1632,7 @@ Zn.render = function(e, t, n, i, a, o) {
|
|
|
1632
1632
|
}), onResize: t[2] || (t[2] = function(l) {
|
|
1633
1633
|
return e.$emit("resize", l);
|
|
1634
1634
|
}) }, { default: G(function() {
|
|
1635
|
-
return [
|
|
1635
|
+
return [Re(e.$slots, "default")];
|
|
1636
1636
|
}), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
|
|
1637
1637
|
};
|
|
1638
1638
|
var fn = Qe("vue-preview"), $o = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
|
|
@@ -1679,7 +1679,7 @@ var fn = Qe("vue-preview"), $o = { props: { coordinates: { type: Object }, trans
|
|
|
1679
1679
|
e && e.complete && this.refreshImage(), this.refresh();
|
|
1680
1680
|
} } };
|
|
1681
1681
|
$o.render = function(e, t, n, i, a, o) {
|
|
1682
|
-
return U(), Z("div", { ref: "root", class: o.classes.root, style: o.style }, [
|
|
1682
|
+
return U(), Z("div", { ref: "root", class: o.classes.root, style: o.style }, [A("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [Xt(A("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);
|
|
1683
1683
|
};
|
|
1684
1684
|
var Bo = { components: { Preview: $o }, inheritAttrs: !1 };
|
|
1685
1685
|
Bo.render = function(e, t, n, i, a, o) {
|
|
@@ -1718,9 +1718,9 @@ var Vn = Qe("vue-rectangle-stencil"), Go = { name: "RectangleStencil", component
|
|
|
1718
1718
|
} }, emits: ["resize", "resize-end", "move", "move-end"] };
|
|
1719
1719
|
Go.render = function(e, t, n, i, a, o) {
|
|
1720
1720
|
var r = H("stencil-preview"), l = H("draggable-area"), s = H("bounding-box");
|
|
1721
|
-
return U(), Z("div", { class: o.classes.stencil, style: o.style }, [
|
|
1722
|
-
return [
|
|
1723
|
-
return [
|
|
1721
|
+
return U(), Z("div", { class: o.classes.stencil, style: o.style }, [A(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: G(function() {
|
|
1722
|
+
return [A(l, { movable: n.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: G(function() {
|
|
1723
|
+
return [A(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"])];
|
|
1724
1724
|
}), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
|
|
1725
1725
|
}), _: 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);
|
|
1726
1726
|
};
|
|
@@ -1736,8 +1736,8 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1736
1736
|
return !(typeof e == "string" && e !== "fill" && e !== "fit");
|
|
1737
1737
|
} }, 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) {
|
|
1738
1738
|
var t = e.event, n = e.coordinates, i = e.aspectRatio, a = e.positionRestrictions, o = e.sizeRestrictions, r = ie(ie({}, n), { right: n.left + n.width, bottom: n.top + n.height }), l = t.params || {}, s = ie({}, t.directions), u = l.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
|
|
1739
|
-
o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), it.forEach(function(
|
|
1740
|
-
u[
|
|
1739
|
+
o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), it.forEach(function(R) {
|
|
1740
|
+
u[R] || (s[R] = 0);
|
|
1741
1741
|
});
|
|
1742
1742
|
var m = nt(r, s = Li({ coordinates: r, directions: s, sizeRestrictions: o, positionRestrictions: a })).width, d = nt(r, s).height, c = l.preserveRatio ? me(r) : Ln(m / d, i);
|
|
1743
1743
|
if (c) {
|
|
@@ -1757,8 +1757,8 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1757
1757
|
}
|
|
1758
1758
|
s = Li({ directions: s, coordinates: r, sizeRestrictions: o, positionRestrictions: a, preserveRatio: !0, compensate: l.compensate });
|
|
1759
1759
|
}
|
|
1760
|
-
return m = nt(r, s).width, d = nt(r, s).height, (c = l.preserveRatio ? me(r) : Ln(m / d, i)) && Math.abs(c - m / d) > 1e-3 && it.forEach(function(
|
|
1761
|
-
u[
|
|
1760
|
+
return m = nt(r, s).width, d = nt(r, s).height, (c = l.preserveRatio ? me(r) : Ln(m / d, i)) && Math.abs(c - m / d) > 1e-3 && it.forEach(function(R) {
|
|
1761
|
+
u[R] || (s[R] = 0);
|
|
1762
1762
|
}), Jn({ event: new di({ 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 });
|
|
1763
1763
|
} }, moveAlgorithm: { type: Function, default: Jn }, initStretcher: { type: Function, default: function(e) {
|
|
1764
1764
|
var t = e.stretcher, n = e.imageSize, i = me(n);
|
|
@@ -1769,7 +1769,7 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1769
1769
|
} }, fitVisibleArea: { type: Function, default: function(e) {
|
|
1770
1770
|
var t = e.visibleArea, n = e.boundaries, i = e.getAreaRestrictions, a = e.coordinates, o = ie({}, t);
|
|
1771
1771
|
o.height = o.width / me(n), o.top += (t.height - o.height) / 2, (a.height - o.height > 0 || a.width - o.width > 0) && (o = Xe(o, Math.max(a.height / o.height, a.width / o.width)));
|
|
1772
|
-
var r =
|
|
1772
|
+
var r = An(Ht(a, rt(o = Xe(o, On(o, i({ visibleArea: o, type: "resize" }))))));
|
|
1773
1773
|
return o.width < a.width && (r.left = 0), o.height < a.height && (r.top = 0), o = xe(o = We(o, r), i({ visibleArea: o, type: "move" }));
|
|
1774
1774
|
} }, areaRestrictionsAlgorithm: { type: Function, default: function(e) {
|
|
1775
1775
|
var t = e.visibleArea, n = e.boundaries, i = e.imageSize, a = e.imageRestriction, o = e.type, r = {};
|
|
@@ -2151,9 +2151,9 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
2151
2151
|
}
|
|
2152
2152
|
} }, emits: ["change", "error", "ready"] }, ds = { key: 0, ref: "canvas", style: { display: "none" } }, ms = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
|
|
2153
2153
|
Wo.render = function(e, t, n, i, a, o) {
|
|
2154
|
-
return U(), Z("div", { ref: "cropper", class: o.classes.cropper }, [
|
|
2155
|
-
return [
|
|
2156
|
-
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2),
|
|
2154
|
+
return U(), Z("div", { ref: "cropper", class: o.classes.cropper }, [A("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), A("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(U(), Z(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: G(function() {
|
|
2155
|
+
return [A("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), A("div", { class: o.classes.imageWrapper }, [A("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: t[1] || (t[1] = Cn(function() {
|
|
2156
|
+
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), A("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), Xt((U(), Z(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(), Z("canvas", ds, null, 512)) : se("", !0), n.canvas ? (U(), Z("canvas", ms, null, 512)) : se("", !0)];
|
|
2157
2157
|
}), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
|
|
2158
2158
|
};
|
|
2159
2159
|
function ps(e, t) {
|
|
@@ -2229,7 +2229,7 @@ const hs = {
|
|
|
2229
2229
|
B("div", _s, [
|
|
2230
2230
|
B("div", bs, [
|
|
2231
2231
|
B("div", ys, [
|
|
2232
|
-
|
|
2232
|
+
A(b(Wo), {
|
|
2233
2233
|
class: "cropper h-[150px] w-[200px]",
|
|
2234
2234
|
src: r.value || o.value,
|
|
2235
2235
|
"stencil-props": {
|
|
@@ -2254,7 +2254,7 @@ const hs = {
|
|
|
2254
2254
|
type: "button",
|
|
2255
2255
|
onClick: d
|
|
2256
2256
|
}, [
|
|
2257
|
-
|
|
2257
|
+
A(E, { name: "close" })
|
|
2258
2258
|
])
|
|
2259
2259
|
])
|
|
2260
2260
|
])
|
|
@@ -2356,7 +2356,7 @@ const hs = {
|
|
|
2356
2356
|
return (u, m) => {
|
|
2357
2357
|
const d = H("fm-select");
|
|
2358
2358
|
return U(), re("div", null, [
|
|
2359
|
-
|
|
2359
|
+
A(d, {
|
|
2360
2360
|
disabled: e.disable,
|
|
2361
2361
|
items: r.value,
|
|
2362
2362
|
label: e.label ?? b(i)("menu.common.labels.order_from"),
|
|
@@ -2375,7 +2375,7 @@ const hs = {
|
|
|
2375
2375
|
height: "24",
|
|
2376
2376
|
fill: "none"
|
|
2377
2377
|
};
|
|
2378
|
-
function
|
|
2378
|
+
function Rs(e, t) {
|
|
2379
2379
|
return U(), re("svg", Cs, t[0] || (t[0] = [
|
|
2380
2380
|
B("path", {
|
|
2381
2381
|
fill: "#1C1C1E",
|
|
@@ -2390,7 +2390,7 @@ function As(e, t) {
|
|
|
2390
2390
|
}, null, -1)
|
|
2391
2391
|
]));
|
|
2392
2392
|
}
|
|
2393
|
-
const
|
|
2393
|
+
const As = { render: Rs }, Os = {
|
|
2394
2394
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2395
2395
|
width: "24",
|
|
2396
2396
|
height: "24",
|
|
@@ -2424,7 +2424,7 @@ const Ts = { render: Is }, Ho = /* @__PURE__ */ ve({
|
|
|
2424
2424
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
2425
2425
|
(...a) => t.onClick && t.onClick(...a))
|
|
2426
2426
|
}, [
|
|
2427
|
-
b(Ge).isDialogOpened.value ? (U(), Z(b(
|
|
2427
|
+
b(Ge).isDialogOpened.value ? (U(), Z(b(As), { key: 1 })) : (U(), Z(b(Ts), { key: 0 }))
|
|
2428
2428
|
], 2)) : se("", !0);
|
|
2429
2429
|
};
|
|
2430
2430
|
}
|
|
@@ -2509,7 +2509,7 @@ function Hs(e) {
|
|
|
2509
2509
|
function S() {
|
|
2510
2510
|
return r(n + o) && o++, o++, t[n + o];
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2512
|
+
function R() {
|
|
2513
2513
|
n = 0, i = 1, a = 1, o = 0;
|
|
2514
2514
|
}
|
|
2515
2515
|
function M(w = 0) {
|
|
@@ -2531,7 +2531,7 @@ function Hs(e) {
|
|
|
2531
2531
|
currentPeek: g,
|
|
2532
2532
|
next: v,
|
|
2533
2533
|
peek: S,
|
|
2534
|
-
reset:
|
|
2534
|
+
reset: R,
|
|
2535
2535
|
resetPeek: M,
|
|
2536
2536
|
skipToPeek: O
|
|
2537
2537
|
};
|
|
@@ -2606,7 +2606,7 @@ function Ys(e, t = {}) {
|
|
|
2606
2606
|
const Y = g(f.currentPeek());
|
|
2607
2607
|
return f.resetPeek(), Y;
|
|
2608
2608
|
}
|
|
2609
|
-
function
|
|
2609
|
+
function R(f, h) {
|
|
2610
2610
|
const { currentType: L } = h;
|
|
2611
2611
|
if (L !== 2)
|
|
2612
2612
|
return !1;
|
|
@@ -2708,7 +2708,7 @@ function Ys(e, t = {}) {
|
|
|
2708
2708
|
h >= 65 && h <= 70 || // A-F
|
|
2709
2709
|
h >= 97 && h <= 102;
|
|
2710
2710
|
}
|
|
2711
|
-
function
|
|
2711
|
+
function Ae(f) {
|
|
2712
2712
|
return P(f, ce);
|
|
2713
2713
|
}
|
|
2714
2714
|
function $(f) {
|
|
@@ -2777,7 +2777,7 @@ function Ys(e, t = {}) {
|
|
|
2777
2777
|
E(f, h);
|
|
2778
2778
|
let Y = "";
|
|
2779
2779
|
for (let X = 0; X < L; X++) {
|
|
2780
|
-
const ue =
|
|
2780
|
+
const ue = Ae(f);
|
|
2781
2781
|
if (!ue) {
|
|
2782
2782
|
d(_e.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${h}${Y}${f.currentChar()}`);
|
|
2783
2783
|
break;
|
|
@@ -2845,7 +2845,7 @@ function Ys(e, t = {}) {
|
|
|
2845
2845
|
return d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), h.braceNest = 0, wt(f, h);
|
|
2846
2846
|
if (X = S(f, h))
|
|
2847
2847
|
return L = c(h, 4, q(f)), y(f), L;
|
|
2848
|
-
if (ue =
|
|
2848
|
+
if (ue = R(f, h))
|
|
2849
2849
|
return L = c(h, 5, J(f)), y(f), L;
|
|
2850
2850
|
if (F = M(f, h))
|
|
2851
2851
|
return L = c(h, 6, ae(f)), y(f), L;
|
|
@@ -2948,9 +2948,9 @@ function Js(e, t, n) {
|
|
|
2948
2948
|
}
|
|
2949
2949
|
function Zs(e = {}) {
|
|
2950
2950
|
const t = e.location !== !1, { onError: n } = e;
|
|
2951
|
-
function i(g, v, S,
|
|
2951
|
+
function i(g, v, S, R, ...M) {
|
|
2952
2952
|
const O = g.currentPosition();
|
|
2953
|
-
if (O.offset +=
|
|
2953
|
+
if (O.offset += R, O.column += R, n) {
|
|
2954
2954
|
const w = t ? Qn(S, O) : null, x = Mn(v, w, {
|
|
2955
2955
|
domain: Xs,
|
|
2956
2956
|
args: M
|
|
@@ -2959,31 +2959,31 @@ function Zs(e = {}) {
|
|
|
2959
2959
|
}
|
|
2960
2960
|
}
|
|
2961
2961
|
function a(g, v, S) {
|
|
2962
|
-
const
|
|
2963
|
-
return t && (
|
|
2962
|
+
const R = { type: g };
|
|
2963
|
+
return t && (R.start = v, R.end = v, R.loc = { start: S, end: S }), R;
|
|
2964
2964
|
}
|
|
2965
|
-
function o(g, v, S,
|
|
2965
|
+
function o(g, v, S, R) {
|
|
2966
2966
|
t && (g.end = v, g.loc && (g.loc.end = S));
|
|
2967
2967
|
}
|
|
2968
2968
|
function r(g, v) {
|
|
2969
|
-
const S = g.context(),
|
|
2970
|
-
return
|
|
2969
|
+
const S = g.context(), R = a(3, S.offset, S.startLoc);
|
|
2970
|
+
return R.value = v, o(R, g.currentOffset(), g.currentPosition()), R;
|
|
2971
2971
|
}
|
|
2972
2972
|
function l(g, v) {
|
|
2973
|
-
const S = g.context(), { lastOffset:
|
|
2973
|
+
const S = g.context(), { lastOffset: R, lastStartLoc: M } = S, O = a(5, R, M);
|
|
2974
2974
|
return O.index = parseInt(v, 10), g.nextToken(), o(O, g.currentOffset(), g.currentPosition()), O;
|
|
2975
2975
|
}
|
|
2976
2976
|
function s(g, v) {
|
|
2977
|
-
const S = g.context(), { lastOffset:
|
|
2977
|
+
const S = g.context(), { lastOffset: R, lastStartLoc: M } = S, O = a(4, R, M);
|
|
2978
2978
|
return O.key = v, g.nextToken(), o(O, g.currentOffset(), g.currentPosition()), O;
|
|
2979
2979
|
}
|
|
2980
2980
|
function u(g, v) {
|
|
2981
|
-
const S = g.context(), { lastOffset:
|
|
2981
|
+
const S = g.context(), { lastOffset: R, lastStartLoc: M } = S, O = a(9, R, M);
|
|
2982
2982
|
return O.value = v.replace(qs, Js), g.nextToken(), o(O, g.currentOffset(), g.currentPosition()), O;
|
|
2983
2983
|
}
|
|
2984
2984
|
function m(g) {
|
|
2985
|
-
const v = g.nextToken(), S = g.context(), { lastOffset:
|
|
2986
|
-
return v.type !== 11 ? (i(g, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), O.value = "", o(O,
|
|
2985
|
+
const v = g.nextToken(), S = g.context(), { lastOffset: R, lastStartLoc: M } = S, O = a(8, R, M);
|
|
2986
|
+
return v.type !== 11 ? (i(g, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), O.value = "", o(O, R, M), {
|
|
2987
2987
|
nextConsumeToken: v,
|
|
2988
2988
|
node: O
|
|
2989
2989
|
}) : (v.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, tt(v)), O.value = v.value || "", o(O, g.currentOffset(), g.currentPosition()), {
|
|
@@ -2991,34 +2991,34 @@ function Zs(e = {}) {
|
|
|
2991
2991
|
});
|
|
2992
2992
|
}
|
|
2993
2993
|
function d(g, v) {
|
|
2994
|
-
const S = g.context(),
|
|
2995
|
-
return
|
|
2994
|
+
const S = g.context(), R = a(7, S.offset, S.startLoc);
|
|
2995
|
+
return R.value = v, o(R, g.currentOffset(), g.currentPosition()), R;
|
|
2996
2996
|
}
|
|
2997
2997
|
function c(g) {
|
|
2998
2998
|
const v = g.context(), S = a(6, v.offset, v.startLoc);
|
|
2999
|
-
let
|
|
3000
|
-
if (
|
|
2999
|
+
let R = g.nextToken();
|
|
3000
|
+
if (R.type === 8) {
|
|
3001
3001
|
const M = m(g);
|
|
3002
|
-
S.modifier = M.node,
|
|
3002
|
+
S.modifier = M.node, R = M.nextConsumeToken || g.nextToken();
|
|
3003
3003
|
}
|
|
3004
|
-
switch (
|
|
3004
|
+
switch (R.type !== 9 && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), R = g.nextToken(), R.type === 2 && (R = g.nextToken()), R.type) {
|
|
3005
3005
|
case 10:
|
|
3006
|
-
|
|
3006
|
+
R.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), S.key = d(g, R.value || "");
|
|
3007
3007
|
break;
|
|
3008
3008
|
case 4:
|
|
3009
|
-
|
|
3009
|
+
R.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), S.key = s(g, R.value || "");
|
|
3010
3010
|
break;
|
|
3011
3011
|
case 5:
|
|
3012
|
-
|
|
3012
|
+
R.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), S.key = l(g, R.value || "");
|
|
3013
3013
|
break;
|
|
3014
3014
|
case 6:
|
|
3015
|
-
|
|
3015
|
+
R.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), S.key = u(g, R.value || "");
|
|
3016
3016
|
break;
|
|
3017
3017
|
default: {
|
|
3018
3018
|
i(g, _e.UNEXPECTED_EMPTY_LINKED_KEY, v.lastStartLoc, 0);
|
|
3019
3019
|
const M = g.context(), O = a(7, M.offset, M.startLoc);
|
|
3020
3020
|
return O.value = "", o(O, M.offset, M.startLoc), S.key = O, o(S, M.offset, M.startLoc), {
|
|
3021
|
-
nextConsumeToken:
|
|
3021
|
+
nextConsumeToken: R,
|
|
3022
3022
|
node: S
|
|
3023
3023
|
};
|
|
3024
3024
|
}
|
|
@@ -3028,7 +3028,7 @@ function Zs(e = {}) {
|
|
|
3028
3028
|
};
|
|
3029
3029
|
}
|
|
3030
3030
|
function p(g) {
|
|
3031
|
-
const v = g.context(), S = v.currentType === 1 ? g.currentOffset() : v.offset,
|
|
3031
|
+
const v = g.context(), S = v.currentType === 1 ? g.currentOffset() : v.offset, R = v.currentType === 1 ? v.endLoc : v.startLoc, M = a(2, S, R);
|
|
3032
3032
|
M.items = [];
|
|
3033
3033
|
let O = null;
|
|
3034
3034
|
do {
|
|
@@ -3056,11 +3056,11 @@ function Zs(e = {}) {
|
|
|
3056
3056
|
const w = v.currentType === 1 ? v.lastOffset : g.currentOffset(), x = v.currentType === 1 ? v.lastEndLoc : g.currentPosition();
|
|
3057
3057
|
return o(M, w, x), M;
|
|
3058
3058
|
}
|
|
3059
|
-
function E(g, v, S,
|
|
3059
|
+
function E(g, v, S, R) {
|
|
3060
3060
|
const M = g.context();
|
|
3061
|
-
let O =
|
|
3061
|
+
let O = R.items.length === 0;
|
|
3062
3062
|
const w = a(1, v, S);
|
|
3063
|
-
w.cases = [], w.cases.push(
|
|
3063
|
+
w.cases = [], w.cases.push(R);
|
|
3064
3064
|
do {
|
|
3065
3065
|
const x = p(g);
|
|
3066
3066
|
O || (O = x.items.length === 0), w.cases.push(x);
|
|
@@ -3068,12 +3068,12 @@ function Zs(e = {}) {
|
|
|
3068
3068
|
return O && i(g, _e.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), o(w, g.currentOffset(), g.currentPosition()), w;
|
|
3069
3069
|
}
|
|
3070
3070
|
function _(g) {
|
|
3071
|
-
const v = g.context(), { offset: S, startLoc:
|
|
3072
|
-
return v.currentType === 13 ? M : E(g, S,
|
|
3071
|
+
const v = g.context(), { offset: S, startLoc: R } = v, M = p(g);
|
|
3072
|
+
return v.currentType === 13 ? M : E(g, S, R, M);
|
|
3073
3073
|
}
|
|
3074
3074
|
function y(g) {
|
|
3075
|
-
const v = Ys(g, Ne({}, e)), S = v.context(),
|
|
3076
|
-
return t &&
|
|
3075
|
+
const v = Ys(g, Ne({}, e)), S = v.context(), R = a(0, S.offset, S.startLoc);
|
|
3076
|
+
return t && R.loc && (R.loc.source = g), R.body = _(v), e.onCacheKey && (R.cacheKey = e.onCacheKey(g)), S.currentType !== 13 && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, g[S.offset] || ""), o(R, v.currentOffset(), v.currentPosition()), R;
|
|
3077
3077
|
}
|
|
3078
3078
|
return { parse: y };
|
|
3079
3079
|
}
|
|
@@ -3480,12 +3480,12 @@ function Ot(e, t, n) {
|
|
|
3480
3480
|
function en(e) {
|
|
3481
3481
|
return new Error(`unhandled node type: ${e}`);
|
|
3482
3482
|
}
|
|
3483
|
-
const
|
|
3483
|
+
const Rl = (e) => e;
|
|
3484
3484
|
let vn = be();
|
|
3485
3485
|
function Kt(e) {
|
|
3486
3486
|
return fe(e) && bi(e) === 0 && (Je(e, "b") || Je(e, "body"));
|
|
3487
3487
|
}
|
|
3488
|
-
function
|
|
3488
|
+
function Al(e, t = {}) {
|
|
3489
3489
|
let n = !1;
|
|
3490
3490
|
const i = t.onError || $s;
|
|
3491
3491
|
return t.onError = (a) => {
|
|
@@ -3496,10 +3496,10 @@ function Rl(e, t = {}) {
|
|
|
3496
3496
|
function Ol(e, t) {
|
|
3497
3497
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Q(e)) {
|
|
3498
3498
|
Ce(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
3499
|
-
const i = (t.onCacheKey ||
|
|
3499
|
+
const i = (t.onCacheKey || Rl)(e), a = vn[i];
|
|
3500
3500
|
if (a)
|
|
3501
3501
|
return a;
|
|
3502
|
-
const { ast: o, detectError: r } =
|
|
3502
|
+
const { ast: o, detectError: r } = Al(e, {
|
|
3503
3503
|
...t,
|
|
3504
3504
|
location: ul.env.NODE_ENV !== "production",
|
|
3505
3505
|
jit: !0
|
|
@@ -3924,7 +3924,7 @@ const qi = (e) => {
|
|
|
3924
3924
|
}, Zl = () => Qo;
|
|
3925
3925
|
let Ji = 0;
|
|
3926
3926
|
function Ql(e = {}) {
|
|
3927
|
-
const t = Ee(e.onWarn) ? e.onWarn : Us, n = Q(e.version) ? e.version : Hl, i = Q(e.locale) || Ee(e.locale) ? e.locale : Sn, a = Ee(i) ? Sn : i, o = Ie(e.fallbackLocale) || pe(e.fallbackLocale) || Q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, r = pe(e.messages) ? e.messages : Bn(a), l = pe(e.datetimeFormats) ? e.datetimeFormats : Bn(a), s = pe(e.numberFormats) ? e.numberFormats : Bn(a), u = Ne(be(), e.modifiers, jl()), m = e.pluralRules || be(), d = Ee(e.missing) ? e.missing : null, c = Ce(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = Ce(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, _ = !!e.unresolving, y = Ee(e.postTranslation) ? e.postTranslation : null, g = pe(e.processor) ? e.processor : null, v = Ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter,
|
|
3927
|
+
const t = Ee(e.onWarn) ? e.onWarn : Us, n = Q(e.version) ? e.version : Hl, i = Q(e.locale) || Ee(e.locale) ? e.locale : Sn, a = Ee(i) ? Sn : i, o = Ie(e.fallbackLocale) || pe(e.fallbackLocale) || Q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, r = pe(e.messages) ? e.messages : Bn(a), l = pe(e.datetimeFormats) ? e.datetimeFormats : Bn(a), s = pe(e.numberFormats) ? e.numberFormats : Bn(a), u = Ne(be(), e.modifiers, jl()), m = e.pluralRules || be(), d = Ee(e.missing) ? e.missing : null, c = Ce(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = Ce(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, _ = !!e.unresolving, y = Ee(e.postTranslation) ? e.postTranslation : null, g = pe(e.processor) ? e.processor : null, v = Ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, R = Ee(e.messageCompiler) ? e.messageCompiler : Xo, M = Ee(e.messageResolver) ? e.messageResolver : qo || Gl, O = Ee(e.localeFallbacker) ? e.localeFallbacker : Jo || Nl, w = fe(e.fallbackContext) ? e.fallbackContext : void 0, x = e, k = fe(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), I = fe(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), N = fe(x.__meta) ? x.__meta : {};
|
|
3928
3928
|
Ji++;
|
|
3929
3929
|
const P = {
|
|
3930
3930
|
version: n,
|
|
@@ -3943,7 +3943,7 @@ function Ql(e = {}) {
|
|
|
3943
3943
|
processor: g,
|
|
3944
3944
|
warnHtmlMessage: v,
|
|
3945
3945
|
escapeParameter: S,
|
|
3946
|
-
messageCompiler:
|
|
3946
|
+
messageCompiler: R,
|
|
3947
3947
|
messageResolver: M,
|
|
3948
3948
|
localeFallbacker: O,
|
|
3949
3949
|
fallbackContext: w,
|
|
@@ -3994,10 +3994,10 @@ function Zi(e, ...t) {
|
|
|
3994
3994
|
wi(e, s, g, c, S);
|
|
3995
3995
|
if (!pe(v) || !Q(g))
|
|
3996
3996
|
return i ? Dn : s;
|
|
3997
|
-
let
|
|
3998
|
-
Tn(d) || (
|
|
3999
|
-
let M = l.get(
|
|
4000
|
-
return M || (M = new Intl.DateTimeFormat(g, Ne({}, v, d)), l.set(
|
|
3997
|
+
let R = `${g}__${s}`;
|
|
3998
|
+
Tn(d) || (R = `${R}__${JSON.stringify(d)}`);
|
|
3999
|
+
let M = l.get(R);
|
|
4000
|
+
return M || (M = new Intl.DateTimeFormat(g, Ne({}, v, d)), l.set(R, M)), p ? M.formatToParts(u) : M.format(u);
|
|
4001
4001
|
}
|
|
4002
4002
|
const ea = [
|
|
4003
4003
|
"localeMatcher",
|
|
@@ -4071,10 +4071,10 @@ function eo(e, ...t) {
|
|
|
4071
4071
|
wi(e, s, g, c, S);
|
|
4072
4072
|
if (!pe(v) || !Q(g))
|
|
4073
4073
|
return i ? Dn : s;
|
|
4074
|
-
let
|
|
4075
|
-
Tn(d) || (
|
|
4076
|
-
let M = l.get(
|
|
4077
|
-
return M || (M = new Intl.NumberFormat(g, Ne({}, v, d)), l.set(
|
|
4074
|
+
let R = `${g}__${s}`;
|
|
4075
|
+
Tn(d) || (R = `${R}__${JSON.stringify(d)}`);
|
|
4076
|
+
let M = l.get(R);
|
|
4077
|
+
return M || (M = new Intl.NumberFormat(g, Ne({}, v, d)), l.set(R, M)), p ? M.formatToParts(u) : M.format(u);
|
|
4078
4078
|
}
|
|
4079
4079
|
const ta = [
|
|
4080
4080
|
"localeMatcher",
|
|
@@ -4139,9 +4139,9 @@ function uu(e = {}) {
|
|
|
4139
4139
|
named: u,
|
|
4140
4140
|
plural: o,
|
|
4141
4141
|
linked: (g, ...v) => {
|
|
4142
|
-
const [S,
|
|
4142
|
+
const [S, R] = v;
|
|
4143
4143
|
let M = "text", O = "";
|
|
4144
|
-
v.length === 1 ? fe(S) ? (O = S.modifier || O, M = S.type || M) : Q(S) && (O = S || O) : v.length === 2 && (Q(S) && (O = S || O), Q(
|
|
4144
|
+
v.length === 1 ? fe(S) ? (O = S.modifier || O, M = S.type || M) : Q(S) && (O = S || O) : v.length === 2 && (Q(S) && (O = S || O), Q(R) && (M = R || M));
|
|
4145
4145
|
const w = m(g, !0)(y), x = (
|
|
4146
4146
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
4147
4147
|
M === "vnode" && Ie(w) && O ? w[0] : w
|
|
@@ -4164,22 +4164,22 @@ function oo(e, ...t) {
|
|
|
4164
4164
|
s,
|
|
4165
4165
|
y,
|
|
4166
4166
|
l[y] || be()
|
|
4167
|
-
] : na(e, s, y, r, d, m),
|
|
4168
|
-
if (!p && !(Q(
|
|
4167
|
+
] : na(e, s, y, r, d, m), R = g, M = s;
|
|
4168
|
+
if (!p && !(Q(R) || Kt(R) || Ke(R)) && _ && (R = E, M = R), !p && (!(Q(R) || Kt(R) || Ke(R)) || !Q(v)))
|
|
4169
4169
|
return a ? Dn : s;
|
|
4170
4170
|
let O = !1;
|
|
4171
4171
|
const w = () => {
|
|
4172
4172
|
O = !0;
|
|
4173
|
-
}, x = Ke(
|
|
4173
|
+
}, x = Ke(R) ? R : ia(e, s, v, R, M, w);
|
|
4174
4174
|
if (O)
|
|
4175
|
-
return
|
|
4175
|
+
return R;
|
|
4176
4176
|
const k = pu(e, v, S, u), I = uu(k), N = du(e, x, I), P = i ? i(N, s) : N;
|
|
4177
4177
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
4178
4178
|
const D = {
|
|
4179
4179
|
timestamp: Date.now(),
|
|
4180
|
-
key: Q(s) ? s : Ke(
|
|
4181
|
-
locale: v || (Ke(
|
|
4182
|
-
format: Q(
|
|
4180
|
+
key: Q(s) ? s : Ke(R) ? R.key : "",
|
|
4181
|
+
locale: v || (Ke(R) ? R.locale : ""),
|
|
4182
|
+
format: Q(R) ? R : Ke(R) ? R.source : "",
|
|
4183
4183
|
message: P
|
|
4184
4184
|
};
|
|
4185
4185
|
D.meta = Ne({}, e.__meta, /* @__PURE__ */ Jl() || {}), Ml(D);
|
|
@@ -4274,7 +4274,7 @@ function pu(e, t, n, i) {
|
|
|
4274
4274
|
return e.processor && (c.processor = e.processor), i.list && (c.list = i.list), i.named && (c.named = i.named), Pe(i.plural) && (c.pluralIndex = i.plural), c;
|
|
4275
4275
|
}
|
|
4276
4276
|
cl();
|
|
4277
|
-
var fu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6c96f5fb-8188-4d15-bda3-bdf077b67db9", 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_6c96f5fb-8188-4d15-bda3-bdf077b67db9", 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-0.7.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-8.14.3", 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: "1748", 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: "20250728.1.0", 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.11/x64", JOURNAL_STREAM: "9:12847", 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.5/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: "16799225355", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "026aaa0bf8802668209d6f040f40b958c18f4727", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.2.4", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_package_dependencies_axios: "^1.7.2", npm_package_devDependencies__types_pouchdb_core: "^7.0.15", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_a43c16fc-c1d9-42f0-8a56-c23d254cdacc", INVOCATION_ID: "b2397fffa72a4e66a3aace17215902d0", 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: "387", 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 1000010929", 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.19", 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.18-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: "026aaa0bf8802668209d6f040f40b958c18f4727", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "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_6c96f5fb-8188-4d15-bda3-bdf077b67db9", 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_6c96f5fb-8188-4d15-bda3-bdf077b67db9", 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 .", 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.5.26", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_6c96f5fb-8188-4d15-bda3-bdf077b67db9", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
4277
|
+
var fu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_9683a90f-bedb-456c-b512-2a15aa2b18cd", 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_9683a90f-bedb-456c-b512-2a15aa2b18cd", 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-0.7.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-8.14.3", 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: "20250728.1.0", 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.11/x64", JOURNAL_STREAM: "9:12776", 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.5/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: "16801258743", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "0ec8c76f7811a39c13f543c2d2a198da555a77b9", 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_219de0ae-6619-457e-8d0f-0fecaf12eab7", INVOCATION_ID: "69148b3818464e788f2635568875eb95", 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: "65", 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 1000010997", 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.19", 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.18-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: "0ec8c76f7811a39c13f543c2d2a198da555a77b9", 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_9683a90f-bedb-456c-b512-2a15aa2b18cd", 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_9683a90f-bedb-456c-b512-2a15aa2b18cd", 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 .", 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.5.26", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_9683a90f-bedb-456c-b512-2a15aa2b18cd", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
4278
4278
|
const hu = "10.0.5";
|
|
4279
4279
|
function gu() {
|
|
4280
4280
|
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);
|
|
@@ -4359,7 +4359,7 @@ function _u(e, t, n) {
|
|
|
4359
4359
|
}
|
|
4360
4360
|
}
|
|
4361
4361
|
function ao(e) {
|
|
4362
|
-
return
|
|
4362
|
+
return A(ba, null, e, 0);
|
|
4363
4363
|
}
|
|
4364
4364
|
const ro = "__INTLIFY_META__", so = () => [], bu = () => !1;
|
|
4365
4365
|
let lo = 0;
|
|
@@ -4381,7 +4381,7 @@ function wu(e = {}) {
|
|
|
4381
4381
|
// prettier-ignore
|
|
4382
4382
|
t && r ? t.fallbackLocale.value : Q(e.fallbackLocale) || Ie(e.fallbackLocale) || pe(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
4383
4383
|
), u = o(aa(l.value, e)), m = o(pe(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), d = o(pe(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
4384
|
-
let c = t ? t.missingWarn : Ce(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : Ce(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : Ce(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, y = Ee(e.missing) ? e.missing : null, g = Ee(e.missing) ? uo(e.missing) : null, v = Ee(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : Ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0,
|
|
4384
|
+
let c = t ? t.missingWarn : Ce(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : Ce(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : Ce(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, y = Ee(e.missing) ? e.missing : null, g = Ee(e.missing) ? uo(e.missing) : null, v = Ee(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : Ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, R = !!e.escapeParameter;
|
|
4385
4385
|
const M = t ? t.modifiers : pe(e.modifiers) ? e.modifiers : {};
|
|
4386
4386
|
let O = e.pluralRules || t && t.pluralRules, w;
|
|
4387
4387
|
w = (() => {
|
|
@@ -4400,7 +4400,7 @@ function wu(e = {}) {
|
|
|
4400
4400
|
unresolving: !0,
|
|
4401
4401
|
postTranslation: v === null ? void 0 : v,
|
|
4402
4402
|
warnHtmlMessage: S,
|
|
4403
|
-
escapeParameter:
|
|
4403
|
+
escapeParameter: R,
|
|
4404
4404
|
messageResolver: e.messageResolver,
|
|
4405
4405
|
messageCompiler: e.messageCompiler,
|
|
4406
4406
|
__meta: { framework: "vue" }
|
|
@@ -4459,14 +4459,14 @@ function wu(e = {}) {
|
|
|
4459
4459
|
throw nn(Yt.UNEXPECTED_RETURN_TYPE);
|
|
4460
4460
|
}
|
|
4461
4461
|
};
|
|
4462
|
-
function
|
|
4462
|
+
function Ae(...F) {
|
|
4463
4463
|
return ce((W) => Reflect.apply(oo, null, [W, ...F]), () => ii(...F), "translate", (W) => Reflect.apply(W.t, W, [...F]), (W) => W, (W) => Q(W));
|
|
4464
4464
|
}
|
|
4465
4465
|
function $(...F) {
|
|
4466
4466
|
const [W, he, we] = F;
|
|
4467
4467
|
if (we && !fe(we))
|
|
4468
4468
|
throw nn(Yt.INVALID_ARGUMENT);
|
|
4469
|
-
return
|
|
4469
|
+
return Ae(W, he, Ne({ resolvedMessage: !0 }, we || {}));
|
|
4470
4470
|
}
|
|
4471
4471
|
function K(...F) {
|
|
4472
4472
|
return ce((W) => Reflect.apply(Zi, null, [W, ...F]), () => ti(...F), "datetime format", (W) => Reflect.apply(W.d, W, [...F]), () => Yi, (W) => Q(W));
|
|
@@ -4624,12 +4624,12 @@ function wu(e = {}) {
|
|
|
4624
4624
|
S = F, w.warnHtmlMessage = F;
|
|
4625
4625
|
},
|
|
4626
4626
|
get escapeParameter() {
|
|
4627
|
-
return
|
|
4627
|
+
return R;
|
|
4628
4628
|
},
|
|
4629
4629
|
set escapeParameter(F) {
|
|
4630
|
-
|
|
4630
|
+
R = F, w.escapeParameter = F;
|
|
4631
4631
|
},
|
|
4632
|
-
t:
|
|
4632
|
+
t: Ae,
|
|
4633
4633
|
getLocaleMessage: ut,
|
|
4634
4634
|
setLocaleMessage: ct,
|
|
4635
4635
|
mergeLocaleMessage: wt,
|
|
@@ -4726,7 +4726,7 @@ function ln(e = {}) {
|
|
|
4726
4726
|
throw nn(Yt.MUST_BE_CALL_SETUP_TOP);
|
|
4727
4727
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
4728
4728
|
throw nn(Yt.NOT_INSTALLED);
|
|
4729
|
-
const n = Cu(t), i =
|
|
4729
|
+
const n = Cu(t), i = Au(n), a = ra(t), o = Ru(e, a);
|
|
4730
4730
|
if (o === "global")
|
|
4731
4731
|
return _u(i, e, a), i;
|
|
4732
4732
|
if (o === "parent") {
|
|
@@ -4747,10 +4747,10 @@ function Cu(e) {
|
|
|
4747
4747
|
throw nn(e.isCE ? Yt.NOT_INSTALLED_WITH_PROVIDE : Yt.UNEXPECTED_ERROR);
|
|
4748
4748
|
return t;
|
|
4749
4749
|
}
|
|
4750
|
-
function
|
|
4750
|
+
function Ru(e, t) {
|
|
4751
4751
|
return Tn(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
4752
4752
|
}
|
|
4753
|
-
function
|
|
4753
|
+
function Au(e) {
|
|
4754
4754
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
4755
4755
|
}
|
|
4756
4756
|
function Ou(e, t, n = !1) {
|
|
@@ -4813,12 +4813,12 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4813
4813
|
menuLoader: l,
|
|
4814
4814
|
isLocalOnly: n.isLocalOnly
|
|
4815
4815
|
}), c = (v, S) => {
|
|
4816
|
-
v ? m.value = [...m.value, S] : m.value = m.value.filter((
|
|
4816
|
+
v ? m.value = [...m.value, S] : m.value = m.value.filter((R) => R.value !== S.value), i(
|
|
4817
4817
|
"update:modelValue",
|
|
4818
|
-
m.value.map((
|
|
4818
|
+
m.value.map((R) => R.value)
|
|
4819
4819
|
);
|
|
4820
4820
|
}, p = (v) => {
|
|
4821
|
-
m.value = m.value.filter((S,
|
|
4821
|
+
m.value = m.value.filter((S, R) => R !== v), i(
|
|
4822
4822
|
"update:modelValue",
|
|
4823
4823
|
m.value.map((S) => S.value)
|
|
4824
4824
|
);
|
|
@@ -4836,9 +4836,9 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4836
4836
|
},
|
|
4837
4837
|
{ immediate: !0 }
|
|
4838
4838
|
), (v, S) => {
|
|
4839
|
-
const
|
|
4839
|
+
const R = H("FmIcon"), M = H("FmField"), O = H("FmMenuItem"), w = H("FmMenu"), x = H("FmFormGroup"), k = H("FmChipGroup");
|
|
4840
4840
|
return U(), re("div", Mu, [
|
|
4841
|
-
|
|
4841
|
+
A(x, {
|
|
4842
4842
|
"model-value": v.modelValue,
|
|
4843
4843
|
disabled: v.disabled,
|
|
4844
4844
|
focused: g.value,
|
|
@@ -4847,7 +4847,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4847
4847
|
rules: v.rules
|
|
4848
4848
|
}, {
|
|
4849
4849
|
default: G(({ invalid: I }) => [
|
|
4850
|
-
|
|
4850
|
+
A(w, {
|
|
4851
4851
|
disabled: v.disabled,
|
|
4852
4852
|
ref_key: "fmMenuRef",
|
|
4853
4853
|
ref: u,
|
|
@@ -4855,13 +4855,13 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4855
4855
|
onMenuChanged: S[1] || (S[1] = (N) => g.value = N)
|
|
4856
4856
|
}, {
|
|
4857
4857
|
"menu-button": G(() => [
|
|
4858
|
-
|
|
4858
|
+
A(M, {
|
|
4859
4859
|
class: He(v.disabled ? "cursor-not-allowed" : "cursor-pointer"),
|
|
4860
4860
|
focused: g.value,
|
|
4861
4861
|
invalid: I
|
|
4862
4862
|
}, {
|
|
4863
4863
|
append: G(() => [
|
|
4864
|
-
R
|
|
4864
|
+
A(R, {
|
|
4865
4865
|
color: v.disabled ? "#C7C7CC" : "black",
|
|
4866
4866
|
name: g.value ? "expand_less" : "expand_more",
|
|
4867
4867
|
size: "md"
|
|
@@ -4892,7 +4892,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4892
4892
|
type: "button",
|
|
4893
4893
|
onClick: S[0] || (S[0] = (N) => E())
|
|
4894
4894
|
}, [
|
|
4895
|
-
R
|
|
4895
|
+
A(R, {
|
|
4896
4896
|
color: "primary",
|
|
4897
4897
|
name: "add",
|
|
4898
4898
|
size: "md"
|
|
@@ -4907,7 +4907,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4907
4907
|
_: 1
|
|
4908
4908
|
}, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
|
|
4909
4909
|
m.value.length > 0 ? (U(), re("div", Nu, [
|
|
4910
|
-
|
|
4910
|
+
A(k, {
|
|
4911
4911
|
disabled: v.disabled,
|
|
4912
4912
|
items: m.value.map((I) => ({ label: I.label })),
|
|
4913
4913
|
removable: "",
|
|
@@ -4917,7 +4917,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4917
4917
|
]);
|
|
4918
4918
|
};
|
|
4919
4919
|
}
|
|
4920
|
-
}), Lu = /* @__PURE__ */
|
|
4920
|
+
}), Lu = /* @__PURE__ */ At(Fu, [["__scopeId", "data-v-ca5e943c"]]), xu = { class: "flex flex-col gap-4" }, Uu = { class: "fm-select__menu__wrapper" }, Vu = {
|
|
4921
4921
|
key: 0,
|
|
4922
4922
|
class: "flex flex-col gap-4 justify-center"
|
|
4923
4923
|
}, zu = /* @__PURE__ */ ve({
|
|
@@ -4974,9 +4974,9 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4974
4974
|
return t({
|
|
4975
4975
|
hideMenu: m
|
|
4976
4976
|
}), (_, y) => {
|
|
4977
|
-
const g = H("FmIcon"), v = H("FmField"), S = H("FmMenuItem"),
|
|
4977
|
+
const g = H("FmIcon"), v = H("FmField"), S = H("FmMenuItem"), R = H("FmMenu"), M = H("FmFormGroup"), O = H("FmChipGroup");
|
|
4978
4978
|
return U(), re("div", xu, [
|
|
4979
|
-
|
|
4979
|
+
A(M, {
|
|
4980
4980
|
"model-value": _.modelValue,
|
|
4981
4981
|
disabled: _.disabled,
|
|
4982
4982
|
focused: c.value,
|
|
@@ -4985,7 +4985,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4985
4985
|
rules: _.rules
|
|
4986
4986
|
}, {
|
|
4987
4987
|
default: G(({ invalid: w }) => [
|
|
4988
|
-
R
|
|
4988
|
+
A(R, {
|
|
4989
4989
|
disabled: _.disabled,
|
|
4990
4990
|
ref_key: "fmMenuRef",
|
|
4991
4991
|
ref: r,
|
|
@@ -4993,13 +4993,13 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4993
4993
|
onMenuChanged: y[0] || (y[0] = (x) => c.value = x)
|
|
4994
4994
|
}, {
|
|
4995
4995
|
"menu-button": G(() => [
|
|
4996
|
-
|
|
4996
|
+
A(v, {
|
|
4997
4997
|
class: He(_.disabled ? "cursor-not-allowed" : "cursor-pointer"),
|
|
4998
4998
|
focused: c.value,
|
|
4999
4999
|
invalid: w
|
|
5000
5000
|
}, {
|
|
5001
5001
|
append: G(() => [
|
|
5002
|
-
|
|
5002
|
+
A(g, {
|
|
5003
5003
|
color: _.disabled ? "#C7C7CC" : "black",
|
|
5004
5004
|
name: c.value ? "expand_less" : "expand_more",
|
|
5005
5005
|
size: "md"
|
|
@@ -5025,7 +5025,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
5025
5025
|
"model-value": l.value.some((k) => k.value === x.value),
|
|
5026
5026
|
"onUpdate:modelValue": (k) => s(k, x)
|
|
5027
5027
|
}, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue"]))), 128)),
|
|
5028
|
-
|
|
5028
|
+
Re(_.$slots, "append-menu", {}, void 0, !0)
|
|
5029
5029
|
])
|
|
5030
5030
|
]),
|
|
5031
5031
|
_: 2
|
|
@@ -5034,7 +5034,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
5034
5034
|
_: 3
|
|
5035
5035
|
}, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
|
|
5036
5036
|
_.shouldShowChips && l.value.length > 0 ? (U(), re("div", Vu, [
|
|
5037
|
-
|
|
5037
|
+
A(O, {
|
|
5038
5038
|
disabled: _.disabled,
|
|
5039
5039
|
items: l.value.map((w) => ({ label: w.label })),
|
|
5040
5040
|
removable: "",
|
|
@@ -5044,7 +5044,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
5044
5044
|
]);
|
|
5045
5045
|
};
|
|
5046
5046
|
}
|
|
5047
|
-
}), $u = /* @__PURE__ */
|
|
5047
|
+
}), $u = /* @__PURE__ */ At(zu, [["__scopeId", "data-v-1d940d75"]]), Bu = {
|
|
5048
5048
|
class: "flex flex-row xs:flex-col gap-24"
|
|
5049
5049
|
}, Gu = {
|
|
5050
5050
|
class: "flex-1 flex flex-col gap-24"
|
|
@@ -5122,26 +5122,26 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5122
5122
|
}
|
|
5123
5123
|
d("update:form", "category", V._id), d("update:form", "additionalCategories", j);
|
|
5124
5124
|
}
|
|
5125
|
-
}),
|
|
5126
|
-
ref:
|
|
5125
|
+
}), R = te(), M = () => n.isAddon ? null : A($u, {
|
|
5126
|
+
ref: R,
|
|
5127
5127
|
disabled: !c.value.category || n.isAddon || m(),
|
|
5128
5128
|
items: E.value,
|
|
5129
5129
|
modelValue: S.value,
|
|
5130
5130
|
"onUpdate:model-value": (T) => S.value = T,
|
|
5131
5131
|
placeholder: C("menu.product.form.detail.category.placeholder")
|
|
5132
5132
|
}, {
|
|
5133
|
-
"append-menu": () =>
|
|
5133
|
+
"append-menu": () => A("button", {
|
|
5134
5134
|
class: "flex items-center py-8 px-16 space-x-8",
|
|
5135
5135
|
type: "button",
|
|
5136
5136
|
onClick: () => {
|
|
5137
5137
|
var T;
|
|
5138
|
-
(T =
|
|
5138
|
+
(T = R.value) == null || T.hideMenu(), u.create();
|
|
5139
5139
|
}
|
|
5140
|
-
}, [
|
|
5140
|
+
}, [A(Be.FmIcon, {
|
|
5141
5141
|
color: "primary",
|
|
5142
5142
|
name: "add",
|
|
5143
5143
|
size: "md"
|
|
5144
|
-
}, null),
|
|
5144
|
+
}, null), A("p", {
|
|
5145
5145
|
class: "fm-typo-en-body-lg-600 text-fm-color-primary"
|
|
5146
5146
|
}, [C("menu.product.form.detail.category.add_new")])])
|
|
5147
5147
|
});
|
|
@@ -5157,7 +5157,7 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5157
5157
|
var j, le, ce;
|
|
5158
5158
|
if (w.value === T) return;
|
|
5159
5159
|
const V = T == Mt.ADD_ON;
|
|
5160
|
-
d("update:form", "category", n.isOverride ? V ? "" : ((j = n.fallback) == null ? void 0 : j.category) ?? ((le = E.value.find((
|
|
5160
|
+
d("update:form", "category", n.isOverride ? V ? "" : ((j = n.fallback) == null ? void 0 : j.category) ?? ((le = E.value.find((Ae) => !!Ae.value)) == null ? void 0 : le.value) : V ? null : (ce = E.value.find((Ae) => !!Ae.value)) == null ? void 0 : ce.value), V && d("update:form", "additionalCategories", []);
|
|
5161
5161
|
}
|
|
5162
5162
|
const k = te(!1);
|
|
5163
5163
|
async function I() {
|
|
@@ -5197,18 +5197,18 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5197
5197
|
t: C
|
|
5198
5198
|
} = Se();
|
|
5199
5199
|
return (T, V) => {
|
|
5200
|
-
const j = H("fm-text-field"), le = H("fm-textarea"), ce = H("fm-radio"),
|
|
5200
|
+
const j = H("fm-text-field"), le = H("fm-textarea"), ce = H("fm-radio"), Ae = H("FmSnackbar"), $ = H("FmButton"), K = H("fm-radio-group"), q = H("FmFormGroup"), J = fo("tooltip");
|
|
5201
5201
|
return U(), Z(lt, {
|
|
5202
5202
|
title: b(C)("menu.product.form.detail.title")
|
|
5203
5203
|
}, {
|
|
5204
5204
|
default: G(() => {
|
|
5205
5205
|
var ne, ae;
|
|
5206
|
-
return [B("div", Bu, [B("div", Gu, [B("div", Wu, [B("div", Hu, [
|
|
5206
|
+
return [B("div", Bu, [B("div", Gu, [B("div", Wu, [B("div", Hu, [A(j, {
|
|
5207
5207
|
"model-value": T.form.code,
|
|
5208
5208
|
placeholder: ((ne = T.fallback) == null ? void 0 : ne.code) || b(C)("menu.product.form.detail.fields.code.placeholder"),
|
|
5209
5209
|
label: b(C)("menu.product.form.detail.fields.code.label"),
|
|
5210
5210
|
"onUpdate:modelValue": V[0] || (V[0] = (oe) => d("update:form", "code", b(jo)(oe, T.isOverride)))
|
|
5211
|
-
}, null, 8, ["model-value", "placeholder", "label"])]), B("div", ju, [
|
|
5211
|
+
}, null, 8, ["model-value", "placeholder", "label"])]), B("div", ju, [A(j, {
|
|
5212
5212
|
id: "product-name",
|
|
5213
5213
|
disabled: !c.value.name,
|
|
5214
5214
|
"helper-text": O.value > 0 ? b(C)("menu.product.form.detail.fields.name.duplicate_warning", {
|
|
@@ -5221,7 +5221,7 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5221
5221
|
autofocus: "",
|
|
5222
5222
|
label: b(C)("menu.product.form.detail.fields.name.label"),
|
|
5223
5223
|
"onUpdate:modelValue": V[1] || (V[1] = (oe) => d("update:form", "name", oe))
|
|
5224
|
-
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [
|
|
5224
|
+
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [A(le, {
|
|
5225
5225
|
disabled: !c.value.description,
|
|
5226
5226
|
"model-value": T.form.description || void 0,
|
|
5227
5227
|
placeholder: b(C)("menu.product.form.detail.fields.description.placeholder"),
|
|
@@ -5230,15 +5230,15 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5230
5230
|
}, {
|
|
5231
5231
|
label: G(() => [B("p", Yu, [Gn(ye(b(C)("menu.product.form.detail.fields.description.label")) + " ", 1), B("span", Xu, ye(b(C)("menu.product.form.detail.fields.description.optional")), 1)])]),
|
|
5232
5232
|
_: 1
|
|
5233
|
-
}, 8, ["disabled", "model-value", "placeholder"]), Xt(
|
|
5233
|
+
}, 8, ["disabled", "model-value", "placeholder"]), Xt(A(Ho, {
|
|
5234
5234
|
class: "absolute top-32 right-4 cursor-pointer",
|
|
5235
5235
|
onClick: I
|
|
5236
|
-
}, null, 512), [[J, b(yo)("Suggest description")]])])]),
|
|
5236
|
+
}, null, 512), [[J, b(yo)("Suggest description")]])])]), A(ks, {
|
|
5237
5237
|
disabled: !c.value.thumbnail,
|
|
5238
5238
|
"model-value": T.thumbnail,
|
|
5239
5239
|
"onUpdate:modelValue": V[3] || (V[3] = (oe) => d("update:thumbnail", oe)),
|
|
5240
5240
|
"onReset:modelValue": V[4] || (V[4] = (oe) => d("reset:thumbnail"))
|
|
5241
|
-
}, null, 8, ["disabled", "model-value"])]),
|
|
5241
|
+
}, null, 8, ["disabled", "model-value"])]), A(_t, {
|
|
5242
5242
|
label: b(C)("menu.product.form.detail.category.label")
|
|
5243
5243
|
}, {
|
|
5244
5244
|
default: G(() => [_.value ? (U(), Z(K, {
|
|
@@ -5247,25 +5247,25 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5247
5247
|
"model-value": w.value,
|
|
5248
5248
|
"onUpdate:modelValue": V[5] || (V[5] = (oe) => x(oe))
|
|
5249
5249
|
}, {
|
|
5250
|
-
default: G(() => [B("div", qu, [B("div", Ju, [
|
|
5250
|
+
default: G(() => [B("div", qu, [B("div", Ju, [A(ce, {
|
|
5251
5251
|
disabled: y.value || !c.value.category,
|
|
5252
5252
|
value: Mt.PRODUCT,
|
|
5253
5253
|
label: b(C)("menu.product.form.detail.category.options.product.label"),
|
|
5254
5254
|
sublabel: b(C)("menu.product.form.detail.category.options.product.sublabel")
|
|
5255
|
-
}, null, 8, ["disabled", "value", "label", "sublabel"]),
|
|
5255
|
+
}, null, 8, ["disabled", "value", "label", "sublabel"]), A(Pr, null, {
|
|
5256
5256
|
default: G(() => [b(i).isV4 ? (U(), Z(M, {
|
|
5257
5257
|
key: 0
|
|
5258
5258
|
})) : se("", !0)]),
|
|
5259
5259
|
_: 1
|
|
5260
|
-
})]), y.value ? (U(), re("div", Zu, [
|
|
5260
|
+
})]), y.value ? (U(), re("div", Zu, [A(Ae, {
|
|
5261
5261
|
title: b(C)("menu.product.form.detail.category.add_first"),
|
|
5262
5262
|
variant: "info"
|
|
5263
|
-
}, null, 8, ["title"]),
|
|
5263
|
+
}, null, 8, ["title"]), A($, {
|
|
5264
5264
|
label: b(C)("menu.common.actions.add"),
|
|
5265
5265
|
"prepend-icon": "add",
|
|
5266
5266
|
variant: "secondary",
|
|
5267
5267
|
onClick: b(u).create
|
|
5268
|
-
}, null, 8, ["label", "onClick"])])) : se("", !0),
|
|
5268
|
+
}, null, 8, ["label", "onClick"])])) : se("", !0), A(ce, {
|
|
5269
5269
|
value: Mt.ADD_ON,
|
|
5270
5270
|
label: b(C)("menu.product.form.detail.category.options.addon.label"),
|
|
5271
5271
|
sublabel: b(C)("menu.product.form.detail.category.options.addon.sublabel")
|
|
@@ -5277,7 +5277,7 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5277
5277
|
"onUpdate:modelValue": V[6] || (V[6] = (oe) => T.form.category = oe),
|
|
5278
5278
|
rules: [(oe) => !oe && !T.isOverride ? "Category is required" : !0]
|
|
5279
5279
|
}, {
|
|
5280
|
-
default: G(() => [
|
|
5280
|
+
default: G(() => [A(M)]),
|
|
5281
5281
|
_: 1
|
|
5282
5282
|
}, 8, ["modelValue", "rules"]))]),
|
|
5283
5283
|
_: 1
|
|
@@ -5285,7 +5285,7 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5285
5285
|
key: 0,
|
|
5286
5286
|
label: b(C)("menu.product.form.detail.path.label")
|
|
5287
5287
|
}, {
|
|
5288
|
-
default: G(() => [B("div", Qu, [
|
|
5288
|
+
default: G(() => [B("div", Qu, [A(Lu, {
|
|
5289
5289
|
modelValue: D.value,
|
|
5290
5290
|
"onUpdate:modelValue": V[7] || (V[7] = (oe) => D.value = oe),
|
|
5291
5291
|
items: P.value,
|
|
@@ -5294,7 +5294,7 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5294
5294
|
"is-local-only": !1
|
|
5295
5295
|
}, null, 8, ["modelValue", "items", "placeholder", "disabled"])])]),
|
|
5296
5296
|
_: 1
|
|
5297
|
-
}, 8, ["label"])) : se("", !0),
|
|
5297
|
+
}, 8, ["label"])) : se("", !0), A(hi, {
|
|
5298
5298
|
disabled: !c.value.orderFrom,
|
|
5299
5299
|
"model-value": T.form.orderFrom,
|
|
5300
5300
|
"order-from-none": c.value.orderFromNone,
|
|
@@ -5308,15 +5308,15 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5308
5308
|
}, 8, ["title"]);
|
|
5309
5309
|
};
|
|
5310
5310
|
}
|
|
5311
|
-
}), tc = /* @__PURE__ */
|
|
5311
|
+
}), tc = /* @__PURE__ */ At(ec, [["__scopeId", "data-v-3e6c0c15"]]), nc = {}, ic = { class: "overflow-x-auto" }, oc = { class: "xs:w-[600px]" };
|
|
5312
5312
|
function ac(e, t) {
|
|
5313
5313
|
return U(), re("div", ic, [
|
|
5314
5314
|
B("div", oc, [
|
|
5315
|
-
|
|
5315
|
+
Re(e.$slots, "default")
|
|
5316
5316
|
])
|
|
5317
5317
|
]);
|
|
5318
5318
|
}
|
|
5319
|
-
const ua = /* @__PURE__ */
|
|
5319
|
+
const ua = /* @__PURE__ */ At(nc, [["render", ac]]), rc = /* @__PURE__ */ ve({
|
|
5320
5320
|
__name: "AddForm",
|
|
5321
5321
|
setup(e) {
|
|
5322
5322
|
const t = Te(), n = z(() => t.rules.group), i = z(() => !!t.state.currentCatalogId || !!t.state.currentSchedulerId), a = z(() => {
|
|
@@ -5360,7 +5360,7 @@ const ua = /* @__PURE__ */ Rt(nc, [["render", ac]]), rc = /* @__PURE__ */ ve({
|
|
|
5360
5360
|
title: b(l)("menu.group.add")
|
|
5361
5361
|
}, {
|
|
5362
5362
|
default: G(({ trigger: m }) => [
|
|
5363
|
-
|
|
5363
|
+
Re(s.$slots, "default", { trigger: m })
|
|
5364
5364
|
]),
|
|
5365
5365
|
_: 3
|
|
5366
5366
|
}, 8, ["categorized-items", "config", "group", "title"])) : se("", !0);
|
|
@@ -5368,10 +5368,10 @@ const ua = /* @__PURE__ */ Rt(nc, [["render", ac]]), rc = /* @__PURE__ */ ve({
|
|
|
5368
5368
|
}), sc = {}, lc = { class: "flex gap-16" };
|
|
5369
5369
|
function uc(e, t) {
|
|
5370
5370
|
return U(), re("div", lc, [
|
|
5371
|
-
|
|
5371
|
+
Re(e.$slots, "default")
|
|
5372
5372
|
]);
|
|
5373
5373
|
}
|
|
5374
|
-
const cc = /* @__PURE__ */
|
|
5374
|
+
const cc = /* @__PURE__ */ At(sc, [["render", uc]]), dc = { class: "fm-typo-en-title-md-600 mr-auto" }, mc = { class: "space-y-40" }, pc = { class: "flex gap-8 items-center justify-start" }, fc = /* @__PURE__ */ ve({
|
|
5375
5375
|
__name: "Form",
|
|
5376
5376
|
props: {
|
|
5377
5377
|
bindingKey: {},
|
|
@@ -5406,8 +5406,8 @@ const cc = /* @__PURE__ */ Rt(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5406
5406
|
return (p, E) => {
|
|
5407
5407
|
const _ = H("fm-text-field"), y = H("fm-card"), g = H("fm-button"), v = H("fm-side-sheet");
|
|
5408
5408
|
return U(), re(Ue, null, [
|
|
5409
|
-
|
|
5410
|
-
|
|
5409
|
+
Re(p.$slots, "default", { trigger: o }),
|
|
5410
|
+
A(v, {
|
|
5411
5411
|
id: "inventory-form",
|
|
5412
5412
|
modelValue: a.value,
|
|
5413
5413
|
"onUpdate:modelValue": E[2] || (E[2] = (S) => a.value = S),
|
|
@@ -5425,13 +5425,13 @@ const cc = /* @__PURE__ */ Rt(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5425
5425
|
]),
|
|
5426
5426
|
"side-sheet-footer": G(() => [
|
|
5427
5427
|
B("div", pc, [
|
|
5428
|
-
|
|
5428
|
+
A(g, {
|
|
5429
5429
|
label: b(d)("menu.common.actions.add"),
|
|
5430
5430
|
size: "lg",
|
|
5431
5431
|
type: "submit",
|
|
5432
5432
|
variant: "primary"
|
|
5433
5433
|
}, null, 8, ["label"]),
|
|
5434
|
-
|
|
5434
|
+
A(g, {
|
|
5435
5435
|
label: b(d)("menu.common.actions.cancel"),
|
|
5436
5436
|
size: "lg",
|
|
5437
5437
|
variant: "tertiary",
|
|
@@ -5441,17 +5441,17 @@ const cc = /* @__PURE__ */ Rt(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5441
5441
|
]),
|
|
5442
5442
|
default: G(() => [
|
|
5443
5443
|
B("div", mc, [
|
|
5444
|
-
|
|
5444
|
+
A(_, {
|
|
5445
5445
|
"model-value": p.name,
|
|
5446
5446
|
disabled: "",
|
|
5447
5447
|
label: b(d)("menu.inventory.form.product_name")
|
|
5448
5448
|
}, null, 8, ["model-value", "label"]),
|
|
5449
|
-
|
|
5449
|
+
A(y, {
|
|
5450
5450
|
class: "p-16 space-y-24",
|
|
5451
5451
|
variant: "outlined"
|
|
5452
5452
|
}, {
|
|
5453
5453
|
default: G(() => [
|
|
5454
|
-
|
|
5454
|
+
A(b(qa), {
|
|
5455
5455
|
modelValue: r.value,
|
|
5456
5456
|
"onUpdate:modelValue": E[0] || (E[0] = (S) => r.value = S)
|
|
5457
5457
|
}, null, 8, ["modelValue"])
|
|
@@ -5484,7 +5484,7 @@ function hc() {
|
|
|
5484
5484
|
l = c;
|
|
5485
5485
|
}, m = (c) => {
|
|
5486
5486
|
s = c;
|
|
5487
|
-
}, d =
|
|
5487
|
+
}, d = A(o, {
|
|
5488
5488
|
...i,
|
|
5489
5489
|
// close event from the component
|
|
5490
5490
|
"onUpdate:show": (c) => {
|
|
@@ -5539,7 +5539,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5539
5539
|
cell: (r) => {
|
|
5540
5540
|
var u, m;
|
|
5541
5541
|
const l = (u = n.fallback) == null ? void 0 : u[r.row.original.key], s = l ? Bt(l) : void 0;
|
|
5542
|
-
return
|
|
5542
|
+
return A(Pt, {
|
|
5543
5543
|
required: !1,
|
|
5544
5544
|
nullable: !0,
|
|
5545
5545
|
min: n.allowNegativePrice ? void 0 : 0,
|
|
@@ -5552,7 +5552,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5552
5552
|
}];
|
|
5553
5553
|
return (r, l) => {
|
|
5554
5554
|
const s = H("FmTable");
|
|
5555
|
-
return U(), re("div", null, [
|
|
5555
|
+
return U(), re("div", null, [A(s, {
|
|
5556
5556
|
"column-defs": o,
|
|
5557
5557
|
"row-data": r.priceTiers,
|
|
5558
5558
|
"page-size": r.priceTiers.length,
|
|
@@ -5599,13 +5599,13 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5599
5599
|
]),
|
|
5600
5600
|
"side-sheet-footer": G(() => [
|
|
5601
5601
|
B("div", _c, [
|
|
5602
|
-
|
|
5602
|
+
A(y, {
|
|
5603
5603
|
label: l.value,
|
|
5604
5604
|
size: "lg",
|
|
5605
5605
|
type: "submit",
|
|
5606
5606
|
variant: "primary"
|
|
5607
5607
|
}, null, 8, ["label"]),
|
|
5608
|
-
|
|
5608
|
+
A(y, {
|
|
5609
5609
|
label: b(n)("common.cancel"),
|
|
5610
5610
|
size: "lg",
|
|
5611
5611
|
variant: "tertiary",
|
|
@@ -5615,12 +5615,12 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5615
5615
|
]),
|
|
5616
5616
|
default: G(() => [
|
|
5617
5617
|
B("div", vc, [
|
|
5618
|
-
|
|
5618
|
+
A(_t, {
|
|
5619
5619
|
label: b(n)("menu.price_tier.price_group"),
|
|
5620
5620
|
description: b(n)("menu.price_tier.description")
|
|
5621
5621
|
}, {
|
|
5622
5622
|
append: G(() => [
|
|
5623
|
-
|
|
5623
|
+
A(_, {
|
|
5624
5624
|
class: "min-w-fit",
|
|
5625
5625
|
label: b(n)("menu.price_tier.add_price_group"),
|
|
5626
5626
|
icon: "add",
|
|
@@ -5629,7 +5629,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5629
5629
|
}, null, 8, ["label", "onClick"])
|
|
5630
5630
|
]),
|
|
5631
5631
|
default: G(() => [
|
|
5632
|
-
|
|
5632
|
+
A(ca, {
|
|
5633
5633
|
"price-tiers": b(u).priceTiers.value,
|
|
5634
5634
|
"model-value": m.value,
|
|
5635
5635
|
fallback: p.fallback,
|
|
@@ -5669,14 +5669,14 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5669
5669
|
const { t: l } = Se();
|
|
5670
5670
|
return (s, u) => {
|
|
5671
5671
|
const m = H("FmButton"), d = H("FmTooltip");
|
|
5672
|
-
return s.$slots.default ?
|
|
5672
|
+
return s.$slots.default ? Re(s.$slots, "default", { key: 0 }) : (U(), Z(d, {
|
|
5673
5673
|
key: 1,
|
|
5674
5674
|
content: b(l)("menu.price_tier.price_tier_config"),
|
|
5675
5675
|
"z-index": 999,
|
|
5676
5676
|
placement: "top"
|
|
5677
5677
|
}, {
|
|
5678
5678
|
default: G(() => [
|
|
5679
|
-
|
|
5679
|
+
A(m, {
|
|
5680
5680
|
icon: "price_change",
|
|
5681
5681
|
variant: "tertiary",
|
|
5682
5682
|
"text-color": b(pt).NeutralGray400,
|
|
@@ -5731,7 +5731,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5731
5731
|
}), g = z(() => !0), v = ($) => $ ? Bt($, !1) : "", S = ($) => {
|
|
5732
5732
|
var K;
|
|
5733
5733
|
return $ == null ? "" : (K = Ma()[$]) == null ? void 0 : K.label;
|
|
5734
|
-
},
|
|
5734
|
+
}, R = z(() => Object.values(_.value)), M = te({}), {
|
|
5735
5735
|
t: O
|
|
5736
5736
|
} = Se(), w = te([{
|
|
5737
5737
|
accessorKey: "isDefault",
|
|
@@ -5743,7 +5743,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5743
5743
|
if ((ae = (ne = $.row.original) == null ? void 0 : ne.items) != null && ae.length)
|
|
5744
5744
|
return null;
|
|
5745
5745
|
const K = $.row.depth > 0, q = $.row.original, J = !!$.getValue();
|
|
5746
|
-
return
|
|
5746
|
+
return A(Be.FmCheckbox, {
|
|
5747
5747
|
value: "default",
|
|
5748
5748
|
modelValue: J,
|
|
5749
5749
|
disabled: !y(q.combinationKey).isDefault,
|
|
@@ -5765,12 +5765,12 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5765
5765
|
size: 100,
|
|
5766
5766
|
cell: ($) => {
|
|
5767
5767
|
const K = $.getValue();
|
|
5768
|
-
return
|
|
5768
|
+
return A(Be.FmTooltip, {
|
|
5769
5769
|
class: "flex",
|
|
5770
5770
|
content: K,
|
|
5771
5771
|
zIndex: 110
|
|
5772
5772
|
}, {
|
|
5773
|
-
default: () => [
|
|
5773
|
+
default: () => [A("div", {
|
|
5774
5774
|
class: "break-all max-w-[100px]"
|
|
5775
5775
|
}, [K])]
|
|
5776
5776
|
});
|
|
@@ -5888,9 +5888,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5888
5888
|
size: 80,
|
|
5889
5889
|
cell: ($) => {
|
|
5890
5890
|
const K = $.row.original, q = $.row.depth > 0;
|
|
5891
|
-
return
|
|
5891
|
+
return A("div", {
|
|
5892
5892
|
class: "flex items-center justify-end"
|
|
5893
|
-
}, [y(null).priceTier &&
|
|
5893
|
+
}, [y(null).priceTier && A(da, {
|
|
5894
5894
|
priceTiers: K.priceTiers,
|
|
5895
5895
|
"onUpdate:priceTiers": (J) => {
|
|
5896
5896
|
var ne;
|
|
@@ -5907,7 +5907,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5907
5907
|
} else
|
|
5908
5908
|
I(K._id, "priceTiers", J);
|
|
5909
5909
|
}
|
|
5910
|
-
}, null), y(K.combinationKey).inventory &&
|
|
5910
|
+
}, null), y(K.combinationKey).inventory && A(li, {
|
|
5911
5911
|
title: "Inventory",
|
|
5912
5912
|
initialValue: K.inventoryBindings ?? [],
|
|
5913
5913
|
name: K.name ?? K.fallbackName ?? "",
|
|
@@ -5930,14 +5930,14 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5930
5930
|
}, {
|
|
5931
5931
|
default: ({
|
|
5932
5932
|
trigger: J
|
|
5933
|
-
}) =>
|
|
5933
|
+
}) => A(H("fm-tooltip"), {
|
|
5934
5934
|
content: "Inventory",
|
|
5935
5935
|
zIndex: 110
|
|
5936
5936
|
}, {
|
|
5937
5937
|
default: () => {
|
|
5938
5938
|
var ne;
|
|
5939
|
-
return [
|
|
5940
|
-
variant:
|
|
5939
|
+
return [A(H("fm-button"), {
|
|
5940
|
+
variant: Rt.Tertiary,
|
|
5941
5941
|
prependIcon: "inventory_2",
|
|
5942
5942
|
overwriteIconOutline: (ne = K.inventoryBindings) != null && ne.length ? "filled" : "outline",
|
|
5943
5943
|
textColor: pt.NeutralGray400,
|
|
@@ -5945,8 +5945,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5945
5945
|
}, null)];
|
|
5946
5946
|
}
|
|
5947
5947
|
})
|
|
5948
|
-
}), y(K.combinationKey).link &&
|
|
5949
|
-
variant:
|
|
5948
|
+
}), y(K.combinationKey).link && A(H("fm-button"), {
|
|
5949
|
+
variant: Rt.Tertiary,
|
|
5950
5950
|
prependIcon: "delete",
|
|
5951
5951
|
textColor: pt.NeutralGray400,
|
|
5952
5952
|
onClick: () => {
|
|
@@ -6061,7 +6061,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6061
6061
|
[J._id]: J
|
|
6062
6062
|
}), {}), i("update:group", K);
|
|
6063
6063
|
}
|
|
6064
|
-
const ce = _o(),
|
|
6064
|
+
const ce = _o(), Ae = z(() => ce.breakpoints.value.xs);
|
|
6065
6065
|
return ($, K) => {
|
|
6066
6066
|
const q = H("fm-button"), J = H("fm-table");
|
|
6067
6067
|
return U(), Z(lt, {
|
|
@@ -6069,7 +6069,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6069
6069
|
}, {
|
|
6070
6070
|
"append-title": G(() => [$.config.link() ? (U(), re(Ue, {
|
|
6071
6071
|
key: 0
|
|
6072
|
-
}, [m.value ? (U(), re("div", yc, [
|
|
6072
|
+
}, [m.value ? (U(), re("div", yc, [A(La, {
|
|
6073
6073
|
"categorized-items": $.categorizedItems,
|
|
6074
6074
|
"initial-value": c.value,
|
|
6075
6075
|
"show-variant": $.config.bindToVariant,
|
|
@@ -6079,7 +6079,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6079
6079
|
}, {
|
|
6080
6080
|
default: G(({
|
|
6081
6081
|
trigger: ne
|
|
6082
|
-
}) => [
|
|
6082
|
+
}) => [A(q, {
|
|
6083
6083
|
"text-color": b(pt).ColorPrimary,
|
|
6084
6084
|
"border-color": b(pt).ColorPrimary,
|
|
6085
6085
|
variant: "secondary",
|
|
@@ -6088,7 +6088,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6088
6088
|
onClick: ne
|
|
6089
6089
|
}, null, 8, ["text-color", "border-color", "label", "onClick"])]),
|
|
6090
6090
|
_: 1
|
|
6091
|
-
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div", wc, [
|
|
6091
|
+
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div", wc, [A(q, {
|
|
6092
6092
|
"text-color": b(pt).ColorPrimary,
|
|
6093
6093
|
"border-color": b(pt).ColorPrimary,
|
|
6094
6094
|
variant: "secondary",
|
|
@@ -6096,14 +6096,14 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6096
6096
|
"prepend-icon": "add",
|
|
6097
6097
|
onClick: k
|
|
6098
6098
|
}, null, 8, ["text-color", "border-color", "label"])]))], 64)) : se("", !0)]),
|
|
6099
|
-
default: G(() => [B("div", Ec, [B("div", Sc, [
|
|
6099
|
+
default: G(() => [B("div", Ec, [B("div", Sc, [A(J, {
|
|
6100
6100
|
"column-defs": w.value,
|
|
6101
6101
|
"column-visibility": x.value,
|
|
6102
|
-
draggable: !
|
|
6102
|
+
draggable: !Ae.value && y(null).name,
|
|
6103
6103
|
"expanded-state": s.value ? {} : M.value,
|
|
6104
6104
|
"get-sub-row": j,
|
|
6105
6105
|
"page-size": 999,
|
|
6106
|
-
"row-data":
|
|
6106
|
+
"row-data": R.value,
|
|
6107
6107
|
"search-value": b(p),
|
|
6108
6108
|
"shrink-at": !1,
|
|
6109
6109
|
"hide-footer": "",
|
|
@@ -6115,10 +6115,10 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6115
6115
|
}, 8, ["title"]);
|
|
6116
6116
|
};
|
|
6117
6117
|
}
|
|
6118
|
-
}), Cc = { class: "fm-typo-en-title-md-600" },
|
|
6118
|
+
}), Cc = { class: "fm-typo-en-title-md-600" }, Rc = {
|
|
6119
6119
|
key: 0,
|
|
6120
6120
|
class: "pt-8 space-y-32"
|
|
6121
|
-
},
|
|
6121
|
+
}, Ac = { class: "flex gap-8 items-center justify-start" }, ma = /* @__PURE__ */ ve({
|
|
6122
6122
|
__name: "BaseForm",
|
|
6123
6123
|
props: {
|
|
6124
6124
|
title: {},
|
|
@@ -6133,7 +6133,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6133
6133
|
let i = e;
|
|
6134
6134
|
const a = n, o = Te(), r = rn(), l = st(), s = Ze(), u = Ct(kt(s)), m = te(!1), d = te(!1), c = (C) => {
|
|
6135
6135
|
sn.isBoolean(C) ? d.value = C : d.value = !d.value;
|
|
6136
|
-
}, p = z(() => i.group ? i.config(i.group) : null), E = z(() =>
|
|
6136
|
+
}, p = z(() => i.group ? i.config(i.group) : null), E = z(() => Ao(p.value)), _ = (C) => E.value.includes(C), y = z(() => [
|
|
6137
6137
|
{
|
|
6138
6138
|
label: "Normal",
|
|
6139
6139
|
value: ee.F_ADDON_GROUP_TYPE.enum.NORMAL
|
|
@@ -6172,12 +6172,12 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6172
6172
|
}).onPrimary(T) : T();
|
|
6173
6173
|
}
|
|
6174
6174
|
function S(C) {
|
|
6175
|
-
return new
|
|
6175
|
+
return new Ro(o, u.updateMenu, l).mapGroups(
|
|
6176
6176
|
[C],
|
|
6177
6177
|
p.value.isOverride
|
|
6178
6178
|
)[0];
|
|
6179
6179
|
}
|
|
6180
|
-
function
|
|
6180
|
+
function R(C) {
|
|
6181
6181
|
let T = 0;
|
|
6182
6182
|
for (const V of Object.values(C.items)) {
|
|
6183
6183
|
V.isDefault && T++;
|
|
@@ -6187,7 +6187,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6187
6187
|
return T;
|
|
6188
6188
|
}
|
|
6189
6189
|
function M(C) {
|
|
6190
|
-
return
|
|
6190
|
+
return R(C) <= C.max || D("menu.common.validation.max_default_items", { max: C.max });
|
|
6191
6191
|
}
|
|
6192
6192
|
const O = te(ot.clone(i.group)), w = ui(
|
|
6193
6193
|
() => !ot.isEqual(i.group, O.value),
|
|
@@ -6255,10 +6255,10 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6255
6255
|
});
|
|
6256
6256
|
const { t: D } = Se();
|
|
6257
6257
|
return (C, T) => {
|
|
6258
|
-
const V = H("fm-text-field"), j = H("fm-stepper-field"), le = H("FmFormGroup"), ce = H("fm-radio"),
|
|
6258
|
+
const V = H("fm-text-field"), j = H("fm-stepper-field"), le = H("FmFormGroup"), ce = H("fm-radio"), Ae = H("fm-radio-group"), $ = H("fm-switch"), K = H("fm-button"), q = H("fm-side-sheet");
|
|
6259
6259
|
return U(), re(Ue, null, [
|
|
6260
|
-
|
|
6261
|
-
|
|
6260
|
+
Re(C.$slots, "default", { trigger: c }),
|
|
6261
|
+
A(q, {
|
|
6262
6262
|
id: "group-form",
|
|
6263
6263
|
modelValue: d.value,
|
|
6264
6264
|
"onUpdate:modelValue": T[8] || (T[8] = (J) => d.value = J),
|
|
@@ -6274,15 +6274,15 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6274
6274
|
B("p", Cc, ye(C.title), 1)
|
|
6275
6275
|
]),
|
|
6276
6276
|
"side-sheet-footer": G(() => [
|
|
6277
|
-
B("div",
|
|
6278
|
-
|
|
6277
|
+
B("div", Ac, [
|
|
6278
|
+
A(K, {
|
|
6279
6279
|
label: b(er)(x.value),
|
|
6280
6280
|
loading: m.value,
|
|
6281
6281
|
size: "lg",
|
|
6282
6282
|
type: "submit",
|
|
6283
6283
|
variant: "primary"
|
|
6284
6284
|
}, null, 8, ["label", "loading"]),
|
|
6285
|
-
|
|
6285
|
+
A(K, {
|
|
6286
6286
|
label: b(D)("menu.common.actions.cancel"),
|
|
6287
6287
|
size: "lg",
|
|
6288
6288
|
variant: "tertiary",
|
|
@@ -6291,12 +6291,12 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6291
6291
|
])
|
|
6292
6292
|
]),
|
|
6293
6293
|
default: G(() => [
|
|
6294
|
-
C.group ? (U(), re("div",
|
|
6295
|
-
|
|
6296
|
-
|
|
6294
|
+
C.group ? (U(), re("div", Rc, [
|
|
6295
|
+
Re(C.$slots, "variant-section"),
|
|
6296
|
+
A(xa, null, {
|
|
6297
6297
|
default: G(() => [
|
|
6298
6298
|
B("div", null, [
|
|
6299
|
-
|
|
6299
|
+
A(V, {
|
|
6300
6300
|
modelValue: C.group.name,
|
|
6301
6301
|
"onUpdate:modelValue": T[0] || (T[0] = (J) => C.group.name = J),
|
|
6302
6302
|
disabled: _("name"),
|
|
@@ -6307,16 +6307,16 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6307
6307
|
label: b(D)("menu.common.labels.group_name")
|
|
6308
6308
|
}, null, 8, ["modelValue", "disabled", "rules", "label"])
|
|
6309
6309
|
]),
|
|
6310
|
-
|
|
6310
|
+
A(le, {
|
|
6311
6311
|
"model-value": C.group.min + " " + C.group.max,
|
|
6312
6312
|
rules: [
|
|
6313
6313
|
() => Number.isInteger(C.group.min) && Number.isInteger(C.group.max) && C.group.min <= C.group.max || b(D)("menu.common.validation.min_max")
|
|
6314
6314
|
]
|
|
6315
6315
|
}, {
|
|
6316
6316
|
default: G(() => [
|
|
6317
|
-
|
|
6317
|
+
A(cc, null, {
|
|
6318
6318
|
default: G(() => [
|
|
6319
|
-
|
|
6319
|
+
A(j, {
|
|
6320
6320
|
modelValue: C.group.min,
|
|
6321
6321
|
"onUpdate:modelValue": T[1] || (T[1] = (J) => C.group.min = J),
|
|
6322
6322
|
disabled: _("min"),
|
|
@@ -6324,7 +6324,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6324
6324
|
class: "flex-1",
|
|
6325
6325
|
label: b(D)("menu.common.labels.min_select")
|
|
6326
6326
|
}, null, 8, ["modelValue", "disabled", "label"]),
|
|
6327
|
-
|
|
6327
|
+
A(j, {
|
|
6328
6328
|
modelValue: C.group.max,
|
|
6329
6329
|
"onUpdate:modelValue": T[2] || (T[2] = (J) => C.group.max = J),
|
|
6330
6330
|
disabled: _("max"),
|
|
@@ -6343,7 +6343,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6343
6343
|
label: b(D)("menu.common.labels.group_type")
|
|
6344
6344
|
}, {
|
|
6345
6345
|
default: G(() => [
|
|
6346
|
-
|
|
6346
|
+
A(Ae, {
|
|
6347
6347
|
disabled: _("type"),
|
|
6348
6348
|
"model-value": C.group.type,
|
|
6349
6349
|
"onUpdate:modelValue": T[3] || (T[3] = (J) => v(J))
|
|
@@ -6360,11 +6360,11 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6360
6360
|
]),
|
|
6361
6361
|
_: 1
|
|
6362
6362
|
}, 8, ["label"])) : se("", !0),
|
|
6363
|
-
|
|
6363
|
+
A(_t, {
|
|
6364
6364
|
label: b(D)("menu.common.labels.configuration")
|
|
6365
6365
|
}, {
|
|
6366
6366
|
default: G(() => [
|
|
6367
|
-
|
|
6367
|
+
A($, {
|
|
6368
6368
|
modelValue: C.group.stackable,
|
|
6369
6369
|
"onUpdate:modelValue": T[4] || (T[4] = (J) => C.group.stackable = J),
|
|
6370
6370
|
disabled: _("stackable"),
|
|
@@ -6381,7 +6381,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6381
6381
|
"sub-title": b(D)("menu.group.form.tagging.subtitle")
|
|
6382
6382
|
}, {
|
|
6383
6383
|
default: G(() => [
|
|
6384
|
-
|
|
6384
|
+
A(b(vo), {
|
|
6385
6385
|
entity: "group",
|
|
6386
6386
|
"model-value": C.group.customAttributes || {},
|
|
6387
6387
|
"onUpdate:modelValue": P,
|
|
@@ -6393,17 +6393,17 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6393
6393
|
]),
|
|
6394
6394
|
_: 1
|
|
6395
6395
|
}),
|
|
6396
|
-
|
|
6396
|
+
A(le, {
|
|
6397
6397
|
tag: "div",
|
|
6398
6398
|
modelValue: C.group,
|
|
6399
6399
|
rules: [M],
|
|
6400
6400
|
"helper-text": b(D)("menu.common.validation.default_items_tip", {
|
|
6401
|
-
count:
|
|
6401
|
+
count: R(C.group),
|
|
6402
6402
|
max: C.group.max
|
|
6403
6403
|
})
|
|
6404
6404
|
}, {
|
|
6405
6405
|
default: G(() => [
|
|
6406
|
-
|
|
6406
|
+
A(kc, {
|
|
6407
6407
|
"allow-refund-inventory": C.allowRefundInventory ?? !1,
|
|
6408
6408
|
"categorized-items": C.categorizedItems,
|
|
6409
6409
|
config: p.value,
|
|
@@ -6430,7 +6430,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6430
6430
|
},
|
|
6431
6431
|
emits: ["update:combinations"],
|
|
6432
6432
|
setup(e, { expose: t, emit: n }) {
|
|
6433
|
-
var
|
|
6433
|
+
var R, M;
|
|
6434
6434
|
const i = e, a = n, o = Te(), r = st(), l = Ct(kt(Ze())), s = te([]), u = te(i.combinations[0].combinationKey || ""), m = z(
|
|
6435
6435
|
() => s.value.findIndex((O) => O.combinationKey == u.value)
|
|
6436
6436
|
), d = z(
|
|
@@ -6461,7 +6461,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6461
6461
|
};
|
|
6462
6462
|
})
|
|
6463
6463
|
};
|
|
6464
|
-
return new
|
|
6464
|
+
return new Ro(o, l.updateMenu, r).mapGroups([I], !0)[0];
|
|
6465
6465
|
});
|
|
6466
6466
|
function p(O) {
|
|
6467
6467
|
var I, N;
|
|
@@ -6518,7 +6518,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6518
6518
|
);
|
|
6519
6519
|
const v = te();
|
|
6520
6520
|
t({
|
|
6521
|
-
show: (
|
|
6521
|
+
show: (R = v.value) == null ? void 0 : R.show,
|
|
6522
6522
|
trigger: (M = v.value) == null ? void 0 : M.trigger
|
|
6523
6523
|
});
|
|
6524
6524
|
const { t: S } = Se();
|
|
@@ -6538,7 +6538,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6538
6538
|
"onStatus:show": w[5] || (w[5] = (N) => g.value = N)
|
|
6539
6539
|
}, {
|
|
6540
6540
|
default: G(({ trigger: N }) => [
|
|
6541
|
-
|
|
6541
|
+
Re(O.$slots, "default", { trigger: N })
|
|
6542
6542
|
]),
|
|
6543
6543
|
"variant-section": G(() => [
|
|
6544
6544
|
u.value ? (U(), Z(I, {
|
|
@@ -6549,21 +6549,21 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6549
6549
|
default: G(() => [
|
|
6550
6550
|
B("p", Oc, ye(b(S)("menu.group.option.variant")), 1),
|
|
6551
6551
|
B("div", Ic, [
|
|
6552
|
-
|
|
6552
|
+
A(x, {
|
|
6553
6553
|
modelValue: u.value,
|
|
6554
6554
|
"onUpdate:modelValue": w[0] || (w[0] = (N) => u.value = N),
|
|
6555
6555
|
items: d.value,
|
|
6556
6556
|
class: "flex-1"
|
|
6557
6557
|
}, null, 8, ["modelValue", "items"]),
|
|
6558
6558
|
B("div", Tc, [
|
|
6559
|
-
|
|
6560
|
-
variant: b(
|
|
6559
|
+
A(k, {
|
|
6560
|
+
variant: b(Rt).Tertiary,
|
|
6561
6561
|
"prepend-icon": "keyboard_arrow_left",
|
|
6562
6562
|
size: "lg",
|
|
6563
6563
|
onClick: w[1] || (w[1] = (N) => E("left"))
|
|
6564
6564
|
}, null, 8, ["variant"]),
|
|
6565
|
-
|
|
6566
|
-
variant: b(
|
|
6565
|
+
A(k, {
|
|
6566
|
+
variant: b(Rt).Tertiary,
|
|
6567
6567
|
"prepend-icon": "keyboard_arrow_right",
|
|
6568
6568
|
size: "lg",
|
|
6569
6569
|
onClick: w[2] || (w[2] = (N) => E("right"))
|
|
@@ -6596,7 +6596,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6596
6596
|
}
|
|
6597
6597
|
const u = z(() => s(l.value).reduce((y, g) => (y[g._id] = {
|
|
6598
6598
|
name: g.name,
|
|
6599
|
-
type:
|
|
6599
|
+
type: Rn(o.items, g.items)
|
|
6600
6600
|
}, y), {})), m = z(() => [
|
|
6601
6601
|
...Object.entries(u.value).map(([y, { name: g, type: v }]) => ({
|
|
6602
6602
|
label: `${g} ${r.value.type ? `(${Hn(v)})` : ""}`.trim(),
|
|
@@ -6604,11 +6604,11 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6604
6604
|
}))
|
|
6605
6605
|
]), d = z(() => !!o.state.currentCatalogId || !!o.state.currentSchedulerId);
|
|
6606
6606
|
z(() => {
|
|
6607
|
-
const y = !o.state.currentSchedulerId, g = o.rules.group.type, v = o.version == ee.F_MENU_VERSION.enum.v3, S = o.rules.item.orderFromActiveOnly,
|
|
6607
|
+
const y = !o.state.currentSchedulerId, g = o.rules.group.type, v = o.version == ee.F_MENU_VERSION.enum.v3, S = o.rules.item.orderFromActiveOnly, R = o.rules.item.bindToVariant;
|
|
6608
6608
|
return function(O) {
|
|
6609
6609
|
return {
|
|
6610
6610
|
isDefault: (w) => !d.value && !w,
|
|
6611
|
-
link: (w) => !d.value && (!w ||
|
|
6611
|
+
link: (w) => !d.value && (!w || R),
|
|
6612
6612
|
name: (w) => !d.value && !w,
|
|
6613
6613
|
type: g && !O._id && !d.value,
|
|
6614
6614
|
price: O.type != ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
|
|
@@ -6618,7 +6618,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6618
6618
|
orderFrom: (w) => y ? v ? O.type == ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? d.value : !!d.value == !w : d.value : !1,
|
|
6619
6619
|
orderFromActiveOnly: S,
|
|
6620
6620
|
showOrderFrom: y ? v ? d.value ? !0 : O.type == ee.F_ADDON_GROUP_TYPE.enum.PRODUCT : d.value : !1,
|
|
6621
|
-
bindToVariant:
|
|
6621
|
+
bindToVariant: R,
|
|
6622
6622
|
isOverride: d.value,
|
|
6623
6623
|
isItemGroup: !1,
|
|
6624
6624
|
isV4: !v
|
|
@@ -6635,10 +6635,10 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6635
6635
|
i(c.value), a("primary"), n.close();
|
|
6636
6636
|
};
|
|
6637
6637
|
return (y, g) => {
|
|
6638
|
-
const v = H("FmSearch"), S = H("FmCheckbox"),
|
|
6638
|
+
const v = H("FmSearch"), S = H("FmCheckbox"), R = H("FmButton");
|
|
6639
6639
|
return m.value.length > 0 ? (U(), re("div", Nc, [
|
|
6640
6640
|
B("div", null, [
|
|
6641
|
-
|
|
6641
|
+
A(v, {
|
|
6642
6642
|
autofocus: "",
|
|
6643
6643
|
modelValue: p.value,
|
|
6644
6644
|
"onUpdate:modelValue": g[0] || (g[0] = (M) => p.value = M),
|
|
@@ -6650,7 +6650,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6650
6650
|
(U(!0), re(Ue, null, at(m.value, (M) => (U(), re("div", {
|
|
6651
6651
|
key: M.value
|
|
6652
6652
|
}, [
|
|
6653
|
-
Xt(
|
|
6653
|
+
Xt(A(S, {
|
|
6654
6654
|
modelValue: c.value,
|
|
6655
6655
|
"onUpdate:modelValue": [
|
|
6656
6656
|
g[1] || (g[1] = (O) => c.value = O),
|
|
@@ -6665,9 +6665,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6665
6665
|
])
|
|
6666
6666
|
]),
|
|
6667
6667
|
B("div", Lc, [
|
|
6668
|
-
|
|
6668
|
+
A(b(co), null, {
|
|
6669
6669
|
default: G(({ trigger: M }) => [
|
|
6670
|
-
R
|
|
6670
|
+
A(R, {
|
|
6671
6671
|
label: b(E)("menu.common.actions.add_group"),
|
|
6672
6672
|
variant: "tertiary",
|
|
6673
6673
|
"text-color": "primary",
|
|
@@ -6677,12 +6677,12 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6677
6677
|
_: 1
|
|
6678
6678
|
}),
|
|
6679
6679
|
B("div", xc, [
|
|
6680
|
-
R
|
|
6680
|
+
A(R, {
|
|
6681
6681
|
label: b(E)("menu.common.actions.cancel"),
|
|
6682
6682
|
variant: "tertiary",
|
|
6683
6683
|
onClick: g[3] || (g[3] = (M) => b(n).close())
|
|
6684
6684
|
}, null, 8, ["label"]),
|
|
6685
|
-
R
|
|
6685
|
+
A(R, {
|
|
6686
6686
|
label: b(E)("menu.common.actions.confirm"),
|
|
6687
6687
|
onClick: g[4] || (g[4] = (M) => _())
|
|
6688
6688
|
}, null, 8, ["label"])
|
|
@@ -6693,9 +6693,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6693
6693
|
B("p", zc, ye(b(E)("menu.common.empty.no_group.title")), 1),
|
|
6694
6694
|
B("p", $c, ye(b(E)("menu.common.empty.no_group.subtitle")), 1)
|
|
6695
6695
|
]),
|
|
6696
|
-
|
|
6696
|
+
A(b(co), null, {
|
|
6697
6697
|
default: G(({ trigger: M }) => [
|
|
6698
|
-
R
|
|
6698
|
+
A(R, {
|
|
6699
6699
|
label: b(E)("menu.common.actions.add_group"),
|
|
6700
6700
|
icon: "add",
|
|
6701
6701
|
onClick: (O) => M()
|
|
@@ -6766,7 +6766,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6766
6766
|
}
|
|
6767
6767
|
const y = z(() => E(d.value).reduce((P, D) => (P[D._id] = {
|
|
6768
6768
|
name: D.name,
|
|
6769
|
-
type:
|
|
6769
|
+
type: Rn(a.items, D.items)
|
|
6770
6770
|
}, P), {})), g = z(() => [...Object.entries(y.value).map(([P, {
|
|
6771
6771
|
name: D,
|
|
6772
6772
|
type: C
|
|
@@ -6798,20 +6798,20 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6798
6798
|
size: 200,
|
|
6799
6799
|
cell: (P) => {
|
|
6800
6800
|
const D = P.row.original._id, T = _(D).join(", ");
|
|
6801
|
-
return
|
|
6801
|
+
return A(Be.FmTooltip, {
|
|
6802
6802
|
"z-index": 51,
|
|
6803
6803
|
class: "flex",
|
|
6804
6804
|
variant: "rich",
|
|
6805
6805
|
placement: "top"
|
|
6806
6806
|
}, {
|
|
6807
|
-
default: () =>
|
|
6807
|
+
default: () => A("div", {
|
|
6808
6808
|
class: "line-clamp-2 break-all"
|
|
6809
6809
|
}, [T]),
|
|
6810
|
-
content: () =>
|
|
6810
|
+
content: () => A("div", {
|
|
6811
6811
|
class: "py-12 px-16 space-y-12"
|
|
6812
|
-
}, [
|
|
6812
|
+
}, [A("p", {
|
|
6813
6813
|
class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600"
|
|
6814
|
-
}, [l("menu.group.list.columns.products")]),
|
|
6814
|
+
}, [l("menu.group.list.columns.products")]), A("div", {
|
|
6815
6815
|
class: "flex flex-wrap gap-8"
|
|
6816
6816
|
}, [T])])
|
|
6817
6817
|
});
|
|
@@ -6854,7 +6854,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6854
6854
|
}]), S = z(() => ({
|
|
6855
6855
|
type: a.version !== ee.F_MENU_VERSION.enum.v4
|
|
6856
6856
|
}));
|
|
6857
|
-
function
|
|
6857
|
+
function R() {
|
|
6858
6858
|
r.open({
|
|
6859
6859
|
title: l("menu.product.form.group.add"),
|
|
6860
6860
|
contentComponent: Bc,
|
|
@@ -6948,14 +6948,14 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6948
6948
|
title: b(l)("menu.product.form.group.title"),
|
|
6949
6949
|
"sub-title": b(l)("menu.product.form.group.subtitle")
|
|
6950
6950
|
}, {
|
|
6951
|
-
"append-title": G(() => [
|
|
6951
|
+
"append-title": G(() => [A(C, {
|
|
6952
6952
|
class: "flex-shrink-0",
|
|
6953
6953
|
label: b(l)("menu.product.form.group.add"),
|
|
6954
6954
|
"prepend-icon": "add",
|
|
6955
6955
|
variant: "secondary",
|
|
6956
|
-
onClick:
|
|
6956
|
+
onClick: R
|
|
6957
6957
|
}, null, 8, ["label"])]),
|
|
6958
|
-
default: G(() => [
|
|
6958
|
+
default: G(() => [A(ua, null, {
|
|
6959
6959
|
default: G(() => {
|
|
6960
6960
|
var V;
|
|
6961
6961
|
return [((V = p.value) == null ? void 0 : V.length) > 0 ? (U(), Z(T, {
|
|
@@ -7020,10 +7020,10 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7020
7020
|
return s(i.form.inventoryBindings || [], ((_ = i.form.variant) == null ? void 0 : _.variantCombinations) || [], u.value, o.variants);
|
|
7021
7021
|
});
|
|
7022
7022
|
function d(_, y) {
|
|
7023
|
-
var
|
|
7023
|
+
var R, M;
|
|
7024
7024
|
let g = ot.clone(i.form);
|
|
7025
7025
|
const v = g.variant;
|
|
7026
|
-
if ((((
|
|
7026
|
+
if ((((R = v == null ? void 0 : v.variantCombinations) == null ? void 0 : R.length) ?? 0) > 0 && v) {
|
|
7027
7027
|
const O = v.variantCombinations.findIndex((x) => x.combinationKey === _);
|
|
7028
7028
|
if (O < 0) return;
|
|
7029
7029
|
const w = ot.clone(v.variantCombinations);
|
|
@@ -7071,9 +7071,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7071
7071
|
enableSorting: !1,
|
|
7072
7072
|
cell: (_) => {
|
|
7073
7073
|
const y = _.row.original;
|
|
7074
|
-
return l.value ?
|
|
7074
|
+
return l.value ? A("div", {
|
|
7075
7075
|
class: "flex items-center justify-end"
|
|
7076
|
-
}, [
|
|
7076
|
+
}, [A(li, {
|
|
7077
7077
|
name: y.name,
|
|
7078
7078
|
initialValue: y.bindings ?? [],
|
|
7079
7079
|
title: n("menu.inventory.dialog.title", {
|
|
@@ -7085,8 +7085,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7085
7085
|
}, {
|
|
7086
7086
|
default: ({
|
|
7087
7087
|
trigger: g
|
|
7088
|
-
}) =>
|
|
7089
|
-
variant:
|
|
7088
|
+
}) => A(H("fm-button"), {
|
|
7089
|
+
variant: Rt.Tertiary,
|
|
7090
7090
|
prependIcon: "edit",
|
|
7091
7091
|
textColor: pt.NeutralGray400,
|
|
7092
7092
|
onClick: g
|
|
@@ -7122,7 +7122,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7122
7122
|
"onUpdate:inventory": (v) => {
|
|
7123
7123
|
d(g._id, v);
|
|
7124
7124
|
}
|
|
7125
|
-
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)),
|
|
7125
|
+
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), A(b(Ja), {
|
|
7126
7126
|
"row-data": m.value,
|
|
7127
7127
|
onRowClick: p
|
|
7128
7128
|
}, null, 8, ["row-data"])])])]),
|
|
@@ -7154,8 +7154,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7154
7154
|
emits: ["update:form"],
|
|
7155
7155
|
setup(e, { emit: t }) {
|
|
7156
7156
|
const n = e, i = rn(), a = Te(), o = So(), { t: r } = Se(), l = t, s = z(() => a.rules.item), u = z(() => {
|
|
7157
|
-
var
|
|
7158
|
-
const v = n.isOverride ? ((
|
|
7157
|
+
var R, M;
|
|
7158
|
+
const v = n.isOverride ? ((R = n.fallback) == null ? void 0 : R.unit) ?? ((M = n.fallback) == null ? void 0 : M.perXUnit) : void 0, S = n.form.unit ?? n.form.perXUnit ?? v;
|
|
7159
7159
|
return S != null;
|
|
7160
7160
|
}), m = (v) => {
|
|
7161
7161
|
l("update:form", "unit", v ? "" : void 0), l("update:form", "perXUnit", v ? 0 : void 0);
|
|
@@ -7174,8 +7174,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7174
7174
|
}
|
|
7175
7175
|
function E(v) {
|
|
7176
7176
|
if (!v && n.form.perXUnit) {
|
|
7177
|
-
const [S,
|
|
7178
|
-
if (
|
|
7177
|
+
const [S, R] = n.form.perXUnit.toString().split(".");
|
|
7178
|
+
if (R && R.length > 4) {
|
|
7179
7179
|
const O = (typeof n.form.perXUnit == "string" ? parseFloat(n.form.perXUnit) : n.form.perXUnit).toFixed(4);
|
|
7180
7180
|
l("update:form", "perXUnit", parseFloat(O));
|
|
7181
7181
|
}
|
|
@@ -7183,7 +7183,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7183
7183
|
}
|
|
7184
7184
|
const _ = te(!1);
|
|
7185
7185
|
async function y() {
|
|
7186
|
-
var S,
|
|
7186
|
+
var S, R, M, O, w, x, k;
|
|
7187
7187
|
if (!(n.form.name || "")) {
|
|
7188
7188
|
const I = document.getElementById("product-name");
|
|
7189
7189
|
if (I) {
|
|
@@ -7206,7 +7206,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7206
7206
|
Ge,
|
|
7207
7207
|
{
|
|
7208
7208
|
name: n.form.name || "",
|
|
7209
|
-
lat: (M = (
|
|
7209
|
+
lat: (M = (R = (S = i.currentRestaurant) == null ? void 0 : S.value) == null ? void 0 : R.profile.address.coordinates) == null ? void 0 : M[1],
|
|
7210
7210
|
lon: (x = (w = (O = i.currentRestaurant) == null ? void 0 : O.value) == null ? void 0 : w.profile.address.coordinates) == null ? void 0 : x[0]
|
|
7211
7211
|
},
|
|
7212
7212
|
!0
|
|
@@ -7220,7 +7220,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7220
7220
|
return ((v = a.currentCatalog) == null ? void 0 : v.usePriceTiers) ?? [];
|
|
7221
7221
|
});
|
|
7222
7222
|
return (v, S) => {
|
|
7223
|
-
const
|
|
7223
|
+
const R = H("fm-select"), M = H("FmButton"), O = H("fm-checkbox"), w = H("fm-text-field"), x = fo("tooltip");
|
|
7224
7224
|
return U(), Z(lt, {
|
|
7225
7225
|
title: b(r)("menu.product.form.price.title")
|
|
7226
7226
|
}, {
|
|
@@ -7228,7 +7228,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7228
7228
|
var k;
|
|
7229
7229
|
return [
|
|
7230
7230
|
B("div", Kc, [
|
|
7231
|
-
|
|
7231
|
+
A(Pt, {
|
|
7232
7232
|
disable: g.value.length > 0 && b(a).currentCatalog && !b(a).currentScheduler,
|
|
7233
7233
|
min: 0,
|
|
7234
7234
|
"model-value": v.form.price || null,
|
|
@@ -7242,7 +7242,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7242
7242
|
"onUpdate:modelValue": S[0] || (S[0] = (I) => I && l("update:form", "price", I))
|
|
7243
7243
|
}, {
|
|
7244
7244
|
append: G(() => [
|
|
7245
|
-
Xt(
|
|
7245
|
+
Xt(A(Ho, {
|
|
7246
7246
|
"pure-styling": "",
|
|
7247
7247
|
onClick: y
|
|
7248
7248
|
}, null, 512), [
|
|
@@ -7251,7 +7251,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7251
7251
|
]),
|
|
7252
7252
|
_: 1
|
|
7253
7253
|
}, 8, ["disable", "model-value", "placeholder", "rules", "label"]),
|
|
7254
|
-
R
|
|
7254
|
+
A(R, {
|
|
7255
7255
|
disabled: !s.value.tax || !d.value.systemCode,
|
|
7256
7256
|
items: d.value.countryTaxOptions,
|
|
7257
7257
|
label: d.value.systemCode ? b(r)("menu.product.form.price.fields.tax.label_with_code", {
|
|
@@ -7270,7 +7270,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7270
7270
|
description: b(r)("menu.price_tier.description")
|
|
7271
7271
|
}, {
|
|
7272
7272
|
append: G(() => [
|
|
7273
|
-
|
|
7273
|
+
A(M, {
|
|
7274
7274
|
label: b(r)("menu.price_tier.add_price_group"),
|
|
7275
7275
|
icon: "add",
|
|
7276
7276
|
variant: "secondary",
|
|
@@ -7291,14 +7291,14 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7291
7291
|
}),
|
|
7292
7292
|
_: 1
|
|
7293
7293
|
}, 8, ["label", "description"])) : se("", !0),
|
|
7294
|
-
|
|
7294
|
+
A(_t, {
|
|
7295
7295
|
label: b(r)("menu.product.form.price.settings.title")
|
|
7296
7296
|
}, {
|
|
7297
7297
|
default: G(() => {
|
|
7298
7298
|
var I, N, P;
|
|
7299
7299
|
return [
|
|
7300
7300
|
B("div", Yc, [
|
|
7301
|
-
|
|
7301
|
+
A(O, {
|
|
7302
7302
|
disabled: !s.value.openPrice || v.isAddon,
|
|
7303
7303
|
"model-value": v.form.openPrice ?? ((I = v.fallback) == null ? void 0 : I.openPrice) ?? !1,
|
|
7304
7304
|
value: v.form.openPrice,
|
|
@@ -7307,7 +7307,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7307
7307
|
"onUpdate:modelValue": S[3] || (S[3] = (D) => l("update:form", "openPrice", D))
|
|
7308
7308
|
}, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
|
|
7309
7309
|
B("div", Xc, [
|
|
7310
|
-
|
|
7310
|
+
A(O, {
|
|
7311
7311
|
disabled: !s.value.unit || v.isAddon,
|
|
7312
7312
|
"model-value": u.value,
|
|
7313
7313
|
value: u.value,
|
|
@@ -7318,7 +7318,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7318
7318
|
u.value ? (U(), re("div", qc, [
|
|
7319
7319
|
B("p", Jc, ye(b(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
|
|
7320
7320
|
B("div", Zc, [
|
|
7321
|
-
|
|
7321
|
+
A(w, {
|
|
7322
7322
|
disabled: !s.value.unit,
|
|
7323
7323
|
"model-value": v.form.perXUnit || ((N = v.fallback) == null ? void 0 : N.perXUnit) || null,
|
|
7324
7324
|
rules: [
|
|
@@ -7333,7 +7333,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7333
7333
|
}, null, 8, ["disabled", "model-value", "rules", "placeholder"])
|
|
7334
7334
|
]),
|
|
7335
7335
|
B("div", Qc, [
|
|
7336
|
-
|
|
7336
|
+
A(w, {
|
|
7337
7337
|
disabled: !s.value.unit,
|
|
7338
7338
|
"model-value": v.form.unit || ((P = v.fallback) == null ? void 0 : P.unit) || null,
|
|
7339
7339
|
rules: [
|
|
@@ -7346,7 +7346,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7346
7346
|
])) : se("", !0)
|
|
7347
7347
|
]),
|
|
7348
7348
|
s.value.costing ? (U(), re("div", ed, [
|
|
7349
|
-
|
|
7349
|
+
A(O, {
|
|
7350
7350
|
"model-value": !!v.form.costing,
|
|
7351
7351
|
value: !!v.form.costing,
|
|
7352
7352
|
label: b(r)("menu.product.form.price.settings.track_costing.label"),
|
|
@@ -7354,7 +7354,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7354
7354
|
}, null, 8, ["model-value", "value", "label"]),
|
|
7355
7355
|
v.form.costing ? (U(), re("div", td, [
|
|
7356
7356
|
B("div", nd, [
|
|
7357
|
-
|
|
7357
|
+
A(Pt, {
|
|
7358
7358
|
class: "w-full",
|
|
7359
7359
|
min: 0,
|
|
7360
7360
|
"model-value": v.form.costing || null,
|
|
@@ -7366,7 +7366,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7366
7366
|
])) : se("", !0)
|
|
7367
7367
|
])) : se("", !0),
|
|
7368
7368
|
s.value.minPrice ? (U(), re("div", id, [
|
|
7369
|
-
|
|
7369
|
+
A(O, {
|
|
7370
7370
|
disabled: !s.value.minPrice || v.isAddon,
|
|
7371
7371
|
"model-value": !!v.form.minPrice,
|
|
7372
7372
|
value: !!v.form.minPrice,
|
|
@@ -7448,8 +7448,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7448
7448
|
), (d, c) => {
|
|
7449
7449
|
const p = H("fm-text-field"), E = H("fm-button"), _ = H("fm-side-sheet");
|
|
7450
7450
|
return U(), re(Ue, null, [
|
|
7451
|
-
|
|
7452
|
-
|
|
7451
|
+
Re(d.$slots, "default", { trigger: u }),
|
|
7452
|
+
A(_, {
|
|
7453
7453
|
id: "variant-form",
|
|
7454
7454
|
modelValue: s.value,
|
|
7455
7455
|
"onUpdate:modelValue": c[3] || (c[3] = (y) => s.value = y),
|
|
@@ -7466,14 +7466,14 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7466
7466
|
]),
|
|
7467
7467
|
"side-sheet-footer": G(() => [
|
|
7468
7468
|
B("div", ud, [
|
|
7469
|
-
|
|
7469
|
+
A(E, {
|
|
7470
7470
|
label: o.value,
|
|
7471
7471
|
loading: l.value,
|
|
7472
7472
|
size: "lg",
|
|
7473
7473
|
type: "submit",
|
|
7474
7474
|
variant: "primary"
|
|
7475
7475
|
}, null, 8, ["label", "loading"]),
|
|
7476
|
-
|
|
7476
|
+
A(E, {
|
|
7477
7477
|
label: b(t)("menu.common.actions.cancel"),
|
|
7478
7478
|
size: "lg",
|
|
7479
7479
|
variant: "tertiary",
|
|
@@ -7483,7 +7483,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7483
7483
|
]),
|
|
7484
7484
|
default: G(() => [
|
|
7485
7485
|
B("div", ld, [
|
|
7486
|
-
|
|
7486
|
+
A(p, {
|
|
7487
7487
|
modelValue: r.value.name,
|
|
7488
7488
|
"onUpdate:modelValue": c[0] || (c[0] = (y) => r.value.name = y),
|
|
7489
7489
|
rules: [
|
|
@@ -7563,8 +7563,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7563
7563
|
});
|
|
7564
7564
|
}
|
|
7565
7565
|
function _(g, v) {
|
|
7566
|
-
var
|
|
7567
|
-
let S = [...((M = (
|
|
7566
|
+
var R, M;
|
|
7567
|
+
let S = [...((M = (R = n.form) == null ? void 0 : R.print) == null ? void 0 : M.department) ?? []];
|
|
7568
7568
|
v && !S.includes(g) ? S = [...S, g] : v || (S = S.filter((O) => O !== g)), o("update:form", "print", {
|
|
7569
7569
|
...r(),
|
|
7570
7570
|
...n.form.print,
|
|
@@ -7587,7 +7587,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7587
7587
|
() => s.value.length,
|
|
7588
7588
|
() => _(s.value[s.value.length - 1]._id, !0)
|
|
7589
7589
|
), (g, v) => {
|
|
7590
|
-
const S = H("fm-switch"),
|
|
7590
|
+
const S = H("fm-switch"), R = H("fm-radio"), M = H("fm-radio-group"), O = H("fm-button"), w = H("fm-checkbox");
|
|
7591
7591
|
return U(), Z(lt, {
|
|
7592
7592
|
title: b(a)("menu.product.form.print.title")
|
|
7593
7593
|
}, {
|
|
@@ -7601,7 +7601,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7601
7601
|
default: G(() => {
|
|
7602
7602
|
var k;
|
|
7603
7603
|
return [
|
|
7604
|
-
|
|
7604
|
+
A(S, {
|
|
7605
7605
|
"model-value": !((k = g.form.print) != null && k.toRoot),
|
|
7606
7606
|
label: b(a)("menu.product.form.print.config.group_parent.label"),
|
|
7607
7607
|
"label-placement": "right",
|
|
@@ -7612,14 +7612,14 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7612
7612
|
}),
|
|
7613
7613
|
_: 1
|
|
7614
7614
|
}, 8, ["label"])) : se("", !0),
|
|
7615
|
-
|
|
7615
|
+
A(M, {
|
|
7616
7616
|
label: b(a)("menu.product.form.print.kds.label"),
|
|
7617
7617
|
"model-value": ((x = g.form.print) == null ? void 0 : x.sequential) ?? !1,
|
|
7618
7618
|
"onUpdate:modelValue": v[1] || (v[1] = (k) => p(k))
|
|
7619
7619
|
}, {
|
|
7620
7620
|
default: G(() => [
|
|
7621
7621
|
B("div", md, [
|
|
7622
|
-
(U(!0), re(Ue, null, at(y.value, (k, I) => (U(), Z(
|
|
7622
|
+
(U(!0), re(Ue, null, at(y.value, (k, I) => (U(), Z(R, {
|
|
7623
7623
|
key: I,
|
|
7624
7624
|
label: k.label,
|
|
7625
7625
|
sublabel: k.description,
|
|
@@ -7629,7 +7629,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7629
7629
|
]),
|
|
7630
7630
|
_: 1
|
|
7631
7631
|
}, 8, ["label", "model-value"]),
|
|
7632
|
-
|
|
7632
|
+
A(_t, {
|
|
7633
7633
|
label: b(a)("menu.product.form.print.routes.label")
|
|
7634
7634
|
}, {
|
|
7635
7635
|
default: G(() => [
|
|
@@ -7656,7 +7656,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7656
7656
|
}, ["stop"]))
|
|
7657
7657
|
}, null, 8, ["disabled"])) : se("", !0)
|
|
7658
7658
|
]),
|
|
7659
|
-
|
|
7659
|
+
A(w, {
|
|
7660
7660
|
id: k,
|
|
7661
7661
|
"data-checked": (D = (P = n.form.print) == null ? void 0 : P.department) == null ? void 0 : D.includes(k),
|
|
7662
7662
|
label: d.value[k],
|
|
@@ -7670,11 +7670,11 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7670
7670
|
}),
|
|
7671
7671
|
_: 1
|
|
7672
7672
|
}, 8, ["item-key", "model-value"])) : se("", !0),
|
|
7673
|
-
|
|
7673
|
+
A(b(dd), { "apply-product": !1 }, {
|
|
7674
7674
|
default: G(({ trigger: k }) => [
|
|
7675
7675
|
B("div", hd, [
|
|
7676
|
-
|
|
7677
|
-
variant: b(
|
|
7676
|
+
A(O, {
|
|
7677
|
+
variant: b(Rt).Secondary,
|
|
7678
7678
|
label: b(a)("menu.product.form.print.routes.add"),
|
|
7679
7679
|
"prepend-icon": "add",
|
|
7680
7680
|
onClick: k
|
|
@@ -7828,7 +7828,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7828
7828
|
title: b(r)("menu.product.form.takeaway.title"),
|
|
7829
7829
|
"sub-title": b(r)("menu.product.form.takeaway.subtitle")
|
|
7830
7830
|
}, {
|
|
7831
|
-
default: G(() => [
|
|
7831
|
+
default: G(() => [A(E, {
|
|
7832
7832
|
columnDefs: d.value,
|
|
7833
7833
|
"page-size": b(u).length,
|
|
7834
7834
|
"row-data": b(u),
|
|
@@ -7844,7 +7844,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7844
7844
|
}, yd = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, wd = { class: "flex justify-between pb-16" }, Ed = { class: "flex gap-8" }, Sd = {
|
|
7845
7845
|
key: 1,
|
|
7846
7846
|
class: "flex flex-col items-center space-y-16"
|
|
7847
|
-
}, kd = { class: "flex flex-col items-center space-y-4 w-full" }, Cd = { class: "fm-typo-en-title-sm-600" },
|
|
7847
|
+
}, kd = { class: "flex flex-col items-center space-y-4 w-full" }, Cd = { class: "fm-typo-en-title-sm-600" }, Rd = { class: "text-fm-color-typo-secondary" }, Ad = /* @__PURE__ */ ve({
|
|
7848
7848
|
__name: "SelectVariantDialog",
|
|
7849
7849
|
props: {
|
|
7850
7850
|
selectedVariants: {}
|
|
@@ -7861,7 +7861,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7861
7861
|
const p = H("FmSearch"), E = H("FmCheckbox"), _ = H("FmButton");
|
|
7862
7862
|
return l.value.length > 0 ? (U(), re("div", bd, [
|
|
7863
7863
|
B("div", null, [
|
|
7864
|
-
|
|
7864
|
+
A(p, {
|
|
7865
7865
|
autofocus: "",
|
|
7866
7866
|
modelValue: u.value,
|
|
7867
7867
|
"onUpdate:modelValue": c[0] || (c[0] = (y) => u.value = y),
|
|
@@ -7873,7 +7873,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7873
7873
|
(U(!0), re(Ue, null, at(l.value, (y) => (U(), re("div", {
|
|
7874
7874
|
key: y.value
|
|
7875
7875
|
}, [
|
|
7876
|
-
Xt(
|
|
7876
|
+
Xt(A(E, {
|
|
7877
7877
|
modelValue: s.value,
|
|
7878
7878
|
"onUpdate:modelValue": [
|
|
7879
7879
|
c[1] || (c[1] = (g) => s.value = g),
|
|
@@ -7888,7 +7888,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7888
7888
|
])
|
|
7889
7889
|
]),
|
|
7890
7890
|
B("div", wd, [
|
|
7891
|
-
|
|
7891
|
+
A(b(Ri), null, {
|
|
7892
7892
|
default: G(({ trigger: y }) => [
|
|
7893
7893
|
b(a).rules.item.variant ? (U(), Z(_, {
|
|
7894
7894
|
key: 0,
|
|
@@ -7901,12 +7901,12 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7901
7901
|
_: 1
|
|
7902
7902
|
}),
|
|
7903
7903
|
B("div", Ed, [
|
|
7904
|
-
|
|
7904
|
+
A(_, {
|
|
7905
7905
|
label: b(o)("menu.common.actions.cancel"),
|
|
7906
7906
|
variant: "tertiary",
|
|
7907
7907
|
onClick: c[3] || (c[3] = (y) => b(t).close())
|
|
7908
7908
|
}, null, 8, ["label"]),
|
|
7909
|
-
|
|
7909
|
+
A(_, {
|
|
7910
7910
|
label: b(o)("menu.common.actions.confirm"),
|
|
7911
7911
|
onClick: c[4] || (c[4] = (y) => m())
|
|
7912
7912
|
}, null, 8, ["label"])
|
|
@@ -7915,11 +7915,11 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7915
7915
|
])) : (U(), re("div", Sd, [
|
|
7916
7916
|
B("div", kd, [
|
|
7917
7917
|
B("p", Cd, ye(b(o)("menu.common.empty.no_variant.title")), 1),
|
|
7918
|
-
B("p",
|
|
7918
|
+
B("p", Rd, ye(b(o)("menu.common.empty.no_variant.subtitle")), 1)
|
|
7919
7919
|
]),
|
|
7920
|
-
|
|
7920
|
+
A(b(Ri), null, {
|
|
7921
7921
|
default: G(({ trigger: y }) => [
|
|
7922
|
-
|
|
7922
|
+
A(_, {
|
|
7923
7923
|
label: b(o)("menu.variant.add"),
|
|
7924
7924
|
icon: "add",
|
|
7925
7925
|
onClick: (g) => y()
|
|
@@ -7992,7 +7992,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7992
7992
|
var k;
|
|
7993
7993
|
r.open({
|
|
7994
7994
|
title: "Add variant",
|
|
7995
|
-
contentComponent:
|
|
7995
|
+
contentComponent: Ad,
|
|
7996
7996
|
contentComponentProps: {
|
|
7997
7997
|
selectedVariants: ((k = n.form.variant) == null ? void 0 : k.variantGroupIds) ?? []
|
|
7998
7998
|
}
|
|
@@ -8074,7 +8074,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8074
8074
|
}
|
|
8075
8075
|
c("replace:form", a.initDynamicGroupItem(P));
|
|
8076
8076
|
}
|
|
8077
|
-
async function
|
|
8077
|
+
async function R(k, I, N) {
|
|
8078
8078
|
const P = ot.clone(n.form);
|
|
8079
8079
|
P.variant.variantCombinations[k][I] = N, p([{
|
|
8080
8080
|
key: "variant",
|
|
@@ -8096,11 +8096,11 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8096
8096
|
cell: (k) => {
|
|
8097
8097
|
var C, T;
|
|
8098
8098
|
const I = k.getValue(), D = ((C = k.row.original.fallback) == null ? void 0 : C.code) ?? n.form.code ?? ((T = n.fallback) == null ? void 0 : T.code);
|
|
8099
|
-
return
|
|
8099
|
+
return A(Be.FmTextField, {
|
|
8100
8100
|
modelValue: I,
|
|
8101
8101
|
placeholder: D || l("menu.product.form.variant.placeholders.no_code"),
|
|
8102
8102
|
"onUpdate:model-value": (V) => {
|
|
8103
|
-
|
|
8103
|
+
R(k.row.index, "code", jo(V, !0));
|
|
8104
8104
|
}
|
|
8105
8105
|
}, null);
|
|
8106
8106
|
}
|
|
@@ -8111,14 +8111,14 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8111
8111
|
cell: (k) => {
|
|
8112
8112
|
var D, C;
|
|
8113
8113
|
const I = k.getValue(), P = (D = k.row.original.fallback) == null ? void 0 : D.orderFrom;
|
|
8114
|
-
return
|
|
8114
|
+
return A(hi, {
|
|
8115
8115
|
modelValue: I,
|
|
8116
8116
|
fallback: n.form.orderFrom ?? P ?? ((C = n.fallback) == null ? void 0 : C.orderFrom),
|
|
8117
8117
|
disable: !s.value.orderFrom,
|
|
8118
8118
|
required: s.value.orderFrom && s.value.orderFromActiveOnly,
|
|
8119
8119
|
editActiveOnly: s.value.orderFromActiveOnly || !1,
|
|
8120
8120
|
"onUpdate:model-value": (T) => {
|
|
8121
|
-
|
|
8121
|
+
R(k.row.index, "orderFrom", T);
|
|
8122
8122
|
},
|
|
8123
8123
|
label: "",
|
|
8124
8124
|
defaultLabel: "Follow general"
|
|
@@ -8132,22 +8132,22 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8132
8132
|
cell: (k) => {
|
|
8133
8133
|
var C, T, V;
|
|
8134
8134
|
const I = k.getValue(), N = k.row.original, D = ((C = N.fallback) == null ? void 0 : C.price) ?? n.form.price ?? ((T = n.fallback) == null ? void 0 : T.price);
|
|
8135
|
-
return
|
|
8135
|
+
return A("div", {
|
|
8136
8136
|
class: "flex items-center gap-8"
|
|
8137
|
-
}, [
|
|
8137
|
+
}, [A(Pt, {
|
|
8138
8138
|
disable: M.value.length > 0 && i.currentCatalog && !i.currentScheduler,
|
|
8139
8139
|
placeholder: D ? Bt(D) : void 0,
|
|
8140
8140
|
modelValue: I,
|
|
8141
8141
|
min: 0,
|
|
8142
8142
|
"onUpdate:model-value": (j) => {
|
|
8143
|
-
|
|
8143
|
+
R(k.row.index, "price", j);
|
|
8144
8144
|
},
|
|
8145
8145
|
nullable: !0,
|
|
8146
8146
|
showCurrency: !1
|
|
8147
|
-
}, null), i.isV4 && !n.isOverride &&
|
|
8147
|
+
}, null), i.isV4 && !n.isOverride && A(da, {
|
|
8148
8148
|
"price-tiers": N.priceTiers,
|
|
8149
8149
|
fallback: (V = N.fallback) == null ? void 0 : V.priceTiers,
|
|
8150
|
-
"onUpdate:price-tiers": (j) =>
|
|
8150
|
+
"onUpdate:price-tiers": (j) => R(k.row.index, "priceTiers", j)
|
|
8151
8151
|
}, null)]);
|
|
8152
8152
|
}
|
|
8153
8153
|
}, {
|
|
@@ -8157,12 +8157,12 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8157
8157
|
cell: (k) => {
|
|
8158
8158
|
var C, T, V;
|
|
8159
8159
|
const I = k.getValue(), N = k.row.original, D = ((C = N.fallback) == null ? void 0 : C.minPrice) ?? n.form.minPrice ?? ((T = n.fallback) == null ? void 0 : T.minPrice);
|
|
8160
|
-
return
|
|
8160
|
+
return A(Pt, {
|
|
8161
8161
|
placeholder: D ? Bt(D) : void 0,
|
|
8162
8162
|
modelValue: I,
|
|
8163
8163
|
max: $e.Dinero.fromFdoDinero(N.price ?? ((V = N.fallback) == null ? void 0 : V.price) ?? $e.Dinero.zero().toObject()).toUnit(),
|
|
8164
8164
|
"onUpdate:model-value": (j) => {
|
|
8165
|
-
|
|
8165
|
+
R(k.row.index, "minPrice", j);
|
|
8166
8166
|
},
|
|
8167
8167
|
nullable: !0,
|
|
8168
8168
|
showCurrency: !1
|
|
@@ -8191,13 +8191,13 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8191
8191
|
}, null, 8, ["label"])) : se("", !0)]),
|
|
8192
8192
|
default: G(() => {
|
|
8193
8193
|
var T;
|
|
8194
|
-
return [B("div", Od, [
|
|
8194
|
+
return [B("div", Od, [A(D, {
|
|
8195
8195
|
"model-value": (T = k.form.variant) == null ? void 0 : T.variantGroupIds,
|
|
8196
8196
|
rules: [x]
|
|
8197
8197
|
}, {
|
|
8198
8198
|
default: G(() => {
|
|
8199
8199
|
var V;
|
|
8200
|
-
return [
|
|
8200
|
+
return [A(b(ko), {
|
|
8201
8201
|
"model-value": ((V = k.form.variant) == null ? void 0 : V.variantGroupIds) ?? [],
|
|
8202
8202
|
class: "space-y-16",
|
|
8203
8203
|
group: "variants",
|
|
@@ -8209,16 +8209,16 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8209
8209
|
element: j
|
|
8210
8210
|
}) => {
|
|
8211
8211
|
var le;
|
|
8212
|
-
return [B("div", Id, [
|
|
8213
|
-
variant: b(
|
|
8212
|
+
return [B("div", Id, [A(N, {
|
|
8213
|
+
variant: b(Rt).Tertiary,
|
|
8214
8214
|
class: "handle",
|
|
8215
8215
|
"prepend-icon": "drag_handle"
|
|
8216
|
-
}, null, 8, ["variant"]), B("div", Td, [B("p", Md, ye((le = d.value[j]) == null ? void 0 : le.name), 1),
|
|
8216
|
+
}, null, 8, ["variant"]), B("div", Td, [B("p", Md, ye((le = d.value[j]) == null ? void 0 : le.name), 1), A(P, {
|
|
8217
8217
|
class: "cursor-pointer",
|
|
8218
8218
|
name: "close",
|
|
8219
8219
|
onClick: Cn((ce) => {
|
|
8220
|
-
var
|
|
8221
|
-
return S(((
|
|
8220
|
+
var Ae;
|
|
8221
|
+
return S(((Ae = k.form.variant) == null ? void 0 : Ae.variantGroupIds.filter(($) => $ !== j)) ?? []);
|
|
8222
8222
|
}, ["stop"])
|
|
8223
8223
|
}, null, 8, ["onClick"])])])];
|
|
8224
8224
|
}),
|
|
@@ -8226,7 +8226,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8226
8226
|
}, 8, ["model-value"])];
|
|
8227
8227
|
}),
|
|
8228
8228
|
_: 1
|
|
8229
|
-
}, 8, ["model-value", "rules"]),
|
|
8229
|
+
}, 8, ["model-value", "rules"]), A(ua, null, {
|
|
8230
8230
|
default: G(() => [v.value.length ? (U(), Z(C, {
|
|
8231
8231
|
key: 0,
|
|
8232
8232
|
class: "w-full",
|
|
@@ -8335,7 +8335,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8335
8335
|
[f]: h
|
|
8336
8336
|
};
|
|
8337
8337
|
};
|
|
8338
|
-
async function
|
|
8338
|
+
async function R() {
|
|
8339
8339
|
var f, h;
|
|
8340
8340
|
c.value = p.value._id && M.value ? (await Ka(
|
|
8341
8341
|
a.mergedMenu,
|
|
@@ -8472,7 +8472,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8472
8472
|
} : void 0
|
|
8473
8473
|
});
|
|
8474
8474
|
}
|
|
8475
|
-
const
|
|
8475
|
+
const Ae = te(
|
|
8476
8476
|
p.value.takeawayUsed != null || (((ct = p.value.variant) == null ? void 0 : ct.variantCombinations) || []).some((f) => f.takeawayUsed != null) || !1
|
|
8477
8477
|
);
|
|
8478
8478
|
function $(f) {
|
|
@@ -8516,7 +8516,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8516
8516
|
Fe(() => {
|
|
8517
8517
|
var f;
|
|
8518
8518
|
return (f = p.value.price) == null ? void 0 : f.amount;
|
|
8519
|
-
},
|
|
8519
|
+
}, R, { deep: !0 }), Fe(
|
|
8520
8520
|
() => m.value,
|
|
8521
8521
|
(f) => {
|
|
8522
8522
|
f && (p.value = n.initialForm ? ge(n.initialForm) : {
|
|
@@ -8526,7 +8526,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8526
8526
|
}
|
|
8527
8527
|
), $t(() => {
|
|
8528
8528
|
var f, h;
|
|
8529
|
-
|
|
8529
|
+
R();
|
|
8530
8530
|
try {
|
|
8531
8531
|
Ge.startSession({
|
|
8532
8532
|
userId: ((f = o.sessionUser.value) == null ? void 0 : f.id) || "",
|
|
@@ -8549,7 +8549,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8549
8549
|
console.log(f);
|
|
8550
8550
|
}
|
|
8551
8551
|
});
|
|
8552
|
-
const ae =
|
|
8552
|
+
const ae = Rr();
|
|
8553
8553
|
$t(() => {
|
|
8554
8554
|
ae.isUpdatingItem || (ae.isUpdatingItem = !0, ae.storedCatalogId = a.state.currentCatalogId, ae.storedSchedulerId = a.state.currentSchedulerId);
|
|
8555
8555
|
});
|
|
@@ -8569,10 +8569,10 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8569
8569
|
}
|
|
8570
8570
|
const { isAtMost: bt } = _o(), Lt = te(null), qt = $a(Lt);
|
|
8571
8571
|
return (f, h) => (U(), re(Ue, null, [
|
|
8572
|
-
|
|
8572
|
+
Re(f.$slots, "trigger", ka(Ca({
|
|
8573
8573
|
trigger: d
|
|
8574
8574
|
}))),
|
|
8575
|
-
|
|
8575
|
+
A(Ua, {
|
|
8576
8576
|
title: l.value,
|
|
8577
8577
|
show: m.value,
|
|
8578
8578
|
"primary-action": {
|
|
@@ -8588,7 +8588,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8588
8588
|
onOnCancel: je
|
|
8589
8589
|
}, {
|
|
8590
8590
|
"append-title": G(() => [
|
|
8591
|
-
b(bt)("sm") ? (U(), Z(
|
|
8591
|
+
b(bt)("sm") ? (U(), Z(Ai, {
|
|
8592
8592
|
key: 0,
|
|
8593
8593
|
variant: "dialog",
|
|
8594
8594
|
title: I.value.title,
|
|
@@ -8598,10 +8598,10 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8598
8598
|
default: G(() => {
|
|
8599
8599
|
var L, Y;
|
|
8600
8600
|
return [
|
|
8601
|
-
b(bt)("sm") ? se("", !0) : (U(), Z(
|
|
8601
|
+
b(bt)("sm") ? se("", !0) : (U(), Z(Ai, {
|
|
8602
8602
|
key: 0,
|
|
8603
8603
|
class: "fixed",
|
|
8604
|
-
style:
|
|
8604
|
+
style: Ra({
|
|
8605
8605
|
top: "85px",
|
|
8606
8606
|
left: b(qt).right + "px"
|
|
8607
8607
|
}),
|
|
@@ -8620,8 +8620,8 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8620
8620
|
"linked-status": E.value,
|
|
8621
8621
|
"onUpdate:catalogAndScheduler": y
|
|
8622
8622
|
}, null, 8, ["linked-status"])) : se("", !0),
|
|
8623
|
-
|
|
8624
|
-
|
|
8623
|
+
A(Va, { "menu-store": b(a) }, null, 8, ["menu-store"]),
|
|
8624
|
+
A(Tt, {
|
|
8625
8625
|
toggle: N.value,
|
|
8626
8626
|
"onUpdate:toggle": [
|
|
8627
8627
|
h[1] || (h[1] = (X) => N.value = X),
|
|
@@ -8632,7 +8632,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8632
8632
|
title: b(r)("menu.product.form.sections.general.title")
|
|
8633
8633
|
}, {
|
|
8634
8634
|
default: G(() => [
|
|
8635
|
-
|
|
8635
|
+
A(tc, {
|
|
8636
8636
|
fallback: c.value,
|
|
8637
8637
|
form: p.value,
|
|
8638
8638
|
"is-addon": O.value,
|
|
@@ -8653,7 +8653,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8653
8653
|
"sub-title": b(r)("menu.product.form.sections.tagging.subtitle")
|
|
8654
8654
|
}, {
|
|
8655
8655
|
default: G(() => [
|
|
8656
|
-
|
|
8656
|
+
A(b(vo), {
|
|
8657
8657
|
entity: "item",
|
|
8658
8658
|
"model-value": p.value.customAttributes || {},
|
|
8659
8659
|
"onUpdate:modelValue": h[3] || (h[3] = (X) => S("customAttributes", X)),
|
|
@@ -8663,7 +8663,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8663
8663
|
_: 1
|
|
8664
8664
|
}, 8, ["title", "sub-title"])) : se("", !0),
|
|
8665
8665
|
w.value ? (U(), re("div", Fd)) : se("", !0),
|
|
8666
|
-
|
|
8666
|
+
A(Tt, {
|
|
8667
8667
|
toggle: C.value,
|
|
8668
8668
|
"onUpdate:toggle": [
|
|
8669
8669
|
h[4] || (h[4] = (X) => C.value = X),
|
|
@@ -8674,7 +8674,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8674
8674
|
title: b(r)("menu.product.form.sections.price.title")
|
|
8675
8675
|
}, {
|
|
8676
8676
|
default: G(() => [
|
|
8677
|
-
|
|
8677
|
+
A(rd, {
|
|
8678
8678
|
fallback: c.value,
|
|
8679
8679
|
form: p.value,
|
|
8680
8680
|
"is-addon": O.value,
|
|
@@ -8697,7 +8697,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8697
8697
|
title: "Update print"
|
|
8698
8698
|
}, {
|
|
8699
8699
|
default: G(() => [
|
|
8700
|
-
|
|
8700
|
+
A(gd, {
|
|
8701
8701
|
fallback: c.value,
|
|
8702
8702
|
form: p.value,
|
|
8703
8703
|
"full-combinations": g.value,
|
|
@@ -8710,7 +8710,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8710
8710
|
_: 1
|
|
8711
8711
|
}, 8, ["toggle"])) : se("", !0),
|
|
8712
8712
|
M.value ? se("", !0) : (U(), re("div", xd)),
|
|
8713
|
-
|
|
8713
|
+
A(Tt, {
|
|
8714
8714
|
toggle: V.value,
|
|
8715
8715
|
"onUpdate:toggle": [
|
|
8716
8716
|
h[10] || (h[10] = (X) => V.value = X),
|
|
@@ -8721,7 +8721,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8721
8721
|
title: b(r)("menu.product.form.sections.variant.title")
|
|
8722
8722
|
}, {
|
|
8723
8723
|
default: G(() => [
|
|
8724
|
-
|
|
8724
|
+
A(Dd, {
|
|
8725
8725
|
fallback: c.value,
|
|
8726
8726
|
form: p.value,
|
|
8727
8727
|
"full-combinations": g.value,
|
|
@@ -8746,7 +8746,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8746
8746
|
title: "Update group"
|
|
8747
8747
|
}, {
|
|
8748
8748
|
default: G(() => [
|
|
8749
|
-
|
|
8749
|
+
A(Gc, {
|
|
8750
8750
|
fallback: c.value,
|
|
8751
8751
|
form: p.value,
|
|
8752
8752
|
"full-combinations": g.value,
|
|
@@ -8771,7 +8771,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8771
8771
|
title: b(r)("menu.product.form.sections.inventory.title")
|
|
8772
8772
|
}, {
|
|
8773
8773
|
default: G(() => [
|
|
8774
|
-
|
|
8774
|
+
A(jc, {
|
|
8775
8775
|
fallback: c.value,
|
|
8776
8776
|
form: p.value,
|
|
8777
8777
|
"full-combinations": g.value,
|
|
@@ -8786,9 +8786,9 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8786
8786
|
s.value.takeaway(p.value.category ?? ((L = c.value) == null ? void 0 : L.category)) && !M.value ? (U(), re("div", zd)) : se("", !0),
|
|
8787
8787
|
s.value.takeaway(p.value.category ?? ((Y = c.value) == null ? void 0 : Y.category)) ? (U(), Z(Tt, {
|
|
8788
8788
|
key: 12,
|
|
8789
|
-
toggle:
|
|
8789
|
+
toggle: Ae.value,
|
|
8790
8790
|
"onUpdate:toggle": [
|
|
8791
|
-
h[19] || (h[19] = (X) =>
|
|
8791
|
+
h[19] || (h[19] = (X) => Ae.value = X),
|
|
8792
8792
|
h[20] || (h[20] = (X) => $(X))
|
|
8793
8793
|
],
|
|
8794
8794
|
disabled: !M.value,
|
|
@@ -8796,7 +8796,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8796
8796
|
title: b(r)("menu.product.form.sections.takeaway.title")
|
|
8797
8797
|
}, {
|
|
8798
8798
|
default: G(() => [
|
|
8799
|
-
|
|
8799
|
+
A(_d, {
|
|
8800
8800
|
fallback: c.value,
|
|
8801
8801
|
form: p.value,
|
|
8802
8802
|
"full-combinations": g.value,
|
|
@@ -8822,7 +8822,7 @@ function pa(e, t) {
|
|
|
8822
8822
|
var o, r, l, s;
|
|
8823
8823
|
const n = (o = t.groups) == null ? void 0 : o.reduce((u, m) => {
|
|
8824
8824
|
const d = e.groups.find((p) => p._id === m._id);
|
|
8825
|
-
return
|
|
8825
|
+
return Rn(e.items, d.items) === ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC && u.push(d), u;
|
|
8826
8826
|
}, []);
|
|
8827
8827
|
if (!(n != null && n.length)) return t;
|
|
8828
8828
|
const i = n.map((u) => u._id);
|
|
@@ -9095,7 +9095,7 @@ const Si = mo("item-manager", () => {
|
|
|
9095
9095
|
e.currentScheduler ? await _(w) : await y(w)
|
|
9096
9096
|
);
|
|
9097
9097
|
}
|
|
9098
|
-
function
|
|
9098
|
+
function R(w) {
|
|
9099
9099
|
const { updateMenu: x } = a, k = w.length > 1 ? `${w.length} products` : w[0].name;
|
|
9100
9100
|
n.open({
|
|
9101
9101
|
title: r("menu.common.dialog.remove.product.title"),
|
|
@@ -9103,7 +9103,7 @@ const Si = mo("item-manager", () => {
|
|
|
9103
9103
|
primaryActions: {
|
|
9104
9104
|
text: r("menu.common.actions.remove"),
|
|
9105
9105
|
close: !0,
|
|
9106
|
-
variant:
|
|
9106
|
+
variant: Rt.Destructive
|
|
9107
9107
|
},
|
|
9108
9108
|
secondaryActions: {
|
|
9109
9109
|
text: r("menu.common.actions.cancel"),
|
|
@@ -9138,7 +9138,7 @@ const Si = mo("item-manager", () => {
|
|
|
9138
9138
|
e,
|
|
9139
9139
|
a.updateMenu,
|
|
9140
9140
|
n
|
|
9141
|
-
).unlinkProduct(w.map((x) => x._id)) :
|
|
9141
|
+
).unlinkProduct(w.map((x) => x._id)) : R(w);
|
|
9142
9142
|
}
|
|
9143
9143
|
async function O(w) {
|
|
9144
9144
|
const { updateMenu: x } = a;
|
|
@@ -9165,7 +9165,7 @@ export {
|
|
|
9165
9165
|
$u as C,
|
|
9166
9166
|
cc as F,
|
|
9167
9167
|
Pr as I,
|
|
9168
|
-
|
|
9168
|
+
Ro as M,
|
|
9169
9169
|
dd as P,
|
|
9170
9170
|
Ge as R,
|
|
9171
9171
|
Lu as S,
|
|
@@ -9180,10 +9180,10 @@ export {
|
|
|
9180
9180
|
Gd as g,
|
|
9181
9181
|
Co as h,
|
|
9182
9182
|
Em as i,
|
|
9183
|
-
|
|
9183
|
+
Rn as j,
|
|
9184
9184
|
pa as k,
|
|
9185
9185
|
ua as l,
|
|
9186
|
-
|
|
9186
|
+
Ao as m,
|
|
9187
9187
|
jo as n,
|
|
9188
9188
|
Hd as o,
|
|
9189
9189
|
ca as p,
|
|
@@ -9192,7 +9192,7 @@ export {
|
|
|
9192
9192
|
hc as s,
|
|
9193
9193
|
Sm as t,
|
|
9194
9194
|
Si as u,
|
|
9195
|
-
|
|
9195
|
+
Ar as v,
|
|
9196
9196
|
Or as w,
|
|
9197
9197
|
_n as x,
|
|
9198
9198
|
ma as y
|