@beeintel/batch-image 1.0.0 → 1.1.0
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/README.md +7 -3
- package/dist/chunks/{AdjustToolPanel-B6dtlFlj.js → AdjustToolPanel-DCNhkuE4.js} +21 -20
- package/dist/chunks/BackgroundToolPanel-D3TILm-m.js +43 -0
- package/dist/chunks/{BatchMaterials-DDoJTaS5.js → BatchMaterials-BPJeE3y9.js} +1 -1
- package/dist/chunks/BatchModeChoices-BuP83uOq.js +118 -0
- package/dist/chunks/{BatchOutputColorPicker-D7WIDS4_.js → BatchOutputColorPicker-CZoQzBII.js} +2 -2
- package/dist/chunks/BatchReferenceFields-B7SL__lu.js +308 -0
- package/dist/chunks/BeautifyToolPanel-DsTOjndh.js +220 -0
- package/dist/chunks/{BrandMarkToolPanel-vKobk_R3.js → BrandMarkToolPanel-Cob9bPYT.js} +319 -333
- package/dist/chunks/{ContentTrimControl-BKCJEst5.js → ContentTrimControl-CKNfHz_u.js} +2 -2
- package/dist/chunks/{CropToolPanel-C_sW5tWL.js → CropToolPanel-6MiynTP2.js} +60 -56
- package/dist/chunks/CutoutToolPanel-V-AUrbwz.js +78 -0
- package/dist/chunks/DisclosureToolPanel-DvouSIbA.js +72 -0
- package/dist/chunks/ExpandToolPanel-C98UZmBx.js +69 -0
- package/dist/chunks/{ImageEffectsToolPanel-CsDIBpT6.js → ImageEffectsToolPanel-hA0TlEix.js} +63 -52
- package/dist/chunks/{IpAuditToolPanel-CduDfFh-.js → IpAuditToolPanel-BCQ8Kewh.js} +15 -13
- package/dist/chunks/{ListingToolPanel-8pJ2_zvI.js → ListingToolPanel-DH-xpvLp.js} +170 -184
- package/dist/chunks/{MaterialSelectionPlate-CW7HaS6v.js → MaterialSelectionPlate-CQBIf6ZJ.js} +4 -4
- package/dist/chunks/MetadataToolPanel-z4RK3JCb.js +116 -0
- package/dist/chunks/{OrientToolPanel-C1AzQchm.js → OrientToolPanel-BwtT0xKI.js} +3 -3
- package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-DIRuJ1De.js +122 -0
- package/dist/chunks/ResizeToolPanel-BVeZbKJl.js +1171 -0
- package/dist/chunks/RetouchToolPanel-CqSzWVOK.js +358 -0
- package/dist/chunks/ShadowToolPanel-BgsCgLay.js +258 -0
- package/dist/chunks/SvgExportToolPanel-CdCXYYHF.js +208 -0
- package/dist/chunks/TranslationToolPanel-D4ETI6sf.js +102 -0
- package/dist/chunks/{UpscaleToolPanel-BRIgpszs.js → UpscaleToolPanel-D_hmQLEi.js} +44 -39
- package/dist/chunks/arrow-up-C1vBvuff.js +18 -0
- package/dist/chunks/{entry-CboOSe2r.js → entry-DVV89YMR.js} +7614 -7498
- package/dist/chunks/{loader-circle-CylCgDqP.js → loader-circle-GPucRX_4.js} +1 -1
- package/dist/chunks/{motionFeatures-D67ghPG1.js → motionFeatures-_pQ-ZW4p.js} +1 -1
- package/dist/chunks/{search-BwsDnulU.js → search-CUAg5uDr.js} +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -5
- package/dist/node/cli.mjs +0 -0
- package/dist/resources.json +104 -94
- package/dist/slots.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/tool-links.d.ts +10 -0
- package/dist/types/batch/public/config.d.ts +6 -0
- package/package.json +9 -8
- package/dist/chunks/BackgroundToolPanel-C3Rr9d4S.js +0 -41
- package/dist/chunks/BatchModeChoices-DeBARgvY.js +0 -111
- package/dist/chunks/BatchReferenceFields-Cr5WgFRJ.js +0 -316
- package/dist/chunks/BeautifyToolPanel-DDZXDQKM.js +0 -215
- package/dist/chunks/CutoutToolPanel-B7ObmiWd.js +0 -73
- package/dist/chunks/DisclosureToolPanel-F3ccFJIF.js +0 -76
- package/dist/chunks/ExpandToolPanel-BKjj5UJA.js +0 -67
- package/dist/chunks/MetadataToolPanel-C8XJOamN.js +0 -104
- package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-BGe419qz.js +0 -102
- package/dist/chunks/ResizeToolPanel-DWikcj2G.js +0 -1178
- package/dist/chunks/RetouchToolPanel-B4eQKk2W.js +0 -350
- package/dist/chunks/ShadowToolPanel-Bbj76hQd.js +0 -254
- package/dist/chunks/SvgExportToolPanel-BRxpzd7q.js +0 -219
- package/dist/chunks/TranslationToolPanel-Bxv8U2WY.js +0 -125
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as ee, ref as $, computed as le, watch as A, onBeforeUnmount as
|
|
2
|
-
import { J as
|
|
3
|
-
import { L as
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as ee, ref as $, computed as le, watch as A, onBeforeUnmount as re, openBlock as g, createElementBlock as h, withModifiers as Q, unref as a, normalizeClass as Y, createElementVNode as u, createTextVNode as M, toDisplayString as f, createVNode as I, Fragment as ie, renderList as ne, createCommentVNode as E, nextTick as J, useId as ve, onMounted as ge, normalizeStyle as pe, createBlock as O, withCtx as te } from "vue";
|
|
2
|
+
import { J as de, F as ae, av as fe, P as be, ah as ke, ag as he, aw as ye, ax as _e, _ as se, ai as we, S as ce, a4 as me, ay as Pe, G as xe } from "./entry-DVV89YMR.js";
|
|
3
|
+
import { L as Le } from "./loader-circle-GPucRX_4.js";
|
|
4
|
+
import { R as oe, u as $e, a as Ie, b as ue, _ as Ce } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-DIRuJ1De.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license @lucide/vue v1.47.0 - ISC
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the ISC license.
|
|
9
9
|
* See the LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
const
|
|
11
|
+
const Ve = {
|
|
12
12
|
name: "external-link",
|
|
13
13
|
size: 24,
|
|
14
14
|
node: [
|
|
@@ -16,14 +16,14 @@ const Ce = {
|
|
|
16
16
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
17
17
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
18
18
|
]
|
|
19
|
-
},
|
|
19
|
+
}, Ee = de(Ve);
|
|
20
20
|
/**
|
|
21
21
|
* @license @lucide/vue v1.47.0 - ISC
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the ISC license.
|
|
24
24
|
* See the LICENSE file in the root directory of this source tree.
|
|
25
25
|
*/
|
|
26
|
-
const
|
|
26
|
+
const Re = {
|
|
27
27
|
name: "layout-template",
|
|
28
28
|
size: 24,
|
|
29
29
|
node: [
|
|
@@ -31,35 +31,19 @@ const Ee = {
|
|
|
31
31
|
["rect", { width: "9", height: "7", x: "3", y: "14", rx: "1", key: "jqznyg" }],
|
|
32
32
|
["rect", { width: "5", height: "7", x: "16", y: "14", rx: "1", key: "q5h2i8" }]
|
|
33
33
|
]
|
|
34
|
-
},
|
|
35
|
-
/**
|
|
36
|
-
* @license @lucide/vue v1.47.0 - ISC
|
|
37
|
-
*
|
|
38
|
-
* This source code is licensed under the ISC license.
|
|
39
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/
|
|
41
|
-
const Ae = {
|
|
42
|
-
name: "refresh-cw",
|
|
43
|
-
size: 24,
|
|
44
|
-
node: [
|
|
45
|
-
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
46
|
-
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
47
|
-
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
48
|
-
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
49
|
-
]
|
|
50
|
-
}, re = se(Ae), ze = ["aria-label", "aria-busy"], Se = { class: "picker-heading" }, Ue = { class: "picker-hint" }, Be = ["multiple", "disabled", "aria-label"], Me = { class: "product-preview" }, Te = ["src", "alt"], De = ["src", "alt"], Fe = { class: "product-number" }, qe = {
|
|
34
|
+
}, Ae = de(Re), ze = ["aria-label", "aria-busy"], Se = { class: "picker-heading" }, Ue = ["multiple", "disabled", "aria-label"], Be = { class: "product-preview" }, Te = ["src", "alt"], Fe = ["src", "alt"], De = { class: "product-number" }, Me = {
|
|
51
35
|
key: 2,
|
|
52
36
|
class: "upload-state",
|
|
53
37
|
role: "status"
|
|
54
|
-
}, Ke = ["href", "aria-label"],
|
|
38
|
+
}, Ke = ["href", "aria-label"], qe = {
|
|
55
39
|
key: 0,
|
|
56
40
|
class: "slot-error",
|
|
57
41
|
role: "alert"
|
|
58
|
-
},
|
|
42
|
+
}, Ne = { class: "product-actions" }, Ge = ["disabled", "aria-label", "onClick"], He = ["disabled", "aria-label", "onClick"], je = ["disabled", "aria-label", "onClick"], Je = ["disabled", "aria-label"], Oe = {
|
|
59
43
|
key: 0,
|
|
60
44
|
class: "picker-notice",
|
|
61
45
|
role: "status"
|
|
62
|
-
},
|
|
46
|
+
}, We = /* @__PURE__ */ ee({
|
|
63
47
|
__name: "ProductImagePicker",
|
|
64
48
|
props: {
|
|
65
49
|
modelValue: {},
|
|
@@ -76,30 +60,30 @@ const Ae = {
|
|
|
76
60
|
asset: { ...e },
|
|
77
61
|
state: "ready",
|
|
78
62
|
token: 0
|
|
79
|
-
}), n = $(r.modelValue.slice(0, 4).map(k)),
|
|
63
|
+
}), n = $(r.modelValue.slice(0, 4).map(k)), v = fe(
|
|
80
64
|
() => n.value.flatMap((e) => e.asset ? [e.asset] : [])
|
|
81
65
|
), s = $(), L = $(null), V = $(""), S = $(!1);
|
|
82
66
|
let U = y(r.modelValue);
|
|
83
67
|
const B = [], N = le(() => n.value.some((e) => e.state !== "ready"));
|
|
84
68
|
A(N, (e) => z("busy", e), { immediate: !0, flush: "sync" });
|
|
85
|
-
function
|
|
69
|
+
function T(e) {
|
|
86
70
|
e.preview && URL.revokeObjectURL(e.preview), e.preview = void 0;
|
|
87
71
|
}
|
|
88
|
-
function
|
|
89
|
-
w++, n.value.forEach(
|
|
72
|
+
function K(e) {
|
|
73
|
+
w++, n.value.forEach(T), n.value = e.slice(0, 4).map(k), L.value = null, V.value = "", S.value = !1, B.length = 0;
|
|
90
74
|
}
|
|
91
75
|
A(
|
|
92
76
|
() => r.modelValue,
|
|
93
77
|
(e) => {
|
|
94
78
|
const m = y(e), o = B.indexOf(m);
|
|
95
|
-
if (m !== U && o < 0)
|
|
79
|
+
if (m !== U && o < 0) K(e);
|
|
96
80
|
else {
|
|
97
81
|
o >= 0 && B.splice(0, o + 1);
|
|
98
|
-
const _ = new Map(e.map((
|
|
99
|
-
for (const
|
|
100
|
-
if (
|
|
101
|
-
const D = _.get(d(
|
|
102
|
-
D && (
|
|
82
|
+
const _ = new Map(e.map((p) => [d(p), p]));
|
|
83
|
+
for (const p of n.value)
|
|
84
|
+
if (p.asset) {
|
|
85
|
+
const D = _.get(d(p.asset));
|
|
86
|
+
D && (p.asset = { ...D });
|
|
103
87
|
}
|
|
104
88
|
}
|
|
105
89
|
U = m;
|
|
@@ -107,16 +91,16 @@ const Ae = {
|
|
|
107
91
|
{ deep: !0, flush: "sync" }
|
|
108
92
|
), A(
|
|
109
93
|
() => r.scopeKey,
|
|
110
|
-
() =>
|
|
94
|
+
() => K(r.modelValue),
|
|
111
95
|
{ flush: "sync" }
|
|
112
96
|
), A(
|
|
113
97
|
() => r.disabled,
|
|
114
98
|
(e) => {
|
|
115
|
-
e &&
|
|
99
|
+
e && K(r.modelValue);
|
|
116
100
|
},
|
|
117
101
|
{ flush: "sync" }
|
|
118
|
-
),
|
|
119
|
-
P = !1,
|
|
102
|
+
), re(() => {
|
|
103
|
+
P = !1, K([]);
|
|
120
104
|
});
|
|
121
105
|
function W() {
|
|
122
106
|
const e = n.value.flatMap((m) => m.asset ? [{ ...m.asset }] : []);
|
|
@@ -126,35 +110,35 @@ const Ae = {
|
|
|
126
110
|
if (r.disabled || !e.file || e.state === "uploading") return;
|
|
127
111
|
const m = w, o = ++e.token;
|
|
128
112
|
e.state = "uploading", e.preview || (e.preview = URL.createObjectURL(e.file));
|
|
129
|
-
const _ = () => P && !r.disabled && w === m && e.token === o && n.value.some((
|
|
113
|
+
const _ = () => P && !r.disabled && w === m && e.token === o && n.value.some((p) => p.id === e.id);
|
|
130
114
|
try {
|
|
131
|
-
const
|
|
115
|
+
const p = await ye(e.file);
|
|
132
116
|
if (!_()) return;
|
|
133
|
-
const D = await r.upload(
|
|
117
|
+
const D = await r.upload(p.file);
|
|
134
118
|
if (!_()) return;
|
|
135
|
-
e.asset = { ...D }, e.state = "ready", e.file = void 0,
|
|
119
|
+
e.asset = { ...D }, e.state = "ready", e.file = void 0, T(e), W();
|
|
136
120
|
} catch {
|
|
137
121
|
_() && (e.state = "failed");
|
|
138
122
|
}
|
|
139
123
|
}
|
|
140
|
-
async function
|
|
124
|
+
async function H(e) {
|
|
141
125
|
r.disabled || e?.state === "uploading" || !e && n.value.length >= 4 || (L.value = e?.id ?? null, await J(), P && !r.disabled && s.value?.click());
|
|
142
126
|
}
|
|
143
127
|
function i(e, m = null) {
|
|
144
128
|
if (r.disabled || !e.length) return;
|
|
145
129
|
const o = e.filter(
|
|
146
|
-
(
|
|
130
|
+
(p) => ["image/png", "image/jpeg", "image/webp"].includes(p.type)
|
|
147
131
|
);
|
|
148
132
|
if (V.value = o.length !== e.length ? "请选择 PNG、JPEG 或 WebP 图片。" : "", m !== null) {
|
|
149
|
-
const
|
|
150
|
-
if (!
|
|
151
|
-
|
|
133
|
+
const p = n.value.find((D) => D.id === m);
|
|
134
|
+
if (!p || p.state === "uploading" || !o[0]) return;
|
|
135
|
+
T(p), p.file = o[0], p.state = "failed", G(p);
|
|
152
136
|
return;
|
|
153
137
|
}
|
|
154
138
|
const _ = 4 - n.value.length;
|
|
155
139
|
o.length > _ && (V.value = "商品图最多 4 张,超出的图片未上传。");
|
|
156
|
-
for (const
|
|
157
|
-
const D = { id: ++x, file:
|
|
140
|
+
for (const p of o.slice(0, _)) {
|
|
141
|
+
const D = { id: ++x, file: p, state: "failed", token: 0 };
|
|
158
142
|
n.value.push(D), G(n.value[n.value.length - 1]);
|
|
159
143
|
}
|
|
160
144
|
}
|
|
@@ -163,17 +147,17 @@ const Ae = {
|
|
|
163
147
|
m.value = "", L.value = null, i(o, _);
|
|
164
148
|
}
|
|
165
149
|
function c(e) {
|
|
166
|
-
const m =
|
|
150
|
+
const m = _e(e);
|
|
167
151
|
m.length && (e.preventDefault(), e.stopPropagation(), !r.disabled && i(m));
|
|
168
152
|
}
|
|
169
|
-
function
|
|
153
|
+
function F(e) {
|
|
170
154
|
S.value = !1, i(Array.from(e.dataTransfer?.files ?? []));
|
|
171
155
|
}
|
|
172
156
|
function X(e) {
|
|
173
|
-
r.disabled || (e.token++,
|
|
157
|
+
r.disabled || (e.token++, T(e), n.value = n.value.filter((m) => m.id !== e.id), W());
|
|
174
158
|
}
|
|
175
|
-
const q = (e) =>
|
|
176
|
-
return (e, m) => (
|
|
159
|
+
const q = (e) => v.get(e), j = (e) => v.get(e);
|
|
160
|
+
return (e, m) => (g(), h("div", {
|
|
177
161
|
class: Y(["product-picker", { "is-dragging": S.value, "is-disabled": l.disabled }]),
|
|
178
162
|
"data-testid": "product-dropzone",
|
|
179
163
|
tabindex: "0",
|
|
@@ -182,13 +166,17 @@ const Ae = {
|
|
|
182
166
|
"aria-busy": N.value,
|
|
183
167
|
onDragover: m[1] || (m[1] = Q((o) => S.value = !l.disabled, ["prevent"])),
|
|
184
168
|
onDragleave: m[2] || (m[2] = Q((o) => S.value = !1, ["prevent"])),
|
|
185
|
-
onDrop: Q(
|
|
169
|
+
onDrop: Q(F, ["prevent", "stop"])
|
|
186
170
|
}, [
|
|
187
171
|
u("div", Se, [
|
|
188
|
-
u("span", null,
|
|
189
|
-
|
|
172
|
+
u("span", null, [
|
|
173
|
+
M(f(a(t)("tools.listing_remake.productImagePicker_4bfdac53")), 1),
|
|
174
|
+
I(be, {
|
|
175
|
+
text: a(t)("tools.listing_remake.productImagePicker_39fb6b8b")
|
|
176
|
+
}, null, 8, ["text"])
|
|
177
|
+
]),
|
|
178
|
+
u("small", null, f(n.value.length) + "/4", 1)
|
|
190
179
|
]),
|
|
191
|
-
u("p", Ue, v(a(t)("tools.listing_remake.productImagePicker_39fb6b8b")), 1),
|
|
192
180
|
u("input", {
|
|
193
181
|
ref_key: "input",
|
|
194
182
|
ref: s,
|
|
@@ -199,108 +187,108 @@ const Ae = {
|
|
|
199
187
|
disabled: l.disabled || L.value === null && n.value.length >= 4,
|
|
200
188
|
"aria-label": a(t)("tools.listing_remake.productImagePicker_fddf94f3"),
|
|
201
189
|
onChange: b
|
|
202
|
-
}, null, 40,
|
|
190
|
+
}, null, 40, Ue),
|
|
203
191
|
u("div", {
|
|
204
192
|
class: Y(["product-grid", { empty: !n.value.length }])
|
|
205
193
|
}, [
|
|
206
|
-
(
|
|
194
|
+
(g(!0), h(ie, null, ne(n.value, (o, _) => (g(), h("div", {
|
|
207
195
|
key: o.id,
|
|
208
196
|
class: Y(["product-slot", { "has-error": o.state === "failed" }]),
|
|
209
197
|
"data-product-slot": ""
|
|
210
198
|
}, [
|
|
211
|
-
u("div",
|
|
212
|
-
o.preview && o.state !== "failed" || !o.asset && o.preview ? (
|
|
199
|
+
u("div", Be, [
|
|
200
|
+
o.preview && o.state !== "failed" || !o.asset && o.preview ? (g(), h("img", {
|
|
213
201
|
key: 0,
|
|
214
202
|
src: o.preview,
|
|
215
203
|
alt: a(t)("tools.listing_remake.productImagePicker_0f5d1e89", { p0: _ + 1 })
|
|
216
|
-
}, null, 8, Te)) : o.asset && q(o.asset) ? (
|
|
204
|
+
}, null, 8, Te)) : o.asset && q(o.asset) ? (g(), h("img", {
|
|
217
205
|
key: 1,
|
|
218
206
|
src: q(o.asset),
|
|
219
207
|
alt: a(t)("tools.listing_remake.productImagePicker_215123d8", { p0: _ + 1 })
|
|
220
|
-
}, null, 8,
|
|
221
|
-
u("span",
|
|
222
|
-
o.state === "uploading" ? (
|
|
223
|
-
I(a(
|
|
208
|
+
}, null, 8, Fe)) : E("", !0),
|
|
209
|
+
u("span", De, "A" + f(_ + 1), 1),
|
|
210
|
+
o.state === "uploading" ? (g(), h("span", Me, [
|
|
211
|
+
I(a(Le), {
|
|
224
212
|
size: 14,
|
|
225
213
|
class: "spinner",
|
|
226
214
|
"aria-hidden": "true"
|
|
227
215
|
}),
|
|
228
|
-
|
|
216
|
+
M(f(a(t)("tools.listing_remake.productImagePicker_403b055e")), 1)
|
|
229
217
|
])) : E("", !0),
|
|
230
|
-
o.asset && o.state !== "uploading" &&
|
|
218
|
+
o.asset && o.state !== "uploading" && j(o.asset) ? (g(), h("a", {
|
|
231
219
|
key: 3,
|
|
232
220
|
class: "view-image",
|
|
233
|
-
href:
|
|
221
|
+
href: j(o.asset),
|
|
234
222
|
target: "_blank",
|
|
235
223
|
rel: "noopener noreferrer",
|
|
236
224
|
"aria-label": a(t)("tools.listing_remake.productImagePicker_ed8a8c8e", { p0: _ + 1 })
|
|
237
225
|
}, [
|
|
238
|
-
I(a(
|
|
226
|
+
I(a(Ee), {
|
|
239
227
|
size: 13,
|
|
240
228
|
"aria-hidden": "true"
|
|
241
229
|
})
|
|
242
230
|
], 8, Ke)) : E("", !0)
|
|
243
231
|
]),
|
|
244
|
-
o.state === "failed" ? (
|
|
245
|
-
u("div",
|
|
246
|
-
o.state === "failed" ? (
|
|
232
|
+
o.state === "failed" ? (g(), h("p", qe, f(o.asset ? a(t)("tools.listing_remake.productImagePicker_8cd858e1") : a(t)("tools.listing_remake.productImagePicker_9a5fc6f3")), 1)) : E("", !0),
|
|
233
|
+
u("div", Ne, [
|
|
234
|
+
o.state === "failed" ? (g(), h("button", {
|
|
247
235
|
key: 0,
|
|
248
236
|
type: "button",
|
|
249
237
|
disabled: l.disabled,
|
|
250
238
|
"aria-label": a(t)("tools.listing_remake.productImagePicker_057ee503", { p0: _ + 1 }),
|
|
251
|
-
onClick: (
|
|
239
|
+
onClick: (p) => G(o)
|
|
252
240
|
}, [
|
|
253
|
-
I(a(
|
|
241
|
+
I(a(oe), {
|
|
254
242
|
size: 12,
|
|
255
243
|
"aria-hidden": "true"
|
|
256
244
|
}),
|
|
257
|
-
|
|
258
|
-
], 8,
|
|
245
|
+
M(f(a(t)("tools.listing_remake.productImagePicker_b8784c8d")), 1)
|
|
246
|
+
], 8, Ge)) : (g(), h("button", {
|
|
259
247
|
key: 1,
|
|
260
248
|
type: "button",
|
|
261
249
|
disabled: l.disabled || o.state === "uploading",
|
|
262
250
|
"aria-label": a(t)("tools.listing_remake.productImagePicker_7379e7e6", { p0: _ + 1 }),
|
|
263
|
-
onClick: (
|
|
251
|
+
onClick: (p) => H(o)
|
|
264
252
|
}, [
|
|
265
|
-
I(a(
|
|
253
|
+
I(a(oe), {
|
|
266
254
|
size: 12,
|
|
267
255
|
"aria-hidden": "true"
|
|
268
256
|
}),
|
|
269
|
-
|
|
257
|
+
M(f(a(t)("tools.listing_remake.productImagePicker_131b13aa")), 1)
|
|
270
258
|
], 8, He)),
|
|
271
259
|
u("button", {
|
|
272
260
|
type: "button",
|
|
273
261
|
disabled: l.disabled,
|
|
274
262
|
"aria-label": a(t)("tools.listing_remake.productImagePicker_3aff083d", { p0: _ + 1 }),
|
|
275
|
-
onClick: (
|
|
263
|
+
onClick: (p) => X(o)
|
|
276
264
|
}, [
|
|
277
|
-
I(a(
|
|
265
|
+
I(a(ke), {
|
|
278
266
|
size: 12,
|
|
279
267
|
"aria-hidden": "true"
|
|
280
268
|
})
|
|
281
|
-
], 8,
|
|
269
|
+
], 8, je)
|
|
282
270
|
])
|
|
283
271
|
], 2))), 128)),
|
|
284
|
-
n.value.length < 4 ? (
|
|
272
|
+
n.value.length < 4 ? (g(), h("button", {
|
|
285
273
|
key: 0,
|
|
286
274
|
class: "add-product",
|
|
287
275
|
type: "button",
|
|
288
276
|
disabled: l.disabled,
|
|
289
277
|
"aria-label": a(t)("tools.listing_remake.productImagePicker_82376c3b"),
|
|
290
|
-
onClick: m[0] || (m[0] = (o) =>
|
|
278
|
+
onClick: m[0] || (m[0] = (o) => H())
|
|
291
279
|
}, [
|
|
292
|
-
I(a(
|
|
280
|
+
I(a(he), {
|
|
293
281
|
size: 21,
|
|
294
282
|
"aria-hidden": "true"
|
|
295
283
|
}),
|
|
296
|
-
u("span", null,
|
|
297
|
-
u("small", null,
|
|
298
|
-
], 8,
|
|
284
|
+
u("span", null, f(a(t)("common.app_9f0d4e46")), 1),
|
|
285
|
+
u("small", null, f(a(t)("tools.listing_remake.productImagePicker_9c3ce301")), 1)
|
|
286
|
+
], 8, Je)) : E("", !0)
|
|
299
287
|
], 2),
|
|
300
|
-
V.value ? (
|
|
288
|
+
V.value ? (g(), h("p", Oe, f(a(C)(V.value)), 1)) : E("", !0)
|
|
301
289
|
], 42, ze));
|
|
302
290
|
}
|
|
303
|
-
}),
|
|
291
|
+
}), Xe = /* @__PURE__ */ se(We, [["__scopeId", "data-v-c7dbea53"]]), Z = [
|
|
304
292
|
{
|
|
305
293
|
value: "English (US)",
|
|
306
294
|
label: "英语 · 美国",
|
|
@@ -377,14 +365,14 @@ const Ae = {
|
|
|
377
365
|
{ value: "Dutch", label: "荷兰语 · 荷兰", code: "nl-NL", aliases: ["Netherlands", "Nederlands"] },
|
|
378
366
|
{ value: "Arabic", label: "阿拉伯语", code: "ar", aliases: ["العربية"] }
|
|
379
367
|
];
|
|
380
|
-
function
|
|
368
|
+
function Qe(l) {
|
|
381
369
|
const R = l.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean);
|
|
382
370
|
return Z.filter((t) => {
|
|
383
371
|
const C = [t.value, t.label, t.code, ...t.aliases].join(" ").toLocaleLowerCase();
|
|
384
372
|
return R.every((r) => C.includes(r));
|
|
385
373
|
});
|
|
386
374
|
}
|
|
387
|
-
const
|
|
375
|
+
const Ye = ["for"], Ze = { class: "lir-language-input" }, ea = ["id", "value", "disabled", "placeholder", "aria-expanded", "aria-controls", "aria-activedescendant"], aa = ["aria-label", "disabled"], ta = ["aria-label", "aria-expanded", "disabled"], la = ["id", "aria-label", "data-placement"], ia = ["id", "aria-selected", "data-value", "data-custom", "onClick"], na = { key: 0 }, sa = /* @__PURE__ */ ee({
|
|
388
376
|
__name: "TargetLanguagePicker",
|
|
389
377
|
props: {
|
|
390
378
|
modelValue: {},
|
|
@@ -392,26 +380,26 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
392
380
|
},
|
|
393
381
|
emits: ["update:modelValue"],
|
|
394
382
|
setup(l, { emit: R }) {
|
|
395
|
-
const { ui: t, uiText: C, uiTargetLanguage: r, batchI18n: z } = ae(), x = l, w = R, P = $(), d = $(!1), y = $(""), k = $(-1), n = ve(),
|
|
383
|
+
const { ui: t, uiText: C, uiTargetLanguage: r, batchI18n: z } = ae(), x = l, w = R, P = $(), d = $(!1), y = $(""), k = $(-1), n = ve(), v = (i) => {
|
|
396
384
|
const b = Z.find((c) => c.value === i);
|
|
397
385
|
return b ? r(b.code) : i;
|
|
398
|
-
}, s = $(
|
|
386
|
+
}, s = $(v(x.modelValue)), L = $("below"), V = $(240), S = $(66);
|
|
399
387
|
function U() {
|
|
400
388
|
if (!d.value || !P.value) return;
|
|
401
389
|
const i = P.value.getBoundingClientRect(), b = P.value.querySelector(".lir-language-input")?.getBoundingClientRect();
|
|
402
390
|
if (!b) return;
|
|
403
|
-
const c = P.value.closest(".tools-panel")?.getBoundingClientRect(),
|
|
404
|
-
L.value = q < 240 &&
|
|
391
|
+
const c = P.value.closest(".tools-panel")?.getBoundingClientRect(), F = Math.min(window.innerHeight, c?.bottom ?? window.innerHeight), X = Math.max(0, c?.top ?? 0), q = Math.max(0, F - b.bottom - 5), j = Math.max(0, b.top - X - 5);
|
|
392
|
+
L.value = q < 240 && j > q ? "above" : "below", V.value = Math.min(240, L.value === "above" ? j : q), S.value = L.value === "above" ? i.bottom - b.top + 5 : b.bottom - i.top + 5;
|
|
405
393
|
}
|
|
406
394
|
A(d, async (i) => {
|
|
407
395
|
i && (await J(), U());
|
|
408
396
|
}), A(
|
|
409
397
|
() => x.modelValue,
|
|
410
398
|
(i) => {
|
|
411
|
-
s.value =
|
|
399
|
+
s.value = v(i);
|
|
412
400
|
}
|
|
413
401
|
), A(z.global.locale, () => {
|
|
414
|
-
y.value.trim() || (s.value =
|
|
402
|
+
y.value.trim() || (s.value = v(x.modelValue));
|
|
415
403
|
}), A(
|
|
416
404
|
() => x.disabled,
|
|
417
405
|
(i) => {
|
|
@@ -422,7 +410,7 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
422
410
|
});
|
|
423
411
|
const B = le(() => {
|
|
424
412
|
const i = Z.filter(
|
|
425
|
-
(c) =>
|
|
413
|
+
(c) => Qe(y.value).includes(c) || y.value.trim().toLocaleLowerCase().split(/\s+/).every((F) => r(c.code).toLocaleLowerCase().includes(F))
|
|
426
414
|
).map((c) => ({
|
|
427
415
|
value: c.value,
|
|
428
416
|
label: r(c.code),
|
|
@@ -458,10 +446,10 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
458
446
|
function N() {
|
|
459
447
|
x.disabled || (y.value = "", k.value = -1, d.value = !0);
|
|
460
448
|
}
|
|
461
|
-
function
|
|
462
|
-
x.disabled || (s.value =
|
|
449
|
+
function T(i) {
|
|
450
|
+
x.disabled || (s.value = v(i), y.value = "", k.value = -1, d.value = !1, w("update:modelValue", i));
|
|
463
451
|
}
|
|
464
|
-
function
|
|
452
|
+
function K(i) {
|
|
465
453
|
x.disabled || (s.value = i.target.value, y.value = s.value, k.value = -1, d.value = !0, w("update:modelValue", s.value));
|
|
466
454
|
}
|
|
467
455
|
function W(i) {
|
|
@@ -474,20 +462,20 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
474
462
|
i.preventDefault(), d.value || (y.value = "", d.value = !0, k.value = -1);
|
|
475
463
|
const b = B.value.length;
|
|
476
464
|
b && (k.value = i.key === "ArrowDown" ? (k.value + 1) % b : k.value <= 0 ? b - 1 : k.value - 1);
|
|
477
|
-
} else i.key === "Enter" && d.value && (i.preventDefault(), k.value >= 0 ?
|
|
465
|
+
} else i.key === "Enter" && d.value && (i.preventDefault(), k.value >= 0 ? T(B.value[k.value].value) : d.value = !1);
|
|
478
466
|
}
|
|
479
467
|
}
|
|
480
468
|
function G(i) {
|
|
481
469
|
P.value?.contains(i.relatedTarget) || (d.value = !1);
|
|
482
470
|
}
|
|
483
|
-
function
|
|
471
|
+
function H(i) {
|
|
484
472
|
P.value?.contains(i.target) || (d.value = !1);
|
|
485
473
|
}
|
|
486
474
|
return ge(() => {
|
|
487
|
-
document.addEventListener("pointerdown",
|
|
488
|
-
}),
|
|
489
|
-
document.removeEventListener("pointerdown",
|
|
490
|
-
}), (i, b) => (
|
|
475
|
+
document.addEventListener("pointerdown", H), window.addEventListener("resize", U), document.addEventListener("scroll", U, !0);
|
|
476
|
+
}), re(() => {
|
|
477
|
+
document.removeEventListener("pointerdown", H), window.removeEventListener("resize", U), document.removeEventListener("scroll", U, !0);
|
|
478
|
+
}), (i, b) => (g(), h("div", {
|
|
491
479
|
ref_key: "root",
|
|
492
480
|
ref: P,
|
|
493
481
|
class: "lir-language-picker",
|
|
@@ -495,8 +483,8 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
495
483
|
}, [
|
|
496
484
|
u("label", {
|
|
497
485
|
for: `${a(n)}-input`
|
|
498
|
-
},
|
|
499
|
-
u("div",
|
|
486
|
+
}, f(a(t)("tools.listing_remake.targetLanguagePicker_c9dfdcf7")), 9, Ye),
|
|
487
|
+
u("div", Ze, [
|
|
500
488
|
u("input", {
|
|
501
489
|
id: `${a(n)}-input`,
|
|
502
490
|
name: "targetLanguage",
|
|
@@ -512,21 +500,21 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
512
500
|
"aria-controls": `${a(n)}-list`,
|
|
513
501
|
"aria-activedescendant": d.value && k.value >= 0 ? `${a(n)}-option-${k.value}` : void 0,
|
|
514
502
|
onFocus: N,
|
|
515
|
-
onInput:
|
|
503
|
+
onInput: K,
|
|
516
504
|
onKeydown: W
|
|
517
|
-
}, null, 40,
|
|
518
|
-
s.value ? (
|
|
505
|
+
}, null, 40, ea),
|
|
506
|
+
s.value ? (g(), h("button", {
|
|
519
507
|
key: 0,
|
|
520
508
|
type: "button",
|
|
521
509
|
"aria-label": a(t)("tools.listing_remake.targetLanguagePicker_a89e3879"),
|
|
522
510
|
disabled: l.disabled,
|
|
523
|
-
onClick: b[0] || (b[0] = (c) =>
|
|
511
|
+
onClick: b[0] || (b[0] = (c) => T(""))
|
|
524
512
|
}, [
|
|
525
|
-
I(a(
|
|
513
|
+
I(a(we), {
|
|
526
514
|
size: 14,
|
|
527
515
|
"aria-hidden": "true"
|
|
528
516
|
})
|
|
529
|
-
], 8,
|
|
517
|
+
], 8, aa)) : E("", !0),
|
|
530
518
|
u("button", {
|
|
531
519
|
type: "button",
|
|
532
520
|
"aria-label": a(t)("tools.listing_remake.targetLanguagePicker_8863a1ae"),
|
|
@@ -538,9 +526,9 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
538
526
|
size: 15,
|
|
539
527
|
"aria-hidden": "true"
|
|
540
528
|
})
|
|
541
|
-
], 8,
|
|
529
|
+
], 8, ta)
|
|
542
530
|
]),
|
|
543
|
-
d.value && !l.disabled ? (
|
|
531
|
+
d.value && !l.disabled ? (g(), h("div", {
|
|
544
532
|
key: 0,
|
|
545
533
|
id: `${a(n)}-list`,
|
|
546
534
|
role: "listbox",
|
|
@@ -553,43 +541,42 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
553
541
|
bottom: L.value === "above" ? `${S.value}px` : void 0
|
|
554
542
|
})
|
|
555
543
|
}, [
|
|
556
|
-
(
|
|
557
|
-
id: `${a(n)}-option-${
|
|
544
|
+
(g(!0), h(ie, null, ne(B.value, (c, F) => (g(), h("button", {
|
|
545
|
+
id: `${a(n)}-option-${F}`,
|
|
558
546
|
key: c.value,
|
|
559
547
|
type: "button",
|
|
560
548
|
role: "option",
|
|
561
549
|
"aria-selected": l.modelValue === c.value,
|
|
562
550
|
"data-value": c.value,
|
|
563
551
|
"data-custom": c.custom,
|
|
564
|
-
class: Y({ active: k.value ===
|
|
552
|
+
class: Y({ active: k.value === F }),
|
|
565
553
|
onPointerdown: b[2] || (b[2] = Q(() => {
|
|
566
554
|
}, ["prevent"])),
|
|
567
|
-
onClick: (X) =>
|
|
555
|
+
onClick: (X) => T(c.value)
|
|
568
556
|
}, [
|
|
569
557
|
u("span", null, [
|
|
570
|
-
|
|
571
|
-
l.modelValue === c.value ? (
|
|
558
|
+
M(f(a(C)(c.label)), 1),
|
|
559
|
+
l.modelValue === c.value ? (g(), O(a(me), {
|
|
572
560
|
key: 0,
|
|
573
561
|
size: 13,
|
|
574
562
|
"aria-hidden": "true"
|
|
575
563
|
})) : E("", !0)
|
|
576
564
|
]),
|
|
577
|
-
c.detail ? (
|
|
578
|
-
], 42,
|
|
579
|
-
], 12,
|
|
580
|
-
u("p", oa, v(a(t)("tools.listing_remake.targetLanguagePicker_fce2cda5")), 1)
|
|
565
|
+
c.detail ? (g(), h("small", na, f(c.detail), 1)) : E("", !0)
|
|
566
|
+
], 42, ia))), 128))
|
|
567
|
+
], 12, la)) : E("", !0)
|
|
581
568
|
], 544));
|
|
582
569
|
}
|
|
583
|
-
}),
|
|
570
|
+
}), oa = /* @__PURE__ */ se(sa, [["__scopeId", "data-v-763e889c"]]), ua = ["disabled"], ra = {
|
|
584
571
|
class: "reference-summary",
|
|
585
572
|
"data-testid": "reference-count"
|
|
586
|
-
},
|
|
573
|
+
}, da = ["open"], ca = { class: "optional-label" }, ma = {
|
|
587
574
|
class: "sr-only",
|
|
588
575
|
for: "lir-product-info"
|
|
589
|
-
},
|
|
576
|
+
}, va = ["value", "placeholder"], ga = { class: "lir-section" }, pa = {
|
|
590
577
|
class: "lir-label",
|
|
591
578
|
id: "lir-mode-label"
|
|
592
|
-
},
|
|
579
|
+
}, fa = ["aria-label"], ba = ["data-mode", "aria-checked", "tabindex", "disabled", "onClick", "onKeydown"], ka = { class: "mode-card-top" }, ha = { class: "requirements-label" }, ya = ["value", "placeholder"], _a = /* @__PURE__ */ ee({
|
|
593
580
|
__name: "ListingRemakePanel",
|
|
594
581
|
props: {
|
|
595
582
|
modelValue: {},
|
|
@@ -610,41 +597,41 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
610
597
|
);
|
|
611
598
|
function d(n) {
|
|
612
599
|
if (r.disabled) return;
|
|
613
|
-
const
|
|
600
|
+
const v = { ...r.modelValue, ...n };
|
|
614
601
|
z("update:modelValue", {
|
|
615
|
-
...
|
|
616
|
-
productAssets:
|
|
602
|
+
...v,
|
|
603
|
+
productAssets: v.productAssets.map((s) => ({ ...s }))
|
|
617
604
|
});
|
|
618
605
|
}
|
|
619
606
|
function y(n) {
|
|
620
607
|
d({ visualStyle: "", extraRequirements: n });
|
|
621
608
|
}
|
|
622
|
-
async function k(n,
|
|
609
|
+
async function k(n, v) {
|
|
623
610
|
if (r.disabled) return;
|
|
624
|
-
let s =
|
|
611
|
+
let s = v;
|
|
625
612
|
if (["ArrowLeft", "ArrowUp"].includes(n.key))
|
|
626
|
-
s = (
|
|
627
|
-
else if (["ArrowRight", "ArrowDown"].includes(n.key)) s = (
|
|
613
|
+
s = (v + w.length - 1) % w.length;
|
|
614
|
+
else if (["ArrowRight", "ArrowDown"].includes(n.key)) s = (v + 1) % w.length;
|
|
628
615
|
else if (n.key === "Home") s = 0;
|
|
629
616
|
else if (n.key === "End") s = w.length - 1;
|
|
630
617
|
else if (!["Enter", " "].includes(n.key)) return;
|
|
631
618
|
n.preventDefault(), d({ remakeLevel: w[s].value }), await J(), x.value?.querySelector(`[data-mode="${w[s].value}"]`)?.focus();
|
|
632
619
|
}
|
|
633
|
-
return (n,
|
|
620
|
+
return (n, v) => (g(), h("fieldset", {
|
|
634
621
|
class: "tool-fields lir-fields",
|
|
635
622
|
disabled: l.disabled
|
|
636
623
|
}, [
|
|
637
|
-
u("div",
|
|
638
|
-
u("span", null,
|
|
639
|
-
u("strong", null,
|
|
624
|
+
u("div", ra, [
|
|
625
|
+
u("span", null, f(a(t)("tools.listing_remake.listingRemakePanel_e8a1ec99")), 1),
|
|
626
|
+
u("strong", null, f(a(t)("tools.listing_remake.listingRemakePanel_e8038b46", { p0: l.count ?? 0 })), 1)
|
|
640
627
|
]),
|
|
641
|
-
I(
|
|
628
|
+
I(Xe, {
|
|
642
629
|
"scope-key": l.scopeKey,
|
|
643
630
|
"model-value": l.modelValue.productAssets,
|
|
644
631
|
disabled: l.disabled,
|
|
645
632
|
upload: l.upload,
|
|
646
|
-
"onUpdate:modelValue":
|
|
647
|
-
onBusy:
|
|
633
|
+
"onUpdate:modelValue": v[0] || (v[0] = (s) => d({ productAssets: s })),
|
|
634
|
+
onBusy: v[1] || (v[1] = (s) => z("busy", s))
|
|
648
635
|
}, null, 8, ["scope-key", "model-value", "disabled", "upload"]),
|
|
649
636
|
u("details", {
|
|
650
637
|
class: "product-facts",
|
|
@@ -652,16 +639,15 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
652
639
|
}, [
|
|
653
640
|
u("summary", null, [
|
|
654
641
|
u("span", null, [
|
|
655
|
-
|
|
656
|
-
u("span",
|
|
642
|
+
M(f(a(t)("tools.listing_remake.listingRemakePanel_d241dc8f")), 1),
|
|
643
|
+
u("span", ca, f(a(t)("tools.listing_remake.listingRemakePanel_53735240")), 1)
|
|
657
644
|
]),
|
|
658
645
|
I(a(ce), {
|
|
659
646
|
size: 15,
|
|
660
647
|
"aria-hidden": "true"
|
|
661
648
|
})
|
|
662
649
|
]),
|
|
663
|
-
u("
|
|
664
|
-
u("label", ga, v(a(t)("tools.listing_remake.listingRemakePanel_51e36734")), 1),
|
|
650
|
+
u("label", ma, f(a(t)("tools.listing_remake.listingRemakePanel_51e36734")), 1),
|
|
665
651
|
u("textarea", {
|
|
666
652
|
id: "lir-product-info",
|
|
667
653
|
name: "productInfo",
|
|
@@ -669,11 +655,11 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
669
655
|
maxlength: "4000",
|
|
670
656
|
rows: "3",
|
|
671
657
|
placeholder: a(t)("tools.listing_remake.listingRemakePanel_9cbbe05c"),
|
|
672
|
-
onInput:
|
|
673
|
-
}, null, 40,
|
|
674
|
-
], 8,
|
|
675
|
-
u("section",
|
|
676
|
-
u("span",
|
|
658
|
+
onInput: v[2] || (v[2] = (s) => d({ productInfo: s.target.value }))
|
|
659
|
+
}, null, 40, va)
|
|
660
|
+
], 8, da),
|
|
661
|
+
u("section", ga, [
|
|
662
|
+
u("span", pa, f(a(t)("tools.listing_remake.listingRemakePanel_a821d8b1")), 1),
|
|
677
663
|
u("div", {
|
|
678
664
|
ref_key: "modeGroup",
|
|
679
665
|
ref: x,
|
|
@@ -681,7 +667,7 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
681
667
|
role: "radiogroup",
|
|
682
668
|
"aria-label": a(t)("tools.listing_remake.listingRemakePanel_b2f7e8b0")
|
|
683
669
|
}, [
|
|
684
|
-
(
|
|
670
|
+
(g(), h(ie, null, ne(w, (s, L) => u("button", {
|
|
685
671
|
key: s.value,
|
|
686
672
|
type: "button",
|
|
687
673
|
role: "radio",
|
|
@@ -692,70 +678,70 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
692
678
|
onClick: (V) => d({ remakeLevel: s.value }),
|
|
693
679
|
onKeydown: (V) => k(V, L)
|
|
694
680
|
}, [
|
|
695
|
-
u("span",
|
|
696
|
-
s.value === "close_transfer" ? (
|
|
681
|
+
u("span", ka, [
|
|
682
|
+
s.value === "close_transfer" ? (g(), O(a(Ae), {
|
|
697
683
|
key: 0,
|
|
698
684
|
size: 17,
|
|
699
685
|
"aria-hidden": "true"
|
|
700
|
-
})) : (
|
|
686
|
+
})) : (g(), O(a(Pe), {
|
|
701
687
|
key: 1,
|
|
702
688
|
size: 17,
|
|
703
689
|
"aria-hidden": "true"
|
|
704
690
|
})),
|
|
705
|
-
l.modelValue.remakeLevel === s.value ? (
|
|
691
|
+
l.modelValue.remakeLevel === s.value ? (g(), O(a(me), {
|
|
706
692
|
key: 2,
|
|
707
693
|
size: 14,
|
|
708
694
|
class: "mode-check",
|
|
709
695
|
"aria-hidden": "true"
|
|
710
696
|
})) : E("", !0)
|
|
711
697
|
]),
|
|
712
|
-
u("strong", null,
|
|
713
|
-
u("small", null,
|
|
714
|
-
], 40,
|
|
715
|
-
], 8,
|
|
698
|
+
u("strong", null, f(a(C)(s.title)), 1),
|
|
699
|
+
u("small", null, f(a(C)(s.description)), 1)
|
|
700
|
+
], 40, ba)), 64))
|
|
701
|
+
], 8, fa)
|
|
716
702
|
]),
|
|
717
|
-
I(
|
|
703
|
+
I(oa, {
|
|
718
704
|
"model-value": l.modelValue.targetLanguage,
|
|
719
705
|
disabled: l.disabled,
|
|
720
|
-
"onUpdate:modelValue":
|
|
706
|
+
"onUpdate:modelValue": v[3] || (v[3] = (s) => d({ targetLanguage: s }))
|
|
721
707
|
}, null, 8, ["model-value", "disabled"]),
|
|
722
|
-
u("label",
|
|
723
|
-
|
|
708
|
+
u("label", ha, [
|
|
709
|
+
M(f(a(t)("common.toolPanel_40c2f529")), 1),
|
|
724
710
|
u("textarea", {
|
|
725
711
|
name: "combinedRequirements",
|
|
726
712
|
value: P.value,
|
|
727
713
|
maxlength: "4000",
|
|
728
714
|
rows: "3",
|
|
729
715
|
placeholder: a(t)("tools.listing_remake.listingRemakePanel_7f8144e1"),
|
|
730
|
-
onInput:
|
|
731
|
-
}, null, 40,
|
|
716
|
+
onInput: v[4] || (v[4] = (s) => y(s.target.value))
|
|
717
|
+
}, null, 40, ya)
|
|
732
718
|
])
|
|
733
|
-
], 8,
|
|
719
|
+
], 8, ua));
|
|
734
720
|
}
|
|
735
|
-
}),
|
|
721
|
+
}), wa = /* @__PURE__ */ se(_a, [["__scopeId", "data-v-6b184509"]]), Pa = {
|
|
736
722
|
class: "hint",
|
|
737
723
|
"data-testid": "lir-submission-summary"
|
|
738
|
-
},
|
|
724
|
+
}, Ca = /* @__PURE__ */ ee({
|
|
739
725
|
__name: "ListingToolPanel",
|
|
740
726
|
props: {
|
|
741
727
|
context: {}
|
|
742
728
|
},
|
|
743
729
|
setup(l) {
|
|
744
|
-
const { ui: R } = ae(), t = l, C =
|
|
745
|
-
return (x, w) => (
|
|
730
|
+
const { ui: R } = ae(), t = l, C = $e(() => t.context), r = $(!1), z = Ie(() => t.context, "lir");
|
|
731
|
+
return (x, w) => (g(), O(xe, {
|
|
746
732
|
context: l.context,
|
|
747
733
|
layout: "contained",
|
|
748
734
|
class: "lir-panel"
|
|
749
735
|
}, {
|
|
750
736
|
actions: te(() => [
|
|
751
|
-
I(
|
|
737
|
+
I(Ce, {
|
|
752
738
|
context: l.context,
|
|
753
739
|
available: a(ue)(l.context),
|
|
754
740
|
ready: !!a(C).lir.productAssets.length && !r.value,
|
|
755
741
|
label: r.value ? a(R)("common.toolPanel_dfd62459") : void 0
|
|
756
742
|
}, {
|
|
757
743
|
default: te(() => [
|
|
758
|
-
u("p",
|
|
744
|
+
u("p", Pa, f(a(R)("common.toolPanel_d3ef5424", {
|
|
759
745
|
p0: a(C).lir.productAssets.length,
|
|
760
746
|
p1: l.context.view.count
|
|
761
747
|
})), 1)
|
|
@@ -764,7 +750,7 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
764
750
|
}, 8, ["context", "available", "ready", "label"])
|
|
765
751
|
]),
|
|
766
752
|
default: te(() => [
|
|
767
|
-
I(
|
|
753
|
+
I(wa, {
|
|
768
754
|
"scope-key": l.context.view.batchId,
|
|
769
755
|
"model-value": a(C).lir,
|
|
770
756
|
disabled: l.context.readonly || !a(ue)(l.context),
|
|
@@ -779,5 +765,5 @@ const Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "
|
|
|
779
765
|
}
|
|
780
766
|
});
|
|
781
767
|
export {
|
|
782
|
-
|
|
768
|
+
Ca as default
|
|
783
769
|
};
|