PageSourceSearch

https://tabl.no/assets/RestaurantsView-CFyppFlZ.js

js tabl.no collected 2026-10-02 01:07:08 UTC 4,790 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`1b9af1b4240506c19e8bab89a5f49138bc87fa9a`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`4c8c04a7-7795-4170-b23b-69a3941f49dc`,e._sentryDebugIdIdentifier=`sentry-dbid-4c8c04a7-7795-4170-b23b-69a3941f49dc`)}catch{}})();import{n as e,s as t,t as n}from"./jsx-runtime-BAlirEoR.js";import{u as r}from"./queries-BLhGtQZj.js";import{n as i}from"./trpc-Dd9hbMqp.js";import{t as a}from"./useSuspenseInfiniteQuery-CJ196nUO.js";import{t as o}from"./compiler-runtime-Dfb4Waub.js";import{n as s}from"./store-CSt_IU_N.js";import{n as c,r as l,t as u}from"./FilterPill-B1AuE4LK.js";import{t as d}from"./VenueCard-CsvQVT50.js";import{t as f}from"./useInfiniteScroll-ConwB8cu.js";var p=t(e(),1),m=o(),h=t(n(),1);function g(e){let t=(0,m.c)(25),{search:n,locationCoords:o}=e,c=i(),l=s(x),u=(o===void 0?l:o)??void 0,d;t[0]!==n||t[1]!==u||t[2]!==c?(d=r(c,n,{location:u}),t[0]=n,t[1]=u,t[2]=c,t[3]=d):d=t[3];let{data:p,fetchNextPage:g,hasNextPage:C,isFetchingNextPage:w}=a(d),T;t[4]!==g||t[5]!==C||t[6]!==w?(T={hasNextPage:C,isFetchingNextPage:w,fetchNextPage:g},t[4]=g,t[5]=C,t[6]=w,t[7]=T):T=t[7];let E=f(T),D=p.pages,O,k,A;if(t[8]!==p.pages||t[9]!==n.hideUnavailable){A=Symbol.for(`react.early_return_sentinel`);bb0:{let e=D.flatMap(b),r=n.hideUnavailable?e.filter(y):e;if(r.length===0){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,h.jsx)(`p`,{className:`py-20 text-center text-neutral-500`,children:`No venues found`}),t[13]=e):e=t[13],A=e;break bb0}O=S,k=r.map(v)}t[8]=p.pages,t[9]=n.hideUnavailable,t[10]=O,t[11]=k,t[12]=A}else O=t[10],k=t[11],A=t[12];if(A!==Symbol.for(`react.early_return_sentinel`))return A;let j;t[14]!==O||t[15]!==k?(j=(0,h.jsx)(O,{children:k}),t[14]=O,t[15]=k,t[16]=j):j=t[16];let M;t[17]===E?M=t[18]:(M=(0,h.jsx)(`div`,{ref:E,className:`h-10`}),t[17]=E,t[18]=M);let N;t[19]===w?N=t[20]:(N=w&&(0,h.jsx)(S,{children:Array.from({length:4}).map(_)}),t[19]=w,t[20]=N);let P;return t[21]!==j||t[22]!==M||t[23]!==N?(P=(0,h.jsxs)(h.Fragment,{children:[j,M,N]}),t[21]=j,t[22]=M,t[23]=N,t[24]=P):P=t[24],P}function _(e,t){return(0,h.jsx)(C,{},t)}function v(e){return(0,h.jsx)(d,{venue:e},e.id)}function y(e){return e.isAvailable}function b(e){return e.venues}function x(e){return e.locationCoords}function S(e){let t=(0,m.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,h.jsx)(`div`,{className:`grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4`,children:n}),t[0]=n,t[1]=r),r}function C(){let e=(0,m.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,h.jsx)(`div`,{className:`aspect-16/10 w-full bg-neutral-800`}),e[0]=t):t=e[0];let n,r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,h.jsx)(`div`,{className:`h-4 w-3/4 rounded bg-neutral-800`}),r=(0,h.jsx)(`div`,{className:`h-3 w-1/2 rounded bg-neutral-800`}),e[1]=n,e[2]=r):(n=e[1],r=e[2]);let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,h.jsxs)(`div`,{className:`animate-pulse overflow-hidden rounded-xl border border-neutral-800 bg-neutral-900`,children:[t,(0,h.jsxs)(`div`,{className:`flex flex-col gap-2 p-3`,children:[n,r,(0,h.jsxs)(`div`,{className:`flex gap-1.5`,children:[(0,h.jsx)(`div`,{className:`h-5 w-12 rounded bg-neutral-800`}),(0,h.jsx)(`div`,{className:`h-5 w-12 rounded bg-neutral-800`}),(0,h.jsx)(`div`,{className:`h-5 w-12 rounded bg-neutral-800`})]})]})]}),e[3]=i):i=e[3],i}function w(){let e=(0,m.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,h.jsx)(S,{children:Array.from({length:8}).map(T)}),e[0]=t):t=e[0],t}function T(e,t){return(0,h.jsx)(C,{},t)}function E(e){let t=(0,m.c)(21),{heading:n,search:r,onSearchChange:i,locationCoords:a}=e,o;t[0]===n?o=t[1]:(o=(0,h.jsx)(`h1`,{className:`mb-4 text-2xl font-bold`,children:n}),t[0]=n,t[1]=o);let s,d;t[2]!==i||t[3]!==r?(s=(0,h.jsx)(u,{search:r,onSearchChange:i}),d=(0,h.jsx)(l,{search:r,onSearchChange:i}),t[2]=i,t[3]=r,t[4]=s,t[5]=d):(s=t[4],d=t[5]);let f;t[6]!==i||t[7]!==r?(f=(0,h.jsx)(`div`,{className:`hidden md:block`,children:(0,h.jsx)(c,{search:r,onSearchChange:i,compact:!0})}),t[6]=i,t[7]=r,t[8]=f):f=t[8];let _;t[9]!==s||t[10]!==d||t[11]!==f?(_=(0,h.jsxs)(`div`,{className:`mb-6 flex items-center gap-3`,children:[s,d,f]}),t[9]=s,t[10]=d,t[11]=f,t[12]=_):_=t[12];let v;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,h.jsx)(w,{}),t[13]=v):v=t[13];let y;t[14]!==a||t[15]!==r?(y=(0,h.jsx)(p.Suspense,{fallback:v,children:(0,h.jsx)(g,{search:r,locationCoords:a})}),t[14]=a,t[15]=r,t[16]=y):y=t[16];let b;return t[17]!==o||t[18]!==_||t[19]!==y?(b=(0,h.jsxs)(`main`,{className:`px-4 py-6`,children:[o,_,y]}),t[17]=o,t[18]=_,t[19]=y,t[20]=b):b=t[20],b}export{E as t};

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.