1import{d as Y,f as j,a as k,s as C}from"../chunks/DsBRGbQs.js";import{p as S,k as O,l as T,m as y,s,t as $,n as t,a as A,c as m,o as z,r as o,f as H}from"../chunks/D4bHExzp.js";import{e as K,f as U,r as N,P as Q,a as b,b as V,t as W,q,c as X,d as Z}from"../chunks/Bvuhd0Bs.js";import{b as B}from"../chunks/DDQneAex.js";import{U as tt}from"../chunks/Cfu06bvV.js";const et=(x,n,i,a)=>{[...t(n)].map(async(d,f)=>{d.to=".jpeg";const r=await d.convert(t(i));r&&(t(a).set(d.id,URL.createObjectURL(r.file)),z(a,new Map([...t(a)]),!0))})};var at=(x,n)=>{t(n)?.download()},lt=j('<div class="relative rounded-xl flex-grow overflow-hidden flex items-center justify-center"><img class="h-full relative"/> <img class="h-full absolute top-0 left-0 w-full object-cover blur-2xl -z-10"/></div> <div class="flex-shrink-0 flex items-center gap-4 w-full"><button class="btn bg-accent text-black rounded-2xl text-2xl w-full mx-auto">Download</button> <button class="btn border-accent-red border-2 bg-transparent text-black dynadark:text-white rounded-2xl text-2xl w-full mx-auto">Delete</button></div>',1),st=j('<div class="max-w-full w-full h-96"><!></div>'),rt=j(`<div class="mx-auto w-full max-w-[778px] flex flex-col gap-8"><h1 class="text-5xl text-center">SECRET JPEGIFY!!!</h1> <p class="text-muted text-center -mt-4 font-normal italic">(shh... don't tell anyone!)</p> <!> <input type="range" min="1" max="100" step="1" class="w-full h-2 bg-panel rounded-lg appearance-none cursor-pointer"/> <button class="btn bg-accent text-black rounded-2xl text-2xl w-full mx-auto"> </button> <div class="flex flex-wrap flex-row justify-center gap-4"></div></div>`);function pt(x,n){S(n,!0);const i=y(()=>U.files.filter(l=>l.converters.map(e=>e.name).includes("libvips")));let a=O(T(new Map)),c=O(10);const d=y(()=>100-t(c)),f=y(()=>t(i).map(l=>l.processing).includes(!0));var r=rt(),P=s(m(r),4);tt(P,{class:"w-full h-64",jpegify:!0});var v=s(P,2);N(v);var u=s(v,2);u.__click=[et,i,d,a];var D=m(u);o(u);var E=s(u,2);K(E,31,()=>t(i),l=>l.id,(l,e)=>{var p=st(),F=m(p);Q(F,{class:"w-full h-full flex flex-col gap-4 relative z-0",children:(G,ot)=>{var R=lt(),g=H(R),_=m(g),I=s(_,2);o(g);var L=s(g,2),w=m(L);w.__click=[at,e];var J=s(w,2);J.__click=()=>{URL.revokeObjectURL(t(a).get(t(e).id)||""),t(a).delete(t(e).id),U.files=U.files.filter(h=>h.id!==t(e).id)},o(L),$((h,M)=>{b(_,"src",h),b(_,"alt",t(e).name),b(I,"src",M),b(I,"alt",t(e).name),w.disabled=!t(e).result},[()=>t(a).get(t(e).id)||t(e).result?.blobUrl||t(e).blobUrl,()=>t(a).get(t(e).id)||t(e).result?.blobUrl||t(e).blobUrl]),k(G,R)}}),o(p),V(p,()=>Z,()=>({duration:400,easing:q})),W(3,p,()=>X,()=>({duration:400,amount:8,easing:q})),k(l,p)}),o(E),o(r),$(()=>{v.disabled=t(f),u.disabled=t(f),C(D,`JPEGIFY ${t(c)??""}%!!!`)}),B(v,()=>t(c),l=>z(c,l)),k(x,r),A()}Y(["click"]);export{pt as component};
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.