1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8863],{2487:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(29510).A)("CloudUpload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]])},27280:(e,r,t)=>{e.exports=t.p+"static/media/pdfium.e0f51e15.wasm"},29574:(e,r,t)=>{t.d(r,{E:()=>d});var n=t(58321);t(39349);var i=t(61500),s=t(85820),a=t(50706);let l=(0,s.F)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function d(e){let{className:r,variant:t,asChild:s=!1,...d}=e,o=s?i.DX:"span";return(0,n.jsx)(o,{"data-slot":"badge",className:(0,a.cn)(l({variant:t}),r),...d})}},32171:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(29510).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},39808:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(29510).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},42815:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(29510).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},55292:(e,r,t)=>{t.d(r,{s:()=>a,t:()=>s});var n=t(39349);function i(e,r){if("function"==typeof e)return e(r);null!=e&&(e.current=r)}function s(...e){return r=>{let t=!1,n=e.map(e=>{let n=i(e,r);return t||"function"!=typeof n||(t=!0),n});if(t)return()=>{for(let r=0;r<n.length;r++){let t=n[r];"function"==typeof t?t():i(e[r],null)}}}}function a(...e){return n.useCallback(s(...e),e)}},61500:(e,r,t)=>{t.d(r,{DX:()=>a,xV:()=>d});var n=t(39349),i=t(55292),s=t(58321),a=n.forwardRef((e,r)=>{let{children:t,...i}=e,a=n.Children.toArray(t),d=a.find(o);if(d){let e=d.props.children,t=a.map(r=>r!==d?r:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,s.jsx)(l,{...i,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,t):null})}return(0,s.jsx)(l,{...i,ref:r,children:t})});a.displayName="Slot";var l=n.forwardRef((e,r)=>{let{children:t,...s}=e;if(n.isValidElement(t)){let e=function(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(t);return n.cloneElement(t,{...function(e,r){let t={...r};for(let n in r){let i=e[n],s=r[n];/^on[A-Z]/.test(n)?i&&s?t[n]=(...e)=>{s(...e),i(...e)}:i&&(t[n]=i):"style"===n?t[n]={...i,...s}:"className"===n&&(t[n]=[i,s].filter(Boolean).join(" "))}return{...e,...t}}(s,t.props),ref:r?(0,i.t)(r,e):e})}return n.Children.count(t)>1?n.Children.only(null):null});l.displayName="SlotClone";var d=({children:e})=>(0,s.jsx)(s.Fragment,{children:e});function o(e){return n.isValidElement(e)&&e.type===d}},63949:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(29510).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},69320:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(29510).A)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},78863:(e,r,t)=>{t.r(r),t.d(r,{EditPdfTool:()=>j});var n=t(58321),i=t(63949),s=t(62740),a=t(32171),l=t(46762),d=t(80498),o=t(40919),c=t(28844),u=t(42815),m=t(39349),x=t(4910),h=t(85371),f=t(84245),p=t(50706);let g=new t.U(t(27280)).href,b=e=>{if(!Number.isFinite(e)||e<=0)return"0 B";let r=["B","KB","MB","GB"],t=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1),n=e/Math.pow(1024,t);return"".concat(n.toFixed(n>=10?0:1)," ").concat(r[t])},v=e=>e.errors.some(e=>"file-too-large"===e.code)?"Die PDF ist gr\xf6\xdfer als ".concat(b(0x1900000),"."):e.errors.some(e=>"too-many-files"===e.code)?"Bitte w\xe4hlen Sie nur eine PDF-Datei aus.":e.errors.some(e=>"file-invalid-type"===e.code)?"Dieses Format wird nicht unterst\xfctzt. W\xe4hlen Sie eine PDF-Datei aus.":"Die Datei konnte nicht hinzugef\xfcgt werden.",y=(e,r)=>new Promise((t,n)=>{let i=Date.now(),s=()=>{var a,l;if(!r()||Array.from(null!==(l=null===(a=e.shadowRoot)||void 0===a?void 0:a.querySelectorAll("img"))&&void 0!==l?l:[]).some(e=>{let r=e.getBoundingClientRect();
1return e.complete&&e.naturalWidth>0&&r.width>0&&r.height>0})){t();return}if(Date.now()-i>=6e4){n(Error("Der PDF-Editor konnte nicht vollst\xe4ndig geladen werden. Pr\xfcfen Sie Ihre Verbindung und versuchen Sie es erneut."));return}window.setTimeout(s,120)};s()});function j(){let e=(0,m.useRef)(null),r=(0,m.useRef)(null),j=(0,m.useRef)(null),w=(0,m.useRef)(0),[k,N]=(0,m.useState)(null),[D,z]=(0,m.useState)("idle"),[A,E]=(0,m.useState)(0),[F,S]=(0,m.useState)(0),[C,P]=(0,m.useState)(null),[B,M]=(0,m.useState)(null),R=(0,m.useCallback)(()=>{var t;r.current&&(URL.revokeObjectURL(r.current),r.current=null),j.current=null,null===(t=e.current)||void 0===t||t.replaceChildren()},[]),V=(0,m.useCallback)(async n=>{let i=++w.current,s=()=>w.current===i;R(),z("loading"),E(0),P(null);try{let i,a=new Uint8Array(await n.slice(0,5).arrayBuffer()),l=new TextDecoder("ascii").decode(a);if("%PDF-"!==l)throw Error("Die Datei besitzt keine g\xfcltige PDF-Struktur. Exportieren Sie sie erneut als PDF und versuchen Sie es noch einmal.");let d=await n.arrayBuffer(),{PDFDocument:o}=await t.e(7195).then(t.bind(t,27195));try{i=await o.load(d,{throwOnInvalidObject:!0})}catch(r){let e=r instanceof Error?r.message:"";if(/encrypt|password/i.test(e))throw Error("Diese PDF ist passwortgesch\xfctzt. Entfernen Sie zuerst den Schutz und w\xe4hlen Sie die Datei anschlie\xdfend erneut aus.");throw Error("Die PDF ist besch\xe4digt oder unvollst\xe4ndig. \xd6ffnen und exportieren Sie sie erneut, bevor Sie sie bearbeiten.")}if(!s())return;if(!e.current)throw Error("Der Editorbereich ist noch nicht verf\xfcgbar. Versuchen Sie es erneut.");let c=URL.createObjectURL(n);r.current=c;let{default:u}=await Promise.all([t.e(4668),t.e(4802)]).then(t.bind(t,44802));if(!s()){URL.revokeObjectURL(c),r.current===c&&(r.current=null);return}let m=u.init({type:"container",target:e.current,src:c,worker:!1,wasmUrl:g});if(!m)throw Error("Der PDF-Editor konnte nicht gestartet werden.");if(j.current=m,await y(m,s),!s())return;E(i.getPageCount()),z("ready")}catch(e){if(!s())return;R(),z("error"),P(e instanceof Error&&e.message?e.message:"Die PDF konnte nicht ge\xf6ffnet werden. Versuchen Sie es erneut.")}},[R]);(0,m.useEffect)(()=>{k&&V(k)},[k,F,V]),(0,m.useEffect)(()=>()=>{w.current+=1,R()},[R]);let O=(0,m.useCallback)(e=>{let r=e[0];M(r?v(r):"Die Datei konnte nicht hinzugef\xfcgt werden.")},[]),{getRootProps:U,getInputProps:W,isDragActive:$,open:L}=(0,x.VB)({accept:{"application/pdf":[".pdf"]},disabled:"loading"===D,maxFiles:1,maxSize:0x1900000,multiple:!1,noClick:!0,noKeyboard:!0,onDropAccepted:e=>{let r=e[0];r&&(M(null),P(null),N(r))},onDropRejected:O}),_=(0,m.useCallback)(()=>{w.current+=1,R(),N(null),z("idle"),E(0),P(null),M(null)},[R]);return(0,n.jsx)(h.Cf,{title:"PDF bearbeiten",description:"F\xfcgen Sie Textfelder, Markierungen, Zeichnungen, Formen, Bilder und Kommentare hinzu. Die Datei bleibt in Ihrem Browser.",className:"bg-transparent",children:(0,n.jsxs)("div",{className:"space-y-5","data-testid":"edit-pdf-tool",children:[(0,n.jsx)("input",{...W({id:"edit-pdf-file"}),"aria-hidden":"true","data-testid":"edit-pdf-file-input"}),B?(0,n.jsxs)("div",{className:"flex gap-3 border border-destructive/25 bg-destructive/5 p-4",role:"alert","data-testid":"edit-pdf-selection-error",children:[(0,n.jsx)(i.A,{className:"mt-0.5 size-5 shrink-0 text-destructive","aria-hidden":"true"}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"text-sm font-semibold text-foreground",children:"Datei nicht \xfcbernommen"}),(0,n.jsx)("p",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:B})]})]}):null,k?(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{className:"grid gap-4 border border-border bg-muted/25 p-4 sm:grid-cols-[1fr_auto] sm:items-center",children:[(0,n.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,n.jsx)("span",{className:"flex size-11 shrink-0 items-center justify-center rounded-lg bg-primary text-[10px] font-bold tracking-wide text-primary-foreground",children:"PDF"}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"truncate text-sm font-semibold text-foreground",title:k.name,children:k.name}),(0,n.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[b(k.size),A>
10?" \xb7 ".concat(A," Seite").concat(1===A?"":"n"):""]})]})]}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 sm:justify-end",children:[(0,n.jsxs)(f.$,{type:"button",variant:"outline",className:"min-h-11 active:scale-[0.98]",disabled:"loading"===D,onClick:L,children:[(0,n.jsx)(d.A,{className:"size-4","aria-hidden":"true"}),"Datei ersetzen"]}),(0,n.jsxs)(f.$,{type:"button",variant:"ghost",className:"min-h-11 text-muted-foreground [@media(hover:hover)]:hover:text-destructive",onClick:_,children:[(0,n.jsx)(o.A,{className:"size-4","aria-hidden":"true"}),"Entfernen"]})]})]}),(0,n.jsxs)("div",{className:"flex gap-3 border border-amber-500/30 bg-amber-500/10 p-4 text-sm leading-6 text-foreground",children:[(0,n.jsx)(i.A,{className:"mt-0.5 size-5 shrink-0 text-amber-700","aria-hidden":"true"}),(0,n.jsx)("p",{children:"Sie k\xf6nnen neue Inhalte und Anmerkungen hinzuf\xfcgen. Vorhandenen PDF-Text wie in Word ersetzen und gescannte Seiten per OCR erkennen kann diese Version nicht. Die integrierten Werkzeugnamen sind derzeit englisch beschriftet."})]}),C?(0,n.jsxs)("div",{className:"flex flex-col gap-4 border border-destructive/25 bg-destructive/5 p-4 sm:flex-row sm:items-start sm:justify-between",role:"alert","data-testid":"edit-pdf-load-error",children:[(0,n.jsxs)("div",{className:"flex min-w-0 gap-3",children:[(0,n.jsx)(i.A,{className:"mt-0.5 size-5 shrink-0 text-destructive","aria-hidden":"true"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-semibold text-foreground",children:"PDF nicht ge\xf6ffnet"}),(0,n.jsx)("p",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:C})]})]}),(0,n.jsxs)(f.$,{type:"button",variant:"outline",className:"min-h-11 shrink-0 active:scale-[0.98]",onClick:()=>S(e=>e+1),children:[(0,n.jsx)(d.A,{className:"size-4","aria-hidden":"true"}),"Erneut versuchen"]})]}):null,(0,n.jsxs)("div",{className:"relative overflow-hidden border border-border bg-card p-2 shadow-sm sm:p-3","data-testid":"edit-pdf-editor-shell",children:[(0,n.jsx)("div",{ref:e,className:"h-[70vh] min-h-[540px] max-h-[860px] w-full overflow-hidden bg-background [&>embedpdf-container]:block [&>embedpdf-container]:h-full [&>embedpdf-container]:w-full sm:min-h-[640px] lg:min-h-[720px]","data-testid":"embedpdf-editor-host"}),"loading"===D?(0,n.jsxs)("div",{className:"absolute inset-2 flex flex-col items-center justify-center bg-background/95 sm:inset-3",role:"status","aria-live":"polite","data-testid":"edit-pdf-loading",children:[(0,n.jsx)(c.A,{className:"size-7 animate-spin text-primary motion-reduce:animate-none","aria-hidden":"true"}),(0,n.jsx)("p",{className:"mt-3 text-sm font-semibold text-foreground",children:"PDF-Editor wird geladen"}),(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:"Datei und PDFium-Engine werden lokal im Browser vorbereitet."})]}):null,"ready"===D?(0,n.jsx)("p",{className:"sr-only",role:"status","data-testid":"edit-pdf-ready",children:"PDF-Editor bereit"}):null]}),"ready"===D?(0,n.jsxs)("div",{className:"flex items-start gap-3 border border-emerald-600/25 bg-emerald-500/5 p-4 text-sm leading-6",children:[(0,n.jsx)(u.A,{className:"mt-0.5 size-5 shrink-0 text-emerald-600","aria-hidden":"true"}),(0,n.jsx)("p",{className:"text-muted-foreground",children:"Der Editor ist bereit. Verwenden Sie das Download-Symbol im Editor, um eine bearbeitete Kopie zu speichern. Mit âEntfernenâ l\xf6schen Sie die lokale Arbeitssitzung aus dieser Seite."})]}):null]}):(0,n.jsxs)("div",{...U({"aria-label":"Ablagefl\xe4che f\xfcr eine PDF-Datei"}),className:(0,p.cn)("flex min-h-64 flex-col items-center justify-center border-2 border-dashed px-5 py-9 text-center transition-[border-color,background-color] duration-200",$?"border-primary bg-primary/5":"border-border bg-background [@media(hover:hover)]:hover:border-primary/45 [@media(hover:hover)]:hover:bg-primary/[0.025]"),"data-testid":"edit-pdf-dropzone",children:[(0,n.jsx)("span",{className:"flex size-14 items-center justify-center rounded-xl bg-primary/10 text-primary ring-1 ring-primary/15",children:(0,n.jsx)(s.A,{className:"size-7",strokeWidth:1.7,"aria-hidden":"true"})}),(0,n.jsx)("h2",{className:"mt-4 text-balance text-xl font-semibold tracking-[-0.012em] text-foreground",children:$?"PDF hier ablegen":"PDF ausw\xe4hlen oder hierher ziehen"}),(0,n.jsxs)("p",{className:"mt-2 max-w-xl text-pretty text-sm leading-6 text-muted-foreground",children:["Eine PDF bis ",b(0x1900000),". Der Editor wird erst nach der Auswahl geladen."]}),(0,n.jsxs)(f.$,{type:"button",size:"lg",className:"mt-5 min-h-11 px-6 transition-transform active:scale-[0.98]",onClick:e=>{e.preventDefault(),e.stopPropagation(),L()},children:[(0,n.jsx)(a.A,{className:"size-4","aria-hidden":"true"}),"PDF ausw\xe4hlen"]}),(0,n.jsxs)("p",{className:"mt-3 inline-flex items-center gap-2 text-xs text-muted-foreground",children:[(0,n.jsx)(l.A,{className:"size-4 text-emerald-600","aria-hidden":"true"}),"Kein Datei-Upload, keine Anmeldung, lokal im Browser"]})]})]})})}},80498:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(29510).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},84245:(e,r,t)=>{t.d(r,{$:()=>d,r:()=>l});var n=t(58321);t(39349);var i=t(61500),s=t(85820),a=t(50706);let l=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function d(e){let{className:r,variant:t,size:s,asChild:d=!1,...o}=e,c=d?i.DX:"button";return(0,n.jsx)(c,{"data-slot":"button",className:(0,a.cn)(l({variant:t,size:s,className:r})),...o})}},85371:(e,r,t)=>{t.d(r,{$c:()=>m,Cf:()=>f,u3:()=>h});var n=t(58321);t(39349);var i=t(39808),s=t(28844),a=t(69320),l=t(61187),d=t(40919),o=t(84245),c=t(29574),u=t(50706);function m(e){let{items:r,onRemove:t,showSize:m=!0,showStatus:x=!0,disabled:h=!1,className:f}=e;if(!r.length)return null;let p=e=>{if(0===e)return"0 B";let r=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,r)).toFixed(1))+" "+["B","KB","MB","GB"][r]},g=e=>
1{switch(e){case"pending":return(0,n.jsx)(i.A,{className:"size-4 text-muted-foreground"});case"processing":return(0,n.jsx)(s.A,{className:"size-4 text-primary animate-spin"});case"done":return(0,n.jsx)(a.A,{className:"size-4 text-green-600"});case"error":return(0,n.jsx)(l.A,{className:"size-4 text-destructive"});default:return null}},b=e=>{switch(e){case"done":return"bg-green-50 text-green-700 border-green-200";case"error":return"bg-red-50 text-red-700 border-red-200";case"processing":return"border-primary/20 bg-primary/10 text-primary";default:return"bg-muted text-muted-foreground"}};return(0,n.jsx)("div",{className:(0,u.cn)("space-y-3",f),children:r.map(e=>(0,n.jsxs)("div",{className:(0,u.cn)("flex items-center justify-between rounded-lg border bg-card p-4 shadow-sm",h&&"opacity-50"),children:[(0,n.jsxs)("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[x&&g(e.status),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("p",{className:"font-medium text-sm truncate",title:e.file.name,children:e.file.name}),(0,n.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[m&&(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:p(e.file.size)}),e.resultSize&&e.resultSize!==e.file.size&&(0,n.jsxs)("span",{className:"text-xs text-muted-foreground",children:["â ",p(e.resultSize)]}),x&&(0,n.jsxs)(c.E,{variant:"outline",className:(0,u.cn)("text-xs",b(e.status)),children:["pending"===e.status&&"Wartend","processing"===e.status&&"Verarbeitungâ¦","done"===e.status&&"Fertig","error"===e.status&&"Fehler"]})]}),e.message&&(0,n.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.message})]})]}),(0,n.jsx)(o.$,{type:"button",variant:"ghost",size:"icon",className:"text-muted-foreground hover:text-destructive shrink-0",onClick:()=>t(e.id),disabled:h,"aria-label":"Entferne ".concat(e.file.name),children:(0,n.jsx)(d.A,{className:"size-4"})})]},e.id))})}var x=t(2487);function h(e){let{getRootProps:r,getInputProps:t,isDragActive:i,open:s,title:a,description:l,buttonText:d="Dateien ausw\xe4hlen",disabled:c=!1,className:m}=e;return(0,n.jsxs)("div",{...r(),className:(0,u.cn)("flex flex-col items-center justify-center gap-4 roun
1ded-3xl border-2 border-dashed border-border/80 bg-muted/30 px-6 py-16 text-center transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",i&&"border-primary bg-primary/5",c&&"opacity-50 cursor-not-allowed",m),children:[(0,n.jsx)("input",{...t(),disabled:c}),(0,n.jsx)(x.A,{className:"size-10 text-primary","aria-hidden":"true"}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:a}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:l})]}),(0,n.jsx)(o.$,{type:"button",variant:"default",onClick:e=>{e.preventDefault(),e.stopPropagation(),s()},disabled:c,children:d})]})}function f(e){let{title:r,description:t,children:i,className:s}=e;return(0,n.jsx)("section",{id:"tool","data-tool-wrapper":!0,className:(0,u.cn)("border-b border-border bg-background",s),children:(0,n.jsxs)("div",{"data-tool-wrapper-body":!0,className:"mx-auto flex w-full max-w-6xl flex-col gap-8 px-6 py-16 md:px-8 lg:py-20",children:[(0,n.jsxs)("div",{"data-tool-wrapper-heading":!0,className:"max-w-2xl",children:[(0,n.jsx)("h2",{className:"text-3xl font-semibold text-foreground md:text-4xl",children:r}),(0,n.jsx)("p",{className:"mt-3 text-lg leading-relaxed text-muted-foreground",children:t})]}),i]})})}},85820:(e,r,t)=>{t.d(r,{F:()=>a});var n=t(61898);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=n.$,a=(e,r)=>t=>{var n;if((null==r?void 0:r.variants)==null)return s(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:a,defaultVariants:l}=r,d=Object.keys(a).map(e=>{let r=null==t?void 0:t[e],n=null==l?void 0:l[e];if(null===r)return null;let s=i(r)||i(n);return a[e][s]}),o=t&&Object.entries(t).reduce((e,r)=>{let[t,n]=r;return void 0===n||(e[t]=n),e},{});return s(e,d,null==r?void 0:null===(n=r.compoundVariants)||void 0===n?void 0:n.reduce((e,r)=>{let{class:t,className:n,...i}=r;return Object.entries(i).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...l,...o}[r]):({...l,...o})[r]===t})?[...e,t,n]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}}}]);
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.