{"version":3,"sources":["webpack:///./src/features/registration/_shared/components/Recaptcha/index.js","webpack:///./src/features/registration/_shared/components/DriverLicence/DriverLicenceAU.jsx","webpack:///./src/features/registration/_shared/components/DriverLicence/constants.js","webpack:///./src/features/registration/_shared/constants/app.js","webpack:///./src/features/registration/_shared/components/Subscription/index.js","webpack:///./src/features/registration/_shared/constants/registrationChannels.js","webpack:///./src/libs/featureFlagLookUp.ts","webpack:///./src/constants/brands.js","webpack:///./node_modules/js-cookie/src/js.cookie.js","webpack:///./node_modules/query-string/index.js","webpack:///./src/components/NewOfxField/index.js","webpack:///./src/libs/mouseFlow/index.js","webpack:///./src/features/registration/_shared/components/CountryAndState/Container.jsx","webpack:///./src/features/registration/_shared/components/CountryAndState/Component.jsx","webpack:///./src/features/registration/_shared/components/Country/Container.jsx","webpack:///./src/features/registration/_shared/components/Country/Component.jsx","webpack:///./src/features/registration/_shared/components/BrandChangeNotifier/Component.jsx","webpack:///./src/features/registration/_shared/components/Recaptcha/Recaptcha.jsx","webpack:///./src/features/registration/_shared/components/Subscription/Container.jsx","webpack:///./src/features/registration/_shared/components/Subscription/Component.jsx","webpack:///./src/validation/regexRules.js","webpack:///./src/features/registration/_shared/components/Country/index.js","webpack:///./src/features/registration/_shared/libs/analytics.js","webpack:///./src/features/registration/_shared/constants/PropTypes.js","webpack:///./src/features/registration/_shared/libs/processCountries.js","webpack:///./src/components/MouseFlow/index.ts","webpack:///./src/features/registration/_shared/constants/sharedFieldNames.js","webpack:///./src/components/TermsAndConditions/CheckboxWithModal/CallToActionNoModal.jsx","webpack:///./src/features/registration/_shared/actions/getRecipientOnlyUser/index.ts","webpack:///./src/features/registration/_shared/components/CountryAndState/index.js","webpack:///./src/components/TermsAndConditions/index.ts","webpack:///./src/features/registration/personal.registration/constants/appConstants.js","webpack:///./src/components/NewOfxField/Component.jsx","webpack:///./src/components/MouseFlow/MouseFlow.tsx","webpack:///./src/libs/mouseFlow/constants.js","webpack:///./node_modules/strict-uri-encode/index.js","webpack:///./src/features/registration/_shared/components/CountryAndState/constants.js","webpack:///./src/components/TermsAndConditions/Component.tsx","webpack:///./src/components/TermsAndConditions/CheckboxWithModal/index.js","webpack:///./src/components/TermsAndConditions/CheckboxWithModal/Container.js","webpack:///./src/components/TermsAndConditions/CheckboxWithModal/Component.jsx","webpack:///./src/components/TermsAndConditions/CheckboxWithModal/Modal.jsx","webpack:///./src/components/TermsAndConditions/CheckboxWithModal/CallToActionWithLink.jsx","webpack:///./src/features/registration/_shared/actions/setCurrentBrand/index.js","webpack:///./src/components/helpers/combineFieldInfos.js","webpack:///./src/features/registration/_shared/components/Country/reducers.js","webpack:///./src/features/registration/_shared/components/Country/constants.js","webpack:///./src/features/registration/_shared/components/CountryAndState/reducers.js","webpack:///./src/features/registration/_shared/components/BrandChangeNotifier/index.js"],"names":["default","mapStateToProps","state","ownProps","loadingForCorporate","selectedState","formValueSelector","selector","resetCardNumber","dispatch","fields","forEach","field","change","mapDispatchToProps","onStateChange","fieldsToClear","cardNumber","number","renderCardNumber","renderField","id","placeholder","i18n","className","type","maxLength","validateCardNumber","value","isMatch","renderNumber","validateNumber","renderState","validateState","allValues","required","renderFormWithoutCardNumber","states","Fragment","name","component","validate","data","renderFormWithCardNumber","isCorporate","onChange","statesWithDriverLicenceNumber","includes","undefined","statesWithCardNumber","DriverLicenceAU","hideDLCardNumber","propTypes","dropdown","isRequired","string","bool","func","displayName","connect","MINIMUM_AGE","MAXIMUM_AGE","STANDARD","MOBILE","isEnabledFeatureFlag","allFeatureFlags","flagName","isIncomingTransferFeatureEnabled","enabledIncomingTransfer","AU","CA","GB","HK","NZ","SG","US","IE","factory","module","exports","OldCookies","window","Cookies","api","noConflict","extend","i","result","arguments","length","attributes","key","init","converter","document","path","defaults","expires","Date","setMilliseconds","getMilliseconds","toUTCString","JSON","stringify","test","e","write","encodeURIComponent","String","replace","decodeURIComponent","escape","stringifiedAttributes","attributeName","cookie","cookies","split","rdecode","parts","slice","join","this","json","charAt","read","parse","set","get","call","getJSON","apply","remove","withConverter","strictUriEncode","objectAssign","encode","opts","strict","extract","str","formatter","arrayFormat","accumulator","exec","concat","parserForArrayFormat","ret","Object","create","trim","param","shift","val","keys","sort","reduce","Boolean","Array","isArray","keysSorter","input","a","b","Number","map","obj","index","encoderForArrayFormat","val2","push","filter","x","formName","fieldsInfo","country","statePartitions","stateChildren","restrictedStates","item","display","text","match","countryChanged","previousCountry","newCountry","fetchStatesAction","Container","PropTypes","CountryAndState","props","nextProps","countryFieldInfo","fieldInfo","notIncludes","arrayOf","shape","countries","countryChildren","fetchCountries","fetchCountriesForRegistrationAction","Country","prevProps","flags","corEnabled","disabled","instanceOf","updateUser","FeatureFlagsDecorator","BRAND_CHANGED_EVENT","Component","hasInitialCountry","brand","willComponentReceiveInitialBrand","brandChanged","countryIso","emit","renderRecaptcha","Recaptcha","sitekey","recaptcha","showProductUpdates","isRecipientOnlyUser","recipientOnlyUser","productUpdates","setFieldValues","productUpdatesPrefill","label","checkbox","renderCheckBox","bind","userRegistration","currency","alphaNumeric","numeric","alphaNumericWithSimpleSeparators","passwordComplexity","routingNumber","transitNumber","instituionNumber","reducers","handleRegistrationPageLoad","step","partnerName","registrationStep","toLowerCase","registrationType","dataLayer","event","getGender","title","find","customPropTypes","processCountries","payload","topCountries","allCountries","IsoCountryCode","CountryName","Nationality","IsPopularCountry","hidden","children","nationalities","DriverLicenceAu","CallToActionNoModal","i18nPrefix","fieldName","termsAndConditionsLinkText","usOrCaVariation","fieldNameWithDashes","esignConsent","href","target","STEP2_TERMS_CONDITIONS","internalRender","isStatementOfRuleRequiredKey","actionTypes","GET_RECIPIENT_ONLY_USER","ACTION_NAMESPACE","initialState","getRecipientOnlyUser","createAction","PublicSiteApi","getRecipientOnlyUserReducer","handleActions","WillBeRecipientOnly","IsStatementOfRuleRequired","setIn","Map","formClass","step1FormName","extraAddressCountries","moreThan3Years","lessThan3Years","DRIVERS_LICENSE_US","DRIVER_LICENCE_NZ","PREVIOUS_ADDRESS_FIELD_NAME","IRD_PARTNER","ADDRESS_FIELD_NAME","STEPS","ONE","TWO","BRAND_FIELD_NAME","MOUSEFLOW_ROUTE_PERSONAL_STEP_ONE","MOUSEFLOW_ROUTE_PERSONAL_STEP_TWO","STEP1_PRIVACY_POLICY","US_ESIGN_CONSENT","Leeuwin","cookiePrefix","queryStringKeys","partnerLinkName","DEFAULT_CURRENCY_CODE","DEFAULT_SELL_CURRENCY_CODE","DEFAULT_TRANSFER_AMOUNT","ONFIDO_REDIRECT_URL_PARAM","PARTNER_NAME","informationPopoverElements","NewOfxField","labelsPrefix","defaultPlaceholder","fieldProperties","disableLabel","showInstructions","indexOf","componentDidMount","enable","render","componentWillUnmount","React","MouseFlow","newDealFeedBackId","c","charCodeAt","toString","toUpperCase","tickOnClose","onClose","modalHtmlContent","openModal","closeModal","open","setState","callToAction","CallToActionComponent","content","componentType","oneOfType","element","defaultProps","Modal","footer","SingleButton","onClick","CallToActionWithLink","link","SET_CURRENT_BRAND","action","RefDataApi","brandByCountry","then","response","Brand","combineValidations","val1","arr1","arr2","combineClassNames","className1","className2","recievedInfo","infoToAdd","FETCH_COUNTRIES_FOR_REGISTRATION","PREFIX","countriesForRegistration","countriesForRegistrationReducer","Countries","FETCH_STATES","countryStates","statesReducer","CountryStates","Code","Name","IsBlockedFromRegistration"],"mappings":"uOAASA,Q,sKCAT,8BACA,8BACA,4BACA,sB,uJAAA,QACA,6BACA,2BACA,2BAEA,4BACA,6BACA,8B,kWAEMC,EAAkB,SAACC,EAAOC,GAC5B,OAAIA,EAASC,oBACF,GAIJ,CACHC,eAHa,WAAAC,oBAAA,iBACKC,CAASL,GAAO,wBAAWA,SAM/CM,EAAkB,SAACC,EAAUC,GAC/BA,EAAOC,SAAQ,SAACC,GACZH,GAAS,WAAAI,SAAA,iBAAiBD,EAAO,SAInCE,EAAqB,SAACL,GAAD,MAAe,CACtCM,cAAe,WACX,IAAMC,EAAgB,EAAC,wBAAWC,YAAY,wBAAWC,QACzDV,EAAgBC,EAAU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PropTypes from 'constants/PropTypes';\nimport { OfxField, renderField } from 'components';\nimport * as validations from 'validation';\nimport { alphaNumeric } from 'validation/regexRules';\nimport { i18n } from 'libs/i18n';\nimport { change, formValueSelector } from 'redux-form';\nimport { connect } from 'react-redux';\nimport { formName } from '../../../personal.registration/constants/appConstants';\nimport { DriverLicenceAu as fieldNames } from '../../constants/sharedFieldNames';\nimport { statesWithDriverLicenceNumber, statesWithCardNumber } from './constants';\n\nconst mapStateToProps = (state, ownProps) => {\n    if (ownProps.loadingForCorporate) {\n        return {};\n    }\n    const selector = formValueSelector(formName);\n    const selectedState = selector(state, fieldNames.state);\n    return {\n        selectedState,\n    };\n};\n\nconst resetCardNumber = (dispatch, fields) => {\n    fields.forEach((field) => {\n        dispatch(change(formName, field, ''));\n    });\n};\n\nconst mapDispatchToProps = (dispatch) => ({\n    onStateChange: () => {\n        const fieldsToClear = [fieldNames.cardNumber, fieldNames.number];\n        resetCardNumber(dispatch, fieldsToClear);\n    },\n});\nexport const renderCardNumber = renderField(\n    {\n        id: 'cardNumber',\n        placeholder: i18n('registration-driver-licence-au-card-number-placeholder'),\n        className: 'form-control',\n        type: 'text',\n        maxLength: 10,\n    },\n    i18n('registration-driver-licence-au-card-number'),\n);\n\nexport const validateCardNumber = (value) =>\n    validations.isMatch(alphaNumeric, i18n('validation-driver-card-number-error-message'))(value);\n\nexport const renderNumber = renderField(\n    {\n        id: 'number',\n        placeholder: i18n('registration-driver-licence-au-number-placeholder'),\n        className: 'form-control',\n        type: 'text',\n        maxLength: 50,\n    },\n    i18n('registration-driver-licence-au-number'),\n);\n\nexport const validateNumber = (value) =>\n    validations.isMatch(\n        alphaNumeric,\n        i18n('validation-driver-licence-number-error-message'),\n    )(value);\n\nexport const renderState = renderField(\n    {\n        id: 'state',\n        placeholder: i18n('registration-driver-licence-au-state-placeholder'),\n        className: 'form-control',\n        type: 'select2',\n    },\n    i18n('registration-driver-licence-au-state'),\n);\n\nconst validateState = (value, allValues) => {\n    const number = allValues[fieldNames.number];\n    return validations.required(number)(value);\n};\n\nconst renderFormWithoutCardNumber = (states) => (\n    <React.Fragment>\n        <div className=\"col-md-6\">\n            <OfxField name={fieldNames.number} component={renderNumber} validate={validateNumber} />\n        </div>\n        <div className=\"col-md-6\">\n            <OfxField\n                name={fieldNames.state}\n                component={renderState}\n                data={states}\n                validate={validateState}\n            />\n        </div>\n    </React.Fragment>\n);\n\nconst renderFormWithCardNumber = (states, state, isCorporate, onStateChange) => (\n    <React.Fragment>\n        <div className=\"col-md-12\">\n            <OfxField\n                name={fieldNames.state}\n                component={renderState}\n                data={states}\n                validate={validateState}\n                onChange={onStateChange}\n            />\n        </div>\n        {isCorporate ||\n            ((statesWithDriverLicenceNumber.includes(state) || state === undefined) && (\n                <div className=\"col-md-12\">\n                    <OfxField\n                        name={fieldNames.number}\n                        component={renderNumber}\n                        validate={validateNumber}\n                    />\n                </div>\n            ))}\n        {!isCorporate && statesWithCardNumber.includes(state) && (\n            <div className=\"col-md-12\">\n                <OfxField\n                    name={fieldNames.cardNumber}\n                    component={renderCardNumber}\n                    validate={validateCardNumber}\n                />\n            </div>\n        )}\n    </React.Fragment>\n);\n\nexport const DriverLicenceAU = ({\n    states,\n    selectedState,\n    loadingForCorporate = false,\n    hideDLCardNumber,\n    onStateChange,\n}) => (\n    <fieldset className=\"uia-driver-licence-au\">\n        <legend className=\"uia-intro\">{i18n('registration-driver-licence-au-number-intro')}</legend>\n        <div className=\"row\">\n            {hideDLCardNumber\n                ? renderFormWithoutCardNumber(states)\n                : renderFormWithCardNumber(\n                      states,\n                      selectedState,\n                      loadingForCorporate,\n                      onStateChange,\n                  )}\n        </div>\n    </fieldset>\n);\n\nDriverLicenceAU.propTypes = {\n    states: PropTypes.dropdown.isRequired,\n    selectedState: PropTypes.string,\n    loadingForCorporate: PropTypes.bool,\n    hideDLCardNumber: PropTypes.bool,\n    onStateChange: PropTypes.func,\n};\n\nDriverLicenceAU.displayName = 'DriverLicenceAU';\n\nexport default connect(mapStateToProps, mapDispatchToProps)(DriverLicenceAU);\n","export const statesWithDriverLicenceNumber = ['NSW', 'ACT', 'NT', 'SA', 'TAS', 'WA', 'QLD', 'VIC'];\nexport const statesWithCardNumber = ['NSW', 'ACT', 'NT', 'SA', 'TAS', 'WA'];\n","export const MINIMUM_AGE = 18;\nexport const MAXIMUM_AGE = 200;\n","import Container from './Container';\n\nexport default Container;\n","export const STANDARD = '5CFCDFF8-F578-485F-91C7-73EA52259492';\nexport const MOBILE = '62CD92AE-1E7E-4F6C-B4B3-31419927EDC5';\n","import ldFlags from 'constants/ldFlags';\n\nexport interface IFeatureFlag {\n    [key: string]: boolean;\n}\nexport const isEnabledFeatureFlag = (allFeatureFlags: IFeatureFlag, flagName: string): boolean =>\n    allFeatureFlags[flagName];\n\nexport const isIncomingTransferFeatureEnabled = (allFeatureFlags: IFeatureFlag): boolean =>\n    isEnabledFeatureFlag(allFeatureFlags, ldFlags.enabledIncomingTransfer);\n\nexport default {\n    isEnabledFeatureFlag,\n    isIncomingTransferFeatureEnabled,\n};\n","export const AU = 'OFX-AU';\nexport const CA = 'OFX-CA';\nexport const GB = 'OFX-GB';\nexport const HK = 'OFX-HK';\nexport const NZ = 'OFX-NZ';\nexport const SG = 'OFX-SG';\nexport const US = 'OFX-US';\nexport const IE = 'OFX-IE';\n","/*!\n * JavaScript Cookie v2.2.0\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;(function (factory) {\n\tvar registeredInModuleLoader = false;\n\tif (typeof define === 'function' && define.amd) {\n\t\tdefine(factory);\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (typeof exports === 'object') {\n\t\tmodule.exports = factory();\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (!registeredInModuleLoader) {\n\t\tvar OldCookies = window.Cookies;\n\t\tvar api = window.Cookies = factory();\n\t\tapi.noConflict = function () {\n\t\t\twindow.Cookies = OldCookies;\n\t\t\treturn api;\n\t\t};\n\t}\n}(function () {\n\tfunction extend () {\n\t\tvar i = 0;\n\t\tvar result = {};\n\t\tfor (; i < arguments.length; i++) {\n\t\t\tvar attributes = arguments[ i ];\n\t\t\tfor (var key in attributes) {\n\t\t\t\tresult[key] = attributes[key];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction init (converter) {\n\t\tfunction api (key, value, attributes) {\n\t\t\tvar result;\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Write\n\n\t\t\tif (arguments.length > 1) {\n\t\t\t\tattributes = extend({\n\t\t\t\t\tpath: '/'\n\t\t\t\t}, api.defaults, attributes);\n\n\t\t\t\tif (typeof attributes.expires === 'number') {\n\t\t\t\t\tvar expires = new Date();\n\t\t\t\t\texpires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5);\n\t\t\t\t\tattributes.expires = expires;\n\t\t\t\t}\n\n\t\t\t\t// We're using \"expires\" because \"max-age\" is not supported by IE\n\t\t\t\tattributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n\n\t\t\t\ttry {\n\t\t\t\t\tresult = JSON.stringify(value);\n\t\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n\t\t\t\t\t\tvalue = result;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\n\t\t\t\tif (!converter.write) {\n\t\t\t\t\tvalue = encodeURIComponent(String(value))\n\t\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\t\t\t\t} else {\n\t\t\t\t\tvalue = converter.write(value, key);\n\t\t\t\t}\n\n\t\t\t\tkey = encodeURIComponent(String(key));\n\t\t\t\tkey = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);\n\t\t\t\tkey = key.replace(/[\\(\\)]/g, escape);\n\n\t\t\t\tvar stringifiedAttributes = '';\n\n\t\t\t\tfor (var attributeName in attributes) {\n\t\t\t\t\tif (!attributes[attributeName]) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tstringifiedAttributes += '; ' + attributeName;\n\t\t\t\t\tif (attributes[attributeName] === true) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tstringifiedAttributes += '=' + attributes[attributeName];\n\t\t\t\t}\n\t\t\t\treturn (document.cookie = key + '=' + value + stringifiedAttributes);\n\t\t\t}\n\n\t\t\t// Read\n\n\t\t\tif (!key) {\n\t\t\t\tresult = {};\n\t\t\t}\n\n\t\t\t// To prevent the for loop in the first place assign an empty array\n\t\t\t// in case there are no cookies at all. Also prevents odd result when\n\t\t\t// calling \"get()\"\n\t\t\tvar cookies = document.cookie ? document.cookie.split('; ') : [];\n\t\t\tvar rdecode = /(%[0-9A-Z]{2})+/g;\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i < cookies.length; i++) {\n\t\t\t\tvar parts = cookies[i].split('=');\n\t\t\t\tvar cookie = parts.slice(1).join('=');\n\n\t\t\t\tif (!this.json && cookie.charAt(0) === '\"') {\n\t\t\t\t\tcookie = cookie.slice(1, -1);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tvar name = parts[0].replace(rdecode, decodeURIComponent);\n\t\t\t\t\tcookie = converter.read ?\n\t\t\t\t\t\tconverter.read(cookie, name) : converter(cookie, name) ||\n\t\t\t\t\t\tcookie.replace(rdecode, decodeURIComponent);\n\n\t\t\t\t\tif (this.json) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcookie = JSON.parse(cookie);\n\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (key === name) {\n\t\t\t\t\t\tresult = cookie;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!key) {\n\t\t\t\t\t\tresult[name] = cookie;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\n\t\t\treturn result;\n\t\t}\n\n\t\tapi.set = api;\n\t\tapi.get = function (key) {\n\t\t\treturn api.call(api, key);\n\t\t};\n\t\tapi.getJSON = function () {\n\t\t\treturn api.apply({\n\t\t\t\tjson: true\n\t\t\t}, [].slice.call(arguments));\n\t\t};\n\t\tapi.defaults = {};\n\n\t\tapi.remove = function (key, attributes) {\n\t\t\tapi(key, '', extend(attributes, {\n\t\t\t\texpires: -1\n\t\t\t}));\n\t\t};\n\n\t\tapi.withConverter = init;\n\n\t\treturn api;\n\t}\n\n\treturn init(function () {});\n}));\n","'use strict';\nvar strictUriEncode = require('strict-uri-encode');\nvar objectAssign = require('object-assign');\n\nfunction encoderForArrayFormat(opts) {\n\tswitch (opts.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn function (key, value, index) {\n\t\t\t\treturn value === null ? [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[',\n\t\t\t\t\tindex,\n\t\t\t\t\t']'\n\t\t\t\t].join('') : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[',\n\t\t\t\t\tencode(index, opts),\n\t\t\t\t\t']=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn function (key, value) {\n\t\t\t\treturn value === null ? encode(key, opts) : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[]=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn function (key, value) {\n\t\t\t\treturn value === null ? encode(key, opts) : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(opts) {\n\tvar result;\n\n\tswitch (opts.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t} else if (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction encode(value, opts) {\n\tif (opts.encode) {\n\t\treturn opts.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t} else if (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input)).sort(function (a, b) {\n\t\t\treturn Number(a) - Number(b);\n\t\t}).map(function (key) {\n\t\t\treturn input[key];\n\t\t});\n\t}\n\n\treturn input;\n}\n\nexports.extract = function (str) {\n\treturn str.split('?')[1] || '';\n};\n\nexports.parse = function (str, opts) {\n\topts = objectAssign({arrayFormat: 'none'}, opts);\n\n\tvar formatter = parserForArrayFormat(opts);\n\n\t// Create an object with no prototype\n\t// https://github.com/sindresorhus/query-string/issues/47\n\tvar ret = Object.create(null);\n\n\tif (typeof str !== 'string') {\n\t\treturn ret;\n\t}\n\n\tstr = str.trim().replace(/^(\\?|#|&)/, '');\n\n\tif (!str) {\n\t\treturn ret;\n\t}\n\n\tstr.split('&').forEach(function (param) {\n\t\tvar parts = param.replace(/\\+/g, ' ').split('=');\n\t\t// Firefox (pre 40) decodes `%3D` to `=`\n\t\t// https://github.com/sindresorhus/query-string/pull/37\n\t\tvar key = parts.shift();\n\t\tvar val = parts.length > 0 ? parts.join('=') : undefined;\n\n\t\t// missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tval = val === undefined ? null : decodeURIComponent(val);\n\n\t\tformatter(decodeURIComponent(key), val, ret);\n\t});\n\n\treturn Object.keys(ret).sort().reduce(function (result, key) {\n\t\tvar val = ret[key];\n\t\tif (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(val);\n\t\t} else {\n\t\t\tresult[key] = val;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n};\n\nexports.stringify = function (obj, opts) {\n\tvar defaults = {\n\t\tencode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none'\n\t};\n\n\topts = objectAssign(defaults, opts);\n\n\tvar formatter = encoderForArrayFormat(opts);\n\n\treturn obj ? Object.keys(obj).sort().map(function (key) {\n\t\tvar val = obj[key];\n\n\t\tif (val === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (val === null) {\n\t\t\treturn encode(key, opts);\n\t\t}\n\n\t\tif (Array.isArray(val)) {\n\t\t\tvar result = [];\n\n\t\t\tval.slice().forEach(function (val2) {\n\t\t\t\tif (val2 === undefined) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tresult.push(formatter(key, val2, result.length));\n\t\t\t});\n\n\t\t\treturn result.join('&');\n\t\t}\n\n\t\treturn encode(key, opts) + '=' + encode(val, opts);\n\t}).filter(function (x) {\n\t\treturn x.length > 0;\n\t}).join('&') : '';\n};\n","import Component from './Component';\n\nexport default Component;\n","import mouseFlow from './mouseFlow';\n\nexport { default as mouseFlowMiddleware } from './mouseFlowMiddleware';\nexport { default as constants } from './constants';\nexport default mouseFlow;\n","import { connect } from 'react-redux';\nimport { formValueSelector, change } from 'redux-form';\nimport { COUNTRY_US } from 'constants/countries';\nimport CountryAndState from './Component';\nimport { fetchStatesAction } from './reducers';\nimport { statePartitions, PropTypes } from './constants';\n\nconst mapStateToProps = (state, { formName, fieldsInfo }) => {\n    const country = formValueSelector(formName)(state, fieldsInfo.country.name);\n\n    const states =\n        country === COUNTRY_US\n            ? state[statePartitions.state].get(statePartitions.stateChildren.states)\n            : [];\n\n    return {\n        states,\n        country,\n        restrictedStates: states\n            .filter((item) => item['data-restricted'])\n            .map((item) => ({\n                display: item.text,\n                match: item.value,\n            })),\n    };\n};\n\nconst mapDispatchToProps = (dispatch, { formName, fieldsInfo }) => ({\n    countryChanged: (previousCountry, newCountry) => {\n        if (newCountry === COUNTRY_US) {\n            dispatch(fetchStatesAction(newCountry));\n        } else if (previousCountry === COUNTRY_US) {\n            dispatch(change(formName, fieldsInfo.state.name, ''));\n        }\n    },\n});\n\nconst Container = connect(mapStateToProps, mapDispatchToProps)(CountryAndState);\n\nContainer.PropTypes = {\n    formName: PropTypes.string.isRequired,\n    fieldsInfo: PropTypes.fieldsInfo,\n};\n\nexport default Container;\n","import React, { Component } from 'react';\nimport * as validation from 'validation';\nimport NewOfxField from 'components/NewOfxField';\nimport combineFieldInfos from 'components/helpers/combineFieldInfos';\nimport { PropTypes } from './constants';\nimport Country from '../../components/Country';\n\nclass CountryAndState extends Component {\n    constructor(props) {\n        super(props);\n\n        const { country, countryChanged } = props;\n\n        if (country) {\n            countryChanged(undefined, country);\n        }\n    }\n\n    componentWillReceiveProps(nextProps) {\n        const { country, countryChanged } = this.props;\n\n        if (country !== nextProps.country) {\n            countryChanged(country, nextProps.country);\n        }\n    }\n\n    render() {\n        const { states, fieldsInfo, formName, restrictedStates } = this.props;\n\n        return (\n            <div>\n                <Country countryFieldInfo={fieldsInfo.country} formName={formName} />\n                {this.props.states && this.props.states.length > 0 && (\n                    <NewOfxField\n                        fieldInfo={combineFieldInfos(fieldsInfo.state, {\n                            className: 'form-control',\n                            validate: validation.notIncludes(\n                                restrictedStates,\n                                'country-and-state-state-validation',\n                            ),\n                        })}\n                        type=\"select2\"\n                        data={states}\n                    />\n                )}\n            </div>\n        );\n    }\n}\n\nCountryAndState.propTypes = {\n    country: PropTypes.string,\n    states: PropTypes.dropdown,\n    countryChanged: PropTypes.func.isRequired,\n    fieldsInfo: PropTypes.fieldsInfo,\n    formName: PropTypes.string.isRequired,\n    restrictedStates: PropTypes.arrayOf(\n        PropTypes.shape({\n            display: PropTypes.string,\n            match: PropTypes.string,\n        }),\n    ),\n};\n\nexport default CountryAndState;\n","import { connect } from 'react-redux';\nimport PropTypes from 'constants/PropTypes';\nimport Component from './Component';\nimport { fetchCountriesForRegistrationAction } from './reducers';\nimport { statePartitions } from './constants';\n\nexport const mapStateToProps = (state) => ({\n    countries: state[statePartitions.country].get(statePartitions.countryChildren.countries),\n});\n\nconst mapDispatchToProps = (dispatch) => ({\n    fetchCountries: () => dispatch(fetchCountriesForRegistrationAction()),\n});\n\nconst Container = connect(mapStateToProps, mapDispatchToProps)(Component);\n\nContainer.PropTypes = {\n    formName: PropTypes.string.isRequired,\n    countryFieldInfo: PropTypes.fieldInfo.isRequired,\n};\n\nexport default Container;\n","import React, { Component } from 'react';\nimport PropTypes from 'constants/PropTypes';\nimport NewOfxField from 'components/NewOfxField';\nimport combineFieldInfos from 'components/helpers/combineFieldInfos';\nimport { FeatureFlagsDecorator } from 'components/FeatureFlags';\nimport { isEnabledFeatureFlag } from 'libs/featureFlagLookUp';\nimport ldFlags from 'constants/ldFlags';\nimport { isEqual as _isEqual } from 'lodash';\n\nclass Country extends Component {\n    componentDidMount() {\n        // Initial load irrespective of flags\n        this.props.fetchCountries();\n    }\n    componentDidUpdate(prevProps) {\n        // LaunchDarkly Delay\n        if (!_isEqual(prevProps.value.flags, this.props.value.flags) && this.props.value) {\n            const { value } = this.props;\n            const corEnabled = isEnabledFeatureFlag(value.flags, ldFlags.corEnabled);\n            this.props.fetchCountries(corEnabled);\n        }\n    }\n    render() {\n        const { countries, countryFieldInfo, disabled } = this.props;\n        if (!countries || countries.length === 0) {\n            return null;\n        }\n        return (\n            <NewOfxField\n                fieldInfo={combineFieldInfos(countryFieldInfo, { className: 'form-control' })}\n                type=\"select2\"\n                data={countries}\n                disabled={disabled}\n            />\n        );\n    }\n}\n\nCountry.propTypes = {\n    countries: PropTypes.dropdown,\n    fetchCountries: PropTypes.func.isRequired,\n    countryFieldInfo: PropTypes.fieldInfo.isRequired,\n    value: PropTypes.shape({\n        flags: PropTypes.instanceOf(Object), // Is there a narrower check?\n        updateUser: PropTypes.func,\n    }),\n    disabled: PropTypes.bool,\n};\n\nexport default FeatureFlagsDecorator(Country);\n","import React from 'react';\nimport PropTypes from 'constants/PropTypes';\nimport ofxChannel from 'ofxChannel';\n\nconst BRAND_CHANGED_EVENT = 'BRAND_CHANGED';\n\nclass Component extends React.Component {\n    constructor(props) {\n        super(props);\n\n        this.hasInitialCountry = !!props.country;\n    }\n\n    componentWillReceiveProps(nextProps) {\n        const { brand } = this.props;\n        const willComponentReceiveInitialBrand =\n            this.hasInitialCountry && !brand && !!nextProps.brand;\n        if (brand !== nextProps.brand && !willComponentReceiveInitialBrand) {\n            this.brandChanged(nextProps.brand, nextProps.country);\n        }\n    }\n\n    brandChanged(brand, countryIso) {\n        if (brand && ofxChannel.emit) {\n            ofxChannel.emit(BRAND_CHANGED_EVENT, {\n                brand,\n                countryIso,\n            });\n        }\n    }\n\n    render() {\n        return null;\n    }\n}\n\nComponent.displayName = 'BrandChangeNotifier';\n\nComponent.propTypes = {\n    country: PropTypes.string,\n    brand: PropTypes.string,\n};\n\nexport default Component;\n","import React from 'react';\nimport PropTypes from 'constants/PropTypes';\nimport { Field } from 'redux-form';\nimport config from 'ofxSettings';\nimport { renderField } from 'components';\n\nexport const renderRecaptcha = renderField({\n    id: 'recaptcha',\n    type: 'recaptcha',\n});\n\nconst Recaptcha = ({ formName }) => (\n    <Field\n        name=\"recaptcha\"\n        component={renderRecaptcha}\n        sitekey={config.recaptcha.sitekey}\n        formName={formName}\n    />\n);\n\nRecaptcha.propTypes = {\n    formName: PropTypes.string.isRequired,\n};\n\nexport default Recaptcha;\n","import { connect } from 'react-redux';\nimport { change } from 'redux-form';\nimport config from 'ofxSettings';\nimport PropTypes from '../../constants/PropTypes';\nimport Component from './Component';\nimport * as brands from '../../../../../constants/brands';\n\nconst mapStateToProps = (state, { brand }) => {\n    const productUpdatesHidden = config['product-updates-hidden'].includes(brand);\n    return {\n        showProductUpdates: !productUpdatesHidden,\n        isRecipientOnlyUser: state.recipientOnlyUser.get('isRecipientOnlyUser'),\n    };\n};\n\nconst mapDispatchToProps = (dispatch, { formName, productUpdates, brand }) => ({\n    setFieldValues: (isRecipientOnlyUser) => {\n        const productUpdatesPrefill =\n            config['product-updates-pre-fill'].includes(brand) ||\n            config['product-updates-hidden'].includes(brand) || // US should send true for product updates as is hidden\n            brand === brands.AU;\n        if (isRecipientOnlyUser) {\n            dispatch(change(formName, productUpdates.name, false));\n        } else {\n            dispatch(change(formName, productUpdates.name, productUpdatesPrefill));\n        }\n    },\n});\n\nconst Container = connect(mapStateToProps, mapDispatchToProps)(Component);\n\nContainer.propTypes = {\n    formName: PropTypes.string.isRequired,\n    label: PropTypes.string,\n    productUpdates: PropTypes.checkbox.isRequired,\n    brand: PropTypes.string.isRequired,\n};\n\nexport default Container;\n","import React from 'react';\nimport { FormLabel } from 'components';\nimport FormGroup from 'components/Form/FormGroup';\nimport Checkbox from 'components/Form/Checkbox';\nimport PropTypes from '../../constants/PropTypes';\n\nclass Component extends React.Component {\n    constructor(props) {\n        super(props);\n        this.renderCheckBox = this.renderCheckBox.bind(this);\n    }\n    componentDidMount() {\n        const { setFieldValues } = this.props;\n        setFieldValues();\n    }\n\n    componentDidUpdate(prevProps) {\n        const { isRecipientOnlyUser, setFieldValues } = this.props;\n        if (prevProps.isRecipientOnlyUser !== isRecipientOnlyUser) {\n            setFieldValues(isRecipientOnlyUser);\n        }\n    }\n\n    renderCheckBox() {\n        const { label, productUpdates } = this.props;\n        return (\n            <div className=\"ofx-field subscription\">\n                <FormGroup>\n                    {label && <FormLabel id=\"subscription\">{label}</FormLabel>}\n                    <div className=\"checkbox-container\">\n                        <Checkbox input={{ name: productUpdates.name }}>\n                            <span>{productUpdates.label}</span>\n                        </Checkbox>\n                    </div>\n                </FormGroup>\n            </div>\n        );\n    }\n\n    render() {\n        const { showProductUpdates, isRecipientOnlyUser } = this.props;\n        if (showProductUpdates && !isRecipientOnlyUser) {\n            return this.renderCheckBox();\n        }\n        return null;\n    }\n}\n\nComponent.propTypes = {\n    label: PropTypes.string,\n    productUpdates: PropTypes.checkbox.isRequired,\n    setFieldValues: PropTypes.func.isRequired,\n    showProductUpdates: PropTypes.bool.isRequired,\n    isRecipientOnlyUser: PropTypes.bool,\n};\n\nComponent.displayName = 'Subscription';\n\nexport default Component;\n","export const userRegistration = \"^[a-zA-Z ,'-]+$\";\nexport const currency = '^[0-9.,]+$';\nexport const alphaNumeric = '^[a-zA-Z\\\\d]+$';\nexport const numeric = '^[0-9]+$';\n// eslint-disable-next-line no-useless-escape\nexport const alphaNumericWithSimpleSeparators = '^[a-zA-Z0-9 _/,.;-]+$';\nexport const passwordComplexity = '^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9]).{8,}$';\nexport const routingNumber = '^[0-9]{9}$';\nexport const transitNumber = '^[0-9]{5}$';\nexport const instituionNumber = '^[0-9]{3}$';\n","import Container from './Container';\nimport reducers from './reducers';\n\nexport default Container;\nexport { reducers };\n","export const handleRegistrationPageLoad = (step, type, partnerName = undefined) => {\n    const registrationStep = `${type.toLowerCase()}Step${step}`;\n    const registrationType = `${type} Account`;\n\n    window.dataLayer.push({\n        event: 'registrationStep',\n        registrationStep,\n        registrationType,\n        partnerName,\n    });\n};\n\nexport const getGender = (title) => {\n    const female = ['Mrs', 'Ms', 'Miss'];\n    if (female.find((item) => item === title)) return 'Female';\n    else if (title === 'Mr') return 'Male';\n    return 'unknown';\n};\n","import PropTypes from 'constants/PropTypes';\n\nconst customPropTypes = {\n    checkbox: PropTypes.shape({\n        name: PropTypes.string.isRequired,\n        label: PropTypes.string.isRequired,\n    }),\n};\n\nexport default { ...customPropTypes, ...PropTypes };\n","const processCountries = (payload) => {\n    const topCountries = [];\n    const allCountries = [];\n\n    payload.forEach((item) => {\n        const value = {\n            value: item.IsoCountryCode,\n            text: item.CountryName,\n            'data-nationality': item.Nationality,\n        };\n\n        if (item.IsPopularCountry) {\n            topCountries.push({ hidden: true, ...value });\n        }\n        allCountries.push(value);\n    });\n\n    const result = [\n        ...topCountries,\n        {\n            text: 'All',\n            children: [],\n            hidden: true,\n            'data-nationality': '',\n        },\n    ];\n\n    const countries = [...result, ...allCountries];\n\n    const nationalities = countries.filter((country) => country['data-nationality'] !== undefined);\n\n    return {\n        countries,\n        nationalities,\n        topCountries,\n    };\n};\n\nexport default processCountries;\n","export { default } from './MouseFlow';\n","// eslint-disable-next-line import/prefer-default-export\nexport const DriverLicenceAu = {\n    number: 'driver-licence-au-number',\n    state: 'driver-licence-au-state',\n    cardNumber: 'driver-licence-card-number',\n};\n","import React from 'react';\nimport kebabCase from 'lodash/kebabCase';\nimport { i18n } from 'libs/i18n';\nimport PropTypes from 'constants/PropTypes';\nimport { US, CA, AU, NZ, GB, IE } from 'constants/brands';\nimport {\n    STEP2_TERMS_CONDITIONS,\n    US_ESIGN_CONSENT,\n} from '../../../features/registration/personal.registration/constants/appConstants';\n\nclass CallToActionNoModal extends React.Component {\n    internalRender() {\n        const { i18nPrefix, fieldName, brand } = this.props;\n        let termsAndConditionsLinkText = '';\n        let usOrCaVariation = '';\n\n        if (i18nPrefix === 'personal-registration') {\n            if (brand === US || brand === CA) {\n                termsAndConditionsLinkText = '-US-CA';\n            } else if (brand === AU) {\n                termsAndConditionsLinkText = '-AU';\n            } else if (brand === NZ) {\n                termsAndConditionsLinkText = '-NZ';\n            } else if (brand === IE || brand === GB) {\n                termsAndConditionsLinkText = '-EU-UK';\n            } else {\n                termsAndConditionsLinkText = '';\n            }\n            usOrCaVariation = brand === US || brand === CA ? '-US-CA' : '';\n        }\n        const fieldNameWithDashes = kebabCase(fieldName);\n\n        const esignConsent = [\n            <span key=\"and\"> and </span>,\n\n            // eslint-disable-next-line\n            <a\n                className=\"btn btn-link btn-auto-size uia-esign-consent-link\"\n                key=\"link-esign\"\n                href={US_ESIGN_CONSENT}\n                target=\"_blank\"\n            >\n                {i18n(`${i18nPrefix}-esign-consent-link`)}\n            </a>,\n        ];\n\n        return [\n            <span key=\"span\">\n                {i18n(`${i18nPrefix}-${fieldNameWithDashes}${usOrCaVariation}`)}\n            </span>,\n\n            // eslint-disable-next-line\n            <a\n                className={`btn btn-link btn-auto-size uia-${fieldNameWithDashes}-link`}\n                key=\"link-tnc\"\n                href={STEP2_TERMS_CONDITIONS[brand]}\n                target=\"_blank\"\n            >\n                {i18n(`${i18nPrefix}-${fieldNameWithDashes}-link${termsAndConditionsLinkText}`)}\n            </a>,\n\n            ...(brand === US && fieldNameWithDashes === 'terms-and-conditions' ? esignConsent : []),\n\n            <span key=\"extra-span\">.</span>,\n        ];\n    }\n\n    render() {\n        return this.internalRender();\n    }\n}\n\nCallToActionNoModal.propTypes = {\n    i18nPrefix: PropTypes.string.isRequired,\n    fieldName: PropTypes.string.isRequired,\n    brand: PropTypes.string.isRequired,\n};\n\nexport default CallToActionNoModal;\n","import { Map } from 'immutable';\nimport { createAction, handleActions } from 'redux-actions';\nimport { PublicSiteApi } from 'libs/api';\n\nconst PARTITION = 'recipientOnlyUser';\n\nconst ACTION_NAMESPACE = 'REGISTRATION';\n\nexport const isStatementOfRuleRequiredKey = 'isStatementOfRuleRequired';\n\nexport interface IRecipientOnly {\n    isRecipientOnlyUser: boolean;\n    [isStatementOfRuleRequiredKey]: boolean;\n}\n\nexport const actionTypes = {\n    GET_RECIPIENT_ONLY_USER: `${ACTION_NAMESPACE}.GET_RECIPIENT_ONLY_USER`,\n};\n\nconst initialState = {\n    [\"isRecipientOnlyUser\"]: false,\n    [isStatementOfRuleRequiredKey]: false,\n};\n\nexport const getRecipientOnlyUser = createAction(\n    actionTypes.GET_RECIPIENT_ONLY_USER,\n    PublicSiteApi.getRecipientOnlyUser,\n);\n\nexport const getRecipientOnlyUserReducer = handleActions<Map<string, any>>(\n    {\n        [`${actionTypes.GET_RECIPIENT_ONLY_USER}_FULFILLED`]: (\n            state,\n            { payload: { WillBeRecipientOnly, IsStatementOfRuleRequired } },\n        ) =>\n            state\n                .setIn([\"isRecipientOnlyUser\"], WillBeRecipientOnly)\n                .set(isStatementOfRuleRequiredKey, IsStatementOfRuleRequired),\n    },\n    Map(initialState),\n);\n\nexport default {\n    [PARTITION]: getRecipientOnlyUserReducer,\n};\n","import Container from './Container';\nimport reducers from './reducers';\n\nexport default Container;\nexport { reducers };\n","export { default } from './Component';\n","export const i18nPrefix = 'personal-registration';\nexport const formClass = 'ofx-personal-registration-form';\nexport const formName = 'personalRegistration';\nexport const step1FormName = 'step1';\n// 05/03/2018 AB: Michelle opted for ability to turn this back on if required.\nexport const extraAddressCountries = [];\nexport const moreThan3Years = 'more';\nexport const lessThan3Years = 'less';\nexport const DRIVERS_LICENSE_US = 'DriversLicenseUS';\nexport const DRIVER_LICENCE_NZ = 'DriverLicenceNZ';\nexport const PREVIOUS_ADDRESS_FIELD_NAME = 'previousAddress';\nexport const IRD_PARTNER = 1836;\nexport const ADDRESS_FIELD_NAME = 'address';\nexport const STEPS = { ONE: 1, TWO: 2 };\nexport const BRAND_FIELD_NAME = 'brand';\nexport const MOUSEFLOW_ROUTE_PERSONAL_STEP_ONE = '/Registration/Personal/Step1';\nexport const MOUSEFLOW_ROUTE_PERSONAL_STEP_TWO = '/Registration/Personal/Step2';\nexport const STEP1_PRIVACY_POLICY = {\n    'OFX-AU': 'https://www.ofx.com/en-au/legal/privacy-policy/',\n    'OFX-NZ': 'https://www.ofx.com/en-nz/legal/privacy-policy/',\n    'OFX-US': 'https://www.ofx.com/en-us/legal/privacy-policy/',\n    'OFX-HK': 'https://www.ofx.com/en-hk/legal/privacy-policy/',\n    'OFX-SG': 'https://www.ofx.com/en-sg/legal/privacy-policy/',\n    'OFX-CA': 'https://www.ofx.com/en-ca/legal/privacy-policy/',\n    'OFX-GB': 'https://www.ofx.com/en-gb/legal/privacy-policy/',\n    'OFX-IE': 'https://www.ofx.com/en-ie/legal/privacy-policy/',\n};\nexport const STEP2_TERMS_CONDITIONS = {\n    'OFX-AU':\n        'https://www.ofx.com/wp-content/uploads/2021/08/OFX-Individual-Client-Agreement-PDF.pdf',\n    'OFX-NZ': 'https://www.ofx.com/wp-content/uploads/2021/08/OFX-NZ-Terms-and-Conditions.pdf',\n    'OFX-US': 'https://www.ofx.com/en-us/legal/user-agreement/',\n    'OFX-CA': 'https://www.ofx.com/en-ca/legal/user-agreement/',\n    'OFX-HK': 'https://www.ofx.com/wp-content/uploads/2021/08/OFX-HK-Terms-and-Conditions-1.pdf',\n    'OFX-SG': 'https://www.ofx.com/en-sg/legal/terms-and-conditions/ ',\n    'OFX-GB': 'https://www.ofx.com/en-gb/legal/customer-agreement/',\n    'OFX-IE': 'https://www.ofx.com/en-ie/legal/customer-agreement/',\n};\nexport const US_ESIGN_CONSENT = 'https://www.ofx.com/en-us/legal/e-sign-consent-agreement/';\n\nexport const Leeuwin = {\n    cookiePrefix: 'ptr_',\n    queryStringKeys: ['scope', 'state', 'client_id', 'redirect_uri'],\n    partnerLinkName: 'Link Market Services',\n};\n\nexport const DEFAULT_CURRENCY_CODE = 'AUD';\nexport const DEFAULT_SELL_CURRENCY_CODE = 'USD';\nexport const DEFAULT_TRANSFER_AMOUNT = '10000';\n\nexport const ONFIDO_REDIRECT_URL_PARAM = 'verification';\n\nexport const PARTNER_NAME = {\n    '13763': 'ATO',\n};\n","import React, { Component } from 'react';\nimport Instructions from 'components/Form/Instructions';\nimport { i18n } from 'libs/i18n';\nimport { renderField, OfxField } from 'components';\nimport PropTypes from 'constants/PropTypes';\n\n// This is an existing tech debt as long as we use FormField\nconst informationPopoverElements = ['select2', 'radio', 'checkbox', 'phone'];\n\nclass NewOfxField extends Component {\n    constructor(props) {\n        super(props);\n\n        const placeholder = i18n(\n            `${props.fieldInfo.labelsPrefix}-placeholder`,\n            null,\n            props.fieldInfo.defaultPlaceholder,\n        );\n\n        this.fieldProperties = {\n            id: props.fieldInfo.name,\n            placeholder,\n            className: props.fieldInfo.className,\n            type: props.type,\n        };\n\n        const renderInstructions = (type) => {\n            if (informationPopoverElements.indexOf(type) >= 0) {\n                return { text: i18n(`${props.fieldInfo.labelsPrefix}-instructions`) };\n            }\n            return <Instructions title={i18n(`${props.fieldInfo.labelsPrefix}-instructions`)} />;\n        };\n\n        this.component = renderField(\n            this.fieldProperties,\n            !props.fieldInfo.disableLabel ? i18n(props.fieldInfo.labelsPrefix) : null,\n            props.fieldInfo.showInstructions ? renderInstructions(props.type) : null,\n        );\n    }\n\n    render() {\n        const { props } = this;\n        return (\n            <OfxField\n                name={props.fieldInfo.name}\n                component={this.component}\n                validate={props.fieldInfo.validate}\n                {...props}\n            />\n        );\n    }\n}\n\nNewOfxField.propTypes = {\n    fieldInfo: PropTypes.fieldInfo.isRequired,\n    type: PropTypes.string.isRequired,\n};\n\nexport default NewOfxField;\n","import * as React from 'react';\nimport mouseFlow from 'libs/mouseFlow';\n\nclass MouseFlow extends React.Component<{}, {}> {\n    constructor(props: {}) {\n        super(props);\n    }\n\n    componentDidMount() {\n        mouseFlow.enable(true);\n    }\n\n    render() {\n        return null;\n    }\n\n    componentWillUnmount() {\n        mouseFlow.enable(false);\n    }\n}\n\nexport default MouseFlow;\n","import config from 'ofxSettings';\n\nconst { newDealFeedBackId } = config;\n\nexport default {\n    newDealFeedBackId,\n};\n","'use strict';\nmodule.exports = function (str) {\n\treturn encodeURIComponent(str).replace(/[!'()*]/g, function (c) {\n\t\treturn '%' + c.charCodeAt(0).toString(16).toUpperCase();\n\t});\n};\n","import MainPropTypes from 'constants/PropTypes';\n\nconst state = 'RegistrationState';\n\nconst stateChildren = {\n    states: 'states',\n};\n\nexport const statePartitions = {\n    state,\n    stateChildren,\n};\n\nexport const PropTypes = {\n    fieldsInfo: MainPropTypes.shape({\n        country: MainPropTypes.fieldInfo.isRequired,\n        state: MainPropTypes.fieldInfo.isRequired,\n    }).isRequired,\n    ...MainPropTypes,\n};\n","import * as React from 'react';\nimport CallToActionNoModal from './CheckboxWithModal';\n\ninterface IProps {\n    brand: string;\n    formName: string;\n    i18nPrefix: string;\n    fieldName: string;\n}\n\nconst Component = (props: IProps) => {\n    return (\n        <CallToActionNoModal\n            fieldName={props.fieldName}\n            formName={props.formName}\n            i18nPrefix={props.i18nPrefix}\n            brand={props.brand}\n        />\n    );\n};\n\nComponent.displayName = 'TermsAndConditions';\n\nexport default Component;\n","export { default } from './Container';\nexport { default as CallToActionWithLink } from './CallToActionWithLink';\n","import PropTypes from 'constants/PropTypes';\nimport { connect } from 'react-redux';\nimport { change } from 'redux-form';\nimport Component from './Component';\n\nconst mapDispatchToProps = (dispatch, ownProps) => {\n    const { tickOnClose, fieldName, formName } = ownProps;\n    return {\n        onClose: () => {\n            if (tickOnClose) {\n                dispatch(change(formName, fieldName, true));\n            }\n        },\n    };\n};\n\nconst Container = connect(null, mapDispatchToProps)(Component);\n\nContainer.propTypes = {\n    fieldName: PropTypes.string.isRequired,\n    formName: PropTypes.string.isRequired,\n    i18nPrefix: PropTypes.string.isRequired,\n    modalHtmlContent: PropTypes.string,\n    tickOnClose: PropTypes.bool,\n};\n\nexport default Container;\n","import React from 'react';\nimport PropTypes from 'constants/PropTypes';\nimport SimpleField from 'components/Form/SimpleField';\nimport Checkbox from 'components/Form/Checkbox';\nimport kebabCase from 'lodash/kebabCase';\nimport DefaultCallToAction from './CallToActionNoModal';\nimport Modal from './Modal';\n\nclass Component extends React.Component {\n    constructor(props) {\n        super(props);\n\n        this.openModal = this.openModal.bind(this);\n        this.closeModal = this.closeModal.bind(this);\n        this.state = {\n            open: false,\n        };\n    }\n\n    openModal() {\n        this.setState({\n            open: true,\n        });\n    }\n\n    closeModal() {\n        this.setState({\n            open: false,\n        });\n        this.props.onClose();\n    }\n\n    render() {\n        const { fieldName, i18nPrefix, modalHtmlContent, callToAction, brand } = this.props;\n        const CallToActionComponent = callToAction || DefaultCallToAction;\n        const fieldNameWithDashes = kebabCase(fieldName);\n        return (\n            <div className=\"uia-terms-and-conditions\">\n                {this.state.open && (\n                    <Modal\n                        onClose={this.closeModal}\n                        i18nPrefix={i18nPrefix}\n                        content={modalHtmlContent}\n                        fieldName={fieldName}\n                    />\n                )}\n                <SimpleField\n                    name={fieldName}\n                    componentType={Checkbox}\n                    className={`uia-${fieldNameWithDashes}`}\n                    isRequired\n                >\n                    <div className={`${fieldNameWithDashes}-cta`}>\n                        <CallToActionComponent\n                            i18nPrefix={i18nPrefix}\n                            fieldName={fieldName}\n                            brand={brand}\n                        />\n                    </div>\n                </SimpleField>\n            </div>\n        );\n    }\n}\n\nComponent.propTypes = {\n    onClose: PropTypes.func.isRequired,\n    i18nPrefix: PropTypes.string.isRequired,\n    fieldName: PropTypes.string.isRequired,\n    modalHtmlContent: PropTypes.string,\n    brand: PropTypes.string.isRequired,\n    callToAction: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n};\n\nComponent.defaultProps = {\n    modalHtmlContent: '',\n};\n\nComponent.displayName = 'CheckboxWithModal';\n\nexport default Component;\n","import React from 'react';\nimport PropTypes from 'constants/PropTypes';\nimport { i18n } from 'libs/i18n';\nimport { HtmlModal, Footers } from 'components/Modals';\nimport kebabCase from 'lodash/kebabCase';\n\nconst Modal = (props) => {\n    const { onClose, i18nPrefix, content, fieldName } = props;\n    const fieldNameWithDashes = kebabCase(fieldName);\n\n    const footer = (\n        <Footers.SingleButton\n            onClick={onClose}\n            text={i18n(`${i18nPrefix}-close`)}\n            className=\"btn btn-primary uia-primary-button\"\n        />\n    );\n\n    return (\n        <HtmlModal\n            className={`ofx-${fieldNameWithDashes}-modal`}\n            title={i18n(`${i18nPrefix}-${fieldNameWithDashes}-title`)}\n            footer={footer}\n            content={content}\n        />\n    );\n};\n\nModal.propTypes = {\n    onClose: PropTypes.func.isRequired,\n    i18nPrefix: PropTypes.string.isRequired,\n    content: PropTypes.string.isRequired,\n    fieldName: PropTypes.string.isRequired,\n};\n\nexport default Modal;\n","import React from 'react';\nimport PropTypes from 'constants/PropTypes';\nimport { i18n } from 'libs/i18n';\nimport kebabCase from 'lodash/kebabCase';\nimport CallToActionNoModal from './CallToActionNoModal';\n\nclass CallToActionWithLink extends CallToActionNoModal {\n    render() {\n        const { fieldName, i18nPrefix, link } = this.props;\n        const fieldNameWithDashes = kebabCase(fieldName);\n\n        return [\n            this.internalRender(),\n            <span key=\"span-and\"> {i18n('and')} </span>,\n            // eslint-disable-next-line\n            <a className=\"btn btn-link btn-auto-size\" key=\"link\" href={link} target=\"_blank\">\n                {i18n(`${i18nPrefix}-${fieldNameWithDashes}-extra-link`)}\n            </a>,\n        ];\n    }\n}\n\nCallToActionWithLink.propTypes = {\n    i18nPrefix: PropTypes.string.isRequired,\n    fieldName: PropTypes.string.isRequired,\n    link: PropTypes.string.isRequired,\n};\n\nexport default CallToActionWithLink;\n","import { createAction } from 'redux-actions';\nimport { change } from 'redux-form';\nimport { RefDataApi } from 'libs/api';\n\nconst actionTypes = {\n    SET_CURRENT_BRAND: 'SET_CURRENT_BRAND',\n};\n\nexport default (country, formName, fieldName) => (dispatch) => {\n    const payloadCreator = () =>\n        RefDataApi.brandByCountry(country).then((response) =>\n            dispatch(change(formName, fieldName, response.Brand)),\n        );\n\n    const action = createAction(actionTypes.SET_CURRENT_BRAND, payloadCreator)();\n\n    dispatch(action);\n};\n","const combineValidations = (val1, val2) => {\n    if (val1 && val2) {\n        const arr1 = Array.isArray(val1) ? val1 : [val1];\n        const arr2 = Array.isArray(val2) ? val2 : [val2];\n        return [...arr1, ...arr2];\n    }\n    return val1 || val2;\n};\n\nconst combineClassNames = (className1, className2) => {\n    if (className1 && className2) {\n        return `${className1} ${className2}`;\n    }\n    return className1 || className2;\n};\n\nexport default (recievedInfo, infoToAdd) => ({\n    ...recievedInfo,\n    className: combineClassNames(recievedInfo.className, infoToAdd.className),\n    validate: combineValidations(recievedInfo.validate, infoToAdd.validate),\n});\n","import { handleActions, createAction } from 'redux-actions';\nimport { Map } from 'immutable';\nimport { RefDataApi } from 'libs/api';\nimport * as Cookie from 'js-cookie';\nimport processCountries from '../../libs/processCountries';\nimport { statePartitions } from './constants';\n\n// Action Types\nconst PREFIX = 'REGISTRATION.';\nexport const FETCH_COUNTRIES_FOR_REGISTRATION = `${PREFIX}FETCH_COUNTRIES_FOR_REGISTRATION`;\n\n// Actions\nexport const fetchCountriesForRegistrationAction = createAction(\n    FETCH_COUNTRIES_FOR_REGISTRATION,\n    Cookie.get('IncludeAllCountries') ? RefDataApi.countries : RefDataApi.countriesForRegistration,\n    (corEnabled) => ({ corEnabled }),\n);\n\n// Reducers\nexport const countriesForRegistrationReducer = handleActions(\n    {\n        [`${FETCH_COUNTRIES_FOR_REGISTRATION}_FULFILLED`]: (state, { payload }) => {\n            const { countries, topCountries } = processCountries(payload.Countries);\n\n            return state.set(statePartitions.countryChildren.countries, countries).set(\n                statePartitions.countryChildren.topCountries,\n                topCountries.map((item) => item.value),\n            );\n        },\n    },\n    new Map({\n        [statePartitions.countryChildren.countries]: [],\n        [statePartitions.countryChildren.topCountries]: [],\n    }),\n);\n\nexport default {\n    [statePartitions.country]: countriesForRegistrationReducer,\n};\n","const country = 'RegistrationCountry';\n\nconst countryChildren = {\n    countries: 'countriesForRegistration',\n    topCountries: 'topCountries',\n};\n\n// eslint-disable-next-line import/prefer-default-export\nexport const statePartitions = {\n    country,\n    countryChildren,\n};\n","import { handleActions, createAction } from 'redux-actions';\nimport { Map } from 'immutable';\nimport { RefDataApi } from 'libs/api';\nimport { reducers as countryReducers } from '../../components/Country';\nimport { statePartitions } from './constants';\n\n// Action Types\nconst PREFIX = 'REGISTRATION.';\nexport const FETCH_STATES = `${PREFIX}FETCH_STATES`;\n\n// Actions\nexport const fetchStatesAction = createAction(FETCH_STATES, RefDataApi.countryStates);\n\n// Reducers\nexport const statesReducer = handleActions(\n    {\n        [`${FETCH_STATES}_FULFILLED`]: (state, action) =>\n            state.set(\n                statePartitions.stateChildren.states,\n                action.payload.CountryStates.map((item) => ({\n                    value: item.Code,\n                    text: item.Name,\n                    'data-restricted': item.IsBlockedFromRegistration,\n                })),\n            ),\n    },\n    new Map({\n        [statePartitions.stateChildren.states]: [],\n    }),\n);\n\nconst reducers = {\n    [statePartitions.state]: statesReducer,\n};\n\nexport default { ...reducers, ...countryReducers };\n","import Component from './Component';\n\nexport default Component;\n"],"sourceRoot":""}