@feedmepos/mf-menu 0.31.1 → 0.31.3
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-DwnuSB_K.js → App-DEtLv77t.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-SnnMP9af.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CLdzAPFw.js} +2 -2
- package/dist/{Catalog-BCC1fHsR.js → Catalog-DQd_53jm.js} +5 -5
- package/dist/{Category-SbAKJCcC.js → Category-GnHGz6vU.js} +5 -5
- package/dist/{CookingGuide-R8YZTG7U.js → CookingGuide-B1qrjYEM.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BQjmbaYU.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CQZRtZ9m.js} +1 -1
- package/dist/{Group-Dpulnp4G.js → Group-Bp0Bz82V.js} +3 -3
- package/dist/{Group-BfPYqEKe.js → Group-Dlm3QCDH.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DO7pYTqD.js → Group.vue_vue_type_script_setup_true_lang-DRX0z8HA.js} +30 -21
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-C6kvir14.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D4SwsCnk.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dq_FQClG.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-H43LPcLH.js} +1459 -1459
- package/dist/{Ingredient-DyVBg2OH.js → Ingredient-B9jNFufj.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CMn_OBtt.js → InventoryBinding.vue_vue_type_script_setup_true_lang-juskHdZV.js} +1052 -1052
- package/dist/{LinkProductSideSheet-O1S1WQrf.js → LinkProductSideSheet-BBQXucIi.js} +2 -2
- package/dist/{MenuSetting-Bd7M9CZd.js → MenuSetting-BhgzzYd7.js} +4 -4
- package/dist/{PrintRoute-CJgh1UQS.js → PrintRoute-m1UT4GCU.js} +4 -4
- package/dist/{Product-C-HBK83E.js → Product-Crvvmvzc.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-6WBb0jig.js → Product.vue_vue_type_script_setup_true_lang-DYPuj8x7.js} +12 -12
- package/dist/{Products-C-l0f6Xx.js → Products-MIWkrTBO.js} +683 -683
- package/dist/{Publish-CEGsOIz4.js → Publish-DVLy5QVv.js} +4 -4
- package/dist/{Recipe-DKcBkq3P.js → Recipe-DL7QeByP.js} +5 -5
- package/dist/{Scheduler-CilYmlpA.js → Scheduler-eCRbMD3X.js} +3 -3
- package/dist/{ServingSequence-Dh3xZ4-y.js → ServingSequence-uUgvVSwD.js} +3 -3
- package/dist/{Setting-VAVGQ9ef.js → Setting-Dixt6Q05.js} +4 -4
- package/dist/{Subcategory-DIuYpxUb.js → Subcategory-5rIawEAV.js} +5 -5
- package/dist/{Takeaway-BceUdDxJ.js → Takeaway-CN7Pq4uh.js} +1 -1
- package/dist/{Takeaway-CqI0yaY4.js → Takeaway-CSDtSM2J.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-T89RHk_U.js → Takeaway.vue_vue_type_script_setup_true_lang-mkkSuPOc.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D6A3zbo8.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-mQFPlOAK.js} +13 -13
- package/dist/{Unit-Dk01i08e.js → Unit-C_4_pM1N.js} +2 -2
- package/dist/{Variant-DmJrq2PR.js → Variant-BKXt8cqU.js} +3 -3
- package/dist/{_id_-BwxqdG6o.js → _id_-DpxalU5t.js} +9 -9
- package/dist/{app-BlIOILFy.js → app-B_mKaOSC.js} +22 -22
- package/dist/{app-a9LAWXty.js → app-BnCf5y7j.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +36 -6
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +36 -6
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +36 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +36 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +18 -3
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +18 -3
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +54 -9
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +18 -3
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +291 -264
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +291 -264
- package/dist/apps/mf-menu/src/helper/menu.d.ts +309 -267
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +291 -264
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +54 -9
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +18 -3
- package/dist/apps/mf-menu/src/stores/menu.d.ts +291 -264
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +36 -6
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/index.d.ts +90 -15
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-D7y8kfPP.js +24 -0
- package/dist/assets/{override-menu-BubUiLib.js → override-menu-CfNbmBqj.js} +5 -5
- package/dist/assets/{validate-menu-DN9Ey6OQ.js → validate-menu--Fb2HTF9.js} +9 -9
- package/dist/{catalog-K4kAIsu7.js → catalog-CVqSLZH-.js} +1 -1
- package/dist/{catalogSetting-DDKgp65J.js → catalogSetting-BCbSVqYf.js} +1 -1
- package/dist/{currency-COpU9Mja.js → currency-rD-pSMdo.js} +1 -1
- package/dist/{dayjs.min-2jRm92uU.js → dayjs.min-BJK73AAj.js} +1 -1
- package/dist/{discardConfirm-DsdKGlvZ.js → discardConfirm-BVEi30ai.js} +1 -1
- package/dist/{index-BwbmJvNX.js → index-B7hzbpy5.js} +4 -4
- package/dist/{index-CGkAqunh.js → index-COIRrFqc.js} +3 -3
- package/dist/{index-DbQfFN--.js → index-CrjBBFyR.js} +1 -1
- package/dist/{item-DpYa7eg3.js → item-CicrpOGz.js} +575 -572
- package/dist/{menu-BPmnKKbJ.js → menu-9WeEUMFB.js} +1 -1
- package/dist/{menu-CvTofl1n.js → menu-B7qykxcB.js} +6505 -6450
- package/dist/{priceTier-B8RMnKFM.js → priceTier-DTJmPHsL.js} +1 -1
- package/dist/{scheduler-L5jlbRBz.js → scheduler-CbjAGyjm.js} +4 -4
- package/dist/{subcategory-B5eia0LL.js → subcategory-CXtaSWNi.js} +69 -69
- package/dist/{toExcel--y9nBfGO.js → toExcel-DSmn9_xz.js} +2 -2
- package/dist/{unit-EnjuHwBI.js → unit-C0rHx8Bw.js} +2 -2
- package/package.json +2 -2
- package/dist/assets/linked-status-DM7ouyu_.js +0 -24
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { defineStore as ho } from "pinia";
|
|
2
|
-
import { createElementBlock as re, openBlock as F, createElementVNode as $, defineComponent as fe, resolveComponent as j, createBlock as
|
|
3
|
-
import { K as Oe, I as
|
|
2
|
+
import { createElementBlock as re, openBlock as F, createElementVNode as $, defineComponent as fe, resolveComponent as j, createBlock as Z, createVNode as R, toDisplayString as we, Fragment as ze, renderList as _t, h as De, ref as ie, computed as U, watch as Ne, unref as b, renderSlot as Re, withCtx as W, createCommentVNode as ae, Transition as hr, resolveDynamicComponent as yn, withDirectives as Nt, vShow as kn, mergeProps as go, withModifiers as An, createTextVNode as wn, normalizeClass as Je, getCurrentInstance as rn, inject as gr, shallowRef as vr, onMounted as Bt, onUnmounted as _r, Text as br, resolveDirective as Wn, markRaw as yr, render as Hn, mergeModels as wr, useModel as Er, nextTick as vo, onBeforeUnmount as Sr, normalizeProps as kr, guardReactiveProps as Ar, normalizeStyle as Or } from "vue";
|
|
3
|
+
import { K as Oe, I as J, V as Cr, a8 as Rr, W as Tr, J as ge, A as He, T as _o, u as Ce, z as Be, G as bt, P as yt, Q as Ir, R as Mr, U as Pn, a3 as Dr, N as Nr, M as Oi } from "./menu-B7qykxcB.js";
|
|
4
4
|
import { useI18n as Ee, useCoreStore as an, CustomAttributesForm as bo } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as at, useDialogChild as ci, useSnackbar as qe, components as Ve, FmButtonColorThemeVariant as pt, FmButtonVariant as Ot, useBreakpoints as yo } from "@feedmepos/ui-library";
|
|
6
|
-
import { C as ft } from "./catalog-
|
|
6
|
+
import { C as ft } from "./catalog-CVqSLZH-.js";
|
|
7
7
|
import { c as Pr } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
8
|
-
import { a as
|
|
9
|
-
import { _ as Lt, L as Lr } from "./LinkProductSideSheet-
|
|
8
|
+
import { a as Ci, _ as wo } from "./tooltip-B5BiPMx9.js";
|
|
9
|
+
import { _ as Lt, L as Lr } from "./LinkProductSideSheet-BBQXucIi.js";
|
|
10
10
|
import { _ as st, a as Fr } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
11
|
-
import { s as jn, F as xr, _ as Ur } from "./index-
|
|
12
|
-
import { I as Vr, u as zr } from "./app-
|
|
13
|
-
import { l as ot, u as di } from "./discardConfirm-
|
|
14
|
-
import { u as $r } from "./app-
|
|
15
|
-
import { a as Br, g as Eo, d as Gr, c as Wr, b as Hr, m as jr } from "./subcategory-
|
|
11
|
+
import { s as jn, F as xr, _ as Ur } from "./index-CrjBBFyR.js";
|
|
12
|
+
import { I as Vr, u as zr } from "./app-B_mKaOSC.js";
|
|
13
|
+
import { l as ot, u as di } from "./discardConfirm-BVEi30ai.js";
|
|
14
|
+
import { u as $r } from "./app-BnCf5y7j.js";
|
|
15
|
+
import { a as Br, g as Eo, d as Gr, c as Wr, b as Hr, m as jr } from "./subcategory-CXtaSWNi.js";
|
|
16
16
|
import { _ as wt } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
17
17
|
import "@vue/devtools-api";
|
|
18
|
-
import { _ as Dt, l as Kn, T as Kr } from "./index-
|
|
18
|
+
import { _ as Dt, l as Kn, T as Kr } from "./index-B7hzbpy5.js";
|
|
19
19
|
import { useInventoryStore as So, InventoryBindingForm as Yr, InventoryBindingSummary as Xr } from "@feedmepos/mf-inventory-portal";
|
|
20
20
|
import { c as sn } from "./check-C9mY6LiX.js";
|
|
21
21
|
import { c as qr } from "./object-DVUNCr7w.js";
|
|
22
|
-
import { f as Gt } from "./currency-
|
|
23
|
-
import { u as ko } from "./priceTier-
|
|
24
|
-
import { u as
|
|
25
|
-
import { c as
|
|
22
|
+
import { f as Gt } from "./currency-rD-pSMdo.js";
|
|
23
|
+
import { u as ko } from "./priceTier-DTJmPHsL.js";
|
|
24
|
+
import { u as Zr } from "./search-BAPEUu1R.js";
|
|
25
|
+
import { c as Jr } from "./string-DpfFixWH.js";
|
|
26
26
|
import { d as Ao } from "./vuedraggable-CK8z7qA8.js";
|
|
27
|
-
import { _ as Qr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
28
|
-
import { V as
|
|
27
|
+
import { _ as Qr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CLdzAPFw.js";
|
|
28
|
+
import { V as Ri } from "./index-COIRrFqc.js";
|
|
29
29
|
class vn {
|
|
30
30
|
constructor(t, n, i, r) {
|
|
31
31
|
this.scheduler = t, this.menuStore = n, this.updateMenu = i, this.dialog = r;
|
|
@@ -34,7 +34,7 @@ class vn {
|
|
|
34
34
|
this.promptDialog().onPrimary(async (t) => {
|
|
35
35
|
await this.updateMenu(
|
|
36
36
|
{
|
|
37
|
-
module:
|
|
37
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.scheduler,
|
|
38
38
|
operation: Oe.F_OPERATION_TYPE.create,
|
|
39
39
|
data: t
|
|
40
40
|
},
|
|
@@ -48,7 +48,7 @@ class vn {
|
|
|
48
48
|
async update() {
|
|
49
49
|
this.scheduler && await this.updateMenu(
|
|
50
50
|
{
|
|
51
|
-
module:
|
|
51
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.scheduler,
|
|
52
52
|
operation: Oe.F_OPERATION_TYPE.update,
|
|
53
53
|
data: this.scheduler
|
|
54
54
|
},
|
|
@@ -71,7 +71,7 @@ class vn {
|
|
|
71
71
|
}).onPrimary(async () => {
|
|
72
72
|
await this.updateMenu(
|
|
73
73
|
{
|
|
74
|
-
module:
|
|
74
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.scheduler,
|
|
75
75
|
operation: Oe.F_OPERATION_TYPE.delete,
|
|
76
76
|
data: t._id
|
|
77
77
|
},
|
|
@@ -191,7 +191,7 @@ class vn {
|
|
|
191
191
|
if (!this.scheduler) return null;
|
|
192
192
|
const t = this.menuStore.currentCatalog, n = t ? ((i = t.override.scheduler[this.scheduler._id]) == null ? void 0 : i.items) ?? [] : this.scheduler.items;
|
|
193
193
|
return [
|
|
194
|
-
...new Set(n.filter((r) => r.orderFrom !=
|
|
194
|
+
...new Set(n.filter((r) => r.orderFrom != J.F_ORDER_FROM.enum.NONE).map((r) => r._id))
|
|
195
195
|
];
|
|
196
196
|
}
|
|
197
197
|
async updateItemAvailable(t) {
|
|
@@ -210,7 +210,7 @@ class vn {
|
|
|
210
210
|
const r = t.reduce((a, l) => {
|
|
211
211
|
const s = n.items.filter((u) => u._id == l) ?? [];
|
|
212
212
|
return a = a.concat(
|
|
213
|
-
|
|
213
|
+
Cr(l, s, (u) => ({
|
|
214
214
|
...u,
|
|
215
215
|
orderFrom: null
|
|
216
216
|
}))
|
|
@@ -223,7 +223,7 @@ class vn {
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
getAvailableItemForLink() {
|
|
226
|
-
const t =
|
|
226
|
+
const t = Rr(
|
|
227
227
|
this.menuStore.variants,
|
|
228
228
|
this.menuStore.categories,
|
|
229
229
|
Tr(this.menuStore.state.menu.modules.item, (r) => r.code || r.name)
|
|
@@ -239,10 +239,10 @@ class vn {
|
|
|
239
239
|
function On(e, t) {
|
|
240
240
|
for (const n of t) {
|
|
241
241
|
const i = e.find((r) => r._id === n._id);
|
|
242
|
-
if (i != null && i.isDynamicAddon || n.isDynamicAddon) return
|
|
243
|
-
if (i != null && i.category) return
|
|
242
|
+
if (i != null && i.isDynamicAddon || n.isDynamicAddon) return J.F_ADDON_GROUP_TYPE.enum.DYNAMIC;
|
|
243
|
+
if (i != null && i.category) return J.F_ADDON_GROUP_TYPE.enum.PRODUCT;
|
|
244
244
|
}
|
|
245
|
-
return
|
|
245
|
+
return J.F_ADDON_GROUP_TYPE.enum.NORMAL;
|
|
246
246
|
}
|
|
247
247
|
function ea(e) {
|
|
248
248
|
return [...new Set(e.map((n) => n._id))].reduce((n, i) => {
|
|
@@ -303,9 +303,9 @@ function Oo(e) {
|
|
|
303
303
|
code: o.code ?? "",
|
|
304
304
|
name: o.name ?? "",
|
|
305
305
|
price: o.price ?? Be.Dinero.zero().toObject(),
|
|
306
|
-
orderFrom:
|
|
306
|
+
orderFrom: J.F_ORDER_FROM.enum.ALL,
|
|
307
307
|
groups: [],
|
|
308
|
-
isDynamicAddon: e.type ===
|
|
308
|
+
isDynamicAddon: e.type === J.F_ADDON_GROUP_TYPE.enum.DYNAMIC
|
|
309
309
|
}));
|
|
310
310
|
return {
|
|
311
311
|
group: {
|
|
@@ -315,7 +315,7 @@ function Oo(e) {
|
|
|
315
315
|
linkItems: r
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
class
|
|
318
|
+
class Co {
|
|
319
319
|
constructor(t, n, i) {
|
|
320
320
|
this.menuStore = t, this.updateMenu = n, this.dialog = i;
|
|
321
321
|
}
|
|
@@ -387,10 +387,10 @@ class Ro {
|
|
|
387
387
|
...(D = w == null ? void 0 : w.variant) == null ? void 0 : D.variantCombinations.find(
|
|
388
388
|
(O) => O.combinationKey === p.combinationKey
|
|
389
389
|
),
|
|
390
|
-
name: _o(
|
|
390
|
+
name: _o(Ce().variants, ((I = w == null ? void 0 : w.variant) == null ? void 0 : I.variantGroupIds) || [])[p.combinationKey]
|
|
391
391
|
} : w, k = (E = o.find((O) => O._id === s._id)) == null ? void 0 : E.items.find((O) => O._id === p._id && O.combinationKey === p.combinationKey), f = !n && !p.combinationKey, v = (L = u.find(
|
|
392
392
|
(O) => O._id == p._id && O.combinationKey == p.combinationKey
|
|
393
|
-
)) == null ? void 0 : L.price, A = p.name ?? (k == null ? void 0 : k.name) ?? (y == null ? void 0 : y.name) ?? "",
|
|
393
|
+
)) == null ? void 0 : L.price, A = p.name ?? (k == null ? void 0 : k.name) ?? (y == null ? void 0 : y.name) ?? "", C = {
|
|
394
394
|
...p,
|
|
395
395
|
name: A,
|
|
396
396
|
code: y == null ? void 0 : y.code,
|
|
@@ -401,7 +401,7 @@ class Ro {
|
|
|
401
401
|
fallbackOrder: y == null ? void 0 : y.orderFrom,
|
|
402
402
|
priceTiers: p.priceTiers
|
|
403
403
|
};
|
|
404
|
-
return [...c,
|
|
404
|
+
return [...c, C];
|
|
405
405
|
}, []), d = On(r, s.items);
|
|
406
406
|
return {
|
|
407
407
|
...s,
|
|
@@ -417,7 +417,7 @@ class Ro {
|
|
|
417
417
|
}
|
|
418
418
|
async sortGroups(t) {
|
|
419
419
|
const n = {
|
|
420
|
-
module:
|
|
420
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.group,
|
|
421
421
|
operation: Oe.F_OPERATION_TYPE.rearrange,
|
|
422
422
|
data: t.map((i) => i._id)
|
|
423
423
|
};
|
|
@@ -425,12 +425,12 @@ class Ro {
|
|
|
425
425
|
}
|
|
426
426
|
async duplicateGroup(t) {
|
|
427
427
|
const n = ge(t);
|
|
428
|
-
t.type ===
|
|
428
|
+
t.type === J.F_ADDON_GROUP_TYPE.enum.PRODUCT || (n.items = Object.entries(n.items).reduce((a, [l, s]) => (a[l] = {
|
|
429
429
|
...s,
|
|
430
430
|
items: (s.items ?? []).map((u) => ({ ...u, _id: "" }))
|
|
431
431
|
}, a), {}));
|
|
432
432
|
const r = Oo(n), o = {
|
|
433
|
-
module:
|
|
433
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.group,
|
|
434
434
|
operation: Oe.F_OPERATION_TYPE.create,
|
|
435
435
|
data: {
|
|
436
436
|
...r.group,
|
|
@@ -438,7 +438,7 @@ class Ro {
|
|
|
438
438
|
},
|
|
439
439
|
link: [
|
|
440
440
|
{
|
|
441
|
-
module:
|
|
441
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.item,
|
|
442
442
|
id: "",
|
|
443
443
|
data: r.linkItems
|
|
444
444
|
}
|
|
@@ -449,7 +449,7 @@ class Ro {
|
|
|
449
449
|
async deleteGroup(t) {
|
|
450
450
|
t.itemsLinked.length > 0 && await this.applyItems(t, []);
|
|
451
451
|
const n = {
|
|
452
|
-
module:
|
|
452
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.group,
|
|
453
453
|
operation: Oe.F_OPERATION_TYPE.delete,
|
|
454
454
|
data: t._id
|
|
455
455
|
};
|
|
@@ -480,7 +480,7 @@ class Ro {
|
|
|
480
480
|
(m) => m._id === s
|
|
481
481
|
);
|
|
482
482
|
return {
|
|
483
|
-
module:
|
|
483
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.item,
|
|
484
484
|
operation: Oe.F_OPERATION_TYPE.update,
|
|
485
485
|
id: s,
|
|
486
486
|
data: r(this.menuStore, u, !n.includes(s))
|
|
@@ -515,7 +515,7 @@ const ia = /* @__PURE__ */ Lt(ta, [["render", na]]), oa = {
|
|
|
515
515
|
title: t.title,
|
|
516
516
|
contentComponent: De("div", { class: "space-y-4" }, [
|
|
517
517
|
...t.items.map(
|
|
518
|
-
(r) => De(
|
|
518
|
+
(r) => De(Ci, {
|
|
519
519
|
name: r.name,
|
|
520
520
|
value: r.value || "--"
|
|
521
521
|
})
|
|
@@ -527,13 +527,13 @@ const ia = /* @__PURE__ */ Lt(ta, [["render", na]]), oa = {
|
|
|
527
527
|
const a = j("FmButton");
|
|
528
528
|
return t.variant === "full" ? (F(), re("div", oa, [
|
|
529
529
|
$("div", ra, we(r.title), 1),
|
|
530
|
-
|
|
531
|
-
(F(!0), re(ze, null, _t(r.items, (l) => (F(),
|
|
530
|
+
R(ia),
|
|
531
|
+
(F(!0), re(ze, null, _t(r.items, (l) => (F(), Z(Ci, {
|
|
532
532
|
key: l.name,
|
|
533
533
|
name: l.name,
|
|
534
534
|
value: l.value || "--"
|
|
535
535
|
}, null, 8, ["name", "value"]))), 128))
|
|
536
|
-
])) : (F(),
|
|
536
|
+
])) : (F(), Z(a, {
|
|
537
537
|
key: 1,
|
|
538
538
|
icon: "info",
|
|
539
539
|
variant: "tertiary",
|
|
@@ -548,7 +548,7 @@ const ia = /* @__PURE__ */ Lt(ta, [["render", na]]), oa = {
|
|
|
548
548
|
},
|
|
549
549
|
emits: ["update:catalogAndScheduler"],
|
|
550
550
|
setup(e, { emit: t }) {
|
|
551
|
-
const n = e, i = t, { t: r } = Ee(), o =
|
|
551
|
+
const n = e, i = t, { t: r } = Ee(), o = Ce(), a = ie(o.state.currentCatalogId || null), l = U(() => {
|
|
552
552
|
const c = Object.keys(n.linkedStatus.catalogs).map((p) => {
|
|
553
553
|
var w;
|
|
554
554
|
return {
|
|
@@ -599,7 +599,7 @@ const ia = /* @__PURE__ */ Lt(ta, [["render", na]]), oa = {
|
|
|
599
599
|
]),
|
|
600
600
|
$("div", ca, [
|
|
601
601
|
$("div", da, [
|
|
602
|
-
|
|
602
|
+
R(w, {
|
|
603
603
|
label: b(r)("menu.common.labels.catalog"),
|
|
604
604
|
items: l.value,
|
|
605
605
|
modelValue: a.value,
|
|
@@ -607,7 +607,7 @@ const ia = /* @__PURE__ */ Lt(ta, [["render", na]]), oa = {
|
|
|
607
607
|
}, null, 8, ["label", "items", "modelValue"])
|
|
608
608
|
]),
|
|
609
609
|
$("div", ma, [
|
|
610
|
-
|
|
610
|
+
R(w, {
|
|
611
611
|
label: b(r)("menu.common.labels.scheduler"),
|
|
612
612
|
items: m.value,
|
|
613
613
|
modelValue: s.value,
|
|
@@ -634,7 +634,7 @@ const ia = /* @__PURE__ */ Lt(ta, [["render", na]]), oa = {
|
|
|
634
634
|
const n = t;
|
|
635
635
|
return (i, r) => {
|
|
636
636
|
const o = j("fm-switch"), a = j("fm-card");
|
|
637
|
-
return i.disabled ?
|
|
637
|
+
return i.disabled ? Re(i.$slots, "default", { key: 0 }, void 0, !0) : (F(), Z(a, {
|
|
638
638
|
key: 1,
|
|
639
639
|
class: "p-16 space-y-24",
|
|
640
640
|
variant: "outlined"
|
|
@@ -645,15 +645,15 @@ const ia = /* @__PURE__ */ Lt(ta, [["render", na]]), oa = {
|
|
|
645
645
|
$("p", ga, we(i.title), 1),
|
|
646
646
|
i.description ? (F(), re("p", va, we(i.description), 1)) : ae("", !0)
|
|
647
647
|
]),
|
|
648
|
-
|
|
648
|
+
R(o, {
|
|
649
649
|
"model-value": i.toggle,
|
|
650
650
|
"onUpdate:modelValue": r[0] || (r[0] = (l) => n("update:toggle", l))
|
|
651
651
|
}, null, 8, ["model-value"])
|
|
652
652
|
]),
|
|
653
|
-
|
|
653
|
+
R(hr, { name: "expand" }, {
|
|
654
654
|
default: W(() => [
|
|
655
655
|
i.toggle ? (F(), re("div", _a, [
|
|
656
|
-
|
|
656
|
+
Re(i.$slots, "default", {}, void 0, !0)
|
|
657
657
|
])) : ae("", !0)
|
|
658
658
|
]),
|
|
659
659
|
_: 3
|
|
@@ -664,7 +664,7 @@ const ia = /* @__PURE__ */ Lt(ta, [["render", na]]), oa = {
|
|
|
664
664
|
};
|
|
665
665
|
}
|
|
666
666
|
}), Tt = /* @__PURE__ */ Lt(ba, [["__scopeId", "data-v-e920f110"]]);
|
|
667
|
-
var ya = { remy: "https://remy.feedmeapi.com/v1" };
|
|
667
|
+
var ya = { remy: "https://remy-dev.feedmeapi.com/v1" };
|
|
668
668
|
let Ge;
|
|
669
669
|
function wa(e) {
|
|
670
670
|
const t = $r(), n = Vr(e), i = U(() => {
|
|
@@ -703,7 +703,7 @@ const Ea = ho("menu-edit-state", {
|
|
|
703
703
|
}), Sa = {}, ka = { class: "pl-32" };
|
|
704
704
|
function Aa(e, t) {
|
|
705
705
|
return F(), re("div", ka, [
|
|
706
|
-
|
|
706
|
+
Re(e.$slots, "default")
|
|
707
707
|
]);
|
|
708
708
|
}
|
|
709
709
|
const Oa = /* @__PURE__ */ Lt(Sa, [["render", Aa]]);
|
|
@@ -731,7 +731,7 @@ function le(e) {
|
|
|
731
731
|
function Ye(e, t, n) {
|
|
732
732
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function Ca(e, t) {
|
|
735
735
|
if (e == null) return {};
|
|
736
736
|
var n, i, r = function(a, l) {
|
|
737
737
|
if (a == null) return {};
|
|
@@ -767,7 +767,7 @@ function Ln(e, t) {
|
|
|
767
767
|
for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
|
|
768
768
|
return i;
|
|
769
769
|
}
|
|
770
|
-
var Mi,
|
|
770
|
+
var Mi, Ra, un, Te = (Mi = function(e) {
|
|
771
771
|
/*!
|
|
772
772
|
Copyright (c) 2018 Jed Watson.
|
|
773
773
|
Licensed under the MIT License (MIT), see
|
|
@@ -794,7 +794,7 @@ var Mi, Ca, un, Te = (Mi = function(e) {
|
|
|
794
794
|
}
|
|
795
795
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
796
796
|
})();
|
|
797
|
-
}, Mi(un = { path:
|
|
797
|
+
}, Mi(un = { path: Ra, exports: {}, require: function(e, t) {
|
|
798
798
|
return function() {
|
|
799
799
|
throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
|
800
800
|
}(t == null && un.path);
|
|
@@ -849,7 +849,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
849
849
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
850
850
|
PERFORMANCE OF THIS SOFTWARE.
|
|
851
851
|
***************************************************************************** */
|
|
852
|
-
function
|
|
852
|
+
function Ro(e, t) {
|
|
853
853
|
var n, i;
|
|
854
854
|
return e && t ? (n = "" + e + t[0].toUpperCase() + t.slice(1), i = e + "-" + t) : (n = e || t, i = e || t), { name: n, classname: i };
|
|
855
855
|
}
|
|
@@ -891,7 +891,7 @@ function Io(e) {
|
|
|
891
891
|
function Mo(e, t) {
|
|
892
892
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
893
893
|
}
|
|
894
|
-
var
|
|
894
|
+
var Jt = function(e, t) {
|
|
895
895
|
e === void 0 && (e = {}), t === void 0 && (t = {}), this.type = "manipulateImage", this.move = e, this.scale = t;
|
|
896
896
|
}, Ta = function(e, t) {
|
|
897
897
|
t === void 0 && (t = {}), this.type = "resize", this.directions = e, this.params = t;
|
|
@@ -953,7 +953,7 @@ var Zt = function(e, t) {
|
|
|
953
953
|
this.touches.length && this.$emit("drag-end"), this.hovered && (this.$emit("leave"), this.hovered = !1), this.touches = [];
|
|
954
954
|
} }, emits: ["drag", "drag-end", "leave", "enter"] };
|
|
955
955
|
fi.render = function(e, t, n, i, r, o) {
|
|
956
|
-
return F(),
|
|
956
|
+
return F(), Z("div", { ref: "draggable", class: n.classname, onTouchstart: t[1] || (t[1] = function() {
|
|
957
957
|
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
958
958
|
}), onMousedown: t[2] || (t[2] = function() {
|
|
959
959
|
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
@@ -961,19 +961,19 @@ fi.render = function(e, t, n, i, r, o) {
|
|
|
961
961
|
return o.onMouseOver && o.onMouseOver.apply(o, arguments);
|
|
962
962
|
}), onMouseleave: t[4] || (t[4] = function() {
|
|
963
963
|
return o.onMouseLeave && o.onMouseLeave.apply(o, arguments);
|
|
964
|
-
}) }, [
|
|
964
|
+
}) }, [Re(e.$slots, "default")], 34);
|
|
965
965
|
};
|
|
966
966
|
var Fn = Qe("vue-handler-wrapper"), Do = { name: "HandlerWrapper", components: { DraggableElement: fi }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
|
|
967
967
|
var e;
|
|
968
968
|
if (this.horizontalPosition || this.verticalPosition) {
|
|
969
|
-
var t, n =
|
|
969
|
+
var t, n = Ro(this.horizontalPosition, this.verticalPosition);
|
|
970
970
|
e = Fn((Ye(t = {}, n.classname, !0), Ye(t, "disabled", this.disabled), t));
|
|
971
971
|
} else e = Fn({ disabled: this.disabled });
|
|
972
972
|
return { root: e, draggable: Fn("draggable") };
|
|
973
973
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
974
974
|
Do.render = function(e, t, n, i, r, o) {
|
|
975
975
|
var a = j("DraggableElement");
|
|
976
|
-
return F(),
|
|
976
|
+
return F(), Z("div", { class: o.classes.root }, [R(a, { class: o.classes.draggable, onDrag: t[1] || (t[1] = function(l) {
|
|
977
977
|
return e.$emit("drag", l);
|
|
978
978
|
}), onDragEnd: t[2] || (t[2] = function(l) {
|
|
979
979
|
return e.$emit("drag-end");
|
|
@@ -982,7 +982,7 @@ Do.render = function(e, t, n, i, r, o) {
|
|
|
982
982
|
}), onEnter: t[4] || (t[4] = function(l) {
|
|
983
983
|
return e.$emit("enter");
|
|
984
984
|
}) }, { default: W(function() {
|
|
985
|
-
return [
|
|
985
|
+
return [Re(e.$slots, "default")];
|
|
986
986
|
}), _: 3 }, 8, ["class"])], 2);
|
|
987
987
|
};
|
|
988
988
|
var Ma = Qe("vue-line-wrapper"), No = { name: "LineWrapper", components: { DraggableElement: fi }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
|
|
@@ -991,7 +991,7 @@ var Ma = Qe("vue-line-wrapper"), No = { name: "LineWrapper", components: { Dragg
|
|
|
991
991
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
992
992
|
No.render = function(e, t, n, i, r, o) {
|
|
993
993
|
var a = j("DraggableElement");
|
|
994
|
-
return F(),
|
|
994
|
+
return F(), Z(a, { class: o.classname, onDrag: t[1] || (t[1] = function(l) {
|
|
995
995
|
return e.$emit("drag", l);
|
|
996
996
|
}), onDragEnd: t[2] || (t[2] = function(l) {
|
|
997
997
|
return e.$emit("drag-end");
|
|
@@ -1000,7 +1000,7 @@ No.render = function(e, t, n, i, r, o) {
|
|
|
1000
1000
|
}), onEnter: t[4] || (t[4] = function(l) {
|
|
1001
1001
|
return e.$emit("enter");
|
|
1002
1002
|
}) }, { default: W(function() {
|
|
1003
|
-
return [
|
|
1003
|
+
return [Re(e.$slots, "default")];
|
|
1004
1004
|
}), _: 3 }, 8, ["class"]);
|
|
1005
1005
|
};
|
|
1006
1006
|
var it = ["left", "right", "top", "bottom"], Da = ["left", "right"], Na = ["top", "bottom"], Pa = ["left", "top"], La = ["fill-area", "fit-area", "stencil", "none"], Pi = { left: 0, top: 0, width: 0, height: 0 };
|
|
@@ -1028,7 +1028,7 @@ function Qt(e, t) {
|
|
|
1028
1028
|
function nt(e, t) {
|
|
1029
1029
|
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 };
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1031
|
+
function Cn(e) {
|
|
1032
1032
|
return { left: -e.left, top: -e.top };
|
|
1033
1033
|
}
|
|
1034
1034
|
function We(e, t) {
|
|
@@ -1070,16 +1070,16 @@ function At(e, t) {
|
|
|
1070
1070
|
var n = t * Math.PI / 180;
|
|
1071
1071
|
return { left: e.left * Math.cos(n) - e.top * Math.sin(n), top: e.left * Math.sin(n) + e.top * Math.cos(n) };
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function Rn(e, t) {
|
|
1074
1074
|
var n = Qt(Ue(e, t), t);
|
|
1075
1075
|
return n.left + n.right + n.top + n.bottom ? n.left + n.right > n.top + n.bottom ? Math.min((e.width + n.left + n.right) / e.width, Ht(e, t)) : Math.min((e.height + n.top + n.bottom) / e.height, Ht(e, t)) : 1;
|
|
1076
1076
|
}
|
|
1077
1077
|
function Ue(e, t, n) {
|
|
1078
1078
|
n === void 0 && (n = !1);
|
|
1079
1079
|
var i = jt(e, t);
|
|
1080
|
-
return We(e, n ?
|
|
1080
|
+
return We(e, n ? Cn(i) : i);
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function Zn(e) {
|
|
1083
1083
|
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 };
|
|
1084
1084
|
}
|
|
1085
1085
|
function Fa(e, t) {
|
|
@@ -1117,13 +1117,13 @@ function ht(e) {
|
|
|
1117
1117
|
var s = a(l) || a(l, !0);
|
|
1118
1118
|
return s && { width: s.width, height: s.height };
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function Jn(e) {
|
|
1121
1121
|
var t = e.event, n = e.coordinates, i = e.positionRestrictions, r = i === void 0 ? {} : i, o = We(n, t.directions);
|
|
1122
1122
|
return We(o, jt(o, r));
|
|
1123
1123
|
}
|
|
1124
1124
|
function xa(e) {
|
|
1125
1125
|
var t = e.coordinates, n = e.transform, i = e.imageSize, r = e.sizeRestrictions, o = e.positionRestrictions, a = e.aspectRatio, l = e.visibleArea, s = function(m, d) {
|
|
1126
|
-
return
|
|
1126
|
+
return Jn({ coordinates: m, positionRestrictions: o, event: new pi({ left: d.left - m.left, top: d.top - m.top }) });
|
|
1127
1127
|
}, u = te({}, t);
|
|
1128
1128
|
return (Array.isArray(n) ? n : [n]).forEach(function(m) {
|
|
1129
1129
|
var d = {};
|
|
@@ -1141,7 +1141,7 @@ function Ua(e) {
|
|
|
1141
1141
|
e.stencilReference;
|
|
1142
1142
|
var s, u, m, d = te({}, i), c = te({}, r), p = te({}, o);
|
|
1143
1143
|
s = ue(p), u = ue(d), m === void 0 && (m = 1e-3), (s === 0 || u === 0 ? Math.abs(u - s) < m : Math.abs(u / s) < 1 + m && Math.abs(u / s) > 1 - m) || (d = te(te({}, d), ht({ sizeRestrictions: a, width: d.width, height: d.height, aspectRatio: { minimum: ue(p), maximum: ue(p) } })));
|
|
1144
|
-
var w =
|
|
1144
|
+
var w = Rn(c = Xe(c, d.width * n.width / (c.width * p.width)), t({ visibleArea: c, type: "resize" }));
|
|
1145
1145
|
return w !== 1 && (c = Xe(c, w), d = Xe(d, w)), c = Ue(c = We(c, Wt(xe(d), xe(c))), t({ visibleArea: c, type: "move" })), { coordinates: d = Ue(d, Tn(rt(c), l)), visibleArea: c };
|
|
1146
1146
|
}
|
|
1147
1147
|
function Va(e) {
|
|
@@ -1153,7 +1153,7 @@ function Va(e) {
|
|
|
1153
1153
|
if (r && o && t.type !== "manipulateImage") {
|
|
1154
1154
|
var u = { width: 0, height: 0 };
|
|
1155
1155
|
s.width, i.width, ue(i) > ue(l) ? (u.height = 0.8 * i.height, u.width = u.height * ue(l)) : (u.width = 0.8 * i.width, u.height = u.width * ue(l));
|
|
1156
|
-
var m =
|
|
1156
|
+
var m = Rn(s = Xe(s, l.width * i.width / (s.width * u.width)), n({ visibleArea: s, type: "resize" }));
|
|
1157
1157
|
s = Xe(s, m), m !== 1 && (u.height /= m, u.width /= m), s = Ue(s = We(s, Wt(xe(l), xe(s))), n({ visibleArea: s, type: "move" })), l = Ue(l, Tn(rt(s), a));
|
|
1158
1158
|
}
|
|
1159
1159
|
return { coordinates: l, visibleArea: s };
|
|
@@ -1162,7 +1162,7 @@ function za(e) {
|
|
|
1162
1162
|
var t = e.event, n = e.coordinates, i = e.visibleArea, r = e.getAreaRestrictions, o = te({}, i), a = te({}, n);
|
|
1163
1163
|
if (t.type === "setCoordinates") {
|
|
1164
1164
|
var l = Math.max(0, a.width - o.width), s = Math.max(0, a.height - o.height);
|
|
1165
|
-
l > s ? o = Xe(o, Math.min(a.width / o.width, Ht(o, r({ visibleArea: o, type: "resize" })))) : s > l && (o = Xe(o, Math.min(a.height / o.height, Ht(o, r({ visibleArea: o, type: "resize" }))))), o = Ue(o = We(o,
|
|
1165
|
+
l > s ? o = Xe(o, Math.min(a.width / o.width, Ht(o, r({ visibleArea: o, type: "resize" })))) : s > l && (o = Xe(o, Math.min(a.height / o.height, Ht(o, r({ visibleArea: o, type: "resize" }))))), o = Ue(o = We(o, Cn(jt(a, rt(o)))), r({ visibleArea: o, type: "move" }));
|
|
1166
1166
|
}
|
|
1167
1167
|
return { visibleArea: o, coordinates: a };
|
|
1168
1168
|
}
|
|
@@ -1181,7 +1181,7 @@ function Ga(e) {
|
|
|
1181
1181
|
function Wa(e) {
|
|
1182
1182
|
var t = e.getAreaRestrictions, n = e.coordinates, i = e.imageSize, r = ue(e.boundaries);
|
|
1183
1183
|
if (n) {
|
|
1184
|
-
var o = { height: Math.max(n.height, i.height), width: Math.max(n.width, i.width) }, a = Po({ width: ue(o) > r ? o.width : o.height * r, height: ue(o) > r ? o.width / r : o.height },
|
|
1184
|
+
var o = { height: Math.max(n.height, i.height), width: Math.max(n.width, i.width) }, a = Po({ width: ue(o) > r ? o.width : o.height * r, height: ue(o) > r ? o.width / r : o.height }, Zn(t())), l = { left: n.left + n.width / 2 - a.width / 2, top: n.top + n.height / 2 - a.height / 2, width: a.width, height: a.height }, s = Qt(n, rt(te({ left: 0, top: 0 }, i))), u = {};
|
|
1185
1185
|
return !s.left && !s.right && l.width <= i.width && (u.left = 0, u.right = i.width), !s.top && !s.bottom && l.height <= i.height && (u.top = 0, u.bottom = i.height), Ue(l, u);
|
|
1186
1186
|
}
|
|
1187
1187
|
var m = ue(i);
|
|
@@ -1196,11 +1196,11 @@ function Ha(e) {
|
|
|
1196
1196
|
var y = { stencil: { minimum: Math.max(r.minWidth ? r.minWidth / d.width : 0, r.minHeight ? r.minHeight / d.height : 0), maximum: Math.min(r.maxWidth ? r.maxWidth / d.width : 1 / 0, r.maxHeight ? r.maxHeight / d.height : 1 / 0, Ht(d, a)) }, area: { maximum: Ht(m, o({ visibleArea: m, type: "resize" })) } };
|
|
1197
1197
|
s.factor && w && (s.factor < 1 ? (p = Math.max(s.factor, y.stencil.minimum)) > 1 && (p = 1) : s.factor > 1 && (p = Math.min(s.factor, Math.min(y.area.maximum, y.stencil.maximum))) < 1 && (p = 1)), p && (m = Xe(m, p, s.center));
|
|
1198
1198
|
var k = n.left - i.left, f = i.width + i.left - (n.width + n.left), v = n.top - i.top, A = i.height + i.top - (n.height + n.top);
|
|
1199
|
-
return m = Ue(m = We(m, jt(m, { left: a.left !== void 0 ? a.left - k * p : void 0, top: a.top !== void 0 ? a.top - v * p : void 0, bottom: a.bottom !== void 0 ? a.bottom + A * p : void 0, right: a.right !== void 0 ? a.right + f * p : void 0 })), o({ visibleArea: m, type: "move" })), d.width = d.width * p, d.height = d.height * p, d.left = m.left + k * p, d.top = m.top + v * p, d = Ue(d, Tn(rt(m), a)), s.factor && w && l && (s.factor > 1 ? c = Math.min(y.area.maximum, s.factor) / p : s.factor < 1 && (c = Math.max(d.height / m.height, d.width / m.width, s.factor / p)), c !== 1 && (m = We(m = Ue(m = Xe(m, c, s.factor > 1 ? s.center : xe(d)), o({ visibleArea: m, type: "move" })),
|
|
1199
|
+
return m = Ue(m = We(m, jt(m, { left: a.left !== void 0 ? a.left - k * p : void 0, top: a.top !== void 0 ? a.top - v * p : void 0, bottom: a.bottom !== void 0 ? a.bottom + A * p : void 0, right: a.right !== void 0 ? a.right + f * p : void 0 })), o({ visibleArea: m, type: "move" })), d.width = d.width * p, d.height = d.height * p, d.left = m.left + k * p, d.top = m.top + v * p, d = Ue(d, Tn(rt(m), a)), s.factor && w && l && (s.factor > 1 ? c = Math.min(y.area.maximum, s.factor) / p : s.factor < 1 && (c = Math.max(d.height / m.height, d.width / m.width, s.factor / p)), c !== 1 && (m = We(m = Ue(m = Xe(m, c, s.factor > 1 ? s.center : xe(d)), o({ visibleArea: m, type: "move" })), Cn(jt(d, rt(m)))))), { coordinates: d, visibleArea: m };
|
|
1200
1200
|
}
|
|
1201
1201
|
function ja(e) {
|
|
1202
1202
|
var t = e.aspectRatio, n = e.getAreaRestrictions, i = e.coordinates, r = e.visibleArea, o = e.sizeRestrictions, a = e.positionRestrictions, l = e.imageSize, s = e.previousImageSize, u = e.angle, m = te({}, i), d = te({}, r), c = At(xe(te({ left: 0, top: 0 }, s)), u);
|
|
1203
|
-
return (m = te(te({}, ht({ sizeRestrictions: o, aspectRatio: t, width: m.width, height: m.height })), At(xe(m), u))).left -= c.left - l.width / 2 + m.width / 2, m.top -= c.top - l.height / 2 + m.height / 2, d = Xe(d,
|
|
1203
|
+
return (m = te(te({}, ht({ sizeRestrictions: o, aspectRatio: t, width: m.width, height: m.height })), At(xe(m), u))).left -= c.left - l.width / 2 + m.width / 2, m.top -= c.top - l.height / 2 + m.height / 2, d = Xe(d, Rn(d, n({ visibleArea: d, type: "resize" }))), { coordinates: m = Ue(m, a), visibleArea: d = Ue(d = We(d, Wt(xe(m), xe(i))), n({ visibleArea: d, type: "move" })) };
|
|
1204
1204
|
}
|
|
1205
1205
|
function Ka(e) {
|
|
1206
1206
|
var t = e.flip, n = e.previousFlip, i = e.rotate, r = e.getAreaRestrictions, o = e.coordinates, a = e.visibleArea, l = e.imageSize, s = te({}, o), u = te({}, a), m = n.horizontal !== t.horizontal, d = n.vertical !== t.vertical;
|
|
@@ -1260,14 +1260,14 @@ var Ya = Qe("vue-simple-handler"), Xa = Qe("vue-simple-handler-wrapper"), hi = {
|
|
|
1260
1260
|
} }, emits: ["drag", "drag-end"] };
|
|
1261
1261
|
hi.render = function(e, t, n, i, r, o) {
|
|
1262
1262
|
var a = j("HandlerWrapper");
|
|
1263
|
-
return F(),
|
|
1264
|
-
return [
|
|
1263
|
+
return F(), Z(a, { 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() {
|
|
1264
|
+
return [R("div", { class: o.classes.default }, null, 2)];
|
|
1265
1265
|
}), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
1266
1266
|
};
|
|
1267
|
-
var qa = Qe("vue-simple-line"),
|
|
1267
|
+
var qa = Qe("vue-simple-line"), Za = Qe("vue-simple-line-wrapper"), gi = { name: "SimpleLine", components: { LineWrapper: No }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
1268
1268
|
return { hover: !1 };
|
|
1269
1269
|
}, computed: { classes: function() {
|
|
1270
|
-
return { root: Te(qa(Ye({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass), wrapper: Te(
|
|
1270
|
+
return { root: Te(qa(Ye({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass), wrapper: Te(Za(Ye({}, this.position, !0)), this.wrapperClass) };
|
|
1271
1271
|
} }, methods: { onDrag: function(e) {
|
|
1272
1272
|
this.$emit("drag", e);
|
|
1273
1273
|
}, onEnter: function() {
|
|
@@ -1279,11 +1279,11 @@ var qa = Qe("vue-simple-line"), Ja = Qe("vue-simple-line-wrapper"), gi = { name:
|
|
|
1279
1279
|
} }, emits: ["drag", "drag-end"] };
|
|
1280
1280
|
gi.render = function(e, t, n, i, r, o) {
|
|
1281
1281
|
var a = j("LineWrapper");
|
|
1282
|
-
return F(),
|
|
1283
|
-
return [
|
|
1282
|
+
return F(), Z(a, { 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() {
|
|
1283
|
+
return [R("div", { class: o.classes.root }, null, 2)];
|
|
1284
1284
|
}), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
1285
1285
|
};
|
|
1286
|
-
var Un = Qe("vue-bounding-box"),
|
|
1286
|
+
var Un = Qe("vue-bounding-box"), Ja = ["east", "west", null], Qa = ["south", "north", null], xo = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
|
|
1287
1287
|
return { eastNorth: !0, north: !0, westNorth: !0, west: !0, westSouth: !0, south: !0, eastSouth: !0, east: !0 };
|
|
1288
1288
|
} }, handlersComponent: { type: [Object, String], default: function() {
|
|
1289
1289
|
return hi;
|
|
@@ -1301,10 +1301,10 @@ var Un = Qe("vue-bounding-box"), Za = ["east", "west", null], Qa = ["south", "no
|
|
|
1301
1301
|
return {};
|
|
1302
1302
|
} }, resizable: { type: Boolean, default: !0 } }, data: function() {
|
|
1303
1303
|
var e = [];
|
|
1304
|
-
return
|
|
1304
|
+
return Ja.forEach(function(t) {
|
|
1305
1305
|
Qa.forEach(function(n) {
|
|
1306
1306
|
if (t !== n) {
|
|
1307
|
-
var i =
|
|
1307
|
+
var i = Ro(t, n), r = i.name, o = i.classname;
|
|
1308
1308
|
e.push({ name: r, classname: o, verticalDirection: n, horizontalDirection: t });
|
|
1309
1309
|
}
|
|
1310
1310
|
});
|
|
@@ -1345,14 +1345,14 @@ var Un = Qe("vue-bounding-box"), Za = ["east", "west", null], Qa = ["south", "no
|
|
|
1345
1345
|
t === "west" ? l.left -= o : t === "east" && (l.right += o), n === "north" ? l.top -= a : n === "south" && (l.bottom += a), !n && t ? i = "width" : n && !t && (i = "height"), this.resizable && this.$emit("resize", new Ta(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 }));
|
|
1346
1346
|
} }, emits: ["resize", "resize-end"] };
|
|
1347
1347
|
xo.render = function(e, t, n, i, r, o) {
|
|
1348
|
-
return F(),
|
|
1349
|
-
return F(),
|
|
1348
|
+
return F(), Z("div", { ref: "box", class: o.classes.root, style: o.style }, [Re(e.$slots, "default"), R("div", null, [(F(!0), Z(ze, null, _t(o.lineNodes, function(a) {
|
|
1349
|
+
return F(), Z(yn(a.component), { key: a.name, "default-class": a.class, "hover-class": a.hoverClass, "wrapper-class": a.wrapperClass, position: a.name, disabled: a.disabled, onDrag: function(l) {
|
|
1350
1350
|
return o.onHandlerDrag(l, a.horizontalDirection, a.verticalDirection);
|
|
1351
1351
|
}, onDragEnd: t[1] || (t[1] = function(l) {
|
|
1352
1352
|
return o.onEnd();
|
|
1353
1353
|
}) }, null, 8, ["default-class", "hover-class", "wrapper-class", "position", "disabled", "onDrag"]);
|
|
1354
|
-
}), 128))]), (F(!0),
|
|
1355
|
-
return F(),
|
|
1354
|
+
}), 128))]), (F(!0), Z(ze, null, _t(o.handlerNodes, function(a) {
|
|
1355
|
+
return F(), Z("div", { key: a.name, style: a.wrapperStyle, class: a.wrapperClass }, [(F(), Z(yn(a.component), { "default-class": a.class, "hover-class": a.hoverClass, "wrapper-class": a.wrapperClass, "horizontal-position": a.horizontalDirection, "vertical-position": a.verticalDirection, disabled: a.disabled, onDrag: function(l) {
|
|
1356
1356
|
return o.onHandlerDrag(l, a.horizontalDirection, a.verticalDirection);
|
|
1357
1357
|
}, onDragEnd: t[2] || (t[2] = function(l) {
|
|
1358
1358
|
return o.onEnd();
|
|
@@ -1398,11 +1398,11 @@ var es = Qe("vue-draggable-area"), Uo = { name: "DraggableArea", props: { movabl
|
|
|
1398
1398
|
this.touches.length && this.$emit("move-end"), this.touches = [];
|
|
1399
1399
|
} }, emits: ["move", "move-end"] };
|
|
1400
1400
|
Uo.render = function(e, t, n, i, r, o) {
|
|
1401
|
-
return F(),
|
|
1401
|
+
return F(), Z("div", { ref: "container", onTouchstart: t[1] || (t[1] = function() {
|
|
1402
1402
|
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
1403
1403
|
}), onMousedown: t[2] || (t[2] = function() {
|
|
1404
1404
|
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
1405
|
-
}) }, [
|
|
1405
|
+
}) }, [Re(e.$slots, "default")], 544);
|
|
1406
1406
|
};
|
|
1407
1407
|
function Vn(e) {
|
|
1408
1408
|
var t, n;
|
|
@@ -1493,10 +1493,10 @@ var zo = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
|
|
|
1493
1493
|
this.transforming = !1, this.debouncedProcessEnd = Xn(this.processEnd), this.touches = [];
|
|
1494
1494
|
}, methods: { processMove: function(e, t) {
|
|
1495
1495
|
if (this.touches.length) {
|
|
1496
|
-
if (this.touches.length === 1 && t.length === 1) this.$emit("move", new
|
|
1496
|
+
if (this.touches.length === 1 && t.length === 1) this.$emit("move", new Jt({ left: this.touches[0].clientX - t[0].clientX, top: this.touches[0].clientY - t[0].clientY }));
|
|
1497
1497
|
else if (this.touches.length > 1 && this.touchResize) {
|
|
1498
1498
|
var n = Vi(t, this.$refs.container), i = this.oldGeometricProperties;
|
|
1499
|
-
i.count === n.count && i.count > 1 && this.$emit("resize", new
|
|
1499
|
+
i.count === n.count && i.count > 1 && this.$emit("resize", new Jt({ left: i.centerMass.left - n.centerMass.left, top: i.centerMass.top - n.centerMass.top }, { factor: i.spread / n.spread, center: n.centerMass })), this.oldGeometricProperties = n;
|
|
1500
1500
|
}
|
|
1501
1501
|
this.touches = t;
|
|
1502
1502
|
}
|
|
@@ -1537,28 +1537,28 @@ var zo = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
|
|
|
1537
1537
|
}, onWheel: function(e) {
|
|
1538
1538
|
if (this.wheelResize && this.processEvent(e)) {
|
|
1539
1539
|
var t = this.$refs.container.getBoundingClientRect(), n = t.left, i = t.top, r = 1 + this.wheelResize.ratio * (a = e.deltaY || e.detail || e.wheelDelta, (l = +a) == 0 || Io(l) ? l : l > 0 ? 1 : -1), o = { left: e.clientX - n, top: e.clientY - i };
|
|
1540
|
-
this.$emit("resize", new
|
|
1540
|
+
this.$emit("resize", new Jt({}, { factor: r, center: o })), this.touches.length || this.debouncedProcessEnd();
|
|
1541
1541
|
}
|
|
1542
1542
|
var a, l;
|
|
1543
1543
|
} }, emits: ["resize", "move", "transform-end"] };
|
|
1544
1544
|
zo.render = function(e, t, n, i, r, o) {
|
|
1545
|
-
return F(),
|
|
1545
|
+
return F(), Z("div", { ref: "container", onTouchstart: t[1] || (t[1] = function() {
|
|
1546
1546
|
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
1547
1547
|
}), onMousedown: t[2] || (t[2] = function() {
|
|
1548
1548
|
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
1549
1549
|
}), onWheel: t[3] || (t[3] = function() {
|
|
1550
1550
|
return o.onWheel && o.onWheel.apply(o, arguments);
|
|
1551
|
-
}) }, [
|
|
1551
|
+
}) }, [Re(e.$slots, "default")], 544);
|
|
1552
1552
|
};
|
|
1553
1553
|
var Qn = { components: { TransformableImage: zo }, props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 } }, emits: ["resize", "move"] };
|
|
1554
1554
|
Qn.render = function(e, t, n, i, r, o) {
|
|
1555
1555
|
var a = j("transformable-image");
|
|
1556
|
-
return F(),
|
|
1556
|
+
return F(), Z(a, { "touch-move": n.touchMove, "touch-resize": n.touchResize, "mouse-move": n.mouseMove, "wheel-resize": n.wheelResize, onMove: t[1] || (t[1] = function(l) {
|
|
1557
1557
|
return e.$emit("move", l);
|
|
1558
1558
|
}), onResize: t[2] || (t[2] = function(l) {
|
|
1559
1559
|
return e.$emit("resize", l);
|
|
1560
1560
|
}) }, { default: W(function() {
|
|
1561
|
-
return [
|
|
1561
|
+
return [Re(e.$slots, "default")];
|
|
1562
1562
|
}), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
|
|
1563
1563
|
};
|
|
1564
1564
|
var pn = Qe("vue-preview"), $o = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
|
|
@@ -1605,12 +1605,12 @@ var pn = Qe("vue-preview"), $o = { props: { coordinates: { type: Object }, trans
|
|
|
1605
1605
|
e && e.complete && this.refreshImage(), this.refresh();
|
|
1606
1606
|
} } };
|
|
1607
1607
|
$o.render = function(e, t, n, i, r, o) {
|
|
1608
|
-
return F(),
|
|
1608
|
+
return F(), Z("div", { ref: "root", class: o.classes.root, style: o.style }, [R("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [Nt(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);
|
|
1609
1609
|
};
|
|
1610
1610
|
var Bo = { components: { Preview: $o }, inheritAttrs: !1 };
|
|
1611
1611
|
Bo.render = function(e, t, n, i, r, o) {
|
|
1612
1612
|
var a = j("preview");
|
|
1613
|
-
return F(),
|
|
1613
|
+
return F(), Z(a, go(e.$attrs, { fill: !0 }), null, 16);
|
|
1614
1614
|
};
|
|
1615
1615
|
var zn = Qe("vue-rectangle-stencil"), Go = { name: "RectangleStencil", components: { StencilPreview: Bo, BoundingBox: xo, DraggableArea: Uo }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
|
|
1616
1616
|
return hi;
|
|
@@ -1644,9 +1644,9 @@ var zn = Qe("vue-rectangle-stencil"), Go = { name: "RectangleStencil", component
|
|
|
1644
1644
|
} }, emits: ["resize", "resize-end", "move", "move-end"] };
|
|
1645
1645
|
Go.render = function(e, t, n, i, r, o) {
|
|
1646
1646
|
var a = j("stencil-preview"), l = j("draggable-area"), s = j("bounding-box");
|
|
1647
|
-
return F(),
|
|
1648
|
-
return [
|
|
1649
|
-
return [
|
|
1647
|
+
return F(), Z("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() {
|
|
1648
|
+
return [R(l, { movable: n.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: W(function() {
|
|
1649
|
+
return [R(a, { 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"])];
|
|
1650
1650
|
}), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
|
|
1651
1651
|
}), _: 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);
|
|
1652
1652
|
};
|
|
@@ -1662,8 +1662,8 @@ var is = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1662
1662
|
return !(typeof e == "string" && e !== "fill" && e !== "fit");
|
|
1663
1663
|
} }, 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) {
|
|
1664
1664
|
var t = e.event, n = e.coordinates, i = e.aspectRatio, r = e.positionRestrictions, o = e.sizeRestrictions, a = te(te({}, n), { right: n.left + n.width, bottom: n.top + n.height }), l = t.params || {}, s = te({}, t.directions), u = l.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
|
|
1665
|
-
o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), it.forEach(function(
|
|
1666
|
-
u[
|
|
1665
|
+
o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), it.forEach(function(C) {
|
|
1666
|
+
u[C] || (s[C] = 0);
|
|
1667
1667
|
});
|
|
1668
1668
|
var m = nt(a, s = Ui({ coordinates: a, directions: s, sizeRestrictions: o, positionRestrictions: r })).width, d = nt(a, s).height, c = l.preserveRatio ? ue(a) : xn(m / d, i);
|
|
1669
1669
|
if (c) {
|
|
@@ -1683,10 +1683,10 @@ var is = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1683
1683
|
}
|
|
1684
1684
|
s = Ui({ directions: s, coordinates: a, sizeRestrictions: o, positionRestrictions: r, preserveRatio: !0, compensate: l.compensate });
|
|
1685
1685
|
}
|
|
1686
|
-
return m = nt(a, s).width, d = nt(a, s).height, (c = l.preserveRatio ? ue(a) : xn(m / d, i)) && Math.abs(c - m / d) > 1e-3 && it.forEach(function(
|
|
1687
|
-
u[
|
|
1688
|
-
}),
|
|
1689
|
-
} }, moveAlgorithm: { type: Function, default:
|
|
1686
|
+
return m = nt(a, s).width, d = nt(a, s).height, (c = l.preserveRatio ? ue(a) : xn(m / d, i)) && Math.abs(c - m / d) > 1e-3 && it.forEach(function(C) {
|
|
1687
|
+
u[C] || (s[C] = 0);
|
|
1688
|
+
}), Jn({ event: new pi({ 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: r });
|
|
1689
|
+
} }, moveAlgorithm: { type: Function, default: Jn }, initStretcher: { type: Function, default: function(e) {
|
|
1690
1690
|
var t = e.stretcher, n = e.imageSize, i = ue(n);
|
|
1691
1691
|
t.style.width = n.width + "px", t.style.height = t.clientWidth / i + "px", t.style.width = t.clientWidth + "px";
|
|
1692
1692
|
} }, fitCoordinates: { type: Function, default: function(e) {
|
|
@@ -1695,7 +1695,7 @@ var is = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1695
1695
|
} }, fitVisibleArea: { type: Function, default: function(e) {
|
|
1696
1696
|
var t = e.visibleArea, n = e.boundaries, i = e.getAreaRestrictions, r = e.coordinates, o = te({}, t);
|
|
1697
1697
|
o.height = o.width / ue(n), o.top += (t.height - o.height) / 2, (r.height - o.height > 0 || r.width - o.width > 0) && (o = Xe(o, Math.max(r.height / o.height, r.width / o.width)));
|
|
1698
|
-
var a =
|
|
1698
|
+
var a = Cn(jt(r, rt(o = Xe(o, Rn(o, i({ visibleArea: o, type: "resize" }))))));
|
|
1699
1699
|
return o.width < r.width && (a.left = 0), o.height < r.height && (a.top = 0), o = Ue(o = We(o, a), i({ visibleArea: o, type: "move" }));
|
|
1700
1700
|
} }, areaRestrictionsAlgorithm: { type: Function, default: function(e) {
|
|
1701
1701
|
var t = e.visibleArea, n = e.boundaries, i = e.imageSize, r = e.imageRestriction, o = e.type, a = {};
|
|
@@ -1733,10 +1733,10 @@ var is = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1733
1733
|
if (e = function(i) {
|
|
1734
1734
|
var r = i.areaRestrictions, o = i.sizeRestrictions, a = i.boundaries, l = i.positionRestrictions, s = te(te({}, o), { minWidth: o.minWidth !== void 0 ? o.minWidth : 0, minHeight: o.minHeight !== void 0 ? o.minHeight : 0, maxWidth: o.maxWidth !== void 0 ? o.maxWidth : 1 / 0, maxHeight: o.maxHeight !== void 0 ? o.maxHeight : 1 / 0 });
|
|
1735
1735
|
l.left !== void 0 && l.right !== void 0 && (s.maxWidth = Math.min(s.maxWidth, l.right - l.left)), l.bottom !== void 0 && l.top !== void 0 && (s.maxHeight = Math.min(s.maxHeight, l.bottom - l.top));
|
|
1736
|
-
var u =
|
|
1736
|
+
var u = Zn(r), m = Po(a, u);
|
|
1737
1737
|
return u.width < 1 / 0 && (!s.maxWidth || s.maxWidth > m.width) && (s.maxWidth = Math.min(s.maxWidth, m.width)), u.height < 1 / 0 && (!s.maxHeight || s.maxHeight > m.height) && (s.maxHeight = Math.min(s.maxHeight, m.height)), s.minWidth > s.maxWidth && (s.minWidth = s.maxWidth, s.widthFrozen = !0), s.minHeight > s.maxHeight && (s.minHeight = s.maxHeight, s.heightFrozen = !0), s;
|
|
1738
1738
|
}({ sizeRestrictions: e, areaRestrictions: this.getAreaRestrictions({ visibleArea: this.visibleArea, type: "resize" }), imageSize: this.imageSize, boundaries: this.boundaries, positionRestrictions: this.positionRestrictions, imageRestriction: this.imageRestriction, visibleArea: this.visibleArea, stencilSize: this.getStencilSize() }), this.visibleArea && this.stencilSize) {
|
|
1739
|
-
var t = this.getStencilSize(), n =
|
|
1739
|
+
var t = this.getStencilSize(), n = Zn(this.getAreaRestrictions({ visibleArea: this.visibleArea, type: "resize" }));
|
|
1740
1740
|
e.maxWidth = Math.min(e.maxWidth, n.width * t.width / this.boundaries.width), e.maxHeight = Math.min(e.maxHeight, n.height * t.height / this.boundaries.height), e.maxWidth < e.minWidth && (e.minWidth = e.maxWidth), e.maxHeight < e.minHeight && (e.minHeight = e.maxHeight);
|
|
1741
1741
|
}
|
|
1742
1742
|
return e;
|
|
@@ -1796,10 +1796,10 @@ var is = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1796
1796
|
return { image: this.image, coordinates: e, visibleArea: this.visibleArea ? le({}, this.visibleArea) : null, canvas: void 0, imageTransforms: t };
|
|
1797
1797
|
}, zoom: function(e, t) {
|
|
1798
1798
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.transitions, r = i === void 0 || i;
|
|
1799
|
-
this.onManipulateImage(new
|
|
1799
|
+
this.onManipulateImage(new Jt({}, { factor: 1 / e, center: t }), { normalize: !1, transitions: r });
|
|
1800
1800
|
}, move: function(e, t) {
|
|
1801
1801
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.transitions, r = i === void 0 || i;
|
|
1802
|
-
this.onManipulateImage(new
|
|
1802
|
+
this.onManipulateImage(new Jt({ left: e || 0, top: t || 0 }), { normalize: !1, transitions: r });
|
|
1803
1803
|
}, setCoordinates: function(e) {
|
|
1804
1804
|
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = n.autoZoom, r = i === void 0 || i, o = n.transitions, a = o === void 0 || o;
|
|
1805
1805
|
this.$nextTick(function() {
|
|
@@ -1833,7 +1833,7 @@ var is = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
1833
1833
|
var o = r({ event: { type: e, params: i }, visibleArea: t, coordinates: n, boundaries: this.boundaries, aspectRatio: this.getAspectRatio(), positionRestrictions: this.positionRestrictions, getAreaRestrictions: this.getAreaRestrictions, sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize() });
|
|
1834
1834
|
return le(le({}, o), {}, { changed: !Li(o.visibleArea, t) || !Li(o.coordinates, n) });
|
|
1835
1835
|
}, runAutoZoom: function(e) {
|
|
1836
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, i = n !== void 0 && n, r =
|
|
1836
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, i = n !== void 0 && n, r = Ca(t, is), o = this.processAutoZoom(e, this.visibleArea, this.coordinates, r), a = o.visibleArea, l = o.coordinates, s = o.changed;
|
|
1837
1837
|
i && s && this.enableTransitions(), this.visibleArea = a, this.coordinates = l, i && s && this.debouncedDisableTransitions();
|
|
1838
1838
|
}, normalizeEvent: function(e) {
|
|
1839
1839
|
return function(t) {
|
|
@@ -2077,9 +2077,9 @@ var is = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
|
|
|
2077
2077
|
}
|
|
2078
2078
|
} }, emits: ["change", "error", "ready"] }, os = { key: 0, ref: "canvas", style: { display: "none" } }, rs = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
|
|
2079
2079
|
Wo.render = function(e, t, n, i, r, o) {
|
|
2080
|
-
return F(),
|
|
2081
|
-
return [
|
|
2082
|
-
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2),
|
|
2080
|
+
return F(), Z("div", { ref: "cropper", class: o.classes.cropper }, [R("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), R("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(F(), Z(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() {
|
|
2081
|
+
return [R("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), R("div", { class: o.classes.imageWrapper }, [R("img", { ref: "image", crossorigin: r.imageAttributes.crossOrigin, src: r.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: t[1] || (t[1] = An(function() {
|
|
2082
|
+
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), R("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), Nt((F(), Z(yn(n.stencilComponent), go({ ref: "stencil", image: o.image, coordinates: r.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, r.imageLoaded]]), n.canvas ? (F(), Z("canvas", os, null, 512)) : ae("", !0), n.canvas ? (F(), Z("canvas", rs, null, 512)) : ae("", !0)];
|
|
2083
2083
|
}), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
|
|
2084
2084
|
};
|
|
2085
2085
|
function as(e, t) {
|
|
@@ -2103,15 +2103,15 @@ const ls = {
|
|
|
2103
2103
|
key: 0,
|
|
2104
2104
|
class: "space-y-4"
|
|
2105
2105
|
}, us = { class: "fm-typo-en-body-lg-600" }, cs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ds = {
|
|
2106
|
-
class: /* @__PURE__ */
|
|
2106
|
+
class: /* @__PURE__ */ Je([
|
|
2107
2107
|
"relative",
|
|
2108
2108
|
"h-[150px] w-[200px]",
|
|
2109
2109
|
"border-2 border-dashed border-fm-color-neutral-gray-300 rounded-md"
|
|
2110
2110
|
])
|
|
2111
2111
|
}, ms = {
|
|
2112
|
-
class: /* @__PURE__ */
|
|
2112
|
+
class: /* @__PURE__ */ Je(["absolute inset-0", "h-full w-full", "rounded-md overflow-hidden"])
|
|
2113
2113
|
}, ps = {
|
|
2114
|
-
class: /* @__PURE__ */
|
|
2114
|
+
class: /* @__PURE__ */ Je(["relative z-0", "w-full h-full", "overflow-hidden"])
|
|
2115
2115
|
}, fs = { class: "fm-typo-en-body-lg-600 pb-4" }, hs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, gs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vs = /* @__PURE__ */ fe({
|
|
2116
2116
|
__name: "ImageDropField",
|
|
2117
2117
|
props: {
|
|
@@ -2155,7 +2155,7 @@ const ls = {
|
|
|
2155
2155
|
$("div", ds, [
|
|
2156
2156
|
$("div", ms, [
|
|
2157
2157
|
$("div", ps, [
|
|
2158
|
-
|
|
2158
|
+
R(b(Wo), {
|
|
2159
2159
|
class: "cropper h-[150px] w-[200px]",
|
|
2160
2160
|
src: a.value || o.value,
|
|
2161
2161
|
"stencil-props": {
|
|
@@ -2172,7 +2172,7 @@ const ls = {
|
|
|
2172
2172
|
}, null, 8, ["src"])
|
|
2173
2173
|
]),
|
|
2174
2174
|
$("button", {
|
|
2175
|
-
class:
|
|
2175
|
+
class: Je([
|
|
2176
2176
|
"absolute top-12 right-12 z-10",
|
|
2177
2177
|
"w-24 h-24 rounded-[50%]",
|
|
2178
2178
|
"bg-fm-color-neutral-white"
|
|
@@ -2180,11 +2180,11 @@ const ls = {
|
|
|
2180
2180
|
type: "button",
|
|
2181
2181
|
onClick: d
|
|
2182
2182
|
}, [
|
|
2183
|
-
|
|
2183
|
+
R(w, { name: "close" })
|
|
2184
2184
|
])
|
|
2185
2185
|
])
|
|
2186
2186
|
])
|
|
2187
|
-
])) : (F(),
|
|
2187
|
+
])) : (F(), Z(y, {
|
|
2188
2188
|
key: 1,
|
|
2189
2189
|
accept: ".jpg, .jpeg, .png, .gif",
|
|
2190
2190
|
"content-class": "h-[150px] w-[200px]",
|
|
@@ -2248,15 +2248,15 @@ const ls = {
|
|
|
2248
2248
|
const n = e, { t: i } = Ee(), r = t, o = U(() => ({
|
|
2249
2249
|
ALL: {
|
|
2250
2250
|
label: i("menu.order.from.options.all"),
|
|
2251
|
-
value:
|
|
2251
|
+
value: J.F_ORDER_FROM.enum.ALL
|
|
2252
2252
|
},
|
|
2253
2253
|
POS_ONLY: {
|
|
2254
2254
|
label: i("menu.order.from.options.pos_only"),
|
|
2255
|
-
value:
|
|
2255
|
+
value: J.F_ORDER_FROM.enum.POS_ONLY
|
|
2256
2256
|
},
|
|
2257
2257
|
NONE: {
|
|
2258
2258
|
label: i("menu.order.from.options.none"),
|
|
2259
|
-
value:
|
|
2259
|
+
value: J.F_ORDER_FROM.enum.NONE
|
|
2260
2260
|
}
|
|
2261
2261
|
})), a = U(() => {
|
|
2262
2262
|
const u = Object.values(o.value);
|
|
@@ -2268,11 +2268,11 @@ const ls = {
|
|
|
2268
2268
|
value: null
|
|
2269
2269
|
},
|
|
2270
2270
|
...m
|
|
2271
|
-
]), n.orderFromNone ? m : m.filter((d) => d.value !==
|
|
2271
|
+
]), n.orderFromNone ? m : m.filter((d) => d.value !== J.F_ORDER_FROM.enum.NONE);
|
|
2272
2272
|
});
|
|
2273
2273
|
function l(u) {
|
|
2274
2274
|
let m = u;
|
|
2275
|
-
return n.editActiveOnly && u && (m = m ===
|
|
2275
|
+
return n.editActiveOnly && u && (m = m === J.F_ORDER_FROM.enum.NONE ? J.F_ORDER_FROM.enum.NONE : J.F_ORDER_FROM.enum.ALL), m;
|
|
2276
2276
|
}
|
|
2277
2277
|
const s = U(() => {
|
|
2278
2278
|
if (n.modelValue) return n.modelValue;
|
|
@@ -2282,7 +2282,7 @@ const ls = {
|
|
|
2282
2282
|
return (u, m) => {
|
|
2283
2283
|
const d = j("fm-select");
|
|
2284
2284
|
return F(), re("div", null, [
|
|
2285
|
-
|
|
2285
|
+
R(d, {
|
|
2286
2286
|
disabled: e.disable,
|
|
2287
2287
|
items: a.value,
|
|
2288
2288
|
label: e.label ?? b(i)("menu.common.labels.order_from"),
|
|
@@ -2345,12 +2345,12 @@ const Ss = { render: Es }, Ho = /* @__PURE__ */ fe({
|
|
|
2345
2345
|
var i;
|
|
2346
2346
|
return (i = b(Ge)) != null && i.enable.value ? (F(), re("button", {
|
|
2347
2347
|
key: 0,
|
|
2348
|
-
class:
|
|
2348
|
+
class: Je([!t.pureStyling && "bg-fm-color-neutral-gray-100 rounded-lg p-[6px]"]),
|
|
2349
2349
|
type: "button",
|
|
2350
2350
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
2351
2351
|
(...r) => t.onClick && t.onClick(...r))
|
|
2352
2352
|
}, [
|
|
2353
|
-
b(Ge).isDialogOpened.value ? (F(),
|
|
2353
|
+
b(Ge).isDialogOpened.value ? (F(), Z(b(ys), { key: 1 })) : (F(), Z(b(Ss), { key: 0 }))
|
|
2354
2354
|
], 2)) : ae("", !0);
|
|
2355
2355
|
};
|
|
2356
2356
|
}
|
|
@@ -2378,11 +2378,11 @@ const Ss = { render: Es }, Ho = /* @__PURE__ */ fe({
|
|
|
2378
2378
|
}
|
|
2379
2379
|
), (a, l) => {
|
|
2380
2380
|
const s = j("fm-text-field"), u = j("FmForm");
|
|
2381
|
-
return F(),
|
|
2381
|
+
return F(), Z(u, {
|
|
2382
2382
|
onValidationSuccess: l[1] || (l[1] = (m) => b(o)("primary"))
|
|
2383
2383
|
}, {
|
|
2384
2384
|
default: W(() => [
|
|
2385
|
-
|
|
2385
|
+
R(s, {
|
|
2386
2386
|
modelValue: i.value,
|
|
2387
2387
|
"onUpdate:modelValue": l[0] || (l[0] = (m) => i.value = m),
|
|
2388
2388
|
rules: [(m) => !!m || b(n)("menu.category.dialog.add.name.required")],
|
|
@@ -2419,11 +2419,11 @@ const Ss = { render: Es }, Ho = /* @__PURE__ */ fe({
|
|
|
2419
2419
|
try {
|
|
2420
2420
|
s.value = !0, await l(
|
|
2421
2421
|
{
|
|
2422
|
-
module:
|
|
2422
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.category,
|
|
2423
2423
|
operation: Oe.F_OPERATION_TYPE.create,
|
|
2424
2424
|
data: {
|
|
2425
2425
|
name: u,
|
|
2426
|
-
position:
|
|
2426
|
+
position: Ce().categories.length
|
|
2427
2427
|
}
|
|
2428
2428
|
},
|
|
2429
2429
|
u
|
|
@@ -2452,7 +2452,7 @@ const Ss = { render: Es }, Ho = /* @__PURE__ */ fe({
|
|
|
2452
2452
|
}).onPrimary(async (u) => {
|
|
2453
2453
|
u && (await s(
|
|
2454
2454
|
{
|
|
2455
|
-
module:
|
|
2455
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.category,
|
|
2456
2456
|
operation: Oe.F_OPERATION_TYPE.update,
|
|
2457
2457
|
data: { ...l, name: u ?? l.name }
|
|
2458
2458
|
},
|
|
@@ -2476,7 +2476,7 @@ const Ss = { render: Es }, Ho = /* @__PURE__ */ fe({
|
|
|
2476
2476
|
}).onPrimary(async () => {
|
|
2477
2477
|
await s(
|
|
2478
2478
|
{
|
|
2479
|
-
module:
|
|
2479
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.category,
|
|
2480
2480
|
operation: Oe.F_OPERATION_TYPE.delete,
|
|
2481
2481
|
data: l._id
|
|
2482
2482
|
},
|
|
@@ -2488,7 +2488,7 @@ const Ss = { render: Es }, Ho = /* @__PURE__ */ fe({
|
|
|
2488
2488
|
async function a(l) {
|
|
2489
2489
|
await t.updateMenu(
|
|
2490
2490
|
{
|
|
2491
|
-
module:
|
|
2491
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.category,
|
|
2492
2492
|
operation: Oe.F_OPERATION_TYPE.rearrange,
|
|
2493
2493
|
data: l
|
|
2494
2494
|
},
|
|
@@ -2510,14 +2510,14 @@ function jo(e, t) {
|
|
|
2510
2510
|
* (c) 2024 kazuya kawaguchi
|
|
2511
2511
|
* Released under the MIT License.
|
|
2512
2512
|
*/
|
|
2513
|
-
const $i = typeof window < "u", Ft = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), As = (e, t, n) => Os({ l: e, k: t, s: n }), Os = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Pe = (e) => typeof e == "number" && isFinite(e),
|
|
2513
|
+
const $i = typeof window < "u", Ft = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), As = (e, t, n) => Os({ l: e, k: t, s: n }), Os = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Pe = (e) => typeof e == "number" && isFinite(e), Cs = (e) => _i(e) === "[object Date]", En = (e) => _i(e) === "[object RegExp]", In = (e) => de(e) && Object.keys(e).length === 0, Le = Object.assign, Rs = Object.create, ve = (e = null) => Rs(e);
|
|
2514
2514
|
let Bi;
|
|
2515
2515
|
const Mt = () => Bi || (Bi = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ve());
|
|
2516
2516
|
function Gi(e) {
|
|
2517
2517
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
2518
2518
|
}
|
|
2519
2519
|
const Ts = Object.prototype.hasOwnProperty;
|
|
2520
|
-
function
|
|
2520
|
+
function Ze(e, t) {
|
|
2521
2521
|
return Ts.call(e, t);
|
|
2522
2522
|
}
|
|
2523
2523
|
const Ie = Array.isArray, Se = (e) => typeof e == "function", ee = (e) => typeof e == "string", Ae = (e) => typeof e == "boolean", me = (e) => e !== null && typeof e == "object", Is = (e) => me(e) && Se(e.then) && Se(e.catch), Ko = Object.prototype.toString, _i = (e) => Ko.call(e), de = (e) => _i(e) === "[object Object]", Ms = (e) => e == null ? "" : Ie(e) || de(e) && e.toString === Ko ? JSON.stringify(e, null, 2) : String(e);
|
|
@@ -2582,7 +2582,7 @@ function Vs(e) {
|
|
|
2582
2582
|
function A() {
|
|
2583
2583
|
return a(n + o) && o++, o++, t[n + o];
|
|
2584
2584
|
}
|
|
2585
|
-
function
|
|
2585
|
+
function C() {
|
|
2586
2586
|
n = 0, i = 1, r = 1, o = 0;
|
|
2587
2587
|
}
|
|
2588
2588
|
function D(E = 0) {
|
|
@@ -2604,7 +2604,7 @@ function Vs(e) {
|
|
|
2604
2604
|
currentPeek: f,
|
|
2605
2605
|
next: v,
|
|
2606
2606
|
peek: A,
|
|
2607
|
-
reset:
|
|
2607
|
+
reset: C,
|
|
2608
2608
|
resetPeek: D,
|
|
2609
2609
|
skipToPeek: I
|
|
2610
2610
|
};
|
|
@@ -2679,7 +2679,7 @@ function Bs(e, t = {}) {
|
|
|
2679
2679
|
const Y = f(h.currentPeek());
|
|
2680
2680
|
return h.resetPeek(), Y;
|
|
2681
2681
|
}
|
|
2682
|
-
function
|
|
2682
|
+
function C(h, g) {
|
|
2683
2683
|
const { currentType: P } = g;
|
|
2684
2684
|
if (P !== 2)
|
|
2685
2685
|
return !1;
|
|
@@ -2918,7 +2918,7 @@ function Bs(e, t = {}) {
|
|
|
2918
2918
|
return d(he.UNTERMINATED_CLOSING_BRACE, o(), 0), g.braceNest = 0, St(h, g);
|
|
2919
2919
|
if (X = A(h, g))
|
|
2920
2920
|
return P = c(g, 4, K(h)), k(h), P;
|
|
2921
|
-
if (se =
|
|
2921
|
+
if (se = C(h, g))
|
|
2922
2922
|
return P = c(g, 5, ne(h)), k(h), P;
|
|
2923
2923
|
if (N = D(h, g))
|
|
2924
2924
|
return P = c(g, 6, oe(h)), k(h), P;
|
|
@@ -3021,9 +3021,9 @@ function Hs(e, t, n) {
|
|
|
3021
3021
|
}
|
|
3022
3022
|
function js(e = {}) {
|
|
3023
3023
|
const t = e.location !== !1, { onError: n } = e;
|
|
3024
|
-
function i(f, v, A,
|
|
3024
|
+
function i(f, v, A, C, ...D) {
|
|
3025
3025
|
const I = f.currentPosition();
|
|
3026
|
-
if (I.offset +=
|
|
3026
|
+
if (I.offset += C, I.column += C, n) {
|
|
3027
3027
|
const E = t ? ei(A, I) : null, L = Mn(v, E, {
|
|
3028
3028
|
domain: Gs,
|
|
3029
3029
|
args: D
|
|
@@ -3032,31 +3032,31 @@ function js(e = {}) {
|
|
|
3032
3032
|
}
|
|
3033
3033
|
}
|
|
3034
3034
|
function r(f, v, A) {
|
|
3035
|
-
const
|
|
3036
|
-
return t && (
|
|
3035
|
+
const C = { type: f };
|
|
3036
|
+
return t && (C.start = v, C.end = v, C.loc = { start: A, end: A }), C;
|
|
3037
3037
|
}
|
|
3038
|
-
function o(f, v, A,
|
|
3038
|
+
function o(f, v, A, C) {
|
|
3039
3039
|
t && (f.end = v, f.loc && (f.loc.end = A));
|
|
3040
3040
|
}
|
|
3041
3041
|
function a(f, v) {
|
|
3042
|
-
const A = f.context(),
|
|
3043
|
-
return
|
|
3042
|
+
const A = f.context(), C = r(3, A.offset, A.startLoc);
|
|
3043
|
+
return C.value = v, o(C, f.currentOffset(), f.currentPosition()), C;
|
|
3044
3044
|
}
|
|
3045
3045
|
function l(f, v) {
|
|
3046
|
-
const A = f.context(), { lastOffset:
|
|
3046
|
+
const A = f.context(), { lastOffset: C, lastStartLoc: D } = A, I = r(5, C, D);
|
|
3047
3047
|
return I.index = parseInt(v, 10), f.nextToken(), o(I, f.currentOffset(), f.currentPosition()), I;
|
|
3048
3048
|
}
|
|
3049
3049
|
function s(f, v) {
|
|
3050
|
-
const A = f.context(), { lastOffset:
|
|
3050
|
+
const A = f.context(), { lastOffset: C, lastStartLoc: D } = A, I = r(4, C, D);
|
|
3051
3051
|
return I.key = v, f.nextToken(), o(I, f.currentOffset(), f.currentPosition()), I;
|
|
3052
3052
|
}
|
|
3053
3053
|
function u(f, v) {
|
|
3054
|
-
const A = f.context(), { lastOffset:
|
|
3054
|
+
const A = f.context(), { lastOffset: C, lastStartLoc: D } = A, I = r(9, C, D);
|
|
3055
3055
|
return I.value = v.replace(Ws, Hs), f.nextToken(), o(I, f.currentOffset(), f.currentPosition()), I;
|
|
3056
3056
|
}
|
|
3057
3057
|
function m(f) {
|
|
3058
|
-
const v = f.nextToken(), A = f.context(), { lastOffset:
|
|
3059
|
-
return v.type !== 11 ? (i(f, he.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0), I.value = "", o(I,
|
|
3058
|
+
const v = f.nextToken(), A = f.context(), { lastOffset: C, lastStartLoc: D } = A, I = r(8, C, D);
|
|
3059
|
+
return v.type !== 11 ? (i(f, he.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0), I.value = "", o(I, C, D), {
|
|
3060
3060
|
nextConsumeToken: v,
|
|
3061
3061
|
node: I
|
|
3062
3062
|
}) : (v.value == null && i(f, he.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, tt(v)), I.value = v.value || "", o(I, f.currentOffset(), f.currentPosition()), {
|
|
@@ -3064,34 +3064,34 @@ function js(e = {}) {
|
|
|
3064
3064
|
});
|
|
3065
3065
|
}
|
|
3066
3066
|
function d(f, v) {
|
|
3067
|
-
const A = f.context(),
|
|
3068
|
-
return
|
|
3067
|
+
const A = f.context(), C = r(7, A.offset, A.startLoc);
|
|
3068
|
+
return C.value = v, o(C, f.currentOffset(), f.currentPosition()), C;
|
|
3069
3069
|
}
|
|
3070
3070
|
function c(f) {
|
|
3071
3071
|
const v = f.context(), A = r(6, v.offset, v.startLoc);
|
|
3072
|
-
let
|
|
3073
|
-
if (
|
|
3072
|
+
let C = f.nextToken();
|
|
3073
|
+
if (C.type === 8) {
|
|
3074
3074
|
const D = m(f);
|
|
3075
|
-
A.modifier = D.node,
|
|
3075
|
+
A.modifier = D.node, C = D.nextConsumeToken || f.nextToken();
|
|
3076
3076
|
}
|
|
3077
|
-
switch (
|
|
3077
|
+
switch (C.type !== 9 && i(f, he.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(C)), C = f.nextToken(), C.type === 2 && (C = f.nextToken()), C.type) {
|
|
3078
3078
|
case 10:
|
|
3079
|
-
|
|
3079
|
+
C.value == null && i(f, he.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(C)), A.key = d(f, C.value || "");
|
|
3080
3080
|
break;
|
|
3081
3081
|
case 4:
|
|
3082
|
-
|
|
3082
|
+
C.value == null && i(f, he.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(C)), A.key = s(f, C.value || "");
|
|
3083
3083
|
break;
|
|
3084
3084
|
case 5:
|
|
3085
|
-
|
|
3085
|
+
C.value == null && i(f, he.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(C)), A.key = l(f, C.value || "");
|
|
3086
3086
|
break;
|
|
3087
3087
|
case 6:
|
|
3088
|
-
|
|
3088
|
+
C.value == null && i(f, he.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(C)), A.key = u(f, C.value || "");
|
|
3089
3089
|
break;
|
|
3090
3090
|
default: {
|
|
3091
3091
|
i(f, he.UNEXPECTED_EMPTY_LINKED_KEY, v.lastStartLoc, 0);
|
|
3092
3092
|
const D = f.context(), I = r(7, D.offset, D.startLoc);
|
|
3093
3093
|
return I.value = "", o(I, D.offset, D.startLoc), A.key = I, o(A, D.offset, D.startLoc), {
|
|
3094
|
-
nextConsumeToken:
|
|
3094
|
+
nextConsumeToken: C,
|
|
3095
3095
|
node: A
|
|
3096
3096
|
};
|
|
3097
3097
|
}
|
|
@@ -3101,7 +3101,7 @@ function js(e = {}) {
|
|
|
3101
3101
|
};
|
|
3102
3102
|
}
|
|
3103
3103
|
function p(f) {
|
|
3104
|
-
const v = f.context(), A = v.currentType === 1 ? f.currentOffset() : v.offset,
|
|
3104
|
+
const v = f.context(), A = v.currentType === 1 ? f.currentOffset() : v.offset, C = v.currentType === 1 ? v.endLoc : v.startLoc, D = r(2, A, C);
|
|
3105
3105
|
D.items = [];
|
|
3106
3106
|
let I = null;
|
|
3107
3107
|
do {
|
|
@@ -3129,11 +3129,11 @@ function js(e = {}) {
|
|
|
3129
3129
|
const E = v.currentType === 1 ? v.lastOffset : f.currentOffset(), L = v.currentType === 1 ? v.lastEndLoc : f.currentPosition();
|
|
3130
3130
|
return o(D, E, L), D;
|
|
3131
3131
|
}
|
|
3132
|
-
function w(f, v, A,
|
|
3132
|
+
function w(f, v, A, C) {
|
|
3133
3133
|
const D = f.context();
|
|
3134
|
-
let I =
|
|
3134
|
+
let I = C.items.length === 0;
|
|
3135
3135
|
const E = r(1, v, A);
|
|
3136
|
-
E.cases = [], E.cases.push(
|
|
3136
|
+
E.cases = [], E.cases.push(C);
|
|
3137
3137
|
do {
|
|
3138
3138
|
const L = p(f);
|
|
3139
3139
|
I || (I = L.items.length === 0), E.cases.push(L);
|
|
@@ -3141,12 +3141,12 @@ function js(e = {}) {
|
|
|
3141
3141
|
return I && i(f, he.MUST_HAVE_MESSAGES_IN_PLURAL, A, 0), o(E, f.currentOffset(), f.currentPosition()), E;
|
|
3142
3142
|
}
|
|
3143
3143
|
function y(f) {
|
|
3144
|
-
const v = f.context(), { offset: A, startLoc:
|
|
3145
|
-
return v.currentType === 13 ? D : w(f, A,
|
|
3144
|
+
const v = f.context(), { offset: A, startLoc: C } = v, D = p(f);
|
|
3145
|
+
return v.currentType === 13 ? D : w(f, A, C, D);
|
|
3146
3146
|
}
|
|
3147
3147
|
function k(f) {
|
|
3148
|
-
const v = Bs(f, Le({}, e)), A = v.context(),
|
|
3149
|
-
return t &&
|
|
3148
|
+
const v = Bs(f, Le({}, e)), A = v.context(), C = r(0, A.offset, A.startLoc);
|
|
3149
|
+
return t && C.loc && (C.loc.source = f), C.body = y(v), e.onCacheKey && (C.cacheKey = e.onCacheKey(f)), A.currentType !== 13 && i(v, he.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, f[A.offset] || ""), o(C, v.currentOffset(), v.currentPosition()), C;
|
|
3150
3150
|
}
|
|
3151
3151
|
return { parse: k };
|
|
3152
3152
|
}
|
|
@@ -3331,14 +3331,14 @@ function qs(e, t) {
|
|
|
3331
3331
|
needIndent: () => a.needIndent
|
|
3332
3332
|
};
|
|
3333
3333
|
}
|
|
3334
|
-
function
|
|
3334
|
+
function Zs(e, t) {
|
|
3335
3335
|
const { helper: n } = e;
|
|
3336
3336
|
e.push(`${n(
|
|
3337
3337
|
"linked"
|
|
3338
3338
|
/* HelperNameMap.LINKED */
|
|
3339
3339
|
)}(`), Kt(e, t.key), t.modifier ? (e.push(", "), Kt(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
3340
3340
|
}
|
|
3341
|
-
function
|
|
3341
|
+
function Js(e, t) {
|
|
3342
3342
|
const { helper: n, needIndent: i } = e;
|
|
3343
3343
|
e.push(`${n(
|
|
3344
3344
|
"normalize"
|
|
@@ -3375,10 +3375,10 @@ function Kt(e, t) {
|
|
|
3375
3375
|
Qs(e, t);
|
|
3376
3376
|
break;
|
|
3377
3377
|
case 2:
|
|
3378
|
-
|
|
3378
|
+
Js(e, t);
|
|
3379
3379
|
break;
|
|
3380
3380
|
case 6:
|
|
3381
|
-
|
|
3381
|
+
Zs(e, t);
|
|
3382
3382
|
break;
|
|
3383
3383
|
case 8:
|
|
3384
3384
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -3459,11 +3459,11 @@ function rl(e, t) {
|
|
|
3459
3459
|
}
|
|
3460
3460
|
const al = ["b", "body"];
|
|
3461
3461
|
function sl(e) {
|
|
3462
|
-
return
|
|
3462
|
+
return Ct(e, al);
|
|
3463
3463
|
}
|
|
3464
3464
|
const ll = ["c", "cases"];
|
|
3465
3465
|
function ul(e) {
|
|
3466
|
-
return
|
|
3466
|
+
return Ct(e, ll, []);
|
|
3467
3467
|
}
|
|
3468
3468
|
function Ki(e, t) {
|
|
3469
3469
|
const n = dl(t);
|
|
@@ -3476,11 +3476,11 @@ function Ki(e, t) {
|
|
|
3476
3476
|
}
|
|
3477
3477
|
const cl = ["s", "static"];
|
|
3478
3478
|
function dl(e) {
|
|
3479
|
-
return
|
|
3479
|
+
return Ct(e, cl);
|
|
3480
3480
|
}
|
|
3481
3481
|
const ml = ["i", "items"];
|
|
3482
3482
|
function pl(e) {
|
|
3483
|
-
return
|
|
3483
|
+
return Ct(e, ml, []);
|
|
3484
3484
|
}
|
|
3485
3485
|
function ti(e, t) {
|
|
3486
3486
|
const n = wi(t);
|
|
@@ -3491,17 +3491,17 @@ function ti(e, t) {
|
|
|
3491
3491
|
return hn(t, n);
|
|
3492
3492
|
case 4: {
|
|
3493
3493
|
const i = t;
|
|
3494
|
-
if (
|
|
3494
|
+
if (Ze(i, "k") && i.k)
|
|
3495
3495
|
return e.interpolate(e.named(i.k));
|
|
3496
|
-
if (
|
|
3496
|
+
if (Ze(i, "key") && i.key)
|
|
3497
3497
|
return e.interpolate(e.named(i.key));
|
|
3498
3498
|
throw en(n);
|
|
3499
3499
|
}
|
|
3500
3500
|
case 5: {
|
|
3501
3501
|
const i = t;
|
|
3502
|
-
if (
|
|
3502
|
+
if (Ze(i, "i") && Pe(i.i))
|
|
3503
3503
|
return e.interpolate(e.list(i.i));
|
|
3504
|
-
if (
|
|
3504
|
+
if (Ze(i, "index") && Pe(i.index))
|
|
3505
3505
|
return e.interpolate(e.list(i.index));
|
|
3506
3506
|
throw en(n);
|
|
3507
3507
|
}
|
|
@@ -3519,22 +3519,22 @@ function ti(e, t) {
|
|
|
3519
3519
|
}
|
|
3520
3520
|
const fl = ["t", "type"];
|
|
3521
3521
|
function wi(e) {
|
|
3522
|
-
return
|
|
3522
|
+
return Ct(e, fl);
|
|
3523
3523
|
}
|
|
3524
3524
|
const hl = ["v", "value"];
|
|
3525
3525
|
function hn(e, t) {
|
|
3526
|
-
const n =
|
|
3526
|
+
const n = Ct(e, hl);
|
|
3527
3527
|
if (n)
|
|
3528
3528
|
return n;
|
|
3529
3529
|
throw en(t);
|
|
3530
3530
|
}
|
|
3531
3531
|
const gl = ["m", "modifier"];
|
|
3532
3532
|
function vl(e) {
|
|
3533
|
-
return
|
|
3533
|
+
return Ct(e, gl);
|
|
3534
3534
|
}
|
|
3535
3535
|
const _l = ["k", "key"];
|
|
3536
3536
|
function bl(e) {
|
|
3537
|
-
const t =
|
|
3537
|
+
const t = Ct(e, _l);
|
|
3538
3538
|
if (t)
|
|
3539
3539
|
return t;
|
|
3540
3540
|
throw en(
|
|
@@ -3542,10 +3542,10 @@ function bl(e) {
|
|
|
3542
3542
|
/* NodeTypes.Linked */
|
|
3543
3543
|
);
|
|
3544
3544
|
}
|
|
3545
|
-
function
|
|
3545
|
+
function Ct(e, t, n) {
|
|
3546
3546
|
for (let i = 0; i < t.length; i++) {
|
|
3547
3547
|
const r = t[i];
|
|
3548
|
-
if (
|
|
3548
|
+
if (Ze(e, r) && e[r] != null)
|
|
3549
3549
|
return e[r];
|
|
3550
3550
|
}
|
|
3551
3551
|
return n;
|
|
@@ -3556,7 +3556,7 @@ function en(e) {
|
|
|
3556
3556
|
const yl = (e) => e;
|
|
3557
3557
|
let gn = ve();
|
|
3558
3558
|
function Yt(e) {
|
|
3559
|
-
return me(e) && wi(e) === 0 && (
|
|
3559
|
+
return me(e) && wi(e) === 0 && (Ze(e, "b") || Ze(e, "body"));
|
|
3560
3560
|
}
|
|
3561
3561
|
function wl(e, t = {}) {
|
|
3562
3562
|
let n = !1;
|
|
@@ -3611,7 +3611,7 @@ const gt = {
|
|
|
3611
3611
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
3612
3612
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
3613
3613
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
3614
|
-
},
|
|
3614
|
+
}, Cl = 24;
|
|
3615
3615
|
function vt(e) {
|
|
3616
3616
|
return Mn(e, null, void 0);
|
|
3617
3617
|
}
|
|
@@ -3635,7 +3635,7 @@ function Yi(e) {
|
|
|
3635
3635
|
} else
|
|
3636
3636
|
throw vt(gt.NOT_SUPPORT_LOCALE_TYPE);
|
|
3637
3637
|
}
|
|
3638
|
-
function
|
|
3638
|
+
function Rl(e, t, n) {
|
|
3639
3639
|
return [.../* @__PURE__ */ new Set([
|
|
3640
3640
|
n,
|
|
3641
3641
|
...Ie(t) ? t : me(t) ? Object.keys(t) : ee(t) ? [t] : [n]
|
|
@@ -3681,8 +3681,8 @@ function Il(e, t, n) {
|
|
|
3681
3681
|
}
|
|
3682
3682
|
return i;
|
|
3683
3683
|
}
|
|
3684
|
-
const
|
|
3685
|
-
|
|
3684
|
+
const Rt = [];
|
|
3685
|
+
Rt[
|
|
3686
3686
|
0
|
|
3687
3687
|
/* States.BEFORE_PATH */
|
|
3688
3688
|
] = {
|
|
@@ -3704,7 +3704,7 @@ Ct[
|
|
|
3704
3704
|
/* States.AFTER_PATH */
|
|
3705
3705
|
]
|
|
3706
3706
|
};
|
|
3707
|
-
|
|
3707
|
+
Rt[
|
|
3708
3708
|
1
|
|
3709
3709
|
/* States.IN_PATH */
|
|
3710
3710
|
] = {
|
|
@@ -3725,7 +3725,7 @@ Ct[
|
|
|
3725
3725
|
/* States.AFTER_PATH */
|
|
3726
3726
|
]
|
|
3727
3727
|
};
|
|
3728
|
-
|
|
3728
|
+
Rt[
|
|
3729
3729
|
2
|
|
3730
3730
|
/* States.BEFORE_IDENT */
|
|
3731
3731
|
] = {
|
|
@@ -3744,7 +3744,7 @@ Ct[
|
|
|
3744
3744
|
/* Actions.APPEND */
|
|
3745
3745
|
]
|
|
3746
3746
|
};
|
|
3747
|
-
|
|
3747
|
+
Rt[
|
|
3748
3748
|
3
|
|
3749
3749
|
/* States.IN_IDENT */
|
|
3750
3750
|
] = {
|
|
@@ -3779,7 +3779,7 @@ Ct[
|
|
|
3779
3779
|
/* Actions.PUSH */
|
|
3780
3780
|
]
|
|
3781
3781
|
};
|
|
3782
|
-
|
|
3782
|
+
Rt[
|
|
3783
3783
|
4
|
|
3784
3784
|
/* States.IN_SUB_PATH */
|
|
3785
3785
|
] = {
|
|
@@ -3810,7 +3810,7 @@ Ct[
|
|
|
3810
3810
|
/* Actions.APPEND */
|
|
3811
3811
|
]
|
|
3812
3812
|
};
|
|
3813
|
-
|
|
3813
|
+
Rt[
|
|
3814
3814
|
5
|
|
3815
3815
|
/* States.IN_SINGLE_QUOTE */
|
|
3816
3816
|
] = {
|
|
@@ -3826,7 +3826,7 @@ Ct[
|
|
|
3826
3826
|
/* Actions.APPEND */
|
|
3827
3827
|
]
|
|
3828
3828
|
};
|
|
3829
|
-
|
|
3829
|
+
Rt[
|
|
3830
3830
|
6
|
|
3831
3831
|
/* States.IN_DOUBLE_QUOTE */
|
|
3832
3832
|
] = {
|
|
@@ -3941,7 +3941,7 @@ function Fl(e) {
|
|
|
3941
3941
|
}
|
|
3942
3942
|
for (; i !== null; )
|
|
3943
3943
|
if (n++, o = e[n], !(o === "\\" && p())) {
|
|
3944
|
-
if (s = Pl(o), d =
|
|
3944
|
+
if (s = Pl(o), d = Rt[i], u = d[s] || d.l || 8, u === 8 || (i = u[0], u[1] !== void 0 && (m = c[u[1]], m && (l = o, m() === !1))))
|
|
3945
3945
|
return;
|
|
3946
3946
|
if (i === 7)
|
|
3947
3947
|
return t;
|
|
@@ -3967,12 +3967,12 @@ function Ul(e, t) {
|
|
|
3967
3967
|
}
|
|
3968
3968
|
return r;
|
|
3969
3969
|
}
|
|
3970
|
-
const Vl = "10.0.5", Dn = -1, Sn = "en-US",
|
|
3970
|
+
const Vl = "10.0.5", Dn = -1, Sn = "en-US", Zi = "", Ji = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
3971
3971
|
function zl() {
|
|
3972
3972
|
return {
|
|
3973
3973
|
upper: (e, t) => t === "text" && ee(e) ? e.toUpperCase() : t === "vnode" && me(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
3974
3974
|
lower: (e, t) => t === "text" && ee(e) ? e.toLowerCase() : t === "vnode" && me(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
3975
|
-
capitalize: (e, t) => t === "text" && ee(e) ?
|
|
3975
|
+
capitalize: (e, t) => t === "text" && ee(e) ? Ji(e) : t === "vnode" && me(e) && "__v_isVNode" in e ? Ji(e.children) : e
|
|
3976
3976
|
};
|
|
3977
3977
|
}
|
|
3978
3978
|
let Xo;
|
|
@@ -3983,21 +3983,21 @@ let qo;
|
|
|
3983
3983
|
function Bl(e) {
|
|
3984
3984
|
qo = e;
|
|
3985
3985
|
}
|
|
3986
|
-
let
|
|
3986
|
+
let Zo;
|
|
3987
3987
|
function Gl(e) {
|
|
3988
|
-
|
|
3988
|
+
Zo = e;
|
|
3989
3989
|
}
|
|
3990
|
-
let
|
|
3990
|
+
let Jo = null;
|
|
3991
3991
|
const Wl = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
3992
|
-
|
|
3993
|
-
}, Hl = /* @__NO_SIDE_EFFECTS__ */ () =>
|
|
3992
|
+
Jo = e;
|
|
3993
|
+
}, Hl = /* @__NO_SIDE_EFFECTS__ */ () => Jo;
|
|
3994
3994
|
let Qo = null;
|
|
3995
3995
|
const Qi = (e) => {
|
|
3996
3996
|
Qo = e;
|
|
3997
3997
|
}, jl = () => Qo;
|
|
3998
3998
|
let eo = 0;
|
|
3999
3999
|
function Kl(e = {}) {
|
|
4000
|
-
const t = Se(e.onWarn) ? e.onWarn : Ds, n = ee(e.version) ? e.version : Vl, i = ee(e.locale) || Se(e.locale) ? e.locale : Sn, r = Se(i) ? Sn : i, o = Ie(e.fallbackLocale) || de(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, a = de(e.messages) ? e.messages : Gn(r), l = de(e.datetimeFormats) ? e.datetimeFormats : Gn(r), s = de(e.numberFormats) ? e.numberFormats : Gn(r), u = Le(ve(), e.modifiers, zl()), m = e.pluralRules || ve(), d = Se(e.missing) ? e.missing : null, c = Ae(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = Ae(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, y = !!e.unresolving, k = Se(e.postTranslation) ? e.postTranslation : null, f = de(e.processor) ? e.processor : null, v = Ae(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!e.escapeParameter,
|
|
4000
|
+
const t = Se(e.onWarn) ? e.onWarn : Ds, n = ee(e.version) ? e.version : Vl, i = ee(e.locale) || Se(e.locale) ? e.locale : Sn, r = Se(i) ? Sn : i, o = Ie(e.fallbackLocale) || de(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, a = de(e.messages) ? e.messages : Gn(r), l = de(e.datetimeFormats) ? e.datetimeFormats : Gn(r), s = de(e.numberFormats) ? e.numberFormats : Gn(r), u = Le(ve(), e.modifiers, zl()), m = e.pluralRules || ve(), d = Se(e.missing) ? e.missing : null, c = Ae(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = Ae(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, y = !!e.unresolving, k = Se(e.postTranslation) ? e.postTranslation : null, f = de(e.processor) ? e.processor : null, v = Ae(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!e.escapeParameter, C = Se(e.messageCompiler) ? e.messageCompiler : Xo, D = Se(e.messageResolver) ? e.messageResolver : qo || xl, I = Se(e.localeFallbacker) ? e.localeFallbacker : Zo || Rl, E = me(e.fallbackContext) ? e.fallbackContext : void 0, L = e, O = me(L.__datetimeFormatters) ? L.__datetimeFormatters : /* @__PURE__ */ new Map(), M = me(L.__numberFormatters) ? L.__numberFormatters : /* @__PURE__ */ new Map(), T = me(L.__meta) ? L.__meta : {};
|
|
4001
4001
|
eo++;
|
|
4002
4002
|
const _ = {
|
|
4003
4003
|
version: n,
|
|
@@ -4016,7 +4016,7 @@ function Kl(e = {}) {
|
|
|
4016
4016
|
processor: f,
|
|
4017
4017
|
warnHtmlMessage: v,
|
|
4018
4018
|
escapeParameter: A,
|
|
4019
|
-
messageCompiler:
|
|
4019
|
+
messageCompiler: C,
|
|
4020
4020
|
messageResolver: D,
|
|
4021
4021
|
localeFallbacker: I,
|
|
4022
4022
|
fallbackContext: E,
|
|
@@ -4034,7 +4034,7 @@ function Si(e, t, n, i, r) {
|
|
|
4034
4034
|
} else
|
|
4035
4035
|
return t;
|
|
4036
4036
|
}
|
|
4037
|
-
function
|
|
4037
|
+
function Zt(e, t, n) {
|
|
4038
4038
|
const i = e;
|
|
4039
4039
|
i.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
4040
4040
|
}
|
|
@@ -4067,10 +4067,10 @@ function to(e, ...t) {
|
|
|
4067
4067
|
Si(e, s, f, c, A);
|
|
4068
4068
|
if (!de(v) || !ee(f))
|
|
4069
4069
|
return i ? Dn : s;
|
|
4070
|
-
let
|
|
4071
|
-
In(d) || (
|
|
4072
|
-
let D = l.get(
|
|
4073
|
-
return D || (D = new Intl.DateTimeFormat(f, Le({}, v, d)), l.set(
|
|
4070
|
+
let C = `${f}__${s}`;
|
|
4071
|
+
In(d) || (C = `${C}__${JSON.stringify(d)}`);
|
|
4072
|
+
let D = l.get(C);
|
|
4073
|
+
return D || (D = new Intl.DateTimeFormat(f, Le({}, v, d)), l.set(C, D)), p ? D.formatToParts(u) : D.format(u);
|
|
4074
4074
|
}
|
|
4075
4075
|
const er = [
|
|
4076
4076
|
"localeMatcher",
|
|
@@ -4108,7 +4108,7 @@ function ni(...e) {
|
|
|
4108
4108
|
} catch {
|
|
4109
4109
|
throw vt(gt.INVALID_ISO_DATE_ARGUMENT);
|
|
4110
4110
|
}
|
|
4111
|
-
} else if (
|
|
4111
|
+
} else if (Cs(t)) {
|
|
4112
4112
|
if (isNaN(t.getTime()))
|
|
4113
4113
|
throw vt(gt.INVALID_DATE_ARGUMENT);
|
|
4114
4114
|
l = t;
|
|
@@ -4144,10 +4144,10 @@ function io(e, ...t) {
|
|
|
4144
4144
|
Si(e, s, f, c, A);
|
|
4145
4145
|
if (!de(v) || !ee(f))
|
|
4146
4146
|
return i ? Dn : s;
|
|
4147
|
-
let
|
|
4148
|
-
In(d) || (
|
|
4149
|
-
let D = l.get(
|
|
4150
|
-
return D || (D = new Intl.NumberFormat(f, Le({}, v, d)), l.set(
|
|
4147
|
+
let C = `${f}__${s}`;
|
|
4148
|
+
In(d) || (C = `${C}__${JSON.stringify(d)}`);
|
|
4149
|
+
let D = l.get(C);
|
|
4150
|
+
return D || (D = new Intl.NumberFormat(f, Le({}, v, d)), l.set(C, D)), p ? D.formatToParts(u) : D.format(u);
|
|
4151
4151
|
}
|
|
4152
4152
|
const tr = [
|
|
4153
4153
|
"localeMatcher",
|
|
@@ -4188,7 +4188,7 @@ function oo(e, t, n) {
|
|
|
4188
4188
|
i.__numberFormatters.has(o) && i.__numberFormatters.delete(o);
|
|
4189
4189
|
}
|
|
4190
4190
|
}
|
|
4191
|
-
const ql = (e) => e,
|
|
4191
|
+
const ql = (e) => e, Zl = (e) => "", Jl = "text", Ql = (e) => e.length === 0 ? "" : bi(e), eu = Ms;
|
|
4192
4192
|
function ro(e, t) {
|
|
4193
4193
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
4194
4194
|
}
|
|
@@ -4205,16 +4205,16 @@ function iu(e = {}) {
|
|
|
4205
4205
|
const u = (f) => s[f];
|
|
4206
4206
|
function m(f, v) {
|
|
4207
4207
|
const A = Se(e.messages) ? e.messages(f, !!v) : me(e.messages) ? e.messages[f] : !1;
|
|
4208
|
-
return A || (e.parent ? e.parent.message(f) :
|
|
4208
|
+
return A || (e.parent ? e.parent.message(f) : Zl);
|
|
4209
4209
|
}
|
|
4210
|
-
const d = (f) => e.modifiers ? e.modifiers[f] : ql, c = de(e.processor) && Se(e.processor.normalize) ? e.processor.normalize : Ql, p = de(e.processor) && Se(e.processor.interpolate) ? e.processor.interpolate : eu, w = de(e.processor) && ee(e.processor.type) ? e.processor.type :
|
|
4210
|
+
const d = (f) => e.modifiers ? e.modifiers[f] : ql, c = de(e.processor) && Se(e.processor.normalize) ? e.processor.normalize : Ql, p = de(e.processor) && Se(e.processor.interpolate) ? e.processor.interpolate : eu, w = de(e.processor) && ee(e.processor.type) ? e.processor.type : Jl, k = {
|
|
4211
4211
|
list: l,
|
|
4212
4212
|
named: u,
|
|
4213
4213
|
plural: o,
|
|
4214
4214
|
linked: (f, ...v) => {
|
|
4215
|
-
const [A,
|
|
4215
|
+
const [A, C] = v;
|
|
4216
4216
|
let D = "text", I = "";
|
|
4217
|
-
v.length === 1 ? me(A) ? (I = A.modifier || I, D = A.type || D) : ee(A) && (I = A || I) : v.length === 2 && (ee(A) && (I = A || I), ee(
|
|
4217
|
+
v.length === 1 ? me(A) ? (I = A.modifier || I, D = A.type || D) : ee(A) && (I = A || I) : v.length === 2 && (ee(A) && (I = A || I), ee(C) && (D = C || D));
|
|
4218
4218
|
const E = m(f, !0)(k), L = (
|
|
4219
4219
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
4220
4220
|
D === "vnode" && Ie(E) && I ? E[0] : E
|
|
@@ -4237,22 +4237,22 @@ function so(e, ...t) {
|
|
|
4237
4237
|
s,
|
|
4238
4238
|
k,
|
|
4239
4239
|
l[k] || ve()
|
|
4240
|
-
] : nr(e, s, k, a, d, m),
|
|
4241
|
-
if (!p && !(ee(
|
|
4240
|
+
] : nr(e, s, k, a, d, m), C = f, D = s;
|
|
4241
|
+
if (!p && !(ee(C) || Yt(C) || Ke(C)) && y && (C = w, D = C), !p && (!(ee(C) || Yt(C) || Ke(C)) || !ee(v)))
|
|
4242
4242
|
return r ? Dn : s;
|
|
4243
4243
|
let I = !1;
|
|
4244
4244
|
const E = () => {
|
|
4245
4245
|
I = !0;
|
|
4246
|
-
}, L = Ke(
|
|
4246
|
+
}, L = Ke(C) ? C : ir(e, s, v, C, D, E);
|
|
4247
4247
|
if (I)
|
|
4248
|
-
return
|
|
4248
|
+
return C;
|
|
4249
4249
|
const O = su(e, v, A, u), M = iu(O), T = ru(e, L, M), _ = i ? i(T, s) : T;
|
|
4250
4250
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
4251
4251
|
const S = {
|
|
4252
4252
|
timestamp: Date.now(),
|
|
4253
|
-
key: ee(s) ? s : Ke(
|
|
4254
|
-
locale: v || (Ke(
|
|
4255
|
-
format: ee(
|
|
4253
|
+
key: ee(s) ? s : Ke(C) ? C.key : "",
|
|
4254
|
+
locale: v || (Ke(C) ? C.locale : ""),
|
|
4255
|
+
format: ee(C) ? C : Ke(C) ? C.source : "",
|
|
4256
4256
|
message: _
|
|
4257
4257
|
};
|
|
4258
4258
|
S.meta = Le({}, e.__meta, /* @__PURE__ */ Hl() || {}), Al(S);
|
|
@@ -4347,14 +4347,14 @@ function su(e, t, n, i) {
|
|
|
4347
4347
|
return e.processor && (c.processor = e.processor), i.list && (c.list = i.list), i.named && (c.named = i.named), Pe(i.plural) && (c.pluralIndex = i.plural), c;
|
|
4348
4348
|
}
|
|
4349
4349
|
ol();
|
|
4350
|
-
var lu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_1ee09bfe-9c12-43bd-b1a3-1fb6cad8c3af", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_1ee09bfe-9c12-43bd-b1a3-1fb6cad8c3af", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4.feedmeapi.com", GTM_ID: "GTM-WR8XHXLH", FIREBASE_MESSAGING_SENDER_ID: "128512026847", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "production", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-0.7.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-8.14", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.1.13356709", 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: "1739", npm_package_dependencies__feedmepos_ui_library: "1.6.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", 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", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250511.1.0", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.6", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_vite_plugin_vue_devtools: "^7.3.5", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.9/x64", JOURNAL_STREAM: "9:13169", 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", REMY_URL: "https://remy.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "15557200181", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "390ea027cefe978716abfa1f2a26fb6fa1e54fcd", 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: "^4.5.2", 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_70fc1d17-9595-4dc6-a251-bb7f300017d2", INVOCATION_ID: "f1d1487987844f2f9021d6bb727def07", 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: "48", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-2MP52PC24R", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000000635", 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.16", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.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.1", 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_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_vue_i18n: "10.0.5", npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "390ea027cefe978716abfa1f2a26fb6fa1e54fcd", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", npm_package_dependencies_vue_router: "^4.2.5", npm_package_dependencies_canvas: "^2.9.3", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_1ee09bfe-9c12-43bd-b1a3-1fb6cad8c3af", 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_1ee09bfe-9c12-43bd-b1a3-1fb6cad8c3af", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", 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.2.12479018", 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 .", 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.5.17", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_1ee09bfe-9c12-43bd-b1a3-1fb6cad8c3af", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production", LAUNCH_EDITOR: "code" } };
|
|
4350
|
+
var lu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_66280dfe-9c88-4b13-9c7f-36488d87b9eb", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_66280dfe-9c88-4b13-9c7f-36488d87b9eb", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-0.7.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-8.14", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.1.13356709", 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: "1738", npm_package_dependencies__feedmepos_ui_library: "1.6.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", 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", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250511.1.0", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.6", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_vite_plugin_vue_devtools: "^7.3.5", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.9/x64", JOURNAL_STREAM: "9:13008", 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", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "15573474303", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "342d13f24c5e246c5c04190d51484bcef4218ce2", 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: "^4.5.2", 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_99fecfe2-4df7-449a-bf56-86ad9b7415ab", INVOCATION_ID: "012d13ddfec74cf4adcc6ff9e9e10a38", 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: "359", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000000704", 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.16", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.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.3", 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_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_vue_i18n: "10.0.5", npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "342d13f24c5e246c5c04190d51484bcef4218ce2", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_vue_router: "^4.2.5", npm_package_dependencies_canvas: "^2.9.3", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_66280dfe-9c88-4b13-9c7f-36488d87b9eb", 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_66280dfe-9c88-4b13-9c7f-36488d87b9eb", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", 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.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.5.18", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_66280dfe-9c88-4b13-9c7f-36488d87b9eb", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production", LAUNCH_EDITOR: "code" } };
|
|
4351
4351
|
const uu = "10.0.5";
|
|
4352
4352
|
function cu() {
|
|
4353
4353
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Mt().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Mt().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Mt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Mt().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
4354
4354
|
}
|
|
4355
4355
|
const Xt = {
|
|
4356
4356
|
// composer module errors
|
|
4357
|
-
UNEXPECTED_RETURN_TYPE:
|
|
4357
|
+
UNEXPECTED_RETURN_TYPE: Cl,
|
|
4358
4358
|
// 24
|
|
4359
4359
|
// legacy module errors
|
|
4360
4360
|
INVALID_ARGUMENT: 25,
|
|
@@ -4373,7 +4373,7 @@ function on(e) {
|
|
|
4373
4373
|
if (!me(e))
|
|
4374
4374
|
return e;
|
|
4375
4375
|
for (const t in e)
|
|
4376
|
-
if (
|
|
4376
|
+
if (Ze(e, t))
|
|
4377
4377
|
if (!t.includes("."))
|
|
4378
4378
|
me(e[t]) && on(e[t]);
|
|
4379
4379
|
else {
|
|
@@ -4400,7 +4400,7 @@ function rr(e, t) {
|
|
|
4400
4400
|
ee(l) && bn(JSON.parse(l), a);
|
|
4401
4401
|
}), r == null && o)
|
|
4402
4402
|
for (const l in a)
|
|
4403
|
-
|
|
4403
|
+
Ze(a, l) && on(a[l]);
|
|
4404
4404
|
return a;
|
|
4405
4405
|
}
|
|
4406
4406
|
function ar(e) {
|
|
@@ -4432,7 +4432,7 @@ function mu(e, t, n) {
|
|
|
4432
4432
|
}
|
|
4433
4433
|
}
|
|
4434
4434
|
function lo(e) {
|
|
4435
|
-
return
|
|
4435
|
+
return R(br, null, e, 0);
|
|
4436
4436
|
}
|
|
4437
4437
|
const uo = "__INTLIFY_META__", co = () => [], pu = () => !1;
|
|
4438
4438
|
let mo = 0;
|
|
@@ -4454,7 +4454,7 @@ function hu(e = {}) {
|
|
|
4454
4454
|
// prettier-ignore
|
|
4455
4455
|
t && a ? t.fallbackLocale.value : ee(e.fallbackLocale) || Ie(e.fallbackLocale) || de(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
4456
4456
|
), u = o(rr(l.value, e)), m = o(de(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), d = o(de(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
4457
|
-
let c = t ? t.missingWarn : Ae(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : Ae(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : Ae(e.fallbackRoot) ? e.fallbackRoot : !0, y = !!e.fallbackFormat, k = Se(e.missing) ? e.missing : null, f = Se(e.missing) ? po(e.missing) : null, v = Se(e.postTranslation) ? e.postTranslation : null, A = t ? t.warnHtmlMessage : Ae(e.warnHtmlMessage) ? e.warnHtmlMessage : !0,
|
|
4457
|
+
let c = t ? t.missingWarn : Ae(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : Ae(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : Ae(e.fallbackRoot) ? e.fallbackRoot : !0, y = !!e.fallbackFormat, k = Se(e.missing) ? e.missing : null, f = Se(e.missing) ? po(e.missing) : null, v = Se(e.postTranslation) ? e.postTranslation : null, A = t ? t.warnHtmlMessage : Ae(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, C = !!e.escapeParameter;
|
|
4458
4458
|
const D = t ? t.modifiers : de(e.modifiers) ? e.modifiers : {};
|
|
4459
4459
|
let I = e.pluralRules || t && t.pluralRules, E;
|
|
4460
4460
|
E = (() => {
|
|
@@ -4473,7 +4473,7 @@ function hu(e = {}) {
|
|
|
4473
4473
|
unresolving: !0,
|
|
4474
4474
|
postTranslation: v === null ? void 0 : v,
|
|
4475
4475
|
warnHtmlMessage: A,
|
|
4476
|
-
escapeParameter:
|
|
4476
|
+
escapeParameter: C,
|
|
4477
4477
|
messageResolver: e.messageResolver,
|
|
4478
4478
|
messageCompiler: e.messageCompiler,
|
|
4479
4479
|
__meta: { framework: "vue" }
|
|
@@ -4481,7 +4481,7 @@ function hu(e = {}) {
|
|
|
4481
4481
|
N.datetimeFormats = m.value, N.numberFormats = d.value, N.__datetimeFormatters = de(E) ? E.__datetimeFormatters : void 0, N.__numberFormatters = de(E) ? E.__numberFormatters : void 0;
|
|
4482
4482
|
const B = Kl(N);
|
|
4483
4483
|
return i && Qi(B), B;
|
|
4484
|
-
})(),
|
|
4484
|
+
})(), Zt(E, l.value, s.value);
|
|
4485
4485
|
function O() {
|
|
4486
4486
|
return [
|
|
4487
4487
|
l.value,
|
|
@@ -4499,7 +4499,7 @@ function hu(e = {}) {
|
|
|
4499
4499
|
}), T = U({
|
|
4500
4500
|
get: () => s.value,
|
|
4501
4501
|
set: (N) => {
|
|
4502
|
-
s.value = N, E.fallbackLocale = s.value,
|
|
4502
|
+
s.value = N, E.fallbackLocale = s.value, Zt(E, l.value, N);
|
|
4503
4503
|
}
|
|
4504
4504
|
}), _ = U(() => u.value), S = /* @__PURE__ */ U(() => m.value), x = /* @__PURE__ */ U(() => d.value);
|
|
4505
4505
|
function G() {
|
|
@@ -4542,10 +4542,10 @@ function hu(e = {}) {
|
|
|
4542
4542
|
return Fe(B, pe, Le({ resolvedMessage: !0 }, ye || {}));
|
|
4543
4543
|
}
|
|
4544
4544
|
function V(...N) {
|
|
4545
|
-
return be((B) => Reflect.apply(to, null, [B, ...N]), () => ni(...N), "datetime format", (B) => Reflect.apply(B.d, B, [...N]), () =>
|
|
4545
|
+
return be((B) => Reflect.apply(to, null, [B, ...N]), () => ni(...N), "datetime format", (B) => Reflect.apply(B.d, B, [...N]), () => Zi, (B) => ee(B));
|
|
4546
4546
|
}
|
|
4547
4547
|
function K(...N) {
|
|
4548
|
-
return be((B) => Reflect.apply(io, null, [B, ...N]), () => ii(...N), "number format", (B) => Reflect.apply(B.n, B, [...N]), () =>
|
|
4548
|
+
return be((B) => Reflect.apply(io, null, [B, ...N]), () => ii(...N), "number format", (B) => Reflect.apply(B.n, B, [...N]), () => Zi, (B) => ee(B));
|
|
4549
4549
|
}
|
|
4550
4550
|
function ne(N) {
|
|
4551
4551
|
return N.map((B) => ee(B) || Pe(B) || Ae(B) ? lo(String(B)) : B);
|
|
@@ -4607,7 +4607,7 @@ function hu(e = {}) {
|
|
|
4607
4607
|
if (r) {
|
|
4608
4608
|
const pe = { [N]: B };
|
|
4609
4609
|
for (const ye in pe)
|
|
4610
|
-
|
|
4610
|
+
Ze(pe, ye) && on(pe[ye]);
|
|
4611
4611
|
B = pe[N];
|
|
4612
4612
|
}
|
|
4613
4613
|
u.value[N] = B, E.messages = u.value;
|
|
@@ -4617,7 +4617,7 @@ function hu(e = {}) {
|
|
|
4617
4617
|
const pe = { [N]: B };
|
|
4618
4618
|
if (r)
|
|
4619
4619
|
for (const ye in pe)
|
|
4620
|
-
|
|
4620
|
+
Ze(pe, ye) && on(pe[ye]);
|
|
4621
4621
|
B = pe[N], bn(B, u.value[N]), E.messages = u.value;
|
|
4622
4622
|
}
|
|
4623
4623
|
function Ut(N) {
|
|
@@ -4639,9 +4639,9 @@ function hu(e = {}) {
|
|
|
4639
4639
|
d.value[N] = Le(d.value[N] || {}, B), E.numberFormats = d.value, oo(E, N, B);
|
|
4640
4640
|
}
|
|
4641
4641
|
mo++, t && $i && (Ne(t.locale, (N) => {
|
|
4642
|
-
a && (l.value = N, E.locale = N,
|
|
4642
|
+
a && (l.value = N, E.locale = N, Zt(E, l.value, s.value));
|
|
4643
4643
|
}), Ne(t.fallbackLocale, (N) => {
|
|
4644
|
-
a && (s.value = N, E.fallbackLocale = N,
|
|
4644
|
+
a && (s.value = N, E.fallbackLocale = N, Zt(E, l.value, s.value));
|
|
4645
4645
|
}));
|
|
4646
4646
|
const se = {
|
|
4647
4647
|
id: mo,
|
|
@@ -4651,7 +4651,7 @@ function hu(e = {}) {
|
|
|
4651
4651
|
return a;
|
|
4652
4652
|
},
|
|
4653
4653
|
set inheritLocale(N) {
|
|
4654
|
-
a = N, N && t && (l.value = t.locale.value, s.value = t.fallbackLocale.value,
|
|
4654
|
+
a = N, N && t && (l.value = t.locale.value, s.value = t.fallbackLocale.value, Zt(E, l.value, s.value));
|
|
4655
4655
|
},
|
|
4656
4656
|
get availableLocales() {
|
|
4657
4657
|
return Object.keys(u.value).sort();
|
|
@@ -4697,10 +4697,10 @@ function hu(e = {}) {
|
|
|
4697
4697
|
A = N, E.warnHtmlMessage = N;
|
|
4698
4698
|
},
|
|
4699
4699
|
get escapeParameter() {
|
|
4700
|
-
return
|
|
4700
|
+
return C;
|
|
4701
4701
|
},
|
|
4702
4702
|
set escapeParameter(N) {
|
|
4703
|
-
|
|
4703
|
+
C = N, E.escapeParameter = N;
|
|
4704
4704
|
},
|
|
4705
4705
|
t: Fe,
|
|
4706
4706
|
getLocaleMessage: ut,
|
|
@@ -4864,7 +4864,7 @@ if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
|
4864
4864
|
const e = Mt();
|
|
4865
4865
|
e.__INTLIFY__ = !0, Sl(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
4866
4866
|
}
|
|
4867
|
-
const Au = { class: "flex flex-col gap-4" }, Ou = { class: "fm-select__menu__wrapper" },
|
|
4867
|
+
const Au = { class: "flex flex-col gap-4" }, Ou = { class: "fm-select__menu__wrapper" }, Cu = { class: "fm-typo-en-body-lg-600 text-fm-color-primary" }, Ru = {
|
|
4868
4868
|
key: 0,
|
|
4869
4869
|
class: "flex flex-col gap-4 justify-center"
|
|
4870
4870
|
}, Tu = /* @__PURE__ */ fe({
|
|
@@ -4906,21 +4906,21 @@ const Au = { class: "flex flex-col gap-4" }, Ou = { class: "fm-select__menu__wra
|
|
|
4906
4906
|
},
|
|
4907
4907
|
{ immediate: !0 }
|
|
4908
4908
|
), (f, v) => {
|
|
4909
|
-
const A = j("FmField"),
|
|
4909
|
+
const A = j("FmField"), C = j("FmMenuItem"), D = j("FmIcon"), I = j("FmMenu"), E = j("FmChipGroup");
|
|
4910
4910
|
return F(), re("div", Au, [
|
|
4911
|
-
|
|
4911
|
+
R(I, {
|
|
4912
4912
|
disabled: f.disabled,
|
|
4913
4913
|
ref_key: "fmMenuRef",
|
|
4914
4914
|
ref: u,
|
|
4915
4915
|
"close-on-click": !1
|
|
4916
4916
|
}, {
|
|
4917
4917
|
"menu-button": W(() => [
|
|
4918
|
-
|
|
4919
|
-
class:
|
|
4918
|
+
R(A, {
|
|
4919
|
+
class: Je(f.disabled ? "cursor-not-allowed" : "cursor-pointer")
|
|
4920
4920
|
}, {
|
|
4921
4921
|
default: W(() => [
|
|
4922
4922
|
$("div", {
|
|
4923
|
-
class:
|
|
4923
|
+
class: Je([[
|
|
4924
4924
|
f.disabled ? "text-fm-color-typo-disabled" : m.value.length > 0 ? "text-fm-color-typo-primary" : "text-fm-color-typo-tertiary"
|
|
4925
4925
|
], "break-all fm-typo-en-body-lg-400 line-clamp-1"])
|
|
4926
4926
|
}, we(k.value), 3)
|
|
@@ -4930,7 +4930,7 @@ const Au = { class: "flex flex-col gap-4" }, Ou = { class: "fm-select__menu__wra
|
|
|
4930
4930
|
]),
|
|
4931
4931
|
default: W(() => [
|
|
4932
4932
|
$("div", Ou, [
|
|
4933
|
-
(F(!0), re(ze, null, _t(f.items, (L) => (F(),
|
|
4933
|
+
(F(!0), re(ze, null, _t(f.items, (L) => (F(), Z(C, {
|
|
4934
4934
|
key: L.value,
|
|
4935
4935
|
disabled: L.disabled,
|
|
4936
4936
|
"has-checkbox": !0,
|
|
@@ -4943,19 +4943,19 @@ const Au = { class: "flex flex-col gap-4" }, Ou = { class: "fm-select__menu__wra
|
|
|
4943
4943
|
type: "button",
|
|
4944
4944
|
onClick: v[0] || (v[0] = (L) => w())
|
|
4945
4945
|
}, [
|
|
4946
|
-
|
|
4946
|
+
R(D, {
|
|
4947
4947
|
color: "primary",
|
|
4948
4948
|
name: "add",
|
|
4949
4949
|
size: "md"
|
|
4950
4950
|
}),
|
|
4951
|
-
$("p",
|
|
4951
|
+
$("p", Cu, we(b(s)("menu.product.form.detail.subcategory.add_new")), 1)
|
|
4952
4952
|
])
|
|
4953
4953
|
])
|
|
4954
4954
|
]),
|
|
4955
4955
|
_: 1
|
|
4956
4956
|
}, 8, ["disabled"]),
|
|
4957
|
-
m.value.length > 0 ? (F(), re("div",
|
|
4958
|
-
|
|
4957
|
+
m.value.length > 0 ? (F(), re("div", Ru, [
|
|
4958
|
+
R(E, {
|
|
4959
4959
|
disabled: f.disabled,
|
|
4960
4960
|
items: m.value.map((L) => ({ label: L.label })),
|
|
4961
4961
|
removable: "",
|
|
@@ -4970,7 +4970,7 @@ const Au = { class: "flex flex-col gap-4" }, Ou = { class: "fm-select__menu__wra
|
|
|
4970
4970
|
}, Du = {
|
|
4971
4971
|
class: "flex-1 flex flex-col gap-24"
|
|
4972
4972
|
}, Nu = {
|
|
4973
|
-
class: /* @__PURE__ */
|
|
4973
|
+
class: /* @__PURE__ */ Je(["flex space-x-16", "xs:flex-col xs:space-x-0 xs:space-y-16"])
|
|
4974
4974
|
}, Pu = {
|
|
4975
4975
|
class: "w-[160px] xs:w-full"
|
|
4976
4976
|
}, Lu = {
|
|
@@ -5015,7 +5015,7 @@ const Gu = /* @__PURE__ */ fe({
|
|
|
5015
5015
|
setup(e, {
|
|
5016
5016
|
emit: t
|
|
5017
5017
|
}) {
|
|
5018
|
-
const n = e, i =
|
|
5018
|
+
const n = e, i = Ce(), r = an(), o = at(), a = qe(), l = bt(a), s = yt(l), u = ks({
|
|
5019
5019
|
dialog: o,
|
|
5020
5020
|
menuLoader: s
|
|
5021
5021
|
}), {
|
|
@@ -5028,22 +5028,22 @@ const Gu = /* @__PURE__ */ fe({
|
|
|
5028
5028
|
return n.isAddon ? _ : _.filter((S) => !!S.value);
|
|
5029
5029
|
}), y = U(() => c.value.addon), k = U(() => !w.value.find((_) => !!_.value)), f = () => {
|
|
5030
5030
|
var _;
|
|
5031
|
-
return n.isAddon ? null : Nt(
|
|
5031
|
+
return n.isAddon ? null : Nt(R(Ve.FmSelect, {
|
|
5032
5032
|
disabled: !c.value.category || n.isAddon || m(),
|
|
5033
5033
|
items: w.value,
|
|
5034
5034
|
modelValue: n.form.category ?? ((_ = n.fallback) == null ? void 0 : _.category),
|
|
5035
5035
|
shiftMenu: !0,
|
|
5036
5036
|
"onUpdate:model-value": (S) => d("update:form", "category", S)
|
|
5037
5037
|
}, {
|
|
5038
|
-
"append-menu": () =>
|
|
5038
|
+
"append-menu": () => R("button", {
|
|
5039
5039
|
class: "flex items-center py-8 px-16 space-x-8",
|
|
5040
5040
|
type: "button",
|
|
5041
5041
|
onClick: () => u.create()
|
|
5042
|
-
}, [
|
|
5042
|
+
}, [R(Ve.FmIcon, {
|
|
5043
5043
|
color: "primary",
|
|
5044
5044
|
name: "add",
|
|
5045
5045
|
size: "md"
|
|
5046
|
-
}, null),
|
|
5046
|
+
}, null), R("p", {
|
|
5047
5047
|
class: "fm-typo-en-body-lg-600 text-fm-color-primary"
|
|
5048
5048
|
}, [wn("Add new Category")])])
|
|
5049
5049
|
}), [[Wn("if"), !n.isAddon]]);
|
|
@@ -5061,7 +5061,7 @@ const Gu = /* @__PURE__ */ fe({
|
|
|
5061
5061
|
const S = _ == It.ADD_ON;
|
|
5062
5062
|
d("update:form", "category", n.isOverride ? S ? "" : ((x = n.fallback) == null ? void 0 : x.category) ?? ((G = w.value.find((Q) => !!Q.value)) == null ? void 0 : G.value) : S ? null : (H = w.value.find((Q) => !!Q.value)) == null ? void 0 : H.value);
|
|
5063
5063
|
}
|
|
5064
|
-
const
|
|
5064
|
+
const C = ie(!1);
|
|
5065
5065
|
async function D() {
|
|
5066
5066
|
var _, S;
|
|
5067
5067
|
if (!n.form.name) {
|
|
@@ -5072,9 +5072,9 @@ const Gu = /* @__PURE__ */ fe({
|
|
|
5072
5072
|
} else
|
|
5073
5073
|
return;
|
|
5074
5074
|
}
|
|
5075
|
-
if (!
|
|
5075
|
+
if (!C.value)
|
|
5076
5076
|
try {
|
|
5077
|
-
|
|
5077
|
+
C.value = !0, r.pushDataLayer({
|
|
5078
5078
|
event: "menu_catalog_item_general_remy_suggest_description"
|
|
5079
5079
|
}), Ge.toggleDialog(!0);
|
|
5080
5080
|
const x = await ((_ = Ge.getItemDescription) == null ? void 0 : _.call(Ge, {
|
|
@@ -5082,7 +5082,7 @@ const Gu = /* @__PURE__ */ fe({
|
|
|
5082
5082
|
}, !0)), G = (S = x == null ? void 0 : x.data) == null ? void 0 : S.value;
|
|
5083
5083
|
typeof G == "string" && d("update:form", "description", G);
|
|
5084
5084
|
} finally {
|
|
5085
|
-
|
|
5085
|
+
C.value = !1;
|
|
5086
5086
|
}
|
|
5087
5087
|
}
|
|
5088
5088
|
const I = U(() => i.subcategories), E = U(() => I.value.map((_) => ({
|
|
@@ -5107,17 +5107,17 @@ const Gu = /* @__PURE__ */ fe({
|
|
|
5107
5107
|
} = Ee();
|
|
5108
5108
|
return (_, S) => {
|
|
5109
5109
|
const x = j("fm-text-field"), G = j("fm-textarea"), H = j("fm-radio"), Q = j("FmSnackbar"), _e = j("FmButton"), be = j("fm-radio-group"), Fe = j("FmFormGroup"), z = j("FmSelect"), V = Wn("tooltip");
|
|
5110
|
-
return F(),
|
|
5110
|
+
return F(), Z(st, {
|
|
5111
5111
|
title: b(T)("menu.product.form.detail.title")
|
|
5112
5112
|
}, {
|
|
5113
5113
|
default: W(() => {
|
|
5114
5114
|
var K, ne;
|
|
5115
|
-
return [$("div", Mu, [$("div", Du, [$("div", Nu, [$("div", Pu, [
|
|
5115
|
+
return [$("div", Mu, [$("div", Du, [$("div", Nu, [$("div", Pu, [R(x, {
|
|
5116
5116
|
"model-value": _.form.code,
|
|
5117
5117
|
placeholder: ((K = _.fallback) == null ? void 0 : K.code) || b(T)("menu.product.form.detail.fields.code.placeholder"),
|
|
5118
5118
|
label: b(T)("menu.product.form.detail.fields.code.label"),
|
|
5119
5119
|
"onUpdate:modelValue": S[0] || (S[0] = (q) => d("update:form", "code", b(jo)(q, _.isOverride)))
|
|
5120
|
-
}, null, 8, ["model-value", "placeholder", "label"])]), $("div", Lu, [
|
|
5120
|
+
}, null, 8, ["model-value", "placeholder", "label"])]), $("div", Lu, [R(x, {
|
|
5121
5121
|
id: "product-name",
|
|
5122
5122
|
disabled: !c.value.name,
|
|
5123
5123
|
"helper-text": v.value > 0 ? b(T)("menu.product.form.detail.fields.name.duplicate_warning", {
|
|
@@ -5130,7 +5130,7 @@ const Gu = /* @__PURE__ */ fe({
|
|
|
5130
5130
|
autofocus: "",
|
|
5131
5131
|
label: b(T)("menu.product.form.detail.fields.name.label"),
|
|
5132
5132
|
"onUpdate:modelValue": S[1] || (S[1] = (q) => d("update:form", "name", q))
|
|
5133
|
-
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), $("div", Fu, [
|
|
5133
|
+
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), $("div", Fu, [R(G, {
|
|
5134
5134
|
disabled: !c.value.description,
|
|
5135
5135
|
"model-value": _.form.description || void 0,
|
|
5136
5136
|
placeholder: b(T)("menu.product.form.detail.fields.description.placeholder"),
|
|
@@ -5139,62 +5139,62 @@ const Gu = /* @__PURE__ */ fe({
|
|
|
5139
5139
|
}, {
|
|
5140
5140
|
label: W(() => [$("p", xu, [wn(we(b(T)("menu.product.form.detail.fields.description.label")) + " ", 1), $("span", Uu, we(b(T)("menu.product.form.detail.fields.description.optional")), 1)])]),
|
|
5141
5141
|
_: 1
|
|
5142
|
-
}, 8, ["disabled", "model-value", "placeholder"]), Nt(
|
|
5142
|
+
}, 8, ["disabled", "model-value", "placeholder"]), Nt(R(Ho, {
|
|
5143
5143
|
class: "absolute top-32 right-4 cursor-pointer",
|
|
5144
5144
|
onClick: D
|
|
5145
|
-
}, null, 512), [[V, b(wo)("Suggest description")]])])]),
|
|
5145
|
+
}, null, 512), [[V, b(wo)("Suggest description")]])])]), R(vs, {
|
|
5146
5146
|
disabled: !c.value.thumbnail,
|
|
5147
5147
|
"model-value": _.thumbnail,
|
|
5148
5148
|
"onUpdate:modelValue": S[3] || (S[3] = (q) => d("update:thumbnail", q)),
|
|
5149
5149
|
"onReset:modelValue": S[4] || (S[4] = (q) => d("reset:thumbnail"))
|
|
5150
|
-
}, null, 8, ["disabled", "model-value"])]),
|
|
5150
|
+
}, null, 8, ["disabled", "model-value"])]), R(wt, {
|
|
5151
5151
|
label: b(T)("menu.product.form.detail.category.label")
|
|
5152
5152
|
}, {
|
|
5153
|
-
default: W(() => [y.value ? (F(),
|
|
5153
|
+
default: W(() => [y.value ? (F(), Z(be, {
|
|
5154
5154
|
key: 0,
|
|
5155
5155
|
disabled: !c.value.category,
|
|
5156
5156
|
"model-value": _.isAddon ? It.ADD_ON : It.PRODUCT,
|
|
5157
5157
|
"onUpdate:modelValue": S[5] || (S[5] = (q) => A(q))
|
|
5158
5158
|
}, {
|
|
5159
|
-
default: W(() => [$("div", Vu, [$("div", zu, [
|
|
5159
|
+
default: W(() => [$("div", Vu, [$("div", zu, [R(H, {
|
|
5160
5160
|
disabled: k.value || !c.value.category,
|
|
5161
5161
|
value: It.PRODUCT,
|
|
5162
5162
|
label: b(T)("menu.product.form.detail.category.options.product.label"),
|
|
5163
5163
|
sublabel: b(T)("menu.product.form.detail.category.options.product.sublabel")
|
|
5164
|
-
}, null, 8, ["disabled", "value", "label", "sublabel"]),
|
|
5165
|
-
default: W(() => [b(i).isV4 ? (F(),
|
|
5164
|
+
}, null, 8, ["disabled", "value", "label", "sublabel"]), R(Oa, null, {
|
|
5165
|
+
default: W(() => [b(i).isV4 ? (F(), Z(f, {
|
|
5166
5166
|
key: 0
|
|
5167
5167
|
})) : ae("", !0)]),
|
|
5168
5168
|
_: 1
|
|
5169
|
-
})]), k.value ? (F(), re("div", $u, [
|
|
5169
|
+
})]), k.value ? (F(), re("div", $u, [R(Q, {
|
|
5170
5170
|
title: b(T)("menu.product.form.detail.category.add_first"),
|
|
5171
5171
|
variant: "info"
|
|
5172
|
-
}, null, 8, ["title"]),
|
|
5172
|
+
}, null, 8, ["title"]), R(_e, {
|
|
5173
5173
|
label: b(T)("menu.common.actions.add"),
|
|
5174
5174
|
"prepend-icon": "add",
|
|
5175
5175
|
variant: "secondary",
|
|
5176
5176
|
onClick: b(u).create
|
|
5177
|
-
}, null, 8, ["label", "onClick"])])) : ae("", !0),
|
|
5177
|
+
}, null, 8, ["label", "onClick"])])) : ae("", !0), R(H, {
|
|
5178
5178
|
value: It.ADD_ON,
|
|
5179
5179
|
label: b(T)("menu.product.form.detail.category.options.addon.label"),
|
|
5180
5180
|
sublabel: b(T)("menu.product.form.detail.category.options.addon.sublabel")
|
|
5181
5181
|
}, null, 8, ["value", "label", "sublabel"])])]),
|
|
5182
5182
|
_: 1
|
|
5183
|
-
}, 8, ["disabled", "model-value"])) : ae("", !0), b(i).isV4 ? ae("", !0) : (F(),
|
|
5183
|
+
}, 8, ["disabled", "model-value"])) : ae("", !0), b(i).isV4 ? ae("", !0) : (F(), Z(Fe, {
|
|
5184
5184
|
key: 1,
|
|
5185
5185
|
modelValue: _.form.category,
|
|
5186
5186
|
"onUpdate:modelValue": S[6] || (S[6] = (q) => _.form.category = q),
|
|
5187
5187
|
rules: [(q) => !q && !_.isOverride ? "Category is required" : !0]
|
|
5188
5188
|
}, {
|
|
5189
|
-
default: W(() => [
|
|
5189
|
+
default: W(() => [R(f)]),
|
|
5190
5190
|
_: 1
|
|
5191
5191
|
}, 8, ["modelValue", "rules"]))]),
|
|
5192
5192
|
_: 1
|
|
5193
|
-
}, 8, ["label"]), (b(i).isV4, ae("", !0)), b(i).isV4 ? (F(),
|
|
5193
|
+
}, 8, ["label"]), (b(i).isV4, ae("", !0)), b(i).isV4 ? (F(), Z(wt, {
|
|
5194
5194
|
key: 1,
|
|
5195
5195
|
label: b(T)("menu.product.form.detail.path.label")
|
|
5196
5196
|
}, {
|
|
5197
|
-
default: W(() => [$("div", Bu, [
|
|
5197
|
+
default: W(() => [$("div", Bu, [R(Iu, {
|
|
5198
5198
|
modelValue: L.value,
|
|
5199
5199
|
"onUpdate:modelValue": S[8] || (S[8] = (q) => L.value = q),
|
|
5200
5200
|
items: E.value,
|
|
@@ -5203,7 +5203,7 @@ const Gu = /* @__PURE__ */ fe({
|
|
|
5203
5203
|
"is-local-only": !1
|
|
5204
5204
|
}, null, 8, ["modelValue", "items", "placeholder", "disabled"])])]),
|
|
5205
5205
|
_: 1
|
|
5206
|
-
}, 8, ["label"])) : ae("", !0),
|
|
5206
|
+
}, 8, ["label"])) : ae("", !0), R(vi, {
|
|
5207
5207
|
disabled: !c.value.orderFrom,
|
|
5208
5208
|
"model-value": _.form.orderFrom,
|
|
5209
5209
|
"order-from-none": c.value.orderFromNone,
|
|
@@ -5221,28 +5221,28 @@ const Gu = /* @__PURE__ */ fe({
|
|
|
5221
5221
|
function Yu(e, t) {
|
|
5222
5222
|
return F(), re("div", ju, [
|
|
5223
5223
|
$("div", Ku, [
|
|
5224
|
-
|
|
5224
|
+
Re(e.$slots, "default")
|
|
5225
5225
|
])
|
|
5226
5226
|
]);
|
|
5227
5227
|
}
|
|
5228
5228
|
const ur = /* @__PURE__ */ Lt(Hu, [["render", Yu]]), Xu = /* @__PURE__ */ fe({
|
|
5229
5229
|
__name: "AddForm",
|
|
5230
5230
|
setup(e) {
|
|
5231
|
-
const t =
|
|
5232
|
-
const s = !t.state.currentSchedulerId, u = t.rules.group.type, m = t.version ===
|
|
5231
|
+
const t = Ce(), n = U(() => t.rules.group), i = U(() => !!t.state.currentCatalogId || !!t.state.currentSchedulerId), r = U(() => {
|
|
5232
|
+
const s = !t.state.currentSchedulerId, u = t.rules.group.type, m = t.version === J.F_MENU_VERSION.enum.v3, d = t.rules.item.orderFromActiveOnly, c = t.rules.item.bindToVariant;
|
|
5233
5233
|
return function(w) {
|
|
5234
5234
|
return {
|
|
5235
5235
|
link: (y) => !i.value && (!y || c),
|
|
5236
5236
|
name: (y) => !i.value && !y,
|
|
5237
5237
|
isDefault: (y) => !i.value,
|
|
5238
5238
|
type: u && !w._id && !i.value,
|
|
5239
|
-
price: w.type !==
|
|
5239
|
+
price: w.type !== J.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
|
|
5240
5240
|
priceEdit: !0,
|
|
5241
5241
|
priceTier: t.isV4,
|
|
5242
|
-
inventory: s ? m ? !i.value && w.type ===
|
|
5243
|
-
orderFrom: (y) => s ? m ? w.type ===
|
|
5242
|
+
inventory: s ? m ? !i.value && w.type === J.F_ADDON_GROUP_TYPE.enum.NORMAL : !i.value : !1,
|
|
5243
|
+
orderFrom: (y) => s ? m ? w.type === J.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? i.value : !!i.value == !y : i.value : !1,
|
|
5244
5244
|
orderFromActiveOnly: d,
|
|
5245
|
-
showOrderFrom: s ? m ? i.value ? !0 : w.type ===
|
|
5245
|
+
showOrderFrom: s ? m ? i.value ? !0 : w.type === J.F_ADDON_GROUP_TYPE.enum.PRODUCT : i.value : !1,
|
|
5246
5246
|
bindToVariant: c,
|
|
5247
5247
|
isOverride: i.value,
|
|
5248
5248
|
isItemGroup: !1,
|
|
@@ -5251,12 +5251,12 @@ const ur = /* @__PURE__ */ Lt(Hu, [["render", Yu]]), Xu = /* @__PURE__ */ fe({
|
|
|
5251
5251
|
};
|
|
5252
5252
|
}), o = () => ({
|
|
5253
5253
|
...He.generator.initMenuV4Group(),
|
|
5254
|
-
type: t.version ===
|
|
5254
|
+
type: t.version === J.F_MENU_VERSION.enum.v4 ? J.F_ADDON_GROUP_TYPE.enum.PRODUCT : J.F_ADDON_GROUP_TYPE.enum.NORMAL,
|
|
5255
5255
|
items: {},
|
|
5256
5256
|
position: t.groups.length - 1,
|
|
5257
5257
|
itemsLinked: []
|
|
5258
5258
|
}), a = ie(o()), { t: l } = Ee();
|
|
5259
|
-
return (s, u) => n.value.create ? (F(),
|
|
5259
|
+
return (s, u) => n.value.create ? (F(), Z(b(wc), {
|
|
5260
5260
|
key: 0,
|
|
5261
5261
|
"categorized-items": b(t).categorizedItems,
|
|
5262
5262
|
config: r.value,
|
|
@@ -5269,18 +5269,18 @@ const ur = /* @__PURE__ */ Lt(Hu, [["render", Yu]]), Xu = /* @__PURE__ */ fe({
|
|
|
5269
5269
|
title: b(l)("menu.group.add")
|
|
5270
5270
|
}, {
|
|
5271
5271
|
default: W(({ trigger: m }) => [
|
|
5272
|
-
|
|
5272
|
+
Re(s.$slots, "default", { trigger: m })
|
|
5273
5273
|
]),
|
|
5274
5274
|
_: 3
|
|
5275
5275
|
}, 8, ["categorized-items", "config", "group", "title"])) : ae("", !0);
|
|
5276
5276
|
}
|
|
5277
|
-
}), qu = {},
|
|
5278
|
-
function
|
|
5279
|
-
return F(), re("div",
|
|
5280
|
-
|
|
5277
|
+
}), qu = {}, Zu = { class: "flex gap-16" };
|
|
5278
|
+
function Ju(e, t) {
|
|
5279
|
+
return F(), re("div", Zu, [
|
|
5280
|
+
Re(e.$slots, "default")
|
|
5281
5281
|
]);
|
|
5282
5282
|
}
|
|
5283
|
-
const Qu = /* @__PURE__ */ Lt(qu, [["render",
|
|
5283
|
+
const Qu = /* @__PURE__ */ Lt(qu, [["render", Ju]]), ec = { class: "fm-typo-en-title-md-600 mr-auto" }, tc = { class: "space-y-40" }, nc = { class: "flex gap-8 items-center justify-start" }, ic = /* @__PURE__ */ fe({
|
|
5284
5284
|
__name: "Form",
|
|
5285
5285
|
props: {
|
|
5286
5286
|
bindingKey: {},
|
|
@@ -5315,8 +5315,8 @@ const Qu = /* @__PURE__ */ Lt(qu, [["render", Zu]]), ec = { class: "fm-typo-en-t
|
|
|
5315
5315
|
return (p, w) => {
|
|
5316
5316
|
const y = j("fm-text-field"), k = j("fm-card"), f = j("fm-button"), v = j("fm-side-sheet");
|
|
5317
5317
|
return F(), re(ze, null, [
|
|
5318
|
-
|
|
5319
|
-
|
|
5318
|
+
Re(p.$slots, "default", { trigger: o }),
|
|
5319
|
+
R(v, {
|
|
5320
5320
|
id: "inventory-form",
|
|
5321
5321
|
modelValue: r.value,
|
|
5322
5322
|
"onUpdate:modelValue": w[2] || (w[2] = (A) => r.value = A),
|
|
@@ -5334,13 +5334,13 @@ const Qu = /* @__PURE__ */ Lt(qu, [["render", Zu]]), ec = { class: "fm-typo-en-t
|
|
|
5334
5334
|
]),
|
|
5335
5335
|
"side-sheet-footer": W(() => [
|
|
5336
5336
|
$("div", nc, [
|
|
5337
|
-
|
|
5337
|
+
R(f, {
|
|
5338
5338
|
label: b(d)("menu.common.actions.add"),
|
|
5339
5339
|
size: "lg",
|
|
5340
5340
|
type: "submit",
|
|
5341
5341
|
variant: "primary"
|
|
5342
5342
|
}, null, 8, ["label"]),
|
|
5343
|
-
|
|
5343
|
+
R(f, {
|
|
5344
5344
|
label: b(d)("menu.common.actions.cancel"),
|
|
5345
5345
|
size: "lg",
|
|
5346
5346
|
variant: "tertiary",
|
|
@@ -5350,17 +5350,17 @@ const Qu = /* @__PURE__ */ Lt(qu, [["render", Zu]]), ec = { class: "fm-typo-en-t
|
|
|
5350
5350
|
]),
|
|
5351
5351
|
default: W(() => [
|
|
5352
5352
|
$("div", tc, [
|
|
5353
|
-
|
|
5353
|
+
R(y, {
|
|
5354
5354
|
"model-value": p.name,
|
|
5355
5355
|
disabled: "",
|
|
5356
5356
|
label: b(d)("menu.inventory.form.product_name")
|
|
5357
5357
|
}, null, 8, ["model-value", "label"]),
|
|
5358
|
-
|
|
5358
|
+
R(k, {
|
|
5359
5359
|
class: "p-16 space-y-24",
|
|
5360
5360
|
variant: "outlined"
|
|
5361
5361
|
}, {
|
|
5362
5362
|
default: W(() => [
|
|
5363
|
-
|
|
5363
|
+
R(b(Yr), {
|
|
5364
5364
|
modelValue: a.value,
|
|
5365
5365
|
"onUpdate:modelValue": w[0] || (w[0] = (A) => a.value = A)
|
|
5366
5366
|
}, null, 8, ["modelValue"])
|
|
@@ -5393,7 +5393,7 @@ function oc() {
|
|
|
5393
5393
|
l = c;
|
|
5394
5394
|
}, m = (c) => {
|
|
5395
5395
|
s = c;
|
|
5396
|
-
}, d =
|
|
5396
|
+
}, d = R(o, {
|
|
5397
5397
|
...i,
|
|
5398
5398
|
// close event from the component
|
|
5399
5399
|
"onUpdate:show": (c) => {
|
|
@@ -5448,7 +5448,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5448
5448
|
cell: (a) => {
|
|
5449
5449
|
var u, m;
|
|
5450
5450
|
const l = (u = n.fallback) == null ? void 0 : u[a.row.original.key], s = l ? Gt(l) : void 0;
|
|
5451
|
-
return
|
|
5451
|
+
return R(Dt, {
|
|
5452
5452
|
required: !1,
|
|
5453
5453
|
nullable: !0,
|
|
5454
5454
|
min: n.allowNegativePrice ? void 0 : 0,
|
|
@@ -5461,7 +5461,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5461
5461
|
}];
|
|
5462
5462
|
return (a, l) => {
|
|
5463
5463
|
const s = j("FmTable");
|
|
5464
|
-
return F(), re("div", null, [
|
|
5464
|
+
return F(), re("div", null, [R(s, {
|
|
5465
5465
|
"column-defs": o,
|
|
5466
5466
|
"row-data": a.priceTiers,
|
|
5467
5467
|
"page-size": a.priceTiers.length,
|
|
@@ -5491,7 +5491,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5491
5491
|
}
|
|
5492
5492
|
return (p, w) => {
|
|
5493
5493
|
const y = j("FmButton"), k = j("fm-button"), f = j("FmSideSheet");
|
|
5494
|
-
return F(),
|
|
5494
|
+
return F(), Z(f, {
|
|
5495
5495
|
id: "business-form",
|
|
5496
5496
|
modelValue: r.value,
|
|
5497
5497
|
"onUpdate:modelValue": w[1] || (w[1] = (v) => r.value = v),
|
|
@@ -5508,13 +5508,13 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5508
5508
|
]),
|
|
5509
5509
|
"side-sheet-footer": W(() => [
|
|
5510
5510
|
$("div", sc, [
|
|
5511
|
-
|
|
5511
|
+
R(k, {
|
|
5512
5512
|
label: l.value,
|
|
5513
5513
|
size: "lg",
|
|
5514
5514
|
type: "submit",
|
|
5515
5515
|
variant: "primary"
|
|
5516
5516
|
}, null, 8, ["label"]),
|
|
5517
|
-
|
|
5517
|
+
R(k, {
|
|
5518
5518
|
label: b(n)("common.cancel"),
|
|
5519
5519
|
size: "lg",
|
|
5520
5520
|
variant: "tertiary",
|
|
@@ -5524,12 +5524,12 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5524
5524
|
]),
|
|
5525
5525
|
default: W(() => [
|
|
5526
5526
|
$("div", ac, [
|
|
5527
|
-
|
|
5527
|
+
R(wt, {
|
|
5528
5528
|
label: b(n)("menu.price_tier.price_group"),
|
|
5529
5529
|
description: b(n)("menu.price_tier.description")
|
|
5530
5530
|
}, {
|
|
5531
5531
|
append: W(() => [
|
|
5532
|
-
|
|
5532
|
+
R(y, {
|
|
5533
5533
|
class: "min-w-fit",
|
|
5534
5534
|
label: b(n)("menu.price_tier.add_price_group"),
|
|
5535
5535
|
icon: "add",
|
|
@@ -5538,7 +5538,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5538
5538
|
}, null, 8, ["label", "onClick"])
|
|
5539
5539
|
]),
|
|
5540
5540
|
default: W(() => [
|
|
5541
|
-
|
|
5541
|
+
R(cr, {
|
|
5542
5542
|
"price-tiers": b(u).priceTiers.value,
|
|
5543
5543
|
"model-value": m.value,
|
|
5544
5544
|
fallback: p.fallback,
|
|
@@ -5578,14 +5578,14 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5578
5578
|
const { t: l } = Ee();
|
|
5579
5579
|
return (s, u) => {
|
|
5580
5580
|
const m = j("FmButton"), d = j("FmTooltip");
|
|
5581
|
-
return s.$slots.default ?
|
|
5581
|
+
return s.$slots.default ? Re(s.$slots, "default", { key: 0 }) : (F(), Z(d, {
|
|
5582
5582
|
key: 1,
|
|
5583
5583
|
content: b(l)("menu.price_tier.price_tier_config"),
|
|
5584
5584
|
"z-index": 999,
|
|
5585
5585
|
placement: "top"
|
|
5586
5586
|
}, {
|
|
5587
5587
|
default: W(() => [
|
|
5588
|
-
|
|
5588
|
+
R(m, {
|
|
5589
5589
|
icon: "price_change",
|
|
5590
5590
|
variant: "tertiary",
|
|
5591
5591
|
"text-color": b(pt).NeutralGray400,
|
|
@@ -5619,7 +5619,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5619
5619
|
setup(e, {
|
|
5620
5620
|
emit: t
|
|
5621
5621
|
}) {
|
|
5622
|
-
const n = e, i = t, r = qe(), o = an(), a =
|
|
5622
|
+
const n = e, i = t, r = qe(), o = an(), a = Ce(), l = U(() => Be.Country.getCountry(o.currentCountry.value)), s = ie(!1), u = U(() => n.config.isV4 || n.group.type === J.F_ADDON_GROUP_TYPE.enum.PRODUCT), m = U(() => u.value), d = U(() => u.value), c = U(() => Object.values(n.group.items).flatMap((z) => [{
|
|
5623
5623
|
_id: z._id,
|
|
5624
5624
|
combinationKey: void 0
|
|
5625
5625
|
}, ...(z.items ?? []).map((V) => ({
|
|
@@ -5628,7 +5628,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5628
5628
|
}))])), {
|
|
5629
5629
|
searchKey: p,
|
|
5630
5630
|
filter: w
|
|
5631
|
-
} =
|
|
5631
|
+
} = Zr(), y = U(() => {
|
|
5632
5632
|
const z = Object.entries(n.group.items).filter(([, V]) => w([V.code || "", V.name || V.fallbackName, v(V.price ?? V.fallbackPrice), A(V.orderFrom || V.fallbackOrder), ...(V.items || []).map((K) => [K.code || "", K.name || K.fallbackName, v(K.price ?? K.fallbackPrice), A(K.orderFrom || K.fallbackOrder)].join(""))]));
|
|
5633
5633
|
return Object.fromEntries(z);
|
|
5634
5634
|
}), k = (z) => ({
|
|
@@ -5640,7 +5640,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5640
5640
|
}), f = U(() => !0), v = (z) => z ? Gt(z, !1) : "", A = (z) => {
|
|
5641
5641
|
var V;
|
|
5642
5642
|
return z == null ? "" : (V = Ir()[z]) == null ? void 0 : V.label;
|
|
5643
|
-
},
|
|
5643
|
+
}, C = U(() => Object.values(y.value)), D = ie({}), {
|
|
5644
5644
|
t: I
|
|
5645
5645
|
} = Ee(), E = ie([{
|
|
5646
5646
|
accessorKey: "isDefault",
|
|
@@ -5652,7 +5652,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5652
5652
|
if ((oe = (q = z.row.original) == null ? void 0 : q.items) != null && oe.length)
|
|
5653
5653
|
return null;
|
|
5654
5654
|
const V = z.row.depth > 0, K = z.row.original, ne = !!z.getValue();
|
|
5655
|
-
return
|
|
5655
|
+
return R(Ve.FmCheckbox, {
|
|
5656
5656
|
value: "default",
|
|
5657
5657
|
modelValue: ne,
|
|
5658
5658
|
disabled: !k(K.combinationKey).isDefault,
|
|
@@ -5674,12 +5674,12 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5674
5674
|
size: 100,
|
|
5675
5675
|
cell: (z) => {
|
|
5676
5676
|
const V = z.getValue();
|
|
5677
|
-
return
|
|
5677
|
+
return R(Ve.FmTooltip, {
|
|
5678
5678
|
class: "flex",
|
|
5679
5679
|
content: V,
|
|
5680
5680
|
zIndex: 110
|
|
5681
5681
|
}, {
|
|
5682
|
-
default: () => [
|
|
5682
|
+
default: () => [R("div", {
|
|
5683
5683
|
class: "break-all max-w-[100px]"
|
|
5684
5684
|
}, [V])]
|
|
5685
5685
|
});
|
|
@@ -5689,7 +5689,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5689
5689
|
header: () => I("menu.group.option.product_title"),
|
|
5690
5690
|
enableSorting: !1,
|
|
5691
5691
|
cell: (z) => {
|
|
5692
|
-
const V = z.getValue(), K = z.row.original, ne = z.row.depth > 0, q = K.combinationKey ? Eo(K.combinationKey,
|
|
5692
|
+
const V = z.getValue(), K = z.row.original, ne = z.row.depth > 0, q = K.combinationKey ? Eo(K.combinationKey, Ce().variants) : null;
|
|
5693
5693
|
return De("div", De(Ve.FmTextField, {
|
|
5694
5694
|
modelValue: V,
|
|
5695
5695
|
placeholder: q ?? "",
|
|
@@ -5797,9 +5797,9 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5797
5797
|
size: 80,
|
|
5798
5798
|
cell: (z) => {
|
|
5799
5799
|
const V = z.row.original, K = z.row.depth > 0;
|
|
5800
|
-
return
|
|
5800
|
+
return R("div", {
|
|
5801
5801
|
class: "flex items-center justify-end"
|
|
5802
|
-
}, [k(null).priceTier &&
|
|
5802
|
+
}, [k(null).priceTier && R(dr, {
|
|
5803
5803
|
priceTiers: V.priceTiers,
|
|
5804
5804
|
"onUpdate:priceTiers": (ne) => {
|
|
5805
5805
|
var q;
|
|
@@ -5816,7 +5816,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5816
5816
|
} else
|
|
5817
5817
|
M(V._id, "priceTiers", ne);
|
|
5818
5818
|
}
|
|
5819
|
-
}, null), k(V.combinationKey).inventory &&
|
|
5819
|
+
}, null), k(V.combinationKey).inventory && R(ui, {
|
|
5820
5820
|
title: "Inventory",
|
|
5821
5821
|
initialValue: V.inventoryBindings ?? [],
|
|
5822
5822
|
name: V.name ?? V.fallbackName ?? "",
|
|
@@ -5839,13 +5839,13 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5839
5839
|
}, {
|
|
5840
5840
|
default: ({
|
|
5841
5841
|
trigger: ne
|
|
5842
|
-
}) =>
|
|
5842
|
+
}) => R(j("fm-tooltip"), {
|
|
5843
5843
|
content: "Inventory",
|
|
5844
5844
|
zIndex: 110
|
|
5845
5845
|
}, {
|
|
5846
5846
|
default: () => {
|
|
5847
5847
|
var q;
|
|
5848
|
-
return [
|
|
5848
|
+
return [R(j("fm-button"), {
|
|
5849
5849
|
variant: Ot.Tertiary,
|
|
5850
5850
|
prependIcon: "inventory_2",
|
|
5851
5851
|
overwriteIconOutline: (q = V.inventoryBindings) != null && q.length ? "filled" : "outline",
|
|
@@ -5854,7 +5854,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5854
5854
|
}, null)];
|
|
5855
5855
|
}
|
|
5856
5856
|
})
|
|
5857
|
-
}), k(V.combinationKey).link &&
|
|
5857
|
+
}), k(V.combinationKey).link && R(j("fm-button"), {
|
|
5858
5858
|
variant: Ot.Tertiary,
|
|
5859
5859
|
prependIcon: "delete",
|
|
5860
5860
|
textColor: pt.NeutralGray400,
|
|
@@ -5896,9 +5896,9 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5896
5896
|
name: "",
|
|
5897
5897
|
inventoryBindings: [],
|
|
5898
5898
|
price: Be.Dinero.zero().toObject(),
|
|
5899
|
-
isDynamicAddon: n.group.type ===
|
|
5899
|
+
isDynamicAddon: n.group.type === J.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
|
|
5900
5900
|
items: [],
|
|
5901
|
-
orderFrom:
|
|
5901
|
+
orderFrom: J.F_ORDER_FROM.enum.ALL
|
|
5902
5902
|
}
|
|
5903
5903
|
}
|
|
5904
5904
|
});
|
|
@@ -5945,7 +5945,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5945
5945
|
var q, oe;
|
|
5946
5946
|
const K = a.state.menu.modules.item.find((ce) => ce._id === z._id), ne = z.combinationKey ? {
|
|
5947
5947
|
...(q = K == null ? void 0 : K.variant) == null ? void 0 : q.variantCombinations.find((ce) => ce.combinationKey === z.combinationKey),
|
|
5948
|
-
name: _o(
|
|
5948
|
+
name: _o(Ce().variants, ((oe = K == null ? void 0 : K.variant) == null ? void 0 : oe.variantGroupIds) || [])[z.combinationKey]
|
|
5949
5949
|
} : K;
|
|
5950
5950
|
return ne == null ? void 0 : ne.name;
|
|
5951
5951
|
}, H = async (z) => {
|
|
@@ -5958,7 +5958,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5958
5958
|
...K,
|
|
5959
5959
|
name: G(K),
|
|
5960
5960
|
price: K.combinationKey ? q.variants[K.combinationKey || ""].price : q.price,
|
|
5961
|
-
orderFrom:
|
|
5961
|
+
orderFrom: J.F_ORDER_FROM.enum.ALL
|
|
5962
5962
|
};
|
|
5963
5963
|
})
|
|
5964
5964
|
}, i("update:unmap-group", V);
|
|
@@ -5973,12 +5973,12 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5973
5973
|
const be = yo(), Fe = U(() => be.breakpoints.value.xs);
|
|
5974
5974
|
return (z, V) => {
|
|
5975
5975
|
const K = j("fm-button"), ne = j("fm-table");
|
|
5976
|
-
return F(),
|
|
5976
|
+
return F(), Z(st, {
|
|
5977
5977
|
title: b(I)("menu.group.option.title")
|
|
5978
5978
|
}, {
|
|
5979
5979
|
"append-title": W(() => [z.config.link() ? (F(), re(ze, {
|
|
5980
5980
|
key: 0
|
|
5981
|
-
}, [m.value ? (F(), re("div", uc, [
|
|
5981
|
+
}, [m.value ? (F(), re("div", uc, [R(Lr, {
|
|
5982
5982
|
"categorized-items": z.categorizedItems,
|
|
5983
5983
|
"initial-value": c.value,
|
|
5984
5984
|
"show-variant": z.config.bindToVariant,
|
|
@@ -5988,7 +5988,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5988
5988
|
}, {
|
|
5989
5989
|
default: W(({
|
|
5990
5990
|
trigger: q
|
|
5991
|
-
}) => [
|
|
5991
|
+
}) => [R(K, {
|
|
5992
5992
|
"text-color": b(pt).ColorPrimary,
|
|
5993
5993
|
"border-color": b(pt).ColorPrimary,
|
|
5994
5994
|
variant: "secondary",
|
|
@@ -5997,7 +5997,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
5997
5997
|
onClick: q
|
|
5998
5998
|
}, null, 8, ["text-color", "border-color", "label", "onClick"])]),
|
|
5999
5999
|
_: 1
|
|
6000
|
-
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (F(), re("div", cc, [
|
|
6000
|
+
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (F(), re("div", cc, [R(K, {
|
|
6001
6001
|
"text-color": b(pt).ColorPrimary,
|
|
6002
6002
|
"border-color": b(pt).ColorPrimary,
|
|
6003
6003
|
variant: "secondary",
|
|
@@ -6005,14 +6005,14 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6005
6005
|
"prepend-icon": "add",
|
|
6006
6006
|
onClick: O
|
|
6007
6007
|
}, null, 8, ["text-color", "border-color", "label"])]))], 64)) : ae("", !0)]),
|
|
6008
|
-
default: W(() => [$("div", dc, [$("div", mc, [
|
|
6008
|
+
default: W(() => [$("div", dc, [$("div", mc, [R(ne, {
|
|
6009
6009
|
"column-defs": E.value,
|
|
6010
6010
|
"column-visibility": L.value,
|
|
6011
6011
|
draggable: !Fe.value && k(null).name,
|
|
6012
6012
|
"expanded-state": s.value ? {} : D.value,
|
|
6013
6013
|
"get-sub-row": Q,
|
|
6014
6014
|
"page-size": 999,
|
|
6015
|
-
"row-data":
|
|
6015
|
+
"row-data": C.value,
|
|
6016
6016
|
"search-value": b(p),
|
|
6017
6017
|
"shrink-at": !1,
|
|
6018
6018
|
"hide-footer": "",
|
|
@@ -6040,20 +6040,20 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6040
6040
|
emits: ["update:group", "submit:group", "status:show"],
|
|
6041
6041
|
setup(e, { expose: t, emit: n }) {
|
|
6042
6042
|
let i = e;
|
|
6043
|
-
const r = n, o =
|
|
6043
|
+
const r = n, o = Ce(), a = an(), l = at(), s = qe(), u = yt(bt(s)), m = ie(!1), d = ie(!1), c = (_) => {
|
|
6044
6044
|
sn.isBoolean(_) ? d.value = _ : d.value = !d.value;
|
|
6045
6045
|
}, p = U(() => i.group ? i.config(i.group) : null), w = U(() => [
|
|
6046
6046
|
{
|
|
6047
6047
|
label: "Normal",
|
|
6048
|
-
value:
|
|
6048
|
+
value: J.F_ADDON_GROUP_TYPE.enum.NORMAL
|
|
6049
6049
|
},
|
|
6050
6050
|
{
|
|
6051
6051
|
label: "Product",
|
|
6052
|
-
value:
|
|
6052
|
+
value: J.F_ADDON_GROUP_TYPE.enum.PRODUCT
|
|
6053
6053
|
},
|
|
6054
6054
|
{
|
|
6055
6055
|
label: "Dynamic",
|
|
6056
|
-
value:
|
|
6056
|
+
value: J.F_ADDON_GROUP_TYPE.enum.DYNAMIC
|
|
6057
6057
|
}
|
|
6058
6058
|
]);
|
|
6059
6059
|
function y(_) {
|
|
@@ -6081,7 +6081,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6081
6081
|
}).onPrimary(S) : S();
|
|
6082
6082
|
}
|
|
6083
6083
|
function f(_) {
|
|
6084
|
-
return new
|
|
6084
|
+
return new Co(o, u.updateMenu, l).mapGroups(
|
|
6085
6085
|
[_],
|
|
6086
6086
|
p.value.isOverride
|
|
6087
6087
|
)[0];
|
|
@@ -6098,8 +6098,8 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6098
6098
|
function A(_) {
|
|
6099
6099
|
return v(_) <= _.max || T("menu.common.validation.max_default_items", { max: _.max });
|
|
6100
6100
|
}
|
|
6101
|
-
const
|
|
6102
|
-
() => !ot.isEqual(i.group,
|
|
6101
|
+
const C = ie(ot.clone(i.group)), D = di(
|
|
6102
|
+
() => !ot.isEqual(i.group, C.value),
|
|
6103
6103
|
() => {
|
|
6104
6104
|
d.value = !1;
|
|
6105
6105
|
}
|
|
@@ -6108,12 +6108,12 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6108
6108
|
var _;
|
|
6109
6109
|
if (i.action === "add") {
|
|
6110
6110
|
const { group: S, linkItems: x } = Oo(i.group), G = {
|
|
6111
|
-
module:
|
|
6111
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.group,
|
|
6112
6112
|
operation: Oe.F_OPERATION_TYPE.create,
|
|
6113
6113
|
data: S,
|
|
6114
6114
|
link: [
|
|
6115
6115
|
{
|
|
6116
|
-
module:
|
|
6116
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.item,
|
|
6117
6117
|
id: "",
|
|
6118
6118
|
data: x
|
|
6119
6119
|
}
|
|
@@ -6139,10 +6139,13 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6139
6139
|
Ne(
|
|
6140
6140
|
() => d.value,
|
|
6141
6141
|
async (_) => {
|
|
6142
|
-
r("status:show", _), _ && (await vo(),
|
|
6142
|
+
r("status:show", _), _ && (await vo(), C.value = ot.clone(i.group));
|
|
6143
6143
|
}
|
|
6144
6144
|
);
|
|
6145
|
-
const L = U(() =>
|
|
6145
|
+
const L = U(() => {
|
|
6146
|
+
var _;
|
|
6147
|
+
return ((_ = a.groupAttributeSettings) == null ? void 0 : _.value.length) > 0 && !p.value.isOverride;
|
|
6148
|
+
}), O = U(() => {
|
|
6146
6149
|
const _ = {};
|
|
6147
6150
|
return o.state.menu.modules.group.forEach((S) => {
|
|
6148
6151
|
var x;
|
|
@@ -6160,8 +6163,8 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6160
6163
|
return (_, S) => {
|
|
6161
6164
|
const x = j("fm-text-field"), G = j("fm-stepper-field"), H = j("FmFormGroup"), Q = j("fm-radio"), _e = j("fm-radio-group"), be = j("fm-switch"), Fe = j("fm-button"), z = j("fm-side-sheet");
|
|
6162
6165
|
return F(), re(ze, null, [
|
|
6163
|
-
|
|
6164
|
-
|
|
6166
|
+
Re(_.$slots, "default", { trigger: c }),
|
|
6167
|
+
R(z, {
|
|
6165
6168
|
id: "group-form",
|
|
6166
6169
|
modelValue: d.value,
|
|
6167
6170
|
"onUpdate:modelValue": S[8] || (S[8] = (V) => d.value = V),
|
|
@@ -6178,14 +6181,14 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6178
6181
|
]),
|
|
6179
6182
|
"side-sheet-footer": W(() => [
|
|
6180
6183
|
$("div", gc, [
|
|
6181
|
-
|
|
6182
|
-
label: b(
|
|
6184
|
+
R(Fe, {
|
|
6185
|
+
label: b(Jr)(I.value),
|
|
6183
6186
|
loading: m.value,
|
|
6184
6187
|
size: "lg",
|
|
6185
6188
|
type: "submit",
|
|
6186
6189
|
variant: "primary"
|
|
6187
6190
|
}, null, 8, ["label", "loading"]),
|
|
6188
|
-
|
|
6191
|
+
R(Fe, {
|
|
6189
6192
|
label: b(T)("menu.common.actions.cancel"),
|
|
6190
6193
|
size: "lg",
|
|
6191
6194
|
variant: "tertiary",
|
|
@@ -6195,11 +6198,11 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6195
6198
|
]),
|
|
6196
6199
|
default: W(() => [
|
|
6197
6200
|
_.group ? (F(), re("div", hc, [
|
|
6198
|
-
|
|
6199
|
-
|
|
6201
|
+
Re(_.$slots, "variant-section"),
|
|
6202
|
+
R(Fr, null, {
|
|
6200
6203
|
default: W(() => [
|
|
6201
6204
|
$("div", null, [
|
|
6202
|
-
|
|
6205
|
+
R(x, {
|
|
6203
6206
|
modelValue: _.group.name,
|
|
6204
6207
|
"onUpdate:modelValue": S[0] || (S[0] = (V) => _.group.name = V),
|
|
6205
6208
|
disabled: !p.value.link(),
|
|
@@ -6210,18 +6213,18 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6210
6213
|
label: b(T)("menu.common.labels.group_name")
|
|
6211
6214
|
}, null, 8, ["modelValue", "disabled", "rules", "label"])
|
|
6212
6215
|
]),
|
|
6213
|
-
|
|
6216
|
+
R(H, {
|
|
6214
6217
|
"model-value": _.group.min + " " + _.group.max,
|
|
6215
6218
|
rules: [
|
|
6216
6219
|
() => Number.isInteger(_.group.min) && Number.isInteger(_.group.max) && _.group.min <= _.group.max || b(T)("menu.common.validation.min_max")
|
|
6217
6220
|
]
|
|
6218
6221
|
}, {
|
|
6219
6222
|
default: W(() => [
|
|
6220
|
-
|
|
6223
|
+
R(Qu, null, {
|
|
6221
6224
|
default: W(() => {
|
|
6222
6225
|
var V;
|
|
6223
6226
|
return [
|
|
6224
|
-
|
|
6227
|
+
R(G, {
|
|
6225
6228
|
modelValue: _.group.min,
|
|
6226
6229
|
"onUpdate:modelValue": S[1] || (S[1] = (K) => _.group.min = K),
|
|
6227
6230
|
disabled: !p.value.link(),
|
|
@@ -6229,7 +6232,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6229
6232
|
class: "flex-1",
|
|
6230
6233
|
label: b(T)("menu.common.labels.min_select")
|
|
6231
6234
|
}, null, 8, ["modelValue", "disabled", "label"]),
|
|
6232
|
-
|
|
6235
|
+
R(G, {
|
|
6233
6236
|
modelValue: _.group.max,
|
|
6234
6237
|
"onUpdate:modelValue": S[2] || (S[2] = (K) => _.group.max = K),
|
|
6235
6238
|
disabled: !((V = p.value) != null && V.link()),
|
|
@@ -6244,18 +6247,18 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6244
6247
|
]),
|
|
6245
6248
|
_: 1
|
|
6246
6249
|
}, 8, ["model-value", "rules"]),
|
|
6247
|
-
p.value.type ? (F(),
|
|
6250
|
+
p.value.type ? (F(), Z(wt, {
|
|
6248
6251
|
key: 0,
|
|
6249
6252
|
label: b(T)("menu.common.labels.group_type")
|
|
6250
6253
|
}, {
|
|
6251
6254
|
default: W(() => [
|
|
6252
|
-
|
|
6255
|
+
R(_e, {
|
|
6253
6256
|
disabled: !p.value.type,
|
|
6254
6257
|
"model-value": _.group.type,
|
|
6255
6258
|
"onUpdate:modelValue": S[3] || (S[3] = (V) => k(V))
|
|
6256
6259
|
}, {
|
|
6257
6260
|
default: W(() => [
|
|
6258
|
-
(F(!0), re(ze, null, _t(w.value, (V) => (F(),
|
|
6261
|
+
(F(!0), re(ze, null, _t(w.value, (V) => (F(), Z(Q, {
|
|
6259
6262
|
key: V.value,
|
|
6260
6263
|
label: b(T)(`menu.group.types.${V.label.toLowerCase()}`),
|
|
6261
6264
|
value: V.value
|
|
@@ -6266,11 +6269,11 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6266
6269
|
]),
|
|
6267
6270
|
_: 1
|
|
6268
6271
|
}, 8, ["label"])) : ae("", !0),
|
|
6269
|
-
|
|
6272
|
+
R(wt, {
|
|
6270
6273
|
label: b(T)("menu.common.labels.configuration")
|
|
6271
6274
|
}, {
|
|
6272
6275
|
default: W(() => [
|
|
6273
|
-
|
|
6276
|
+
R(be, {
|
|
6274
6277
|
modelValue: _.group.stackable,
|
|
6275
6278
|
"onUpdate:modelValue": S[4] || (S[4] = (V) => _.group.stackable = V),
|
|
6276
6279
|
disabled: !p.value.link(),
|
|
@@ -6281,13 +6284,13 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6281
6284
|
]),
|
|
6282
6285
|
_: 1
|
|
6283
6286
|
}, 8, ["label"]),
|
|
6284
|
-
L.value ? (F(),
|
|
6287
|
+
L.value ? (F(), Z(st, {
|
|
6285
6288
|
key: 1,
|
|
6286
6289
|
title: b(T)("menu.group.form.tagging.title"),
|
|
6287
6290
|
"sub-title": b(T)("menu.group.form.tagging.subtitle")
|
|
6288
6291
|
}, {
|
|
6289
6292
|
default: W(() => [
|
|
6290
|
-
|
|
6293
|
+
R(b(bo), {
|
|
6291
6294
|
entity: "group",
|
|
6292
6295
|
"model-value": _.group.customAttributes || {},
|
|
6293
6296
|
"onUpdate:modelValue": M,
|
|
@@ -6299,7 +6302,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6299
6302
|
]),
|
|
6300
6303
|
_: 1
|
|
6301
6304
|
}),
|
|
6302
|
-
|
|
6305
|
+
R(H, {
|
|
6303
6306
|
tag: "div",
|
|
6304
6307
|
modelValue: _.group,
|
|
6305
6308
|
rules: [A],
|
|
@@ -6309,7 +6312,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6309
6312
|
})
|
|
6310
6313
|
}, {
|
|
6311
6314
|
default: W(() => [
|
|
6312
|
-
|
|
6315
|
+
R(pc, {
|
|
6313
6316
|
"allow-refund-inventory": _.allowRefundInventory ?? !1,
|
|
6314
6317
|
"categorized-items": _.categorizedItems,
|
|
6315
6318
|
config: p.value,
|
|
@@ -6336,8 +6339,8 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6336
6339
|
},
|
|
6337
6340
|
emits: ["update:combinations"],
|
|
6338
6341
|
setup(e, { expose: t, emit: n }) {
|
|
6339
|
-
var
|
|
6340
|
-
const i = e, r = n, o =
|
|
6342
|
+
var C, D;
|
|
6343
|
+
const i = e, r = n, o = Ce(), a = at(), l = yt(bt(qe())), s = ie([]), u = ie(i.combinations[0].combinationKey || ""), m = U(
|
|
6341
6344
|
() => s.value.findIndex((I) => I.combinationKey == u.value)
|
|
6342
6345
|
), d = U(
|
|
6343
6346
|
() => i.combinations.map((I) => ({
|
|
@@ -6369,7 +6372,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6369
6372
|
};
|
|
6370
6373
|
})
|
|
6371
6374
|
};
|
|
6372
|
-
return new
|
|
6375
|
+
return new Co(o, l.updateMenu, a).mapGroups([M], !0)[0];
|
|
6373
6376
|
});
|
|
6374
6377
|
function p(I) {
|
|
6375
6378
|
var M, T;
|
|
@@ -6388,7 +6391,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6388
6391
|
}
|
|
6389
6392
|
function y(I) {
|
|
6390
6393
|
return {
|
|
6391
|
-
isV4: o.version ===
|
|
6394
|
+
isV4: o.version === J.F_MENU_VERSION.enum.v4,
|
|
6392
6395
|
isDefault: (E) => !1,
|
|
6393
6396
|
link: (E) => !1,
|
|
6394
6397
|
orderFrom: (E) => !0,
|
|
@@ -6417,13 +6420,13 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6417
6420
|
);
|
|
6418
6421
|
const v = ie();
|
|
6419
6422
|
t({
|
|
6420
|
-
show: (
|
|
6423
|
+
show: (C = v.value) == null ? void 0 : C.show,
|
|
6421
6424
|
trigger: (D = v.value) == null ? void 0 : D.trigger
|
|
6422
6425
|
});
|
|
6423
6426
|
const { t: A } = Ee();
|
|
6424
6427
|
return (I, E) => {
|
|
6425
6428
|
const L = j("fm-select"), O = j("fm-button"), M = j("fm-card");
|
|
6426
|
-
return F(),
|
|
6429
|
+
return F(), Z(mr, {
|
|
6427
6430
|
ref_key: "sheet",
|
|
6428
6431
|
ref: v,
|
|
6429
6432
|
"allow-refund-inventory": !0,
|
|
@@ -6437,10 +6440,10 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6437
6440
|
"onStatus:show": E[5] || (E[5] = (T) => f.value = T)
|
|
6438
6441
|
}, {
|
|
6439
6442
|
default: W(({ trigger: T }) => [
|
|
6440
|
-
|
|
6443
|
+
Re(I.$slots, "default", { trigger: T })
|
|
6441
6444
|
]),
|
|
6442
6445
|
"variant-section": W(() => [
|
|
6443
|
-
u.value ? (F(),
|
|
6446
|
+
u.value ? (F(), Z(M, {
|
|
6444
6447
|
key: 0,
|
|
6445
6448
|
class: "p-16 bg-fm-color-neutral-gray-100 space-y-24",
|
|
6446
6449
|
variant: "outlined"
|
|
@@ -6448,20 +6451,20 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6448
6451
|
default: W(() => [
|
|
6449
6452
|
$("p", vc, we(b(A)("menu.group.option.variant")), 1),
|
|
6450
6453
|
$("div", _c, [
|
|
6451
|
-
|
|
6454
|
+
R(L, {
|
|
6452
6455
|
modelValue: u.value,
|
|
6453
6456
|
"onUpdate:modelValue": E[0] || (E[0] = (T) => u.value = T),
|
|
6454
6457
|
items: d.value,
|
|
6455
6458
|
class: "flex-1"
|
|
6456
6459
|
}, null, 8, ["modelValue", "items"]),
|
|
6457
6460
|
$("div", bc, [
|
|
6458
|
-
|
|
6461
|
+
R(O, {
|
|
6459
6462
|
variant: b(Ot).Tertiary,
|
|
6460
6463
|
"prepend-icon": "keyboard_arrow_left",
|
|
6461
6464
|
size: "lg",
|
|
6462
6465
|
onClick: E[1] || (E[1] = (T) => w("left"))
|
|
6463
6466
|
}, null, 8, ["variant"]),
|
|
6464
|
-
|
|
6467
|
+
R(O, {
|
|
6465
6468
|
variant: b(Ot).Tertiary,
|
|
6466
6469
|
"prepend-icon": "keyboard_arrow_right",
|
|
6467
6470
|
size: "lg",
|
|
@@ -6480,16 +6483,16 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6480
6483
|
}), wc = mr, fo = Xu, Ec = yc, Sc = {
|
|
6481
6484
|
key: 0,
|
|
6482
6485
|
class: "flex flex-col space-y-16 h-[440px]"
|
|
6483
|
-
}, kc = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Ac = { class: "flex justify-between pb-16" }, Oc = { class: "flex gap-8" },
|
|
6486
|
+
}, kc = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Ac = { class: "flex justify-between pb-16" }, Oc = { class: "flex gap-8" }, Cc = {
|
|
6484
6487
|
key: 1,
|
|
6485
6488
|
class: "flex flex-col items-center space-y-16"
|
|
6486
|
-
},
|
|
6489
|
+
}, Rc = { class: "flex flex-col items-center space-y-4 w-full" }, Tc = { class: "fm-typo-en-title-sm-600" }, Ic = { class: "text-fm-color-typo-secondary" }, Mc = /* @__PURE__ */ fe({
|
|
6487
6490
|
__name: "SelectGroupDialog",
|
|
6488
6491
|
props: {
|
|
6489
6492
|
groupIds: {}
|
|
6490
6493
|
},
|
|
6491
6494
|
setup(e) {
|
|
6492
|
-
const t = e, n = at(), { emitData: i, emitAction: r } = ci(), o =
|
|
6495
|
+
const t = e, n = at(), { emitData: i, emitAction: r } = ci(), o = Ce(), a = U(() => o.rules.group), l = U(() => o.groups);
|
|
6493
6496
|
function s(k) {
|
|
6494
6497
|
return ge(k ?? []).sort((v, A) => v.position - A.position);
|
|
6495
6498
|
}
|
|
@@ -6503,21 +6506,21 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6503
6506
|
}))
|
|
6504
6507
|
]), d = U(() => !!o.state.currentCatalogId || !!o.state.currentSchedulerId);
|
|
6505
6508
|
U(() => {
|
|
6506
|
-
const k = !o.state.currentSchedulerId, f = o.rules.group.type, v = o.version ==
|
|
6509
|
+
const k = !o.state.currentSchedulerId, f = o.rules.group.type, v = o.version == J.F_MENU_VERSION.enum.v3, A = o.rules.item.orderFromActiveOnly, C = o.rules.item.bindToVariant;
|
|
6507
6510
|
return function(I) {
|
|
6508
6511
|
return {
|
|
6509
6512
|
isDefault: (E) => !d.value && !E,
|
|
6510
|
-
link: (E) => !d.value && (!E ||
|
|
6513
|
+
link: (E) => !d.value && (!E || C),
|
|
6511
6514
|
name: (E) => !d.value && !E,
|
|
6512
6515
|
type: f && !I._id && !d.value,
|
|
6513
|
-
price: I.type !=
|
|
6516
|
+
price: I.type != J.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
|
|
6514
6517
|
priceEdit: !0,
|
|
6515
6518
|
priceTier: o.isV4,
|
|
6516
|
-
inventory: k ? v ? !d.value && I.type ==
|
|
6517
|
-
orderFrom: (E) => k ? v ? I.type ==
|
|
6519
|
+
inventory: k ? v ? !d.value && I.type == J.F_ADDON_GROUP_TYPE.enum.NORMAL : !d.value : !1,
|
|
6520
|
+
orderFrom: (E) => k ? v ? I.type == J.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? d.value : !!d.value == !E : d.value : !1,
|
|
6518
6521
|
orderFromActiveOnly: A,
|
|
6519
|
-
showOrderFrom: k ? v ? d.value ? !0 : I.type ==
|
|
6520
|
-
bindToVariant:
|
|
6522
|
+
showOrderFrom: k ? v ? d.value ? !0 : I.type == J.F_ADDON_GROUP_TYPE.enum.PRODUCT : d.value : !1,
|
|
6523
|
+
bindToVariant: C,
|
|
6521
6524
|
isOverride: d.value,
|
|
6522
6525
|
isItemGroup: !1,
|
|
6523
6526
|
isV4: !v
|
|
@@ -6525,7 +6528,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6525
6528
|
};
|
|
6526
6529
|
}), U(() => ({
|
|
6527
6530
|
...He.generator.initMenuV4Group(),
|
|
6528
|
-
type: o.version ===
|
|
6531
|
+
type: o.version === J.F_MENU_VERSION.enum.v4 ? J.F_ADDON_GROUP_TYPE.enum.PRODUCT : J.F_ADDON_GROUP_TYPE.enum.NORMAL,
|
|
6529
6532
|
items: {},
|
|
6530
6533
|
position: o.groups.length - 1,
|
|
6531
6534
|
itemsLinked: []
|
|
@@ -6534,10 +6537,10 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6534
6537
|
i(c.value), r("primary"), n.close();
|
|
6535
6538
|
};
|
|
6536
6539
|
return (k, f) => {
|
|
6537
|
-
const v = j("FmSearch"), A = j("FmCheckbox"),
|
|
6540
|
+
const v = j("FmSearch"), A = j("FmCheckbox"), C = j("FmButton");
|
|
6538
6541
|
return m.value.length > 0 ? (F(), re("div", Sc, [
|
|
6539
6542
|
$("div", null, [
|
|
6540
|
-
|
|
6543
|
+
R(v, {
|
|
6541
6544
|
autofocus: "",
|
|
6542
6545
|
modelValue: p.value,
|
|
6543
6546
|
"onUpdate:modelValue": f[0] || (f[0] = (D) => p.value = D),
|
|
@@ -6549,7 +6552,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6549
6552
|
(F(!0), re(ze, null, _t(m.value, (D) => (F(), re("div", {
|
|
6550
6553
|
key: D.value
|
|
6551
6554
|
}, [
|
|
6552
|
-
Nt(
|
|
6555
|
+
Nt(R(A, {
|
|
6553
6556
|
modelValue: c.value,
|
|
6554
6557
|
"onUpdate:modelValue": [
|
|
6555
6558
|
f[1] || (f[1] = (I) => c.value = I),
|
|
@@ -6564,9 +6567,9 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6564
6567
|
])
|
|
6565
6568
|
]),
|
|
6566
6569
|
$("div", Ac, [
|
|
6567
|
-
|
|
6570
|
+
R(b(fo), null, {
|
|
6568
6571
|
default: W(({ trigger: D }) => [
|
|
6569
|
-
C
|
|
6572
|
+
R(C, {
|
|
6570
6573
|
label: b(w)("menu.common.actions.add_group"),
|
|
6571
6574
|
variant: "tertiary",
|
|
6572
6575
|
"text-color": "primary",
|
|
@@ -6576,25 +6579,25 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6576
6579
|
_: 1
|
|
6577
6580
|
}),
|
|
6578
6581
|
$("div", Oc, [
|
|
6579
|
-
C
|
|
6582
|
+
R(C, {
|
|
6580
6583
|
label: b(w)("menu.common.actions.cancel"),
|
|
6581
6584
|
variant: "tertiary",
|
|
6582
6585
|
onClick: f[3] || (f[3] = (D) => b(n).close())
|
|
6583
6586
|
}, null, 8, ["label"]),
|
|
6584
|
-
C
|
|
6587
|
+
R(C, {
|
|
6585
6588
|
label: b(w)("menu.common.actions.confirm"),
|
|
6586
6589
|
onClick: f[4] || (f[4] = (D) => y())
|
|
6587
6590
|
}, null, 8, ["label"])
|
|
6588
6591
|
])
|
|
6589
6592
|
])
|
|
6590
|
-
])) : (F(), re("div",
|
|
6591
|
-
$("div",
|
|
6593
|
+
])) : (F(), re("div", Cc, [
|
|
6594
|
+
$("div", Rc, [
|
|
6592
6595
|
$("p", Tc, we(b(w)("menu.common.empty.no_group.title")), 1),
|
|
6593
6596
|
$("p", Ic, we(b(w)("menu.common.empty.no_group.subtitle")), 1)
|
|
6594
6597
|
]),
|
|
6595
|
-
|
|
6598
|
+
R(b(fo), null, {
|
|
6596
6599
|
default: W(({ trigger: D }) => [
|
|
6597
|
-
C
|
|
6600
|
+
R(C, {
|
|
6598
6601
|
label: b(w)("menu.common.actions.add_group"),
|
|
6599
6602
|
icon: "add",
|
|
6600
6603
|
onClick: (I) => D()
|
|
@@ -6622,7 +6625,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6622
6625
|
setup(e, {
|
|
6623
6626
|
emit: t
|
|
6624
6627
|
}) {
|
|
6625
|
-
const n = e, i = qe(), r =
|
|
6628
|
+
const n = e, i = qe(), r = Ce(), o = Ai(), a = at(), {
|
|
6626
6629
|
t: l
|
|
6627
6630
|
} = Ee(), s = t, u = U(() => r.rules.group), m = U(() => r.rules.item), d = U(() => r.groups);
|
|
6628
6631
|
yt(bt(qe())), ie(!1);
|
|
@@ -6698,20 +6701,20 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6698
6701
|
size: 200,
|
|
6699
6702
|
cell: (_) => {
|
|
6700
6703
|
const S = _.row.original._id, G = y(S).join(", ");
|
|
6701
|
-
return
|
|
6704
|
+
return R(Ve.FmTooltip, {
|
|
6702
6705
|
"z-index": 51,
|
|
6703
6706
|
class: "flex",
|
|
6704
6707
|
variant: "rich",
|
|
6705
6708
|
placement: "top"
|
|
6706
6709
|
}, {
|
|
6707
|
-
default: () =>
|
|
6710
|
+
default: () => R("div", {
|
|
6708
6711
|
class: "line-clamp-2 break-all"
|
|
6709
6712
|
}, [G]),
|
|
6710
|
-
content: () =>
|
|
6713
|
+
content: () => R("div", {
|
|
6711
6714
|
class: "py-12 px-16 space-y-12"
|
|
6712
|
-
}, [
|
|
6715
|
+
}, [R("p", {
|
|
6713
6716
|
class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600"
|
|
6714
|
-
}, [l("menu.group.list.columns.products")]),
|
|
6717
|
+
}, [l("menu.group.list.columns.products")]), R("div", {
|
|
6715
6718
|
class: "flex flex-wrap gap-8"
|
|
6716
6719
|
}, [G])])
|
|
6717
6720
|
});
|
|
@@ -6752,9 +6755,9 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6752
6755
|
})]);
|
|
6753
6756
|
}
|
|
6754
6757
|
}]), A = U(() => ({
|
|
6755
|
-
type: r.version !==
|
|
6758
|
+
type: r.version !== J.F_MENU_VERSION.enum.v4
|
|
6756
6759
|
}));
|
|
6757
|
-
function
|
|
6760
|
+
function C() {
|
|
6758
6761
|
a.open({
|
|
6759
6762
|
title: l("menu.product.form.group.add"),
|
|
6760
6763
|
contentComponent: Mc,
|
|
@@ -6821,11 +6824,11 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6821
6824
|
if (!_) return !1;
|
|
6822
6825
|
if (m.value.overrideProductGroup) return !0;
|
|
6823
6826
|
switch ((x = k.value[_]) == null ? void 0 : x.type) {
|
|
6824
|
-
case
|
|
6827
|
+
case J.F_ADDON_GROUP_TYPE.enum.DYNAMIC:
|
|
6825
6828
|
return !0;
|
|
6826
|
-
case
|
|
6829
|
+
case J.F_ADDON_GROUP_TYPE.enum.PRODUCT:
|
|
6827
6830
|
return m.value.overrideProductGroup;
|
|
6828
|
-
case
|
|
6831
|
+
case J.F_ADDON_GROUP_TYPE.enum.NORMAL:
|
|
6829
6832
|
return !1;
|
|
6830
6833
|
default:
|
|
6831
6834
|
return !1;
|
|
@@ -6833,7 +6836,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6833
6836
|
}
|
|
6834
6837
|
Ne(() => d.value.length, () => D([...p.value, d.value[d.value.length - 1]._id])), U(() => ({
|
|
6835
6838
|
...He.generator.initMenuV4Group(),
|
|
6836
|
-
type: r.version ===
|
|
6839
|
+
type: r.version === J.F_MENU_VERSION.enum.v4 ? J.F_ADDON_GROUP_TYPE.enum.PRODUCT : J.F_ADDON_GROUP_TYPE.enum.NORMAL,
|
|
6837
6840
|
items: {},
|
|
6838
6841
|
position: r.groups.length - 1,
|
|
6839
6842
|
itemsLinked: []
|
|
@@ -6850,21 +6853,21 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6850
6853
|
};
|
|
6851
6854
|
return (_, S) => {
|
|
6852
6855
|
const x = j("FmButton"), G = j("FmTable");
|
|
6853
|
-
return F(),
|
|
6856
|
+
return F(), Z(st, {
|
|
6854
6857
|
title: b(l)("menu.product.form.group.title"),
|
|
6855
6858
|
"sub-title": b(l)("menu.product.form.group.subtitle")
|
|
6856
6859
|
}, {
|
|
6857
|
-
"append-title": W(() => [
|
|
6860
|
+
"append-title": W(() => [R(x, {
|
|
6858
6861
|
class: "flex-shrink-0",
|
|
6859
6862
|
label: b(l)("menu.product.form.group.add"),
|
|
6860
6863
|
"prepend-icon": "add",
|
|
6861
6864
|
variant: "secondary",
|
|
6862
|
-
onClick:
|
|
6865
|
+
onClick: C
|
|
6863
6866
|
}, null, 8, ["label"])]),
|
|
6864
|
-
default: W(() => [
|
|
6867
|
+
default: W(() => [R(ur, null, {
|
|
6865
6868
|
default: W(() => {
|
|
6866
6869
|
var H;
|
|
6867
|
-
return [((H = p.value) == null ? void 0 : H.length) > 0 ? (F(),
|
|
6870
|
+
return [((H = p.value) == null ? void 0 : H.length) > 0 ? (F(), Z(G, {
|
|
6868
6871
|
key: 0,
|
|
6869
6872
|
"column-defs": v.value,
|
|
6870
6873
|
"column-visibility": A.value,
|
|
@@ -6906,7 +6909,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6906
6909
|
}) {
|
|
6907
6910
|
const {
|
|
6908
6911
|
t: n
|
|
6909
|
-
} = Ee(), i = e, r = t, o =
|
|
6912
|
+
} = Ee(), i = e, r = t, o = Ce(), a = U(() => o.rules.item), l = U(() => a.value.inventory);
|
|
6910
6913
|
function s(y, k, f, v) {
|
|
6911
6914
|
return !k || k && k.length === 0 ? [{
|
|
6912
6915
|
_id: "",
|
|
@@ -6926,10 +6929,10 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6926
6929
|
return s(i.form.inventoryBindings || [], ((y = i.form.variant) == null ? void 0 : y.variantCombinations) || [], u.value, o.variants);
|
|
6927
6930
|
});
|
|
6928
6931
|
function d(y, k) {
|
|
6929
|
-
var
|
|
6932
|
+
var C, D;
|
|
6930
6933
|
let f = ot.clone(i.form);
|
|
6931
6934
|
const v = f.variant;
|
|
6932
|
-
if ((((
|
|
6935
|
+
if ((((C = v == null ? void 0 : v.variantCombinations) == null ? void 0 : C.length) ?? 0) > 0 && v) {
|
|
6933
6936
|
const I = v.variantCombinations.findIndex((L) => L.combinationKey === y);
|
|
6934
6937
|
if (I < 0) return;
|
|
6935
6938
|
const E = ot.clone(v.variantCombinations);
|
|
@@ -6977,9 +6980,9 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6977
6980
|
enableSorting: !1,
|
|
6978
6981
|
cell: (y) => {
|
|
6979
6982
|
const k = y.row.original;
|
|
6980
|
-
return l.value ?
|
|
6983
|
+
return l.value ? R("div", {
|
|
6981
6984
|
class: "flex items-center justify-end"
|
|
6982
|
-
}, [
|
|
6985
|
+
}, [R(ui, {
|
|
6983
6986
|
name: k.name,
|
|
6984
6987
|
initialValue: k.bindings ?? [],
|
|
6985
6988
|
title: n("menu.inventory.dialog.title", {
|
|
@@ -6991,7 +6994,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
6991
6994
|
}, {
|
|
6992
6995
|
default: ({
|
|
6993
6996
|
trigger: f
|
|
6994
|
-
}) =>
|
|
6997
|
+
}) => R(j("fm-button"), {
|
|
6995
6998
|
variant: Ot.Tertiary,
|
|
6996
6999
|
prependIcon: "edit",
|
|
6997
7000
|
textColor: pt.NeutralGray400,
|
|
@@ -7010,11 +7013,11 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7010
7013
|
const w = So();
|
|
7011
7014
|
return Bt(() => {
|
|
7012
7015
|
w.readInventory();
|
|
7013
|
-
}), (y, k) => (F(),
|
|
7016
|
+
}), (y, k) => (F(), Z(st, {
|
|
7014
7017
|
title: b(n)("menu.inventory.title"),
|
|
7015
7018
|
subTitle: b(n)("menu.inventory.subtitle")
|
|
7016
7019
|
}, {
|
|
7017
|
-
default: W(() => [$("div", Nc, [$("div", Pc, [(F(!0), re(ze, null, _t(m.value, (f) => (F(),
|
|
7020
|
+
default: W(() => [$("div", Nc, [$("div", Pc, [(F(!0), re(ze, null, _t(m.value, (f) => (F(), Z(b(ui), {
|
|
7018
7021
|
key: f._id,
|
|
7019
7022
|
ref_for: !0,
|
|
7020
7023
|
ref_key: "inventoryManagerForms",
|
|
@@ -7028,7 +7031,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7028
7031
|
"onUpdate:inventory": (v) => {
|
|
7029
7032
|
d(f._id, v);
|
|
7030
7033
|
}
|
|
7031
|
-
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)),
|
|
7034
|
+
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), R(b(Xr), {
|
|
7032
7035
|
"row-data": m.value,
|
|
7033
7036
|
onRowClick: p
|
|
7034
7037
|
}, null, 8, ["row-data"])])])]),
|
|
@@ -7036,7 +7039,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7036
7039
|
}, 8, ["title", "subTitle"]));
|
|
7037
7040
|
}
|
|
7038
7041
|
}), Fc = {
|
|
7039
|
-
class: /* @__PURE__ */
|
|
7042
|
+
class: /* @__PURE__ */ Je(["flex space-x-16", "xs:flex-col xs:space-x-0 xs:space-y-16"])
|
|
7040
7043
|
}, xc = { class: "space-y-16" }, Uc = { class: "space-y-8" }, Vc = {
|
|
7041
7044
|
key: 0,
|
|
7042
7045
|
class: "pl-32 pb-4 space-x-16 flex items-center"
|
|
@@ -7059,9 +7062,9 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7059
7062
|
},
|
|
7060
7063
|
emits: ["update:form"],
|
|
7061
7064
|
setup(e, { emit: t }) {
|
|
7062
|
-
const n = e, i = an(), r =
|
|
7063
|
-
var
|
|
7064
|
-
const v = n.isOverride ? ((
|
|
7065
|
+
const n = e, i = an(), r = Ce(), o = ko(), { t: a } = Ee(), l = t, s = U(() => r.rules.item), u = U(() => {
|
|
7066
|
+
var C, D;
|
|
7067
|
+
const v = n.isOverride ? ((C = n.fallback) == null ? void 0 : C.unit) ?? ((D = n.fallback) == null ? void 0 : D.perXUnit) : void 0, A = n.form.unit ?? n.form.perXUnit ?? v;
|
|
7065
7068
|
return A != null;
|
|
7066
7069
|
}), m = (v) => {
|
|
7067
7070
|
l("update:form", "unit", v ? "" : void 0), l("update:form", "perXUnit", v ? 0 : void 0);
|
|
@@ -7080,8 +7083,8 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7080
7083
|
}
|
|
7081
7084
|
function w(v) {
|
|
7082
7085
|
if (!v && n.form.perXUnit) {
|
|
7083
|
-
const [A,
|
|
7084
|
-
if (
|
|
7086
|
+
const [A, C] = n.form.perXUnit.toString().split(".");
|
|
7087
|
+
if (C && C.length > 4) {
|
|
7085
7088
|
const I = (typeof n.form.perXUnit == "string" ? parseFloat(n.form.perXUnit) : n.form.perXUnit).toFixed(4);
|
|
7086
7089
|
l("update:form", "perXUnit", parseFloat(I));
|
|
7087
7090
|
}
|
|
@@ -7089,7 +7092,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7089
7092
|
}
|
|
7090
7093
|
const y = ie(!1);
|
|
7091
7094
|
async function k() {
|
|
7092
|
-
var A,
|
|
7095
|
+
var A, C, D, I, E, L, O;
|
|
7093
7096
|
if (!(n.form.name || "")) {
|
|
7094
7097
|
const M = document.getElementById("product-name");
|
|
7095
7098
|
if (M) {
|
|
@@ -7112,7 +7115,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7112
7115
|
Ge,
|
|
7113
7116
|
{
|
|
7114
7117
|
name: n.form.name || "",
|
|
7115
|
-
lat: (D = (
|
|
7118
|
+
lat: (D = (C = (A = i.currentRestaurant) == null ? void 0 : A.value) == null ? void 0 : C.profile.address.coordinates) == null ? void 0 : D[1],
|
|
7116
7119
|
lon: (L = (E = (I = i.currentRestaurant) == null ? void 0 : I.value) == null ? void 0 : E.profile.address.coordinates) == null ? void 0 : L[0]
|
|
7117
7120
|
},
|
|
7118
7121
|
!0
|
|
@@ -7126,15 +7129,15 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7126
7129
|
return (v = r.currentCatalog) == null ? void 0 : v.usePriceTiers;
|
|
7127
7130
|
});
|
|
7128
7131
|
return (v, A) => {
|
|
7129
|
-
const
|
|
7130
|
-
return F(),
|
|
7132
|
+
const C = j("fm-select"), D = j("FmButton"), I = j("fm-checkbox"), E = j("fm-text-field"), L = Wn("tooltip");
|
|
7133
|
+
return F(), Z(st, {
|
|
7131
7134
|
title: b(a)("menu.product.form.price.title")
|
|
7132
7135
|
}, {
|
|
7133
7136
|
default: W(() => {
|
|
7134
7137
|
var O;
|
|
7135
7138
|
return [
|
|
7136
7139
|
$("div", Fc, [
|
|
7137
|
-
|
|
7140
|
+
R(Dt, {
|
|
7138
7141
|
disable: !!f.value && b(r).currentCatalog && !b(r).currentScheduler,
|
|
7139
7142
|
min: 0,
|
|
7140
7143
|
"model-value": v.form.price || null,
|
|
@@ -7148,7 +7151,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7148
7151
|
"onUpdate:modelValue": A[0] || (A[0] = (M) => M && l("update:form", "price", M))
|
|
7149
7152
|
}, {
|
|
7150
7153
|
append: W(() => [
|
|
7151
|
-
Nt(
|
|
7154
|
+
Nt(R(Ho, {
|
|
7152
7155
|
"pure-styling": "",
|
|
7153
7156
|
onClick: k
|
|
7154
7157
|
}, null, 512), [
|
|
@@ -7157,7 +7160,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7157
7160
|
]),
|
|
7158
7161
|
_: 1
|
|
7159
7162
|
}, 8, ["disable", "model-value", "placeholder", "rules", "label"]),
|
|
7160
|
-
C
|
|
7163
|
+
R(C, {
|
|
7161
7164
|
disabled: !s.value.tax || !d.value.systemCode,
|
|
7162
7165
|
items: d.value.countryTaxOptions,
|
|
7163
7166
|
label: d.value.systemCode ? b(a)("menu.product.form.price.fields.tax.label_with_code", {
|
|
@@ -7170,13 +7173,13 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7170
7173
|
"onUpdate:modelValue": A[1] || (A[1] = (M) => l("update:form", "taxes", [b(Pn).decodeTax(M)]))
|
|
7171
7174
|
}, null, 8, ["disabled", "items", "label", "model-value"])
|
|
7172
7175
|
]),
|
|
7173
|
-
!v.isOverride && b(r).isV4 ? (F(),
|
|
7176
|
+
!v.isOverride && b(r).isV4 ? (F(), Z(wt, {
|
|
7174
7177
|
key: 0,
|
|
7175
7178
|
label: b(a)("menu.price_tier.price_group"),
|
|
7176
7179
|
description: b(a)("menu.price_tier.description")
|
|
7177
7180
|
}, {
|
|
7178
7181
|
append: W(() => [
|
|
7179
|
-
|
|
7182
|
+
R(D, {
|
|
7180
7183
|
label: b(a)("menu.price_tier.add_price_group"),
|
|
7181
7184
|
icon: "add",
|
|
7182
7185
|
variant: "secondary",
|
|
@@ -7186,7 +7189,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7186
7189
|
default: W(() => {
|
|
7187
7190
|
var M;
|
|
7188
7191
|
return [
|
|
7189
|
-
v.isOverride ? ae("", !0) : (F(),
|
|
7192
|
+
v.isOverride ? ae("", !0) : (F(), Z(cr, {
|
|
7190
7193
|
key: 0,
|
|
7191
7194
|
"price-tiers": b(o).priceTiers.value,
|
|
7192
7195
|
"model-value": v.form.priceTiers || ((M = v.fallback) == null ? void 0 : M.priceTiers) || {},
|
|
@@ -7197,14 +7200,14 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7197
7200
|
}),
|
|
7198
7201
|
_: 1
|
|
7199
7202
|
}, 8, ["label", "description"])) : ae("", !0),
|
|
7200
|
-
|
|
7203
|
+
R(wt, {
|
|
7201
7204
|
label: b(a)("menu.product.form.price.settings.title")
|
|
7202
7205
|
}, {
|
|
7203
7206
|
default: W(() => {
|
|
7204
7207
|
var M, T, _;
|
|
7205
7208
|
return [
|
|
7206
7209
|
$("div", xc, [
|
|
7207
|
-
|
|
7210
|
+
R(I, {
|
|
7208
7211
|
disabled: !s.value.openPrice || v.isAddon,
|
|
7209
7212
|
"model-value": v.form.openPrice ?? ((M = v.fallback) == null ? void 0 : M.openPrice) ?? !1,
|
|
7210
7213
|
value: v.form.openPrice,
|
|
@@ -7213,7 +7216,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7213
7216
|
"onUpdate:modelValue": A[3] || (A[3] = (S) => l("update:form", "openPrice", S))
|
|
7214
7217
|
}, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
|
|
7215
7218
|
$("div", Uc, [
|
|
7216
|
-
|
|
7219
|
+
R(I, {
|
|
7217
7220
|
disabled: !s.value.unit || v.isAddon,
|
|
7218
7221
|
"model-value": u.value,
|
|
7219
7222
|
value: u.value,
|
|
@@ -7224,7 +7227,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7224
7227
|
u.value ? (F(), re("div", Vc, [
|
|
7225
7228
|
$("p", zc, we(b(a)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
|
|
7226
7229
|
$("div", $c, [
|
|
7227
|
-
|
|
7230
|
+
R(E, {
|
|
7228
7231
|
disabled: !s.value.unit,
|
|
7229
7232
|
"model-value": v.form.perXUnit || ((T = v.fallback) == null ? void 0 : T.perXUnit) || null,
|
|
7230
7233
|
rules: [
|
|
@@ -7239,7 +7242,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7239
7242
|
}, null, 8, ["disabled", "model-value", "rules", "placeholder"])
|
|
7240
7243
|
]),
|
|
7241
7244
|
$("div", Bc, [
|
|
7242
|
-
|
|
7245
|
+
R(E, {
|
|
7243
7246
|
disabled: !s.value.unit,
|
|
7244
7247
|
"model-value": v.form.unit || ((_ = v.fallback) == null ? void 0 : _.unit) || null,
|
|
7245
7248
|
rules: [
|
|
@@ -7252,7 +7255,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7252
7255
|
])) : ae("", !0)
|
|
7253
7256
|
]),
|
|
7254
7257
|
s.value.costing ? (F(), re("div", Gc, [
|
|
7255
|
-
|
|
7258
|
+
R(I, {
|
|
7256
7259
|
"model-value": !!v.form.costing,
|
|
7257
7260
|
value: !!v.form.costing,
|
|
7258
7261
|
label: b(a)("menu.product.form.price.settings.track_costing.label"),
|
|
@@ -7260,7 +7263,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7260
7263
|
}, null, 8, ["model-value", "value", "label"]),
|
|
7261
7264
|
v.form.costing ? (F(), re("div", Wc, [
|
|
7262
7265
|
$("div", Hc, [
|
|
7263
|
-
|
|
7266
|
+
R(Dt, {
|
|
7264
7267
|
class: "w-full",
|
|
7265
7268
|
min: 0,
|
|
7266
7269
|
"model-value": v.form.costing || null,
|
|
@@ -7272,7 +7275,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7272
7275
|
])) : ae("", !0)
|
|
7273
7276
|
])) : ae("", !0),
|
|
7274
7277
|
s.value.minPrice ? (F(), re("div", jc, [
|
|
7275
|
-
|
|
7278
|
+
R(I, {
|
|
7276
7279
|
disabled: !s.value.minPrice || v.isAddon,
|
|
7277
7280
|
"model-value": !!v.form.minPrice,
|
|
7278
7281
|
value: !!v.form.minPrice,
|
|
@@ -7281,7 +7284,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7281
7284
|
}, null, 8, ["disabled", "model-value", "value", "label"]),
|
|
7282
7285
|
$("div", Kc, [
|
|
7283
7286
|
$("div", Yc, [
|
|
7284
|
-
v.form.minPrice ? (F(),
|
|
7287
|
+
v.form.minPrice ? (F(), Z(Dt, {
|
|
7285
7288
|
key: 0,
|
|
7286
7289
|
max: b(Be.Dinero).fromFdoDinero(v.form.price).toUnit(),
|
|
7287
7290
|
min: 0,
|
|
@@ -7304,7 +7307,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7304
7307
|
}, 8, ["title"]);
|
|
7305
7308
|
};
|
|
7306
7309
|
}
|
|
7307
|
-
}), qc = { class: "fm-typo-en-title-md-600" },
|
|
7310
|
+
}), qc = { class: "fm-typo-en-title-md-600" }, Zc = { class: "pt-8 space-y-24" }, Jc = { class: "flex gap-8 items-center justify-start" }, Qc = /* @__PURE__ */ fe({
|
|
7308
7311
|
__name: "Form",
|
|
7309
7312
|
props: {
|
|
7310
7313
|
initialValue: {},
|
|
@@ -7325,7 +7328,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7325
7328
|
try {
|
|
7326
7329
|
l.value = !0, n.initialValue ? await i.updateMenu(
|
|
7327
7330
|
{
|
|
7328
|
-
module:
|
|
7331
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.printDepartment,
|
|
7329
7332
|
operation: Oe.F_OPERATION_TYPE.update,
|
|
7330
7333
|
data: a.value,
|
|
7331
7334
|
link: Kn(((d = a.value) == null ? void 0 : d.usedBy) || [])
|
|
@@ -7333,7 +7336,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7333
7336
|
a.value.name
|
|
7334
7337
|
) : await i.updateMenu(
|
|
7335
7338
|
{
|
|
7336
|
-
module:
|
|
7339
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.printDepartment,
|
|
7337
7340
|
operation: Oe.F_OPERATION_TYPE.create,
|
|
7338
7341
|
data: a.value,
|
|
7339
7342
|
link: Kn(((c = a.value) == null ? void 0 : c.usedBy) || [])
|
|
@@ -7354,8 +7357,8 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7354
7357
|
), (d, c) => {
|
|
7355
7358
|
const p = j("fm-text-field"), w = j("fm-button"), y = j("fm-side-sheet");
|
|
7356
7359
|
return F(), re(ze, null, [
|
|
7357
|
-
|
|
7358
|
-
|
|
7360
|
+
Re(d.$slots, "default", { trigger: u }),
|
|
7361
|
+
R(y, {
|
|
7359
7362
|
id: "variant-form",
|
|
7360
7363
|
modelValue: s.value,
|
|
7361
7364
|
"onUpdate:modelValue": c[3] || (c[3] = (k) => s.value = k),
|
|
@@ -7371,15 +7374,15 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7371
7374
|
$("p", qc, we(r.value), 1)
|
|
7372
7375
|
]),
|
|
7373
7376
|
"side-sheet-footer": W(() => [
|
|
7374
|
-
$("div",
|
|
7375
|
-
|
|
7377
|
+
$("div", Jc, [
|
|
7378
|
+
R(w, {
|
|
7376
7379
|
label: o.value,
|
|
7377
7380
|
loading: l.value,
|
|
7378
7381
|
size: "lg",
|
|
7379
7382
|
type: "submit",
|
|
7380
7383
|
variant: "primary"
|
|
7381
7384
|
}, null, 8, ["label", "loading"]),
|
|
7382
|
-
|
|
7385
|
+
R(w, {
|
|
7383
7386
|
label: b(t)("menu.common.actions.cancel"),
|
|
7384
7387
|
size: "lg",
|
|
7385
7388
|
variant: "tertiary",
|
|
@@ -7388,8 +7391,8 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7388
7391
|
])
|
|
7389
7392
|
]),
|
|
7390
7393
|
default: W(() => [
|
|
7391
|
-
$("div",
|
|
7392
|
-
|
|
7394
|
+
$("div", Zc, [
|
|
7395
|
+
R(p, {
|
|
7393
7396
|
modelValue: a.value.name,
|
|
7394
7397
|
"onUpdate:modelValue": c[0] || (c[0] = (k) => a.value.name = k),
|
|
7395
7398
|
rules: [
|
|
@@ -7400,7 +7403,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7400
7403
|
autofocus: "",
|
|
7401
7404
|
label: b(t)("menu.print_dept.columns.name")
|
|
7402
7405
|
}, null, 8, ["modelValue", "rules", "label"]),
|
|
7403
|
-
d.applyProduct ? (F(),
|
|
7406
|
+
d.applyProduct ? (F(), Z(Qr, {
|
|
7404
7407
|
key: 0,
|
|
7405
7408
|
overrides: a.value.usedBy || [],
|
|
7406
7409
|
"select-variant": !1,
|
|
@@ -7426,7 +7429,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7426
7429
|
},
|
|
7427
7430
|
emits: ["update:form", "replace:form"],
|
|
7428
7431
|
setup(e, { emit: t }) {
|
|
7429
|
-
const n = e, i =
|
|
7432
|
+
const n = e, i = Ce(), { t: r } = Ee(), o = t;
|
|
7430
7433
|
function a() {
|
|
7431
7434
|
return {
|
|
7432
7435
|
...He.generator.initMenuV4PrintSetting(),
|
|
@@ -7469,8 +7472,8 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7469
7472
|
});
|
|
7470
7473
|
}
|
|
7471
7474
|
function y(f, v) {
|
|
7472
|
-
var
|
|
7473
|
-
let A = [...((D = (
|
|
7475
|
+
var C, D;
|
|
7476
|
+
let A = [...((D = (C = n.form) == null ? void 0 : C.print) == null ? void 0 : D.department) ?? []];
|
|
7474
7477
|
v && !A.includes(f) ? A = [...A, f] : v || (A = A.filter((I) => I !== f)), o("update:form", "print", {
|
|
7475
7478
|
...a(),
|
|
7476
7479
|
...n.form.print,
|
|
@@ -7493,21 +7496,21 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7493
7496
|
() => s.value.length,
|
|
7494
7497
|
() => y(s.value[s.value.length - 1]._id, !0)
|
|
7495
7498
|
), (f, v) => {
|
|
7496
|
-
const A = j("fm-switch"),
|
|
7497
|
-
return F(),
|
|
7499
|
+
const A = j("fm-switch"), C = j("fm-radio"), D = j("fm-radio-group"), I = j("fm-button"), E = j("fm-checkbox");
|
|
7500
|
+
return F(), Z(st, {
|
|
7498
7501
|
title: b(r)("menu.product.form.print.title")
|
|
7499
7502
|
}, {
|
|
7500
7503
|
default: W(() => {
|
|
7501
7504
|
var L;
|
|
7502
7505
|
return [
|
|
7503
|
-
l.value.printConfig ? (F(),
|
|
7506
|
+
l.value.printConfig ? (F(), Z(wt, {
|
|
7504
7507
|
key: 0,
|
|
7505
7508
|
label: b(r)("menu.product.form.print.config.label")
|
|
7506
7509
|
}, {
|
|
7507
7510
|
default: W(() => {
|
|
7508
7511
|
var O;
|
|
7509
7512
|
return [
|
|
7510
|
-
|
|
7513
|
+
R(A, {
|
|
7511
7514
|
"model-value": !((O = f.form.print) != null && O.toRoot),
|
|
7512
7515
|
label: b(r)("menu.product.form.print.config.group_parent.label"),
|
|
7513
7516
|
"label-placement": "right",
|
|
@@ -7518,14 +7521,14 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7518
7521
|
}),
|
|
7519
7522
|
_: 1
|
|
7520
7523
|
}, 8, ["label"])) : ae("", !0),
|
|
7521
|
-
|
|
7524
|
+
R(D, {
|
|
7522
7525
|
label: b(r)("menu.product.form.print.kds.label"),
|
|
7523
7526
|
"model-value": ((L = f.form.print) == null ? void 0 : L.sequential) ?? !1,
|
|
7524
7527
|
"onUpdate:modelValue": v[1] || (v[1] = (O) => p(O))
|
|
7525
7528
|
}, {
|
|
7526
7529
|
default: W(() => [
|
|
7527
7530
|
$("div", td, [
|
|
7528
|
-
(F(!0), re(ze, null, _t(k.value, (O, M) => (F(),
|
|
7531
|
+
(F(!0), re(ze, null, _t(k.value, (O, M) => (F(), Z(C, {
|
|
7529
7532
|
key: M,
|
|
7530
7533
|
label: O.label,
|
|
7531
7534
|
sublabel: O.description,
|
|
@@ -7535,11 +7538,11 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7535
7538
|
]),
|
|
7536
7539
|
_: 1
|
|
7537
7540
|
}, 8, ["label", "model-value"]),
|
|
7538
|
-
|
|
7541
|
+
R(wt, {
|
|
7539
7542
|
label: b(r)("menu.product.form.print.routes.label")
|
|
7540
7543
|
}, {
|
|
7541
7544
|
default: W(() => [
|
|
7542
|
-
m.value.length ? (F(),
|
|
7545
|
+
m.value.length ? (F(), Z(b(Ao), {
|
|
7543
7546
|
key: 0,
|
|
7544
7547
|
"item-key": (O) => O,
|
|
7545
7548
|
"model-value": m.value,
|
|
@@ -7552,7 +7555,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7552
7555
|
return [
|
|
7553
7556
|
$("div", nd, [
|
|
7554
7557
|
$("div", id, [
|
|
7555
|
-
u.value ? (F(),
|
|
7558
|
+
u.value ? (F(), Z(I, {
|
|
7556
7559
|
key: 0,
|
|
7557
7560
|
disabled: !((T = (M = n.form.print) == null ? void 0 : M.department) != null && T.includes(O)),
|
|
7558
7561
|
class: "handle",
|
|
@@ -7562,7 +7565,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7562
7565
|
}, ["stop"]))
|
|
7563
7566
|
}, null, 8, ["disabled"])) : ae("", !0)
|
|
7564
7567
|
]),
|
|
7565
|
-
|
|
7568
|
+
R(E, {
|
|
7566
7569
|
id: O,
|
|
7567
7570
|
"data-checked": (S = (_ = n.form.print) == null ? void 0 : _.department) == null ? void 0 : S.includes(O),
|
|
7568
7571
|
label: d.value[O],
|
|
@@ -7576,10 +7579,10 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7576
7579
|
}),
|
|
7577
7580
|
_: 1
|
|
7578
7581
|
}, 8, ["item-key", "model-value"])) : ae("", !0),
|
|
7579
|
-
|
|
7582
|
+
R(b(ed), { "apply-product": !1 }, {
|
|
7580
7583
|
default: W(({ trigger: O }) => [
|
|
7581
7584
|
$("div", od, [
|
|
7582
|
-
|
|
7585
|
+
R(I, {
|
|
7583
7586
|
variant: b(Ot).Secondary,
|
|
7584
7587
|
label: b(r)("menu.product.form.print.routes.add"),
|
|
7585
7588
|
"prepend-icon": "add",
|
|
@@ -7615,7 +7618,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7615
7618
|
setup(e, {
|
|
7616
7619
|
emit: t
|
|
7617
7620
|
}) {
|
|
7618
|
-
const n = e, i =
|
|
7621
|
+
const n = e, i = Ce(), r = U(() => i.rules.item), o = yt(bt(qe())), {
|
|
7619
7622
|
t: a
|
|
7620
7623
|
} = Ee(), l = t, s = U(() => {
|
|
7621
7624
|
var w, y;
|
|
@@ -7635,10 +7638,10 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7635
7638
|
name: n.fullCombinations[y.combinationKey || ""],
|
|
7636
7639
|
takeaway: y.takeawayUsed,
|
|
7637
7640
|
onUpdate: (f) => {
|
|
7638
|
-
var A,
|
|
7641
|
+
var A, C;
|
|
7639
7642
|
const v = ge(((A = n.form.variant) == null ? void 0 : A.variantCombinations) || []);
|
|
7640
7643
|
v[k].takeawayUsed = f, l("update:form", "variant", {
|
|
7641
|
-
variantGroupIds: ((
|
|
7644
|
+
variantGroupIds: ((C = n.form.variant) == null ? void 0 : C.variantGroupIds) || [],
|
|
7642
7645
|
variantCombinations: v
|
|
7643
7646
|
});
|
|
7644
7647
|
}
|
|
@@ -7668,7 +7671,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7668
7671
|
bindToVariant: i.rules.item.bindToVariant,
|
|
7669
7672
|
"onUpdate:takeaway": async (f) => {
|
|
7670
7673
|
await o.updateMenu({
|
|
7671
|
-
module:
|
|
7674
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.takeaway,
|
|
7672
7675
|
operation: Oe.F_OPERATION_TYPE.create,
|
|
7673
7676
|
data: f,
|
|
7674
7677
|
link: Kn(f.usedBy || [])
|
|
@@ -7703,11 +7706,11 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7703
7706
|
}]);
|
|
7704
7707
|
return (w, y) => {
|
|
7705
7708
|
const k = j("fm-table");
|
|
7706
|
-
return F(),
|
|
7709
|
+
return F(), Z(st, {
|
|
7707
7710
|
title: b(a)("menu.product.form.takeaway.title"),
|
|
7708
7711
|
"sub-title": b(a)("menu.product.form.takeaway.subtitle")
|
|
7709
7712
|
}, {
|
|
7710
|
-
default: W(() => [
|
|
7713
|
+
default: W(() => [R(k, {
|
|
7711
7714
|
columnDefs: p.value,
|
|
7712
7715
|
"page-size": d.value.length,
|
|
7713
7716
|
"row-data": d.value,
|
|
@@ -7729,7 +7732,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7729
7732
|
selectedVariants: {}
|
|
7730
7733
|
},
|
|
7731
7734
|
setup(e) {
|
|
7732
|
-
const t = at(), { emitData: n, emitAction: i } = ci(), r =
|
|
7735
|
+
const t = at(), { emitData: n, emitAction: i } = ci(), r = Ce(), { t: o } = Ee(), a = e, l = U(() => r.variants.map((d) => ({
|
|
7733
7736
|
label: d.name,
|
|
7734
7737
|
value: d._id,
|
|
7735
7738
|
disabled: !1
|
|
@@ -7740,7 +7743,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7740
7743
|
const p = j("FmSearch"), w = j("FmCheckbox"), y = j("FmButton");
|
|
7741
7744
|
return l.value.length > 0 ? (F(), re("div", sd, [
|
|
7742
7745
|
$("div", null, [
|
|
7743
|
-
|
|
7746
|
+
R(p, {
|
|
7744
7747
|
autofocus: "",
|
|
7745
7748
|
modelValue: u.value,
|
|
7746
7749
|
"onUpdate:modelValue": c[0] || (c[0] = (k) => u.value = k),
|
|
@@ -7752,7 +7755,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7752
7755
|
(F(!0), re(ze, null, _t(l.value, (k) => (F(), re("div", {
|
|
7753
7756
|
key: k.value
|
|
7754
7757
|
}, [
|
|
7755
|
-
Nt(
|
|
7758
|
+
Nt(R(w, {
|
|
7756
7759
|
modelValue: s.value,
|
|
7757
7760
|
"onUpdate:modelValue": [
|
|
7758
7761
|
c[1] || (c[1] = (f) => s.value = f),
|
|
@@ -7767,9 +7770,9 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7767
7770
|
])
|
|
7768
7771
|
]),
|
|
7769
7772
|
$("div", ud, [
|
|
7770
|
-
|
|
7773
|
+
R(b(Ri), null, {
|
|
7771
7774
|
default: W(({ trigger: k }) => [
|
|
7772
|
-
b(r).rules.item.variant ? (F(),
|
|
7775
|
+
b(r).rules.item.variant ? (F(), Z(y, {
|
|
7773
7776
|
key: 0,
|
|
7774
7777
|
label: b(o)("menu.common.actions.add_new_variant"),
|
|
7775
7778
|
variant: "tertiary",
|
|
@@ -7780,12 +7783,12 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7780
7783
|
_: 1
|
|
7781
7784
|
}),
|
|
7782
7785
|
$("div", cd, [
|
|
7783
|
-
|
|
7786
|
+
R(y, {
|
|
7784
7787
|
label: b(o)("menu.common.actions.cancel"),
|
|
7785
7788
|
variant: "tertiary",
|
|
7786
7789
|
onClick: c[3] || (c[3] = (k) => b(t).close())
|
|
7787
7790
|
}, null, 8, ["label"]),
|
|
7788
|
-
|
|
7791
|
+
R(y, {
|
|
7789
7792
|
label: b(o)("menu.common.actions.confirm"),
|
|
7790
7793
|
onClick: c[4] || (c[4] = (k) => m())
|
|
7791
7794
|
}, null, 8, ["label"])
|
|
@@ -7796,9 +7799,9 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7796
7799
|
$("p", pd, we(b(o)("menu.common.empty.no_variant.title")), 1),
|
|
7797
7800
|
$("p", fd, we(b(o)("menu.common.empty.no_variant.subtitle")), 1)
|
|
7798
7801
|
]),
|
|
7799
|
-
|
|
7802
|
+
R(b(Ri), null, {
|
|
7800
7803
|
default: W(({ trigger: k }) => [
|
|
7801
|
-
|
|
7804
|
+
R(y, {
|
|
7802
7805
|
label: b(o)("menu.variant.add"),
|
|
7803
7806
|
icon: "add",
|
|
7804
7807
|
onClick: (f) => k()
|
|
@@ -7834,7 +7837,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7834
7837
|
setup(e, {
|
|
7835
7838
|
emit: t
|
|
7836
7839
|
}) {
|
|
7837
|
-
const n = e, i =
|
|
7840
|
+
const n = e, i = Ce(), r = Ai(), o = qe(), a = at(), {
|
|
7838
7841
|
t: l
|
|
7839
7842
|
} = Ee(), s = U(() => i.rules.item), u = U(() => s.value.minPrice && !!n.form.minPrice), m = U(() => !i.state.currentCatalogId), d = U(() => i.variants.reduce((O, M) => (O[M._id] = M, O), {}));
|
|
7840
7843
|
ie(!1);
|
|
@@ -7953,7 +7956,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7953
7956
|
}
|
|
7954
7957
|
c("replace:form", r.initDynamicGroupItem(_));
|
|
7955
7958
|
}
|
|
7956
|
-
async function
|
|
7959
|
+
async function C(O, M, T) {
|
|
7957
7960
|
const _ = ot.clone(n.form);
|
|
7958
7961
|
_.variant.variantCombinations[O][M] = T, p([{
|
|
7959
7962
|
key: "variant",
|
|
@@ -7975,11 +7978,11 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7975
7978
|
cell: (O) => {
|
|
7976
7979
|
var x, G;
|
|
7977
7980
|
const M = O.getValue(), S = ((x = O.row.original.fallback) == null ? void 0 : x.code) ?? n.form.code ?? ((G = n.fallback) == null ? void 0 : G.code);
|
|
7978
|
-
return
|
|
7981
|
+
return R(Ve.FmTextField, {
|
|
7979
7982
|
modelValue: M,
|
|
7980
7983
|
placeholder: S || l("menu.product.form.variant.placeholders.no_code"),
|
|
7981
7984
|
"onUpdate:model-value": (H) => {
|
|
7982
|
-
|
|
7985
|
+
C(O.row.index, "code", jo(H, !0));
|
|
7983
7986
|
}
|
|
7984
7987
|
}, null);
|
|
7985
7988
|
}
|
|
@@ -7990,14 +7993,14 @@ const cr = /* @__PURE__ */ fe({
|
|
|
7990
7993
|
cell: (O) => {
|
|
7991
7994
|
var S, x;
|
|
7992
7995
|
const M = O.getValue(), _ = (S = O.row.original.fallback) == null ? void 0 : S.orderFrom;
|
|
7993
|
-
return
|
|
7996
|
+
return R(vi, {
|
|
7994
7997
|
modelValue: M,
|
|
7995
7998
|
fallback: n.form.orderFrom ?? _ ?? ((x = n.fallback) == null ? void 0 : x.orderFrom),
|
|
7996
7999
|
disable: !s.value.orderFrom,
|
|
7997
8000
|
required: s.value.orderFrom && s.value.orderFromActiveOnly,
|
|
7998
8001
|
editActiveOnly: s.value.orderFromActiveOnly || !1,
|
|
7999
8002
|
"onUpdate:model-value": (G) => {
|
|
8000
|
-
|
|
8003
|
+
C(O.row.index, "orderFrom", G);
|
|
8001
8004
|
},
|
|
8002
8005
|
label: "",
|
|
8003
8006
|
defaultLabel: "Follow general"
|
|
@@ -8011,22 +8014,22 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8011
8014
|
cell: (O) => {
|
|
8012
8015
|
var x, G, H;
|
|
8013
8016
|
const M = O.getValue(), T = O.row.original, S = ((x = T.fallback) == null ? void 0 : x.price) ?? n.form.price ?? ((G = n.fallback) == null ? void 0 : G.price);
|
|
8014
|
-
return
|
|
8017
|
+
return R("div", {
|
|
8015
8018
|
class: "flex items-center gap-8"
|
|
8016
|
-
}, [
|
|
8019
|
+
}, [R(Dt, {
|
|
8017
8020
|
disable: !!D.value && i.currentCatalog && !i.currentScheduler,
|
|
8018
8021
|
placeholder: S ? Gt(S) : void 0,
|
|
8019
8022
|
modelValue: M,
|
|
8020
8023
|
min: 0,
|
|
8021
8024
|
"onUpdate:model-value": (Q) => {
|
|
8022
|
-
|
|
8025
|
+
C(O.row.index, "price", Q);
|
|
8023
8026
|
},
|
|
8024
8027
|
nullable: !0,
|
|
8025
8028
|
showCurrency: !1
|
|
8026
|
-
}, null), i.isV4 && !n.isOverride &&
|
|
8029
|
+
}, null), i.isV4 && !n.isOverride && R(dr, {
|
|
8027
8030
|
"price-tiers": T.priceTiers,
|
|
8028
8031
|
fallback: (H = T.fallback) == null ? void 0 : H.priceTiers,
|
|
8029
|
-
"onUpdate:price-tiers": (Q) =>
|
|
8032
|
+
"onUpdate:price-tiers": (Q) => C(O.row.index, "priceTiers", Q)
|
|
8030
8033
|
}, null)]);
|
|
8031
8034
|
}
|
|
8032
8035
|
}, {
|
|
@@ -8036,12 +8039,12 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8036
8039
|
cell: (O) => {
|
|
8037
8040
|
var x, G, H;
|
|
8038
8041
|
const M = O.getValue(), T = O.row.original, S = ((x = T.fallback) == null ? void 0 : x.minPrice) ?? n.form.minPrice ?? ((G = n.fallback) == null ? void 0 : G.minPrice);
|
|
8039
|
-
return
|
|
8042
|
+
return R(Dt, {
|
|
8040
8043
|
placeholder: S ? Gt(S) : void 0,
|
|
8041
8044
|
modelValue: M,
|
|
8042
8045
|
max: Be.Dinero.fromFdoDinero(T.price ?? ((H = T.fallback) == null ? void 0 : H.price) ?? Be.Dinero.zero().toObject()).toUnit(),
|
|
8043
8046
|
"onUpdate:model-value": (Q) => {
|
|
8044
|
-
|
|
8047
|
+
C(O.row.index, "minPrice", Q);
|
|
8045
8048
|
},
|
|
8046
8049
|
nullable: !0,
|
|
8047
8050
|
showCurrency: !1
|
|
@@ -8057,11 +8060,11 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8057
8060
|
}
|
|
8058
8061
|
return (O, M) => {
|
|
8059
8062
|
const T = j("fm-button"), _ = j("fm-icon"), S = j("FmFormGroup"), x = j("fm-table");
|
|
8060
|
-
return F(),
|
|
8063
|
+
return F(), Z(st, {
|
|
8061
8064
|
title: b(l)("menu.product.form.variant.title"),
|
|
8062
8065
|
"sub-title": b(l)("menu.product.form.variant.subtitle")
|
|
8063
8066
|
}, {
|
|
8064
|
-
"append-title": W(() => [b(i).rules.item.variant ? (F(),
|
|
8067
|
+
"append-title": W(() => [b(i).rules.item.variant ? (F(), Z(T, {
|
|
8065
8068
|
key: 0,
|
|
8066
8069
|
label: b(l)("menu.product.form.variant.add"),
|
|
8067
8070
|
variant: "secondary",
|
|
@@ -8070,13 +8073,13 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8070
8073
|
}, null, 8, ["label"])) : ae("", !0)]),
|
|
8071
8074
|
default: W(() => {
|
|
8072
8075
|
var G;
|
|
8073
|
-
return [$("div", gd, [
|
|
8076
|
+
return [$("div", gd, [R(S, {
|
|
8074
8077
|
"model-value": (G = O.form.variant) == null ? void 0 : G.variantGroupIds,
|
|
8075
8078
|
rules: [L]
|
|
8076
8079
|
}, {
|
|
8077
8080
|
default: W(() => {
|
|
8078
8081
|
var H;
|
|
8079
|
-
return [
|
|
8082
|
+
return [R(b(Ao), {
|
|
8080
8083
|
"model-value": ((H = O.form.variant) == null ? void 0 : H.variantGroupIds) ?? [],
|
|
8081
8084
|
class: "space-y-16",
|
|
8082
8085
|
group: "variants",
|
|
@@ -8088,11 +8091,11 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8088
8091
|
element: Q
|
|
8089
8092
|
}) => {
|
|
8090
8093
|
var _e;
|
|
8091
|
-
return [$("div", vd, [
|
|
8094
|
+
return [$("div", vd, [R(T, {
|
|
8092
8095
|
variant: b(Ot).Tertiary,
|
|
8093
8096
|
class: "handle",
|
|
8094
8097
|
"prepend-icon": "drag_handle"
|
|
8095
|
-
}, null, 8, ["variant"]), $("div", _d, [$("p", bd, we((_e = d.value[Q]) == null ? void 0 : _e.name), 1),
|
|
8098
|
+
}, null, 8, ["variant"]), $("div", _d, [$("p", bd, we((_e = d.value[Q]) == null ? void 0 : _e.name), 1), R(_, {
|
|
8096
8099
|
class: "cursor-pointer",
|
|
8097
8100
|
name: "close",
|
|
8098
8101
|
onClick: An((be) => {
|
|
@@ -8105,8 +8108,8 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8105
8108
|
}, 8, ["model-value"])];
|
|
8106
8109
|
}),
|
|
8107
8110
|
_: 1
|
|
8108
|
-
}, 8, ["model-value", "rules"]),
|
|
8109
|
-
default: W(() => [v.value.length ? (F(),
|
|
8111
|
+
}, 8, ["model-value", "rules"]), R(ur, null, {
|
|
8112
|
+
default: W(() => [v.value.length ? (F(), Z(x, {
|
|
8110
8113
|
key: 0,
|
|
8111
8114
|
class: "w-full",
|
|
8112
8115
|
"column-defs": I.value,
|
|
@@ -8124,7 +8127,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8124
8127
|
};
|
|
8125
8128
|
}
|
|
8126
8129
|
}), wd = {
|
|
8127
|
-
class: /* @__PURE__ */
|
|
8130
|
+
class: /* @__PURE__ */ Je(["flex", "space-x-40", "max-w-[1200px] mx-auto w-full"])
|
|
8128
8131
|
}, Ed = {
|
|
8129
8132
|
key: 1,
|
|
8130
8133
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
@@ -8140,10 +8143,10 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8140
8143
|
}, Od = {
|
|
8141
8144
|
key: 7,
|
|
8142
8145
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8143
|
-
},
|
|
8146
|
+
}, Cd = {
|
|
8144
8147
|
key: 9,
|
|
8145
8148
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8146
|
-
},
|
|
8149
|
+
}, Rd = {
|
|
8147
8150
|
key: 11,
|
|
8148
8151
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8149
8152
|
}, Td = /* @__PURE__ */ fe({
|
|
@@ -8157,7 +8160,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8157
8160
|
emits: ["update:show", "submit:form"],
|
|
8158
8161
|
setup(e, { emit: t }) {
|
|
8159
8162
|
var Et, ut, ct, St, Ut;
|
|
8160
|
-
const n = e, i = t, r =
|
|
8163
|
+
const n = e, i = t, r = Ce(), o = an(), { t: a } = Ee(), l = U(() => n.action === "add" ? a("menu.product.form.title.add") : a("menu.product.form.title.update")), s = U(() => r.rules.item), u = (h) => new Promise((g) => setTimeout(g, h));
|
|
8161
8164
|
Bt(async () => {
|
|
8162
8165
|
n.autoShow && (await u(100), d());
|
|
8163
8166
|
});
|
|
@@ -8218,7 +8221,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8218
8221
|
[h]: g
|
|
8219
8222
|
};
|
|
8220
8223
|
};
|
|
8221
|
-
async function
|
|
8224
|
+
async function C() {
|
|
8222
8225
|
var h, g;
|
|
8223
8226
|
c.value = p.value._id && D.value ? (await jr(
|
|
8224
8227
|
r.mergedMenu,
|
|
@@ -8232,7 +8235,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8232
8235
|
() => !!r.currentCatalog || !!r.state.currentSchedulerId
|
|
8233
8236
|
), I = U(() => {
|
|
8234
8237
|
var h;
|
|
8235
|
-
return D.value ? p.value.category == "" || p.value.category == null && ((h = c.value) == null ? void 0 : h.category) == null : r.version ===
|
|
8238
|
+
return D.value ? p.value.category == "" || p.value.category == null && ((h = c.value) == null ? void 0 : h.category) == null : r.version === J.F_MENU_VERSION.enum.v4 && p.value.category == null;
|
|
8236
8239
|
}), E = U(() => o.itemAttributeSettings.value.length > 0 && !D.value);
|
|
8237
8240
|
function L() {
|
|
8238
8241
|
var Y;
|
|
@@ -8399,7 +8402,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8399
8402
|
Ne(() => {
|
|
8400
8403
|
var h;
|
|
8401
8404
|
return (h = p.value.price) == null ? void 0 : h.amount;
|
|
8402
|
-
},
|
|
8405
|
+
}, C, { deep: !0 }), Ne(
|
|
8403
8406
|
() => m.value,
|
|
8404
8407
|
(h) => {
|
|
8405
8408
|
h && (p.value = n.initialForm ? ge(n.initialForm) : {
|
|
@@ -8409,7 +8412,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8409
8412
|
}
|
|
8410
8413
|
), Bt(() => {
|
|
8411
8414
|
var h, g;
|
|
8412
|
-
|
|
8415
|
+
C();
|
|
8413
8416
|
try {
|
|
8414
8417
|
Ge.startSession({
|
|
8415
8418
|
userId: ((h = o.sessionUser.value) == null ? void 0 : h.id) || "",
|
|
@@ -8454,10 +8457,10 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8454
8457
|
U(() => lt("sm"));
|
|
8455
8458
|
const xt = ie(null), qt = zr(xt);
|
|
8456
8459
|
return (h, g) => (F(), re(ze, null, [
|
|
8457
|
-
|
|
8460
|
+
Re(h.$slots, "trigger", kr(Ar({
|
|
8458
8461
|
trigger: d
|
|
8459
8462
|
}))),
|
|
8460
|
-
|
|
8463
|
+
R(xr, {
|
|
8461
8464
|
title: l.value,
|
|
8462
8465
|
show: m.value,
|
|
8463
8466
|
"primary-action": {
|
|
@@ -8473,7 +8476,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8473
8476
|
onOnCancel: je
|
|
8474
8477
|
}, {
|
|
8475
8478
|
"append-title": W(() => [
|
|
8476
|
-
b(lt)("sm") ? (F(),
|
|
8479
|
+
b(lt)("sm") ? (F(), Z(Ti, {
|
|
8477
8480
|
key: 0,
|
|
8478
8481
|
variant: "dialog",
|
|
8479
8482
|
title: M.value.title,
|
|
@@ -8483,7 +8486,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8483
8486
|
default: W(() => {
|
|
8484
8487
|
var P, Y;
|
|
8485
8488
|
return [
|
|
8486
|
-
b(lt)("sm") ? ae("", !0) : (F(),
|
|
8489
|
+
b(lt)("sm") ? ae("", !0) : (F(), Z(Ti, {
|
|
8487
8490
|
key: 0,
|
|
8488
8491
|
class: "fixed",
|
|
8489
8492
|
style: Or({
|
|
@@ -8498,15 +8501,15 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8498
8501
|
$("div", {
|
|
8499
8502
|
ref_key: "formWrapper",
|
|
8500
8503
|
ref: xt,
|
|
8501
|
-
class:
|
|
8504
|
+
class: Je(["flex-1 py-24 space-y-24", "xs:w-full"])
|
|
8502
8505
|
}, [
|
|
8503
|
-
w.value && (Object.keys(w.value.catalogs || {}).length > 0 || w.value.schedulers.length > 0) ? (F(),
|
|
8506
|
+
w.value && (Object.keys(w.value.catalogs || {}).length > 0 || w.value.schedulers.length > 0) ? (F(), Z(pa, {
|
|
8504
8507
|
key: 0,
|
|
8505
8508
|
"linked-status": w.value,
|
|
8506
8509
|
"onUpdate:catalogAndScheduler": k
|
|
8507
8510
|
}, null, 8, ["linked-status"])) : ae("", !0),
|
|
8508
|
-
|
|
8509
|
-
|
|
8511
|
+
R(Ur, { "menu-store": b(r) }, null, 8, ["menu-store"]),
|
|
8512
|
+
R(Tt, {
|
|
8510
8513
|
toggle: T.value,
|
|
8511
8514
|
"onUpdate:toggle": [
|
|
8512
8515
|
g[1] || (g[1] = (X) => T.value = X),
|
|
@@ -8517,7 +8520,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8517
8520
|
title: b(a)("menu.product.form.sections.general.title")
|
|
8518
8521
|
}, {
|
|
8519
8522
|
default: W(() => [
|
|
8520
|
-
|
|
8523
|
+
R(Wu, {
|
|
8521
8524
|
fallback: c.value,
|
|
8522
8525
|
form: p.value,
|
|
8523
8526
|
"is-addon": I.value,
|
|
@@ -8532,13 +8535,13 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8532
8535
|
_: 1
|
|
8533
8536
|
}, 8, ["toggle", "disabled", "description", "title"]),
|
|
8534
8537
|
D.value ? ae("", !0) : (F(), re("div", Ed)),
|
|
8535
|
-
E.value ? (F(),
|
|
8538
|
+
E.value ? (F(), Z(st, {
|
|
8536
8539
|
key: 2,
|
|
8537
8540
|
title: b(a)("menu.product.form.sections.tagging.title"),
|
|
8538
8541
|
"sub-title": b(a)("menu.product.form.sections.tagging.subtitle")
|
|
8539
8542
|
}, {
|
|
8540
8543
|
default: W(() => [
|
|
8541
|
-
|
|
8544
|
+
R(b(bo), {
|
|
8542
8545
|
entity: "item",
|
|
8543
8546
|
"model-value": p.value.customAttributes || {},
|
|
8544
8547
|
"onUpdate:modelValue": g[3] || (g[3] = (X) => A("customAttributes", X)),
|
|
@@ -8548,7 +8551,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8548
8551
|
_: 1
|
|
8549
8552
|
}, 8, ["title", "sub-title"])) : ae("", !0),
|
|
8550
8553
|
E.value ? (F(), re("div", Sd)) : ae("", !0),
|
|
8551
|
-
|
|
8554
|
+
R(Tt, {
|
|
8552
8555
|
toggle: x.value,
|
|
8553
8556
|
"onUpdate:toggle": [
|
|
8554
8557
|
g[4] || (g[4] = (X) => x.value = X),
|
|
@@ -8559,7 +8562,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8559
8562
|
title: b(a)("menu.product.form.sections.price.title")
|
|
8560
8563
|
}, {
|
|
8561
8564
|
default: W(() => [
|
|
8562
|
-
|
|
8565
|
+
R(Xc, {
|
|
8563
8566
|
fallback: c.value,
|
|
8564
8567
|
form: p.value,
|
|
8565
8568
|
"is-addon": I.value,
|
|
@@ -8570,7 +8573,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8570
8573
|
_: 1
|
|
8571
8574
|
}, 8, ["toggle", "disabled", "description", "title"]),
|
|
8572
8575
|
s.value.print && !D.value ? (F(), re("div", kd)) : ae("", !0),
|
|
8573
|
-
s.value.print ? (F(),
|
|
8576
|
+
s.value.print ? (F(), Z(Tt, {
|
|
8574
8577
|
key: 5,
|
|
8575
8578
|
toggle: V.value,
|
|
8576
8579
|
"onUpdate:toggle": [
|
|
@@ -8582,7 +8585,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8582
8585
|
title: "Update print"
|
|
8583
8586
|
}, {
|
|
8584
8587
|
default: W(() => [
|
|
8585
|
-
|
|
8588
|
+
R(rd, {
|
|
8586
8589
|
fallback: c.value,
|
|
8587
8590
|
form: p.value,
|
|
8588
8591
|
"full-combinations": f.value,
|
|
@@ -8595,7 +8598,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8595
8598
|
_: 1
|
|
8596
8599
|
}, 8, ["toggle"])) : ae("", !0),
|
|
8597
8600
|
D.value ? ae("", !0) : (F(), re("div", Ad)),
|
|
8598
|
-
|
|
8601
|
+
R(Tt, {
|
|
8599
8602
|
toggle: H.value,
|
|
8600
8603
|
"onUpdate:toggle": [
|
|
8601
8604
|
g[10] || (g[10] = (X) => H.value = X),
|
|
@@ -8606,7 +8609,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8606
8609
|
title: b(a)("menu.product.form.sections.variant.title")
|
|
8607
8610
|
}, {
|
|
8608
8611
|
default: W(() => [
|
|
8609
|
-
|
|
8612
|
+
R(yd, {
|
|
8610
8613
|
fallback: c.value,
|
|
8611
8614
|
form: p.value,
|
|
8612
8615
|
"full-combinations": f.value,
|
|
@@ -8619,7 +8622,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8619
8622
|
_: 1
|
|
8620
8623
|
}, 8, ["toggle", "disabled", "description", "title"]),
|
|
8621
8624
|
s.value.group && !D.value ? (F(), re("div", Od)) : ae("", !0),
|
|
8622
|
-
s.value.group ? (F(),
|
|
8625
|
+
s.value.group ? (F(), Z(Tt, {
|
|
8623
8626
|
key: 8,
|
|
8624
8627
|
toggle: ne.value,
|
|
8625
8628
|
"onUpdate:toggle": [
|
|
@@ -8631,7 +8634,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8631
8634
|
title: "Update group"
|
|
8632
8635
|
}, {
|
|
8633
8636
|
default: W(() => [
|
|
8634
|
-
|
|
8637
|
+
R(Dc, {
|
|
8635
8638
|
fallback: c.value,
|
|
8636
8639
|
form: p.value,
|
|
8637
8640
|
"full-combinations": f.value,
|
|
@@ -8643,8 +8646,8 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8643
8646
|
]),
|
|
8644
8647
|
_: 1
|
|
8645
8648
|
}, 8, ["toggle", "disabled"])) : ae("", !0),
|
|
8646
|
-
s.value.inventory && !D.value ? (F(), re("div",
|
|
8647
|
-
s.value.inventory ? (F(),
|
|
8649
|
+
s.value.inventory && !D.value ? (F(), re("div", Cd)) : ae("", !0),
|
|
8650
|
+
s.value.inventory ? (F(), Z(Tt, {
|
|
8648
8651
|
key: 10,
|
|
8649
8652
|
toggle: _e.value,
|
|
8650
8653
|
"onUpdate:toggle": [
|
|
@@ -8656,7 +8659,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8656
8659
|
title: b(a)("menu.product.form.sections.inventory.title")
|
|
8657
8660
|
}, {
|
|
8658
8661
|
default: W(() => [
|
|
8659
|
-
|
|
8662
|
+
R(Lc, {
|
|
8660
8663
|
fallback: c.value,
|
|
8661
8664
|
form: p.value,
|
|
8662
8665
|
"full-combinations": f.value,
|
|
@@ -8668,8 +8671,8 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8668
8671
|
]),
|
|
8669
8672
|
_: 1
|
|
8670
8673
|
}, 8, ["toggle", "disabled", "description", "title"])) : ae("", !0),
|
|
8671
|
-
s.value.takeaway(p.value.category ?? ((P = c.value) == null ? void 0 : P.category)) && !D.value ? (F(), re("div",
|
|
8672
|
-
s.value.takeaway(p.value.category ?? ((Y = c.value) == null ? void 0 : Y.category)) ? (F(),
|
|
8674
|
+
s.value.takeaway(p.value.category ?? ((P = c.value) == null ? void 0 : P.category)) && !D.value ? (F(), re("div", Rd)) : ae("", !0),
|
|
8675
|
+
s.value.takeaway(p.value.category ?? ((Y = c.value) == null ? void 0 : Y.category)) ? (F(), Z(Tt, {
|
|
8673
8676
|
key: 12,
|
|
8674
8677
|
toggle: Fe.value,
|
|
8675
8678
|
"onUpdate:toggle": [
|
|
@@ -8681,7 +8684,7 @@ const cr = /* @__PURE__ */ fe({
|
|
|
8681
8684
|
title: b(a)("menu.product.form.sections.takeaway.title")
|
|
8682
8685
|
}, {
|
|
8683
8686
|
default: W(() => [
|
|
8684
|
-
|
|
8687
|
+
R(ad, {
|
|
8685
8688
|
fallback: c.value,
|
|
8686
8689
|
form: p.value,
|
|
8687
8690
|
"full-combinations": f.value,
|
|
@@ -8707,7 +8710,7 @@ function pr(e, t) {
|
|
|
8707
8710
|
var o, a, l, s;
|
|
8708
8711
|
const n = (o = t.groups) == null ? void 0 : o.reduce((u, m) => {
|
|
8709
8712
|
const d = e.groups.find((p) => p._id === m._id);
|
|
8710
|
-
return On(e.items, d.items) ===
|
|
8713
|
+
return On(e.items, d.items) === J.F_ADDON_GROUP_TYPE.enum.DYNAMIC && u.push(d), u;
|
|
8711
8714
|
}, []);
|
|
8712
8715
|
if (!(n != null && n.length)) return t;
|
|
8713
8716
|
const i = n.map((u) => u._id);
|
|
@@ -8724,7 +8727,7 @@ function pr(e, t) {
|
|
|
8724
8727
|
_id: y._id,
|
|
8725
8728
|
combinationKey: y.combinationKey,
|
|
8726
8729
|
price: (k == null ? void 0 : k.price) ?? Be.Dinero.zero().toObject(),
|
|
8727
|
-
orderFrom: (k == null ? void 0 : k.orderFrom) ??
|
|
8730
|
+
orderFrom: (k == null ? void 0 : k.orderFrom) ?? J.F_ORDER_FROM.enum.ALL
|
|
8728
8731
|
};
|
|
8729
8732
|
});
|
|
8730
8733
|
return {
|
|
@@ -8763,7 +8766,7 @@ function Md(e, t, n, i) {
|
|
|
8763
8766
|
_id: i,
|
|
8764
8767
|
items: d(u == null ? void 0 : u.items).map((c) => ({
|
|
8765
8768
|
...c,
|
|
8766
|
-
orderFrom:
|
|
8769
|
+
orderFrom: J.F_ORDER_FROM.enum.ALL
|
|
8767
8770
|
}))
|
|
8768
8771
|
}
|
|
8769
8772
|
}, r.modules.catalog = [...s, l], r) : l ? (l.override.items = {
|
|
@@ -8801,7 +8804,7 @@ function Nd(e, t) {
|
|
|
8801
8804
|
};
|
|
8802
8805
|
}
|
|
8803
8806
|
const Ai = ho("item-manager", () => {
|
|
8804
|
-
const e =
|
|
8807
|
+
const e = Ce(), t = qe(), n = at(), i = bt(t), r = yt(i), o = rn(), { t: a } = Ee(), l = (E) => {
|
|
8805
8808
|
if (!o) throw new Error("No current instance found");
|
|
8806
8809
|
const { container: L } = Pr(Id, o, {
|
|
8807
8810
|
...E,
|
|
@@ -8950,7 +8953,7 @@ const Ai = ho("item-manager", () => {
|
|
|
8950
8953
|
}, []), { updateMenu: O } = r;
|
|
8951
8954
|
await O(
|
|
8952
8955
|
L.map((M) => ({
|
|
8953
|
-
module:
|
|
8956
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.item,
|
|
8954
8957
|
operation: Oe.F_OPERATION_TYPE.update,
|
|
8955
8958
|
data: M
|
|
8956
8959
|
})),
|
|
@@ -8978,7 +8981,7 @@ const Ai = ho("item-manager", () => {
|
|
|
8978
8981
|
e.currentScheduler ? await y(E) : await k(E)
|
|
8979
8982
|
);
|
|
8980
8983
|
}
|
|
8981
|
-
function
|
|
8984
|
+
function C(E) {
|
|
8982
8985
|
const { updateMenu: L } = r, O = E.length > 1 ? `${E.length} products` : E[0].name;
|
|
8983
8986
|
n.open({
|
|
8984
8987
|
title: a("menu.common.dialog.remove.product.title"),
|
|
@@ -8995,7 +8998,7 @@ const Ai = ho("item-manager", () => {
|
|
|
8995
8998
|
}).onPrimary(async () => {
|
|
8996
8999
|
await L(
|
|
8997
9000
|
E.map(({ _id: M }) => ({
|
|
8998
|
-
module:
|
|
9001
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.item,
|
|
8999
9002
|
operation: Oe.F_OPERATION_TYPE.delete,
|
|
9000
9003
|
data: M
|
|
9001
9004
|
})),
|
|
@@ -9021,13 +9024,13 @@ const Ai = ho("item-manager", () => {
|
|
|
9021
9024
|
e,
|
|
9022
9025
|
r.updateMenu,
|
|
9023
9026
|
n
|
|
9024
|
-
).unlinkProduct(E.map((L) => L._id)) :
|
|
9027
|
+
).unlinkProduct(E.map((L) => L._id)) : C(E);
|
|
9025
9028
|
}
|
|
9026
9029
|
async function I(E) {
|
|
9027
9030
|
const { updateMenu: L } = r;
|
|
9028
9031
|
await L(
|
|
9029
9032
|
{
|
|
9030
|
-
module:
|
|
9033
|
+
module: J.F_MENU_MODULE_V4_KEY.enum.item,
|
|
9031
9034
|
operation: Oe.F_OPERATION_TYPE.rearrange,
|
|
9032
9035
|
data: E
|
|
9033
9036
|
},
|
|
@@ -9047,7 +9050,7 @@ export {
|
|
|
9047
9050
|
fo as A,
|
|
9048
9051
|
Qu as F,
|
|
9049
9052
|
Oa as I,
|
|
9050
|
-
|
|
9053
|
+
Co as M,
|
|
9051
9054
|
ed as P,
|
|
9052
9055
|
Ge as R,
|
|
9053
9056
|
Iu as S,
|