import{i as l,c as f}from"./app-DckefXYL.js";import{_}from"./app-DFWP-E91.js";import{_ as p}from"./app-MnSDCF4P.js";import{_ as d}from"./app-COct4tsy.js";import{T as h}from"./app-LqsmzyUT.js";import{_ as y}from"./app-gVd4RIjO.js";import{D as x}from"./app-Cx7ENVlu.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-DnroACXc.js";import"./app-C9iVkiu5.js";import"./app-DrIi-dNq.js";import"./app-zueB50zj.js";import"./app-B0NrURRk.js";import"./app-Co2SIBzr.js";import"./app-CUPmXIij.js";import"./app-Cu6FD8m8.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};
