import{i as e}from"./chunk-B3pr0VN8.js";import{n as t,t as n}from"./jsx-runtime-wTfS3W87.js";import{l as r,r as i}from"./chunk-6CSD65Y2-Dj7xjS5D.js";import{n as a,t as o}from"./guestAccess-BUJI25cm.js";var s=e(t(),1),c=n();function l({visible:e,onLogin:t,dismissScope:n=`default`}){let[l,u]=(0,s.useState)(()=>a(n)),d=r();return(0,s.useEffect)(()=>{u(a(n))},[n]),!e||l?null:(0,c.jsxs)(`div`,{style:{position:`fixed`,right:18,bottom:18,zIndex:80,width:320,maxWidth:`calc(100vw - 24px)`,padding:14,borderRadius:16,background:`color-mix(in srgb, var(--surface) 88%, transparent)`,border:`1px solid var(--border2)`,boxShadow:`0 18px 40px rgba(15,23,42,0.18)`,backdropFilter:`blur(12px)`},children:[(0,c.jsx)(`button`,{type:`button`,onClick:()=>{u(!0),o(n)},style:{position:`absolute`,right:10,top:10,width:24,height:24,borderRadius:999,border:`1px solid var(--border)`,background:`var(--surface2)`,color:`var(--text-2)`,fontSize:12},children:`×`}),(0,c.jsx)(`div`,{style:{fontSize:14,fontWeight:700,color:`var(--text-1)`,marginBottom:6},children:`登录后使用网站 AI 工具`}),(0,c.jsxs)(`div`,{style:{fontSize:12,lineHeight:1.7,color:`var(--text-2)`,marginBottom:10},children:[`新用户注册赠送 `,20,` 积分，可用于网站 AI 工具体验；插件买断/包年是独立权益，需在插件权益收银台单独开通。`]}),t?(0,c.jsx)(`button`,{type:`button`,onClick:t,style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,minWidth:110,height:34,padding:`0 16px`,borderRadius:999,background:`var(--btn-primary-bg)`,color:`var(--btn-primary-text)`,border:`1px solid var(--btn-primary-border)`,textDecoration:`none`,fontSize:13,fontWeight:700},children:`登录 / 注册`}):d?(0,c.jsx)(i,{to:`/auth`,style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,minWidth:110,height:34,padding:`0 16px`,borderRadius:999,background:`var(--btn-primary-bg)`,color:`var(--btn-primary-text)`,border:`1px solid var(--btn-primary-border)`,textDecoration:`none`,fontSize:13,fontWeight:700},children:`登录 / 注册`}):null]})}export{l as t};