1import{ed as Ae,j as e,bV as Se,bU as Me,ao as pe,eH as Te,ee as ge,as as re,r as b,ap as Ce,aq as Fe,at as ae,au as Le,q as fe,f8 as Pe,f9 as ke,fa as Ie,fb as ee,fc as W,fX as Be,B as c,S as x,fd as Re,bt as De,bu as B,fY as be,bN as oe,fZ as se,bM as Ne,f_ as $e,f$ as ye,Y as je,e as ve,c as Z,bv as qe,fK as Ee,g0 as Oe,fI as ie,g1 as le,D as ne,F as we,b$ as de,eX as We,ca as K,aP as X,ev as ze,am as N,b9 as _e,g2 as Ue,u as He,n as Ye,f0 as Ge,g3 as Ke,g4 as Xe,J as Je,g5 as Ze,g6 as Qe,bz as Ve,bA as es,aR as J,em as ss,en as ts}from"./index-51b326a0.js";import{s as l}from"./rewardsStyles-359a73c7.js";import{C as rs}from"./index-ba013f4a.js";import{F as ns}from"./FormGroup-c590a0b4.js";const as=Ae(e.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function os(s){return Me("MuiTableSortLabel",s)}const is=Se("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),te=is,ls=["active","children","className","direction","hideSortIcon","IconComponent"],ds=s=>{const{classes:r,direction:h,active:a}=s,p={root:["root",a&&"active"],icon:["icon",`iconDirection${ge(h)}`]};return Le(p,os,r)},cs=pe(Te,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(s,r)=>{const{ownerState:h}=s;return[r.root,h.active&&r.active]}})(({theme:s})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(s.vars||s).palette.text.secondary},"&:hover":{color:(s.vars||s).palette.text.secondary,[`& .${te.icon}`]:{opacity:.5}},[`&.${te.active}`]:{color:(s.vars||s).palette.text.primary,[`& .${te.icon}`]:{opacity:1,color:(s.vars||s).palette.text.secondary}}})),hs=pe("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(s,r)=>{const{ownerState:h}=s;return[r.icon,r[`iconDirection${ge(h.direction)}`]]}})(({theme:s,ownerState:r})=>re({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:s.transitions.create(["opacity","transform"],{duration:s.transitions.duration.shorter}),userSelect:"none"},r.direction==="desc"&&{transform:"rotate(0deg)"},r.direction==="asc"&&{transform:"rotate(180deg)"})),us=b.forwardRef(function(r,h){const a=Ce({props:r,name:"MuiTableSortLabel"}),{active:p=!1,children:u,className:T,direction:n="asc",hideSortIcon:y=!1,IconComponent:g=as}=a,R=Fe(a,ls),L=re({},a,{active:p,direction:n,hideSortIcon:y,IconComponent:g}),P=ds(L);return e.jsxs(cs,re({className:ae(P.root,T),component:"span",disableRipple:!0,ownerState:L,ref:h},R,{children:[u,y&&!p?null:e.jsx(hs,{as:g,className:ae(P.icon),ownerState:L})]}))}),ms=us,{palette:D}=fe,xs={container:{borderRadius:2,border:`0.125rem solid ${D.primary[200]}`,fontSize:"1rem"},headCell:{borderBottom:`0.125rem solid ${D.primary[200]}`},totalPointsCell:{p:0},totalPointsBox:{bgcolor:D.primary[100],p:"1rem",".MuiTypography-root":{fontWeight:700,color:D.primary.main}},totalPoints:{float:"right"},tableBody:{bgcolor:D.grey[100],color:D.primary.main,td:{color:D.primary.main}}},z=xs;function ce(s,r){return s<r?-1:s>r?1:0}function ps(s,r){return(h,a)=>s==="desc"?ce(a[r],h[r]):ce(h[r],a[r])}function gs(s,r){return[...s].sort(r)}const fs=[{id:"date",label:"Details",width:"25%"},{id:"property",label:"Property",width:"35%"},{id:"reward",label:"Reward",width:"30%"},{id:"avios",label:"Avios",aligment:"right"}];function bs({initialRows:s}){const[r,h]=b.useState("asc"),[a,p]=b.useState("date"),u=n=>{h(a===n&&r==="asc"?"desc":"asc"),p(n)},T=s.reduce((n,y)=>n+y.points,0);return e.jsx(Pe,{sx:z.container,children:e.jsxs(ke,{children:[e.jsxs(Ie,{children:[e.jsx(ee,{children:fs.map(n=>e.jsx(W,{sortDirection:a===n.id?r:!1,sx:z.headCell,align:n.aligment,width:n.width,children:e.jsx(ms,{active:a===n.id,direction:a===n.id?r:"asc",onClick:()=>u(n.id),IconComponent:Be,children:n.label})},n.id))}),e.jsx(ee,{children:e.jsx(W,{colSpan:4,sx:z.totalPointsCell,children:e.jsx(c,{sx:z.totalPointsBox,children:e.jsxs(x,{variant:"subtitle1",children:["Total Avios gained",e.jsx(x,{component:"span",color:"primary",sx:z.totalPoints,children:T})]})})})})]}),e.jsx(Re,{sx:z.tableBody,children:gs(s,ps(r,a)).map((n,y)=>e.jsxs(ee,{children:[e.jsx(W,{children:n.date}),e.jsx(W,{children:n.property}),e.jsx(W,{children:n.reward}),e.jsx(W,{align:"right",children:n.points})]},y))})]})})}const ys=[{label:"Mr",value:"Mr"},{label:"Mrs",value:"Mrs"},{label:"Ms",value:"Ms"},{label:"Miss",value:"Miss"},{label:"Mx",value:"Mx"}],js=()=>De({postcode:B().required("Postcode is required").max(8,"Text length should be 8 characters or less").matches(be,"Please enter a valid postcode"),showManualAddress:oe().notRequired(),address:B().when("showManualAddress",{is:!1,then:s=>s.required("Address is required").max(100,"Text length should be 100 characters or less"),otherwise:s=>s.notRequired()}),manualAddress:B().when("showManualAddress",{is:!0,then:s=>s.required("Address is required").max(100,"Text length should be 100 characters or less"),otherwise:s=>s.notRequired()}),town:B().when("showManualAddress",{is:!0,then:s=>s.required("Town is required").max(100,"Text length should be 100 characters or less"),otherwise:s=>s.notRequired()}),confirmation:oe().required(),title:B().required("Title is required"),email:B().required("Email is required").email("Please enter a valid email").max(40,"The text above exceeds the character limit of 40").test("no-special-chars","Please enter a valid email",s=>se(s??"")),phone:Ne().required("Valid phone number required").test("phone-valid","",function(s){const r=$e(`${s}`);return r?this.createError({message:r}):!0}),firstName:B().required("First name is required").max(40,"The text above exceeds the character limit of 40").test("no-special-chars","Cannot contain special characters",s=>se(s??"")&&/^([^0-9]*)$/g.test(s)),lastName:B().required("Last name is required").max(40,"The text above exceeds the character limit of 40").test("no-special-chars","Cannot contain special characters",s=>se(s??"")&&/^([^0-9]*)$/g.test(s))}),{palette:he}=fe,ue={fontSize:"0.875rem",mt:"0.25rem",fontWeight:"bold",padding:0},m={root:{p:"1.5rem",display:"flex",flexDirection:"column",width:{xs:"100vw",md:"35vw"},form:{width:"100%"}},heading:{fontSize:"1.5rem",fontWeight:"bold"},closeIcon:{width:"1rem",cursor:"pointer"},headingBox:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},text:{lineHeight:"1.125rem",mt:"1rem"},fieldWrapper:{mt:"1rem",".Mui-error":ue},checkboxWrapper:{mt:"1rem",pl:"0.5rem",alignItems:"start",".MuiTypography-root":{lineHeight:"1.125rem"},".Mui-error":{...ue,lineHeight:"1rem"}},checkbox:{width:"1.5rem",height:"1.5rem"},submitButton:{mt:"1rem",display:"flex"},successRoot:{height:"stretch"},successContainer:{height:"stretch",width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"2rem"}
1,iconStyling:{fontSize:"8rem",fill:he.primary[200]},successText:{fontSize:"1.5rem",marginBottom:"0.65rem",marginTop:"0.65rem",lineHeight:"1.75rem",fontWeight:700,color:he.primary.main,textAlign:"center"}},me={isOpen:!1,message:"",severity:"warning"},vs=[{inputLabel:{htmlFor:"title",label:"Landlord's Title"},inputField:{name:"title",select:!0,SelectProps:{IconComponent:ye},children:ys.map(s=>e.jsx(je,{value:s.value,children:e.jsx(x,{children:s.label})},s.value))}},{inputLabel:{htmlFor:"firstName",label:"Landlord's First Name"},inputField:{name:"firstName"}},{inputLabel:{htmlFor:"lastName",label:"Landlord's Last Name"},inputField:{name:"lastName"}},{inputLabel:{htmlFor:"phone",label:"Landlord's Phone Number"},inputField:{name:"phone"}},{inputLabel:{htmlFor:"email",label:"Landlord's Email Address"},inputField:{name:"email"}},{inputLabel:{htmlFor:"postcode",label:"Landlord's Postcode"},inputField:{name:"postcode"}}],ws=({handleClose:s,open:r})=>{const h=ve(),{user:a}=Z(t=>t==null?void 0:t.userReducer),{aviosData:p,referFriend:u,loading:T}=Z(t=>t.aviosReducer),{postCodeResultsLoading:n,postCodeResultsError:y,postCodeResults:g}=Z(t=>t.propertiesReducer),[R,L]=b.useState([]),[P,$]=b.useState(me),[H,Y]=b.useState(!1),{values:v,errors:f,touched:M,handleBlur:k,handleChange:q,setFieldValue:C,setFieldError:Q,setFieldTouched:I,handleSubmit:V,resetForm:G}=qe({validationSchema:js,initialValues:{title:"",firstName:"",lastName:"",phone:"",email:"",postcode:"",address:"",showManualAddress:!1,manualAddress:"",town:"",confirmation:!1},onSubmit:t=>{var o,i;const d={contactId:((o=a==null?void 0:a.profile)==null?void 0:o.contactId)||"",username:(a==null?void 0:a.userName)||(a==null?void 0:a.email),aviosMembershipNumber:((i=p==null?void 0:p.data)==null?void 0:i.contactAviosMembershipNumber)||"",friendTitle:t.title,friendFirstName:t.firstName,friendLastName:t.lastName,friendPhoneNumber:t.phone,friendEmail:t.email,friendPostcode:t.postcode,friendAddressLine1:t.showManualAddress?`${t.manualAddress}, ${t.town}`:t.address,confirmedFriendAwareness:t.confirmation};h(Ue(d))}}),E=t=>{t.target.name==="postcode"&&(L([]),C("address",""),I("address",!1),I("showManualAddress",!1),I("manualAddress",!1),I("town",!1),C("showManualAddress",!1),C("manualAddress",""),C("town","")),q(t)},_=b.useCallback(()=>{!v.postcode||f.postcode||!be.test(v.postcode)||h(Ee(v.postcode))},[v.postcode,f.postcode,h]),O=b.useMemo(()=>Oe(_,500),[_]);return b.useEffect(()=>(O(),()=>{O.clear()}),[O]),b.useEffect(()=>{var t,d,o,i,A;(g==null?void 0:g.type)==="postcode"&&!y&&!n&&(!((t=g==null?void 0:g.data)!=null&&t.addresses)||!((o=(d=g==null?void 0:g.data)==null?void 0:d.addresses)!=null&&o.length)?C("showManualAddress",!0):L((i=g==null?void 0:g.data)==null?void 0:i.addresses),h(ie())),y&&!(g!=null&&g.data)&&(h(ie()),$({isOpen:!0,message:((A
1=y==null?void 0:y.data)==null?void 0:A.message)||"Something went wrong.",severity:"error"}))},[n,y,g,h]),b.useEffect(()=>{var t,d,o,i,A,j,F,w,S;!u.loading&&((t=u==null?void 0:u.data)==null?void 0:t.status)===200&&!u.error&&(h(le()),Y(!0)),!u.loading&&(((d=u==null?void 0:u.data)==null?void 0:d.status)>=400||u.error)&&(h(le()),$({isOpen:!0,message:((A=(i=(o=u.error)==null?void 0:o.response)==null?void 0:i.data)==null?void 0:A.message)||((F=(j=u.error)==null?void 0:j.response)==null?void 0:F.message)||((S=(w=u.error)==null?void 0:w.response)==null?void 0:S.statusText)||"Something went wrong.",severity:"error"}))},[u]),b.useEffect(()=>{r||(L([]),Y(!1),$(me),G())},[r]),e.jsxs(e.Fragment,{children:[e.jsxs(ne,{anchor:"right",open:r,onClose:s,children:[e.jsx(we,{darkBg:!0,hasBackdrop:!0,open:(u==null?void 0:u.loading)||T||n}),H?e.jsxs(c,{sx:{...m.root,...m.successRoot},children:[e.jsxs(c,{sx:m.headingBox,children:[e.jsx(x,{sx:m.heading,color:"primary",children:"Introduce a landlord"}),e.jsx(de,{sx:m.closeIcon,onClick:s})]}),e.jsxs(c,{sx:m.successContainer,children:[e.jsx(We,{sx:m.iconStyling}),e.jsx(x,{sx:m.successText,children:"Thanks for your introduction. We'll be in touch shortly."})]})]}):e.jsxs(c,{sx:m.root,children:[e.jsxs(c,{sx:m.headingBox,children:[e.jsx(x,{sx:m.heading,color:"primary",children:"Introduce a landlord"}),e.jsx(de,{sx:m.closeIcon,onClick:s})]}),e.jsxs(x,{sx:m.text,children:["Know a landlord Foxtons hasn't met yet? Introduce them to us, and you'll both collect up to 50,000 Avios."," ",e.jsx("b",{children:"Share their details"})," below and we'll take it from there:"]}),e.jsxs("form",{onSubmit:V,children:[vs.map(({inputField:t,inputLabel:d})=>{const o=t.name,i=M[o]&&f[o];return e.jsxs(c,{sx:m.fieldWrapper,children:[e.jsx(K,{htmlFor:d.htmlFor,children:d.label}),e.jsx(X,{fullWidth:!0,type:"text",...t,onBlur:k,onChange:E,value:v[o],error:!!i,helperText:i})]},d.label)}),R.length?e.jsxs(c,{sx:m.fieldWrapper,children:[e.jsx(K,{sx:m.inputLabel,htmlFor:"address",children:"Landlord's Address"}),e.jsx(X,{select:!0,fullWidth:!0,type:"text",name:"address",value:v.address,onBlur:k,onChange:E,error:!!(f.address&&M.address),helperText:f.address&&M.address?f.address:void 0,SelectProps:{IconComponent:ye},children:R.map(({address:t,postcodeKey:d})=>e.jsx(je,{value:t,children:e.jsx(x,{children:t})},d))})]}):null,v.showManualAddress?e.jsxs(e.Fragment,{children:[e.jsxs(c,{sx:m.fieldWrapper,children:[e.jsx(x,{children:"Failed to find property. Please enter your details manually"}),e.jsx(K,{sx:m.inputLabel,htmlFor:"manualAddress",children:"Landlord's Address"}),e.jsx(X,{fullWidth:!0,type:"text",name:"manualAddress",value:v.manualAddress,onBlur:k,onChange:E,error:!!(f.manualAddress&&M.manualAddress),helperText:f.manualAddress&&M.manualAddress?f.manualAddress:void 0})]}),e.jsxs(c,{sx:m.fieldWrapper,children:[e.jsx(K,{sx:m.inputLabel,htmlFor:"town",children:"Landlord's Town"}),e.jsx(X,{fullWidth:!0,type:"text",name:"town",value:v.town,onBlur:k,onChange:E,error:!!(f.town&&M.town),helperText:f.town&&M.town?f.town:void 0})]})]}):null,e.jsx(rs,{containerStyles:m.checkboxWrapper,sx:m.checkbox,onChange:t=>{C("confirmation",t.target.checked),I("confirmation",!0)},label:e.jsxs(e.Fragment,{children:[e.jsx(x,{children:"I've let them know Foxtons will be in touch about this introduction."}),f.confirmation&&M.confirmation?e.jsx(ze,{error:!0,children:f.confirmation}):null]}),value:v.confirmation}),e.jsx(N,{variant:"primary-dark",type:"submit",sx:m.submitButton,disabled:Object.keys(v).some(t=>t==="showManualAddress"||t==="address"&&v.showManualAddress||(t==="manualAddress"||t==="town")&&!v.showManualAddress?!1:!v[t]),children:"Make your introduction"})]})]})]}),e.jsx(_e,{open:P.isOpen,severity:P.severity,description:P.message,autoHideEnable:!0,anchorOrigin:{vertical:"top",horizontal:"right"},onClose:()=>$(t=>({...t,isOpen:!1}))})]})},As=ws,xe={AVIOS_MEMBERSHIP_ALREADY_EXISTS:"There is another person within My Foxtons with that Avios Membership Number.",default:"Something went wrong."},U=({heading:s,children:r})=>e.jsxs(c,{sx:l.container,children:[s&&e.jsx(x,{sx:l.heading,children:s}),r]});function Fs(){var _,O;const s=ve(),r=He(),{loginWithPopup:h,isLoading:a}=Ye(),{aviosData:p,loading:u,error:T}=Z(t=>t.aviosReducer),[n,y]=b.useState({isOpen:!1,severity:"success",message:""}),[g,R]=b.useState(!1),[L,P]=b.useState(!1),[$,H]=b.useState(!1),[Y,v]=b.useState(!1),[f,M]=b.useState([]),[k,q,C]=b.useMemo(()=>{var o,i,A,j,F;const t=((i=(o=p==null?void 0:p.data)==null?void 0:o.aviosEarnedPoints)==null?void 0:i.map(w=>{const S=w==null?void 0:w.propertyAddress;return{date:Ge(new Date(w==null?void 0:w.redemptionDatetime),"dd MMM yyyy"),property:`${(S==null?void 0:S.addressLine1)||""}${S!=null&&S.addressPostcode?`, ${S==null?void 0:S.addressPostcode}`:""}`,reward:w.rewardTypeName,points:w.redemptionValue}}))||[],d=(j=(A=p.data)==null?void 0:A.tenancies)==null?void 0:j.filter(({isTenancyManaged:w})=>!w);return[(F=p==null?void 0:p.data)==null?void 0:F.contactAviosMembershipNumber,t,d]},[(_=p==null?void 0:p.data)==null?void 0:_.contactAviosMembershipNumber]),Q=()=>{y(t=>({...t,isOpen:!1}))},I=async()=>{try{h({authorizationParams:{prompt:"login"}}).then(()=>r("/account/rewards/callback"))}catch(t){console.error(t)}},V=(t,d)=>{if(t.target.checked)M([...f,d]);else{const o=f.filter(i=>i.instructionId!==d.instructionId);M(o)}},G=()=>{M([]),P(!1)},E=async()=>{try{if(!f.length)return;R(!0);const t=f.map(({instructionId:j,propertyId:F})=>ss({method:"POST",url:`${ts.upgradeToPropertyManagement({instructionId:j,propertyId:F})}`})),o=(await Promise.allSettled(t)).filter(j=>j.status==="rejected").map(j=>{var F,w,S;return{message:j.reason instanceof Error?j.reason.message:String(j.reason),title:(S=(w=(F=j.reason)==null?void 0:F.response)==null?void 0:w.data)==null?void 0:S.title}}),i=o.length>0,A=i?o[0].title||`Something went wrong: ${o[0].message}`:"Upgrade to Property Management sent";y({message:A,isOpen:!0,severity:i?"error":"success"}),R(!1),G()}catch(t){console.error("Error occurred while submitting the request: ",t)}};return b.useEffect(()=>
1{s(Ke())},[]),b.useEffect(()=>{var t,d,o,i,A;T&&(y({message:xe[(A=(i=(o=(d=(t=T==null?void 0:T.response)==null?void 0:t.data)==null?void 0:d.errors)==null?void 0:o[0])==null?void 0:i.errorDetails)==null?void 0:A.BosErrorCode]||xe.default,isOpen:!0,severity:"error"}),s(Xe()))},[T]),e.jsxs(e.Fragment,{children:[e.jsx(Je,{title:"My Foxtons: Rewards",description:"My Foxtons: Rewards"}),e.jsxs(c,{sx:l.root,children:[u||a||g?e.jsx(we,{hasBackdrop:!0,open:!0}):null,e.jsx(Ze,{open:n.isOpen,onClose:Q,autoHideDuration:5e3,anchorOrigin:{vertical:"top",horizontal:"right"},children:e.jsx(Qe,{onClose:Q,severity:n.severity||"success",variant:"filled",children:n.message})}),k?e.jsxs(c,{display:"flex",flexDirection:"column",rowGap:2,children:[e.jsx(ne,{anchor:"right",open:L,onClose:G,children:e.jsxs(c,{sx:l.aviosDrawerContainer,children:[e.jsx(x,{sx:l.heading,children:"Upgrade to Property Management"}),e.jsx(x,{sx:l.subTextDark,children:"Select each Tenancy you would like to begin earning Avios for by upgrading to a professionally managed service."}),e.jsx(c,{children:e.jsx(ns,{children:(O=C.map)==null?void 0:O.call(C,(t,d)=>{const o=!!f.find(j=>j.instructionId===t.instructionId),i=t.propertyAddress,A=`${i.addressLine1}, ${i.addressLine2}, ${i.addressPostcode}`;return e.jsx(Ve,{control:e.jsx(es,{checked:o,onChange:j=>V(j,t)}),label:A},d)})})}),e.jsx(N,{variant:"primary-dark",onClick:()=>E(),disabled:!f.length,sx:l.drawerActionButton,children:"Sign up"})]})}),e.jsx(As,{open:$,handleClose:()=>H(!1)}),e.jsx(ne,{anchor:"right",open:Y,onClose:()=>v(!1),children:e.jsxs(c,{sx:l.aviosDrawerContainer,children:[e.jsx(x,{sx:l.heading,children:"Update your Avios Membership"}),e.jsx(x,{sx:l.subTextDark,children:"Your My Foxtons account is already connected to an Avios account. You can disconnect your currently registered Avios membership and connect a new one. But it is not possible to have two Avios memberships connected to your My Foxtons account at the same time"}),e.jsx(x,{sx:l.currentAccountStyle,children:"Current registered Avios membership number"}),e.jsx(x,{sx:l.currentAviosNumber,children:k}),e.jsx(N,{variant:"primary-dark",onClick:()=>I(),sx:l.drawerActionButton,children:"Update Avios"})]})}),e.jsx(U,{heading:"Your My Foxtons and British Airways Club Account are now connected.",children:e.jsxs(e.Fragment,{children:[e.jsxs(x,{sx:l.subTextDark,children:["You can start collecting Avios on eligible transactions with Foxtons. ",e.jsx(J,{href:"/avios",children:"Terms and conditions"})," ","apply."]}),e.jsxs(c,{sx:l.currentAviosInfo,children:[e.jsx(x,{fontWeight:900,children:"Your membership number:"}),e.jsx(x,{fontWeight:700,children:k}),e.jsx(J,{onClick:()=>v(!0),sx:l.editCta,children:"Edit"})]})]})}),e.jsxs(c,{sx:l.containerWrapper,children:[C.length?e.jsx(c,{sx:l.cardWrapper,children:e.jsx(U,{heading:"Upgrade to Property Management",children:e.jsxs(e.Fragment,{children:[e.jsx(x,{sx:l.subTextDark,children:"If you upgrade your tenancy to Property Management then you can begin earning Avios every month for 12 months."}),e.jsx(c,{sx:l.buttonContainer,children:e.jsx(N,{variant:"primary-dark",onClick:()=>P(!0),children:"Sign up"})})]})})}):null,e.jsx(c,{sx:l.cardWrapper,children:e.jsx(U,{heading:"Make an introduction",children:e.jsxs(e.Fragment,{children:[e.jsx(x,{sx:l.subTextDark,children:"Refer a landlord you know to Foxtons and you'll both collect up to 50,000 Avios."}),e.jsx(c,{sx:l.buttonContainer,children:e.jsx(N,{variant:"primary-dark",onClick:()=>H(!0),children:"Start your introduction"})})]})})})]}),q!=null&&q.length?e.jsx(U,{heading:"Avios earned",children:e.jsx(c,{mt:"1rem",width:"100%",children:e.jsx(bs,{initialRows:q})})}):null]}):e.jsx(U,{heading:"Link your My Foxtons account to your British Airways Club account and begin collecting Avios.",children:e.jsxs(e.Fragment,{children:[e.jsxs(x,{sx:l.subTextDark,children:["Our partnership with Avios means that once your My Foxtons account is connected to your British Airways Club account you can begin collecting Avios on eligible transactions with Foxtons. ",e.jsx(J,{href:"/avios",children:"Terms and conditions"})," apply."]}),e.jsxs(c,{sx:l.buttonContainer,children:[e.jsx(N,{variant:"primary-dark",onClick:()=>I(),children:"Link your British Airways Club account"}),e.jsx(J,{target:"_blank",href:"https://www.avios.com/sign-up",children:e.jsx(N,{variant:"secondary",children:"Sign up for a British Airways Club account"})})]})]})})]})]})}export{Fs as default};
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.