1import{_ as Ae}from"./DJZItRuW.title-20260930-102742.js";import{f as he,g as be,l as Fe,H as Be,b as _,w as ae,T as xe,I as De,o as i,c as r,a as t,G as n,t as a,d as F,B,C as J,q as y,s as ve,k as S,a6 as ze,z as m,a7 as we,_ as _e,N as Ee,h as qe,P as Ue,p as je,i as He,Z as Oe,K as ue,F as W,r as oe,a5 as pe,e as Ke,a2 as Ge,A as U,a8 as Ye,a4 as Xe,E as Je,W as fe,a9 as We}from"./CNCSlWpT.title-20260930-102742.js";import{_ as Ze}from"./BdeR9KeV.title-20260930-102742.js";import{X as Qe,C as et}from"./LNInVott.title-20260930-102742.js";import tt from"./BLVcSyMV.title-20260930-102742.js";import{c as se}from"./DKzsosts.title-20260930-102742.js";import{C as ot}from"./Canuk-Xt.title-20260930-102742.js";import"./CPK62RH4.title-20260930-102742.js";import"./8etO13uA.title-20260930-102742.js";import"./Bl7p3P5z.title-20260930-102742.js";const nt=se("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const at=se("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const me=se("package-open",[["path",{d:"M12 22v-9",key:"x3hkom"}],["path",{d:"M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z",key:"2ntwy6"}],["path",{d:"M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13",key:"1pmm1c"}],["path",{d:"M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z",key:"12ttoo"}]]),st={class:"relative max-h-[90vh] w-full max-w-[560px] overflow-y-auto rounded-2xl bg-white p-9"},lt=["aria-label"],it={class:"mb-7 pr-12 text-[20px] font-extrabold text-[#0f172a]"},rt={class:"grid grid-cols-1 gap-4 md:grid-cols-2"},dt={class:"mb-2 block text-[13px] font-medium text-[#0f172a]"},ct=["placeholder"],ut={class:"mb-2 block text-[13px] font-medium text-[#0f172a]"},pt=["placeholder"],ft={class:"mb-2 block text-[13px] font-medium text-[#0f172a]"},mt={key:0,class:"text-[#ef4444]"},ht={class:"mb-2 block text-[13px] font-medium text-[#0f172a]"},bt={key:0,class:"text-[#ef4444]"},xt={class:"md:col-span-2"},vt={class:"mb-2 block text-[13px] font-medium text-[#0f172a]"},wt={class:"form-field"},_t=["placeholder"],gt=["innerHTML","title"],kt={key:0,class:"mt-3 text-[13px] text-[#dc2626]"},yt=["disabled"],$t=he({__name:"DownloadRequestModal",props:{modelValue:{type:Boolean},files:{}},emits:["update:modelValue","completed"],setup(Q,{emit:R}){const M=Q,D=R,{t:g,locale:z}=be(),V=S(()=>z.value==="zh"),c=ze({name:"",phone:"",email:"",company:"",captcha:""}),N=m(!1),j=m(null),L=m(null),T=m(""),h=m(""),k=m(!1);function H(){return{zh:"zh-CN",en:"en-US",ja:"ja-JP",ko:"ko-KR"}[z.value]||z.value}async function C(){const s=await $fetch("/api/download/captcha");T.value=s.token,L.value=s.svg}function O(){h.value="",N.value=!1,L.value=null,T.value="",c.name=c.phone=c.email=c.company=c.captcha=""}function I(){D("update:modelValue",!1),O()}Fe(()=>M.modelValue,s=>{s&&C()});async function E(){if(h.value="",!c.name.trim()){h.value=g("download.err_name");return}if(!c.company.trim()){h.value=g("download.err_company");return}if(V.value){if(!j.value?.validate()){h.value=g("download.err_phone");return}}else if(!c.email.trim()){h.value=g("download.err_email");return}if(c.phone&&!N.value){h.value=g("download.err_phone");return}if(!c.captcha.trim()){h.value=g("download.err_captcha");return}if(!M.files.length){h.value=g("download.err_submit");return}k.value=!0;try{const s=await $fetch("/api/download/submit",{method:"POST",body:{...c,i18n:H(),captchaToken:T.value,fileTokens:M.files.map(l=>l.Token),fileNames:M.files.map(l=>l.Name)}});if(D("completed"),I(),s.redirectUrl){await we(s.redirectUrl);return}s.links[0]&&window.open(s.links[0],"_blank","noopener,noreferrer")}catch(s){h.value=s?.data?.message||s?.data?.statusMessage||g("download.err_submit"),await C(),c.captcha=""}finally{k.value=!1}}return(s,l)=>{const P=Ze;return i(),Be(De,{to:"body"},[_(xe,{name:"fade"},{default:ae(()=>[Q.modelValue?(i(),r("div",{key:0,class:"fixed inset-0 z-[200] flex items-center justify-center bg-black/50 px-4",onClick:ve(I,["self"])},[t("div",st,[t("button",{type:"button",class:"absolute right-5 top-5 flex h-9 w-9 items-center justify-center rounded-lg bg-[#f1f1f3] text-black/55 transition hover:bg-[#e6e6ea] hover:text-black/80","aria-label":s.$t("download.exit_select"),onClick:I},[_(n(Qe),{class:"h-5 w-5"})],8,lt),t("h3",it,a(s.$t("download.modal_title")),1),t("div",rt,[t("div",null,[t("label",dt,[F(a(s.$t("download.field_name"))+" ",1),l[6]||(l[6]=t("span",{class:"text-[#ef4444]"},"*",-1))]),B(t("input",{"onUpdate:modelValue":l[0]||(l[0]=f=>n(c).name=f),placeholder:s.$t("download.field_name_ph"),class:"form-input"},null,8,ct),[[J,n(c).name]])]),t("div",null,[t("label",ut,[F(a(s.$t("download.field_company"))+" ",1),l[7]||(l[7]=t("span",{class:"text-[#ef4444]"},"*",-1))]),B(t("input",{"onUpdate:modelValue":l[1]||(l[1]=f=>
1n(c).company=f),placeholder:s.$t("download.field_company_ph"),class:"form-input"},null,8,pt),[[J,n(c).company]])]),t("div",null,[t("label",ft,[F(a(s.$t("download.field_phone")),1),n(V)?(i(),r("span",mt," *")):y("",!0)]),_(P,{ref_key:"phoneInputRef",ref:j,modelValue:n(c).phone,"onUpdate:modelValue":l[2]||(l[2]=f=>n(c).phone=f),required:n(V),dark:!1,"onUpdate:valid":l[3]||(l[3]=f=>N.value=f)},null,8,["modelValue","required"])]),t("div",null,[t("label",ht,[F(a(s.$t("download.field_email")),1),n(V)?y("",!0):(i(),r("span",bt," *"))]),B(t("input",{"onUpdate:modelValue":l[4]||(l[4]=f=>n(c).email=f),type:"email",placeholder:"[email protected]",class:"form-input"},null,512),[[J,n(c).email]])]),t("div",xt,[t("label",vt,[F(a(s.$t("download.field_captcha"))+" ",1),l[8]||(l[8]=t("span",{class:"text-[#ef4444]"},"*",-1))]),t("div",wt,[B(t("input",{"onUpdate:modelValue":l[5]||(l[5]=f=>n(c).captcha=f),placeholder:s.$t("download.field_captcha_ph"),class:"form-input form-input-captcha"},null,8,_t),[[J,n(c).captcha]]),n(L)?(i(),r("div",{key:0,innerHTML:n(L),class:"captcha-image absolute right-2 top-1/2 h-9 -translate-y-1/2 cursor-pointer overflow-hidden rounded-md bg-[#f0f4ff]",title:s.$t("download.captcha_refresh"),onClick:C},null,8,gt)):(i(),r("div",{key:1,class:"absolute right-2 top-1/2 flex h-9 w-[110px] -translate-y-1/2 cursor-pointer items-center justify-center rounded-md bg-[#f0f4ff] text-xs text-black/40",onClick:C},a(s.$t("download.loading")),1))])])]),n(h)?(i(),r("p",kt,a(n(h)),1)):y("",!0),t("button",{type:"button",class:"mt-6 w-full rounded-lg bg-[#0f172a] py-3.5 text-[15px] font-bold text-white transition hover:bg-[#1e293b] disabled:opacity-60",disabled:n(k),onClick:E},a(n(k)?s.$t("download.submitting"):s.$t("download.submit")),9,yt)])])):y("",!0)]),_:1})])}}}),Tt=Object.assign(_e($t,[["__scopeId","data-v-c07bb09c"]]),{__name:"DownloadRequestModal"}),Ct={class:"bg-white py-14 lg:py-20"},Vt={class:"container-xl"},Nt={class:"mb-10 border-b border-black/[0.08] pb-7"},St={class:"max-w-2xl"},Mt={class:"mt-2 text-[clamp(1.65rem,3vw,2.4rem)] font-black tracking-[-0.05em] text-[#0f172a]"},Pt={class:"mt-3 max-w-2xl text-[14px] leading-6 text-black/45"},Rt={key:0,class:"flex min-h-[360px] items-center justify-center rounded-3xl bg-[#f8fafc] text-sm text-black/40"},Lt={class:"lg:sticky lg:top-24 lg:self-start"},It={class:"mb-3 px-2 text-[11px] font-bold uppercase tracking-[0.16em] text-black/30"},At={class:"flex gap-2 overflow-x-auto pb-2 lg:flex-col lg:overflow-visible"},Ft=["onClick"],Bt={class:"min-w-0 flex-1"},Dt={class:"block truncate text-[13px] font-bold"},zt={class:"mb-5 flex flex-wrap items-end justify-between gap-3 px-1"},Et={class:"text-[11px] font-bold uppercase tracking-[0.14em] text-[#2563eb]"},qt={class:"mt-1 text-[22px] font-black tracking-[-0.035em] text-[#0f172a]"},Ut={key:0,class:"flex flex-wrap items-center justify-end gap-2"},jt={class:"mr-1 text-[12px] text-black/35"},Ht=["disabled"],Ot=["data-history-version-index"],Kt=["aria-expanded","onClick"],Gt={class:"min-w-0 flex-1"},Yt={class:"flex flex-wrap items-center gap-2"},Xt={class:"text-[15px] font-extrabold text-[#0f172a]"},Jt={key:0,class:"rounded-full bg-blue-100 px-2.5 py-0.5 text-[10px] font-bold text-blue-700"},Wt={class:"mt-1 block text-[11px] text-black/35"},Zt={class:"border-t border-black/[0.05] bg-[#f8fafc] px-3 py-3 sm:px-4"},Qt={class:"flex flex-col gap-2"},eo=["value","disabled","onChange"],to={class:"relative h-11 w-9 flex-shrink-0"},oo={class:"min-w-0 flex-1"},no={class:"block break-all text-[13px] font-semibold leading-5 text-[#0f172a]"},ao={class:"mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[11px] text-black/40"},so={class:"font-medium text-[#475569]"},lo=["aria-label","title","onClick"],io={key:1,class:"flex min-h-[280px] flex-col items-center justify-center rounded-2xl bg-[#f8fafc] text-center"},ro={class:"text-sm font-medium text-black/40"},co={key:2,class:"mt-6 text-right text-[11px] text-black/30"},uo={key:2,class:"flex min-h-[360px] flex-col items-center justify-center rounded-3xl bg-[#f8fafc] text-center"},po={class:"text-sm font-medium text-black/40"},fo={key:0,class:"fixed bottom-8 left-1/2 z-[100] flex max-w-[calc(100vw-2rem)] -translate-x-1/2 items-center gap-4 whitespace-nowrap rounded-2xl bg-[#0f172a] px-6 py-3.5 text-white shadow-[0_8px_40px_rgba(0,0,0,0.25)]"},mo={class:"text-sm"},ho={class:"hidden text-xs text-white/45 sm:inline"},Z=10,ne=1,bo=he({__name:"download-history",async setup(Q){let R,M;const{t:D,locale:g}=be(),z=Ee(),V=qe(),c=Ue();je({title:()=>`${D("download_history.title")} | TransferTech`,description:()=>D("download_history.subtitle")});const{data:N,pending:j}=([R,M]=He(()=>
1Ge("software-history",()=>$fetch("/api/download/software-history"))),R=await R,M(),R),L=[{Name:"ATOM SDK",Index:3.5,Versions:[]}],T=S(()=>{const e=[...N.value?.Products??[]];for(const o of L)e.some(u=>u.Name===o.Name)||e.push(o);return e.sort((o,u)=>o.Index-u.Index)}),h=m(typeof V.query.product=="string"?V.query.product:""),k=m([]),H=m(""),C=m(!1),O=m([]),I=m(null),E=m(null),s=m(null),l=m(null),P=m(!1),f=m(!1),p=m([]),q=m({});let le=0;const x=S(()=>T.value.find(e=>e.Name===h.value)??T.value[0]),ge=S(()=>T.value.flatMap(e=>e.Versions.flatMap(o=>o.Files))),ee=S(()=>x.value?.Versions.flatMap(e=>e.Files)??[]),te=S(()=>p.value.length>=Z),ie=S(()=>{const e=new Set(ee.value.map(o=>o.Token));return p.value.filter(o=>e.has(o)).length}),re=S(()=>{const e=ee.value;return e.length?e.every(o=>p.value.includes(o.Token))||te.value&&ie.value>0:!1});function de(e){return x.value?.Name===e}Oe(()=>{const e=x.value;e&&(h.value!==e.Name&&(h.value=e.Name),H.value!==e.Name&&(H.value=e.Name,k.value=e.Versions[0]?[K(e.Name,e.Versions[0].Version)]:[]))});function K(e,o){return`${e}::${o}`}function G(e){return x.value?k.value.includes(K(x.value.Name,e)):!1}function ke(e){if(!x.value)return;const o=K(x.value.Name,e);k.value=k.value.includes(o)?k.value.filter(u=>u!==o):[...k.value,o]}function ye(){f.value=!0}function $e(){f.value=!1,Y()}function Te(e,o){const u=e.target;if(u.checked){if(p.value.length>Z){p.value=p.value.filter(v=>v!==o.Token),u.checked=!1;return}q.value[o.Token]=o.FileName}else delete q.value[o.Token]}function Y(){p.value=[],q.value={}}function Ce(){const e=ee.value;if(e.length){if(re.value){const o=new Set(e.map(u=>u.Token));p.value=p.value.filter(u=>!o.has(u)),e.forEach(u=>delete q.value[u.Token]);return}e.forEach(o=>{p.value.length>=Z||(p.value.includes(o.Token)||p.value.push(o.Token),q.value[o.Token]=o.FileName)})}}function Ve(e){if(!x.value)return!1;const u=document.querySelector("[data-app-navbar]")?.getBoundingClientRect().bottom??0,w=Array.from(E.value?.querySelectorAll("[data-history-version-index]")??[]).filter($=>{const d=$.getBoundingClientRect();return d.bottom>u&&d.top<window.innerHeight}).map($=>Number($.dataset.historyVersionIndex)).filter(Number.isFinite);if(!w.length){const $=E.value?.getBoundingClientRect();return!!($&&$.top<u)}return Math.max(...w)>=e.Versions.length}function Ne(e=ne){const o=I.value;if(!o)return Promise.resolve();const v=document.querySelector("[data-app-navbar]")?.getBoundingClientRect().bottom??0,w=Math.max(0,o.getBoundingClientRect().top+window.scrollY-v);return Math.abs(window.scrollY-w)<2?Promise.resolve():new Promise($=>{let d=!1;const A=()=>{d||(d=!0,$())},b=We();b?b.scrollTo(w,{duration:e,force:!0,onComplete:A}):window.scrollTo({top:w,behavior:"smooth"}),window.setTimeout(A,e*1e3+300)})}function Se(){return new Promise(e=>window.requestAnimationFrame(()=>e()))}async function Me(e){const o=N.value?.Products.find(w=>w.Name===e);if(!o||o.Name===x.value?.Name)return;const u=++le,v=Ve(o);if(v&&(l.value=s.value?.getBoundingClientRect().height??0,P.value=!1),h.value=e,k.value=o?.Versions[0]?[K(e,o.Versions[0].Version)]:[],await c.replace({query:{...V.query,product:e}}),await fe(),v){if(await Se(),P.value=!0,l.value=0,await Ne(ne),u!==le){P.value=!1,l.value=null;return}P.value=!1,l.value=null,await fe()}}function Pe(e){return{exe:"#3b82f6",deb:"#f97316",windows:"#3b82f6",linux:"#f97316",epicbin:"#2563eb",zip:"#a855f7",gz:"#64748b"}[e.toLowerCase()]||"#64748b"}function Re(e){const o=e.toLowerCase();return{windows:"EXE",linux:"DEB",firmware:"EPICBIN",epicbin:"EPICBIN",gz:"TAR"}[o]||o.toUpperCase().slice(0,3)}function Le(e){return new Intl.DateTimeFormat(g.value,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(new Date(e))}function Ie(){return{zh:"zh-CN",en:"en-US",ja:"ja-JP",ko:"ko-KR"}[g.value]||g.value}async function ce(e){const o=e??p.value.map(v=>ge.value.find(w=>w.Token===v)).filter(v=>!!v);if(!o.length)return;if((await $fetch("/api/download/check-internal",{method:"POST",body:{testMode:void 0}})).isInternal){if(o.length===1)window.open(`https://transfer.feishu.cn/file/${o[0].Token}`,"_blank","noopener,noreferrer");else{const v=await $fetch("/api/download/internal-prepare",{method:"POST",body:{i18n:Ie(),fileTokens:o.map(w=>w.Token)}});await we(v.redirectUrl)}e||Y();return}O.value=o,C.value=!0}return(e,o)=>{const u=Ae,v=Ke,w=Tt,$=tt;
1return i(),r("div",null,[_(u,{eyebrow:"Software Archive",title:e.$t("download_history.title"),subtitle:e.$t("download_history.subtitle"),"badge-text":"HISTORY","bg-color1":"#111827","bg-color2":"#4f46e5",image:"/docs-assets/banner/banner-download.png"},null,8,["title","subtitle"]),t("section",Ct,[t("div",Vt,[t("div",Nt,[t("div",St,[_(v,{to:n(z)("/download"),class:"mb-4 inline-flex h-7 items-center gap-2 text-[13px] font-semibold leading-none text-black/45 transition hover:text-[#2563eb]"},{default:ae(()=>[_(n(nt),{class:"h-4 w-4"}),F(" "+a(e.$t("download_history.back")),1)]),_:1},8,["to"]),t("h2",Mt,a(e.$t("download_history.heading")),1),t("p",Pt,a(e.$t("download_history.description")),1)])]),n(j)?(i(),r("div",Rt,a(e.$t("download_history.loading")),1)):n(T).length?(i(),r("div",{key:1,ref_key:"historyLayoutRef",ref:s,class:"grid grid-cols-1 gap-8 [overflow-anchor:none] lg:grid-cols-[280px_1fr] lg:gap-10",style:ue(n(l)!==null?{minHeight:`${n(l)}px`,transition:n(P)?`min-height ${ne}s cubic-bezier(0.22, 1, 0.36, 1)`:"none"}:void 0)},[t("aside",Lt,[t("div",It,a(e.$t("download_history.choose_product")),1),t("div",At,[(i(!0),r(W,null,oe(n(T),(d,A)=>(i(),r("button",{key:d.Name,type:"button",class:U(["group flex min-w-[220px] items-center gap-3 rounded-2xl border px-4 py-3.5 text-left transition lg:min-w-0",de(d.Name)?"border-transparent bg-[#0f172a] text-white":"border-black/[0.06] bg-white text-[#0f172a] hover:border-transparent hover:bg-[#f8fafc]"]),onClick:b=>Me(d.Name)},[t("span",{class:U(["w-9 flex-shrink-0 text-center font-mono text-[12px] font-medium tracking-[0.08em]",de(d.Name)?"text-white/45":"text-black/30"])},a(String(A+1).padStart(2,"0")),3),t("span",Bt,[t("span",Dt,a(d.Name),1)]),_(n(ot),{class:"h-4 w-4 flex-shrink-0 opacity-35"})],10,Ft))),128))])]),n(x)?(i(),r("div",{key:0,ref_key:"archivePanelRef",ref:I,class:"min-w-0 scroll-mt-24"},[t("div",zt,[t("div",null,[t("div",Et,a(e.$t("download_history.archive")),1),t("h3",qt,a(n(x).Name),1)]),n(x).Versions.length?(i(),r("div",Ut,[t("p",jt,a(e.$t("download_history.newest_first")),1),n(f)?(i(),r(W,{key:0},[t("button",{type:"button",class:"rounded-lg border border-black/[0.08] bg-white px-4 py-1.5 text-[13px] font-medium text-[#475569] transition hover:border-transparent hover:bg-[#f8fafc] hover:text-[#0f172a] disabled:opacity-45",disabled:n(te)&&n(ie)===0,onClick:Ce},a(n(re)?e.$t("download.deselect_all"):e.$t("download.select_all")),9,Ht),t("button",{type:"button",class:"rounded-lg border border-transparent bg-[#0f172a] px-4 py-1.5 text-[13px] font-medium text-white transition hover:bg-[#1e293b]",onClick:$e},a(e.$t("download.exit_select")),1)],64)):(i(),r("button",{key:1,type:"button",class:"rounded-lg border border-black/[0.08] bg-white px-4 py-1.5 text-[13px] font-medium text-[#475569] transition hover:border-transparent hover:bg-[#f8fafc] hover:text-[#0f172a]",onClick:ye},a(e.$t("download.batch_select")),1))])):y("",!0)]),n(x).Versions.length?(i(),r("div",{key:0,ref_key:"versionListRef",ref:E,class:"flex flex-col gap-3"},[(i(!0),r(W,null,oe(n(x).Versions,(d,A)=>(i(),r("article",{key:`${n(x).Name}-${d.Version}`,"data-history-version-index":A,class:U(["overflow-hidden rounded-2xl border border-black/[0.06] bg-white transition",G(d.Version)?"shadow-[0_10px_30px_rgba(15,23,42,0.05)]":""])},[t("button",{type:"button",class:"flex w-full items-center gap-4 px-5 py-4 text-left transition hover:bg-[#f8fafc] sm:px-6","aria-expanded":G(d.Version),onClick:b=>ke(d.Version)},[t("span",Gt,[t("span",Yt,[t("span",Xt,"v"+a(d.Version),1),d===n(x).Versions[0]?(i(),r("span",Jt,a(e.$t("download_history.latest_archive")),1)):y("",!0)]),t("span",Wt,a(e.$t("download_history.file_count",{n:d.Files.length}))+" · "+a(d.Modified.slice(0,10)),1)]),_(n(at),{class:U(["h-5 w-5 flex-shrink-0 text-black/30 transition duration-200",G(d.Version)?"rotate-180":""])},null,8,["class"])],8,Kt),B(t("div",Zt,[t("div",Qt,[(i(!0),r(W,null,oe(d.Files,b=>(i(),r("label",{key:b.Token,class:U(["group flex items-center gap-3 rounded-xl bg-white px-4 py-3.5 transition hover:shadow-[0_5px_18px_rgba(15,23,42,0.05)] sm:gap-4",[n(f)?"cursor-pointer":"",n(f)&&n(p).includes(b.Token)?"ring-1 ring-inset ring-[#0f172a]/20 bg-[#f1f5f9]":""]])},[n(f)?B((i(),r("input",{key:0,"onUpdate:modelValue":o[0]||(o[0]=X=>pe(p)?p.value=X:null),type:"checkbox",value:b.Token,class:"checkbox-custom flex-shrink-0",disabled:n(te)&&!n(p).includes(b.Token),onChange:X=>Te(X,b)},null,40,eo)),[[Xe,n(p)]]):y("",!0),t("span",to,[o[3]||(o[3]=Je('<svg viewBox="0 0 36 44" class="h-full w-full drop-shadow-[0_1px_2px_rgba(15,23,42,0.08)]" aria-hidden="true" data-v-bcc19bbd><path d="M4 3 H22 L32 13 V41 H4 Z" fill="#ffffff" stroke="#cbd5e1" stroke-width="1.2" stroke-linejoin="round" data-v-bcc19bbd></path><path d="M22 3 V13 H32" fill="#e2e8f0" stroke="#cbd5e1" stroke-width="1.2" stroke-linejoin="round" data-v-bcc19bbd></path><line x1="9" y1="22" x2="22" y2="22" stroke="#cbd5e1" stroke-width="1" stroke-linecap="round" data-v-bcc19bbd></line><line x1="9" y1="27" x2="26" y2="27" stroke="#cbd5e1" stroke-width="1" stroke-linecap="round" data-v-bcc19bbd></line></svg>',1)),t("span",{class:"absolute bottom-[3px] left-[-3px] rounded-[3px] px-[5px] py-[2px] text-[9px] font-extrabold uppercase tracking-wider text-white",style:ue({background:Pe(b.Type)})},a(Re(b.Type)),5)]),t("span",oo,[t("span",no,a(b.FileName),1),t("span",ao,[t("span",so,a(b.Platform),1),o[4]||(o[4]=t("span",{class:"text-black/15"},"·",-1)),t("span",null,a(b.Modified.slice(0,10)),1),o[5]||(o[5]=t("span",{class:"text-black/15"},"·",-1)),t("span",null,a(b.Size),1)])]),n(f)?y("",!0):(i(),r("button",{key:1,type:"button",class:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full text-black/35 transition hover:bg-[#eef2ff] hover:text-[#4f46e5]","aria-label":e.$t("download_history.download_file"),title:e.$t("download_history.download_file"),onClick:ve(X=>ce([b]),["prevent","stop"])},[_(n(et),{class:"h-[18px] w-[18px]","stroke-width":1.7})],8,lo))],2))),128))])],512),[[Ye,G(d.Version)]])],10,Ot))),128))],512)):(i(),r("div",io,[_(n(me),{class:"mb-4 h-10 w-10 text-black/20"}),t("p",ro,a(e.$t("download_history.empty")),1)])),n(N).GeneratedAt?(i(),r("p",co,a(e.$t("download_history.synced_at"))+" "+a(Le(n(N).GeneratedAt)),1)):y("",!0)],512)):y("",!0)],4)):(i(),r("div",uo,[_(n(me),{class:"mb-4 h-10 w-10 text-black/20"}),t("p",po,a(e.$t("download_history.empty")),1)]))])]),_(xe,{name:"slide-up"},{default:ae(()=>[n(p).length>0?(i(),r("div",fo,[t("span",mo,a(e.$t("download.selected_count",{n:n(p).length})),1),t("span",ho,a(e.$t("download.selection_limit",{n:Z})),1),t("button",{type:"button",class:"border-none bg-transparent text-xs text-white/50 transition hover:text-white/80",onClick:Y},a(e.$t("download.clear")),1),t("button",{type:"button",class:"rounded-xl bg-[#2563eb] px-5 py-2 text-sm font-bold transition hover:bg-[#1d4ed8]",onClick:o[1]||(o[1]=d=>ce())},a(e.$t("download.batch_download")),1)])):y("",!0)]),_:1}),_(w,{modelValue:n(C),"onUpdate:modelValue":o[2]||(o[2]=d=>pe(C)?C.value=d:null),files:n(O),onCompleted:Y},null,8,["modelValue","files"]),_($)])}}}),Vo=_e(bo,[["__scopeId","data-v-bcc19bbd"]]);export{Vo as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.