@feedmepos/mf-menu 0.31.18-beta.2 → 0.31.19-beta
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-wD-LIfUS.js → App-y2Q2D6AO.js} +2399 -1295
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C2io-Yr_.js → ApplyProduct.vue_vue_type_script_setup_true_lang-XV96dt6h.js} +2 -2
- package/dist/{Catalog-pfPNhMN0.js → Catalog-Di-YSP-w.js} +5 -5
- package/dist/{Category-6EUsyHXB.js → Category-BzydRf7k.js} +21 -21
- package/dist/{Category-Icdsr_AU.js → Category-CAccN9m6.js} +8 -8
- package/dist/{CookingGuide-CFds6Opd.js → CookingGuide-BQcVxx1R.js} +66 -66
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BU3i3VMn.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BjUqhzCZ.js} +1 -1
- package/dist/{Group-BA9WRoXf.js → Group-B8TuooWf.js} +3 -3
- package/dist/{Group-DuSiLXZl.js → Group-CAV74Npz.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CXvvPtM6.js → Group.vue_vue_type_script_setup_true_lang-ClnFek9W.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D7jLCWar.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DsC5e95X.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BCSlWsDm.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DV0-XcfW.js} +6 -6
- package/dist/{Ingredient-B9XmeoFV.js → Ingredient-DMLmjp-1.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B52WWwa4.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C0tjGp89.js} +1052 -1052
- package/dist/{LinkProductSideSheet-BJZvpQEy.js → LinkProductSideSheet-DIvOzMB8.js} +1 -1
- package/dist/{MenuSetting-gsQC_4aO.js → MenuSetting-C5sIpDMN.js} +16 -16
- package/dist/{PrintRoute-Bn6gXl3V.js → PrintRoute-NHoHTnMc.js} +26 -26
- package/dist/{Product-8udrIlYQ.js → Product-C2SOvPy4.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-K198-KBy.js → Product.vue_vue_type_script_setup_true_lang-BEHnUKcc.js} +62 -59
- package/dist/{ProductInternalTools-DMFn25Xf.js → ProductInternalTools-eXFZoo1G.js} +13 -13
- package/dist/{Products-DKsKL3Er.js → Products-3J5DcGEc.js} +15 -15
- package/dist/{Publish-MvehUY1y.js → Publish-BdWd54a5.js} +32 -32
- package/dist/{Recipe-DxcMoQb8.js → Recipe-DrNJifKH.js} +9 -9
- package/dist/{Scheduler-DlXh4oWl.js → Scheduler-OLKgjhjM.js} +3 -3
- package/dist/{ServingSequence-Bjf6DT_I.js → ServingSequence-DZ-eaRkW.js} +25 -25
- package/dist/{Setting-BLEQlMI7.js → Setting-t5Edfa6F.js} +10 -10
- package/dist/{Subcategory-CcV6Tayf.js → Subcategory-B1BeXahn.js} +18 -18
- package/dist/{Takeaway-iFKg3t6Z.js → Takeaway-CS31a0G6.js} +1 -1
- package/dist/{Takeaway-cWErnYdQ.js → Takeaway-q69U7AjK.js} +10 -10
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-_QHNZNZR.js → Takeaway.vue_vue_type_script_setup_true_lang-CNheVEqy.js} +17 -17
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D0EmIu2f.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-0kXXOsyC.js} +355 -351
- package/dist/{Unit-D3AGc0lx.js → Unit-R0fBKDBQ.js} +8 -8
- package/dist/{Variant-Dw8htKCh.js → Variant-DdIfbckf.js} +8 -8
- package/dist/{_id_-DDpt5en8.js → _id_-Cpxz3UoN.js} +17 -17
- package/dist/{app-C_yYtrEa.js → app-CMGlnsG5.js} +24 -24
- package/dist/{app-DHp-gdZ8.js → app-DRorRq_c.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/Announcements.vue.d.ts +19 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/helper/menu.d.ts +1 -1
- package/dist/apps/mf-menu/src/stores/announcement/announcement.d.ts +11 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-CdVNB55V.js +24 -0
- package/dist/assets/override-menu-CjvOi-J-.js +24 -0
- package/dist/assets/validate-menu-BU_-Jge5.js +24 -0
- package/dist/{catalog-BLev4g5s.js → catalog-BXSv7rZo.js} +1 -1
- package/dist/{catalogSetting-DLHG77b8.js → catalogSetting-DhXLcwI_.js} +1 -1
- package/dist/{category-BWZrKqKo.js → category-LHZTSH3_.js} +1 -1
- package/dist/{currency-Dk3SWVD4.js → currency-C05JOYSJ.js} +1 -1
- package/dist/{dayjs.min-g6rj0y7-.js → dayjs.min-OqJAuW-9.js} +1 -1
- package/dist/{index-CkDuC6ew.js → index-BgrBG_Iz.js} +11 -11
- package/dist/{index-B6J6I9qW.js → index-CxytOxGX.js} +1 -1
- package/dist/{index-BkQvec9d.js → index-kz099Vvw.js} +6 -6
- package/dist/{item-07EOcOyN.js → item-vz-nrIWG.js} +381 -378
- package/dist/{jszip.min-BVEWRpo1.js → jszip.min-C2aY4t8L.js} +2 -2
- package/dist/menu-CAVt_lFp.js +107896 -0
- package/dist/{menu-DFbClu32.js → menu-DJkyk-fC.js} +1 -1
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DUEDzFST.js → priceTier-xvRS9QN2.js} +1 -1
- package/dist/{scheduler-CvMZKf1V.js → scheduler-Du42t5zf.js} +3 -3
- package/dist/{subcategory-votbn_EI.js → subcategory-CqKHknsQ.js} +241 -241
- package/dist/{toExcel-BppcWu3P.js → toExcel-BvBlj-X5.js} +2 -2
- package/dist/{unit-CDrhaOj7.js → unit-DENherye.js} +1 -1
- package/package.json +3 -2
- package/dist/assets/linked-status-D2akZi_5.js +0 -24
- package/dist/assets/override-menu-68FsNgLU.js +0 -24
- package/dist/assets/validate-menu-CAFkPK87.js +0 -24
- package/dist/menu-7RxvJsxy.js +0 -132202
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { defineStore as mo } from "pinia";
|
|
2
|
-
import { createElementBlock as re, openBlock as U, createElementVNode as B, defineComponent as ve, resolveComponent as H, createBlock as Z, createVNode as R, toDisplayString as ye, Fragment as Ue, renderList as at, h as De, ref as te, computed as z, watch as Fe, unref as b, renderSlot as Ae, withCtx as G, createCommentVNode as se, Transition as ha, resolveDynamicComponent as wn, withDirectives as Xt, vShow as
|
|
3
|
-
import { J as Ve, G as ee, V as Ra, ai as Oa, Y as Ia, H as ge,
|
|
4
|
-
import { useI18n as
|
|
2
|
+
import { createElementBlock as re, openBlock as U, createElementVNode as B, defineComponent as ve, resolveComponent as H, createBlock as Z, createVNode as R, toDisplayString as ye, Fragment as Ue, renderList as at, h as De, ref as te, computed as z, watch as Fe, unref as b, renderSlot as Ae, withCtx as G, createCommentVNode as se, Transition as ha, resolveDynamicComponent as wn, withDirectives as Xt, vShow as Sn, mergeProps as po, withModifiers as Cn, createTextVNode as Gn, normalizeClass as He, getCurrentInstance as an, inject as ga, shallowRef as va, onMounted as $t, onUnmounted as _a, Text as ba, resolveDirective as fo, markRaw as ya, render as Wn, mergeModels as wa, useModel as Ea, nextTick as ho, onBeforeUnmount as ka, normalizeProps as Sa, guardReactiveProps as Ca, normalizeStyle as Aa } from "vue";
|
|
3
|
+
import { J as Ve, G as ee, V as Ra, ai as Oa, Y as Ia, H as ge, B as qe, T as go, u as Te, A as $e, I as ot, D as St, O as Ct, P as Ta, Q as Ma, R as Da, U as Pn, ab as Pa, M as Na, K as Si } from "./menu-CAVt_lFp.js";
|
|
4
|
+
import { useI18n as ke, useCoreStore as rn, CustomAttributesForm as vo } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as st, useSnackbar as Ze, components as Be, FmButtonColorThemeVariant as pt, FmButtonVariant as At, useBreakpoints as _o, useDialogChild as bo } from "@feedmepos/ui-library";
|
|
6
|
-
import { C as ft } from "./catalog-
|
|
6
|
+
import { C as ft } from "./catalog-BXSv7rZo.js";
|
|
7
7
|
import { c as Fa } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
8
8
|
import { a as Ci, _ as yo } from "./tooltip-B5BiPMx9.js";
|
|
9
|
-
import { _ as Rt, L as La } from "./LinkProductSideSheet-
|
|
9
|
+
import { _ as Rt, L as La } from "./LinkProductSideSheet-DIvOzMB8.js";
|
|
10
10
|
import { _ as lt, a as xa } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
11
|
-
import { s as Hn, F as Ua, _ as Va } from "./index-
|
|
12
|
-
import { I as za, u as $a } from "./app-
|
|
13
|
-
import { u as Ba } from "./app-
|
|
14
|
-
import { a as Ga, g as wo, d as Wa, c as Ha, b as ja, m as Ka } from "./subcategory-
|
|
11
|
+
import { s as Hn, F as Ua, _ as Va } from "./index-CxytOxGX.js";
|
|
12
|
+
import { I as za, u as $a } from "./app-CMGlnsG5.js";
|
|
13
|
+
import { u as Ba } from "./app-DRorRq_c.js";
|
|
14
|
+
import { a as Ga, g as wo, d as Wa, c as Ha, b as ja, m as Ka } from "./subcategory-CqKHknsQ.js";
|
|
15
15
|
import { _ as _t } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
16
|
-
import { u as Ya } from "./category-
|
|
16
|
+
import { u as Ya } from "./category-LHZTSH3_.js";
|
|
17
17
|
import "@vue/devtools-api";
|
|
18
18
|
import { u as ui } from "./discardConfirm-BHni0LNu.js";
|
|
19
|
-
import { _ as Pt, l as jn, T as Xa } from "./index-
|
|
19
|
+
import { _ as Pt, l as jn, T as Xa } from "./index-kz099Vvw.js";
|
|
20
20
|
import { useInventoryStore as Eo, InventoryBindingForm as qa, InventoryBindingSummary as Ja } from "@feedmepos/mf-inventory-portal";
|
|
21
21
|
import { c as sn } from "./check-C9mY6LiX.js";
|
|
22
22
|
import { c as Za } from "./object-DVUNCr7w.js";
|
|
23
|
-
import { f as Bt } from "./currency-
|
|
24
|
-
import { u as
|
|
23
|
+
import { f as Bt } from "./currency-C05JOYSJ.js";
|
|
24
|
+
import { u as ko } from "./priceTier-xvRS9QN2.js";
|
|
25
25
|
import { u as Qa } from "./search-BAPEUu1R.js";
|
|
26
26
|
import { c as er } from "./string-DpfFixWH.js";
|
|
27
|
-
import { d as
|
|
28
|
-
import { _ as tr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
29
|
-
import { V as Ai } from "./index-
|
|
27
|
+
import { d as So } from "./vuedraggable-CK8z7qA8.js";
|
|
28
|
+
import { _ as tr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-XV96dt6h.js";
|
|
29
|
+
import { V as Ai } from "./index-BgrBG_Iz.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;
|
|
@@ -382,20 +382,20 @@ class Ao {
|
|
|
382
382
|
function l(s, u) {
|
|
383
383
|
const m = s.items.reduce((c, p) => {
|
|
384
384
|
var M, O, w, x;
|
|
385
|
-
const E = a.find((
|
|
385
|
+
const E = a.find((S) => p._id === S._id);
|
|
386
386
|
if (!E && n) return c;
|
|
387
387
|
const _ = p.combinationKey ? {
|
|
388
388
|
...(M = E == null ? void 0 : E.variant) == null ? void 0 : M.variantCombinations.find(
|
|
389
|
-
(
|
|
389
|
+
(S) => S.combinationKey === p.combinationKey
|
|
390
390
|
),
|
|
391
391
|
name: go(Te().variants, ((O = E == null ? void 0 : E.variant) == null ? void 0 : O.variantGroupIds) || [])[p.combinationKey]
|
|
392
|
-
} : E, y = (w = o.find((
|
|
393
|
-
(
|
|
394
|
-
)) == null ? void 0 : x.price,
|
|
392
|
+
} : E, y = (w = o.find((S) => S._id === s._id)) == null ? void 0 : w.items.find((S) => S._id === p._id && S.combinationKey === p.combinationKey), g = !n && !p.combinationKey, v = (x = u.find(
|
|
393
|
+
(S) => S._id == p._id && S.combinationKey == p.combinationKey
|
|
394
|
+
)) == null ? void 0 : x.price, k = p.name ?? (y == null ? void 0 : y.name) ?? (_ == null ? void 0 : _.name) ?? "", A = {
|
|
395
395
|
...p,
|
|
396
|
-
name:
|
|
396
|
+
name: k,
|
|
397
397
|
code: _ == null ? void 0 : _.code,
|
|
398
|
-
fallbackName: g ? null :
|
|
398
|
+
fallbackName: g ? null : k,
|
|
399
399
|
price: p.price,
|
|
400
400
|
fallbackPrice: g ? null : v,
|
|
401
401
|
orderFrom: p.orderFrom,
|
|
@@ -575,7 +575,7 @@ const sr = /* @__PURE__ */ Rt(ar, [["render", rr]]), lr = {
|
|
|
575
575
|
},
|
|
576
576
|
emits: ["update:catalogAndScheduler"],
|
|
577
577
|
setup(e, { emit: t }) {
|
|
578
|
-
const n = e, i = t, { t: a } =
|
|
578
|
+
const n = e, i = t, { t: a } = ke(), o = Te(), r = te(o.state.currentCatalogId || null), l = z(() => {
|
|
579
579
|
const c = Object.keys(n.linkedStatus.catalogs).map((p) => {
|
|
580
580
|
var E;
|
|
581
581
|
return {
|
|
@@ -648,7 +648,7 @@ const sr = /* @__PURE__ */ Rt(ar, [["render", rr]]), lr = {
|
|
|
648
648
|
}), _r = { class: "flex items-center justify-between" }, br = { class: "space-y-4 flex-1" }, yr = { class: "fm-typo-en-title-sm-600" }, wr = {
|
|
649
649
|
key: 0,
|
|
650
650
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
651
|
-
}, Er = { key: 0 },
|
|
651
|
+
}, Er = { key: 0 }, kr = /* @__PURE__ */ ve({
|
|
652
652
|
__name: "ToggleCard",
|
|
653
653
|
props: {
|
|
654
654
|
title: {},
|
|
@@ -690,8 +690,8 @@ const sr = /* @__PURE__ */ Rt(ar, [["render", rr]]), lr = {
|
|
|
690
690
|
}));
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
}), Tt = /* @__PURE__ */ Rt(
|
|
694
|
-
var
|
|
693
|
+
}), Tt = /* @__PURE__ */ Rt(kr, [["__scopeId", "data-v-e920f110"]]);
|
|
694
|
+
var Sr = { remy: "https://remy-dev.feedmeapi.com/v1" };
|
|
695
695
|
let Ge;
|
|
696
696
|
function Cr(e) {
|
|
697
697
|
const t = Ba(), n = za(e), i = z(() => {
|
|
@@ -718,7 +718,7 @@ function Cr(e) {
|
|
|
718
718
|
function Em(e) {
|
|
719
719
|
Ge = Cr({
|
|
720
720
|
token: e,
|
|
721
|
-
url:
|
|
721
|
+
url: Sr.remy
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
724
|
const Ar = mo("menu-edit-state", {
|
|
@@ -767,7 +767,7 @@ async function Ir(e, t = "image.jpg", n = "image/jpeg") {
|
|
|
767
767
|
});
|
|
768
768
|
return i ? new File([i.blob], t, { type: n }) : null;
|
|
769
769
|
}
|
|
770
|
-
async function
|
|
770
|
+
async function km(e, t, n = {}) {
|
|
771
771
|
return Rr({
|
|
772
772
|
items: e,
|
|
773
773
|
processor: (i) => t(i.url, i.filename),
|
|
@@ -1140,7 +1140,7 @@ function Fo(e, t) {
|
|
|
1140
1140
|
var n = t * Math.PI / 180;
|
|
1141
1141
|
return { width: Math.abs(e.width * Math.cos(n)) + Math.abs(e.height * Math.sin(n)), height: Math.abs(e.width * Math.sin(n)) + Math.abs(e.height * Math.cos(n)) };
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function kt(e, t) {
|
|
1144
1144
|
var n = t * Math.PI / 180;
|
|
1145
1145
|
return { left: e.left * Math.cos(n) - e.top * Math.sin(n), top: e.left * Math.sin(n) + e.top * Math.cos(n) };
|
|
1146
1146
|
}
|
|
@@ -1269,18 +1269,18 @@ function Zr(e) {
|
|
|
1269
1269
|
m = We(m, { left: u.left || 0, top: u.top || 0 });
|
|
1270
1270
|
var _ = { stencil: { minimum: Math.max(a.minWidth ? a.minWidth / d.width : 0, a.minHeight ? a.minHeight / d.height : 0), maximum: Math.min(a.maxWidth ? a.maxWidth / d.width : 1 / 0, a.maxHeight ? a.maxHeight / d.height : 1 / 0, Wt(d, r)) }, area: { maximum: Wt(m, o({ visibleArea: m, type: "resize" })) } };
|
|
1271
1271
|
s.factor && E && (s.factor < 1 ? (p = Math.max(s.factor, _.stencil.minimum)) > 1 && (p = 1) : s.factor > 1 && (p = Math.min(s.factor, Math.min(_.area.maximum, _.stencil.maximum))) < 1 && (p = 1)), p && (m = Xe(m, p, s.center));
|
|
1272
|
-
var y = n.left - i.left, g = i.width + i.left - (n.width + n.left), v = n.top - i.top,
|
|
1273
|
-
return m = xe(m = We(m, Ht(m, { left: r.left !== void 0 ? r.left - y * p : void 0, top: r.top !== void 0 ? r.top - v * p : void 0, bottom: r.bottom !== void 0 ? r.bottom +
|
|
1272
|
+
var y = n.left - i.left, g = i.width + i.left - (n.width + n.left), v = n.top - i.top, k = i.height + i.top - (n.height + n.top);
|
|
1273
|
+
return m = xe(m = We(m, Ht(m, { left: r.left !== void 0 ? r.left - y * p : void 0, top: r.top !== void 0 ? r.top - v * p : void 0, bottom: r.bottom !== void 0 ? r.bottom + k * p : void 0, right: r.right !== void 0 ? r.right + g * p : void 0 })), o({ visibleArea: m, type: "move" })), d.width = d.width * p, d.height = d.height * p, d.left = m.left + y * p, d.top = m.top + v * p, d = xe(d, In(rt(m), r)), s.factor && E && l && (s.factor > 1 ? c = Math.min(_.area.maximum, s.factor) / p : s.factor < 1 && (c = Math.max(d.height / m.height, d.width / m.width, s.factor / p)), c !== 1 && (m = We(m = xe(m = Xe(m, c, s.factor > 1 ? s.center : Le(d)), o({ visibleArea: m, type: "move" })), Rn(Ht(d, rt(m)))))), { coordinates: d, visibleArea: m };
|
|
1274
1274
|
}
|
|
1275
1275
|
function Qr(e) {
|
|
1276
|
-
var t = e.aspectRatio, n = e.getAreaRestrictions, i = e.coordinates, a = e.visibleArea, o = e.sizeRestrictions, r = e.positionRestrictions, l = e.imageSize, s = e.previousImageSize, u = e.angle, m = ie({}, i), d = ie({}, a), c =
|
|
1277
|
-
return (m = ie(ie({}, ht({ sizeRestrictions: o, aspectRatio: t, width: m.width, height: m.height })),
|
|
1276
|
+
var t = e.aspectRatio, n = e.getAreaRestrictions, i = e.coordinates, a = e.visibleArea, o = e.sizeRestrictions, r = e.positionRestrictions, l = e.imageSize, s = e.previousImageSize, u = e.angle, m = ie({}, i), d = ie({}, a), c = kt(Le(ie({ left: 0, top: 0 }, s)), u);
|
|
1277
|
+
return (m = ie(ie({}, ht({ sizeRestrictions: o, aspectRatio: t, width: m.width, height: m.height })), kt(Le(m), u))).left -= c.left - l.width / 2 + m.width / 2, m.top -= c.top - l.height / 2 + m.height / 2, d = Xe(d, On(d, n({ visibleArea: d, type: "resize" }))), { coordinates: m = xe(m, r), visibleArea: d = xe(d = We(d, Gt(Le(m), Le(i))), n({ visibleArea: d, type: "move" })) };
|
|
1278
1278
|
}
|
|
1279
1279
|
function es(e) {
|
|
1280
1280
|
var t = e.flip, n = e.previousFlip, i = e.rotate, a = e.getAreaRestrictions, o = e.coordinates, r = e.visibleArea, l = e.imageSize, s = ie({}, o), u = ie({}, r), m = n.horizontal !== t.horizontal, d = n.vertical !== t.vertical;
|
|
1281
1281
|
if (m || d) {
|
|
1282
|
-
var c =
|
|
1283
|
-
s = We(s, Gt(E, Le(s))), p =
|
|
1282
|
+
var c = kt({ left: l.width / 2, top: l.height / 2 }, -i), p = kt(Le(s), -i), E = kt({ left: m ? c.left - (p.left - c.left) : p.left, top: d ? c.top - (p.top - c.top) : p.top }, i);
|
|
1283
|
+
s = We(s, Gt(E, Le(s))), p = kt(Le(u), -i), u = xe(u = We(u, Gt(E = kt({ left: m ? c.left - (p.left - c.left) : p.left, top: d ? c.top - (p.top - c.top) : p.top }, i), Le(u))), a({ visibleArea: u, type: "move" }));
|
|
1284
1284
|
}
|
|
1285
1285
|
return { coordinates: s, visibleArea: u };
|
|
1286
1286
|
}
|
|
@@ -1679,7 +1679,7 @@ var fn = Qe("vue-preview"), $o = { props: { coordinates: { type: Object }, trans
|
|
|
1679
1679
|
e && e.complete && this.refreshImage(), this.refresh();
|
|
1680
1680
|
} } };
|
|
1681
1681
|
$o.render = function(e, t, n, i, a, o) {
|
|
1682
|
-
return U(), Z("div", { ref: "root", class: o.classes.root, style: o.style }, [R("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [Xt(R("img", { ref: "image", src: n.image && n.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[
|
|
1682
|
+
return U(), Z("div", { ref: "root", class: o.classes.root, style: o.style }, [R("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [Xt(R("img", { ref: "image", src: n.image && n.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[Sn, n.image && n.image.src]])], 6)], 6);
|
|
1683
1683
|
};
|
|
1684
1684
|
var Bo = { components: { Preview: $o }, inheritAttrs: !1 };
|
|
1685
1685
|
Bo.render = function(e, t, n, i, a, o) {
|
|
@@ -1751,8 +1751,8 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1751
1751
|
} else if (p === "height") {
|
|
1752
1752
|
var g = r.width - d * c;
|
|
1753
1753
|
if (u.left && u.right) {
|
|
1754
|
-
var v = s.left,
|
|
1755
|
-
s.left = -pn(g, v,
|
|
1754
|
+
var v = s.left, k = s.right;
|
|
1755
|
+
s.left = -pn(g, v, k), s.right = -pn(g, k, v);
|
|
1756
1756
|
} else u.left ? s.left = -g : u.right ? s.right = -g : u.top ? s.top = 0 : u.bottom && (s.bottom = 0);
|
|
1757
1757
|
}
|
|
1758
1758
|
s = Li({ directions: s, coordinates: r, sizeRestrictions: o, positionRestrictions: a, preserveRatio: !0, compensate: l.compensate });
|
|
@@ -1932,7 +1932,7 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1932
1932
|
var e = this.$refs.canvas, t = this.$refs.image, n = this.imageTransforms.rotate !== 0 || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(l, s, u) {
|
|
1933
1933
|
var m = u.rotate, d = u.flip, c = { width: s.naturalWidth, height: s.naturalHeight }, p = Fo(c, m), E = l.getContext("2d");
|
|
1934
1934
|
l.height = p.height, l.width = p.width, E.save();
|
|
1935
|
-
var _ =
|
|
1935
|
+
var _ = kt(Le(ie({ left: 0, top: 0 }, c)), m);
|
|
1936
1936
|
return E.translate(-(_.left - p.width / 2), -(_.top - p.height / 2)), E.rotate(m * Math.PI / 180), E.translate(d.horizontal ? c.width : 0, d.vertical ? c.height : 0), E.scale(d.horizontal ? -1 : 1, d.vertical ? -1 : 1), E.drawImage(s, 0, 0, c.width, c.height), E.restore(), l;
|
|
1937
1937
|
}(this.$refs.sourceCanvas, t, this.imageTransforms) : t, i = de({ minWidth: 0, minHeight: 0, maxWidth: 1 / 0, maxHeight: 1 / 0, maxArea: this.maxCanvasSize, imageSmoothingEnabled: !0, imageSmoothingQuality: "high", fillColor: "transparent" }, this.canvas), a = function(l) {
|
|
1938
1938
|
return l.find(function(s) {
|
|
@@ -2153,7 +2153,7 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
2153
2153
|
Wo.render = function(e, t, n, i, a, o) {
|
|
2154
2154
|
return U(), Z("div", { ref: "cropper", class: o.classes.cropper }, [R("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), R("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(U(), Z(wn(n.backgroundWrapperComponent), { class: o.classes.cropperWrapper, "wheel-resize": o.settings.resizeImage.wheel, "touch-resize": o.settings.resizeImage.touch, "touch-move": o.settings.moveImage.touch, "mouse-move": o.settings.moveImage.mouse, onMove: o.onManipulateImage, onResize: o.onManipulateImage }, { default: G(function() {
|
|
2155
2155
|
return [R("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), R("div", { class: o.classes.imageWrapper }, [R("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: t[1] || (t[1] = Cn(function() {
|
|
2156
|
-
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), R("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), Xt((U(), Z(wn(n.stencilComponent), po({ ref: "stencil", image: o.image, coordinates: a.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, n.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[
|
|
2156
|
+
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), R("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), Xt((U(), Z(wn(n.stencilComponent), po({ ref: "stencil", image: o.image, coordinates: a.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, n.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[Sn, a.imageLoaded]]), n.canvas ? (U(), Z("canvas", ds, null, 512)) : se("", !0), n.canvas ? (U(), Z("canvas", ms, null, 512)) : se("", !0)];
|
|
2157
2157
|
}), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
|
|
2158
2158
|
};
|
|
2159
2159
|
function ps(e, t) {
|
|
@@ -2186,14 +2186,14 @@ const hs = {
|
|
|
2186
2186
|
class: /* @__PURE__ */ He(["absolute inset-0", "h-full w-full", "rounded-md overflow-hidden"])
|
|
2187
2187
|
}, ys = {
|
|
2188
2188
|
class: /* @__PURE__ */ He(["relative z-0", "w-full h-full", "overflow-hidden"])
|
|
2189
|
-
}, ws = { class: "fm-typo-en-body-lg-600 pb-4" }, Es = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" },
|
|
2189
|
+
}, ws = { class: "fm-typo-en-body-lg-600 pb-4" }, Es = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ks = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ss = /* @__PURE__ */ ve({
|
|
2190
2190
|
__name: "ImageDropField",
|
|
2191
2191
|
props: {
|
|
2192
2192
|
modelValue: {}
|
|
2193
2193
|
},
|
|
2194
2194
|
emits: ["update:model-value", "reset:model-value"],
|
|
2195
2195
|
setup(e, { emit: t }) {
|
|
2196
|
-
const n = e, { t: i } =
|
|
2196
|
+
const n = e, { t: i } = ke(), a = t, o = z(() => n.modelValue ? URL.createObjectURL(n.modelValue) : ""), r = te(), l = te(!1);
|
|
2197
2197
|
async function s([c]) {
|
|
2198
2198
|
if (!c) return;
|
|
2199
2199
|
l.value = !0;
|
|
@@ -2271,7 +2271,7 @@ const hs = {
|
|
|
2271
2271
|
])
|
|
2272
2272
|
]),
|
|
2273
2273
|
"accept-text": G(() => [
|
|
2274
|
-
B("p",
|
|
2274
|
+
B("p", ks, ye(b(i)("menu.common.file.accepts")), 1)
|
|
2275
2275
|
]),
|
|
2276
2276
|
_: 1
|
|
2277
2277
|
}));
|
|
@@ -2319,7 +2319,7 @@ const hs = {
|
|
|
2319
2319
|
},
|
|
2320
2320
|
emits: ["update:model-value"],
|
|
2321
2321
|
setup(e, { emit: t }) {
|
|
2322
|
-
const n = e, { t: i } =
|
|
2322
|
+
const n = e, { t: i } = ke(), a = t, o = z(() => ({
|
|
2323
2323
|
ALL: {
|
|
2324
2324
|
label: i("menu.order.from.options.all"),
|
|
2325
2325
|
value: ee.F_ORDER_FROM.enum.ALL
|
|
@@ -2506,7 +2506,7 @@ function Hs(e) {
|
|
|
2506
2506
|
function v() {
|
|
2507
2507
|
return o = 0, m(n) && (i++, a = 0), r(n) && n++, n++, a++, t[n];
|
|
2508
2508
|
}
|
|
2509
|
-
function
|
|
2509
|
+
function k() {
|
|
2510
2510
|
return r(n + o) && o++, o++, t[n + o];
|
|
2511
2511
|
}
|
|
2512
2512
|
function A() {
|
|
@@ -2530,7 +2530,7 @@ function Hs(e) {
|
|
|
2530
2530
|
currentChar: y,
|
|
2531
2531
|
currentPeek: g,
|
|
2532
2532
|
next: v,
|
|
2533
|
-
peek:
|
|
2533
|
+
peek: k,
|
|
2534
2534
|
reset: A,
|
|
2535
2535
|
resetPeek: M,
|
|
2536
2536
|
skipToPeek: O
|
|
@@ -2598,7 +2598,7 @@ function Ys(e, t = {}) {
|
|
|
2598
2598
|
const h = f.charCodeAt(0);
|
|
2599
2599
|
return h >= 48 && h <= 57;
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2601
|
+
function k(f, h) {
|
|
2602
2602
|
const { currentType: L } = h;
|
|
2603
2603
|
if (L !== 2)
|
|
2604
2604
|
return !1;
|
|
@@ -2646,7 +2646,7 @@ function Ys(e, t = {}) {
|
|
|
2646
2646
|
const Y = f.currentPeek() === ":";
|
|
2647
2647
|
return f.resetPeek(), Y;
|
|
2648
2648
|
}
|
|
2649
|
-
function
|
|
2649
|
+
function S(f, h) {
|
|
2650
2650
|
const { currentType: L } = h;
|
|
2651
2651
|
if (L !== 9)
|
|
2652
2652
|
return !1;
|
|
@@ -2766,14 +2766,14 @@ function Ys(e, t = {}) {
|
|
|
2766
2766
|
case "'":
|
|
2767
2767
|
return f.next(), `\\${h}`;
|
|
2768
2768
|
case "u":
|
|
2769
|
-
return
|
|
2769
|
+
return Se(f, h, 4);
|
|
2770
2770
|
case "U":
|
|
2771
|
-
return
|
|
2771
|
+
return Se(f, h, 6);
|
|
2772
2772
|
default:
|
|
2773
2773
|
return d(_e.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, h), "";
|
|
2774
2774
|
}
|
|
2775
2775
|
}
|
|
2776
|
-
function
|
|
2776
|
+
function Se(f, h, L) {
|
|
2777
2777
|
E(f, h);
|
|
2778
2778
|
let Y = "";
|
|
2779
2779
|
for (let X = 0; X < L; X++) {
|
|
@@ -2843,7 +2843,7 @@ function Ys(e, t = {}) {
|
|
|
2843
2843
|
return h.braceNest > 0 && d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), L = c(h, 1, yt(f)), h.braceNest = 0, h.inLinked = !1, L;
|
|
2844
2844
|
if (h.braceNest > 0 && (h.currentType === 4 || h.currentType === 5 || h.currentType === 6))
|
|
2845
2845
|
return d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), h.braceNest = 0, wt(f, h);
|
|
2846
|
-
if (X =
|
|
2846
|
+
if (X = k(f, h))
|
|
2847
2847
|
return L = c(h, 4, q(f)), y(f), L;
|
|
2848
2848
|
if (ue = A(f, h))
|
|
2849
2849
|
return L = c(h, 5, J(f)), y(f), L;
|
|
@@ -2883,7 +2883,7 @@ function Ys(e, t = {}) {
|
|
|
2883
2883
|
/* TokenChars.LinkedDelimiter */
|
|
2884
2884
|
);
|
|
2885
2885
|
default:
|
|
2886
|
-
return I(f) ? (Y = c(h, 1, yt(f)), h.braceNest = 0, h.inLinked = !1, Y) : O(f, h) || x(f, h) ? (y(f), ct(f, h)) : w(f, h) ? (y(f), c(h, 11, Lt(f))) :
|
|
2886
|
+
return I(f) ? (Y = c(h, 1, yt(f)), h.braceNest = 0, h.inLinked = !1, Y) : O(f, h) || x(f, h) ? (y(f), ct(f, h)) : w(f, h) ? (y(f), c(h, 11, Lt(f))) : S(f, h) ? (y(f), X === "{" ? ut(f, h) || Y : c(h, 10, qt(f))) : (L === 7 && d(_e.INVALID_LINKED_FORMAT, o(), 0), h.braceNest = 0, h.inLinked = !1, wt(f, h));
|
|
2887
2887
|
}
|
|
2888
2888
|
}
|
|
2889
2889
|
function wt(f, h) {
|
|
@@ -2948,103 +2948,103 @@ function Js(e, t, n) {
|
|
|
2948
2948
|
}
|
|
2949
2949
|
function Zs(e = {}) {
|
|
2950
2950
|
const t = e.location !== !1, { onError: n } = e;
|
|
2951
|
-
function i(g, v,
|
|
2951
|
+
function i(g, v, k, A, ...M) {
|
|
2952
2952
|
const O = g.currentPosition();
|
|
2953
2953
|
if (O.offset += A, O.column += A, n) {
|
|
2954
|
-
const w = t ? Qn(
|
|
2954
|
+
const w = t ? Qn(k, O) : null, x = Mn(v, w, {
|
|
2955
2955
|
domain: Xs,
|
|
2956
2956
|
args: M
|
|
2957
2957
|
});
|
|
2958
2958
|
n(x);
|
|
2959
2959
|
}
|
|
2960
2960
|
}
|
|
2961
|
-
function a(g, v,
|
|
2961
|
+
function a(g, v, k) {
|
|
2962
2962
|
const A = { type: g };
|
|
2963
|
-
return t && (A.start = v, A.end = v, A.loc = { start:
|
|
2963
|
+
return t && (A.start = v, A.end = v, A.loc = { start: k, end: k }), A;
|
|
2964
2964
|
}
|
|
2965
|
-
function o(g, v,
|
|
2966
|
-
t && (g.end = v, g.loc && (g.loc.end =
|
|
2965
|
+
function o(g, v, k, A) {
|
|
2966
|
+
t && (g.end = v, g.loc && (g.loc.end = k));
|
|
2967
2967
|
}
|
|
2968
2968
|
function r(g, v) {
|
|
2969
|
-
const
|
|
2969
|
+
const k = g.context(), A = a(3, k.offset, k.startLoc);
|
|
2970
2970
|
return A.value = v, o(A, g.currentOffset(), g.currentPosition()), A;
|
|
2971
2971
|
}
|
|
2972
2972
|
function l(g, v) {
|
|
2973
|
-
const
|
|
2973
|
+
const k = g.context(), { lastOffset: A, lastStartLoc: M } = k, O = a(5, A, M);
|
|
2974
2974
|
return O.index = parseInt(v, 10), g.nextToken(), o(O, g.currentOffset(), g.currentPosition()), O;
|
|
2975
2975
|
}
|
|
2976
2976
|
function s(g, v) {
|
|
2977
|
-
const
|
|
2977
|
+
const k = g.context(), { lastOffset: A, lastStartLoc: M } = k, O = a(4, A, M);
|
|
2978
2978
|
return O.key = v, g.nextToken(), o(O, g.currentOffset(), g.currentPosition()), O;
|
|
2979
2979
|
}
|
|
2980
2980
|
function u(g, v) {
|
|
2981
|
-
const
|
|
2981
|
+
const k = g.context(), { lastOffset: A, lastStartLoc: M } = k, O = a(9, A, M);
|
|
2982
2982
|
return O.value = v.replace(qs, Js), g.nextToken(), o(O, g.currentOffset(), g.currentPosition()), O;
|
|
2983
2983
|
}
|
|
2984
2984
|
function m(g) {
|
|
2985
|
-
const v = g.nextToken(),
|
|
2986
|
-
return v.type !== 11 ? (i(g, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
2985
|
+
const v = g.nextToken(), k = g.context(), { lastOffset: A, lastStartLoc: M } = k, O = a(8, A, M);
|
|
2986
|
+
return v.type !== 11 ? (i(g, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, k.lastStartLoc, 0), O.value = "", o(O, A, M), {
|
|
2987
2987
|
nextConsumeToken: v,
|
|
2988
2988
|
node: O
|
|
2989
|
-
}) : (v.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
2989
|
+
}) : (v.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, k.lastStartLoc, 0, tt(v)), O.value = v.value || "", o(O, g.currentOffset(), g.currentPosition()), {
|
|
2990
2990
|
node: O
|
|
2991
2991
|
});
|
|
2992
2992
|
}
|
|
2993
2993
|
function d(g, v) {
|
|
2994
|
-
const
|
|
2994
|
+
const k = g.context(), A = a(7, k.offset, k.startLoc);
|
|
2995
2995
|
return A.value = v, o(A, g.currentOffset(), g.currentPosition()), A;
|
|
2996
2996
|
}
|
|
2997
2997
|
function c(g) {
|
|
2998
|
-
const v = g.context(),
|
|
2998
|
+
const v = g.context(), k = a(6, v.offset, v.startLoc);
|
|
2999
2999
|
let A = g.nextToken();
|
|
3000
3000
|
if (A.type === 8) {
|
|
3001
3001
|
const M = m(g);
|
|
3002
|
-
|
|
3002
|
+
k.modifier = M.node, A = M.nextConsumeToken || g.nextToken();
|
|
3003
3003
|
}
|
|
3004
3004
|
switch (A.type !== 9 && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)), A = g.nextToken(), A.type === 2 && (A = g.nextToken()), A.type) {
|
|
3005
3005
|
case 10:
|
|
3006
|
-
A.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)),
|
|
3006
|
+
A.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)), k.key = d(g, A.value || "");
|
|
3007
3007
|
break;
|
|
3008
3008
|
case 4:
|
|
3009
|
-
A.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)),
|
|
3009
|
+
A.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)), k.key = s(g, A.value || "");
|
|
3010
3010
|
break;
|
|
3011
3011
|
case 5:
|
|
3012
|
-
A.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)),
|
|
3012
|
+
A.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)), k.key = l(g, A.value || "");
|
|
3013
3013
|
break;
|
|
3014
3014
|
case 6:
|
|
3015
|
-
A.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)),
|
|
3015
|
+
A.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)), k.key = u(g, A.value || "");
|
|
3016
3016
|
break;
|
|
3017
3017
|
default: {
|
|
3018
3018
|
i(g, _e.UNEXPECTED_EMPTY_LINKED_KEY, v.lastStartLoc, 0);
|
|
3019
3019
|
const M = g.context(), O = a(7, M.offset, M.startLoc);
|
|
3020
|
-
return O.value = "", o(O, M.offset, M.startLoc),
|
|
3020
|
+
return O.value = "", o(O, M.offset, M.startLoc), k.key = O, o(k, M.offset, M.startLoc), {
|
|
3021
3021
|
nextConsumeToken: A,
|
|
3022
|
-
node:
|
|
3022
|
+
node: k
|
|
3023
3023
|
};
|
|
3024
3024
|
}
|
|
3025
3025
|
}
|
|
3026
|
-
return o(
|
|
3027
|
-
node:
|
|
3026
|
+
return o(k, g.currentOffset(), g.currentPosition()), {
|
|
3027
|
+
node: k
|
|
3028
3028
|
};
|
|
3029
3029
|
}
|
|
3030
3030
|
function p(g) {
|
|
3031
|
-
const v = g.context(),
|
|
3031
|
+
const v = g.context(), k = v.currentType === 1 ? g.currentOffset() : v.offset, A = v.currentType === 1 ? v.endLoc : v.startLoc, M = a(2, k, A);
|
|
3032
3032
|
M.items = [];
|
|
3033
3033
|
let O = null;
|
|
3034
3034
|
do {
|
|
3035
|
-
const
|
|
3036
|
-
switch (O = null,
|
|
3035
|
+
const S = O || g.nextToken();
|
|
3036
|
+
switch (O = null, S.type) {
|
|
3037
3037
|
case 0:
|
|
3038
|
-
|
|
3038
|
+
S.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(S)), M.items.push(r(g, S.value || ""));
|
|
3039
3039
|
break;
|
|
3040
3040
|
case 5:
|
|
3041
|
-
|
|
3041
|
+
S.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(S)), M.items.push(l(g, S.value || ""));
|
|
3042
3042
|
break;
|
|
3043
3043
|
case 4:
|
|
3044
|
-
|
|
3044
|
+
S.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(S)), M.items.push(s(g, S.value || ""));
|
|
3045
3045
|
break;
|
|
3046
3046
|
case 6:
|
|
3047
|
-
|
|
3047
|
+
S.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(S)), M.items.push(u(g, S.value || ""));
|
|
3048
3048
|
break;
|
|
3049
3049
|
case 7: {
|
|
3050
3050
|
const I = c(g);
|
|
@@ -3056,24 +3056,24 @@ function Zs(e = {}) {
|
|
|
3056
3056
|
const w = v.currentType === 1 ? v.lastOffset : g.currentOffset(), x = v.currentType === 1 ? v.lastEndLoc : g.currentPosition();
|
|
3057
3057
|
return o(M, w, x), M;
|
|
3058
3058
|
}
|
|
3059
|
-
function E(g, v,
|
|
3059
|
+
function E(g, v, k, A) {
|
|
3060
3060
|
const M = g.context();
|
|
3061
3061
|
let O = A.items.length === 0;
|
|
3062
|
-
const w = a(1, v,
|
|
3062
|
+
const w = a(1, v, k);
|
|
3063
3063
|
w.cases = [], w.cases.push(A);
|
|
3064
3064
|
do {
|
|
3065
3065
|
const x = p(g);
|
|
3066
3066
|
O || (O = x.items.length === 0), w.cases.push(x);
|
|
3067
3067
|
} while (M.currentType !== 13);
|
|
3068
|
-
return O && i(g, _e.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
3068
|
+
return O && i(g, _e.MUST_HAVE_MESSAGES_IN_PLURAL, k, 0), o(w, g.currentOffset(), g.currentPosition()), w;
|
|
3069
3069
|
}
|
|
3070
3070
|
function _(g) {
|
|
3071
|
-
const v = g.context(), { offset:
|
|
3072
|
-
return v.currentType === 13 ? M : E(g,
|
|
3071
|
+
const v = g.context(), { offset: k, startLoc: A } = v, M = p(g);
|
|
3072
|
+
return v.currentType === 13 ? M : E(g, k, A, M);
|
|
3073
3073
|
}
|
|
3074
3074
|
function y(g) {
|
|
3075
|
-
const v = Ys(g, Ne({}, e)),
|
|
3076
|
-
return t && A.loc && (A.loc.source = g), A.body = _(v), e.onCacheKey && (A.cacheKey = e.onCacheKey(g)),
|
|
3075
|
+
const v = Ys(g, Ne({}, e)), k = v.context(), A = a(0, k.offset, k.startLoc);
|
|
3076
|
+
return t && A.loc && (A.loc.source = g), A.body = _(v), e.onCacheKey && (A.cacheKey = e.onCacheKey(g)), k.currentType !== 13 && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, k.lastStartLoc, 0, g[k.offset] || ""), o(A, v.currentOffset(), v.currentPosition()), A;
|
|
3077
3077
|
}
|
|
3078
3078
|
return { parse: y };
|
|
3079
3079
|
}
|
|
@@ -3433,7 +3433,7 @@ function ei(e, t) {
|
|
|
3433
3433
|
throw en(n);
|
|
3434
3434
|
}
|
|
3435
3435
|
case 6: {
|
|
3436
|
-
const i = t, a =
|
|
3436
|
+
const i = t, a = kl(i), o = Cl(i);
|
|
3437
3437
|
return e.linked(ei(e, o), a ? ei(e, a) : void 0, e.type);
|
|
3438
3438
|
}
|
|
3439
3439
|
case 7:
|
|
@@ -3456,12 +3456,12 @@ function gn(e, t) {
|
|
|
3456
3456
|
throw en(t);
|
|
3457
3457
|
}
|
|
3458
3458
|
const El = ["m", "modifier"];
|
|
3459
|
-
function
|
|
3459
|
+
function kl(e) {
|
|
3460
3460
|
return Ot(e, El);
|
|
3461
3461
|
}
|
|
3462
|
-
const
|
|
3462
|
+
const Sl = ["k", "key"];
|
|
3463
3463
|
function Cl(e) {
|
|
3464
|
-
const t = Ot(e,
|
|
3464
|
+
const t = Ot(e, Sl);
|
|
3465
3465
|
if (t)
|
|
3466
3466
|
return t;
|
|
3467
3467
|
throw en(
|
|
@@ -3569,7 +3569,7 @@ function Nl(e, t, n) {
|
|
|
3569
3569
|
])];
|
|
3570
3570
|
}
|
|
3571
3571
|
function Yo(e, t, n) {
|
|
3572
|
-
const i = Q(n) ? n :
|
|
3572
|
+
const i = Q(n) ? n : kn, a = e;
|
|
3573
3573
|
a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
|
|
3574
3574
|
let o = a.__localeChainCache.get(i);
|
|
3575
3575
|
if (!o) {
|
|
@@ -3894,7 +3894,7 @@ function Wl(e, t) {
|
|
|
3894
3894
|
}
|
|
3895
3895
|
return a;
|
|
3896
3896
|
}
|
|
3897
|
-
const Hl = "10.0.5", Dn = -1,
|
|
3897
|
+
const Hl = "10.0.5", Dn = -1, kn = "en-US", Yi = "", Xi = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
3898
3898
|
function jl() {
|
|
3899
3899
|
return {
|
|
3900
3900
|
upper: (e, t) => t === "text" && Q(e) ? e.toUpperCase() : t === "vnode" && fe(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
@@ -3924,7 +3924,7 @@ const qi = (e) => {
|
|
|
3924
3924
|
}, Zl = () => Qo;
|
|
3925
3925
|
let Ji = 0;
|
|
3926
3926
|
function Ql(e = {}) {
|
|
3927
|
-
const t = Ee(e.onWarn) ? e.onWarn : Us, n = Q(e.version) ? e.version : Hl, i = Q(e.locale) || Ee(e.locale) ? e.locale :
|
|
3927
|
+
const t = Ee(e.onWarn) ? e.onWarn : Us, n = Q(e.version) ? e.version : Hl, i = Q(e.locale) || Ee(e.locale) ? e.locale : kn, a = Ee(i) ? kn : i, o = Ie(e.fallbackLocale) || pe(e.fallbackLocale) || Q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, r = pe(e.messages) ? e.messages : Bn(a), l = pe(e.datetimeFormats) ? e.datetimeFormats : Bn(a), s = pe(e.numberFormats) ? e.numberFormats : Bn(a), u = Ne(be(), e.modifiers, jl()), m = e.pluralRules || be(), d = Ee(e.missing) ? e.missing : null, c = Ce(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = Ce(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, _ = !!e.unresolving, y = Ee(e.postTranslation) ? e.postTranslation : null, g = pe(e.processor) ? e.processor : null, v = Ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, k = !!e.escapeParameter, A = Ee(e.messageCompiler) ? e.messageCompiler : Xo, M = Ee(e.messageResolver) ? e.messageResolver : qo || Gl, O = Ee(e.localeFallbacker) ? e.localeFallbacker : Jo || Nl, w = fe(e.fallbackContext) ? e.fallbackContext : void 0, x = e, S = fe(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), I = fe(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), N = fe(x.__meta) ? x.__meta : {};
|
|
3928
3928
|
Ji++;
|
|
3929
3929
|
const P = {
|
|
3930
3930
|
version: n,
|
|
@@ -3942,7 +3942,7 @@ function Ql(e = {}) {
|
|
|
3942
3942
|
postTranslation: y,
|
|
3943
3943
|
processor: g,
|
|
3944
3944
|
warnHtmlMessage: v,
|
|
3945
|
-
escapeParameter:
|
|
3945
|
+
escapeParameter: k,
|
|
3946
3946
|
messageCompiler: A,
|
|
3947
3947
|
messageResolver: M,
|
|
3948
3948
|
localeFallbacker: O,
|
|
@@ -3950,7 +3950,7 @@ function Ql(e = {}) {
|
|
|
3950
3950
|
onWarn: t,
|
|
3951
3951
|
__meta: N
|
|
3952
3952
|
};
|
|
3953
|
-
return P.datetimeFormats = l, P.numberFormats = s, P.__datetimeFormatters =
|
|
3953
|
+
return P.datetimeFormats = l, P.numberFormats = s, P.__datetimeFormatters = S, P.__numberFormatters = I, __INTLIFY_PROD_DEVTOOLS__ && Tl(P, n, N), P;
|
|
3954
3954
|
}
|
|
3955
3955
|
const Bn = (e) => ({ [e]: be() });
|
|
3956
3956
|
function wi(e, t, n, i, a) {
|
|
@@ -3989,9 +3989,9 @@ function Zi(e, ...t) {
|
|
|
3989
3989
|
if (!Q(s) || s === "")
|
|
3990
3990
|
return new Intl.DateTimeFormat(E, d).format(u);
|
|
3991
3991
|
let y = {}, g, v = null;
|
|
3992
|
-
const
|
|
3992
|
+
const k = "datetime format";
|
|
3993
3993
|
for (let O = 0; O < _.length && (g = _[O], y = n[g] || {}, v = y[s], !pe(v)); O++)
|
|
3994
|
-
wi(e, s, g, c,
|
|
3994
|
+
wi(e, s, g, c, k);
|
|
3995
3995
|
if (!pe(v) || !Q(g))
|
|
3996
3996
|
return i ? Dn : s;
|
|
3997
3997
|
let A = `${g}__${s}`;
|
|
@@ -4066,9 +4066,9 @@ function eo(e, ...t) {
|
|
|
4066
4066
|
if (!Q(s) || s === "")
|
|
4067
4067
|
return new Intl.NumberFormat(E, d).format(u);
|
|
4068
4068
|
let y = {}, g, v = null;
|
|
4069
|
-
const
|
|
4069
|
+
const k = "number format";
|
|
4070
4070
|
for (let O = 0; O < _.length && (g = _[O], y = n[g] || {}, v = y[s], !pe(v)); O++)
|
|
4071
|
-
wi(e, s, g, c,
|
|
4071
|
+
wi(e, s, g, c, k);
|
|
4072
4072
|
if (!pe(v) || !Q(g))
|
|
4073
4073
|
return i ? Dn : s;
|
|
4074
4074
|
let A = `${g}__${s}`;
|
|
@@ -4131,17 +4131,17 @@ function uu(e = {}) {
|
|
|
4131
4131
|
Pe(e.pluralIndex) && lu(n, s);
|
|
4132
4132
|
const u = (g) => s[g];
|
|
4133
4133
|
function m(g, v) {
|
|
4134
|
-
const
|
|
4135
|
-
return
|
|
4134
|
+
const k = Ee(e.messages) ? e.messages(g, !!v) : fe(e.messages) ? e.messages[g] : !1;
|
|
4135
|
+
return k || (e.parent ? e.parent.message(g) : iu);
|
|
4136
4136
|
}
|
|
4137
4137
|
const d = (g) => e.modifiers ? e.modifiers[g] : nu, c = pe(e.processor) && Ee(e.processor.normalize) ? e.processor.normalize : au, p = pe(e.processor) && Ee(e.processor.interpolate) ? e.processor.interpolate : ru, E = pe(e.processor) && Q(e.processor.type) ? e.processor.type : ou, y = {
|
|
4138
4138
|
list: l,
|
|
4139
4139
|
named: u,
|
|
4140
4140
|
plural: o,
|
|
4141
4141
|
linked: (g, ...v) => {
|
|
4142
|
-
const [
|
|
4142
|
+
const [k, A] = v;
|
|
4143
4143
|
let M = "text", O = "";
|
|
4144
|
-
v.length === 1 ? fe(
|
|
4144
|
+
v.length === 1 ? fe(k) ? (O = k.modifier || O, M = k.type || M) : Q(k) && (O = k || O) : v.length === 2 && (Q(k) && (O = k || O), Q(A) && (M = A || M));
|
|
4145
4145
|
const w = m(g, !0)(y), x = (
|
|
4146
4146
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
4147
4147
|
M === "vnode" && Ie(w) && O ? w[0] : w
|
|
@@ -4160,7 +4160,7 @@ const io = () => "", Ke = (e) => Ee(e);
|
|
|
4160
4160
|
function oo(e, ...t) {
|
|
4161
4161
|
const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: r, messages: l } = e, [s, u] = ii(...t), m = Ce(u.missingWarn) ? u.missingWarn : e.missingWarn, d = Ce(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, c = Ce(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, p = !!u.resolvedMessage, E = Q(u.default) || Ce(u.default) ? Ce(u.default) ? o ? s : () => s : u.default : n ? o ? s : () => s : null, _ = n || E != null && (Q(E) || Ee(E)), y = yi(e, u);
|
|
4162
4162
|
c && cu(u);
|
|
4163
|
-
let [g, v,
|
|
4163
|
+
let [g, v, k] = p ? [
|
|
4164
4164
|
s,
|
|
4165
4165
|
y,
|
|
4166
4166
|
l[y] || be()
|
|
@@ -4173,7 +4173,7 @@ function oo(e, ...t) {
|
|
|
4173
4173
|
}, x = Ke(A) ? A : ia(e, s, v, A, M, w);
|
|
4174
4174
|
if (O)
|
|
4175
4175
|
return A;
|
|
4176
|
-
const
|
|
4176
|
+
const S = pu(e, v, k, u), I = uu(S), N = du(e, x, I), P = i ? i(N, s) : N;
|
|
4177
4177
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
4178
4178
|
const D = {
|
|
4179
4179
|
timestamp: Date.now(),
|
|
@@ -4274,7 +4274,7 @@ function pu(e, t, n, i) {
|
|
|
4274
4274
|
return e.processor && (c.processor = e.processor), i.list && (c.list = i.list), i.named && (c.named = i.named), Pe(i.plural) && (c.pluralIndex = i.plural), c;
|
|
4275
4275
|
}
|
|
4276
4276
|
cl();
|
|
4277
|
-
var fu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6fdaeda8-307f-4816-ac24-eb83c9a43fb5", 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_6fdaeda8-307f-4816-ac24-eb83c9a43fb5", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-0.7.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-8.14.3", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1750", npm_package_dependencies__feedmepos_ui_library: "1.7.0", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250728.1.0", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.6", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.11/x64", JOURNAL_STREAM: "9:12714", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.5/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "16821405525", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "376ce72a1f820e1202bc3ea5beb283cdb5cd6379", 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_8fef57b6-7119-4c0c-a0f9-c07526d16e14", INVOCATION_ID: "bcb4f633c84a4c7ea90c44ae5fd60992", 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: "388", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000011075", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.19", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.18-beta.2", 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: "376ce72a1f820e1202bc3ea5beb283cdb5cd6379", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_6fdaeda8-307f-4816-ac24-eb83c9a43fb5", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "7780463", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_6fdaeda8-307f-4816-ac24-eb83c9a43fb5", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.5.26", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_6fdaeda8-307f-4816-ac24-eb83c9a43fb5", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
4277
|
+
var fu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_d1e7a846-9113-46da-a41d-f954bb7e3e7a", 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_d1e7a846-9113-46da-a41d-f954bb7e3e7a", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-0.7.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.0.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1751", npm_package_dependencies__feedmepos_ui_library: "1.7.0", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250804.2.0", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.6", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.11/x64", JOURNAL_STREAM: "9:13536", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.5/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "16876207365", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "6401f42a9453c84c6ab8c30b187990da799768c8", 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_b46b2853-d889-4c47-a42f-44cc92369f19", INVOCATION_ID: "2d547cbd7c3046ed95d1e4f872f7f203", 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: "389", 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 1000011562", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.26", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.19-beta", 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: "6401f42a9453c84c6ab8c30b187990da799768c8", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_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_d1e7a846-9113-46da-a41d-f954bb7e3e7a", 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_d1e7a846-9113-46da-a41d-f954bb7e3e7a", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.5.26", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_d1e7a846-9113-46da-a41d-f954bb7e3e7a", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
4278
4278
|
const hu = "10.0.5";
|
|
4279
4279
|
function gu() {
|
|
4280
4280
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Dt().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Dt().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Dt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Dt().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -4376,12 +4376,12 @@ function wu(e = {}) {
|
|
|
4376
4376
|
let r = Ce(e.inheritLocale) ? e.inheritLocale : !0;
|
|
4377
4377
|
const l = o(
|
|
4378
4378
|
// prettier-ignore
|
|
4379
|
-
t && r ? t.locale.value : Q(e.locale) ? e.locale :
|
|
4379
|
+
t && r ? t.locale.value : Q(e.locale) ? e.locale : kn
|
|
4380
4380
|
), s = o(
|
|
4381
4381
|
// prettier-ignore
|
|
4382
4382
|
t && r ? t.fallbackLocale.value : Q(e.fallbackLocale) || Ie(e.fallbackLocale) || pe(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
4383
4383
|
), u = o(aa(l.value, e)), m = o(pe(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), d = o(pe(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
4384
|
-
let c = t ? t.missingWarn : Ce(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : Ce(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : Ce(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, y = Ee(e.missing) ? e.missing : null, g = Ee(e.missing) ? uo(e.missing) : null, v = Ee(e.postTranslation) ? e.postTranslation : null,
|
|
4384
|
+
let c = t ? t.missingWarn : Ce(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : Ce(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : Ce(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, y = Ee(e.missing) ? e.missing : null, g = Ee(e.missing) ? uo(e.missing) : null, v = Ee(e.postTranslation) ? e.postTranslation : null, k = t ? t.warnHtmlMessage : Ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!e.escapeParameter;
|
|
4385
4385
|
const M = t ? t.modifiers : pe(e.modifiers) ? e.modifiers : {};
|
|
4386
4386
|
let O = e.pluralRules || t && t.pluralRules, w;
|
|
4387
4387
|
w = (() => {
|
|
@@ -4399,7 +4399,7 @@ function wu(e = {}) {
|
|
|
4399
4399
|
fallbackFormat: _,
|
|
4400
4400
|
unresolving: !0,
|
|
4401
4401
|
postTranslation: v === null ? void 0 : v,
|
|
4402
|
-
warnHtmlMessage:
|
|
4402
|
+
warnHtmlMessage: k,
|
|
4403
4403
|
escapeParameter: A,
|
|
4404
4404
|
messageResolver: e.messageResolver,
|
|
4405
4405
|
messageCompiler: e.messageCompiler,
|
|
@@ -4409,7 +4409,7 @@ function wu(e = {}) {
|
|
|
4409
4409
|
const W = Ql(F);
|
|
4410
4410
|
return i && qi(W), W;
|
|
4411
4411
|
})(), Jt(w, l.value, s.value);
|
|
4412
|
-
function
|
|
4412
|
+
function S() {
|
|
4413
4413
|
return [
|
|
4414
4414
|
l.value,
|
|
4415
4415
|
s.value,
|
|
@@ -4442,7 +4442,7 @@ function wu(e = {}) {
|
|
|
4442
4442
|
F !== null && (g = uo(F)), y = F, w.missing = g;
|
|
4443
4443
|
}
|
|
4444
4444
|
const ce = (F, W, he, we, et, un) => {
|
|
4445
|
-
|
|
4445
|
+
S();
|
|
4446
4446
|
let Ut;
|
|
4447
4447
|
try {
|
|
4448
4448
|
fu.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (w.fallbackContext = t ? Zl() : void 0), Ut = F(w);
|
|
@@ -4494,7 +4494,7 @@ function wu(e = {}) {
|
|
|
4494
4494
|
return he;
|
|
4495
4495
|
}, () => ii(...F), "translate", (W) => W[oi](...F), (W) => [ao(W)], (W) => Ie(W));
|
|
4496
4496
|
}
|
|
4497
|
-
function
|
|
4497
|
+
function Se(...F) {
|
|
4498
4498
|
return ce((W) => Reflect.apply(eo, null, [W, ...F]), () => ni(...F), "number format", (W) => W[ri](...F), so, (W) => Q(W) || Ie(W));
|
|
4499
4499
|
}
|
|
4500
4500
|
function je(...F) {
|
|
@@ -4618,10 +4618,10 @@ function wu(e = {}) {
|
|
|
4618
4618
|
_ = F, w.fallbackFormat = _;
|
|
4619
4619
|
},
|
|
4620
4620
|
get warnHtmlMessage() {
|
|
4621
|
-
return
|
|
4621
|
+
return k;
|
|
4622
4622
|
},
|
|
4623
4623
|
set warnHtmlMessage(F) {
|
|
4624
|
-
|
|
4624
|
+
k = F, w.warnHtmlMessage = F;
|
|
4625
4625
|
},
|
|
4626
4626
|
get escapeParameter() {
|
|
4627
4627
|
return A;
|
|
@@ -4639,7 +4639,7 @@ function wu(e = {}) {
|
|
|
4639
4639
|
setMissingHandler: le,
|
|
4640
4640
|
[vu]: bt
|
|
4641
4641
|
};
|
|
4642
|
-
return ue.datetimeFormats = D, ue.numberFormats = C, ue.rt = $, ue.te = Lt, ue.tm = yt, ue.d = K, ue.n = q, ue.getDateTimeFormat = xt, ue.setDateTimeFormat = f, ue.mergeDateTimeFormat = h, ue.getNumberFormat = L, ue.setNumberFormat = Y, ue.mergeNumberFormat = X, ue[oa] = n, ue[oi] = oe, ue[ai] = je, ue[ri] =
|
|
4642
|
+
return ue.datetimeFormats = D, ue.numberFormats = C, ue.rt = $, ue.te = Lt, ue.tm = yt, ue.d = K, ue.n = q, ue.getDateTimeFormat = xt, ue.setDateTimeFormat = f, ue.mergeDateTimeFormat = h, ue.getNumberFormat = L, ue.setNumberFormat = Y, ue.mergeNumberFormat = X, ue[oa] = n, ue[oi] = oe, ue[ai] = je, ue[ri] = Se, ue;
|
|
4643
4643
|
}
|
|
4644
4644
|
const Ei = {
|
|
4645
4645
|
tag: {
|
|
@@ -4682,7 +4682,7 @@ Ne({
|
|
|
4682
4682
|
validator: (e) => Pe(e) || !isNaN(e)
|
|
4683
4683
|
}
|
|
4684
4684
|
}, Ei);
|
|
4685
|
-
function
|
|
4685
|
+
function ku(e) {
|
|
4686
4686
|
return Ie(e) && !Q(e[0]);
|
|
4687
4687
|
}
|
|
4688
4688
|
function la(e, t, n, i) {
|
|
@@ -4695,7 +4695,7 @@ function la(e, t, n, i) {
|
|
|
4695
4695
|
let u = [r.key];
|
|
4696
4696
|
Ie(s) ? u = s.map((c, p) => {
|
|
4697
4697
|
const E = a[c.type], _ = E ? E({ [c.type]: c.value, index: p, parts: s }) : [c.value];
|
|
4698
|
-
return
|
|
4698
|
+
return ku(_) && (_[0].key = `${c.type}-${p}`), _;
|
|
4699
4699
|
}) : Q(s) && (u = [s]);
|
|
4700
4700
|
const m = Ne(be(), o), d = Q(e.tag) || fe(e.tag) ? e.tag : sa();
|
|
4701
4701
|
return De(d, m, u);
|
|
@@ -4719,7 +4719,7 @@ Ne({
|
|
|
4719
4719
|
type: [String, Object]
|
|
4720
4720
|
}
|
|
4721
4721
|
}, Ei);
|
|
4722
|
-
const
|
|
4722
|
+
const Su = /* @__PURE__ */ Ft("global-vue-i18n");
|
|
4723
4723
|
function ln(e = {}) {
|
|
4724
4724
|
const t = an();
|
|
4725
4725
|
if (t == null)
|
|
@@ -4742,7 +4742,7 @@ function ln(e = {}) {
|
|
|
4742
4742
|
return l;
|
|
4743
4743
|
}
|
|
4744
4744
|
function Cu(e) {
|
|
4745
|
-
const t = ga(e.isCE ?
|
|
4745
|
+
const t = ga(e.isCE ? Su : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
4746
4746
|
if (!t)
|
|
4747
4747
|
throw nn(e.isCE ? Yt.NOT_INSTALLED_WITH_PROVIDE : Yt.UNEXPECTED_ERROR);
|
|
4748
4748
|
return t;
|
|
@@ -4808,35 +4808,35 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4808
4808
|
},
|
|
4809
4809
|
emits: ["update:modelValue"],
|
|
4810
4810
|
setup(e, { emit: t }) {
|
|
4811
|
-
const n = e, i = t, a = st(), o = Ze(), r =
|
|
4811
|
+
const n = e, i = t, a = st(), o = Ze(), r = St(o), l = Ct(r), { t: s } = ln(), u = te(null), m = te([]), d = Ga({
|
|
4812
4812
|
dialog: a,
|
|
4813
4813
|
menuLoader: l,
|
|
4814
4814
|
isLocalOnly: n.isLocalOnly
|
|
4815
|
-
}), c = (v,
|
|
4816
|
-
v ? m.value = [...m.value,
|
|
4815
|
+
}), c = (v, k) => {
|
|
4816
|
+
v ? m.value = [...m.value, k] : m.value = m.value.filter((A) => A.value !== k.value), i(
|
|
4817
4817
|
"update:modelValue",
|
|
4818
4818
|
m.value.map((A) => A.value)
|
|
4819
4819
|
);
|
|
4820
4820
|
}, p = (v) => {
|
|
4821
|
-
m.value = m.value.filter((
|
|
4821
|
+
m.value = m.value.filter((k, A) => A !== v), i(
|
|
4822
4822
|
"update:modelValue",
|
|
4823
|
-
m.value.map((
|
|
4823
|
+
m.value.map((k) => k.value)
|
|
4824
4824
|
);
|
|
4825
4825
|
}, E = () => {
|
|
4826
4826
|
var v;
|
|
4827
4827
|
(v = u.value) == null || v.toggleMenu(!1), d.create();
|
|
4828
4828
|
}, _ = z(() => n.items.reduce(
|
|
4829
|
-
(v,
|
|
4829
|
+
(v, k) => (v[k.value] = k, v),
|
|
4830
4830
|
{}
|
|
4831
4831
|
)), y = z(() => m.value.length > 0 ? m.value.map((v) => v.label).join("/") : n.placeholder), g = te(!1);
|
|
4832
4832
|
return Fe(
|
|
4833
4833
|
() => n.modelValue,
|
|
4834
4834
|
(v) => {
|
|
4835
|
-
v != null && v.length ? m.value = v.map((
|
|
4835
|
+
v != null && v.length ? m.value = v.map((k) => _.value[k]).filter((k) => !!k) : m.value = [];
|
|
4836
4836
|
},
|
|
4837
4837
|
{ immediate: !0 }
|
|
4838
|
-
), (v,
|
|
4839
|
-
const A = H("FmIcon"), M = H("FmField"), O = H("FmMenuItem"), w = H("FmMenu"), x = H("FmFormGroup"),
|
|
4838
|
+
), (v, k) => {
|
|
4839
|
+
const A = H("FmIcon"), M = H("FmField"), O = H("FmMenuItem"), w = H("FmMenu"), x = H("FmFormGroup"), S = H("FmChipGroup");
|
|
4840
4840
|
return U(), re("div", Mu, [
|
|
4841
4841
|
R(x, {
|
|
4842
4842
|
"model-value": v.modelValue,
|
|
@@ -4852,7 +4852,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4852
4852
|
ref_key: "fmMenuRef",
|
|
4853
4853
|
ref: u,
|
|
4854
4854
|
"close-on-click": !1,
|
|
4855
|
-
onMenuChanged:
|
|
4855
|
+
onMenuChanged: k[1] || (k[1] = (N) => g.value = N)
|
|
4856
4856
|
}, {
|
|
4857
4857
|
"menu-button": G(() => [
|
|
4858
4858
|
R(M, {
|
|
@@ -4890,7 +4890,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4890
4890
|
B("button", {
|
|
4891
4891
|
class: "flex items-center py-8 px-16 space-x-8",
|
|
4892
4892
|
type: "button",
|
|
4893
|
-
onClick:
|
|
4893
|
+
onClick: k[0] || (k[0] = (N) => E())
|
|
4894
4894
|
}, [
|
|
4895
4895
|
R(A, {
|
|
4896
4896
|
color: "primary",
|
|
@@ -4907,7 +4907,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4907
4907
|
_: 1
|
|
4908
4908
|
}, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
|
|
4909
4909
|
m.value.length > 0 ? (U(), re("div", Nu, [
|
|
4910
|
-
R(
|
|
4910
|
+
R(S, {
|
|
4911
4911
|
disabled: v.disabled,
|
|
4912
4912
|
items: m.value.map((I) => ({ label: I.label })),
|
|
4913
4913
|
removable: "",
|
|
@@ -4974,7 +4974,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
4974
4974
|
return t({
|
|
4975
4975
|
hideMenu: m
|
|
4976
4976
|
}), (_, y) => {
|
|
4977
|
-
const g = H("FmIcon"), v = H("FmField"),
|
|
4977
|
+
const g = H("FmIcon"), v = H("FmField"), k = H("FmMenuItem"), A = H("FmMenu"), M = H("FmFormGroup"), O = H("FmChipGroup");
|
|
4978
4978
|
return U(), re("div", xu, [
|
|
4979
4979
|
R(M, {
|
|
4980
4980
|
"model-value": _.modelValue,
|
|
@@ -5017,13 +5017,13 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
|
|
|
5017
5017
|
]),
|
|
5018
5018
|
default: G(() => [
|
|
5019
5019
|
B("div", Uu, [
|
|
5020
|
-
(U(!0), re(Ue, null, at(_.items, (x) => (U(), Z(
|
|
5020
|
+
(U(!0), re(Ue, null, at(_.items, (x) => (U(), Z(k, {
|
|
5021
5021
|
key: x.value,
|
|
5022
5022
|
disabled: x.disabled,
|
|
5023
5023
|
"has-checkbox": !0,
|
|
5024
5024
|
label: x.label,
|
|
5025
|
-
"model-value": l.value.some((
|
|
5026
|
-
"onUpdate:modelValue": (
|
|
5025
|
+
"model-value": l.value.some((S) => S.value === x.value),
|
|
5026
|
+
"onUpdate:modelValue": (S) => s(S, x)
|
|
5027
5027
|
}, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue"]))), 128)),
|
|
5028
5028
|
Ae(_.$slots, "append-menu", {}, void 0, !0)
|
|
5029
5029
|
])
|
|
@@ -5093,18 +5093,18 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5093
5093
|
setup(e, {
|
|
5094
5094
|
emit: t
|
|
5095
5095
|
}) {
|
|
5096
|
-
const n = e, i = Te(), a = rn(), o = st(), r = Ze(), l =
|
|
5096
|
+
const n = e, i = Te(), a = rn(), o = st(), r = Ze(), l = St(r), s = Ct(l), u = Ya({
|
|
5097
5097
|
dialog: o,
|
|
5098
5098
|
menuLoader: s
|
|
5099
5099
|
}), {
|
|
5100
5100
|
checkMenuIsLoading: m
|
|
5101
|
-
} = Ct(
|
|
5101
|
+
} = Ct(St(Ze())), d = t, c = z(() => i.rules.item), p = z(() => i.categorizedItems), E = z(() => {
|
|
5102
5102
|
const T = p.value.map((V) => ({
|
|
5103
5103
|
label: V.name,
|
|
5104
5104
|
value: V.id
|
|
5105
5105
|
}));
|
|
5106
5106
|
return n.isAddon ? T : T.filter((V) => !!V.value);
|
|
5107
|
-
}), _ = z(() => c.value.addon), y = z(() => !E.value.find((T) => !!T.value)), g = z(() => Ta(n.form.category ? n.form : n.fallback) || []), v = z(() => g.value.reduce((T, V) => (T[V._id] = V, T), {})),
|
|
5107
|
+
}), _ = z(() => c.value.addon), y = z(() => !E.value.find((T) => !!T.value)), g = z(() => Ta(n.form.category ? n.form : n.fallback) || []), v = z(() => g.value.reduce((T, V) => (T[V._id] = V, T), {})), k = z({
|
|
5108
5108
|
get() {
|
|
5109
5109
|
return g.value.map((T) => T._id);
|
|
5110
5110
|
},
|
|
@@ -5126,8 +5126,8 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5126
5126
|
ref: A,
|
|
5127
5127
|
disabled: !c.value.category || n.isAddon || m(),
|
|
5128
5128
|
items: E.value,
|
|
5129
|
-
modelValue:
|
|
5130
|
-
"onUpdate:model-value": (T) =>
|
|
5129
|
+
modelValue: k.value,
|
|
5130
|
+
"onUpdate:model-value": (T) => k.value = T,
|
|
5131
5131
|
placeholder: C("menu.product.form.detail.category.placeholder")
|
|
5132
5132
|
}, {
|
|
5133
5133
|
"append-menu": () => R("button", {
|
|
@@ -5159,7 +5159,7 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5159
5159
|
const V = T == Mt.ADD_ON;
|
|
5160
5160
|
d("update:form", "category", n.isOverride ? V ? "" : ((j = n.fallback) == null ? void 0 : j.category) ?? ((le = E.value.find((Re) => !!Re.value)) == null ? void 0 : le.value) : V ? null : (ce = E.value.find((Re) => !!Re.value)) == null ? void 0 : ce.value), V && d("update:form", "additionalCategories", []);
|
|
5161
5161
|
}
|
|
5162
|
-
const
|
|
5162
|
+
const S = te(!1);
|
|
5163
5163
|
async function I() {
|
|
5164
5164
|
var T, V;
|
|
5165
5165
|
if (!n.form.name) {
|
|
@@ -5170,9 +5170,9 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5170
5170
|
} else
|
|
5171
5171
|
return;
|
|
5172
5172
|
}
|
|
5173
|
-
if (!
|
|
5173
|
+
if (!S.value)
|
|
5174
5174
|
try {
|
|
5175
|
-
|
|
5175
|
+
S.value = !0, a.pushDataLayer({
|
|
5176
5176
|
event: "menu_catalog_item_general_remy_suggest_description"
|
|
5177
5177
|
}), Ge.toggleDialog(!0);
|
|
5178
5178
|
const j = await ((T = Ge.getItemDescription) == null ? void 0 : T.call(Ge, {
|
|
@@ -5180,7 +5180,7 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5180
5180
|
}, !0)), le = (V = j == null ? void 0 : j.data) == null ? void 0 : V.value;
|
|
5181
5181
|
typeof le == "string" && d("update:form", "description", le);
|
|
5182
5182
|
} finally {
|
|
5183
|
-
|
|
5183
|
+
S.value = !1;
|
|
5184
5184
|
}
|
|
5185
5185
|
}
|
|
5186
5186
|
const N = z(() => i.subcategories), P = z(() => N.value.map((T) => ({
|
|
@@ -5195,7 +5195,7 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5195
5195
|
}
|
|
5196
5196
|
}), {
|
|
5197
5197
|
t: C
|
|
5198
|
-
} =
|
|
5198
|
+
} = ke();
|
|
5199
5199
|
return (T, V) => {
|
|
5200
5200
|
const j = H("fm-text-field"), le = H("fm-textarea"), ce = H("fm-radio"), Re = H("FmSnackbar"), $ = H("FmButton"), K = H("fm-radio-group"), q = H("FmFormGroup"), J = fo("tooltip");
|
|
5201
5201
|
return U(), Z(lt, {
|
|
@@ -5233,7 +5233,7 @@ const ec = /* @__PURE__ */ ve({
|
|
|
5233
5233
|
}, 8, ["disabled", "model-value", "placeholder"]), Xt(R(Ho, {
|
|
5234
5234
|
class: "absolute top-32 right-4 cursor-pointer",
|
|
5235
5235
|
onClick: I
|
|
5236
|
-
}, null, 512), [[J, b(yo)("Suggest description")]])])]), R(
|
|
5236
|
+
}, null, 512), [[J, b(yo)("Suggest description")]])])]), R(Ss, {
|
|
5237
5237
|
disabled: !c.value.thumbnail,
|
|
5238
5238
|
"model-value": T.thumbnail,
|
|
5239
5239
|
"onUpdate:modelValue": V[3] || (V[3] = (oe) => d("update:thumbnail", oe)),
|
|
@@ -5346,7 +5346,7 @@ const ua = /* @__PURE__ */ Rt(nc, [["render", ac]]), rc = /* @__PURE__ */ ve({
|
|
|
5346
5346
|
items: {},
|
|
5347
5347
|
position: t.groups.length - 1,
|
|
5348
5348
|
itemsLinked: []
|
|
5349
|
-
}), r = te(o()), { t: l } =
|
|
5349
|
+
}), r = te(o()), { t: l } = ke();
|
|
5350
5350
|
return (s, u) => n.value.create ? (U(), Z(b(Dc), {
|
|
5351
5351
|
key: 0,
|
|
5352
5352
|
"categorized-items": b(t).categorizedItems,
|
|
@@ -5402,7 +5402,7 @@ const cc = /* @__PURE__ */ Rt(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5402
5402
|
p && (r.value = ge(i.initialValue), c.readInventory());
|
|
5403
5403
|
}
|
|
5404
5404
|
), t({ getKey: () => i.bindingKey, trigger: o });
|
|
5405
|
-
const { t: d } =
|
|
5405
|
+
const { t: d } = ke(), c = Eo();
|
|
5406
5406
|
return (p, E) => {
|
|
5407
5407
|
const _ = H("fm-text-field"), y = H("fm-card"), g = H("fm-button"), v = H("fm-side-sheet");
|
|
5408
5408
|
return U(), re(Ue, null, [
|
|
@@ -5410,7 +5410,7 @@ const cc = /* @__PURE__ */ Rt(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5410
5410
|
R(v, {
|
|
5411
5411
|
id: "inventory-form",
|
|
5412
5412
|
modelValue: a.value,
|
|
5413
|
-
"onUpdate:modelValue": E[2] || (E[2] = (
|
|
5413
|
+
"onUpdate:modelValue": E[2] || (E[2] = (k) => a.value = k),
|
|
5414
5414
|
"close-button": !1,
|
|
5415
5415
|
"is-container": b(Be).FmForm,
|
|
5416
5416
|
"is-container-props": {
|
|
@@ -5453,7 +5453,7 @@ const cc = /* @__PURE__ */ Rt(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5453
5453
|
default: G(() => [
|
|
5454
5454
|
R(b(qa), {
|
|
5455
5455
|
modelValue: r.value,
|
|
5456
|
-
"onUpdate:modelValue": E[0] || (E[0] = (
|
|
5456
|
+
"onUpdate:modelValue": E[0] || (E[0] = (k) => r.value = k)
|
|
5457
5457
|
}, null, 8, ["modelValue"])
|
|
5458
5458
|
]),
|
|
5459
5459
|
_: 1
|
|
@@ -5522,7 +5522,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5522
5522
|
setup(e) {
|
|
5523
5523
|
const {
|
|
5524
5524
|
t
|
|
5525
|
-
} =
|
|
5525
|
+
} = ke(), n = e, i = Ea(e, "modelValue");
|
|
5526
5526
|
function a(r, l) {
|
|
5527
5527
|
l ? i.value = {
|
|
5528
5528
|
...i.value,
|
|
@@ -5569,9 +5569,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5569
5569
|
},
|
|
5570
5570
|
emits: ["update:show", "submit"],
|
|
5571
5571
|
setup(e, { emit: t }) {
|
|
5572
|
-
const { t: n } =
|
|
5572
|
+
const { t: n } = ke(), i = t, a = te(!0), o = () => {
|
|
5573
5573
|
a.value = !1, i("update:show", !1);
|
|
5574
|
-
}, r = z(() => n("menu.price_tier.price_tier_config")), l = z(() => n("common.update")), s = e, u =
|
|
5574
|
+
}, r = z(() => n("menu.price_tier.price_tier_config")), l = z(() => n("common.update")), s = e, u = ko(s.menuStore), m = te(s.initialValue ? Za(s.initialValue) : {}), d = ui(
|
|
5575
5575
|
() => !ot.isEqual(s.initialValue || {}, m.value),
|
|
5576
5576
|
() => {
|
|
5577
5577
|
o();
|
|
@@ -5666,7 +5666,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5666
5666
|
i("update:priceTiers", s);
|
|
5667
5667
|
});
|
|
5668
5668
|
}
|
|
5669
|
-
const { t: l } =
|
|
5669
|
+
const { t: l } = ke();
|
|
5670
5670
|
return (s, u) => {
|
|
5671
5671
|
const m = H("FmButton"), d = H("FmTooltip");
|
|
5672
5672
|
return s.$slots.default ? Ae(s.$slots, "default", { key: 0 }) : (U(), Z(d, {
|
|
@@ -5694,9 +5694,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5694
5694
|
key: 1
|
|
5695
5695
|
}, Ec = {
|
|
5696
5696
|
class: "xs:overflow-x-scroll"
|
|
5697
|
-
},
|
|
5697
|
+
}, kc = {
|
|
5698
5698
|
class: "xs:min-w-[640px]"
|
|
5699
|
-
},
|
|
5699
|
+
}, Sc = /* @__PURE__ */ ve({
|
|
5700
5700
|
__name: "OptionTable",
|
|
5701
5701
|
props: {
|
|
5702
5702
|
config: {},
|
|
@@ -5720,7 +5720,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5720
5720
|
searchKey: p,
|
|
5721
5721
|
filter: E
|
|
5722
5722
|
} = Qa(), _ = z(() => {
|
|
5723
|
-
const $ = Object.entries(n.group.items).filter(([, K]) => E([K.code || "", K.name || K.fallbackName, v(K.price ?? K.fallbackPrice),
|
|
5723
|
+
const $ = Object.entries(n.group.items).filter(([, K]) => E([K.code || "", K.name || K.fallbackName, v(K.price ?? K.fallbackPrice), k(K.orderFrom || K.fallbackOrder), ...(K.items || []).map((q) => [q.code || "", q.name || q.fallbackName, v(q.price ?? q.fallbackPrice), k(q.orderFrom || q.fallbackOrder)].join(""))]));
|
|
5724
5724
|
return Object.fromEntries($);
|
|
5725
5725
|
}), y = ($) => ({
|
|
5726
5726
|
...n.config,
|
|
@@ -5728,12 +5728,12 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5728
5728
|
link: n.config.link($),
|
|
5729
5729
|
name: n.config.name($),
|
|
5730
5730
|
orderFrom: n.config.orderFrom($)
|
|
5731
|
-
}), g = z(() => !0), v = ($) => $ ? Bt($, !1) : "",
|
|
5731
|
+
}), g = z(() => !0), v = ($) => $ ? Bt($, !1) : "", k = ($) => {
|
|
5732
5732
|
var K;
|
|
5733
5733
|
return $ == null ? "" : (K = Ma()[$]) == null ? void 0 : K.label;
|
|
5734
5734
|
}, A = z(() => Object.values(_.value)), M = te({}), {
|
|
5735
5735
|
t: O
|
|
5736
|
-
} =
|
|
5736
|
+
} = ke(), w = te([{
|
|
5737
5737
|
accessorKey: "isDefault",
|
|
5738
5738
|
header: () => O("menu.group.option.is_default"),
|
|
5739
5739
|
enableSorting: !1,
|
|
@@ -5748,9 +5748,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5748
5748
|
modelValue: J,
|
|
5749
5749
|
disabled: !y(q.combinationKey).isDefault,
|
|
5750
5750
|
"onUpdate:modelValue": (oe) => {
|
|
5751
|
-
var
|
|
5751
|
+
var Se;
|
|
5752
5752
|
if (K) {
|
|
5753
|
-
const je = (
|
|
5753
|
+
const je = (Se = $.row.getParentRow()) == null ? void 0 : Se.original;
|
|
5754
5754
|
if (!je) return;
|
|
5755
5755
|
N(je._id, q.combinationKey ?? "", "isDefault", oe);
|
|
5756
5756
|
} else
|
|
@@ -5789,9 +5789,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5789
5789
|
"onUpdate:modelValue": (ae) => {
|
|
5790
5790
|
var oe;
|
|
5791
5791
|
if (J) {
|
|
5792
|
-
const
|
|
5793
|
-
if (!
|
|
5794
|
-
N(
|
|
5792
|
+
const Se = (oe = $.row.getParentRow()) == null ? void 0 : oe.original;
|
|
5793
|
+
if (!Se) return;
|
|
5794
|
+
N(Se._id, q.combinationKey ?? "", "name", ae);
|
|
5795
5795
|
} else
|
|
5796
5796
|
I(q._id, "name", ae);
|
|
5797
5797
|
},
|
|
@@ -5830,10 +5830,10 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5830
5830
|
"onUpdate:modelValue": (ae) => {
|
|
5831
5831
|
var oe;
|
|
5832
5832
|
if (ne) {
|
|
5833
|
-
const
|
|
5834
|
-
if (!
|
|
5833
|
+
const Se = (oe = $.row.getParentRow()) == null ? void 0 : oe.original;
|
|
5834
|
+
if (!Se) return;
|
|
5835
5835
|
N(
|
|
5836
|
-
|
|
5836
|
+
Se._id,
|
|
5837
5837
|
q.combinationKey ?? "",
|
|
5838
5838
|
// @ts-ignore
|
|
5839
5839
|
"price",
|
|
@@ -5862,10 +5862,10 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5862
5862
|
"onUpdate:modelValue": (ae) => {
|
|
5863
5863
|
var oe;
|
|
5864
5864
|
if (ne) {
|
|
5865
|
-
const
|
|
5866
|
-
if (!
|
|
5865
|
+
const Se = (oe = $.row.getParentRow()) == null ? void 0 : oe.original;
|
|
5866
|
+
if (!Se) return;
|
|
5867
5867
|
N(
|
|
5868
|
-
|
|
5868
|
+
Se._id,
|
|
5869
5869
|
q.combinationKey ?? "",
|
|
5870
5870
|
// @ts-ignore
|
|
5871
5871
|
"orderFrom",
|
|
@@ -5976,7 +5976,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
5976
5976
|
orderFrom: y(null).showOrderFrom
|
|
5977
5977
|
// action: rules(null).inventory || rules(null).link
|
|
5978
5978
|
}));
|
|
5979
|
-
async function
|
|
5979
|
+
async function S() {
|
|
5980
5980
|
const $ = (/* @__PURE__ */ new Date()).toISOString();
|
|
5981
5981
|
i("update:group", {
|
|
5982
5982
|
...n.group,
|
|
@@ -6009,8 +6009,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6009
6009
|
});
|
|
6010
6010
|
}
|
|
6011
6011
|
function N($, K, q, J) {
|
|
6012
|
-
var
|
|
6013
|
-
const ne = ge(n.group), ae = (
|
|
6012
|
+
var Se, je;
|
|
6013
|
+
const ne = ge(n.group), ae = (Se = ne.items[$].items) == null ? void 0 : Se.findIndex((bt) => bt.combinationKey === K);
|
|
6014
6014
|
if (!sn.isSet(ae)) return;
|
|
6015
6015
|
let oe = (je = ne.items[$].items) == null ? void 0 : je[ae];
|
|
6016
6016
|
oe && (oe = {
|
|
@@ -6094,9 +6094,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6094
6094
|
variant: "secondary",
|
|
6095
6095
|
label: b(O)("menu.group.option.add_option"),
|
|
6096
6096
|
"prepend-icon": "add",
|
|
6097
|
-
onClick:
|
|
6097
|
+
onClick: S
|
|
6098
6098
|
}, null, 8, ["text-color", "border-color", "label"])]))], 64)) : se("", !0)]),
|
|
6099
|
-
default: G(() => [B("div", Ec, [B("div",
|
|
6099
|
+
default: G(() => [B("div", Ec, [B("div", kc, [R(J, {
|
|
6100
6100
|
"column-defs": w.value,
|
|
6101
6101
|
"column-visibility": x.value,
|
|
6102
6102
|
draggable: !Re.value && y(null).name,
|
|
@@ -6131,7 +6131,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6131
6131
|
emits: ["update:group", "submit:group", "status:show"],
|
|
6132
6132
|
setup(e, { expose: t, emit: n }) {
|
|
6133
6133
|
let i = e;
|
|
6134
|
-
const a = n, o = Te(), r = rn(), l = st(), s = Ze(), u = Ct(
|
|
6134
|
+
const a = n, o = Te(), r = rn(), l = st(), s = Ze(), u = Ct(St(s)), m = te(!1), d = te(!1), c = (C) => {
|
|
6135
6135
|
sn.isBoolean(C) ? d.value = C : d.value = !d.value;
|
|
6136
6136
|
}, p = z(() => i.group ? i.config(i.group) : null), E = z(() => Ro(p.value)), _ = (C) => E.value.includes(C), y = z(() => [
|
|
6137
6137
|
{
|
|
@@ -6171,7 +6171,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6171
6171
|
}
|
|
6172
6172
|
}).onPrimary(T) : T();
|
|
6173
6173
|
}
|
|
6174
|
-
function
|
|
6174
|
+
function k(C) {
|
|
6175
6175
|
return new Ao(o, u.updateMenu, l).mapGroups(
|
|
6176
6176
|
[C],
|
|
6177
6177
|
p.value.isOverride
|
|
@@ -6195,7 +6195,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6195
6195
|
d.value = !1;
|
|
6196
6196
|
}
|
|
6197
6197
|
), x = z(() => i.action === "add" ? D("common.add") : D("common.update"));
|
|
6198
|
-
async function
|
|
6198
|
+
async function S() {
|
|
6199
6199
|
var C;
|
|
6200
6200
|
if (i.action === "add") {
|
|
6201
6201
|
const { group: T, linkItems: V } = Co(i.group), j = {
|
|
@@ -6253,7 +6253,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6253
6253
|
trigger: c,
|
|
6254
6254
|
show: d
|
|
6255
6255
|
});
|
|
6256
|
-
const { t: D } =
|
|
6256
|
+
const { t: D } = ke();
|
|
6257
6257
|
return (C, T) => {
|
|
6258
6258
|
const V = H("fm-text-field"), j = H("fm-stepper-field"), le = H("FmFormGroup"), ce = H("fm-radio"), Re = H("fm-radio-group"), $ = H("fm-switch"), K = H("fm-button"), q = H("fm-side-sheet");
|
|
6259
6259
|
return U(), re(Ue, null, [
|
|
@@ -6264,7 +6264,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6264
6264
|
"onUpdate:modelValue": T[8] || (T[8] = (J) => d.value = J),
|
|
6265
6265
|
"is-container": b(Be).FmForm,
|
|
6266
6266
|
"is-container-props": {
|
|
6267
|
-
onValidationSuccess:
|
|
6267
|
+
onValidationSuccess: S,
|
|
6268
6268
|
blameFormChildOnValidationFailed: !0
|
|
6269
6269
|
},
|
|
6270
6270
|
"max-width": 720,
|
|
@@ -6403,13 +6403,13 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6403
6403
|
})
|
|
6404
6404
|
}, {
|
|
6405
6405
|
default: G(() => [
|
|
6406
|
-
R(
|
|
6406
|
+
R(Sc, {
|
|
6407
6407
|
"allow-refund-inventory": C.allowRefundInventory ?? !1,
|
|
6408
6408
|
"categorized-items": C.categorizedItems,
|
|
6409
6409
|
config: p.value,
|
|
6410
6410
|
group: C.group,
|
|
6411
6411
|
"onUpdate:group": T[5] || (T[5] = (J) => g(J)),
|
|
6412
|
-
"onUpdate:unmapGroup": T[6] || (T[6] = (J) => g(
|
|
6412
|
+
"onUpdate:unmapGroup": T[6] || (T[6] = (J) => g(k(J)))
|
|
6413
6413
|
}, null, 8, ["allow-refund-inventory", "categorized-items", "config", "group"])
|
|
6414
6414
|
]),
|
|
6415
6415
|
_: 1
|
|
@@ -6431,7 +6431,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6431
6431
|
emits: ["update:combinations"],
|
|
6432
6432
|
setup(e, { expose: t, emit: n }) {
|
|
6433
6433
|
var A, M;
|
|
6434
|
-
const i = e, a = n, o = Te(), r = st(), l = Ct(
|
|
6434
|
+
const i = e, a = n, o = Te(), r = st(), l = Ct(St(Ze())), s = te([]), u = te(i.combinations[0].combinationKey || ""), m = z(
|
|
6435
6435
|
() => s.value.findIndex((O) => O.combinationKey == u.value)
|
|
6436
6436
|
), d = z(
|
|
6437
6437
|
() => i.combinations.map((O) => ({
|
|
@@ -6444,9 +6444,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6444
6444
|
const O = ((P = (N = s.value[m.value]) == null ? void 0 : N.groups) == null ? void 0 : P.find((D) => D._id === i.groupId)) || {
|
|
6445
6445
|
_id: i.groupId,
|
|
6446
6446
|
groupKey: ""
|
|
6447
|
-
}, x = o.state.menu.modules.group.find((D) => D._id === i.groupId),
|
|
6447
|
+
}, x = o.state.menu.modules.group.find((D) => D._id === i.groupId), S = Object.entries({ ...O, items: void 0 }).filter(([, D]) => !!D), I = {
|
|
6448
6448
|
...x,
|
|
6449
|
-
...Object.fromEntries(
|
|
6449
|
+
...Object.fromEntries(S),
|
|
6450
6450
|
items: x.items.map((D) => {
|
|
6451
6451
|
var T;
|
|
6452
6452
|
const C = (T = O.items) == null ? void 0 : T.find(
|
|
@@ -6467,11 +6467,11 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6467
6467
|
var I, N;
|
|
6468
6468
|
const w = (I = s.value[m.value].groups) == null ? void 0 : I.findIndex(
|
|
6469
6469
|
(P) => P._id === i.groupId
|
|
6470
|
-
), x = ge(s.value),
|
|
6470
|
+
), x = ge(s.value), S = { ...ci(O), _id: i.groupId, groupKey: "" };
|
|
6471
6471
|
(w ?? -1) < 0 ? x[m.value] = {
|
|
6472
6472
|
...x[m.value],
|
|
6473
|
-
groups: [...((N = x[m.value]) == null ? void 0 : N.groups) || [],
|
|
6474
|
-
} : x[m.value].groups[w] =
|
|
6473
|
+
groups: [...((N = x[m.value]) == null ? void 0 : N.groups) || [], S]
|
|
6474
|
+
} : x[m.value].groups[w] = S, s.value = x;
|
|
6475
6475
|
}
|
|
6476
6476
|
function E(O) {
|
|
6477
6477
|
const w = d.value.length;
|
|
@@ -6502,8 +6502,8 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6502
6502
|
var x;
|
|
6503
6503
|
return {
|
|
6504
6504
|
...w,
|
|
6505
|
-
groups: (x = w.groups) == null ? void 0 : x.map((
|
|
6506
|
-
...or(
|
|
6505
|
+
groups: (x = w.groups) == null ? void 0 : x.map((S) => ({
|
|
6506
|
+
...or(S, _())
|
|
6507
6507
|
}))
|
|
6508
6508
|
};
|
|
6509
6509
|
});
|
|
@@ -6521,9 +6521,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6521
6521
|
show: (A = v.value) == null ? void 0 : A.show,
|
|
6522
6522
|
trigger: (M = v.value) == null ? void 0 : M.trigger
|
|
6523
6523
|
});
|
|
6524
|
-
const { t:
|
|
6524
|
+
const { t: k } = ke();
|
|
6525
6525
|
return (O, w) => {
|
|
6526
|
-
const x = H("fm-select"),
|
|
6526
|
+
const x = H("fm-select"), S = H("fm-button"), I = H("fm-card");
|
|
6527
6527
|
return U(), Z(ma, {
|
|
6528
6528
|
ref_key: "baseFormRef",
|
|
6529
6529
|
ref: v,
|
|
@@ -6532,7 +6532,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6532
6532
|
config: _,
|
|
6533
6533
|
group: c.value,
|
|
6534
6534
|
action: "update",
|
|
6535
|
-
title: b(
|
|
6535
|
+
title: b(k)("menu.group.update"),
|
|
6536
6536
|
"onUpdate:group": w[3] || (w[3] = (N) => p(N)),
|
|
6537
6537
|
"onSubmit:group": w[4] || (w[4] = (N) => y()),
|
|
6538
6538
|
"onStatus:show": w[5] || (w[5] = (N) => g.value = N)
|
|
@@ -6547,7 +6547,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6547
6547
|
variant: "outlined"
|
|
6548
6548
|
}, {
|
|
6549
6549
|
default: G(() => [
|
|
6550
|
-
B("p", Oc, ye(b(
|
|
6550
|
+
B("p", Oc, ye(b(k)("menu.group.option.variant")), 1),
|
|
6551
6551
|
B("div", Ic, [
|
|
6552
6552
|
R(x, {
|
|
6553
6553
|
modelValue: u.value,
|
|
@@ -6556,13 +6556,13 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6556
6556
|
class: "flex-1"
|
|
6557
6557
|
}, null, 8, ["modelValue", "items"]),
|
|
6558
6558
|
B("div", Tc, [
|
|
6559
|
-
R(
|
|
6559
|
+
R(S, {
|
|
6560
6560
|
variant: b(At).Tertiary,
|
|
6561
6561
|
"prepend-icon": "keyboard_arrow_left",
|
|
6562
6562
|
size: "lg",
|
|
6563
6563
|
onClick: w[1] || (w[1] = (N) => E("left"))
|
|
6564
6564
|
}, null, 8, ["variant"]),
|
|
6565
|
-
R(
|
|
6565
|
+
R(S, {
|
|
6566
6566
|
variant: b(At).Tertiary,
|
|
6567
6567
|
"prepend-icon": "keyboard_arrow_right",
|
|
6568
6568
|
size: "lg",
|
|
@@ -6592,7 +6592,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6592
6592
|
setup(e) {
|
|
6593
6593
|
const t = e, n = st(), { emitData: i, emitAction: a } = bo(), o = Te(), r = z(() => o.rules.group), l = z(() => o.groups);
|
|
6594
6594
|
function s(y) {
|
|
6595
|
-
return ge(y ?? []).sort((v,
|
|
6595
|
+
return ge(y ?? []).sort((v, k) => v.position - k.position);
|
|
6596
6596
|
}
|
|
6597
6597
|
const u = z(() => s(l.value).reduce((y, g) => (y[g._id] = {
|
|
6598
6598
|
name: g.name,
|
|
@@ -6604,7 +6604,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6604
6604
|
}))
|
|
6605
6605
|
]), d = z(() => !!o.state.currentCatalogId || !!o.state.currentSchedulerId);
|
|
6606
6606
|
z(() => {
|
|
6607
|
-
const y = !o.state.currentSchedulerId, g = o.rules.group.type, v = o.version == ee.F_MENU_VERSION.enum.v3,
|
|
6607
|
+
const y = !o.state.currentSchedulerId, g = o.rules.group.type, v = o.version == ee.F_MENU_VERSION.enum.v3, k = o.rules.item.orderFromActiveOnly, A = o.rules.item.bindToVariant;
|
|
6608
6608
|
return function(O) {
|
|
6609
6609
|
return {
|
|
6610
6610
|
isDefault: (w) => !d.value && !w,
|
|
@@ -6616,7 +6616,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6616
6616
|
priceTier: o.isV4,
|
|
6617
6617
|
inventory: y ? v ? !d.value && O.type == ee.F_ADDON_GROUP_TYPE.enum.NORMAL : !d.value : !1,
|
|
6618
6618
|
orderFrom: (w) => y ? v ? O.type == ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? d.value : !!d.value == !w : d.value : !1,
|
|
6619
|
-
orderFromActiveOnly:
|
|
6619
|
+
orderFromActiveOnly: k,
|
|
6620
6620
|
showOrderFrom: y ? v ? d.value ? !0 : O.type == ee.F_ADDON_GROUP_TYPE.enum.PRODUCT : d.value : !1,
|
|
6621
6621
|
bindToVariant: A,
|
|
6622
6622
|
isOverride: d.value,
|
|
@@ -6631,11 +6631,11 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6631
6631
|
position: o.groups.length - 1,
|
|
6632
6632
|
itemsLinked: []
|
|
6633
6633
|
}));
|
|
6634
|
-
const c = te(ge(t.groupIds || [])), p = te(""), { t: E } =
|
|
6634
|
+
const c = te(ge(t.groupIds || [])), p = te(""), { t: E } = ke(), _ = () => {
|
|
6635
6635
|
i(c.value), a("primary"), n.close();
|
|
6636
6636
|
};
|
|
6637
6637
|
return (y, g) => {
|
|
6638
|
-
const v = H("FmSearch"),
|
|
6638
|
+
const v = H("FmSearch"), k = H("FmCheckbox"), A = H("FmButton");
|
|
6639
6639
|
return m.value.length > 0 ? (U(), re("div", Nc, [
|
|
6640
6640
|
B("div", null, [
|
|
6641
6641
|
R(v, {
|
|
@@ -6650,7 +6650,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6650
6650
|
(U(!0), re(Ue, null, at(m.value, (M) => (U(), re("div", {
|
|
6651
6651
|
key: M.value
|
|
6652
6652
|
}, [
|
|
6653
|
-
Xt(R(
|
|
6653
|
+
Xt(R(k, {
|
|
6654
6654
|
modelValue: c.value,
|
|
6655
6655
|
"onUpdate:modelValue": [
|
|
6656
6656
|
g[1] || (g[1] = (O) => c.value = O),
|
|
@@ -6659,7 +6659,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6659
6659
|
label: M.label,
|
|
6660
6660
|
value: M.value
|
|
6661
6661
|
}, null, 8, ["modelValue", "label", "value"]), [
|
|
6662
|
-
[
|
|
6662
|
+
[Sn, M.label.toLowerCase().includes(p.value.toLowerCase())]
|
|
6663
6663
|
])
|
|
6664
6664
|
]))), 128))
|
|
6665
6665
|
])
|
|
@@ -6723,9 +6723,9 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6723
6723
|
setup(e, {
|
|
6724
6724
|
emit: t
|
|
6725
6725
|
}) {
|
|
6726
|
-
const n = e, i = Ze(), a = Te(), o =
|
|
6726
|
+
const n = e, i = Ze(), a = Te(), o = ki(), r = st(), {
|
|
6727
6727
|
t: l
|
|
6728
|
-
} =
|
|
6728
|
+
} = ke(), s = t, u = z(() => a.rules.group), m = z(() => a.rules.item), d = z(() => a.groups);
|
|
6729
6729
|
function c(P, D) {
|
|
6730
6730
|
return ge(D ?? []).map((T) => {
|
|
6731
6731
|
const V = P.find((j) => j._id === T._id);
|
|
@@ -6845,13 +6845,13 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6845
6845
|
}) => De(Be.FmButton, {
|
|
6846
6846
|
icon: "edit",
|
|
6847
6847
|
variant: "tertiary",
|
|
6848
|
-
disabled: !
|
|
6848
|
+
disabled: !S(D),
|
|
6849
6849
|
textColor: "neutral-gray-400",
|
|
6850
6850
|
onClick: C
|
|
6851
6851
|
})
|
|
6852
6852
|
})]);
|
|
6853
6853
|
}
|
|
6854
|
-
}]),
|
|
6854
|
+
}]), k = z(() => ({
|
|
6855
6855
|
type: a.version !== ee.F_MENU_VERSION.enum.v4
|
|
6856
6856
|
}));
|
|
6857
6857
|
function A() {
|
|
@@ -6916,7 +6916,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6916
6916
|
groups: n.form.groups || []
|
|
6917
6917
|
}];
|
|
6918
6918
|
});
|
|
6919
|
-
function
|
|
6919
|
+
function S(P) {
|
|
6920
6920
|
var C;
|
|
6921
6921
|
if (!P) return !1;
|
|
6922
6922
|
if (m.value.overrideProductGroup) return !0;
|
|
@@ -6961,7 +6961,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
6961
6961
|
return [((V = p.value) == null ? void 0 : V.length) > 0 ? (U(), Z(T, {
|
|
6962
6962
|
key: 0,
|
|
6963
6963
|
"column-defs": v.value,
|
|
6964
|
-
"column-visibility":
|
|
6964
|
+
"column-visibility": k.value,
|
|
6965
6965
|
"row-data": p.value.map((j) => ({
|
|
6966
6966
|
_id: j
|
|
6967
6967
|
})),
|
|
@@ -7000,16 +7000,16 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7000
7000
|
}) {
|
|
7001
7001
|
const {
|
|
7002
7002
|
t: n
|
|
7003
|
-
} =
|
|
7003
|
+
} = ke(), i = e, a = t, o = Te(), r = z(() => o.rules.item), l = z(() => r.value.inventory);
|
|
7004
7004
|
function s(_, y, g, v) {
|
|
7005
7005
|
return !y || y && y.length === 0 ? [{
|
|
7006
7006
|
_id: "",
|
|
7007
7007
|
name: g || "",
|
|
7008
7008
|
binding: _ || []
|
|
7009
|
-
}] : y.map((
|
|
7010
|
-
_id:
|
|
7011
|
-
name: wo(
|
|
7012
|
-
binding:
|
|
7009
|
+
}] : y.map((k) => ({
|
|
7010
|
+
_id: k.combinationKey || "",
|
|
7011
|
+
name: wo(k.combinationKey || "", v),
|
|
7012
|
+
binding: k.inventoryBindings || []
|
|
7013
7013
|
}));
|
|
7014
7014
|
}
|
|
7015
7015
|
const u = z(() => {
|
|
@@ -7153,13 +7153,16 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7153
7153
|
},
|
|
7154
7154
|
emits: ["update:form"],
|
|
7155
7155
|
setup(e, { emit: t }) {
|
|
7156
|
-
const n = e, i = rn(), a = Te(), o =
|
|
7156
|
+
const n = e, i = rn(), a = Te(), o = ko(), { t: r } = ke(), l = t, s = z(() => a.rules.item), u = z(() => {
|
|
7157
7157
|
var A, M;
|
|
7158
|
-
const v = n.isOverride ? ((A = n.fallback) == null ? void 0 : A.unit) ?? ((M = n.fallback) == null ? void 0 : M.perXUnit) : void 0,
|
|
7159
|
-
return
|
|
7158
|
+
const v = n.isOverride ? ((A = n.fallback) == null ? void 0 : A.unit) ?? ((M = n.fallback) == null ? void 0 : M.perXUnit) : void 0, k = n.form.unit ?? n.form.perXUnit ?? v;
|
|
7159
|
+
return k != null;
|
|
7160
7160
|
}), m = (v) => {
|
|
7161
7161
|
l("update:form", "unit", v ? "" : void 0), l("update:form", "perXUnit", v ? 0 : void 0);
|
|
7162
|
-
}, d = z(() =>
|
|
7162
|
+
}, d = z(() => {
|
|
7163
|
+
const v = a.isV4;
|
|
7164
|
+
return Pn.setCoreStore(i).taxSetting(v);
|
|
7165
|
+
}), c = z(() => {
|
|
7163
7166
|
var v;
|
|
7164
7167
|
return Pn.getSelectedTax(
|
|
7165
7168
|
n.form.taxes,
|
|
@@ -7168,13 +7171,13 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7168
7171
|
);
|
|
7169
7172
|
});
|
|
7170
7173
|
function p(v) {
|
|
7171
|
-
const
|
|
7174
|
+
const k = v.replace(/[^0-9.]/g, "");
|
|
7172
7175
|
if (!v) return !1;
|
|
7173
|
-
l("update:form", "perXUnit", parseFloat(
|
|
7176
|
+
l("update:form", "perXUnit", parseFloat(k));
|
|
7174
7177
|
}
|
|
7175
7178
|
function E(v) {
|
|
7176
7179
|
if (!v && n.form.perXUnit) {
|
|
7177
|
-
const [
|
|
7180
|
+
const [k, A] = n.form.perXUnit.toString().split(".");
|
|
7178
7181
|
if (A && A.length > 4) {
|
|
7179
7182
|
const O = (typeof n.form.perXUnit == "string" ? parseFloat(n.form.perXUnit) : n.form.perXUnit).toFixed(4);
|
|
7180
7183
|
l("update:form", "perXUnit", parseFloat(O));
|
|
@@ -7183,7 +7186,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7183
7186
|
}
|
|
7184
7187
|
const _ = te(!1);
|
|
7185
7188
|
async function y() {
|
|
7186
|
-
var
|
|
7189
|
+
var k, A, M, O, w, x, S;
|
|
7187
7190
|
if (!(n.form.name || "")) {
|
|
7188
7191
|
const I = document.getElementById("product-name");
|
|
7189
7192
|
if (I) {
|
|
@@ -7202,11 +7205,11 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7202
7205
|
number: I
|
|
7203
7206
|
}).toObject()
|
|
7204
7207
|
);
|
|
7205
|
-
}), await ((
|
|
7208
|
+
}), await ((S = Ge.getItemPricing) == null ? void 0 : S.call(
|
|
7206
7209
|
Ge,
|
|
7207
7210
|
{
|
|
7208
7211
|
name: n.form.name || "",
|
|
7209
|
-
lat: (M = (A = (
|
|
7212
|
+
lat: (M = (A = (k = i.currentRestaurant) == null ? void 0 : k.value) == null ? void 0 : A.profile.address.coordinates) == null ? void 0 : M[1],
|
|
7210
7213
|
lon: (x = (w = (O = i.currentRestaurant) == null ? void 0 : O.value) == null ? void 0 : w.profile.address.coordinates) == null ? void 0 : x[0]
|
|
7211
7214
|
},
|
|
7212
7215
|
!0
|
|
@@ -7219,27 +7222,27 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7219
7222
|
var v;
|
|
7220
7223
|
return ((v = a.currentCatalog) == null ? void 0 : v.usePriceTiers) ?? [];
|
|
7221
7224
|
});
|
|
7222
|
-
return (v,
|
|
7225
|
+
return (v, k) => {
|
|
7223
7226
|
const A = H("fm-select"), M = H("FmButton"), O = H("fm-checkbox"), w = H("fm-text-field"), x = fo("tooltip");
|
|
7224
7227
|
return U(), Z(lt, {
|
|
7225
7228
|
title: b(r)("menu.product.form.price.title")
|
|
7226
7229
|
}, {
|
|
7227
7230
|
default: G(() => {
|
|
7228
|
-
var
|
|
7231
|
+
var S;
|
|
7229
7232
|
return [
|
|
7230
7233
|
B("div", Kc, [
|
|
7231
7234
|
R(Pt, {
|
|
7232
7235
|
disable: g.value.length > 0 && b(a).currentCatalog && !b(a).currentScheduler,
|
|
7233
7236
|
min: 0,
|
|
7234
7237
|
"model-value": v.form.price || null,
|
|
7235
|
-
placeholder: (
|
|
7238
|
+
placeholder: (S = v.fallback) != null && S.price ? b(Bt)(v.fallback.price, !1) : void 0,
|
|
7236
7239
|
rules: [
|
|
7237
7240
|
s.value.price ? (I) => !!I || b(r)("menu.product.form.price.fields.selling_price.required") : void 0
|
|
7238
7241
|
].filter(b(sn).isSet),
|
|
7239
7242
|
class: "w-[258px] xs:w-full",
|
|
7240
7243
|
label: b(r)("menu.product.form.price.fields.selling_price.label"),
|
|
7241
7244
|
"show-currency": "",
|
|
7242
|
-
"onUpdate:modelValue":
|
|
7245
|
+
"onUpdate:modelValue": k[0] || (k[0] = (I) => I && l("update:form", "price", I))
|
|
7243
7246
|
}, {
|
|
7244
7247
|
append: G(() => [
|
|
7245
7248
|
Xt(R(Ho, {
|
|
@@ -7261,7 +7264,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7261
7264
|
placeholder: "--",
|
|
7262
7265
|
class: "flex-1",
|
|
7263
7266
|
"shift-menu": "",
|
|
7264
|
-
"onUpdate:modelValue":
|
|
7267
|
+
"onUpdate:modelValue": k[1] || (k[1] = (I) => l("update:form", "taxes", [b(Pn).decodeTax(I)]))
|
|
7265
7268
|
}, null, 8, ["disabled", "items", "label", "model-value"])
|
|
7266
7269
|
]),
|
|
7267
7270
|
!v.isOverride && b(a).isV4 ? (U(), Z(_t, {
|
|
@@ -7285,7 +7288,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7285
7288
|
"price-tiers": b(o).priceTiers.value,
|
|
7286
7289
|
"model-value": v.form.priceTiers || ((I = v.fallback) == null ? void 0 : I.priceTiers) || {},
|
|
7287
7290
|
"allow-negative-price": !1,
|
|
7288
|
-
"onUpdate:modelValue":
|
|
7291
|
+
"onUpdate:modelValue": k[2] || (k[2] = (N) => l("update:form", "priceTiers", N))
|
|
7289
7292
|
}, null, 8, ["price-tiers", "model-value"]))
|
|
7290
7293
|
];
|
|
7291
7294
|
}),
|
|
@@ -7304,7 +7307,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7304
7307
|
value: v.form.openPrice,
|
|
7305
7308
|
label: b(r)("menu.product.form.price.settings.open_price.label"),
|
|
7306
7309
|
sublabel: b(r)("menu.product.form.price.settings.open_price.sublabel"),
|
|
7307
|
-
"onUpdate:modelValue":
|
|
7310
|
+
"onUpdate:modelValue": k[3] || (k[3] = (D) => l("update:form", "openPrice", D))
|
|
7308
7311
|
}, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
|
|
7309
7312
|
B("div", Xc, [
|
|
7310
7313
|
R(O, {
|
|
@@ -7340,7 +7343,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7340
7343
|
(D) => !!D || b(r)("menu.product.form.price.settings.sell_by_unit.unit.required")
|
|
7341
7344
|
],
|
|
7342
7345
|
placeholder: b(r)("menu.product.form.price.settings.sell_by_unit.unit.placeholder"),
|
|
7343
|
-
"onUpdate:modelValue":
|
|
7346
|
+
"onUpdate:modelValue": k[4] || (k[4] = (D) => l("update:form", "unit", D))
|
|
7344
7347
|
}, null, 8, ["disabled", "model-value", "rules", "placeholder"])
|
|
7345
7348
|
])
|
|
7346
7349
|
])) : se("", !0)
|
|
@@ -7350,7 +7353,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7350
7353
|
"model-value": !!v.form.costing,
|
|
7351
7354
|
value: !!v.form.costing,
|
|
7352
7355
|
label: b(r)("menu.product.form.price.settings.track_costing.label"),
|
|
7353
|
-
"onUpdate:modelValue":
|
|
7356
|
+
"onUpdate:modelValue": k[5] || (k[5] = (D) => l("update:form", "costing", D ? b($e.Dinero).zero().toObject() : void 0))
|
|
7354
7357
|
}, null, 8, ["model-value", "value", "label"]),
|
|
7355
7358
|
v.form.costing ? (U(), re("div", td, [
|
|
7356
7359
|
B("div", nd, [
|
|
@@ -7360,7 +7363,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7360
7363
|
"model-value": v.form.costing || null,
|
|
7361
7364
|
nullable: "",
|
|
7362
7365
|
"show-currency": "",
|
|
7363
|
-
"onUpdate:modelValue":
|
|
7366
|
+
"onUpdate:modelValue": k[6] || (k[6] = (D) => l("update:form", "costing", D ?? b($e.Dinero).zero().toObject()))
|
|
7364
7367
|
}, null, 8, ["model-value"])
|
|
7365
7368
|
])
|
|
7366
7369
|
])) : se("", !0)
|
|
@@ -7371,7 +7374,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7371
7374
|
"model-value": !!v.form.minPrice,
|
|
7372
7375
|
value: !!v.form.minPrice,
|
|
7373
7376
|
label: b(r)("menu.product.form.price.settings.min_price.label"),
|
|
7374
|
-
"onUpdate:modelValue":
|
|
7377
|
+
"onUpdate:modelValue": k[7] || (k[7] = (D) => l("update:form", "minPrice", D ? b($e.Dinero).zero().toObject() : void 0))
|
|
7375
7378
|
}, null, 8, ["disabled", "model-value", "value", "label"]),
|
|
7376
7379
|
B("div", od, [
|
|
7377
7380
|
B("div", ad, [
|
|
@@ -7382,7 +7385,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7382
7385
|
"model-value": v.form.minPrice || null,
|
|
7383
7386
|
class: "flex-1",
|
|
7384
7387
|
"show-currency": "",
|
|
7385
|
-
"onUpdate:modelValue":
|
|
7388
|
+
"onUpdate:modelValue": k[8] || (k[8] = (D) => l("update:form", "minPrice", D ?? b($e.Dinero).zero().toObject()))
|
|
7386
7389
|
}, null, 8, ["max", "model-value"])) : se("", !0)
|
|
7387
7390
|
])
|
|
7388
7391
|
])
|
|
@@ -7405,7 +7408,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7405
7408
|
applyProduct: { type: Boolean }
|
|
7406
7409
|
},
|
|
7407
7410
|
setup(e) {
|
|
7408
|
-
const { t } =
|
|
7411
|
+
const { t } = ke(), n = e, i = Ct(St(Ze())), a = z(
|
|
7409
7412
|
() => n.initialValue ? t("menu.print_dept.update") : t("menu.print_dept.add")
|
|
7410
7413
|
), o = z(
|
|
7411
7414
|
() => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
|
|
@@ -7520,7 +7523,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7520
7523
|
},
|
|
7521
7524
|
emits: ["update:form", "replace:form"],
|
|
7522
7525
|
setup(e, { emit: t }) {
|
|
7523
|
-
const n = e, i = Te(), { t: a } =
|
|
7526
|
+
const n = e, i = Te(), { t: a } = ke(), o = t;
|
|
7524
7527
|
function r() {
|
|
7525
7528
|
return {
|
|
7526
7529
|
...qe.generator.initMenuV4PrintSetting(),
|
|
@@ -7534,7 +7537,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7534
7537
|
}), m = z(() => {
|
|
7535
7538
|
var g;
|
|
7536
7539
|
return u.value ? s.value.reduce(
|
|
7537
|
-
(v, { _id:
|
|
7540
|
+
(v, { _id: k }) => (v.includes(k) || (v = [...v, k]), v),
|
|
7538
7541
|
[...((g = n.form.print) == null ? void 0 : g.department) ?? []]
|
|
7539
7542
|
) : s.value.map(({ _id: v }) => v);
|
|
7540
7543
|
}), d = z(() => s.value.reduce((g, v) => (g[v._id] = v.name, g), {}));
|
|
@@ -7557,18 +7560,18 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7557
7560
|
...r(),
|
|
7558
7561
|
...n.form.print,
|
|
7559
7562
|
department: g.filter((v) => {
|
|
7560
|
-
var
|
|
7561
|
-
return (((
|
|
7563
|
+
var k;
|
|
7564
|
+
return (((k = n.form.print) == null ? void 0 : k.department) ?? []).includes(v);
|
|
7562
7565
|
})
|
|
7563
7566
|
});
|
|
7564
7567
|
}
|
|
7565
7568
|
function _(g, v) {
|
|
7566
7569
|
var A, M;
|
|
7567
|
-
let
|
|
7568
|
-
v && !
|
|
7570
|
+
let k = [...((M = (A = n.form) == null ? void 0 : A.print) == null ? void 0 : M.department) ?? []];
|
|
7571
|
+
v && !k.includes(g) ? k = [...k, g] : v || (k = k.filter((O) => O !== g)), o("update:form", "print", {
|
|
7569
7572
|
...r(),
|
|
7570
7573
|
...n.form.print,
|
|
7571
|
-
department:
|
|
7574
|
+
department: k
|
|
7572
7575
|
});
|
|
7573
7576
|
}
|
|
7574
7577
|
const y = z(() => [
|
|
@@ -7587,7 +7590,7 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7587
7590
|
() => s.value.length,
|
|
7588
7591
|
() => _(s.value[s.value.length - 1]._id, !0)
|
|
7589
7592
|
), (g, v) => {
|
|
7590
|
-
const
|
|
7593
|
+
const k = H("fm-switch"), A = H("fm-radio"), M = H("fm-radio-group"), O = H("fm-button"), w = H("fm-checkbox");
|
|
7591
7594
|
return U(), Z(lt, {
|
|
7592
7595
|
title: b(a)("menu.product.form.print.title")
|
|
7593
7596
|
}, {
|
|
@@ -7599,10 +7602,10 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7599
7602
|
label: b(a)("menu.product.form.print.config.label")
|
|
7600
7603
|
}, {
|
|
7601
7604
|
default: G(() => {
|
|
7602
|
-
var
|
|
7605
|
+
var S;
|
|
7603
7606
|
return [
|
|
7604
|
-
R(
|
|
7605
|
-
"model-value": !((
|
|
7607
|
+
R(k, {
|
|
7608
|
+
"model-value": !((S = g.form.print) != null && S.toRoot),
|
|
7606
7609
|
label: b(a)("menu.product.form.print.config.group_parent.label"),
|
|
7607
7610
|
"label-placement": "right",
|
|
7608
7611
|
sublabel: b(a)("menu.product.form.print.config.group_parent.sublabel"),
|
|
@@ -7615,15 +7618,15 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7615
7618
|
R(M, {
|
|
7616
7619
|
label: b(a)("menu.product.form.print.kds.label"),
|
|
7617
7620
|
"model-value": ((x = g.form.print) == null ? void 0 : x.sequential) ?? !1,
|
|
7618
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
7621
|
+
"onUpdate:modelValue": v[1] || (v[1] = (S) => p(S))
|
|
7619
7622
|
}, {
|
|
7620
7623
|
default: G(() => [
|
|
7621
7624
|
B("div", md, [
|
|
7622
|
-
(U(!0), re(Ue, null, at(y.value, (
|
|
7625
|
+
(U(!0), re(Ue, null, at(y.value, (S, I) => (U(), Z(A, {
|
|
7623
7626
|
key: I,
|
|
7624
|
-
label:
|
|
7625
|
-
sublabel:
|
|
7626
|
-
value:
|
|
7627
|
+
label: S.label,
|
|
7628
|
+
sublabel: S.description,
|
|
7629
|
+
value: S.value
|
|
7627
7630
|
}, null, 8, ["label", "sublabel", "value"]))), 128))
|
|
7628
7631
|
])
|
|
7629
7632
|
]),
|
|
@@ -7633,22 +7636,22 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7633
7636
|
label: b(a)("menu.product.form.print.routes.label")
|
|
7634
7637
|
}, {
|
|
7635
7638
|
default: G(() => [
|
|
7636
|
-
m.value.length ? (U(), Z(b(
|
|
7639
|
+
m.value.length ? (U(), Z(b(So), {
|
|
7637
7640
|
key: 0,
|
|
7638
|
-
"item-key": (
|
|
7641
|
+
"item-key": (S) => S,
|
|
7639
7642
|
"model-value": m.value,
|
|
7640
7643
|
handle: ".handle",
|
|
7641
|
-
"onUpdate:modelValue": v[3] || (v[3] = (
|
|
7644
|
+
"onUpdate:modelValue": v[3] || (v[3] = (S) => E(S)),
|
|
7642
7645
|
class: "space-y-16"
|
|
7643
7646
|
}, {
|
|
7644
|
-
item: G(({ element:
|
|
7647
|
+
item: G(({ element: S }) => {
|
|
7645
7648
|
var I, N, P, D, C;
|
|
7646
7649
|
return [
|
|
7647
7650
|
B("div", pd, [
|
|
7648
7651
|
B("div", fd, [
|
|
7649
7652
|
u.value ? (U(), Z(O, {
|
|
7650
7653
|
key: 0,
|
|
7651
|
-
disabled: !((N = (I = n.form.print) == null ? void 0 : I.department) != null && N.includes(
|
|
7654
|
+
disabled: !((N = (I = n.form.print) == null ? void 0 : I.department) != null && N.includes(S)),
|
|
7652
7655
|
class: "handle",
|
|
7653
7656
|
"prepend-icon": "drag_handle",
|
|
7654
7657
|
variant: "tertiary",
|
|
@@ -7657,13 +7660,13 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7657
7660
|
}, null, 8, ["disabled"])) : se("", !0)
|
|
7658
7661
|
]),
|
|
7659
7662
|
R(w, {
|
|
7660
|
-
id:
|
|
7661
|
-
"data-checked": (D = (P = n.form.print) == null ? void 0 : P.department) == null ? void 0 : D.includes(
|
|
7662
|
-
label: d.value[
|
|
7663
|
-
"model-value": (((C = n.form.print) == null ? void 0 : C.department) ?? []).includes(
|
|
7664
|
-
value:
|
|
7663
|
+
id: S,
|
|
7664
|
+
"data-checked": (D = (P = n.form.print) == null ? void 0 : P.department) == null ? void 0 : D.includes(S),
|
|
7665
|
+
label: d.value[S],
|
|
7666
|
+
"model-value": (((C = n.form.print) == null ? void 0 : C.department) ?? []).includes(S),
|
|
7667
|
+
value: S,
|
|
7665
7668
|
class: "flex-1",
|
|
7666
|
-
"onUpdate:modelValue": (T) => _(
|
|
7669
|
+
"onUpdate:modelValue": (T) => _(S, T)
|
|
7667
7670
|
}, null, 8, ["id", "data-checked", "label", "model-value", "value", "onUpdate:modelValue"])
|
|
7668
7671
|
])
|
|
7669
7672
|
];
|
|
@@ -7671,13 +7674,13 @@ const ca = /* @__PURE__ */ ve({
|
|
|
7671
7674
|
_: 1
|
|
7672
7675
|
}, 8, ["item-key", "model-value"])) : se("", !0),
|
|
7673
7676
|
R(b(dd), { "apply-product": !1 }, {
|
|
7674
|
-
default: G(({ trigger:
|
|
7677
|
+
default: G(({ trigger: S }) => [
|
|
7675
7678
|
B("div", hd, [
|
|
7676
7679
|
R(O, {
|
|
7677
7680
|
variant: b(At).Secondary,
|
|
7678
7681
|
label: b(a)("menu.product.form.print.routes.add"),
|
|
7679
7682
|
"prepend-icon": "add",
|
|
7680
|
-
onClick:
|
|
7683
|
+
onClick: S
|
|
7681
7684
|
}, null, 8, ["variant", "label", "onClick"])
|
|
7682
7685
|
])
|
|
7683
7686
|
]),
|
|
@@ -7759,9 +7762,9 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7759
7762
|
setup(e, {
|
|
7760
7763
|
emit: t
|
|
7761
7764
|
}) {
|
|
7762
|
-
const n = e, i = Te(), a = z(() => i.rules.item), o = Ct(
|
|
7765
|
+
const n = e, i = Te(), a = z(() => i.rules.item), o = Ct(St(Ze())), {
|
|
7763
7766
|
t: r
|
|
7764
|
-
} =
|
|
7767
|
+
} = ke(), l = t, {
|
|
7765
7768
|
hasVariant: s,
|
|
7766
7769
|
takeaways: u
|
|
7767
7770
|
} = vd(n, l, a), m = z(() => [n.isOverride ? {
|
|
@@ -7841,16 +7844,16 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7841
7844
|
}), bd = {
|
|
7842
7845
|
key: 0,
|
|
7843
7846
|
class: "flex flex-col space-y-16 h-[440px]"
|
|
7844
|
-
}, yd = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, wd = { class: "flex justify-between pb-16" }, Ed = { class: "flex gap-8" },
|
|
7847
|
+
}, yd = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, wd = { class: "flex justify-between pb-16" }, Ed = { class: "flex gap-8" }, kd = {
|
|
7845
7848
|
key: 1,
|
|
7846
7849
|
class: "flex flex-col items-center space-y-16"
|
|
7847
|
-
},
|
|
7850
|
+
}, Sd = { class: "flex flex-col items-center space-y-4 w-full" }, Cd = { class: "fm-typo-en-title-sm-600" }, Ad = { class: "text-fm-color-typo-secondary" }, Rd = /* @__PURE__ */ ve({
|
|
7848
7851
|
__name: "SelectVariantDialog",
|
|
7849
7852
|
props: {
|
|
7850
7853
|
selectedVariants: {}
|
|
7851
7854
|
},
|
|
7852
7855
|
setup(e) {
|
|
7853
|
-
const t = st(), { emitData: n, emitAction: i } = bo(), a = Te(), { t: o } =
|
|
7856
|
+
const t = st(), { emitData: n, emitAction: i } = bo(), a = Te(), { t: o } = ke(), r = e, l = z(() => a.variants.map((d) => ({
|
|
7854
7857
|
label: d.name,
|
|
7855
7858
|
value: d._id,
|
|
7856
7859
|
disabled: !1
|
|
@@ -7882,7 +7885,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7882
7885
|
label: y.label,
|
|
7883
7886
|
value: y.value
|
|
7884
7887
|
}, null, 8, ["modelValue", "label", "value"]), [
|
|
7885
|
-
[
|
|
7888
|
+
[Sn, y.label.toLowerCase().includes(u.value.toLowerCase())]
|
|
7886
7889
|
])
|
|
7887
7890
|
]))), 128))
|
|
7888
7891
|
])
|
|
@@ -7912,8 +7915,8 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7912
7915
|
}, null, 8, ["label"])
|
|
7913
7916
|
])
|
|
7914
7917
|
])
|
|
7915
|
-
])) : (U(), re("div",
|
|
7916
|
-
B("div",
|
|
7918
|
+
])) : (U(), re("div", kd, [
|
|
7919
|
+
B("div", Sd, [
|
|
7917
7920
|
B("p", Cd, ye(b(o)("menu.common.empty.no_variant.title")), 1),
|
|
7918
7921
|
B("p", Ad, ye(b(o)("menu.common.empty.no_variant.subtitle")), 1)
|
|
7919
7922
|
]),
|
|
@@ -7955,30 +7958,30 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7955
7958
|
setup(e, {
|
|
7956
7959
|
emit: t
|
|
7957
7960
|
}) {
|
|
7958
|
-
const n = e, i = Te(), a =
|
|
7961
|
+
const n = e, i = Te(), a = ki(), o = Ze(), r = st(), {
|
|
7959
7962
|
t: l
|
|
7960
|
-
} =
|
|
7963
|
+
} = ke(), s = z(() => i.rules.item), u = z(() => s.value.minPrice && !!n.form.minPrice), m = z(() => !i.state.currentCatalogId), d = z(() => i.variants.reduce((S, I) => (S[I._id] = I, S), {}));
|
|
7961
7964
|
te(!1);
|
|
7962
7965
|
const c = t;
|
|
7963
|
-
function p(
|
|
7966
|
+
function p(S) {
|
|
7964
7967
|
const I = ot.clone(n.form);
|
|
7965
7968
|
for (const {
|
|
7966
7969
|
key: N,
|
|
7967
7970
|
value: P
|
|
7968
|
-
} of
|
|
7971
|
+
} of S)
|
|
7969
7972
|
I[N] = P;
|
|
7970
7973
|
c("replace:form", I);
|
|
7971
7974
|
}
|
|
7972
|
-
z(() => i.variants.map((
|
|
7973
|
-
label:
|
|
7974
|
-
value:
|
|
7975
|
+
z(() => i.variants.map((S) => ({
|
|
7976
|
+
label: S.name,
|
|
7977
|
+
value: S._id,
|
|
7975
7978
|
disabled: !1
|
|
7976
7979
|
})));
|
|
7977
|
-
function E(
|
|
7980
|
+
function E(S) {
|
|
7978
7981
|
var N;
|
|
7979
|
-
const I = y(
|
|
7982
|
+
const I = y(S.combinationKey || "");
|
|
7980
7983
|
return {
|
|
7981
|
-
...
|
|
7984
|
+
...S,
|
|
7982
7985
|
price: I == null ? void 0 : I.price,
|
|
7983
7986
|
inventoryBindings: (I == null ? void 0 : I.inventoryBindings) || n.form.inventoryBindings,
|
|
7984
7987
|
takeawayUsed: (I == null ? void 0 : I.takeawayUsed) || n.form.takeawayUsed,
|
|
@@ -7989,24 +7992,24 @@ const _d = /* @__PURE__ */ ve({
|
|
|
7989
7992
|
};
|
|
7990
7993
|
}
|
|
7991
7994
|
function _() {
|
|
7992
|
-
var
|
|
7995
|
+
var S;
|
|
7993
7996
|
r.open({
|
|
7994
7997
|
title: "Add variant",
|
|
7995
7998
|
contentComponent: Rd,
|
|
7996
7999
|
contentComponentProps: {
|
|
7997
|
-
selectedVariants: ((
|
|
8000
|
+
selectedVariants: ((S = n.form.variant) == null ? void 0 : S.variantGroupIds) ?? []
|
|
7998
8001
|
}
|
|
7999
8002
|
}).onPrimary(async (I) => {
|
|
8000
|
-
|
|
8003
|
+
k(I, E);
|
|
8001
8004
|
});
|
|
8002
8005
|
}
|
|
8003
|
-
function y(
|
|
8006
|
+
function y(S) {
|
|
8004
8007
|
var T, V;
|
|
8005
|
-
const I = ((T = n.form.variant) == null ? void 0 : T.variantGroupIds) || [], N = (V = n.form.variant) == null ? void 0 : V.variantCombinations, C =
|
|
8008
|
+
const I = ((T = n.form.variant) == null ? void 0 : T.variantGroupIds) || [], N = (V = n.form.variant) == null ? void 0 : V.variantCombinations, C = S.split(/(?=variant)/g).map((j) => j.replace(/\/*$/, "")).filter((j) => I.some((le) => j.includes(le))).join("/");
|
|
8006
8009
|
return N == null ? void 0 : N.find((j) => j.combinationKey === C);
|
|
8007
8010
|
}
|
|
8008
|
-
const g = (
|
|
8009
|
-
S
|
|
8011
|
+
const g = (S) => {
|
|
8012
|
+
k(S);
|
|
8010
8013
|
}, v = z(() => {
|
|
8011
8014
|
var I;
|
|
8012
8015
|
return (((I = n.form.variant) == null ? void 0 : I.variantCombinations) || []).map((N) => {
|
|
@@ -8027,9 +8030,9 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8027
8030
|
};
|
|
8028
8031
|
});
|
|
8029
8032
|
});
|
|
8030
|
-
function S
|
|
8033
|
+
function k(S, I = (N) => N) {
|
|
8031
8034
|
var D;
|
|
8032
|
-
const N =
|
|
8035
|
+
const N = S.filter((C) => !!C);
|
|
8033
8036
|
let P;
|
|
8034
8037
|
if (N.length) {
|
|
8035
8038
|
const C = N.map((V) => i.variants.find((j) => j._id === V)), T = qe.fullVariantCombination(C).map(({
|
|
@@ -8074,33 +8077,33 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8074
8077
|
}
|
|
8075
8078
|
c("replace:form", a.initDynamicGroupItem(P));
|
|
8076
8079
|
}
|
|
8077
|
-
async function A(
|
|
8080
|
+
async function A(S, I, N) {
|
|
8078
8081
|
const P = ot.clone(n.form);
|
|
8079
|
-
P.variant.variantCombinations[
|
|
8082
|
+
P.variant.variantCombinations[S][I] = N, p([{
|
|
8080
8083
|
key: "variant",
|
|
8081
8084
|
value: P.variant
|
|
8082
8085
|
}]);
|
|
8083
8086
|
}
|
|
8084
8087
|
const M = z(() => {
|
|
8085
|
-
var
|
|
8086
|
-
return ((
|
|
8088
|
+
var S;
|
|
8089
|
+
return ((S = i.currentCatalog) == null ? void 0 : S.usePriceTiers) ?? [];
|
|
8087
8090
|
}), O = z(() => [{
|
|
8088
8091
|
accessorKey: "combinationKey",
|
|
8089
8092
|
header: () => l("menu.product.form.variant.columns.variant"),
|
|
8090
8093
|
enableSorting: !1,
|
|
8091
|
-
cell: (
|
|
8094
|
+
cell: (S) => n.fullCombinations[S.getValue()]
|
|
8092
8095
|
}, {
|
|
8093
8096
|
accessorKey: "code",
|
|
8094
8097
|
header: () => l("menu.product.form.variant.columns.code"),
|
|
8095
8098
|
enableSorting: !1,
|
|
8096
|
-
cell: (
|
|
8099
|
+
cell: (S) => {
|
|
8097
8100
|
var C, T;
|
|
8098
|
-
const I =
|
|
8101
|
+
const I = S.getValue(), D = ((C = S.row.original.fallback) == null ? void 0 : C.code) ?? n.form.code ?? ((T = n.fallback) == null ? void 0 : T.code);
|
|
8099
8102
|
return R(Be.FmTextField, {
|
|
8100
8103
|
modelValue: I,
|
|
8101
8104
|
placeholder: D || l("menu.product.form.variant.placeholders.no_code"),
|
|
8102
8105
|
"onUpdate:model-value": (V) => {
|
|
8103
|
-
A(
|
|
8106
|
+
A(S.row.index, "code", jo(V, !0));
|
|
8104
8107
|
}
|
|
8105
8108
|
}, null);
|
|
8106
8109
|
}
|
|
@@ -8108,9 +8111,9 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8108
8111
|
accessorKey: "orderFrom",
|
|
8109
8112
|
header: () => l("menu.product.form.variant.columns.order_from"),
|
|
8110
8113
|
enableSorting: !1,
|
|
8111
|
-
cell: (
|
|
8114
|
+
cell: (S) => {
|
|
8112
8115
|
var D, C;
|
|
8113
|
-
const I =
|
|
8116
|
+
const I = S.getValue(), P = (D = S.row.original.fallback) == null ? void 0 : D.orderFrom;
|
|
8114
8117
|
return R(hi, {
|
|
8115
8118
|
modelValue: I,
|
|
8116
8119
|
fallback: n.form.orderFrom ?? P ?? ((C = n.fallback) == null ? void 0 : C.orderFrom),
|
|
@@ -8118,7 +8121,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8118
8121
|
required: s.value.orderFrom && s.value.orderFromActiveOnly,
|
|
8119
8122
|
editActiveOnly: s.value.orderFromActiveOnly || !1,
|
|
8120
8123
|
"onUpdate:model-value": (T) => {
|
|
8121
|
-
A(
|
|
8124
|
+
A(S.row.index, "orderFrom", T);
|
|
8122
8125
|
},
|
|
8123
8126
|
label: "",
|
|
8124
8127
|
defaultLabel: "Follow general"
|
|
@@ -8129,9 +8132,9 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8129
8132
|
header: () => l("menu.product.form.variant.columns.price"),
|
|
8130
8133
|
size: 200,
|
|
8131
8134
|
enableSorting: !1,
|
|
8132
|
-
cell: (
|
|
8135
|
+
cell: (S) => {
|
|
8133
8136
|
var C, T, V;
|
|
8134
|
-
const I =
|
|
8137
|
+
const I = S.getValue(), N = S.row.original, D = ((C = N.fallback) == null ? void 0 : C.price) ?? n.form.price ?? ((T = n.fallback) == null ? void 0 : T.price);
|
|
8135
8138
|
return R("div", {
|
|
8136
8139
|
class: "flex items-center gap-8"
|
|
8137
8140
|
}, [R(Pt, {
|
|
@@ -8140,29 +8143,29 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8140
8143
|
modelValue: I,
|
|
8141
8144
|
min: 0,
|
|
8142
8145
|
"onUpdate:model-value": (j) => {
|
|
8143
|
-
A(
|
|
8146
|
+
A(S.row.index, "price", j);
|
|
8144
8147
|
},
|
|
8145
8148
|
nullable: !0,
|
|
8146
8149
|
showCurrency: !1
|
|
8147
8150
|
}, null), i.isV4 && !n.isOverride && R(da, {
|
|
8148
8151
|
"price-tiers": N.priceTiers,
|
|
8149
8152
|
fallback: (V = N.fallback) == null ? void 0 : V.priceTiers,
|
|
8150
|
-
"onUpdate:price-tiers": (j) => A(
|
|
8153
|
+
"onUpdate:price-tiers": (j) => A(S.row.index, "priceTiers", j)
|
|
8151
8154
|
}, null)]);
|
|
8152
8155
|
}
|
|
8153
8156
|
}, {
|
|
8154
8157
|
accessorKey: "minPrice",
|
|
8155
8158
|
header: () => l("menu.product.form.variant.columns.min_price"),
|
|
8156
8159
|
enableSorting: !1,
|
|
8157
|
-
cell: (
|
|
8160
|
+
cell: (S) => {
|
|
8158
8161
|
var C, T, V;
|
|
8159
|
-
const I =
|
|
8162
|
+
const I = S.getValue(), N = S.row.original, D = ((C = N.fallback) == null ? void 0 : C.minPrice) ?? n.form.minPrice ?? ((T = n.fallback) == null ? void 0 : T.minPrice);
|
|
8160
8163
|
return R(Pt, {
|
|
8161
8164
|
placeholder: D ? Bt(D) : void 0,
|
|
8162
8165
|
modelValue: I,
|
|
8163
8166
|
max: $e.Dinero.fromFdoDinero(N.price ?? ((V = N.fallback) == null ? void 0 : V.price) ?? $e.Dinero.zero().toObject()).toUnit(),
|
|
8164
8167
|
"onUpdate:model-value": (j) => {
|
|
8165
|
-
A(
|
|
8168
|
+
A(S.row.index, "minPrice", j);
|
|
8166
8169
|
},
|
|
8167
8170
|
nullable: !0,
|
|
8168
8171
|
showCurrency: !1
|
|
@@ -8171,12 +8174,12 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8171
8174
|
}]), w = z(() => ({
|
|
8172
8175
|
minPrice: u.value
|
|
8173
8176
|
}));
|
|
8174
|
-
function x(
|
|
8175
|
-
return
|
|
8177
|
+
function x(S) {
|
|
8178
|
+
return S != null && S.length && S.length > i.rules.item.maxVariant ? l("menu.product.form.variant.validation.max_variants", {
|
|
8176
8179
|
max: i.rules.item.maxVariant
|
|
8177
8180
|
}) : !0;
|
|
8178
8181
|
}
|
|
8179
|
-
return (
|
|
8182
|
+
return (S, I) => {
|
|
8180
8183
|
const N = H("fm-button"), P = H("fm-icon"), D = H("FmFormGroup"), C = H("fm-table");
|
|
8181
8184
|
return U(), Z(lt, {
|
|
8182
8185
|
title: b(l)("menu.product.form.variant.title"),
|
|
@@ -8192,13 +8195,13 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8192
8195
|
default: G(() => {
|
|
8193
8196
|
var T;
|
|
8194
8197
|
return [B("div", Od, [R(D, {
|
|
8195
|
-
"model-value": (T =
|
|
8198
|
+
"model-value": (T = S.form.variant) == null ? void 0 : T.variantGroupIds,
|
|
8196
8199
|
rules: [x]
|
|
8197
8200
|
}, {
|
|
8198
8201
|
default: G(() => {
|
|
8199
8202
|
var V;
|
|
8200
|
-
return [R(b(
|
|
8201
|
-
"model-value": ((V =
|
|
8203
|
+
return [R(b(So), {
|
|
8204
|
+
"model-value": ((V = S.form.variant) == null ? void 0 : V.variantGroupIds) ?? [],
|
|
8202
8205
|
class: "space-y-16",
|
|
8203
8206
|
group: "variants",
|
|
8204
8207
|
handle: ".handle",
|
|
@@ -8218,7 +8221,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8218
8221
|
name: "close",
|
|
8219
8222
|
onClick: Cn((ce) => {
|
|
8220
8223
|
var Re;
|
|
8221
|
-
return
|
|
8224
|
+
return k(((Re = S.form.variant) == null ? void 0 : Re.variantGroupIds.filter(($) => $ !== j)) ?? []);
|
|
8222
8225
|
}, ["stop"])
|
|
8223
8226
|
}, null, 8, ["onClick"])])])];
|
|
8224
8227
|
}),
|
|
@@ -8278,7 +8281,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8278
8281
|
emits: ["update:show", "submit:form"],
|
|
8279
8282
|
setup(e, { emit: t }) {
|
|
8280
8283
|
var yt, ut, ct, wt, xt;
|
|
8281
|
-
const n = e, i = t, a = Te(), o = rn(), { t: r } =
|
|
8284
|
+
const n = e, i = t, a = Te(), o = rn(), { t: r } = ke(), l = z(() => n.action === "add" ? r("menu.product.form.title.add") : r("menu.product.form.title.update")), s = z(() => a.rules.item), u = (f) => new Promise((h) => setTimeout(h, f));
|
|
8282
8285
|
$t(async () => {
|
|
8283
8286
|
n.autoShow && (await u(100), d());
|
|
8284
8287
|
});
|
|
@@ -8312,7 +8315,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8312
8315
|
immediate: !0
|
|
8313
8316
|
}
|
|
8314
8317
|
);
|
|
8315
|
-
const _ =
|
|
8318
|
+
const _ = ki(), y = async ([f, h]) => {
|
|
8316
8319
|
a.selectCatalog(f), a.selectScheduler(h), await ho(), _.update(p.value._id), setTimeout(() => {
|
|
8317
8320
|
i("update:show", !1);
|
|
8318
8321
|
}, 100);
|
|
@@ -8329,7 +8332,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8329
8332
|
immediate: !0
|
|
8330
8333
|
}
|
|
8331
8334
|
);
|
|
8332
|
-
const
|
|
8335
|
+
const k = (f, h) => {
|
|
8333
8336
|
p.value = {
|
|
8334
8337
|
...ge(p.value),
|
|
8335
8338
|
[f]: h
|
|
@@ -8360,7 +8363,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8360
8363
|
), L = a.taxSetting.countryTaxOptions.find((X) => X.value === f);
|
|
8361
8364
|
return L ? Pa(L.meta.rate) : "-";
|
|
8362
8365
|
}
|
|
8363
|
-
function
|
|
8366
|
+
function S() {
|
|
8364
8367
|
v.value = null, p.value.thumbnail = null;
|
|
8365
8368
|
}
|
|
8366
8369
|
const I = z(() => {
|
|
@@ -8542,7 +8545,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8542
8545
|
} catch (L) {
|
|
8543
8546
|
console.log(L);
|
|
8544
8547
|
}
|
|
8545
|
-
}),
|
|
8548
|
+
}), ka(() => {
|
|
8546
8549
|
try {
|
|
8547
8550
|
Ge.closeSession();
|
|
8548
8551
|
} catch (f) {
|
|
@@ -8556,7 +8559,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8556
8559
|
function oe() {
|
|
8557
8560
|
ae.isUpdatingItem = !1, a.selectCatalog(ae.storedCatalogId), a.selectScheduler(ae.storedSchedulerId);
|
|
8558
8561
|
}
|
|
8559
|
-
function
|
|
8562
|
+
function Se() {
|
|
8560
8563
|
M.value && [
|
|
8561
8564
|
[N.value, P],
|
|
8562
8565
|
[C.value, T]
|
|
@@ -8569,7 +8572,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8569
8572
|
}
|
|
8570
8573
|
const { isAtMost: bt } = _o(), Lt = te(null), qt = $a(Lt);
|
|
8571
8574
|
return (f, h) => (U(), re(Ue, null, [
|
|
8572
|
-
Ae(f.$slots, "trigger",
|
|
8575
|
+
Ae(f.$slots, "trigger", Sa(Ca({
|
|
8573
8576
|
trigger: d
|
|
8574
8577
|
}))),
|
|
8575
8578
|
R(Ua, {
|
|
@@ -8584,7 +8587,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8584
8587
|
click: je
|
|
8585
8588
|
}
|
|
8586
8589
|
],
|
|
8587
|
-
onOnPrimary:
|
|
8590
|
+
onOnPrimary: Se,
|
|
8588
8591
|
onOnCancel: je
|
|
8589
8592
|
}, {
|
|
8590
8593
|
"append-title": G(() => [
|
|
@@ -8639,9 +8642,9 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8639
8642
|
"is-override": M.value,
|
|
8640
8643
|
"is-create": n.action === "add",
|
|
8641
8644
|
thumbnail: v.value,
|
|
8642
|
-
"onUpdate:form":
|
|
8645
|
+
"onUpdate:form": k,
|
|
8643
8646
|
"onUpdate:thumbnail": h[0] || (h[0] = (X) => v.value = X),
|
|
8644
|
-
"onReset:thumbnail":
|
|
8647
|
+
"onReset:thumbnail": S
|
|
8645
8648
|
}, null, 8, ["fallback", "form", "is-addon", "is-override", "is-create", "thumbnail"])
|
|
8646
8649
|
]),
|
|
8647
8650
|
_: 1
|
|
@@ -8656,7 +8659,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8656
8659
|
R(b(vo), {
|
|
8657
8660
|
entity: "item",
|
|
8658
8661
|
"model-value": p.value.customAttributes || {},
|
|
8659
|
-
"onUpdate:modelValue": h[3] || (h[3] = (X) =>
|
|
8662
|
+
"onUpdate:modelValue": h[3] || (h[3] = (X) => k("customAttributes", X)),
|
|
8660
8663
|
"value-options": D.value
|
|
8661
8664
|
}, null, 8, ["model-value", "value-options"])
|
|
8662
8665
|
]),
|
|
@@ -8679,7 +8682,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8679
8682
|
form: p.value,
|
|
8680
8683
|
"is-addon": O.value,
|
|
8681
8684
|
"is-override": M.value,
|
|
8682
|
-
"onUpdate:form":
|
|
8685
|
+
"onUpdate:form": k
|
|
8683
8686
|
}, null, 8, ["fallback", "form", "is-addon", "is-override"])
|
|
8684
8687
|
]),
|
|
8685
8688
|
_: 1
|
|
@@ -8703,7 +8706,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8703
8706
|
"full-combinations": g.value,
|
|
8704
8707
|
"is-addon": O.value,
|
|
8705
8708
|
"is-override": M.value,
|
|
8706
|
-
"onUpdate:form":
|
|
8709
|
+
"onUpdate:form": k,
|
|
8707
8710
|
"onReplace:form": h[6] || (h[6] = (X) => p.value = X)
|
|
8708
8711
|
}, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
|
|
8709
8712
|
]),
|
|
@@ -8727,7 +8730,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8727
8730
|
"full-combinations": g.value,
|
|
8728
8731
|
"is-addon": O.value,
|
|
8729
8732
|
"is-override": M.value,
|
|
8730
|
-
"onUpdate:form":
|
|
8733
|
+
"onUpdate:form": k,
|
|
8731
8734
|
"onReplace:form": h[9] || (h[9] = (X) => p.value = X)
|
|
8732
8735
|
}, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
|
|
8733
8736
|
]),
|
|
@@ -8752,7 +8755,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8752
8755
|
"full-combinations": g.value,
|
|
8753
8756
|
"is-addon": O.value,
|
|
8754
8757
|
"is-override": M.value,
|
|
8755
|
-
"onUpdate:form":
|
|
8758
|
+
"onUpdate:form": k,
|
|
8756
8759
|
"onReplace:form": h[12] || (h[12] = (X) => p.value = X)
|
|
8757
8760
|
}, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
|
|
8758
8761
|
]),
|
|
@@ -8777,7 +8780,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8777
8780
|
"full-combinations": g.value,
|
|
8778
8781
|
"is-addon": O.value,
|
|
8779
8782
|
"is-override": M.value,
|
|
8780
|
-
"onUpdate:form":
|
|
8783
|
+
"onUpdate:form": k,
|
|
8781
8784
|
"onReplace:form": h[15] || (h[15] = (X) => p.value = X)
|
|
8782
8785
|
}, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
|
|
8783
8786
|
]),
|
|
@@ -8802,7 +8805,7 @@ const _d = /* @__PURE__ */ ve({
|
|
|
8802
8805
|
"full-combinations": g.value,
|
|
8803
8806
|
"is-addon": O.value,
|
|
8804
8807
|
"is-override": M.value,
|
|
8805
|
-
"onUpdate:form":
|
|
8808
|
+
"onUpdate:form": k,
|
|
8806
8809
|
"onReplace:form": h[18] || (h[18] = (X) => p.value = X)
|
|
8807
8810
|
}, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
|
|
8808
8811
|
]),
|
|
@@ -8915,14 +8918,14 @@ function Hd(e, t) {
|
|
|
8915
8918
|
_id: e._id
|
|
8916
8919
|
};
|
|
8917
8920
|
}
|
|
8918
|
-
const
|
|
8919
|
-
const e = Te(), t = Ze(), n = st(), i =
|
|
8921
|
+
const ki = mo("item-manager", () => {
|
|
8922
|
+
const e = Te(), t = Ze(), n = st(), i = St(t), a = Ct(i), o = an(), { t: r } = ke(), l = (w) => {
|
|
8920
8923
|
if (!o) throw new Error("No current instance found");
|
|
8921
8924
|
const { container: x } = Fa(Bd, o, {
|
|
8922
8925
|
...w,
|
|
8923
8926
|
autoShow: !0,
|
|
8924
|
-
"onUpdate:show": async (
|
|
8925
|
-
|
|
8927
|
+
"onUpdate:show": async (S) => {
|
|
8928
|
+
S || (Wn(null, x), x.remove());
|
|
8926
8929
|
}
|
|
8927
8930
|
});
|
|
8928
8931
|
};
|
|
@@ -8931,19 +8934,19 @@ const Si = mo("item-manager", () => {
|
|
|
8931
8934
|
l({
|
|
8932
8935
|
action: "add",
|
|
8933
8936
|
categoryId: w,
|
|
8934
|
-
"onSubmit:form": async (
|
|
8935
|
-
|
|
8936
|
-
const N =
|
|
8937
|
-
await x(
|
|
8937
|
+
"onSubmit:form": async (S, I) => {
|
|
8938
|
+
S.inventoryBindings ?? (S.inventoryBindings = []), S.inventoryBindings.length === 0 && (S.inventoryBindings = null);
|
|
8939
|
+
const N = Si();
|
|
8940
|
+
await x(S, Ve.F_OPERATION_TYPE.create, N, I);
|
|
8938
8941
|
}
|
|
8939
8942
|
});
|
|
8940
8943
|
}
|
|
8941
|
-
async function u(w, x,
|
|
8944
|
+
async function u(w, x, S) {
|
|
8942
8945
|
l({
|
|
8943
8946
|
initialForm: Hd(w, x || []),
|
|
8944
8947
|
action: "update",
|
|
8945
8948
|
"onSubmit:form": async (I) => {
|
|
8946
|
-
I.inventoryBindings ?? (I.inventoryBindings = []), I.inventoryBindings.length === 0 && (I.inventoryBindings = null), await
|
|
8949
|
+
I.inventoryBindings ?? (I.inventoryBindings = []), I.inventoryBindings.length === 0 && (I.inventoryBindings = null), await S(
|
|
8947
8950
|
Gd(
|
|
8948
8951
|
[I],
|
|
8949
8952
|
e.state.menu,
|
|
@@ -8956,7 +8959,7 @@ const Si = mo("item-manager", () => {
|
|
|
8956
8959
|
}
|
|
8957
8960
|
async function m(w) {
|
|
8958
8961
|
var P;
|
|
8959
|
-
const x = e.currentCatalog,
|
|
8962
|
+
const x = e.currentCatalog, S = e.state.currentSchedulerId, I = x.override.scheduler[S] ?? {}, N = (P = I == null ? void 0 : I.items) == null ? void 0 : P.filter((D) => D._id === w._id);
|
|
8960
8963
|
await u(w, N, async (D) => {
|
|
8961
8964
|
const C = D.modules.catalog.find(
|
|
8962
8965
|
(T) => T._id === x._id
|
|
@@ -8966,8 +8969,8 @@ const Si = mo("item-manager", () => {
|
|
|
8966
8969
|
}
|
|
8967
8970
|
async function d(w) {
|
|
8968
8971
|
const x = e.currentCatalog;
|
|
8969
|
-
await u(w, x.override.items[w._id], async (
|
|
8970
|
-
const I =
|
|
8972
|
+
await u(w, x.override.items[w._id], async (S) => {
|
|
8973
|
+
const I = S.modules.catalog.find(
|
|
8971
8974
|
(N) => N._id === x._id
|
|
8972
8975
|
);
|
|
8973
8976
|
await new ft(I, e, a.updateMenu, n).update();
|
|
@@ -8976,8 +8979,8 @@ const Si = mo("item-manager", () => {
|
|
|
8976
8979
|
async function c(w) {
|
|
8977
8980
|
const x = e.schedulers.find(
|
|
8978
8981
|
(I) => I._id === e.state.currentSchedulerId
|
|
8979
|
-
),
|
|
8980
|
-
await u(w,
|
|
8982
|
+
), S = x.items.filter((I) => I._id === w._id);
|
|
8983
|
+
await u(w, S, async (I) => {
|
|
8981
8984
|
const N = I.modules.scheduler.find(
|
|
8982
8985
|
(P) => P._id === x._id
|
|
8983
8986
|
);
|
|
@@ -8986,23 +8989,23 @@ const Si = mo("item-manager", () => {
|
|
|
8986
8989
|
}
|
|
8987
8990
|
async function p(w) {
|
|
8988
8991
|
var N, P;
|
|
8989
|
-
const x = e.state.currentSchedulerId,
|
|
8992
|
+
const x = e.state.currentSchedulerId, S = ge(e.currentCatalog), I = (P = ((N = S.override.scheduler[x]) == null ? void 0 : N.items) || []) == null ? void 0 : P.reduce((D, C) => {
|
|
8990
8993
|
if (C.combinationKey) return [...D, C];
|
|
8991
8994
|
const T = w.find((V) => V._id === C._id);
|
|
8992
8995
|
return T ? [...D, { ...C, price: T.price }] : [...D, C];
|
|
8993
8996
|
}, []);
|
|
8994
|
-
|
|
8995
|
-
...
|
|
8997
|
+
S.override.scheduler = {
|
|
8998
|
+
...S.override.scheduler,
|
|
8996
8999
|
[x]: {
|
|
8997
|
-
...
|
|
9000
|
+
...S.override.scheduler[x],
|
|
8998
9001
|
_id: x,
|
|
8999
9002
|
items: I
|
|
9000
9003
|
}
|
|
9001
|
-
}, await new ft(
|
|
9004
|
+
}, await new ft(S, e, a.updateMenu, n).update();
|
|
9002
9005
|
}
|
|
9003
9006
|
async function E(w) {
|
|
9004
9007
|
var N;
|
|
9005
|
-
const x = ge(e.currentCatalog),
|
|
9008
|
+
const x = ge(e.currentCatalog), S = (N = Object.entries(x.override.items)) == null ? void 0 : N.reduce(
|
|
9006
9009
|
(P, [D, C]) => {
|
|
9007
9010
|
const T = w.find((j) => j._id === D);
|
|
9008
9011
|
if (!T)
|
|
@@ -9026,7 +9029,7 @@ const Si = mo("item-manager", () => {
|
|
|
9026
9029
|
...x,
|
|
9027
9030
|
override: {
|
|
9028
9031
|
...x.override,
|
|
9029
|
-
items:
|
|
9032
|
+
items: S
|
|
9030
9033
|
}
|
|
9031
9034
|
},
|
|
9032
9035
|
e,
|
|
@@ -9035,7 +9038,7 @@ const Si = mo("item-manager", () => {
|
|
|
9035
9038
|
).update();
|
|
9036
9039
|
}
|
|
9037
9040
|
async function _(w) {
|
|
9038
|
-
const x = ge(e.currentScheduler),
|
|
9041
|
+
const x = ge(e.currentScheduler), S = x.items.reduce((I, N) => {
|
|
9039
9042
|
if (N.combinationKey) return [...I, N];
|
|
9040
9043
|
const P = w.find((D) => D._id === N._id);
|
|
9041
9044
|
return P ? [...I, { ...N, price: P.price }] : [...I, N];
|
|
@@ -9043,7 +9046,7 @@ const Si = mo("item-manager", () => {
|
|
|
9043
9046
|
await new _n(
|
|
9044
9047
|
{
|
|
9045
9048
|
...x,
|
|
9046
|
-
items:
|
|
9049
|
+
items: S
|
|
9047
9050
|
},
|
|
9048
9051
|
e,
|
|
9049
9052
|
a.updateMenu,
|
|
@@ -9064,8 +9067,8 @@ const Si = mo("item-manager", () => {
|
|
|
9064
9067
|
position: N.position ?? P.position,
|
|
9065
9068
|
additionalCategories: N.additionalCategories ?? P.additionalCategories
|
|
9066
9069
|
}), I;
|
|
9067
|
-
}, []), { updateMenu:
|
|
9068
|
-
await
|
|
9070
|
+
}, []), { updateMenu: S } = a;
|
|
9071
|
+
await S(
|
|
9069
9072
|
x.map((I) => ({
|
|
9070
9073
|
module: ee.F_MENU_MODULE_V4_KEY.enum.item,
|
|
9071
9074
|
operation: Ve.F_OPERATION_TYPE.update,
|
|
@@ -9079,27 +9082,27 @@ const Si = mo("item-manager", () => {
|
|
|
9079
9082
|
l({
|
|
9080
9083
|
initialForm: w,
|
|
9081
9084
|
action: "update",
|
|
9082
|
-
"onSubmit:form": async (
|
|
9083
|
-
const N =
|
|
9084
|
-
|
|
9085
|
+
"onSubmit:form": async (S, I) => {
|
|
9086
|
+
const N = Si(w._id);
|
|
9087
|
+
S.inventoryBindings ?? (S.inventoryBindings = []), S.inventoryBindings.length === 0 && (S.inventoryBindings = null), await x(S, Ve.F_OPERATION_TYPE.update, N, I);
|
|
9085
9088
|
}
|
|
9086
9089
|
});
|
|
9087
9090
|
}
|
|
9088
9091
|
async function v(w) {
|
|
9089
|
-
const x = e.state.menu.modules.item.find((
|
|
9092
|
+
const x = e.state.menu.modules.item.find((S) => S._id === w);
|
|
9090
9093
|
e.currentCatalog ? e.state.currentSchedulerId ? await m(x) : await d(x) : e.state.currentSchedulerId ? await c(x) : g(x);
|
|
9091
9094
|
}
|
|
9092
|
-
async function
|
|
9095
|
+
async function k(w) {
|
|
9093
9096
|
e.currentCatalog ? e.currentScheduler ? await p(w) : await E(w) : (
|
|
9094
9097
|
// If Main
|
|
9095
9098
|
e.currentScheduler ? await _(w) : await y(w)
|
|
9096
9099
|
);
|
|
9097
9100
|
}
|
|
9098
9101
|
function A(w) {
|
|
9099
|
-
const { updateMenu: x } = a,
|
|
9102
|
+
const { updateMenu: x } = a, S = w.length > 1 ? `${w.length} products` : w[0].name;
|
|
9100
9103
|
n.open({
|
|
9101
9104
|
title: r("menu.common.dialog.remove.product.title"),
|
|
9102
|
-
message: r("menu.common.dialog.remove.product.message", { name:
|
|
9105
|
+
message: r("menu.common.dialog.remove.product.message", { name: S }),
|
|
9103
9106
|
primaryActions: {
|
|
9104
9107
|
text: r("menu.common.actions.remove"),
|
|
9105
9108
|
close: !0,
|
|
@@ -9116,7 +9119,7 @@ const Si = mo("item-manager", () => {
|
|
|
9116
9119
|
operation: Ve.F_OPERATION_TYPE.delete,
|
|
9117
9120
|
data: I
|
|
9118
9121
|
})),
|
|
9119
|
-
|
|
9122
|
+
S,
|
|
9120
9123
|
!0
|
|
9121
9124
|
);
|
|
9122
9125
|
for (const I of w)
|
|
@@ -9155,7 +9158,7 @@ const Si = mo("item-manager", () => {
|
|
|
9155
9158
|
initDynamicGroupItem: (w) => pa(e, w),
|
|
9156
9159
|
create: s,
|
|
9157
9160
|
update: v,
|
|
9158
|
-
updateMany:
|
|
9161
|
+
updateMany: k,
|
|
9159
9162
|
deleteItem: M,
|
|
9160
9163
|
rearrange: O
|
|
9161
9164
|
};
|
|
@@ -9190,8 +9193,8 @@ export {
|
|
|
9190
9193
|
vd as q,
|
|
9191
9194
|
or as r,
|
|
9192
9195
|
hc as s,
|
|
9193
|
-
|
|
9194
|
-
|
|
9196
|
+
km as t,
|
|
9197
|
+
ki as u,
|
|
9195
9198
|
Rr as v,
|
|
9196
9199
|
Or as w,
|
|
9197
9200
|
_n as x,
|