System.register(["./public-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,a){"use strict";var l,d,t,s,i,u,n,r,b,v,o,_,c,p,x,m,D,f,g,B,y,h,w,j;return{setters:[e=>{l=e._},e=>{d=e._},e=>{t=e.bn,s=e.fU,i=e.m},e=>{u=e.k,n=e.P,r=e.r,b=e.e,v=e.R,o=e.S,_=e.X,c=e.a3,p=e.U,x=e.V,m=e.j,D=e.a4,f=e.N},e=>{g=e.dV,B=e.dP,y=e.au,h=e.df,w=e.dY,j=e.az},null,null],execute:function(){const a={class:"py-20px"},$={class:"w-260px"},R={class:"w-260px"},U={class:"w-260px"},P={class:"w-260px"};e("default",u({__name:"index",props:{data:{}},setup(e,{expose:u}){const{t:k}=n(),S=e,{row:q,sid:z,dbIdx:E,isEdit:H}=S.data,I=t(),V=r(null),A=b({db_idx:0,name:"",val:"",endtime:void 0}),C=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:k("Database.redis.index_1"),trigger:"blur"},val:{required:!0,message:k("Database.redis.index_4"),trigger:"blur"}};return-1!==E&&(A.db_idx=E),H&&q&&(A.name=q.name,A.val=q.val,A.endtime=q.endtime?q.endtime:void 0),u({onConfirm:async()=>{await(V.value?.validate());const e=(()=>{if(null===z)throw i.error(k("Database.redis.index_8")),new Error(k("Database.redis.index_9"));const e={...f(A),sid:z};return void 0===e.endtime&&delete e.endtime,e})();await s(e),I.setRefresh(!0),I.setAddRedisId(e.db_idx)}}),(e,t)=>{const s=g,i=B,u=y,n=h,r=w,b=j,f=d,k=l;return v(),o("div",a,[_(f,{ref_key:"formRef",ref:V,model:x(A),rules:N},{default:c((()=>[_(i,{label:e.$t("Site.PHP.add_site_16"),path:"db_idx"},{default:c((()=>[p("div",$,[_(s,{value:x(A).db_idx,"onUpdate:value":t[0]||(t[0]=e=>x(A).db_idx=e),options:x(C),disabled:x(H)},null,8,["value","options","disabled"])])])),_:1},8,["label"]),_(i,{label:e.$t("Database.redis.index_2"),path:"name"},{default:c((()=>[p("div",R,[_(u,{value:x(A).name,"onUpdate:value":t[1]||(t[1]=e=>x(A).name=e),disabled:x(H),placeholder:e.$t("Database.redis.index_1")},null,8,["value","disabled","placeholder"])])])),_:1},8,["label"]),_(i,{label:e.$t("Database.redis.index_3"),path:"val"},{default:c((()=>[p("div",U,[_(u,{value:x(A).val,"onUpdate:value":t[2]||(t[2]=e=>x(A).val=e),type:"textarea",autosize:{minRows:4,maxRows:4},placeholder:e.$t("Database.redis.index_4")},null,8,["value","placeholder"])])])),_:1},8,["label"]),_(i,{label:e.$t("Database.redis.index_5"),"show-feedback":!1},{default:c((()=>[p("div",P,[_(b,null,{default:c((()=>[_(n,{value:x(A).endtime,"onUpdate:value":t[3]||(t[3]=e=>x(A).endtime=e),class:"flex-1",min:0,"show-button":!1,placeholder:e.$t("Database.redis.index_6")},null,8,["value","placeholder"]),_(r,null,{default:c((()=>t[4]||(t[4]=[m("sec")]))),_:1,__:[4]})])),_:1})])])),_:1},8,["label"])])),_:1},8,["model"]),_(k,{class:"mt-24px px-20px"},{default:c((()=>[p("li",null,D(e.$t("Database.redis.index_7")),1)])),_:1})])}}}))}}}));
