@feedmepos/mf-menu 0.31.72 → 0.31.74
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-CvauiBxh.js → App-B6Hn5Wwr.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BK9XcgvQ.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CqGU3bJQ.js} +3 -3
- package/dist/{Catalog-CBdU6H-7.js → Catalog-D-2hDU2I.js} +6 -6
- package/dist/{Category-DkKEXvEF.js → Category-DjTbuAvE.js} +4 -4
- package/dist/{Category-BFO9_FCp.js → Category-hSOIgBkH.js} +6 -6
- package/dist/{CookingGuide-E34vwLgw.js → CookingGuide-D7ruB7eP.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DlnAxQwE.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-mxVSGXAz.js} +1 -1
- package/dist/{Group-Bcc1Z7D-.js → Group-CjlhbhDV.js} +1 -1
- package/dist/{Group-CpSycfFA.js → Group-evJZbgZn.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CWIHfDqh.js → Group.vue_vue_type_script_setup_true_lang-DiKraPiw.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B8tJzkEO.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BYku8MAc.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BGWmkL9R.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DScxctPb.js} +7 -7
- package/dist/{Ingredient-0Cg2IcHV.js → Ingredient-jNDx1pUw.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Dztd7mAs.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CuM_k-C3.js} +2 -2
- package/dist/{LinkProductSideSheet-CiRZO3uN.js → LinkProductSideSheet-CAPIdf6P.js} +3 -3
- package/dist/{MenuSetting-Bv4sWdlj.js → MenuSetting-C2MDgy57.js} +5 -5
- package/dist/{PrintRoute-DP-fjMrF.js → PrintRoute-SmWbKr9Y.js} +4 -4
- package/dist/{Product-DgZcdRkv.js → Product-BCm49V9T.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CpthNypU.js → Product.vue_vue_type_script_setup_true_lang-CTOjLqbF.js} +13 -13
- package/dist/{ProductInternalTools-CLmYNGLn.js → ProductInternalTools-DGsvvnIs.js} +5 -5
- package/dist/{Products-KrRu9cnx.js → Products-D4qeSEfO.js} +11 -11
- package/dist/{Publish-C9Wi7dG1.js → Publish-3A3EEQ9x.js} +3 -3
- package/dist/{Recipe-BPdgYfvy.js → Recipe-CS7TZGA6.js} +4 -4
- package/dist/{Scheduler-C9LCR2Oj.js → Scheduler-BIwTUJMJ.js} +3 -3
- package/dist/{ServingSequence-D-OBo-oY.js → ServingSequence-C0N8wJfr.js} +3 -3
- package/dist/{Setting-qITT89Lg.js → Setting-fA6tvQK2.js} +5 -5
- package/dist/{Subcategory-kl6ncKqB.js → Subcategory-BAFAmflQ.js} +4 -4
- package/dist/{Takeaway-BOxto2HZ.js → Takeaway-CLZouw1j.js} +1 -1
- package/dist/{Takeaway-D9GOXVdh.js → Takeaway-D4aO8zzN.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CbhZLN-r.js → Takeaway.vue_vue_type_script_setup_true_lang-1oN-i9bo.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CH9jzjP0.js → Thumbnail.vue_vue_type_script_setup_true_lang-Dwol_Lkd.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C0NgcFQK.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CabQS55D.js} +1092 -1086
- package/dist/{Unit-Dr0n8Nl-.js → Unit-ByqUb4Po.js} +2 -2
- package/dist/{Variant-BVvjuGqK.js → Variant-BmqrUfen.js} +3 -3
- package/dist/{_id_-DqqSN5Lt.js → _id_-RUWzOB0B.js} +10 -10
- package/dist/{app-B3_2cau3.js → app-B1N2F0j8.js} +1 -1
- package/dist/{app-DJ-rQRBU.js → app-CHpw_EM1.js} +471 -468
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +1626 -0
- 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/composable/linkProducts.d.ts +2 -2
- 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/helper/menuImport.d.ts +6 -6
- 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-CFdi7K3K.js +13 -0
- package/dist/assets/override-menu-CXOY8i3w.js +13 -0
- package/dist/assets/validate-menu-DLlrsx2f.js +13 -0
- package/dist/{catalog-DeBJkQdk.js → catalog-CarmtheV.js} +1 -1
- package/dist/{catalogSetting-CkZSHD-W.js → catalogSetting-BqrTpBP8.js} +1 -1
- package/dist/{category-CJKIi291.js → category-5R83ypNS.js} +1 -1
- package/dist/{currency-NcUCHGGN.js → currency-CUl4r9rT.js} +1 -1
- package/dist/{customAttributes-Cf1e7I1m.js → customAttributes-BkqKM_KW.js} +1 -1
- package/dist/{index-DQqxmq0e.js → index-DAWSNP3G.js} +3 -3
- package/dist/{index-EBL2mPva.js → index-DUfYYdZ-.js} +1 -1
- package/dist/{index-B7ZCIQp2.js → index-DlwLw-BQ.js} +4 -4
- package/dist/{index-BaeTP7Ku.js → index-Ttqt4iFV.js} +1 -1
- package/dist/{item-BsvsZcce.js → item-B0UPYxsB.js} +601 -595
- package/dist/{iteration-CxQwvFbX.js → iteration-CfmAZiOO.js} +1 -1
- package/dist/{jszip.min-DoZyvEEd.js → jszip.min-zROpry0S.js} +2 -2
- package/dist/{menu-Dlsf52hs.js → menu-DAac726D.js} +19707 -19420
- package/dist/{menu-zMO5M1Ur.js → menu-DpYo8dYR.js} +1 -1
- package/dist/{menuV2-Ss7NpjF_.js → menuV2-DZj_FPqR.js} +82 -82
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-Dhh2TKAL.js → priceTier-BvDLl8v2.js} +1 -1
- package/dist/{scheduler-CA9RiMAg.js → scheduler-pNUXG6En.js} +4 -4
- package/dist/{subcategory-tJjY3seO.js → subcategory-DCDCQnAX.js} +2 -2
- package/dist/{toExcel-C6zcyUsq.js → toExcel-DqMa1Hn8.js} +2 -2
- package/dist/{unit-D4M4cm2W.js → unit-CuCXoWPG.js} +2 -2
- package/package.json +4 -4
- package/dist/assets/linked-status-qkReSi42.js +0 -13
- package/dist/assets/override-menu-Dyv1SsFk.js +0 -13
- package/dist/assets/validate-menu-DpF5os-S.js +0 -13
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { defineStore as mo } from "pinia";
|
|
2
|
-
import { createElementBlock as re, openBlock as x, createElementVNode as B, defineComponent as
|
|
3
|
-
import { J as ze, z as q, ag as Ca, ai as Aa, X as Ia, H as be, B as Je, A as Ge, T as go, u as Me, I as at, D as St, O as Ot, P as Ta, Q as Ma, R as Da, U as Fn, aa as Fa, M as Na, K as Si } from "./menu-
|
|
2
|
+
import { createElementBlock as re, openBlock as x, createElementVNode as B, defineComponent as ve, resolveComponent as K, createBlock as J, createVNode as R, toDisplayString as Ee, Fragment as Ve, renderList as rt, h as Fe, ref as ie, computed as z, watch as Le, unref as y, renderSlot as Ce, withCtx as W, createCommentVNode as se, Transition as ha, normalizeClass as Ke, resolveDynamicComponent as yn, withDirectives as Xt, vShow as kn, mergeProps as po, withModifiers as Sn, createTextVNode as Bn, 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 Oa, normalizeStyle as Ra } from "vue";
|
|
3
|
+
import { J as ze, z as q, ag as Ca, ai as Aa, X as Ia, H as be, B as Je, A as Ge, T as go, u as Me, I as at, D as St, O as Ot, P as Ta, Q as Ma, R as Da, U as Fn, aa as Fa, M as Na, K as Si } from "./menu-DAac726D.js";
|
|
4
4
|
import { useI18n as Se, useCoreStore as rn, CustomAttributesForm as vo } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as lt, useSnackbar as Qe, components as Be, FmButtonColorThemeVariant as ft, FmButtonVariant as Rt, useBreakpoints as _o, useDialogChild as bo } from "@feedmepos/ui-library";
|
|
6
|
-
import { C as ht } from "./catalog-
|
|
6
|
+
import { C as ht } from "./catalog-CarmtheV.js";
|
|
7
7
|
import { c as Pa } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
8
8
|
import { a as Oi, p as La, _ as yo } from "./tooltip-CQW9YRO5.js";
|
|
9
|
-
import { _ as Ct, L as xa } from "./LinkProductSideSheet-
|
|
10
|
-
import { _ as ut, a as bt, b as Ua } from "./customAttributes-
|
|
11
|
-
import { s as Hn, F as Va, _ as za } from "./index-
|
|
12
|
-
import { I as $a, a as Ga } from "./app-
|
|
13
|
-
import { u as Ba } from "./app-
|
|
14
|
-
import { g as wo, b as Wa, c as Ha, a as ja, m as Ka } from "./menuV2-
|
|
15
|
-
import { u as Ya } from "./subcategory-
|
|
9
|
+
import { _ as Ct, L as xa } from "./LinkProductSideSheet-CAPIdf6P.js";
|
|
10
|
+
import { _ as ut, a as bt, b as Ua } from "./customAttributes-BkqKM_KW.js";
|
|
11
|
+
import { s as Hn, F as Va, _ as za } from "./index-DUfYYdZ-.js";
|
|
12
|
+
import { I as $a, a as Ga } from "./app-CHpw_EM1.js";
|
|
13
|
+
import { u as Ba } from "./app-B1N2F0j8.js";
|
|
14
|
+
import { g as wo, b as Wa, c as Ha, a as ja, m as Ka } from "./menuV2-DZj_FPqR.js";
|
|
15
|
+
import { u as Ya } from "./subcategory-DCDCQnAX.js";
|
|
16
16
|
import "@vue/devtools-api";
|
|
17
|
-
import { u as Xa } from "./category-
|
|
17
|
+
import { u as Xa } from "./category-5R83ypNS.js";
|
|
18
18
|
import { u as ui } from "./discardConfirm-BHni0LNu.js";
|
|
19
|
-
import { _ as Ft, l as jn, T as qa } from "./index-
|
|
19
|
+
import { _ as Ft, l as jn, T as qa } from "./index-DlwLw-BQ.js";
|
|
20
20
|
import { useInventoryStore as Eo, InventoryBindingForm as Ja, InventoryBindingSummary as Za } from "@feedmepos/mf-inventory-portal";
|
|
21
21
|
import { c as sn } from "./check-C9mY6LiX.js";
|
|
22
22
|
import { c as Qa } from "./object-DVUNCr7w.js";
|
|
23
|
-
import { f as Gt } from "./currency-
|
|
24
|
-
import { u as ko } from "./priceTier-
|
|
23
|
+
import { f as Gt } from "./currency-CUl4r9rT.js";
|
|
24
|
+
import { u as ko } from "./priceTier-BvDLl8v2.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 Ri } from "./index-
|
|
28
|
+
import { _ as nr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CqGU3bJQ.js";
|
|
29
|
+
import { V as Ri } from "./index-DAWSNP3G.js";
|
|
30
30
|
class vn {
|
|
31
31
|
constructor(t, n, i, a) {
|
|
32
32
|
this.scheduler = t, this.menuStore = n, this.updateMenu = i, this.dialog = a;
|
|
@@ -528,7 +528,7 @@ function sr(e, t) {
|
|
|
528
528
|
const lr = /* @__PURE__ */ Ct(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" }, Ci = /* @__PURE__ */
|
|
531
|
+
}, cr = { class: "fm-typo-en-title-sm-600" }, Ci = /* @__PURE__ */ ve({
|
|
532
532
|
__name: "Summary",
|
|
533
533
|
props: {
|
|
534
534
|
title: {},
|
|
@@ -568,14 +568,14 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
568
568
|
}));
|
|
569
569
|
};
|
|
570
570
|
}
|
|
571
|
-
}), dr = { class: "space-y-24 p-16 border-fm-color-neutral-gray-200 fm-corner-radius-lg border" }, mr = { class: "space-y-4" }, pr = { class: "fm-typo-en-title-sm-600" }, fr = { class: "text-fm-color-typo-secondary" }, hr = { class: "flex gap-16" }, gr = { class: "flex-1" }, vr = { class: "flex-1" }, _r = /* @__PURE__ */
|
|
571
|
+
}), dr = { class: "space-y-24 p-16 border-fm-color-neutral-gray-200 fm-corner-radius-lg border" }, mr = { class: "space-y-4" }, pr = { class: "fm-typo-en-title-sm-600" }, fr = { class: "text-fm-color-typo-secondary" }, hr = { class: "flex gap-16" }, gr = { class: "flex-1" }, vr = { class: "flex-1" }, _r = /* @__PURE__ */ ve({
|
|
572
572
|
__name: "CatalogSchedulerSelector",
|
|
573
573
|
props: {
|
|
574
574
|
linkedStatus: {}
|
|
575
575
|
},
|
|
576
576
|
emits: ["update:catalogAndScheduler"],
|
|
577
577
|
setup(e, { emit: t }) {
|
|
578
|
-
const n = e, i = t, { t: a } = Se(), o = Me(), r =
|
|
578
|
+
const n = e, i = t, { t: a } = Se(), o = Me(), r = ie(o.state.currentCatalogId || null), l = z(() => {
|
|
579
579
|
const c = Object.keys(n.linkedStatus.catalogs).map((p) => {
|
|
580
580
|
var b;
|
|
581
581
|
return {
|
|
@@ -590,7 +590,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
590
590
|
},
|
|
591
591
|
...c
|
|
592
592
|
];
|
|
593
|
-
}), s =
|
|
593
|
+
}), s = ie(o.state.currentSchedulerId || null), u = () => r.value ? n.linkedStatus.catalogs[r.value].schedulers : n.linkedStatus.schedulers, m = z(() => {
|
|
594
594
|
const p = u().map((b) => {
|
|
595
595
|
var _;
|
|
596
596
|
return {
|
|
@@ -648,7 +648,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
648
648
|
}), br = { class: "flex items-center justify-between" }, yr = { class: "space-y-4 flex-1" }, wr = { class: "fm-typo-en-title-sm-600" }, Er = {
|
|
649
649
|
key: 0,
|
|
650
650
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
651
|
-
}, kr = { key: 0 }, Sr = /* @__PURE__ */
|
|
651
|
+
}, kr = { key: 0 }, Sr = /* @__PURE__ */ ve({
|
|
652
652
|
__name: "ToggleCard",
|
|
653
653
|
props: {
|
|
654
654
|
title: {},
|
|
@@ -697,11 +697,11 @@ function Rr(e) {
|
|
|
697
697
|
const t = Ba(), 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;
|
|
700
|
-
}), a =
|
|
700
|
+
}), a = ie(!1);
|
|
701
701
|
function o(s) {
|
|
702
702
|
a.value = s;
|
|
703
703
|
}
|
|
704
|
-
const r =
|
|
704
|
+
const r = ie(null);
|
|
705
705
|
function l(s) {
|
|
706
706
|
r.value = s;
|
|
707
707
|
}
|
|
@@ -715,7 +715,7 @@ function Rr(e) {
|
|
|
715
715
|
closeSession: (s) => (o(!1), n.closeSession(s))
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function Sm(e) {
|
|
719
719
|
We = Rr({
|
|
720
720
|
token: e,
|
|
721
721
|
url: Or.remy
|
|
@@ -751,7 +751,7 @@ async function Ir(e, t = "image.jpg", n = "image/jpeg") {
|
|
|
751
751
|
});
|
|
752
752
|
return i ? new File([i.blob], t, { type: n }) : null;
|
|
753
753
|
}
|
|
754
|
-
async function
|
|
754
|
+
async function Om(e, t, n = {}) {
|
|
755
755
|
return La({
|
|
756
756
|
items: e,
|
|
757
757
|
processor: (i) => t(i.url, i.filename),
|
|
@@ -767,7 +767,7 @@ function Dr(e, t) {
|
|
|
767
767
|
const Fr = /* @__PURE__ */ Ct(Tr, [["render", Dr]]), Nr = { class: "flex flex-col gap-4" }, Pr = { class: "fm-select__menu__wrapper" }, Lr = {
|
|
768
768
|
key: 0,
|
|
769
769
|
class: "flex flex-col gap-4 justify-center"
|
|
770
|
-
}, xr = /* @__PURE__ */
|
|
770
|
+
}, xr = /* @__PURE__ */ ve({
|
|
771
771
|
__name: "CategoriesSelector",
|
|
772
772
|
props: {
|
|
773
773
|
modelValue: {},
|
|
@@ -783,7 +783,7 @@ const Fr = /* @__PURE__ */ Ct(Tr, [["render", Dr]]), Nr = { class: "flex flex-co
|
|
|
783
783
|
},
|
|
784
784
|
emits: ["update:modelValue"],
|
|
785
785
|
setup(e, { expose: t, emit: n }) {
|
|
786
|
-
const i = e, a = n, o =
|
|
786
|
+
const i = e, a = n, o = ie(null), r = ie([]), l = (b, _) => {
|
|
787
787
|
var S;
|
|
788
788
|
if (b)
|
|
789
789
|
if (!i.multiple)
|
|
@@ -813,7 +813,7 @@ const Fr = /* @__PURE__ */ Ct(Tr, [["render", Dr]]), Nr = { class: "flex flex-co
|
|
|
813
813
|
}, m = z(() => i.items.reduce(
|
|
814
814
|
(b, _) => (b[_.value] = _, b),
|
|
815
815
|
{}
|
|
816
|
-
)), d =
|
|
816
|
+
)), d = ie(!1);
|
|
817
817
|
Le(
|
|
818
818
|
() => i.modelValue,
|
|
819
819
|
(b) => {
|
|
@@ -906,7 +906,7 @@ function Ai(e, t) {
|
|
|
906
906
|
}
|
|
907
907
|
return n;
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function me(e) {
|
|
910
910
|
for (var t = 1; t < arguments.length; t++) {
|
|
911
911
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
912
912
|
t % 2 ? Ai(Object(n), !0).forEach(function(i) {
|
|
@@ -1233,7 +1233,7 @@ function qe(e, t, n, i) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
return e;
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function pe(e) {
|
|
1237
1237
|
return e.width / e.height;
|
|
1238
1238
|
}
|
|
1239
1239
|
function Wt(e, t) {
|
|
@@ -1248,7 +1248,7 @@ function Ln(e, t) {
|
|
|
1248
1248
|
return t.minimum && e < t.minimum ? n = t.minimum : t.maximum && e > t.maximum && (n = t.maximum), n;
|
|
1249
1249
|
}
|
|
1250
1250
|
function No(e, t) {
|
|
1251
|
-
var n =
|
|
1251
|
+
var n = pe(e), i = pe(t);
|
|
1252
1252
|
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;
|
|
1253
1253
|
}
|
|
1254
1254
|
function Po(e, t) {
|
|
@@ -1287,7 +1287,7 @@ function An(e, t) {
|
|
|
1287
1287
|
}
|
|
1288
1288
|
function Ni(e) {
|
|
1289
1289
|
var t = e.size, n = e.aspectRatio, i = e.ignoreMinimum, a = e.sizeRestrictions;
|
|
1290
|
-
return !!((t.correctRatio ||
|
|
1290
|
+
return !!((t.correctRatio || pe(t) >= n.minimum && pe(t) <= n.maximum) && t.height <= a.maxHeight && t.width <= a.maxWidth && t.width && t.height && (i || t.height >= a.minHeight && t.width >= a.minWidth));
|
|
1291
1291
|
}
|
|
1292
1292
|
function Pi(e, t) {
|
|
1293
1293
|
return Math.pow(e.width - t.width, 2) + Math.pow(e.height - t.height, 2);
|
|
@@ -1329,7 +1329,7 @@ function qr(e) {
|
|
|
1329
1329
|
var o = e.stencilSize, r = e.sizeRestrictions, l = e.positionRestrictions;
|
|
1330
1330
|
e.stencilReference;
|
|
1331
1331
|
var s, u, m, d = ae({}, i), c = ae({}, a), p = ae({}, o);
|
|
1332
|
-
s =
|
|
1332
|
+
s = pe(p), u = pe(d), m === void 0 && (m = 1e-3), (s === 0 || u === 0 ? Math.abs(u - s) < m : Math.abs(u / s) < 1 + m && Math.abs(u / s) > 1 - m) || (d = ae(ae({}, d), gt({ sizeRestrictions: r, width: d.width, height: d.height, aspectRatio: { minimum: pe(p), maximum: pe(p) } })));
|
|
1333
1333
|
var b = Cn(c = qe(c, d.width * n.width / (c.width * p.width)), t({ visibleArea: c, type: "resize" }));
|
|
1334
1334
|
return b !== 1 && (c = qe(c, b), d = qe(d, b)), c = Ue(c = He(c, Bt(xe(d), xe(c))), t({ visibleArea: c, type: "move" })), { coordinates: d = Ue(d, An(st(c), l)), visibleArea: c };
|
|
1335
1335
|
}
|
|
@@ -1341,7 +1341,7 @@ function Jr(e) {
|
|
|
1341
1341
|
var l = ae({}, a), s = ae({}, o);
|
|
1342
1342
|
if (a && o && t.type !== "manipulateImage") {
|
|
1343
1343
|
var u = { width: 0, height: 0 };
|
|
1344
|
-
s.width, i.width,
|
|
1344
|
+
s.width, i.width, pe(i) > pe(l) ? (u.height = 0.8 * i.height, u.width = u.height * pe(l)) : (u.width = 0.8 * i.width, u.height = u.width * pe(l));
|
|
1345
1345
|
var m = Cn(s = qe(s, l.width * i.width / (s.width * u.width)), n({ visibleArea: s, type: "resize" }));
|
|
1346
1346
|
s = qe(s, m), m !== 1 && (u.height /= m, u.width /= m), s = Ue(s = He(s, Bt(xe(l), xe(s))), n({ visibleArea: s, type: "move" })), l = Ue(l, An(st(s), r));
|
|
1347
1347
|
}
|
|
@@ -1360,20 +1360,20 @@ function Qr(e) {
|
|
|
1360
1360
|
return { left: (n ? n.left : 0) + a.width / 2 - i.width / 2, top: (n ? n.top : 0) + a.height / 2 - i.height / 2 };
|
|
1361
1361
|
}
|
|
1362
1362
|
function es(e) {
|
|
1363
|
-
var t = e.imageSize, n = e.visibleArea, i = e.aspectRatio, a = e.sizeRestrictions, o = n || t, r = Math.min(i.maximum || 1 / 0, Math.max(i.minimum || 0,
|
|
1363
|
+
var t = e.imageSize, n = e.visibleArea, i = e.aspectRatio, a = e.sizeRestrictions, o = n || t, r = Math.min(i.maximum || 1 / 0, Math.max(i.minimum || 0, pe(o))), l = o.width < o.height ? { width: 0.8 * o.width, height: 0.8 * o.width / r } : { height: 0.8 * o.height, width: 0.8 * o.height * r };
|
|
1364
1364
|
return gt(ae(ae({}, l), { aspectRatio: i, sizeRestrictions: a }));
|
|
1365
1365
|
}
|
|
1366
1366
|
function ts(e) {
|
|
1367
1367
|
var t, n, i = e.imageSize, a = e.visibleArea, o = e.boundaries, r = e.aspectRatio, l = e.sizeRestrictions, s = e.stencilSize, u = a || i;
|
|
1368
|
-
return
|
|
1368
|
+
return pe(u) > pe(o) ? n = (t = s.height * u.height / o.height) * pe(s) : t = (n = s.width * u.width / o.width) / pe(s), gt({ width: n, height: t, aspectRatio: r, sizeRestrictions: l });
|
|
1369
1369
|
}
|
|
1370
1370
|
function ns(e) {
|
|
1371
|
-
var t = e.getAreaRestrictions, n = e.coordinates, i = e.imageSize, a =
|
|
1371
|
+
var t = e.getAreaRestrictions, n = e.coordinates, i = e.imageSize, a = pe(e.boundaries);
|
|
1372
1372
|
if (n) {
|
|
1373
|
-
var o = { height: Math.max(n.height, i.height), width: Math.max(n.width, i.width) }, r = No({ width:
|
|
1373
|
+
var o = { height: Math.max(n.height, i.height), width: Math.max(n.width, i.width) }, r = No({ width: pe(o) > a ? o.width : o.height * a, height: pe(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, st(ae({ left: 0, top: 0 }, i))), u = {};
|
|
1374
1374
|
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), Ue(l, u);
|
|
1375
1375
|
}
|
|
1376
|
-
var m =
|
|
1376
|
+
var m = pe(i);
|
|
1377
1377
|
return r = { height: m > a ? i.height : i.width / a, width: m > a ? i.height * a : i.width }, { left: i.width / 2 - r.width / 2, top: i.height / 2 - r.height / 2, width: r.width, height: r.height };
|
|
1378
1378
|
}
|
|
1379
1379
|
function dn(e, t) {
|
|
@@ -1765,7 +1765,7 @@ var pn = et("vue-preview"), $o = { props: { coordinates: { type: Object }, trans
|
|
|
1765
1765
|
return this.transitions && this.transitions.enabled && (e.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), e;
|
|
1766
1766
|
}, imageStyle: function() {
|
|
1767
1767
|
if (this.coordinates && this.image) {
|
|
1768
|
-
var e = this.coordinates.width / this.size.width, t =
|
|
1768
|
+
var e = this.coordinates.width / this.size.width, t = me(me({ rotate: 0, flip: { horizontal: !1, vertical: !1 } }, this.image.transforms), {}, { scaleX: 1 / e, scaleY: 1 / e }), n = this.imageSize.width, i = this.imageSize.height, a = Po({ width: n, height: i }, t.rotate), o = { width: "".concat(n, "px"), height: "".concat(i, "px"), left: "0px", top: "0px" }, r = { rotate: { left: (n - a.width) * t.scaleX / 2, top: (i - a.height) * t.scaleY / 2 }, scale: { left: (1 - t.scaleX) * n / 2, top: (1 - t.scaleY) * i / 2 } };
|
|
1769
1769
|
return o.transform = `translate(
|
|
1770
1770
|
`.concat(-this.coordinates.left / e - r.rotate.left - r.scale.left, "px,").concat(-this.coordinates.top / e - r.rotate.top - r.scale.top, "px) ") + Vo(t), this.transitions && this.transitions.enabled && (o.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), o;
|
|
1771
1771
|
}
|
|
@@ -1854,7 +1854,7 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1854
1854
|
o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), ot.forEach(function(O) {
|
|
1855
1855
|
u[O] || (s[O] = 0);
|
|
1856
1856
|
});
|
|
1857
|
-
var m = it(r, s = Li({ coordinates: r, directions: s, sizeRestrictions: o, positionRestrictions: a })).width, d = it(r, s).height, c = l.preserveRatio ?
|
|
1857
|
+
var m = it(r, s = Li({ coordinates: r, directions: s, sizeRestrictions: o, positionRestrictions: a })).width, d = it(r, s).height, c = l.preserveRatio ? pe(r) : Ln(m / d, i);
|
|
1858
1858
|
if (c) {
|
|
1859
1859
|
var p = l.respectDirection;
|
|
1860
1860
|
if (p || (p = r.width >= r.height || c === 1 ? "width" : "height"), p === "width") {
|
|
@@ -1872,30 +1872,30 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1872
1872
|
}
|
|
1873
1873
|
s = Li({ directions: s, coordinates: r, sizeRestrictions: o, positionRestrictions: a, preserveRatio: !0, compensate: l.compensate });
|
|
1874
1874
|
}
|
|
1875
|
-
return m = it(r, s).width, d = it(r, s).height, (c = l.preserveRatio ?
|
|
1875
|
+
return m = it(r, s).width, d = it(r, s).height, (c = l.preserveRatio ? pe(r) : Ln(m / d, i)) && Math.abs(c - m / d) > 1e-3 && ot.forEach(function(O) {
|
|
1876
1876
|
u[O] || (s[O] = 0);
|
|
1877
1877
|
}), 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 });
|
|
1878
1878
|
} }, moveAlgorithm: { type: Function, default: Jn }, initStretcher: { type: Function, default: function(e) {
|
|
1879
|
-
var t = e.stretcher, n = e.imageSize, i =
|
|
1879
|
+
var t = e.stretcher, n = e.imageSize, i = pe(n);
|
|
1880
1880
|
t.style.width = n.width + "px", t.style.height = t.clientWidth / i + "px", t.style.width = t.clientWidth + "px";
|
|
1881
1881
|
} }, fitCoordinates: { type: Function, default: function(e) {
|
|
1882
1882
|
var t = e.visibleArea, n = e.coordinates, i = e.aspectRatio, a = e.sizeRestrictions, o = e.positionRestrictions, r = ae(ae({}, n), gt({ width: n.width, height: n.height, aspectRatio: i, sizeRestrictions: { maxWidth: t.width, maxHeight: t.height, minHeight: Math.min(t.height, a.minHeight), minWidth: Math.min(t.width, a.minWidth) } }));
|
|
1883
1883
|
return r = Ue(r = He(r, Bt(xe(n), xe(r))), An(st(t), o));
|
|
1884
1884
|
} }, fitVisibleArea: { type: Function, default: function(e) {
|
|
1885
1885
|
var t = e.visibleArea, n = e.boundaries, i = e.getAreaRestrictions, a = e.coordinates, o = ae({}, t);
|
|
1886
|
-
o.height = o.width /
|
|
1886
|
+
o.height = o.width / pe(n), o.top += (t.height - o.height) / 2, (a.height - o.height > 0 || a.width - o.width > 0) && (o = qe(o, Math.max(a.height / o.height, a.width / o.width)));
|
|
1887
1887
|
var r = Rn(Ht(a, st(o = qe(o, Cn(o, i({ visibleArea: o, type: "resize" }))))));
|
|
1888
1888
|
return o.width < a.width && (r.left = 0), o.height < a.height && (r.top = 0), o = Ue(o = He(o, r), i({ visibleArea: o, type: "move" }));
|
|
1889
1889
|
} }, areaRestrictionsAlgorithm: { type: Function, default: function(e) {
|
|
1890
1890
|
var t = e.visibleArea, n = e.boundaries, i = e.imageSize, a = e.imageRestriction, o = e.type, r = {};
|
|
1891
|
-
return a === "fill-area" ? r = { left: 0, top: 0, right: i.width, bottom: i.height } : a === "fit-area" && (
|
|
1891
|
+
return a === "fill-area" ? r = { left: 0, top: 0, right: i.width, bottom: i.height } : a === "fit-area" && (pe(n) > pe(i) ? (r = { top: 0, bottom: i.height }, t && o === "move" && (t.width > i.width ? (r.left = -(t.width - i.width) / 2, r.right = i.width - r.left) : (r.left = 0, r.right = i.width))) : (r = { left: 0, right: i.width }, t && o === "move" && (t.height > i.height ? (r.top = -(t.height - i.height) / 2, r.bottom = i.height - r.top) : (r.top = 0, r.bottom = i.height)))), r;
|
|
1892
1892
|
} }, sizeRestrictionsAlgorithm: { type: Function, default: function(e) {
|
|
1893
1893
|
return { minWidth: e.minWidth, minHeight: e.minHeight, maxWidth: e.maxWidth, maxHeight: e.maxHeight };
|
|
1894
1894
|
} }, positionRestrictionsAlgorithm: { type: Function, default: function(e) {
|
|
1895
1895
|
var t = e.imageSize, n = {};
|
|
1896
1896
|
return e.imageRestriction !== "none" && (n = { left: 0, top: 0, right: t.width, bottom: t.height }), n;
|
|
1897
1897
|
} } }, data: function() {
|
|
1898
|
-
return { transitionsActive: !1, imageLoaded: !1, imageAttributes: { width: null, height: null, crossOrigin: null, src: null }, defaultImageTransforms: { rotate: 0, flip: { horizontal: !1, vertical: !1 } }, appliedImageTransforms: { rotate: 0, flip: { horizontal: !1, vertical: !1 } }, boundaries: { width: 0, height: 0 }, visibleArea: null, coordinates:
|
|
1898
|
+
return { transitionsActive: !1, imageLoaded: !1, imageAttributes: { width: null, height: null, crossOrigin: null, src: null }, defaultImageTransforms: { rotate: 0, flip: { horizontal: !1, vertical: !1 } }, appliedImageTransforms: { rotate: 0, flip: { horizontal: !1, vertical: !1 } }, boundaries: { width: 0, height: 0 }, visibleArea: null, coordinates: me({}, Di) };
|
|
1899
1899
|
}, computed: { image: function() {
|
|
1900
1900
|
return { src: this.imageAttributes.src, width: this.imageAttributes.width, height: this.imageAttributes.height, transforms: this.imageTransforms };
|
|
1901
1901
|
}, imageTransforms: function() {
|
|
@@ -1945,7 +1945,7 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1945
1945
|
var e = { width: this.boundaries.width ? "".concat(Math.round(this.boundaries.width), "px") : "auto", height: this.boundaries.height ? "".concat(Math.round(this.boundaries.height), "px") : "auto", transition: "opacity ".concat(this.transitionTime, "ms"), pointerEvents: this.imageLoaded ? "all" : "none" };
|
|
1946
1946
|
return this.imageLoaded || (e.opacity = "0"), e;
|
|
1947
1947
|
}, imageStyle: function() {
|
|
1948
|
-
var e = this.imageAttributes.width > this.imageAttributes.height ? { width: Math.min(1024, this.imageAttributes.width), height: Math.min(1024, this.imageAttributes.width) / (this.imageAttributes.width / this.imageAttributes.height) } : { height: Math.min(1024, this.imageAttributes.height), width: Math.min(1024, this.imageAttributes.height) * (this.imageAttributes.width / this.imageAttributes.height) }, t = { left: (e.width - this.imageSize.width) / (2 * this.coefficient), top: (e.height - this.imageSize.height) / (2 * this.coefficient) }, n = { left: (1 - 1 / this.coefficient) * e.width / 2, top: (1 - 1 / this.coefficient) * e.height / 2 }, i =
|
|
1948
|
+
var e = this.imageAttributes.width > this.imageAttributes.height ? { width: Math.min(1024, this.imageAttributes.width), height: Math.min(1024, this.imageAttributes.width) / (this.imageAttributes.width / this.imageAttributes.height) } : { height: Math.min(1024, this.imageAttributes.height), width: Math.min(1024, this.imageAttributes.height) * (this.imageAttributes.width / this.imageAttributes.height) }, t = { left: (e.width - this.imageSize.width) / (2 * this.coefficient), top: (e.height - this.imageSize.height) / (2 * this.coefficient) }, n = { left: (1 - 1 / this.coefficient) * e.width / 2, top: (1 - 1 / this.coefficient) * e.height / 2 }, i = me(me({}, this.imageTransforms), {}, { scaleX: this.imageTransforms.scaleX * (this.imageAttributes.width / e.width), scaleY: this.imageTransforms.scaleY * (this.imageAttributes.height / e.height) }), a = { width: "".concat(e.width, "px"), height: "".concat(e.height, "px"), left: "0px", top: "0px", transform: "translate(".concat(-t.left - n.left - this.imageTransforms.translateX, "px, ").concat(-t.top - n.top - this.imageTransforms.translateY, "px)") + Vo(i) };
|
|
1949
1949
|
return this.transitionsOptions.enabled && (a.transition = "".concat(this.transitionsOptions.time, "ms ").concat(this.transitionsOptions.timingFunction)), a;
|
|
1950
1950
|
} }, watch: { src: function() {
|
|
1951
1951
|
this.onChangeImage();
|
|
@@ -1975,14 +1975,14 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1975
1975
|
}, unmounted: function() {
|
|
1976
1976
|
window.removeEventListener("resize", this.refresh), window.removeEventListener("orientationchange", this.refresh), this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.debouncedUpdate.clear(), this.debouncedDisableTransitions.clear();
|
|
1977
1977
|
}, methods: { getResult: function() {
|
|
1978
|
-
var e = this.initialized ? this.prepareResult(
|
|
1978
|
+
var e = this.initialized ? this.prepareResult(me({}, this.coordinates)) : this.defaultCoordinates(), t = { rotate: this.imageTransforms.rotate % 360, flip: me({}, this.imageTransforms.flip) };
|
|
1979
1979
|
if (this.src && this.imageLoaded) {
|
|
1980
1980
|
var n = this;
|
|
1981
|
-
return { image: this.image, coordinates: e, visibleArea: this.visibleArea ?
|
|
1981
|
+
return { image: this.image, coordinates: e, visibleArea: this.visibleArea ? me({}, this.visibleArea) : null, imageTransforms: t, get canvas() {
|
|
1982
1982
|
return n.canvas ? n.getCanvas() : void 0;
|
|
1983
1983
|
} };
|
|
1984
1984
|
}
|
|
1985
|
-
return { image: this.image, coordinates: e, visibleArea: this.visibleArea ?
|
|
1985
|
+
return { image: this.image, coordinates: e, visibleArea: this.visibleArea ? me({}, this.visibleArea) : null, canvas: void 0, imageTransforms: t };
|
|
1986
1986
|
}, zoom: function(e, t) {
|
|
1987
1987
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.transitions, a = i === void 0 || i;
|
|
1988
1988
|
this.onManipulateImage(new Zt({}, { factor: 1 / e, center: t }), { normalize: !1, transitions: a });
|
|
@@ -2015,12 +2015,12 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
2015
2015
|
return this.roundResult ? function(t) {
|
|
2016
2016
|
var n = t.coordinates, i = t.sizeRestrictions, a = t.positionRestrictions, o = { width: Math.round(n.width), height: Math.round(n.height), left: Math.round(n.left), top: Math.round(n.top) };
|
|
2017
2017
|
return o.width > i.maxWidth ? o.width = Math.floor(n.width) : o.width < i.minWidth && (o.width = Math.ceil(n.width)), o.height > i.maxHeight ? o.height = Math.floor(n.height) : o.height < i.minHeight && (o.height = Math.ceil(n.height)), Ue(o, a);
|
|
2018
|
-
}(
|
|
2018
|
+
}(me(me({}, this.getPublicProperties()), {}, { positionRestrictions: dn(this.positionRestrictions, this.visibleArea), coordinates: e })) : e;
|
|
2019
2019
|
}, processAutoZoom: function(e, t, n, i) {
|
|
2020
2020
|
var a = this.autoZoomAlgorithm;
|
|
2021
2021
|
a || (a = this.stencilSize ? qr : this.autoZoom ? Jr : Zr);
|
|
2022
2022
|
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() });
|
|
2023
|
-
return
|
|
2023
|
+
return me(me({}, o), {}, { changed: !Fi(o.visibleArea, t) || !Fi(o.coordinates, n) });
|
|
2024
2024
|
}, runAutoZoom: function(e) {
|
|
2025
2025
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, i = n !== void 0 && n, a = Vr(t, hs), o = this.processAutoZoom(e, this.visibleArea, this.coordinates, a), r = o.visibleArea, l = o.coordinates, s = o.changed;
|
|
2026
2026
|
i && s && this.enableTransitions(), this.visibleArea = r, this.coordinates = l, i && s && this.debouncedDisableTransitions();
|
|
@@ -2041,7 +2041,7 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
2041
2041
|
}), r;
|
|
2042
2042
|
}
|
|
2043
2043
|
return n;
|
|
2044
|
-
}(
|
|
2044
|
+
}(me(me({}, this.getPublicProperties()), {}, { event: e }));
|
|
2045
2045
|
}, getCanvas: function() {
|
|
2046
2046
|
if (this.$refs.canvas) {
|
|
2047
2047
|
var e = this.$refs.canvas, t = this.$refs.image, n = this.imageTransforms.rotate !== 0 || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(l, s, u) {
|
|
@@ -2049,7 +2049,7 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
2049
2049
|
l.height = p.height, l.width = p.width, b.save();
|
|
2050
2050
|
var _ = kt(xe(ae({ left: 0, top: 0 }, c)), m);
|
|
2051
2051
|
return b.translate(-(_.left - p.width / 2), -(_.top - p.height / 2)), b.rotate(m * Math.PI / 180), b.translate(d.horizontal ? c.width : 0, d.vertical ? c.height : 0), b.scale(d.horizontal ? -1 : 1, d.vertical ? -1 : 1), b.drawImage(s, 0, 0, c.width, c.height), b.restore(), l;
|
|
2052
|
-
}(this.$refs.sourceCanvas, t, this.imageTransforms) : t, i =
|
|
2052
|
+
}(this.$refs.sourceCanvas, t, this.imageTransforms) : t, i = me({ minWidth: 0, minHeight: 0, maxWidth: 1 / 0, maxHeight: 1 / 0, maxArea: this.maxCanvasSize, imageSmoothingEnabled: !0, imageSmoothingQuality: "high", fillColor: "transparent" }, this.canvas), a = function(l) {
|
|
2053
2053
|
return l.find(function(s) {
|
|
2054
2054
|
return u = s, !Number.isNaN(parseFloat(u)) && isFinite(u);
|
|
2055
2055
|
var u;
|
|
@@ -2082,7 +2082,7 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
2082
2082
|
n.minWidth, n.minHeight, n.maxWidth, n.maxHeight;
|
|
2083
2083
|
var i = Vt(t) ? t({ boundaries: this.boundaries, imageSize: this.imageSize, aspectRatio: this.getAspectRatio(), sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize(), visibleArea: this.visibleArea }) : t, a = this.defaultPosition || Qr, o = [i, function(r) {
|
|
2084
2084
|
var l = r.coordinates;
|
|
2085
|
-
return
|
|
2085
|
+
return me({}, Vt(a) ? a({ coordinates: l, imageSize: e.imageSize, visibleArea: e.visibleArea }) : e.defaultPosition);
|
|
2086
2086
|
}];
|
|
2087
2087
|
this.delayedTransforms && o.push.apply(o, Nt(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(o, !0), this.delayedTransforms = null;
|
|
2088
2088
|
}
|
|
@@ -2110,10 +2110,10 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
2110
2110
|
});
|
|
2111
2111
|
}, resetVisibleArea: function() {
|
|
2112
2112
|
var e = this;
|
|
2113
|
-
return this.appliedImageTransforms =
|
|
2113
|
+
return this.appliedImageTransforms = me(me({}, this.defaultImageTransforms), {}, { flip: me({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then(function() {
|
|
2114
2114
|
e.priority !== "visible-area" && (e.visibleArea = null, e.resetCoordinates());
|
|
2115
2115
|
var t, n, i, a, o, r, l = e.defaultVisibleArea || ns;
|
|
2116
|
-
e.visibleArea = Vt(l) ? l({ imageSize: e.imageSize, boundaries: e.boundaries, coordinates: e.priority !== "visible-area" ? e.coordinates : null, getAreaRestrictions: e.getAreaRestrictions, stencilSize: e.getStencilSize() }) : e.defaultVisibleArea, e.visibleArea = (t = { visibleArea: e.visibleArea, boundaries: e.boundaries, getAreaRestrictions: e.getAreaRestrictions }, n = t.visibleArea, i = t.boundaries, a = t.getAreaRestrictions, o = ae({}, n), r =
|
|
2116
|
+
e.visibleArea = Vt(l) ? l({ imageSize: e.imageSize, boundaries: e.boundaries, coordinates: e.priority !== "visible-area" ? e.coordinates : null, getAreaRestrictions: e.getAreaRestrictions, stencilSize: e.getStencilSize() }) : e.defaultVisibleArea, e.visibleArea = (t = { visibleArea: e.visibleArea, boundaries: e.boundaries, getAreaRestrictions: e.getAreaRestrictions }, n = t.visibleArea, i = t.boundaries, a = t.getAreaRestrictions, o = ae({}, n), r = pe(i), o.width / o.height !== r && (o.height = o.width / r), Ue(o, a({ visibleArea: o, type: "move" }))), e.priority === "visible-area" ? e.resetCoordinates() : e.coordinates = e.fitCoordinates({ visibleArea: e.visibleArea, coordinates: e.coordinates, aspectRatio: e.getAspectRatio(), positionRestrictions: e.positionRestrictions, sizeRestrictions: e.sizeRestrictions }), e.runAutoZoom("resetVisibleArea");
|
|
2117
2117
|
}).catch(function() {
|
|
2118
2118
|
e.visibleArea = null;
|
|
2119
2119
|
});
|
|
@@ -2196,7 +2196,7 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
2196
2196
|
r.rotate = -90;
|
|
2197
2197
|
}
|
|
2198
2198
|
return r;
|
|
2199
|
-
}(a), this.defaultImageTransforms =
|
|
2199
|
+
}(a), this.defaultImageTransforms = me(me({}, this.appliedImageTransforms), {}, { flip: me({}, this.appliedImageTransforms.flip) }), this.$nextTick(function() {
|
|
2200
2200
|
var o = t.$refs.image;
|
|
2201
2201
|
o && o.complete && (function(r) {
|
|
2202
2202
|
return !!r.naturalWidth;
|
|
@@ -2209,20 +2209,20 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
2209
2209
|
}, onMove: function(e) {
|
|
2210
2210
|
var t = this;
|
|
2211
2211
|
this.transitionsOptions.enabled || this.awaitRender(function() {
|
|
2212
|
-
t.coordinates = t.moveAlgorithm(
|
|
2212
|
+
t.coordinates = t.moveAlgorithm(me(me({}, t.getPublicProperties()), {}, { positionRestrictions: dn(t.positionRestrictions, t.visibleArea), coordinates: t.coordinates, event: t.normalizeEvent(e) })), t.onChange();
|
|
2213
2213
|
});
|
|
2214
2214
|
}, onResize: function(e) {
|
|
2215
2215
|
var t = this;
|
|
2216
2216
|
this.transitionsOptions.enabled || this.stencilSize && !this.autoZoom || this.awaitRender(function() {
|
|
2217
2217
|
var n = t.sizeRestrictions, i = Math.min(t.coordinates.width, t.coordinates.height, 20 * t.coefficient);
|
|
2218
|
-
t.coordinates = t.resizeAlgorithm(
|
|
2218
|
+
t.coordinates = t.resizeAlgorithm(me(me({}, t.getPublicProperties()), {}, { positionRestrictions: dn(t.positionRestrictions, t.visibleArea), sizeRestrictions: { maxWidth: Math.min(n.maxWidth, t.visibleArea.width), maxHeight: Math.min(n.maxHeight, t.visibleArea.height), minWidth: Math.max(n.minWidth, i), minHeight: Math.max(n.minHeight, i) }, event: t.normalizeEvent(e) })), t.onChange(), t.ticking = !1;
|
|
2219
2219
|
});
|
|
2220
2220
|
}, onManipulateImage: function(e) {
|
|
2221
2221
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2222
2222
|
if (!this.transitionsOptions.enabled) {
|
|
2223
2223
|
var n = t.transitions, i = n !== void 0 && n, a = t.normalize, o = a === void 0 || a;
|
|
2224
2224
|
i && this.enableTransitions();
|
|
2225
|
-
var r = is(
|
|
2225
|
+
var r = is(me(me({}, this.getPublicProperties()), {}, { event: o ? this.normalizeEvent(e) : e, getAreaRestrictions: this.getAreaRestrictions, imageRestriction: this.imageRestriction, adjustStencil: !this.stencilSize && this.settings.resizeImage.adjustStencil })), l = r.visibleArea, s = r.coordinates;
|
|
2226
2226
|
this.visibleArea = l, this.coordinates = s, this.runAutoZoom("manipulateImage"), this.onChange(), i && this.debouncedDisableTransitions();
|
|
2227
2227
|
}
|
|
2228
2228
|
}, onPropsChange: function() {
|
|
@@ -2237,29 +2237,29 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
2237
2237
|
t = l.minimum, n = l.maximum;
|
|
2238
2238
|
}
|
|
2239
2239
|
if (De(t) && (t = De(a) ? o : a), De(n) && (n = De(a) ? r : a), !e && (De(t) || De(n))) {
|
|
2240
|
-
var s = this.getStencilSize(), u = s ?
|
|
2240
|
+
var s = this.getStencilSize(), u = s ? pe(s) : null;
|
|
2241
2241
|
De(t) && (t = Mi(u) ? u : void 0), De(n) && (n = Mi(u) ? u : void 0);
|
|
2242
2242
|
}
|
|
2243
2243
|
return { minimum: t, maximum: n };
|
|
2244
2244
|
}, getStencilSize: function() {
|
|
2245
|
-
if (this.stencilSize) return e = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, t = e.boundaries, n = e.stencilSize, i = e.aspectRatio, Ln(
|
|
2245
|
+
if (this.stencilSize) return e = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, t = e.boundaries, n = e.stencilSize, i = e.aspectRatio, Ln(pe(a = Vt(n) ? n({ boundaries: t, aspectRatio: i }) : n), i) && (a = gt({ sizeRestrictions: { maxWidth: t.width, maxHeight: t.height, minWidth: 0, minHeight: 0 }, width: a.width, height: a.height, aspectRatio: { minimum: i.minimum, maximum: i.maximum } })), (a.width > t.width || a.height > t.height) && (a = gt({ sizeRestrictions: { maxWidth: t.width, maxHeight: t.height, minWidth: 0, minHeight: 0 }, width: a.width, height: a.height, aspectRatio: { minimum: pe(a), maximum: pe(a) } })), a;
|
|
2246
2246
|
var e, t, n, i, a;
|
|
2247
2247
|
}, getPublicProperties: function() {
|
|
2248
2248
|
return { coefficient: this.coefficient, visibleArea: this.visibleArea, coordinates: this.coordinates, boundaries: this.boundaries, sizeRestrictions: this.sizeRestrictions, positionRestrictions: this.positionRestrictions, aspectRatio: this.getAspectRatio(), imageRestriction: this.imageRestriction };
|
|
2249
2249
|
}, defaultCoordinates: function() {
|
|
2250
|
-
return
|
|
2250
|
+
return me({}, Di);
|
|
2251
2251
|
}, flip: function(e, t) {
|
|
2252
2252
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.transitions, a = i === void 0 || i;
|
|
2253
2253
|
if (!this.transitionsActive) {
|
|
2254
2254
|
a && this.enableTransitions();
|
|
2255
|
-
var o =
|
|
2255
|
+
var o = me({}, this.imageTransforms.flip), r = as({ flip: { horizontal: e ? !o.horizontal : o.horizontal, vertical: t ? !o.vertical : o.vertical }, previousFlip: o, rotate: this.imageTransforms.rotate, visibleArea: this.visibleArea, coordinates: this.coordinates, imageSize: this.imageSize, positionRestrictions: this.positionRestrictions, sizeRestrictions: this.sizeRestrictions, getAreaRestrictions: this.getAreaRestrictions, aspectRatio: this.getAspectRatio() }), l = r.visibleArea, s = r.coordinates;
|
|
2256
2256
|
e && (this.appliedImageTransforms.flip.horizontal = !this.appliedImageTransforms.flip.horizontal), t && (this.appliedImageTransforms.flip.vertical = !this.appliedImageTransforms.flip.vertical), this.visibleArea = l, this.coordinates = s, this.onChange(), a && this.debouncedDisableTransitions();
|
|
2257
2257
|
}
|
|
2258
2258
|
}, rotate: function(e) {
|
|
2259
2259
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, i = n === void 0 || n;
|
|
2260
2260
|
if (!this.transitionsActive) {
|
|
2261
2261
|
i && this.enableTransitions();
|
|
2262
|
-
var a =
|
|
2262
|
+
var a = me({}, this.imageSize);
|
|
2263
2263
|
this.appliedImageTransforms.rotate += e;
|
|
2264
2264
|
var o = os({ visibleArea: this.visibleArea, coordinates: this.coordinates, previousImageSize: a, imageSize: this.imageSize, angle: e, positionRestrictions: this.positionRestrictions, sizeRestrictions: this.sizeRestrictions, getAreaRestrictions: this.getAreaRestrictions, aspectRatio: this.getAspectRatio() }), r = o.visibleArea, l = o.coordinates, s = this.processAutoZoom("rotateImage", r, l);
|
|
2265
2265
|
r = s.visibleArea, l = s.coordinates, this.visibleArea = r, this.coordinates = l, this.onChange(), i && this.debouncedDisableTransitions();
|
|
@@ -2301,14 +2301,14 @@ const ys = {
|
|
|
2301
2301
|
class: /* @__PURE__ */ Ke(["absolute inset-0", "h-full w-full", "rounded-md overflow-hidden"])
|
|
2302
2302
|
}, Os = {
|
|
2303
2303
|
class: /* @__PURE__ */ Ke(["relative z-0", "w-full h-full", "overflow-hidden"])
|
|
2304
|
-
}, Rs = { class: "fm-typo-en-body-lg-600 pb-4" }, Cs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, As = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Is = /* @__PURE__ */
|
|
2304
|
+
}, Rs = { class: "fm-typo-en-body-lg-600 pb-4" }, Cs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, As = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Is = /* @__PURE__ */ ve({
|
|
2305
2305
|
__name: "ImageDropField",
|
|
2306
2306
|
props: {
|
|
2307
2307
|
modelValue: {}
|
|
2308
2308
|
},
|
|
2309
2309
|
emits: ["update:model-value", "reset:model-value"],
|
|
2310
2310
|
setup(e, { emit: t }) {
|
|
2311
|
-
const n = e, { t: i } = Se(), a = t, o = z(() => n.modelValue ? URL.createObjectURL(n.modelValue) : ""), r =
|
|
2311
|
+
const n = e, { t: i } = Se(), a = t, o = z(() => n.modelValue ? URL.createObjectURL(n.modelValue) : ""), r = ie(), l = ie(!1);
|
|
2312
2312
|
async function s([c]) {
|
|
2313
2313
|
if (!c) return;
|
|
2314
2314
|
l.value = !0;
|
|
@@ -2392,7 +2392,7 @@ const ys = {
|
|
|
2392
2392
|
}));
|
|
2393
2393
|
};
|
|
2394
2394
|
}
|
|
2395
|
-
}), hi = /* @__PURE__ */
|
|
2395
|
+
}), hi = /* @__PURE__ */ ve({
|
|
2396
2396
|
__name: "OrderFrom",
|
|
2397
2397
|
props: {
|
|
2398
2398
|
modelValue: {
|
|
@@ -2523,7 +2523,7 @@ function Ns(e, t) {
|
|
|
2523
2523
|
], -1)
|
|
2524
2524
|
]));
|
|
2525
2525
|
}
|
|
2526
|
-
const Ps = { render: Ns }, Ho = /* @__PURE__ */
|
|
2526
|
+
const Ps = { render: Ns }, Ho = /* @__PURE__ */ ve({
|
|
2527
2527
|
__name: "RemyButton",
|
|
2528
2528
|
props: {
|
|
2529
2529
|
onClick: { type: Function },
|
|
@@ -2549,7 +2549,7 @@ const Ps = { render: Ns }, Ho = /* @__PURE__ */ ge({
|
|
|
2549
2549
|
* (c) 2024 kazuya kawaguchi
|
|
2550
2550
|
* Released under the MIT License.
|
|
2551
2551
|
*/
|
|
2552
|
-
const Ui = typeof window < "u", Pt = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Ls = (e, t, n) => xs({ l: e, k: t, s: n }), xs = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Ne = (e) => typeof e == "number" && isFinite(e), Us = (e) => gi(e) === "[object Date]", wn = (e) => gi(e) === "[object RegExp]", In = (e) =>
|
|
2552
|
+
const Ui = typeof window < "u", Pt = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Ls = (e, t, n) => xs({ l: e, k: t, s: n }), xs = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Ne = (e) => typeof e == "number" && isFinite(e), Us = (e) => gi(e) === "[object Date]", wn = (e) => gi(e) === "[object RegExp]", In = (e) => fe(e) && Object.keys(e).length === 0, Pe = Object.assign, Vs = Object.create, ye = (e = null) => Vs(e);
|
|
2553
2553
|
let Vi;
|
|
2554
2554
|
const Dt = () => Vi || (Vi = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ye());
|
|
2555
2555
|
function zi(e) {
|
|
@@ -2559,14 +2559,14 @@ const zs = Object.prototype.hasOwnProperty;
|
|
|
2559
2559
|
function Ze(e, t) {
|
|
2560
2560
|
return zs.call(e, t);
|
|
2561
2561
|
}
|
|
2562
|
-
const Te = Array.isArray, Oe = (e) => typeof e == "function",
|
|
2562
|
+
const Te = Array.isArray, Oe = (e) => typeof e == "function", ee = (e) => typeof e == "string", Re = (e) => typeof e == "boolean", he = (e) => e !== null && typeof e == "object", $s = (e) => he(e) && Oe(e.then) && Oe(e.catch), jo = Object.prototype.toString, gi = (e) => jo.call(e), fe = (e) => gi(e) === "[object Object]", Gs = (e) => e == null ? "" : Te(e) || fe(e) && e.toString === jo ? JSON.stringify(e, null, 2) : String(e);
|
|
2563
2563
|
function vi(e, t = "") {
|
|
2564
2564
|
return e.reduce((n, i, a) => a === 0 ? n + i : n + t + i, "");
|
|
2565
2565
|
}
|
|
2566
2566
|
function Bs(e, t) {
|
|
2567
2567
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
2568
2568
|
}
|
|
2569
|
-
const fn = (e) => !
|
|
2569
|
+
const fn = (e) => !he(e) || Te(e);
|
|
2570
2570
|
function bn(e, t) {
|
|
2571
2571
|
if (fn(e) || fn(t))
|
|
2572
2572
|
throw new Error("Invalid value");
|
|
@@ -2574,7 +2574,7 @@ function bn(e, t) {
|
|
|
2574
2574
|
for (; n.length; ) {
|
|
2575
2575
|
const { src: i, des: a } = n.pop();
|
|
2576
2576
|
Object.keys(i).forEach((o) => {
|
|
2577
|
-
o !== "__proto__" && (
|
|
2577
|
+
o !== "__proto__" && (he(i[o]) && !he(a[o]) && (a[o] = Array.isArray(i[o]) ? [] : ye()), fn(a[o]) || fn(i[o]) ? a[o] = i[o] : n.push({ src: i[o], des: a[o] }));
|
|
2578
2578
|
});
|
|
2579
2579
|
}
|
|
2580
2580
|
}
|
|
@@ -2666,7 +2666,7 @@ function Qs(e, t = {}) {
|
|
|
2666
2666
|
function d(f, g, L, ...Y) {
|
|
2667
2667
|
const X = u();
|
|
2668
2668
|
if (g.column += L, g.offset += L, m) {
|
|
2669
|
-
const
|
|
2669
|
+
const ce = n ? Qn(X.startLoc, g) : null, F = Tn(f, ce, {
|
|
2670
2670
|
domain: Zs,
|
|
2671
2671
|
args: Y
|
|
2672
2672
|
});
|
|
@@ -2763,8 +2763,8 @@ function Qs(e, t = {}) {
|
|
|
2763
2763
|
if (L !== 9)
|
|
2764
2764
|
return !1;
|
|
2765
2765
|
const Y = () => {
|
|
2766
|
-
const
|
|
2767
|
-
return
|
|
2766
|
+
const ce = f.currentPeek();
|
|
2767
|
+
return ce === "{" ? v(f.peek()) : ce === "@" || ce === "|" || ce === ":" || ce === "." || ce === pt || !ce ? !1 : ce === $e ? (f.peek(), Y()) : N(f, !1);
|
|
2768
2768
|
}, X = Y();
|
|
2769
2769
|
return f.resetPeek(), X;
|
|
2770
2770
|
}
|
|
@@ -2774,9 +2774,9 @@ function Qs(e, t = {}) {
|
|
|
2774
2774
|
return f.resetPeek(), g;
|
|
2775
2775
|
}
|
|
2776
2776
|
function N(f, g = !0) {
|
|
2777
|
-
const L = (X = !1,
|
|
2777
|
+
const L = (X = !1, ce = "") => {
|
|
2778
2778
|
const F = f.currentPeek();
|
|
2779
|
-
return F === "{" || F === "@" || !F ? X : F === "|" ? !(
|
|
2779
|
+
return F === "{" || F === "@" || !F ? X : F === "|" ? !(ce === pt || ce === $e) : F === pt ? (f.peek(), L(!0, pt)) : F === $e ? (f.peek(), L(!0, $e)) : !0;
|
|
2780
2780
|
}, Y = L();
|
|
2781
2781
|
return g && f.resetPeek(), Y;
|
|
2782
2782
|
}
|
|
@@ -2811,21 +2811,21 @@ function Qs(e, t = {}) {
|
|
|
2811
2811
|
const g = f.charCodeAt(0);
|
|
2812
2812
|
return g >= 48 && g <= 57;
|
|
2813
2813
|
}
|
|
2814
|
-
function
|
|
2814
|
+
function ue(f) {
|
|
2815
2815
|
return M(f, $);
|
|
2816
2816
|
}
|
|
2817
|
-
function
|
|
2817
|
+
function de(f) {
|
|
2818
2818
|
const g = f.charCodeAt(0);
|
|
2819
2819
|
return g >= 48 && g <= 57 || // 0-9
|
|
2820
2820
|
g >= 65 && g <= 70 || // A-F
|
|
2821
2821
|
g >= 97 && g <= 102;
|
|
2822
2822
|
}
|
|
2823
2823
|
function we(f) {
|
|
2824
|
-
return M(f,
|
|
2824
|
+
return M(f, de);
|
|
2825
2825
|
}
|
|
2826
2826
|
function G(f) {
|
|
2827
2827
|
let g = "", L = "";
|
|
2828
|
-
for (; g =
|
|
2828
|
+
for (; g = ue(f); )
|
|
2829
2829
|
L += g;
|
|
2830
2830
|
return L;
|
|
2831
2831
|
}
|
|
@@ -2855,46 +2855,46 @@ function Qs(e, t = {}) {
|
|
|
2855
2855
|
L += g;
|
|
2856
2856
|
return f.currentChar() === Et && d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), L;
|
|
2857
2857
|
}
|
|
2858
|
-
function
|
|
2858
|
+
function te(f) {
|
|
2859
2859
|
S(f);
|
|
2860
2860
|
let g = "";
|
|
2861
2861
|
return f.currentChar() === "-" ? (f.next(), g += `-${G(f)}`) : g += G(f), f.currentChar() === Et && d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), g;
|
|
2862
2862
|
}
|
|
2863
|
-
function
|
|
2863
|
+
function ne(f) {
|
|
2864
2864
|
return f !== $i && f !== $e;
|
|
2865
2865
|
}
|
|
2866
|
-
function
|
|
2866
|
+
function Q(f) {
|
|
2867
2867
|
S(f), b(f, "'");
|
|
2868
2868
|
let g = "", L = "";
|
|
2869
|
-
for (; g = M(f,
|
|
2870
|
-
g === "\\" ? L +=
|
|
2869
|
+
for (; g = M(f, ne); )
|
|
2870
|
+
g === "\\" ? L += le(f) : L += g;
|
|
2871
2871
|
const Y = f.currentChar();
|
|
2872
2872
|
return Y === $e || Y === Et ? (d(_e.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), Y === $e && (f.next(), b(f, "'")), L) : (b(f, "'"), L);
|
|
2873
2873
|
}
|
|
2874
|
-
function
|
|
2874
|
+
function le(f) {
|
|
2875
2875
|
const g = f.currentChar();
|
|
2876
2876
|
switch (g) {
|
|
2877
2877
|
case "\\":
|
|
2878
2878
|
case "'":
|
|
2879
2879
|
return f.next(), `\\${g}`;
|
|
2880
2880
|
case "u":
|
|
2881
|
-
return
|
|
2881
|
+
return oe(f, g, 4);
|
|
2882
2882
|
case "U":
|
|
2883
|
-
return
|
|
2883
|
+
return oe(f, g, 6);
|
|
2884
2884
|
default:
|
|
2885
2885
|
return d(_e.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, g), "";
|
|
2886
2886
|
}
|
|
2887
2887
|
}
|
|
2888
|
-
function
|
|
2888
|
+
function oe(f, g, L) {
|
|
2889
2889
|
b(f, g);
|
|
2890
2890
|
let Y = "";
|
|
2891
2891
|
for (let X = 0; X < L; X++) {
|
|
2892
|
-
const
|
|
2893
|
-
if (!
|
|
2892
|
+
const ce = we(f);
|
|
2893
|
+
if (!ce) {
|
|
2894
2894
|
d(_e.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${g}${Y}${f.currentChar()}`);
|
|
2895
2895
|
break;
|
|
2896
2896
|
}
|
|
2897
|
-
Y +=
|
|
2897
|
+
Y += ce;
|
|
2898
2898
|
}
|
|
2899
2899
|
return `\\${g}${Y}`;
|
|
2900
2900
|
}
|
|
@@ -2950,18 +2950,18 @@ function Qs(e, t = {}) {
|
|
|
2950
2950
|
case "@":
|
|
2951
2951
|
return g.braceNest > 0 && d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), L = dt(f, g) || p(g), g.braceNest = 0, L;
|
|
2952
2952
|
default: {
|
|
2953
|
-
let X = !0,
|
|
2953
|
+
let X = !0, ce = !0, F = !0;
|
|
2954
2954
|
if (I(f))
|
|
2955
2955
|
return g.braceNest > 0 && d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), L = c(g, 1, yt(f)), g.braceNest = 0, g.inLinked = !1, L;
|
|
2956
2956
|
if (g.braceNest > 0 && (g.currentType === 4 || g.currentType === 5 || g.currentType === 6))
|
|
2957
2957
|
return d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), g.braceNest = 0, wt(f, g);
|
|
2958
2958
|
if (X = E(f, g))
|
|
2959
2959
|
return L = c(g, 4, Z(f)), S(f), L;
|
|
2960
|
-
if (
|
|
2961
|
-
return L = c(g, 5,
|
|
2960
|
+
if (ce = O(f, g))
|
|
2961
|
+
return L = c(g, 5, te(f)), S(f), L;
|
|
2962
2962
|
if (F = A(f, g))
|
|
2963
|
-
return L = c(g, 6,
|
|
2964
|
-
if (!X && !
|
|
2963
|
+
return L = c(g, 6, Q(f)), S(f), L;
|
|
2964
|
+
if (!X && !ce && !F)
|
|
2965
2965
|
return L = c(g, 12, je(f)), d(_e.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, L.value), S(f), L;
|
|
2966
2966
|
break;
|
|
2967
2967
|
}
|
|
@@ -3452,7 +3452,7 @@ function jt(e, t) {
|
|
|
3452
3452
|
}
|
|
3453
3453
|
}
|
|
3454
3454
|
const ml = (e, t = {}) => {
|
|
3455
|
-
const n =
|
|
3455
|
+
const n = ee(t.mode) ? t.mode : "normal", i = ee(t.filename) ? t.filename : "message.intl";
|
|
3456
3456
|
t.sourceMap;
|
|
3457
3457
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
3458
3458
|
`, o = t.needIndent ? t.needIndent : n !== "arrow", r = e.helpers || [], l = sl(e, {
|
|
@@ -3595,7 +3595,7 @@ function en(e) {
|
|
|
3595
3595
|
const Ml = (e) => e;
|
|
3596
3596
|
let gn = ye();
|
|
3597
3597
|
function Kt(e) {
|
|
3598
|
-
return
|
|
3598
|
+
return he(e) && bi(e) === 0 && (Ze(e, "b") || Ze(e, "body"));
|
|
3599
3599
|
}
|
|
3600
3600
|
function Dl(e, t = {}) {
|
|
3601
3601
|
let n = !1;
|
|
@@ -3606,7 +3606,7 @@ function Dl(e, t = {}) {
|
|
|
3606
3606
|
}
|
|
3607
3607
|
// @__NO_SIDE_EFFECTS__
|
|
3608
3608
|
function Fl(e, t) {
|
|
3609
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
3609
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && ee(e)) {
|
|
3610
3610
|
Re(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
3611
3611
|
const i = (t.onCacheKey || Ml)(e), a = gn[i];
|
|
3612
3612
|
if (a)
|
|
@@ -3659,7 +3659,7 @@ function yi(e, t) {
|
|
|
3659
3659
|
}
|
|
3660
3660
|
let $n;
|
|
3661
3661
|
function Hi(e) {
|
|
3662
|
-
if (
|
|
3662
|
+
if (ee(e))
|
|
3663
3663
|
return e;
|
|
3664
3664
|
if (Oe(e)) {
|
|
3665
3665
|
if (e.resolvedOnce && $n != null)
|
|
@@ -3677,11 +3677,11 @@ function Hi(e) {
|
|
|
3677
3677
|
function Vl(e, t, n) {
|
|
3678
3678
|
return [.../* @__PURE__ */ new Set([
|
|
3679
3679
|
n,
|
|
3680
|
-
...Te(t) ? t :
|
|
3680
|
+
...Te(t) ? t : he(t) ? Object.keys(t) : ee(t) ? [t] : [n]
|
|
3681
3681
|
])];
|
|
3682
3682
|
}
|
|
3683
3683
|
function Ko(e, t, n) {
|
|
3684
|
-
const i =
|
|
3684
|
+
const i = ee(n) ? n : En, a = e;
|
|
3685
3685
|
a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
|
|
3686
3686
|
let o = a.__localeChainCache.get(i);
|
|
3687
3687
|
if (!o) {
|
|
@@ -3689,8 +3689,8 @@ function Ko(e, t, n) {
|
|
|
3689
3689
|
let r = [n];
|
|
3690
3690
|
for (; Te(r); )
|
|
3691
3691
|
r = ji(o, r, t);
|
|
3692
|
-
const l = Te(t) || !
|
|
3693
|
-
r =
|
|
3692
|
+
const l = Te(t) || !fe(t) ? t : t.default ? t.default : null;
|
|
3693
|
+
r = ee(l) ? [l] : l, Te(r) && ji(o, r, !1), a.__localeChainCache.set(i, o);
|
|
3694
3694
|
}
|
|
3695
3695
|
return o;
|
|
3696
3696
|
}
|
|
@@ -3698,7 +3698,7 @@ function ji(e, t, n) {
|
|
|
3698
3698
|
let i = !0;
|
|
3699
3699
|
for (let a = 0; a < t.length && Re(i); a++) {
|
|
3700
3700
|
const o = t[a];
|
|
3701
|
-
|
|
3701
|
+
ee(o) && (i = zl(e, t[a], n));
|
|
3702
3702
|
}
|
|
3703
3703
|
return i;
|
|
3704
3704
|
}
|
|
@@ -3716,7 +3716,7 @@ function $l(e, t, n) {
|
|
|
3716
3716
|
if (!e.includes(t) && (i = !0, t)) {
|
|
3717
3717
|
i = t[t.length - 1] !== "!";
|
|
3718
3718
|
const a = t.replace(/!/g, "");
|
|
3719
|
-
e.push(a), (Te(n) ||
|
|
3719
|
+
e.push(a), (Te(n) || fe(n)) && n[a] && (i = n[a]);
|
|
3720
3720
|
}
|
|
3721
3721
|
return i;
|
|
3722
3722
|
}
|
|
@@ -3988,10 +3988,10 @@ function Kl(e) {
|
|
|
3988
3988
|
}
|
|
3989
3989
|
const Ki = /* @__PURE__ */ new Map();
|
|
3990
3990
|
function Yl(e, t) {
|
|
3991
|
-
return
|
|
3991
|
+
return he(e) ? e[t] : null;
|
|
3992
3992
|
}
|
|
3993
3993
|
function Xl(e, t) {
|
|
3994
|
-
if (!
|
|
3994
|
+
if (!he(e))
|
|
3995
3995
|
return null;
|
|
3996
3996
|
let n = Ki.get(t);
|
|
3997
3997
|
if (n || (n = Kl(t), n && Ki.set(t, n)), !n)
|
|
@@ -4009,9 +4009,9 @@ function Xl(e, t) {
|
|
|
4009
4009
|
const ql = "10.0.5", Mn = -1, En = "en-US", Yi = "", Xi = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
4010
4010
|
function Jl() {
|
|
4011
4011
|
return {
|
|
4012
|
-
upper: (e, t) => t === "text" &&
|
|
4013
|
-
lower: (e, t) => t === "text" &&
|
|
4014
|
-
capitalize: (e, t) => t === "text" &&
|
|
4012
|
+
upper: (e, t) => t === "text" && ee(e) ? e.toUpperCase() : t === "vnode" && he(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
4013
|
+
lower: (e, t) => t === "text" && ee(e) ? e.toLowerCase() : t === "vnode" && he(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
4014
|
+
capitalize: (e, t) => t === "text" && ee(e) ? Xi(e) : t === "vnode" && he(e) && "__v_isVNode" in e ? Xi(e.children) : e
|
|
4015
4015
|
};
|
|
4016
4016
|
}
|
|
4017
4017
|
let Yo;
|
|
@@ -4036,7 +4036,7 @@ const qi = (e) => {
|
|
|
4036
4036
|
}, iu = () => Zo;
|
|
4037
4037
|
let Ji = 0;
|
|
4038
4038
|
function ou(e = {}) {
|
|
4039
|
-
const t = Oe(e.onWarn) ? e.onWarn : Bs, n =
|
|
4039
|
+
const t = Oe(e.onWarn) ? e.onWarn : Bs, n = ee(e.version) ? e.version : ql, i = ee(e.locale) || Oe(e.locale) ? e.locale : En, a = Oe(i) ? En : i, o = Te(e.fallbackLocale) || fe(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, r = fe(e.messages) ? e.messages : Gn(a), l = fe(e.datetimeFormats) ? e.datetimeFormats : Gn(a), s = fe(e.numberFormats) ? e.numberFormats : Gn(a), u = Pe(ye(), e.modifiers, Jl()), m = e.pluralRules || ye(), d = Oe(e.missing) ? e.missing : null, c = Re(e.missingWarn) || wn(e.missingWarn) ? e.missingWarn : !0, p = Re(e.fallbackWarn) || wn(e.fallbackWarn) ? e.fallbackWarn : !0, b = !!e.fallbackFormat, _ = !!e.unresolving, S = Oe(e.postTranslation) ? e.postTranslation : null, v = fe(e.processor) ? e.processor : null, h = Re(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter, O = Oe(e.messageCompiler) ? e.messageCompiler : Yo, A = Oe(e.messageResolver) ? e.messageResolver : Xo || Yl, T = Oe(e.localeFallbacker) ? e.localeFallbacker : qo || Vl, w = he(e.fallbackContext) ? e.fallbackContext : void 0, U = e, k = he(U.__datetimeFormatters) ? U.__datetimeFormatters : /* @__PURE__ */ new Map(), I = he(U.__numberFormatters) ? U.__numberFormatters : /* @__PURE__ */ new Map(), N = he(U.__meta) ? U.__meta : {};
|
|
4040
4040
|
Ji++;
|
|
4041
4041
|
const M = {
|
|
4042
4042
|
version: n,
|
|
@@ -4069,7 +4069,7 @@ function wi(e, t, n, i, a) {
|
|
|
4069
4069
|
const { missing: o, onWarn: r } = e;
|
|
4070
4070
|
if (o !== null) {
|
|
4071
4071
|
const l = o(e, n, t, a);
|
|
4072
|
-
return
|
|
4072
|
+
return ee(l) ? l : t;
|
|
4073
4073
|
} else
|
|
4074
4074
|
return t;
|
|
4075
4075
|
}
|
|
@@ -4098,13 +4098,13 @@ function Zi(e, ...t) {
|
|
|
4098
4098
|
a,
|
|
4099
4099
|
b
|
|
4100
4100
|
);
|
|
4101
|
-
if (!
|
|
4101
|
+
if (!ee(s) || s === "")
|
|
4102
4102
|
return new Intl.DateTimeFormat(b, d).format(u);
|
|
4103
4103
|
let S = {}, v, h = null;
|
|
4104
4104
|
const E = "datetime format";
|
|
4105
|
-
for (let T = 0; T < _.length && (v = _[T], S = n[v] || {}, h = S[s], !
|
|
4105
|
+
for (let T = 0; T < _.length && (v = _[T], S = n[v] || {}, h = S[s], !fe(h)); T++)
|
|
4106
4106
|
wi(e, s, v, c, E);
|
|
4107
|
-
if (!
|
|
4107
|
+
if (!fe(h) || !ee(v))
|
|
4108
4108
|
return i ? Mn : s;
|
|
4109
4109
|
let O = `${v}__${s}`;
|
|
4110
4110
|
In(d) || (O = `${O}__${JSON.stringify(d)}`);
|
|
@@ -4136,7 +4136,7 @@ const Qo = [
|
|
|
4136
4136
|
function ti(...e) {
|
|
4137
4137
|
const [t, n, i, a] = e, o = ye();
|
|
4138
4138
|
let r = ye(), l;
|
|
4139
|
-
if (
|
|
4139
|
+
if (ee(t)) {
|
|
4140
4140
|
const s = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
4141
4141
|
if (!s)
|
|
4142
4142
|
throw _t(vt.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -4155,9 +4155,9 @@ function ti(...e) {
|
|
|
4155
4155
|
l = t;
|
|
4156
4156
|
else
|
|
4157
4157
|
throw _t(vt.INVALID_ARGUMENT);
|
|
4158
|
-
return
|
|
4158
|
+
return ee(n) ? o.key = n : fe(n) && Object.keys(n).forEach((s) => {
|
|
4159
4159
|
Qo.includes(s) ? r[s] = n[s] : o[s] = n[s];
|
|
4160
|
-
}),
|
|
4160
|
+
}), ee(i) ? o.locale = i : fe(i) && (r = i), fe(a) && (r = a), [o.key || "", l, o, r];
|
|
4161
4161
|
}
|
|
4162
4162
|
function Qi(e, t, n) {
|
|
4163
4163
|
const i = e;
|
|
@@ -4175,13 +4175,13 @@ function eo(e, ...t) {
|
|
|
4175
4175
|
a,
|
|
4176
4176
|
b
|
|
4177
4177
|
);
|
|
4178
|
-
if (!
|
|
4178
|
+
if (!ee(s) || s === "")
|
|
4179
4179
|
return new Intl.NumberFormat(b, d).format(u);
|
|
4180
4180
|
let S = {}, v, h = null;
|
|
4181
4181
|
const E = "number format";
|
|
4182
|
-
for (let T = 0; T < _.length && (v = _[T], S = n[v] || {}, h = S[s], !
|
|
4182
|
+
for (let T = 0; T < _.length && (v = _[T], S = n[v] || {}, h = S[s], !fe(h)); T++)
|
|
4183
4183
|
wi(e, s, v, c, E);
|
|
4184
|
-
if (!
|
|
4184
|
+
if (!fe(h) || !ee(v))
|
|
4185
4185
|
return i ? Mn : s;
|
|
4186
4186
|
let O = `${v}__${s}`;
|
|
4187
4187
|
In(d) || (O = `${O}__${JSON.stringify(d)}`);
|
|
@@ -4216,9 +4216,9 @@ function ni(...e) {
|
|
|
4216
4216
|
if (!Ne(t))
|
|
4217
4217
|
throw _t(vt.INVALID_ARGUMENT);
|
|
4218
4218
|
const l = t;
|
|
4219
|
-
return
|
|
4219
|
+
return ee(n) ? o.key = n : fe(n) && Object.keys(n).forEach((s) => {
|
|
4220
4220
|
ea.includes(s) ? r[s] = n[s] : o[s] = n[s];
|
|
4221
|
-
}),
|
|
4221
|
+
}), ee(i) ? o.locale = i : fe(i) && (r = i), fe(a) && (r = a), [o.key || "", l, o, r];
|
|
4222
4222
|
}
|
|
4223
4223
|
function to(e, t, n) {
|
|
4224
4224
|
const i = e;
|
|
@@ -4239,21 +4239,21 @@ function pu(e, t) {
|
|
|
4239
4239
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
4240
4240
|
}
|
|
4241
4241
|
function fu(e = {}) {
|
|
4242
|
-
const t = e.locale, n = mu(e), i =
|
|
4242
|
+
const t = e.locale, n = mu(e), i = he(e.pluralRules) && ee(t) && Oe(e.pluralRules[t]) ? e.pluralRules[t] : no, a = he(e.pluralRules) && ee(t) && Oe(e.pluralRules[t]) ? no : void 0, o = (v) => v[i(n, v.length, a)], r = e.list || [], l = (v) => r[v], s = e.named || ye();
|
|
4243
4243
|
Ne(e.pluralIndex) && pu(n, s);
|
|
4244
4244
|
const u = (v) => s[v];
|
|
4245
4245
|
function m(v, h) {
|
|
4246
|
-
const E = Oe(e.messages) ? e.messages(v, !!h) :
|
|
4246
|
+
const E = Oe(e.messages) ? e.messages(v, !!h) : he(e.messages) ? e.messages[v] : !1;
|
|
4247
4247
|
return E || (e.parent ? e.parent.message(v) : lu);
|
|
4248
4248
|
}
|
|
4249
|
-
const d = (v) => e.modifiers ? e.modifiers[v] : su, c =
|
|
4249
|
+
const d = (v) => e.modifiers ? e.modifiers[v] : su, c = fe(e.processor) && Oe(e.processor.normalize) ? e.processor.normalize : cu, p = fe(e.processor) && Oe(e.processor.interpolate) ? e.processor.interpolate : du, b = fe(e.processor) && ee(e.processor.type) ? e.processor.type : uu, S = {
|
|
4250
4250
|
list: l,
|
|
4251
4251
|
named: u,
|
|
4252
4252
|
plural: o,
|
|
4253
4253
|
linked: (v, ...h) => {
|
|
4254
4254
|
const [E, O] = h;
|
|
4255
4255
|
let A = "text", T = "";
|
|
4256
|
-
h.length === 1 ?
|
|
4256
|
+
h.length === 1 ? he(E) ? (T = E.modifier || T, A = E.type || A) : ee(E) && (T = E || T) : h.length === 2 && (ee(E) && (T = E || T), ee(O) && (A = O || A));
|
|
4257
4257
|
const w = m(v, !0)(S), U = (
|
|
4258
4258
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
4259
4259
|
A === "vnode" && Te(w) && T ? w[0] : w
|
|
@@ -4270,14 +4270,14 @@ function fu(e = {}) {
|
|
|
4270
4270
|
}
|
|
4271
4271
|
const io = () => "", Ye = (e) => Oe(e);
|
|
4272
4272
|
function oo(e, ...t) {
|
|
4273
|
-
const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: r, messages: l } = e, [s, u] = ii(...t), m = Re(u.missingWarn) ? u.missingWarn : e.missingWarn, d = Re(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, c = Re(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, p = !!u.resolvedMessage, b =
|
|
4273
|
+
const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: r, messages: l } = e, [s, u] = ii(...t), m = Re(u.missingWarn) ? u.missingWarn : e.missingWarn, d = Re(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, c = Re(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, p = !!u.resolvedMessage, b = ee(u.default) || Re(u.default) ? Re(u.default) ? o ? s : () => s : u.default : n ? o ? s : () => s : null, _ = n || b != null && (ee(b) || Oe(b)), S = yi(e, u);
|
|
4274
4274
|
c && hu(u);
|
|
4275
4275
|
let [v, h, E] = p ? [
|
|
4276
4276
|
s,
|
|
4277
4277
|
S,
|
|
4278
4278
|
l[S] || ye()
|
|
4279
4279
|
] : ta(e, s, S, r, d, m), O = v, A = s;
|
|
4280
|
-
if (!p && !(
|
|
4280
|
+
if (!p && !(ee(O) || Kt(O) || Ye(O)) && _ && (O = b, A = O), !p && (!(ee(O) || Kt(O) || Ye(O)) || !ee(h)))
|
|
4281
4281
|
return a ? Mn : s;
|
|
4282
4282
|
let T = !1;
|
|
4283
4283
|
const w = () => {
|
|
@@ -4289,9 +4289,9 @@ function oo(e, ...t) {
|
|
|
4289
4289
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
4290
4290
|
const P = {
|
|
4291
4291
|
timestamp: Date.now(),
|
|
4292
|
-
key:
|
|
4292
|
+
key: ee(s) ? s : Ye(O) ? O.key : "",
|
|
4293
4293
|
locale: h || (Ye(O) ? O.locale : ""),
|
|
4294
|
-
format:
|
|
4294
|
+
format: ee(O) ? O : Ye(O) ? O.source : "",
|
|
4295
4295
|
message: M
|
|
4296
4296
|
};
|
|
4297
4297
|
P.meta = Pe({}, e.__meta, /* @__PURE__ */ nu() || {}), Ll(P);
|
|
@@ -4299,15 +4299,15 @@ function oo(e, ...t) {
|
|
|
4299
4299
|
return M;
|
|
4300
4300
|
}
|
|
4301
4301
|
function hu(e) {
|
|
4302
|
-
Te(e.list) ? e.list = e.list.map((t) =>
|
|
4303
|
-
|
|
4302
|
+
Te(e.list) ? e.list = e.list.map((t) => ee(t) ? zi(t) : t) : he(e.named) && Object.keys(e.named).forEach((t) => {
|
|
4303
|
+
ee(e.named[t]) && (e.named[t] = zi(e.named[t]));
|
|
4304
4304
|
});
|
|
4305
4305
|
}
|
|
4306
4306
|
function ta(e, t, n, i, a, o) {
|
|
4307
4307
|
const { messages: r, onWarn: l, messageResolver: s, localeFallbacker: u } = e, m = u(e, i, n);
|
|
4308
4308
|
let d = ye(), c, p = null;
|
|
4309
4309
|
const b = "translate";
|
|
4310
|
-
for (let _ = 0; _ < m.length && (c = m[_], d = r[c] || ye(), (p = s(d, t)) === null && (p = d[t]), !(
|
|
4310
|
+
for (let _ = 0; _ < m.length && (c = m[_], d = r[c] || ye(), (p = s(d, t)) === null && (p = d[t]), !(ee(p) || Kt(p) || Ye(p))); _++)
|
|
4311
4311
|
if (!ru(c, m)) {
|
|
4312
4312
|
const S = wi(
|
|
4313
4313
|
e,
|
|
@@ -4339,10 +4339,10 @@ function gu(e, t, n) {
|
|
|
4339
4339
|
}
|
|
4340
4340
|
function ii(...e) {
|
|
4341
4341
|
const [t, n, i] = e, a = ye();
|
|
4342
|
-
if (!
|
|
4342
|
+
if (!ee(t) && !Ne(t) && !Ye(t) && !Kt(t))
|
|
4343
4343
|
throw _t(vt.INVALID_ARGUMENT);
|
|
4344
4344
|
const o = Ne(t) ? String(t) : (Ye(t), t);
|
|
4345
|
-
return Ne(n) ? a.plural = n :
|
|
4345
|
+
return Ne(n) ? a.plural = n : ee(n) ? a.default = n : fe(n) && !In(n) ? a.named = n : Te(n) && (a.list = n), Ne(i) ? a.plural = i : ee(i) ? a.default = i : fe(i) && Pe(a, i), [o, a];
|
|
4346
4346
|
}
|
|
4347
4347
|
function vu(e, t, n, i, a, o) {
|
|
4348
4348
|
return {
|
|
@@ -4374,7 +4374,7 @@ function _u(e, t, n, i) {
|
|
|
4374
4374
|
);
|
|
4375
4375
|
_ = r(S, p);
|
|
4376
4376
|
}
|
|
4377
|
-
if (
|
|
4377
|
+
if (ee(_) || Kt(_)) {
|
|
4378
4378
|
let S = !1;
|
|
4379
4379
|
const h = na(e, p, t, _, p, () => {
|
|
4380
4380
|
S = !0;
|
|
@@ -4386,7 +4386,7 @@ function _u(e, t, n, i) {
|
|
|
4386
4386
|
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;
|
|
4387
4387
|
}
|
|
4388
4388
|
hl();
|
|
4389
|
-
var bu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_4a687591-b403-476e-9198-40aa2c7a27bd", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^2.1.8", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_4a687591-b403-476e-9198-40aa2c7a27bd", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-1.4.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.2.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1758", npm_package_dependencies__feedmepos_ui_library: "1.8.7", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20251215.174.1", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.1-rc.4", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:13185", 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.11/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.5/x64", GITHUB_RUN_ID: "20791170573", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "ec5e490f40429c59b54574baace000ae076b0411", 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_08c6131d-4050-47f0-905e-e7aa545e4ffb", INVOCATION_ID: "3daaf64205014b09bfcb1a12abf8b072", 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: "480", GITHUB_TRIGGERING_ACTOR: "victorchai", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", npm_package_devDependencies__vitest_ui: "^2.1.8", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000037026", 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.58", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.72", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_scripts_test_coverage: "vitest --coverage", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "ec5e490f40429c59b54574baace000ae076b0411", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_test_ui: "vitest --ui", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_4a687591-b403-476e-9198-40aa2c7a27bd", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "49786844", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_4a687591-b403-476e-9198-40aa2c7a27bd", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.7.31", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_4a687591-b403-476e-9198-40aa2c7a27bd", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
4389
|
+
var bu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_75ccd8c5-6802-4638-a29c-680f08af3e95", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^2.1.8", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_75ccd8c5-6802-4638-a29c-680f08af3e95", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-1.4.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.2.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1768", npm_package_dependencies__feedmepos_ui_library: "1.8.7", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260111.209.1", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.1-rc.4", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:12881", 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.11/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.5/x64", GITHUB_RUN_ID: "21057021374", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "98eabefc54577f6940c8b1dc37f2aed5c343c80d", 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_f8d5a837-cacf-4e25-9e76-337316c99c91", INVOCATION_ID: "f09e2397b8b1418ea7433c008628fb8a", 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: "487", GITHUB_TRIGGERING_ACTOR: "victorchai", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", npm_package_devDependencies__vitest_ui: "^2.1.8", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000039225", 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.59", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.74", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_scripts_test_coverage: "vitest --coverage", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "98eabefc54577f6940c8b1dc37f2aed5c343c80d", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_test_ui: "vitest --ui", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_75ccd8c5-6802-4638-a29c-680f08af3e95", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "49786844", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_75ccd8c5-6802-4638-a29c-680f08af3e95", 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", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_12.5.0", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.7.32", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_75ccd8c5-6802-4638-a29c-680f08af3e95", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
4390
4390
|
const yu = "10.0.5";
|
|
4391
4391
|
function wu() {
|
|
4392
4392
|
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);
|
|
@@ -4409,34 +4409,34 @@ function nn(e, ...t) {
|
|
|
4409
4409
|
}
|
|
4410
4410
|
const oi = /* @__PURE__ */ Pt("__translateVNode"), ai = /* @__PURE__ */ Pt("__datetimeParts"), ri = /* @__PURE__ */ Pt("__numberParts"), Eu = Pt("__setPluralRules"), ia = /* @__PURE__ */ Pt("__injectWithOption"), si = /* @__PURE__ */ Pt("__dispose");
|
|
4411
4411
|
function on(e) {
|
|
4412
|
-
if (!
|
|
4412
|
+
if (!he(e))
|
|
4413
4413
|
return e;
|
|
4414
4414
|
for (const t in e)
|
|
4415
4415
|
if (Ze(e, t))
|
|
4416
4416
|
if (!t.includes("."))
|
|
4417
|
-
|
|
4417
|
+
he(e[t]) && on(e[t]);
|
|
4418
4418
|
else {
|
|
4419
4419
|
const n = t.split("."), i = n.length - 1;
|
|
4420
4420
|
let a = e, o = !1;
|
|
4421
4421
|
for (let r = 0; r < i; r++) {
|
|
4422
|
-
if (n[r] in a || (a[n[r]] = ye()), !
|
|
4422
|
+
if (n[r] in a || (a[n[r]] = ye()), !he(a[n[r]])) {
|
|
4423
4423
|
o = !0;
|
|
4424
4424
|
break;
|
|
4425
4425
|
}
|
|
4426
4426
|
a = a[n[r]];
|
|
4427
4427
|
}
|
|
4428
|
-
o || (a[n[i]] = e[t], delete e[t]),
|
|
4428
|
+
o || (a[n[i]] = e[t], delete e[t]), he(a[n[i]]) && on(a[n[i]]);
|
|
4429
4429
|
}
|
|
4430
4430
|
return e;
|
|
4431
4431
|
}
|
|
4432
4432
|
function oa(e, t) {
|
|
4433
|
-
const { messages: n, __i18n: i, messageResolver: a, flatJson: o } = t, r =
|
|
4433
|
+
const { messages: n, __i18n: i, messageResolver: a, flatJson: o } = t, r = fe(n) ? n : Te(i) ? ye() : { [e]: ye() };
|
|
4434
4434
|
if (Te(i) && i.forEach((l) => {
|
|
4435
4435
|
if ("locale" in l && "resource" in l) {
|
|
4436
4436
|
const { locale: s, resource: u } = l;
|
|
4437
4437
|
s ? (r[s] = r[s] || ye(), bn(u, r[s])) : bn(u, r);
|
|
4438
4438
|
} else
|
|
4439
|
-
|
|
4439
|
+
ee(l) && bn(JSON.parse(l), r);
|
|
4440
4440
|
}), a == null && o)
|
|
4441
4441
|
for (const l in r)
|
|
4442
4442
|
Ze(r, l) && on(r[l]);
|
|
@@ -4446,7 +4446,7 @@ function aa(e) {
|
|
|
4446
4446
|
return e.type;
|
|
4447
4447
|
}
|
|
4448
4448
|
function ku(e, t, n) {
|
|
4449
|
-
let i =
|
|
4449
|
+
let i = he(t.messages) ? t.messages : ye();
|
|
4450
4450
|
"__i18nGlobal" in n && (i = oa(e.locale.value, {
|
|
4451
4451
|
messages: i,
|
|
4452
4452
|
__i18n: n.__i18nGlobal
|
|
@@ -4456,13 +4456,13 @@ function ku(e, t, n) {
|
|
|
4456
4456
|
e.mergeLocaleMessage(o, i[o]);
|
|
4457
4457
|
});
|
|
4458
4458
|
{
|
|
4459
|
-
if (
|
|
4459
|
+
if (he(t.datetimeFormats)) {
|
|
4460
4460
|
const o = Object.keys(t.datetimeFormats);
|
|
4461
4461
|
o.length && o.forEach((r) => {
|
|
4462
4462
|
e.mergeDateTimeFormat(r, t.datetimeFormats[r]);
|
|
4463
4463
|
});
|
|
4464
4464
|
}
|
|
4465
|
-
if (
|
|
4465
|
+
if (he(t.numberFormats)) {
|
|
4466
4466
|
const o = Object.keys(t.numberFormats);
|
|
4467
4467
|
o.length && o.forEach((r) => {
|
|
4468
4468
|
e.mergeNumberFormat(r, t.numberFormats[r]);
|
|
@@ -4484,17 +4484,17 @@ const Ou = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
4484
4484
|
return e && (t = aa(e)[ro]) ? { [ro]: t } : null;
|
|
4485
4485
|
};
|
|
4486
4486
|
function Ru(e = {}) {
|
|
4487
|
-
const { __root: t, __injectWithOption: n } = e, i = t === void 0, a = e.flatJson, o = Ui ?
|
|
4487
|
+
const { __root: t, __injectWithOption: n } = e, i = t === void 0, a = e.flatJson, o = Ui ? ie : va;
|
|
4488
4488
|
let r = Re(e.inheritLocale) ? e.inheritLocale : !0;
|
|
4489
4489
|
const l = o(
|
|
4490
4490
|
// prettier-ignore
|
|
4491
|
-
t && r ? t.locale.value :
|
|
4491
|
+
t && r ? t.locale.value : ee(e.locale) ? e.locale : En
|
|
4492
4492
|
), s = o(
|
|
4493
4493
|
// prettier-ignore
|
|
4494
|
-
t && r ? t.fallbackLocale.value :
|
|
4495
|
-
), u = o(oa(l.value, e)), m = o(
|
|
4494
|
+
t && r ? t.fallbackLocale.value : ee(e.fallbackLocale) || Te(e.fallbackLocale) || fe(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
4495
|
+
), u = o(oa(l.value, e)), m = o(fe(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), d = o(fe(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
4496
4496
|
let c = t ? t.missingWarn : Re(e.missingWarn) || wn(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : Re(e.fallbackWarn) || wn(e.fallbackWarn) ? e.fallbackWarn : !0, b = t ? t.fallbackRoot : Re(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, S = Oe(e.missing) ? e.missing : null, v = Oe(e.missing) ? uo(e.missing) : null, h = Oe(e.postTranslation) ? e.postTranslation : null, E = t ? t.warnHtmlMessage : Re(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter;
|
|
4497
|
-
const A = t ? t.modifiers :
|
|
4497
|
+
const A = t ? t.modifiers : fe(e.modifiers) ? e.modifiers : {};
|
|
4498
4498
|
let T = e.pluralRules || t && t.pluralRules, w;
|
|
4499
4499
|
w = (() => {
|
|
4500
4500
|
i && qi(null);
|
|
@@ -4517,7 +4517,7 @@ function Ru(e = {}) {
|
|
|
4517
4517
|
messageCompiler: e.messageCompiler,
|
|
4518
4518
|
__meta: { framework: "vue" }
|
|
4519
4519
|
};
|
|
4520
|
-
F.datetimeFormats = m.value, F.numberFormats = d.value, F.__datetimeFormatters =
|
|
4520
|
+
F.datetimeFormats = m.value, F.numberFormats = d.value, F.__datetimeFormatters = fe(w) ? w.__datetimeFormatters : void 0, F.__numberFormatters = fe(w) ? w.__numberFormatters : void 0;
|
|
4521
4521
|
const j = ou(F);
|
|
4522
4522
|
return i && qi(j), j;
|
|
4523
4523
|
})(), Jt(w, l.value, s.value);
|
|
@@ -4550,10 +4550,10 @@ function Ru(e = {}) {
|
|
|
4550
4550
|
function $() {
|
|
4551
4551
|
return S;
|
|
4552
4552
|
}
|
|
4553
|
-
function
|
|
4553
|
+
function ue(F) {
|
|
4554
4554
|
F !== null && (v = uo(F)), S = F, w.missing = v;
|
|
4555
4555
|
}
|
|
4556
|
-
const
|
|
4556
|
+
const de = (F, j, ge, ke, tt, ln) => {
|
|
4557
4557
|
k();
|
|
4558
4558
|
let Ut;
|
|
4559
4559
|
try {
|
|
@@ -4561,9 +4561,9 @@ function Ru(e = {}) {
|
|
|
4561
4561
|
} finally {
|
|
4562
4562
|
__INTLIFY_PROD_DEVTOOLS__, i || (w.fallbackContext = void 0);
|
|
4563
4563
|
}
|
|
4564
|
-
if (
|
|
4565
|
-
Ne(Ut) && Ut === Mn ||
|
|
4566
|
-
const [fa,
|
|
4564
|
+
if (ge !== "translate exists" && // for not `te` (e.g `t`)
|
|
4565
|
+
Ne(Ut) && Ut === Mn || ge === "translate exists" && !Ut) {
|
|
4566
|
+
const [fa, Yd] = j();
|
|
4567
4567
|
return t && b ? ke(t) : tt(fa);
|
|
4568
4568
|
} else {
|
|
4569
4569
|
if (ln(Ut))
|
|
@@ -4572,62 +4572,62 @@ function Ru(e = {}) {
|
|
|
4572
4572
|
}
|
|
4573
4573
|
};
|
|
4574
4574
|
function we(...F) {
|
|
4575
|
-
return
|
|
4575
|
+
return de((j) => Reflect.apply(oo, null, [j, ...F]), () => ii(...F), "translate", (j) => Reflect.apply(j.t, j, [...F]), (j) => j, (j) => ee(j));
|
|
4576
4576
|
}
|
|
4577
4577
|
function G(...F) {
|
|
4578
|
-
const [j,
|
|
4579
|
-
if (ke && !
|
|
4578
|
+
const [j, ge, ke] = F;
|
|
4579
|
+
if (ke && !he(ke))
|
|
4580
4580
|
throw nn(Yt.INVALID_ARGUMENT);
|
|
4581
|
-
return we(j,
|
|
4581
|
+
return we(j, ge, Pe({ resolvedMessage: !0 }, ke || {}));
|
|
4582
4582
|
}
|
|
4583
4583
|
function H(...F) {
|
|
4584
|
-
return
|
|
4584
|
+
return de((j) => Reflect.apply(Zi, null, [j, ...F]), () => ti(...F), "datetime format", (j) => Reflect.apply(j.d, j, [...F]), () => Yi, (j) => ee(j));
|
|
4585
4585
|
}
|
|
4586
4586
|
function Z(...F) {
|
|
4587
|
-
return
|
|
4587
|
+
return de((j) => Reflect.apply(eo, null, [j, ...F]), () => ni(...F), "number format", (j) => Reflect.apply(j.n, j, [...F]), () => Yi, (j) => ee(j));
|
|
4588
4588
|
}
|
|
4589
|
-
function
|
|
4590
|
-
return F.map((j) =>
|
|
4589
|
+
function te(F) {
|
|
4590
|
+
return F.map((j) => ee(j) || Ne(j) || Re(j) ? ao(String(j)) : j);
|
|
4591
4591
|
}
|
|
4592
|
-
const
|
|
4593
|
-
normalize:
|
|
4592
|
+
const Q = {
|
|
4593
|
+
normalize: te,
|
|
4594
4594
|
interpolate: (F) => F,
|
|
4595
4595
|
type: "vnode"
|
|
4596
4596
|
};
|
|
4597
|
-
function
|
|
4598
|
-
return
|
|
4599
|
-
let
|
|
4597
|
+
function le(...F) {
|
|
4598
|
+
return de((j) => {
|
|
4599
|
+
let ge;
|
|
4600
4600
|
const ke = j;
|
|
4601
4601
|
try {
|
|
4602
|
-
ke.processor =
|
|
4602
|
+
ke.processor = Q, ge = Reflect.apply(oo, null, [ke, ...F]);
|
|
4603
4603
|
} finally {
|
|
4604
4604
|
ke.processor = null;
|
|
4605
4605
|
}
|
|
4606
|
-
return
|
|
4606
|
+
return ge;
|
|
4607
4607
|
}, () => ii(...F), "translate", (j) => j[oi](...F), (j) => [ao(j)], (j) => Te(j));
|
|
4608
4608
|
}
|
|
4609
|
-
function
|
|
4610
|
-
return
|
|
4609
|
+
function oe(...F) {
|
|
4610
|
+
return de((j) => Reflect.apply(eo, null, [j, ...F]), () => ni(...F), "number format", (j) => j[ri](...F), so, (j) => ee(j) || Te(j));
|
|
4611
4611
|
}
|
|
4612
4612
|
function Ae(...F) {
|
|
4613
|
-
return
|
|
4613
|
+
return de((j) => Reflect.apply(Zi, null, [j, ...F]), () => ti(...F), "datetime format", (j) => j[ai](...F), so, (j) => ee(j) || Te(j));
|
|
4614
4614
|
}
|
|
4615
4615
|
function je(F) {
|
|
4616
4616
|
T = F, w.pluralRules = T;
|
|
4617
4617
|
}
|
|
4618
4618
|
function Lt(F, j) {
|
|
4619
|
-
return
|
|
4619
|
+
return de(() => {
|
|
4620
4620
|
if (!F)
|
|
4621
4621
|
return !1;
|
|
4622
|
-
const
|
|
4623
|
-
return Kt(tt) || Ye(tt) ||
|
|
4624
|
-
}, () => [F], "translate exists", (
|
|
4622
|
+
const ge = ee(j) ? j : l.value, ke = ct(ge), tt = w.messageResolver(ke, F);
|
|
4623
|
+
return Kt(tt) || Ye(tt) || ee(tt);
|
|
4624
|
+
}, () => [F], "translate exists", (ge) => Reflect.apply(ge.te, ge, [F, j]), Su, (ge) => Re(ge));
|
|
4625
4625
|
}
|
|
4626
4626
|
function qt(F) {
|
|
4627
4627
|
let j = null;
|
|
4628
|
-
const
|
|
4629
|
-
for (let ke = 0; ke <
|
|
4630
|
-
const tt = u.value[
|
|
4628
|
+
const ge = Ko(w, s.value, l.value);
|
|
4629
|
+
for (let ke = 0; ke < ge.length; ke++) {
|
|
4630
|
+
const tt = u.value[ge[ke]] || {}, ln = w.messageResolver(tt, F);
|
|
4631
4631
|
if (ln != null) {
|
|
4632
4632
|
j = ln;
|
|
4633
4633
|
break;
|
|
@@ -4644,20 +4644,20 @@ function Ru(e = {}) {
|
|
|
4644
4644
|
}
|
|
4645
4645
|
function dt(F, j) {
|
|
4646
4646
|
if (a) {
|
|
4647
|
-
const
|
|
4648
|
-
for (const ke in
|
|
4649
|
-
Ze(
|
|
4650
|
-
j =
|
|
4647
|
+
const ge = { [F]: j };
|
|
4648
|
+
for (const ke in ge)
|
|
4649
|
+
Ze(ge, ke) && on(ge[ke]);
|
|
4650
|
+
j = ge[F];
|
|
4651
4651
|
}
|
|
4652
4652
|
u.value[F] = j, w.messages = u.value;
|
|
4653
4653
|
}
|
|
4654
4654
|
function wt(F, j) {
|
|
4655
4655
|
u.value[F] = u.value[F] || {};
|
|
4656
|
-
const
|
|
4656
|
+
const ge = { [F]: j };
|
|
4657
4657
|
if (a)
|
|
4658
|
-
for (const ke in
|
|
4659
|
-
Ze(
|
|
4660
|
-
j =
|
|
4658
|
+
for (const ke in ge)
|
|
4659
|
+
Ze(ge, ke) && on(ge[ke]);
|
|
4660
|
+
j = ge[F], bn(j, u.value[F]), w.messages = u.value;
|
|
4661
4661
|
}
|
|
4662
4662
|
function xt(F) {
|
|
4663
4663
|
return m.value[F] || {};
|
|
@@ -4682,7 +4682,7 @@ function Ru(e = {}) {
|
|
|
4682
4682
|
}), Le(t.fallbackLocale, (F) => {
|
|
4683
4683
|
r && (s.value = F, w.fallbackLocale = F, Jt(w, l.value, s.value));
|
|
4684
4684
|
}));
|
|
4685
|
-
const
|
|
4685
|
+
const ce = {
|
|
4686
4686
|
id: lo,
|
|
4687
4687
|
locale: I,
|
|
4688
4688
|
fallbackLocale: N,
|
|
@@ -4748,10 +4748,10 @@ function Ru(e = {}) {
|
|
|
4748
4748
|
getPostTranslationHandler: D,
|
|
4749
4749
|
setPostTranslationHandler: C,
|
|
4750
4750
|
getMissingHandler: $,
|
|
4751
|
-
setMissingHandler:
|
|
4751
|
+
setMissingHandler: ue,
|
|
4752
4752
|
[Eu]: je
|
|
4753
4753
|
};
|
|
4754
|
-
return
|
|
4754
|
+
return ce.datetimeFormats = P, ce.numberFormats = V, ce.rt = G, ce.te = Lt, ce.tm = yt, ce.d = H, ce.n = Z, ce.getDateTimeFormat = xt, ce.setDateTimeFormat = f, ce.mergeDateTimeFormat = g, ce.getNumberFormat = L, ce.setNumberFormat = Y, ce.mergeNumberFormat = X, ce[ia] = n, ce[oi] = le, ce[ai] = Ae, ce[ri] = oe, ce;
|
|
4755
4755
|
}
|
|
4756
4756
|
const Ei = {
|
|
4757
4757
|
tag: {
|
|
@@ -4795,21 +4795,21 @@ Pe({
|
|
|
4795
4795
|
}
|
|
4796
4796
|
}, Ei);
|
|
4797
4797
|
function Au(e) {
|
|
4798
|
-
return Te(e) && !
|
|
4798
|
+
return Te(e) && !ee(e[0]);
|
|
4799
4799
|
}
|
|
4800
4800
|
function sa(e, t, n, i) {
|
|
4801
4801
|
const { slots: a, attrs: o } = t;
|
|
4802
4802
|
return () => {
|
|
4803
4803
|
const r = { part: !0 };
|
|
4804
4804
|
let l = ye();
|
|
4805
|
-
e.locale && (r.locale = e.locale),
|
|
4805
|
+
e.locale && (r.locale = e.locale), ee(e.format) ? r.key = e.format : he(e.format) && (ee(e.format.key) && (r.key = e.format.key), l = Object.keys(e.format).reduce((c, p) => n.includes(p) ? Pe(ye(), c, { [p]: e.format[p] }) : c, ye()));
|
|
4806
4806
|
const s = i(e.value, r, l);
|
|
4807
4807
|
let u = [r.key];
|
|
4808
4808
|
Te(s) ? u = s.map((c, p) => {
|
|
4809
4809
|
const b = a[c.type], _ = b ? b({ [c.type]: c.value, index: p, parts: s }) : [c.value];
|
|
4810
4810
|
return Au(_) && (_[0].key = `${c.type}-${p}`), _;
|
|
4811
|
-
}) :
|
|
4812
|
-
const m = Pe(ye(), o), d =
|
|
4811
|
+
}) : ee(s) && (u = [s]);
|
|
4812
|
+
const m = Pe(ye(), o), d = ee(e.tag) || he(e.tag) ? e.tag : ra();
|
|
4813
4813
|
return Fe(d, m, u);
|
|
4814
4814
|
};
|
|
4815
4815
|
}
|
|
@@ -4906,7 +4906,7 @@ if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
|
4906
4906
|
const Lu = { class: "flex flex-col gap-4" }, xu = { class: "fm-select__menu__wrapper" }, Uu = { class: "fm-typo-en-body-lg-600 text-fm-color-primary" }, Vu = {
|
|
4907
4907
|
key: 0,
|
|
4908
4908
|
class: "flex flex-col gap-4 justify-center"
|
|
4909
|
-
}, zu = /* @__PURE__ */
|
|
4909
|
+
}, zu = /* @__PURE__ */ ve({
|
|
4910
4910
|
__name: "SubcategorySelector",
|
|
4911
4911
|
props: {
|
|
4912
4912
|
modelValue: {},
|
|
@@ -4920,7 +4920,7 @@ const Lu = { class: "flex flex-col gap-4" }, xu = { class: "fm-select__menu__wra
|
|
|
4920
4920
|
},
|
|
4921
4921
|
emits: ["update:modelValue"],
|
|
4922
4922
|
setup(e, { emit: t }) {
|
|
4923
|
-
const n = e, i = t, a = lt(), o = Qe(), r = St(o), l = Ot(r), { t: s } = Dn(), u =
|
|
4923
|
+
const n = e, i = t, a = lt(), o = Qe(), r = St(o), l = Ot(r), { t: s } = Dn(), u = ie(null), m = ie([]), d = Ya({
|
|
4924
4924
|
dialog: a,
|
|
4925
4925
|
menuLoader: l,
|
|
4926
4926
|
isLocalOnly: n.isLocalOnly
|
|
@@ -4940,7 +4940,7 @@ const Lu = { class: "flex flex-col gap-4" }, xu = { class: "fm-select__menu__wra
|
|
|
4940
4940
|
}, _ = z(() => n.items.reduce(
|
|
4941
4941
|
(h, E) => (h[E.value] = E, h),
|
|
4942
4942
|
{}
|
|
4943
|
-
)), S = z(() => m.value.length > 0 ? m.value.map((h) => h.label).join("/") : n.placeholder), v =
|
|
4943
|
+
)), S = z(() => m.value.length > 0 ? m.value.map((h) => h.label).join("/") : n.placeholder), v = ie(!1);
|
|
4944
4944
|
return Le(
|
|
4945
4945
|
() => n.modelValue,
|
|
4946
4946
|
(h) => {
|
|
@@ -5058,11 +5058,13 @@ const Gu = {
|
|
|
5058
5058
|
class: "flex items-center gap-8"
|
|
5059
5059
|
}, Qu = {
|
|
5060
5060
|
class: "flex flex-col gap-16"
|
|
5061
|
+
}, ec = {
|
|
5062
|
+
class: "flex flex-col gap-16"
|
|
5061
5063
|
};
|
|
5062
5064
|
var Mt = /* @__PURE__ */ function(e) {
|
|
5063
5065
|
return e.ADD_ON = "ADD_ON", e.PRODUCT = "PRODUCT", e;
|
|
5064
5066
|
}(Mt || {});
|
|
5065
|
-
const
|
|
5067
|
+
const tc = /* @__PURE__ */ ve({
|
|
5066
5068
|
__name: "ProductDetail",
|
|
5067
5069
|
props: {
|
|
5068
5070
|
isOverride: {
|
|
@@ -5098,10 +5100,10 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5098
5100
|
return v.value.map((D) => D._id);
|
|
5099
5101
|
},
|
|
5100
5102
|
set(D = []) {
|
|
5101
|
-
const [C, ...$] = D.map((
|
|
5102
|
-
const
|
|
5103
|
-
return
|
|
5104
|
-
_id:
|
|
5103
|
+
const [C, ...$] = D.map((ue) => {
|
|
5104
|
+
const de = h.value[ue];
|
|
5105
|
+
return de || {
|
|
5106
|
+
_id: ue,
|
|
5105
5107
|
position: null
|
|
5106
5108
|
};
|
|
5107
5109
|
});
|
|
@@ -5111,7 +5113,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5111
5113
|
}
|
|
5112
5114
|
d("update:form", "category", C._id), d("update:form", "additionalCategories", $);
|
|
5113
5115
|
}
|
|
5114
|
-
}), O =
|
|
5116
|
+
}), O = ie(), A = ({
|
|
5115
5117
|
multiple: D = !0
|
|
5116
5118
|
} = {}) => n.isAddon ? null : R(Ur, {
|
|
5117
5119
|
ref: O,
|
|
@@ -5146,12 +5148,12 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5146
5148
|
return D ? i.items.filter(($) => !!$.category && $._id !== n.form._id && $.name === D).length : 0;
|
|
5147
5149
|
}), w = z(() => n.isAddon ? Mt.ADD_ON : Mt.PRODUCT);
|
|
5148
5150
|
function U(D) {
|
|
5149
|
-
var $,
|
|
5151
|
+
var $, ue, de;
|
|
5150
5152
|
if (w.value === D) return;
|
|
5151
5153
|
const C = D == Mt.ADD_ON;
|
|
5152
|
-
d("update:form", "category", n.isOverride ? C ? "" : (($ = n.fallback) == null ? void 0 : $.category) ?? ((
|
|
5154
|
+
d("update:form", "category", n.isOverride ? C ? "" : (($ = n.fallback) == null ? void 0 : $.category) ?? ((ue = b.value.find((we) => !!we.value)) == null ? void 0 : ue.value) : C ? null : (de = b.value.find((we) => !!we.value)) == null ? void 0 : de.value), C && d("update:form", "additionalCategories", []);
|
|
5153
5155
|
}
|
|
5154
|
-
const k =
|
|
5156
|
+
const k = ie(!1);
|
|
5155
5157
|
async function I() {
|
|
5156
5158
|
var D, C;
|
|
5157
5159
|
if (!n.form.name) {
|
|
@@ -5169,8 +5171,8 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5169
5171
|
}), We.toggleDialog(!0);
|
|
5170
5172
|
const $ = await ((D = We.getItemDescription) == null ? void 0 : D.call(We, {
|
|
5171
5173
|
name: n.form.name || ""
|
|
5172
|
-
}, !0)),
|
|
5173
|
-
typeof
|
|
5174
|
+
}, !0)), ue = (C = $ == null ? void 0 : $.data) == null ? void 0 : C.value;
|
|
5175
|
+
typeof ue == "string" && d("update:form", "description", ue);
|
|
5174
5176
|
} finally {
|
|
5175
5177
|
k.value = !1;
|
|
5176
5178
|
}
|
|
@@ -5189,17 +5191,17 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5189
5191
|
t: V
|
|
5190
5192
|
} = Se();
|
|
5191
5193
|
return (D, C) => {
|
|
5192
|
-
const $ = K("fm-text-field"),
|
|
5194
|
+
const $ = K("fm-text-field"), ue = K("fm-textarea"), de = K("fm-radio"), we = K("FmSnackbar"), G = K("FmButton"), H = K("fm-radio-group"), Z = K("FmFormGroup"), te = K("FmStepperField"), ne = fo("tooltip");
|
|
5193
5195
|
return x(), J(ut, {
|
|
5194
5196
|
title: y(V)("menu.product.form.detail.title")
|
|
5195
5197
|
}, {
|
|
5196
5198
|
default: W(() => {
|
|
5197
|
-
var
|
|
5199
|
+
var Q, le;
|
|
5198
5200
|
return [B("div", Gu, [B("div", Bu, [B("div", Wu, [B("div", Hu, [R($, {
|
|
5199
5201
|
"model-value": D.form.code,
|
|
5200
|
-
placeholder: ((
|
|
5202
|
+
placeholder: ((Q = D.fallback) == null ? void 0 : Q.code) || y(V)("menu.product.form.detail.fields.code.placeholder"),
|
|
5201
5203
|
label: y(V)("menu.product.form.detail.fields.code.label"),
|
|
5202
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
5204
|
+
"onUpdate:modelValue": C[0] || (C[0] = (oe) => d("update:form", "code", y(la)(oe, D.isOverride)))
|
|
5203
5205
|
}, null, 8, ["model-value", "placeholder", "label"])]), B("div", ju, [R($, {
|
|
5204
5206
|
id: "product-name",
|
|
5205
5207
|
disabled: !c.value.name,
|
|
@@ -5207,17 +5209,17 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5207
5209
|
count: T.value
|
|
5208
5210
|
}) : void 0,
|
|
5209
5211
|
"model-value": D.form.name,
|
|
5210
|
-
placeholder: (
|
|
5211
|
-
rules: c.value.name ? [(
|
|
5212
|
+
placeholder: (le = D.fallback) == null ? void 0 : le.name,
|
|
5213
|
+
rules: c.value.name ? [(oe) => !!oe || y(V)("menu.product.form.detail.fields.name.required")] : void 0,
|
|
5212
5214
|
"label-mark": "required",
|
|
5213
5215
|
autofocus: "",
|
|
5214
5216
|
label: y(V)("menu.product.form.detail.fields.name.label"),
|
|
5215
|
-
"onUpdate:modelValue": C[1] || (C[1] = (
|
|
5216
|
-
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [R(
|
|
5217
|
+
"onUpdate:modelValue": C[1] || (C[1] = (oe) => d("update:form", "name", oe))
|
|
5218
|
+
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [R(ue, {
|
|
5217
5219
|
disabled: !c.value.description,
|
|
5218
5220
|
"model-value": D.form.description || void 0,
|
|
5219
5221
|
placeholder: y(V)("menu.product.form.detail.fields.description.placeholder"),
|
|
5220
|
-
"onUpdate:modelValue": C[2] || (C[2] = (
|
|
5222
|
+
"onUpdate:modelValue": C[2] || (C[2] = (oe) => d("update:form", "description", oe.trim())),
|
|
5221
5223
|
class: "description"
|
|
5222
5224
|
}, {
|
|
5223
5225
|
label: W(() => [B("p", Yu, [Bn(Ee(y(V)("menu.product.form.detail.fields.description.label")) + " ", 1), B("span", Xu, Ee(y(V)("menu.product.form.detail.fields.description.optional")), 1)])]),
|
|
@@ -5228,8 +5230,8 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5228
5230
|
}, null, 512), [[ne, y(yo)("Suggest description")]])])]), R(Is, {
|
|
5229
5231
|
disabled: !c.value.thumbnail,
|
|
5230
5232
|
"model-value": D.thumbnail,
|
|
5231
|
-
"onUpdate:modelValue": C[3] || (C[3] = (
|
|
5232
|
-
"onReset:modelValue": C[4] || (C[4] = (
|
|
5233
|
+
"onUpdate:modelValue": C[3] || (C[3] = (oe) => d("update:thumbnail", oe)),
|
|
5234
|
+
"onReset:modelValue": C[4] || (C[4] = (oe) => d("reset:thumbnail"))
|
|
5233
5235
|
}, null, 8, ["disabled", "model-value"])]), R(bt, {
|
|
5234
5236
|
label: y(i).isV4 ? y(V)("menu.product.form.detail.category.label") : y(V)("menu.product.form.detail.category.label_singular")
|
|
5235
5237
|
}, {
|
|
@@ -5237,9 +5239,9 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5237
5239
|
key: 0,
|
|
5238
5240
|
disabled: !c.value.category,
|
|
5239
5241
|
"model-value": w.value,
|
|
5240
|
-
"onUpdate:modelValue": C[5] || (C[5] = (
|
|
5242
|
+
"onUpdate:modelValue": C[5] || (C[5] = (oe) => U(oe))
|
|
5241
5243
|
}, {
|
|
5242
|
-
default: W(() => [B("div", qu, [B("div", Ju, [R(
|
|
5244
|
+
default: W(() => [B("div", qu, [B("div", Ju, [R(de, {
|
|
5243
5245
|
disabled: S.value || !c.value.category,
|
|
5244
5246
|
value: Mt.PRODUCT,
|
|
5245
5247
|
label: y(V)("menu.product.form.detail.category.options.product.label"),
|
|
@@ -5257,7 +5259,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5257
5259
|
"prepend-icon": "add",
|
|
5258
5260
|
variant: "secondary",
|
|
5259
5261
|
onClick: y(u).create
|
|
5260
|
-
}, null, 8, ["label", "onClick"])])) : se("", !0), R(
|
|
5262
|
+
}, null, 8, ["label", "onClick"])])) : se("", !0), R(de, {
|
|
5261
5263
|
value: Mt.ADD_ON,
|
|
5262
5264
|
label: y(V)("menu.product.form.detail.category.options.addon.label"),
|
|
5263
5265
|
sublabel: y(V)("menu.product.form.detail.category.options.addon.sublabel")
|
|
@@ -5266,8 +5268,8 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5266
5268
|
}, 8, ["disabled", "model-value"])) : se("", !0), y(i).isV4 ? se("", !0) : (x(), J(Z, {
|
|
5267
5269
|
key: 1,
|
|
5268
5270
|
"model-value": D.form.category,
|
|
5269
|
-
rules: [(
|
|
5270
|
-
"onUpdate:modelValue": C[6] || (C[6] = (
|
|
5271
|
+
rules: [(oe) => !oe && !D.isOverride ? "Category is required" : !0],
|
|
5272
|
+
"onUpdate:modelValue": C[6] || (C[6] = (oe) => d("update:form", "category", oe))
|
|
5271
5273
|
}, {
|
|
5272
5274
|
default: W(() => [R(A, {
|
|
5273
5275
|
multiple: !1
|
|
@@ -5281,36 +5283,40 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5281
5283
|
}, {
|
|
5282
5284
|
default: W(() => [B("div", Qu, [R($u, {
|
|
5283
5285
|
modelValue: P.value,
|
|
5284
|
-
"onUpdate:modelValue": C[7] || (C[7] = (
|
|
5286
|
+
"onUpdate:modelValue": C[7] || (C[7] = (oe) => P.value = oe),
|
|
5285
5287
|
items: M.value,
|
|
5286
5288
|
placeholder: y(V)("menu.product.form.detail.path.placeholder"),
|
|
5287
5289
|
disabled: !c.value.category,
|
|
5288
5290
|
"is-local-only": !1
|
|
5289
5291
|
}, null, 8, ["modelValue", "items", "placeholder", "disabled"])])]),
|
|
5290
5292
|
_: 1
|
|
5291
|
-
}, 8, ["label"])) : se("", !0), R(
|
|
5293
|
+
}, 8, ["label"])) : se("", !0), B("div", ec, [R(te, {
|
|
5294
|
+
label: "Shelf Life (mins)",
|
|
5295
|
+
"model-value": D.form.shelfLife ?? null,
|
|
5296
|
+
"onUpdate:modelValue": C[8] || (C[8] = (oe) => oe && d("update:form", "shelfLife", oe))
|
|
5297
|
+
}, null, 8, ["model-value"])]), R(hi, {
|
|
5292
5298
|
disabled: !c.value.orderFrom,
|
|
5293
5299
|
"model-value": D.form.orderFrom,
|
|
5294
5300
|
"order-from-none": c.value.orderFromNone,
|
|
5295
5301
|
required: c.value.orderFrom,
|
|
5296
5302
|
"default-label": y(V)("menu.product.form.detail.order_from.default"),
|
|
5297
5303
|
label: y(V)("menu.product.form.detail.order_from.label"),
|
|
5298
|
-
"onUpdate:modelValue": C[
|
|
5304
|
+
"onUpdate:modelValue": C[9] || (C[9] = (oe) => oe && d("update:form", "orderFrom", oe))
|
|
5299
5305
|
}, null, 8, ["disabled", "model-value", "order-from-none", "required", "default-label", "label"])];
|
|
5300
5306
|
}),
|
|
5301
5307
|
_: 1
|
|
5302
5308
|
}, 8, ["title"]);
|
|
5303
5309
|
};
|
|
5304
5310
|
}
|
|
5305
|
-
}),
|
|
5306
|
-
function
|
|
5307
|
-
return x(), re("div",
|
|
5308
|
-
B("div",
|
|
5311
|
+
}), nc = /* @__PURE__ */ Ct(tc, [["__scopeId", "data-v-f0d4faa5"]]), ic = {}, oc = { class: "overflow-x-auto" }, ac = { class: "xs:w-[600px]" };
|
|
5312
|
+
function rc(e, t) {
|
|
5313
|
+
return x(), re("div", oc, [
|
|
5314
|
+
B("div", ac, [
|
|
5309
5315
|
Ce(e.$slots, "default")
|
|
5310
5316
|
])
|
|
5311
5317
|
]);
|
|
5312
5318
|
}
|
|
5313
|
-
const ua = /* @__PURE__ */ Ct(
|
|
5319
|
+
const ua = /* @__PURE__ */ Ct(ic, [["render", rc]]), sc = /* @__PURE__ */ ve({
|
|
5314
5320
|
__name: "AddForm",
|
|
5315
5321
|
setup(e) {
|
|
5316
5322
|
const t = Me(), n = z(() => t.rules.group), i = z(() => !!t.state.currentCatalogId || !!t.state.currentSchedulerId), a = z(() => {
|
|
@@ -5340,8 +5346,8 @@ const ua = /* @__PURE__ */ Ct(nc, [["render", ac]]), rc = /* @__PURE__ */ ge({
|
|
|
5340
5346
|
items: {},
|
|
5341
5347
|
position: t.groups.length - 1,
|
|
5342
5348
|
itemsLinked: []
|
|
5343
|
-
}), r =
|
|
5344
|
-
return (s, u) => n.value.create ? (x(), J(y(
|
|
5349
|
+
}), r = ie(o()), { t: l } = Se();
|
|
5350
|
+
return (s, u) => n.value.create ? (x(), J(y(Nc), {
|
|
5345
5351
|
key: 0,
|
|
5346
5352
|
"categorized-items": y(t).categorizedItems,
|
|
5347
5353
|
config: a.value,
|
|
@@ -5359,13 +5365,13 @@ const ua = /* @__PURE__ */ Ct(nc, [["render", ac]]), rc = /* @__PURE__ */ ge({
|
|
|
5359
5365
|
_: 3
|
|
5360
5366
|
}, 8, ["categorized-items", "config", "group", "title"])) : se("", !0);
|
|
5361
5367
|
}
|
|
5362
|
-
}),
|
|
5363
|
-
function
|
|
5364
|
-
return x(), re("div",
|
|
5368
|
+
}), lc = {}, uc = { class: "flex gap-16" };
|
|
5369
|
+
function cc(e, t) {
|
|
5370
|
+
return x(), re("div", uc, [
|
|
5365
5371
|
Ce(e.$slots, "default")
|
|
5366
5372
|
]);
|
|
5367
5373
|
}
|
|
5368
|
-
const
|
|
5374
|
+
const dc = /* @__PURE__ */ Ct(lc, [["render", cc]]), mc = { class: "fm-typo-en-title-md-600 mr-auto" }, pc = { class: "space-y-40" }, fc = { class: "flex gap-8 items-center justify-start" }, hc = /* @__PURE__ */ ve({
|
|
5369
5375
|
__name: "Form",
|
|
5370
5376
|
props: {
|
|
5371
5377
|
bindingKey: {},
|
|
@@ -5376,9 +5382,9 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5376
5382
|
},
|
|
5377
5383
|
emits: ["update:inventory"],
|
|
5378
5384
|
setup(e, { expose: t, emit: n }) {
|
|
5379
|
-
const i = e, a =
|
|
5385
|
+
const i = e, a = ie(!1), o = (p) => {
|
|
5380
5386
|
sn.isBoolean(p) ? a.value = p : a.value = !a.value;
|
|
5381
|
-
}, r =
|
|
5387
|
+
}, r = ie([]), l = n, s = ui(
|
|
5382
5388
|
() => !at.isEqual(r.value, i.initialValue),
|
|
5383
5389
|
() => {
|
|
5384
5390
|
a.value = !1;
|
|
@@ -5415,10 +5421,10 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5415
5421
|
"onOn:clickedAway": y(s)
|
|
5416
5422
|
}, {
|
|
5417
5423
|
"side-sheet-header": W(() => [
|
|
5418
|
-
B("p",
|
|
5424
|
+
B("p", mc, Ee(p.title || y(d)("menu.inventory.form.title")), 1)
|
|
5419
5425
|
]),
|
|
5420
5426
|
"side-sheet-footer": W(() => [
|
|
5421
|
-
B("div",
|
|
5427
|
+
B("div", fc, [
|
|
5422
5428
|
R(v, {
|
|
5423
5429
|
label: y(d)("menu.common.actions.add"),
|
|
5424
5430
|
size: "lg",
|
|
@@ -5434,7 +5440,7 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5434
5440
|
])
|
|
5435
5441
|
]),
|
|
5436
5442
|
default: W(() => [
|
|
5437
|
-
B("div",
|
|
5443
|
+
B("div", pc, [
|
|
5438
5444
|
R(_, {
|
|
5439
5445
|
"model-value": p.name,
|
|
5440
5446
|
disabled: "",
|
|
@@ -5459,8 +5465,8 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5459
5465
|
], 64);
|
|
5460
5466
|
};
|
|
5461
5467
|
}
|
|
5462
|
-
}), li =
|
|
5463
|
-
function
|
|
5468
|
+
}), li = hc;
|
|
5469
|
+
function gc() {
|
|
5464
5470
|
const e = an();
|
|
5465
5471
|
function t({
|
|
5466
5472
|
component: n,
|
|
@@ -5495,7 +5501,7 @@ function hc() {
|
|
|
5495
5501
|
open: t
|
|
5496
5502
|
};
|
|
5497
5503
|
}
|
|
5498
|
-
const ca = /* @__PURE__ */
|
|
5504
|
+
const ca = /* @__PURE__ */ ve({
|
|
5499
5505
|
__name: "PriceTierForm",
|
|
5500
5506
|
props: /* @__PURE__ */ wa({
|
|
5501
5507
|
priceTiers: {
|
|
@@ -5554,7 +5560,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5554
5560
|
}, null, 8, ["row-data", "page-size"])]);
|
|
5555
5561
|
};
|
|
5556
5562
|
}
|
|
5557
|
-
}),
|
|
5563
|
+
}), vc = { class: "fm-typo-en-title-md-600" }, _c = { class: "py-16 space-y-32" }, bc = { class: "flex gap-8 items-center justify-start" }, yc = /* @__PURE__ */ ve({
|
|
5558
5564
|
__name: "PriceTierSheet",
|
|
5559
5565
|
props: {
|
|
5560
5566
|
initialValue: {},
|
|
@@ -5563,9 +5569,9 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5563
5569
|
},
|
|
5564
5570
|
emits: ["update:show", "submit"],
|
|
5565
5571
|
setup(e, { emit: t }) {
|
|
5566
|
-
const { t: n } = Se(), i = t, a =
|
|
5572
|
+
const { t: n } = Se(), i = t, a = ie(!0), o = () => {
|
|
5567
5573
|
a.value = !1, i("update:show", !1);
|
|
5568
|
-
}, r = z(() => n("menu.price_tier.price_tier_config")), l = z(() => n("common.update")), s = e, u = ko(s.menuStore), m =
|
|
5574
|
+
}, r = z(() => n("menu.price_tier.price_tier_config")), l = z(() => n("common.update")), s = e, u = ko(s.menuStore), m = ie(s.initialValue ? Qa(s.initialValue) : {}), d = ui(
|
|
5569
5575
|
() => !at.isEqual(s.initialValue || {}, m.value),
|
|
5570
5576
|
() => {
|
|
5571
5577
|
o();
|
|
@@ -5589,10 +5595,10 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5589
5595
|
"onOn:clickedAway": y(d)
|
|
5590
5596
|
}, {
|
|
5591
5597
|
"side-sheet-header": W(() => [
|
|
5592
|
-
B("p",
|
|
5598
|
+
B("p", vc, Ee(r.value), 1)
|
|
5593
5599
|
]),
|
|
5594
5600
|
"side-sheet-footer": W(() => [
|
|
5595
|
-
B("div",
|
|
5601
|
+
B("div", bc, [
|
|
5596
5602
|
R(S, {
|
|
5597
5603
|
label: l.value,
|
|
5598
5604
|
size: "lg",
|
|
@@ -5608,7 +5614,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5608
5614
|
])
|
|
5609
5615
|
]),
|
|
5610
5616
|
default: W(() => [
|
|
5611
|
-
B("div",
|
|
5617
|
+
B("div", _c, [
|
|
5612
5618
|
R(bt, {
|
|
5613
5619
|
label: y(n)("menu.price_tier.price_group"),
|
|
5614
5620
|
description: y(n)("menu.price_tier.description")
|
|
@@ -5638,7 +5644,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5638
5644
|
}, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]);
|
|
5639
5645
|
};
|
|
5640
5646
|
}
|
|
5641
|
-
}), da = /* @__PURE__ */
|
|
5647
|
+
}), da = /* @__PURE__ */ ve({
|
|
5642
5648
|
__name: "PriceTierButton",
|
|
5643
5649
|
props: {
|
|
5644
5650
|
priceTiers: {},
|
|
@@ -5648,10 +5654,10 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5648
5654
|
},
|
|
5649
5655
|
emits: ["update:priceTiers"],
|
|
5650
5656
|
setup(e, { emit: t }) {
|
|
5651
|
-
const n = e, i = t, a = z(() => Object.keys(n.priceTiers || {}).length > 0 ? "filled" : "outline"), o =
|
|
5657
|
+
const n = e, i = t, a = z(() => Object.keys(n.priceTiers || {}).length > 0 ? "filled" : "outline"), o = gc();
|
|
5652
5658
|
function r() {
|
|
5653
5659
|
o.open({
|
|
5654
|
-
component:
|
|
5660
|
+
component: yc,
|
|
5655
5661
|
props: {
|
|
5656
5662
|
initialValue: n.priceTiers,
|
|
5657
5663
|
fallback: n.fallback,
|
|
@@ -5684,15 +5690,15 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5684
5690
|
}, 8, ["content"]));
|
|
5685
5691
|
};
|
|
5686
5692
|
}
|
|
5687
|
-
}),
|
|
5693
|
+
}), wc = {
|
|
5688
5694
|
key: 0
|
|
5689
|
-
}, wc = {
|
|
5690
|
-
key: 1
|
|
5691
5695
|
}, Ec = {
|
|
5692
|
-
|
|
5696
|
+
key: 1
|
|
5693
5697
|
}, kc = {
|
|
5698
|
+
class: "xs:overflow-x-scroll"
|
|
5699
|
+
}, Sc = {
|
|
5694
5700
|
class: "xs:min-w-[640px]"
|
|
5695
|
-
},
|
|
5701
|
+
}, Oc = /* @__PURE__ */ ve({
|
|
5696
5702
|
__name: "OptionTable",
|
|
5697
5703
|
props: {
|
|
5698
5704
|
config: {},
|
|
@@ -5708,7 +5714,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5708
5714
|
}) {
|
|
5709
5715
|
const n = e, i = t;
|
|
5710
5716
|
Qe();
|
|
5711
|
-
const a = rn(), o = Me(), r = z(() => Ge.Country.getCountry(a.currentCountry.value)), l =
|
|
5717
|
+
const a = rn(), o = Me(), r = z(() => Ge.Country.getCountry(a.currentCountry.value)), l = ie(!1), s = z(() => n.config.isV4 || n.group.type === q.F_ADDON_GROUP_TYPE.enum.PRODUCT), u = z(() => s.value), m = z(() => s.value), d = z(() => Object.values(n.group.items).flatMap((G) => [{
|
|
5712
5718
|
_id: G._id,
|
|
5713
5719
|
combinationKey: void 0
|
|
5714
5720
|
}, ...(G.items ?? []).filter((H) => H.orderFrom !== q.F_ORDER_FROM.enum.NONE).map((H) => ({
|
|
@@ -5729,30 +5735,30 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5729
5735
|
}), S = z(() => !0), v = (G) => G ? Gt(G, !1) : "", h = (G) => {
|
|
5730
5736
|
var H;
|
|
5731
5737
|
return G == null ? "" : (H = Ma()[G]) == null ? void 0 : H.label;
|
|
5732
|
-
}, E = z(() => Object.values(b.value)), O =
|
|
5738
|
+
}, E = z(() => Object.values(b.value)), O = ie({}), {
|
|
5733
5739
|
t: A
|
|
5734
|
-
} = Se(), T =
|
|
5740
|
+
} = Se(), T = ie([{
|
|
5735
5741
|
accessorKey: "isDefault",
|
|
5736
5742
|
header: () => A("menu.group.option.is_default"),
|
|
5737
5743
|
enableSorting: !1,
|
|
5738
5744
|
size: 75,
|
|
5739
5745
|
cell: (G) => {
|
|
5740
|
-
var
|
|
5741
|
-
if ((
|
|
5746
|
+
var Q, le;
|
|
5747
|
+
if ((le = (Q = G.row.original) == null ? void 0 : Q.items) != null && le.length)
|
|
5742
5748
|
return null;
|
|
5743
|
-
const H = G.row.depth > 0, Z = G.row.original,
|
|
5749
|
+
const H = G.row.depth > 0, Z = G.row.original, te = !_(Z.combinationKey).isDefault || Z.orderFrom === q.F_ORDER_FROM.enum.NONE, ne = !!G.getValue();
|
|
5744
5750
|
return R(Be.FmCheckbox, {
|
|
5745
5751
|
value: "default",
|
|
5746
|
-
modelValue:
|
|
5747
|
-
disabled:
|
|
5748
|
-
"onUpdate:modelValue": (
|
|
5752
|
+
modelValue: ne,
|
|
5753
|
+
disabled: te,
|
|
5754
|
+
"onUpdate:modelValue": (oe) => {
|
|
5749
5755
|
var Ae;
|
|
5750
5756
|
if (H) {
|
|
5751
5757
|
const je = (Ae = G.row.getParentRow()) == null ? void 0 : Ae.original;
|
|
5752
5758
|
if (!je) return;
|
|
5753
|
-
I(je._id, Z.combinationKey ?? "", "isDefault",
|
|
5759
|
+
I(je._id, Z.combinationKey ?? "", "isDefault", oe);
|
|
5754
5760
|
} else
|
|
5755
|
-
k(Z._id, "isDefault",
|
|
5761
|
+
k(Z._id, "isDefault", oe);
|
|
5756
5762
|
}
|
|
5757
5763
|
}, null);
|
|
5758
5764
|
}
|
|
@@ -5778,26 +5784,26 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5778
5784
|
header: () => A("menu.group.option.product_title"),
|
|
5779
5785
|
enableSorting: !1,
|
|
5780
5786
|
cell: (G) => {
|
|
5781
|
-
const H = G.getValue(), Z = G.row.original,
|
|
5787
|
+
const H = G.getValue(), Z = G.row.original, te = !_(Z.combinationKey).name || Z.orderFrom === q.F_ORDER_FROM.enum.NONE, ne = G.row.depth > 0, Q = Z.combinationKey ? wo(Z.combinationKey, Me().variants) : null;
|
|
5782
5788
|
return Fe("div", Fe(Be.FmTextField, {
|
|
5783
5789
|
modelValue: H,
|
|
5784
|
-
placeholder:
|
|
5785
|
-
disabled:
|
|
5786
|
-
rules:
|
|
5787
|
-
"onUpdate:modelValue": (
|
|
5788
|
-
var
|
|
5789
|
-
if (
|
|
5790
|
-
const Ae = (
|
|
5790
|
+
placeholder: Q ?? "",
|
|
5791
|
+
disabled: te,
|
|
5792
|
+
rules: Q ? void 0 : [(le) => le.length > 0 || A("menu.group.option.product_title_required")],
|
|
5793
|
+
"onUpdate:modelValue": (le) => {
|
|
5794
|
+
var oe;
|
|
5795
|
+
if (ne) {
|
|
5796
|
+
const Ae = (oe = G.row.getParentRow()) == null ? void 0 : oe.original;
|
|
5791
5797
|
if (!Ae) return;
|
|
5792
|
-
I(Ae._id, Z.combinationKey ?? "", "name",
|
|
5798
|
+
I(Ae._id, Z.combinationKey ?? "", "name", le);
|
|
5793
5799
|
} else
|
|
5794
|
-
k(Z._id, "name",
|
|
5800
|
+
k(Z._id, "name", le);
|
|
5795
5801
|
},
|
|
5796
5802
|
class: "min-w-[300px]"
|
|
5797
5803
|
}, {
|
|
5798
5804
|
append: () => {
|
|
5799
|
-
var
|
|
5800
|
-
return (
|
|
5805
|
+
var le, oe;
|
|
5806
|
+
return (oe = (le = G.row.original) == null ? void 0 : le.items) != null && oe.length ? Fe(Be.FmIcon, {
|
|
5801
5807
|
name: "keyboard_arrow_up",
|
|
5802
5808
|
onClick: G.row.getToggleExpandedHandler(),
|
|
5803
5809
|
class: ["cursor-pointer", "transition-transform", G.row.getIsExpanded() ? "transform rotate-180" : ""],
|
|
@@ -5817,28 +5823,28 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5817
5823
|
},
|
|
5818
5824
|
size: 100,
|
|
5819
5825
|
cell: (G) => {
|
|
5820
|
-
const H = G.getValue(), Z = G.row.original,
|
|
5826
|
+
const H = G.getValue(), Z = G.row.original, te = !_(null).priceEdit || Z.orderFrom === q.F_ORDER_FROM.enum.NONE, ne = Z.fallbackPrice, Q = G.row.depth > 0;
|
|
5821
5827
|
return Fe(Ft, {
|
|
5822
|
-
disable:
|
|
5823
|
-
placeholder:
|
|
5828
|
+
disable: te,
|
|
5829
|
+
placeholder: ne ? Gt(ne) : void 0,
|
|
5824
5830
|
modelValue: H,
|
|
5825
|
-
required: !
|
|
5826
|
-
nullable: !!
|
|
5831
|
+
required: !ne && !te,
|
|
5832
|
+
nullable: !!ne,
|
|
5827
5833
|
min: S.value ? void 0 : 0,
|
|
5828
|
-
"onUpdate:modelValue": (
|
|
5829
|
-
var
|
|
5830
|
-
if (
|
|
5831
|
-
const Ae = (
|
|
5834
|
+
"onUpdate:modelValue": (le) => {
|
|
5835
|
+
var oe;
|
|
5836
|
+
if (Q) {
|
|
5837
|
+
const Ae = (oe = G.row.getParentRow()) == null ? void 0 : oe.original;
|
|
5832
5838
|
if (!Ae) return;
|
|
5833
5839
|
I(
|
|
5834
5840
|
Ae._id,
|
|
5835
5841
|
Z.combinationKey ?? "",
|
|
5836
5842
|
// @ts-ignore
|
|
5837
5843
|
"price",
|
|
5838
|
-
|
|
5844
|
+
le
|
|
5839
5845
|
);
|
|
5840
5846
|
} else
|
|
5841
|
-
k(Z._id, "price",
|
|
5847
|
+
k(Z._id, "price", le);
|
|
5842
5848
|
},
|
|
5843
5849
|
showCurrency: !1,
|
|
5844
5850
|
class: "min-w-[88px]"
|
|
@@ -5850,27 +5856,27 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5850
5856
|
size: 100,
|
|
5851
5857
|
enableSorting: !1,
|
|
5852
5858
|
cell: (G) => {
|
|
5853
|
-
const H = G.getValue(), Z = G.row.original,
|
|
5859
|
+
const H = G.getValue(), Z = G.row.original, te = Z.fallbackOrder, ne = G.row.depth > 0;
|
|
5854
5860
|
return Fe(hi, {
|
|
5855
5861
|
modelValue: H,
|
|
5856
|
-
fallback:
|
|
5862
|
+
fallback: te,
|
|
5857
5863
|
disable: !_(Z.combinationKey).orderFrom,
|
|
5858
5864
|
required: !0,
|
|
5859
5865
|
editActiveOnly: _(Z.combinationKey).orderFromActiveOnly,
|
|
5860
|
-
"onUpdate:modelValue": (
|
|
5861
|
-
var
|
|
5862
|
-
if (
|
|
5863
|
-
const
|
|
5864
|
-
if (!
|
|
5866
|
+
"onUpdate:modelValue": (Q) => {
|
|
5867
|
+
var le;
|
|
5868
|
+
if (ne) {
|
|
5869
|
+
const oe = (le = G.row.getParentRow()) == null ? void 0 : le.original;
|
|
5870
|
+
if (!oe) return;
|
|
5865
5871
|
I(
|
|
5866
|
-
|
|
5872
|
+
oe._id,
|
|
5867
5873
|
Z.combinationKey ?? "",
|
|
5868
5874
|
// @ts-ignore
|
|
5869
5875
|
"orderFrom",
|
|
5870
|
-
|
|
5876
|
+
Q
|
|
5871
5877
|
);
|
|
5872
5878
|
} else
|
|
5873
|
-
k(Z._id, "orderFrom",
|
|
5879
|
+
k(Z._id, "orderFrom", Q);
|
|
5874
5880
|
},
|
|
5875
5881
|
label: "",
|
|
5876
5882
|
menuZIndex: 101
|
|
@@ -5885,63 +5891,63 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5885
5891
|
// size: rules.value.inventory && rules.value.link ? 80 : 40,
|
|
5886
5892
|
size: 80,
|
|
5887
5893
|
cell: (G) => {
|
|
5888
|
-
const H = G.row.original, Z = H.orderFrom === q.F_ORDER_FROM.enum.NONE,
|
|
5894
|
+
const H = G.row.original, Z = H.orderFrom === q.F_ORDER_FROM.enum.NONE, te = G.row.depth > 0;
|
|
5889
5895
|
return R("div", {
|
|
5890
5896
|
class: "flex items-center justify-end"
|
|
5891
5897
|
}, [_(null).priceTier && R(da, {
|
|
5892
5898
|
priceTiers: H.priceTiers,
|
|
5893
5899
|
disabled: Z,
|
|
5894
|
-
"onUpdate:priceTiers": (
|
|
5895
|
-
var
|
|
5896
|
-
if (
|
|
5897
|
-
const
|
|
5898
|
-
if (!
|
|
5900
|
+
"onUpdate:priceTiers": (ne) => {
|
|
5901
|
+
var Q;
|
|
5902
|
+
if (te) {
|
|
5903
|
+
const le = (Q = G.row.getParentRow()) == null ? void 0 : Q.original;
|
|
5904
|
+
if (!le) return;
|
|
5899
5905
|
I(
|
|
5900
|
-
|
|
5906
|
+
le._id,
|
|
5901
5907
|
H.combinationKey ?? "",
|
|
5902
5908
|
// @ts-ignore
|
|
5903
5909
|
"priceTiers",
|
|
5904
|
-
|
|
5910
|
+
ne
|
|
5905
5911
|
);
|
|
5906
5912
|
} else
|
|
5907
|
-
k(H._id, "priceTiers",
|
|
5913
|
+
k(H._id, "priceTiers", ne);
|
|
5908
5914
|
}
|
|
5909
5915
|
}, null), _(H.combinationKey).inventory && R(li, {
|
|
5910
5916
|
title: "Inventory",
|
|
5911
5917
|
initialValue: H.inventoryBindings ?? [],
|
|
5912
5918
|
name: H.name ?? H.fallbackName ?? "",
|
|
5913
5919
|
allowRefund: n.allowRefundInventory,
|
|
5914
|
-
"onUpdate:inventory": (
|
|
5915
|
-
var
|
|
5916
|
-
if (
|
|
5917
|
-
const
|
|
5918
|
-
if (!
|
|
5920
|
+
"onUpdate:inventory": (ne) => {
|
|
5921
|
+
var Q;
|
|
5922
|
+
if (te) {
|
|
5923
|
+
const le = (Q = G.row.getParentRow()) == null ? void 0 : Q.original;
|
|
5924
|
+
if (!le) return;
|
|
5919
5925
|
I(
|
|
5920
|
-
|
|
5926
|
+
le._id,
|
|
5921
5927
|
H.combinationKey ?? "",
|
|
5922
5928
|
// @ts-ignore
|
|
5923
5929
|
"inventoryBindings",
|
|
5924
|
-
|
|
5930
|
+
ne
|
|
5925
5931
|
);
|
|
5926
5932
|
} else
|
|
5927
|
-
k(H._id, "inventoryBindings",
|
|
5933
|
+
k(H._id, "inventoryBindings", ne);
|
|
5928
5934
|
}
|
|
5929
5935
|
}, {
|
|
5930
5936
|
default: ({
|
|
5931
|
-
trigger:
|
|
5937
|
+
trigger: ne
|
|
5932
5938
|
}) => R(K("fm-tooltip"), {
|
|
5933
5939
|
content: "Inventory",
|
|
5934
5940
|
zIndex: 110
|
|
5935
5941
|
}, {
|
|
5936
5942
|
default: () => {
|
|
5937
|
-
var
|
|
5943
|
+
var Q;
|
|
5938
5944
|
return [R(K("fm-button"), {
|
|
5939
5945
|
variant: Rt.Tertiary,
|
|
5940
5946
|
disabled: Z,
|
|
5941
5947
|
prependIcon: "inventory_2",
|
|
5942
|
-
overwriteIconOutline: (
|
|
5948
|
+
overwriteIconOutline: (Q = H.inventoryBindings) != null && Q.length ? "filled" : "outline",
|
|
5943
5949
|
textColor: ft.NeutralGray400,
|
|
5944
|
-
onClick:
|
|
5950
|
+
onClick: ne
|
|
5945
5951
|
}, null)];
|
|
5946
5952
|
}
|
|
5947
5953
|
})
|
|
@@ -5949,7 +5955,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5949
5955
|
variant: Rt.Tertiary,
|
|
5950
5956
|
prependIcon: "delete",
|
|
5951
5957
|
textColor: ft.NeutralGray400,
|
|
5952
|
-
disabled:
|
|
5958
|
+
disabled: te,
|
|
5953
5959
|
onClick: () => {
|
|
5954
5960
|
N(H._id);
|
|
5955
5961
|
}
|
|
@@ -5981,28 +5987,28 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5981
5987
|
});
|
|
5982
5988
|
}
|
|
5983
5989
|
function k(G, H, Z) {
|
|
5984
|
-
const
|
|
5985
|
-
if (!
|
|
5986
|
-
const
|
|
5987
|
-
...
|
|
5990
|
+
const te = n.group.items[G];
|
|
5991
|
+
if (!te) return;
|
|
5992
|
+
const ne = {
|
|
5993
|
+
...te
|
|
5988
5994
|
};
|
|
5989
|
-
H === "price" ?
|
|
5995
|
+
H === "price" ? ne[H] = !Z && !te.fallbackPrice ? Ge.Dinero.zero().toObject() : Z : ne[H] = Z, i("update:group", {
|
|
5990
5996
|
...n.group,
|
|
5991
5997
|
items: {
|
|
5992
5998
|
...n.group.items,
|
|
5993
|
-
[G]:
|
|
5999
|
+
[G]: ne
|
|
5994
6000
|
}
|
|
5995
6001
|
});
|
|
5996
6002
|
}
|
|
5997
|
-
function I(G, H, Z,
|
|
5998
|
-
var
|
|
5999
|
-
const
|
|
6000
|
-
if (!sn.isSet(
|
|
6001
|
-
let
|
|
6002
|
-
|
|
6003
|
-
...
|
|
6004
|
-
[Z]:
|
|
6005
|
-
},
|
|
6003
|
+
function I(G, H, Z, te) {
|
|
6004
|
+
var oe, Ae;
|
|
6005
|
+
const ne = be(n.group), Q = (oe = ne.items[G].items) == null ? void 0 : oe.findIndex((je) => je.combinationKey === H);
|
|
6006
|
+
if (!sn.isSet(Q)) return;
|
|
6007
|
+
let le = (Ae = ne.items[G].items) == null ? void 0 : Ae[Q];
|
|
6008
|
+
le && (le = {
|
|
6009
|
+
...le,
|
|
6010
|
+
[Z]: te
|
|
6011
|
+
}, ne.items[G].items[Q] = le, i("update:group", ne));
|
|
6006
6012
|
}
|
|
6007
6013
|
function N(G) {
|
|
6008
6014
|
const H = be(n.group);
|
|
@@ -6015,28 +6021,28 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6015
6021
|
variants: Da(((Z = H.variant) == null ? void 0 : Z.variantCombinations) || [], "combinationKey")
|
|
6016
6022
|
}, G;
|
|
6017
6023
|
}, {})), P = (G) => {
|
|
6018
|
-
var
|
|
6019
|
-
const Z = o.state.menu.modules.item.find((
|
|
6020
|
-
...(
|
|
6021
|
-
name: go(Me().variants, ((
|
|
6024
|
+
var ne, Q;
|
|
6025
|
+
const Z = o.state.menu.modules.item.find((le) => le._id === G._id), te = G.combinationKey ? {
|
|
6026
|
+
...(ne = Z == null ? void 0 : Z.variant) == null ? void 0 : ne.variantCombinations.find((le) => le.combinationKey === G.combinationKey),
|
|
6027
|
+
name: go(Me().variants, ((Q = Z == null ? void 0 : Z.variant) == null ? void 0 : Q.variantGroupIds) || [])[G.combinationKey]
|
|
6022
6028
|
} : Z;
|
|
6023
|
-
return
|
|
6029
|
+
return te == null ? void 0 : te.name;
|
|
6024
6030
|
}, V = z(() => o.state.menu.modules.item.reduce((G, H) => (G[H._id] = H, G), {}));
|
|
6025
6031
|
function D(G) {
|
|
6026
|
-
const H = [], Z = new Set(G.filter((
|
|
6027
|
-
return G.forEach((
|
|
6028
|
-
var
|
|
6029
|
-
if (
|
|
6032
|
+
const H = [], Z = new Set(G.filter((te) => te.combinationKey).map((te) => `${te._id}:${te.combinationKey}`));
|
|
6033
|
+
return G.forEach((te) => {
|
|
6034
|
+
var le;
|
|
6035
|
+
if (te.combinationKey)
|
|
6030
6036
|
return;
|
|
6031
|
-
H.push(
|
|
6032
|
-
const
|
|
6033
|
-
if (!
|
|
6037
|
+
H.push(te);
|
|
6038
|
+
const ne = V.value[te._id];
|
|
6039
|
+
if (!ne || !ne.variant || ((le = ne.variant.variantCombinations) == null ? void 0 : le.length) === 0)
|
|
6034
6040
|
return;
|
|
6035
|
-
(
|
|
6036
|
-
const Ae = `${
|
|
6041
|
+
(ne.variant.variantCombinations || []).forEach((oe) => {
|
|
6042
|
+
const Ae = `${oe._id}:${oe.combinationKey}`, je = !Z.has(Ae);
|
|
6037
6043
|
H.push({
|
|
6038
|
-
_id:
|
|
6039
|
-
combinationKey:
|
|
6044
|
+
_id: oe._id,
|
|
6045
|
+
combinationKey: oe.combinationKey,
|
|
6040
6046
|
orderFrom: je ? q.F_ORDER_FROM.enum.NONE : q.F_ORDER_FROM.enum.ALL
|
|
6041
6047
|
});
|
|
6042
6048
|
});
|
|
@@ -6047,57 +6053,57 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6047
6053
|
const Z = D(G);
|
|
6048
6054
|
H = {
|
|
6049
6055
|
...H,
|
|
6050
|
-
items: Z.map((
|
|
6051
|
-
const
|
|
6052
|
-
|
|
6053
|
-
const
|
|
6054
|
-
return
|
|
6055
|
-
...
|
|
6056
|
-
name: P(
|
|
6057
|
-
price:
|
|
6058
|
-
orderFrom:
|
|
6056
|
+
items: Z.map((te) => {
|
|
6057
|
+
const ne = H.items.find((le) => le._id == te._id && le.combinationKey == te.combinationKey);
|
|
6058
|
+
te.orderFrom && ne && (ne.orderFrom = te.orderFrom);
|
|
6059
|
+
const Q = M.value[te._id];
|
|
6060
|
+
return ne || {
|
|
6061
|
+
...te,
|
|
6062
|
+
name: P(te),
|
|
6063
|
+
price: te.combinationKey ? Q.variants[te.combinationKey || ""].price : Q.price,
|
|
6064
|
+
orderFrom: te.orderFrom ?? q.F_ORDER_FROM.enum.ALL
|
|
6059
6065
|
};
|
|
6060
6066
|
})
|
|
6061
6067
|
}, i("update:unmap-group", H);
|
|
6062
6068
|
}, $ = (G) => G.items;
|
|
6063
|
-
function
|
|
6069
|
+
function ue(G) {
|
|
6064
6070
|
const H = be(n.group);
|
|
6065
|
-
H.items = G.reduce((Z,
|
|
6071
|
+
H.items = G.reduce((Z, te) => ({
|
|
6066
6072
|
...Z,
|
|
6067
|
-
[
|
|
6073
|
+
[te._id]: te
|
|
6068
6074
|
}), {}), i("update:group", H);
|
|
6069
6075
|
}
|
|
6070
|
-
const
|
|
6076
|
+
const de = _o(), we = z(() => de.breakpoints.value.xs);
|
|
6071
6077
|
return (G, H) => {
|
|
6072
|
-
const Z = K("fm-button"),
|
|
6078
|
+
const Z = K("fm-button"), te = K("fm-table");
|
|
6073
6079
|
return x(), J(ut, {
|
|
6074
6080
|
title: y(A)("menu.group.option.title"),
|
|
6075
6081
|
"sub-title": G.config.link() && u.value ? y(A)("menu.group.option.subtitle") : ""
|
|
6076
6082
|
}, {
|
|
6077
6083
|
"append-title": W(() => [G.config.link() ? (x(), re(Ve, {
|
|
6078
6084
|
key: 0
|
|
6079
|
-
}, [u.value ? (x(), re("div",
|
|
6085
|
+
}, [u.value ? (x(), re("div", wc, [R(xa, {
|
|
6080
6086
|
"categorized-items": G.categorizedItems,
|
|
6081
6087
|
"initial-value": d.value,
|
|
6082
6088
|
"show-variant": G.config.bindToVariant,
|
|
6083
6089
|
"select-variant": "",
|
|
6084
6090
|
title: y(A)("menu.group.option.link_products"),
|
|
6085
6091
|
onSubmit: H[0] || (H[0] = ({
|
|
6086
|
-
items:
|
|
6087
|
-
}) => C(
|
|
6092
|
+
items: ne
|
|
6093
|
+
}) => C(ne))
|
|
6088
6094
|
}, {
|
|
6089
6095
|
default: W(({
|
|
6090
|
-
trigger:
|
|
6096
|
+
trigger: ne
|
|
6091
6097
|
}) => [R(Z, {
|
|
6092
6098
|
"text-color": y(ft).ColorPrimary,
|
|
6093
6099
|
"border-color": y(ft).ColorPrimary,
|
|
6094
6100
|
variant: "secondary",
|
|
6095
6101
|
label: y(A)("menu.group.option.link_products"),
|
|
6096
6102
|
"prepend-icon": "link",
|
|
6097
|
-
onClick:
|
|
6103
|
+
onClick: ne
|
|
6098
6104
|
}, null, 8, ["text-color", "border-color", "label", "onClick"])]),
|
|
6099
6105
|
_: 1
|
|
6100
|
-
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (x(), re("div",
|
|
6106
|
+
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (x(), re("div", Ec, [R(Z, {
|
|
6101
6107
|
"text-color": y(ft).ColorPrimary,
|
|
6102
6108
|
"border-color": y(ft).ColorPrimary,
|
|
6103
6109
|
variant: "secondary",
|
|
@@ -6105,7 +6111,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6105
6111
|
"prepend-icon": "add",
|
|
6106
6112
|
onClick: U
|
|
6107
6113
|
}, null, 8, ["text-color", "border-color", "label"])]))], 64)) : se("", !0)]),
|
|
6108
|
-
default: W(() => [B("div",
|
|
6114
|
+
default: W(() => [B("div", kc, [B("div", Sc, [R(te, {
|
|
6109
6115
|
"column-defs": T.value,
|
|
6110
6116
|
"column-visibility": w.value,
|
|
6111
6117
|
draggable: !we.value && _(null).name,
|
|
@@ -6116,16 +6122,16 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6116
6122
|
"search-value": y(c),
|
|
6117
6123
|
"shrink-at": !1,
|
|
6118
6124
|
"hide-footer": "",
|
|
6119
|
-
"onUpdate:expandedState": H[1] || (H[1] = (
|
|
6120
|
-
onDndChanged: H[2] || (H[2] = (
|
|
6121
|
-
"onUpdate:dragging": H[3] || (H[3] = (
|
|
6125
|
+
"onUpdate:expandedState": H[1] || (H[1] = (ne) => O.value = ne),
|
|
6126
|
+
onDndChanged: H[2] || (H[2] = (ne) => ue(ne)),
|
|
6127
|
+
"onUpdate:dragging": H[3] || (H[3] = (ne) => l.value = ne)
|
|
6122
6128
|
}, null, 8, ["column-defs", "column-visibility", "draggable", "expanded-state", "row-data", "search-value"])])])]),
|
|
6123
6129
|
_: 1
|
|
6124
6130
|
}, 8, ["title", "sub-title"]);
|
|
6125
6131
|
};
|
|
6126
6132
|
}
|
|
6127
6133
|
});
|
|
6128
|
-
function
|
|
6134
|
+
function Rc(e) {
|
|
6129
6135
|
const { t } = Se();
|
|
6130
6136
|
function n(r) {
|
|
6131
6137
|
let l = 0;
|
|
@@ -6174,10 +6180,10 @@ function Oc(e) {
|
|
|
6174
6180
|
minMaxValidationRules: o
|
|
6175
6181
|
};
|
|
6176
6182
|
}
|
|
6177
|
-
const
|
|
6183
|
+
const Cc = { class: "fm-typo-en-title-md-600" }, Ac = {
|
|
6178
6184
|
key: 0,
|
|
6179
6185
|
class: "pt-8 space-y-32"
|
|
6180
|
-
},
|
|
6186
|
+
}, Ic = { class: "flex gap-8 items-center justify-start" }, ma = /* @__PURE__ */ ve({
|
|
6181
6187
|
__name: "BaseForm",
|
|
6182
6188
|
props: {
|
|
6183
6189
|
title: {},
|
|
@@ -6190,9 +6196,9 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6190
6196
|
emits: ["update:group", "submit:group", "status:show"],
|
|
6191
6197
|
setup(e, { expose: t, emit: n }) {
|
|
6192
6198
|
let i = e;
|
|
6193
|
-
const a = n, o = Me(), r = rn(), l = lt(), s = Qe(), u = Ot(St(s)), { countDefaultItems: m, validateGroupItems: d, minMaxValidationRules: c } =
|
|
6199
|
+
const a = n, o = Me(), r = rn(), l = lt(), s = Qe(), u = Ot(St(s)), { countDefaultItems: m, validateGroupItems: d, minMaxValidationRules: c } = Rc(
|
|
6194
6200
|
() => i.group
|
|
6195
|
-
), p =
|
|
6201
|
+
), p = ie(!1), b = ie(!1), _ = (C) => {
|
|
6196
6202
|
sn.isBoolean(C) ? b.value = C : b.value = !b.value;
|
|
6197
6203
|
}, S = z(() => i.group ? i.config(i.group) : null), v = z(() => Co(S.value)), h = (C) => v.value.includes(C), E = z(() => [
|
|
6198
6204
|
{
|
|
@@ -6238,7 +6244,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6238
6244
|
S.value.isOverride
|
|
6239
6245
|
)[0];
|
|
6240
6246
|
}
|
|
6241
|
-
const w =
|
|
6247
|
+
const w = ie(at.clone(i.group)), U = ui(
|
|
6242
6248
|
() => !at.isEqual(i.group, w.value),
|
|
6243
6249
|
() => {
|
|
6244
6250
|
b.value = !1;
|
|
@@ -6247,7 +6253,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6247
6253
|
async function I() {
|
|
6248
6254
|
var C;
|
|
6249
6255
|
if (i.action === "add") {
|
|
6250
|
-
const { group: $, linkItems:
|
|
6256
|
+
const { group: $, linkItems: ue } = Oo(i.group), de = {
|
|
6251
6257
|
module: q.F_MENU_MODULE_V4_KEY.enum.group,
|
|
6252
6258
|
operation: ze.F_OPERATION_TYPE.create,
|
|
6253
6259
|
data: $,
|
|
@@ -6255,11 +6261,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6255
6261
|
{
|
|
6256
6262
|
module: q.F_MENU_MODULE_V4_KEY.enum.item,
|
|
6257
6263
|
id: "",
|
|
6258
|
-
data:
|
|
6264
|
+
data: ue
|
|
6259
6265
|
}
|
|
6260
6266
|
]
|
|
6261
6267
|
};
|
|
6262
|
-
await u.updateMenu(
|
|
6268
|
+
await u.updateMenu(de, $.name), a("submit:group", i.group);
|
|
6263
6269
|
} else if (i.action === "update") {
|
|
6264
6270
|
for (const $ of Object.values(((C = i.group) == null ? void 0 : C.items) ?? {}))
|
|
6265
6271
|
if (Wa(o.state.menu, i.group._id, $._id)) {
|
|
@@ -6288,9 +6294,9 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6288
6294
|
}), M = z(() => {
|
|
6289
6295
|
const C = {};
|
|
6290
6296
|
return o.state.menu.modules.group.forEach(($) => {
|
|
6291
|
-
var
|
|
6292
|
-
for (const [
|
|
6293
|
-
typeof we == "string" && we && !((
|
|
6297
|
+
var ue;
|
|
6298
|
+
for (const [de, we] of Object.entries($.customAttributes || {}))
|
|
6299
|
+
typeof we == "string" && we && !((ue = C[de]) != null && ue.includes(we)) && (C[de] = [...C[de] || [], we]);
|
|
6294
6300
|
}), C;
|
|
6295
6301
|
}), P = (C) => {
|
|
6296
6302
|
i.group && O({
|
|
@@ -6301,7 +6307,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6301
6307
|
// Required validation
|
|
6302
6308
|
(C) => !!C || D("menu.common.validation.required", { field: D("menu.common.labels.group_name") }),
|
|
6303
6309
|
// Duplicate name validation
|
|
6304
|
-
(C) => i.action === "add" ? !o.groups.find((
|
|
6310
|
+
(C) => i.action === "add" ? !o.groups.find((ue) => ue.name === C) || D("menu.group.validation.name_duplicate") : i.action === "update" ? !o.groups.find((ue) => ue.name === C && ue._id !== i.group._id) || D("menu.group.validation.name_duplicate") : !0
|
|
6305
6311
|
]);
|
|
6306
6312
|
t({
|
|
6307
6313
|
trigger: _,
|
|
@@ -6309,13 +6315,13 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6309
6315
|
});
|
|
6310
6316
|
const { t: D } = Se();
|
|
6311
6317
|
return (C, $) => {
|
|
6312
|
-
const
|
|
6318
|
+
const ue = K("fm-text-field"), de = K("fm-stepper-field"), we = K("FmFormGroup"), G = K("fm-radio"), H = K("fm-radio-group"), Z = K("fm-switch"), te = K("fm-button"), ne = K("fm-side-sheet");
|
|
6313
6319
|
return x(), re(Ve, null, [
|
|
6314
6320
|
Ce(C.$slots, "default", { trigger: _ }),
|
|
6315
|
-
R(
|
|
6321
|
+
R(ne, {
|
|
6316
6322
|
id: "group-form",
|
|
6317
6323
|
modelValue: b.value,
|
|
6318
|
-
"onUpdate:modelValue": $[8] || ($[8] = (
|
|
6324
|
+
"onUpdate:modelValue": $[8] || ($[8] = (Q) => b.value = Q),
|
|
6319
6325
|
"is-container": y(Be).FmForm,
|
|
6320
6326
|
"is-container-props": {
|
|
6321
6327
|
onValidationSuccess: I,
|
|
@@ -6325,18 +6331,18 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6325
6331
|
"onOn:clickedAway": y(U)
|
|
6326
6332
|
}, {
|
|
6327
6333
|
"side-sheet-header": W(() => [
|
|
6328
|
-
B("p",
|
|
6334
|
+
B("p", Cc, Ee(C.title), 1)
|
|
6329
6335
|
]),
|
|
6330
6336
|
"side-sheet-footer": W(() => [
|
|
6331
|
-
B("div",
|
|
6332
|
-
R(
|
|
6337
|
+
B("div", Ic, [
|
|
6338
|
+
R(te, {
|
|
6333
6339
|
label: y(tr)(k.value),
|
|
6334
6340
|
loading: p.value,
|
|
6335
6341
|
size: "lg",
|
|
6336
6342
|
type: "submit",
|
|
6337
6343
|
variant: "primary"
|
|
6338
6344
|
}, null, 8, ["label", "loading"]),
|
|
6339
|
-
R(
|
|
6345
|
+
R(te, {
|
|
6340
6346
|
label: y(D)("menu.common.actions.cancel"),
|
|
6341
6347
|
size: "lg",
|
|
6342
6348
|
variant: "tertiary",
|
|
@@ -6345,14 +6351,14 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6345
6351
|
])
|
|
6346
6352
|
]),
|
|
6347
6353
|
default: W(() => [
|
|
6348
|
-
C.group ? (x(), re("div",
|
|
6354
|
+
C.group ? (x(), re("div", Ac, [
|
|
6349
6355
|
Ce(C.$slots, "variant-section"),
|
|
6350
6356
|
R(Ua, null, {
|
|
6351
6357
|
default: W(() => [
|
|
6352
6358
|
B("div", null, [
|
|
6353
|
-
R(
|
|
6359
|
+
R(ue, {
|
|
6354
6360
|
modelValue: C.group.name,
|
|
6355
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
6361
|
+
"onUpdate:modelValue": $[0] || ($[0] = (Q) => C.group.name = Q),
|
|
6356
6362
|
disabled: h("name"),
|
|
6357
6363
|
rules: V.value,
|
|
6358
6364
|
autofocus: "",
|
|
@@ -6364,19 +6370,19 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6364
6370
|
rules: y(c)
|
|
6365
6371
|
}, {
|
|
6366
6372
|
default: W(() => [
|
|
6367
|
-
R(
|
|
6373
|
+
R(dc, null, {
|
|
6368
6374
|
default: W(() => [
|
|
6369
|
-
R(
|
|
6375
|
+
R(de, {
|
|
6370
6376
|
modelValue: C.group.min,
|
|
6371
|
-
"onUpdate:modelValue": $[1] || ($[1] = (
|
|
6377
|
+
"onUpdate:modelValue": $[1] || ($[1] = (Q) => C.group.min = Q),
|
|
6372
6378
|
disabled: h("min"),
|
|
6373
6379
|
min: 0,
|
|
6374
6380
|
class: "flex-1",
|
|
6375
6381
|
label: y(D)("menu.common.labels.min_select")
|
|
6376
6382
|
}, null, 8, ["modelValue", "disabled", "label"]),
|
|
6377
|
-
R(
|
|
6383
|
+
R(de, {
|
|
6378
6384
|
modelValue: C.group.max,
|
|
6379
|
-
"onUpdate:modelValue": $[2] || ($[2] = (
|
|
6385
|
+
"onUpdate:modelValue": $[2] || ($[2] = (Q) => C.group.max = Q),
|
|
6380
6386
|
disabled: h("max"),
|
|
6381
6387
|
min: C.group.min,
|
|
6382
6388
|
class: "flex-1",
|
|
@@ -6396,13 +6402,13 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6396
6402
|
R(H, {
|
|
6397
6403
|
disabled: h("type"),
|
|
6398
6404
|
"model-value": C.group.type,
|
|
6399
|
-
"onUpdate:modelValue": $[3] || ($[3] = (
|
|
6405
|
+
"onUpdate:modelValue": $[3] || ($[3] = (Q) => A(Q))
|
|
6400
6406
|
}, {
|
|
6401
6407
|
default: W(() => [
|
|
6402
|
-
(x(!0), re(Ve, null, rt(E.value, (
|
|
6403
|
-
key:
|
|
6404
|
-
label: y(D)(`menu.group.types.${
|
|
6405
|
-
value:
|
|
6408
|
+
(x(!0), re(Ve, null, rt(E.value, (Q) => (x(), J(G, {
|
|
6409
|
+
key: Q.value,
|
|
6410
|
+
label: y(D)(`menu.group.types.${Q.label.toLowerCase()}`),
|
|
6411
|
+
value: Q.value
|
|
6406
6412
|
}, null, 8, ["label", "value"]))), 128))
|
|
6407
6413
|
]),
|
|
6408
6414
|
_: 1
|
|
@@ -6416,7 +6422,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6416
6422
|
default: W(() => [
|
|
6417
6423
|
R(Z, {
|
|
6418
6424
|
modelValue: C.group.stackable,
|
|
6419
|
-
"onUpdate:modelValue": $[4] || ($[4] = (
|
|
6425
|
+
"onUpdate:modelValue": $[4] || ($[4] = (Q) => C.group.stackable = Q),
|
|
6420
6426
|
disabled: h("stackable"),
|
|
6421
6427
|
label: y(D)("menu.common.labels.stackable"),
|
|
6422
6428
|
"label-placement": "right",
|
|
@@ -6453,13 +6459,13 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6453
6459
|
})
|
|
6454
6460
|
}, {
|
|
6455
6461
|
default: W(() => [
|
|
6456
|
-
R(
|
|
6462
|
+
R(Oc, {
|
|
6457
6463
|
"allow-refund-inventory": C.allowRefundInventory ?? !1,
|
|
6458
6464
|
"categorized-items": C.categorizedItems,
|
|
6459
6465
|
config: S.value,
|
|
6460
6466
|
group: C.group,
|
|
6461
|
-
"onUpdate:group": $[5] || ($[5] = (
|
|
6462
|
-
"onUpdate:unmapGroup": $[6] || ($[6] = (
|
|
6467
|
+
"onUpdate:group": $[5] || ($[5] = (Q) => O(Q)),
|
|
6468
|
+
"onUpdate:unmapGroup": $[6] || ($[6] = (Q) => O(T(Q)))
|
|
6463
6469
|
}, null, 8, ["allow-refund-inventory", "categorized-items", "config", "group"])
|
|
6464
6470
|
]),
|
|
6465
6471
|
_: 1
|
|
@@ -6471,7 +6477,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6471
6477
|
], 64);
|
|
6472
6478
|
};
|
|
6473
6479
|
}
|
|
6474
|
-
}),
|
|
6480
|
+
}), Tc = { class: "fm-typo-en-title-sm-600" }, Mc = { class: "flex items-end space-x-24" }, Dc = { class: "flex" }, Fc = /* @__PURE__ */ ve({
|
|
6475
6481
|
__name: "UpdateForm",
|
|
6476
6482
|
props: {
|
|
6477
6483
|
combinations: {},
|
|
@@ -6481,7 +6487,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6481
6487
|
emits: ["update:combinations"],
|
|
6482
6488
|
setup(e, { expose: t, emit: n }) {
|
|
6483
6489
|
var O, A;
|
|
6484
|
-
const i = e, a = n, o = Me(), r = lt(), l = Ot(St(Qe())), s =
|
|
6490
|
+
const i = e, a = n, o = Me(), r = lt(), l = Ot(St(Qe())), s = ie([]), u = ie(i.combinations[0].combinationKey || ""), m = z(
|
|
6485
6491
|
() => s.value.findIndex((T) => T.combinationKey == u.value)
|
|
6486
6492
|
), d = z(
|
|
6487
6493
|
() => i.combinations.map((T) => ({
|
|
@@ -6559,14 +6565,14 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6559
6565
|
});
|
|
6560
6566
|
a("update:combinations", T);
|
|
6561
6567
|
}
|
|
6562
|
-
const v =
|
|
6568
|
+
const v = ie(!1);
|
|
6563
6569
|
Le(
|
|
6564
6570
|
() => v.value,
|
|
6565
6571
|
(T) => {
|
|
6566
6572
|
T && (s.value = be(i.combinations), u.value = i.combinations[0].combinationKey || "");
|
|
6567
6573
|
}
|
|
6568
6574
|
);
|
|
6569
|
-
const h =
|
|
6575
|
+
const h = ie();
|
|
6570
6576
|
t({
|
|
6571
6577
|
show: (O = h.value) == null ? void 0 : O.show,
|
|
6572
6578
|
trigger: (A = h.value) == null ? void 0 : A.trigger
|
|
@@ -6597,15 +6603,15 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6597
6603
|
variant: "outlined"
|
|
6598
6604
|
}, {
|
|
6599
6605
|
default: W(() => [
|
|
6600
|
-
B("p",
|
|
6601
|
-
B("div",
|
|
6606
|
+
B("p", Tc, Ee(y(E)("menu.group.option.variant")), 1),
|
|
6607
|
+
B("div", Mc, [
|
|
6602
6608
|
R(U, {
|
|
6603
6609
|
modelValue: u.value,
|
|
6604
6610
|
"onUpdate:modelValue": w[0] || (w[0] = (N) => u.value = N),
|
|
6605
6611
|
items: d.value,
|
|
6606
6612
|
class: "flex-1"
|
|
6607
6613
|
}, null, 8, ["modelValue", "items"]),
|
|
6608
|
-
B("div",
|
|
6614
|
+
B("div", Dc, [
|
|
6609
6615
|
R(k, {
|
|
6610
6616
|
variant: y(Rt).Tertiary,
|
|
6611
6617
|
"prepend-icon": "keyboard_arrow_left",
|
|
@@ -6628,13 +6634,13 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6628
6634
|
}, 8, ["categorized-items", "group", "title"]);
|
|
6629
6635
|
};
|
|
6630
6636
|
}
|
|
6631
|
-
}),
|
|
6637
|
+
}), Nc = ma, co = sc, Pc = Fc, Lc = {
|
|
6632
6638
|
key: 0,
|
|
6633
6639
|
class: "flex flex-col space-y-16 h-[440px]"
|
|
6634
|
-
},
|
|
6640
|
+
}, xc = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Uc = { class: "flex justify-between pb-16" }, Vc = { class: "flex gap-8" }, zc = {
|
|
6635
6641
|
key: 1,
|
|
6636
6642
|
class: "flex flex-col items-center space-y-16"
|
|
6637
|
-
},
|
|
6643
|
+
}, $c = { class: "flex flex-col items-center space-y-4 w-full" }, Gc = { class: "fm-typo-en-title-sm-600" }, Bc = { class: "text-fm-color-typo-secondary" }, Wc = /* @__PURE__ */ ve({
|
|
6638
6644
|
__name: "SelectGroupDialog",
|
|
6639
6645
|
props: {
|
|
6640
6646
|
groupIds: {}
|
|
@@ -6681,12 +6687,12 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6681
6687
|
position: o.groups.length - 1,
|
|
6682
6688
|
itemsLinked: []
|
|
6683
6689
|
}));
|
|
6684
|
-
const c =
|
|
6690
|
+
const c = ie(be(t.groupIds || [])), p = ie(""), { t: b } = Se(), _ = () => {
|
|
6685
6691
|
i(c.value), a("primary"), n.close();
|
|
6686
6692
|
};
|
|
6687
6693
|
return (S, v) => {
|
|
6688
6694
|
const h = K("FmSearch"), E = K("FmCheckbox"), O = K("FmButton");
|
|
6689
|
-
return m.value.length > 0 ? (x(), re("div",
|
|
6695
|
+
return m.value.length > 0 ? (x(), re("div", Lc, [
|
|
6690
6696
|
B("div", null, [
|
|
6691
6697
|
R(h, {
|
|
6692
6698
|
autofocus: "",
|
|
@@ -6695,7 +6701,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6695
6701
|
placeholder: y(b)("menu.common.labels.search_groups")
|
|
6696
6702
|
}, null, 8, ["modelValue", "placeholder"])
|
|
6697
6703
|
]),
|
|
6698
|
-
B("div",
|
|
6704
|
+
B("div", xc, [
|
|
6699
6705
|
B("div", null, [
|
|
6700
6706
|
(x(!0), re(Ve, null, rt(m.value, (A) => (x(), re("div", {
|
|
6701
6707
|
key: A.value
|
|
@@ -6714,7 +6720,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6714
6720
|
]))), 128))
|
|
6715
6721
|
])
|
|
6716
6722
|
]),
|
|
6717
|
-
B("div",
|
|
6723
|
+
B("div", Uc, [
|
|
6718
6724
|
R(y(co), null, {
|
|
6719
6725
|
default: W(({ trigger: A }) => [
|
|
6720
6726
|
R(O, {
|
|
@@ -6726,7 +6732,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6726
6732
|
]),
|
|
6727
6733
|
_: 1
|
|
6728
6734
|
}),
|
|
6729
|
-
B("div",
|
|
6735
|
+
B("div", Vc, [
|
|
6730
6736
|
R(O, {
|
|
6731
6737
|
label: y(b)("menu.common.actions.cancel"),
|
|
6732
6738
|
variant: "tertiary",
|
|
@@ -6738,10 +6744,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6738
6744
|
}, null, 8, ["label"])
|
|
6739
6745
|
])
|
|
6740
6746
|
])
|
|
6741
|
-
])) : (x(), re("div",
|
|
6742
|
-
B("div",
|
|
6743
|
-
B("p",
|
|
6744
|
-
B("p",
|
|
6747
|
+
])) : (x(), re("div", zc, [
|
|
6748
|
+
B("div", $c, [
|
|
6749
|
+
B("p", Gc, Ee(y(b)("menu.common.empty.no_group.title")), 1),
|
|
6750
|
+
B("p", Bc, Ee(y(b)("menu.common.empty.no_group.subtitle")), 1)
|
|
6745
6751
|
]),
|
|
6746
6752
|
R(y(co), null, {
|
|
6747
6753
|
default: W(({ trigger: A }) => [
|
|
@@ -6756,7 +6762,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6756
6762
|
]));
|
|
6757
6763
|
};
|
|
6758
6764
|
}
|
|
6759
|
-
}),
|
|
6765
|
+
}), Hc = /* @__PURE__ */ ve({
|
|
6760
6766
|
__name: "ProductGroup",
|
|
6761
6767
|
props: {
|
|
6762
6768
|
isOverride: {
|
|
@@ -6801,11 +6807,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6801
6807
|
return P.items.forEach((C) => {
|
|
6802
6808
|
if (C.combinationKey)
|
|
6803
6809
|
return;
|
|
6804
|
-
const $ = a.items.find((
|
|
6810
|
+
const $ = a.items.find((de) => de._id === C._id), ue = P.items.filter((de) => de._id === C._id && de.combinationKey).length;
|
|
6805
6811
|
V.push({
|
|
6806
6812
|
code: C.code || ($ == null ? void 0 : $.code),
|
|
6807
6813
|
name: C.name || ($ == null ? void 0 : $.name),
|
|
6808
|
-
variantCount:
|
|
6814
|
+
variantCount: ue
|
|
6809
6815
|
});
|
|
6810
6816
|
}), V.map((C) => {
|
|
6811
6817
|
const $ = [(C == null ? void 0 : C.code) || "", (C == null ? void 0 : C.name) || ""].join(" ").trim();
|
|
@@ -6882,7 +6888,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6882
6888
|
onClick: Sn(async () => {
|
|
6883
6889
|
T(P);
|
|
6884
6890
|
}, ["stop", "prevent"])
|
|
6885
|
-
}), Fe(
|
|
6891
|
+
}), Fe(Pc, {
|
|
6886
6892
|
// variant items
|
|
6887
6893
|
combinations: U.value ?? [],
|
|
6888
6894
|
// combinationKey: varaintName
|
|
@@ -6907,7 +6913,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6907
6913
|
function O() {
|
|
6908
6914
|
r.open({
|
|
6909
6915
|
title: l("menu.product.form.group.add"),
|
|
6910
|
-
contentComponent:
|
|
6916
|
+
contentComponent: Wc,
|
|
6911
6917
|
contentComponentProps: {
|
|
6912
6918
|
groupIds: p.value
|
|
6913
6919
|
}
|
|
@@ -6931,7 +6937,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6931
6937
|
function A(M) {
|
|
6932
6938
|
const P = M.reduce((V, D) => {
|
|
6933
6939
|
var $;
|
|
6934
|
-
const C = (($ = n.form.groups) == null ? void 0 : $.find((
|
|
6940
|
+
const C = (($ = n.form.groups) == null ? void 0 : $.find((ue) => ue._id === D)) || {
|
|
6935
6941
|
_id: D,
|
|
6936
6942
|
groupKey: ""
|
|
6937
6943
|
};
|
|
@@ -6949,7 +6955,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6949
6955
|
const P = be(n.form.groups);
|
|
6950
6956
|
P.splice(P.findIndex(($) => $._id === M), 1);
|
|
6951
6957
|
for (const $ of ((V = n.form.variant) == null ? void 0 : V.variantCombinations) || [])
|
|
6952
|
-
(C = $.groups) == null || C.splice((D = $.groups) == null ? void 0 : D.findIndex((
|
|
6958
|
+
(C = $.groups) == null || C.splice((D = $.groups) == null ? void 0 : D.findIndex((ue) => ue._id === M), 1);
|
|
6953
6959
|
s("replace:form", o.initDynamicGroupItem({
|
|
6954
6960
|
...n.form,
|
|
6955
6961
|
groups: P
|
|
@@ -7027,11 +7033,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7027
7033
|
}, 8, ["title", "sub-title"]);
|
|
7028
7034
|
};
|
|
7029
7035
|
}
|
|
7030
|
-
}),
|
|
7036
|
+
}), jc = {
|
|
7031
7037
|
class: "xs:overflow-x-scroll"
|
|
7032
|
-
},
|
|
7038
|
+
}, Kc = {
|
|
7033
7039
|
class: "xs:min-w-[640px]"
|
|
7034
|
-
},
|
|
7040
|
+
}, Yc = /* @__PURE__ */ ve({
|
|
7035
7041
|
__name: "ProductInventory",
|
|
7036
7042
|
props: {
|
|
7037
7043
|
isOverride: {
|
|
@@ -7091,7 +7097,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7091
7097
|
};
|
|
7092
7098
|
a("replace:form", v);
|
|
7093
7099
|
}
|
|
7094
|
-
|
|
7100
|
+
ie([{
|
|
7095
7101
|
accessorKey: "name",
|
|
7096
7102
|
header: () => u.value || n("menu.inventory.columns.product_name"),
|
|
7097
7103
|
enableSorting: !1
|
|
@@ -7144,7 +7150,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7144
7150
|
})]) : null;
|
|
7145
7151
|
}
|
|
7146
7152
|
}]);
|
|
7147
|
-
const c =
|
|
7153
|
+
const c = ie([]);
|
|
7148
7154
|
async function p({
|
|
7149
7155
|
_id: _
|
|
7150
7156
|
}) {
|
|
@@ -7158,7 +7164,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7158
7164
|
title: y(n)("menu.inventory.title"),
|
|
7159
7165
|
subTitle: y(n)("menu.inventory.subtitle")
|
|
7160
7166
|
}, {
|
|
7161
|
-
default: W(() => [B("div",
|
|
7167
|
+
default: W(() => [B("div", jc, [B("div", Kc, [(x(!0), re(Ve, null, rt(m.value, (v) => (x(), J(y(li), {
|
|
7162
7168
|
key: v._id,
|
|
7163
7169
|
ref_for: !0,
|
|
7164
7170
|
ref_key: "inventoryManagerForms",
|
|
@@ -7179,21 +7185,21 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7179
7185
|
_: 1
|
|
7180
7186
|
}, 8, ["title", "subTitle"]));
|
|
7181
7187
|
}
|
|
7182
|
-
}),
|
|
7188
|
+
}), Xc = {
|
|
7183
7189
|
class: /* @__PURE__ */ Ke(["flex space-x-16", "xs:flex-col xs:space-x-0 xs:space-y-16"])
|
|
7184
|
-
},
|
|
7190
|
+
}, qc = { class: "space-y-16" }, Jc = { class: "space-y-8" }, Zc = {
|
|
7185
7191
|
key: 0,
|
|
7186
7192
|
class: "pl-32 pb-4 space-x-16 flex items-center"
|
|
7187
|
-
},
|
|
7193
|
+
}, Qc = { class: "fm-typo-en-body-lg-400" }, ed = { class: "w-[258px]" }, td = { class: "w-[117px]" }, nd = {
|
|
7188
7194
|
key: 0,
|
|
7189
7195
|
class: "space-y-8"
|
|
7190
|
-
},
|
|
7196
|
+
}, id = {
|
|
7191
7197
|
key: 0,
|
|
7192
7198
|
class: "pl-32 pb-4 flex space-x-16"
|
|
7193
|
-
},
|
|
7199
|
+
}, od = { class: "w-[258px] xs:w-full" }, ad = {
|
|
7194
7200
|
key: 1,
|
|
7195
7201
|
class: "space-y-8"
|
|
7196
|
-
},
|
|
7202
|
+
}, rd = { class: "pl-32 pb-4 flex space-x-16" }, sd = { class: "w-[258px] xs:w-full" }, ld = /* @__PURE__ */ ve({
|
|
7197
7203
|
__name: "ProductPrice",
|
|
7198
7204
|
props: {
|
|
7199
7205
|
isOverride: { type: Boolean },
|
|
@@ -7234,7 +7240,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7234
7240
|
}
|
|
7235
7241
|
}
|
|
7236
7242
|
}
|
|
7237
|
-
const _ =
|
|
7243
|
+
const _ = ie(!1);
|
|
7238
7244
|
async function S() {
|
|
7239
7245
|
var E, O, A, T, w, U, k;
|
|
7240
7246
|
if (!(n.form.name || "")) {
|
|
@@ -7280,7 +7286,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7280
7286
|
default: W(() => {
|
|
7281
7287
|
var k;
|
|
7282
7288
|
return [
|
|
7283
|
-
B("div",
|
|
7289
|
+
B("div", Xc, [
|
|
7284
7290
|
R(Ft, {
|
|
7285
7291
|
disable: v.value.length > 0 && y(a).currentCatalog && !y(a).currentScheduler,
|
|
7286
7292
|
min: 0,
|
|
@@ -7350,7 +7356,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7350
7356
|
default: W(() => {
|
|
7351
7357
|
var I, N, M;
|
|
7352
7358
|
return [
|
|
7353
|
-
B("div",
|
|
7359
|
+
B("div", qc, [
|
|
7354
7360
|
R(T, {
|
|
7355
7361
|
disabled: !s.value.openPrice || h.isAddon,
|
|
7356
7362
|
"model-value": h.form.openPrice ?? ((I = h.fallback) == null ? void 0 : I.openPrice) ?? !1,
|
|
@@ -7359,7 +7365,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7359
7365
|
sublabel: y(r)("menu.product.form.price.settings.open_price.sublabel"),
|
|
7360
7366
|
"onUpdate:modelValue": E[3] || (E[3] = (P) => l("update:form", "openPrice", P))
|
|
7361
7367
|
}, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
|
|
7362
|
-
B("div",
|
|
7368
|
+
B("div", Jc, [
|
|
7363
7369
|
R(T, {
|
|
7364
7370
|
disabled: !s.value.unit || h.isAddon,
|
|
7365
7371
|
"model-value": u.value,
|
|
@@ -7368,9 +7374,9 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7368
7374
|
sublabel: y(r)("menu.product.form.price.settings.sell_by_unit.sublabel"),
|
|
7369
7375
|
"onUpdate:modelValue": m
|
|
7370
7376
|
}, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
|
|
7371
|
-
u.value ? (x(), re("div",
|
|
7372
|
-
B("p",
|
|
7373
|
-
B("div",
|
|
7377
|
+
u.value ? (x(), re("div", Zc, [
|
|
7378
|
+
B("p", Qc, Ee(y(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
|
|
7379
|
+
B("div", ed, [
|
|
7374
7380
|
R(w, {
|
|
7375
7381
|
disabled: !s.value.unit,
|
|
7376
7382
|
"model-value": h.form.perXUnit || ((N = h.fallback) == null ? void 0 : N.perXUnit) || null,
|
|
@@ -7385,7 +7391,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7385
7391
|
"onUpdate:modelValue": p
|
|
7386
7392
|
}, null, 8, ["disabled", "model-value", "rules", "placeholder"])
|
|
7387
7393
|
]),
|
|
7388
|
-
B("div",
|
|
7394
|
+
B("div", td, [
|
|
7389
7395
|
R(w, {
|
|
7390
7396
|
disabled: !s.value.unit,
|
|
7391
7397
|
"model-value": h.form.unit || ((M = h.fallback) == null ? void 0 : M.unit) || null,
|
|
@@ -7398,15 +7404,15 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7398
7404
|
])
|
|
7399
7405
|
])) : se("", !0)
|
|
7400
7406
|
]),
|
|
7401
|
-
s.value.costing ? (x(), re("div",
|
|
7407
|
+
s.value.costing ? (x(), re("div", nd, [
|
|
7402
7408
|
R(T, {
|
|
7403
7409
|
"model-value": !!h.form.costing,
|
|
7404
7410
|
value: !!h.form.costing,
|
|
7405
7411
|
label: y(r)("menu.product.form.price.settings.track_costing.label"),
|
|
7406
7412
|
"onUpdate:modelValue": E[5] || (E[5] = (P) => l("update:form", "costing", P ? y(Ge.Dinero).zero().toObject() : void 0))
|
|
7407
7413
|
}, null, 8, ["model-value", "value", "label"]),
|
|
7408
|
-
h.form.costing ? (x(), re("div",
|
|
7409
|
-
B("div",
|
|
7414
|
+
h.form.costing ? (x(), re("div", id, [
|
|
7415
|
+
B("div", od, [
|
|
7410
7416
|
R(Ft, {
|
|
7411
7417
|
class: "w-full",
|
|
7412
7418
|
min: 0,
|
|
@@ -7418,7 +7424,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7418
7424
|
])
|
|
7419
7425
|
])) : se("", !0)
|
|
7420
7426
|
])) : se("", !0),
|
|
7421
|
-
s.value.minPrice ? (x(), re("div",
|
|
7427
|
+
s.value.minPrice ? (x(), re("div", ad, [
|
|
7422
7428
|
R(T, {
|
|
7423
7429
|
disabled: !s.value.minPrice || h.isAddon,
|
|
7424
7430
|
"model-value": !!h.form.minPrice,
|
|
@@ -7426,8 +7432,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7426
7432
|
label: y(r)("menu.product.form.price.settings.min_price.label"),
|
|
7427
7433
|
"onUpdate:modelValue": E[7] || (E[7] = (P) => l("update:form", "minPrice", P ? y(Ge.Dinero).zero().toObject() : void 0))
|
|
7428
7434
|
}, null, 8, ["disabled", "model-value", "value", "label"]),
|
|
7429
|
-
B("div",
|
|
7430
|
-
B("div",
|
|
7435
|
+
B("div", rd, [
|
|
7436
|
+
B("div", sd, [
|
|
7431
7437
|
h.form.minPrice ? (x(), J(Ft, {
|
|
7432
7438
|
key: 0,
|
|
7433
7439
|
max: y(Ge.Dinero).fromFdoDinero(h.form.price).toUnit(),
|
|
@@ -7451,7 +7457,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7451
7457
|
}, 8, ["title"]);
|
|
7452
7458
|
};
|
|
7453
7459
|
}
|
|
7454
|
-
}),
|
|
7460
|
+
}), ud = { class: "fm-typo-en-title-md-600" }, cd = { class: "pt-8 space-y-24" }, dd = { class: "flex gap-8 items-center justify-start" }, md = /* @__PURE__ */ ve({
|
|
7455
7461
|
__name: "Form",
|
|
7456
7462
|
props: {
|
|
7457
7463
|
initialValue: {},
|
|
@@ -7462,9 +7468,9 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7462
7468
|
() => n.initialValue ? t("menu.print_dept.update") : t("menu.print_dept.add")
|
|
7463
7469
|
), o = z(
|
|
7464
7470
|
() => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
|
|
7465
|
-
), r =
|
|
7471
|
+
), r = ie(
|
|
7466
7472
|
n.initialValue ? be(n.initialValue) : { ...Je.generator.initMenuV4PrintDepartment(), usedBy: [] }
|
|
7467
|
-
), l =
|
|
7473
|
+
), l = ie(!1), s = ie(!1), u = (d) => {
|
|
7468
7474
|
sn.isBoolean(d) ? s.value = d : s.value = !s.value;
|
|
7469
7475
|
};
|
|
7470
7476
|
async function m() {
|
|
@@ -7515,10 +7521,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7515
7521
|
"dismiss-away": ""
|
|
7516
7522
|
}, {
|
|
7517
7523
|
"side-sheet-header": W(() => [
|
|
7518
|
-
B("p",
|
|
7524
|
+
B("p", ud, Ee(a.value), 1)
|
|
7519
7525
|
]),
|
|
7520
7526
|
"side-sheet-footer": W(() => [
|
|
7521
|
-
B("div",
|
|
7527
|
+
B("div", dd, [
|
|
7522
7528
|
R(b, {
|
|
7523
7529
|
label: o.value,
|
|
7524
7530
|
loading: l.value,
|
|
@@ -7535,7 +7541,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7535
7541
|
])
|
|
7536
7542
|
]),
|
|
7537
7543
|
default: W(() => [
|
|
7538
|
-
B("div",
|
|
7544
|
+
B("div", cd, [
|
|
7539
7545
|
R(p, {
|
|
7540
7546
|
modelValue: r.value.name,
|
|
7541
7547
|
"onUpdate:modelValue": c[0] || (c[0] = (S) => r.value.name = S),
|
|
@@ -7562,7 +7568,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7562
7568
|
], 64);
|
|
7563
7569
|
};
|
|
7564
7570
|
}
|
|
7565
|
-
}),
|
|
7571
|
+
}), pd = md, fd = { class: "space-y-16" }, hd = { class: "flex items-center space-x-4" }, gd = { class: "handle" }, vd = { class: "pt-16" }, _d = /* @__PURE__ */ ve({
|
|
7566
7572
|
__name: "ProductPrint",
|
|
7567
7573
|
props: {
|
|
7568
7574
|
isOverride: { type: Boolean },
|
|
@@ -7671,7 +7677,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7671
7677
|
"onUpdate:modelValue": h[1] || (h[1] = (k) => p(k))
|
|
7672
7678
|
}, {
|
|
7673
7679
|
default: W(() => [
|
|
7674
|
-
B("div",
|
|
7680
|
+
B("div", fd, [
|
|
7675
7681
|
(x(!0), re(Ve, null, rt(S.value, (k, I) => (x(), J(O, {
|
|
7676
7682
|
key: I,
|
|
7677
7683
|
label: k.label,
|
|
@@ -7697,8 +7703,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7697
7703
|
item: W(({ element: k }) => {
|
|
7698
7704
|
var I, N, M, P, V;
|
|
7699
7705
|
return [
|
|
7700
|
-
B("div",
|
|
7701
|
-
B("div",
|
|
7706
|
+
B("div", hd, [
|
|
7707
|
+
B("div", gd, [
|
|
7702
7708
|
u.value ? (x(), J(T, {
|
|
7703
7709
|
key: 0,
|
|
7704
7710
|
disabled: !((N = (I = n.form.print) == null ? void 0 : I.department) != null && N.includes(k)),
|
|
@@ -7723,9 +7729,9 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7723
7729
|
}),
|
|
7724
7730
|
_: 1
|
|
7725
7731
|
}, 8, ["item-key", "model-value"])) : se("", !0),
|
|
7726
|
-
R(y(
|
|
7732
|
+
R(y(pd), { "apply-product": !1 }, {
|
|
7727
7733
|
default: W(({ trigger: k }) => [
|
|
7728
|
-
B("div",
|
|
7734
|
+
B("div", vd, [
|
|
7729
7735
|
R(T, {
|
|
7730
7736
|
variant: y(Rt).Secondary,
|
|
7731
7737
|
label: y(a)("menu.product.form.print.routes.add"),
|
|
@@ -7746,7 +7752,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7746
7752
|
};
|
|
7747
7753
|
}
|
|
7748
7754
|
});
|
|
7749
|
-
function
|
|
7755
|
+
function bd(e, t, n) {
|
|
7750
7756
|
const i = z(() => {
|
|
7751
7757
|
var s, u;
|
|
7752
7758
|
return !!((u = (s = e.form.variant) == null ? void 0 : s.variantCombinations) != null && u.length);
|
|
@@ -7795,7 +7801,7 @@ function _d(e, t, n) {
|
|
|
7795
7801
|
takeaways: l
|
|
7796
7802
|
};
|
|
7797
7803
|
}
|
|
7798
|
-
const
|
|
7804
|
+
const yd = /* @__PURE__ */ ve({
|
|
7799
7805
|
__name: "ProductTakeaway",
|
|
7800
7806
|
props: {
|
|
7801
7807
|
isOverride: {
|
|
@@ -7817,7 +7823,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7817
7823
|
} = Se(), l = t, {
|
|
7818
7824
|
hasVariant: s,
|
|
7819
7825
|
takeaways: u
|
|
7820
|
-
} =
|
|
7826
|
+
} = bd(n, l, a), m = z(() => [n.isOverride ? {
|
|
7821
7827
|
label: r("menu.product.form.takeaway.options.follows_main"),
|
|
7822
7828
|
value: null
|
|
7823
7829
|
} : {
|
|
@@ -7826,7 +7832,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7826
7832
|
}, ...i.takeaways.map((c) => ({
|
|
7827
7833
|
label: c.name,
|
|
7828
7834
|
value: c._id
|
|
7829
|
-
}))]), d =
|
|
7835
|
+
}))]), d = ie([{
|
|
7830
7836
|
accessorKey: "name",
|
|
7831
7837
|
enableSorting: !1,
|
|
7832
7838
|
header: () => s.value ? r("menu.product.form.takeaway.columns.variant") : r("menu.product.form.takeaway.columns.product")
|
|
@@ -7891,13 +7897,13 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7891
7897
|
}, 8, ["title", "sub-title"]);
|
|
7892
7898
|
};
|
|
7893
7899
|
}
|
|
7894
|
-
}),
|
|
7900
|
+
}), wd = {
|
|
7895
7901
|
key: 0,
|
|
7896
7902
|
class: "flex flex-col space-y-16 h-[440px]"
|
|
7897
|
-
},
|
|
7903
|
+
}, Ed = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, kd = { class: "flex justify-between pb-16" }, Sd = { class: "flex gap-8" }, Od = {
|
|
7898
7904
|
key: 1,
|
|
7899
7905
|
class: "flex flex-col items-center space-y-16"
|
|
7900
|
-
},
|
|
7906
|
+
}, Rd = { class: "flex flex-col items-center space-y-4 w-full" }, Cd = { class: "fm-typo-en-title-sm-600" }, Ad = { class: "text-fm-color-typo-secondary" }, Id = /* @__PURE__ */ ve({
|
|
7901
7907
|
__name: "SelectVariantDialog",
|
|
7902
7908
|
props: {
|
|
7903
7909
|
selectedVariants: {}
|
|
@@ -7907,12 +7913,12 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7907
7913
|
label: d.name,
|
|
7908
7914
|
value: d._id,
|
|
7909
7915
|
disabled: !1
|
|
7910
|
-
}))), s =
|
|
7916
|
+
}))), s = ie(be(r.selectedVariants)), u = ie(""), m = () => {
|
|
7911
7917
|
n(s.value), i("primary"), t.close();
|
|
7912
7918
|
};
|
|
7913
7919
|
return (d, c) => {
|
|
7914
7920
|
const p = K("FmSearch"), b = K("FmCheckbox"), _ = K("FmButton");
|
|
7915
|
-
return l.value.length > 0 ? (x(), re("div",
|
|
7921
|
+
return l.value.length > 0 ? (x(), re("div", wd, [
|
|
7916
7922
|
B("div", null, [
|
|
7917
7923
|
R(p, {
|
|
7918
7924
|
autofocus: "",
|
|
@@ -7921,7 +7927,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7921
7927
|
placeholder: y(o)("menu.common.labels.search_variants")
|
|
7922
7928
|
}, null, 8, ["modelValue", "placeholder"])
|
|
7923
7929
|
]),
|
|
7924
|
-
B("div",
|
|
7930
|
+
B("div", Ed, [
|
|
7925
7931
|
B("div", null, [
|
|
7926
7932
|
(x(!0), re(Ve, null, rt(l.value, (S) => (x(), re("div", {
|
|
7927
7933
|
key: S.value
|
|
@@ -7940,7 +7946,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7940
7946
|
]))), 128))
|
|
7941
7947
|
])
|
|
7942
7948
|
]),
|
|
7943
|
-
B("div",
|
|
7949
|
+
B("div", kd, [
|
|
7944
7950
|
R(y(Ri), null, {
|
|
7945
7951
|
default: W(({ trigger: S }) => [
|
|
7946
7952
|
y(a).rules.item.variant ? (x(), J(_, {
|
|
@@ -7953,7 +7959,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7953
7959
|
]),
|
|
7954
7960
|
_: 1
|
|
7955
7961
|
}),
|
|
7956
|
-
B("div",
|
|
7962
|
+
B("div", Sd, [
|
|
7957
7963
|
R(_, {
|
|
7958
7964
|
label: y(o)("menu.common.actions.cancel"),
|
|
7959
7965
|
variant: "tertiary",
|
|
@@ -7965,10 +7971,10 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7965
7971
|
}, null, 8, ["label"])
|
|
7966
7972
|
])
|
|
7967
7973
|
])
|
|
7968
|
-
])) : (x(), re("div",
|
|
7969
|
-
B("div",
|
|
7970
|
-
B("p",
|
|
7971
|
-
B("p",
|
|
7974
|
+
])) : (x(), re("div", Od, [
|
|
7975
|
+
B("div", Rd, [
|
|
7976
|
+
B("p", Cd, Ee(y(o)("menu.common.empty.no_variant.title")), 1),
|
|
7977
|
+
B("p", Ad, Ee(y(o)("menu.common.empty.no_variant.subtitle")), 1)
|
|
7972
7978
|
]),
|
|
7973
7979
|
R(y(Ri), null, {
|
|
7974
7980
|
default: W(({ trigger: S }) => [
|
|
@@ -7983,15 +7989,15 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7983
7989
|
]));
|
|
7984
7990
|
};
|
|
7985
7991
|
}
|
|
7986
|
-
}),
|
|
7992
|
+
}), Td = {
|
|
7987
7993
|
class: "space-y-16"
|
|
7988
|
-
}, Td = {
|
|
7989
|
-
class: "flex items-center space-x-8"
|
|
7990
7994
|
}, Md = {
|
|
7991
|
-
class: "flex items-center
|
|
7995
|
+
class: "flex items-center space-x-8"
|
|
7992
7996
|
}, Dd = {
|
|
7997
|
+
class: "flex items-center flex-1 h-[36px] px-8 border border-fm-color-neutral-gray-300 rounded-md bg-fm-color-neutral-white"
|
|
7998
|
+
}, Fd = {
|
|
7993
7999
|
class: "flex-1 fm-typo-en-body-lg-400"
|
|
7994
|
-
},
|
|
8000
|
+
}, Nd = /* @__PURE__ */ ve({
|
|
7995
8001
|
__name: "ProductVariants",
|
|
7996
8002
|
props: {
|
|
7997
8003
|
isOverride: {
|
|
@@ -8011,7 +8017,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8011
8017
|
const n = e, i = Me(), a = ki(), o = Qe(), r = lt(), {
|
|
8012
8018
|
t: l
|
|
8013
8019
|
} = Se(), s = z(() => i.rules.item), u = z(() => s.value.minPrice && !!n.form.minPrice), m = z(() => !i.state.currentCatalogId), d = z(() => i.variants.reduce((k, I) => (k[I._id] = I, k), {}));
|
|
8014
|
-
|
|
8020
|
+
ie(!1);
|
|
8015
8021
|
const c = t;
|
|
8016
8022
|
function p(k) {
|
|
8017
8023
|
const I = at.clone(n.form);
|
|
@@ -8045,7 +8051,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8045
8051
|
var k;
|
|
8046
8052
|
r.open({
|
|
8047
8053
|
title: "Add variant",
|
|
8048
|
-
contentComponent:
|
|
8054
|
+
contentComponent: Id,
|
|
8049
8055
|
contentComponentProps: {
|
|
8050
8056
|
selectedVariants: ((k = n.form.variant) == null ? void 0 : k.variantGroupIds) ?? []
|
|
8051
8057
|
}
|
|
@@ -8055,7 +8061,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8055
8061
|
}
|
|
8056
8062
|
function S(k) {
|
|
8057
8063
|
var D, C;
|
|
8058
|
-
const I = ((D = n.form.variant) == null ? void 0 : D.variantGroupIds) || [], N = (C = n.form.variant) == null ? void 0 : C.variantCombinations, V = k.split(/(?=variant)/g).map(($) => $.replace(/\/*$/, "")).filter(($) => I.some((
|
|
8064
|
+
const I = ((D = n.form.variant) == null ? void 0 : D.variantGroupIds) || [], N = (C = n.form.variant) == null ? void 0 : C.variantCombinations, V = k.split(/(?=variant)/g).map(($) => $.replace(/\/*$/, "")).filter(($) => I.some((ue) => $.includes(ue))).join("/");
|
|
8059
8065
|
return N == null ? void 0 : N.find(($) => $.combinationKey === V);
|
|
8060
8066
|
}
|
|
8061
8067
|
const v = (k) => {
|
|
@@ -8088,8 +8094,8 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8088
8094
|
const V = N.map((C) => i.variants.find(($) => $._id === C)), D = Je.fullVariantCombination(V).map(({
|
|
8089
8095
|
combinationKey: C
|
|
8090
8096
|
}) => {
|
|
8091
|
-
var
|
|
8092
|
-
const $ = (
|
|
8097
|
+
var ue;
|
|
8098
|
+
const $ = (ue = n.form.variant) == null ? void 0 : ue.variantCombinations.find((de) => de.combinationKey === C);
|
|
8093
8099
|
return I($ || {
|
|
8094
8100
|
_id: n.form._id,
|
|
8095
8101
|
combinationKey: C
|
|
@@ -8244,7 +8250,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8244
8250
|
}, null, 8, ["label"])) : se("", !0)]),
|
|
8245
8251
|
default: W(() => {
|
|
8246
8252
|
var D;
|
|
8247
|
-
return [B("div",
|
|
8253
|
+
return [B("div", Td, [R(P, {
|
|
8248
8254
|
"model-value": (D = k.form.variant) == null ? void 0 : D.variantGroupIds,
|
|
8249
8255
|
rules: [U]
|
|
8250
8256
|
}, {
|
|
@@ -8261,15 +8267,15 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8261
8267
|
item: W(({
|
|
8262
8268
|
element: $
|
|
8263
8269
|
}) => {
|
|
8264
|
-
var
|
|
8265
|
-
return [B("div",
|
|
8270
|
+
var ue;
|
|
8271
|
+
return [B("div", Md, [R(N, {
|
|
8266
8272
|
variant: y(Rt).Tertiary,
|
|
8267
8273
|
class: "handle",
|
|
8268
8274
|
"prepend-icon": "drag_handle"
|
|
8269
|
-
}, null, 8, ["variant"]), B("div",
|
|
8275
|
+
}, null, 8, ["variant"]), B("div", Dd, [B("p", Fd, Ee((ue = d.value[$]) == null ? void 0 : ue.name), 1), R(M, {
|
|
8270
8276
|
class: "cursor-pointer",
|
|
8271
8277
|
name: "close",
|
|
8272
|
-
onClick: Sn((
|
|
8278
|
+
onClick: Sn((de) => {
|
|
8273
8279
|
var we;
|
|
8274
8280
|
return E(((we = k.form.variant) == null ? void 0 : we.variantGroupIds.filter((G) => G !== $)) ?? []);
|
|
8275
8281
|
}, ["stop"])
|
|
@@ -8297,30 +8303,30 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8297
8303
|
}, 8, ["title", "sub-title"]);
|
|
8298
8304
|
};
|
|
8299
8305
|
}
|
|
8300
|
-
}),
|
|
8306
|
+
}), Pd = {
|
|
8301
8307
|
class: /* @__PURE__ */ Ke(["flex", "space-x-40", "max-w-[1200px] mx-auto w-full"])
|
|
8302
|
-
},
|
|
8308
|
+
}, Ld = {
|
|
8303
8309
|
key: 1,
|
|
8304
8310
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8305
|
-
},
|
|
8311
|
+
}, xd = {
|
|
8306
8312
|
key: 3,
|
|
8307
8313
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8308
|
-
},
|
|
8314
|
+
}, Ud = {
|
|
8309
8315
|
key: 4,
|
|
8310
8316
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8311
|
-
},
|
|
8317
|
+
}, Vd = {
|
|
8312
8318
|
key: 6,
|
|
8313
8319
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8314
|
-
},
|
|
8320
|
+
}, zd = {
|
|
8315
8321
|
key: 7,
|
|
8316
8322
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8317
|
-
},
|
|
8323
|
+
}, $d = {
|
|
8318
8324
|
key: 9,
|
|
8319
8325
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8320
|
-
},
|
|
8326
|
+
}, Gd = {
|
|
8321
8327
|
key: 11,
|
|
8322
8328
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8323
|
-
},
|
|
8329
|
+
}, Bd = /* @__PURE__ */ ve({
|
|
8324
8330
|
__name: "Form",
|
|
8325
8331
|
props: {
|
|
8326
8332
|
initialForm: {},
|
|
@@ -8335,7 +8341,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8335
8341
|
$t(async () => {
|
|
8336
8342
|
n.autoShow && (await u(100), d());
|
|
8337
8343
|
});
|
|
8338
|
-
const m =
|
|
8344
|
+
const m = ie(!1);
|
|
8339
8345
|
Le(
|
|
8340
8346
|
() => m.value,
|
|
8341
8347
|
async (f) => {
|
|
@@ -8344,12 +8350,12 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8344
8350
|
);
|
|
8345
8351
|
const d = () => {
|
|
8346
8352
|
m.value = !m.value;
|
|
8347
|
-
}, c =
|
|
8353
|
+
}, c = ie(), p = ie(
|
|
8348
8354
|
n.initialForm ? be(n.initialForm) : {
|
|
8349
8355
|
...Je.generator.initMenuV4Item(),
|
|
8350
8356
|
category: n.categoryId
|
|
8351
8357
|
}
|
|
8352
|
-
), b =
|
|
8358
|
+
), b = ie(null);
|
|
8353
8359
|
Le(
|
|
8354
8360
|
() => n.initialForm,
|
|
8355
8361
|
async () => {
|
|
@@ -8372,7 +8378,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8372
8378
|
}, v = z(() => {
|
|
8373
8379
|
var f;
|
|
8374
8380
|
return a.mapVariant((f = p.value.variant) == null ? void 0 : f.variantGroupIds);
|
|
8375
|
-
}), h =
|
|
8381
|
+
}), h = ie(null);
|
|
8376
8382
|
Le(
|
|
8377
8383
|
() => p.value.thumbnail,
|
|
8378
8384
|
async (f) => {
|
|
@@ -8417,7 +8423,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8417
8423
|
h.value = null, p.value.thumbnail = null;
|
|
8418
8424
|
}
|
|
8419
8425
|
const I = z(() => {
|
|
8420
|
-
var f, g, L, Y, X,
|
|
8426
|
+
var f, g, L, Y, X, ce, F, j, ge;
|
|
8421
8427
|
return {
|
|
8422
8428
|
title: r("menu.product.form.summary.title"),
|
|
8423
8429
|
items: [
|
|
@@ -8447,20 +8453,20 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8447
8453
|
},
|
|
8448
8454
|
{
|
|
8449
8455
|
name: r("menu.product.form.summary.fields.inventory"),
|
|
8450
|
-
value: (
|
|
8456
|
+
value: (ce = p.value.inventoryBindings) != null && ce.length ? String(p.value.inventoryBindings.length) : (j = (F = c.value) == null ? void 0 : F.inventoryBindings) != null && j.length ? String(c.value.inventoryBindings.length) : "-"
|
|
8451
8457
|
},
|
|
8452
8458
|
{
|
|
8453
8459
|
name: r("menu.product.form.summary.fields.takeaway"),
|
|
8454
|
-
value: ((
|
|
8460
|
+
value: ((ge = a.state.menu.modules.takeaway.find(
|
|
8455
8461
|
(ke) => {
|
|
8456
8462
|
var tt;
|
|
8457
8463
|
return ke._id === (p.value.takeawayUsed || ((tt = c.value) == null ? void 0 : tt.takeawayUsed));
|
|
8458
8464
|
}
|
|
8459
|
-
)) == null ? void 0 :
|
|
8465
|
+
)) == null ? void 0 : ge.name) || "-"
|
|
8460
8466
|
}
|
|
8461
8467
|
]
|
|
8462
8468
|
};
|
|
8463
|
-
}), N =
|
|
8469
|
+
}), N = ie(
|
|
8464
8470
|
p.value.category != null || !!p.value.code || !!p.value.orderFrom
|
|
8465
8471
|
);
|
|
8466
8472
|
function M(f) {
|
|
@@ -8479,7 +8485,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8479
8485
|
for (const [Y, X] of Object.entries(g.customAttributes || {}))
|
|
8480
8486
|
typeof X == "string" && X && !((L = f[Y]) != null && L.includes(X)) && (f[Y] = [...f[Y] || [], X]);
|
|
8481
8487
|
}), f;
|
|
8482
|
-
}), V =
|
|
8488
|
+
}), V = ie(!!p.value.price || !!p.value.minPrice || !!p.value.costing);
|
|
8483
8489
|
function D(f) {
|
|
8484
8490
|
f || (p.value = {
|
|
8485
8491
|
...p.value,
|
|
@@ -8488,7 +8494,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8488
8494
|
price: void 0
|
|
8489
8495
|
});
|
|
8490
8496
|
}
|
|
8491
|
-
const C =
|
|
8497
|
+
const C = ie(
|
|
8492
8498
|
(((yt = p.value.variant) == null ? void 0 : yt.variantCombinations) || []).some(
|
|
8493
8499
|
(f) => !!f.price || !!f.orderFrom || !!f.code
|
|
8494
8500
|
)
|
|
@@ -8508,10 +8514,10 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8508
8514
|
}
|
|
8509
8515
|
});
|
|
8510
8516
|
}
|
|
8511
|
-
const
|
|
8517
|
+
const ue = ie(
|
|
8512
8518
|
!!p.value.inventoryBindings || (((ct = p.value.variant) == null ? void 0 : ct.variantCombinations) || []).some((f) => !!f.inventoryBindings) || !1
|
|
8513
8519
|
);
|
|
8514
|
-
function
|
|
8520
|
+
function de(f) {
|
|
8515
8521
|
var g, L, Y;
|
|
8516
8522
|
f || (p.value = {
|
|
8517
8523
|
...p.value,
|
|
@@ -8525,7 +8531,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8525
8531
|
} : void 0
|
|
8526
8532
|
});
|
|
8527
8533
|
}
|
|
8528
|
-
const we =
|
|
8534
|
+
const we = ie(
|
|
8529
8535
|
p.value.takeawayUsed != null || (((dt = p.value.variant) == null ? void 0 : dt.variantCombinations) || []).some((f) => f.takeawayUsed != null) || !1
|
|
8530
8536
|
);
|
|
8531
8537
|
function G(f) {
|
|
@@ -8542,17 +8548,17 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8542
8548
|
}
|
|
8543
8549
|
});
|
|
8544
8550
|
}
|
|
8545
|
-
const H =
|
|
8551
|
+
const H = ie(!!p.value.print);
|
|
8546
8552
|
function Z(f) {
|
|
8547
8553
|
f || (p.value = { ...p.value, print: void 0 });
|
|
8548
8554
|
}
|
|
8549
|
-
const
|
|
8555
|
+
const te = ie(
|
|
8550
8556
|
!!((wt = p.value.groups) != null && wt.length) != null || (((xt = p.value.variant) == null ? void 0 : xt.variantCombinations) || []).some((f) => {
|
|
8551
8557
|
var g;
|
|
8552
8558
|
return !!((g = f.groups) != null && g.length);
|
|
8553
8559
|
}) || !1
|
|
8554
8560
|
);
|
|
8555
|
-
function
|
|
8561
|
+
function ne(f) {
|
|
8556
8562
|
var g, L;
|
|
8557
8563
|
f || (p.value = {
|
|
8558
8564
|
...p.value,
|
|
@@ -8602,25 +8608,25 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8602
8608
|
console.log(f);
|
|
8603
8609
|
}
|
|
8604
8610
|
});
|
|
8605
|
-
const
|
|
8611
|
+
const Q = Cr();
|
|
8606
8612
|
$t(() => {
|
|
8607
|
-
|
|
8613
|
+
Q.isUpdatingItem || (Q.isUpdatingItem = !0, Q.storedCatalogId = a.state.currentCatalogId, Q.storedSchedulerId = a.state.currentSchedulerId);
|
|
8608
8614
|
});
|
|
8609
|
-
function
|
|
8610
|
-
|
|
8615
|
+
function le() {
|
|
8616
|
+
Q.isUpdatingItem = !1, a.selectCatalog(Q.storedCatalogId), a.selectScheduler(Q.storedSchedulerId);
|
|
8611
8617
|
}
|
|
8612
|
-
function
|
|
8618
|
+
function oe() {
|
|
8613
8619
|
A.value && [
|
|
8614
8620
|
[N.value, M],
|
|
8615
8621
|
[V.value, D]
|
|
8616
8622
|
].forEach(([g, L]) => {
|
|
8617
8623
|
g || L(!1);
|
|
8618
|
-
}), i("submit:form", p.value, h.value), d(),
|
|
8624
|
+
}), i("submit:form", p.value, h.value), d(), le();
|
|
8619
8625
|
}
|
|
8620
8626
|
function Ae() {
|
|
8621
|
-
d(),
|
|
8627
|
+
d(), le();
|
|
8622
8628
|
}
|
|
8623
|
-
const { isAtMost: je } = _o(), Lt =
|
|
8629
|
+
const { isAtMost: je } = _o(), Lt = ie(null), qt = Ga(Lt);
|
|
8624
8630
|
return (f, g) => (x(), re(Ve, null, [
|
|
8625
8631
|
Ce(f.$slots, "trigger", Sa(Oa({
|
|
8626
8632
|
trigger: d
|
|
@@ -8637,7 +8643,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8637
8643
|
click: Ae
|
|
8638
8644
|
}
|
|
8639
8645
|
],
|
|
8640
|
-
onOnPrimary:
|
|
8646
|
+
onOnPrimary: oe,
|
|
8641
8647
|
onOnCancel: Ae
|
|
8642
8648
|
}, {
|
|
8643
8649
|
"append-title": W(() => [
|
|
@@ -8662,7 +8668,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8662
8668
|
title: I.value.title,
|
|
8663
8669
|
items: I.value.items
|
|
8664
8670
|
}, null, 8, ["style", "title", "items"])),
|
|
8665
|
-
B("div",
|
|
8671
|
+
B("div", Pd, [
|
|
8666
8672
|
B("div", {
|
|
8667
8673
|
ref_key: "formWrapper",
|
|
8668
8674
|
ref: Lt,
|
|
@@ -8685,7 +8691,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8685
8691
|
title: y(r)("menu.product.form.sections.general.title")
|
|
8686
8692
|
}, {
|
|
8687
8693
|
default: W(() => [
|
|
8688
|
-
R(
|
|
8694
|
+
R(nc, {
|
|
8689
8695
|
fallback: c.value,
|
|
8690
8696
|
form: p.value,
|
|
8691
8697
|
"is-addon": T.value,
|
|
@@ -8699,7 +8705,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8699
8705
|
]),
|
|
8700
8706
|
_: 1
|
|
8701
8707
|
}, 8, ["toggle", "disabled", "description", "title"]),
|
|
8702
|
-
A.value ? se("", !0) : (x(), re("div",
|
|
8708
|
+
A.value ? se("", !0) : (x(), re("div", Ld)),
|
|
8703
8709
|
w.value ? (x(), J(ut, {
|
|
8704
8710
|
key: 2,
|
|
8705
8711
|
title: y(r)("menu.product.form.sections.tagging.title"),
|
|
@@ -8715,7 +8721,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8715
8721
|
]),
|
|
8716
8722
|
_: 1
|
|
8717
8723
|
}, 8, ["title", "sub-title"])) : se("", !0),
|
|
8718
|
-
w.value ? (x(), re("div",
|
|
8724
|
+
w.value ? (x(), re("div", xd)) : se("", !0),
|
|
8719
8725
|
R(Tt, {
|
|
8720
8726
|
toggle: V.value,
|
|
8721
8727
|
"onUpdate:toggle": [
|
|
@@ -8727,7 +8733,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8727
8733
|
title: y(r)("menu.product.form.sections.price.title")
|
|
8728
8734
|
}, {
|
|
8729
8735
|
default: W(() => [
|
|
8730
|
-
R(
|
|
8736
|
+
R(ld, {
|
|
8731
8737
|
fallback: c.value,
|
|
8732
8738
|
form: p.value,
|
|
8733
8739
|
"is-addon": T.value,
|
|
@@ -8737,7 +8743,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8737
8743
|
]),
|
|
8738
8744
|
_: 1
|
|
8739
8745
|
}, 8, ["toggle", "disabled", "description", "title"]),
|
|
8740
|
-
s.value.print && !A.value ? (x(), re("div",
|
|
8746
|
+
s.value.print && !A.value ? (x(), re("div", Ud)) : se("", !0),
|
|
8741
8747
|
s.value.print ? (x(), J(Tt, {
|
|
8742
8748
|
key: 5,
|
|
8743
8749
|
toggle: H.value,
|
|
@@ -8750,7 +8756,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8750
8756
|
title: "Update print"
|
|
8751
8757
|
}, {
|
|
8752
8758
|
default: W(() => [
|
|
8753
|
-
R(
|
|
8759
|
+
R(_d, {
|
|
8754
8760
|
fallback: c.value,
|
|
8755
8761
|
form: p.value,
|
|
8756
8762
|
"full-combinations": v.value,
|
|
@@ -8762,7 +8768,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8762
8768
|
]),
|
|
8763
8769
|
_: 1
|
|
8764
8770
|
}, 8, ["toggle"])) : se("", !0),
|
|
8765
|
-
A.value ? se("", !0) : (x(), re("div",
|
|
8771
|
+
A.value ? se("", !0) : (x(), re("div", Vd)),
|
|
8766
8772
|
R(Tt, {
|
|
8767
8773
|
toggle: C.value,
|
|
8768
8774
|
"onUpdate:toggle": [
|
|
@@ -8774,7 +8780,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8774
8780
|
title: y(r)("menu.product.form.sections.variant.title")
|
|
8775
8781
|
}, {
|
|
8776
8782
|
default: W(() => [
|
|
8777
|
-
R(
|
|
8783
|
+
R(Nd, {
|
|
8778
8784
|
fallback: c.value,
|
|
8779
8785
|
form: p.value,
|
|
8780
8786
|
"full-combinations": v.value,
|
|
@@ -8786,20 +8792,20 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8786
8792
|
]),
|
|
8787
8793
|
_: 1
|
|
8788
8794
|
}, 8, ["toggle", "disabled", "description", "title"]),
|
|
8789
|
-
s.value.group && !A.value ? (x(), re("div",
|
|
8795
|
+
s.value.group && !A.value ? (x(), re("div", zd)) : se("", !0),
|
|
8790
8796
|
s.value.group ? (x(), J(Tt, {
|
|
8791
8797
|
key: 8,
|
|
8792
|
-
toggle:
|
|
8798
|
+
toggle: te.value,
|
|
8793
8799
|
"onUpdate:toggle": [
|
|
8794
|
-
g[13] || (g[13] = (X) =>
|
|
8795
|
-
g[14] || (g[14] = (X) =>
|
|
8800
|
+
g[13] || (g[13] = (X) => te.value = X),
|
|
8801
|
+
g[14] || (g[14] = (X) => ne(X))
|
|
8796
8802
|
],
|
|
8797
8803
|
disabled: !A.value,
|
|
8798
8804
|
description: "Use a different group setting",
|
|
8799
8805
|
title: "Update group"
|
|
8800
8806
|
}, {
|
|
8801
8807
|
default: W(() => [
|
|
8802
|
-
R(
|
|
8808
|
+
R(Hc, {
|
|
8803
8809
|
fallback: c.value,
|
|
8804
8810
|
form: p.value,
|
|
8805
8811
|
"full-combinations": v.value,
|
|
@@ -8811,20 +8817,20 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8811
8817
|
]),
|
|
8812
8818
|
_: 1
|
|
8813
8819
|
}, 8, ["toggle", "disabled"])) : se("", !0),
|
|
8814
|
-
s.value.inventory && !A.value ? (x(), re("div",
|
|
8820
|
+
s.value.inventory && !A.value ? (x(), re("div", $d)) : se("", !0),
|
|
8815
8821
|
s.value.inventory ? (x(), J(Tt, {
|
|
8816
8822
|
key: 10,
|
|
8817
|
-
toggle:
|
|
8823
|
+
toggle: ue.value,
|
|
8818
8824
|
"onUpdate:toggle": [
|
|
8819
|
-
g[16] || (g[16] = (X) =>
|
|
8820
|
-
g[17] || (g[17] = (X) =>
|
|
8825
|
+
g[16] || (g[16] = (X) => ue.value = X),
|
|
8826
|
+
g[17] || (g[17] = (X) => de(X))
|
|
8821
8827
|
],
|
|
8822
8828
|
disabled: !A.value,
|
|
8823
8829
|
description: y(r)("menu.product.form.sections.inventory.description"),
|
|
8824
8830
|
title: y(r)("menu.product.form.sections.inventory.title")
|
|
8825
8831
|
}, {
|
|
8826
8832
|
default: W(() => [
|
|
8827
|
-
R(
|
|
8833
|
+
R(Yc, {
|
|
8828
8834
|
fallback: c.value,
|
|
8829
8835
|
form: p.value,
|
|
8830
8836
|
"full-combinations": v.value,
|
|
@@ -8836,7 +8842,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8836
8842
|
]),
|
|
8837
8843
|
_: 1
|
|
8838
8844
|
}, 8, ["toggle", "disabled", "description", "title"])) : se("", !0),
|
|
8839
|
-
s.value.takeaway(p.value.category ?? ((L = c.value) == null ? void 0 : L.category)) && !A.value ? (x(), re("div",
|
|
8845
|
+
s.value.takeaway(p.value.category ?? ((L = c.value) == null ? void 0 : L.category)) && !A.value ? (x(), re("div", Gd)) : se("", !0),
|
|
8840
8846
|
s.value.takeaway(p.value.category ?? ((Y = c.value) == null ? void 0 : Y.category)) ? (x(), J(Tt, {
|
|
8841
8847
|
key: 12,
|
|
8842
8848
|
toggle: we.value,
|
|
@@ -8849,7 +8855,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8849
8855
|
title: y(r)("menu.product.form.sections.takeaway.title")
|
|
8850
8856
|
}, {
|
|
8851
8857
|
default: W(() => [
|
|
8852
|
-
R(
|
|
8858
|
+
R(yd, {
|
|
8853
8859
|
fallback: c.value,
|
|
8854
8860
|
form: p.value,
|
|
8855
8861
|
"full-combinations": v.value,
|
|
@@ -8870,7 +8876,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8870
8876
|
}, 8, ["title", "show", "primary-action", "secondary-actions"])
|
|
8871
8877
|
], 64));
|
|
8872
8878
|
}
|
|
8873
|
-
}),
|
|
8879
|
+
}), Wd = Bd;
|
|
8874
8880
|
function pa(e, t) {
|
|
8875
8881
|
var o, r, l, s;
|
|
8876
8882
|
const n = (o = t.groups) == null ? void 0 : o.reduce((u, m) => {
|
|
@@ -8915,8 +8921,8 @@ function pa(e, t) {
|
|
|
8915
8921
|
}
|
|
8916
8922
|
return { ...t, groups: a(t.groups || []) };
|
|
8917
8923
|
}
|
|
8918
|
-
function
|
|
8919
|
-
const a = be(t), o = n ? a.modules.catalog.find((c) => c._id === n) : null, r = i ? a.modules.scheduler.find((c) => c._id === i) : null, l = o ? be(o) : void 0, s = n ? a.modules.catalog.filter((c) => c._id !== n) : [], u = r ? be(r) : void 0, m = e.reduce((c, p) => (c[p._id] =
|
|
8924
|
+
function Hd(e, t, n, i) {
|
|
8925
|
+
const a = be(t), o = n ? a.modules.catalog.find((c) => c._id === n) : null, r = i ? a.modules.scheduler.find((c) => c._id === i) : null, l = o ? be(o) : void 0, s = n ? a.modules.catalog.filter((c) => c._id !== n) : [], u = r ? be(r) : void 0, m = e.reduce((c, p) => (c[p._id] = jd(p), c), {});
|
|
8920
8926
|
function d(c = []) {
|
|
8921
8927
|
const p = e.map((b) => b._id);
|
|
8922
8928
|
return [
|
|
@@ -8952,12 +8958,12 @@ function Wd(e, t, n, i) {
|
|
|
8952
8958
|
_id: a._id
|
|
8953
8959
|
};
|
|
8954
8960
|
}
|
|
8955
|
-
function
|
|
8961
|
+
function jd(e) {
|
|
8956
8962
|
var i;
|
|
8957
8963
|
const t = be(e), n = (i = t.variant) == null ? void 0 : i.variantCombinations;
|
|
8958
8964
|
return delete t.variant, delete t.thumbnail, [t, ...n || []];
|
|
8959
8965
|
}
|
|
8960
|
-
function
|
|
8966
|
+
function Kd(e, t) {
|
|
8961
8967
|
var i;
|
|
8962
8968
|
return {
|
|
8963
8969
|
...t.find((a) => !a.combinationKey),
|
|
@@ -8971,7 +8977,7 @@ function jd(e, t) {
|
|
|
8971
8977
|
const ki = mo("item-manager", () => {
|
|
8972
8978
|
const e = Me(), t = Qe(), n = lt(), i = St(t), a = Ot(i), o = an(), { t: r } = Se(), l = (w) => {
|
|
8973
8979
|
if (!o) throw new Error("No current instance found");
|
|
8974
|
-
const { container: U } = Pa(
|
|
8980
|
+
const { container: U } = Pa(Wd, o, {
|
|
8975
8981
|
...w,
|
|
8976
8982
|
autoShow: !0,
|
|
8977
8983
|
"onUpdate:show": async (k) => {
|
|
@@ -8993,11 +8999,11 @@ const ki = mo("item-manager", () => {
|
|
|
8993
8999
|
}
|
|
8994
9000
|
async function u(w, U, k) {
|
|
8995
9001
|
l({
|
|
8996
|
-
initialForm:
|
|
9002
|
+
initialForm: Kd(w, U || []),
|
|
8997
9003
|
action: "update",
|
|
8998
9004
|
"onSubmit:form": async (I) => {
|
|
8999
9005
|
I.inventoryBindings ?? (I.inventoryBindings = []), I.inventoryBindings.length === 0 && (I.inventoryBindings = null), await k(
|
|
9000
|
-
|
|
9006
|
+
Hd(
|
|
9001
9007
|
[I],
|
|
9002
9008
|
e.state.menu,
|
|
9003
9009
|
e.state.currentCatalogId,
|
|
@@ -9216,10 +9222,10 @@ const ki = mo("item-manager", () => {
|
|
|
9216
9222
|
export {
|
|
9217
9223
|
co as A,
|
|
9218
9224
|
Ur as C,
|
|
9219
|
-
|
|
9225
|
+
dc as F,
|
|
9220
9226
|
Fr as I,
|
|
9221
9227
|
Ro as M,
|
|
9222
|
-
|
|
9228
|
+
pd as P,
|
|
9223
9229
|
We as R,
|
|
9224
9230
|
$u as S,
|
|
9225
9231
|
Tt as T,
|
|
@@ -9230,22 +9236,22 @@ export {
|
|
|
9230
9236
|
li as d,
|
|
9231
9237
|
ci as e,
|
|
9232
9238
|
Wo as f,
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9239
|
+
Hd as g,
|
|
9240
|
+
Rc as h,
|
|
9241
|
+
Sm as i,
|
|
9236
9242
|
Oo as j,
|
|
9237
9243
|
On as k,
|
|
9238
9244
|
pa as l,
|
|
9239
9245
|
Co as m,
|
|
9240
9246
|
la as n,
|
|
9241
|
-
|
|
9247
|
+
Kd as o,
|
|
9242
9248
|
ua as p,
|
|
9243
9249
|
ca as q,
|
|
9244
9250
|
ar as r,
|
|
9245
|
-
|
|
9246
|
-
|
|
9251
|
+
bd as s,
|
|
9252
|
+
gc as t,
|
|
9247
9253
|
ki as u,
|
|
9248
|
-
|
|
9254
|
+
Om as v,
|
|
9249
9255
|
Ar as w,
|
|
9250
9256
|
vn as x,
|
|
9251
9257
|
ma as y
|