Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m40s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m58s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m54s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m17s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m27s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m22s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m2s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2 lines
No EOL
1 KiB
JavaScript
2 lines
No EOL
1 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-E80GohuY.js","assets/app-BpMi0Mr-.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-BxfVigbi.css"])))=>i.map(i=>d[i]);
|
|
import{s as e}from"./app-BpMi0Mr-.js";var t=new Map,n=null;async function r(){return n??=Promise.all([e(()=>import(`./pdf-E80GohuY.js`),__vite__mapDeps([0,1,2,3,4])),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}; |