1import{Y as F,i as z,B as v,cF as E,cG as I,cE as i,cD as L,cH as D,aJ as O,V as T,W as V}from"./BuQWImh-.js";import{C as q}from"./CreateArea-DxJbEznB.js";import{d as S,r as h,c as x,o as M,w as C,n as N,y as Q,z as A,f as l,D as f,L as W,B as $,R as k}from"./chunk-vue-TRwxe8i9.js";import{A as j}from"./AppSkeleton-svdZNc68.js";import"./chunk-pinia-DfnRCC0j.js";import"./chunk-i18n-CEBPY5W3.js";import"./chunk-alioss-Co3x7qJ6.js";import"./chunk-fabric-NyCWrAO1.js";import"./TaskGalleryZone-BafQFKI0.js";import"./Zone-BRMrVdTi.js";import"./ExploreList-B6XGp1Bj.js";import"./StickyTopBar-CzWx_0D5.js";import"./CustomWaterfall-BTfGr7tL.js";import"./ReportDialog-Bm9dkCi7.js";import"./SampleItem-BYYs5A6L.js";import"./color-thief-DF3QbzqH.js";import"./Like-CQZ7VGOE.js";import"./MoreButton-D31AFFjM.js";import"./TopBanner-Bm8by0y2.js";import"./trackTrigger-BwaL3oL_.js";import"./ZoneMoblieList-BefFylvE.js";import"./AlSpriteIcon.vue-C8g-b9gF.js";import"./TaskListByCategory-Bd-xdQir.js";import"./TaskAreaNew-CVFM6VTP.js";import"./mvAgentAudioHandoff-bUl2GcuQ.js";import"./TaskVideoResultItem-B5wQ4nlu.js";import"./agentRefinePlan-DmLfrv_V.js";import"./agentConfig-DEjPhl-I.js";import"./TaskRefineWithAgentBtn-B_9jQy2N.js";import"./useCwcsUpload-CG_XoZbx.js";import"./AddToCharacterAction-DGPX20sG.js";import"./TaskSamplePanel-BuLQZqX2.js";const G=S({__name:"PartialRedrawing",props:{type:{}},setup(P){F();const n=z(),a=v(),p=E(),d=I(),o=h(""),R=h(""),U=x(()=>({externalImageUrl:R.value})),y=async()=>{const e=a.query.sourceUrl,t=Array.isArray(e)?e[0]:e;if(typeof t!="string"||t.trim()===""||o.value===t.trim())return;const s=t.trim();let r="";try{r=await D(s)}catch(b){console.error("sign source url failed",b)}r||(r=O(s));const w=p.file(i.default);if(w?.fileLink===r||w?.playable===r){o.value=s;return}const c=s.split("?")[0]??"",m=c.split(".").pop(),_=m&&m.length<=5?m.toLowerCase():"png",u=c.split("/").pop(),B=u&&u!==""?u:`source.${_}`;p.setFileByUrl({playable:r,fileLink:r,filePath:c,size:0,name:B,ext:_,sample:!1,watermarked:!0},i.default),d.setImageRedrawTime(i.default),o.value=s},g=()=>{n.value&&window.scrollTo(0,0),T(),y()};return M(()=>{g()}),C(()=>a.fullPath,(e,t)=>{e!==t&&N(()=>{g()})}),C(()=>a.query.sourceUrl,()=>{y()}),(e,t)=>(A(),Q("div",{class:W(["w-full flex h-full anieraser-page-container",[f(n)?"flex-col p-[0.5rem]":"flex-row"]])},[l(L,{scene:f(i).default,type:e.type,"generate-visible":!0,"enhancer-type":e.type,"show-header":!0,data:U.value},null,8,["scene","type","enhancer-type","data"]),l(q,{class:"w-full",type:e.type,"task-category":e.type},null,8,["type","task-category"])],2))}}),H=Object.assign(G,{__name:"AnieraserPartialRedrawing"}),Re=S({__name:"partial-redrawing",setup(P){const n=v(),a=x(()=>n.meta.type);return(p,d)=>{const o=V;return A(),$(o,null,{fallback:k(()=>[l(j,{"left-width":800})]),default:k(()=>[l(H,{type:f(a)},null,8,["type"])]),_:1})}}});
1export{Re as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.