@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.
- package/README.md +188 -184
- package/dist/chunks/{AdjustToolPanel-BELqYSUR.js → AdjustToolPanel-BEqQFYEO.js} +30 -29
- package/dist/chunks/BackgroundToolPanel-Dw3uT7S-.js +43 -0
- package/dist/chunks/{BatchMaterials-niGKrga3.js → BatchMaterials-HiK3VQc3.js} +1 -1
- package/dist/chunks/BatchModeChoices-BAslK92y.js +118 -0
- package/dist/chunks/{BatchOutputColorPicker-CCvmIF-b.js → BatchOutputColorPicker-CgtnQBA3.js} +1 -1
- package/dist/chunks/BatchReferenceFields-DbjXtKC4.js +308 -0
- package/dist/chunks/BeautifyToolPanel-imF6jnTG.js +220 -0
- package/dist/chunks/{BrandMarkToolPanel-FKxXth_3.js → BrandMarkToolPanel-C-gouhaT.js} +319 -333
- package/dist/chunks/{ContentTrimControl-BQfigZPq.js → ContentTrimControl-LgNIZbXa.js} +2 -2
- package/dist/chunks/{CropToolPanel-BhSuHkYm.js → CropToolPanel-DsPgFUWI.js} +60 -56
- package/dist/chunks/CutoutToolPanel-BhJngz89.js +78 -0
- package/dist/chunks/DisclosureToolPanel-DOaWm-im.js +72 -0
- package/dist/chunks/ExpandToolPanel-CuufFNiC.js +69 -0
- package/dist/chunks/{ImageEffectsToolPanel-BRLPIt4q.js → ImageEffectsToolPanel-BsfBZdYp.js} +63 -52
- package/dist/chunks/{IpAuditToolPanel-DfY-mBSe.js → IpAuditToolPanel-DOB7TEoI.js} +15 -13
- package/dist/chunks/{ListingToolPanel-B9Yh3LBK.js → ListingToolPanel-Dapetiw-.js} +170 -184
- package/dist/chunks/{MaterialSelectionPlate-DhioUjdW.js → MaterialSelectionPlate-BjNttUh8.js} +4 -4
- package/dist/chunks/MetadataToolPanel-G56L-VTi.js +116 -0
- package/dist/chunks/{OrientToolPanel-BTrwaWBm.js → OrientToolPanel-BJHfMixX.js} +3 -3
- package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-DI8W37RA.js +122 -0
- package/dist/chunks/ResizeToolPanel-HDDArzWx.js +1171 -0
- package/dist/chunks/RetouchToolPanel-Drei3Dj7.js +358 -0
- package/dist/chunks/ShadowToolPanel-BM5MRfYB.js +258 -0
- package/dist/chunks/SvgExportToolPanel-D3KNi5AS.js +208 -0
- package/dist/chunks/TranslationToolPanel-DbNO3IKA.js +104 -0
- package/dist/chunks/{UpscaleToolPanel-D0H-j2Tr.js → UpscaleToolPanel-5kT1uUl0.js} +44 -39
- package/dist/chunks/arrow-up-DT1zSe8a.js +18 -0
- package/dist/chunks/{engine-D-T-1RSx.js → engine-BZ0nkcqj.js} +1 -1
- package/dist/chunks/{entry-DK9FjQZ_.js → entry-FNjvjYxd.js} +7512 -7395
- package/dist/chunks/{hosted-resources-COzZ7nZY.js → hosted-resources-C3iu_zn4.js} +2 -2
- package/dist/chunks/{loader-circle-UFoEem2a.js → loader-circle-pki8gM3_.js} +1 -1
- package/dist/chunks/{motionFeatures-D4miwXxc.js → motionFeatures-Cp11tdeb.js} +1 -1
- package/dist/chunks/{search-BjTSm1KS.js → search-BNwQCPna.js} +1 -1
- package/dist/chunks/{standard-cutout-vPpP6xBc.js → standard-cutout-iIOMfl6q.js} +1 -1
- package/dist/chunks/{static-logo-2F9ORZWc.js → static-logo-7HK4ubmZ.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/processing.js +3 -3
- package/dist/resources.json +113 -103
- 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 +95 -95
- package/dist/chunks/BackgroundToolPanel-Dy_l8KFl.js +0 -41
- package/dist/chunks/BatchModeChoices-BRqn6zNI.js +0 -111
- package/dist/chunks/BatchReferenceFields-C4t7OSTw.js +0 -316
- package/dist/chunks/BeautifyToolPanel-Dc-ddaBC.js +0 -215
- package/dist/chunks/CutoutToolPanel-BfaZZSE_.js +0 -73
- package/dist/chunks/DisclosureToolPanel-B_oc5fld.js +0 -76
- package/dist/chunks/ExpandToolPanel-D_ZODTUZ.js +0 -67
- package/dist/chunks/MetadataToolPanel-KVrtb3K0.js +0 -104
- package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-C2kJCYeA.js +0 -102
- package/dist/chunks/ResizeToolPanel-Ch_-WR74.js +0 -1178
- package/dist/chunks/RetouchToolPanel-BTS33Dsd.js +0 -350
- package/dist/chunks/ShadowToolPanel-DxJE4eyV.js +0 -254
- package/dist/chunks/SvgExportToolPanel-RHmuQARH.js +0 -219
- package/dist/chunks/TranslationToolPanel-B_qTA1hM.js +0 -125
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as oe, ref as F, computed as L, watch as ke, onMounted as ie, onBeforeUnmount as xe, openBlock as o, createElementBlock as r, createElementVNode as f, toDisplayString as _, unref as l, normalizeStyle as Z, withModifiers as
|
|
2
|
-
import { F as re,
|
|
3
|
-
import { u as Je, a as Qe, c as be, _ as et } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { S as tt } from "./search-
|
|
1
|
+
import { defineComponent as oe, ref as F, computed as L, watch as ke, onMounted as ie, onBeforeUnmount as xe, openBlock as o, createElementBlock as r, createElementVNode as f, toDisplayString as _, unref as l, normalizeStyle as Z, withModifiers as W, Fragment as H, renderList as G, createCommentVNode as $, useId as we, createVNode as Y, normalizeClass as j, createBlock as Q, nextTick as _e, withCtx as me, resolveDynamicComponent as Ve, Teleport as Ae, withDirectives as De, createTextVNode as Oe, withKeys as ae, vShow as Ke } from "vue";
|
|
2
|
+
import { F as re, az as Ee, _ as se, ai as Ce, S as Re, a4 as He, aV as Be, aW as Fe, aX as ze, aY as Ge, aZ as ve, a_ as Ne, G as Xe, R as Ye, a$ as Ue, b0 as pe, b1 as qe, b2 as We, b3 as J, b4 as je, b5 as Ze } from "./entry-FNjvjYxd.js";
|
|
3
|
+
import { u as Je, a as Qe, c as be, _ as et } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-DI8W37RA.js";
|
|
4
|
+
import { S as tt } from "./search-BNwQCPna.js";
|
|
5
5
|
const at = ["light", "material", "art", "color", "distortion"], nt = {
|
|
6
6
|
light_leak: "light",
|
|
7
7
|
motion_blur: "light",
|
|
@@ -54,7 +54,10 @@ function lt(a, D, d, s) {
|
|
|
54
54
|
const E = O(I) - M, P = O(w) - M, S = y ? E >= 0 : E <= 0, B = y ? P >= 0 : P <= 0;
|
|
55
55
|
if (S !== B) {
|
|
56
56
|
const R = E / (E - P);
|
|
57
|
-
C.push({
|
|
57
|
+
C.push({
|
|
58
|
+
x: I.x + (w.x - I.x) * R,
|
|
59
|
+
y: I.y + (w.y - I.y) * R
|
|
60
|
+
});
|
|
58
61
|
}
|
|
59
62
|
B && C.push(w);
|
|
60
63
|
}
|
|
@@ -68,10 +71,15 @@ function lt(a, D, d, s) {
|
|
|
68
71
|
const P = O(I) - x, S = O(E) - x;
|
|
69
72
|
if (Math.abs(P) < 1e-8 && y.push(I), P * S < 0) {
|
|
70
73
|
const B = P / (P - S);
|
|
71
|
-
y.push({
|
|
74
|
+
y.push({
|
|
75
|
+
x: I.x + (E.x - I.x) * B,
|
|
76
|
+
y: I.y + (E.y - I.y) * B
|
|
77
|
+
});
|
|
72
78
|
}
|
|
73
79
|
}
|
|
74
|
-
const C = y[0], p = y.find(
|
|
80
|
+
const C = y[0], p = y.find(
|
|
81
|
+
(w) => C && Math.hypot(w.x - C.x, w.y - C.y) > 1e-6
|
|
82
|
+
);
|
|
75
83
|
return C && p ? {
|
|
76
84
|
start: C,
|
|
77
85
|
end: p,
|
|
@@ -87,7 +95,10 @@ function lt(a, D, d, s) {
|
|
|
87
95
|
before: m(g, K, !1),
|
|
88
96
|
after: m(g, v, !0),
|
|
89
97
|
center: k(d),
|
|
90
|
-
edges: [
|
|
98
|
+
edges: [
|
|
99
|
+
{ side: -1, line: k(K, 0.25) },
|
|
100
|
+
{ side: 1, line: k(v, 0.75) }
|
|
101
|
+
]
|
|
91
102
|
};
|
|
92
103
|
}
|
|
93
104
|
function ne(a) {
|
|
@@ -240,10 +251,10 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
240
251
|
"aria-valuemin": "0",
|
|
241
252
|
"aria-valuemax": "100",
|
|
242
253
|
"aria-valuenow": a.center,
|
|
243
|
-
onPointerdown: h[0] || (h[0] =
|
|
254
|
+
onPointerdown: h[0] || (h[0] = W((c) => S(c, "center"), ["stop"])),
|
|
244
255
|
onKeydown: b
|
|
245
256
|
}, null, 40, ft),
|
|
246
|
-
(o(!0), r(H, null,
|
|
257
|
+
(o(!0), r(H, null, G(v.value.edges, (c) => (o(), r(H, {
|
|
247
258
|
key: c.side
|
|
248
259
|
}, [
|
|
249
260
|
c.line ? (o(), r("line", {
|
|
@@ -270,7 +281,7 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
270
281
|
"aria-valuemin": "0",
|
|
271
282
|
"aria-valuemax": "100",
|
|
272
283
|
"aria-valuenow": a.width,
|
|
273
|
-
onPointerdown:
|
|
284
|
+
onPointerdown: W((T) => S(T, "width", c.side), ["stop"]),
|
|
274
285
|
onKeydown: V
|
|
275
286
|
}, null, 44, yt)) : $("", !0)
|
|
276
287
|
], 64))), 128)),
|
|
@@ -296,7 +307,7 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
296
307
|
"aria-valuemin": "0",
|
|
297
308
|
"aria-valuemax": "100",
|
|
298
309
|
"aria-valuenow": a.center,
|
|
299
|
-
onPointerdown: h[1] || (h[1] =
|
|
310
|
+
onPointerdown: h[1] || (h[1] = W((c) => S(c, "center"), ["stop"])),
|
|
300
311
|
onKeydown: b
|
|
301
312
|
}, null, 40, mt)) : $("", !0)
|
|
302
313
|
], 8, ct)) : (o(), r("div", {
|
|
@@ -312,7 +323,7 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
312
323
|
"aria-valuenow": a.lightX,
|
|
313
324
|
"aria-valuetext": `${a.lightX}%, ${a.lightY}%`,
|
|
314
325
|
style: Z({ left: `${a.lightX}%`, top: `${a.lightY}%` }),
|
|
315
|
-
onPointerdown: h[2] || (h[2] =
|
|
326
|
+
onPointerdown: h[2] || (h[2] = W((c) => S(c, "light"), ["stop"])),
|
|
316
327
|
onKeydown: A
|
|
317
328
|
}, null, 44, vt))
|
|
318
329
|
], 44, rt),
|
|
@@ -322,7 +333,7 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
322
333
|
role: "group",
|
|
323
334
|
"aria-label": l(d)("tools.image_effects.direct.rotation")
|
|
324
335
|
}, [
|
|
325
|
-
(o(), r(H, null,
|
|
336
|
+
(o(), r(H, null, G([
|
|
326
337
|
{ id: "horizontal", angle: 0 },
|
|
327
338
|
{ id: "diagonal", angle: 45 },
|
|
328
339
|
{ id: "vertical", angle: 90 }
|
|
@@ -455,16 +466,16 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
455
466
|
"aria-label": l(s)("tools.image_effects.gallery.category"),
|
|
456
467
|
class: "magic-picker-list"
|
|
457
468
|
}, [
|
|
458
|
-
(o(), r(H, null,
|
|
469
|
+
(o(), r(H, null, G(y, (A, n) => f("button", {
|
|
459
470
|
id: `${l(M)}-option-${n}`,
|
|
460
471
|
key: A,
|
|
461
472
|
type: "button",
|
|
462
473
|
role: "option",
|
|
463
474
|
"data-category": A,
|
|
464
475
|
"aria-selected": a.modelValue.kind === "category" && a.modelValue.id === A,
|
|
465
|
-
class:
|
|
476
|
+
class: j({ active: x.value === n }),
|
|
466
477
|
tabindex: "-1",
|
|
467
|
-
onPointerdown: V[2] || (V[2] =
|
|
478
|
+
onPointerdown: V[2] || (V[2] = W(() => {
|
|
468
479
|
}, ["prevent"])),
|
|
469
480
|
onClick: (h) => E(A)
|
|
470
481
|
}, [
|
|
@@ -489,18 +500,18 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
489
500
|
}, Kt = ["aria-label"], Rt = {
|
|
490
501
|
key: 0,
|
|
491
502
|
class: "magic-parameter-heading"
|
|
492
|
-
}, Ht = ["disabled", "aria-label", "title"], Bt = ["aria-label", "title"], Ft = { class: "magic-parameter-body" },
|
|
503
|
+
}, Ht = ["disabled", "aria-label", "title"], Bt = ["aria-label", "title"], Ft = { class: "magic-parameter-body" }, zt = ["aria-label"], Gt = { class: "direct-control-label" }, Nt = ["data-strength-preset", "disabled", "onClick"], Xt = ["disabled"], Yt = {
|
|
493
504
|
key: 0,
|
|
494
505
|
class: "effect-field",
|
|
495
506
|
"data-field": "glassType"
|
|
496
|
-
}, Ut = ["value", "aria-label"], qt = ["value"],
|
|
507
|
+
}, Ut = ["value", "aria-label"], qt = ["value"], Wt = ["data-field"], jt = ["aria-label"], Zt = ["aria-pressed", "onClick"], Jt = ["data-field"], Qt = ["aria-label", "value", "onInput"], ea = ["aria-label"], ta = ["name", "value", "checked", "onChange", "onClick", "onKeydown"], aa = ["value", "aria-label", "onChange"], na = ["value"], la = ["checked", "aria-label", "onChange"], oa = ["aria-label", "value", "onChange"], ia = { value: "transparent" }, ra = { value: "color" }, sa = ["aria-label", "value", "onInput"], ca = ["aria-label", "min", "max", "step", "value", "onInput"], ua = ["aria-label", "min", "max", "step", "value", "onInput"], da = {
|
|
497
508
|
key: 0,
|
|
498
509
|
class: "field-unit"
|
|
499
510
|
}, fa = ["aria-label", "value"], ga = {
|
|
500
511
|
key: 2,
|
|
501
512
|
role: "alert",
|
|
502
513
|
class: "hint"
|
|
503
|
-
}, ya =
|
|
514
|
+
}, ya = /* @__PURE__ */ oe({
|
|
504
515
|
__name: "ImageEffectsToolPanel",
|
|
505
516
|
props: {
|
|
506
517
|
context: {}
|
|
@@ -508,7 +519,7 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
508
519
|
setup(a, { expose: D }) {
|
|
509
520
|
const { ui: d } = re(), s = qe(d), g = a, O = we(), m = Je(() => g.context), k = L(() => m.value.imageEffects.effectId), K = L(
|
|
510
521
|
() => Be(g.context.entryId) && g.context.entryId === k.value ? g.context.entryId : void 0
|
|
511
|
-
), v = L(() => Fe(m.value.imageEffects)), x = L(() =>
|
|
522
|
+
), v = L(() => Fe(m.value.imageEffects)), x = L(() => ze(m.value.imageEffects)), M = L(() => x.value.params), y = Qe(() => g.context, "imageEffects"), C = We(), p = L(
|
|
512
523
|
() => C.filter((t) => g.context.entryAllowed?.(t.entryId) !== !1)
|
|
513
524
|
), w = F({
|
|
514
525
|
kind: "category",
|
|
@@ -557,7 +568,7 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
557
568
|
await _e(), I.value?.querySelector("button.selected")?.scrollIntoView?.({ block: "nearest", inline: "nearest" });
|
|
558
569
|
}
|
|
559
570
|
const A = L(
|
|
560
|
-
() =>
|
|
571
|
+
() => Ge(m.value.imageEffects).map((t) => ({
|
|
561
572
|
...t,
|
|
562
573
|
value: Pe(t.key)
|
|
563
574
|
}))
|
|
@@ -590,7 +601,7 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
590
601
|
return typeof u == "number" || typeof u == "string" || typeof u == "boolean" ? u : void 0;
|
|
591
602
|
}
|
|
592
603
|
function ue(t) {
|
|
593
|
-
const u =
|
|
604
|
+
const u = je.find((e) => e.id === t);
|
|
594
605
|
return u ? `linear-gradient(90deg, ${u.colors.join(", ")})` : void 0;
|
|
595
606
|
}
|
|
596
607
|
const ee = L(() => {
|
|
@@ -619,8 +630,8 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
619
630
|
if (g.context.readonly) return;
|
|
620
631
|
const u = m.value.imageEffects;
|
|
621
632
|
let e = u;
|
|
622
|
-
for (const [i,
|
|
623
|
-
e.params[i] !==
|
|
633
|
+
for (const [i, z] of Object.entries(t))
|
|
634
|
+
e.params[i] !== z && (e = J(e, i, z));
|
|
624
635
|
e !== u && y.value(e);
|
|
625
636
|
}
|
|
626
637
|
function Te(t) {
|
|
@@ -666,6 +677,7 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
666
677
|
}
|
|
667
678
|
return (t, u) => (o(), Q(Xe, {
|
|
668
679
|
context: a.context,
|
|
680
|
+
help: l(d)("tools.image_effects.panelNote"),
|
|
669
681
|
layout: "contained",
|
|
670
682
|
changed: !!K.value && !a.context.presentation && l(be)(l(m).imageEffects.params, M.value),
|
|
671
683
|
onReset: de
|
|
@@ -688,10 +700,10 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
688
700
|
"aria-label": l(d)("tools.image_effects.effectLabel")
|
|
689
701
|
}, [
|
|
690
702
|
R.value.length ? (o(), r("div", Vt, [
|
|
691
|
-
(o(!0), r(H, null,
|
|
703
|
+
(o(!0), r(H, null, G(R.value, (e) => (o(), r("button", {
|
|
692
704
|
key: e.entryId,
|
|
693
705
|
type: "button",
|
|
694
|
-
class:
|
|
706
|
+
class: j({ selected: e.entryId === K.value }),
|
|
695
707
|
disabled: a.context.readonly,
|
|
696
708
|
"aria-pressed": e.entryId === K.value,
|
|
697
709
|
onClick: (i) => Le(e.entryId, i)
|
|
@@ -719,7 +731,7 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
719
731
|
key: 0,
|
|
720
732
|
ref_key: "parameterFrame",
|
|
721
733
|
ref: P,
|
|
722
|
-
class:
|
|
734
|
+
class: j(["magic-parameters", { "magic-parameters-floating": !!a.context.presentation }]),
|
|
723
735
|
"aria-label": l(d)(`tools.image_effects.${k.value}.title`)
|
|
724
736
|
}, [
|
|
725
737
|
a.context.presentation ? (o(), r("header", Rt, [
|
|
@@ -752,15 +764,15 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
752
764
|
role: "group",
|
|
753
765
|
"aria-label": l(d)("tools.image_effects.strengthPresets")
|
|
754
766
|
}, [
|
|
755
|
-
f("span",
|
|
756
|
-
(o(!0), r(H, null,
|
|
767
|
+
f("span", Gt, _(l(d)("tools.image_effects.strengthPresets")), 1),
|
|
768
|
+
(o(!0), r(H, null, G(ye.value, (e) => (o(), r("button", {
|
|
757
769
|
key: e.id,
|
|
758
770
|
type: "button",
|
|
759
771
|
"data-strength-preset": e.id,
|
|
760
772
|
disabled: a.context.readonly,
|
|
761
773
|
onClick: (i) => Se(e.id)
|
|
762
774
|
}, _(l(d)(`tools.image_effects.strengthPreset.${e.id}`)), 9, Nt))), 128))
|
|
763
|
-
], 8,
|
|
775
|
+
], 8, zt)) : $("", !0),
|
|
764
776
|
he.value ? (o(), Q(xt, {
|
|
765
777
|
key: 1,
|
|
766
778
|
"effect-id": he.value,
|
|
@@ -790,13 +802,13 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
790
802
|
"aria-label": l(d)("tools.image_effects.field.glassType"),
|
|
791
803
|
onChange: Te
|
|
792
804
|
}, [
|
|
793
|
-
(o(!0), r(H, null,
|
|
805
|
+
(o(!0), r(H, null, G(l(pe), (e) => (o(), r("option", {
|
|
794
806
|
key: e,
|
|
795
807
|
value: e
|
|
796
808
|
}, _(l(d)(`tools.image_effects.option.${e}`)), 9, qt))), 128))
|
|
797
809
|
], 40, Ut)
|
|
798
810
|
])) : $("", !0),
|
|
799
|
-
(o(!0), r(H, null,
|
|
811
|
+
(o(!0), r(H, null, G(T.value, (e) => (o(), r("div", {
|
|
800
812
|
key: e.key,
|
|
801
813
|
class: "effect-field",
|
|
802
814
|
"data-field": e.key
|
|
@@ -808,12 +820,12 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
808
820
|
role: "group",
|
|
809
821
|
"aria-label": N(e.key)
|
|
810
822
|
}, [
|
|
811
|
-
(o(!0), r(H, null,
|
|
823
|
+
(o(!0), r(H, null, G(e.options, (i) => (o(), r("button", {
|
|
812
824
|
key: i,
|
|
813
825
|
type: "button",
|
|
814
826
|
"aria-pressed": e.value === i,
|
|
815
|
-
class:
|
|
816
|
-
onClick: (
|
|
827
|
+
class: j({ selected: e.value === i }),
|
|
828
|
+
onClick: (z) => X(e.key, i)
|
|
817
829
|
}, [
|
|
818
830
|
ue(i) ? (o(), r("span", {
|
|
819
831
|
key: 0,
|
|
@@ -823,7 +835,7 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
823
835
|
}, null, 4)) : $("", !0),
|
|
824
836
|
f("span", null, _(l(d)(`tools.image_effects.palette.${i}`)), 1)
|
|
825
837
|
], 10, Zt))), 128)),
|
|
826
|
-
(o(!0), r(H, null,
|
|
838
|
+
(o(!0), r(H, null, G(c.value, (i) => (o(), r("label", {
|
|
827
839
|
key: i.key,
|
|
828
840
|
class: "palette-custom-color",
|
|
829
841
|
"data-field": i.key
|
|
@@ -832,18 +844,18 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
832
844
|
type: "color",
|
|
833
845
|
"aria-label": l(d)(`tools.image_effects.field.${i.key}`),
|
|
834
846
|
value: String(i.value),
|
|
835
|
-
onInput: (
|
|
836
|
-
onKeydown: u[2] || (u[2] = ae((
|
|
847
|
+
onInput: (z) => X(i.key, z.target.value),
|
|
848
|
+
onKeydown: u[2] || (u[2] = ae((z) => !a.context.presentation && z.stopPropagation(), ["esc"]))
|
|
837
849
|
}, null, 40, Qt),
|
|
838
850
|
f("span", null, _(l(d)(`tools.image_effects.field.${i.key}`)), 1)
|
|
839
851
|
], 8, Jt))), 128))
|
|
840
|
-
], 8,
|
|
852
|
+
], 8, jt)) : e.kind === "material" ? (o(), r("div", {
|
|
841
853
|
key: 1,
|
|
842
854
|
class: "material-options",
|
|
843
855
|
role: "radiogroup",
|
|
844
856
|
"aria-label": N(e.key)
|
|
845
857
|
}, [
|
|
846
|
-
(o(!0), r(H, null,
|
|
858
|
+
(o(!0), r(H, null, G(e.options, (i) => (o(), r("label", {
|
|
847
859
|
key: i,
|
|
848
860
|
class: "material-option"
|
|
849
861
|
}, [
|
|
@@ -852,12 +864,12 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
852
864
|
name: l(O),
|
|
853
865
|
value: i,
|
|
854
866
|
checked: e.value === i,
|
|
855
|
-
onChange: (
|
|
856
|
-
onClick: (
|
|
857
|
-
onKeydown: ae((
|
|
867
|
+
onChange: (z) => X(e.key, i),
|
|
868
|
+
onClick: (z) => i === "custom" && Ie(),
|
|
869
|
+
onKeydown: ae((z) => !a.context.presentation && i === "custom" && z.stopPropagation(), ["esc"])
|
|
858
870
|
}, null, 40, ta),
|
|
859
871
|
f("span", {
|
|
860
|
-
class:
|
|
872
|
+
class: j(["material-swatch", `material-swatch-${i}`]),
|
|
861
873
|
"aria-hidden": "true"
|
|
862
874
|
}, [
|
|
863
875
|
i === "custom" ? (o(), r("span", {
|
|
@@ -876,7 +888,7 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
876
888
|
"aria-label": N(e.key),
|
|
877
889
|
onChange: (i) => X(e.key, i.target.value)
|
|
878
890
|
}, [
|
|
879
|
-
(o(!0), r(H, null,
|
|
891
|
+
(o(!0), r(H, null, G(e.options, (i) => (o(), r("option", {
|
|
880
892
|
key: i,
|
|
881
893
|
value: i
|
|
882
894
|
}, _(l(d)(`tools.image_effects.option.${i}`)), 9, na))), 128))
|
|
@@ -927,7 +939,7 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
927
939
|
}, null, 40, ua),
|
|
928
940
|
e.unit ? (o(), r("span", da, _(e.unit), 1)) : $("", !0)
|
|
929
941
|
], 64))
|
|
930
|
-
], 8,
|
|
942
|
+
], 8, Wt))), 128)),
|
|
931
943
|
h.value ? (o(), r("input", {
|
|
932
944
|
key: 1,
|
|
933
945
|
ref_key: "customEdgePicker",
|
|
@@ -941,8 +953,7 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
941
953
|
onKeydown: u[3] || (u[3] = ae((e) => !a.context.presentation && e.stopPropagation(), ["esc"]))
|
|
942
954
|
}, null, 40, fa)) : $("", !0)
|
|
943
955
|
], 8, Xt),
|
|
944
|
-
ee.value.error ? (o(), r("p", ga, _(ee.value.error), 1)) : $("", !0)
|
|
945
|
-
f("p", ya, _(l(d)("tools.image_effects.panelNote")), 1)
|
|
956
|
+
ee.value.error ? (o(), r("p", ga, _(ee.value.error), 1)) : $("", !0)
|
|
946
957
|
]),
|
|
947
958
|
Y(et, {
|
|
948
959
|
context: a.context,
|
|
@@ -958,9 +969,9 @@ const ot = { class: "direct-controls" }, it = { class: "direct-caption" }, rt =
|
|
|
958
969
|
])
|
|
959
970
|
]),
|
|
960
971
|
_: 1
|
|
961
|
-
}, 8, ["context", "changed"]));
|
|
972
|
+
}, 8, ["context", "help", "changed"]));
|
|
962
973
|
}
|
|
963
|
-
}),
|
|
974
|
+
}), ba = /* @__PURE__ */ se(ya, [["__scopeId", "data-v-5bbaab55"]]);
|
|
964
975
|
export {
|
|
965
|
-
|
|
976
|
+
ba as default
|
|
966
977
|
};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as f, createBlock as p, withCtx as i, createElementVNode as e, toDisplayString as c,
|
|
2
|
-
import { F as h, G as v,
|
|
3
|
-
import { u as k, _ as g, b as w } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
const D = ["disabled"], _ = { class: "batch-switch-label" }, I = { class: "batch-switch-label" }, y = { class: "
|
|
1
|
+
import { defineComponent as x, openBlock as f, createBlock as p, unref as t, withCtx as i, createElementVNode as e, toDisplayString as c, createVNode as u, createTextVNode as r } from "vue";
|
|
2
|
+
import { F as h, G as v, at as d, au as m, _ as P } from "./entry-FNjvjYxd.js";
|
|
3
|
+
import { u as k, _ as g, b as w } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-DI8W37RA.js";
|
|
4
|
+
const D = ["disabled"], _ = { class: "batch-switch-label" }, I = { class: "batch-switch-label" }, y = { class: "context-fields" }, B = ["value"], T = ["value"], C = ["value"], E = /* @__PURE__ */ x({
|
|
5
5
|
__name: "IpAuditToolPanel",
|
|
6
6
|
props: {
|
|
7
7
|
context: {}
|
|
8
8
|
},
|
|
9
9
|
setup(a) {
|
|
10
10
|
const { ui: o } = h(), b = a, n = k(() => b.context);
|
|
11
|
-
return (
|
|
11
|
+
return (A, l) => (f(), p(v, {
|
|
12
|
+
context: a.context,
|
|
13
|
+
help: t(o)("common.toolPanel_57380ece")
|
|
14
|
+
}, {
|
|
12
15
|
actions: i(() => [
|
|
13
16
|
u(g, {
|
|
14
17
|
context: a.context,
|
|
@@ -56,8 +59,7 @@ const D = ["disabled"], _ = { class: "batch-switch-label" }, I = { class: "batch
|
|
|
56
59
|
_: 1
|
|
57
60
|
}, 8, ["transition", "aria-label", "aria-checked"])
|
|
58
61
|
]),
|
|
59
|
-
e("
|
|
60
|
-
e("details", B, [
|
|
62
|
+
e("details", y, [
|
|
61
63
|
e("summary", null, c(t(o)("common.toolPanel_5b59ab91")), 1),
|
|
62
64
|
e("label", null, [
|
|
63
65
|
r(c(t(o)("common.toolPanel_1bb4e669")), 1),
|
|
@@ -65,7 +67,7 @@ const D = ["disabled"], _ = { class: "batch-switch-label" }, I = { class: "batch
|
|
|
65
67
|
value: t(n).productTitle,
|
|
66
68
|
maxlength: "500",
|
|
67
69
|
onInput: l[2] || (l[2] = (s) => a.context.updateDraft({ productTitle: s.target.value }))
|
|
68
|
-
}, null, 40,
|
|
70
|
+
}, null, 40, B)
|
|
69
71
|
]),
|
|
70
72
|
e("label", null, [
|
|
71
73
|
r(c(t(o)("common.toolPanel_79a383a8")), 1),
|
|
@@ -73,7 +75,7 @@ const D = ["disabled"], _ = { class: "batch-switch-label" }, I = { class: "batch
|
|
|
73
75
|
value: t(n).productBrand,
|
|
74
76
|
maxlength: "200",
|
|
75
77
|
onInput: l[3] || (l[3] = (s) => a.context.updateDraft({ productBrand: s.target.value }))
|
|
76
|
-
}, null, 40,
|
|
78
|
+
}, null, 40, T)
|
|
77
79
|
]),
|
|
78
80
|
e("label", null, [
|
|
79
81
|
r(c(t(o)("common.toolPanel_ace81ee5")), 1),
|
|
@@ -82,15 +84,15 @@ const D = ["disabled"], _ = { class: "batch-switch-label" }, I = { class: "batch
|
|
|
82
84
|
maxlength: "2000",
|
|
83
85
|
rows: "3",
|
|
84
86
|
onInput: l[4] || (l[4] = (s) => a.context.updateDraft({ context: s.target.value }))
|
|
85
|
-
}, null, 40,
|
|
87
|
+
}, null, 40, C)
|
|
86
88
|
])
|
|
87
89
|
])
|
|
88
90
|
], 8, D)
|
|
89
91
|
]),
|
|
90
92
|
_: 1
|
|
91
|
-
}, 8, ["context"]));
|
|
93
|
+
}, 8, ["context", "help"]));
|
|
92
94
|
}
|
|
93
|
-
}),
|
|
95
|
+
}), F = /* @__PURE__ */ P(E, [["__scopeId", "data-v-5475318a"]]);
|
|
94
96
|
export {
|
|
95
|
-
|
|
97
|
+
F as default
|
|
96
98
|
};
|