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","./index-legacy-y1mYB81o.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,a){"use strict";var l,d,t,s,i,u,n,r,b,v,_,o,x,c,p,m,D,f,g,B,h,w,y,j;return{setters:[e=>{l=e._},e=>{d=e._},e=>{t=e.gz,s=e.m},e=>{i=e.u},e=>{u=e.k,n=e.R,r=e.r,b=e.e,v=e.$,_=e.Z,o=e.a0,x=e.a9,c=e._,p=e.S,m=e.j,D=e.aa,f=e.N},e=>{g=e.a1,B=e.a6,h=e.b,w=e.au,y=e._,j=e.av},null],execute:function(){const a={class:"py-20px"},$={class:"w-260px"},R={class:"w-260px"},U={class:"w-260px"},k={class:"w-260px"};e("default",u({__name:"index",props:{data:{}},setup(e,{expose:u}){const{t:S}=n(),q=e,{row:z,sid:E,dbIdx:I,isEdit:P}=q.data,Z=i(),A=r(null),C=b({db_idx:0,name:"",val:"",endtime:void 0}),H=r([{label:"DB0",value:0},{label:"DB1",value:1},{label:"DB2",value:2},{label:"DB3",value:3},{label:"DB4",value:4},{label:"DB5",value:5},{label:"DB6",value:6},{label:"DB7",value:7},{label:"DB8",value:8},{label:"DB9",value:9},{label:"DB10",value:10},{label:"DB11",value:11},{label:"DB12",value:12},{label:"DB13",value:13},{label:"DB14",value:14},{label:"DB15",value:15}]),N={name:{required:!0,message:S("Database.redis.index_1"),trigger:"blur"},val:{required:!0,message:S("Database.redis.index_4"),trigger:"blur"}};return-1!==I&&(C.db_idx=I),P&&z&&(C.name=z.name,C.val=z.val,C.endtime=z.endtime?z.endtime:void 0),u({onConfirm:async()=>{await(A.value?.validate());const e=(()=>{if(null===E)throw s.error(S("Database.redis.index_8")),new Error(S("Database.redis.index_9"));const e={...f(C),sid:E};return void 0===e.endtime&&delete e.endtime,e})();await t(e),Z.setRefresh(!0),Z.setAddRedisId(e.db_idx)}}),(e,t)=>{const s=B,i=g,u=h,n=y,r=j,b=w,f=d,S=l;return v(),_("div",a,[o(f,{ref_key:"formRef",ref:A,model:p(C),rules:N},{default:x((()=>[o(i,{label:e.$t("Site.PHP.add_site_16"),path:"db_idx"},{default:x((()=>[c("div",$,[o(s,{value:p(C).db_idx,"onUpdate:value":t[0]||(t[0]=e=>p(C).db_idx=e),options:p(H),disabled:p(P)},null,8,["value","options","disabled"])])])),_:1},8,["label"]),o(i,{label:e.$t("Database.redis.index_2"),path:"name"},{default:x((()=>[c("div",R,[o(u,{value:p(C).name,"onUpdate:value":t[1]||(t[1]=e=>p(C).name=e),disabled:p(P),placeholder:e.$t("Database.redis.index_1")},null,8,["value","disabled","placeholder"])])])),_:1},8,["label"]),o(i,{label:e.$t("Database.redis.index_3"),path:"val"},{default:x((()=>[c("div",U,[o(u,{value:p(C).val,"onUpdate:value":t[2]||(t[2]=e=>p(C).val=e),type:"textarea",autosize:{minRows:4,maxRows:4},placeholder:e.$t("Database.redis.index_4")},null,8,["value","placeholder"])])])),_:1},8,["label"]),o(i,{label:e.$t("Database.redis.index_5"),"show-feedback":!1},{default:x((()=>[c("div",k,[o(b,null,{default:x((()=>[o(n,{value:p(C).endtime,"onUpdate:value":t[3]||(t[3]=e=>p(C).endtime=e),class:"flex-1",min:0,"show-button":!1,placeholder:e.$t("Database.redis.index_6")},null,8,["value","placeholder"]),o(r,null,{default:x((()=>t[4]||(t[4]=[m("sec")]))),_:1,__:[4]})])),_:1})])])),_:1},8,["label"])])),_:1},8,["model"]),o(S,{class:"mt-24px px-20px"},{default:x((()=>[c("li",null,D(e.$t("Database.redis.index_7")),1)])),_:1})])}}}))}}}));
