System.register(["./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./logs-legacy-32yr6NrT.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./index-legacy-LM5_xOUf.js?v=1773287522785","./index-legacy-Dwkxr13O.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-CvnE2rtV.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./index-legacy-Cv0QQQJ6.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BWPgT9-g.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BQ2Kqzbl.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BBkGleHZ.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-5qdKE57s.js?v=1773287522785","./index-legacy-BJO1GMTD.js?v=1773287522785","./firewall-legacy-BLYDdl9f.js?v=1773287522785","./logs.vue_vue_type_script_setup_true_lang-legacy-BItZEEdT.js?v=1773287522785"],(function(e,l){"use strict";var a,t,s,u,n,i,_,c,r,y,p,g,o,d,v,j,x;return{setters:[e=>{a=e._},e=>{t=e._},e=>{s=e.p},null,e=>{u=e.u},e=>{n=e.d},e=>{i=e.k,_=e.R,c=e.e,r=e.$,y=e.Z,p=e.a0,g=e.a9,o=e.S,d=e._,v=e.aa},e=>{j=e.a1,x=e.a6},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"p-16px"},f={class:"text-warning font-bold"};e("default",i({__name:"clear-log",props:{onRefresh:{type:Function,default:()=>{}}},setup(e,{expose:i}){const{t:b}=_(),m=u(),w=e,h=c({type:"access",time:"all"}),N=[{label:"Access",value:"access"},{label:"Error",value:"error"}],O=[{label:b("Public.All"),value:"all"},{label:b("Only retain 7 days of logs"),value:"7"},{label:b("Only retain 30 days of logs"),value:"30"},{label:b("Only retain 180 days of logs"),value:"180"}];return i({onConfirm:async()=>{await s({siteName:m.websiteName,logType:h.type,time_search:JSON.stringify(n(h.time))}),w.onRefresh()}}),(e,s)=>{const u=x,n=j,i=t,_=a;return r(),y("div",l,[p(i,null,{default:g((()=>[p(n,{label:e.$t("Home.index_54")},{default:g((()=>[p(u,{class:"w-200px",options:N,value:o(h).type,"onUpdate:value":s[0]||(s[0]=e=>o(h).type=e)},null,8,["value"])])),_:1},8,["label"]),p(n,{label:e.$t("Clear range")},{default:g((()=>[p(u,{class:"w-200px",options:O,value:o(h).time,"onUpdate:value":s[1]||(s[1]=e=>o(h).time=e),"consistent-menu-width":!1},null,8,["value"])])),_:1},8,["label"])])),_:1}),p(_,null,{default:g((()=>[d("li",f,v(e.$t("Cleaning up related logs may make troubleshooting more difficult; please proceed with caution.")),1)])),_:1})])}}}))}}}));
