@beeintel/batch-image 0.0.0-stage → 1.0.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/FONT-LICENSE.txt +93 -0
- package/README.md +181 -2
- package/dist/assets/11st-D7qGO5e4.webp +0 -0
- package/dist/assets/UPNG-CPfdwFSy.js +2298 -0
- package/dist/assets/adjust-card-B63b81iV.webp +0 -0
- package/dist/assets/adjust-final.worker-C2JbTvv5.js +6945 -0
- package/dist/assets/amazon-CjTtpZTq.webp +0 -0
- package/dist/assets/ascii_art-B4UGbtGs.webp +0 -0
- package/dist/assets/auction-j26eVUQO.webp +0 -0
- package/dist/assets/background-DGdZUdkL.webp +0 -0
- package/dist/assets/background-card-wK7DRpvM.png +0 -0
- package/dist/assets/body-CUFdRg8w.webp +0 -0
- package/dist/assets/bounded-cutout.worker-BZR6mbaI.js +9615 -0
- package/dist/assets/brand-mark-card-cFUeDeO2.webp +0 -0
- package/dist/assets/buyma-dAxYNjow.webp +0 -0
- package/dist/assets/codec.worker-7W6hmsm6.js +7349 -0
- package/dist/assets/contour_lines-C_CqrgV1.webp +0 -0
- package/dist/assets/creema-B1tWyCPx.webp +0 -0
- package/dist/assets/crop-final.worker-Owin7TvX.js +7035 -0
- package/dist/assets/cutout-CzMvV5An.webp +0 -0
- package/dist/assets/cutout-card-CN4gNFBz.png +0 -0
- package/dist/assets/cutout.worker-DyH6Prbn.js +3894 -0
- package/dist/assets/depop-CkVC5Fn1.webp +0 -0
- package/dist/assets/dewrinkle-kFzP6LqD.webp +0 -0
- package/dist/assets/dither-CcxmO2e6.webp +0 -0
- package/dist/assets/douyin-CP_HwBDF.webp +0 -0
- package/dist/assets/download.worker-DnGSB6P_.js +17779 -0
- package/dist/assets/duotone-Cdg_3fQf.webp +0 -0
- package/dist/assets/ebay-CxLfrRAf.webp +0 -0
- package/dist/assets/edit-Cv-txfZm.webp +0 -0
- package/dist/assets/effect.worker-qu1eCcII.js +9227 -0
- package/dist/assets/engraving-BENh1O2O.webp +0 -0
- package/dist/assets/etsy-CSvz9GpY.webp +0 -0
- package/dist/assets/expand-C60VE9nK.webp +0 -0
- package/dist/assets/facebook-Ca2nJJiQ.webp +0 -0
- package/dist/assets/film_stock-Bqauwcq4.webp +0 -0
- package/dist/assets/final.worker-BnzJ3N5C.js +7035 -0
- package/dist/assets/final.worker-Csc1zoYS.js +7054 -0
- package/dist/assets/final.worker-DzBFT9xk.js +6922 -0
- package/dist/assets/final.worker-XpgKnlaz.js +7217 -0
- package/dist/assets/flatlay-CPiVmlAa.webp +0 -0
- package/dist/assets/flatlay-fold-B-CRYy87.webp +0 -0
- package/dist/assets/flatlay-open-Dzas8okC.webp +0 -0
- package/dist/assets/g-market-DXuYK_JH.webp +0 -0
- package/dist/assets/ghost-BCEAx_Zx.webp +0 -0
- package/dist/assets/ghost-front-WFgA4sUo.webp +0 -0
- package/dist/assets/ghost-three-quarter-Rt8cXj34.webp +0 -0
- package/dist/assets/gif-CObOIITx.js +303 -0
- package/dist/assets/glass_tiles-3IXP-Hmg.webp +0 -0
- package/dist/assets/glitch_art-D1i3qben.webp +0 -0
- package/dist/assets/glitch_blur-C4q_9zyq.webp +0 -0
- package/dist/assets/glow-Bv9EHBU5.webp +0 -0
- package/dist/assets/gradient_map-BR-UVYMP.webp +0 -0
- package/dist/assets/halftone-CWdKu2_6.webp +0 -0
- package/dist/assets/holo_sticker-BQDikLg2.webp +0 -0
- package/dist/assets/idus-7diqRNPs.webp +0 -0
- package/dist/assets/imagetracer.worker-CgunQTPG.js +7096 -0
- package/dist/assets/instagram-Bf0IVidT.webp +0 -0
- package/dist/assets/kakao-talk-Df79L_Mv.webp +0 -0
- package/dist/assets/kaleidoscope-BxqMZuWo.webp +0 -0
- package/dist/assets/karrot-BXFPhDwt.webp +0 -0
- package/dist/assets/kaufland-BDDy6e0C.webp +0 -0
- package/dist/assets/lazada-ConR4e1O.webp +0 -0
- package/dist/assets/lens_flare-DgyiAv_j.webp +0 -0
- package/dist/assets/light_leak-kUdpoFuC.webp +0 -0
- package/dist/assets/line-Dr1j___B.webp +0 -0
- package/dist/assets/linkedin-4s_9Wh03.webp +0 -0
- package/dist/assets/lo_fi-DSdl3yY_.webp +0 -0
- package/dist/assets/logo-preparation.worker-D9oa7SME.js +420 -0
- package/dist/assets/mercado-libre-C8CskEiS.webp +0 -0
- package/dist/assets/mercari-jp-DHj7nz4O.webp +0 -0
- package/dist/assets/metadata.worker-B_9_BgN1.js +6456 -0
- package/dist/assets/mirror_collage-JtSKCeSh.webp +0 -0
- package/dist/assets/model-BbeF-fsf.webp +0 -0
- package/dist/assets/model-BjWhieit.webp +0 -0
- package/dist/assets/momo-BWXO_8Df.webp +0 -0
- package/dist/assets/motion_blur-B8YUHeSg.webp +0 -0
- package/dist/assets/naver-xQKL8lWg.webp +0 -0
- package/dist/assets/nuvemshop-DPt6rnA-.webp +0 -0
- package/dist/assets/olx-B87gp-Il.webp +0 -0
- package/dist/assets/orient-card-Da0ii6mX.webp +0 -0
- package/dist/assets/orient-final.worker-CdF5Y5zD.js +6909 -0
- package/dist/assets/orientation-preview.worker-B7uFzz3J.js +6865 -0
- package/dist/assets/ort.bundle.min-CreFV8V1.js +9311 -0
- package/dist/assets/ort.webgpu.bundle.min-CAudaHZO.js +9311 -0
- package/dist/assets/otto-market-DWZyNKJn.webp +0 -0
- package/dist/assets/paper_texture-CXphyIrs.webp +0 -0
- package/dist/assets/pinterest-ByZqih2J.webp +0 -0
- package/dist/assets/polish-DFy6LNG7.webp +0 -0
- package/dist/assets/poshmark-DnZi2vA1.webp +0 -0
- package/dist/assets/posterize-SpLVGq1s.webp +0 -0
- package/dist/assets/preview.worker-DcrCKKWl.js +380 -0
- package/dist/assets/qoo10-C1pq81Jx.webp +0 -0
- package/dist/assets/rakuten-ulYog1hL.webp +0 -0
- package/dist/assets/recolor-mBX7vdFT.webp +0 -0
- package/dist/assets/resize-DVEAl0Um.webp +0 -0
- package/dist/assets/runtime-0663b902fb3937883a34.wasm +0 -0
- package/dist/assets/runtime-355a5c80c7bfdf8737de.mjs +2817 -0
- package/dist/assets/runtime-49871f5a4409519797e1.wasm +0 -0
- package/dist/assets/runtime-74cf72f9a2b7befc115a.mjs +2817 -0
- package/dist/assets/shadow-card-DTZEH60r.png +0 -0
- package/dist/assets/shopee-Bxfei6sj.webp +0 -0
- package/dist/assets/shopify-wVaBafcF.webp +0 -0
- package/dist/assets/shopline-DMoaJ7Bh.webp +0 -0
- package/dist/assets/sparkle-CD5GSGip.webp +0 -0
- package/dist/assets/ssg-DQoFx5u5.webp +0 -0
- package/dist/assets/staging-CIc8pQJ6.webp +0 -0
- package/dist/assets/standard-cutout.worker-BYLzdpR-.js +1261 -0
- package/dist/assets/text-DQW2mBGp.webp +0 -0
- package/dist/assets/textured_glass-D2coxp7n.webp +0 -0
- package/dist/assets/tga-VGxWDes0.js +752 -0
- package/dist/assets/tilt_shift-BKs46yeX.webp +0 -0
- package/dist/assets/transformers.web-DB57cIO5.js +28891 -0
- package/dist/assets/tritone-CcR4qizk.webp +0 -0
- package/dist/assets/upscale-BrLadyUk.webp +0 -0
- package/dist/assets/upscale-creative-DnZnQufJ.webp +0 -0
- package/dist/assets/upscale-crisp-Ckdmbsnn.webp +0 -0
- package/dist/assets/vinted-1QDsxvC6.webp +0 -0
- package/dist/assets/watercolor-CV67zYNE.webp +0 -0
- package/dist/assets/watermark-CpPrxaT5.webp +0 -0
- package/dist/assets/wave_distortion-CV5jVfK4.webp +0 -0
- package/dist/assets/whatsapp-CWJxqzR6.webp +0 -0
- package/dist/assets/worker-DfrCFP3O.js +55 -0
- package/dist/assets/xerox_noise-CbbHY1S1.webp +0 -0
- package/dist/assets/youtube-DS12d5mi.webp +0 -0
- package/dist/assets/zalando-CenfWOwz.webp +0 -0
- package/dist/browser-adapter.d.ts +4 -0
- package/dist/browser-cutout-capability.d.ts +4 -0
- package/dist/browser-cutout-resources.d.ts +3 -0
- package/dist/browser-local-capabilities.d.ts +5 -0
- package/dist/capabilities.d.ts +18 -0
- package/dist/chunks/AdjustToolPanel-B6dtlFlj.js +195 -0
- package/dist/chunks/BackgroundToolPanel-C3Rr9d4S.js +41 -0
- package/dist/chunks/BatchMaterials-DDoJTaS5.js +806 -0
- package/dist/chunks/BatchModeChoices-DeBARgvY.js +111 -0
- package/dist/chunks/BatchOutputColorPicker-D7WIDS4_.js +75 -0
- package/dist/chunks/BatchReferenceFields-Cr5WgFRJ.js +316 -0
- package/dist/chunks/BeautifyToolPanel-DDZXDQKM.js +215 -0
- package/dist/chunks/BrandMarkToolPanel-vKobk_R3.js +1179 -0
- package/dist/chunks/ContentTrimControl-BKCJEst5.js +297 -0
- package/dist/chunks/CropToolPanel-C_sW5tWL.js +218 -0
- package/dist/chunks/CutoutToolPanel-B7ObmiWd.js +73 -0
- package/dist/chunks/DisclosureToolPanel-F3ccFJIF.js +76 -0
- package/dist/chunks/ExpandToolPanel-BKjj5UJA.js +67 -0
- package/dist/chunks/ImageEffectsToolPanel-CsDIBpT6.js +966 -0
- package/dist/chunks/IpAuditToolPanel-CduDfFh-.js +96 -0
- package/dist/chunks/ListingToolPanel-8pJ2_zvI.js +783 -0
- package/dist/chunks/MaterialSelectionPlate-CW7HaS6v.js +30 -0
- package/dist/chunks/MetadataToolPanel-C8XJOamN.js +104 -0
- package/dist/chunks/OrientToolPanel-C1AzQchm.js +161 -0
- package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-BGe419qz.js +102 -0
- package/dist/chunks/ResizeToolPanel-DWikcj2G.js +1178 -0
- package/dist/chunks/RetouchToolPanel-B4eQKk2W.js +350 -0
- package/dist/chunks/ShadowToolPanel-Bbj76hQd.js +254 -0
- package/dist/chunks/SvgExportToolPanel-BRxpzd7q.js +219 -0
- package/dist/chunks/TranslationToolPanel-Bxv8U2WY.js +125 -0
- package/dist/chunks/UpscaleToolPanel-BRIgpszs.js +127 -0
- package/dist/chunks/engine-D-T-1RSx.js +69 -0
- package/dist/chunks/entry-CboOSe2r.js +42945 -0
- package/dist/chunks/gpu-CScw5MNG.js +231 -0
- package/dist/chunks/hosted-resources-COzZ7nZY.js +8196 -0
- package/dist/chunks/loader-circle-CylCgDqP.js +16 -0
- package/dist/chunks/motionFeatures-D67ghPG1.js +4405 -0
- package/dist/chunks/search-BwsDnulU.js +18 -0
- package/dist/chunks/standard-cutout-vPpP6xBc.js +45 -0
- package/dist/chunks/static-logo-2F9ORZWc.js +34 -0
- package/dist/config.d.ts +66 -0
- package/dist/contracts.d.ts +272 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +13 -0
- package/dist/node/catalog.mjs +45 -0
- package/dist/node/cli.mjs +11 -0
- package/dist/node/index.d.mts +20 -0
- package/dist/node/index.mjs +2 -0
- package/dist/node/prepare.mjs +114 -0
- package/dist/node/vite.mjs +46 -0
- package/dist/processing.d.ts +1 -0
- package/dist/processing.js +12105 -0
- package/dist/remote-contracts.d.ts +114 -0
- package/dist/resource-contracts.d.ts +40 -0
- package/dist/resources/cutout/9ae2e5375a34fa413530954dc20d085d175faffc86108c13619220d0557f80bf.json +1 -0
- package/dist/resources/cutout/f119dabecc64bc436d3d08425dde96ec2598fd40541eba97d8d53a4e8bbdcaea.json +1 -0
- package/dist/resources/cutout/resources.json +195 -0
- package/dist/resources/cutout/sources.json +294 -0
- package/dist/resources.json +1191 -0
- package/dist/service-contracts.d.ts +43 -0
- package/dist/slots.d.ts +21 -0
- package/dist/style.css +1 -0
- package/dist/types/batch/api.d.ts +89 -0
- package/dist/types/batch/cutout-output.d.ts +2 -0
- package/dist/types/batch/features/background/engine.d.mts +12 -0
- package/dist/types/batch/features/basic-edit/contracts.d.ts +87 -0
- package/dist/types/batch/features/basic-edit/engine.d.mts +96 -0
- package/dist/types/batch/features/brand-mark/contracts.d.ts +84 -0
- package/dist/types/batch/features/brand-mark/engine.d.mts +68 -0
- package/dist/types/batch/features/export-compression/contracts.d.ts +44 -0
- package/dist/types/batch/features/export-compression/gifenc.d.ts +33 -0
- package/dist/types/batch/features/export-compression/plan.d.ts +45 -0
- package/dist/types/batch/features/export-compression/presentation.d.ts +70 -0
- package/dist/types/batch/features/export-compression/upng.d.ts +6 -0
- package/dist/types/batch/features/final-image/resize.d.mts +15 -0
- package/dist/types/batch/features/image-effects/contracts.d.ts +58 -0
- package/dist/types/batch/features/image-effects/gpu-pixel-runtime.d.ts +15 -0
- package/dist/types/batch/features/image-effects/photo-audit.d.ts +21 -0
- package/dist/types/batch/features/image-effects/photo-v7-cpu.d.ts +9 -0
- package/dist/types/batch/features/image-effects/profiles-v4.d.ts +157 -0
- package/dist/types/batch/features/image-effects/profiles-v5.d.ts +20 -0
- package/dist/types/batch/features/image-effects/profiles-v6.d.ts +14 -0
- package/dist/types/batch/features/image-effects/profiles-v7.d.ts +53 -0
- package/dist/types/batch/features/image-effects/profiles-v8.d.ts +113 -0
- package/dist/types/batch/features/image-effects/profiles-v9.d.ts +20 -0
- package/dist/types/batch/features/image-translation/params.d.ts +257 -0
- package/dist/types/batch/features/listing-remake/transport.d.ts +21 -0
- package/dist/types/batch/features/metadata/bytes.d.mts +13 -0
- package/dist/types/batch/features/metadata/containers.d.mts +20 -0
- package/dist/types/batch/features/metadata/declaration.d.mts +5 -0
- package/dist/types/batch/features/metadata/engine.d.mts +9 -0
- package/dist/types/batch/features/metadata/exchange.d.mts +48 -0
- package/dist/types/batch/features/shadow/contracts.d.ts +43 -0
- package/dist/types/batch/features/shadow/engine.d.mts +33 -0
- package/dist/types/batch/features/svg-export/download-contract.d.ts +33 -0
- package/dist/types/batch/features/svg-export/download-prepare.d.ts +2 -0
- package/dist/types/batch/features/svg-export/download.d.ts +7 -0
- package/dist/types/batch/features/svg-export/imagetracer.d.ts +6 -0
- package/dist/types/batch/features/svg-export/optimizer.d.ts +2 -0
- package/dist/types/batch/ids.d.ts +1 -0
- package/dist/types/batch/model.d.ts +317 -0
- package/dist/types/batch/public/config.d.ts +66 -0
- package/dist/types/batch/public/contracts.d.ts +272 -0
- package/dist/types/batch/public/remote-contracts.d.ts +114 -0
- package/dist/types/batch/public/resource-contracts.d.ts +40 -0
- package/dist/types/batch/public/service-contracts.d.ts +43 -0
- package/dist/types/batch/queue.d.ts +34 -0
- package/dist/types/batch/receipts.d.ts +85 -0
- package/dist/types/batch/retention.d.ts +13 -0
- package/dist/types/onnxruntime-web.d.ts +5 -0
- package/dist/types/plugins/cutout/core/hosted-resources.d.ts +11 -0
- package/dist/types/processing.d.ts +18 -0
- package/dist/types/shared/svg-security.d.mts +4 -0
- package/dist/types/workspace-worker.d.ts +2 -0
- package/package.json +91 -3
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { defineComponent as T, ref as U, computed as v, watch as $, openBlock as u, createElementBlock as b, createTextVNode as k, toDisplayString as n, unref as e, createElementVNode as s, Fragment as I, renderList as z, createCommentVNode as m, createBlock as h, createVNode as F, withCtx as N } from "vue";
|
|
2
|
+
import { F as G, aN as R, aO as A, aP as Y, aA as x, _ as j, G as H } from "./entry-CboOSe2r.js";
|
|
3
|
+
import { B as E } from "./BatchReferenceFields-Cr5WgFRJ.js";
|
|
4
|
+
import { B as M } from "./BatchModeChoices-DeBARgvY.js";
|
|
5
|
+
import { u as J, a as K, b as C, _ as Q } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-BGe419qz.js";
|
|
6
|
+
const W = { class: "beautification-fields tool-fields" }, X = { key: 0 }, Z = ["aria-label", "value", "disabled"], _ = ["value", "disabled"], ee = { class: "hint" }, ae = { class: "tool-note" }, te = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "hint"
|
|
9
|
+
}, le = ["aria-label", "value", "disabled", "placeholder"], oe = {
|
|
10
|
+
key: 4,
|
|
11
|
+
class: "hint",
|
|
12
|
+
role: "alert"
|
|
13
|
+
}, ie = { class: "tool-note" }, de = /* @__PURE__ */ T({
|
|
14
|
+
__name: "BeautificationFields",
|
|
15
|
+
props: {
|
|
16
|
+
modelValue: {},
|
|
17
|
+
writer: { type: Boolean },
|
|
18
|
+
available: { type: Boolean, default: !0 },
|
|
19
|
+
candidates: { default: () => [] },
|
|
20
|
+
beautificationModes: { default: () => [] },
|
|
21
|
+
fixedMode: {}
|
|
22
|
+
},
|
|
23
|
+
emits: ["update:modelValue", "ready"],
|
|
24
|
+
setup(a, { emit: w }) {
|
|
25
|
+
const { ui: t, uiText: y, uiNotice: B } = G(), d = a, g = w, r = U(!1), V = U(!1), P = v(
|
|
26
|
+
() => R.find((o) => o.value === d.modelValue.mode)
|
|
27
|
+
), O = v(
|
|
28
|
+
() => A.find((o) => o.value === P.value?.role)?.label ?? ""
|
|
29
|
+
), c = v(
|
|
30
|
+
() => d.modelValue.mode === "staging" && d.modelValue.stagingMode === "shared_product"
|
|
31
|
+
), S = v(() => ({
|
|
32
|
+
references: d.modelValue.productImages ?? [],
|
|
33
|
+
referenceUploadNeedsReview: d.modelValue.productUploadNeedsReview
|
|
34
|
+
})), p = v(() => {
|
|
35
|
+
try {
|
|
36
|
+
return Y(d.modelValue, d.beautificationModes), "";
|
|
37
|
+
} catch (o) {
|
|
38
|
+
return o.message;
|
|
39
|
+
}
|
|
40
|
+
}), D = v(
|
|
41
|
+
() => d.writer && d.available && !r.value && !V.value && !p.value
|
|
42
|
+
);
|
|
43
|
+
$(D, (o) => g("ready", o), { immediate: !0 });
|
|
44
|
+
function f(o) {
|
|
45
|
+
d.writer && g("update:modelValue", { ...d.modelValue, ...o });
|
|
46
|
+
}
|
|
47
|
+
function L(o) {
|
|
48
|
+
f(o);
|
|
49
|
+
}
|
|
50
|
+
function q(o) {
|
|
51
|
+
f({
|
|
52
|
+
productImages: o.references,
|
|
53
|
+
productUploadNeedsReview: o.referenceUploadNeedsReview
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return (o, i) => (u(), b("div", W, [
|
|
57
|
+
a.fixedMode ? m("", !0) : (u(), b("label", X, [
|
|
58
|
+
k(n(e(t)("tools.beautify.beautificationFields_ee800328")), 1),
|
|
59
|
+
s("select", {
|
|
60
|
+
"aria-label": e(t)("tools.beautify.beautificationFields_ee800328"),
|
|
61
|
+
value: a.modelValue.mode,
|
|
62
|
+
disabled: !a.writer,
|
|
63
|
+
onChange: i[0] || (i[0] = (l) => f({ mode: l.target.value }))
|
|
64
|
+
}, [
|
|
65
|
+
(u(!0), b(I, null, z(e(R), (l) => (u(), b("option", {
|
|
66
|
+
key: l.value,
|
|
67
|
+
value: l.value,
|
|
68
|
+
disabled: !a.beautificationModes.includes(l.value)
|
|
69
|
+
}, n(e(y)(l.label)) + n(a.beautificationModes.includes(l.value) ? "" : e(t)("common.toolPanel_14a718cd")), 9, _))), 128))
|
|
70
|
+
], 40, Z)
|
|
71
|
+
])),
|
|
72
|
+
s("p", ee, n(e(y)(P.value?.description)), 1),
|
|
73
|
+
a.modelValue.mode === "ghost" ? (u(), h(M, {
|
|
74
|
+
key: 1,
|
|
75
|
+
label: e(t)("tools.beautify.beautificationFields_9aaa3a96"),
|
|
76
|
+
"model-value": a.modelValue.viewAngle ?? "front",
|
|
77
|
+
disabled: !a.writer || !a.available,
|
|
78
|
+
options: [
|
|
79
|
+
{
|
|
80
|
+
value: "front",
|
|
81
|
+
label: e(t)("tools.beautify.nested_740f5e81"),
|
|
82
|
+
image: e(x)("mode-cards-v3/ghost-front.webp")
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
value: "three_quarter",
|
|
86
|
+
label: e(t)("tools.beautify.nested_b81b0bc4"),
|
|
87
|
+
image: e(x)("mode-cards-v3/ghost-three-quarter.webp")
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"onUpdate:modelValue": i[1] || (i[1] = (l) => f({ viewAngle: l }))
|
|
91
|
+
}, null, 8, ["label", "model-value", "disabled", "options"])) : m("", !0),
|
|
92
|
+
a.modelValue.mode === "flatlay" ? (u(), h(M, {
|
|
93
|
+
key: 2,
|
|
94
|
+
label: e(t)("tools.beautify.beautificationFields_bf266893"),
|
|
95
|
+
"model-value": a.modelValue.arrangement ?? "natural",
|
|
96
|
+
disabled: !a.writer || !a.available,
|
|
97
|
+
options: [
|
|
98
|
+
{
|
|
99
|
+
value: "natural",
|
|
100
|
+
label: e(t)("tools.beautify.nested_ff6b653a"),
|
|
101
|
+
image: e(x)("mode-cards-v3/flatlay-open.webp")
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
value: "sleeves_in",
|
|
105
|
+
label: e(t)("tools.beautify.nested_d2b60c60"),
|
|
106
|
+
image: e(x)("mode-cards-v3/flatlay-fold.webp")
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"onUpdate:modelValue": i[2] || (i[2] = (l) => f({ arrangement: l }))
|
|
110
|
+
}, null, 8, ["label", "model-value", "disabled", "options"])) : m("", !0),
|
|
111
|
+
a.modelValue.mode === "staging" ? (u(), b(I, { key: 3 }, [
|
|
112
|
+
F(M, {
|
|
113
|
+
label: e(t)("tools.beautify.beautificationFields_422660c5"),
|
|
114
|
+
"model-value": a.modelValue.stagingMode ?? "shared_scene",
|
|
115
|
+
disabled: !a.writer || !a.available || V.value || r.value,
|
|
116
|
+
options: [
|
|
117
|
+
{
|
|
118
|
+
value: "shared_product",
|
|
119
|
+
label: e(t)("tools.beautify.nested_619f09ba"),
|
|
120
|
+
flow: "one-to-many"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
value: "shared_scene",
|
|
124
|
+
label: e(t)("tools.beautify.nested_e2351240"),
|
|
125
|
+
flow: "many-to-one"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"onUpdate:modelValue": i[3] || (i[3] = (l) => f({ stagingMode: l }))
|
|
129
|
+
}, null, 8, ["label", "model-value", "disabled", "options"]),
|
|
130
|
+
s("p", ae, n(c.value ? e(t)("tools.beautify.beautificationFields_c1417394") : e(t)("tools.beautify.beautificationFields_5456e3c8")), 1),
|
|
131
|
+
c.value ? (u(), h(E, {
|
|
132
|
+
key: "products",
|
|
133
|
+
"model-value": S.value,
|
|
134
|
+
writer: a.writer && !r.value,
|
|
135
|
+
candidates: a.candidates,
|
|
136
|
+
"max-count": Math.min(4, Math.max(0, 10 - a.modelValue.references.length)),
|
|
137
|
+
title: e(t)("tools.beautify.beautificationFields_d432b440"),
|
|
138
|
+
"purpose-placeholder": "例如:正面主图,另一张提供背面细节",
|
|
139
|
+
"upload-label": "上传商品图",
|
|
140
|
+
"confirm-label": "确认当前商品集合",
|
|
141
|
+
description: e(t)("tools.beautify.beautificationFields_4065f2d3"),
|
|
142
|
+
"onUpdate:modelValue": q,
|
|
143
|
+
onBusy: i[4] || (i[4] = (l) => V.value = l)
|
|
144
|
+
}, null, 8, ["model-value", "writer", "candidates", "max-count", "title", "description"])) : m("", !0),
|
|
145
|
+
!c.value && a.modelValue.productUploadNeedsReview ? (u(), b("p", te, n(e(t)("tools.beautify.beautificationFields_a4d4d704")), 1)) : m("", !0)
|
|
146
|
+
], 64)) : m("", !0),
|
|
147
|
+
s("details", null, [
|
|
148
|
+
s("summary", null, n(e(t)("common.toolPanel_40c2f529")), 1),
|
|
149
|
+
s("label", null, [
|
|
150
|
+
k(n(e(t)("tools.beautify.beautificationFields_2cd79953")), 1),
|
|
151
|
+
s("textarea", {
|
|
152
|
+
"aria-label": e(t)("tools.beautify.beautificationFields_e1274129"),
|
|
153
|
+
value: a.modelValue.instructions,
|
|
154
|
+
disabled: !a.writer,
|
|
155
|
+
maxlength: "8000",
|
|
156
|
+
rows: "3",
|
|
157
|
+
placeholder: e(t)("tools.beautify.beautificationFields_f1fbcc5d"),
|
|
158
|
+
onInput: i[5] || (i[5] = (l) => f({ instructions: l.target.value }))
|
|
159
|
+
}, null, 40, le)
|
|
160
|
+
])
|
|
161
|
+
]),
|
|
162
|
+
F(E, {
|
|
163
|
+
key: "references",
|
|
164
|
+
"model-value": a.modelValue,
|
|
165
|
+
writer: a.writer && !V.value,
|
|
166
|
+
candidates: a.candidates,
|
|
167
|
+
roles: e(A),
|
|
168
|
+
"default-role-label": O.value,
|
|
169
|
+
"max-count": c.value ? Math.max(0, 10 - (a.modelValue.productImages?.length ?? 0)) : 10,
|
|
170
|
+
"number-offset": c.value ? 2 + (a.modelValue.productImages?.length ?? 0) : 2,
|
|
171
|
+
title: c.value ? e(t)("tools.beautify.beautificationFields_95a5b7ca") : e(t)("tools.beautify.beautificationFields_ba115652"),
|
|
172
|
+
description: c.value ? e(t)("tools.beautify.beautificationFields_359388b6") : e(t)("tools.beautify.beautificationFields_9d5eff9a"),
|
|
173
|
+
"onUpdate:modelValue": L,
|
|
174
|
+
onBusy: i[6] || (i[6] = (l) => r.value = l)
|
|
175
|
+
}, null, 8, ["model-value", "writer", "candidates", "roles", "default-role-label", "max-count", "number-offset", "title", "description"]),
|
|
176
|
+
p.value && !r.value && !V.value ? (u(), b("p", oe, n(e(B)(p.value)), 1)) : m("", !0),
|
|
177
|
+
s("p", ie, n(e(t)("tools.beautify.beautificationFields_154226a1")), 1)
|
|
178
|
+
]));
|
|
179
|
+
}
|
|
180
|
+
}), ue = /* @__PURE__ */ j(de, [["__scopeId", "data-v-3d736997"]]), be = /* @__PURE__ */ T({
|
|
181
|
+
__name: "BeautifyToolPanel",
|
|
182
|
+
props: {
|
|
183
|
+
context: {}
|
|
184
|
+
},
|
|
185
|
+
setup(a) {
|
|
186
|
+
const w = a, t = J(() => w.context), y = U(!1), B = K(() => w.context, "beautify");
|
|
187
|
+
return (d, g) => (u(), h(H, {
|
|
188
|
+
context: a.context,
|
|
189
|
+
layout: "contained"
|
|
190
|
+
}, {
|
|
191
|
+
actions: N(() => [
|
|
192
|
+
F(Q, {
|
|
193
|
+
context: a.context,
|
|
194
|
+
available: e(C)(a.context),
|
|
195
|
+
ready: y.value
|
|
196
|
+
}, null, 8, ["context", "available", "ready"])
|
|
197
|
+
]),
|
|
198
|
+
default: N(() => [
|
|
199
|
+
F(ue, {
|
|
200
|
+
"model-value": e(t).beautify,
|
|
201
|
+
writer: !a.context.readonly,
|
|
202
|
+
available: e(C)(a.context),
|
|
203
|
+
"beautification-modes": a.context.view.beautificationModes,
|
|
204
|
+
"fixed-mode": a.context.entryId ? e(t).beautify.mode : void 0,
|
|
205
|
+
"onUpdate:modelValue": e(B),
|
|
206
|
+
onReady: g[0] || (g[0] = (r) => y.value = r)
|
|
207
|
+
}, null, 8, ["model-value", "writer", "available", "beautification-modes", "fixed-mode", "onUpdate:modelValue"])
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}, 8, ["context"]));
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
export {
|
|
214
|
+
be as default
|
|
215
|
+
};
|