1(this["webpackJsonpmxp-client-service"]=this["webpackJsonpmxp-client-service"]||[]).push([[20],{1899:function(e,t,a){"use strict";a.r(t),a.d(t,"FcmaPageCredentialApplication",(function(){return Ie}));var n=a(0),o=a.n(n),i=a(1),l=a(7),r=a(15),s=a(47),c=a(2),d=a(4),m=a(63),u=a(5),h=a(14),p=a(22),b=a(32),g=a(10),v=a(11),f=a(28),O=a(21),y=a(2077),E=a(2080),A=a(3),C=a(31),j=a(17),I=a.n(j),x=a(811),T=a(818),P=a(8),R=a(71),S=a(105),$=a(78);const k=e=>o.a.createElement(A.tb,{open:e.isOpen,onClose:e.onClose,heading:"Email address for magazines",testId:"delivery-magazine-modal",oneOption:!0,confirmNode:o.a.createElement(M,{size:A.g.sizes.small,variant:A.g.variants.primary,testId:"delivery-magazine-confirm",onClick:e.confirmation,loading:e.isLoading},"Confirm")},o.a.createElement(L,null,"Your primary email address will be used as the delivery email address for the magazine(s).")),M=Object(i.d)(A.f)` 2 &&&&& { 3 padding: ${e=>`${e.theme.pxToRem(4)} ${e.theme.pxToRem(32)}`}; 4 } 5`,L=i.d.p` 6 margin-top: ${e=>""+e.theme.pxToRem(28)} !important; 7 line-height: 1.57; 8 text-align: center; 9`;var N=a(20),w=a(58);const D=Object.values(P.CheckoutCountriesListHash).map((e,t)=>({key:t,value:e.text,text:e.text,image:e.image})),z=Object.values(P.CheckoutCountriesListHash).map((e,t)=>({key:t,value:"+"+e.countryCode,text:("+"+e.countryCode).replace("*","")})),_=i.d.div` 10 padding: ${e=>e.theme.pxToRem(20)}; 11 * { 12 font-family: ${e=>e.theme.fontFamily}; 13 font-stretch: normal; 14 font-style: normal; 15 line-height: 1.5; 16 17 .ui.search.dropdown > input.search { 18 z-index: 0; 19 } 20 .ui.dropdown .menu > .item:hover { 21 z-index: 0; 22 } 23 .ui.search.dropdown > .text { 24 z-index: 0; 25 } 26 } 27 28 ${e=>e.theme.mediaQueries.mobileOnly} { 29 padding-left: 0; 30 padding-right: 0; 31 } 32`,F=i.d.h1` 33 margin-bottom: ${e=>e.theme.pxToRem(16)}; 34 font-size: ${e=>e.theme.fontSizes.xl}; 35 font-weight: ${e=>e.theme.fontWeights.light}; 36 color: ${e=>e.theme.colors.neutralGrey8}; 37`,B=i.d.div` 38 margin-top: ${e=>e.theme.pxToRem(15)}; 39 font-size: ${e=>e.theme.fontSizes.s}; 40 font-weight: ${e=>e.theme.fontWeights.light}; 41 color: ${e=>e.theme.colors.neutralGrey8}; 42`,U=Object(i.d)(T.a)` 43 width: ${e=>e.theme.pxToRem(451)}; 44 padding-bottom: ${e=>e.theme.pxToRem(60)}; 45`,V=Object(i.d)(C.G)` 46 .divider.text { 47 cursor: pointer !important; 48 49 .ui.image { 50 margin-top: ${e=>e.theme.pxToRem(-4)} !important; 51 } 52 } 53`,Y=i.d.p` 54 margin-top: ${e=>e.theme.pxToRem(4)} !important; 55 font-size: ${e=>e.theme.fontSizes.xxs}; 56 color: ${e=>e.theme.colors.neutralGrey5}; 57`,G=i.d.div` 58 width: 100%; 59 margin-top: ${e=>e.theme.pxToRem(10)}; 60 display: flex; 61 flex-direction: row; 62 flex-wrap: wrap; 63`,q=i.d.div` 64 display: flex; 65 flex-direction: column; 66 z-index: 1; 67`,Q=i.d.div` 68 display: flex; 69 flex-direction: column; 70 flex-grow: 100; 71`,W=i.d.div` 72 margin-right: ${e=>e.theme.pxToRem(2)}; 73`,H=Object(i.d)(A.jb)` 74 display: flex; 75 height: ${e=>e.theme.pxToRem(24)}; 76 font-size: ${e=>e.theme.fontSizes.s}; 77 font-weight: ${e=>e.theme.fontWeights.regular}; 78 color: ${e=>e.theme.colors.neutralGrey8}; 79 margin-top: ${e=>e.theme.pxToRem(18)} !important; 80`,J=i.d.div` 81 height: 100%; 82 display: flex; 83 justify-content: space-between; 84 align-items: center; 85 86 & > div + div { 87 margin-left: ${e=>e.theme.pxToRem(18)}; 88 } 89`,K=i.d.div` 90 display: block; 91 flex-grow: 100; 92 flex: 1; 93`,X=i.d.label` 94 display: flex; 95 height: ${e=>e.theme.pxToRem(24)}; 96 margin-top: ${e=>e.theme.pxToRem(16)}; 97 margin-bottom: ${e=>e.theme.pxToRem(10)}; 98 font-size: ${e=>e.theme.fontSizes.s}; 99 color: ${e=>e.theme.colors.neutralGrey8}; 100`,Z=Object(i.d)(A.f)` 101 height: ${e=>e.theme.pxToRem(48)}; 102 font-size: ${e=>e.theme.fontSizes.m}; 103 width: ${e=>e.theme.pxToRem(265)}; 104 margin-top: ${e=>e.theme.pxToRem(48)}; 105`,ee=Object(i.d)(R.a)` 106 flex: 0 0 ${e=>e.theme.pxToRem(24)}; 107 width: ${e=>e.theme.pxToRem(24)}; 108 height: ${e=>e.theme.pxToRem(24)}; 109`,te=Object(i.d)(A.wb)` 110 margin-top: ${e=>e.theme.pxToRem(24)}; 111`,ae=i.d.div` 112 padding: ${e=>e.theme.pxToRem(20)}; 113`,ne=i.d.div` 114 color: ${e=>e.theme.colors.interfaceRed}; 115 font-size: ${e=>e.theme.fontSizes.xxs}; 116`,oe=Object(i.d)(S.a)` 117 &&&&& { 118 ${e=>e.theme.mediaQueries.mobileOnly} { 119 margin-bottom: ${e=>e.theme.pxToRem(16)}; 120 } 121 } 122`,ie=i.d.div` 123 input:hover { 124 cursor: pointer; 125 } 126`;var le=a(48),re=a(57);const se=Object(l.c)(e=>
126({personalDetail:Object(g.Vc)(e),customerProfileFetched:Object(g.Y)(e),customerProfileFetchSuccess:Object(g.X)(e),personAccountUpdateLoading:Object(g.ed)(e),personAccountUpdateSuccess:Object(g.fd)(e),isAddressValid:Object(g.Mb)(e),personAccountSSValidationReason:Object(g.cd)(e),personAccountSSSuggestions:Object(g.ad)(e),personAccountSSValidationFetched:Object(g.bd)(e),isAddressValidationModalOpen:Object(re.n)(e),personAccountIsSecondaryAddressNeeded:Object(g.Zc)(e),personAccountSmartystreetsValidationSkipped:Object(g.dd)(e),isAddressValidationLoading:Object(g.Nb)(e),membershipApplicationType:Object(f.L)(e),applicationPart:Object(f.Ob)(e)}),e=>({updatePersonAccount(t,a){e(Object(N.Mc)()),e(Object(N.ad)(t,a,!0)),e(Object(s.d)(Object(d.getPath)(u.Lb.FCMA_CREDENTIAL_APPLICATION_FORM_EMPLOYMENT)))},toggleModalAddressValidation(t){e(Object(le.L)({isAddressValidationModalOpen:t}))},async validateAddress(t){e(Object(N.rd)()),await e(Object(N.qd)(t))},async setSuggestedAddress(t){await e(Object(N.tc)(t))}}))(({personalDetail:e,customerProfileFetched:t,customerProfileFetchSuccess:a,personAccountUpdateLoading:i,personAccountUpdateSuccess:s,isAddressValid:m,personAccountSSValidationReason:h,personAccountSSSuggestions:p,personAccountSSValidationFetched:v,isAddressValidationModalOpen:f,personAccountIsSecondaryAddressNeeded:O,isAddressValidationLoading:y,applicationPart:E,updatePersonAccount:j,toggleModalAddressValidation:T,validateAddress:R,setSuggestedAddress:S})=>{var M;const L=Object(r.i)(),le=Object(l.d)(),re=Object(n.useRef)(null),[se,ce]=Object(n.useState)(!1),[de,me]=Object(n.useState)(e),[ue,he]=Object(n.useState)(!1),[pe,be]=Object(n.useState)(!1),[ge,ve]=Object(n.useState)(!1),[fe,Oe]=Object(n.useState)(!1),[ye,Ee]=Object(n.useState)(!1),[Ae,Ce]=Object(n.useState)(!1),je=Object(l.e)(g.o),Ie=Object(l.e)(b.k),xe=Object(l.e)(g.O),Te=h===c.SmartyStreets.ValidationReason.INVALID,Pe=de.primaryEmail,Re=!Boolean(null===Pe||void 0===Pe?void 0:Pe.emailAddress),Se=P.Utils.isEmailFormatValid(null===Pe||void 0===Pe?void 0:Pe.emailAddress),$e=!Boolean(null===Pe||void 0===Pe?void 0:Pe.emailType),ke=de.primaryPhone,Me=!Boolean(null===ke||void 0===ke||null===(M=ke.phoneNumber)||void 0===M?void 0:M.length),Le=P.Utils.isNumericStringWithSpace(null===ke||void 0===ke?void 0:ke.phoneNumber),Ne=de.address,we=!Boolean(null===Ne||void 0===Ne?void 0:Ne.addressLine1),De=!Boolean(null===Ne||void 0===Ne?void 0:Ne.addressLine2),ze=!O||!De,_e=!Boolean(null===Ne||void 0===Ne?void 0:Ne.city),Fe=Boolean((null===Ne||void 0===Ne?void 0:Ne.country)===P.CheckoutCountriesListHash.USA.text),Be=!Boolean(null===Ne||void 0===Ne?void 0:Ne.zipCode),Ue=I()().diff(de.birthDate,"years"),Ve=Ue,Ye=I()(de.birthDate).isValid()&&Ue>13,Ge="Your Date of Birth does not meet the eligibility requirements",qe=!Boolean(de.lastName),Qe=!Boolean(de.firstName),We=!Boolean(de.nationality),He=!Boolean(de.salutation),Je=I()(xe===(null===de||void 0===de?void 0:de.cimaAssocDate)?de.cimaAssocDate:xe||de.cimaAssocDate).isValid(),Ke={addressLine1:Ne.addressLine1,addressLine2:Ne.addressLine2,city:Ne.city,state:Ne.state,zipCode:Ne.zipCode,country:Ne.country};Object(n.useEffect)(()=>{Oe(!!(null===E||void 0===E?void 0:E.welcomeKit))},[]),Object(n.useEffect)(()=>{t&&(a?(me(e),ce(!0)):be(!0))},[t,a]),Object(n.useEffect)(()=>{v&&!y&&m&&Ae&&!s&&!i&&(be(!0),d.Scroller.scrollToTop())},[v,i]),Object(n.useEffect)(()=>{v&&Te&&!y&&!m?(Ee(!0),be(!0),d.Scroller.scrollToTop()):m&&Ae&&(fe?(gt(),d.Scroller.scrollToTop()):(le(Object(N.Pc)({...je,applicationPart:{...je.applicationPart},applicationProgress:c.User.MembershipApplicationStages.PERSONAL})),j(de,fe)))},[v,y,Ae]),Object(n.useEffect)(()=>{he(!He&&Ye&&!qe&&!Qe&&!We&&!we&&!_e&&(!Fe||Fe&&!Be)&&!Me&&Le&&!Re&&Se&&!$e&&Je)},[de,He,Ye,qe,Qe,We,we,_e,Fe,Be,Me,Le,Re,Se,$e,Je,he]),Object(n.useEffect)(()=>{v&&!y&&O&&De&&(null===re||void 0===re?void 0:re.current)&&re.current.focus()},[v,y]);const Xe=o.a.useCallback(e=>{me({...de,primaryEmail:{...Pe,emailAddress:e.target.value}})},[de,Pe,me]),Ze=o.a.useCallback((e,t)=>{me({...de,primaryPhone:{...ke,countryCode:t.value}})},[de,ke,me]),et=o.a.useCallback(e=>{var t;const a=e.target.value;/[a-z]/i.test(a)||/[!@#$%^&*`~()_+\-=\[\]{};':"\\|,.<>\/?]+/.test(a)||me({...de,primaryPhone:{...ke,phoneNumber:null===e||void 0===e||null===(t=e.target)||void 0===t?void 0:t.value}})},[de,ke,me]),tt=o.a.useCallback(e=>{me({...de,address:{...Ne,addressLine1:e.target.value}})},[de,Ne,me]),at=o.a.useCallback((e,t)=>{const a=t.value;
126me({...de,salutation:a})},[de,me]),nt=o.a.useCallback(e=>{e.preventDefault()},[]),ot=o.a.useCallback(e=>{me({...de,lastName:e.target.value})},[de,me]),it=o.a.useCallback(e=>{me({...de,firstName:e.target.value})},[de,me]),lt=o.a.useCallback(e=>{me({...de,nationality:e.target.value})},[de,me]),rt=o.a.useCallback(e=>{var t;me({...de,primaryPhone:{...ke,areaCode:null===e||void 0===e||null===(t=e.target)||void 0===t?void 0:t.value}})},[de,ke,me]),st=o.a.useCallback(e=>{var t;me({...de,primaryPhone:{...ke,extension:null===e||void 0===e||null===(t=e.target)||void 0===t?void 0:t.value}})},[de,ke,me]),ct=o.a.useCallback(e=>{me({...de,address:{...Ne,addressLine2:e.target.value}})},[de,Ne,me]),dt=o.a.useCallback(e=>{me({...de,address:{...Ne,city:e.target.value}})},[de,Ne,me]),mt=o.a.useCallback(e=>{me({...de,address:{...Ne,state:e.target.value}})},[de,Ne,me]),ut=o.a.useCallback(e=>{me({...de,address:{...Ne,zipCode:e.target.value}})},[de,Ne,me]),ht=o.a.useCallback((e,t)=>{const a=t.value;me({...de,address:{...Ne,country:a}})},[de,Ne,me]),pt=o.a.useCallback(e=>{me({...de,birthDate:(null===e||void 0===e?void 0:e.format("YYYY-MM-DD"))||""})},[de,me]),bt=o.a.useCallback(e=>{me({...de,cimaAssocDate:(null===e||void 0===e?void 0:e.format("YYYY-MM-DD"))||""})},[de,me]),gt=()=>{ve(!ge)};return o.a.createElement(o.a.Fragment,null,o.a.createElement($.B,{shippingAddress:Ke,reason:h,shippingSuggestions:p,billingAddress:null,billingReason:null,billingSuggestions:[],loading:!1,smartyValidationFetched:v,isAddressValidationModalOpen:f,isRaveCheckout:!1,toggleModalAddressValidation:T,validateAddress:R,setSuggestedAddress:S}),o.a.createElement(_,null,ge&&o.a.createElement(k,{isOpen:ge,onClose:gt,confirmation:()=>{j(de,fe)},isLoading:i}),o.a.createElement(oe,{backText:"Back",onClick:()=>{L.push(Object(r.g)(Object(d.getPath)(u.Lb.STATIC_LANDING_PAGES),{category:c.Content.CategorySlugs.MEMBERSHIP,slug:null===Ie||void 0===Ie?void 0:Ie[w.a.FCMA_MEMBERSHIP_LANDING_PAGE]}))}}),o.a.createElement(F,null,"Personal details"),o.a.createElement(x.a,null),o.a.createElement(B,null,se&&o.a.createElement(te,{testId:"membership-application-personal-form-info",childrenTestId:"membership-application-personal-form-info-children",variant:A.xb.variant.blue,icon:o.a.createElement(ee,null)},"Your details will be added to the Membership and Credential Holder Directory."),pe&&o.a.createElement(te,{testId:"membership-application-personal-form-error",childrenTestId:"membership-application-personal-form-error-children",variant:A.xb.variant.red,icon:o.a.createElement(ee,null)},ye?o.a.createElement(o.a.Fragment,null,"Sorry, we\u2019re unable to verify your address. Please edit the address and try again. If your address is valid and you are still experiencing this error, please contact us through the chat icon on the right or schedule a chat appointment through our"," ",o.a.createElement(A.nb,{isExternal:!0,to:Object(d.getPath)(u.Lb.HELP),testId:"ei-question-us-phone"},"help page"),"."):o.a.createElement(o.a.Fragment,null,"Uh oh. Something went wrong, please try again.")))),t&&a?o.a.createElement(_,null,o.a.createElement(U,null,o.a.createElement(V,{scrolling:!0,selection:!0,testId:"title",name:"title",options:c.User.SalutationOptionList,onChange:at,title:"Title",error:He,value:de.salutation}),o.a.createElement(A.zb,null,He&&o.a.createElement(ne,null,"Please select a title")),o.a.createElement(A.Cb,null,He&&o.a.createElement(ne,null,"Please select a title")),o.a.createElement(X,null,"Date of birth"),o.a.createElement(ie,null,o.a.createElement(C.E,{id:"date-of-birth",startDate:null===de||void 0===de?void 0:de.birthDate,onDateChangeFunc:pt,hasValidationError:!Ye,errorMessage:Ge})),o.a.createElement(A.zb,null,!Ye&&o.a.createElement(ne,null,Ge)),o.a.createElement(A.Cb,null,!Ye&&o.a.createElement(ne,null,Ge)),o.a.createElement(C.T,{onChange:nt,labelName:"Age",name:"age",testId:"age",type:"text",isCorrect:!!Ve,labelId:"age",value:Ve?""+Ve:""}),o.a.createElement(C.T,{onChange:ot,labelName:"Last name",name:"last-name",testId:"last-name",type:"text",isCorrect:!qe,labelId:"last-name",value:de.lastName,errorMessage:"Please enter a last name",isCorrectIconShown:!0}),o.a.createElement(C.T,{onChange:it,labelName:"First name",name:"first-name",testId:"first-name",type:"text",isCorrect:!Qe,labelId:"first-name",value:de.firstName,errorMessage:"Please enter a first name",isCorrectIconShown:!0}),o.a.createElement(C.T,{onChange:lt,labelName:"Nationality",name:"nationality",testId:"nationality",type:"text",isCorrect:!We,labelId:"nationality",value:de.nationality||"",errorMessage:"Please enter a nationality",isCorrectIconShown:!0}),o.a.createElement(C.T,{onChange:tt,labelName:"Address line 1",name:"address-line-1",testId:"address-line-1",type:"text",isCorrect:!we,labelId:"address-line-1",value:null===Ne||void 0===Ne?void 0:Ne.addressLine1,errorMessage:"Please enter a valid address",isCorrectIconShown:!0}),o.a.createElement("div",{ref:re,tabIndex:-1},o.a.createElement(C.T,{onChange:ct,labelName:"Address line 2 (if applicable)",name:"address-line-2",testId:"address-line-2",type:"text",isCorrect:ze,labelId:"address-line-2",value:(null===Ne||void 0===Ne?void 0:Ne.addressLine2)||"",errorMessage:"Please enter a suite or apartment number"})),o.a.createElement(C.T,{labelName:"City",onChange:dt,name:"city",testId:"city",type:"text",isCorrect:!_e,labelId:"city",value:null===Ne||void 0===Ne?void 0:Ne.city,errorMessage:"Please enter a city",isCorrectIconShown:!0}),o.a.createElement(J,null,o.a.createElement(K,null,o.a.createElement(C.T,{onChange:mt,name:"state",testId:"state",type:"text",isCorrect:!0,labelName:"State/province (optional)",labelId:"state",value:null===Ne||void 0===Ne?void 0:Ne.state,errorMessage:""})),o.a.createElement(K,null,o.a.createElement(C.T,{onChange:ut,name:"postal-code",testId:"postal-code",type:"text",isCorrect:!Fe||Fe&&!Be,labelId:"postal-code",labelName:"ZIP/postal code (optional)",value:null===Ne||void 0===Ne?void 0:Ne.zipCode,errorMessage:"Please enter a postal code",isCorrectIconShown:!0}))),o.a.createElement(V,{scrolling:!0,selection:!0,selected:null===Ne||void 0===Ne?void 0:Ne.country,testId:"country;",name:"country;",options:D,onChange:ht,title:"Location"}),o.a.createElement(H,null,"Daytime phone number"),o.a.createElement(G,null,o.a.createElement(q,null,o.a.createElement(W,null,o.a.createElement(V,{scrolling:!0,selected:null===ke||void 0===ke?void 0:ke.countryCode,testId:"phone-number-country",name:"phone-number-country",options:z,onChange:Ze,value:null===ke||void 0===ke?void 0:ke.countryCode}))),o.a.createElement(Q,null,o.a.createElement(C.T,{onChange:et,name:"phone-number",testId:"phone-number",type:"text",isCorrect:!Me&&Le,value:null===ke||void 0===ke?void 0:ke.phoneNumber,errorMessage:"Please enter a valid mobile number",isCorrectIconShown:!0}))),o.a.createElement(J,null,o.a.createElement(K,null,o.a.createElement(C.T,{onChange:rt,name:"area-code",testId:"area-code",type:"text",isCorrect:!0,labelName:"Area code (optional)",labelId:"area-code",value:de.primaryPhone.areaCode||"",errorMessage:""})),o.a.createElement(K,null,o.a.createElement(C.T,{onChange:st,name:"extension",testId:"extension",type:"text",isCorrect:!0,labelId:"extension",labelName:"Extension (optional)",value:de.primaryPhone.extension||"",errorMessage:""}))),o.a.createElement(C.T,{onChange:Xe,name:"primary-email",testId:"primary-email",type:"email",labelName:"Email address",isCorrect:Se,labelId:"primary-email",value:null===Pe||void 0===Pe?void 0:Pe.emailAddress,errorMessage:"Please enter a valid email address",isCorrectIconShown:!Re,placeholder:"Enter text here"}),o.a.createElement(X,null,"Date you became a CIMA member"),o.a.createElement(Y,null,"As shown on your membership certificate"),o.a.createElement(ie,null,o.a.createElement(C.E,{id:"date-elected-as-cima-associate",startDate:xe===(null===de||void 0===de?void 0:de.cimaAssocDate)?de.cimaAssocDate:xe||de.cimaAssocDate,onDateChangeFunc:bt,hasValidationError:!Je,errorMessage:"Please enter CIMA member elected date"})),o.a.createElement(A.zb,null,!Je&&o.a.createElement(ne,null,"Please enter CIMA member elected date")),o.a.createElement(A.Cb,null,!Je&&o.a.createElement(ne,null,"Please enter CIMA member elected date"))),o.a.createElement(Z,{to:Object(d.getPath)(u.Lb.FCMA_CREDENTIAL_APPLICATION_FORM_EMPLOYMENT),onClick:e=>{be(!1),Ee(!1),R({addressLine1:(null===Ne||void 0===Ne?void 0:Ne.addressLine1)||"",addressLine2:null===Ne||void 0===Ne?void 0:Ne.addressLine2,city:(null===Ne||void 0===Ne?void 0:Ne.city)||"",state:(null===Ne||void 0===Ne?void 0:Ne.state)||"",zipCode:(null===Ne||void 0===Ne?void 0:Ne.zipCode)||"",country:(null===Ne||void 0===Ne?void 0:Ne.country)||""}).then(()=>{Ce(!0)}),se&&ce(!1)},testId:"confirm-continue-button",disabled:!ue,variant:A.l.primary,loading:i||y},"Confirm and continue")):o.a.createElement(ae,null,o.a.createElement(A.S,null)))});i.d.div` 127 padding: ${e=>e.theme.pxToRem(20)}; 128 * { 129 font-family: ${e=>e.theme.fontFamily}; 130 font-stretch: normal; 131 font-style: normal; 132 line-height: 1.5; 133 134 .ui.search.dropdown > input.search { 135 z-index: 0; 136 } 137 .ui.dropdown .menu > .item:hover { 138 z-index: 0; 139 } 140 .ui.search.dropdown > .text { 141 z-index: 0; 142 } 143 } 144 145 ${e=>e.theme.mediaQueries.mobileOnly} { 146 padding-left: 0; 147 padding-right: 0; 148 } 149`,i.d.h1` 150 margin-bottom: ${e=>e.theme.pxToRem(16)}; 151 font-size: ${e=>e.theme.fontSizes.xl}; 152 font-weight: ${e=>e.theme.fontWeights.light}; 153 color: ${e=>e.theme.colors.neutralGrey8}; 154`,Object(i.d)(A.f)` 155 height: ${e=>e.theme.pxToRem(48)}; 156 font-size: ${e=>e.theme.fontSizes.m}; 157 width: ${e=>e.theme.pxToRem(265)}; 158`;var ce=a(41),de=a(84);const me=i.d.p` 159 { 160 font-size: ${e=>e.theme.pxToRem(16)}; 161 font-weight: 300; 162 } 163`,ue=Object(i.d)(A.t)` 164 &.ui.checkbox label { 165 font-size: ${e=>e.theme.fontSizes.s}; 166 font-weight: ${e=>e.theme.fontWeights.light}; 167 color: ${e=>e.theme.colors.neutralGrey8}; 168 } 169 &.ui.checkbox input:checked ~ label { 170 font-weight: ${e=>e.theme.fontWeights.light}; 171 } 172 &&&&.ui.checkbox input ~ label { 173 padding-left: ${e=>e.theme.pxToRem(40)}; 174 } 175 &&& { 176 max-width: ${e=>e.theme.pxToRem(645)}; 177 margin-bottom: ${e=>e.theme.pxToRem(12)}; 178 } 179`,he=Object(i.d)(x.a)` 180 &&& { 181 max-width: ${e=>e.theme.pxToRem(645)}; 182 margin-bottom: ${e=>e.theme.pxToRem(31.5)}; 183 } 184`,pe=Object(i.d)(A.f)` 185 &&&& { 186 height: ${e=>e.theme.pxToRem(48)}; 187 font-size: ${e=>e.theme.fontSizes.m}; 188 width: ${e=>e.theme.pxToRem(265)}; 189 margin-top: ${e=>e.theme.pxToRem(25)}; 190 } 191`,be=i.d.div` 192 padding: ${e=>e.theme.pxToRem(20)}; 193 * { 194 font-family: ${e=>e.theme.fontFamily}; 195 font-stretch: normal; 196 font-style: normal; 197 line-height: 1.5; 198 font-size: ${e=>e.theme.fontSizes.s}; 199 } 200 ${e=>e.theme.mediaQueries.mobileOnly} { 201 padding-left: 0; 202 padding-right: 0; 203 } 204`,ge=Object(i.d)(S.a)` 205 &&&&& { 206 ${e=>e.theme.mediaQueries.mobileOnly} { 207 margin-bottom: ${e=>e.theme.pxToRem(16)}; 208 } 209 } 210`,ve=i.d.h1` 211 margin-bottom: ${e=>e.theme.pxToRem(16)}; 212 font-size: ${e=>e.theme.fontSizes.xl}; 213 font-weight: ${e=>e.theme.fontWeights.light}; 214 color: ${e=>e.theme.colors.neutralGrey8}; 215`,fe=i.d.span` 216 font-weight: ${e=>e.theme.fontWeights.bold}; 217`,Oe=Object(l.c)(e=>({selectedMembershipType:Object(f.bc)(e),customerProfileFetched:Object(g.Y)(e),customerProfileFetchSuccess:Object(g.X)(e),attestation:Object(g.p)(e),backPageRoute:u.Lb.FCMA_CREDENTIAL_APPLICATION_FORM_DONATIONS,nextPageRoute:u.Lb.CHECKOUT_PAGE,membershipApplicationType:Object(f.L)(e),isCenterMembershipRenewal:!1,applicationPart:Object(g.m)(e)}),e=>({setCheckoutPage(t){e(Object(ce.T)(t))},updateAttestation(t){e(Object(N.Rc)(t))},clearAttestation(){e(Object(N.l)())},fetchMembershipJourney(t){e(Object(N.N)(t))}}))(({nextPageRoute:e,selectedMembershipType:t="",attestation:a,setCheckoutPage:i,updateAttestation:l,clearAttestation:s,fetchMembershipJourney:m,applicationPart:h})=>{const p=Object(r.i)(),[b,g]=Object(n.useState)({fcmaDisciplinedAttestation:null===h||void 0===h?void 0:h.fcmaDisciplinedAttestation,fcmaNotConvictedAttestation:null===h||void 0===h?void 0:h.fcmaNotConvictedAttestation,fcmaUndertakingDqAttestation:null===h||void 0===h?void 0:h.fcmaUndertakingDqAttestation,fcmaBankruptcyPetitionAttestation:null===h||void 0===h?void 0:h.fcmaBankruptcyPetitionAttestation,fcmaUndischargedBankruptAttestation:null===h||void 0===h?void 0:h.fcmaUndischargedBankruptAttestation,fcmaInsolvencyAttestation:null===h||void 0===h?void 0:h.fcmaInsolvencyAttestation});Object(n.useEffect)(()=>{s()},[s]);const v=e=>{const t=e.target.value,n=[...a],o=n.indexOf(t);o>
217-1?n.splice(o,1):n.push(t),l(n)},f=e=>{g({...b,[e.target.id]:Boolean(e.target.checked)})},[O,y]=Object(n.useState)(!1);Object(n.useEffect)(()=>{const e=(null===b||void 0===b?void 0:b.fcmaDisciplinedAttestation)&&(null===b||void 0===b?void 0:b.fcmaNotConvictedAttestation)&&(null===b||void 0===b?void 0:b.fcmaUndertakingDqAttestation)&&(null===b||void 0===b?void 0:b.fcmaBankruptcyPetitionAttestation)&&(null===b||void 0===b?void 0:b.fcmaUndischargedBankruptAttestation)&&(null===b||void 0===b?void 0:b.fcmaInsolvencyAttestation);y(Boolean(e))},[b]);return o.a.createElement(be,null,o.a.createElement(ge,{backText:"Back",route:Object(r.g)(Object(d.getPath)(u.Lb.FCMA_CREDENTIAL_APPLICATION_FORM_DONATIONS))}),o.a.createElement(ve,null,"Attestation"),o.a.createElement(he,null),o.a.createElement(ue,{id:"fcmaDisciplinedAttestation",testId:"fcmaDisciplinedAttestation",checked:null===b||void 0===b?void 0:b.fcmaDisciplinedAttestation,onChange:f,label:o.a.createElement("label",null,"I have ",o.a.createElement(fe,null,"not")," been disciplined by any employer, professional body and/or regulator.")}),o.a.createElement(ue,{id:"fcmaNotConvictedAttestation",testId:"fcmaNotConvictedAttestation",checked:null===b||void 0===b?void 0:b.fcmaNotConvictedAttestation,onChange:f,label:o.a.createElement("label",null,"I do ",o.a.createElement(fe,null,"not")," have any unspent convictions.")}),o.a.createElement(ue,{id:"fcmaUndertakingDqAttestation",testId:"fcmaUndertakingDqAttestation",checked:null===b||void 0===b?void 0:b.fcmaUndertakingDqAttestation,onChange:f,label:o.a.createElement("label",null,"I am ",o.a.createElement(fe,null,"not")," currently subject to an order or undertaking under the Company Directors Disqualification Act 1986 or subject to any similar restriction in another jurisdiction.")}),o.a.createElement(ue,{id:"fcmaBankruptcyPetitionAttestation",testId:"fcmaBankruptcyPetitionAttestation",checked:null===b||void 0===b?void 0:b.fcmaBankruptcyPetitionAttestation,onChange:f,label:o.a.createElement("label",null,"I do ",o.a.createElement(fe,null,"not")," have a bankruptcy petition pending against me.")}),o.a.createElement(ue,{id:"fcmaUndischargedBankruptAttestation",testId:"fcmaUndischargedBankruptAttestation",checked:null===b||void 0===b?void 0:b.fcmaUndischargedBankruptAttestation,onChange:f,label:o.a.createElement("label",null,"I am ",o.a.createElement(fe,null,"not")," an undischarged bankrupt.")}),o.a.createElement(ue,{id:"fcmaInsolvencyAttestation",testId:"fcmaInsolvencyAttestation",checked:null===b||void 0===b?void 0:b.fcmaInsolvencyAttestation,onChange:f,label:o.a.createElement("label",null,"I have ",o.a.createElement(fe,null,"not")," entered into an individual voluntary arrangement or other arrangement with my creditors arising out of my insolvency.")}),o.a.createElement(he,null),(e=>{const t=o.a.createElement("label",null,"If you need to declare bankruptcy or any other insolvency issues, or if you cannot confirm any of the statements above (e.g., if you have a disciplinary record or unspent conviction; if you are subject to an order or undertaking under the Company Directors Disqualification Act 1986 or equivalent outside of the UK), please tick the box and email ",o.a.createElement("b",null,"[email protected]")," explaining your circumstances. We will review and advise if your application can proceed.");return o.a.createElement(o.a.Fragment,null,o.a.createElement(ue,{id:"fcma-attestation",testId:"fcma-attestation",value:Object(de.q)(t),label:t,disabled:O,onChange:v}))})(),o.a.createElement(he,null),o.a.createElement(me,null,"The particulars I have given in this application are complete and correct. I acknowledge that if I am elected to fellow membership but later found to have provided untrue or misleading information in this application (or to have failed to provide information which might cast doubt on whether I am a fit and proper person to hold fellow membership of CIMA), I may be subject to disciplinary action and/or removed from the list of members."),o.a.createElement(me,null,"I have read the byelaws, regulations and the CIMA Code of Ethics and agree to comply with them (and any subsequent byelaws of CIMA that may replace them) and to uphold CIMA's professional standards."),o.a.createElement(me,null,"I recognise that, until I obtain fellow membership, I must not refer to myself as a fellow member of CIMA or use the designatory letters FCMA after my name."),o.a.createElement("p",null),o.a.createElement(pe,{testId:"attest-payment-button",disabled:!O,variant:A.l.primary,to:"/checkout",onClick:()=>{i(c.Checkout.CheckoutStep.ADDRESS),p.push(Object(r.g)(Object(d.getPath)(e)))}},"Confirm and continue"))});var ye=a(108),Ee=a(411),Ae=a(822),Ce=a(168);const je={[u.Lb.FCMA_CREDENTIAL_APPLICATION_FORM_PERSONAL]:se,[u.Lb.FCMA_CREDENTIAL_APPLICATION_FORM_EMPLOYMENT]:E.a,[u.Lb.FCMA_CREDENTIAL_APPLICATION_FORM_DONATIONS]:y.a,[u.Lb.FCMA_CREDENTIAL_APPLICATION_FORM_ATTESTATION]:Oe},Ie=()=>{const e=Object(l.d)(),{pathname:t}=Object(r.j)(),a=Object(l.e)(b.b),i=Object(l.e)(f.s),y=Object(l.e)(f.Mb),E=t===Object(d.getPath)(u.Lb.FCMA_CREDENTIAL_APPLICATION_FORM_PERSONAL),j=t===Object(d.getPath)(u.Lb.FCMA_CREDENTIAL_APPLICATION_FORM_DONATIONS),[I,T]=Object(n.useState)(!1),[P,R]=Object(n.useState)(!1),S=Object(l.e)(f.X),$=Object(l.e)(g.Nd),k=Object(l.e)(p.Q),M=Object(l.e)(g.A),L=null===M||void 0===M?void 0:M.some(e=>(null===e||void 0===e?void 0:e.membershipTermType)===c.MembershipTypes.MembershipKeys.REGULAR),N=Object(l.e)(g.z),w=Object(l.e)(v.Jc),D=Object(l.e)(b.t),z=Object(l.e)(g.Sb),_=Boolean(z)&&D,F=()=>{T(!1),e(Object(s.d)(Object(d.getPath)(u.Lb.ROOT)))};return Object(n.useEffect)(()=>{e(Object(O.Nb)(!0))},[e]),Object(n.useEffect)(()=>{(async()=>
217{if(!k||w)if(L)if(N||_||w){if($)T(!0);else if(void 0!==k&&!w){const{payload:t}=await e(Object(m.n)(c.Product.FCMAProductSlug));await e(Object(O.Ab)(null===t||void 0===t?void 0:t.productId,null===t||void 0===t?void 0:t.variants[0].sku)),await e(Object(O.Ub)("isClickedFcmaPropPage",!0)),await e(Object(O.f)())}}else e(Object(s.d)(Object(d.getPath)(u.Lb.ROOT)));else R(!0);else e(Object(s.d)(Object(d.getPath)(u.Lb.MY_CREDENTIALS)))})()},[e,_,$,S,L,N,k,w]),Object(n.useLayoutEffect)(()=>{if(a&&E&&i.length&&y.length){const e=Object(h.O)(i,y);e&&setTimeout(()=>{Object(h.V)(e,h.i)},500)}},[a,E,j,i,y]),o.a.createElement(o.a.Fragment,null,I&&o.a.createElement(A.Q,{onConfirmation:F,onCancel:F}),P&&o.a.createElement(A.R,{onConfirmation:()=>{R(!1),e(Object(s.d)(Object(d.getPath)(u.Lb.ROOT)))},onCancel:()=>{R(!1),e(Object(s.d)(Object(d.getPath)(u.Lb.ROOT)))}}),o.a.createElement($e,null,o.a.createElement(Ee.a,null,o.a.createElement(C.J,{passedSteps:u.db}))),o.a.createElement(Pe,null,o.a.createElement(Ee.a,null,o.a.createElement(ye.a,{columns:2},o.a.createElement(Re,{computer:10,tablet:16,mobile:16,"data-testid":"membership-info-content"},o.a.createElement(r.e,null,u.db.map(({pathName:e,name:t},a,n)=>o.a.createElement(r.c,{path:Object(d.getPath)(e),key:"page-"+t,component:je[e]})))),o.a.createElement(A.Cb,null,o.a.createElement(ke,{horizontal:!0})),o.a.createElement(Se,{computer:5,tablet:16,mobile:16,"data-testid":"membership-info-cart",floated:"right"},o.a.createElement(Ae.a,{hideProceedButton:!1,getCartFetched:a}))))),o.a.createElement(xe,null,o.a.createElement(x.a,null),o.a.createElement(Te,{isCimaMipJourney:!0})),o.a.createElement(Ce.a,null))},xe=i.d.div` 218 box-sizing: border-box; 219 width: ${e=>e.theme.pxToRem(1123)}; 220 margin: 0 auto; 221 padding-left: 0; 222 padding-right: 0; 223 224 ${e=>e.theme.mediaQueries.mobileOnly} { 225 width: 100%; 226 padding-left: ${e=>e.theme.pxToRem(21)}; 227 padding-right: ${e=>e.theme.pxToRem(21)}; 228 } 229`,Te=Object(i.d)($.p)` 230 margin: ${e=>e.theme.pxToRem(24)} 0 ${e=>e.theme.pxToRem(56)}; 231`,Pe=Object(i.d)(Ee.a)` 232 padding-bottom: ${e=>e.theme.pxToRem(48)}; 233 234 ${e=>e.theme.mediaQueries.mobileOnly} { 235 padding: 0; 236 } 237`,Re=Object(i.d)(ye.a.Column)` 238 &&&&& { 239 ${e=>e.theme.mediaQueries.mobileOnly} { 240 padding-left: 0; 241 padding-right: 0; 242 } 243 } 244`,Se=Object(i.d)(ye.a.Column)` 245 margin-top: ${e=>e.theme.pxToRem(100)}; 246`,$e=i.d.div` 247 background: ${({theme:e})=>e.colors.neutralGrey1}; 248`,ke=Object(i.d)(A.Sb)` 249 ${e=>e.theme.mediaQueries.mobileOnly} { 250 margin: 0 auto; 251 } 252`}}]); 253//# sourceMappingURL=FcmaPageCredentialApplication.68d87790.chunk.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.