import{k as e,$ as a}from"./utils-lib.js?v=1761009159";import{c as l,w as s,q as t,H as o,v as u,x as m,I as d,y as r,N as n,B as p,e as i,z as b,F as c,b0 as f,J as _,C as v,an as V,ab as g,ak as j,al as y,G as h,a9 as x}from"./base-lib.js?v=1761009159";import{$ as k,a0 as w,p as C,f as U,a1 as z,a2 as L,a3 as F,a4 as H,a5 as S,e as $,a6 as q}from"./useController14.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./site.js?v=1761009159";import"./column.js?v=1761009159";import"./index106.js?v=1761009159";import"./validator.js?v=1761009159";import"./useStore4.js?v=1761009159";const B={class:"p-[20px]"},G={class:"mt-[1.6rem]"},I={class:"flex items-center"},J={class:"ml-[20px]"},N=l({__name:"setting-compress",setup:l=>(s(()=>C.value.gzip,e=>{e?k(e):w.status=!1}),t(()=>{k(C.value.gzip)}),(l,s)=>{const t=V,k=g,C=e,N=j,R=y,A=h,D=x,E=a,K=o("bt-loading");return u(),m("div",B,[d((u(),n(D,{ref_key:"compressFormRef",ref:H,class:"h-[38rem]",model:r(w),rules:r(S),"label-width":"100px",disabled:r($)},{default:p(()=>[i(k,{label:"内容压缩",prop:"status"},{default:p(()=>[i(t,{modelValue:r(w).status,"onUpdate:modelValue":s[0]||(s[0]=e=>r(w).status=e),onChange:r(z)},null,8,["modelValue","onChange"])]),_:1}),d(b("div",G,[i(k,{label:"压缩类型",prop:"type"},{default:p(()=>[i(C,{modelValue:r(w).type,"onUpdate:modelValue":s[1]||(s[1]=e=>r(w).type=e),type:"textarea",width:"42rem",rows:6,resize:"none"},null,8,["modelValue"])]),_:1}),i(k,{label:"压缩级别",prop:"level"},{default:p(()=>[i(R,{class:"!w-[42rem]",modelValue:r(w).level,"onUpdate:modelValue":s[2]||(s[2]=e=>r(w).level=e)},{default:p(()=>[(u(),m(c,null,f(9,e=>i(N,{key:e,label:e,value:String(e)},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),i(k,{label:"压缩最小长度",prop:"minLength"},{default:p(()=>[b("div",I,[i(C,{modelValue:r(w).minLength,"onUpdate:modelValue":s[3]||(s[3]=e=>r(w).minLength=e)},null,8,["modelValue"]),i(k,{prop:"unit"},{default:p(()=>[i(R,{class:"ml-[1rem] !w-[8rem]",modelValue:r(w).unit,"onUpdate:modelValue":s[4]||(s[4]=e=>r(w).unit=e),placeholder:"请选择"},{default:p(()=>[(u(!0),m(c,null,f(r(L),e=>(u(),n(N,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})])]),_:1})],512),[[_,r(w).status]]),d(i(k,{label:" ",class:"mt-[1.6rem]"},{default:p(()=>[i(A,{type:"primary",onClick:r(F)},{default:p(()=>s[5]||(s[5]=[v("保存",-1)])),_:1,__:[5]},8,["onClick"])]),_:1},512),[[_,r(w).status]])]),_:1},8,["model","rules","disabled"])),[[K,r(U)]]),b("div",J,[i(E,{options:r(q)},null,8,["options"])])])})});export{N as default};
