import{z as e}from"./vendor-s2rfM_Vj.js";import"./apis-DdFSvwR4.js";import{H as o}from"./newtab-BWIjnu6l.js";import{N as t,a,b as r,c as s,C as l}from"./Index-cutayDNQ.js";import{D as i,T as n}from"./t-r-vendor-gn7FMrPE.js";import"./index-Bf7N7lFc.js";import"./constant-Dkm_Y9q1.js";import"./MainThreadAnimation-D1LS2X8r.js";const d="_hot-search-dialog_w5ter_1",h=({visible:h,hotSearch:c,handleVisible:m})=>{const p=o=>{const i=c[o];return e.jsx(t,{children:i.map(((o,t)=>e.jsxs(a,{onClick:()=>{return e=o.link,void(location.href=e);var e},children:[e.jsx(r,{children:o.index}),e.jsx("p",{children:o.text}),e.jsx(s,{isDetail:1,children:!isNaN(+o.hotValue)&&o.hotValue?e.jsx(l,{from:+o.hotValue-20,to:+o.hotValue,separator:",",direction:"up",duration:.1},`${o.hotValue}_${o.index}`):o.hotValue})]},t)))})},u=Object.keys(o).map(((e,t)=>({label:o[e],value:t,panel:p(e)})));return e.jsx(i,{className:d,style:{padding:0,overflow:"auto",backgroundColor:"var(--theme-black7)",backdropFilter:"blur(5px)",height:"60vh"},width:"var(--setting-dialog-width)",visible:h,mode:"modal",onClose:()=>m(!1),preventScrollThrough:!0,showOverlay:!0,theme:"default",footer:!1,header:!1,closeBtn:!1,closeOnEscKeydown:!0,closeOnOverlayClick:!0,confirmOnEnter:!1,destroyOnClose:!0,children:e.jsx(n,{placement:"left",defaultValue:0,list:u})})};export{h as default};
