(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9401],{5050:(s,n,e)=>{"use strict";function t(s,n){return`fashion-runtime:${s}:${n}`}function a(s,n){return`fashion-workspace:${s}:${n}`}function r(s){return`fashion-link-assist:${s}`}function i(s){return`/workspace/${s}`}function c(s,n,e){let t=new URLSearchParams({workspace:String(s),channel:e,url:n});return`/link-assist?${t.toString()}`}e.d(n,{DK:()=>a,GP:()=>t,PB:()=>c,RW:()=>i,wc:()=>r})},6994:(s,n,e)=>{"use strict";e.d(n,{LinkAssistClient:()=>i});var t=e(5155),a=e(2115),r=e(5050);function i({workspaceIndex:s,channelId:n,url:e}){let[c,l]=(0,a.useState)(""),[o,h]=(0,a.useState)(""),u=(0,a.useMemo)(()=>{try{return new URL(e).host}catch{return e}},[e]);function d(s,e=""){var t={channelId:n,action:s,summary:e,nonce:`${Date.now()}-${Math.random()}`};try{let s=new BroadcastChannel("fashion-link-assist");s.postMessage(t),s.close()}catch{}window.localStorage.setItem((0,r.wc)(t.channelId),JSON.stringify(t)),h("已回传到原工作区，你可以关闭当前窗口。")}return(0,t.jsx)("main",{className:"assist-wrap",children:(0,t.jsxs)("section",{className:"glass-card assist-card",children:[(0,t.jsx)("h1",{children:"人工协助窗口"}),(0,t.jsxs)("p",{children:["工作区：",s]}),(0,t.jsxs)("p",{children:["目标站点：",u]}),(0,t.jsx)("p",{className:"link-text",children:e}),(0,t.jsx)("p",{children:"说明：在这里完成登录、验证码或人工验证后，不会自动把站点登录态同步回服务端。更稳妥的方式是把关键信息手动补充后回传给原工作区继续生成。"}),(0,t.jsxs)("div",{className:"assist-actions",children:[(0,t.jsx)("button",{className:"primary-btn",onClick:()=>window.open(e,"_blank","noopener,noreferrer"),children:"打开目标链接"}),(0,t.jsx)("button",{className:"ghost-btn",onClick:()=>d("retry_extract"),children:"通知原工作区重新抓取"}),(0,t.jsx)("button",{className:"ghost-btn",onClick:()=>d("skip"),children:"通知原工作区跳过链接"})]}),(0,t.jsxs)("label",{children:["手动补充商品信息",(0,t.jsx)("textarea",{rows:12,value:c,onChange:s=>l(s.target.value),placeholder:"建议补充：商品标题、卖点、规格、材质、适用场景、注意事项等。"})]}),(0,t.jsx)("div",{className:"assist-actions",children:(0,t.jsx)("button",{className:"primary-btn",disabled:!c.trim(),onClick:()=>d("manual_supplement",c.trim()),children:"回传补充内容并继续生成"})}),o?(0,t.jsx)("p",{children:o}):null]})})}},9926:(s,n,e)=>{Promise.resolve().then(e.bind(e,6994))}},s=>{s.O(0,[8441,3794,7358],()=>s(s.s=9926)),_N_E=s.O()}]);