System.register(["./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./setting-legacy-DG9cBT-a.js?v=1773287522785","./site-legacy-BrICTGUT.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,t){"use strict";var r,a,i,l,n,s,c,y,_,o,u,d,f,p,m,x,g,v,b,w,S;return{setters:[e=>{r=e._},e=>{a=e._},e=>{i=e.h},e=>{l=e.e},e=>{n=e.m},e=>{s=e.k,c=e.t,y=e.R,_=e.c,o=e.r,u=e.e,d=e.ab,f=e.$,p=e.Z,m=e.a0,x=e.a9,g=e._,v=e.S,b=e.aa},e=>{w=e.a1,S=e._},null],execute:function(){const t={class:"p-20px pt-24px"},h={class:"w-160px mr-8px"},C={class:"text-desc"},j={class:"w-160px mr-8px"},W={class:"text-desc"},$={class:"w-160px mr-8px"},U={class:"text-desc"},N={class:"text-error"},k={class:"text-error"},E={class:"text-error"};e("default",s({__name:"index",props:{config:{},siteName:{}},emits:["refresh"],setup(e,{expose:s,emit:P}){const R=e,Z=P,T=c(R,"siteName"),{t:q}=y(),z=_((()=>void 0===T.value)),A=o(null),B=u({retry_cycle:120,retry:10,retry_time:1800}),D={retry_cycle:{trigger:["blur","input"],validator:()=>!!B.retry_cycle||new Error(q("Waf.Site.Config.index_34"))},retry:{trigger:["blur","input"],validator:()=>!!B.retry||new Error(q("Waf.Site.Config.index_56"))},retry_time:{trigger:["blur","input"],validator:()=>!!B.retry_time||new Error(q("Waf.Site.Config.index_37"))}},F=async()=>{const e={retry_cycle:B.retry_cycle,retry:B.retry,retry_time:B.retry_time,is_open_global:T.value?0:1};z.value?await l(e):await n({...e,siteName:T.value||""}),Z("refresh")};return(()=>{const{config:e}=R;e&&(B.retry_cycle=e.retry_cycle,B.retry=e.retry,B.retry_time=e.retry_time)})(),s({onConfirm:async({hide:e})=>{await(A.value?.validate());const{siteName:t}=R;if(!t)return i({title:q("Waf.Site.Config.index_57"),content:q("Waf.Site.Config.index_58"),onConfirm:async({hide:t})=>(await F(),t(),e(),!1)}),!1;await F()}}),(e,i)=>{const l=S,n=w,s=a,c=d("i18n-t"),y=r;return f(),p("div",t,[m(s,{ref_key:"formRef",ref:A,model:v(B),rules:D},{default:x((()=>[m(n,{label:e.$t("Waf.Site.Config.index_14"),path:"retry_cycle"},{default:x((()=>[g("div",h,[m(l,{value:v(B).retry_cycle,"onUpdate:value":i[0]||(i[0]=e=>v(B).retry_cycle=e),min:1,"show-button":!1},null,8,["value"])]),g("span",C,b(e.$t("Public.Unit.Second",v(B).retry_cycle)),1)])),_:1},8,["label"]),m(n,{label:e.$t("Waf.Site.Config.index_53"),path:"retry"},{default:x((()=>[g("div",j,[m(l,{value:v(B).retry,"onUpdate:value":i[1]||(i[1]=e=>v(B).retry=e),min:1,"show-button":!1},null,8,["value"])]),g("span",W,b(e.$t("Public.Unit.Time",v(B).retry)),1)])),_:1},8,["label"]),m(n,{label:e.$t("Waf.Site.Config.index_18"),path:"retry_time"},{default:x((()=>[g("div",$,[m(l,{value:v(B).retry_time,"onUpdate:value":i[2]||(i[2]=e=>v(B).retry_time=e),min:1,"show-button":!1},null,8,["value"])]),g("span",U,b(e.$t("Public.Unit.Second",v(B).retry_time)),1)])),_:1},8,["label"])])),_:1},8,["model"]),m(y,{class:"mt-8px"},{default:x((()=>[m(c,{tag:"li",keypath:"Waf.Site.Config.index_101",scope:"global"},{index_1:x((()=>[g("span",N,b(v(B).retry),1)])),index_2:x((()=>[g("span",k,b(v(B).retry_cycle),1)])),index_3:x((()=>[g("span",E,b(v(B).retry_time),1)])),_:1})])),_:1})])}}}))}}}));
