Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m46s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m49s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m7s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m8s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m51s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m29s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m12s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m11s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m33s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2 lines
No EOL
944 B
JavaScript
2 lines
No EOL
944 B
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-B4gMzeBb.js","assets/preload-helper-CwIXHf_L.js"])))=>i.map(i=>d[i]);
|
|
import{t as e}from"./preload-helper-CwIXHf_L.js";var t=new Map,n=null;async function r(){return n??=Promise.all([e(()=>import(`./pdf-B4gMzeBb.js`),__vite__mapDeps([0,1])),e(()=>import(`./pdf.worker.min-D00xlTFB.js`),[])]).then(([e,t])=>(e.GlobalWorkerOptions.workerSrc=t.default,e)),n}function i(e,n=360){return t.has(e)||t.set(e,(async()=>{let t=await(await r()).getDownload({url:e,isEvalSupported:!1,enableXfa:!1}).promise;try{let e=await t.getPage(1),r=e.getViewport({scale:n/e.getViewport({scale:1}).width}),i=document.createElement(`canvas`);return i.width=Math.round(r.width),i.height=Math.round(r.height),await e.render({canvasContext:i.getContext(`2d`),viewport:r}).promise,i.toDataURL(`image/jpeg`,.82)}finally{t.destroy()}})().catch(n=>{throw t.delete(e),n})),t.get(e)}export{i as pdfThumbnail}; |