PageSourceSearch

https://www.ifswealth.co.uk/assets/EventSignUp-BDeZlFw4.js

js ifswealth.co.uk collected 2026-10-08 14:30:29 UTC 13,401 bytes, 2 lines download raw bytes

1var $=Object.defineProperty;var D=(a,n,i)=>n in a?$(a,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[n]=i;var T=(a,n,i)=>D(a,typeof n!="symbol"?n+"":n,i);import{j as s,h as x,c as L}from"./styledComponents-n4UW4kpA.js";import{u as q,a as w,b as W}from"./FormHelpText-4ln6uI_r.js";import{a as B}from"./react-C3MRYTMn.js";import{j as M}from"./redux-DEt5ekS8.js";import{F as H,c as z}from"./FormField-BzoiG7mG.js";import{P as S,m as _,g as Q,c as K,q as X,r as Z,ag as J}from"./index-Dbx1gyta.js";import{F as Y,u as ee,f as te,l as se,a as ae,b as ne,d as re,g as ie,t as le,h as ue,p as oe,o as de,x as ce,y as me,z as he,A as be,B as xe,C as ge,r as ve}from"./FormPrivacyPolicy-CBrZlB1T.js";import{F as pe,a as je}from"./FormCheckbox-CakGujzw.js";import{F as ye,W as Ge}from"./FormWizard-D8LvthqE.js";import{F as fe,a as ke,b as Te}from"./FormGroup-BOm6V0xO.js";import{R as we,a as N}from"./FormRadio-CI99F6CV.js";import{P as Se}from"./PostcodeLookup-XgQw4odV.js";import{G as Ne}from"./GoogleRecaptcha-CbN7g8WU.js";import"./Icon-CkZJfHnP.js";import"./buttons.styles-ClYbUcfj.js";import"./polished.esm-CYsXSD1d.js";import"./index-g6qz2-ej.js";import"./brandTextCheck-BtVFi4-W.js";import"./regexHelpers-CqioRAZN.js";import"./Text-DGc87esK.js";import"./urlHelpers-szXc1bAB.js";import"./withClientOnly-SlO7kxqu.js";const Le=x.a.withConfig({displayName:"FormHelper__InteractionLink",componentId:"sc-1ndsbum-0"})([""]),A=a=>{const{fieldName:n,value:i,text:h}=a,[d,o,m]=q(n),{setValue:r}=m;return s.jsx(Le,{onClick:()=>r(i),children:h})};A.propTypes={fieldName:S.string,value:S.oneOfType([S.string,S.number]),text:S.string};const Fe=x.div.withConfig({displayName:"EventSignUpstyle__StyledEventSignup",componentId:"sc-gye2mp-0"})(["",""],({theme:a})=>L(["background:",";border-top:1px solid ",";border-bottom:1px solid ",";padding:"," 0;input[name='addressLookup']{padding-right:10px;+ button{max-width:100px;@media screen and (width <= 320px){max-width:90px;}","{max-width:120px;}}}"],a.colours.background.c,a.colours.accent.keyline,a.colours.accent.keyline,a.spacing.outer.large,_(a.breakpoints.a))),Ce=x.div.withConfig({displayName:"EventSignUpstyle__Wrapper",componentId:"sc-gye2mp-1"})([""," display:flex;justify-content:center;"],Q),Pe=x.div.withConfig({displayName:"EventSignUpstyle__Column",componentId:"sc-gye2mp-2"})(["",""],({theme:a})=>L(["width:100%;","{","}"],_(a.breakpoints.a),K(10,12,4))),Oe=x.h4.withConfig({displayName:"EventSignUpstyle__SignUpTitle",componentId:"sc-gye2mp-3"})(["margin-bottom:0;"]),Re=x.div.withConfig({displayName:"EventSignUpstyle__FormWrapper",componentId:"sc-gye2mp-4"})(["",""],({theme:a})=>L(["margin:"," 0 0;"],a.spacing.inner)),_e=x.div.withConfig({displayName:"EventSignUpstyle__FormInner",componentId:"sc-gye2mp-5"})(["",""],({theme:a})=>L(["background:",";border-left:1px solid ",";border-right:1px solid ",";"],a.colours.background.a,a.colours.accent.keyline,a.colours.accent.keyline)),Ue=x.div.withConfig({displayName:"EventSignUpstyle__UseContactNumber",componentId:"sc-gye2mp-6"})(["",""],({theme:a,$isHidden:n})=>L(["position:relative;bottom:20px;padding:0 20px 10px;","{padding:0 35px 10px;}opacity:",";transition:opacity 0.4s linear 0.5s;"],_(a.breakpoints.b),n?"0":"1")),R=je,Ee=pe,Ie=ye,c=H,l=ke,E=Te,u=fe,I=we,V=Ge,Ve=Ne,Ae=a=>({eventSignupToggle:a.events.eventSignupToggle,eventSignupSubmitted:a.events.eventSignupSubmitted,context:a.page.pageData.context}),$e=a=>({dispatchSignUpSubmitted:n=>a(J(n))}),De=M(Ae,$e),qe=a=>{var d,o,m,r,F,e,C,P,v,O,t,g,p,j,y,G,f,k;const n={},{address:i=!0,showCaptcha:h}=a;if(a.form)return n.title=ee((d=a.form)==null?void 0:d.title.errorText),n.firstName=te((o=a.form)==null?void 0:o.firstName.errorText),n.lastName=se((m=a.form)==null?void 0:m.lastName.errorText),i&&(n.addressLookup=ae((r=a.form)==null?void 0:r.addressLookup.errorText),n.addressLine1=ne((F=a.form)==null?void 0:F.addressLine1.errorText),n.addressLine2=re((e=a.form)==null?void 0:e.addressLine2.errorText),n.addressLine3=ie((C=a.form)==null?void 0:C.addressLine3.errorText),n.townCity=le((P=a.form)==null?void 0:P.townCity.errorText),n.c
1ounty=ue((v=a.form)==null?void 0:v.county.errorText),n.postcode=oe((O=a.form)==null?void 0:O.postcode.errorText)),n.emailAddress=de((t=a.form)==null?void 0:t.emailAddress.errorText),n.telephone=ce((g=a.form)==null?void 0:g.telephone.errorText),n.numberOfGuests=me((p=a.form)==null?void 0:p.numberOfGuests.errorText),n.guestOne=he((j=a.form)==null?void 0:j.guestOne.errorText),n.guestTwo=be((y=a.form)==null?void 0:y.guestTwo.errorText),n.guestThree=xe((G=a.form)==null?void 0:G.guestThree.errorText),n.mobileNumber=ge((f=a.form)==null?void 0:f.mobileNumber.errorText),h&&(n.recaptcha=ve((k=a.form)==null?void 0:k.recaptcha.errorText)),z().shape(n)};class We extends B.Component{constructor(i){super(i);T(this,"confirmationCallback",()=>{});T(this,"updateActiveStep",()=>{});T(this,"submitForm",(i,h)=>{const{form:{endpoint:d},dispatchSignUpSubmitted:o,context:m}=this.props;X.post(d,{...i,context:m},{headers:Z("U0pQOlBhcnRuZXI=","application/json")}).then(r=>{this.setState({formSubmitted:!0,formSubmittedData:r.data}),o(!0),window.dataLayer&&window.dataLayer.push({event:"pageView",pagePath:`${window.location.pathname}/thankyou`})}).catch(r=>{r.response&&this.setState({formError:r.response.data})})});T(this,"formatMobileQuestion",(i,h)=>{const d=i||"";let o;return d.includes("{0}")?o=d.replace("{0}",h):o=`Would you like to use ${h}?`,o});this.state={error:null,isLoaded:!1,address:[],results:[]}}componentWillUnmount(){const{dispatchSignUpSubmitted:i}=this.props;i(!1)}render(){const{formSubmitted:i,formSubmittedData:h,formError:d}=this.state,{title:o,isPartnerScope:m,stepOne:r,stepTwo:F,form:e,eventId:C,eventUrl:P,address:v=!0,showCaptcha:O}=this.props;return s.jsx(Fe,{children:s.jsx(Ce,{children:s.jsxs(Pe,{children:[s.jsx(Oe,{children:o}),s.jsx(Re,{children:i?s.jsx(Ie,{stepThree:F,onClickCallback:this.confirmationCallback,hideFooter:!0,hasBackground:!0}):s.jsx(V,{initialValues:{eventId:C,eventUrl:P,siteId:e==null?void 0:e.siteId,title:"",firstName:"",lastName:"",...v?{addressLookup:"",addressLine1:"",addressLine2:"",addressLine3:"",townCity:"",county:"",postcode:""}:{},emailAddress:"",telephone:"",numberOfGuests:"",guestOne:"",guestTwo:"",guestThree:"",specialRequirements:"",age:"",marketingPreferences:[],mobileNumber:"",recaptcha:""},onSubmit:(t,g)=>this.submitForm(t,g),updateActiveStep:this.updateActiveStep,children:s.jsx(V.Page,{validate:qe(this.props),title:r==null?void 0:r.title,subtitle:r==null?void 0:r.subtitle,buttonNext:r==null?void 0:r.buttonNextLabel,buttonPrev:r==null?void 0:r.buttonPrevLabel,nextStepText:r==null?void 0:r.nextStepText,nextStepError:r==null?void 0:r.nextStepError,formError:d,formSubmitted:i,clearFormButton:!0,headerFooterInverted:!0,children:t=>{var g,p,j,y,G,f,k,U;return s.jsxs(_e,{children:[s.jsx(u,{children:((g=e==null?void 0:e.title)==null?void 0:g.label)&&s.jsx(l,{column:50,children:s.jsx(c,{name:"title",component:"input",label:e==null?void 0:e.title.label,type:"text",error:t.errors.title,touched:t.touched.title,value:t.values.title})})}),s.jsxs(u,{flexColumn:!0,children:[((p=e==null?void 0:e.firstName)==null?void 0:p.label)&&s.jsx(l,{children:s.jsx(c,{name:"firstName",component:"input",label:e==null?void 0:e.firstName.label,type:"text",error:t.errors.firstName,touched:t.touched.firstName,value:t.values.firstName})}),((j=e==null?void 0:e.lastName)==null?void 0:j.label)&&s.jsx(l,{children:s.jsx(c,{name:"lastName",component:"input",label:e==null?void 0:e.lastName.label,type:"text",error:t.errors.lastName,touched:t.touched.lastName,value:t.values.lastName})})]}),v&&(e==null?void 0:e.addressLookup.label)&&s.jsx(Se,{addressLookupData:e==null?void 0:e.addressLookup,addressLine1Data:e==null?void 0:e.addressLine1,addressLine2Data:e==null?void 0:e.addressLine2,addressLine3Data:e==null?void 0:e.addressLine3,townCityData:e==null?void 0:e.townCity,countyData:e==null?void 0:e.county,postcodeData:e==null?void 0:e.postcode,errors:t.errors,values:t.values,touched:t.touched,setAddress:t.setValues,flexColumn:!0}),s.jsxs(u,{flexColumn:!0,children:[s.jsx(l,{children:s.jsx(c,{name:"emailAddress",component:"input",label:(y=e==null?void 0:e.emailAddress)==null?void 0:y.label,type:"text",error:t.errors.emailAddress,touched:t.touched.emailAddress,value:t.values.emailAddress})}),s.jsx(l,{children:s.jsx(c,{name:"telephone",component:"input",label:(G=e==null?void 0:e.telephone)==null?void 0:G.label,type:"text",error:t.errors.telephone,touched:t.touched.telephone,value:t.values.telephone})})]}),s.jsx(u,{children:s.jsx(l,{children:s.jsxs(I,{id:"numberOfGuests",label:e==null?void 0:e.numberOfGuests.label,value:t.values.numberOfGuests,error:t.errors.numberOfGuests,touched:t.touched.numberOfGuests,children:[s.jsx(w,{component:N,name:"numberOfGuests",id:"noGuests",label:e==null?void 0:e.numberOfGuests.optionOneLabel,isGrey:!0}),s.jsx(w,{component:N,name:"numberOfGuests",id:"oneGuest",label:e==null?void 0:e.numberOfGuests.optionTwoLabel,isGrey:!0}),s.jsx(w,{component:N,name:"numberOfGuests",id:"twoGuests",label:e==null?void 0:e.numberOfGuests.optionThreeLabel,isGrey:!0}),s.jsx(w,{component:N,name:"numberOfGuests",id:"threeGuests",label:e==null?void 0:e.numberOfGuests.optionFourLabel,isGrey:!0})]})})}),s.jsxs(E,{isVisible:t.values.numberOfGuests==="oneGuest"||t.values.numberOfGuests==="twoGuests"||t.values.numberOfGuests==="threeGuests",children:[s.jsx(u,{isHidden:!(t.values.numberOfGuests==="oneGuest"||t.values.numberOfGuests==="twoGuests"||t.values.numberOfGuests==="threeGuests"),children:s.jsx(l,{children:s.jsx(c,{name:"guestOne",component:"input",label:e==null?void 0:e.guestOne.label,type:"text",error:t.errors.guestOne,touched:t.touched.guestOne,value:t.values.guestOne,isVisible:t.values.numberOfGuests==="oneGuest"||t.values.numberOfGuests==="twoGuests"||t.values.numberOfGuests==="threeGuests"})})}),s.jsx(u,{isHidden:!(t.values.numberOfGuests==="twoGuests"||t.values.numberOfGuests==="threeGuests"),children:s.jsx(l,{children:s.jsx(c,{name:"guestTwo",component:"input",label:e==null?void 0:e.guestTwo.label,type:"text",error:t.errors.guestTwo,touched:t.touched.guestTwo,value:t.values.guestTwo,isVisible:t.values.numberOfGuests==="twoGuests"||t.values.numberOfGuests==="threeGuests"})})}),s.jsx(u,{isHidden:t.values.numberOfGuests!=="threeGuests",children:s.jsx(l,{children:s.jsx(c,{name:"guestThree",component:"input",label:e==null?void 0:e.guestThree.label,type:"text",error:t.errors.guestThree,touched:t.touched.guestThree,value:t.values.guestThree,isVisible:t.values.numberOfGuests==="threeGuests"})})})]}),s.jsx(u,{children:s.jsx(l,{children:s.jsx(c,{name:"specialRequirements",component:"textarea",rows:"6",label:e==null?void 0:e.specialRequirements.label,placeholder:e==null?void 0:e.specialRequirements.placeholder,helpText:e==null?void 0:e.specialRequirements.helpText,type:"text",error:t.errors.specialRequirements,touched:t.touched.specialRequirements,value:t.values.specialRequirements})})}),!m&&s.jsx(u,{children:s.jsx(l,{children:s.jsx(I,{id:"age",label:e==null?void 0:e.age.label,value:t.values.age,error:t.errors.age,touched:t.touched.age,isStacked:!0,children:((f=e==null?void 0:e.age)==null?void 0:f.options)&&(e==null?void 0:e.age.options.map(b=>s.jsx(w,{component:N,name:"age",id:b.value,label:b.text},`age_${b.value}`)))})})}),!m&&s.jsx(u,{children:s.jsx(l,{children:s.jsx(W,{name:"marketingPreferences",render:b=>s.jsxs(Ee,{error:t.errors.marketingPreferences,touched:t.touched.marketingPreferences,value:t.values.marketingPreferences,label:e==null?void 0:e.marketingPreferences.label,id:"marketingPreferences",helpText:e==null?void 0:e.marketingPreferences.helpText,isStacked:!0,children:[s.jsx(R,{values:t.values.marketingPreferences,arrayHelpers:b,group:"marketingPreferences",inputValue:"email",label:e==null?void 0:e.marketingPreferences.optionOneLabel}),s.jsx(R,{values:t.values.marketingPreferences,arrayHelpers:b,group:"marketingPreferences",inputValue:"post",label:e==null?void 0:e.marketingPreferences.optionTwoLabel}),s.jsx(R,{values:t.values.marketingPreferences,arrayHelpers:b,group:"marketingPreferences",inputValue:"telephone",label:e==null?void 0:e.marketingPreferences.optionThreeLabel}),s.jsx(R,{values:t.values.marketingPreferences,arrayHelpers:b,group:"marketingPreferences",inputValue:"textMessage",label:e==null?void 0:e.marketingPreferences.optionFourLabel})]})})})}),s.jsxs(E,{isVisible:!!t.values.marketingPreferences.includes("textMessage"),children:[s.jsx(u,{isHidden:!t.values.marketingPreferences.includes("textMessage"),children:s.jsx(l,{children:s.jsx(c,{name:"mobileNumber",component:"input",label:e==null?void 0:e.mobileNumber.label,type:"text",error:t.errors.mobileNumber,touched:t.touched.mobileNumber,value:t.values.mobileNumber})})}),t.values.telephone&&s.jsx(Ue,{$isHidden:!t.values.marketingPreferences.includes("textMessage"),children:s.jsx(A,{fieldName:"mobileNumber",value:t.values.telephone,text:this.formatMobileQuestion(e==null?void 0:e.mobileNumber.helpText,t.values.telephone)})})]}),O&&s.jsx(u,{children:s.jsx(l,{children:s.jsx(Ve,{setFieldValue:t.setFieldValue,siteKey:(U=(k=this.props.form)==null?void 0:k.recaptcha)==null?void 0:U.key})})}),s.jsx(u,{children:s.jsx(l,{children:s.jsx(Y,{text:r==null?void 0:r.privacyPolicy})})})]})}})})})]})})})}}const ht=De(We);export{ht as default};
2//# sourceMappingURL=EventSignUp-BDeZlFw4.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.