PageSourceSearch

https://www.guildmerchantpubpreston.co.uk/_next/static/chunks/6310.2727d762190084fa.js

js guildmerchantpubpreston.co.uk collected 2026-10-08 07:37:08 UTC 13,657 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6310],{71800:function(e,n,t){"use strict";var o,r=t(52983);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)}n.Z=function(e){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:10.508,height:5.754},e),o||(o=r.createElement("path",{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",d:"M9.801.707 5.254 5.254.707.707","data-name":"Icon feather-chevron-down"})))}},49722:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var o=t(97458),r=t(31536);t(52983);var a=t(12591);let s=e=>e.toLocaleDateString("en-US",{weekday:"short"}).charAt(0),i=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate())},c=()=>{let e=i();return{before:e}};function l(e){let{classNames:n,showOutsideDays:t=!0,...i}=e,{acf:{information:{appearance:{template:l}}}}=(0,r.FC)();return(0,o.jsx)(a._W,{classNames:{months:"calendarMonths",month:"".concat("t1"===l||"t2"===l?"calendarMonthCentered":"calendarMonth"),caption:"".concat("t1"===l||"t2"===l?"calendarCaptionDark":"calendarCaption"),caption_label:"calendarCaptionLabel",nav:"calendarNav",nav_button:"".concat("t1"===l||"t2"===l?"calendarNavButtonDark":"calendarNavButton"),nav_button_previous:"calendarNavPrevious",nav_button_next:"calendarNavNext",table:"calendarTable",head_row:"".concat("t1"===l||"t2"===l?"calendarHeadRowDark":"calendarHeadRow"),head_cell:"font-secondary calendarHeadCell",row:"calendarRow",cell:"calendarCell",day:"calendarDay",day_selected:"calendarDaySelected",day_disabled:"caledarDayDisabled",day_hidden:"calendarDayHidden",...n},disabled:c(),formatters:{formatWeekdayName:s},showOutsideDays:t,...i})}},6310:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var o=t(97458),r=t(31536),a=t(36296),s=t(2806),i=t(23082),c=t.n(i),l=t(52983),u=t(49722),d=t(62310),p=t(49838),m=t(7022),f=t.n(m),h=t(65517),g=t(71800),v=t(15998),_=t.n(v);function C(e){let{guests:n,name:t,placeholder:a,setGuests:s}=e,i=parseInt(a,10),c=Array.from({length:7-i},(e,n)=>i+n),{acf:{information:{appearance:{template:l}}}}=(0,r.FC)();return(0,o.jsxs)(h.fC,{name:t,value:n,onValueChange:s,children:[(0,o.jsxs)(h.xz,{className:_().selectTrigger,"aria-label":a,children:[(0,o.jsxs)("span",{children:[t," ",(0,o.jsx)("sup",{children:"*"})]}),(0,o.jsx)(h.B4,{placeholder:a,children:n||a}),(0,o.jsx)(g.Z,{})]}),(0,o.jsx)(h.h_,{children:(0,o.jsx)(h.VY,{className:"".concat("t1"===l||"t2"===l?_().selectContentAlternate:_().selectContent),position:"popper",children:(0,o.jsx)(h.l_,{className:_().selectViewport,children:c.map(e=>(0,o.jsx)(h.ck,{className:"".concat("t1"===l||"t2"===l?_().selectItemAlternate:_().selectItem),value:e.toString(),children:(0,o.jsx)(h.eT,{children:e})},e))})})})]})}function x(e){let{information:n}=e,{slug:t}=(0,r.Tt)(),{acf:{information:{appearance:{template:i},site:{mews_id:m,phc:h}}}}=(0,r.FC)(),[g,v]=(0,l.useState)({from:void 0,to:void 0}),[_,x]=(0,l.useState)("2"),[b,k]=(0,l.useState)("0"),[j,w]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{w(!0)},[]),(0,o.jsxs)("div",{className:f().bookingContainer,"data-template":i,children:[(0,o.jsxs)("form",{className:"".concat("signature"===t?"mini-scooped":""," ").concat(f().bookingInnerContainer).trim(),noValidate:!0,onSubmit:e=>{e.preventDefault();let n=new URL("https://app.mews.com/distributor/".concat(m,"?hotel=MARS").concat(h));(null==g?void 0:g.from)&&n.searchParams.append("mewsStart",(0,s.Z)(g.from,"yyyy-MM-dd")),(null==g?void 0:g.to)&&n.searchParams.append("mewsEnd",(0,s.Z)(g.to,"yyyy-MM-dd")),_&&n.searchParams.append("mewsAdultCount",_),b&&n.searchParams.append("mewsChildCount",b),window.open(n.href,"_blank")},children:["revere"===t&&(0,o.jsx)("div",{className:"mini-scooped-inner"}),(0,o.jsxs)("div",{className:"".concat("signature"===t?"mini-scooped-outer":""," ").concat(f().bookingWrapper),children:[(0,o.jsxs)(a.fC,{children:[(0,o.jsx)(a.xz,{asChild:!0,children:(0,o.jsxs)("div",{className:f().checkingWrapper,children:[(0,o.jsx)("div",{className:"".concat(f().bookingColumn," ").concat(f().checkingColumn),children:j&&(0,o.jsx)(o.Fragment,{children:(null==g?void 0:g.from)?(0,o.jsx)("span",{className:f().checkingValue,children:(0,s.Z)(g.from,"dd MMMM y")}):(0,o.jsxs)("span",{children:["checking in ",(0,o.jsx)("sup",{children:"*"})]})})}),(0,o.jsx)("div",{className:"".concat(f().bookingColumn," ").concat(f().checkingColumn),children:j&&(0,o.jsx)(o.Fragment,{children:(null==g?void 0:g.to)?(0,o.jsx)("span",{className:f().checkingValue,children:(0,s.Z)(g.to,"dd MMMM y")}):(0,o.jsxs)("span",{children:["checking out ",(0,o.jsx)("sup",{children:"*"})]})})})]})}),(0,o.jsx)(a.h_,{children:(0,o.jsxs)(a.VY,{children:[(0,o.jsx)(a.x8,{"aria-label":"Close",className:f().calendarClose,children:(0,o.jsx)(p.Z,{})}),(0,o.jsx)(u.Z,{defaultMonth:null==g?void 0:g.from,initialFocus:!0,mode:"range",numberOfMonths:1,onSelect:v,selected:g})]})})]}),(0,o.jsx)("div",{className:"".concat(f().bookingColumn," ").concat(f().guestsColumn," ").concat(f().adultsColumn),children:(0,o.jsx)(C,{guests:_,name:"adults",placeholder:"1",setGuests:x})}),(0,o.jsx)("div",{className:"".concat(f().bookingColumn," ").concat(f().guestsColumn),children:(0,o.jsx)(C,{guests:b,name:"children",placeholder:"0",setGuests:k})}),(0,o.jsx)("button",{className:f().bookingButtonColumn,disabled:!(null==g?void 0:g.from)||!(null==g?void 0:g.to),children:(0,o.jsx)("span",{className:"button ".concat("signature"===t?"button-secondary button-secondary-capitals ".concat(f().bookingButton):"button-fill"),children:(0,o.jsxs)("span",{children:["check availability","signature"===t&&(0,o.jsx)(d.Z,{})]})})})]})]}),n&&(0,o.jsx)("div",{className:"multiline ".concat(f().information),dangerouslySetInnerHTML:{__html:c().sanitize(n.replace(/\r\n/g,"<br />"))}})]})}c().addHook("afterSanitizeAttributes",e=>{"target"in e&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noreferrer"))})},7022:function(e){e.exports={calendarClose:"MewsBooking_calendarClose__WAUsT",bookingContainer:"Me
1wsBooking_bookingContainer__QuJqK",bookingInnerContainer:"MewsBooking_bookingInnerContainer__lYKqt",bookingWrapper:"MewsBooking_bookingWrapper__IlB3F",checkingWrapper:"MewsBooking_checkingWrapper__L19Ku",bookingColumn:"MewsBooking_bookingColumn__nJurU",checkingColumn:"MewsBooking_checkingColumn__zpihC",checkingValue:"MewsBooking_checkingValue__fYmSf",guestsColumn:"MewsBooking_guestsColumn__mZ_sX",bookingButtonColumn:"MewsBooking_bookingButtonColumn__wf2WZ",bookingButton:"MewsBooking_bookingButton__tQaJK",multiline:"MewsBooking_multiline__p7BHA",information:"MewsBooking_information__WGPoH",adultsColumn:"MewsBooking_adultsColumn__bB10C"}},15998:function(e){e.exports={selectTrigger:"GuestsSelect_selectTrigger__BgEc0",selectContent:"GuestsSelect_selectContent__ONORP",selectContentAlternate:"GuestsSelect_selectContentAlternate__M5com",selectViewport:"GuestsSelect_selectViewport__40WVF",selectItem:"GuestsSelect_selectItem__HAemR",selectItemAlternate:"GuestsSelect_selectItemAlternate__gkmxT"}},36296:function(e,n,t){"use strict";t.d(n,{x8:function(){return J},VY:function(){return K},h_:function(){return z},fC:function(){return H},xz:function(){return Y}});var o=t(52983),r=t(74810),a=t(54418),s=t(56938),i=t(26764),c=t(1387),l=t(86289),u=t(97421),d=t(24370),p=t(49558),m=t(63730),f=t(12232),h=e=>{let n,t;let{present:r,children:s}=e,i=function(e){var n;let[t,r]=o.useState(),a=o.useRef({}),s=o.useRef(e),i=o.useRef("none"),c=e?"mounted":"unmounted",[l,u]=(n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let o=n[e][t];return o??e},c));return o.useEffect(()=>{let e=g(a.current);i.current="mounted"===l?e:"none"},[l]),(0,f.b)(()=>{let n=a.current,t=s.current,o=t!==e;if(o){let o=i.current,r=g(n);e?u("MOUNT"):"none"===r||n?.display==="none"?u("UNMOUNT"):t&&o!==r?u("ANIMATION_OUT"):u("UNMOUNT"),s.current=e}},[e,u]),(0,f.b)(()=>
1{if(t){let e=e=>{let n=g(a.current),o=n.includes(e.animationName);e.target===t&&o&&m.flushSync(()=>u("ANIMATION_END"))},n=e=>{e.target===t&&(i.current=g(a.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:o.useCallback(e=>{e&&(a.current=getComputedStyle(e)),r(e)},[])}}(r),c="function"==typeof s?s({present:i.isPresent}):o.Children.only(s),l=(0,a.e)(i.ref,(n=Object.getOwnPropertyDescriptor(c.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning?c.ref:(n=Object.getOwnPropertyDescriptor(c,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning?c.props.ref:c.props.ref||c.ref),u="function"==typeof s;return u||i.isPresent?o.cloneElement(c,{ref:l}):null};function g(e){return e?.animationName||"none"}h.displayName="Presence";var v=t(26774),_=t(98546),C=t(95526),x=t(40627),b=t(36174),k=t(97458),j="Popover",[w,N]=(0,s.b)(j,[d.D7]),M=(0,d.D7)(),[y,A]=w(j),O=e=>{let{__scopePopover:n,children:t,open:r,defaultOpen:a,onOpenChange:s,modal:i=!1}=e,c=M(n),l=o.useRef(null),[p,m]=o.useState(!1),[f=!1,h]=(0,C.T)({prop:r,defaultProp:a,onChange:s});return(0,k.jsx)(d.fC,{...c,children:(0,k.jsx)(y,{scope:n,contentId:(0,u.M)(),triggerRef:l,open:f,onOpenChange:h,onOpenToggle:o.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:p,onCustomAnchorAdd:o.useCallback(()=>m(!0),[]),onCustomAnchorRemove:o.useCallback(()=>m(!1),[]),modal:i,children:t})})};O.displayName=j;var P="PopoverAnchor";o.forwardRef((e,n)=>{let{__scopePopover:t,...r}=e,a=A(P,t),s=M(t),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=a;return o.useEffect(()=>(i(),()=>c()),[i,c]),(0,k.jsx)(d.ee,{...s,...r,ref:n})}).displayName=P;var R="PopoverTrigger",D=o.forwardRef((e,n)=>{let{__scopePopover:t,...o}=e,s=A(R,t),i=M(t),c=(0,a.e)(n,s.triggerRef),l=(0,k.jsx)(v.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":G(s.open),...o,ref:c,onClick:(0,r.M)(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?l:(0,k.jsx)(d.ee,{asChild:!0,...i,children:l})});D.displayName=R;var B="PopoverPortal",[I,S]=w(B,{forceMount:void 0}),E=e=>{let{__scopePopover:n,forceMount:t,children:o,container:r}=e,a=A(B,n);return(0,k.jsx)(I,{scope:n,forceMount:t,children:(0,k.jsx)(h,{present:t||a.open,children:(0,k.jsx)(p.h,{asChild:!0,container:r,children:o})})})};E.displayName=B;var T="PopoverContent",F=o.forwardRef((e,n)=>{let t=S(T,e.__scopePopover),{forceMount:o=t.forceMount,...r}=e,a=A(T,e.__scopePopover);return(0,k.jsx)(h,{present:o||a.open,children:a.modal?(0,k.jsx)(W,{...r,ref:n}):(0,k.jsx)(U,{...r,ref:n})})});F.displayName=T;var W=o.forwardRef((e,n)=>{let t=A(T,e.__scopePopover),s=o.useRef(null),i=(0,a.e)(n,s),c=o.useRef(!1);return o.useEffect(()=>{let e=s.current;if(e)return(0,x.Ry)(e)},[]),(0,k.jsx)(b.Z,{as:_.g7,allowPinchZoom:!0,children:(0,k.jsx)(V,{...e,ref:i,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),c.current||t.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.M)(e.onPointerDownOutside,e=>{let n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey,o=2===n.button||t;c.current=o},{checkForDefaultPrevented:!1}),onFocusOutside:(0,r.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),U=o.forwardRef((e,n)=>{let t=A(T,e.__scopePopover),r=o.useRef(!1),a=o.useRef(!1);return(0,k.jsx)(V,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{e.onCloseAutoFocus?.(n),n.defaultPrevented||(r.current||t.triggerRef.current?.focus(),n.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:n=>{e.onInteractOutside?.(n),n.defaultPrevented||(r.current=!0,"pointerdown"!==n.detail.originalEvent.type||(a.current=!0));let o=n.target,s=t.triggerRef.current?.contains(o);s&&n.preventDefault(),"focusin"===n.detail.originalEvent.type&&a.current&&n.preventDefault()}})}
1),V=o.forwardRef((e,n)=>{let{__scopePopover:t,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:f,...h}=e,g=A(T,t),v=M(t);return(0,c.EW)(),(0,k.jsx)(l.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:a,children:(0,k.jsx)(i.XB,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onDismiss:()=>g.onOpenChange(!1),children:(0,k.jsx)(d.VY,{"data-state":G(g.open),role:"dialog",id:g.contentId,...v,...h,ref:n,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Z="PopoverClose",L=o.forwardRef((e,n)=>{let{__scopePopover:t,...o}=e,a=A(Z,t);return(0,k.jsx)(v.WV.button,{type:"button",...o,ref:n,onClick:(0,r.M)(e.onClick,()=>a.onOpenChange(!1))})});function G(e){return e?"open":"closed"}L.displayName=Z,o.forwardRef((e,n)=>{let{__scopePopover:t,...o}=e,r=M(t);return(0,k.jsx)(d.Eh,{...r,...o,ref:n})}).displayName="PopoverArrow";var H=O,Y=D,z=E,K=F,J=L}}]);

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.