PageSourceSearch

https://www.chalkhillbluepubandover.co.uk/_next/static/chunks/4071.bd7f1dd6b1a20ffe.js

js chalkhillbluepubandover.co.uk collected 2026-10-09 00:03:34 UTC 9,166 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4071],{11717:function(e,t,a){"use strict";a.d(t,{Z:function(){return d}});var n=a(66045),o=a(97407);function d(e,t){(0,o.Z)(2,arguments);var a=(0,n.Z)(e),d=(0,n.Z)(t);return a.getTime()===d.getTime()}},13679:function(e,t,a){"use strict";a.d(t,{Z:function(){return d}});var n=a(90675),o=a(97407);function d(e,t){(0,o.Z)(2,arguments);var a=(0,n.Z)(e),d=(0,n.Z)(t);return a.getFullYear()===d.getFullYear()&&a.getMonth()===d.getMonth()}},56887:function(e,t,a){"use strict";a.d(t,{Z:function(){return d}});var n=a(90675),o=a(97407);function d(e,t){(0,o.Z)(2,arguments);var a=(0,n.Z)(e),d=(0,n.Z)(t);return a.getFullYear()===d.getFullYear()}},66045:function(e,t,a){"use strict";a.d(t,{Z:function(){return d}});var n=a(90675),o=a(97407);function d(e){(0,o.Z)(1,arguments);var t=(0,n.Z)(e);return t.setHours(0,0,0,0),t}},41512:function(e,t,a){"use strict";var n=a(21963);let o=(0,n.cn)(!1);t.Z=o},84071:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return j}});var n=a(97458),o=a(31536),d=a(40511),r=a(46402),l=a(2806),i=a(11717),c=a(13679),s=a(56887),u=a(13132),m=a(2638),_=a.n(m),v=a(52983),h=a(60879),p=a(41512),g=a(22081),x=a(74743),C=a(7427),b=a.n(C);let M=async e=>{let{apiEndpoint:t,eventid:a,venueId:n}=e,o=await fetch("".concat(t,"/api/v1/venue/").concat(n,"/event/").concat(a),{headers:{"Content-Type":"application/json"}});return o.json()};function j(e){var t,a,m,C,j,y,f,N,E,Z,w,k,L;let{position:P,eventid:W,reverseLayout:A}=e,{slug:B}=(0,o.Tt)(),{endpoint:D,id:F}=(0,o.Zj)()||{},{data:T}=(0,r.a)({queryKey:["featured-event-".concat(P)],queryFn:()=>M({eventid:W,apiEndpoint:D,venueId:F})}),q=e=>e[0],S=(0,v.useCallback)(e=>"none"===e.event.recurrence.type?e.event:q(e.occurrences),[]),U=(0,v.useCallback)(e=>{let t=S(e),a=new Date(t.startDateTime),n=new Date(t.endDateTime),o=(0,l.Z)(a,"yyyy"),d=(0,l.Z)(a,"d"),r=(0,l.Z)(n,"d"),u=(0,l.Z)(a,"MMM");if((0,i.Z)(a,n))return(0,l.Z)(a,"MMM d yyyy");if((0,c.Z)(a,n))return"".concat(u," ").concat(d," - ").concat(r," ").concat(o);if((0,s.Z)(a,n)){let e=(0,l.Z)(n,"MMM");return"".concat(u," ").concat(d," - ").concat(e," ").concat(r," ").concat(o)}let m=(0,l.Z)(a,"MMM d yyyy"),_=(0,l.Z)(a,"MMM d yyyy");return"".concat(m," - ").concat(_)},[S]),Y=(0,u.b9)(p.Z),[H,O]=(0,h.YD)();(0,v.useMemo)(()=>{Y(O)},[O,Y]);let z=new Date(null==T?void 0:null===(t=T.event)||void 0===t?void 0:t.startDateTime);return W?(0,n.jsx)("div",{ref:H,children:T&&(0,n.jsxs)("div",{className:"container gutter ".concat(b().container),"data-reverse":A,children:[(0,n.jsxs)("div",{className:"".concat(b().media," ").concat(b().mediaWrapper),children:[(0,n.jsx)("span",{className:"font-secondary text-l ".concat(b().dayLabel),children:(0,l.Z)(z,"EEEE")}),(0,n.jsx)(d.ZP,{className:"image-cover image-full-size",src:T.event.images[0],params:[{width:346,height:368},{width:692,height:736},{width:961,height:392},{width:1038,height:423},{width:1350,height:550}],width:"346",height:"368",preload:1===P||void 0,Preloader:1===P?_():void 0,loading:P>1?"lazy":void 0,alt:T.event.title})]}),(0,n.jsxs)("div",{className:b().content,"data-template":B,children:[(0,n.jsxs)("h2",{className:"font-secondary heading-underline ".concat(b().heading),children:[(0,n.jsx)("span",{className:b().headingTop,children:U(T)}),(0,n.jsx)("span",{className:b().headingBottom,children:T.event.title})]}),(null===(a=T.event)||void 0===a?void 0:a.price)&&(0,n.jsx)("p",{className:"text-bold",children:"\xa3".concat(null===(m=T.event)||void 0===m?void 0:m.price).concat((null===(C=T.event)||void 0===C?void 0:C.priceUnit)?" ".concat(null===(j=T.event)||void 0===j?void 0:j.priceUnit):"").trim()}),(0,n.jsx)("p",{children:T.event.description}),(null===(f=T.event)||void 0===f?void 0:null===(y=f.customFields)||void 0===y?void 0:y.childrenAllowed)&&(0,n.jsx)("p",{className:"text-s text-bold",children:null===(E=T.event)||void 0===E?void 0:null===(N=E.customFields)||void 0===N?void 0:N.childrenAllowed}),(0,n.jsxs)("div",{className:"buttons ".concat(b().buttons),children:[T.event.bookNowUri&&(0,n.jsx)(x.Z,{href:T.event.bookNowUri,className:"button button-on-bg button-dark ".concat(b().bookButton),children:"Book Now"}),(0,n.jsx)(g.Z,{bookLink:T.event.bookNowUri,childrenAllowed:null===(w=T.event)||void 0===w?void 0:null===(Z=w.customFields)||void 0===Z?void 0:Z.childrenAllowed,date:(0,l.Z)(z,"do MMM yyyy"),dateLabel:(0,l.Z)(z,"EEEE"),description:T.event.description,image:T.event.images[0],price:null===(k=T.event)||void 0===k?void 0:k.price,priceUnit:null===(L=T.event)||void 0===L?void 0:L.priceUnit,time:(0,l.Z)(z,"hh:mmaa"),title:T.event.title})]})]})]})}):null}},22081:function(e,t,a){"use strict";a.d(t,{Z:function(){return _}});var n=a(97458),o=a(31536),d=a(40511),r=a(99372),l=a(52983),i=a(74743),c=a(62310),s=a(49838),u=a(83215),m=a.n(u);function _(e){let{bookLink:t,childrenAllowed:a,date:u,dateLabel:_,description:v,image:h,price:p,priceUnit:g,time:x,title:C}=e,{slug:b}=(0,o.Tt)(),{acf:{information:{appearance:{template:M}}}}=(0,o.FC)(),[j,y]=(0,l.useState)(!1);return C&&h?(0,n.jsxs)(r.fC,{open:j,onOpenChange:e=>{null==y||y(e)},children:[(0,n.jsx)(r.xz,{asChild:!0,children:(0,n.jsx)("button",{className:"button button-brand button-secondary ".concat(m().readButton),children:(0,n.jsxs)("span",{children:["Read More","t3"===M&&(0,n.jsx)(c.Z,{})]})})}),(0,n.jsxs)(r.h_,{children:[(0,n.jsx)(r.aV,{className:m().modalOverlay}),(0,n.jsx)(r.VY,{className:m().modalContent,"data-template":M,"data-theme":b,children:(0,n.jsxs)("div",{className:m().modalColumn,children:[(0,n.jsx)(r.x8,{asChild:!0,children:(0,n.jsx)("button",{className:"reset ".concat(m().modalClose),"aria-label":"Close",children:(0,n.jsx)(s.Z,{})})}),(0,n.jsxs)("div",{className:m().modalImage,children:[(0,n.jsx)("span",{className:"font-secondary text-l ".concat(m().dateLabel),children:_}),(0,n.jsx)(d.ZP,{className:"image-full-size image-cover",src:h,params:[{width:351,height:295},{width:382,height:506},{width:600,height:794}],width:"351",height:"295",loading:"lazy",alt:C})]}
1),(0,n.jsxs)("div",{className:m().modalEventContent,children:[(0,n.jsxs)("div",{className:m().modalCopy,children:[(0,n.jsxs)("span",{className:"font-secondary ".concat("t2"===M?"text-l":"text-xs"," ").concat(m().modalSubheading),children:[(0,n.jsx)("span",{children:u}),x&&(0,n.jsx)("span",{className:m().time,children:x}),p&&(0,n.jsx)("span",{className:"font-secondary ".concat("t2"===M?"text-l":"text-xs"," ").concat(m().pricing," ").concat(m().modalPricing),children:"\xa3".concat(p).concat(g?" ".concat(g):"").trim()})]}),(0,n.jsx)("h3",{className:"font-secondary font-secondary-capitals ".concat(m().modalHeading," ").concat("t2"===M?"text-xxl":"text-l"),children:C}),v&&(0,n.jsx)("p",{children:v}),a&&(0,n.jsx)("p",{className:"text-s text-bold",children:a})]}),t&&(0,n.jsx)("div",{className:m().button,children:"t2"===M?(0,n.jsx)(i.Z,{href:"".concat(t),className:"button button-primary ".concat(m().button),children:"Book Now"}):(0,n.jsx)(i.Z,{href:"".concat(t),className:"button button-scooped button-filled ".concat(m().bookButton).trim(),children:(0,n.jsxs)(n.Fragment,{children:["revere"===b&&(0,n.jsx)("span",{className:"button-scooped-inner"}),(0,n.jsx)("span",{className:"button-scooped-outer button-filled-outer",children:(0,n.jsx)("span",{className:"button-scooped-text",children:"Book Now"})})]})})})]})]})})]})]}):null}},83215:function(e){e.exports={card:"EventModalCard_card__St_Zr",cardColumn:"EventModalCard_cardColumn__ROV5F",imageWrapperSection:"EventModalCard_imageWrapperSection__qJjeL",dateLabel:"EventModalCard_dateLabel__RrVgW",imageWrapper:"EventModalCard_imageWrapper__aBwD_",overlay:"EventModalCard_overlay__2EWqg",content:"EventModalCard_content__KANix",date:"EventModalCard_date__RAv3q",time:"EventModalCard_time__mXNAM",modalPricing:"EventModalCard_modalPricing__Snic1",description:"EventModalCard_description__cAKAT",button:"EventModalCard_button__N6Awv",buttonArea:"EventModalCard_buttonArea__7JRGK",readButton:"EventModalCard_readButton__0rFvD",bookButton:"EventModalCard_bookButton__9iN_A",modalContent:"EventModalCard_modalContent__6mi6_",modalOverlay:"EventModalCard_modalOverlay__9_IOl",modalImage:"EventModalCard_modalImage__hxn70",modalCopy:"EventModalCard_modalCopy__C8WXa",modalEventContent:"EventModalCard_modalEventContent__AG7W5",modalSubheading:"EventModalCard_modalSubheading__12ODX",headingDateWrapper:"EventModalCard_headingDateWrapper__kEjZP",headingWrapper:"EventModalCard_headingWrapper__8_38U",pricing:"EventModalCard_pricing__r84TM",dateWrapper:"EventModalCard_dateWrapper__Nob0C",modalColumn:"EventModalCard_modalColumn__eamH6",modalClose:"EventModalCard_modalClose__wtaYl",modalHeading:"EventModalCard_modalHeading__Ztq9N",image:"EventModalCard_image__Qtpp7",price:"EventModalCard_price__rd5SM"}},7427:function(e){e.exports={content:"LargePromo_content__9HTkK",bookButton:"LargePromo_bookButton__rU7nI",container:"LargePromo_container__MSgMq",videoContainer:"LargePromo_videoContainer__w7R01",media:"LargePromo_media__aqq8z",mediaWrapper:"LargePromo_mediaWrapper__y3Y2A",dayLabel:"LargePromo_dayLabel__c7kjr",heading:"LargePromo_heading__mPIXr",buttons:"LargePromo_buttons__yqQH9"}}}]);

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.