PageSourceSearch

https://www.barlina.co.uk/_next/static/chunks/pages/[slug]-c23776acd6cf3483.js

js barlina.co.uk collected 2026-10-07 15:44:20 UTC 7,724 bytes, 136 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[431],{8990:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[slug]",function(){return s(2383)}])},1411:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var i=s(6070),n=s(7500),a=s.n(n),l=s(8014),o=s.n(l),r=s(758),d=s(7512);let c=({image:e={},className:t,priority:s=!1,useAnimation:n=!1,fill:l=!1,alt:c="",useLqip:u=!0,sizes:m,position:p,width:g,height:h,style:y={},objectFit:x})=>{let v=g??(e?.metadata?.dimensions&&!0!==l?e.metadata.dimensions.width:void 0),_=h??(e?.metadata?.dimensions&&!0!==l?e.metadata.dimensions.height:void 0),j=u?e?.metadata?.lqip:v&&_?`data:image/svg+xml;utf8,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox='0 0 ${v} ${_}'%3E%3C/svg%3E`:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",[f,A]=(0,r.useState)(!1);return e?(0,i.jsx)(o(),{src:e.url,loader:e.url?.includes("cdn.sanity.io")&&(({src:e,width:t,quality:s})=>`${(0,d.i)(e).width(t).quality(s||90).auto("format").url()}`),placeholder:"blur",blurDataURL:j,width:v,height:_,fill:l,alt:c,className:a()({[t]:t,"lazyload-fade":!s&&n}),priority:s,sizes:m,onLoadingComplete:()=>A(!0),style:{objectFit:x?`${x}${f?"":" !important"}`:null,objectPosition:p?`${100*p.x}% ${100*p.y}%`:null,...!s&&n&&{opacity:f?1:0},...y}}):null}},3301:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var i=s(6070),n=s(6657),a=s(6341),l=s.n(a),o=s(30),r=s(7512);let d=function({title:e,titleSuffix:t="Bar Lina",richTextDescription:s,description:a,socialDescription:d,socialTitle:c,socialImage:u}){let m=`${e??""}${t&&e?` | ${t}`:t}`,p=u&&u.asset?(0,r.i)(u.asset.url).width(1200).height(630).auto("format").quality(85).url():"",g=a||(s?(0,n.bo)(s).replace("\n"," ").substring(0,160):""),h=(0,o.useRouter)();return(0,i.jsxs)(l(),{children:[(0,i.jsx)("title",{children:m}),a&&(0,i.jsx)("meta",{property:"description",content:g}),(0,i.jsx)("meta",{property:"og:title",content:c??m}),(0,i.jsx)("meta",{name:"twitter:title",content:c??m}),(d||g)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("meta",{property:"og:description",content:d??g}),(0,i.jsx)("meta",{name:"twitter:description",content:d??g})]}),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,i.jsx)("meta",{name:"twitter:image",content:p}),(0,i.jsx)("meta",{property:"og:image",content:p}),(0,i.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,i.jsx)("meta",{property:"og:image:height",content:"630"}),(0,i.jsx)("link",{rel:"canonical",href:`https://www.barlina.co.uk${h.asPath}`})]})}},970:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var i=s(6070),n=s(2047);let a=(0,s(758).lazy)(()=>s.e(201).then(s.bind(s,8201)));function l({preview:e,token:t,children:s,query:l,params:o}){return e?(0,i.jsx)(n.PreviewSuspense,{fallback:s,children:(0,i.jsx)(a,{token:t,query:l,params:o,children:s})}):s}},4965:(e,t,s)=>{"use strict";s.d(t,{CR:()=>r,Jb:()=>o,Pj:()=>d,gF:()=>c});let i=`"seo": {
2  defined(seoTitle) => {
3    "title": seoTitle
4  },
5  defined(seoDescription) => {
6    "description": seoDescription
7  },
8  defined(seoSocialImage) => {
9    "socialImage": seoSocialImage { 
10      asset-> {
11        url
12      }
13    }
14  }
15}`,n=`{
16  _id,
17  url,
18  metadata{
19    lqip,
20    dimensions
21  }
22}`,a=`
23  ...,
24  _type == "block" => {
25    ...,
26    defined(markDefs) => {
27      markDefs[] {
28        ...,
29        _type == "internalLink" => {
30          "slug": @.reference->slug,
31          "type": @.reference->_type 
32        },
33        _type == "fileDownload" => {
34          asset-> {
35            ...
36          }
37        }
38      }
39    }
40  }
41`,l=`
42  _type,
43  slug,
44  title,
45  thumbnailImage {
46    asset-> ${n},
47    alt
48  },
49  eventDetails
50`,o=`
51  *[_type == "homepage"][0] { 
52    ...,
53    ${i},
54    locations[]-> {
55      title,
56      slug,
57      _type,
58      thumbnail {
59        asset-> ${n}
60      },
61      singleLineAddress,
62    }
63  }
64`,r=`
65  *[_type == "location" && slug.current == $slug][0] { 
66    ...,
67    slug,
68    ${i},
69    images[] {
70      asset-> ${n}
71    },
72    infoContent[] {
73      ...,
74      ${a}
75    },
76    "locations": *[_type == "homepage"][0].locations[]-> {
77      title,
78      slug,
79      _type,
80      sevenRoomsVenueId
81    },
82    "events": *[_type == "event" && location._ref == ^._id] | order(orderRank) {
83      ${l}
84    }
85  }
86`,d=`
87  *[_type == "event" && slug.current == $slug && references(*[_type == "location" && slug.current == $location]._id)][0] { 
88    _id,
89    ...location-> {
90      _type,
91      slug,
92      title,
93      images[] {
94        asset-> ${n}
95      },
96      infoContent[] {
97        ...,
98        ${a}
99      },
100      "locations": *[_type == "homepage"][0].locations[]-> {
101        title,
102        slug,
103        _type,
104        sevenRoomsVenueId
105      },
106      "events": *[_type == "event" && location._ref == ^._id] | order(orderRank) {
107        ${l}
108      },
109      "menuGroups": [true]
110    },
111    "event": { 
112      _id,
113      title,
114      thumbnailImage {
115        asset-> ${n},
116        alt
117      },
118      eventDetails,
119      infoContent[] {
120        ${a}
121      },
122      bookingUrl,
123      disableBookingButton,
124      "sevenRoomsVenueId": @.location->sevenRoomsVenueId,
125      "allVenues": *[_type == "location"].sevenRoomsVenueId
126    }
127  }
128`,c=`
129  *[_type == "policyPage" && slug.current == $slug][0] { 
130    ...,
131    ${i},
132    textContent[] {
133      ${a}
134    }
135  }
136`},2383:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>w,default:()=>$});var i=s(6070),n=s(4965),a=s(758),l=s(7500),o=s.n(l),r=s(468),d=s(5183),c=s.n(d),u=s(1411),m=s(6987),p=s(7860);let g=1.5,h={visible:(e=g)=>({opacity:1,transition:{type:"tween",duration:e}}),hidden:()=>({opacity:0,transition:{type:"tween",duration:g}})};function y(e){let{asset:t,altText:s,hotspot:n,index:l,page:d}=e,[c,p]=(0,a.useState)(!1),[y,x]=(0,a.useState)(!0),{homepageStyles:v}=(0,m.j)();return(0,a.useEffect)(()=>{d>0&&x(!1),p(d===l)},[l,d]),(0,i.jsx)(r.m.div,{custom:0===l&&!0===y?0:g,variants:h,animate:c?"visible":"hidden",className:o()(v.slide),children:t&&(0,i.jsx)(u.A,{image:t,sizes:"(max-width: 1023px) 100vw, 50vw",className:o()(v.imageElement),priority:0===l,position:n,alt:s,useLqip:!0})})}function x({images:e=[],priority:t}){let[s,n]=(0,a.useState)(0),{homepageStyles:l}=(0,m.j)(),o=t=>{let i=s+t;n(i>e.length-1?0:i)};return((0,a.useEffect)(()=>{let e=setTimeout(()=>{o(1)},(2+g)*1e3);return()=>{clearTimeout(e)}},[e,s]),e?.length)?(0,i.jsx)("div",{className:l.slideshow,children:e.map((e,t)=>(0,a.createElement)(y,{...e,index:t,key:t,page:s}))}):null}function v(e){let{images:t}=e,[s,n]=(0,a.useState)([]),{homepageStyles:l}=(0,m.j)();return((0,a.useEffect)(()=>{t&&n(t.sort(()=>.5-Math.random()))},[t]),t?.length>1)?(0,i.jsx)(x,{images:s}):t?.length===1?(0,i.jsx)("div",{className:l.slideshow,children:(0,i.jsx)("div",{style:{opacity:1},className:o()(l.slide),children:t[0].asset&&(0,i.jsx)(u.A,{image:t[0].asset,sizes:"(max-width: 1023px) 100vw, 50vw",className:o()(l.imageElement),priority:!0,position:t[0].hotspot,alt:t[0].altText,useLqip:!0})})}):null}function _(e){let{slug:t,images:s}=e,{homepageStyles:n}=(0,m.j)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(r.m.main,{className:"content",variants:{hidden:{opacity:0},visible:{opacity:1}},initial:"hidden",animate:"visible",exit:"hidden",children:[(0,i.jsx)("div",{className:o()(n.logoWrapper),children:(0,i.jsx)("div",{className:o()(n.logo),children:(0,i.jsx)(c(),{href:"/",children:(0,i.jsx)(p.A,{})})})}),(0,i.jsx)(v,{images:s})]})})}var j=s(3301),f=s(970);let A=n.CR;var w=!0;let $=function({post:e,preview:t,token:s}){let{seo:n,title:a}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.A,{title:a,...n}),(0,i.jsx)(f.A,{preview:t,token:s,query:A,children:(0,i.jsx)(_,{...e})})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[740,636,593,792],()=>t(8990)),_N_E=e.O()}]);

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.