@beeintel/batch-image 0.0.0-stage → 1.0.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 (241) hide show
  1. package/FONT-LICENSE.txt +93 -0
  2. package/README.md +184 -3
  3. package/dist/assets/11st-D7qGO5e4.webp +0 -0
  4. package/dist/assets/UPNG-CPfdwFSy.js +2298 -0
  5. package/dist/assets/adjust-card-B63b81iV.webp +0 -0
  6. package/dist/assets/adjust-final.worker-C2JbTvv5.js +6945 -0
  7. package/dist/assets/amazon-CjTtpZTq.webp +0 -0
  8. package/dist/assets/ascii_art-B4UGbtGs.webp +0 -0
  9. package/dist/assets/auction-j26eVUQO.webp +0 -0
  10. package/dist/assets/background-DGdZUdkL.webp +0 -0
  11. package/dist/assets/background-card-wK7DRpvM.png +0 -0
  12. package/dist/assets/body-CUFdRg8w.webp +0 -0
  13. package/dist/assets/bounded-cutout.worker-BZR6mbaI.js +9615 -0
  14. package/dist/assets/brand-mark-card-cFUeDeO2.webp +0 -0
  15. package/dist/assets/buyma-dAxYNjow.webp +0 -0
  16. package/dist/assets/codec.worker-7W6hmsm6.js +7349 -0
  17. package/dist/assets/contour_lines-C_CqrgV1.webp +0 -0
  18. package/dist/assets/creema-B1tWyCPx.webp +0 -0
  19. package/dist/assets/crop-final.worker-Owin7TvX.js +7035 -0
  20. package/dist/assets/cutout-CzMvV5An.webp +0 -0
  21. package/dist/assets/cutout-card-CN4gNFBz.png +0 -0
  22. package/dist/assets/cutout.worker-DyH6Prbn.js +3894 -0
  23. package/dist/assets/depop-CkVC5Fn1.webp +0 -0
  24. package/dist/assets/dewrinkle-kFzP6LqD.webp +0 -0
  25. package/dist/assets/dither-CcxmO2e6.webp +0 -0
  26. package/dist/assets/douyin-CP_HwBDF.webp +0 -0
  27. package/dist/assets/download.worker-DnGSB6P_.js +17779 -0
  28. package/dist/assets/duotone-Cdg_3fQf.webp +0 -0
  29. package/dist/assets/ebay-CxLfrRAf.webp +0 -0
  30. package/dist/assets/edit-Cv-txfZm.webp +0 -0
  31. package/dist/assets/effect.worker-qu1eCcII.js +9227 -0
  32. package/dist/assets/engraving-BENh1O2O.webp +0 -0
  33. package/dist/assets/etsy-CSvz9GpY.webp +0 -0
  34. package/dist/assets/expand-C60VE9nK.webp +0 -0
  35. package/dist/assets/facebook-Ca2nJJiQ.webp +0 -0
  36. package/dist/assets/film_stock-Bqauwcq4.webp +0 -0
  37. package/dist/assets/final.worker-BnzJ3N5C.js +7035 -0
  38. package/dist/assets/final.worker-Csc1zoYS.js +7054 -0
  39. package/dist/assets/final.worker-DzBFT9xk.js +6922 -0
  40. package/dist/assets/final.worker-XpgKnlaz.js +7217 -0
  41. package/dist/assets/flatlay-CPiVmlAa.webp +0 -0
  42. package/dist/assets/flatlay-fold-B-CRYy87.webp +0 -0
  43. package/dist/assets/flatlay-open-Dzas8okC.webp +0 -0
  44. package/dist/assets/g-market-DXuYK_JH.webp +0 -0
  45. package/dist/assets/ghost-BCEAx_Zx.webp +0 -0
  46. package/dist/assets/ghost-front-WFgA4sUo.webp +0 -0
  47. package/dist/assets/ghost-three-quarter-Rt8cXj34.webp +0 -0
  48. package/dist/assets/gif-CObOIITx.js +303 -0
  49. package/dist/assets/glass_tiles-3IXP-Hmg.webp +0 -0
  50. package/dist/assets/glitch_art-D1i3qben.webp +0 -0
  51. package/dist/assets/glitch_blur-C4q_9zyq.webp +0 -0
  52. package/dist/assets/glow-Bv9EHBU5.webp +0 -0
  53. package/dist/assets/gradient_map-BR-UVYMP.webp +0 -0
  54. package/dist/assets/halftone-CWdKu2_6.webp +0 -0
  55. package/dist/assets/holo_sticker-BQDikLg2.webp +0 -0
  56. package/dist/assets/idus-7diqRNPs.webp +0 -0
  57. package/dist/assets/imagetracer.worker-CgunQTPG.js +7096 -0
  58. package/dist/assets/instagram-Bf0IVidT.webp +0 -0
  59. package/dist/assets/kakao-talk-Df79L_Mv.webp +0 -0
  60. package/dist/assets/kaleidoscope-BxqMZuWo.webp +0 -0
  61. package/dist/assets/karrot-BXFPhDwt.webp +0 -0
  62. package/dist/assets/kaufland-BDDy6e0C.webp +0 -0
  63. package/dist/assets/lazada-ConR4e1O.webp +0 -0
  64. package/dist/assets/lens_flare-DgyiAv_j.webp +0 -0
  65. package/dist/assets/light_leak-kUdpoFuC.webp +0 -0
  66. package/dist/assets/line-Dr1j___B.webp +0 -0
  67. package/dist/assets/linkedin-4s_9Wh03.webp +0 -0
  68. package/dist/assets/lo_fi-DSdl3yY_.webp +0 -0
  69. package/dist/assets/logo-preparation.worker-D9oa7SME.js +420 -0
  70. package/dist/assets/mercado-libre-C8CskEiS.webp +0 -0
  71. package/dist/assets/mercari-jp-DHj7nz4O.webp +0 -0
  72. package/dist/assets/metadata.worker-B_9_BgN1.js +6456 -0
  73. package/dist/assets/mirror_collage-JtSKCeSh.webp +0 -0
  74. package/dist/assets/model-BbeF-fsf.webp +0 -0
  75. package/dist/assets/model-BjWhieit.webp +0 -0
  76. package/dist/assets/momo-BWXO_8Df.webp +0 -0
  77. package/dist/assets/motion_blur-B8YUHeSg.webp +0 -0
  78. package/dist/assets/naver-xQKL8lWg.webp +0 -0
  79. package/dist/assets/nuvemshop-DPt6rnA-.webp +0 -0
  80. package/dist/assets/olx-B87gp-Il.webp +0 -0
  81. package/dist/assets/orient-card-Da0ii6mX.webp +0 -0
  82. package/dist/assets/orient-final.worker-CdF5Y5zD.js +6909 -0
  83. package/dist/assets/orientation-preview.worker-B7uFzz3J.js +6865 -0
  84. package/dist/assets/ort.bundle.min-CreFV8V1.js +9311 -0
  85. package/dist/assets/ort.webgpu.bundle.min-CAudaHZO.js +9311 -0
  86. package/dist/assets/otto-market-DWZyNKJn.webp +0 -0
  87. package/dist/assets/paper_texture-CXphyIrs.webp +0 -0
  88. package/dist/assets/pinterest-ByZqih2J.webp +0 -0
  89. package/dist/assets/polish-DFy6LNG7.webp +0 -0
  90. package/dist/assets/poshmark-DnZi2vA1.webp +0 -0
  91. package/dist/assets/posterize-SpLVGq1s.webp +0 -0
  92. package/dist/assets/preview.worker-DcrCKKWl.js +380 -0
  93. package/dist/assets/qoo10-C1pq81Jx.webp +0 -0
  94. package/dist/assets/rakuten-ulYog1hL.webp +0 -0
  95. package/dist/assets/recolor-mBX7vdFT.webp +0 -0
  96. package/dist/assets/resize-DVEAl0Um.webp +0 -0
  97. package/dist/assets/runtime-0663b902fb3937883a34.wasm +0 -0
  98. package/dist/assets/runtime-355a5c80c7bfdf8737de.mjs +2817 -0
  99. package/dist/assets/runtime-49871f5a4409519797e1.wasm +0 -0
  100. package/dist/assets/runtime-74cf72f9a2b7befc115a.mjs +2817 -0
  101. package/dist/assets/shadow-card-DTZEH60r.png +0 -0
  102. package/dist/assets/shopee-Bxfei6sj.webp +0 -0
  103. package/dist/assets/shopify-wVaBafcF.webp +0 -0
  104. package/dist/assets/shopline-DMoaJ7Bh.webp +0 -0
  105. package/dist/assets/sparkle-CD5GSGip.webp +0 -0
  106. package/dist/assets/ssg-DQoFx5u5.webp +0 -0
  107. package/dist/assets/staging-CIc8pQJ6.webp +0 -0
  108. package/dist/assets/standard-cutout.worker-BYLzdpR-.js +1261 -0
  109. package/dist/assets/text-DQW2mBGp.webp +0 -0
  110. package/dist/assets/textured_glass-D2coxp7n.webp +0 -0
  111. package/dist/assets/tga-VGxWDes0.js +752 -0
  112. package/dist/assets/tilt_shift-BKs46yeX.webp +0 -0
  113. package/dist/assets/transformers.web-DB57cIO5.js +28891 -0
  114. package/dist/assets/tritone-CcR4qizk.webp +0 -0
  115. package/dist/assets/upscale-BrLadyUk.webp +0 -0
  116. package/dist/assets/upscale-creative-DnZnQufJ.webp +0 -0
  117. package/dist/assets/upscale-crisp-Ckdmbsnn.webp +0 -0
  118. package/dist/assets/vinted-1QDsxvC6.webp +0 -0
  119. package/dist/assets/watercolor-CV67zYNE.webp +0 -0
  120. package/dist/assets/watermark-CpPrxaT5.webp +0 -0
  121. package/dist/assets/wave_distortion-CV5jVfK4.webp +0 -0
  122. package/dist/assets/whatsapp-CWJxqzR6.webp +0 -0
  123. package/dist/assets/worker-DfrCFP3O.js +55 -0
  124. package/dist/assets/xerox_noise-CbbHY1S1.webp +0 -0
  125. package/dist/assets/youtube-DS12d5mi.webp +0 -0
  126. package/dist/assets/zalando-CenfWOwz.webp +0 -0
  127. package/dist/browser-adapter.d.ts +4 -0
  128. package/dist/browser-cutout-capability.d.ts +4 -0
  129. package/dist/browser-cutout-resources.d.ts +3 -0
  130. package/dist/browser-local-capabilities.d.ts +5 -0
  131. package/dist/capabilities.d.ts +18 -0
  132. package/dist/chunks/AdjustToolPanel-BELqYSUR.js +195 -0
  133. package/dist/chunks/BackgroundToolPanel-Dy_l8KFl.js +41 -0
  134. package/dist/chunks/BatchMaterials-niGKrga3.js +806 -0
  135. package/dist/chunks/BatchModeChoices-BRqn6zNI.js +111 -0
  136. package/dist/chunks/BatchOutputColorPicker-CCvmIF-b.js +75 -0
  137. package/dist/chunks/BatchReferenceFields-C4t7OSTw.js +316 -0
  138. package/dist/chunks/BeautifyToolPanel-Dc-ddaBC.js +215 -0
  139. package/dist/chunks/BrandMarkToolPanel-FKxXth_3.js +1179 -0
  140. package/dist/chunks/ContentTrimControl-BQfigZPq.js +297 -0
  141. package/dist/chunks/CropToolPanel-BhSuHkYm.js +218 -0
  142. package/dist/chunks/CutoutToolPanel-BfaZZSE_.js +73 -0
  143. package/dist/chunks/DisclosureToolPanel-B_oc5fld.js +76 -0
  144. package/dist/chunks/ExpandToolPanel-D_ZODTUZ.js +67 -0
  145. package/dist/chunks/ImageEffectsToolPanel-BRLPIt4q.js +966 -0
  146. package/dist/chunks/IpAuditToolPanel-DfY-mBSe.js +96 -0
  147. package/dist/chunks/ListingToolPanel-B9Yh3LBK.js +783 -0
  148. package/dist/chunks/MaterialSelectionPlate-DhioUjdW.js +30 -0
  149. package/dist/chunks/MetadataToolPanel-KVrtb3K0.js +104 -0
  150. package/dist/chunks/OrientToolPanel-BTrwaWBm.js +161 -0
  151. package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-C2kJCYeA.js +102 -0
  152. package/dist/chunks/ResizeToolPanel-Ch_-WR74.js +1178 -0
  153. package/dist/chunks/RetouchToolPanel-BTS33Dsd.js +350 -0
  154. package/dist/chunks/ShadowToolPanel-DxJE4eyV.js +254 -0
  155. package/dist/chunks/SvgExportToolPanel-RHmuQARH.js +219 -0
  156. package/dist/chunks/TranslationToolPanel-B_qTA1hM.js +125 -0
  157. package/dist/chunks/UpscaleToolPanel-D0H-j2Tr.js +127 -0
  158. package/dist/chunks/engine-D-T-1RSx.js +69 -0
  159. package/dist/chunks/entry-DK9FjQZ_.js +42946 -0
  160. package/dist/chunks/gpu-CScw5MNG.js +231 -0
  161. package/dist/chunks/hosted-resources-COzZ7nZY.js +8196 -0
  162. package/dist/chunks/loader-circle-UFoEem2a.js +16 -0
  163. package/dist/chunks/motionFeatures-D4miwXxc.js +4405 -0
  164. package/dist/chunks/search-BjTSm1KS.js +18 -0
  165. package/dist/chunks/standard-cutout-vPpP6xBc.js +45 -0
  166. package/dist/chunks/static-logo-2F9ORZWc.js +34 -0
  167. package/dist/config.d.ts +66 -0
  168. package/dist/contracts.d.ts +272 -0
  169. package/dist/index.d.ts +23 -0
  170. package/dist/index.js +13 -0
  171. package/dist/node/catalog.mjs +45 -0
  172. package/dist/node/cli.mjs +11 -0
  173. package/dist/node/index.d.mts +20 -0
  174. package/dist/node/index.mjs +2 -0
  175. package/dist/node/prepare.mjs +114 -0
  176. package/dist/node/vite.mjs +46 -0
  177. package/dist/processing.d.ts +1 -0
  178. package/dist/processing.js +12105 -0
  179. package/dist/remote-contracts.d.ts +114 -0
  180. package/dist/resource-contracts.d.ts +40 -0
  181. package/dist/resources/cutout/9ae2e5375a34fa413530954dc20d085d175faffc86108c13619220d0557f80bf.json +1 -0
  182. package/dist/resources/cutout/f119dabecc64bc436d3d08425dde96ec2598fd40541eba97d8d53a4e8bbdcaea.json +1 -0
  183. package/dist/resources/cutout/resources.json +195 -0
  184. package/dist/resources/cutout/sources.json +294 -0
  185. package/dist/resources.json +1191 -0
  186. package/dist/service-contracts.d.ts +43 -0
  187. package/dist/slots.d.ts +21 -0
  188. package/dist/style.css +1 -0
  189. package/dist/types/batch/api.d.ts +89 -0
  190. package/dist/types/batch/cutout-output.d.ts +2 -0
  191. package/dist/types/batch/features/background/engine.d.mts +12 -0
  192. package/dist/types/batch/features/basic-edit/contracts.d.ts +87 -0
  193. package/dist/types/batch/features/basic-edit/engine.d.mts +96 -0
  194. package/dist/types/batch/features/brand-mark/contracts.d.ts +84 -0
  195. package/dist/types/batch/features/brand-mark/engine.d.mts +68 -0
  196. package/dist/types/batch/features/export-compression/contracts.d.ts +44 -0
  197. package/dist/types/batch/features/export-compression/gifenc.d.ts +33 -0
  198. package/dist/types/batch/features/export-compression/plan.d.ts +45 -0
  199. package/dist/types/batch/features/export-compression/presentation.d.ts +70 -0
  200. package/dist/types/batch/features/export-compression/upng.d.ts +6 -0
  201. package/dist/types/batch/features/final-image/resize.d.mts +15 -0
  202. package/dist/types/batch/features/image-effects/contracts.d.ts +58 -0
  203. package/dist/types/batch/features/image-effects/gpu-pixel-runtime.d.ts +15 -0
  204. package/dist/types/batch/features/image-effects/photo-audit.d.ts +21 -0
  205. package/dist/types/batch/features/image-effects/photo-v7-cpu.d.ts +9 -0
  206. package/dist/types/batch/features/image-effects/profiles-v4.d.ts +157 -0
  207. package/dist/types/batch/features/image-effects/profiles-v5.d.ts +20 -0
  208. package/dist/types/batch/features/image-effects/profiles-v6.d.ts +14 -0
  209. package/dist/types/batch/features/image-effects/profiles-v7.d.ts +53 -0
  210. package/dist/types/batch/features/image-effects/profiles-v8.d.ts +113 -0
  211. package/dist/types/batch/features/image-effects/profiles-v9.d.ts +20 -0
  212. package/dist/types/batch/features/image-translation/params.d.ts +257 -0
  213. package/dist/types/batch/features/listing-remake/transport.d.ts +21 -0
  214. package/dist/types/batch/features/metadata/bytes.d.mts +13 -0
  215. package/dist/types/batch/features/metadata/containers.d.mts +20 -0
  216. package/dist/types/batch/features/metadata/declaration.d.mts +5 -0
  217. package/dist/types/batch/features/metadata/engine.d.mts +9 -0
  218. package/dist/types/batch/features/metadata/exchange.d.mts +48 -0
  219. package/dist/types/batch/features/shadow/contracts.d.ts +43 -0
  220. package/dist/types/batch/features/shadow/engine.d.mts +33 -0
  221. package/dist/types/batch/features/svg-export/download-contract.d.ts +33 -0
  222. package/dist/types/batch/features/svg-export/download-prepare.d.ts +2 -0
  223. package/dist/types/batch/features/svg-export/download.d.ts +7 -0
  224. package/dist/types/batch/features/svg-export/imagetracer.d.ts +6 -0
  225. package/dist/types/batch/features/svg-export/optimizer.d.ts +2 -0
  226. package/dist/types/batch/ids.d.ts +1 -0
  227. package/dist/types/batch/model.d.ts +317 -0
  228. package/dist/types/batch/public/config.d.ts +66 -0
  229. package/dist/types/batch/public/contracts.d.ts +272 -0
  230. package/dist/types/batch/public/remote-contracts.d.ts +114 -0
  231. package/dist/types/batch/public/resource-contracts.d.ts +40 -0
  232. package/dist/types/batch/public/service-contracts.d.ts +43 -0
  233. package/dist/types/batch/queue.d.ts +34 -0
  234. package/dist/types/batch/receipts.d.ts +85 -0
  235. package/dist/types/batch/retention.d.ts +13 -0
  236. package/dist/types/onnxruntime-web.d.ts +5 -0
  237. package/dist/types/plugins/cutout/core/hosted-resources.d.ts +11 -0
  238. package/dist/types/processing.d.ts +18 -0
  239. package/dist/types/shared/svg-security.d.mts +4 -0
  240. package/dist/types/workspace-worker.d.ts +2 -0
  241. package/package.json +95 -6
