@feedmepos/mf-menu-portal 1.0.4 → 1.0.5-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-CgYpEYgp.js → App-B2xq1U4S.js} +699 -687
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CPh1GBw9.js} +11 -10
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-CWe5_Sm5.js → BindingTable.vue_vue_type_script_setup_true_lang-DCgMQJE-.js} +50 -46
- package/dist/Catalog-BEI73S_k.js +433 -0
- package/dist/{CatalogBinding-BjTeOA91.js → CatalogBinding-3rhuTWDD.js} +30 -29
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-doB3hsWD.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js} +30 -29
- package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BpBR-N_x.js → CatalogEditor.vue_vue_type_script_setup_true_lang-Dc72SNpI.js} +314 -304
- package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CMyubLvP.js +127 -0
- package/dist/{Category-6-ppsSmZ.js → Category-BVCdkA5K.js} +14 -13
- package/dist/{Category-CdsbuUqi.js → Category-P5DYjIeF.js} +2 -2
- package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-DlNUOgyu.js → CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js} +274 -262
- package/dist/{CookingGuide-CRyRlBeV.js → CookingGuide-Y-c1NLP5.js} +144 -140
- package/dist/{Group-DVrUlq4i.js → Group-D6wA3jCF.js} +2 -2
- package/dist/{Group-DqyBHSFx.js → Group-qqr5SUIc.js} +17 -15
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-DNTVfY2d.js +1996 -0
- package/dist/{Ingredient-CGLfhbvN.js → Ingredient-CJHkJZ0y.js} +94 -93
- package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C0rc1FRO.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js} +1 -1
- package/dist/{MenuSetting-Oct3vbHj.js → MenuSetting-YcEGo51l.js} +462 -446
- package/dist/{OrderPacing-BDkzflgE.js → OrderPacing-DwQU7c0Y.js} +207 -204
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-B259anSs.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-2Cdz70u-.js} +1 -2
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js +44 -0
- package/dist/PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js +12 -0
- package/dist/{Preview-V9cSpevb.js → Preview-DLeXy5V-.js} +2 -2
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-k5S4mGCN.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-D_OV9Z_4.js} +1 -1
- package/dist/{PrintRoute-3UwiMoBU.js → PrintRoute-R38w0-U2.js} +151 -150
- package/dist/{Product-LaB-YRTQ.js → Product-sbMCaVhM.js} +8 -7
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-DoHQeOHy.js +7826 -0
- package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D9v88xZs.js +111 -0
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-BBXGnZtc.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-DsIGLKNS.js} +17 -17
- package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-BUC6qUnG.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CEliG36Z.js} +726 -726
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CjQRRqBx.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js} +127 -124
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-3yzUcogQ.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js} +820 -807
- package/dist/{ProductInternalTools-DWCgC825.js → ProductInternalTools-jE3Ovo4l.js} +3 -3
- package/dist/{ProductInventoryDialog-D0d5RywR.js → ProductInventoryDialog-EDlrXupB.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-CmYKO0ZX.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-LOwSpoiA.js} +1 -1
- package/dist/{ProductList.vue_vue_type_script_setup_true_lang-DeX8Exly.js → ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js} +1135 -1098
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BFD6_Sbb.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-C4iK-sAd.js} +1 -1
- package/dist/{Products-BLUhwFT-.js → Products-DUE10OyS.js} +51 -49
- package/dist/Publish-BlMxKniP.js +1300 -0
- package/dist/{Recipe-BGfofjHT.js → Recipe-BhjPAidT.js} +83 -82
- package/dist/{Scheduler-BL7t8aS7.js → Scheduler-wKG3_D1f.js} +137 -136
- package/dist/{ServingSequence-CDFXMCiN.js → ServingSequence-B26BETQs.js} +63 -61
- package/dist/Setting-DBdNl3WL.js +185 -0
- package/dist/{Subcategory-CnlrVwCy.js → Subcategory-B06yMcuE.js} +147 -144
- package/dist/{Takeaway-D8FzvC2w.js → Takeaway-CFATfy-6.js} +2 -2
- package/dist/{Takeaway-BWVzwWnh.js → Takeaway-DFqOtls7.js} +17 -16
- package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CUHB-g9I.js +616 -0
- package/dist/TextChip.vue_vue_type_script_setup_true_lang-YkUjMTXo.js +32 -0
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B8nXazx6.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoS4Btzj.js} +281 -308
- package/dist/{Unit-Do7Tt8U8.js → Unit-B5wKBmIT.js} +90 -89
- package/dist/{Variant-D1kLupxx.js → Variant-C5ePu0za.js} +167 -174
- package/dist/{_id_-DomaBHrh.js → _id_-HRDqt6oD.js} +3 -3
- package/dist/{app-C_XNYz8_.js → app-CxJjx2ma.js} +39 -39
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +35 -0
- package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +8 -0
- package/dist/apps/mf-menu/src/components/Product/OrderFromChip.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/Product/ProductThumbnail.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +4 -2
- package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +7 -0
- package/dist/apps/mf-menu/src/components/layout/PhoneFab.vue.d.ts +9 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-Did75Kp9.js → menu-compute-CQdeCEBO.js} +19 -19
- package/dist/assets/{validate-menu-DVMOLygB.js → validate-menu-BVo4fNWG.js} +14 -14
- package/dist/mf-menu-portal.css +1 -1
- package/dist/{provide-Bwf3KcOV.js → provide-BGLSDsuJ.js} +99817 -99565
- package/dist/{useActionFeedback-CXx7dOVc.js → useActionFeedback-CElXij1W.js} +1 -1
- package/package.json +1 -1
- package/dist/Catalog-BrHGEI3p.js +0 -374
- package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-P59vHZEn.js +0 -117
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-oGNs8e8f.js +0 -1807
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +0 -41
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +0 -7931
- package/dist/Publish-Dkjnls7p.js +0 -1337
- package/dist/Setting-gYZoZxQG.js +0 -179
- package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-igS-FXq5.js +0 -554
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { a as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { RemyButton as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { u as
|
|
12
|
-
import { b as
|
|
13
|
-
import { u as
|
|
14
|
-
import { a as
|
|
15
|
-
const
|
|
1
|
+
import { defineComponent as ce, computed as O, toDisplayString as V, ref as ue, watch as ze, openBlock as g, createBlock as N, createSlots as je, withCtx as v, renderSlot as Be, createElementBlock as $, createVNode as s, createCommentVNode as E, nextTick as lo, resolveComponent as h, unref as n, createElementVNode as _, Fragment as J, renderList as me, shallowRef as ee, onBeforeUnmount as He, h as d, mergeProps as Ne, defineAsyncComponent as Ye, onUnmounted as to, normalizeClass as ao, withModifiers as Ge } from "vue";
|
|
2
|
+
import { useI18n as de, CustomAttributesForm as Ke } from "@feedmepos/mf-common";
|
|
3
|
+
import { useDialog as Ze, components as T, useBreakpoints as io } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as ro } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js";
|
|
5
|
+
import { _ as re, b as so } from "./TranslationLanguageSelector.vue_vue_type_script_setup_true_lang-BJZ6VcrT.js";
|
|
6
|
+
import { a as qe, _ as Ce } from "./vuedraggable-CBtQLb_S.js";
|
|
7
|
+
import { _ as Ee } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
|
|
8
|
+
import { _ as uo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
import { RemyButton as Re } from "@feedmepos/mf-remy-panel";
|
|
10
|
+
import { _ as mo } from "./AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js";
|
|
11
|
+
import { u as Je } from "./useEditorValidation-Ctef5Bxt.js";
|
|
12
|
+
import { b as Ae, u as De } from "./provide-BGLSDsuJ.js";
|
|
13
|
+
import { u as Qe } from "./useActionFeedback-CElXij1W.js";
|
|
14
|
+
import { a as co, A as po, _ as go } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js";
|
|
15
|
+
const We = /* @__PURE__ */ ce({
|
|
16
16
|
__name: "LocalizedCurrencySymbol",
|
|
17
17
|
props: {
|
|
18
18
|
currency: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const B =
|
|
20
|
+
setup(M) {
|
|
21
|
+
const B = M, { n: x } = de(), F = O(() => {
|
|
22
22
|
if (!B.currency) return "";
|
|
23
|
-
const
|
|
23
|
+
const m = x(0, {
|
|
24
24
|
useGrouping: !1,
|
|
25
25
|
minimumFractionDigits: 0,
|
|
26
26
|
maximumFractionDigits: 0
|
|
27
27
|
});
|
|
28
|
-
return
|
|
28
|
+
return x(0, {
|
|
29
29
|
style: "currency",
|
|
30
30
|
currency: B.currency,
|
|
31
31
|
currencyDisplay: "narrowSymbol",
|
|
32
32
|
useGrouping: !1,
|
|
33
33
|
minimumFractionDigits: 0,
|
|
34
34
|
maximumFractionDigits: 0
|
|
35
|
-
}).replace(
|
|
35
|
+
}).replace(m, "").trim() || B.currency;
|
|
36
36
|
});
|
|
37
|
-
return (
|
|
37
|
+
return (m, o) => V(F.value);
|
|
38
38
|
}
|
|
39
|
-
}),
|
|
39
|
+
}), bo = { key: 0 }, Se = /* @__PURE__ */ ce({
|
|
40
40
|
__name: "ProductMoneyField",
|
|
41
41
|
props: {
|
|
42
42
|
modelValue: {},
|
|
@@ -44,93 +44,93 @@ const Je = /* @__PURE__ */ me({
|
|
|
44
44
|
commitOnInput: { type: Boolean }
|
|
45
45
|
},
|
|
46
46
|
emits: ["update:modelValue"],
|
|
47
|
-
setup(
|
|
48
|
-
const F =
|
|
47
|
+
setup(M, { expose: B, emit: x }) {
|
|
48
|
+
const F = M, m = x, { n: o, locale: D } = de(), I = ue();
|
|
49
49
|
B({
|
|
50
50
|
inputEl: O(() => {
|
|
51
|
-
var
|
|
52
|
-
return ((
|
|
51
|
+
var c;
|
|
52
|
+
return ((c = I.value) == null ? void 0 : c.inputEl) ?? null;
|
|
53
53
|
}),
|
|
54
54
|
focus: () => {
|
|
55
|
-
var
|
|
56
|
-
return (
|
|
55
|
+
var c, t;
|
|
56
|
+
return (t = (c = I.value) == null ? void 0 : c.inputEl) == null ? void 0 : t.focus();
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
function
|
|
60
|
-
return
|
|
59
|
+
function w(c) {
|
|
60
|
+
return c === null ? "" : o(c, {
|
|
61
61
|
minimumFractionDigits: 2,
|
|
62
62
|
maximumFractionDigits: 2,
|
|
63
63
|
useGrouping: !1
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function z(c) {
|
|
67
67
|
var b;
|
|
68
|
-
if (
|
|
69
|
-
const
|
|
68
|
+
if (c.trim() === "") return null;
|
|
69
|
+
const t = ((b = new Intl.NumberFormat(D.value).formatToParts(1.5).find((P) => P.type === "decimal")) == null ? void 0 : b.value) ?? ".", p = Number(c.replace(t, "."));
|
|
70
70
|
return Number.isFinite(p) ? p : void 0;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return
|
|
72
|
+
function H(c, t) {
|
|
73
|
+
return c === null || t === null ? c === t : Math.round(c * 100) === Math.round(t * 100);
|
|
74
74
|
}
|
|
75
|
-
const C = O(() =>
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
|
|
75
|
+
const C = O(() => w(F.modelValue)), u = ue(C.value), Y = ue(!1);
|
|
76
|
+
ze(C, (c) => {
|
|
77
|
+
const t = z(u.value);
|
|
78
|
+
Y.value && t !== void 0 && H(t, F.modelValue) || (u.value = c);
|
|
79
79
|
});
|
|
80
|
-
async function
|
|
81
|
-
var
|
|
82
|
-
const
|
|
83
|
-
|
|
80
|
+
async function r() {
|
|
81
|
+
var t, p;
|
|
82
|
+
const c = z(((p = (t = I.value) == null ? void 0 : t.inputEl) == null ? void 0 : p.value) ?? "");
|
|
83
|
+
c !== void 0 && m("update:modelValue", c), await lo(), u.value = C.value;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
if (
|
|
87
|
-
const
|
|
88
|
-
|
|
85
|
+
function A(c) {
|
|
86
|
+
if (u.value = String(c ?? ""), !F.commitOnInput) return;
|
|
87
|
+
const t = z(u.value);
|
|
88
|
+
t !== void 0 && m("update:modelValue", t);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
var
|
|
92
|
-
|
|
90
|
+
function Z(c) {
|
|
91
|
+
var t, p;
|
|
92
|
+
Y.value = c, c ? (p = (t = I.value) == null ? void 0 : t.inputEl) == null || p.select() : r();
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
|
|
94
|
+
function G(c) {
|
|
95
|
+
c.key === "Enter" && !c.isComposing && r();
|
|
96
96
|
}
|
|
97
|
-
return
|
|
97
|
+
return ze(
|
|
98
98
|
() => {
|
|
99
|
-
var
|
|
100
|
-
return ((
|
|
99
|
+
var c;
|
|
100
|
+
return ((c = I.value) == null ? void 0 : c.inputEl) ?? null;
|
|
101
101
|
},
|
|
102
|
-
(
|
|
103
|
-
|
|
102
|
+
(c, t, p) => {
|
|
103
|
+
c && (c.addEventListener("keydown", G), p(() => c.removeEventListener("keydown", G)));
|
|
104
104
|
},
|
|
105
105
|
{ immediate: !0, flush: "post" }
|
|
106
|
-
), (
|
|
106
|
+
), (c, t) => (g(), N(re, {
|
|
107
107
|
ref_key: "field",
|
|
108
|
-
ref:
|
|
109
|
-
"model-value":
|
|
108
|
+
ref: I,
|
|
109
|
+
"model-value": u.value,
|
|
110
110
|
inputmode: "decimal",
|
|
111
|
-
"onUpdate:modelValue":
|
|
112
|
-
onFocusChanged:
|
|
113
|
-
},
|
|
111
|
+
"onUpdate:modelValue": A,
|
|
112
|
+
onFocusChanged: Z
|
|
113
|
+
}, je({
|
|
114
114
|
prepend: v(() => [
|
|
115
|
-
|
|
116
|
-
s(
|
|
115
|
+
c.currency ? (g(), $("span", bo, [
|
|
116
|
+
s(We, { currency: c.currency }, null, 8, ["currency"])
|
|
117
117
|
])) : E("", !0)
|
|
118
118
|
]),
|
|
119
119
|
append: v(() => [
|
|
120
|
-
|
|
120
|
+
Be(c.$slots, "append")
|
|
121
121
|
]),
|
|
122
122
|
_: 2
|
|
123
123
|
}, [
|
|
124
|
-
|
|
124
|
+
c.$slots["helper-text"] ? {
|
|
125
125
|
name: "helper-text",
|
|
126
126
|
fn: v(() => [
|
|
127
|
-
|
|
127
|
+
Be(c.$slots, "helper-text")
|
|
128
128
|
]),
|
|
129
129
|
key: "0"
|
|
130
130
|
} : void 0
|
|
131
131
|
]), 1032, ["model-value"]));
|
|
132
132
|
}
|
|
133
|
-
}),
|
|
133
|
+
}), Xe = /* @__PURE__ */ ce({
|
|
134
134
|
__name: "ProductPriceTierButton",
|
|
135
135
|
props: {
|
|
136
136
|
configured: { type: Boolean },
|
|
@@ -138,11 +138,11 @@ const Je = /* @__PURE__ */ me({
|
|
|
138
138
|
disabled: { type: Boolean }
|
|
139
139
|
},
|
|
140
140
|
emits: ["open"],
|
|
141
|
-
setup(
|
|
142
|
-
const
|
|
143
|
-
return (
|
|
144
|
-
const D =
|
|
145
|
-
return g(), N(
|
|
141
|
+
setup(M, { emit: B }) {
|
|
142
|
+
const x = B, { t: F } = de();
|
|
143
|
+
return (m, o) => {
|
|
144
|
+
const D = h("FmButton"), I = h("FmTooltip");
|
|
145
|
+
return g(), N(I, {
|
|
146
146
|
content: n(F)("menu.price_tier.price_tier_config"),
|
|
147
147
|
"z-index": 999,
|
|
148
148
|
placement: "top"
|
|
@@ -152,53 +152,53 @@ const Je = /* @__PURE__ */ me({
|
|
|
152
152
|
icon: "price_change",
|
|
153
153
|
variant: "tertiary",
|
|
154
154
|
"text-color": "neutral-gray-400",
|
|
155
|
-
"overwrite-icon-outline":
|
|
156
|
-
"aria-label":
|
|
157
|
-
disabled:
|
|
158
|
-
onClick: o[0] || (o[0] = (
|
|
155
|
+
"overwrite-icon-outline": m.configured ? "filled" : "outline",
|
|
156
|
+
"aria-label": m.label,
|
|
157
|
+
disabled: m.disabled,
|
|
158
|
+
onClick: o[0] || (o[0] = (w) => x("open"))
|
|
159
159
|
}, null, 8, ["overwrite-icon-outline", "aria-label", "disabled"])
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
162
|
}, 8, ["content"]);
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
}),
|
|
165
|
+
}), vo = { class: "flex flex-col gap-8 p-8" }, _o = { class: "fm-typo-en-body-md-600" }, fo = { class: "flex flex-col gap-4" }, yo = { key: 0 }, Ue = /* @__PURE__ */ ce({
|
|
166
166
|
__name: "ProductMemberPriceTooltip",
|
|
167
167
|
props: {
|
|
168
168
|
prices: {},
|
|
169
169
|
currency: {}
|
|
170
170
|
},
|
|
171
|
-
setup(
|
|
172
|
-
const B =
|
|
171
|
+
setup(M) {
|
|
172
|
+
const B = M, { t: x, n: F } = de(), m = O(
|
|
173
173
|
() => Object.entries(B.prices).flatMap(
|
|
174
174
|
([o, D]) => D === null ? [] : [{ name: o, amount: D }]
|
|
175
175
|
)
|
|
176
176
|
);
|
|
177
177
|
return (o, D) => {
|
|
178
|
-
const
|
|
179
|
-
return g(), N(
|
|
178
|
+
const I = h("FmIcon"), w = h("FmTooltip");
|
|
179
|
+
return g(), N(w, {
|
|
180
180
|
variant: "plain",
|
|
181
181
|
placement: "right",
|
|
182
182
|
"z-index": 100
|
|
183
183
|
}, {
|
|
184
184
|
default: v(() => [
|
|
185
|
-
s(
|
|
185
|
+
s(I, {
|
|
186
186
|
name: "info",
|
|
187
187
|
outline: ""
|
|
188
188
|
})
|
|
189
189
|
]),
|
|
190
190
|
content: v(() => [
|
|
191
|
-
_("div",
|
|
192
|
-
_("p",
|
|
193
|
-
_("ul",
|
|
194
|
-
|
|
195
|
-
(g(!0),
|
|
196
|
-
key:
|
|
191
|
+
_("div", vo, [
|
|
192
|
+
_("p", _o, V(n(x)("menu.member_pricing.title")), 1),
|
|
193
|
+
_("ul", fo, [
|
|
194
|
+
m.value.length === 0 ? (g(), $("li", yo, V(n(x)("menu.member_pricing.tooltip.no_member_price")), 1)) : E("", !0),
|
|
195
|
+
(g(!0), $(J, null, me(m.value, (z) => (g(), $("li", {
|
|
196
|
+
key: z.name,
|
|
197
197
|
class: "fm-typo-en-body-md-400"
|
|
198
|
-
},
|
|
199
|
-
label:
|
|
198
|
+
}, V(n(x)("menu.common.labels.a11y_labelled_name", {
|
|
199
|
+
label: z.name,
|
|
200
200
|
name: n(F)(
|
|
201
|
-
|
|
201
|
+
z.amount,
|
|
202
202
|
o.currency ? { style: "currency", currency: o.currency, minimumFractionDigits: 2 } : { minimumFractionDigits: 2 }
|
|
203
203
|
)
|
|
204
204
|
})), 1))), 128))
|
|
@@ -209,16 +209,16 @@ const Je = /* @__PURE__ */ me({
|
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
}),
|
|
212
|
+
}), wo = { class: "fm-typo-en-title-md-600" }, ho = {
|
|
213
213
|
key: 0,
|
|
214
214
|
class: "flex flex-col gap-32"
|
|
215
|
-
},
|
|
215
|
+
}, xo = { class: "flex flex-col fm-corner-radius-lg p-16 border border-fm-color-neutral-gray-100 gap-4" }, ko = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fo = {
|
|
216
216
|
key: 0,
|
|
217
217
|
class: "fm-typo-en-body-lg-600"
|
|
218
|
-
},
|
|
218
|
+
}, Co = { class: "flex flex-col gap-24" }, So = { class: "fm-typo-en-title-sm-600" }, $o = { class: "flex flex-col gap-16" }, Po = { class: "flex flex-col gap-4" }, Oo = { class: "fm-typo-en-body-lg-600" }, Vo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, To = {
|
|
219
219
|
key: 1,
|
|
220
220
|
class: "py-16 space-y-32"
|
|
221
|
-
},
|
|
221
|
+
}, No = { class: "space-y-8" }, Eo = { class: "flex items-center justify-between" }, zo = { class: "space-y-8" }, Io = { class: "fm-typo-en-body-lg-600" }, Lo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bo = { class: "flex gap-8" }, eo = /* @__PURE__ */ ce({
|
|
222
222
|
__name: "ProductPricingSheet",
|
|
223
223
|
props: {
|
|
224
224
|
session: {},
|
|
@@ -227,60 +227,60 @@ const Je = /* @__PURE__ */ me({
|
|
|
227
227
|
mainPricingLabel: { type: Boolean, default: !0 }
|
|
228
228
|
},
|
|
229
229
|
emits: ["close", "suggest"],
|
|
230
|
-
setup(
|
|
231
|
-
const
|
|
232
|
-
() =>
|
|
233
|
-
),
|
|
234
|
-
function
|
|
235
|
-
var
|
|
236
|
-
const b =
|
|
230
|
+
setup(M, { emit: B }) {
|
|
231
|
+
const x = M, F = B, { t: m } = de(), o = Ze(), D = Ae(), I = De(x.session), w = O(
|
|
232
|
+
() => I.value.status === "ready" ? I.value.value : null
|
|
233
|
+
), z = Je(() => x.session);
|
|
234
|
+
function H(t, p) {
|
|
235
|
+
var P;
|
|
236
|
+
const b = z.issue(((P = w.value) == null ? void 0 : P.fieldIssues) ?? {}, `rows.${t}.amount`) ?? p.issue;
|
|
237
237
|
return b ? [D(b)] : [];
|
|
238
238
|
}
|
|
239
|
-
function C(
|
|
239
|
+
function C(t) {
|
|
240
240
|
var b;
|
|
241
|
-
const p =
|
|
242
|
-
((b =
|
|
243
|
-
`rows.0.members.${
|
|
244
|
-
) ??
|
|
241
|
+
const p = z.issue(
|
|
242
|
+
((b = w.value) == null ? void 0 : b.fieldIssues) ?? {},
|
|
243
|
+
`rows.0.members.${t.key}`
|
|
244
|
+
) ?? t.issue;
|
|
245
245
|
return p ? [D(p)] : [];
|
|
246
246
|
}
|
|
247
|
-
const
|
|
248
|
-
function
|
|
249
|
-
var
|
|
250
|
-
(
|
|
247
|
+
const u = ee(null);
|
|
248
|
+
function Y() {
|
|
249
|
+
var t;
|
|
250
|
+
(t = u.value) == null || t.dispose(), u.value = null;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
|
|
252
|
+
function r(t) {
|
|
253
|
+
Y(), u.value = x.session.memberEditor(t);
|
|
254
254
|
}
|
|
255
|
-
|
|
256
|
-
const
|
|
255
|
+
He(Y);
|
|
256
|
+
const A = O(() => [
|
|
257
257
|
{
|
|
258
258
|
accessorKey: "key",
|
|
259
|
-
header: () =>
|
|
259
|
+
header: () => m(
|
|
260
260
|
"menu.product.form.member_price.configure.member_selling_price.table.tier"
|
|
261
261
|
),
|
|
262
262
|
enableSorting: !1
|
|
263
263
|
},
|
|
264
264
|
{
|
|
265
265
|
id: "amount",
|
|
266
|
-
header: () =>
|
|
266
|
+
header: () => m(
|
|
267
267
|
"menu.product.form.member_price.configure.member_selling_price.table.selling_price"
|
|
268
268
|
),
|
|
269
269
|
enableSorting: !1,
|
|
270
|
-
cell: ({ row:
|
|
271
|
-
|
|
270
|
+
cell: ({ row: t }) => d(
|
|
271
|
+
Se,
|
|
272
272
|
{
|
|
273
|
-
modelValue:
|
|
273
|
+
modelValue: t.original.amount,
|
|
274
274
|
commitOnInput: !0,
|
|
275
|
-
"aria-label":
|
|
276
|
-
errorMessages: C(
|
|
277
|
-
...
|
|
278
|
-
`rows.0.members.${
|
|
275
|
+
"aria-label": t.original.key,
|
|
276
|
+
errorMessages: C(t.original),
|
|
277
|
+
...z.field(
|
|
278
|
+
`rows.0.members.${t.original.key}`,
|
|
279
279
|
(p) => {
|
|
280
|
-
var b,
|
|
281
|
-
return
|
|
282
|
-
((
|
|
283
|
-
|
|
280
|
+
var b, P;
|
|
281
|
+
return x.session.setAmount(
|
|
282
|
+
((P = (b = w.value) == null ? void 0 : b.rows[0]) == null ? void 0 : P.tier) ?? null,
|
|
283
|
+
t.original.key,
|
|
284
284
|
p
|
|
285
285
|
);
|
|
286
286
|
}
|
|
@@ -289,61 +289,61 @@ const Je = /* @__PURE__ */ me({
|
|
|
289
289
|
{
|
|
290
290
|
append: () => {
|
|
291
291
|
var p;
|
|
292
|
-
return (p =
|
|
292
|
+
return (p = w.value) != null && p.showSuggestion ? d(Re, {
|
|
293
293
|
pureStyling: !0,
|
|
294
294
|
class: "shrink-0 scale-75",
|
|
295
|
-
"aria-label":
|
|
295
|
+
"aria-label": m("menu.product.remy.pricing"),
|
|
296
296
|
onClick: () => F("suggest")
|
|
297
297
|
}) : null;
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
)
|
|
301
301
|
}
|
|
302
|
-
]),
|
|
302
|
+
]), Z = O(() => [
|
|
303
303
|
{
|
|
304
304
|
accessorKey: "tier",
|
|
305
|
-
header: () =>
|
|
305
|
+
header: () => m("menu.price_tier.form.table.columns.name"),
|
|
306
306
|
enableSorting: !1
|
|
307
307
|
},
|
|
308
308
|
{
|
|
309
309
|
id: "amount",
|
|
310
|
-
header: () =>
|
|
310
|
+
header: () => m("menu.price_tier.form.table.columns.price"),
|
|
311
311
|
enableSorting: !1,
|
|
312
|
-
cell: ({ row:
|
|
313
|
-
modelValue:
|
|
312
|
+
cell: ({ row: t }) => d(Se, {
|
|
313
|
+
modelValue: t.original.amount,
|
|
314
314
|
commitOnInput: !0,
|
|
315
315
|
// Every tier row rendered this field under one name, so a step naming
|
|
316
316
|
// a particular tier's price had nothing to distinguish the rows by.
|
|
317
317
|
// Qualify it with the tier, as the frozen baselines name it
|
|
318
318
|
// ("Default selling price: DISC TIER CLEAR").
|
|
319
|
-
"aria-label":
|
|
320
|
-
label:
|
|
319
|
+
"aria-label": t.original.tier ? m("menu.common.labels.a11y_labelled_name", {
|
|
320
|
+
label: m(
|
|
321
321
|
"menu.product.form.member_price.configure.default_selling_price"
|
|
322
322
|
),
|
|
323
|
-
name:
|
|
324
|
-
}) :
|
|
323
|
+
name: t.original.tier
|
|
324
|
+
}) : m(
|
|
325
325
|
"menu.product.form.member_price.configure.default_selling_price"
|
|
326
326
|
),
|
|
327
|
-
errorMessages:
|
|
328
|
-
...
|
|
329
|
-
`rows.${
|
|
330
|
-
(p) =>
|
|
327
|
+
errorMessages: H(t.index, t.original),
|
|
328
|
+
...z.field(
|
|
329
|
+
`rows.${t.index}.amount`,
|
|
330
|
+
(p) => x.session.setAmount(t.original.tier, null, p)
|
|
331
331
|
)
|
|
332
332
|
})
|
|
333
333
|
},
|
|
334
334
|
{
|
|
335
335
|
id: "members",
|
|
336
|
-
header: () =>
|
|
336
|
+
header: () => m("menu.price_tier.form.table.columns.member_price"),
|
|
337
337
|
enableSorting: !1,
|
|
338
|
-
cell: ({ row:
|
|
339
|
-
var
|
|
340
|
-
const p =
|
|
338
|
+
cell: ({ row: t }) => {
|
|
339
|
+
var P;
|
|
340
|
+
const p = t.original.members.filter(
|
|
341
341
|
(K) => K.amount !== null
|
|
342
|
-
).length, b = p ?
|
|
342
|
+
).length, b = p ? m("menu.product.form.member_price.configure.title_with_tier", {
|
|
343
343
|
num: p
|
|
344
|
-
}) :
|
|
345
|
-
return
|
|
346
|
-
|
|
344
|
+
}) : m("menu.product.form.member_price.configure.title");
|
|
345
|
+
return d("div", { class: "flex items-center justify-between" }, [
|
|
346
|
+
d(
|
|
347
347
|
T.FmButton,
|
|
348
348
|
{
|
|
349
349
|
variant: "plain",
|
|
@@ -352,178 +352,178 @@ const Je = /* @__PURE__ */ me({
|
|
|
352
352
|
// the product form's row-level "Member price" action while
|
|
353
353
|
// qualifying the tier, so both independently reachable surfaces
|
|
354
354
|
// stay semantic.
|
|
355
|
-
"aria-label": p ? b :
|
|
356
|
-
label:
|
|
355
|
+
"aria-label": p ? b : t.original.tier ? m("menu.common.labels.a11y_labelled_name", {
|
|
356
|
+
label: m(
|
|
357
357
|
"menu.product.form.member_price.configure.title"
|
|
358
358
|
),
|
|
359
|
-
name:
|
|
359
|
+
name: t.original.tier
|
|
360
360
|
}) : void 0,
|
|
361
|
-
onClick: () =>
|
|
361
|
+
onClick: () => t.original.tier && r(t.original.tier)
|
|
362
362
|
},
|
|
363
363
|
{
|
|
364
|
-
default: () =>
|
|
364
|
+
default: () => d(
|
|
365
365
|
"span",
|
|
366
366
|
{ class: "underline line-clamp-2 break-all" },
|
|
367
367
|
b
|
|
368
368
|
)
|
|
369
369
|
}
|
|
370
370
|
),
|
|
371
|
-
|
|
371
|
+
d(Ue, {
|
|
372
372
|
prices: Object.fromEntries(
|
|
373
|
-
|
|
373
|
+
t.original.members.map((K) => [K.key, K.amount])
|
|
374
374
|
),
|
|
375
|
-
currency: (
|
|
375
|
+
currency: (P = w.value) == null ? void 0 : P.currency
|
|
376
376
|
})
|
|
377
377
|
]);
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
]);
|
|
381
|
-
function
|
|
381
|
+
function G() {
|
|
382
382
|
var p;
|
|
383
|
-
if (
|
|
383
|
+
if (x.session.apply()) {
|
|
384
384
|
F("close");
|
|
385
385
|
return;
|
|
386
386
|
}
|
|
387
|
-
const
|
|
388
|
-
([b,
|
|
387
|
+
const t = Object.entries(((p = w.value) == null ? void 0 : p.fieldIssues) ?? {}).flatMap(
|
|
388
|
+
([b, P]) => (P ?? []).map((K) => ({ ...K, field: b }))
|
|
389
389
|
);
|
|
390
|
-
|
|
390
|
+
z.submit(async () => ({ kind: "rejected", issues: t }));
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
|
|
392
|
+
function c() {
|
|
393
|
+
x.onCreatePriceGroup && o.open({
|
|
394
394
|
zIndex: 200,
|
|
395
|
-
title:
|
|
396
|
-
contentComponent:
|
|
395
|
+
title: m("menu.price_tier.add_price_group"),
|
|
396
|
+
contentComponent: mo,
|
|
397
397
|
primaryActions: {
|
|
398
|
-
text:
|
|
398
|
+
text: m("menu.category.manager.dialog.add.action"),
|
|
399
399
|
close: !1
|
|
400
400
|
},
|
|
401
401
|
secondaryActions: {
|
|
402
|
-
text:
|
|
402
|
+
text: m("menu.common.actions.cancel"),
|
|
403
403
|
close: !0
|
|
404
404
|
}
|
|
405
|
-
}).onPrimary(async (
|
|
406
|
-
const p = String(
|
|
407
|
-
await
|
|
405
|
+
}).onPrimary(async (t) => {
|
|
406
|
+
const p = String(t ?? "");
|
|
407
|
+
await x.onCreatePriceGroup(p) && (x.session.addTier(p), o.close());
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
|
-
return (
|
|
411
|
-
var
|
|
412
|
-
const b =
|
|
413
|
-
return g(),
|
|
410
|
+
return (t, p) => {
|
|
411
|
+
var pe;
|
|
412
|
+
const b = h("FmTable"), P = h("FmButton"), K = h("FmSideSheet"), R = h("ProductPricingSheet", !0);
|
|
413
|
+
return g(), $(J, null, [
|
|
414
414
|
s(K, {
|
|
415
415
|
"model-value": !0,
|
|
416
|
-
"z-index":
|
|
417
|
-
"max-width": ((
|
|
416
|
+
"z-index": x.zIndex ?? 300,
|
|
417
|
+
"max-width": ((pe = w.value) == null ? void 0 : pe.mode) === "members" ? 720 : 560,
|
|
418
418
|
"is-container": n(T).FmForm,
|
|
419
419
|
"is-container-props": {
|
|
420
|
-
onValidationSuccess:
|
|
420
|
+
onValidationSuccess: G,
|
|
421
421
|
blameFormChildOnValidationFailed: !0
|
|
422
422
|
},
|
|
423
|
-
"onUpdate:modelValue": p[2] || (p[2] = (
|
|
423
|
+
"onUpdate:modelValue": p[2] || (p[2] = (U) => !U && F("close"))
|
|
424
424
|
}, {
|
|
425
425
|
"side-sheet-header": v(() => {
|
|
426
|
-
var
|
|
426
|
+
var U;
|
|
427
427
|
return [
|
|
428
|
-
_("p",
|
|
429
|
-
((
|
|
428
|
+
_("p", wo, V(n(m)(
|
|
429
|
+
((U = w.value) == null ? void 0 : U.mode) === "tiers" ? "menu.price_tier.price_tier_config" : "menu.product.form.member_price.configure.title"
|
|
430
430
|
)), 1)
|
|
431
431
|
];
|
|
432
432
|
}),
|
|
433
433
|
"side-sheet-footer": v(() => {
|
|
434
|
-
var
|
|
434
|
+
var U, Q, L;
|
|
435
435
|
return [
|
|
436
|
-
_("div",
|
|
437
|
-
s(
|
|
438
|
-
label: ((
|
|
439
|
-
"aria-label": ((
|
|
436
|
+
_("div", Bo, [
|
|
437
|
+
s(P, {
|
|
438
|
+
label: ((U = w.value) == null ? void 0 : U.mode) === "tiers" ? n(m)("menu.common.actions.update") : n(m)("menu.common.actions.apply"),
|
|
439
|
+
"aria-label": ((Q = w.value) == null ? void 0 : Q.mode) === "tiers" ? n(m)("menu.price_tier.action.update") : void 0,
|
|
440
440
|
variant: "primary",
|
|
441
441
|
size: "lg",
|
|
442
442
|
type: "button",
|
|
443
|
-
onClick:
|
|
443
|
+
onClick: G
|
|
444
444
|
}, null, 8, ["label", "aria-label"]),
|
|
445
|
-
s(
|
|
446
|
-
label: n(
|
|
447
|
-
"aria-label": ((
|
|
445
|
+
s(P, {
|
|
446
|
+
label: n(m)("menu.common.actions.cancel"),
|
|
447
|
+
"aria-label": ((L = w.value) == null ? void 0 : L.mode) === "tiers" ? n(m)("menu.price_tier.action.cancel") : n(m)("menu.product.form.member_price.configure.cancel"),
|
|
448
448
|
variant: "tertiary",
|
|
449
449
|
size: "lg",
|
|
450
|
-
onClick: p[1] || (p[1] = (
|
|
450
|
+
onClick: p[1] || (p[1] = (q) => F("close"))
|
|
451
451
|
}, null, 8, ["label", "aria-label"])
|
|
452
452
|
])
|
|
453
453
|
];
|
|
454
454
|
}),
|
|
455
455
|
default: v(() => {
|
|
456
|
-
var
|
|
456
|
+
var U, Q;
|
|
457
457
|
return [
|
|
458
|
-
((
|
|
459
|
-
_("div", yo, [
|
|
460
|
-
_("p", wo, P(n(u)("menu.product.form.member_price.configure.current_configuration")), 1),
|
|
461
|
-
h.value.configurationName || i.mainPricingLabel ? (g(), S("p", ho, P(h.value.configurationName ?? n(u)("menu.product.form.member_price.configure.main_pricing")), 1)) : E("", !0)
|
|
462
|
-
]),
|
|
458
|
+
((U = w.value) == null ? void 0 : U.mode) === "members" ? (g(), $("div", ho, [
|
|
463
459
|
_("div", xo, [
|
|
464
|
-
_("p", ko,
|
|
465
|
-
(g(
|
|
460
|
+
_("p", ko, V(n(m)("menu.product.form.member_price.configure.current_configuration")), 1),
|
|
461
|
+
w.value.configurationName || t.mainPricingLabel ? (g(), $("p", Fo, V(w.value.configurationName ?? n(m)("menu.product.form.member_price.configure.main_pricing")), 1)) : E("", !0)
|
|
462
|
+
]),
|
|
463
|
+
_("div", Co, [
|
|
464
|
+
_("p", So, V(n(m)("menu.product.form.member_price.configure.pricing_grid")), 1),
|
|
465
|
+
(g(!0), $(J, null, me(w.value.rows, (L, q) => (g(), N(Se, Ne(
|
|
466
466
|
{
|
|
467
|
-
key:
|
|
467
|
+
key: L.tier ?? "base",
|
|
468
468
|
class: "w-[258px] xs:w-full",
|
|
469
|
-
label: n(
|
|
470
|
-
"model-value":
|
|
469
|
+
label: n(m)("menu.product.form.member_price.configure.default_selling_price"),
|
|
470
|
+
"model-value": L.amount,
|
|
471
471
|
"commit-on-input": "",
|
|
472
|
-
currency:
|
|
473
|
-
"error-messages":
|
|
472
|
+
currency: w.value.currency,
|
|
473
|
+
"error-messages": H(q, L)
|
|
474
474
|
},
|
|
475
475
|
{ ref_for: !0 },
|
|
476
|
-
n(
|
|
477
|
-
`rows.${
|
|
478
|
-
(W) =>
|
|
476
|
+
n(z).field(
|
|
477
|
+
`rows.${q}.amount`,
|
|
478
|
+
(W) => t.session.setAmount(L.tier, null, W)
|
|
479
479
|
)
|
|
480
480
|
), {
|
|
481
481
|
append: v(() => [
|
|
482
|
-
|
|
482
|
+
w.value.showSuggestion ? (g(), N(n(Re), {
|
|
483
483
|
key: 0,
|
|
484
484
|
"pure-styling": "",
|
|
485
485
|
class: "shrink-0 scale-75",
|
|
486
|
-
"aria-label": n(
|
|
486
|
+
"aria-label": n(m)("menu.product.remy.pricing"),
|
|
487
487
|
onClick: p[0] || (p[0] = (W) => F("suggest"))
|
|
488
488
|
}, null, 8, ["aria-label"])) : E("", !0)
|
|
489
489
|
]),
|
|
490
490
|
_: 2
|
|
491
491
|
}, 1040, ["label", "model-value", "currency", "error-messages"]))), 128))
|
|
492
492
|
]),
|
|
493
|
-
_("div",
|
|
494
|
-
_("div",
|
|
495
|
-
_("p",
|
|
493
|
+
_("div", $o, [
|
|
494
|
+
_("div", Po, [
|
|
495
|
+
_("p", Oo, V(n(m)(
|
|
496
496
|
"menu.product.form.member_price.configure.member_selling_price.label"
|
|
497
497
|
)), 1),
|
|
498
|
-
_("p",
|
|
498
|
+
_("p", Vo, V(n(m)(
|
|
499
499
|
"menu.product.form.member_price.configure.member_selling_price.sublabel"
|
|
500
500
|
)), 1)
|
|
501
501
|
]),
|
|
502
502
|
s(b, {
|
|
503
|
-
"column-defs":
|
|
504
|
-
"row-data": [...((
|
|
503
|
+
"column-defs": A.value,
|
|
504
|
+
"row-data": [...((Q = w.value.rows[0]) == null ? void 0 : Q.members) ?? []],
|
|
505
505
|
"hide-footer": ""
|
|
506
506
|
}, null, 8, ["column-defs", "row-data"])
|
|
507
507
|
])
|
|
508
|
-
])) :
|
|
509
|
-
_("div",
|
|
510
|
-
_("div",
|
|
511
|
-
_("div",
|
|
512
|
-
_("p",
|
|
513
|
-
_("p",
|
|
508
|
+
])) : w.value ? (g(), $("div", To, [
|
|
509
|
+
_("div", No, [
|
|
510
|
+
_("div", Eo, [
|
|
511
|
+
_("div", zo, [
|
|
512
|
+
_("p", Io, V(n(m)("menu.price_tier.price_group")), 1),
|
|
513
|
+
_("p", Lo, V(n(m)("menu.price_tier.description")), 1)
|
|
514
514
|
]),
|
|
515
|
-
|
|
515
|
+
x.onCreatePriceGroup ? (g(), N(P, {
|
|
516
516
|
key: 0,
|
|
517
517
|
class: "min-w-fit",
|
|
518
|
-
label: n(
|
|
518
|
+
label: n(m)("menu.price_tier.add_price_group"),
|
|
519
519
|
icon: "add",
|
|
520
520
|
variant: "secondary",
|
|
521
|
-
onClick:
|
|
521
|
+
onClick: c
|
|
522
522
|
}, null, 8, ["label"])) : E("", !0)
|
|
523
523
|
]),
|
|
524
524
|
s(b, {
|
|
525
|
-
"column-defs":
|
|
526
|
-
"row-data": [...
|
|
525
|
+
"column-defs": Z.value,
|
|
526
|
+
"row-data": [...w.value.rows],
|
|
527
527
|
"hide-footer": ""
|
|
528
528
|
}, null, 8, ["column-defs", "row-data"])
|
|
529
529
|
])
|
|
@@ -532,33 +532,33 @@ const Je = /* @__PURE__ */ me({
|
|
|
532
532
|
}),
|
|
533
533
|
_: 1
|
|
534
534
|
}, 8, ["z-index", "max-width", "is-container", "is-container-props"]),
|
|
535
|
-
|
|
535
|
+
u.value ? (g(), N(R, {
|
|
536
536
|
key: 0,
|
|
537
|
-
session:
|
|
538
|
-
"z-index": (
|
|
539
|
-
"main-pricing-label":
|
|
540
|
-
onClose:
|
|
537
|
+
session: u.value,
|
|
538
|
+
"z-index": (x.zIndex ?? 300) + 100,
|
|
539
|
+
"main-pricing-label": t.mainPricingLabel,
|
|
540
|
+
onClose: Y
|
|
541
541
|
}, null, 8, ["session", "z-index", "main-pricing-label"])) : E("", !0)
|
|
542
542
|
], 64);
|
|
543
543
|
};
|
|
544
544
|
}
|
|
545
|
-
}),
|
|
546
|
-
function
|
|
547
|
-
return g(),
|
|
548
|
-
|
|
545
|
+
}), Do = {}, Ao = { class: "flex gap-16" };
|
|
546
|
+
function Uo(M, B) {
|
|
547
|
+
return g(), $("div", Ao, [
|
|
548
|
+
Be(M.$slots, "default")
|
|
549
549
|
]);
|
|
550
550
|
}
|
|
551
|
-
const
|
|
551
|
+
const oo = /* @__PURE__ */ uo(Do, [["render", Uo]]), Mo = {
|
|
552
552
|
key: 0,
|
|
553
553
|
class: "group-list-nested-sheet-marker sr-only",
|
|
554
554
|
"aria-hidden": "true"
|
|
555
|
-
},
|
|
555
|
+
}, Go = { class: "mr-auto fm-typo-en-title-md-600" }, Ko = { class: "space-y-24 pt-16" }, Ro = { class: "rounded-md border border-fm-color-neutral-gray-200 px-16 py-12" }, jo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ho = { class: "fm-typo-en-title-sm-600" }, Yo = { class: "space-y-16" }, Zo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, qo = {
|
|
556
556
|
key: 0,
|
|
557
557
|
class: "nested-group-editor-sheet-marker sr-only"
|
|
558
|
-
},
|
|
558
|
+
}, Jo = { class: "fm-typo-en-title-md-600" }, Qo = { class: "pt-8 space-y-32" }, Wo = { class: "space-y-16" }, Xo = {
|
|
559
559
|
key: 0,
|
|
560
560
|
class: "nested-group-hidden-notice flex gap-8 rounded-md bg-fm-color-system-warning-100 p-12"
|
|
561
|
-
},
|
|
561
|
+
}, en = { class: "space-y-4" }, on = { class: "fm-typo-en-body-md-400 text-fm-color-system-warning-400" }, nn = { class: "fm-typo-en-body-md-400 text-fm-color-system-warning-400" }, ln = { class: "xs:overflow-x-scroll" }, tn = { class: "xs:min-w-[640px]" }, an = { class: "flex gap-8" }, rn = /* @__PURE__ */ ce({
|
|
562
562
|
__name: "NestedGroupOverrideSheets",
|
|
563
563
|
props: {
|
|
564
564
|
sdk: {},
|
|
@@ -566,13 +566,13 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
566
566
|
currencyCode: {}
|
|
567
567
|
},
|
|
568
568
|
emits: ["close"],
|
|
569
|
-
setup(
|
|
570
|
-
const
|
|
571
|
-
() => import("./ProductInventoryDialog-
|
|
572
|
-
), F =
|
|
573
|
-
function
|
|
569
|
+
setup(M, { emit: B }) {
|
|
570
|
+
const x = Ye(
|
|
571
|
+
() => import("./ProductInventoryDialog-EDlrXupB.js")
|
|
572
|
+
), F = M, m = B, { t: o, n: D } = de(), I = Ae(), { run: w } = Qe();
|
|
573
|
+
function z(l) {
|
|
574
574
|
if (!l) return "";
|
|
575
|
-
const
|
|
575
|
+
const i = D(0, {
|
|
576
576
|
useGrouping: !1,
|
|
577
577
|
minimumFractionDigits: 0,
|
|
578
578
|
maximumFractionDigits: 0
|
|
@@ -584,21 +584,21 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
584
584
|
useGrouping: !1,
|
|
585
585
|
minimumFractionDigits: 0,
|
|
586
586
|
maximumFractionDigits: 0
|
|
587
|
-
}).replace(
|
|
587
|
+
}).replace(i, "").trim() || l;
|
|
588
588
|
}
|
|
589
|
-
const
|
|
589
|
+
const H = ee({
|
|
590
590
|
status: "loading"
|
|
591
|
-
}), C =
|
|
591
|
+
}), C = ee(null), u = ee({
|
|
592
592
|
status: "loading"
|
|
593
|
-
}),
|
|
594
|
-
let
|
|
595
|
-
},
|
|
593
|
+
}), Y = O(() => F.session !== null), r = O(() => C.value !== null);
|
|
594
|
+
let A = () => {
|
|
595
|
+
}, Z = () => {
|
|
596
596
|
};
|
|
597
|
-
const
|
|
598
|
-
() =>
|
|
597
|
+
const G = ee(null), c = ee(null), t = ee(""), p = O(
|
|
598
|
+
() => H.value.status === "ready" ? H.value.value : null
|
|
599
599
|
), b = O(
|
|
600
|
-
() =>
|
|
601
|
-
),
|
|
600
|
+
() => u.value.status === "ready" ? u.value.value : null
|
|
601
|
+
), P = O(() => {
|
|
602
602
|
var l;
|
|
603
603
|
return [
|
|
604
604
|
...((l = b.value) == null ? void 0 : l.options) ?? []
|
|
@@ -608,7 +608,7 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
608
608
|
return [
|
|
609
609
|
...((l = p.value) == null ? void 0 : l.groups) ?? []
|
|
610
610
|
];
|
|
611
|
-
}),
|
|
611
|
+
}), R = O(() => [
|
|
612
612
|
{
|
|
613
613
|
accessorKey: "name",
|
|
614
614
|
header: () => o("menu.group.list.columns.name"),
|
|
@@ -619,7 +619,7 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
619
619
|
header: () => o("menu.group.list.columns.products"),
|
|
620
620
|
enableSorting: !1,
|
|
621
621
|
size: 200,
|
|
622
|
-
cell: (l) =>
|
|
622
|
+
cell: (l) => d(
|
|
623
623
|
"div",
|
|
624
624
|
{ class: "line-clamp-2 break-all" },
|
|
625
625
|
l.row.original.products.join(", ")
|
|
@@ -630,8 +630,8 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
630
630
|
header: "",
|
|
631
631
|
size: 52,
|
|
632
632
|
enableSorting: !1,
|
|
633
|
-
cell: (l) =>
|
|
634
|
-
|
|
633
|
+
cell: (l) => d("div", { class: "flex justify-end" }, [
|
|
634
|
+
d(T.FmButton, {
|
|
635
635
|
"aria-label": o("menu.group.a11y.row", {
|
|
636
636
|
label: o("menu.common.actions.edit"),
|
|
637
637
|
index: l.row.index + 1
|
|
@@ -639,26 +639,26 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
639
639
|
prependIcon: "edit",
|
|
640
640
|
textColor: "neutral-gray-400",
|
|
641
641
|
variant: "tertiary",
|
|
642
|
-
onClick: () =>
|
|
642
|
+
onClick: () => fe(l.row.original.id)
|
|
643
643
|
})
|
|
644
644
|
])
|
|
645
645
|
}
|
|
646
646
|
]);
|
|
647
|
-
function
|
|
647
|
+
function pe(l, i) {
|
|
648
648
|
return l === null ? "" : D(l, {
|
|
649
649
|
style: "currency",
|
|
650
|
-
currency:
|
|
650
|
+
currency: i,
|
|
651
651
|
currencyDisplay: "narrowSymbol"
|
|
652
652
|
}).replaceAll(/\s/g, "");
|
|
653
653
|
}
|
|
654
|
-
const
|
|
654
|
+
const U = O(
|
|
655
655
|
() => [
|
|
656
656
|
{
|
|
657
657
|
id: "default",
|
|
658
658
|
size: 35,
|
|
659
659
|
header: () => o("menu.group.option.is_default"),
|
|
660
660
|
enableSorting: !1,
|
|
661
|
-
cell: (l) =>
|
|
661
|
+
cell: (l) => d(T.FmCheckbox, {
|
|
662
662
|
"aria-label": o("menu.group.a11y.row", {
|
|
663
663
|
label: o("menu.group.option.is_default"),
|
|
664
664
|
index: l.row.index + 1
|
|
@@ -666,11 +666,11 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
666
666
|
disabled: l.row.original.orderFrom === "NONE",
|
|
667
667
|
modelValue: l.row.original.isDefault,
|
|
668
668
|
value: l.row.original.id,
|
|
669
|
-
"onUpdate:modelValue": (
|
|
670
|
-
var
|
|
671
|
-
return (
|
|
669
|
+
"onUpdate:modelValue": (i) => {
|
|
670
|
+
var k;
|
|
671
|
+
return (k = C.value) == null ? void 0 : k.setOptionDefault(
|
|
672
672
|
l.row.original.id,
|
|
673
|
-
|
|
673
|
+
i,
|
|
674
674
|
l.row.original.target
|
|
675
675
|
);
|
|
676
676
|
}
|
|
@@ -684,11 +684,11 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
684
684
|
},
|
|
685
685
|
{
|
|
686
686
|
id: "title",
|
|
687
|
-
header: () =>
|
|
688
|
-
|
|
687
|
+
header: () => d("div", { class: "flex items-center w-full gap-8" }, [
|
|
688
|
+
d("span", o("menu.group.option.product_title")),
|
|
689
689
|
// `groupConfig().name` is off for an override, which disables the
|
|
690
690
|
// option translation trigger rather than removing it.
|
|
691
|
-
|
|
691
|
+
d(T.FmButton, {
|
|
692
692
|
disabled: !0,
|
|
693
693
|
icon: "g_translate",
|
|
694
694
|
textColor: "neutral-gray-400",
|
|
@@ -696,9 +696,9 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
696
696
|
})
|
|
697
697
|
]),
|
|
698
698
|
enableSorting: !1,
|
|
699
|
-
cell: (l) =>
|
|
699
|
+
cell: (l) => d(
|
|
700
700
|
"div",
|
|
701
|
-
|
|
701
|
+
d(re, {
|
|
702
702
|
"aria-label": o("menu.group.a11y.row", {
|
|
703
703
|
label: o("menu.group.option.product_title"),
|
|
704
704
|
index: l.row.index + 1
|
|
@@ -713,40 +713,40 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
713
713
|
id: "price",
|
|
714
714
|
size: 400,
|
|
715
715
|
header: () => o("menu.group.option.price", {
|
|
716
|
-
symbol:
|
|
716
|
+
symbol: z(F.currencyCode)
|
|
717
717
|
}),
|
|
718
718
|
enableSorting: !1,
|
|
719
719
|
cell: (l) => {
|
|
720
|
-
const
|
|
721
|
-
return
|
|
722
|
-
|
|
720
|
+
const i = l.row.original;
|
|
721
|
+
return d("div", { class: "flex items-center gap-8" }, [
|
|
722
|
+
d(Se, {
|
|
723
723
|
class: "min-w-[88px]",
|
|
724
724
|
commitOnInput: !0,
|
|
725
|
-
disabled:
|
|
725
|
+
disabled: i.orderFrom === "NONE",
|
|
726
726
|
inputmode: "decimal",
|
|
727
727
|
"aria-label": o("menu.group.a11y.row", {
|
|
728
728
|
label: o("menu.group.option.price", {
|
|
729
|
-
symbol:
|
|
729
|
+
symbol: z(i.currency)
|
|
730
730
|
}),
|
|
731
731
|
index: l.row.index + 1
|
|
732
732
|
}),
|
|
733
|
-
modelValue:
|
|
734
|
-
placeholder:
|
|
735
|
-
|
|
736
|
-
|
|
733
|
+
modelValue: i.priceAmount,
|
|
734
|
+
placeholder: pe(
|
|
735
|
+
i.inheritedPriceAmount,
|
|
736
|
+
i.currency
|
|
737
737
|
),
|
|
738
|
-
"onUpdate:modelValue": (
|
|
739
|
-
var
|
|
740
|
-
return (
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
738
|
+
"onUpdate:modelValue": (k) => {
|
|
739
|
+
var ne;
|
|
740
|
+
return (ne = C.value) == null ? void 0 : ne.setOptionPrice(
|
|
741
|
+
i.id,
|
|
742
|
+
k,
|
|
743
|
+
i.target
|
|
744
744
|
);
|
|
745
745
|
}
|
|
746
746
|
}),
|
|
747
|
-
...
|
|
748
|
-
|
|
749
|
-
|
|
747
|
+
...i.editPricing.state === "hidden" ? [] : [
|
|
748
|
+
d("div", { class: "flex items-center gap-4" }, [
|
|
749
|
+
d(
|
|
750
750
|
T.FmButton,
|
|
751
751
|
{
|
|
752
752
|
variant: "plain",
|
|
@@ -759,23 +759,23 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
759
759
|
),
|
|
760
760
|
index: l.row.index + 1
|
|
761
761
|
}),
|
|
762
|
-
disabled:
|
|
763
|
-
onClick: () =>
|
|
762
|
+
disabled: i.editPricing.state !== "allowed",
|
|
763
|
+
onClick: () => se(i, "members")
|
|
764
764
|
},
|
|
765
765
|
{
|
|
766
|
-
default: () =>
|
|
766
|
+
default: () => d(
|
|
767
767
|
"span",
|
|
768
768
|
{ class: "underline line-clamp-2 break-all" },
|
|
769
|
-
|
|
769
|
+
i.memberPriceCount ? o(
|
|
770
770
|
"menu.product.form.member_price.configure.title_with_tier",
|
|
771
|
-
{ num:
|
|
771
|
+
{ num: i.memberPriceCount }
|
|
772
772
|
) : o(
|
|
773
773
|
"menu.product.form.member_price.configure.title"
|
|
774
774
|
)
|
|
775
775
|
)
|
|
776
776
|
}
|
|
777
777
|
),
|
|
778
|
-
|
|
778
|
+
d(Ue, { prices: i.memberPrices })
|
|
779
779
|
])
|
|
780
780
|
]
|
|
781
781
|
]);
|
|
@@ -786,22 +786,22 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
786
786
|
size: 100,
|
|
787
787
|
header: () => o("menu.common.labels.order_from"),
|
|
788
788
|
enableSorting: !1,
|
|
789
|
-
cell: (l) =>
|
|
789
|
+
cell: (l) => d(T.FmSelect, {
|
|
790
790
|
"aria-label": o("menu.group.a11y.row", {
|
|
791
791
|
label: o("menu.common.labels.order_from"),
|
|
792
792
|
index: l.row.index + 1
|
|
793
793
|
}),
|
|
794
|
-
items:
|
|
794
|
+
items: Q.value,
|
|
795
795
|
// FmSelect teleports its menu below this z-index-200 sheet unless
|
|
796
796
|
// it is pinned one above it (as ProductGroupSheet does).
|
|
797
797
|
menuZIndex: 201,
|
|
798
798
|
modelValue: l.row.original.orderFrom,
|
|
799
799
|
shiftMenu: !0,
|
|
800
|
-
"onUpdate:modelValue": (
|
|
801
|
-
var
|
|
802
|
-
|
|
800
|
+
"onUpdate:modelValue": (i) => {
|
|
801
|
+
var k;
|
|
802
|
+
i && ((k = C.value) == null || k.setOptionOrderFrom(
|
|
803
803
|
l.row.original.id,
|
|
804
|
-
|
|
804
|
+
i,
|
|
805
805
|
l.row.original.target
|
|
806
806
|
));
|
|
807
807
|
}
|
|
@@ -814,34 +814,34 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
814
814
|
enableSorting: !1,
|
|
815
815
|
meta: { cellClass: "" },
|
|
816
816
|
cell: (l) => {
|
|
817
|
-
const
|
|
818
|
-
return
|
|
819
|
-
...
|
|
820
|
-
|
|
821
|
-
configured:
|
|
822
|
-
disabled:
|
|
817
|
+
const i = l.row.original;
|
|
818
|
+
return d("div", { class: "flex items-center justify-end" }, [
|
|
819
|
+
...i.editPricing.state === "hidden" ? [] : [
|
|
820
|
+
d(Xe, {
|
|
821
|
+
configured: i.hasPriceTiers,
|
|
822
|
+
disabled: i.editPricing.state !== "allowed",
|
|
823
823
|
label: o("menu.group.a11y.row", {
|
|
824
824
|
label: o("menu.price_tier.price_tier_config"),
|
|
825
825
|
index: l.row.index + 1
|
|
826
826
|
}),
|
|
827
|
-
onOpen: () =>
|
|
827
|
+
onOpen: () => se(i, "tiers")
|
|
828
828
|
})
|
|
829
829
|
],
|
|
830
|
-
|
|
830
|
+
d(T.FmButton, {
|
|
831
831
|
"aria-label": o("menu.group.a11y.row", {
|
|
832
832
|
label: o("menu.inventory.title"),
|
|
833
833
|
index: l.row.index + 1
|
|
834
834
|
}),
|
|
835
|
-
disabled:
|
|
835
|
+
disabled: i.orderFrom === "NONE",
|
|
836
836
|
icon: "inventory_2",
|
|
837
|
-
overwriteIconOutline:
|
|
837
|
+
overwriteIconOutline: i.inventory.bindings.length ? "filled" : "outline",
|
|
838
838
|
textColor: "neutral-gray-400",
|
|
839
839
|
variant: "tertiary",
|
|
840
|
-
onClick: () =>
|
|
840
|
+
onClick: () => ve(i)
|
|
841
841
|
}),
|
|
842
842
|
// A deeper nesting level is outside the approved nested-override
|
|
843
843
|
// scope, so the trigger stays in legacy's disabled state.
|
|
844
|
-
|
|
844
|
+
d(T.FmButton, {
|
|
845
845
|
"aria-label": o("menu.group.a11y.row", {
|
|
846
846
|
label: o("menu.group.nested.title"),
|
|
847
847
|
index: l.row.index + 1
|
|
@@ -855,125 +855,125 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
857
|
]
|
|
858
|
-
),
|
|
858
|
+
), Q = O(() => [
|
|
859
859
|
{ label: o("menu.order.from.options.all"), value: "ALL" },
|
|
860
860
|
{ label: o("menu.order.from.options.pos_only"), value: "POS_ONLY" },
|
|
861
861
|
{ label: o("menu.order.from.options.none"), value: "NONE" }
|
|
862
862
|
]);
|
|
863
|
-
function
|
|
863
|
+
function L() {
|
|
864
864
|
var l;
|
|
865
|
-
(l =
|
|
865
|
+
(l = G.value) == null || l.dispose(), G.value = null;
|
|
866
866
|
}
|
|
867
|
-
async function
|
|
868
|
-
return (await
|
|
867
|
+
async function q(l) {
|
|
868
|
+
return (await w(() => F.sdk.priceTier.create(l), {
|
|
869
869
|
successMessage: o("menu.price_tier.add_price_group_success")
|
|
870
870
|
})).kind === "success";
|
|
871
871
|
}
|
|
872
872
|
function W() {
|
|
873
873
|
var l;
|
|
874
|
-
(l =
|
|
874
|
+
(l = c.value) == null || l.dispose(), c.value = null, t.value = "";
|
|
875
875
|
}
|
|
876
|
-
function
|
|
877
|
-
var
|
|
878
|
-
|
|
876
|
+
function se(l, i) {
|
|
877
|
+
var k;
|
|
878
|
+
L(), G.value = ((k = C.value) == null ? void 0 : k.pricingEditor(
|
|
879
879
|
l.id,
|
|
880
|
-
|
|
880
|
+
i,
|
|
881
881
|
l.target
|
|
882
882
|
)) ?? null;
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
var
|
|
886
|
-
W(),
|
|
884
|
+
function ve(l) {
|
|
885
|
+
var i;
|
|
886
|
+
W(), t.value = l.name, c.value = ((i = C.value) == null ? void 0 : i.inventoryEditor(l.id, l.target)) ?? null;
|
|
887
887
|
}
|
|
888
|
-
function
|
|
889
|
-
var l,
|
|
890
|
-
|
|
891
|
-
}, (l = C.value) == null || l.discard(), (
|
|
888
|
+
function oe() {
|
|
889
|
+
var l, i;
|
|
890
|
+
L(), W(), Z(), Z = () => {
|
|
891
|
+
}, (l = C.value) == null || l.discard(), (i = C.value) == null || i.dispose(), C.value = null;
|
|
892
892
|
}
|
|
893
|
-
function
|
|
894
|
-
|
|
893
|
+
function _e() {
|
|
894
|
+
oe(), m("close");
|
|
895
895
|
}
|
|
896
|
-
function
|
|
897
|
-
var
|
|
898
|
-
|
|
899
|
-
const
|
|
900
|
-
|
|
901
|
-
(
|
|
896
|
+
function fe(l) {
|
|
897
|
+
var k;
|
|
898
|
+
oe();
|
|
899
|
+
const i = (k = F.session) == null ? void 0 : k.editor(l);
|
|
900
|
+
i && (C.value = i, u.value = i.get(), Z = i.subscribe(
|
|
901
|
+
(ne) => u.value = ne
|
|
902
902
|
));
|
|
903
903
|
}
|
|
904
904
|
function Ie() {
|
|
905
|
-
var
|
|
906
|
-
const l = (
|
|
907
|
-
(l == null ? void 0 : l.kind) === "success" &&
|
|
905
|
+
var i;
|
|
906
|
+
const l = (i = C.value) == null ? void 0 : i.submit();
|
|
907
|
+
(l == null ? void 0 : l.kind) === "success" && ye();
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function ye() {
|
|
910
910
|
var l;
|
|
911
|
-
|
|
911
|
+
Z(), Z = () => {
|
|
912
912
|
}, (l = C.value) == null || l.dispose(), C.value = null;
|
|
913
913
|
}
|
|
914
|
-
return
|
|
914
|
+
return ze(
|
|
915
915
|
() => F.session,
|
|
916
916
|
(l) => {
|
|
917
|
-
|
|
918
|
-
}, l && (
|
|
919
|
-
(
|
|
917
|
+
oe(), A(), A = () => {
|
|
918
|
+
}, l && (H.value = l.get(), A = l.subscribe(
|
|
919
|
+
(i) => H.value = i
|
|
920
920
|
));
|
|
921
921
|
},
|
|
922
922
|
{ immediate: !0 }
|
|
923
|
-
),
|
|
924
|
-
|
|
925
|
-
}), (l,
|
|
926
|
-
const
|
|
927
|
-
return g(),
|
|
928
|
-
|
|
923
|
+
), to(() => {
|
|
924
|
+
oe(), A();
|
|
925
|
+
}), (l, i) => {
|
|
926
|
+
const k = h("FmButton"), ne = h("FmTable"), we = h("FmSideSheet"), he = h("FmStepperField"), $e = h("FmSwitch"), Le = h("FmIcon"), e = h("FmFormGroup"), a = h("FmHelperText");
|
|
927
|
+
return g(), $(J, null, [
|
|
928
|
+
G.value ? (g(), N(eo, {
|
|
929
929
|
key: 0,
|
|
930
|
-
session:
|
|
931
|
-
"on-create-price-group":
|
|
932
|
-
onClose:
|
|
930
|
+
session: G.value,
|
|
931
|
+
"on-create-price-group": q,
|
|
932
|
+
onClose: L
|
|
933
933
|
}, null, 8, ["session"])) : E("", !0),
|
|
934
|
-
|
|
934
|
+
c.value ? (g(), N(n(x), {
|
|
935
935
|
key: 1,
|
|
936
|
-
"product-name":
|
|
937
|
-
session:
|
|
936
|
+
"product-name": t.value,
|
|
937
|
+
session: c.value,
|
|
938
938
|
onClose: W
|
|
939
939
|
}, null, 8, ["product-name", "session"])) : E("", !0),
|
|
940
|
-
s(
|
|
941
|
-
"model-value":
|
|
940
|
+
s(we, {
|
|
941
|
+
"model-value": Y.value,
|
|
942
942
|
"close-button": !1,
|
|
943
943
|
"max-width": 800,
|
|
944
944
|
"z-index": 100,
|
|
945
|
-
"dismiss-away": !
|
|
946
|
-
"onUpdate:modelValue":
|
|
945
|
+
"dismiss-away": !r.value,
|
|
946
|
+
"onUpdate:modelValue": i[0] || (i[0] = (S) => !S && _e())
|
|
947
947
|
}, {
|
|
948
948
|
"side-sheet-header": v(() => [
|
|
949
|
-
s(
|
|
949
|
+
s(k, {
|
|
950
950
|
"aria-label": n(o)("menu.common.actions.back"),
|
|
951
951
|
icon: "arrow_back",
|
|
952
952
|
variant: "tertiary",
|
|
953
|
-
onClick:
|
|
953
|
+
onClick: _e
|
|
954
954
|
}, null, 8, ["aria-label"]),
|
|
955
|
-
|
|
956
|
-
_("p",
|
|
955
|
+
Y.value ? (g(), $("span", Mo)) : E("", !0),
|
|
956
|
+
_("p", Go, V(n(o)("menu.group.nested.title")), 1)
|
|
957
957
|
]),
|
|
958
958
|
"side-sheet-footer": v(() => [
|
|
959
|
-
s(
|
|
959
|
+
s(k, {
|
|
960
960
|
label: n(o)("menu.common.actions.ok"),
|
|
961
961
|
size: "lg",
|
|
962
|
-
onClick:
|
|
962
|
+
onClick: _e
|
|
963
963
|
}, null, 8, ["label"])
|
|
964
964
|
]),
|
|
965
965
|
default: v(() => {
|
|
966
|
-
var
|
|
966
|
+
var S;
|
|
967
967
|
return [
|
|
968
|
-
_("div",
|
|
969
|
-
_("div", Mo, [
|
|
970
|
-
_("p", Go, P(n(o)("menu.group.nested.currently_configuring")), 1),
|
|
971
|
-
_("p", Ko, P((H = p.value) == null ? void 0 : H.optionName), 1)
|
|
972
|
-
]),
|
|
968
|
+
_("div", Ko, [
|
|
973
969
|
_("div", Ro, [
|
|
974
|
-
_("p", jo,
|
|
975
|
-
|
|
976
|
-
|
|
970
|
+
_("p", jo, V(n(o)("menu.group.nested.currently_configuring")), 1),
|
|
971
|
+
_("p", Ho, V((S = p.value) == null ? void 0 : S.optionName), 1)
|
|
972
|
+
]),
|
|
973
|
+
_("div", Yo, [
|
|
974
|
+
_("p", Zo, V(n(o)("menu.group.nested.subtitle")), 1),
|
|
975
|
+
s(ne, {
|
|
976
|
+
"column-defs": R.value,
|
|
977
977
|
"page-size": K.value.length,
|
|
978
978
|
"row-data": K.value,
|
|
979
979
|
"shrink-at": !1,
|
|
@@ -986,46 +986,46 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
986
986
|
}),
|
|
987
987
|
_: 1
|
|
988
988
|
}, 8, ["model-value", "dismiss-away"]),
|
|
989
|
-
s(
|
|
990
|
-
"model-value":
|
|
989
|
+
s(we, {
|
|
990
|
+
"model-value": r.value,
|
|
991
991
|
"max-width": 800,
|
|
992
992
|
"z-index": 200,
|
|
993
|
-
"onUpdate:modelValue":
|
|
993
|
+
"onUpdate:modelValue": i[4] || (i[4] = (S) => !S && oe())
|
|
994
994
|
}, {
|
|
995
995
|
"side-sheet-header": v(() => [
|
|
996
|
-
|
|
997
|
-
_("p",
|
|
996
|
+
r.value ? (g(), $("span", qo, V(n(o)("menu.common.labels.nested_group_override")), 1)) : E("", !0),
|
|
997
|
+
_("p", Jo, V(n(o)("menu.group.update")), 1)
|
|
998
998
|
]),
|
|
999
999
|
"side-sheet-footer": v(() => [
|
|
1000
|
-
_("div",
|
|
1001
|
-
s(
|
|
1000
|
+
_("div", an, [
|
|
1001
|
+
s(k, {
|
|
1002
1002
|
label: n(o)("menu.common.actions.update"),
|
|
1003
1003
|
size: "lg",
|
|
1004
|
-
onClick:
|
|
1004
|
+
onClick: Ge(Ie, ["stop"])
|
|
1005
1005
|
}, null, 8, ["label"]),
|
|
1006
|
-
s(
|
|
1006
|
+
s(k, {
|
|
1007
1007
|
label: n(o)("menu.common.actions.cancel"),
|
|
1008
1008
|
size: "lg",
|
|
1009
1009
|
variant: "tertiary",
|
|
1010
|
-
onClick:
|
|
1010
|
+
onClick: Ge(oe, ["stop"])
|
|
1011
1011
|
}, null, 8, ["label"])
|
|
1012
1012
|
])
|
|
1013
1013
|
]),
|
|
1014
1014
|
default: v(() => {
|
|
1015
|
-
var
|
|
1015
|
+
var S, X, xe, ke, Pe;
|
|
1016
1016
|
return [
|
|
1017
|
-
_("div",
|
|
1018
|
-
s(
|
|
1017
|
+
_("div", Qo, [
|
|
1018
|
+
s(qe, null, {
|
|
1019
1019
|
default: v(() => {
|
|
1020
|
-
var
|
|
1020
|
+
var le;
|
|
1021
1021
|
return [
|
|
1022
|
-
s(
|
|
1022
|
+
s(re, {
|
|
1023
1023
|
disabled: "",
|
|
1024
1024
|
label: n(o)("menu.common.labels.group_name"),
|
|
1025
|
-
placeholder: ((
|
|
1025
|
+
placeholder: ((le = b.value) == null ? void 0 : le.groupName) ?? ""
|
|
1026
1026
|
}, {
|
|
1027
1027
|
append: v(() => [
|
|
1028
|
-
s(
|
|
1028
|
+
s(k, {
|
|
1029
1029
|
disabled: "",
|
|
1030
1030
|
icon: "g_translate",
|
|
1031
1031
|
variant: "tertiary"
|
|
@@ -1033,61 +1033,61 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1033
1033
|
]),
|
|
1034
1034
|
_: 1
|
|
1035
1035
|
}, 8, ["label", "placeholder"]),
|
|
1036
|
-
s(
|
|
1036
|
+
s(oo, null, {
|
|
1037
1037
|
default: v(() => {
|
|
1038
|
-
var
|
|
1038
|
+
var te, ge, ae, Oe, Ve, Fe;
|
|
1039
1039
|
return [
|
|
1040
|
-
s(
|
|
1040
|
+
s(he, {
|
|
1041
1041
|
class: "flex-1",
|
|
1042
|
-
disabled: ((
|
|
1043
|
-
"helper-text": ((
|
|
1042
|
+
disabled: ((te = b.value) == null ? void 0 : te.bounds.state) !== "allowed",
|
|
1043
|
+
"helper-text": ((ge = b.value) == null ? void 0 : ge.bounds.state) === "disabled" ? n(I)(b.value.bounds.reason) : void 0,
|
|
1044
1044
|
label: n(o)("menu.common.labels.min_select"),
|
|
1045
1045
|
min: 0,
|
|
1046
|
-
"model-value": ((
|
|
1047
|
-
"onUpdate:modelValue":
|
|
1048
|
-
var
|
|
1049
|
-
return (
|
|
1046
|
+
"model-value": ((ae = b.value) == null ? void 0 : ae.min) ?? 0,
|
|
1047
|
+
"onUpdate:modelValue": i[1] || (i[1] = (be) => {
|
|
1048
|
+
var ie;
|
|
1049
|
+
return (ie = C.value) == null ? void 0 : ie.setMin(be);
|
|
1050
1050
|
})
|
|
1051
1051
|
}, null, 8, ["disabled", "helper-text", "label", "model-value"]),
|
|
1052
|
-
s(
|
|
1052
|
+
s(he, {
|
|
1053
1053
|
class: "flex-1",
|
|
1054
|
-
disabled: ((
|
|
1054
|
+
disabled: ((Oe = b.value) == null ? void 0 : Oe.bounds.state) !== "allowed",
|
|
1055
1055
|
label: n(o)("menu.common.labels.max_select"),
|
|
1056
|
-
min: ((
|
|
1057
|
-
"model-value": ((
|
|
1058
|
-
"onUpdate:modelValue":
|
|
1059
|
-
var
|
|
1060
|
-
return (
|
|
1056
|
+
min: ((Ve = b.value) == null ? void 0 : Ve.min) ?? 0,
|
|
1057
|
+
"model-value": ((Fe = b.value) == null ? void 0 : Fe.max) ?? 0,
|
|
1058
|
+
"onUpdate:modelValue": i[2] || (i[2] = (be) => {
|
|
1059
|
+
var ie;
|
|
1060
|
+
return (ie = C.value) == null ? void 0 : ie.setMax(be);
|
|
1061
1061
|
})
|
|
1062
1062
|
}, null, 8, ["disabled", "label", "min", "model-value"])
|
|
1063
1063
|
];
|
|
1064
1064
|
}),
|
|
1065
1065
|
_: 1
|
|
1066
1066
|
}),
|
|
1067
|
-
s(
|
|
1067
|
+
s(Ee, {
|
|
1068
1068
|
label: n(o)("menu.common.labels.configuration")
|
|
1069
1069
|
}, {
|
|
1070
1070
|
default: v(() => {
|
|
1071
|
-
var
|
|
1071
|
+
var te;
|
|
1072
1072
|
return [
|
|
1073
|
-
_("div",
|
|
1074
|
-
s(e, {
|
|
1073
|
+
_("div", Wo, [
|
|
1074
|
+
s($e, {
|
|
1075
1075
|
disabled: "",
|
|
1076
1076
|
label: n(o)("menu.common.labels.stackable"),
|
|
1077
|
-
"model-value": ((
|
|
1077
|
+
"model-value": ((te = b.value) == null ? void 0 : te.stackable) ?? !1,
|
|
1078
1078
|
sublabel: n(o)("menu.common.labels.stackable_sublabel"),
|
|
1079
1079
|
"label-placement": "right"
|
|
1080
1080
|
}, null, 8, ["label", "model-value", "sublabel"]),
|
|
1081
|
-
b.value && b.value.hide.state !== "hidden" ? (g(), N(e, {
|
|
1081
|
+
b.value && b.value.hide.state !== "hidden" ? (g(), N($e, {
|
|
1082
1082
|
key: 0,
|
|
1083
1083
|
disabled: b.value.hide.state !== "allowed",
|
|
1084
1084
|
label: n(o)("menu.common.labels.hide_group"),
|
|
1085
1085
|
"model-value": b.value.hidden,
|
|
1086
1086
|
sublabel: n(o)("menu.common.labels.hide_group_sublabel_product"),
|
|
1087
1087
|
"label-placement": "right",
|
|
1088
|
-
"onUpdate:modelValue":
|
|
1089
|
-
var
|
|
1090
|
-
return (
|
|
1088
|
+
"onUpdate:modelValue": i[3] || (i[3] = (ge) => {
|
|
1089
|
+
var ae;
|
|
1090
|
+
return (ae = C.value) == null ? void 0 : ae.setHidden(!!ge);
|
|
1091
1091
|
})
|
|
1092
1092
|
}, null, 8, ["disabled", "label", "model-value", "sublabel"])) : E("", !0)
|
|
1093
1093
|
])
|
|
@@ -1099,43 +1099,43 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1099
1099
|
}),
|
|
1100
1100
|
_: 1
|
|
1101
1101
|
}),
|
|
1102
|
-
(
|
|
1103
|
-
s(
|
|
1102
|
+
(S = b.value) != null && S.hidden ? (g(), $("div", Xo, [
|
|
1103
|
+
s(Le, {
|
|
1104
1104
|
class: "shrink-0",
|
|
1105
1105
|
color: "system-warning-400",
|
|
1106
1106
|
name: "visibility_off",
|
|
1107
1107
|
outline: "",
|
|
1108
1108
|
size: "sm"
|
|
1109
1109
|
}),
|
|
1110
|
-
_("div",
|
|
1111
|
-
_("p",
|
|
1112
|
-
_("p",
|
|
1110
|
+
_("div", en, [
|
|
1111
|
+
_("p", on, V(n(o)("menu.common.labels.hide_group_notice")), 1),
|
|
1112
|
+
_("p", nn, V(n(o)("menu.common.labels.hide_group_notice_reset")), 1)
|
|
1113
1113
|
])
|
|
1114
1114
|
])) : E("", !0),
|
|
1115
|
-
s(
|
|
1116
|
-
class:
|
|
1115
|
+
s(e, {
|
|
1116
|
+
class: ao([
|
|
1117
1117
|
"!gap-16",
|
|
1118
|
-
(
|
|
1118
|
+
(X = b.value) != null && X.hidden ? "opacity-50 pointer-events-none" : ""
|
|
1119
1119
|
]),
|
|
1120
|
-
inert: ((
|
|
1120
|
+
inert: ((xe = b.value) == null ? void 0 : xe.hidden) || void 0,
|
|
1121
1121
|
tag: "div",
|
|
1122
1122
|
"helper-text": n(o)("menu.common.validation.default_items_tip", {
|
|
1123
|
-
count:
|
|
1124
|
-
max: ((
|
|
1123
|
+
count: P.value.filter((le) => le.isDefault).length,
|
|
1124
|
+
max: ((ke = b.value) == null ? void 0 : ke.max) ?? 0
|
|
1125
1125
|
}),
|
|
1126
|
-
"model-value":
|
|
1126
|
+
"model-value": P.value
|
|
1127
1127
|
}, {
|
|
1128
1128
|
default: v(() => [
|
|
1129
|
-
s(
|
|
1129
|
+
s(Ce, {
|
|
1130
1130
|
title: n(o)("menu.group.option.title")
|
|
1131
1131
|
}, {
|
|
1132
1132
|
default: v(() => [
|
|
1133
|
-
_("div",
|
|
1134
|
-
_("div",
|
|
1135
|
-
s(
|
|
1136
|
-
"column-defs":
|
|
1137
|
-
"page-size": Math.max(
|
|
1138
|
-
"row-data":
|
|
1133
|
+
_("div", ln, [
|
|
1134
|
+
_("div", tn, [
|
|
1135
|
+
s(ne, {
|
|
1136
|
+
"column-defs": U.value,
|
|
1137
|
+
"page-size": Math.max(P.value.length, 1),
|
|
1138
|
+
"row-data": P.value,
|
|
1139
1139
|
"shrink-at": !1,
|
|
1140
1140
|
"hide-footer": ""
|
|
1141
1141
|
}, null, 8, ["column-defs", "page-size", "row-data"])
|
|
@@ -1147,10 +1147,10 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1147
1147
|
]),
|
|
1148
1148
|
_: 1
|
|
1149
1149
|
}, 8, ["class", "inert", "helper-text", "model-value"]),
|
|
1150
|
-
(g(!0),
|
|
1151
|
-
key: `${
|
|
1150
|
+
(g(!0), $(J, null, me(((Pe = b.value) == null ? void 0 : Pe.issues) ?? [], (le, te) => (g(), N(a, {
|
|
1151
|
+
key: `${le.code}-${te}`,
|
|
1152
1152
|
state: "error",
|
|
1153
|
-
text: n(
|
|
1153
|
+
text: n(I)(le)
|
|
1154
1154
|
}, null, 8, ["text"]))), 128))
|
|
1155
1155
|
])
|
|
1156
1156
|
];
|
|
@@ -1160,67 +1160,67 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1160
1160
|
], 64);
|
|
1161
1161
|
};
|
|
1162
1162
|
}
|
|
1163
|
-
}),
|
|
1163
|
+
}), sn = { class: "fm-typo-en-title-md-600" }, un = {
|
|
1164
1164
|
key: 0,
|
|
1165
1165
|
class: "pt-8 space-y-32"
|
|
1166
|
-
},
|
|
1166
|
+
}, mn = { class: "xs:overflow-x-scroll" }, cn = { class: "xs:min-w-[640px]" }, dn = { class: "flex gap-8 items-center justify-start" }, pn = { class: "fm-typo-en-title-md-600" }, gn = { class: "pt-8 space-y-24" }, bn = { class: "flex gap-8 flex-wrap" }, vn = { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, _n = { class: "flex gap-8" }, Nn = /* @__PURE__ */ ce({
|
|
1167
1167
|
__name: "ProductGroupCreateSheet",
|
|
1168
1168
|
props: {
|
|
1169
1169
|
sdk: {},
|
|
1170
1170
|
presentation: {}
|
|
1171
1171
|
},
|
|
1172
1172
|
emits: ["close", "created"],
|
|
1173
|
-
setup(
|
|
1174
|
-
const
|
|
1175
|
-
() => import("./ProductInventoryDialog-
|
|
1176
|
-
), F =
|
|
1173
|
+
setup(M, { emit: B }) {
|
|
1174
|
+
const x = Ye(
|
|
1175
|
+
() => import("./ProductInventoryDialog-EDlrXupB.js")
|
|
1176
|
+
), F = M, m = B, { t: o } = de(), { breakpoints: D } = io(), I = O(() => D.value.xs), w = h("i18n-t"), z = Ae(), { run: H } = Qe(), C = Ze(), u = F.sdk.group.creationEditor(
|
|
1177
1177
|
F.presentation === "tree" ? { surface: "editor" } : void 0
|
|
1178
|
-
),
|
|
1179
|
-
() =>
|
|
1180
|
-
),
|
|
1178
|
+
), Y = De(u), r = O(
|
|
1179
|
+
() => Y.value.status === "ready" ? Y.value.value : null
|
|
1180
|
+
), A = Je(() => u), Z = O(
|
|
1181
1181
|
() => {
|
|
1182
1182
|
var e;
|
|
1183
1183
|
return Object.fromEntries(
|
|
1184
|
-
Object.entries(((e =
|
|
1185
|
-
([a,
|
|
1184
|
+
Object.entries(((e = r.value) == null ? void 0 : e.attributeValueOptions) ?? {}).map(
|
|
1185
|
+
([a, S]) => [a, [...S]]
|
|
1186
1186
|
)
|
|
1187
1187
|
);
|
|
1188
1188
|
}
|
|
1189
|
-
),
|
|
1190
|
-
() =>
|
|
1191
|
-
),
|
|
1189
|
+
), G = De(F.sdk.linkProduct.catalogue), c = O(
|
|
1190
|
+
() => G.value.status === "ready" ? G.value.value : null
|
|
1191
|
+
), t = ue(!1), p = ue({}), b = O(
|
|
1192
1192
|
() => {
|
|
1193
1193
|
var e;
|
|
1194
|
-
return (((e =
|
|
1194
|
+
return (((e = r.value) == null ? void 0 : e.options) ?? []).map((a) => ({
|
|
1195
1195
|
...a,
|
|
1196
1196
|
subRows: a.variants
|
|
1197
1197
|
}));
|
|
1198
1198
|
}
|
|
1199
|
-
),
|
|
1199
|
+
), P = O(
|
|
1200
1200
|
() => Math.max(
|
|
1201
|
-
|
|
1201
|
+
b.value.reduce(
|
|
1202
1202
|
(e, a) => e + 1 + a.subRows.length,
|
|
1203
1203
|
0
|
|
1204
1204
|
),
|
|
1205
1205
|
1
|
|
1206
1206
|
)
|
|
1207
|
-
),
|
|
1208
|
-
label: o(
|
|
1207
|
+
), K = (e) => e.combinationKey ? `${e.id}:${e.combinationKey}` : e.id, R = (e, a, S, X) => e.combinationKey ? o("menu.common.labels.a11y_labelled_name", {
|
|
1208
|
+
label: o(S),
|
|
1209
1209
|
name: e.name || e.inheritedName
|
|
1210
|
-
}) :
|
|
1211
|
-
function
|
|
1212
|
-
|
|
1210
|
+
}) : X ? o(X, { index: a + 1 }) : o("menu.group.a11y.row", { label: o(S), index: a + 1 });
|
|
1211
|
+
function pe(e) {
|
|
1212
|
+
u.setProducts([...e]), t.value = !1;
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
|
|
1214
|
+
function U() {
|
|
1215
|
+
u.cancelTranslation();
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function Q() {
|
|
1218
1218
|
var e;
|
|
1219
|
-
if (!((e =
|
|
1220
|
-
|
|
1219
|
+
if (!((e = r.value) != null && e.translationDirty)) {
|
|
1220
|
+
u.cancelTranslation();
|
|
1221
1221
|
return;
|
|
1222
1222
|
}
|
|
1223
|
-
|
|
1223
|
+
C.open({
|
|
1224
1224
|
title: o("menu.common.dialog.discard.title"),
|
|
1225
1225
|
message: o("menu.common.dialog.discard.message"),
|
|
1226
1226
|
primaryActions: {
|
|
@@ -1232,74 +1232,74 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1232
1232
|
text: o("menu.common.actions.cancel"),
|
|
1233
1233
|
close: !0
|
|
1234
1234
|
}
|
|
1235
|
-
}).onPrimary(() =>
|
|
1235
|
+
}).onPrimary(() => u.cancelTranslation());
|
|
1236
1236
|
}
|
|
1237
|
-
const
|
|
1238
|
-
function
|
|
1237
|
+
const L = ee(null), q = ee(null), W = ue(""), se = ee(null);
|
|
1238
|
+
function ve() {
|
|
1239
1239
|
var e;
|
|
1240
|
-
(e =
|
|
1240
|
+
(e = L.value) == null || e.dispose(), L.value = null;
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1243
|
-
|
|
1242
|
+
function oe(e, a) {
|
|
1243
|
+
ve(), L.value = u.pricingEditor(
|
|
1244
1244
|
e.id,
|
|
1245
1245
|
a,
|
|
1246
1246
|
e.combinationKey
|
|
1247
1247
|
);
|
|
1248
1248
|
}
|
|
1249
|
-
async function
|
|
1250
|
-
return (await
|
|
1249
|
+
async function _e(e) {
|
|
1250
|
+
return (await H(() => F.sdk.priceTier.create(e), {
|
|
1251
1251
|
successMessage: o("menu.price_tier.add_price_group_success")
|
|
1252
1252
|
})).kind === "success";
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function fe() {
|
|
1255
1255
|
var e;
|
|
1256
|
-
(e =
|
|
1256
|
+
(e = q.value) == null || e.dispose(), q.value = null, W.value = "";
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1259
|
-
|
|
1258
|
+
function Ie(e) {
|
|
1259
|
+
fe(), W.value = e.name || e.inheritedName, q.value = u.inventoryEditor(e.id, e.combinationKey);
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function ye() {
|
|
1262
1262
|
var e;
|
|
1263
|
-
(e =
|
|
1263
|
+
(e = se.value) == null || e.dispose(), se.value = null;
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1266
|
-
|
|
1265
|
+
function l(e) {
|
|
1266
|
+
ye(), se.value = u.nestedOverrides(e.id, e.combinationKey);
|
|
1267
1267
|
}
|
|
1268
|
-
|
|
1269
|
-
|
|
1268
|
+
He(() => {
|
|
1269
|
+
ve(), fe(), ye(), u.dispose();
|
|
1270
1270
|
});
|
|
1271
|
-
const
|
|
1272
|
-
const a =
|
|
1271
|
+
const i = (e) => r.value ? A.issue(r.value.fieldIssues, e) ?? r.value.issues.find((a) => a.field === e) : void 0, k = (e) => {
|
|
1272
|
+
const a = i(e);
|
|
1273
1273
|
return a ? z(a) : "";
|
|
1274
|
-
},
|
|
1275
|
-
function
|
|
1276
|
-
|
|
1274
|
+
}, ne = ["NORMAL", "PRODUCT", "DYNAMIC"], we = ue(0);
|
|
1275
|
+
function he() {
|
|
1276
|
+
u.confirmTypeChange(!1), we.value += 1;
|
|
1277
1277
|
}
|
|
1278
|
-
|
|
1278
|
+
ze(
|
|
1279
1279
|
() => {
|
|
1280
1280
|
var e;
|
|
1281
|
-
return (e =
|
|
1281
|
+
return (e = r.value) == null ? void 0 : e.typeChange;
|
|
1282
1282
|
},
|
|
1283
1283
|
(e) => {
|
|
1284
|
-
e &&
|
|
1284
|
+
e && C.open({
|
|
1285
1285
|
title: o("menu.common.dialog.change_type.title"),
|
|
1286
1286
|
message: o("menu.common.dialog.change_type.message"),
|
|
1287
1287
|
primaryActions: { text: o("menu.common.actions.yes"), close: !0 },
|
|
1288
1288
|
secondaryActions: { text: o("menu.common.actions.no"), close: !0 }
|
|
1289
|
-
}).onPrimary(() =>
|
|
1289
|
+
}).onPrimary(() => u.confirmTypeChange(!0)).onSecondary(() => he()).onClose(() => he());
|
|
1290
1290
|
}
|
|
1291
1291
|
);
|
|
1292
|
-
async function
|
|
1293
|
-
var
|
|
1294
|
-
const e = ((
|
|
1295
|
-
(await
|
|
1292
|
+
async function $e() {
|
|
1293
|
+
var S;
|
|
1294
|
+
const e = ((S = r.value) == null ? void 0 : S.name) ?? "";
|
|
1295
|
+
(await H(() => A.submit(() => u.submit()), {
|
|
1296
1296
|
showLoading: () => {
|
|
1297
|
-
var
|
|
1298
|
-
return ((
|
|
1297
|
+
var X;
|
|
1298
|
+
return ((X = r.value) == null ? void 0 : X.status) === "submitting";
|
|
1299
1299
|
}
|
|
1300
|
-
})).kind === "success" && (
|
|
1300
|
+
})).kind === "success" && (m("created", e), m("close"));
|
|
1301
1301
|
}
|
|
1302
|
-
const
|
|
1302
|
+
const Le = O(() => [
|
|
1303
1303
|
{
|
|
1304
1304
|
accessorKey: "isDefault",
|
|
1305
1305
|
size: 35,
|
|
@@ -1308,20 +1308,20 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1308
1308
|
cell: (e) => (
|
|
1309
1309
|
// A product with variants has no default of its own; its
|
|
1310
1310
|
// combinations do (OptionTable.vue:143-145).
|
|
1311
|
-
e.row.original.variants.length ? null :
|
|
1311
|
+
e.row.original.variants.length ? null : d(T.FmCheckbox, {
|
|
1312
1312
|
modelValue: e.row.original.isDefault,
|
|
1313
|
-
value:
|
|
1314
|
-
"aria-label":
|
|
1313
|
+
value: K(e.row.original),
|
|
1314
|
+
"aria-label": R(
|
|
1315
1315
|
e.row.original,
|
|
1316
1316
|
e.row.index,
|
|
1317
1317
|
"menu.group.option.is_default"
|
|
1318
1318
|
),
|
|
1319
1319
|
"onUpdate:modelValue": (a) => {
|
|
1320
|
-
|
|
1320
|
+
u.setOption(
|
|
1321
1321
|
e.row.original.id,
|
|
1322
1322
|
{ isDefault: a },
|
|
1323
1323
|
e.row.original.combinationKey
|
|
1324
|
-
),
|
|
1324
|
+
), A.touch("options");
|
|
1325
1325
|
}
|
|
1326
1326
|
})
|
|
1327
1327
|
)
|
|
@@ -1331,15 +1331,15 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1331
1331
|
size: 100,
|
|
1332
1332
|
header: () => o("menu.group.option.code"),
|
|
1333
1333
|
enableSorting: !1,
|
|
1334
|
-
cell: (e) =>
|
|
1334
|
+
cell: (e) => d("div", { class: "break-all max-w-[100px]" }, e.row.original.code)
|
|
1335
1335
|
},
|
|
1336
1336
|
{
|
|
1337
1337
|
accessorKey: "name",
|
|
1338
1338
|
header: () => {
|
|
1339
1339
|
var e;
|
|
1340
|
-
return
|
|
1341
|
-
|
|
1342
|
-
((e =
|
|
1340
|
+
return d("div", { class: "flex items-center w-full gap-8" }, [
|
|
1341
|
+
d("span", o("menu.group.option.product_title")),
|
|
1342
|
+
((e = r.value) == null ? void 0 : e.showTranslation) === !1 ? null : d(T.FmButton, {
|
|
1343
1343
|
icon: "g_translate",
|
|
1344
1344
|
variant: "tertiary",
|
|
1345
1345
|
textColor: "neutral-gray-400",
|
|
@@ -1355,18 +1355,18 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1355
1355
|
// ADR-0003 §1 condition as on the option cells. Neither name is
|
|
1356
1356
|
// visible, so this changes no rendering.
|
|
1357
1357
|
"aria-label": o("menu.group.translation.translate_options"),
|
|
1358
|
-
onClick: () =>
|
|
1358
|
+
onClick: () => u.beginTranslation("options")
|
|
1359
1359
|
})
|
|
1360
1360
|
]);
|
|
1361
1361
|
},
|
|
1362
1362
|
enableSorting: !1,
|
|
1363
|
-
cell: (e) =>
|
|
1364
|
-
|
|
1363
|
+
cell: (e) => d(
|
|
1364
|
+
re,
|
|
1365
1365
|
{
|
|
1366
1366
|
class: "min-w-[300px]",
|
|
1367
1367
|
modelValue: e.row.original.name,
|
|
1368
1368
|
placeholder: e.row.original.inheritedName,
|
|
1369
|
-
errorMessages:
|
|
1369
|
+
errorMessages: i(`option.${e.row.original.id}.name`) ? [k(`option.${e.row.original.id}.name`)] : [],
|
|
1370
1370
|
// Named PER ROW: "Option 1 title", "Option 2 title", …
|
|
1371
1371
|
//
|
|
1372
1372
|
// The accessible name is an addition the MIGRATED app owns — legacy
|
|
@@ -1383,15 +1383,15 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1383
1383
|
//
|
|
1384
1384
|
// The visible column header stays "Title", which is what the golden
|
|
1385
1385
|
// shows; this is the accessible name only.
|
|
1386
|
-
"aria-label":
|
|
1386
|
+
"aria-label": R(
|
|
1387
1387
|
e.row.original,
|
|
1388
1388
|
e.row.index,
|
|
1389
1389
|
"menu.group.option.product_title",
|
|
1390
1390
|
"menu.group.option.option_title_numbered"
|
|
1391
1391
|
),
|
|
1392
|
-
...
|
|
1392
|
+
...A.field(
|
|
1393
1393
|
`option.${e.row.original.id}.name`,
|
|
1394
|
-
(a) =>
|
|
1394
|
+
(a) => u.setOption(
|
|
1395
1395
|
e.row.original.id,
|
|
1396
1396
|
{ name: a },
|
|
1397
1397
|
e.row.original.combinationKey
|
|
@@ -1401,7 +1401,7 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1401
1401
|
e.row.original.variants.length ? {
|
|
1402
1402
|
// Legacy puts the toggle inside the title field
|
|
1403
1403
|
// (OptionTable.vue:228-243).
|
|
1404
|
-
append: () =>
|
|
1404
|
+
append: () => d(
|
|
1405
1405
|
"button",
|
|
1406
1406
|
{
|
|
1407
1407
|
type: "button",
|
|
@@ -1414,7 +1414,7 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1414
1414
|
),
|
|
1415
1415
|
onClick: e.row.getToggleExpandedHandler()
|
|
1416
1416
|
},
|
|
1417
|
-
|
|
1417
|
+
d(T.FmIcon, {
|
|
1418
1418
|
name: "keyboard_arrow_up",
|
|
1419
1419
|
// Down while collapsed, up once expanded.
|
|
1420
1420
|
class: [
|
|
@@ -1429,13 +1429,13 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1429
1429
|
{
|
|
1430
1430
|
accessorKey: "priceAmount",
|
|
1431
1431
|
size: 400,
|
|
1432
|
-
header: () =>
|
|
1433
|
-
|
|
1432
|
+
header: () => d(
|
|
1433
|
+
w,
|
|
1434
1434
|
{ keypath: "menu.group.option.price", tag: "span" },
|
|
1435
1435
|
{
|
|
1436
1436
|
symbol: () => {
|
|
1437
1437
|
var e;
|
|
1438
|
-
return
|
|
1438
|
+
return d(We, { currency: (e = r.value) == null ? void 0 : e.currency });
|
|
1439
1439
|
}
|
|
1440
1440
|
}
|
|
1441
1441
|
),
|
|
@@ -1446,18 +1446,18 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1446
1446
|
// its natural width inside the 400px column instead of stretching to
|
|
1447
1447
|
// fill it. Without the wrapper the field runs ~127px wider than the
|
|
1448
1448
|
// frozen `group/v3-create/form-normal` golden shows.
|
|
1449
|
-
|
|
1450
|
-
|
|
1449
|
+
d("div", { class: "flex items-center gap-8" }, [
|
|
1450
|
+
d(Se, {
|
|
1451
1451
|
modelValue: e.row.original.priceAmount,
|
|
1452
1452
|
// Indexed for the same reason as the title above; the visible
|
|
1453
1453
|
// header keeps its currency symbol.
|
|
1454
|
-
"aria-label":
|
|
1454
|
+
"aria-label": R(
|
|
1455
1455
|
e.row.original,
|
|
1456
1456
|
e.row.index,
|
|
1457
1457
|
"menu.group.option.price",
|
|
1458
1458
|
"menu.group.option.option_price_numbered"
|
|
1459
1459
|
),
|
|
1460
|
-
"onUpdate:modelValue": (a) =>
|
|
1460
|
+
"onUpdate:modelValue": (a) => u.setOption(
|
|
1461
1461
|
e.row.original.id,
|
|
1462
1462
|
{ priceAmount: a },
|
|
1463
1463
|
e.row.original.combinationKey
|
|
@@ -1467,24 +1467,24 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1467
1467
|
// (`OptionTable.vue:333-382`); a row that cannot sell keeps it,
|
|
1468
1468
|
// disabled.
|
|
1469
1469
|
...e.row.original.editPricing.state !== "hidden" ? [
|
|
1470
|
-
|
|
1471
|
-
|
|
1470
|
+
d("div", { class: "flex items-center gap-4" }, [
|
|
1471
|
+
d(
|
|
1472
1472
|
T.FmButton,
|
|
1473
1473
|
{
|
|
1474
1474
|
variant: "plain",
|
|
1475
1475
|
label: o(
|
|
1476
1476
|
"menu.product.form.member_price.configure.title"
|
|
1477
1477
|
),
|
|
1478
|
-
"aria-label":
|
|
1478
|
+
"aria-label": R(
|
|
1479
1479
|
e.row.original,
|
|
1480
1480
|
e.row.index,
|
|
1481
1481
|
"menu.product.form.member_price.configure.title"
|
|
1482
1482
|
),
|
|
1483
1483
|
disabled: e.row.original.editPricing.state !== "allowed",
|
|
1484
|
-
onClick: () =>
|
|
1484
|
+
onClick: () => oe(e.row.original, "members")
|
|
1485
1485
|
},
|
|
1486
1486
|
{
|
|
1487
|
-
default: () =>
|
|
1487
|
+
default: () => d(
|
|
1488
1488
|
"span",
|
|
1489
1489
|
{ class: "underline line-clamp-2 break-all" },
|
|
1490
1490
|
e.row.original.memberPriceCount ? o(
|
|
@@ -1496,7 +1496,7 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1496
1496
|
)
|
|
1497
1497
|
}
|
|
1498
1498
|
),
|
|
1499
|
-
|
|
1499
|
+
d(Ue, {
|
|
1500
1500
|
prices: e.row.original.memberPrices
|
|
1501
1501
|
})
|
|
1502
1502
|
])
|
|
@@ -1509,19 +1509,19 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1509
1509
|
size: 100,
|
|
1510
1510
|
header: () => o("menu.common.labels.order_from"),
|
|
1511
1511
|
enableSorting: !1,
|
|
1512
|
-
cell: (e) =>
|
|
1512
|
+
cell: (e) => d(T.FmSelect, {
|
|
1513
1513
|
modelValue: e.row.original.orderFrom,
|
|
1514
1514
|
disabled: !e.row.original.editOrderFrom,
|
|
1515
|
-
"aria-label":
|
|
1515
|
+
"aria-label": R(
|
|
1516
1516
|
e.row.original,
|
|
1517
1517
|
e.row.index,
|
|
1518
1518
|
"menu.common.labels.order_from"
|
|
1519
1519
|
),
|
|
1520
1520
|
items: ["ALL", "POS_ONLY", "NONE"].map((a) => ({
|
|
1521
1521
|
value: a,
|
|
1522
|
-
label: o(
|
|
1522
|
+
label: o(co[a])
|
|
1523
1523
|
})),
|
|
1524
|
-
"onUpdate:modelValue": (a) =>
|
|
1524
|
+
"onUpdate:modelValue": (a) => u.setOption(
|
|
1525
1525
|
e.row.original.id,
|
|
1526
1526
|
{ orderFrom: a },
|
|
1527
1527
|
e.row.original.combinationKey
|
|
@@ -1533,153 +1533,153 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1533
1533
|
meta: { cellClass: "" },
|
|
1534
1534
|
size: 80,
|
|
1535
1535
|
enableSorting: !1,
|
|
1536
|
-
cell: (e) =>
|
|
1536
|
+
cell: (e) => d("div", { class: "flex items-center justify-end" }, [
|
|
1537
1537
|
// Legacy's price-tier button, V4 only (`OptionTable.vue:505-524`).
|
|
1538
1538
|
...e.row.original.editPricing.state !== "hidden" ? [
|
|
1539
|
-
|
|
1539
|
+
d(Xe, {
|
|
1540
1540
|
configured: e.row.original.hasPriceTiers,
|
|
1541
1541
|
disabled: e.row.original.editPricing.state !== "allowed",
|
|
1542
|
-
label:
|
|
1542
|
+
label: R(
|
|
1543
1543
|
e.row.original,
|
|
1544
1544
|
e.row.index,
|
|
1545
1545
|
"menu.price_tier.price_tier_config"
|
|
1546
1546
|
),
|
|
1547
|
-
onOpen: () =>
|
|
1547
|
+
onOpen: () => oe(e.row.original, "tiers")
|
|
1548
1548
|
})
|
|
1549
1549
|
] : [],
|
|
1550
1550
|
// Inventory binding: every V4 row and, on V3, a NORMAL group's rows
|
|
1551
1551
|
// (`AddForm.vue` `inventory`). The icon fills once a binding is
|
|
1552
1552
|
// staged (`OptionTable.vue:556`).
|
|
1553
1553
|
...e.row.original.editInventory.state !== "hidden" ? [
|
|
1554
|
-
|
|
1554
|
+
d(T.FmButton, {
|
|
1555
1555
|
prependIcon: "inventory_2",
|
|
1556
1556
|
overwriteIconOutline: e.row.original.inventoryBound ? "filled" : "outline",
|
|
1557
1557
|
variant: "tertiary",
|
|
1558
1558
|
textColor: "neutral-gray-400",
|
|
1559
1559
|
disabled: e.row.original.editInventory.state !== "allowed",
|
|
1560
|
-
"aria-label":
|
|
1560
|
+
"aria-label": R(
|
|
1561
1561
|
e.row.original,
|
|
1562
1562
|
e.row.index,
|
|
1563
1563
|
"menu.group.option.inventory"
|
|
1564
1564
|
),
|
|
1565
|
-
onClick: () =>
|
|
1565
|
+
onClick: () => Ie(e.row.original)
|
|
1566
1566
|
})
|
|
1567
1567
|
] : [],
|
|
1568
1568
|
// Legacy keeps the nested-group button on every row, badged with the
|
|
1569
1569
|
// count and enabled where the row's product links a group
|
|
1570
1570
|
// (`OptionTable.vue:466-496`).
|
|
1571
1571
|
...e.row.original.nestedGroupCount ? [
|
|
1572
|
-
|
|
1572
|
+
d(
|
|
1573
1573
|
T.FmBadge,
|
|
1574
1574
|
{
|
|
1575
1575
|
class: "bg-fm-color-primary text-fm-color-neutral-white !right-0 !top-0",
|
|
1576
1576
|
value: e.row.original.nestedGroupCount
|
|
1577
1577
|
},
|
|
1578
1578
|
{
|
|
1579
|
-
default: () =>
|
|
1579
|
+
default: () => d(T.FmButton, {
|
|
1580
1580
|
prependIcon: "arrow_split",
|
|
1581
1581
|
variant: "tertiary",
|
|
1582
1582
|
textColor: "neutral-gray-400",
|
|
1583
1583
|
disabled: e.row.original.editNested.state !== "allowed",
|
|
1584
|
-
"aria-label":
|
|
1584
|
+
"aria-label": R(
|
|
1585
1585
|
e.row.original,
|
|
1586
1586
|
e.row.index,
|
|
1587
1587
|
"menu.group.nested.title"
|
|
1588
1588
|
),
|
|
1589
|
-
onClick: () =>
|
|
1589
|
+
onClick: () => l(e.row.original)
|
|
1590
1590
|
})
|
|
1591
1591
|
}
|
|
1592
1592
|
)
|
|
1593
1593
|
] : [
|
|
1594
|
-
|
|
1594
|
+
d(T.FmButton, {
|
|
1595
1595
|
prependIcon: "arrow_split",
|
|
1596
1596
|
variant: "tertiary",
|
|
1597
1597
|
textColor: "neutral-gray-400",
|
|
1598
1598
|
disabled: !0,
|
|
1599
|
-
"aria-label":
|
|
1599
|
+
"aria-label": R(
|
|
1600
1600
|
e.row.original,
|
|
1601
1601
|
e.row.index,
|
|
1602
1602
|
"menu.group.nested.title"
|
|
1603
1603
|
)
|
|
1604
1604
|
})
|
|
1605
1605
|
],
|
|
1606
|
-
|
|
1606
|
+
d(T.FmButton, {
|
|
1607
1607
|
prependIcon: "delete",
|
|
1608
1608
|
variant: "tertiary",
|
|
1609
1609
|
textColor: "neutral-gray-400",
|
|
1610
|
-
"aria-label":
|
|
1610
|
+
"aria-label": R(
|
|
1611
1611
|
e.row.original,
|
|
1612
1612
|
e.row.index,
|
|
1613
1613
|
"menu.common.actions.remove"
|
|
1614
1614
|
),
|
|
1615
1615
|
// A combination is removed with its product (OptionTable.vue:547-556).
|
|
1616
1616
|
disabled: !!e.row.original.combinationKey,
|
|
1617
|
-
onClick: () =>
|
|
1617
|
+
onClick: () => u.removeOption(e.row.original.id)
|
|
1618
1618
|
})
|
|
1619
1619
|
])
|
|
1620
1620
|
}
|
|
1621
1621
|
]);
|
|
1622
1622
|
return (e, a) => {
|
|
1623
|
-
var
|
|
1624
|
-
const
|
|
1625
|
-
return g(),
|
|
1626
|
-
s(
|
|
1623
|
+
var Fe, be, ie, Me;
|
|
1624
|
+
const S = h("FmButton"), X = h("FmTooltip"), xe = h("FmStepperField"), ke = h("FmFormGroup"), Pe = h("FmRadio"), le = h("FmRadioGroup"), te = h("FmSwitch"), ge = h("FmTable"), ae = h("FmSideSheet"), Oe = h("FmChip"), Ve = h("FmSelect");
|
|
1625
|
+
return g(), $(J, null, [
|
|
1626
|
+
s(ae, {
|
|
1627
1627
|
"model-value": !0,
|
|
1628
1628
|
"max-width": e.presentation === "tree" ? 720 : 800,
|
|
1629
1629
|
"is-container": n(T).FmForm,
|
|
1630
|
-
"is-container-props": { onValidationSuccess:
|
|
1631
|
-
"onUpdate:modelValue": a[9] || (a[9] = (f) => !f &&
|
|
1630
|
+
"is-container-props": { onValidationSuccess: $e },
|
|
1631
|
+
"onUpdate:modelValue": a[9] || (a[9] = (f) => !f && m("close"))
|
|
1632
1632
|
}, {
|
|
1633
1633
|
"side-sheet-header": v(() => [
|
|
1634
|
-
_("p",
|
|
1634
|
+
_("p", sn, V(n(o)("menu.group.add")), 1)
|
|
1635
1635
|
]),
|
|
1636
1636
|
"side-sheet-footer": v(() => {
|
|
1637
1637
|
var f;
|
|
1638
1638
|
return [
|
|
1639
|
-
_("div",
|
|
1640
|
-
s(
|
|
1639
|
+
_("div", dn, [
|
|
1640
|
+
s(S, {
|
|
1641
1641
|
label: n(o)("menu.common.actions.add"),
|
|
1642
|
-
disabled: ((f =
|
|
1642
|
+
disabled: ((f = r.value) == null ? void 0 : f.submit.state) !== "allowed",
|
|
1643
1643
|
size: "lg",
|
|
1644
1644
|
type: "submit",
|
|
1645
1645
|
variant: "primary"
|
|
1646
1646
|
}, null, 8, ["label", "disabled"]),
|
|
1647
|
-
s(
|
|
1647
|
+
s(S, {
|
|
1648
1648
|
label: n(o)("menu.common.actions.cancel"),
|
|
1649
1649
|
size: "lg",
|
|
1650
1650
|
variant: "tertiary",
|
|
1651
|
-
onClick: a[8] || (a[8] = (
|
|
1651
|
+
onClick: a[8] || (a[8] = (y) => m("close"))
|
|
1652
1652
|
}, null, 8, ["label"])
|
|
1653
1653
|
])
|
|
1654
1654
|
];
|
|
1655
1655
|
}),
|
|
1656
1656
|
default: v(() => [
|
|
1657
|
-
|
|
1658
|
-
s(
|
|
1657
|
+
r.value ? (g(), $("div", un, [
|
|
1658
|
+
s(qe, null, {
|
|
1659
1659
|
default: v(() => {
|
|
1660
1660
|
var f;
|
|
1661
1661
|
return [
|
|
1662
|
-
s(
|
|
1662
|
+
s(re, Ne({
|
|
1663
1663
|
autofocus: "",
|
|
1664
1664
|
label: n(o)("menu.common.labels.group_name"),
|
|
1665
|
-
"model-value":
|
|
1666
|
-
"error-messages":
|
|
1667
|
-
}, n(
|
|
1668
|
-
|
|
1665
|
+
"model-value": r.value.name,
|
|
1666
|
+
"error-messages": i("name") ? [k("name")] : []
|
|
1667
|
+
}, n(A).field("name", n(u).setName)), je({ _: 2 }, [
|
|
1668
|
+
r.value.showTranslation !== !1 ? {
|
|
1669
1669
|
name: "append",
|
|
1670
1670
|
fn: v(() => [
|
|
1671
|
-
s(
|
|
1671
|
+
s(X, {
|
|
1672
1672
|
variant: "plain",
|
|
1673
1673
|
placement: "top",
|
|
1674
1674
|
"z-index": 999
|
|
1675
1675
|
}, {
|
|
1676
1676
|
default: v(() => [
|
|
1677
|
-
s(
|
|
1677
|
+
s(S, {
|
|
1678
1678
|
variant: "tertiary",
|
|
1679
1679
|
icon: "g_translate",
|
|
1680
|
-
disabled: !
|
|
1680
|
+
disabled: !r.value.canTranslateName,
|
|
1681
1681
|
"aria-label": n(o)("menu.group.translation.translate_name"),
|
|
1682
|
-
onClick: a[0] || (a[0] = (
|
|
1682
|
+
onClick: a[0] || (a[0] = (y) => n(u).beginTranslation("group"))
|
|
1683
1683
|
}, null, 8, ["disabled", "aria-label"])
|
|
1684
1684
|
]),
|
|
1685
1685
|
_: 1
|
|
@@ -1688,47 +1688,47 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1688
1688
|
key: "0"
|
|
1689
1689
|
} : void 0
|
|
1690
1690
|
]), 1040, ["label", "model-value", "error-messages"]),
|
|
1691
|
-
s(
|
|
1692
|
-
"model-value": `${
|
|
1693
|
-
invalid: !!
|
|
1694
|
-
"helper-text":
|
|
1691
|
+
s(ke, {
|
|
1692
|
+
"model-value": `${r.value.min} ${r.value.max}`,
|
|
1693
|
+
invalid: !!k("bounds"),
|
|
1694
|
+
"helper-text": k("bounds")
|
|
1695
1695
|
}, {
|
|
1696
1696
|
default: v(() => [
|
|
1697
|
-
s(
|
|
1697
|
+
s(oo, null, {
|
|
1698
1698
|
default: v(() => [
|
|
1699
|
-
s(
|
|
1699
|
+
s(xe, Ne({
|
|
1700
1700
|
class: "flex-1",
|
|
1701
1701
|
min: 0,
|
|
1702
1702
|
label: n(o)("menu.common.labels.min_select"),
|
|
1703
|
-
"model-value":
|
|
1704
|
-
}, n(
|
|
1705
|
-
s(
|
|
1703
|
+
"model-value": r.value.min
|
|
1704
|
+
}, n(A).field("bounds", n(u).setMin)), null, 16, ["label", "model-value"]),
|
|
1705
|
+
s(xe, Ne({
|
|
1706
1706
|
class: "flex-1",
|
|
1707
|
-
min:
|
|
1707
|
+
min: r.value.min,
|
|
1708
1708
|
label: n(o)("menu.common.labels.max_select"),
|
|
1709
|
-
"model-value":
|
|
1710
|
-
}, n(
|
|
1709
|
+
"model-value": r.value.max
|
|
1710
|
+
}, n(A).field("bounds", n(u).setMax)), null, 16, ["min", "label", "model-value"])
|
|
1711
1711
|
]),
|
|
1712
1712
|
_: 1
|
|
1713
1713
|
})
|
|
1714
1714
|
]),
|
|
1715
1715
|
_: 1
|
|
1716
1716
|
}, 8, ["model-value", "invalid", "helper-text"]),
|
|
1717
|
-
|
|
1717
|
+
r.value.showType ? (g(), N(Ee, {
|
|
1718
1718
|
key: 0,
|
|
1719
1719
|
label: n(o)("menu.common.labels.group_type")
|
|
1720
1720
|
}, {
|
|
1721
1721
|
default: v(() => [
|
|
1722
|
-
(g(), N(
|
|
1723
|
-
key:
|
|
1724
|
-
"model-value":
|
|
1725
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
1722
|
+
(g(), N(le, {
|
|
1723
|
+
key: we.value,
|
|
1724
|
+
"model-value": r.value.type,
|
|
1725
|
+
"onUpdate:modelValue": a[1] || (a[1] = (y) => n(u).setType(y))
|
|
1726
1726
|
}, {
|
|
1727
1727
|
default: v(() => [
|
|
1728
|
-
(g(),
|
|
1729
|
-
key:
|
|
1730
|
-
value:
|
|
1731
|
-
label: n(o)(n(
|
|
1728
|
+
(g(), $(J, null, me(ne, (y) => s(Pe, {
|
|
1729
|
+
key: y,
|
|
1730
|
+
value: y,
|
|
1731
|
+
label: n(o)(n(po)[y])
|
|
1732
1732
|
}, null, 8, ["value", "label"])), 64))
|
|
1733
1733
|
]),
|
|
1734
1734
|
_: 1
|
|
@@ -1736,38 +1736,38 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1736
1736
|
]),
|
|
1737
1737
|
_: 1
|
|
1738
1738
|
}, 8, ["label"])) : E("", !0),
|
|
1739
|
-
s(
|
|
1739
|
+
s(Ee, {
|
|
1740
1740
|
label: n(o)("menu.common.labels.configuration")
|
|
1741
1741
|
}, {
|
|
1742
1742
|
default: v(() => [
|
|
1743
|
-
s(
|
|
1744
|
-
"model-value":
|
|
1743
|
+
s(te, {
|
|
1744
|
+
"model-value": r.value.stackable,
|
|
1745
1745
|
label: n(o)("menu.common.labels.stackable"),
|
|
1746
1746
|
"label-placement": "right",
|
|
1747
1747
|
sublabel: n(o)("menu.common.labels.stackable_sublabel"),
|
|
1748
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
1748
|
+
"onUpdate:modelValue": a[2] || (a[2] = (y) => n(u).setStackable(y))
|
|
1749
1749
|
}, null, 8, ["model-value", "label", "sublabel"])
|
|
1750
1750
|
]),
|
|
1751
1751
|
_: 1
|
|
1752
1752
|
}, 8, ["label"]),
|
|
1753
|
-
(f =
|
|
1754
|
-
e.presentation === "tree" ? (g(), N(n(
|
|
1753
|
+
(f = r.value.tagging) != null && f.visible ? (g(), $(J, { key: 1 }, [
|
|
1754
|
+
e.presentation === "tree" ? (g(), N(n(Ke), {
|
|
1755
1755
|
key: 0,
|
|
1756
1756
|
entity: "group",
|
|
1757
|
-
"model-value":
|
|
1758
|
-
"value-options":
|
|
1759
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
1760
|
-
}, null, 8, ["model-value", "value-options"])) : (g(), N(
|
|
1757
|
+
"model-value": r.value.customAttributes ?? {},
|
|
1758
|
+
"value-options": Z.value,
|
|
1759
|
+
"onUpdate:modelValue": a[3] || (a[3] = (y) => n(u).setCustomAttributes(y ?? null))
|
|
1760
|
+
}, null, 8, ["model-value", "value-options"])) : (g(), N(Ce, {
|
|
1761
1761
|
key: 1,
|
|
1762
1762
|
title: n(o)("menu.group.form.tagging.title"),
|
|
1763
1763
|
"sub-title": n(o)("menu.group.form.tagging.subtitle")
|
|
1764
1764
|
}, {
|
|
1765
1765
|
default: v(() => [
|
|
1766
|
-
s(n(
|
|
1766
|
+
s(n(Ke), {
|
|
1767
1767
|
entity: "group",
|
|
1768
|
-
"model-value":
|
|
1769
|
-
"value-options":
|
|
1770
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
1768
|
+
"model-value": r.value.customAttributes ?? {},
|
|
1769
|
+
"value-options": Z.value,
|
|
1770
|
+
"onUpdate:modelValue": a[4] || (a[4] = (y) => n(u).setCustomAttributes(y ?? null))
|
|
1771
1771
|
}, null, 8, ["model-value", "value-options"])
|
|
1772
1772
|
]),
|
|
1773
1773
|
_: 1
|
|
@@ -1777,54 +1777,54 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1777
1777
|
}),
|
|
1778
1778
|
_: 1
|
|
1779
1779
|
}),
|
|
1780
|
-
s(
|
|
1780
|
+
s(ke, {
|
|
1781
1781
|
tag: "div",
|
|
1782
|
-
"model-value":
|
|
1783
|
-
invalid: !!
|
|
1784
|
-
"helper-text":
|
|
1785
|
-
count:
|
|
1786
|
-
max:
|
|
1782
|
+
"model-value": r.value.options,
|
|
1783
|
+
invalid: !!k("options"),
|
|
1784
|
+
"helper-text": k("options") || n(o)("menu.common.validation.default_items_tip", {
|
|
1785
|
+
count: r.value.defaultCount,
|
|
1786
|
+
max: r.value.max
|
|
1787
1787
|
})
|
|
1788
1788
|
}, {
|
|
1789
1789
|
default: v(() => [
|
|
1790
|
-
s(
|
|
1790
|
+
s(Ce, {
|
|
1791
1791
|
title: n(o)("menu.group.option.title"),
|
|
1792
|
-
"sub-title":
|
|
1792
|
+
"sub-title": r.value.linkProducts && e.presentation !== "tree" ? n(o)("menu.group.option.subtitle") : ""
|
|
1793
1793
|
}, {
|
|
1794
1794
|
"append-title": v(() => [
|
|
1795
|
-
s(
|
|
1795
|
+
s(S, {
|
|
1796
1796
|
variant: "secondary",
|
|
1797
1797
|
"text-color": "primary",
|
|
1798
1798
|
"border-color": "primary",
|
|
1799
|
-
"prepend-icon":
|
|
1799
|
+
"prepend-icon": r.value.linkProducts ? "link" : "add",
|
|
1800
1800
|
label: n(o)(
|
|
1801
|
-
|
|
1801
|
+
r.value.linkProducts ? "menu.group.option.link_products" : "menu.group.option.add_option"
|
|
1802
1802
|
),
|
|
1803
|
-
onClick: a[5] || (a[5] = (f) =>
|
|
1803
|
+
onClick: a[5] || (a[5] = (f) => r.value.linkProducts ? t.value = !0 : n(u).addOption())
|
|
1804
1804
|
}, null, 8, ["prepend-icon", "label"])
|
|
1805
1805
|
]),
|
|
1806
1806
|
default: v(() => [
|
|
1807
|
-
_("div",
|
|
1808
|
-
_("div",
|
|
1809
|
-
s(
|
|
1810
|
-
draggable:
|
|
1811
|
-
onDndChanged: a[6] || (a[6] = (f) => n(
|
|
1812
|
-
f.map((
|
|
1807
|
+
_("div", mn, [
|
|
1808
|
+
_("div", cn, [
|
|
1809
|
+
s(ge, {
|
|
1810
|
+
draggable: !I.value,
|
|
1811
|
+
onDndChanged: a[6] || (a[6] = (f) => n(u).reorderOptions(
|
|
1812
|
+
f.map((y) => y.id)
|
|
1813
1813
|
)),
|
|
1814
|
-
"column-defs":
|
|
1814
|
+
"column-defs": Le.value,
|
|
1815
1815
|
"column-visibility": {
|
|
1816
|
-
code:
|
|
1817
|
-
priceAmount:
|
|
1818
|
-
orderFrom:
|
|
1816
|
+
code: r.value.showCode,
|
|
1817
|
+
priceAmount: r.value.showPrice,
|
|
1818
|
+
orderFrom: r.value.showOrderFrom
|
|
1819
1819
|
},
|
|
1820
|
-
"row-data":
|
|
1821
|
-
"get-row-id":
|
|
1822
|
-
"expanded-state":
|
|
1823
|
-
"onUpdate:expandedState": a[7] || (a[7] = (f) =>
|
|
1824
|
-
"page-size":
|
|
1820
|
+
"row-data": b.value,
|
|
1821
|
+
"get-row-id": K,
|
|
1822
|
+
"expanded-state": p.value,
|
|
1823
|
+
"onUpdate:expandedState": a[7] || (a[7] = (f) => p.value = f),
|
|
1824
|
+
"page-size": P.value,
|
|
1825
1825
|
"shrink-at": !1,
|
|
1826
1826
|
"hide-footer": ""
|
|
1827
|
-
}, null, 8, ["column-defs", "column-visibility", "row-data", "expanded-state", "page-size"])
|
|
1827
|
+
}, null, 8, ["draggable", "column-defs", "column-visibility", "row-data", "expanded-state", "page-size"])
|
|
1828
1828
|
])
|
|
1829
1829
|
])
|
|
1830
1830
|
]),
|
|
@@ -1837,80 +1837,80 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1837
1837
|
]),
|
|
1838
1838
|
_: 1
|
|
1839
1839
|
}, 8, ["max-width", "is-container", "is-container-props"]),
|
|
1840
|
-
((
|
|
1840
|
+
((Fe = r.value) == null ? void 0 : Fe.translationMode) === "group" ? (g(), N(ro, {
|
|
1841
1841
|
key: 0,
|
|
1842
1842
|
"model-value": !0,
|
|
1843
|
-
name:
|
|
1844
|
-
"name-locale":
|
|
1845
|
-
"supported-locales":
|
|
1846
|
-
dirty:
|
|
1843
|
+
name: r.value.name,
|
|
1844
|
+
"name-locale": r.value.nameLocale,
|
|
1845
|
+
"supported-locales": r.value.supportedLocales,
|
|
1846
|
+
dirty: r.value.translationDirty,
|
|
1847
1847
|
title: n(o)("menu.group.translation.title"),
|
|
1848
1848
|
"name-section-label": n(o)("menu.common.translation.name_section", {
|
|
1849
1849
|
entity: n(o)("menu.group.title")
|
|
1850
1850
|
}),
|
|
1851
|
-
"onUpdate:modelValue": a[10] || (a[10] = (f) => !f &&
|
|
1852
|
-
"onUpdate:name": a[11] || (a[11] = (f) => n(
|
|
1853
|
-
"onUpdate:nameLocale": a[12] || (a[12] = (f) => n(
|
|
1854
|
-
onSave: a[13] || (a[13] = (f) => n(
|
|
1855
|
-
onDiscard: a[14] || (a[14] = (f) => n(
|
|
1851
|
+
"onUpdate:modelValue": a[10] || (a[10] = (f) => !f && U()),
|
|
1852
|
+
"onUpdate:name": a[11] || (a[11] = (f) => n(u).setName(f)),
|
|
1853
|
+
"onUpdate:nameLocale": a[12] || (a[12] = (f) => n(u).setNameLocale(f)),
|
|
1854
|
+
onSave: a[13] || (a[13] = (f) => n(u).applyTranslation()),
|
|
1855
|
+
onDiscard: a[14] || (a[14] = (f) => n(u).cancelTranslation())
|
|
1856
1856
|
}, null, 8, ["name", "name-locale", "supported-locales", "dirty", "title", "name-section-label"])) : E("", !0),
|
|
1857
|
-
((
|
|
1857
|
+
((be = r.value) == null ? void 0 : be.translationMode) === "options" ? (g(), N(ae, {
|
|
1858
1858
|
key: 1,
|
|
1859
1859
|
"model-value": !0,
|
|
1860
1860
|
"max-width": 720,
|
|
1861
|
-
"onUpdate:modelValue": a[17] || (a[17] = (f) => !f &&
|
|
1862
|
-
"onOn:clickedAway":
|
|
1861
|
+
"onUpdate:modelValue": a[17] || (a[17] = (f) => !f && U()),
|
|
1862
|
+
"onOn:clickedAway": Q
|
|
1863
1863
|
}, {
|
|
1864
1864
|
"side-sheet-header": v(() => [
|
|
1865
|
-
_("p",
|
|
1865
|
+
_("p", pn, V(n(o)("menu.group.translation.title")), 1)
|
|
1866
1866
|
]),
|
|
1867
1867
|
"side-sheet-footer": v(() => [
|
|
1868
|
-
_("div",
|
|
1869
|
-
s(
|
|
1868
|
+
_("div", _n, [
|
|
1869
|
+
s(S, {
|
|
1870
1870
|
label: n(o)("menu.common.actions.save"),
|
|
1871
1871
|
size: "lg",
|
|
1872
|
-
onClick: a[16] || (a[16] = (f) => n(
|
|
1872
|
+
onClick: a[16] || (a[16] = (f) => n(u).applyTranslation())
|
|
1873
1873
|
}, null, 8, ["label"]),
|
|
1874
|
-
s(
|
|
1874
|
+
s(S, {
|
|
1875
1875
|
label: n(o)("menu.common.actions.cancel"),
|
|
1876
1876
|
variant: "tertiary",
|
|
1877
1877
|
size: "lg",
|
|
1878
|
-
onClick:
|
|
1878
|
+
onClick: Q
|
|
1879
1879
|
}, null, 8, ["label"])
|
|
1880
1880
|
])
|
|
1881
1881
|
]),
|
|
1882
1882
|
default: v(() => [
|
|
1883
|
-
_("div",
|
|
1884
|
-
s(
|
|
1883
|
+
_("div", gn, [
|
|
1884
|
+
s(Ee, {
|
|
1885
1885
|
label: n(o)("menu.group.translation.language")
|
|
1886
1886
|
}, {
|
|
1887
1887
|
default: v(() => {
|
|
1888
1888
|
var f;
|
|
1889
1889
|
return [
|
|
1890
|
-
_("div",
|
|
1891
|
-
(g(!0),
|
|
1890
|
+
_("div", bn, [
|
|
1891
|
+
(g(!0), $(J, null, me(r.value.optionTranslationLocales, (y) => {
|
|
1892
1892
|
var j;
|
|
1893
|
-
return g(), N(
|
|
1894
|
-
key:
|
|
1893
|
+
return g(), N(Oe, {
|
|
1894
|
+
key: y,
|
|
1895
1895
|
removable: "",
|
|
1896
|
-
label: ((j =
|
|
1897
|
-
onChipClosed: (
|
|
1898
|
-
|
|
1896
|
+
label: ((j = r.value.supportedLocales.find((Te) => Te.code === y)) == null ? void 0 : j.name) ?? y,
|
|
1897
|
+
onChipClosed: (Te) => n(u).setOptionTranslationLocales(
|
|
1898
|
+
r.value.optionTranslationLocales.filter((no) => no !== y)
|
|
1899
1899
|
)
|
|
1900
1900
|
}, null, 8, ["label", "onChipClosed"]);
|
|
1901
1901
|
}), 128)),
|
|
1902
|
-
s(
|
|
1903
|
-
items: (((f =
|
|
1904
|
-
(
|
|
1902
|
+
s(Ve, {
|
|
1903
|
+
items: (((f = r.value) == null ? void 0 : f.supportedLocales) ?? []).filter(
|
|
1904
|
+
(y) => {
|
|
1905
1905
|
var j;
|
|
1906
|
-
return !(((j =
|
|
1906
|
+
return !(((j = r.value) == null ? void 0 : j.optionTranslationLocales) ?? []).includes(y.code);
|
|
1907
1907
|
}
|
|
1908
|
-
).map((
|
|
1908
|
+
).map((y) => ({ value: y.code, label: y.name })),
|
|
1909
1909
|
placeholder: n(o)("menu.group.translation.add_language"),
|
|
1910
1910
|
"model-value": null,
|
|
1911
|
-
"onUpdate:modelValue": a[15] || (a[15] = (
|
|
1912
|
-
...
|
|
1913
|
-
|
|
1911
|
+
"onUpdate:modelValue": a[15] || (a[15] = (y) => n(u).setOptionTranslationLocales([
|
|
1912
|
+
...r.value.optionTranslationLocales,
|
|
1913
|
+
y
|
|
1914
1914
|
]))
|
|
1915
1915
|
}, null, 8, ["items", "placeholder"])
|
|
1916
1916
|
])
|
|
@@ -1918,47 +1918,47 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1918
1918
|
}),
|
|
1919
1919
|
_: 1
|
|
1920
1920
|
}, 8, ["label"]),
|
|
1921
|
-
s(
|
|
1921
|
+
s(Ce, {
|
|
1922
1922
|
title: n(o)("menu.group.translation.group_name")
|
|
1923
1923
|
}, {
|
|
1924
1924
|
default: v(() => [
|
|
1925
|
-
s(
|
|
1926
|
-
"model-value":
|
|
1925
|
+
s(re, {
|
|
1926
|
+
"model-value": r.value.name,
|
|
1927
1927
|
readonly: ""
|
|
1928
1928
|
}, null, 8, ["model-value"])
|
|
1929
1929
|
]),
|
|
1930
1930
|
_: 1
|
|
1931
1931
|
}, 8, ["title"]),
|
|
1932
|
-
s(
|
|
1932
|
+
s(Ce, {
|
|
1933
1933
|
title: n(o)("menu.group.translation.product_name")
|
|
1934
1934
|
}, {
|
|
1935
1935
|
default: v(() => [
|
|
1936
|
-
(g(!0),
|
|
1936
|
+
(g(!0), $(J, null, me(r.value.options, (f, y) => (g(), $("div", {
|
|
1937
1937
|
key: f.id,
|
|
1938
1938
|
class: "space-y-8"
|
|
1939
1939
|
}, [
|
|
1940
|
-
_("p",
|
|
1941
|
-
s(
|
|
1942
|
-
label: n(o)("menu.group.translation.option_default", { number:
|
|
1940
|
+
_("p", vn, V(n(o)("menu.group.translation.option", { number: y + 1 })), 1),
|
|
1941
|
+
s(re, {
|
|
1942
|
+
label: n(o)("menu.group.translation.option_default", { number: y + 1 }),
|
|
1943
1943
|
"model-value": f.name,
|
|
1944
|
-
"onUpdate:modelValue": (j) => n(
|
|
1944
|
+
"onUpdate:modelValue": (j) => n(u).setOption(f.id, { name: j })
|
|
1945
1945
|
}, null, 8, ["label", "model-value", "onUpdate:modelValue"]),
|
|
1946
|
-
(g(!0),
|
|
1946
|
+
(g(!0), $(J, null, me(r.value.optionTranslationLocales, (j) => (g(), $("div", {
|
|
1947
1947
|
key: j,
|
|
1948
1948
|
class: "flex gap-8 items-center"
|
|
1949
1949
|
}, [
|
|
1950
|
-
s(
|
|
1951
|
-
s(
|
|
1950
|
+
s(so, { code: j }, null, 8, ["code"]),
|
|
1951
|
+
s(re, {
|
|
1952
1952
|
class: "flex-1",
|
|
1953
1953
|
"aria-label": n(o)("menu.group.translation.option_translation", {
|
|
1954
|
-
number:
|
|
1954
|
+
number: y + 1,
|
|
1955
1955
|
language: j
|
|
1956
1956
|
}),
|
|
1957
1957
|
"model-value": f.nameLocale[j] ?? "",
|
|
1958
1958
|
placeholder: n(o)("menu.group.translation.placeholder"),
|
|
1959
|
-
"onUpdate:modelValue": (
|
|
1959
|
+
"onUpdate:modelValue": (Te) => n(u).setOptionNameLocale(f.id, {
|
|
1960
1960
|
...f.nameLocale,
|
|
1961
|
-
[j]:
|
|
1961
|
+
[j]: Te
|
|
1962
1962
|
})
|
|
1963
1963
|
}, null, 8, ["aria-label", "model-value", "placeholder", "onUpdate:modelValue"])
|
|
1964
1964
|
]))), 128))
|
|
@@ -1970,42 +1970,42 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
|
|
|
1970
1970
|
]),
|
|
1971
1971
|
_: 1
|
|
1972
1972
|
})) : E("", !0),
|
|
1973
|
-
s(
|
|
1974
|
-
modelValue:
|
|
1975
|
-
"onUpdate:modelValue": a[18] || (a[18] = (f) =>
|
|
1976
|
-
catalogue:
|
|
1977
|
-
"selected-product-ids": ((
|
|
1973
|
+
s(go, {
|
|
1974
|
+
modelValue: t.value,
|
|
1975
|
+
"onUpdate:modelValue": a[18] || (a[18] = (f) => t.value = f),
|
|
1976
|
+
catalogue: c.value,
|
|
1977
|
+
"selected-product-ids": ((ie = r.value) == null ? void 0 : ie.selectedProductIds) ?? [],
|
|
1978
1978
|
title: n(o)("menu.group.option.link_products"),
|
|
1979
|
-
onSubmit:
|
|
1979
|
+
onSubmit: pe
|
|
1980
1980
|
}, null, 8, ["modelValue", "catalogue", "selected-product-ids", "title"]),
|
|
1981
|
-
|
|
1981
|
+
L.value ? (g(), N(eo, {
|
|
1982
1982
|
key: 2,
|
|
1983
|
-
session:
|
|
1984
|
-
"on-create-price-group":
|
|
1985
|
-
onClose:
|
|
1983
|
+
session: L.value,
|
|
1984
|
+
"on-create-price-group": _e,
|
|
1985
|
+
onClose: ve
|
|
1986
1986
|
}, null, 8, ["session"])) : E("", !0),
|
|
1987
|
-
|
|
1987
|
+
q.value ? (g(), N(n(x), {
|
|
1988
1988
|
key: 3,
|
|
1989
|
-
"product-name":
|
|
1990
|
-
session:
|
|
1991
|
-
onClose:
|
|
1989
|
+
"product-name": W.value,
|
|
1990
|
+
session: q.value,
|
|
1991
|
+
onClose: fe
|
|
1992
1992
|
}, null, 8, ["product-name", "session"])) : E("", !0),
|
|
1993
|
-
s(
|
|
1993
|
+
s(rn, {
|
|
1994
1994
|
sdk: e.sdk,
|
|
1995
|
-
session:
|
|
1996
|
-
"currency-code": (
|
|
1997
|
-
onClose:
|
|
1995
|
+
session: se.value,
|
|
1996
|
+
"currency-code": (Me = r.value) == null ? void 0 : Me.currency,
|
|
1997
|
+
onClose: ye
|
|
1998
1998
|
}, null, 8, ["sdk", "session", "currency-code"])
|
|
1999
1999
|
], 64);
|
|
2000
2000
|
};
|
|
2001
2001
|
}
|
|
2002
2002
|
});
|
|
2003
2003
|
export {
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2004
|
+
oo as F,
|
|
2005
|
+
Se as _,
|
|
2006
|
+
Ue as a,
|
|
2007
|
+
eo as b,
|
|
2008
|
+
Xe as c,
|
|
2009
|
+
Nn as d,
|
|
2010
|
+
rn as e
|
|
2011
2011
|
};
|