{"version":3,"sources":["webpack:///./src/components/ModalInfoMessage.tsx","webpack:///./src/components/PaymentOptions/index.js","webpack:///./src/components/PaymentOptions/DebitCard/index.ts","webpack:///./src/components/PaymentOptions/DebitCard/reducers.ts","webpack:///./src/features/transfers/new.transfer/routes/PaymentAccounts/components/reducers.js","webpack:///./src/components/PaymentOptions/BankTransfer.jsx","webpack:///./src/components/PaymentOptions/BPay.jsx","webpack:///./src/components/PaymentOptions/BillPayment.jsx","webpack:///./src/components/PaymentOptions/DebitCard/Container.ts","webpack:///./src/components/PaymentOptions/DebitCard/Component.tsx","webpack:///./src/components/PaymentOptions/DebitCard/components/index.js","webpack:///./src/components/PaymentOptions/DebitCard/components/DebitCardModal.tsx","webpack:///./src/components/PaymentOptions/DebitCard/components/NewCardForm.tsx","webpack:///./src/components/PaymentOptions/DebitCard/components/SavedCardForm.tsx","webpack:///./src/components/PaymentOptions/DebitCard/components/CyberSourceFingerPrint.tsx","webpack:///./src/features/transfers/new.transfer/routes/PaymentAccounts/components/Container.ts","webpack:///./src/features/transfers/new.transfer/routes/PaymentAccounts/helpers/apiMapper.js","webpack:///./node_modules/lodash/sortBy.js","webpack:///./node_modules/lodash/_baseOrderBy.js","webpack:///./node_modules/lodash/_baseMap.js","webpack:///./node_modules/lodash/_baseSortBy.js","webpack:///./node_modules/lodash/_compareMultiple.js","webpack:///./node_modules/lodash/_compareAscending.js","webpack:///./src/features/transfers/new.transfer/routes/PaymentAccounts/components/PaymentOptionsQuery.ts","webpack:///./src/features/transfers/new.transfer/routes/PaymentAccounts/components/Component.tsx","webpack:///./src/features/transfers/new.transfer/routes/PaymentAccounts/components/CurrencyRow.tsx","webpack:///./src/components/PaymentOptions/DebitCard/constants.js","webpack:///./src/features/transfers/new.transfer/routes/PaymentAccounts/components/index.js","webpack:///./src/features/transfers/new.transfer/routes/PaymentAccounts/constants/index.js"],"names":["className","message","name","stroke","default","partition","initialState","cyberSourceData","deviceFingerprint","signedFields","payAndSaveCardSignedFields","payWithoutSavingCardSignedFields","payWithSavedCardSignedFields","silentOrderPostUrl","undefined","lastFourDigitsOfSavedCard","selectedCardOption","DEBIT_CARD_OPTIONS","NEW","saveCardForLater","actionTypes","FETCH_CYBERSOURCE_DATA","actionPrefix","SUBMIT_DEBIT_CARD_DATA","CARD_SELECTION_CHANGE","SAVE_CARD_CHANGE","actions","fetchCyberSourceData","createAction","dealId","SecureApi","getCyberSourceData","cardSelectionChange","option","saveCardChanged","checked","reducers","handleActions","state","payload","data","setIn","getIn","SAVED","Map","FETCH_PAYMENT_ACCOUNTS","fetchPaymentAccounts","query","set","handleResponse","user","accounts","paymentOptions","BankTransferItem","CurrenciesWithBankCodeLabel","HKD","showBranchCode","bankCountry","item","gridWidth","i18nBankTransferPrefix","branchCodePrefix","bankCurrency","branchCodeLabel","bankName","accountName","Fragment","bankCode","accountNumber","swift","iban","userPaymentReference","bankAddress","propTypes","bankAccount","isRequired","number","string","BankTransfer","i18nPrefix","containerWidth","length","itemWidth","bankTransferTitleKey","map","bank","key","arrayOf","displayName","BPay","i18nBPayPrefix","billerCode","reference","shape","BillPayment","i18nBillPaymentPrefix","i18nFinancialInstitutionKeys","biller","account","selector","formValueSelector","formName","validateCardExpiryDate","values","card_expirationMonth","card_expirationYear","today","moment","currentMonth","month","currentYear","year","expirationMonth","parseInt","errorMessage","label","i18n","props","updateCardExpiryValue","monthPrefix","yearPrefix","card_expiry_date","initialValues","fieldNames","debitCardOption","Form","reduxForm","form","enableReinitialize","keepDirtyOnReinitialize","validate","onChange","onSubmitFail","errors","dispatch","submitError","Object","keys","syncErrors","onCancel","toastCreator","error","Container","connect","ownProps","get","cardOption","i18nDebitCardPrefix","openModal","bind","closeModal","onCardSelectionChanged","modalOpen","componentDidMount","this","setState","e","target","value","renderDebitCardOptions","suffix","debitCardOptions","id","componentType","options","customOnChange","inlineGroup","render","paymentAmount","handleSubmit","onClick","onSuccess","React","Component","DebitCard","submitForm","submit","sessionId","footer","Footers","SubmitAndCancelButton","text","cancel","ref","noValidate","method","action","silentOrderPOSTUrl","onSubmit","deviceFingerprintId","type","index","DebitCardModal","digitsOnlyRegex","acceptedCardTypes","onSaveCardChanged","Modal","title","validation","required","maxLength","autoComplete","pattern","placeholder","minLength","count","isValidCreditCardNumber","isValidCreditCardType","isInRange","min","max","Date","getFullYear","isMatch","htmlFor","orgId","fingerPrintDomain","imgSrcUrl","scriptUrl","objectDataUrl","paramUrl","styles","p","background","style","src","alt","width","height","customerRefNumber","CustomerReferenceNumber","bindActionCreators","response","paymentAccounts","r","bankCurrencyName","forEach","currencyCode","toUpperCase","currencyName","bankTransfer","paymentType","toLowerCase","bpay","billPaymentCAD","address","push","country","addressLine1","addressLine2","citySuburb","stateProvince","postCode","filter","x","join","baseFlatten","baseOrderBy","baseRest","isIterateeCall","sortBy","collection","iteratees","module","exports","arrayMap","baseGet","baseIteratee","baseMap","baseSortBy","baseUnary","compareMultiple","identity","isArray","orders","iteratee","result","object","other","baseEach","isArrayLike","Array","array","comparer","sort","compareAscending","objCriteria","criteria","othCriteria","ordersLength","isSymbol","valIsDefined","valIsNull","valIsReflexive","valIsSymbol","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","PAYMENT_OPTIONS_QUERY","gql","currency","defaultProps","visible","renderPaymentDetails","collapsibleClass","isBuyCurrencyEUR","currencyCodes","EUR","FeatureFlagsConsumer","flagKey","bankDetailsChangedMessage","btnLinkCss","role","FEATURE_NAMESPACE"],"mappings":"2IAAA,WACA,SAkBA,UAXyB,SAAC,G,IAAEA,EAAA,EAAAA,UAAWC,EAAA,EAAAA,QAAsB,OACzD,uBAAKD,UAAWA,EAAY,kBAAkBA,EAAc,kBACxD,uBAAKA,UAAU,cACX,uBAAKA,UAAU,kBACX,gBAAC,UAAG,CAACE,KAAK,QAAQF,UAAU,OAAOG,OAAO,aAE9C,uBAAKH,UAAU,mBAAmBC,O,+MCdrCG,W,sFACAA,W,6FACAA,W,2FACAA,W,qKCHT,cAAS,EAAAA,QAAA,EAAAA,QACT,cAAS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ADpB3O,E,8GACA2O,E","file":"bundle.09312319a3e33e39fab8.js","sourcesContent":["import * as React from 'react';\nimport SVG from 'components/Icons/SVG';\n\ninterface IProps {\n message: React.ReactNode;\n className?: string;\n}\n\nconst ModalInfoMessage = ({ className, message }: IProps) => (\n
\n
\n
\n \n
\n
{message}
\n
\n
\n);\n\nexport default ModalInfoMessage;\n","export { default as BankTransfer } from './BankTransfer';\nexport { default as BPay } from './BPay';\nexport { default as BillPayment } from './BillPayment';\nexport { default as DebitCard } from './DebitCard';\n","export { default } from './Container';\nexport { default as reducers } from './reducers';\n","import { Map } from 'immutable';\nimport { SecureApi } from 'libs/api';\nimport { createAction, handleActions } from 'redux-actions';\nimport { DEBIT_CARD_OPTIONS, actionPrefix } from './constants';\n\nexport const partition = 'debitCardPayment';\n\ninterface IResponse {\n deviceFingerprint: any;\n signedFields: any;\n payAndSaveCardSignedFields: any;\n payWithoutSavingCardSignedFields: any;\n payWithSavedCardSignedFields: any;\n silentOrderPostUrl?: string;\n lastFourDigitsOfSavedCard?: string;\n}\n\nexport interface IPartition {\n cyberSourceData: IResponse;\n selectedCardOption: string;\n saveCardForLater: boolean;\n}\n\nconst initialState: IPartition = {\n cyberSourceData: {\n deviceFingerprint: {},\n signedFields: {},\n payAndSaveCardSignedFields: {},\n payWithoutSavingCardSignedFields: {},\n payWithSavedCardSignedFields: {},\n silentOrderPostUrl: undefined,\n lastFourDigitsOfSavedCard: undefined,\n },\n selectedCardOption: DEBIT_CARD_OPTIONS.NEW,\n saveCardForLater: true,\n};\n\nconst actionTypes = {\n FETCH_CYBERSOURCE_DATA: `${actionPrefix}FETCH_CYBERSOURCE_DATA`,\n SUBMIT_DEBIT_CARD_DATA: `${actionPrefix}SUBMIT_DEBIT_CARD_DATA`,\n CARD_SELECTION_CHANGE: `${actionPrefix}CARD_SELECTION_CHANGE`,\n SAVE_CARD_CHANGE: `${actionPrefix}SAVE_CARD_CHANGE`,\n};\n\nexport const actions = {\n fetchCyberSourceData: createAction(actionTypes.FETCH_CYBERSOURCE_DATA, (dealId: string) =>\n SecureApi.getCyberSourceData(dealId),\n ),\n cardSelectionChange: createAction(\n actionTypes.CARD_SELECTION_CHANGE,\n (option: string) => option,\n ),\n saveCardChanged: createAction(\n actionTypes.SAVE_CARD_CHANGE,\n (checked: boolean | string) => checked,\n ),\n};\n\nconst reducers = handleActions(\n {\n [`${actionTypes.FETCH_CYBERSOURCE_DATA}_FULFILLED`]: (state: any, { payload }) => {\n const data = {\n ...payload,\n signedFields: payload.lastFourDigitsOfSavedCard\n ? payload.payWithSavedCardSignedFields\n : payload.payAndSaveCardSignedFields,\n };\n return state.setIn([\"cyberSourceData\"], data);\n },\n [actionTypes.CARD_SELECTION_CHANGE]: (state: any, { payload }) => {\n const cyberSourceData = state.getIn([\"cyberSourceData\"]);\n let signedFields;\n if (payload === DEBIT_CARD_OPTIONS.NEW) {\n const { payAndSaveCardSignedFields } = state.getIn([\n \"cyberSourceData\",\n ]);\n signedFields = payAndSaveCardSignedFields;\n } else if (payload === DEBIT_CARD_OPTIONS.SAVED) {\n const { payWithSavedCardSignedFields } = state.getIn([\n \"cyberSourceData\",\n ]);\n signedFields = payWithSavedCardSignedFields;\n }\n\n const data = {\n ...cyberSourceData,\n signedFields,\n };\n\n return state\n .setIn([\"cyberSourceData\"], data)\n .setIn([\"selectedCardOption\"], payload);\n },\n [actionTypes.SAVE_CARD_CHANGE]: (state: any, { payload }) => {\n const cyberSourceData = state.getIn([\"cyberSourceData\"]);\n let signedFields;\n if (payload) {\n const { payAndSaveCardSignedFields } = state.getIn([\n \"cyberSourceData\",\n ]);\n signedFields = payAndSaveCardSignedFields;\n } else {\n const { payWithoutSavingCardSignedFields } = state.getIn([\n \"cyberSourceData\",\n ]);\n signedFields = payWithoutSavingCardSignedFields;\n }\n\n const data = {\n ...cyberSourceData,\n signedFields,\n };\n\n return state.setIn([\"cyberSourceData\"], data);\n },\n },\n Map(initialState),\n);\n\nexport default {\n [partition]: reducers,\n};\n","import { Map } from 'immutable';\nimport { createAction, handleActions } from 'redux-actions';\nimport { query } from 'libs/apolloClient';\nimport { FEATURE_NAMESPACE } from '../constants';\nimport { handleResponse } from '../helpers/apiMapper';\nimport { PAYMENT_OPTIONS_QUERY } from './PaymentOptionsQuery';\n\nexport const partition = 'paymentaccounts';\n\n// Action Types\nconst actionTypes = {\n FETCH_PAYMENT_ACCOUNTS: `${FEATURE_NAMESPACE}/FETCH_PAYMENT_ACCOUNTS`,\n};\n\n// Actions\nexport const actions = {\n fetchPaymentAccounts: createAction(actionTypes.FETCH_PAYMENT_ACCOUNTS, () =>\n query(PAYMENT_OPTIONS_QUERY),\n ),\n};\n\n// Reducer\nconst reducers = handleActions(\n {\n [`${actionTypes.FETCH_PAYMENT_ACCOUNTS}_FULFILLED`]: (state, { payload }) =>\n state.set('accounts', handleResponse(payload.data.user.accounts[0].paymentOptions)),\n },\n new Map(),\n);\n\nexport default {\n [partition]: reducers,\n};\n","import React from 'react';\nimport i18n from 'libs/i18n';\nimport PropTypes from 'constants/PropTypes';\nimport { CURRENCY_USD } from 'constants/currencies';\n\nconst maxColumnWidth = 12;\n\nconst colWidth = 4;\nexport const CurrenciesWithBankCodeLabel = {\n HKD: 'HKD',\n};\n\nconst countryToHide = 'Singapore';\n\nfunction showBranchCode(bankCountry) {\n return bankCountry !== countryToHide;\n}\n\nexport function BankTransferItem({ item, gridWidth, i18nBankTransferPrefix }) {\n const branchCodePrefix =\n item.bankCurrency === CurrenciesWithBankCodeLabel.HKD ? '-bank-code' : '-bsb';\n const branchCodeLabel = i18n(`${i18nBankTransferPrefix}${branchCodePrefix}`);\n\n return (\n
\n

{item.bankName}

\n
\n
{i18n(`${i18nBankTransferPrefix}-payee`)}
\n
{item.accountName}
\n {showBranchCode(item.bankCountry) && (\n \n
{branchCodeLabel}
\n
{item.bankCode}
\n
\n )}\n
{i18n(`${i18nBankTransferPrefix}-account-no`)}
\n
{item.accountNumber}
\n {item.swift && (\n \n
{i18n(`${i18nBankTransferPrefix}-swift`)}
\n
{item.swift}
\n
\n )}\n {item.iban && (\n \n
{i18n(`${i18nBankTransferPrefix}-iban`)}
\n
{item.iban}
\n
\n )}\n
{i18n(`${i18nBankTransferPrefix}-reference`)}
\n
{item.userPaymentReference}
\n
{i18n(`${i18nBankTransferPrefix}-address`)}
\n
{item.bankAddress}
\n
\n
\n );\n}\n\nBankTransferItem.propTypes = {\n item: PropTypes.bankAccount.isRequired,\n gridWidth: PropTypes.number.isRequired,\n i18nBankTransferPrefix: PropTypes.string.isRequired,\n};\n\nconst BankTransfer = ({ data, i18nPrefix, bankCurrency }) => {\n const containerWidth = data.length * colWidth;\n const itemWidth = maxColumnWidth / data.length;\n const i18nBankTransferPrefix = `${i18nPrefix}-payment-options-bank-transfer`;\n const bankTransferTitleKey =\n bankCurrency === CURRENCY_USD\n ? `${i18nBankTransferPrefix}-title-usd`\n : `${i18nBankTransferPrefix}-title`;\n\n return (\n
\n

{i18n(bankTransferTitleKey)}

\n
\n {data.map((bank) => (\n \n ))}\n
\n
\n );\n};\n\nBankTransfer.propTypes = {\n data: PropTypes.arrayOf(PropTypes.bankAccount).isRequired,\n i18nPrefix: PropTypes.string.isRequired,\n bankCurrency: PropTypes.string.isRequired,\n};\n\nBankTransfer.displayName = 'BankTransfer';\nexport default BankTransfer;\n","import React from 'react';\nimport i18n from 'libs/i18n';\nimport PropTypes from 'prop-types';\n\nconst BPay = ({ data, i18nPrefix }) => {\n const i18nBPayPrefix = `${i18nPrefix}-payment-options-bpay`;\n return (\n
\n

{i18n(`${i18nBPayPrefix}-title`)}

\n
\n
\n

{i18n(`${i18nBPayPrefix}-instructions`)}

\n
\n
\n
\n
{i18n(`${i18nBPayPrefix}-biller-code`)}
\n
{data.billerCode}
\n
{i18n(`${i18nBPayPrefix}-reference`)}
\n
{data.reference}
\n
\n
\n
\n );\n};\n\nBPay.propTypes = {\n data: PropTypes.shape({\n billerCode: PropTypes.string.isRequired,\n reference: PropTypes.string.isRequired,\n }),\n i18nPrefix: PropTypes.string.isRequired,\n};\n\nBPay.displayName = 'BPay';\nexport default BPay;\n","import React from 'react';\nimport i18n from 'libs/i18n';\nimport PropTypes from 'prop-types';\n\nconst BillPayment = ({ data, i18nPrefix }) => {\n const i18nBillPaymentPrefix = `${i18nPrefix}-payment-options-bill-payment`;\n const i18nFinancialInstitutionKeys = [\n `${i18nPrefix}-payment-options-bill-payment-financial-institutions-rbc`,\n `${i18nPrefix}-payment-options-bill-payment-financial-institutions-bmo`,\n `${i18nPrefix}-payment-options-bill-payment-financial-institutions-credit-unions`,\n ];\n return (\n
\n

{i18n(`${i18nBillPaymentPrefix}-title`)}

\n
\n

{i18n(`${i18nBillPaymentPrefix}-info`)}

\n
    \n {i18nFinancialInstitutionKeys.map((key) => (\n
  • {i18n(key)}
  • \n ))}\n
\n
\n
\n
\n
{i18n(`${i18nBillPaymentPrefix}-biller`)}
\n
{data.biller}
\n
\n {i18n(`${i18nBillPaymentPrefix}-account`)}\n
\n
{data.account}
\n
\n
\n
\n );\n};\n\nBillPayment.propTypes = {\n data: PropTypes.shape({\n biller: PropTypes.string.isRequired,\n account: PropTypes.string.isRequired,\n }),\n i18nPrefix: PropTypes.string.isRequired,\n};\n\nBillPayment.displayName = 'BillPayment';\nexport default BillPayment;\n","import { connect, Dispatch } from 'react-redux';\nimport { toastCreator } from 'components/Toast';\nimport { i18n } from 'libs/i18n';\nimport { reduxForm, formValueSelector } from 'redux-form';\nimport error from 'validation/error';\nimport * as moment from 'moment';\nimport Component from './Component';\nimport { partition, actions, IPartition } from './reducers';\nimport { DEBIT_CARD_OPTIONS, fieldNames, formName } from './constants';\n\nconst selector = formValueSelector(formName);\n\ninterface IContainerProps {\n onSuccess: (values: any) => void;\n onCancel: () => void;\n paymentAmount: string;\n dealId: string;\n}\n\nconst message = (label: string, props?: any): string =>\n i18n(`view-transfer-payment-options-debit-card-modal-${label}`, props);\n\nexport const validateCardExpiryDate = (values: any): {} | undefined => {\n if (values.card_expirationMonth && values.card_expirationYear) {\n const today = moment();\n const currentMonth = today.month() + 1;\n const currentYear = today.year();\n\n /* eslint-disable-next-line */\n const expirationMonth = parseInt(values.card_expirationMonth, 10);\n /* eslint-disable-next-line */\n const expirationYear = parseInt(values.card_expirationYear, 10);\n\n if (expirationYear === currentYear && expirationMonth < currentMonth) {\n const errorMessage = message('expiration-mm-invalid');\n return {\n card_expirationMonth: error(errorMessage),\n };\n }\n }\n\n return undefined;\n};\n\nexport const updateCardExpiryValue = (values: any) => {\n const monthPrefix =\n values.card_expirationMonth && values.card_expirationMonth.length === 1 ? '0' : '';\n const yearPrefix =\n values.card_expirationYear && values.card_expirationYear.length === 2 ? '20' : '';\n\n values.card_expiry_date =\n `${monthPrefix}${values.card_expirationMonth}-` +\n `${yearPrefix}${values.card_expirationYear}`;\n};\n\nconst initialValues: any = {\n [fieldNames.saveCardForLater]: true,\n [fieldNames.debitCardOption]: DEBIT_CARD_OPTIONS.NEW,\n};\n\nconst mapStateToProps = (state: any, ownProps: IContainerProps) => {\n const cyberSourceData = state[partition].get(\"cyberSourceData\");\n const saveCardForLater = state[partition].get(\"saveCardForLater\");\n const cardOption = cyberSourceData.lastFourDigitsOfSavedCard\n ? DEBIT_CARD_OPTIONS.SAVED\n : DEBIT_CARD_OPTIONS.NEW;\n\n initialValues[fieldNames.saveCardForLater] = saveCardForLater;\n initialValues[fieldNames.debitCardOption] = cardOption;\n\n if (cyberSourceData.signedFields) {\n Object.keys(cyberSourceData.signedFields).map(\n (key: any) => (initialValues[key] = cyberSourceData.signedFields[key]),\n );\n }\n\n return {\n cyberSourceData,\n initialValues,\n selectedCardOption: selector(state, fieldNames.debitCardOption),\n };\n};\n\nconst mapDispatchToProps = (dispatch: Dispatch, ownProps: IContainerProps): any => ({\n fetchCyberSourceData: () => dispatch(actions.fetchCyberSourceData(ownProps.dealId)),\n cardSelectionChange: (option: string) => dispatch(actions.cardSelectionChange(option)),\n saveCardChanged: (checked: boolean | string) => dispatch(actions.saveCardChanged(checked)),\n});\n\nconst Form = reduxForm({\n form: formName,\n enableReinitialize: true,\n keepDirtyOnReinitialize: true,\n validate: validateCardExpiryDate,\n onChange: updateCardExpiryValue,\n onSubmitFail: (errors: any, dispatch: any, submitError: any, props: any) => {\n // when unexpected error is received\n if (Object.keys(props.syncErrors).length === 0) {\n props.onCancel();\n toastCreator.error(i18n('view-transfer-payment-options-debit-card-modal-error'));\n }\n },\n})(Component);\n\nconst Container = connect(mapStateToProps, mapDispatchToProps)(Form);\n\nexport default Container;\n","import * as React from 'react';\nimport i18n from 'libs/i18n';\nimport SimpleField from 'components/Form/SimpleField';\nimport RadioButtonGroup from 'components/Form/RadioButtonGroup';\nimport DebitCardModal from './components';\nimport { DEBIT_CARD_OPTIONS, fieldNames } from './constants';\n\ninterface IComponentProps {\n paymentAmount: string;\n dealId: string;\n fetchCyberSourceData: () => void;\n cyberSourceData?: any;\n cardSelectionChange: (option: string) => void;\n selectedCardOption?: string;\n handleSubmit: any;\n saveCardChanged: (checked: boolean) => void;\n}\n\ninterface IComponentState {\n modalOpen?: boolean;\n}\n\nconst i18nDebitCardPrefix = 'view-transfer-payment-options-debit-card';\n\nclass DebitCard extends React.Component {\n constructor(props: IComponentProps) {\n super(props);\n this.openModal = this.openModal.bind(this);\n this.closeModal = this.closeModal.bind(this);\n this.onCardSelectionChanged = this.onCardSelectionChanged.bind(this);\n\n this.state = {\n modalOpen: false,\n };\n }\n\n componentDidMount() {\n this.props.fetchCyberSourceData();\n }\n\n openModal() {\n this.setState({\n modalOpen: true,\n });\n }\n\n closeModal() {\n this.setState({\n modalOpen: false,\n });\n }\n\n onCardSelectionChanged(e: any) {\n this.props.cardSelectionChange(e.target.value);\n }\n\n renderDebitCardOptions() {\n const { cyberSourceData } = this.props;\n const suffix = cyberSourceData.lastFourDigitsOfSavedCard;\n\n const debitCardOptions = [\n {\n label: `${i18n(`${i18nDebitCardPrefix}-option-saved-card`)} (****${suffix})`,\n id: DEBIT_CARD_OPTIONS.SAVED,\n },\n {\n label: i18n(`${i18nDebitCardPrefix}-option-new-card`),\n id: DEBIT_CARD_OPTIONS.NEW,\n },\n ];\n\n return cyberSourceData.lastFourDigitsOfSavedCard ? (\n
\n

{i18n(`${i18nDebitCardPrefix}-option-title`)}

\n \n
\n ) : null;\n }\n\n render() {\n const {\n dealId,\n paymentAmount,\n cyberSourceData,\n selectedCardOption,\n handleSubmit,\n saveCardChanged,\n } = this.props;\n\n return (\n
\n

\n {i18n(`${i18nDebitCardPrefix}-title`)}\n

\n
\n
\n

{i18n(`${i18nDebitCardPrefix}-instructions-1`)}

\n
    \n
  • {i18n(`${i18nDebitCardPrefix}-instructions-2`)}
  • \n
  • {i18n(`${i18nDebitCardPrefix}-instructions-3`)}
  • \n
\n {this.renderDebitCardOptions()}\n \n \n {i18n(`${i18nDebitCardPrefix}-pay-button`)}\n \n {this.state.modalOpen && (\n \n )}\n
\n
\n );\n }\n}\n\nexport default DebitCard;\n","export { default } from './DebitCardModal';\n","import * as React from 'react';\nimport i18n from 'libs/i18n';\nimport { FormProps } from 'redux-form';\nimport { Footers } from 'components/Modals';\nimport NewCardForm from './NewCardForm';\nimport SavedCardForm from './SavedCardForm';\nimport CyberSourceFingerPrint from './CyberSourceFingerPrint';\nimport { DEBIT_CARD_OPTIONS, fieldNames } from '../constants';\n\ninterface IFormData {\n card_type: string;\n card_number: string;\n card_expirationMonth: number;\n card_expirationYear: number;\n card_cvn: string;\n card_expiry_date: string;\n}\n\ninterface IComponentProps extends FormProps {\n onSuccess: (values: any) => any;\n onCancel: () => void;\n paymentAmount: string;\n dealId: string;\n cyberSourceData: any;\n selectedCardOption?: string;\n saveCardChanged: (checked: boolean) => void;\n}\n\nconst message = (label: string, props?: any) =>\n i18n(`view-transfer-payment-options-debit-card-modal-${label}`, props);\n\nclass DebitCardModal extends React.Component {\n form: any;\n\n constructor(props: IComponentProps) {\n super(props);\n this.submitForm = this.submitForm.bind(this);\n }\n\n submitForm() {\n this.form.submit();\n }\n\n render() {\n const {\n onSuccess,\n onCancel,\n paymentAmount,\n cyberSourceData,\n selectedCardOption,\n saveCardChanged,\n } = this.props;\n\n const { sessionId } = cyberSourceData.deviceFingerprint;\n\n const footer = (\n \n );\n\n return (\n
\n {\n this.form = form;\n }}\n noValidate\n method=\"POST\"\n action={cyberSourceData.silentOrderPOSTUrl}\n onSubmit={onSuccess(this.submitForm)}\n >\n \n {Object.keys(cyberSourceData.signedFields).map((key, index) => (\n \n ))}\n {sessionId && (\n \n )}\n {selectedCardOption === DEBIT_CARD_OPTIONS.NEW && (\n \n )}\n {selectedCardOption === DEBIT_CARD_OPTIONS.SAVED && (\n \n )}\n \n
\n );\n }\n}\n\nexport default DebitCardModal;\n","import * as React from 'react';\nimport i18n from 'libs/i18n';\nimport { Modal } from 'components/Modals';\nimport SimpleField from 'components/Form/SimpleField';\nimport FormCheckbox from 'components/Form/Checkbox';\nimport * as validation from 'validation';\nimport { fieldNames } from '../constants';\n\ninterface IFormData {\n /*\n These field names maps directly to the cybersource parameters as per the docomentation and should not be changed.\n http://apps.cybersource.com/library/documentation/dev_guides/Secure_Acceptance_SOP/html/wwhelp/wwhimpl/js/html/wwhelp.htm#href=app_fields_SOP.10.2.html\n */\n card_type: string;\n card_number: string;\n card_expirationMonth: number;\n card_expirationYear: number;\n card_cvn: string;\n card_expiry_date: string;\n}\n\nconst digitsOnlyRegex = /^[0-9]*$/;\nconst acceptedCardTypes = ['visa', 'master-card'];\nconst message = (label: string, props?: any) =>\n i18n(`view-transfer-payment-options-debit-card-modal-${label}`, props);\n\ninterface IComponentProps {\n footer: JSX.Element;\n paymentAmount: string;\n saveCardChanged: (checked: boolean | string) => void;\n}\n\nclass Component extends React.Component {\n constructor(props: IComponentProps) {\n super(props);\n this.onSaveCardChanged = this.onSaveCardChanged.bind(this);\n }\n\n onSaveCardChanged(e: any) {\n this.props.saveCardChanged(!e.target.value);\n }\n\n render() {\n const { footer, paymentAmount } = this.props;\n\n return (\n \n
\n

{message('amount-label')}

\n {paymentAmount}\n
\n \n \n \n \n \n \n \n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n {message('save-card-label')}\n \n \n );\n }\n}\n\nexport default Component;\n","import * as React from 'react';\nimport i18n from 'libs/i18n';\nimport { Modal } from 'components/Modals';\n\nconst message = (label: string, props?: any) =>\n i18n(`view-transfer-payment-options-debit-card-modal-${label}`, props);\n\ntype Props = {\n footer: JSX.Element;\n paymentAmount: string;\n lastFourDigitsOfSavedCard: string;\n};\n\nconst Component: React.SFC = ({ footer, paymentAmount, lastFourDigitsOfSavedCard }) => (\n \n
\n

{message('amount-label')}

\n {paymentAmount}\n
\n
\n \n

{`****${lastFourDigitsOfSavedCard}`}

\n
\n
\n);\n\nexport default Component;\n","import * as React from 'react';\n\ninterface IDeviceFingerPrint {\n sessionId: string;\n orgId: string;\n fingerPrintDomain: string;\n}\n\ntype Props = {\n deviceFingerprint: IDeviceFingerPrint;\n};\n\nconst Component: React.SFC = ({ deviceFingerprint }) => {\n const { sessionId, orgId, fingerPrintDomain } = deviceFingerprint;\n\n const imgSrcUrl =\n `https://${fingerPrintDomain}/fp/clear.png?org_id=${orgId}` +\n `&session_id=${sessionId}&m=2`;\n\n const scriptUrl = `https://${fingerPrintDomain}/fp/check.js?org_id=${orgId}&session_id=${sessionId}`;\n\n const objectDataUrl = `https://${fingerPrintDomain}/fp/fp.swf?org_id=${orgId}&session_id=${sessionId}`;\n\n const paramUrl = `https://${fingerPrintDomain}/fp/fp.swf?org_id=${orgId}&session_id=${sessionId}`;\n\n const backgroundUrl =\n `url(https://${fingerPrintDomain}/fp/clear.png?` +\n `org_id=${orgId}&session_id=${sessionId}&m=1)`;\n\n const styles = {\n p: {\n background: backgroundUrl,\n },\n };\n return (\n
\n

\n \"\"\n \n \n
\n \n\n \n
\n );\n};\n\nexport default Component;\n","/* eslint-disable */\nimport { connect, Dispatch } from 'react-redux';\nimport { bindActionCreators } from 'redux';\nimport { actions, partition } from './reducers';\nimport Component from './Component';\n\nconst HEADER_PARTITION = 'headerV2';\n\nconst mapStateToProps = (state: any) => {\n const paymentOptions = state[partition];\n const headerV2Partition = state[HEADER_PARTITION];\n const user = headerV2Partition.get('User') || {};\n return {\n customerRefNumber: user.CustomerReferenceNumber,\n data: paymentOptions.get('accounts'),\n };\n};\n\nconst mapDispatchToProps = (dispatch: Dispatch): any => bindActionCreators(actions, dispatch);\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps,\n)(Component);\n","import _sortBy from 'lodash/sortBy';\n\nconst BPAY = 'bpay';\nconst BILL_PAYMENT_CAD = 'billpayment-cad';\nconst BANK = 'bank';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const handleResponse = (response) => {\n const paymentAccounts = {};\n const sortedResponse = _sortBy(response, [(r) => r.bankCurrencyName]);\n\n sortedResponse.forEach((option) => {\n if (!paymentAccounts[option.bankCurrency]) {\n paymentAccounts[option.bankCurrency] = {\n currencyCode: option.bankCurrency.toUpperCase(),\n currencyName: option.bankCurrencyName,\n bankTransfer: [],\n };\n }\n\n switch (option.paymentType.toLowerCase()) {\n case BPAY: {\n paymentAccounts[option.bankCurrency].bpay = {\n billerCode: option.billerCode,\n reference: option.userPaymentReference,\n };\n break;\n }\n case BILL_PAYMENT_CAD: {\n paymentAccounts[option.bankCurrency].billPaymentCAD = {\n biller: `${option.biller} / ${option.billerCode}`,\n account: option.userPaymentReference,\n };\n break;\n }\n case BANK: {\n const address = option.bankAddress;\n paymentAccounts[option.bankCurrency].bankTransfer.push({\n bankName: option.bankName,\n bankCurrency: option.bankCurrency,\n accountName: option.accountName,\n accountNumber: option.accountNumber,\n bankCode: option.bankCode,\n swift: option.swift,\n iban: option.iban,\n userPaymentReference: option.userPaymentReference,\n bankCountry: address.country,\n bankAddress: [\n address.addressLine1,\n address.addressLine2,\n [address.citySuburb, address.stateProvince, address.postCode]\n .filter((x) => !!x)\n .join(' '),\n address.country,\n ]\n .filter((x) => !!x)\n .join('\\n'),\n });\n break;\n }\n default:\n }\n });\n\n return paymentAccounts;\n};\n","var baseFlatten = require('./_baseFlatten'),\n baseOrderBy = require('./_baseOrderBy'),\n baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n","var arrayMap = require('./_arrayMap'),\n baseGet = require('./_baseGet'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n","var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n","var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n","var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n","import { gql } from '@apollo/client';\n\nexport const PAYMENT_OPTIONS_QUERY = gql`\n query {\n user {\n accounts {\n paymentOptions {\n paymentType\n bankCurrency\n bankCurrencyName\n bankName\n bankCountryIsoCode\n accountName\n accountNumber\n bankCode\n swift\n userPaymentReference\n bankAddress {\n addressLine1\n addressLine2\n citySuburb\n stateProvince\n postCode\n country\n }\n billerCode\n biller\n iban\n }\n }\n }\n }\n`;\n","import * as React from 'react';\nimport i18n from 'libs/i18n';\nimport { i18nPrefix } from '../constants';\nimport CurrencyRow from './CurrencyRow';\nimport { BPay, BillPayment, BankTransfer } from 'constants/PaymentOptionsPropTypes';\n\nexport type Accounts = {\n currencyName: string;\n currencyCode: string;\n bpay: BPay;\n billPaymentCAD: BillPayment;\n bankTransfer: BankTransfer[];\n};\n\ninterface IDictionary {\n [index: string]: Accounts;\n}\n\ntype Props = {\n data: IDictionary;\n fetchPaymentAccounts: typeof Function;\n customerRefNumber: string;\n};\n\nclass Component extends React.Component {\n static defaultProps: Partial = {\n data: {},\n };\n\n componentDidMount() {\n this.props.fetchPaymentAccounts();\n }\n\n render() {\n const { data, customerRefNumber } = this.props;\n const accounts = Object.keys(data);\n return (\n
\n

{i18n(`${i18nPrefix}-title`)}

\n

{i18n(`${i18nPrefix}-instruction`, { customerRefNumber })}

\n {accounts && accounts.length > 0 ? (\n accounts.map((currency) => (\n \n ))\n ) : (\n

\n {i18n(`${i18nPrefix}-payment-options-no-options`)}\n

\n )}\n
\n );\n }\n}\n\nexport default Component;\n","import * as React from 'react';\nimport i18n from 'libs/i18n';\nimport { BankTransfer, BPay, BillPayment } from 'components/PaymentOptions';\nimport ModalInfoMessage from 'components/ModalInfoMessage';\nimport { FeatureFlagsConsumer } from 'components/FeatureFlags';\nimport ldFlags from 'constants/ldFlags';\nimport { Accounts } from './Component';\nimport { i18nPrefix } from '../constants';\nimport { currencyCodes } from 'components/BankDetails/constants';\n\ntype IComponentProps = {\n accounts: Accounts;\n};\n\ntype IComponentState = {\n visible: boolean;\n};\n\nclass Component extends React.Component {\n constructor(props: IComponentProps) {\n super(props);\n this.state = { visible: false };\n }\n\n renderPaymentDetails() {\n const { accounts } = this.props;\n const collapsibleClass = this.state.visible ? 'content-slide-in' : '';\n\n const isBuyCurrencyEUR = accounts.currencyCode === currencyCodes.EUR;\n\n return (\n \n
\n
\n {isBuyCurrencyEUR && (\n \n \n \n )}\n
\n {accounts.bpay && }\n {accounts.billPaymentCAD && (\n \n )}\n {accounts.bankTransfer && accounts.bankTransfer.length > 0 && (\n \n )}\n
\n
\n
\n );\n }\n\n render() {\n const { accounts } = this.props;\n const btnLinkCss = this.state.visible ? 'expand' : 'collapse';\n return (\n
\n this.setState({ visible: !this.state.visible })}\n >\n \n \n \n
\n

{`${accounts.currencyName} (${accounts.currencyCode})`}

\n
\n
\n \n
\n \n {this.renderPaymentDetails()}\n
\n );\n }\n}\n\nexport default Component;\n","export const DEBIT_CARD_OPTIONS = {\n NEW: 'new',\n SAVED: 'saved',\n};\nexport const actionPrefix = 'DEBIT_CARD/';\nexport const formName = 'debitCardForm';\nexport const fieldNames = {\n debitCardOption: 'debitCardOption',\n deviceFingerprintId: 'device_fingerprint_id',\n saveCardForLater: 'saveCardForLater',\n};\n","export { default } from './Container';\nexport { default as reducers } from './reducers';\n","export const i18nPrefix = 'payment-accounts';\nexport const FEATURE_NAMESPACE = 'PAYMENT_ACCOUNTS';\n"],"sourceRoot":""}