1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4233],{50637:function(e,t,n){"use strict";n.d(t,{K:function(){return bookingConfirmationMessage},R:function(){return BookingFormPage}});var o=n(85893),i=n(24967),r=n.n(i),s=n(93967),a=n.n(s),l=n(11102),c=n(60993),u=n(9008),m=n.n(u),d=n(41664),g=n.n(d),p=n(21084),f=n(29168),h=n(12089),b=n(66142);function bookingConfirmationMessage(){let e=new Date,t=e.getUTCHours(),n=t+((e=>{let t=new Date(Date.UTC(e.getUTCFullYear(),2,31)),n=new Date(Date.UTC(e.getUTCFullYear(),9,31));return t.setUTCDate(t.getUTCDate()-t.getUTCDay()),n.setUTCDate(n.getUTCDate()-n.getUTCDay()),e>=t&&e<n})(e)?1:0);return n>=8&&n<19?"Thank you for submitting your request. We usually respond within 1-2 hours.":"Thank you! We will process your request first thing in the morning and call you back after 8am."}function BookingFormPage(e){let{children:t,pageTitle:n,title:i,subtitle:s,bookingReference:l,onSubmit:c,buttonLabel:u,submitDisabled:m=!1,sectionTitle:d,showTimeline:g=!1,raw:f=!1}=e,h=g||f,b=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"description",content:"Book your same-day appointment at Visithealth, a premier private clinic in Central London. Open daily from 8am to 8pm, offering MRI, GP consultations, X-rays, ultrasounds, and more. Secure your spot online and ensure your health today."}),(0,o.jsx)("meta",{property:"og:title",content:"Book medical services online"}),(0,o.jsx)("meta",{property:"og:description",content:"Private clinic. 8amâ8pm, every day. Same-day MRI, GP appointments, X-ray, ultrasound and more."}),(0,o.jsx)("meta",{property:"og:type",content:"website"}),(0,o.jsx)("meta",{property:"og:image",content:"https://book.visithealth.uk/cover.png"}),(0,o.jsx)("meta",{property:"og:url",content:"book.visithealth.uk"}),(0,o.jsx)("meta",{property:"og:site_name",content:"book.visithealth.uk"}),n&&(0,o.jsx)("title",{children:n})]});return f?(0,o.jsxs)(FormContainer,{title:i,pageTitle:n,headComponents:b,sectionTitle:d,showTimeline:h,children:[t,l&&(0,o.jsxs)("div",{className:r().bookingReference,children:["Your booking reference: ",(0,o.jsx)("code",{children:l})]})]}):(0,o.jsxs)(FormContainer,{title:i,pageTitle:n,headComponents:b,sectionTitle:d,showTimeline:h,children:[i&&!g&&(0,o.jsx)("h2",{className:r().StepTitleHeadline,children:i}),g&&!s?(0,o.jsxs)("div",{className:r().StepSubtitle,children:["Call the number below if you have any questions",(0,o.jsx)("div",{className:r().SubtitlePhone,children:(0,o.jsx)(p.zN,{})})]}):s&&(0,o.jsx)("p",{className:r().StepSubtitle,children:s}),(0,o.jsx)("form",{onSubmit:e=>{e.preventDefault(),null==c||c()},className:a()(r().Form,{[r().TimelineForm]:g}),children:g?(0,o.jsxs)("div",{className:r().TimelineList,children:[t,c&&u&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{}),(0,o.jsx)("div",{className:r().TimelineSubmitCell,children:(0,o.jsx)("button",{className:r().StepButton,type:"submit",disabled:m,children:u})})]})]}):(0,o.jsxs)(o.Fragment,{children:[t,c&&u&&(0,o.jsx)("div",{className:r().StepButtonAligner,children:(0,o.jsx)("button",{className:r().StepButton,type:"submit",disabled:m,children:u})})]})}),l&&(0,o.jsxs)("div",{className:r().bookingReference,children:["Your booking reference: ",(0,o.jsx)("code",{children:l})]})]})}function FormContainer(e){let{children:t,title:n,pageTitle:i,headComponents:s,isH1:u,sectionTitle:d="Book online",showTimeline:_=!1}=e,y=(0,h.d)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(m(),{children:[(0,o.jsx)("title",{children:i||(n?n+" - VisitHealth":"VisitHealth: private clinic, with all major diagnostics and GPs at one place. London")}),(0,o.jsx)("link",{rel:"icon",type:"image/svg+xml",href:"/favicon/favicon.svg"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",href:"/favicon/favicon.png"}),s]}),(0,o.jsxs)("main",{children:[(0,o.jsx)("nav",{className:r().FormPageHeader,children:(0,o.jsxs)("div",{className:r().FormPageHeaderItems,children:[(0,o.jsx)(g(),{href:"/",children:(0,o.jsx)(l.Z.VHLogo,{width:124})}),!b.O&&(0,o.jsx)(p.zN,{})]})}),(0,o.jsxs)("section",{className:a()(r().FormPage,{[r().FormPageTimeline]:_}),children:[(0,o.jsx)(u?"h1":"h2",{children:d}),(0,o.jsx)("article",{className:r().FormItemsContainer,children:t}),!y&&(0,o.jsx)(c.im,{})]}),(0,o.jsx)(f.O,{showDescription:!1,showNavItems:!1,showLogos:!y})]})]})}n(25891),bookingConfirmationMessage()},18087:function(e,t,n){"use strict";async function fetchAPI(e,t){var n;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s="".concat("https://api.visithealth.uk","/api/v1/").concat(e,"/").concat(t,"/"),a={method:o,headers:{"Content-Type":"application/json"}};r.sessionid&&(a.headers.Cookie="sessionid=".concat(r.sessionid)),i&&["POST","PUT","PATCH"].includes(o)&&(a.body=JSON.stringify(i));let l=await fetch(s,a),c=(null===(n=l.headers.get("content-type"))||void 0===n?void 0:n.indexOf("application/json"))===0;return{status:l.status,data:c?await l.json():null,setCookie:l.headers.get("set-cookie")}}async function saveEvent(e){return fetchAPI("log","up","POST",e)}n.d(t,{Io:function(){return fetchAPI},ry:function(){return saveEvent}})},384:function(e,t,n){"use strict";function filterServiceGroups(e,t,n){return e.filter(e=>n.includes(e.slug)).map(e=>({...e,services:e.services.filter(e=>t.includes(e.slug))}))}n.d(t,{E:function(){return filterServiceGroups}})},16009:function(e,t,n){"use strict";n.d(t,{Nd:function(){return ensureSid}
1,rf:function(){return useEnsureSid}});var o=n(31955),i=n(67294),r=n(88773);function ensureSid(){let e=o.Z.get("sid");return e||(e=(0,r.Z)(),o.Z.set("sid",e,{expires:365})),e}function useEnsureSid(){(0,i.useEffect)(()=>{ensureSid()},[])}},24967:function(e){e.exports={FormPageHeader:"booking-form-page_FormPageHeader__fOpg4",FormPageHeaderItems:"booking-form-page_FormPageHeaderItems__jWS30",FormPage:"booking-form-page_FormPage__jzRkh",FormPageTimeline:"booking-form-page_FormPageTimeline__Ze_tl",FormItemsContainer:"booking-form-page_FormItemsContainer__ozVjO",StepTitleHeadline:"booking-form-page_StepTitleHeadline__P9CTC",StepSubtitle:"booking-form-page_StepSubtitle__vTiQS",SubtitlePhone:"booking-form-page_SubtitlePhone__q_W73",bookingReference:"booking-form-page_bookingReference__vBqiG",Form:"booking-form-page_Form__AQyoK",TimelineForm:"booking-form-page_TimelineForm__ROQBb",TimelineList:"booking-form-page_TimelineList__Vq4FP",TimelineSubmitCell:"booking-form-page_TimelineSubmitCell__xsH5U",StepButtonAligner:"booking-form-page_StepButtonAligner__8lkYw",StepButton:"booking-form-page_StepButton__tIk0e"}},88773:function(e,t,n){"use strict";let o;n.d(t,{Z:function(){return esm_browser_v4}});let i="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var r={randomUUID:i};let s=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));var esm_browser_v4=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();e=e||{};let i=e.random??e.rng?.()??function(){if(!o){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");o=crypto.getRandomValues.bind(crypto)}return o(s)}();if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((n=n||0)<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}(i)}}}]);
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.