PageSourceSearch

https://www.clipsi.app/assets/_code-BQMI85A7.js

js clipsi.app collected 2026-10-09 17:55:50 UTC 19,372 bytes, 1 lines download raw bytes

1import{aT as l,D as H,E as G,r as m,z as K,s as W,x as U,j as e,aU as X,Q as Z,h as b,aV as q,aW as Y,y,f as R,aM as J,aN as ee,aO as se,aX as ae,aY as re,C as te,aZ as ie,a_ as le,a$ as ne,b0 as ce,b1 as S,b2 as oe,p as x,b3 as de,aD as ue,i as xe,k as he,l as me,m as pe,n as ge,o as fe,b4 as je,b5 as P,b6 as z,b7 as T,b8 as be,v as ve,b9 as Ne,ba as ye,bb as we,bc as Se,bd as Ce,be as De,bf as ke,bg as _e,bh as Le,aL as D,bi as Re,q as C,bj as F,bk as Pe,bl as ze,bm as M,bn as _,bo as Te,bp as Fe,bq as Ae,br as Qe,a as Ee,aG as Ie,bs as Oe}from"./index-C7CTkpHX.js";import{B as Be}from"./back-button-BmRrRffY.js";import{H as Ge,B as qe,S as Me}from"./sidebar-lda-mH9Tp1Qf.js";import{P as Ve}from"./page-header-tC89hid0.js";import{P as $e}from"./post-list-BSNGJ_of.js";import{C as A}from"./cart-offline-CR_42e0z.js";import{N as Q}from"./popup-CUWT47HI.js";import{R as He,a as E}from"./radio-group-C_Kn5L7O.js";import{S as Ke}from"./sidebar-1Z0sgU0l.js";import{T as We,a as Ue,b as I,c as O}from"./tabs-CzsX_VLU.js";import{F as Xe}from"./funnel-x-Dl6KHgfU.js";import{D as B}from"./dollar-sign-DLFLbg92.js";import"./bottom-bar-CcjaYY_p.js";import"./useLocation-CE-qbiXm.js";import"./sidebar-KG8OvpMN.js";import"./help-and-support-AKHlP8y5.js";import"./report-issue-DImUu3re.js";import"./settings-BUFbtRcs.js";
1import"./creator-0cM7DwMG.js";import"./sheet-Ch3QsWAv.js";import"./shopping-cart-Cl211IXQ.js";import"./ellipsis-DsB7bdPq.js";const V="aliexpress";function Fs(){const a=l.useNavigate(),s=l.useParams().code,i=l.useSearch().page||"galleria",r=H(h=>h.isHeaderOpen),n=G({queryKey:["affiliate_code_verify",s],queryFn:async()=>(await R.post("/auth/api/users/verifiy-affiliate-code/",{affiliate_code:s}),!0),retry:!1,refetchOnMount:!1,refetchOnReconnect:!1});return m.useLayoutEffect(()=>{n.data?localStorage.setItem("__affiliate_code",s):n.error&&(K.error(W(n.error)||"Invalid affiliate code."),a({to:"/login"}))},[n.data,n.error]),m.useEffect(()=>{(i==="profile"||i==="notifications")&&U()},[i]),e.jsxs(Ke,{children:[e.jsx(X,{}),e.jsx(Ge,{}),e.jsx(qe,{}),e.jsx(Me,{}),e.jsx("div",{className:b(r?"pt-16":"pt-0","md:pt-16 transition-all flex flex-1"),children:e.jsxs(Z,{children:[i==="galleria"&&e.jsx(ss,{}),i==="feed"&&e.jsx(es,{}),i==="notifications"&&e.jsx(Ye,{}),i==="profile"&&e.jsx(Ze,{})]})})]})}const Ze=()=>e.jsxs("div",{className:"p-4 sm:p-8 pt-16 md:pt-6 w-full",children:[e.jsxs("div",{className:"flex gap-4 items-end justify-between w-full max-w-100",children:[e.jsx("div",{className:"grid gap-4",children:e.jsx("div",{className:"relative w-fit",children:e.jsxs(J,{className:"size-20 sm:size-28 shadow-md",children:[e.jsx(ee,{src:"/icons/users.png",alt:"user"}),e.jsx(se,{children:e.jsx("img",{src:"/user.svg",alt:""})})]})})}),e.jsx("div",{className:"grid gap-4 grid-cols-3",children:[{title:"Followers",value:0},{title:"Following",value:0},{title:"Links",value:0}].map(a=>e.jsxs("div",{className:"p-2 grid gap-4 text-center",children:[e.jsx("span",{className:"text-xl font-bold",children:a.value}),e.jsx("span",{className:"text-xs",children:a.title})]},a.title))})]}),e.jsx("div",{className:"mt-4 bg-black font-bold text-xs w-fit text-white px-3 py-1 rounded-full",children:"Category"}),e.jsx("div",{className:"mt-2 font-bold text-sm",children:"@username"}),e.jsx("p",{className:"text-sm text-neutral-700 md:max-w-100"})]}),Ye=()=>e.jsxs("div",{className:"w-full grid grid-rows-[auto_1fr]",children:[e.jsx(Ve,{header:"Notifications",fallback:{to:"."}}),e.jsx("div",{className:"bg-gray-100 p-4",children:e.jsx("div",{className:"md:w-[80%] mx-auto bg-white py-4 shadow rounded-lg overflow-hidden",children:e.jsx(Je,{})})})]}),Je=()=>e.jsxs(e.Fragment,{children:[e.jsx(Q,{label:"New"}),e.jsx("div",{className:"p-4 text-sm",children:"No notifications!"}),e.jsx(Q,{label:"Earlier"}),e.jsx("div",{className:"p-4 text-sm",children:"No notifications!"})]}),es=()=>{const s=y({queryKey:["lda-feed"],queryFn:async()=>(await R.get("/feed/api/feed/lda-feed/")).data.data}).data;return e.jsx($e,{isFetchingNextPage:!1,lastItemRef:()=>{},posts:s,containerStyle:({isHeaderOpen:i,isMobile:r})=>({height:`calc(100dvh - ${r?i?104:24:64}px)`})})},ss=()=>{const a=l.useNavigate(),s=l.useSearch().tab||"products";return e.jsxs("div",{className:"w-full md:pt-4",children:[e.jsx("div",{className:"md:hidden",children:e.jsxs("div",{className:"p-4 grid grid-cols-[1fr_auto_1fr] md:flex gap-4 items-center bg-neutral-100 md:bg-white",children:[e.jsx(Be,{variant:"secondary",size:"icon",className:"hover:bg-neutral-200",fallback:{to:"/feed"},children:e.jsx(q,{})}),e.jsxs("div",{className:"font-bold text-xl grid truncate w-full place-items-center",children:[e.jsx("span",{children:"Galleria"}),e.jsx(is,{})]}),e.jsx("div",{className:"flex justify-end pr-12",children:e.jsx(A,{})})]})}),e.jsx("div",{className:"h-full p-4 md:p-8",children:e.jsxs(We,{onValueChange:i=>a({search:()=>({tab:i})}),value:s,children:[e.jsxs("div",{className:"hidden md:flex mb-8 items-center justify-between",children:[e.jsx("h1",{className:"text-xl font-bold",children:"Galleria"}),e.jsxs(Ue,{className:"bg-transparent",children:[e.jsx(I,{value:"products",className:"transition-none px-8 py-1 h-auto font-semibold text-lg rounded-l-full data-[state=active]:bg-black data-[state=active]:text-white border border-gray-200 data-[state=active]:border-transparent",children:"Products"}),e.jsx(I,{value:"solutions",className:"transition-none px-8 py-1 h-auto font-semibold text-lg rounded-r-full data-[state=active]:bg-black data-[state=active]:text-white border border-gray-200 data-[state=active]:border-transparent",children:"Solutions"})]}),e.jsx(A,{})]}),e.jsxs(O,{value:"products",children:[e.jsx("div",{className:"justify-center mb-10",children:e.jsx(Y,{text:"Launch Sale"})}),e.jsx($,{}),e.jsx(as,{})]}),e.jsx(O,{value:"solutions",children:e.jsx(ns,{})})]})})]})},as=D(function(){var r;const s=l.useSearch();return!!((r=s.categories)!=null&&r.length)||typeof s.price_from<"u"||!!s.price_to||!!s.search?e.jsx(ls,{}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"my-6 font-bold text-base md:text-xl text-center",children:"Browse it. Buy it. Love it."}),e.jsx(rs,{}),e.jsx("div",{className:"grid gap-4 md:gap-8",children:e.jsx(Re,{})})]})}),rs=D(function(){const s=y(C.galleria.getCategories(V));return e.jsxs("div",{children:[e.jsx("div",{className:"flex items-start gap-4 flex-wrap justify-center mt-8",children:Qe.map(i=>e.jsx(l.Link,{search:r=>({...r,categories:[i.id.toString()]}),children:e.jsx(M,{icon:i.icon,title:i.title})},i.id))}),e.jsx(ts,{categories:s.data})]})}),ts=({categories:a})=>{const s=l.useNavigate(),r=(l.useSearch().categories||[]).at(0);return e.jsx("div",{className:"mt-6 sm:w-[80%] mx-auto",children:e.jsx(Oe,{options:a.map(n=>({label:n.name,value:n.id.toString()})),inputClassName:"bg-black text-white placeholder:text-white",onValueChange:n=>{s({search:h=>({...h,categories:n?[n]:void 0})})},value:r,clearable:!0,allowCreate:!1,placeholder:"All Categories"})})},is=()=>{const a=l.useSearch().tab||"products",s=l.useNavigate(),[i,r]=m.useState(!1),[n,h]=m.useState(a);return m.useEffect(()=>h(a),[a]),e.jsxs(ae,{onOpenChange:r,open:i,children:[e.jsxs(re,{className:"text-base font-normal flex gap-2 items-center",children:[a.slice(0,1).toUpperCase(),a.slice(1),e.jsx(te,{className:"size-3"})]}),e.jsxs(ie,{className:"p-4",children:[e.jsxs(le,{children:[e.jsx(ne,{children:"Galleria"}),e.jsx(ce,{children:"Switch to view products or solutions."})]}),e.jsxs(He,{defaultValue:a,onValueChange:d=>h(d),className:"border-t border-b border-gray-300",children:[e.jsxs(S,{className:"border-b border-gray-300 flex justify-between p-4",children:[e.jsx("span",{className:"text-lg font-semibold",children:"Products"}),e.jsx(E,{value:"products"})]}),e.jsxs(S,{className:"border-b border-gray-300 flex justify-between p-4",children:[e.jsx("span",{className:"text-lg font-semibold",children:"Solutions"}),e.jsx(E,{value:"solutions"})]})]}),e.jsx(oe,{children:e.jsx(x,{onClick:()=>{s({search:{tab:n}}),r(!1)},children:"Apply"})})]})]})},$=()=>{const a=l.useSearch().tab||"products",s=l.useSearch().categories||[],i=l.useSearch().search,r=l.useSearch().price_from||0,n=l.useSearch().price_to||1e3,h=l.useSearch().color,d=l.useNavigate(),[p,g]=m.useState([r,n]),[c,f]=m.useState(h),[t,o]=m.useState(s||[]),v=de(u=>{d({search:N=>({...N,search:u})})},200),j=a==="products"&&(!!(s!=null&&s.length)||!!i),[w,k]=m.useState(!1);return m.useEffect(()=>{s.length===t.length&&!(s!=null&&s.every(u=>t.includes(u)))&&o(s)},[s]),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("form",{className:"flex",onSubmit:u=>{u.preventDefault();const N=u.currentTarget;v(N.search.value)},children:[e.jsx("input",{name:"search",className:"px-4 py-0.5 min-w-0 
1w-full border-l-3 border-l-black outline-none",placeholder:`Search ${a}`,defaultValue:i},`search-input-${i}`),e.jsx(x,{size:"icon",type:"submit",className:"rounded-full",children:e.jsx(ue,{})})]}),a==="products"&&e.jsxs("div",{className:"flex gap-3 items-center",children:[j&&e.jsxs(xe,{open:w,onOpenChange:k,children:[e.jsx(he,{asChild:!0,children:e.jsx(x,{size:"icon",variant:"outline",className:"rounded-full",children:e.jsx(Xe,{className:"fill-emerald-600 stroke-emerald-600"})})}),e.jsxs(me,{className:"p-0",children:[e.jsxs(pe,{className:"p-4",children:[e.jsx(ge,{children:"Filters"}),e.jsx(fe,{className:"sr-only",children:"Product Filters"})]}),e.jsxs("div",{className:"grid gap-4 p-4",children:[e.jsx(je,{categories:t,setCategories:o}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(S,{htmlFor:"price-range-start",children:"Price Range"}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs(P,{children:[e.jsx(z,{id:"price-range-start",placeholder:"0",type:"number",defaultValue:p[0],onChange:u=>{g(N=>[Number(u.target.value)||0,N[1]])}}),e.jsx(T,{children:e.jsx(B,{})})]}),e.jsxs(P,{children:[e.jsx(z,{id:"price-range-end",placeholder:"100",type:"number",defaultValue:p[1],onChange:u=>{g(N=>[N[0],Number(u.target.value)||0])}}),e.jsx(T,{children:e.jsx(B,{})})]})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(S,{children:"Colour"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:be.map(u=>e.jsx("button",{className:b("px-3 py-1 border rounded-full text-sm",(c==null?void 0:c.toLowerCase())===u.toLowerCase()&&"bg-black text-white border-black"),onClick:()=>{f(u)},children:u},`search-filter-color-${u}`))})]})]}),e.jsxs(ve,{className:"p-4",children:[e.jsx(x,{variant:"secondary",onClick:()=>{d({search:u=>({...u,price_from:void 0,price_to:void 0,color:void 0,categories:[]})}),k(!1)},children:"Reset"}),e.jsx(x,{onClick:()=>{k(!1),d({search:u=>({...u,price_from:p[0],price_to:p[1],color:c,categories:t})})},children:"Apply Filters"})]})]})]}),e.jsx(x,{asChild:!0,size:"icon",variant:"outline",className:"rounded-full",children:e.jsx(l.Link,{to:"/marketplace/favourites",children:e.jsx(Ne,{})})}),e.jsxs(ye,{children:[e.jsx(we,{children:e.jsx(x,{size:"icon",variant:"outline",className:"rounded-full",children:e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8.41112 6.657C8.16166 6.657 7.92241 6.7561 7.74601 6.9325C7.56961 7.1089 7.47051 7.34815 7.47051 7.59762V13.2413C7.47051 13.4908 7.56961 13.73 7.74601 13.9064C7.92241 14.0828 8.16166 14.1819 8.41112 14.1819C8.66059 14.1819 8.89984 14.0828 9.07624 13.9064C9.25264 13.73 9.35174 13.4908 9.35174 13.2413V7.59762C9.35174 7.34815 9.25264 7.1089 9.07624 6.9325C8.89984 6.7561 8.66059 6.657 8.41112 6.657ZM8.41112 2.89453C8.17858 2.89453 7.95125 2.96349 7.7579 3.09268C7.56455 3.22188 7.41384 3.40551 7.32485 3.62035C7.23586 3.8352 7.21258 4.07161 7.25794 4.29968C7.30331 4.52776 7.41529 4.73726 7.57973 4.9017C7.74416 5.06613 7.95366 5.17811 8.18174 5.22348C8.40982 5.26885 8.64623 5.24556 8.86107 5.15657C9.07592 5.06758 9.25955 4.91688 9.38874 4.72353C9.51794 4.53017 9.58689 4.30285 9.58689 4.0703C9.58689 3.75847 9.46302 3.45941 9.24252 3.23891C9.02202 3.01841 8.72296 2.89453 8.41112 2.89453Z",fill:"black"})})})}),e.jsxs(Se,{children:[e.jsxs(Ce,{children:[e.jsx(De,{children:"Info"}),e.jsxs(ke,{children:["An extensive range of products are made available to the Clipsi community that represents diverse interests. This is not an endorsement by Clipsi of every product offered.",e.jsx(l.Link,{className:"text-blue-600 block my-2 font-semibold underline",to:"/galleria-terms",children:"Galleria Terms and Conditions"})]})]}),e.jsx(_e,{children:e.jsx(Le,{asChild:!0,children:e.jsx(x,{variant:"secondary",children:"Close"})})})]})]})]})]})},ls=D(function(){var c,f,t,o,v;const s=l.useSearch(),i=l.useNavigate(),[r,n]=m.useState(1),d=y({queryKey:["product-search",...s.categories||[],s.price_from,s.price_to,s.search,r],queryFn:async()=>{var w;return(await R.get(`/galleria/api/galleria/vendors/${V}/products/preview/?${Fe.stringify({categoryId:(w=s.categories)==null?void 0:w.at(0),max_price:s.price_to,min_price:s.price_from,keyword:s.search,page_size:20,page:r})}`)).data}}).data,p=d.data,g=!!((c=d.meta)!=null&&c.page_size&&((f=d.meta)==null?void 0:f.page_size)===((t=d.meta)==null?void 0:t.returned));return e.jsxs("div",{className:"h-full",children:[!!s.search&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex items-center gap-2 px-4 pt-1 mt-4",children:[p.length>0?e.jsxs("p",{children:["We found ",((o=d.meta)==null?void 0:o.returned)||0," matches for '",e.jsx("b",{children:s.search}),"'"]}):e.jsxs("p",{className:"text-center",children:["We found no match for '",e.jsx("b",{children:s.search}),"'"]}),e.jsx("button",{type:"button",children:e.jsx(_,{})})]})}),p.length===0&&e.jsxs("div",{className:"text-center grid place-items-center mt-8",children:[e.jsx("p",{children:"No products available"}),e.jsx("button",{className:"underline block mt-6",onClick:()=>{i({search:j=>({tab:j.tab})})},children:"Clear filters"})]}),e.jsx("div",{className:"grid mt-4 gap-2 md:gap-4",style:{gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))"},children:p.map(j=>e.jsx(Ae,{product:j,className:"min-w-40! min-h-40! w-full! h-auto! aspect-square"},`search-result-${j.id}`))}),e.jsxs("div",{className:"flex items-center justify-between flex-wrap pt-6 mt-auto",children:[e.jsx(us,{onPageChange:j=>n(j),pageSize:20,page:r||1,total:g?r*20+1:(r-1)*20+(((v=d.meta)==null?void 0:v.returned)||0)}),e.jsx(l.Link,{to:"/galleria-terms",children:"Galleria Terms and Conditions"})]})]})}),ns=D(function(){const s=l.useSearch(),i=s.search,r=s.categories,n=l.useNavigate(),h=y(C.galleria.listLDASolutions()),d=!!i||!!(r!=null&&r.length),g=G(C.galleria.searchSolutions({title:i,enabled:!!d,category:r==null?void 0:r.at(0)})).data||h.data,c=m.useMemo(()=>r==null?void 0:r.reduce((t,o)=>(t[o]=o,t),{}),[r]),f=m.useMemo(()=>F.reduce((t,o)=>(t[o.id]=o.title,t),{}),[]);return e.jsxs(e.Fragment,{children:[e.jsx($,{}),e.jsxs("div",{className:"mt-8 min-w-full w-0 pb-4 mb-6",children:[e.jsxs(Pe,{className:"pb-4",children:[e.jsx(ze,{orientation:"horizontal"}),e.jsx("div",{className:"flex gap-4",children:F.map(t=>e.jsx(l.Link,{search:o=>({...o,categories:c!=null&&c[t.id]?(r==null?void 0:r.filter(v=>v!==t.id))||[]:[...r||[],t.id]}),children:e.jsx(M,{icon:t.icon,title:t.title,selected:!!(c!=null&&c[t.id])})},t.id))})]}),e.jsx("div",{className:"flex gap-1 flex-wrap mt-3",children:r==null?void 0:r.map(t=>e.jsxs("div",{className:"py-2 px-3 flex items-center gap-2 justify-center rounded-lg bg-clipsi-green-dark",children:[e.jsx("span",{className:"font-[Poppins] font-bold text-xs text-black",children:f[t]}),e.jsx("button",{onClick:()=>n({search:o=>({...o,categories:(r==null?void 0:r.filter(v=>v!==t))||[]})}),children:e.jsx(_,{className:"size-3"})})]},`tags-${t}`))})]}),g.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center",children:[e.jsx("img",{src:"/images/solutions-empty.svg",className:"m-5 mb-0 w-40",alt:"No posts"}),e.jsx("div",{className:"m-5 text-center",children:"No Solutions! S
1oon will be filled with useful contents!"})]}):d?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex w-full items-center gap-2 px-4 pt-1 md:px-8 pl-0!",children:[e.jsxs("p",{children:["We found ",g.length," matches for '",e.jsx("b",{children:i}),"'"]}),e.jsx("button",{type:"button",onClick:()=>{n({search:t=>({...t,search:void 0})})},children:e.jsx(_,{className:"h-4 w-4 shrink-0"})})]}),e.jsx(L,{solutions:g})]}):e.jsxs(e.Fragment,{children:[Te,e.jsx(L,{solutions:g}),e.jsx(os,{})]})]})}),L=({solutions:a})=>{const s=Ee(400);return e.jsx("div",{className:b("grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 mt-4 gap-2 md:gap-4",s&&"grid-cols-1"),children:a==null?void 0:a.map(i=>e.jsx(cs,{solution:i},i==null?void 0:i.id))})},cs=({solution:a})=>e.jsxs(l.Link,{to:"/solution/$id",params:{id:a==null?void 0:a.id},className:"relative cursor-pointer max-w-93.75 max-h-100 aspect-square rounded-2xl border border-[#E7E7E7] w-full h-full",onClick:()=>{},children:[e.jsx("div",{className:"absolute w-full h-full flex flex-col justify-center items-center"}),e.jsx("img",{className:"w-full h-full object-cover rounded-2xl absolute inset-0",src:(a==null?void 0:a.ad_image)||void 0,alt:"Primary image URL"}),e.jsx("div",{className:"absolute bottom-0 p-5 w-full rounded-b-2xl text-white",style:{background:"linear-gradient(180deg,#0000,#000)"},children:e.jsx("div",{className:"flex gap-4 items-end justify-between",children:e.jsxs("p",{className:"flex flex-col gap-3",children:[e.jsxs("span",{className:"font-light text-xs",children:["#",a==null?void 0:a.category_name]}),e.jsxs("span",{className:"font-semibold text-sm clamp-2",children:["@",a==null?void 0:a.affiliate_company_name]})]})})})]}),os=()=>{const s=y(C.galleria.listLDASolutions()).data;return e.jsxs("div",{className:"mt-8",children:[e.jsx("h4",{className:"mb-4 font-medium text-sm capitalize",children:"Recently Viewed"}),e.jsx(L,{solutions:s.slice(0,6)})]})};function ds(a,s,i=1,r){const n=i*2+5;if(s<=n)return Array.from({length:s},(t,o)=>e.jsx(x,{onClick:()=>r(o+1),size:"icon",variant:"ghost",className:b("rounded-full",o+1===a&&"bg-neutral-300"),children:o+1},`pagination-${o}`));const h=Math.max(a-i,2),d=Math.min(a+i,s-1),p=h>2,g=d<s-1,c=[];c.push(e.jsx(x,{onClick:()=>r(1),size:"icon",variant:"ghost",className:b("rounded-full",a===1&&"bg-neutral-300"),children:"1"}));const f=e.jsx("span",{children:"..."});if(p)c.push(f);else for(let t=2;t<h;t++)c.push(e.jsx(x,{onClick:()=>r(t),size:"icon",variant:"ghost",className:b("rounded-full",t===a&&"bg-neutral-300"),children:t}));for(let t=h;t<=d;t++)c.push(e.jsx(x,{onClick:()=>r(t),size:"icon",variant:"ghost",className:b("rounded-full",t===a&&"bg-neutral-300"),children:t}));if(g)c.push(f);else for(let t=d+1;t<s;t++)c.push(e.jsx(x,{onClick:()=>r(t),size:"icon",variant:"ghost",className:b("rounded-full",t===a&&"bg-neutral-300"),children:t}));return c.push(e.jsx(x,{onClick:()=>r(s),size:"icon",variant:"ghost",className:b("rounded-full",s===a&&"bg-neutral-300"),children:s})),c}const us=({page:a,total:s,pageSize:i,onPageChange:r})=>{const n=m.useMemo(()=>ds(a,Math.ceil(s/i),1,r),[a,s]);return e.jsxs("div",{className:"flex gap-2",children:[e.jsx(x,{variant:"outline",size:"icon",className:"rounded-full",onClick:()=>{r(a-1)},disabled:a<=1,children:e.jsx(q,{})}),n,e.jsx(x,{variant:"outline",size:"icon",className:"rounded-full",disabled:a>=Math.ceil(s/i),onClick:()=>{r(a+1)},children:e.jsx(Ie,{})})]})};export{Fs 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.