@feedmepos/mf-menu 0.31.71-prod → 0.31.72
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-B5R51HHK.js → App-CvauiBxh.js} +1442 -2546
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Dflill79.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BK9XcgvQ.js} +3 -3
- package/dist/{Catalog-yv_fwu1h.js → Catalog-CBdU6H-7.js} +26 -26
- package/dist/{Category-lOaUwRrB.js → Category-BFO9_FCp.js} +35 -35
- package/dist/{Category-DEkZ-IWE.js → Category-DkKEXvEF.js} +22 -22
- package/dist/{CookingGuide-Db8VQK5V.js → CookingGuide-E34vwLgw.js} +113 -113
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DwsVvlUq.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DlnAxQwE.js} +1 -1
- package/dist/{Group-B2EXYbcn.js → Group-Bcc1Z7D-.js} +1 -1
- package/dist/{Group-CFS8D5Uf.js → Group-CpSycfFA.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BdZ9K2Ht.js → Group.vue_vue_type_script_setup_true_lang-CWIHfDqh.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CtlyZlos.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B8tJzkEO.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C-RPhKoA.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BGWmkL9R.js} +21 -22
- package/dist/{Ingredient-C3B8G0Fd.js → Ingredient-0Cg2IcHV.js} +23 -23
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BrhhXwp8.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Dztd7mAs.js} +1052 -1052
- package/dist/{LinkProductSideSheet-DPn7KN3l.js → LinkProductSideSheet-CiRZO3uN.js} +3 -3
- package/dist/{MenuSetting-Mph9Pc9s.js → MenuSetting-Bv4sWdlj.js} +31 -31
- package/dist/{PrintRoute-BwboeALA.js → PrintRoute-DP-fjMrF.js} +26 -26
- package/dist/{Product-CNKnPt-z.js → Product-DgZcdRkv.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BksTc5Gm.js → Product.vue_vue_type_script_setup_true_lang-CpthNypU.js} +71 -71
- package/dist/{ProductInternalTools-DGkoIc6T.js → ProductInternalTools-CLmYNGLn.js} +17 -17
- package/dist/{Products-CkLZYybB.js → Products-KrRu9cnx.js} +11 -11
- package/dist/{Publish-Bzq9aREC.js → Publish-C9Wi7dG1.js} +56 -57
- package/dist/{Recipe-K55Bnscl.js → Recipe-BPdgYfvy.js} +13 -13
- package/dist/{Scheduler-ChAmTqSR.js → Scheduler-C9LCR2Oj.js} +16 -16
- package/dist/{ServingSequence-ywa7-8rG.js → ServingSequence-D-OBo-oY.js} +20 -20
- package/dist/{Setting-CHUNtVho.js → Setting-qITT89Lg.js} +20 -20
- package/dist/{Subcategory-0-99_i06.js → Subcategory-kl6ncKqB.js} +19 -19
- package/dist/{Takeaway-CsJf5I8I.js → Takeaway-BOxto2HZ.js} +1 -1
- package/dist/{Takeaway-BzvxZ_dA.js → Takeaway-D9GOXVdh.js} +10 -10
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Bh8mjdk4.js → Takeaway.vue_vue_type_script_setup_true_lang-CbhZLN-r.js} +20 -20
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CbxgtwVa.js → Thumbnail.vue_vue_type_script_setup_true_lang-CH9jzjP0.js} +20 -20
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dh_CA5gZ.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C0NgcFQK.js} +16 -17
- package/dist/{Unit-CbTkNhj2.js → Unit-Dr0n8Nl-.js} +13 -13
- package/dist/{Variant-NkbzEbF-.js → Variant-BVvjuGqK.js} +15 -15
- package/dist/{_id_-mr4_eirX.js → _id_-DqqSN5Lt.js} +14 -14
- package/dist/{app-BzsHQwP_.js → app-B3_2cau3.js} +1 -1
- package/dist/{app-DVB67WHZ.js → app-DJ-rQRBU.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +72 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +218 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +81 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +55 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +144 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +165 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +55 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +375 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/tree.d.ts +18 -18
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +81 -0
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +55 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +430 -0
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +375 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +375 -0
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +165 -0
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +81 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +375 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +220 -0
- package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +52 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-qkReSi42.js +13 -0
- package/dist/assets/override-menu-Dyv1SsFk.js +13 -0
- package/dist/assets/validate-menu-DpF5os-S.js +13 -0
- package/dist/{catalog-C_6TM4e_.js → catalog-DeBJkQdk.js} +1 -1
- package/dist/{catalogSetting-pTMi5i6h.js → catalogSetting-CkZSHD-W.js} +1 -1
- package/dist/{category-CHNICcWp.js → category-CJKIi291.js} +5 -5
- package/dist/{currency-Dx-pn9tw.js → currency-NcUCHGGN.js} +1 -1
- package/dist/{customAttributes-DvHKcDWb.js → customAttributes-Cf1e7I1m.js} +1 -1
- package/dist/{index-CA3_R55p.js → index-B7ZCIQp2.js} +13 -13
- package/dist/{index-DqIorABw.js → index-BaeTP7Ku.js} +1 -1
- package/dist/{index-X3RliLfv.js → index-DQqxmq0e.js} +26 -26
- package/dist/{index-DGtoqrTo.js → index-EBL2mPva.js} +1 -1
- package/dist/{item-JhHKgoMj.js → item-BsvsZcce.js} +378 -378
- package/dist/iteration-CxQwvFbX.js +27 -0
- package/dist/{jszip.min-BQReTtS0.js → jszip.min-DoZyvEEd.js} +545 -545
- package/dist/{menu-2ymqQnFE.js → menu-Dlsf52hs.js} +27902 -27334
- package/dist/{menu-Bhfx50bt.js → menu-zMO5M1Ur.js} +1 -1
- package/dist/{menuV2-ZaA_QLdj.js → menuV2-Ss7NpjF_.js} +46 -46
- package/dist/mf-menu.css +1 -1
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
- package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +1 -1
- package/dist/{priceTier-IZtw6WUa.js → priceTier-Dhh2TKAL.js} +1 -1
- package/dist/{scheduler-CzuGjuw5.js → scheduler-CA9RiMAg.js} +20 -20
- package/dist/{subcategory-Dt6tFvIu.js → subcategory-tJjY3seO.js} +6 -6
- package/dist/{toExcel-CUrEHCjB.js → toExcel-C6zcyUsq.js} +2 -2
- package/dist/{unit-Ibbp0wZT.js → unit-D4M4cm2W.js} +9 -9
- package/package.json +3 -3
- package/dist/apps/mf-menu/src/components/Announcements.vue.d.ts +0 -19
- package/dist/apps/mf-menu/src/stores/announcement/announcement.d.ts +0 -11
- package/dist/assets/linked-status-Dwqdwyog.js +0 -13
- package/dist/assets/override-menu-CGexvHxV.js +0 -13
- package/dist/assets/validate-menu-C2daBpKY.js +0 -13
- package/dist/dayjs.min-BZu87fXJ.js +0 -6
- package/dist/iteration-BoeoXAHD.js +0 -23
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { defineStore as mo } from "pinia";
|
|
2
|
-
import { createElementBlock as re, openBlock as x, createElementVNode as B, defineComponent as ge, resolveComponent as K, createBlock as J, createVNode as
|
|
3
|
-
import { J as ze,
|
|
2
|
+
import { createElementBlock as re, openBlock as x, createElementVNode as B, defineComponent as ge, resolveComponent as K, createBlock as J, createVNode as R, toDisplayString as Ee, Fragment as Ve, renderList as rt, h as Fe, ref as oe, computed as z, watch as Le, unref as y, renderSlot as Ce, withCtx as W, createCommentVNode as se, Transition as ha, normalizeClass as Ke, resolveDynamicComponent as yn, withDirectives as Xt, vShow as kn, mergeProps as po, withModifiers as Sn, createTextVNode as Bn, getCurrentInstance as an, inject as ga, shallowRef as va, onMounted as $t, onUnmounted as _a, Text as ba, resolveDirective as fo, markRaw as ya, render as Wn, mergeModels as wa, useModel as Ea, nextTick as ho, onBeforeUnmount as ka, normalizeProps as Sa, guardReactiveProps as Oa, normalizeStyle as Ra } from "vue";
|
|
3
|
+
import { J as ze, z as q, ag as Ca, ai as Aa, X as Ia, H as be, B as Je, A as Ge, T as go, u as Me, I as at, D as St, O as Ot, P as Ta, Q as Ma, R as Da, U as Fn, aa as Fa, M as Na, K as Si } from "./menu-Dlsf52hs.js";
|
|
4
4
|
import { useI18n as Se, useCoreStore as rn, CustomAttributesForm as vo } from "@feedmepos/mf-common";
|
|
5
|
-
import { useDialog as lt, useSnackbar as Qe, components as Be, FmButtonColorThemeVariant as ft, FmButtonVariant as
|
|
6
|
-
import { C as ht } from "./catalog-
|
|
5
|
+
import { useDialog as lt, useSnackbar as Qe, components as Be, FmButtonColorThemeVariant as ft, FmButtonVariant as Rt, useBreakpoints as _o, useDialogChild as bo } from "@feedmepos/ui-library";
|
|
6
|
+
import { C as ht } from "./catalog-DeBJkQdk.js";
|
|
7
7
|
import { c as Pa } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
8
|
-
import { a as
|
|
9
|
-
import { _ as Ct, L as xa } from "./LinkProductSideSheet-
|
|
10
|
-
import { _ as ut, a as bt, b as Ua } from "./customAttributes-
|
|
11
|
-
import { s as Hn, F as Va, _ as za } from "./index-
|
|
12
|
-
import { I as $a, a as Ga } from "./app-
|
|
13
|
-
import { u as Ba } from "./app-
|
|
14
|
-
import { g as wo, b as Wa, c as Ha, a as ja, m as Ka } from "./menuV2-
|
|
15
|
-
import { u as Ya } from "./subcategory-
|
|
8
|
+
import { a as Oi, p as La, _ as yo } from "./tooltip-CQW9YRO5.js";
|
|
9
|
+
import { _ as Ct, L as xa } from "./LinkProductSideSheet-CiRZO3uN.js";
|
|
10
|
+
import { _ as ut, a as bt, b as Ua } from "./customAttributes-Cf1e7I1m.js";
|
|
11
|
+
import { s as Hn, F as Va, _ as za } from "./index-EBL2mPva.js";
|
|
12
|
+
import { I as $a, a as Ga } from "./app-DJ-rQRBU.js";
|
|
13
|
+
import { u as Ba } from "./app-B3_2cau3.js";
|
|
14
|
+
import { g as wo, b as Wa, c as Ha, a as ja, m as Ka } from "./menuV2-Ss7NpjF_.js";
|
|
15
|
+
import { u as Ya } from "./subcategory-tJjY3seO.js";
|
|
16
16
|
import "@vue/devtools-api";
|
|
17
|
-
import { u as Xa } from "./category-
|
|
17
|
+
import { u as Xa } from "./category-CJKIi291.js";
|
|
18
18
|
import { u as ui } from "./discardConfirm-BHni0LNu.js";
|
|
19
|
-
import { _ as Ft, l as jn, T as qa } from "./index-
|
|
19
|
+
import { _ as Ft, l as jn, T as qa } from "./index-B7ZCIQp2.js";
|
|
20
20
|
import { useInventoryStore as Eo, InventoryBindingForm as Ja, InventoryBindingSummary as Za } from "@feedmepos/mf-inventory-portal";
|
|
21
21
|
import { c as sn } from "./check-C9mY6LiX.js";
|
|
22
22
|
import { c as Qa } from "./object-DVUNCr7w.js";
|
|
23
|
-
import { f as Gt } from "./currency-
|
|
24
|
-
import { u as ko } from "./priceTier-
|
|
23
|
+
import { f as Gt } from "./currency-NcUCHGGN.js";
|
|
24
|
+
import { u as ko } from "./priceTier-Dhh2TKAL.js";
|
|
25
25
|
import { u as er } from "./search-BAPEUu1R.js";
|
|
26
26
|
import { c as tr } from "./string-DpfFixWH.js";
|
|
27
27
|
import { d as So } from "./vuedraggable-CK8z7qA8.js";
|
|
28
|
-
import { _ as nr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
29
|
-
import { V as
|
|
28
|
+
import { _ as nr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BK9XcgvQ.js";
|
|
29
|
+
import { V as Ri } from "./index-DQqxmq0e.js";
|
|
30
30
|
class vn {
|
|
31
31
|
constructor(t, n, i, a) {
|
|
32
32
|
this.scheduler = t, this.menuStore = n, this.updateMenu = i, this.dialog = a;
|
|
@@ -237,7 +237,7 @@ class vn {
|
|
|
237
237
|
})).filter((a) => a.items.length > 0);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function On(e, t) {
|
|
241
241
|
for (const n of t) {
|
|
242
242
|
const i = e.find((a) => a._id === n._id);
|
|
243
243
|
if (i != null && i.isDynamicAddon || n.isDynamicAddon) return q.F_ADDON_GROUP_TYPE.enum.DYNAMIC;
|
|
@@ -297,7 +297,7 @@ function ci(e) {
|
|
|
297
297
|
items: t
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Oo(e) {
|
|
301
301
|
const t = ci(e), n = (o) => ["product", "item", "addonGroup", "group"].some((r) => o._id.startsWith(r)), i = t.items.filter((o) => n(o)), a = t.items.filter((o) => !n(o)).map((o) => ({
|
|
302
302
|
...Je.generator.initMenuV4Item(),
|
|
303
303
|
...o,
|
|
@@ -316,7 +316,7 @@ function Ro(e) {
|
|
|
316
316
|
linkItems: a
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
class
|
|
319
|
+
class Ro {
|
|
320
320
|
constructor(t, n, i) {
|
|
321
321
|
this.menuStore = t, this.updateMenu = n, this.dialog = i;
|
|
322
322
|
}
|
|
@@ -391,7 +391,7 @@ class Oo {
|
|
|
391
391
|
name: go(Me().variants, ((T = b == null ? void 0 : b.variant) == null ? void 0 : T.variantGroupIds) || [])[p.combinationKey]
|
|
392
392
|
} : b, S = (w = o.find((k) => k._id === s._id)) == null ? void 0 : w.items.find((k) => k._id === p._id && k.combinationKey === p.combinationKey), v = !n && !p.combinationKey, h = (U = u.find(
|
|
393
393
|
(k) => k._id == p._id && k.combinationKey == p.combinationKey
|
|
394
|
-
)) == null ? void 0 : U.price, E = p.name ?? (S == null ? void 0 : S.name) ?? (_ == null ? void 0 : _.name) ?? "",
|
|
394
|
+
)) == null ? void 0 : U.price, E = p.name ?? (S == null ? void 0 : S.name) ?? (_ == null ? void 0 : _.name) ?? "", O = {
|
|
395
395
|
...p,
|
|
396
396
|
name: E,
|
|
397
397
|
code: _ == null ? void 0 : _.code,
|
|
@@ -402,8 +402,8 @@ class Oo {
|
|
|
402
402
|
fallbackOrder: _ == null ? void 0 : _.orderFrom,
|
|
403
403
|
priceTiers: p.priceTiers
|
|
404
404
|
};
|
|
405
|
-
return [...c,
|
|
406
|
-
}, []), d =
|
|
405
|
+
return [...c, O];
|
|
406
|
+
}, []), d = On(a, s.items);
|
|
407
407
|
return {
|
|
408
408
|
...s,
|
|
409
409
|
type: d,
|
|
@@ -430,7 +430,7 @@ class Oo {
|
|
|
430
430
|
...s,
|
|
431
431
|
items: (s.items ?? []).map((u) => ({ ...u, _id: "" }))
|
|
432
432
|
}, r), {}));
|
|
433
|
-
const a =
|
|
433
|
+
const a = Oo(n), o = {
|
|
434
434
|
module: q.F_MENU_MODULE_V4_KEY.enum.group,
|
|
435
435
|
operation: ze.F_OPERATION_TYPE.create,
|
|
436
436
|
data: {
|
|
@@ -542,7 +542,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
542
542
|
title: t.title,
|
|
543
543
|
contentComponent: Fe("div", { class: "space-y-4" }, [
|
|
544
544
|
...t.items.map(
|
|
545
|
-
(a) => Fe(
|
|
545
|
+
(a) => Fe(Oi, {
|
|
546
546
|
name: a.name,
|
|
547
547
|
value: a.value || "--"
|
|
548
548
|
})
|
|
@@ -554,8 +554,8 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
554
554
|
const r = K("FmButton");
|
|
555
555
|
return t.variant === "full" ? (x(), re("div", ur, [
|
|
556
556
|
B("div", cr, Ee(a.title), 1),
|
|
557
|
-
|
|
558
|
-
(x(!0), re(Ve, null, rt(a.items, (l) => (x(), J(
|
|
557
|
+
R(lr),
|
|
558
|
+
(x(!0), re(Ve, null, rt(a.items, (l) => (x(), J(Oi, {
|
|
559
559
|
key: l.name,
|
|
560
560
|
name: l.name,
|
|
561
561
|
value: l.value || "--"
|
|
@@ -626,7 +626,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
626
626
|
]),
|
|
627
627
|
B("div", hr, [
|
|
628
628
|
B("div", gr, [
|
|
629
|
-
|
|
629
|
+
R(b, {
|
|
630
630
|
label: y(a)("menu.common.labels.catalog"),
|
|
631
631
|
items: l.value,
|
|
632
632
|
modelValue: r.value,
|
|
@@ -634,7 +634,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
634
634
|
}, null, 8, ["label", "items", "modelValue"])
|
|
635
635
|
]),
|
|
636
636
|
B("div", vr, [
|
|
637
|
-
|
|
637
|
+
R(b, {
|
|
638
638
|
label: y(a)("menu.common.labels.scheduler"),
|
|
639
639
|
items: m.value,
|
|
640
640
|
modelValue: s.value,
|
|
@@ -672,12 +672,12 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
672
672
|
B("p", wr, Ee(i.title), 1),
|
|
673
673
|
i.description ? (x(), re("p", Er, Ee(i.description), 1)) : se("", !0)
|
|
674
674
|
]),
|
|
675
|
-
|
|
675
|
+
R(o, {
|
|
676
676
|
"model-value": i.toggle,
|
|
677
677
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => n("update:toggle", l))
|
|
678
678
|
}, null, 8, ["model-value"])
|
|
679
679
|
]),
|
|
680
|
-
|
|
680
|
+
R(ha, { name: "expand" }, {
|
|
681
681
|
default: W(() => [
|
|
682
682
|
i.toggle ? (x(), re("div", kr, [
|
|
683
683
|
Ce(i.$slots, "default", {}, void 0, !0)
|
|
@@ -691,9 +691,9 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
693
|
}), Tt = /* @__PURE__ */ Ct(Sr, [["__scopeId", "data-v-e920f110"]]);
|
|
694
|
-
var
|
|
694
|
+
var Or = { remy: "https://remy-dev.feedmeapi.com/v1" };
|
|
695
695
|
let We;
|
|
696
|
-
function
|
|
696
|
+
function Rr(e) {
|
|
697
697
|
const t = Ba(), n = $a(e), i = z(() => {
|
|
698
698
|
var s, u, m;
|
|
699
699
|
return ((m = (u = (s = t.publicSetting) == null ? void 0 : s.aiSettings) == null ? void 0 : u.remy) == null ? void 0 : m.enable) || !1;
|
|
@@ -716,9 +716,9 @@ function Or(e) {
|
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
718
|
function km(e) {
|
|
719
|
-
We =
|
|
719
|
+
We = Rr({
|
|
720
720
|
token: e,
|
|
721
|
-
url:
|
|
721
|
+
url: Or.remy
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
724
|
const Cr = mo("menu-edit-state", {
|
|
@@ -825,9 +825,9 @@ const Fr = /* @__PURE__ */ Ct(Tr, [["render", Dr]]), Nr = { class: "flex flex-co
|
|
|
825
825
|
return t({
|
|
826
826
|
hideMenu: u
|
|
827
827
|
}), (b, _) => {
|
|
828
|
-
const S = K("FmIcon"), v = K("FmField"), h = K("FmMenuItem"), E = K("FmMenu"),
|
|
828
|
+
const S = K("FmIcon"), v = K("FmField"), h = K("FmMenuItem"), E = K("FmMenu"), O = K("FmFormGroup"), A = K("FmChipGroup");
|
|
829
829
|
return x(), re("div", Nr, [
|
|
830
|
-
O
|
|
830
|
+
R(O, {
|
|
831
831
|
"model-value": b.modelValue,
|
|
832
832
|
disabled: b.disabled,
|
|
833
833
|
focused: d.value,
|
|
@@ -836,7 +836,7 @@ const Fr = /* @__PURE__ */ Ct(Tr, [["render", Dr]]), Nr = { class: "flex flex-co
|
|
|
836
836
|
rules: b.rules
|
|
837
837
|
}, {
|
|
838
838
|
default: W(({ invalid: T }) => [
|
|
839
|
-
|
|
839
|
+
R(E, {
|
|
840
840
|
disabled: b.disabled,
|
|
841
841
|
ref_key: "fmMenuRef",
|
|
842
842
|
ref: o,
|
|
@@ -844,13 +844,13 @@ const Fr = /* @__PURE__ */ Ct(Tr, [["render", Dr]]), Nr = { class: "flex flex-co
|
|
|
844
844
|
onMenuChanged: _[0] || (_[0] = (w) => d.value = w)
|
|
845
845
|
}, {
|
|
846
846
|
"menu-button": W(() => [
|
|
847
|
-
|
|
847
|
+
R(v, {
|
|
848
848
|
class: Ke(b.disabled ? "cursor-not-allowed" : "cursor-pointer"),
|
|
849
849
|
focused: d.value,
|
|
850
850
|
invalid: T
|
|
851
851
|
}, {
|
|
852
852
|
append: W(() => [
|
|
853
|
-
|
|
853
|
+
R(S, {
|
|
854
854
|
color: b.disabled ? "#C7C7CC" : "black",
|
|
855
855
|
name: d.value ? "expand_less" : "expand_more",
|
|
856
856
|
size: "md"
|
|
@@ -885,7 +885,7 @@ const Fr = /* @__PURE__ */ Ct(Tr, [["render", Dr]]), Nr = { class: "flex flex-co
|
|
|
885
885
|
_: 3
|
|
886
886
|
}, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
|
|
887
887
|
b.shouldShowChips && r.value.length > 0 ? (x(), re("div", Lr, [
|
|
888
|
-
|
|
888
|
+
R(A, {
|
|
889
889
|
disabled: b.disabled,
|
|
890
890
|
items: r.value.map((T) => ({ label: T.label })),
|
|
891
891
|
removable: "",
|
|
@@ -1162,7 +1162,7 @@ var Pn = et("vue-handler-wrapper"), Do = { name: "HandlerWrapper", components: {
|
|
|
1162
1162
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
1163
1163
|
Do.render = function(e, t, n, i, a, o) {
|
|
1164
1164
|
var r = K("DraggableElement");
|
|
1165
|
-
return x(), J("div", { class: o.classes.root }, [
|
|
1165
|
+
return x(), J("div", { class: o.classes.root }, [R(r, { class: o.classes.draggable, onDrag: t[1] || (t[1] = function(l) {
|
|
1166
1166
|
return e.$emit("drag", l);
|
|
1167
1167
|
}), onDragEnd: t[2] || (t[2] = function(l) {
|
|
1168
1168
|
return e.$emit("drag-end");
|
|
@@ -1217,7 +1217,7 @@ function Qt(e, t) {
|
|
|
1217
1217
|
function it(e, t) {
|
|
1218
1218
|
return { left: e.left - t.left, top: e.top - t.top, width: e.width + t.left + t.right, height: e.height + t.top + t.bottom };
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function Rn(e) {
|
|
1221
1221
|
return { left: -e.left, top: -e.top };
|
|
1222
1222
|
}
|
|
1223
1223
|
function He(e, t) {
|
|
@@ -1266,7 +1266,7 @@ function Cn(e, t) {
|
|
|
1266
1266
|
function Ue(e, t, n) {
|
|
1267
1267
|
n === void 0 && (n = !1);
|
|
1268
1268
|
var i = Ht(e, t);
|
|
1269
|
-
return He(e, n ?
|
|
1269
|
+
return He(e, n ? Rn(i) : i);
|
|
1270
1270
|
}
|
|
1271
1271
|
function qn(e) {
|
|
1272
1272
|
return { width: e.right !== void 0 && e.left !== void 0 ? e.right - e.left : 1 / 0, height: e.bottom !== void 0 && e.top !== void 0 ? e.bottom - e.top : 1 / 0 };
|
|
@@ -1351,7 +1351,7 @@ function Zr(e) {
|
|
|
1351
1351
|
var t = e.event, n = e.coordinates, i = e.visibleArea, a = e.getAreaRestrictions, o = ae({}, i), r = ae({}, n);
|
|
1352
1352
|
if (t.type === "setCoordinates") {
|
|
1353
1353
|
var l = Math.max(0, r.width - o.width), s = Math.max(0, r.height - o.height);
|
|
1354
|
-
l > s ? o = qe(o, Math.min(r.width / o.width, Wt(o, a({ visibleArea: o, type: "resize" })))) : s > l && (o = qe(o, Math.min(r.height / o.height, Wt(o, a({ visibleArea: o, type: "resize" }))))), o = Ue(o = He(o,
|
|
1354
|
+
l > s ? o = qe(o, Math.min(r.width / o.width, Wt(o, a({ visibleArea: o, type: "resize" })))) : s > l && (o = qe(o, Math.min(r.height / o.height, Wt(o, a({ visibleArea: o, type: "resize" }))))), o = Ue(o = He(o, Rn(Ht(r, st(o)))), a({ visibleArea: o, type: "move" }));
|
|
1355
1355
|
}
|
|
1356
1356
|
return { visibleArea: o, coordinates: r };
|
|
1357
1357
|
}
|
|
@@ -1385,7 +1385,7 @@ function is(e) {
|
|
|
1385
1385
|
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" })) } };
|
|
1386
1386
|
s.factor && b && (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 = qe(m, p, s.center));
|
|
1387
1387
|
var S = n.left - i.left, v = i.width + i.left - (n.width + n.left), h = n.top - i.top, E = i.height + i.top - (n.height + n.top);
|
|
1388
|
-
return m = Ue(m = He(m, Ht(m, { left: r.left !== void 0 ? r.left - S * p : void 0, top: r.top !== void 0 ? r.top - h * p : void 0, bottom: r.bottom !== void 0 ? r.bottom + E * p : void 0, right: r.right !== void 0 ? r.right + v * p : void 0 })), o({ visibleArea: m, type: "move" })), d.width = d.width * p, d.height = d.height * p, d.left = m.left + S * p, d.top = m.top + h * p, d = Ue(d, An(st(m), r)), s.factor && b && 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 = He(m = Ue(m = qe(m, c, s.factor > 1 ? s.center : xe(d)), o({ visibleArea: m, type: "move" })),
|
|
1388
|
+
return m = Ue(m = He(m, Ht(m, { left: r.left !== void 0 ? r.left - S * p : void 0, top: r.top !== void 0 ? r.top - h * p : void 0, bottom: r.bottom !== void 0 ? r.bottom + E * p : void 0, right: r.right !== void 0 ? r.right + v * p : void 0 })), o({ visibleArea: m, type: "move" })), d.width = d.width * p, d.height = d.height * p, d.left = m.left + S * p, d.top = m.top + h * p, d = Ue(d, An(st(m), r)), s.factor && b && 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 = He(m = Ue(m = qe(m, c, s.factor > 1 ? s.center : xe(d)), o({ visibleArea: m, type: "move" })), Rn(Ht(d, st(m)))))), { coordinates: d, visibleArea: m };
|
|
1389
1389
|
}
|
|
1390
1390
|
function os(e) {
|
|
1391
1391
|
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 = ae({}, i), d = ae({}, a), c = kt(xe(ae({ left: 0, top: 0 }, s)), u);
|
|
@@ -1450,7 +1450,7 @@ var rs = et("vue-simple-handler"), ss = et("vue-simple-handler-wrapper"), pi = {
|
|
|
1450
1450
|
pi.render = function(e, t, n, i, a, o) {
|
|
1451
1451
|
var r = K("HandlerWrapper");
|
|
1452
1452
|
return x(), J(r, { class: o.classes.wrapper, "vertical-position": n.verticalPosition, "horizontal-position": n.horizontalPosition, disabled: n.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: W(function() {
|
|
1453
|
-
return [
|
|
1453
|
+
return [R("div", { class: o.classes.default }, null, 2)];
|
|
1454
1454
|
}), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
1455
1455
|
};
|
|
1456
1456
|
var ls = et("vue-simple-line"), us = et("vue-simple-line-wrapper"), fi = { name: "SimpleLine", components: { LineWrapper: Fo }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
@@ -1469,7 +1469,7 @@ var ls = et("vue-simple-line"), us = et("vue-simple-line-wrapper"), fi = { name:
|
|
|
1469
1469
|
fi.render = function(e, t, n, i, a, o) {
|
|
1470
1470
|
var r = K("LineWrapper");
|
|
1471
1471
|
return x(), J(r, { class: o.classes.wrapper, position: n.position, disabled: n.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: W(function() {
|
|
1472
|
-
return [
|
|
1472
|
+
return [R("div", { class: o.classes.root }, null, 2)];
|
|
1473
1473
|
}), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
1474
1474
|
};
|
|
1475
1475
|
var xn = et("vue-bounding-box"), cs = ["east", "west", null], ds = ["south", "north", null], xo = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
|
|
@@ -1534,7 +1534,7 @@ var xn = et("vue-bounding-box"), cs = ["east", "west", null], ds = ["south", "no
|
|
|
1534
1534
|
t === "west" ? l.left -= o : t === "east" && (l.right += o), n === "north" ? l.top -= r : n === "south" && (l.bottom += r), !n && t ? i = "width" : n && !t && (i = "height"), this.resizable && this.$emit("resize", new $r(l, { allowedDirections: { left: t === "west" || !t, right: t === "east" || !t, bottom: n === "south" || !n, top: n === "north" || !n }, preserveAspectRatio: e.nativeEvent && e.nativeEvent.shiftKey, respectDirection: i }));
|
|
1535
1535
|
} }, emits: ["resize", "resize-end"] };
|
|
1536
1536
|
xo.render = function(e, t, n, i, a, o) {
|
|
1537
|
-
return x(), J("div", { ref: "box", class: o.classes.root, style: o.style }, [Ce(e.$slots, "default"),
|
|
1537
|
+
return x(), J("div", { ref: "box", class: o.classes.root, style: o.style }, [Ce(e.$slots, "default"), R("div", null, [(x(!0), J(Ve, null, rt(o.lineNodes, function(r) {
|
|
1538
1538
|
return x(), J(yn(r.component), { key: r.name, "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, position: r.name, disabled: r.disabled, onDrag: function(l) {
|
|
1539
1539
|
return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
|
|
1540
1540
|
}, onDragEnd: t[1] || (t[1] = function(l) {
|
|
@@ -1794,7 +1794,7 @@ var pn = et("vue-preview"), $o = { props: { coordinates: { type: Object }, trans
|
|
|
1794
1794
|
e && e.complete && this.refreshImage(), this.refresh();
|
|
1795
1795
|
} } };
|
|
1796
1796
|
$o.render = function(e, t, n, i, a, o) {
|
|
1797
|
-
return x(), J("div", { ref: "root", class: o.classes.root, style: o.style }, [
|
|
1797
|
+
return x(), J("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"]), [[kn, n.image && n.image.src]])], 6)], 6);
|
|
1798
1798
|
};
|
|
1799
1799
|
var Go = { components: { Preview: $o }, inheritAttrs: !1 };
|
|
1800
1800
|
Go.render = function(e, t, n, i, a, o) {
|
|
@@ -1833,9 +1833,9 @@ var Vn = et("vue-rectangle-stencil"), Bo = { name: "RectangleStencil", component
|
|
|
1833
1833
|
} }, emits: ["resize", "resize-end", "move", "move-end"] };
|
|
1834
1834
|
Bo.render = function(e, t, n, i, a, o) {
|
|
1835
1835
|
var r = K("stencil-preview"), l = K("draggable-area"), s = K("bounding-box");
|
|
1836
|
-
return x(), J("div", { class: o.classes.stencil, style: o.style }, [
|
|
1837
|
-
return [
|
|
1838
|
-
return [
|
|
1836
|
+
return x(), J("div", { class: o.classes.stencil, style: o.style }, [R(s, { width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, transitions: n.transitions, class: o.classes.boundingBox, handlers: n.handlers, "handlers-component": n.handlersComponent, "handlers-classes": n.handlersClasses, "handlers-wrappers-classes": n.handlersWrappersClasses, lines: n.lines, "lines-component": n.linesComponent, "lines-classes": n.linesClasses, "lines-wrappers-classes": n.linesWrappersClasses, resizable: n.resizable, onResize: o.onResize, onResizeEnd: o.onResizeEnd }, { default: W(function() {
|
|
1837
|
+
return [R(l, { movable: n.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: W(function() {
|
|
1838
|
+
return [R(r, { image: n.image, coordinates: n.coordinates, width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, class: o.classes.preview, transitions: n.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
|
|
1839
1839
|
}), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
|
|
1840
1840
|
}), _: 1 }, 8, ["width", "height", "transitions", "class", "handlers", "handlers-component", "handlers-classes", "handlers-wrappers-classes", "lines", "lines-component", "lines-classes", "lines-wrappers-classes", "resizable", "onResize", "onResizeEnd"])], 6);
|
|
1841
1841
|
};
|
|
@@ -1851,8 +1851,8 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1851
1851
|
return !(typeof e == "string" && e !== "fill" && e !== "fit");
|
|
1852
1852
|
} }, priority: { type: String, default: "coordinates" }, stencilSize: { type: [Object, Function] }, resizeImage: { type: [Boolean, Object], default: !0 }, moveImage: { type: [Boolean, Object], default: !0 }, autoZoomAlgorithm: { type: Function }, resizeAlgorithm: { type: Function, default: function(e) {
|
|
1853
1853
|
var t = e.event, n = e.coordinates, i = e.aspectRatio, a = e.positionRestrictions, o = e.sizeRestrictions, r = ae(ae({}, n), { right: n.left + n.width, bottom: n.top + n.height }), l = t.params || {}, s = ae({}, t.directions), u = l.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
|
|
1854
|
-
o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), ot.forEach(function(
|
|
1855
|
-
u[
|
|
1854
|
+
o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), ot.forEach(function(O) {
|
|
1855
|
+
u[O] || (s[O] = 0);
|
|
1856
1856
|
});
|
|
1857
1857
|
var m = it(r, s = Li({ coordinates: r, directions: s, sizeRestrictions: o, positionRestrictions: a })).width, d = it(r, s).height, c = l.preserveRatio ? me(r) : Ln(m / d, i);
|
|
1858
1858
|
if (c) {
|
|
@@ -1872,8 +1872,8 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1872
1872
|
}
|
|
1873
1873
|
s = Li({ directions: s, coordinates: r, sizeRestrictions: o, positionRestrictions: a, preserveRatio: !0, compensate: l.compensate });
|
|
1874
1874
|
}
|
|
1875
|
-
return m = it(r, s).width, d = it(r, s).height, (c = l.preserveRatio ? me(r) : Ln(m / d, i)) && Math.abs(c - m / d) > 1e-3 && ot.forEach(function(
|
|
1876
|
-
u[
|
|
1875
|
+
return m = it(r, s).width, d = it(r, s).height, (c = l.preserveRatio ? me(r) : Ln(m / d, i)) && Math.abs(c - m / d) > 1e-3 && ot.forEach(function(O) {
|
|
1876
|
+
u[O] || (s[O] = 0);
|
|
1877
1877
|
}), Jn({ event: new di({ left: -s.left, top: -s.top }), coordinates: { width: n.width + s.right + s.left, height: n.height + s.top + s.bottom, left: n.left, top: n.top }, positionRestrictions: a });
|
|
1878
1878
|
} }, moveAlgorithm: { type: Function, default: Jn }, initStretcher: { type: Function, default: function(e) {
|
|
1879
1879
|
var t = e.stretcher, n = e.imageSize, i = me(n);
|
|
@@ -1884,7 +1884,7 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1884
1884
|
} }, fitVisibleArea: { type: Function, default: function(e) {
|
|
1885
1885
|
var t = e.visibleArea, n = e.boundaries, i = e.getAreaRestrictions, a = e.coordinates, o = ae({}, t);
|
|
1886
1886
|
o.height = o.width / me(n), o.top += (t.height - o.height) / 2, (a.height - o.height > 0 || a.width - o.width > 0) && (o = qe(o, Math.max(a.height / o.height, a.width / o.width)));
|
|
1887
|
-
var r =
|
|
1887
|
+
var r = Rn(Ht(a, st(o = qe(o, Cn(o, i({ visibleArea: o, type: "resize" }))))));
|
|
1888
1888
|
return o.width < a.width && (r.left = 0), o.height < a.height && (r.top = 0), o = Ue(o = He(o, r), i({ visibleArea: o, type: "move" }));
|
|
1889
1889
|
} }, areaRestrictionsAlgorithm: { type: Function, default: function(e) {
|
|
1890
1890
|
var t = e.visibleArea, n = e.boundaries, i = e.imageSize, a = e.imageRestriction, o = e.type, r = {};
|
|
@@ -2266,9 +2266,9 @@ var hs = ["transitions"], mt = et("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
2266
2266
|
}
|
|
2267
2267
|
} }, emits: ["change", "error", "ready"] }, gs = { key: 0, ref: "canvas", style: { display: "none" } }, vs = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
|
|
2268
2268
|
Wo.render = function(e, t, n, i, a, o) {
|
|
2269
|
-
return x(), J("div", { ref: "cropper", class: o.classes.cropper }, [
|
|
2270
|
-
return [
|
|
2271
|
-
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2),
|
|
2269
|
+
return x(), J("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 }, [(x(), J(yn(n.backgroundWrapperComponent), { class: o.classes.cropperWrapper, "wheel-resize": o.settings.resizeImage.wheel, "touch-resize": o.settings.resizeImage.touch, "touch-move": o.settings.moveImage.touch, "mouse-move": o.settings.moveImage.mouse, onMove: o.onManipulateImage, onResize: o.onManipulateImage }, { default: W(function() {
|
|
2270
|
+
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] = Sn(function() {
|
|
2271
|
+
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), R("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), Xt((x(), J(yn(n.stencilComponent), po({ ref: "stencil", image: o.image, coordinates: a.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, n.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[kn, a.imageLoaded]]), n.canvas ? (x(), J("canvas", gs, null, 512)) : se("", !0), n.canvas ? (x(), J("canvas", vs, null, 512)) : se("", !0)];
|
|
2272
2272
|
}), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
|
|
2273
2273
|
};
|
|
2274
2274
|
function _s(e, t) {
|
|
@@ -2299,9 +2299,9 @@ const ys = {
|
|
|
2299
2299
|
])
|
|
2300
2300
|
}, Ss = {
|
|
2301
2301
|
class: /* @__PURE__ */ Ke(["absolute inset-0", "h-full w-full", "rounded-md overflow-hidden"])
|
|
2302
|
-
},
|
|
2302
|
+
}, Os = {
|
|
2303
2303
|
class: /* @__PURE__ */ Ke(["relative z-0", "w-full h-full", "overflow-hidden"])
|
|
2304
|
-
},
|
|
2304
|
+
}, Rs = { class: "fm-typo-en-body-lg-600 pb-4" }, Cs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, As = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Is = /* @__PURE__ */ ge({
|
|
2305
2305
|
__name: "ImageDropField",
|
|
2306
2306
|
props: {
|
|
2307
2307
|
modelValue: {}
|
|
@@ -2343,8 +2343,8 @@ const ys = {
|
|
|
2343
2343
|
]),
|
|
2344
2344
|
B("div", ks, [
|
|
2345
2345
|
B("div", Ss, [
|
|
2346
|
-
B("div",
|
|
2347
|
-
|
|
2346
|
+
B("div", Os, [
|
|
2347
|
+
R(y(Wo), {
|
|
2348
2348
|
class: "cropper h-[150px] w-[200px]",
|
|
2349
2349
|
src: r.value || o.value,
|
|
2350
2350
|
"stencil-props": {
|
|
@@ -2369,7 +2369,7 @@ const ys = {
|
|
|
2369
2369
|
type: "button",
|
|
2370
2370
|
onClick: d
|
|
2371
2371
|
}, [
|
|
2372
|
-
|
|
2372
|
+
R(b, { name: "close" })
|
|
2373
2373
|
])
|
|
2374
2374
|
])
|
|
2375
2375
|
])
|
|
@@ -2380,7 +2380,7 @@ const ys = {
|
|
|
2380
2380
|
onFileUpload: u
|
|
2381
2381
|
}, {
|
|
2382
2382
|
label: W(() => [
|
|
2383
|
-
B("p",
|
|
2383
|
+
B("p", Rs, [
|
|
2384
2384
|
Bn(Ee(y(i)("menu.common.labels.product_image")) + " ", 1),
|
|
2385
2385
|
B("span", Cs, Ee(y(i)("menu.common.labels.optional")), 1)
|
|
2386
2386
|
])
|
|
@@ -2471,7 +2471,7 @@ const ys = {
|
|
|
2471
2471
|
return (u, m) => {
|
|
2472
2472
|
const d = K("fm-select");
|
|
2473
2473
|
return x(), re("div", null, [
|
|
2474
|
-
|
|
2474
|
+
R(d, {
|
|
2475
2475
|
disabled: e.disable,
|
|
2476
2476
|
items: r.value,
|
|
2477
2477
|
label: e.label ?? y(i)("menu.common.labels.order_from"),
|
|
@@ -2559,7 +2559,7 @@ const zs = Object.prototype.hasOwnProperty;
|
|
|
2559
2559
|
function Ze(e, t) {
|
|
2560
2560
|
return zs.call(e, t);
|
|
2561
2561
|
}
|
|
2562
|
-
const Te = Array.isArray,
|
|
2562
|
+
const Te = Array.isArray, Oe = (e) => typeof e == "function", te = (e) => typeof e == "string", Re = (e) => typeof e == "boolean", fe = (e) => e !== null && typeof e == "object", $s = (e) => fe(e) && Oe(e.then) && Oe(e.catch), jo = Object.prototype.toString, gi = (e) => jo.call(e), pe = (e) => gi(e) === "[object Object]", Gs = (e) => e == null ? "" : Te(e) || pe(e) && e.toString === jo ? JSON.stringify(e, null, 2) : String(e);
|
|
2563
2563
|
function vi(e, t = "") {
|
|
2564
2564
|
return e.reduce((n, i, a) => a === 0 ? n + i : n + t + i, "");
|
|
2565
2565
|
}
|
|
@@ -2621,7 +2621,7 @@ function qs(e) {
|
|
|
2621
2621
|
function E() {
|
|
2622
2622
|
return r(n + o) && o++, o++, t[n + o];
|
|
2623
2623
|
}
|
|
2624
|
-
function
|
|
2624
|
+
function O() {
|
|
2625
2625
|
n = 0, i = 1, a = 1, o = 0;
|
|
2626
2626
|
}
|
|
2627
2627
|
function A(w = 0) {
|
|
@@ -2643,7 +2643,7 @@ function qs(e) {
|
|
|
2643
2643
|
currentPeek: v,
|
|
2644
2644
|
next: h,
|
|
2645
2645
|
peek: E,
|
|
2646
|
-
reset:
|
|
2646
|
+
reset: O,
|
|
2647
2647
|
resetPeek: A,
|
|
2648
2648
|
skipToPeek: T
|
|
2649
2649
|
};
|
|
@@ -2718,7 +2718,7 @@ function Qs(e, t = {}) {
|
|
|
2718
2718
|
const Y = v(f.currentPeek());
|
|
2719
2719
|
return f.resetPeek(), Y;
|
|
2720
2720
|
}
|
|
2721
|
-
function
|
|
2721
|
+
function O(f, g) {
|
|
2722
2722
|
const { currentType: L } = g;
|
|
2723
2723
|
if (L !== 2)
|
|
2724
2724
|
return !1;
|
|
@@ -2957,7 +2957,7 @@ function Qs(e, t = {}) {
|
|
|
2957
2957
|
return d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), g.braceNest = 0, wt(f, g);
|
|
2958
2958
|
if (X = E(f, g))
|
|
2959
2959
|
return L = c(g, 4, Z(f)), S(f), L;
|
|
2960
|
-
if (ue =
|
|
2960
|
+
if (ue = O(f, g))
|
|
2961
2961
|
return L = c(g, 5, ne(f)), S(f), L;
|
|
2962
2962
|
if (F = A(f, g))
|
|
2963
2963
|
return L = c(g, 6, ee(f)), S(f), L;
|
|
@@ -3060,9 +3060,9 @@ function nl(e, t, n) {
|
|
|
3060
3060
|
}
|
|
3061
3061
|
function il(e = {}) {
|
|
3062
3062
|
const t = e.location !== !1, { onError: n } = e;
|
|
3063
|
-
function i(v, h, E,
|
|
3063
|
+
function i(v, h, E, O, ...A) {
|
|
3064
3064
|
const T = v.currentPosition();
|
|
3065
|
-
if (T.offset +=
|
|
3065
|
+
if (T.offset += O, T.column += O, n) {
|
|
3066
3066
|
const w = t ? Qn(E, T) : null, U = Tn(h, w, {
|
|
3067
3067
|
domain: el,
|
|
3068
3068
|
args: A
|
|
@@ -3071,31 +3071,31 @@ function il(e = {}) {
|
|
|
3071
3071
|
}
|
|
3072
3072
|
}
|
|
3073
3073
|
function a(v, h, E) {
|
|
3074
|
-
const
|
|
3075
|
-
return t && (
|
|
3074
|
+
const O = { type: v };
|
|
3075
|
+
return t && (O.start = h, O.end = h, O.loc = { start: E, end: E }), O;
|
|
3076
3076
|
}
|
|
3077
|
-
function o(v, h, E,
|
|
3077
|
+
function o(v, h, E, O) {
|
|
3078
3078
|
t && (v.end = h, v.loc && (v.loc.end = E));
|
|
3079
3079
|
}
|
|
3080
3080
|
function r(v, h) {
|
|
3081
|
-
const E = v.context(),
|
|
3082
|
-
return
|
|
3081
|
+
const E = v.context(), O = a(3, E.offset, E.startLoc);
|
|
3082
|
+
return O.value = h, o(O, v.currentOffset(), v.currentPosition()), O;
|
|
3083
3083
|
}
|
|
3084
3084
|
function l(v, h) {
|
|
3085
|
-
const E = v.context(), { lastOffset:
|
|
3085
|
+
const E = v.context(), { lastOffset: O, lastStartLoc: A } = E, T = a(5, O, A);
|
|
3086
3086
|
return T.index = parseInt(h, 10), v.nextToken(), o(T, v.currentOffset(), v.currentPosition()), T;
|
|
3087
3087
|
}
|
|
3088
3088
|
function s(v, h) {
|
|
3089
|
-
const E = v.context(), { lastOffset:
|
|
3089
|
+
const E = v.context(), { lastOffset: O, lastStartLoc: A } = E, T = a(4, O, A);
|
|
3090
3090
|
return T.key = h, v.nextToken(), o(T, v.currentOffset(), v.currentPosition()), T;
|
|
3091
3091
|
}
|
|
3092
3092
|
function u(v, h) {
|
|
3093
|
-
const E = v.context(), { lastOffset:
|
|
3093
|
+
const E = v.context(), { lastOffset: O, lastStartLoc: A } = E, T = a(9, O, A);
|
|
3094
3094
|
return T.value = h.replace(tl, nl), v.nextToken(), o(T, v.currentOffset(), v.currentPosition()), T;
|
|
3095
3095
|
}
|
|
3096
3096
|
function m(v) {
|
|
3097
|
-
const h = v.nextToken(), E = v.context(), { lastOffset:
|
|
3098
|
-
return h.type !== 11 ? (i(v, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, E.lastStartLoc, 0), T.value = "", o(T,
|
|
3097
|
+
const h = v.nextToken(), E = v.context(), { lastOffset: O, lastStartLoc: A } = E, T = a(8, O, A);
|
|
3098
|
+
return h.type !== 11 ? (i(v, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, E.lastStartLoc, 0), T.value = "", o(T, O, A), {
|
|
3099
3099
|
nextConsumeToken: h,
|
|
3100
3100
|
node: T
|
|
3101
3101
|
}) : (h.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, nt(h)), T.value = h.value || "", o(T, v.currentOffset(), v.currentPosition()), {
|
|
@@ -3103,34 +3103,34 @@ function il(e = {}) {
|
|
|
3103
3103
|
});
|
|
3104
3104
|
}
|
|
3105
3105
|
function d(v, h) {
|
|
3106
|
-
const E = v.context(),
|
|
3107
|
-
return
|
|
3106
|
+
const E = v.context(), O = a(7, E.offset, E.startLoc);
|
|
3107
|
+
return O.value = h, o(O, v.currentOffset(), v.currentPosition()), O;
|
|
3108
3108
|
}
|
|
3109
3109
|
function c(v) {
|
|
3110
3110
|
const h = v.context(), E = a(6, h.offset, h.startLoc);
|
|
3111
|
-
let
|
|
3112
|
-
if (
|
|
3111
|
+
let O = v.nextToken();
|
|
3112
|
+
if (O.type === 8) {
|
|
3113
3113
|
const A = m(v);
|
|
3114
|
-
E.modifier = A.node,
|
|
3114
|
+
E.modifier = A.node, O = A.nextConsumeToken || v.nextToken();
|
|
3115
3115
|
}
|
|
3116
|
-
switch (
|
|
3116
|
+
switch (O.type !== 9 && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(O)), O = v.nextToken(), O.type === 2 && (O = v.nextToken()), O.type) {
|
|
3117
3117
|
case 10:
|
|
3118
|
-
|
|
3118
|
+
O.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(O)), E.key = d(v, O.value || "");
|
|
3119
3119
|
break;
|
|
3120
3120
|
case 4:
|
|
3121
|
-
|
|
3121
|
+
O.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(O)), E.key = s(v, O.value || "");
|
|
3122
3122
|
break;
|
|
3123
3123
|
case 5:
|
|
3124
|
-
|
|
3124
|
+
O.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(O)), E.key = l(v, O.value || "");
|
|
3125
3125
|
break;
|
|
3126
3126
|
case 6:
|
|
3127
|
-
|
|
3127
|
+
O.value == null && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, nt(O)), E.key = u(v, O.value || "");
|
|
3128
3128
|
break;
|
|
3129
3129
|
default: {
|
|
3130
3130
|
i(v, _e.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
3131
3131
|
const A = v.context(), T = a(7, A.offset, A.startLoc);
|
|
3132
3132
|
return T.value = "", o(T, A.offset, A.startLoc), E.key = T, o(E, A.offset, A.startLoc), {
|
|
3133
|
-
nextConsumeToken:
|
|
3133
|
+
nextConsumeToken: O,
|
|
3134
3134
|
node: E
|
|
3135
3135
|
};
|
|
3136
3136
|
}
|
|
@@ -3140,7 +3140,7 @@ function il(e = {}) {
|
|
|
3140
3140
|
};
|
|
3141
3141
|
}
|
|
3142
3142
|
function p(v) {
|
|
3143
|
-
const h = v.context(), E = h.currentType === 1 ? v.currentOffset() : h.offset,
|
|
3143
|
+
const h = v.context(), E = h.currentType === 1 ? v.currentOffset() : h.offset, O = h.currentType === 1 ? h.endLoc : h.startLoc, A = a(2, E, O);
|
|
3144
3144
|
A.items = [];
|
|
3145
3145
|
let T = null;
|
|
3146
3146
|
do {
|
|
@@ -3168,11 +3168,11 @@ function il(e = {}) {
|
|
|
3168
3168
|
const w = h.currentType === 1 ? h.lastOffset : v.currentOffset(), U = h.currentType === 1 ? h.lastEndLoc : v.currentPosition();
|
|
3169
3169
|
return o(A, w, U), A;
|
|
3170
3170
|
}
|
|
3171
|
-
function b(v, h, E,
|
|
3171
|
+
function b(v, h, E, O) {
|
|
3172
3172
|
const A = v.context();
|
|
3173
|
-
let T =
|
|
3173
|
+
let T = O.items.length === 0;
|
|
3174
3174
|
const w = a(1, h, E);
|
|
3175
|
-
w.cases = [], w.cases.push(
|
|
3175
|
+
w.cases = [], w.cases.push(O);
|
|
3176
3176
|
do {
|
|
3177
3177
|
const U = p(v);
|
|
3178
3178
|
T || (T = U.items.length === 0), w.cases.push(U);
|
|
@@ -3180,12 +3180,12 @@ function il(e = {}) {
|
|
|
3180
3180
|
return T && i(v, _e.MUST_HAVE_MESSAGES_IN_PLURAL, E, 0), o(w, v.currentOffset(), v.currentPosition()), w;
|
|
3181
3181
|
}
|
|
3182
3182
|
function _(v) {
|
|
3183
|
-
const h = v.context(), { offset: E, startLoc:
|
|
3184
|
-
return h.currentType === 13 ? A : b(v, E,
|
|
3183
|
+
const h = v.context(), { offset: E, startLoc: O } = h, A = p(v);
|
|
3184
|
+
return h.currentType === 13 ? A : b(v, E, O, A);
|
|
3185
3185
|
}
|
|
3186
3186
|
function S(v) {
|
|
3187
|
-
const h = Qs(v, Pe({}, e)), E = h.context(),
|
|
3188
|
-
return t &&
|
|
3187
|
+
const h = Qs(v, Pe({}, e)), E = h.context(), O = a(0, E.offset, E.startLoc);
|
|
3188
|
+
return t && O.loc && (O.loc.source = v), O.body = _(h), e.onCacheKey && (O.cacheKey = e.onCacheKey(v)), E.currentType !== 13 && i(h, _e.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, v[E.offset] || ""), o(O, h.currentOffset(), h.currentPosition()), O;
|
|
3189
3189
|
}
|
|
3190
3190
|
return { parse: S };
|
|
3191
3191
|
}
|
|
@@ -3556,13 +3556,13 @@ function ei(e, t) {
|
|
|
3556
3556
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
3557
3557
|
}
|
|
3558
3558
|
}
|
|
3559
|
-
const
|
|
3559
|
+
const Ol = ["t", "type"];
|
|
3560
3560
|
function bi(e) {
|
|
3561
|
-
return At(e,
|
|
3561
|
+
return At(e, Ol);
|
|
3562
3562
|
}
|
|
3563
|
-
const
|
|
3563
|
+
const Rl = ["v", "value"];
|
|
3564
3564
|
function hn(e, t) {
|
|
3565
|
-
const n = At(e,
|
|
3565
|
+
const n = At(e, Rl);
|
|
3566
3566
|
if (n)
|
|
3567
3567
|
return n;
|
|
3568
3568
|
throw en(t);
|
|
@@ -3607,7 +3607,7 @@ function Dl(e, t = {}) {
|
|
|
3607
3607
|
// @__NO_SIDE_EFFECTS__
|
|
3608
3608
|
function Fl(e, t) {
|
|
3609
3609
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && te(e)) {
|
|
3610
|
-
|
|
3610
|
+
Re(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
3611
3611
|
const i = (t.onCacheKey || Ml)(e), a = gn[i];
|
|
3612
3612
|
if (a)
|
|
3613
3613
|
return a;
|
|
@@ -3661,7 +3661,7 @@ let $n;
|
|
|
3661
3661
|
function Hi(e) {
|
|
3662
3662
|
if (te(e))
|
|
3663
3663
|
return e;
|
|
3664
|
-
if (
|
|
3664
|
+
if (Oe(e)) {
|
|
3665
3665
|
if (e.resolvedOnce && $n != null)
|
|
3666
3666
|
return $n;
|
|
3667
3667
|
if (e.constructor.name === "Function") {
|
|
@@ -3696,7 +3696,7 @@ function Ko(e, t, n) {
|
|
|
3696
3696
|
}
|
|
3697
3697
|
function ji(e, t, n) {
|
|
3698
3698
|
let i = !0;
|
|
3699
|
-
for (let a = 0; a < t.length &&
|
|
3699
|
+
for (let a = 0; a < t.length && Re(i); a++) {
|
|
3700
3700
|
const o = t[a];
|
|
3701
3701
|
te(o) && (i = zl(e, t[a], n));
|
|
3702
3702
|
}
|
|
@@ -4000,7 +4000,7 @@ function Xl(e, t) {
|
|
|
4000
4000
|
let a = e, o = 0;
|
|
4001
4001
|
for (; o < i; ) {
|
|
4002
4002
|
const r = a[n[o]];
|
|
4003
|
-
if (r === void 0 ||
|
|
4003
|
+
if (r === void 0 || Oe(a))
|
|
4004
4004
|
return null;
|
|
4005
4005
|
a = r, o++;
|
|
4006
4006
|
}
|
|
@@ -4036,7 +4036,7 @@ const qi = (e) => {
|
|
|
4036
4036
|
}, iu = () => Zo;
|
|
4037
4037
|
let Ji = 0;
|
|
4038
4038
|
function ou(e = {}) {
|
|
4039
|
-
const t =
|
|
4039
|
+
const t = Oe(e.onWarn) ? e.onWarn : Bs, n = te(e.version) ? e.version : ql, i = te(e.locale) || Oe(e.locale) ? e.locale : En, a = Oe(i) ? En : i, o = Te(e.fallbackLocale) || pe(e.fallbackLocale) || te(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, r = pe(e.messages) ? e.messages : Gn(a), l = pe(e.datetimeFormats) ? e.datetimeFormats : Gn(a), s = pe(e.numberFormats) ? e.numberFormats : Gn(a), u = Pe(ye(), e.modifiers, Jl()), m = e.pluralRules || ye(), d = Oe(e.missing) ? e.missing : null, c = Re(e.missingWarn) || wn(e.missingWarn) ? e.missingWarn : !0, p = Re(e.fallbackWarn) || wn(e.fallbackWarn) ? e.fallbackWarn : !0, b = !!e.fallbackFormat, _ = !!e.unresolving, S = Oe(e.postTranslation) ? e.postTranslation : null, v = pe(e.processor) ? e.processor : null, h = Re(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter, O = Oe(e.messageCompiler) ? e.messageCompiler : Yo, A = Oe(e.messageResolver) ? e.messageResolver : Xo || Yl, T = Oe(e.localeFallbacker) ? e.localeFallbacker : qo || Vl, w = fe(e.fallbackContext) ? e.fallbackContext : void 0, U = e, k = fe(U.__datetimeFormatters) ? U.__datetimeFormatters : /* @__PURE__ */ new Map(), I = fe(U.__numberFormatters) ? U.__numberFormatters : /* @__PURE__ */ new Map(), N = fe(U.__meta) ? U.__meta : {};
|
|
4040
4040
|
Ji++;
|
|
4041
4041
|
const M = {
|
|
4042
4042
|
version: n,
|
|
@@ -4055,7 +4055,7 @@ function ou(e = {}) {
|
|
|
4055
4055
|
processor: v,
|
|
4056
4056
|
warnHtmlMessage: h,
|
|
4057
4057
|
escapeParameter: E,
|
|
4058
|
-
messageCompiler:
|
|
4058
|
+
messageCompiler: O,
|
|
4059
4059
|
messageResolver: A,
|
|
4060
4060
|
localeFallbacker: T,
|
|
4061
4061
|
fallbackContext: w,
|
|
@@ -4090,8 +4090,8 @@ function ru(e, t) {
|
|
|
4090
4090
|
return !1;
|
|
4091
4091
|
}
|
|
4092
4092
|
function Zi(e, ...t) {
|
|
4093
|
-
const { datetimeFormats: n, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: r } = e, { __datetimeFormatters: l } = e, [s, u, m, d] = ti(...t), c =
|
|
4094
|
-
|
|
4093
|
+
const { datetimeFormats: n, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: r } = e, { __datetimeFormatters: l } = e, [s, u, m, d] = ti(...t), c = Re(m.missingWarn) ? m.missingWarn : e.missingWarn;
|
|
4094
|
+
Re(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn;
|
|
4095
4095
|
const p = !!m.part, b = yi(e, m), _ = r(
|
|
4096
4096
|
e,
|
|
4097
4097
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -4106,10 +4106,10 @@ function Zi(e, ...t) {
|
|
|
4106
4106
|
wi(e, s, v, c, E);
|
|
4107
4107
|
if (!pe(h) || !te(v))
|
|
4108
4108
|
return i ? Mn : s;
|
|
4109
|
-
let
|
|
4110
|
-
In(d) || (
|
|
4111
|
-
let A = l.get(
|
|
4112
|
-
return A || (A = new Intl.DateTimeFormat(v, Pe({}, h, d)), l.set(
|
|
4109
|
+
let O = `${v}__${s}`;
|
|
4110
|
+
In(d) || (O = `${O}__${JSON.stringify(d)}`);
|
|
4111
|
+
let A = l.get(O);
|
|
4112
|
+
return A || (A = new Intl.DateTimeFormat(v, Pe({}, h, d)), l.set(O, A)), p ? A.formatToParts(u) : A.format(u);
|
|
4113
4113
|
}
|
|
4114
4114
|
const Qo = [
|
|
4115
4115
|
"localeMatcher",
|
|
@@ -4167,8 +4167,8 @@ function Qi(e, t, n) {
|
|
|
4167
4167
|
}
|
|
4168
4168
|
}
|
|
4169
4169
|
function eo(e, ...t) {
|
|
4170
|
-
const { numberFormats: n, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: r } = e, { __numberFormatters: l } = e, [s, u, m, d] = ni(...t), c =
|
|
4171
|
-
|
|
4170
|
+
const { numberFormats: n, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: r } = e, { __numberFormatters: l } = e, [s, u, m, d] = ni(...t), c = Re(m.missingWarn) ? m.missingWarn : e.missingWarn;
|
|
4171
|
+
Re(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn;
|
|
4172
4172
|
const p = !!m.part, b = yi(e, m), _ = r(
|
|
4173
4173
|
e,
|
|
4174
4174
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -4183,10 +4183,10 @@ function eo(e, ...t) {
|
|
|
4183
4183
|
wi(e, s, v, c, E);
|
|
4184
4184
|
if (!pe(h) || !te(v))
|
|
4185
4185
|
return i ? Mn : s;
|
|
4186
|
-
let
|
|
4187
|
-
In(d) || (
|
|
4188
|
-
let A = l.get(
|
|
4189
|
-
return A || (A = new Intl.NumberFormat(v, Pe({}, h, d)), l.set(
|
|
4186
|
+
let O = `${v}__${s}`;
|
|
4187
|
+
In(d) || (O = `${O}__${JSON.stringify(d)}`);
|
|
4188
|
+
let A = l.get(O);
|
|
4189
|
+
return A || (A = new Intl.NumberFormat(v, Pe({}, h, d)), l.set(O, A)), p ? A.formatToParts(u) : A.format(u);
|
|
4190
4190
|
}
|
|
4191
4191
|
const ea = [
|
|
4192
4192
|
"localeMatcher",
|
|
@@ -4239,21 +4239,21 @@ function pu(e, t) {
|
|
|
4239
4239
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
4240
4240
|
}
|
|
4241
4241
|
function fu(e = {}) {
|
|
4242
|
-
const t = e.locale, n = mu(e), i = fe(e.pluralRules) && te(t) &&
|
|
4242
|
+
const t = e.locale, n = mu(e), i = fe(e.pluralRules) && te(t) && Oe(e.pluralRules[t]) ? e.pluralRules[t] : no, a = fe(e.pluralRules) && te(t) && Oe(e.pluralRules[t]) ? no : void 0, o = (v) => v[i(n, v.length, a)], r = e.list || [], l = (v) => r[v], s = e.named || ye();
|
|
4243
4243
|
Ne(e.pluralIndex) && pu(n, s);
|
|
4244
4244
|
const u = (v) => s[v];
|
|
4245
4245
|
function m(v, h) {
|
|
4246
|
-
const E =
|
|
4246
|
+
const E = Oe(e.messages) ? e.messages(v, !!h) : fe(e.messages) ? e.messages[v] : !1;
|
|
4247
4247
|
return E || (e.parent ? e.parent.message(v) : lu);
|
|
4248
4248
|
}
|
|
4249
|
-
const d = (v) => e.modifiers ? e.modifiers[v] : su, c = pe(e.processor) &&
|
|
4249
|
+
const d = (v) => e.modifiers ? e.modifiers[v] : su, c = pe(e.processor) && Oe(e.processor.normalize) ? e.processor.normalize : cu, p = pe(e.processor) && Oe(e.processor.interpolate) ? e.processor.interpolate : du, b = pe(e.processor) && te(e.processor.type) ? e.processor.type : uu, S = {
|
|
4250
4250
|
list: l,
|
|
4251
4251
|
named: u,
|
|
4252
4252
|
plural: o,
|
|
4253
4253
|
linked: (v, ...h) => {
|
|
4254
|
-
const [E,
|
|
4254
|
+
const [E, O] = h;
|
|
4255
4255
|
let A = "text", T = "";
|
|
4256
|
-
h.length === 1 ? fe(E) ? (T = E.modifier || T, A = E.type || A) : te(E) && (T = E || T) : h.length === 2 && (te(E) && (T = E || T), te(
|
|
4256
|
+
h.length === 1 ? fe(E) ? (T = E.modifier || T, A = E.type || A) : te(E) && (T = E || T) : h.length === 2 && (te(E) && (T = E || T), te(O) && (A = O || A));
|
|
4257
4257
|
const w = m(v, !0)(S), U = (
|
|
4258
4258
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
4259
4259
|
A === "vnode" && Te(w) && T ? w[0] : w
|
|
@@ -4268,30 +4268,30 @@ function fu(e = {}) {
|
|
|
4268
4268
|
};
|
|
4269
4269
|
return S;
|
|
4270
4270
|
}
|
|
4271
|
-
const io = () => "", Ye = (e) =>
|
|
4271
|
+
const io = () => "", Ye = (e) => Oe(e);
|
|
4272
4272
|
function oo(e, ...t) {
|
|
4273
|
-
const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: r, messages: l } = e, [s, u] = ii(...t), m =
|
|
4273
|
+
const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: r, messages: l } = e, [s, u] = ii(...t), m = Re(u.missingWarn) ? u.missingWarn : e.missingWarn, d = Re(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, c = Re(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, p = !!u.resolvedMessage, b = te(u.default) || Re(u.default) ? Re(u.default) ? o ? s : () => s : u.default : n ? o ? s : () => s : null, _ = n || b != null && (te(b) || Oe(b)), S = yi(e, u);
|
|
4274
4274
|
c && hu(u);
|
|
4275
4275
|
let [v, h, E] = p ? [
|
|
4276
4276
|
s,
|
|
4277
4277
|
S,
|
|
4278
4278
|
l[S] || ye()
|
|
4279
|
-
] : ta(e, s, S, r, d, m),
|
|
4280
|
-
if (!p && !(te(
|
|
4279
|
+
] : ta(e, s, S, r, d, m), O = v, A = s;
|
|
4280
|
+
if (!p && !(te(O) || Kt(O) || Ye(O)) && _ && (O = b, A = O), !p && (!(te(O) || Kt(O) || Ye(O)) || !te(h)))
|
|
4281
4281
|
return a ? Mn : s;
|
|
4282
4282
|
let T = !1;
|
|
4283
4283
|
const w = () => {
|
|
4284
4284
|
T = !0;
|
|
4285
|
-
}, U = Ye(
|
|
4285
|
+
}, U = Ye(O) ? O : na(e, s, h, O, A, w);
|
|
4286
4286
|
if (T)
|
|
4287
|
-
return
|
|
4287
|
+
return O;
|
|
4288
4288
|
const k = _u(e, h, E, u), I = fu(k), N = gu(e, U, I), M = i ? i(N, s) : N;
|
|
4289
4289
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
4290
4290
|
const P = {
|
|
4291
4291
|
timestamp: Date.now(),
|
|
4292
|
-
key: te(s) ? s : Ye(
|
|
4293
|
-
locale: h || (Ye(
|
|
4294
|
-
format: te(
|
|
4292
|
+
key: te(s) ? s : Ye(O) ? O.key : "",
|
|
4293
|
+
locale: h || (Ye(O) ? O.locale : ""),
|
|
4294
|
+
format: te(O) ? O : Ye(O) ? O.source : "",
|
|
4295
4295
|
message: M
|
|
4296
4296
|
};
|
|
4297
4297
|
P.meta = Pe({}, e.__meta, /* @__PURE__ */ nu() || {}), Ll(P);
|
|
@@ -4386,7 +4386,7 @@ function _u(e, t, n, i) {
|
|
|
4386
4386
|
return e.processor && (c.processor = e.processor), i.list && (c.list = i.list), i.named && (c.named = i.named), Ne(i.plural) && (c.pluralIndex = i.plural), c;
|
|
4387
4387
|
}
|
|
4388
4388
|
hl();
|
|
4389
|
-
var bu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_ed443a72-bd0d-41d7-aa67-4dca18841611", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^2.1.8", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_ed443a72-bd0d-41d7-aa67-4dca18841611", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4.feedmeapi.com", GTM_ID: "GTM-WR8XHXLH", FIREBASE_MESSAGING_SENDER_ID: "128512026847", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "production", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-1.4.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.2.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-zzez732dna-as.a.run.app", SYSTEMD_EXEC_PID: "1773", npm_package_dependencies__feedmepos_ui_library: "1.8.7", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20251215.174.1", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.1-rc.4", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:13418", GITHUB_WORKFLOW: "Publish mf-menu prod", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.11/x64", REMY_URL: "https://remy.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.5/x64", GITHUB_RUN_ID: "20693481254", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "d3813a8fb504049cd33259f2d8faf6b784924947", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "production", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.2.4", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu-prod.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", npm_package_dependencies_axios: "^1.7.2", npm_package_devDependencies__types_pouchdb_core: "^7.0.15", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_c749343d-75e6-48b1-ac74-bfbb7531c500", INVOCATION_ID: "508c902b406e4556b88adc0b33d6bf7e", 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: "121", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-2MP52PC24R", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", npm_package_devDependencies__vitest_ui: "^2.1.8", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000035943", 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.49", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.71-prod", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "false", FIREBASE_PROJECT_ID: "feedme-253402", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_scripts_test_coverage: "vitest --coverage", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "d3813a8fb504049cd33259f2d8faf6b784924947", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_test_ui: "vitest --ui", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_ed443a72-bd0d-41d7-aa67-4dca18841611", 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_ed443a72-bd0d-41d7-aa67-4dca18841611", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", npm_package_dependencies__feedmepos_menu: "1.7.21", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_ed443a72-bd0d-41d7-aa67-4dca18841611", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
4389
|
+
var bu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_4a687591-b403-476e-9198-40aa2c7a27bd", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^2.1.8", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_4a687591-b403-476e-9198-40aa2c7a27bd", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-1.4.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.2.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1758", npm_package_dependencies__feedmepos_ui_library: "1.8.7", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20251215.174.1", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.1-rc.4", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:13185", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.11/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.5/x64", GITHUB_RUN_ID: "20791170573", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "ec5e490f40429c59b54574baace000ae076b0411", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.2.4", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_package_dependencies_axios: "^1.7.2", npm_package_devDependencies__types_pouchdb_core: "^7.0.15", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_08c6131d-4050-47f0-905e-e7aa545e4ffb", INVOCATION_ID: "3daaf64205014b09bfcb1a12abf8b072", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "480", GITHUB_TRIGGERING_ACTOR: "victorchai", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", npm_package_devDependencies__vitest_ui: "^2.1.8", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000037026", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.58", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.72", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_scripts_test_coverage: "vitest --coverage", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "ec5e490f40429c59b54574baace000ae076b0411", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_test_ui: "vitest --ui", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_4a687591-b403-476e-9198-40aa2c7a27bd", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "49786844", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_4a687591-b403-476e-9198-40aa2c7a27bd", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.7.31", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_4a687591-b403-476e-9198-40aa2c7a27bd", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
4390
4390
|
const yu = "10.0.5";
|
|
4391
4391
|
function wu() {
|
|
4392
4392
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Dt().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Dt().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Dt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Dt().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -4471,21 +4471,21 @@ function ku(e, t, n) {
|
|
|
4471
4471
|
}
|
|
4472
4472
|
}
|
|
4473
4473
|
function ao(e) {
|
|
4474
|
-
return
|
|
4474
|
+
return R(ba, null, e, 0);
|
|
4475
4475
|
}
|
|
4476
4476
|
const ro = "__INTLIFY_META__", so = () => [], Su = () => !1;
|
|
4477
4477
|
let lo = 0;
|
|
4478
4478
|
function uo(e) {
|
|
4479
4479
|
return (t, n, i, a) => e(n, i, an() || void 0, a);
|
|
4480
4480
|
}
|
|
4481
|
-
const
|
|
4481
|
+
const Ou = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
4482
4482
|
const e = an();
|
|
4483
4483
|
let t = null;
|
|
4484
4484
|
return e && (t = aa(e)[ro]) ? { [ro]: t } : null;
|
|
4485
4485
|
};
|
|
4486
|
-
function
|
|
4486
|
+
function Ru(e = {}) {
|
|
4487
4487
|
const { __root: t, __injectWithOption: n } = e, i = t === void 0, a = e.flatJson, o = Ui ? oe : va;
|
|
4488
|
-
let r =
|
|
4488
|
+
let r = Re(e.inheritLocale) ? e.inheritLocale : !0;
|
|
4489
4489
|
const l = o(
|
|
4490
4490
|
// prettier-ignore
|
|
4491
4491
|
t && r ? t.locale.value : te(e.locale) ? e.locale : En
|
|
@@ -4493,7 +4493,7 @@ function Ou(e = {}) {
|
|
|
4493
4493
|
// prettier-ignore
|
|
4494
4494
|
t && r ? t.fallbackLocale.value : te(e.fallbackLocale) || Te(e.fallbackLocale) || pe(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
4495
4495
|
), u = o(oa(l.value, e)), m = o(pe(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), d = o(pe(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
4496
|
-
let c = t ? t.missingWarn :
|
|
4496
|
+
let c = t ? t.missingWarn : Re(e.missingWarn) || wn(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : Re(e.fallbackWarn) || wn(e.fallbackWarn) ? e.fallbackWarn : !0, b = t ? t.fallbackRoot : Re(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, S = Oe(e.missing) ? e.missing : null, v = Oe(e.missing) ? uo(e.missing) : null, h = Oe(e.postTranslation) ? e.postTranslation : null, E = t ? t.warnHtmlMessage : Re(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter;
|
|
4497
4497
|
const A = t ? t.modifiers : pe(e.modifiers) ? e.modifiers : {};
|
|
4498
4498
|
let T = e.pluralRules || t && t.pluralRules, w;
|
|
4499
4499
|
w = (() => {
|
|
@@ -4512,7 +4512,7 @@ function Ou(e = {}) {
|
|
|
4512
4512
|
unresolving: !0,
|
|
4513
4513
|
postTranslation: h === null ? void 0 : h,
|
|
4514
4514
|
warnHtmlMessage: E,
|
|
4515
|
-
escapeParameter:
|
|
4515
|
+
escapeParameter: O,
|
|
4516
4516
|
messageResolver: e.messageResolver,
|
|
4517
4517
|
messageCompiler: e.messageCompiler,
|
|
4518
4518
|
__meta: { framework: "vue" }
|
|
@@ -4542,7 +4542,7 @@ function Ou(e = {}) {
|
|
|
4542
4542
|
}
|
|
4543
4543
|
}), M = z(() => u.value), P = /* @__PURE__ */ z(() => m.value), V = /* @__PURE__ */ z(() => d.value);
|
|
4544
4544
|
function D() {
|
|
4545
|
-
return
|
|
4545
|
+
return Oe(h) ? h : null;
|
|
4546
4546
|
}
|
|
4547
4547
|
function C(F) {
|
|
4548
4548
|
h = F, w.postTranslation = F;
|
|
@@ -4587,7 +4587,7 @@ function Ou(e = {}) {
|
|
|
4587
4587
|
return ce((j) => Reflect.apply(eo, null, [j, ...F]), () => ni(...F), "number format", (j) => Reflect.apply(j.n, j, [...F]), () => Yi, (j) => te(j));
|
|
4588
4588
|
}
|
|
4589
4589
|
function ne(F) {
|
|
4590
|
-
return F.map((j) => te(j) || Ne(j) ||
|
|
4590
|
+
return F.map((j) => te(j) || Ne(j) || Re(j) ? ao(String(j)) : j);
|
|
4591
4591
|
}
|
|
4592
4592
|
const ee = {
|
|
4593
4593
|
normalize: ne,
|
|
@@ -4621,7 +4621,7 @@ function Ou(e = {}) {
|
|
|
4621
4621
|
return !1;
|
|
4622
4622
|
const he = te(j) ? j : l.value, ke = ct(he), tt = w.messageResolver(ke, F);
|
|
4623
4623
|
return Kt(tt) || Ye(tt) || te(tt);
|
|
4624
|
-
}, () => [F], "translate exists", (he) => Reflect.apply(he.te, he, [F, j]), Su, (he) =>
|
|
4624
|
+
}, () => [F], "translate exists", (he) => Reflect.apply(he.te, he, [F, j]), Su, (he) => Re(he));
|
|
4625
4625
|
}
|
|
4626
4626
|
function qt(F) {
|
|
4627
4627
|
let j = null;
|
|
@@ -4736,10 +4736,10 @@ function Ou(e = {}) {
|
|
|
4736
4736
|
E = F, w.warnHtmlMessage = F;
|
|
4737
4737
|
},
|
|
4738
4738
|
get escapeParameter() {
|
|
4739
|
-
return
|
|
4739
|
+
return O;
|
|
4740
4740
|
},
|
|
4741
4741
|
set escapeParameter(F) {
|
|
4742
|
-
|
|
4742
|
+
O = F, w.escapeParameter = F;
|
|
4743
4743
|
},
|
|
4744
4744
|
t: we,
|
|
4745
4745
|
getLocaleMessage: ct,
|
|
@@ -4849,7 +4849,7 @@ function Dn(e = {}) {
|
|
|
4849
4849
|
let l = r.__getInstance(t);
|
|
4850
4850
|
if (l == null) {
|
|
4851
4851
|
const s = Pe({}, e);
|
|
4852
|
-
"__i18n" in a && (s.__i18n = a.__i18n), i && (s.__root = i), l =
|
|
4852
|
+
"__i18n" in a && (s.__i18n = a.__i18n), i && (s.__root = i), l = Ru(s), r.__composerExtend && (l[si] = r.__composerExtend(l)), Pu(r, t, l), r.__setInstance(t, l);
|
|
4853
4853
|
}
|
|
4854
4854
|
return l;
|
|
4855
4855
|
}
|
|
@@ -4920,17 +4920,17 @@ const Lu = { class: "flex flex-col gap-4" }, xu = { class: "fm-select__menu__wra
|
|
|
4920
4920
|
},
|
|
4921
4921
|
emits: ["update:modelValue"],
|
|
4922
4922
|
setup(e, { emit: t }) {
|
|
4923
|
-
const n = e, i = t, a = lt(), o = Qe(), r = St(o), l =
|
|
4923
|
+
const n = e, i = t, a = lt(), o = Qe(), r = St(o), l = Ot(r), { t: s } = Dn(), u = oe(null), m = oe([]), d = Ya({
|
|
4924
4924
|
dialog: a,
|
|
4925
4925
|
menuLoader: l,
|
|
4926
4926
|
isLocalOnly: n.isLocalOnly
|
|
4927
4927
|
}), c = (h, E) => {
|
|
4928
|
-
h ? m.value = [...m.value, E] : m.value = m.value.filter((
|
|
4928
|
+
h ? m.value = [...m.value, E] : m.value = m.value.filter((O) => O.value !== E.value), i(
|
|
4929
4929
|
"update:modelValue",
|
|
4930
|
-
m.value.map((
|
|
4930
|
+
m.value.map((O) => O.value)
|
|
4931
4931
|
);
|
|
4932
4932
|
}, p = (h) => {
|
|
4933
|
-
m.value = m.value.filter((E,
|
|
4933
|
+
m.value = m.value.filter((E, O) => O !== h), i(
|
|
4934
4934
|
"update:modelValue",
|
|
4935
4935
|
m.value.map((E) => E.value)
|
|
4936
4936
|
);
|
|
@@ -4948,9 +4948,9 @@ const Lu = { class: "flex flex-col gap-4" }, xu = { class: "fm-select__menu__wra
|
|
|
4948
4948
|
},
|
|
4949
4949
|
{ immediate: !0 }
|
|
4950
4950
|
), (h, E) => {
|
|
4951
|
-
const
|
|
4951
|
+
const O = K("FmIcon"), A = K("FmField"), T = K("FmMenuItem"), w = K("FmMenu"), U = K("FmFormGroup"), k = K("FmChipGroup");
|
|
4952
4952
|
return x(), re("div", Lu, [
|
|
4953
|
-
|
|
4953
|
+
R(U, {
|
|
4954
4954
|
"model-value": h.modelValue,
|
|
4955
4955
|
disabled: h.disabled,
|
|
4956
4956
|
focused: v.value,
|
|
@@ -4959,7 +4959,7 @@ const Lu = { class: "flex flex-col gap-4" }, xu = { class: "fm-select__menu__wra
|
|
|
4959
4959
|
rules: h.rules
|
|
4960
4960
|
}, {
|
|
4961
4961
|
default: W(({ invalid: I }) => [
|
|
4962
|
-
|
|
4962
|
+
R(w, {
|
|
4963
4963
|
disabled: h.disabled,
|
|
4964
4964
|
ref_key: "fmMenuRef",
|
|
4965
4965
|
ref: u,
|
|
@@ -4967,13 +4967,13 @@ const Lu = { class: "flex flex-col gap-4" }, xu = { class: "fm-select__menu__wra
|
|
|
4967
4967
|
onMenuChanged: E[1] || (E[1] = (N) => v.value = N)
|
|
4968
4968
|
}, {
|
|
4969
4969
|
"menu-button": W(() => [
|
|
4970
|
-
|
|
4970
|
+
R(A, {
|
|
4971
4971
|
class: Ke(h.disabled ? "cursor-not-allowed" : "cursor-pointer"),
|
|
4972
4972
|
focused: v.value,
|
|
4973
4973
|
invalid: I
|
|
4974
4974
|
}, {
|
|
4975
4975
|
append: W(() => [
|
|
4976
|
-
O
|
|
4976
|
+
R(O, {
|
|
4977
4977
|
color: h.disabled ? "#C7C7CC" : "black",
|
|
4978
4978
|
name: v.value ? "expand_less" : "expand_more",
|
|
4979
4979
|
size: "md"
|
|
@@ -5004,7 +5004,7 @@ const Lu = { class: "flex flex-col gap-4" }, xu = { class: "fm-select__menu__wra
|
|
|
5004
5004
|
type: "button",
|
|
5005
5005
|
onClick: E[0] || (E[0] = (N) => b())
|
|
5006
5006
|
}, [
|
|
5007
|
-
O
|
|
5007
|
+
R(O, {
|
|
5008
5008
|
color: "primary",
|
|
5009
5009
|
name: "add",
|
|
5010
5010
|
size: "md"
|
|
@@ -5019,7 +5019,7 @@ const Lu = { class: "flex flex-col gap-4" }, xu = { class: "fm-select__menu__wra
|
|
|
5019
5019
|
_: 1
|
|
5020
5020
|
}, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
|
|
5021
5021
|
m.value.length > 0 ? (x(), re("div", Vu, [
|
|
5022
|
-
|
|
5022
|
+
R(k, {
|
|
5023
5023
|
disabled: h.disabled,
|
|
5024
5024
|
items: m.value.map((I) => ({ label: I.label })),
|
|
5025
5025
|
removable: "",
|
|
@@ -5082,12 +5082,12 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5082
5082
|
setup(e, {
|
|
5083
5083
|
emit: t
|
|
5084
5084
|
}) {
|
|
5085
|
-
const n = e, i = Me(), a = rn(), o = lt(), r = Qe(), l = St(r), s =
|
|
5085
|
+
const n = e, i = Me(), a = rn(), o = lt(), r = Qe(), l = St(r), s = Ot(l), u = Xa({
|
|
5086
5086
|
dialog: o,
|
|
5087
5087
|
menuLoader: s
|
|
5088
5088
|
}), {
|
|
5089
5089
|
checkMenuIsLoading: m
|
|
5090
|
-
} =
|
|
5090
|
+
} = Ot(St(Qe())), d = t, c = z(() => i.rules.item), p = z(() => i.categorizedItems), b = z(() => {
|
|
5091
5091
|
const D = p.value.map((C) => ({
|
|
5092
5092
|
label: C.name,
|
|
5093
5093
|
value: C.id
|
|
@@ -5111,10 +5111,10 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5111
5111
|
}
|
|
5112
5112
|
d("update:form", "category", C._id), d("update:form", "additionalCategories", $);
|
|
5113
5113
|
}
|
|
5114
|
-
}),
|
|
5114
|
+
}), O = oe(), A = ({
|
|
5115
5115
|
multiple: D = !0
|
|
5116
|
-
} = {}) => n.isAddon ? null :
|
|
5117
|
-
ref:
|
|
5116
|
+
} = {}) => n.isAddon ? null : R(Ur, {
|
|
5117
|
+
ref: O,
|
|
5118
5118
|
disabled: !c.value.category || n.isAddon || m(),
|
|
5119
5119
|
items: b.value,
|
|
5120
5120
|
modelValue: E.value,
|
|
@@ -5122,18 +5122,18 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5122
5122
|
placeholder: V("menu.product.form.detail.category.placeholder"),
|
|
5123
5123
|
multiple: D
|
|
5124
5124
|
}, {
|
|
5125
|
-
"append-menu": () =>
|
|
5125
|
+
"append-menu": () => R("button", {
|
|
5126
5126
|
class: "flex items-center py-8 px-16 space-x-8",
|
|
5127
5127
|
type: "button",
|
|
5128
5128
|
onClick: () => {
|
|
5129
5129
|
var C;
|
|
5130
|
-
(C =
|
|
5130
|
+
(C = O.value) == null || C.hideMenu(), u.create();
|
|
5131
5131
|
}
|
|
5132
|
-
}, [
|
|
5132
|
+
}, [R(Be.FmIcon, {
|
|
5133
5133
|
color: "primary",
|
|
5134
5134
|
name: "add",
|
|
5135
5135
|
size: "md"
|
|
5136
|
-
}, null),
|
|
5136
|
+
}, null), R("p", {
|
|
5137
5137
|
class: "fm-typo-en-body-lg-600 text-fm-color-primary"
|
|
5138
5138
|
}, [V("menu.product.form.detail.category.add_new")])])
|
|
5139
5139
|
});
|
|
@@ -5195,12 +5195,12 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5195
5195
|
}, {
|
|
5196
5196
|
default: W(() => {
|
|
5197
5197
|
var ie, ee;
|
|
5198
|
-
return [B("div", Gu, [B("div", Bu, [B("div", Wu, [B("div", Hu, [
|
|
5198
|
+
return [B("div", Gu, [B("div", Bu, [B("div", Wu, [B("div", Hu, [R($, {
|
|
5199
5199
|
"model-value": D.form.code,
|
|
5200
5200
|
placeholder: ((ie = D.fallback) == null ? void 0 : ie.code) || y(V)("menu.product.form.detail.fields.code.placeholder"),
|
|
5201
5201
|
label: y(V)("menu.product.form.detail.fields.code.label"),
|
|
5202
5202
|
"onUpdate:modelValue": C[0] || (C[0] = (Q) => d("update:form", "code", y(la)(Q, D.isOverride)))
|
|
5203
|
-
}, null, 8, ["model-value", "placeholder", "label"])]), B("div", ju, [
|
|
5203
|
+
}, null, 8, ["model-value", "placeholder", "label"])]), B("div", ju, [R($, {
|
|
5204
5204
|
id: "product-name",
|
|
5205
5205
|
disabled: !c.value.name,
|
|
5206
5206
|
"helper-text": T.value > 0 ? y(V)("menu.product.form.detail.fields.name.duplicate_warning", {
|
|
@@ -5213,7 +5213,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5213
5213
|
autofocus: "",
|
|
5214
5214
|
label: y(V)("menu.product.form.detail.fields.name.label"),
|
|
5215
5215
|
"onUpdate:modelValue": C[1] || (C[1] = (Q) => d("update:form", "name", Q))
|
|
5216
|
-
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [
|
|
5216
|
+
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [R(le, {
|
|
5217
5217
|
disabled: !c.value.description,
|
|
5218
5218
|
"model-value": D.form.description || void 0,
|
|
5219
5219
|
placeholder: y(V)("menu.product.form.detail.fields.description.placeholder"),
|
|
@@ -5222,15 +5222,15 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5222
5222
|
}, {
|
|
5223
5223
|
label: W(() => [B("p", Yu, [Bn(Ee(y(V)("menu.product.form.detail.fields.description.label")) + " ", 1), B("span", Xu, Ee(y(V)("menu.product.form.detail.fields.description.optional")), 1)])]),
|
|
5224
5224
|
_: 1
|
|
5225
|
-
}, 8, ["disabled", "model-value", "placeholder"]), Xt(
|
|
5225
|
+
}, 8, ["disabled", "model-value", "placeholder"]), Xt(R(Ho, {
|
|
5226
5226
|
class: "absolute top-32 right-4 cursor-pointer",
|
|
5227
5227
|
onClick: I
|
|
5228
|
-
}, null, 512), [[ne, y(yo)("Suggest description")]])])]),
|
|
5228
|
+
}, null, 512), [[ne, y(yo)("Suggest description")]])])]), R(Is, {
|
|
5229
5229
|
disabled: !c.value.thumbnail,
|
|
5230
5230
|
"model-value": D.thumbnail,
|
|
5231
5231
|
"onUpdate:modelValue": C[3] || (C[3] = (Q) => d("update:thumbnail", Q)),
|
|
5232
5232
|
"onReset:modelValue": C[4] || (C[4] = (Q) => d("reset:thumbnail"))
|
|
5233
|
-
}, null, 8, ["disabled", "model-value"])]),
|
|
5233
|
+
}, null, 8, ["disabled", "model-value"])]), R(bt, {
|
|
5234
5234
|
label: y(i).isV4 ? y(V)("menu.product.form.detail.category.label") : y(V)("menu.product.form.detail.category.label_singular")
|
|
5235
5235
|
}, {
|
|
5236
5236
|
default: W(() => [_.value ? (x(), J(H, {
|
|
@@ -5239,25 +5239,25 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5239
5239
|
"model-value": w.value,
|
|
5240
5240
|
"onUpdate:modelValue": C[5] || (C[5] = (Q) => U(Q))
|
|
5241
5241
|
}, {
|
|
5242
|
-
default: W(() => [B("div", qu, [B("div", Ju, [
|
|
5242
|
+
default: W(() => [B("div", qu, [B("div", Ju, [R(ce, {
|
|
5243
5243
|
disabled: S.value || !c.value.category,
|
|
5244
5244
|
value: Mt.PRODUCT,
|
|
5245
5245
|
label: y(V)("menu.product.form.detail.category.options.product.label"),
|
|
5246
5246
|
sublabel: y(V)("menu.product.form.detail.category.options.product.sublabel")
|
|
5247
|
-
}, null, 8, ["disabled", "value", "label", "sublabel"]),
|
|
5247
|
+
}, null, 8, ["disabled", "value", "label", "sublabel"]), R(Fr, null, {
|
|
5248
5248
|
default: W(() => [y(i).isV4 ? (x(), J(A, {
|
|
5249
5249
|
key: 0
|
|
5250
5250
|
})) : se("", !0)]),
|
|
5251
5251
|
_: 1
|
|
5252
|
-
})]), S.value ? (x(), re("div", Zu, [
|
|
5252
|
+
})]), S.value ? (x(), re("div", Zu, [R(we, {
|
|
5253
5253
|
title: y(V)("menu.product.form.detail.category.add_first"),
|
|
5254
5254
|
variant: "info"
|
|
5255
|
-
}, null, 8, ["title"]),
|
|
5255
|
+
}, null, 8, ["title"]), R(G, {
|
|
5256
5256
|
label: y(V)("menu.common.actions.add"),
|
|
5257
5257
|
"prepend-icon": "add",
|
|
5258
5258
|
variant: "secondary",
|
|
5259
5259
|
onClick: y(u).create
|
|
5260
|
-
}, null, 8, ["label", "onClick"])])) : se("", !0),
|
|
5260
|
+
}, null, 8, ["label", "onClick"])])) : se("", !0), R(ce, {
|
|
5261
5261
|
value: Mt.ADD_ON,
|
|
5262
5262
|
label: y(V)("menu.product.form.detail.category.options.addon.label"),
|
|
5263
5263
|
sublabel: y(V)("menu.product.form.detail.category.options.addon.sublabel")
|
|
@@ -5269,7 +5269,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5269
5269
|
rules: [(Q) => !Q && !D.isOverride ? "Category is required" : !0],
|
|
5270
5270
|
"onUpdate:modelValue": C[6] || (C[6] = (Q) => d("update:form", "category", Q))
|
|
5271
5271
|
}, {
|
|
5272
|
-
default: W(() => [
|
|
5272
|
+
default: W(() => [R(A, {
|
|
5273
5273
|
multiple: !1
|
|
5274
5274
|
})]),
|
|
5275
5275
|
_: 1
|
|
@@ -5279,7 +5279,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5279
5279
|
key: 0,
|
|
5280
5280
|
label: y(V)("menu.product.form.detail.path.label")
|
|
5281
5281
|
}, {
|
|
5282
|
-
default: W(() => [B("div", Qu, [
|
|
5282
|
+
default: W(() => [B("div", Qu, [R($u, {
|
|
5283
5283
|
modelValue: P.value,
|
|
5284
5284
|
"onUpdate:modelValue": C[7] || (C[7] = (Q) => P.value = Q),
|
|
5285
5285
|
items: M.value,
|
|
@@ -5288,7 +5288,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5288
5288
|
"is-local-only": !1
|
|
5289
5289
|
}, null, 8, ["modelValue", "items", "placeholder", "disabled"])])]),
|
|
5290
5290
|
_: 1
|
|
5291
|
-
}, 8, ["label"])) : se("", !0),
|
|
5291
|
+
}, 8, ["label"])) : se("", !0), R(hi, {
|
|
5292
5292
|
disabled: !c.value.orderFrom,
|
|
5293
5293
|
"model-value": D.form.orderFrom,
|
|
5294
5294
|
"order-from-none": c.value.orderFromNone,
|
|
@@ -5401,7 +5401,7 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5401
5401
|
const _ = K("fm-text-field"), S = K("fm-card"), v = K("fm-button"), h = K("fm-side-sheet");
|
|
5402
5402
|
return x(), re(Ve, null, [
|
|
5403
5403
|
Ce(p.$slots, "default", { trigger: o }),
|
|
5404
|
-
|
|
5404
|
+
R(h, {
|
|
5405
5405
|
id: "inventory-form",
|
|
5406
5406
|
modelValue: a.value,
|
|
5407
5407
|
"onUpdate:modelValue": b[2] || (b[2] = (E) => a.value = E),
|
|
@@ -5419,13 +5419,13 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5419
5419
|
]),
|
|
5420
5420
|
"side-sheet-footer": W(() => [
|
|
5421
5421
|
B("div", pc, [
|
|
5422
|
-
|
|
5422
|
+
R(v, {
|
|
5423
5423
|
label: y(d)("menu.common.actions.add"),
|
|
5424
5424
|
size: "lg",
|
|
5425
5425
|
type: "submit",
|
|
5426
5426
|
variant: "primary"
|
|
5427
5427
|
}, null, 8, ["label"]),
|
|
5428
|
-
|
|
5428
|
+
R(v, {
|
|
5429
5429
|
label: y(d)("menu.common.actions.cancel"),
|
|
5430
5430
|
size: "lg",
|
|
5431
5431
|
variant: "tertiary",
|
|
@@ -5435,17 +5435,17 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5435
5435
|
]),
|
|
5436
5436
|
default: W(() => [
|
|
5437
5437
|
B("div", mc, [
|
|
5438
|
-
|
|
5438
|
+
R(_, {
|
|
5439
5439
|
"model-value": p.name,
|
|
5440
5440
|
disabled: "",
|
|
5441
5441
|
label: y(d)("menu.inventory.form.product_name")
|
|
5442
5442
|
}, null, 8, ["model-value", "label"]),
|
|
5443
|
-
|
|
5443
|
+
R(S, {
|
|
5444
5444
|
class: "p-16 space-y-24",
|
|
5445
5445
|
variant: "outlined"
|
|
5446
5446
|
}, {
|
|
5447
5447
|
default: W(() => [
|
|
5448
|
-
|
|
5448
|
+
R(y(Ja), {
|
|
5449
5449
|
modelValue: r.value,
|
|
5450
5450
|
"onUpdate:modelValue": b[0] || (b[0] = (E) => r.value = E)
|
|
5451
5451
|
}, null, 8, ["modelValue"])
|
|
@@ -5478,7 +5478,7 @@ function hc() {
|
|
|
5478
5478
|
l = c;
|
|
5479
5479
|
}, m = (c) => {
|
|
5480
5480
|
s = c;
|
|
5481
|
-
}, d =
|
|
5481
|
+
}, d = R(o, {
|
|
5482
5482
|
...i,
|
|
5483
5483
|
// close event from the component
|
|
5484
5484
|
"onUpdate:show": (c) => {
|
|
@@ -5533,7 +5533,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5533
5533
|
cell: (r) => {
|
|
5534
5534
|
var u, m;
|
|
5535
5535
|
const l = (u = n.fallback) == null ? void 0 : u[r.row.original.key], s = l ? Gt(l) : void 0;
|
|
5536
|
-
return
|
|
5536
|
+
return R(Ft, {
|
|
5537
5537
|
required: !1,
|
|
5538
5538
|
nullable: !0,
|
|
5539
5539
|
min: n.allowNegativePrice ? void 0 : 0,
|
|
@@ -5546,7 +5546,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5546
5546
|
}];
|
|
5547
5547
|
return (r, l) => {
|
|
5548
5548
|
const s = K("FmTable");
|
|
5549
|
-
return x(), re("div", null, [
|
|
5549
|
+
return x(), re("div", null, [R(s, {
|
|
5550
5550
|
"column-defs": o,
|
|
5551
5551
|
"row-data": r.priceTiers,
|
|
5552
5552
|
"page-size": r.priceTiers.length,
|
|
@@ -5593,13 +5593,13 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5593
5593
|
]),
|
|
5594
5594
|
"side-sheet-footer": W(() => [
|
|
5595
5595
|
B("div", _c, [
|
|
5596
|
-
|
|
5596
|
+
R(S, {
|
|
5597
5597
|
label: l.value,
|
|
5598
5598
|
size: "lg",
|
|
5599
5599
|
type: "submit",
|
|
5600
5600
|
variant: "primary"
|
|
5601
5601
|
}, null, 8, ["label"]),
|
|
5602
|
-
|
|
5602
|
+
R(S, {
|
|
5603
5603
|
label: y(n)("common.cancel"),
|
|
5604
5604
|
size: "lg",
|
|
5605
5605
|
variant: "tertiary",
|
|
@@ -5609,12 +5609,12 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5609
5609
|
]),
|
|
5610
5610
|
default: W(() => [
|
|
5611
5611
|
B("div", vc, [
|
|
5612
|
-
|
|
5612
|
+
R(bt, {
|
|
5613
5613
|
label: y(n)("menu.price_tier.price_group"),
|
|
5614
5614
|
description: y(n)("menu.price_tier.description")
|
|
5615
5615
|
}, {
|
|
5616
5616
|
append: W(() => [
|
|
5617
|
-
|
|
5617
|
+
R(_, {
|
|
5618
5618
|
class: "min-w-fit",
|
|
5619
5619
|
label: y(n)("menu.price_tier.add_price_group"),
|
|
5620
5620
|
icon: "add",
|
|
@@ -5623,7 +5623,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5623
5623
|
}, null, 8, ["label", "onClick"])
|
|
5624
5624
|
]),
|
|
5625
5625
|
default: W(() => [
|
|
5626
|
-
|
|
5626
|
+
R(ca, {
|
|
5627
5627
|
"price-tiers": y(u).priceTiers.value,
|
|
5628
5628
|
"model-value": m.value,
|
|
5629
5629
|
fallback: p.fallback,
|
|
@@ -5671,7 +5671,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5671
5671
|
placement: "top"
|
|
5672
5672
|
}, {
|
|
5673
5673
|
default: W(() => [
|
|
5674
|
-
|
|
5674
|
+
R(m, {
|
|
5675
5675
|
icon: "price_change",
|
|
5676
5676
|
variant: "tertiary",
|
|
5677
5677
|
"text-color": y(ft).NeutralGray400,
|
|
@@ -5729,7 +5729,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5729
5729
|
}), S = z(() => !0), v = (G) => G ? Gt(G, !1) : "", h = (G) => {
|
|
5730
5730
|
var H;
|
|
5731
5731
|
return G == null ? "" : (H = Ma()[G]) == null ? void 0 : H.label;
|
|
5732
|
-
}, E = z(() => Object.values(b.value)),
|
|
5732
|
+
}, E = z(() => Object.values(b.value)), O = oe({}), {
|
|
5733
5733
|
t: A
|
|
5734
5734
|
} = Se(), T = oe([{
|
|
5735
5735
|
accessorKey: "isDefault",
|
|
@@ -5741,7 +5741,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5741
5741
|
if ((Q = (ee = G.row.original) == null ? void 0 : ee.items) != null && Q.length)
|
|
5742
5742
|
return null;
|
|
5743
5743
|
const H = G.row.depth > 0, Z = G.row.original, ne = !_(Z.combinationKey).isDefault || Z.orderFrom === q.F_ORDER_FROM.enum.NONE, ie = !!G.getValue();
|
|
5744
|
-
return
|
|
5744
|
+
return R(Be.FmCheckbox, {
|
|
5745
5745
|
value: "default",
|
|
5746
5746
|
modelValue: ie,
|
|
5747
5747
|
disabled: ne,
|
|
@@ -5763,12 +5763,12 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5763
5763
|
size: 100,
|
|
5764
5764
|
cell: (G) => {
|
|
5765
5765
|
const H = G.getValue();
|
|
5766
|
-
return
|
|
5766
|
+
return R(Be.FmTooltip, {
|
|
5767
5767
|
class: "flex",
|
|
5768
5768
|
content: H,
|
|
5769
5769
|
zIndex: 110
|
|
5770
5770
|
}, {
|
|
5771
|
-
default: () => [
|
|
5771
|
+
default: () => [R("div", {
|
|
5772
5772
|
class: "break-all max-w-[100px]"
|
|
5773
5773
|
}, [H])]
|
|
5774
5774
|
});
|
|
@@ -5886,9 +5886,9 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5886
5886
|
size: 80,
|
|
5887
5887
|
cell: (G) => {
|
|
5888
5888
|
const H = G.row.original, Z = H.orderFrom === q.F_ORDER_FROM.enum.NONE, ne = G.row.depth > 0;
|
|
5889
|
-
return
|
|
5889
|
+
return R("div", {
|
|
5890
5890
|
class: "flex items-center justify-end"
|
|
5891
|
-
}, [_(null).priceTier &&
|
|
5891
|
+
}, [_(null).priceTier && R(da, {
|
|
5892
5892
|
priceTiers: H.priceTiers,
|
|
5893
5893
|
disabled: Z,
|
|
5894
5894
|
"onUpdate:priceTiers": (ie) => {
|
|
@@ -5906,7 +5906,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5906
5906
|
} else
|
|
5907
5907
|
k(H._id, "priceTiers", ie);
|
|
5908
5908
|
}
|
|
5909
|
-
}, null), _(H.combinationKey).inventory &&
|
|
5909
|
+
}, null), _(H.combinationKey).inventory && R(li, {
|
|
5910
5910
|
title: "Inventory",
|
|
5911
5911
|
initialValue: H.inventoryBindings ?? [],
|
|
5912
5912
|
name: H.name ?? H.fallbackName ?? "",
|
|
@@ -5929,14 +5929,14 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5929
5929
|
}, {
|
|
5930
5930
|
default: ({
|
|
5931
5931
|
trigger: ie
|
|
5932
|
-
}) =>
|
|
5932
|
+
}) => R(K("fm-tooltip"), {
|
|
5933
5933
|
content: "Inventory",
|
|
5934
5934
|
zIndex: 110
|
|
5935
5935
|
}, {
|
|
5936
5936
|
default: () => {
|
|
5937
5937
|
var ee;
|
|
5938
|
-
return [
|
|
5939
|
-
variant:
|
|
5938
|
+
return [R(K("fm-button"), {
|
|
5939
|
+
variant: Rt.Tertiary,
|
|
5940
5940
|
disabled: Z,
|
|
5941
5941
|
prependIcon: "inventory_2",
|
|
5942
5942
|
overwriteIconOutline: (ee = H.inventoryBindings) != null && ee.length ? "filled" : "outline",
|
|
@@ -5945,8 +5945,8 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5945
5945
|
}, null)];
|
|
5946
5946
|
}
|
|
5947
5947
|
})
|
|
5948
|
-
}), _(H.combinationKey).link &&
|
|
5949
|
-
variant:
|
|
5948
|
+
}), _(H.combinationKey).link && R(K("fm-button"), {
|
|
5949
|
+
variant: Rt.Tertiary,
|
|
5950
5950
|
prependIcon: "delete",
|
|
5951
5951
|
textColor: ft.NeutralGray400,
|
|
5952
5952
|
disabled: ne,
|
|
@@ -6076,7 +6076,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6076
6076
|
}, {
|
|
6077
6077
|
"append-title": W(() => [G.config.link() ? (x(), re(Ve, {
|
|
6078
6078
|
key: 0
|
|
6079
|
-
}, [u.value ? (x(), re("div", yc, [
|
|
6079
|
+
}, [u.value ? (x(), re("div", yc, [R(xa, {
|
|
6080
6080
|
"categorized-items": G.categorizedItems,
|
|
6081
6081
|
"initial-value": d.value,
|
|
6082
6082
|
"show-variant": G.config.bindToVariant,
|
|
@@ -6088,7 +6088,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6088
6088
|
}, {
|
|
6089
6089
|
default: W(({
|
|
6090
6090
|
trigger: ie
|
|
6091
|
-
}) => [
|
|
6091
|
+
}) => [R(Z, {
|
|
6092
6092
|
"text-color": y(ft).ColorPrimary,
|
|
6093
6093
|
"border-color": y(ft).ColorPrimary,
|
|
6094
6094
|
variant: "secondary",
|
|
@@ -6097,7 +6097,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6097
6097
|
onClick: ie
|
|
6098
6098
|
}, null, 8, ["text-color", "border-color", "label", "onClick"])]),
|
|
6099
6099
|
_: 1
|
|
6100
|
-
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (x(), re("div", wc, [
|
|
6100
|
+
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (x(), re("div", wc, [R(Z, {
|
|
6101
6101
|
"text-color": y(ft).ColorPrimary,
|
|
6102
6102
|
"border-color": y(ft).ColorPrimary,
|
|
6103
6103
|
variant: "secondary",
|
|
@@ -6105,18 +6105,18 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6105
6105
|
"prepend-icon": "add",
|
|
6106
6106
|
onClick: U
|
|
6107
6107
|
}, null, 8, ["text-color", "border-color", "label"])]))], 64)) : se("", !0)]),
|
|
6108
|
-
default: W(() => [B("div", Ec, [B("div", kc, [
|
|
6108
|
+
default: W(() => [B("div", Ec, [B("div", kc, [R(ne, {
|
|
6109
6109
|
"column-defs": T.value,
|
|
6110
6110
|
"column-visibility": w.value,
|
|
6111
6111
|
draggable: !we.value && _(null).name,
|
|
6112
|
-
"expanded-state": l.value ? {} :
|
|
6112
|
+
"expanded-state": l.value ? {} : O.value,
|
|
6113
6113
|
"get-sub-row": $,
|
|
6114
6114
|
"page-size": 999,
|
|
6115
6115
|
"row-data": E.value,
|
|
6116
6116
|
"search-value": y(c),
|
|
6117
6117
|
"shrink-at": !1,
|
|
6118
6118
|
"hide-footer": "",
|
|
6119
|
-
"onUpdate:expandedState": H[1] || (H[1] = (ie) =>
|
|
6119
|
+
"onUpdate:expandedState": H[1] || (H[1] = (ie) => O.value = ie),
|
|
6120
6120
|
onDndChanged: H[2] || (H[2] = (ie) => le(ie)),
|
|
6121
6121
|
"onUpdate:dragging": H[3] || (H[3] = (ie) => l.value = ie)
|
|
6122
6122
|
}, null, 8, ["column-defs", "column-visibility", "draggable", "expanded-state", "row-data", "search-value"])])])]),
|
|
@@ -6125,7 +6125,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6125
6125
|
};
|
|
6126
6126
|
}
|
|
6127
6127
|
});
|
|
6128
|
-
function
|
|
6128
|
+
function Oc(e) {
|
|
6129
6129
|
const { t } = Se();
|
|
6130
6130
|
function n(r) {
|
|
6131
6131
|
let l = 0;
|
|
@@ -6174,7 +6174,7 @@ function Rc(e) {
|
|
|
6174
6174
|
minMaxValidationRules: o
|
|
6175
6175
|
};
|
|
6176
6176
|
}
|
|
6177
|
-
const
|
|
6177
|
+
const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
6178
6178
|
key: 0,
|
|
6179
6179
|
class: "pt-8 space-y-32"
|
|
6180
6180
|
}, Ac = { class: "flex gap-8 items-center justify-start" }, ma = /* @__PURE__ */ ge({
|
|
@@ -6190,7 +6190,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6190
6190
|
emits: ["update:group", "submit:group", "status:show"],
|
|
6191
6191
|
setup(e, { expose: t, emit: n }) {
|
|
6192
6192
|
let i = e;
|
|
6193
|
-
const a = n, o = Me(), r = rn(), l = lt(), s = Qe(), u =
|
|
6193
|
+
const a = n, o = Me(), r = rn(), l = lt(), s = Qe(), u = Ot(St(s)), { countDefaultItems: m, validateGroupItems: d, minMaxValidationRules: c } = Oc(
|
|
6194
6194
|
() => i.group
|
|
6195
6195
|
), p = oe(!1), b = oe(!1), _ = (C) => {
|
|
6196
6196
|
sn.isBoolean(C) ? b.value = C : b.value = !b.value;
|
|
@@ -6208,12 +6208,12 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6208
6208
|
value: q.F_ADDON_GROUP_TYPE.enum.DYNAMIC
|
|
6209
6209
|
}
|
|
6210
6210
|
]);
|
|
6211
|
-
function
|
|
6211
|
+
function O(C) {
|
|
6212
6212
|
a("update:group", C);
|
|
6213
6213
|
}
|
|
6214
6214
|
function A(C) {
|
|
6215
6215
|
function $() {
|
|
6216
|
-
|
|
6216
|
+
O({
|
|
6217
6217
|
...i.group,
|
|
6218
6218
|
items: {},
|
|
6219
6219
|
type: C
|
|
@@ -6233,7 +6233,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6233
6233
|
}).onPrimary($) : $();
|
|
6234
6234
|
}
|
|
6235
6235
|
function T(C) {
|
|
6236
|
-
return new
|
|
6236
|
+
return new Ro(o, u.updateMenu, l).mapGroups(
|
|
6237
6237
|
[C],
|
|
6238
6238
|
S.value.isOverride
|
|
6239
6239
|
)[0];
|
|
@@ -6247,7 +6247,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6247
6247
|
async function I() {
|
|
6248
6248
|
var C;
|
|
6249
6249
|
if (i.action === "add") {
|
|
6250
|
-
const { group: $, linkItems: le } =
|
|
6250
|
+
const { group: $, linkItems: le } = Oo(i.group), ce = {
|
|
6251
6251
|
module: q.F_MENU_MODULE_V4_KEY.enum.group,
|
|
6252
6252
|
operation: ze.F_OPERATION_TYPE.create,
|
|
6253
6253
|
data: $,
|
|
@@ -6293,7 +6293,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6293
6293
|
typeof we == "string" && we && !((le = C[ce]) != null && le.includes(we)) && (C[ce] = [...C[ce] || [], we]);
|
|
6294
6294
|
}), C;
|
|
6295
6295
|
}), P = (C) => {
|
|
6296
|
-
i.group &&
|
|
6296
|
+
i.group && O({
|
|
6297
6297
|
...i.group,
|
|
6298
6298
|
customAttributes: C
|
|
6299
6299
|
});
|
|
@@ -6312,7 +6312,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6312
6312
|
const le = K("fm-text-field"), ce = K("fm-stepper-field"), we = K("FmFormGroup"), G = K("fm-radio"), H = K("fm-radio-group"), Z = K("fm-switch"), ne = K("fm-button"), ie = K("fm-side-sheet");
|
|
6313
6313
|
return x(), re(Ve, null, [
|
|
6314
6314
|
Ce(C.$slots, "default", { trigger: _ }),
|
|
6315
|
-
|
|
6315
|
+
R(ie, {
|
|
6316
6316
|
id: "group-form",
|
|
6317
6317
|
modelValue: b.value,
|
|
6318
6318
|
"onUpdate:modelValue": $[8] || ($[8] = (ee) => b.value = ee),
|
|
@@ -6325,18 +6325,18 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6325
6325
|
"onOn:clickedAway": y(U)
|
|
6326
6326
|
}, {
|
|
6327
6327
|
"side-sheet-header": W(() => [
|
|
6328
|
-
B("p",
|
|
6328
|
+
B("p", Rc, Ee(C.title), 1)
|
|
6329
6329
|
]),
|
|
6330
6330
|
"side-sheet-footer": W(() => [
|
|
6331
6331
|
B("div", Ac, [
|
|
6332
|
-
|
|
6332
|
+
R(ne, {
|
|
6333
6333
|
label: y(tr)(k.value),
|
|
6334
6334
|
loading: p.value,
|
|
6335
6335
|
size: "lg",
|
|
6336
6336
|
type: "submit",
|
|
6337
6337
|
variant: "primary"
|
|
6338
6338
|
}, null, 8, ["label", "loading"]),
|
|
6339
|
-
|
|
6339
|
+
R(ne, {
|
|
6340
6340
|
label: y(D)("menu.common.actions.cancel"),
|
|
6341
6341
|
size: "lg",
|
|
6342
6342
|
variant: "tertiary",
|
|
@@ -6347,10 +6347,10 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6347
6347
|
default: W(() => [
|
|
6348
6348
|
C.group ? (x(), re("div", Cc, [
|
|
6349
6349
|
Ce(C.$slots, "variant-section"),
|
|
6350
|
-
|
|
6350
|
+
R(Ua, null, {
|
|
6351
6351
|
default: W(() => [
|
|
6352
6352
|
B("div", null, [
|
|
6353
|
-
|
|
6353
|
+
R(le, {
|
|
6354
6354
|
modelValue: C.group.name,
|
|
6355
6355
|
"onUpdate:modelValue": $[0] || ($[0] = (ee) => C.group.name = ee),
|
|
6356
6356
|
disabled: h("name"),
|
|
@@ -6359,14 +6359,14 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6359
6359
|
label: y(D)("menu.common.labels.group_name")
|
|
6360
6360
|
}, null, 8, ["modelValue", "disabled", "rules", "label"])
|
|
6361
6361
|
]),
|
|
6362
|
-
|
|
6362
|
+
R(we, {
|
|
6363
6363
|
"model-value": C.group.min + " " + C.group.max,
|
|
6364
6364
|
rules: y(c)
|
|
6365
6365
|
}, {
|
|
6366
6366
|
default: W(() => [
|
|
6367
|
-
|
|
6367
|
+
R(cc, null, {
|
|
6368
6368
|
default: W(() => [
|
|
6369
|
-
|
|
6369
|
+
R(ce, {
|
|
6370
6370
|
modelValue: C.group.min,
|
|
6371
6371
|
"onUpdate:modelValue": $[1] || ($[1] = (ee) => C.group.min = ee),
|
|
6372
6372
|
disabled: h("min"),
|
|
@@ -6374,7 +6374,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6374
6374
|
class: "flex-1",
|
|
6375
6375
|
label: y(D)("menu.common.labels.min_select")
|
|
6376
6376
|
}, null, 8, ["modelValue", "disabled", "label"]),
|
|
6377
|
-
|
|
6377
|
+
R(ce, {
|
|
6378
6378
|
modelValue: C.group.max,
|
|
6379
6379
|
"onUpdate:modelValue": $[2] || ($[2] = (ee) => C.group.max = ee),
|
|
6380
6380
|
disabled: h("max"),
|
|
@@ -6393,7 +6393,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6393
6393
|
label: y(D)("menu.common.labels.group_type")
|
|
6394
6394
|
}, {
|
|
6395
6395
|
default: W(() => [
|
|
6396
|
-
|
|
6396
|
+
R(H, {
|
|
6397
6397
|
disabled: h("type"),
|
|
6398
6398
|
"model-value": C.group.type,
|
|
6399
6399
|
"onUpdate:modelValue": $[3] || ($[3] = (ee) => A(ee))
|
|
@@ -6410,11 +6410,11 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6410
6410
|
]),
|
|
6411
6411
|
_: 1
|
|
6412
6412
|
}, 8, ["label"])) : se("", !0),
|
|
6413
|
-
|
|
6413
|
+
R(bt, {
|
|
6414
6414
|
label: y(D)("menu.common.labels.configuration")
|
|
6415
6415
|
}, {
|
|
6416
6416
|
default: W(() => [
|
|
6417
|
-
|
|
6417
|
+
R(Z, {
|
|
6418
6418
|
modelValue: C.group.stackable,
|
|
6419
6419
|
"onUpdate:modelValue": $[4] || ($[4] = (ee) => C.group.stackable = ee),
|
|
6420
6420
|
disabled: h("stackable"),
|
|
@@ -6431,7 +6431,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6431
6431
|
"sub-title": y(D)("menu.group.form.tagging.subtitle")
|
|
6432
6432
|
}, {
|
|
6433
6433
|
default: W(() => [
|
|
6434
|
-
|
|
6434
|
+
R(y(vo), {
|
|
6435
6435
|
entity: "group",
|
|
6436
6436
|
"model-value": C.group.customAttributes || {},
|
|
6437
6437
|
"onUpdate:modelValue": P,
|
|
@@ -6443,7 +6443,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6443
6443
|
]),
|
|
6444
6444
|
_: 1
|
|
6445
6445
|
}),
|
|
6446
|
-
|
|
6446
|
+
R(we, {
|
|
6447
6447
|
tag: "div",
|
|
6448
6448
|
modelValue: C.group,
|
|
6449
6449
|
rules: [y(d)],
|
|
@@ -6453,13 +6453,13 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6453
6453
|
})
|
|
6454
6454
|
}, {
|
|
6455
6455
|
default: W(() => [
|
|
6456
|
-
|
|
6456
|
+
R(Sc, {
|
|
6457
6457
|
"allow-refund-inventory": C.allowRefundInventory ?? !1,
|
|
6458
6458
|
"categorized-items": C.categorizedItems,
|
|
6459
6459
|
config: S.value,
|
|
6460
6460
|
group: C.group,
|
|
6461
|
-
"onUpdate:group": $[5] || ($[5] = (ee) =>
|
|
6462
|
-
"onUpdate:unmapGroup": $[6] || ($[6] = (ee) =>
|
|
6461
|
+
"onUpdate:group": $[5] || ($[5] = (ee) => O(ee)),
|
|
6462
|
+
"onUpdate:unmapGroup": $[6] || ($[6] = (ee) => O(T(ee)))
|
|
6463
6463
|
}, null, 8, ["allow-refund-inventory", "categorized-items", "config", "group"])
|
|
6464
6464
|
]),
|
|
6465
6465
|
_: 1
|
|
@@ -6480,8 +6480,8 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6480
6480
|
},
|
|
6481
6481
|
emits: ["update:combinations"],
|
|
6482
6482
|
setup(e, { expose: t, emit: n }) {
|
|
6483
|
-
var
|
|
6484
|
-
const i = e, a = n, o = Me(), r = lt(), l =
|
|
6483
|
+
var O, A;
|
|
6484
|
+
const i = e, a = n, o = Me(), r = lt(), l = Ot(St(Qe())), s = oe([]), u = oe(i.combinations[0].combinationKey || ""), m = z(
|
|
6485
6485
|
() => s.value.findIndex((T) => T.combinationKey == u.value)
|
|
6486
6486
|
), d = z(
|
|
6487
6487
|
() => i.combinations.map((T) => ({
|
|
@@ -6511,7 +6511,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6511
6511
|
};
|
|
6512
6512
|
})
|
|
6513
6513
|
};
|
|
6514
|
-
return new
|
|
6514
|
+
return new Ro(o, l.updateMenu, r).mapGroups([I], !0)[0];
|
|
6515
6515
|
});
|
|
6516
6516
|
function p(T) {
|
|
6517
6517
|
var I, N;
|
|
@@ -6568,7 +6568,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6568
6568
|
);
|
|
6569
6569
|
const h = oe();
|
|
6570
6570
|
t({
|
|
6571
|
-
show: (
|
|
6571
|
+
show: (O = h.value) == null ? void 0 : O.show,
|
|
6572
6572
|
trigger: (A = h.value) == null ? void 0 : A.trigger
|
|
6573
6573
|
});
|
|
6574
6574
|
const { t: E } = Se();
|
|
@@ -6599,21 +6599,21 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6599
6599
|
default: W(() => [
|
|
6600
6600
|
B("p", Ic, Ee(y(E)("menu.group.option.variant")), 1),
|
|
6601
6601
|
B("div", Tc, [
|
|
6602
|
-
|
|
6602
|
+
R(U, {
|
|
6603
6603
|
modelValue: u.value,
|
|
6604
6604
|
"onUpdate:modelValue": w[0] || (w[0] = (N) => u.value = N),
|
|
6605
6605
|
items: d.value,
|
|
6606
6606
|
class: "flex-1"
|
|
6607
6607
|
}, null, 8, ["modelValue", "items"]),
|
|
6608
6608
|
B("div", Mc, [
|
|
6609
|
-
|
|
6610
|
-
variant: y(
|
|
6609
|
+
R(k, {
|
|
6610
|
+
variant: y(Rt).Tertiary,
|
|
6611
6611
|
"prepend-icon": "keyboard_arrow_left",
|
|
6612
6612
|
size: "lg",
|
|
6613
6613
|
onClick: w[1] || (w[1] = (N) => b("left"))
|
|
6614
6614
|
}, null, 8, ["variant"]),
|
|
6615
|
-
|
|
6616
|
-
variant: y(
|
|
6615
|
+
R(k, {
|
|
6616
|
+
variant: y(Rt).Tertiary,
|
|
6617
6617
|
"prepend-icon": "keyboard_arrow_right",
|
|
6618
6618
|
size: "lg",
|
|
6619
6619
|
onClick: w[2] || (w[2] = (N) => b("right"))
|
|
@@ -6646,7 +6646,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6646
6646
|
}
|
|
6647
6647
|
const u = z(() => s(l.value).reduce((S, v) => (S[v._id] = {
|
|
6648
6648
|
name: v.name,
|
|
6649
|
-
type:
|
|
6649
|
+
type: On(o.items, v.items)
|
|
6650
6650
|
}, S), {})), m = z(() => [
|
|
6651
6651
|
...Object.entries(u.value).map(([S, { name: v, type: h }]) => ({
|
|
6652
6652
|
label: `${v} ${r.value.type ? `(${Hn(h)})` : ""}`.trim(),
|
|
@@ -6654,11 +6654,11 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6654
6654
|
}))
|
|
6655
6655
|
]), d = z(() => !!o.state.currentCatalogId || !!o.state.currentSchedulerId);
|
|
6656
6656
|
z(() => {
|
|
6657
|
-
const S = !o.state.currentSchedulerId, v = o.rules.group.type, h = o.version == q.F_MENU_VERSION.enum.v3, E = o.rules.item.orderFromActiveOnly,
|
|
6657
|
+
const S = !o.state.currentSchedulerId, v = o.rules.group.type, h = o.version == q.F_MENU_VERSION.enum.v3, E = o.rules.item.orderFromActiveOnly, O = o.rules.item.bindToVariant;
|
|
6658
6658
|
return function(T) {
|
|
6659
6659
|
return {
|
|
6660
6660
|
isDefault: (w) => !d.value && !w,
|
|
6661
|
-
link: (w) => !d.value && (!w ||
|
|
6661
|
+
link: (w) => !d.value && (!w || O),
|
|
6662
6662
|
name: (w) => !d.value && !w,
|
|
6663
6663
|
type: v && !T._id && !d.value,
|
|
6664
6664
|
price: T.type != q.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
|
|
@@ -6668,7 +6668,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6668
6668
|
orderFrom: (w) => S ? h ? T.type == q.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? d.value : !!d.value == !w : d.value : !1,
|
|
6669
6669
|
orderFromActiveOnly: E,
|
|
6670
6670
|
showOrderFrom: S ? h ? d.value ? !0 : T.type == q.F_ADDON_GROUP_TYPE.enum.PRODUCT : d.value : !1,
|
|
6671
|
-
bindToVariant:
|
|
6671
|
+
bindToVariant: O,
|
|
6672
6672
|
isOverride: d.value,
|
|
6673
6673
|
isItemGroup: !1,
|
|
6674
6674
|
isV4: !h
|
|
@@ -6685,10 +6685,10 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6685
6685
|
i(c.value), a("primary"), n.close();
|
|
6686
6686
|
};
|
|
6687
6687
|
return (S, v) => {
|
|
6688
|
-
const h = K("FmSearch"), E = K("FmCheckbox"),
|
|
6688
|
+
const h = K("FmSearch"), E = K("FmCheckbox"), O = K("FmButton");
|
|
6689
6689
|
return m.value.length > 0 ? (x(), re("div", Pc, [
|
|
6690
6690
|
B("div", null, [
|
|
6691
|
-
|
|
6691
|
+
R(h, {
|
|
6692
6692
|
autofocus: "",
|
|
6693
6693
|
modelValue: p.value,
|
|
6694
6694
|
"onUpdate:modelValue": v[0] || (v[0] = (A) => p.value = A),
|
|
@@ -6700,7 +6700,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6700
6700
|
(x(!0), re(Ve, null, rt(m.value, (A) => (x(), re("div", {
|
|
6701
6701
|
key: A.value
|
|
6702
6702
|
}, [
|
|
6703
|
-
Xt(
|
|
6703
|
+
Xt(R(E, {
|
|
6704
6704
|
modelValue: c.value,
|
|
6705
6705
|
"onUpdate:modelValue": [
|
|
6706
6706
|
v[1] || (v[1] = (T) => c.value = T),
|
|
@@ -6715,9 +6715,9 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6715
6715
|
])
|
|
6716
6716
|
]),
|
|
6717
6717
|
B("div", xc, [
|
|
6718
|
-
|
|
6718
|
+
R(y(co), null, {
|
|
6719
6719
|
default: W(({ trigger: A }) => [
|
|
6720
|
-
O
|
|
6720
|
+
R(O, {
|
|
6721
6721
|
label: y(b)("menu.common.actions.add_group"),
|
|
6722
6722
|
variant: "tertiary",
|
|
6723
6723
|
"text-color": "primary",
|
|
@@ -6727,12 +6727,12 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6727
6727
|
_: 1
|
|
6728
6728
|
}),
|
|
6729
6729
|
B("div", Uc, [
|
|
6730
|
-
O
|
|
6730
|
+
R(O, {
|
|
6731
6731
|
label: y(b)("menu.common.actions.cancel"),
|
|
6732
6732
|
variant: "tertiary",
|
|
6733
6733
|
onClick: v[3] || (v[3] = (A) => y(n).close())
|
|
6734
6734
|
}, null, 8, ["label"]),
|
|
6735
|
-
O
|
|
6735
|
+
R(O, {
|
|
6736
6736
|
label: y(b)("menu.common.actions.confirm"),
|
|
6737
6737
|
onClick: v[4] || (v[4] = (A) => _())
|
|
6738
6738
|
}, null, 8, ["label"])
|
|
@@ -6743,9 +6743,9 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6743
6743
|
B("p", $c, Ee(y(b)("menu.common.empty.no_group.title")), 1),
|
|
6744
6744
|
B("p", Gc, Ee(y(b)("menu.common.empty.no_group.subtitle")), 1)
|
|
6745
6745
|
]),
|
|
6746
|
-
|
|
6746
|
+
R(y(co), null, {
|
|
6747
6747
|
default: W(({ trigger: A }) => [
|
|
6748
|
-
O
|
|
6748
|
+
R(O, {
|
|
6749
6749
|
label: y(b)("menu.common.actions.add_group"),
|
|
6750
6750
|
icon: "add",
|
|
6751
6751
|
onClick: (T) => A()
|
|
@@ -6816,7 +6816,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6816
6816
|
}
|
|
6817
6817
|
const S = z(() => b(d.value).reduce((M, P) => (M[P._id] = {
|
|
6818
6818
|
name: P.name,
|
|
6819
|
-
type:
|
|
6819
|
+
type: On(a.items, P.items)
|
|
6820
6820
|
}, M), {})), v = z(() => [...Object.entries(S.value).map(([M, {
|
|
6821
6821
|
name: P,
|
|
6822
6822
|
type: V
|
|
@@ -6848,20 +6848,20 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6848
6848
|
size: 200,
|
|
6849
6849
|
cell: (M) => {
|
|
6850
6850
|
const P = M.row.original._id, D = _(P).join(", ");
|
|
6851
|
-
return
|
|
6851
|
+
return R(Be.FmTooltip, {
|
|
6852
6852
|
"z-index": 51,
|
|
6853
6853
|
class: "flex",
|
|
6854
6854
|
variant: "rich",
|
|
6855
6855
|
placement: "top"
|
|
6856
6856
|
}, {
|
|
6857
|
-
default: () =>
|
|
6857
|
+
default: () => R("div", {
|
|
6858
6858
|
class: "line-clamp-2 break-all"
|
|
6859
6859
|
}, [D]),
|
|
6860
|
-
content: () =>
|
|
6860
|
+
content: () => R("div", {
|
|
6861
6861
|
class: "py-12 px-16 space-y-12"
|
|
6862
|
-
}, [
|
|
6862
|
+
}, [R("p", {
|
|
6863
6863
|
class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600"
|
|
6864
|
-
}, [l("menu.group.list.columns.products")]),
|
|
6864
|
+
}, [l("menu.group.list.columns.products")]), R("div", {
|
|
6865
6865
|
class: "flex flex-wrap gap-8"
|
|
6866
6866
|
}, [D])])
|
|
6867
6867
|
});
|
|
@@ -6904,7 +6904,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6904
6904
|
}]), E = z(() => ({
|
|
6905
6905
|
type: a.version !== q.F_MENU_VERSION.enum.v4
|
|
6906
6906
|
}));
|
|
6907
|
-
function
|
|
6907
|
+
function O() {
|
|
6908
6908
|
r.open({
|
|
6909
6909
|
title: l("menu.product.form.group.add"),
|
|
6910
6910
|
contentComponent: Bc,
|
|
@@ -6998,14 +6998,14 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6998
6998
|
title: y(l)("menu.product.form.group.title"),
|
|
6999
6999
|
"sub-title": y(l)("menu.product.form.group.subtitle")
|
|
7000
7000
|
}, {
|
|
7001
|
-
"append-title": W(() => [
|
|
7001
|
+
"append-title": W(() => [R(V, {
|
|
7002
7002
|
class: "flex-shrink-0",
|
|
7003
7003
|
label: y(l)("menu.product.form.group.add"),
|
|
7004
7004
|
"prepend-icon": "add",
|
|
7005
7005
|
variant: "secondary",
|
|
7006
|
-
onClick:
|
|
7006
|
+
onClick: O
|
|
7007
7007
|
}, null, 8, ["label"])]),
|
|
7008
|
-
default: W(() => [
|
|
7008
|
+
default: W(() => [R(ua, null, {
|
|
7009
7009
|
default: W(() => {
|
|
7010
7010
|
var C;
|
|
7011
7011
|
return [((C = p.value) == null ? void 0 : C.length) > 0 ? (x(), J(D, {
|
|
@@ -7070,10 +7070,10 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7070
7070
|
return s(i.form.inventoryBindings || [], ((_ = i.form.variant) == null ? void 0 : _.variantCombinations) || [], u.value, o.variants);
|
|
7071
7071
|
});
|
|
7072
7072
|
function d(_, S) {
|
|
7073
|
-
var
|
|
7073
|
+
var O, A;
|
|
7074
7074
|
let v = at.clone(i.form);
|
|
7075
7075
|
const h = v.variant;
|
|
7076
|
-
if ((((
|
|
7076
|
+
if ((((O = h == null ? void 0 : h.variantCombinations) == null ? void 0 : O.length) ?? 0) > 0 && h) {
|
|
7077
7077
|
const T = h.variantCombinations.findIndex((U) => U.combinationKey === _);
|
|
7078
7078
|
if (T < 0) return;
|
|
7079
7079
|
const w = at.clone(h.variantCombinations);
|
|
@@ -7121,9 +7121,9 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7121
7121
|
enableSorting: !1,
|
|
7122
7122
|
cell: (_) => {
|
|
7123
7123
|
const S = _.row.original;
|
|
7124
|
-
return l.value ?
|
|
7124
|
+
return l.value ? R("div", {
|
|
7125
7125
|
class: "flex items-center justify-end"
|
|
7126
|
-
}, [
|
|
7126
|
+
}, [R(li, {
|
|
7127
7127
|
name: S.name,
|
|
7128
7128
|
initialValue: S.bindings ?? [],
|
|
7129
7129
|
title: n("menu.inventory.dialog.title", {
|
|
@@ -7135,8 +7135,8 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7135
7135
|
}, {
|
|
7136
7136
|
default: ({
|
|
7137
7137
|
trigger: v
|
|
7138
|
-
}) =>
|
|
7139
|
-
variant:
|
|
7138
|
+
}) => R(K("fm-button"), {
|
|
7139
|
+
variant: Rt.Tertiary,
|
|
7140
7140
|
prependIcon: "edit",
|
|
7141
7141
|
textColor: ft.NeutralGray400,
|
|
7142
7142
|
onClick: v
|
|
@@ -7172,7 +7172,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7172
7172
|
"onUpdate:inventory": (h) => {
|
|
7173
7173
|
d(v._id, h);
|
|
7174
7174
|
}
|
|
7175
|
-
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)),
|
|
7175
|
+
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), R(y(Za), {
|
|
7176
7176
|
"row-data": m.value,
|
|
7177
7177
|
onRowClick: p
|
|
7178
7178
|
}, null, 8, ["row-data"])])])]),
|
|
@@ -7204,8 +7204,8 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7204
7204
|
emits: ["update:form"],
|
|
7205
7205
|
setup(e, { emit: t }) {
|
|
7206
7206
|
const n = e, i = rn(), a = Me(), o = ko(), { t: r } = Se(), l = t, s = z(() => a.rules.item), u = z(() => {
|
|
7207
|
-
var
|
|
7208
|
-
const h = n.isOverride ? ((
|
|
7207
|
+
var O, A;
|
|
7208
|
+
const h = n.isOverride ? ((O = n.fallback) == null ? void 0 : O.unit) ?? ((A = n.fallback) == null ? void 0 : A.perXUnit) : void 0, E = n.form.unit ?? n.form.perXUnit ?? h;
|
|
7209
7209
|
return E != null;
|
|
7210
7210
|
}), m = (h) => {
|
|
7211
7211
|
l("update:form", "unit", h ? "" : void 0), l("update:form", "perXUnit", h ? 0 : void 0);
|
|
@@ -7227,8 +7227,8 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7227
7227
|
}
|
|
7228
7228
|
function b(h) {
|
|
7229
7229
|
if (!h && n.form.perXUnit) {
|
|
7230
|
-
const [E,
|
|
7231
|
-
if (
|
|
7230
|
+
const [E, O] = n.form.perXUnit.toString().split(".");
|
|
7231
|
+
if (O && O.length > 4) {
|
|
7232
7232
|
const T = (typeof n.form.perXUnit == "string" ? parseFloat(n.form.perXUnit) : n.form.perXUnit).toFixed(4);
|
|
7233
7233
|
l("update:form", "perXUnit", parseFloat(T));
|
|
7234
7234
|
}
|
|
@@ -7236,7 +7236,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7236
7236
|
}
|
|
7237
7237
|
const _ = oe(!1);
|
|
7238
7238
|
async function S() {
|
|
7239
|
-
var E,
|
|
7239
|
+
var E, O, A, T, w, U, k;
|
|
7240
7240
|
if (!(n.form.name || "")) {
|
|
7241
7241
|
const I = document.getElementById("product-name");
|
|
7242
7242
|
if (I) {
|
|
@@ -7259,7 +7259,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7259
7259
|
We,
|
|
7260
7260
|
{
|
|
7261
7261
|
name: n.form.name || "",
|
|
7262
|
-
lat: (A = (
|
|
7262
|
+
lat: (A = (O = (E = i.currentRestaurant) == null ? void 0 : E.value) == null ? void 0 : O.profile.address.coordinates) == null ? void 0 : A[1],
|
|
7263
7263
|
lon: (U = (w = (T = i.currentRestaurant) == null ? void 0 : T.value) == null ? void 0 : w.profile.address.coordinates) == null ? void 0 : U[0]
|
|
7264
7264
|
},
|
|
7265
7265
|
!0
|
|
@@ -7273,7 +7273,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7273
7273
|
return ((h = a.currentCatalog) == null ? void 0 : h.priceTierRules) ?? ((E = a.currentCatalog) == null ? void 0 : E.usePriceTiers) ?? [];
|
|
7274
7274
|
});
|
|
7275
7275
|
return (h, E) => {
|
|
7276
|
-
const
|
|
7276
|
+
const O = K("fm-select"), A = K("FmButton"), T = K("fm-checkbox"), w = K("fm-text-field"), U = fo("tooltip");
|
|
7277
7277
|
return x(), J(ut, {
|
|
7278
7278
|
title: y(r)("menu.product.form.price.title")
|
|
7279
7279
|
}, {
|
|
@@ -7281,7 +7281,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7281
7281
|
var k;
|
|
7282
7282
|
return [
|
|
7283
7283
|
B("div", Yc, [
|
|
7284
|
-
|
|
7284
|
+
R(Ft, {
|
|
7285
7285
|
disable: v.value.length > 0 && y(a).currentCatalog && !y(a).currentScheduler,
|
|
7286
7286
|
min: 0,
|
|
7287
7287
|
"model-value": h.form.price || null,
|
|
@@ -7295,7 +7295,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7295
7295
|
"onUpdate:modelValue": E[0] || (E[0] = (I) => I && l("update:form", "price", I))
|
|
7296
7296
|
}, {
|
|
7297
7297
|
append: W(() => [
|
|
7298
|
-
Xt(
|
|
7298
|
+
Xt(R(Ho, {
|
|
7299
7299
|
"pure-styling": "",
|
|
7300
7300
|
onClick: S
|
|
7301
7301
|
}, null, 512), [
|
|
@@ -7304,7 +7304,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7304
7304
|
]),
|
|
7305
7305
|
_: 1
|
|
7306
7306
|
}, 8, ["disable", "model-value", "placeholder", "rules", "label"]),
|
|
7307
|
-
O
|
|
7307
|
+
R(O, {
|
|
7308
7308
|
disabled: !s.value.tax || !d.value.systemCode,
|
|
7309
7309
|
items: d.value.countryTaxOptions,
|
|
7310
7310
|
label: d.value.systemCode ? y(r)("menu.product.form.price.fields.tax.label_with_code", {
|
|
@@ -7323,7 +7323,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7323
7323
|
description: y(r)("menu.price_tier.description")
|
|
7324
7324
|
}, {
|
|
7325
7325
|
append: W(() => [
|
|
7326
|
-
|
|
7326
|
+
R(A, {
|
|
7327
7327
|
label: y(r)("menu.price_tier.add_price_group"),
|
|
7328
7328
|
icon: "add",
|
|
7329
7329
|
variant: "secondary",
|
|
@@ -7344,14 +7344,14 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7344
7344
|
}),
|
|
7345
7345
|
_: 1
|
|
7346
7346
|
}, 8, ["label", "description"])) : se("", !0),
|
|
7347
|
-
|
|
7347
|
+
R(bt, {
|
|
7348
7348
|
label: y(r)("menu.product.form.price.settings.title")
|
|
7349
7349
|
}, {
|
|
7350
7350
|
default: W(() => {
|
|
7351
7351
|
var I, N, M;
|
|
7352
7352
|
return [
|
|
7353
7353
|
B("div", Xc, [
|
|
7354
|
-
|
|
7354
|
+
R(T, {
|
|
7355
7355
|
disabled: !s.value.openPrice || h.isAddon,
|
|
7356
7356
|
"model-value": h.form.openPrice ?? ((I = h.fallback) == null ? void 0 : I.openPrice) ?? !1,
|
|
7357
7357
|
value: h.form.openPrice,
|
|
@@ -7360,7 +7360,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7360
7360
|
"onUpdate:modelValue": E[3] || (E[3] = (P) => l("update:form", "openPrice", P))
|
|
7361
7361
|
}, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
|
|
7362
7362
|
B("div", qc, [
|
|
7363
|
-
|
|
7363
|
+
R(T, {
|
|
7364
7364
|
disabled: !s.value.unit || h.isAddon,
|
|
7365
7365
|
"model-value": u.value,
|
|
7366
7366
|
value: u.value,
|
|
@@ -7371,7 +7371,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7371
7371
|
u.value ? (x(), re("div", Jc, [
|
|
7372
7372
|
B("p", Zc, Ee(y(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
|
|
7373
7373
|
B("div", Qc, [
|
|
7374
|
-
|
|
7374
|
+
R(w, {
|
|
7375
7375
|
disabled: !s.value.unit,
|
|
7376
7376
|
"model-value": h.form.perXUnit || ((N = h.fallback) == null ? void 0 : N.perXUnit) || null,
|
|
7377
7377
|
rules: [
|
|
@@ -7386,7 +7386,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7386
7386
|
}, null, 8, ["disabled", "model-value", "rules", "placeholder"])
|
|
7387
7387
|
]),
|
|
7388
7388
|
B("div", ed, [
|
|
7389
|
-
|
|
7389
|
+
R(w, {
|
|
7390
7390
|
disabled: !s.value.unit,
|
|
7391
7391
|
"model-value": h.form.unit || ((M = h.fallback) == null ? void 0 : M.unit) || null,
|
|
7392
7392
|
rules: [
|
|
@@ -7399,7 +7399,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7399
7399
|
])) : se("", !0)
|
|
7400
7400
|
]),
|
|
7401
7401
|
s.value.costing ? (x(), re("div", td, [
|
|
7402
|
-
|
|
7402
|
+
R(T, {
|
|
7403
7403
|
"model-value": !!h.form.costing,
|
|
7404
7404
|
value: !!h.form.costing,
|
|
7405
7405
|
label: y(r)("menu.product.form.price.settings.track_costing.label"),
|
|
@@ -7407,7 +7407,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7407
7407
|
}, null, 8, ["model-value", "value", "label"]),
|
|
7408
7408
|
h.form.costing ? (x(), re("div", nd, [
|
|
7409
7409
|
B("div", id, [
|
|
7410
|
-
|
|
7410
|
+
R(Ft, {
|
|
7411
7411
|
class: "w-full",
|
|
7412
7412
|
min: 0,
|
|
7413
7413
|
"model-value": h.form.costing || null,
|
|
@@ -7419,7 +7419,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7419
7419
|
])) : se("", !0)
|
|
7420
7420
|
])) : se("", !0),
|
|
7421
7421
|
s.value.minPrice ? (x(), re("div", od, [
|
|
7422
|
-
|
|
7422
|
+
R(T, {
|
|
7423
7423
|
disabled: !s.value.minPrice || h.isAddon,
|
|
7424
7424
|
"model-value": !!h.form.minPrice,
|
|
7425
7425
|
value: !!h.form.minPrice,
|
|
@@ -7458,7 +7458,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7458
7458
|
applyProduct: { type: Boolean }
|
|
7459
7459
|
},
|
|
7460
7460
|
setup(e) {
|
|
7461
|
-
const { t } = Se(), n = e, i =
|
|
7461
|
+
const { t } = Se(), n = e, i = Ot(St(Qe())), a = z(
|
|
7462
7462
|
() => n.initialValue ? t("menu.print_dept.update") : t("menu.print_dept.add")
|
|
7463
7463
|
), o = z(
|
|
7464
7464
|
() => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
|
|
@@ -7502,7 +7502,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7502
7502
|
const p = K("fm-text-field"), b = K("fm-button"), _ = K("fm-side-sheet");
|
|
7503
7503
|
return x(), re(Ve, null, [
|
|
7504
7504
|
Ce(d.$slots, "default", { trigger: u }),
|
|
7505
|
-
|
|
7505
|
+
R(_, {
|
|
7506
7506
|
id: "variant-form",
|
|
7507
7507
|
modelValue: s.value,
|
|
7508
7508
|
"onUpdate:modelValue": c[3] || (c[3] = (S) => s.value = S),
|
|
@@ -7519,14 +7519,14 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7519
7519
|
]),
|
|
7520
7520
|
"side-sheet-footer": W(() => [
|
|
7521
7521
|
B("div", cd, [
|
|
7522
|
-
|
|
7522
|
+
R(b, {
|
|
7523
7523
|
label: o.value,
|
|
7524
7524
|
loading: l.value,
|
|
7525
7525
|
size: "lg",
|
|
7526
7526
|
type: "submit",
|
|
7527
7527
|
variant: "primary"
|
|
7528
7528
|
}, null, 8, ["label", "loading"]),
|
|
7529
|
-
|
|
7529
|
+
R(b, {
|
|
7530
7530
|
label: y(t)("menu.common.actions.cancel"),
|
|
7531
7531
|
size: "lg",
|
|
7532
7532
|
variant: "tertiary",
|
|
@@ -7536,7 +7536,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7536
7536
|
]),
|
|
7537
7537
|
default: W(() => [
|
|
7538
7538
|
B("div", ud, [
|
|
7539
|
-
|
|
7539
|
+
R(p, {
|
|
7540
7540
|
modelValue: r.value.name,
|
|
7541
7541
|
"onUpdate:modelValue": c[0] || (c[0] = (S) => r.value.name = S),
|
|
7542
7542
|
rules: [
|
|
@@ -7616,8 +7616,8 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7616
7616
|
});
|
|
7617
7617
|
}
|
|
7618
7618
|
function _(v, h) {
|
|
7619
|
-
var
|
|
7620
|
-
let E = [...((A = (
|
|
7619
|
+
var O, A;
|
|
7620
|
+
let E = [...((A = (O = n.form) == null ? void 0 : O.print) == null ? void 0 : A.department) ?? []];
|
|
7621
7621
|
h && !E.includes(v) ? E = [...E, v] : h || (E = E.filter((T) => T !== v)), o("update:form", "print", {
|
|
7622
7622
|
...r(),
|
|
7623
7623
|
...n.form.print,
|
|
@@ -7640,7 +7640,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7640
7640
|
() => s.value.length,
|
|
7641
7641
|
() => _(s.value[s.value.length - 1]._id, !0)
|
|
7642
7642
|
), (v, h) => {
|
|
7643
|
-
const E = K("fm-switch"),
|
|
7643
|
+
const E = K("fm-switch"), O = K("fm-radio"), A = K("fm-radio-group"), T = K("fm-button"), w = K("fm-checkbox");
|
|
7644
7644
|
return x(), J(ut, {
|
|
7645
7645
|
title: y(a)("menu.product.form.print.title")
|
|
7646
7646
|
}, {
|
|
@@ -7654,7 +7654,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7654
7654
|
default: W(() => {
|
|
7655
7655
|
var k;
|
|
7656
7656
|
return [
|
|
7657
|
-
|
|
7657
|
+
R(E, {
|
|
7658
7658
|
"model-value": !((k = v.form.print) != null && k.toRoot),
|
|
7659
7659
|
label: y(a)("menu.product.form.print.config.group_parent.label"),
|
|
7660
7660
|
"label-placement": "right",
|
|
@@ -7665,14 +7665,14 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7665
7665
|
}),
|
|
7666
7666
|
_: 1
|
|
7667
7667
|
}, 8, ["label"])) : se("", !0),
|
|
7668
|
-
|
|
7668
|
+
R(A, {
|
|
7669
7669
|
label: y(a)("menu.product.form.print.kds.label"),
|
|
7670
7670
|
"model-value": ((U = v.form.print) == null ? void 0 : U.sequential) ?? !1,
|
|
7671
7671
|
"onUpdate:modelValue": h[1] || (h[1] = (k) => p(k))
|
|
7672
7672
|
}, {
|
|
7673
7673
|
default: W(() => [
|
|
7674
7674
|
B("div", pd, [
|
|
7675
|
-
(x(!0), re(Ve, null, rt(S.value, (k, I) => (x(), J(
|
|
7675
|
+
(x(!0), re(Ve, null, rt(S.value, (k, I) => (x(), J(O, {
|
|
7676
7676
|
key: I,
|
|
7677
7677
|
label: k.label,
|
|
7678
7678
|
sublabel: k.description,
|
|
@@ -7682,7 +7682,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7682
7682
|
]),
|
|
7683
7683
|
_: 1
|
|
7684
7684
|
}, 8, ["label", "model-value"]),
|
|
7685
|
-
|
|
7685
|
+
R(bt, {
|
|
7686
7686
|
label: y(a)("menu.product.form.print.routes.label")
|
|
7687
7687
|
}, {
|
|
7688
7688
|
default: W(() => [
|
|
@@ -7709,7 +7709,7 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7709
7709
|
}, ["stop"]))
|
|
7710
7710
|
}, null, 8, ["disabled"])) : se("", !0)
|
|
7711
7711
|
]),
|
|
7712
|
-
|
|
7712
|
+
R(w, {
|
|
7713
7713
|
id: k,
|
|
7714
7714
|
"data-checked": (P = (M = n.form.print) == null ? void 0 : M.department) == null ? void 0 : P.includes(k),
|
|
7715
7715
|
label: d.value[k],
|
|
@@ -7723,11 +7723,11 @@ const Oc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7723
7723
|
}),
|
|
7724
7724
|
_: 1
|
|
7725
7725
|
}, 8, ["item-key", "model-value"])) : se("", !0),
|
|
7726
|
-
|
|
7726
|
+
R(y(md), { "apply-product": !1 }, {
|
|
7727
7727
|
default: W(({ trigger: k }) => [
|
|
7728
7728
|
B("div", gd, [
|
|
7729
|
-
|
|
7730
|
-
variant: y(
|
|
7729
|
+
R(T, {
|
|
7730
|
+
variant: y(Rt).Secondary,
|
|
7731
7731
|
label: y(a)("menu.product.form.print.routes.add"),
|
|
7732
7732
|
"prepend-icon": "add",
|
|
7733
7733
|
onClick: k
|
|
@@ -7812,7 +7812,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7812
7812
|
setup(e, {
|
|
7813
7813
|
emit: t
|
|
7814
7814
|
}) {
|
|
7815
|
-
const n = e, i = Me(), a = z(() => i.rules.item), o =
|
|
7815
|
+
const n = e, i = Me(), a = z(() => i.rules.item), o = Ot(St(Qe())), {
|
|
7816
7816
|
t: r
|
|
7817
7817
|
} = Se(), l = t, {
|
|
7818
7818
|
hasVariant: s,
|
|
@@ -7881,7 +7881,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7881
7881
|
title: y(r)("menu.product.form.takeaway.title"),
|
|
7882
7882
|
"sub-title": y(r)("menu.product.form.takeaway.subtitle")
|
|
7883
7883
|
}, {
|
|
7884
|
-
default: W(() => [
|
|
7884
|
+
default: W(() => [R(b, {
|
|
7885
7885
|
columnDefs: d.value,
|
|
7886
7886
|
"page-size": y(u).length,
|
|
7887
7887
|
"row-data": y(u),
|
|
@@ -7897,7 +7897,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7897
7897
|
}, wd = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Ed = { class: "flex justify-between pb-16" }, kd = { class: "flex gap-8" }, Sd = {
|
|
7898
7898
|
key: 1,
|
|
7899
7899
|
class: "flex flex-col items-center space-y-16"
|
|
7900
|
-
},
|
|
7900
|
+
}, Od = { class: "flex flex-col items-center space-y-4 w-full" }, Rd = { class: "fm-typo-en-title-sm-600" }, Cd = { class: "text-fm-color-typo-secondary" }, Ad = /* @__PURE__ */ ge({
|
|
7901
7901
|
__name: "SelectVariantDialog",
|
|
7902
7902
|
props: {
|
|
7903
7903
|
selectedVariants: {}
|
|
@@ -7914,7 +7914,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7914
7914
|
const p = K("FmSearch"), b = K("FmCheckbox"), _ = K("FmButton");
|
|
7915
7915
|
return l.value.length > 0 ? (x(), re("div", yd, [
|
|
7916
7916
|
B("div", null, [
|
|
7917
|
-
|
|
7917
|
+
R(p, {
|
|
7918
7918
|
autofocus: "",
|
|
7919
7919
|
modelValue: u.value,
|
|
7920
7920
|
"onUpdate:modelValue": c[0] || (c[0] = (S) => u.value = S),
|
|
@@ -7926,7 +7926,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7926
7926
|
(x(!0), re(Ve, null, rt(l.value, (S) => (x(), re("div", {
|
|
7927
7927
|
key: S.value
|
|
7928
7928
|
}, [
|
|
7929
|
-
Xt(
|
|
7929
|
+
Xt(R(b, {
|
|
7930
7930
|
modelValue: s.value,
|
|
7931
7931
|
"onUpdate:modelValue": [
|
|
7932
7932
|
c[1] || (c[1] = (v) => s.value = v),
|
|
@@ -7941,7 +7941,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7941
7941
|
])
|
|
7942
7942
|
]),
|
|
7943
7943
|
B("div", Ed, [
|
|
7944
|
-
|
|
7944
|
+
R(y(Ri), null, {
|
|
7945
7945
|
default: W(({ trigger: S }) => [
|
|
7946
7946
|
y(a).rules.item.variant ? (x(), J(_, {
|
|
7947
7947
|
key: 0,
|
|
@@ -7954,25 +7954,25 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7954
7954
|
_: 1
|
|
7955
7955
|
}),
|
|
7956
7956
|
B("div", kd, [
|
|
7957
|
-
|
|
7957
|
+
R(_, {
|
|
7958
7958
|
label: y(o)("menu.common.actions.cancel"),
|
|
7959
7959
|
variant: "tertiary",
|
|
7960
7960
|
onClick: c[3] || (c[3] = (S) => y(t).close())
|
|
7961
7961
|
}, null, 8, ["label"]),
|
|
7962
|
-
|
|
7962
|
+
R(_, {
|
|
7963
7963
|
label: y(o)("menu.common.actions.confirm"),
|
|
7964
7964
|
onClick: c[4] || (c[4] = (S) => m())
|
|
7965
7965
|
}, null, 8, ["label"])
|
|
7966
7966
|
])
|
|
7967
7967
|
])
|
|
7968
7968
|
])) : (x(), re("div", Sd, [
|
|
7969
|
-
B("div",
|
|
7970
|
-
B("p",
|
|
7969
|
+
B("div", Od, [
|
|
7970
|
+
B("p", Rd, Ee(y(o)("menu.common.empty.no_variant.title")), 1),
|
|
7971
7971
|
B("p", Cd, Ee(y(o)("menu.common.empty.no_variant.subtitle")), 1)
|
|
7972
7972
|
]),
|
|
7973
|
-
|
|
7973
|
+
R(y(Ri), null, {
|
|
7974
7974
|
default: W(({ trigger: S }) => [
|
|
7975
|
-
|
|
7975
|
+
R(_, {
|
|
7976
7976
|
label: y(o)("menu.variant.add"),
|
|
7977
7977
|
icon: "add",
|
|
7978
7978
|
onClick: (v) => S()
|
|
@@ -8127,7 +8127,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8127
8127
|
}
|
|
8128
8128
|
c("replace:form", a.initDynamicGroupItem(M));
|
|
8129
8129
|
}
|
|
8130
|
-
async function
|
|
8130
|
+
async function O(k, I, N) {
|
|
8131
8131
|
const M = at.clone(n.form);
|
|
8132
8132
|
M.variant.variantCombinations[k][I] = N, p([{
|
|
8133
8133
|
key: "variant",
|
|
@@ -8149,11 +8149,11 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8149
8149
|
cell: (k) => {
|
|
8150
8150
|
var V, D;
|
|
8151
8151
|
const I = k.getValue(), P = ((V = k.row.original.fallback) == null ? void 0 : V.code) ?? n.form.code ?? ((D = n.fallback) == null ? void 0 : D.code);
|
|
8152
|
-
return
|
|
8152
|
+
return R(Be.FmTextField, {
|
|
8153
8153
|
modelValue: I,
|
|
8154
8154
|
placeholder: P || l("menu.product.form.variant.placeholders.no_code"),
|
|
8155
8155
|
"onUpdate:model-value": (C) => {
|
|
8156
|
-
|
|
8156
|
+
O(k.row.index, "code", la(C, !0));
|
|
8157
8157
|
}
|
|
8158
8158
|
}, null);
|
|
8159
8159
|
}
|
|
@@ -8164,14 +8164,14 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8164
8164
|
cell: (k) => {
|
|
8165
8165
|
var P, V;
|
|
8166
8166
|
const I = k.getValue(), M = (P = k.row.original.fallback) == null ? void 0 : P.orderFrom;
|
|
8167
|
-
return
|
|
8167
|
+
return R(hi, {
|
|
8168
8168
|
modelValue: I,
|
|
8169
8169
|
fallback: n.form.orderFrom ?? M ?? ((V = n.fallback) == null ? void 0 : V.orderFrom),
|
|
8170
8170
|
disable: !s.value.orderFrom,
|
|
8171
8171
|
required: s.value.orderFrom && s.value.orderFromActiveOnly,
|
|
8172
8172
|
editActiveOnly: s.value.orderFromActiveOnly || !1,
|
|
8173
8173
|
"onUpdate:model-value": (D) => {
|
|
8174
|
-
|
|
8174
|
+
O(k.row.index, "orderFrom", D);
|
|
8175
8175
|
},
|
|
8176
8176
|
label: "",
|
|
8177
8177
|
defaultLabel: "Follow general"
|
|
@@ -8185,22 +8185,22 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8185
8185
|
cell: (k) => {
|
|
8186
8186
|
var V, D, C;
|
|
8187
8187
|
const I = k.getValue(), N = k.row.original, P = ((V = N.fallback) == null ? void 0 : V.price) ?? n.form.price ?? ((D = n.fallback) == null ? void 0 : D.price);
|
|
8188
|
-
return
|
|
8188
|
+
return R("div", {
|
|
8189
8189
|
class: "flex items-center gap-8"
|
|
8190
|
-
}, [
|
|
8190
|
+
}, [R(Ft, {
|
|
8191
8191
|
disable: A.value.length > 0 && i.currentCatalog && !i.currentScheduler,
|
|
8192
8192
|
placeholder: P ? Gt(P) : void 0,
|
|
8193
8193
|
modelValue: I,
|
|
8194
8194
|
min: 0,
|
|
8195
8195
|
"onUpdate:model-value": ($) => {
|
|
8196
|
-
|
|
8196
|
+
O(k.row.index, "price", $);
|
|
8197
8197
|
},
|
|
8198
8198
|
nullable: !0,
|
|
8199
8199
|
showCurrency: !1
|
|
8200
|
-
}, null), i.isV4 && !n.isOverride &&
|
|
8200
|
+
}, null), i.isV4 && !n.isOverride && R(da, {
|
|
8201
8201
|
"price-tiers": N.priceTiers,
|
|
8202
8202
|
fallback: (C = N.fallback) == null ? void 0 : C.priceTiers,
|
|
8203
|
-
"onUpdate:price-tiers": ($) =>
|
|
8203
|
+
"onUpdate:price-tiers": ($) => O(k.row.index, "priceTiers", $)
|
|
8204
8204
|
}, null)]);
|
|
8205
8205
|
}
|
|
8206
8206
|
}, {
|
|
@@ -8210,12 +8210,12 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8210
8210
|
cell: (k) => {
|
|
8211
8211
|
var V, D, C;
|
|
8212
8212
|
const I = k.getValue(), N = k.row.original, P = ((V = N.fallback) == null ? void 0 : V.minPrice) ?? n.form.minPrice ?? ((D = n.fallback) == null ? void 0 : D.minPrice);
|
|
8213
|
-
return
|
|
8213
|
+
return R(Ft, {
|
|
8214
8214
|
placeholder: P ? Gt(P) : void 0,
|
|
8215
8215
|
modelValue: I,
|
|
8216
8216
|
max: Ge.Dinero.fromFdoDinero(N.price ?? ((C = N.fallback) == null ? void 0 : C.price) ?? Ge.Dinero.zero().toObject()).toUnit(),
|
|
8217
8217
|
"onUpdate:model-value": ($) => {
|
|
8218
|
-
|
|
8218
|
+
O(k.row.index, "minPrice", $);
|
|
8219
8219
|
},
|
|
8220
8220
|
nullable: !0,
|
|
8221
8221
|
showCurrency: !1
|
|
@@ -8244,13 +8244,13 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8244
8244
|
}, null, 8, ["label"])) : se("", !0)]),
|
|
8245
8245
|
default: W(() => {
|
|
8246
8246
|
var D;
|
|
8247
|
-
return [B("div", Id, [
|
|
8247
|
+
return [B("div", Id, [R(P, {
|
|
8248
8248
|
"model-value": (D = k.form.variant) == null ? void 0 : D.variantGroupIds,
|
|
8249
8249
|
rules: [U]
|
|
8250
8250
|
}, {
|
|
8251
8251
|
default: W(() => {
|
|
8252
8252
|
var C;
|
|
8253
|
-
return [
|
|
8253
|
+
return [R(y(So), {
|
|
8254
8254
|
"model-value": ((C = k.form.variant) == null ? void 0 : C.variantGroupIds) ?? [],
|
|
8255
8255
|
class: "space-y-16",
|
|
8256
8256
|
group: "variants",
|
|
@@ -8262,11 +8262,11 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8262
8262
|
element: $
|
|
8263
8263
|
}) => {
|
|
8264
8264
|
var le;
|
|
8265
|
-
return [B("div", Td, [
|
|
8266
|
-
variant: y(
|
|
8265
|
+
return [B("div", Td, [R(N, {
|
|
8266
|
+
variant: y(Rt).Tertiary,
|
|
8267
8267
|
class: "handle",
|
|
8268
8268
|
"prepend-icon": "drag_handle"
|
|
8269
|
-
}, null, 8, ["variant"]), B("div", Md, [B("p", Dd, Ee((le = d.value[$]) == null ? void 0 : le.name), 1),
|
|
8269
|
+
}, null, 8, ["variant"]), B("div", Md, [B("p", Dd, Ee((le = d.value[$]) == null ? void 0 : le.name), 1), R(M, {
|
|
8270
8270
|
class: "cursor-pointer",
|
|
8271
8271
|
name: "close",
|
|
8272
8272
|
onClick: Sn((ce) => {
|
|
@@ -8279,7 +8279,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8279
8279
|
}, 8, ["model-value"])];
|
|
8280
8280
|
}),
|
|
8281
8281
|
_: 1
|
|
8282
|
-
}, 8, ["model-value", "rules"]),
|
|
8282
|
+
}, 8, ["model-value", "rules"]), R(ua, null, {
|
|
8283
8283
|
default: W(() => [h.value.length ? (x(), J(V, {
|
|
8284
8284
|
key: 0,
|
|
8285
8285
|
class: "w-full",
|
|
@@ -8388,7 +8388,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8388
8388
|
[f]: g
|
|
8389
8389
|
};
|
|
8390
8390
|
};
|
|
8391
|
-
async function
|
|
8391
|
+
async function O() {
|
|
8392
8392
|
var f, g;
|
|
8393
8393
|
c.value = p.value._id && A.value ? (await Ka(
|
|
8394
8394
|
a.mergedMenu,
|
|
@@ -8569,7 +8569,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8569
8569
|
Le(() => {
|
|
8570
8570
|
var f;
|
|
8571
8571
|
return (f = p.value.price) == null ? void 0 : f.amount;
|
|
8572
|
-
},
|
|
8572
|
+
}, O, { deep: !0 }), Le(
|
|
8573
8573
|
() => m.value,
|
|
8574
8574
|
(f) => {
|
|
8575
8575
|
f && (p.value = n.initialForm ? be(n.initialForm) : {
|
|
@@ -8579,7 +8579,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8579
8579
|
}
|
|
8580
8580
|
), $t(() => {
|
|
8581
8581
|
var f, g;
|
|
8582
|
-
|
|
8582
|
+
O();
|
|
8583
8583
|
try {
|
|
8584
8584
|
We.startSession({
|
|
8585
8585
|
userId: ((f = o.sessionUser.value) == null ? void 0 : f.id) || "",
|
|
@@ -8622,10 +8622,10 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8622
8622
|
}
|
|
8623
8623
|
const { isAtMost: je } = _o(), Lt = oe(null), qt = Ga(Lt);
|
|
8624
8624
|
return (f, g) => (x(), re(Ve, null, [
|
|
8625
|
-
Ce(f.$slots, "trigger", Sa(
|
|
8625
|
+
Ce(f.$slots, "trigger", Sa(Oa({
|
|
8626
8626
|
trigger: d
|
|
8627
8627
|
}))),
|
|
8628
|
-
|
|
8628
|
+
R(Va, {
|
|
8629
8629
|
title: l.value,
|
|
8630
8630
|
show: m.value,
|
|
8631
8631
|
"primary-action": {
|
|
@@ -8654,7 +8654,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8654
8654
|
y(je)("sm") ? se("", !0) : (x(), J(Ci, {
|
|
8655
8655
|
key: 0,
|
|
8656
8656
|
class: "fixed",
|
|
8657
|
-
style:
|
|
8657
|
+
style: Ra({
|
|
8658
8658
|
top: "85px",
|
|
8659
8659
|
left: y(qt).right + "px"
|
|
8660
8660
|
}),
|
|
@@ -8673,8 +8673,8 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8673
8673
|
"linked-status": b.value,
|
|
8674
8674
|
"onUpdate:catalogAndScheduler": S
|
|
8675
8675
|
}, null, 8, ["linked-status"])) : se("", !0),
|
|
8676
|
-
|
|
8677
|
-
|
|
8676
|
+
R(za, { "menu-store": y(a) }, null, 8, ["menu-store"]),
|
|
8677
|
+
R(Tt, {
|
|
8678
8678
|
toggle: N.value,
|
|
8679
8679
|
"onUpdate:toggle": [
|
|
8680
8680
|
g[1] || (g[1] = (X) => N.value = X),
|
|
@@ -8685,7 +8685,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8685
8685
|
title: y(r)("menu.product.form.sections.general.title")
|
|
8686
8686
|
}, {
|
|
8687
8687
|
default: W(() => [
|
|
8688
|
-
|
|
8688
|
+
R(tc, {
|
|
8689
8689
|
fallback: c.value,
|
|
8690
8690
|
form: p.value,
|
|
8691
8691
|
"is-addon": T.value,
|
|
@@ -8706,7 +8706,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8706
8706
|
"sub-title": y(r)("menu.product.form.sections.tagging.subtitle")
|
|
8707
8707
|
}, {
|
|
8708
8708
|
default: W(() => [
|
|
8709
|
-
|
|
8709
|
+
R(y(vo), {
|
|
8710
8710
|
entity: "item",
|
|
8711
8711
|
"model-value": p.value.customAttributes || {},
|
|
8712
8712
|
"onUpdate:modelValue": g[3] || (g[3] = (X) => E("customAttributes", X)),
|
|
@@ -8716,7 +8716,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8716
8716
|
_: 1
|
|
8717
8717
|
}, 8, ["title", "sub-title"])) : se("", !0),
|
|
8718
8718
|
w.value ? (x(), re("div", Ld)) : se("", !0),
|
|
8719
|
-
|
|
8719
|
+
R(Tt, {
|
|
8720
8720
|
toggle: V.value,
|
|
8721
8721
|
"onUpdate:toggle": [
|
|
8722
8722
|
g[4] || (g[4] = (X) => V.value = X),
|
|
@@ -8727,7 +8727,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8727
8727
|
title: y(r)("menu.product.form.sections.price.title")
|
|
8728
8728
|
}, {
|
|
8729
8729
|
default: W(() => [
|
|
8730
|
-
|
|
8730
|
+
R(sd, {
|
|
8731
8731
|
fallback: c.value,
|
|
8732
8732
|
form: p.value,
|
|
8733
8733
|
"is-addon": T.value,
|
|
@@ -8750,7 +8750,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8750
8750
|
title: "Update print"
|
|
8751
8751
|
}, {
|
|
8752
8752
|
default: W(() => [
|
|
8753
|
-
|
|
8753
|
+
R(vd, {
|
|
8754
8754
|
fallback: c.value,
|
|
8755
8755
|
form: p.value,
|
|
8756
8756
|
"full-combinations": v.value,
|
|
@@ -8763,7 +8763,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8763
8763
|
_: 1
|
|
8764
8764
|
}, 8, ["toggle"])) : se("", !0),
|
|
8765
8765
|
A.value ? se("", !0) : (x(), re("div", Ud)),
|
|
8766
|
-
|
|
8766
|
+
R(Tt, {
|
|
8767
8767
|
toggle: C.value,
|
|
8768
8768
|
"onUpdate:toggle": [
|
|
8769
8769
|
g[10] || (g[10] = (X) => C.value = X),
|
|
@@ -8774,7 +8774,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8774
8774
|
title: y(r)("menu.product.form.sections.variant.title")
|
|
8775
8775
|
}, {
|
|
8776
8776
|
default: W(() => [
|
|
8777
|
-
|
|
8777
|
+
R(Fd, {
|
|
8778
8778
|
fallback: c.value,
|
|
8779
8779
|
form: p.value,
|
|
8780
8780
|
"full-combinations": v.value,
|
|
@@ -8799,7 +8799,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8799
8799
|
title: "Update group"
|
|
8800
8800
|
}, {
|
|
8801
8801
|
default: W(() => [
|
|
8802
|
-
|
|
8802
|
+
R(Wc, {
|
|
8803
8803
|
fallback: c.value,
|
|
8804
8804
|
form: p.value,
|
|
8805
8805
|
"full-combinations": v.value,
|
|
@@ -8824,7 +8824,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8824
8824
|
title: y(r)("menu.product.form.sections.inventory.title")
|
|
8825
8825
|
}, {
|
|
8826
8826
|
default: W(() => [
|
|
8827
|
-
|
|
8827
|
+
R(Kc, {
|
|
8828
8828
|
fallback: c.value,
|
|
8829
8829
|
form: p.value,
|
|
8830
8830
|
"full-combinations": v.value,
|
|
@@ -8849,7 +8849,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8849
8849
|
title: y(r)("menu.product.form.sections.takeaway.title")
|
|
8850
8850
|
}, {
|
|
8851
8851
|
default: W(() => [
|
|
8852
|
-
|
|
8852
|
+
R(bd, {
|
|
8853
8853
|
fallback: c.value,
|
|
8854
8854
|
form: p.value,
|
|
8855
8855
|
"full-combinations": v.value,
|
|
@@ -8875,7 +8875,7 @@ function pa(e, t) {
|
|
|
8875
8875
|
var o, r, l, s;
|
|
8876
8876
|
const n = (o = t.groups) == null ? void 0 : o.reduce((u, m) => {
|
|
8877
8877
|
const d = e.groups.find((p) => p._id === m._id);
|
|
8878
|
-
return
|
|
8878
|
+
return On(e.items, d.items) === q.F_ADDON_GROUP_TYPE.enum.DYNAMIC && u.push(d), u;
|
|
8879
8879
|
}, []);
|
|
8880
8880
|
if (!(n != null && n.length)) return t;
|
|
8881
8881
|
const i = n.map((u) => u._id);
|
|
@@ -8969,7 +8969,7 @@ function jd(e, t) {
|
|
|
8969
8969
|
};
|
|
8970
8970
|
}
|
|
8971
8971
|
const ki = mo("item-manager", () => {
|
|
8972
|
-
const e = Me(), t = Qe(), n = lt(), i = St(t), a =
|
|
8972
|
+
const e = Me(), t = Qe(), n = lt(), i = St(t), a = Ot(i), o = an(), { t: r } = Se(), l = (w) => {
|
|
8973
8973
|
if (!o) throw new Error("No current instance found");
|
|
8974
8974
|
const { container: U } = Pa(Bd, o, {
|
|
8975
8975
|
...w,
|
|
@@ -9148,7 +9148,7 @@ const ki = mo("item-manager", () => {
|
|
|
9148
9148
|
e.currentScheduler ? await _(w) : await S(w)
|
|
9149
9149
|
);
|
|
9150
9150
|
}
|
|
9151
|
-
function
|
|
9151
|
+
function O(w) {
|
|
9152
9152
|
const { updateMenu: U } = a, k = w.length > 1 ? `${w.length} products` : w[0].name;
|
|
9153
9153
|
n.open({
|
|
9154
9154
|
title: r("menu.common.dialog.remove.product.title"),
|
|
@@ -9156,7 +9156,7 @@ const ki = mo("item-manager", () => {
|
|
|
9156
9156
|
primaryActions: {
|
|
9157
9157
|
text: r("menu.common.actions.remove"),
|
|
9158
9158
|
close: !0,
|
|
9159
|
-
variant:
|
|
9159
|
+
variant: Rt.Destructive
|
|
9160
9160
|
},
|
|
9161
9161
|
secondaryActions: {
|
|
9162
9162
|
text: r("menu.common.actions.cancel"),
|
|
@@ -9191,7 +9191,7 @@ const ki = mo("item-manager", () => {
|
|
|
9191
9191
|
e,
|
|
9192
9192
|
a.updateMenu,
|
|
9193
9193
|
n
|
|
9194
|
-
).unlinkProduct(w.map((U) => U._id)) :
|
|
9194
|
+
).unlinkProduct(w.map((U) => U._id)) : O(w);
|
|
9195
9195
|
}
|
|
9196
9196
|
async function T(w) {
|
|
9197
9197
|
const { updateMenu: U } = a;
|
|
@@ -9218,7 +9218,7 @@ export {
|
|
|
9218
9218
|
Ur as C,
|
|
9219
9219
|
cc as F,
|
|
9220
9220
|
Fr as I,
|
|
9221
|
-
|
|
9221
|
+
Ro as M,
|
|
9222
9222
|
md as P,
|
|
9223
9223
|
We as R,
|
|
9224
9224
|
$u as S,
|
|
@@ -9231,10 +9231,10 @@ export {
|
|
|
9231
9231
|
ci as e,
|
|
9232
9232
|
Wo as f,
|
|
9233
9233
|
Wd as g,
|
|
9234
|
-
|
|
9234
|
+
Oc as h,
|
|
9235
9235
|
km as i,
|
|
9236
|
-
|
|
9237
|
-
|
|
9236
|
+
Oo as j,
|
|
9237
|
+
On as k,
|
|
9238
9238
|
pa as l,
|
|
9239
9239
|
Co as m,
|
|
9240
9240
|
la as n,
|