System.register(["./public-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./setting-legacy.js?v=1763625242172","./site-legacy3.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,t){"use strict";var r,a,l,i,n,s,c,y,_,o,u,d,p,f,m,g,x,v,b,w,S;return{setters:[e=>{r=e.a,a=e._},e=>{l=e._},e=>{i=e.e},e=>{n=e.m},e=>{s=e.k,c=e.t,y=e.P,_=e.c,o=e.r,u=e.e,d=e.a5,p=e.R,f=e.S,m=e.X,g=e.a3,x=e.U,v=e.V,b=e.a4},e=>{w=e.df,S=e.dP},null,null,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"},U={class:"w-160px mr-8px"},$={class:"text-desc"},P={class:"text-error"},N={class:"text-error"},k={class:"text-error"};e("default",s({__name:"index",props:{config:{},siteName:{}},emits:["refresh"],setup(e,{expose:s,emit:E}){const R=e,H=E,T=c(R,"siteName"),{t:V}=y(),X=_((()=>void 0===T.value)),q=o(null),z=u({retry_cycle:120,retry:10,retry_time:1800}),A={retry_cycle:{trigger:["blur","input"],validator:()=>!!z.retry_cycle||new Error(V("Waf.Site.Config.index_34"))},retry:{trigger:["blur","input"],validator:()=>!!z.retry||new Error(V("Waf.Site.Config.index_56"))},retry_time:{trigger:["blur","input"],validator:()=>!!z.retry_time||new Error(V("Waf.Site.Config.index_37"))}},B=async()=>{const e={retry_cycle:z.retry_cycle,retry:z.retry,retry_time:z.retry_time,is_open_global:T.value?0:1};X.value?await i(e):await n({...e,siteName:T.value||""}),H("refresh")};return(()=>{const{config:e}=R;e&&(z.retry_cycle=e.retry_cycle,z.retry=e.retry,z.retry_time=e.retry_time)})(),s({onConfirm:async({hide:e})=>{await(q.value?.validate());const{siteName:t}=R;if(!t)return r({title:V("Waf.Site.Config.index_57"),content:V("Waf.Site.Config.index_58"),onConfirm:async({hide:t})=>(await B(),t(),e(),!1)}),!1;await B()}}),(e,r)=>{const i=w,n=S,s=l,c=d("i18n-t"),y=a;return p(),f("div",t,[m(s,{ref_key:"formRef",ref:q,model:v(z),rules:A},{default:g((()=>[m(n,{label:e.$t("Waf.Site.Config.index_14"),path:"retry_cycle"},{default:g((()=>[x("div",h,[m(i,{value:v(z).retry_cycle,"onUpdate:value":r[0]||(r[0]=e=>v(z).retry_cycle=e),min:1,"show-button":!1},null,8,["value"])]),x("span",C,b(e.$t("Public.Unit.Second",v(z).retry_cycle)),1)])),_:1},8,["label"]),m(n,{label:e.$t("Waf.Site.Config.index_53"),path:"retry"},{default:g((()=>[x("div",j,[m(i,{value:v(z).retry,"onUpdate:value":r[1]||(r[1]=e=>v(z).retry=e),min:1,"show-button":!1},null,8,["value"])]),x("span",W,b(e.$t("Public.Unit.Time",v(z).retry)),1)])),_:1},8,["label"]),m(n,{label:e.$t("Waf.Site.Config.index_18"),path:"retry_time"},{default:g((()=>[x("div",U,[m(i,{value:v(z).retry_time,"onUpdate:value":r[2]||(r[2]=e=>v(z).retry_time=e),min:1,"show-button":!1},null,8,["value"])]),x("span",$,b(e.$t("Public.Unit.Second",v(z).retry_time)),1)])),_:1},8,["label"])])),_:1},8,["model"]),m(y,{class:"mt-8px"},{default:g((()=>[m(c,{tag:"li",keypath:"Waf.Site.Config.index_101",scope:"global"},{index_1:g((()=>[x("span",P,b(v(z).retry),1)])),index_2:g((()=>[x("span",N,b(v(z).retry_cycle),1)])),index_3:g((()=>[x("span",k,b(v(z).retry_time),1)])),_:1})])),_:1})])}}}))}}}));
