import{c as e,s as l,q as s,v as a,x as o,e as r,B as t,y as i,C as d,R as p,ab as m,ai as u,ah as n,G as _,a9 as f}from"./base-lib.js?v=1761009159";import{y as c,k as b,$ as j}from"./utils-lib.js?v=1761009159";import{a1 as x}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";import"./index103.js?v=1761009159";const V={class:"flex flex-col p-2rem"},h=e({__name:"index",setup(e){const h=x(),{quickFormRef:k,quickForm:w,quickRules:y,disable:q}=l(h),{help:v,init:R}=h;return s(R),(e,l)=>{const s=b,x=m,h=u,R=n,F=_,U=j,z=f;return a(),o("div",V,[r(z,{ref_key:"quickFormRef",ref:k,size:"small",model:i(w),rules:i(y),disabled:i(q),"label-width":"8rem","label-position":"right",onSubmit:l[4]||(l[4]=p(()=>{},["prevent"]))},{default:t(()=>[r(x,{prop:"ps",label:"分享名称"},{default:t(()=>[r(s,{modelValue:i(w).ps,"onUpdate:modelValue":l[0]||(l[0]=e=>i(w).ps=e),width:"26rem"},null,8,["modelValue"])]),_:1}),r(x,{prop:"expire",label:"有效期"},{default:t(()=>[r(R,{modelValue:i(w).expire,"onUpdate:modelValue":l[1]||(l[1]=e=>i(w).expire=e)},{default:t(()=>[r(h,{label:24},{default:t(()=>l[5]||(l[5]=[d("1天",-1)])),_:1,__:[5]}),r(h,{label:168},{default:t(()=>l[6]||(l[6]=[d("7天",-1)])),_:1,__:[6]}),r(h,{label:1130800},{default:t(()=>l[7]||(l[7]=[d("永久",-1)])),_:1,__:[7]})]),_:1},8,["modelValue"])]),_:1}),r(x,{prop:"password",label:"提取码"},{default:t(()=>[r(s,{modelValue:i(w).password,"onUpdate:modelValue":l[2]||(l[2]=e=>i(w).password=e),width:"20.5rem",class:"mr-[.5rem]",placeholder:"为空则不设置提取码"},null,8,["modelValue"]),r(F,{type:"primary",size:"default",onClick:l[3]||(l[3]=e=>i(w).password=i(c)(6))},{default:t(()=>l[8]||(l[8]=[d("随机",-1)])),_:1,__:[8]})]),_:1}),r(U,{options:i(v),"list-style":"disc",class:"pl-2rem pt-2rem"},null,8,["options"])]),_:1},8,["model","rules","disabled"])])}}});export{h as default};
