PageSourceSearch

https://fetch.com.cy/_next/static/chunks/14tbtb83558ne.js

js fetch.com.cy collected 2026-10-08 08:24:00 UTC 3,729 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,93541,e=>{"use strict";var t=e.i(43476),r=e.i(22016),l=e.i(18566),s=e.i(71645),o=e.i(24071),i=e.i(67927),n=e.i(72689),a=e.i(61727),c=e.i(33209);let d=({categories:e})=>{let r="stores"===(0,l.useSearchParams)().get("view")?"stores":"products";return(0,t.jsx)(u,{categories:e,view:r})},u=({categories:e,view:d})=>{let u=(0,s.useRef)(null),g=(0,s.useRef)(null),[p,h]=(0,s.useState)(!1),[x,b]=(0,s.useState)(!1),f=(0,l.usePathname)().split("/").filter(Boolean),m=(0,n.cleanSlug)(f[0]??"");(0,s.useEffect)(()=>{let e=g.current;e&&e.scrollIntoView({behavior:"auto",inline:"center",block:"nearest"})},[m]),(0,s.useEffect)(()=>{let e=u.current;if(!e)return;let t=()=>{h(e.scrollLeft>4),b(e.scrollLeft+e.clientWidth<e.scrollWidth-4)};t(),e.addEventListener("scroll",t,{passive:!0});let r=new ResizeObserver(t);return r.observe(e),()=>{e.removeEventListener("scroll",t),r.disconnect()}},[]);let v=e=>{u.current?.scrollBy({left:e,behavior:"smooth"})};return(0,t.jsx)("section",{"aria-label":"Browse categories",className:"sticky top-[110px] lg:top-[120px] z-20 border-b border-line bg-white",children:(0,t.jsxs)("div",{className:"max-w-[1440px] mx-auto px-3 lg:px-6 py-3 lg:py-4 relative",children:[(0,t.jsx)("div",{ref:u,className:"flex gap-1 overflow-x-auto no-scrollbar scroll-smooth",style:{scrollSnapType:"x mandatory"},children:e.map((e,l)=>{var s;let o,i=(0,n.cleanSlug)(e.slug)===m;return(0,t.jsxs)(r.default,{ref:i?g:void 0,href:(s=e.slug,o="/"+(0,n.cleanSlug)(s),"stores"===d?`${o}?view=stores`:o),prefetch:!1,"aria-current":i?"page":void 0,className:"shrink-0 flex flex-col items-center gap-1.5 px-2 lg:px-3 py-1 group",style:{scrollSnapAlign:"start"},children:[(0,t.jsx)("div",{className:(0,c.cn)("relative h-[56px] w-[56px] lg:h-[70px] lg:w-[70px] rounded-full flex items-center justify-center text-2xl lg:text-3xl ring-1 transition-shadow overflow-hidden",!e.color&&(e.bg??"bg-surface-2"),i?"ring-2 ring-accent":"ring-line group-hover:ring-accent/50"),style:e.color?{backgroundColor:e.color}:void 0,children:(0,t.jsx)(a.CategoryIcon,{imageUrl:e.imageUrl,emoji:e.emoji,alt:e.name,size:56,priority:l<2})}),(0,t.jsx)("span",{className:(0,c.cn)("text-[11px] lg:text-[12px] whitespace-nowrap max-w-[72px] lg:max-w-[80px] truncate",i?"font-bold text-accent-dark":"font-medium text-ink"),children:e.name})]},e.slug)})}),p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"hidden lg:block absolute left-0 top-0 bottom-0 w-20 bg-gradient-to-r from-white via-white/95 to-transparent pointer-events-none z-10"}),(0,t.jsx)("button",{type:"button","aria-label":"Scroll categories left",onClick:()=>v(-360),className:"hidden lg:flex absolute left-1 top-[16px] h-10 w-10 z-20 rounded-full bg-white border border-line shadow-pop items-center justify-center hover:bg-surface-2 transition-colors",children:(0,t.jsx)(o.ChevronLeft,{size:18,strokeWidth:2.5})})]}),x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"hidden lg:block absolute right-0 top-0 bottom-0 w-20 bg-gradient-to-l from-white via-white/95 to-transparent pointer-events-none z-10"}),(0,t.jsx)("button",{type:"button","aria-label":"Scroll categories right",onClick:()=>v(360),className:"hidden lg:flex absolute right-1 top-[16px] h-10 w-10 z-20 rounded-full bg-white border border-line shadow-pop items-center justify-center hover:bg-surface-2 transition-colors",children:(0,t.jsx)(i.ChevronRight,{size:18,strokeWidth:2.5})})]})]})})};e.s(["CategoryThumbRailClient",0,({categories:e})=>(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(u,{categories:e,view:"products"}),children:(0,t.jsx)(d,{categories:e})})])}]);

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.