import{c as e,s as l,q as a,v as s,x as o,e as i,B as t,z as m,y as d,C as r,I as p,J as n,R as u,ai as c,ah as f,ab as _,a9 as b}from"./base-lib.js?v=1761009159";import{k as h,$ as j,_ as x}from"./utils-lib.js?v=1761009159";import{_ as V}from"./index103.js?v=1761009159";import{_ as v}from"./index109.js?v=1761009159";import{a5 as y}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 k={class:"flex flex-col p-16px lib-box"},w={class:"flex"},z={class:"flex"},q=x(e({__name:"index",setup(e){const x=y(),{quickFormRef:q,quickForm:F,quickRules:I,disable:R}=l(x),{help:U,openFile:C,init:M}=x;return a(M),(e,l)=>{const a=v,x=c,y=f,M=_,g=h,B=V,H=j,J=b;return s(),o("div",k,[i(a,{type:"warning","show-icon":"",closable:!1},{title:t(()=>l[5]||(l[5]=[m("div",null,"注意：",-1),m("div",null,"1.被拆分成多个文件后，需要将它们合并才能使用",-1),m("div",null,"2.拆分后如果其中一个文件被损坏或丢失，可能会影响整个文件的完整性",-1)])),_:1}),i(J,{ref_key:"quickFormRef",ref:q,size:"small",model:d(F),rules:d(I),disabled:d(R),"label-width":"8rem",class:"relative w-full p-[1.5rem]","label-position":"right",onSubmit:l[4]||(l[4]=u(()=>{},["prevent"]))},{default:t(()=>[i(M,{prop:"type",label:"拆分方式"},{default:t(()=>[i(y,{modelValue:d(F).type,"onUpdate:modelValue":l[0]||(l[0]=e=>d(F).type=e)},{default:t(()=>[i(x,{label:"size"},{default:t(()=>l[6]||(l[6]=[r("按大小拆分",-1)])),_:1,__:[6]}),i(x,{label:"num"},{default:t(()=>l[7]||(l[7]=[r("按数量拆分",-1)])),_:1,__:[7]})]),_:1},8,["modelValue"])]),_:1}),p(i(M,{prop:"size",label:"大小"},{default:t(()=>[m("div",w,[i(g,{modelValue:d(F).size,"onUpdate:modelValue":l[1]||(l[1]=e=>d(F).size=e),modelModifiers:{number:!0},width:"14rem",type:"number"},{append:t(()=>l[8]||(l[8]=[r(" MB ",-1)])),unit:t(()=>l[9]||(l[9]=[r("拆分后的每个文件大小 ",-1)])),_:1},8,["modelValue"])])]),_:1},512),[[n,"size"===d(F).type]]),p(i(M,{prop:"num",label:"数量"},{default:t(()=>[m("div",z,[i(g,{modelValue:d(F).num,"onUpdate:modelValue":l[2]||(l[2]=e=>d(F).num=e),modelModifiers:{number:!0},width:"14rem",type:"number"},{unit:t(()=>l[10]||(l[10]=[r("文件大小 ÷ 数量 = 拆分大小 ",-1)])),append:t(()=>l[11]||(l[11]=[r("个 ",-1)])),_:1},8,["modelValue"]),l[12]||(l[12]=m("span",{class:"ml-[2rem]"},null,-1))])]),_:1},512),[[n,"num"===d(F).type]]),i(M,{prop:"path",label:"存放目录"},{default:t(()=>[i(B,{modelValue:d(F).path,"onUpdate:modelValue":l[3]||(l[3]=e=>d(F).path=e),width:"26rem",icon:"icon-file_mode",onIconClick:d(C),placeholder:"请选择目录"},null,8,["modelValue","onIconClick"])]),_:1}),i(H,{options:d(U),"list-style":"disc",class:"pl-2rem mt-2rem"},null,8,["options"])]),_:1},8,["model","rules","disabled"])])}}}),[["__scopeId","data-v-c59fbc67"]]);export{q as default};
