1"use strict";(self.webpackChunkgatsby_starter_website_future=self.webpackChunkgatsby_starter_website_future||[]).push([[4623],{3830:function(t,n,e){e.d(n,{A:function(){return l}});var r=e(58168),o=e(16522),s=e(51466),u=e(73303),i=e(28592),c=e(99960),a=e(79574),d=e(79331);var l=t=>{const n=(0,o.c)(8),e=t.children,l=t.onCloseButtonClicked,p=t.backgroundColor,f=t.logoWrapper,h=t.snippets,m=t.gaElementId,g=t.id;let y;return n[0]!==p||n[1]!==e||n[2]!==m||n[3]!==g||n[4]!==f||n[5]!==l||n[6]!==h?(y=(0,d.Y)(i.A,null,t=>(0,d.Y)("div",{className:"p_S",style:p?{"--wizard-layout-background":p}:void 0},(0,d.Y)(c.A,{onCloseButtonClicked:()=>l(t),logoWrapper:f}),(0,d.Y)(s.A,{gaElementId:m,clubName:t.isGlobalPage?void 0:(0,u.BH)(t.siteId).clubName,id:g},e),(0,d.Y)(a.A,(0,r.A)({},h,{buildType:t.buildType})))),n[0]=p,n[1]=e,n[2]=m,n[3]=g,n[4]=f,n[5]=l,n[6]=h,n[7]=y):y=n[7],y}},9351:function(t,n,e){e.d(n,{Dl:function(){return h},Oe:function(){return a},RH:function(){return c},S2:function(){return i},T_:function(){return m},cK:function(){return l},eE:function(){return u},ef:function(){return p},nq:function(){return s},yf:function(){return f}});var r=e(95093),o=e.n(r);const s="YYYY-MM-DD",u="ddd DD MMM",i="YYYY-MM-DD HH:mm:ss",c="DD/MM/YYYY",a=7,d={MONDAY:1,TUESDAY:2,WEDNESDAY:3,THURSDAY:4,FRIDAY:5,SATURDAY:6,SUNDAY:7};function l(t){return o()(t).isSame(o()(),"d")}function p(t){return o()(t).isSame(o()().add(1,"day"),"d")}function f(t){return o()(t).isAfter(o()(),"day")}function h(t,n){const e=[t],r=t.clone();for(;n.clone().startOf("day").diff(r.add(1,"day").startOf("day"),"days")>=0;)e.push(r.clone());return e}function m(t,n){const e=function(t,n){const e=g(t,n);return e.isoWeekday()>t.isoWeekday()?e.subtract(1,"week"):e}(t,d.MONDAY),r=function(t,n){const e=g(t,n);return e.isoWeekday()<t.isoWeekday()?e.add(1,"week"):e}(n,d.SUNDAY);return h(e,r)}function g(t,n){return t.isoWeekday()===n?t:t.clone().startOf("isoWeek").add(n-1,"days")}},13793:function(t,n,e){e.d(n,{p:function(){return s}});var r=e(80622);let o=function(t){return t.JustMe="justMe",t.MeAndMyFamily="meAndMyFamily",t.MeAndMyPartner="meAndMyPartner",t}({});const s=t=>{switch(t){case o.JustMe:return r.it.ME;case o.MeAndMyPartner:return r.it.PARTNER;case o.MeAndMyFamily:return r.it.FAMILY;default:return r.it.UNKNOWN}}},19326:function(t,n,e){e.d(n,{G$:function(){return c},KA:function(){return a},Y3:function(){return l},_V:function(){return d},gN:function(){return i},iN:function(){return u}});var r=e(99340),o=e(48410),s=e(13793);const u=async(t,n,e)=>(0,o.Jt)(encodeURI("clubs/"+t+"/tour/slots"+p(n,e))),i=async(t,n,e)=>(0,o.Jt)("clubs/"+t+"/tour/booking/"+n+"?authToken="+e),c=async(t,n,e)=>{await(0,o.yJ)("clubs/"+t+"/tour/slot/"+n+"/book",e)},a=async(t,n,e,u,i,c,a,d,l,p)=>{const f=a?(0,r.V)(e.tailorYourTourOptions):null,h={tourFacilityInterestIds:f,whoIsComing:(0,s.p)(e.whoIsComing),extraDetails:e.anythingElse,enquiry:Object.assign({},d,{emailContact:d.emailAddress,additionalFields:{facilityIds:f}}),memberType:u,encodedContactId:i,authToken:c,captchaToken:l,captchaV3Token:p};await(0,o.yJ)("clubs/"+t+"/tour/slot/"+n+"/book-for-existing-contact",h)},d=async(t,n,e,r,s,u,i,c,a)=>await(0,o.yJ)("clubs/"+t+"/tour/booking/"+n+"?authToken="+e,{tourSlotId:r,language:s,bookATourPhoneNumber:u,clubAddressLine1:i,clubAddressLine2:c,clubAddressMapsLink:a}),l=async(t,n,e,r,s,u,i)=>await(0,o.bE)("clubs/"+t+"/tour/booking/"+n+"/cancel?authToken="+e,{cancellationReason:r,shouldContactToReschedule:s,language:u,bookATourPhoneNumber:i}),p=(t,n)=>{const e=new URLSearchParams;return e.append("type",t),null!==n&&e.append("existingBookingId",n),"?"+e.toString()}},42177:function(t,n,e){e.d(n,{CR:function(){return p},ER:function(){return y},Ks:function(){return h},Mc:function(){return g},Yq:function(){return m},iQ:function(){return A},pY:function(){return f}});var r=e(95093),o=e.n(r),s=(e(27073),e(96540)),u=e(19483),i=e(19983),c=e(9351),a=e(46612),d=e(26973),l=e(79331);function p(t,n){return A(f(t),n)}function f(t){const n=h(t);return Number.isInteger(n)?n:Number.isNaN(n)?"--":n.toFixed(2)}function h(t){return t/100}function m(t,n){const e=o()(t),r=y(e,n,c.eE);return e.isSame(o()(),"d")?(0,l.Y)(d.AU,{lookupKey:"today"}):e.isSame(o()().add(1,"day"),"d")?(0,l.Y)(d.AU,{lookupKey:"tomorrow"}):(0,l.Y)(s.Fragment,null,r)}function g(t,n,e){const r=y(n,e,c.eE),o=(0,c.cK)(n)?t("today"):(0,c.ef)(n)?t("tomorrow"):void 0;return void 0===o?r:(0,a.Ge)(o)+" ("+r+")"}function y(t,n,e){const r=(0,i.Rq)(n).toLowerCase();return o()(t).locale(r).format(e)}function A(t,n){const e=function(t){switch(t){case u.nw.DAVID_LLOYD_BELGIUM:case u.nw.DAVID_LLOYD_GERMANY:case u.nw.DAVID_LLOYD_SPAIN:case u.nw.DAVID_LLOYD_FRA
1NCE:case u.nw.DAVID_LLOYD_IRELAND:case u.nw.DAVID_LLOYD_ITALY:case u.nw.DAVID_LLOYD_NETHERLANDS:case u.nw.MERIDIAN:return"â¬";case u.nw.DAVID_LLOYD_SWITZERLAND:return"CHF ";case u.nw.DAVID_LLOYD_UK:case u.nw.HARBOUR:default:return"£"}}(n);return""+e+t}},51466:function(t,n,e){e.d(n,{A:function(){return p}});var r=e(96540),o=e(91118),s=e(88807),u=e(86451),i=e(75989),c=e(56909),a=e(76160),d=e(79331);class l extends r.Component{constructor(t){super(t),this.context={},this.recordCurrentElementViewedInGa=()=>{const t=this.childComponent();null!=t&&t.props.gaElementId&&(0,i.OU)(this.props.gaElementId,t.props.gaElementId)},this.setHistoryState=()=>{const t=window.history.state,n=null==t?void 0:t[this.props.id];!!n&&null!==n.currentPage&&n.currentPage!==this.state.currentPage&&(this.setState({currentPage:n.currentPage}),(0,u.Y)(this.context.buildType)&&(0,a.Le)({page:window.location.pathname}))},this.childComponent=()=>{const t=this.props.children,n=this.state.currentPage,e=n=>t[n](s).props.gaElementId,s={current:n,next:()=>{const r=Math.min(n+1,t.length-1);n!==t.length-1&&(0,c.Zu)(this.props.id,"currentPage",this.context.buildType,r,e(r)),document.body.scrollTop=document.documentElement.scrollTop=0,this.setState({currentPage:r})},previous:()=>{const t=Math.max(n-1,0);n>0&&(0,c.Zu)(this.props.id,"currentPage",this.context.buildType,t,e(t)),document.body.scrollTop=document.documentElement.scrollTop=0,this.setState({currentPage:t})},set:t=>{(0,c.Zu)(this.props.id,"currentPage",this.context.buildType,t,e(t)),document.body.scrollTop=document.documentElement.scrollTop=0,this.setState({currentPage:t})}},u=this.state.currentPage/(t.length-1),i=100*(this.props.progressRatio?this.props.progressRatio(u):u);return this.props.progressBar&&i>0?(0,d.Y)(r.Fragment,null,(0,d.Y)(o.A,{progressPercentage:i}),(0,d.Y)("div",{className:"Y_dC"},t[this.state.currentPage](s))):t[this.state.currentPage](s)},t.clubName&&(0,i.PZ)({clubName:t.clubName}),this.state={currentPage:this.props.initialPage||0}}componentDidMount(){this.recordCurrentElementViewedInGa(),(0,c.LR)(this.setHistoryState),(0,c.IA)(this.props.id,"currentPage",this.state.currentPage)}componentDidUpdate(t,n){this.state.currentPage!==n.currentPage&&this.recordCurrentElementViewedInGa()}componentWillUnmount(){(0,c.ML)(this.setHistoryState)}render(){return this.childComponent()}}l.contextType=s.Z;var p=l},54232:function(t,n,e){e.d(n,{y:function(){return i},A:function(){return c}});var r=e(16522),o=e(46942),s=e.n(o),u=e(79331);const i=t=>{const n=(0,r.c)(13),e=t.color,o=t.padding,i=t.size,c=t.className;let a;
1n[0]!==c?(a=s()("m_g",c),n[0]=c,n[1]=a):a=n[1];const d=o||"0.1rem";let l;n[2]!==d?(l={"--spinner-padding":d},n[2]=d,n[3]=l):l=n[3];const p=l,f=i||"1rem",h=e||"black";let m;n[4]!==f||n[5]!==h?(m={"--spinner-size":f,"--spinner-color":h},n[4]=f,n[5]=h,n[6]=m):m=n[6];const g=m;let y,A;return n[7]!==g?(y=(0,u.Y)("div",{className:"m_b",style:g,"data-testid":"spinner-inner"}),n[7]=g,n[8]=y):y=n[8],n[9]!==a||n[10]!==p||n[11]!==y?(A=(0,u.Y)("div",{className:a,style:p},y),n[9]=a,n[10]=p,n[11]=y,n[12]=A):A=n[12],A};var c=i},56909:function(t,n,e){e.d(n,{D1:function(){return i},IA:function(){return c},LR:function(){return a},ML:function(){return d},Zu:function(){return u}});var r=e(86451),o=e(76160),s=e(66536);function u(t,n,e,u,i){const c=(0,s.ot)("page",i);(0,r.Y)(e)&&(0,o.Le)({page:c}),window.history.pushState({[t]:{[n]:u}},"",c)}function i(t,n,e){window.history.pushState(Object.assign({},window.history.state,{[t]:{[n]:e}}),"",window.location.toString())}function c(t,n,e){const r=window.history.state;(!(null!=r&&r[t])||null===r[t][n])&&function(t,n,e){window.history.replaceState(Object.assign({},window.history.state,{[t]:{[n]:e}}),"",window.location.toString())}(t,n,e)}function a(t){window.addEventListener("popstate",t)}function d(t){window.removeEventListener("popstate",t)}},69644:function(t,n,e){e.d(n,{R:function(){return c}});var r=e(16522),o=e(95093),s=e.n(o),u=e(96540),i=e(19326);const c=(t,n,e)=>{const o=(0,r.c)(7),s=void 0===e?null:e,c=(0,u.useState)(null),d=c[0],l=c[1];let p;o[0]!==s||o[1]!==t||o[2]!==n?(p=e=>{l(null),(0,i.iN)(t,n,s).then(t=>{const n=t.slots.map(a);l(n),void 0!==(null==e?void 0:e.onSuccess)&&e.onSuccess(n)}).catch(t=>{console.error(t),void 0!==(null==e?void 0:e.onError)&&e.onError(t)})},o[0]=s,o[1]=t,o[2]=n,o[3]=p):p=o[3];const f=p;let h;return o[4]!==f||o[5]!==d?(h={slots:d,getSlots:f},o[4]=f,o[5]=d,o[6]=h):h=o[6],h};function a(t){return{key:t.slotId,slotId:t.slotId,from:s()(t.from),to:s()(t.to),booked:!!t.isBooked}}},79846:function(t,n,e){e.d(n,{i:function(){return r}});const r=(t,n)=>t.reduce((t,e,r)=>{const o=Math.floor(r/n);return void 0===t[o]&&(t[o]=[]),t[o].push(e),t},[])},80622:function(t,n,e){e.d(n,{LC:function(){return r},it:function(){return o}});let r=function(t){return t.MEMBERSHIP_IS_FOR="MEMBERSHIP_IS_FOR",t.GOALS="GOALS",t.OTHER="OTHER",t}({}),o=function(t){return t.ME="ME",t.PARTNER="PARTNER",t.FAMILY="FAMILY",t.UNKNOWN="UNKNOWN",t}({})},91118:function(t,n,e){e.d(n,{A:function(){return u}});var r=e(16522),o=e(96540),s=e(79331);var u=t=>{const n=(0,r.c)(7),e=t.progressPercentage+"%";let u;n[0]!==e?(u={"--progress-bar-progress":e},n[0]=e,n[1]=u):u=n[1];const i=u;let c,a,d;return n[2]!==i?(c=(0,s.Y)("div",{id:"wizard-progress-bar",className:"dr_q6"},(0,s.Y)("div",{className:"dr_q7",style:i})),n[2]=i,n[3]=c):c=n[3],n[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.Y)("div",{className:"dr_W"}),n[4]=a):a=n[4],n[5]!==c?(d=(0,s.Y)(o.Fragment,null,c,a),n[5]=c,n[6]=d):d=n[6],d}},98803:function(t,n,e){e.d(n,{e:function(){return a}});var r=e(58168),o=e(16522),s=e(84537),u=e(62312),i=e(40444),c=e(79331);const a=t=>{const n=(0,o.c)(9),e=t.pageContext,a=t.seo,d=t.shouldExcludeSnippets,l=t.shouldPreventBrowserTranslation;let p,f,h;return n[0]!==a||n[1]!==l?(p=(0,c.Y)(u.A,(0,r.A)({},a,{shouldPreventBrowserTranslation:l})),n[0]=a,n[1]=l,n[2]=p):p=n[2],n[3]!==d?(f=!d&&(0,c.Y)(s.j,null),n[3]=d,n[4]=f):f=n[4],n[5]!==e||n[6]!==p||n[7]!==f?(h=(0,c.Y)(i.A,{pageContext:e},p,f),n[5]=e,n[6]=p,n[7]=f,n[8]=h):h=n[8],h}}}]); 2//# sourceMappingURL=b62c08804d306e017fbeacbcab93b73f9c047733-bfe93c9c65e4c412d7f5.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.