@beeintel/batch-image 1.0.1 → 1.1.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.
Files changed (60) hide show
  1. package/README.md +188 -184
  2. package/dist/chunks/{AdjustToolPanel-BELqYSUR.js → AdjustToolPanel-BEqQFYEO.js} +30 -29
  3. package/dist/chunks/BackgroundToolPanel-Dw3uT7S-.js +43 -0
  4. package/dist/chunks/{BatchMaterials-niGKrga3.js → BatchMaterials-HiK3VQc3.js} +1 -1
  5. package/dist/chunks/BatchModeChoices-BAslK92y.js +118 -0
  6. package/dist/chunks/{BatchOutputColorPicker-CCvmIF-b.js → BatchOutputColorPicker-CgtnQBA3.js} +1 -1
  7. package/dist/chunks/BatchReferenceFields-DbjXtKC4.js +308 -0
  8. package/dist/chunks/BeautifyToolPanel-imF6jnTG.js +220 -0
  9. package/dist/chunks/{BrandMarkToolPanel-FKxXth_3.js → BrandMarkToolPanel-C-gouhaT.js} +319 -333
  10. package/dist/chunks/{ContentTrimControl-BQfigZPq.js → ContentTrimControl-LgNIZbXa.js} +2 -2
  11. package/dist/chunks/{CropToolPanel-BhSuHkYm.js → CropToolPanel-DsPgFUWI.js} +60 -56
  12. package/dist/chunks/CutoutToolPanel-BhJngz89.js +78 -0
  13. package/dist/chunks/DisclosureToolPanel-DOaWm-im.js +72 -0
  14. package/dist/chunks/ExpandToolPanel-CuufFNiC.js +69 -0
  15. package/dist/chunks/{ImageEffectsToolPanel-BRLPIt4q.js → ImageEffectsToolPanel-BsfBZdYp.js} +63 -52
  16. package/dist/chunks/{IpAuditToolPanel-DfY-mBSe.js → IpAuditToolPanel-DOB7TEoI.js} +15 -13
  17. package/dist/chunks/{ListingToolPanel-B9Yh3LBK.js → ListingToolPanel-Dapetiw-.js} +170 -184
  18. package/dist/chunks/{MaterialSelectionPlate-DhioUjdW.js → MaterialSelectionPlate-BjNttUh8.js} +4 -4
  19. package/dist/chunks/MetadataToolPanel-G56L-VTi.js +116 -0
  20. package/dist/chunks/{OrientToolPanel-BTrwaWBm.js → OrientToolPanel-BJHfMixX.js} +3 -3
  21. package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-DI8W37RA.js +122 -0
  22. package/dist/chunks/ResizeToolPanel-HDDArzWx.js +1171 -0
  23. package/dist/chunks/RetouchToolPanel-Drei3Dj7.js +358 -0
  24. package/dist/chunks/ShadowToolPanel-BM5MRfYB.js +258 -0
  25. package/dist/chunks/SvgExportToolPanel-D3KNi5AS.js +208 -0
  26. package/dist/chunks/TranslationToolPanel-DbNO3IKA.js +104 -0
  27. package/dist/chunks/{UpscaleToolPanel-D0H-j2Tr.js → UpscaleToolPanel-5kT1uUl0.js} +44 -39
  28. package/dist/chunks/arrow-up-DT1zSe8a.js +18 -0
  29. package/dist/chunks/{engine-D-T-1RSx.js → engine-BZ0nkcqj.js} +1 -1
  30. package/dist/chunks/{entry-DK9FjQZ_.js → entry-FNjvjYxd.js} +7512 -7395
  31. package/dist/chunks/{hosted-resources-COzZ7nZY.js → hosted-resources-C3iu_zn4.js} +2 -2
  32. package/dist/chunks/{loader-circle-UFoEem2a.js → loader-circle-pki8gM3_.js} +1 -1
  33. package/dist/chunks/{motionFeatures-D4miwXxc.js → motionFeatures-Cp11tdeb.js} +1 -1
  34. package/dist/chunks/{search-BjTSm1KS.js → search-BNwQCPna.js} +1 -1
  35. package/dist/chunks/{standard-cutout-vPpP6xBc.js → standard-cutout-iIOMfl6q.js} +1 -1
  36. package/dist/chunks/{static-logo-2F9ORZWc.js → static-logo-7HK4ubmZ.js} +1 -1
  37. package/dist/config.d.ts +6 -0
  38. package/dist/index.d.ts +1 -0
  39. package/dist/index.js +6 -5
  40. package/dist/processing.js +3 -3
  41. package/dist/resources.json +113 -103
  42. package/dist/slots.d.ts +2 -0
  43. package/dist/style.css +1 -1
  44. package/dist/tool-links.d.ts +10 -0
  45. package/dist/types/batch/public/config.d.ts +6 -0
  46. package/package.json +95 -95
  47. package/dist/chunks/BackgroundToolPanel-Dy_l8KFl.js +0 -41
  48. package/dist/chunks/BatchModeChoices-BRqn6zNI.js +0 -111
  49. package/dist/chunks/BatchReferenceFields-C4t7OSTw.js +0 -316
  50. package/dist/chunks/BeautifyToolPanel-Dc-ddaBC.js +0 -215
  51. package/dist/chunks/CutoutToolPanel-BfaZZSE_.js +0 -73
  52. package/dist/chunks/DisclosureToolPanel-B_oc5fld.js +0 -76
  53. package/dist/chunks/ExpandToolPanel-D_ZODTUZ.js +0 -67
  54. package/dist/chunks/MetadataToolPanel-KVrtb3K0.js +0 -104
  55. package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-C2kJCYeA.js +0 -102
  56. package/dist/chunks/ResizeToolPanel-Ch_-WR74.js +0 -1178
  57. package/dist/chunks/RetouchToolPanel-BTS33Dsd.js +0 -350
  58. package/dist/chunks/ShadowToolPanel-DxJE4eyV.js +0 -254
  59. package/dist/chunks/SvgExportToolPanel-RHmuQARH.js +0 -219
  60. package/dist/chunks/TranslationToolPanel-B_qTA1hM.js +0 -125
