import{c as e,aA as o,s as a,w as l,q as s,v as t,N as i,B as d,e as r,y as m,C as n,R as p,ab as u,U as c,a9 as _}from"./base-lib.js?v=1761009159";import{_ as f}from"./index103.js?v=1761009159";import{ax as b,_ as j}from"./utils-lib.js?v=1761009159";import{a3 as V}from"./store.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./files.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./store2.js?v=1761009159";const h=j(e({__name:"index",setup(e){const j=o("buttonText"),h=V(),{quickFormRef:k,quickForm:v,quickRules:w,disable:x}=a(h),{compressOptions:y,openFile:g,toggleType:q,init:C}=h;return l(()=>v.value.download,e=>{j.value=e?"压缩并下载":"压缩"}),s(()=>{C()}),(e,o)=>{const a=b,l=u,s=f,j=c,V=_;return t(),i(V,{ref_key:"quickFormRef",ref:k,model:m(v),rules:m(w),disabled:m(x),class:"p-[2rem]","label-position":"right",onSubmit:o[3]||(o[3]=p(()=>{},["prevent"]))},{default:d(()=>[r(l,{prop:"type",label:"压缩类型"},{default:d(()=>[r(a,{modelValue:m(v).type,"onUpdate:modelValue":o[0]||(o[0]=e=>m(v).type=e),options:m(y),class:"!w-[26rem]",onChange:m(q)},null,8,["modelValue","options","onChange"])]),_:1}),r(l,{prop:"path",label:"压缩路径"},{default:d(()=>[r(s,{modelValue:m(v).path,"onUpdate:modelValue":o[1]||(o[1]=e=>m(v).path=e),width:"26rem",icon:"icon-file_mode",onIconClick:m(g),placeholder:"请选择目录"},null,8,["modelValue","onIconClick"])]),_:1}),r(l,{label:" "},{default:d(()=>[r(j,{modelValue:m(v).download,"onUpdate:modelValue":o[2]||(o[2]=e=>m(v).download=e)},{default:d(()=>o[4]||(o[4]=[n("压缩并下载",-1)])),_:1,__:[4]},8,["modelValue"])]),_:1})]),_:1},8,["model","rules","disabled"])}}}),[["__scopeId","data-v-910fb6c8"]]);export{h as default};
