1import{r as m,j as e}from"./Dem1e8VV.js";import{L as x,S as L}from"./CEzoFwpx.js";import{a as A,D as N,b as p,c as u}from"./BhkI8p7b.js";import{u as S,o as T,V as f,c as _,b5 as h}from"../entry/whq2ljq-.js";import{d as E,H as g}from"./CNFvtpL4.js";import"./BnZNklX7.js";import"./CKyIDaFG.js";import"./DngduZSe.js";import"./phrJN640.js";import"./Dh95b2SR.js";const F=()=>{const{businessId:t=""}=E(),s=S(),i=T(),n=f(),[l]=_("deleteAllExportedFiles"),{currentTab:a,handleTabChange:c}=A({urlPattern:"pages/download",defaultTab:p,validTabs:u,generateNavigationPath:o=>`../pages/download/${o}`}),[d,D]=m.useState(0),O=async()=>{if(!(!t||!await n.showConfirm({title:s("MOD_DOWNLOADS.CLEAR_HISTORY.TITLE"),content:s("MOD_DOWNLOADS.CLEAR_HISTORY.BODY"),okText:s("MOD_DOWNLOADS.CLEAR_HISTORY.CONFIRM"),cancelText:s("MOD_DOWNLOADS.CLEAR_HISTORY.CANCEL"),variant:"destructive"})))try{await l(t),i.success("MOD_DOWNLOADS.NOTIFICATION.ALL_EXPORTED_FILES_REMOVED"),D(r=>r+1)}catch(r){console.error(r)}};return e.jsx("div",{className:"max-w-5xl mx-auto px-4",children:e.jsxs("div",{className:"flex flex-col lg:flex-row gap-5",children:[e.jsx("div",{className:"lg:sticky lg:top-0 lg:self-start shrink-0",children:e.jsx(x,{children:e.jsx(L,{title:s("MOD_DOWNLOADS.ALL_DOWNLOADS"),description:s("MOD_DOWNLOADS.DESCRIPTION"),tabs:N,currentTab:a,onTabChange:c,children:e.jsx("div",{className:"mt-2 pt-2 border-t border-border",children:e.jsxs("button",{className:"w-full flex items-center gap-2 px-4 py-3 rounded-lg text-xs font-medium text-destructive hover:bg-destructive/5 transition-colors cursor-pointer whitespace-nowrap",onClick:O,children:[e.jsx(g,{className:"size-4 shrink-0"}),s("MOD_DOWNLOADS.CLEAR_DOWNLOADS")]})})})})}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx(h,{businessId:t,category:a},`${a}-${d}`)})]})})};export{F 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.