@feedmepos/mf-menu 0.31.20 → 0.31.21-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-BQUkNJEB.js → App-B3OCb5RR.js} +20 -20
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DIfunp22.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CT8VhwK5.js} +2 -2
- package/dist/{Catalog-x790qZ1c.js → Catalog-Crp77rcP.js} +5 -5
- package/dist/{Category-BBZKAIIP.js → Category-BVu5UJrq.js} +5 -5
- package/dist/{Category-cFI0J6Ez.js → Category-BjvbQbZ7.js} +4 -4
- package/dist/{CookingGuide-DgyGjScz.js → CookingGuide-BHQGRbhU.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BZBqRHGk.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Q9trC3FK.js} +1 -1
- package/dist/{Group-DefAPHI8.js → Group-99bZ1CMh.js} +3 -3
- package/dist/{Group-C6bUrhmu.js → Group-CW5zq8Yw.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BkLVebzQ.js → Group.vue_vue_type_script_setup_true_lang-bJYDfovT.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dk5Iw-RK.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-GagxGiml.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-B5afy9mA.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Cg9-bTqW.js} +6 -6
- package/dist/{Ingredient-CGp-HVfi.js → Ingredient-CpL3BT17.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BrB7XLtv.js → InventoryBinding.vue_vue_type_script_setup_true_lang-VXqkBhcw.js} +1052 -1052
- package/dist/{LinkProductSideSheet-DItWw16k.js → LinkProductSideSheet-CVTvEime.js} +1 -1
- package/dist/{MenuSetting-UpcHvjRh.js → MenuSetting-rws3dmLt.js} +4 -4
- package/dist/{PrintRoute-DtFZll7U.js → PrintRoute-D_xQlVrm.js} +3 -3
- package/dist/{Product-B1ZBp14N.js → Product-B4W4ytv_.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CvWp-VEv.js → Product.vue_vue_type_script_setup_true_lang-B3ADUwr4.js} +11 -11
- package/dist/{ProductInternalTools-Bi1Tq1Qu.js → ProductInternalTools-Diaj5lEd.js} +6 -6
- package/dist/{Products-BEpi_wNN.js → Products-BJNj0kUO.js} +10 -10
- package/dist/{Publish-DQu0Nj2z.js → Publish-DBoxL0FR.js} +3 -3
- package/dist/{Recipe-B5OgTIxI.js → Recipe-Bwyl4spZ.js} +4 -4
- package/dist/{Scheduler-B8CY612f.js → Scheduler-ckowO38_.js} +3 -3
- package/dist/{ServingSequence-BilNFfbS.js → ServingSequence-DtqKL3vx.js} +3 -3
- package/dist/{Setting-4ddvoB4-.js → Setting-Csbqw4mB.js} +4 -4
- package/dist/{Subcategory-B1f-LZY4.js → Subcategory-BzQmw5gn.js} +4 -4
- package/dist/{Takeaway-cSzNrSqm.js → Takeaway-Cu2Ncaon.js} +1 -1
- package/dist/{Takeaway-B4UnH4NS.js → Takeaway-o1XqSpdS.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CNvry7o1.js → Takeaway.vue_vue_type_script_setup_true_lang-DKU7nLcY.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Cs6nziDS.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CjByqxo7.js} +13 -13
- package/dist/{Unit-nlhFm41D.js → Unit-AyF3opf9.js} +2 -2
- package/dist/{Variant-CGvtOpjB.js → Variant-D4OU4Axt.js} +3 -3
- package/dist/{_id_-DxbDMTiy.js → _id_-B2WcZG_1.js} +9 -9
- package/dist/{app-C4bixNB9.js → app-BakElBS9.js} +1 -1
- package/dist/{app-DrdVp3SW.js → app-Fi3FV6XU.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +4 -4
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +4 -4
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +4 -4
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +4 -4
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +2 -2
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +2 -2
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +6 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +2 -2
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +6 -6
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +4 -4
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +6 -6
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +2 -2
- package/dist/apps/mf-menu/src/helper/menu.d.ts +8 -8
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +6 -6
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +6 -6
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +2 -2
- package/dist/apps/mf-menu/src/stores/menu.d.ts +6 -6
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +4 -4
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-DXVGHD9F.js +24 -0
- package/dist/assets/override-menu-D354p4dS.js +24 -0
- package/dist/assets/validate-menu-DSU0Yo_w.js +24 -0
- package/dist/{catalog-DrqIjPug.js → catalog-BclJn-tJ.js} +1 -1
- package/dist/{catalogSetting-4RjJTybs.js → catalogSetting-DgNhmy1P.js} +1 -1
- package/dist/{category-CgRzE4kT.js → category--58oFtXa.js} +1 -1
- package/dist/{currency-BI5uUohQ.js → currency-B6vV7YvN.js} +1 -1
- package/dist/{dayjs.min-Boy4X0_5.js → dayjs.min-BHBf5xnE.js} +1 -1
- package/dist/{index-CSLVinEv.js → index-BM67PLtA.js} +2 -2
- package/dist/{index-CSjXwt59.js → index-Bd6N7ScE.js} +3 -3
- package/dist/{index-yGo-CS_-.js → index-CA1VTjPo.js} +1 -1
- package/dist/{item-DYQXupLW.js → item-P4Z9ajrd.js} +643 -643
- package/dist/{jszip.min-d69CDfD0.js → jszip.min-BFhB-Kfj.js} +245 -245
- package/dist/{menu-BcV6fl9H.js → menu-CM3LA64x.js} +1 -1
- package/dist/{menu-DDBdorpW.js → menu-DwfRaHd6.js} +17672 -18285
- package/dist/{priceTier-R4zmZ5zn.js → priceTier-CfPsa35F.js} +1 -1
- package/dist/{scheduler-BIqdLTHu.js → scheduler-DL0twxji.js} +3 -3
- package/dist/{subcategory-B48DDOCI.js → subcategory-D6wfrDM6.js} +33 -33
- package/dist/{toExcel-CUzBCz5S.js → toExcel-BAShvc1M.js} +2 -2
- package/dist/{unit-um0292PJ.js → unit-BXDFIbPg.js} +1 -1
- package/package.json +2 -2
- package/dist/assets/linked-status-B5JPbRJw.js +0 -24
- package/dist/assets/override-menu-BZt_XHsT.js +0 -24
- package/dist/assets/validate-menu-DuUzgriW.js +0 -24
|
@@ -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 Sn, 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 ka, normalizeProps as Sa, guardReactiveProps as Ca, normalizeStyle as Ra } from "vue";
|
|
3
|
+
import { J as Ve, G as ee, V as Aa, aj as Oa, Y as Ia, H as ge, B as qe, T as go, u as Te, A as $e, I as ot, a1 as Ta, D as St, O as Ct, P as Ma, Q as Da, R as Na, U as Nn, ac as Pa, M as Fa, K as Si } from "./menu-DwfRaHd6.js";
|
|
4
4
|
import { useI18n as ke, 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-BclJn-tJ.js";
|
|
7
7
|
import { c as La } 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 xa } from "./LinkProductSideSheet-CVTvEime.js";
|
|
10
10
|
import { _ as lt, a as Ua } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
11
|
-
import { s as Hn, F as Va, _ as za } from "./index-
|
|
12
|
-
import { I as $a, u as Ba } from "./app-
|
|
13
|
-
import { u as Ga } from "./app-
|
|
14
|
-
import { a as Wa, g as wo, d as Ha, c as ja, b as Ka, m as Ya } from "./subcategory-
|
|
11
|
+
import { s as Hn, F as Va, _ as za } from "./index-CA1VTjPo.js";
|
|
12
|
+
import { I as $a, u as Ba } from "./app-Fi3FV6XU.js";
|
|
13
|
+
import { u as Ga } from "./app-BakElBS9.js";
|
|
14
|
+
import { a as Wa, g as wo, d as Ha, c as ja, b as Ka, m as Ya } from "./subcategory-D6wfrDM6.js";
|
|
15
15
|
import { _ as _t } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
16
|
-
import { u as Xa } from "./category
|
|
16
|
+
import { u as Xa } from "./category--58oFtXa.js";
|
|
17
17
|
import "@vue/devtools-api";
|
|
18
18
|
import { u as ui } from "./discardConfirm-BHni0LNu.js";
|
|
19
|
-
import { _ as
|
|
19
|
+
import { _ as Nt, l as jn, T as qa } from "./index-Bd6N7ScE.js";
|
|
20
20
|
import { useInventoryStore as Eo, InventoryBindingForm as Ja, InventoryBindingSummary as Za } from "@feedmepos/mf-inventory-portal";
|
|
21
21
|
import { c as sn } from "./check-C9mY6LiX.js";
|
|
22
22
|
import { c as Qa } from "./object-DVUNCr7w.js";
|
|
23
|
-
import { f as Bt } from "./currency-
|
|
24
|
-
import { u as ko } from "./priceTier-
|
|
23
|
+
import { f as Bt } from "./currency-B6vV7YvN.js";
|
|
24
|
+
import { u as ko } from "./priceTier-CfPsa35F.js";
|
|
25
25
|
import { u as er } from "./search-BAPEUu1R.js";
|
|
26
26
|
import { c as tr } from "./string-DpfFixWH.js";
|
|
27
27
|
import { d as So } from "./vuedraggable-CK8z7qA8.js";
|
|
28
|
-
import { _ as nr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
29
|
-
import { V as
|
|
28
|
+
import { _ as nr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CT8VhwK5.js";
|
|
29
|
+
import { V as Ri } from "./index-BM67PLtA.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 = k == null ? void 0 : k.variant) == null ? void 0 : O.variantGroupIds) || [])[p.combinationKey]
|
|
392
392
|
} : k, y = (w = o.find((S) => S._id === s._id)) == null ? void 0 : w.items.find((S) => S._id === p._id && S.combinationKey === p.combinationKey), g = !n && !p.combinationKey, v = (x = u.find(
|
|
393
393
|
(S) => S._id == p._id && S.combinationKey == p.combinationKey
|
|
394
|
-
)) == null ? void 0 : x.price, E = p.name ?? (y == null ? void 0 : y.name) ?? (_ == null ? void 0 : _.name) ?? "",
|
|
394
|
+
)) == null ? void 0 : x.price, E = p.name ?? (y == null ? void 0 : y.name) ?? (_ == null ? void 0 : _.name) ?? "", R = {
|
|
395
395
|
...p,
|
|
396
396
|
name: E,
|
|
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 or(e, t) {
|
|
|
507
507
|
}
|
|
508
508
|
function ar(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 sr(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 lr = /* @__PURE__ */
|
|
528
|
+
const lr = /* @__PURE__ */ At(rr, [["render", sr]]), ur = {
|
|
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
|
-
}, cr = { class: "fm-typo-en-title-sm-600" },
|
|
531
|
+
}, cr = { 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 lr = /* @__PURE__ */ Rt(rr, [["render", sr]]), ur = {
|
|
|
554
554
|
const r = H("FmButton");
|
|
555
555
|
return t.variant === "full" ? (U(), re("div", ur, [
|
|
556
556
|
B("div", cr, ye(a.title), 1),
|
|
557
|
-
|
|
557
|
+
A(lr),
|
|
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 lr = /* @__PURE__ */ Rt(rr, [["render", sr]]), ur = {
|
|
|
626
626
|
]),
|
|
627
627
|
B("div", hr, [
|
|
628
628
|
B("div", gr, [
|
|
629
|
-
|
|
629
|
+
A(k, {
|
|
630
630
|
label: b(a)("menu.common.labels.catalog"),
|
|
631
631
|
items: l.value,
|
|
632
632
|
modelValue: r.value,
|
|
@@ -634,7 +634,7 @@ const lr = /* @__PURE__ */ Rt(rr, [["render", sr]]), ur = {
|
|
|
634
634
|
}, null, 8, ["label", "items", "modelValue"])
|
|
635
635
|
]),
|
|
636
636
|
B("div", vr, [
|
|
637
|
-
|
|
637
|
+
A(k, {
|
|
638
638
|
label: b(a)("menu.common.labels.scheduler"),
|
|
639
639
|
items: m.value,
|
|
640
640
|
modelValue: s.value,
|
|
@@ -661,7 +661,7 @@ const lr = /* @__PURE__ */ Rt(rr, [["render", sr]]), ur = {
|
|
|
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 lr = /* @__PURE__ */ Rt(rr, [["render", sr]]), ur = {
|
|
|
672
672
|
B("p", wr, ye(i.title), 1),
|
|
673
673
|
i.description ? (U(), re("p", Er, 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", kr, [
|
|
683
|
-
|
|
683
|
+
Re(i.$slots, "default", {}, void 0, !0)
|
|
684
684
|
])) : se("", !0)
|
|
685
685
|
]),
|
|
686
686
|
_: 3
|
|
@@ -690,10 +690,10 @@ const lr = /* @__PURE__ */ Rt(rr, [["render", sr]]), ur = {
|
|
|
690
690
|
}));
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
}), Tt = /* @__PURE__ */
|
|
694
|
-
var Cr = { remy: "https://remy
|
|
693
|
+
}), Tt = /* @__PURE__ */ At(Sr, [["__scopeId", "data-v-e920f110"]]);
|
|
694
|
+
var Cr = { remy: "https://remy.feedmeapi.com/v1" };
|
|
695
695
|
let Ge;
|
|
696
|
-
function
|
|
696
|
+
function Rr(e) {
|
|
697
697
|
const t = Ga(), n = $a(e), i = z(() => {
|
|
698
698
|
var s, u, m;
|
|
699
699
|
return ((m = (u = (s = t.publicSetting) == null ? void 0 : s.aiSettings) == null ? void 0 : u.remy) == null ? void 0 : m.enable) || !1;
|
|
@@ -716,12 +716,12 @@ function Ar(e) {
|
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
718
|
function Em(e) {
|
|
719
|
-
Ge =
|
|
719
|
+
Ge = Rr({
|
|
720
720
|
token: e,
|
|
721
721
|
url: Cr.remy
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
|
-
const
|
|
724
|
+
const Ar = mo("menu-edit-state", {
|
|
725
725
|
state: () => ({
|
|
726
726
|
isUpdatingItem: !1,
|
|
727
727
|
storedCatalogId: null,
|
|
@@ -761,10 +761,10 @@ async function km(e, t, n = {}) {
|
|
|
761
761
|
const Tr = {}, Mr = { class: "pl-32" };
|
|
762
762
|
function Dr(e, t) {
|
|
763
763
|
return U(), re("div", Mr, [
|
|
764
|
-
|
|
764
|
+
Re(e.$slots, "default")
|
|
765
765
|
]);
|
|
766
766
|
}
|
|
767
|
-
const
|
|
767
|
+
const Nr = /* @__PURE__ */ At(Tr, [["render", Dr]]);
|
|
768
768
|
function Oi(e, t) {
|
|
769
769
|
var n = Object.keys(e);
|
|
770
770
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -789,7 +789,7 @@ function de(e) {
|
|
|
789
789
|
function Ye(e, t, n) {
|
|
790
790
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Pr(e, t) {
|
|
793
793
|
if (e == null) return {};
|
|
794
794
|
var n, i, a = function(r, l) {
|
|
795
795
|
if (r == null) return {};
|
|
@@ -803,24 +803,24 @@ function Nr(e, t) {
|
|
|
803
803
|
}
|
|
804
804
|
return a;
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function Pt(e) {
|
|
807
807
|
return function(t) {
|
|
808
|
-
if (Array.isArray(t)) return
|
|
808
|
+
if (Array.isArray(t)) return Pn(t);
|
|
809
809
|
}(e) || function(t) {
|
|
810
810
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
811
811
|
}(e) || function(t, n) {
|
|
812
812
|
if (t) {
|
|
813
|
-
if (typeof t == "string") return
|
|
813
|
+
if (typeof t == "string") return Pn(t, n);
|
|
814
814
|
var i = Object.prototype.toString.call(t).slice(8, -1);
|
|
815
815
|
if (i === "Object" && t.constructor && (i = t.constructor.name), i === "Map" || i === "Set") return Array.from(t);
|
|
816
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return
|
|
816
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Pn(t, n);
|
|
817
817
|
}
|
|
818
818
|
}(e) || function() {
|
|
819
819
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
820
820
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
821
821
|
}();
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function Pn(e, t) {
|
|
824
824
|
(t == null || t > e.length) && (t = e.length);
|
|
825
825
|
for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
|
|
826
826
|
return i;
|
|
@@ -979,7 +979,7 @@ var Zt = function(e, t) {
|
|
|
979
979
|
}, onMouseLeave: function() {
|
|
980
980
|
this.hovered && !this.touches.length && (this.hovered = !1, this.$emit("leave"));
|
|
981
981
|
}, onTouchStart: function(e) {
|
|
982
|
-
e.cancelable && !this.disabled && e.touches.length === 1 && (this.touches =
|
|
982
|
+
e.cancelable && !this.disabled && e.touches.length === 1 && (this.touches = Pt(e.touches), this.hovered || (this.$emit("enter"), this.hovered = !0), e.touches.length && this.initAnchor(this.touches.reduce(function(t, n) {
|
|
983
983
|
return { clientX: t.clientX + n.clientX / e.touches.length, clientY: t.clientY + n.clientY / e.touches.length };
|
|
984
984
|
}, { clientX: 0, clientY: 0 })), e.preventDefault && e.preventDefault(), e.stopPropagation());
|
|
985
985
|
}, onTouchEnd: function() {
|
|
@@ -999,7 +999,7 @@ var Zt = function(e, t) {
|
|
|
999
999
|
var t = this.$refs.draggable.getBoundingClientRect(), n = t.left, i = t.right, a = t.bottom, o = t.top;
|
|
1000
1000
|
this.anchor = { left: e.clientX - n, top: e.clientY - o, bottom: a - e.clientY, right: i - e.clientX };
|
|
1001
1001
|
}, processMove: function(e, t) {
|
|
1002
|
-
var n =
|
|
1002
|
+
var n = Pt(t);
|
|
1003
1003
|
if (this.touches.length) {
|
|
1004
1004
|
if (this.touches.length === 1 && n.length === 1) {
|
|
1005
1005
|
var i = this.$refs.draggable;
|
|
@@ -1019,7 +1019,7 @@ mi.render = function(e, t, n, i, a, o) {
|
|
|
1019
1019
|
return o.onMouseOver && o.onMouseOver.apply(o, arguments);
|
|
1020
1020
|
}), onMouseleave: t[4] || (t[4] = function() {
|
|
1021
1021
|
return o.onMouseLeave && o.onMouseLeave.apply(o, arguments);
|
|
1022
|
-
}) }, [
|
|
1022
|
+
}) }, [Re(e.$slots, "default")], 34);
|
|
1023
1023
|
};
|
|
1024
1024
|
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() {
|
|
1025
1025
|
var e;
|
|
@@ -1031,7 +1031,7 @@ var Fn = Qe("vue-handler-wrapper"), Do = { name: "HandlerWrapper", components: {
|
|
|
1031
1031
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
1032
1032
|
Do.render = function(e, t, n, i, a, o) {
|
|
1033
1033
|
var r = H("DraggableElement");
|
|
1034
|
-
return U(), Z("div", { class: o.classes.root }, [
|
|
1034
|
+
return U(), Z("div", { class: o.classes.root }, [A(r, { class: o.classes.draggable, onDrag: t[1] || (t[1] = function(l) {
|
|
1035
1035
|
return e.$emit("drag", l);
|
|
1036
1036
|
}), onDragEnd: t[2] || (t[2] = function(l) {
|
|
1037
1037
|
return e.$emit("drag-end");
|
|
@@ -1040,14 +1040,14 @@ Do.render = function(e, t, n, i, a, o) {
|
|
|
1040
1040
|
}), onEnter: t[4] || (t[4] = function(l) {
|
|
1041
1041
|
return e.$emit("enter");
|
|
1042
1042
|
}) }, { default: G(function() {
|
|
1043
|
-
return [
|
|
1043
|
+
return [Re(e.$slots, "default")];
|
|
1044
1044
|
}), _: 3 }, 8, ["class"])], 2);
|
|
1045
1045
|
};
|
|
1046
|
-
var Ur = Qe("vue-line-wrapper"),
|
|
1046
|
+
var Ur = Qe("vue-line-wrapper"), No = { name: "LineWrapper", components: { DraggableElement: mi }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
|
|
1047
1047
|
var e;
|
|
1048
1048
|
return Ur((Ye(e = {}, this.position, !0), Ye(e, "disabled", this.disabled), e));
|
|
1049
1049
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
1050
|
-
|
|
1050
|
+
No.render = function(e, t, n, i, a, o) {
|
|
1051
1051
|
var r = H("DraggableElement");
|
|
1052
1052
|
return U(), Z(r, { class: o.classname, onDrag: t[1] || (t[1] = function(l) {
|
|
1053
1053
|
return e.$emit("drag", l);
|
|
@@ -1058,11 +1058,11 @@ Po.render = function(e, t, n, i, a, o) {
|
|
|
1058
1058
|
}), onEnter: t[4] || (t[4] = function(l) {
|
|
1059
1059
|
return e.$emit("enter");
|
|
1060
1060
|
}) }, { default: G(function() {
|
|
1061
|
-
return [
|
|
1061
|
+
return [Re(e.$slots, "default")];
|
|
1062
1062
|
}), _: 3 }, 8, ["class"]);
|
|
1063
1063
|
};
|
|
1064
1064
|
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 };
|
|
1065
|
-
function
|
|
1065
|
+
function Ni(e, t, n) {
|
|
1066
1066
|
return !(n = n || ["width", "height", "left", "top"]).some(function(i) {
|
|
1067
1067
|
return e[i] !== t[i];
|
|
1068
1068
|
});
|
|
@@ -1086,7 +1086,7 @@ function Qt(e, t) {
|
|
|
1086
1086
|
function nt(e, t) {
|
|
1087
1087
|
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 };
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function An(e) {
|
|
1090
1090
|
return { left: -e.left, top: -e.top };
|
|
1091
1091
|
}
|
|
1092
1092
|
function We(e, t) {
|
|
@@ -1116,7 +1116,7 @@ function Ln(e, t) {
|
|
|
1116
1116
|
var n;
|
|
1117
1117
|
return t.minimum && e < t.minimum ? n = t.minimum : t.maximum && e > t.maximum && (n = t.maximum), n;
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function Po(e, t) {
|
|
1120
1120
|
var n = me(e), i = me(t);
|
|
1121
1121
|
return t.width < 1 / 0 && t.height < 1 / 0 ? n > i ? { width: t.width, height: t.width / n } : { width: t.height * n, height: t.height } : t.width < 1 / 0 ? { width: t.width, height: t.width / n } : t.height < 1 / 0 ? { width: t.height * n, height: t.height } : e;
|
|
1122
1122
|
}
|
|
@@ -1135,7 +1135,7 @@ function On(e, t) {
|
|
|
1135
1135
|
function xe(e, t, n) {
|
|
1136
1136
|
n === void 0 && (n = !1);
|
|
1137
1137
|
var i = Ht(e, t);
|
|
1138
|
-
return We(e, n ?
|
|
1138
|
+
return We(e, n ? An(i) : i);
|
|
1139
1139
|
}
|
|
1140
1140
|
function qn(e) {
|
|
1141
1141
|
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 };
|
|
@@ -1154,7 +1154,7 @@ function Lo(e, t, n) {
|
|
|
1154
1154
|
function In(e, t) {
|
|
1155
1155
|
return Lo(e, t, !0);
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function Pi(e) {
|
|
1158
1158
|
var t = e.size, n = e.aspectRatio, i = e.ignoreMinimum, a = e.sizeRestrictions;
|
|
1159
1159
|
return !!((t.correctRatio || me(t) >= n.minimum && me(t) <= n.maximum) && t.height <= a.maxHeight && t.width <= a.maxWidth && t.width && t.height && (i || t.height >= a.minHeight && t.width >= a.minWidth));
|
|
1160
1160
|
}
|
|
@@ -1165,13 +1165,13 @@ function ht(e) {
|
|
|
1165
1165
|
var t = e.width, n = e.height, i = e.sizeRestrictions, a = { minimum: e.aspectRatio && e.aspectRatio.minimum || 0, maximum: e.aspectRatio && e.aspectRatio.maximum || 1 / 0 }, o = { width: Math.max(i.minWidth, Math.min(i.maxWidth, t)), height: Math.max(i.minHeight, Math.min(i.maxHeight, n)) };
|
|
1166
1166
|
function r(u, m) {
|
|
1167
1167
|
return m === void 0 && (m = !1), u.reduce(function(d, c) {
|
|
1168
|
-
return
|
|
1168
|
+
return Pi({ size: c, aspectRatio: a, sizeRestrictions: i, ignoreMinimum: m }) && (!d || Fi(c, { width: t, height: n }) < Fi(d, { width: t, height: n })) ? c : d;
|
|
1169
1169
|
}, null);
|
|
1170
1170
|
}
|
|
1171
1171
|
var l = [];
|
|
1172
1172
|
a && [a.minimum, a.maximum].forEach(function(u) {
|
|
1173
1173
|
u && l.push({ width: o.width, height: o.width / u, correctRatio: !0 }, { width: o.height * u, height: o.height, correctRatio: !0 });
|
|
1174
|
-
}),
|
|
1174
|
+
}), Pi({ size: o, aspectRatio: a, sizeRestrictions: i }) && l.push(o);
|
|
1175
1175
|
var s = r(l) || r(l, !0);
|
|
1176
1176
|
return s && { width: s.width, height: s.height };
|
|
1177
1177
|
}
|
|
@@ -1220,7 +1220,7 @@ function Kr(e) {
|
|
|
1220
1220
|
var t = e.event, n = e.coordinates, i = e.visibleArea, a = e.getAreaRestrictions, o = ie({}, i), r = ie({}, n);
|
|
1221
1221
|
if (t.type === "setCoordinates") {
|
|
1222
1222
|
var l = Math.max(0, r.width - o.width), s = Math.max(0, r.height - o.height);
|
|
1223
|
-
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,
|
|
1223
|
+
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" }));
|
|
1224
1224
|
}
|
|
1225
1225
|
return { visibleArea: o, coordinates: r };
|
|
1226
1226
|
}
|
|
@@ -1239,7 +1239,7 @@ function qr(e) {
|
|
|
1239
1239
|
function Jr(e) {
|
|
1240
1240
|
var t = e.getAreaRestrictions, n = e.coordinates, i = e.imageSize, a = me(e.boundaries);
|
|
1241
1241
|
if (n) {
|
|
1242
|
-
var o = { height: Math.max(n.height, i.height), width: Math.max(n.width, i.width) }, r =
|
|
1242
|
+
var o = { height: Math.max(n.height, i.height), width: Math.max(n.width, i.width) }, r = Po({ width: me(o) > a ? o.width : o.height * a, height: me(o) > a ? o.width / a : o.height }, qn(t())), l = { left: n.left + n.width / 2 - r.width / 2, top: n.top + n.height / 2 - r.height / 2, width: r.width, height: r.height }, s = Qt(n, rt(ie({ left: 0, top: 0 }, i))), u = {};
|
|
1243
1243
|
return !s.left && !s.right && l.width <= i.width && (u.left = 0, u.right = i.width), !s.top && !s.bottom && l.height <= i.height && (u.top = 0, u.bottom = i.height), xe(l, u);
|
|
1244
1244
|
}
|
|
1245
1245
|
var m = me(i);
|
|
@@ -1254,7 +1254,7 @@ function Zr(e) {
|
|
|
1254
1254
|
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" })) } };
|
|
1255
1255
|
s.factor && k && (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));
|
|
1256
1256
|
var y = n.left - i.left, g = i.width + i.left - (n.width + n.left), v = n.top - i.top, E = i.height + i.top - (n.height + n.top);
|
|
1257
|
-
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 + E * 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 && k && 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" })),
|
|
1257
|
+
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 + E * 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 && k && 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 };
|
|
1258
1258
|
}
|
|
1259
1259
|
function Qr(e) {
|
|
1260
1260
|
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 = kt(Le(ie({ left: 0, top: 0 }, s)), u);
|
|
@@ -1319,10 +1319,10 @@ var ts = Qe("vue-simple-handler"), ns = Qe("vue-simple-handler-wrapper"), pi = {
|
|
|
1319
1319
|
pi.render = function(e, t, n, i, a, o) {
|
|
1320
1320
|
var r = H("HandlerWrapper");
|
|
1321
1321
|
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() {
|
|
1322
|
-
return [
|
|
1322
|
+
return [A("div", { class: o.classes.default }, null, 2)];
|
|
1323
1323
|
}), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
1324
1324
|
};
|
|
1325
|
-
var is = Qe("vue-simple-line"), os = Qe("vue-simple-line-wrapper"), fi = { name: "SimpleLine", components: { LineWrapper:
|
|
1325
|
+
var is = Qe("vue-simple-line"), os = Qe("vue-simple-line-wrapper"), fi = { name: "SimpleLine", components: { LineWrapper: No }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
1326
1326
|
return { hover: !1 };
|
|
1327
1327
|
}, computed: { classes: function() {
|
|
1328
1328
|
return { root: Oe(is(Ye({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass), wrapper: Oe(os(Ye({}, this.position, !0)), this.wrapperClass) };
|
|
@@ -1338,7 +1338,7 @@ var is = Qe("vue-simple-line"), os = Qe("vue-simple-line-wrapper"), fi = { name:
|
|
|
1338
1338
|
fi.render = function(e, t, n, i, a, o) {
|
|
1339
1339
|
var r = H("LineWrapper");
|
|
1340
1340
|
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() {
|
|
1341
|
-
return [
|
|
1341
|
+
return [A("div", { class: o.classes.root }, null, 2)];
|
|
1342
1342
|
}), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
1343
1343
|
};
|
|
1344
1344
|
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() {
|
|
@@ -1403,7 +1403,7 @@ var xn = Qe("vue-bounding-box"), as = ["east", "west", null], rs = ["south", "no
|
|
|
1403
1403
|
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 }));
|
|
1404
1404
|
} }, emits: ["resize", "resize-end"] };
|
|
1405
1405
|
xo.render = function(e, t, n, i, a, o) {
|
|
1406
|
-
return U(), Z("div", { ref: "box", class: o.classes.root, style: o.style }, [
|
|
1406
|
+
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) {
|
|
1407
1407
|
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) {
|
|
1408
1408
|
return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
|
|
1409
1409
|
}, onDragEnd: t[1] || (t[1] = function(l) {
|
|
@@ -1428,7 +1428,7 @@ var ss = Qe("vue-draggable-area"), Uo = { name: "DraggableArea", props: { movabl
|
|
|
1428
1428
|
}, methods: { onTouchStart: function(e) {
|
|
1429
1429
|
if (e.cancelable) {
|
|
1430
1430
|
var t = this.movable && e.touches.length === 1;
|
|
1431
|
-
t && (this.touches =
|
|
1431
|
+
t && (this.touches = Pt(e.touches)), (this.touchStarted || t) && (e.preventDefault(), e.stopPropagation());
|
|
1432
1432
|
}
|
|
1433
1433
|
}, onTouchEnd: function() {
|
|
1434
1434
|
this.touchStarted = !1, this.processEnd();
|
|
@@ -1447,7 +1447,7 @@ var ss = Qe("vue-draggable-area"), Uo = { name: "DraggableArea", props: { movabl
|
|
|
1447
1447
|
var t = this.$refs.container.getBoundingClientRect(), n = t.left, i = t.top;
|
|
1448
1448
|
this.anchor = { x: e.clientX - n, y: e.clientY - i };
|
|
1449
1449
|
}, processMove: function(e, t) {
|
|
1450
|
-
var n =
|
|
1450
|
+
var n = Pt(t);
|
|
1451
1451
|
if (this.touches.length) {
|
|
1452
1452
|
var i = this.$refs.container.getBoundingClientRect(), a = i.left, o = i.top;
|
|
1453
1453
|
this.touches.length === 1 && n.length === 1 && this.$emit("move", new di({ left: n[0].clientX - (a + this.anchor.x), top: n[0].clientY - (o + this.anchor.y) }));
|
|
@@ -1460,7 +1460,7 @@ Uo.render = function(e, t, n, i, a, o) {
|
|
|
1460
1460
|
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
1461
1461
|
}), onMousedown: t[2] || (t[2] = function() {
|
|
1462
1462
|
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
1463
|
-
}) }, [
|
|
1463
|
+
}) }, [Re(e.$slots, "default")], 544);
|
|
1464
1464
|
};
|
|
1465
1465
|
function Un(e) {
|
|
1466
1466
|
var t, n;
|
|
@@ -1567,7 +1567,7 @@ var zo = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
|
|
|
1567
1567
|
}, onTouchStart: function(e) {
|
|
1568
1568
|
if (e.cancelable && (this.touchMove || this.touchResize && e.touches.length > 1) && this.processEvent(e)) {
|
|
1569
1569
|
var t = this.$refs.container, n = t.getBoundingClientRect(), i = n.left, a = n.top, o = n.bottom, r = n.right;
|
|
1570
|
-
this.touches =
|
|
1570
|
+
this.touches = Pt(e.touches).filter(function(l) {
|
|
1571
1571
|
return l.clientX > i && l.clientX < r && l.clientY > a && l.clientY < o;
|
|
1572
1572
|
}), this.oldGeometricProperties = xi(this.touches, t);
|
|
1573
1573
|
}
|
|
@@ -1576,7 +1576,7 @@ var zo = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
|
|
|
1576
1576
|
}, onTouchMove: function(e) {
|
|
1577
1577
|
var t = this;
|
|
1578
1578
|
if (this.touches.length) {
|
|
1579
|
-
var n =
|
|
1579
|
+
var n = Pt(e.touches).filter(function(i) {
|
|
1580
1580
|
return !i.identifier || t.touches.find(function(a) {
|
|
1581
1581
|
return a.identifier === i.identifier;
|
|
1582
1582
|
});
|
|
@@ -1606,7 +1606,7 @@ zo.render = function(e, t, n, i, a, o) {
|
|
|
1606
1606
|
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
1607
1607
|
}), onWheel: t[3] || (t[3] = function() {
|
|
1608
1608
|
return o.onWheel && o.onWheel.apply(o, arguments);
|
|
1609
|
-
}) }, [
|
|
1609
|
+
}) }, [Re(e.$slots, "default")], 544);
|
|
1610
1610
|
};
|
|
1611
1611
|
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"] };
|
|
1612
1612
|
Zn.render = function(e, t, n, i, a, o) {
|
|
@@ -1616,7 +1616,7 @@ Zn.render = function(e, t, n, i, a, o) {
|
|
|
1616
1616
|
}), onResize: t[2] || (t[2] = function(l) {
|
|
1617
1617
|
return e.$emit("resize", l);
|
|
1618
1618
|
}) }, { default: G(function() {
|
|
1619
|
-
return [
|
|
1619
|
+
return [Re(e.$slots, "default")];
|
|
1620
1620
|
}), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
|
|
1621
1621
|
};
|
|
1622
1622
|
var fn = Qe("vue-preview"), $o = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
|
|
@@ -1663,7 +1663,7 @@ var fn = Qe("vue-preview"), $o = { props: { coordinates: { type: Object }, trans
|
|
|
1663
1663
|
e && e.complete && this.refreshImage(), this.refresh();
|
|
1664
1664
|
} } };
|
|
1665
1665
|
$o.render = function(e, t, n, i, a, o) {
|
|
1666
|
-
return U(), Z("div", { ref: "root", class: o.classes.root, style: o.style }, [
|
|
1666
|
+
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"]), [[Sn, n.image && n.image.src]])], 6)], 6);
|
|
1667
1667
|
};
|
|
1668
1668
|
var Bo = { components: { Preview: $o }, inheritAttrs: !1 };
|
|
1669
1669
|
Bo.render = function(e, t, n, i, a, o) {
|
|
@@ -1702,9 +1702,9 @@ var Vn = Qe("vue-rectangle-stencil"), Go = { name: "RectangleStencil", component
|
|
|
1702
1702
|
} }, emits: ["resize", "resize-end", "move", "move-end"] };
|
|
1703
1703
|
Go.render = function(e, t, n, i, a, o) {
|
|
1704
1704
|
var r = H("stencil-preview"), l = H("draggable-area"), s = H("bounding-box");
|
|
1705
|
-
return U(), Z("div", { class: o.classes.stencil, style: o.style }, [
|
|
1706
|
-
return [
|
|
1707
|
-
return [
|
|
1705
|
+
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() {
|
|
1706
|
+
return [A(l, { movable: n.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: G(function() {
|
|
1707
|
+
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"])];
|
|
1708
1708
|
}), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
|
|
1709
1709
|
}), _: 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);
|
|
1710
1710
|
};
|
|
@@ -1720,8 +1720,8 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1720
1720
|
return !(typeof e == "string" && e !== "fill" && e !== "fit");
|
|
1721
1721
|
} }, 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) {
|
|
1722
1722
|
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 };
|
|
1723
|
-
o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), it.forEach(function(
|
|
1724
|
-
u[
|
|
1723
|
+
o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), it.forEach(function(R) {
|
|
1724
|
+
u[R] || (s[R] = 0);
|
|
1725
1725
|
});
|
|
1726
1726
|
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);
|
|
1727
1727
|
if (c) {
|
|
@@ -1741,8 +1741,8 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1741
1741
|
}
|
|
1742
1742
|
s = Li({ directions: s, coordinates: r, sizeRestrictions: o, positionRestrictions: a, preserveRatio: !0, compensate: l.compensate });
|
|
1743
1743
|
}
|
|
1744
|
-
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(
|
|
1745
|
-
u[
|
|
1744
|
+
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) {
|
|
1745
|
+
u[R] || (s[R] = 0);
|
|
1746
1746
|
}), 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 });
|
|
1747
1747
|
} }, moveAlgorithm: { type: Function, default: Jn }, initStretcher: { type: Function, default: function(e) {
|
|
1748
1748
|
var t = e.stretcher, n = e.imageSize, i = me(n);
|
|
@@ -1753,7 +1753,7 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1753
1753
|
} }, fitVisibleArea: { type: Function, default: function(e) {
|
|
1754
1754
|
var t = e.visibleArea, n = e.boundaries, i = e.getAreaRestrictions, a = e.coordinates, o = ie({}, t);
|
|
1755
1755
|
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)));
|
|
1756
|
-
var r =
|
|
1756
|
+
var r = An(Ht(a, rt(o = Xe(o, On(o, i({ visibleArea: o, type: "resize" }))))));
|
|
1757
1757
|
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" }));
|
|
1758
1758
|
} }, areaRestrictionsAlgorithm: { type: Function, default: function(e) {
|
|
1759
1759
|
var t = e.visibleArea, n = e.boundaries, i = e.imageSize, a = e.imageRestriction, o = e.type, r = {};
|
|
@@ -1791,7 +1791,7 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1791
1791
|
if (e = function(i) {
|
|
1792
1792
|
var a = i.areaRestrictions, o = i.sizeRestrictions, r = i.boundaries, l = i.positionRestrictions, s = ie(ie({}, o), { minWidth: o.minWidth !== void 0 ? o.minWidth : 0, minHeight: o.minHeight !== void 0 ? o.minHeight : 0, maxWidth: o.maxWidth !== void 0 ? o.maxWidth : 1 / 0, maxHeight: o.maxHeight !== void 0 ? o.maxHeight : 1 / 0 });
|
|
1793
1793
|
l.left !== void 0 && l.right !== void 0 && (s.maxWidth = Math.min(s.maxWidth, l.right - l.left)), l.bottom !== void 0 && l.top !== void 0 && (s.maxHeight = Math.min(s.maxHeight, l.bottom - l.top));
|
|
1794
|
-
var u = qn(a), m =
|
|
1794
|
+
var u = qn(a), m = Po(r, u);
|
|
1795
1795
|
return u.width < 1 / 0 && (!s.maxWidth || s.maxWidth > m.width) && (s.maxWidth = Math.min(s.maxWidth, m.width)), u.height < 1 / 0 && (!s.maxHeight || s.maxHeight > m.height) && (s.maxHeight = Math.min(s.maxHeight, m.height)), s.minWidth > s.maxWidth && (s.minWidth = s.maxWidth, s.widthFrozen = !0), s.minHeight > s.maxHeight && (s.minHeight = s.maxHeight, s.heightFrozen = !0), s;
|
|
1796
1796
|
}({ sizeRestrictions: e, areaRestrictions: this.getAreaRestrictions({ visibleArea: this.visibleArea, type: "resize" }), imageSize: this.imageSize, boundaries: this.boundaries, positionRestrictions: this.positionRestrictions, imageRestriction: this.imageRestriction, visibleArea: this.visibleArea, stencilSize: this.getStencilSize() }), this.visibleArea && this.stencilSize) {
|
|
1797
1797
|
var t = this.getStencilSize(), n = qn(this.getAreaRestrictions({ visibleArea: this.visibleArea, type: "resize" }));
|
|
@@ -1889,9 +1889,9 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1889
1889
|
var a = this.autoZoomAlgorithm;
|
|
1890
1890
|
a || (a = this.stencilSize ? Hr : this.autoZoom ? jr : Kr);
|
|
1891
1891
|
var o = a({ event: { type: e, params: i }, visibleArea: t, coordinates: n, boundaries: this.boundaries, aspectRatio: this.getAspectRatio(), positionRestrictions: this.positionRestrictions, getAreaRestrictions: this.getAreaRestrictions, sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize() });
|
|
1892
|
-
return de(de({}, o), {}, { changed: !
|
|
1892
|
+
return de(de({}, o), {}, { changed: !Ni(o.visibleArea, t) || !Ni(o.coordinates, n) });
|
|
1893
1893
|
}, runAutoZoom: function(e) {
|
|
1894
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, i = n !== void 0 && n, a =
|
|
1894
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, i = n !== void 0 && n, a = Pr(t, cs), o = this.processAutoZoom(e, this.visibleArea, this.coordinates, a), r = o.visibleArea, l = o.coordinates, s = o.changed;
|
|
1895
1895
|
i && s && this.enableTransitions(), this.visibleArea = r, this.coordinates = l, i && s && this.debouncedDisableTransitions();
|
|
1896
1896
|
}, normalizeEvent: function(e) {
|
|
1897
1897
|
return function(t) {
|
|
@@ -1953,7 +1953,7 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1953
1953
|
var l = r.coordinates;
|
|
1954
1954
|
return de({}, Vt(a) ? a({ coordinates: l, imageSize: e.imageSize, visibleArea: e.visibleArea }) : e.defaultPosition);
|
|
1955
1955
|
}];
|
|
1956
|
-
this.delayedTransforms && o.push.apply(o,
|
|
1956
|
+
this.delayedTransforms && o.push.apply(o, Pt(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(o, !0), this.delayedTransforms = null;
|
|
1957
1957
|
}
|
|
1958
1958
|
}, clearImage: function() {
|
|
1959
1959
|
var e = this;
|
|
@@ -2135,9 +2135,9 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
2135
2135
|
}
|
|
2136
2136
|
} }, emits: ["change", "error", "ready"] }, ds = { key: 0, ref: "canvas", style: { display: "none" } }, ms = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
|
|
2137
2137
|
Wo.render = function(e, t, n, i, a, o) {
|
|
2138
|
-
return U(), Z("div", { ref: "cropper", class: o.classes.cropper }, [
|
|
2139
|
-
return [
|
|
2140
|
-
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2),
|
|
2138
|
+
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() {
|
|
2139
|
+
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() {
|
|
2140
|
+
}, ["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"])), [[Sn, a.imageLoaded]]), n.canvas ? (U(), Z("canvas", ds, null, 512)) : se("", !0), n.canvas ? (U(), Z("canvas", ms, null, 512)) : se("", !0)];
|
|
2141
2141
|
}), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
|
|
2142
2142
|
};
|
|
2143
2143
|
function ps(e, t) {
|
|
@@ -2213,7 +2213,7 @@ const hs = {
|
|
|
2213
2213
|
B("div", _s, [
|
|
2214
2214
|
B("div", bs, [
|
|
2215
2215
|
B("div", ys, [
|
|
2216
|
-
|
|
2216
|
+
A(b(Wo), {
|
|
2217
2217
|
class: "cropper h-[150px] w-[200px]",
|
|
2218
2218
|
src: r.value || o.value,
|
|
2219
2219
|
"stencil-props": {
|
|
@@ -2238,7 +2238,7 @@ const hs = {
|
|
|
2238
2238
|
type: "button",
|
|
2239
2239
|
onClick: d
|
|
2240
2240
|
}, [
|
|
2241
|
-
|
|
2241
|
+
A(k, { name: "close" })
|
|
2242
2242
|
])
|
|
2243
2243
|
])
|
|
2244
2244
|
])
|
|
@@ -2340,7 +2340,7 @@ const hs = {
|
|
|
2340
2340
|
return (u, m) => {
|
|
2341
2341
|
const d = H("fm-select");
|
|
2342
2342
|
return U(), re("div", null, [
|
|
2343
|
-
|
|
2343
|
+
A(d, {
|
|
2344
2344
|
disabled: e.disable,
|
|
2345
2345
|
items: r.value,
|
|
2346
2346
|
label: e.label ?? b(i)("menu.common.labels.order_from"),
|
|
@@ -2359,7 +2359,7 @@ const hs = {
|
|
|
2359
2359
|
height: "24",
|
|
2360
2360
|
fill: "none"
|
|
2361
2361
|
};
|
|
2362
|
-
function
|
|
2362
|
+
function Rs(e, t) {
|
|
2363
2363
|
return U(), re("svg", Cs, t[0] || (t[0] = [
|
|
2364
2364
|
B("path", {
|
|
2365
2365
|
fill: "#1C1C1E",
|
|
@@ -2374,7 +2374,7 @@ function As(e, t) {
|
|
|
2374
2374
|
}, null, -1)
|
|
2375
2375
|
]));
|
|
2376
2376
|
}
|
|
2377
|
-
const
|
|
2377
|
+
const As = { render: Rs }, Os = {
|
|
2378
2378
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2379
2379
|
width: "24",
|
|
2380
2380
|
height: "24",
|
|
@@ -2408,7 +2408,7 @@ const Ts = { render: Is }, Ho = /* @__PURE__ */ ve({
|
|
|
2408
2408
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
2409
2409
|
(...a) => t.onClick && t.onClick(...a))
|
|
2410
2410
|
}, [
|
|
2411
|
-
b(Ge).isDialogOpened.value ? (U(), Z(b(
|
|
2411
|
+
b(Ge).isDialogOpened.value ? (U(), Z(b(As), { key: 1 })) : (U(), Z(b(Ts), { key: 0 }))
|
|
2412
2412
|
], 2)) : se("", !0);
|
|
2413
2413
|
};
|
|
2414
2414
|
}
|
|
@@ -2421,7 +2421,7 @@ function jo(e, t) {
|
|
|
2421
2421
|
* (c) 2024 kazuya kawaguchi
|
|
2422
2422
|
* Released under the MIT License.
|
|
2423
2423
|
*/
|
|
2424
|
-
const Ui = typeof window < "u", Ft = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Ms = (e, t, n) => Ds({ l: e, k: t, s: n }), Ds = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"),
|
|
2424
|
+
const Ui = typeof window < "u", Ft = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Ms = (e, t, n) => Ds({ l: e, k: t, s: n }), Ds = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Ne = (e) => typeof e == "number" && isFinite(e), Ns = (e) => gi(e) === "[object Date]", En = (e) => gi(e) === "[object RegExp]", Tn = (e) => pe(e) && Object.keys(e).length === 0, Pe = Object.assign, Ps = Object.create, be = (e = null) => Ps(e);
|
|
2425
2425
|
let Vi;
|
|
2426
2426
|
const Dt = () => Vi || (Vi = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : be());
|
|
2427
2427
|
function zi(e) {
|
|
@@ -2493,7 +2493,7 @@ function Hs(e) {
|
|
|
2493
2493
|
function E() {
|
|
2494
2494
|
return r(n + o) && o++, o++, t[n + o];
|
|
2495
2495
|
}
|
|
2496
|
-
function
|
|
2496
|
+
function R() {
|
|
2497
2497
|
n = 0, i = 1, a = 1, o = 0;
|
|
2498
2498
|
}
|
|
2499
2499
|
function M(w = 0) {
|
|
@@ -2515,7 +2515,7 @@ function Hs(e) {
|
|
|
2515
2515
|
currentPeek: g,
|
|
2516
2516
|
next: v,
|
|
2517
2517
|
peek: E,
|
|
2518
|
-
reset:
|
|
2518
|
+
reset: R,
|
|
2519
2519
|
resetPeek: M,
|
|
2520
2520
|
skipToPeek: O
|
|
2521
2521
|
};
|
|
@@ -2590,7 +2590,7 @@ function Ys(e, t = {}) {
|
|
|
2590
2590
|
const Y = g(f.currentPeek());
|
|
2591
2591
|
return f.resetPeek(), Y;
|
|
2592
2592
|
}
|
|
2593
|
-
function
|
|
2593
|
+
function R(f, h) {
|
|
2594
2594
|
const { currentType: L } = h;
|
|
2595
2595
|
if (L !== 2)
|
|
2596
2596
|
return !1;
|
|
@@ -2636,7 +2636,7 @@ function Ys(e, t = {}) {
|
|
|
2636
2636
|
return !1;
|
|
2637
2637
|
const Y = () => {
|
|
2638
2638
|
const ue = f.currentPeek();
|
|
2639
|
-
return ue === "{" ? g(f.peek()) : ue === "@" || ue === "|" || ue === ":" || ue === "." || ue === mt || !ue ? !1 : ue === ze ? (f.peek(), Y()) :
|
|
2639
|
+
return ue === "{" ? g(f.peek()) : ue === "@" || ue === "|" || ue === ":" || ue === "." || ue === mt || !ue ? !1 : ue === ze ? (f.peek(), Y()) : P(f, !1);
|
|
2640
2640
|
}, X = Y();
|
|
2641
2641
|
return f.resetPeek(), X;
|
|
2642
2642
|
}
|
|
@@ -2645,14 +2645,14 @@ function Ys(e, t = {}) {
|
|
|
2645
2645
|
const h = f.currentPeek() === "|";
|
|
2646
2646
|
return f.resetPeek(), h;
|
|
2647
2647
|
}
|
|
2648
|
-
function
|
|
2648
|
+
function P(f, h = !0) {
|
|
2649
2649
|
const L = (X = !1, ue = "") => {
|
|
2650
2650
|
const F = f.currentPeek();
|
|
2651
2651
|
return F === "{" || F === "@" || !F ? X : F === "|" ? !(ue === mt || ue === ze) : F === mt ? (f.peek(), L(!0, mt)) : F === ze ? (f.peek(), L(!0, ze)) : !0;
|
|
2652
2652
|
}, Y = L();
|
|
2653
2653
|
return h && f.resetPeek(), Y;
|
|
2654
2654
|
}
|
|
2655
|
-
function
|
|
2655
|
+
function N(f, h) {
|
|
2656
2656
|
const L = f.currentChar();
|
|
2657
2657
|
return L === Et ? Et : h(L) ? (f.next(), L) : null;
|
|
2658
2658
|
}
|
|
@@ -2665,7 +2665,7 @@ function Ys(e, t = {}) {
|
|
|
2665
2665
|
h === 36;
|
|
2666
2666
|
}
|
|
2667
2667
|
function C(f) {
|
|
2668
|
-
return
|
|
2668
|
+
return N(f, D);
|
|
2669
2669
|
}
|
|
2670
2670
|
function T(f) {
|
|
2671
2671
|
const h = f.charCodeAt(0);
|
|
@@ -2677,14 +2677,14 @@ function Ys(e, t = {}) {
|
|
|
2677
2677
|
h === 45;
|
|
2678
2678
|
}
|
|
2679
2679
|
function V(f) {
|
|
2680
|
-
return
|
|
2680
|
+
return N(f, T);
|
|
2681
2681
|
}
|
|
2682
2682
|
function j(f) {
|
|
2683
2683
|
const h = f.charCodeAt(0);
|
|
2684
2684
|
return h >= 48 && h <= 57;
|
|
2685
2685
|
}
|
|
2686
2686
|
function le(f) {
|
|
2687
|
-
return
|
|
2687
|
+
return N(f, j);
|
|
2688
2688
|
}
|
|
2689
2689
|
function ce(f) {
|
|
2690
2690
|
const h = f.charCodeAt(0);
|
|
@@ -2692,8 +2692,8 @@ function Ys(e, t = {}) {
|
|
|
2692
2692
|
h >= 65 && h <= 70 || // A-F
|
|
2693
2693
|
h >= 97 && h <= 102;
|
|
2694
2694
|
}
|
|
2695
|
-
function
|
|
2696
|
-
return
|
|
2695
|
+
function Ae(f) {
|
|
2696
|
+
return N(f, ce);
|
|
2697
2697
|
}
|
|
2698
2698
|
function $(f) {
|
|
2699
2699
|
let h = "", L = "";
|
|
@@ -2708,7 +2708,7 @@ function Ys(e, t = {}) {
|
|
|
2708
2708
|
if (L === "{" || L === "}" || L === "@" || L === "|" || !L)
|
|
2709
2709
|
break;
|
|
2710
2710
|
if (L === mt || L === ze)
|
|
2711
|
-
if (
|
|
2711
|
+
if (P(f))
|
|
2712
2712
|
h += L, f.next();
|
|
2713
2713
|
else {
|
|
2714
2714
|
if (I(f))
|
|
@@ -2738,7 +2738,7 @@ function Ys(e, t = {}) {
|
|
|
2738
2738
|
function ae(f) {
|
|
2739
2739
|
y(f), k(f, "'");
|
|
2740
2740
|
let h = "", L = "";
|
|
2741
|
-
for (; h =
|
|
2741
|
+
for (; h = N(f, ne); )
|
|
2742
2742
|
h === "\\" ? L += oe(f) : L += h;
|
|
2743
2743
|
const Y = f.currentChar();
|
|
2744
2744
|
return Y === ze || Y === Et ? (d(_e.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), Y === ze && (f.next(), k(f, "'")), L) : (k(f, "'"), L);
|
|
@@ -2761,7 +2761,7 @@ function Ys(e, t = {}) {
|
|
|
2761
2761
|
k(f, h);
|
|
2762
2762
|
let Y = "";
|
|
2763
2763
|
for (let X = 0; X < L; X++) {
|
|
2764
|
-
const ue =
|
|
2764
|
+
const ue = Ae(f);
|
|
2765
2765
|
if (!ue) {
|
|
2766
2766
|
d(_e.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${h}${Y}${f.currentChar()}`);
|
|
2767
2767
|
break;
|
|
@@ -2776,7 +2776,7 @@ function Ys(e, t = {}) {
|
|
|
2776
2776
|
function bt(f) {
|
|
2777
2777
|
y(f);
|
|
2778
2778
|
let h = "", L = "";
|
|
2779
|
-
for (; h =
|
|
2779
|
+
for (; h = N(f, je); )
|
|
2780
2780
|
L += h;
|
|
2781
2781
|
return L;
|
|
2782
2782
|
}
|
|
@@ -2829,7 +2829,7 @@ function Ys(e, t = {}) {
|
|
|
2829
2829
|
return d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), h.braceNest = 0, wt(f, h);
|
|
2830
2830
|
if (X = E(f, h))
|
|
2831
2831
|
return L = c(h, 4, q(f)), y(f), L;
|
|
2832
|
-
if (ue =
|
|
2832
|
+
if (ue = R(f, h))
|
|
2833
2833
|
return L = c(h, 5, J(f)), y(f), L;
|
|
2834
2834
|
if (F = M(f, h))
|
|
2835
2835
|
return L = c(h, 6, ae(f)), y(f), L;
|
|
@@ -2894,7 +2894,7 @@ function Ys(e, t = {}) {
|
|
|
2894
2894
|
default: {
|
|
2895
2895
|
if (I(f))
|
|
2896
2896
|
return L = c(h, 1, yt(f)), h.braceNest = 0, h.inLinked = !1, L;
|
|
2897
|
-
if (
|
|
2897
|
+
if (P(f))
|
|
2898
2898
|
return c(h, 0, K(f));
|
|
2899
2899
|
break;
|
|
2900
2900
|
}
|
|
@@ -2932,9 +2932,9 @@ function Js(e, t, n) {
|
|
|
2932
2932
|
}
|
|
2933
2933
|
function Zs(e = {}) {
|
|
2934
2934
|
const t = e.location !== !1, { onError: n } = e;
|
|
2935
|
-
function i(g, v, E,
|
|
2935
|
+
function i(g, v, E, R, ...M) {
|
|
2936
2936
|
const O = g.currentPosition();
|
|
2937
|
-
if (O.offset +=
|
|
2937
|
+
if (O.offset += R, O.column += R, n) {
|
|
2938
2938
|
const w = t ? Qn(E, O) : null, x = Mn(v, w, {
|
|
2939
2939
|
domain: Xs,
|
|
2940
2940
|
args: M
|
|
@@ -2943,31 +2943,31 @@ function Zs(e = {}) {
|
|
|
2943
2943
|
}
|
|
2944
2944
|
}
|
|
2945
2945
|
function a(g, v, E) {
|
|
2946
|
-
const
|
|
2947
|
-
return t && (
|
|
2946
|
+
const R = { type: g };
|
|
2947
|
+
return t && (R.start = v, R.end = v, R.loc = { start: E, end: E }), R;
|
|
2948
2948
|
}
|
|
2949
|
-
function o(g, v, E,
|
|
2949
|
+
function o(g, v, E, R) {
|
|
2950
2950
|
t && (g.end = v, g.loc && (g.loc.end = E));
|
|
2951
2951
|
}
|
|
2952
2952
|
function r(g, v) {
|
|
2953
|
-
const E = g.context(),
|
|
2954
|
-
return
|
|
2953
|
+
const E = g.context(), R = a(3, E.offset, E.startLoc);
|
|
2954
|
+
return R.value = v, o(R, g.currentOffset(), g.currentPosition()), R;
|
|
2955
2955
|
}
|
|
2956
2956
|
function l(g, v) {
|
|
2957
|
-
const E = g.context(), { lastOffset:
|
|
2957
|
+
const E = g.context(), { lastOffset: R, lastStartLoc: M } = E, O = a(5, R, M);
|
|
2958
2958
|
return O.index = parseInt(v, 10), g.nextToken(), o(O, g.currentOffset(), g.currentPosition()), O;
|
|
2959
2959
|
}
|
|
2960
2960
|
function s(g, v) {
|
|
2961
|
-
const E = g.context(), { lastOffset:
|
|
2961
|
+
const E = g.context(), { lastOffset: R, lastStartLoc: M } = E, O = a(4, R, M);
|
|
2962
2962
|
return O.key = v, g.nextToken(), o(O, g.currentOffset(), g.currentPosition()), O;
|
|
2963
2963
|
}
|
|
2964
2964
|
function u(g, v) {
|
|
2965
|
-
const E = g.context(), { lastOffset:
|
|
2965
|
+
const E = g.context(), { lastOffset: R, lastStartLoc: M } = E, O = a(9, R, M);
|
|
2966
2966
|
return O.value = v.replace(qs, Js), g.nextToken(), o(O, g.currentOffset(), g.currentPosition()), O;
|
|
2967
2967
|
}
|
|
2968
2968
|
function m(g) {
|
|
2969
|
-
const v = g.nextToken(), E = g.context(), { lastOffset:
|
|
2970
|
-
return v.type !== 11 ? (i(g, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, E.lastStartLoc, 0), O.value = "", o(O,
|
|
2969
|
+
const v = g.nextToken(), E = g.context(), { lastOffset: R, lastStartLoc: M } = E, O = a(8, R, M);
|
|
2970
|
+
return v.type !== 11 ? (i(g, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, E.lastStartLoc, 0), O.value = "", o(O, R, M), {
|
|
2971
2971
|
nextConsumeToken: v,
|
|
2972
2972
|
node: O
|
|
2973
2973
|
}) : (v.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, tt(v)), O.value = v.value || "", o(O, g.currentOffset(), g.currentPosition()), {
|
|
@@ -2975,34 +2975,34 @@ function Zs(e = {}) {
|
|
|
2975
2975
|
});
|
|
2976
2976
|
}
|
|
2977
2977
|
function d(g, v) {
|
|
2978
|
-
const E = g.context(),
|
|
2979
|
-
return
|
|
2978
|
+
const E = g.context(), R = a(7, E.offset, E.startLoc);
|
|
2979
|
+
return R.value = v, o(R, g.currentOffset(), g.currentPosition()), R;
|
|
2980
2980
|
}
|
|
2981
2981
|
function c(g) {
|
|
2982
2982
|
const v = g.context(), E = a(6, v.offset, v.startLoc);
|
|
2983
|
-
let
|
|
2984
|
-
if (
|
|
2983
|
+
let R = g.nextToken();
|
|
2984
|
+
if (R.type === 8) {
|
|
2985
2985
|
const M = m(g);
|
|
2986
|
-
E.modifier = M.node,
|
|
2986
|
+
E.modifier = M.node, R = M.nextConsumeToken || g.nextToken();
|
|
2987
2987
|
}
|
|
2988
|
-
switch (
|
|
2988
|
+
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) {
|
|
2989
2989
|
case 10:
|
|
2990
|
-
|
|
2990
|
+
R.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), E.key = d(g, R.value || "");
|
|
2991
2991
|
break;
|
|
2992
2992
|
case 4:
|
|
2993
|
-
|
|
2993
|
+
R.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), E.key = s(g, R.value || "");
|
|
2994
2994
|
break;
|
|
2995
2995
|
case 5:
|
|
2996
|
-
|
|
2996
|
+
R.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), E.key = l(g, R.value || "");
|
|
2997
2997
|
break;
|
|
2998
2998
|
case 6:
|
|
2999
|
-
|
|
2999
|
+
R.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), E.key = u(g, R.value || "");
|
|
3000
3000
|
break;
|
|
3001
3001
|
default: {
|
|
3002
3002
|
i(g, _e.UNEXPECTED_EMPTY_LINKED_KEY, v.lastStartLoc, 0);
|
|
3003
3003
|
const M = g.context(), O = a(7, M.offset, M.startLoc);
|
|
3004
3004
|
return O.value = "", o(O, M.offset, M.startLoc), E.key = O, o(E, M.offset, M.startLoc), {
|
|
3005
|
-
nextConsumeToken:
|
|
3005
|
+
nextConsumeToken: R,
|
|
3006
3006
|
node: E
|
|
3007
3007
|
};
|
|
3008
3008
|
}
|
|
@@ -3012,7 +3012,7 @@ function Zs(e = {}) {
|
|
|
3012
3012
|
};
|
|
3013
3013
|
}
|
|
3014
3014
|
function p(g) {
|
|
3015
|
-
const v = g.context(), E = v.currentType === 1 ? g.currentOffset() : v.offset,
|
|
3015
|
+
const v = g.context(), E = v.currentType === 1 ? g.currentOffset() : v.offset, R = v.currentType === 1 ? v.endLoc : v.startLoc, M = a(2, E, R);
|
|
3016
3016
|
M.items = [];
|
|
3017
3017
|
let O = null;
|
|
3018
3018
|
do {
|
|
@@ -3040,11 +3040,11 @@ function Zs(e = {}) {
|
|
|
3040
3040
|
const w = v.currentType === 1 ? v.lastOffset : g.currentOffset(), x = v.currentType === 1 ? v.lastEndLoc : g.currentPosition();
|
|
3041
3041
|
return o(M, w, x), M;
|
|
3042
3042
|
}
|
|
3043
|
-
function k(g, v, E,
|
|
3043
|
+
function k(g, v, E, R) {
|
|
3044
3044
|
const M = g.context();
|
|
3045
|
-
let O =
|
|
3045
|
+
let O = R.items.length === 0;
|
|
3046
3046
|
const w = a(1, v, E);
|
|
3047
|
-
w.cases = [], w.cases.push(
|
|
3047
|
+
w.cases = [], w.cases.push(R);
|
|
3048
3048
|
do {
|
|
3049
3049
|
const x = p(g);
|
|
3050
3050
|
O || (O = x.items.length === 0), w.cases.push(x);
|
|
@@ -3052,12 +3052,12 @@ function Zs(e = {}) {
|
|
|
3052
3052
|
return O && i(g, _e.MUST_HAVE_MESSAGES_IN_PLURAL, E, 0), o(w, g.currentOffset(), g.currentPosition()), w;
|
|
3053
3053
|
}
|
|
3054
3054
|
function _(g) {
|
|
3055
|
-
const v = g.context(), { offset: E, startLoc:
|
|
3056
|
-
return v.currentType === 13 ? M : k(g, E,
|
|
3055
|
+
const v = g.context(), { offset: E, startLoc: R } = v, M = p(g);
|
|
3056
|
+
return v.currentType === 13 ? M : k(g, E, R, M);
|
|
3057
3057
|
}
|
|
3058
3058
|
function y(g) {
|
|
3059
|
-
const v = Ys(g,
|
|
3060
|
-
return t &&
|
|
3059
|
+
const v = Ys(g, Pe({}, e)), E = v.context(), R = a(0, E.offset, E.startLoc);
|
|
3060
|
+
return t && R.loc && (R.loc.source = g), R.body = _(v), e.onCacheKey && (R.cacheKey = e.onCacheKey(g)), E.currentType !== 13 && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, g[E.offset] || ""), o(R, v.currentOffset(), v.currentPosition()), R;
|
|
3061
3061
|
}
|
|
3062
3062
|
return { parse: y };
|
|
3063
3063
|
}
|
|
@@ -3342,7 +3342,7 @@ const sl = (e, t = {}) => {
|
|
|
3342
3342
|
};
|
|
3343
3343
|
};
|
|
3344
3344
|
function ll(e, t = {}) {
|
|
3345
|
-
const n =
|
|
3345
|
+
const n = Pe({}, t), i = !!n.jit, a = !!n.minify, o = n.optimize == null ? !0 : n.optimize, l = Zs(n).parse(e);
|
|
3346
3346
|
return i ? (o && tl(l), a && zt(l), { ast: l, code: "" }) : (el(l, n), sl(l, n));
|
|
3347
3347
|
}
|
|
3348
3348
|
var ul = { env: { NODE_ENV: "production" } };
|
|
@@ -3410,9 +3410,9 @@ function ei(e, t) {
|
|
|
3410
3410
|
}
|
|
3411
3411
|
case 5: {
|
|
3412
3412
|
const i = t;
|
|
3413
|
-
if (Je(i, "i") &&
|
|
3413
|
+
if (Je(i, "i") && Ne(i.i))
|
|
3414
3414
|
return e.interpolate(e.list(i.i));
|
|
3415
|
-
if (Je(i, "index") &&
|
|
3415
|
+
if (Je(i, "index") && Ne(i.index))
|
|
3416
3416
|
return e.interpolate(e.list(i.index));
|
|
3417
3417
|
throw en(n);
|
|
3418
3418
|
}
|
|
@@ -3464,12 +3464,12 @@ function Ot(e, t, n) {
|
|
|
3464
3464
|
function en(e) {
|
|
3465
3465
|
return new Error(`unhandled node type: ${e}`);
|
|
3466
3466
|
}
|
|
3467
|
-
const
|
|
3467
|
+
const Rl = (e) => e;
|
|
3468
3468
|
let vn = be();
|
|
3469
3469
|
function Kt(e) {
|
|
3470
3470
|
return fe(e) && bi(e) === 0 && (Je(e, "b") || Je(e, "body"));
|
|
3471
3471
|
}
|
|
3472
|
-
function
|
|
3472
|
+
function Al(e, t = {}) {
|
|
3473
3473
|
let n = !1;
|
|
3474
3474
|
const i = t.onError || $s;
|
|
3475
3475
|
return t.onError = (a) => {
|
|
@@ -3480,10 +3480,10 @@ function Rl(e, t = {}) {
|
|
|
3480
3480
|
function Ol(e, t) {
|
|
3481
3481
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Q(e)) {
|
|
3482
3482
|
Ce(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
3483
|
-
const i = (t.onCacheKey ||
|
|
3483
|
+
const i = (t.onCacheKey || Rl)(e), a = vn[i];
|
|
3484
3484
|
if (a)
|
|
3485
3485
|
return a;
|
|
3486
|
-
const { ast: o, detectError: r } =
|
|
3486
|
+
const { ast: o, detectError: r } = Al(e, {
|
|
3487
3487
|
...t,
|
|
3488
3488
|
location: ul.env.NODE_ENV !== "production",
|
|
3489
3489
|
jit: !0
|
|
@@ -3522,7 +3522,7 @@ const gt = {
|
|
|
3522
3522
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
3523
3523
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
3524
3524
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
3525
|
-
},
|
|
3525
|
+
}, Nl = 24;
|
|
3526
3526
|
function vt(e) {
|
|
3527
3527
|
return Mn(e, null, void 0);
|
|
3528
3528
|
}
|
|
@@ -3546,7 +3546,7 @@ function Hi(e) {
|
|
|
3546
3546
|
} else
|
|
3547
3547
|
throw vt(gt.NOT_SUPPORT_LOCALE_TYPE);
|
|
3548
3548
|
}
|
|
3549
|
-
function
|
|
3549
|
+
function Pl(e, t, n) {
|
|
3550
3550
|
return [.../* @__PURE__ */ new Set([
|
|
3551
3551
|
n,
|
|
3552
3552
|
...Ie(t) ? t : fe(t) ? Object.keys(t) : Q(t) ? [t] : [n]
|
|
@@ -3908,9 +3908,9 @@ const qi = (e) => {
|
|
|
3908
3908
|
}, Zl = () => Qo;
|
|
3909
3909
|
let Ji = 0;
|
|
3910
3910
|
function Ql(e = {}) {
|
|
3911
|
-
const t = Ee(e.onWarn) ? e.onWarn : Us, n = Q(e.version) ? e.version : Hl, i = Q(e.locale) || Ee(e.locale) ? e.locale : kn, a = Ee(i) ? kn : 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 =
|
|
3911
|
+
const t = Ee(e.onWarn) ? e.onWarn : Us, n = Q(e.version) ? e.version : Hl, i = Q(e.locale) || Ee(e.locale) ? e.locale : kn, a = Ee(i) ? kn : 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 = Pe(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, k = !!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, E = !!e.escapeParameter, R = Ee(e.messageCompiler) ? e.messageCompiler : Xo, M = Ee(e.messageResolver) ? e.messageResolver : qo || Gl, O = Ee(e.localeFallbacker) ? e.localeFallbacker : Jo || Pl, w = fe(e.fallbackContext) ? e.fallbackContext : void 0, x = e, S = fe(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), I = fe(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), P = fe(x.__meta) ? x.__meta : {};
|
|
3912
3912
|
Ji++;
|
|
3913
|
-
const
|
|
3913
|
+
const N = {
|
|
3914
3914
|
version: n,
|
|
3915
3915
|
cid: Ji,
|
|
3916
3916
|
locale: i,
|
|
@@ -3927,14 +3927,14 @@ function Ql(e = {}) {
|
|
|
3927
3927
|
processor: g,
|
|
3928
3928
|
warnHtmlMessage: v,
|
|
3929
3929
|
escapeParameter: E,
|
|
3930
|
-
messageCompiler:
|
|
3930
|
+
messageCompiler: R,
|
|
3931
3931
|
messageResolver: M,
|
|
3932
3932
|
localeFallbacker: O,
|
|
3933
3933
|
fallbackContext: w,
|
|
3934
3934
|
onWarn: t,
|
|
3935
|
-
__meta:
|
|
3935
|
+
__meta: P
|
|
3936
3936
|
};
|
|
3937
|
-
return
|
|
3937
|
+
return N.datetimeFormats = l, N.numberFormats = s, N.__datetimeFormatters = S, N.__numberFormatters = I, __INTLIFY_PROD_DEVTOOLS__ && Tl(N, n, P), N;
|
|
3938
3938
|
}
|
|
3939
3939
|
const Bn = (e) => ({ [e]: be() });
|
|
3940
3940
|
function wi(e, t, n, i, a) {
|
|
@@ -3978,10 +3978,10 @@ function Zi(e, ...t) {
|
|
|
3978
3978
|
wi(e, s, g, c, E);
|
|
3979
3979
|
if (!pe(v) || !Q(g))
|
|
3980
3980
|
return i ? Dn : s;
|
|
3981
|
-
let
|
|
3982
|
-
Tn(d) || (
|
|
3983
|
-
let M = l.get(
|
|
3984
|
-
return M || (M = new Intl.DateTimeFormat(g,
|
|
3981
|
+
let R = `${g}__${s}`;
|
|
3982
|
+
Tn(d) || (R = `${R}__${JSON.stringify(d)}`);
|
|
3983
|
+
let M = l.get(R);
|
|
3984
|
+
return M || (M = new Intl.DateTimeFormat(g, Pe({}, v, d)), l.set(R, M)), p ? M.formatToParts(u) : M.format(u);
|
|
3985
3985
|
}
|
|
3986
3986
|
const ea = [
|
|
3987
3987
|
"localeMatcher",
|
|
@@ -4019,11 +4019,11 @@ function ti(...e) {
|
|
|
4019
4019
|
} catch {
|
|
4020
4020
|
throw vt(gt.INVALID_ISO_DATE_ARGUMENT);
|
|
4021
4021
|
}
|
|
4022
|
-
} else if (
|
|
4022
|
+
} else if (Ns(t)) {
|
|
4023
4023
|
if (isNaN(t.getTime()))
|
|
4024
4024
|
throw vt(gt.INVALID_DATE_ARGUMENT);
|
|
4025
4025
|
l = t;
|
|
4026
|
-
} else if (
|
|
4026
|
+
} else if (Ne(t))
|
|
4027
4027
|
l = t;
|
|
4028
4028
|
else
|
|
4029
4029
|
throw vt(gt.INVALID_ARGUMENT);
|
|
@@ -4055,10 +4055,10 @@ function eo(e, ...t) {
|
|
|
4055
4055
|
wi(e, s, g, c, E);
|
|
4056
4056
|
if (!pe(v) || !Q(g))
|
|
4057
4057
|
return i ? Dn : s;
|
|
4058
|
-
let
|
|
4059
|
-
Tn(d) || (
|
|
4060
|
-
let M = l.get(
|
|
4061
|
-
return M || (M = new Intl.NumberFormat(g,
|
|
4058
|
+
let R = `${g}__${s}`;
|
|
4059
|
+
Tn(d) || (R = `${R}__${JSON.stringify(d)}`);
|
|
4060
|
+
let M = l.get(R);
|
|
4061
|
+
return M || (M = new Intl.NumberFormat(g, Pe({}, v, d)), l.set(R, M)), p ? M.formatToParts(u) : M.format(u);
|
|
4062
4062
|
}
|
|
4063
4063
|
const ta = [
|
|
4064
4064
|
"localeMatcher",
|
|
@@ -4085,7 +4085,7 @@ const ta = [
|
|
|
4085
4085
|
function ni(...e) {
|
|
4086
4086
|
const [t, n, i, a] = e, o = be();
|
|
4087
4087
|
let r = be();
|
|
4088
|
-
if (!
|
|
4088
|
+
if (!Ne(t))
|
|
4089
4089
|
throw vt(gt.INVALID_ARGUMENT);
|
|
4090
4090
|
const l = t;
|
|
4091
4091
|
return Q(n) ? o.key = n : pe(n) && Object.keys(n).forEach((s) => {
|
|
@@ -4104,15 +4104,15 @@ function no(e, t) {
|
|
|
4104
4104
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
4105
4105
|
}
|
|
4106
4106
|
function su(e) {
|
|
4107
|
-
const t =
|
|
4108
|
-
return e.named && (
|
|
4107
|
+
const t = Ne(e.pluralIndex) ? e.pluralIndex : -1;
|
|
4108
|
+
return e.named && (Ne(e.named.count) || Ne(e.named.n)) ? Ne(e.named.count) ? e.named.count : Ne(e.named.n) ? e.named.n : t : t;
|
|
4109
4109
|
}
|
|
4110
4110
|
function lu(e, t) {
|
|
4111
4111
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
4112
4112
|
}
|
|
4113
4113
|
function uu(e = {}) {
|
|
4114
4114
|
const t = e.locale, n = su(e), i = fe(e.pluralRules) && Q(t) && Ee(e.pluralRules[t]) ? e.pluralRules[t] : no, a = fe(e.pluralRules) && Q(t) && Ee(e.pluralRules[t]) ? no : void 0, o = (g) => g[i(n, g.length, a)], r = e.list || [], l = (g) => r[g], s = e.named || be();
|
|
4115
|
-
|
|
4115
|
+
Ne(e.pluralIndex) && lu(n, s);
|
|
4116
4116
|
const u = (g) => s[g];
|
|
4117
4117
|
function m(g, v) {
|
|
4118
4118
|
const E = Ee(e.messages) ? e.messages(g, !!v) : fe(e.messages) ? e.messages[g] : !1;
|
|
@@ -4123,9 +4123,9 @@ function uu(e = {}) {
|
|
|
4123
4123
|
named: u,
|
|
4124
4124
|
plural: o,
|
|
4125
4125
|
linked: (g, ...v) => {
|
|
4126
|
-
const [E,
|
|
4126
|
+
const [E, R] = v;
|
|
4127
4127
|
let M = "text", O = "";
|
|
4128
|
-
v.length === 1 ? fe(E) ? (O = E.modifier || O, M = E.type || M) : Q(E) && (O = E || O) : v.length === 2 && (Q(E) && (O = E || O), Q(
|
|
4128
|
+
v.length === 1 ? fe(E) ? (O = E.modifier || O, M = E.type || M) : Q(E) && (O = E || O) : v.length === 2 && (Q(E) && (O = E || O), Q(R) && (M = R || M));
|
|
4129
4129
|
const w = m(g, !0)(y), x = (
|
|
4130
4130
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
4131
4131
|
M === "vnode" && Ie(w) && O ? w[0] : w
|
|
@@ -4136,7 +4136,7 @@ function uu(e = {}) {
|
|
|
4136
4136
|
type: k,
|
|
4137
4137
|
interpolate: p,
|
|
4138
4138
|
normalize: c,
|
|
4139
|
-
values:
|
|
4139
|
+
values: Pe(be(), r, s)
|
|
4140
4140
|
};
|
|
4141
4141
|
return y;
|
|
4142
4142
|
}
|
|
@@ -4148,27 +4148,27 @@ function oo(e, ...t) {
|
|
|
4148
4148
|
s,
|
|
4149
4149
|
y,
|
|
4150
4150
|
l[y] || be()
|
|
4151
|
-
] : na(e, s, y, r, d, m),
|
|
4152
|
-
if (!p && !(Q(
|
|
4151
|
+
] : na(e, s, y, r, d, m), R = g, M = s;
|
|
4152
|
+
if (!p && !(Q(R) || Kt(R) || Ke(R)) && _ && (R = k, M = R), !p && (!(Q(R) || Kt(R) || Ke(R)) || !Q(v)))
|
|
4153
4153
|
return a ? Dn : s;
|
|
4154
4154
|
let O = !1;
|
|
4155
4155
|
const w = () => {
|
|
4156
4156
|
O = !0;
|
|
4157
|
-
}, x = Ke(
|
|
4157
|
+
}, x = Ke(R) ? R : ia(e, s, v, R, M, w);
|
|
4158
4158
|
if (O)
|
|
4159
|
-
return
|
|
4160
|
-
const S = pu(e, v, E, u), I = uu(S),
|
|
4159
|
+
return R;
|
|
4160
|
+
const S = pu(e, v, E, u), I = uu(S), P = du(e, x, I), N = i ? i(P, s) : P;
|
|
4161
4161
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
4162
4162
|
const D = {
|
|
4163
4163
|
timestamp: Date.now(),
|
|
4164
|
-
key: Q(s) ? s : Ke(
|
|
4165
|
-
locale: v || (Ke(
|
|
4166
|
-
format: Q(
|
|
4167
|
-
message:
|
|
4164
|
+
key: Q(s) ? s : Ke(R) ? R.key : "",
|
|
4165
|
+
locale: v || (Ke(R) ? R.locale : ""),
|
|
4166
|
+
format: Q(R) ? R : Ke(R) ? R.source : "",
|
|
4167
|
+
message: N
|
|
4168
4168
|
};
|
|
4169
|
-
D.meta =
|
|
4169
|
+
D.meta = Pe({}, e.__meta, /* @__PURE__ */ Jl() || {}), Ml(D);
|
|
4170
4170
|
}
|
|
4171
|
-
return
|
|
4171
|
+
return N;
|
|
4172
4172
|
}
|
|
4173
4173
|
function cu(e) {
|
|
4174
4174
|
Ie(e.list) ? e.list = e.list.map((t) => Q(t) ? zi(t) : t) : fe(e.named) && Object.keys(e.named).forEach((t) => {
|
|
@@ -4211,10 +4211,10 @@ function du(e, t, n) {
|
|
|
4211
4211
|
}
|
|
4212
4212
|
function ii(...e) {
|
|
4213
4213
|
const [t, n, i] = e, a = be();
|
|
4214
|
-
if (!Q(t) && !
|
|
4214
|
+
if (!Q(t) && !Ne(t) && !Ke(t) && !Kt(t))
|
|
4215
4215
|
throw vt(gt.INVALID_ARGUMENT);
|
|
4216
|
-
const o =
|
|
4217
|
-
return
|
|
4216
|
+
const o = Ne(t) ? String(t) : (Ke(t), t);
|
|
4217
|
+
return Ne(n) ? a.plural = n : Q(n) ? a.default = n : pe(n) && !Tn(n) ? a.named = n : Ie(n) && (a.list = n), Ne(i) ? a.plural = i : Q(i) ? a.default = i : pe(i) && Pe(a, i), [o, a];
|
|
4218
4218
|
}
|
|
4219
4219
|
function mu(e, t, n, i, a, o) {
|
|
4220
4220
|
return {
|
|
@@ -4255,17 +4255,17 @@ function pu(e, t, n, i) {
|
|
|
4255
4255
|
} else return Ke(_) ? _ : io;
|
|
4256
4256
|
}
|
|
4257
4257
|
};
|
|
4258
|
-
return e.processor && (c.processor = e.processor), i.list && (c.list = i.list), i.named && (c.named = i.named),
|
|
4258
|
+
return e.processor && (c.processor = e.processor), i.list && (c.list = i.list), i.named && (c.named = i.named), Ne(i.plural) && (c.pluralIndex = i.plural), c;
|
|
4259
4259
|
}
|
|
4260
4260
|
cl();
|
|
4261
|
-
var fu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_2661e3dc-48f7-4cf1-ace8-05bd2d8c800b", 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_2661e3dc-48f7-4cf1-ace8-05bd2d8c800b", 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-9.0.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-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: "20250804.2.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:13270", 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: "16885047035", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "3443a4eddb0758569a3c6a9abfb80cdcd96e8db8", 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_7f00d94a-a7cd-40c3-bbb8-99456df8e9b9", INVOCATION_ID: "ae71e8ff502f43139780caa5b4a6105f", 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: "390", 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 1000011659", 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.26", 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.20", 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: "3443a4eddb0758569a3c6a9abfb80cdcd96e8db8", 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_2661e3dc-48f7-4cf1-ace8-05bd2d8c800b", 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_2661e3dc-48f7-4cf1-ace8-05bd2d8c800b", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.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_2661e3dc-48f7-4cf1-ace8-05bd2d8c800b", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
4261
|
+
var fu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c1506e15-6d08-459d-a55f-13f1722087c5", 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_c1506e15-6d08-459d-a55f-13f1722087c5", 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-9.0.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-zzez732dna-as.a.run.app", SYSTEMD_EXEC_PID: "1750", 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: "20250804.2.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:10999", 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: "16900294217", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "d2b733144462a689878d9a5a2f7bb6d9d8bf5e1b", 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_b14670f6-2e61-4eca-8ccd-82eb321bf92b", INVOCATION_ID: "9435019663a244e29e44d46528d89b30", 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: "69", 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 1000011799", 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.26", 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.21-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: "d2b733144462a689878d9a5a2f7bb6d9d8bf5e1b", 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_c1506e15-6d08-459d-a55f-13f1722087c5", 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_c1506e15-6d08-459d-a55f-13f1722087c5", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", npm_package_dependencies__feedmepos_menu: "1.6.4", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_c1506e15-6d08-459d-a55f-13f1722087c5", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
4262
4262
|
const hu = "10.0.5";
|
|
4263
4263
|
function gu() {
|
|
4264
4264
|
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);
|
|
4265
4265
|
}
|
|
4266
4266
|
const Yt = {
|
|
4267
4267
|
// composer module errors
|
|
4268
|
-
UNEXPECTED_RETURN_TYPE:
|
|
4268
|
+
UNEXPECTED_RETURN_TYPE: Nl,
|
|
4269
4269
|
// 24
|
|
4270
4270
|
// legacy module errors
|
|
4271
4271
|
INVALID_ARGUMENT: 25,
|
|
@@ -4343,7 +4343,7 @@ function _u(e, t, n) {
|
|
|
4343
4343
|
}
|
|
4344
4344
|
}
|
|
4345
4345
|
function ao(e) {
|
|
4346
|
-
return
|
|
4346
|
+
return A(ba, null, e, 0);
|
|
4347
4347
|
}
|
|
4348
4348
|
const ro = "__INTLIFY_META__", so = () => [], bu = () => !1;
|
|
4349
4349
|
let lo = 0;
|
|
@@ -4365,7 +4365,7 @@ function wu(e = {}) {
|
|
|
4365
4365
|
// prettier-ignore
|
|
4366
4366
|
t && r ? t.fallbackLocale.value : Q(e.fallbackLocale) || Ie(e.fallbackLocale) || pe(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
4367
4367
|
), u = o(aa(l.value, e)), m = o(pe(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), d = o(pe(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
4368
|
-
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, k = 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, E = t ? t.warnHtmlMessage : Ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0,
|
|
4368
|
+
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, k = 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, E = t ? t.warnHtmlMessage : Ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, R = !!e.escapeParameter;
|
|
4369
4369
|
const M = t ? t.modifiers : pe(e.modifiers) ? e.modifiers : {};
|
|
4370
4370
|
let O = e.pluralRules || t && t.pluralRules, w;
|
|
4371
4371
|
w = (() => {
|
|
@@ -4384,7 +4384,7 @@ function wu(e = {}) {
|
|
|
4384
4384
|
unresolving: !0,
|
|
4385
4385
|
postTranslation: v === null ? void 0 : v,
|
|
4386
4386
|
warnHtmlMessage: E,
|
|
4387
|
-
escapeParameter:
|
|
4387
|
+
escapeParameter: R,
|
|
4388
4388
|
messageResolver: e.messageResolver,
|
|
4389
4389
|
messageCompiler: e.messageCompiler,
|
|
4390
4390
|
__meta: { framework: "vue" }
|
|
@@ -4407,12 +4407,12 @@ function wu(e = {}) {
|
|
|
4407
4407
|
set: (F) => {
|
|
4408
4408
|
l.value = F, w.locale = l.value;
|
|
4409
4409
|
}
|
|
4410
|
-
}),
|
|
4410
|
+
}), P = z({
|
|
4411
4411
|
get: () => s.value,
|
|
4412
4412
|
set: (F) => {
|
|
4413
4413
|
s.value = F, w.fallbackLocale = s.value, Jt(w, l.value, F);
|
|
4414
4414
|
}
|
|
4415
|
-
}),
|
|
4415
|
+
}), N = z(() => u.value), D = /* @__PURE__ */ z(() => m.value), C = /* @__PURE__ */ z(() => d.value);
|
|
4416
4416
|
function T() {
|
|
4417
4417
|
return Ee(v) ? v : null;
|
|
4418
4418
|
}
|
|
@@ -4434,7 +4434,7 @@ function wu(e = {}) {
|
|
|
4434
4434
|
__INTLIFY_PROD_DEVTOOLS__, i || (w.fallbackContext = void 0);
|
|
4435
4435
|
}
|
|
4436
4436
|
if (he !== "translate exists" && // for not `te` (e.g `t`)
|
|
4437
|
-
|
|
4437
|
+
Ne(Ut) && Ut === Dn || he === "translate exists" && !Ut) {
|
|
4438
4438
|
const [fa, jd] = W();
|
|
4439
4439
|
return t && k ? we(t) : et(fa);
|
|
4440
4440
|
} else {
|
|
@@ -4443,14 +4443,14 @@ function wu(e = {}) {
|
|
|
4443
4443
|
throw nn(Yt.UNEXPECTED_RETURN_TYPE);
|
|
4444
4444
|
}
|
|
4445
4445
|
};
|
|
4446
|
-
function
|
|
4446
|
+
function Ae(...F) {
|
|
4447
4447
|
return ce((W) => Reflect.apply(oo, null, [W, ...F]), () => ii(...F), "translate", (W) => Reflect.apply(W.t, W, [...F]), (W) => W, (W) => Q(W));
|
|
4448
4448
|
}
|
|
4449
4449
|
function $(...F) {
|
|
4450
4450
|
const [W, he, we] = F;
|
|
4451
4451
|
if (we && !fe(we))
|
|
4452
4452
|
throw nn(Yt.INVALID_ARGUMENT);
|
|
4453
|
-
return
|
|
4453
|
+
return Ae(W, he, Pe({ resolvedMessage: !0 }, we || {}));
|
|
4454
4454
|
}
|
|
4455
4455
|
function K(...F) {
|
|
4456
4456
|
return ce((W) => Reflect.apply(Zi, null, [W, ...F]), () => ti(...F), "datetime format", (W) => Reflect.apply(W.d, W, [...F]), () => Yi, (W) => Q(W));
|
|
@@ -4459,7 +4459,7 @@ function wu(e = {}) {
|
|
|
4459
4459
|
return ce((W) => Reflect.apply(eo, null, [W, ...F]), () => ni(...F), "number format", (W) => Reflect.apply(W.n, W, [...F]), () => Yi, (W) => Q(W));
|
|
4460
4460
|
}
|
|
4461
4461
|
function J(F) {
|
|
4462
|
-
return F.map((W) => Q(W) ||
|
|
4462
|
+
return F.map((W) => Q(W) || Ne(W) || Ce(W) ? ao(String(W)) : W);
|
|
4463
4463
|
}
|
|
4464
4464
|
const ae = {
|
|
4465
4465
|
normalize: J,
|
|
@@ -4538,7 +4538,7 @@ function wu(e = {}) {
|
|
|
4538
4538
|
m.value[F] = W, w.datetimeFormats = m.value, Qi(w, F, W);
|
|
4539
4539
|
}
|
|
4540
4540
|
function h(F, W) {
|
|
4541
|
-
m.value[F] =
|
|
4541
|
+
m.value[F] = Pe(m.value[F] || {}, W), w.datetimeFormats = m.value, Qi(w, F, W);
|
|
4542
4542
|
}
|
|
4543
4543
|
function L(F) {
|
|
4544
4544
|
return d.value[F] || {};
|
|
@@ -4547,7 +4547,7 @@ function wu(e = {}) {
|
|
|
4547
4547
|
d.value[F] = W, w.numberFormats = d.value, to(w, F, W);
|
|
4548
4548
|
}
|
|
4549
4549
|
function X(F, W) {
|
|
4550
|
-
d.value[F] =
|
|
4550
|
+
d.value[F] = Pe(d.value[F] || {}, W), w.numberFormats = d.value, to(w, F, W);
|
|
4551
4551
|
}
|
|
4552
4552
|
lo++, t && Ui && (Fe(t.locale, (F) => {
|
|
4553
4553
|
r && (l.value = F, w.locale = F, Jt(w, l.value, s.value));
|
|
@@ -4557,7 +4557,7 @@ function wu(e = {}) {
|
|
|
4557
4557
|
const ue = {
|
|
4558
4558
|
id: lo,
|
|
4559
4559
|
locale: I,
|
|
4560
|
-
fallbackLocale:
|
|
4560
|
+
fallbackLocale: P,
|
|
4561
4561
|
get inheritLocale() {
|
|
4562
4562
|
return r;
|
|
4563
4563
|
},
|
|
@@ -4567,7 +4567,7 @@ function wu(e = {}) {
|
|
|
4567
4567
|
get availableLocales() {
|
|
4568
4568
|
return Object.keys(u.value).sort();
|
|
4569
4569
|
},
|
|
4570
|
-
messages:
|
|
4570
|
+
messages: N,
|
|
4571
4571
|
get modifiers() {
|
|
4572
4572
|
return M;
|
|
4573
4573
|
},
|
|
@@ -4608,12 +4608,12 @@ function wu(e = {}) {
|
|
|
4608
4608
|
E = F, w.warnHtmlMessage = F;
|
|
4609
4609
|
},
|
|
4610
4610
|
get escapeParameter() {
|
|
4611
|
-
return
|
|
4611
|
+
return R;
|
|
4612
4612
|
},
|
|
4613
4613
|
set escapeParameter(F) {
|
|
4614
|
-
|
|
4614
|
+
R = F, w.escapeParameter = F;
|
|
4615
4615
|
},
|
|
4616
|
-
t:
|
|
4616
|
+
t: Ae,
|
|
4617
4617
|
getLocaleMessage: ut,
|
|
4618
4618
|
setLocaleMessage: ct,
|
|
4619
4619
|
mergeLocaleMessage: wt,
|
|
@@ -4656,14 +4656,14 @@ function Eu({ slots: e }, t) {
|
|
|
4656
4656
|
function sa() {
|
|
4657
4657
|
return Ue;
|
|
4658
4658
|
}
|
|
4659
|
-
|
|
4659
|
+
Pe({
|
|
4660
4660
|
keypath: {
|
|
4661
4661
|
type: String,
|
|
4662
4662
|
required: !0
|
|
4663
4663
|
},
|
|
4664
4664
|
plural: {
|
|
4665
4665
|
type: [Number, String],
|
|
4666
|
-
validator: (e) =>
|
|
4666
|
+
validator: (e) => Ne(e) || !isNaN(e)
|
|
4667
4667
|
}
|
|
4668
4668
|
}, Ei);
|
|
4669
4669
|
function ku(e) {
|
|
@@ -4674,18 +4674,18 @@ function la(e, t, n, i) {
|
|
|
4674
4674
|
return () => {
|
|
4675
4675
|
const r = { part: !0 };
|
|
4676
4676
|
let l = be();
|
|
4677
|
-
e.locale && (r.locale = e.locale), Q(e.format) ? r.key = e.format : fe(e.format) && (Q(e.format.key) && (r.key = e.format.key), l = Object.keys(e.format).reduce((c, p) => n.includes(p) ?
|
|
4677
|
+
e.locale && (r.locale = e.locale), Q(e.format) ? r.key = e.format : fe(e.format) && (Q(e.format.key) && (r.key = e.format.key), l = Object.keys(e.format).reduce((c, p) => n.includes(p) ? Pe(be(), c, { [p]: e.format[p] }) : c, be()));
|
|
4678
4678
|
const s = i(e.value, r, l);
|
|
4679
4679
|
let u = [r.key];
|
|
4680
4680
|
Ie(s) ? u = s.map((c, p) => {
|
|
4681
4681
|
const k = a[c.type], _ = k ? k({ [c.type]: c.value, index: p, parts: s }) : [c.value];
|
|
4682
4682
|
return ku(_) && (_[0].key = `${c.type}-${p}`), _;
|
|
4683
4683
|
}) : Q(s) && (u = [s]);
|
|
4684
|
-
const m =
|
|
4684
|
+
const m = Pe(be(), o), d = Q(e.tag) || fe(e.tag) ? e.tag : sa();
|
|
4685
4685
|
return De(d, m, u);
|
|
4686
4686
|
};
|
|
4687
4687
|
}
|
|
4688
|
-
|
|
4688
|
+
Pe({
|
|
4689
4689
|
value: {
|
|
4690
4690
|
type: Number,
|
|
4691
4691
|
required: !0
|
|
@@ -4694,7 +4694,7 @@ Ne({
|
|
|
4694
4694
|
type: [String, Object]
|
|
4695
4695
|
}
|
|
4696
4696
|
}, Ei);
|
|
4697
|
-
|
|
4697
|
+
Pe({
|
|
4698
4698
|
value: {
|
|
4699
4699
|
type: [Number, Date],
|
|
4700
4700
|
required: !0
|
|
@@ -4710,7 +4710,7 @@ function ln(e = {}) {
|
|
|
4710
4710
|
throw nn(Yt.MUST_BE_CALL_SETUP_TOP);
|
|
4711
4711
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
4712
4712
|
throw nn(Yt.NOT_INSTALLED);
|
|
4713
|
-
const n = Cu(t), i =
|
|
4713
|
+
const n = Cu(t), i = Au(n), a = ra(t), o = Ru(e, a);
|
|
4714
4714
|
if (o === "global")
|
|
4715
4715
|
return _u(i, e, a), i;
|
|
4716
4716
|
if (o === "parent") {
|
|
@@ -4720,7 +4720,7 @@ function ln(e = {}) {
|
|
|
4720
4720
|
const r = n;
|
|
4721
4721
|
let l = r.__getInstance(t);
|
|
4722
4722
|
if (l == null) {
|
|
4723
|
-
const s =
|
|
4723
|
+
const s = Pe({}, e);
|
|
4724
4724
|
"__i18n" in a && (s.__i18n = a.__i18n), i && (s.__root = i), l = wu(s), r.__composerExtend && (l[si] = r.__composerExtend(l)), Tu(r, t, l), r.__setInstance(t, l);
|
|
4725
4725
|
}
|
|
4726
4726
|
return l;
|
|
@@ -4731,10 +4731,10 @@ function Cu(e) {
|
|
|
4731
4731
|
throw nn(e.isCE ? Yt.NOT_INSTALLED_WITH_PROVIDE : Yt.UNEXPECTED_ERROR);
|
|
4732
4732
|
return t;
|
|
4733
4733
|
}
|
|
4734
|
-
function
|
|
4734
|
+
function Ru(e, t) {
|
|
4735
4735
|
return Tn(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
4736
4736
|
}
|
|
4737
|
-
function
|
|
4737
|
+
function Au(e) {
|
|
4738
4738
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
4739
4739
|
}
|
|
4740
4740
|
function Ou(e, t, n = !1) {
|
|
@@ -4775,7 +4775,7 @@ if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
|
4775
4775
|
const e = Dt();
|
|
4776
4776
|
e.__INTLIFY__ = !0, Il(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
4777
4777
|
}
|
|
4778
|
-
const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wrapper" },
|
|
4778
|
+
const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wrapper" }, Nu = { class: "fm-typo-en-body-lg-600 text-fm-color-primary" }, Pu = {
|
|
4779
4779
|
key: 0,
|
|
4780
4780
|
class: "flex flex-col gap-4 justify-center"
|
|
4781
4781
|
}, Fu = /* @__PURE__ */ ve({
|
|
@@ -4797,12 +4797,12 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4797
4797
|
menuLoader: l,
|
|
4798
4798
|
isLocalOnly: n.isLocalOnly
|
|
4799
4799
|
}), c = (v, E) => {
|
|
4800
|
-
v ? m.value = [...m.value, E] : m.value = m.value.filter((
|
|
4800
|
+
v ? m.value = [...m.value, E] : m.value = m.value.filter((R) => R.value !== E.value), i(
|
|
4801
4801
|
"update:modelValue",
|
|
4802
|
-
m.value.map((
|
|
4802
|
+
m.value.map((R) => R.value)
|
|
4803
4803
|
);
|
|
4804
4804
|
}, p = (v) => {
|
|
4805
|
-
m.value = m.value.filter((E,
|
|
4805
|
+
m.value = m.value.filter((E, R) => R !== v), i(
|
|
4806
4806
|
"update:modelValue",
|
|
4807
4807
|
m.value.map((E) => E.value)
|
|
4808
4808
|
);
|
|
@@ -4820,9 +4820,9 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4820
4820
|
},
|
|
4821
4821
|
{ immediate: !0 }
|
|
4822
4822
|
), (v, E) => {
|
|
4823
|
-
const
|
|
4823
|
+
const R = H("FmIcon"), M = H("FmField"), O = H("FmMenuItem"), w = H("FmMenu"), x = H("FmFormGroup"), S = H("FmChipGroup");
|
|
4824
4824
|
return U(), re("div", Mu, [
|
|
4825
|
-
|
|
4825
|
+
A(x, {
|
|
4826
4826
|
"model-value": v.modelValue,
|
|
4827
4827
|
disabled: v.disabled,
|
|
4828
4828
|
focused: g.value,
|
|
@@ -4831,21 +4831,21 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4831
4831
|
rules: v.rules
|
|
4832
4832
|
}, {
|
|
4833
4833
|
default: G(({ invalid: I }) => [
|
|
4834
|
-
|
|
4834
|
+
A(w, {
|
|
4835
4835
|
disabled: v.disabled,
|
|
4836
4836
|
ref_key: "fmMenuRef",
|
|
4837
4837
|
ref: u,
|
|
4838
4838
|
"close-on-click": !1,
|
|
4839
|
-
onMenuChanged: E[1] || (E[1] = (
|
|
4839
|
+
onMenuChanged: E[1] || (E[1] = (P) => g.value = P)
|
|
4840
4840
|
}, {
|
|
4841
4841
|
"menu-button": G(() => [
|
|
4842
|
-
|
|
4842
|
+
A(M, {
|
|
4843
4843
|
class: He(v.disabled ? "cursor-not-allowed" : "cursor-pointer"),
|
|
4844
4844
|
focused: g.value,
|
|
4845
4845
|
invalid: I
|
|
4846
4846
|
}, {
|
|
4847
4847
|
append: G(() => [
|
|
4848
|
-
R
|
|
4848
|
+
A(R, {
|
|
4849
4849
|
color: v.disabled ? "#C7C7CC" : "black",
|
|
4850
4850
|
name: g.value ? "expand_less" : "expand_more",
|
|
4851
4851
|
size: "md"
|
|
@@ -4863,25 +4863,25 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4863
4863
|
]),
|
|
4864
4864
|
default: G(() => [
|
|
4865
4865
|
B("div", Du, [
|
|
4866
|
-
(U(!0), re(Ue, null, at(v.items, (
|
|
4867
|
-
key:
|
|
4868
|
-
disabled:
|
|
4866
|
+
(U(!0), re(Ue, null, at(v.items, (P) => (U(), Z(O, {
|
|
4867
|
+
key: P.value,
|
|
4868
|
+
disabled: P.disabled,
|
|
4869
4869
|
"has-checkbox": !0,
|
|
4870
|
-
label:
|
|
4871
|
-
"model-value": m.value.some((
|
|
4872
|
-
"onUpdate:modelValue": (
|
|
4870
|
+
label: P.label,
|
|
4871
|
+
"model-value": m.value.some((N) => N.value === P.value),
|
|
4872
|
+
"onUpdate:modelValue": (N) => c(N, P)
|
|
4873
4873
|
}, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue"]))), 128)),
|
|
4874
4874
|
B("button", {
|
|
4875
4875
|
class: "flex items-center py-8 px-16 space-x-8",
|
|
4876
4876
|
type: "button",
|
|
4877
|
-
onClick: E[0] || (E[0] = (
|
|
4877
|
+
onClick: E[0] || (E[0] = (P) => k())
|
|
4878
4878
|
}, [
|
|
4879
|
-
R
|
|
4879
|
+
A(R, {
|
|
4880
4880
|
color: "primary",
|
|
4881
4881
|
name: "add",
|
|
4882
4882
|
size: "md"
|
|
4883
4883
|
}),
|
|
4884
|
-
B("p",
|
|
4884
|
+
B("p", Nu, ye(b(s)("menu.product.form.detail.subcategory.add_new")), 1)
|
|
4885
4885
|
])
|
|
4886
4886
|
])
|
|
4887
4887
|
]),
|
|
@@ -4890,8 +4890,8 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4890
4890
|
]),
|
|
4891
4891
|
_: 1
|
|
4892
4892
|
}, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
|
|
4893
|
-
m.value.length > 0 ? (U(), re("div",
|
|
4894
|
-
|
|
4893
|
+
m.value.length > 0 ? (U(), re("div", Pu, [
|
|
4894
|
+
A(S, {
|
|
4895
4895
|
disabled: v.disabled,
|
|
4896
4896
|
items: m.value.map((I) => ({ label: I.label })),
|
|
4897
4897
|
removable: "",
|
|
@@ -4901,7 +4901,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4901
4901
|
]);
|
|
4902
4902
|
};
|
|
4903
4903
|
}
|
|
4904
|
-
}), Lu = /* @__PURE__ */
|
|
4904
|
+
}), Lu = /* @__PURE__ */ At(Fu, [["__scopeId", "data-v-ca5e943c"]]), xu = { class: "flex flex-col gap-4" }, Uu = { class: "fm-select__menu__wrapper" }, Vu = {
|
|
4905
4905
|
key: 0,
|
|
4906
4906
|
class: "flex flex-col gap-4 justify-center"
|
|
4907
4907
|
}, zu = /* @__PURE__ */ ve({
|
|
@@ -4958,9 +4958,9 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4958
4958
|
return t({
|
|
4959
4959
|
hideMenu: m
|
|
4960
4960
|
}), (_, y) => {
|
|
4961
|
-
const g = H("FmIcon"), v = H("FmField"), E = H("FmMenuItem"),
|
|
4961
|
+
const g = H("FmIcon"), v = H("FmField"), E = H("FmMenuItem"), R = H("FmMenu"), M = H("FmFormGroup"), O = H("FmChipGroup");
|
|
4962
4962
|
return U(), re("div", xu, [
|
|
4963
|
-
|
|
4963
|
+
A(M, {
|
|
4964
4964
|
"model-value": _.modelValue,
|
|
4965
4965
|
disabled: _.disabled,
|
|
4966
4966
|
focused: c.value,
|
|
@@ -4969,7 +4969,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4969
4969
|
rules: _.rules
|
|
4970
4970
|
}, {
|
|
4971
4971
|
default: G(({ invalid: w }) => [
|
|
4972
|
-
R
|
|
4972
|
+
A(R, {
|
|
4973
4973
|
disabled: _.disabled,
|
|
4974
4974
|
ref_key: "fmMenuRef",
|
|
4975
4975
|
ref: r,
|
|
@@ -4977,13 +4977,13 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4977
4977
|
onMenuChanged: y[0] || (y[0] = (x) => c.value = x)
|
|
4978
4978
|
}, {
|
|
4979
4979
|
"menu-button": G(() => [
|
|
4980
|
-
|
|
4980
|
+
A(v, {
|
|
4981
4981
|
class: He(_.disabled ? "cursor-not-allowed" : "cursor-pointer"),
|
|
4982
4982
|
focused: c.value,
|
|
4983
4983
|
invalid: w
|
|
4984
4984
|
}, {
|
|
4985
4985
|
append: G(() => [
|
|
4986
|
-
|
|
4986
|
+
A(g, {
|
|
4987
4987
|
color: _.disabled ? "#C7C7CC" : "black",
|
|
4988
4988
|
name: c.value ? "expand_less" : "expand_more",
|
|
4989
4989
|
size: "md"
|
|
@@ -5009,7 +5009,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
5009
5009
|
"model-value": l.value.some((S) => S.value === x.value),
|
|
5010
5010
|
"onUpdate:modelValue": (S) => s(S, x)
|
|
5011
5011
|
}, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue"]))), 128)),
|
|
5012
|
-
|
|
5012
|
+
Re(_.$slots, "append-menu", {}, void 0, !0)
|
|
5013
5013
|
])
|
|
5014
5014
|
]),
|
|
5015
5015
|
_: 2
|
|
@@ -5018,7 +5018,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
5018
5018
|
_: 3
|
|
5019
5019
|
}, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
|
|
5020
5020
|
_.shouldShowChips && l.value.length > 0 ? (U(), re("div", Vu, [
|
|
5021
|
-
|
|
5021
|
+
A(O, {
|
|
5022
5022
|
disabled: _.disabled,
|
|
5023
5023
|
items: l.value.map((w) => ({ label: w.label })),
|
|
5024
5024
|
removable: "",
|
|
@@ -5028,7 +5028,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
5028
5028
|
]);
|
|
5029
5029
|
};
|
|
5030
5030
|
}
|
|
5031
|
-
}), $u = /* @__PURE__ */
|
|
5031
|
+
}), $u = /* @__PURE__ */ At(zu, [["__scopeId", "data-v-1d940d75"]]), Bu = {
|
|
5032
5032
|
class: "flex flex-row xs:flex-col gap-24"
|
|
5033
5033
|
}, Gu = {
|
|
5034
5034
|
class: "flex-1 flex flex-col gap-24"
|
|
@@ -5106,26 +5106,26 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5106
5106
|
}
|
|
5107
5107
|
d("update:form", "category", V._id), d("update:form", "additionalCategories", j);
|
|
5108
5108
|
}
|
|
5109
|
-
}),
|
|
5110
|
-
ref:
|
|
5109
|
+
}), R = te(), M = () => n.isAddon ? null : A($u, {
|
|
5110
|
+
ref: R,
|
|
5111
5111
|
disabled: !c.value.category || n.isAddon || m(),
|
|
5112
5112
|
items: k.value,
|
|
5113
5113
|
modelValue: E.value,
|
|
5114
5114
|
"onUpdate:model-value": (T) => E.value = T,
|
|
5115
5115
|
placeholder: C("menu.product.form.detail.category.placeholder")
|
|
5116
5116
|
}, {
|
|
5117
|
-
"append-menu": () =>
|
|
5117
|
+
"append-menu": () => A("button", {
|
|
5118
5118
|
class: "flex items-center py-8 px-16 space-x-8",
|
|
5119
5119
|
type: "button",
|
|
5120
5120
|
onClick: () => {
|
|
5121
5121
|
var T;
|
|
5122
|
-
(T =
|
|
5122
|
+
(T = R.value) == null || T.hideMenu(), u.create();
|
|
5123
5123
|
}
|
|
5124
|
-
}, [
|
|
5124
|
+
}, [A(Be.FmIcon, {
|
|
5125
5125
|
color: "primary",
|
|
5126
5126
|
name: "add",
|
|
5127
5127
|
size: "md"
|
|
5128
|
-
}, null),
|
|
5128
|
+
}, null), A("p", {
|
|
5129
5129
|
class: "fm-typo-en-body-lg-600 text-fm-color-primary"
|
|
5130
5130
|
}, [C("menu.product.form.detail.category.add_new")])])
|
|
5131
5131
|
});
|
|
@@ -5141,7 +5141,7 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5141
5141
|
var j, le, ce;
|
|
5142
5142
|
if (w.value === T) return;
|
|
5143
5143
|
const V = T == Mt.ADD_ON;
|
|
5144
|
-
d("update:form", "category", n.isOverride ? V ? "" : ((j = n.fallback) == null ? void 0 : j.category) ?? ((le = k.value.find((
|
|
5144
|
+
d("update:form", "category", n.isOverride ? V ? "" : ((j = n.fallback) == null ? void 0 : j.category) ?? ((le = k.value.find((Ae) => !!Ae.value)) == null ? void 0 : le.value) : V ? null : (ce = k.value.find((Ae) => !!Ae.value)) == null ? void 0 : ce.value), V && d("update:form", "additionalCategories", []);
|
|
5145
5145
|
}
|
|
5146
5146
|
const S = te(!1);
|
|
5147
5147
|
async function I() {
|
|
@@ -5167,7 +5167,7 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5167
5167
|
S.value = !1;
|
|
5168
5168
|
}
|
|
5169
5169
|
}
|
|
5170
|
-
const
|
|
5170
|
+
const P = z(() => i.subcategories), N = z(() => P.value.map((T) => ({
|
|
5171
5171
|
label: T.name,
|
|
5172
5172
|
value: T._id
|
|
5173
5173
|
}))), D = z({
|
|
@@ -5181,18 +5181,18 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5181
5181
|
t: C
|
|
5182
5182
|
} = ke();
|
|
5183
5183
|
return (T, V) => {
|
|
5184
|
-
const j = H("fm-text-field"), le = H("fm-textarea"), ce = H("fm-radio"),
|
|
5184
|
+
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");
|
|
5185
5185
|
return U(), Z(lt, {
|
|
5186
5186
|
title: b(C)("menu.product.form.detail.title")
|
|
5187
5187
|
}, {
|
|
5188
5188
|
default: G(() => {
|
|
5189
5189
|
var ne, ae;
|
|
5190
|
-
return [B("div", Bu, [B("div", Gu, [B("div", Wu, [B("div", Hu, [
|
|
5190
|
+
return [B("div", Bu, [B("div", Gu, [B("div", Wu, [B("div", Hu, [A(j, {
|
|
5191
5191
|
"model-value": T.form.code,
|
|
5192
5192
|
placeholder: ((ne = T.fallback) == null ? void 0 : ne.code) || b(C)("menu.product.form.detail.fields.code.placeholder"),
|
|
5193
5193
|
label: b(C)("menu.product.form.detail.fields.code.label"),
|
|
5194
5194
|
"onUpdate:modelValue": V[0] || (V[0] = (oe) => d("update:form", "code", b(jo)(oe, T.isOverride)))
|
|
5195
|
-
}, null, 8, ["model-value", "placeholder", "label"])]), B("div", ju, [
|
|
5195
|
+
}, null, 8, ["model-value", "placeholder", "label"])]), B("div", ju, [A(j, {
|
|
5196
5196
|
id: "product-name",
|
|
5197
5197
|
disabled: !c.value.name,
|
|
5198
5198
|
"helper-text": O.value > 0 ? b(C)("menu.product.form.detail.fields.name.duplicate_warning", {
|
|
@@ -5205,7 +5205,7 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5205
5205
|
autofocus: "",
|
|
5206
5206
|
label: b(C)("menu.product.form.detail.fields.name.label"),
|
|
5207
5207
|
"onUpdate:modelValue": V[1] || (V[1] = (oe) => d("update:form", "name", oe))
|
|
5208
|
-
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [
|
|
5208
|
+
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [A(le, {
|
|
5209
5209
|
disabled: !c.value.description,
|
|
5210
5210
|
"model-value": T.form.description || void 0,
|
|
5211
5211
|
placeholder: b(C)("menu.product.form.detail.fields.description.placeholder"),
|
|
@@ -5214,15 +5214,15 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5214
5214
|
}, {
|
|
5215
5215
|
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)])]),
|
|
5216
5216
|
_: 1
|
|
5217
|
-
}, 8, ["disabled", "model-value", "placeholder"]), Xt(
|
|
5217
|
+
}, 8, ["disabled", "model-value", "placeholder"]), Xt(A(Ho, {
|
|
5218
5218
|
class: "absolute top-32 right-4 cursor-pointer",
|
|
5219
5219
|
onClick: I
|
|
5220
|
-
}, null, 512), [[J, b(yo)("Suggest description")]])])]),
|
|
5220
|
+
}, null, 512), [[J, b(yo)("Suggest description")]])])]), A(Ss, {
|
|
5221
5221
|
disabled: !c.value.thumbnail,
|
|
5222
5222
|
"model-value": T.thumbnail,
|
|
5223
5223
|
"onUpdate:modelValue": V[3] || (V[3] = (oe) => d("update:thumbnail", oe)),
|
|
5224
5224
|
"onReset:modelValue": V[4] || (V[4] = (oe) => d("reset:thumbnail"))
|
|
5225
|
-
}, null, 8, ["disabled", "model-value"])]),
|
|
5225
|
+
}, null, 8, ["disabled", "model-value"])]), A(_t, {
|
|
5226
5226
|
label: b(C)("menu.product.form.detail.category.label")
|
|
5227
5227
|
}, {
|
|
5228
5228
|
default: G(() => [_.value ? (U(), Z(K, {
|
|
@@ -5231,25 +5231,25 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5231
5231
|
"model-value": w.value,
|
|
5232
5232
|
"onUpdate:modelValue": V[5] || (V[5] = (oe) => x(oe))
|
|
5233
5233
|
}, {
|
|
5234
|
-
default: G(() => [B("div", qu, [B("div", Ju, [
|
|
5234
|
+
default: G(() => [B("div", qu, [B("div", Ju, [A(ce, {
|
|
5235
5235
|
disabled: y.value || !c.value.category,
|
|
5236
5236
|
value: Mt.PRODUCT,
|
|
5237
5237
|
label: b(C)("menu.product.form.detail.category.options.product.label"),
|
|
5238
5238
|
sublabel: b(C)("menu.product.form.detail.category.options.product.sublabel")
|
|
5239
|
-
}, null, 8, ["disabled", "value", "label", "sublabel"]),
|
|
5239
|
+
}, null, 8, ["disabled", "value", "label", "sublabel"]), A(Nr, null, {
|
|
5240
5240
|
default: G(() => [b(i).isV4 ? (U(), Z(M, {
|
|
5241
5241
|
key: 0
|
|
5242
5242
|
})) : se("", !0)]),
|
|
5243
5243
|
_: 1
|
|
5244
|
-
})]), y.value ? (U(), re("div", Zu, [
|
|
5244
|
+
})]), y.value ? (U(), re("div", Zu, [A(Ae, {
|
|
5245
5245
|
title: b(C)("menu.product.form.detail.category.add_first"),
|
|
5246
5246
|
variant: "info"
|
|
5247
|
-
}, null, 8, ["title"]),
|
|
5247
|
+
}, null, 8, ["title"]), A($, {
|
|
5248
5248
|
label: b(C)("menu.common.actions.add"),
|
|
5249
5249
|
"prepend-icon": "add",
|
|
5250
5250
|
variant: "secondary",
|
|
5251
5251
|
onClick: b(u).create
|
|
5252
|
-
}, null, 8, ["label", "onClick"])])) : se("", !0),
|
|
5252
|
+
}, null, 8, ["label", "onClick"])])) : se("", !0), A(ce, {
|
|
5253
5253
|
value: Mt.ADD_ON,
|
|
5254
5254
|
label: b(C)("menu.product.form.detail.category.options.addon.label"),
|
|
5255
5255
|
sublabel: b(C)("menu.product.form.detail.category.options.addon.sublabel")
|
|
@@ -5261,7 +5261,7 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5261
5261
|
"onUpdate:modelValue": V[6] || (V[6] = (oe) => T.form.category = oe),
|
|
5262
5262
|
rules: [(oe) => !oe && !T.isOverride ? "Category is required" : !0]
|
|
5263
5263
|
}, {
|
|
5264
|
-
default: G(() => [
|
|
5264
|
+
default: G(() => [A(M)]),
|
|
5265
5265
|
_: 1
|
|
5266
5266
|
}, 8, ["modelValue", "rules"]))]),
|
|
5267
5267
|
_: 1
|
|
@@ -5269,16 +5269,16 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5269
5269
|
key: 0,
|
|
5270
5270
|
label: b(C)("menu.product.form.detail.path.label")
|
|
5271
5271
|
}, {
|
|
5272
|
-
default: G(() => [B("div", Qu, [
|
|
5272
|
+
default: G(() => [B("div", Qu, [A(Lu, {
|
|
5273
5273
|
modelValue: D.value,
|
|
5274
5274
|
"onUpdate:modelValue": V[7] || (V[7] = (oe) => D.value = oe),
|
|
5275
|
-
items:
|
|
5275
|
+
items: N.value,
|
|
5276
5276
|
placeholder: b(C)("menu.product.form.detail.path.placeholder"),
|
|
5277
5277
|
disabled: !c.value.category,
|
|
5278
5278
|
"is-local-only": !1
|
|
5279
5279
|
}, null, 8, ["modelValue", "items", "placeholder", "disabled"])])]),
|
|
5280
5280
|
_: 1
|
|
5281
|
-
}, 8, ["label"])) : se("", !0),
|
|
5281
|
+
}, 8, ["label"])) : se("", !0), A(hi, {
|
|
5282
5282
|
disabled: !c.value.orderFrom,
|
|
5283
5283
|
"model-value": T.form.orderFrom,
|
|
5284
5284
|
"order-from-none": c.value.orderFromNone,
|
|
@@ -5292,15 +5292,15 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5292
5292
|
}, 8, ["title"]);
|
|
5293
5293
|
};
|
|
5294
5294
|
}
|
|
5295
|
-
}), tc = /* @__PURE__ */
|
|
5295
|
+
}), tc = /* @__PURE__ */ At(ec, [["__scopeId", "data-v-3e6c0c15"]]), nc = {}, ic = { class: "overflow-x-auto" }, oc = { class: "xs:w-[600px]" };
|
|
5296
5296
|
function ac(e, t) {
|
|
5297
5297
|
return U(), re("div", ic, [
|
|
5298
5298
|
B("div", oc, [
|
|
5299
|
-
|
|
5299
|
+
Re(e.$slots, "default")
|
|
5300
5300
|
])
|
|
5301
5301
|
]);
|
|
5302
5302
|
}
|
|
5303
|
-
const ua = /* @__PURE__ */
|
|
5303
|
+
const ua = /* @__PURE__ */ At(nc, [["render", ac]]), rc = /* @__PURE__ */ ve({
|
|
5304
5304
|
__name: "AddForm",
|
|
5305
5305
|
setup(e) {
|
|
5306
5306
|
const t = Te(), n = z(() => t.rules.group), i = z(() => !!t.state.currentCatalogId || !!t.state.currentSchedulerId), a = z(() => {
|
|
@@ -5344,7 +5344,7 @@ const ua = /* @__PURE__ */ Rt(nc, [["render", ac]]), rc = /* @__PURE__ */ ve({
|
|
|
5344
5344
|
title: b(l)("menu.group.add")
|
|
5345
5345
|
}, {
|
|
5346
5346
|
default: G(({ trigger: m }) => [
|
|
5347
|
-
|
|
5347
|
+
Re(s.$slots, "default", { trigger: m })
|
|
5348
5348
|
]),
|
|
5349
5349
|
_: 3
|
|
5350
5350
|
}, 8, ["categorized-items", "config", "group", "title"])) : se("", !0);
|
|
@@ -5352,10 +5352,10 @@ const ua = /* @__PURE__ */ Rt(nc, [["render", ac]]), rc = /* @__PURE__ */ ve({
|
|
|
5352
5352
|
}), sc = {}, lc = { class: "flex gap-16" };
|
|
5353
5353
|
function uc(e, t) {
|
|
5354
5354
|
return U(), re("div", lc, [
|
|
5355
|
-
|
|
5355
|
+
Re(e.$slots, "default")
|
|
5356
5356
|
]);
|
|
5357
5357
|
}
|
|
5358
|
-
const cc = /* @__PURE__ */
|
|
5358
|
+
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({
|
|
5359
5359
|
__name: "Form",
|
|
5360
5360
|
props: {
|
|
5361
5361
|
bindingKey: {},
|
|
@@ -5390,8 +5390,8 @@ const cc = /* @__PURE__ */ Rt(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5390
5390
|
return (p, k) => {
|
|
5391
5391
|
const _ = H("fm-text-field"), y = H("fm-card"), g = H("fm-button"), v = H("fm-side-sheet");
|
|
5392
5392
|
return U(), re(Ue, null, [
|
|
5393
|
-
|
|
5394
|
-
|
|
5393
|
+
Re(p.$slots, "default", { trigger: o }),
|
|
5394
|
+
A(v, {
|
|
5395
5395
|
id: "inventory-form",
|
|
5396
5396
|
modelValue: a.value,
|
|
5397
5397
|
"onUpdate:modelValue": k[2] || (k[2] = (E) => a.value = E),
|
|
@@ -5409,13 +5409,13 @@ const cc = /* @__PURE__ */ Rt(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5409
5409
|
]),
|
|
5410
5410
|
"side-sheet-footer": G(() => [
|
|
5411
5411
|
B("div", pc, [
|
|
5412
|
-
|
|
5412
|
+
A(g, {
|
|
5413
5413
|
label: b(d)("menu.common.actions.add"),
|
|
5414
5414
|
size: "lg",
|
|
5415
5415
|
type: "submit",
|
|
5416
5416
|
variant: "primary"
|
|
5417
5417
|
}, null, 8, ["label"]),
|
|
5418
|
-
|
|
5418
|
+
A(g, {
|
|
5419
5419
|
label: b(d)("menu.common.actions.cancel"),
|
|
5420
5420
|
size: "lg",
|
|
5421
5421
|
variant: "tertiary",
|
|
@@ -5425,17 +5425,17 @@ const cc = /* @__PURE__ */ Rt(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5425
5425
|
]),
|
|
5426
5426
|
default: G(() => [
|
|
5427
5427
|
B("div", mc, [
|
|
5428
|
-
|
|
5428
|
+
A(_, {
|
|
5429
5429
|
"model-value": p.name,
|
|
5430
5430
|
disabled: "",
|
|
5431
5431
|
label: b(d)("menu.inventory.form.product_name")
|
|
5432
5432
|
}, null, 8, ["model-value", "label"]),
|
|
5433
|
-
|
|
5433
|
+
A(y, {
|
|
5434
5434
|
class: "p-16 space-y-24",
|
|
5435
5435
|
variant: "outlined"
|
|
5436
5436
|
}, {
|
|
5437
5437
|
default: G(() => [
|
|
5438
|
-
|
|
5438
|
+
A(b(Ja), {
|
|
5439
5439
|
modelValue: r.value,
|
|
5440
5440
|
"onUpdate:modelValue": k[0] || (k[0] = (E) => r.value = E)
|
|
5441
5441
|
}, null, 8, ["modelValue"])
|
|
@@ -5468,7 +5468,7 @@ function hc() {
|
|
|
5468
5468
|
l = c;
|
|
5469
5469
|
}, m = (c) => {
|
|
5470
5470
|
s = c;
|
|
5471
|
-
}, d =
|
|
5471
|
+
}, d = A(o, {
|
|
5472
5472
|
...i,
|
|
5473
5473
|
// close event from the component
|
|
5474
5474
|
"onUpdate:show": (c) => {
|
|
@@ -5523,7 +5523,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5523
5523
|
cell: (r) => {
|
|
5524
5524
|
var u, m;
|
|
5525
5525
|
const l = (u = n.fallback) == null ? void 0 : u[r.row.original.key], s = l ? Bt(l) : void 0;
|
|
5526
|
-
return
|
|
5526
|
+
return A(Nt, {
|
|
5527
5527
|
required: !1,
|
|
5528
5528
|
nullable: !0,
|
|
5529
5529
|
min: n.allowNegativePrice ? void 0 : 0,
|
|
@@ -5536,7 +5536,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5536
5536
|
}];
|
|
5537
5537
|
return (r, l) => {
|
|
5538
5538
|
const s = H("FmTable");
|
|
5539
|
-
return U(), re("div", null, [
|
|
5539
|
+
return U(), re("div", null, [A(s, {
|
|
5540
5540
|
"column-defs": o,
|
|
5541
5541
|
"row-data": r.priceTiers,
|
|
5542
5542
|
"page-size": r.priceTiers.length,
|
|
@@ -5583,13 +5583,13 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5583
5583
|
]),
|
|
5584
5584
|
"side-sheet-footer": G(() => [
|
|
5585
5585
|
B("div", _c, [
|
|
5586
|
-
|
|
5586
|
+
A(y, {
|
|
5587
5587
|
label: l.value,
|
|
5588
5588
|
size: "lg",
|
|
5589
5589
|
type: "submit",
|
|
5590
5590
|
variant: "primary"
|
|
5591
5591
|
}, null, 8, ["label"]),
|
|
5592
|
-
|
|
5592
|
+
A(y, {
|
|
5593
5593
|
label: b(n)("common.cancel"),
|
|
5594
5594
|
size: "lg",
|
|
5595
5595
|
variant: "tertiary",
|
|
@@ -5599,12 +5599,12 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5599
5599
|
]),
|
|
5600
5600
|
default: G(() => [
|
|
5601
5601
|
B("div", vc, [
|
|
5602
|
-
|
|
5602
|
+
A(_t, {
|
|
5603
5603
|
label: b(n)("menu.price_tier.price_group"),
|
|
5604
5604
|
description: b(n)("menu.price_tier.description")
|
|
5605
5605
|
}, {
|
|
5606
5606
|
append: G(() => [
|
|
5607
|
-
|
|
5607
|
+
A(_, {
|
|
5608
5608
|
class: "min-w-fit",
|
|
5609
5609
|
label: b(n)("menu.price_tier.add_price_group"),
|
|
5610
5610
|
icon: "add",
|
|
@@ -5613,7 +5613,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5613
5613
|
}, null, 8, ["label", "onClick"])
|
|
5614
5614
|
]),
|
|
5615
5615
|
default: G(() => [
|
|
5616
|
-
|
|
5616
|
+
A(ca, {
|
|
5617
5617
|
"price-tiers": b(u).priceTiers.value,
|
|
5618
5618
|
"model-value": m.value,
|
|
5619
5619
|
fallback: p.fallback,
|
|
@@ -5653,14 +5653,14 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5653
5653
|
const { t: l } = ke();
|
|
5654
5654
|
return (s, u) => {
|
|
5655
5655
|
const m = H("FmButton"), d = H("FmTooltip");
|
|
5656
|
-
return s.$slots.default ?
|
|
5656
|
+
return s.$slots.default ? Re(s.$slots, "default", { key: 0 }) : (U(), Z(d, {
|
|
5657
5657
|
key: 1,
|
|
5658
5658
|
content: b(l)("menu.price_tier.price_tier_config"),
|
|
5659
5659
|
"z-index": 999,
|
|
5660
5660
|
placement: "top"
|
|
5661
5661
|
}, {
|
|
5662
5662
|
default: G(() => [
|
|
5663
|
-
|
|
5663
|
+
A(m, {
|
|
5664
5664
|
icon: "price_change",
|
|
5665
5665
|
variant: "tertiary",
|
|
5666
5666
|
"text-color": b(pt).NeutralGray400,
|
|
@@ -5715,7 +5715,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5715
5715
|
}), g = z(() => !0), v = ($) => $ ? Bt($, !1) : "", E = ($) => {
|
|
5716
5716
|
var K;
|
|
5717
5717
|
return $ == null ? "" : (K = Da()[$]) == null ? void 0 : K.label;
|
|
5718
|
-
},
|
|
5718
|
+
}, R = z(() => Object.values(_.value)), M = te({}), {
|
|
5719
5719
|
t: O
|
|
5720
5720
|
} = ke(), w = te([{
|
|
5721
5721
|
accessorKey: "isDefault",
|
|
@@ -5727,7 +5727,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5727
5727
|
if ((ae = (ne = $.row.original) == null ? void 0 : ne.items) != null && ae.length)
|
|
5728
5728
|
return null;
|
|
5729
5729
|
const K = $.row.depth > 0, q = $.row.original, J = !!$.getValue();
|
|
5730
|
-
return
|
|
5730
|
+
return A(Be.FmCheckbox, {
|
|
5731
5731
|
value: "default",
|
|
5732
5732
|
modelValue: J,
|
|
5733
5733
|
disabled: !y(q.combinationKey).isDefault,
|
|
@@ -5736,7 +5736,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5736
5736
|
if (K) {
|
|
5737
5737
|
const je = (Se = $.row.getParentRow()) == null ? void 0 : Se.original;
|
|
5738
5738
|
if (!je) return;
|
|
5739
|
-
|
|
5739
|
+
P(je._id, q.combinationKey ?? "", "isDefault", oe);
|
|
5740
5740
|
} else
|
|
5741
5741
|
I(q._id, "isDefault", oe);
|
|
5742
5742
|
}
|
|
@@ -5749,12 +5749,12 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5749
5749
|
size: 100,
|
|
5750
5750
|
cell: ($) => {
|
|
5751
5751
|
const K = $.getValue();
|
|
5752
|
-
return
|
|
5752
|
+
return A(Be.FmTooltip, {
|
|
5753
5753
|
class: "flex",
|
|
5754
5754
|
content: K,
|
|
5755
5755
|
zIndex: 110
|
|
5756
5756
|
}, {
|
|
5757
|
-
default: () => [
|
|
5757
|
+
default: () => [A("div", {
|
|
5758
5758
|
class: "break-all max-w-[100px]"
|
|
5759
5759
|
}, [K])]
|
|
5760
5760
|
});
|
|
@@ -5775,7 +5775,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5775
5775
|
if (J) {
|
|
5776
5776
|
const Se = (oe = $.row.getParentRow()) == null ? void 0 : oe.original;
|
|
5777
5777
|
if (!Se) return;
|
|
5778
|
-
|
|
5778
|
+
P(Se._id, q.combinationKey ?? "", "name", ae);
|
|
5779
5779
|
} else
|
|
5780
5780
|
I(q._id, "name", ae);
|
|
5781
5781
|
},
|
|
@@ -5804,7 +5804,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5804
5804
|
size: 100,
|
|
5805
5805
|
cell: ($) => {
|
|
5806
5806
|
const K = $.getValue(), q = $.row.original, J = q.fallbackPrice, ne = $.row.depth > 0;
|
|
5807
|
-
return De(
|
|
5807
|
+
return De(Nt, {
|
|
5808
5808
|
disable: !y(null).priceEdit,
|
|
5809
5809
|
placeholder: J ? Bt(J) : void 0,
|
|
5810
5810
|
modelValue: K,
|
|
@@ -5816,7 +5816,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5816
5816
|
if (ne) {
|
|
5817
5817
|
const Se = (oe = $.row.getParentRow()) == null ? void 0 : oe.original;
|
|
5818
5818
|
if (!Se) return;
|
|
5819
|
-
|
|
5819
|
+
P(
|
|
5820
5820
|
Se._id,
|
|
5821
5821
|
q.combinationKey ?? "",
|
|
5822
5822
|
// @ts-ignore
|
|
@@ -5848,7 +5848,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5848
5848
|
if (ne) {
|
|
5849
5849
|
const Se = (oe = $.row.getParentRow()) == null ? void 0 : oe.original;
|
|
5850
5850
|
if (!Se) return;
|
|
5851
|
-
|
|
5851
|
+
P(
|
|
5852
5852
|
Se._id,
|
|
5853
5853
|
q.combinationKey ?? "",
|
|
5854
5854
|
// @ts-ignore
|
|
@@ -5872,16 +5872,16 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5872
5872
|
size: 80,
|
|
5873
5873
|
cell: ($) => {
|
|
5874
5874
|
const K = $.row.original, q = $.row.depth > 0;
|
|
5875
|
-
return
|
|
5875
|
+
return A("div", {
|
|
5876
5876
|
class: "flex items-center justify-end"
|
|
5877
|
-
}, [y(null).priceTier &&
|
|
5877
|
+
}, [y(null).priceTier && A(da, {
|
|
5878
5878
|
priceTiers: K.priceTiers,
|
|
5879
5879
|
"onUpdate:priceTiers": (J) => {
|
|
5880
5880
|
var ne;
|
|
5881
5881
|
if (q) {
|
|
5882
5882
|
const ae = (ne = $.row.getParentRow()) == null ? void 0 : ne.original;
|
|
5883
5883
|
if (!ae) return;
|
|
5884
|
-
|
|
5884
|
+
P(
|
|
5885
5885
|
ae._id,
|
|
5886
5886
|
K.combinationKey ?? "",
|
|
5887
5887
|
// @ts-ignore
|
|
@@ -5891,7 +5891,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5891
5891
|
} else
|
|
5892
5892
|
I(K._id, "priceTiers", J);
|
|
5893
5893
|
}
|
|
5894
|
-
}, null), y(K.combinationKey).inventory &&
|
|
5894
|
+
}, null), y(K.combinationKey).inventory && A(li, {
|
|
5895
5895
|
title: "Inventory",
|
|
5896
5896
|
initialValue: K.inventoryBindings ?? [],
|
|
5897
5897
|
name: K.name ?? K.fallbackName ?? "",
|
|
@@ -5901,7 +5901,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5901
5901
|
if (q) {
|
|
5902
5902
|
const ae = (ne = $.row.getParentRow()) == null ? void 0 : ne.original;
|
|
5903
5903
|
if (!ae) return;
|
|
5904
|
-
|
|
5904
|
+
P(
|
|
5905
5905
|
ae._id,
|
|
5906
5906
|
K.combinationKey ?? "",
|
|
5907
5907
|
// @ts-ignore
|
|
@@ -5914,14 +5914,14 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5914
5914
|
}, {
|
|
5915
5915
|
default: ({
|
|
5916
5916
|
trigger: J
|
|
5917
|
-
}) =>
|
|
5917
|
+
}) => A(H("fm-tooltip"), {
|
|
5918
5918
|
content: "Inventory",
|
|
5919
5919
|
zIndex: 110
|
|
5920
5920
|
}, {
|
|
5921
5921
|
default: () => {
|
|
5922
5922
|
var ne;
|
|
5923
|
-
return [
|
|
5924
|
-
variant:
|
|
5923
|
+
return [A(H("fm-button"), {
|
|
5924
|
+
variant: Rt.Tertiary,
|
|
5925
5925
|
prependIcon: "inventory_2",
|
|
5926
5926
|
overwriteIconOutline: (ne = K.inventoryBindings) != null && ne.length ? "filled" : "outline",
|
|
5927
5927
|
textColor: pt.NeutralGray400,
|
|
@@ -5929,8 +5929,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5929
5929
|
}, null)];
|
|
5930
5930
|
}
|
|
5931
5931
|
})
|
|
5932
|
-
}), y(K.combinationKey).link &&
|
|
5933
|
-
variant:
|
|
5932
|
+
}), y(K.combinationKey).link && A(H("fm-button"), {
|
|
5933
|
+
variant: Rt.Tertiary,
|
|
5934
5934
|
prependIcon: "delete",
|
|
5935
5935
|
textColor: pt.NeutralGray400,
|
|
5936
5936
|
onClick: () => {
|
|
@@ -5949,7 +5949,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5949
5949
|
}
|
|
5950
5950
|
D(ae._id, K.combinationKey ?? "");
|
|
5951
5951
|
} else
|
|
5952
|
-
|
|
5952
|
+
N(K._id);
|
|
5953
5953
|
}
|
|
5954
5954
|
}, null)]);
|
|
5955
5955
|
}
|
|
@@ -5992,7 +5992,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5992
5992
|
}
|
|
5993
5993
|
});
|
|
5994
5994
|
}
|
|
5995
|
-
function
|
|
5995
|
+
function P($, K, q, J) {
|
|
5996
5996
|
var Se, je;
|
|
5997
5997
|
const ne = ge(n.group), ae = (Se = ne.items[$].items) == null ? void 0 : Se.findIndex((bt) => bt.combinationKey === K);
|
|
5998
5998
|
if (!sn.isSet(ae)) return;
|
|
@@ -6002,7 +6002,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6002
6002
|
[q]: J
|
|
6003
6003
|
}, ne.items[$].items[ae] = oe, i("update:group", ne));
|
|
6004
6004
|
}
|
|
6005
|
-
function
|
|
6005
|
+
function N($) {
|
|
6006
6006
|
const K = ge(n.group);
|
|
6007
6007
|
delete K.items[$], i("update:group", K);
|
|
6008
6008
|
}
|
|
@@ -6014,7 +6014,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6014
6014
|
var q;
|
|
6015
6015
|
return $[K._id] = {
|
|
6016
6016
|
price: K.price,
|
|
6017
|
-
variants:
|
|
6017
|
+
variants: Na(((q = K.variant) == null ? void 0 : q.variantCombinations) || [], "combinationKey")
|
|
6018
6018
|
}, $;
|
|
6019
6019
|
}, {})), T = ($) => {
|
|
6020
6020
|
var ne, ae;
|
|
@@ -6045,7 +6045,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6045
6045
|
[J._id]: J
|
|
6046
6046
|
}), {}), i("update:group", K);
|
|
6047
6047
|
}
|
|
6048
|
-
const ce = _o(),
|
|
6048
|
+
const ce = _o(), Ae = z(() => ce.breakpoints.value.xs);
|
|
6049
6049
|
return ($, K) => {
|
|
6050
6050
|
const q = H("fm-button"), J = H("fm-table");
|
|
6051
6051
|
return U(), Z(lt, {
|
|
@@ -6053,7 +6053,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6053
6053
|
}, {
|
|
6054
6054
|
"append-title": G(() => [$.config.link() ? (U(), re(Ue, {
|
|
6055
6055
|
key: 0
|
|
6056
|
-
}, [m.value ? (U(), re("div", yc, [
|
|
6056
|
+
}, [m.value ? (U(), re("div", yc, [A(xa, {
|
|
6057
6057
|
"categorized-items": $.categorizedItems,
|
|
6058
6058
|
"initial-value": c.value,
|
|
6059
6059
|
"show-variant": $.config.bindToVariant,
|
|
@@ -6063,7 +6063,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6063
6063
|
}, {
|
|
6064
6064
|
default: G(({
|
|
6065
6065
|
trigger: ne
|
|
6066
|
-
}) => [
|
|
6066
|
+
}) => [A(q, {
|
|
6067
6067
|
"text-color": b(pt).ColorPrimary,
|
|
6068
6068
|
"border-color": b(pt).ColorPrimary,
|
|
6069
6069
|
variant: "secondary",
|
|
@@ -6072,7 +6072,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6072
6072
|
onClick: ne
|
|
6073
6073
|
}, null, 8, ["text-color", "border-color", "label", "onClick"])]),
|
|
6074
6074
|
_: 1
|
|
6075
|
-
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div", wc, [
|
|
6075
|
+
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div", wc, [A(q, {
|
|
6076
6076
|
"text-color": b(pt).ColorPrimary,
|
|
6077
6077
|
"border-color": b(pt).ColorPrimary,
|
|
6078
6078
|
variant: "secondary",
|
|
@@ -6080,14 +6080,14 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6080
6080
|
"prepend-icon": "add",
|
|
6081
6081
|
onClick: S
|
|
6082
6082
|
}, null, 8, ["text-color", "border-color", "label"])]))], 64)) : se("", !0)]),
|
|
6083
|
-
default: G(() => [B("div", Ec, [B("div", kc, [
|
|
6083
|
+
default: G(() => [B("div", Ec, [B("div", kc, [A(J, {
|
|
6084
6084
|
"column-defs": w.value,
|
|
6085
6085
|
"column-visibility": x.value,
|
|
6086
|
-
draggable: !
|
|
6086
|
+
draggable: !Ae.value && y(null).name,
|
|
6087
6087
|
"expanded-state": s.value ? {} : M.value,
|
|
6088
6088
|
"get-sub-row": j,
|
|
6089
6089
|
"page-size": 999,
|
|
6090
|
-
"row-data":
|
|
6090
|
+
"row-data": R.value,
|
|
6091
6091
|
"search-value": b(p),
|
|
6092
6092
|
"shrink-at": !1,
|
|
6093
6093
|
"hide-footer": "",
|
|
@@ -6099,10 +6099,10 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6099
6099
|
}, 8, ["title"]);
|
|
6100
6100
|
};
|
|
6101
6101
|
}
|
|
6102
|
-
}), Cc = { class: "fm-typo-en-title-md-600" },
|
|
6102
|
+
}), Cc = { class: "fm-typo-en-title-md-600" }, Rc = {
|
|
6103
6103
|
key: 0,
|
|
6104
6104
|
class: "pt-8 space-y-32"
|
|
6105
|
-
},
|
|
6105
|
+
}, Ac = { class: "flex gap-8 items-center justify-start" }, ma = /* @__PURE__ */ ve({
|
|
6106
6106
|
__name: "BaseForm",
|
|
6107
6107
|
props: {
|
|
6108
6108
|
title: {},
|
|
@@ -6117,7 +6117,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6117
6117
|
let i = e;
|
|
6118
6118
|
const a = n, o = Te(), r = rn(), l = st(), s = Ze(), u = Ct(St(s)), m = te(!1), d = te(!1), c = (C) => {
|
|
6119
6119
|
sn.isBoolean(C) ? d.value = C : d.value = !d.value;
|
|
6120
|
-
}, p = z(() => i.group ? i.config(i.group) : null), k = z(() =>
|
|
6120
|
+
}, p = z(() => i.group ? i.config(i.group) : null), k = z(() => Ao(p.value)), _ = (C) => k.value.includes(C), y = z(() => [
|
|
6121
6121
|
{
|
|
6122
6122
|
label: "Normal",
|
|
6123
6123
|
value: ee.F_ADDON_GROUP_TYPE.enum.NORMAL
|
|
@@ -6156,12 +6156,12 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6156
6156
|
}).onPrimary(T) : T();
|
|
6157
6157
|
}
|
|
6158
6158
|
function E(C) {
|
|
6159
|
-
return new
|
|
6159
|
+
return new Ro(o, u.updateMenu, l).mapGroups(
|
|
6160
6160
|
[C],
|
|
6161
6161
|
p.value.isOverride
|
|
6162
6162
|
)[0];
|
|
6163
6163
|
}
|
|
6164
|
-
function
|
|
6164
|
+
function R(C) {
|
|
6165
6165
|
let T = 0;
|
|
6166
6166
|
for (const V of Object.values(C.items)) {
|
|
6167
6167
|
V.isDefault && T++;
|
|
@@ -6171,7 +6171,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6171
6171
|
return T;
|
|
6172
6172
|
}
|
|
6173
6173
|
function M(C) {
|
|
6174
|
-
return
|
|
6174
|
+
return R(C) <= C.max || D("menu.common.validation.max_default_items", { max: C.max });
|
|
6175
6175
|
}
|
|
6176
6176
|
const O = te(ot.clone(i.group)), w = ui(
|
|
6177
6177
|
() => !ot.isEqual(i.group, O.value),
|
|
@@ -6220,14 +6220,14 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6220
6220
|
const I = z(() => {
|
|
6221
6221
|
var C;
|
|
6222
6222
|
return ((C = r.groupAttributeSettings) == null ? void 0 : C.value.length) > 0 && !p.value.isOverride;
|
|
6223
|
-
}),
|
|
6223
|
+
}), P = z(() => {
|
|
6224
6224
|
const C = {};
|
|
6225
6225
|
return o.state.menu.modules.group.forEach((T) => {
|
|
6226
6226
|
var V;
|
|
6227
6227
|
for (const [j, le] of Object.entries(T.customAttributes || {}))
|
|
6228
6228
|
typeof le == "string" && le && !((V = C[j]) != null && V.includes(le)) && (C[j] = [...C[j] || [], le]);
|
|
6229
6229
|
}), C;
|
|
6230
|
-
}),
|
|
6230
|
+
}), N = (C) => {
|
|
6231
6231
|
i.group && g({
|
|
6232
6232
|
...i.group,
|
|
6233
6233
|
customAttributes: C
|
|
@@ -6239,10 +6239,10 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6239
6239
|
});
|
|
6240
6240
|
const { t: D } = ke();
|
|
6241
6241
|
return (C, T) => {
|
|
6242
|
-
const V = H("fm-text-field"), j = H("fm-stepper-field"), le = H("FmFormGroup"), ce = H("fm-radio"),
|
|
6242
|
+
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");
|
|
6243
6243
|
return U(), re(Ue, null, [
|
|
6244
|
-
|
|
6245
|
-
|
|
6244
|
+
Re(C.$slots, "default", { trigger: c }),
|
|
6245
|
+
A(q, {
|
|
6246
6246
|
id: "group-form",
|
|
6247
6247
|
modelValue: d.value,
|
|
6248
6248
|
"onUpdate:modelValue": T[8] || (T[8] = (J) => d.value = J),
|
|
@@ -6258,15 +6258,15 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6258
6258
|
B("p", Cc, ye(C.title), 1)
|
|
6259
6259
|
]),
|
|
6260
6260
|
"side-sheet-footer": G(() => [
|
|
6261
|
-
B("div",
|
|
6262
|
-
|
|
6261
|
+
B("div", Ac, [
|
|
6262
|
+
A(K, {
|
|
6263
6263
|
label: b(tr)(x.value),
|
|
6264
6264
|
loading: m.value,
|
|
6265
6265
|
size: "lg",
|
|
6266
6266
|
type: "submit",
|
|
6267
6267
|
variant: "primary"
|
|
6268
6268
|
}, null, 8, ["label", "loading"]),
|
|
6269
|
-
|
|
6269
|
+
A(K, {
|
|
6270
6270
|
label: b(D)("menu.common.actions.cancel"),
|
|
6271
6271
|
size: "lg",
|
|
6272
6272
|
variant: "tertiary",
|
|
@@ -6275,12 +6275,12 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6275
6275
|
])
|
|
6276
6276
|
]),
|
|
6277
6277
|
default: G(() => [
|
|
6278
|
-
C.group ? (U(), re("div",
|
|
6279
|
-
|
|
6280
|
-
|
|
6278
|
+
C.group ? (U(), re("div", Rc, [
|
|
6279
|
+
Re(C.$slots, "variant-section"),
|
|
6280
|
+
A(Ua, null, {
|
|
6281
6281
|
default: G(() => [
|
|
6282
6282
|
B("div", null, [
|
|
6283
|
-
|
|
6283
|
+
A(V, {
|
|
6284
6284
|
modelValue: C.group.name,
|
|
6285
6285
|
"onUpdate:modelValue": T[0] || (T[0] = (J) => C.group.name = J),
|
|
6286
6286
|
disabled: _("name"),
|
|
@@ -6291,16 +6291,16 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6291
6291
|
label: b(D)("menu.common.labels.group_name")
|
|
6292
6292
|
}, null, 8, ["modelValue", "disabled", "rules", "label"])
|
|
6293
6293
|
]),
|
|
6294
|
-
|
|
6294
|
+
A(le, {
|
|
6295
6295
|
"model-value": C.group.min + " " + C.group.max,
|
|
6296
6296
|
rules: [
|
|
6297
6297
|
() => Number.isInteger(C.group.min) && Number.isInteger(C.group.max) && C.group.min <= C.group.max || b(D)("menu.common.validation.min_max")
|
|
6298
6298
|
]
|
|
6299
6299
|
}, {
|
|
6300
6300
|
default: G(() => [
|
|
6301
|
-
|
|
6301
|
+
A(cc, null, {
|
|
6302
6302
|
default: G(() => [
|
|
6303
|
-
|
|
6303
|
+
A(j, {
|
|
6304
6304
|
modelValue: C.group.min,
|
|
6305
6305
|
"onUpdate:modelValue": T[1] || (T[1] = (J) => C.group.min = J),
|
|
6306
6306
|
disabled: _("min"),
|
|
@@ -6308,7 +6308,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6308
6308
|
class: "flex-1",
|
|
6309
6309
|
label: b(D)("menu.common.labels.min_select")
|
|
6310
6310
|
}, null, 8, ["modelValue", "disabled", "label"]),
|
|
6311
|
-
|
|
6311
|
+
A(j, {
|
|
6312
6312
|
modelValue: C.group.max,
|
|
6313
6313
|
"onUpdate:modelValue": T[2] || (T[2] = (J) => C.group.max = J),
|
|
6314
6314
|
disabled: _("max"),
|
|
@@ -6327,7 +6327,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6327
6327
|
label: b(D)("menu.common.labels.group_type")
|
|
6328
6328
|
}, {
|
|
6329
6329
|
default: G(() => [
|
|
6330
|
-
|
|
6330
|
+
A(Ae, {
|
|
6331
6331
|
disabled: _("type"),
|
|
6332
6332
|
"model-value": C.group.type,
|
|
6333
6333
|
"onUpdate:modelValue": T[3] || (T[3] = (J) => v(J))
|
|
@@ -6344,11 +6344,11 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6344
6344
|
]),
|
|
6345
6345
|
_: 1
|
|
6346
6346
|
}, 8, ["label"])) : se("", !0),
|
|
6347
|
-
|
|
6347
|
+
A(_t, {
|
|
6348
6348
|
label: b(D)("menu.common.labels.configuration")
|
|
6349
6349
|
}, {
|
|
6350
6350
|
default: G(() => [
|
|
6351
|
-
|
|
6351
|
+
A($, {
|
|
6352
6352
|
modelValue: C.group.stackable,
|
|
6353
6353
|
"onUpdate:modelValue": T[4] || (T[4] = (J) => C.group.stackable = J),
|
|
6354
6354
|
disabled: _("stackable"),
|
|
@@ -6365,11 +6365,11 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6365
6365
|
"sub-title": b(D)("menu.group.form.tagging.subtitle")
|
|
6366
6366
|
}, {
|
|
6367
6367
|
default: G(() => [
|
|
6368
|
-
|
|
6368
|
+
A(b(vo), {
|
|
6369
6369
|
entity: "group",
|
|
6370
6370
|
"model-value": C.group.customAttributes || {},
|
|
6371
|
-
"onUpdate:modelValue":
|
|
6372
|
-
"value-options":
|
|
6371
|
+
"onUpdate:modelValue": N,
|
|
6372
|
+
"value-options": P.value
|
|
6373
6373
|
}, null, 8, ["model-value", "value-options"])
|
|
6374
6374
|
]),
|
|
6375
6375
|
_: 1
|
|
@@ -6377,17 +6377,17 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6377
6377
|
]),
|
|
6378
6378
|
_: 1
|
|
6379
6379
|
}),
|
|
6380
|
-
|
|
6380
|
+
A(le, {
|
|
6381
6381
|
tag: "div",
|
|
6382
6382
|
modelValue: C.group,
|
|
6383
6383
|
rules: [M],
|
|
6384
6384
|
"helper-text": b(D)("menu.common.validation.default_items_tip", {
|
|
6385
|
-
count:
|
|
6385
|
+
count: R(C.group),
|
|
6386
6386
|
max: C.group.max
|
|
6387
6387
|
})
|
|
6388
6388
|
}, {
|
|
6389
6389
|
default: G(() => [
|
|
6390
|
-
|
|
6390
|
+
A(Sc, {
|
|
6391
6391
|
"allow-refund-inventory": C.allowRefundInventory ?? !1,
|
|
6392
6392
|
"categorized-items": C.categorizedItems,
|
|
6393
6393
|
config: p.value,
|
|
@@ -6414,7 +6414,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6414
6414
|
},
|
|
6415
6415
|
emits: ["update:combinations"],
|
|
6416
6416
|
setup(e, { expose: t, emit: n }) {
|
|
6417
|
-
var
|
|
6417
|
+
var R, M;
|
|
6418
6418
|
const i = e, a = n, o = Te(), r = st(), l = Ct(St(Ze())), s = te([]), u = te(i.combinations[0].combinationKey || ""), m = z(
|
|
6419
6419
|
() => s.value.findIndex((O) => O.combinationKey == u.value)
|
|
6420
6420
|
), d = z(
|
|
@@ -6423,9 +6423,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6423
6423
|
value: O.combinationKey || ""
|
|
6424
6424
|
}))
|
|
6425
6425
|
), c = z(() => {
|
|
6426
|
-
var
|
|
6426
|
+
var P, N;
|
|
6427
6427
|
if (!g.value) return null;
|
|
6428
|
-
const O = ((
|
|
6428
|
+
const O = ((N = (P = s.value[m.value]) == null ? void 0 : P.groups) == null ? void 0 : N.find((D) => D._id === i.groupId)) || {
|
|
6429
6429
|
_id: i.groupId,
|
|
6430
6430
|
groupKey: ""
|
|
6431
6431
|
}, x = o.state.menu.modules.group.find((D) => D._id === i.groupId), S = Object.entries({ ...O, items: void 0 }).filter(([, D]) => !!D), I = {
|
|
@@ -6445,16 +6445,16 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6445
6445
|
};
|
|
6446
6446
|
})
|
|
6447
6447
|
};
|
|
6448
|
-
return new
|
|
6448
|
+
return new Ro(o, l.updateMenu, r).mapGroups([I], !0)[0];
|
|
6449
6449
|
});
|
|
6450
6450
|
function p(O) {
|
|
6451
|
-
var I,
|
|
6451
|
+
var I, P;
|
|
6452
6452
|
const w = (I = s.value[m.value].groups) == null ? void 0 : I.findIndex(
|
|
6453
|
-
(
|
|
6453
|
+
(N) => N._id === i.groupId
|
|
6454
6454
|
), x = ge(s.value), S = { ...ci(O), _id: i.groupId, groupKey: "" };
|
|
6455
6455
|
(w ?? -1) < 0 ? x[m.value] = {
|
|
6456
6456
|
...x[m.value],
|
|
6457
|
-
groups: [...((
|
|
6457
|
+
groups: [...((P = x[m.value]) == null ? void 0 : P.groups) || [], S]
|
|
6458
6458
|
} : x[m.value].groups[w] = S, s.value = x;
|
|
6459
6459
|
}
|
|
6460
6460
|
function k(O) {
|
|
@@ -6502,7 +6502,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6502
6502
|
);
|
|
6503
6503
|
const v = te();
|
|
6504
6504
|
t({
|
|
6505
|
-
show: (
|
|
6505
|
+
show: (R = v.value) == null ? void 0 : R.show,
|
|
6506
6506
|
trigger: (M = v.value) == null ? void 0 : M.trigger
|
|
6507
6507
|
});
|
|
6508
6508
|
const { t: E } = ke();
|
|
@@ -6517,12 +6517,12 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6517
6517
|
group: c.value,
|
|
6518
6518
|
action: "update",
|
|
6519
6519
|
title: b(E)("menu.group.update"),
|
|
6520
|
-
"onUpdate:group": w[3] || (w[3] = (
|
|
6521
|
-
"onSubmit:group": w[4] || (w[4] = (
|
|
6522
|
-
"onStatus:show": w[5] || (w[5] = (
|
|
6520
|
+
"onUpdate:group": w[3] || (w[3] = (P) => p(P)),
|
|
6521
|
+
"onSubmit:group": w[4] || (w[4] = (P) => y()),
|
|
6522
|
+
"onStatus:show": w[5] || (w[5] = (P) => g.value = P)
|
|
6523
6523
|
}, {
|
|
6524
|
-
default: G(({ trigger:
|
|
6525
|
-
|
|
6524
|
+
default: G(({ trigger: P }) => [
|
|
6525
|
+
Re(O.$slots, "default", { trigger: P })
|
|
6526
6526
|
]),
|
|
6527
6527
|
"variant-section": G(() => [
|
|
6528
6528
|
u.value ? (U(), Z(I, {
|
|
@@ -6533,24 +6533,24 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6533
6533
|
default: G(() => [
|
|
6534
6534
|
B("p", Oc, ye(b(E)("menu.group.option.variant")), 1),
|
|
6535
6535
|
B("div", Ic, [
|
|
6536
|
-
|
|
6536
|
+
A(x, {
|
|
6537
6537
|
modelValue: u.value,
|
|
6538
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
6538
|
+
"onUpdate:modelValue": w[0] || (w[0] = (P) => u.value = P),
|
|
6539
6539
|
items: d.value,
|
|
6540
6540
|
class: "flex-1"
|
|
6541
6541
|
}, null, 8, ["modelValue", "items"]),
|
|
6542
6542
|
B("div", Tc, [
|
|
6543
|
-
|
|
6544
|
-
variant: b(
|
|
6543
|
+
A(S, {
|
|
6544
|
+
variant: b(Rt).Tertiary,
|
|
6545
6545
|
"prepend-icon": "keyboard_arrow_left",
|
|
6546
6546
|
size: "lg",
|
|
6547
|
-
onClick: w[1] || (w[1] = (
|
|
6547
|
+
onClick: w[1] || (w[1] = (P) => k("left"))
|
|
6548
6548
|
}, null, 8, ["variant"]),
|
|
6549
|
-
|
|
6550
|
-
variant: b(
|
|
6549
|
+
A(S, {
|
|
6550
|
+
variant: b(Rt).Tertiary,
|
|
6551
6551
|
"prepend-icon": "keyboard_arrow_right",
|
|
6552
6552
|
size: "lg",
|
|
6553
|
-
onClick: w[2] || (w[2] = (
|
|
6553
|
+
onClick: w[2] || (w[2] = (P) => k("right"))
|
|
6554
6554
|
}, null, 8, ["variant"])
|
|
6555
6555
|
])
|
|
6556
6556
|
])
|
|
@@ -6562,7 +6562,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6562
6562
|
}, 8, ["categorized-items", "group", "title"]);
|
|
6563
6563
|
};
|
|
6564
6564
|
}
|
|
6565
|
-
}), Dc = ma, co = rc,
|
|
6565
|
+
}), Dc = ma, co = rc, Nc = Mc, Pc = {
|
|
6566
6566
|
key: 0,
|
|
6567
6567
|
class: "flex flex-col space-y-16 h-[440px]"
|
|
6568
6568
|
}, Fc = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Lc = { class: "flex justify-between pb-16" }, xc = { class: "flex gap-8" }, Uc = {
|
|
@@ -6580,7 +6580,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6580
6580
|
}
|
|
6581
6581
|
const u = z(() => s(l.value).reduce((y, g) => (y[g._id] = {
|
|
6582
6582
|
name: g.name,
|
|
6583
|
-
type:
|
|
6583
|
+
type: Rn(o.items, g.items)
|
|
6584
6584
|
}, y), {})), m = z(() => [
|
|
6585
6585
|
...Object.entries(u.value).map(([y, { name: g, type: v }]) => ({
|
|
6586
6586
|
label: `${g} ${r.value.type ? `(${Hn(v)})` : ""}`.trim(),
|
|
@@ -6588,11 +6588,11 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6588
6588
|
}))
|
|
6589
6589
|
]), d = z(() => !!o.state.currentCatalogId || !!o.state.currentSchedulerId);
|
|
6590
6590
|
z(() => {
|
|
6591
|
-
const y = !o.state.currentSchedulerId, g = o.rules.group.type, v = o.version == ee.F_MENU_VERSION.enum.v3, E = o.rules.item.orderFromActiveOnly,
|
|
6591
|
+
const y = !o.state.currentSchedulerId, g = o.rules.group.type, v = o.version == ee.F_MENU_VERSION.enum.v3, E = o.rules.item.orderFromActiveOnly, R = o.rules.item.bindToVariant;
|
|
6592
6592
|
return function(O) {
|
|
6593
6593
|
return {
|
|
6594
6594
|
isDefault: (w) => !d.value && !w,
|
|
6595
|
-
link: (w) => !d.value && (!w ||
|
|
6595
|
+
link: (w) => !d.value && (!w || R),
|
|
6596
6596
|
name: (w) => !d.value && !w,
|
|
6597
6597
|
type: g && !O._id && !d.value,
|
|
6598
6598
|
price: O.type != ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
|
|
@@ -6602,7 +6602,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6602
6602
|
orderFrom: (w) => y ? v ? O.type == ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? d.value : !!d.value == !w : d.value : !1,
|
|
6603
6603
|
orderFromActiveOnly: E,
|
|
6604
6604
|
showOrderFrom: y ? v ? d.value ? !0 : O.type == ee.F_ADDON_GROUP_TYPE.enum.PRODUCT : d.value : !1,
|
|
6605
|
-
bindToVariant:
|
|
6605
|
+
bindToVariant: R,
|
|
6606
6606
|
isOverride: d.value,
|
|
6607
6607
|
isItemGroup: !1,
|
|
6608
6608
|
isV4: !v
|
|
@@ -6619,10 +6619,10 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6619
6619
|
i(c.value), a("primary"), n.close();
|
|
6620
6620
|
};
|
|
6621
6621
|
return (y, g) => {
|
|
6622
|
-
const v = H("FmSearch"), E = H("FmCheckbox"),
|
|
6623
|
-
return m.value.length > 0 ? (U(), re("div",
|
|
6622
|
+
const v = H("FmSearch"), E = H("FmCheckbox"), R = H("FmButton");
|
|
6623
|
+
return m.value.length > 0 ? (U(), re("div", Pc, [
|
|
6624
6624
|
B("div", null, [
|
|
6625
|
-
|
|
6625
|
+
A(v, {
|
|
6626
6626
|
autofocus: "",
|
|
6627
6627
|
modelValue: p.value,
|
|
6628
6628
|
"onUpdate:modelValue": g[0] || (g[0] = (M) => p.value = M),
|
|
@@ -6634,7 +6634,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6634
6634
|
(U(!0), re(Ue, null, at(m.value, (M) => (U(), re("div", {
|
|
6635
6635
|
key: M.value
|
|
6636
6636
|
}, [
|
|
6637
|
-
Xt(
|
|
6637
|
+
Xt(A(E, {
|
|
6638
6638
|
modelValue: c.value,
|
|
6639
6639
|
"onUpdate:modelValue": [
|
|
6640
6640
|
g[1] || (g[1] = (O) => c.value = O),
|
|
@@ -6649,9 +6649,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6649
6649
|
])
|
|
6650
6650
|
]),
|
|
6651
6651
|
B("div", Lc, [
|
|
6652
|
-
|
|
6652
|
+
A(b(co), null, {
|
|
6653
6653
|
default: G(({ trigger: M }) => [
|
|
6654
|
-
R
|
|
6654
|
+
A(R, {
|
|
6655
6655
|
label: b(k)("menu.common.actions.add_group"),
|
|
6656
6656
|
variant: "tertiary",
|
|
6657
6657
|
"text-color": "primary",
|
|
@@ -6661,12 +6661,12 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6661
6661
|
_: 1
|
|
6662
6662
|
}),
|
|
6663
6663
|
B("div", xc, [
|
|
6664
|
-
R
|
|
6664
|
+
A(R, {
|
|
6665
6665
|
label: b(k)("menu.common.actions.cancel"),
|
|
6666
6666
|
variant: "tertiary",
|
|
6667
6667
|
onClick: g[3] || (g[3] = (M) => b(n).close())
|
|
6668
6668
|
}, null, 8, ["label"]),
|
|
6669
|
-
R
|
|
6669
|
+
A(R, {
|
|
6670
6670
|
label: b(k)("menu.common.actions.confirm"),
|
|
6671
6671
|
onClick: g[4] || (g[4] = (M) => _())
|
|
6672
6672
|
}, null, 8, ["label"])
|
|
@@ -6677,9 +6677,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6677
6677
|
B("p", zc, ye(b(k)("menu.common.empty.no_group.title")), 1),
|
|
6678
6678
|
B("p", $c, ye(b(k)("menu.common.empty.no_group.subtitle")), 1)
|
|
6679
6679
|
]),
|
|
6680
|
-
|
|
6680
|
+
A(b(co), null, {
|
|
6681
6681
|
default: G(({ trigger: M }) => [
|
|
6682
|
-
R
|
|
6682
|
+
A(R, {
|
|
6683
6683
|
label: b(k)("menu.common.actions.add_group"),
|
|
6684
6684
|
icon: "add",
|
|
6685
6685
|
onClick: (O) => M()
|
|
@@ -6710,9 +6710,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6710
6710
|
const n = e, i = Ze(), a = Te(), o = ki(), r = st(), {
|
|
6711
6711
|
t: l
|
|
6712
6712
|
} = ke(), s = t, u = z(() => a.rules.group), m = z(() => a.rules.item), d = z(() => a.groups);
|
|
6713
|
-
function c(
|
|
6713
|
+
function c(N, D) {
|
|
6714
6714
|
return ge(D ?? []).map((T) => {
|
|
6715
|
-
const V =
|
|
6715
|
+
const V = N.find((j) => j._id === T._id);
|
|
6716
6716
|
return {
|
|
6717
6717
|
name: (V == null ? void 0 : V.name) ?? "",
|
|
6718
6718
|
...T,
|
|
@@ -6724,11 +6724,11 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6724
6724
|
var D;
|
|
6725
6725
|
return [...k(c(d.value, n.form.groups || ((D = n.fallback) == null ? void 0 : D.groups) || [])).map((C) => C._id)];
|
|
6726
6726
|
});
|
|
6727
|
-
function k(
|
|
6728
|
-
return ge(
|
|
6727
|
+
function k(N) {
|
|
6728
|
+
return ge(N ?? []).sort((C, T) => C.position - T.position);
|
|
6729
6729
|
}
|
|
6730
|
-
function _(
|
|
6731
|
-
const D = d.value.find((V) => V._id ===
|
|
6730
|
+
function _(N) {
|
|
6731
|
+
const D = d.value.find((V) => V._id === N);
|
|
6732
6732
|
if (!D)
|
|
6733
6733
|
return [];
|
|
6734
6734
|
const C = [];
|
|
@@ -6748,21 +6748,21 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6748
6748
|
})})` : j;
|
|
6749
6749
|
});
|
|
6750
6750
|
}
|
|
6751
|
-
const y = z(() => k(d.value).reduce((
|
|
6751
|
+
const y = z(() => k(d.value).reduce((N, D) => (N[D._id] = {
|
|
6752
6752
|
name: D.name,
|
|
6753
|
-
type:
|
|
6754
|
-
},
|
|
6753
|
+
type: Rn(a.items, D.items)
|
|
6754
|
+
}, N), {})), g = z(() => [...Object.entries(y.value).map(([N, {
|
|
6755
6755
|
name: D,
|
|
6756
6756
|
type: C
|
|
6757
6757
|
}]) => ({
|
|
6758
6758
|
label: `${D} ${u.value.type ? `(${Hn(C)})` : ""}`.trim(),
|
|
6759
|
-
value:
|
|
6759
|
+
value: N
|
|
6760
6760
|
}))]), v = z(() => [{
|
|
6761
6761
|
accessorKey: "name",
|
|
6762
6762
|
header: () => l("menu.product.form.group.columns.title"),
|
|
6763
6763
|
enableSorting: !1,
|
|
6764
|
-
cell: (
|
|
6765
|
-
const D =
|
|
6764
|
+
cell: (N) => {
|
|
6765
|
+
const D = N.row.original._id;
|
|
6766
6766
|
return I(D);
|
|
6767
6767
|
}
|
|
6768
6768
|
}, {
|
|
@@ -6770,9 +6770,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6770
6770
|
accessorKey: "type",
|
|
6771
6771
|
header: () => l("menu.product.form.group.columns.type"),
|
|
6772
6772
|
enableSorting: !1,
|
|
6773
|
-
cell: (
|
|
6773
|
+
cell: (N) => {
|
|
6774
6774
|
var C;
|
|
6775
|
-
const D =
|
|
6775
|
+
const D = N.row.original._id;
|
|
6776
6776
|
return Hn((C = y.value[D]) == null ? void 0 : C.type);
|
|
6777
6777
|
}
|
|
6778
6778
|
}, {
|
|
@@ -6780,22 +6780,22 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6780
6780
|
header: () => l("menu.group.list.columns.products"),
|
|
6781
6781
|
enableSorting: !1,
|
|
6782
6782
|
size: 200,
|
|
6783
|
-
cell: (
|
|
6784
|
-
const D =
|
|
6785
|
-
return
|
|
6783
|
+
cell: (N) => {
|
|
6784
|
+
const D = N.row.original._id, T = _(D).join(", ");
|
|
6785
|
+
return A(Be.FmTooltip, {
|
|
6786
6786
|
"z-index": 51,
|
|
6787
6787
|
class: "flex",
|
|
6788
6788
|
variant: "rich",
|
|
6789
6789
|
placement: "top"
|
|
6790
6790
|
}, {
|
|
6791
|
-
default: () =>
|
|
6791
|
+
default: () => A("div", {
|
|
6792
6792
|
class: "line-clamp-2 break-all"
|
|
6793
6793
|
}, [T]),
|
|
6794
|
-
content: () =>
|
|
6794
|
+
content: () => A("div", {
|
|
6795
6795
|
class: "py-12 px-16 space-y-12"
|
|
6796
|
-
}, [
|
|
6796
|
+
}, [A("p", {
|
|
6797
6797
|
class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600"
|
|
6798
|
-
}, [l("menu.group.list.columns.products")]),
|
|
6798
|
+
}, [l("menu.group.list.columns.products")]), A("div", {
|
|
6799
6799
|
class: "flex flex-wrap gap-8"
|
|
6800
6800
|
}, [T])])
|
|
6801
6801
|
});
|
|
@@ -6805,8 +6805,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6805
6805
|
header: "",
|
|
6806
6806
|
size: 52,
|
|
6807
6807
|
enableSorting: !1,
|
|
6808
|
-
cell: (
|
|
6809
|
-
const D =
|
|
6808
|
+
cell: (N) => {
|
|
6809
|
+
const D = N.row.original._id;
|
|
6810
6810
|
return De("div", {
|
|
6811
6811
|
class: "flex justify-end"
|
|
6812
6812
|
}, [De(Be.FmButton, {
|
|
@@ -6816,13 +6816,13 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6816
6816
|
onClick: Cn(async () => {
|
|
6817
6817
|
O(D);
|
|
6818
6818
|
}, ["stop", "prevent"])
|
|
6819
|
-
}), De(
|
|
6819
|
+
}), De(Nc, {
|
|
6820
6820
|
// variant items
|
|
6821
6821
|
combinations: x.value ?? [],
|
|
6822
6822
|
// combinationKey: varaintName
|
|
6823
6823
|
fullCombinations: n.fullCombinations,
|
|
6824
6824
|
groupId: D,
|
|
6825
|
-
"onUpdate:combinations":
|
|
6825
|
+
"onUpdate:combinations": P
|
|
6826
6826
|
}, {
|
|
6827
6827
|
default: ({
|
|
6828
6828
|
trigger: C
|
|
@@ -6838,16 +6838,16 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6838
6838
|
}]), E = z(() => ({
|
|
6839
6839
|
type: a.version !== ee.F_MENU_VERSION.enum.v4
|
|
6840
6840
|
}));
|
|
6841
|
-
function
|
|
6841
|
+
function R() {
|
|
6842
6842
|
r.open({
|
|
6843
6843
|
title: l("menu.product.form.group.add"),
|
|
6844
6844
|
contentComponent: Bc,
|
|
6845
6845
|
contentComponentProps: {
|
|
6846
6846
|
groupIds: p.value
|
|
6847
6847
|
}
|
|
6848
|
-
}).onPrimary((
|
|
6848
|
+
}).onPrimary((N) => {
|
|
6849
6849
|
var D;
|
|
6850
|
-
for (const C of
|
|
6850
|
+
for (const C of N)
|
|
6851
6851
|
if (ja(a.state.menu, C, n.form._id)) {
|
|
6852
6852
|
const T = (D = y.value[C]) == null ? void 0 : D.name;
|
|
6853
6853
|
i.open({
|
|
@@ -6859,11 +6859,11 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6859
6859
|
});
|
|
6860
6860
|
return;
|
|
6861
6861
|
}
|
|
6862
|
-
M(
|
|
6862
|
+
M(N);
|
|
6863
6863
|
});
|
|
6864
6864
|
}
|
|
6865
|
-
function M(
|
|
6866
|
-
const D =
|
|
6865
|
+
function M(N) {
|
|
6866
|
+
const D = N.reduce((C, T) => {
|
|
6867
6867
|
var j;
|
|
6868
6868
|
const V = ((j = n.form.groups) == null ? void 0 : j.find((le) => le._id === T)) || {
|
|
6869
6869
|
_id: T,
|
|
@@ -6876,35 +6876,35 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6876
6876
|
groups: D
|
|
6877
6877
|
}));
|
|
6878
6878
|
}
|
|
6879
|
-
function O(
|
|
6879
|
+
function O(N) {
|
|
6880
6880
|
var C, T, V;
|
|
6881
6881
|
if (!n.form.groups)
|
|
6882
6882
|
return;
|
|
6883
6883
|
const D = ge(n.form.groups);
|
|
6884
|
-
D.splice(D.findIndex((j) => j._id ===
|
|
6884
|
+
D.splice(D.findIndex((j) => j._id === N), 1);
|
|
6885
6885
|
for (const j of ((C = n.form.variant) == null ? void 0 : C.variantCombinations) || [])
|
|
6886
|
-
(V = j.groups) == null || V.splice((T = j.groups) == null ? void 0 : T.findIndex((le) => le._id ===
|
|
6886
|
+
(V = j.groups) == null || V.splice((T = j.groups) == null ? void 0 : T.findIndex((le) => le._id === N), 1);
|
|
6887
6887
|
s("replace:form", o.initDynamicGroupItem({
|
|
6888
6888
|
...n.form,
|
|
6889
6889
|
groups: D
|
|
6890
6890
|
}));
|
|
6891
6891
|
}
|
|
6892
6892
|
const w = z(() => {
|
|
6893
|
-
var
|
|
6894
|
-
return !!((
|
|
6893
|
+
var N;
|
|
6894
|
+
return !!((N = n.form.variant) != null && N.variantGroupIds.length);
|
|
6895
6895
|
}), x = z(() => {
|
|
6896
|
-
var
|
|
6897
|
-
return w.value ? (
|
|
6896
|
+
var N;
|
|
6897
|
+
return w.value ? (N = n.form.variant) == null ? void 0 : N.variantCombinations : [{
|
|
6898
6898
|
_id: n.form._id,
|
|
6899
6899
|
combinationKey: "",
|
|
6900
6900
|
groups: n.form.groups || []
|
|
6901
6901
|
}];
|
|
6902
6902
|
});
|
|
6903
|
-
function S(
|
|
6903
|
+
function S(N) {
|
|
6904
6904
|
var C;
|
|
6905
|
-
if (!
|
|
6905
|
+
if (!N) return !1;
|
|
6906
6906
|
if (m.value.overrideProductGroup) return !0;
|
|
6907
|
-
switch ((C = y.value[
|
|
6907
|
+
switch ((C = y.value[N]) == null ? void 0 : C.type) {
|
|
6908
6908
|
case ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC:
|
|
6909
6909
|
return !0;
|
|
6910
6910
|
case ee.F_ADDON_GROUP_TYPE.enum.PRODUCT:
|
|
@@ -6916,30 +6916,30 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6916
6916
|
}
|
|
6917
6917
|
}
|
|
6918
6918
|
Fe(() => d.value.length, () => M([...p.value, d.value[d.value.length - 1]._id]));
|
|
6919
|
-
const I = (
|
|
6919
|
+
const I = (N) => {
|
|
6920
6920
|
var D;
|
|
6921
|
-
return (D = g.value.find((C) => C.value ===
|
|
6922
|
-
},
|
|
6921
|
+
return (D = g.value.find((C) => C.value === N)) == null ? void 0 : D.label;
|
|
6922
|
+
}, P = (N) => {
|
|
6923
6923
|
var D;
|
|
6924
6924
|
w.value ? s("update:form", "variant", {
|
|
6925
6925
|
variantGroupIds: ((D = n.form.variant) == null ? void 0 : D.variantGroupIds) || [],
|
|
6926
|
-
variantCombinations:
|
|
6927
|
-
}) : s("update:form", "groups",
|
|
6926
|
+
variantCombinations: N
|
|
6927
|
+
}) : s("update:form", "groups", N[0].groups || []);
|
|
6928
6928
|
};
|
|
6929
|
-
return (
|
|
6929
|
+
return (N, D) => {
|
|
6930
6930
|
const C = H("FmButton"), T = H("FmTable");
|
|
6931
6931
|
return U(), Z(lt, {
|
|
6932
6932
|
title: b(l)("menu.product.form.group.title"),
|
|
6933
6933
|
"sub-title": b(l)("menu.product.form.group.subtitle")
|
|
6934
6934
|
}, {
|
|
6935
|
-
"append-title": G(() => [
|
|
6935
|
+
"append-title": G(() => [A(C, {
|
|
6936
6936
|
class: "flex-shrink-0",
|
|
6937
6937
|
label: b(l)("menu.product.form.group.add"),
|
|
6938
6938
|
"prepend-icon": "add",
|
|
6939
6939
|
variant: "secondary",
|
|
6940
|
-
onClick:
|
|
6940
|
+
onClick: R
|
|
6941
6941
|
}, null, 8, ["label"])]),
|
|
6942
|
-
default: G(() => [
|
|
6942
|
+
default: G(() => [A(ua, null, {
|
|
6943
6943
|
default: G(() => {
|
|
6944
6944
|
var V;
|
|
6945
6945
|
return [((V = p.value) == null ? void 0 : V.length) > 0 ? (U(), Z(T, {
|
|
@@ -7004,10 +7004,10 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7004
7004
|
return s(i.form.inventoryBindings || [], ((_ = i.form.variant) == null ? void 0 : _.variantCombinations) || [], u.value, o.variants);
|
|
7005
7005
|
});
|
|
7006
7006
|
function d(_, y) {
|
|
7007
|
-
var
|
|
7007
|
+
var R, M;
|
|
7008
7008
|
let g = ot.clone(i.form);
|
|
7009
7009
|
const v = g.variant;
|
|
7010
|
-
if ((((
|
|
7010
|
+
if ((((R = v == null ? void 0 : v.variantCombinations) == null ? void 0 : R.length) ?? 0) > 0 && v) {
|
|
7011
7011
|
const O = v.variantCombinations.findIndex((x) => x.combinationKey === _);
|
|
7012
7012
|
if (O < 0) return;
|
|
7013
7013
|
const w = ot.clone(v.variantCombinations);
|
|
@@ -7055,9 +7055,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7055
7055
|
enableSorting: !1,
|
|
7056
7056
|
cell: (_) => {
|
|
7057
7057
|
const y = _.row.original;
|
|
7058
|
-
return l.value ?
|
|
7058
|
+
return l.value ? A("div", {
|
|
7059
7059
|
class: "flex items-center justify-end"
|
|
7060
|
-
}, [
|
|
7060
|
+
}, [A(li, {
|
|
7061
7061
|
name: y.name,
|
|
7062
7062
|
initialValue: y.bindings ?? [],
|
|
7063
7063
|
title: n("menu.inventory.dialog.title", {
|
|
@@ -7069,8 +7069,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7069
7069
|
}, {
|
|
7070
7070
|
default: ({
|
|
7071
7071
|
trigger: g
|
|
7072
|
-
}) =>
|
|
7073
|
-
variant:
|
|
7072
|
+
}) => A(H("fm-button"), {
|
|
7073
|
+
variant: Rt.Tertiary,
|
|
7074
7074
|
prependIcon: "edit",
|
|
7075
7075
|
textColor: pt.NeutralGray400,
|
|
7076
7076
|
onClick: g
|
|
@@ -7106,7 +7106,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7106
7106
|
"onUpdate:inventory": (v) => {
|
|
7107
7107
|
d(g._id, v);
|
|
7108
7108
|
}
|
|
7109
|
-
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)),
|
|
7109
|
+
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), A(b(Za), {
|
|
7110
7110
|
"row-data": m.value,
|
|
7111
7111
|
onRowClick: p
|
|
7112
7112
|
}, null, 8, ["row-data"])])])]),
|
|
@@ -7138,17 +7138,17 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7138
7138
|
emits: ["update:form"],
|
|
7139
7139
|
setup(e, { emit: t }) {
|
|
7140
7140
|
const n = e, i = rn(), a = Te(), o = ko(), { t: r } = ke(), l = t, s = z(() => a.rules.item), u = z(() => {
|
|
7141
|
-
var
|
|
7142
|
-
const v = n.isOverride ? ((
|
|
7141
|
+
var R, M;
|
|
7142
|
+
const v = n.isOverride ? ((R = n.fallback) == null ? void 0 : R.unit) ?? ((M = n.fallback) == null ? void 0 : M.perXUnit) : void 0, E = n.form.unit ?? n.form.perXUnit ?? v;
|
|
7143
7143
|
return E != null;
|
|
7144
7144
|
}), m = (v) => {
|
|
7145
7145
|
l("update:form", "unit", v ? "" : void 0), l("update:form", "perXUnit", v ? 0 : void 0);
|
|
7146
7146
|
}, d = z(() => {
|
|
7147
7147
|
const v = a.isV4;
|
|
7148
|
-
return
|
|
7148
|
+
return Nn.setCoreStore(i).taxSetting(v);
|
|
7149
7149
|
}), c = z(() => {
|
|
7150
7150
|
var v;
|
|
7151
|
-
return
|
|
7151
|
+
return Nn.getSelectedTax(
|
|
7152
7152
|
n.form.taxes,
|
|
7153
7153
|
(v = n.fallback) == null ? void 0 : v.taxes,
|
|
7154
7154
|
d.value.countryTaxOptions
|
|
@@ -7161,8 +7161,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7161
7161
|
}
|
|
7162
7162
|
function k(v) {
|
|
7163
7163
|
if (!v && n.form.perXUnit) {
|
|
7164
|
-
const [E,
|
|
7165
|
-
if (
|
|
7164
|
+
const [E, R] = n.form.perXUnit.toString().split(".");
|
|
7165
|
+
if (R && R.length > 4) {
|
|
7166
7166
|
const O = (typeof n.form.perXUnit == "string" ? parseFloat(n.form.perXUnit) : n.form.perXUnit).toFixed(4);
|
|
7167
7167
|
l("update:form", "perXUnit", parseFloat(O));
|
|
7168
7168
|
}
|
|
@@ -7170,7 +7170,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7170
7170
|
}
|
|
7171
7171
|
const _ = te(!1);
|
|
7172
7172
|
async function y() {
|
|
7173
|
-
var E,
|
|
7173
|
+
var E, R, M, O, w, x, S;
|
|
7174
7174
|
if (!(n.form.name || "")) {
|
|
7175
7175
|
const I = document.getElementById("product-name");
|
|
7176
7176
|
if (I) {
|
|
@@ -7193,7 +7193,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7193
7193
|
Ge,
|
|
7194
7194
|
{
|
|
7195
7195
|
name: n.form.name || "",
|
|
7196
|
-
lat: (M = (
|
|
7196
|
+
lat: (M = (R = (E = i.currentRestaurant) == null ? void 0 : E.value) == null ? void 0 : R.profile.address.coordinates) == null ? void 0 : M[1],
|
|
7197
7197
|
lon: (x = (w = (O = i.currentRestaurant) == null ? void 0 : O.value) == null ? void 0 : w.profile.address.coordinates) == null ? void 0 : x[0]
|
|
7198
7198
|
},
|
|
7199
7199
|
!0
|
|
@@ -7207,7 +7207,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7207
7207
|
return ((v = a.currentCatalog) == null ? void 0 : v.usePriceTiers) ?? [];
|
|
7208
7208
|
});
|
|
7209
7209
|
return (v, E) => {
|
|
7210
|
-
const
|
|
7210
|
+
const R = H("fm-select"), M = H("FmButton"), O = H("fm-checkbox"), w = H("fm-text-field"), x = fo("tooltip");
|
|
7211
7211
|
return U(), Z(lt, {
|
|
7212
7212
|
title: b(r)("menu.product.form.price.title")
|
|
7213
7213
|
}, {
|
|
@@ -7215,7 +7215,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7215
7215
|
var S;
|
|
7216
7216
|
return [
|
|
7217
7217
|
B("div", Kc, [
|
|
7218
|
-
|
|
7218
|
+
A(Nt, {
|
|
7219
7219
|
disable: g.value.length > 0 && b(a).currentCatalog && !b(a).currentScheduler,
|
|
7220
7220
|
min: 0,
|
|
7221
7221
|
"model-value": v.form.price || null,
|
|
@@ -7229,7 +7229,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7229
7229
|
"onUpdate:modelValue": E[0] || (E[0] = (I) => I && l("update:form", "price", I))
|
|
7230
7230
|
}, {
|
|
7231
7231
|
append: G(() => [
|
|
7232
|
-
Xt(
|
|
7232
|
+
Xt(A(Ho, {
|
|
7233
7233
|
"pure-styling": "",
|
|
7234
7234
|
onClick: y
|
|
7235
7235
|
}, null, 512), [
|
|
@@ -7238,7 +7238,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7238
7238
|
]),
|
|
7239
7239
|
_: 1
|
|
7240
7240
|
}, 8, ["disable", "model-value", "placeholder", "rules", "label"]),
|
|
7241
|
-
R
|
|
7241
|
+
A(R, {
|
|
7242
7242
|
disabled: !s.value.tax || !d.value.systemCode,
|
|
7243
7243
|
items: d.value.countryTaxOptions,
|
|
7244
7244
|
label: d.value.systemCode ? b(r)("menu.product.form.price.fields.tax.label_with_code", {
|
|
@@ -7248,7 +7248,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7248
7248
|
placeholder: "--",
|
|
7249
7249
|
class: "flex-1",
|
|
7250
7250
|
"shift-menu": "",
|
|
7251
|
-
"onUpdate:modelValue": E[1] || (E[1] = (I) => l("update:form", "taxes", [b(
|
|
7251
|
+
"onUpdate:modelValue": E[1] || (E[1] = (I) => l("update:form", "taxes", [b(Nn).decodeTax(I)]))
|
|
7252
7252
|
}, null, 8, ["disabled", "items", "label", "model-value"])
|
|
7253
7253
|
]),
|
|
7254
7254
|
!v.isOverride && b(a).isV4 ? (U(), Z(_t, {
|
|
@@ -7257,7 +7257,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7257
7257
|
description: b(r)("menu.price_tier.description")
|
|
7258
7258
|
}, {
|
|
7259
7259
|
append: G(() => [
|
|
7260
|
-
|
|
7260
|
+
A(M, {
|
|
7261
7261
|
label: b(r)("menu.price_tier.add_price_group"),
|
|
7262
7262
|
icon: "add",
|
|
7263
7263
|
variant: "secondary",
|
|
@@ -7272,20 +7272,20 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7272
7272
|
"price-tiers": b(o).priceTiers.value,
|
|
7273
7273
|
"model-value": v.form.priceTiers || ((I = v.fallback) == null ? void 0 : I.priceTiers) || {},
|
|
7274
7274
|
"allow-negative-price": !1,
|
|
7275
|
-
"onUpdate:modelValue": E[2] || (E[2] = (
|
|
7275
|
+
"onUpdate:modelValue": E[2] || (E[2] = (P) => l("update:form", "priceTiers", P))
|
|
7276
7276
|
}, null, 8, ["price-tiers", "model-value"]))
|
|
7277
7277
|
];
|
|
7278
7278
|
}),
|
|
7279
7279
|
_: 1
|
|
7280
7280
|
}, 8, ["label", "description"])) : se("", !0),
|
|
7281
|
-
|
|
7281
|
+
A(_t, {
|
|
7282
7282
|
label: b(r)("menu.product.form.price.settings.title")
|
|
7283
7283
|
}, {
|
|
7284
7284
|
default: G(() => {
|
|
7285
|
-
var I,
|
|
7285
|
+
var I, P, N;
|
|
7286
7286
|
return [
|
|
7287
7287
|
B("div", Yc, [
|
|
7288
|
-
|
|
7288
|
+
A(O, {
|
|
7289
7289
|
disabled: !s.value.openPrice || v.isAddon,
|
|
7290
7290
|
"model-value": v.form.openPrice ?? ((I = v.fallback) == null ? void 0 : I.openPrice) ?? !1,
|
|
7291
7291
|
value: v.form.openPrice,
|
|
@@ -7294,7 +7294,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7294
7294
|
"onUpdate:modelValue": E[3] || (E[3] = (D) => l("update:form", "openPrice", D))
|
|
7295
7295
|
}, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
|
|
7296
7296
|
B("div", Xc, [
|
|
7297
|
-
|
|
7297
|
+
A(O, {
|
|
7298
7298
|
disabled: !s.value.unit || v.isAddon,
|
|
7299
7299
|
"model-value": u.value,
|
|
7300
7300
|
value: u.value,
|
|
@@ -7305,9 +7305,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7305
7305
|
u.value ? (U(), re("div", qc, [
|
|
7306
7306
|
B("p", Jc, ye(b(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
|
|
7307
7307
|
B("div", Zc, [
|
|
7308
|
-
|
|
7308
|
+
A(w, {
|
|
7309
7309
|
disabled: !s.value.unit,
|
|
7310
|
-
"model-value": v.form.perXUnit || ((
|
|
7310
|
+
"model-value": v.form.perXUnit || ((P = v.fallback) == null ? void 0 : P.perXUnit) || null,
|
|
7311
7311
|
rules: [
|
|
7312
7312
|
(D) => !!D || b(r)("menu.product.form.price.settings.sell_by_unit.per_unit.required"),
|
|
7313
7313
|
(D) => !D || D > 0 || b(r)("menu.product.form.price.settings.sell_by_unit.per_unit.min")
|
|
@@ -7320,9 +7320,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7320
7320
|
}, null, 8, ["disabled", "model-value", "rules", "placeholder"])
|
|
7321
7321
|
]),
|
|
7322
7322
|
B("div", Qc, [
|
|
7323
|
-
|
|
7323
|
+
A(w, {
|
|
7324
7324
|
disabled: !s.value.unit,
|
|
7325
|
-
"model-value": v.form.unit || ((
|
|
7325
|
+
"model-value": v.form.unit || ((N = v.fallback) == null ? void 0 : N.unit) || null,
|
|
7326
7326
|
rules: [
|
|
7327
7327
|
(D) => !!D || b(r)("menu.product.form.price.settings.sell_by_unit.unit.required")
|
|
7328
7328
|
],
|
|
@@ -7333,7 +7333,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7333
7333
|
])) : se("", !0)
|
|
7334
7334
|
]),
|
|
7335
7335
|
s.value.costing ? (U(), re("div", ed, [
|
|
7336
|
-
|
|
7336
|
+
A(O, {
|
|
7337
7337
|
"model-value": !!v.form.costing,
|
|
7338
7338
|
value: !!v.form.costing,
|
|
7339
7339
|
label: b(r)("menu.product.form.price.settings.track_costing.label"),
|
|
@@ -7341,7 +7341,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7341
7341
|
}, null, 8, ["model-value", "value", "label"]),
|
|
7342
7342
|
v.form.costing ? (U(), re("div", td, [
|
|
7343
7343
|
B("div", nd, [
|
|
7344
|
-
|
|
7344
|
+
A(Nt, {
|
|
7345
7345
|
class: "w-full",
|
|
7346
7346
|
min: 0,
|
|
7347
7347
|
"model-value": v.form.costing || null,
|
|
@@ -7353,7 +7353,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7353
7353
|
])) : se("", !0)
|
|
7354
7354
|
])) : se("", !0),
|
|
7355
7355
|
s.value.minPrice ? (U(), re("div", id, [
|
|
7356
|
-
|
|
7356
|
+
A(O, {
|
|
7357
7357
|
disabled: !s.value.minPrice || v.isAddon,
|
|
7358
7358
|
"model-value": !!v.form.minPrice,
|
|
7359
7359
|
value: !!v.form.minPrice,
|
|
@@ -7362,7 +7362,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7362
7362
|
}, null, 8, ["disabled", "model-value", "value", "label"]),
|
|
7363
7363
|
B("div", od, [
|
|
7364
7364
|
B("div", ad, [
|
|
7365
|
-
v.form.minPrice ? (U(), Z(
|
|
7365
|
+
v.form.minPrice ? (U(), Z(Nt, {
|
|
7366
7366
|
key: 0,
|
|
7367
7367
|
max: b($e.Dinero).fromFdoDinero(v.form.price).toUnit(),
|
|
7368
7368
|
min: 0,
|
|
@@ -7435,8 +7435,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7435
7435
|
), (d, c) => {
|
|
7436
7436
|
const p = H("fm-text-field"), k = H("fm-button"), _ = H("fm-side-sheet");
|
|
7437
7437
|
return U(), re(Ue, null, [
|
|
7438
|
-
|
|
7439
|
-
|
|
7438
|
+
Re(d.$slots, "default", { trigger: u }),
|
|
7439
|
+
A(_, {
|
|
7440
7440
|
id: "variant-form",
|
|
7441
7441
|
modelValue: s.value,
|
|
7442
7442
|
"onUpdate:modelValue": c[3] || (c[3] = (y) => s.value = y),
|
|
@@ -7453,14 +7453,14 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7453
7453
|
]),
|
|
7454
7454
|
"side-sheet-footer": G(() => [
|
|
7455
7455
|
B("div", ud, [
|
|
7456
|
-
|
|
7456
|
+
A(k, {
|
|
7457
7457
|
label: o.value,
|
|
7458
7458
|
loading: l.value,
|
|
7459
7459
|
size: "lg",
|
|
7460
7460
|
type: "submit",
|
|
7461
7461
|
variant: "primary"
|
|
7462
7462
|
}, null, 8, ["label", "loading"]),
|
|
7463
|
-
|
|
7463
|
+
A(k, {
|
|
7464
7464
|
label: b(t)("menu.common.actions.cancel"),
|
|
7465
7465
|
size: "lg",
|
|
7466
7466
|
variant: "tertiary",
|
|
@@ -7470,7 +7470,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7470
7470
|
]),
|
|
7471
7471
|
default: G(() => [
|
|
7472
7472
|
B("div", ld, [
|
|
7473
|
-
|
|
7473
|
+
A(p, {
|
|
7474
7474
|
modelValue: r.value.name,
|
|
7475
7475
|
"onUpdate:modelValue": c[0] || (c[0] = (y) => r.value.name = y),
|
|
7476
7476
|
rules: [
|
|
@@ -7550,8 +7550,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7550
7550
|
});
|
|
7551
7551
|
}
|
|
7552
7552
|
function _(g, v) {
|
|
7553
|
-
var
|
|
7554
|
-
let E = [...((M = (
|
|
7553
|
+
var R, M;
|
|
7554
|
+
let E = [...((M = (R = n.form) == null ? void 0 : R.print) == null ? void 0 : M.department) ?? []];
|
|
7555
7555
|
v && !E.includes(g) ? E = [...E, g] : v || (E = E.filter((O) => O !== g)), o("update:form", "print", {
|
|
7556
7556
|
...r(),
|
|
7557
7557
|
...n.form.print,
|
|
@@ -7574,7 +7574,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7574
7574
|
() => s.value.length,
|
|
7575
7575
|
() => _(s.value[s.value.length - 1]._id, !0)
|
|
7576
7576
|
), (g, v) => {
|
|
7577
|
-
const E = H("fm-switch"),
|
|
7577
|
+
const E = H("fm-switch"), R = H("fm-radio"), M = H("fm-radio-group"), O = H("fm-button"), w = H("fm-checkbox");
|
|
7578
7578
|
return U(), Z(lt, {
|
|
7579
7579
|
title: b(a)("menu.product.form.print.title")
|
|
7580
7580
|
}, {
|
|
@@ -7588,7 +7588,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7588
7588
|
default: G(() => {
|
|
7589
7589
|
var S;
|
|
7590
7590
|
return [
|
|
7591
|
-
|
|
7591
|
+
A(E, {
|
|
7592
7592
|
"model-value": !((S = g.form.print) != null && S.toRoot),
|
|
7593
7593
|
label: b(a)("menu.product.form.print.config.group_parent.label"),
|
|
7594
7594
|
"label-placement": "right",
|
|
@@ -7599,14 +7599,14 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7599
7599
|
}),
|
|
7600
7600
|
_: 1
|
|
7601
7601
|
}, 8, ["label"])) : se("", !0),
|
|
7602
|
-
|
|
7602
|
+
A(M, {
|
|
7603
7603
|
label: b(a)("menu.product.form.print.kds.label"),
|
|
7604
7604
|
"model-value": ((x = g.form.print) == null ? void 0 : x.sequential) ?? !1,
|
|
7605
7605
|
"onUpdate:modelValue": v[1] || (v[1] = (S) => p(S))
|
|
7606
7606
|
}, {
|
|
7607
7607
|
default: G(() => [
|
|
7608
7608
|
B("div", md, [
|
|
7609
|
-
(U(!0), re(Ue, null, at(y.value, (S, I) => (U(), Z(
|
|
7609
|
+
(U(!0), re(Ue, null, at(y.value, (S, I) => (U(), Z(R, {
|
|
7610
7610
|
key: I,
|
|
7611
7611
|
label: S.label,
|
|
7612
7612
|
sublabel: S.description,
|
|
@@ -7616,7 +7616,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7616
7616
|
]),
|
|
7617
7617
|
_: 1
|
|
7618
7618
|
}, 8, ["label", "model-value"]),
|
|
7619
|
-
|
|
7619
|
+
A(_t, {
|
|
7620
7620
|
label: b(a)("menu.product.form.print.routes.label")
|
|
7621
7621
|
}, {
|
|
7622
7622
|
default: G(() => [
|
|
@@ -7629,13 +7629,13 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7629
7629
|
class: "space-y-16"
|
|
7630
7630
|
}, {
|
|
7631
7631
|
item: G(({ element: S }) => {
|
|
7632
|
-
var I,
|
|
7632
|
+
var I, P, N, D, C;
|
|
7633
7633
|
return [
|
|
7634
7634
|
B("div", pd, [
|
|
7635
7635
|
B("div", fd, [
|
|
7636
7636
|
u.value ? (U(), Z(O, {
|
|
7637
7637
|
key: 0,
|
|
7638
|
-
disabled: !((
|
|
7638
|
+
disabled: !((P = (I = n.form.print) == null ? void 0 : I.department) != null && P.includes(S)),
|
|
7639
7639
|
class: "handle",
|
|
7640
7640
|
"prepend-icon": "drag_handle",
|
|
7641
7641
|
variant: "tertiary",
|
|
@@ -7643,9 +7643,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7643
7643
|
}, ["stop"]))
|
|
7644
7644
|
}, null, 8, ["disabled"])) : se("", !0)
|
|
7645
7645
|
]),
|
|
7646
|
-
|
|
7646
|
+
A(w, {
|
|
7647
7647
|
id: S,
|
|
7648
|
-
"data-checked": (D = (
|
|
7648
|
+
"data-checked": (D = (N = n.form.print) == null ? void 0 : N.department) == null ? void 0 : D.includes(S),
|
|
7649
7649
|
label: d.value[S],
|
|
7650
7650
|
"model-value": (((C = n.form.print) == null ? void 0 : C.department) ?? []).includes(S),
|
|
7651
7651
|
value: S,
|
|
@@ -7657,11 +7657,11 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7657
7657
|
}),
|
|
7658
7658
|
_: 1
|
|
7659
7659
|
}, 8, ["item-key", "model-value"])) : se("", !0),
|
|
7660
|
-
|
|
7660
|
+
A(b(dd), { "apply-product": !1 }, {
|
|
7661
7661
|
default: G(({ trigger: S }) => [
|
|
7662
7662
|
B("div", hd, [
|
|
7663
|
-
|
|
7664
|
-
variant: b(
|
|
7663
|
+
A(O, {
|
|
7664
|
+
variant: b(Rt).Secondary,
|
|
7665
7665
|
label: b(a)("menu.product.form.print.routes.add"),
|
|
7666
7666
|
"prepend-icon": "add",
|
|
7667
7667
|
onClick: S
|
|
@@ -7815,7 +7815,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7815
7815
|
title: b(r)("menu.product.form.takeaway.title"),
|
|
7816
7816
|
"sub-title": b(r)("menu.product.form.takeaway.subtitle")
|
|
7817
7817
|
}, {
|
|
7818
|
-
default: G(() => [
|
|
7818
|
+
default: G(() => [A(k, {
|
|
7819
7819
|
columnDefs: d.value,
|
|
7820
7820
|
"page-size": b(u).length,
|
|
7821
7821
|
"row-data": b(u),
|
|
@@ -7831,7 +7831,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7831
7831
|
}, 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" }, kd = {
|
|
7832
7832
|
key: 1,
|
|
7833
7833
|
class: "flex flex-col items-center space-y-16"
|
|
7834
|
-
}, Sd = { class: "flex flex-col items-center space-y-4 w-full" }, Cd = { class: "fm-typo-en-title-sm-600" },
|
|
7834
|
+
}, Sd = { 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({
|
|
7835
7835
|
__name: "SelectVariantDialog",
|
|
7836
7836
|
props: {
|
|
7837
7837
|
selectedVariants: {}
|
|
@@ -7848,7 +7848,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7848
7848
|
const p = H("FmSearch"), k = H("FmCheckbox"), _ = H("FmButton");
|
|
7849
7849
|
return l.value.length > 0 ? (U(), re("div", bd, [
|
|
7850
7850
|
B("div", null, [
|
|
7851
|
-
|
|
7851
|
+
A(p, {
|
|
7852
7852
|
autofocus: "",
|
|
7853
7853
|
modelValue: u.value,
|
|
7854
7854
|
"onUpdate:modelValue": c[0] || (c[0] = (y) => u.value = y),
|
|
@@ -7860,7 +7860,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7860
7860
|
(U(!0), re(Ue, null, at(l.value, (y) => (U(), re("div", {
|
|
7861
7861
|
key: y.value
|
|
7862
7862
|
}, [
|
|
7863
|
-
Xt(
|
|
7863
|
+
Xt(A(k, {
|
|
7864
7864
|
modelValue: s.value,
|
|
7865
7865
|
"onUpdate:modelValue": [
|
|
7866
7866
|
c[1] || (c[1] = (g) => s.value = g),
|
|
@@ -7875,7 +7875,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7875
7875
|
])
|
|
7876
7876
|
]),
|
|
7877
7877
|
B("div", wd, [
|
|
7878
|
-
|
|
7878
|
+
A(b(Ri), null, {
|
|
7879
7879
|
default: G(({ trigger: y }) => [
|
|
7880
7880
|
b(a).rules.item.variant ? (U(), Z(_, {
|
|
7881
7881
|
key: 0,
|
|
@@ -7888,12 +7888,12 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7888
7888
|
_: 1
|
|
7889
7889
|
}),
|
|
7890
7890
|
B("div", Ed, [
|
|
7891
|
-
|
|
7891
|
+
A(_, {
|
|
7892
7892
|
label: b(o)("menu.common.actions.cancel"),
|
|
7893
7893
|
variant: "tertiary",
|
|
7894
7894
|
onClick: c[3] || (c[3] = (y) => b(t).close())
|
|
7895
7895
|
}, null, 8, ["label"]),
|
|
7896
|
-
|
|
7896
|
+
A(_, {
|
|
7897
7897
|
label: b(o)("menu.common.actions.confirm"),
|
|
7898
7898
|
onClick: c[4] || (c[4] = (y) => m())
|
|
7899
7899
|
}, null, 8, ["label"])
|
|
@@ -7902,11 +7902,11 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7902
7902
|
])) : (U(), re("div", kd, [
|
|
7903
7903
|
B("div", Sd, [
|
|
7904
7904
|
B("p", Cd, ye(b(o)("menu.common.empty.no_variant.title")), 1),
|
|
7905
|
-
B("p",
|
|
7905
|
+
B("p", Rd, ye(b(o)("menu.common.empty.no_variant.subtitle")), 1)
|
|
7906
7906
|
]),
|
|
7907
|
-
|
|
7907
|
+
A(b(Ri), null, {
|
|
7908
7908
|
default: G(({ trigger: y }) => [
|
|
7909
|
-
|
|
7909
|
+
A(_, {
|
|
7910
7910
|
label: b(o)("menu.variant.add"),
|
|
7911
7911
|
icon: "add",
|
|
7912
7912
|
onClick: (g) => y()
|
|
@@ -7950,10 +7950,10 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7950
7950
|
function p(S) {
|
|
7951
7951
|
const I = ot.clone(n.form);
|
|
7952
7952
|
for (const {
|
|
7953
|
-
key:
|
|
7954
|
-
value:
|
|
7953
|
+
key: P,
|
|
7954
|
+
value: N
|
|
7955
7955
|
} of S)
|
|
7956
|
-
I[
|
|
7956
|
+
I[P] = N;
|
|
7957
7957
|
c("replace:form", I);
|
|
7958
7958
|
}
|
|
7959
7959
|
z(() => i.variants.map((S) => ({
|
|
@@ -7962,15 +7962,15 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7962
7962
|
disabled: !1
|
|
7963
7963
|
})));
|
|
7964
7964
|
function k(S) {
|
|
7965
|
-
var
|
|
7965
|
+
var P;
|
|
7966
7966
|
const I = y(S.combinationKey || "");
|
|
7967
7967
|
return {
|
|
7968
7968
|
...S,
|
|
7969
7969
|
price: I == null ? void 0 : I.price,
|
|
7970
7970
|
inventoryBindings: (I == null ? void 0 : I.inventoryBindings) || n.form.inventoryBindings,
|
|
7971
7971
|
takeawayUsed: (I == null ? void 0 : I.takeawayUsed) || n.form.takeawayUsed,
|
|
7972
|
-
groups: (I == null ? void 0 : I.groups) || ((
|
|
7973
|
-
...
|
|
7972
|
+
groups: (I == null ? void 0 : I.groups) || ((P = n.form.groups) == null ? void 0 : P.map((N) => ({
|
|
7973
|
+
...N,
|
|
7974
7974
|
groupKey: ""
|
|
7975
7975
|
})))
|
|
7976
7976
|
};
|
|
@@ -7979,7 +7979,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7979
7979
|
var S;
|
|
7980
7980
|
r.open({
|
|
7981
7981
|
title: "Add variant",
|
|
7982
|
-
contentComponent:
|
|
7982
|
+
contentComponent: Ad,
|
|
7983
7983
|
contentComponentProps: {
|
|
7984
7984
|
selectedVariants: ((S = n.form.variant) == null ? void 0 : S.variantGroupIds) ?? []
|
|
7985
7985
|
}
|
|
@@ -7989,37 +7989,37 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7989
7989
|
}
|
|
7990
7990
|
function y(S) {
|
|
7991
7991
|
var T, V;
|
|
7992
|
-
const I = ((T = n.form.variant) == null ? void 0 : T.variantGroupIds) || [],
|
|
7993
|
-
return
|
|
7992
|
+
const I = ((T = n.form.variant) == null ? void 0 : T.variantGroupIds) || [], P = (V = n.form.variant) == null ? void 0 : V.variantCombinations, C = S.split(/(?=variant)/g).map((j) => j.replace(/\/*$/, "")).filter((j) => I.some((le) => j.includes(le))).join("/");
|
|
7993
|
+
return P == null ? void 0 : P.find((j) => j.combinationKey === C);
|
|
7994
7994
|
}
|
|
7995
7995
|
const g = (S) => {
|
|
7996
7996
|
E(S);
|
|
7997
7997
|
}, v = z(() => {
|
|
7998
7998
|
var I;
|
|
7999
|
-
return (((I = n.form.variant) == null ? void 0 : I.variantCombinations) || []).map((
|
|
7999
|
+
return (((I = n.form.variant) == null ? void 0 : I.variantCombinations) || []).map((P) => {
|
|
8000
8000
|
var D, C;
|
|
8001
|
-
const
|
|
8001
|
+
const N = (C = (D = n.fallback) == null ? void 0 : D.variant) == null ? void 0 : C.variantCombinations.find(({
|
|
8002
8002
|
combinationKey: T
|
|
8003
|
-
}) => T ===
|
|
8003
|
+
}) => T === P.combinationKey);
|
|
8004
8004
|
return {
|
|
8005
|
-
...
|
|
8005
|
+
...P,
|
|
8006
8006
|
fallback: {
|
|
8007
|
-
...
|
|
8008
|
-
_id:
|
|
8009
|
-
combinationKey:
|
|
8010
|
-
price: m.value ? n.form.price ?? (
|
|
8011
|
-
minPrice: n.form.minPrice ?? (
|
|
8007
|
+
...N,
|
|
8008
|
+
_id: P._id,
|
|
8009
|
+
combinationKey: P.combinationKey,
|
|
8010
|
+
price: m.value ? n.form.price ?? (N == null ? void 0 : N.price) : P.price ?? (N == null ? void 0 : N.price),
|
|
8011
|
+
minPrice: n.form.minPrice ?? (N == null ? void 0 : N.minPrice),
|
|
8012
8012
|
priceTiers: n.form.priceTiers
|
|
8013
8013
|
}
|
|
8014
8014
|
};
|
|
8015
8015
|
});
|
|
8016
8016
|
});
|
|
8017
|
-
function E(S, I = (
|
|
8017
|
+
function E(S, I = (P) => P) {
|
|
8018
8018
|
var D;
|
|
8019
|
-
const
|
|
8020
|
-
let
|
|
8021
|
-
if (
|
|
8022
|
-
const C =
|
|
8019
|
+
const P = S.filter((C) => !!C);
|
|
8020
|
+
let N;
|
|
8021
|
+
if (P.length) {
|
|
8022
|
+
const C = P.map((V) => i.variants.find((j) => j._id === V)), T = qe.fullVariantCombination(C).map(({
|
|
8023
8023
|
combinationKey: V
|
|
8024
8024
|
}) => {
|
|
8025
8025
|
var le;
|
|
@@ -8036,10 +8036,10 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8036
8036
|
});
|
|
8037
8037
|
return;
|
|
8038
8038
|
}
|
|
8039
|
-
|
|
8039
|
+
N = {
|
|
8040
8040
|
...n.form,
|
|
8041
8041
|
variant: {
|
|
8042
|
-
variantGroupIds:
|
|
8042
|
+
variantGroupIds: P,
|
|
8043
8043
|
variantCombinations: T
|
|
8044
8044
|
},
|
|
8045
8045
|
inventoryBindings: null,
|
|
@@ -8053,19 +8053,19 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8053
8053
|
}, {
|
|
8054
8054
|
key: "takeawayUsed",
|
|
8055
8055
|
value: T.length === 1 ? T[0] : null
|
|
8056
|
-
}]),
|
|
8056
|
+
}]), N = {
|
|
8057
8057
|
...n.form,
|
|
8058
8058
|
variant: void 0,
|
|
8059
8059
|
takeawayUsed: T.length === 1 ? T[0] : null
|
|
8060
8060
|
};
|
|
8061
8061
|
}
|
|
8062
|
-
c("replace:form", a.initDynamicGroupItem(
|
|
8062
|
+
c("replace:form", a.initDynamicGroupItem(N));
|
|
8063
8063
|
}
|
|
8064
|
-
async function
|
|
8065
|
-
const
|
|
8066
|
-
|
|
8064
|
+
async function R(S, I, P) {
|
|
8065
|
+
const N = ot.clone(n.form);
|
|
8066
|
+
N.variant.variantCombinations[S][I] = P, p([{
|
|
8067
8067
|
key: "variant",
|
|
8068
|
-
value:
|
|
8068
|
+
value: N.variant
|
|
8069
8069
|
}]);
|
|
8070
8070
|
}
|
|
8071
8071
|
const M = z(() => {
|
|
@@ -8083,11 +8083,11 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8083
8083
|
cell: (S) => {
|
|
8084
8084
|
var C, T;
|
|
8085
8085
|
const I = S.getValue(), D = ((C = S.row.original.fallback) == null ? void 0 : C.code) ?? n.form.code ?? ((T = n.fallback) == null ? void 0 : T.code);
|
|
8086
|
-
return
|
|
8086
|
+
return A(Be.FmTextField, {
|
|
8087
8087
|
modelValue: I,
|
|
8088
8088
|
placeholder: D || l("menu.product.form.variant.placeholders.no_code"),
|
|
8089
8089
|
"onUpdate:model-value": (V) => {
|
|
8090
|
-
|
|
8090
|
+
R(S.row.index, "code", jo(V, !0));
|
|
8091
8091
|
}
|
|
8092
8092
|
}, null);
|
|
8093
8093
|
}
|
|
@@ -8097,15 +8097,15 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8097
8097
|
enableSorting: !1,
|
|
8098
8098
|
cell: (S) => {
|
|
8099
8099
|
var D, C;
|
|
8100
|
-
const I = S.getValue(),
|
|
8101
|
-
return
|
|
8100
|
+
const I = S.getValue(), N = (D = S.row.original.fallback) == null ? void 0 : D.orderFrom;
|
|
8101
|
+
return A(hi, {
|
|
8102
8102
|
modelValue: I,
|
|
8103
|
-
fallback: n.form.orderFrom ??
|
|
8103
|
+
fallback: n.form.orderFrom ?? N ?? ((C = n.fallback) == null ? void 0 : C.orderFrom),
|
|
8104
8104
|
disable: !s.value.orderFrom,
|
|
8105
8105
|
required: s.value.orderFrom && s.value.orderFromActiveOnly,
|
|
8106
8106
|
editActiveOnly: s.value.orderFromActiveOnly || !1,
|
|
8107
8107
|
"onUpdate:model-value": (T) => {
|
|
8108
|
-
|
|
8108
|
+
R(S.row.index, "orderFrom", T);
|
|
8109
8109
|
},
|
|
8110
8110
|
label: "",
|
|
8111
8111
|
defaultLabel: "Follow general"
|
|
@@ -8118,23 +8118,23 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8118
8118
|
enableSorting: !1,
|
|
8119
8119
|
cell: (S) => {
|
|
8120
8120
|
var C, T, V;
|
|
8121
|
-
const I = S.getValue(),
|
|
8122
|
-
return
|
|
8121
|
+
const I = S.getValue(), P = S.row.original, D = ((C = P.fallback) == null ? void 0 : C.price) ?? n.form.price ?? ((T = n.fallback) == null ? void 0 : T.price);
|
|
8122
|
+
return A("div", {
|
|
8123
8123
|
class: "flex items-center gap-8"
|
|
8124
|
-
}, [
|
|
8124
|
+
}, [A(Nt, {
|
|
8125
8125
|
disable: M.value.length > 0 && i.currentCatalog && !i.currentScheduler,
|
|
8126
8126
|
placeholder: D ? Bt(D) : void 0,
|
|
8127
8127
|
modelValue: I,
|
|
8128
8128
|
min: 0,
|
|
8129
8129
|
"onUpdate:model-value": (j) => {
|
|
8130
|
-
|
|
8130
|
+
R(S.row.index, "price", j);
|
|
8131
8131
|
},
|
|
8132
8132
|
nullable: !0,
|
|
8133
8133
|
showCurrency: !1
|
|
8134
|
-
}, null), i.isV4 && !n.isOverride &&
|
|
8135
|
-
"price-tiers":
|
|
8136
|
-
fallback: (V =
|
|
8137
|
-
"onUpdate:price-tiers": (j) =>
|
|
8134
|
+
}, null), i.isV4 && !n.isOverride && A(da, {
|
|
8135
|
+
"price-tiers": P.priceTiers,
|
|
8136
|
+
fallback: (V = P.fallback) == null ? void 0 : V.priceTiers,
|
|
8137
|
+
"onUpdate:price-tiers": (j) => R(S.row.index, "priceTiers", j)
|
|
8138
8138
|
}, null)]);
|
|
8139
8139
|
}
|
|
8140
8140
|
}, {
|
|
@@ -8143,13 +8143,13 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8143
8143
|
enableSorting: !1,
|
|
8144
8144
|
cell: (S) => {
|
|
8145
8145
|
var C, T, V;
|
|
8146
|
-
const I = S.getValue(),
|
|
8147
|
-
return
|
|
8146
|
+
const I = S.getValue(), P = S.row.original, D = ((C = P.fallback) == null ? void 0 : C.minPrice) ?? n.form.minPrice ?? ((T = n.fallback) == null ? void 0 : T.minPrice);
|
|
8147
|
+
return A(Nt, {
|
|
8148
8148
|
placeholder: D ? Bt(D) : void 0,
|
|
8149
8149
|
modelValue: I,
|
|
8150
|
-
max: $e.Dinero.fromFdoDinero(
|
|
8150
|
+
max: $e.Dinero.fromFdoDinero(P.price ?? ((V = P.fallback) == null ? void 0 : V.price) ?? $e.Dinero.zero().toObject()).toUnit(),
|
|
8151
8151
|
"onUpdate:model-value": (j) => {
|
|
8152
|
-
|
|
8152
|
+
R(S.row.index, "minPrice", j);
|
|
8153
8153
|
},
|
|
8154
8154
|
nullable: !0,
|
|
8155
8155
|
showCurrency: !1
|
|
@@ -8164,12 +8164,12 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8164
8164
|
}) : !0;
|
|
8165
8165
|
}
|
|
8166
8166
|
return (S, I) => {
|
|
8167
|
-
const
|
|
8167
|
+
const P = H("fm-button"), N = H("fm-icon"), D = H("FmFormGroup"), C = H("fm-table");
|
|
8168
8168
|
return U(), Z(lt, {
|
|
8169
8169
|
title: b(l)("menu.product.form.variant.title"),
|
|
8170
8170
|
"sub-title": b(l)("menu.product.form.variant.subtitle")
|
|
8171
8171
|
}, {
|
|
8172
|
-
"append-title": G(() => [b(i).rules.item.variant ? (U(), Z(
|
|
8172
|
+
"append-title": G(() => [b(i).rules.item.variant ? (U(), Z(P, {
|
|
8173
8173
|
key: 0,
|
|
8174
8174
|
label: b(l)("menu.product.form.variant.add"),
|
|
8175
8175
|
variant: "secondary",
|
|
@@ -8178,13 +8178,13 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8178
8178
|
}, null, 8, ["label"])) : se("", !0)]),
|
|
8179
8179
|
default: G(() => {
|
|
8180
8180
|
var T;
|
|
8181
|
-
return [B("div", Od, [
|
|
8181
|
+
return [B("div", Od, [A(D, {
|
|
8182
8182
|
"model-value": (T = S.form.variant) == null ? void 0 : T.variantGroupIds,
|
|
8183
8183
|
rules: [x]
|
|
8184
8184
|
}, {
|
|
8185
8185
|
default: G(() => {
|
|
8186
8186
|
var V;
|
|
8187
|
-
return [
|
|
8187
|
+
return [A(b(So), {
|
|
8188
8188
|
"model-value": ((V = S.form.variant) == null ? void 0 : V.variantGroupIds) ?? [],
|
|
8189
8189
|
class: "space-y-16",
|
|
8190
8190
|
group: "variants",
|
|
@@ -8196,16 +8196,16 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8196
8196
|
element: j
|
|
8197
8197
|
}) => {
|
|
8198
8198
|
var le;
|
|
8199
|
-
return [B("div", Id, [
|
|
8200
|
-
variant: b(
|
|
8199
|
+
return [B("div", Id, [A(P, {
|
|
8200
|
+
variant: b(Rt).Tertiary,
|
|
8201
8201
|
class: "handle",
|
|
8202
8202
|
"prepend-icon": "drag_handle"
|
|
8203
|
-
}, null, 8, ["variant"]), B("div", Td, [B("p", Md, ye((le = d.value[j]) == null ? void 0 : le.name), 1),
|
|
8203
|
+
}, null, 8, ["variant"]), B("div", Td, [B("p", Md, ye((le = d.value[j]) == null ? void 0 : le.name), 1), A(N, {
|
|
8204
8204
|
class: "cursor-pointer",
|
|
8205
8205
|
name: "close",
|
|
8206
8206
|
onClick: Cn((ce) => {
|
|
8207
|
-
var
|
|
8208
|
-
return E(((
|
|
8207
|
+
var Ae;
|
|
8208
|
+
return E(((Ae = S.form.variant) == null ? void 0 : Ae.variantGroupIds.filter(($) => $ !== j)) ?? []);
|
|
8209
8209
|
}, ["stop"])
|
|
8210
8210
|
}, null, 8, ["onClick"])])])];
|
|
8211
8211
|
}),
|
|
@@ -8213,7 +8213,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8213
8213
|
}, 8, ["model-value"])];
|
|
8214
8214
|
}),
|
|
8215
8215
|
_: 1
|
|
8216
|
-
}, 8, ["model-value", "rules"]),
|
|
8216
|
+
}, 8, ["model-value", "rules"]), A(ua, null, {
|
|
8217
8217
|
default: G(() => [v.value.length ? (U(), Z(C, {
|
|
8218
8218
|
key: 0,
|
|
8219
8219
|
class: "w-full",
|
|
@@ -8231,9 +8231,9 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8231
8231
|
}, 8, ["title", "sub-title"]);
|
|
8232
8232
|
};
|
|
8233
8233
|
}
|
|
8234
|
-
}),
|
|
8234
|
+
}), Nd = {
|
|
8235
8235
|
class: /* @__PURE__ */ He(["flex", "space-x-40", "max-w-[1200px] mx-auto w-full"])
|
|
8236
|
-
},
|
|
8236
|
+
}, Pd = {
|
|
8237
8237
|
key: 1,
|
|
8238
8238
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8239
8239
|
}, Fd = {
|
|
@@ -8322,7 +8322,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8322
8322
|
[f]: h
|
|
8323
8323
|
};
|
|
8324
8324
|
};
|
|
8325
|
-
async function
|
|
8325
|
+
async function R() {
|
|
8326
8326
|
var f, h;
|
|
8327
8327
|
c.value = p.value._id && M.value ? (await Ya(
|
|
8328
8328
|
a.mergedMenu,
|
|
@@ -8345,7 +8345,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8345
8345
|
(Y = c.value) == null ? void 0 : Y.taxes,
|
|
8346
8346
|
a.taxSetting.countryTaxOptions
|
|
8347
8347
|
), L = a.taxSetting.countryTaxOptions.find((X) => X.value === f);
|
|
8348
|
-
return L ?
|
|
8348
|
+
return L ? Pa(L.meta.rate) : "-";
|
|
8349
8349
|
}
|
|
8350
8350
|
function S() {
|
|
8351
8351
|
v.value = null, p.value.thumbnail = null;
|
|
@@ -8394,10 +8394,10 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8394
8394
|
}
|
|
8395
8395
|
]
|
|
8396
8396
|
};
|
|
8397
|
-
}),
|
|
8397
|
+
}), P = te(
|
|
8398
8398
|
p.value.category != null || !!p.value.code || !!p.value.orderFrom
|
|
8399
8399
|
);
|
|
8400
|
-
function
|
|
8400
|
+
function N(f) {
|
|
8401
8401
|
f || (p.value = {
|
|
8402
8402
|
...p.value,
|
|
8403
8403
|
name: void 0,
|
|
@@ -8459,7 +8459,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8459
8459
|
} : void 0
|
|
8460
8460
|
});
|
|
8461
8461
|
}
|
|
8462
|
-
const
|
|
8462
|
+
const Ae = te(
|
|
8463
8463
|
p.value.takeawayUsed != null || (((ct = p.value.variant) == null ? void 0 : ct.variantCombinations) || []).some((f) => f.takeawayUsed != null) || !1
|
|
8464
8464
|
);
|
|
8465
8465
|
function $(f) {
|
|
@@ -8503,7 +8503,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8503
8503
|
Fe(() => {
|
|
8504
8504
|
var f;
|
|
8505
8505
|
return (f = p.value.price) == null ? void 0 : f.amount;
|
|
8506
|
-
},
|
|
8506
|
+
}, R, { deep: !0 }), Fe(
|
|
8507
8507
|
() => m.value,
|
|
8508
8508
|
(f) => {
|
|
8509
8509
|
f && (p.value = n.initialForm ? ge(n.initialForm) : {
|
|
@@ -8513,7 +8513,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8513
8513
|
}
|
|
8514
8514
|
), $t(() => {
|
|
8515
8515
|
var f, h;
|
|
8516
|
-
|
|
8516
|
+
R();
|
|
8517
8517
|
try {
|
|
8518
8518
|
Ge.startSession({
|
|
8519
8519
|
userId: ((f = o.sessionUser.value) == null ? void 0 : f.id) || "",
|
|
@@ -8536,7 +8536,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8536
8536
|
console.log(f);
|
|
8537
8537
|
}
|
|
8538
8538
|
});
|
|
8539
|
-
const ae =
|
|
8539
|
+
const ae = Ar();
|
|
8540
8540
|
$t(() => {
|
|
8541
8541
|
ae.isUpdatingItem || (ae.isUpdatingItem = !0, ae.storedCatalogId = a.state.currentCatalogId, ae.storedSchedulerId = a.state.currentSchedulerId);
|
|
8542
8542
|
});
|
|
@@ -8545,7 +8545,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8545
8545
|
}
|
|
8546
8546
|
function Se() {
|
|
8547
8547
|
M.value && [
|
|
8548
|
-
[
|
|
8548
|
+
[P.value, N],
|
|
8549
8549
|
[C.value, T]
|
|
8550
8550
|
].forEach(([h, L]) => {
|
|
8551
8551
|
h || L(!1);
|
|
@@ -8556,10 +8556,10 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8556
8556
|
}
|
|
8557
8557
|
const { isAtMost: bt } = _o(), Lt = te(null), qt = Ba(Lt);
|
|
8558
8558
|
return (f, h) => (U(), re(Ue, null, [
|
|
8559
|
-
|
|
8559
|
+
Re(f.$slots, "trigger", Sa(Ca({
|
|
8560
8560
|
trigger: d
|
|
8561
8561
|
}))),
|
|
8562
|
-
|
|
8562
|
+
A(Va, {
|
|
8563
8563
|
title: l.value,
|
|
8564
8564
|
show: m.value,
|
|
8565
8565
|
"primary-action": {
|
|
@@ -8575,7 +8575,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8575
8575
|
onOnCancel: je
|
|
8576
8576
|
}, {
|
|
8577
8577
|
"append-title": G(() => [
|
|
8578
|
-
b(bt)("sm") ? (U(), Z(
|
|
8578
|
+
b(bt)("sm") ? (U(), Z(Ai, {
|
|
8579
8579
|
key: 0,
|
|
8580
8580
|
variant: "dialog",
|
|
8581
8581
|
title: I.value.title,
|
|
@@ -8585,10 +8585,10 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8585
8585
|
default: G(() => {
|
|
8586
8586
|
var L, Y;
|
|
8587
8587
|
return [
|
|
8588
|
-
b(bt)("sm") ? se("", !0) : (U(), Z(
|
|
8588
|
+
b(bt)("sm") ? se("", !0) : (U(), Z(Ai, {
|
|
8589
8589
|
key: 0,
|
|
8590
8590
|
class: "fixed",
|
|
8591
|
-
style:
|
|
8591
|
+
style: Ra({
|
|
8592
8592
|
top: "85px",
|
|
8593
8593
|
left: b(qt).right + "px"
|
|
8594
8594
|
}),
|
|
@@ -8596,7 +8596,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8596
8596
|
title: I.value.title,
|
|
8597
8597
|
items: I.value.items
|
|
8598
8598
|
}, null, 8, ["style", "title", "items"])),
|
|
8599
|
-
B("div",
|
|
8599
|
+
B("div", Nd, [
|
|
8600
8600
|
B("div", {
|
|
8601
8601
|
ref_key: "formWrapper",
|
|
8602
8602
|
ref: Lt,
|
|
@@ -8607,19 +8607,19 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8607
8607
|
"linked-status": k.value,
|
|
8608
8608
|
"onUpdate:catalogAndScheduler": y
|
|
8609
8609
|
}, null, 8, ["linked-status"])) : se("", !0),
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
toggle:
|
|
8610
|
+
A(za, { "menu-store": b(a) }, null, 8, ["menu-store"]),
|
|
8611
|
+
A(Tt, {
|
|
8612
|
+
toggle: P.value,
|
|
8613
8613
|
"onUpdate:toggle": [
|
|
8614
|
-
h[1] || (h[1] = (X) =>
|
|
8615
|
-
h[2] || (h[2] = (X) =>
|
|
8614
|
+
h[1] || (h[1] = (X) => P.value = X),
|
|
8615
|
+
h[2] || (h[2] = (X) => N(X))
|
|
8616
8616
|
],
|
|
8617
8617
|
disabled: !M.value,
|
|
8618
8618
|
description: b(r)("menu.product.form.sections.general.description"),
|
|
8619
8619
|
title: b(r)("menu.product.form.sections.general.title")
|
|
8620
8620
|
}, {
|
|
8621
8621
|
default: G(() => [
|
|
8622
|
-
|
|
8622
|
+
A(tc, {
|
|
8623
8623
|
fallback: c.value,
|
|
8624
8624
|
form: p.value,
|
|
8625
8625
|
"is-addon": O.value,
|
|
@@ -8633,14 +8633,14 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8633
8633
|
]),
|
|
8634
8634
|
_: 1
|
|
8635
8635
|
}, 8, ["toggle", "disabled", "description", "title"]),
|
|
8636
|
-
M.value ? se("", !0) : (U(), re("div",
|
|
8636
|
+
M.value ? se("", !0) : (U(), re("div", Pd)),
|
|
8637
8637
|
w.value ? (U(), Z(lt, {
|
|
8638
8638
|
key: 2,
|
|
8639
8639
|
title: b(r)("menu.product.form.sections.tagging.title"),
|
|
8640
8640
|
"sub-title": b(r)("menu.product.form.sections.tagging.subtitle")
|
|
8641
8641
|
}, {
|
|
8642
8642
|
default: G(() => [
|
|
8643
|
-
|
|
8643
|
+
A(b(vo), {
|
|
8644
8644
|
entity: "item",
|
|
8645
8645
|
"model-value": p.value.customAttributes || {},
|
|
8646
8646
|
"onUpdate:modelValue": h[3] || (h[3] = (X) => E("customAttributes", X)),
|
|
@@ -8650,7 +8650,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8650
8650
|
_: 1
|
|
8651
8651
|
}, 8, ["title", "sub-title"])) : se("", !0),
|
|
8652
8652
|
w.value ? (U(), re("div", Fd)) : se("", !0),
|
|
8653
|
-
|
|
8653
|
+
A(Tt, {
|
|
8654
8654
|
toggle: C.value,
|
|
8655
8655
|
"onUpdate:toggle": [
|
|
8656
8656
|
h[4] || (h[4] = (X) => C.value = X),
|
|
@@ -8661,7 +8661,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8661
8661
|
title: b(r)("menu.product.form.sections.price.title")
|
|
8662
8662
|
}, {
|
|
8663
8663
|
default: G(() => [
|
|
8664
|
-
|
|
8664
|
+
A(rd, {
|
|
8665
8665
|
fallback: c.value,
|
|
8666
8666
|
form: p.value,
|
|
8667
8667
|
"is-addon": O.value,
|
|
@@ -8684,7 +8684,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8684
8684
|
title: "Update print"
|
|
8685
8685
|
}, {
|
|
8686
8686
|
default: G(() => [
|
|
8687
|
-
|
|
8687
|
+
A(gd, {
|
|
8688
8688
|
fallback: c.value,
|
|
8689
8689
|
form: p.value,
|
|
8690
8690
|
"full-combinations": g.value,
|
|
@@ -8697,7 +8697,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8697
8697
|
_: 1
|
|
8698
8698
|
}, 8, ["toggle"])) : se("", !0),
|
|
8699
8699
|
M.value ? se("", !0) : (U(), re("div", xd)),
|
|
8700
|
-
|
|
8700
|
+
A(Tt, {
|
|
8701
8701
|
toggle: V.value,
|
|
8702
8702
|
"onUpdate:toggle": [
|
|
8703
8703
|
h[10] || (h[10] = (X) => V.value = X),
|
|
@@ -8708,7 +8708,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8708
8708
|
title: b(r)("menu.product.form.sections.variant.title")
|
|
8709
8709
|
}, {
|
|
8710
8710
|
default: G(() => [
|
|
8711
|
-
|
|
8711
|
+
A(Dd, {
|
|
8712
8712
|
fallback: c.value,
|
|
8713
8713
|
form: p.value,
|
|
8714
8714
|
"full-combinations": g.value,
|
|
@@ -8733,7 +8733,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8733
8733
|
title: "Update group"
|
|
8734
8734
|
}, {
|
|
8735
8735
|
default: G(() => [
|
|
8736
|
-
|
|
8736
|
+
A(Gc, {
|
|
8737
8737
|
fallback: c.value,
|
|
8738
8738
|
form: p.value,
|
|
8739
8739
|
"full-combinations": g.value,
|
|
@@ -8758,7 +8758,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8758
8758
|
title: b(r)("menu.product.form.sections.inventory.title")
|
|
8759
8759
|
}, {
|
|
8760
8760
|
default: G(() => [
|
|
8761
|
-
|
|
8761
|
+
A(jc, {
|
|
8762
8762
|
fallback: c.value,
|
|
8763
8763
|
form: p.value,
|
|
8764
8764
|
"full-combinations": g.value,
|
|
@@ -8773,9 +8773,9 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8773
8773
|
s.value.takeaway(p.value.category ?? ((L = c.value) == null ? void 0 : L.category)) && !M.value ? (U(), re("div", zd)) : se("", !0),
|
|
8774
8774
|
s.value.takeaway(p.value.category ?? ((Y = c.value) == null ? void 0 : Y.category)) ? (U(), Z(Tt, {
|
|
8775
8775
|
key: 12,
|
|
8776
|
-
toggle:
|
|
8776
|
+
toggle: Ae.value,
|
|
8777
8777
|
"onUpdate:toggle": [
|
|
8778
|
-
h[19] || (h[19] = (X) =>
|
|
8778
|
+
h[19] || (h[19] = (X) => Ae.value = X),
|
|
8779
8779
|
h[20] || (h[20] = (X) => $(X))
|
|
8780
8780
|
],
|
|
8781
8781
|
disabled: !M.value,
|
|
@@ -8783,7 +8783,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8783
8783
|
title: b(r)("menu.product.form.sections.takeaway.title")
|
|
8784
8784
|
}, {
|
|
8785
8785
|
default: G(() => [
|
|
8786
|
-
|
|
8786
|
+
A(_d, {
|
|
8787
8787
|
fallback: c.value,
|
|
8788
8788
|
form: p.value,
|
|
8789
8789
|
"full-combinations": g.value,
|
|
@@ -8809,7 +8809,7 @@ function pa(e, t) {
|
|
|
8809
8809
|
var o, r, l, s;
|
|
8810
8810
|
const n = (o = t.groups) == null ? void 0 : o.reduce((u, m) => {
|
|
8811
8811
|
const d = e.groups.find((p) => p._id === m._id);
|
|
8812
|
-
return
|
|
8812
|
+
return Rn(e.items, d.items) === ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC && u.push(d), u;
|
|
8813
8813
|
}, []);
|
|
8814
8814
|
if (!(n != null && n.length)) return t;
|
|
8815
8815
|
const i = n.map((u) => u._id);
|
|
@@ -8920,8 +8920,8 @@ const ki = mo("item-manager", () => {
|
|
|
8920
8920
|
categoryId: w,
|
|
8921
8921
|
"onSubmit:form": async (S, I) => {
|
|
8922
8922
|
S.inventoryBindings ?? (S.inventoryBindings = []), S.inventoryBindings.length === 0 && (S.inventoryBindings = null);
|
|
8923
|
-
const
|
|
8924
|
-
await x(S, Ve.F_OPERATION_TYPE.create,
|
|
8923
|
+
const P = Si();
|
|
8924
|
+
await x(S, Ve.F_OPERATION_TYPE.create, P, I);
|
|
8925
8925
|
}
|
|
8926
8926
|
});
|
|
8927
8927
|
}
|
|
@@ -8942,9 +8942,9 @@ const ki = mo("item-manager", () => {
|
|
|
8942
8942
|
});
|
|
8943
8943
|
}
|
|
8944
8944
|
async function m(w) {
|
|
8945
|
-
var
|
|
8946
|
-
const x = e.currentCatalog, S = e.state.currentSchedulerId, I = x.override.scheduler[S] ?? {},
|
|
8947
|
-
await u(w,
|
|
8945
|
+
var N;
|
|
8946
|
+
const x = e.currentCatalog, S = e.state.currentSchedulerId, I = x.override.scheduler[S] ?? {}, P = (N = I == null ? void 0 : I.items) == null ? void 0 : N.filter((D) => D._id === w._id);
|
|
8947
|
+
await u(w, P, async (D) => {
|
|
8948
8948
|
const C = D.modules.catalog.find(
|
|
8949
8949
|
(T) => T._id === x._id
|
|
8950
8950
|
);
|
|
@@ -8955,7 +8955,7 @@ const ki = mo("item-manager", () => {
|
|
|
8955
8955
|
const x = e.currentCatalog;
|
|
8956
8956
|
await u(w, x.override.items[w._id], async (S) => {
|
|
8957
8957
|
const I = S.modules.catalog.find(
|
|
8958
|
-
(
|
|
8958
|
+
(P) => P._id === x._id
|
|
8959
8959
|
);
|
|
8960
8960
|
await new ft(I, e, a.updateMenu, n).update();
|
|
8961
8961
|
});
|
|
@@ -8965,15 +8965,15 @@ const ki = mo("item-manager", () => {
|
|
|
8965
8965
|
(I) => I._id === e.state.currentSchedulerId
|
|
8966
8966
|
), S = x.items.filter((I) => I._id === w._id);
|
|
8967
8967
|
await u(w, S, async (I) => {
|
|
8968
|
-
const
|
|
8969
|
-
(
|
|
8968
|
+
const P = I.modules.scheduler.find(
|
|
8969
|
+
(N) => N._id === x._id
|
|
8970
8970
|
);
|
|
8971
|
-
await new _n(
|
|
8971
|
+
await new _n(P, e, a.updateMenu, n).update();
|
|
8972
8972
|
});
|
|
8973
8973
|
}
|
|
8974
8974
|
async function p(w) {
|
|
8975
|
-
var
|
|
8976
|
-
const x = e.state.currentSchedulerId, S = ge(e.currentCatalog), I = (
|
|
8975
|
+
var P, N;
|
|
8976
|
+
const x = e.state.currentSchedulerId, S = ge(e.currentCatalog), I = (N = ((P = S.override.scheduler[x]) == null ? void 0 : P.items) || []) == null ? void 0 : N.reduce((D, C) => {
|
|
8977
8977
|
if (C.combinationKey) return [...D, C];
|
|
8978
8978
|
const T = w.find((V) => V._id === C._id);
|
|
8979
8979
|
return T ? [...D, { ...C, price: T.price }] : [...D, C];
|
|
@@ -8988,14 +8988,14 @@ const ki = mo("item-manager", () => {
|
|
|
8988
8988
|
}, await new ft(S, e, a.updateMenu, n).update();
|
|
8989
8989
|
}
|
|
8990
8990
|
async function k(w) {
|
|
8991
|
-
var
|
|
8992
|
-
const x = ge(e.currentCatalog), S = (
|
|
8993
|
-
(
|
|
8991
|
+
var P;
|
|
8992
|
+
const x = ge(e.currentCatalog), S = (P = Object.entries(x.override.items)) == null ? void 0 : P.reduce(
|
|
8993
|
+
(N, [D, C]) => {
|
|
8994
8994
|
const T = w.find((j) => j._id === D);
|
|
8995
8995
|
if (!T)
|
|
8996
|
-
return
|
|
8996
|
+
return N[D] = C, N;
|
|
8997
8997
|
const V = C.find((j) => !j.combinationKey);
|
|
8998
|
-
return
|
|
8998
|
+
return N[D] = [
|
|
8999
8999
|
...C.filter((j) => !!j.combinationKey),
|
|
9000
9000
|
{
|
|
9001
9001
|
...V,
|
|
@@ -9004,7 +9004,7 @@ const ki = mo("item-manager", () => {
|
|
|
9004
9004
|
price: T.price,
|
|
9005
9005
|
orderFrom: T.orderFrom ?? V.orderFrom
|
|
9006
9006
|
}
|
|
9007
|
-
],
|
|
9007
|
+
], N;
|
|
9008
9008
|
},
|
|
9009
9009
|
{}
|
|
9010
9010
|
), { updateMenu: I } = a;
|
|
@@ -9022,10 +9022,10 @@ const ki = mo("item-manager", () => {
|
|
|
9022
9022
|
).update();
|
|
9023
9023
|
}
|
|
9024
9024
|
async function _(w) {
|
|
9025
|
-
const x = ge(e.currentScheduler), S = x.items.reduce((I,
|
|
9026
|
-
if (
|
|
9027
|
-
const
|
|
9028
|
-
return
|
|
9025
|
+
const x = ge(e.currentScheduler), S = x.items.reduce((I, P) => {
|
|
9026
|
+
if (P.combinationKey) return [...I, P];
|
|
9027
|
+
const N = w.find((D) => D._id === P._id);
|
|
9028
|
+
return N ? [...I, { ...P, price: N.price }] : [...I, P];
|
|
9029
9029
|
}, []);
|
|
9030
9030
|
await new _n(
|
|
9031
9031
|
{
|
|
@@ -9038,18 +9038,18 @@ const ki = mo("item-manager", () => {
|
|
|
9038
9038
|
).update();
|
|
9039
9039
|
}
|
|
9040
9040
|
async function y(w) {
|
|
9041
|
-
const x = w.reduce((I,
|
|
9042
|
-
const
|
|
9043
|
-
return
|
|
9044
|
-
...
|
|
9045
|
-
code:
|
|
9046
|
-
name:
|
|
9047
|
-
price:
|
|
9048
|
-
orderFrom:
|
|
9049
|
-
taxes:
|
|
9050
|
-
category:
|
|
9051
|
-
position:
|
|
9052
|
-
additionalCategories:
|
|
9041
|
+
const x = w.reduce((I, P) => {
|
|
9042
|
+
const N = e.items.find((D) => D._id === P._id);
|
|
9043
|
+
return N && I.push({
|
|
9044
|
+
...N,
|
|
9045
|
+
code: P.code ?? N.code,
|
|
9046
|
+
name: P.name || N.name,
|
|
9047
|
+
price: P.price ?? N.price,
|
|
9048
|
+
orderFrom: P.orderFrom ?? N.orderFrom,
|
|
9049
|
+
taxes: P.taxes ?? N.taxes,
|
|
9050
|
+
category: P.category === void 0 ? N.category : P.category,
|
|
9051
|
+
position: P.position ?? N.position,
|
|
9052
|
+
additionalCategories: P.additionalCategories ?? N.additionalCategories
|
|
9053
9053
|
}), I;
|
|
9054
9054
|
}, []), { updateMenu: S } = a;
|
|
9055
9055
|
await S(
|
|
@@ -9067,8 +9067,8 @@ const ki = mo("item-manager", () => {
|
|
|
9067
9067
|
initialForm: w,
|
|
9068
9068
|
action: "update",
|
|
9069
9069
|
"onSubmit:form": async (S, I) => {
|
|
9070
|
-
const
|
|
9071
|
-
S.inventoryBindings ?? (S.inventoryBindings = []), S.inventoryBindings.length === 0 && (S.inventoryBindings = null), await x(S, Ve.F_OPERATION_TYPE.update,
|
|
9070
|
+
const P = Si(w._id);
|
|
9071
|
+
S.inventoryBindings ?? (S.inventoryBindings = []), S.inventoryBindings.length === 0 && (S.inventoryBindings = null), await x(S, Ve.F_OPERATION_TYPE.update, P, I);
|
|
9072
9072
|
}
|
|
9073
9073
|
});
|
|
9074
9074
|
}
|
|
@@ -9082,7 +9082,7 @@ const ki = mo("item-manager", () => {
|
|
|
9082
9082
|
e.currentScheduler ? await _(w) : await y(w)
|
|
9083
9083
|
);
|
|
9084
9084
|
}
|
|
9085
|
-
function
|
|
9085
|
+
function R(w) {
|
|
9086
9086
|
const { updateMenu: x } = a, S = w.length > 1 ? `${w.length} products` : w[0].name;
|
|
9087
9087
|
n.open({
|
|
9088
9088
|
title: r("menu.common.dialog.remove.product.title"),
|
|
@@ -9090,7 +9090,7 @@ const ki = mo("item-manager", () => {
|
|
|
9090
9090
|
primaryActions: {
|
|
9091
9091
|
text: r("menu.common.actions.remove"),
|
|
9092
9092
|
close: !0,
|
|
9093
|
-
variant:
|
|
9093
|
+
variant: Rt.Destructive
|
|
9094
9094
|
},
|
|
9095
9095
|
secondaryActions: {
|
|
9096
9096
|
text: r("menu.common.actions.cancel"),
|
|
@@ -9125,7 +9125,7 @@ const ki = mo("item-manager", () => {
|
|
|
9125
9125
|
e,
|
|
9126
9126
|
a.updateMenu,
|
|
9127
9127
|
n
|
|
9128
|
-
).unlinkProduct(w.map((x) => x._id)) :
|
|
9128
|
+
).unlinkProduct(w.map((x) => x._id)) : R(w);
|
|
9129
9129
|
}
|
|
9130
9130
|
async function O(w) {
|
|
9131
9131
|
const { updateMenu: x } = a;
|
|
@@ -9151,8 +9151,8 @@ export {
|
|
|
9151
9151
|
co as A,
|
|
9152
9152
|
$u as C,
|
|
9153
9153
|
cc as F,
|
|
9154
|
-
|
|
9155
|
-
|
|
9154
|
+
Nr as I,
|
|
9155
|
+
Ro as M,
|
|
9156
9156
|
dd as P,
|
|
9157
9157
|
Ge as R,
|
|
9158
9158
|
Lu as S,
|
|
@@ -9167,10 +9167,10 @@ export {
|
|
|
9167
9167
|
Gd as g,
|
|
9168
9168
|
Co as h,
|
|
9169
9169
|
Em as i,
|
|
9170
|
-
|
|
9170
|
+
Rn as j,
|
|
9171
9171
|
pa as k,
|
|
9172
9172
|
ua as l,
|
|
9173
|
-
|
|
9173
|
+
Ao as m,
|
|
9174
9174
|
jo as n,
|
|
9175
9175
|
Hd as o,
|
|
9176
9176
|
ca as p,
|