import{_ as v}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{q as y}from"./logs-CbT7wTGd.js?v=1773287522785";import{i as g}from"./index-BTglIPU2.js?v=1773287522785";import{u as w}from"./index-CsQ9XTTD.js?v=1773287522785";import{d as x}from"./index-TwdUTOyA.js?v=1773287522785";import{k as N,R as k,e as C,$ as O,a8 as S,a9 as n,a0 as s,S as r}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as $,a6 as A}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-D2Bk83Ev.js?v=1773287522785";import"./useLoading-CZ2gSAW7.js?v=1773287522785";import"./index-BRQskX9P.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-C5hb-Th7.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import"./useTableData-BmkIKQ_R.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-ChFCGdPN.js?v=1773287522785";import"./index-lEMZglLp.js?v=1773287522785";import"./firewall-jQIxKxfN.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./logs.vue_vue_type_script_setup_true_lang-ETP00Jn6.js?v=1773287522785";const Z=N({__name:"export-log",props:{ip_area:{type:Number,default:0}},setup(m,{expose:c}){const{t}=k(),u=w(),_=m,e=C({type:"access",time:"all"}),f=[{label:"Access",value:"access"},{label:"Error",value:"error"}],d=[{label:t("Public.All"),value:"all"},{label:t("7 days"),value:"7"},{label:t("30 days"),value:"30"},{label:t("180 days"),value:"180"}];return c({onConfirm:async()=>{const{message:o}=await y({siteName:u.websiteName,logType:e.type,time_search:JSON.stringify(x(e.time)),ip_area:_.ip_area});g(o)&&window.open("/download?filename="+o.result,"_blank","noopener,noreferrer")}}),(o,a)=>{const l=A,i=$,b=v;return O(),S(b,{class:"p-16px"},{default:n(()=>[s(i,{label:o.$t("Home.index_54")},{default:n(()=>[s(l,{class:"w-200px",options:f,value:r(e).type,"onUpdate:value":a[0]||(a[0]=p=>r(e).type=p)},null,8,["value"])]),_:1},8,["label"]),s(i,{label:o.$t("Export range")},{default:n(()=>[s(l,{class:"w-200px",options:d,value:r(e).time,"onUpdate:value":a[1]||(a[1]=p=>r(e).time=p)},null,8,["value"])]),_:1},8,["label"])]),_:1})}}});export{Z as default};
