const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Index-Bq1pwOuq.js","./constant-Dkm_Y9q1.js","./vendor-s2rfM_Vj.js","./apis-DdFSvwR4.js","./newtab-BWIjnu6l.js","./index-Bf7N7lFc.js","./index-_OyDQdIX.css","./t-r-vendor-gn7FMrPE.js","./t-r-vendor-BqYdeEzc.css","./newtab-0VcUNIVO.css","./GroupSelector-DE_oQW1L.js","./Index-DDcvGMwD.js","./Index-dGIA3kQA.css","./Index-EoEO3hf6.css","./Index-B0uK-_oj.js","./Index-DlzQUUym.css","./Index-C5MTa7pb.js","./Index-BIYIpeAg.css"])))=>i.map(i=>d[i]);
import{_ as e}from"./constant-Dkm_Y9q1.js";import{r as a,z as s}from"./vendor-s2rfM_Vj.js";import{d as i,a as r}from"./newtab-BWIjnu6l.js";import{W as t,N as o,C as l}from"./Index-DDcvGMwD.js";import{D as n,M as d,L as m}from"./t-r-vendor-gn7FMrPE.js";import"./index-Bf7N7lFc.js";import"./apis-DdFSvwR4.js";const p="_add-apps-dialog_56752_1",{MenuItem:h}=d,c=a.lazy((()=>e((()=>import("./Index-Bq1pwOuq.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url))),j=a.lazy((()=>e((()=>import("./Index-B0uK-_oj.js")),__vite__mapDeps([14,2,3,1,4,5,6,7,8,9,10,11,12,15]),import.meta.url))),x=a.lazy((()=>e((()=>import("./Index-C5MTa7pb.js")),__vite__mapDeps([16,2,3,4,5,6,1,7,8,9,10,11,12,17]),import.meta.url))),u=[{id:"0",name:"网站应用",cpn:e=>s.jsx(c,{...e})},{id:"1",name:"实用工具",cpn:e=>s.jsx(x,{...e})},{id:"2",name:"自定义",cpn:e=>s.jsx(j,{...e})}],v=({visible:e,handleVisible:c})=>{var j;const x=i((e=>e.addAppOption)),v=r((e=>e.isBlack)),[_,f]=a.useState(x&&x.type||"0"),b=null==(j=u.find((e=>e.id===_)))?void 0:j.cpn;return s.jsx(n,{className:p,closeOnOverlayClick:!0,visible:e,mode:"modal",width:"var(--add-apps-dialog-width)",onClose:()=>{c(!1)},preventScrollThrough:!0,showOverlay:!0,theme:"default",footer:!1,header:!1,closeBtn:!1,style:{height:"60vh",backgroundColor:"var(--theme-black7)",backdropFilter:"url(#ovo-filter) brightness(1.1)",boxShadow:"var(--shadow-elevation-medium)",overflow:"hidden"},children:s.jsxs(t,{children:[s.jsx(o,{children:s.jsx(d,{value:_,onChange:e=>f(e),theme:v?"dark":"light",style:{width:"var(--add-apps-menu-width)",transition:"all 0.2s ease-in-out"},children:u.map((e=>s.jsx(h,{value:e.id,children:s.jsx("span",{children:e.name})},e.id)))})}),s.jsx(l,{children:s.jsx(a.Suspense,{fallback:s.jsx(m,{style:{transform:"translate(-50%, -50%)",position:"absolute",left:"50%",top:"50%"}}),children:b&&s.jsx(b,{handleVisible:c})})})]})})};export{v as default};