@@ -0,0 +1,30 @@
1
+ import { defineComponent as i, computed as l, unref as a, openBlock as n, createElementBlock as c, createBlock as r, createCommentVNode as u } from "vue";
2
+ import { E as d, au as p, _ as m } from "./entry-DK9FjQZ_.js";
3
+ const f = {
4
+ key: 0,
5
+ class: "material-selection-plate",
6
+ "aria-hidden": "true"
7
+ }, _ = /* @__PURE__ */ i({
8
+ __name: "MaterialSelectionPlate",
9
+ props: {
10
+ selected: { type: Boolean },
11
+ animate: { type: Boolean }
12
+ },
13
+ setup(e) {
14
+ const o = e, t = d(), s = l(
15
+ () => o.animate && !t.value ? { type: "spring", visualDuration: 0.19, bounce: 0.06 } : { duration: 0 }
16
+ );
17
+ return (y, k) => e.selected && a(t) ? (n(), c("span", f)) : e.selected ? (n(), r(a(p).span, {
18
+ key: 1,
19
+ class: "material-selection-plate",
20
+ "aria-hidden": "true",
21
+ initial: !1,
22
+ "layout-id": "selection",
23
+ crossfade: !1,
24
+ transition: s.value
25
+ }, null, 8, ["transition"])) : u("", !0);
26
+ }
27
+ }), v = /* @__PURE__ */ m(_, [["__scopeId", "data-v-e9f640a3"]]);
28
+ export {
29
+ v as default
30
+ };
@@ -0,0 +1,104 @@
1
+ import { defineComponent as h, openBlock as x, createElementBlock as P, unref as a, createElementVNode as e, toDisplayString as n, createVNode as s, createBlock as k, withCtx as _ } from "vue";
2
+ import { F as g, a4 as b, _ as V, G as v, a5 as f } from "./entry-DK9FjQZ_.js";
3
+ import { u as y, a as C, c as T, _ as A } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-C2kJCYeA.js";
4
+ const B = ["disabled", "aria-label"], D = { class: "metadata-default" }, M = ["aria-label", "disabled", "checked"], U = ["aria-label", "disabled", "checked"], E = /* @__PURE__ */ h({
5
+ __name: "MetadataPanel",
6
+ props: {
7
+ modelValue: {},
8
+ disabled: { type: Boolean }
9
+ },
10
+ emits: ["update:modelValue"],
11
+ setup(l, { emit: o }) {
12
+ const { ui: t, uiText: i } = g(), c = l, r = o;
13
+ function m(p, d) {
14
+ c.disabled || r("update:modelValue", {
15
+ ...c.modelValue,
16
+ [p]: d.target.checked
17
+ });
18
+ }
19
+ return (p, d) => (x(), P("fieldset", {
20
+ class: "metadata-panel",
21
+ disabled: l.disabled,
22
+ "aria-label": a(t)("tools.metadata_cleanup.metadataPanel_a48b2f8f")
23
+ }, [
24
+ e("div", D, [
25
+ e("strong", null, n(a(t)("tools.metadata_cleanup.metadataPanel_07bee879")), 1),
26
+ e("p", null, n(a(t)("tools.metadata_cleanup.metadataPanel_77ca0e65")), 1),
27
+ e("p", null, n(a(t)("tools.metadata_cleanup.metadataPanel_81215dfc")), 1)
28
+ ]),
29
+ e("label", null, [
30
+ s(a(b), {
31
+ class: "metadata-check",
32
+ size: 14,
33
+ "aria-hidden": "true"
34
+ }),
35
+ e("input", {
36
+ type: "checkbox",
37
+ "aria-label": a(t)("tools.metadata_cleanup.metadataPanel_e6c30387"),
38
+ disabled: l.disabled,
39
+ checked: l.modelValue.removeTime,
40
+ onChange: d[0] || (d[0] = (u) => m("removeTime", u))
41
+ }, null, 40, M),
42
+ e("span", null, [
43
+ e("strong", null, n(a(t)("tools.metadata_cleanup.metadataPanel_e6c30387")), 1),
44
+ e("small", null, n(a(t)("tools.metadata_cleanup.metadataPanel_e54e326a")), 1)
45
+ ])
46
+ ]),
47
+ e("label", null, [
48
+ s(a(b), {
49
+ class: "metadata-check",
50
+ size: 14,
51
+ "aria-hidden": "true"
52
+ }),
53
+ e("input", {
54
+ type: "checkbox",
55
+ "aria-label": a(t)("tools.metadata_cleanup.metadataPanel_cceb9076"),
56
+ disabled: l.disabled,
57
+ checked: l.modelValue.removeAuthorComments,
58
+ onChange: d[1] || (d[1] = (u) => m("removeAuthorComments", u))
59
+ }, null, 40, U),
60
+ e("span", null, [
61
+ e("strong", null, n(a(t)("tools.metadata_cleanup.metadataPanel_cceb9076")), 1),
62
+ e("small", null, n(a(t)("tools.metadata_cleanup.metadataPanel_5303f066")), 1)
63
+ ])
64
+ ])
65
+ ], 8, B));
66
+ }
67
+ }), F = /* @__PURE__ */ V(E, [["__scopeId", "data-v-7f0e09aa"]]), $ = /* @__PURE__ */ h({
68
+ __name: "MetadataToolPanel",
69
+ props: {
70
+ context: {}
71
+ },
72
+ setup(l) {
73
+ const o = l, t = y(() => o.context);
74
+ function i() {
75
+ o.context.resetDraft({ metadata: { ...f } });
76
+ }
77
+ const c = C(() => o.context, "metadata");
78
+ return (r, m) => (x(), k(v, {
79
+ context: l.context,
80
+ layout: "contained",
81
+ changed: a(T)(a(t).metadata, a(f)),
82
+ onReset: i
83
+ }, {
84
+ actions: _(() => [
85
+ s(A, {
86
+ context: l.context,
87
+ available: !0,
88
+ ready: !0
89
+ }, null, 8, ["context"])
90
+ ]),
91
+ default: _(() => [
92
+ s(F, {
93
+ "model-value": a(t).metadata,
94
+ disabled: l.context.readonly,
95
+ "onUpdate:modelValue": a(c)
96
+ }, null, 8, ["model-value", "disabled", "onUpdate:modelValue"])
97
+ ]),
98
+ _: 1
99
+ }, 8, ["context", "changed"]));
100
+ }
101
+ });
102
+ export {
103
+ $ as default
104
+ };
@@ -0,0 +1,161 @@
1
+ import { defineComponent as v, ref as R, openBlock as b, createElementBlock as k, unref as e, createElementVNode as l, createTextVNode as x, toDisplayString as u, createVNode as f, Fragment as P, renderList as V, createCommentVNode as A, nextTick as T, createBlock as U, withCtx as g } from "vue";
2
+ import { F as E, P as O, R as F, _ as N, G as $ } from "./entry-DK9FjQZ_.js";
3
+ import { D as y } from "./hosted-resources-COzZ7nZY.js";
4
+ import { u as H, a as I, c as K, _ as L, n as z } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-C2kJCYeA.js";
5
+ const S = ["disabled", "aria-label"], G = { class: "orientation-switch-row" }, M = ["aria-label", "aria-checked"], q = { class: "orientation-rotation-field" }, J = ["aria-label"], Q = ["data-rotation", "aria-label", "aria-checked", "tabindex", "onClick", "onKeydown"], W = { class: "orientation-flips" }, X = ["aria-label", "aria-checked", "onClick"], Y = ["aria-label"], Z = /* @__PURE__ */ v({
6
+ __name: "BasicOrientationPanel",
7
+ props: {
8
+ modelValue: {},
9
+ disabled: { type: Boolean },
10
+ hideReset: { type: Boolean }
11
+ },
12
+ emits: ["update:modelValue"],
13
+ setup(a, { emit: c }) {
14
+ const { ui: n, uiText: m } = E(), s = a, h = c, r = [0, 90, 180, 270], p = R([]), j = [
15
+ { key: "flipHorizontal", label: "横向翻转" },
16
+ { key: "flipVertical", label: "纵向翻转" }
17
+ ];
18
+ function _(o) {
19
+ s.disabled || h("update:modelValue", { ...s.modelValue, [o]: !s.modelValue[o] });
20
+ }
21
+ function w(o) {
22
+ s.disabled || h("update:modelValue", { ...s.modelValue, rotation: o });
23
+ }
24
+ function B(o, d) {
25
+ if (s.disabled) return;
26
+ const t = r.indexOf(d);
27
+ let i;
28
+ if (o.key === "ArrowRight" || o.key === "ArrowDown")
29
+ i = (t + 1) % r.length;
30
+ else if (o.key === "ArrowLeft" || o.key === "ArrowUp")
31
+ i = (t + r.length - 1) % r.length;
32
+ else if (o.key === "Home") i = 0;
33
+ else if (o.key === "End") i = r.length - 1;
34
+ else return;
35
+ o.preventDefault(), w(r[i]), T(
36
+ () => p.value.find((D) => D.dataset.rotation === String(r[i]))?.focus()
37
+ );
38
+ }
39
+ function C() {
40
+ s.disabled || h("update:modelValue", { ...y });
41
+ }
42
+ return (o, d) => (b(), k("fieldset", {
43
+ class: "basic-orientation-panel",
44
+ disabled: a.disabled,
45
+ "aria-label": e(n)("tools.adjust.basicOrientationPanel_57ac8c73")
46
+ }, [
47
+ l("div", G, [
48
+ l("span", null, [
49
+ x(u(e(n)("tools.adjust.basicOrientationPanel_93ffc4b2")), 1),
50
+ f(O, {
51
+ text: e(n)("tools.adjust.basicOrientationPanel_e68141fb")
52
+ }, null, 8, ["text"])
53
+ ]),
54
+ l("button", {
55
+ type: "button",
56
+ class: "batch-switch orientation-switch",
57
+ role: "switch",
58
+ "aria-label": e(n)("tools.adjust.basicOrientationPanel_93ffc4b2"),
59
+ "aria-checked": a.modelValue.upright,
60
+ onClick: d[0] || (d[0] = (t) => _("upright"))
61
+ }, [...d[1] || (d[1] = [
62
+ l("span", null, null, -1)
63
+ ])], 8, M)
64
+ ]),
65
+ l("div", q, [
66
+ l("span", null, u(e(n)("tools.adjust.basicOrientationPanel_d25b2e93")), 1),
67
+ l("div", {
68
+ class: "orientation-rotations",
69
+ role: "radiogroup",
70
+ "aria-label": e(n)("tools.adjust.basicOrientationPanel_08d32851")
71
+ }, [
72
+ (b(), k(P, null, V(r, (t) => l("button", {
73
+ key: t,
74
+ ref_for: !0,
75
+ ref_key: "rotationButtons",
76
+ ref: p,
77
+ type: "button",
78
+ role: "radio",
79
+ "data-rotation": t,
80
+ "aria-label": e(n)("tools.adjust.basicOrientationPanel_b6f0d99d", { p0: t }),
81
+ "aria-checked": a.modelValue.rotation === t,
82
+ tabindex: a.modelValue.rotation === t ? 0 : -1,
83
+ onClick: (i) => w(t),
84
+ onKeydown: (i) => B(i, t)
85
+ }, u(t) + "° ", 41, Q)), 64))
86
+ ], 8, J)
87
+ ]),
88
+ l("div", W, [
89
+ (b(), k(P, null, V(j, (t) => l("div", {
90
+ key: t.key,
91
+ class: "orientation-switch-row"
92
+ }, [
93
+ l("span", null, [
94
+ x(u(e(m)(t.label)), 1),
95
+ f(O, {
96
+ text: e(n)("tools.adjust.basicOrientationPanel_8aa361d5")
97
+ }, null, 8, ["text"])
98
+ ]),
99
+ l("button", {
100
+ type: "button",
101
+ class: "batch-switch orientation-switch",
102
+ role: "switch",
103
+ "aria-label": e(m)(t.label),
104
+ "aria-checked": a.modelValue[t.key],
105
+ onClick: (i) => _(t.key)
106
+ }, [...d[2] || (d[2] = [
107
+ l("span", null, null, -1)
108
+ ])], 8, X)
109
+ ])), 64))
110
+ ]),
111
+ a.hideReset ? A("", !0) : (b(), k("button", {
112
+ key: 0,
113
+ type: "button",
114
+ class: "orientation-reset",
115
+ "aria-label": e(n)("tools.adjust.basicOrientationPanel_cf36f7b3"),
116
+ onClick: C
117
+ }, [
118
+ f(e(F), { size: 14 }),
119
+ x(u(e(n)("tools.adjust.basicOrientationPanel_cf36f7b3")), 1)
120
+ ], 8, Y))
121
+ ], 8, S));
122
+ }
123
+ }), ee = /* @__PURE__ */ N(Z, [["__scopeId", "data-v-4bfd0e58"]]), le = /* @__PURE__ */ v({
124
+ __name: "OrientToolPanel",
125
+ props: {
126
+ context: {}
127
+ },
128
+ setup(a) {
129
+ const c = a, n = H(() => c.context);
130
+ function m() {
131
+ c.context.resetDraft({ orient: { ...y } });
132
+ }
133
+ const s = I(() => c.context, "orient");
134
+ return (h, r) => (b(), U($, {
135
+ context: a.context,
136
+ layout: "contained",
137
+ changed: e(K)(e(n).orient, e(y)),
138
+ onReset: m
139
+ }, {
140
+ actions: g(() => [
141
+ f(L, {
142
+ context: a.context,
143
+ available: e(z)(a.context),
144
+ ready: !0
145
+ }, null, 8, ["context", "available"])
146
+ ]),
147
+ default: g(() => [
148
+ f(ee, {
149
+ "model-value": e(n).orient,
150
+ disabled: a.context.readonly,
151
+ "hide-reset": !0,
152
+ "onUpdate:modelValue": e(s)
153
+ }, null, 8, ["model-value", "disabled", "onUpdate:modelValue"])
154
+ ]),
155
+ _: 1
156
+ }, 8, ["context", "changed"]));
157
+ }
158
+ });
159
+ export {
160
+ le as default
161
+ };
@@ -0,0 +1,102 @@
1
+ import { computed as r, defineComponent as k, openBlock as l, createElementBlock as s, createTextVNode as b, toDisplayString as i, unref as a, createCommentVNode as u, createElementVNode as x, renderSlot as g, createVNode as w, withCtx as P } from "vue";
2
+ import { F as A, H as S, aU as I, au as B, av as N } from "./entry-DK9FjQZ_.js";
3
+ function m(e) {
4
+ return Array.isArray(e) ? e.map(m) : e && typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([t, n]) => [t, m(n)])) : e;
5
+ }
6
+ function W(e) {
7
+ return r(() => m(e().draft));
8
+ }
9
+ const q = (e, t) => Object.entries(t).some(([n, c]) => e[n] !== c), z = (e, t = e.toolId) => e.executionAvailable ?? (e.view.availableNodeTools ?? ["resize", "background"]).includes(t), H = (e) => e.executionAvailable ?? (e.view.aiAvailable !== !1 && e.view.availableTools.includes(e.toolId));
10
+ function $(e, t) {
11
+ return r(() => {
12
+ const n = e();
13
+ return (c) => {
14
+ const o = {};
15
+ return o[t] = c, n.updateDraft(o);
16
+ };
17
+ });
18
+ }
19
+ const j = { class: "execution-box" }, F = {
20
+ key: 0,
21
+ class: "hint"
22
+ }, T = { key: 0 }, V = {
23
+ key: 1,
24
+ class: "hint"
25
+ }, D = {
26
+ key: 2,
27
+ class: "service-status",
28
+ role: "status"
29
+ }, E = { class: "hint" }, O = ["disabled"], G = /* @__PURE__ */ k({
30
+ __name: "PluginActionFooter",
31
+ props: {
32
+ context: {},
33
+ available: { type: Boolean, default: !0 },
34
+ ready: { type: Boolean, default: !0 },
35
+ label: {},
36
+ unavailableReason: {},
37
+ showServiceStatus: { type: Boolean, default: !0 }
38
+ },
39
+ setup(e) {
40
+ const { ui: t, uiText: n } = A(), c = S(), o = e, d = r(
41
+ () => o.context.readonly || o.context.executionAvailable === !1 || !o.context.view.count || !o.available || !o.ready || o.context.submitting
42
+ ), y = r(
43
+ () => o.context.submitting ? t("common.toolPanel_cfe317f2") : o.label ?? (o.context.view.waitingCount ? t("common.toolPanel_a699267c", { p0: o.context.view.count }) : t("common.toolPanel_5d31495f", { p0: o.context.view.count }))
44
+ );
45
+ async function v() {
46
+ return !d.value && await o.context.requestSubmit();
47
+ }
48
+ return (h, f) => (l(), s("div", j, [
49
+ e.context.view.waitingCount ? (l(), s("p", F, [
50
+ b(i(a(t)("common.toolPanel_0441f4b7", { p0: e.context.view.availableCount ?? 0 })), 1),
51
+ (e.context.view.waitingCount ?? 0) > (e.context.view.blockedCount ?? 0) ? (l(), s("span", T, i(a(t)("common.toolPanel_2d6c7046", {
52
+ p0: (e.context.view.waitingCount ?? 0) - (e.context.view.blockedCount ?? 0)
53
+ })), 1)) : u("", !0),
54
+ b(i(a(t)("common.toolPanel_0eeb8448")), 1)
55
+ ])) : u("", !0),
56
+ e.context.view.blockedCount ? (l(), s("p", V, i(a(t)("common.toolPanel_8c81c328", { p0: e.context.view.blockedCount })), 1)) : u("", !0),
57
+ !e.available && e.showServiceStatus && a(c)?.config.value.visibility?.serviceStatus !== !1 ? (l(), s("div", D, [
58
+ x("p", E, i(e.unavailableReason || (e.context.view.aiAvailable === !1 ? a(n)(e.context.view.aiFeedback) || a(t)("common.toolPanel_8665eaa2") : a(t)("common.toolPanel_6afbb9ca"))), 1),
59
+ x("button", {
60
+ disabled: e.context.view.aiChecking,
61
+ onClick: f[0] || (f[0] = //@ts-ignore
62
+ (...C) => e.context.refreshCapabilities && e.context.refreshCapabilities(...C))
63
+ }, i(e.context.view.aiChecking ? a(t)("common.toolPanel_e8b970bc") : a(t)("common.toolPanel_107e25c0")), 9, O)
64
+ ])) : u("", !0),
65
+ g(h.$slots, "default"),
66
+ w(a(I), {
67
+ name: "mainAction",
68
+ action: {
69
+ toolId: e.context.toolId,
70
+ entryId: e.context.entryId,
71
+ params: e.context.submissionParams,
72
+ count: e.context.view.count,
73
+ disabled: d.value,
74
+ submit: v
75
+ }
76
+ }, null, 8, ["action"]),
77
+ w(a(B).button, {
78
+ "data-onboarding": "tool-submit",
79
+ "data-material-action": "primary",
80
+ "data-tool-id": e.context.toolId,
81
+ class: "primary-action",
82
+ disabled: d.value,
83
+ "while-press": { scale: 0.97 },
84
+ transition: a(N),
85
+ onClick: v
86
+ }, {
87
+ default: P(() => [
88
+ b(i(y.value), 1)
89
+ ]),
90
+ _: 1
91
+ }, 8, ["data-tool-id", "disabled", "transition"])
92
+ ]));
93
+ }
94
+ });
95
+ export {
96
+ G as _,
97
+ $ as a,
98
+ H as b,
99
+ q as c,
100
+ z as n,
101
+ W as u
102
+ };