System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./index-legacy473.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,_,b,y,g,v,x,h,j,k,V,C,w,U,F,H,S,z,B,G,I,J;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,b=e.b0,y=e.J,g=e.C,v=e.an,x=e.ab,h=e.al,j=e.G,k=e.b1,V=e.a9,C=e.ak},function(e){w=e.o,U=e.f,F=e.c,H=e.t,S=e.a,z=e.b,B=e.d,G=e.e,I=e.g,J=e.h},null,null,null,null,null,null],execute:function(){var l={class:"p-[20px]"},N={class:"pt-[1.6rem]"},O={class:"flex items-center"},R={class:"ml-[20px]"};e("default",u({__name:"cache",setup:function(e,u){var $=u.expose;return a(function(){return J.value.proxy_cache},function(e){if(e&&Object.keys(e).length>0){F.status=e.cache_status;var l="1",t="d";e.expires.length>1&&(l=e.expires.slice(0,-1),t=e.expires.slice(-1)),F.time=l,F.unit=t}},{immediate:!0}),$({onConfirm:w}),function(e,u){var a=v,J=x,$=t,q=C,A=h,D=j,E=k,K=V,L=n,M=r("bt-loading");return s(),i("div",l,[o((s(),d(K,{ref_key:"cacheFormRef",ref:z,class:"h-[40rem]",model:c(F),"label-width":"100px",rules:c(B),disabled:c(G)},{default:f(function(){return[m(J,{label:"缓存开关",prop:"status"},{default:f(function(){return[m(a,{modelValue:c(F).status,"onUpdate:modelValue":u[0]||(u[0]=function(e){return c(F).status=e}),onChange:c(w)},null,8,["modelValue","onChange"])]}),_:1}),o(p("div",N,[m(J,{label:"缓存时间",prop:"time"},{default:f(function(){return[p("div",O,[m($,{modelValue:c(F).time,"onUpdate:modelValue":u[1]||(u[1]=function(e){return c(F).time=e})},null,8,["modelValue"]),m(J,{prop:"unit"},{default:f(function(){return[m(A,{class:"ml-[1rem] !w-[8rem]",modelValue:c(F).unit,"onUpdate:modelValue":u[2]||(u[2]=function(e){return c(F).unit=e}),placeholder:"请选择"},{default:f(function(){return[(s(!0),i(_,null,b(c(H),function(e){return s(),d(q,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])}),128))]}),_:1},8,["modelValue"])]}),_:1})])]}),_:1})],512),[[y,c(F).status]]),o(m(J,{class:"!pt-[1.6rem]",label:" "},{default:f(function(){return[m(D,{type:"primary",onClick:c(w)},{default:f(function(){return u[3]||(u[3]=[g("保存",-1)])}),_:1,__:[3]},8,["onClick"])]}),_:1},512),[[y,c(F).status]]),m(E),m(D,{type:"default",onClick:c(S)},{default:f(function(){return u[4]||(u[4]=[g("清理缓存",-1)])}),_:1,__:[4]},8,["onClick"])]}),_:1},8,["model","rules","disabled"])),[[M,c(U)]]),p("div",R,[m(L,{options:c(I)},null,8,["options"])])])}}}))}}});