@@ -1,14 +1,14 @@
1
- import { defineComponent as ee, ref as $, computed as le, watch as A, onBeforeUnmount as de, openBlock as p, createElementBlock as h, withModifiers as Q, unref as a, normalizeClass as Y, createElementVNode as u, toDisplayString as v, Fragment as ie, renderList as ne, createCommentVNode as E, createVNode as I, createTextVNode as K, nextTick as J, useId as ve, onMounted as ge, normalizeStyle as pe, createBlock as O, withCtx as te } from "vue";
2
- import { J as se, F as ae, aw as fe, ai as be, ah as ke, ax as he, ay as ye, _ as oe, aj as _e, S as ce, a4 as me, az as we, G as Pe } from "./entry-DK9FjQZ_.js";
3
- import { L as xe } from "./loader-circle-UFoEem2a.js";
4
- import { u as Le, a as $e, b as ue, _ as Ie } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-C2kJCYeA.js";
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-FNjvjYxd.js";
3
+ import { L as Le } from "./loader-circle-pki8gM3_.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-DI8W37RA.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 Ce = {
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
- }, Ve = se(Ce);
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 Ee = {
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
- }, Re = se(Ee);
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"], Ne = {
38
+ }, Ke = ["href", "aria-label"], qe = {
55
39
  key: 0,
56
40
  class: "slot-error",
57
41
  role: "alert"
58
- }, Ge = { class: "product-actions" }, je = ["disabled", "aria-label", "onClick"], He = ["disabled", "aria-label", "onClick"], Je = ["disabled", "aria-label", "onClick"], Oe = ["disabled", "aria-label"], We = {
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
- }, Xe = /* @__PURE__ */ ee({
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)), g = fe(
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 M(e) {
69
+ function T(e) {
86
70
  e.preview && URL.revokeObjectURL(e.preview), e.preview = void 0;
87
71
  }
88
- function F(e) {
89
- w++, n.value.forEach(M), n.value = e.slice(0, 4).map(k), L.value = null, V.value = "", S.value = !1, B.length = 0;
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) F(e);
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((f) => [d(f), f]));
99
- for (const f of n.value)
100
- if (f.asset) {
101
- const D = _.get(d(f.asset));
102
- D && (f.asset = { ...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
- () => F(r.modelValue),
94
+ () => K(r.modelValue),
111
95
  { flush: "sync" }
112
96
  ), A(
113
97
  () => r.disabled,
114
98
  (e) => {
115
- e && F(r.modelValue);
99
+ e && K(r.modelValue);
116
100
  },
117
101
  { flush: "sync" }
118
- ), de(() => {
119
- P = !1, F([]);
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((f) => f.id === e.id);
113
+ const _ = () => P && !r.disabled && w === m && e.token === o && n.value.some((p) => p.id === e.id);
130
114
  try {
131
- const f = await he(e.file);
115
+ const p = await ye(e.file);
132
116
  if (!_()) return;
133
- const D = await r.upload(f.file);
117
+ const D = await r.upload(p.file);
134
118
  if (!_()) return;
135
- e.asset = { ...D }, e.state = "ready", e.file = void 0, M(e), W();
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 j(e) {
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
- (f) => ["image/png", "image/jpeg", "image/webp"].includes(f.type)
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 f = n.value.find((D) => D.id === m);
150
- if (!f || f.state === "uploading" || !o[0]) return;
151
- M(f), f.file = o[0], f.state = "failed", G(f);
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 f of o.slice(0, _)) {
157
- const D = { id: ++x, file: f, state: "failed", token: 0 };
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 = ye(e);
150
+ const m = _e(e);
167
151
  m.length && (e.preventDefault(), e.stopPropagation(), !r.disabled && i(m));
168
152
  }
169
- function T(e) {
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++, M(e), n.value = n.value.filter((m) => m.id !== e.id), W());
157
+ r.disabled || (e.token++, T(e), n.value = n.value.filter((m) => m.id !== e.id), W());
174
158
  }
175
- const q = (e) => g.get(e), H = (e) => g.get(e);
176
- return (e, m) => (p(), h("div", {
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(T, ["prevent", "stop"])
169
+ onDrop: Q(F, ["prevent", "stop"])
186
170
  }, [
187
171
  u("div", Se, [
188
- u("span", null, v(a(t)("tools.listing_remake.productImagePicker_4bfdac53")), 1),
189
- u("small", null, v(n.value.length) + "/4", 1)
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, Be),
190
+ }, null, 40, Ue),
203
191
  u("div", {
204
192
  class: Y(["product-grid", { empty: !n.value.length }])
205
193
  }, [
206
- (p(!0), h(ie, null, ne(n.value, (o, _) => (p(), h("div", {
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", Me, [
212
- o.preview && o.state !== "failed" || !o.asset && o.preview ? (p(), h("img", {
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) ? (p(), h("img", {
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, De)) : E("", !0),
221
- u("span", Fe, "A" + v(_ + 1), 1),
222
- o.state === "uploading" ? (p(), h("span", qe, [
223
- I(a(xe), {
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
- K(v(a(t)("tools.listing_remake.productImagePicker_403b055e")), 1)
216
+ M(f(a(t)("tools.listing_remake.productImagePicker_403b055e")), 1)
229
217
  ])) : E("", !0),
230
- o.asset && o.state !== "uploading" && H(o.asset) ? (p(), h("a", {
218
+ o.asset && o.state !== "uploading" && j(o.asset) ? (g(), h("a", {
231
219
  key: 3,
232
220
  class: "view-image",
233
- href: H(o.asset),
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(Ve), {
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" ? (p(), h("p", Ne, v(o.asset ? a(t)("tools.listing_remake.productImagePicker_8cd858e1") : a(t)("tools.listing_remake.productImagePicker_9a5fc6f3")), 1)) : E("", !0),
245
- u("div", Ge, [
246
- o.state === "failed" ? (p(), h("button", {
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: (f) => G(o)
239
+ onClick: (p) => G(o)
252
240
  }, [
253
- I(a(re), {
241
+ I(a(oe), {
254
242
  size: 12,
255
243
  "aria-hidden": "true"
256
244
  }),
257
- K(v(a(t)("tools.listing_remake.productImagePicker_b8784c8d")), 1)
258
- ], 8, je)) : (p(), h("button", {
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: (f) => j(o)
251
+ onClick: (p) => H(o)
264
252
  }, [
265
- I(a(re), {
253
+ I(a(oe), {
266
254
  size: 12,
267
255
  "aria-hidden": "true"
268
256
  }),
269
- K(v(a(t)("tools.listing_remake.productImagePicker_131b13aa")), 1)
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: (f) => X(o)
263
+ onClick: (p) => X(o)
276
264
  }, [
277
- I(a(be), {
265
+ I(a(ke), {
278
266
  size: 12,
279
267
  "aria-hidden": "true"
280
268
  })
281
- ], 8, Je)
269
+ ], 8, je)
282
270
  ])
283
271
  ], 2))), 128)),
284
- n.value.length < 4 ? (p(), h("button", {
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) => j())
278
+ onClick: m[0] || (m[0] = (o) => H())
291
279
  }, [
292
- I(a(ke), {
280
+ I(a(he), {
293
281
  size: 21,
294
282
  "aria-hidden": "true"
295
283
  }),
296
- u("span", null, v(a(t)("common.app_9f0d4e46")), 1),
297
- u("small", null, v(a(t)("tools.listing_remake.productImagePicker_9c3ce301")), 1)
298
- ], 8, Oe)) : E("", !0)
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 ? (p(), h("p", We, v(a(C)(V.value)), 1)) : E("", !0)
288
+ V.value ? (g(), h("p", Oe, f(a(C)(V.value)), 1)) : E("", !0)
301
289
  ], 42, ze));
302
290
  }
303
- }), Qe = /* @__PURE__ */ oe(Xe, [["__scopeId", "data-v-cc96a960"]]), Z = [
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 Ye(l) {
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 Ze = ["for"], ea = { class: "lir-language-input" }, aa = ["id", "value", "disabled", "placeholder", "aria-expanded", "aria-controls", "aria-activedescendant"], ta = ["aria-label", "disabled"], la = ["aria-label", "aria-expanded", "disabled"], ia = ["id", "aria-label", "data-placement"], na = ["id", "aria-selected", "data-value", "data-custom", "onClick"], sa = { key: 0 }, oa = { class: "hint" }, ua = /* @__PURE__ */ ee({
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(), g = (i) => {
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 = $(g(x.modelValue)), L = $("below"), V = $(240), S = $(66);
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(), T = Math.min(window.innerHeight, c?.bottom ?? window.innerHeight), X = Math.max(0, c?.top ?? 0), q = Math.max(0, T - b.bottom - 5), H = Math.max(0, b.top - X - 5);
404
- L.value = q < 240 && H > q ? "above" : "below", V.value = Math.min(240, L.value === "above" ? H : q), S.value = L.value === "above" ? i.bottom - b.top + 5 : b.bottom - i.top + 5;
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 = g(i);
399
+ s.value = v(i);
412
400
  }
413
401
  ), A(z.global.locale, () => {
414
- y.value.trim() || (s.value = g(x.modelValue));
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) => Ye(y.value).includes(c) || y.value.trim().toLocaleLowerCase().split(/\s+/).every((T) => r(c.code).toLocaleLowerCase().includes(T))
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 M(i) {
462
- x.disabled || (s.value = g(i), y.value = "", k.value = -1, d.value = !1, w("update:modelValue", i));
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 F(i) {
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 ? M(B.value[k.value].value) : d.value = !1);
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 j(i) {
471
+ function H(i) {
484
472
  P.value?.contains(i.target) || (d.value = !1);
485
473
  }
486
474
  return ge(() => {
487
- document.addEventListener("pointerdown", j), window.addEventListener("resize", U), document.addEventListener("scroll", U, !0);
488
- }), de(() => {
489
- document.removeEventListener("pointerdown", j), window.removeEventListener("resize", U), document.removeEventListener("scroll", U, !0);
490
- }), (i, b) => (p(), h("div", {
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
- }, v(a(t)("tools.listing_remake.targetLanguagePicker_c9dfdcf7")), 9, Ze),
499
- u("div", ea, [
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: F,
503
+ onInput: K,
516
504
  onKeydown: W
517
- }, null, 40, aa),
518
- s.value ? (p(), h("button", {
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) => M(""))
511
+ onClick: b[0] || (b[0] = (c) => T(""))
524
512
  }, [
525
- I(a(_e), {
513
+ I(a(we), {
526
514
  size: 14,
527
515
  "aria-hidden": "true"
528
516
  })
529
- ], 8, ta)) : E("", !0),
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, la)
529
+ ], 8, ta)
542
530
  ]),
543
- d.value && !l.disabled ? (p(), h("div", {
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
- (p(!0), h(ie, null, ne(B.value, (c, T) => (p(), h("button", {
557
- id: `${a(n)}-option-${T}`,
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 === T }),
552
+ class: Y({ active: k.value === F }),
565
553
  onPointerdown: b[2] || (b[2] = Q(() => {
566
554
  }, ["prevent"])),
567
- onClick: (X) => M(c.value)
555
+ onClick: (X) => T(c.value)
568
556
  }, [
569
557
  u("span", null, [
570
- K(v(a(C)(c.label)), 1),
571
- l.modelValue === c.value ? (p(), O(a(me), {
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 ? (p(), h("small", sa, v(c.detail), 1)) : E("", !0)
578
- ], 42, na))), 128))
579
- ], 12, ia)) : E("", !0),
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
- }), ra = /* @__PURE__ */ oe(ua, [["__scopeId", "data-v-b5813e79"]]), da = ["disabled"], ca = {
570
+ }), oa = /* @__PURE__ */ se(sa, [["__scopeId", "data-v-763e889c"]]), ua = ["disabled"], ra = {
584
571
  class: "reference-summary",
585
572
  "data-testid": "reference-count"
586
- }, ma = ["open"], va = { class: "optional-label" }, ga = {
573
+ }, da = ["open"], ca = { class: "optional-label" }, ma = {
587
574
  class: "sr-only",
588
575
  for: "lir-product-info"
589
- }, pa = ["value", "placeholder"], fa = { class: "lir-section" }, ba = {
576
+ }, va = ["value", "placeholder"], ga = { class: "lir-section" }, pa = {
590
577
  class: "lir-label",
591
578
  id: "lir-mode-label"
592
- }, ka = ["aria-label"], ha = ["data-mode", "aria-checked", "tabindex", "disabled", "onClick", "onKeydown"], ya = { class: "mode-card-top" }, _a = { class: "requirements-label" }, wa = ["value", "placeholder"], Pa = /* @__PURE__ */ ee({
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 g = { ...r.modelValue, ...n };
600
+ const v = { ...r.modelValue, ...n };
614
601
  z("update:modelValue", {
615
- ...g,
616
- productAssets: g.productAssets.map((s) => ({ ...s }))
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, g) {
609
+ async function k(n, v) {
623
610
  if (r.disabled) return;
624
- let s = g;
611
+ let s = v;
625
612
  if (["ArrowLeft", "ArrowUp"].includes(n.key))
626
- s = (g + w.length - 1) % w.length;
627
- else if (["ArrowRight", "ArrowDown"].includes(n.key)) s = (g + 1) % w.length;
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, g) => (p(), h("fieldset", {
620
+ return (n, v) => (g(), h("fieldset", {
634
621
  class: "tool-fields lir-fields",
635
622
  disabled: l.disabled
636
623
  }, [
637
- u("div", ca, [
638
- u("span", null, v(a(t)("tools.listing_remake.listingRemakePanel_e8a1ec99")), 1),
639
- u("strong", null, v(a(t)("tools.listing_remake.listingRemakePanel_e8038b46", { p0: l.count ?? 0 })), 1)
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(Qe, {
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": g[0] || (g[0] = (s) => d({ productAssets: s })),
647
- onBusy: g[1] || (g[1] = (s) => z("busy", s))
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
- K(v(a(t)("tools.listing_remake.listingRemakePanel_d241dc8f")), 1),
656
- u("span", va, v(a(t)("tools.listing_remake.listingRemakePanel_53735240")), 1)
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("p", null, v(a(t)("tools.listing_remake.listingRemakePanel_4b49d6ad")), 1),
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: g[2] || (g[2] = (s) => d({ productInfo: s.target.value }))
673
- }, null, 40, pa)
674
- ], 8, ma),
675
- u("section", fa, [
676
- u("span", ba, v(a(t)("tools.listing_remake.listingRemakePanel_a821d8b1")), 1),
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
- (p(), h(ie, null, ne(w, (s, L) => u("button", {
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", ya, [
696
- s.value === "close_transfer" ? (p(), O(a(Re), {
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
- })) : (p(), O(a(we), {
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 ? (p(), O(a(me), {
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, v(a(C)(s.title)), 1),
713
- u("small", null, v(a(C)(s.description)), 1)
714
- ], 40, ha)), 64))
715
- ], 8, ka)
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(ra, {
703
+ I(oa, {
718
704
  "model-value": l.modelValue.targetLanguage,
719
705
  disabled: l.disabled,
720
- "onUpdate:modelValue": g[3] || (g[3] = (s) => d({ targetLanguage: s }))
706
+ "onUpdate:modelValue": v[3] || (v[3] = (s) => d({ targetLanguage: s }))
721
707
  }, null, 8, ["model-value", "disabled"]),
722
- u("label", _a, [
723
- K(v(a(t)("common.toolPanel_40c2f529")), 1),
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: g[4] || (g[4] = (s) => y(s.target.value))
731
- }, null, 40, wa)
716
+ onInput: v[4] || (v[4] = (s) => y(s.target.value))
717
+ }, null, 40, ya)
732
718
  ])
733
- ], 8, da));
719
+ ], 8, ua));
734
720
  }
735
- }), xa = /* @__PURE__ */ oe(Pa, [["__scopeId", "data-v-30ea34a0"]]), La = {
721
+ }), wa = /* @__PURE__ */ se(_a, [["__scopeId", "data-v-6b184509"]]), Pa = {
736
722
  class: "hint",
737
723
  "data-testid": "lir-submission-summary"
738
- }, Ea = /* @__PURE__ */ ee({
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 = Le(() => t.context), r = $(!1), z = $e(() => t.context, "lir");
745
- return (x, w) => (p(), O(Pe, {
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(Ie, {
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", La, v(a(R)("common.toolPanel_d3ef5424", {
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(xa, {
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
- Ea as default
768
+ Ca as default
783
769
  };