System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./FileIcon-legacy-CYrICTNK.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785"],(function(e,a){"use strict";var l,o,i,n,t,s,r,d,u,c,p,f,h,m,v,y,_,w,g,x,k,M,b,C,S,j;return{setters:[e=>{l=e.a3,o=e.w,i=e.l,n=e.x,t=e.h,s=e.as},e=>{r=e._},e=>{d=e.c},e=>{u=e.w},e=>{c=e.a1,p=e.b,f=e.B},e=>{h=e.k,m=e.i,v=e.r,y=e.c,_=e.$,w=e.a8,g=e.a9,x=e._,k=e.a0,M=e.S,b=e.j,C=e.aa,S=e.ak,j=e.X}],execute:function(){const a={class:"p-20px"};e("_",h({__name:"ShareDetail",setup(e,{expose:h}){const{t:$}=l.global,D=`${window.location.origin}/down/`,A=m("fileStore"),U=v(!1),q=v({filename:"",ps:"",token:"",expire:"",total:0,password:"",addtime:0,id:0});async function z(){return t({title:$("file.shareModal.cancelSharing"),content:$("file.shareModal.confirmStopSharing",{filename:q.value.filename}),async onConfirm(){await s.post("/files?action=remove_download_url",{id:q.value.id},{requestOptions:{loading:$("file.shareModal.deletingShare"),successMessage:!0}}),U.value=!1,u(A)}}),!1}h({open(e){q.value={filename:e.filename,ps:e.ps,token:e.token,expire:o(e.expire),total:e.total,password:e.password,addtime:e.addtime,id:e.id},U.value=!0},close(){U.value=!1}});const B=y((()=>`${D}${q.value.token}`));function E(){d(B.value)}function F(){d($("file.shareModal.linkAndCode",{link:B.value,code:q.value.password}))}return(e,l)=>{const o=p,t=c,s=i,d=f,u=r,h=n;return _(),w(h,{show:M(U),"onUpdate:show":l[1]||(l[1]=e=>j(U)?U.value=e:null),title:M($)("file.shareModal.shareDetails",{name:M(q).ps}),width:560,footer:!0,"confirm-type":"error","confirm-text":M($)("file.shareModal.closeSharingChain"),onConfirm:z},{default:g((()=>[x("div",a,[k(u,null,{default:g((()=>[k(t,{label:M($)("file.shareModal.shareName")},{default:g((()=>[k(o,{value:M(q).ps,"onUpdate:value":l[0]||(l[0]=e=>M(q).ps=e)},null,8,["value"])])),_:1},8,["label"]),k(t,{label:M($)("file.shareModal.shareChain")},{default:g((()=>[k(o,{class:"mr-10px",readonly:!0,value:M(B)},null,8,["value"]),k(d,{type:"primary",onClick:E},{icon:g((()=>[k(s,{name:"common-copy",size:"16"})])),_:1})])),_:1},8,["label"]),M(q).password?(_(),w(t,{key:0,label:M($)("file.shareModal.extractionCode")},{default:g((()=>[k(o,{class:"mr-10px",value:`${M(q).password}`,readonly:""},null,8,["value"]),k(d,{type:"primary",onClick:F},{default:g((()=>[b(C(M($)("file.shareModal.copyLinkAndCode")),1)])),_:1})])),_:1},8,["label"])):S("",!0),k(t,{label:M($)("file.shareModal.expirationDate"),"show-feedback":!1},{default:g((()=>[b(C(M(q).expire),1)])),_:1},8,["label"])])),_:1})])])),_:1},8,["show","title","confirm-text"])}}}))}}}));
