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