1"use strict";(self.webpackChunkgatsby_starter_website_future=self.webpackChunkgatsby_starter_website_future||[]).push([[2021],{24782:function(e,t,o){o.d(t,{gm:function(){return h},h1:function(){return C},Xz:function(){return b}});var l=o(96540),a=o(69644),n=o(73303),s=o(54827),r=o(30802),c=o(71143),i=o(66536),u=o(48410),d=o(99340),m=o(13793);var _=o(19326),T=o(79331);let b=function(e){return e.LOADING="LOADING",e.FAILED="FAILED",e.LOADED="LOADED",e}({}),N=function(e){return e.EXISTING_MEMBER="EXISTING_MEMBER",e.EXISTING_LEAD="EXISTING_LEAD",e.EXISTING_CLUB_CENTRIC_PROSPECT="EXISTING_CLUB_CENTRIC_PROSPECT",e}({});const h=(0,l.createContext)({selectedSlot:null,setSelectedSlot:()=>{},slots:null,pageState:b.LOADING,setPageState:()=>{},tourDetails:null,setTourDetails:()=>{},clubContactDetails:null,bookSelectedSlot:()=>Promise.resolve(void 0),getAvailableSlots:()=>{},tourType:r.Z.BOOK_A_TOUR}),C=e=>{var t;let o=e.children,C=e.clubMetadata,p=e.cmsData,f=e.location,S=e.tourPageContent,A=e.tourType;const y=(0,l.useState)(null),I=y[0],E=y[1],v=(0,l.useState)(b.LOADING),g=v[0],D=v[1],O=(0,l.useState)((null==f||null===(t=f.state)||void 0===t?void 0:t.memberDetails)||(0,c.Cv)()),Y=O[0],k=O[1],L=(0,a.R)(C.clubId,A),G=L.slots,R=L.getSlots,w=(()=>{const e=(0,i.xs)(s.T.BAT_CONTACT_ID),t=(0,i.xs)(s.T.BAT_SHORTHAND_ENCODED_CONTACT_ID);return e||t})(),U=(()=>{const e=(0,i.xs)(s.T.BAT_CONTACT_TYPE),t=(0,i.xs)(s.T.BAT_SOURCE);switch(e||t){case"lead":return N.EXISTING_LEAD;case"prospect":return N.EXISTING_CLUB_CENTRIC_PROSPECT;case"rejoin":return N.EXISTING_MEMBER}})(),B=null!==(M=(0,i.xs)(s.T.BAT_EXISTING_CONTACT_AUTH_TOKEN))&&void 0!==M?M:null;var M;(0,l.useEffect)(()=>{R({onSuccess:()=>D(b.LOADED),onError:()=>D(b.FAILED)})},[R]),(0,l.useEffect)(()=>{(()=>{if(w&&(U||B)&&A===r.Z.BOOK_A_TOUR){const e=Y;(0,u.Jt)("clubs/"+C.clubId+"/tour/eligible-contacts/"+w+"?contactType="+(null!=U?U:N.EXISTING_LEAD)+(B?"&authToken="+encodeURIComponent(B):"")).then(t=>{e.isExistingContact=!0,e.firstName=t.firstName.trim(),e.contactId=w,e.authToken=B,e.contactType=U,k(e)}).catch(()=>{e.isExistingContact=!1,k(e)})}})()},[w,U]);const x=(0,n.H9)(C.clubId)?p.newSharedContent:p.sharedContent,K={clubEmail:x.clubEmail,clubLocation:x.clubLocation,tourEmailAddresses:x.tourEmailAddresses,bookATourPhoneNumber:S.bookATourPhoneNumber};return(0,T.Y)(h.Provider,{value:{selectedSlot:I,setSelectedSlot:E,slots:G,pageState:g,setPageState:D,tourDetails:Y,clubContactDetails:K,setTourDetails:k,bookSelectedSlot:Y.isExistingContact?async(e,t,o,l)=>(0,_.KA)(C.clubId,I.slotId,Y,null!=U?U:N.EXISTING_LEAD,w,B,e,t,o,l):async(e,t,o,l)=>(0,_.G$)(C.clubId,I.slotId,((e,t,o,l,a)=>{const n=t?(0,d.V)(e.tailorYourTourOptions):null;return{personalDetails:{firstName:e.firstName,lastName:e.lastName,emailAddress:e.emailAddress,phoneNumber:e.phoneNumber,postcode:e.postCode,emailContactPermitted:e.emailContactPermitted,smsContactPermitted:!!e.smsContactPermitted,telephoneContactPermitted:!!e.telephoneContactPermitted,whatsAppContactPermitted:!!e.whatsAppContactPermitted},tourFacilityInterestIds:n,whoIsComing:(0,m.p)(e.whoIsComing),extraDetails:e.anythingElse,enquiry:Object.assign({},o,{emailContact:o.emailAddress,additionalFields:{facilityIds:n}}),captchaToken:l,captchaV3Token:a}})(Y,e,t,o,l)),getAvailableSlots:()=>{D(b.LOADING),R({onSuccess:()=>D(b.LOADED),onError:()=>D(b.FAILED)})},tourType:A}},o)}},27942:function(e,t,o){o.d(t,{A:function(){return g}});var l=o(16522),a=o(96540),n=o(46942),s=o.n(n),r=o(88807),c=o(15931),i=o(12273),u=o(79331);var d=e=>{const t=(0,l.c)(7),o=e.images,n=(0,a.use)(r.Z).isDL;if(null==o||!o.length)return null;let d,m;if(t[0]!==o||t[1]!==n){let e;t[3]!==n?(e=(e,t)=>(0,u.Y)(i.Ay,{key:t,roundedCorners:i.WR.YES,image:e,fadeType:c.A.none,className:s()("cC_lS",0===t&&"cC_lT",n&&"cC_c4")}),t[3]=n,t[4]=e):e=t[4],d=o.map(e),t[0]=o,t[1]=n,t[2]=d}else d=t[2];return t[5]!==d?(m=(0,u.Y)("div",{className:"cC_b2"},(0,u.Y)("div",{className:"cC_lR"},d)),t[5]=d,t[6]=m):m=t[6],m},m=o(14910),_=o(16082),T=o(24782),b=o(99918);var N=e=>{const t=(0,l.c)(23),o=(0,a.use)(r.Z),n=o.buildType,s=o.language,c=a.use(T.gm).tourType,i=(0,a.useState)(void 0),d=i[0],N=i[1];let C,p,f;t[0]!==e?(C=()=>{fetch(e.buttonLink).then(h).then(e=>{N(window.URL.createObjectURL(e))}).catch(t=>{e.onError&&e.onError(t instanceof Error?t:new Error(String(t)))})},p=[e,e.buttonLink],t[0]=e,t[1]=C,t[2]=p):(C=t[1],p=t[2]),(0,a.useEffect)(C,p),t[3]!==n||t[4]!==s||t[5]!==c?(f=()=>{(0,b.He)({buildType:n,language:s,button:null,componentName:"Download File Button",ctaName:"Add to calendar",tourType:(0,b.ch)(c)})},t[3]=n,t[4]=s,t[5]=c,t[6]=f):f=t[6];const S=f;if(d){let o,l,a,s;return t[7]!==n||t[8]!==e.buttonStyle?(o=e.buttonStyle?(0,_.C3)(e.buttonStyle):(0,_.bM)(n),t[7]=n,t[8]=e.buttonStyle,t[9]=o):o=t[9],t[10]!==e.buttonKey||t[11]!==e.buttonText||t[12]!==e.buttonType||t[13]!==e.gtmTrackingId||t[14]!==o?(l=(0,u.Y)(m.l,{buttonClassName:o,buttonKey:e.buttonKey,buttonText:e.buttonText,buttonType:e.buttonType,gtmTrackingId:e.gtmTrackingId}),t[10]=e.buttonKey,t[11]=e.buttonText,t[12]=e.buttonType,t[13]=e.gtmTrackingId,t[14]=o,t[15]=l):l=t[15],t[16]!==d||t[17]!==S||t[18]!==l?(a=(0,u.Y)("a",{target:"_blank",rel:"noopener noreferrer",download:!0,href:d,onClick:S},l),t[16]=d,t[17]=S,t[18]=l,t[19]=a):a=t[19],t[20]!==e.buttonContainerClassName||t[21]!==a?(s=(0,u.Y)("div",{className:e.buttonContainerClassName},a),t[20]=e.buttonContainerClassName,t[21]=a,t[22]=s):s=t[22],s}return null};function h(e){return e.blob()}var C=e=>{const t=(0,l.c)(15),o=e.size,a=e.fill,n=e.svgStyle;let s;t[0]!==n?(s=void 0===n?{}:n,t[0]=n,t[1]=s):s=t[1];const r=s,c=o||"100%",i=o||"100%";let d,m,_,T,b;return t[2]!==c||t[3]!==i?(d={width:c,height:i},t[2]=c,t[3]=i,t[4]=d):d=t[4],t[5]!==r?(m=Object.assign({display:"block"},r),t[5]=r,t[6]=m):m=t[6],t[7]!==a?(_=(0,u.Y)("g",{id:"Atoms/Icons/Location",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},(0,u.Y)("g",{id:"Group-5"},(0,u.Y)("polygon",{id:"Stroke-1",strokeOpacity:"0.0117647061",stroke:a,strokeWidth:"1.33333336e-11",points:"0 0 23.999999 0 23.999999 23.999999 0 23.999999"}),(0,u.Y)("path",{d:"M11.9999993,1.99999988 C8.12999961,1.99999988 4.9999997,5.12999979 4.9999997,8.99999946 C4.9999997,14.2499991 11.9999993,21.9999987 11.9999993,21.9999987 C11.9999993,21.9999987 18.9999989,14.2499991 18.9999989,8.99999946 C18.9999989,5.12999979 15.8699989,1.99999988 11.9999993,1.99999988 Z M11.9999993,11.4999993 C10.6199993,11.4999993 9.49999943,10.3799995 9.49999943,8.99999946 C9.49999943,7.61999944 10.6199993,6.49999961 11.9999993,6.49999961 C13.3799993,6.49999961 14.4999991,7.61999944 14.4999991,8.99999946 C14.4999991,10.3799995 13.3799993,11.4999993 11.9999993,11.4999993 Z",fill:a}))),t[7]=a,t[8]=_):_=t[8],t[9]!==m||t[10]!==_?(T=(0,u.Y)("svg",{style:m,viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},_),t[9]=m,t[10]=_,t[11]=T):T=t[11],t[12]!==d||t[13]!==T?(b=(0,u.Y)("div",{style:d},T),t[12]=d,t[13]=T,t[14]=b):b=t[14],b},p=o(19983),f=o(42177),S=o(48410),A=o(26973),y=o(32316);const I=e=>{const t=(0,l.c)(28),o=e.content,n=e.tourDetails,s=e.slot,c=e.siteId,i=e.titleStaticTextKey,d=(0,A.xl)(),m=a.use(r.Z).language;let _,T,b,h,C,y,I;t[0]!==n.firstName?(_={name:n.firstName},t[0]=n.firstName,t[1]=_):_=t[1],t[2]!==_||t[3]!==i?(T=(0,u.Y)("div",{className:"G_b4"},(0,u.Y)(A.AU,{lookupKey:i,params:_})),t[2]=_,t[3]=i,t[4]=T):T=t[4],t[5]!==m||t[6]!==s.from?(b=(0,f.ER)(s.from,m,"ddd D MMMM"),t[5]=m,t[6]=s.from,t[7]=b):b=t[7],t[8]!==s.from?(h=s.from.format("HH:mm"),t[8]=s.from,t[9]=h):h=t[9],t[10]!==b||t[11]!==h?(C=(0,u.Y)("div",{className:"G_b5"},(0,u.Y)(A.AU,{lookupKey:"dateAtTime",params:{date:b,time:h}})),t[10]=b,t[11]=h,t[12]=C):C=t[12],t[13]!==d?(y=d("addToCalendar"),t[13]=d,t[14]=y):y=t[14],t[15]===Symbol.for("react.memo_cache_sentinel")?(I=(0,S.yt)(),t[15]=I):I=t[15];const E=s.slotId;let v;t[16]!==m?(v=(0,p.Lc)(m),t[16]=m,t[17]=v):v=t[17];const g=I+"/clubs/"+c+"/tour/slot/"+E+"/calendar-invite?language="+v;let D,O,Y;return t[18]!==g||t[19]!==y?(D=(0,u.Y)(N,{buttonText:y,buttonLink:g,buttonContainerClassName:"G_b1"}),t[18]=g,t[19]=y,t[20]=D):D=t[20],t[21]!==o.headerSubtitle?(O=(0,u.Y)("div",{className:"G_b6"},o.headerSubtitle),t[21]=o.headerSubtitle,t[22]=O):O=t[22],t[23]!==D||t[24]!==O||t[25]!==T||t[26]!==C?(Y=(0,u.Y)("div",{className:"G_b3"},T,C,D,O),t[23]=D,t[24]=O,t[25]=T,t[26]=C,t[27]=Y):Y=t[27],Y},E=e=>{const t=(0,l.c)(9),o=e.whatToDo;let a,n,s,r;return t[0]!==o.header?(a=(0,u.Y)("div",{className:"G_cb"},o.header),t[0]=o.header,t[1]=a):a=t[1],t[2]!==o.bullets?(n=o.bullets.map(D),t[2]=o.bullets,t[3]=n):n=t[3],t[4]!==n?(s=(0,u.Y)("ul",{className:"G_cc"},n),t[4]=n,t[5]=s):s=t[5],t[6]!==a||t[7]!==s?(r=(0,u.Y)("div",{className:"G_b9"},a,s),t[6]=a,t[7]=s,t[8]=r):r=t[8],r},v=e=>{const t=(0,l.c)(21),o=e.clubContactDetails,n=a.use(r.Z),s=n.styling,c=n.buildType,i=n.language;let d;t[0]!==c||t[1]!==o.clubLocation.url||t[2]!==i?(d=()=>{(0,b.P)({buildType:c,language:i,linkName:"View in map",linkPath:o.clubLocation.url,componentName:'"View in map" - Tour confirmation Step'})},t[0]=c,t[1]=o.clubLocation.url,t[2]=i,t[3]=d):d=t[3];const m=d;let _,T,N,h,p,f,S,y;return t[4]!==s.colors.bodyText?(_=(0,u.Y)("div",{className:"G_cj"},(0,u.Y)(C,{size:"0.75rem",fill:s.colors.bodyText})),t[4]=s.colors.bodyText,t[5]=_):_=t[5],t[6]===Symbol.for("react.memo_cache_sentinel")?(T=(0,u.Y)("div",{className:"G_cl"},(0,u.Y)(A.AU,{lookupKey:"whereToFindUs"})),t[6]=T):T=t[6],t[7]===Symbol.for("react.memo_cache_sentinel")?(N=(0,u.Y)("br",null),t[7]=N):N=t[7],t[8]!==o.clubLocation.text1||t[9]!==o.clubLocation.text2?(h=(0,u.Y)("div",{className:"G_cm"},o.clubLocation.text1,N,o.clubLocation.text2),t[8]=o.clubLocation.text1,t[9]=o.clubLocation.text2,t[10]=h):h=t[10],t[11]===Symbol.for("react.memo_cache_sentinel")?(p=(0,u.Y)(A.AU,{lookupKey:"viewInMaps"}),t[11]=p):p=t[11],t[12]!==o.clubLocation.url||t[13]!==m?(f=(0,u.Y)("a",{className:"G_cn",href:o.clubLocation.url,"data-gtmid":"book-a-tour-view-in-ma
1ps",target:"_blank",rel:"noopener noreferrer",onClick:m},p),t[12]=o.clubLocation.url,t[13]=m,t[14]=f):f=t[14],t[15]!==h||t[16]!==f?(S=(0,u.Y)("div",{className:"G_ck"},T,h,f),t[15]=h,t[16]=f,t[17]=S):S=t[17],t[18]!==_||t[19]!==S?(y=(0,u.Y)("div",{className:"G_cg"},(0,u.Y)("div",{className:"G_ch"},_,S)),t[18]=_,t[19]=S,t[20]=y):y=t[20],y};var g=e=>{const t=(0,l.c)(19),o=e.clubContactDetails,a=e.tourDetails,n=e.slot,s=e.content,r=e.siteId,c=e.titleStaticTextKey;let i,m,_,T,b,N;return t[0]!==s||t[1]!==r||t[2]!==n||t[3]!==c||t[4]!==a?(i=(0,u.Y)(I,{content:s,tourDetails:a,slot:n,siteId:r,titleStaticTextKey:c}),t[0]=s,t[1]=r,t[2]=n,t[3]=c,t[4]=a,t[5]=i):i=t[5],t[6]!==s.whatToDo?(m=(0,u.Y)(E,{whatToDo:s.whatToDo}),t[6]=s.whatToDo,t[7]=m):m=t[7],t[8]!==o?(_=(0,u.Y)("div",{className:"G_cf"},(0,u.Y)(v,{clubContactDetails:o}),(0,u.Y)(y.A,{clubContactDetails:o})),t[8]=o,t[9]=_):_=t[9],t[10]!==m||t[11]!==_?(T=(0,u.Y)("div",{className:"G_s"},(0,u.Y)("div",{className:"G_b7"},(0,u.Y)("div",{className:"G_b8"},m,_))),t[10]=m,t[11]=_,t[12]=T):T=t[12],t[13]!==s.images?(b=(0,u.Y)(d,{images:s.images}),t[13]=s.images,t[14]=b):b=t[14],t[15]!==i||t[16]!==T||t[17]!==b?(N=(0,u.Y)("div",{className:"G_b2"},i,T,b),t[15]=i,t[16]=T,t[17]=b,t[18]=N):N=t[18],N};function D(e,t){return(0,u.Y)("li",{key:t,className:"G_cd"},e)}},32316:function(e,t,o){o.d(t,{A:function(){return N}});var l=o(16522),a=o(96540),n=o(84511),s=o(83446),r=o(79331);var c=e=>{const t=(0,l.c)(9),o=e.size,a=e.fill,n=o||"100%",c=o||"100%";let i,u,d,m;return t[0]!==n||t[1]!==c?(i={width:n,height:c},t[0]=n,t[1]=c,t[2]=i):i=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,r.Y)("path",{fill:"none",d:"M24 24H0V0h24v24z"}),t[3]=u):u=t[3],t[4]!==a?(d=(0,r.Y)("svg",{className:s.JW,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},u,(0,r.Y)("circle",{fill:a,cx:"12",cy:"12",r:"8"})),t[4]=a,t[5]=d):d=t[5],t[6]!==i||t[7]!==d?(m=(0,r.Y)("div",{style:i},d),t[6]=i,t[7]=d,t[8]=m):m=t[8],m};var i=e=>{const t=(0,l.c)(3),o=e.fill;let a,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,r.Y)("path",{d:"M13.3348158,15.3380481 L9.67280813,15.3380481 C9.66349,14.8571405 9.658831,14.5129666 9.658831,14.3055163 C9.658831,13.2305463 9.79394189,12.4149014 10.0641677,11.8585573 C10.2691666,11.4530861 10.5580244,11.0664799 10.9307497,10.698727 C11.163703,10.4724175 11.6109666,10.0999554 12.272554,9.58132956 C12.8595963,9.11928105 13.250952,8.73267482 13.4466328,8.42149929 C13.6795861,8.05374639 13.796061,7.66242546 13.796061,7.24752475 C13.796061,6.70061018 13.6236781,6.24799802 13.2789072,5.88967468 C12.9341364,5.51249222 12.4635777,5.32390382 11.8672173,5.32390382 C11.1310848,5.32390382 10.5766643,5.61150113 10.203939,6.18670438 C9.9989401,6.51673904 9.89644219,6.95992178 9.89644219,7.51626591 L6.5,7.51626591 C6.51863626,6.43186634 6.70965511,5.5219273 7.07306226,4.7864215 C7.98623921,2.92879788 9.61222888,2 11.9510801,2 C13.0878922,2 14.1408253,2.27816789 15.1099111,2.83451202 C16.0044517,3.34370835 16.6567112,4.06977369 17.066709,5.01272984 C17.3555711,5.66336959 17.5,6.38943494 17.5,7.19094767 C17.5,8.36964286 17.1785293,9.38330552 16.5355781,10.2319661 C16.1535347,10.7317328 15.6224092,11.2314921 14.9421855,11.7312588 C14.3271888,12.1933074 13.9451511,12.5139076 13.796061,12.6930693 C13.4792445,13.0891109 13.3208386,13.6313025 13.3208386,14.3196605 L13.3348158,14.6591231 L13.3348158,15.3380481 Z M11.5457433,17.72843 C12.1700582,17.72843 12.6825478,17.9453066 13.0832274,18.3790665 C13.4559527,18.7845376 13.6423126,19.2937263 13.6423126,19.9066478 C13.6423126,20.5572876 13.4000448,21.0947645 12.9155019,21.5190948 C12.5427766,21.8396999 12.081536,22 11.5317662,22 C10.8888151,22 10.3716665,21.7831233 9.98030496,21.3493635 C9.60757967,20.9438924 9.42121982,20.4488478 9.42121982,19.864215 C9.42121982,19.1852866 9.66348762,18.6336655 10.1480305,18.2093352 C10.5114376,17.8887301 10.9773373,17.72843 11.5457433,17.72843 Z"}),t[0]=a):a=t[0],t[1]!==o?(n=(0,r.Y)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:o},a),t[1]=o,t[2]=n):n=t[2],n},u=o(24782),d=o(88807),m=o(30802),_=o(99918),T=o(26973),b="J_R";var N=e=>{const t=(0,l.c)(29),o=e.clubContactDetails,s=(0,T.xl)(),N=a.use(d.Z),h=N.buildType,C=N.language,p=a.use(u.gm).tourType,f=p===m.Z.BOOK_A_TOUR,S=o.tourEmailAddresses[0]||o.clubEmail;let A;t[0]!==f||t[1]!==s?(A=f?"":"?subject="+encodeURIComponent(s("requestingAClubWelcome")),t[0]=f,t[1]=s,t[2]=A):A=t[2];const y=A,I="mailto:"+(encodeURIComponent(S)+y);let E;
1t[3]!==h||t[4]!==C||t[5]!==p?(E=(e,t)=>()=>{(0,_.P)({buildType:h,language:C,linkName:e,linkPath:t,componentName:"Get in touch info",contactType:e,tourType:(0,_.ch)(p)})},t[3]=h,t[4]=C,t[5]=p,t[6]=E):E=t[6];const v=E;let g,D,O,Y,k,L,G,R;return t[7]===Symbol.for("react.memo_cache_sentinel")?(g=(0,r.Y)("div",{className:"J_cC"},(0,r.Y)(i,{size:"1rem",fill:"currentColor"})),t[7]=g):g=t[7],t[8]===Symbol.for("react.memo_cache_sentinel")?(D=(0,r.Y)("div",{className:"J_cD"},(0,r.Y)(T.AU,{lookupKey:"getInTouch"})),t[8]=D):D=t[8],t[9]!==v||t[10]!==p?(O=p===m.Z.BOOK_A_TOUR&&(0,r.Y)(n.M,{to:"/enquire-now/",handleClick:v("Enquire now","/enquire-now/")},(0,r.Y)("div",{className:b},(0,r.Y)(T.AU,{lookupKey:"enquireNow"}))),t[9]=v,t[10]=p,t[11]=O):O=t[11],t[12]!==o.bookATourPhoneNumber||t[13]!==v||t[14]!==p?(Y=p===m.Z.BOOK_A_TOUR&&(0,r.Y)(a.Fragment,null,(0,r.Y)("a",{className:b,href:"tel:"+o.bookATourPhoneNumber,"data-gtmid":"book-a-tour-phone-number",target:"_blank",rel:"noopener noreferrer",onClick:v("Phone","tel:"+o.bookATourPhoneNumber)},o.bookATourPhoneNumber),(0,r.Y)("div",{className:"J_cH"},(0,r.Y)(c,{size:"0.5rem",fill:"currentColor"}
1))),t[12]=o.bookATourPhoneNumber,t[13]=v,t[14]=p,t[15]=Y):Y=t[15],t[16]!==v||t[17]!==I?(k=v("Email",I),t[16]=v,t[17]=I,t[18]=k):k=t[18],t[19]!==I||t[20]!==S||t[21]!==k?(L=(0,r.Y)("a",{className:b,href:I,"data-gtmid":"book-a-tour-email",target:"_blank",rel:"noopener noreferrer",onClick:k},S),t[19]=I,t[20]=S,t[21]=k,t[22]=L):L=t[22],t[23]!==Y||t[24]!==L?(G=(0,r.Y)("div",{className:"J_cG"},Y,L),t[23]=Y,t[24]=L,t[25]=G):G=t[25],t[26]!==O||t[27]!==G?(R=(0,r.Y)("div",{className:"J_cB"},(0,r.Y)("div",{className:"J_B"},g,(0,r.Y)("div",{className:"J_s"},D,(0,r.Y)("div",{className:"J_cF"},O,G)))),t[26]=O,t[27]=G,t[28]=R):R=t[28],R}},33509:function(e,t,o){var l=o(16522),a=o(96540),n=o(3830),s=o(73303),r=o(88807),c=o(5010),i=o(54827),u=o(55743),d=o(79331);function m(e){return(0,c.E5)((0,s.BH)(e).prodBuildState)}t.A=e=>{const t=(0,l.c)(8),o=e.children,s=e.liveChatEnabled,c=e.abbyChatEnabled,_=(0,a.use)(r.Z).buildType,T=m;let b,N,h;return t[0]!==c||t[1]!==_||t[2]!==s?(b={chatEnabled:s,buildType:_,abbyChatEnabled:c},t[0]=c,t[1]=_,t[2]=s,t[3]=b):b=t[3],t[4]===Symbol.for("react.memo_cache_sentinel")?(N=e=>T(e.siteId)?(0,u.t5)((0,u.e5)("",e.siteId,e.language)):(0,u.Ni)("",e.siteId,e.language,{excludedQueryParams:[i.T.MANAGE_TOUR_BOOKING_ID,i.T.MANAGE_TOUR_AUTH_TOKEN]}),t[4]=N):N=t[4],t[5]!==o||t[6]!==b?(h=(0,d.Y)(n.A,{id:"tour-wizard",snippets:b,onCloseButtonClicked:N},o),t[5]=o,t[6]=b,t[7]=h):h=t[7],h}},54827:function(e,t,o){o.d(t,{T:function(){return l}});let l=function(e){return e.ONLINE_JOINING_ENCODED_CONTACT_ID="c",e.ONLINE_JOINING_EXISTING_CONTACT_AUTH_TOKEN="a",e.ONLINE_JOINING_SOURCE="s",e.ONLINE_JOINING_PROMO_CODE="offer",e.ONLINE_JOINING_COUNTRY_SECTION_LANGUAGE="lang",e.ONLINE_JOINING_FRIENDS_AND_FAMILY_REFERRAL_CODE="referral",e.ONLINE_JOINING_IN_CLUB_SIGNUP="signupRef",e.ONLINE_JOINING_SALES_APPOINTMENT="appointment",e.DIGITAL_SIGNATURE_ENCODED_CONTACT_ID="c",e.DIGITAL_SIGNATURE_AUTH_TOKEN="a",e.CONTACT_VERIFICATION_ENCODED_CONTACT_ID="c",e.LIVE_STREAM_CLASS_INSTANCE_ID="c",e.LIVE_STREAM_SITE_ID="s",e.LIVE_STREAM_VIDEO_ID="v",e.LIVE_STREAM_VIMEO_RECURRING_EVENT="e",e.LIVE_STREAM_VIMEO_OTT="ott",e.QUICK_REGISTRATION_AUTHORISATION_GUID="authGuid",e.BAT_SHORTHAND_ENCODED_CONTACT_ID="c",e.BAT_SOURCE="s",e.BAT_CONTACT_ID="contactId",e.BAT_CONTACT_TYPE="contactType",e.BAT_EXISTING_CONTACT_AUTH_TOKEN="a",e.MANAGE_TOUR_BOOKING_ID="id",e.MANAGE_TOUR_AUTH_TOKEN="authToken",e}({})},56271:function(e,t,o){o.d(t,{A:function(){return Z}});var l=o(58168),a=o(16522),n=o(60851),s=o(96540),r=o(88807),c=o(30802),i=o(30331),u=o(46884),d=o(26973),m=(o(26910),o(95093)),_=o.n(m),T=o(59240);function b(e,t){const o=function(e){const t=function(e){return function(e){const t=_()();return e.filter(e=>e.from.isAfter(t))}(function(e){const t=[],o=(0,T.O)(e,e=>e.from.format("DD:MM:YYYY-HH:mm"));for(const a of o){var l;const e=a[1];t.push(null!==(l=N(e))&&void 0!==l?l:e[0])}return t}(e))}(e);return t.sort((e,t)=>e.from.valueOf()-t.from.valueOf()),t}(e),l=[];for(let a=0;a<t;a++){const e=_()().add(a,"days");l.push({date:e,slots:o.filter(t=>e.isSame(t.from,"day"))})}return function(e){const t=e.findIndex(h);let o=t;for(let l=t+1;l<e.length;l++)h(e[l])&&(o=l);return e.slice(t,o+1)}(l)}function N(e){return e.find(e=>!e.booked)}function h(e){return e.slots.length>0}o(78350),o(30237);var C=o(46942),p=o.n(C),f=o(84511),S=o(300),A=o(73303),y=o(99918),I=o(79846),E=o(9351),v=o(54232),g=o(67549),D=o(39394),O=o(79331);var Y=e=>{const t=(0,a.c)(3),o=e.link;let l,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,O.Y)("div",{className:"ff_f1"},(0,O.Y)(d.AU,{lookupKey:"cantFindASlot"})),t[0]=l):l=t[0],t[1]!==o?(n=(0,O.Y)("div",{className:"ff_t0"},l,(0,O.Y)("div",{className:"ff_sw"},o)),t[1]=o,t[2]=n):n=t[2],n},k=o(42177);var L=e=>{const t=(0,a.c)(12),o=e.selected,l=e.available,n=e.dayMoment,c=e.onClick,i=s.use(r.Z).language,u=o&&"d7_bm",d=!l&&"d7_s8";let m,_,T,b;return t[0]!==u||t[1]!==d?(m=p()("d7_fy",u,d),t[0]=u,t[1]=d,t[2]=m):m=t[2],t[3]!==n||t[4]!==i?(_=(0,k.Yq)(n,i),t[3]=n,t[4]=i,t[5]=_):_=t[5],t[6]!==_?(T=(0,O.Y)("div",{className:"d7_s9"},_),t[6]=_,t[7]=T):T=t[7],t[8]!==c||t[9]!==m||t[10]!==T?(b=(0,O.Y)("div",{className:m,onClick:c}
1,T),t[8]=c,t[9]=m,t[10]=T,t[11]=b):b=t[11],b},G=o(32316),R="cG_lY",w="cG_c1",U="cG_R",B="cG_d",M="cG_l0",x=o(78029);var K=e=>{const t=(0,a.c)(19),o=e.from,l=e.to,n=e.booked,i=e.selected,u=e.original,d=e.onSelect,m=e.tourType,_=void 0!==i&&i,T=void 0!==u&&u,b=(0,s.use)(r.Z),N=b.buildType,h=b.language;let C;t[0]!==N||t[1]!==h||t[2]!==d||t[3]!==m?(C=()=>{(0,y.He)({buildType:N,language:h,button:null,componentName:"Tour Slot Card",tourType:(0,y.ch)(m),ctaName:"Book a slot"}),d()},t[0]=N,t[1]=h,t[2]=d,t[3]=m,t[4]=C):C=t[4];const p=C,f=m===c.Z.BOOK_A_TOUR;let S;t[5]!==n||t[6]!==f||t[7]!==T||t[8]!==_?(S=_?["selected",x.Q.SELECTED]:T?["currentBooking",x.Q.ORIGINAL]:n?["booked",x.Q.INACTIVE]:[f?"bookATour":"bookAClubWelcome",x.Q.ACTIVE],t[5]=n,t[6]=f,t[7]=T,t[8]=_,t[9]=S):S=t[9];const A=S,I=A[0],E=A[1];let v,g;t[10]!==o?(v=o.format("HH:mm"),t[10]=o,t[11]=v):v=t[11],t[12]!==l?(g=l.format("HH:mm"),t[12]=l,t[13]=g):g=t[13];const D=v+" - "+g;let Y;return t[14]!==E||t[15]!==p||t[16]!==I||t[17]!==D?(Y=(0,O.Y)(x.A,{state:E,onSelect:p,leftText:D,staticTextKey:I}),t[14]=E,t[15]=p,t[16]=I,t[17]=D,t[18]=Y):Y=t[18],Y};class P extends s.Component{constructor(e){var t;super(e);const o=null===(t=this.props.selectedSlot)||void 0===t?void 0:t.from;this.state={selectedDate:null!=o?o:null,firstOnScreenDay:0,showLoadingGetInTouch:!1},this.moveOnScreenDaysLeft=this.moveOnScreenDaysLeft.bind(this),this.moveOnScreenDaysRight=this.moveOnScreenDaysRight.bind(this)}componentDidMount(){window.setTimeout(()=>this.setState({showLoadingGetInTouch:!0}),2e4)}onScreenDays(){return this.props.slotsByDay.slice(this.state.firstOnScreenDay,this.state.firstOnScreenDay+this.props.numberOfDatesOnScreen)}selectedDayIsOnScreen(){return this.onScreenDays().map(e=>e.date).filter(e=>e.isSame(this.getSelectedDateWithDefault(),"d")).length>0}canMoveScreenDaysLeft(){return this.state.firstOnScreenDay>0}canMoveScreenDaysRight(){return this.state.firstOnScreenDay+this.props.numberOfDatesOnScreen<this.props.slotsByDay.length}moveOnScreenDaysLeft(){this.canMoveScreenDaysLeft()&&this.setState({firstOnScreenDay:this.state.firstOnScreenDay-1})}moveOnScreenDaysRight(){this.canMoveScreenDaysRight()&&this.setState({firstOnScreenDay:this.state.firstOnScreenDay+1})}datePicker(){const e=this.getSelectedDateWithDefault();return(0,O.Y)("div",{className:"cG_lX"},(0,O.Y)("div",{className:p()(R,!this.canMoveScreenDaysLeft()&&w)},(0,O.Y)(g.A,{size:"2rem",onClick:()=>this.moveOnScreenDaysLeft(),fill:"currentColor"})),this.onScreenDays().map((t,o)=>{const l=t.date.isSame(e,"d");return(0,O.Y)(L,{key:t.date.toString()+"_"+o,selected:l,available:t.slots.length>0,dayMoment:t.date,onClick:()=>this.setState({selectedDate:t.date})})}),(0,O.Y)("div",{className:p()(R,!this.canMoveScreenDaysRight()&&w)},(0,O.Y)(D.A,{size:"2rem",onClick:()=>this.moveOnScreenDaysRight(),fill:"currentColor"})))}getSelectedDateWithDefault(){var e;return this.state.selectedDate||(null===(e=this.props.slotsByDay)||void 0===e?void 0:e[0].date)}getSlotHeaderTextForDate(e,t){const o=t.filter(e=>!e.booked).length,l=this.getSelectedDateWithDefault(),a=[(0,O.Y)(d.AU,{key:"availableSlots",lookupKey:1!==o?"availableSlots":"availableSlot",params:{numberOfSlots:o.toString()}}),(0,O.Y)(s.Fragment,null," ")];return this.selectedDayIsOnScreen()||((0,E.cK)(l)?a.push((0,O.Y)(d.AU,{lookupKey:"today"})):(0,E.ef)(l)?a.push((0,O.Y)(d.AU,{lookupKey:"tomorrow"})):a.push((0,O.Y)(d.AU,{lookupKey:"onDate",params:{date:l.format("ddd DD MMM")}}))),a}slotsForDay(){var e;const t=this.getSelectedDateWithDefault(),o=null===(e=this.props.slotsByDay)||void 0===e?void 0:e.find(e=>e.date.isSame(t,"d"));if(!o)return null;const a=(0,I.i)(o.slots,4),n=this.props,r=n.buildType,i=n.language,u=e=>()=>{(0,y.bq)("Click to "+e,{brand:(0,y.OA)(r),buildType:r,language:i,ctaName:e,component:"Slot Picker"})};return(0,O.Y)(s.Fragment,null,(0,O.Y)("div",{className:"cG_lZ"},this.getSlotHeaderTextForDate(o.date,o.slots)),a.map((e,t)=>(0,O.Y)("div",{key:t},e.flatMap(e=>{var t;return(0,O.Y)(K,(0,l.A)({},e,{key:e.slotId,onSelect:()=>this.props.onSelectSlot(e),tourType:this.props.tourType,selected:!!this.props.selectedSlot&&this.props.selectedSlot.slotId===e.slotId,original:(null===(t=this.props.originalSlot)||void 0===t?void 0:t.slotId)===e.slotId}))}),t<a.length-1||0===t?(0,O.Y)(Y,{link:this.props.tourType===c.Z.BOOK_A_TOUR?(0,O.Y)(f.M,{to:"enquire-now",handleClick:u('"Enquire now" link - Book a tour - Book a slot')},(0,O.Y)("div",{className:U},(0,O.Y)(d.AU,{lookupKey:"getInTouch"}))):(0,O.Y)("a",{className:U,href:"mailto:"+this.props.clubContactDetails.clubEmail+"?subject="+this.props.translate("requestingAClubWelcome"),"data-gtmid":"book-a-welcome-tour-email",target:"_blank",rel:"noopener noreferrer",onClick:u('"Book a welcome tour email" link')},(0,O.Y)(d.AU,{lookupKey:"getInTouch"}))}):null)))}totalNumberOfAvailableSlots(){return this.props.slotsByDay.map(e=>e.slots.filter(e=>!e.booked).length).reduce((e,t)=>
1e+t,0)}render(){return this.props.slotsByDay?this.props.fullBookATourFeature&&0!==this.totalNumberOfAvailableSlots()?(0,O.Y)("div",null,(0,O.Y)("div",{className:"cG_l1"},(0,O.Y)(d.AU,{lookupKey:"selectADate"})),(0,O.Y)("div",{className:"cG_l2"},this.datePicker()),(0,O.Y)("div",{className:"cG_l3"},this.slotsForDay())):(0,O.Y)("div",{className:M},(0,O.Y)("div",{className:B},(0,O.Y)(d.AU,{lookupKey:this.props.tourType===c.Z.BOOK_A_TOUR?"noTourSlotsError":"noClubWelcomeSlotsError"})),(0,O.Y)(G.A,{clubContactDetails:this.props.clubContactDetails})):(0,O.Y)("div",{className:"cG_cs"},(0,O.Y)("div",{className:"cG_ct"},(0,O.Y)(d.AU,{lookupKey:this.props.tourType===c.Z.BOOK_A_TOUR?"loadingTourTimes":"loadingClubWelcomeTimes"})),(0,O.Y)(v.A,null),this.state.showLoadingGetInTouch?(0,O.Y)("div",{className:M},(0,O.Y)("div",{className:B},(0,O.Y)(d.AU,{lookupKey:"slotsTakingAWhileToLoad"})),(0,O.Y)(G.A,{clubContactDetails:this.props.clubContactDetails})):null)}}var H=e=>{const t=(0,a.c)(6),o=(0,d.xl)(),n=s.use(r.Z),c=n.language,i=n.siteId,u=n.buildType;let m;return t[0]!==u||t[1]!==c||t[2]!==e||t[3]!==i||t[4]!==o?(m=(0,O.Y)(S.w,null,t=>(0,O.Y)(P,(0,l.A)({},e,{fullBookATourFeature:(0,A.H9)(i)?t.newFeatures.fullBookATour:t.features.fullBookATour,language:c,buildType:u,translate:o}))),t[0]=u,t[1]=c,t[2]=e,t[3]=i,t[4]=o,t[5]=m):m=t[5],m};const F=e=>{const t=(0,a.c)(28),o=e.clubContactDetails,l=e.clubMetadata,r=e.content,m=e.setSelectedSlot,_=e.selectedSlot,T=e.originalSlot,N=e.slots,h=e.tourType,C=e.buildType,p=e.language,f=s.useState(!1),S=f[0],A=f[1];let y;t[0]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{const e=(0,u.tO)().matches;A(e)},t[0]=y):y=t[0];const I=y;let E,v,g;t[1]!==m?(E=()=>{m(null)},v=[m],t[1]=m,t[2]=E,t[3]=v):(E=t[2],v=t[3]),(0,s.useEffect)(E,v),(0,n.a)(I),t[4]!==N?(g=N&&b(N,14),t[4]=N,t[5]=g):g=t[5];const D=g;let Y,k,L;t[6]!==C||t[7]!==l||t[8]!==r.title||t[9]!==p||t[10]!==h?(Y=r.title?r.title:(0,O.Y)(d.AU,{lookupKey:h===c.Z.BOOK_A_TOUR?"bookYourTourOf":"bookYourClubWelcomeAt",params:{clubName:(0,i.w)(l.clubName,C,p)}}),t[6]=C,t[7]=l,t[8]=r.title,t[9]=p,t[10]=h,t[11]=Y):Y=t[11],t[12]!==Y?(k=(0,O.Y)("div",{className:"F_w"},Y),t[12]=Y,t[13]=k):k=t[13],t[14]!==r.subtitle?(L=(0,O.Y)("div",{className:"F_x"},r.subtitle),t[14]=r.subtitle,t[15]=L):L=t[15];const G=S?3:2;let R,w;return t[16]!==o||t[17]!==T||t[18]!==_||t[19]!==m||t[20]!==D||t[21]!==G||t[22]!==h?(R=(0,O.Y)(H,{clubContactDetails:o,numberOfDatesOnScreen:G,slotsByDay:D,originalSlot:T,selectedSlot:_,onSelectSlot:m,tourType:h}),t[16]=o,t[17]=T,t[18]=_,t[19]=m,t[20]=D,t[21]=G,t[22]=h,t[23]=R):R=t[23],t[24]!==k||t[25]!==L||t[26]!==R?(w=(0,O.Y)("div",{className:"F_t"},(0,O.Y)("div",{className:"F_v"},k,L,R)),t[24]=k,t[25]=L,t[26]=R,t[27]=w):w=t[27],w};var Z=e=>{const t=(0,a.c)(4),o=(0,s.use)(r.Z),n=o.buildType,c=o.language;let i;return t[0]!==n||t[1]!==c||t[2]!==e?(i=(0,O.Y)(F,(0,l.A)({},e,{buildType:n,language:c})),t[0]=n,t[1]=c,t[2]=e,t[3]=i):i=t[3],i}},67549:function(e,t,o){var l=o(16522),a=o(79331);t.A=e=>{const t=(0,l.c)(11),o=e.size,n=e.onClick,s=e.fill;let r,c,i,u,d,m;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r={width:"100%"},t[0]=r):r=t[0],t[1]!==o?(c={display:"block",margin:"auto",width:o,height:o,paddingRight:"0.2rem"},t[1]=o,t[2]=c):c=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.Y)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),u=(0,a.Y)("path",{d:"M0 0h24v24H0z",fill:"none"}),t[3]=i,t[4]=u):(i=t[3],u=t[4]),t[5]!==s||t[6]!==c?(d=(0,a.Y)("svg",{style:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:s},i,u),t[5]=s,t[6]=c,t[7]=d):d=t[7],t[8]!==n||t[9]!==d?(m=(0,a.Y)("div",{style:r,onClick:n},d),t[8]=n,t[9]=d,t[10]=m):m=t[10],m}},78029:function(e,t,o){o.d(t,{Q:function(){return m},A:function(){return _}});var l=o(16522),a=o(77907),n=o(46942),s=o.n(n),r=o(96540),c=o(88807),i=o(90515),u=o(26973),d=o(79331);let m=function(e){return e[e.ACTIVE=0]="ACTIVE",e[e.INACTIVE=1]="INACTIVE",e[e.SELECTED=2]="SELECTED",e[e.ORIGINAL=3]="ORIGINAL",e}({});var _=e=>{const t=(0,l.c)(22),o=e.leftText,n=e.state,_=e.onSelect,T=e.staticTextKey,b=(0,u.xl)(),N=(0,r.use)(c.Z).buildType;let h;t[0]!==N?(h=(0,i.R)(N),t[0]=N,t[1]=h):h=t[1];const C=h;let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=s()("w_bk","fade-in"),t[2]=p):p=t[2];const f=n===m.INACTIVE&&"w_bl",S=n===m.SELECTED&&"w_bm";let A,y,I;t[3]!==f||t[4]!==S?(A=s()("w_B",f,S),t[3]=f,t[4]=S,t[5]=A):A=t[5],t[6]!==o?(y=(0,d.Y)("div",{className:"w_bn"},o),t[6]=o,t[7]=y):y=t[7],t[8]!==T||t[9]!==b?(I=b(T),t[8]=T,t[9]=b,t[10]=I):I=t[10];const E=n===m.SELECTED?a.b.PRIMARY:a.b.TRANSPARENT;let v;t[11]===Symbol.for("react.memo_cache_sentinel")?(v=s()("w_bp"),t[11]=v):v=t[11];const g=n!==m.ACTIVE;let D,O;return t[12]!==C||t[13]!==_||t[14]!==g||t[15]!==I||t[16]!==E?(D=(0,d.Y)("div",{className:"w_bf"},(0,d.Y)(a.U,{brand:C,onClick:_,text:I,style:E,className:v,isDisabled:g})),t[12]=C,t[13]=_,t[14]=g,t[15]=I,t[16]=E,t[17]=D):D=t[17],t[18]!==D||t[19]!==A||t[20]!==y?(O=(0,d.Y)("div",{className:p},(0,d.Y)("div",{className:A},y,D)),t[18]=D,t[19]=A,t[20]=y,t[21]=O):O=t[21],O}}}]); 2//# sourceMappingURL=a8a4d07bbafe9135444eaaba934ecd82136d7f88-2144fe074ef037c86a82.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.