@feedmepos/mf-menu 0.31.30-beta.1 → 0.31.31-beta.1
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-CrQBq4gc.js → App-1TX8v7ZA.js} +10 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-D00UOSsK.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js} +12 -12
- package/dist/{Catalog-D4m8x_f2.js → Catalog-DWClc58s.js} +75 -74
- package/dist/{Category-sQll5ITQ.js → Category-BqKFvFam.js} +60 -60
- package/dist/{Category-Ql1kDDH-.js → Category-IYMtMoT-.js} +28 -28
- package/dist/{CookingGuide-CSutufcu.js → CookingGuide-BayJ6zj4.js} +103 -101
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BqhYFXNG.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ceq86b3d.js} +1 -1
- package/dist/{Group-CnBE6CiB.js → Group-LqSX7ue6.js} +1 -1
- package/dist/{Group-YqVh5hC0.js → Group-RujTPTns.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-D9TSH4sS.js → Group.vue_vue_type_script_setup_true_lang-Dj9ZmkYe.js} +138 -137
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CqriuXVC.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js} +16 -16
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CaIU0RsG.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C4IrA3es.js} +4616 -4610
- package/dist/{Ingredient-MhLxJzAU.js → Ingredient-_tc8llr1.js} +65 -64
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIbExsMI.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DLFDf-VZ.js} +14 -12
- package/dist/{LinkProductSideSheet-D7vYZbFy.js → LinkProductSideSheet-C6rF-G1v.js} +14 -12
- package/dist/{MenuSetting-n0me5wY8.js → MenuSetting-xDHeeROY.js} +27 -26
- package/dist/{PrintRoute-CudZZYbe.js → PrintRoute-B_TFMn5e.js} +17 -15
- package/dist/{Product-DPZQgWET.js → Product-DdEEqrtc.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CdaeZy_o.js → Product.vue_vue_type_script_setup_true_lang-zcistmwh.js} +257 -256
- package/dist/{ProductInternalTools-DgANHliV.js → ProductInternalTools-BcC7BF6W.js} +45 -45
- package/dist/{Products-Ez4R3jKW.js → Products-Cu0cJshV.js} +74 -72
- package/dist/{Publish-B4DEPe1I.js → Publish-Bm3Xiks1.js} +34 -32
- package/dist/{Recipe-Cripr-gY.js → Recipe-DWK-luIZ.js} +65 -63
- package/dist/{Scheduler-C-OV9d7d.js → Scheduler-Cb1TeBhW.js} +19 -19
- package/dist/{ServingSequence-DAumDXP1.js → ServingSequence-evSIET_8.js} +34 -34
- package/dist/{Setting-ByaHpIAN.js → Setting-Cn3kwC9F.js} +54 -53
- package/dist/{Subcategory-ro2aGt2H.js → Subcategory-q4m4qHsU.js} +34 -34
- package/dist/{Takeaway-CJb0ayDC.js → Takeaway-ClepHYGu.js} +14 -14
- package/dist/{Takeaway-AEg_0gKg.js → Takeaway-D-rdUZuh.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cjj4bxoL.js → Takeaway.vue_vue_type_script_setup_true_lang-y9Yxstu2.js} +41 -40
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Drf4n4rj.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BSeLfoOA.js} +1108 -1106
- package/dist/{Unit-1wzUBplb.js → Unit-IM8Naj82.js} +12 -12
- package/dist/{Variant-Dnz2v5u0.js → Variant-fzGvwaMo.js} +16 -16
- package/dist/{_id_-C3rBZ6zL.js → _id_-BsKNG9Qv.js} +22 -22
- package/dist/{app-sDPxNF11.js → app-BzQRUMTK.js} +3 -3
- package/dist/{app-CLY6CoaV.js → app-CoVUUCa_.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-BZ4FSJ_Z.js → linked-status-eQqjvOq_.js} +2 -2
- package/dist/assets/{override-menu-C-fWJdVd.js → override-menu-C8NTBJgN.js} +2 -2
- package/dist/assets/{validate-menu-BDEM_Odz.js → validate-menu-Dn-OO7Ed.js} +2 -2
- package/dist/{catalog-bkFntZNz.js → catalog-CaXceaA2.js} +1 -1
- package/dist/{catalogSetting-zrKwGJ_C.js → catalogSetting-BGvckFdh.js} +1 -1
- package/dist/{category-BuPYaEsy.js → category-u5eo_Vjd.js} +5 -3
- package/dist/currency-BPHwez-E.js +7 -0
- package/dist/{dayjs.min-CR2NIyKn.js → dayjs.min-Bsr3tJCn.js} +1 -1
- package/dist/{index-BNORpjos.js → index-Bbx4iZ6n.js} +27 -27
- package/dist/{index-Dp_vLFQp.js → index-DSAG0yWh.js} +22 -20
- package/dist/{index-D20u0bCl.js → index-tRQb7RN_.js} +1 -1
- package/dist/{item-D4DcBt7N.js → item-BAqzKh4O.js} +801 -799
- package/dist/{jszip.min-CRJ61J9H.js → jszip.min-BKJtvCjM.js} +353 -353
- package/dist/{menu-Dw-Hpy07.js → menu-CDrsBjmr.js} +11 -9
- package/dist/menu-CsIzrBEr.js +74044 -0
- package/dist/packages/shared/src/permission/posPermission.d.ts +6 -0
- package/dist/{priceTier-EDLTGEjz.js → priceTier-DfbHonGe.js} +4 -4
- package/dist/{scheduler-CpPn2BlK.js → scheduler-DTWaBudB.js} +13 -11
- package/dist/{subcategory-B_W6vbM8.js → subcategory-D-R5r1Tr.js} +86 -84
- package/dist/{toExcel-D02OlDJu.js → toExcel-84VTtSA7.js} +2 -2
- package/dist/{unit-fro9wz1K.js → unit-B4zscxzo.js} +24 -23
- package/package.json +1 -1
- package/dist/currency-BISImIgX.js +0 -7
- package/dist/menu-ibc-yXVt.js +0 -107745
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
import { defineStore as mo } from "pinia";
|
|
2
|
-
import { createElementBlock as re, openBlock as U, createElementVNode as B, defineComponent as ge, resolveComponent as K, createBlock as J, createVNode as R, toDisplayString as Ee, Fragment as Ve, renderList as rt, h as
|
|
3
|
-
import {
|
|
2
|
+
import { createElementBlock as re, openBlock as U, createElementVNode as B, defineComponent as ge, resolveComponent as K, createBlock as J, createVNode as R, toDisplayString as Ee, Fragment as Ve, renderList as rt, h as De, ref as oe, computed as V, watch as Le, unref as b, renderSlot as Ce, withCtx as W, createCommentVNode as se, Transition as ha, getCurrentInstance as an, inject as ga, shallowRef as va, onMounted as $t, onUnmounted as _a, Text as ba, normalizeClass as Ke, resolveDynamicComponent as wn, withDirectives as Xt, vShow as kn, mergeProps as po, withModifiers as On, createTextVNode as Bn, resolveDirective as fo, markRaw as ya, render as Wn, mergeModels as wa, useModel as Ea, nextTick as ho, onBeforeUnmount as Sa, normalizeProps as ka, guardReactiveProps as Oa, normalizeStyle as Ra } from "vue";
|
|
3
|
+
import { Dinero as Be, Country as Ca } from "@feedmepos/core";
|
|
4
|
+
import { H as ze, B as q, T as Aa, ag as Ia, W as Ta, D as be, z as Je, Q as go, u as Me, G as at, $ as Ma, A as kt, M as Ot, N as Fa, O as Da, P as Na, R as Dn, aa as Pa, J as La, I as ki } from "./menu-CsIzrBEr.js";
|
|
4
5
|
import { useI18n as ke, useCoreStore as rn, CustomAttributesForm as vo } from "@feedmepos/mf-common";
|
|
5
|
-
import { useDialog as lt, useSnackbar as Qe, components as
|
|
6
|
-
import { C as ht } from "./catalog-
|
|
7
|
-
import
|
|
6
|
+
import { useDialog as lt, useSnackbar as Qe, components as Ge, FmButtonColorThemeVariant as ft, FmButtonVariant as Rt, useBreakpoints as _o, useDialogChild as bo } from "@feedmepos/ui-library";
|
|
7
|
+
import { C as ht } from "./catalog-CaXceaA2.js";
|
|
8
|
+
import "@feedmepos/core/entity";
|
|
9
|
+
import { c as xa } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
8
10
|
import { a as Oi, _ as yo } from "./tooltip-B5BiPMx9.js";
|
|
9
|
-
import { _ as Ct, L as
|
|
10
|
-
import { _ as ut, a as
|
|
11
|
-
import { s as Hn, F as
|
|
12
|
-
import { I as
|
|
13
|
-
import { u as
|
|
14
|
-
import { a as
|
|
11
|
+
import { _ as Ct, L as Ua } from "./LinkProductSideSheet-C6rF-G1v.js";
|
|
12
|
+
import { _ as ut, a as Va } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
13
|
+
import { s as Hn, F as za, _ as $a } from "./index-tRQb7RN_.js";
|
|
14
|
+
import { I as Ga, u as Ba } from "./app-CoVUUCa_.js";
|
|
15
|
+
import { u as Wa } from "./app-BzQRUMTK.js";
|
|
16
|
+
import { a as Ha, g as wo, d as ja, c as Ka, b as Ya, m as Xa } from "./subcategory-D-R5r1Tr.js";
|
|
15
17
|
import { _ as bt } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
16
18
|
import "@vue/devtools-api";
|
|
17
|
-
import { u as
|
|
19
|
+
import { u as qa } from "./category-u5eo_Vjd.js";
|
|
18
20
|
import { u as ui } from "./discardConfirm-BHni0LNu.js";
|
|
19
|
-
import { _ as
|
|
20
|
-
import { useInventoryStore as Eo, InventoryBindingForm as
|
|
21
|
+
import { _ as Dt, l as jn, T as Ja } from "./index-DSAG0yWh.js";
|
|
22
|
+
import { useInventoryStore as Eo, InventoryBindingForm as Za, InventoryBindingSummary as Qa } from "@feedmepos/mf-inventory-portal";
|
|
21
23
|
import { c as sn } from "./check-C9mY6LiX.js";
|
|
22
|
-
import { c as
|
|
23
|
-
import { f as Gt } from "./currency-
|
|
24
|
-
import { u as So } from "./priceTier-
|
|
25
|
-
import { u as
|
|
26
|
-
import { c as
|
|
24
|
+
import { c as er } from "./object-DVUNCr7w.js";
|
|
25
|
+
import { f as Gt } from "./currency-BPHwez-E.js";
|
|
26
|
+
import { u as So } from "./priceTier-DfbHonGe.js";
|
|
27
|
+
import { u as tr } from "./search-BAPEUu1R.js";
|
|
28
|
+
import { c as nr } from "./string-DpfFixWH.js";
|
|
27
29
|
import { d as ko } from "./vuedraggable-CK8z7qA8.js";
|
|
28
|
-
import { _ as
|
|
29
|
-
import { V as Ri } from "./index-
|
|
30
|
+
import { _ as ir } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js";
|
|
31
|
+
import { V as Ri } from "./index-Bbx4iZ6n.js";
|
|
30
32
|
class _n {
|
|
31
33
|
constructor(t, n, i, a) {
|
|
32
34
|
this.scheduler = t, this.menuStore = n, this.updateMenu = i, this.dialog = a;
|
|
@@ -211,7 +213,7 @@ class _n {
|
|
|
211
213
|
const a = t.reduce((r, l) => {
|
|
212
214
|
const s = n.items.filter((u) => u._id == l) ?? [];
|
|
213
215
|
return r = r.concat(
|
|
214
|
-
|
|
216
|
+
Aa(l, s, (u) => ({
|
|
215
217
|
...u,
|
|
216
218
|
orderFrom: null
|
|
217
219
|
}))
|
|
@@ -224,10 +226,10 @@ class _n {
|
|
|
224
226
|
}
|
|
225
227
|
}
|
|
226
228
|
getAvailableItemForLink() {
|
|
227
|
-
const t =
|
|
229
|
+
const t = Ia(
|
|
228
230
|
this.menuStore.variants,
|
|
229
231
|
this.menuStore.categories,
|
|
230
|
-
|
|
232
|
+
Ta(this.menuStore.state.menu.modules.item, (a) => a.code || a.name)
|
|
231
233
|
), n = new Set(
|
|
232
234
|
this.menuStore.currentCatalog ? ht.getItemAvailable(this.menuStore.currentCatalog) : this.menuStore.state.menu.modules.item.map((a) => a._id)
|
|
233
235
|
);
|
|
@@ -245,7 +247,7 @@ function Rn(e, t) {
|
|
|
245
247
|
}
|
|
246
248
|
return q.F_ADDON_GROUP_TYPE.enum.NORMAL;
|
|
247
249
|
}
|
|
248
|
-
function
|
|
250
|
+
function or(e) {
|
|
249
251
|
return [...new Set(e.map((n) => n._id))].reduce((n, i) => {
|
|
250
252
|
const a = e.filter((l) => l._id === i), { base: o, variants: r } = a.reduce(
|
|
251
253
|
(l, s) => {
|
|
@@ -303,7 +305,7 @@ function Oo(e) {
|
|
|
303
305
|
...o,
|
|
304
306
|
code: o.code ?? "",
|
|
305
307
|
name: o.name ?? "",
|
|
306
|
-
price: o.price ??
|
|
308
|
+
price: o.price ?? Be.zero().toObject(),
|
|
307
309
|
orderFrom: q.F_ORDER_FROM.enum.ALL,
|
|
308
310
|
groups: [],
|
|
309
311
|
isDynamicAddon: e.type === q.F_ADDON_GROUP_TYPE.enum.DYNAMIC
|
|
@@ -407,7 +409,7 @@ class Ro {
|
|
|
407
409
|
return {
|
|
408
410
|
...s,
|
|
409
411
|
type: d,
|
|
410
|
-
items:
|
|
412
|
+
items: or(m),
|
|
411
413
|
itemsLinked: r.filter((c) => c.groups.some(({ _id: p }) => p === s._id)).map((c) => c._id)
|
|
412
414
|
};
|
|
413
415
|
}
|
|
@@ -499,19 +501,19 @@ function Co(e) {
|
|
|
499
501
|
const t = [];
|
|
500
502
|
return e.link() || (t.push("name"), t.push("min"), t.push("max"), t.push("stackable")), e.type || t.push("type"), t;
|
|
501
503
|
}
|
|
502
|
-
function
|
|
504
|
+
function ar(e, t) {
|
|
503
505
|
if (!e)
|
|
504
506
|
return [];
|
|
505
507
|
const n = ["code"];
|
|
506
508
|
return e.priceEdit || n.push("price"), e.isDefault(t) || n.push("isDefault"), e.name(t) || n.push("name"), n;
|
|
507
509
|
}
|
|
508
|
-
function
|
|
510
|
+
function rr(e, t) {
|
|
509
511
|
const n = be(e);
|
|
510
512
|
return Co(t).forEach((o) => {
|
|
511
513
|
delete n[o];
|
|
512
514
|
}), (n.items ?? []).forEach((o) => {
|
|
513
515
|
const r = o.combinationKey ?? null;
|
|
514
|
-
|
|
516
|
+
ar(
|
|
515
517
|
t,
|
|
516
518
|
r
|
|
517
519
|
).forEach((s) => {
|
|
@@ -519,16 +521,16 @@ function ar(e, t) {
|
|
|
519
521
|
});
|
|
520
522
|
}), n;
|
|
521
523
|
}
|
|
522
|
-
const
|
|
523
|
-
function
|
|
524
|
+
const sr = {};
|
|
525
|
+
function lr(e, t) {
|
|
524
526
|
return U(), re("div", null, t[0] || (t[0] = [
|
|
525
527
|
B("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
|
|
526
528
|
]));
|
|
527
529
|
}
|
|
528
|
-
const
|
|
530
|
+
const ur = /* @__PURE__ */ Ct(sr, [["render", lr]]), cr = {
|
|
529
531
|
key: 0,
|
|
530
532
|
class: "ml-40 w-[320px] fm-corner-radius-lg p-16 border border-fm-color-neutral-gray-200 space-y-4"
|
|
531
|
-
},
|
|
533
|
+
}, dr = { class: "fm-typo-en-title-sm-600" }, Ci = /* @__PURE__ */ ge({
|
|
532
534
|
__name: "Summary",
|
|
533
535
|
props: {
|
|
534
536
|
title: {},
|
|
@@ -540,9 +542,9 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
540
542
|
function i() {
|
|
541
543
|
n.open({
|
|
542
544
|
title: t.title,
|
|
543
|
-
contentComponent:
|
|
545
|
+
contentComponent: De("div", { class: "space-y-4" }, [
|
|
544
546
|
...t.items.map(
|
|
545
|
-
(a) =>
|
|
547
|
+
(a) => De(Oi, {
|
|
546
548
|
name: a.name,
|
|
547
549
|
value: a.value || "--"
|
|
548
550
|
})
|
|
@@ -552,9 +554,9 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
552
554
|
}
|
|
553
555
|
return (a, o) => {
|
|
554
556
|
const r = K("FmButton");
|
|
555
|
-
return t.variant === "full" ? (U(), re("div",
|
|
556
|
-
B("div",
|
|
557
|
-
R(
|
|
557
|
+
return t.variant === "full" ? (U(), re("div", cr, [
|
|
558
|
+
B("div", dr, Ee(a.title), 1),
|
|
559
|
+
R(ur),
|
|
558
560
|
(U(!0), re(Ve, null, rt(a.items, (l) => (U(), J(Oi, {
|
|
559
561
|
key: l.name,
|
|
560
562
|
name: l.name,
|
|
@@ -568,7 +570,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
568
570
|
}));
|
|
569
571
|
};
|
|
570
572
|
}
|
|
571
|
-
}),
|
|
573
|
+
}), mr = { class: "space-y-24 p-16 border-fm-color-neutral-gray-200 fm-corner-radius-lg border" }, pr = { class: "space-y-4" }, fr = { class: "fm-typo-en-title-sm-600" }, hr = { class: "text-fm-color-typo-secondary" }, gr = { class: "flex gap-16" }, vr = { class: "flex-1" }, _r = { class: "flex-1" }, br = /* @__PURE__ */ ge({
|
|
572
574
|
__name: "CatalogSchedulerSelector",
|
|
573
575
|
props: {
|
|
574
576
|
linkedStatus: {}
|
|
@@ -619,13 +621,13 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
619
621
|
}
|
|
620
622
|
), (c, p) => {
|
|
621
623
|
const E = K("FmSelect");
|
|
622
|
-
return U(), re("div",
|
|
623
|
-
B("div",
|
|
624
|
-
B("div",
|
|
625
|
-
B("div",
|
|
624
|
+
return U(), re("div", mr, [
|
|
625
|
+
B("div", pr, [
|
|
626
|
+
B("div", fr, Ee(b(a)("menu.catalog_scheduler.title")), 1),
|
|
627
|
+
B("div", hr, Ee(b(a)("menu.catalog_scheduler.subtitle")), 1)
|
|
626
628
|
]),
|
|
627
|
-
B("div",
|
|
628
|
-
B("div",
|
|
629
|
+
B("div", gr, [
|
|
630
|
+
B("div", vr, [
|
|
629
631
|
R(E, {
|
|
630
632
|
label: b(a)("menu.common.labels.catalog"),
|
|
631
633
|
items: l.value,
|
|
@@ -633,7 +635,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
633
635
|
"onUpdate:modelValue": p[0] || (p[0] = (_) => r.value = _)
|
|
634
636
|
}, null, 8, ["label", "items", "modelValue"])
|
|
635
637
|
]),
|
|
636
|
-
B("div",
|
|
638
|
+
B("div", _r, [
|
|
637
639
|
R(E, {
|
|
638
640
|
label: b(a)("menu.common.labels.scheduler"),
|
|
639
641
|
items: m.value,
|
|
@@ -645,10 +647,10 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
645
647
|
]);
|
|
646
648
|
};
|
|
647
649
|
}
|
|
648
|
-
}),
|
|
650
|
+
}), yr = { class: "flex items-center justify-between" }, wr = { class: "space-y-4 flex-1" }, Er = { class: "fm-typo-en-title-sm-600" }, Sr = {
|
|
649
651
|
key: 0,
|
|
650
652
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
651
|
-
},
|
|
653
|
+
}, kr = { key: 0 }, Or = /* @__PURE__ */ ge({
|
|
652
654
|
__name: "ToggleCard",
|
|
653
655
|
props: {
|
|
654
656
|
title: {},
|
|
@@ -667,10 +669,10 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
667
669
|
variant: "outlined"
|
|
668
670
|
}, {
|
|
669
671
|
default: W(() => [
|
|
670
|
-
B("div",
|
|
671
|
-
B("div",
|
|
672
|
-
B("p",
|
|
673
|
-
i.description ? (U(), re("p",
|
|
672
|
+
B("div", yr, [
|
|
673
|
+
B("div", wr, [
|
|
674
|
+
B("p", Er, Ee(i.title), 1),
|
|
675
|
+
i.description ? (U(), re("p", Sr, Ee(i.description), 1)) : se("", !0)
|
|
674
676
|
]),
|
|
675
677
|
R(o, {
|
|
676
678
|
"model-value": i.toggle,
|
|
@@ -679,7 +681,7 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
679
681
|
]),
|
|
680
682
|
R(ha, { name: "expand" }, {
|
|
681
683
|
default: W(() => [
|
|
682
|
-
i.toggle ? (U(), re("div",
|
|
684
|
+
i.toggle ? (U(), re("div", kr, [
|
|
683
685
|
Ce(i.$slots, "default", {}, void 0, !0)
|
|
684
686
|
])) : se("", !0)
|
|
685
687
|
]),
|
|
@@ -690,11 +692,11 @@ const lr = /* @__PURE__ */ Ct(rr, [["render", sr]]), ur = {
|
|
|
690
692
|
}));
|
|
691
693
|
};
|
|
692
694
|
}
|
|
693
|
-
}), Tt = /* @__PURE__ */ Ct(
|
|
694
|
-
var
|
|
695
|
+
}), Tt = /* @__PURE__ */ Ct(Or, [["__scopeId", "data-v-e920f110"]]);
|
|
696
|
+
var Rr = { remy: "https://remy-dev.feedmeapi.com/v1" };
|
|
695
697
|
let We;
|
|
696
|
-
function
|
|
697
|
-
const t =
|
|
698
|
+
function Cr(e) {
|
|
699
|
+
const t = Wa(), n = Ga(e), i = V(() => {
|
|
698
700
|
var s, u, m;
|
|
699
701
|
return ((m = (u = (s = t.publicSetting) == null ? void 0 : s.aiSettings) == null ? void 0 : u.remy) == null ? void 0 : m.enable) || !1;
|
|
700
702
|
}), a = oe(!1);
|
|
@@ -715,20 +717,20 @@ function Rr(e) {
|
|
|
715
717
|
closeSession: (s) => (o(!1), n.closeSession(s))
|
|
716
718
|
};
|
|
717
719
|
}
|
|
718
|
-
function
|
|
719
|
-
We =
|
|
720
|
+
function Rm(e) {
|
|
721
|
+
We = Cr({
|
|
720
722
|
token: e,
|
|
721
|
-
url:
|
|
723
|
+
url: Rr.remy
|
|
722
724
|
});
|
|
723
725
|
}
|
|
724
|
-
const
|
|
726
|
+
const Ar = mo("menu-edit-state", {
|
|
725
727
|
state: () => ({
|
|
726
728
|
isUpdatingItem: !1,
|
|
727
729
|
storedCatalogId: null,
|
|
728
730
|
storedSchedulerId: null
|
|
729
731
|
})
|
|
730
732
|
});
|
|
731
|
-
async function
|
|
733
|
+
async function Ir(e, t = {}) {
|
|
732
734
|
const { withTimestamp: n = !1, filename: i = "image.jpg" } = t;
|
|
733
735
|
try {
|
|
734
736
|
const a = n ? e + (e.includes("?") ? "&" : "?") + "_ts=" + Date.now() : e;
|
|
@@ -744,47 +746,47 @@ async function Ar(e, t = {}) {
|
|
|
744
746
|
return console.error(`Failed to fetch image ${e}:`, a), null;
|
|
745
747
|
}
|
|
746
748
|
}
|
|
747
|
-
async function
|
|
748
|
-
const i = await
|
|
749
|
+
async function Tr(e, t = "image.jpg", n = "image/jpeg") {
|
|
750
|
+
const i = await Ir(e, {
|
|
749
751
|
withTimestamp: !0,
|
|
750
752
|
filename: t
|
|
751
753
|
});
|
|
752
754
|
return i ? new File([i.blob], t, { type: n }) : null;
|
|
753
755
|
}
|
|
754
|
-
async function
|
|
755
|
-
return
|
|
756
|
+
async function Cm(e, t, n = {}) {
|
|
757
|
+
return Ma({
|
|
756
758
|
items: e,
|
|
757
759
|
processor: (i) => t(i.url, i.filename),
|
|
758
760
|
...n
|
|
759
761
|
});
|
|
760
762
|
}
|
|
761
|
-
const
|
|
763
|
+
const Mr = {}, Fr = { class: "pl-32" };
|
|
762
764
|
function Dr(e, t) {
|
|
763
|
-
return U(), re("div",
|
|
765
|
+
return U(), re("div", Fr, [
|
|
764
766
|
Ce(e.$slots, "default")
|
|
765
767
|
]);
|
|
766
768
|
}
|
|
767
|
-
const
|
|
769
|
+
const Nr = /* @__PURE__ */ Ct(Mr, [["render", Dr]]);
|
|
768
770
|
/*!
|
|
769
771
|
* shared v10.0.5
|
|
770
772
|
* (c) 2024 kazuya kawaguchi
|
|
771
773
|
* Released under the MIT License.
|
|
772
774
|
*/
|
|
773
|
-
const Ai = typeof window < "u", Pt = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
775
|
+
const Ai = typeof window < "u", Pt = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Pr = (e, t, n) => Lr({ l: e, k: t, s: n }), Lr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Ne = (e) => typeof e == "number" && isFinite(e), xr = (e) => di(e) === "[object Date]", En = (e) => di(e) === "[object RegExp]", Cn = (e) => pe(e) && Object.keys(e).length === 0, Pe = Object.assign, Ur = Object.create, ye = (e = null) => Ur(e);
|
|
774
776
|
let Ii;
|
|
775
|
-
const
|
|
777
|
+
const Ft = () => Ii || (Ii = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ye());
|
|
776
778
|
function Ti(e) {
|
|
777
779
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
778
780
|
}
|
|
779
|
-
const
|
|
781
|
+
const Vr = Object.prototype.hasOwnProperty;
|
|
780
782
|
function Ze(e, t) {
|
|
781
|
-
return
|
|
783
|
+
return Vr.call(e, t);
|
|
782
784
|
}
|
|
783
|
-
const Te = Array.isArray, Oe = (e) => typeof e == "function", te = (e) => typeof e == "string", Re = (e) => typeof e == "boolean", fe = (e) => e !== null && typeof e == "object",
|
|
785
|
+
const Te = Array.isArray, Oe = (e) => typeof e == "function", te = (e) => typeof e == "string", Re = (e) => typeof e == "boolean", fe = (e) => e !== null && typeof e == "object", zr = (e) => fe(e) && Oe(e.then) && Oe(e.catch), Ao = Object.prototype.toString, di = (e) => Ao.call(e), pe = (e) => di(e) === "[object Object]", $r = (e) => e == null ? "" : Te(e) || pe(e) && e.toString === Ao ? JSON.stringify(e, null, 2) : String(e);
|
|
784
786
|
function mi(e, t = "") {
|
|
785
787
|
return e.reduce((n, i, a) => a === 0 ? n + i : n + t + i, "");
|
|
786
788
|
}
|
|
787
|
-
function
|
|
789
|
+
function Gr(e, t) {
|
|
788
790
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
789
791
|
}
|
|
790
792
|
const cn = (e) => !fe(e) || Te(e);
|
|
@@ -799,7 +801,7 @@ function bn(e, t) {
|
|
|
799
801
|
});
|
|
800
802
|
}
|
|
801
803
|
}
|
|
802
|
-
function
|
|
804
|
+
function Br(e, t, n) {
|
|
803
805
|
return { line: e, column: t, offset: n };
|
|
804
806
|
}
|
|
805
807
|
function Kn(e, t, n) {
|
|
@@ -822,20 +824,20 @@ const _e = {
|
|
|
822
824
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
823
825
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
824
826
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
825
|
-
},
|
|
827
|
+
}, Wr = 17;
|
|
826
828
|
function An(e, t, n = {}) {
|
|
827
829
|
const { domain: i, messages: a, args: o } = n, r = e, l = new SyntaxError(String(r));
|
|
828
830
|
return l.code = e, t && (l.location = t), l.domain = i, l;
|
|
829
831
|
}
|
|
830
|
-
function
|
|
832
|
+
function Hr(e) {
|
|
831
833
|
throw e;
|
|
832
834
|
}
|
|
833
|
-
const mt = " ",
|
|
834
|
-
`,
|
|
835
|
-
function
|
|
835
|
+
const mt = " ", jr = "\r", $e = `
|
|
836
|
+
`, Kr = "\u2028", Yr = "\u2029";
|
|
837
|
+
function Xr(e) {
|
|
836
838
|
const t = e;
|
|
837
839
|
let n = 0, i = 1, a = 1, o = 0;
|
|
838
|
-
const r = (y) => t[y] ===
|
|
840
|
+
const r = (y) => t[y] === jr && t[y + 1] === $e, l = (y) => t[y] === $e, s = (y) => t[y] === Yr, u = (y) => t[y] === Kr, m = (y) => r(y) || l(y) || s(y) || u(y), d = () => n, c = () => i, p = () => a, E = () => o, _ = (y) => r(y) || s(y) || u(y) ? $e : t[y], w = () => _(n), v = () => _(n + o);
|
|
839
841
|
function h() {
|
|
840
842
|
return o = 0, m(n) && (i++, a = 0), r(n) && n++, n++, a++, t[n];
|
|
841
843
|
}
|
|
@@ -869,9 +871,9 @@ function Yr(e) {
|
|
|
869
871
|
skipToPeek: T
|
|
870
872
|
};
|
|
871
873
|
}
|
|
872
|
-
const Et = void 0,
|
|
873
|
-
function
|
|
874
|
-
const n = t.location !== !1, i =
|
|
874
|
+
const Et = void 0, qr = ".", Mi = "'", Jr = "tokenizer";
|
|
875
|
+
function Zr(e, t = {}) {
|
|
876
|
+
const n = t.location !== !1, i = Xr(e), a = () => i.index(), o = () => Br(i.line(), i.column(), i.index()), r = o(), l = a(), s = {
|
|
875
877
|
currentType: 13,
|
|
876
878
|
offset: l,
|
|
877
879
|
startLoc: r,
|
|
@@ -887,11 +889,11 @@ function Jr(e, t = {}) {
|
|
|
887
889
|
function d(f, g, L, ...Y) {
|
|
888
890
|
const X = u();
|
|
889
891
|
if (g.column += L, g.offset += L, m) {
|
|
890
|
-
const ue = n ? Kn(X.startLoc, g) : null,
|
|
891
|
-
domain:
|
|
892
|
+
const ue = n ? Kn(X.startLoc, g) : null, D = An(f, ue, {
|
|
893
|
+
domain: Jr,
|
|
892
894
|
args: Y
|
|
893
895
|
});
|
|
894
|
-
m(
|
|
896
|
+
m(D);
|
|
895
897
|
}
|
|
896
898
|
}
|
|
897
899
|
function c(f, g, L) {
|
|
@@ -996,8 +998,8 @@ function Jr(e, t = {}) {
|
|
|
996
998
|
}
|
|
997
999
|
function N(f, g = !0) {
|
|
998
1000
|
const L = (X = !1, ue = "") => {
|
|
999
|
-
const
|
|
1000
|
-
return
|
|
1001
|
+
const D = f.currentPeek();
|
|
1002
|
+
return D === "{" || D === "@" || !D ? X : D === "|" ? !(ue === mt || ue === $e) : D === mt ? (f.peek(), L(!0, mt)) : D === $e ? (f.peek(), L(!0, $e)) : !0;
|
|
1001
1003
|
}, Y = L();
|
|
1002
1004
|
return g && f.resetPeek(), Y;
|
|
1003
1005
|
}
|
|
@@ -1016,7 +1018,7 @@ function Jr(e, t = {}) {
|
|
|
1016
1018
|
function z(f) {
|
|
1017
1019
|
return M(f, P);
|
|
1018
1020
|
}
|
|
1019
|
-
function
|
|
1021
|
+
function F(f) {
|
|
1020
1022
|
const g = f.charCodeAt(0);
|
|
1021
1023
|
return g >= 97 && g <= 122 || // a-z
|
|
1022
1024
|
g >= 65 && g <= 90 || // A-Z
|
|
@@ -1026,7 +1028,7 @@ function Jr(e, t = {}) {
|
|
|
1026
1028
|
g === 45;
|
|
1027
1029
|
}
|
|
1028
1030
|
function C(f) {
|
|
1029
|
-
return M(f,
|
|
1031
|
+
return M(f, F);
|
|
1030
1032
|
}
|
|
1031
1033
|
function $(f) {
|
|
1032
1034
|
const g = f.charCodeAt(0);
|
|
@@ -1171,7 +1173,7 @@ function Jr(e, t = {}) {
|
|
|
1171
1173
|
case "@":
|
|
1172
1174
|
return g.braceNest > 0 && d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), L = dt(f, g) || p(g), g.braceNest = 0, L;
|
|
1173
1175
|
default: {
|
|
1174
|
-
let X = !0, ue = !0,
|
|
1176
|
+
let X = !0, ue = !0, D = !0;
|
|
1175
1177
|
if (I(f))
|
|
1176
1178
|
return g.braceNest > 0 && d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), L = c(g, 1, yt(f)), g.braceNest = 0, g.inLinked = !1, L;
|
|
1177
1179
|
if (g.braceNest > 0 && (g.currentType === 4 || g.currentType === 5 || g.currentType === 6))
|
|
@@ -1180,9 +1182,9 @@ function Jr(e, t = {}) {
|
|
|
1180
1182
|
return L = c(g, 4, Z(f)), w(f), L;
|
|
1181
1183
|
if (ue = O(f, g))
|
|
1182
1184
|
return L = c(g, 5, ne(f)), w(f), L;
|
|
1183
|
-
if (
|
|
1185
|
+
if (D = A(f, g))
|
|
1184
1186
|
return L = c(g, 6, ee(f)), w(f), L;
|
|
1185
|
-
if (!X && !ue && !
|
|
1187
|
+
if (!X && !ue && !D)
|
|
1186
1188
|
return L = c(g, 12, je(f)), d(_e.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, L.value), w(f), L;
|
|
1187
1189
|
break;
|
|
1188
1190
|
}
|
|
@@ -1265,8 +1267,8 @@ function Jr(e, t = {}) {
|
|
|
1265
1267
|
context: u
|
|
1266
1268
|
};
|
|
1267
1269
|
}
|
|
1268
|
-
const
|
|
1269
|
-
function
|
|
1270
|
+
const Qr = "parser", es = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
1271
|
+
function ts(e, t, n) {
|
|
1270
1272
|
switch (e) {
|
|
1271
1273
|
case "\\\\":
|
|
1272
1274
|
return "\\";
|
|
@@ -1279,13 +1281,13 @@ function es(e, t, n) {
|
|
|
1279
1281
|
}
|
|
1280
1282
|
}
|
|
1281
1283
|
}
|
|
1282
|
-
function
|
|
1284
|
+
function ns(e = {}) {
|
|
1283
1285
|
const t = e.location !== !1, { onError: n } = e;
|
|
1284
1286
|
function i(v, h, k, O, ...A) {
|
|
1285
1287
|
const T = v.currentPosition();
|
|
1286
1288
|
if (T.offset += O, T.column += O, n) {
|
|
1287
1289
|
const y = t ? Kn(k, T) : null, x = An(h, y, {
|
|
1288
|
-
domain:
|
|
1290
|
+
domain: Qr,
|
|
1289
1291
|
args: A
|
|
1290
1292
|
});
|
|
1291
1293
|
n(x);
|
|
@@ -1312,7 +1314,7 @@ function ts(e = {}) {
|
|
|
1312
1314
|
}
|
|
1313
1315
|
function u(v, h) {
|
|
1314
1316
|
const k = v.context(), { lastOffset: O, lastStartLoc: A } = k, T = a(9, O, A);
|
|
1315
|
-
return T.value = h.replace(
|
|
1317
|
+
return T.value = h.replace(es, ts), v.nextToken(), o(T, v.currentOffset(), v.currentPosition()), T;
|
|
1316
1318
|
}
|
|
1317
1319
|
function m(v) {
|
|
1318
1320
|
const h = v.nextToken(), k = v.context(), { lastOffset: O, lastStartLoc: A } = k, T = a(8, O, A);
|
|
@@ -1405,7 +1407,7 @@ function ts(e = {}) {
|
|
|
1405
1407
|
return h.currentType === 13 ? A : E(v, k, O, A);
|
|
1406
1408
|
}
|
|
1407
1409
|
function w(v) {
|
|
1408
|
-
const h =
|
|
1410
|
+
const h = Zr(v, Pe({}, e)), k = h.context(), O = a(0, k.offset, k.startLoc);
|
|
1409
1411
|
return t && O.loc && (O.loc.source = v), O.body = _(h), e.onCacheKey && (O.cacheKey = e.onCacheKey(v)), k.currentType !== 13 && i(h, _e.UNEXPECTED_LEXICAL_ANALYSIS, k.lastStartLoc, 0, v[k.offset] || ""), o(O, h.currentOffset(), h.currentPosition()), O;
|
|
1410
1412
|
}
|
|
1411
1413
|
return { parse: w };
|
|
@@ -1416,27 +1418,27 @@ function nt(e) {
|
|
|
1416
1418
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
1417
1419
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
1418
1420
|
}
|
|
1419
|
-
function
|
|
1421
|
+
function is(e, t = {}) {
|
|
1420
1422
|
const n = {
|
|
1421
1423
|
ast: e,
|
|
1422
1424
|
helpers: /* @__PURE__ */ new Set()
|
|
1423
1425
|
};
|
|
1424
1426
|
return { context: () => n, helper: (o) => (n.helpers.add(o), o) };
|
|
1425
1427
|
}
|
|
1426
|
-
function
|
|
1428
|
+
function Fi(e, t) {
|
|
1427
1429
|
for (let n = 0; n < e.length; n++)
|
|
1428
1430
|
pi(e[n], t);
|
|
1429
1431
|
}
|
|
1430
1432
|
function pi(e, t) {
|
|
1431
1433
|
switch (e.type) {
|
|
1432
1434
|
case 1:
|
|
1433
|
-
|
|
1435
|
+
Fi(e.cases, t), t.helper(
|
|
1434
1436
|
"plural"
|
|
1435
1437
|
/* HelperNameMap.PLURAL */
|
|
1436
1438
|
);
|
|
1437
1439
|
break;
|
|
1438
1440
|
case 2:
|
|
1439
|
-
|
|
1441
|
+
Fi(e.items, t);
|
|
1440
1442
|
break;
|
|
1441
1443
|
case 6: {
|
|
1442
1444
|
pi(e.key, t), t.helper(
|
|
@@ -1468,8 +1470,8 @@ function pi(e, t) {
|
|
|
1468
1470
|
break;
|
|
1469
1471
|
}
|
|
1470
1472
|
}
|
|
1471
|
-
function
|
|
1472
|
-
const n =
|
|
1473
|
+
function os(e, t = {}) {
|
|
1474
|
+
const n = is(e);
|
|
1473
1475
|
n.helper(
|
|
1474
1476
|
"normalize"
|
|
1475
1477
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -1477,11 +1479,11 @@ function is(e, t = {}) {
|
|
|
1477
1479
|
const i = n.context();
|
|
1478
1480
|
e.helpers = Array.from(i.helpers);
|
|
1479
1481
|
}
|
|
1480
|
-
function
|
|
1482
|
+
function as(e) {
|
|
1481
1483
|
const t = e.body;
|
|
1482
|
-
return t.type === 2 ?
|
|
1484
|
+
return t.type === 2 ? Di(t) : t.cases.forEach((n) => Di(n)), e;
|
|
1483
1485
|
}
|
|
1484
|
-
function
|
|
1486
|
+
function Di(e) {
|
|
1485
1487
|
if (e.items.length === 1) {
|
|
1486
1488
|
const t = e.items[0];
|
|
1487
1489
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -1549,7 +1551,7 @@ function zt(e) {
|
|
|
1549
1551
|
}
|
|
1550
1552
|
delete e.type;
|
|
1551
1553
|
}
|
|
1552
|
-
function
|
|
1554
|
+
function rs(e, t) {
|
|
1553
1555
|
const { filename: n, breakLineCode: i, needIndent: a } = t, o = t.location !== !1, r = {
|
|
1554
1556
|
filename: n,
|
|
1555
1557
|
code: "",
|
|
@@ -1591,14 +1593,14 @@ function as(e, t) {
|
|
|
1591
1593
|
needIndent: () => r.needIndent
|
|
1592
1594
|
};
|
|
1593
1595
|
}
|
|
1594
|
-
function
|
|
1596
|
+
function ss(e, t) {
|
|
1595
1597
|
const { helper: n } = e;
|
|
1596
1598
|
e.push(`${n(
|
|
1597
1599
|
"linked"
|
|
1598
1600
|
/* HelperNameMap.LINKED */
|
|
1599
1601
|
)}(`), Bt(e, t.key), t.modifier ? (e.push(", "), Bt(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1600
1602
|
}
|
|
1601
|
-
function
|
|
1603
|
+
function ls(e, t) {
|
|
1602
1604
|
const { helper: n, needIndent: i } = e;
|
|
1603
1605
|
e.push(`${n(
|
|
1604
1606
|
"normalize"
|
|
@@ -1609,7 +1611,7 @@ function ss(e, t) {
|
|
|
1609
1611
|
e.push(", ");
|
|
1610
1612
|
e.deindent(i()), e.push("])");
|
|
1611
1613
|
}
|
|
1612
|
-
function
|
|
1614
|
+
function us(e, t) {
|
|
1613
1615
|
const { helper: n, needIndent: i } = e;
|
|
1614
1616
|
if (t.cases.length > 1) {
|
|
1615
1617
|
e.push(`${n(
|
|
@@ -1622,23 +1624,23 @@ function ls(e, t) {
|
|
|
1622
1624
|
e.deindent(i()), e.push("])");
|
|
1623
1625
|
}
|
|
1624
1626
|
}
|
|
1625
|
-
function
|
|
1627
|
+
function cs(e, t) {
|
|
1626
1628
|
t.body ? Bt(e, t.body) : e.push("null");
|
|
1627
1629
|
}
|
|
1628
1630
|
function Bt(e, t) {
|
|
1629
1631
|
const { helper: n } = e;
|
|
1630
1632
|
switch (t.type) {
|
|
1631
1633
|
case 0:
|
|
1632
|
-
|
|
1634
|
+
cs(e, t);
|
|
1633
1635
|
break;
|
|
1634
1636
|
case 1:
|
|
1635
|
-
|
|
1637
|
+
us(e, t);
|
|
1636
1638
|
break;
|
|
1637
1639
|
case 2:
|
|
1638
|
-
|
|
1640
|
+
ls(e, t);
|
|
1639
1641
|
break;
|
|
1640
1642
|
case 6:
|
|
1641
|
-
|
|
1643
|
+
ss(e, t);
|
|
1642
1644
|
break;
|
|
1643
1645
|
case 8:
|
|
1644
1646
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1672,11 +1674,11 @@ function Bt(e, t) {
|
|
|
1672
1674
|
break;
|
|
1673
1675
|
}
|
|
1674
1676
|
}
|
|
1675
|
-
const
|
|
1677
|
+
const ds = (e, t = {}) => {
|
|
1676
1678
|
const n = te(t.mode) ? t.mode : "normal", i = te(t.filename) ? t.filename : "message.intl";
|
|
1677
1679
|
t.sourceMap;
|
|
1678
1680
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1679
|
-
`, o = t.needIndent ? t.needIndent : n !== "arrow", r = e.helpers || [], l =
|
|
1681
|
+
`, o = t.needIndent ? t.needIndent : n !== "arrow", r = e.helpers || [], l = rs(e, {
|
|
1680
1682
|
filename: i,
|
|
1681
1683
|
breakLineCode: a,
|
|
1682
1684
|
needIndent: o
|
|
@@ -1690,26 +1692,26 @@ const cs = (e, t = {}) => {
|
|
|
1690
1692
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1691
1693
|
};
|
|
1692
1694
|
};
|
|
1693
|
-
function
|
|
1694
|
-
const n = Pe({}, t), i = !!n.jit, a = !!n.minify, o = n.optimize == null ? !0 : n.optimize, l =
|
|
1695
|
-
return i ? (o &&
|
|
1695
|
+
function ms(e, t = {}) {
|
|
1696
|
+
const n = Pe({}, t), i = !!n.jit, a = !!n.minify, o = n.optimize == null ? !0 : n.optimize, l = ns(n).parse(e);
|
|
1697
|
+
return i ? (o && as(l), a && zt(l), { ast: l, code: "" }) : (os(l, n), ds(l, n));
|
|
1696
1698
|
}
|
|
1697
|
-
var
|
|
1698
|
-
function
|
|
1699
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
1699
|
+
var ps = { env: { NODE_ENV: "production" } };
|
|
1700
|
+
function fs() {
|
|
1701
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ft().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ft().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1700
1702
|
}
|
|
1701
1703
|
function Nn(e) {
|
|
1702
|
-
return (n) =>
|
|
1704
|
+
return (n) => hs(n, e);
|
|
1703
1705
|
}
|
|
1704
|
-
function
|
|
1705
|
-
const n =
|
|
1706
|
+
function hs(e, t) {
|
|
1707
|
+
const n = vs(t);
|
|
1706
1708
|
if (n == null)
|
|
1707
1709
|
throw Qt(
|
|
1708
1710
|
0
|
|
1709
1711
|
/* NodeTypes.Resource */
|
|
1710
1712
|
);
|
|
1711
1713
|
if (fi(n) === 1) {
|
|
1712
|
-
const o =
|
|
1714
|
+
const o = bs(n);
|
|
1713
1715
|
return e.plural(o.reduce((r, l) => [
|
|
1714
1716
|
...r,
|
|
1715
1717
|
Ni(e, l)
|
|
@@ -1717,30 +1719,30 @@ function fs(e, t) {
|
|
|
1717
1719
|
} else
|
|
1718
1720
|
return Ni(e, n);
|
|
1719
1721
|
}
|
|
1720
|
-
const
|
|
1721
|
-
function
|
|
1722
|
-
return At(e,
|
|
1722
|
+
const gs = ["b", "body"];
|
|
1723
|
+
function vs(e) {
|
|
1724
|
+
return At(e, gs);
|
|
1723
1725
|
}
|
|
1724
|
-
const
|
|
1725
|
-
function
|
|
1726
|
-
return At(e,
|
|
1726
|
+
const _s = ["c", "cases"];
|
|
1727
|
+
function bs(e) {
|
|
1728
|
+
return At(e, _s, []);
|
|
1727
1729
|
}
|
|
1728
1730
|
function Ni(e, t) {
|
|
1729
|
-
const n =
|
|
1731
|
+
const n = ws(t);
|
|
1730
1732
|
if (n != null)
|
|
1731
1733
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1732
1734
|
{
|
|
1733
|
-
const i =
|
|
1735
|
+
const i = Ss(t).reduce((a, o) => [...a, Yn(e, o)], []);
|
|
1734
1736
|
return e.normalize(i);
|
|
1735
1737
|
}
|
|
1736
1738
|
}
|
|
1737
|
-
const
|
|
1738
|
-
function
|
|
1739
|
-
return At(e,
|
|
1739
|
+
const ys = ["s", "static"];
|
|
1740
|
+
function ws(e) {
|
|
1741
|
+
return At(e, ys);
|
|
1740
1742
|
}
|
|
1741
|
-
const
|
|
1742
|
-
function
|
|
1743
|
-
return At(e,
|
|
1743
|
+
const Es = ["i", "items"];
|
|
1744
|
+
function Ss(e) {
|
|
1745
|
+
return At(e, Es, []);
|
|
1744
1746
|
}
|
|
1745
1747
|
function Yn(e, t) {
|
|
1746
1748
|
const n = fi(t);
|
|
@@ -1766,7 +1768,7 @@ function Yn(e, t) {
|
|
|
1766
1768
|
throw Qt(n);
|
|
1767
1769
|
}
|
|
1768
1770
|
case 6: {
|
|
1769
|
-
const i = t, a =
|
|
1771
|
+
const i = t, a = Cs(i), o = Is(i);
|
|
1770
1772
|
return e.linked(Yn(e, o), a ? Yn(e, a) : void 0, e.type);
|
|
1771
1773
|
}
|
|
1772
1774
|
case 7:
|
|
@@ -1777,24 +1779,24 @@ function Yn(e, t) {
|
|
|
1777
1779
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1778
1780
|
}
|
|
1779
1781
|
}
|
|
1780
|
-
const
|
|
1782
|
+
const ks = ["t", "type"];
|
|
1781
1783
|
function fi(e) {
|
|
1782
|
-
return At(e,
|
|
1784
|
+
return At(e, ks);
|
|
1783
1785
|
}
|
|
1784
|
-
const
|
|
1786
|
+
const Os = ["v", "value"];
|
|
1785
1787
|
function dn(e, t) {
|
|
1786
|
-
const n = At(e,
|
|
1788
|
+
const n = At(e, Os);
|
|
1787
1789
|
if (n)
|
|
1788
1790
|
return n;
|
|
1789
1791
|
throw Qt(t);
|
|
1790
1792
|
}
|
|
1791
|
-
const
|
|
1792
|
-
function
|
|
1793
|
-
return At(e,
|
|
1793
|
+
const Rs = ["m", "modifier"];
|
|
1794
|
+
function Cs(e) {
|
|
1795
|
+
return At(e, Rs);
|
|
1794
1796
|
}
|
|
1795
|
-
const
|
|
1796
|
-
function
|
|
1797
|
-
const t = At(e,
|
|
1797
|
+
const As = ["k", "key"];
|
|
1798
|
+
function Is(e) {
|
|
1799
|
+
const t = At(e, As);
|
|
1798
1800
|
if (t)
|
|
1799
1801
|
return t;
|
|
1800
1802
|
throw Qt(
|
|
@@ -1813,28 +1815,28 @@ function At(e, t, n) {
|
|
|
1813
1815
|
function Qt(e) {
|
|
1814
1816
|
return new Error(`unhandled node type: ${e}`);
|
|
1815
1817
|
}
|
|
1816
|
-
const
|
|
1818
|
+
const Ts = (e) => e;
|
|
1817
1819
|
let mn = ye();
|
|
1818
1820
|
function Wt(e) {
|
|
1819
1821
|
return fe(e) && fi(e) === 0 && (Ze(e, "b") || Ze(e, "body"));
|
|
1820
1822
|
}
|
|
1821
|
-
function
|
|
1823
|
+
function Ms(e, t = {}) {
|
|
1822
1824
|
let n = !1;
|
|
1823
|
-
const i = t.onError ||
|
|
1825
|
+
const i = t.onError || Hr;
|
|
1824
1826
|
return t.onError = (a) => {
|
|
1825
1827
|
n = !0, i(a);
|
|
1826
|
-
}, { ...
|
|
1828
|
+
}, { ...ms(e, t), detectError: n };
|
|
1827
1829
|
}
|
|
1828
1830
|
// @__NO_SIDE_EFFECTS__
|
|
1829
|
-
function
|
|
1831
|
+
function Fs(e, t) {
|
|
1830
1832
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && te(e)) {
|
|
1831
1833
|
Re(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1832
|
-
const i = (t.onCacheKey ||
|
|
1834
|
+
const i = (t.onCacheKey || Ts)(e), a = mn[i];
|
|
1833
1835
|
if (a)
|
|
1834
1836
|
return a;
|
|
1835
|
-
const { ast: o, detectError: r } =
|
|
1837
|
+
const { ast: o, detectError: r } = Ms(e, {
|
|
1836
1838
|
...t,
|
|
1837
|
-
location:
|
|
1839
|
+
location: ps.env.NODE_ENV !== "production",
|
|
1838
1840
|
jit: !0
|
|
1839
1841
|
}), l = Nn(o);
|
|
1840
1842
|
return r ? l : mn[i] = l;
|
|
@@ -1851,7 +1853,7 @@ let en = null;
|
|
|
1851
1853
|
function Ds(e) {
|
|
1852
1854
|
en = e;
|
|
1853
1855
|
}
|
|
1854
|
-
function
|
|
1856
|
+
function Ns(e, t, n) {
|
|
1855
1857
|
en && en.emit("i18n:init", {
|
|
1856
1858
|
timestamp: Date.now(),
|
|
1857
1859
|
i18n: e,
|
|
@@ -1859,19 +1861,19 @@ function Fs(e, t, n) {
|
|
|
1859
1861
|
meta: n
|
|
1860
1862
|
});
|
|
1861
1863
|
}
|
|
1862
|
-
const
|
|
1863
|
-
function
|
|
1864
|
+
const Ps = /* @__PURE__ */ Ls("function:translate");
|
|
1865
|
+
function Ls(e) {
|
|
1864
1866
|
return (t) => en && en.emit(e, t);
|
|
1865
1867
|
}
|
|
1866
1868
|
const gt = {
|
|
1867
|
-
INVALID_ARGUMENT:
|
|
1869
|
+
INVALID_ARGUMENT: Wr,
|
|
1868
1870
|
// 17
|
|
1869
1871
|
INVALID_DATE_ARGUMENT: 18,
|
|
1870
1872
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
1871
1873
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1872
1874
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1873
1875
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1874
|
-
},
|
|
1876
|
+
}, xs = 24;
|
|
1875
1877
|
function vt(e) {
|
|
1876
1878
|
return An(e, null, void 0);
|
|
1877
1879
|
}
|
|
@@ -1887,7 +1889,7 @@ function Pi(e) {
|
|
|
1887
1889
|
return Pn;
|
|
1888
1890
|
if (e.constructor.name === "Function") {
|
|
1889
1891
|
const t = e();
|
|
1890
|
-
if (
|
|
1892
|
+
if (zr(t))
|
|
1891
1893
|
throw vt(gt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1892
1894
|
return Pn = t;
|
|
1893
1895
|
} else
|
|
@@ -1895,7 +1897,7 @@ function Pi(e) {
|
|
|
1895
1897
|
} else
|
|
1896
1898
|
throw vt(gt.NOT_SUPPORT_LOCALE_TYPE);
|
|
1897
1899
|
}
|
|
1898
|
-
function
|
|
1900
|
+
function Us(e, t, n) {
|
|
1899
1901
|
return [.../* @__PURE__ */ new Set([
|
|
1900
1902
|
n,
|
|
1901
1903
|
...Te(t) ? t : fe(t) ? Object.keys(t) : te(t) ? [t] : [n]
|
|
@@ -1919,20 +1921,20 @@ function Li(e, t, n) {
|
|
|
1919
1921
|
let i = !0;
|
|
1920
1922
|
for (let a = 0; a < t.length && Re(i); a++) {
|
|
1921
1923
|
const o = t[a];
|
|
1922
|
-
te(o) && (i =
|
|
1924
|
+
te(o) && (i = Vs(e, t[a], n));
|
|
1923
1925
|
}
|
|
1924
1926
|
return i;
|
|
1925
1927
|
}
|
|
1926
|
-
function
|
|
1928
|
+
function Vs(e, t, n) {
|
|
1927
1929
|
let i;
|
|
1928
1930
|
const a = t.split("-");
|
|
1929
1931
|
do {
|
|
1930
1932
|
const o = a.join("-");
|
|
1931
|
-
i =
|
|
1933
|
+
i = zs(e, o, n), a.splice(-1, 1);
|
|
1932
1934
|
} while (a.length && i === !0);
|
|
1933
1935
|
return i;
|
|
1934
1936
|
}
|
|
1935
|
-
function
|
|
1937
|
+
function zs(e, t, n) {
|
|
1936
1938
|
let i = !1;
|
|
1937
1939
|
if (!e.includes(t) && (i = !0, t)) {
|
|
1938
1940
|
i = t[t.length - 1] !== "!";
|
|
@@ -2102,15 +2104,15 @@ It[
|
|
|
2102
2104
|
/* Actions.APPEND */
|
|
2103
2105
|
]
|
|
2104
2106
|
};
|
|
2105
|
-
const
|
|
2106
|
-
function $s(e) {
|
|
2107
|
-
return zs.test(e);
|
|
2108
|
-
}
|
|
2107
|
+
const $s = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
2109
2108
|
function Gs(e) {
|
|
2109
|
+
return $s.test(e);
|
|
2110
|
+
}
|
|
2111
|
+
function Bs(e) {
|
|
2110
2112
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
2111
2113
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
2112
2114
|
}
|
|
2113
|
-
function
|
|
2115
|
+
function Ws(e) {
|
|
2114
2116
|
if (e == null)
|
|
2115
2117
|
return "o";
|
|
2116
2118
|
switch (e.charCodeAt(0)) {
|
|
@@ -2147,11 +2149,11 @@ function Bs(e) {
|
|
|
2147
2149
|
}
|
|
2148
2150
|
return "i";
|
|
2149
2151
|
}
|
|
2150
|
-
function
|
|
2152
|
+
function Hs(e) {
|
|
2151
2153
|
const t = e.trim();
|
|
2152
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
2154
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ? Bs(t) : "*" + t;
|
|
2153
2155
|
}
|
|
2154
|
-
function
|
|
2156
|
+
function js(e) {
|
|
2155
2157
|
const t = [];
|
|
2156
2158
|
let n = -1, i = 0, a = 0, o, r, l, s, u, m, d;
|
|
2157
2159
|
const c = [];
|
|
@@ -2183,7 +2185,7 @@ function Hs(e) {
|
|
|
2183
2185
|
/* Actions.APPEND */
|
|
2184
2186
|
]();
|
|
2185
2187
|
else {
|
|
2186
|
-
if (a = 0, r === void 0 || (r =
|
|
2188
|
+
if (a = 0, r === void 0 || (r = Hs(r), r === !1))
|
|
2187
2189
|
return !1;
|
|
2188
2190
|
c[
|
|
2189
2191
|
1
|
|
@@ -2201,21 +2203,21 @@ function Hs(e) {
|
|
|
2201
2203
|
}
|
|
2202
2204
|
for (; i !== null; )
|
|
2203
2205
|
if (n++, o = e[n], !(o === "\\" && p())) {
|
|
2204
|
-
if (s =
|
|
2206
|
+
if (s = Ws(o), d = It[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))))
|
|
2205
2207
|
return;
|
|
2206
2208
|
if (i === 7)
|
|
2207
2209
|
return t;
|
|
2208
2210
|
}
|
|
2209
2211
|
}
|
|
2210
2212
|
const xi = /* @__PURE__ */ new Map();
|
|
2211
|
-
function
|
|
2213
|
+
function Ks(e, t) {
|
|
2212
2214
|
return fe(e) ? e[t] : null;
|
|
2213
2215
|
}
|
|
2214
|
-
function
|
|
2216
|
+
function Ys(e, t) {
|
|
2215
2217
|
if (!fe(e))
|
|
2216
2218
|
return null;
|
|
2217
2219
|
let n = xi.get(t);
|
|
2218
|
-
if (n || (n =
|
|
2220
|
+
if (n || (n = js(t), n && xi.set(t, n)), !n)
|
|
2219
2221
|
return null;
|
|
2220
2222
|
const i = n.length;
|
|
2221
2223
|
let a = e, o = 0;
|
|
@@ -2227,8 +2229,8 @@ function Ks(e, t) {
|
|
|
2227
2229
|
}
|
|
2228
2230
|
return a;
|
|
2229
2231
|
}
|
|
2230
|
-
const
|
|
2231
|
-
function
|
|
2232
|
+
const Xs = "10.0.5", In = -1, Sn = "en-US", Ui = "", Vi = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
2233
|
+
function qs() {
|
|
2232
2234
|
return {
|
|
2233
2235
|
upper: (e, t) => t === "text" && te(e) ? e.toUpperCase() : t === "vnode" && fe(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
2234
2236
|
lower: (e, t) => t === "text" && te(e) ? e.toLowerCase() : t === "vnode" && fe(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
@@ -2236,28 +2238,28 @@ function Xs() {
|
|
|
2236
2238
|
};
|
|
2237
2239
|
}
|
|
2238
2240
|
let To;
|
|
2239
|
-
function
|
|
2241
|
+
function Js(e) {
|
|
2240
2242
|
To = e;
|
|
2241
2243
|
}
|
|
2242
2244
|
let Mo;
|
|
2243
|
-
function Js(e) {
|
|
2244
|
-
Mo = e;
|
|
2245
|
-
}
|
|
2246
|
-
let Do;
|
|
2247
2245
|
function Zs(e) {
|
|
2248
|
-
|
|
2246
|
+
Mo = e;
|
|
2249
2247
|
}
|
|
2250
|
-
let Fo
|
|
2251
|
-
|
|
2248
|
+
let Fo;
|
|
2249
|
+
function Qs(e) {
|
|
2252
2250
|
Fo = e;
|
|
2253
|
-
}
|
|
2251
|
+
}
|
|
2252
|
+
let Do = null;
|
|
2253
|
+
const el = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
2254
|
+
Do = e;
|
|
2255
|
+
}, tl = /* @__NO_SIDE_EFFECTS__ */ () => Do;
|
|
2254
2256
|
let No = null;
|
|
2255
2257
|
const zi = (e) => {
|
|
2256
2258
|
No = e;
|
|
2257
|
-
},
|
|
2259
|
+
}, nl = () => No;
|
|
2258
2260
|
let $i = 0;
|
|
2259
|
-
function
|
|
2260
|
-
const t = Oe(e.onWarn) ? e.onWarn :
|
|
2261
|
+
function il(e = {}) {
|
|
2262
|
+
const t = Oe(e.onWarn) ? e.onWarn : Gr, n = te(e.version) ? e.version : Xs, i = te(e.locale) || Oe(e.locale) ? e.locale : Sn, a = Oe(i) ? Sn : i, o = Te(e.fallbackLocale) || pe(e.fallbackLocale) || te(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, r = pe(e.messages) ? e.messages : Ln(a), l = pe(e.datetimeFormats) ? e.datetimeFormats : Ln(a), s = pe(e.numberFormats) ? e.numberFormats : Ln(a), u = Pe(ye(), e.modifiers, qs()), m = e.pluralRules || ye(), d = Oe(e.missing) ? e.missing : null, c = Re(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = Re(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, _ = !!e.unresolving, w = Oe(e.postTranslation) ? e.postTranslation : null, v = pe(e.processor) ? e.processor : null, h = Re(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, k = !!e.escapeParameter, O = Oe(e.messageCompiler) ? e.messageCompiler : To, A = Oe(e.messageResolver) ? e.messageResolver : Mo || Ks, T = Oe(e.localeFallbacker) ? e.localeFallbacker : Fo || Us, y = fe(e.fallbackContext) ? e.fallbackContext : void 0, x = e, S = fe(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), I = fe(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), N = fe(x.__meta) ? x.__meta : {};
|
|
2261
2263
|
$i++;
|
|
2262
2264
|
const M = {
|
|
2263
2265
|
version: n,
|
|
@@ -2283,7 +2285,7 @@ function nl(e = {}) {
|
|
|
2283
2285
|
onWarn: t,
|
|
2284
2286
|
__meta: N
|
|
2285
2287
|
};
|
|
2286
|
-
return M.datetimeFormats = l, M.numberFormats = s, M.__datetimeFormatters = S, M.__numberFormatters = I, __INTLIFY_PROD_DEVTOOLS__ &&
|
|
2288
|
+
return M.datetimeFormats = l, M.numberFormats = s, M.__datetimeFormatters = S, M.__numberFormatters = I, __INTLIFY_PROD_DEVTOOLS__ && Ns(M, n, N), M;
|
|
2287
2289
|
}
|
|
2288
2290
|
const Ln = (e) => ({ [e]: ye() });
|
|
2289
2291
|
function gi(e, t, n, i, a) {
|
|
@@ -2298,15 +2300,15 @@ function Jt(e, t, n) {
|
|
|
2298
2300
|
const i = e;
|
|
2299
2301
|
i.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
2300
2302
|
}
|
|
2301
|
-
function
|
|
2303
|
+
function ol(e, t) {
|
|
2302
2304
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
2303
2305
|
}
|
|
2304
|
-
function
|
|
2306
|
+
function al(e, t) {
|
|
2305
2307
|
const n = t.indexOf(e);
|
|
2306
2308
|
if (n === -1)
|
|
2307
2309
|
return !1;
|
|
2308
2310
|
for (let i = n + 1; i < t.length; i++)
|
|
2309
|
-
if (
|
|
2311
|
+
if (ol(e, t[i]))
|
|
2310
2312
|
return !0;
|
|
2311
2313
|
return !1;
|
|
2312
2314
|
}
|
|
@@ -2368,7 +2370,7 @@ function Xn(...e) {
|
|
|
2368
2370
|
} catch {
|
|
2369
2371
|
throw vt(gt.INVALID_ISO_DATE_ARGUMENT);
|
|
2370
2372
|
}
|
|
2371
|
-
} else if (
|
|
2373
|
+
} else if (xr(t)) {
|
|
2372
2374
|
if (isNaN(t.getTime()))
|
|
2373
2375
|
throw vt(gt.INVALID_DATE_ARGUMENT);
|
|
2374
2376
|
l = t;
|
|
@@ -2448,26 +2450,26 @@ function Hi(e, t, n) {
|
|
|
2448
2450
|
i.__numberFormatters.has(o) && i.__numberFormatters.delete(o);
|
|
2449
2451
|
}
|
|
2450
2452
|
}
|
|
2451
|
-
const
|
|
2453
|
+
const rl = (e) => e, sl = (e) => "", ll = "text", ul = (e) => e.length === 0 ? "" : mi(e), cl = $r;
|
|
2452
2454
|
function ji(e, t) {
|
|
2453
2455
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2454
2456
|
}
|
|
2455
|
-
function
|
|
2457
|
+
function dl(e) {
|
|
2456
2458
|
const t = Ne(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2457
2459
|
return e.named && (Ne(e.named.count) || Ne(e.named.n)) ? Ne(e.named.count) ? e.named.count : Ne(e.named.n) ? e.named.n : t : t;
|
|
2458
2460
|
}
|
|
2459
|
-
function
|
|
2461
|
+
function ml(e, t) {
|
|
2460
2462
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2461
2463
|
}
|
|
2462
|
-
function
|
|
2463
|
-
const t = e.locale, n =
|
|
2464
|
-
Ne(e.pluralIndex) &&
|
|
2464
|
+
function pl(e = {}) {
|
|
2465
|
+
const t = e.locale, n = dl(e), i = fe(e.pluralRules) && te(t) && Oe(e.pluralRules[t]) ? e.pluralRules[t] : ji, a = fe(e.pluralRules) && te(t) && Oe(e.pluralRules[t]) ? ji : void 0, o = (v) => v[i(n, v.length, a)], r = e.list || [], l = (v) => r[v], s = e.named || ye();
|
|
2466
|
+
Ne(e.pluralIndex) && ml(n, s);
|
|
2465
2467
|
const u = (v) => s[v];
|
|
2466
2468
|
function m(v, h) {
|
|
2467
2469
|
const k = Oe(e.messages) ? e.messages(v, !!h) : fe(e.messages) ? e.messages[v] : !1;
|
|
2468
|
-
return k || (e.parent ? e.parent.message(v) :
|
|
2470
|
+
return k || (e.parent ? e.parent.message(v) : sl);
|
|
2469
2471
|
}
|
|
2470
|
-
const d = (v) => e.modifiers ? e.modifiers[v] :
|
|
2472
|
+
const d = (v) => e.modifiers ? e.modifiers[v] : rl, c = pe(e.processor) && Oe(e.processor.normalize) ? e.processor.normalize : ul, p = pe(e.processor) && Oe(e.processor.interpolate) ? e.processor.interpolate : cl, E = pe(e.processor) && te(e.processor.type) ? e.processor.type : ll, w = {
|
|
2471
2473
|
list: l,
|
|
2472
2474
|
named: u,
|
|
2473
2475
|
plural: o,
|
|
@@ -2492,7 +2494,7 @@ function ml(e = {}) {
|
|
|
2492
2494
|
const Ki = () => "", Ye = (e) => Oe(e);
|
|
2493
2495
|
function Yi(e, ...t) {
|
|
2494
2496
|
const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: r, messages: l } = e, [s, u] = Jn(...t), m = Re(u.missingWarn) ? u.missingWarn : e.missingWarn, d = Re(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, c = Re(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, p = !!u.resolvedMessage, E = te(u.default) || Re(u.default) ? Re(u.default) ? o ? s : () => s : u.default : n ? o ? s : () => s : null, _ = n || E != null && (te(E) || Oe(E)), w = hi(e, u);
|
|
2495
|
-
c &&
|
|
2497
|
+
c && fl(u);
|
|
2496
2498
|
let [v, h, k] = p ? [
|
|
2497
2499
|
s,
|
|
2498
2500
|
w,
|
|
@@ -2506,7 +2508,7 @@ function Yi(e, ...t) {
|
|
|
2506
2508
|
}, x = Ye(O) ? O : Uo(e, s, h, O, A, y);
|
|
2507
2509
|
if (T)
|
|
2508
2510
|
return O;
|
|
2509
|
-
const S =
|
|
2511
|
+
const S = vl(e, h, k, u), I = pl(S), N = hl(e, x, I), M = i ? i(N, s) : N;
|
|
2510
2512
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2511
2513
|
const P = {
|
|
2512
2514
|
timestamp: Date.now(),
|
|
@@ -2515,11 +2517,11 @@ function Yi(e, ...t) {
|
|
|
2515
2517
|
format: te(O) ? O : Ye(O) ? O.source : "",
|
|
2516
2518
|
message: M
|
|
2517
2519
|
};
|
|
2518
|
-
P.meta = Pe({}, e.__meta, /* @__PURE__ */
|
|
2520
|
+
P.meta = Pe({}, e.__meta, /* @__PURE__ */ tl() || {}), Ps(P);
|
|
2519
2521
|
}
|
|
2520
2522
|
return M;
|
|
2521
2523
|
}
|
|
2522
|
-
function
|
|
2524
|
+
function fl(e) {
|
|
2523
2525
|
Te(e.list) ? e.list = e.list.map((t) => te(t) ? Ti(t) : t) : fe(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2524
2526
|
te(e.named[t]) && (e.named[t] = Ti(e.named[t]));
|
|
2525
2527
|
});
|
|
@@ -2529,7 +2531,7 @@ function xo(e, t, n, i, a, o) {
|
|
|
2529
2531
|
let d = ye(), c, p = null;
|
|
2530
2532
|
const E = "translate";
|
|
2531
2533
|
for (let _ = 0; _ < m.length && (c = m[_], d = r[c] || ye(), (p = s(d, t)) === null && (p = d[t]), !(te(p) || Wt(p) || Ye(p))); _++)
|
|
2532
|
-
if (!
|
|
2534
|
+
if (!al(c, m)) {
|
|
2533
2535
|
const w = gi(
|
|
2534
2536
|
e,
|
|
2535
2537
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2552,10 +2554,10 @@ function Uo(e, t, n, i, a, o) {
|
|
|
2552
2554
|
const u = () => i;
|
|
2553
2555
|
return u.locale = n, u.key = t, u;
|
|
2554
2556
|
}
|
|
2555
|
-
const s = r(i,
|
|
2557
|
+
const s = r(i, gl(e, n, a, i, l, o));
|
|
2556
2558
|
return s.locale = n, s.key = t, s.source = i, s;
|
|
2557
2559
|
}
|
|
2558
|
-
function
|
|
2560
|
+
function hl(e, t, n) {
|
|
2559
2561
|
return t(n);
|
|
2560
2562
|
}
|
|
2561
2563
|
function Jn(...e) {
|
|
@@ -2565,7 +2567,7 @@ function Jn(...e) {
|
|
|
2565
2567
|
const o = Ne(t) ? String(t) : (Ye(t), t);
|
|
2566
2568
|
return Ne(n) ? a.plural = n : te(n) ? a.default = n : pe(n) && !Cn(n) ? a.named = n : Te(n) && (a.list = n), Ne(i) ? a.plural = i : te(i) ? a.default = i : pe(i) && Pe(a, i), [o, a];
|
|
2567
2569
|
}
|
|
2568
|
-
function
|
|
2570
|
+
function gl(e, t, n, i, a, o) {
|
|
2569
2571
|
return {
|
|
2570
2572
|
locale: t,
|
|
2571
2573
|
key: n,
|
|
@@ -2573,10 +2575,10 @@ function hl(e, t, n, i, a, o) {
|
|
|
2573
2575
|
onError: (r) => {
|
|
2574
2576
|
throw o && o(r), r;
|
|
2575
2577
|
},
|
|
2576
|
-
onCacheKey: (r) =>
|
|
2578
|
+
onCacheKey: (r) => Pr(t, n, r)
|
|
2577
2579
|
};
|
|
2578
2580
|
}
|
|
2579
|
-
function
|
|
2581
|
+
function vl(e, t, n, i) {
|
|
2580
2582
|
const { modifiers: a, pluralRules: o, messageResolver: r, fallbackLocale: l, fallbackWarn: s, missingWarn: u, fallbackContext: m } = e, c = {
|
|
2581
2583
|
locale: t,
|
|
2582
2584
|
modifiers: a,
|
|
@@ -2606,15 +2608,15 @@ function gl(e, t, n, i) {
|
|
|
2606
2608
|
};
|
|
2607
2609
|
return e.processor && (c.processor = e.processor), i.list && (c.list = i.list), i.named && (c.named = i.named), Ne(i.plural) && (c.pluralIndex = i.plural), c;
|
|
2608
2610
|
}
|
|
2609
|
-
|
|
2610
|
-
var vl = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_7636e400-13cc-4dd2-a0dc-7fb1d0ba0fc2", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_7636e400-13cc-4dd2-a0dc-7fb1d0ba0fc2", 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.8.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.0.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1744", npm_package_dependencies__feedmepos_ui_library: "1.7.0", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250831.1.0", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.6", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:13599", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.6/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "17454714241", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "6870147208b042a2ac6307eb0693d1d05a812078", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.2.4", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_package_dependencies_axios: "^1.7.2", npm_package_devDependencies__types_pouchdb_core: "^7.0.15", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_8f54b4ee-26d8-4686-bc9d-2b03aa847b9b", INVOCATION_ID: "040e60ba2939445c820dbcc28b60f26b", 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: "407", 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 1000015295", 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.32", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.30-beta.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_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "6870147208b042a2ac6307eb0693d1d05a812078", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_7636e400-13cc-4dd2-a0dc-7fb1d0ba0fc2", 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_7636e400-13cc-4dd2-a0dc-7fb1d0ba0fc2", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.7.3", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_7636e400-13cc-4dd2-a0dc-7fb1d0ba0fc2", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
2611
|
-
const
|
|
2612
|
-
function
|
|
2613
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
2611
|
+
fs();
|
|
2612
|
+
var _l = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_92c9bec5-c748-476b-8664-836bb27a776a", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_92c9bec5-c748-476b-8664-836bb27a776a", 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.8.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.0.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1735", npm_package_dependencies__feedmepos_ui_library: "1.7.0", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250907.24.1", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.6", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:13373", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.7/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "17638897791", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "a1d44ef7e0e3debaa0ce71479a47550071c0f407", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.2.4", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_package_dependencies_axios: "^1.7.2", npm_package_devDependencies__types_pouchdb_core: "^7.0.15", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_c1859b0f-a402-46a3-a0e5-61d004367140", INVOCATION_ID: "2da3cc0acdde4c2784aab61c59738f54", 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: "408", 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 1000016408", 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.32", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.31-beta.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_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "a1d44ef7e0e3debaa0ce71479a47550071c0f407", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_92c9bec5-c748-476b-8664-836bb27a776a", 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_92c9bec5-c748-476b-8664-836bb27a776a", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.7.3", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_92c9bec5-c748-476b-8664-836bb27a776a", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
2613
|
+
const bl = "10.0.5";
|
|
2614
|
+
function yl() {
|
|
2615
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Ft().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Ft().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ft().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ft().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2614
2616
|
}
|
|
2615
2617
|
const Ht = {
|
|
2616
2618
|
// composer module errors
|
|
2617
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2619
|
+
UNEXPECTED_RETURN_TYPE: xs,
|
|
2618
2620
|
// 24
|
|
2619
2621
|
// legacy module errors
|
|
2620
2622
|
INVALID_ARGUMENT: 25,
|
|
@@ -2628,7 +2630,7 @@ const Ht = {
|
|
|
2628
2630
|
function tn(e, ...t) {
|
|
2629
2631
|
return An(e, null, void 0);
|
|
2630
2632
|
}
|
|
2631
|
-
const Zn = /* @__PURE__ */ Pt("__translateVNode"), Qn = /* @__PURE__ */ Pt("__datetimeParts"), ei = /* @__PURE__ */ Pt("__numberParts"),
|
|
2633
|
+
const Zn = /* @__PURE__ */ Pt("__translateVNode"), Qn = /* @__PURE__ */ Pt("__datetimeParts"), ei = /* @__PURE__ */ Pt("__numberParts"), wl = Pt("__setPluralRules"), Vo = /* @__PURE__ */ Pt("__injectWithOption"), ti = /* @__PURE__ */ Pt("__dispose");
|
|
2632
2634
|
function nn(e) {
|
|
2633
2635
|
if (!fe(e))
|
|
2634
2636
|
return e;
|
|
@@ -2666,7 +2668,7 @@ function zo(e, t) {
|
|
|
2666
2668
|
function $o(e) {
|
|
2667
2669
|
return e.type;
|
|
2668
2670
|
}
|
|
2669
|
-
function
|
|
2671
|
+
function El(e, t, n) {
|
|
2670
2672
|
let i = fe(t.messages) ? t.messages : ye();
|
|
2671
2673
|
"__i18nGlobal" in n && (i = zo(e.locale.value, {
|
|
2672
2674
|
messages: i,
|
|
@@ -2694,17 +2696,17 @@ function wl(e, t, n) {
|
|
|
2694
2696
|
function Xi(e) {
|
|
2695
2697
|
return R(ba, null, e, 0);
|
|
2696
2698
|
}
|
|
2697
|
-
const qi = "__INTLIFY_META__", Ji = () => [],
|
|
2699
|
+
const qi = "__INTLIFY_META__", Ji = () => [], Sl = () => !1;
|
|
2698
2700
|
let Zi = 0;
|
|
2699
2701
|
function Qi(e) {
|
|
2700
2702
|
return (t, n, i, a) => e(n, i, an() || void 0, a);
|
|
2701
2703
|
}
|
|
2702
|
-
const
|
|
2704
|
+
const kl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2703
2705
|
const e = an();
|
|
2704
2706
|
let t = null;
|
|
2705
2707
|
return e && (t = $o(e)[qi]) ? { [qi]: t } : null;
|
|
2706
2708
|
};
|
|
2707
|
-
function
|
|
2709
|
+
function Ol(e = {}) {
|
|
2708
2710
|
const { __root: t, __injectWithOption: n } = e, i = t === void 0, a = e.flatJson, o = Ai ? oe : va;
|
|
2709
2711
|
let r = Re(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2710
2712
|
const l = o(
|
|
@@ -2719,8 +2721,8 @@ function kl(e = {}) {
|
|
|
2719
2721
|
let T = e.pluralRules || t && t.pluralRules, y;
|
|
2720
2722
|
y = (() => {
|
|
2721
2723
|
i && zi(null);
|
|
2722
|
-
const
|
|
2723
|
-
version:
|
|
2724
|
+
const D = {
|
|
2725
|
+
version: bl,
|
|
2724
2726
|
locale: l.value,
|
|
2725
2727
|
fallbackLocale: s.value,
|
|
2726
2728
|
messages: u.value,
|
|
@@ -2738,8 +2740,8 @@ function kl(e = {}) {
|
|
|
2738
2740
|
messageCompiler: e.messageCompiler,
|
|
2739
2741
|
__meta: { framework: "vue" }
|
|
2740
2742
|
};
|
|
2741
|
-
|
|
2742
|
-
const H =
|
|
2743
|
+
D.datetimeFormats = m.value, D.numberFormats = d.value, D.__datetimeFormatters = pe(y) ? y.__datetimeFormatters : void 0, D.__numberFormatters = pe(y) ? y.__numberFormatters : void 0;
|
|
2744
|
+
const H = il(D);
|
|
2743
2745
|
return i && zi(H), H;
|
|
2744
2746
|
})(), Jt(y, l.value, s.value);
|
|
2745
2747
|
function S() {
|
|
@@ -2753,38 +2755,38 @@ function kl(e = {}) {
|
|
|
2753
2755
|
}
|
|
2754
2756
|
const I = V({
|
|
2755
2757
|
get: () => l.value,
|
|
2756
|
-
set: (
|
|
2757
|
-
l.value =
|
|
2758
|
+
set: (D) => {
|
|
2759
|
+
l.value = D, y.locale = l.value;
|
|
2758
2760
|
}
|
|
2759
2761
|
}), N = V({
|
|
2760
2762
|
get: () => s.value,
|
|
2761
|
-
set: (
|
|
2762
|
-
s.value =
|
|
2763
|
+
set: (D) => {
|
|
2764
|
+
s.value = D, y.fallbackLocale = s.value, Jt(y, l.value, D);
|
|
2763
2765
|
}
|
|
2764
2766
|
}), M = V(() => u.value), P = /* @__PURE__ */ V(() => m.value), z = /* @__PURE__ */ V(() => d.value);
|
|
2765
|
-
function
|
|
2767
|
+
function F() {
|
|
2766
2768
|
return Oe(h) ? h : null;
|
|
2767
2769
|
}
|
|
2768
|
-
function C(
|
|
2769
|
-
h =
|
|
2770
|
+
function C(D) {
|
|
2771
|
+
h = D, y.postTranslation = D;
|
|
2770
2772
|
}
|
|
2771
2773
|
function $() {
|
|
2772
2774
|
return w;
|
|
2773
2775
|
}
|
|
2774
|
-
function le(
|
|
2775
|
-
|
|
2776
|
+
function le(D) {
|
|
2777
|
+
D !== null && (v = Qi(D)), w = D, y.missing = v;
|
|
2776
2778
|
}
|
|
2777
|
-
const ce = (
|
|
2779
|
+
const ce = (D, H, he, Se, tt, un) => {
|
|
2778
2780
|
S();
|
|
2779
2781
|
let Ut;
|
|
2780
2782
|
try {
|
|
2781
|
-
|
|
2783
|
+
_l.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (y.fallbackContext = t ? nl() : void 0), Ut = D(y);
|
|
2782
2784
|
} finally {
|
|
2783
2785
|
__INTLIFY_PROD_DEVTOOLS__, i || (y.fallbackContext = void 0);
|
|
2784
2786
|
}
|
|
2785
2787
|
if (he !== "translate exists" && // for not `te` (e.g `t`)
|
|
2786
2788
|
Ne(Ut) && Ut === In || he === "translate exists" && !Ut) {
|
|
2787
|
-
const [fa,
|
|
2789
|
+
const [fa, Yd] = H();
|
|
2788
2790
|
return t && E ? Se(t) : tt(fa);
|
|
2789
2791
|
} else {
|
|
2790
2792
|
if (un(Ut))
|
|
@@ -2792,63 +2794,63 @@ function kl(e = {}) {
|
|
|
2792
2794
|
throw tn(Ht.UNEXPECTED_RETURN_TYPE);
|
|
2793
2795
|
}
|
|
2794
2796
|
};
|
|
2795
|
-
function we(...
|
|
2796
|
-
return ce((H) => Reflect.apply(Yi, null, [H, ...
|
|
2797
|
+
function we(...D) {
|
|
2798
|
+
return ce((H) => Reflect.apply(Yi, null, [H, ...D]), () => Jn(...D), "translate", (H) => Reflect.apply(H.t, H, [...D]), (H) => H, (H) => te(H));
|
|
2797
2799
|
}
|
|
2798
|
-
function G(...
|
|
2799
|
-
const [H, he, Se] =
|
|
2800
|
+
function G(...D) {
|
|
2801
|
+
const [H, he, Se] = D;
|
|
2800
2802
|
if (Se && !fe(Se))
|
|
2801
2803
|
throw tn(Ht.INVALID_ARGUMENT);
|
|
2802
2804
|
return we(H, he, Pe({ resolvedMessage: !0 }, Se || {}));
|
|
2803
2805
|
}
|
|
2804
|
-
function j(...
|
|
2805
|
-
return ce((H) => Reflect.apply(Gi, null, [H, ...
|
|
2806
|
+
function j(...D) {
|
|
2807
|
+
return ce((H) => Reflect.apply(Gi, null, [H, ...D]), () => Xn(...D), "datetime format", (H) => Reflect.apply(H.d, H, [...D]), () => Ui, (H) => te(H));
|
|
2806
2808
|
}
|
|
2807
|
-
function Z(...
|
|
2808
|
-
return ce((H) => Reflect.apply(Wi, null, [H, ...
|
|
2809
|
+
function Z(...D) {
|
|
2810
|
+
return ce((H) => Reflect.apply(Wi, null, [H, ...D]), () => qn(...D), "number format", (H) => Reflect.apply(H.n, H, [...D]), () => Ui, (H) => te(H));
|
|
2809
2811
|
}
|
|
2810
|
-
function ne(
|
|
2811
|
-
return
|
|
2812
|
+
function ne(D) {
|
|
2813
|
+
return D.map((H) => te(H) || Ne(H) || Re(H) ? Xi(String(H)) : H);
|
|
2812
2814
|
}
|
|
2813
2815
|
const ee = {
|
|
2814
2816
|
normalize: ne,
|
|
2815
|
-
interpolate: (
|
|
2817
|
+
interpolate: (D) => D,
|
|
2816
2818
|
type: "vnode"
|
|
2817
2819
|
};
|
|
2818
|
-
function Q(...
|
|
2820
|
+
function Q(...D) {
|
|
2819
2821
|
return ce((H) => {
|
|
2820
2822
|
let he;
|
|
2821
2823
|
const Se = H;
|
|
2822
2824
|
try {
|
|
2823
|
-
Se.processor = ee, he = Reflect.apply(Yi, null, [Se, ...
|
|
2825
|
+
Se.processor = ee, he = Reflect.apply(Yi, null, [Se, ...D]);
|
|
2824
2826
|
} finally {
|
|
2825
2827
|
Se.processor = null;
|
|
2826
2828
|
}
|
|
2827
2829
|
return he;
|
|
2828
|
-
}, () => Jn(...
|
|
2830
|
+
}, () => Jn(...D), "translate", (H) => H[Zn](...D), (H) => [Xi(H)], (H) => Te(H));
|
|
2829
2831
|
}
|
|
2830
|
-
function ve(...
|
|
2831
|
-
return ce((H) => Reflect.apply(Wi, null, [H, ...
|
|
2832
|
+
function ve(...D) {
|
|
2833
|
+
return ce((H) => Reflect.apply(Wi, null, [H, ...D]), () => qn(...D), "number format", (H) => H[ei](...D), Ji, (H) => te(H) || Te(H));
|
|
2832
2834
|
}
|
|
2833
|
-
function Ae(...
|
|
2834
|
-
return ce((H) => Reflect.apply(Gi, null, [H, ...
|
|
2835
|
+
function Ae(...D) {
|
|
2836
|
+
return ce((H) => Reflect.apply(Gi, null, [H, ...D]), () => Xn(...D), "datetime format", (H) => H[Qn](...D), Ji, (H) => te(H) || Te(H));
|
|
2835
2837
|
}
|
|
2836
|
-
function je(
|
|
2837
|
-
T =
|
|
2838
|
+
function je(D) {
|
|
2839
|
+
T = D, y.pluralRules = T;
|
|
2838
2840
|
}
|
|
2839
|
-
function Lt(
|
|
2841
|
+
function Lt(D, H) {
|
|
2840
2842
|
return ce(() => {
|
|
2841
|
-
if (!
|
|
2843
|
+
if (!D)
|
|
2842
2844
|
return !1;
|
|
2843
|
-
const he = te(H) ? H : l.value, Se = ct(he), tt = y.messageResolver(Se,
|
|
2845
|
+
const he = te(H) ? H : l.value, Se = ct(he), tt = y.messageResolver(Se, D);
|
|
2844
2846
|
return Wt(tt) || Ye(tt) || te(tt);
|
|
2845
|
-
}, () => [
|
|
2847
|
+
}, () => [D], "translate exists", (he) => Reflect.apply(he.te, he, [D, H]), Sl, (he) => Re(he));
|
|
2846
2848
|
}
|
|
2847
|
-
function qt(
|
|
2849
|
+
function qt(D) {
|
|
2848
2850
|
let H = null;
|
|
2849
2851
|
const he = Io(y, s.value, l.value);
|
|
2850
2852
|
for (let Se = 0; Se < he.length; Se++) {
|
|
2851
|
-
const tt = u.value[he[Se]] || {}, un = y.messageResolver(tt,
|
|
2853
|
+
const tt = u.value[he[Se]] || {}, un = y.messageResolver(tt, D);
|
|
2852
2854
|
if (un != null) {
|
|
2853
2855
|
H = un;
|
|
2854
2856
|
break;
|
|
@@ -2856,52 +2858,52 @@ function kl(e = {}) {
|
|
|
2856
2858
|
}
|
|
2857
2859
|
return H;
|
|
2858
2860
|
}
|
|
2859
|
-
function yt(
|
|
2860
|
-
const H = qt(
|
|
2861
|
-
return H ?? (t ? t.tm(
|
|
2861
|
+
function yt(D) {
|
|
2862
|
+
const H = qt(D);
|
|
2863
|
+
return H ?? (t ? t.tm(D) || {} : {});
|
|
2862
2864
|
}
|
|
2863
|
-
function ct(
|
|
2864
|
-
return u.value[
|
|
2865
|
+
function ct(D) {
|
|
2866
|
+
return u.value[D] || {};
|
|
2865
2867
|
}
|
|
2866
|
-
function dt(
|
|
2868
|
+
function dt(D, H) {
|
|
2867
2869
|
if (a) {
|
|
2868
|
-
const he = { [
|
|
2870
|
+
const he = { [D]: H };
|
|
2869
2871
|
for (const Se in he)
|
|
2870
2872
|
Ze(he, Se) && nn(he[Se]);
|
|
2871
|
-
H = he[
|
|
2873
|
+
H = he[D];
|
|
2872
2874
|
}
|
|
2873
|
-
u.value[
|
|
2875
|
+
u.value[D] = H, y.messages = u.value;
|
|
2874
2876
|
}
|
|
2875
|
-
function wt(
|
|
2876
|
-
u.value[
|
|
2877
|
-
const he = { [
|
|
2877
|
+
function wt(D, H) {
|
|
2878
|
+
u.value[D] = u.value[D] || {};
|
|
2879
|
+
const he = { [D]: H };
|
|
2878
2880
|
if (a)
|
|
2879
2881
|
for (const Se in he)
|
|
2880
2882
|
Ze(he, Se) && nn(he[Se]);
|
|
2881
|
-
H = he[
|
|
2883
|
+
H = he[D], bn(H, u.value[D]), y.messages = u.value;
|
|
2882
2884
|
}
|
|
2883
|
-
function xt(
|
|
2884
|
-
return m.value[
|
|
2885
|
+
function xt(D) {
|
|
2886
|
+
return m.value[D] || {};
|
|
2885
2887
|
}
|
|
2886
|
-
function f(
|
|
2887
|
-
m.value[
|
|
2888
|
+
function f(D, H) {
|
|
2889
|
+
m.value[D] = H, y.datetimeFormats = m.value, Bi(y, D, H);
|
|
2888
2890
|
}
|
|
2889
|
-
function g(
|
|
2890
|
-
m.value[
|
|
2891
|
+
function g(D, H) {
|
|
2892
|
+
m.value[D] = Pe(m.value[D] || {}, H), y.datetimeFormats = m.value, Bi(y, D, H);
|
|
2891
2893
|
}
|
|
2892
|
-
function L(
|
|
2893
|
-
return d.value[
|
|
2894
|
+
function L(D) {
|
|
2895
|
+
return d.value[D] || {};
|
|
2894
2896
|
}
|
|
2895
|
-
function Y(
|
|
2896
|
-
d.value[
|
|
2897
|
+
function Y(D, H) {
|
|
2898
|
+
d.value[D] = H, y.numberFormats = d.value, Hi(y, D, H);
|
|
2897
2899
|
}
|
|
2898
|
-
function X(
|
|
2899
|
-
d.value[
|
|
2900
|
+
function X(D, H) {
|
|
2901
|
+
d.value[D] = Pe(d.value[D] || {}, H), y.numberFormats = d.value, Hi(y, D, H);
|
|
2900
2902
|
}
|
|
2901
|
-
Zi++, t && Ai && (Le(t.locale, (
|
|
2902
|
-
r && (l.value =
|
|
2903
|
-
}), Le(t.fallbackLocale, (
|
|
2904
|
-
r && (s.value =
|
|
2903
|
+
Zi++, t && Ai && (Le(t.locale, (D) => {
|
|
2904
|
+
r && (l.value = D, y.locale = D, Jt(y, l.value, s.value));
|
|
2905
|
+
}), Le(t.fallbackLocale, (D) => {
|
|
2906
|
+
r && (s.value = D, y.fallbackLocale = D, Jt(y, l.value, s.value));
|
|
2905
2907
|
}));
|
|
2906
2908
|
const ue = {
|
|
2907
2909
|
id: Zi,
|
|
@@ -2910,8 +2912,8 @@ function kl(e = {}) {
|
|
|
2910
2912
|
get inheritLocale() {
|
|
2911
2913
|
return r;
|
|
2912
2914
|
},
|
|
2913
|
-
set inheritLocale(
|
|
2914
|
-
r =
|
|
2915
|
+
set inheritLocale(D) {
|
|
2916
|
+
r = D, D && t && (l.value = t.locale.value, s.value = t.fallbackLocale.value, Jt(y, l.value, s.value));
|
|
2915
2917
|
},
|
|
2916
2918
|
get availableLocales() {
|
|
2917
2919
|
return Object.keys(u.value).sort();
|
|
@@ -2929,48 +2931,48 @@ function kl(e = {}) {
|
|
|
2929
2931
|
get missingWarn() {
|
|
2930
2932
|
return c;
|
|
2931
2933
|
},
|
|
2932
|
-
set missingWarn(
|
|
2933
|
-
c =
|
|
2934
|
+
set missingWarn(D) {
|
|
2935
|
+
c = D, y.missingWarn = c;
|
|
2934
2936
|
},
|
|
2935
2937
|
get fallbackWarn() {
|
|
2936
2938
|
return p;
|
|
2937
2939
|
},
|
|
2938
|
-
set fallbackWarn(
|
|
2939
|
-
p =
|
|
2940
|
+
set fallbackWarn(D) {
|
|
2941
|
+
p = D, y.fallbackWarn = p;
|
|
2940
2942
|
},
|
|
2941
2943
|
get fallbackRoot() {
|
|
2942
2944
|
return E;
|
|
2943
2945
|
},
|
|
2944
|
-
set fallbackRoot(
|
|
2945
|
-
E =
|
|
2946
|
+
set fallbackRoot(D) {
|
|
2947
|
+
E = D;
|
|
2946
2948
|
},
|
|
2947
2949
|
get fallbackFormat() {
|
|
2948
2950
|
return _;
|
|
2949
2951
|
},
|
|
2950
|
-
set fallbackFormat(
|
|
2951
|
-
_ =
|
|
2952
|
+
set fallbackFormat(D) {
|
|
2953
|
+
_ = D, y.fallbackFormat = _;
|
|
2952
2954
|
},
|
|
2953
2955
|
get warnHtmlMessage() {
|
|
2954
2956
|
return k;
|
|
2955
2957
|
},
|
|
2956
|
-
set warnHtmlMessage(
|
|
2957
|
-
k =
|
|
2958
|
+
set warnHtmlMessage(D) {
|
|
2959
|
+
k = D, y.warnHtmlMessage = D;
|
|
2958
2960
|
},
|
|
2959
2961
|
get escapeParameter() {
|
|
2960
2962
|
return O;
|
|
2961
2963
|
},
|
|
2962
|
-
set escapeParameter(
|
|
2963
|
-
O =
|
|
2964
|
+
set escapeParameter(D) {
|
|
2965
|
+
O = D, y.escapeParameter = D;
|
|
2964
2966
|
},
|
|
2965
2967
|
t: we,
|
|
2966
2968
|
getLocaleMessage: ct,
|
|
2967
2969
|
setLocaleMessage: dt,
|
|
2968
2970
|
mergeLocaleMessage: wt,
|
|
2969
|
-
getPostTranslationHandler:
|
|
2971
|
+
getPostTranslationHandler: F,
|
|
2970
2972
|
setPostTranslationHandler: C,
|
|
2971
2973
|
getMissingHandler: $,
|
|
2972
2974
|
setMissingHandler: le,
|
|
2973
|
-
[
|
|
2975
|
+
[wl]: je
|
|
2974
2976
|
};
|
|
2975
2977
|
return ue.datetimeFormats = P, ue.numberFormats = z, ue.rt = G, ue.te = Lt, ue.tm = yt, ue.d = j, ue.n = Z, ue.getDateTimeFormat = xt, ue.setDateTimeFormat = f, ue.mergeDateTimeFormat = g, ue.getNumberFormat = L, ue.setNumberFormat = Y, ue.mergeNumberFormat = X, ue[Vo] = n, ue[Zn] = Q, ue[Qn] = Ae, ue[ei] = ve, ue;
|
|
2976
2978
|
}
|
|
@@ -2992,7 +2994,7 @@ const vi = {
|
|
|
2992
2994
|
type: Object
|
|
2993
2995
|
}
|
|
2994
2996
|
};
|
|
2995
|
-
function
|
|
2997
|
+
function Rl({ slots: e }, t) {
|
|
2996
2998
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((i, a) => [
|
|
2997
2999
|
...i,
|
|
2998
3000
|
// prettier-ignore
|
|
@@ -3015,7 +3017,7 @@ Pe({
|
|
|
3015
3017
|
validator: (e) => Ne(e) || !isNaN(e)
|
|
3016
3018
|
}
|
|
3017
3019
|
}, vi);
|
|
3018
|
-
function
|
|
3020
|
+
function Cl(e) {
|
|
3019
3021
|
return Te(e) && !te(e[0]);
|
|
3020
3022
|
}
|
|
3021
3023
|
function Bo(e, t, n, i) {
|
|
@@ -3028,10 +3030,10 @@ function Bo(e, t, n, i) {
|
|
|
3028
3030
|
let u = [r.key];
|
|
3029
3031
|
Te(s) ? u = s.map((c, p) => {
|
|
3030
3032
|
const E = a[c.type], _ = E ? E({ [c.type]: c.value, index: p, parts: s }) : [c.value];
|
|
3031
|
-
return
|
|
3033
|
+
return Cl(_) && (_[0].key = `${c.type}-${p}`), _;
|
|
3032
3034
|
}) : te(s) && (u = [s]);
|
|
3033
3035
|
const m = Pe(ye(), o), d = te(e.tag) || fe(e.tag) ? e.tag : Go();
|
|
3034
|
-
return
|
|
3036
|
+
return De(d, m, u);
|
|
3035
3037
|
};
|
|
3036
3038
|
}
|
|
3037
3039
|
Pe({
|
|
@@ -3052,41 +3054,41 @@ Pe({
|
|
|
3052
3054
|
type: [String, Object]
|
|
3053
3055
|
}
|
|
3054
3056
|
}, vi);
|
|
3055
|
-
const
|
|
3057
|
+
const Al = /* @__PURE__ */ Pt("global-vue-i18n");
|
|
3056
3058
|
function ln(e = {}) {
|
|
3057
3059
|
const t = an();
|
|
3058
3060
|
if (t == null)
|
|
3059
3061
|
throw tn(Ht.MUST_BE_CALL_SETUP_TOP);
|
|
3060
3062
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3061
3063
|
throw tn(Ht.NOT_INSTALLED);
|
|
3062
|
-
const n =
|
|
3064
|
+
const n = Il(t), i = Ml(n), a = $o(t), o = Tl(e, a);
|
|
3063
3065
|
if (o === "global")
|
|
3064
|
-
return
|
|
3066
|
+
return El(i, e, a), i;
|
|
3065
3067
|
if (o === "parent") {
|
|
3066
|
-
let s =
|
|
3068
|
+
let s = Fl(n, t, e.__useComponent);
|
|
3067
3069
|
return s == null && (s = i), s;
|
|
3068
3070
|
}
|
|
3069
3071
|
const r = n;
|
|
3070
3072
|
let l = r.__getInstance(t);
|
|
3071
3073
|
if (l == null) {
|
|
3072
3074
|
const s = Pe({}, e);
|
|
3073
|
-
"__i18n" in a && (s.__i18n = a.__i18n), i && (s.__root = i), l =
|
|
3075
|
+
"__i18n" in a && (s.__i18n = a.__i18n), i && (s.__root = i), l = Ol(s), r.__composerExtend && (l[ti] = r.__composerExtend(l)), Nl(r, t, l), r.__setInstance(t, l);
|
|
3074
3076
|
}
|
|
3075
3077
|
return l;
|
|
3076
3078
|
}
|
|
3077
|
-
function
|
|
3078
|
-
const t = ga(e.isCE ?
|
|
3079
|
+
function Il(e) {
|
|
3080
|
+
const t = ga(e.isCE ? Al : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3079
3081
|
if (!t)
|
|
3080
3082
|
throw tn(e.isCE ? Ht.NOT_INSTALLED_WITH_PROVIDE : Ht.UNEXPECTED_ERROR);
|
|
3081
3083
|
return t;
|
|
3082
3084
|
}
|
|
3083
|
-
function
|
|
3085
|
+
function Tl(e, t) {
|
|
3084
3086
|
return Cn(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3085
3087
|
}
|
|
3086
|
-
function
|
|
3088
|
+
function Ml(e) {
|
|
3087
3089
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3088
3090
|
}
|
|
3089
|
-
function
|
|
3091
|
+
function Fl(e, t, n = !1) {
|
|
3090
3092
|
let i = null;
|
|
3091
3093
|
const a = t.root;
|
|
3092
3094
|
let o = Dl(t, n);
|
|
@@ -3107,7 +3109,7 @@ function Ml(e, t, n = !1) {
|
|
|
3107
3109
|
function Dl(e, t = !1) {
|
|
3108
3110
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3109
3111
|
}
|
|
3110
|
-
function
|
|
3112
|
+
function Nl(e, t, n) {
|
|
3111
3113
|
$t(() => {
|
|
3112
3114
|
}, t), _a(() => {
|
|
3113
3115
|
const i = n;
|
|
@@ -3116,18 +3118,18 @@ function Fl(e, t, n) {
|
|
|
3116
3118
|
a && (a(), delete i[ti]);
|
|
3117
3119
|
}, t);
|
|
3118
3120
|
}
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3121
|
+
yl();
|
|
3122
|
+
Js(Fs);
|
|
3123
|
+
Zs(Ys);
|
|
3124
|
+
Qs(Io);
|
|
3123
3125
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
3124
|
-
const e =
|
|
3126
|
+
const e = Ft();
|
|
3125
3127
|
e.__INTLIFY__ = !0, Ds(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3126
3128
|
}
|
|
3127
|
-
const
|
|
3129
|
+
const Pl = { class: "flex flex-col gap-4" }, Ll = { class: "fm-select__menu__wrapper" }, xl = {
|
|
3128
3130
|
key: 0,
|
|
3129
3131
|
class: "flex flex-col gap-4 justify-center"
|
|
3130
|
-
},
|
|
3132
|
+
}, Ul = /* @__PURE__ */ ge({
|
|
3131
3133
|
__name: "CategoriesSelector",
|
|
3132
3134
|
props: {
|
|
3133
3135
|
modelValue: {},
|
|
@@ -3182,7 +3184,7 @@ const Nl = { class: "flex flex-col gap-4" }, Pl = { class: "fm-select__menu__wra
|
|
|
3182
3184
|
hideMenu: m
|
|
3183
3185
|
}), (_, w) => {
|
|
3184
3186
|
const v = K("FmIcon"), h = K("FmField"), k = K("FmMenuItem"), O = K("FmMenu"), A = K("FmFormGroup"), T = K("FmChipGroup");
|
|
3185
|
-
return U(), re("div",
|
|
3187
|
+
return U(), re("div", Pl, [
|
|
3186
3188
|
R(A, {
|
|
3187
3189
|
"model-value": _.modelValue,
|
|
3188
3190
|
disabled: _.disabled,
|
|
@@ -3223,7 +3225,7 @@ const Nl = { class: "flex flex-col gap-4" }, Pl = { class: "fm-select__menu__wra
|
|
|
3223
3225
|
}, 1032, ["class", "focused", "invalid"])
|
|
3224
3226
|
]),
|
|
3225
3227
|
default: W(() => [
|
|
3226
|
-
B("div",
|
|
3228
|
+
B("div", Ll, [
|
|
3227
3229
|
(U(!0), re(Ve, null, rt(_.items, (x) => (U(), J(k, {
|
|
3228
3230
|
key: x.value,
|
|
3229
3231
|
disabled: x.disabled,
|
|
@@ -3240,7 +3242,7 @@ const Nl = { class: "flex flex-col gap-4" }, Pl = { class: "fm-select__menu__wra
|
|
|
3240
3242
|
]),
|
|
3241
3243
|
_: 3
|
|
3242
3244
|
}, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
|
|
3243
|
-
_.shouldShowChips && l.value.length > 0 ? (U(), re("div",
|
|
3245
|
+
_.shouldShowChips && l.value.length > 0 ? (U(), re("div", xl, [
|
|
3244
3246
|
R(T, {
|
|
3245
3247
|
disabled: _.disabled,
|
|
3246
3248
|
items: l.value.map((y) => ({ label: y.label })),
|
|
@@ -3251,7 +3253,7 @@ const Nl = { class: "flex flex-col gap-4" }, Pl = { class: "fm-select__menu__wra
|
|
|
3251
3253
|
]);
|
|
3252
3254
|
};
|
|
3253
3255
|
}
|
|
3254
|
-
}),
|
|
3256
|
+
}), Vl = /* @__PURE__ */ Ct(Ul, [["__scopeId", "data-v-1d940d75"]]);
|
|
3255
3257
|
function eo(e, t) {
|
|
3256
3258
|
var n = Object.keys(e);
|
|
3257
3259
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -3276,7 +3278,7 @@ function de(e) {
|
|
|
3276
3278
|
function Xe(e, t, n) {
|
|
3277
3279
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
3278
3280
|
}
|
|
3279
|
-
function
|
|
3281
|
+
function zl(e, t) {
|
|
3280
3282
|
if (e == null) return {};
|
|
3281
3283
|
var n, i, a = function(r, l) {
|
|
3282
3284
|
if (r == null) return {};
|
|
@@ -3312,7 +3314,7 @@ function xn(e, t) {
|
|
|
3312
3314
|
for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
|
|
3313
3315
|
return i;
|
|
3314
3316
|
}
|
|
3315
|
-
var to,
|
|
3317
|
+
var to, $l, pn, Ie = (to = function(e) {
|
|
3316
3318
|
/*!
|
|
3317
3319
|
Copyright (c) 2018 Jed Watson.
|
|
3318
3320
|
Licensed under the MIT License (MIT), see
|
|
@@ -3339,7 +3341,7 @@ var to, zl, pn, Ie = (to = function(e) {
|
|
|
3339
3341
|
}
|
|
3340
3342
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
3341
3343
|
})();
|
|
3342
|
-
}, to(pn = { path:
|
|
3344
|
+
}, to(pn = { path: $l, exports: {}, require: function(e, t) {
|
|
3343
3345
|
return function() {
|
|
3344
3346
|
throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
|
3345
3347
|
}(t == null && pn.path);
|
|
@@ -3409,7 +3411,7 @@ function no(e) {
|
|
|
3409
3411
|
function Vt(e) {
|
|
3410
3412
|
return !!(e && e.constructor && e.call && e.apply);
|
|
3411
3413
|
}
|
|
3412
|
-
function
|
|
3414
|
+
function Fe(e) {
|
|
3413
3415
|
return e === void 0;
|
|
3414
3416
|
}
|
|
3415
3417
|
function yn(e) {
|
|
@@ -3418,7 +3420,7 @@ function yn(e) {
|
|
|
3418
3420
|
function oi(e, t, n) {
|
|
3419
3421
|
var i = {};
|
|
3420
3422
|
return yn(e) ? (Object.keys(t).forEach(function(a) {
|
|
3421
|
-
|
|
3423
|
+
Fe(e[a]) ? i[a] = t[a] : yn(t[a]) ? yn(e[a]) ? i[a] = oi(e[a], t[a], n[a]) : i[a] = e[a] ? t[a] : n[a] : t[a] === !0 || t[a] === !1 ? i[a] = !!e[a] : i[a] = e[a];
|
|
3422
3424
|
}), i) : e ? t : n;
|
|
3423
3425
|
}
|
|
3424
3426
|
function fn(e) {
|
|
@@ -3438,11 +3440,11 @@ function Ko(e, t) {
|
|
|
3438
3440
|
}
|
|
3439
3441
|
var Zt = function(e, t) {
|
|
3440
3442
|
e === void 0 && (e = {}), t === void 0 && (t = {}), this.type = "manipulateImage", this.move = e, this.scale = t;
|
|
3441
|
-
},
|
|
3443
|
+
}, Gl = function(e, t) {
|
|
3442
3444
|
t === void 0 && (t = {}), this.type = "resize", this.directions = e, this.params = t;
|
|
3443
3445
|
}, _i = function(e) {
|
|
3444
3446
|
this.type = "move", this.directions = e;
|
|
3445
|
-
},
|
|
3447
|
+
}, Bl = function() {
|
|
3446
3448
|
function e(t, n, i, a, o) {
|
|
3447
3449
|
this.type = "drag", this.nativeEvent = t, this.position = i, this.previousPosition = a, this.element = n, this.anchor = o;
|
|
3448
3450
|
}
|
|
@@ -3490,7 +3492,7 @@ var Zt = function(e, t) {
|
|
|
3490
3492
|
if (this.touches.length) {
|
|
3491
3493
|
if (this.touches.length === 1 && n.length === 1) {
|
|
3492
3494
|
var i = this.$refs.draggable;
|
|
3493
|
-
this.$emit("drag", new
|
|
3495
|
+
this.$emit("drag", new Bl(e, i, { left: n[0].clientX, top: n[0].clientY }, { left: this.touches[0].clientX, top: this.touches[0].clientY }, this.anchor));
|
|
3494
3496
|
}
|
|
3495
3497
|
this.touches = n;
|
|
3496
3498
|
}
|
|
@@ -3530,9 +3532,9 @@ Yo.render = function(e, t, n, i, a, o) {
|
|
|
3530
3532
|
return [Ce(e.$slots, "default")];
|
|
3531
3533
|
}), _: 3 }, 8, ["class"])], 2);
|
|
3532
3534
|
};
|
|
3533
|
-
var
|
|
3535
|
+
var Wl = et("vue-line-wrapper"), Xo = { name: "LineWrapper", components: { DraggableElement: bi }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
|
|
3534
3536
|
var e;
|
|
3535
|
-
return
|
|
3537
|
+
return Wl((Xe(e = {}, this.position, !0), Xe(e, "disabled", this.disabled), e));
|
|
3536
3538
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
3537
3539
|
Xo.render = function(e, t, n, i, a, o) {
|
|
3538
3540
|
var r = K("DraggableElement");
|
|
@@ -3548,7 +3550,7 @@ Xo.render = function(e, t, n, i, a, o) {
|
|
|
3548
3550
|
return [Ce(e.$slots, "default")];
|
|
3549
3551
|
}), _: 3 }, 8, ["class"]);
|
|
3550
3552
|
};
|
|
3551
|
-
var ot = ["left", "right", "top", "bottom"],
|
|
3553
|
+
var ot = ["left", "right", "top", "bottom"], Hl = ["left", "right"], jl = ["top", "bottom"], Kl = ["left", "top"], Yl = ["fill-area", "fit-area", "stencil", "none"], oo = { left: 0, top: 0, width: 0, height: 0 };
|
|
3552
3554
|
function ao(e, t, n) {
|
|
3553
3555
|
return !(n = n || ["width", "height", "left", "top"]).some(function(i) {
|
|
3554
3556
|
return e[i] !== t[i];
|
|
@@ -3627,7 +3629,7 @@ function Ue(e, t, n) {
|
|
|
3627
3629
|
function ai(e) {
|
|
3628
3630
|
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 };
|
|
3629
3631
|
}
|
|
3630
|
-
function
|
|
3632
|
+
function Xl(e, t) {
|
|
3631
3633
|
return ae(ae({}, e), { minWidth: Math.min(t.width, e.minWidth), minHeight: Math.min(t.height, e.minHeight), maxWidth: Math.min(t.width, e.maxWidth), maxHeight: Math.min(t.height, e.maxHeight) });
|
|
3632
3634
|
}
|
|
3633
3635
|
function Zo(e, t, n) {
|
|
@@ -3638,7 +3640,7 @@ function Zo(e, t, n) {
|
|
|
3638
3640
|
o !== void 0 && r !== void 0 ? i[a] = a === "left" || a === "top" ? n ? Math.max(o, r) : Math.min(o, r) : n ? Math.min(o, r) : Math.max(o, r) : r !== void 0 ? i[a] = r : o !== void 0 && (i[a] = o);
|
|
3639
3641
|
}), i;
|
|
3640
3642
|
}
|
|
3641
|
-
function
|
|
3643
|
+
function Fn(e, t) {
|
|
3642
3644
|
return Zo(e, t, !0);
|
|
3643
3645
|
}
|
|
3644
3646
|
function ro(e) {
|
|
@@ -3666,19 +3668,19 @@ function ri(e) {
|
|
|
3666
3668
|
var t = e.event, n = e.coordinates, i = e.positionRestrictions, a = i === void 0 ? {} : i, o = He(n, t.directions);
|
|
3667
3669
|
return He(o, Yt(o, a));
|
|
3668
3670
|
}
|
|
3669
|
-
function
|
|
3671
|
+
function ql(e) {
|
|
3670
3672
|
var t = e.coordinates, n = e.transform, i = e.imageSize, a = e.sizeRestrictions, o = e.positionRestrictions, r = e.aspectRatio, l = e.visibleArea, s = function(m, d) {
|
|
3671
3673
|
return ri({ coordinates: m, positionRestrictions: o, event: new _i({ left: d.left - m.left, top: d.top - m.top }) });
|
|
3672
3674
|
}, u = ae({}, t);
|
|
3673
3675
|
return (Array.isArray(n) ? n : [n]).forEach(function(m) {
|
|
3674
3676
|
var d = {};
|
|
3675
|
-
|
|
3677
|
+
Fe((d = typeof m == "function" ? m({ coordinates: u, imageSize: i, visibleArea: l }) : m).width) && Fe(d.height) || (u = function(c, p) {
|
|
3676
3678
|
var E = ae(ae(ae({}, c), _t({ width: p.width, height: p.height, sizeRestrictions: a, aspectRatio: r })), { left: 0, top: 0 });
|
|
3677
3679
|
return s(E, { left: c.left, top: c.top });
|
|
3678
|
-
}(u, ae(ae({}, u), d))),
|
|
3680
|
+
}(u, ae(ae({}, u), d))), Fe(d.left) && Fe(d.top) || (u = s(u, ae(ae({}, u), d)));
|
|
3679
3681
|
}), u;
|
|
3680
3682
|
}
|
|
3681
|
-
function
|
|
3683
|
+
function Jl(e) {
|
|
3682
3684
|
e.event;
|
|
3683
3685
|
var t = e.getAreaRestrictions, n = e.boundaries, i = e.coordinates, a = e.visibleArea;
|
|
3684
3686
|
e.aspectRatio;
|
|
@@ -3687,9 +3689,9 @@ function ql(e) {
|
|
|
3687
3689
|
var s, u, m, d = ae({}, i), c = ae({}, a), p = ae({}, o);
|
|
3688
3690
|
s = me(p), u = me(d), m === void 0 && (m = 1e-3), (s === 0 || u === 0 ? Math.abs(u - s) < m : Math.abs(u / s) < 1 + m && Math.abs(u / s) > 1 - m) || (d = ae(ae({}, d), _t({ sizeRestrictions: r, width: d.width, height: d.height, aspectRatio: { minimum: me(p), maximum: me(p) } })));
|
|
3689
3691
|
var E = Mn(c = qe(c, d.width * n.width / (c.width * p.width)), t({ visibleArea: c, type: "resize" }));
|
|
3690
|
-
return E !== 1 && (c = qe(c, E), d = qe(d, E)), c = Ue(c = He(c, jt(xe(d), xe(c))), t({ visibleArea: c, type: "move" })), { coordinates: d = Ue(d,
|
|
3692
|
+
return E !== 1 && (c = qe(c, E), d = qe(d, E)), c = Ue(c = He(c, jt(xe(d), xe(c))), t({ visibleArea: c, type: "move" })), { coordinates: d = Ue(d, Fn(st(c), l)), visibleArea: c };
|
|
3691
3693
|
}
|
|
3692
|
-
function
|
|
3694
|
+
function Zl(e) {
|
|
3693
3695
|
var t = e.event, n = e.getAreaRestrictions, i = e.boundaries, a = e.coordinates, o = e.visibleArea;
|
|
3694
3696
|
e.aspectRatio, e.stencilSize, e.sizeRestrictions;
|
|
3695
3697
|
var r = e.positionRestrictions;
|
|
@@ -3699,11 +3701,11 @@ function Jl(e) {
|
|
|
3699
3701
|
var u = { width: 0, height: 0 };
|
|
3700
3702
|
s.width, i.width, me(i) > me(l) ? (u.height = 0.8 * i.height, u.width = u.height * me(l)) : (u.width = 0.8 * i.width, u.height = u.width * me(l));
|
|
3701
3703
|
var m = Mn(s = qe(s, l.width * i.width / (s.width * u.width)), n({ visibleArea: s, type: "resize" }));
|
|
3702
|
-
s = qe(s, m), m !== 1 && (u.height /= m, u.width /= m), s = Ue(s = He(s, jt(xe(l), xe(s))), n({ visibleArea: s, type: "move" })), l = Ue(l,
|
|
3704
|
+
s = qe(s, m), m !== 1 && (u.height /= m, u.width /= m), s = Ue(s = He(s, jt(xe(l), xe(s))), n({ visibleArea: s, type: "move" })), l = Ue(l, Fn(st(s), r));
|
|
3703
3705
|
}
|
|
3704
3706
|
return { coordinates: l, visibleArea: s };
|
|
3705
3707
|
}
|
|
3706
|
-
function
|
|
3708
|
+
function Ql(e) {
|
|
3707
3709
|
var t = e.event, n = e.coordinates, i = e.visibleArea, a = e.getAreaRestrictions, o = ae({}, i), r = ae({}, n);
|
|
3708
3710
|
if (t.type === "setCoordinates") {
|
|
3709
3711
|
var l = Math.max(0, r.width - o.width), s = Math.max(0, r.height - o.height);
|
|
@@ -3711,19 +3713,19 @@ function Zl(e) {
|
|
|
3711
3713
|
}
|
|
3712
3714
|
return { visibleArea: o, coordinates: r };
|
|
3713
3715
|
}
|
|
3714
|
-
function
|
|
3716
|
+
function eu(e) {
|
|
3715
3717
|
var t = e.imageSize, n = e.visibleArea, i = e.coordinates, a = n || t;
|
|
3716
3718
|
return { left: (n ? n.left : 0) + a.width / 2 - i.width / 2, top: (n ? n.top : 0) + a.height / 2 - i.height / 2 };
|
|
3717
3719
|
}
|
|
3718
|
-
function
|
|
3720
|
+
function tu(e) {
|
|
3719
3721
|
var t = e.imageSize, n = e.visibleArea, i = e.aspectRatio, a = e.sizeRestrictions, o = n || t, r = Math.min(i.maximum || 1 / 0, Math.max(i.minimum || 0, me(o))), l = o.width < o.height ? { width: 0.8 * o.width, height: 0.8 * o.width / r } : { height: 0.8 * o.height, width: 0.8 * o.height * r };
|
|
3720
3722
|
return _t(ae(ae({}, l), { aspectRatio: i, sizeRestrictions: a }));
|
|
3721
3723
|
}
|
|
3722
|
-
function
|
|
3724
|
+
function nu(e) {
|
|
3723
3725
|
var t, n, i = e.imageSize, a = e.visibleArea, o = e.boundaries, r = e.aspectRatio, l = e.sizeRestrictions, s = e.stencilSize, u = a || i;
|
|
3724
3726
|
return me(u) > me(o) ? n = (t = s.height * u.height / o.height) * me(s) : t = (n = s.width * u.width / o.width) / me(s), _t({ width: n, height: t, aspectRatio: r, sizeRestrictions: l });
|
|
3725
3727
|
}
|
|
3726
|
-
function
|
|
3728
|
+
function iu(e) {
|
|
3727
3729
|
var t = e.getAreaRestrictions, n = e.coordinates, i = e.imageSize, a = me(e.boundaries);
|
|
3728
3730
|
if (n) {
|
|
3729
3731
|
var o = { height: Math.max(n.height, i.height), width: Math.max(n.width, i.width) }, r = qo({ width: me(o) > a ? o.width : o.height * a, height: me(o) > a ? o.width / a : o.height }, ai(t())), l = { left: n.left + n.width / 2 - r.width / 2, top: n.top + n.height / 2 - r.height / 2, width: r.width, height: r.height }, s = on(n, st(ae({ left: 0, top: 0 }, i))), u = {};
|
|
@@ -3735,19 +3737,19 @@ function nu(e) {
|
|
|
3735
3737
|
function hn(e, t) {
|
|
3736
3738
|
return Zo(e, st(t));
|
|
3737
3739
|
}
|
|
3738
|
-
function
|
|
3740
|
+
function ou(e) {
|
|
3739
3741
|
var t = e.event, n = e.coordinates, i = e.visibleArea, a = e.sizeRestrictions, o = e.getAreaRestrictions, r = e.positionRestrictions, l = e.adjustStencil, s = t.scale, u = t.move, m = ae({}, i), d = ae({}, n), c = 1, p = 1, E = s.factor && Math.abs(s.factor - 1) > 1e-3;
|
|
3740
3742
|
m = He(m, { left: u.left || 0, top: u.top || 0 });
|
|
3741
3743
|
var _ = { stencil: { minimum: Math.max(a.minWidth ? a.minWidth / d.width : 0, a.minHeight ? a.minHeight / d.height : 0), maximum: Math.min(a.maxWidth ? a.maxWidth / d.width : 1 / 0, a.maxHeight ? a.maxHeight / d.height : 1 / 0, Kt(d, r)) }, area: { maximum: Kt(m, o({ visibleArea: m, type: "resize" })) } };
|
|
3742
3744
|
s.factor && E && (s.factor < 1 ? (p = Math.max(s.factor, _.stencil.minimum)) > 1 && (p = 1) : s.factor > 1 && (p = Math.min(s.factor, Math.min(_.area.maximum, _.stencil.maximum))) < 1 && (p = 1)), p && (m = qe(m, p, s.center));
|
|
3743
3745
|
var w = n.left - i.left, v = i.width + i.left - (n.width + n.left), h = n.top - i.top, k = i.height + i.top - (n.height + n.top);
|
|
3744
|
-
return m = Ue(m = He(m, Yt(m, { left: r.left !== void 0 ? r.left - w * p : void 0, top: r.top !== void 0 ? r.top - h * p : void 0, bottom: r.bottom !== void 0 ? r.bottom + k * p : void 0, right: r.right !== void 0 ? r.right + v * p : void 0 })), o({ visibleArea: m, type: "move" })), d.width = d.width * p, d.height = d.height * p, d.left = m.left + w * p, d.top = m.top + h * p, d = Ue(d,
|
|
3746
|
+
return m = Ue(m = He(m, Yt(m, { left: r.left !== void 0 ? r.left - w * p : void 0, top: r.top !== void 0 ? r.top - h * p : void 0, bottom: r.bottom !== void 0 ? r.bottom + k * p : void 0, right: r.right !== void 0 ? r.right + v * p : void 0 })), o({ visibleArea: m, type: "move" })), d.width = d.width * p, d.height = d.height * p, d.left = m.left + w * p, d.top = m.top + h * p, d = Ue(d, Fn(st(m), r)), s.factor && E && l && (s.factor > 1 ? c = Math.min(_.area.maximum, s.factor) / p : s.factor < 1 && (c = Math.max(d.height / m.height, d.width / m.width, s.factor / p)), c !== 1 && (m = He(m = Ue(m = qe(m, c, s.factor > 1 ? s.center : xe(d)), o({ visibleArea: m, type: "move" })), Tn(Yt(d, st(m)))))), { coordinates: d, visibleArea: m };
|
|
3745
3747
|
}
|
|
3746
|
-
function
|
|
3748
|
+
function au(e) {
|
|
3747
3749
|
var t = e.aspectRatio, n = e.getAreaRestrictions, i = e.coordinates, a = e.visibleArea, o = e.sizeRestrictions, r = e.positionRestrictions, l = e.imageSize, s = e.previousImageSize, u = e.angle, m = ae({}, i), d = ae({}, a), c = St(xe(ae({ left: 0, top: 0 }, s)), u);
|
|
3748
3750
|
return (m = ae(ae({}, _t({ sizeRestrictions: o, aspectRatio: t, width: m.width, height: m.height })), St(xe(m), u))).left -= c.left - l.width / 2 + m.width / 2, m.top -= c.top - l.height / 2 + m.height / 2, d = qe(d, Mn(d, n({ visibleArea: d, type: "resize" }))), { coordinates: m = Ue(m, r), visibleArea: d = Ue(d = He(d, jt(xe(m), xe(i))), n({ visibleArea: d, type: "move" })) };
|
|
3749
3751
|
}
|
|
3750
|
-
function
|
|
3752
|
+
function ru(e) {
|
|
3751
3753
|
var t = e.flip, n = e.previousFlip, i = e.rotate, a = e.getAreaRestrictions, o = e.coordinates, r = e.visibleArea, l = e.imageSize, s = ae({}, o), u = ae({}, r), m = n.horizontal !== t.horizontal, d = n.vertical !== t.vertical;
|
|
3752
3754
|
if (m || d) {
|
|
3753
3755
|
var c = St({ left: l.width / 2, top: l.height / 2 }, -i), p = St(xe(s), -i), E = St({ left: m ? c.left - (p.left - c.left) : p.left, top: d ? c.top - (p.top - c.top) : p.top }, i);
|
|
@@ -3779,9 +3781,9 @@ function lo(e) {
|
|
|
3779
3781
|
E !== 1 / 0 && ot.forEach(function(_) {
|
|
3780
3782
|
s[_] *= E;
|
|
3781
3783
|
});
|
|
3782
|
-
} else c.width !== 1 / 0 &&
|
|
3784
|
+
} else c.width !== 1 / 0 && Hl.forEach(function(_) {
|
|
3783
3785
|
s[_] *= c.width;
|
|
3784
|
-
}), c.height !== 1 / 0 &&
|
|
3786
|
+
}), c.height !== 1 / 0 && jl.forEach(function(_) {
|
|
3785
3787
|
s[_] *= c.height;
|
|
3786
3788
|
});
|
|
3787
3789
|
return s;
|
|
@@ -3789,11 +3791,11 @@ function lo(e) {
|
|
|
3789
3791
|
function gn(e, t, n) {
|
|
3790
3792
|
return t == 0 && n == 0 ? e / 2 : t == 0 ? 0 : n == 0 ? e : e * Math.abs(t / (t + n));
|
|
3791
3793
|
}
|
|
3792
|
-
var
|
|
3794
|
+
var su = et("vue-simple-handler"), lu = et("vue-simple-handler-wrapper"), yi = { name: "SimpleHandler", components: { HandlerWrapper: Yo }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
3793
3795
|
return { hover: !1 };
|
|
3794
3796
|
}, computed: { classes: function() {
|
|
3795
3797
|
var e, t = (Xe(e = {}, this.horizontalPosition, !!this.horizontalPosition), Xe(e, this.verticalPosition, !!this.verticalPosition), Xe(e, "".concat(this.horizontalPosition, "-").concat(this.verticalPosition), !!(this.verticalPosition && this.horizontalPosition)), Xe(e, "hover", this.hover), e);
|
|
3796
|
-
return { default: Ie(
|
|
3798
|
+
return { default: Ie(su(t), this.defaultClass, this.hover && this.hoverClass), wrapper: Ie(lu(t), this.wrapperClass) };
|
|
3797
3799
|
} }, methods: { onDrag: function(e) {
|
|
3798
3800
|
this.$emit("drag", e);
|
|
3799
3801
|
}, onEnter: function() {
|
|
@@ -3809,10 +3811,10 @@ yi.render = function(e, t, n, i, a, o) {
|
|
|
3809
3811
|
return [R("div", { class: o.classes.default }, null, 2)];
|
|
3810
3812
|
}), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
3811
3813
|
};
|
|
3812
|
-
var
|
|
3814
|
+
var uu = et("vue-simple-line"), cu = et("vue-simple-line-wrapper"), wi = { name: "SimpleLine", components: { LineWrapper: Xo }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
3813
3815
|
return { hover: !1 };
|
|
3814
3816
|
}, computed: { classes: function() {
|
|
3815
|
-
return { root: Ie(
|
|
3817
|
+
return { root: Ie(uu(Xe({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass), wrapper: Ie(cu(Xe({}, this.position, !0)), this.wrapperClass) };
|
|
3816
3818
|
} }, methods: { onDrag: function(e) {
|
|
3817
3819
|
this.$emit("drag", e);
|
|
3818
3820
|
}, onEnter: function() {
|
|
@@ -3828,7 +3830,7 @@ wi.render = function(e, t, n, i, a, o) {
|
|
|
3828
3830
|
return [R("div", { class: o.classes.root }, null, 2)];
|
|
3829
3831
|
}), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
3830
3832
|
};
|
|
3831
|
-
var zn = et("vue-bounding-box"),
|
|
3833
|
+
var zn = et("vue-bounding-box"), du = ["east", "west", null], mu = ["south", "north", null], Qo = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
|
|
3832
3834
|
return { eastNorth: !0, north: !0, westNorth: !0, west: !0, westSouth: !0, south: !0, eastSouth: !0, east: !0 };
|
|
3833
3835
|
} }, handlersComponent: { type: [Object, String], default: function() {
|
|
3834
3836
|
return yi;
|
|
@@ -3846,8 +3848,8 @@ var zn = et("vue-bounding-box"), cu = ["east", "west", null], du = ["south", "no
|
|
|
3846
3848
|
return {};
|
|
3847
3849
|
} }, resizable: { type: Boolean, default: !0 } }, data: function() {
|
|
3848
3850
|
var e = [];
|
|
3849
|
-
return
|
|
3850
|
-
|
|
3851
|
+
return du.forEach(function(t) {
|
|
3852
|
+
mu.forEach(function(n) {
|
|
3851
3853
|
if (t !== n) {
|
|
3852
3854
|
var i = Wo(t, n), a = i.name, o = i.classname;
|
|
3853
3855
|
e.push({ name: a, classname: o, verticalDirection: n, horizontalDirection: t });
|
|
@@ -3887,7 +3889,7 @@ var zn = et("vue-bounding-box"), cu = ["east", "west", null], du = ["south", "no
|
|
|
3887
3889
|
this.$emit("resize-end");
|
|
3888
3890
|
}, onHandlerDrag: function(e, t, n) {
|
|
3889
3891
|
var i, a = e.shift(), o = a.left, r = a.top, l = { left: 0, right: 0, top: 0, bottom: 0 };
|
|
3890
|
-
t === "west" ? l.left -= o : t === "east" && (l.right += o), n === "north" ? l.top -= r : n === "south" && (l.bottom += r), !n && t ? i = "width" : n && !t && (i = "height"), this.resizable && this.$emit("resize", new
|
|
3892
|
+
t === "west" ? l.left -= o : t === "east" && (l.right += o), n === "north" ? l.top -= r : n === "south" && (l.bottom += r), !n && t ? i = "width" : n && !t && (i = "height"), this.resizable && this.$emit("resize", new Gl(l, { allowedDirections: { left: t === "west" || !t, right: t === "east" || !t, bottom: n === "south" || !n, top: n === "north" || !n }, preserveAspectRatio: e.nativeEvent && e.nativeEvent.shiftKey, respectDirection: i }));
|
|
3891
3893
|
} }, emits: ["resize", "resize-end"] };
|
|
3892
3894
|
Qo.render = function(e, t, n, i, a, o) {
|
|
3893
3895
|
return U(), J("div", { ref: "box", class: o.classes.root, style: o.style }, [Ce(e.$slots, "default"), R("div", null, [(U(!0), J(Ve, null, rt(o.lineNodes, function(r) {
|
|
@@ -3904,8 +3906,8 @@ Qo.render = function(e, t, n, i, a, o) {
|
|
|
3904
3906
|
}) }, null, 8, ["default-class", "hover-class", "wrapper-class", "horizontal-position", "vertical-position", "disabled", "onDrag"]))], 6);
|
|
3905
3907
|
}), 128))], 6);
|
|
3906
3908
|
};
|
|
3907
|
-
var
|
|
3908
|
-
return { default:
|
|
3909
|
+
var pu = et("vue-draggable-area"), ea = { name: "DraggableArea", props: { movable: { type: Boolean, default: !0 }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
|
|
3910
|
+
return { default: pu() };
|
|
3909
3911
|
} }, beforeMount: function() {
|
|
3910
3912
|
window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
|
|
3911
3913
|
}, beforeUnmount: function() {
|
|
@@ -3953,7 +3955,7 @@ function $n(e) {
|
|
|
3953
3955
|
var t, n;
|
|
3954
3956
|
return { rotate: e.rotate || 0, flip: { horizontal: ((t = e == null ? void 0 : e.flip) === null || t === void 0 ? void 0 : t.horizontal) || !1, vertical: ((n = e == null ? void 0 : e.flip) === null || n === void 0 ? void 0 : n.vertical) || !1 } };
|
|
3955
3957
|
}
|
|
3956
|
-
function
|
|
3958
|
+
function fu(e) {
|
|
3957
3959
|
return new Promise(function(t, n) {
|
|
3958
3960
|
try {
|
|
3959
3961
|
if (e) if (/^data:/i.test(e)) t(function(s) {
|
|
@@ -3989,7 +3991,7 @@ function ta(e) {
|
|
|
3989
3991
|
var t = e.rotate, n = e.flip, i = e.scaleX, a = e.scaleY, o = "";
|
|
3990
3992
|
return o += " rotate(" + t + "deg) ", o += " scaleX(" + i * (n.horizontal ? -1 : 1) + ") ", o += " scaleY(" + a * (n.vertical ? -1 : 1) + ") ";
|
|
3991
3993
|
}
|
|
3992
|
-
function
|
|
3994
|
+
function hu(e) {
|
|
3993
3995
|
try {
|
|
3994
3996
|
var t, n = new DataView(e), i = void 0, a = void 0, o = void 0, r = void 0;
|
|
3995
3997
|
if (n.getUint8(0) === 255 && n.getUint8(1) === 216) for (var l = n.byteLength, s = 2; s + 1 < l; ) {
|
|
@@ -4195,14 +4197,14 @@ aa.render = function(e, t, n, i, a, o) {
|
|
|
4195
4197
|
}), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
|
|
4196
4198
|
}), _: 1 }, 8, ["width", "height", "transitions", "class", "handlers", "handlers-component", "handlers-classes", "handlers-wrappers-classes", "lines", "lines-component", "lines-classes", "lines-wrappers-classes", "resizable", "onResize", "onResizeEnd"])], 6);
|
|
4197
4199
|
};
|
|
4198
|
-
var
|
|
4200
|
+
var gu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper", components: { BackgroundWrapper: si }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
|
|
4199
4201
|
return aa;
|
|
4200
4202
|
} }, backgroundWrapperComponent: { type: [Object, String], default: function() {
|
|
4201
4203
|
return si;
|
|
4202
4204
|
} }, stencilProps: { type: Object, default: function() {
|
|
4203
4205
|
return {};
|
|
4204
4206
|
} }, autoZoom: { type: Boolean, default: !1 }, imageClass: { type: String }, boundariesClass: { type: String }, backgroundClass: { type: String }, foregroundClass: { type: String }, minWidth: { type: [Number, String] }, minHeight: { type: [Number, String] }, maxWidth: { type: [Number, String] }, maxHeight: { type: [Number, String] }, debounce: { type: [Boolean, Number], default: 500 }, transitions: { type: Boolean, default: !0 }, checkOrientation: { type: Boolean, default: !0 }, canvas: { type: [Object, Boolean], default: !0 }, crossOrigin: { type: [Boolean, String], default: void 0 }, transitionTime: { type: Number, default: 300 }, imageRestriction: { type: String, default: "fit-area", validator: function(e) {
|
|
4205
|
-
return
|
|
4207
|
+
return Yl.indexOf(e) !== -1;
|
|
4206
4208
|
} }, roundResult: { type: Boolean, default: !0 }, defaultSize: { type: [Function, Object] }, defaultPosition: { type: [Function, Object] }, defaultVisibleArea: { type: [Function, Object] }, defaultTransforms: { type: [Function, Object] }, defaultBoundaries: { type: [Function, String], validator: function(e) {
|
|
4207
4209
|
return !(typeof e == "string" && e !== "fill" && e !== "fit");
|
|
4208
4210
|
} }, 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) {
|
|
@@ -4236,7 +4238,7 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4236
4238
|
t.style.width = n.width + "px", t.style.height = t.clientWidth / i + "px", t.style.width = t.clientWidth + "px";
|
|
4237
4239
|
} }, fitCoordinates: { type: Function, default: function(e) {
|
|
4238
4240
|
var t = e.visibleArea, n = e.coordinates, i = e.aspectRatio, a = e.sizeRestrictions, o = e.positionRestrictions, r = ae(ae({}, n), _t({ width: n.width, height: n.height, aspectRatio: i, sizeRestrictions: { maxWidth: t.width, maxHeight: t.height, minHeight: Math.min(t.height, a.minHeight), minWidth: Math.min(t.width, a.minWidth) } }));
|
|
4239
|
-
return r = Ue(r = He(r, jt(xe(n), xe(r))),
|
|
4241
|
+
return r = Ue(r = He(r, jt(xe(n), xe(r))), Fn(st(t), o));
|
|
4240
4242
|
} }, fitVisibleArea: { type: Function, default: function(e) {
|
|
4241
4243
|
var t = e.visibleArea, n = e.boundaries, i = e.getAreaRestrictions, a = e.coordinates, o = ae({}, t);
|
|
4242
4244
|
o.height = o.width / me(n), o.top += (t.height - o.height) / 2, (a.height - o.height > 0 || a.width - o.width > 0) && (o = qe(o, Math.max(a.height / o.height, a.width / o.width)));
|
|
@@ -4274,7 +4276,7 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4274
4276
|
return { enabled: this.transitionsActive, timingFunction: "ease-in-out", time: 350 };
|
|
4275
4277
|
}, sizeRestrictions: function() {
|
|
4276
4278
|
if (this.boundaries.width && this.boundaries.height && this.imageSize.width && this.imageSize.height) {
|
|
4277
|
-
var e = this.sizeRestrictionsAlgorithm({ imageSize: this.imageSize, minWidth:
|
|
4279
|
+
var e = this.sizeRestrictionsAlgorithm({ imageSize: this.imageSize, minWidth: Fe(this.minWidth) ? 0 : fn(this.minWidth), minHeight: Fe(this.minHeight) ? 0 : fn(this.minHeight), maxWidth: Fe(this.maxWidth) ? 1 / 0 : fn(this.maxWidth), maxHeight: Fe(this.maxHeight) ? 1 / 0 : fn(this.maxHeight) });
|
|
4278
4280
|
if (e = function(i) {
|
|
4279
4281
|
var a = i.areaRestrictions, o = i.sizeRestrictions, r = i.boundaries, l = i.positionRestrictions, s = ae(ae({}, 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 });
|
|
4280
4282
|
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));
|
|
@@ -4374,11 +4376,11 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4374
4376
|
}(de(de({}, this.getPublicProperties()), {}, { positionRestrictions: hn(this.positionRestrictions, this.visibleArea), coordinates: e })) : e;
|
|
4375
4377
|
}, processAutoZoom: function(e, t, n, i) {
|
|
4376
4378
|
var a = this.autoZoomAlgorithm;
|
|
4377
|
-
a || (a = this.stencilSize ?
|
|
4379
|
+
a || (a = this.stencilSize ? Jl : this.autoZoom ? Zl : Ql);
|
|
4378
4380
|
var o = a({ event: { type: e, params: i }, visibleArea: t, coordinates: n, boundaries: this.boundaries, aspectRatio: this.getAspectRatio(), positionRestrictions: this.positionRestrictions, getAreaRestrictions: this.getAreaRestrictions, sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize() });
|
|
4379
4381
|
return de(de({}, o), {}, { changed: !ao(o.visibleArea, t) || !ao(o.coordinates, n) });
|
|
4380
4382
|
}, runAutoZoom: function(e) {
|
|
4381
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, i = n !== void 0 && n, a =
|
|
4383
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, i = n !== void 0 && n, a = zl(t, gu), o = this.processAutoZoom(e, this.visibleArea, this.coordinates, a), r = o.visibleArea, l = o.coordinates, s = o.changed;
|
|
4382
4384
|
i && s && this.enableTransitions(), this.visibleArea = r, this.coordinates = l, i && s && this.debouncedDisableTransitions();
|
|
4383
4385
|
}, normalizeEvent: function(e) {
|
|
4384
4386
|
return function(t) {
|
|
@@ -4392,7 +4394,7 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4392
4394
|
}
|
|
4393
4395
|
if (n.type === "move") {
|
|
4394
4396
|
var r = ae(ae({}, n), { directions: ae({}, n.directions) });
|
|
4395
|
-
return
|
|
4397
|
+
return Kl.forEach(function(l) {
|
|
4396
4398
|
r.directions[l] *= a;
|
|
4397
4399
|
}), r;
|
|
4398
4400
|
}
|
|
@@ -4426,17 +4428,17 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4426
4428
|
}, update: function() {
|
|
4427
4429
|
this.$emit("change", this.getResult());
|
|
4428
4430
|
}, applyTransform: function(e) {
|
|
4429
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = this.visibleArea && t ?
|
|
4430
|
-
return
|
|
4431
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = this.visibleArea && t ? Xl(this.sizeRestrictions, this.visibleArea) : this.sizeRestrictions, i = this.visibleArea && t ? hn(this.positionRestrictions, this.visibleArea) : this.positionRestrictions;
|
|
4432
|
+
return ql({ transform: e, coordinates: this.coordinates, imageSize: this.imageSize, sizeRestrictions: n, positionRestrictions: i, aspectRatio: this.getAspectRatio(), visibleArea: this.visibleArea });
|
|
4431
4433
|
}, resetCoordinates: function() {
|
|
4432
4434
|
var e = this;
|
|
4433
4435
|
if (this.$refs.image) {
|
|
4434
4436
|
this.$refs.cropper, this.$refs.image;
|
|
4435
4437
|
var t = this.defaultSize;
|
|
4436
|
-
t || (t = this.stencilSize ?
|
|
4438
|
+
t || (t = this.stencilSize ? nu : tu);
|
|
4437
4439
|
var n = this.sizeRestrictions;
|
|
4438
4440
|
n.minWidth, n.minHeight, n.maxWidth, n.maxHeight;
|
|
4439
|
-
var i = Vt(t) ? t({ boundaries: this.boundaries, imageSize: this.imageSize, aspectRatio: this.getAspectRatio(), sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize(), visibleArea: this.visibleArea }) : t, a = this.defaultPosition ||
|
|
4441
|
+
var i = Vt(t) ? t({ boundaries: this.boundaries, imageSize: this.imageSize, aspectRatio: this.getAspectRatio(), sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize(), visibleArea: this.visibleArea }) : t, a = this.defaultPosition || eu, o = [i, function(r) {
|
|
4440
4442
|
var l = r.coordinates;
|
|
4441
4443
|
return de({}, Vt(a) ? a({ coordinates: l, imageSize: e.imageSize, visibleArea: e.visibleArea }) : e.defaultPosition);
|
|
4442
4444
|
}];
|
|
@@ -4468,7 +4470,7 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4468
4470
|
var e = this;
|
|
4469
4471
|
return this.appliedImageTransforms = de(de({}, this.defaultImageTransforms), {}, { flip: de({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then(function() {
|
|
4470
4472
|
e.priority !== "visible-area" && (e.visibleArea = null, e.resetCoordinates());
|
|
4471
|
-
var t, n, i, a, o, r, l = e.defaultVisibleArea ||
|
|
4473
|
+
var t, n, i, a, o, r, l = e.defaultVisibleArea || iu;
|
|
4472
4474
|
e.visibleArea = Vt(l) ? l({ imageSize: e.imageSize, boundaries: e.boundaries, coordinates: e.priority !== "visible-area" ? e.coordinates : null, getAreaRestrictions: e.getAreaRestrictions, stencilSize: e.getStencilSize() }) : e.defaultVisibleArea, e.visibleArea = (t = { visibleArea: e.visibleArea, boundaries: e.boundaries, getAreaRestrictions: e.getAreaRestrictions }, n = t.visibleArea, i = t.boundaries, a = t.getAreaRestrictions, o = ae({}, n), r = me(i), o.width / o.height !== r && (o.height = o.width / r), Ue(o, a({ visibleArea: o, type: "move" }))), e.priority === "visible-area" ? e.resetCoordinates() : e.coordinates = e.fitCoordinates({ visibleArea: e.visibleArea, coordinates: e.coordinates, aspectRatio: e.getAspectRatio(), positionRestrictions: e.positionRestrictions, sizeRestrictions: e.sizeRestrictions }), e.runAutoZoom("resetVisibleArea");
|
|
4473
4475
|
}).catch(function() {
|
|
4474
4476
|
e.visibleArea = null;
|
|
@@ -4493,13 +4495,13 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4493
4495
|
};
|
|
4494
4496
|
return !(!l.protocol && !l.host && !l.port || l.protocol && l.protocol == o.protocol && l.host && l.host == o.host && l.host && s(l) == s(o));
|
|
4495
4497
|
}(this.src)) {
|
|
4496
|
-
var n =
|
|
4498
|
+
var n = Fe(this.crossOrigin) ? this.canvas : this.crossOrigin;
|
|
4497
4499
|
n === !0 && (n = "anonymous"), this.imageAttributes.crossOrigin = n || null;
|
|
4498
4500
|
}
|
|
4499
4501
|
if (this.checkOrientation) {
|
|
4500
4502
|
var i = (e = this.src, new Promise(function(a) {
|
|
4501
|
-
|
|
4502
|
-
var r =
|
|
4503
|
+
fu(e).then(function(o) {
|
|
4504
|
+
var r = hu(o);
|
|
4503
4505
|
a(o ? { source: e, arrayBuffer: o, orientation: r } : { source: e, arrayBuffer: null, orientation: null });
|
|
4504
4506
|
}).catch(function(o) {
|
|
4505
4507
|
console.warn(o), a({ source: e, arrayBuffer: null, orientation: null });
|
|
@@ -4578,7 +4580,7 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4578
4580
|
if (!this.transitionsOptions.enabled) {
|
|
4579
4581
|
var n = t.transitions, i = n !== void 0 && n, a = t.normalize, o = a === void 0 || a;
|
|
4580
4582
|
i && this.enableTransitions();
|
|
4581
|
-
var r =
|
|
4583
|
+
var r = ou(de(de({}, this.getPublicProperties()), {}, { event: o ? this.normalizeEvent(e) : e, getAreaRestrictions: this.getAreaRestrictions, imageRestriction: this.imageRestriction, adjustStencil: !this.stencilSize && this.settings.resizeImage.adjustStencil })), l = r.visibleArea, s = r.coordinates;
|
|
4582
4584
|
this.visibleArea = l, this.coordinates = s, this.runAutoZoom("manipulateImage"), this.onChange(), i && this.debouncedDisableTransitions();
|
|
4583
4585
|
}
|
|
4584
4586
|
}, onPropsChange: function() {
|
|
@@ -4592,9 +4594,9 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4592
4594
|
var l = this.$refs.stencil.aspectRatios();
|
|
4593
4595
|
t = l.minimum, n = l.maximum;
|
|
4594
4596
|
}
|
|
4595
|
-
if (
|
|
4597
|
+
if (Fe(t) && (t = Fe(a) ? o : a), Fe(n) && (n = Fe(a) ? r : a), !e && (Fe(t) || Fe(n))) {
|
|
4596
4598
|
var s = this.getStencilSize(), u = s ? me(s) : null;
|
|
4597
|
-
|
|
4599
|
+
Fe(t) && (t = io(u) ? u : void 0), Fe(n) && (n = io(u) ? u : void 0);
|
|
4598
4600
|
}
|
|
4599
4601
|
return { minimum: t, maximum: n };
|
|
4600
4602
|
}, getStencilSize: function() {
|
|
@@ -4608,7 +4610,7 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4608
4610
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.transitions, a = i === void 0 || i;
|
|
4609
4611
|
if (!this.transitionsActive) {
|
|
4610
4612
|
a && this.enableTransitions();
|
|
4611
|
-
var o = de({}, this.imageTransforms.flip), r =
|
|
4613
|
+
var o = de({}, this.imageTransforms.flip), r = ru({ flip: { horizontal: e ? !o.horizontal : o.horizontal, vertical: t ? !o.vertical : o.vertical }, previousFlip: o, rotate: this.imageTransforms.rotate, visibleArea: this.visibleArea, coordinates: this.coordinates, imageSize: this.imageSize, positionRestrictions: this.positionRestrictions, sizeRestrictions: this.sizeRestrictions, getAreaRestrictions: this.getAreaRestrictions, aspectRatio: this.getAspectRatio() }), l = r.visibleArea, s = r.coordinates;
|
|
4612
4614
|
e && (this.appliedImageTransforms.flip.horizontal = !this.appliedImageTransforms.flip.horizontal), t && (this.appliedImageTransforms.flip.vertical = !this.appliedImageTransforms.flip.vertical), this.visibleArea = l, this.coordinates = s, this.onChange(), a && this.debouncedDisableTransitions();
|
|
4613
4615
|
}
|
|
4614
4616
|
}, rotate: function(e) {
|
|
@@ -4617,17 +4619,17 @@ var hu = ["transitions"], pt = et("vue-advanced-cropper"), ra = { name: "Cropper
|
|
|
4617
4619
|
i && this.enableTransitions();
|
|
4618
4620
|
var a = de({}, this.imageSize);
|
|
4619
4621
|
this.appliedImageTransforms.rotate += e;
|
|
4620
|
-
var o =
|
|
4622
|
+
var o = au({ visibleArea: this.visibleArea, coordinates: this.coordinates, previousImageSize: a, imageSize: this.imageSize, angle: e, positionRestrictions: this.positionRestrictions, sizeRestrictions: this.sizeRestrictions, getAreaRestrictions: this.getAreaRestrictions, aspectRatio: this.getAspectRatio() }), r = o.visibleArea, l = o.coordinates, s = this.processAutoZoom("rotateImage", r, l);
|
|
4621
4623
|
r = s.visibleArea, l = s.coordinates, this.visibleArea = r, this.coordinates = l, this.onChange(), i && this.debouncedDisableTransitions();
|
|
4622
4624
|
}
|
|
4623
|
-
} }, emits: ["change", "error", "ready"] },
|
|
4625
|
+
} }, emits: ["change", "error", "ready"] }, vu = { key: 0, ref: "canvas", style: { display: "none" } }, _u = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
|
|
4624
4626
|
ra.render = function(e, t, n, i, a, o) {
|
|
4625
4627
|
return U(), J("div", { ref: "cropper", class: o.classes.cropper }, [R("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), R("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(U(), J(wn(n.backgroundWrapperComponent), { class: o.classes.cropperWrapper, "wheel-resize": o.settings.resizeImage.wheel, "touch-resize": o.settings.resizeImage.touch, "touch-move": o.settings.moveImage.touch, "mouse-move": o.settings.moveImage.mouse, onMove: o.onManipulateImage, onResize: o.onManipulateImage }, { default: W(function() {
|
|
4626
4628
|
return [R("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), R("div", { class: o.classes.imageWrapper }, [R("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: t[1] || (t[1] = On(function() {
|
|
4627
|
-
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), R("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), Xt((U(), J(wn(n.stencilComponent), po({ ref: "stencil", image: o.image, coordinates: a.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, n.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[kn, a.imageLoaded]]), n.canvas ? (U(), J("canvas",
|
|
4629
|
+
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), R("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), Xt((U(), J(wn(n.stencilComponent), po({ ref: "stencil", image: o.image, coordinates: a.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, n.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[kn, a.imageLoaded]]), n.canvas ? (U(), J("canvas", vu, null, 512)) : se("", !0), n.canvas ? (U(), J("canvas", _u, null, 512)) : se("", !0)];
|
|
4628
4630
|
}), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
|
|
4629
4631
|
};
|
|
4630
|
-
function
|
|
4632
|
+
function bu(e, t) {
|
|
4631
4633
|
const i = 2e3 / e;
|
|
4632
4634
|
return {
|
|
4633
4635
|
ratio: i,
|
|
@@ -4635,29 +4637,29 @@ function _u(e, t) {
|
|
|
4635
4637
|
height: t * i
|
|
4636
4638
|
};
|
|
4637
4639
|
}
|
|
4638
|
-
function
|
|
4640
|
+
function yu(e, t) {
|
|
4639
4641
|
const { width: n, height: i } = e, a = n / i;
|
|
4640
4642
|
let o = n, r = i;
|
|
4641
4643
|
a > t ? r = o / t : o = r * t;
|
|
4642
|
-
const l =
|
|
4644
|
+
const l = bu(o, r), s = document.createElement("canvas");
|
|
4643
4645
|
s.width = l.width, s.height = l.height;
|
|
4644
4646
|
const u = o > n ? (o - n) / 2 * l.ratio : 0, m = r > i ? (r - i) / 2 * l.ratio : 0, d = s.getContext("2d");
|
|
4645
4647
|
return d ? (d.fillStyle = "white", d.fillRect(0, 0, l.width, l.height), d.drawImage(e, u, m, n * l.ratio, i * l.ratio), s.toDataURL()) : (console.error("Could not get 2D context from canvas"), "");
|
|
4646
4648
|
}
|
|
4647
|
-
const
|
|
4649
|
+
const wu = {
|
|
4648
4650
|
key: 0,
|
|
4649
4651
|
class: "space-y-4"
|
|
4650
|
-
},
|
|
4652
|
+
}, Eu = { class: "fm-typo-en-body-lg-600" }, Su = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ku = {
|
|
4651
4653
|
class: /* @__PURE__ */ Ke([
|
|
4652
4654
|
"relative",
|
|
4653
4655
|
"h-[150px] w-[200px]",
|
|
4654
4656
|
"border-2 border-dashed border-fm-color-neutral-gray-300 rounded-md"
|
|
4655
4657
|
])
|
|
4656
|
-
}, ku = {
|
|
4657
|
-
class: /* @__PURE__ */ Ke(["absolute inset-0", "h-full w-full", "rounded-md overflow-hidden"])
|
|
4658
4658
|
}, Ou = {
|
|
4659
|
+
class: /* @__PURE__ */ Ke(["absolute inset-0", "h-full w-full", "rounded-md overflow-hidden"])
|
|
4660
|
+
}, Ru = {
|
|
4659
4661
|
class: /* @__PURE__ */ Ke(["relative z-0", "w-full h-full", "overflow-hidden"])
|
|
4660
|
-
},
|
|
4662
|
+
}, Cu = { class: "fm-typo-en-body-lg-600 pb-4" }, Au = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Iu = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Tu = /* @__PURE__ */ ge({
|
|
4661
4663
|
__name: "ImageDropField",
|
|
4662
4664
|
props: {
|
|
4663
4665
|
modelValue: {}
|
|
@@ -4672,7 +4674,7 @@ const yu = {
|
|
|
4672
4674
|
p.onload = () => {
|
|
4673
4675
|
const E = new Image();
|
|
4674
4676
|
E.src = p.result, E.onload = () => {
|
|
4675
|
-
const _ =
|
|
4677
|
+
const _ = yu(E, 1.7777777777777777);
|
|
4676
4678
|
r.value = _, l.value = !1;
|
|
4677
4679
|
}, E.onerror = () => {
|
|
4678
4680
|
l.value = !1;
|
|
@@ -4692,14 +4694,14 @@ const yu = {
|
|
|
4692
4694
|
}
|
|
4693
4695
|
return (c, p) => {
|
|
4694
4696
|
const E = K("fm-icon"), _ = K("fm-drop-field");
|
|
4695
|
-
return r.value || o.value ? (U(), re("div",
|
|
4696
|
-
B("p",
|
|
4697
|
+
return r.value || o.value ? (U(), re("div", wu, [
|
|
4698
|
+
B("p", Eu, [
|
|
4697
4699
|
Bn(Ee(b(i)("menu.common.labels.product_image")) + " ", 1),
|
|
4698
|
-
B("span",
|
|
4700
|
+
B("span", Su, Ee(b(i)("menu.common.labels.optional")), 1)
|
|
4699
4701
|
]),
|
|
4700
|
-
B("div",
|
|
4701
|
-
B("div",
|
|
4702
|
-
B("div",
|
|
4702
|
+
B("div", ku, [
|
|
4703
|
+
B("div", Ou, [
|
|
4704
|
+
B("div", Ru, [
|
|
4703
4705
|
R(b(ra), {
|
|
4704
4706
|
class: "cropper h-[150px] w-[200px]",
|
|
4705
4707
|
src: r.value || o.value,
|
|
@@ -4736,13 +4738,13 @@ const yu = {
|
|
|
4736
4738
|
onFileUpload: u
|
|
4737
4739
|
}, {
|
|
4738
4740
|
label: W(() => [
|
|
4739
|
-
B("p",
|
|
4741
|
+
B("p", Cu, [
|
|
4740
4742
|
Bn(Ee(b(i)("menu.common.labels.product_image")) + " ", 1),
|
|
4741
|
-
B("span",
|
|
4743
|
+
B("span", Au, Ee(b(i)("menu.common.labels.optional")), 1)
|
|
4742
4744
|
])
|
|
4743
4745
|
]),
|
|
4744
4746
|
"accept-text": W(() => [
|
|
4745
|
-
B("p",
|
|
4747
|
+
B("p", Iu, Ee(b(i)("menu.common.file.accepts")), 1)
|
|
4746
4748
|
]),
|
|
4747
4749
|
_: 1
|
|
4748
4750
|
}));
|
|
@@ -4840,14 +4842,14 @@ const yu = {
|
|
|
4840
4842
|
]);
|
|
4841
4843
|
};
|
|
4842
4844
|
}
|
|
4843
|
-
}),
|
|
4845
|
+
}), Mu = {
|
|
4844
4846
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4845
4847
|
width: "24",
|
|
4846
4848
|
height: "24",
|
|
4847
4849
|
fill: "none"
|
|
4848
4850
|
};
|
|
4849
|
-
function
|
|
4850
|
-
return U(), re("svg",
|
|
4851
|
+
function Fu(e, t) {
|
|
4852
|
+
return U(), re("svg", Mu, t[0] || (t[0] = [
|
|
4851
4853
|
B("path", {
|
|
4852
4854
|
fill: "#1C1C1E",
|
|
4853
4855
|
d: "M7.6 7.6c.57-.658.9-2.1.9-2.1s.314 1.374.857 2c.572.66 2.143 1 2.143 1s-1.57.198-2.143.857C8.814 9.984 8.5 11.5 8.5 11.5s-.18-1.311-.75-1.91C7.149 8.962 5.5 8.5 5.5 8.5s1.5-.207 2.1-.9M12.2 12.2C13.342 10.885 14 8 14 8s.627 2.747 1.714 4C16.86 13.32 20 14 20 14s-3.141.395-4.286 1.714C14.627 16.967 14 20 14 20s-.358-2.622-1.5-3.818C11.298 14.922 8 14 8 14s2.998-.415 4.2-1.8"
|
|
@@ -4861,14 +4863,14 @@ function Mu(e, t) {
|
|
|
4861
4863
|
}, null, -1)
|
|
4862
4864
|
]));
|
|
4863
4865
|
}
|
|
4864
|
-
const Du = { render:
|
|
4866
|
+
const Du = { render: Fu }, Nu = {
|
|
4865
4867
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4866
4868
|
width: "24",
|
|
4867
4869
|
height: "24",
|
|
4868
4870
|
fill: "none"
|
|
4869
4871
|
};
|
|
4870
|
-
function
|
|
4871
|
-
return U(), re("svg",
|
|
4872
|
+
function Pu(e, t) {
|
|
4873
|
+
return U(), re("svg", Nu, t[0] || (t[0] = [
|
|
4872
4874
|
B("g", {
|
|
4873
4875
|
stroke: "#1C1C1E",
|
|
4874
4876
|
"stroke-linecap": "round",
|
|
@@ -4879,7 +4881,7 @@ function Nu(e, t) {
|
|
|
4879
4881
|
], -1)
|
|
4880
4882
|
]));
|
|
4881
4883
|
}
|
|
4882
|
-
const
|
|
4884
|
+
const Lu = { render: Pu }, sa = /* @__PURE__ */ ge({
|
|
4883
4885
|
__name: "RemyButton",
|
|
4884
4886
|
props: {
|
|
4885
4887
|
onClick: { type: Function },
|
|
@@ -4895,14 +4897,14 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
4895
4897
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
4896
4898
|
(...a) => t.onClick && t.onClick(...a))
|
|
4897
4899
|
}, [
|
|
4898
|
-
b(We).isDialogOpened.value ? (U(), J(b(Du), { key: 1 })) : (U(), J(b(
|
|
4900
|
+
b(We).isDialogOpened.value ? (U(), J(b(Du), { key: 1 })) : (U(), J(b(Lu), { key: 0 }))
|
|
4899
4901
|
], 2)) : se("", !0);
|
|
4900
4902
|
};
|
|
4901
4903
|
}
|
|
4902
|
-
}),
|
|
4904
|
+
}), xu = { class: "flex flex-col gap-4" }, Uu = { class: "fm-select__menu__wrapper" }, Vu = { class: "fm-typo-en-body-lg-600 text-fm-color-primary" }, zu = {
|
|
4903
4905
|
key: 0,
|
|
4904
4906
|
class: "flex flex-col gap-4 justify-center"
|
|
4905
|
-
},
|
|
4907
|
+
}, $u = /* @__PURE__ */ ge({
|
|
4906
4908
|
__name: "SubcategorySelector",
|
|
4907
4909
|
props: {
|
|
4908
4910
|
modelValue: {},
|
|
@@ -4916,7 +4918,7 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
4916
4918
|
},
|
|
4917
4919
|
emits: ["update:modelValue"],
|
|
4918
4920
|
setup(e, { emit: t }) {
|
|
4919
|
-
const n = e, i = t, a = lt(), o = Qe(), r = kt(o), l = Ot(r), { t: s } = ln(), u = oe(null), m = oe([]), d =
|
|
4921
|
+
const n = e, i = t, a = lt(), o = Qe(), r = kt(o), l = Ot(r), { t: s } = ln(), u = oe(null), m = oe([]), d = Ha({
|
|
4920
4922
|
dialog: a,
|
|
4921
4923
|
menuLoader: l,
|
|
4922
4924
|
isLocalOnly: n.isLocalOnly
|
|
@@ -4945,7 +4947,7 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
4945
4947
|
{ immediate: !0 }
|
|
4946
4948
|
), (h, k) => {
|
|
4947
4949
|
const O = K("FmIcon"), A = K("FmField"), T = K("FmMenuItem"), y = K("FmMenu"), x = K("FmFormGroup"), S = K("FmChipGroup");
|
|
4948
|
-
return U(), re("div",
|
|
4950
|
+
return U(), re("div", xu, [
|
|
4949
4951
|
R(x, {
|
|
4950
4952
|
"model-value": h.modelValue,
|
|
4951
4953
|
disabled: h.disabled,
|
|
@@ -4986,7 +4988,7 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
4986
4988
|
}, 1032, ["class", "focused", "invalid"])
|
|
4987
4989
|
]),
|
|
4988
4990
|
default: W(() => [
|
|
4989
|
-
B("div",
|
|
4991
|
+
B("div", Uu, [
|
|
4990
4992
|
(U(!0), re(Ve, null, rt(h.items, (N) => (U(), J(T, {
|
|
4991
4993
|
key: N.value,
|
|
4992
4994
|
disabled: N.disabled,
|
|
@@ -5005,7 +5007,7 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
5005
5007
|
name: "add",
|
|
5006
5008
|
size: "md"
|
|
5007
5009
|
}),
|
|
5008
|
-
B("p",
|
|
5010
|
+
B("p", Vu, Ee(b(s)("menu.product.form.detail.subcategory.add_new")), 1)
|
|
5009
5011
|
])
|
|
5010
5012
|
])
|
|
5011
5013
|
]),
|
|
@@ -5014,7 +5016,7 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
5014
5016
|
]),
|
|
5015
5017
|
_: 1
|
|
5016
5018
|
}, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
|
|
5017
|
-
m.value.length > 0 ? (U(), re("div",
|
|
5019
|
+
m.value.length > 0 ? (U(), re("div", zu, [
|
|
5018
5020
|
R(S, {
|
|
5019
5021
|
disabled: h.disabled,
|
|
5020
5022
|
items: m.value.map((I) => ({ label: I.label })),
|
|
@@ -5025,40 +5027,40 @@ const Pu = { render: Nu }, sa = /* @__PURE__ */ ge({
|
|
|
5025
5027
|
]);
|
|
5026
5028
|
};
|
|
5027
5029
|
}
|
|
5028
|
-
}),
|
|
5030
|
+
}), Gu = /* @__PURE__ */ Ct($u, [["__scopeId", "data-v-ca5e943c"]]);
|
|
5029
5031
|
function la(e, t) {
|
|
5030
5032
|
return e || (t ? void 0 : "");
|
|
5031
5033
|
}
|
|
5032
|
-
const
|
|
5034
|
+
const Bu = {
|
|
5033
5035
|
class: "flex flex-row xs:flex-col gap-24"
|
|
5034
|
-
}, Bu = {
|
|
5035
|
-
class: "flex-1 flex flex-col gap-24"
|
|
5036
5036
|
}, Wu = {
|
|
5037
|
-
class:
|
|
5037
|
+
class: "flex-1 flex flex-col gap-24"
|
|
5038
5038
|
}, Hu = {
|
|
5039
|
-
class: "
|
|
5039
|
+
class: /* @__PURE__ */ Ke(["flex space-x-16", "xs:flex-col xs:space-x-0 xs:space-y-16"])
|
|
5040
5040
|
}, ju = {
|
|
5041
|
-
class: "
|
|
5041
|
+
class: "w-[160px] xs:w-full"
|
|
5042
5042
|
}, Ku = {
|
|
5043
|
-
class: "
|
|
5043
|
+
class: "flex-1"
|
|
5044
5044
|
}, Yu = {
|
|
5045
|
-
class: "
|
|
5045
|
+
class: "relative"
|
|
5046
5046
|
}, Xu = {
|
|
5047
|
-
class: "fm-typo-en-body-
|
|
5047
|
+
class: "fm-typo-en-body-lg-600"
|
|
5048
5048
|
}, qu = {
|
|
5049
|
-
class: "
|
|
5049
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary"
|
|
5050
5050
|
}, Ju = {
|
|
5051
|
-
class: "
|
|
5051
|
+
class: "flex flex-col gap-16"
|
|
5052
5052
|
}, Zu = {
|
|
5053
|
+
class: "space-y-8"
|
|
5054
|
+
}, Qu = {
|
|
5053
5055
|
key: 0,
|
|
5054
5056
|
class: "flex items-center gap-8"
|
|
5055
|
-
},
|
|
5057
|
+
}, ec = {
|
|
5056
5058
|
class: "flex flex-col gap-16"
|
|
5057
5059
|
};
|
|
5058
5060
|
var Mt = /* @__PURE__ */ function(e) {
|
|
5059
5061
|
return e.ADD_ON = "ADD_ON", e.PRODUCT = "PRODUCT", e;
|
|
5060
5062
|
}(Mt || {});
|
|
5061
|
-
const
|
|
5063
|
+
const tc = /* @__PURE__ */ ge({
|
|
5062
5064
|
__name: "ProductDetail",
|
|
5063
5065
|
props: {
|
|
5064
5066
|
isOverride: {
|
|
@@ -5078,23 +5080,23 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5078
5080
|
setup(e, {
|
|
5079
5081
|
emit: t
|
|
5080
5082
|
}) {
|
|
5081
|
-
const n = e, i = Me(), a = rn(), o = lt(), r = Qe(), l = kt(r), s = Ot(l), u =
|
|
5083
|
+
const n = e, i = Me(), a = rn(), o = lt(), r = Qe(), l = kt(r), s = Ot(l), u = qa({
|
|
5082
5084
|
dialog: o,
|
|
5083
5085
|
menuLoader: s
|
|
5084
5086
|
}), {
|
|
5085
5087
|
checkMenuIsLoading: m
|
|
5086
5088
|
} = Ot(kt(Qe())), d = t, c = V(() => i.rules.item), p = V(() => i.categorizedItems), E = V(() => {
|
|
5087
|
-
const
|
|
5089
|
+
const F = p.value.map((C) => ({
|
|
5088
5090
|
label: C.name,
|
|
5089
5091
|
value: C.id
|
|
5090
5092
|
}));
|
|
5091
|
-
return n.isAddon ?
|
|
5092
|
-
}), _ = V(() => c.value.addon), w = V(() => !E.value.find((
|
|
5093
|
+
return n.isAddon ? F : F.filter((C) => !!C.value);
|
|
5094
|
+
}), _ = V(() => c.value.addon), w = V(() => !E.value.find((F) => !!F.value)), v = V(() => Fa(n.form.category ? n.form : n.fallback) || []), h = V(() => v.value.reduce((F, C) => (F[C._id] = C, F), {})), k = V({
|
|
5093
5095
|
get() {
|
|
5094
|
-
return v.value.map((
|
|
5096
|
+
return v.value.map((F) => F._id);
|
|
5095
5097
|
},
|
|
5096
|
-
set(
|
|
5097
|
-
const [C, ...$] =
|
|
5098
|
+
set(F = []) {
|
|
5099
|
+
const [C, ...$] = F.map((le) => {
|
|
5098
5100
|
const ce = h.value[le];
|
|
5099
5101
|
return ce || {
|
|
5100
5102
|
_id: le,
|
|
@@ -5107,22 +5109,22 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5107
5109
|
}
|
|
5108
5110
|
d("update:form", "category", C._id), d("update:form", "additionalCategories", $);
|
|
5109
5111
|
}
|
|
5110
|
-
}), O = oe(), A = () => n.isAddon ? null : R(
|
|
5112
|
+
}), O = oe(), A = () => n.isAddon ? null : R(Vl, {
|
|
5111
5113
|
ref: O,
|
|
5112
5114
|
disabled: !c.value.category || n.isAddon || m(),
|
|
5113
5115
|
items: E.value,
|
|
5114
5116
|
modelValue: k.value,
|
|
5115
|
-
"onUpdate:model-value": (
|
|
5117
|
+
"onUpdate:model-value": (F) => k.value = F,
|
|
5116
5118
|
placeholder: z("menu.product.form.detail.category.placeholder")
|
|
5117
5119
|
}, {
|
|
5118
5120
|
"append-menu": () => R("button", {
|
|
5119
5121
|
class: "flex items-center py-8 px-16 space-x-8",
|
|
5120
5122
|
type: "button",
|
|
5121
5123
|
onClick: () => {
|
|
5122
|
-
var
|
|
5123
|
-
(
|
|
5124
|
+
var F;
|
|
5125
|
+
(F = O.value) == null || F.hideMenu(), u.create();
|
|
5124
5126
|
}
|
|
5125
|
-
}, [R(
|
|
5127
|
+
}, [R(Ge.FmIcon, {
|
|
5126
5128
|
color: "primary",
|
|
5127
5129
|
name: "add",
|
|
5128
5130
|
size: "md"
|
|
@@ -5135,18 +5137,18 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5135
5137
|
});
|
|
5136
5138
|
const T = V(() => {
|
|
5137
5139
|
var C;
|
|
5138
|
-
const
|
|
5139
|
-
return
|
|
5140
|
+
const F = n.form.name || ((C = n.fallback) == null ? void 0 : C.name);
|
|
5141
|
+
return F ? i.items.filter(($) => !!$.category && $._id !== n.form._id && $.name === F).length : 0;
|
|
5140
5142
|
}), y = V(() => n.isAddon ? Mt.ADD_ON : Mt.PRODUCT);
|
|
5141
|
-
function x(
|
|
5143
|
+
function x(F) {
|
|
5142
5144
|
var $, le, ce;
|
|
5143
|
-
if (y.value ===
|
|
5144
|
-
const C =
|
|
5145
|
+
if (y.value === F) return;
|
|
5146
|
+
const C = F == Mt.ADD_ON;
|
|
5145
5147
|
d("update:form", "category", n.isOverride ? C ? "" : (($ = n.fallback) == null ? void 0 : $.category) ?? ((le = E.value.find((we) => !!we.value)) == null ? void 0 : le.value) : C ? null : (ce = E.value.find((we) => !!we.value)) == null ? void 0 : ce.value), C && d("update:form", "additionalCategories", []);
|
|
5146
5148
|
}
|
|
5147
5149
|
const S = oe(!1);
|
|
5148
5150
|
async function I() {
|
|
5149
|
-
var
|
|
5151
|
+
var F, C;
|
|
5150
5152
|
if (!n.form.name) {
|
|
5151
5153
|
const $ = document.getElementById("product-name");
|
|
5152
5154
|
if ($) {
|
|
@@ -5160,7 +5162,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5160
5162
|
S.value = !0, a.pushDataLayer({
|
|
5161
5163
|
event: "menu_catalog_item_general_remy_suggest_description"
|
|
5162
5164
|
}), We.toggleDialog(!0);
|
|
5163
|
-
const $ = await ((
|
|
5165
|
+
const $ = await ((F = We.getItemDescription) == null ? void 0 : F.call(We, {
|
|
5164
5166
|
name: n.form.name || ""
|
|
5165
5167
|
}, !0)), le = (C = $ == null ? void 0 : $.data) == null ? void 0 : C.value;
|
|
5166
5168
|
typeof le == "string" && d("update:form", "description", le);
|
|
@@ -5168,59 +5170,59 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5168
5170
|
S.value = !1;
|
|
5169
5171
|
}
|
|
5170
5172
|
}
|
|
5171
|
-
const N = V(() => i.subcategories), M = V(() => N.value.map((
|
|
5172
|
-
label:
|
|
5173
|
-
value:
|
|
5173
|
+
const N = V(() => i.subcategories), M = V(() => N.value.map((F) => ({
|
|
5174
|
+
label: F.name,
|
|
5175
|
+
value: F._id
|
|
5174
5176
|
}))), P = V({
|
|
5175
5177
|
get() {
|
|
5176
5178
|
return n.form.subCategories || [];
|
|
5177
5179
|
},
|
|
5178
|
-
set(
|
|
5179
|
-
d("update:form", "subCategories",
|
|
5180
|
+
set(F) {
|
|
5181
|
+
d("update:form", "subCategories", F);
|
|
5180
5182
|
}
|
|
5181
5183
|
}), {
|
|
5182
5184
|
t: z
|
|
5183
5185
|
} = ke();
|
|
5184
|
-
return (
|
|
5186
|
+
return (F, C) => {
|
|
5185
5187
|
const $ = K("fm-text-field"), le = K("fm-textarea"), ce = K("fm-radio"), we = K("FmSnackbar"), G = K("FmButton"), j = K("fm-radio-group"), Z = K("FmFormGroup"), ne = fo("tooltip");
|
|
5186
5188
|
return U(), J(ut, {
|
|
5187
5189
|
title: b(z)("menu.product.form.detail.title")
|
|
5188
5190
|
}, {
|
|
5189
5191
|
default: W(() => {
|
|
5190
5192
|
var ie, ee;
|
|
5191
|
-
return [B("div",
|
|
5192
|
-
"model-value":
|
|
5193
|
-
placeholder: ((ie =
|
|
5193
|
+
return [B("div", Bu, [B("div", Wu, [B("div", Hu, [B("div", ju, [R($, {
|
|
5194
|
+
"model-value": F.form.code,
|
|
5195
|
+
placeholder: ((ie = F.fallback) == null ? void 0 : ie.code) || b(z)("menu.product.form.detail.fields.code.placeholder"),
|
|
5194
5196
|
label: b(z)("menu.product.form.detail.fields.code.label"),
|
|
5195
|
-
"onUpdate:modelValue": C[0] || (C[0] = (Q) => d("update:form", "code", b(la)(Q,
|
|
5196
|
-
}, null, 8, ["model-value", "placeholder", "label"])]), B("div",
|
|
5197
|
+
"onUpdate:modelValue": C[0] || (C[0] = (Q) => d("update:form", "code", b(la)(Q, F.isOverride)))
|
|
5198
|
+
}, null, 8, ["model-value", "placeholder", "label"])]), B("div", Ku, [R($, {
|
|
5197
5199
|
id: "product-name",
|
|
5198
5200
|
disabled: !c.value.name,
|
|
5199
5201
|
"helper-text": T.value > 0 ? b(z)("menu.product.form.detail.fields.name.duplicate_warning", {
|
|
5200
5202
|
count: T.value
|
|
5201
5203
|
}) : void 0,
|
|
5202
|
-
"model-value":
|
|
5203
|
-
placeholder: (ee =
|
|
5204
|
+
"model-value": F.form.name,
|
|
5205
|
+
placeholder: (ee = F.fallback) == null ? void 0 : ee.name,
|
|
5204
5206
|
rules: c.value.name ? [(Q) => !!Q || b(z)("menu.product.form.detail.fields.name.required")] : void 0,
|
|
5205
5207
|
"label-mark": "required",
|
|
5206
5208
|
autofocus: "",
|
|
5207
5209
|
label: b(z)("menu.product.form.detail.fields.name.label"),
|
|
5208
5210
|
"onUpdate:modelValue": C[1] || (C[1] = (Q) => d("update:form", "name", Q))
|
|
5209
|
-
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div",
|
|
5211
|
+
}, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Yu, [R(le, {
|
|
5210
5212
|
disabled: !c.value.description,
|
|
5211
|
-
"model-value":
|
|
5213
|
+
"model-value": F.form.description || void 0,
|
|
5212
5214
|
placeholder: b(z)("menu.product.form.detail.fields.description.placeholder"),
|
|
5213
5215
|
"onUpdate:modelValue": C[2] || (C[2] = (Q) => d("update:form", "description", Q.trim())),
|
|
5214
5216
|
class: "description"
|
|
5215
5217
|
}, {
|
|
5216
|
-
label: W(() => [B("p",
|
|
5218
|
+
label: W(() => [B("p", Xu, [Bn(Ee(b(z)("menu.product.form.detail.fields.description.label")) + " ", 1), B("span", qu, Ee(b(z)("menu.product.form.detail.fields.description.optional")), 1)])]),
|
|
5217
5219
|
_: 1
|
|
5218
5220
|
}, 8, ["disabled", "model-value", "placeholder"]), Xt(R(sa, {
|
|
5219
5221
|
class: "absolute top-32 right-4 cursor-pointer",
|
|
5220
5222
|
onClick: I
|
|
5221
|
-
}, null, 512), [[ne, b(yo)("Suggest description")]])])]), R(
|
|
5223
|
+
}, null, 512), [[ne, b(yo)("Suggest description")]])])]), R(Tu, {
|
|
5222
5224
|
disabled: !c.value.thumbnail,
|
|
5223
|
-
"model-value":
|
|
5225
|
+
"model-value": F.thumbnail,
|
|
5224
5226
|
"onUpdate:modelValue": C[3] || (C[3] = (Q) => d("update:thumbnail", Q)),
|
|
5225
5227
|
"onReset:modelValue": C[4] || (C[4] = (Q) => d("reset:thumbnail"))
|
|
5226
5228
|
}, null, 8, ["disabled", "model-value"])]), R(bt, {
|
|
@@ -5232,17 +5234,17 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5232
5234
|
"model-value": y.value,
|
|
5233
5235
|
"onUpdate:modelValue": C[5] || (C[5] = (Q) => x(Q))
|
|
5234
5236
|
}, {
|
|
5235
|
-
default: W(() => [B("div",
|
|
5237
|
+
default: W(() => [B("div", Ju, [B("div", Zu, [R(ce, {
|
|
5236
5238
|
disabled: w.value || !c.value.category,
|
|
5237
5239
|
value: Mt.PRODUCT,
|
|
5238
5240
|
label: b(z)("menu.product.form.detail.category.options.product.label"),
|
|
5239
5241
|
sublabel: b(z)("menu.product.form.detail.category.options.product.sublabel")
|
|
5240
|
-
}, null, 8, ["disabled", "value", "label", "sublabel"]), R(
|
|
5242
|
+
}, null, 8, ["disabled", "value", "label", "sublabel"]), R(Nr, null, {
|
|
5241
5243
|
default: W(() => [b(i).isV4 ? (U(), J(A, {
|
|
5242
5244
|
key: 0
|
|
5243
5245
|
})) : se("", !0)]),
|
|
5244
5246
|
_: 1
|
|
5245
|
-
})]), w.value ? (U(), re("div",
|
|
5247
|
+
})]), w.value ? (U(), re("div", Qu, [R(we, {
|
|
5246
5248
|
title: b(z)("menu.product.form.detail.category.add_first"),
|
|
5247
5249
|
variant: "info"
|
|
5248
5250
|
}, null, 8, ["title"]), R(G, {
|
|
@@ -5258,19 +5260,19 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5258
5260
|
_: 1
|
|
5259
5261
|
}, 8, ["disabled", "model-value"])) : se("", !0), b(i).isV4 ? se("", !0) : (U(), J(Z, {
|
|
5260
5262
|
key: 1,
|
|
5261
|
-
"model-value":
|
|
5262
|
-
rules: [(Q) => !Q && !
|
|
5263
|
+
"model-value": F.form.category,
|
|
5264
|
+
rules: [(Q) => !Q && !F.isOverride ? "Category is required" : !0],
|
|
5263
5265
|
"onUpdate:modelValue": C[6] || (C[6] = (Q) => d("update:form", "category", Q))
|
|
5264
5266
|
}, {
|
|
5265
5267
|
default: W(() => [R(A)]),
|
|
5266
5268
|
_: 1
|
|
5267
5269
|
}, 8, ["model-value", "rules"]))]),
|
|
5268
5270
|
_: 1
|
|
5269
|
-
}, 8, ["label"]), b(i).isV4 && !
|
|
5271
|
+
}, 8, ["label"]), b(i).isV4 && !F.isAddon ? (U(), J(bt, {
|
|
5270
5272
|
key: 0,
|
|
5271
5273
|
label: b(z)("menu.product.form.detail.path.label")
|
|
5272
5274
|
}, {
|
|
5273
|
-
default: W(() => [B("div",
|
|
5275
|
+
default: W(() => [B("div", ec, [R(Gu, {
|
|
5274
5276
|
modelValue: P.value,
|
|
5275
5277
|
"onUpdate:modelValue": C[7] || (C[7] = (Q) => P.value = Q),
|
|
5276
5278
|
items: M.value,
|
|
@@ -5281,7 +5283,7 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5281
5283
|
_: 1
|
|
5282
5284
|
}, 8, ["label"])) : se("", !0), R(Ei, {
|
|
5283
5285
|
disabled: !c.value.orderFrom,
|
|
5284
|
-
"model-value":
|
|
5286
|
+
"model-value": F.form.orderFrom,
|
|
5285
5287
|
"order-from-none": c.value.orderFromNone,
|
|
5286
5288
|
required: c.value.orderFrom,
|
|
5287
5289
|
"default-label": b(z)("menu.product.form.detail.order_from.default"),
|
|
@@ -5293,15 +5295,15 @@ const ec = /* @__PURE__ */ ge({
|
|
|
5293
5295
|
}, 8, ["title"]);
|
|
5294
5296
|
};
|
|
5295
5297
|
}
|
|
5296
|
-
}),
|
|
5297
|
-
function
|
|
5298
|
-
return U(), re("div",
|
|
5299
|
-
B("div",
|
|
5298
|
+
}), nc = /* @__PURE__ */ Ct(tc, [["__scopeId", "data-v-3cc5dda7"]]), ic = {}, oc = { class: "overflow-x-auto" }, ac = { class: "xs:w-[600px]" };
|
|
5299
|
+
function rc(e, t) {
|
|
5300
|
+
return U(), re("div", oc, [
|
|
5301
|
+
B("div", ac, [
|
|
5300
5302
|
Ce(e.$slots, "default")
|
|
5301
5303
|
])
|
|
5302
5304
|
]);
|
|
5303
5305
|
}
|
|
5304
|
-
const ua = /* @__PURE__ */ Ct(
|
|
5306
|
+
const ua = /* @__PURE__ */ Ct(ic, [["render", rc]]), sc = /* @__PURE__ */ ge({
|
|
5305
5307
|
__name: "AddForm",
|
|
5306
5308
|
setup(e) {
|
|
5307
5309
|
const t = Me(), n = V(() => t.rules.group), i = V(() => !!t.state.currentCatalogId || !!t.state.currentSchedulerId), a = V(() => {
|
|
@@ -5332,7 +5334,7 @@ const ua = /* @__PURE__ */ Ct(nc, [["render", ac]]), rc = /* @__PURE__ */ ge({
|
|
|
5332
5334
|
position: t.groups.length - 1,
|
|
5333
5335
|
itemsLinked: []
|
|
5334
5336
|
}), r = oe(o()), { t: l } = ke();
|
|
5335
|
-
return (s, u) => n.value.create ? (U(), J(b(
|
|
5337
|
+
return (s, u) => n.value.create ? (U(), J(b(Nc), {
|
|
5336
5338
|
key: 0,
|
|
5337
5339
|
"categorized-items": b(t).categorizedItems,
|
|
5338
5340
|
config: a.value,
|
|
@@ -5350,13 +5352,13 @@ const ua = /* @__PURE__ */ Ct(nc, [["render", ac]]), rc = /* @__PURE__ */ ge({
|
|
|
5350
5352
|
_: 3
|
|
5351
5353
|
}, 8, ["categorized-items", "config", "group", "title"])) : se("", !0);
|
|
5352
5354
|
}
|
|
5353
|
-
}),
|
|
5354
|
-
function
|
|
5355
|
-
return U(), re("div",
|
|
5355
|
+
}), lc = {}, uc = { class: "flex gap-16" };
|
|
5356
|
+
function cc(e, t) {
|
|
5357
|
+
return U(), re("div", uc, [
|
|
5356
5358
|
Ce(e.$slots, "default")
|
|
5357
5359
|
]);
|
|
5358
5360
|
}
|
|
5359
|
-
const
|
|
5361
|
+
const dc = /* @__PURE__ */ Ct(lc, [["render", cc]]), mc = { class: "fm-typo-en-title-md-600 mr-auto" }, pc = { class: "space-y-40" }, fc = { class: "flex gap-8 items-center justify-start" }, hc = /* @__PURE__ */ ge({
|
|
5360
5362
|
__name: "Form",
|
|
5361
5363
|
props: {
|
|
5362
5364
|
bindingKey: {},
|
|
@@ -5397,7 +5399,7 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5397
5399
|
modelValue: a.value,
|
|
5398
5400
|
"onUpdate:modelValue": E[2] || (E[2] = (k) => a.value = k),
|
|
5399
5401
|
"close-button": !1,
|
|
5400
|
-
"is-container": b(
|
|
5402
|
+
"is-container": b(Ge).FmForm,
|
|
5401
5403
|
"is-container-props": {
|
|
5402
5404
|
onValidationSuccess: u,
|
|
5403
5405
|
blameFormChildOnValidationFailed: !0
|
|
@@ -5406,10 +5408,10 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5406
5408
|
"onOn:clickedAway": b(s)
|
|
5407
5409
|
}, {
|
|
5408
5410
|
"side-sheet-header": W(() => [
|
|
5409
|
-
B("p",
|
|
5411
|
+
B("p", mc, Ee(p.title || b(d)("menu.inventory.form.title")), 1)
|
|
5410
5412
|
]),
|
|
5411
5413
|
"side-sheet-footer": W(() => [
|
|
5412
|
-
B("div",
|
|
5414
|
+
B("div", fc, [
|
|
5413
5415
|
R(v, {
|
|
5414
5416
|
label: b(d)("menu.common.actions.add"),
|
|
5415
5417
|
size: "lg",
|
|
@@ -5425,7 +5427,7 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5425
5427
|
])
|
|
5426
5428
|
]),
|
|
5427
5429
|
default: W(() => [
|
|
5428
|
-
B("div",
|
|
5430
|
+
B("div", pc, [
|
|
5429
5431
|
R(_, {
|
|
5430
5432
|
"model-value": p.name,
|
|
5431
5433
|
disabled: "",
|
|
@@ -5436,7 +5438,7 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5436
5438
|
variant: "outlined"
|
|
5437
5439
|
}, {
|
|
5438
5440
|
default: W(() => [
|
|
5439
|
-
R(b(
|
|
5441
|
+
R(b(Za), {
|
|
5440
5442
|
modelValue: r.value,
|
|
5441
5443
|
"onUpdate:modelValue": E[0] || (E[0] = (k) => r.value = k)
|
|
5442
5444
|
}, null, 8, ["modelValue"])
|
|
@@ -5450,8 +5452,8 @@ const cc = /* @__PURE__ */ Ct(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
|
|
|
5450
5452
|
], 64);
|
|
5451
5453
|
};
|
|
5452
5454
|
}
|
|
5453
|
-
}), li =
|
|
5454
|
-
function
|
|
5455
|
+
}), li = hc;
|
|
5456
|
+
function gc() {
|
|
5455
5457
|
const e = an();
|
|
5456
5458
|
function t({
|
|
5457
5459
|
component: n,
|
|
@@ -5524,7 +5526,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5524
5526
|
cell: (r) => {
|
|
5525
5527
|
var u, m;
|
|
5526
5528
|
const l = (u = n.fallback) == null ? void 0 : u[r.row.original.key], s = l ? Gt(l) : void 0;
|
|
5527
|
-
return R(
|
|
5529
|
+
return R(Dt, {
|
|
5528
5530
|
required: !1,
|
|
5529
5531
|
nullable: !0,
|
|
5530
5532
|
min: n.allowNegativePrice ? void 0 : 0,
|
|
@@ -5545,7 +5547,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5545
5547
|
}, null, 8, ["row-data", "page-size"])]);
|
|
5546
5548
|
};
|
|
5547
5549
|
}
|
|
5548
|
-
}),
|
|
5550
|
+
}), vc = { class: "fm-typo-en-title-md-600" }, _c = { class: "py-16 space-y-32" }, bc = { class: "flex gap-8 items-center justify-start" }, yc = /* @__PURE__ */ ge({
|
|
5549
5551
|
__name: "PriceTierSheet",
|
|
5550
5552
|
props: {
|
|
5551
5553
|
initialValue: {},
|
|
@@ -5556,7 +5558,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5556
5558
|
setup(e, { emit: t }) {
|
|
5557
5559
|
const { t: n } = ke(), i = t, a = oe(!0), o = () => {
|
|
5558
5560
|
a.value = !1, i("update:show", !1);
|
|
5559
|
-
}, r = V(() => n("menu.price_tier.price_tier_config")), l = V(() => n("common.update")), s = e, u = So(s.menuStore), m = oe(s.initialValue ?
|
|
5561
|
+
}, r = V(() => n("menu.price_tier.price_tier_config")), l = V(() => n("common.update")), s = e, u = So(s.menuStore), m = oe(s.initialValue ? er(s.initialValue) : {}), d = ui(
|
|
5560
5562
|
() => !at.isEqual(s.initialValue || {}, m.value),
|
|
5561
5563
|
() => {
|
|
5562
5564
|
o();
|
|
@@ -5571,7 +5573,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5571
5573
|
id: "business-form",
|
|
5572
5574
|
modelValue: a.value,
|
|
5573
5575
|
"onUpdate:modelValue": E[1] || (E[1] = (h) => a.value = h),
|
|
5574
|
-
"is-container": b(
|
|
5576
|
+
"is-container": b(Ge).FmForm,
|
|
5575
5577
|
"is-container-props": {
|
|
5576
5578
|
onValidationSuccess: c,
|
|
5577
5579
|
blameFormChildOnValidationFailed: !0
|
|
@@ -5580,10 +5582,10 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5580
5582
|
"onOn:clickedAway": b(d)
|
|
5581
5583
|
}, {
|
|
5582
5584
|
"side-sheet-header": W(() => [
|
|
5583
|
-
B("p",
|
|
5585
|
+
B("p", vc, Ee(r.value), 1)
|
|
5584
5586
|
]),
|
|
5585
5587
|
"side-sheet-footer": W(() => [
|
|
5586
|
-
B("div",
|
|
5588
|
+
B("div", bc, [
|
|
5587
5589
|
R(w, {
|
|
5588
5590
|
label: l.value,
|
|
5589
5591
|
size: "lg",
|
|
@@ -5599,7 +5601,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5599
5601
|
])
|
|
5600
5602
|
]),
|
|
5601
5603
|
default: W(() => [
|
|
5602
|
-
B("div",
|
|
5604
|
+
B("div", _c, [
|
|
5603
5605
|
R(bt, {
|
|
5604
5606
|
label: b(n)("menu.price_tier.price_group"),
|
|
5605
5607
|
description: b(n)("menu.price_tier.description")
|
|
@@ -5639,10 +5641,10 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5639
5641
|
},
|
|
5640
5642
|
emits: ["update:priceTiers"],
|
|
5641
5643
|
setup(e, { emit: t }) {
|
|
5642
|
-
const n = e, i = t, a = V(() => Object.keys(n.priceTiers || {}).length > 0 ? "filled" : "outline"), o =
|
|
5644
|
+
const n = e, i = t, a = V(() => Object.keys(n.priceTiers || {}).length > 0 ? "filled" : "outline"), o = gc();
|
|
5643
5645
|
function r() {
|
|
5644
5646
|
o.open({
|
|
5645
|
-
component:
|
|
5647
|
+
component: yc,
|
|
5646
5648
|
props: {
|
|
5647
5649
|
initialValue: n.priceTiers,
|
|
5648
5650
|
fallback: n.fallback,
|
|
@@ -5675,15 +5677,15 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5675
5677
|
}, 8, ["content"]));
|
|
5676
5678
|
};
|
|
5677
5679
|
}
|
|
5678
|
-
}),
|
|
5680
|
+
}), wc = {
|
|
5679
5681
|
key: 0
|
|
5680
|
-
}, wc = {
|
|
5681
|
-
key: 1
|
|
5682
5682
|
}, Ec = {
|
|
5683
|
-
|
|
5683
|
+
key: 1
|
|
5684
5684
|
}, Sc = {
|
|
5685
|
+
class: "xs:overflow-x-scroll"
|
|
5686
|
+
}, kc = {
|
|
5685
5687
|
class: "xs:min-w-[640px]"
|
|
5686
|
-
},
|
|
5688
|
+
}, Oc = /* @__PURE__ */ ge({
|
|
5687
5689
|
__name: "OptionTable",
|
|
5688
5690
|
props: {
|
|
5689
5691
|
config: {},
|
|
@@ -5699,7 +5701,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5699
5701
|
}) {
|
|
5700
5702
|
const n = e, i = t;
|
|
5701
5703
|
Qe();
|
|
5702
|
-
const a = rn(), o = Me(), r = V(() =>
|
|
5704
|
+
const a = rn(), o = Me(), r = V(() => Ca.getCountry(a.currentCountry.value)), l = oe(!1), s = V(() => n.config.isV4 || n.group.type === q.F_ADDON_GROUP_TYPE.enum.PRODUCT), u = V(() => s.value), m = V(() => s.value), d = V(() => Object.values(n.group.items).flatMap((G) => [{
|
|
5703
5705
|
_id: G._id,
|
|
5704
5706
|
combinationKey: void 0
|
|
5705
5707
|
}, ...(G.items ?? []).filter((j) => j.orderFrom !== q.F_ORDER_FROM.enum.NONE).map((j) => ({
|
|
@@ -5708,7 +5710,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5708
5710
|
}))])), {
|
|
5709
5711
|
searchKey: c,
|
|
5710
5712
|
filter: p
|
|
5711
|
-
} =
|
|
5713
|
+
} = tr(), E = V(() => {
|
|
5712
5714
|
const G = Object.entries(n.group.items).filter(([, j]) => p([j.code || "", j.name || j.fallbackName, v(j.price ?? j.fallbackPrice), h(j.orderFrom || j.fallbackOrder), ...(j.items || []).map((Z) => [Z.code || "", Z.name || Z.fallbackName, v(Z.price ?? Z.fallbackPrice), h(Z.orderFrom || Z.fallbackOrder)].join(""))]));
|
|
5713
5715
|
return Object.fromEntries(G);
|
|
5714
5716
|
}), _ = (G) => ({
|
|
@@ -5732,7 +5734,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5732
5734
|
if ((Q = (ee = G.row.original) == null ? void 0 : ee.items) != null && Q.length)
|
|
5733
5735
|
return null;
|
|
5734
5736
|
const j = G.row.depth > 0, Z = G.row.original, ne = !_(Z.combinationKey).isDefault || Z.orderFrom === q.F_ORDER_FROM.enum.NONE, ie = !!G.getValue();
|
|
5735
|
-
return R(
|
|
5737
|
+
return R(Ge.FmCheckbox, {
|
|
5736
5738
|
value: "default",
|
|
5737
5739
|
modelValue: ie,
|
|
5738
5740
|
disabled: ne,
|
|
@@ -5754,7 +5756,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5754
5756
|
size: 100,
|
|
5755
5757
|
cell: (G) => {
|
|
5756
5758
|
const j = G.getValue();
|
|
5757
|
-
return R(
|
|
5759
|
+
return R(Ge.FmTooltip, {
|
|
5758
5760
|
class: "flex",
|
|
5759
5761
|
content: j,
|
|
5760
5762
|
zIndex: 110
|
|
@@ -5770,7 +5772,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5770
5772
|
enableSorting: !1,
|
|
5771
5773
|
cell: (G) => {
|
|
5772
5774
|
const j = G.getValue(), Z = G.row.original, ne = !_(Z.combinationKey).name || Z.orderFrom === q.F_ORDER_FROM.enum.NONE, ie = G.row.depth > 0, ee = Z.combinationKey ? wo(Z.combinationKey, Me().variants) : null;
|
|
5773
|
-
return
|
|
5775
|
+
return De("div", De(Ge.FmTextField, {
|
|
5774
5776
|
modelValue: j,
|
|
5775
5777
|
placeholder: ee ?? "",
|
|
5776
5778
|
disabled: ne,
|
|
@@ -5788,7 +5790,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5788
5790
|
}, {
|
|
5789
5791
|
append: () => {
|
|
5790
5792
|
var Q, ve;
|
|
5791
|
-
return (ve = (Q = G.row.original) == null ? void 0 : Q.items) != null && ve.length ?
|
|
5793
|
+
return (ve = (Q = G.row.original) == null ? void 0 : Q.items) != null && ve.length ? De(Ge.FmIcon, {
|
|
5792
5794
|
name: "keyboard_arrow_up",
|
|
5793
5795
|
onClick: G.row.getToggleExpandedHandler(),
|
|
5794
5796
|
class: ["cursor-pointer", "transition-transform", G.row.getIsExpanded() ? "transform rotate-180" : ""],
|
|
@@ -5809,7 +5811,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5809
5811
|
size: 100,
|
|
5810
5812
|
cell: (G) => {
|
|
5811
5813
|
const j = G.getValue(), Z = G.row.original, ne = !_(null).priceEdit || Z.orderFrom === q.F_ORDER_FROM.enum.NONE, ie = Z.fallbackPrice, ee = G.row.depth > 0;
|
|
5812
|
-
return
|
|
5814
|
+
return De(Dt, {
|
|
5813
5815
|
disable: ne,
|
|
5814
5816
|
placeholder: ie ? Gt(ie) : void 0,
|
|
5815
5817
|
modelValue: j,
|
|
@@ -5842,7 +5844,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5842
5844
|
enableSorting: !1,
|
|
5843
5845
|
cell: (G) => {
|
|
5844
5846
|
const j = G.getValue(), Z = G.row.original, ne = Z.fallbackOrder, ie = G.row.depth > 0;
|
|
5845
|
-
return
|
|
5847
|
+
return De(Ei, {
|
|
5846
5848
|
modelValue: j,
|
|
5847
5849
|
fallback: ne,
|
|
5848
5850
|
disable: !_(Z.combinationKey).orderFrom,
|
|
@@ -5963,7 +5965,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5963
5965
|
_id: G,
|
|
5964
5966
|
name: "",
|
|
5965
5967
|
inventoryBindings: [],
|
|
5966
|
-
price:
|
|
5968
|
+
price: Be.zero().toObject(),
|
|
5967
5969
|
isDynamicAddon: n.group.type === q.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
|
|
5968
5970
|
items: [],
|
|
5969
5971
|
orderFrom: q.F_ORDER_FROM.enum.ALL
|
|
@@ -5977,7 +5979,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
5977
5979
|
const ie = {
|
|
5978
5980
|
...ne
|
|
5979
5981
|
};
|
|
5980
|
-
j === "price" ? ie[j] = !Z && !ne.fallbackPrice ?
|
|
5982
|
+
j === "price" ? ie[j] = !Z && !ne.fallbackPrice ? Be.zero().toObject() : Z : ie[j] = Z, i("update:group", {
|
|
5981
5983
|
...n.group,
|
|
5982
5984
|
items: {
|
|
5983
5985
|
...n.group.items,
|
|
@@ -6003,7 +6005,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6003
6005
|
var Z;
|
|
6004
6006
|
return G[j._id] = {
|
|
6005
6007
|
price: j.price,
|
|
6006
|
-
variants:
|
|
6008
|
+
variants: Na(((Z = j.variant) == null ? void 0 : Z.variantCombinations) || [], "combinationKey")
|
|
6007
6009
|
}, G;
|
|
6008
6010
|
}, {})), P = (G) => {
|
|
6009
6011
|
var ie, ee;
|
|
@@ -6013,7 +6015,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6013
6015
|
} : Z;
|
|
6014
6016
|
return ne == null ? void 0 : ne.name;
|
|
6015
6017
|
}, z = V(() => o.state.menu.modules.item.reduce((G, j) => (G[j._id] = j, G), {}));
|
|
6016
|
-
function
|
|
6018
|
+
function F(G) {
|
|
6017
6019
|
const j = [], Z = new Set(G.filter((ne) => ne.combinationKey).map((ne) => `${ne._id}:${ne.combinationKey}`));
|
|
6018
6020
|
return G.forEach((ne) => {
|
|
6019
6021
|
var Q;
|
|
@@ -6035,7 +6037,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6035
6037
|
}
|
|
6036
6038
|
const C = async (G) => {
|
|
6037
6039
|
let j = ci(n.group);
|
|
6038
|
-
const Z =
|
|
6040
|
+
const Z = F(G);
|
|
6039
6041
|
j = {
|
|
6040
6042
|
...j,
|
|
6041
6043
|
items: Z.map((ne) => {
|
|
@@ -6067,7 +6069,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6067
6069
|
}, {
|
|
6068
6070
|
"append-title": W(() => [G.config.link() ? (U(), re(Ve, {
|
|
6069
6071
|
key: 0
|
|
6070
|
-
}, [u.value ? (U(), re("div",
|
|
6072
|
+
}, [u.value ? (U(), re("div", wc, [R(Ua, {
|
|
6071
6073
|
"categorized-items": G.categorizedItems,
|
|
6072
6074
|
"initial-value": d.value,
|
|
6073
6075
|
"show-variant": G.config.bindToVariant,
|
|
@@ -6086,7 +6088,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6086
6088
|
onClick: ie
|
|
6087
6089
|
}, null, 8, ["text-color", "border-color", "label", "onClick"])]),
|
|
6088
6090
|
_: 1
|
|
6089
|
-
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div",
|
|
6091
|
+
}, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div", Ec, [R(Z, {
|
|
6090
6092
|
"text-color": b(ft).ColorPrimary,
|
|
6091
6093
|
"border-color": b(ft).ColorPrimary,
|
|
6092
6094
|
variant: "secondary",
|
|
@@ -6094,7 +6096,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6094
6096
|
"prepend-icon": "add",
|
|
6095
6097
|
onClick: x
|
|
6096
6098
|
}, null, 8, ["text-color", "border-color", "label"])]))], 64)) : se("", !0)]),
|
|
6097
|
-
default: W(() => [B("div",
|
|
6099
|
+
default: W(() => [B("div", Sc, [B("div", kc, [R(ne, {
|
|
6098
6100
|
"column-defs": T.value,
|
|
6099
6101
|
"column-visibility": y.value,
|
|
6100
6102
|
draggable: !we.value && _(null).name,
|
|
@@ -6114,7 +6116,7 @@ const ca = /* @__PURE__ */ ge({
|
|
|
6114
6116
|
};
|
|
6115
6117
|
}
|
|
6116
6118
|
});
|
|
6117
|
-
function
|
|
6119
|
+
function Rc(e) {
|
|
6118
6120
|
const { t } = ke();
|
|
6119
6121
|
function n(r) {
|
|
6120
6122
|
let l = 0;
|
|
@@ -6163,10 +6165,10 @@ function Oc(e) {
|
|
|
6163
6165
|
minMaxValidationRules: o
|
|
6164
6166
|
};
|
|
6165
6167
|
}
|
|
6166
|
-
const
|
|
6168
|
+
const Cc = { class: "fm-typo-en-title-md-600" }, Ac = {
|
|
6167
6169
|
key: 0,
|
|
6168
6170
|
class: "pt-8 space-y-32"
|
|
6169
|
-
},
|
|
6171
|
+
}, Ic = { class: "flex gap-8 items-center justify-start" }, ma = /* @__PURE__ */ ge({
|
|
6170
6172
|
__name: "BaseForm",
|
|
6171
6173
|
props: {
|
|
6172
6174
|
title: {},
|
|
@@ -6179,7 +6181,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6179
6181
|
emits: ["update:group", "submit:group", "status:show"],
|
|
6180
6182
|
setup(e, { expose: t, emit: n }) {
|
|
6181
6183
|
let i = e;
|
|
6182
|
-
const a = n, o = Me(), r = rn(), l = lt(), s = Qe(), u = Ot(kt(s)), { countDefaultItems: m, validateGroupItems: d, minMaxValidationRules: c } =
|
|
6184
|
+
const a = n, o = Me(), r = rn(), l = lt(), s = Qe(), u = Ot(kt(s)), { countDefaultItems: m, validateGroupItems: d, minMaxValidationRules: c } = Rc(
|
|
6183
6185
|
() => i.group
|
|
6184
6186
|
), p = oe(!1), E = oe(!1), _ = (C) => {
|
|
6185
6187
|
sn.isBoolean(C) ? E.value = C : E.value = !E.value;
|
|
@@ -6232,7 +6234,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6232
6234
|
() => {
|
|
6233
6235
|
E.value = !1;
|
|
6234
6236
|
}
|
|
6235
|
-
), S = V(() => i.action === "add" ?
|
|
6237
|
+
), S = V(() => i.action === "add" ? F("common.add") : F("common.update"));
|
|
6236
6238
|
async function I() {
|
|
6237
6239
|
var C;
|
|
6238
6240
|
if (i.action === "add") {
|
|
@@ -6251,10 +6253,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6251
6253
|
await u.updateMenu(ce, $.name), a("submit:group", i.group);
|
|
6252
6254
|
} else if (i.action === "update") {
|
|
6253
6255
|
for (const $ of Object.values(((C = i.group) == null ? void 0 : C.items) ?? {}))
|
|
6254
|
-
if (
|
|
6256
|
+
if (ja(o.state.menu, i.group._id, $._id)) {
|
|
6255
6257
|
s.open({
|
|
6256
6258
|
type: "error",
|
|
6257
|
-
message:
|
|
6259
|
+
message: F("menu.product.form.group.circularError", {
|
|
6258
6260
|
groupName: i.group.name,
|
|
6259
6261
|
productName: $.name
|
|
6260
6262
|
})
|
|
@@ -6288,15 +6290,15 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6288
6290
|
});
|
|
6289
6291
|
}, z = V(() => [
|
|
6290
6292
|
// Required validation
|
|
6291
|
-
(C) => !!C ||
|
|
6293
|
+
(C) => !!C || F("menu.common.validation.required", { field: F("menu.common.labels.group_name") }),
|
|
6292
6294
|
// Duplicate name validation
|
|
6293
|
-
(C) => i.action === "add" ? !o.groups.find((le) => le.name === C) ||
|
|
6295
|
+
(C) => i.action === "add" ? !o.groups.find((le) => le.name === C) || F("menu.group.validation.name_duplicate") : i.action === "update" ? !o.groups.find((le) => le.name === C && le._id !== i.group._id) || F("menu.group.validation.name_duplicate") : !0
|
|
6294
6296
|
]);
|
|
6295
6297
|
t({
|
|
6296
6298
|
trigger: _,
|
|
6297
6299
|
show: E
|
|
6298
6300
|
});
|
|
6299
|
-
const { t:
|
|
6301
|
+
const { t: F } = ke();
|
|
6300
6302
|
return (C, $) => {
|
|
6301
6303
|
const le = K("fm-text-field"), ce = K("fm-stepper-field"), we = K("FmFormGroup"), G = K("fm-radio"), j = K("fm-radio-group"), Z = K("fm-switch"), ne = K("fm-button"), ie = K("fm-side-sheet");
|
|
6302
6304
|
return U(), re(Ve, null, [
|
|
@@ -6305,7 +6307,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6305
6307
|
id: "group-form",
|
|
6306
6308
|
modelValue: E.value,
|
|
6307
6309
|
"onUpdate:modelValue": $[8] || ($[8] = (ee) => E.value = ee),
|
|
6308
|
-
"is-container": b(
|
|
6310
|
+
"is-container": b(Ge).FmForm,
|
|
6309
6311
|
"is-container-props": {
|
|
6310
6312
|
onValidationSuccess: I,
|
|
6311
6313
|
blameFormChildOnValidationFailed: !0
|
|
@@ -6314,19 +6316,19 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6314
6316
|
"onOn:clickedAway": b(x)
|
|
6315
6317
|
}, {
|
|
6316
6318
|
"side-sheet-header": W(() => [
|
|
6317
|
-
B("p",
|
|
6319
|
+
B("p", Cc, Ee(C.title), 1)
|
|
6318
6320
|
]),
|
|
6319
6321
|
"side-sheet-footer": W(() => [
|
|
6320
|
-
B("div",
|
|
6322
|
+
B("div", Ic, [
|
|
6321
6323
|
R(ne, {
|
|
6322
|
-
label: b(
|
|
6324
|
+
label: b(nr)(S.value),
|
|
6323
6325
|
loading: p.value,
|
|
6324
6326
|
size: "lg",
|
|
6325
6327
|
type: "submit",
|
|
6326
6328
|
variant: "primary"
|
|
6327
6329
|
}, null, 8, ["label", "loading"]),
|
|
6328
6330
|
R(ne, {
|
|
6329
|
-
label: b(
|
|
6331
|
+
label: b(F)("menu.common.actions.cancel"),
|
|
6330
6332
|
size: "lg",
|
|
6331
6333
|
variant: "tertiary",
|
|
6332
6334
|
onClick: $[7] || ($[7] = () => E.value = !1)
|
|
@@ -6334,9 +6336,9 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6334
6336
|
])
|
|
6335
6337
|
]),
|
|
6336
6338
|
default: W(() => [
|
|
6337
|
-
C.group ? (U(), re("div",
|
|
6339
|
+
C.group ? (U(), re("div", Ac, [
|
|
6338
6340
|
Ce(C.$slots, "variant-section"),
|
|
6339
|
-
R(
|
|
6341
|
+
R(Va, null, {
|
|
6340
6342
|
default: W(() => [
|
|
6341
6343
|
B("div", null, [
|
|
6342
6344
|
R(le, {
|
|
@@ -6345,7 +6347,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6345
6347
|
disabled: h("name"),
|
|
6346
6348
|
rules: z.value,
|
|
6347
6349
|
autofocus: "",
|
|
6348
|
-
label: b(
|
|
6350
|
+
label: b(F)("menu.common.labels.group_name")
|
|
6349
6351
|
}, null, 8, ["modelValue", "disabled", "rules", "label"])
|
|
6350
6352
|
]),
|
|
6351
6353
|
R(we, {
|
|
@@ -6353,7 +6355,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6353
6355
|
rules: b(c)
|
|
6354
6356
|
}, {
|
|
6355
6357
|
default: W(() => [
|
|
6356
|
-
R(
|
|
6358
|
+
R(dc, null, {
|
|
6357
6359
|
default: W(() => [
|
|
6358
6360
|
R(ce, {
|
|
6359
6361
|
modelValue: C.group.min,
|
|
@@ -6361,7 +6363,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6361
6363
|
disabled: h("min"),
|
|
6362
6364
|
min: 0,
|
|
6363
6365
|
class: "flex-1",
|
|
6364
|
-
label: b(
|
|
6366
|
+
label: b(F)("menu.common.labels.min_select")
|
|
6365
6367
|
}, null, 8, ["modelValue", "disabled", "label"]),
|
|
6366
6368
|
R(ce, {
|
|
6367
6369
|
modelValue: C.group.max,
|
|
@@ -6369,7 +6371,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6369
6371
|
disabled: h("max"),
|
|
6370
6372
|
min: C.group.min,
|
|
6371
6373
|
class: "flex-1",
|
|
6372
|
-
label: b(
|
|
6374
|
+
label: b(F)("menu.common.labels.max_select")
|
|
6373
6375
|
}, null, 8, ["modelValue", "disabled", "min", "label"])
|
|
6374
6376
|
]),
|
|
6375
6377
|
_: 1
|
|
@@ -6379,7 +6381,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6379
6381
|
}, 8, ["model-value", "rules"]),
|
|
6380
6382
|
w.value.type ? (U(), J(bt, {
|
|
6381
6383
|
key: 0,
|
|
6382
|
-
label: b(
|
|
6384
|
+
label: b(F)("menu.common.labels.group_type")
|
|
6383
6385
|
}, {
|
|
6384
6386
|
default: W(() => [
|
|
6385
6387
|
R(j, {
|
|
@@ -6390,7 +6392,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6390
6392
|
default: W(() => [
|
|
6391
6393
|
(U(!0), re(Ve, null, rt(k.value, (ee) => (U(), J(G, {
|
|
6392
6394
|
key: ee.value,
|
|
6393
|
-
label: b(
|
|
6395
|
+
label: b(F)(`menu.group.types.${ee.label.toLowerCase()}`),
|
|
6394
6396
|
value: ee.value
|
|
6395
6397
|
}, null, 8, ["label", "value"]))), 128))
|
|
6396
6398
|
]),
|
|
@@ -6400,24 +6402,24 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6400
6402
|
_: 1
|
|
6401
6403
|
}, 8, ["label"])) : se("", !0),
|
|
6402
6404
|
R(bt, {
|
|
6403
|
-
label: b(
|
|
6405
|
+
label: b(F)("menu.common.labels.configuration")
|
|
6404
6406
|
}, {
|
|
6405
6407
|
default: W(() => [
|
|
6406
6408
|
R(Z, {
|
|
6407
6409
|
modelValue: C.group.stackable,
|
|
6408
6410
|
"onUpdate:modelValue": $[4] || ($[4] = (ee) => C.group.stackable = ee),
|
|
6409
6411
|
disabled: h("stackable"),
|
|
6410
|
-
label: b(
|
|
6412
|
+
label: b(F)("menu.common.labels.stackable"),
|
|
6411
6413
|
"label-placement": "right",
|
|
6412
|
-
sublabel: b(
|
|
6414
|
+
sublabel: b(F)("menu.common.labels.stackable_sublabel")
|
|
6413
6415
|
}, null, 8, ["modelValue", "disabled", "label", "sublabel"])
|
|
6414
6416
|
]),
|
|
6415
6417
|
_: 1
|
|
6416
6418
|
}, 8, ["label"]),
|
|
6417
6419
|
N.value ? (U(), J(ut, {
|
|
6418
6420
|
key: 1,
|
|
6419
|
-
title: b(
|
|
6420
|
-
"sub-title": b(
|
|
6421
|
+
title: b(F)("menu.group.form.tagging.title"),
|
|
6422
|
+
"sub-title": b(F)("menu.group.form.tagging.subtitle")
|
|
6421
6423
|
}, {
|
|
6422
6424
|
default: W(() => [
|
|
6423
6425
|
R(b(vo), {
|
|
@@ -6436,13 +6438,13 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6436
6438
|
tag: "div",
|
|
6437
6439
|
modelValue: C.group,
|
|
6438
6440
|
rules: [b(d)],
|
|
6439
|
-
"helper-text": b(
|
|
6441
|
+
"helper-text": b(F)("menu.common.validation.default_items_tip", {
|
|
6440
6442
|
count: b(m)(C.group),
|
|
6441
6443
|
max: C.group.max
|
|
6442
6444
|
})
|
|
6443
6445
|
}, {
|
|
6444
6446
|
default: W(() => [
|
|
6445
|
-
R(
|
|
6447
|
+
R(Oc, {
|
|
6446
6448
|
"allow-refund-inventory": C.allowRefundInventory ?? !1,
|
|
6447
6449
|
"categorized-items": C.categorizedItems,
|
|
6448
6450
|
config: w.value,
|
|
@@ -6460,7 +6462,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6460
6462
|
], 64);
|
|
6461
6463
|
};
|
|
6462
6464
|
}
|
|
6463
|
-
}),
|
|
6465
|
+
}), Tc = { class: "fm-typo-en-title-sm-600" }, Mc = { class: "flex items-end space-x-24" }, Fc = { class: "flex" }, Dc = /* @__PURE__ */ ge({
|
|
6464
6466
|
__name: "UpdateForm",
|
|
6465
6467
|
props: {
|
|
6466
6468
|
combinations: {},
|
|
@@ -6487,8 +6489,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6487
6489
|
...x,
|
|
6488
6490
|
...Object.fromEntries(S),
|
|
6489
6491
|
items: x.items.map((P) => {
|
|
6490
|
-
var
|
|
6491
|
-
const z = (
|
|
6492
|
+
var F;
|
|
6493
|
+
const z = (F = T.items) == null ? void 0 : F.find(
|
|
6492
6494
|
(C) => C._id == P._id && C.combinationKey == P.combinationKey
|
|
6493
6495
|
);
|
|
6494
6496
|
return {
|
|
@@ -6542,7 +6544,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6542
6544
|
return {
|
|
6543
6545
|
...y,
|
|
6544
6546
|
groups: (x = y.groups) == null ? void 0 : x.map((S) => ({
|
|
6545
|
-
...
|
|
6547
|
+
...rr(S, _())
|
|
6546
6548
|
}))
|
|
6547
6549
|
};
|
|
6548
6550
|
});
|
|
@@ -6586,15 +6588,15 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6586
6588
|
variant: "outlined"
|
|
6587
6589
|
}, {
|
|
6588
6590
|
default: W(() => [
|
|
6589
|
-
B("p",
|
|
6590
|
-
B("div",
|
|
6591
|
+
B("p", Tc, Ee(b(k)("menu.group.option.variant")), 1),
|
|
6592
|
+
B("div", Mc, [
|
|
6591
6593
|
R(x, {
|
|
6592
6594
|
modelValue: u.value,
|
|
6593
6595
|
"onUpdate:modelValue": y[0] || (y[0] = (N) => u.value = N),
|
|
6594
6596
|
items: d.value,
|
|
6595
6597
|
class: "flex-1"
|
|
6596
6598
|
}, null, 8, ["modelValue", "items"]),
|
|
6597
|
-
B("div",
|
|
6599
|
+
B("div", Fc, [
|
|
6598
6600
|
R(S, {
|
|
6599
6601
|
variant: b(Rt).Tertiary,
|
|
6600
6602
|
"prepend-icon": "keyboard_arrow_left",
|
|
@@ -6617,13 +6619,13 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6617
6619
|
}, 8, ["categorized-items", "group", "title"]);
|
|
6618
6620
|
};
|
|
6619
6621
|
}
|
|
6620
|
-
}),
|
|
6622
|
+
}), Nc = ma, co = sc, Pc = Dc, Lc = {
|
|
6621
6623
|
key: 0,
|
|
6622
6624
|
class: "flex flex-col space-y-16 h-[440px]"
|
|
6623
|
-
},
|
|
6625
|
+
}, xc = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Uc = { class: "flex justify-between pb-16" }, Vc = { class: "flex gap-8" }, zc = {
|
|
6624
6626
|
key: 1,
|
|
6625
6627
|
class: "flex flex-col items-center space-y-16"
|
|
6626
|
-
},
|
|
6628
|
+
}, $c = { class: "flex flex-col items-center space-y-4 w-full" }, Gc = { class: "fm-typo-en-title-sm-600" }, Bc = { class: "text-fm-color-typo-secondary" }, Wc = /* @__PURE__ */ ge({
|
|
6627
6629
|
__name: "SelectGroupDialog",
|
|
6628
6630
|
props: {
|
|
6629
6631
|
groupIds: {}
|
|
@@ -6675,7 +6677,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6675
6677
|
};
|
|
6676
6678
|
return (w, v) => {
|
|
6677
6679
|
const h = K("FmSearch"), k = K("FmCheckbox"), O = K("FmButton");
|
|
6678
|
-
return m.value.length > 0 ? (U(), re("div",
|
|
6680
|
+
return m.value.length > 0 ? (U(), re("div", Lc, [
|
|
6679
6681
|
B("div", null, [
|
|
6680
6682
|
R(h, {
|
|
6681
6683
|
autofocus: "",
|
|
@@ -6684,7 +6686,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6684
6686
|
placeholder: b(E)("menu.common.labels.search_groups")
|
|
6685
6687
|
}, null, 8, ["modelValue", "placeholder"])
|
|
6686
6688
|
]),
|
|
6687
|
-
B("div",
|
|
6689
|
+
B("div", xc, [
|
|
6688
6690
|
B("div", null, [
|
|
6689
6691
|
(U(!0), re(Ve, null, rt(m.value, (A) => (U(), re("div", {
|
|
6690
6692
|
key: A.value
|
|
@@ -6703,7 +6705,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6703
6705
|
]))), 128))
|
|
6704
6706
|
])
|
|
6705
6707
|
]),
|
|
6706
|
-
B("div",
|
|
6708
|
+
B("div", Uc, [
|
|
6707
6709
|
R(b(co), null, {
|
|
6708
6710
|
default: W(({ trigger: A }) => [
|
|
6709
6711
|
R(O, {
|
|
@@ -6715,7 +6717,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6715
6717
|
]),
|
|
6716
6718
|
_: 1
|
|
6717
6719
|
}),
|
|
6718
|
-
B("div",
|
|
6720
|
+
B("div", Vc, [
|
|
6719
6721
|
R(O, {
|
|
6720
6722
|
label: b(E)("menu.common.actions.cancel"),
|
|
6721
6723
|
variant: "tertiary",
|
|
@@ -6727,10 +6729,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6727
6729
|
}, null, 8, ["label"])
|
|
6728
6730
|
])
|
|
6729
6731
|
])
|
|
6730
|
-
])) : (U(), re("div",
|
|
6731
|
-
B("div",
|
|
6732
|
-
B("p",
|
|
6733
|
-
B("p",
|
|
6732
|
+
])) : (U(), re("div", zc, [
|
|
6733
|
+
B("div", $c, [
|
|
6734
|
+
B("p", Gc, Ee(b(E)("menu.common.empty.no_group.title")), 1),
|
|
6735
|
+
B("p", Bc, Ee(b(E)("menu.common.empty.no_group.subtitle")), 1)
|
|
6734
6736
|
]),
|
|
6735
6737
|
R(b(co), null, {
|
|
6736
6738
|
default: W(({ trigger: A }) => [
|
|
@@ -6745,7 +6747,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6745
6747
|
]));
|
|
6746
6748
|
};
|
|
6747
6749
|
}
|
|
6748
|
-
}),
|
|
6750
|
+
}), Hc = /* @__PURE__ */ ge({
|
|
6749
6751
|
__name: "ProductGroup",
|
|
6750
6752
|
props: {
|
|
6751
6753
|
isOverride: {
|
|
@@ -6766,11 +6768,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6766
6768
|
t: l
|
|
6767
6769
|
} = ke(), s = t, u = V(() => a.rules.group), m = V(() => a.rules.item), d = V(() => a.groups);
|
|
6768
6770
|
function c(M, P) {
|
|
6769
|
-
return be(P ?? []).map((
|
|
6770
|
-
const C = M.find(($) => $._id ===
|
|
6771
|
+
return be(P ?? []).map((F) => {
|
|
6772
|
+
const C = M.find(($) => $._id === F._id);
|
|
6771
6773
|
return {
|
|
6772
6774
|
name: (C == null ? void 0 : C.name) ?? "",
|
|
6773
|
-
...
|
|
6775
|
+
...F,
|
|
6774
6776
|
position: C == null ? void 0 : C.position
|
|
6775
6777
|
};
|
|
6776
6778
|
});
|
|
@@ -6780,7 +6782,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6780
6782
|
return [...E(c(d.value, n.form.groups || ((P = n.fallback) == null ? void 0 : P.groups) || [])).map((z) => z._id)];
|
|
6781
6783
|
});
|
|
6782
6784
|
function E(M) {
|
|
6783
|
-
return be(M ?? []).sort((z,
|
|
6785
|
+
return be(M ?? []).sort((z, F) => z.position - F.position);
|
|
6784
6786
|
}
|
|
6785
6787
|
function _(M) {
|
|
6786
6788
|
const P = d.value.find((C) => C._id === M);
|
|
@@ -6836,8 +6838,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6836
6838
|
enableSorting: !1,
|
|
6837
6839
|
size: 200,
|
|
6838
6840
|
cell: (M) => {
|
|
6839
|
-
const P = M.row.original._id,
|
|
6840
|
-
return R(
|
|
6841
|
+
const P = M.row.original._id, F = _(P).join(", ");
|
|
6842
|
+
return R(Ge.FmTooltip, {
|
|
6841
6843
|
"z-index": 51,
|
|
6842
6844
|
class: "flex",
|
|
6843
6845
|
variant: "rich",
|
|
@@ -6845,14 +6847,14 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6845
6847
|
}, {
|
|
6846
6848
|
default: () => R("div", {
|
|
6847
6849
|
class: "line-clamp-2 break-all"
|
|
6848
|
-
}, [
|
|
6850
|
+
}, [F]),
|
|
6849
6851
|
content: () => R("div", {
|
|
6850
6852
|
class: "py-12 px-16 space-y-12"
|
|
6851
6853
|
}, [R("p", {
|
|
6852
6854
|
class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600"
|
|
6853
6855
|
}, [l("menu.group.list.columns.products")]), R("div", {
|
|
6854
6856
|
class: "flex flex-wrap gap-8"
|
|
6855
|
-
}, [
|
|
6857
|
+
}, [F])])
|
|
6856
6858
|
});
|
|
6857
6859
|
}
|
|
6858
6860
|
}, {
|
|
@@ -6862,16 +6864,16 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6862
6864
|
enableSorting: !1,
|
|
6863
6865
|
cell: (M) => {
|
|
6864
6866
|
const P = M.row.original._id;
|
|
6865
|
-
return
|
|
6867
|
+
return De("div", {
|
|
6866
6868
|
class: "flex justify-end"
|
|
6867
|
-
}, [
|
|
6869
|
+
}, [De(Ge.FmButton, {
|
|
6868
6870
|
icon: "delete",
|
|
6869
6871
|
variant: "tertiary",
|
|
6870
6872
|
textColor: "neutral-gray-400",
|
|
6871
6873
|
onClick: On(async () => {
|
|
6872
6874
|
T(P);
|
|
6873
6875
|
}, ["stop", "prevent"])
|
|
6874
|
-
}),
|
|
6876
|
+
}), De(Pc, {
|
|
6875
6877
|
// variant items
|
|
6876
6878
|
combinations: x.value ?? [],
|
|
6877
6879
|
// combinationKey: varaintName
|
|
@@ -6881,7 +6883,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6881
6883
|
}, {
|
|
6882
6884
|
default: ({
|
|
6883
6885
|
trigger: z
|
|
6884
|
-
}) =>
|
|
6886
|
+
}) => De(Ge.FmButton, {
|
|
6885
6887
|
icon: "edit",
|
|
6886
6888
|
variant: "tertiary",
|
|
6887
6889
|
disabled: !S(P),
|
|
@@ -6896,19 +6898,19 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6896
6898
|
function O() {
|
|
6897
6899
|
r.open({
|
|
6898
6900
|
title: l("menu.product.form.group.add"),
|
|
6899
|
-
contentComponent:
|
|
6901
|
+
contentComponent: Wc,
|
|
6900
6902
|
contentComponentProps: {
|
|
6901
6903
|
groupIds: p.value
|
|
6902
6904
|
}
|
|
6903
6905
|
}).onPrimary((M) => {
|
|
6904
6906
|
var P;
|
|
6905
6907
|
for (const z of M)
|
|
6906
|
-
if (
|
|
6907
|
-
const
|
|
6908
|
+
if (Ka(a.state.menu, z, n.form._id)) {
|
|
6909
|
+
const F = (P = w.value[z]) == null ? void 0 : P.name;
|
|
6908
6910
|
i.open({
|
|
6909
6911
|
type: "error",
|
|
6910
6912
|
message: l("menu.product.form.group.circularError", {
|
|
6911
|
-
groupName:
|
|
6913
|
+
groupName: F,
|
|
6912
6914
|
productName: n.form.name
|
|
6913
6915
|
})
|
|
6914
6916
|
});
|
|
@@ -6918,10 +6920,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6918
6920
|
});
|
|
6919
6921
|
}
|
|
6920
6922
|
function A(M) {
|
|
6921
|
-
const P = M.reduce((z,
|
|
6923
|
+
const P = M.reduce((z, F) => {
|
|
6922
6924
|
var $;
|
|
6923
|
-
const C = (($ = n.form.groups) == null ? void 0 : $.find((le) => le._id ===
|
|
6924
|
-
_id:
|
|
6925
|
+
const C = (($ = n.form.groups) == null ? void 0 : $.find((le) => le._id === F)) || {
|
|
6926
|
+
_id: F,
|
|
6925
6927
|
groupKey: ""
|
|
6926
6928
|
};
|
|
6927
6929
|
return z.push(C), z;
|
|
@@ -6932,13 +6934,13 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6932
6934
|
}));
|
|
6933
6935
|
}
|
|
6934
6936
|
function T(M) {
|
|
6935
|
-
var z,
|
|
6937
|
+
var z, F, C;
|
|
6936
6938
|
if (!n.form.groups)
|
|
6937
6939
|
return;
|
|
6938
6940
|
const P = be(n.form.groups);
|
|
6939
6941
|
P.splice(P.findIndex(($) => $._id === M), 1);
|
|
6940
6942
|
for (const $ of ((z = n.form.variant) == null ? void 0 : z.variantCombinations) || [])
|
|
6941
|
-
(C = $.groups) == null || C.splice((
|
|
6943
|
+
(C = $.groups) == null || C.splice((F = $.groups) == null ? void 0 : F.findIndex((le) => le._id === M), 1);
|
|
6942
6944
|
s("replace:form", o.initDynamicGroupItem({
|
|
6943
6945
|
...n.form,
|
|
6944
6946
|
groups: P
|
|
@@ -6982,7 +6984,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6982
6984
|
}) : s("update:form", "groups", M[0].groups || []);
|
|
6983
6985
|
};
|
|
6984
6986
|
return (M, P) => {
|
|
6985
|
-
const z = K("FmButton"),
|
|
6987
|
+
const z = K("FmButton"), F = K("FmTable");
|
|
6986
6988
|
return U(), J(ut, {
|
|
6987
6989
|
title: b(l)("menu.product.form.group.title"),
|
|
6988
6990
|
"sub-title": b(l)("menu.product.form.group.subtitle")
|
|
@@ -6997,7 +6999,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
6997
6999
|
default: W(() => [R(ua, null, {
|
|
6998
7000
|
default: W(() => {
|
|
6999
7001
|
var C;
|
|
7000
|
-
return [((C = p.value) == null ? void 0 : C.length) > 0 ? (U(), J(
|
|
7002
|
+
return [((C = p.value) == null ? void 0 : C.length) > 0 ? (U(), J(F, {
|
|
7001
7003
|
key: 0,
|
|
7002
7004
|
"column-defs": h.value,
|
|
7003
7005
|
"column-visibility": k.value,
|
|
@@ -7016,11 +7018,11 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7016
7018
|
}, 8, ["title", "sub-title"]);
|
|
7017
7019
|
};
|
|
7018
7020
|
}
|
|
7019
|
-
}),
|
|
7021
|
+
}), jc = {
|
|
7020
7022
|
class: "xs:overflow-x-scroll"
|
|
7021
|
-
},
|
|
7023
|
+
}, Kc = {
|
|
7022
7024
|
class: "xs:min-w-[640px]"
|
|
7023
|
-
},
|
|
7025
|
+
}, Yc = /* @__PURE__ */ ge({
|
|
7024
7026
|
__name: "ProductInventory",
|
|
7025
7027
|
props: {
|
|
7026
7028
|
isOverride: {
|
|
@@ -7147,7 +7149,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7147
7149
|
title: b(n)("menu.inventory.title"),
|
|
7148
7150
|
subTitle: b(n)("menu.inventory.subtitle")
|
|
7149
7151
|
}, {
|
|
7150
|
-
default: W(() => [B("div",
|
|
7152
|
+
default: W(() => [B("div", jc, [B("div", Kc, [(U(!0), re(Ve, null, rt(m.value, (v) => (U(), J(b(li), {
|
|
7151
7153
|
key: v._id,
|
|
7152
7154
|
ref_for: !0,
|
|
7153
7155
|
ref_key: "inventoryManagerForms",
|
|
@@ -7161,28 +7163,28 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7161
7163
|
"onUpdate:inventory": (h) => {
|
|
7162
7164
|
d(v._id, h);
|
|
7163
7165
|
}
|
|
7164
|
-
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), R(b(
|
|
7166
|
+
}, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), R(b(Qa), {
|
|
7165
7167
|
"row-data": m.value,
|
|
7166
7168
|
onRowClick: p
|
|
7167
7169
|
}, null, 8, ["row-data"])])])]),
|
|
7168
7170
|
_: 1
|
|
7169
7171
|
}, 8, ["title", "subTitle"]));
|
|
7170
7172
|
}
|
|
7171
|
-
}),
|
|
7173
|
+
}), Xc = {
|
|
7172
7174
|
class: /* @__PURE__ */ Ke(["flex space-x-16", "xs:flex-col xs:space-x-0 xs:space-y-16"])
|
|
7173
|
-
},
|
|
7175
|
+
}, qc = { class: "space-y-16" }, Jc = { class: "space-y-8" }, Zc = {
|
|
7174
7176
|
key: 0,
|
|
7175
7177
|
class: "pl-32 pb-4 space-x-16 flex items-center"
|
|
7176
|
-
},
|
|
7178
|
+
}, Qc = { class: "fm-typo-en-body-lg-400" }, ed = { class: "w-[258px]" }, td = { class: "w-[117px]" }, nd = {
|
|
7177
7179
|
key: 0,
|
|
7178
7180
|
class: "space-y-8"
|
|
7179
|
-
},
|
|
7181
|
+
}, id = {
|
|
7180
7182
|
key: 0,
|
|
7181
7183
|
class: "pl-32 pb-4 flex space-x-16"
|
|
7182
|
-
},
|
|
7184
|
+
}, od = { class: "w-[258px] xs:w-full" }, ad = {
|
|
7183
7185
|
key: 1,
|
|
7184
7186
|
class: "space-y-8"
|
|
7185
|
-
},
|
|
7187
|
+
}, rd = { class: "pl-32 pb-4 flex space-x-16" }, sd = { class: "w-[258px] xs:w-full" }, ld = /* @__PURE__ */ ge({
|
|
7186
7188
|
__name: "ProductPrice",
|
|
7187
7189
|
props: {
|
|
7188
7190
|
isOverride: { type: Boolean },
|
|
@@ -7200,10 +7202,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7200
7202
|
l("update:form", "unit", h ? "" : void 0), l("update:form", "perXUnit", h ? 0 : void 0);
|
|
7201
7203
|
}, d = V(() => {
|
|
7202
7204
|
const h = a.isV4;
|
|
7203
|
-
return
|
|
7205
|
+
return Dn.setCoreStore(i).taxSetting(h);
|
|
7204
7206
|
}), c = V(() => {
|
|
7205
7207
|
var h;
|
|
7206
|
-
return
|
|
7208
|
+
return Dn.getSelectedTax(
|
|
7207
7209
|
n.form.taxes,
|
|
7208
7210
|
(h = n.fallback) == null ? void 0 : h.taxes,
|
|
7209
7211
|
d.value.countryTaxOptions
|
|
@@ -7240,7 +7242,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7240
7242
|
typeof I == "number" && l(
|
|
7241
7243
|
"update:form",
|
|
7242
7244
|
"price",
|
|
7243
|
-
|
|
7245
|
+
Be.fromNumber({
|
|
7244
7246
|
number: I
|
|
7245
7247
|
}).toObject()
|
|
7246
7248
|
);
|
|
@@ -7269,8 +7271,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7269
7271
|
default: W(() => {
|
|
7270
7272
|
var S;
|
|
7271
7273
|
return [
|
|
7272
|
-
B("div",
|
|
7273
|
-
R(
|
|
7274
|
+
B("div", Xc, [
|
|
7275
|
+
R(Dt, {
|
|
7274
7276
|
disable: v.value.length > 0 && b(a).currentCatalog && !b(a).currentScheduler,
|
|
7275
7277
|
min: 0,
|
|
7276
7278
|
"model-value": h.form.price || null,
|
|
@@ -7303,7 +7305,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7303
7305
|
placeholder: "--",
|
|
7304
7306
|
class: "flex-1",
|
|
7305
7307
|
"shift-menu": "",
|
|
7306
|
-
"onUpdate:modelValue": k[1] || (k[1] = (I) => l("update:form", "taxes", [b(
|
|
7308
|
+
"onUpdate:modelValue": k[1] || (k[1] = (I) => l("update:form", "taxes", [b(Dn).decodeTax(I)]))
|
|
7307
7309
|
}, null, 8, ["disabled", "items", "label", "model-value"])
|
|
7308
7310
|
]),
|
|
7309
7311
|
!h.isOverride && b(a).isV4 ? (U(), J(bt, {
|
|
@@ -7339,7 +7341,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7339
7341
|
default: W(() => {
|
|
7340
7342
|
var I, N, M;
|
|
7341
7343
|
return [
|
|
7342
|
-
B("div",
|
|
7344
|
+
B("div", qc, [
|
|
7343
7345
|
R(T, {
|
|
7344
7346
|
disabled: !s.value.openPrice || h.isAddon,
|
|
7345
7347
|
"model-value": h.form.openPrice ?? ((I = h.fallback) == null ? void 0 : I.openPrice) ?? !1,
|
|
@@ -7348,7 +7350,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7348
7350
|
sublabel: b(r)("menu.product.form.price.settings.open_price.sublabel"),
|
|
7349
7351
|
"onUpdate:modelValue": k[3] || (k[3] = (P) => l("update:form", "openPrice", P))
|
|
7350
7352
|
}, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
|
|
7351
|
-
B("div",
|
|
7353
|
+
B("div", Jc, [
|
|
7352
7354
|
R(T, {
|
|
7353
7355
|
disabled: !s.value.unit || h.isAddon,
|
|
7354
7356
|
"model-value": u.value,
|
|
@@ -7357,9 +7359,9 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7357
7359
|
sublabel: b(r)("menu.product.form.price.settings.sell_by_unit.sublabel"),
|
|
7358
7360
|
"onUpdate:modelValue": m
|
|
7359
7361
|
}, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
|
|
7360
|
-
u.value ? (U(), re("div",
|
|
7361
|
-
B("p",
|
|
7362
|
-
B("div",
|
|
7362
|
+
u.value ? (U(), re("div", Zc, [
|
|
7363
|
+
B("p", Qc, Ee(b(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
|
|
7364
|
+
B("div", ed, [
|
|
7363
7365
|
R(y, {
|
|
7364
7366
|
disabled: !s.value.unit,
|
|
7365
7367
|
"model-value": h.form.perXUnit || ((N = h.fallback) == null ? void 0 : N.perXUnit) || null,
|
|
@@ -7374,7 +7376,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7374
7376
|
"onUpdate:modelValue": p
|
|
7375
7377
|
}, null, 8, ["disabled", "model-value", "rules", "placeholder"])
|
|
7376
7378
|
]),
|
|
7377
|
-
B("div",
|
|
7379
|
+
B("div", td, [
|
|
7378
7380
|
R(y, {
|
|
7379
7381
|
disabled: !s.value.unit,
|
|
7380
7382
|
"model-value": h.form.unit || ((M = h.fallback) == null ? void 0 : M.unit) || null,
|
|
@@ -7387,44 +7389,44 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7387
7389
|
])
|
|
7388
7390
|
])) : se("", !0)
|
|
7389
7391
|
]),
|
|
7390
|
-
s.value.costing ? (U(), re("div",
|
|
7392
|
+
s.value.costing ? (U(), re("div", nd, [
|
|
7391
7393
|
R(T, {
|
|
7392
7394
|
"model-value": !!h.form.costing,
|
|
7393
7395
|
value: !!h.form.costing,
|
|
7394
7396
|
label: b(r)("menu.product.form.price.settings.track_costing.label"),
|
|
7395
|
-
"onUpdate:modelValue": k[5] || (k[5] = (P) => l("update:form", "costing", P ? b(
|
|
7397
|
+
"onUpdate:modelValue": k[5] || (k[5] = (P) => l("update:form", "costing", P ? b(Be).zero().toObject() : void 0))
|
|
7396
7398
|
}, null, 8, ["model-value", "value", "label"]),
|
|
7397
|
-
h.form.costing ? (U(), re("div",
|
|
7398
|
-
B("div",
|
|
7399
|
-
R(
|
|
7399
|
+
h.form.costing ? (U(), re("div", id, [
|
|
7400
|
+
B("div", od, [
|
|
7401
|
+
R(Dt, {
|
|
7400
7402
|
class: "w-full",
|
|
7401
7403
|
min: 0,
|
|
7402
7404
|
"model-value": h.form.costing || null,
|
|
7403
7405
|
nullable: "",
|
|
7404
7406
|
"show-currency": "",
|
|
7405
|
-
"onUpdate:modelValue": k[6] || (k[6] = (P) => l("update:form", "costing", P ?? b(
|
|
7407
|
+
"onUpdate:modelValue": k[6] || (k[6] = (P) => l("update:form", "costing", P ?? b(Be).zero().toObject()))
|
|
7406
7408
|
}, null, 8, ["model-value"])
|
|
7407
7409
|
])
|
|
7408
7410
|
])) : se("", !0)
|
|
7409
7411
|
])) : se("", !0),
|
|
7410
|
-
s.value.minPrice ? (U(), re("div",
|
|
7412
|
+
s.value.minPrice ? (U(), re("div", ad, [
|
|
7411
7413
|
R(T, {
|
|
7412
7414
|
disabled: !s.value.minPrice || h.isAddon,
|
|
7413
7415
|
"model-value": !!h.form.minPrice,
|
|
7414
7416
|
value: !!h.form.minPrice,
|
|
7415
7417
|
label: b(r)("menu.product.form.price.settings.min_price.label"),
|
|
7416
|
-
"onUpdate:modelValue": k[7] || (k[7] = (P) => l("update:form", "minPrice", P ? b(
|
|
7418
|
+
"onUpdate:modelValue": k[7] || (k[7] = (P) => l("update:form", "minPrice", P ? b(Be).zero().toObject() : void 0))
|
|
7417
7419
|
}, null, 8, ["disabled", "model-value", "value", "label"]),
|
|
7418
|
-
B("div",
|
|
7419
|
-
B("div",
|
|
7420
|
-
h.form.minPrice ? (U(), J(
|
|
7420
|
+
B("div", rd, [
|
|
7421
|
+
B("div", sd, [
|
|
7422
|
+
h.form.minPrice ? (U(), J(Dt, {
|
|
7421
7423
|
key: 0,
|
|
7422
|
-
max: b(
|
|
7424
|
+
max: b(Be).fromFdoDinero(h.form.price).toUnit(),
|
|
7423
7425
|
min: 0,
|
|
7424
7426
|
"model-value": h.form.minPrice || null,
|
|
7425
7427
|
class: "flex-1",
|
|
7426
7428
|
"show-currency": "",
|
|
7427
|
-
"onUpdate:modelValue": k[8] || (k[8] = (P) => l("update:form", "minPrice", P ?? b(
|
|
7429
|
+
"onUpdate:modelValue": k[8] || (k[8] = (P) => l("update:form", "minPrice", P ?? b(Be).zero().toObject()))
|
|
7428
7430
|
}, null, 8, ["max", "model-value"])) : se("", !0)
|
|
7429
7431
|
])
|
|
7430
7432
|
])
|
|
@@ -7440,7 +7442,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7440
7442
|
}, 8, ["title"]);
|
|
7441
7443
|
};
|
|
7442
7444
|
}
|
|
7443
|
-
}),
|
|
7445
|
+
}), ud = { class: "fm-typo-en-title-md-600" }, cd = { class: "pt-8 space-y-24" }, dd = { class: "flex gap-8 items-center justify-start" }, md = /* @__PURE__ */ ge({
|
|
7444
7446
|
__name: "Form",
|
|
7445
7447
|
props: {
|
|
7446
7448
|
initialValue: {},
|
|
@@ -7495,7 +7497,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7495
7497
|
id: "variant-form",
|
|
7496
7498
|
modelValue: s.value,
|
|
7497
7499
|
"onUpdate:modelValue": c[3] || (c[3] = (w) => s.value = w),
|
|
7498
|
-
"is-container": b(
|
|
7500
|
+
"is-container": b(Ge).FmForm,
|
|
7499
7501
|
"is-container-props": {
|
|
7500
7502
|
onValidationSuccess: m,
|
|
7501
7503
|
blameFormChildOnValidationFailed: !0
|
|
@@ -7504,10 +7506,10 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7504
7506
|
"dismiss-away": ""
|
|
7505
7507
|
}, {
|
|
7506
7508
|
"side-sheet-header": W(() => [
|
|
7507
|
-
B("p",
|
|
7509
|
+
B("p", ud, Ee(a.value), 1)
|
|
7508
7510
|
]),
|
|
7509
7511
|
"side-sheet-footer": W(() => [
|
|
7510
|
-
B("div",
|
|
7512
|
+
B("div", dd, [
|
|
7511
7513
|
R(E, {
|
|
7512
7514
|
label: o.value,
|
|
7513
7515
|
loading: l.value,
|
|
@@ -7524,7 +7526,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7524
7526
|
])
|
|
7525
7527
|
]),
|
|
7526
7528
|
default: W(() => [
|
|
7527
|
-
B("div",
|
|
7529
|
+
B("div", cd, [
|
|
7528
7530
|
R(p, {
|
|
7529
7531
|
modelValue: r.value.name,
|
|
7530
7532
|
"onUpdate:modelValue": c[0] || (c[0] = (w) => r.value.name = w),
|
|
@@ -7536,7 +7538,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7536
7538
|
autofocus: "",
|
|
7537
7539
|
label: b(t)("menu.print_dept.columns.name")
|
|
7538
7540
|
}, null, 8, ["modelValue", "rules", "label"]),
|
|
7539
|
-
d.applyProduct ? (U(), J(
|
|
7541
|
+
d.applyProduct ? (U(), J(ir, {
|
|
7540
7542
|
key: 0,
|
|
7541
7543
|
overrides: r.value.usedBy || [],
|
|
7542
7544
|
"select-variant": !1,
|
|
@@ -7551,7 +7553,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7551
7553
|
], 64);
|
|
7552
7554
|
};
|
|
7553
7555
|
}
|
|
7554
|
-
}),
|
|
7556
|
+
}), pd = md, fd = { class: "space-y-16" }, hd = { class: "flex items-center space-x-4" }, gd = { class: "handle" }, vd = { class: "pt-16" }, _d = /* @__PURE__ */ ge({
|
|
7555
7557
|
__name: "ProductPrint",
|
|
7556
7558
|
props: {
|
|
7557
7559
|
isOverride: { type: Boolean },
|
|
@@ -7660,7 +7662,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7660
7662
|
"onUpdate:modelValue": h[1] || (h[1] = (S) => p(S))
|
|
7661
7663
|
}, {
|
|
7662
7664
|
default: W(() => [
|
|
7663
|
-
B("div",
|
|
7665
|
+
B("div", fd, [
|
|
7664
7666
|
(U(!0), re(Ve, null, rt(w.value, (S, I) => (U(), J(O, {
|
|
7665
7667
|
key: I,
|
|
7666
7668
|
label: S.label,
|
|
@@ -7686,8 +7688,8 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7686
7688
|
item: W(({ element: S }) => {
|
|
7687
7689
|
var I, N, M, P, z;
|
|
7688
7690
|
return [
|
|
7689
|
-
B("div",
|
|
7690
|
-
B("div",
|
|
7691
|
+
B("div", hd, [
|
|
7692
|
+
B("div", gd, [
|
|
7691
7693
|
u.value ? (U(), J(T, {
|
|
7692
7694
|
key: 0,
|
|
7693
7695
|
disabled: !((N = (I = n.form.print) == null ? void 0 : I.department) != null && N.includes(S)),
|
|
@@ -7705,16 +7707,16 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7705
7707
|
"model-value": (((z = n.form.print) == null ? void 0 : z.department) ?? []).includes(S),
|
|
7706
7708
|
value: S,
|
|
7707
7709
|
class: "flex-1",
|
|
7708
|
-
"onUpdate:modelValue": (
|
|
7710
|
+
"onUpdate:modelValue": (F) => _(S, F)
|
|
7709
7711
|
}, null, 8, ["id", "data-checked", "label", "model-value", "value", "onUpdate:modelValue"])
|
|
7710
7712
|
])
|
|
7711
7713
|
];
|
|
7712
7714
|
}),
|
|
7713
7715
|
_: 1
|
|
7714
7716
|
}, 8, ["item-key", "model-value"])) : se("", !0),
|
|
7715
|
-
R(b(
|
|
7717
|
+
R(b(pd), { "apply-product": !1 }, {
|
|
7716
7718
|
default: W(({ trigger: S }) => [
|
|
7717
|
-
B("div",
|
|
7719
|
+
B("div", vd, [
|
|
7718
7720
|
R(T, {
|
|
7719
7721
|
variant: b(Rt).Secondary,
|
|
7720
7722
|
label: b(a)("menu.product.form.print.routes.add"),
|
|
@@ -7735,7 +7737,7 @@ const Rc = { class: "fm-typo-en-title-md-600" }, Cc = {
|
|
|
7735
7737
|
};
|
|
7736
7738
|
}
|
|
7737
7739
|
});
|
|
7738
|
-
function
|
|
7740
|
+
function bd(e, t, n) {
|
|
7739
7741
|
const i = V(() => {
|
|
7740
7742
|
var s, u;
|
|
7741
7743
|
return !!((u = (s = e.form.variant) == null ? void 0 : s.variantCombinations) != null && u.length);
|
|
@@ -7784,7 +7786,7 @@ function _d(e, t, n) {
|
|
|
7784
7786
|
takeaways: l
|
|
7785
7787
|
};
|
|
7786
7788
|
}
|
|
7787
|
-
const
|
|
7789
|
+
const yd = /* @__PURE__ */ ge({
|
|
7788
7790
|
__name: "ProductTakeaway",
|
|
7789
7791
|
props: {
|
|
7790
7792
|
isOverride: {
|
|
@@ -7806,7 +7808,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7806
7808
|
} = ke(), l = t, {
|
|
7807
7809
|
hasVariant: s,
|
|
7808
7810
|
takeaways: u
|
|
7809
|
-
} =
|
|
7811
|
+
} = bd(n, l, a), m = V(() => [n.isOverride ? {
|
|
7810
7812
|
label: r("menu.product.form.takeaway.options.follows_main"),
|
|
7811
7813
|
value: null
|
|
7812
7814
|
} : {
|
|
@@ -7825,7 +7827,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7825
7827
|
header: () => r("menu.product.form.takeaway.columns.takeaway"),
|
|
7826
7828
|
cell: (c) => {
|
|
7827
7829
|
const p = c.getValue(), E = c.row.original;
|
|
7828
|
-
return
|
|
7830
|
+
return De(Ja, {
|
|
7829
7831
|
action: "add",
|
|
7830
7832
|
applyProduct: !1,
|
|
7831
7833
|
bindToVariant: i.rules.item.bindToVariant,
|
|
@@ -7840,7 +7842,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7840
7842
|
}, {
|
|
7841
7843
|
default: ({
|
|
7842
7844
|
trigger: _
|
|
7843
|
-
}) =>
|
|
7845
|
+
}) => De(Ge.FmSelect, {
|
|
7844
7846
|
modelValue: p || null,
|
|
7845
7847
|
menuZIndex: 103,
|
|
7846
7848
|
items: m.value,
|
|
@@ -7849,15 +7851,15 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7849
7851
|
E.onUpdate(w || "");
|
|
7850
7852
|
}
|
|
7851
7853
|
}, {
|
|
7852
|
-
"append-menu": () => i.rules.takeaway.create ?
|
|
7854
|
+
"append-menu": () => i.rules.takeaway.create ? De("button", {
|
|
7853
7855
|
class: "flex items-center py-8 px-16 space-x-8",
|
|
7854
7856
|
type: "button",
|
|
7855
7857
|
onClick: _
|
|
7856
|
-
}, [
|
|
7858
|
+
}, [De(Ge.FmIcon, {
|
|
7857
7859
|
name: "add",
|
|
7858
7860
|
size: "md",
|
|
7859
7861
|
color: "primary"
|
|
7860
|
-
}),
|
|
7862
|
+
}), De("p", {
|
|
7861
7863
|
class: "fm-typo-en-body-lg-600 text-fm-color-primary"
|
|
7862
7864
|
}, [r("menu.product.form.takeaway.options.add_new")])]) : null
|
|
7863
7865
|
})
|
|
@@ -7880,13 +7882,13 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7880
7882
|
}, 8, ["title", "sub-title"]);
|
|
7881
7883
|
};
|
|
7882
7884
|
}
|
|
7883
|
-
}),
|
|
7885
|
+
}), wd = {
|
|
7884
7886
|
key: 0,
|
|
7885
7887
|
class: "flex flex-col space-y-16 h-[440px]"
|
|
7886
|
-
},
|
|
7888
|
+
}, Ed = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Sd = { class: "flex justify-between pb-16" }, kd = { class: "flex gap-8" }, Od = {
|
|
7887
7889
|
key: 1,
|
|
7888
7890
|
class: "flex flex-col items-center space-y-16"
|
|
7889
|
-
},
|
|
7891
|
+
}, Rd = { class: "flex flex-col items-center space-y-4 w-full" }, Cd = { class: "fm-typo-en-title-sm-600" }, Ad = { class: "text-fm-color-typo-secondary" }, Id = /* @__PURE__ */ ge({
|
|
7890
7892
|
__name: "SelectVariantDialog",
|
|
7891
7893
|
props: {
|
|
7892
7894
|
selectedVariants: {}
|
|
@@ -7901,7 +7903,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7901
7903
|
};
|
|
7902
7904
|
return (d, c) => {
|
|
7903
7905
|
const p = K("FmSearch"), E = K("FmCheckbox"), _ = K("FmButton");
|
|
7904
|
-
return l.value.length > 0 ? (U(), re("div",
|
|
7906
|
+
return l.value.length > 0 ? (U(), re("div", wd, [
|
|
7905
7907
|
B("div", null, [
|
|
7906
7908
|
R(p, {
|
|
7907
7909
|
autofocus: "",
|
|
@@ -7910,7 +7912,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7910
7912
|
placeholder: b(o)("menu.common.labels.search_variants")
|
|
7911
7913
|
}, null, 8, ["modelValue", "placeholder"])
|
|
7912
7914
|
]),
|
|
7913
|
-
B("div",
|
|
7915
|
+
B("div", Ed, [
|
|
7914
7916
|
B("div", null, [
|
|
7915
7917
|
(U(!0), re(Ve, null, rt(l.value, (w) => (U(), re("div", {
|
|
7916
7918
|
key: w.value
|
|
@@ -7929,7 +7931,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7929
7931
|
]))), 128))
|
|
7930
7932
|
])
|
|
7931
7933
|
]),
|
|
7932
|
-
B("div",
|
|
7934
|
+
B("div", Sd, [
|
|
7933
7935
|
R(b(Ri), null, {
|
|
7934
7936
|
default: W(({ trigger: w }) => [
|
|
7935
7937
|
b(a).rules.item.variant ? (U(), J(_, {
|
|
@@ -7942,7 +7944,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7942
7944
|
]),
|
|
7943
7945
|
_: 1
|
|
7944
7946
|
}),
|
|
7945
|
-
B("div",
|
|
7947
|
+
B("div", kd, [
|
|
7946
7948
|
R(_, {
|
|
7947
7949
|
label: b(o)("menu.common.actions.cancel"),
|
|
7948
7950
|
variant: "tertiary",
|
|
@@ -7954,10 +7956,10 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7954
7956
|
}, null, 8, ["label"])
|
|
7955
7957
|
])
|
|
7956
7958
|
])
|
|
7957
|
-
])) : (U(), re("div",
|
|
7958
|
-
B("div",
|
|
7959
|
-
B("p",
|
|
7960
|
-
B("p",
|
|
7959
|
+
])) : (U(), re("div", Od, [
|
|
7960
|
+
B("div", Rd, [
|
|
7961
|
+
B("p", Cd, Ee(b(o)("menu.common.empty.no_variant.title")), 1),
|
|
7962
|
+
B("p", Ad, Ee(b(o)("menu.common.empty.no_variant.subtitle")), 1)
|
|
7961
7963
|
]),
|
|
7962
7964
|
R(b(Ri), null, {
|
|
7963
7965
|
default: W(({ trigger: w }) => [
|
|
@@ -7972,15 +7974,15 @@ const bd = /* @__PURE__ */ ge({
|
|
|
7972
7974
|
]));
|
|
7973
7975
|
};
|
|
7974
7976
|
}
|
|
7975
|
-
}),
|
|
7977
|
+
}), Td = {
|
|
7976
7978
|
class: "space-y-16"
|
|
7977
|
-
}, Td = {
|
|
7978
|
-
class: "flex items-center space-x-8"
|
|
7979
7979
|
}, Md = {
|
|
7980
|
+
class: "flex items-center space-x-8"
|
|
7981
|
+
}, Fd = {
|
|
7980
7982
|
class: "flex items-center flex-1 h-[36px] px-8 border border-fm-color-neutral-gray-300 rounded-md bg-fm-color-neutral-white"
|
|
7981
7983
|
}, Dd = {
|
|
7982
7984
|
class: "flex-1 fm-typo-en-body-lg-400"
|
|
7983
|
-
},
|
|
7985
|
+
}, Nd = /* @__PURE__ */ ge({
|
|
7984
7986
|
__name: "ProductVariants",
|
|
7985
7987
|
props: {
|
|
7986
7988
|
isOverride: {
|
|
@@ -8034,7 +8036,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8034
8036
|
var S;
|
|
8035
8037
|
r.open({
|
|
8036
8038
|
title: "Add variant",
|
|
8037
|
-
contentComponent:
|
|
8039
|
+
contentComponent: Id,
|
|
8038
8040
|
contentComponentProps: {
|
|
8039
8041
|
selectedVariants: ((S = n.form.variant) == null ? void 0 : S.variantGroupIds) ?? []
|
|
8040
8042
|
}
|
|
@@ -8043,8 +8045,8 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8043
8045
|
});
|
|
8044
8046
|
}
|
|
8045
8047
|
function w(S) {
|
|
8046
|
-
var
|
|
8047
|
-
const I = ((
|
|
8048
|
+
var F, C;
|
|
8049
|
+
const I = ((F = n.form.variant) == null ? void 0 : F.variantGroupIds) || [], N = (C = n.form.variant) == null ? void 0 : C.variantCombinations, z = S.split(/(?=variant)/g).map(($) => $.replace(/\/*$/, "")).filter(($) => I.some((le) => $.includes(le))).join("/");
|
|
8048
8050
|
return N == null ? void 0 : N.find(($) => $.combinationKey === z);
|
|
8049
8051
|
}
|
|
8050
8052
|
const v = (S) => {
|
|
@@ -8054,8 +8056,8 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8054
8056
|
return (((I = n.form.variant) == null ? void 0 : I.variantCombinations) || []).map((N) => {
|
|
8055
8057
|
var P, z;
|
|
8056
8058
|
const M = (z = (P = n.fallback) == null ? void 0 : P.variant) == null ? void 0 : z.variantCombinations.find(({
|
|
8057
|
-
combinationKey:
|
|
8058
|
-
}) =>
|
|
8059
|
+
combinationKey: F
|
|
8060
|
+
}) => F === N.combinationKey);
|
|
8059
8061
|
return {
|
|
8060
8062
|
...N,
|
|
8061
8063
|
fallback: {
|
|
@@ -8074,7 +8076,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8074
8076
|
const N = S.filter((z) => !!z);
|
|
8075
8077
|
let M;
|
|
8076
8078
|
if (N.length) {
|
|
8077
|
-
const z = N.map((C) => i.variants.find(($) => $._id === C)),
|
|
8079
|
+
const z = N.map((C) => i.variants.find(($) => $._id === C)), F = Je.fullVariantCombination(z).map(({
|
|
8078
8080
|
combinationKey: C
|
|
8079
8081
|
}) => {
|
|
8080
8082
|
var le;
|
|
@@ -8084,7 +8086,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8084
8086
|
combinationKey: C
|
|
8085
8087
|
});
|
|
8086
8088
|
});
|
|
8087
|
-
if (
|
|
8089
|
+
if (F.length > 100) {
|
|
8088
8090
|
o.open({
|
|
8089
8091
|
type: "error",
|
|
8090
8092
|
message: "'Combinations of variant should not be more than 100'"
|
|
@@ -8095,23 +8097,23 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8095
8097
|
...n.form,
|
|
8096
8098
|
variant: {
|
|
8097
8099
|
variantGroupIds: N,
|
|
8098
|
-
variantCombinations:
|
|
8100
|
+
variantCombinations: F
|
|
8099
8101
|
},
|
|
8100
8102
|
inventoryBindings: null,
|
|
8101
8103
|
takeawayUsed: null
|
|
8102
8104
|
};
|
|
8103
8105
|
} else {
|
|
8104
|
-
const z = (P = n.form.variant) == null ? void 0 : P.variantCombinations.map((C) => C.takeawayUsed),
|
|
8106
|
+
const z = (P = n.form.variant) == null ? void 0 : P.variantCombinations.map((C) => C.takeawayUsed), F = [...new Set(z)];
|
|
8105
8107
|
p([{
|
|
8106
8108
|
key: "variant",
|
|
8107
8109
|
value: void 0
|
|
8108
8110
|
}, {
|
|
8109
8111
|
key: "takeawayUsed",
|
|
8110
|
-
value:
|
|
8112
|
+
value: F.length === 1 ? F[0] : null
|
|
8111
8113
|
}]), M = {
|
|
8112
8114
|
...n.form,
|
|
8113
8115
|
variant: void 0,
|
|
8114
|
-
takeawayUsed:
|
|
8116
|
+
takeawayUsed: F.length === 1 ? F[0] : null
|
|
8115
8117
|
};
|
|
8116
8118
|
}
|
|
8117
8119
|
c("replace:form", a.initDynamicGroupItem(M));
|
|
@@ -8136,9 +8138,9 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8136
8138
|
header: () => l("menu.product.form.variant.columns.code"),
|
|
8137
8139
|
enableSorting: !1,
|
|
8138
8140
|
cell: (S) => {
|
|
8139
|
-
var z,
|
|
8140
|
-
const I = S.getValue(), P = ((z = S.row.original.fallback) == null ? void 0 : z.code) ?? n.form.code ?? ((
|
|
8141
|
-
return R(
|
|
8141
|
+
var z, F;
|
|
8142
|
+
const I = S.getValue(), P = ((z = S.row.original.fallback) == null ? void 0 : z.code) ?? n.form.code ?? ((F = n.fallback) == null ? void 0 : F.code);
|
|
8143
|
+
return R(Ge.FmTextField, {
|
|
8142
8144
|
modelValue: I,
|
|
8143
8145
|
placeholder: P || l("menu.product.form.variant.placeholders.no_code"),
|
|
8144
8146
|
"onUpdate:model-value": (C) => {
|
|
@@ -8159,8 +8161,8 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8159
8161
|
disable: !s.value.orderFrom,
|
|
8160
8162
|
required: s.value.orderFrom && s.value.orderFromActiveOnly,
|
|
8161
8163
|
editActiveOnly: s.value.orderFromActiveOnly || !1,
|
|
8162
|
-
"onUpdate:model-value": (
|
|
8163
|
-
O(S.row.index, "orderFrom",
|
|
8164
|
+
"onUpdate:model-value": (F) => {
|
|
8165
|
+
O(S.row.index, "orderFrom", F);
|
|
8164
8166
|
},
|
|
8165
8167
|
label: "",
|
|
8166
8168
|
defaultLabel: "Follow general"
|
|
@@ -8172,11 +8174,11 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8172
8174
|
size: 200,
|
|
8173
8175
|
enableSorting: !1,
|
|
8174
8176
|
cell: (S) => {
|
|
8175
|
-
var z,
|
|
8176
|
-
const I = S.getValue(), N = S.row.original, P = ((z = N.fallback) == null ? void 0 : z.price) ?? n.form.price ?? ((
|
|
8177
|
+
var z, F, C;
|
|
8178
|
+
const I = S.getValue(), N = S.row.original, P = ((z = N.fallback) == null ? void 0 : z.price) ?? n.form.price ?? ((F = n.fallback) == null ? void 0 : F.price);
|
|
8177
8179
|
return R("div", {
|
|
8178
8180
|
class: "flex items-center gap-8"
|
|
8179
|
-
}, [R(
|
|
8181
|
+
}, [R(Dt, {
|
|
8180
8182
|
disable: A.value.length > 0 && i.currentCatalog && !i.currentScheduler,
|
|
8181
8183
|
placeholder: P ? Gt(P) : void 0,
|
|
8182
8184
|
modelValue: I,
|
|
@@ -8197,12 +8199,12 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8197
8199
|
header: () => l("menu.product.form.variant.columns.min_price"),
|
|
8198
8200
|
enableSorting: !1,
|
|
8199
8201
|
cell: (S) => {
|
|
8200
|
-
var z,
|
|
8201
|
-
const I = S.getValue(), N = S.row.original, P = ((z = N.fallback) == null ? void 0 : z.minPrice) ?? n.form.minPrice ?? ((
|
|
8202
|
-
return R(
|
|
8202
|
+
var z, F, C;
|
|
8203
|
+
const I = S.getValue(), N = S.row.original, P = ((z = N.fallback) == null ? void 0 : z.minPrice) ?? n.form.minPrice ?? ((F = n.fallback) == null ? void 0 : F.minPrice);
|
|
8204
|
+
return R(Dt, {
|
|
8203
8205
|
placeholder: P ? Gt(P) : void 0,
|
|
8204
8206
|
modelValue: I,
|
|
8205
|
-
max:
|
|
8207
|
+
max: Be.fromFdoDinero(N.price ?? ((C = N.fallback) == null ? void 0 : C.price) ?? Be.zero().toObject()).toUnit(),
|
|
8206
8208
|
"onUpdate:model-value": ($) => {
|
|
8207
8209
|
O(S.row.index, "minPrice", $);
|
|
8208
8210
|
},
|
|
@@ -8232,9 +8234,9 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8232
8234
|
onClick: _
|
|
8233
8235
|
}, null, 8, ["label"])) : se("", !0)]),
|
|
8234
8236
|
default: W(() => {
|
|
8235
|
-
var
|
|
8236
|
-
return [B("div",
|
|
8237
|
-
"model-value": (
|
|
8237
|
+
var F;
|
|
8238
|
+
return [B("div", Td, [R(P, {
|
|
8239
|
+
"model-value": (F = S.form.variant) == null ? void 0 : F.variantGroupIds,
|
|
8238
8240
|
rules: [x]
|
|
8239
8241
|
}, {
|
|
8240
8242
|
default: W(() => {
|
|
@@ -8251,11 +8253,11 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8251
8253
|
element: $
|
|
8252
8254
|
}) => {
|
|
8253
8255
|
var le;
|
|
8254
|
-
return [B("div",
|
|
8256
|
+
return [B("div", Md, [R(N, {
|
|
8255
8257
|
variant: b(Rt).Tertiary,
|
|
8256
8258
|
class: "handle",
|
|
8257
8259
|
"prepend-icon": "drag_handle"
|
|
8258
|
-
}, null, 8, ["variant"]), B("div",
|
|
8260
|
+
}, null, 8, ["variant"]), B("div", Fd, [B("p", Dd, Ee((le = d.value[$]) == null ? void 0 : le.name), 1), R(M, {
|
|
8259
8261
|
class: "cursor-pointer",
|
|
8260
8262
|
name: "close",
|
|
8261
8263
|
onClick: On((ce) => {
|
|
@@ -8286,30 +8288,30 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8286
8288
|
}, 8, ["title", "sub-title"]);
|
|
8287
8289
|
};
|
|
8288
8290
|
}
|
|
8289
|
-
}),
|
|
8291
|
+
}), Pd = {
|
|
8290
8292
|
class: /* @__PURE__ */ Ke(["flex", "space-x-40", "max-w-[1200px] mx-auto w-full"])
|
|
8291
|
-
},
|
|
8293
|
+
}, Ld = {
|
|
8292
8294
|
key: 1,
|
|
8293
8295
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8294
|
-
},
|
|
8296
|
+
}, xd = {
|
|
8295
8297
|
key: 3,
|
|
8296
8298
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8297
|
-
},
|
|
8299
|
+
}, Ud = {
|
|
8298
8300
|
key: 4,
|
|
8299
8301
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8300
|
-
},
|
|
8302
|
+
}, Vd = {
|
|
8301
8303
|
key: 6,
|
|
8302
8304
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8303
|
-
},
|
|
8305
|
+
}, zd = {
|
|
8304
8306
|
key: 7,
|
|
8305
8307
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8306
|
-
},
|
|
8308
|
+
}, $d = {
|
|
8307
8309
|
key: 9,
|
|
8308
8310
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8309
|
-
},
|
|
8311
|
+
}, Gd = {
|
|
8310
8312
|
key: 11,
|
|
8311
8313
|
class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
|
|
8312
|
-
},
|
|
8314
|
+
}, Bd = /* @__PURE__ */ ge({
|
|
8313
8315
|
__name: "Form",
|
|
8314
8316
|
props: {
|
|
8315
8317
|
initialForm: {},
|
|
@@ -8343,7 +8345,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8343
8345
|
() => n.initialForm,
|
|
8344
8346
|
async () => {
|
|
8345
8347
|
if (n.initialForm)
|
|
8346
|
-
E.value = await
|
|
8348
|
+
E.value = await Ya(
|
|
8347
8349
|
a.state.menu,
|
|
8348
8350
|
n.initialForm._id
|
|
8349
8351
|
);
|
|
@@ -8365,7 +8367,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8365
8367
|
Le(
|
|
8366
8368
|
() => p.value.thumbnail,
|
|
8367
8369
|
async (f) => {
|
|
8368
|
-
f && (typeof f == "string" ? h.value = await
|
|
8370
|
+
f && (typeof f == "string" ? h.value = await Tr(f, "thumbnail.jpg", "image/jpeg") : h.value = f);
|
|
8369
8371
|
},
|
|
8370
8372
|
{
|
|
8371
8373
|
immediate: !0
|
|
@@ -8379,7 +8381,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8379
8381
|
};
|
|
8380
8382
|
async function O() {
|
|
8381
8383
|
var f, g;
|
|
8382
|
-
c.value = p.value._id && A.value ? (await
|
|
8384
|
+
c.value = p.value._id && A.value ? (await Xa(
|
|
8383
8385
|
a.mergedMenu,
|
|
8384
8386
|
[p.value],
|
|
8385
8387
|
a.state.menu,
|
|
@@ -8400,13 +8402,13 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8400
8402
|
(Y = c.value) == null ? void 0 : Y.taxes,
|
|
8401
8403
|
a.taxSetting.countryTaxOptions
|
|
8402
8404
|
), L = a.taxSetting.countryTaxOptions.find((X) => X.value === f);
|
|
8403
|
-
return L ?
|
|
8405
|
+
return L ? Pa(L.meta.rate) : "-";
|
|
8404
8406
|
}
|
|
8405
8407
|
function S() {
|
|
8406
8408
|
h.value = null, p.value.thumbnail = null;
|
|
8407
8409
|
}
|
|
8408
8410
|
const I = V(() => {
|
|
8409
|
-
var f, g, L, Y, X, ue,
|
|
8411
|
+
var f, g, L, Y, X, ue, D, H, he;
|
|
8410
8412
|
return {
|
|
8411
8413
|
title: r("menu.product.form.summary.title"),
|
|
8412
8414
|
items: [
|
|
@@ -8428,7 +8430,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8428
8430
|
},
|
|
8429
8431
|
{
|
|
8430
8432
|
name: r("menu.product.form.summary.fields.selling_price"),
|
|
8431
|
-
value: p.value.price ?
|
|
8433
|
+
value: p.value.price ? Be.fromFdoDinero(p.value.price).toFormat() : (X = c.value) != null && X.price ? Be.fromFdoDinero(c.value.price).toFormat() : "-"
|
|
8432
8434
|
},
|
|
8433
8435
|
{
|
|
8434
8436
|
name: r("menu.product.form.summary.fields.tax"),
|
|
@@ -8436,7 +8438,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8436
8438
|
},
|
|
8437
8439
|
{
|
|
8438
8440
|
name: r("menu.product.form.summary.fields.inventory"),
|
|
8439
|
-
value: (ue = p.value.inventoryBindings) != null && ue.length ? String(p.value.inventoryBindings.length) : (H = (
|
|
8441
|
+
value: (ue = p.value.inventoryBindings) != null && ue.length ? String(p.value.inventoryBindings.length) : (H = (D = c.value) == null ? void 0 : D.inventoryBindings) != null && H.length ? String(c.value.inventoryBindings.length) : "-"
|
|
8440
8442
|
},
|
|
8441
8443
|
{
|
|
8442
8444
|
name: r("menu.product.form.summary.fields.takeaway"),
|
|
@@ -8469,7 +8471,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8469
8471
|
typeof X == "string" && X && !((L = f[Y]) != null && L.includes(X)) && (f[Y] = [...f[Y] || [], X]);
|
|
8470
8472
|
}), f;
|
|
8471
8473
|
}), z = oe(!!p.value.price || !!p.value.minPrice || !!p.value.costing);
|
|
8472
|
-
function
|
|
8474
|
+
function F(f) {
|
|
8473
8475
|
f || (p.value = {
|
|
8474
8476
|
...p.value,
|
|
8475
8477
|
costing: void 0,
|
|
@@ -8591,7 +8593,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8591
8593
|
console.log(f);
|
|
8592
8594
|
}
|
|
8593
8595
|
});
|
|
8594
|
-
const ee =
|
|
8596
|
+
const ee = Ar();
|
|
8595
8597
|
$t(() => {
|
|
8596
8598
|
ee.isUpdatingItem || (ee.isUpdatingItem = !0, ee.storedCatalogId = a.state.currentCatalogId, ee.storedSchedulerId = a.state.currentSchedulerId);
|
|
8597
8599
|
});
|
|
@@ -8601,7 +8603,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8601
8603
|
function ve() {
|
|
8602
8604
|
A.value && [
|
|
8603
8605
|
[N.value, M],
|
|
8604
|
-
[z.value,
|
|
8606
|
+
[z.value, F]
|
|
8605
8607
|
].forEach(([g, L]) => {
|
|
8606
8608
|
g || L(!1);
|
|
8607
8609
|
}), i("submit:form", p.value, h.value), d(), Q();
|
|
@@ -8609,12 +8611,12 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8609
8611
|
function Ae() {
|
|
8610
8612
|
d(), Q();
|
|
8611
8613
|
}
|
|
8612
|
-
const { isAtMost: je } = _o(), Lt = oe(null), qt =
|
|
8614
|
+
const { isAtMost: je } = _o(), Lt = oe(null), qt = Ba(Lt);
|
|
8613
8615
|
return (f, g) => (U(), re(Ve, null, [
|
|
8614
8616
|
Ce(f.$slots, "trigger", ka(Oa({
|
|
8615
8617
|
trigger: d
|
|
8616
8618
|
}))),
|
|
8617
|
-
R(
|
|
8619
|
+
R(za, {
|
|
8618
8620
|
title: l.value,
|
|
8619
8621
|
show: m.value,
|
|
8620
8622
|
"primary-action": {
|
|
@@ -8651,18 +8653,18 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8651
8653
|
title: I.value.title,
|
|
8652
8654
|
items: I.value.items
|
|
8653
8655
|
}, null, 8, ["style", "title", "items"])),
|
|
8654
|
-
B("div",
|
|
8656
|
+
B("div", Pd, [
|
|
8655
8657
|
B("div", {
|
|
8656
8658
|
ref_key: "formWrapper",
|
|
8657
8659
|
ref: Lt,
|
|
8658
8660
|
class: Ke(["flex-1 py-24 space-y-24", "xs:w-full"])
|
|
8659
8661
|
}, [
|
|
8660
|
-
E.value && (Object.keys(E.value.catalogs || {}).length > 0 || E.value.schedulers.length > 0) ? (U(), J(
|
|
8662
|
+
E.value && (Object.keys(E.value.catalogs || {}).length > 0 || E.value.schedulers.length > 0) ? (U(), J(br, {
|
|
8661
8663
|
key: 0,
|
|
8662
8664
|
"linked-status": E.value,
|
|
8663
8665
|
"onUpdate:catalogAndScheduler": w
|
|
8664
8666
|
}, null, 8, ["linked-status"])) : se("", !0),
|
|
8665
|
-
R(
|
|
8667
|
+
R($a, { "menu-store": b(a) }, null, 8, ["menu-store"]),
|
|
8666
8668
|
R(Tt, {
|
|
8667
8669
|
toggle: N.value,
|
|
8668
8670
|
"onUpdate:toggle": [
|
|
@@ -8674,7 +8676,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8674
8676
|
title: b(r)("menu.product.form.sections.general.title")
|
|
8675
8677
|
}, {
|
|
8676
8678
|
default: W(() => [
|
|
8677
|
-
R(
|
|
8679
|
+
R(nc, {
|
|
8678
8680
|
fallback: c.value,
|
|
8679
8681
|
form: p.value,
|
|
8680
8682
|
"is-addon": T.value,
|
|
@@ -8688,7 +8690,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8688
8690
|
]),
|
|
8689
8691
|
_: 1
|
|
8690
8692
|
}, 8, ["toggle", "disabled", "description", "title"]),
|
|
8691
|
-
A.value ? se("", !0) : (U(), re("div",
|
|
8693
|
+
A.value ? se("", !0) : (U(), re("div", Ld)),
|
|
8692
8694
|
y.value ? (U(), J(ut, {
|
|
8693
8695
|
key: 2,
|
|
8694
8696
|
title: b(r)("menu.product.form.sections.tagging.title"),
|
|
@@ -8704,19 +8706,19 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8704
8706
|
]),
|
|
8705
8707
|
_: 1
|
|
8706
8708
|
}, 8, ["title", "sub-title"])) : se("", !0),
|
|
8707
|
-
y.value ? (U(), re("div",
|
|
8709
|
+
y.value ? (U(), re("div", xd)) : se("", !0),
|
|
8708
8710
|
R(Tt, {
|
|
8709
8711
|
toggle: z.value,
|
|
8710
8712
|
"onUpdate:toggle": [
|
|
8711
8713
|
g[4] || (g[4] = (X) => z.value = X),
|
|
8712
|
-
g[5] || (g[5] = (X) =>
|
|
8714
|
+
g[5] || (g[5] = (X) => F(X))
|
|
8713
8715
|
],
|
|
8714
8716
|
disabled: !A.value,
|
|
8715
8717
|
description: b(r)("menu.product.form.sections.price.description"),
|
|
8716
8718
|
title: b(r)("menu.product.form.sections.price.title")
|
|
8717
8719
|
}, {
|
|
8718
8720
|
default: W(() => [
|
|
8719
|
-
R(
|
|
8721
|
+
R(ld, {
|
|
8720
8722
|
fallback: c.value,
|
|
8721
8723
|
form: p.value,
|
|
8722
8724
|
"is-addon": T.value,
|
|
@@ -8726,7 +8728,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8726
8728
|
]),
|
|
8727
8729
|
_: 1
|
|
8728
8730
|
}, 8, ["toggle", "disabled", "description", "title"]),
|
|
8729
|
-
s.value.print && !A.value ? (U(), re("div",
|
|
8731
|
+
s.value.print && !A.value ? (U(), re("div", Ud)) : se("", !0),
|
|
8730
8732
|
s.value.print ? (U(), J(Tt, {
|
|
8731
8733
|
key: 5,
|
|
8732
8734
|
toggle: j.value,
|
|
@@ -8739,7 +8741,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8739
8741
|
title: "Update print"
|
|
8740
8742
|
}, {
|
|
8741
8743
|
default: W(() => [
|
|
8742
|
-
R(
|
|
8744
|
+
R(_d, {
|
|
8743
8745
|
fallback: c.value,
|
|
8744
8746
|
form: p.value,
|
|
8745
8747
|
"full-combinations": v.value,
|
|
@@ -8751,7 +8753,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8751
8753
|
]),
|
|
8752
8754
|
_: 1
|
|
8753
8755
|
}, 8, ["toggle"])) : se("", !0),
|
|
8754
|
-
A.value ? se("", !0) : (U(), re("div",
|
|
8756
|
+
A.value ? se("", !0) : (U(), re("div", Vd)),
|
|
8755
8757
|
R(Tt, {
|
|
8756
8758
|
toggle: C.value,
|
|
8757
8759
|
"onUpdate:toggle": [
|
|
@@ -8763,7 +8765,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8763
8765
|
title: b(r)("menu.product.form.sections.variant.title")
|
|
8764
8766
|
}, {
|
|
8765
8767
|
default: W(() => [
|
|
8766
|
-
R(
|
|
8768
|
+
R(Nd, {
|
|
8767
8769
|
fallback: c.value,
|
|
8768
8770
|
form: p.value,
|
|
8769
8771
|
"full-combinations": v.value,
|
|
@@ -8775,7 +8777,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8775
8777
|
]),
|
|
8776
8778
|
_: 1
|
|
8777
8779
|
}, 8, ["toggle", "disabled", "description", "title"]),
|
|
8778
|
-
s.value.group && !A.value ? (U(), re("div",
|
|
8780
|
+
s.value.group && !A.value ? (U(), re("div", zd)) : se("", !0),
|
|
8779
8781
|
s.value.group ? (U(), J(Tt, {
|
|
8780
8782
|
key: 8,
|
|
8781
8783
|
toggle: ne.value,
|
|
@@ -8788,7 +8790,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8788
8790
|
title: "Update group"
|
|
8789
8791
|
}, {
|
|
8790
8792
|
default: W(() => [
|
|
8791
|
-
R(
|
|
8793
|
+
R(Hc, {
|
|
8792
8794
|
fallback: c.value,
|
|
8793
8795
|
form: p.value,
|
|
8794
8796
|
"full-combinations": v.value,
|
|
@@ -8800,7 +8802,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8800
8802
|
]),
|
|
8801
8803
|
_: 1
|
|
8802
8804
|
}, 8, ["toggle", "disabled"])) : se("", !0),
|
|
8803
|
-
s.value.inventory && !A.value ? (U(), re("div",
|
|
8805
|
+
s.value.inventory && !A.value ? (U(), re("div", $d)) : se("", !0),
|
|
8804
8806
|
s.value.inventory ? (U(), J(Tt, {
|
|
8805
8807
|
key: 10,
|
|
8806
8808
|
toggle: le.value,
|
|
@@ -8813,7 +8815,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8813
8815
|
title: b(r)("menu.product.form.sections.inventory.title")
|
|
8814
8816
|
}, {
|
|
8815
8817
|
default: W(() => [
|
|
8816
|
-
R(
|
|
8818
|
+
R(Yc, {
|
|
8817
8819
|
fallback: c.value,
|
|
8818
8820
|
form: p.value,
|
|
8819
8821
|
"full-combinations": v.value,
|
|
@@ -8825,7 +8827,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8825
8827
|
]),
|
|
8826
8828
|
_: 1
|
|
8827
8829
|
}, 8, ["toggle", "disabled", "description", "title"])) : se("", !0),
|
|
8828
|
-
s.value.takeaway(p.value.category ?? ((L = c.value) == null ? void 0 : L.category)) && !A.value ? (U(), re("div",
|
|
8830
|
+
s.value.takeaway(p.value.category ?? ((L = c.value) == null ? void 0 : L.category)) && !A.value ? (U(), re("div", Gd)) : se("", !0),
|
|
8829
8831
|
s.value.takeaway(p.value.category ?? ((Y = c.value) == null ? void 0 : Y.category)) ? (U(), J(Tt, {
|
|
8830
8832
|
key: 12,
|
|
8831
8833
|
toggle: we.value,
|
|
@@ -8838,7 +8840,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8838
8840
|
title: b(r)("menu.product.form.sections.takeaway.title")
|
|
8839
8841
|
}, {
|
|
8840
8842
|
default: W(() => [
|
|
8841
|
-
R(
|
|
8843
|
+
R(yd, {
|
|
8842
8844
|
fallback: c.value,
|
|
8843
8845
|
form: p.value,
|
|
8844
8846
|
"full-combinations": v.value,
|
|
@@ -8859,7 +8861,7 @@ const bd = /* @__PURE__ */ ge({
|
|
|
8859
8861
|
}, 8, ["title", "show", "primary-action", "secondary-actions"])
|
|
8860
8862
|
], 64));
|
|
8861
8863
|
}
|
|
8862
|
-
}),
|
|
8864
|
+
}), Wd = Bd;
|
|
8863
8865
|
function pa(e, t) {
|
|
8864
8866
|
var o, r, l, s;
|
|
8865
8867
|
const n = (o = t.groups) == null ? void 0 : o.reduce((u, m) => {
|
|
@@ -8880,7 +8882,7 @@ function pa(e, t) {
|
|
|
8880
8882
|
...w || {},
|
|
8881
8883
|
_id: _._id,
|
|
8882
8884
|
combinationKey: _.combinationKey,
|
|
8883
|
-
price: (w == null ? void 0 : w.price) ??
|
|
8885
|
+
price: (w == null ? void 0 : w.price) ?? Be.zero().toObject(),
|
|
8884
8886
|
orderFrom: (w == null ? void 0 : w.orderFrom) ?? q.F_ORDER_FROM.enum.ALL
|
|
8885
8887
|
};
|
|
8886
8888
|
});
|
|
@@ -8904,8 +8906,8 @@ function pa(e, t) {
|
|
|
8904
8906
|
}
|
|
8905
8907
|
return { ...t, groups: a(t.groups || []) };
|
|
8906
8908
|
}
|
|
8907
|
-
function
|
|
8908
|
-
const a = be(t), o = n ? a.modules.catalog.find((c) => c._id === n) : null, r = i ? a.modules.scheduler.find((c) => c._id === i) : null, l = o ? be(o) : void 0, s = n ? a.modules.catalog.filter((c) => c._id !== n) : [], u = r ? be(r) : void 0, m = e.reduce((c, p) => (c[p._id] =
|
|
8909
|
+
function Hd(e, t, n, i) {
|
|
8910
|
+
const a = be(t), o = n ? a.modules.catalog.find((c) => c._id === n) : null, r = i ? a.modules.scheduler.find((c) => c._id === i) : null, l = o ? be(o) : void 0, s = n ? a.modules.catalog.filter((c) => c._id !== n) : [], u = r ? be(r) : void 0, m = e.reduce((c, p) => (c[p._id] = jd(p), c), {});
|
|
8909
8911
|
function d(c = []) {
|
|
8910
8912
|
const p = e.map((E) => E._id);
|
|
8911
8913
|
return [
|
|
@@ -8941,12 +8943,12 @@ function Wd(e, t, n, i) {
|
|
|
8941
8943
|
_id: a._id
|
|
8942
8944
|
};
|
|
8943
8945
|
}
|
|
8944
|
-
function
|
|
8946
|
+
function jd(e) {
|
|
8945
8947
|
var i;
|
|
8946
8948
|
const t = be(e), n = (i = t.variant) == null ? void 0 : i.variantCombinations;
|
|
8947
8949
|
return delete t.variant, delete t.thumbnail, [t, ...n || []];
|
|
8948
8950
|
}
|
|
8949
|
-
function
|
|
8951
|
+
function Kd(e, t) {
|
|
8950
8952
|
var i;
|
|
8951
8953
|
return {
|
|
8952
8954
|
...t.find((a) => !a.combinationKey),
|
|
@@ -8960,7 +8962,7 @@ function jd(e, t) {
|
|
|
8960
8962
|
const Si = mo("item-manager", () => {
|
|
8961
8963
|
const e = Me(), t = Qe(), n = lt(), i = kt(t), a = Ot(i), o = an(), { t: r } = ke(), l = (y) => {
|
|
8962
8964
|
if (!o) throw new Error("No current instance found");
|
|
8963
|
-
const { container: x } =
|
|
8965
|
+
const { container: x } = xa(Wd, o, {
|
|
8964
8966
|
...y,
|
|
8965
8967
|
autoShow: !0,
|
|
8966
8968
|
"onUpdate:show": async (S) => {
|
|
@@ -8982,11 +8984,11 @@ const Si = mo("item-manager", () => {
|
|
|
8982
8984
|
}
|
|
8983
8985
|
async function u(y, x, S) {
|
|
8984
8986
|
l({
|
|
8985
|
-
initialForm:
|
|
8987
|
+
initialForm: Kd(y, x || []),
|
|
8986
8988
|
action: "update",
|
|
8987
8989
|
"onSubmit:form": async (I) => {
|
|
8988
8990
|
I.inventoryBindings ?? (I.inventoryBindings = []), I.inventoryBindings.length === 0 && (I.inventoryBindings = null), await S(
|
|
8989
|
-
|
|
8991
|
+
Hd(
|
|
8990
8992
|
[I],
|
|
8991
8993
|
e.state.menu,
|
|
8992
8994
|
e.state.currentCatalogId,
|
|
@@ -9001,7 +9003,7 @@ const Si = mo("item-manager", () => {
|
|
|
9001
9003
|
const x = e.currentCatalog, S = e.state.currentSchedulerId, I = x.override.scheduler[S] ?? {}, N = (M = I == null ? void 0 : I.items) == null ? void 0 : M.filter((P) => P._id === y._id);
|
|
9002
9004
|
await u(y, N, async (P) => {
|
|
9003
9005
|
const z = P.modules.catalog.find(
|
|
9004
|
-
(
|
|
9006
|
+
(F) => F._id === x._id
|
|
9005
9007
|
);
|
|
9006
9008
|
await new ht(z, e, a.updateMenu, n).update();
|
|
9007
9009
|
});
|
|
@@ -9030,8 +9032,8 @@ const Si = mo("item-manager", () => {
|
|
|
9030
9032
|
var N, M;
|
|
9031
9033
|
const x = e.state.currentSchedulerId, S = be(e.currentCatalog), I = (M = ((N = S.override.scheduler[x]) == null ? void 0 : N.items) || []) == null ? void 0 : M.reduce((P, z) => {
|
|
9032
9034
|
if (z.combinationKey) return [...P, z];
|
|
9033
|
-
const
|
|
9034
|
-
return
|
|
9035
|
+
const F = y.find((C) => C._id === z._id);
|
|
9036
|
+
return F ? [...P, { ...z, price: F.price }] : [...P, z];
|
|
9035
9037
|
}, []);
|
|
9036
9038
|
S.override.scheduler = {
|
|
9037
9039
|
...S.override.scheduler,
|
|
@@ -9046,18 +9048,18 @@ const Si = mo("item-manager", () => {
|
|
|
9046
9048
|
var N;
|
|
9047
9049
|
const x = be(e.currentCatalog), S = (N = Object.entries(x.override.items)) == null ? void 0 : N.reduce(
|
|
9048
9050
|
(M, [P, z]) => {
|
|
9049
|
-
const
|
|
9050
|
-
if (!
|
|
9051
|
+
const F = y.find(($) => $._id === P);
|
|
9052
|
+
if (!F)
|
|
9051
9053
|
return M[P] = z, M;
|
|
9052
9054
|
const C = z.find(($) => !$.combinationKey);
|
|
9053
9055
|
return M[P] = [
|
|
9054
9056
|
...z.filter(($) => !!$.combinationKey),
|
|
9055
9057
|
{
|
|
9056
9058
|
...C,
|
|
9057
|
-
code:
|
|
9058
|
-
name:
|
|
9059
|
-
price:
|
|
9060
|
-
orderFrom:
|
|
9059
|
+
code: F.code || void 0,
|
|
9060
|
+
name: F.name,
|
|
9061
|
+
price: F.price,
|
|
9062
|
+
orderFrom: F.orderFrom ?? C.orderFrom
|
|
9061
9063
|
}
|
|
9062
9064
|
], M;
|
|
9063
9065
|
},
|
|
@@ -9162,7 +9164,7 @@ const Si = mo("item-manager", () => {
|
|
|
9162
9164
|
!0
|
|
9163
9165
|
);
|
|
9164
9166
|
for (const I of y)
|
|
9165
|
-
I.thumbnail && await
|
|
9167
|
+
I.thumbnail && await La.delete(I.thumbnail);
|
|
9166
9168
|
t.open({
|
|
9167
9169
|
message: r("menu.common.dialog.remove.product.success"),
|
|
9168
9170
|
type: "success"
|
|
@@ -9204,38 +9206,38 @@ const Si = mo("item-manager", () => {
|
|
|
9204
9206
|
});
|
|
9205
9207
|
export {
|
|
9206
9208
|
co as A,
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9209
|
+
Vl as C,
|
|
9210
|
+
dc as F,
|
|
9211
|
+
Nr as I,
|
|
9210
9212
|
Ro as M,
|
|
9211
|
-
|
|
9213
|
+
pd as P,
|
|
9212
9214
|
We as R,
|
|
9213
|
-
|
|
9215
|
+
Gu as S,
|
|
9214
9216
|
Tt as T,
|
|
9215
9217
|
sa as _,
|
|
9216
|
-
|
|
9218
|
+
yu as a,
|
|
9217
9219
|
Ei as b,
|
|
9218
9220
|
da as c,
|
|
9219
9221
|
li as d,
|
|
9220
9222
|
ci as e,
|
|
9221
9223
|
ra as f,
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9224
|
+
Hd as g,
|
|
9225
|
+
Rc as h,
|
|
9226
|
+
Rm as i,
|
|
9225
9227
|
Oo as j,
|
|
9226
9228
|
Rn as k,
|
|
9227
9229
|
pa as l,
|
|
9228
9230
|
Co as m,
|
|
9229
9231
|
la as n,
|
|
9230
|
-
|
|
9232
|
+
Kd as o,
|
|
9231
9233
|
ua as p,
|
|
9232
9234
|
ca as q,
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9235
|
+
rr as r,
|
|
9236
|
+
bd as s,
|
|
9237
|
+
gc as t,
|
|
9236
9238
|
Si as u,
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
+
Cm as v,
|
|
9240
|
+
Ir as w,
|
|
9239
9241
|
_n as x,
|
|
9240
9242
|
ma as y
|
|
9241
9243
|
};
|