import{i as l,c as f}from"./app-Ba7ZqSpq.js";import{_}from"./app-T1ysvErZ.js";import{_ as p}from"./app-DFulsyXy.js";import{_ as d}from"./app-DWUwCFNm.js";import{T as h}from"./app-CNHjdV6U.js";import{_ as y}from"./app-CWUdaaxi.js";import{D as x}from"./app-ZeVDYyDS.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-SC54XQDl.js";import"./app-CL60OiIv.js";import"./app-D9TrJBlL.js";import"./app-_Ovp2dOH.js";import"./app-BjSCO7rC.js";import"./app-Dhl-Bw0H.js";import"./app-B2C_dtYI.js";import"./app-COidJXl1.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};
