PageSourceSearch

https://dayfiles.com/assets/HomepageToolSearch-CqN8ejBT.js

js dayfiles.com collected 2026-09-24 14:41:19 UTC 8,094 bytes, 1 lines download raw bytes

1import{c as _,a3 as q,r as l,j as a}from"./index-zdiqHW5r.js";import{S as Q}from"./search-BeT45gdJ.js";const B=[["path",{d:"M4.226 20.925A2 2 0 0 0 6 22h12a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.127",key:"wfxp4w"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 11-3 3",key:"1dgrs4"}],["path",{d:"m5 17-3-3h10",key:"1mvvaf"}]],re=_("file-output",B);const K=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],le=_("list-ordered",K);const Y=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],ne=_("lock-open",Y);const U=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],ie=_("split",U);const W=[["path",{d:"M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-6 0c0 2 1 2 1 3.5V13",key:"i9gjdv"}],["path",{d:"M20 15.5a2.5 2.5 0 0 0-2.5-2.5h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z",key:"1vzg3v"}],["path",{d:"M5 22h14",key:"ehvnwv"}]],de=_("stamp",W),G=["edit_pdf","merge","split","minify","lock","unlock","pdf_to_jpg","pdf_to_docx","jpg_to_pdf","fill_forms","e_sign"];function v(s){return s.trim().toLocaleLowerCase()}function J(s){return s.flatMap(c=>c.items.map(t=>({id:t.id,title:t.title,publicPath:t.publicPath,description:t.description,shortDescription:t.shortDe
1scription,category:c.category,searchText:v(`${t.title} ${t.description} ${t.shortDescription} ${(t.searchAliases??[]).join(" ")}`)})))}function X(s,c,t=6){const n=v(c);return n?s.map(o=>{const u=v(o.title),N=v(o.shortDescription),m=v(o.description);let h=Number.POSITIVE_INFINITY;return u.startsWith(n)?h=0:u.includes(n)?h=1:N.includes(n)?h=2:m.includes(n)&&(h=3),{entry:o,rank:h}}).filter(o=>Number.isFinite(o.rank)).sort((o,u)=>o.rank!==u.rank?o.rank-u.rank:o.entry.title.localeCompare(u.entry.title)).slice(0,t).map(o=>o.entry):[]}function Z(s){const c=G.map(t=>s.find(n=>n.id===t)).filter(t=>!!t);return c.length>0?c:s.slice(0,Math.min(s.length,6))}const ee=2600,F=70,te=38;function ae(s){return s.trim().toLocaleLowerCase()}function ce({groups:s,extraEntries:c,t,compact:n=!1,appearance:o="default",nativeColorMode:u="dark"}){const N=q(),m=l.useId(),h=l.useRef(null),[w,I]=l.useState(""),[$,y]=l.useState(!1),[R,g]=l.useState(-1),[A,C]=l.useState(0),[x,T]=l.useState(""),[f,z]=l.useState(!1),k=l.useMemo(()=>[...J(s),...c??[]],[s,c]),S=l.useMemo(()=>Z(k),[k]),p=l.useMemo(()=>X(k,w),[k,w]),M=ae(w),E=$&&M.length>0,P=p.length===0?-1:Math.min(Math.max(R,0),p.length-1),j=P>=0?p[P]:null,D=S.length>1&&!$&&M.length===0,L=!$&&w.length===0,r=o==="android",i=r&&u==="light";l.useEffect(()=>{if(!h.current)return;function e(d){h.current?.contains(d.target)||y(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),l.useEffect(()=>{if(!L)return;const e=S[A]?.title??t("dashboard.toolSearchPlaceholderFallback"),d=window.setTimeout(()=>{if(!f&&x.length<e.length){T(e.slice(0,x.length+1));return}if(D){if(!f&&x.length===e.length){z(!0);return}if(f&&x.length>0){T(e.slice(0,x.length-1));return}z(!1),C(b=>(b+1)%S.length)}},D?!f&&x.length===e.length?ee:f?te:F:F);return()=>{window.clearTimeout(d)}},[f,S,A,D,L,t,x]);function H(e){y(!1),I(""),N(e)}function O(e){if(E){if(e.key==="ArrowDown"){if(e.preventDefault(),p.length===0)return;g(d=>(d+1)%p.length);return}if(e.key==="ArrowUp"){if(e.preventDefault(),p.length===0)return;g(d=>d<=0?p.length-1:d-1);return}if(e.key==="Enter"&&j){e.preventDefault(),H(j.publicPath);return}e.key==="Escape"&&(e.preventDefault(),y(!1),g(-1))}}return a.jsxs("section",{className:r?`rounded-[28px] border ${i?"border-slate-200 bg-white/90 shadow-[0_18px_48px_-28px_rgba(15,23,42,0.18)]":"border-white/8 bg-[#23222c] shadow-[0_18px_48px_-24px_rgba(0,0,0,0.65)]"} ${n?"p-3":"mb-5 px-4 py-3"}`:`rounded-3xl border border-slate-200 bg-white/95 shadow-sm ring-1 ring-slate-200 ${n?"p-3 md:p-4":"mb-5 px-4 py-[6px] md:px-5 md:py-[10px]"}`,"data-testid":"homepage-tool-search",children:[n?null:a.jsxs("div",{className:"space-y-2",children:[a.jsx("p",{className:`text-xs font-semibold uppercase tracking-[0.18em] ${r?i?"text-slate-500":"text-white/55":"text-emerald-700"}`,children:t("dashboard.toolSearchLabel")}),a.jsx("p",{className:`text-sm ${r?i?"text-slate-600":"text-white/65":"text-slate-600"}`,children:t("dashboard.toolSearchHint")})]}),a.jsxs("div",{className:`relative ${n?"":"mt-4"}`,ref:h,children:[a.jsx(Q,{"aria-hidden":"true",className:`pointer-events-none absolute left-4 top-1/2 z-10 -translate-y-1/2 ${r?i?"text-slate-400":"text-white/45":"text-slate-400"}`,size:18}),a.jsx("input",{"aria-activedescendant":j?`${m}-${j.id}`:void 0,"aria-autocomplete":"list","aria-controls":m,"aria-expanded":E,"aria-label":t("dashboard.toolSearchInputLabel"),className:`w-full rounded-2xl px-12 py-3 text-base outline-none transition placeholder:text-transparent ${r?i?"border border-slate-200 bg-white text-slate-950 shadow-inner shadow-slate-200/40 focus:ring-4 focus:ring-slate-200":"border border-white/8 bg-[#15151d] text-white focus:ring-4 focus:ring-white/10":"bg-white text-slate-900 focus:ring-4 focus:ring-emerald-100"}`,"data-testid":"homepage-tool-search-input",onBlur:e=>{h.current?.contains(e.relatedTarget)||y(!1)},onChange:e=>{I(e.target.value),g(0)},onFocus:()=>{y(!0),M.length>0&&g(0)},onKeyDown:O,placeholder:t("dashboard.toolSearchPlaceholderFallback"),role:"combobox",type:"search",value:w}),L?a.jsx("div",{"aria-hidden":"true",className:`pointer-events-none absolute inset-y-0 left-12 right-4 flex items-center text-base ${r?i?"text-slate-400":"text-white/35":"text-slate-400"}`,"data-testid":"homepage-tool-search-placeholder",children:a.jsxs("span",{children:[x,a.jsx("span",{className:`ml-0.5 inline-block h-5 w-px animate-pulse align-middle ${r?i?"bg-slate-400":"bg-white/40":"bg-slate-400"}`})]})}):null,E?a.jsx("div",{className:`absolute left-0 right-0 top-[calc(100%+0.75rem)] z-20 overflow-hidden rounded-2xl ${r?i?"border border-slate-200 bg-white shadow-[0_30px_60px_-34px_rgba(15,23,42,0.32)]":"border border-white/10 bg-[#191922] shadow-[0_30px_60px_-30px_rgba(0,0,0,0.85)]":"border border-slate-200 bg-white shadow-xl"}`,"data-testid":"homepage-tool-search-dropdown",children:p.length>
10?a.jsx("ul",{"aria-label":t("dashboard.toolSearchResultsLabel"),className:"max-h-96 overflow-y-auto p-2",id:m,role:"listbox",children:p.map((e,d)=>{const b=d===P;return a.jsx("li",{role:"presentation",children:a.jsxs("button",{className:`flex w-full cursor-pointer items-start justify-between gap-3 rounded-xl px-4 py-3 text-left transition ${r?i?b?"bg-slate-100 text-slate-950":"text-slate-800 hover:bg-slate-50":b?"bg-white/8 text-white":"text-white/85 hover:bg-white/5":b?"bg-emerald-50 text-emerald-900":"text-slate-800 hover:bg-slate-50"}`,"data-testid":`homepage-tool-search-option-${e.id}`,id:`${m}-${e.id}`,onMouseDown:V=>{V.preventDefault(),H(e.publicPath)},onMouseEnter:()=>g(d),role:"option",tabIndex:-1,type:"button",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsxs("p",{className:"font-semibold",children:[e.title,r&&e.id==="ocr_pdf"&&a.jsx("span",{className:"ml-2 text-xs text-amber-600",children:"Premium"})]}),a.jsx("p",{className:`mt-1 text-sm ${r?i?"text-slate-600":b?"text-white/70":"text-white/55":"text-slate-600"}`,children:e.shortDescription})]}),r?null:a.jsx("span",{className:"mt-1 hidden shrink-0 rounded-full bg-slate-100 px-2 py-1 text-xs font-medium text-slate-600 sm:inline-flex",children:e.publicPath.replace(/^\//,"")})]})},e.id)})}):a.jsx("div",{className:`px-4 py-4 text-sm ${r?i?"text-slate-600":"text-white/55":"text-slate-600"}`,"data-testid":"homepage-tool-search-empty",children:t("dashboard.toolSearchEmpty")})}):null]})]})}export{re as F,ce as H,le as L,de as S,ne as a,ie as b};

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.