@feedmepos/mf-menu-portal 1.0.4-dev.3 → 1.0.4-dev.4
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-nS46pByh.js → App-CrpoLCjA.js} +3 -3
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js} +1 -1
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-DnvN5R5w.js → BindingTable.vue_vue_type_script_setup_true_lang-D3CmOOPY.js} +1 -1
- package/dist/{Catalog-B4RS8T29.js → Catalog-VU3HhNro.js} +4 -4
- package/dist/{CatalogBinding-6_783kbu.js → CatalogBinding-BNATtZEY.js} +3 -3
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-BawCLY5-.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-BmG-xpW4.js} +3 -3
- package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BjP8ZXyb.js → CatalogEditor.vue_vue_type_script_setup_true_lang-BFsRDFpj.js} +7 -7
- package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Diapahfp.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Bk4FqVmx.js} +14 -14
- package/dist/{Category-CqneIGq4.js → Category-DMoXTsfG.js} +5 -5
- package/dist/{Category-DNQH1CI7.js → Category-DxjdQ-NN.js} +2 -2
- package/dist/CategoryList.vue_vue_type_script_setup_true_lang-B3Ts1O-9.js +847 -0
- package/dist/{CookingGuide-DTAiFmEL.js → CookingGuide-DiZZDYD-.js} +5 -5
- package/dist/{Group-DeUqUomY.js → Group-DFR8q-tt.js} +5 -5
- package/dist/{Group-5xO2j3CL.js → Group-rzfh_o6r.js} +2 -2
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-DiN-wQXX.js +1807 -0
- package/dist/Ingredient-DpjGIuH9.js +505 -0
- package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js +782 -0
- package/dist/{MenuSetting-DdekHsQy.js → MenuSetting-DR-pDSF_.js} +4 -4
- package/dist/OrderPacing-JcTuweqF.js +769 -0
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-C3SqQPSr.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.js} +2 -2
- package/dist/{Preview-DGTw0POk.js → Preview-BZyun5lZ.js} +1 -1
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-DffhFv0Y.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js} +1 -1
- package/dist/PrintRoute-CzEx2dCt.js +518 -0
- package/dist/{Product-CsbcyIgD.js → Product-CQb0n06E.js} +4 -4
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +7931 -0
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang--rBKdKV7.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-CBlDEjqF.js} +9 -9
- package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D8NQTCLx.js +2011 -0
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-DtCzHjpN.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js} +1 -1
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-aDx01-WW.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-0UwUcA2L.js} +630 -587
- package/dist/{ProductInternalTools-Ccd4dAmx.js → ProductInternalTools-QrBR1nFp.js} +2 -2
- package/dist/{ProductInventoryDialog-DYcKdKHi.js → ProductInventoryDialog-fV38GO1a.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-DySFcCJz.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Bzb3RrMg.js} +1 -1
- package/dist/ProductList.vue_vue_type_script_setup_true_lang-BwKQESr3.js +2765 -0
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-Dw2xiPYX.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js} +1 -1
- package/dist/{Products-phZwCZhU.js → Products-B8tysOAL.js} +3 -3
- package/dist/Publish-DTvOvFNa.js +1337 -0
- package/dist/Recipe-Ddx31csF.js +388 -0
- package/dist/{Scheduler-C-A5m92O.js → Scheduler-CST5L_cw.js} +314 -254
- package/dist/ServingSequence-DYyEZI2S.js +374 -0
- package/dist/{Setting-C24V-lps.js → Setting-Ip0pGjks.js} +6 -6
- package/dist/Subcategory-BIgjzVta.js +459 -0
- package/dist/{Takeaway-DywX5BiX.js → Takeaway-CekhGM-m.js} +2 -2
- package/dist/{Takeaway-BFP2ohJn.js → Takeaway-aXsPg4JT.js} +5 -5
- package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-B3QS7o1v.js → TakeawayList.vue_vue_type_script_setup_true_lang-CaRR4_j3.js} +4 -4
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CshqYpc9.js +1291 -0
- package/dist/Unit-BMW8u0Us.js +424 -0
- package/dist/{Variant-BBfWhH-s.js → Variant-CZsrYRMU.js} +5 -5
- package/dist/{_id_-BooM3FX1.js → _id_-D4swrvNa.js} +3 -3
- package/dist/{app-Bmgb8ACe.js → app-BWwwHsWi.js} +312 -312
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +60 -0
- package/dist/apps/mf-menu/src/components/Product/BulkCategorySelect.vue.d.ts +37 -0
- package/dist/apps/mf-menu/src/components/Product/ProductAttributeFilter.vue.d.ts +11 -1
- package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +2 -2
- package/dist/apps/mf-menu/src/components/feature/NestedGroupManager/NestedGroupOverrideSheets.vue.d.ts +27 -0
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesFilter.vue.d.ts +20 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-CG-fX5pi.js → menu-compute-D7TdiHt4.js} +4 -4
- package/dist/assets/{validate-menu-BeGMWVns.js → validate-menu-DXppWUVq.js} +2 -2
- package/dist/mf-menu-portal.css +1 -1
- package/dist/{provide-CfF0FmUz.js → provide-CDmXzkhz.js} +67990 -66891
- package/dist/{useActionFeedback-DyUCQl2x.js → useActionFeedback-Dm2HDa_2.js} +1 -1
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js → vuedraggable-CBtQLb_S.js} +140 -139
- package/package.json +2 -2
- package/dist/CategoryList.vue_vue_type_script_setup_true_lang-Bt_onPrP.js +0 -797
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-Dgya_JLB.js +0 -2183
- package/dist/Ingredient-BlDW3TfZ.js +0 -463
- package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-0tCpJlOf.js +0 -709
- package/dist/OrderPacing-Bb2n5wmI.js +0 -698
- package/dist/PrintRoute-CJB4gIP2.js +0 -473
- package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D8DygCBl.js +0 -110
- package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-J6LpJ5wT.js +0 -1257
- package/dist/ProductList.vue_vue_type_script_setup_true_lang-DTLslTpK.js +0 -10353
- package/dist/Publish-BeKIXu3z.js +0 -1261
- package/dist/Recipe-Fo4tBkBv.js +0 -350
- package/dist/ServingSequence-BrCwLSO7.js +0 -336
- package/dist/Subcategory-B0oZIKbw.js +0 -412
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D7mhnrXx.js +0 -1213
- package/dist/Unit-NhEwH-kr.js +0 -385
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/RestaurantAttributesFilter.vue.d.ts +0 -2
|
@@ -1,24 +1,54 @@
|
|
|
1
|
-
import { defineComponent as ce, openBlock as r, createBlock as T, unref as e, withCtx as
|
|
1
|
+
import { ref as W, computed as R, nextTick as Je, defineComponent as ce, openBlock as r, createBlock as T, unref as e, withCtx as p, createElementVNode as n, renderSlot as We, resolveComponent as M, toDisplayString as I, createElementBlock as S, createCommentVNode as y, createVNode as s, toRaw as el, onBeforeUnmount as ke, Fragment as re, renderList as Fe, shallowRef as ye, watch as Ae, onMounted as Bl, createTextVNode as sl, withModifiers as Ee, normalizeClass as Be, h as H, createSlots as cl, normalizeStyle as pl, isRef as Ol, mergeProps as Ce, withDirectives as ul } from "vue";
|
|
2
2
|
import { _ as ge, a as Hl, b as $l, u as Xl } from "./TranslationLanguageSelector.vue_vue_type_script_setup_true_lang-BJZ6VcrT.js";
|
|
3
3
|
import { useI18n as be, CustomAttributesForm as Wl } from "@feedmepos/mf-common";
|
|
4
4
|
import { useAppStore as Ll, RemyButton as Sl } from "@feedmepos/mf-remy-panel";
|
|
5
5
|
import { InventoryBindingSummary as Yl } from "@feedmepos/mf-inventory-portal";
|
|
6
|
-
import { components as
|
|
7
|
-
import { b as Jl } from "./app-
|
|
6
|
+
import { components as B, useDialog as Qe, useSnackbar as Zl, FmButtonVariant as Ne, FmButtonColorThemeVariant as Vl } from "@feedmepos/ui-library";
|
|
7
|
+
import { b as Jl } from "./app-BWwwHsWi.js";
|
|
8
8
|
import { _ as Oe } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
|
|
9
|
-
import { d as ea, _ as qe, a as la } from "./
|
|
10
|
-
import { b as Pe, u as Le, A as aa } from "./provide-
|
|
11
|
-
import { u as Ue } from "./useActionFeedback-
|
|
12
|
-
import { a as dl, b as Pl, t as Ul, r as ta, d as oa, c as na } from "./ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { _ as Ke, a as nl, F as sa, b as
|
|
14
|
-
import { a as
|
|
15
|
-
import { _ as Rl } from "./ProductInventoryDialog.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { _ as da } from "./PriceTierNotice.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { d as ea, _ as qe, a as la } from "./vuedraggable-CBtQLb_S.js";
|
|
10
|
+
import { b as Pe, u as Le, A as aa } from "./provide-CDmXzkhz.js";
|
|
11
|
+
import { u as Ue } from "./useActionFeedback-Dm2HDa_2.js";
|
|
12
|
+
import { a as dl, b as Pl, t as Ul, r as ta, d as oa, c as na } from "./ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js";
|
|
13
|
+
import { _ as Ke, a as nl, F as sa, b as zl, c as ia, d as ra } from "./ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D8NQTCLx.js";
|
|
14
|
+
import { a as Dl, A as Il, _ as ua } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js";
|
|
15
|
+
import { _ as Rl } from "./ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Bzb3RrMg.js";
|
|
16
|
+
import { _ as da } from "./PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js";
|
|
17
17
|
import { _ as ma } from "./AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js";
|
|
18
18
|
import { _ as il } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js";
|
|
19
|
-
import { _ as ca } from "./OrderPacingFields.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { _ as ca } from "./OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.js";
|
|
20
20
|
import { u as ll } from "./useEditorValidation-Ctef5Bxt.js";
|
|
21
|
-
import { _ as pa } from "./ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-
|
|
21
|
+
import { _ as pa } from "./ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js";
|
|
22
|
+
function Ml(Y, V) {
|
|
23
|
+
const i = W(""), x = R(() => i.value.trim().toLowerCase()), o = R(
|
|
24
|
+
() => x.value ? Y().filter(
|
|
25
|
+
(C) => V(C).toLowerCase().includes(x.value)
|
|
26
|
+
) : Y()
|
|
27
|
+
), d = R(
|
|
28
|
+
() => x.value !== "" && o.value.length === 0
|
|
29
|
+
);
|
|
30
|
+
function w() {
|
|
31
|
+
i.value = "";
|
|
32
|
+
}
|
|
33
|
+
return { search: i, filtered: o, noMatches: d, reset: w };
|
|
34
|
+
}
|
|
35
|
+
function Nl() {
|
|
36
|
+
const Y = W(), V = W();
|
|
37
|
+
let i = !1;
|
|
38
|
+
async function x(d) {
|
|
39
|
+
var P;
|
|
40
|
+
if (i = d, V.value = void 0, !d) return;
|
|
41
|
+
await Je(), await new Promise(requestAnimationFrame);
|
|
42
|
+
const w = (P = Y.value) == null ? void 0 : P.parentElement;
|
|
43
|
+
if (!i || !w) return;
|
|
44
|
+
const C = getComputedStyle(w);
|
|
45
|
+
V.value = w.clientHeight - parseFloat(C.paddingTop) - parseFloat(C.paddingBottom);
|
|
46
|
+
}
|
|
47
|
+
const o = R(
|
|
48
|
+
() => V.value ? { minHeight: `${V.value}px` } : void 0
|
|
49
|
+
);
|
|
50
|
+
return { content: Y, contentStyle: o, onMenuChanged: x };
|
|
51
|
+
}
|
|
22
52
|
const ml = /* @__PURE__ */ ce({
|
|
23
53
|
__name: "FlatInlineSort",
|
|
24
54
|
props: {
|
|
@@ -46,7 +76,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
46
76
|
class: "space-y-16",
|
|
47
77
|
"onUpdate:modelValue": o
|
|
48
78
|
}, {
|
|
49
|
-
item:
|
|
79
|
+
item: p(({ element: P, index: m }) => [
|
|
50
80
|
n("div", null, [
|
|
51
81
|
We(w.$slots, "item", {
|
|
52
82
|
element: P,
|
|
@@ -82,10 +112,10 @@ const ml = /* @__PURE__ */ ce({
|
|
|
82
112
|
title: i.title,
|
|
83
113
|
"sub-title": i.subtitle
|
|
84
114
|
}, {
|
|
85
|
-
"append-title":
|
|
115
|
+
"append-title": p(() => [
|
|
86
116
|
We(o.$slots, "append-title")
|
|
87
117
|
]),
|
|
88
|
-
default:
|
|
118
|
+
default: p(() => [
|
|
89
119
|
We(o.$slots, "default")
|
|
90
120
|
]),
|
|
91
121
|
_: 3
|
|
@@ -94,7 +124,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
94
124
|
class: "p-16 space-y-24",
|
|
95
125
|
variant: "outlined"
|
|
96
126
|
}, {
|
|
97
|
-
default:
|
|
127
|
+
default: p(() => [
|
|
98
128
|
n("div", va, [
|
|
99
129
|
n("div", ba, [
|
|
100
130
|
n("p", fa, I(i.overrideTitle ?? i.title), 1),
|
|
@@ -106,7 +136,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
106
136
|
value: "",
|
|
107
137
|
"onUpdate:modelValue": d[0] || (d[0] = (P) => x("update:enabled", P))
|
|
108
138
|
}, {
|
|
109
|
-
label:
|
|
139
|
+
label: p(() => [
|
|
110
140
|
n("span", ya, I(i.toggleLabel ?? i.title), 1)
|
|
111
141
|
]),
|
|
112
142
|
_: 1
|
|
@@ -119,10 +149,10 @@ const ml = /* @__PURE__ */ ce({
|
|
|
119
149
|
title: i.title,
|
|
120
150
|
"sub-title": i.subtitle
|
|
121
151
|
}, {
|
|
122
|
-
"append-title":
|
|
152
|
+
"append-title": p(() => [
|
|
123
153
|
We(o.$slots, "append-title")
|
|
124
154
|
]),
|
|
125
|
-
default:
|
|
155
|
+
default: p(() => [
|
|
126
156
|
We(o.$slots, "default")
|
|
127
157
|
]),
|
|
128
158
|
_: 3
|
|
@@ -144,7 +174,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
144
174
|
},
|
|
145
175
|
emits: ["close", "confirm"],
|
|
146
176
|
setup(Y, { emit: V }) {
|
|
147
|
-
const i = Y, x = V, { t: o } = be(), { run: d } = Ue(), w =
|
|
177
|
+
const i = Y, x = V, { t: o } = be(), { run: d } = Ue(), w = W(""), C = W(""), P = W(!0);
|
|
148
178
|
function m() {
|
|
149
179
|
P.value = !1, x("close");
|
|
150
180
|
}
|
|
@@ -165,7 +195,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
165
195
|
}
|
|
166
196
|
x("confirm", _);
|
|
167
197
|
}
|
|
168
|
-
return (_, F) => (r(), T(e(
|
|
198
|
+
return (_, F) => (r(), T(e(B).FmDialog, {
|
|
169
199
|
modelValue: P.value,
|
|
170
200
|
"onUpdate:modelValue": [
|
|
171
201
|
F[2] || (F[2] = (L) => P.value = L),
|
|
@@ -173,29 +203,29 @@ const ml = /* @__PURE__ */ ce({
|
|
|
173
203
|
],
|
|
174
204
|
"max-width": 560
|
|
175
205
|
}, {
|
|
176
|
-
"dialog-header":
|
|
206
|
+
"dialog-header": p(() => [
|
|
177
207
|
n("p", ha, I(e(o)("menu.product_image.custom.title")), 1)
|
|
178
208
|
]),
|
|
179
|
-
"dialog-footer":
|
|
209
|
+
"dialog-footer": p(() => [
|
|
180
210
|
n("div", Va, [
|
|
181
|
-
s(e(
|
|
211
|
+
s(e(B).FmButton, {
|
|
182
212
|
label: e(o)("menu.common.actions.cancel"),
|
|
183
213
|
variant: "tertiary",
|
|
184
214
|
onClick: m
|
|
185
215
|
}, null, 8, ["label"]),
|
|
186
|
-
s(e(
|
|
216
|
+
s(e(B).FmButton, {
|
|
187
217
|
label: e(o)("menu.common.actions.confirm"),
|
|
188
218
|
variant: "primary",
|
|
189
219
|
onClick: $
|
|
190
220
|
}, null, 8, ["label"])
|
|
191
221
|
])
|
|
192
222
|
]),
|
|
193
|
-
default:
|
|
223
|
+
default: p(() => [
|
|
194
224
|
n("div", ka, [
|
|
195
225
|
n("p", wa, I(e(o)("menu.product_image.custom.hint")), 1),
|
|
196
226
|
n("div", xa, [
|
|
197
227
|
n("div", Ca, [
|
|
198
|
-
s(e(
|
|
228
|
+
s(e(B).FmTextField, {
|
|
199
229
|
modelValue: w.value,
|
|
200
230
|
"onUpdate:modelValue": F[0] || (F[0] = (L) => w.value = L),
|
|
201
231
|
label: e(o)("menu.product_image.custom.width"),
|
|
@@ -205,7 +235,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
205
235
|
]),
|
|
206
236
|
n("p", Fa, I(e(o)("menu.product_image.custom.separator")), 1),
|
|
207
237
|
n("div", $a, [
|
|
208
|
-
s(e(
|
|
238
|
+
s(e(B).FmTextField, {
|
|
209
239
|
modelValue: C.value,
|
|
210
240
|
"onUpdate:modelValue": F[1] || (F[1] = (L) => C.value = L),
|
|
211
241
|
label: e(o)("menu.product_image.custom.height"),
|
|
@@ -231,7 +261,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
231
261
|
},
|
|
232
262
|
emits: ["close", "confirm"],
|
|
233
263
|
setup(Y, { emit: V }) {
|
|
234
|
-
const i = Y, x = V, { t: o } = be(), d =
|
|
264
|
+
const i = Y, x = V, { t: o } = be(), d = W(""), w = W(!1), C = W(!0);
|
|
235
265
|
function P() {
|
|
236
266
|
C.value = !1, x("close");
|
|
237
267
|
}
|
|
@@ -241,7 +271,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
241
271
|
fromOriginal: w.value
|
|
242
272
|
}), C.value = !1;
|
|
243
273
|
}
|
|
244
|
-
return (l, $) => (r(), T(e(
|
|
274
|
+
return (l, $) => (r(), T(e(B).FmDialog, {
|
|
245
275
|
modelValue: C.value,
|
|
246
276
|
"onUpdate:modelValue": [
|
|
247
277
|
$[3] || ($[3] = (_) => C.value = _),
|
|
@@ -249,34 +279,34 @@ const ml = /* @__PURE__ */ ce({
|
|
|
249
279
|
],
|
|
250
280
|
"max-width": 560
|
|
251
281
|
}, {
|
|
252
|
-
"dialog-header":
|
|
282
|
+
"dialog-header": p(() => [
|
|
253
283
|
n("p", Ua, I(e(o)("menu.product_image.regenerate.title")), 1)
|
|
254
284
|
]),
|
|
255
|
-
"dialog-footer":
|
|
285
|
+
"dialog-footer": p(() => [
|
|
256
286
|
n("div", Ba, [
|
|
257
|
-
s(e(
|
|
287
|
+
s(e(B).FmButton, {
|
|
258
288
|
label: e(o)("menu.common.actions.cancel"),
|
|
259
289
|
variant: "tertiary",
|
|
260
290
|
onClick: P
|
|
261
291
|
}, null, 8, ["label"]),
|
|
262
|
-
s(e(
|
|
292
|
+
s(e(B).FmButton, {
|
|
263
293
|
label: e(o)("menu.product_image.regenerate.action"),
|
|
264
294
|
variant: "primary",
|
|
265
295
|
onClick: m
|
|
266
296
|
}, null, 8, ["label"])
|
|
267
297
|
])
|
|
268
298
|
]),
|
|
269
|
-
default:
|
|
299
|
+
default: p(() => [
|
|
270
300
|
n("div", Ia, [
|
|
271
301
|
n("p", Ta, I(e(o)("menu.product_image.regenerate.hint", { ratio: i.ratioLabel })), 1),
|
|
272
302
|
i.canRegenerateFromOriginal ? (r(), S("div", Aa, [
|
|
273
|
-
s(e(
|
|
303
|
+
s(e(B).FmRadio, {
|
|
274
304
|
modelValue: w.value,
|
|
275
305
|
"onUpdate:modelValue": $[0] || ($[0] = (_) => w.value = _),
|
|
276
306
|
label: e(o)("menu.product_image.regenerate.base_current"),
|
|
277
307
|
value: !1
|
|
278
308
|
}, null, 8, ["modelValue", "label"]),
|
|
279
|
-
s(e(
|
|
309
|
+
s(e(B).FmRadio, {
|
|
280
310
|
modelValue: w.value,
|
|
281
311
|
"onUpdate:modelValue": $[1] || ($[1] = (_) => w.value = _),
|
|
282
312
|
label: e(o)("menu.product_image.regenerate.base_original"),
|
|
@@ -284,7 +314,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
284
314
|
value: !0
|
|
285
315
|
}, null, 8, ["modelValue", "label", "sublabel"])
|
|
286
316
|
])) : y("", !0),
|
|
287
|
-
s(e(
|
|
317
|
+
s(e(B).FmTextarea, {
|
|
288
318
|
modelValue: d.value,
|
|
289
319
|
"onUpdate:modelValue": $[2] || ($[2] = (_) => d.value = _),
|
|
290
320
|
label: e(o)("menu.product_image.regenerate.instruction"),
|
|
@@ -296,10 +326,10 @@ const ml = /* @__PURE__ */ ce({
|
|
|
296
326
|
_: 1
|
|
297
327
|
}, 8, ["modelValue"]));
|
|
298
328
|
}
|
|
299
|
-
}), La = { class: "fm-typo-en-title-md-600 mr-auto" },
|
|
329
|
+
}), La = { class: "fm-typo-en-title-md-600 mr-auto" }, za = {
|
|
300
330
|
key: 0,
|
|
301
331
|
class: "space-y-32 p-24 text-fm-color-typo-primary"
|
|
302
|
-
},
|
|
332
|
+
}, Da = {
|
|
303
333
|
key: 0,
|
|
304
334
|
class: "flex items-center gap-16"
|
|
305
335
|
}, Ra = ["alt", "src"], Ma = { class: "fm-typo-en-body-lg-600" }, Na = {
|
|
@@ -320,19 +350,19 @@ const ml = /* @__PURE__ */ ce({
|
|
|
320
350
|
},
|
|
321
351
|
emits: ["close"],
|
|
322
352
|
setup(Y, { emit: V }) {
|
|
323
|
-
const i = Y, x = V, { t: o } = be(), { run: d } = Ue(), w = Qe(), C = Pe(), P =
|
|
353
|
+
const i = Y, x = V, { t: o } = be(), { run: d } = Ue(), w = Qe(), C = Pe(), P = W(null), m = W("");
|
|
324
354
|
function l(q, Z) {
|
|
325
355
|
m.value = Z, P.value = q;
|
|
326
356
|
}
|
|
327
|
-
const $ =
|
|
357
|
+
const $ = el(i.target), _ = el(i.imageRef), F = i.sdk.productImage.manage($, _), L = Le(F);
|
|
328
358
|
ke(() => F.dispose());
|
|
329
359
|
const E = R(
|
|
330
360
|
() => L.value.status === "ready" ? L.value.value : null
|
|
331
361
|
), G = R(() => {
|
|
332
362
|
var q;
|
|
333
363
|
return ((q = E.value) == null ? void 0 : q.ratios) ?? [];
|
|
334
|
-
}), A = R(() => G.value.map((q) => q.id)),
|
|
335
|
-
function
|
|
364
|
+
}), A = R(() => G.value.map((q) => q.id)), v = W(!0), g = W(!1), f = W(null), k = W(null);
|
|
365
|
+
function O(q) {
|
|
336
366
|
return q.status === "pending" ? o("menu.product_image.status.pending") : q.status === "failed" ? o("menu.product_image.status.failed") : "";
|
|
337
367
|
}
|
|
338
368
|
function Q(q) {
|
|
@@ -342,7 +372,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
342
372
|
g.value = !1, await d(() => F.addFormats([q]), { showLoading: !1 });
|
|
343
373
|
}
|
|
344
374
|
function a() {
|
|
345
|
-
|
|
375
|
+
v.value = !1, x("close");
|
|
346
376
|
}
|
|
347
377
|
function c() {
|
|
348
378
|
F.update(), a();
|
|
@@ -399,7 +429,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
399
429
|
N.onerror = () => Z(""), N.onload = () => Z(typeof N.result == "string" ? N.result : ""), N.readAsDataURL(q);
|
|
400
430
|
});
|
|
401
431
|
}
|
|
402
|
-
const se =
|
|
432
|
+
const se = W(null);
|
|
403
433
|
function de(q) {
|
|
404
434
|
if (!q.removeNeedsConfirmation) {
|
|
405
435
|
fe(q);
|
|
@@ -431,28 +461,28 @@ const ml = /* @__PURE__ */ ce({
|
|
|
431
461
|
await d(() => F.removeRatio(q.id), { showLoading: !1 });
|
|
432
462
|
}
|
|
433
463
|
return (q, Z) => (r(), S(re, null, [
|
|
434
|
-
s(e(
|
|
464
|
+
s(e(B).FmSideSheet, {
|
|
435
465
|
id: "manage-product-image",
|
|
436
|
-
modelValue:
|
|
466
|
+
modelValue: v.value,
|
|
437
467
|
"onUpdate:modelValue": [
|
|
438
|
-
Z[2] || (Z[2] = (N) =>
|
|
468
|
+
Z[2] || (Z[2] = (N) => v.value = N),
|
|
439
469
|
Z[3] || (Z[3] = (N) => !N && x("close"))
|
|
440
470
|
],
|
|
441
471
|
"close-button": "",
|
|
442
472
|
"max-width": 860
|
|
443
473
|
}, {
|
|
444
|
-
"side-sheet-header":
|
|
474
|
+
"side-sheet-header": p(() => [
|
|
445
475
|
n("p", La, I(e(o)("menu.product_image.manage.title")), 1)
|
|
446
476
|
]),
|
|
447
|
-
"side-sheet-footer":
|
|
477
|
+
"side-sheet-footer": p(() => [
|
|
448
478
|
n("div", mt, [
|
|
449
|
-
s(e(
|
|
479
|
+
s(e(B).FmButton, {
|
|
450
480
|
label: e(o)("menu.common.actions.update"),
|
|
451
481
|
size: "lg",
|
|
452
482
|
variant: "primary",
|
|
453
483
|
onClick: c
|
|
454
484
|
}, null, 8, ["label"]),
|
|
455
|
-
s(e(
|
|
485
|
+
s(e(B).FmButton, {
|
|
456
486
|
label: e(o)("menu.common.actions.cancel"),
|
|
457
487
|
size: "lg",
|
|
458
488
|
variant: "tertiary",
|
|
@@ -460,14 +490,14 @@ const ml = /* @__PURE__ */ ce({
|
|
|
460
490
|
}, null, 8, ["label"])
|
|
461
491
|
])
|
|
462
492
|
]),
|
|
463
|
-
default:
|
|
464
|
-
E.value ? (r(), S("div",
|
|
465
|
-
E.value.addFormat.state !== "allowed" ? (r(), S("section",
|
|
466
|
-
s(e(
|
|
493
|
+
default: p(() => [
|
|
494
|
+
E.value ? (r(), S("div", za, [
|
|
495
|
+
E.value.addFormat.state !== "allowed" ? (r(), S("section", Da, [
|
|
496
|
+
s(e(B).FmCard, {
|
|
467
497
|
class: "!h-80 !w-80 rounded-md",
|
|
468
498
|
variant: "outlined"
|
|
469
499
|
}, {
|
|
470
|
-
default:
|
|
500
|
+
default: p(() => [
|
|
471
501
|
n("img", {
|
|
472
502
|
alt: e(o)("menu.product_image.manage.original"),
|
|
473
503
|
class: "h-full w-full object-cover",
|
|
@@ -484,7 +514,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
484
514
|
n("p", Ga, I(e(o)("menu.product_image.manage.aspect_ratio")), 1),
|
|
485
515
|
n("p", ja, I(e(o)("menu.product_image.manage.aspect_ratio_hint")), 1)
|
|
486
516
|
]),
|
|
487
|
-
s(e(
|
|
517
|
+
s(e(B).FmButton, {
|
|
488
518
|
disabled: E.value.addFormat.state !== "allowed",
|
|
489
519
|
label: e(o)("menu.product_image.manage.add_format"),
|
|
490
520
|
"aria-label": e(o)("menu.product_image.manage.add_format"),
|
|
@@ -499,33 +529,43 @@ const ml = /* @__PURE__ */ ce({
|
|
|
499
529
|
role: "group",
|
|
500
530
|
"aria-label": e(o)("menu.product_image.manage.original")
|
|
501
531
|
}, [
|
|
502
|
-
s(e(
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
onClick: Z[1] || (Z[1] = (N) => l(
|
|
508
|
-
E.value.originalUrl,
|
|
509
|
-
e(o)("menu.product_image.manage.original")
|
|
510
|
-
))
|
|
532
|
+
s(e(B).FmTooltip, {
|
|
533
|
+
class: "shrink-0",
|
|
534
|
+
content: e(o)("menu.product_image.preview.title"),
|
|
535
|
+
placement: "top",
|
|
536
|
+
"z-index": 999
|
|
511
537
|
}, {
|
|
512
|
-
default:
|
|
513
|
-
s(e(
|
|
514
|
-
|
|
515
|
-
|
|
538
|
+
default: p(() => [
|
|
539
|
+
s(e(B).FmButton, {
|
|
540
|
+
"aria-label": e(o)("menu.product_image.preview.title"),
|
|
541
|
+
label: e(o)("menu.product_image.preview.title"),
|
|
542
|
+
class: "!h-80 !w-80 shrink-0 !overflow-hidden !rounded-md !p-0",
|
|
543
|
+
variant: "plain",
|
|
544
|
+
onClick: Z[1] || (Z[1] = (N) => l(
|
|
545
|
+
E.value.originalUrl,
|
|
546
|
+
e(o)("menu.product_image.manage.original")
|
|
547
|
+
))
|
|
516
548
|
}, {
|
|
517
|
-
default:
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
549
|
+
default: p(() => [
|
|
550
|
+
s(e(B).FmCard, {
|
|
551
|
+
class: "!h-80 !w-80 rounded-md",
|
|
552
|
+
variant: "outlined"
|
|
553
|
+
}, {
|
|
554
|
+
default: p(() => [
|
|
555
|
+
n("img", {
|
|
556
|
+
alt: e(o)("menu.product_image.manage.original"),
|
|
557
|
+
class: "h-full w-full object-cover",
|
|
558
|
+
src: E.value.originalUrl
|
|
559
|
+
}, null, 8, Ha)
|
|
560
|
+
]),
|
|
561
|
+
_: 1
|
|
562
|
+
})
|
|
523
563
|
]),
|
|
524
564
|
_: 1
|
|
525
|
-
})
|
|
565
|
+
}, 8, ["aria-label", "label"])
|
|
526
566
|
]),
|
|
527
567
|
_: 1
|
|
528
|
-
}, 8, ["
|
|
568
|
+
}, 8, ["content"]),
|
|
529
569
|
n("div", null, [
|
|
530
570
|
n("p", Xa, I(e(o)("menu.product_image.manage.original")), 1),
|
|
531
571
|
n("p", Wa, I(e(o)("menu.product_image.manage.custom_sizing")), 1)
|
|
@@ -537,50 +577,60 @@ const ml = /* @__PURE__ */ ce({
|
|
|
537
577
|
role: "group",
|
|
538
578
|
"aria-label": N.label
|
|
539
579
|
}, [
|
|
540
|
-
s(e(
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
variant: "plain",
|
|
546
|
-
onClick: (Ie) => l(N.previewUrl, N.label)
|
|
580
|
+
s(e(B).FmTooltip, {
|
|
581
|
+
class: "shrink-0",
|
|
582
|
+
content: e(o)("menu.product_image.preview.title"),
|
|
583
|
+
placement: "top",
|
|
584
|
+
"z-index": 999
|
|
547
585
|
}, {
|
|
548
|
-
default:
|
|
549
|
-
s(e(
|
|
550
|
-
|
|
551
|
-
|
|
586
|
+
default: p(() => [
|
|
587
|
+
s(e(B).FmButton, {
|
|
588
|
+
"aria-label": e(o)("menu.product_image.preview.title"),
|
|
589
|
+
label: e(o)("menu.product_image.preview.title"),
|
|
590
|
+
class: "!h-80 !w-80 shrink-0 !overflow-hidden !rounded-md !p-0 disabled:opacity-40",
|
|
591
|
+
disabled: !N.previewUrl,
|
|
592
|
+
variant: "plain",
|
|
593
|
+
onClick: (Ie) => l(N.previewUrl, N.label)
|
|
552
594
|
}, {
|
|
553
|
-
default:
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
595
|
+
default: p(() => [
|
|
596
|
+
s(e(B).FmCard, {
|
|
597
|
+
class: "flex !h-80 !w-80 items-center justify-center rounded-md",
|
|
598
|
+
variant: "outlined"
|
|
599
|
+
}, {
|
|
600
|
+
default: p(() => [
|
|
601
|
+
N.previewUrl ? (r(), S("img", {
|
|
602
|
+
key: 0,
|
|
603
|
+
alt: N.label,
|
|
604
|
+
class: "h-full w-full object-cover",
|
|
605
|
+
src: N.previewUrl
|
|
606
|
+
}, null, 8, Za)) : (r(), T(e(B).FmIcon, {
|
|
607
|
+
key: 1,
|
|
608
|
+
color: "neutral-gray-300",
|
|
609
|
+
name: "image",
|
|
610
|
+
outline: ""
|
|
611
|
+
}))
|
|
612
|
+
]),
|
|
613
|
+
_: 2
|
|
614
|
+
}, 1024)
|
|
565
615
|
]),
|
|
566
616
|
_: 2
|
|
567
|
-
},
|
|
617
|
+
}, 1032, ["aria-label", "label", "disabled", "onClick"])
|
|
568
618
|
]),
|
|
569
619
|
_: 2
|
|
570
|
-
}, 1032, ["
|
|
620
|
+
}, 1032, ["content"]),
|
|
571
621
|
n("div", Ja, [
|
|
572
622
|
n("div", et, [
|
|
573
623
|
n("p", lt, I(N.label), 1),
|
|
574
|
-
N.required ? (r(), T(e(
|
|
624
|
+
N.required ? (r(), T(e(B).FmChip, {
|
|
575
625
|
key: 0,
|
|
576
626
|
color: "negative",
|
|
577
627
|
label: e(o)("menu.product_image.manage.required"),
|
|
578
628
|
size: "sm"
|
|
579
629
|
}, null, 8, ["label"])) : y("", !0),
|
|
580
|
-
|
|
630
|
+
O(N) ? (r(), T(e(B).FmChip, {
|
|
581
631
|
key: 1,
|
|
582
632
|
color: N.status === "pending" ? "warning" : "negative",
|
|
583
|
-
label:
|
|
633
|
+
label: O(N),
|
|
584
634
|
size: "sm"
|
|
585
635
|
}, null, 8, ["color", "label"])) : y("", !0)
|
|
586
636
|
]),
|
|
@@ -588,25 +638,45 @@ const ml = /* @__PURE__ */ ce({
|
|
|
588
638
|
!N.required && !N.previewUrl ? (r(), S("p", tt, I(e(o)("menu.product_image.manage.custom_image_hint")), 1)) : y("", !0)
|
|
589
639
|
]),
|
|
590
640
|
n("div", ot, [
|
|
591
|
-
s(e(
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
641
|
+
s(e(B).FmTooltip, {
|
|
642
|
+
content: e(o)("menu.product_image.replace.action"),
|
|
643
|
+
placement: "top",
|
|
644
|
+
"z-index": 999
|
|
645
|
+
}, {
|
|
646
|
+
default: p(() => [
|
|
647
|
+
s(e(B).FmButton, {
|
|
648
|
+
"aria-label": e(o)("menu.product_image.replace.action_for", {
|
|
649
|
+
ratio: N.label
|
|
650
|
+
}),
|
|
651
|
+
disabled: N.replace.state !== "allowed",
|
|
652
|
+
class: "w-full",
|
|
653
|
+
icon: "image",
|
|
654
|
+
variant: "tertiary",
|
|
655
|
+
onClick: (Ie) => k.value = N
|
|
656
|
+
}, null, 8, ["aria-label", "disabled", "onClick"])
|
|
657
|
+
]),
|
|
658
|
+
_: 2
|
|
659
|
+
}, 1032, ["content"]),
|
|
660
|
+
s(e(B).FmTooltip, {
|
|
661
|
+
content: e(o)("menu.product_image.regenerate.action"),
|
|
662
|
+
placement: "top",
|
|
663
|
+
"z-index": 999
|
|
664
|
+
}, {
|
|
665
|
+
default: p(() => [
|
|
666
|
+
s(e(B).FmButton, {
|
|
667
|
+
"aria-label": e(o)("menu.product_image.regenerate.action_for", {
|
|
668
|
+
ratio: N.label
|
|
669
|
+
}),
|
|
670
|
+
disabled: N.regenerate.state !== "allowed",
|
|
671
|
+
class: "w-full",
|
|
672
|
+
icon: "autorenew",
|
|
673
|
+
variant: "tertiary",
|
|
674
|
+
onClick: (Ie) => pe(N)
|
|
675
|
+
}, null, 8, ["aria-label", "disabled", "onClick"])
|
|
676
|
+
]),
|
|
677
|
+
_: 2
|
|
678
|
+
}, 1032, ["content"]),
|
|
679
|
+
N.canRemove ? (r(), T(e(B).FmButton, {
|
|
610
680
|
key: 0,
|
|
611
681
|
"aria-label": e(o)("menu.product_image.manage.remove_ratio.action_for", {
|
|
612
682
|
ratio: N.label
|
|
@@ -623,13 +693,13 @@ const ml = /* @__PURE__ */ ce({
|
|
|
623
693
|
n("section", nt, [
|
|
624
694
|
n("p", st, I(e(o)("menu.product_image.manage.cover_photo")), 1),
|
|
625
695
|
n("div", it, [
|
|
626
|
-
s(e(
|
|
696
|
+
s(e(B).FmSwitch, {
|
|
627
697
|
"aria-label": e(o)("menu.product_image.manage.set_as_cover"),
|
|
628
698
|
disabled: E.value.isCover && !E.value.canClearCover,
|
|
629
699
|
"model-value": E.value.isCover,
|
|
630
700
|
"onUpdate:modelValue": Q
|
|
631
701
|
}, {
|
|
632
|
-
label:
|
|
702
|
+
label: p(() => [
|
|
633
703
|
n("span", rt, I(e(o)("menu.product_image.manage.set_as_cover")), 1)
|
|
634
704
|
]),
|
|
635
705
|
_: 1
|
|
@@ -644,15 +714,15 @@ const ml = /* @__PURE__ */ ce({
|
|
|
644
714
|
]),
|
|
645
715
|
_: 1
|
|
646
716
|
}, 8, ["modelValue"]),
|
|
647
|
-
s(e(
|
|
717
|
+
s(e(B).FmDialog, {
|
|
648
718
|
"model-value": P.value !== null,
|
|
649
719
|
"max-width": 560,
|
|
650
720
|
"onUpdate:modelValue": Z[4] || (Z[4] = (N) => !N && (P.value = null))
|
|
651
721
|
}, {
|
|
652
|
-
"dialog-header":
|
|
722
|
+
"dialog-header": p(() => [
|
|
653
723
|
n("p", ct, I(m.value), 1)
|
|
654
724
|
]),
|
|
655
|
-
default:
|
|
725
|
+
default: p(() => [
|
|
656
726
|
n("div", pt, [
|
|
657
727
|
P.value ? (r(), S("img", {
|
|
658
728
|
key: 0,
|
|
@@ -695,13 +765,13 @@ const ml = /* @__PURE__ */ ce({
|
|
|
695
765
|
target: {}
|
|
696
766
|
},
|
|
697
767
|
setup(Y) {
|
|
698
|
-
const V = Y, { t: i, n: x } = be(), { run: o } = Ue(), d = Qe(), w = Zl(), C = Pe(), P = Ll(), m = R(() =>
|
|
768
|
+
const V = Y, { t: i, n: x } = be(), { run: o } = Ue(), d = Qe(), w = Zl(), C = Pe(), P = Ll(), m = R(() => el(V.target)), l = ye({
|
|
699
769
|
status: "loading"
|
|
700
770
|
});
|
|
701
771
|
let $ = null, _ = null;
|
|
702
|
-
function F(
|
|
703
|
-
_ == null || _(), $ == null || $.dispose(), $ = V.sdk.productImage.gallery(
|
|
704
|
-
l.value =
|
|
772
|
+
function F(z) {
|
|
773
|
+
_ == null || _(), $ == null || $.dispose(), $ = V.sdk.productImage.gallery(z), _ = $.subscribe((D) => {
|
|
774
|
+
l.value = D;
|
|
705
775
|
});
|
|
706
776
|
}
|
|
707
777
|
F(m.value), ke(() => {
|
|
@@ -711,67 +781,67 @@ const ml = /* @__PURE__ */ ce({
|
|
|
711
781
|
() => l.value.status === "ready" ? l.value.value : null
|
|
712
782
|
), E = R(
|
|
713
783
|
() => {
|
|
714
|
-
var
|
|
715
|
-
return ((
|
|
784
|
+
var z;
|
|
785
|
+
return ((z = L.value) == null ? void 0 : z.tiles) ?? [];
|
|
716
786
|
}
|
|
717
|
-
), G = aa.join(","), A =
|
|
787
|
+
), G = aa.join(","), A = W(null), v = W(!1), g = W([]), f = W(0), k = W([]), O = W(null);
|
|
718
788
|
let Q = null;
|
|
719
789
|
function ee() {
|
|
720
790
|
g.value = [], f.value = 0, k.value = [], Q = null;
|
|
721
791
|
}
|
|
722
|
-
Ae(m, (
|
|
723
|
-
|
|
792
|
+
Ae(m, (z, D) => {
|
|
793
|
+
z !== D && (O.value = null, ee(), N(), F(z));
|
|
724
794
|
});
|
|
725
795
|
const a = R(
|
|
726
796
|
() => g.value[f.value] ?? null
|
|
727
797
|
), c = R(() => {
|
|
728
|
-
var
|
|
729
|
-
return ((
|
|
798
|
+
var z;
|
|
799
|
+
return ((z = L.value) == null ? void 0 : z.addImage.state) !== "allowed";
|
|
730
800
|
});
|
|
731
801
|
function ne() {
|
|
732
|
-
var
|
|
733
|
-
(
|
|
802
|
+
var z;
|
|
803
|
+
(z = A.value) == null || z.click();
|
|
734
804
|
}
|
|
735
|
-
function pe(
|
|
736
|
-
const
|
|
737
|
-
ve(Array.from(
|
|
805
|
+
function pe(z) {
|
|
806
|
+
const D = z.target;
|
|
807
|
+
ve(Array.from(D.files ?? [])), D.value = "";
|
|
738
808
|
}
|
|
739
|
-
function le(
|
|
740
|
-
var
|
|
741
|
-
|
|
809
|
+
function le(z) {
|
|
810
|
+
var D;
|
|
811
|
+
v.value = !1, !c.value && ve(Array.from(((D = z.dataTransfer) == null ? void 0 : D.files) ?? []));
|
|
742
812
|
}
|
|
743
|
-
function ve(
|
|
744
|
-
if (c.value ||
|
|
745
|
-
const
|
|
746
|
-
for (const
|
|
747
|
-
const ie = V.sdk.productImage.screenFile(
|
|
813
|
+
function ve(z) {
|
|
814
|
+
if (c.value || z.length === 0) return;
|
|
815
|
+
const D = [];
|
|
816
|
+
for (const X of z) {
|
|
817
|
+
const ie = V.sdk.productImage.screenFile(X.type);
|
|
748
818
|
if (ie) {
|
|
749
819
|
o(async () => ({ kind: "rejected", issues: [ie] }), {
|
|
750
820
|
showLoading: !1
|
|
751
821
|
});
|
|
752
822
|
continue;
|
|
753
823
|
}
|
|
754
|
-
|
|
824
|
+
D.push(X);
|
|
755
825
|
}
|
|
756
|
-
|
|
826
|
+
D.length !== 0 && (g.value = D, f.value = 0, k.value = [], Q = m.value);
|
|
757
827
|
}
|
|
758
|
-
function b(
|
|
759
|
-
const
|
|
760
|
-
|
|
828
|
+
function b(z) {
|
|
829
|
+
const D = V.sdk.productImage.screenDecoded(
|
|
830
|
+
z ? { width: z.width, height: z.height } : null
|
|
761
831
|
);
|
|
762
|
-
if (
|
|
763
|
-
|
|
832
|
+
if (D || !z) {
|
|
833
|
+
D && o(async () => ({ kind: "rejected", issues: [D] }), {
|
|
764
834
|
showLoading: !1
|
|
765
835
|
}), se();
|
|
766
836
|
return;
|
|
767
837
|
}
|
|
768
838
|
k.value.push({
|
|
769
|
-
contentType:
|
|
770
|
-
fileName:
|
|
771
|
-
width:
|
|
772
|
-
height:
|
|
773
|
-
byteLength:
|
|
774
|
-
bytes:
|
|
839
|
+
contentType: z.blob.type,
|
|
840
|
+
fileName: z.fileName,
|
|
841
|
+
width: z.width,
|
|
842
|
+
height: z.height,
|
|
843
|
+
byteLength: z.blob.size,
|
|
844
|
+
bytes: z.blob
|
|
775
845
|
}), se();
|
|
776
846
|
}
|
|
777
847
|
function h() {
|
|
@@ -782,15 +852,15 @@ const ml = /* @__PURE__ */ ce({
|
|
|
782
852
|
f.value += 1;
|
|
783
853
|
return;
|
|
784
854
|
}
|
|
785
|
-
const
|
|
786
|
-
ee(),
|
|
855
|
+
const z = k.value, D = Q;
|
|
856
|
+
ee(), z.length > 0 && D && de(D, z);
|
|
787
857
|
}
|
|
788
|
-
async function de(
|
|
858
|
+
async function de(z, D) {
|
|
789
859
|
var ie;
|
|
790
|
-
const
|
|
860
|
+
const X = ((ie = L.value) == null ? void 0 : ie.defersUpload) === !0;
|
|
791
861
|
await o(
|
|
792
|
-
() => V.sdk.productImage.upload(
|
|
793
|
-
|
|
862
|
+
() => V.sdk.productImage.upload(z, D),
|
|
863
|
+
X ? {
|
|
794
864
|
showLoading: !1,
|
|
795
865
|
successMessage: i("menu.product_image.staged_added")
|
|
796
866
|
} : {
|
|
@@ -804,54 +874,54 @@ const ml = /* @__PURE__ */ ce({
|
|
|
804
874
|
function N() {
|
|
805
875
|
q == null || q.dispose(), Z == null || Z(), q = null, Z = null, $e.value = null, fe.value = null;
|
|
806
876
|
}
|
|
807
|
-
function Ie(
|
|
808
|
-
const
|
|
809
|
-
if (!
|
|
877
|
+
function Ie(z) {
|
|
878
|
+
const D = m.value;
|
|
879
|
+
if (!D) return null;
|
|
810
880
|
N();
|
|
811
|
-
const
|
|
812
|
-
return q =
|
|
881
|
+
const X = V.sdk.productImage.edit(D, el(z.imageRef));
|
|
882
|
+
return q = X, Z = X.subscribe((ie) => {
|
|
813
883
|
fe.value = ie.status === "ready" ? ie.value : null, fe.value || ($e.value = null);
|
|
814
|
-
}),
|
|
884
|
+
}), X;
|
|
815
885
|
}
|
|
816
|
-
async function
|
|
817
|
-
const
|
|
818
|
-
loadingMessage:
|
|
819
|
-
showLoading: !!
|
|
886
|
+
async function ze(z, D) {
|
|
887
|
+
const X = await o(z, {
|
|
888
|
+
loadingMessage: D,
|
|
889
|
+
showLoading: !!D
|
|
820
890
|
});
|
|
821
|
-
return
|
|
822
|
-
type:
|
|
823
|
-
[
|
|
824
|
-
}),
|
|
891
|
+
return X.kind === "success" && w.open({
|
|
892
|
+
type: X.value.severity,
|
|
893
|
+
[X.value.presentation]: C(X.value.message)
|
|
894
|
+
}), X;
|
|
825
895
|
}
|
|
826
|
-
async function Ge(
|
|
827
|
-
const
|
|
828
|
-
if (!(!
|
|
896
|
+
async function Ge(z) {
|
|
897
|
+
const D = Ie(z), X = fe.value;
|
|
898
|
+
if (!(!D || !X))
|
|
829
899
|
try {
|
|
830
|
-
const ie = await Pl(
|
|
831
|
-
q ===
|
|
900
|
+
const ie = await Pl(X.sourceUrl);
|
|
901
|
+
q === D && ($e.value = ie);
|
|
832
902
|
} catch {
|
|
833
|
-
q ===
|
|
903
|
+
q === D && await ze(() => D.confirmCrop(null));
|
|
834
904
|
}
|
|
835
905
|
}
|
|
836
|
-
async function Ye(
|
|
837
|
-
const
|
|
838
|
-
if ($e.value = null, !
|
|
906
|
+
async function Ye(z) {
|
|
907
|
+
const D = q, X = fe.value;
|
|
908
|
+
if ($e.value = null, !D || !X) return;
|
|
839
909
|
let ie = null;
|
|
840
910
|
try {
|
|
841
|
-
ie = await Ul(
|
|
911
|
+
ie = await Ul(z);
|
|
842
912
|
} catch {
|
|
843
913
|
}
|
|
844
|
-
await
|
|
845
|
-
() =>
|
|
846
|
-
|
|
847
|
-
), q ===
|
|
914
|
+
await ze(
|
|
915
|
+
() => D.confirmCrop(ie),
|
|
916
|
+
z ? C(X.loadingMessage) : void 0
|
|
917
|
+
), q === D && N();
|
|
848
918
|
}
|
|
849
|
-
async function He(
|
|
850
|
-
const
|
|
851
|
-
if (!
|
|
919
|
+
async function He(z) {
|
|
920
|
+
const D = Ie(z), X = fe.value;
|
|
921
|
+
if (!D || !X) return;
|
|
852
922
|
const ie = await o(
|
|
853
|
-
() =>
|
|
854
|
-
const _e = await Pl(
|
|
923
|
+
() => D.prepareRemy(async () => {
|
|
924
|
+
const _e = await Pl(X.sourceUrl);
|
|
855
925
|
return {
|
|
856
926
|
contentType: _e.type,
|
|
857
927
|
byteLength: _e.size,
|
|
@@ -860,23 +930,23 @@ const ml = /* @__PURE__ */ ce({
|
|
|
860
930
|
}),
|
|
861
931
|
{ showLoading: !1 }
|
|
862
932
|
);
|
|
863
|
-
ie.kind === "success" && q ===
|
|
933
|
+
ie.kind === "success" && q === D && P.activate({
|
|
864
934
|
imageData: ie.value.imageData,
|
|
865
935
|
command: "modifyImage"
|
|
866
936
|
});
|
|
867
937
|
}
|
|
868
|
-
function J(
|
|
938
|
+
function J(z) {
|
|
869
939
|
var ie;
|
|
870
|
-
const
|
|
871
|
-
!
|
|
872
|
-
() =>
|
|
873
|
-
const _e = await oa(
|
|
940
|
+
const D = (ie = z.detail) == null ? void 0 : ie.imageData, X = q;
|
|
941
|
+
!X || typeof D != "string" || !D || ze(
|
|
942
|
+
() => X.applyRemy(async () => {
|
|
943
|
+
const _e = await oa(D);
|
|
874
944
|
return V.sdk.productImage.screenFile(_e.type) ? {
|
|
875
945
|
contentType: _e.type,
|
|
876
946
|
byteLength: _e.size,
|
|
877
947
|
fileName: _e.name,
|
|
878
948
|
bytes: _e,
|
|
879
|
-
base64:
|
|
949
|
+
base64: D,
|
|
880
950
|
width: 0,
|
|
881
951
|
height: 0
|
|
882
952
|
} : Ul(await na(_e));
|
|
@@ -887,9 +957,9 @@ const ml = /* @__PURE__ */ ce({
|
|
|
887
957
|
Bl(() => window.addEventListener("apply-image", J)), ke(() => {
|
|
888
958
|
window.removeEventListener("apply-image", J), N();
|
|
889
959
|
});
|
|
890
|
-
function we(
|
|
891
|
-
const
|
|
892
|
-
|
|
960
|
+
function we(z) {
|
|
961
|
+
const D = m.value;
|
|
962
|
+
D && d.open({
|
|
893
963
|
title: i("menu.product_image.delete.title"),
|
|
894
964
|
message: i("menu.product_image.delete.message"),
|
|
895
965
|
primaryActions: {
|
|
@@ -902,23 +972,23 @@ const ml = /* @__PURE__ */ ce({
|
|
|
902
972
|
}
|
|
903
973
|
}).onPrimary(async () => {
|
|
904
974
|
await o(
|
|
905
|
-
async () => V.sdk.productImage.removeImage(
|
|
975
|
+
async () => V.sdk.productImage.removeImage(D, el(z.imageRef)),
|
|
906
976
|
{ showLoading: !1 }
|
|
907
977
|
);
|
|
908
978
|
});
|
|
909
979
|
}
|
|
910
|
-
return (
|
|
980
|
+
return (z, D) => (r(), T(e(B).FmFormGroup, {
|
|
911
981
|
class: "product-image-field pb-8 text-fm-color-typo-primary",
|
|
912
982
|
tag: "div",
|
|
913
983
|
label: e(i)("menu.common.labels.product_image"),
|
|
914
984
|
"label-mark": "optional",
|
|
915
985
|
"model-value": E.value.length
|
|
916
986
|
}, {
|
|
917
|
-
default:
|
|
987
|
+
default: p(() => [
|
|
918
988
|
n("p", ft, [
|
|
919
989
|
sl(I(e(i)("menu.product_image.hint")) + " ", 1),
|
|
920
990
|
c.value ? y("", !0) : (r(), S(re, { key: 0 }, [
|
|
921
|
-
s(e(
|
|
991
|
+
s(e(B).FmIcon, {
|
|
922
992
|
class: "mr-4 align-text-bottom",
|
|
923
993
|
color: "neutral-gray-400",
|
|
924
994
|
name: "crop",
|
|
@@ -931,20 +1001,20 @@ const ml = /* @__PURE__ */ ce({
|
|
|
931
1001
|
n("div", gt, [
|
|
932
1002
|
n("div", {
|
|
933
1003
|
class: Be(["product-image-drop aspect-square rounded-md border border-dashed flex flex-col items-center justify-center gap-8", [
|
|
934
|
-
|
|
1004
|
+
v.value ? "border-fm-color-primary" : "border-fm-color-neutral-gray-300",
|
|
935
1005
|
c.value ? "opacity-50 cursor-not-allowed" : ""
|
|
936
1006
|
]]),
|
|
937
|
-
onDragleave:
|
|
938
|
-
onDragover:
|
|
1007
|
+
onDragleave: D[0] || (D[0] = Ee((X) => v.value = !1, ["prevent"])),
|
|
1008
|
+
onDragover: D[1] || (D[1] = Ee((X) => v.value = !c.value, ["prevent"])),
|
|
939
1009
|
onDrop: Ee(le, ["prevent"])
|
|
940
1010
|
}, [
|
|
941
|
-
s(e(
|
|
1011
|
+
s(e(B).FmIcon, {
|
|
942
1012
|
color: "neutral-gray-400",
|
|
943
1013
|
name: "cloud_upload",
|
|
944
1014
|
outline: ""
|
|
945
1015
|
}),
|
|
946
1016
|
n("p", yt, I(e(i)("menu.product_image.drop_hint")), 1),
|
|
947
|
-
s(e(
|
|
1017
|
+
s(e(B).FmButton, {
|
|
948
1018
|
disabled: c.value,
|
|
949
1019
|
label: e(i)("menu.product_image.add_file"),
|
|
950
1020
|
variant: "secondary",
|
|
@@ -960,31 +1030,31 @@ const ml = /* @__PURE__ */ ce({
|
|
|
960
1030
|
onChange: pe
|
|
961
1031
|
}, null, 40, _t)
|
|
962
1032
|
], 34),
|
|
963
|
-
(r(!0), S(re, null, Fe(E.value, (
|
|
964
|
-
var _e, Xe,
|
|
1033
|
+
(r(!0), S(re, null, Fe(E.value, (X, ie) => {
|
|
1034
|
+
var _e, Xe, De;
|
|
965
1035
|
return r(), S("div", {
|
|
966
|
-
key:
|
|
1036
|
+
key: X.url,
|
|
967
1037
|
class: "product-image-tile relative aspect-square"
|
|
968
1038
|
}, [
|
|
969
|
-
s(e(
|
|
1039
|
+
s(e(B).FmButton, {
|
|
970
1040
|
"aria-label": e(i)("menu.product_image.manage.action_for", { index: ie + 1 }),
|
|
971
1041
|
class: "!block !h-full !w-full !overflow-hidden !rounded-md !p-0",
|
|
972
1042
|
label: e(i)("menu.product_image.manage.title"),
|
|
973
|
-
disabled:
|
|
1043
|
+
disabled: X.manage.state !== "allowed",
|
|
974
1044
|
variant: "plain",
|
|
975
|
-
onClick: (je) =>
|
|
1045
|
+
onClick: (je) => O.value = X.imageRef
|
|
976
1046
|
}, {
|
|
977
|
-
default:
|
|
1047
|
+
default: p(() => [
|
|
978
1048
|
n("div", ht, [
|
|
979
|
-
s(e(
|
|
1049
|
+
s(e(B).FmCard, {
|
|
980
1050
|
class: "flex !h-[180px] !w-[180px] !border-0 items-center justify-center rounded-md",
|
|
981
1051
|
variant: "outlined"
|
|
982
1052
|
}, {
|
|
983
|
-
default:
|
|
1053
|
+
default: p(() => [
|
|
984
1054
|
n("img", {
|
|
985
1055
|
alt: e(i)("menu.product_image.tile_alt", { index: ie + 1 }),
|
|
986
1056
|
class: "h-full w-full object-cover",
|
|
987
|
-
src:
|
|
1057
|
+
src: X.url
|
|
988
1058
|
}, null, 8, kt)
|
|
989
1059
|
]),
|
|
990
1060
|
_: 2
|
|
@@ -994,18 +1064,18 @@ const ml = /* @__PURE__ */ ce({
|
|
|
994
1064
|
_: 2
|
|
995
1065
|
}, 1032, ["aria-label", "label", "disabled", "onClick"]),
|
|
996
1066
|
n("div", wt, [
|
|
997
|
-
|
|
1067
|
+
X.isCover ? (r(), T(e(B).FmChip, {
|
|
998
1068
|
key: 0,
|
|
999
1069
|
label: e(i)("menu.product_image.cover_badge")
|
|
1000
1070
|
}, null, 8, ["label"])) : y("", !0),
|
|
1001
|
-
|
|
1071
|
+
X.formatCount !== null && X.formatCount !== void 0 ? (r(), T(e(B).FmChip, {
|
|
1002
1072
|
key: 1,
|
|
1003
|
-
label: e(x)(
|
|
1073
|
+
label: e(x)(X.formatCount),
|
|
1004
1074
|
"right-icon": "resize"
|
|
1005
1075
|
}, null, 8, ["label"])) : y("", !0)
|
|
1006
1076
|
]),
|
|
1007
1077
|
n("div", xt, [
|
|
1008
|
-
((_e =
|
|
1078
|
+
((_e = X.crop) == null ? void 0 : _e.state) === "allowed" ? (r(), T(e(B).FmButton, {
|
|
1009
1079
|
key: 0,
|
|
1010
1080
|
label: e(i)("menu.product_image.editor.title"),
|
|
1011
1081
|
"aria-label": e(i)("menu.product_image.editor.title"),
|
|
@@ -1013,29 +1083,29 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1013
1083
|
class: "!h-32 !w-32 !rounded-full !p-0 shadow-sm",
|
|
1014
1084
|
"bg-color": "neutral-white",
|
|
1015
1085
|
variant: "tertiary",
|
|
1016
|
-
onClick: Ee((je) => Ge(
|
|
1086
|
+
onClick: Ee((je) => Ge(X), ["stop"])
|
|
1017
1087
|
}, {
|
|
1018
|
-
default:
|
|
1019
|
-
s(e(
|
|
1088
|
+
default: p(() => [
|
|
1089
|
+
s(e(B).FmIcon, {
|
|
1020
1090
|
name: "crop",
|
|
1021
1091
|
size: "sm"
|
|
1022
1092
|
})
|
|
1023
1093
|
]),
|
|
1024
1094
|
_: 2
|
|
1025
1095
|
}, 1032, ["label", "aria-label", "title", "onClick"])) : y("", !0),
|
|
1026
|
-
((Xe =
|
|
1096
|
+
((Xe = X.remy) == null ? void 0 : Xe.state) === "allowed" ? (r(), T(e(B).FmButton, {
|
|
1027
1097
|
key: 1,
|
|
1028
1098
|
label: e(i)("menu.remy.title"),
|
|
1029
1099
|
"aria-label": e(i)("menu.remy.title"),
|
|
1030
1100
|
title: e(i)("menu.remy.title"),
|
|
1031
|
-
disabled: (
|
|
1101
|
+
disabled: (De = fe.value) == null ? void 0 : De.busy,
|
|
1032
1102
|
class: "!h-32 !w-32 !rounded-full !p-0 shadow-sm",
|
|
1033
1103
|
"bg-color": "neutral-white",
|
|
1034
1104
|
variant: "tertiary",
|
|
1035
|
-
onClick: Ee((je) => He(
|
|
1105
|
+
onClick: Ee((je) => He(X), ["stop"])
|
|
1036
1106
|
}, {
|
|
1037
|
-
default:
|
|
1038
|
-
s(e(
|
|
1107
|
+
default: p(() => [
|
|
1108
|
+
s(e(B).FmIcon, {
|
|
1039
1109
|
name: "auto_awesome",
|
|
1040
1110
|
size: "sm"
|
|
1041
1111
|
})
|
|
@@ -1043,25 +1113,26 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1043
1113
|
_: 2
|
|
1044
1114
|
}, 1032, ["label", "aria-label", "title", "disabled", "onClick"])) : y("", !0)
|
|
1045
1115
|
]),
|
|
1046
|
-
|
|
1116
|
+
X.remove.state !== "hidden" ? (r(), T(e(B).FmButton, {
|
|
1117
|
+
key: 0,
|
|
1047
1118
|
label: e(i)("menu.product_image.remove.action_for", { index: ie + 1 }),
|
|
1048
1119
|
"aria-label": e(i)("menu.product_image.remove.action_for", { index: ie + 1 }),
|
|
1049
1120
|
class: "!absolute -right-8 -top-8 !h-24 !w-24 !rounded-full !p-0",
|
|
1050
|
-
disabled:
|
|
1121
|
+
disabled: X.remove.state !== "allowed",
|
|
1051
1122
|
"bg-color": "neutral-black",
|
|
1052
1123
|
"icon-color": "neutral-white",
|
|
1053
1124
|
variant: "tertiary",
|
|
1054
|
-
onClick: (je) => we(
|
|
1125
|
+
onClick: (je) => we(X)
|
|
1055
1126
|
}, {
|
|
1056
|
-
default:
|
|
1057
|
-
s(e(
|
|
1127
|
+
default: p(() => [
|
|
1128
|
+
s(e(B).FmIcon, {
|
|
1058
1129
|
name: "close",
|
|
1059
1130
|
size: "sm",
|
|
1060
1131
|
color: "neutral-white"
|
|
1061
1132
|
})
|
|
1062
1133
|
]),
|
|
1063
1134
|
_: 2
|
|
1064
|
-
}, 1032, ["label", "aria-label", "disabled", "onClick"])
|
|
1135
|
+
}, 1032, ["label", "aria-label", "disabled", "onClick"])) : y("", !0)
|
|
1065
1136
|
]);
|
|
1066
1137
|
}), 128))
|
|
1067
1138
|
]),
|
|
@@ -1081,12 +1152,12 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1081
1152
|
onCancel: N,
|
|
1082
1153
|
onConfirm: Ye
|
|
1083
1154
|
}, null, 8, ["file", "mode", "edit-view"])) : y("", !0),
|
|
1084
|
-
|
|
1155
|
+
O.value && V.target ? (r(), T(bt, {
|
|
1085
1156
|
key: 2,
|
|
1086
|
-
"image-ref":
|
|
1157
|
+
"image-ref": O.value,
|
|
1087
1158
|
sdk: V.sdk,
|
|
1088
1159
|
target: V.target,
|
|
1089
|
-
onClose:
|
|
1160
|
+
onClose: D[2] || (D[2] = (X) => O.value = null)
|
|
1090
1161
|
}, null, 8, ["image-ref", "sdk", "target"])) : y("", !0)
|
|
1091
1162
|
]),
|
|
1092
1163
|
_: 1
|
|
@@ -1141,7 +1212,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1141
1212
|
const _ = V.session.applyWithOutcome();
|
|
1142
1213
|
_.kind !== "cancelled" && ((F = V.close) == null || F.call(V)), await o(() => Promise.resolve(_), { showLoading: !1 });
|
|
1143
1214
|
}
|
|
1144
|
-
const m =
|
|
1215
|
+
const m = W(null);
|
|
1145
1216
|
Ae(
|
|
1146
1217
|
m,
|
|
1147
1218
|
(_) => {
|
|
@@ -1192,7 +1263,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1192
1263
|
"model-value": [...$.value.selectedIds],
|
|
1193
1264
|
value: A.id,
|
|
1194
1265
|
label: C(A),
|
|
1195
|
-
"onUpdate:modelValue": F[1] || (F[1] = (
|
|
1266
|
+
"onUpdate:modelValue": F[1] || (F[1] = (v) => _.session.select(v))
|
|
1196
1267
|
}, null, 8, ["model-value", "value", "label"])
|
|
1197
1268
|
], 2))), 128))
|
|
1198
1269
|
], 2),
|
|
@@ -1211,8 +1282,8 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1211
1282
|
"aria-label": e(i)(x.value.cancelSelection),
|
|
1212
1283
|
variant: "tertiary",
|
|
1213
1284
|
onClick: F[3] || (F[3] = (A) => {
|
|
1214
|
-
var
|
|
1215
|
-
return (
|
|
1285
|
+
var v;
|
|
1286
|
+
return (v = _.close) == null ? void 0 : v.call(_);
|
|
1216
1287
|
})
|
|
1217
1288
|
}, null, 8, ["label", "aria-label"]),
|
|
1218
1289
|
s(G, {
|
|
@@ -1249,7 +1320,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1249
1320
|
},
|
|
1250
1321
|
emits: ["update:modelValue", "update:enabled"],
|
|
1251
1322
|
setup(Y, { emit: V }) {
|
|
1252
|
-
const i = Y, x = V, o = Pe(), d =
|
|
1323
|
+
const i = Y, x = V, o = Pe(), d = W(i.modelValue !== null);
|
|
1253
1324
|
let w = !1;
|
|
1254
1325
|
Ae(
|
|
1255
1326
|
() => i.modelValue,
|
|
@@ -1275,7 +1346,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1275
1346
|
"onUpdate:modelValue": C,
|
|
1276
1347
|
label: ""
|
|
1277
1348
|
}, {
|
|
1278
|
-
label:
|
|
1349
|
+
label: p(() => [
|
|
1279
1350
|
n("span", Ot, I(m.toggleAccessibleName ?? m.accessibleName), 1)
|
|
1280
1351
|
]),
|
|
1281
1352
|
_: 1
|
|
@@ -1294,7 +1365,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1294
1365
|
]);
|
|
1295
1366
|
};
|
|
1296
1367
|
}
|
|
1297
|
-
}),
|
|
1368
|
+
}), zt = ["data-scope-title"], Dt = { class: "fm-typo-en-title-md-600 mr-auto" }, Rt = { class: "pt-8 space-y-32" }, Mt = { class: "fm-typo-en-title-sm-600" }, Nt = { class: "flex items-end space-x-24" }, Et = { class: "flex" }, qt = { key: 0 }, Gt = { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, jt = { class: "flex flex-wrap gap-8 mt-8" }, Kt = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 mt-8" }, Qt = { class: "space-y-16" }, Ht = {
|
|
1298
1369
|
key: 1,
|
|
1299
1370
|
class: "flex gap-8 rounded-md bg-fm-color-system-warning-100 p-12"
|
|
1300
1371
|
}, Xt = { class: "space-y-4" }, Wt = { class: "fm-typo-en-body-md-400 text-fm-color-system-warning-400" }, Yt = { class: "fm-typo-en-body-md-400 text-fm-color-system-warning-400" }, Zt = { class: "xs:overflow-x-scroll" }, Jt = { class: "xs:min-w-[640px]" }, eo = { class: "flex gap-8 items-center justify-start" }, lo = { class: "flex items-center gap-8" }, ao = { class: "grow" }, to = { class: "pt-16 space-y-24" }, oo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, no = { class: "fm-typo-en-title-sm-600" }, so = { class: "space-y-16" }, io = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ro = /* @__PURE__ */ ce({
|
|
@@ -1327,7 +1398,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1327
1398
|
}, P = (b) => b.reduce((h, se) => {
|
|
1328
1399
|
const de = C(se);
|
|
1329
1400
|
return h ? d("menu.group.list.join_products", { list: h, item: de }) : de;
|
|
1330
|
-
}, ""), m =
|
|
1401
|
+
}, ""), m = W({}), l = ye(null), $ = ye(null);
|
|
1331
1402
|
function _() {
|
|
1332
1403
|
var b;
|
|
1333
1404
|
(b = $.value) == null || b.dispose(), $.value = null;
|
|
@@ -1367,7 +1438,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1367
1438
|
id: "action",
|
|
1368
1439
|
size: 52,
|
|
1369
1440
|
enableSorting: !1,
|
|
1370
|
-
cell: (b) => H(
|
|
1441
|
+
cell: (b) => H(B.FmButton, {
|
|
1371
1442
|
prependIcon: "edit",
|
|
1372
1443
|
variant: "tertiary",
|
|
1373
1444
|
// The same row action as the product form's group table, so it takes
|
|
@@ -1381,14 +1452,14 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1381
1452
|
onClick: () => G.value && Q(G.value, b.row.original.id)
|
|
1382
1453
|
})
|
|
1383
1454
|
}
|
|
1384
|
-
]),
|
|
1455
|
+
]), v = W(!1), g = ye(null), f = ye(null);
|
|
1385
1456
|
let k = null;
|
|
1386
|
-
function
|
|
1457
|
+
function O() {
|
|
1387
1458
|
var b;
|
|
1388
|
-
|
|
1459
|
+
v.value = !1, k == null || k(), k = null, (b = g.value) == null || b.dispose(), g.value = null, f.value = null;
|
|
1389
1460
|
}
|
|
1390
1461
|
function Q(b, h) {
|
|
1391
|
-
|
|
1462
|
+
O();
|
|
1392
1463
|
const se = i.session.nestedGroupEditor(
|
|
1393
1464
|
b.id,
|
|
1394
1465
|
b.combinationKey,
|
|
@@ -1396,16 +1467,16 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1396
1467
|
);
|
|
1397
1468
|
se && (g.value = se, k = se.subscribe((de) => {
|
|
1398
1469
|
f.value = de.status === "ready" ? de.value : null;
|
|
1399
|
-
}),
|
|
1470
|
+
}), v.value = !0);
|
|
1400
1471
|
}
|
|
1401
|
-
ke(
|
|
1472
|
+
ke(O);
|
|
1402
1473
|
const ee = R(() => (i.zIndex ?? 200) + 1), a = R(() => [
|
|
1403
1474
|
{
|
|
1404
1475
|
label: d("menu.product.form.variant.placeholders.follow_general"),
|
|
1405
1476
|
value: null
|
|
1406
1477
|
},
|
|
1407
1478
|
...i.orderFromOptions.map((b) => ({
|
|
1408
|
-
label: d(
|
|
1479
|
+
label: d(Dl[b]),
|
|
1409
1480
|
value: b
|
|
1410
1481
|
}))
|
|
1411
1482
|
]), c = (b) => b === "" || b === null || b === void 0 ? null : Number(b), ne = R(
|
|
@@ -1424,7 +1495,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1424
1495
|
cell: (b) => {
|
|
1425
1496
|
var se;
|
|
1426
1497
|
const h = b.row.original;
|
|
1427
|
-
return (se = h.children) != null && se.length ? null : H(
|
|
1498
|
+
return (se = h.children) != null && se.length ? null : H(B.FmCheckbox, {
|
|
1428
1499
|
modelValue: h.isDefault,
|
|
1429
1500
|
value: "",
|
|
1430
1501
|
"aria-label": d("menu.common.labels.a11y_labelled_name", {
|
|
@@ -1447,7 +1518,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1447
1518
|
H("span", d("menu.group.option.product_title")),
|
|
1448
1519
|
// The editor's legacy copy has no translation column
|
|
1449
1520
|
// (TreeEditor/form/GroupManager/OptionTable.vue:187-189).
|
|
1450
|
-
i.presentation === "tree" ? null : H(
|
|
1521
|
+
i.presentation === "tree" ? null : H(B.FmButton, {
|
|
1451
1522
|
icon: "g_translate",
|
|
1452
1523
|
variant: "tertiary",
|
|
1453
1524
|
textColor: "neutral-gray-400",
|
|
@@ -1470,7 +1541,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1470
1541
|
// `getCanExpand()` is true for every FmTable row; legacy asks
|
|
1471
1542
|
// whether the option carries combination entries (`items?.length`).
|
|
1472
1543
|
b.row.original.children.length > 0 ? {
|
|
1473
|
-
append: () => H(
|
|
1544
|
+
append: () => H(B.FmIcon, {
|
|
1474
1545
|
name: "keyboard_arrow_up",
|
|
1475
1546
|
// Legacy greys the toggle when the title is not
|
|
1476
1547
|
// editable (`NeutralGray200`), which it never is here.
|
|
@@ -1482,10 +1553,11 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1482
1553
|
}) : d("menu.apply_product.table.expand_combinations", {
|
|
1483
1554
|
name: b.row.original.name
|
|
1484
1555
|
}),
|
|
1556
|
+
// Down while collapsed, up once expanded.
|
|
1485
1557
|
class: [
|
|
1486
1558
|
"cursor-pointer",
|
|
1487
1559
|
"transition-transform",
|
|
1488
|
-
h ? "transform rotate-180"
|
|
1560
|
+
h ? "" : "transform rotate-180"
|
|
1489
1561
|
],
|
|
1490
1562
|
onClick: b.row.getToggleExpandedHandler()
|
|
1491
1563
|
})
|
|
@@ -1540,7 +1612,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1540
1612
|
...h.editPricing.state === "hidden" ? [] : [
|
|
1541
1613
|
H("div", { class: "flex items-center gap-4" }, [
|
|
1542
1614
|
H(
|
|
1543
|
-
|
|
1615
|
+
B.FmButton,
|
|
1544
1616
|
{
|
|
1545
1617
|
variant: "plain",
|
|
1546
1618
|
label: d(
|
|
@@ -1587,7 +1659,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1587
1659
|
size: 100,
|
|
1588
1660
|
cell: (b) => {
|
|
1589
1661
|
const h = b.row.original;
|
|
1590
|
-
return H(
|
|
1662
|
+
return H(B.FmSelect, {
|
|
1591
1663
|
items: a.value,
|
|
1592
1664
|
modelValue: h.displayOrderFrom,
|
|
1593
1665
|
shiftMenu: !0,
|
|
@@ -1613,7 +1685,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1613
1685
|
const h = b.row.original;
|
|
1614
1686
|
return H("div", { class: "flex items-center justify-end" }, [
|
|
1615
1687
|
...h.editPricing.state === "hidden" ? [] : [
|
|
1616
|
-
H(
|
|
1688
|
+
H(B.FmButton, {
|
|
1617
1689
|
icon: "price_change",
|
|
1618
1690
|
variant: "tertiary",
|
|
1619
1691
|
// Match the neutral-grey action buttons beside it and the
|
|
@@ -1627,7 +1699,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1627
1699
|
onClick: () => E(h, "tiers")
|
|
1628
1700
|
})
|
|
1629
1701
|
],
|
|
1630
|
-
H(
|
|
1702
|
+
H(B.FmButton, {
|
|
1631
1703
|
prependIcon: "inventory_2",
|
|
1632
1704
|
textColor: "neutral-gray-400",
|
|
1633
1705
|
variant: "tertiary",
|
|
@@ -1643,7 +1715,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1643
1715
|
);
|
|
1644
1716
|
}
|
|
1645
1717
|
}),
|
|
1646
|
-
H(
|
|
1718
|
+
H(B.FmButton, {
|
|
1647
1719
|
prependIcon: "arrow_split",
|
|
1648
1720
|
textColor: "neutral-gray-400",
|
|
1649
1721
|
variant: "tertiary",
|
|
@@ -1663,7 +1735,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1663
1735
|
}
|
|
1664
1736
|
return (b, h) => {
|
|
1665
1737
|
var He;
|
|
1666
|
-
const se = M("FmSelect"), de = M("FmButton"), $e = M("FmChip"), fe = M("FmCard"), q = M("FmStepperField"), Z = M("FmFormGroup"), N = M("FmSwitch"), Ie = M("FmIcon"),
|
|
1738
|
+
const se = M("FmSelect"), de = M("FmButton"), $e = M("FmChip"), fe = M("FmCard"), q = M("FmStepperField"), Z = M("FmFormGroup"), N = M("FmSwitch"), Ie = M("FmIcon"), ze = M("FmTable"), Ge = M("FmSideSheet"), Ye = M("ProductGroupSheet", !0);
|
|
1667
1739
|
return r(), S(re, null, [
|
|
1668
1740
|
s(Ge, {
|
|
1669
1741
|
"model-value": b.modelValue,
|
|
@@ -1671,14 +1743,14 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1671
1743
|
"z-index": i.zIndex ?? 200,
|
|
1672
1744
|
"onUpdate:modelValue": h[8] || (h[8] = (J) => o("update:modelValue", J))
|
|
1673
1745
|
}, {
|
|
1674
|
-
"side-sheet-header":
|
|
1746
|
+
"side-sheet-header": p(() => [
|
|
1675
1747
|
n("span", {
|
|
1676
1748
|
class: "nested-group-editor-sheet-marker sr-only",
|
|
1677
1749
|
"data-scope-title": e(d)("menu.common.labels.nested_group_override")
|
|
1678
|
-
}, I(e(d)("menu.common.labels.nested_group_override")), 9,
|
|
1679
|
-
n("p",
|
|
1750
|
+
}, I(e(d)("menu.common.labels.nested_group_override")), 9, zt),
|
|
1751
|
+
n("p", Dt, I(e(d)("menu.group.update")), 1)
|
|
1680
1752
|
]),
|
|
1681
|
-
"side-sheet-footer":
|
|
1753
|
+
"side-sheet-footer": p(() => [
|
|
1682
1754
|
n("div", eo, [
|
|
1683
1755
|
s(de, {
|
|
1684
1756
|
label: e(d)("menu.common.actions.update"),
|
|
@@ -1700,14 +1772,14 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1700
1772
|
}, null, 8, ["label", "aria-label"])
|
|
1701
1773
|
])
|
|
1702
1774
|
]),
|
|
1703
|
-
default:
|
|
1775
|
+
default: p(() => [
|
|
1704
1776
|
n("div", Rt, [
|
|
1705
1777
|
b.view.combinations.length > 0 ? (r(), T(fe, {
|
|
1706
1778
|
key: 0,
|
|
1707
1779
|
class: "p-16 bg-fm-color-neutral-gray-100 space-y-24",
|
|
1708
1780
|
variant: "outlined"
|
|
1709
1781
|
}, {
|
|
1710
|
-
default:
|
|
1782
|
+
default: p(() => [
|
|
1711
1783
|
n("p", Mt, I(e(d)("menu.group.option.variant")), 1),
|
|
1712
1784
|
n("div", Nt, [
|
|
1713
1785
|
s(se, {
|
|
@@ -1760,7 +1832,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1760
1832
|
_: 1
|
|
1761
1833
|
})) : y("", !0),
|
|
1762
1834
|
s(la, null, {
|
|
1763
|
-
default:
|
|
1835
|
+
default: p(() => [
|
|
1764
1836
|
s(ge, {
|
|
1765
1837
|
label: e(d)("menu.common.labels.group_name"),
|
|
1766
1838
|
placeholder: b.view.name,
|
|
@@ -1768,7 +1840,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1768
1840
|
}, cl({ _: 2 }, [
|
|
1769
1841
|
b.presentation !== "tree" ? {
|
|
1770
1842
|
name: "append",
|
|
1771
|
-
fn:
|
|
1843
|
+
fn: p(() => [
|
|
1772
1844
|
s(de, {
|
|
1773
1845
|
variant: "tertiary",
|
|
1774
1846
|
icon: "g_translate",
|
|
@@ -1781,9 +1853,9 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1781
1853
|
s(Z, {
|
|
1782
1854
|
"model-value": b.view.minSelect + " " + b.view.maxSelect
|
|
1783
1855
|
}, {
|
|
1784
|
-
default:
|
|
1856
|
+
default: p(() => [
|
|
1785
1857
|
s(sa, null, {
|
|
1786
|
-
default:
|
|
1858
|
+
default: p(() => [
|
|
1787
1859
|
s(q, {
|
|
1788
1860
|
class: "flex-1",
|
|
1789
1861
|
label: e(d)("menu.common.labels.min_select"),
|
|
@@ -1811,7 +1883,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1811
1883
|
s(Oe, {
|
|
1812
1884
|
label: e(d)("menu.common.labels.configuration")
|
|
1813
1885
|
}, {
|
|
1814
|
-
default:
|
|
1886
|
+
default: p(() => {
|
|
1815
1887
|
var J;
|
|
1816
1888
|
return [
|
|
1817
1889
|
n("div", Qt, [
|
|
@@ -1864,14 +1936,14 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1864
1936
|
max: b.view.maxSelect
|
|
1865
1937
|
})
|
|
1866
1938
|
}, {
|
|
1867
|
-
default:
|
|
1939
|
+
default: p(() => [
|
|
1868
1940
|
s(qe, {
|
|
1869
1941
|
title: e(d)("menu.common.labels.product")
|
|
1870
1942
|
}, {
|
|
1871
|
-
default:
|
|
1943
|
+
default: p(() => [
|
|
1872
1944
|
n("div", Zt, [
|
|
1873
1945
|
n("div", Jt, [
|
|
1874
|
-
s(
|
|
1946
|
+
s(ze, {
|
|
1875
1947
|
"column-defs": le.value,
|
|
1876
1948
|
"row-data": pe.value,
|
|
1877
1949
|
"column-visibility": { code: b.view.showCode },
|
|
@@ -1901,7 +1973,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1901
1973
|
"onUpdate:modelValue": h[11] || (h[11] = (J) => !J && (G.value = null)),
|
|
1902
1974
|
"onOn:clickedAway": h[12] || (h[12] = (J) => G.value = null)
|
|
1903
1975
|
}, {
|
|
1904
|
-
"side-sheet-header":
|
|
1976
|
+
"side-sheet-header": p(() => [
|
|
1905
1977
|
n("div", lo, [
|
|
1906
1978
|
h[14] || (h[14] = n("span", {
|
|
1907
1979
|
class: "nested-group-sheet-marker",
|
|
@@ -1917,7 +1989,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1917
1989
|
n("div", ao, I(e(d)("menu.group.nested.title")), 1)
|
|
1918
1990
|
])
|
|
1919
1991
|
]),
|
|
1920
|
-
"side-sheet-footer":
|
|
1992
|
+
"side-sheet-footer": p(() => [
|
|
1921
1993
|
s(de, {
|
|
1922
1994
|
label: e(d)("menu.common.actions.ok"),
|
|
1923
1995
|
size: "lg",
|
|
@@ -1925,7 +1997,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1925
1997
|
onClick: h[10] || (h[10] = (J) => G.value = null)
|
|
1926
1998
|
}, null, 8, ["label"])
|
|
1927
1999
|
]),
|
|
1928
|
-
default:
|
|
2000
|
+
default: p(() => {
|
|
1929
2001
|
var J, we;
|
|
1930
2002
|
return [
|
|
1931
2003
|
n("div", to, [
|
|
@@ -1933,18 +2005,18 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1933
2005
|
variant: "outlined",
|
|
1934
2006
|
class: "px-16 py-12"
|
|
1935
2007
|
}, {
|
|
1936
|
-
default:
|
|
1937
|
-
var
|
|
2008
|
+
default: p(() => {
|
|
2009
|
+
var z;
|
|
1938
2010
|
return [
|
|
1939
2011
|
n("p", oo, I(e(d)("menu.group.nested.currently_configuring")), 1),
|
|
1940
|
-
n("p", no, I((
|
|
2012
|
+
n("p", no, I((z = G.value) == null ? void 0 : z.name), 1)
|
|
1941
2013
|
];
|
|
1942
2014
|
}),
|
|
1943
2015
|
_: 1
|
|
1944
2016
|
}),
|
|
1945
2017
|
n("div", so, [
|
|
1946
2018
|
n("p", io, I(e(d)("menu.group.nested.subtitle")), 1),
|
|
1947
|
-
s(
|
|
2019
|
+
s(ze, {
|
|
1948
2020
|
"column-defs": A.value,
|
|
1949
2021
|
"row-data": [...((J = G.value) == null ? void 0 : J.nestedGroups) ?? []],
|
|
1950
2022
|
"page-size": ((we = G.value) == null ? void 0 : we.nestedGroups.length) ?? 0,
|
|
@@ -1964,7 +2036,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1964
2036
|
"product-name": ((He = l.value) == null ? void 0 : He.name) ?? "",
|
|
1965
2037
|
onClose: _
|
|
1966
2038
|
}, null, 8, ["session", "product-name"])) : y("", !0),
|
|
1967
|
-
F.value ? (r(), T(
|
|
2039
|
+
F.value ? (r(), T(zl, {
|
|
1968
2040
|
key: 1,
|
|
1969
2041
|
session: F.value,
|
|
1970
2042
|
"z-index": (i.zIndex ?? 200) + 100,
|
|
@@ -1974,7 +2046,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1974
2046
|
}, null, 8, ["session", "z-index", "on-create-price-group"])) : y("", !0),
|
|
1975
2047
|
g.value && f.value ? (r(), T(Ye, {
|
|
1976
2048
|
key: 2,
|
|
1977
|
-
"model-value":
|
|
2049
|
+
"model-value": v.value,
|
|
1978
2050
|
view: f.value,
|
|
1979
2051
|
session: g.value,
|
|
1980
2052
|
"order-from-options": b.orderFromOptions,
|
|
@@ -1982,7 +2054,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1982
2054
|
presentation: b.presentation,
|
|
1983
2055
|
"create-price-group": b.createPriceGroup,
|
|
1984
2056
|
nested: "",
|
|
1985
|
-
"onUpdate:modelValue": h[13] || (h[13] = (J) => !J &&
|
|
2057
|
+
"onUpdate:modelValue": h[13] || (h[13] = (J) => !J && O())
|
|
1986
2058
|
}, null, 8, ["model-value", "view", "session", "order-from-options", "z-index", "presentation", "create-price-group"])) : y("", !0)
|
|
1987
2059
|
], 64);
|
|
1988
2060
|
};
|
|
@@ -2083,38 +2155,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
2083
2155
|
}, null, 8, ["aria-label"]));
|
|
2084
2156
|
};
|
|
2085
2157
|
}
|
|
2086
|
-
})
|
|
2087
|
-
function Ml(Y, V) {
|
|
2088
|
-
const i = X(""), x = R(() => i.value.trim().toLowerCase()), o = R(
|
|
2089
|
-
() => x.value ? Y().filter(
|
|
2090
|
-
(C) => V(C).toLowerCase().includes(x.value)
|
|
2091
|
-
) : Y()
|
|
2092
|
-
), d = R(
|
|
2093
|
-
() => x.value !== "" && o.value.length === 0
|
|
2094
|
-
);
|
|
2095
|
-
function w() {
|
|
2096
|
-
i.value = "";
|
|
2097
|
-
}
|
|
2098
|
-
return { search: i, filtered: o, noMatches: d, reset: w };
|
|
2099
|
-
}
|
|
2100
|
-
function Nl() {
|
|
2101
|
-
const Y = X(), V = X();
|
|
2102
|
-
let i = !1;
|
|
2103
|
-
async function x(d) {
|
|
2104
|
-
var P;
|
|
2105
|
-
if (i = d, V.value = void 0, !d) return;
|
|
2106
|
-
await el(), await new Promise(requestAnimationFrame);
|
|
2107
|
-
const w = (P = Y.value) == null ? void 0 : P.parentElement;
|
|
2108
|
-
if (!i || !w) return;
|
|
2109
|
-
const C = getComputedStyle(w);
|
|
2110
|
-
V.value = w.clientHeight - parseFloat(C.paddingTop) - parseFloat(C.paddingBottom);
|
|
2111
|
-
}
|
|
2112
|
-
const o = R(
|
|
2113
|
-
() => V.value ? { minHeight: `${V.value}px` } : void 0
|
|
2114
|
-
);
|
|
2115
|
-
return { content: Y, contentStyle: o, onMenuChanged: x };
|
|
2116
|
-
}
|
|
2117
|
-
const bo = {
|
|
2158
|
+
}), bo = {
|
|
2118
2159
|
key: 0,
|
|
2119
2160
|
class: "sticky top-0 z-10 px-8 pb-8 bg-fm-color-neutral-white"
|
|
2120
2161
|
}, fo = {
|
|
@@ -2138,8 +2179,8 @@ const bo = {
|
|
|
2138
2179
|
F || P(), $(F);
|
|
2139
2180
|
}
|
|
2140
2181
|
return (F, L) => {
|
|
2141
|
-
const E = M("FmSearch"), G = M("FmMenuItem"), A = M("FmButton"),
|
|
2142
|
-
return r(), T(
|
|
2182
|
+
const E = M("FmSearch"), G = M("FmMenuItem"), A = M("FmButton"), v = M("FmSelect");
|
|
2183
|
+
return r(), T(v, {
|
|
2143
2184
|
items: F.items,
|
|
2144
2185
|
disabled: F.disabled,
|
|
2145
2186
|
multiselect: "",
|
|
@@ -2149,7 +2190,7 @@ const bo = {
|
|
|
2149
2190
|
"onUpdate:modelValue": L[2] || (L[2] = (g) => x("update:modelValue", g ?? [])),
|
|
2150
2191
|
onDropdownChanged: _
|
|
2151
2192
|
}, {
|
|
2152
|
-
"menu-wrapper":
|
|
2193
|
+
"menu-wrapper": p(({ handleItemChange: g }) => [
|
|
2153
2194
|
n("div", {
|
|
2154
2195
|
ref_key: "content",
|
|
2155
2196
|
ref: m,
|
|
@@ -2204,7 +2245,7 @@ const bo = {
|
|
|
2204
2245
|
},
|
|
2205
2246
|
emits: ["create"],
|
|
2206
2247
|
setup(Y, { emit: V }) {
|
|
2207
|
-
const i = Y, x = V, { t: o } = be(), d = Pe(), w = (g) => g.labelMessage ? d(g.labelMessage) : g.label, C =
|
|
2248
|
+
const i = Y, x = V, { t: o } = be(), d = Pe(), w = (g) => g.labelMessage ? d(g.labelMessage) : g.label, C = W(!1), P = W(), { search: m, filtered: l, noMatches: $, reset: _ } = Ml(
|
|
2208
2249
|
() => i.view.categoryOptions,
|
|
2209
2250
|
w
|
|
2210
2251
|
), {
|
|
@@ -2220,12 +2261,12 @@ const bo = {
|
|
|
2220
2261
|
(g) => g.id === i.view.categoryId
|
|
2221
2262
|
)
|
|
2222
2263
|
);
|
|
2223
|
-
function
|
|
2264
|
+
function v(g, f) {
|
|
2224
2265
|
var k;
|
|
2225
2266
|
i.session.selectCategory(g, f), f && ((k = P.value) == null || k.toggleMenu(!1));
|
|
2226
2267
|
}
|
|
2227
2268
|
return (g, f) => {
|
|
2228
|
-
const k = M("FmIcon"),
|
|
2269
|
+
const k = M("FmIcon"), O = M("FmField"), Q = M("FmSearch"), ee = M("FmMenuItem"), a = M("FmButton"), c = M("FmMenu"), ne = M("FmFormGroup"), pe = M("FmChipGroup");
|
|
2229
2270
|
return r(), S("div", {
|
|
2230
2271
|
class: "flex flex-col gap-4",
|
|
2231
2272
|
"aria-label": g.view.categoryLabel === "plural" ? e(o)("menu.product.form.detail.category.label") : e(o)("menu.product.form.detail.category.label_singular")
|
|
@@ -2235,7 +2276,7 @@ const bo = {
|
|
|
2235
2276
|
disabled: g.view.editClassification.state !== "allowed",
|
|
2236
2277
|
focused: C.value
|
|
2237
2278
|
}, {
|
|
2238
|
-
default:
|
|
2279
|
+
default: p(() => [
|
|
2239
2280
|
s(c, {
|
|
2240
2281
|
ref_key: "menu",
|
|
2241
2282
|
ref: P,
|
|
@@ -2243,25 +2284,25 @@ const bo = {
|
|
|
2243
2284
|
"close-on-click": !1,
|
|
2244
2285
|
onMenuChanged: G
|
|
2245
2286
|
}, {
|
|
2246
|
-
"menu-button":
|
|
2247
|
-
s(
|
|
2287
|
+
"menu-button": p(() => [
|
|
2288
|
+
s(O, {
|
|
2248
2289
|
class: "cursor-pointer",
|
|
2249
2290
|
disabled: g.view.editClassification.state !== "allowed",
|
|
2250
2291
|
focused: C.value
|
|
2251
2292
|
}, {
|
|
2252
|
-
append:
|
|
2293
|
+
append: p(() => [
|
|
2253
2294
|
s(k, {
|
|
2254
2295
|
name: C.value ? "expand_less" : "expand_more",
|
|
2255
2296
|
size: "md"
|
|
2256
2297
|
}, null, 8, ["name"])
|
|
2257
2298
|
]),
|
|
2258
|
-
default:
|
|
2299
|
+
default: p(() => [
|
|
2259
2300
|
n("div", _o, I(e(o)("menu.product.form.detail.category.placeholder")), 1)
|
|
2260
2301
|
]),
|
|
2261
2302
|
_: 1
|
|
2262
2303
|
}, 8, ["disabled", "focused"])
|
|
2263
2304
|
]),
|
|
2264
|
-
default:
|
|
2305
|
+
default: p(() => [
|
|
2265
2306
|
n("div", {
|
|
2266
2307
|
ref_key: "content",
|
|
2267
2308
|
ref: F,
|
|
@@ -2281,7 +2322,7 @@ const bo = {
|
|
|
2281
2322
|
label: w(le),
|
|
2282
2323
|
"has-checkbox": "",
|
|
2283
2324
|
"model-value": g.view.categoryId === le.id,
|
|
2284
|
-
"onUpdate:modelValue": (ve) =>
|
|
2325
|
+
"onUpdate:modelValue": (ve) => v(le.id, ve)
|
|
2285
2326
|
}, null, 8, ["label", "model-value", "onUpdate:modelValue"]))), 128)),
|
|
2286
2327
|
e($) ? (r(), S("p", ko, I(e(o)("menu.product.form.detail.category.no_results")), 1)) : y("", !0),
|
|
2287
2328
|
s(a, {
|
|
@@ -2315,7 +2356,7 @@ const bo = {
|
|
|
2315
2356
|
}, Uo = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Io = {
|
|
2316
2357
|
key: 0,
|
|
2317
2358
|
class: "space-y-8"
|
|
2318
|
-
}, To = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Ao = { class: "flex w-[100px] items-center gap-8" }, Bo = { class: "fm-typo-en-body-md-400" }, Oo = { class: "flex-1" }, Lo = { class: "flex flex-col gap-16 border p-16 rounded-lg" },
|
|
2359
|
+
}, To = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Ao = { class: "flex w-[100px] items-center gap-8" }, Bo = { class: "fm-typo-en-body-md-400" }, Oo = { class: "flex-1" }, Lo = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, zo = ["aria-expanded"], Do = { class: "fm-typo-en-body-lg-600" }, Ro = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Mo = {
|
|
2319
2360
|
key: 0,
|
|
2320
2361
|
class: "flex flex-col gap-32 pl-32"
|
|
2321
2362
|
}, No = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Eo = {
|
|
@@ -2334,9 +2375,9 @@ const bo = {
|
|
|
2334
2375
|
const i = Y, x = V, { t: o } = be(), d = Qe(), w = R({
|
|
2335
2376
|
get: () => i.modelValue,
|
|
2336
2377
|
set: (f) => {
|
|
2337
|
-
f ? x("update:modelValue", f) :
|
|
2378
|
+
f ? x("update:modelValue", f) : v();
|
|
2338
2379
|
}
|
|
2339
|
-
}), C =
|
|
2380
|
+
}), C = W(!0), P = W(!1);
|
|
2340
2381
|
Ae(
|
|
2341
2382
|
() => [i.modelValue, i.initialSection],
|
|
2342
2383
|
([f, k]) => {
|
|
@@ -2368,23 +2409,23 @@ const bo = {
|
|
|
2368
2409
|
const k = f.map((Q) => ({
|
|
2369
2410
|
locale: Q.code,
|
|
2370
2411
|
value: Q.name
|
|
2371
|
-
})),
|
|
2412
|
+
})), O = f.map((Q) => ({
|
|
2372
2413
|
locale: Q.code,
|
|
2373
2414
|
value: Q.description
|
|
2374
2415
|
}));
|
|
2375
|
-
i.session.setNameLocales(k), i.session.setDescriptionLocales(
|
|
2416
|
+
i.session.setNameLocales(k), i.session.setDescriptionLocales(O);
|
|
2376
2417
|
}
|
|
2377
2418
|
function F(f, k) {
|
|
2378
2419
|
_(
|
|
2379
2420
|
m.value.map(
|
|
2380
|
-
(
|
|
2421
|
+
(O) => O.code === f ? { ...O, name: k } : O
|
|
2381
2422
|
)
|
|
2382
2423
|
);
|
|
2383
2424
|
}
|
|
2384
2425
|
function L(f, k) {
|
|
2385
2426
|
_(
|
|
2386
2427
|
m.value.map(
|
|
2387
|
-
(
|
|
2428
|
+
(O) => O.code === f ? { ...O, description: k } : O
|
|
2388
2429
|
)
|
|
2389
2430
|
);
|
|
2390
2431
|
}
|
|
@@ -2400,11 +2441,11 @@ const bo = {
|
|
|
2400
2441
|
function A() {
|
|
2401
2442
|
i.session.saveTranslationEdit(), x("update:modelValue", !1);
|
|
2402
2443
|
}
|
|
2403
|
-
function
|
|
2444
|
+
function v() {
|
|
2404
2445
|
i.session.discardTranslationEdit(), x("update:modelValue", !1);
|
|
2405
2446
|
}
|
|
2406
2447
|
function g() {
|
|
2407
|
-
if (!i.view.translationDiscardConfirmation) return
|
|
2448
|
+
if (!i.view.translationDiscardConfirmation) return v();
|
|
2408
2449
|
d.open({
|
|
2409
2450
|
title: o("menu.common.dialog.dismiss.title"),
|
|
2410
2451
|
message: o("menu.common.dialog.dismiss.message"),
|
|
@@ -2419,19 +2460,19 @@ const bo = {
|
|
|
2419
2460
|
variant: "tertiary",
|
|
2420
2461
|
close: !0
|
|
2421
2462
|
}
|
|
2422
|
-
}).onPrimary(
|
|
2463
|
+
}).onPrimary(v);
|
|
2423
2464
|
}
|
|
2424
2465
|
return (f, k) => {
|
|
2425
|
-
const
|
|
2466
|
+
const O = M("FmIcon"), Q = M("FmTextarea"), ee = M("FmButton"), a = M("FmDialog");
|
|
2426
2467
|
return r(), T(a, {
|
|
2427
2468
|
modelValue: w.value,
|
|
2428
2469
|
"onUpdate:modelValue": k[4] || (k[4] = (c) => w.value = c),
|
|
2429
2470
|
"max-width": 800
|
|
2430
2471
|
}, {
|
|
2431
|
-
"dialog-header":
|
|
2472
|
+
"dialog-header": p(() => [
|
|
2432
2473
|
n("p", Co, I(e(o)("menu.product.translation.title")), 1)
|
|
2433
2474
|
]),
|
|
2434
|
-
"dialog-footer":
|
|
2475
|
+
"dialog-footer": p(() => [
|
|
2435
2476
|
n("div", Qo, [
|
|
2436
2477
|
s(ee, {
|
|
2437
2478
|
label: e(o)("menu.common.actions.cancel"),
|
|
@@ -2449,7 +2490,7 @@ const bo = {
|
|
|
2449
2490
|
}, null, 8, ["label", "aria-label"])
|
|
2450
2491
|
])
|
|
2451
2492
|
]),
|
|
2452
|
-
default:
|
|
2493
|
+
default: p(() => [
|
|
2453
2494
|
n("div", Fo, [
|
|
2454
2495
|
s(Hl, {
|
|
2455
2496
|
selected: m.value.map((c) => ({ code: c.code, name: c.label })),
|
|
@@ -2465,7 +2506,7 @@ const bo = {
|
|
|
2465
2506
|
"aria-expanded": C.value,
|
|
2466
2507
|
onClick: k[0] || (k[0] = (c) => C.value = !C.value)
|
|
2467
2508
|
}, [
|
|
2468
|
-
s(
|
|
2509
|
+
s(O, {
|
|
2469
2510
|
name: C.value ? "keyboard_arrow_down" : "keyboard_arrow_right"
|
|
2470
2511
|
}, null, 8, ["name"]),
|
|
2471
2512
|
n("p", Vo, I(e(o)("menu.product.translation.product_name")), 1)
|
|
@@ -2520,14 +2561,14 @@ const bo = {
|
|
|
2520
2561
|
"aria-expanded": P.value,
|
|
2521
2562
|
onClick: k[2] || (k[2] = (c) => P.value = !P.value)
|
|
2522
2563
|
}, [
|
|
2523
|
-
s(
|
|
2564
|
+
s(O, {
|
|
2524
2565
|
name: P.value ? "keyboard_arrow_down" : "keyboard_arrow_right"
|
|
2525
2566
|
}, null, 8, ["name"]),
|
|
2526
|
-
n("p",
|
|
2567
|
+
n("p", Do, [
|
|
2527
2568
|
sl(I(e(o)("menu.product.translation.description")) + " ", 1),
|
|
2528
2569
|
n("span", Ro, I(e(o)("menu.product.translation.optional")), 1)
|
|
2529
2570
|
])
|
|
2530
|
-
], 8,
|
|
2571
|
+
], 8, zo),
|
|
2531
2572
|
P.value ? (r(), S("div", Mo, [
|
|
2532
2573
|
n("div", null, [
|
|
2533
2574
|
n("p", No, I(e(o)("menu.common.translation.default")), 1),
|
|
@@ -2589,7 +2630,7 @@ const bo = {
|
|
|
2589
2630
|
}, Un = { class: "flex flex-col space-y-4" }, In = { class: "fm-typo-en-body-lg-600" }, Tn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, An = { class: "flex items-center gap-16" }, Bn = { class: "space-y-16" }, On = { class: "space-y-8" }, Ln = {
|
|
2590
2631
|
key: 0,
|
|
2591
2632
|
class: "pl-32 pb-4 flex items-center gap-16"
|
|
2592
|
-
},
|
|
2633
|
+
}, zn = { class: "fm-typo-en-body-lg-400" }, Dn = { class: "w-[258px]" }, Rn = { class: "w-[117px]" }, Mn = {
|
|
2593
2634
|
key: 0,
|
|
2594
2635
|
class: "space-y-8"
|
|
2595
2636
|
}, Nn = {
|
|
@@ -2641,13 +2682,13 @@ const bo = {
|
|
|
2641
2682
|
},
|
|
2642
2683
|
emits: ["select-scope", "create-entity"],
|
|
2643
2684
|
setup(Y, { emit: V }) {
|
|
2644
|
-
const i = Y, x =
|
|
2685
|
+
const i = Y, x = W(null);
|
|
2645
2686
|
Ae(
|
|
2646
2687
|
() => [i.treeSelection, i.view.itemId],
|
|
2647
2688
|
async ([u]) => {
|
|
2648
2689
|
var te, oe;
|
|
2649
2690
|
if (!u) return;
|
|
2650
|
-
await
|
|
2691
|
+
await Je();
|
|
2651
2692
|
const t = x.value;
|
|
2652
2693
|
if (!t) return;
|
|
2653
2694
|
const j = u.kind === "item" ? t : [
|
|
@@ -2750,11 +2791,11 @@ const bo = {
|
|
|
2750
2791
|
u.apply() && E.close();
|
|
2751
2792
|
}).onTertiary(() => o("create-entity", "pacing")).onClose(() => u.dispose());
|
|
2752
2793
|
}
|
|
2753
|
-
const
|
|
2794
|
+
const v = Pe(), g = W(
|
|
2754
2795
|
null
|
|
2755
2796
|
), f = R(
|
|
2756
2797
|
() => (i.itemBreadcrumb ?? []).map((u) => ({
|
|
2757
|
-
label: u.labelMessage ?
|
|
2798
|
+
label: u.labelMessage ? v(u.labelMessage) : u.label,
|
|
2758
2799
|
route: ""
|
|
2759
2800
|
}))
|
|
2760
2801
|
);
|
|
@@ -2768,8 +2809,8 @@ const bo = {
|
|
|
2768
2809
|
},
|
|
2769
2810
|
{ flush: "post" }
|
|
2770
2811
|
);
|
|
2771
|
-
const k =
|
|
2772
|
-
function
|
|
2812
|
+
const k = W(null);
|
|
2813
|
+
function O(u) {
|
|
2773
2814
|
var j, te;
|
|
2774
2815
|
const t = i.session.prepareSuggestion(u);
|
|
2775
2816
|
if (!t) {
|
|
@@ -2807,7 +2848,7 @@ const bo = {
|
|
|
2807
2848
|
return (u = a.value.nameIssue) == null ? void 0 : u.code;
|
|
2808
2849
|
},
|
|
2809
2850
|
(u) => {
|
|
2810
|
-
u &&
|
|
2851
|
+
u && Je(() => {
|
|
2811
2852
|
var t, j;
|
|
2812
2853
|
return (j = (t = k.value) == null ? void 0 : t.focus) == null ? void 0 : j.call(t);
|
|
2813
2854
|
});
|
|
@@ -2826,7 +2867,7 @@ const bo = {
|
|
|
2826
2867
|
currency: u.unitAmount.currency,
|
|
2827
2868
|
currencyDisplay: "narrowSymbol",
|
|
2828
2869
|
minimumFractionDigits: u.unitAmount.precision
|
|
2829
|
-
}).replaceAll(/\s/g, ""), b =
|
|
2870
|
+
}).replaceAll(/\s/g, ""), b = W(!1), h = W("name"), se = Xl();
|
|
2830
2871
|
function de(u = "name") {
|
|
2831
2872
|
var j, te;
|
|
2832
2873
|
const t = u === "name" ? (j = a.value) == null ? void 0 : j.nameTranslation : (te = a.value) == null ? void 0 : te.descriptionTranslation;
|
|
@@ -2846,12 +2887,12 @@ const bo = {
|
|
|
2846
2887
|
...a.value.additionalCategoryIds
|
|
2847
2888
|
]), Z = R(
|
|
2848
2889
|
() => a.value.formOrderFromOptions.map((u) => ({
|
|
2849
|
-
label: l(u === null ? "menu.product.form.detail.order_from.default" :
|
|
2890
|
+
label: l(u === null ? "menu.product.form.detail.order_from.default" : Dl[u]),
|
|
2850
2891
|
value: u
|
|
2851
2892
|
}))
|
|
2852
2893
|
), N = R(() => [...a.value.priceTierRows]), Ie = R(
|
|
2853
2894
|
() => a.value.showVariantMemberPricing
|
|
2854
|
-
),
|
|
2895
|
+
), ze = R(() => [
|
|
2855
2896
|
{
|
|
2856
2897
|
accessorKey: "tier",
|
|
2857
2898
|
header: () => l("menu.price_tier.form.table.columns.name"),
|
|
@@ -2880,7 +2921,7 @@ const bo = {
|
|
|
2880
2921
|
var t;
|
|
2881
2922
|
return H("div", { class: "flex items-center justify-between" }, [
|
|
2882
2923
|
H(
|
|
2883
|
-
|
|
2924
|
+
B.FmButton,
|
|
2884
2925
|
{
|
|
2885
2926
|
label: l("menu.product.form.member_price.configure.title"),
|
|
2886
2927
|
variant: Ne.Plain,
|
|
@@ -2940,7 +2981,7 @@ const bo = {
|
|
|
2940
2981
|
label: l("menu.product.form.variant.input_labels.code"),
|
|
2941
2982
|
name: t.label
|
|
2942
2983
|
}),
|
|
2943
|
-
errorMessages: t.codeIssue ? [
|
|
2984
|
+
errorMessages: t.codeIssue ? [v(t.codeIssue)] : [],
|
|
2944
2985
|
"onUpdate:modelValue": (j) => c.value.setCombination(t.key, {
|
|
2945
2986
|
code: String(j ?? "")
|
|
2946
2987
|
})
|
|
@@ -2963,7 +3004,7 @@ const bo = {
|
|
|
2963
3004
|
role: "combobox"
|
|
2964
3005
|
},
|
|
2965
3006
|
[
|
|
2966
|
-
H(
|
|
3007
|
+
H(B.FmSelect, {
|
|
2967
3008
|
items: [
|
|
2968
3009
|
{
|
|
2969
3010
|
label: l(
|
|
@@ -3024,7 +3065,7 @@ const bo = {
|
|
|
3024
3065
|
...a.value.showVariantMemberPricing ? [
|
|
3025
3066
|
H("div", { class: "flex items-center gap-8" }, [
|
|
3026
3067
|
H(
|
|
3027
|
-
|
|
3068
|
+
B.FmButton,
|
|
3028
3069
|
{
|
|
3029
3070
|
variant: Ne.Plain,
|
|
3030
3071
|
label: l(
|
|
@@ -3108,7 +3149,7 @@ const bo = {
|
|
|
3108
3149
|
label: l("menu.product.form.variant.columns.min_price"),
|
|
3109
3150
|
name: u.original.label
|
|
3110
3151
|
}),
|
|
3111
|
-
errorMessages: u.original.minPriceIssue ? [
|
|
3152
|
+
errorMessages: u.original.minPriceIssue ? [v(u.original.minPriceIssue)] : [],
|
|
3112
3153
|
"onUpdate:modelValue": (t) => c.value.setCombination(u.original.key, {
|
|
3113
3154
|
minPriceAmount: t
|
|
3114
3155
|
})
|
|
@@ -3155,7 +3196,7 @@ const bo = {
|
|
|
3155
3196
|
"div",
|
|
3156
3197
|
{ class: "flex justify-end", "data-product-group-id": t.id },
|
|
3157
3198
|
[
|
|
3158
|
-
H(
|
|
3199
|
+
H(B.FmButton, {
|
|
3159
3200
|
icon: "delete",
|
|
3160
3201
|
variant: Ne.Tertiary,
|
|
3161
3202
|
textColor: "neutral-gray-400",
|
|
@@ -3165,7 +3206,7 @@ const bo = {
|
|
|
3165
3206
|
}),
|
|
3166
3207
|
onClick: () => c.value.removeGroup(t.id)
|
|
3167
3208
|
}),
|
|
3168
|
-
H(
|
|
3209
|
+
H(B.FmButton, {
|
|
3169
3210
|
icon: "edit",
|
|
3170
3211
|
variant: Ne.Tertiary,
|
|
3171
3212
|
textColor: "neutral-gray-400",
|
|
@@ -3183,18 +3224,18 @@ const bo = {
|
|
|
3183
3224
|
);
|
|
3184
3225
|
}
|
|
3185
3226
|
}
|
|
3186
|
-
]), J =
|
|
3227
|
+
]), J = W(!1), we = ye(
|
|
3187
3228
|
null
|
|
3188
3229
|
);
|
|
3189
|
-
let
|
|
3190
|
-
function
|
|
3191
|
-
|
|
3230
|
+
let z = null, D = null;
|
|
3231
|
+
function X() {
|
|
3232
|
+
D == null || D(), D = null, z == null || z.dispose(), z = null, we.value = null, J.value = !1;
|
|
3192
3233
|
}
|
|
3193
3234
|
function ie(u) {
|
|
3194
3235
|
if (u.edit.state !== "allowed") return;
|
|
3195
|
-
|
|
3236
|
+
X();
|
|
3196
3237
|
const t = i.session.groupEditor(u.id);
|
|
3197
|
-
|
|
3238
|
+
z = t, we.value = t.get(), D = t.subscribe((j) => {
|
|
3198
3239
|
we.value = j;
|
|
3199
3240
|
}), J.value = !0;
|
|
3200
3241
|
}
|
|
@@ -3204,7 +3245,7 @@ const bo = {
|
|
|
3204
3245
|
return ((u = we.value) == null ? void 0 : u.status) === "ready" ? we.value.value : null;
|
|
3205
3246
|
}
|
|
3206
3247
|
);
|
|
3207
|
-
ke(
|
|
3248
|
+
ke(X);
|
|
3208
3249
|
const Xe = R(
|
|
3209
3250
|
() => a.value.inventoryRows.map((u) => ({
|
|
3210
3251
|
_id: u.key,
|
|
@@ -3212,18 +3253,18 @@ const bo = {
|
|
|
3212
3253
|
// The SDK carries the binding opaquely; its shape is this component's.
|
|
3213
3254
|
binding: [...u.bindings]
|
|
3214
3255
|
}))
|
|
3215
|
-
),
|
|
3256
|
+
), De = ye(null);
|
|
3216
3257
|
function je() {
|
|
3217
3258
|
var u;
|
|
3218
|
-
(u =
|
|
3259
|
+
(u = De.value) == null || u.dispose(), De.value = null;
|
|
3219
3260
|
}
|
|
3220
3261
|
function El(u) {
|
|
3221
|
-
je(),
|
|
3262
|
+
je(), De.value = c.value.inventoryEditor(u._id);
|
|
3222
3263
|
}
|
|
3223
3264
|
ke(je);
|
|
3224
|
-
const vl =
|
|
3265
|
+
const vl = W(null);
|
|
3225
3266
|
async function bl() {
|
|
3226
|
-
await
|
|
3267
|
+
await Je();
|
|
3227
3268
|
const u = vl.value;
|
|
3228
3269
|
if (!u) return;
|
|
3229
3270
|
const t = u.querySelectorAll("tbody tr");
|
|
@@ -3265,7 +3306,7 @@ const bo = {
|
|
|
3265
3306
|
},
|
|
3266
3307
|
[
|
|
3267
3308
|
H(
|
|
3268
|
-
|
|
3309
|
+
B.FmSelect,
|
|
3269
3310
|
{
|
|
3270
3311
|
items: [
|
|
3271
3312
|
{
|
|
@@ -3287,7 +3328,7 @@ const bo = {
|
|
|
3287
3328
|
{
|
|
3288
3329
|
// Legacy appends the same "Add new" row to this menu
|
|
3289
3330
|
// (`ProductTakeaway.vue:108-128`).
|
|
3290
|
-
"append-menu": () => H(
|
|
3331
|
+
"append-menu": () => H(B.FmButton, {
|
|
3291
3332
|
variant: Ne.Plain,
|
|
3292
3333
|
prependIcon: "add",
|
|
3293
3334
|
class: "w-full justify-start",
|
|
@@ -3307,7 +3348,7 @@ const bo = {
|
|
|
3307
3348
|
size: 75,
|
|
3308
3349
|
cell: (u) => {
|
|
3309
3350
|
const t = u.row.original;
|
|
3310
|
-
return H(
|
|
3351
|
+
return H(B.FmCheckbox, {
|
|
3311
3352
|
modelValue: t.isDefault,
|
|
3312
3353
|
value: "",
|
|
3313
3354
|
"aria-label": l("menu.common.labels.a11y_labelled_name", {
|
|
@@ -3329,7 +3370,7 @@ const bo = {
|
|
|
3329
3370
|
header: () => l("menu.product.form.order_pacing.time_presets.columns.delay"),
|
|
3330
3371
|
cell: (u) => $(u.getValue())
|
|
3331
3372
|
}
|
|
3332
|
-
]), fl =
|
|
3373
|
+
]), fl = W(null), jl = Jl(fl), xe = (u) => {
|
|
3333
3374
|
var t;
|
|
3334
3375
|
return (t = i.validation) == null ? void 0 : t.touch(u);
|
|
3335
3376
|
};
|
|
@@ -3355,7 +3396,7 @@ const bo = {
|
|
|
3355
3396
|
return t != null && t.length ? i.validation ? i.validation.issue(a.value.fieldIssues, u) ?? void 0 : t[0] : a.value.issues.find((te) => te.field === u);
|
|
3356
3397
|
}, gl = R(
|
|
3357
3398
|
() => ue("name") ?? a.value.nameIssue
|
|
3358
|
-
), yl =
|
|
3399
|
+
), yl = W();
|
|
3359
3400
|
return Ae(
|
|
3360
3401
|
() => ue("category"),
|
|
3361
3402
|
(u) => {
|
|
@@ -3435,7 +3476,7 @@ const bo = {
|
|
|
3435
3476
|
"toggle-label": e(l)("menu.product.form.sections.general.description"),
|
|
3436
3477
|
"onUpdate:enabled": t[22] || (t[22] = (K) => ne("general", K))
|
|
3437
3478
|
}, {
|
|
3438
|
-
default:
|
|
3479
|
+
default: p(() => {
|
|
3439
3480
|
var K, me, ae, Se;
|
|
3440
3481
|
return [
|
|
3441
3482
|
n("div", on, [
|
|
@@ -3446,7 +3487,7 @@ const bo = {
|
|
|
3446
3487
|
"model-value": a.value.code,
|
|
3447
3488
|
disabled: a.value.editCode.state !== "allowed",
|
|
3448
3489
|
placeholder: ((K = a.value.inherited) == null ? void 0 : K.code) || e(l)("menu.product.form.detail.fields.code.placeholder"),
|
|
3449
|
-
"error-messages": ue("code") ? [e(
|
|
3490
|
+
"error-messages": ue("code") ? [e(v)(ue("code"))] : [],
|
|
3450
3491
|
"helper-text": a.value.duplicateCodeCount > 0 ? e(l)("menu.product.form.detail.fields.code.duplicate_hint", {
|
|
3451
3492
|
count: a.value.duplicateCodeCount
|
|
3452
3493
|
}) : ""
|
|
@@ -3465,7 +3506,7 @@ const bo = {
|
|
|
3465
3506
|
"model-value": a.value.name,
|
|
3466
3507
|
disabled: a.value.editIdentity.state !== "allowed",
|
|
3467
3508
|
placeholder: ((me = a.value.inherited) == null ? void 0 : me.name) ?? "",
|
|
3468
|
-
"error-messages": gl.value ? [e(
|
|
3509
|
+
"error-messages": gl.value ? [e(v)(gl.value)] : [],
|
|
3469
3510
|
"helper-text": a.value.duplicateNameCount > 0 ? e(l)(
|
|
3470
3511
|
"menu.product.form.detail.fields.name.duplicate_warning",
|
|
3471
3512
|
{ count: a.value.duplicateNameCount }
|
|
@@ -3473,13 +3514,13 @@ const bo = {
|
|
|
3473
3514
|
"onUpdate:modelValue": t[5] || (t[5] = (U) => (xe("name"), c.value.setName(String(U ?? "")))),
|
|
3474
3515
|
onFocusChanged: t[6] || (t[6] = (U) => !U && xe("name"))
|
|
3475
3516
|
}, {
|
|
3476
|
-
append:
|
|
3517
|
+
append: p(() => [
|
|
3477
3518
|
s(Ve, {
|
|
3478
3519
|
variant: "plain",
|
|
3479
3520
|
placement: "top",
|
|
3480
3521
|
"z-index": 999
|
|
3481
3522
|
}, {
|
|
3482
|
-
content:
|
|
3523
|
+
content: p(() => [
|
|
3483
3524
|
n("div", un, [
|
|
3484
3525
|
(r(!0), S(re, null, Fe(a.value.nameTranslationTooltip, (U) => (r(), S("div", {
|
|
3485
3526
|
key: U.locale
|
|
@@ -3489,7 +3530,7 @@ const bo = {
|
|
|
3489
3530
|
})), 1))), 128))
|
|
3490
3531
|
])
|
|
3491
3532
|
]),
|
|
3492
|
-
default:
|
|
3533
|
+
default: p(() => [
|
|
3493
3534
|
s(oe, {
|
|
3494
3535
|
disabled: a.value.nameTranslation.state !== "allowed",
|
|
3495
3536
|
icon: "g_translate",
|
|
@@ -3524,7 +3565,7 @@ const bo = {
|
|
|
3524
3565
|
"onUpdate:modelValue": t[9] || (t[9] = (U) => c.value.setDescription(String(U ?? ""))),
|
|
3525
3566
|
onFocusout: t[10] || (t[10] = (U) => c.value.normalizeTextField("description"))
|
|
3526
3567
|
}, {
|
|
3527
|
-
label:
|
|
3568
|
+
label: p(() => [
|
|
3528
3569
|
n("p", mn, [
|
|
3529
3570
|
sl(I(e(l)("menu.product.form.detail.fields.description.label")) + " ", 1),
|
|
3530
3571
|
n("span", cn, I(e(l)("menu.product.form.detail.fields.description.optional")), 1)
|
|
@@ -3538,7 +3579,7 @@ const bo = {
|
|
|
3538
3579
|
placement: "top",
|
|
3539
3580
|
"z-index": 999
|
|
3540
3581
|
}, {
|
|
3541
|
-
content:
|
|
3582
|
+
content: p(() => [
|
|
3542
3583
|
n("div", vn, [
|
|
3543
3584
|
(r(!0), S(re, null, Fe(a.value.descriptionTranslationTooltip, (U) => (r(), S("div", {
|
|
3544
3585
|
key: U.locale
|
|
@@ -3548,7 +3589,7 @@ const bo = {
|
|
|
3548
3589
|
})), 1))), 128))
|
|
3549
3590
|
])
|
|
3550
3591
|
]),
|
|
3551
|
-
default:
|
|
3592
|
+
default: p(() => [
|
|
3552
3593
|
s(oe, {
|
|
3553
3594
|
disabled: a.value.descriptionTranslation.state !== "allowed",
|
|
3554
3595
|
icon: "g_translate",
|
|
@@ -3561,7 +3602,7 @@ const bo = {
|
|
|
3561
3602
|
}),
|
|
3562
3603
|
s(e(Sl), {
|
|
3563
3604
|
"aria-label": e(l)("menu.product.remy.description"),
|
|
3564
|
-
onClick: t[12] || (t[12] = (U) =>
|
|
3605
|
+
onClick: t[12] || (t[12] = (U) => O("description"))
|
|
3565
3606
|
}, null, 8, ["aria-label"])
|
|
3566
3607
|
])
|
|
3567
3608
|
]),
|
|
@@ -3573,14 +3614,14 @@ const bo = {
|
|
|
3573
3614
|
s(Oe, {
|
|
3574
3615
|
label: a.value.categoryLabel === "plural" ? e(l)("menu.product.form.detail.category.label") : e(l)("menu.product.form.detail.category.label_singular")
|
|
3575
3616
|
}, {
|
|
3576
|
-
default:
|
|
3617
|
+
default: p(() => [
|
|
3577
3618
|
a.value.canChooseAddon ? (r(), T(_l, {
|
|
3578
3619
|
key: 0,
|
|
3579
3620
|
"model-value": fe.value,
|
|
3580
3621
|
disabled: a.value.editClassification.state !== "allowed",
|
|
3581
3622
|
"onUpdate:modelValue": t[16] || (t[16] = (U) => c.value.setAddon(U === "ADD_ON"))
|
|
3582
3623
|
}, {
|
|
3583
|
-
default:
|
|
3624
|
+
default: p(() => [
|
|
3584
3625
|
n("div", bn, [
|
|
3585
3626
|
n("div", fn, [
|
|
3586
3627
|
s(tl, {
|
|
@@ -3637,9 +3678,9 @@ const bo = {
|
|
|
3637
3678
|
ref_key: "categoryField",
|
|
3638
3679
|
ref: yl,
|
|
3639
3680
|
"model-value": a.value.categoryId,
|
|
3640
|
-
"error-messages": ue("category") ? [e(
|
|
3681
|
+
"error-messages": ue("category") ? [e(v)(ue("category"))] : []
|
|
3641
3682
|
}, {
|
|
3642
|
-
default:
|
|
3683
|
+
default: p(() => [
|
|
3643
3684
|
s(xo, {
|
|
3644
3685
|
view: a.value,
|
|
3645
3686
|
session: c.value,
|
|
@@ -3655,7 +3696,7 @@ const bo = {
|
|
|
3655
3696
|
key: 0,
|
|
3656
3697
|
label: e(l)("menu.product.form.detail.path.label")
|
|
3657
3698
|
}, {
|
|
3658
|
-
default:
|
|
3699
|
+
default: p(() => [
|
|
3659
3700
|
ul((r(), S("div", null, [
|
|
3660
3701
|
s(te, {
|
|
3661
3702
|
items: a.value.subcategoryOptions.map((U) => ({
|
|
@@ -3669,7 +3710,7 @@ const bo = {
|
|
|
3669
3710
|
placeholder: a.value.inheritedSubcategoryLabel ?? e(l)("menu.product.form.detail.path.placeholder"),
|
|
3670
3711
|
"onUpdate:modelValue": t[19] || (t[19] = (U) => c.value.setSubcategories(U ?? []))
|
|
3671
3712
|
}, cl({
|
|
3672
|
-
"append-menu":
|
|
3713
|
+
"append-menu": p(() => [
|
|
3673
3714
|
s(oe, {
|
|
3674
3715
|
variant: "plain",
|
|
3675
3716
|
size: "lg",
|
|
@@ -3684,7 +3725,7 @@ const bo = {
|
|
|
3684
3725
|
}, [
|
|
3685
3726
|
a.value.subcategoryIds.length ? {
|
|
3686
3727
|
name: "default",
|
|
3687
|
-
fn:
|
|
3728
|
+
fn: p(() => [
|
|
3688
3729
|
n("div", {
|
|
3689
3730
|
class: Be([
|
|
3690
3731
|
"break-all fm-typo-en-body-lg-400 line-clamp-1",
|
|
@@ -3718,7 +3759,7 @@ const bo = {
|
|
|
3718
3759
|
title: e(l)("menu.product.form.item_quantity.title"),
|
|
3719
3760
|
"sub-title": e(l)("menu.product.form.item_quantity.subtitle")
|
|
3720
3761
|
}, {
|
|
3721
|
-
default:
|
|
3762
|
+
default: p(() => [
|
|
3722
3763
|
n("div", hn, [
|
|
3723
3764
|
(r(), S(re, null, Fe(["perBill", "perOrderSession"], (U) => n("div", {
|
|
3724
3765
|
key: U,
|
|
@@ -3812,7 +3853,7 @@ const bo = {
|
|
|
3812
3853
|
title: e(l)("menu.product.form.sections.tagging.title"),
|
|
3813
3854
|
subtitle: e(l)("menu.product.form.sections.tagging.subtitle")
|
|
3814
3855
|
}, {
|
|
3815
|
-
default:
|
|
3856
|
+
default: p(() => [
|
|
3816
3857
|
s(e(Wl), {
|
|
3817
3858
|
entity: "item",
|
|
3818
3859
|
"model-value": a.value.customAttributes ?? {},
|
|
@@ -3832,7 +3873,7 @@ const bo = {
|
|
|
3832
3873
|
"toggle-label": e(l)("menu.product.form.sections.price.description"),
|
|
3833
3874
|
"onUpdate:enabled": t[37] || (t[37] = (K) => ne("price", K))
|
|
3834
3875
|
}, {
|
|
3835
|
-
default:
|
|
3876
|
+
default: p(() => {
|
|
3836
3877
|
var K, me;
|
|
3837
3878
|
return [
|
|
3838
3879
|
n("div", Vn, [
|
|
@@ -3852,17 +3893,17 @@ const bo = {
|
|
|
3852
3893
|
maximumFractionDigits: 2,
|
|
3853
3894
|
useGrouping: !1
|
|
3854
3895
|
}),
|
|
3855
|
-
"error-messages": ue("price") ? [e(
|
|
3856
|
-
"helper-text": a.value.editPrice.state === "disabled" ? e(
|
|
3896
|
+
"error-messages": ue("price") ? [e(v)(ue("price"))] : [],
|
|
3897
|
+
"helper-text": a.value.editPrice.state === "disabled" ? e(v)(a.value.editPrice.reason) : ""
|
|
3857
3898
|
}, Re("price"), {
|
|
3858
3899
|
"onUpdate:modelValue": t[25] || (t[25] = (ae) => (xe("price"), c.value.setPriceAmount(le(ae))))
|
|
3859
3900
|
}), {
|
|
3860
|
-
append:
|
|
3901
|
+
append: p(() => [
|
|
3861
3902
|
s(e(Sl), {
|
|
3862
3903
|
"pure-styling": "",
|
|
3863
3904
|
class: "shrink-0 scale-75",
|
|
3864
3905
|
"aria-label": e(l)("menu.product.remy.pricing"),
|
|
3865
|
-
onClick: t[24] || (t[24] = (ae) =>
|
|
3906
|
+
onClick: t[24] || (t[24] = (ae) => O("pricing"))
|
|
3866
3907
|
}, null, 8, ["aria-label"])
|
|
3867
3908
|
]),
|
|
3868
3909
|
_: 1
|
|
@@ -3918,7 +3959,7 @@ const bo = {
|
|
|
3918
3959
|
label: e(l)("menu.price_tier.price_group"),
|
|
3919
3960
|
description: e(l)("menu.price_tier.description")
|
|
3920
3961
|
}, {
|
|
3921
|
-
append:
|
|
3962
|
+
append: p(() => [
|
|
3922
3963
|
s(oe, {
|
|
3923
3964
|
label: e(l)("menu.price_tier.add_price_group"),
|
|
3924
3965
|
icon: "add",
|
|
@@ -3926,9 +3967,9 @@ const bo = {
|
|
|
3926
3967
|
onClick: t[28] || (t[28] = (ae) => o("create-entity", "priceGroup"))
|
|
3927
3968
|
}, null, 8, ["label"])
|
|
3928
3969
|
]),
|
|
3929
|
-
default:
|
|
3970
|
+
default: p(() => [
|
|
3930
3971
|
s(Ze, {
|
|
3931
|
-
"column-defs":
|
|
3972
|
+
"column-defs": ze.value,
|
|
3932
3973
|
"row-data": N.value,
|
|
3933
3974
|
"page-size": N.value.length,
|
|
3934
3975
|
"hide-footer": ""
|
|
@@ -3939,7 +3980,7 @@ const bo = {
|
|
|
3939
3980
|
s(Oe, {
|
|
3940
3981
|
label: e(l)("menu.product.form.price.settings.title")
|
|
3941
3982
|
}, {
|
|
3942
|
-
default:
|
|
3983
|
+
default: p(() => {
|
|
3943
3984
|
var ae, Se;
|
|
3944
3985
|
return [
|
|
3945
3986
|
n("div", Bn, [
|
|
@@ -3968,10 +4009,10 @@ const bo = {
|
|
|
3968
4009
|
}))
|
|
3969
4010
|
}, null, 8, ["disabled", "label", "sublabel", "model-value"]),
|
|
3970
4011
|
a.value.unitSale.enabled ? (r(), S("div", Ln, [
|
|
3971
|
-
n("p",
|
|
4012
|
+
n("p", zn, I(e(l)(
|
|
3972
4013
|
"menu.product.form.price.settings.sell_by_unit.per_unit.label"
|
|
3973
4014
|
)), 1),
|
|
3974
|
-
n("div",
|
|
4015
|
+
n("div", Dn, [
|
|
3975
4016
|
s(ge, Ce({
|
|
3976
4017
|
disabled: a.value.editUnitSale.state !== "allowed",
|
|
3977
4018
|
"aria-label": e(l)(
|
|
@@ -3979,7 +4020,7 @@ const bo = {
|
|
|
3979
4020
|
),
|
|
3980
4021
|
type: "number",
|
|
3981
4022
|
inputmode: "numeric",
|
|
3982
|
-
"error-messages": ue("perXUnit") ? [e(
|
|
4023
|
+
"error-messages": ue("perXUnit") ? [e(v)(ue("perXUnit"))] : [],
|
|
3983
4024
|
"model-value": a.value.unitSale.perXUnit,
|
|
3984
4025
|
placeholder: e(l)(
|
|
3985
4026
|
"menu.product.form.price.settings.sell_by_unit.per_unit.placeholder"
|
|
@@ -3998,7 +4039,7 @@ const bo = {
|
|
|
3998
4039
|
"aria-label": e(l)(
|
|
3999
4040
|
"menu.product.form.price.settings.sell_by_unit.unit.label"
|
|
4000
4041
|
),
|
|
4001
|
-
"error-messages": ue("unit") ? [e(
|
|
4042
|
+
"error-messages": ue("unit") ? [e(v)(ue("unit"))] : [],
|
|
4002
4043
|
"model-value": a.value.unitSale.unit ?? "",
|
|
4003
4044
|
placeholder: e(l)(
|
|
4004
4045
|
"menu.product.form.price.settings.sell_by_unit.unit.placeholder"
|
|
@@ -4029,7 +4070,7 @@ const bo = {
|
|
|
4029
4070
|
),
|
|
4030
4071
|
currency: (ae = a.value.summary.sellingPrice) == null ? void 0 : ae.currency,
|
|
4031
4072
|
"model-value": a.value.costingAmount,
|
|
4032
|
-
"error-messages": ue("costing") ? [e(
|
|
4073
|
+
"error-messages": ue("costing") ? [e(v)(ue("costing"))] : []
|
|
4033
4074
|
}, Re("costing"), {
|
|
4034
4075
|
"onUpdate:modelValue": t[34] || (t[34] = (U) => (xe("costing"), c.value.setCostingAmount(U ?? 0)))
|
|
4035
4076
|
}), null, 16, ["aria-label", "currency", "model-value", "error-messages"])
|
|
@@ -4052,7 +4093,7 @@ const bo = {
|
|
|
4052
4093
|
"menu.product.form.price.settings.min_price.input_label"
|
|
4053
4094
|
),
|
|
4054
4095
|
currency: (Se = a.value.summary.sellingPrice) == null ? void 0 : Se.currency,
|
|
4055
|
-
"error-messages": ue("minPrice") ? [e(
|
|
4096
|
+
"error-messages": ue("minPrice") ? [e(v)(ue("minPrice"))] : [],
|
|
4056
4097
|
"model-value": a.value.minimumPriceAmount
|
|
4057
4098
|
}, Re("minPrice"), {
|
|
4058
4099
|
"onUpdate:modelValue": t[36] || (t[36] = (U) => (xe("minPrice"), c.value.setMinimumPriceAmount(U ?? 0)))
|
|
@@ -4069,7 +4110,7 @@ const bo = {
|
|
|
4069
4110
|
key: 2,
|
|
4070
4111
|
label: e(l)("menu.product.form.price.statutory_charges.title")
|
|
4071
4112
|
}, {
|
|
4072
|
-
default:
|
|
4113
|
+
default: p(() => [
|
|
4073
4114
|
n("div", Kn, [
|
|
4074
4115
|
(r(!0), S(re, null, Fe(a.value.statutoryCharges, (ae) => (r(), S("div", {
|
|
4075
4116
|
key: ae.code,
|
|
@@ -4099,7 +4140,7 @@ const bo = {
|
|
|
4099
4140
|
type: "number",
|
|
4100
4141
|
inputmode: "numeric",
|
|
4101
4142
|
"error-messages": ue(`statutoryCharges.${ae.code}`) ? [
|
|
4102
|
-
e(
|
|
4143
|
+
e(v)(
|
|
4103
4144
|
ue(`statutoryCharges.${ae.code}`)
|
|
4104
4145
|
)
|
|
4105
4146
|
] : [],
|
|
@@ -4130,14 +4171,14 @@ const bo = {
|
|
|
4130
4171
|
section: a.value.sections.print,
|
|
4131
4172
|
title: e(l)("menu.product.form.print.title")
|
|
4132
4173
|
}, {
|
|
4133
|
-
default:
|
|
4174
|
+
default: p(() => {
|
|
4134
4175
|
var K;
|
|
4135
4176
|
return [
|
|
4136
4177
|
a.value.printConfig.state === "allowed" ? (r(), T(Oe, {
|
|
4137
4178
|
key: 0,
|
|
4138
4179
|
label: e(l)("menu.product.form.print.config.label")
|
|
4139
4180
|
}, {
|
|
4140
|
-
default:
|
|
4181
|
+
default: p(() => {
|
|
4141
4182
|
var me;
|
|
4142
4183
|
return [
|
|
4143
4184
|
s(wl, {
|
|
@@ -4157,7 +4198,7 @@ const bo = {
|
|
|
4157
4198
|
"model-value": ((K = a.value.print) == null ? void 0 : K.sequential) ?? !1,
|
|
4158
4199
|
"onUpdate:modelValue": t[39] || (t[39] = (me) => c.value.setPrintSequential(!!me))
|
|
4159
4200
|
}, {
|
|
4160
|
-
default:
|
|
4201
|
+
default: p(() => [
|
|
4161
4202
|
n("div", Yn, [
|
|
4162
4203
|
s(tl, {
|
|
4163
4204
|
value: !1,
|
|
@@ -4176,14 +4217,14 @@ const bo = {
|
|
|
4176
4217
|
s(Oe, {
|
|
4177
4218
|
label: e(l)("menu.product.form.print.routes.label")
|
|
4178
4219
|
}, {
|
|
4179
|
-
default:
|
|
4220
|
+
default: p(() => [
|
|
4180
4221
|
a.value.printDepartmentOptions.length ? (r(), T(ml, {
|
|
4181
4222
|
key: 0,
|
|
4182
4223
|
items: a.value.printDepartmentOptions,
|
|
4183
4224
|
handle: ".print-route-handle",
|
|
4184
4225
|
onReorder: t[42] || (t[42] = (me) => c.value.reorderPrintDepartments(me))
|
|
4185
4226
|
}, {
|
|
4186
|
-
item:
|
|
4227
|
+
item: p(({ element: me }) => {
|
|
4187
4228
|
var ae, Se;
|
|
4188
4229
|
return [
|
|
4189
4230
|
n("div", Zn, [
|
|
@@ -4241,7 +4282,7 @@ const bo = {
|
|
|
4241
4282
|
"toggle-label": e(l)("menu.product.form.sections.variant.description"),
|
|
4242
4283
|
"onUpdate:enabled": t[46] || (t[46] = (K) => ne("variant", K))
|
|
4243
4284
|
}, {
|
|
4244
|
-
"append-title":
|
|
4285
|
+
"append-title": p(() => [
|
|
4245
4286
|
a.value.editVariantGroups.state === "allowed" ? (r(), T(oe, {
|
|
4246
4287
|
key: 0,
|
|
4247
4288
|
"aria-label": e(l)("menu.product.form.variant.add"),
|
|
@@ -4251,19 +4292,19 @@ const bo = {
|
|
|
4251
4292
|
onClick: t[44] || (t[44] = (K) => G("variant"))
|
|
4252
4293
|
}, null, 8, ["aria-label", "label"])) : y("", !0)
|
|
4253
4294
|
]),
|
|
4254
|
-
default:
|
|
4295
|
+
default: p(() => [
|
|
4255
4296
|
n("div", ls, [
|
|
4256
4297
|
s(hl, {
|
|
4257
4298
|
"model-value": void 0,
|
|
4258
|
-
"error-messages": ue("variant") ? [e(
|
|
4299
|
+
"error-messages": ue("variant") ? [e(v)(ue("variant"))] : []
|
|
4259
4300
|
}, {
|
|
4260
|
-
default:
|
|
4301
|
+
default: p(() => [
|
|
4261
4302
|
s(ml, {
|
|
4262
4303
|
items: a.value.variantGroups,
|
|
4263
4304
|
handle: ".handle",
|
|
4264
4305
|
onReorder: t[45] || (t[45] = (K) => c.value.setVariantGroups(K))
|
|
4265
4306
|
}, {
|
|
4266
|
-
item:
|
|
4307
|
+
item: p(({ element: K }) => [
|
|
4267
4308
|
n("div", as, [
|
|
4268
4309
|
s(oe, {
|
|
4269
4310
|
class: "handle",
|
|
@@ -4326,7 +4367,7 @@ const bo = {
|
|
|
4326
4367
|
description: e(l)("menu.product.form.sections.group.description"),
|
|
4327
4368
|
"onUpdate:enabled": t[48] || (t[48] = (K) => ne("group", K))
|
|
4328
4369
|
}, {
|
|
4329
|
-
"append-title":
|
|
4370
|
+
"append-title": p(() => [
|
|
4330
4371
|
s(oe, {
|
|
4331
4372
|
"aria-label": e(l)("menu.product.form.group.add"),
|
|
4332
4373
|
label: e(l)("menu.product.form.group.add"),
|
|
@@ -4335,7 +4376,7 @@ const bo = {
|
|
|
4335
4376
|
onClick: t[47] || (t[47] = (K) => G("group"))
|
|
4336
4377
|
}, null, 8, ["aria-label", "label"])
|
|
4337
4378
|
]),
|
|
4338
|
-
default:
|
|
4379
|
+
default: p(() => [
|
|
4339
4380
|
n("div", is, [
|
|
4340
4381
|
a.value.groupRows.length > 0 ? (r(), T(Ze, {
|
|
4341
4382
|
key: 0,
|
|
@@ -4361,7 +4402,7 @@ const bo = {
|
|
|
4361
4402
|
"toggle-label": e(l)("menu.product.form.sections.inventory.description"),
|
|
4362
4403
|
"onUpdate:enabled": t[49] || (t[49] = (K) => ne("inventory", K))
|
|
4363
4404
|
}, {
|
|
4364
|
-
default:
|
|
4405
|
+
default: p(() => [
|
|
4365
4406
|
n("div", us, [
|
|
4366
4407
|
n("div", {
|
|
4367
4408
|
ref_key: "inventorySummaryRoot",
|
|
@@ -4385,13 +4426,13 @@ const bo = {
|
|
|
4385
4426
|
title: e(l)("menu.inventory.threshold.title"),
|
|
4386
4427
|
subtitle: e(l)("menu.inventory.threshold.subtitle")
|
|
4387
4428
|
}, {
|
|
4388
|
-
default:
|
|
4429
|
+
default: p(() => [
|
|
4389
4430
|
s(kl, Ce({
|
|
4390
4431
|
"aria-label": e(l)("menu.inventory.threshold.title"),
|
|
4391
4432
|
"model-value": a.value.lowStockThreshold,
|
|
4392
4433
|
step: 1,
|
|
4393
4434
|
placeholder: a.value.lowStockThresholdDefault === null ? e(l)("menu.inventory.threshold.not_set") : e($)(a.value.lowStockThresholdDefault),
|
|
4394
|
-
"error-messages": ue("lowStockThreshold") ? [e(
|
|
4435
|
+
"error-messages": ue("lowStockThreshold") ? [e(v)(ue("lowStockThreshold"))] : [],
|
|
4395
4436
|
"helper-text": e(l)("menu.inventory.threshold.helper_text")
|
|
4396
4437
|
}, Re("lowStockThreshold"), {
|
|
4397
4438
|
"onUpdate:modelValue": t[50] || (t[50] = (K) => (xe("lowStockThreshold"), c.value.setLowStockThreshold(le(K))))
|
|
@@ -4410,7 +4451,7 @@ const bo = {
|
|
|
4410
4451
|
"toggle-label": e(l)("menu.product.form.sections.takeaway.description"),
|
|
4411
4452
|
"onUpdate:enabled": t[53] || (t[53] = (K) => ne("takeaway", K))
|
|
4412
4453
|
}, {
|
|
4413
|
-
default:
|
|
4454
|
+
default: p(() => [
|
|
4414
4455
|
u.presentation !== "tree" || a.value.editTakeawayPos.state === "allowed" || a.value.editTakeawayApp.state === "allowed" ? (r(), S("div", cs, [
|
|
4415
4456
|
a.value.editTakeawayPos.state === "allowed" ? (r(), T(Me, {
|
|
4416
4457
|
key: 0,
|
|
@@ -4447,7 +4488,7 @@ const bo = {
|
|
|
4447
4488
|
section: a.value.sections.serveDelay,
|
|
4448
4489
|
title: e(l)("menu.product.form.order_pacing.title")
|
|
4449
4490
|
}, {
|
|
4450
|
-
default:
|
|
4491
|
+
default: p(() => {
|
|
4451
4492
|
var K, me;
|
|
4452
4493
|
return [
|
|
4453
4494
|
s(wl, {
|
|
@@ -4463,7 +4504,7 @@ const bo = {
|
|
|
4463
4504
|
title: e(l)("menu.product.form.order_pacing.time_presets.title"),
|
|
4464
4505
|
"sub-title": e(l)("menu.product.form.order_pacing.time_presets.subtitle")
|
|
4465
4506
|
}, {
|
|
4466
|
-
"append-title":
|
|
4507
|
+
"append-title": p(() => [
|
|
4467
4508
|
s(oe, {
|
|
4468
4509
|
class: "flex-shrink-0",
|
|
4469
4510
|
"aria-label": e(l)("menu.product.form.order_pacing.time_presets.add"),
|
|
@@ -4512,25 +4553,25 @@ const bo = {
|
|
|
4512
4553
|
key: 1,
|
|
4513
4554
|
"model-value": J.value,
|
|
4514
4555
|
view: _e.value,
|
|
4515
|
-
session: e(
|
|
4556
|
+
session: e(z),
|
|
4516
4557
|
"order-from-options": a.value.orderFromOptions,
|
|
4517
4558
|
presentation: u.presentation,
|
|
4518
4559
|
"create-price-group": w,
|
|
4519
|
-
"onUpdate:modelValue": t[56] || (t[56] = (K) => K ||
|
|
4560
|
+
"onUpdate:modelValue": t[56] || (t[56] = (K) => K || X())
|
|
4520
4561
|
}, null, 8, ["model-value", "view", "session", "order-from-options", "presentation"])) : y("", !0),
|
|
4521
|
-
|
|
4562
|
+
De.value ? (r(), T(Rl, {
|
|
4522
4563
|
key: 2,
|
|
4523
|
-
session:
|
|
4564
|
+
session: De.value,
|
|
4524
4565
|
"product-name": a.value.name || ((xl = a.value.inherited) == null ? void 0 : xl.name) || "",
|
|
4525
4566
|
disabled: a.value.editInventory.state !== "allowed",
|
|
4526
4567
|
onClose: je
|
|
4527
4568
|
}, null, 8, ["session", "product-name", "disabled"])) : y("", !0)
|
|
4528
4569
|
], 2),
|
|
4529
|
-
C.value ? (r(), T(
|
|
4570
|
+
C.value ? (r(), T(zl, {
|
|
4530
4571
|
key: 0,
|
|
4531
4572
|
session: C.value,
|
|
4532
4573
|
"on-create-price-group": w,
|
|
4533
|
-
onSuggest: t[57] || (t[57] = (K) =>
|
|
4574
|
+
onSuggest: t[57] || (t[57] = (K) => O("pricing")),
|
|
4534
4575
|
onClose: P
|
|
4535
4576
|
}, null, 8, ["session"])) : y("", !0)
|
|
4536
4577
|
], 64);
|
|
@@ -4548,41 +4589,41 @@ const bo = {
|
|
|
4548
4589
|
() => d.value.status === "ready" ? d.value.value : null
|
|
4549
4590
|
), C = R(
|
|
4550
4591
|
() => w.value ? V.validation.issue(w.value.fieldIssues, "name") ?? w.value.nameIssue : null
|
|
4551
|
-
), P = ye(null), m = ye(null), l =
|
|
4592
|
+
), P = ye(null), m = ye(null), l = W(!1);
|
|
4552
4593
|
let $ = null;
|
|
4553
4594
|
const _ = R(
|
|
4554
4595
|
() => {
|
|
4555
|
-
var
|
|
4556
|
-
return ((
|
|
4596
|
+
var v;
|
|
4597
|
+
return ((v = m.value) == null ? void 0 : v.status) === "ready" ? m.value.value : null;
|
|
4557
4598
|
}
|
|
4558
4599
|
);
|
|
4559
|
-
function F(
|
|
4600
|
+
function F(v) {
|
|
4560
4601
|
var g;
|
|
4561
|
-
$ == null || $(), $ = null,
|
|
4602
|
+
$ == null || $(), $ = null, v && ((g = P.value) == null || g.dispose()), P.value = null, m.value = null, l.value = !1;
|
|
4562
4603
|
}
|
|
4563
4604
|
function L() {
|
|
4564
4605
|
var g;
|
|
4565
4606
|
if (((g = w.value) == null ? void 0 : g.translation.state) !== "allowed") return;
|
|
4566
4607
|
F(!0);
|
|
4567
|
-
const
|
|
4568
|
-
P.value =
|
|
4608
|
+
const v = V.session.translationEditor();
|
|
4609
|
+
P.value = v, m.value = v.get(), $ = v.subscribe((f) => {
|
|
4569
4610
|
m.value = f;
|
|
4570
4611
|
}), l.value = !0;
|
|
4571
4612
|
}
|
|
4572
|
-
function E(
|
|
4613
|
+
function E(v) {
|
|
4573
4614
|
var k;
|
|
4574
4615
|
const g = P.value, f = (k = _.value) == null ? void 0 : k.nameLocale;
|
|
4575
4616
|
if (!(!g || !f)) {
|
|
4576
|
-
for (const
|
|
4577
|
-
|
|
4578
|
-
for (const [
|
|
4579
|
-
|
|
4617
|
+
for (const O of Object.keys(f))
|
|
4618
|
+
O in v || g.removeLocale(O);
|
|
4619
|
+
for (const [O, Q] of Object.entries(v))
|
|
4620
|
+
O in f || g.addLocale(O), g.setNameLocale(O, Q);
|
|
4580
4621
|
}
|
|
4581
4622
|
}
|
|
4582
4623
|
async function G() {
|
|
4583
|
-
const
|
|
4584
|
-
if (!
|
|
4585
|
-
(await o(async () =>
|
|
4624
|
+
const v = P.value;
|
|
4625
|
+
if (!v) return;
|
|
4626
|
+
(await o(async () => v.apply(), {
|
|
4586
4627
|
showLoading: !1
|
|
4587
4628
|
})).kind === "success" && F(!1);
|
|
4588
4629
|
}
|
|
@@ -4591,28 +4632,28 @@ const bo = {
|
|
|
4591
4632
|
}
|
|
4592
4633
|
return ke(() => {
|
|
4593
4634
|
F(!0), V.session.dispose();
|
|
4594
|
-
}), (
|
|
4635
|
+
}), (v, g) => {
|
|
4595
4636
|
var k;
|
|
4596
4637
|
const f = M("FmButton");
|
|
4597
4638
|
return r(), S(re, null, [
|
|
4598
4639
|
s(ge, Ce(
|
|
4599
4640
|
{
|
|
4600
4641
|
"model-value": ((k = w.value) == null ? void 0 : k.name) ?? "",
|
|
4601
|
-
label:
|
|
4642
|
+
label: v.label,
|
|
4602
4643
|
autofocus: "",
|
|
4603
4644
|
"error-messages": C.value ? [e(x)(C.value)] : []
|
|
4604
4645
|
},
|
|
4605
|
-
|
|
4646
|
+
v.validation.field(
|
|
4606
4647
|
"name",
|
|
4607
|
-
(
|
|
4648
|
+
(O) => v.session.setName(String(O ?? ""))
|
|
4608
4649
|
)
|
|
4609
4650
|
), {
|
|
4610
|
-
append:
|
|
4611
|
-
var
|
|
4651
|
+
append: p(() => {
|
|
4652
|
+
var O;
|
|
4612
4653
|
return [
|
|
4613
4654
|
s(f, {
|
|
4614
4655
|
"aria-label": e(i)("menu.common.translation.translation_label"),
|
|
4615
|
-
disabled: ((
|
|
4656
|
+
disabled: ((O = w.value) == null ? void 0 : O.translation.state) !== "allowed",
|
|
4616
4657
|
class: "!p-0",
|
|
4617
4658
|
icon: "g_translate",
|
|
4618
4659
|
variant: "tertiary",
|
|
@@ -4638,10 +4679,10 @@ const bo = {
|
|
|
4638
4679
|
"z-index": 200,
|
|
4639
4680
|
onDiscard: A,
|
|
4640
4681
|
onSave: G,
|
|
4641
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
4642
|
-
"onUpdate:name": g[1] || (g[1] = (
|
|
4682
|
+
"onUpdate:modelValue": g[0] || (g[0] = (O) => !O && A()),
|
|
4683
|
+
"onUpdate:name": g[1] || (g[1] = (O) => {
|
|
4643
4684
|
var Q;
|
|
4644
|
-
return (Q = P.value) == null ? void 0 : Q.setName(
|
|
4685
|
+
return (Q = P.value) == null ? void 0 : Q.setName(O);
|
|
4645
4686
|
}),
|
|
4646
4687
|
"onUpdate:nameLocale": E
|
|
4647
4688
|
}, null, 8, ["model-value", "dirty", "name", "name-locale", "supported-locales", "title", "name-section-label"])) : y("", !0)
|
|
@@ -4660,7 +4701,7 @@ const bo = {
|
|
|
4660
4701
|
() => o.value.status === "ready" ? o.value.value : null
|
|
4661
4702
|
), w = R(
|
|
4662
4703
|
() => d.value ? V.validation.issue(d.value.fieldIssues, "name") ?? d.value.nameIssue : null
|
|
4663
|
-
), C =
|
|
4704
|
+
), C = W(!1);
|
|
4664
4705
|
function P() {
|
|
4665
4706
|
var $;
|
|
4666
4707
|
(($ = d.value) == null ? void 0 : $.translation.state) === "allowed" && (V.session.beginTranslationEdit(), C.value = !0);
|
|
@@ -4688,7 +4729,7 @@ const bo = {
|
|
|
4688
4729
|
(G) => $.session.setName(String(G ?? ""))
|
|
4689
4730
|
)
|
|
4690
4731
|
), {
|
|
4691
|
-
append:
|
|
4732
|
+
append: p(() => {
|
|
4692
4733
|
var G;
|
|
4693
4734
|
return [
|
|
4694
4735
|
s(F, {
|
|
@@ -4739,7 +4780,7 @@ const bo = {
|
|
|
4739
4780
|
size: 75,
|
|
4740
4781
|
enableSorting: !1,
|
|
4741
4782
|
header: () => o("menu.order_pacing.link_product.table.column.default"),
|
|
4742
|
-
cell: (f) => H(
|
|
4783
|
+
cell: (f) => H(B.FmCheckbox, {
|
|
4743
4784
|
modelValue: f.row.original.isDefault,
|
|
4744
4785
|
value: "",
|
|
4745
4786
|
"aria-label": o("menu.product.form.order_pacing.default_product", {
|
|
@@ -4765,7 +4806,7 @@ const bo = {
|
|
|
4765
4806
|
cell: (f) => {
|
|
4766
4807
|
const k = f.row.original.currentDefault;
|
|
4767
4808
|
return H("div", { class: "pt-1" }, [
|
|
4768
|
-
H(
|
|
4809
|
+
H(B.FmChip, {
|
|
4769
4810
|
label: k ? o("menu.order_pacing.columns.mins", { count: k.delay }) : o("menu.order_pacing.columns.none"),
|
|
4770
4811
|
variant: "plain",
|
|
4771
4812
|
compact: !0,
|
|
@@ -4779,7 +4820,7 @@ const bo = {
|
|
|
4779
4820
|
size: 40,
|
|
4780
4821
|
meta: { cellClass: "" },
|
|
4781
4822
|
enableSorting: !1,
|
|
4782
|
-
cell: (f) => H(
|
|
4823
|
+
cell: (f) => H(B.FmButton, {
|
|
4783
4824
|
prependIcon: "delete",
|
|
4784
4825
|
variant: "tertiary",
|
|
4785
4826
|
"aria-label": o("menu.common.labels.a11y_labelled_name", {
|
|
@@ -4789,7 +4830,7 @@ const bo = {
|
|
|
4789
4830
|
onClick: () => w.unlinkProduct(f.row.original.productId)
|
|
4790
4831
|
})
|
|
4791
4832
|
}
|
|
4792
|
-
]), F =
|
|
4833
|
+
]), F = W(!1), L = W(!1);
|
|
4793
4834
|
function E() {
|
|
4794
4835
|
var f;
|
|
4795
4836
|
((f = m.value) == null ? void 0 : f.translation.state) === "allowed" && (w.beginTranslationEdit(), L.value = !0);
|
|
@@ -4801,9 +4842,9 @@ const bo = {
|
|
|
4801
4842
|
w.discardTranslationEdit(), L.value = !1;
|
|
4802
4843
|
}
|
|
4803
4844
|
ke(() => w.dispose());
|
|
4804
|
-
async function
|
|
4805
|
-
var
|
|
4806
|
-
const f = ((
|
|
4845
|
+
async function v() {
|
|
4846
|
+
var O;
|
|
4847
|
+
const f = ((O = m.value) == null ? void 0 : O.name) ?? "";
|
|
4807
4848
|
(await d(() => C.submit(() => w.submit()), {
|
|
4808
4849
|
showLoading: () => {
|
|
4809
4850
|
var Q;
|
|
@@ -4816,30 +4857,30 @@ const bo = {
|
|
|
4816
4857
|
}
|
|
4817
4858
|
return (f, k) => {
|
|
4818
4859
|
var a;
|
|
4819
|
-
const
|
|
4860
|
+
const O = M("FmButton"), Q = M("FmTable"), ee = M("FmSideSheet");
|
|
4820
4861
|
return r(), S(re, null, [
|
|
4821
4862
|
s(ee, {
|
|
4822
4863
|
"model-value": !0,
|
|
4823
|
-
"is-container": e(
|
|
4824
|
-
"is-container-props": { onValidationSuccess:
|
|
4864
|
+
"is-container": e(B).FmForm,
|
|
4865
|
+
"is-container-props": { onValidationSuccess: v },
|
|
4825
4866
|
"max-width": 600,
|
|
4826
4867
|
"onUpdate:modelValue": k[2] || (k[2] = (c) => !c && x("close"))
|
|
4827
4868
|
}, {
|
|
4828
|
-
"side-sheet-header":
|
|
4869
|
+
"side-sheet-header": p(() => [
|
|
4829
4870
|
n("p", ys, I(e(o)("menu.order_pacing.manager.dialog.add.title")), 1)
|
|
4830
4871
|
]),
|
|
4831
|
-
"side-sheet-footer":
|
|
4872
|
+
"side-sheet-footer": p(() => {
|
|
4832
4873
|
var c;
|
|
4833
4874
|
return [
|
|
4834
4875
|
n("div", ks, [
|
|
4835
|
-
s(
|
|
4876
|
+
s(O, {
|
|
4836
4877
|
label: e(o)("menu.order_pacing.manager.dialog.add.action"),
|
|
4837
4878
|
disabled: ((c = m.value) == null ? void 0 : c.submit.state) !== "allowed",
|
|
4838
4879
|
variant: "primary",
|
|
4839
4880
|
size: "lg",
|
|
4840
4881
|
type: "submit"
|
|
4841
4882
|
}, null, 8, ["label", "disabled"]),
|
|
4842
|
-
s(
|
|
4883
|
+
s(O, {
|
|
4843
4884
|
label: e(o)("menu.common.actions.cancel"),
|
|
4844
4885
|
size: "lg",
|
|
4845
4886
|
variant: "tertiary",
|
|
@@ -4848,17 +4889,17 @@ const bo = {
|
|
|
4848
4889
|
])
|
|
4849
4890
|
];
|
|
4850
4891
|
}),
|
|
4851
|
-
default:
|
|
4892
|
+
default: p(() => [
|
|
4852
4893
|
n("div", _s, [
|
|
4853
4894
|
s(ca, {
|
|
4854
4895
|
view: m.value,
|
|
4855
4896
|
session: e(w),
|
|
4856
4897
|
validation: e(C)
|
|
4857
4898
|
}, {
|
|
4858
|
-
"name-append":
|
|
4899
|
+
"name-append": p(() => {
|
|
4859
4900
|
var c;
|
|
4860
4901
|
return [
|
|
4861
|
-
s(
|
|
4902
|
+
s(O, {
|
|
4862
4903
|
"aria-label": e(o)("menu.common.translation.translation_label"),
|
|
4863
4904
|
icon: "g_translate",
|
|
4864
4905
|
variant: "tertiary",
|
|
@@ -4873,9 +4914,9 @@ const bo = {
|
|
|
4873
4914
|
title: e(o)("menu.order_pacing.product.title"),
|
|
4874
4915
|
"sub-title": e(o)("menu.order_pacing.product.subtitle")
|
|
4875
4916
|
}, {
|
|
4876
|
-
"append-title":
|
|
4917
|
+
"append-title": p(() => [
|
|
4877
4918
|
n("div", hs, [
|
|
4878
|
-
s(
|
|
4919
|
+
s(O, {
|
|
4879
4920
|
"border-color": e(Vl).ColorPrimary,
|
|
4880
4921
|
label: e(o)("menu.order_pacing.link_product.title"),
|
|
4881
4922
|
"prepend-icon": "link",
|
|
@@ -4885,7 +4926,7 @@ const bo = {
|
|
|
4885
4926
|
}, null, 8, ["border-color", "label", "text-color"])
|
|
4886
4927
|
])
|
|
4887
4928
|
]),
|
|
4888
|
-
default:
|
|
4929
|
+
default: p(() => {
|
|
4889
4930
|
var c;
|
|
4890
4931
|
return [
|
|
4891
4932
|
s(Q, {
|
|
@@ -4959,25 +5000,25 @@ const bo = {
|
|
|
4959
5000
|
const G = M("FmButton"), A = M("FmSideSheet");
|
|
4960
5001
|
return r(), T(A, {
|
|
4961
5002
|
"model-value": !0,
|
|
4962
|
-
"is-container": e(
|
|
5003
|
+
"is-container": e(B).FmForm,
|
|
4963
5004
|
"is-container-props": { onValidationSuccess: F },
|
|
4964
5005
|
"max-width": 560,
|
|
4965
5006
|
"z-index": 100,
|
|
4966
5007
|
"dismiss-away": "",
|
|
4967
|
-
"onUpdate:modelValue": E[1] || (E[1] = (
|
|
5008
|
+
"onUpdate:modelValue": E[1] || (E[1] = (v) => v || x("close"))
|
|
4968
5009
|
}, {
|
|
4969
|
-
"side-sheet-header":
|
|
5010
|
+
"side-sheet-header": p(() => [
|
|
4970
5011
|
n("p", xs, I(e(o)("menu.print_dept.add")), 1)
|
|
4971
5012
|
]),
|
|
4972
|
-
"side-sheet-footer":
|
|
4973
|
-
var
|
|
5013
|
+
"side-sheet-footer": p(() => {
|
|
5014
|
+
var v, g;
|
|
4974
5015
|
return [
|
|
4975
5016
|
n("div", Fs, [
|
|
4976
5017
|
s(G, {
|
|
4977
5018
|
label: e(o)("menu.common.actions.add"),
|
|
4978
5019
|
size: "lg",
|
|
4979
5020
|
type: "submit",
|
|
4980
|
-
loading: ((
|
|
5021
|
+
loading: ((v = m.value) == null ? void 0 : v.status) === "submitting",
|
|
4981
5022
|
disabled: ((g = m.value) == null ? void 0 : g.submit.state) !== "allowed"
|
|
4982
5023
|
}, null, 8, ["label", "loading", "disabled"]),
|
|
4983
5024
|
s(G, {
|
|
@@ -4989,14 +5030,14 @@ const bo = {
|
|
|
4989
5030
|
])
|
|
4990
5031
|
];
|
|
4991
5032
|
}),
|
|
4992
|
-
default:
|
|
4993
|
-
var
|
|
5033
|
+
default: p(() => {
|
|
5034
|
+
var v;
|
|
4994
5035
|
return [
|
|
4995
5036
|
n("div", Cs, [
|
|
4996
5037
|
s(ge, Ce({
|
|
4997
5038
|
autofocus: "",
|
|
4998
5039
|
label: e(o)("menu.print_dept.columns.name"),
|
|
4999
|
-
"model-value": ((
|
|
5040
|
+
"model-value": ((v = m.value) == null ? void 0 : v.name) ?? "",
|
|
5000
5041
|
"error-messages": $.value ? [_.value] : []
|
|
5001
5042
|
}, e(l).field("name", e(C).setName)), null, 16, ["label", "model-value", "error-messages"])
|
|
5002
5043
|
])
|
|
@@ -5019,7 +5060,7 @@ const bo = {
|
|
|
5019
5060
|
() => m.value ? l.issue(m.value.fieldIssues, "name") : null
|
|
5020
5061
|
);
|
|
5021
5062
|
ke(() => C.dispose());
|
|
5022
|
-
const _ =
|
|
5063
|
+
const _ = W(!1);
|
|
5023
5064
|
function F() {
|
|
5024
5065
|
var A;
|
|
5025
5066
|
((A = m.value) == null ? void 0 : A.translation.state) === "allowed" && (C.beginTranslationEdit(), _.value = !0);
|
|
@@ -5040,21 +5081,21 @@ const bo = {
|
|
|
5040
5081
|
}
|
|
5041
5082
|
})).kind === "success" && (x("created", A), x("close"));
|
|
5042
5083
|
}
|
|
5043
|
-
return (A,
|
|
5084
|
+
return (A, v) => {
|
|
5044
5085
|
const g = M("FmButton"), f = M("FmSideSheet");
|
|
5045
5086
|
return r(), S(re, null, [
|
|
5046
5087
|
s(f, {
|
|
5047
5088
|
"model-value": !0,
|
|
5048
|
-
"is-container": e(
|
|
5089
|
+
"is-container": e(B).FmForm,
|
|
5049
5090
|
"is-container-props": { onValidationSuccess: G },
|
|
5050
5091
|
"max-width": 560,
|
|
5051
|
-
"onUpdate:modelValue":
|
|
5092
|
+
"onUpdate:modelValue": v[2] || (v[2] = (k) => k || x("close"))
|
|
5052
5093
|
}, {
|
|
5053
|
-
"side-sheet-header":
|
|
5094
|
+
"side-sheet-header": p(() => [
|
|
5054
5095
|
n("p", Vs, I(e(o)("menu.takeaway.add")), 1)
|
|
5055
5096
|
]),
|
|
5056
|
-
"side-sheet-footer":
|
|
5057
|
-
var k,
|
|
5097
|
+
"side-sheet-footer": p(() => {
|
|
5098
|
+
var k, O;
|
|
5058
5099
|
return [
|
|
5059
5100
|
n("div", Ps, [
|
|
5060
5101
|
s(g, {
|
|
@@ -5062,21 +5103,21 @@ const bo = {
|
|
|
5062
5103
|
size: "lg",
|
|
5063
5104
|
type: "submit",
|
|
5064
5105
|
loading: ((k = m.value) == null ? void 0 : k.status) === "submitting",
|
|
5065
|
-
disabled: ((
|
|
5106
|
+
disabled: ((O = m.value) == null ? void 0 : O.submit.state) !== "allowed"
|
|
5066
5107
|
}, null, 8, ["label", "loading", "disabled"]),
|
|
5067
5108
|
s(g, {
|
|
5068
5109
|
label: e(o)("menu.common.actions.cancel"),
|
|
5069
5110
|
size: "lg",
|
|
5070
5111
|
variant: "tertiary",
|
|
5071
|
-
onClick:
|
|
5112
|
+
onClick: v[1] || (v[1] = (Q) => x("close"))
|
|
5072
5113
|
}, null, 8, ["label"])
|
|
5073
5114
|
])
|
|
5074
5115
|
];
|
|
5075
5116
|
}),
|
|
5076
|
-
default:
|
|
5117
|
+
default: p(() => [
|
|
5077
5118
|
s(qe, null, {
|
|
5078
|
-
default:
|
|
5079
|
-
var k,
|
|
5119
|
+
default: p(() => {
|
|
5120
|
+
var k, O;
|
|
5080
5121
|
return [
|
|
5081
5122
|
s(ge, Ce({
|
|
5082
5123
|
autofocus: "",
|
|
@@ -5085,7 +5126,7 @@ const bo = {
|
|
|
5085
5126
|
"model-value": ((k = m.value) == null ? void 0 : k.name) ?? "",
|
|
5086
5127
|
"error-messages": $.value ? [e(d)($.value)] : []
|
|
5087
5128
|
}, e(l).field("name", e(C).setName)), {
|
|
5088
|
-
append:
|
|
5129
|
+
append: p(() => {
|
|
5089
5130
|
var Q;
|
|
5090
5131
|
return [
|
|
5091
5132
|
s(g, {
|
|
@@ -5103,10 +5144,10 @@ const bo = {
|
|
|
5103
5144
|
inputmode: "decimal",
|
|
5104
5145
|
label: e(o)("menu.takeaway.columns.price"),
|
|
5105
5146
|
placeholder: e(o)("menu.takeaway.placeholders.price"),
|
|
5106
|
-
"model-value": ((
|
|
5107
|
-
"onUpdate:modelValue":
|
|
5147
|
+
"model-value": ((O = m.value) == null ? void 0 : O.price) ?? "",
|
|
5148
|
+
"onUpdate:modelValue": v[0] || (v[0] = (Q) => e(C).setPrice(Q))
|
|
5108
5149
|
}, {
|
|
5109
|
-
prepend:
|
|
5150
|
+
prepend: p(() => {
|
|
5110
5151
|
var Q;
|
|
5111
5152
|
return [
|
|
5112
5153
|
n("span", null, I((Q = m.value) == null ? void 0 : Q.currencySymbol), 1)
|
|
@@ -5124,7 +5165,7 @@ const bo = {
|
|
|
5124
5165
|
m.value ? (r(), T(il, {
|
|
5125
5166
|
key: 0,
|
|
5126
5167
|
modelValue: _.value,
|
|
5127
|
-
"onUpdate:modelValue":
|
|
5168
|
+
"onUpdate:modelValue": v[3] || (v[3] = (k) => _.value = k),
|
|
5128
5169
|
dirty: m.value.translationDirty,
|
|
5129
5170
|
name: m.value.name,
|
|
5130
5171
|
"name-locale": m.value.nameLocale,
|
|
@@ -5149,11 +5190,11 @@ const bo = {
|
|
|
5149
5190
|
}, As = ["data-not-allow-sort"], Bs = {
|
|
5150
5191
|
key: 1,
|
|
5151
5192
|
class: "w-24"
|
|
5152
|
-
}, Os = { class: "flex-1" }, Ls = { class: "flex items-center gap-8" },
|
|
5193
|
+
}, Os = { class: "flex-1" }, Ls = { class: "flex items-center gap-8" }, zs = {
|
|
5153
5194
|
key: 0,
|
|
5154
5195
|
role: "alert",
|
|
5155
5196
|
class: "text-fm-color-danger"
|
|
5156
|
-
},
|
|
5197
|
+
}, Ds = { class: "flex gap-8 items-center justify-start" }, Rs = /* @__PURE__ */ ce({
|
|
5157
5198
|
__name: "ProductVariantCreateSheet",
|
|
5158
5199
|
props: {
|
|
5159
5200
|
sdk: {}
|
|
@@ -5178,13 +5219,13 @@ const bo = {
|
|
|
5178
5219
|
function G(ee, a) {
|
|
5179
5220
|
a && typeof a.focus == "function" ? E.set(ee, a) : E.delete(ee);
|
|
5180
5221
|
}
|
|
5181
|
-
const A = ye(null),
|
|
5222
|
+
const A = ye(null), v = ye("variant");
|
|
5182
5223
|
function g() {
|
|
5183
5224
|
var ee;
|
|
5184
5225
|
(ee = A.value) == null || ee.dispose(), A.value = null;
|
|
5185
5226
|
}
|
|
5186
5227
|
function f(ee) {
|
|
5187
|
-
g(),
|
|
5228
|
+
g(), v.value = ee, A.value = P.translationEditor();
|
|
5188
5229
|
}
|
|
5189
5230
|
function k() {
|
|
5190
5231
|
var ee;
|
|
@@ -5206,7 +5247,7 @@ const bo = {
|
|
|
5206
5247
|
}
|
|
5207
5248
|
}).onPrimary(() => x("close"));
|
|
5208
5249
|
}
|
|
5209
|
-
async function
|
|
5250
|
+
async function O() {
|
|
5210
5251
|
var pe, le, ve, b;
|
|
5211
5252
|
const ee = ((pe = l.value) == null ? void 0 : pe.name) ?? "", a = await C(() => $.submit(() => P.submit()), {
|
|
5212
5253
|
showLoading: () => {
|
|
@@ -5221,7 +5262,7 @@ const bo = {
|
|
|
5221
5262
|
const c = ((le = l.value) == null ? void 0 : le.options) ?? [], ne = c.findIndex(
|
|
5222
5263
|
(h, se) => se < c.length - 1 && !h.name.trim()
|
|
5223
5264
|
);
|
|
5224
|
-
a.kind === "rejected" && a.issues.some((h) => h.field === "options") && ((ve = F.value) == null ? void 0 : ve.code) === "menu.variant.form.options.name_required" && ne >= 0 && (await
|
|
5265
|
+
a.kind === "rejected" && a.issues.some((h) => h.field === "options") && ((ve = F.value) == null ? void 0 : ve.code) === "menu.variant.form.options.name_required" && ne >= 0 && (await Je(), (b = E.get(ne)) == null || b.focus());
|
|
5225
5266
|
}
|
|
5226
5267
|
const Q = R(
|
|
5227
5268
|
() => {
|
|
@@ -5240,17 +5281,17 @@ const bo = {
|
|
|
5240
5281
|
s(ne, {
|
|
5241
5282
|
"model-value": !0,
|
|
5242
5283
|
"max-width": 560,
|
|
5243
|
-
"is-container": e(
|
|
5244
|
-
"is-container-props": { onValidationSuccess:
|
|
5284
|
+
"is-container": e(B).FmForm,
|
|
5285
|
+
"is-container-props": { onValidationSuccess: O },
|
|
5245
5286
|
"onOn:clickedAway": k
|
|
5246
5287
|
}, {
|
|
5247
|
-
"side-sheet-header":
|
|
5288
|
+
"side-sheet-header": p(() => [
|
|
5248
5289
|
n("p", Is, I(e(o)("menu.variant.form.title.add")), 1)
|
|
5249
5290
|
]),
|
|
5250
|
-
"side-sheet-footer":
|
|
5291
|
+
"side-sheet-footer": p(() => {
|
|
5251
5292
|
var pe;
|
|
5252
5293
|
return [
|
|
5253
|
-
n("div",
|
|
5294
|
+
n("div", Ds, [
|
|
5254
5295
|
s(c, {
|
|
5255
5296
|
label: e(o)("menu.common.actions.add"),
|
|
5256
5297
|
disabled: ((pe = l.value) == null ? void 0 : pe.submit.state) !== "allowed",
|
|
@@ -5267,12 +5308,12 @@ const bo = {
|
|
|
5267
5308
|
])
|
|
5268
5309
|
];
|
|
5269
5310
|
}),
|
|
5270
|
-
default:
|
|
5311
|
+
default: p(() => [
|
|
5271
5312
|
l.value ? (r(), S("div", Ts, [
|
|
5272
5313
|
s(qe, {
|
|
5273
5314
|
title: e(o)("menu.variant.form.detail")
|
|
5274
5315
|
}, {
|
|
5275
|
-
default:
|
|
5316
|
+
default: p(() => [
|
|
5276
5317
|
s(ge, Ce({
|
|
5277
5318
|
autofocus: "",
|
|
5278
5319
|
"model-value": l.value.name,
|
|
@@ -5281,7 +5322,7 @@ const bo = {
|
|
|
5281
5322
|
"error-messages": _.value ? [e(w)(_.value)] : [],
|
|
5282
5323
|
"helper-text": e(o)("menu.variant.form.name.helper")
|
|
5283
5324
|
}, e($).field("name", e(P).setName)), {
|
|
5284
|
-
append:
|
|
5325
|
+
append: p(() => [
|
|
5285
5326
|
s(c, {
|
|
5286
5327
|
class: "!p-0",
|
|
5287
5328
|
icon: "g_translate",
|
|
@@ -5295,7 +5336,7 @@ const bo = {
|
|
|
5295
5336
|
s(Oe, {
|
|
5296
5337
|
label: e(o)("menu.variant.form.options.title")
|
|
5297
5338
|
}, {
|
|
5298
|
-
default:
|
|
5339
|
+
default: p(() => [
|
|
5299
5340
|
n("div", null, [
|
|
5300
5341
|
s(ml, {
|
|
5301
5342
|
items: Q.value,
|
|
@@ -5303,7 +5344,7 @@ const bo = {
|
|
|
5303
5344
|
"lock-last": "",
|
|
5304
5345
|
onReorder: a[3] || (a[3] = (pe) => e(P).reorderOptions(pe))
|
|
5305
5346
|
}, {
|
|
5306
|
-
item:
|
|
5347
|
+
item: p(({ element: pe, index: le }) => [
|
|
5307
5348
|
n("div", {
|
|
5308
5349
|
class: "flex items-center space-x-8",
|
|
5309
5350
|
"data-not-allow-sort": le === l.value.options.length - 1
|
|
@@ -5330,7 +5371,7 @@ const bo = {
|
|
|
5330
5371
|
}, L(le)), cl({ _: 2 }, [
|
|
5331
5372
|
le !== l.value.options.length - 1 ? {
|
|
5332
5373
|
name: "append",
|
|
5333
|
-
fn:
|
|
5374
|
+
fn: p(() => [
|
|
5334
5375
|
n("div", Ls, [
|
|
5335
5376
|
s(c, {
|
|
5336
5377
|
class: "!p-0",
|
|
@@ -5360,7 +5401,7 @@ const bo = {
|
|
|
5360
5401
|
]),
|
|
5361
5402
|
_: 1
|
|
5362
5403
|
}, 8, ["items"]),
|
|
5363
|
-
F.value ? (r(), S("p",
|
|
5404
|
+
F.value ? (r(), S("p", zs, I(e(w)(F.value)), 1)) : y("", !0)
|
|
5364
5405
|
])
|
|
5365
5406
|
]),
|
|
5366
5407
|
_: 1
|
|
@@ -5375,7 +5416,7 @@ const bo = {
|
|
|
5375
5416
|
A.value ? (r(), T(pa, {
|
|
5376
5417
|
key: 0,
|
|
5377
5418
|
session: A.value,
|
|
5378
|
-
"expanded-section":
|
|
5419
|
+
"expanded-section": v.value,
|
|
5379
5420
|
onClose: g
|
|
5380
5421
|
}, null, 8, ["session", "expanded-section"])) : y("", !0)
|
|
5381
5422
|
], 64);
|
|
@@ -5403,7 +5444,7 @@ const bo = {
|
|
|
5403
5444
|
},
|
|
5404
5445
|
emits: ["created"],
|
|
5405
5446
|
setup(Y, { expose: V, emit: i }) {
|
|
5406
|
-
const x = Y, o = i, d = (A,
|
|
5447
|
+
const x = Y, o = i, d = (A, v) => o("created", { kind: A, name: v }), { t: w } = be(), C = Qe(), { run: P } = Ue(), m = ye(null), l = ll(() => m.value), $ = W(!1), _ = W(!1), F = W(!1), L = W(!1), E = W(!1);
|
|
5407
5448
|
function G(A) {
|
|
5408
5449
|
if (A === "printRoute") {
|
|
5409
5450
|
L.value = !0;
|
|
@@ -5437,22 +5478,22 @@ const bo = {
|
|
|
5437
5478
|
text: w("menu.common.actions.cancel"),
|
|
5438
5479
|
close: !0
|
|
5439
5480
|
}
|
|
5440
|
-
}).onPrimary(async (
|
|
5481
|
+
}).onPrimary(async (v) => {
|
|
5441
5482
|
(await P(
|
|
5442
|
-
() => x.sdk.priceTier.create(String(
|
|
5443
|
-
)).kind === "success" && (d("priceGroup", String(
|
|
5483
|
+
() => x.sdk.priceTier.create(String(v ?? ""))
|
|
5484
|
+
)).kind === "success" && (d("priceGroup", String(v ?? "")), C.close());
|
|
5444
5485
|
});
|
|
5445
5486
|
return;
|
|
5446
5487
|
}
|
|
5447
5488
|
if (A === "category") {
|
|
5448
|
-
const
|
|
5449
|
-
m.value =
|
|
5489
|
+
const v = x.sdk.category.editor();
|
|
5490
|
+
m.value = v;
|
|
5450
5491
|
const g = Al.category;
|
|
5451
5492
|
C.open({
|
|
5452
5493
|
title: w(g.title),
|
|
5453
5494
|
contentComponent: fs,
|
|
5454
5495
|
contentComponentProps: {
|
|
5455
|
-
session:
|
|
5496
|
+
session: v,
|
|
5456
5497
|
label: w(g.label),
|
|
5457
5498
|
validation: l
|
|
5458
5499
|
},
|
|
@@ -5462,22 +5503,22 @@ const bo = {
|
|
|
5462
5503
|
close: !0
|
|
5463
5504
|
}
|
|
5464
5505
|
}).onPrimary(async () => {
|
|
5465
|
-
const f =
|
|
5506
|
+
const f = v.get(), k = f.status === "ready" ? f.value.name : "";
|
|
5466
5507
|
(await P(
|
|
5467
|
-
() => l.submit(() =>
|
|
5508
|
+
() => l.submit(() => v.submit())
|
|
5468
5509
|
)).kind === "success" && (d("category", k), C.close());
|
|
5469
|
-
}).onClose(() =>
|
|
5510
|
+
}).onClose(() => v.dispose());
|
|
5470
5511
|
return;
|
|
5471
5512
|
}
|
|
5472
5513
|
if (A === "subcategory") {
|
|
5473
|
-
const
|
|
5474
|
-
m.value =
|
|
5514
|
+
const v = x.sdk.subCategory.editor();
|
|
5515
|
+
m.value = v;
|
|
5475
5516
|
const g = Al.subcategory;
|
|
5476
5517
|
C.open({
|
|
5477
5518
|
title: w(g.title),
|
|
5478
5519
|
contentComponent: gs,
|
|
5479
5520
|
contentComponentProps: {
|
|
5480
|
-
session:
|
|
5521
|
+
session: v,
|
|
5481
5522
|
label: w(g.label),
|
|
5482
5523
|
validation: l
|
|
5483
5524
|
},
|
|
@@ -5487,45 +5528,45 @@ const bo = {
|
|
|
5487
5528
|
close: !0
|
|
5488
5529
|
}
|
|
5489
5530
|
}).onPrimary(async () => {
|
|
5490
|
-
const f =
|
|
5531
|
+
const f = v.get(), k = f.status === "ready" ? f.value.name : "";
|
|
5491
5532
|
(await P(
|
|
5492
|
-
() => l.submit(() =>
|
|
5533
|
+
() => l.submit(() => v.submit())
|
|
5493
5534
|
)).kind === "success" && (d("subcategory", k), C.close());
|
|
5494
5535
|
});
|
|
5495
5536
|
}
|
|
5496
5537
|
}
|
|
5497
|
-
return V({ open: G }), (A,
|
|
5538
|
+
return V({ open: G }), (A, v) => (r(), S(re, null, [
|
|
5498
5539
|
$.value ? (r(), T(ra, {
|
|
5499
5540
|
key: 0,
|
|
5500
5541
|
presentation: A.presentation,
|
|
5501
5542
|
sdk: A.sdk,
|
|
5502
|
-
onClose:
|
|
5503
|
-
onCreated:
|
|
5543
|
+
onClose: v[0] || (v[0] = (g) => $.value = !1),
|
|
5544
|
+
onCreated: v[1] || (v[1] = (g) => d("group", g))
|
|
5504
5545
|
}, null, 8, ["presentation", "sdk"])) : y("", !0),
|
|
5505
5546
|
_.value ? (r(), T(Rs, {
|
|
5506
5547
|
key: 1,
|
|
5507
5548
|
sdk: A.sdk,
|
|
5508
|
-
onClose:
|
|
5509
|
-
onCreated:
|
|
5549
|
+
onClose: v[2] || (v[2] = (g) => _.value = !1),
|
|
5550
|
+
onCreated: v[3] || (v[3] = (g) => d("variant", g))
|
|
5510
5551
|
}, null, 8, ["sdk"])) : y("", !0),
|
|
5511
5552
|
F.value ? (r(), T(ws, {
|
|
5512
5553
|
key: 2,
|
|
5513
5554
|
"initial-product-ids": A.itemId ? [A.itemId] : [],
|
|
5514
5555
|
sdk: A.sdk,
|
|
5515
|
-
onClose:
|
|
5516
|
-
onCreated:
|
|
5556
|
+
onClose: v[4] || (v[4] = (g) => F.value = !1),
|
|
5557
|
+
onCreated: v[5] || (v[5] = (g) => d("pacing", g))
|
|
5517
5558
|
}, null, 8, ["initial-product-ids", "sdk"])) : y("", !0),
|
|
5518
5559
|
L.value ? (r(), T(Ss, {
|
|
5519
5560
|
key: 3,
|
|
5520
5561
|
sdk: A.sdk,
|
|
5521
|
-
onClose:
|
|
5522
|
-
onCreated:
|
|
5562
|
+
onClose: v[6] || (v[6] = (g) => L.value = !1),
|
|
5563
|
+
onCreated: v[7] || (v[7] = (g) => d("printRoute", g))
|
|
5523
5564
|
}, null, 8, ["sdk"])) : y("", !0),
|
|
5524
5565
|
E.value ? (r(), T(Us, {
|
|
5525
5566
|
key: 4,
|
|
5526
5567
|
sdk: A.sdk,
|
|
5527
|
-
onClose:
|
|
5528
|
-
onCreated:
|
|
5568
|
+
onClose: v[8] || (v[8] = (g) => E.value = !1),
|
|
5569
|
+
onCreated: v[9] || (v[9] = (g) => d("takeaway", g))
|
|
5529
5570
|
}, null, 8, ["sdk"])) : y("", !0)
|
|
5530
5571
|
], 64));
|
|
5531
5572
|
}
|
|
@@ -5533,6 +5574,8 @@ const bo = {
|
|
|
5533
5574
|
export {
|
|
5534
5575
|
Al as I,
|
|
5535
5576
|
ii as _,
|
|
5536
|
-
|
|
5537
|
-
|
|
5577
|
+
Nl as a,
|
|
5578
|
+
ri as b,
|
|
5579
|
+
vo as c,
|
|
5580
|
+
Ml as u
|
|
5538
5581
|
};
|