import{c as e,s as l,q as a,v as s,x as t,e as o,B as i,y as r,z as p,N as d,C as m,D as n,A as u,R as c,ab as f,bc as _,G as x,az as y,a9 as b}from"./base-lib.js?v=1761009159";import{V as j,k as v,$ as h}from"./utils-lib.js?v=1761009159";import{_ as k}from"./index415.js?v=1761009159";import{a1 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";import"./index103.js?v=1761009159";const w={class:"p-2rem"},g={class:"text-[#777] text-small leading-3.2rem"},C=e({__name:"detail",setup(e){const C=V(),{detailFormRef:R,detailForm:q,detailRules:z,isDisabled:D,showQrcode:F,detail:U}=l(C),{helpList:A,copyAll:L,copyLink:B,initDetail:G}=C;return a(G),(e,l)=>{const a=v,V=f,C=_,G=x,H=k,N=y,Q=h,S=b;return s(),t("div",w,[o(S,{ref_key:"detailFormRef",ref:R,model:r(q),rules:r(z),disabled:r(D),"label-position":"right",onSubmit:l[4]||(l[4]=c(()=>{},["prevent"]))},{default:i(()=>[o(V,{prop:"filename",label:"分享名称"},{default:i(()=>[o(a,{width:"30rem",modelValue:r(q).name,"onUpdate:modelValue":l[0]||(l[0]=e=>r(q).name=e),readonly:""},null,8,["modelValue"])]),_:1}),o(V,{prop:"path",label:"分享外链"},{default:i(()=>[o(C,{span:18},{default:i(()=>[o(a,{width:"30rem",modelValue:r(q).link,"onUpdate:modelValue":l[1]||(l[1]=e=>r(q).link=e),readonly:""},null,8,["modelValue"])]),_:1}),o(C,{span:3},{default:i(()=>[o(G,{class:"!ml-4px",type:"primary",onClick:r(B)},{default:i(()=>l[5]||(l[5]=[p("i",{class:"svgtofont-icon-copy text-white text-1.4rem"},null,-1)])),_:1,__:[5]},8,["onClick"])]),_:1}),o(C,{span:3},{default:i(()=>[o(N,{class:"item",trigger:"hover",placement:"top-start","popper-class":"white-popover"},{reference:i(()=>[o(G,{class:"!ml-4px",type:"primary",onClick:l[2]||(l[2]=e=>F.value=!0)},{default:i(()=>l[6]||(l[6]=[p("i",{class:"svgtofont-el-qrcode text-white text-1.4rem"},null,-1)])),_:1,__:[6]})]),default:i(()=>[o(H,{value:r(q).qrcode,size:110,class:"p-[8px]"},null,8,["value"])]),_:1})]),_:1})]),_:1}),r(U).password?(s(),d(V,{key:0,prop:"path",label:"提取码"},{default:i(()=>[o(C,{span:15},{default:i(()=>[o(a,{class:"!w-[24rem]",modelValue:r(q).code,"onUpdate:modelValue":l[3]||(l[3]=e=>r(q).code=e),readonly:""},null,8,["modelValue"])]),_:1}),o(C,{span:9},{default:i(()=>[o(G,{class:"!ml-8px",type:"primary",onClick:r(L)},{default:i(()=>l[7]||(l[7]=[m("复制链接及提取码",-1)])),_:1,__:[7]},8,["onClick"])]),_:1})]),_:1})):n("",!0),o(V,{label:"过期时间"},{default:i(()=>[p("div",g,u("string"==typeof r(q).time?r(q).time:r(j)(r(q).time)),1)]),_:1}),o(Q,{options:r(A),class:"ml-24px mt-20px"},null,8,["options"])]),_:1},8,["model","rules","disabled"])])}}});export{C as default};
