import{k as e,$ as l}from"./utils-lib.js?v=1761009159";import{c as a,w as s,q as t,H as o,v as u,x as m,I as d,y as n,N as r,B as p,e as i,z as c,F as b,b0 as f,J as _,C as v,an as V,ab as j,al as h,G as y,a9 as g,ak as x}from"./base-lib.js?v=1761009159";import{s as k,h as w,f as C,i as U,j as z,l as L,k as F,m as H,e as S,n as q}from"./index473.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=a({__name:"content-compression",setup:a=>(s(()=>w.value.gzip,e=>{e?k(e):U.status=!1}),t(()=>{k(w.value.gzip)}),(a,s)=>{const t=V,k=j,w=e,N=x,R=h,$=y,A=g,D=l,E=o("bt-loading");return u(),m("div",B,[d((u(),r(A,{ref_key:"compressFormRef",ref:F,class:"h-[48rem]",model:n(U),rules:n(H),"label-width":"100px",disabled:n(S)},{default:p(()=>[i(k,{label:"内容压缩",prop:"status"},{default:p(()=>[i(t,{modelValue:n(U).status,"onUpdate:modelValue":s[0]||(s[0]=e=>n(U).status=e),onChange:n(z)},null,8,["modelValue","onChange"])]),_:1}),d(c("div",G,[i(k,{label:"压缩类型",prop:"type"},{default:p(()=>[i(w,{modelValue:n(U).type,"onUpdate:modelValue":s[1]||(s[1]=e=>n(U).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:n(U).level,"onUpdate:modelValue":s[2]||(s[2]=e=>n(U).level=e)},{default:p(()=>[(u(),m(b,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(()=>[c("div",I,[i(w,{modelValue:n(U).minLength,"onUpdate:modelValue":s[3]||(s[3]=e=>n(U).minLength=e)},null,8,["modelValue"]),i(k,{prop:"unit"},{default:p(()=>[i(R,{class:"ml-[1rem] !w-[8rem]",modelValue:n(U).unit,"onUpdate:modelValue":s[4]||(s[4]=e=>n(U).unit=e),placeholder:"请选择"},{default:p(()=>[(u(!0),m(b,null,f(n(L),e=>(u(),r(N,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})])]),_:1})],512),[[_,n(U).status]]),d(i(k,{label:" ",class:"mt-[1.6rem]"},{default:p(()=>[i($,{type:"primary",onClick:n(z)},{default:p(()=>s[5]||(s[5]=[v("保存",-1)])),_:1,__:[5]},8,["onClick"])]),_:1},512),[[_,n(U).status]])]),_:1},8,["model","rules","disabled"])),[[E,n(C)]]),c("div",J,[i(D,{options:n(q)},null,8,["options"])])])})});export{N as default};
