import{i as M}from"./popup-CUqQDM27.js";import{d as T,q as y,ac as n,ad as c,j as D,g as _,ae as N,a8 as b,l as k,u as e,o as r,c as U,w as z,a as l,b as u,O as B,M as i,L as p,Z as L,$ as j,_ as w}from"./__uno-CP0Q6RG2.js";const S=s=>(L("data-v-8b9b48d8"),s=s(),j(),s),x={key:0},C=S(()=>u("div",null,"支持：Amazon、Temu",-1)),G=S(()=>u("div",null,"请在浏览器登录卖家中心，并保持浏览器窗口开启和卖家中心在线",-1)),F=T({__name:"detect-header",setup(s){const A=y(),I=n(c.FULLY_MANAGED),f=n(c.SEMI_MANAGED_NA),g=n(c.SEMI_MANAGED_US),v=n(c.SEMI_MANAGED_EU),o=D(!1),a=_(()=>[I,f,v,g].some(({detectState:t})=>t==="loggedIn")),h=_(()=>{const t=[];return o.value&&t.push("Amazon"),a.value&&t.push("Temu"),`当前检测到卖家中心：${t.join("、")}`});let m;const d=async()=>{o.value=await M()};return N(()=>{m=setInterval(()=>d(),1e3),d()}),b(()=>{clearInterval(m)}),(t,V)=>{const E=k("gj-alert");return e(A).isX?(r(),U(E,{key:0,closable:e(o)||e(a),class:"detect-header"},{default:z(()=>[e(o)||e(a)?(r(),l(p,{key:0},[u("div",null,B(e(h)),1),e(a)?(r(),l("div",x," Temu执行请按照Temu卖家中心页面浮窗指引操作 ")):i("",!0)],64)):(r(),l(p,{key:1},[C,G],64))]),_:1},8,["closable"])):i("",!0)}}}),H=w(F,[["__scopeId","data-v-8b9b48d8"]]);export{H as D};
