PageSourceSearch

https://www.alleba.com/assets/routes-CX8ME46p.js

js alleba.com collected 2026-10-02 02:36:53 UTC 2,780 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-Biaal4sZ.js";import{t as n}from"./link-C4uCqMsc.js";import{t as r}from"./jsx-runtime-By8HlURe.js";import{t as i}from"./useNavigate-D5m1_1sV.js";import{t as a}from"./search-gisWYDL1.js";import{Q as o,ct as s}from"./index-D1jmmC4H.js";var c=e(t()),l=r();function u(){let e=i(),[t,r]=(0,c.useState)(`web`),[u,d]=(0,c.useState)(``);function f(n){n.preventDefault();let r=u.trim();r&&e(t===`web`?{to:`/dir.html`,search:{q:r}}:{to:`/shops`,search:{q:r,tab:`products`}})}return(0,l.jsxs)(`main`,{className:`mx-auto flex min-h-[70vh] max-w-2xl flex-col items-center px-4 pb-20 pt-16 sm:pt-24`,children:[(0,l.jsx)(o,{className:`text-6xl sm:text-7xl`}),(0,l.jsx)(`h1`,{className:`mt-3 text-center text-sm font-medium tracking-wide text-muted-foreground sm:text-base`,children:`Philippine search engine and Filipino web directory`}),(0,l.jsx)(`div`,{className:`mt-8 flex items-center gap-1 rounded-full border border-border p-1`,role:`tablist`,"aria-label":`What to search`,children:[[`web`,`Web`],[`shops`,`Shops`]].map(([e,n])=>(0,l.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t===e,onClick:()=>r(e),className:`label-mono rounded-full px-5 py-1.5 transition-colors ${t===e?`bg-primary text-primary-foreground`:`text-muted-foreground hover:text-foreground`}`,children:n},e))}),(0,l.jsx)(`form`,{onSubmit:f,className:`mt-5 w-full`,children:(0,l.jsxs)(`div`,{className:`relative`,children:[(0,l.jsx)(a,{className:`pointer-events-none absolute left-4 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,l.jsx)(`input`,{value:u,onChange:e=>d(e.target.value),autoComplete:`off`,placeholder:t===`web`?`Search Filipino websites…`:`Search shops and products…`,"aria-label":t===`web`?`Search Filipino websites`:`Search shops and products`,className:`h-14 w-full rounded-full border-2 border-border bg-card pl-11 pr-28 text-base shadow-sm outline-none transition-colors focus:border-primary`}),(0,l.jsx)(s,{type:`submit`,className:`absolute right-2 top-1/2 h-10 -translate-y-1/2 rounded-full px-5`,children:`Search`})]})}),(0,l.jsxs)(`nav`,{className:`mt-6 flex flex-wrap items-center justify-center gap-x-4 gap-y-2 text-sm`,children:[(0,l.jsx)(n,{to:`/dir.html`,className:`text-muted-foreground hover:text-primary hover:underline`,children:`Browse the directory`}),(0,l.jsx)(`span`,{className:`text-border`,"aria-hidden":!0,children:`·`}),(0,l.jsx)(n,{to:`/shops`,className:`text-muted-foreground hover:text-primary hover:underline`,children:`Browse shops`}),(0,l.jsx)(`span`,{className:`text-border`,"aria-hidden":!0,children:`·`}),(0,l.jsx)(n,{to:`/sell`,className:`text-muted-foreground hover:text-primary hover:underline`,children:`Sell on Alleba`})]})]})}export{u 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.