import{k as e,ax as l,$ as a,_ as o}from"./utils-lib.js?v=1761009159";import{c as s,s as d,q as t,v as i,x as m,e as r,B as p,y as n,R as u,ab as c,a9 as f}from"./base-lib.js?v=1761009159";import{_ as b}from"./index103.js?v=1761009159";import{a4 as _}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={class:"flex flex-col p-16px lib-box"},V=o(s({__name:"index",setup(o){const s=_(),{quickFormRef:V,quickForm:j,quickRules:x,disable:w}=d(s),{codeOptions:k,init:g,openFile:v,toggleCode:q}=s,C=[{content:"若存在同名文件，解压后会覆盖原文件"}];return t(()=>{g()}),(o,s)=>{const d=e,t=c,_=b,g=l,U=f,F=a;return i(),m("div",h,[r(U,{ref_key:"quickFormRef",ref:V,size:"small",model:n(j),rules:n(x),disabled:n(w),class:"relative w-full p-[1.5rem]","label-position":"right",onSubmit:s[5]||(s[5]=u(()=>{},["prevent"]))},{default:p(()=>[r(t,{prop:"fileName",label:"文件名"},{default:p(()=>[r(d,{modelValue:n(j).fileName,"onUpdate:modelValue":s[0]||(s[0]=e=>n(j).fileName=e),disabled:!0,width:"26rem"},null,8,["modelValue"])]),_:1}),r(t,{prop:"path",label:"解压到"},{default:p(()=>[r(_,{modelValue:n(j).path,"onUpdate:modelValue":s[1]||(s[1]=e=>n(j).path=e),width:"26rem",icon:"el-folder-opened",onIconClick:n(v),placeholder:"请选择目录"},null,8,["modelValue","onIconClick"])]),_:1}),r(t,{prop:"password",label:"解压密码"},{default:p(()=>[r(d,{modelValue:n(j).password,"onUpdate:modelValue":s[2]||(s[2]=e=>n(j).password=e),width:"26rem",placeholder:"无密码则留空"},null,8,["modelValue"])]),_:1}),r(t,{label:"编码"},{default:p(()=>[r(g,{modelValue:n(j).coding,"onUpdate:modelValue":s[3]||(s[3]=e=>n(j).coding=e),options:n(k),class:"w-[26rem]",onChange:n(q)},null,8,["modelValue","options","onChange"])]),_:1}),r(t,{prop:"auth",label:"解压目录权限"},{default:p(()=>[r(d,{modelValue:n(j).auth,"onUpdate:modelValue":s[4]||(s[4]=e=>n(j).auth=e),width:"26rem"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules","disabled"]),r(F,{options:C,class:"mt-[1.5rem] ml-[4rem]"})])}}}),[["__scopeId","data-v-6410a5a3"]]);export{V as default};
