System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./useController-legacy14.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./site-legacy.js?v=1761009159","./column-legacy.js?v=1761009159","./index-legacy106.js?v=1761009159","./validator-legacy.js?v=1761009159","./useStore-legacy4.js?v=1761009159"],function(e,l){"use strict";var t,n,u,a,r,s,i,o,c,d,f,m,p,_,v,y,b,g,h,x,j,V,k,C,w,F,U,H,R,S,z,B;return{setters:[function(e){t=e.k,n=e.$},function(e){u=e.c,a=e.w,r=e.H,s=e.v,i=e.x,o=e.I,c=e.y,d=e.N,f=e.B,m=e.e,p=e.z,_=e.F,v=e.b0,y=e.J,b=e.C,g=e.an,h=e.ab,x=e.ak,j=e.al,V=e.G,k=e.a9},function(e){C=e.V,w=e.p,F=e.f,U=e.W,H=e.X,R=e.Y,S=e.Z,z=e.e,B=e._},null,null,null,null,null,null],execute:function(){var l={class:"p-[20px]"},G={class:"mt-[1.6rem]"},I={class:"flex items-center"},J={class:"ml-[20px]"};e("default",u({__name:"setting-cache",setup:function(e){return a(function(){return w.value.proxy_cache},function(e){if(e){var l;C.status=e.cache_status;var t="1",n="d";(null===(l=e.expires)||void 0===l?void 0:l.length)>1&&(t=e.expires.slice(0,-1),n=e.expires.slice(-1)),C.time=t,C.unit=n}}),function(e,u){var a=g,w=h,N=t,W=x,X=j,Y=V,Z=k,$=n,q=r("bt-loading");return s(),i("div",l,[o((s(),d(Z,{ref_key:"cacheFormRef",ref:S,class:"h-[38rem]",model:c(C),"label-width":"100px",rules:e.cacheFormRules,disabled:c(z)},{default:f(function(){return[m(w,{label:"缓存开关",prop:"status"},{default:f(function(){return[m(a,{modelValue:c(C).status,"onUpdate:modelValue":u[0]||(u[0]=function(e){return c(C).status=e}),onChange:c(U)},null,8,["modelValue","onChange"])]}),_:1}),o(p("div",G,[m(w,{label:"缓存时间",prop:"time"},{default:f(function(){return[p("div",I,[m(N,{modelValue:c(C).time,"onUpdate:modelValue":u[1]||(u[1]=function(e){return c(C).time=e})},null,8,["modelValue"]),m(w,{prop:"unit"},{default:f(function(){return[m(X,{class:"ml-[1rem] !w-[8rem]",modelValue:c(C).unit,"onUpdate:modelValue":u[2]||(u[2]=function(e){return c(C).unit=e}),placeholder:"请选择"},{default:f(function(){return[(s(!0),i(_,null,v(c(H),function(e){return s(),d(W,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])}),128))]}),_:1},8,["modelValue"])]}),_:1})])]}),_:1})],512),[[y,c(C).status]]),m(w,{label:" "},{default:f(function(){return[o(m(Y,{type:"primary",class:"!mt-[1.6rem]",onClick:c(R)},{default:f(function(){return u[3]||(u[3]=[b("保存",-1)])}),_:1,__:[3]},8,["onClick"]),[[y,c(C).status]])]}),_:1})]}),_:1},8,["model","rules","disabled"])),[[q,c(F)]]),p("div",J,[m($,{options:c(B)},null,8,["options"])])])}}}))}}});
