PageSourceSearch

https://localpdf.online/app/assets/index-DSNX9piQ.js

js localpdf.online collected 2026-10-02 01:08:40 UTC 1,782 bytes, 1 lines download raw bytes

1import{j as o}from"./jsx-runtime-0DLF9kdB.js";import{r as a}from"./index-DH-tsESH.js";import{u as g}from"./platform-context-pZZ_Wbof.js";import{L as i}from"./linear-icon-C4MoDyVR.js";function w({inputFiles:t,onStart:m,onBack:d}){const{runtime:l}=g(),[f,h]=a.useState({}),[n,r]=a.useState(t);a.useEffect(()=>{(async()=>{const e={};for(const c of t){const N=await l.vfs.read(c);e[c]=N.getName()}h(e)})()},[t,l.vfs]);const p=s=>{if(s===0)return;const e=[...n];[e[s-1],e[s]]=[e[s],e[s-1]],r(e)},u=s=>{if(s===n.length-1)return;const e=[...n];[e[s+1],e[s]]=[e[s],e[s+1]],r(e)};return o.jsxs("div",{className:"tool-config-root",children:[o.jsx("p",{className:"tool-config-copy",children:"Arrange the files in the order you want them to appear in the merged PDF."}),o.jsx("ul",{className:"tool-config-list",children:n.map((s,e)=>o.jsxs("li",{className:"tool-config-list-item",children:[o.jsx("span",{style:{fontWeight:600,fontSize:"0.84rem"},children:f[s]||"Loading..."}),o.jsxs("div",{style:{display:"flex",gap:"0.34rem"},children:[o.jsx("button",{className:"btn-secondary",onClick:()=>p(e),disabled:e===0,"aria-label":"Move file up",title:"Move file up",children:o.jsxs("span",{className:"btn-inline",children:[o.jsx(i,{name:"chevron-up",className:"linear-icon"}),"Up"]})}),o.jsx("button",{className:"btn-secondary",onClick:()=>u(e),disabled:e===n.length-1,"aria-label":"Move file down",title:"Move file down",children:o.jsxs("span",{className:"btn-inline",children:[o.jsx(i,{name:"chevron-down",className:"linear-icon"}),"Down"]})})]})]},s))}),o.jsxs("div",{className:"tool-config-actions",children:[o.jsx("button",{className:"btn-ghost",onClick:d,children:"Cancel"}),o.jsx("button",{className:"btn-primary",onClick:()=>m({inputIds:n}),children:"Run Merge"})]})]})}export{w as default};

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.