import{i as l,c as f}from"./app-a6cKceqE.js";import{_}from"./app-DY-0PadZ.js";import{_ as p}from"./app-CQ-vNlMj.js";import{_ as d}from"./app-CignoBaV.js";import{T as h}from"./app-CrjU8lgK.js";import{_ as y}from"./app-CPH3DNXR.js";import{D as x}from"./app-7GBSHA5C.js";import{o,g as u,b as a,u as e,w as i,F as R,a as s,f as n,t as c,h as r,c as m}from"./app-BYcXwl4U.js";import"./app-DCd54JMo.js";import"./app-MrAtUXr3.js";import"./app-BWSI2Z1R.js";import"./app-DPDEogA0.js";import"./app-DxjODhok.js";import"./app-CabATHnR.js";import"./app-BhzV4gWo.js";function g(){l(this),this.success=this.$NotifyReloadSuccess("任务提交成功"),this.isRequesting=!1,this.before=function(){this.isRequesting=!0},this.done=function(){this.isRequesting=!1}}const b=s("div",null,[s("span",{class:"grey"},"预热缓存指的是预先从源站读取最新内容，当用户访问预热后的URL时直接从缓存中返回内容，不需要再次回源。")],-1),k=s("td",{class:"title"}," URL列表 * ",-1),q={class:"comment"},B={key:0},G={__name:"fetch",setup(T){const t=f(new g);return(D,$)=>(o(),u(R,null,[a(y,{ctx:e(t),"active-tab":"fetch"},null,8,["ctx"]),b,a(p,{action:"$",onSuccess:e(t).success,onDone:e(t).done,timeout:"600",onBefore:e(t).before,class:"mt-4"},{default:i(()=>[a(x,null,{default:i(()=>[s("tbody",null,[s("tr",null,[k,s("td",null,[a(_,{rows:"20",name:"urlList",autofocus:"",class:"w-full"}),s("p",q,[n("每行一条，每次最多提交"+c(e(t).maxKeysPerTask)+"个URL，每天最多提交"+c(e(t).maxKeysPerDay)+"个",1),e(t).quotaKeysToday>0?(o(),u("span",B,"，今日剩余"+c(e(t).quotaKeysToday)+"个",1)):r("",!0),n("。")])])])])]),_:1}),e(t).isRequesting?r("",!0):(o(),m(d,{key:0},{default:i(()=>[n("预热缓存")]),_:1})),e(t).isRequesting?(o(),m(h,{key:1,disabled:"",type:"button"},{default:i(()=>[n("处理中...")]),_:1})):r("",!0)]),_:1},8,["onSuccess","onDone","onBefore"])],64))}};export{G as default};
