1import{u as x,r as s,j as e,aL as m,d as f}from"./index-DMQ34O7E.js";import{d as p}from"./consentLogsService-DcnN89r8.js";function u(){const{t}=x(),[i,a]=s.useState(!0),[d,o]=s.useState(!1),{mutateAsync:n}=p();return s.useEffect(()=>{(async()=>{const r=new URLSearchParams(globalThis.location.search).get("key");if(!r){o(!0),a(!1);return}try{const c=(await n(r)).data.download_url;c?(globalThis.location.href=c,setTimeout(()=>{globalThis.close()},2e3)):o(!0)}catch(l){console.error("Failed to download report:",l),o(!0)}finally{a(!1)}})()},[n]),i?e.jsx("div",{className:"h-screen w-screen flex items-center justify-center",children:e.jsx(m,{})}):d?e.jsx("div",{className:"w-full px-[30px] py-[50px] flex justify-center",children:e.jsxs("div",{className:"w-full max-w-[420px] md:max-w-[33.333333%] mt-[42px] px-5 flex flex-col items-center text-center text-[#27283c]",children:[e.jsx("div",{className:"mb-10",children:e.jsx("img",{src:"/images/cy-logo.svg",alt:"CookieYes Logo",className:"h-8"})}),e.jsx("div",{className:"mb-5",children:e.jsx("img",{src:"/images/icons/failed-icon.svg",alt:"Failed"})}),e.jsx("h5",{className:"text-[32px] font-[700] leading-[36px] mb-[10px]",children:t("consentLog.consentLogList.table.proofOfConsentDownload.expiredLink.title")}),e.jsx("p",{className:"text-[16px] font-[400] leading-[24px] mt-[10px]",children:t("consentLog.consentLogList.table.proofOfConsentDownload.expiredLink.info")})]})}):null}const j=f("/consent-logs_/download")({component:u});export{j as Route};
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.