@feedmepos/mf-menu 0.31.33 → 0.31.34-alpha
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-DNDOc3bV.js → App-CaKDbV0S.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BvrfcWHU.js → ApplyProduct.vue_vue_type_script_setup_true_lang-gY18sRMg.js} +20 -20
- package/dist/{Catalog-Zhi-3W6T.js → Catalog-B0zMoi7e.js} +80 -80
- package/dist/{Category-BU0bkAGd.js → Category-Dyou6Q17.js} +31 -27
- package/dist/{Category-CE9ixFkD.js → Category-rMN8037Q.js} +19 -19
- package/dist/{CookingGuide-eghVaeEY.js → CookingGuide-DT2XxaWa.js} +4 -4
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cv9LNAfi.js +113 -0
- package/dist/{Group-DWrtP9Au.js → Group-CYSIOe3D.js} +1 -1
- package/dist/{Group-DDZPf6LY.js → Group-M4WPAAYz.js} +3 -3
- package/dist/Group.vue_vue_type_script_setup_true_lang-B-BH-2WN.js +686 -0
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-TQWka93A.js +367 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Cus0YKUt.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DgSO7SQW.js} +4982 -5081
- package/dist/{Ingredient-BJgvOyV9.js → Ingredient-DNvr30pW.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CF99abLi.js → InventoryBinding.vue_vue_type_script_setup_true_lang-G44luws0.js} +1052 -1052
- package/dist/LinkProductSideSheet-Cp0HFoP2.js +297 -0
- package/dist/LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js +8024 -0
- package/dist/{MenuSetting-gkwORUX0.js → MenuSetting-UeQ2NyVm.js} +4 -4
- package/dist/{PrintRoute-Cda6sFlL.js → PrintRoute-5uX9ymJY.js} +89 -88
- package/dist/{Product-61AAh5L-.js → Product-Dxqf8_iq.js} +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-DUtGVRCH.js +1578 -0
- package/dist/{ProductInternalTools-o8cVZXCT.js → ProductInternalTools-BCF9q0i_.js} +5 -5
- package/dist/Products--adhOQ8n.js +283 -0
- package/dist/{Publish-BRgJUzoA.js → Publish-CRaoaFxc.js} +3 -3
- package/dist/{Recipe-CV8lvryp.js → Recipe-DPkzZMJi.js} +4 -4
- package/dist/{Scheduler-B_ptvb82.js → Scheduler-BuwjNHHj.js} +3 -3
- package/dist/{ServingSequence-DABGnLbT.js → ServingSequence-Cdf_Zmat.js} +3 -3
- package/dist/Setting-Vr3Thttm.js +259 -0
- package/dist/{Subcategory-BiqlAvMs.js → Subcategory-DoXmjcg1.js} +4 -4
- package/dist/{Takeaway-BBdkzEiP.js → Takeaway-BRTQu8VT.js} +1 -1
- package/dist/{Takeaway-nIjrDu5C.js → Takeaway-t3il54Bd.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-D_M2PFO-.js → Takeaway.vue_vue_type_script_setup_true_lang-DtHABSgp.js} +6 -6
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-D_ACNj_Z.js +431 -0
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DAoGiRV-.js +5990 -0
- package/dist/{Unit-Di5sUbhV.js → Unit-C_QY3IX_.js} +2 -2
- package/dist/{Variant-CiZCtZk9.js → Variant-CR4IEm-Q.js} +3 -3
- package/dist/_id_-DOU7ieGB.js +202 -0
- package/dist/{app-B63V5b4I.js → app--fRC3N4C.js} +1 -1
- package/dist/{app-DuD_IPou.js → app-CrXLAKdw.js} +95 -97
- package/dist/app.js +6 -7
- package/dist/apps/mf-menu/src/app.d.ts +62 -3
- package/dist/apps/mf-menu/src/components/feature/PriceTier/LinkPriceTierSection.vue.d.ts +24 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +30 -0
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +33 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/catalog.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +80 -1
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +1276 -0
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +77 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +77 -0
- package/dist/apps/mf-menu/src/helper/setting/catalogSetting.d.ts +11 -2
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +77 -0
- package/dist/apps/mf-menu/src/router/shared.d.ts +0 -1
- package/dist/apps/mf-menu/src/stores/manager/catalog.d.ts +2 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +79 -0
- package/dist/apps/mf-menu/src/types/linkProducts.d.ts +21 -0
- package/dist/apps/mf-menu/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +5 -3
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +82 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-BTF_dm9R.js +24 -0
- package/dist/assets/override-menu-BPu7TVCy.js +24 -0
- package/dist/assets/validate-menu-BQpDfHbr.js +24 -0
- package/dist/{catalog-DfYSMjLc.js → catalog-BGiDWODL.js} +1 -1
- package/dist/catalogSetting-C34kIcYn.js +71 -0
- package/dist/{category-mmjX_QdF.js → category-CayMSpUc.js} +1 -1
- package/dist/{currency-3ugQtBPt.js → currency-BggoZpJv.js} +1 -1
- package/dist/{dayjs.min-CkV4mNm8.js → dayjs.min-BKDTLohL.js} +1 -1
- package/dist/{index-Cztb2LVZ.js → index-BPcRbiW0.js} +3 -3
- package/dist/{index-BboaHtmY.js → index-CLFhXi0y.js} +3 -3
- package/dist/index-D7yR1j9C.js +215 -0
- package/dist/{index-BZaKuDcN.js → index-f9kzXNPD.js} +28 -28
- package/dist/{item-CVnDeXhJ.js → item-C51o9ejv.js} +547 -545
- package/dist/{jszip.min-GxfcHBC5.js → jszip.min-m57vowh9.js} +353 -353
- package/dist/{menu-sGVv4bhQ.js → menu-DHfLxvzU.js} +4 -4
- package/dist/menu-DK7wG3S5.js +133287 -0
- package/dist/menuV2-B-0V65cx.js +707 -0
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-CHTA0ZEb.js → priceTier-DD-24pkj.js} +1 -1
- package/dist/{scheduler-CaMxCHZ0.js → scheduler-NjDv_P4c.js} +16 -17
- package/dist/subcategory-DLdBwjHV.js +148 -0
- package/dist/{toExcel-WorodvP1.js → toExcel-coJ5igRV.js} +15 -15
- package/dist/{unit-DtKZZYL6.js → unit-C7XUV0EW.js} +5 -4
- package/package.json +5 -5
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-BiF8rW4M.js +0 -7949
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
- package/dist/Group.vue_vue_type_script_setup_true_lang-DyqGsRAW.js +0 -698
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BmRUg94d.js +0 -206
- package/dist/LinkProductSideSheet-CTT4oGUY.js +0 -112
- package/dist/Product.vue_vue_type_script_setup_true_lang-Cy4uok1E.js +0 -1560
- package/dist/Products-D0rrANT6.js +0 -270
- package/dist/Setting-3ISlMXOA.js +0 -258
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DzQ8_6Bi.js +0 -71
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-y0n5hTLk.js +0 -6149
- package/dist/_id_-DY8himeL.js +0 -200
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +0 -70
- package/dist/assets/linked-status-CkBKnMXs.js +0 -24
- package/dist/assets/override-menu-XZ7XfcfS.js +0 -24
- package/dist/assets/validate-menu-Bomogq01.js +0 -24
- package/dist/catalogSetting-_4Z0s3_Q.js +0 -65
- package/dist/index-Ce4v8o7D.js +0 -106
- package/dist/menu-IGORh0Ik.js +0 -108039
- package/dist/subcategory-CmVttqlG.js +0 -817
- /package/dist/{apps/mf-menu/src/components → packages/shared/src/components/info}/CustomAttributeChip.vue.d.ts +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { defineStore as mo } from "pinia";
|
|
2
|
-
import { createElementBlock as re, openBlock as U, createElementVNode as B, defineComponent as ge, resolveComponent as K, createBlock as J, createVNode as
|
|
3
|
-
import { J as ze, G as q,
|
|
2
|
+
import { createElementBlock as re, openBlock as U, createElementVNode as B, defineComponent as ge, resolveComponent as K, createBlock as J, createVNode as O, toDisplayString as Ee, Fragment as Ve, renderList as rt, h as Fe, ref as oe, computed as V, watch as Le, unref as b, renderSlot as Ce, withCtx as W, createCommentVNode as se, Transition as ha, getCurrentInstance as an, inject as ga, shallowRef as va, onMounted as $t, onUnmounted as _a, Text as ba, normalizeClass as Ke, resolveDynamicComponent as wn, withDirectives as Xt, vShow as kn, mergeProps as po, withModifiers as Rn, createTextVNode as Bn, resolveDirective as fo, markRaw as ya, render as Wn, mergeModels as wa, useModel as Ea, nextTick as ho, onBeforeUnmount as Sa, normalizeProps as ka, guardReactiveProps as Ra, normalizeStyle as Oa } from "vue";
|
|
3
|
+
import { J as ze, G as q, ah as Ca, aj as Aa, X as Ia, H as be, B as Je, T as go, u as Me, A as Ge, I as at, a0 as Ta, D as kt, O as Rt, P as Ma, Q as Da, R as Fa, U as Fn, ab as Na, M as Pa, K as ki } from "./menu-DK7wG3S5.js";
|
|
4
4
|
import { useI18n as ke, useCoreStore as rn, CustomAttributesForm as vo } from "@feedmepos/mf-common";
|
|
5
|
-
import { useDialog as lt, useSnackbar as Qe, components as Be, FmButtonColorThemeVariant as ft, FmButtonVariant as
|
|
6
|
-
import { C as ht } from "./catalog-
|
|
5
|
+
import { useDialog as lt, useSnackbar as Qe, components as Be, FmButtonColorThemeVariant as ft, FmButtonVariant as Ot, useBreakpoints as _o, useDialogChild as bo } from "@feedmepos/ui-library";
|
|
6
|
+
import { C as ht } from "./catalog-BGiDWODL.js";
|
|
7
7
|
import { c as La } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
8
|
-
import { a as
|
|
9
|
-
import { _ as Ct, L as xa } from "./LinkProductSideSheet-
|
|
8
|
+
import { a as Ri, _ as yo } from "./tooltip-B5BiPMx9.js";
|
|
9
|
+
import { _ as Ct, a as bt, L as xa } from "./LinkProductSideSheet-Cp0HFoP2.js";
|
|
10
10
|
import { _ as ut, a as Ua } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
11
|
-
import { s as Hn, F as Va, _ as za } from "./index-
|
|
12
|
-
import { I as $a, u as Ga } from "./app-
|
|
13
|
-
import { u as Ba } from "./app
|
|
14
|
-
import {
|
|
15
|
-
import { _ as bt } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
11
|
+
import { s as Hn, F as Va, _ as za } from "./index-f9kzXNPD.js";
|
|
12
|
+
import { I as $a, u as Ga } from "./app-CrXLAKdw.js";
|
|
13
|
+
import { u as Ba } from "./app--fRC3N4C.js";
|
|
14
|
+
import { g as wo, b as Wa, c as Ha, a as ja, m as Ka } from "./menuV2-B-0V65cx.js";
|
|
16
15
|
import "@vue/devtools-api";
|
|
17
|
-
import { u as
|
|
16
|
+
import { u as Ya } from "./subcategory-DLdBwjHV.js";
|
|
17
|
+
import { u as Xa } from "./category-CayMSpUc.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-BPcRbiW0.js";
|
|
20
20
|
import { useInventoryStore as Eo, InventoryBindingForm as Ja, InventoryBindingSummary as Za } from "@feedmepos/mf-inventory-portal";
|
|
21
21
|
import { c as sn } from "./check-C9mY6LiX.js";
|
|
22
22
|
import { c as Qa } from "./object-DVUNCr7w.js";
|
|
23
|
-
import { f as Gt } from "./currency-
|
|
24
|
-
import { u as So } from "./priceTier-
|
|
23
|
+
import { f as Gt } from "./currency-BggoZpJv.js";
|
|
24
|
+
import { u as So } from "./priceTier-DD-24pkj.js";
|
|
25
25
|
import { u as er } from "./search-BAPEUu1R.js";
|
|
26
26
|
import { c as tr } from "./string-DpfFixWH.js";
|
|
27
27
|
import { d as ko } from "./vuedraggable-CK8z7qA8.js";
|
|
28
|
-
import { _ as nr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
29
|
-
import { V as
|
|
28
|
+
import { _ as nr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-gY18sRMg.js";
|
|
29
|
+
import { V as Oi } from "./index-CLFhXi0y.js";
|
|
30
30
|
class _n {
|
|
31
31
|
constructor(t, n, i, a) {
|
|
32
32
|
this.scheduler = t, this.menuStore = n, this.updateMenu = i, this.dialog = a;
|
|
@@ -237,7 +237,7 @@ class _n {
|
|
|
237
237
|
})).filter((a) => a.items.length > 0);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function On(e, t) {
|
|
241
241
|
for (const n of t) {
|
|
242
242
|
const i = e.find((a) => a._id === n._id);
|
|
243
243
|
if (i != null && i.isDynamicAddon || n.isDynamicAddon) return q.F_ADDON_GROUP_TYPE.enum.DYNAMIC;
|
|
@@ -297,7 +297,7 @@ function ci(e) {
|
|
|
297
297
|
items: t
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Ro(e) {
|
|
301
301
|
const t = ci(e), n = (o) => ["product", "item", "addonGroup", "group"].some((r) => o._id.startsWith(r)), i = t.items.filter((o) => n(o)), a = t.items.filter((o) => !n(o)).map((o) => ({
|
|
302
302
|
...Je.generator.initMenuV4Item(),
|
|
303
303
|
...o,
|
|
@@ -316,7 +316,7 @@ function Oo(e) {
|
|
|
316
316
|
linkItems: a
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
class
|
|
319
|
+
class Oo {
|
|
320
320
|
constructor(t, n, i) {
|
|
321
321
|
this.menuStore = t, this.updateMenu = n, this.dialog = i;
|
|
322
322
|
}
|
|
@@ -391,7 +391,7 @@ class Ro {
|
|
|
391
391
|
name: go(Me().variants, ((T = E == null ? void 0 : E.variant) == null ? void 0 : T.variantGroupIds) || [])[p.combinationKey]
|
|
392
392
|
} : E, w = (y = o.find((S) => S._id === s._id)) == null ? void 0 : y.items.find((S) => S._id === p._id && S.combinationKey === p.combinationKey), v = !n && !p.combinationKey, h = (x = u.find(
|
|
393
393
|
(S) => S._id == p._id && S.combinationKey == p.combinationKey
|
|
394
|
-
)) == null ? void 0 : x.price, k = p.name ?? (w == null ? void 0 : w.name) ?? (_ == null ? void 0 : _.name) ?? "",
|
|
394
|
+
)) == null ? void 0 : x.price, k = p.name ?? (w == null ? void 0 : w.name) ?? (_ == null ? void 0 : _.name) ?? "", R = {
|
|
395
395
|
...p,
|
|
396
396
|
name: k,
|
|
397
397
|
code: _ == null ? void 0 : _.code,
|
|
@@ -402,8 +402,8 @@ class Ro {
|
|
|
402
402
|
fallbackOrder: _ == null ? void 0 : _.orderFrom,
|
|
403
403
|
priceTiers: p.priceTiers
|
|
404
404
|
};
|
|
405
|
-
return [...c,
|
|
406
|
-
}, []), d =
|
|
405
|
+
return [...c, R];
|
|
406
|
+
}, []), d = On(a, s.items);
|
|
407
407
|
return {
|
|
408
408
|
...s,
|
|
409
409
|
type: d,
|
|
@@ -430,7 +430,7 @@ class Ro {
|
|
|
430
430
|
...s,
|
|
431
431
|
items: (s.items ?? []).map((u) => ({ ...u, _id: "" }))
|
|
432
432
|
}, r), {}));
|
|
433
|
-
const a =
|
|
433
|
+
const a = Ro(n), o = {
|
|
434
434
|
module: q.F_MENU_MODULE_V4_KEY.enum.group,
|
|
435
435
|
operation: ze.F_OPERATION_TYPE.create,
|
|
436
436
|
data: {
|
|
@@ -542,7 +542,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
542
542
|
title: t.title,
|
|
543
543
|
contentComponent: Fe("div", { class: "space-y-4" }, [
|
|
544
544
|
...t.items.map(
|
|
545
|
-
(a) => Fe(
|
|
545
|
+
(a) => Fe(Ri, {
|
|
546
546
|
name: a.name,
|
|
547
547
|
value: a.value || "--"
|
|
548
548
|
})
|
|
@@ -554,8 +554,8 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
554
554
|
const r = K("FmButton");
|
|
555
555
|
return t.variant === "full" ? (U(), re("div", ur, [
|
|
556
556
|
B("div", cr, Ee(a.title), 1),
|
|
557
|
-
|
|
558
|
-
(U(!0), re(Ve, null, rt(a.items, (l) => (U(), J(
|
|
557
|
+
O(lr),
|
|
558
|
+
(U(!0), re(Ve, null, rt(a.items, (l) => (U(), J(Ri, {
|
|
559
559
|
key: l.name,
|
|
560
560
|
name: l.name,
|
|
561
561
|
value: l.value || "--"
|
|
@@ -626,7 +626,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
626
626
|
]),
|
|
627
627
|
B("div", hr, [
|
|
628
628
|
B("div", gr, [
|
|
629
|
-
|
|
629
|
+
O(E, {
|
|
630
630
|
label: b(a)("menu.common.labels.catalog"),
|
|
631
631
|
items: l.value,
|
|
632
632
|
modelValue: r.value,
|
|
@@ -634,7 +634,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
634
634
|
}, null, 8, ["label", "items", "modelValue"])
|
|
635
635
|
]),
|
|
636
636
|
B("div", vr, [
|
|
637
|
-
|
|
637
|
+
O(E, {
|
|
638
638
|
label: b(a)("menu.common.labels.scheduler"),
|
|
639
639
|
items: m.value,
|
|
640
640
|
modelValue: s.value,
|
|
@@ -672,12 +672,12 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
672
672
|
B("p", wr, Ee(i.title), 1),
|
|
673
673
|
i.description ? (U(), re("p", Er, Ee(i.description), 1)) : se("", !0)
|
|
674
674
|
]),
|
|
675
|
-
|
|
675
|
+
O(o, {
|
|
676
676
|
"model-value": i.toggle,
|
|
677
677
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => n("update:toggle", l))
|
|
678
678
|
}, null, 8, ["model-value"])
|
|
679
679
|
]),
|
|
680
|
-
|
|
680
|
+
O(ha, { name: "expand" }, {
|
|
681
681
|
default: W(() => [
|
|
682
682
|
i.toggle ? (U(), re("div", Sr, [
|
|
683
683
|
Ce(i.$slots, "default", {}, void 0, !0)
|
|
@@ -691,9 +691,9 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
693
|
}), Tt = /* @__PURE__ */ Ct(kr, [["__scopeId", "data-v-e920f110"]]);
|
|
694
|
-
var
|
|
694
|
+
var Rr = { remy: "https://remy-dev.feedmeapi.com/v1" };
|
|
695
695
|
let We;
|
|
696
|
-
function
|
|
696
|
+
function Or(e) {
|
|
697
697
|
const t = Ba(), n = $a(e), i = V(() => {
|
|
698
698
|
var s, u, m;
|
|
699
699
|
return ((m = (u = (s = t.publicSetting) == null ? void 0 : s.aiSettings) == null ? void 0 : u.remy) == null ? void 0 : m.enable) || !1;
|
|
@@ -716,9 +716,9 @@ function Rr(e) {
|
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
718
|
function Sm(e) {
|
|
719
|
-
We =
|
|
719
|
+
We = Or({
|
|
720
720
|
token: e,
|
|
721
|
-
url:
|
|
721
|
+
url: Rr.remy
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
724
|
const Cr = mo("menu-edit-state", {
|
|
@@ -780,7 +780,7 @@ const Ur = Object.prototype.hasOwnProperty;
|
|
|
780
780
|
function Ze(e, t) {
|
|
781
781
|
return Ur.call(e, t);
|
|
782
782
|
}
|
|
783
|
-
const Te = Array.isArray,
|
|
783
|
+
const Te = Array.isArray, Re = (e) => typeof e == "function", te = (e) => typeof e == "string", Oe = (e) => typeof e == "boolean", fe = (e) => e !== null && typeof e == "object", Vr = (e) => fe(e) && Re(e.then) && Re(e.catch), Ao = Object.prototype.toString, di = (e) => Ao.call(e), pe = (e) => di(e) === "[object Object]", zr = (e) => e == null ? "" : Te(e) || pe(e) && e.toString === Ao ? JSON.stringify(e, null, 2) : String(e);
|
|
784
784
|
function mi(e, t = "") {
|
|
785
785
|
return e.reduce((n, i, a) => a === 0 ? n + i : n + t + i, "");
|
|
786
786
|
}
|
|
@@ -842,7 +842,7 @@ function Yr(e) {
|
|
|
842
842
|
function k() {
|
|
843
843
|
return r(n + o) && o++, o++, t[n + o];
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function R() {
|
|
846
846
|
n = 0, i = 1, a = 1, o = 0;
|
|
847
847
|
}
|
|
848
848
|
function A(y = 0) {
|
|
@@ -864,7 +864,7 @@ function Yr(e) {
|
|
|
864
864
|
currentPeek: v,
|
|
865
865
|
next: h,
|
|
866
866
|
peek: k,
|
|
867
|
-
reset:
|
|
867
|
+
reset: R,
|
|
868
868
|
resetPeek: A,
|
|
869
869
|
skipToPeek: T
|
|
870
870
|
};
|
|
@@ -939,7 +939,7 @@ function Jr(e, t = {}) {
|
|
|
939
939
|
const Y = v(f.currentPeek());
|
|
940
940
|
return f.resetPeek(), Y;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function R(f, g) {
|
|
943
943
|
const { currentType: L } = g;
|
|
944
944
|
if (L !== 2)
|
|
945
945
|
return !1;
|
|
@@ -1050,7 +1050,7 @@ function Jr(e, t = {}) {
|
|
|
1050
1050
|
L += g;
|
|
1051
1051
|
return L;
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function H(f) {
|
|
1054
1054
|
let g = "";
|
|
1055
1055
|
for (; ; ) {
|
|
1056
1056
|
const L = f.currentChar();
|
|
@@ -1076,18 +1076,18 @@ function Jr(e, t = {}) {
|
|
|
1076
1076
|
L += g;
|
|
1077
1077
|
return f.currentChar() === Et && d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), L;
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function ie(f) {
|
|
1080
1080
|
w(f);
|
|
1081
1081
|
let g = "";
|
|
1082
1082
|
return f.currentChar() === "-" ? (f.next(), g += `-${G(f)}`) : g += G(f), f.currentChar() === Et && d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), g;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function ne(f) {
|
|
1085
1085
|
return f !== Mi && f !== $e;
|
|
1086
1086
|
}
|
|
1087
1087
|
function ee(f) {
|
|
1088
1088
|
w(f), E(f, "'");
|
|
1089
1089
|
let g = "", L = "";
|
|
1090
|
-
for (; g = M(f,
|
|
1090
|
+
for (; g = M(f, ne); )
|
|
1091
1091
|
g === "\\" ? L += Q(f) : L += g;
|
|
1092
1092
|
const Y = f.currentChar();
|
|
1093
1093
|
return Y === $e || Y === Et ? (d(_e.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), Y === $e && (f.next(), E(f, "'")), L) : (E(f, "'"), L);
|
|
@@ -1178,8 +1178,8 @@ function Jr(e, t = {}) {
|
|
|
1178
1178
|
return d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), g.braceNest = 0, wt(f, g);
|
|
1179
1179
|
if (X = k(f, g))
|
|
1180
1180
|
return L = c(g, 4, Z(f)), w(f), L;
|
|
1181
|
-
if (ue =
|
|
1182
|
-
return L = c(g, 5,
|
|
1181
|
+
if (ue = R(f, g))
|
|
1182
|
+
return L = c(g, 5, ie(f)), w(f), L;
|
|
1183
1183
|
if (F = A(f, g))
|
|
1184
1184
|
return L = c(g, 6, ee(f)), w(f), L;
|
|
1185
1185
|
if (!X && !ue && !F)
|
|
@@ -1244,7 +1244,7 @@ function Jr(e, t = {}) {
|
|
|
1244
1244
|
if (I(f))
|
|
1245
1245
|
return L = c(g, 1, yt(f)), g.braceNest = 0, g.inLinked = !1, L;
|
|
1246
1246
|
if (N(f))
|
|
1247
|
-
return c(g, 0,
|
|
1247
|
+
return c(g, 0, H(f));
|
|
1248
1248
|
break;
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
@@ -1281,9 +1281,9 @@ function es(e, t, n) {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
function ts(e = {}) {
|
|
1283
1283
|
const t = e.location !== !1, { onError: n } = e;
|
|
1284
|
-
function i(v, h, k,
|
|
1284
|
+
function i(v, h, k, R, ...A) {
|
|
1285
1285
|
const T = v.currentPosition();
|
|
1286
|
-
if (T.offset +=
|
|
1286
|
+
if (T.offset += R, T.column += R, n) {
|
|
1287
1287
|
const y = t ? Kn(k, T) : null, x = An(h, y, {
|
|
1288
1288
|
domain: Zr,
|
|
1289
1289
|
args: A
|
|
@@ -1292,31 +1292,31 @@ function ts(e = {}) {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
function a(v, h, k) {
|
|
1295
|
-
const
|
|
1296
|
-
return t && (
|
|
1295
|
+
const R = { type: v };
|
|
1296
|
+
return t && (R.start = h, R.end = h, R.loc = { start: k, end: k }), R;
|
|
1297
1297
|
}
|
|
1298
|
-
function o(v, h, k,
|
|
1298
|
+
function o(v, h, k, R) {
|
|
1299
1299
|
t && (v.end = h, v.loc && (v.loc.end = k));
|
|
1300
1300
|
}
|
|
1301
1301
|
function r(v, h) {
|
|
1302
|
-
const k = v.context(),
|
|
1303
|
-
return
|
|
1302
|
+
const k = v.context(), R = a(3, k.offset, k.startLoc);
|
|
1303
|
+
return R.value = h, o(R, v.currentOffset(), v.currentPosition()), R;
|
|
1304
1304
|
}
|
|
1305
1305
|
function l(v, h) {
|
|
1306
|
-
const k = v.context(), { lastOffset:
|
|
1306
|
+
const k = v.context(), { lastOffset: R, lastStartLoc: A } = k, T = a(5, R, A);
|
|
1307
1307
|
return T.index = parseInt(h, 10), v.nextToken(), o(T, v.currentOffset(), v.currentPosition()), T;
|
|
1308
1308
|
}
|
|
1309
1309
|
function s(v, h) {
|
|
1310
|
-
const k = v.context(), { lastOffset:
|
|
1310
|
+
const k = v.context(), { lastOffset: R, lastStartLoc: A } = k, T = a(4, R, A);
|
|
1311
1311
|
return T.key = h, v.nextToken(), o(T, v.currentOffset(), v.currentPosition()), T;
|
|
1312
1312
|
}
|
|
1313
1313
|
function u(v, h) {
|
|
1314
|
-
const k = v.context(), { lastOffset:
|
|
1314
|
+
const k = v.context(), { lastOffset: R, lastStartLoc: A } = k, T = a(9, R, A);
|
|
1315
1315
|
return T.value = h.replace(Qr, es), v.nextToken(), o(T, v.currentOffset(), v.currentPosition()), T;
|
|
1316
1316
|
}
|
|
1317
1317
|
function m(v) {
|
|
1318
|
-
const h = v.nextToken(), k = v.context(), { lastOffset:
|
|
1319
|
-
return h.type !== 11 ? (i(v, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, k.lastStartLoc, 0), T.value = "", o(T,
|
|
1318
|
+
const h = v.nextToken(), k = v.context(), { lastOffset: R, lastStartLoc: A } = k, T = a(8, R, A);
|
|
1319
|
+
return h.type !== 11 ? (i(v, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, k.lastStartLoc, 0), T.value = "", o(T, R, A), {
|
|
1320
1320
|
nextConsumeToken: h,
|
|
1321
1321
|
node: T
|
|
1322
1322
|
}) : (h.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, k.lastStartLoc, 0, nt(h)), T.value = h.value || "", o(T, v.currentOffset(), v.currentPosition()), {
|
|
@@ -1324,34 +1324,34 @@ function ts(e = {}) {
|
|
|
1324
1324
|
});
|
|
1325
1325
|
}
|
|
1326
1326
|
function d(v, h) {
|
|
1327
|
-
const k = v.context(),
|
|
1328
|
-
return
|
|
1327
|
+
const k = v.context(), R = a(7, k.offset, k.startLoc);
|
|
1328
|
+
return R.value = h, o(R, v.currentOffset(), v.currentPosition()), R;
|
|
1329
1329
|
}
|
|
1330
1330
|
function c(v) {
|
|
1331
1331
|
const h = v.context(), k = a(6, h.offset, h.startLoc);
|
|
1332
|
-
let
|
|
1333
|
-
if (
|
|
1332
|
+
let R = v.nextToken();
|
|
1333
|
+
if (R.type === 8) {
|
|
1334
1334
|
const A = m(v);
|
|
1335
|
-
k.modifier = A.node,
|
|
1335
|
+
k.modifier = A.node, R = A.nextConsumeToken || v.nextToken();
|
|
1336
1336
|
}
|
|
1337
|
-
switch (
|
|
1337
|
+
switch (R.type !== 9 && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(R)), R = v.nextToken(), R.type === 2 && (R = v.nextToken()), R.type) {
|
|
1338
1338
|
case 10:
|
|
1339
|
-
|
|
1339
|
+
R.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(R)), k.key = d(v, R.value || "");
|
|
1340
1340
|
break;
|
|
1341
1341
|
case 4:
|
|
1342
|
-
|
|
1342
|
+
R.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(R)), k.key = s(v, R.value || "");
|
|
1343
1343
|
break;
|
|
1344
1344
|
case 5:
|
|
1345
|
-
|
|
1345
|
+
R.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(R)), k.key = l(v, R.value || "");
|
|
1346
1346
|
break;
|
|
1347
1347
|
case 6:
|
|
1348
|
-
|
|
1348
|
+
R.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(R)), k.key = u(v, R.value || "");
|
|
1349
1349
|
break;
|
|
1350
1350
|
default: {
|
|
1351
1351
|
i(v, _e.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
1352
1352
|
const A = v.context(), T = a(7, A.offset, A.startLoc);
|
|
1353
1353
|
return T.value = "", o(T, A.offset, A.startLoc), k.key = T, o(k, A.offset, A.startLoc), {
|
|
1354
|
-
nextConsumeToken:
|
|
1354
|
+
nextConsumeToken: R,
|
|
1355
1355
|
node: k
|
|
1356
1356
|
};
|
|
1357
1357
|
}
|
|
@@ -1361,7 +1361,7 @@ function ts(e = {}) {
|
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
1363
|
function p(v) {
|
|
1364
|
-
const h = v.context(), k = h.currentType === 1 ? v.currentOffset() : h.offset,
|
|
1364
|
+
const h = v.context(), k = h.currentType === 1 ? v.currentOffset() : h.offset, R = h.currentType === 1 ? h.endLoc : h.startLoc, A = a(2, k, R);
|
|
1365
1365
|
A.items = [];
|
|
1366
1366
|
let T = null;
|
|
1367
1367
|
do {
|
|
@@ -1389,11 +1389,11 @@ function ts(e = {}) {
|
|
|
1389
1389
|
const y = h.currentType === 1 ? h.lastOffset : v.currentOffset(), x = h.currentType === 1 ? h.lastEndLoc : v.currentPosition();
|
|
1390
1390
|
return o(A, y, x), A;
|
|
1391
1391
|
}
|
|
1392
|
-
function E(v, h, k,
|
|
1392
|
+
function E(v, h, k, R) {
|
|
1393
1393
|
const A = v.context();
|
|
1394
|
-
let T =
|
|
1394
|
+
let T = R.items.length === 0;
|
|
1395
1395
|
const y = a(1, h, k);
|
|
1396
|
-
y.cases = [], y.cases.push(
|
|
1396
|
+
y.cases = [], y.cases.push(R);
|
|
1397
1397
|
do {
|
|
1398
1398
|
const x = p(v);
|
|
1399
1399
|
T || (T = x.items.length === 0), y.cases.push(x);
|
|
@@ -1401,12 +1401,12 @@ function ts(e = {}) {
|
|
|
1401
1401
|
return T && i(v, _e.MUST_HAVE_MESSAGES_IN_PLURAL, k, 0), o(y, v.currentOffset(), v.currentPosition()), y;
|
|
1402
1402
|
}
|
|
1403
1403
|
function _(v) {
|
|
1404
|
-
const h = v.context(), { offset: k, startLoc:
|
|
1405
|
-
return h.currentType === 13 ? A : E(v, k,
|
|
1404
|
+
const h = v.context(), { offset: k, startLoc: R } = h, A = p(v);
|
|
1405
|
+
return h.currentType === 13 ? A : E(v, k, R, A);
|
|
1406
1406
|
}
|
|
1407
1407
|
function w(v) {
|
|
1408
|
-
const h = Jr(v, Pe({}, e)), k = h.context(),
|
|
1409
|
-
return t &&
|
|
1408
|
+
const h = Jr(v, Pe({}, e)), k = h.context(), R = a(0, k.offset, k.startLoc);
|
|
1409
|
+
return t && R.loc && (R.loc.source = v), R.body = _(h), e.onCacheKey && (R.cacheKey = e.onCacheKey(v)), k.currentType !== 13 && i(h, _e.UNEXPECTED_LEXICAL_ANALYSIS, k.lastStartLoc, 0, v[k.offset] || ""), o(R, h.currentOffset(), h.currentPosition()), R;
|
|
1410
1410
|
}
|
|
1411
1411
|
return { parse: w };
|
|
1412
1412
|
}
|
|
@@ -1766,7 +1766,7 @@ function Yn(e, t) {
|
|
|
1766
1766
|
throw Qt(n);
|
|
1767
1767
|
}
|
|
1768
1768
|
case 6: {
|
|
1769
|
-
const i = t, a =
|
|
1769
|
+
const i = t, a = Os(i), o = As(i);
|
|
1770
1770
|
return e.linked(Yn(e, o), a ? Yn(e, a) : void 0, e.type);
|
|
1771
1771
|
}
|
|
1772
1772
|
case 7:
|
|
@@ -1788,9 +1788,9 @@ function dn(e, t) {
|
|
|
1788
1788
|
return n;
|
|
1789
1789
|
throw Qt(t);
|
|
1790
1790
|
}
|
|
1791
|
-
const
|
|
1792
|
-
function
|
|
1793
|
-
return At(e,
|
|
1791
|
+
const Rs = ["m", "modifier"];
|
|
1792
|
+
function Os(e) {
|
|
1793
|
+
return At(e, Rs);
|
|
1794
1794
|
}
|
|
1795
1795
|
const Cs = ["k", "key"];
|
|
1796
1796
|
function As(e) {
|
|
@@ -1828,7 +1828,7 @@ function Ts(e, t = {}) {
|
|
|
1828
1828
|
// @__NO_SIDE_EFFECTS__
|
|
1829
1829
|
function Ms(e, t) {
|
|
1830
1830
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && te(e)) {
|
|
1831
|
-
|
|
1831
|
+
Oe(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1832
1832
|
const i = (t.onCacheKey || Is)(e), a = mn[i];
|
|
1833
1833
|
if (a)
|
|
1834
1834
|
return a;
|
|
@@ -1882,7 +1882,7 @@ let Pn;
|
|
|
1882
1882
|
function Pi(e) {
|
|
1883
1883
|
if (te(e))
|
|
1884
1884
|
return e;
|
|
1885
|
-
if (
|
|
1885
|
+
if (Re(e)) {
|
|
1886
1886
|
if (e.resolvedOnce && Pn != null)
|
|
1887
1887
|
return Pn;
|
|
1888
1888
|
if (e.constructor.name === "Function") {
|
|
@@ -1917,7 +1917,7 @@ function Io(e, t, n) {
|
|
|
1917
1917
|
}
|
|
1918
1918
|
function Li(e, t, n) {
|
|
1919
1919
|
let i = !0;
|
|
1920
|
-
for (let a = 0; a < t.length &&
|
|
1920
|
+
for (let a = 0; a < t.length && Oe(i); a++) {
|
|
1921
1921
|
const o = t[a];
|
|
1922
1922
|
te(o) && (i = Us(e, t[a], n));
|
|
1923
1923
|
}
|
|
@@ -2221,7 +2221,7 @@ function Ks(e, t) {
|
|
|
2221
2221
|
let a = e, o = 0;
|
|
2222
2222
|
for (; o < i; ) {
|
|
2223
2223
|
const r = a[n[o]];
|
|
2224
|
-
if (r === void 0 ||
|
|
2224
|
+
if (r === void 0 || Re(a))
|
|
2225
2225
|
return null;
|
|
2226
2226
|
a = r, o++;
|
|
2227
2227
|
}
|
|
@@ -2257,7 +2257,7 @@ const zi = (e) => {
|
|
|
2257
2257
|
}, tl = () => No;
|
|
2258
2258
|
let $i = 0;
|
|
2259
2259
|
function nl(e = {}) {
|
|
2260
|
-
const t =
|
|
2260
|
+
const t = Re(e.onWarn) ? e.onWarn : $r, n = te(e.version) ? e.version : Ys, i = te(e.locale) || Re(e.locale) ? e.locale : Sn, a = Re(i) ? Sn : i, o = Te(e.fallbackLocale) || pe(e.fallbackLocale) || te(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, r = pe(e.messages) ? e.messages : Ln(a), l = pe(e.datetimeFormats) ? e.datetimeFormats : Ln(a), s = pe(e.numberFormats) ? e.numberFormats : Ln(a), u = Pe(ye(), e.modifiers, Xs()), m = e.pluralRules || ye(), d = Re(e.missing) ? e.missing : null, c = Oe(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = Oe(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, _ = !!e.unresolving, w = Re(e.postTranslation) ? e.postTranslation : null, v = pe(e.processor) ? e.processor : null, h = Oe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, k = !!e.escapeParameter, R = Re(e.messageCompiler) ? e.messageCompiler : To, A = Re(e.messageResolver) ? e.messageResolver : Mo || js, T = Re(e.localeFallbacker) ? e.localeFallbacker : Do || xs, y = fe(e.fallbackContext) ? e.fallbackContext : void 0, x = e, S = fe(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), I = fe(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), N = fe(x.__meta) ? x.__meta : {};
|
|
2261
2261
|
$i++;
|
|
2262
2262
|
const M = {
|
|
2263
2263
|
version: n,
|
|
@@ -2276,7 +2276,7 @@ function nl(e = {}) {
|
|
|
2276
2276
|
processor: v,
|
|
2277
2277
|
warnHtmlMessage: h,
|
|
2278
2278
|
escapeParameter: k,
|
|
2279
|
-
messageCompiler:
|
|
2279
|
+
messageCompiler: R,
|
|
2280
2280
|
messageResolver: A,
|
|
2281
2281
|
localeFallbacker: T,
|
|
2282
2282
|
fallbackContext: y,
|
|
@@ -2311,8 +2311,8 @@ function ol(e, t) {
|
|
|
2311
2311
|
return !1;
|
|
2312
2312
|
}
|
|
2313
2313
|
function Gi(e, ...t) {
|
|
2314
|
-
const { datetimeFormats: n, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: r } = e, { __datetimeFormatters: l } = e, [s, u, m, d] = Xn(...t), c =
|
|
2315
|
-
|
|
2314
|
+
const { datetimeFormats: n, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: r } = e, { __datetimeFormatters: l } = e, [s, u, m, d] = Xn(...t), c = Oe(m.missingWarn) ? m.missingWarn : e.missingWarn;
|
|
2315
|
+
Oe(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn;
|
|
2316
2316
|
const p = !!m.part, E = hi(e, m), _ = r(
|
|
2317
2317
|
e,
|
|
2318
2318
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2327,10 +2327,10 @@ function Gi(e, ...t) {
|
|
|
2327
2327
|
gi(e, s, v, c, k);
|
|
2328
2328
|
if (!pe(h) || !te(v))
|
|
2329
2329
|
return i ? In : s;
|
|
2330
|
-
let
|
|
2331
|
-
Cn(d) || (
|
|
2332
|
-
let A = l.get(
|
|
2333
|
-
return A || (A = new Intl.DateTimeFormat(v, Pe({}, h, d)), l.set(
|
|
2330
|
+
let R = `${v}__${s}`;
|
|
2331
|
+
Cn(d) || (R = `${R}__${JSON.stringify(d)}`);
|
|
2332
|
+
let A = l.get(R);
|
|
2333
|
+
return A || (A = new Intl.DateTimeFormat(v, Pe({}, h, d)), l.set(R, A)), p ? A.formatToParts(u) : A.format(u);
|
|
2334
2334
|
}
|
|
2335
2335
|
const Po = [
|
|
2336
2336
|
"localeMatcher",
|
|
@@ -2388,8 +2388,8 @@ function Bi(e, t, n) {
|
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
2390
|
function Wi(e, ...t) {
|
|
2391
|
-
const { numberFormats: n, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: r } = e, { __numberFormatters: l } = e, [s, u, m, d] = qn(...t), c =
|
|
2392
|
-
|
|
2391
|
+
const { numberFormats: n, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: r } = e, { __numberFormatters: l } = e, [s, u, m, d] = qn(...t), c = Oe(m.missingWarn) ? m.missingWarn : e.missingWarn;
|
|
2392
|
+
Oe(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn;
|
|
2393
2393
|
const p = !!m.part, E = hi(e, m), _ = r(
|
|
2394
2394
|
e,
|
|
2395
2395
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2404,10 +2404,10 @@ function Wi(e, ...t) {
|
|
|
2404
2404
|
gi(e, s, v, c, k);
|
|
2405
2405
|
if (!pe(h) || !te(v))
|
|
2406
2406
|
return i ? In : s;
|
|
2407
|
-
let
|
|
2408
|
-
Cn(d) || (
|
|
2409
|
-
let A = l.get(
|
|
2410
|
-
return A || (A = new Intl.NumberFormat(v, Pe({}, h, d)), l.set(
|
|
2407
|
+
let R = `${v}__${s}`;
|
|
2408
|
+
Cn(d) || (R = `${R}__${JSON.stringify(d)}`);
|
|
2409
|
+
let A = l.get(R);
|
|
2410
|
+
return A || (A = new Intl.NumberFormat(v, Pe({}, h, d)), l.set(R, A)), p ? A.formatToParts(u) : A.format(u);
|
|
2411
2411
|
}
|
|
2412
2412
|
const Lo = [
|
|
2413
2413
|
"localeMatcher",
|
|
@@ -2460,21 +2460,21 @@ function dl(e, t) {
|
|
|
2460
2460
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2461
2461
|
}
|
|
2462
2462
|
function ml(e = {}) {
|
|
2463
|
-
const t = e.locale, n = cl(e), i = fe(e.pluralRules) && te(t) &&
|
|
2463
|
+
const t = e.locale, n = cl(e), i = fe(e.pluralRules) && te(t) && Re(e.pluralRules[t]) ? e.pluralRules[t] : ji, a = fe(e.pluralRules) && te(t) && Re(e.pluralRules[t]) ? ji : void 0, o = (v) => v[i(n, v.length, a)], r = e.list || [], l = (v) => r[v], s = e.named || ye();
|
|
2464
2464
|
Ne(e.pluralIndex) && dl(n, s);
|
|
2465
2465
|
const u = (v) => s[v];
|
|
2466
2466
|
function m(v, h) {
|
|
2467
|
-
const k =
|
|
2467
|
+
const k = Re(e.messages) ? e.messages(v, !!h) : fe(e.messages) ? e.messages[v] : !1;
|
|
2468
2468
|
return k || (e.parent ? e.parent.message(v) : rl);
|
|
2469
2469
|
}
|
|
2470
|
-
const d = (v) => e.modifiers ? e.modifiers[v] : al, c = pe(e.processor) &&
|
|
2470
|
+
const d = (v) => e.modifiers ? e.modifiers[v] : al, c = pe(e.processor) && Re(e.processor.normalize) ? e.processor.normalize : ll, p = pe(e.processor) && Re(e.processor.interpolate) ? e.processor.interpolate : ul, E = pe(e.processor) && te(e.processor.type) ? e.processor.type : sl, w = {
|
|
2471
2471
|
list: l,
|
|
2472
2472
|
named: u,
|
|
2473
2473
|
plural: o,
|
|
2474
2474
|
linked: (v, ...h) => {
|
|
2475
|
-
const [k,
|
|
2475
|
+
const [k, R] = h;
|
|
2476
2476
|
let A = "text", T = "";
|
|
2477
|
-
h.length === 1 ? fe(k) ? (T = k.modifier || T, A = k.type || A) : te(k) && (T = k || T) : h.length === 2 && (te(k) && (T = k || T), te(
|
|
2477
|
+
h.length === 1 ? fe(k) ? (T = k.modifier || T, A = k.type || A) : te(k) && (T = k || T) : h.length === 2 && (te(k) && (T = k || T), te(R) && (A = R || A));
|
|
2478
2478
|
const y = m(v, !0)(w), x = (
|
|
2479
2479
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2480
2480
|
A === "vnode" && Te(y) && T ? y[0] : y
|
|
@@ -2489,30 +2489,30 @@ function ml(e = {}) {
|
|
|
2489
2489
|
};
|
|
2490
2490
|
return w;
|
|
2491
2491
|
}
|
|
2492
|
-
const Ki = () => "", Ye = (e) =>
|
|
2492
|
+
const Ki = () => "", Ye = (e) => Re(e);
|
|
2493
2493
|
function Yi(e, ...t) {
|
|
2494
|
-
const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: r, messages: l } = e, [s, u] = Jn(...t), m =
|
|
2494
|
+
const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: r, messages: l } = e, [s, u] = Jn(...t), m = Oe(u.missingWarn) ? u.missingWarn : e.missingWarn, d = Oe(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, c = Oe(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, p = !!u.resolvedMessage, E = te(u.default) || Oe(u.default) ? Oe(u.default) ? o ? s : () => s : u.default : n ? o ? s : () => s : null, _ = n || E != null && (te(E) || Re(E)), w = hi(e, u);
|
|
2495
2495
|
c && pl(u);
|
|
2496
2496
|
let [v, h, k] = p ? [
|
|
2497
2497
|
s,
|
|
2498
2498
|
w,
|
|
2499
2499
|
l[w] || ye()
|
|
2500
|
-
] : xo(e, s, w, r, d, m),
|
|
2501
|
-
if (!p && !(te(
|
|
2500
|
+
] : xo(e, s, w, r, d, m), R = v, A = s;
|
|
2501
|
+
if (!p && !(te(R) || Wt(R) || Ye(R)) && _ && (R = E, A = R), !p && (!(te(R) || Wt(R) || Ye(R)) || !te(h)))
|
|
2502
2502
|
return a ? In : s;
|
|
2503
2503
|
let T = !1;
|
|
2504
2504
|
const y = () => {
|
|
2505
2505
|
T = !0;
|
|
2506
|
-
}, x = Ye(
|
|
2506
|
+
}, x = Ye(R) ? R : Uo(e, s, h, R, A, y);
|
|
2507
2507
|
if (T)
|
|
2508
|
-
return
|
|
2508
|
+
return R;
|
|
2509
2509
|
const S = gl(e, h, k, u), I = ml(S), N = fl(e, x, I), M = i ? i(N, s) : N;
|
|
2510
2510
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2511
2511
|
const P = {
|
|
2512
2512
|
timestamp: Date.now(),
|
|
2513
|
-
key: te(s) ? s : Ye(
|
|
2514
|
-
locale: h || (Ye(
|
|
2515
|
-
format: te(
|
|
2513
|
+
key: te(s) ? s : Ye(R) ? R.key : "",
|
|
2514
|
+
locale: h || (Ye(R) ? R.locale : ""),
|
|
2515
|
+
format: te(R) ? R : Ye(R) ? R.source : "",
|
|
2516
2516
|
message: M
|
|
2517
2517
|
};
|
|
2518
2518
|
P.meta = Pe({}, e.__meta, /* @__PURE__ */ el() || {}), Ns(P);
|
|
@@ -2607,7 +2607,7 @@ function gl(e, t, n, i) {
|
|
|
2607
2607
|
return e.processor && (c.processor = e.processor), i.list && (c.list = i.list), i.named && (c.named = i.named), Ne(i.plural) && (c.pluralIndex = i.plural), c;
|
|
2608
2608
|
}
|
|
2609
2609
|
ps();
|
|
2610
|
-
var vl = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_bf439cf9-b09f-461d-8a25-3bf6b6f1ec85", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_bf439cf9-b09f-461d-8a25-3bf6b6f1ec85", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-1.2.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.1.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1739", npm_package_dependencies__feedmepos_ui_library: "1.7.0", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250922.53.1", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.6", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:10219", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.7/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "18037274310", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "30e24125f167902a6fa6153416c951c851fd796e", 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_a3504128-3ade-4e34-b377-169d99aa3dda", INVOCATION_ID: "169e19093ba9428a9edfda485e47d077", 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: "418", GITHUB_TRIGGERING_ACTOR: "CXinyii", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000018875", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.33", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "30e24125f167902a6fa6153416c951c851fd796e", 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: "CXinyii", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_bf439cf9-b09f-461d-8a25-3bf6b6f1ec85", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "139468922", 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_bf439cf9-b09f-461d-8a25-3bf6b6f1ec85", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.7.8", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_bf439cf9-b09f-461d-8a25-3bf6b6f1ec85", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
2610
|
+
var vl = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_2dbffe52-99ac-4a2f-997d-05a273de0a22", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_2dbffe52-99ac-4a2f-997d-05a273de0a22", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-1.2.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.1.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1743", npm_package_dependencies__feedmepos_ui_library: "1.7.4", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250922.53.1", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.1-rc.3", 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:13082", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.7/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "18173169523", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "cda9daede19513d0229309baf755ba5bd91bced8", 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/release/uat", 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_3e9562e6-4128-4be5-911b-fd08a750e67f", INVOCATION_ID: "ae7e7a0612e141eeb88cc1b355f88a60", 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: "431", 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", 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 1000019836", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "release/uat", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.34-alpha", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "cda9daede19513d0229309baf755ba5bd91bced8", 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/release/uat", GITHUB_ACTOR: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_2dbffe52-99ac-4a2f-997d-05a273de0a22", 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_2dbffe52-99ac-4a2f-997d-05a273de0a22", 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.12", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_2dbffe52-99ac-4a2f-997d-05a273de0a22", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
2611
2611
|
const _l = "10.0.5";
|
|
2612
2612
|
function bl() {
|
|
2613
2613
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Dt().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Dt().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Dt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Dt().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -2692,7 +2692,7 @@ function wl(e, t, n) {
|
|
|
2692
2692
|
}
|
|
2693
2693
|
}
|
|
2694
2694
|
function Xi(e) {
|
|
2695
|
-
return
|
|
2695
|
+
return O(ba, null, e, 0);
|
|
2696
2696
|
}
|
|
2697
2697
|
const qi = "__INTLIFY_META__", Ji = () => [], El = () => !1;
|
|
2698
2698
|
let Zi = 0;
|
|
@@ -2706,7 +2706,7 @@ const Sl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
2706
2706
|
};
|
|
2707
2707
|
function kl(e = {}) {
|
|
2708
2708
|
const { __root: t, __injectWithOption: n } = e, i = t === void 0, a = e.flatJson, o = Ai ? oe : va;
|
|
2709
|
-
let r =
|
|
2709
|
+
let r = Oe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2710
2710
|
const l = o(
|
|
2711
2711
|
// prettier-ignore
|
|
2712
2712
|
t && r ? t.locale.value : te(e.locale) ? e.locale : Sn
|
|
@@ -2714,7 +2714,7 @@ function kl(e = {}) {
|
|
|
2714
2714
|
// prettier-ignore
|
|
2715
2715
|
t && r ? t.fallbackLocale.value : te(e.fallbackLocale) || Te(e.fallbackLocale) || pe(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
2716
2716
|
), u = o(zo(l.value, e)), m = o(pe(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), d = o(pe(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
2717
|
-
let c = t ? t.missingWarn :
|
|
2717
|
+
let c = t ? t.missingWarn : Oe(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : Oe(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : Oe(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, w = Re(e.missing) ? e.missing : null, v = Re(e.missing) ? Qi(e.missing) : null, h = Re(e.postTranslation) ? e.postTranslation : null, k = t ? t.warnHtmlMessage : Oe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, R = !!e.escapeParameter;
|
|
2718
2718
|
const A = t ? t.modifiers : pe(e.modifiers) ? e.modifiers : {};
|
|
2719
2719
|
let T = e.pluralRules || t && t.pluralRules, y;
|
|
2720
2720
|
y = (() => {
|
|
@@ -2733,14 +2733,14 @@ function kl(e = {}) {
|
|
|
2733
2733
|
unresolving: !0,
|
|
2734
2734
|
postTranslation: h === null ? void 0 : h,
|
|
2735
2735
|
warnHtmlMessage: k,
|
|
2736
|
-
escapeParameter:
|
|
2736
|
+
escapeParameter: R,
|
|
2737
2737
|
messageResolver: e.messageResolver,
|
|
2738
2738
|
messageCompiler: e.messageCompiler,
|
|
2739
2739
|
__meta: { framework: "vue" }
|
|
2740
2740
|
};
|
|
2741
2741
|
F.datetimeFormats = m.value, F.numberFormats = d.value, F.__datetimeFormatters = pe(y) ? y.__datetimeFormatters : void 0, F.__numberFormatters = pe(y) ? y.__numberFormatters : void 0;
|
|
2742
|
-
const
|
|
2743
|
-
return i && zi(
|
|
2742
|
+
const j = nl(F);
|
|
2743
|
+
return i && zi(j), j;
|
|
2744
2744
|
})(), Jt(y, l.value, s.value);
|
|
2745
2745
|
function S() {
|
|
2746
2746
|
return [
|
|
@@ -2763,7 +2763,7 @@ function kl(e = {}) {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
}), M = V(() => u.value), P = /* @__PURE__ */ V(() => m.value), z = /* @__PURE__ */ V(() => d.value);
|
|
2765
2765
|
function D() {
|
|
2766
|
-
return
|
|
2766
|
+
return Re(h) ? h : null;
|
|
2767
2767
|
}
|
|
2768
2768
|
function C(F) {
|
|
2769
2769
|
h = F, y.postTranslation = F;
|
|
@@ -2774,7 +2774,7 @@ function kl(e = {}) {
|
|
|
2774
2774
|
function le(F) {
|
|
2775
2775
|
F !== null && (v = Qi(F)), w = F, y.missing = v;
|
|
2776
2776
|
}
|
|
2777
|
-
const ce = (F,
|
|
2777
|
+
const ce = (F, j, he, Se, tt, un) => {
|
|
2778
2778
|
S();
|
|
2779
2779
|
let Ut;
|
|
2780
2780
|
try {
|
|
@@ -2784,7 +2784,7 @@ function kl(e = {}) {
|
|
|
2784
2784
|
}
|
|
2785
2785
|
if (he !== "translate exists" && // for not `te` (e.g `t`)
|
|
2786
2786
|
Ne(Ut) && Ut === In || he === "translate exists" && !Ut) {
|
|
2787
|
-
const [fa, Kd] =
|
|
2787
|
+
const [fa, Kd] = j();
|
|
2788
2788
|
return t && E ? Se(t) : tt(fa);
|
|
2789
2789
|
} else {
|
|
2790
2790
|
if (un(Ut))
|
|
@@ -2793,110 +2793,110 @@ function kl(e = {}) {
|
|
|
2793
2793
|
}
|
|
2794
2794
|
};
|
|
2795
2795
|
function we(...F) {
|
|
2796
|
-
return ce((
|
|
2796
|
+
return ce((j) => Reflect.apply(Yi, null, [j, ...F]), () => Jn(...F), "translate", (j) => Reflect.apply(j.t, j, [...F]), (j) => j, (j) => te(j));
|
|
2797
2797
|
}
|
|
2798
2798
|
function G(...F) {
|
|
2799
|
-
const [
|
|
2799
|
+
const [j, he, Se] = F;
|
|
2800
2800
|
if (Se && !fe(Se))
|
|
2801
2801
|
throw tn(Ht.INVALID_ARGUMENT);
|
|
2802
|
-
return we(
|
|
2802
|
+
return we(j, he, Pe({ resolvedMessage: !0 }, Se || {}));
|
|
2803
2803
|
}
|
|
2804
|
-
function
|
|
2805
|
-
return ce((
|
|
2804
|
+
function H(...F) {
|
|
2805
|
+
return ce((j) => Reflect.apply(Gi, null, [j, ...F]), () => Xn(...F), "datetime format", (j) => Reflect.apply(j.d, j, [...F]), () => Ui, (j) => te(j));
|
|
2806
2806
|
}
|
|
2807
2807
|
function Z(...F) {
|
|
2808
|
-
return ce((
|
|
2808
|
+
return ce((j) => Reflect.apply(Wi, null, [j, ...F]), () => qn(...F), "number format", (j) => Reflect.apply(j.n, j, [...F]), () => Ui, (j) => te(j));
|
|
2809
2809
|
}
|
|
2810
|
-
function
|
|
2811
|
-
return F.map((
|
|
2810
|
+
function ie(F) {
|
|
2811
|
+
return F.map((j) => te(j) || Ne(j) || Oe(j) ? Xi(String(j)) : j);
|
|
2812
2812
|
}
|
|
2813
2813
|
const ee = {
|
|
2814
|
-
normalize:
|
|
2814
|
+
normalize: ie,
|
|
2815
2815
|
interpolate: (F) => F,
|
|
2816
2816
|
type: "vnode"
|
|
2817
2817
|
};
|
|
2818
2818
|
function Q(...F) {
|
|
2819
|
-
return ce((
|
|
2819
|
+
return ce((j) => {
|
|
2820
2820
|
let he;
|
|
2821
|
-
const Se =
|
|
2821
|
+
const Se = j;
|
|
2822
2822
|
try {
|
|
2823
2823
|
Se.processor = ee, he = Reflect.apply(Yi, null, [Se, ...F]);
|
|
2824
2824
|
} finally {
|
|
2825
2825
|
Se.processor = null;
|
|
2826
2826
|
}
|
|
2827
2827
|
return he;
|
|
2828
|
-
}, () => Jn(...F), "translate", (
|
|
2828
|
+
}, () => Jn(...F), "translate", (j) => j[Zn](...F), (j) => [Xi(j)], (j) => Te(j));
|
|
2829
2829
|
}
|
|
2830
2830
|
function ve(...F) {
|
|
2831
|
-
return ce((
|
|
2831
|
+
return ce((j) => Reflect.apply(Wi, null, [j, ...F]), () => qn(...F), "number format", (j) => j[ei](...F), Ji, (j) => te(j) || Te(j));
|
|
2832
2832
|
}
|
|
2833
2833
|
function Ae(...F) {
|
|
2834
|
-
return ce((
|
|
2834
|
+
return ce((j) => Reflect.apply(Gi, null, [j, ...F]), () => Xn(...F), "datetime format", (j) => j[Qn](...F), Ji, (j) => te(j) || Te(j));
|
|
2835
2835
|
}
|
|
2836
2836
|
function je(F) {
|
|
2837
2837
|
T = F, y.pluralRules = T;
|
|
2838
2838
|
}
|
|
2839
|
-
function Lt(F,
|
|
2839
|
+
function Lt(F, j) {
|
|
2840
2840
|
return ce(() => {
|
|
2841
2841
|
if (!F)
|
|
2842
2842
|
return !1;
|
|
2843
|
-
const he = te(
|
|
2843
|
+
const he = te(j) ? j : l.value, Se = ct(he), tt = y.messageResolver(Se, F);
|
|
2844
2844
|
return Wt(tt) || Ye(tt) || te(tt);
|
|
2845
|
-
}, () => [F], "translate exists", (he) => Reflect.apply(he.te, he, [F,
|
|
2845
|
+
}, () => [F], "translate exists", (he) => Reflect.apply(he.te, he, [F, j]), El, (he) => Oe(he));
|
|
2846
2846
|
}
|
|
2847
2847
|
function qt(F) {
|
|
2848
|
-
let
|
|
2848
|
+
let j = null;
|
|
2849
2849
|
const he = Io(y, s.value, l.value);
|
|
2850
2850
|
for (let Se = 0; Se < he.length; Se++) {
|
|
2851
2851
|
const tt = u.value[he[Se]] || {}, un = y.messageResolver(tt, F);
|
|
2852
2852
|
if (un != null) {
|
|
2853
|
-
|
|
2853
|
+
j = un;
|
|
2854
2854
|
break;
|
|
2855
2855
|
}
|
|
2856
2856
|
}
|
|
2857
|
-
return
|
|
2857
|
+
return j;
|
|
2858
2858
|
}
|
|
2859
2859
|
function yt(F) {
|
|
2860
|
-
const
|
|
2861
|
-
return
|
|
2860
|
+
const j = qt(F);
|
|
2861
|
+
return j ?? (t ? t.tm(F) || {} : {});
|
|
2862
2862
|
}
|
|
2863
2863
|
function ct(F) {
|
|
2864
2864
|
return u.value[F] || {};
|
|
2865
2865
|
}
|
|
2866
|
-
function dt(F,
|
|
2866
|
+
function dt(F, j) {
|
|
2867
2867
|
if (a) {
|
|
2868
|
-
const he = { [F]:
|
|
2868
|
+
const he = { [F]: j };
|
|
2869
2869
|
for (const Se in he)
|
|
2870
2870
|
Ze(he, Se) && nn(he[Se]);
|
|
2871
|
-
|
|
2871
|
+
j = he[F];
|
|
2872
2872
|
}
|
|
2873
|
-
u.value[F] =
|
|
2873
|
+
u.value[F] = j, y.messages = u.value;
|
|
2874
2874
|
}
|
|
2875
|
-
function wt(F,
|
|
2875
|
+
function wt(F, j) {
|
|
2876
2876
|
u.value[F] = u.value[F] || {};
|
|
2877
|
-
const he = { [F]:
|
|
2877
|
+
const he = { [F]: j };
|
|
2878
2878
|
if (a)
|
|
2879
2879
|
for (const Se in he)
|
|
2880
2880
|
Ze(he, Se) && nn(he[Se]);
|
|
2881
|
-
|
|
2881
|
+
j = he[F], bn(j, u.value[F]), y.messages = u.value;
|
|
2882
2882
|
}
|
|
2883
2883
|
function xt(F) {
|
|
2884
2884
|
return m.value[F] || {};
|
|
2885
2885
|
}
|
|
2886
|
-
function f(F,
|
|
2887
|
-
m.value[F] =
|
|
2886
|
+
function f(F, j) {
|
|
2887
|
+
m.value[F] = j, y.datetimeFormats = m.value, Bi(y, F, j);
|
|
2888
2888
|
}
|
|
2889
|
-
function g(F,
|
|
2890
|
-
m.value[F] = Pe(m.value[F] || {},
|
|
2889
|
+
function g(F, j) {
|
|
2890
|
+
m.value[F] = Pe(m.value[F] || {}, j), y.datetimeFormats = m.value, Bi(y, F, j);
|
|
2891
2891
|
}
|
|
2892
2892
|
function L(F) {
|
|
2893
2893
|
return d.value[F] || {};
|
|
2894
2894
|
}
|
|
2895
|
-
function Y(F,
|
|
2896
|
-
d.value[F] =
|
|
2895
|
+
function Y(F, j) {
|
|
2896
|
+
d.value[F] = j, y.numberFormats = d.value, Hi(y, F, j);
|
|
2897
2897
|
}
|
|
2898
|
-
function X(F,
|
|
2899
|
-
d.value[F] = Pe(d.value[F] || {},
|
|
2898
|
+
function X(F, j) {
|
|
2899
|
+
d.value[F] = Pe(d.value[F] || {}, j), y.numberFormats = d.value, Hi(y, F, j);
|
|
2900
2900
|
}
|
|
2901
2901
|
Zi++, t && Ai && (Le(t.locale, (F) => {
|
|
2902
2902
|
r && (l.value = F, y.locale = F, Jt(y, l.value, s.value));
|
|
@@ -2957,10 +2957,10 @@ function kl(e = {}) {
|
|
|
2957
2957
|
k = F, y.warnHtmlMessage = F;
|
|
2958
2958
|
},
|
|
2959
2959
|
get escapeParameter() {
|
|
2960
|
-
return
|
|
2960
|
+
return R;
|
|
2961
2961
|
},
|
|
2962
2962
|
set escapeParameter(F) {
|
|
2963
|
-
|
|
2963
|
+
R = F, y.escapeParameter = F;
|
|
2964
2964
|
},
|
|
2965
2965
|
t: we,
|
|
2966
2966
|
getLocaleMessage: ct,
|
|
@@ -2972,7 +2972,7 @@ function kl(e = {}) {
|
|
|
2972
2972
|
setMissingHandler: le,
|
|
2973
2973
|
[yl]: je
|
|
2974
2974
|
};
|
|
2975
|
-
return ue.datetimeFormats = P, ue.numberFormats = z, ue.rt = G, ue.te = Lt, ue.tm = yt, ue.d =
|
|
2975
|
+
return ue.datetimeFormats = P, ue.numberFormats = z, ue.rt = G, ue.te = Lt, ue.tm = yt, ue.d = H, ue.n = Z, ue.getDateTimeFormat = xt, ue.setDateTimeFormat = f, ue.mergeDateTimeFormat = g, ue.getNumberFormat = L, ue.setNumberFormat = Y, ue.mergeNumberFormat = X, ue[Vo] = n, ue[Zn] = Q, ue[Qn] = Ae, ue[ei] = ve, ue;
|
|
2976
2976
|
}
|
|
2977
2977
|
const vi = {
|
|
2978
2978
|
tag: {
|
|
@@ -2992,7 +2992,7 @@ const vi = {
|
|
|
2992
2992
|
type: Object
|
|
2993
2993
|
}
|
|
2994
2994
|
};
|
|
2995
|
-
function
|
|
2995
|
+
function Rl({ slots: e }, t) {
|
|
2996
2996
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((i, a) => [
|
|
2997
2997
|
...i,
|
|
2998
2998
|
// prettier-ignore
|
|
@@ -3015,7 +3015,7 @@ Pe({
|
|
|
3015
3015
|
validator: (e) => Ne(e) || !isNaN(e)
|
|
3016
3016
|
}
|
|
3017
3017
|
}, vi);
|
|
3018
|
-
function
|
|
3018
|
+
function Ol(e) {
|
|
3019
3019
|
return Te(e) && !te(e[0]);
|
|
3020
3020
|
}
|
|
3021
3021
|
function Bo(e, t, n, i) {
|
|
@@ -3028,7 +3028,7 @@ function Bo(e, t, n, i) {
|
|
|
3028
3028
|
let u = [r.key];
|
|
3029
3029
|
Te(s) ? u = s.map((c, p) => {
|
|
3030
3030
|
const E = a[c.type], _ = E ? E({ [c.type]: c.value, index: p, parts: s }) : [c.value];
|
|
3031
|
-
return
|
|
3031
|
+
return Ol(_) && (_[0].key = `${c.type}-${p}`), _;
|
|
3032
3032
|
}) : te(s) && (u = [s]);
|
|
3033
3033
|
const m = Pe(ye(), o), d = te(e.tag) || fe(e.tag) ? e.tag : Go();
|
|
3034
3034
|
return Fe(d, m, u);
|
|
@@ -3181,9 +3181,9 @@ const Nl = { class: "flex flex-col gap-4" }, Pl = { class: "fm-select__menu__wra
|
|
|
3181
3181
|
return t({
|
|
3182
3182
|
hideMenu: m
|
|
3183
3183
|
}), (_, w) => {
|
|
3184
|
-
const v = K("FmIcon"), h = K("FmField"), k = K("FmMenuItem"),
|
|
3184
|
+
const v = K("FmIcon"), h = K("FmField"), k = K("FmMenuItem"), R = K("FmMenu"), A = K("FmFormGroup"), T = K("FmChipGroup");
|
|
3185
3185
|
return U(), re("div", Nl, [
|
|
3186
|
-
|
|
3186
|
+
O(A, {
|
|
3187
3187
|
"model-value": _.modelValue,
|
|
3188
3188
|
disabled: _.disabled,
|
|
3189
3189
|
focused: c.value,
|
|
@@ -3192,7 +3192,7 @@ const Nl = { class: "flex flex-col gap-4" }, Pl = { class: "fm-select__menu__wra
|
|
|
3192
3192
|
rules: _.rules
|
|
3193
3193
|
}, {
|
|
3194
3194
|
default: W(({ invalid: y }) => [
|
|
3195
|
-
R
|
|
3195
|
+
O(R, {
|
|
3196
3196
|
disabled: _.disabled,
|
|
3197
3197
|
ref_key: "fmMenuRef",
|
|
3198
3198
|
ref: r,
|
|
@@ -3200,13 +3200,13 @@ const Nl = { class: "flex flex-col gap-4" }, Pl = { class: "fm-select__menu__wra
|
|
|
3200
3200
|
onMenuChanged: w[0] || (w[0] = (x) => c.value = x)
|
|
3201
3201
|
}, {
|
|
3202
3202
|
"menu-button": W(() => [
|
|
3203
|
-
|
|
3203
|
+
O(h, {
|
|
3204
3204
|
class: Ke(_.disabled ? "cursor-not-allowed" : "cursor-pointer"),
|
|
3205
3205
|
focused: c.value,
|
|
3206
3206
|
invalid: y
|
|
3207
3207
|
}, {
|
|
3208
3208
|
append: W(() => [
|
|
3209
|
-
|
|
3209
|
+
O(v, {
|
|
3210
3210
|
color: _.disabled ? "#C7C7CC" : "black",
|
|
3211
3211
|
name: c.value ? "expand_less" : "expand_more",
|
|
3212
3212
|
size: "md"
|
|
@@ -3241,7 +3241,7 @@ const Nl = { class: "flex flex-col gap-4" }, Pl = { class: "fm-select__menu__wra
|
|
|
3241
3241
|
_: 3
|
|
3242
3242
|
}, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
|
|
3243
3243
|
_.shouldShowChips && l.value.length > 0 ? (U(), re("div", Ll, [
|
|
3244
|
-
|
|
3244
|
+
O(T, {
|
|
3245
3245
|
disabled: _.disabled,
|
|
3246
3246
|
items: l.value.map((y) => ({ label: y.label })),
|
|
3247
3247
|
removable: "",
|
|
@@ -3518,7 +3518,7 @@ var Un = et("vue-handler-wrapper"), Yo = { name: "HandlerWrapper", components: {
|
|
|
3518
3518
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
3519
3519
|
Yo.render = function(e, t, n, i, a, o) {
|
|
3520
3520
|
var r = K("DraggableElement");
|
|
3521
|
-
return U(), J("div", { class: o.classes.root }, [
|
|
3521
|
+
return U(), J("div", { class: o.classes.root }, [O(r, { class: o.classes.draggable, onDrag: t[1] || (t[1] = function(l) {
|
|
3522
3522
|
return e.$emit("drag", l);
|
|
3523
3523
|
}), onDragEnd: t[2] || (t[2] = function(l) {
|
|
3524
3524
|
return e.$emit("drag-end");
|
|
@@ -3806,7 +3806,7 @@ var ru = et("vue-simple-handler"), su = et("vue-simple-handler-wrapper"), yi = {
|
|
|
3806
3806
|
yi.render = function(e, t, n, i, a, o) {
|
|
3807
3807
|
var r = K("HandlerWrapper");
|
|
3808
3808
|
return U(), J(r, { class: o.classes.wrapper, "vertical-position": n.verticalPosition, "horizontal-position": n.horizontalPosition, disabled: n.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: W(function() {
|
|
3809
|
-
return [
|
|
3809
|
+
return [O("div", { class: o.classes.default }, null, 2)];
|
|
3810
3810
|
}), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
3811
3811
|
};
|
|
3812
3812
|
var lu = et("vue-simple-line"), uu = et("vue-simple-line-wrapper"), wi = { name: "SimpleLine", components: { LineWrapper: Xo }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
@@ -3825,7 +3825,7 @@ var lu = et("vue-simple-line"), uu = et("vue-simple-line-wrapper"), wi = { name:
|
|
|
3825
3825
|
wi.render = function(e, t, n, i, a, o) {
|
|
3826
3826
|
var r = K("LineWrapper");
|
|
3827
3827
|
return U(), J(r, { class: o.classes.wrapper, position: n.position, disabled: n.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: W(function() {
|
|
3828
|
-
return [
|
|
3828
|
+
return [O("div", { class: o.classes.root }, null, 2)];
|
|
3829
3829
|
}), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
3830
3830
|
};
|
|
3831
3831
|
var zn = et("vue-bounding-box"), cu = ["east", "west", null], du = ["south", "north", null], Qo = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
|
|
@@ -3890,7 +3890,7 @@ var zn = et("vue-bounding-box"), cu = ["east", "west", null], du = ["south", "no
|
|
|
3890
3890
|
t === "west" ? l.left -= o : t === "east" && (l.right += o), n === "north" ? l.top -= r : n === "south" && (l.bottom += r), !n && t ? i = "width" : n && !t && (i = "height"), this.resizable && this.$emit("resize", new $l(l, { allowedDirections: { left: t === "west" || !t, right: t === "east" || !t, bottom: n === "south" || !n, top: n === "north" || !n }, preserveAspectRatio: e.nativeEvent && e.nativeEvent.shiftKey, respectDirection: i }));
|
|
3891
3891
|
} }, emits: ["resize", "resize-end"] };
|
|
3892
3892
|
Qo.render = function(e, t, n, i, a, o) {
|
|
3893
|
-
return U(), J("div", { ref: "box", class: o.classes.root, style: o.style }, [Ce(e.$slots, "default"),
|
|
3893
|
+
return U(), J("div", { ref: "box", class: o.classes.root, style: o.style }, [Ce(e.$slots, "default"), O("div", null, [(U(!0), J(Ve, null, rt(o.lineNodes, function(r) {
|
|
3894
3894
|
return U(), J(wn(r.component), { key: r.name, "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, position: r.name, disabled: r.disabled, onDrag: function(l) {
|
|
3895
3895
|
return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
|
|
3896
3896
|
}, onDragEnd: t[1] || (t[1] = function(l) {
|
|
@@ -4150,7 +4150,7 @@ var vn = et("vue-preview"), ia = { props: { coordinates: { type: Object }, trans
|
|
|
4150
4150
|
e && e.complete && this.refreshImage(), this.refresh();
|
|
4151
4151
|
} } };
|
|
4152
4152
|
ia.render = function(e, t, n, i, a, o) {
|
|
4153
|
-
return U(), J("div", { ref: "root", class: o.classes.root, style: o.style }, [
|
|
4153
|
+
return U(), J("div", { ref: "root", class: o.classes.root, style: o.style }, [O("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [Xt(O("img", { ref: "image", src: n.image && n.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[kn, n.image && n.image.src]])], 6)], 6);
|
|
4154
4154
|
};
|
|
4155
4155
|
var oa = { components: { Preview: ia }, inheritAttrs: !1 };
|
|
4156
4156
|
oa.render = function(e, t, n, i, a, o) {
|
|
@@ -4189,9 +4189,9 @@ var Gn = et("vue-rectangle-stencil"), aa = { name: "RectangleStencil", component
|
|
|
4189
4189
|
} }, emits: ["resize", "resize-end", "move", "move-end"] };
|
|
4190
4190
|
aa.render = function(e, t, n, i, a, o) {
|
|
4191
4191
|
var r = K("stencil-preview"), l = K("draggable-area"), s = K("bounding-box");
|
|
4192
|
-
return U(), J("div", { class: o.classes.stencil, style: o.style }, [
|
|
4193
|
-
return [
|
|
4194
|
-
return [
|
|
4192
|
+
return U(), J("div", { class: o.classes.stencil, style: o.style }, [O(s, { width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, transitions: n.transitions, class: o.classes.boundingBox, handlers: n.handlers, "handlers-component": n.handlersComponent, "handlers-classes": n.handlersClasses, "handlers-wrappers-classes": n.handlersWrappersClasses, lines: n.lines, "lines-component": n.linesComponent, "lines-classes": n.linesClasses, "lines-wrappers-classes": n.linesWrappersClasses, resizable: n.resizable, onResize: o.onResize, onResizeEnd: o.onResizeEnd }, { default: W(function() {
|
|
4193
|
+
return [O(l, { movable: n.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: W(function() {
|
|
4194
|
+
return [O(r, { image: n.image, coordinates: n.coordinates, width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, class: o.classes.preview, transitions: n.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
|
|
4195
4195
|
}), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
|
|
4196
4196
|
}), _: 1 }, 8, ["width", "height", "transitions", "class", "handlers", "handlers-component", "handlers-classes", "handlers-wrappers-classes", "lines", "lines-component", "lines-classes", "lines-wrappers-classes", "resizable", "onResize", "onResizeEnd"])], 6);
|
|
4197
4197
|
};
|
|
@@ -4207,8 +4207,8 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4207
4207
|
return !(typeof e == "string" && e !== "fill" && e !== "fit");
|
|
4208
4208
|
} }, priority: { type: String, default: "coordinates" }, stencilSize: { type: [Object, Function] }, resizeImage: { type: [Boolean, Object], default: !0 }, moveImage: { type: [Boolean, Object], default: !0 }, autoZoomAlgorithm: { type: Function }, resizeAlgorithm: { type: Function, default: function(e) {
|
|
4209
4209
|
var t = e.event, n = e.coordinates, i = e.aspectRatio, a = e.positionRestrictions, o = e.sizeRestrictions, r = ae(ae({}, n), { right: n.left + n.width, bottom: n.top + n.height }), l = t.params || {}, s = ae({}, t.directions), u = l.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
|
|
4210
|
-
o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), ot.forEach(function(
|
|
4211
|
-
u[
|
|
4210
|
+
o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), ot.forEach(function(R) {
|
|
4211
|
+
u[R] || (s[R] = 0);
|
|
4212
4212
|
});
|
|
4213
4213
|
var m = it(r, s = lo({ coordinates: r, directions: s, sizeRestrictions: o, positionRestrictions: a })).width, d = it(r, s).height, c = l.preserveRatio ? me(r) : Vn(m / d, i);
|
|
4214
4214
|
if (c) {
|
|
@@ -4228,8 +4228,8 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4228
4228
|
}
|
|
4229
4229
|
s = lo({ directions: s, coordinates: r, sizeRestrictions: o, positionRestrictions: a, preserveRatio: !0, compensate: l.compensate });
|
|
4230
4230
|
}
|
|
4231
|
-
return m = it(r, s).width, d = it(r, s).height, (c = l.preserveRatio ? me(r) : Vn(m / d, i)) && Math.abs(c - m / d) > 1e-3 && ot.forEach(function(
|
|
4232
|
-
u[
|
|
4231
|
+
return m = it(r, s).width, d = it(r, s).height, (c = l.preserveRatio ? me(r) : Vn(m / d, i)) && Math.abs(c - m / d) > 1e-3 && ot.forEach(function(R) {
|
|
4232
|
+
u[R] || (s[R] = 0);
|
|
4233
4233
|
}), ri({ event: new _i({ left: -s.left, top: -s.top }), coordinates: { width: n.width + s.right + s.left, height: n.height + s.top + s.bottom, left: n.left, top: n.top }, positionRestrictions: a });
|
|
4234
4234
|
} }, moveAlgorithm: { type: Function, default: ri }, initStretcher: { type: Function, default: function(e) {
|
|
4235
4235
|
var t = e.stretcher, n = e.imageSize, i = me(n);
|
|
@@ -4622,9 +4622,9 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4622
4622
|
}
|
|
4623
4623
|
} }, emits: ["change", "error", "ready"] }, gu = { key: 0, ref: "canvas", style: { display: "none" } }, vu = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
|
|
4624
4624
|
ra.render = function(e, t, n, i, a, o) {
|
|
4625
|
-
return U(), J("div", { ref: "cropper", class: o.classes.cropper }, [
|
|
4626
|
-
return [
|
|
4627
|
-
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2),
|
|
4625
|
+
return U(), J("div", { ref: "cropper", class: o.classes.cropper }, [O("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), O("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(U(), J(wn(n.backgroundWrapperComponent), { class: o.classes.cropperWrapper, "wheel-resize": o.settings.resizeImage.wheel, "touch-resize": o.settings.resizeImage.touch, "touch-move": o.settings.moveImage.touch, "mouse-move": o.settings.moveImage.mouse, onMove: o.onManipulateImage, onResize: o.onManipulateImage }, { default: W(function() {
|
|
4626
|
+
return [O("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), O("div", { class: o.classes.imageWrapper }, [O("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: t[1] || (t[1] = Rn(function() {
|
|
4627
|
+
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), O("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), Xt((U(), J(wn(n.stencilComponent), po({ ref: "stencil", image: o.image, coordinates: a.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, n.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[kn, a.imageLoaded]]), n.canvas ? (U(), J("canvas", gu, null, 512)) : se("", !0), n.canvas ? (U(), J("canvas", vu, null, 512)) : se("", !0)];
|
|
4628
4628
|
}), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
|
|
4629
4629
|
};
|
|
4630
4630
|
function _u(e, t) {
|
|
@@ -4655,9 +4655,9 @@ const yu = {
|
|
|
4655
4655
|
])
|
|
4656
4656
|
}, ku = {
|
|
4657
4657
|
class: /* @__PURE__ */ Ke(["absolute inset-0", "h-full w-full", "rounded-md overflow-hidden"])
|
|
4658
|
-
},
|
|
4658
|
+
}, Ru = {
|
|
4659
4659
|
class: /* @__PURE__ */ Ke(["relative z-0", "w-full h-full", "overflow-hidden"])
|
|
4660
|
-
},
|
|
4660
|
+
}, Ou = { class: "fm-typo-en-body-lg-600 pb-4" }, Cu = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Au = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Iu = /* @__PURE__ */ ge({
|
|
4661
4661
|
__name: "ImageDropField",
|
|
4662
4662
|
props: {
|
|
4663
4663
|
modelValue: {}
|
|
@@ -4699,8 +4699,8 @@ const yu = {
|
|
|
4699
4699
|
]),
|
|
4700
4700
|
B("div", Su, [
|
|
4701
4701
|
B("div", ku, [
|
|
4702
|
-
B("div",
|
|
4703
|
-
|
|
4702
|
+
B("div", Ru, [
|
|
4703
|
+
O(b(ra), {
|
|
4704
4704
|
class: "cropper h-[150px] w-[200px]",
|
|
4705
4705
|
src: r.value || o.value,
|
|
4706
4706
|
"stencil-props": {
|
|
@@ -4725,7 +4725,7 @@ const yu = {
|
|
|
4725
4725
|
type: "button",
|
|
4726
4726
|
onClick: d
|
|
4727
4727
|
}, [
|
|
4728
|
-
|
|
4728
|
+
O(E, { name: "close" })
|
|
4729
4729
|
])
|
|
4730
4730
|
])
|
|
4731
4731
|
])
|
|
@@ -4736,7 +4736,7 @@ const yu = {
|
|
|
4736
4736
|
onFileUpload: u
|
|
4737
4737
|
}, {
|
|
4738
4738
|
label: W(() => [
|
|
4739
|
-
B("p",
|
|
4739
|
+
B("p", Ou, [
|
|
4740
4740
|
Bn(Ee(b(i)("menu.common.labels.product_image")) + " ", 1),
|
|
4741
4741
|
B("span", Cu, Ee(b(i)("menu.common.labels.optional")), 1)
|
|
4742
4742
|
])
|
|
@@ -4827,7 +4827,7 @@ const yu = {
|
|
|
4827
4827
|
return (u, m) => {
|
|
4828
4828
|
const d = K("fm-select");
|
|
4829
4829
|
return U(), re("div", null, [
|
|
4830
|
-
|
|
4830
|
+
O(d, {
|
|
4831
4831
|
disabled: e.disable,
|
|
4832
4832
|
items: r.value,
|
|
4833
4833
|
label: e.label ?? b(i)("menu.common.labels.order_from"),
|
|
@@ -4916,17 +4916,17 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
4916
4916
|
},
|
|
4917
4917
|
emits: ["update:modelValue"],
|
|
4918
4918
|
setup(e, { emit: t }) {
|
|
4919
|
-
const n = e, i = t, a = lt(), o = Qe(), r = kt(o), l =
|
|
4919
|
+
const n = e, i = t, a = lt(), o = Qe(), r = kt(o), l = Rt(r), { t: s } = ln(), u = oe(null), m = oe([]), d = Ya({
|
|
4920
4920
|
dialog: a,
|
|
4921
4921
|
menuLoader: l,
|
|
4922
4922
|
isLocalOnly: n.isLocalOnly
|
|
4923
4923
|
}), c = (h, k) => {
|
|
4924
|
-
h ? m.value = [...m.value, k] : m.value = m.value.filter((
|
|
4924
|
+
h ? m.value = [...m.value, k] : m.value = m.value.filter((R) => R.value !== k.value), i(
|
|
4925
4925
|
"update:modelValue",
|
|
4926
|
-
m.value.map((
|
|
4926
|
+
m.value.map((R) => R.value)
|
|
4927
4927
|
);
|
|
4928
4928
|
}, p = (h) => {
|
|
4929
|
-
m.value = m.value.filter((k,
|
|
4929
|
+
m.value = m.value.filter((k, R) => R !== h), i(
|
|
4930
4930
|
"update:modelValue",
|
|
4931
4931
|
m.value.map((k) => k.value)
|
|
4932
4932
|
);
|
|
@@ -4944,9 +4944,9 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
4944
4944
|
},
|
|
4945
4945
|
{ immediate: !0 }
|
|
4946
4946
|
), (h, k) => {
|
|
4947
|
-
const
|
|
4947
|
+
const R = K("FmIcon"), A = K("FmField"), T = K("FmMenuItem"), y = K("FmMenu"), x = K("FmFormGroup"), S = K("FmChipGroup");
|
|
4948
4948
|
return U(), re("div", Lu, [
|
|
4949
|
-
|
|
4949
|
+
O(x, {
|
|
4950
4950
|
"model-value": h.modelValue,
|
|
4951
4951
|
disabled: h.disabled,
|
|
4952
4952
|
focused: v.value,
|
|
@@ -4955,7 +4955,7 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
4955
4955
|
rules: h.rules
|
|
4956
4956
|
}, {
|
|
4957
4957
|
default: W(({ invalid: I }) => [
|
|
4958
|
-
|
|
4958
|
+
O(y, {
|
|
4959
4959
|
disabled: h.disabled,
|
|
4960
4960
|
ref_key: "fmMenuRef",
|
|
4961
4961
|
ref: u,
|
|
@@ -4963,13 +4963,13 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
4963
4963
|
onMenuChanged: k[1] || (k[1] = (N) => v.value = N)
|
|
4964
4964
|
}, {
|
|
4965
4965
|
"menu-button": W(() => [
|
|
4966
|
-
|
|
4966
|
+
O(A, {
|
|
4967
4967
|
class: Ke(h.disabled ? "cursor-not-allowed" : "cursor-pointer"),
|
|
4968
4968
|
focused: v.value,
|
|
4969
4969
|
invalid: I
|
|
4970
4970
|
}, {
|
|
4971
4971
|
append: W(() => [
|
|
4972
|
-
R
|
|
4972
|
+
O(R, {
|
|
4973
4973
|
color: h.disabled ? "#C7C7CC" : "black",
|
|
4974
4974
|
name: v.value ? "expand_less" : "expand_more",
|
|
4975
4975
|
size: "md"
|
|
@@ -5000,7 +5000,7 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
5000
5000
|
type: "button",
|
|
5001
5001
|
onClick: k[0] || (k[0] = (N) => E())
|
|
5002
5002
|
}, [
|
|
5003
|
-
R
|
|
5003
|
+
O(R, {
|
|
5004
5004
|
color: "primary",
|
|
5005
5005
|
name: "add",
|
|
5006
5006
|
size: "md"
|
|
@@ -5015,7 +5015,7 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
5015
5015
|
_: 1
|
|
5016
5016
|
}, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
|
|
5017
5017
|
m.value.length > 0 ? (U(), re("div", Vu, [
|
|
5018
|
-
|
|
5018
|
+
O(S, {
|
|
5019
5019
|
disabled: h.disabled,
|
|
5020
5020
|
items: m.value.map((I) => ({ label: I.label })),
|
|
5021
5021
|
removable: "",
|
|
@@ -5078,12 +5078,12 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5078
5078
|
setup(e, {
|
|
5079
5079
|
emit: t
|
|
5080
5080
|
}) {
|
|
5081
|
-
const n = e, i = Me(), a = rn(), o = lt(), r = Qe(), l = kt(r), s =
|
|
5081
|
+
const n = e, i = Me(), a = rn(), o = lt(), r = Qe(), l = kt(r), s = Rt(l), u = Xa({
|
|
5082
5082
|
dialog: o,
|
|
5083
5083
|
menuLoader: s
|
|
5084
5084
|
}), {
|
|
5085
5085
|
checkMenuIsLoading: m
|
|
5086
|
-
} =
|
|
5086
|
+
} = Rt(kt(Qe())), d = t, c = V(() => i.rules.item), p = V(() => i.categorizedItems), E = V(() => {
|
|
5087
5087
|
const D = p.value.map((C) => ({
|
|
5088
5088
|
label: C.name,
|
|
5089
5089
|
value: C.id
|
|
@@ -5107,26 +5107,26 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5107
5107
|
}
|
|
5108
5108
|
d("update:form", "category", C._id), d("update:form", "additionalCategories", $);
|
|
5109
5109
|
}
|
|
5110
|
-
}),
|
|
5111
|
-
ref:
|
|
5110
|
+
}), R = oe(), A = () => n.isAddon ? null : O(Ul, {
|
|
5111
|
+
ref: R,
|
|
5112
5112
|
disabled: !c.value.category || n.isAddon || m(),
|
|
5113
5113
|
items: E.value,
|
|
5114
5114
|
modelValue: k.value,
|
|
5115
5115
|
"onUpdate:model-value": (D) => k.value = D,
|
|
5116
5116
|
placeholder: z("menu.product.form.detail.category.placeholder")
|
|
5117
5117
|
}, {
|
|
5118
|
-
"append-menu": () =>
|
|
5118
|
+
"append-menu": () => O("button", {
|
|
5119
5119
|
class: "flex items-center py-8 px-16 space-x-8",
|
|
5120
5120
|
type: "button",
|
|
5121
5121
|
onClick: () => {
|
|
5122
5122
|
var D;
|
|
5123
|
-
(D =
|
|
5123
|
+
(D = R.value) == null || D.hideMenu(), u.create();
|
|
5124
5124
|
}
|
|
5125
|
-
}, [
|
|
5125
|
+
}, [O(Be.FmIcon, {
|
|
5126
5126
|
color: "primary",
|
|
5127
5127
|
name: "add",
|
|
5128
5128
|
size: "md"
|
|
5129
|
-
}, null),
|
|
5129
|
+
}, null), O("p", {
|
|
5130
5130
|
class: "fm-typo-en-body-lg-600 text-fm-color-primary"
|
|
5131
5131
|
}, [z("menu.product.form.detail.category.add_new")])])
|
|
5132
5132
|
});
|
|
@@ -5182,18 +5182,18 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5182
5182
|
t: z
|
|
5183
5183
|
} = ke();
|
|
5184
5184
|
return (D, C) => {
|
|
5185
|
-
const $ = K("fm-text-field"), le = K("fm-textarea"), ce = K("fm-radio"), we = K("FmSnackbar"), G = K("FmButton"),
|
|
5185
|
+
const $ = K("fm-text-field"), le = K("fm-textarea"), ce = K("fm-radio"), we = K("FmSnackbar"), G = K("FmButton"), H = K("fm-radio-group"), Z = K("FmFormGroup"), ie = fo("tooltip");
|
|
5186
5186
|
return U(), J(ut, {
|
|
5187
5187
|
title: b(z)("menu.product.form.detail.title")
|
|
5188
5188
|
}, {
|
|
5189
5189
|
default: W(() => {
|
|
5190
|
-
var
|
|
5191
|
-
return [B("div", Gu, [B("div", Bu, [B("div", Wu, [B("div", Hu, [
|
|
5190
|
+
var ne, ee;
|
|
5191
|
+
return [B("div", Gu, [B("div", Bu, [B("div", Wu, [B("div", Hu, [O($, {
|
|
5192
5192
|
"model-value": D.form.code,
|
|
5193
|
-
placeholder: ((
|
|
5193
|
+
placeholder: ((ne = D.fallback) == null ? void 0 : ne.code) || b(z)("menu.product.form.detail.fields.code.placeholder"),
|
|
5194
5194
|
label: b(z)("menu.product.form.detail.fields.code.label"),
|
|
5195
5195
|
"onUpdate:modelValue": C[0] || (C[0] = (Q) => d("update:form", "code", b(la)(Q, D.isOverride)))
|
|
5196
|
-
}, null, 8, ["model-value", "placeholder", "label"])]), B("div", ju, [
|
|
5196
|
+
}, null, 8, ["model-value", "placeholder", "label"])]), B("div", ju, [O($, {
|
|
5197
5197
|
id: "product-name",
|
|
5198
5198
|
disabled: !c.value.name,
|
|
5199
5199
|
"helper-text": T.value > 0 ? b(z)("menu.product.form.detail.fields.name.duplicate_warning", {
|
|
@@ -5206,7 +5206,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5206
5206
|
autofocus: "",
|
|
5207
5207
|
label: b(z)("menu.product.form.detail.fields.name.label"),
|
|
5208
5208
|
"onUpdate:modelValue": C[1] || (C[1] = (Q) => d("update:form", "name", Q))
|
|
5209
|
-
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [
|
|
5209
|
+
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [O(le, {
|
|
5210
5210
|
disabled: !c.value.description,
|
|
5211
5211
|
"model-value": D.form.description || void 0,
|
|
5212
5212
|
placeholder: b(z)("menu.product.form.detail.fields.description.placeholder"),
|
|
@@ -5215,42 +5215,42 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5215
5215
|
}, {
|
|
5216
5216
|
label: W(() => [B("p", Yu, [Bn(Ee(b(z)("menu.product.form.detail.fields.description.label")) + " ", 1), B("span", Xu, Ee(b(z)("menu.product.form.detail.fields.description.optional")), 1)])]),
|
|
5217
5217
|
_: 1
|
|
5218
|
-
}, 8, ["disabled", "model-value", "placeholder"]), Xt(
|
|
5218
|
+
}, 8, ["disabled", "model-value", "placeholder"]), Xt(O(sa, {
|
|
5219
5219
|
class: "absolute top-32 right-4 cursor-pointer",
|
|
5220
5220
|
onClick: I
|
|
5221
|
-
}, null, 512), [[
|
|
5221
|
+
}, null, 512), [[ie, b(yo)("Suggest description")]])])]), O(Iu, {
|
|
5222
5222
|
disabled: !c.value.thumbnail,
|
|
5223
5223
|
"model-value": D.thumbnail,
|
|
5224
5224
|
"onUpdate:modelValue": C[3] || (C[3] = (Q) => d("update:thumbnail", Q)),
|
|
5225
5225
|
"onReset:modelValue": C[4] || (C[4] = (Q) => d("reset:thumbnail"))
|
|
5226
|
-
}, null, 8, ["disabled", "model-value"])]),
|
|
5226
|
+
}, null, 8, ["disabled", "model-value"])]), O(bt, {
|
|
5227
5227
|
label: b(z)("menu.product.form.detail.category.label")
|
|
5228
5228
|
}, {
|
|
5229
|
-
default: W(() => [_.value ? (U(), J(
|
|
5229
|
+
default: W(() => [_.value ? (U(), J(H, {
|
|
5230
5230
|
key: 0,
|
|
5231
5231
|
disabled: !c.value.category,
|
|
5232
5232
|
"model-value": y.value,
|
|
5233
5233
|
"onUpdate:modelValue": C[5] || (C[5] = (Q) => x(Q))
|
|
5234
5234
|
}, {
|
|
5235
|
-
default: W(() => [B("div", qu, [B("div", Ju, [
|
|
5235
|
+
default: W(() => [B("div", qu, [B("div", Ju, [O(ce, {
|
|
5236
5236
|
disabled: w.value || !c.value.category,
|
|
5237
5237
|
value: Mt.PRODUCT,
|
|
5238
5238
|
label: b(z)("menu.product.form.detail.category.options.product.label"),
|
|
5239
5239
|
sublabel: b(z)("menu.product.form.detail.category.options.product.sublabel")
|
|
5240
|
-
}, null, 8, ["disabled", "value", "label", "sublabel"]),
|
|
5240
|
+
}, null, 8, ["disabled", "value", "label", "sublabel"]), O(Fr, null, {
|
|
5241
5241
|
default: W(() => [b(i).isV4 ? (U(), J(A, {
|
|
5242
5242
|
key: 0
|
|
5243
5243
|
})) : se("", !0)]),
|
|
5244
5244
|
_: 1
|
|
5245
|
-
})]), w.value ? (U(), re("div", Zu, [
|
|
5245
|
+
})]), w.value ? (U(), re("div", Zu, [O(we, {
|
|
5246
5246
|
title: b(z)("menu.product.form.detail.category.add_first"),
|
|
5247
5247
|
variant: "info"
|
|
5248
|
-
}, null, 8, ["title"]),
|
|
5248
|
+
}, null, 8, ["title"]), O(G, {
|
|
5249
5249
|
label: b(z)("menu.common.actions.add"),
|
|
5250
5250
|
"prepend-icon": "add",
|
|
5251
5251
|
variant: "secondary",
|
|
5252
5252
|
onClick: b(u).create
|
|
5253
|
-
}, null, 8, ["label", "onClick"])])) : se("", !0),
|
|
5253
|
+
}, null, 8, ["label", "onClick"])])) : se("", !0), O(ce, {
|
|
5254
5254
|
value: Mt.ADD_ON,
|
|
5255
5255
|
label: b(z)("menu.product.form.detail.category.options.addon.label"),
|
|
5256
5256
|
sublabel: b(z)("menu.product.form.detail.category.options.addon.sublabel")
|
|
@@ -5262,7 +5262,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5262
5262
|
rules: [(Q) => !Q && !D.isOverride ? "Category is required" : !0],
|
|
5263
5263
|
"onUpdate:modelValue": C[6] || (C[6] = (Q) => d("update:form", "category", Q))
|
|
5264
5264
|
}, {
|
|
5265
|
-
default: W(() => [
|
|
5265
|
+
default: W(() => [O(A)]),
|
|
5266
5266
|
_: 1
|
|
5267
5267
|
}, 8, ["model-value", "rules"]))]),
|
|
5268
5268
|
_: 1
|
|
@@ -5270,7 +5270,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5270
5270
|
key: 0,
|
|
5271
5271
|
label: b(z)("menu.product.form.detail.path.label")
|
|
5272
5272
|
}, {
|
|
5273
|
-
default: W(() => [B("div", Qu, [
|
|
5273
|
+
default: W(() => [B("div", Qu, [O($u, {
|
|
5274
5274
|
modelValue: P.value,
|
|
5275
5275
|
"onUpdate:modelValue": C[7] || (C[7] = (Q) => P.value = Q),
|
|
5276
5276
|
items: M.value,
|
|
@@ -5279,7 +5279,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5279
5279
|
"is-local-only": !1
|
|
5280
5280
|
}, null, 8, ["modelValue", "items", "placeholder", "disabled"])])]),
|
|
5281
5281
|
_: 1
|
|
5282
|
-
}, 8, ["label"])) : se("", !0),
|
|
5282
|
+
}, 8, ["label"])) : se("", !0), O(Ei, {
|
|
5283
5283
|
disabled: !c.value.orderFrom,
|
|
5284
5284
|
"model-value": D.form.orderFrom,
|
|
5285
5285
|
"order-from-none": c.value.orderFromNone,
|
|
@@ -5392,7 +5392,7 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5392
5392
|
const _ = K("fm-text-field"), w = K("fm-card"), v = K("fm-button"), h = K("fm-side-sheet");
|
|
5393
5393
|
return U(), re(Ve, null, [
|
|
5394
5394
|
Ce(p.$slots, "default", { trigger: o }),
|
|
5395
|
-
|
|
5395
|
+
O(h, {
|
|
5396
5396
|
id: "inventory-form",
|
|
5397
5397
|
modelValue: a.value,
|
|
5398
5398
|
"onUpdate:modelValue": E[2] || (E[2] = (k) => a.value = k),
|
|
@@ -5410,13 +5410,13 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5410
5410
|
]),
|
|
5411
5411
|
"side-sheet-footer": W(() => [
|
|
5412
5412
|
B("div", pc, [
|
|
5413
|
-
|
|
5413
|
+
O(v, {
|
|
5414
5414
|
label: b(d)("menu.common.actions.add"),
|
|
5415
5415
|
size: "lg",
|
|
5416
5416
|
type: "submit",
|
|
5417
5417
|
variant: "primary"
|
|
5418
5418
|
}, null, 8, ["label"]),
|
|
5419
|
-
|
|
5419
|
+
O(v, {
|
|
5420
5420
|
label: b(d)("menu.common.actions.cancel"),
|
|
5421
5421
|
size: "lg",
|
|
5422
5422
|
variant: "tertiary",
|
|
@@ -5426,17 +5426,17 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5426
5426
|
]),
|
|
5427
5427
|
default: W(() => [
|
|
5428
5428
|
B("div", mc, [
|
|
5429
|
-
|
|
5429
|
+
O(_, {
|
|
5430
5430
|
"model-value": p.name,
|
|
5431
5431
|
disabled: "",
|
|
5432
5432
|
label: b(d)("menu.inventory.form.product_name")
|
|
5433
5433
|
}, null, 8, ["model-value", "label"]),
|
|
5434
|
-
|
|
5434
|
+
O(w, {
|
|
5435
5435
|
class: "p-16 space-y-24",
|
|
5436
5436
|
variant: "outlined"
|
|
5437
5437
|
}, {
|
|
5438
5438
|
default: W(() => [
|
|
5439
|
-
|
|
5439
|
+
O(b(Ja), {
|
|
5440
5440
|
modelValue: r.value,
|
|
5441
5441
|
"onUpdate:modelValue": E[0] || (E[0] = (k) => r.value = k)
|
|
5442
5442
|
}, null, 8, ["modelValue"])
|
|
@@ -5469,7 +5469,7 @@ function hc() {
|
|
|
5469
5469
|
l = c;
|
|
5470
5470
|
}, m = (c) => {
|
|
5471
5471
|
s = c;
|
|
5472
|
-
}, d =
|
|
5472
|
+
}, d = O(o, {
|
|
5473
5473
|
...i,
|
|
5474
5474
|
// close event from the component
|
|
5475
5475
|
"onUpdate:show": (c) => {
|
|
@@ -5524,7 +5524,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5524
5524
|
cell: (r) => {
|
|
5525
5525
|
var u, m;
|
|
5526
5526
|
const l = (u = n.fallback) == null ? void 0 : u[r.row.original.key], s = l ? Gt(l) : void 0;
|
|
5527
|
-
return
|
|
5527
|
+
return O(Ft, {
|
|
5528
5528
|
required: !1,
|
|
5529
5529
|
nullable: !0,
|
|
5530
5530
|
min: n.allowNegativePrice ? void 0 : 0,
|
|
@@ -5537,7 +5537,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5537
5537
|
}];
|
|
5538
5538
|
return (r, l) => {
|
|
5539
5539
|
const s = K("FmTable");
|
|
5540
|
-
return U(), re("div", null, [
|
|
5540
|
+
return U(), re("div", null, [O(s, {
|
|
5541
5541
|
"column-defs": o,
|
|
5542
5542
|
"row-data": r.priceTiers,
|
|
5543
5543
|
"page-size": r.priceTiers.length,
|
|
@@ -5584,13 +5584,13 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5584
5584
|
]),
|
|
5585
5585
|
"side-sheet-footer": W(() => [
|
|
5586
5586
|
B("div", _c, [
|
|
5587
|
-
|
|
5587
|
+
O(w, {
|
|
5588
5588
|
label: l.value,
|
|
5589
5589
|
size: "lg",
|
|
5590
5590
|
type: "submit",
|
|
5591
5591
|
variant: "primary"
|
|
5592
5592
|
}, null, 8, ["label"]),
|
|
5593
|
-
|
|
5593
|
+
O(w, {
|
|
5594
5594
|
label: b(n)("common.cancel"),
|
|
5595
5595
|
size: "lg",
|
|
5596
5596
|
variant: "tertiary",
|
|
@@ -5600,12 +5600,12 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5600
5600
|
]),
|
|
5601
5601
|
default: W(() => [
|
|
5602
5602
|
B("div", vc, [
|
|
5603
|
-
|
|
5603
|
+
O(bt, {
|
|
5604
5604
|
label: b(n)("menu.price_tier.price_group"),
|
|
5605
5605
|
description: b(n)("menu.price_tier.description")
|
|
5606
5606
|
}, {
|
|
5607
5607
|
append: W(() => [
|
|
5608
|
-
|
|
5608
|
+
O(_, {
|
|
5609
5609
|
class: "min-w-fit",
|
|
5610
5610
|
label: b(n)("menu.price_tier.add_price_group"),
|
|
5611
5611
|
icon: "add",
|
|
@@ -5614,7 +5614,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5614
5614
|
}, null, 8, ["label", "onClick"])
|
|
5615
5615
|
]),
|
|
5616
5616
|
default: W(() => [
|
|
5617
|
-
|
|
5617
|
+
O(ca, {
|
|
5618
5618
|
"price-tiers": b(u).priceTiers.value,
|
|
5619
5619
|
"model-value": m.value,
|
|
5620
5620
|
fallback: p.fallback,
|
|
@@ -5662,7 +5662,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5662
5662
|
placement: "top"
|
|
5663
5663
|
}, {
|
|
5664
5664
|
default: W(() => [
|
|
5665
|
-
|
|
5665
|
+
O(m, {
|
|
5666
5666
|
icon: "price_change",
|
|
5667
5667
|
variant: "tertiary",
|
|
5668
5668
|
"text-color": b(ft).NeutralGray400,
|
|
@@ -5702,14 +5702,14 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5702
5702
|
const a = rn(), o = Me(), r = V(() => Ge.Country.getCountry(a.currentCountry.value)), l = oe(!1), s = V(() => n.config.isV4 || n.group.type === q.F_ADDON_GROUP_TYPE.enum.PRODUCT), u = V(() => s.value), m = V(() => s.value), d = V(() => Object.values(n.group.items).flatMap((G) => [{
|
|
5703
5703
|
_id: G._id,
|
|
5704
5704
|
combinationKey: void 0
|
|
5705
|
-
}, ...(G.items ?? []).filter((
|
|
5706
|
-
_id:
|
|
5707
|
-
combinationKey:
|
|
5705
|
+
}, ...(G.items ?? []).filter((H) => H.orderFrom !== q.F_ORDER_FROM.enum.NONE).map((H) => ({
|
|
5706
|
+
_id: H._id,
|
|
5707
|
+
combinationKey: H.combinationKey
|
|
5708
5708
|
}))])), {
|
|
5709
5709
|
searchKey: c,
|
|
5710
5710
|
filter: p
|
|
5711
5711
|
} = er(), E = V(() => {
|
|
5712
|
-
const G = Object.entries(n.group.items).filter(([,
|
|
5712
|
+
const G = Object.entries(n.group.items).filter(([, H]) => p([H.code || "", H.name || H.fallbackName, v(H.price ?? H.fallbackPrice), h(H.orderFrom || H.fallbackOrder), ...(H.items || []).map((Z) => [Z.code || "", Z.name || Z.fallbackName, v(Z.price ?? Z.fallbackPrice), h(Z.orderFrom || Z.fallbackOrder)].join(""))]));
|
|
5713
5713
|
return Object.fromEntries(G);
|
|
5714
5714
|
}), _ = (G) => ({
|
|
5715
5715
|
...n.config,
|
|
@@ -5718,9 +5718,9 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5718
5718
|
name: n.config.name(G),
|
|
5719
5719
|
orderFrom: n.config.orderFrom(G)
|
|
5720
5720
|
}), w = V(() => !0), v = (G) => G ? Gt(G, !1) : "", h = (G) => {
|
|
5721
|
-
var
|
|
5722
|
-
return G == null ? "" : (
|
|
5723
|
-
}, k = V(() => Object.values(E.value)),
|
|
5721
|
+
var H;
|
|
5722
|
+
return G == null ? "" : (H = Da()[G]) == null ? void 0 : H.label;
|
|
5723
|
+
}, k = V(() => Object.values(E.value)), R = oe({}), {
|
|
5724
5724
|
t: A
|
|
5725
5725
|
} = ke(), T = oe([{
|
|
5726
5726
|
accessorKey: "isDefault",
|
|
@@ -5731,14 +5731,14 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5731
5731
|
var ee, Q;
|
|
5732
5732
|
if ((Q = (ee = G.row.original) == null ? void 0 : ee.items) != null && Q.length)
|
|
5733
5733
|
return null;
|
|
5734
|
-
const
|
|
5735
|
-
return
|
|
5734
|
+
const H = G.row.depth > 0, Z = G.row.original, ie = !_(Z.combinationKey).isDefault || Z.orderFrom === q.F_ORDER_FROM.enum.NONE, ne = !!G.getValue();
|
|
5735
|
+
return O(Be.FmCheckbox, {
|
|
5736
5736
|
value: "default",
|
|
5737
|
-
modelValue:
|
|
5738
|
-
disabled:
|
|
5737
|
+
modelValue: ne,
|
|
5738
|
+
disabled: ie,
|
|
5739
5739
|
"onUpdate:modelValue": (ve) => {
|
|
5740
5740
|
var Ae;
|
|
5741
|
-
if (
|
|
5741
|
+
if (H) {
|
|
5742
5742
|
const je = (Ae = G.row.getParentRow()) == null ? void 0 : Ae.original;
|
|
5743
5743
|
if (!je) return;
|
|
5744
5744
|
I(je._id, Z.combinationKey ?? "", "isDefault", ve);
|
|
@@ -5753,15 +5753,15 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5753
5753
|
enableSorting: !1,
|
|
5754
5754
|
size: 100,
|
|
5755
5755
|
cell: (G) => {
|
|
5756
|
-
const
|
|
5757
|
-
return
|
|
5756
|
+
const H = G.getValue();
|
|
5757
|
+
return O(Be.FmTooltip, {
|
|
5758
5758
|
class: "flex",
|
|
5759
|
-
content:
|
|
5759
|
+
content: H,
|
|
5760
5760
|
zIndex: 110
|
|
5761
5761
|
}, {
|
|
5762
|
-
default: () => [
|
|
5762
|
+
default: () => [O("div", {
|
|
5763
5763
|
class: "break-all max-w-[100px]"
|
|
5764
|
-
}, [
|
|
5764
|
+
}, [H])]
|
|
5765
5765
|
});
|
|
5766
5766
|
}
|
|
5767
5767
|
}, {
|
|
@@ -5769,15 +5769,15 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5769
5769
|
header: () => A("menu.group.option.product_title"),
|
|
5770
5770
|
enableSorting: !1,
|
|
5771
5771
|
cell: (G) => {
|
|
5772
|
-
const
|
|
5772
|
+
const H = G.getValue(), Z = G.row.original, ie = !_(Z.combinationKey).name || Z.orderFrom === q.F_ORDER_FROM.enum.NONE, ne = G.row.depth > 0, ee = Z.combinationKey ? wo(Z.combinationKey, Me().variants) : null;
|
|
5773
5773
|
return Fe("div", Fe(Be.FmTextField, {
|
|
5774
|
-
modelValue:
|
|
5774
|
+
modelValue: H,
|
|
5775
5775
|
placeholder: ee ?? "",
|
|
5776
|
-
disabled:
|
|
5776
|
+
disabled: ie,
|
|
5777
5777
|
rules: ee ? void 0 : [(Q) => Q.length > 0 || A("menu.group.option.product_title_required")],
|
|
5778
5778
|
"onUpdate:modelValue": (Q) => {
|
|
5779
5779
|
var ve;
|
|
5780
|
-
if (
|
|
5780
|
+
if (ne) {
|
|
5781
5781
|
const Ae = (ve = G.row.getParentRow()) == null ? void 0 : ve.original;
|
|
5782
5782
|
if (!Ae) return;
|
|
5783
5783
|
I(Ae._id, Z.combinationKey ?? "", "name", Q);
|
|
@@ -5808,13 +5808,13 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5808
5808
|
},
|
|
5809
5809
|
size: 100,
|
|
5810
5810
|
cell: (G) => {
|
|
5811
|
-
const
|
|
5811
|
+
const H = G.getValue(), Z = G.row.original, ie = !_(null).priceEdit || Z.orderFrom === q.F_ORDER_FROM.enum.NONE, ne = Z.fallbackPrice, ee = G.row.depth > 0;
|
|
5812
5812
|
return Fe(Ft, {
|
|
5813
|
-
disable:
|
|
5814
|
-
placeholder:
|
|
5815
|
-
modelValue:
|
|
5816
|
-
required: !
|
|
5817
|
-
nullable: !!
|
|
5813
|
+
disable: ie,
|
|
5814
|
+
placeholder: ne ? Gt(ne) : void 0,
|
|
5815
|
+
modelValue: H,
|
|
5816
|
+
required: !ne,
|
|
5817
|
+
nullable: !!ne,
|
|
5818
5818
|
min: w.value ? void 0 : 0,
|
|
5819
5819
|
"onUpdate:modelValue": (Q) => {
|
|
5820
5820
|
var ve;
|
|
@@ -5841,16 +5841,16 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5841
5841
|
size: 100,
|
|
5842
5842
|
enableSorting: !1,
|
|
5843
5843
|
cell: (G) => {
|
|
5844
|
-
const
|
|
5844
|
+
const H = G.getValue(), Z = G.row.original, ie = Z.fallbackOrder, ne = G.row.depth > 0;
|
|
5845
5845
|
return Fe(Ei, {
|
|
5846
|
-
modelValue:
|
|
5847
|
-
fallback:
|
|
5846
|
+
modelValue: H,
|
|
5847
|
+
fallback: ie,
|
|
5848
5848
|
disable: !_(Z.combinationKey).orderFrom,
|
|
5849
5849
|
required: !0,
|
|
5850
5850
|
editActiveOnly: _(Z.combinationKey).orderFromActiveOnly,
|
|
5851
5851
|
"onUpdate:modelValue": (ee) => {
|
|
5852
5852
|
var Q;
|
|
5853
|
-
if (
|
|
5853
|
+
if (ne) {
|
|
5854
5854
|
const ve = (Q = G.row.getParentRow()) == null ? void 0 : Q.original;
|
|
5855
5855
|
if (!ve) return;
|
|
5856
5856
|
I(
|
|
@@ -5876,73 +5876,73 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5876
5876
|
// size: rules.value.inventory && rules.value.link ? 80 : 40,
|
|
5877
5877
|
size: 80,
|
|
5878
5878
|
cell: (G) => {
|
|
5879
|
-
const
|
|
5880
|
-
return
|
|
5879
|
+
const H = G.row.original, Z = H.orderFrom === q.F_ORDER_FROM.enum.NONE, ie = G.row.depth > 0;
|
|
5880
|
+
return O("div", {
|
|
5881
5881
|
class: "flex items-center justify-end"
|
|
5882
|
-
}, [_(null).priceTier &&
|
|
5883
|
-
priceTiers:
|
|
5882
|
+
}, [_(null).priceTier && O(da, {
|
|
5883
|
+
priceTiers: H.priceTiers,
|
|
5884
5884
|
disabled: Z,
|
|
5885
|
-
"onUpdate:priceTiers": (
|
|
5885
|
+
"onUpdate:priceTiers": (ne) => {
|
|
5886
5886
|
var ee;
|
|
5887
|
-
if (
|
|
5887
|
+
if (ie) {
|
|
5888
5888
|
const Q = (ee = G.row.getParentRow()) == null ? void 0 : ee.original;
|
|
5889
5889
|
if (!Q) return;
|
|
5890
5890
|
I(
|
|
5891
5891
|
Q._id,
|
|
5892
|
-
|
|
5892
|
+
H.combinationKey ?? "",
|
|
5893
5893
|
// @ts-ignore
|
|
5894
5894
|
"priceTiers",
|
|
5895
|
-
|
|
5895
|
+
ne
|
|
5896
5896
|
);
|
|
5897
5897
|
} else
|
|
5898
|
-
S(
|
|
5898
|
+
S(H._id, "priceTiers", ne);
|
|
5899
5899
|
}
|
|
5900
|
-
}, null), _(
|
|
5900
|
+
}, null), _(H.combinationKey).inventory && O(li, {
|
|
5901
5901
|
title: "Inventory",
|
|
5902
|
-
initialValue:
|
|
5903
|
-
name:
|
|
5902
|
+
initialValue: H.inventoryBindings ?? [],
|
|
5903
|
+
name: H.name ?? H.fallbackName ?? "",
|
|
5904
5904
|
allowRefund: n.allowRefundInventory,
|
|
5905
|
-
"onUpdate:inventory": (
|
|
5905
|
+
"onUpdate:inventory": (ne) => {
|
|
5906
5906
|
var ee;
|
|
5907
|
-
if (
|
|
5907
|
+
if (ie) {
|
|
5908
5908
|
const Q = (ee = G.row.getParentRow()) == null ? void 0 : ee.original;
|
|
5909
5909
|
if (!Q) return;
|
|
5910
5910
|
I(
|
|
5911
5911
|
Q._id,
|
|
5912
|
-
|
|
5912
|
+
H.combinationKey ?? "",
|
|
5913
5913
|
// @ts-ignore
|
|
5914
5914
|
"inventoryBindings",
|
|
5915
|
-
|
|
5915
|
+
ne
|
|
5916
5916
|
);
|
|
5917
5917
|
} else
|
|
5918
|
-
S(
|
|
5918
|
+
S(H._id, "inventoryBindings", ne);
|
|
5919
5919
|
}
|
|
5920
5920
|
}, {
|
|
5921
5921
|
default: ({
|
|
5922
|
-
trigger:
|
|
5923
|
-
}) =>
|
|
5922
|
+
trigger: ne
|
|
5923
|
+
}) => O(K("fm-tooltip"), {
|
|
5924
5924
|
content: "Inventory",
|
|
5925
5925
|
zIndex: 110
|
|
5926
5926
|
}, {
|
|
5927
5927
|
default: () => {
|
|
5928
5928
|
var ee;
|
|
5929
|
-
return [
|
|
5930
|
-
variant:
|
|
5929
|
+
return [O(K("fm-button"), {
|
|
5930
|
+
variant: Ot.Tertiary,
|
|
5931
5931
|
disabled: Z,
|
|
5932
5932
|
prependIcon: "inventory_2",
|
|
5933
|
-
overwriteIconOutline: (ee =
|
|
5933
|
+
overwriteIconOutline: (ee = H.inventoryBindings) != null && ee.length ? "filled" : "outline",
|
|
5934
5934
|
textColor: ft.NeutralGray400,
|
|
5935
|
-
onClick:
|
|
5935
|
+
onClick: ne
|
|
5936
5936
|
}, null)];
|
|
5937
5937
|
}
|
|
5938
5938
|
})
|
|
5939
|
-
}), _(
|
|
5940
|
-
variant:
|
|
5939
|
+
}), _(H.combinationKey).link && O(K("fm-button"), {
|
|
5940
|
+
variant: Ot.Tertiary,
|
|
5941
5941
|
prependIcon: "delete",
|
|
5942
5942
|
textColor: ft.NeutralGray400,
|
|
5943
|
-
disabled:
|
|
5943
|
+
disabled: ie,
|
|
5944
5944
|
onClick: () => {
|
|
5945
|
-
N(
|
|
5945
|
+
N(H._id);
|
|
5946
5946
|
}
|
|
5947
5947
|
}, null)]);
|
|
5948
5948
|
}
|
|
@@ -5971,122 +5971,124 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5971
5971
|
}
|
|
5972
5972
|
});
|
|
5973
5973
|
}
|
|
5974
|
-
function S(G,
|
|
5975
|
-
const
|
|
5976
|
-
if (!
|
|
5977
|
-
const
|
|
5978
|
-
...
|
|
5974
|
+
function S(G, H, Z) {
|
|
5975
|
+
const ie = n.group.items[G];
|
|
5976
|
+
if (!ie) return;
|
|
5977
|
+
const ne = {
|
|
5978
|
+
...ie
|
|
5979
5979
|
};
|
|
5980
|
-
|
|
5980
|
+
H === "price" ? ne[H] = !Z && !ie.fallbackPrice ? Ge.Dinero.zero().toObject() : Z : ne[H] = Z, i("update:group", {
|
|
5981
5981
|
...n.group,
|
|
5982
5982
|
items: {
|
|
5983
5983
|
...n.group.items,
|
|
5984
|
-
[G]:
|
|
5984
|
+
[G]: ne
|
|
5985
5985
|
}
|
|
5986
5986
|
});
|
|
5987
5987
|
}
|
|
5988
|
-
function I(G,
|
|
5988
|
+
function I(G, H, Z, ie) {
|
|
5989
5989
|
var ve, Ae;
|
|
5990
|
-
const
|
|
5990
|
+
const ne = be(n.group), ee = (ve = ne.items[G].items) == null ? void 0 : ve.findIndex((je) => je.combinationKey === H);
|
|
5991
5991
|
if (!sn.isSet(ee)) return;
|
|
5992
|
-
let Q = (Ae =
|
|
5992
|
+
let Q = (Ae = ne.items[G].items) == null ? void 0 : Ae[ee];
|
|
5993
5993
|
Q && (Q = {
|
|
5994
5994
|
...Q,
|
|
5995
|
-
[Z]:
|
|
5996
|
-
},
|
|
5995
|
+
[Z]: ie
|
|
5996
|
+
}, ne.items[G].items[ee] = Q, i("update:group", ne));
|
|
5997
5997
|
}
|
|
5998
5998
|
function N(G) {
|
|
5999
|
-
const
|
|
6000
|
-
delete
|
|
5999
|
+
const H = be(n.group);
|
|
6000
|
+
delete H.items[G], i("update:group", H);
|
|
6001
6001
|
}
|
|
6002
|
-
const M = V(() => n.categorizedItems.flatMap((G) => G.items).reduce((G,
|
|
6002
|
+
const M = V(() => n.categorizedItems.flatMap((G) => G.items).reduce((G, H) => {
|
|
6003
6003
|
var Z;
|
|
6004
|
-
return G[
|
|
6005
|
-
price:
|
|
6006
|
-
variants: Fa(((Z =
|
|
6004
|
+
return G[H._id] = {
|
|
6005
|
+
price: H.price,
|
|
6006
|
+
variants: Fa(((Z = H.variant) == null ? void 0 : Z.variantCombinations) || [], "combinationKey")
|
|
6007
6007
|
}, G;
|
|
6008
6008
|
}, {})), P = (G) => {
|
|
6009
|
-
var
|
|
6010
|
-
const Z = o.state.menu.modules.item.find((Q) => Q._id === G._id),
|
|
6011
|
-
...(
|
|
6009
|
+
var ne, ee;
|
|
6010
|
+
const Z = o.state.menu.modules.item.find((Q) => Q._id === G._id), ie = G.combinationKey ? {
|
|
6011
|
+
...(ne = Z == null ? void 0 : Z.variant) == null ? void 0 : ne.variantCombinations.find((Q) => Q.combinationKey === G.combinationKey),
|
|
6012
6012
|
name: go(Me().variants, ((ee = Z == null ? void 0 : Z.variant) == null ? void 0 : ee.variantGroupIds) || [])[G.combinationKey]
|
|
6013
6013
|
} : Z;
|
|
6014
|
-
return
|
|
6015
|
-
}, z = V(() => o.state.menu.modules.item.reduce((G,
|
|
6014
|
+
return ie == null ? void 0 : ie.name;
|
|
6015
|
+
}, z = V(() => o.state.menu.modules.item.reduce((G, H) => (G[H._id] = H, G), {}));
|
|
6016
6016
|
function D(G) {
|
|
6017
|
-
const
|
|
6018
|
-
return G.forEach((
|
|
6017
|
+
const H = [], Z = new Set(G.filter((ie) => ie.combinationKey).map((ie) => `${ie._id}:${ie.combinationKey}`));
|
|
6018
|
+
return G.forEach((ie) => {
|
|
6019
6019
|
var Q;
|
|
6020
|
-
if (
|
|
6020
|
+
if (ie.combinationKey)
|
|
6021
6021
|
return;
|
|
6022
|
-
|
|
6023
|
-
const
|
|
6024
|
-
if (!
|
|
6022
|
+
H.push(ie);
|
|
6023
|
+
const ne = z.value[ie._id];
|
|
6024
|
+
if (!ne || !ne.variant || ((Q = ne.variant.variantCombinations) == null ? void 0 : Q.length) === 0)
|
|
6025
6025
|
return;
|
|
6026
|
-
(
|
|
6026
|
+
(ne.variant.variantCombinations || []).forEach((ve) => {
|
|
6027
6027
|
const Ae = `${ve._id}:${ve.combinationKey}`, je = !Z.has(Ae);
|
|
6028
|
-
|
|
6028
|
+
H.push({
|
|
6029
6029
|
_id: ve._id,
|
|
6030
6030
|
combinationKey: ve.combinationKey,
|
|
6031
6031
|
orderFrom: je ? q.F_ORDER_FROM.enum.NONE : q.F_ORDER_FROM.enum.ALL
|
|
6032
6032
|
});
|
|
6033
6033
|
});
|
|
6034
|
-
}),
|
|
6034
|
+
}), H;
|
|
6035
6035
|
}
|
|
6036
6036
|
const C = async (G) => {
|
|
6037
|
-
let
|
|
6037
|
+
let H = ci(n.group);
|
|
6038
6038
|
const Z = D(G);
|
|
6039
|
-
|
|
6040
|
-
...
|
|
6041
|
-
items: Z.map((
|
|
6042
|
-
const
|
|
6043
|
-
|
|
6044
|
-
const ee = M.value[
|
|
6045
|
-
return
|
|
6046
|
-
...
|
|
6047
|
-
name: P(
|
|
6048
|
-
price:
|
|
6049
|
-
orderFrom:
|
|
6039
|
+
H = {
|
|
6040
|
+
...H,
|
|
6041
|
+
items: Z.map((ie) => {
|
|
6042
|
+
const ne = H.items.find((Q) => Q._id == ie._id && Q.combinationKey == ie.combinationKey);
|
|
6043
|
+
ie.orderFrom && ne && (ne.orderFrom = ie.orderFrom);
|
|
6044
|
+
const ee = M.value[ie._id];
|
|
6045
|
+
return ne || {
|
|
6046
|
+
...ie,
|
|
6047
|
+
name: P(ie),
|
|
6048
|
+
price: ie.combinationKey ? ee.variants[ie.combinationKey || ""].price : ee.price,
|
|
6049
|
+
orderFrom: ie.orderFrom ?? q.F_ORDER_FROM.enum.ALL
|
|
6050
6050
|
};
|
|
6051
6051
|
})
|
|
6052
|
-
}, i("update:unmap-group",
|
|
6052
|
+
}, i("update:unmap-group", H);
|
|
6053
6053
|
}, $ = (G) => G.items;
|
|
6054
6054
|
function le(G) {
|
|
6055
|
-
const
|
|
6056
|
-
|
|
6055
|
+
const H = be(n.group);
|
|
6056
|
+
H.items = G.reduce((Z, ie) => ({
|
|
6057
6057
|
...Z,
|
|
6058
|
-
[
|
|
6059
|
-
}), {}), i("update:group",
|
|
6058
|
+
[ie._id]: ie
|
|
6059
|
+
}), {}), i("update:group", H);
|
|
6060
6060
|
}
|
|
6061
6061
|
const ce = _o(), we = V(() => ce.breakpoints.value.xs);
|
|
6062
|
-
return (G,
|
|
6063
|
-
const Z = K("fm-button"),
|
|
6062
|
+
return (G, H) => {
|
|
6063
|
+
const Z = K("fm-button"), ie = K("fm-table");
|
|
6064
6064
|
return U(), J(ut, {
|
|
6065
6065
|
title: b(A)("menu.group.option.title"),
|
|
6066
6066
|
"sub-title": G.config.link() && u.value ? b(A)("menu.group.option.subtitle") : ""
|
|
6067
6067
|
}, {
|
|
6068
6068
|
"append-title": W(() => [G.config.link() ? (U(), re(Ve, {
|
|
6069
6069
|
key: 0
|
|
6070
|
-
}, [u.value ? (U(), re("div", yc, [
|
|
6070
|
+
}, [u.value ? (U(), re("div", yc, [O(xa, {
|
|
6071
6071
|
"categorized-items": G.categorizedItems,
|
|
6072
6072
|
"initial-value": d.value,
|
|
6073
6073
|
"show-variant": G.config.bindToVariant,
|
|
6074
6074
|
"select-variant": "",
|
|
6075
6075
|
title: b(A)("menu.group.option.link_products"),
|
|
6076
|
-
onSubmit:
|
|
6076
|
+
onSubmit: H[0] || (H[0] = ({
|
|
6077
|
+
items: ne
|
|
6078
|
+
}) => C(ne))
|
|
6077
6079
|
}, {
|
|
6078
6080
|
default: W(({
|
|
6079
|
-
trigger:
|
|
6080
|
-
}) => [
|
|
6081
|
+
trigger: ne
|
|
6082
|
+
}) => [O(Z, {
|
|
6081
6083
|
"text-color": b(ft).ColorPrimary,
|
|
6082
6084
|
"border-color": b(ft).ColorPrimary,
|
|
6083
6085
|
variant: "secondary",
|
|
6084
6086
|
label: b(A)("menu.group.option.link_products"),
|
|
6085
6087
|
"prepend-icon": "link",
|
|
6086
|
-
onClick:
|
|
6088
|
+
onClick: ne
|
|
6087
6089
|
}, null, 8, ["text-color", "border-color", "label", "onClick"])]),
|
|
6088
6090
|
_: 1
|
|
6089
|
-
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div", wc, [
|
|
6091
|
+
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div", wc, [O(Z, {
|
|
6090
6092
|
"text-color": b(ft).ColorPrimary,
|
|
6091
6093
|
"border-color": b(ft).ColorPrimary,
|
|
6092
6094
|
variant: "secondary",
|
|
@@ -6094,27 +6096,27 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6094
6096
|
"prepend-icon": "add",
|
|
6095
6097
|
onClick: x
|
|
6096
6098
|
}, null, 8, ["text-color", "border-color", "label"])]))], 64)) : se("", !0)]),
|
|
6097
|
-
default: W(() => [B("div", Ec, [B("div", Sc, [
|
|
6099
|
+
default: W(() => [B("div", Ec, [B("div", Sc, [O(ie, {
|
|
6098
6100
|
"column-defs": T.value,
|
|
6099
6101
|
"column-visibility": y.value,
|
|
6100
6102
|
draggable: !we.value && _(null).name,
|
|
6101
|
-
"expanded-state": l.value ? {} :
|
|
6103
|
+
"expanded-state": l.value ? {} : R.value,
|
|
6102
6104
|
"get-sub-row": $,
|
|
6103
6105
|
"page-size": 999,
|
|
6104
6106
|
"row-data": k.value,
|
|
6105
6107
|
"search-value": b(c),
|
|
6106
6108
|
"shrink-at": !1,
|
|
6107
6109
|
"hide-footer": "",
|
|
6108
|
-
"onUpdate:expandedState":
|
|
6109
|
-
onDndChanged:
|
|
6110
|
-
"onUpdate:dragging":
|
|
6110
|
+
"onUpdate:expandedState": H[1] || (H[1] = (ne) => R.value = ne),
|
|
6111
|
+
onDndChanged: H[2] || (H[2] = (ne) => le(ne)),
|
|
6112
|
+
"onUpdate:dragging": H[3] || (H[3] = (ne) => l.value = ne)
|
|
6111
6113
|
}, null, 8, ["column-defs", "column-visibility", "draggable", "expanded-state", "row-data", "search-value"])])])]),
|
|
6112
6114
|
_: 1
|
|
6113
6115
|
}, 8, ["title", "sub-title"]);
|
|
6114
6116
|
};
|
|
6115
6117
|
}
|
|
6116
6118
|
});
|
|
6117
|
-
function
|
|
6119
|
+
function Rc(e) {
|
|
6118
6120
|
const { t } = ke();
|
|
6119
6121
|
function n(r) {
|
|
6120
6122
|
let l = 0;
|
|
@@ -6163,7 +6165,7 @@ function Oc(e) {
|
|
|
6163
6165
|
minMaxValidationRules: o
|
|
6164
6166
|
};
|
|
6165
6167
|
}
|
|
6166
|
-
const
|
|
6168
|
+
const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
6167
6169
|
key: 0,
|
|
6168
6170
|
class: "pt-8 space-y-32"
|
|
6169
6171
|
}, Ac = { class: "flex gap-8 items-center justify-start" }, ma = /* @__PURE__ */ ge({
|
|
@@ -6179,7 +6181,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6179
6181
|
emits: ["update:group", "submit:group", "status:show"],
|
|
6180
6182
|
setup(e, { expose: t, emit: n }) {
|
|
6181
6183
|
let i = e;
|
|
6182
|
-
const a = n, o = Me(), r = rn(), l = lt(), s = Qe(), u =
|
|
6184
|
+
const a = n, o = Me(), r = rn(), l = lt(), s = Qe(), u = Rt(kt(s)), { countDefaultItems: m, validateGroupItems: d, minMaxValidationRules: c } = Rc(
|
|
6183
6185
|
() => i.group
|
|
6184
6186
|
), p = oe(!1), E = oe(!1), _ = (C) => {
|
|
6185
6187
|
sn.isBoolean(C) ? E.value = C : E.value = !E.value;
|
|
@@ -6197,12 +6199,12 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6197
6199
|
value: q.F_ADDON_GROUP_TYPE.enum.DYNAMIC
|
|
6198
6200
|
}
|
|
6199
6201
|
]);
|
|
6200
|
-
function
|
|
6202
|
+
function R(C) {
|
|
6201
6203
|
a("update:group", C);
|
|
6202
6204
|
}
|
|
6203
6205
|
function A(C) {
|
|
6204
6206
|
function $() {
|
|
6205
|
-
|
|
6207
|
+
R({
|
|
6206
6208
|
...i.group,
|
|
6207
6209
|
items: {},
|
|
6208
6210
|
type: C
|
|
@@ -6222,7 +6224,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6222
6224
|
}).onPrimary($) : $();
|
|
6223
6225
|
}
|
|
6224
6226
|
function T(C) {
|
|
6225
|
-
return new
|
|
6227
|
+
return new Oo(o, u.updateMenu, l).mapGroups(
|
|
6226
6228
|
[C],
|
|
6227
6229
|
w.value.isOverride
|
|
6228
6230
|
)[0];
|
|
@@ -6236,7 +6238,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6236
6238
|
async function I() {
|
|
6237
6239
|
var C;
|
|
6238
6240
|
if (i.action === "add") {
|
|
6239
|
-
const { group: $, linkItems: le } =
|
|
6241
|
+
const { group: $, linkItems: le } = Ro(i.group), ce = {
|
|
6240
6242
|
module: q.F_MENU_MODULE_V4_KEY.enum.group,
|
|
6241
6243
|
operation: ze.F_OPERATION_TYPE.create,
|
|
6242
6244
|
data: $,
|
|
@@ -6251,7 +6253,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6251
6253
|
await u.updateMenu(ce, $.name), a("submit:group", i.group);
|
|
6252
6254
|
} else if (i.action === "update") {
|
|
6253
6255
|
for (const $ of Object.values(((C = i.group) == null ? void 0 : C.items) ?? {}))
|
|
6254
|
-
if (
|
|
6256
|
+
if (Wa(o.state.menu, i.group._id, $._id)) {
|
|
6255
6257
|
s.open({
|
|
6256
6258
|
type: "error",
|
|
6257
6259
|
message: D("menu.product.form.group.circularError", {
|
|
@@ -6282,7 +6284,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6282
6284
|
typeof we == "string" && we && !((le = C[ce]) != null && le.includes(we)) && (C[ce] = [...C[ce] || [], we]);
|
|
6283
6285
|
}), C;
|
|
6284
6286
|
}), P = (C) => {
|
|
6285
|
-
i.group &&
|
|
6287
|
+
i.group && R({
|
|
6286
6288
|
...i.group,
|
|
6287
6289
|
customAttributes: C
|
|
6288
6290
|
});
|
|
@@ -6298,10 +6300,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6298
6300
|
});
|
|
6299
6301
|
const { t: D } = ke();
|
|
6300
6302
|
return (C, $) => {
|
|
6301
|
-
const le = K("fm-text-field"), ce = K("fm-stepper-field"), we = K("FmFormGroup"), G = K("fm-radio"),
|
|
6303
|
+
const le = K("fm-text-field"), ce = K("fm-stepper-field"), we = K("FmFormGroup"), G = K("fm-radio"), H = K("fm-radio-group"), Z = K("fm-switch"), ie = K("fm-button"), ne = K("fm-side-sheet");
|
|
6302
6304
|
return U(), re(Ve, null, [
|
|
6303
6305
|
Ce(C.$slots, "default", { trigger: _ }),
|
|
6304
|
-
|
|
6306
|
+
O(ne, {
|
|
6305
6307
|
id: "group-form",
|
|
6306
6308
|
modelValue: E.value,
|
|
6307
6309
|
"onUpdate:modelValue": $[8] || ($[8] = (ee) => E.value = ee),
|
|
@@ -6314,18 +6316,18 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6314
6316
|
"onOn:clickedAway": b(x)
|
|
6315
6317
|
}, {
|
|
6316
6318
|
"side-sheet-header": W(() => [
|
|
6317
|
-
B("p",
|
|
6319
|
+
B("p", Oc, Ee(C.title), 1)
|
|
6318
6320
|
]),
|
|
6319
6321
|
"side-sheet-footer": W(() => [
|
|
6320
6322
|
B("div", Ac, [
|
|
6321
|
-
|
|
6323
|
+
O(ie, {
|
|
6322
6324
|
label: b(tr)(S.value),
|
|
6323
6325
|
loading: p.value,
|
|
6324
6326
|
size: "lg",
|
|
6325
6327
|
type: "submit",
|
|
6326
6328
|
variant: "primary"
|
|
6327
6329
|
}, null, 8, ["label", "loading"]),
|
|
6328
|
-
|
|
6330
|
+
O(ie, {
|
|
6329
6331
|
label: b(D)("menu.common.actions.cancel"),
|
|
6330
6332
|
size: "lg",
|
|
6331
6333
|
variant: "tertiary",
|
|
@@ -6336,10 +6338,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6336
6338
|
default: W(() => [
|
|
6337
6339
|
C.group ? (U(), re("div", Cc, [
|
|
6338
6340
|
Ce(C.$slots, "variant-section"),
|
|
6339
|
-
|
|
6341
|
+
O(Ua, null, {
|
|
6340
6342
|
default: W(() => [
|
|
6341
6343
|
B("div", null, [
|
|
6342
|
-
|
|
6344
|
+
O(le, {
|
|
6343
6345
|
modelValue: C.group.name,
|
|
6344
6346
|
"onUpdate:modelValue": $[0] || ($[0] = (ee) => C.group.name = ee),
|
|
6345
6347
|
disabled: h("name"),
|
|
@@ -6348,14 +6350,14 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6348
6350
|
label: b(D)("menu.common.labels.group_name")
|
|
6349
6351
|
}, null, 8, ["modelValue", "disabled", "rules", "label"])
|
|
6350
6352
|
]),
|
|
6351
|
-
|
|
6353
|
+
O(we, {
|
|
6352
6354
|
"model-value": C.group.min + " " + C.group.max,
|
|
6353
6355
|
rules: b(c)
|
|
6354
6356
|
}, {
|
|
6355
6357
|
default: W(() => [
|
|
6356
|
-
|
|
6358
|
+
O(cc, null, {
|
|
6357
6359
|
default: W(() => [
|
|
6358
|
-
|
|
6360
|
+
O(ce, {
|
|
6359
6361
|
modelValue: C.group.min,
|
|
6360
6362
|
"onUpdate:modelValue": $[1] || ($[1] = (ee) => C.group.min = ee),
|
|
6361
6363
|
disabled: h("min"),
|
|
@@ -6363,7 +6365,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6363
6365
|
class: "flex-1",
|
|
6364
6366
|
label: b(D)("menu.common.labels.min_select")
|
|
6365
6367
|
}, null, 8, ["modelValue", "disabled", "label"]),
|
|
6366
|
-
|
|
6368
|
+
O(ce, {
|
|
6367
6369
|
modelValue: C.group.max,
|
|
6368
6370
|
"onUpdate:modelValue": $[2] || ($[2] = (ee) => C.group.max = ee),
|
|
6369
6371
|
disabled: h("max"),
|
|
@@ -6382,7 +6384,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6382
6384
|
label: b(D)("menu.common.labels.group_type")
|
|
6383
6385
|
}, {
|
|
6384
6386
|
default: W(() => [
|
|
6385
|
-
|
|
6387
|
+
O(H, {
|
|
6386
6388
|
disabled: h("type"),
|
|
6387
6389
|
"model-value": C.group.type,
|
|
6388
6390
|
"onUpdate:modelValue": $[3] || ($[3] = (ee) => A(ee))
|
|
@@ -6399,11 +6401,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6399
6401
|
]),
|
|
6400
6402
|
_: 1
|
|
6401
6403
|
}, 8, ["label"])) : se("", !0),
|
|
6402
|
-
|
|
6404
|
+
O(bt, {
|
|
6403
6405
|
label: b(D)("menu.common.labels.configuration")
|
|
6404
6406
|
}, {
|
|
6405
6407
|
default: W(() => [
|
|
6406
|
-
|
|
6408
|
+
O(Z, {
|
|
6407
6409
|
modelValue: C.group.stackable,
|
|
6408
6410
|
"onUpdate:modelValue": $[4] || ($[4] = (ee) => C.group.stackable = ee),
|
|
6409
6411
|
disabled: h("stackable"),
|
|
@@ -6420,7 +6422,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6420
6422
|
"sub-title": b(D)("menu.group.form.tagging.subtitle")
|
|
6421
6423
|
}, {
|
|
6422
6424
|
default: W(() => [
|
|
6423
|
-
|
|
6425
|
+
O(b(vo), {
|
|
6424
6426
|
entity: "group",
|
|
6425
6427
|
"model-value": C.group.customAttributes || {},
|
|
6426
6428
|
"onUpdate:modelValue": P,
|
|
@@ -6432,7 +6434,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6432
6434
|
]),
|
|
6433
6435
|
_: 1
|
|
6434
6436
|
}),
|
|
6435
|
-
|
|
6437
|
+
O(we, {
|
|
6436
6438
|
tag: "div",
|
|
6437
6439
|
modelValue: C.group,
|
|
6438
6440
|
rules: [b(d)],
|
|
@@ -6442,13 +6444,13 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6442
6444
|
})
|
|
6443
6445
|
}, {
|
|
6444
6446
|
default: W(() => [
|
|
6445
|
-
|
|
6447
|
+
O(kc, {
|
|
6446
6448
|
"allow-refund-inventory": C.allowRefundInventory ?? !1,
|
|
6447
6449
|
"categorized-items": C.categorizedItems,
|
|
6448
6450
|
config: w.value,
|
|
6449
6451
|
group: C.group,
|
|
6450
|
-
"onUpdate:group": $[5] || ($[5] = (ee) =>
|
|
6451
|
-
"onUpdate:unmapGroup": $[6] || ($[6] = (ee) =>
|
|
6452
|
+
"onUpdate:group": $[5] || ($[5] = (ee) => R(ee)),
|
|
6453
|
+
"onUpdate:unmapGroup": $[6] || ($[6] = (ee) => R(T(ee)))
|
|
6452
6454
|
}, null, 8, ["allow-refund-inventory", "categorized-items", "config", "group"])
|
|
6453
6455
|
]),
|
|
6454
6456
|
_: 1
|
|
@@ -6469,8 +6471,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6469
6471
|
},
|
|
6470
6472
|
emits: ["update:combinations"],
|
|
6471
6473
|
setup(e, { expose: t, emit: n }) {
|
|
6472
|
-
var
|
|
6473
|
-
const i = e, a = n, o = Me(), r = lt(), l =
|
|
6474
|
+
var R, A;
|
|
6475
|
+
const i = e, a = n, o = Me(), r = lt(), l = Rt(kt(Qe())), s = oe([]), u = oe(i.combinations[0].combinationKey || ""), m = V(
|
|
6474
6476
|
() => s.value.findIndex((T) => T.combinationKey == u.value)
|
|
6475
6477
|
), d = V(
|
|
6476
6478
|
() => i.combinations.map((T) => ({
|
|
@@ -6500,7 +6502,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6500
6502
|
};
|
|
6501
6503
|
})
|
|
6502
6504
|
};
|
|
6503
|
-
return new
|
|
6505
|
+
return new Oo(o, l.updateMenu, r).mapGroups([I], !0)[0];
|
|
6504
6506
|
});
|
|
6505
6507
|
function p(T) {
|
|
6506
6508
|
var I, N;
|
|
@@ -6557,7 +6559,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6557
6559
|
);
|
|
6558
6560
|
const h = oe();
|
|
6559
6561
|
t({
|
|
6560
|
-
show: (
|
|
6562
|
+
show: (R = h.value) == null ? void 0 : R.show,
|
|
6561
6563
|
trigger: (A = h.value) == null ? void 0 : A.trigger
|
|
6562
6564
|
});
|
|
6563
6565
|
const { t: k } = ke();
|
|
@@ -6588,21 +6590,21 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6588
6590
|
default: W(() => [
|
|
6589
6591
|
B("p", Ic, Ee(b(k)("menu.group.option.variant")), 1),
|
|
6590
6592
|
B("div", Tc, [
|
|
6591
|
-
|
|
6593
|
+
O(x, {
|
|
6592
6594
|
modelValue: u.value,
|
|
6593
6595
|
"onUpdate:modelValue": y[0] || (y[0] = (N) => u.value = N),
|
|
6594
6596
|
items: d.value,
|
|
6595
6597
|
class: "flex-1"
|
|
6596
6598
|
}, null, 8, ["modelValue", "items"]),
|
|
6597
6599
|
B("div", Mc, [
|
|
6598
|
-
|
|
6599
|
-
variant: b(
|
|
6600
|
+
O(S, {
|
|
6601
|
+
variant: b(Ot).Tertiary,
|
|
6600
6602
|
"prepend-icon": "keyboard_arrow_left",
|
|
6601
6603
|
size: "lg",
|
|
6602
6604
|
onClick: y[1] || (y[1] = (N) => E("left"))
|
|
6603
6605
|
}, null, 8, ["variant"]),
|
|
6604
|
-
|
|
6605
|
-
variant: b(
|
|
6606
|
+
O(S, {
|
|
6607
|
+
variant: b(Ot).Tertiary,
|
|
6606
6608
|
"prepend-icon": "keyboard_arrow_right",
|
|
6607
6609
|
size: "lg",
|
|
6608
6610
|
onClick: y[2] || (y[2] = (N) => E("right"))
|
|
@@ -6635,7 +6637,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6635
6637
|
}
|
|
6636
6638
|
const u = V(() => s(l.value).reduce((w, v) => (w[v._id] = {
|
|
6637
6639
|
name: v.name,
|
|
6638
|
-
type:
|
|
6640
|
+
type: On(o.items, v.items)
|
|
6639
6641
|
}, w), {})), m = V(() => [
|
|
6640
6642
|
...Object.entries(u.value).map(([w, { name: v, type: h }]) => ({
|
|
6641
6643
|
label: `${v} ${r.value.type ? `(${Hn(h)})` : ""}`.trim(),
|
|
@@ -6643,11 +6645,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6643
6645
|
}))
|
|
6644
6646
|
]), d = V(() => !!o.state.currentCatalogId || !!o.state.currentSchedulerId);
|
|
6645
6647
|
V(() => {
|
|
6646
|
-
const w = !o.state.currentSchedulerId, v = o.rules.group.type, h = o.version == q.F_MENU_VERSION.enum.v3, k = o.rules.item.orderFromActiveOnly,
|
|
6648
|
+
const w = !o.state.currentSchedulerId, v = o.rules.group.type, h = o.version == q.F_MENU_VERSION.enum.v3, k = o.rules.item.orderFromActiveOnly, R = o.rules.item.bindToVariant;
|
|
6647
6649
|
return function(T) {
|
|
6648
6650
|
return {
|
|
6649
6651
|
isDefault: (y) => !d.value && !y,
|
|
6650
|
-
link: (y) => !d.value && (!y ||
|
|
6652
|
+
link: (y) => !d.value && (!y || R),
|
|
6651
6653
|
name: (y) => !d.value && !y,
|
|
6652
6654
|
type: v && !T._id && !d.value,
|
|
6653
6655
|
price: T.type != q.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
|
|
@@ -6657,7 +6659,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6657
6659
|
orderFrom: (y) => w ? h ? T.type == q.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? d.value : !!d.value == !y : d.value : !1,
|
|
6658
6660
|
orderFromActiveOnly: k,
|
|
6659
6661
|
showOrderFrom: w ? h ? d.value ? !0 : T.type == q.F_ADDON_GROUP_TYPE.enum.PRODUCT : d.value : !1,
|
|
6660
|
-
bindToVariant:
|
|
6662
|
+
bindToVariant: R,
|
|
6661
6663
|
isOverride: d.value,
|
|
6662
6664
|
isItemGroup: !1,
|
|
6663
6665
|
isV4: !h
|
|
@@ -6674,10 +6676,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6674
6676
|
i(c.value), a("primary"), n.close();
|
|
6675
6677
|
};
|
|
6676
6678
|
return (w, v) => {
|
|
6677
|
-
const h = K("FmSearch"), k = K("FmCheckbox"),
|
|
6679
|
+
const h = K("FmSearch"), k = K("FmCheckbox"), R = K("FmButton");
|
|
6678
6680
|
return m.value.length > 0 ? (U(), re("div", Pc, [
|
|
6679
6681
|
B("div", null, [
|
|
6680
|
-
|
|
6682
|
+
O(h, {
|
|
6681
6683
|
autofocus: "",
|
|
6682
6684
|
modelValue: p.value,
|
|
6683
6685
|
"onUpdate:modelValue": v[0] || (v[0] = (A) => p.value = A),
|
|
@@ -6689,7 +6691,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6689
6691
|
(U(!0), re(Ve, null, rt(m.value, (A) => (U(), re("div", {
|
|
6690
6692
|
key: A.value
|
|
6691
6693
|
}, [
|
|
6692
|
-
Xt(
|
|
6694
|
+
Xt(O(k, {
|
|
6693
6695
|
modelValue: c.value,
|
|
6694
6696
|
"onUpdate:modelValue": [
|
|
6695
6697
|
v[1] || (v[1] = (T) => c.value = T),
|
|
@@ -6704,9 +6706,9 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6704
6706
|
])
|
|
6705
6707
|
]),
|
|
6706
6708
|
B("div", xc, [
|
|
6707
|
-
|
|
6709
|
+
O(b(co), null, {
|
|
6708
6710
|
default: W(({ trigger: A }) => [
|
|
6709
|
-
R
|
|
6711
|
+
O(R, {
|
|
6710
6712
|
label: b(E)("menu.common.actions.add_group"),
|
|
6711
6713
|
variant: "tertiary",
|
|
6712
6714
|
"text-color": "primary",
|
|
@@ -6716,12 +6718,12 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6716
6718
|
_: 1
|
|
6717
6719
|
}),
|
|
6718
6720
|
B("div", Uc, [
|
|
6719
|
-
R
|
|
6721
|
+
O(R, {
|
|
6720
6722
|
label: b(E)("menu.common.actions.cancel"),
|
|
6721
6723
|
variant: "tertiary",
|
|
6722
6724
|
onClick: v[3] || (v[3] = (A) => b(n).close())
|
|
6723
6725
|
}, null, 8, ["label"]),
|
|
6724
|
-
R
|
|
6726
|
+
O(R, {
|
|
6725
6727
|
label: b(E)("menu.common.actions.confirm"),
|
|
6726
6728
|
onClick: v[4] || (v[4] = (A) => _())
|
|
6727
6729
|
}, null, 8, ["label"])
|
|
@@ -6732,9 +6734,9 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6732
6734
|
B("p", $c, Ee(b(E)("menu.common.empty.no_group.title")), 1),
|
|
6733
6735
|
B("p", Gc, Ee(b(E)("menu.common.empty.no_group.subtitle")), 1)
|
|
6734
6736
|
]),
|
|
6735
|
-
|
|
6737
|
+
O(b(co), null, {
|
|
6736
6738
|
default: W(({ trigger: A }) => [
|
|
6737
|
-
R
|
|
6739
|
+
O(R, {
|
|
6738
6740
|
label: b(E)("menu.common.actions.add_group"),
|
|
6739
6741
|
icon: "add",
|
|
6740
6742
|
onClick: (T) => A()
|
|
@@ -6805,7 +6807,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6805
6807
|
}
|
|
6806
6808
|
const w = V(() => E(d.value).reduce((M, P) => (M[P._id] = {
|
|
6807
6809
|
name: P.name,
|
|
6808
|
-
type:
|
|
6810
|
+
type: On(a.items, P.items)
|
|
6809
6811
|
}, M), {})), v = V(() => [...Object.entries(w.value).map(([M, {
|
|
6810
6812
|
name: P,
|
|
6811
6813
|
type: z
|
|
@@ -6837,20 +6839,20 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6837
6839
|
size: 200,
|
|
6838
6840
|
cell: (M) => {
|
|
6839
6841
|
const P = M.row.original._id, D = _(P).join(", ");
|
|
6840
|
-
return
|
|
6842
|
+
return O(Be.FmTooltip, {
|
|
6841
6843
|
"z-index": 51,
|
|
6842
6844
|
class: "flex",
|
|
6843
6845
|
variant: "rich",
|
|
6844
6846
|
placement: "top"
|
|
6845
6847
|
}, {
|
|
6846
|
-
default: () =>
|
|
6848
|
+
default: () => O("div", {
|
|
6847
6849
|
class: "line-clamp-2 break-all"
|
|
6848
6850
|
}, [D]),
|
|
6849
|
-
content: () =>
|
|
6851
|
+
content: () => O("div", {
|
|
6850
6852
|
class: "py-12 px-16 space-y-12"
|
|
6851
|
-
}, [
|
|
6853
|
+
}, [O("p", {
|
|
6852
6854
|
class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600"
|
|
6853
|
-
}, [l("menu.group.list.columns.products")]),
|
|
6855
|
+
}, [l("menu.group.list.columns.products")]), O("div", {
|
|
6854
6856
|
class: "flex flex-wrap gap-8"
|
|
6855
6857
|
}, [D])])
|
|
6856
6858
|
});
|
|
@@ -6868,7 +6870,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6868
6870
|
icon: "delete",
|
|
6869
6871
|
variant: "tertiary",
|
|
6870
6872
|
textColor: "neutral-gray-400",
|
|
6871
|
-
onClick:
|
|
6873
|
+
onClick: Rn(async () => {
|
|
6872
6874
|
T(P);
|
|
6873
6875
|
}, ["stop", "prevent"])
|
|
6874
6876
|
}), Fe(Nc, {
|
|
@@ -6893,7 +6895,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6893
6895
|
}]), k = V(() => ({
|
|
6894
6896
|
type: a.version !== q.F_MENU_VERSION.enum.v4
|
|
6895
6897
|
}));
|
|
6896
|
-
function
|
|
6898
|
+
function R() {
|
|
6897
6899
|
r.open({
|
|
6898
6900
|
title: l("menu.product.form.group.add"),
|
|
6899
6901
|
contentComponent: Bc,
|
|
@@ -6903,7 +6905,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6903
6905
|
}).onPrimary((M) => {
|
|
6904
6906
|
var P;
|
|
6905
6907
|
for (const z of M)
|
|
6906
|
-
if (
|
|
6908
|
+
if (Ha(a.state.menu, z, n.form._id)) {
|
|
6907
6909
|
const D = (P = w.value[z]) == null ? void 0 : P.name;
|
|
6908
6910
|
i.open({
|
|
6909
6911
|
type: "error",
|
|
@@ -6987,14 +6989,14 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6987
6989
|
title: b(l)("menu.product.form.group.title"),
|
|
6988
6990
|
"sub-title": b(l)("menu.product.form.group.subtitle")
|
|
6989
6991
|
}, {
|
|
6990
|
-
"append-title": W(() => [
|
|
6992
|
+
"append-title": W(() => [O(z, {
|
|
6991
6993
|
class: "flex-shrink-0",
|
|
6992
6994
|
label: b(l)("menu.product.form.group.add"),
|
|
6993
6995
|
"prepend-icon": "add",
|
|
6994
6996
|
variant: "secondary",
|
|
6995
|
-
onClick:
|
|
6997
|
+
onClick: R
|
|
6996
6998
|
}, null, 8, ["label"])]),
|
|
6997
|
-
default: W(() => [
|
|
6999
|
+
default: W(() => [O(ua, null, {
|
|
6998
7000
|
default: W(() => {
|
|
6999
7001
|
var C;
|
|
7000
7002
|
return [((C = p.value) == null ? void 0 : C.length) > 0 ? (U(), J(D, {
|
|
@@ -7059,10 +7061,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7059
7061
|
return s(i.form.inventoryBindings || [], ((_ = i.form.variant) == null ? void 0 : _.variantCombinations) || [], u.value, o.variants);
|
|
7060
7062
|
});
|
|
7061
7063
|
function d(_, w) {
|
|
7062
|
-
var
|
|
7064
|
+
var R, A;
|
|
7063
7065
|
let v = at.clone(i.form);
|
|
7064
7066
|
const h = v.variant;
|
|
7065
|
-
if ((((
|
|
7067
|
+
if ((((R = h == null ? void 0 : h.variantCombinations) == null ? void 0 : R.length) ?? 0) > 0 && h) {
|
|
7066
7068
|
const T = h.variantCombinations.findIndex((x) => x.combinationKey === _);
|
|
7067
7069
|
if (T < 0) return;
|
|
7068
7070
|
const y = at.clone(h.variantCombinations);
|
|
@@ -7110,9 +7112,9 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7110
7112
|
enableSorting: !1,
|
|
7111
7113
|
cell: (_) => {
|
|
7112
7114
|
const w = _.row.original;
|
|
7113
|
-
return l.value ?
|
|
7115
|
+
return l.value ? O("div", {
|
|
7114
7116
|
class: "flex items-center justify-end"
|
|
7115
|
-
}, [
|
|
7117
|
+
}, [O(li, {
|
|
7116
7118
|
name: w.name,
|
|
7117
7119
|
initialValue: w.bindings ?? [],
|
|
7118
7120
|
title: n("menu.inventory.dialog.title", {
|
|
@@ -7124,8 +7126,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7124
7126
|
}, {
|
|
7125
7127
|
default: ({
|
|
7126
7128
|
trigger: v
|
|
7127
|
-
}) =>
|
|
7128
|
-
variant:
|
|
7129
|
+
}) => O(K("fm-button"), {
|
|
7130
|
+
variant: Ot.Tertiary,
|
|
7129
7131
|
prependIcon: "edit",
|
|
7130
7132
|
textColor: ft.NeutralGray400,
|
|
7131
7133
|
onClick: v
|
|
@@ -7161,7 +7163,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7161
7163
|
"onUpdate:inventory": (h) => {
|
|
7162
7164
|
d(v._id, h);
|
|
7163
7165
|
}
|
|
7164
|
-
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)),
|
|
7166
|
+
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), O(b(Za), {
|
|
7165
7167
|
"row-data": m.value,
|
|
7166
7168
|
onRowClick: p
|
|
7167
7169
|
}, null, 8, ["row-data"])])])]),
|
|
@@ -7193,8 +7195,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7193
7195
|
emits: ["update:form"],
|
|
7194
7196
|
setup(e, { emit: t }) {
|
|
7195
7197
|
const n = e, i = rn(), a = Me(), o = So(), { t: r } = ke(), l = t, s = V(() => a.rules.item), u = V(() => {
|
|
7196
|
-
var
|
|
7197
|
-
const h = n.isOverride ? ((
|
|
7198
|
+
var R, A;
|
|
7199
|
+
const h = n.isOverride ? ((R = n.fallback) == null ? void 0 : R.unit) ?? ((A = n.fallback) == null ? void 0 : A.perXUnit) : void 0, k = n.form.unit ?? n.form.perXUnit ?? h;
|
|
7198
7200
|
return k != null;
|
|
7199
7201
|
}), m = (h) => {
|
|
7200
7202
|
l("update:form", "unit", h ? "" : void 0), l("update:form", "perXUnit", h ? 0 : void 0);
|
|
@@ -7216,8 +7218,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7216
7218
|
}
|
|
7217
7219
|
function E(h) {
|
|
7218
7220
|
if (!h && n.form.perXUnit) {
|
|
7219
|
-
const [k,
|
|
7220
|
-
if (
|
|
7221
|
+
const [k, R] = n.form.perXUnit.toString().split(".");
|
|
7222
|
+
if (R && R.length > 4) {
|
|
7221
7223
|
const T = (typeof n.form.perXUnit == "string" ? parseFloat(n.form.perXUnit) : n.form.perXUnit).toFixed(4);
|
|
7222
7224
|
l("update:form", "perXUnit", parseFloat(T));
|
|
7223
7225
|
}
|
|
@@ -7225,7 +7227,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7225
7227
|
}
|
|
7226
7228
|
const _ = oe(!1);
|
|
7227
7229
|
async function w() {
|
|
7228
|
-
var k,
|
|
7230
|
+
var k, R, A, T, y, x, S;
|
|
7229
7231
|
if (!(n.form.name || "")) {
|
|
7230
7232
|
const I = document.getElementById("product-name");
|
|
7231
7233
|
if (I) {
|
|
@@ -7248,7 +7250,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7248
7250
|
We,
|
|
7249
7251
|
{
|
|
7250
7252
|
name: n.form.name || "",
|
|
7251
|
-
lat: (A = (
|
|
7253
|
+
lat: (A = (R = (k = i.currentRestaurant) == null ? void 0 : k.value) == null ? void 0 : R.profile.address.coordinates) == null ? void 0 : A[1],
|
|
7252
7254
|
lon: (x = (y = (T = i.currentRestaurant) == null ? void 0 : T.value) == null ? void 0 : y.profile.address.coordinates) == null ? void 0 : x[0]
|
|
7253
7255
|
},
|
|
7254
7256
|
!0
|
|
@@ -7258,11 +7260,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7258
7260
|
}
|
|
7259
7261
|
}
|
|
7260
7262
|
const v = V(() => {
|
|
7261
|
-
var h;
|
|
7262
|
-
return ((h = a.currentCatalog) == null ? void 0 : h.usePriceTiers) ?? [];
|
|
7263
|
+
var h, k;
|
|
7264
|
+
return ((h = a.currentCatalog) == null ? void 0 : h.priceTierRules) ?? ((k = a.currentCatalog) == null ? void 0 : k.usePriceTiers) ?? [];
|
|
7263
7265
|
});
|
|
7264
7266
|
return (h, k) => {
|
|
7265
|
-
const
|
|
7267
|
+
const R = K("fm-select"), A = K("FmButton"), T = K("fm-checkbox"), y = K("fm-text-field"), x = fo("tooltip");
|
|
7266
7268
|
return U(), J(ut, {
|
|
7267
7269
|
title: b(r)("menu.product.form.price.title")
|
|
7268
7270
|
}, {
|
|
@@ -7270,7 +7272,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7270
7272
|
var S;
|
|
7271
7273
|
return [
|
|
7272
7274
|
B("div", Yc, [
|
|
7273
|
-
|
|
7275
|
+
O(Ft, {
|
|
7274
7276
|
disable: v.value.length > 0 && b(a).currentCatalog && !b(a).currentScheduler,
|
|
7275
7277
|
min: 0,
|
|
7276
7278
|
"model-value": h.form.price || null,
|
|
@@ -7284,7 +7286,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7284
7286
|
"onUpdate:modelValue": k[0] || (k[0] = (I) => I && l("update:form", "price", I))
|
|
7285
7287
|
}, {
|
|
7286
7288
|
append: W(() => [
|
|
7287
|
-
Xt(
|
|
7289
|
+
Xt(O(sa, {
|
|
7288
7290
|
"pure-styling": "",
|
|
7289
7291
|
onClick: w
|
|
7290
7292
|
}, null, 512), [
|
|
@@ -7293,7 +7295,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7293
7295
|
]),
|
|
7294
7296
|
_: 1
|
|
7295
7297
|
}, 8, ["disable", "model-value", "placeholder", "rules", "label"]),
|
|
7296
|
-
R
|
|
7298
|
+
O(R, {
|
|
7297
7299
|
disabled: !s.value.tax || !d.value.systemCode,
|
|
7298
7300
|
items: d.value.countryTaxOptions,
|
|
7299
7301
|
label: d.value.systemCode ? b(r)("menu.product.form.price.fields.tax.label_with_code", {
|
|
@@ -7312,7 +7314,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7312
7314
|
description: b(r)("menu.price_tier.description")
|
|
7313
7315
|
}, {
|
|
7314
7316
|
append: W(() => [
|
|
7315
|
-
|
|
7317
|
+
O(A, {
|
|
7316
7318
|
label: b(r)("menu.price_tier.add_price_group"),
|
|
7317
7319
|
icon: "add",
|
|
7318
7320
|
variant: "secondary",
|
|
@@ -7333,14 +7335,14 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7333
7335
|
}),
|
|
7334
7336
|
_: 1
|
|
7335
7337
|
}, 8, ["label", "description"])) : se("", !0),
|
|
7336
|
-
|
|
7338
|
+
O(bt, {
|
|
7337
7339
|
label: b(r)("menu.product.form.price.settings.title")
|
|
7338
7340
|
}, {
|
|
7339
7341
|
default: W(() => {
|
|
7340
7342
|
var I, N, M;
|
|
7341
7343
|
return [
|
|
7342
7344
|
B("div", Xc, [
|
|
7343
|
-
|
|
7345
|
+
O(T, {
|
|
7344
7346
|
disabled: !s.value.openPrice || h.isAddon,
|
|
7345
7347
|
"model-value": h.form.openPrice ?? ((I = h.fallback) == null ? void 0 : I.openPrice) ?? !1,
|
|
7346
7348
|
value: h.form.openPrice,
|
|
@@ -7349,7 +7351,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7349
7351
|
"onUpdate:modelValue": k[3] || (k[3] = (P) => l("update:form", "openPrice", P))
|
|
7350
7352
|
}, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
|
|
7351
7353
|
B("div", qc, [
|
|
7352
|
-
|
|
7354
|
+
O(T, {
|
|
7353
7355
|
disabled: !s.value.unit || h.isAddon,
|
|
7354
7356
|
"model-value": u.value,
|
|
7355
7357
|
value: u.value,
|
|
@@ -7360,7 +7362,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7360
7362
|
u.value ? (U(), re("div", Jc, [
|
|
7361
7363
|
B("p", Zc, Ee(b(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
|
|
7362
7364
|
B("div", Qc, [
|
|
7363
|
-
|
|
7365
|
+
O(y, {
|
|
7364
7366
|
disabled: !s.value.unit,
|
|
7365
7367
|
"model-value": h.form.perXUnit || ((N = h.fallback) == null ? void 0 : N.perXUnit) || null,
|
|
7366
7368
|
rules: [
|
|
@@ -7375,7 +7377,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7375
7377
|
}, null, 8, ["disabled", "model-value", "rules", "placeholder"])
|
|
7376
7378
|
]),
|
|
7377
7379
|
B("div", ed, [
|
|
7378
|
-
|
|
7380
|
+
O(y, {
|
|
7379
7381
|
disabled: !s.value.unit,
|
|
7380
7382
|
"model-value": h.form.unit || ((M = h.fallback) == null ? void 0 : M.unit) || null,
|
|
7381
7383
|
rules: [
|
|
@@ -7388,7 +7390,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7388
7390
|
])) : se("", !0)
|
|
7389
7391
|
]),
|
|
7390
7392
|
s.value.costing ? (U(), re("div", td, [
|
|
7391
|
-
|
|
7393
|
+
O(T, {
|
|
7392
7394
|
"model-value": !!h.form.costing,
|
|
7393
7395
|
value: !!h.form.costing,
|
|
7394
7396
|
label: b(r)("menu.product.form.price.settings.track_costing.label"),
|
|
@@ -7396,7 +7398,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7396
7398
|
}, null, 8, ["model-value", "value", "label"]),
|
|
7397
7399
|
h.form.costing ? (U(), re("div", nd, [
|
|
7398
7400
|
B("div", id, [
|
|
7399
|
-
|
|
7401
|
+
O(Ft, {
|
|
7400
7402
|
class: "w-full",
|
|
7401
7403
|
min: 0,
|
|
7402
7404
|
"model-value": h.form.costing || null,
|
|
@@ -7408,7 +7410,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7408
7410
|
])) : se("", !0)
|
|
7409
7411
|
])) : se("", !0),
|
|
7410
7412
|
s.value.minPrice ? (U(), re("div", od, [
|
|
7411
|
-
|
|
7413
|
+
O(T, {
|
|
7412
7414
|
disabled: !s.value.minPrice || h.isAddon,
|
|
7413
7415
|
"model-value": !!h.form.minPrice,
|
|
7414
7416
|
value: !!h.form.minPrice,
|
|
@@ -7447,7 +7449,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7447
7449
|
applyProduct: { type: Boolean }
|
|
7448
7450
|
},
|
|
7449
7451
|
setup(e) {
|
|
7450
|
-
const { t } = ke(), n = e, i =
|
|
7452
|
+
const { t } = ke(), n = e, i = Rt(kt(Qe())), a = V(
|
|
7451
7453
|
() => n.initialValue ? t("menu.print_dept.update") : t("menu.print_dept.add")
|
|
7452
7454
|
), o = V(
|
|
7453
7455
|
() => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
|
|
@@ -7491,7 +7493,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7491
7493
|
const p = K("fm-text-field"), E = K("fm-button"), _ = K("fm-side-sheet");
|
|
7492
7494
|
return U(), re(Ve, null, [
|
|
7493
7495
|
Ce(d.$slots, "default", { trigger: u }),
|
|
7494
|
-
|
|
7496
|
+
O(_, {
|
|
7495
7497
|
id: "variant-form",
|
|
7496
7498
|
modelValue: s.value,
|
|
7497
7499
|
"onUpdate:modelValue": c[3] || (c[3] = (w) => s.value = w),
|
|
@@ -7508,14 +7510,14 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7508
7510
|
]),
|
|
7509
7511
|
"side-sheet-footer": W(() => [
|
|
7510
7512
|
B("div", cd, [
|
|
7511
|
-
|
|
7513
|
+
O(E, {
|
|
7512
7514
|
label: o.value,
|
|
7513
7515
|
loading: l.value,
|
|
7514
7516
|
size: "lg",
|
|
7515
7517
|
type: "submit",
|
|
7516
7518
|
variant: "primary"
|
|
7517
7519
|
}, null, 8, ["label", "loading"]),
|
|
7518
|
-
|
|
7520
|
+
O(E, {
|
|
7519
7521
|
label: b(t)("menu.common.actions.cancel"),
|
|
7520
7522
|
size: "lg",
|
|
7521
7523
|
variant: "tertiary",
|
|
@@ -7525,7 +7527,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7525
7527
|
]),
|
|
7526
7528
|
default: W(() => [
|
|
7527
7529
|
B("div", ud, [
|
|
7528
|
-
|
|
7530
|
+
O(p, {
|
|
7529
7531
|
modelValue: r.value.name,
|
|
7530
7532
|
"onUpdate:modelValue": c[0] || (c[0] = (w) => r.value.name = w),
|
|
7531
7533
|
rules: [
|
|
@@ -7605,8 +7607,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7605
7607
|
});
|
|
7606
7608
|
}
|
|
7607
7609
|
function _(v, h) {
|
|
7608
|
-
var
|
|
7609
|
-
let k = [...((A = (
|
|
7610
|
+
var R, A;
|
|
7611
|
+
let k = [...((A = (R = n.form) == null ? void 0 : R.print) == null ? void 0 : A.department) ?? []];
|
|
7610
7612
|
h && !k.includes(v) ? k = [...k, v] : h || (k = k.filter((T) => T !== v)), o("update:form", "print", {
|
|
7611
7613
|
...r(),
|
|
7612
7614
|
...n.form.print,
|
|
@@ -7629,7 +7631,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7629
7631
|
() => s.value.length,
|
|
7630
7632
|
() => _(s.value[s.value.length - 1]._id, !0)
|
|
7631
7633
|
), (v, h) => {
|
|
7632
|
-
const k = K("fm-switch"),
|
|
7634
|
+
const k = K("fm-switch"), R = K("fm-radio"), A = K("fm-radio-group"), T = K("fm-button"), y = K("fm-checkbox");
|
|
7633
7635
|
return U(), J(ut, {
|
|
7634
7636
|
title: b(a)("menu.product.form.print.title")
|
|
7635
7637
|
}, {
|
|
@@ -7643,7 +7645,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7643
7645
|
default: W(() => {
|
|
7644
7646
|
var S;
|
|
7645
7647
|
return [
|
|
7646
|
-
|
|
7648
|
+
O(k, {
|
|
7647
7649
|
"model-value": !((S = v.form.print) != null && S.toRoot),
|
|
7648
7650
|
label: b(a)("menu.product.form.print.config.group_parent.label"),
|
|
7649
7651
|
"label-placement": "right",
|
|
@@ -7654,14 +7656,14 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7654
7656
|
}),
|
|
7655
7657
|
_: 1
|
|
7656
7658
|
}, 8, ["label"])) : se("", !0),
|
|
7657
|
-
|
|
7659
|
+
O(A, {
|
|
7658
7660
|
label: b(a)("menu.product.form.print.kds.label"),
|
|
7659
7661
|
"model-value": ((x = v.form.print) == null ? void 0 : x.sequential) ?? !1,
|
|
7660
7662
|
"onUpdate:modelValue": h[1] || (h[1] = (S) => p(S))
|
|
7661
7663
|
}, {
|
|
7662
7664
|
default: W(() => [
|
|
7663
7665
|
B("div", pd, [
|
|
7664
|
-
(U(!0), re(Ve, null, rt(w.value, (S, I) => (U(), J(
|
|
7666
|
+
(U(!0), re(Ve, null, rt(w.value, (S, I) => (U(), J(R, {
|
|
7665
7667
|
key: I,
|
|
7666
7668
|
label: S.label,
|
|
7667
7669
|
sublabel: S.description,
|
|
@@ -7671,7 +7673,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7671
7673
|
]),
|
|
7672
7674
|
_: 1
|
|
7673
7675
|
}, 8, ["label", "model-value"]),
|
|
7674
|
-
|
|
7676
|
+
O(bt, {
|
|
7675
7677
|
label: b(a)("menu.product.form.print.routes.label")
|
|
7676
7678
|
}, {
|
|
7677
7679
|
default: W(() => [
|
|
@@ -7694,11 +7696,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7694
7696
|
class: "handle",
|
|
7695
7697
|
"prepend-icon": "drag_handle",
|
|
7696
7698
|
variant: "tertiary",
|
|
7697
|
-
onClick: h[2] || (h[2] =
|
|
7699
|
+
onClick: h[2] || (h[2] = Rn(() => {
|
|
7698
7700
|
}, ["stop"]))
|
|
7699
7701
|
}, null, 8, ["disabled"])) : se("", !0)
|
|
7700
7702
|
]),
|
|
7701
|
-
|
|
7703
|
+
O(y, {
|
|
7702
7704
|
id: S,
|
|
7703
7705
|
"data-checked": (P = (M = n.form.print) == null ? void 0 : M.department) == null ? void 0 : P.includes(S),
|
|
7704
7706
|
label: d.value[S],
|
|
@@ -7712,11 +7714,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7712
7714
|
}),
|
|
7713
7715
|
_: 1
|
|
7714
7716
|
}, 8, ["item-key", "model-value"])) : se("", !0),
|
|
7715
|
-
|
|
7717
|
+
O(b(md), { "apply-product": !1 }, {
|
|
7716
7718
|
default: W(({ trigger: S }) => [
|
|
7717
7719
|
B("div", gd, [
|
|
7718
|
-
|
|
7719
|
-
variant: b(
|
|
7720
|
+
O(T, {
|
|
7721
|
+
variant: b(Ot).Secondary,
|
|
7720
7722
|
label: b(a)("menu.product.form.print.routes.add"),
|
|
7721
7723
|
"prepend-icon": "add",
|
|
7722
7724
|
onClick: S
|
|
@@ -7801,7 +7803,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7801
7803
|
setup(e, {
|
|
7802
7804
|
emit: t
|
|
7803
7805
|
}) {
|
|
7804
|
-
const n = e, i = Me(), a = V(() => i.rules.item), o =
|
|
7806
|
+
const n = e, i = Me(), a = V(() => i.rules.item), o = Rt(kt(Qe())), {
|
|
7805
7807
|
t: r
|
|
7806
7808
|
} = ke(), l = t, {
|
|
7807
7809
|
hasVariant: s,
|
|
@@ -7870,7 +7872,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7870
7872
|
title: b(r)("menu.product.form.takeaway.title"),
|
|
7871
7873
|
"sub-title": b(r)("menu.product.form.takeaway.subtitle")
|
|
7872
7874
|
}, {
|
|
7873
|
-
default: W(() => [
|
|
7875
|
+
default: W(() => [O(E, {
|
|
7874
7876
|
columnDefs: d.value,
|
|
7875
7877
|
"page-size": b(u).length,
|
|
7876
7878
|
"row-data": b(u),
|
|
@@ -7886,7 +7888,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7886
7888
|
}, wd = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Ed = { class: "flex justify-between pb-16" }, Sd = { class: "flex gap-8" }, kd = {
|
|
7887
7889
|
key: 1,
|
|
7888
7890
|
class: "flex flex-col items-center space-y-16"
|
|
7889
|
-
},
|
|
7891
|
+
}, Rd = { class: "flex flex-col items-center space-y-4 w-full" }, Od = { class: "fm-typo-en-title-sm-600" }, Cd = { class: "text-fm-color-typo-secondary" }, Ad = /* @__PURE__ */ ge({
|
|
7890
7892
|
__name: "SelectVariantDialog",
|
|
7891
7893
|
props: {
|
|
7892
7894
|
selectedVariants: {}
|
|
@@ -7903,7 +7905,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7903
7905
|
const p = K("FmSearch"), E = K("FmCheckbox"), _ = K("FmButton");
|
|
7904
7906
|
return l.value.length > 0 ? (U(), re("div", yd, [
|
|
7905
7907
|
B("div", null, [
|
|
7906
|
-
|
|
7908
|
+
O(p, {
|
|
7907
7909
|
autofocus: "",
|
|
7908
7910
|
modelValue: u.value,
|
|
7909
7911
|
"onUpdate:modelValue": c[0] || (c[0] = (w) => u.value = w),
|
|
@@ -7915,7 +7917,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7915
7917
|
(U(!0), re(Ve, null, rt(l.value, (w) => (U(), re("div", {
|
|
7916
7918
|
key: w.value
|
|
7917
7919
|
}, [
|
|
7918
|
-
Xt(
|
|
7920
|
+
Xt(O(E, {
|
|
7919
7921
|
modelValue: s.value,
|
|
7920
7922
|
"onUpdate:modelValue": [
|
|
7921
7923
|
c[1] || (c[1] = (v) => s.value = v),
|
|
@@ -7930,7 +7932,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7930
7932
|
])
|
|
7931
7933
|
]),
|
|
7932
7934
|
B("div", Ed, [
|
|
7933
|
-
|
|
7935
|
+
O(b(Oi), null, {
|
|
7934
7936
|
default: W(({ trigger: w }) => [
|
|
7935
7937
|
b(a).rules.item.variant ? (U(), J(_, {
|
|
7936
7938
|
key: 0,
|
|
@@ -7943,25 +7945,25 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7943
7945
|
_: 1
|
|
7944
7946
|
}),
|
|
7945
7947
|
B("div", Sd, [
|
|
7946
|
-
|
|
7948
|
+
O(_, {
|
|
7947
7949
|
label: b(o)("menu.common.actions.cancel"),
|
|
7948
7950
|
variant: "tertiary",
|
|
7949
7951
|
onClick: c[3] || (c[3] = (w) => b(t).close())
|
|
7950
7952
|
}, null, 8, ["label"]),
|
|
7951
|
-
|
|
7953
|
+
O(_, {
|
|
7952
7954
|
label: b(o)("menu.common.actions.confirm"),
|
|
7953
7955
|
onClick: c[4] || (c[4] = (w) => m())
|
|
7954
7956
|
}, null, 8, ["label"])
|
|
7955
7957
|
])
|
|
7956
7958
|
])
|
|
7957
7959
|
])) : (U(), re("div", kd, [
|
|
7958
|
-
B("div",
|
|
7959
|
-
B("p",
|
|
7960
|
+
B("div", Rd, [
|
|
7961
|
+
B("p", Od, Ee(b(o)("menu.common.empty.no_variant.title")), 1),
|
|
7960
7962
|
B("p", Cd, Ee(b(o)("menu.common.empty.no_variant.subtitle")), 1)
|
|
7961
7963
|
]),
|
|
7962
|
-
|
|
7964
|
+
O(b(Oi), null, {
|
|
7963
7965
|
default: W(({ trigger: w }) => [
|
|
7964
|
-
|
|
7966
|
+
O(_, {
|
|
7965
7967
|
label: b(o)("menu.variant.add"),
|
|
7966
7968
|
icon: "add",
|
|
7967
7969
|
onClick: (v) => w()
|
|
@@ -8116,7 +8118,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8116
8118
|
}
|
|
8117
8119
|
c("replace:form", a.initDynamicGroupItem(M));
|
|
8118
8120
|
}
|
|
8119
|
-
async function
|
|
8121
|
+
async function R(S, I, N) {
|
|
8120
8122
|
const M = at.clone(n.form);
|
|
8121
8123
|
M.variant.variantCombinations[S][I] = N, p([{
|
|
8122
8124
|
key: "variant",
|
|
@@ -8124,8 +8126,8 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8124
8126
|
}]);
|
|
8125
8127
|
}
|
|
8126
8128
|
const A = V(() => {
|
|
8127
|
-
var S;
|
|
8128
|
-
return ((S = i.currentCatalog) == null ? void 0 : S.usePriceTiers) ?? [];
|
|
8129
|
+
var S, I;
|
|
8130
|
+
return ((S = i.currentCatalog) == null ? void 0 : S.priceTierRules) ?? ((I = i.currentCatalog) == null ? void 0 : I.usePriceTiers) ?? [];
|
|
8129
8131
|
}), T = V(() => [{
|
|
8130
8132
|
accessorKey: "combinationKey",
|
|
8131
8133
|
header: () => l("menu.product.form.variant.columns.variant"),
|
|
@@ -8138,11 +8140,11 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8138
8140
|
cell: (S) => {
|
|
8139
8141
|
var z, D;
|
|
8140
8142
|
const I = S.getValue(), P = ((z = S.row.original.fallback) == null ? void 0 : z.code) ?? n.form.code ?? ((D = n.fallback) == null ? void 0 : D.code);
|
|
8141
|
-
return
|
|
8143
|
+
return O(Be.FmTextField, {
|
|
8142
8144
|
modelValue: I,
|
|
8143
8145
|
placeholder: P || l("menu.product.form.variant.placeholders.no_code"),
|
|
8144
8146
|
"onUpdate:model-value": (C) => {
|
|
8145
|
-
|
|
8147
|
+
R(S.row.index, "code", la(C, !0));
|
|
8146
8148
|
}
|
|
8147
8149
|
}, null);
|
|
8148
8150
|
}
|
|
@@ -8153,14 +8155,14 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8153
8155
|
cell: (S) => {
|
|
8154
8156
|
var P, z;
|
|
8155
8157
|
const I = S.getValue(), M = (P = S.row.original.fallback) == null ? void 0 : P.orderFrom;
|
|
8156
|
-
return
|
|
8158
|
+
return O(Ei, {
|
|
8157
8159
|
modelValue: I,
|
|
8158
8160
|
fallback: n.form.orderFrom ?? M ?? ((z = n.fallback) == null ? void 0 : z.orderFrom),
|
|
8159
8161
|
disable: !s.value.orderFrom,
|
|
8160
8162
|
required: s.value.orderFrom && s.value.orderFromActiveOnly,
|
|
8161
8163
|
editActiveOnly: s.value.orderFromActiveOnly || !1,
|
|
8162
8164
|
"onUpdate:model-value": (D) => {
|
|
8163
|
-
|
|
8165
|
+
R(S.row.index, "orderFrom", D);
|
|
8164
8166
|
},
|
|
8165
8167
|
label: "",
|
|
8166
8168
|
defaultLabel: "Follow general"
|
|
@@ -8174,22 +8176,22 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8174
8176
|
cell: (S) => {
|
|
8175
8177
|
var z, D, C;
|
|
8176
8178
|
const I = S.getValue(), N = S.row.original, P = ((z = N.fallback) == null ? void 0 : z.price) ?? n.form.price ?? ((D = n.fallback) == null ? void 0 : D.price);
|
|
8177
|
-
return
|
|
8179
|
+
return O("div", {
|
|
8178
8180
|
class: "flex items-center gap-8"
|
|
8179
|
-
}, [
|
|
8181
|
+
}, [O(Ft, {
|
|
8180
8182
|
disable: A.value.length > 0 && i.currentCatalog && !i.currentScheduler,
|
|
8181
8183
|
placeholder: P ? Gt(P) : void 0,
|
|
8182
8184
|
modelValue: I,
|
|
8183
8185
|
min: 0,
|
|
8184
8186
|
"onUpdate:model-value": ($) => {
|
|
8185
|
-
|
|
8187
|
+
R(S.row.index, "price", $);
|
|
8186
8188
|
},
|
|
8187
8189
|
nullable: !0,
|
|
8188
8190
|
showCurrency: !1
|
|
8189
|
-
}, null), i.isV4 && !n.isOverride &&
|
|
8191
|
+
}, null), i.isV4 && !n.isOverride && O(da, {
|
|
8190
8192
|
"price-tiers": N.priceTiers,
|
|
8191
8193
|
fallback: (C = N.fallback) == null ? void 0 : C.priceTiers,
|
|
8192
|
-
"onUpdate:price-tiers": ($) =>
|
|
8194
|
+
"onUpdate:price-tiers": ($) => R(S.row.index, "priceTiers", $)
|
|
8193
8195
|
}, null)]);
|
|
8194
8196
|
}
|
|
8195
8197
|
}, {
|
|
@@ -8199,12 +8201,12 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8199
8201
|
cell: (S) => {
|
|
8200
8202
|
var z, D, C;
|
|
8201
8203
|
const I = S.getValue(), N = S.row.original, P = ((z = N.fallback) == null ? void 0 : z.minPrice) ?? n.form.minPrice ?? ((D = n.fallback) == null ? void 0 : D.minPrice);
|
|
8202
|
-
return
|
|
8204
|
+
return O(Ft, {
|
|
8203
8205
|
placeholder: P ? Gt(P) : void 0,
|
|
8204
8206
|
modelValue: I,
|
|
8205
8207
|
max: Ge.Dinero.fromFdoDinero(N.price ?? ((C = N.fallback) == null ? void 0 : C.price) ?? Ge.Dinero.zero().toObject()).toUnit(),
|
|
8206
8208
|
"onUpdate:model-value": ($) => {
|
|
8207
|
-
|
|
8209
|
+
R(S.row.index, "minPrice", $);
|
|
8208
8210
|
},
|
|
8209
8211
|
nullable: !0,
|
|
8210
8212
|
showCurrency: !1
|
|
@@ -8233,13 +8235,13 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8233
8235
|
}, null, 8, ["label"])) : se("", !0)]),
|
|
8234
8236
|
default: W(() => {
|
|
8235
8237
|
var D;
|
|
8236
|
-
return [B("div", Id, [
|
|
8238
|
+
return [B("div", Id, [O(P, {
|
|
8237
8239
|
"model-value": (D = S.form.variant) == null ? void 0 : D.variantGroupIds,
|
|
8238
8240
|
rules: [x]
|
|
8239
8241
|
}, {
|
|
8240
8242
|
default: W(() => {
|
|
8241
8243
|
var C;
|
|
8242
|
-
return [
|
|
8244
|
+
return [O(b(ko), {
|
|
8243
8245
|
"model-value": ((C = S.form.variant) == null ? void 0 : C.variantGroupIds) ?? [],
|
|
8244
8246
|
class: "space-y-16",
|
|
8245
8247
|
group: "variants",
|
|
@@ -8251,14 +8253,14 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8251
8253
|
element: $
|
|
8252
8254
|
}) => {
|
|
8253
8255
|
var le;
|
|
8254
|
-
return [B("div", Td, [
|
|
8255
|
-
variant: b(
|
|
8256
|
+
return [B("div", Td, [O(N, {
|
|
8257
|
+
variant: b(Ot).Tertiary,
|
|
8256
8258
|
class: "handle",
|
|
8257
8259
|
"prepend-icon": "drag_handle"
|
|
8258
|
-
}, null, 8, ["variant"]), B("div", Md, [B("p", Dd, Ee((le = d.value[$]) == null ? void 0 : le.name), 1),
|
|
8260
|
+
}, null, 8, ["variant"]), B("div", Md, [B("p", Dd, Ee((le = d.value[$]) == null ? void 0 : le.name), 1), O(M, {
|
|
8259
8261
|
class: "cursor-pointer",
|
|
8260
8262
|
name: "close",
|
|
8261
|
-
onClick:
|
|
8263
|
+
onClick: Rn((ce) => {
|
|
8262
8264
|
var we;
|
|
8263
8265
|
return k(((we = S.form.variant) == null ? void 0 : we.variantGroupIds.filter((G) => G !== $)) ?? []);
|
|
8264
8266
|
}, ["stop"])
|
|
@@ -8268,7 +8270,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8268
8270
|
}, 8, ["model-value"])];
|
|
8269
8271
|
}),
|
|
8270
8272
|
_: 1
|
|
8271
|
-
}, 8, ["model-value", "rules"]),
|
|
8273
|
+
}, 8, ["model-value", "rules"]), O(ua, null, {
|
|
8272
8274
|
default: W(() => [h.value.length ? (U(), J(z, {
|
|
8273
8275
|
key: 0,
|
|
8274
8276
|
class: "w-full",
|
|
@@ -8343,7 +8345,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8343
8345
|
() => n.initialForm,
|
|
8344
8346
|
async () => {
|
|
8345
8347
|
if (n.initialForm)
|
|
8346
|
-
E.value = await
|
|
8348
|
+
E.value = await ja(
|
|
8347
8349
|
a.state.menu,
|
|
8348
8350
|
n.initialForm._id
|
|
8349
8351
|
);
|
|
@@ -8377,9 +8379,9 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8377
8379
|
[f]: g
|
|
8378
8380
|
};
|
|
8379
8381
|
};
|
|
8380
|
-
async function
|
|
8382
|
+
async function R() {
|
|
8381
8383
|
var f, g;
|
|
8382
|
-
c.value = p.value._id && A.value ? (await
|
|
8384
|
+
c.value = p.value._id && A.value ? (await Ka(
|
|
8383
8385
|
a.mergedMenu,
|
|
8384
8386
|
[p.value],
|
|
8385
8387
|
a.state.menu,
|
|
@@ -8406,7 +8408,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8406
8408
|
h.value = null, p.value.thumbnail = null;
|
|
8407
8409
|
}
|
|
8408
8410
|
const I = V(() => {
|
|
8409
|
-
var f, g, L, Y, X, ue, F,
|
|
8411
|
+
var f, g, L, Y, X, ue, F, j, he;
|
|
8410
8412
|
return {
|
|
8411
8413
|
title: r("menu.product.form.summary.title"),
|
|
8412
8414
|
items: [
|
|
@@ -8436,7 +8438,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8436
8438
|
},
|
|
8437
8439
|
{
|
|
8438
8440
|
name: r("menu.product.form.summary.fields.inventory"),
|
|
8439
|
-
value: (ue = p.value.inventoryBindings) != null && ue.length ? String(p.value.inventoryBindings.length) : (
|
|
8441
|
+
value: (ue = p.value.inventoryBindings) != null && ue.length ? String(p.value.inventoryBindings.length) : (j = (F = c.value) == null ? void 0 : F.inventoryBindings) != null && j.length ? String(c.value.inventoryBindings.length) : "-"
|
|
8440
8442
|
},
|
|
8441
8443
|
{
|
|
8442
8444
|
name: r("menu.product.form.summary.fields.takeaway"),
|
|
@@ -8531,17 +8533,17 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8531
8533
|
}
|
|
8532
8534
|
});
|
|
8533
8535
|
}
|
|
8534
|
-
const
|
|
8536
|
+
const H = oe(!!p.value.print);
|
|
8535
8537
|
function Z(f) {
|
|
8536
8538
|
f || (p.value = { ...p.value, print: void 0 });
|
|
8537
8539
|
}
|
|
8538
|
-
const
|
|
8540
|
+
const ie = oe(
|
|
8539
8541
|
!!((wt = p.value.groups) != null && wt.length) != null || (((xt = p.value.variant) == null ? void 0 : xt.variantCombinations) || []).some((f) => {
|
|
8540
8542
|
var g;
|
|
8541
8543
|
return !!((g = f.groups) != null && g.length);
|
|
8542
8544
|
}) || !1
|
|
8543
8545
|
);
|
|
8544
|
-
function
|
|
8546
|
+
function ne(f) {
|
|
8545
8547
|
var g, L;
|
|
8546
8548
|
f || (p.value = {
|
|
8547
8549
|
...p.value,
|
|
@@ -8558,7 +8560,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8558
8560
|
Le(() => {
|
|
8559
8561
|
var f;
|
|
8560
8562
|
return (f = p.value.price) == null ? void 0 : f.amount;
|
|
8561
|
-
},
|
|
8563
|
+
}, R, { deep: !0 }), Le(
|
|
8562
8564
|
() => m.value,
|
|
8563
8565
|
(f) => {
|
|
8564
8566
|
f && (p.value = n.initialForm ? be(n.initialForm) : {
|
|
@@ -8568,7 +8570,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8568
8570
|
}
|
|
8569
8571
|
), $t(() => {
|
|
8570
8572
|
var f, g;
|
|
8571
|
-
|
|
8573
|
+
R();
|
|
8572
8574
|
try {
|
|
8573
8575
|
We.startSession({
|
|
8574
8576
|
userId: ((f = o.sessionUser.value) == null ? void 0 : f.id) || "",
|
|
@@ -8611,10 +8613,10 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8611
8613
|
}
|
|
8612
8614
|
const { isAtMost: je } = _o(), Lt = oe(null), qt = Ga(Lt);
|
|
8613
8615
|
return (f, g) => (U(), re(Ve, null, [
|
|
8614
|
-
Ce(f.$slots, "trigger", ka(
|
|
8616
|
+
Ce(f.$slots, "trigger", ka(Ra({
|
|
8615
8617
|
trigger: d
|
|
8616
8618
|
}))),
|
|
8617
|
-
|
|
8619
|
+
O(Va, {
|
|
8618
8620
|
title: l.value,
|
|
8619
8621
|
show: m.value,
|
|
8620
8622
|
"primary-action": {
|
|
@@ -8643,7 +8645,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8643
8645
|
b(je)("sm") ? se("", !0) : (U(), J(Ci, {
|
|
8644
8646
|
key: 0,
|
|
8645
8647
|
class: "fixed",
|
|
8646
|
-
style:
|
|
8648
|
+
style: Oa({
|
|
8647
8649
|
top: "85px",
|
|
8648
8650
|
left: b(qt).right + "px"
|
|
8649
8651
|
}),
|
|
@@ -8662,8 +8664,8 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8662
8664
|
"linked-status": E.value,
|
|
8663
8665
|
"onUpdate:catalogAndScheduler": w
|
|
8664
8666
|
}, null, 8, ["linked-status"])) : se("", !0),
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
+
O(za, { "menu-store": b(a) }, null, 8, ["menu-store"]),
|
|
8668
|
+
O(Tt, {
|
|
8667
8669
|
toggle: N.value,
|
|
8668
8670
|
"onUpdate:toggle": [
|
|
8669
8671
|
g[1] || (g[1] = (X) => N.value = X),
|
|
@@ -8674,7 +8676,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8674
8676
|
title: b(r)("menu.product.form.sections.general.title")
|
|
8675
8677
|
}, {
|
|
8676
8678
|
default: W(() => [
|
|
8677
|
-
|
|
8679
|
+
O(tc, {
|
|
8678
8680
|
fallback: c.value,
|
|
8679
8681
|
form: p.value,
|
|
8680
8682
|
"is-addon": T.value,
|
|
@@ -8695,7 +8697,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8695
8697
|
"sub-title": b(r)("menu.product.form.sections.tagging.subtitle")
|
|
8696
8698
|
}, {
|
|
8697
8699
|
default: W(() => [
|
|
8698
|
-
|
|
8700
|
+
O(b(vo), {
|
|
8699
8701
|
entity: "item",
|
|
8700
8702
|
"model-value": p.value.customAttributes || {},
|
|
8701
8703
|
"onUpdate:modelValue": g[3] || (g[3] = (X) => k("customAttributes", X)),
|
|
@@ -8705,7 +8707,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8705
8707
|
_: 1
|
|
8706
8708
|
}, 8, ["title", "sub-title"])) : se("", !0),
|
|
8707
8709
|
y.value ? (U(), re("div", Ld)) : se("", !0),
|
|
8708
|
-
|
|
8710
|
+
O(Tt, {
|
|
8709
8711
|
toggle: z.value,
|
|
8710
8712
|
"onUpdate:toggle": [
|
|
8711
8713
|
g[4] || (g[4] = (X) => z.value = X),
|
|
@@ -8716,7 +8718,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8716
8718
|
title: b(r)("menu.product.form.sections.price.title")
|
|
8717
8719
|
}, {
|
|
8718
8720
|
default: W(() => [
|
|
8719
|
-
|
|
8721
|
+
O(sd, {
|
|
8720
8722
|
fallback: c.value,
|
|
8721
8723
|
form: p.value,
|
|
8722
8724
|
"is-addon": T.value,
|
|
@@ -8729,9 +8731,9 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8729
8731
|
s.value.print && !A.value ? (U(), re("div", xd)) : se("", !0),
|
|
8730
8732
|
s.value.print ? (U(), J(Tt, {
|
|
8731
8733
|
key: 5,
|
|
8732
|
-
toggle:
|
|
8734
|
+
toggle: H.value,
|
|
8733
8735
|
"onUpdate:toggle": [
|
|
8734
|
-
g[7] || (g[7] = (X) =>
|
|
8736
|
+
g[7] || (g[7] = (X) => H.value = X),
|
|
8735
8737
|
g[8] || (g[8] = (X) => Z(X))
|
|
8736
8738
|
],
|
|
8737
8739
|
description: "Use a different print setting",
|
|
@@ -8739,7 +8741,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8739
8741
|
title: "Update print"
|
|
8740
8742
|
}, {
|
|
8741
8743
|
default: W(() => [
|
|
8742
|
-
|
|
8744
|
+
O(vd, {
|
|
8743
8745
|
fallback: c.value,
|
|
8744
8746
|
form: p.value,
|
|
8745
8747
|
"full-combinations": v.value,
|
|
@@ -8752,7 +8754,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8752
8754
|
_: 1
|
|
8753
8755
|
}, 8, ["toggle"])) : se("", !0),
|
|
8754
8756
|
A.value ? se("", !0) : (U(), re("div", Ud)),
|
|
8755
|
-
|
|
8757
|
+
O(Tt, {
|
|
8756
8758
|
toggle: C.value,
|
|
8757
8759
|
"onUpdate:toggle": [
|
|
8758
8760
|
g[10] || (g[10] = (X) => C.value = X),
|
|
@@ -8763,7 +8765,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8763
8765
|
title: b(r)("menu.product.form.sections.variant.title")
|
|
8764
8766
|
}, {
|
|
8765
8767
|
default: W(() => [
|
|
8766
|
-
|
|
8768
|
+
O(Fd, {
|
|
8767
8769
|
fallback: c.value,
|
|
8768
8770
|
form: p.value,
|
|
8769
8771
|
"full-combinations": v.value,
|
|
@@ -8778,17 +8780,17 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8778
8780
|
s.value.group && !A.value ? (U(), re("div", Vd)) : se("", !0),
|
|
8779
8781
|
s.value.group ? (U(), J(Tt, {
|
|
8780
8782
|
key: 8,
|
|
8781
|
-
toggle:
|
|
8783
|
+
toggle: ie.value,
|
|
8782
8784
|
"onUpdate:toggle": [
|
|
8783
|
-
g[13] || (g[13] = (X) =>
|
|
8784
|
-
g[14] || (g[14] = (X) =>
|
|
8785
|
+
g[13] || (g[13] = (X) => ie.value = X),
|
|
8786
|
+
g[14] || (g[14] = (X) => ne(X))
|
|
8785
8787
|
],
|
|
8786
8788
|
disabled: !A.value,
|
|
8787
8789
|
description: "Use a different group setting",
|
|
8788
8790
|
title: "Update group"
|
|
8789
8791
|
}, {
|
|
8790
8792
|
default: W(() => [
|
|
8791
|
-
|
|
8793
|
+
O(Wc, {
|
|
8792
8794
|
fallback: c.value,
|
|
8793
8795
|
form: p.value,
|
|
8794
8796
|
"full-combinations": v.value,
|
|
@@ -8813,7 +8815,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8813
8815
|
title: b(r)("menu.product.form.sections.inventory.title")
|
|
8814
8816
|
}, {
|
|
8815
8817
|
default: W(() => [
|
|
8816
|
-
|
|
8818
|
+
O(Kc, {
|
|
8817
8819
|
fallback: c.value,
|
|
8818
8820
|
form: p.value,
|
|
8819
8821
|
"full-combinations": v.value,
|
|
@@ -8838,7 +8840,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8838
8840
|
title: b(r)("menu.product.form.sections.takeaway.title")
|
|
8839
8841
|
}, {
|
|
8840
8842
|
default: W(() => [
|
|
8841
|
-
|
|
8843
|
+
O(bd, {
|
|
8842
8844
|
fallback: c.value,
|
|
8843
8845
|
form: p.value,
|
|
8844
8846
|
"full-combinations": v.value,
|
|
@@ -8864,7 +8866,7 @@ function pa(e, t) {
|
|
|
8864
8866
|
var o, r, l, s;
|
|
8865
8867
|
const n = (o = t.groups) == null ? void 0 : o.reduce((u, m) => {
|
|
8866
8868
|
const d = e.groups.find((p) => p._id === m._id);
|
|
8867
|
-
return
|
|
8869
|
+
return On(e.items, d.items) === q.F_ADDON_GROUP_TYPE.enum.DYNAMIC && u.push(d), u;
|
|
8868
8870
|
}, []);
|
|
8869
8871
|
if (!(n != null && n.length)) return t;
|
|
8870
8872
|
const i = n.map((u) => u._id);
|
|
@@ -8958,7 +8960,7 @@ function jd(e, t) {
|
|
|
8958
8960
|
};
|
|
8959
8961
|
}
|
|
8960
8962
|
const Si = mo("item-manager", () => {
|
|
8961
|
-
const e = Me(), t = Qe(), n = lt(), i = kt(t), a =
|
|
8963
|
+
const e = Me(), t = Qe(), n = lt(), i = kt(t), a = Rt(i), o = an(), { t: r } = ke(), l = (y) => {
|
|
8962
8964
|
if (!o) throw new Error("No current instance found");
|
|
8963
8965
|
const { container: x } = La(Bd, o, {
|
|
8964
8966
|
...y,
|
|
@@ -9137,7 +9139,7 @@ const Si = mo("item-manager", () => {
|
|
|
9137
9139
|
e.currentScheduler ? await _(y) : await w(y)
|
|
9138
9140
|
);
|
|
9139
9141
|
}
|
|
9140
|
-
function
|
|
9142
|
+
function R(y) {
|
|
9141
9143
|
const { updateMenu: x } = a, S = y.length > 1 ? `${y.length} products` : y[0].name;
|
|
9142
9144
|
n.open({
|
|
9143
9145
|
title: r("menu.common.dialog.remove.product.title"),
|
|
@@ -9145,7 +9147,7 @@ const Si = mo("item-manager", () => {
|
|
|
9145
9147
|
primaryActions: {
|
|
9146
9148
|
text: r("menu.common.actions.remove"),
|
|
9147
9149
|
close: !0,
|
|
9148
|
-
variant:
|
|
9150
|
+
variant: Ot.Destructive
|
|
9149
9151
|
},
|
|
9150
9152
|
secondaryActions: {
|
|
9151
9153
|
text: r("menu.common.actions.cancel"),
|
|
@@ -9180,7 +9182,7 @@ const Si = mo("item-manager", () => {
|
|
|
9180
9182
|
e,
|
|
9181
9183
|
a.updateMenu,
|
|
9182
9184
|
n
|
|
9183
|
-
).unlinkProduct(y.map((x) => x._id)) :
|
|
9185
|
+
).unlinkProduct(y.map((x) => x._id)) : R(y);
|
|
9184
9186
|
}
|
|
9185
9187
|
async function T(y) {
|
|
9186
9188
|
const { updateMenu: x } = a;
|
|
@@ -9207,7 +9209,7 @@ export {
|
|
|
9207
9209
|
Ul as C,
|
|
9208
9210
|
cc as F,
|
|
9209
9211
|
Fr as I,
|
|
9210
|
-
|
|
9212
|
+
Oo as M,
|
|
9211
9213
|
md as P,
|
|
9212
9214
|
We as R,
|
|
9213
9215
|
$u as S,
|
|
@@ -9220,10 +9222,10 @@ export {
|
|
|
9220
9222
|
ci as e,
|
|
9221
9223
|
ra as f,
|
|
9222
9224
|
Wd as g,
|
|
9223
|
-
|
|
9225
|
+
Rc as h,
|
|
9224
9226
|
Sm as i,
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
+
Ro as j,
|
|
9228
|
+
On as k,
|
|
9227
9229
|
pa as l,
|
|
9228
9230
|
Co as m,
|
|
9229
9231
|
la as n,
|