import{c as N,d as oe,r as T,o as ae,w as be,a as C,b as e,e as M,_ as re,u as se,f as we,g as x,n,h as o,i as ke,t as _,j as E,k as U,l as j,m as Q,v as X,T as J,p as _e,F as Y,q as Z,s as R,x as Ce,X as Me,y as Se,z as ze,A as L}from"./index-Bnh8PeoH.js";import{u as Te,S as De,C as Ie,a as Ae,Q as Pe,E as Fe}from"./fileData-B6ZNx7J9.js";import{F as ee}from"./file-BdcXN_Bb.js";import{H as $e,T as Re}from"./trash-DIj4NP4N.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Be=N("ClipboardCopyIcon",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]);/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ue=N("ClockIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const je=N("CloudUploadIcon",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Le=N("SendIcon",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),Ve=oe({__name:"BorderProgressBar",props:{progress:{}},setup(k){const D=k,P=T(null),a=T(null);let d=null;const w=()=>{if(!d||!a.value||!P.value)return;const u=P.value.clientWidth,f=P.value.clientHeight;a.value.width=u,a.value.height=f;const i=4,r=8;d.lineWidth=i;const m=d.createLinearGradient(0,0,u,f);m.addColorStop(0,"#4f46e5"),m.addColorStop(.5,"#7c3aed"),m.addColorStop(1,"#db2777"),d.strokeStyle="rgba(229, 231, 235, 0.2)",h(d,i/2,i/2,u-i,f-i,r),d.stroke();const S=((u+f)*2-8*r+2*Math.PI*r)*D.progress/100;d.strokeStyle=m,d.lineCap="round",d.lineJoin="round",d.beginPath();let c=S;const v=i/2,z=u-i,F=f-i;if(c>0){const p=Math.min(z-2*r,c);d.moveTo(r+v,v),d.lineTo(p+r+v,v),c-=p}if(c>0){const p=Math.min(Math.PI/2,c/r);d.arc(z-r+v,r+v,r,-Math.PI/2,p-Math.PI/2,!1),c-=p*r}if(c>0){const p=Math.min(F-2*r,c);d.lineTo(z+v,p+r+v),c-=p}if(c>0){const p=Math.min(Math.PI/2,c/r);d.arc(z-r+v,F-r+v,r,0,p,!1),c-=p*r}if(c>0){const p=Math.min(z-2*r,c);d.lineTo(z-p-r+v,F+v),c-=p}if(c>0){const p=Math.min(Math.PI/2,c/r);d.arc(r+v,F-r+v,r,Math.PI/2,Math.PI/2+p,!1),c-=p*r}if(c>0){const p=Math.min(F-2*r,c);d.lineTo(v,F-p-r+v),c-=p}if(c>0){const p=Math.min(Math.PI/2,c/r);d.arc(r+v,r+v,r,Math.PI,Math.PI+p,!1)}d.stroke()};function h(u,f,i,r,m,y){u.beginPath(),u.moveTo(f+y,i),u.lineTo(f+r-y,i),u.arcTo(f+r,i,f+r,i+y,y),u.lineTo(f+r,i+m-y),u.arcTo(f+r,i+m,f+r-y,i+m,y),u.lineTo(f+y,i+m),u.arcTo(f,i+m,f,i+m-y,y),u.lineTo(f,i+y),u.arcTo(f,i,f+y,i,y),u.closePath()}return ae(()=>{a.value&&(d=a.value.getContext("2d"),w())}),be(()=>D.progress,w),(u,f)=>(M(),C("div",{class:"border-progress-container",ref_key:"container",ref:P},[e("canvas",{ref_key:"canvas",ref:a,class:"border-progress-canvas"},null,512)],512))}}),He=re(Ve,[["__scopeId","data-v-2fbf5085"]]),ne=async(k,D={})=>{const{successMsg:P="复制成功",errorMsg:a="复制失败,请手动复制",showMsg:d=!0}=D,w=se();try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(k),d&&w.showAlert(P,"success"),!0;const h=document.createElement("textarea");h.value=k,h.style.position="fixed",h.style.opacity="0",document.body.appendChild(h),h.select();const u=document.execCommand("copy");if(document.body.removeChild(h),u)return d&&w.showAlert(P,"success"),!0;throw new Error("execCommand copy failed")}catch(h){return console.error("复制失败:",h),d&&w.showAlert(a,"error"),!1}},te=async k=>{const D=`${window.location.origin}/#/?code=${k}`;return ne(D,{successMsg:"取件链接已复制到剪贴板",errorMsg:"复制失败,请手动复制取件链接"})},Ee=async k=>ne(k,{successMsg:"取件码已复制到剪贴板",errorMsg:"复制失败,请手动复制取件码"}),Ne=k=>k>=1024*1024*1024?Math.round(k/(1024*1024*1024))+"GB":k>=1024*1024?Math.round(k/(1024*1024))+"MB":Math.round(k/1024)+"KB",qe={class:"p-8"},We={class:"flex justify-center space-x-4 mb-6"},Ge={key:"file",class:"grid grid-cols-1 gap-8"},Qe={key:0,class:"absolute inset-0 w-full h-full"},Je={class:"block truncate"},Ke={key:"text",class:"grid grid-cols-1 gap-8"},Oe={key:0,class:"flex flex-col"},Xe={class:"flex flex-col space-y-4"},Ye=["value"],Ze={key:0,class:"flex items-center space-x-2"},et={class:"relative flex-grow"},tt=["placeholder"],ot={type:"submit",class:"w-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white font-bold py-4 px-6 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition-all duration-300 transform hover:scale-105 hover:shadow-lg relative overflow-hidden group"},at={class:"relative z-10 flex items-center justify-center text-lg"},rt={class:"mt-6 text-center"},st={class:"flex-grow overflow-y-auto p-6"},nt={class:"flex-shrink-0 mr-4"},lt={class:"flex-grow min-w-0 mr-4"},it={class:"flex-shrink-0 flex space-x-2"},ct=["onClick"],dt=["onClick"],ut=["onClick"],pt={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},gt={class:"space-y-4"},ht={class:"flex items-center"},ft={class:"flex items-center"},vt={class:"flex items-center"},xt={class:"flex items-center"},yt={class:"mt-6 flex justify-between items-center"},mt={class:"flex flex-col items-center w-1/2 pr-2"},bt={class:"text-2xl font-bold text-indigo-600"},wt={class:"flex flex-col items-center w-1/2 pl-2"},kt={class:"bg-white p-2 rounded-lg shadow-md"},_t=oe({__name:"SendFileView",setup(k){const D=JSON.parse(localStorage.getItem("config")||"{}"),P=ze(),a=ke("isDarkMode"),d=Te(),w=T("file"),h=T(null),u=T(""),f=T(null),i=T("day"),r=T("1"),m=T(0),y=T(!1),S=T(null),c=se(),v=we(()=>d.shareData),z=T(""),F=()=>{var l;(l=f.value)==null||l.click()},p=async l=>{const t=l.target;t.files&&t.files.length>0&&(h.value=t.files[0],z.value=await q(h.value),console.log(z.value))},le=async l=>{var t;(t=l.dataTransfer)!=null&&t.files&&l.dataTransfer.files.length>0&&(h.value=l.dataTransfer.files[0],z.value=await q(h.value))},ie=async l=>{var g;const t=(g=l.clipboardData)==null?void 0:g.items;if(t){for(const s of t)if(s.kind==="file"){const b=s.getAsFile();if(b){h.value=b,z.value=await q(b),c.showAlert("已从剪贴板添加文件:"+b.name,"success");break}}}},q=async l=>new Promise(t=>{const s=new FileReader;let b=0;const I=Math.ceil(l.size/2097152);s.onload=async $=>{const A=new Uint8Array($.target.result),V=await crypto.subtle.digest("SHA-256",A),G=Array.from(new Uint8Array(V)).map(H=>H.toString(16).padStart(2,"0")).join("");b++,b{const $=b*2097152,A=$+2097152>=l.size?l.size:$+2097152;s.readAsArrayBuffer(l.slice($,A))};B()}),ce=(l=i.value)=>{switch(l){case"day":return"输入天数";case"hour":return"输入小时数";case"minute":return"输入分钟数";case"count":return"输入查看次数";case"forever":return"永久";default:return"输入值"}},W=(l=i.value)=>{switch(l){case"day":return"天";case"hour":return"小时";case"minute":return"分钟";case"count":return"次";case"forever":return"永久";default:return""}},de=async l=>{var t,g;try{const b=Math.ceil(l.size/5242880),I=await L.post("/chunk/upload/init/",{file_name:l.name,file_size:l.size,chunk_size:5242880,file_hash:z.value});if(I.code!==200)throw new Error("初始化切片上传失败");if(I.detail.existed)return I;const B=I.detail.upload_id;for(let A=0;A{const me=Math.round((A*5242880+ye.loaded)*100/l.size);m.value=me}})).code!==200)throw new Error(`切片 ${A} 上传失败`)}const $=await L.post(`/chunk/upload/complete/${B}`,{expire_value:r.value?parseInt(r.value):1,expire_style:i.value});if($.code!==200)throw new Error("完成上传失败");return $}catch(s){throw console.error("切片上传失败:",s),(g=(t=s.response)==null?void 0:t.data)!=null&&g.detail?c.showAlert(s.response.data.detail,"error"):c.showAlert("上传失败,请稍后重试","error"),s}},ue=async l=>{const t=new FormData,g={headers:{"Content-Type":"multipart/form-data"},onUploadProgress:b=>{const I=Math.round(b.loaded*100/b.total);m.value=I}};return t.append("file",l),t.append("expire_value",r.value),t.append("expire_style",i.value),await L.post("/share/file/",t,g)},pe=async()=>{var l,t;if(w.value==="file"&&!h.value){c.showAlert("请选择要上传的文件","error");return}if(w.value==="text"&&!u.value.trim()){c.showAlert("请输入要发送的文本","error");return}if(i.value!=="forever"&&!r.value){c.showAlert("请输入过期值","error");return}try{let g;if(w.value==="file")D.enableChunk?g=await de(h.value):g=await ue(h.value);else{const s=new FormData;s.append("text",u.value),s.append("expire_value",r.value),s.append("expire_style",i.value),g=await L.post("/share/text/",s,{headers:{"Content-Type":"multipart/form-data"}})}if(g&&g.code===200){const s=g.detail.code,b=g.detail.name,I={id:Date.now(),filename:b,date:new Date().toISOString().split("T")[0],size:w.value==="text"?`${(u.value.length/1024).toFixed(2)} KB`:`${(h.value.size/(1024*1024)).toFixed(1)} MB`,expiration:i.value==="forever"?"永久":`${r.value}${W()}后过期`,retrieveCode:s};d.addShareData(I),c.showAlert(`文件发送成功!取件码:${s}`,"success"),h.value=null,u.value="",r.value="",m.value=0,y.value=!0,await te(s)}else throw new Error("服务器响应异常")}catch(g){console.error("发送失败:",g),(t=(l=g.response)==null?void 0:l.data)!=null&&t.detail?c.showAlert(g.response.data.detail,"error"):c.showAlert("发送失败,请稍后重试","error")}finally{m.value=0}},ge=()=>{P.push("/")},K=()=>{y.value=!y.value},he=l=>{S.value=l},fe=l=>{const t=d.shareData.findIndex(g=>g.id===l);t!==-1&&d.deleteShareData(t)},ve=window.location.origin+"/#/",xe=l=>`${ve}?code=${l.retrieveCode}`;return ae(()=>{console.log("SendFileView mounted")}),(l,t)=>{const g=Ce("router-link");return M(),C("div",{class:"min-h-screen flex items-center justify-center p-4 overflow-hidden transition-colors duration-300",onPaste:E(ie,["prevent"])},[e("div",{class:n(["rounded-3xl shadow-2xl overflow-hidden border w-full max-w-md transition-colors duration-300",[o(a)?"bg-white bg-opacity-10 backdrop-filter backdrop-blur-xl border-gray-700":"bg-white border-gray-200"]])},[e("div",qe,[e("h2",{class:n(["text-3xl font-extrabold text-center mb-8 cursor-pointer transition-colors duration-300",[o(a)?"text-transparent bg-clip-text bg-gradient-to-r from-indigo-300 via-purple-300 to-pink-300":"text-indigo-600"]]),onClick:ge},_(o(D).name),3),e("form",{onSubmit:E(pe,["prevent"]),class:"space-y-8"},[e("div",We,[e("button",{type:"button",onClick:t[0]||(t[0]=s=>w.value="file"),class:n(["px-4 py-2 rounded-lg",w.value==="file"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文件 ",2),e("button",{type:"button",onClick:t[1]||(t[1]=s=>w.value="text"),class:n(["px-4 py-2 rounded-lg",w.value==="text"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文本 ",2)]),x(J,{name:"fade",mode:"out-in"},{default:U(()=>[w.value==="file"?(M(),C("div",Ge,[e("div",{class:n(["rounded-xl p-8 flex flex-col items-center justify-center border-2 border-dashed transition-all duration-300 group cursor-pointer relative",[o(a)?"bg-gray-800 bg-opacity-50 border-gray-600 hover:border-indigo-500":"bg-gray-100 border-gray-300 hover:border-indigo-500"]]),onClick:F,onDragover:t[2]||(t[2]=E(()=>{},["prevent"])),onDrop:E(le,["prevent"])},[e("input",{id:"file-upload",type:"file",class:"hidden",onChange:p,ref_key:"fileInput",ref:f},null,544),m.value>0?(M(),C("div",Qe,[x(He,{progress:m.value},null,8,["progress"])])):j("",!0),x(o(je),{class:n(["w-16 h-16 transition-colors duration-300",o(a)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},null,8,["class"]),e("p",{class:n(["mt-4 text-sm transition-colors duration-300 w-full text-center",o(a)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},[e("span",Je,_(h.value?h.value.name:"点击或拖放文件到此处上传"),1)],2),e("p",{class:n(["mt-2 text-xs",o(a)?"text-gray-500":"text-gray-400"])}," 支持各种常见格式,最大"+_(o(Ne)(o(D).uploadSize)),3)],34)])):(M(),C("div",Ke,[w.value==="text"?(M(),C("div",Oe,[Q(e("textarea",{id:"text-content","onUpdate:modelValue":t[3]||(t[3]=s=>u.value=s),rows:"7",class:n(["flex-grow px-4 py-3 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500 transition duration-300 resize-none",o(a)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"]),placeholder:"在此输入要发送的文本..."},null,2),[[X,u.value]])])):j("",!0)]))]),_:1}),e("div",Xe,[e("label",{class:n(["text-sm font-medium",o(a)?"text-gray-300":"text-gray-700"])}," 过期方式 ",2),Q(e("select",{"onUpdate:modelValue":t[4]||(t[4]=s=>i.value=s),class:n(["px-4 py-2 rounded-xl focus:outline-none focus:ring-2 focus:ring-indigo-500",o(a)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},[(M(!0),C(Y,null,Z(o(D).expireStyle,s=>(M(),C("option",{value:s,key:s},_(W(s)),9,Ye))),128))],2),[[_e,i.value]]),i.value!=="forever"?(M(),C("div",Ze,[e("div",et,[Q(e("input",{"onUpdate:modelValue":t[5]||(t[5]=s=>r.value=s),type:"number",placeholder:ce(),class:n(["w-full px-4 py-2 pr-16 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500",o(a)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},null,10,tt),[[X,r.value]]),e("span",{class:n(["absolute right-3 top-1/2 transform -translate-y-1/2",o(a)?"text-gray-300":"text-gray-700"])},_(W()),3)])])):j("",!0)]),e("button",ot,[t[9]||(t[9]=e("span",{class:"absolute top-0 left-0 w-full h-full bg-white opacity-0 group-hover:opacity-20 transition-opacity duration-300"},null,-1)),e("span",at,[x(o(Le),{class:"w-6 h-6 mr-2"}),t[8]||(t[8]=e("span",null,"安全寄送",-1))])])],32),e("div",rt,[x(g,{to:"/",class:"text-indigo-400 hover:text-indigo-300 transition duration-300"},{default:U(()=>t[10]||(t[10]=[R(" 需要取件?点击这里 ")])),_:1})])]),e("div",{class:n(["px-8 py-4 bg-opacity-50 flex justify-between items-center",[o(a)?"bg-gray-800":"bg-gray-100"]])},[e("span",{class:n(["text-sm flex items-center",[o(a)?"text-gray-300":"text-gray-800"]])},[x(o(De),{class:"w-4 h-4 mr-1 text-green-400"}),t[11]||(t[11]=R(" 安全加密 "))],2),e("button",{onClick:K,class:n(["text-sm hover:text-indigo-300 transition duration-300 flex items-center",[o(a)?"text-indigo-400":"text-indigo-600"]])},[t[12]||(t[12]=R(" 发件记录 ")),x(o(Ie),{class:"w-4 h-4 ml-1"})],2)],2)],2),x(J,{name:"drawer"},{default:U(()=>[y.value?(M(),C("div",{key:0,class:n(["fixed inset-y-0 right-0 w-full sm:w-120 bg-opacity-70 backdrop-filter backdrop-blur-xl shadow-2xl z-50 overflow-hidden flex flex-col",[o(a)?"bg-gray-900":"bg-white"]])},[e("div",{class:n(["flex justify-between items-center p-6 border-b",[o(a)?"border-gray-700":"border-gray-200"]])},[e("h3",{class:n(["text-2xl font-bold",[o(a)?"text-white":"text-gray-800"]])}," 发件记录 ",2),e("button",{onClick:K,class:n(["hover:text-white transition duration-300",[o(a)?"text-gray-400":"text-gray-800"]])},[x(o(Me),{class:"w-6 h-6"})],2)],2),e("div",st,[x(Se,{name:"list",tag:"div",class:"space-y-4"},{default:U(()=>[(M(!0),C(Y,null,Z(v.value,s=>(M(),C("div",{key:s.id,class:n(["bg-opacity-50 rounded-lg p-4 flex items-center shadow-md hover:shadow-lg transition duration-300 transform hover:scale-102",[o(a)?"bg-gray-800 hover:bg-gray-700":"bg-gray-100 hover:bg-white"]])},[e("div",nt,[x(o(ee),{class:n(["w-10 h-10",[o(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])]),e("div",lt,[e("p",{class:n(["font-medium text-lg truncate",[o(a)?"text-white":"text-gray-800"]])},_(s.filename?s.filename:"Text"),3),e("p",{class:n(["text-sm truncate",[o(a)?"text-gray-400":"text-gray-600"]])},_(s.date)+" · "+_(s.size),3)]),e("div",it,[e("button",{onClick:b=>o(te)(s.retrieveCode),class:n(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[o(a)?"hover:bg-blue-400 text-blue-400":"hover:bg-blue-100 text-blue-600"]])},[x(o(Be),{class:"w-5 h-5"})],10,ct),e("button",{onClick:b=>he(s),class:n(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[o(a)?"hover:bg-green-400 text-green-400":"hover:bg-green-100 text-green-600"]])},[x(o(Fe),{class:"w-5 h-5"})],10,dt),e("button",{onClick:b=>fe(s.id),class:n(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[o(a)?"hover:bg-red-400 text-red-400":"hover:bg-red-100 text-red-600"]])},[x(o(Re),{class:"w-5 h-5"})],10,ut)])],2))),128))]),_:1})])],2)):j("",!0)]),_:1}),x(J,{name:"fade"},{default:U(()=>[S.value?(M(),C("div",pt,[e("div",{class:n(["p-8 rounded-2xl max-w-md w-full mx-4 shadow-2xl transform transition-all duration-300 ease-out backdrop-filter backdrop-blur-lg bg-opacity-70",[o(a)?"bg-gray-800":"bg-white"]])},[e("h3",{class:n(["text-2xl font-bold mb-6",[o(a)?"text-white":"text-gray-800"]])}," 文件详情 ",2),e("div",gt,[e("div",ht,[x(o(ee),{class:n(["w-6 h-6 mr-3",[o(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),e("p",{class:n([o(a)?"text-gray-300":"text-gray-800"])},[t[13]||(t[13]=e("span",{class:"font-medium"},"文件名:",-1)),R(_(S.value.filename),1)],2)]),e("div",ft,[x(o(Ae),{class:n(["w-6 h-6 mr-3",[o(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),e("p",{class:n([o(a)?"text-gray-300":"text-gray-800"])},[t[14]||(t[14]=e("span",{class:"font-medium"},"发送日期:",-1)),R(_(S.value.date),1)],2)]),e("div",vt,[x(o($e),{class:n(["w-6 h-6 mr-3",[o(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),e("p",{class:n([o(a)?"text-gray-300":"text-gray-800"])},[t[15]||(t[15]=e("span",{class:"font-medium"},"文件大小:",-1)),R(_(S.value.size),1)],2)]),e("div",xt,[x(o(Ue),{class:n(["w-6 h-6 mr-3",[o(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),e("p",{class:n([o(a)?"text-gray-300":"text-gray-800"])},[t[16]||(t[16]=e("span",{class:"font-medium"},"过期时间:",-1)),R(_(S.value.expiration),1)],2)])]),e("div",yt,[e("div",mt,[e("h4",{class:n(["text-lg font-semibold mb-3",[o(a)?"text-white":"text-gray-800"]])}," 取件码 ",2),e("div",{class:"bg-gray-100 p-3 rounded-lg shadow-md cursor-pointer hover:bg-gray-200 transition-colors duration-300 w-full text-center",onClick:t[6]||(t[6]=s=>o(Ee)(S.value.retrieveCode))},[e("p",bt,_(S.value.retrieveCode),1)]),e("p",{class:n(["mt-2 text-sm",[o(a)?"text-gray-400":"text-gray-600"]])}," 点击复制取件码 ",2)]),e("div",wt,[e("h4",{class:n(["text-lg font-semibold mb-3",[o(a)?"text-white":"text-gray-800"]])}," 二维码 ",2),e("div",kt,[x(Pe,{value:xe(S.value),size:128,level:"M"},null,8,["value"])]),e("p",{class:n(["mt-2 text-sm",[o(a)?"text-gray-400":"text-gray-600"]])}," 扫描二维码快速取件 ",2)])]),e("button",{onClick:t[7]||(t[7]=s=>S.value=null),class:"mt-8 w-full bg-gradient-to-r from-indigo-500 to-purple-600 text-white px-6 py-3 rounded-lg font-medium hover:from-indigo-600 hover:to-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition duration-300 transform hover:scale-105"}," 关闭 ")],2)])):j("",!0)]),_:1})],32)}}}),Dt=re(_t,[["__scopeId","data-v-89bdc9ab"]]);export{Dt as default};