import{dase,Kast,rasa,saso,easl,Eass,oasi,casr,aasp,wasn,Nasm,Fasu,lasd,_asc}from"./index-C75x1W_q.js";import{uasj}from"./useTable-Csp4_-i9.js";import{Easg}from"./el-card-B54lVHaN.js";import{Eash}from"./el-select-DpD7cK3l.js";import"./el-tag-sJbhYsGb.js";import"./el-popper-B4X-nZEc.js";import{Easb,aasf}from"./el-col-DgdPSEMf.js";import{_asx}from"./Table.vue_vue_type_script_lang-a6bm3afC.js";import{uasv}from"./useCrudSchemas-CGM66xm5.js";import{pas_}from"./index-CLMYWd3G.js";importyfrom"./Csearch-Cn4_Fwzz.js";import"./useInput-CL83Kqek.js";import"./index-BjT9vIQp.js";import"./isEqual-BHgupMbx.js";import"./debounce-B1dqoIRt.js";import"./el-table-column-DCN4Lp6f.js";import"./el-checkbox-DNn0VEEC.js";import"./isArrayLikeObject-f_cYQsBX.js";import"./raf-C1Ndsx6C.js";import"./el-tooltip-l0sNRNKZ.js";import"./el-image-viewer-18KIcjBl.js";import"./tsxHelper-eKzA9uIm.js";import"./el-dropdown-item-lD4tMeV-.js";import"./castArray-CbnyB5vx.js";import"./refs-B1ngtnm_.js";import"./index-BOnf2JCp.js";import"./tree-BfZhwLPs.js";import"./index-CU1g1Qmh.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-BM7LKSVD.js";import"./el-text-BJjANnhE.js";import"./el-divider-CiB4UXSP.js";import"./el-tree-select-BKG-9Xvi.js";import"./index-Dv5KR0Js.js";import"./Dialog.vue_vue_type_style_index_0_lang-B4Mgj1gO.js";import"./useIcon-DN_g2XQA.js";import"./exportData.vue_vue_type_script_setup_true_lang-BS9zc1Vf.js";import"./el-tab-pane-XI1GbNMj.js";import"./el-form-BuKnlznG.js";import"./el-radio-group-Bvqq9Jha.js";import"./el-space-nKvlQ490.js";constS=c(e({__name:"SubdomainTakeover",props:{projectList:{}},setup(e){const{t:c}=d(),S=[{keyword:"domain",example:'domain="example.com"',explain:c("searchHelp.domain")},{keyword:"type",example:'type="github"',explain:c("searchHelp.subdomainType")},{keyword:"value",example:'value="exapmle.github.com"',explain:c("searchHelp.subdoaminValue")},{keyword:"response",example:'response="404 Not Found"',explain:c("searchHelp.body")},{keyword:"project",example:'project="Hackerone"',explain:c("searchHelp.project")}];t((()=>{E(),window.addEventListener("resize",E)}));constw=a(0),E=()=>{conste=window.innerHeight||document.documentElement.clientHeight;w.value=.7*e},k=a(""),z=e=>{k.value=e,I()},L=o([{field:"selection",type:"selection",minWidth:"55"},{field:"index",label:c("tableDemo.index"),type:"index",minWidth:"30"},{field:"host",label:"Domain",minWidth:"300"},{field:"value",label:c("subdomain.recordValue"),minWidth:"400"},{field:"type",label:"Type",minWidth:"200"},{field:"response",label:"Response",minWidth:"300",formatter:(e,t,a)=>l(s,{"max-height":"100"},{default:()=>[l("div",{style:"whiteSpace: 'pre-line'"},[a])]})}]),{allSchemas:H}=v(L),{tableRegister:T,tableState:A,tableMethods:C}=j({fetchDataApi:async()=>{const{currentPage:e,pageSize:t}=A,a=await_(k.value,e.value,t.value,M);return{list:a.data.list,total:a.data.total}},immediate:!1}),{loading:P,dataList:W,total:D,currentPage:R,pageSize:U}=A;U.value=20;const{getList:I,getElTableExpose:N}=C;functionF(){return{background:"var(--el-fill-color-light)"}}constM=o({}),O=(e,t)=>{Object.assign(M,t),k.value=e,I()};return(e,t)=>(i(),r(u,null,[l(y,{getList:p(I),handleSearch:z,searchKeywordsData:S,index:"SubdoaminTakerResult",getElTableExpose:p(N),projectList:e.$props.projectList,handleFilterSearch:O},null,8,["getList","getElTableExpose","projectList"]),l(p(f),null,{default:n((()=>[l(p(b),null,{default:n((()=>[l(p(g),{style:{height:"min-content"}},{default:n((()=>[l(p(x),{pageSize:p(U),"onUpdate:pageSize":t[0]||(t[0]=e=>m(U)?U.value=e:null),currentPage:p(R),"onUpdate:currentPage":t[1]||(t[1]=e=>m(R)?R.value=e:null),columns:p(H).tableColumns,data:p(W),stripe:"","max-height":w.value,border:!0,loading:p(P),resizable:!0,onRegister:p(T),headerCellStyle:F,"tooltip-options":{offset:1,showArrow:!1,effect:"dark",enterable:!1,showAfter:0,popperOptions:{},popperClass:"test",placement:"bottom",hideAfter:0,disabled:!0},style:{fontFamily:"-apple-system,BlinkMacSystemFont,SegoeUI,Roboto,HelveticaNeue,Arial,NotoSans,sans-serif,AppleCol