PageSourceSearch

https://www.levi.fi/component---src-contentful-templates-contentfu…-and-drink-page-tsx-b31e4aa91be0fe92935f.js

js levi.fi collected 2026-10-02 04:54:31 UTC 2,929 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkvisit_levi_website_2025=self.webpackChunkvisit_levi_website_2025||[]).push([[75],{85886:function(e,t,n){n.r(t),n.d(t,{Head:function(){return z},default:function(){return F}});var s=n(29318),r=n(32734),a=n(17156),l=n(54506),o=n(96540),i=n(86835),c=n(30149),d=n(60967),u=n(47841),x=n(38624),j=n(32575),g=n(74848);var h=e=>{let{open:t=!1,index:n,onToggle:s,icon:r,title:a,body:l,linkProps:o}=e;return(0,g.jsxs)(c.A.Details,{onToggle:s,open:t,disabled:t,"data-index":n,children:[(0,g.jsxs)(c.A.Summary,{children:[r&&(0,g.jsx)(c.A.TypeIcon,{type:r,size:x.l.Size24}),(0,g.jsx)(d.o5.HeadingDecoSmall,{children:a}),(0,g.jsx)(c.A.ToggleIcon,{type:j.F.ChevronRightBold,size:x.l.Size16})]}),(0,g.jsxs)(c.A.Content,{children:[(0,g.jsx)(d.o5.BodySmall,{children:l}),o&&(0,g.jsx)(c.A.ContentFooter,{children:(0,g.jsx)(u.A,{...o})})]})]})};var m=e=>{let{items:t,selectedIndex:n,onSelect:s}=e;const r=o.useCallback(e=>{if(e.preventDefault(),!e.currentTarget.open)return;const{index:t=0}=e.currentTarget.dataset;n!==+t&&s(+t)},[s,n]);return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(c.A.Accordion,{column:6,children:t.map((e,t)=>(0,g.jsx)(h,{index:t,open:n===t,onToggle:r,...e},e.title))})})},p=n(78380),A=n(88231),v=n(3368),b=n(85584),f=n(95281),k=n(26840);var C=e=>t=>{let{...n}=t;const[s,r]=o.useState(!1);return o.useEffect(()=>{r(!0)},[]),s?(0,g.jsx)(e,{...n}):(0,g.jsx)(g.Fragment,{})};var S=e=>{let{data:t=[]}=e;const{isMobile:n}=(0,i.A)(),[s,r]=o.useState(0),a=o.useMemo(()=>t.map(e=>{let{accordionItem:t}=e;return t}),[t]),[c]=o.useState(()=>t.map(e=>{let{relatedCards:t}=e;return(0,l.A)(t.sort(()=>.5-Math.random()).slice(0,5))})),d=o.useCallback(e=>{r(e)},[]),u=C(A.A);return n?(0,g.jsxs)(k.A,{children:[(0,g.jsx)(b.A,{items:a,selectedIndex:s,onSelect:d}),(0,g.jsx)(f.A,{...a[s]}),(0,g.jsx)(p.A,{cards:c[s]})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(m,{items:a,selectedIndex:s,onSelect:d}),(0,g.jsx)(u,{type:v.v.Compact,cards:c[s]})]})},y=n(1662),I=n(50110),P=n(19237),T=n(81105),_=n(90200);var w=e=>{let{searchPagePath:t,restaurants:n}=e;const s=(0,T.k)().map(e=>{const{icon:s,label:r,description:l,value:o}=e,i={icon:s,title:r,body:l,linkProps:{to:`${t}?category=${o}`,label:(0,P.kg)("common.browse"),as:a.N}},c=n.edges.filter(e=>{let{node:t}=e;return t.categories.includes(o)}),d=_.KL;return{accordionItem:i,relatedCards:null==c?void 0:c.map(e=>({...d(e),links:[{destination:{pageId:e.node.id}}]}))}});return(0,g.jsx)(I.A,{children:(0,g.jsx)(y.A,{noGutter:!0,children:(0,g.jsx)(S,{data:s})})})};var F=e=>{let{data:t}=e;const{sections:n}=t.contentfulPage;return(0,g.jsxs)("main",{children:[(0,g.jsx)(w,{searchPagePath:t.searchPageContext.edges[0].node.path,restaurants:t.restaurants}),null==n?void 0:n.map(e=>(0,g.jsx)(r.A,{...e},e.id))]})};const z=e=>(0,g.jsx)(s.ec,{...e})}}]);
2//# sourceMappingURL=component---src-contentful-templates-contentful-eat-and-drink-page-tsx-b31e4aa91be0fe92935f.js.map

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.