@feedmepos/mf-menu-portal 1.0.4-dev.4 → 1.0.5-dev.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-CrpoLCjA.js → App-B2xq1U4S.js} +699 -687
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CPh1GBw9.js} +11 -10
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-D3CmOOPY.js → BindingTable.vue_vue_type_script_setup_true_lang-DCgMQJE-.js} +50 -46
- package/dist/Catalog-BEI73S_k.js +433 -0
- package/dist/{CatalogBinding-BNATtZEY.js → CatalogBinding-3rhuTWDD.js} +30 -29
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-BmG-xpW4.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js} +30 -29
- package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BFsRDFpj.js → CatalogEditor.vue_vue_type_script_setup_true_lang-Dc72SNpI.js} +314 -304
- package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CMyubLvP.js +127 -0
- package/dist/{Category-DMoXTsfG.js → Category-BVCdkA5K.js} +14 -13
- package/dist/{Category-DxjdQ-NN.js → Category-P5DYjIeF.js} +2 -2
- package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-B3Ts1O-9.js → CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js} +274 -262
- package/dist/{CookingGuide-DiZZDYD-.js → CookingGuide-Y-c1NLP5.js} +144 -140
- package/dist/{Group-rzfh_o6r.js → Group-D6wA3jCF.js} +2 -2
- package/dist/{Group-DFR8q-tt.js → Group-qqr5SUIc.js} +17 -15
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-DNTVfY2d.js +1996 -0
- package/dist/{Ingredient-DpjGIuH9.js → Ingredient-CJHkJZ0y.js} +94 -93
- package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js} +1 -1
- package/dist/{MenuSetting-DR-pDSF_.js → MenuSetting-YcEGo51l.js} +462 -446
- package/dist/{OrderPacing-JcTuweqF.js → OrderPacing-DwQU7c0Y.js} +207 -204
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-2Cdz70u-.js} +1 -2
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js +44 -0
- package/dist/PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js +12 -0
- package/dist/{Preview-BZyun5lZ.js → Preview-DLeXy5V-.js} +2 -2
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-D_OV9Z_4.js} +1 -1
- package/dist/{PrintRoute-CzEx2dCt.js → PrintRoute-R38w0-U2.js} +151 -150
- package/dist/{Product-CQb0n06E.js → Product-sbMCaVhM.js} +8 -7
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-DoHQeOHy.js +7826 -0
- package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D9v88xZs.js +111 -0
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-CBlDEjqF.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-DsIGLKNS.js} +17 -17
- package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D8NQTCLx.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CEliG36Z.js} +726 -726
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js} +127 -124
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-0UwUcA2L.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js} +820 -807
- package/dist/{ProductInternalTools-QrBR1nFp.js → ProductInternalTools-jE3Ovo4l.js} +3 -3
- package/dist/{ProductInventoryDialog-fV38GO1a.js → ProductInventoryDialog-EDlrXupB.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Bzb3RrMg.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-LOwSpoiA.js} +1 -1
- package/dist/{ProductList.vue_vue_type_script_setup_true_lang-BwKQESr3.js → ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js} +1135 -1098
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-C4iK-sAd.js} +1 -1
- package/dist/{Products-B8tysOAL.js → Products-DUE10OyS.js} +51 -49
- package/dist/Publish-BlMxKniP.js +1300 -0
- package/dist/{Recipe-Ddx31csF.js → Recipe-BhjPAidT.js} +83 -82
- package/dist/{Scheduler-CST5L_cw.js → Scheduler-wKG3_D1f.js} +137 -136
- package/dist/{ServingSequence-DYyEZI2S.js → ServingSequence-B26BETQs.js} +63 -61
- package/dist/Setting-DBdNl3WL.js +185 -0
- package/dist/{Subcategory-BIgjzVta.js → Subcategory-B06yMcuE.js} +147 -144
- package/dist/{Takeaway-CekhGM-m.js → Takeaway-CFATfy-6.js} +2 -2
- package/dist/{Takeaway-aXsPg4JT.js → Takeaway-DFqOtls7.js} +17 -16
- package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CUHB-g9I.js +616 -0
- package/dist/TextChip.vue_vue_type_script_setup_true_lang-YkUjMTXo.js +32 -0
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CshqYpc9.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoS4Btzj.js} +281 -308
- package/dist/{Unit-BMW8u0Us.js → Unit-B5wKBmIT.js} +90 -89
- package/dist/{Variant-CZsrYRMU.js → Variant-C5ePu0za.js} +167 -174
- package/dist/{_id_-D4swrvNa.js → _id_-HRDqt6oD.js} +3 -3
- package/dist/{app-BWwwHsWi.js → app-CxJjx2ma.js} +39 -39
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +35 -0
- package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +8 -0
- package/dist/apps/mf-menu/src/components/Product/OrderFromChip.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/Product/ProductThumbnail.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +4 -2
- package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +7 -0
- package/dist/apps/mf-menu/src/components/layout/PhoneFab.vue.d.ts +9 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-D7TdiHt4.js → menu-compute-CQdeCEBO.js} +19 -19
- package/dist/assets/{validate-menu-DXppWUVq.js → validate-menu-BVo4fNWG.js} +14 -14
- package/dist/mf-menu-portal.css +1 -1
- package/dist/{provide-CDmXzkhz.js → provide-BGLSDsuJ.js} +99816 -99564
- package/dist/{useActionFeedback-Dm2HDa_2.js → useActionFeedback-CElXij1W.js} +1 -1
- package/package.json +1 -1
- package/dist/Catalog-VU3HhNro.js +0 -374
- package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Bk4FqVmx.js +0 -117
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-DiN-wQXX.js +0 -1807
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +0 -41
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +0 -7931
- package/dist/Publish-DTvOvFNa.js +0 -1337
- package/dist/Setting-Ip0pGjks.js +0 -179
- package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CaRR4_j3.js +0 -554
|
@@ -1,95 +1,93 @@
|
|
|
1
|
-
import { defineComponent as Q, resolveComponent as k, openBlock as m, createElementBlock as
|
|
1
|
+
import { defineComponent as Q, resolveComponent as k, openBlock as m, createElementBlock as b, createElementVNode as r, toDisplayString as g, unref as l, createVNode as n, withCtx as u, Fragment as q, renderList as se, createBlock as x, createCommentVNode as P, computed as f, ref as z, shallowRef as oe, h as v, withModifiers as I, onUnmounted as Ce } from "vue";
|
|
2
2
|
import { d as Pe, _ as Fe } from "./vuedraggable-CBtQLb_S.js";
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useDialog as Se, useBreakpoints as Ve, components as
|
|
5
|
-
import { _ as Le } from "./
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as De } from "./
|
|
9
|
-
import { _ as ze } from "./
|
|
10
|
-
import { _ as Ie } from "./
|
|
11
|
-
import {
|
|
12
|
-
import { u as Te } from "./
|
|
13
|
-
import {
|
|
14
|
-
|
|
3
|
+
import { useI18n as re } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialog as Se, useBreakpoints as Ve, components as V, FmButtonColorThemeVariant as T } from "@feedmepos/ui-library";
|
|
5
|
+
import { _ as Le } from "./PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js";
|
|
6
|
+
import { _ as $e } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
7
|
+
import { _ as Ue } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CPh1GBw9.js";
|
|
8
|
+
import { _ as De } from "./OrderPacingFields.vue_vue_type_script_setup_true_lang-2Cdz70u-.js";
|
|
9
|
+
import { _ as ze } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js";
|
|
10
|
+
import { _ as Ie } from "./PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js";
|
|
11
|
+
import { _ as Ne } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js";
|
|
12
|
+
import { u as Te } from "./useActionFeedback-CElXij1W.js";
|
|
13
|
+
import { u as Be } from "./useEditorValidation-Ctef5Bxt.js";
|
|
14
|
+
import { b as Ee, u as ne, a as Me } from "./provide-BGLSDsuJ.js";
|
|
15
|
+
const Oe = {
|
|
15
16
|
key: 0,
|
|
16
17
|
class: "mt-4"
|
|
17
|
-
},
|
|
18
|
+
}, je = { class: "text-fm-color-typo-secondary mb-2" }, Re = { class: "fm-typo-en-body-md-400 leading-5 text-fm-color-typo-secondary" }, Ae = /* @__PURE__ */ Q({
|
|
18
19
|
__name: "DeleteOrderPacingConfirmation",
|
|
19
20
|
props: {
|
|
20
21
|
name: {},
|
|
21
22
|
linkedProductNames: {}
|
|
22
23
|
},
|
|
23
24
|
setup(B) {
|
|
24
|
-
const { t: p } =
|
|
25
|
+
const { t: p } = re();
|
|
25
26
|
return (e, E) => {
|
|
26
|
-
const M = k("FmIcon"), N = k("FmListItem"),
|
|
27
|
-
return m(),
|
|
28
|
-
|
|
29
|
-
e.linkedProductNames.length > 0 ? (m(),
|
|
30
|
-
|
|
27
|
+
const M = k("FmIcon"), N = k("FmListItem"), w = k("FmList");
|
|
28
|
+
return m(), b("div", null, [
|
|
29
|
+
r("p", null, g(l(p)("menu.order_pacing.dialogs.delete.message", { name: e.name })), 1),
|
|
30
|
+
e.linkedProductNames.length > 0 ? (m(), b("div", Oe, [
|
|
31
|
+
r("p", je, g(l(p)("menu.order_pacing.dialogs.delete.unlink_warning", {
|
|
31
32
|
count: e.linkedProductNames.length
|
|
32
33
|
})), 1),
|
|
33
|
-
n(
|
|
34
|
-
default:
|
|
35
|
-
(m(!0),
|
|
34
|
+
n(w, { class: "mt-8" }, {
|
|
35
|
+
default: u(() => [
|
|
36
|
+
(m(!0), b(q, null, se(e.linkedProductNames, (y) => (m(), x(N, {
|
|
36
37
|
key: y,
|
|
37
38
|
class: "!p-0 !gap-4",
|
|
38
39
|
clickable: !1
|
|
39
40
|
}, {
|
|
40
|
-
prepend:
|
|
41
|
+
prepend: u(() => [
|
|
41
42
|
n(M, {
|
|
42
43
|
color: "typo-secondary",
|
|
43
44
|
name: "fiber_manual_record",
|
|
44
45
|
size: "sm"
|
|
45
46
|
})
|
|
46
47
|
]),
|
|
47
|
-
default:
|
|
48
|
-
|
|
48
|
+
default: u(() => [
|
|
49
|
+
r("span", Re, g(y), 1)
|
|
49
50
|
]),
|
|
50
51
|
_: 2
|
|
51
52
|
}, 1024))), 128))
|
|
52
53
|
]),
|
|
53
54
|
_: 1
|
|
54
55
|
})
|
|
55
|
-
])) :
|
|
56
|
+
])) : P("", !0)
|
|
56
57
|
]);
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
|
-
}),
|
|
60
|
+
}), Ke = {
|
|
60
61
|
key: 0,
|
|
61
62
|
class: "flex-1 flex justify-between gap-8 pl-8"
|
|
62
|
-
},
|
|
63
|
+
}, qe = { class: "flex items-center" }, Qe = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ge = { class: "fm-typo-en-body-md-600 font-semibold" }, He = {
|
|
63
64
|
key: 0,
|
|
64
65
|
class: "flex flex-col items-start gap-8"
|
|
65
|
-
},
|
|
66
|
+
}, Je = {
|
|
66
67
|
role: "alert",
|
|
67
68
|
class: "text-fm-color-typo-secondary"
|
|
68
|
-
},
|
|
69
|
+
}, We = {
|
|
69
70
|
key: 3,
|
|
70
71
|
class: "flex-1 flex flex-col min-h-0"
|
|
71
|
-
},
|
|
72
|
-
key: 0,
|
|
73
|
-
class: "fixed right-16 bottom-[72px] z-[100]"
|
|
74
|
-
}, la = { class: "flex justify-end items-center" }, ta = { class: "w-[320px]" }, oa = { class: "fm-typo-en-title-md-600" }, na = { class: "flex flex-col gap-32 h-full min-h-0 py-16" }, ra = { class: "py-12 px-16 space-y-4" }, sa = { key: 0 }, ia = { class: "flex-shrink-0" }, da = { class: "flex gap-8 items-center justify-start" }, ua = { class: "fm-typo-en-title-md-600" }, ca = { class: "flex-shrink-0" }, ma = { class: "flex gap-8 items-center justify-start" }, pa = /* @__PURE__ */ Q({
|
|
72
|
+
}, Xe = { class: "p-8" }, Ye = ["onClick"], Ze = { class: "min-w-0 flex-1 space-y-4" }, ea = { class: "fm-typo-en-body-lg-600 break-words" }, aa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, la = { class: "flex justify-end items-center" }, ta = { class: "w-[320px]" }, oa = { class: "fm-typo-en-title-md-600" }, na = { class: "flex flex-col gap-32 h-full min-h-0 py-16" }, sa = { class: "py-12 px-16 space-y-4" }, ra = { key: 0 }, ia = { class: "flex-shrink-0" }, da = { class: "xs:overflow-x-scroll" }, ua = { class: "xs:min-w-[640px]" }, ca = { class: "flex gap-8 items-center justify-start" }, ma = { class: "fm-typo-en-title-md-600" }, pa = { class: "flex-shrink-0" }, va = { class: "flex gap-8 items-center justify-start" }, _a = /* @__PURE__ */ Q({
|
|
75
73
|
__name: "OrderPacingList",
|
|
76
74
|
props: {
|
|
77
75
|
sdk: {}
|
|
78
76
|
},
|
|
79
77
|
setup(B) {
|
|
80
|
-
const p = B, { t: e, n: E } =
|
|
78
|
+
const p = B, { t: e, n: E } = re(), M = Ee(), N = Se(), { run: w } = Te(), y = ne(p.sdk.orderPacing.list), c = f(
|
|
81
79
|
() => y.value.status === "ready" ? y.value.value : null
|
|
82
|
-
), O =
|
|
80
|
+
), O = f(() => {
|
|
83
81
|
var a;
|
|
84
|
-
return ((a =
|
|
85
|
-
}), { breakpoints: ie } = Ve(), G =
|
|
82
|
+
return ((a = c.value) == null ? void 0 : a.query) ?? "";
|
|
83
|
+
}), { breakpoints: ie } = Ve(), G = f(() => ie.value.xs), H = f(() => {
|
|
86
84
|
var a;
|
|
87
|
-
return [...((a =
|
|
88
|
-
}), F =
|
|
85
|
+
return [...((a = c.value) == null ? void 0 : a.rows) ?? []];
|
|
86
|
+
}), F = z(!1), L = z(!1), S = z(!1), j = z(!1);
|
|
89
87
|
async function de() {
|
|
90
88
|
j.value = !0;
|
|
91
89
|
try {
|
|
92
|
-
await
|
|
90
|
+
await w(() => p.sdk.orderPacing.retryRead(), {
|
|
93
91
|
showLoading: !1
|
|
94
92
|
});
|
|
95
93
|
} finally {
|
|
@@ -98,7 +96,7 @@ const Me = {
|
|
|
98
96
|
}
|
|
99
97
|
const J = ne(
|
|
100
98
|
p.sdk.linkProduct.catalogue
|
|
101
|
-
), ue =
|
|
99
|
+
), ue = f(
|
|
102
100
|
() => J.value.status === "ready" ? J.value.value : null
|
|
103
101
|
), d = oe(
|
|
104
102
|
p.sdk.orderPacing.editor()
|
|
@@ -108,28 +106,28 @@ const Me = {
|
|
|
108
106
|
let R = d.value.subscribe((a) => {
|
|
109
107
|
$.value = a;
|
|
110
108
|
});
|
|
111
|
-
const
|
|
109
|
+
const i = f(
|
|
112
110
|
() => $.value.status === "ready" ? $.value.value : null
|
|
113
|
-
), W =
|
|
111
|
+
), W = Be(() => d.value), ce = f(() => {
|
|
114
112
|
var a;
|
|
115
113
|
return [
|
|
116
|
-
...((a =
|
|
114
|
+
...((a = i.value) == null ? void 0 : a.linkedProducts) ?? []
|
|
117
115
|
];
|
|
118
|
-
}), me =
|
|
116
|
+
}), me = f(
|
|
119
117
|
() => {
|
|
120
118
|
var a;
|
|
121
|
-
return ((a =
|
|
119
|
+
return ((a = i.value) == null ? void 0 : a.linkedProductIds) ?? [];
|
|
122
120
|
}
|
|
123
121
|
);
|
|
124
122
|
function pe(a) {
|
|
125
|
-
var t,
|
|
126
|
-
return ((
|
|
123
|
+
var t, s;
|
|
124
|
+
return ((s = (t = i.value) == null ? void 0 : t.supportedLocales.find(
|
|
127
125
|
(h) => h.code === a
|
|
128
|
-
)) == null ? void 0 :
|
|
126
|
+
)) == null ? void 0 : s.name) ?? a;
|
|
129
127
|
}
|
|
130
128
|
function ve() {
|
|
131
129
|
var a;
|
|
132
|
-
((a =
|
|
130
|
+
((a = i.value) == null ? void 0 : a.translation.state) === "allowed" && (d.value.beginTranslationEdit(), S.value = !0);
|
|
133
131
|
}
|
|
134
132
|
function _e() {
|
|
135
133
|
d.value.saveTranslationEdit(), S.value = !1;
|
|
@@ -144,15 +142,15 @@ const Me = {
|
|
|
144
142
|
}
|
|
145
143
|
function K() {
|
|
146
144
|
var a;
|
|
147
|
-
((a =
|
|
145
|
+
((a = c.value) == null ? void 0 : a.create.state) === "allowed" && (A(), S.value = !1, F.value = !0);
|
|
148
146
|
}
|
|
149
147
|
function Y(a) {
|
|
150
148
|
A(a.id), S.value = !1, F.value = !0;
|
|
151
149
|
}
|
|
152
|
-
async function
|
|
153
|
-
var
|
|
154
|
-
const a = ((
|
|
155
|
-
(await
|
|
150
|
+
async function fe() {
|
|
151
|
+
var s;
|
|
152
|
+
const a = ((s = i.value) == null ? void 0 : s.name.trim()) ?? "";
|
|
153
|
+
(await w(
|
|
156
154
|
() => W.submit(() => d.value.submit()),
|
|
157
155
|
{
|
|
158
156
|
// The inline field rules are decided in the SDK with no round trip, and
|
|
@@ -160,7 +158,7 @@ const Me = {
|
|
|
160
158
|
// loading indicator — so a rejected submit must not flash one.
|
|
161
159
|
showLoading: () => {
|
|
162
160
|
var h;
|
|
163
|
-
return ((h =
|
|
161
|
+
return ((h = i.value) == null ? void 0 : h.status) === "submitting";
|
|
164
162
|
},
|
|
165
163
|
successMessage: e("menu.order_pacing.form.saved", {
|
|
166
164
|
name: a || e("menu.order_pacing.title")
|
|
@@ -187,7 +185,7 @@ const Me = {
|
|
|
187
185
|
// measured 560x200, which is how the visual gate caught it on
|
|
188
186
|
// 2026-09-07. Legacy passes a `contentComponent` here too
|
|
189
187
|
// (`portal .../manager/menu/order_pacing.ts:111-114`).
|
|
190
|
-
contentComponent: v(
|
|
188
|
+
contentComponent: v(Ae, {
|
|
191
189
|
name: a.name,
|
|
192
190
|
linkedProductNames: t.linkedProductNames
|
|
193
191
|
}),
|
|
@@ -213,7 +211,7 @@ const Me = {
|
|
|
213
211
|
close: !0
|
|
214
212
|
}
|
|
215
213
|
}).onPrimary(async () => {
|
|
216
|
-
await
|
|
214
|
+
await w(() => p.sdk.orderPacing.remove(a.id), {
|
|
217
215
|
// 'removed', not 'saved': legacy's manager passes `isDelete` true and
|
|
218
216
|
// the shared loader picks the other sentence.
|
|
219
217
|
successMessage: e("menu.order_pacing.delete.success", {
|
|
@@ -222,15 +220,15 @@ const Me = {
|
|
|
222
220
|
}), N.close();
|
|
223
221
|
});
|
|
224
222
|
}
|
|
225
|
-
const
|
|
223
|
+
const ge = f(() => {
|
|
226
224
|
var a;
|
|
227
|
-
return ((a =
|
|
225
|
+
return ((a = c.value) == null ? void 0 : a.reorder.state) === "allowed";
|
|
228
226
|
});
|
|
229
227
|
function ee(a) {
|
|
230
|
-
var
|
|
231
|
-
if (((
|
|
228
|
+
var s;
|
|
229
|
+
if (((s = c.value) == null ? void 0 : s.reorder.state) !== "allowed") return;
|
|
232
230
|
const t = a.map((h) => h.id);
|
|
233
|
-
t.length &&
|
|
231
|
+
t.length && w(() => p.sdk.orderPacing.reorder(t), {
|
|
234
232
|
// A rearrange carries no single entity, so legacy fed the shared
|
|
235
233
|
// `{name} saved` template the MODULE's own title and the toast reads
|
|
236
234
|
// "Order pacing saved". Each locale carries the whole sentence rather
|
|
@@ -239,7 +237,7 @@ const Me = {
|
|
|
239
237
|
successMessage: e("menu.order_pacing.reorder.success")
|
|
240
238
|
});
|
|
241
239
|
}
|
|
242
|
-
const be =
|
|
240
|
+
const be = f(() => [
|
|
243
241
|
{
|
|
244
242
|
accessorKey: "name",
|
|
245
243
|
header: () => e("menu.order_pacing.columns.timing_label"),
|
|
@@ -257,12 +255,12 @@ const Me = {
|
|
|
257
255
|
// Legacy renders this cell as a dashed-underline affordance that opens the
|
|
258
256
|
// apply-product sheet on click, stopping propagation so the row's own
|
|
259
257
|
// click does not open the editor (`OrderPacingTable.vue:60-84`).
|
|
260
|
-
cell: (a) => v(
|
|
258
|
+
cell: (a) => v(V.FmButton, {
|
|
261
259
|
label: e("menu.common.labels.items_linked", {
|
|
262
260
|
count: a.row.original.linkedProductCount
|
|
263
261
|
}),
|
|
264
262
|
variant: "tertiary",
|
|
265
|
-
onClick:
|
|
263
|
+
onClick: I(
|
|
266
264
|
() => ye(a.row.original),
|
|
267
265
|
["stop", "prevent"]
|
|
268
266
|
)
|
|
@@ -274,7 +272,7 @@ const Me = {
|
|
|
274
272
|
meta: { cellClass: "pl-16", headerContentClass: "-mx-16" },
|
|
275
273
|
header: "",
|
|
276
274
|
cell: (a) => v("div", { class: "w-full flex justify-end items-center" }, [
|
|
277
|
-
v(
|
|
275
|
+
v(V.FmButton, {
|
|
278
276
|
prependIcon: "delete",
|
|
279
277
|
variant: "tertiary",
|
|
280
278
|
textColor: "neutral-gray-400",
|
|
@@ -283,36 +281,36 @@ const Me = {
|
|
|
283
281
|
// app: legacy's control is icon-only and unnamed, so no semantic
|
|
284
282
|
// locator resolves against it.
|
|
285
283
|
"aria-label": e("menu.common.actions.delete"),
|
|
286
|
-
onClick:
|
|
284
|
+
onClick: I(
|
|
287
285
|
() => Z(a.row.original),
|
|
288
286
|
["stop", "prevent"]
|
|
289
287
|
)
|
|
290
288
|
})
|
|
291
289
|
])
|
|
292
290
|
}
|
|
293
|
-
]),
|
|
291
|
+
]), U = z(!1);
|
|
294
292
|
function ye(a) {
|
|
295
|
-
A(a.id),
|
|
293
|
+
A(a.id), U.value = !0;
|
|
296
294
|
}
|
|
297
295
|
async function ke() {
|
|
298
296
|
var t;
|
|
299
|
-
(await
|
|
297
|
+
(await w(() => d.value.submitLinks(), {
|
|
300
298
|
showLoading: () => {
|
|
301
|
-
var
|
|
302
|
-
return ((
|
|
299
|
+
var s;
|
|
300
|
+
return ((s = i.value) == null ? void 0 : s.status) === "submitting";
|
|
303
301
|
},
|
|
304
302
|
successMessage: e("menu.order_pacing.form.saved", {
|
|
305
|
-
name: ((t =
|
|
303
|
+
name: ((t = i.value) == null ? void 0 : t.name) ?? e("menu.order_pacing.title")
|
|
306
304
|
})
|
|
307
|
-
})).kind === "success" && (
|
|
305
|
+
})).kind === "success" && (U.value = !1);
|
|
308
306
|
}
|
|
309
|
-
const he =
|
|
307
|
+
const he = f(() => [
|
|
310
308
|
{
|
|
311
309
|
id: "default",
|
|
312
310
|
size: 75,
|
|
313
311
|
enableSorting: !1,
|
|
314
312
|
header: () => e("menu.order_pacing.link_product.table.column.default"),
|
|
315
|
-
cell: (a) => v(
|
|
313
|
+
cell: (a) => v(V.FmCheckbox, {
|
|
316
314
|
modelValue: a.row.original.isDefault,
|
|
317
315
|
value: "",
|
|
318
316
|
"aria-label": e("menu.common.labels.a11y_labelled_name", {
|
|
@@ -411,7 +409,7 @@ const Me = {
|
|
|
411
409
|
*/
|
|
412
410
|
meta: { cellClass: "" },
|
|
413
411
|
cell: (a) => v("div", {}, [
|
|
414
|
-
v(
|
|
412
|
+
v(V.FmButton, {
|
|
415
413
|
prependIcon: "delete",
|
|
416
414
|
variant: "tertiary",
|
|
417
415
|
// No `textColor`, unlike the LIST table's own delete at :305.
|
|
@@ -421,7 +419,7 @@ const Me = {
|
|
|
421
419
|
// 200-pixel patch is over a third of what
|
|
422
420
|
// `serveDelay/create/form-with-linked-products` still had to close.
|
|
423
421
|
"aria-label": e("menu.common.actions.delete"),
|
|
424
|
-
onClick:
|
|
422
|
+
onClick: I(
|
|
425
423
|
() => d.value.unlinkProduct(a.row.original.productId),
|
|
426
424
|
["stop", "prevent"]
|
|
427
425
|
)
|
|
@@ -433,46 +431,46 @@ const Me = {
|
|
|
433
431
|
R(), d.value.dispose(), p.sdk.orderPacing.search("");
|
|
434
432
|
});
|
|
435
433
|
function xe(a) {
|
|
436
|
-
d.value.setLinkedProducts(a),
|
|
434
|
+
d.value.setLinkedProducts(a), L.value = !1;
|
|
437
435
|
}
|
|
438
436
|
return (a, t) => {
|
|
439
|
-
const
|
|
440
|
-
return m(),
|
|
437
|
+
const s = k("FmButton"), h = k("FmCircularProgress"), ae = k("FmSearch"), le = k("FmTable"), we = k("FmTooltip"), te = k("FmSideSheet");
|
|
438
|
+
return m(), x(Ie, {
|
|
441
439
|
"data-visual-root": "serveDelay",
|
|
442
440
|
heading: l(e)("menu.order_pacing.title")
|
|
443
441
|
}, {
|
|
444
|
-
"append-heading":
|
|
445
|
-
l(y).status === "ready" &&
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
442
|
+
"append-heading": u(() => [
|
|
443
|
+
l(y).status === "ready" && c.value ? (m(), b("div", Ke, [
|
|
444
|
+
r("div", qe, [
|
|
445
|
+
r("div", Qe, [
|
|
446
|
+
r("p", Ge, g(l(E)(c.value.totalCount)), 1)
|
|
449
447
|
])
|
|
450
448
|
]),
|
|
451
|
-
|
|
449
|
+
c.value.totalCount > 0 && !G.value ? (m(), x(s, {
|
|
452
450
|
key: 0,
|
|
453
|
-
disabled:
|
|
451
|
+
disabled: c.value.create.state !== "allowed",
|
|
454
452
|
label: l(e)("menu.order_pacing.add"),
|
|
455
453
|
"prepend-icon": "add",
|
|
456
454
|
onClick: K
|
|
457
|
-
}, null, 8, ["disabled", "label"])) :
|
|
458
|
-
])) :
|
|
455
|
+
}, null, 8, ["disabled", "label"])) : P("", !0)
|
|
456
|
+
])) : P("", !0)
|
|
459
457
|
]),
|
|
460
|
-
default:
|
|
461
|
-
l(y).status === "error" ? (m(),
|
|
462
|
-
|
|
463
|
-
n(
|
|
458
|
+
default: u(() => [
|
|
459
|
+
l(y).status === "error" ? (m(), b("div", He, [
|
|
460
|
+
r("p", Je, g(l(M)(l(y).error.message)), 1),
|
|
461
|
+
n(s, {
|
|
464
462
|
label: l(e)("menu.common.actions.retry"),
|
|
465
463
|
loading: j.value,
|
|
466
464
|
variant: "secondary",
|
|
467
465
|
onClick: de
|
|
468
466
|
}, null, 8, ["label", "loading"])
|
|
469
|
-
])) : l(y).status === "loading" ? (m(),
|
|
467
|
+
])) : l(y).status === "loading" ? (m(), x(h, { key: 1 })) : c.value && c.value.rows.length === 0 && !O.value ? (m(), x(l($e), {
|
|
470
468
|
key: 2,
|
|
471
469
|
action: { text: l(e)("menu.order_pacing.add"), callback: K },
|
|
472
470
|
title: l(e)("menu.order_pacing.empty.title"),
|
|
473
471
|
subtitle: l(e)("menu.order_pacing.empty.subtitle")
|
|
474
|
-
}, null, 8, ["action", "title", "subtitle"])) :
|
|
475
|
-
|
|
472
|
+
}, null, 8, ["action", "title", "subtitle"])) : c.value && G.value ? (m(), b("div", We, [
|
|
473
|
+
r("div", Xe, [
|
|
476
474
|
n(ae, {
|
|
477
475
|
autofocus: "",
|
|
478
476
|
class: "mb-8",
|
|
@@ -485,60 +483,61 @@ const Me = {
|
|
|
485
483
|
]),
|
|
486
484
|
n(l(Pe), {
|
|
487
485
|
class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64",
|
|
488
|
-
disabled:
|
|
486
|
+
disabled: c.value.reorder.state !== "allowed",
|
|
489
487
|
handle: ".handle",
|
|
490
488
|
"item-key": "id",
|
|
491
489
|
"model-value": H.value,
|
|
492
490
|
"onUpdate:modelValue": ee
|
|
493
491
|
}, {
|
|
494
|
-
item:
|
|
495
|
-
|
|
492
|
+
item: u(({ element: o }) => [
|
|
493
|
+
r("div", {
|
|
496
494
|
class: "flex flex-row items-center py-12 px-16",
|
|
497
495
|
onClick: (_) => Y(o)
|
|
498
496
|
}, [
|
|
499
|
-
n(
|
|
497
|
+
n(s, {
|
|
500
498
|
class: "handle cursor-grab mr-8 shrink-0",
|
|
501
499
|
"aria-label": l(e)("menu.common.labels.a11y_labelled_name", {
|
|
502
500
|
label: l(e)("menu.common.actions.move"),
|
|
503
501
|
name: o.name
|
|
504
502
|
}),
|
|
505
|
-
disabled:
|
|
503
|
+
disabled: c.value.reorder.state !== "allowed",
|
|
506
504
|
"prepend-icon": "drag_handle",
|
|
507
|
-
variant: "tertiary"
|
|
508
|
-
onClick: t[0] || (t[0] = V(() => {
|
|
509
|
-
}, ["stop"]))
|
|
505
|
+
variant: "tertiary"
|
|
510
506
|
}, null, 8, ["aria-label", "disabled"]),
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
507
|
+
r("div", Ze, [
|
|
508
|
+
r("p", ea, g(o.name), 1),
|
|
509
|
+
r("p", aa, g(l(e)("menu.common.labels.product_linked", {
|
|
514
510
|
count: o.linkedProductCount
|
|
515
511
|
})), 1)
|
|
516
512
|
]),
|
|
517
|
-
n(
|
|
513
|
+
n(s, {
|
|
518
514
|
class: "shrink-0",
|
|
519
515
|
"aria-label": l(e)("menu.common.actions.delete"),
|
|
520
516
|
disabled: o.remove.state !== "allowed",
|
|
521
517
|
"prepend-icon": "delete",
|
|
522
518
|
"text-color": "neutral-gray-400",
|
|
523
519
|
variant: "tertiary",
|
|
524
|
-
onClick:
|
|
520
|
+
onClick: I((_) => Z(o), ["stop"])
|
|
525
521
|
}, null, 8, ["aria-label", "disabled", "onClick"])
|
|
526
|
-
], 8,
|
|
522
|
+
], 8, Ye)
|
|
527
523
|
]),
|
|
528
524
|
_: 1
|
|
529
525
|
}, 8, ["disabled", "model-value"]),
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
526
|
+
c.value.totalCount > 0 ? (m(), x(Le, { key: 0 }, {
|
|
527
|
+
default: u(() => [
|
|
528
|
+
n(s, {
|
|
529
|
+
disabled: c.value.create.state !== "allowed",
|
|
530
|
+
label: l(e)("menu.order_pacing.add"),
|
|
531
|
+
"prepend-icon": "add",
|
|
532
|
+
variant: "fab",
|
|
533
|
+
onClick: K
|
|
534
|
+
}, null, 8, ["disabled", "label"])
|
|
535
|
+
]),
|
|
536
|
+
_: 1
|
|
537
|
+
})) : P("", !0)
|
|
538
|
+
])) : c.value ? (m(), b(q, { key: 4 }, [
|
|
539
|
+
r("div", la, [
|
|
540
|
+
r("div", ta, [
|
|
542
541
|
n(ae, {
|
|
543
542
|
autofocus: "",
|
|
544
543
|
class: "mb-8",
|
|
@@ -553,78 +552,78 @@ const Me = {
|
|
|
553
552
|
n(le, {
|
|
554
553
|
"column-defs": be.value,
|
|
555
554
|
"hide-footer": "",
|
|
556
|
-
"page-size":
|
|
555
|
+
"page-size": c.value.rows.length,
|
|
557
556
|
"pin-header-row": "",
|
|
558
557
|
"row-data": H.value,
|
|
559
558
|
"shrink-at": !1,
|
|
560
|
-
draggable:
|
|
561
|
-
onRowClick: t[
|
|
559
|
+
draggable: ge.value,
|
|
560
|
+
onRowClick: t[0] || (t[0] = (o) => Y(o.original)),
|
|
562
561
|
onDndChanged: ee
|
|
563
562
|
}, null, 8, ["column-defs", "page-size", "row-data", "draggable"])
|
|
564
|
-
], 64)) :
|
|
563
|
+
], 64)) : P("", !0),
|
|
565
564
|
n(te, {
|
|
566
565
|
modelValue: F.value,
|
|
567
|
-
"onUpdate:modelValue": t[
|
|
568
|
-
"is-container": l(
|
|
566
|
+
"onUpdate:modelValue": t[4] || (t[4] = (o) => F.value = o),
|
|
567
|
+
"is-container": l(V).FmForm,
|
|
569
568
|
"is-container-props": {
|
|
570
|
-
onValidationSuccess:
|
|
569
|
+
onValidationSuccess: fe,
|
|
571
570
|
blameFormChildOnValidationFailed: !0
|
|
572
571
|
},
|
|
573
572
|
"max-width": 600
|
|
574
573
|
}, {
|
|
575
|
-
"side-sheet-header":
|
|
574
|
+
"side-sheet-header": u(() => {
|
|
576
575
|
var o;
|
|
577
576
|
return [
|
|
578
|
-
|
|
577
|
+
r("p", oa, g(((o = i.value) == null ? void 0 : o.mode) === "update" ? l(e)("menu.order_pacing.manager.dialog.update.title") : l(e)("menu.order_pacing.manager.dialog.add.title")), 1)
|
|
579
578
|
];
|
|
580
579
|
}),
|
|
581
|
-
"side-sheet-footer":
|
|
580
|
+
"side-sheet-footer": u(() => {
|
|
582
581
|
var o, _;
|
|
583
582
|
return [
|
|
584
|
-
|
|
585
|
-
n(
|
|
586
|
-
disabled: ((o =
|
|
587
|
-
label: ((_ =
|
|
583
|
+
r("div", ca, [
|
|
584
|
+
n(s, {
|
|
585
|
+
disabled: ((o = i.value) == null ? void 0 : o.submit.state) !== "allowed",
|
|
586
|
+
label: ((_ = i.value) == null ? void 0 : _.mode) === "update" ? l(e)("menu.common.actions.update") : l(e)("menu.order_pacing.manager.dialog.add.action"),
|
|
588
587
|
size: "lg",
|
|
589
588
|
type: "submit",
|
|
590
589
|
variant: "primary"
|
|
591
590
|
}, null, 8, ["disabled", "label"]),
|
|
592
|
-
n(
|
|
591
|
+
n(s, {
|
|
593
592
|
label: l(e)("menu.common.actions.cancel"),
|
|
594
593
|
size: "lg",
|
|
595
594
|
variant: "tertiary",
|
|
596
|
-
onClick: t[
|
|
595
|
+
onClick: t[3] || (t[3] = (D) => F.value = !1)
|
|
597
596
|
}, null, 8, ["label"])
|
|
598
597
|
])
|
|
599
598
|
];
|
|
600
599
|
}),
|
|
601
|
-
default:
|
|
602
|
-
|
|
603
|
-
n(
|
|
604
|
-
view:
|
|
600
|
+
default: u(() => [
|
|
601
|
+
r("div", na, [
|
|
602
|
+
n(De, {
|
|
603
|
+
view: i.value,
|
|
605
604
|
session: d.value,
|
|
606
605
|
validation: l(W)
|
|
607
606
|
}, {
|
|
608
|
-
"name-append":
|
|
607
|
+
"name-append": u(() => [
|
|
609
608
|
n(we, {
|
|
610
609
|
variant: "plain",
|
|
611
610
|
placement: "top",
|
|
612
611
|
"z-index": 999
|
|
613
612
|
}, {
|
|
614
|
-
content:
|
|
613
|
+
content: u(() => {
|
|
615
614
|
var o, _;
|
|
616
615
|
return [
|
|
617
|
-
|
|
618
|
-
Object.keys(((o =
|
|
619
|
-
(m(!0),
|
|
620
|
-
value:
|
|
621
|
-
locale: pe(
|
|
616
|
+
r("div", sa, [
|
|
617
|
+
Object.keys(((o = i.value) == null ? void 0 : o.nameLocale) ?? {}).length === 0 ? (m(), b("div", ra, g(l(e)("menu.common.translation.translation_label")), 1)) : P("", !0),
|
|
618
|
+
(m(!0), b(q, null, se((_ = i.value) == null ? void 0 : _.nameLocale, (D, C) => (m(), b("div", { key: C }, g(l(e)("menu.order_pacing.translation.tooltip_value", {
|
|
619
|
+
value: D,
|
|
620
|
+
locale: pe(C)
|
|
622
621
|
})), 1))), 128))
|
|
623
622
|
])
|
|
624
623
|
];
|
|
625
624
|
}),
|
|
626
|
-
default:
|
|
627
|
-
n(
|
|
625
|
+
default: u(() => [
|
|
626
|
+
n(s, {
|
|
628
627
|
"aria-label": l(e)("menu.common.translation.translation_label"),
|
|
629
628
|
icon: "g_translate",
|
|
630
629
|
variant: "tertiary",
|
|
@@ -640,29 +639,33 @@ const Me = {
|
|
|
640
639
|
title: l(e)("menu.order_pacing.product.title"),
|
|
641
640
|
"sub-title": l(e)("menu.order_pacing.product.subtitle")
|
|
642
641
|
}, {
|
|
643
|
-
"append-title":
|
|
644
|
-
|
|
645
|
-
n(
|
|
642
|
+
"append-title": u(() => [
|
|
643
|
+
r("div", ia, [
|
|
644
|
+
n(s, {
|
|
646
645
|
"border-color": l(T).ColorPrimary,
|
|
647
646
|
label: l(e)("menu.order_pacing.link_product.title"),
|
|
648
647
|
"prepend-icon": "link",
|
|
649
648
|
"text-color": l(T).ColorPrimary,
|
|
650
649
|
variant: "secondary",
|
|
651
650
|
type: "button",
|
|
652
|
-
onPointerdown: t[
|
|
651
|
+
onPointerdown: t[1] || (t[1] = I(() => {
|
|
653
652
|
}, ["prevent"])),
|
|
654
|
-
onClick: t[
|
|
653
|
+
onClick: t[2] || (t[2] = (o) => L.value = !0)
|
|
655
654
|
}, null, 8, ["border-color", "label", "text-color"])
|
|
656
655
|
])
|
|
657
656
|
]),
|
|
658
|
-
default:
|
|
659
|
-
|
|
660
|
-
"
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
657
|
+
default: u(() => [
|
|
658
|
+
r("div", da, [
|
|
659
|
+
r("div", ua, [
|
|
660
|
+
n(le, {
|
|
661
|
+
"column-defs": he.value,
|
|
662
|
+
"hide-footer": "",
|
|
663
|
+
"page-size": 999,
|
|
664
|
+
"row-data": ce.value,
|
|
665
|
+
"shrink-at": !1
|
|
666
|
+
}, null, 8, ["column-defs", "row-data"])
|
|
667
|
+
])
|
|
668
|
+
])
|
|
666
669
|
]),
|
|
667
670
|
_: 1
|
|
668
671
|
}, 8, ["title", "sub-title"])
|
|
@@ -670,71 +673,71 @@ const Me = {
|
|
|
670
673
|
]),
|
|
671
674
|
_: 1
|
|
672
675
|
}, 8, ["modelValue", "is-container", "is-container-props"]),
|
|
673
|
-
|
|
676
|
+
i.value ? (m(), x(Ne, {
|
|
674
677
|
key: 5,
|
|
675
678
|
"model-value": S.value,
|
|
676
|
-
"onUpdate:modelValue": t[
|
|
677
|
-
dirty:
|
|
678
|
-
name:
|
|
679
|
-
"name-locale":
|
|
679
|
+
"onUpdate:modelValue": t[5] || (t[5] = (o) => o || X()),
|
|
680
|
+
dirty: i.value.translationDirty,
|
|
681
|
+
name: i.value.name,
|
|
682
|
+
"name-locale": i.value.nameLocale,
|
|
680
683
|
"name-section-label": l(e)("menu.order_pacing.translation.name_section"),
|
|
681
|
-
"supported-locales":
|
|
684
|
+
"supported-locales": i.value.supportedLocales,
|
|
682
685
|
title: l(e)("menu.order_pacing.translation.title"),
|
|
683
686
|
onDiscard: X,
|
|
684
687
|
onSave: _e,
|
|
685
688
|
"onUpdate:name": d.value.setName,
|
|
686
689
|
"onUpdate:nameLocale": d.value.setNameLocale
|
|
687
|
-
}, null, 8, ["model-value", "dirty", "name", "name-locale", "name-section-label", "supported-locales", "title", "onUpdate:name", "onUpdate:nameLocale"])) :
|
|
690
|
+
}, null, 8, ["model-value", "dirty", "name", "name-locale", "name-section-label", "supported-locales", "title", "onUpdate:name", "onUpdate:nameLocale"])) : P("", !0),
|
|
688
691
|
n(te, {
|
|
689
|
-
modelValue:
|
|
690
|
-
"onUpdate:modelValue": t[
|
|
691
|
-
"is-container": l(
|
|
692
|
+
modelValue: U.value,
|
|
693
|
+
"onUpdate:modelValue": t[10] || (t[10] = (o) => U.value = o),
|
|
694
|
+
"is-container": l(V).FmForm,
|
|
692
695
|
"is-container-props": { onValidationSuccess: ke },
|
|
693
696
|
"max-width": 560
|
|
694
697
|
}, {
|
|
695
|
-
"side-sheet-header":
|
|
696
|
-
|
|
698
|
+
"side-sheet-header": u(() => [
|
|
699
|
+
r("p", ma, g(l(e)("menu.order_pacing.link_product.title")), 1)
|
|
697
700
|
]),
|
|
698
|
-
"side-sheet-footer":
|
|
701
|
+
"side-sheet-footer": u(() => {
|
|
699
702
|
var o;
|
|
700
703
|
return [
|
|
701
|
-
|
|
702
|
-
n(
|
|
703
|
-
disabled: ((o =
|
|
704
|
+
r("div", va, [
|
|
705
|
+
n(s, {
|
|
706
|
+
disabled: ((o = i.value) == null ? void 0 : o.submit.state) !== "allowed",
|
|
704
707
|
label: l(e)("menu.common.actions.save"),
|
|
705
708
|
size: "lg",
|
|
706
709
|
type: "submit",
|
|
707
710
|
variant: "primary"
|
|
708
711
|
}, null, 8, ["disabled", "label"]),
|
|
709
|
-
n(
|
|
712
|
+
n(s, {
|
|
710
713
|
label: l(e)("menu.common.actions.cancel"),
|
|
711
714
|
size: "lg",
|
|
712
715
|
variant: "tertiary",
|
|
713
|
-
onClick: t[
|
|
716
|
+
onClick: t[9] || (t[9] = (_) => U.value = !1)
|
|
714
717
|
}, null, 8, ["label"])
|
|
715
718
|
])
|
|
716
719
|
];
|
|
717
720
|
}),
|
|
718
|
-
default:
|
|
719
|
-
var o, _,
|
|
721
|
+
default: u(() => {
|
|
722
|
+
var o, _, D;
|
|
720
723
|
return [
|
|
721
724
|
n(Ue, {
|
|
722
|
-
"applied-count": ((o =
|
|
723
|
-
groups: ((_ =
|
|
724
|
-
query: ((
|
|
725
|
+
"applied-count": ((o = i.value) == null ? void 0 : o.appliedProductCount) ?? 0,
|
|
726
|
+
groups: ((_ = i.value) == null ? void 0 : _.linkedGroups) ?? [],
|
|
727
|
+
query: ((D = i.value) == null ? void 0 : D.linkedProductQuery) ?? "",
|
|
725
728
|
title: l(e)("menu.order_pacing.product.title"),
|
|
726
|
-
onUnapply: t[
|
|
727
|
-
"onUpdate:query": t[
|
|
729
|
+
onUnapply: t[7] || (t[7] = (C) => d.value.unlinkProduct(C)),
|
|
730
|
+
"onUpdate:query": t[8] || (t[8] = (C) => d.value.setLinkedProductQuery(C))
|
|
728
731
|
}, {
|
|
729
|
-
"append-title":
|
|
730
|
-
|
|
731
|
-
n(
|
|
732
|
+
"append-title": u(() => [
|
|
733
|
+
r("div", pa, [
|
|
734
|
+
n(s, {
|
|
732
735
|
"border-color": l(T).ColorPrimary,
|
|
733
736
|
label: l(e)("menu.common.actions.apply_product"),
|
|
734
737
|
"prepend-icon": "link",
|
|
735
738
|
"text-color": l(T).ColorPrimary,
|
|
736
739
|
variant: "secondary",
|
|
737
|
-
onClick: t[
|
|
740
|
+
onClick: t[6] || (t[6] = (C) => L.value = !0)
|
|
738
741
|
}, null, 8, ["border-color", "label", "text-color"])
|
|
739
742
|
])
|
|
740
743
|
]),
|
|
@@ -744,9 +747,9 @@ const Me = {
|
|
|
744
747
|
}),
|
|
745
748
|
_: 1
|
|
746
749
|
}, 8, ["modelValue", "is-container", "is-container-props"]),
|
|
747
|
-
n(
|
|
748
|
-
modelValue:
|
|
749
|
-
"onUpdate:modelValue": t[
|
|
750
|
+
n(ze, {
|
|
751
|
+
modelValue: L.value,
|
|
752
|
+
"onUpdate:modelValue": t[11] || (t[11] = (o) => L.value = o),
|
|
750
753
|
catalogue: ue.value,
|
|
751
754
|
"selected-product-ids": me.value,
|
|
752
755
|
title: l(e)("menu.order_pacing.link_product.title"),
|
|
@@ -757,13 +760,13 @@ const Me = {
|
|
|
757
760
|
}, 8, ["heading"]);
|
|
758
761
|
};
|
|
759
762
|
}
|
|
760
|
-
}),
|
|
763
|
+
}), $a = /* @__PURE__ */ Q({
|
|
761
764
|
__name: "OrderPacing",
|
|
762
765
|
setup(B) {
|
|
763
|
-
const p =
|
|
764
|
-
return (e, E) => (m(),
|
|
766
|
+
const p = Me();
|
|
767
|
+
return (e, E) => (m(), x(_a, { sdk: l(p) }, null, 8, ["sdk"]));
|
|
765
768
|
}
|
|
766
769
|
});
|
|
767
770
|
export {
|
|
768
|
-
|
|
771
|
+
$a as default
|
|
769
772
|
};
|