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EAAM,KAEjD,MADAlrD,EAAE0kB,KAAO,mBACH1kB,CACP,CACA,OAAOxU,EAAI0/D,EACZ,CACAD,EAAen6C,KAAO,WACrB,OAAOD,OAAOC,KAAKtlB,EACpB,EACAy/D,EAAeM,QAAUJ,EACzBt7D,EAAOC,QAAUm7D,EACjBA,EAAe1jE,GAAK,K","sources":["webpack://dadecore/./app/javascript/shared/api/index.js","webpack://dadecore/./app/javascript/shared/components/CurrencyInput.js","webpack://dadecore/./app/javascript/shared/components/DatePicker.js","webpack://dadecore/./app/javascript/shared/components/FormErrors.js","webpack://dadecore/./app/javascript/shared/components/Icon.js","webpack://dadecore/./app/javascript/shared/components/Pagination.js","webpack://dadecore/./app/javascript/store/configureStore.js","webpack://dadecore/./app/javascript/store/configureStore.prod.js","webpack://dadecore/./engines/portal/src/api/accountRecurrenceAPI.js","webpack://dadecore/./engines/portal/src/api/billAPI.js","webpack://dadecore/./engines/portal/src/api/billDocumentAPI.js","webpack://dadecore/./engines/portal/src/api/billRecurrenceAPI.js","webpack://dadecore/./engines/portal/src/api/configAPI.js","webpack://dadecore/./engines/portal/src/api/emailConfirmationAPI.js","webpack://dadecore/./engines/portal/src/api/externalBillAPI.js","webpack://dadecore/./engines/portal/src/api/externalPaymentAPI.js","webpack://dadecore/./engines/portal/src/api/oneTimePaymentAPI.js","webpack://dadecore/./engines/portal/src/api/payMethodAPI.js","webpack://dadecore/./engines/portal/src/api/payMethodAssignmentAPI.js","webpack://dadecore/./engines/portal/src/api/paymentAPI.js","webpack://dadecore/./engines/portal/src/api/portalAccountAPI.js","webpack://dadecore/./engines/portal/src/api/portalAgreementAPI.js","webpack://dadecore/./engines/portal/src/api/portalDocumentAPI.js","webpack://dadecore/./engines/portal/src/api/receivableAccountAPI.js","webpack://dadecore/./engines/portal/src/api/recurrenceAccountAPI.js","webpack://dadecore/./engines/portal/src/api/resetPasswordAPI.js","webpack://dadecore/./engines/portal/src/api/userAPI.js","webpack://dadecore/./engines/portal/src/api/userSessionAPI.js","webpack://dadecore/./engines/portal/src/components/App.js","webpack://dadecore/./engines/portal/src/components/account/AccountDetail.js","webpack://dadecore/./engines/portal/src/components/account/AccountDetails.js","webpack://dadecore/./engines/portal/src/components/account/FindAccountForm.js","webpack://dadecore/./engines/portal/src/components/common/AccountRecurrenceForm.js","webpack://dadecore/./engines/portal/src/components/common/AccountsModal.js","webpack://dadecore/./engines/portal/src/components/common/AccountsTable.js","webpack://dadecore/./engines/portal/src/components/common/BillDocumentsModal.js","webpack://dadecore/./engines/portal/src/components/common/BillsTable.js","webpack://dadecore/./engines/portal/src/components/common/BrandLink.js","webpack://dadecore/./engines/portal/src/components/common/Button.js","webpack://dadecore/./engines/portal/src/components/common/Checkbox.js","webpack://dadecore/./engines/portal/src/components/common/ConfirmModal.js","webpack://dadecore/./engines/portal/src/components/common/DatePicker.js","webpack://dadecore/./engines/portal/src/components/common/DatePickerInput.js","webpack://dadecore/./engines/portal/src/components/common/DocumentUploader.js","webpack://dadecore/./engines/portal/src/components/common/EmailConfirmationModal.js","webpack://dadecore/./engines/portal/src/components/common/ExternalBillsTable.js","webpack://dadecore/./engines/portal/src/components/common/ExternalPaymentsTable.js","webpack://dadecore/./engines/portal/src/components/common/FallbackErrorBoundary.js","webpack://dadecore/./engines/portal/src/components/common/Filter.js","webpack://dadecore/./engines/portal/src/components/common/ImageModal.js","webpack://dadecore/./engines/portal/src/components/common/Layout.js","webpack://dadecore/./engines/portal/src/components/common/Link.js","webpack://dadecore/./engines/portal/src/components/common/Modal.js","webpack://dadecore/./engines/portal/src/components/common/Navbar.js","webpack://dadecore/./engines/portal/src/components/common/NavbarToggle.js","webpack://dadecore/./engines/portal/src/components/common/NoticePopover.js","webpack://dadecore/./engines/portal/src/components/common/PasswordStrength.js","webpack://dadecore/./engines/portal/src/components/common/PayMethodAssignmentModal.js","webpack://dadecore/./engines/portal/src/components/common/PayMethodForm.js","webpack://dadecore/./engines/portal/src/components/common/PayMethodModal.js","webpack://dadecore/./engines/portal/src/components/common/PayMethodsTable.js","webpack://dadecore/./engines/portal/src/components/common/PaymentAmountInput.js","webpack://dadecore/./engines/portal/src/components/common/PaymentConfirmationMessage.js","webpack://dadecore/./engines/portal/src/components/common/PaymentDetails.js","webpack://dadecore/./engines/portal/src/components/common/PaymentForm.js","webpack://dadecore/./engines/portal/src/components/common/RecurrenceForm.js","webpack://dadecore/./engines/portal/src/components/common/RecurrenceSettings.js","webpack://dadecore/./engines/portal/src/components/common/Spinner.js","webpack://dadecore/./engines/portal/src/components/common/SplitsTable.js","webpack://dadecore/./engines/portal/src/components/common/Tab.js","webpack://dadecore/./engines/portal/src/components/common/TabSet.js","webpack://dadecore/./engines/portal/src/components/common/Table.js","webpack://dadecore/./engines/portal/src/components/common/UserDetails.js","webpack://dadecore/./engines/portal/src/components/common/UserDropdown.js","webpack://dadecore/./engines/portal/src/components/common/UserForm.js","webpack://dadecore/./engines/portal/src/components/common/UsersTable.js","webpack://dadecore/./engines/portal/src/components/common/WarningMessage.js","webpack://dadecore/./engines/portal/src/components/landing/LandingOption.js","webpack://dadecore/./engines/portal/src/components/landing/LandingPage.js","webpack://dadecore/./engines/portal/src/components/login/ForgotPasswordPage.js","webpack://dadecore/./engines/portal/src/components/login/LoginPage.js","webpack://dadecore/./engines/portal/src/components/login/PasswordResetPage.js","webpack://dadecore/./engines/portal/src/components/login/ResetMessage.js","webpack://dadecore/./engines/portal/src/components/payer/HelpPage.js","webpack://dadecore/./engines/portal/src/components/payer/MenuItem.js","webpack://dadecore/./engines/portal/src/components/payer/PayerLayout.js","webpack://dadecore/./engines/portal/src/components/payer/SwitchAccountModal.js","webpack://dadecore/./engines/portal/src/components/payer/bill_recurrence/BillRecurrenceForm.js","webpack://dadecore/./engines/portal/src/components/payer/bill_recurrence/BillRecurrenceOverview.js","webpack://dadecore/./engines/portal/src/components/payer/bill_recurrence/BillRecurrencePage.js","webpack://dadecore/./engines/portal/src/components/payer/bill_recurrence/BillRecurrencesTable.js","webpack://dadecore/./engines/portal/src/components/stripe/CardSection.js","webpack://dadecore/./engines/portal/src/components/stripe/StripeForm.js","webpack://dadecore/./engines/portal/src/state/actions.js","webpack://dadecore/./engines/portal/src/state/resources/payment/types.js","webpack://dadecore/./engines/portal/src/state/resources/split/types.js","webpack://dadecore/./engines/portal/src/state/screens/account/types.js","webpack://dadecore/./engines/portal/src/state/screens/bill_payment/types.js","webpack://dadecore/./engines/portal/src/state/screens/dashboard/types.js","webpack://dadecore/./engines/portal/src/state/screens/registration/types.js","webpack://dadecore/./engines/portal/src/state/types.js","webpack://dadecore/./engines/portal/src/utils/debounce.js","webpack://dadecore/./engines/portal/src/utils/enumerable.js","webpack://dadecore/./engines/portal/src/utils/formatUtils.js","webpack://dadecore/./engines/portal/src/utils/urlUtils.js","webpack://dadecore/./node_modules/moment/locale/ sync en%7Cfr"],"sourcesContent":["import path from 'path';\nimport { default as http } from 'axios';\n\nconst apiEndpoint = (url) => {\n return path.join(http.defaults.baseURL, url);\n};\n\nconst setAPIBaseUrl = (url) => {\n http.defaults.baseURL = url;\n};\n\nconst setDefaultHeader = (name, value) => {\n http.defaults.headers.common[name] = value;\n};\n\nconst csrfToken = $('meta[name=\"csrf-token\"]').attr('content');\n\nhttp.defaults.headers.common['X-CSRF-Token'] = csrfToken;\nhttp.defaults.headers.common['Accept'] = 'application/json';\nhttp.defaults.headers.common['Content-Type'] = 'application/json';\n\nexport {\n http,\n apiEndpoint,\n setAPIBaseUrl,\n setDefaultHeader\n};\n","import React from 'react';\nimport { default as ReactCurrencyInput } from 'react-currency-input';\n\nclass CurrencyInput extends React.Component {\n\n constructor(props) {\n super(props);\n this.handleChange = this.handleChange.bind(this);\n }\n\n handleChange(event, maskedValue, floatValue) {\n this.props.onChange(floatValue);\n }\n\n render() {\n return (\n \n );\n }\n}\n\nCurrencyInput.propTypes = ReactCurrencyInput.propTypes;\n\nexport default CurrencyInput;\n","import React from 'react';\nimport { default as PropTypes } from 'prop-types';\nimport { default as ReactDatePicker } from 'react-datepicker';\n\nexport const DatePicker = (props) => {\n const isWeekday = (date) => {\n const day = date.getDay();\n return day !== 0 && day !== 6;\n };\n\n const filterDate = props.excludeWeekends ? isWeekday : null;\n\n const convertToDate = (momentObjectOrString) => {\n if (!momentObjectOrString) {\n return;\n }\n if (momentObjectOrString instanceof Date) {\n return momentObjectOrString;\n }\n return typeof momentObjectOrString.toDate === 'function' ?\n momentObjectOrString.toDate() :\n new Date(momentObjectOrString);\n };\n\n return (\n {\n const convertedDate = convertToDate(date);\n const isoString = convertedDate.toISOString();\n props.onChange(isoString);\n }}\n popperModifiers={{\n offset: {\n enabled: true,\n offset: \"5px, 10px\"\n },\n preventOverflow: {\n enabled: true,\n escapeWithReference: false,\n boundariesElement: \"viewport\"\n }\n }}\n inline={props.inline}\n fixedHeight={props.fixedHeight}\n selectsStart={props.selectsStart}\n selectsEnd={props.selectsEnd}\n />\n );\n};\n\nDatePicker.propTypes = {\n locale: PropTypes.string,\n selected: PropTypes.object,\n value: PropTypes.object,\n onChange: PropTypes.func,\n disabled: PropTypes.bool,\n minDate: PropTypes.object,\n maxDate: PropTypes.object,\n maxRange: PropTypes.string,\n customInput: PropTypes.element,\n excludeDates: PropTypes.array,\n excludeWeekends: PropTypes.bool,\n inline: PropTypes.bool,\n fixedHeight: PropTypes.bool,\n selectsEnd: PropTypes.bool,\n selectsStart: PropTypes.bool\n};\n","import React, { Component } from 'react';\nimport { PropTypes } from 'prop-types';\n\nclass FormErrors extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n alertElement: null,\n showAlert: false,\n };\n }\n\n componentDidMount() {\n const state = this.context.store.getState();\n\n this.alertHeading\n = this.props.heading || state.i18n.portal.form_errors.error_message;\n\n if (this.props.errors) {\n this.showAlert();\n }\n }\n\n componentDidUpdate(prevProps) {\n if (!prevProps.errors && this.props.errors) {\n $('body, .modal').scrollTop(0);\n this.showAlert();\n }\n\n if (prevProps.errors && !this.props.errors) {\n this.handleDismiss();\n }\n }\n\n showAlert = () => {\n this.setState({\n showAlert: true,\n }, () => {\n window.setTimeout(() => {\n this.setState({ fade: 'show' });\n }, 300);\n });\n }\n\n handleDismiss = () => {\n this.setState({\n showAlert: false,\n }, () => {\n window.setTimeout(() => {\n this.setState({ fade: '' });\n }, 300);\n });\n }\n\n heading() {\n if (!this.props.hideHeader) {\n return (\n

{this.alertHeading}

\n );\n }\n }\n\n errorMessages() {\n if (typeof this.props.errors == 'string') {\n return this.props.errors;\n } else {\n return (\n
\n {this.heading()}\n
    \n {this.props.errors.map(this.renderError)}\n
\n
\n );\n }\n }\n\n renderError(error, i) {\n return
  • {error}
  • ;\n }\n\n render() {\n const { showAlert, fade } = this.state;\n\n if (!this.props.errors || !showAlert) return null;\n\n if (showAlert) {\n return (\n
    \n \n \n {this.errorMessages()}\n
    \n \n );\n }\n }\n}\n\nFormErrors.contextTypes = {\n store: PropTypes.object.isRequired\n};\n\nFormErrors.propTypes = {\n errors: PropTypes.array,\n hideHeader: PropTypes.bool,\n dismiss: PropTypes.func,\n heading: PropTypes.string,\n};\n\nexport default FormErrors;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\n\nclass Icon extends React.Component {\n\n STYLES = {\n solid: \"fas\",\n regular: \"far\"\n }\n\n SIZES = {\n large: \"fa-lg\"\n }\n\n TYPES = {\n bank: 'university'\n }\n\n render() {\n const type = this.TYPES[this.props.type] || this.props.type;\n const style = this.STYLES[this.props.style];\n const size = this.SIZES[this.props.size];\n const classes = [style];\n\n if (this.props.spin) classes.push('fa-spin');\n if (size) classes.push(size);\n if (this.props.fixedWidth) classes.push('fa-fw');\n\n return (\n \n );\n }\n}\n\nIcon.propTypes = {\n type: PropTypes.string.isRequired,\n style: PropTypes.string,\n spin: PropTypes.bool,\n size: PropTypes.string,\n fixedWidth: PropTypes.bool\n};\n\nIcon.defaultProps = {\n style: \"solid\",\n fixedWidth: true\n};\n\nexport default Icon;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport ReactPaginate from 'react-paginate';\nimport Icon from 'shared/components/Icon';\n\nclass Pagination extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.state = {\n totalItems: this.props.totalItems,\n currentPage: this.getCurrentPage(this.props.currentPage)\n };\n\n this.handlePageChange = this.handlePageChange.bind(this);\n }\n\n componentWillReceiveProps(nextProps) {\n this.setState({\n totalItems: nextProps.totalItems,\n currentPage: this.getCurrentPage(nextProps.currentPage)\n });\n }\n\n getCurrentPage(currentPage) {\n return currentPage ? parseInt(currentPage) - 1 : 0;\n }\n\n handlePageChange(data) {\n this.props.onPageChange({selected: data.selected + 1});\n }\n\n setCurrentPage(currentPage) {\n this.setState({currentPage});\n }\n\n setTotalItems(totalItems) {\n this.setState({totalItems});\n }\n\n itemCount(currentPage, pageCount, shownItemsCount) {\n const actualCurrentPage = Math.ceil(currentPage + 1);\n if (actualCurrentPage == pageCount) {\n return (\n
    \n {shownItemsCount} - {this.state.totalItems} of {this.state.totalItems}\n
    \n );\n } else {\n return (\n
    \n {shownItemsCount} - {Math.ceil(this.props.itemsPerPage * actualCurrentPage)} of {this.state.totalItems}\n
    \n );\n }\n }\n\n render() {\n const pageCount = Math.ceil(this.state.totalItems / this.props.itemsPerPage);\n const currentPage = this.state.currentPage;\n const shownItemsCount = Math.ceil((this.props.itemsPerPage - (this.props.itemsPerPage - 1)) + (currentPage * this.props.itemsPerPage));\n if (pageCount > 1) {\n return (\n
    \n }\n nextLinkClassName=\"page-link\"\n onPageChange={this.handlePageChange}\n pageClassName=\"page-item\"\n pageCount={pageCount}\n pageLinkClassName=\"page-link\"\n pageRangeDisplayed={5}\n previousClassName=\"page-item\"\n previousLabel={}\n previousLinkClassName=\"page-link\"\n />\n {this.itemCount(currentPage, pageCount, shownItemsCount)}\n
    \n );\n }\n else {\n return null;\n }\n }\n}\n\nPagination.propTypes = {\n totalItems: PropTypes.number.isRequired,\n itemsPerPage: PropTypes.number.isRequired,\n onPageChange: PropTypes.func.isRequired,\n currentPage: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.number\n ])\n};\n\nexport default Pagination;\n","if (process.env.NODE_ENV === 'production') {\n module.exports = require('./configureStore.prod');\n} else {\n module.exports = require('./configureStore.dev');\n}\n","import { createStore, applyMiddleware, compose } from 'redux';\nimport thunk from 'redux-thunk';\nimport promise from 'redux-promise-middleware';\n\nexport default function configureStore(rootReducer) {\n return createStore(\n rootReducer,\n {},\n applyMiddleware(thunk, promise())\n );\n}\n","import { http } from 'shared/api';\n\nclass AccountRecurrenceAPI {\n\n static createAccountRecurrence(recurrence) {\n return http.post('portal_account_recurrences', {\n portal_recurrence: {\n receivable_account_id: recurrence.receivable_account_id,\n pay_method_id: recurrence.pay_method_id,\n amount: recurrence.amount,\n day_of_month: recurrence.day_of_month,\n end_date: recurrence.end_date\n }\n });\n }\n\n static deleteAccountRecurrence(recurrence) {\n return http.delete(`portal_account_recurrences/${recurrence.id}`);\n }\n}\n\nexport default AccountRecurrenceAPI;\n","import { http, apiEndpoint } from 'shared/api';\n\nclass BillAPI {\n static fetchOverview() {\n return http.get('bills/overview');\n }\n\n static fetchBills(params = {}) {\n return http.get('bills', {\n params\n });\n }\n\n static fetchDueBills(params = {}) {\n return http.get('bills/due', {\n params\n });\n }\n\n static CsvExportUrl(params = {}) {\n const url = apiEndpoint('bills.csv');\n const paramsString = $.param(params);\n return `${url}?${paramsString}`;\n }\n\n static PdfExportUrl(params = {}) {\n const url = apiEndpoint('bills.pdf');\n const paramsString = $.param(params);\n return `${url}?${paramsString}`;\n }\n}\n\nexport default BillAPI;\n","import { http, apiEndpoint } from 'shared/api';\n\nclass BillDocumentAPI {\n\n static fetchBillDocuments(billID, params = {}) {\n return http.get(`bills/${billID}/bill_documents`, {\n params: {\n ...params\n }\n });\n }\n\n static downloadUrl(billDocument, external = false) {\n return apiEndpoint(`bills/${billDocument.billable_id}/bill_documents/${billDocument.id}.pdf?external=${external}`);\n }\n}\n\nexport default BillDocumentAPI;\n","import { http } from 'shared/api';\n\nclass BillRecurrenceAPI {\n\n static fetchBillRecurrences(params = {}) {\n return http.get(\"portal_bill_recurrences\", {\n params: {\n ...params,\n paged: true\n }\n });\n }\n\n static saveBillRecurrence(recurrence) {\n const save = recurrence.id ? this.updateBillRecurrence : this.createBillRecurrence;\n return save(recurrence);\n }\n\n static createBillRecurrence(recurrence) {\n return http.post(\"portal_bill_recurrences\", {\n portal_bill_recurrence: recurrence\n });\n }\n\n static updateBillRecurrence(recurrence) {\n return http.put(`portal_bill_recurrences/${recurrence.id}`, {\n portal_bill_recurrence: {\n pay_method_id: recurrence.pay_method_id,\n payment_breakdown_type: recurrence.payment_breakdown_type,\n end_date: recurrence.end_date\n }\n });\n }\n\n static deleteBillRecurrence(recurrence) {\n return http.delete(`portal_bill_recurrences/${recurrence.id}`);\n }\n}\n\nexport default BillRecurrenceAPI;\n","import { http } from 'shared/api';\n\nclass ConfigAPI {\n static fetchConfig() {\n return http.get('config');\n }\n}\n\nexport default ConfigAPI;\n","import { http } from 'shared/api';\n\nclass EmailConfirmationAPI {\n static create(emailAddress, paymentID) {\n return http.post('email_confirmations', {\n email_address: emailAddress,\n payment_id: paymentID\n });\n }\n}\n\nexport default EmailConfirmationAPI;\n","import { http, apiEndpoint } from 'shared/api';\n\nclass ExternalBillAPI {\n\n static fetchExternalBills(params = {}) {\n return http.get('external_bills', {\n params\n });\n }\n\n static billsExportUrl(params = {}, format = \"csv\") {\n const url = apiEndpoint(`external_bills.${format}`);\n const paramsString = $.param(params);\n return `${url}?${paramsString}`;\n }\n}\n\nexport default ExternalBillAPI;\n","import { http, apiEndpoint } from 'shared/api';\n\nclass ExternalPaymentAPI {\n\n static fetchExternalPayments(params = {}) {\n return http.get('external_payments', {\n params\n });\n }\n\n static fetchExternalPayment(id) {\n return http.get(`external_payments/${id}`);\n }\n\n static exportUrl(externalPayment, format) {\n return apiEndpoint(`external_payments/${externalPayment.id}.${format}`);\n }\n\n static paymentsExportUrl(params = {}, format = \"csv\") {\n const url = apiEndpoint(`external_payments.${format}`);\n const paramsString = $.param(params);\n return `${url}?${paramsString}`;\n }\n}\n\nexport default ExternalPaymentAPI;\n","import { http, apiEndpoint } from 'shared/api';\n\nclass OneTimePaymentAPI {\n\n static new(account) {\n return http.get('one_time_payments/new', {\n params: {\n token: account.encrypted_token\n }\n });\n }\n\n static createPayment(payment, payMethod, account) {\n return http.post('one_time_payments', {\n new_pay_method: payMethod,\n receivable_account_id: account.id,\n token: account.encrypted_token,\n amount_reason: payment.amount_reason,\n portal_payment: {\n amount: payment.amount,\n scheduled_date: payment.scheduled_date,\n otp_comment: payment.otp_comment\n }\n });\n }\n\n static exportUrl(payment, format = \"pdf\") {\n const url = apiEndpoint(`one_time_payments/${payment.id}.${format}`);\n const paramsString = $.param({token: payment.account.encrypted_token});\n return `${url}?${paramsString}`;\n }\n}\n\nexport default OneTimePaymentAPI;\n","import { http } from 'shared/api';\n\nclass PayMethodAPI {\n\n static fetchPayMethods(params = {}) {\n return http.get(\"pay_methods\", {\n params\n });\n }\n\n static createPayMethod(payMethod) {\n return http.post(`pay_methods`, {\n pay_method: payMethod\n });\n }\n\n static updatePayMethod(payMethod, params = {}) {\n return http.put(`pay_methods/${payMethod.id}`, {\n pay_method: params\n });\n }\n\n static savePayMethod(payMethod, params = {}) {\n const save = payMethod.id ? this.updatePayMethod : this.createPayMethod;\n return save(payMethod, params);\n }\n\n static deletePayMethod(payMethod) {\n return http.delete(`pay_methods/${payMethod.id}`);\n }\n\n static createStripeIntent(account) {\n const params = account ? { receivable_account_id: account.id } : {};\n return http.post('stripe_intents', params);\n }\n}\n\nexport default PayMethodAPI;\n","import { http } from 'shared/api';\n\nclass PayMethodAssignmentAPI {\n\n static fetchPayMethodAssignments(portalUser) {\n return http.get(`portal_users/${portalUser.id}/pay_method_assignments`);\n }\n\n static createPayMethodAssignment(portalUser, payMethod) {\n return http.post(`portal_users/${portalUser.id}/pay_method_assignments`, {\n pay_method_assignment: {\n pay_method_id: payMethod.id\n }\n });\n }\n\n static deletePayMethodAssignment(portalUser, payMethod) {\n const id = payMethod.portal_pay_method_assignment.id;\n return http.delete(`portal_users/${portalUser.id}/pay_method_assignments/${id}`);\n }\n}\n\nexport default PayMethodAssignmentAPI;\n","import { http, apiEndpoint } from 'shared/api';\n\nclass PaymentAPI {\n\n static fetch(id, params = {}) {\n return http.get(`portal_payments/${id}`, {\n params\n });\n }\n\n static fetchStaged(params = {}) {\n return http.get('portal_payments/new', {\n params\n });\n }\n\n static fetchPayments(params = {}) {\n return http.get('portal_payments', {\n params: {\n paged: true,\n ...params\n }\n });\n }\n\n static exportUrl(payment, format) {\n return apiEndpoint(`portal_payments/${payment.id}.${format}`);\n }\n\n static paymentsExportUrl(format = \"csv\") {\n return apiEndpoint(`portal_payments.${format}`);\n }\n\n static createPayment(payment, params = {}) {\n return http.post('portal_payments', {\n portal_payment: {\n amount: payment.amount,\n pay_method_id: payment.pay_method_id,\n scheduled_date: payment.scheduled_date\n },\n ...params,\n amount_reason: payment.amount_reason\n });\n }\n\n static updatePayment(payment, params = {}) {\n return http.put(`portal_payments/${payment.id}`, {\n portal_payment: {\n amount: payment.amount,\n pay_method_id: payment.pay_method_id,\n scheduled_date: payment.scheduled_date\n },\n ...params\n });\n }\n\n static savePayment(payment, params = {}) {\n const save = payment.id ? this.updatePayment : this.createPayment;\n return save(payment, params);\n }\n\n static deletePayment(payment) {\n return http.delete(`portal_payments/${payment.id}`);\n }\n}\n\nexport default PaymentAPI;\n","import { http } from 'shared/api';\n\nclass PortalAccountAPI {\n\n static fetchPortalAccounts(params = {}) {\n return http.get(\"portal_accounts\", {\n params\n });\n }\n}\n\nexport default PortalAccountAPI;\n","import { http } from 'shared/api';\n\nclass PortalAgreementAPI {\n\n static createPortalAgreement(portalUser) {\n return http.post(`portal_users/${portalUser.id}/portal_agreement`);\n }\n}\n\nexport default PortalAgreementAPI;\n","import { http } from 'shared/api';\n\nclass PortalDocumentAPI {\n\n static createPortalDocument(portalPayment, file, splitId = null) {\n return http.post(`portal_payments/${portalPayment.id}/portal_documents`, {\n file_content: file.content,\n file_name: file.name,\n file_size: file.size,\n file_type: file.type,\n file_blob: file.preview,\n split_id: splitId\n });\n }\n\n static deletePortalDocument(portalPayment, file) {\n return http.delete(`portal_payments/${portalPayment.id}/portal_documents/${file.id}`);\n }\n}\n\nexport default PortalDocumentAPI;\n","import { http } from 'shared/api';\n\nclass ReceivableAccountAPI {\n\n static fetchAccounts(portalUser, params = {}) {\n let url = \"receivable_accounts\";\n if (portalUser) url = `portal_users/${portalUser.id}/${url}`;\n return http.get(url, {\n params\n });\n }\n}\n\nexport default ReceivableAccountAPI;\n","import { http } from 'shared/api';\n\nclass RecurrenceAccountAPI {\n\n static fetchRecurrenceAccounts(recurrence, params = {}) {\n return http.get(`portal_bill_recurrences/${recurrence.id}/recurrence_accounts`, {\n params: params\n });\n }\n\n static createRecurrenceAccount(recurrence, portalAccount) {\n return http.post(`portal_bill_recurrences/${recurrence.id}/recurrence_accounts`, {\n portal_recurrence_account: {\n portal_account_id: portalAccount.id\n }\n });\n }\n\n static deleteRecurrenceAccount(recurrence, account) {\n return http.delete(`portal_bill_recurrences/${recurrence.id}/recurrence_accounts/${account.id}`);\n }\n}\n\nexport default RecurrenceAccountAPI;\n","import { http } from 'shared/api';\n\nclass ResetPasswordAPI {\n static create(email) {\n return http.post('password_resets', {\n user: { email: email }\n });\n }\n\n static update(token, user) {\n return http.put(`password_resets/${token}`, {\n user\n });\n }\n}\n\nexport default ResetPasswordAPI;\n","import { http } from 'shared/api';\n\nclass UserAPI {\n\n static create(registration, user) {\n return http.post(`registrations/${registration.token}/users`, {\n user\n });\n }\n\n static updateUser(user, password = null, email = null) {\n return http.put(`users/${user.id}`, {\n user: {\n email,\n password\n }\n });\n }\n\n static fetchPortalUsers(payer) {\n return http.get(`portal_payers/${payer.id}/portal_users`);\n }\n\n static fetchPortalUserPayAssignment(user) {\n return http.get(`portal_users/${user}/pay_method_assignments`);\n }\n}\n\nexport default UserAPI;\n","import { http } from 'shared/api';\n\nclass UserSessionAPI {\n static create(email, password) {\n return http.post('user_sessions', {\n user_session: { email, password }\n });\n }\n\n static destroy() {\n return http.delete('user_sessions/signout');\n }\n\n static checkTimeout() {\n return http.get('user_sessions/timeout');\n }\n\n\n static createUser(account, token, user) {\n return http.post('users', {\n account, token: token, user: user\n });\n }\n}\n\nexport default UserSessionAPI;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { bindActionCreators } from 'redux';\nimport { connect } from 'react-redux';\nimport * as actionCreators from '../state/actions';\nimport Layout from './common/Layout';\nimport { http } from 'shared/api';\nimport { getQueryParam } from '../utils/urlUtils';\nimport { withToastManager } from 'react-toast-notifications';\n\nclass App extends React.Component {\n\n constructor(props) {\n super(props);\n this.startSessionTimer();\n this.interceptErrors();\n window.App = this;\n }\n\n componentDidMount() {\n const passwordResetToken = getQueryParam(\"password_reset_token\");\n if (passwordResetToken) {\n this.context.router.push('/reset_password');\n }\n }\n\n componentDidUpdate(prevProps) {\n const route = this.props.children.props.route;\n const isLanding = route.landing == true;\n const isPasswordReset = route.path == 'reset_password';\n if (isLanding && this.props.currentUser && !isPasswordReset) {\n this.handleLogin();\n }\n else if (!isLanding && !this.props.currentUser) {\n this.handleLogout();\n }\n this.handleAddPaymentMethod(prevProps);\n }\n\n handleAddPaymentMethod(prevProps) {\n if (!prevProps.savedPayMethod && this.props.savedPayMethod) {\n const { savedPayMethod, toastManager, i18n } = this.props;\n const { details } = savedPayMethod;\n toastManager.add(`${i18n.portal.pay_method_success} ${details}`, {\n appearance: 'success',\n autoDismiss: true,\n });\n }\n }\n\n\n handleLogin() {\n this.context.router.push('/payer');\n if (this.userSpecifiedLocale()) return;\n\n if (this.props.currentUser.portal_user.portal_divisions.length) {\n this.handlePortalDivisionChange();\n }\n\n if (this.props.currentUser.portal_user.portal_locale) {\n this.handlePortalLocaleChange();\n }\n }\n\n userSpecifiedLocale() {\n const portal_locale = window.location.pathname.split('/')[2];\n return portal_locale === this.props.config.locale;\n }\n\n handleLogout() {\n this.context.router.push('/login');\n if (this.props.config.portal_division) {\n this.props.setConfigPending();\n window.location.reload(true);\n }\n }\n\n handlePortalDivisionChange() {\n const configDivision = this.props.config.portal_division;\n const userDivision = this.props.currentUser.portal_division;\n if (!configDivision || configDivision.id != userDivision.id) {\n this.props.setConfigPending();\n window.location.reload(true);\n }\n }\n\n handlePortalLocaleChange() {\n const configLocale = this.props.config.portal_locale;\n const userLocale = this.props.currentUser.portal_user.portal_locale;\n\n if (configLocale.id !== userLocale.id) {\n this.props.setConfigPending();\n window.location.reload(true);\n }\n }\n\n startSessionTimer() {\n setInterval(this.checkSessionTimeout.bind(this), 60000);\n }\n\n checkSessionTimeout() {\n if (this.props.currentUser) {\n const timeoutUrl = this.props.config.timeout_url;\n const redirect = timeoutUrl ? function() { window.location = timeoutUrl; } : null;\n this.props.checkSessionTimeout(redirect);\n }\n }\n\n interceptErrors() {\n http.interceptors.response.use(undefined, (error) => {\n const errorUrl = this.props.config.error_url;\n if (errorUrl && error.response.status != 422) {\n window.location = errorUrl;\n }\n else {\n return Promise.reject(error);\n }\n });\n }\n\n render() {\n return (\n \n {this.props.children}\n \n );\n }\n}\n\nApp.contextTypes = {\n router: PropTypes.object\n};\n\nApp.propTypes = {\n children: PropTypes.object.isRequired,\n checkSessionTimeout: PropTypes.func,\n currentUser: PropTypes.object,\n setConfigPending: PropTypes.func,\n config: PropTypes.object,\n toastManager: PropTypes.object.isRequired,\n savedPayMethod: PropTypes.object,\n i18n: PropTypes.object.isRequired,\n};\n\nfunction mapStateToProps(state) {\n return state;\n}\n\nfunction mapDispachToProps(dispatch) {\n return bindActionCreators(actionCreators, dispatch);\n}\n\nexport default connect(mapStateToProps, mapDispachToProps)(withToastManager(App));\n","import React, { Component } from 'react';\nimport { PropTypes } from 'prop-types';\n\nclass AccountDetail extends Component {\n render() {\n if (this.props.show) {\n return (\n \n {this.props.label}\n {this.props.value}\n \n );\n }\n else {\n return null;\n }\n }\n}\n\nAccountDetail.propTypes = {\n show: PropTypes.bool,\n label: PropTypes.string,\n value: PropTypes.string\n};\n\nexport default AccountDetail;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport AccountDetail from './AccountDetail';\nimport accounting from 'accounting';\nimport Link from '../common/Link';\nimport { Popover, PopoverTitle, PopoverContent } from 'reactstrap';\nimport Button from '../common/Button';\nimport NoticePopover from '../common/NoticePopover';\nimport ReactMarkdown from 'react-markdown';\nimport moment from 'moment';\n\nclass AccountDetails extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n popoverOpen: false\n };\n this.togglePopover = this.togglePopover.bind(this);\n }\n\n togglePopover() {\n this.setState({\n popoverOpen: !this.state.popoverOpen\n });\n }\n\n accountNoticeButton() {\n if (this.props.showNotice && this.props.content.payment_account_notice) {\n return (\n \n \n \n \n \n );\n }\n }\n\n accountNoticeText() {\n if (this.props.showNotice && this.props.content.payment_account_notice) {\n return (\n \n );\n }\n }\n\n detailsTable() {\n return (\n \n \n {this.accountLabel()}\n \n \n \n\n \n\n \n\n \n \n
    \n );\n }\n\n accountLabel() {\n if (this.props.account && this.props.showLabel) {\n return (\n \n \n {this.props.account.account_label}\n \n \n );\n }\n }\n\n render() {\n return (\n
    \n {this.accountNoticeButton()}\n {this.accountNoticeText()}\n {this.detailsTable()}\n
    \n );\n }\n}\n\nAccountDetails.propTypes = {\n account: PropTypes.object.isRequired,\n showLabel: PropTypes.bool,\n showNotice: PropTypes.bool,\n content: PropTypes.object,\n config: PropTypes.object.isRequired\n};\n\nexport default AccountDetails;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport NoticePopover from '../common/NoticePopover';\nimport ReactMarkdown from 'react-markdown';\nimport Link from '../common/Link';\nimport ImageModal from '../common/ImageModal';\n\nclass FindAccountForm extends React.Component {\n\n constructor(props) {\n super(props);\n\n const account = {\n name: '',\n first_name: '',\n last_name: '',\n account_number: '',\n email: '',\n phone: '',\n ssn_last_four: '',\n bill_external_key: ''\n };\n\n this.state = {\n account,\n isValid: false,\n popoverOpen: false,\n isRegistrationImageOpen: false\n };\n\n this.handleSubmit = this.handleSubmit.bind(this);\n this.handleFieldChange = this.handleFieldChange.bind(this);\n this.togglePopover = this.togglePopover.bind(this);\n this.toggleRegistrationImage = this.toggleRegistrationImage.bind(this);\n }\n\n togglePopover() {\n this.setState({\n popoverOpen: !this.state.popoverOpen\n });\n }\n\n heading() {\n return (\n

    \n {this.props.i18n.portal.account.find_account}\n {this.registrationNoticeButton()}\n {this.registrationNoticeText()}\n

    \n );\n }\n\n nameField() {\n if (this.props.fields.includes('payers.name')) {\n return (\n
    \n
    \n \n \n
    \n
    \n );\n }\n }\n\n firstNameField() {\n if (this.props.fields.includes('payers.first_name')) {\n return (\n
    \n
    \n \n \n
    \n
    \n );\n }\n }\n\n lastNameField() {\n if (this.props.fields.includes('payers.last_name')) {\n return (\n
    \n
    \n \n \n
    \n
    \n );\n }\n }\n\n accountNumberField() {\n const inputClass = this.props.content.registration_image_url ? 'input-group input-group-lg' : '';\n if (this.props.fields.includes('receivable_accounts.external_key')) {\n return (\n
    \n
    \n \n
    \n \n {this.registrationImageLink()}\n
    \n
    \n
    \n );\n }\n }\n\n registrationImageLink() {\n if (this.props.content.registration_image_url) {\n return (\n
    \n \n \n \n
    \n );\n }\n }\n\n registrationImageModal() {\n return (\n \n );\n }\n\n toggleRegistrationImage() {\n this.setState({ isRegistrationImageOpen: !this.state.isRegistrationImageOpen });\n }\n\n emailField() {\n if (this.props.fields.includes('payers.email')) {\n return (\n
    \n
    \n \n \n
    \n
    \n );\n }\n }\n\n phoneField() {\n if (this.props.fields.includes('payers.phone')) {\n return (\n
    \n
    \n \n \n
    \n
    \n );\n }\n }\n\n ssnField() {\n if (this.props.fields.includes('payers.ssn_last_four')) {\n return (\n
    \n
    \n \n \n
    \n
    \n );\n }\n }\n\n billExternalKeyField() {\n if (this.props.fields.includes('bills.external_key')) {\n return (\n
    \n
    \n \n \n
    \n
    \n );\n }\n }\n\n actions() {\n return (\n
    \n \n
    \n );\n }\n\n handleFieldChange(e) {\n this.setAccount({\n [e.currentTarget.name]: e.currentTarget.value\n });\n }\n\n setAccount(account) {\n this.setState({\n account: {\n ...this.state.account,\n ...account\n }\n }, this.validateForm);\n }\n\n validateForm() {\n const account = this.state.account;\n let isValid = true;\n\n this.props.fields.forEach((field) => {\n let fieldName = field.split('.')[1];\n if (field == \"receivable_accounts.external_key\") fieldName = \"account_number\";\n if (field == \"bills.external_key\") fieldName = \"bill_external_key\";\n if (!this.state.account[fieldName]) isValid = false;\n });\n\n this.setState({isValid});\n }\n\n handleSubmit($event) {\n $event.preventDefault();\n this.props.onSubmit(this.state.account);\n }\n\n registrationNoticeButton() {\n if (this.props.showNotice && this.props.content.registration_notice) {\n return (\n \n \n \n \n \n );\n }\n }\n\n registrationNoticeText() {\n if (this.props.showNotice && this.props.content.registration_notice) {\n return (\n \n );\n }\n }\n\n render() {\n return (\n \n {this.heading()}\n
    \n {this.nameField()}\n {this.firstNameField()}\n {this.lastNameField()}\n {this.phoneField()}\n {this.emailField()}\n {this.ssnField()}\n {this.accountNumberField()}\n {this.billExternalKeyField()}\n {this.registrationImageModal()}\n {this.actions()}\n
    \n \n );\n }\n}\n\nFindAccountForm.propTypes = {\n onSubmit: PropTypes.func.isRequired,\n i18n: PropTypes.object.isRequired,\n fields: PropTypes.array.isRequired,\n config: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired,\n showNotice: PropTypes.bool\n};\n\nexport default FindAccountForm;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport RecurrenceForm from './RecurrenceForm';\n\nclass AccountRecurrenceForm extends React.Component {\n\n render() {\n return (\n \n );\n }\n}\n\nAccountRecurrenceForm.propTypes = RecurrenceForm.propTypes;\n\nexport default AccountRecurrenceForm;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Modal from './Modal';\nimport AccountsTable from './AccountsTable';\nimport Spinner from './Spinner';\n\nclass AccountsModal extends React.Component {\n\n constructor(props) {\n super(props);\n this.state = {\n accountsQuery: null,\n accountsSortOrder: null\n };\n this.filterAccounts = this.filterAccounts.bind(this);\n this.pageAccounts = this.pageAccounts.bind(this);\n this.sortAccounts = this.sortAccounts.bind(this);\n }\n\n componentWillReceiveProps(nextProps) {\n if (!this.props.isOpen && nextProps.isOpen) {\n this.clearFilters();\n this.props.clearAccounts();\n this.props.fetchAccounts(this.props.fetchParams);\n }\n }\n\n clearFilters() {\n this.setState({\n accountsQuery: null,\n accountsSortOrder: null\n });\n }\n\n filterAccounts(query) {\n this.setState({ accountsQuery: query });\n this.props.fetchAccounts({\n ...this.props.fetchParams,\n query,\n sort_order: this.state.accountsSortOrder\n });\n }\n\n pageAccounts(page) {\n this.props.fetchAccounts({\n ...this.props.fetchParams,\n page,\n query: this.state.accountsQuery,\n sort_order: this.state.accountsSortOrder\n });\n }\n\n sortAccounts(sortOrder) {\n this.setState({ accountsSortOrder: sortOrder });\n this.props.fetchAccounts({\n ...this.props.fetchParams,\n sort_order: sortOrder,\n query: this.state.accountsQuery\n });\n }\n\n accountsTable() {\n if (this.props.accounts.data) {\n return (\n \n );\n }\n else {\n return ;\n }\n }\n\n render() {\n return (\n \n );\n }\n}\n\nAccountsModal.propTypes = {\n accounts: PropTypes.object.isRequired,\n clearAccounts: PropTypes.func,\n fetchAccounts: PropTypes.func,\n fetchParams: PropTypes.object,\n onRowClick: PropTypes.func,\n isOpen: PropTypes.bool,\n toggle: PropTypes.func,\n i18n: PropTypes.object.isRequired,\n config: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n};\n\nexport default AccountsModal;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Table from './Table';\n\nclass AccountsTable extends React.Component {\n\n columnMap() {\n return {\n 'receivable_accounts.external_key': 'external_key',\n 'payers.name': 'payer.name',\n 'groups.name': 'group.name'\n };\n }\n\n columnMetadata() {\n return [\n {\n columnName: \"external_key\",\n displayName: this.props.content.receivable_accounts_external_key_label\n },\n {\n columnName: \"payer.name\",\n displayName: this.props.content.payers_name_label\n },\n {\n columnName: \"group.name\",\n displayName: this.props.content.group_name_label\n }\n ];\n }\n\n render() {\n return (\n \n );\n }\n}\n\nAccountsTable.propTypes = {\n data: PropTypes.object,\n results: PropTypes.array,\n i18n: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired,\n columns: PropTypes.array.isRequired,\n showFilter: PropTypes.bool,\n columnMetadata: PropTypes.array,\n filterPlaceholder: PropTypes.string,\n actions: PropTypes.element,\n showActions: PropTypes.bool,\n onRowClick: PropTypes.func,\n isRowSelected: PropTypes.func,\n useExternal: PropTypes.bool,\n externalSetFilter: PropTypes.func,\n externalSetPage: PropTypes.func,\n externalChangeSort: PropTypes.func\n};\n\nexport default AccountsTable;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Modal from './Modal';\nimport Link from './Link';\nimport Icon from 'shared/components/Icon';\nimport Pagination from 'shared/components/Pagination';\n\nclass BillDocumentsModal extends React.Component {\n constructor(props) {\n super(props);\n\n this.fetchDocuments = this.fetchDocuments.bind(this);\n }\n\n documentsList() {\n if (this.props.billDocuments && this.props.billDocuments.documents.length) {\n return (\n
    \n
      \n {this.props.billDocuments.documents.map((billDoc) => this.documentItem(billDoc))}\n
    \n {this.pagination()}\n
    \n );\n }\n else {\n return (\n \n {this.props.content.no_documents_found_message}\n \n );\n }\n }\n\n documentItem(billDocument) {\n const handleDocumentClick = this.handleDocumentClick.bind(this, billDocument);\n return (\n
    \n \n {' '}\n {this.props.i18n.portal.bill_document_type[billDocument.document_type]}\n \n
    \n );\n }\n\n handleDocumentClick(billDocument) {\n this.props.onDocumentClick(billDocument);\n }\n\n fetchDocuments(data) {\n const billID = this.props.billDocuments.documents[0].billable_id;\n this.props.fetchBillDocuments(\n billID,\n {\n page: data.selected\n }\n );\n }\n\n pagination() {\n return (\n \n );\n }\n\n render() {\n return (\n \n );\n }\n}\n\nBillDocumentsModal.propTypes = {\n isOpen: PropTypes.bool,\n toggle: PropTypes.func,\n billDocuments: PropTypes.object,\n onDocumentClick: PropTypes.func,\n fetchBillDocuments: PropTypes.func,\n content: PropTypes.object.isRequired,\n i18n: PropTypes.object.isRequired\n};\n\nexport default BillDocumentsModal;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Button from './Button';\nimport Filter from './Filter';\nimport Pagination from 'shared/components/Pagination';\nimport Link from './Link';\nimport format from '../../utils/formatUtils';\nimport Spinner from './Spinner';\nimport AccountsModal from './AccountsModal';\nimport Icon from 'shared/components/Icon';\n\nclass BillsTable extends React.Component {\n\n constructor(props) {\n super(props);\n\n const unsortableColumns = [\n 'receivable_accounts.external_key',\n 'payers.name',\n 'bills.amount'\n ];\n\n const columnAlignment = {\n right: [\n 'bills.discount_amount',\n 'bills.due_amount',\n 'bills.amount',\n 'bills.original_amount',\n 'bills.rollup_amount',\n 'bills.external_code'\n ]\n };\n\n const defaultSortField = this.props.config.default_bill_sort_field + \" ASC\";\n\n this.state = {\n unsortableColumns,\n columnAlignment,\n sortOrder: defaultSortField,\n isAccountsModalOpen: false\n };\n\n this.toggleAccountsModal = this.toggleAccountsModal.bind(this);\n this.handleAccountSelect = this.handleAccountSelect.bind(this);\n }\n\n hasBills() {\n const { data } = this.props;\n return data && data.bills.length > 0;\n }\n\n hasPayableBills() {\n const { data } = this.props;\n return data && data.total_payable_bills > 0;\n }\n\n hasPayableDueBills() {\n const { data } = this.props;\n return data && data.total_payable_due_bills > 0;\n }\n\n dropdownItemClasses(enabled) {\n const classes = ['dropdown-item'];\n if (!enabled) classes.push('disabled');\n return classes.join(' ');\n }\n\n selectButton() {\n if (!this.props.selectEnabled) return;\n\n const selectAllEnabled = this.hasPayableBills();\n const selectAllDueEnabled = this.hasPayableDueBills();\n\n return (\n
    \n \n {this.props.i18n.common.select}{' '}\n \n \n \n \n {this.props.i18n.portal.bills_table.select_all}\n \n \n {this.props.i18n.portal.bills_table.select_all_due}\n \n
    \n \n );\n }\n\n exportButton() {\n const exportEnabled = this.hasBills();\n return (\n
    \n \n {this.props.i18n.common.export}{' '}\n \n \n \n \n \n {` ${this.props.i18n.common.csv}`}\n \n \n \n {` ${this.props.i18n.common.pdf}`}\n \n
    \n \n );\n }\n\n actions() {\n const btnGroupClass = this.props.selectEnabled ? 'btn-group' : '';\n return (\n \n
    \n {this.selectButton()}\n {this.exportButton()}\n
    \n
    \n );\n }\n\n filter() {\n return (\n \n );\n }\n\n // Account filter\n toggleAccountsModal() {\n this.setState({ isAccountsModalOpen: !this.state.isAccountsModalOpen });\n }\n\n accountsModal() {\n return (\n \n );\n }\n\n handleAccountSelect(account) {\n this.toggleAccountsModal();\n this.props.onAddAccountFilter(account);\n }\n // ---\n\n table() {\n return (\n
    \n
    \n \n \n \n {this.tableHeaders()}\n \n \n \n {this.tableRows()}\n \n
    \n
    \n {this.noResults()}\n
    \n );\n }\n\n noResults() {\n if (this.props.data && this.props.data.total_bills == 0) {\n return (\n
    \n {this.props.i18n.portal.data_table.no_results}\n
    \n );\n }\n }\n\n handleRowClick(bill) {\n this.props.onRowClick(bill);\n }\n\n alignmentClass(column) {\n if (this.state.columnAlignment.right.includes(column)) {\n return 'right';\n }\n }\n\n headerClass(column) {\n return [\n this.alignmentClass(column),\n this.sortClass(column),\n ].filter(className => className).join(' ');\n }\n\n sortClass(column) {\n if (this.state.sortOrder == `${column} ASC`) {\n return 'sort-asc';\n }\n else if (this.state.sortOrder == `${column} DESC`) {\n return 'sort-desc';\n }\n }\n\n cellValue(bill, column) {\n switch (column) {\n case 'receivable_accounts.external_key':\n return this.cellValueContents('receivable_accounts.external_key', bill.account_number, bill);\n case 'payers.name':\n return this.cellValueContents('payers.name', bill.account_name, bill);\n case 'bills.due_date':\n return this.cellValueContents('bills.due_date', this.billDueDate(bill), bill);\n case 'bills.external_type':\n return this.cellValueContents('bills.external_type', bill.external_type, bill);\n case 'bills.external_key':\n return this.cellValueContents('bills.external_key', bill.external_key, bill);\n case 'bills.external_number':\n return this.cellValueContents('bills.external_number', bill.external_number, bill);\n case 'bills.alternate_key':\n return this.cellValueContents('bills.alternate_key', bill.alternate_key, bill);\n case 'bills.discount_amount':\n return this.cellValueContents('bills.discount_amount', this.discountAmount(bill), bill);\n case 'bills.due_amount':\n return this.cellValueContents('bills.due_amount', format.currency(bill.due_amount), bill);\n case 'bills.amount':\n return this.cellValueContents('bills.amount', format.currency(this.props.amount(bill)), bill);\n case 'bills.discount_date':\n return this.cellValueContents('bills.discount_date', bill.discount_date == null ? \"-\" : format.date(bill.discount_date, this.props.config.date_format_string), bill);\n case 'bills.origin_date':\n return this.cellValueContents('bills.origin_date', bill.origin_date == null ? \"-\" : format.date(bill.origin_date, this.props.config.date_format_string), bill);\n case 'bills.original_amount':\n return this.cellValueContents('bills.original_amount', format.currency(bill.original_amount), bill);\n case 'bills.rollup_amount':\n return this.rollupContents('bills.rollup_amount', format.currency(bill.rollup_amount), bill);\n case 'bills.external_code':\n return this.cellValueContents('bills.external_code', bill.external_code, bill);\n }\n }\n\n rollupContents(key, value, bill) {\n if (value == '$0.00') {\n return '---';\n }\n else {\n return value;\n }\n }\n\n cellValueContents(key, value, bill) {\n if (this.props.showBillDocsLink) {\n if (this.props.config.bill_documents_link_field == key) {\n const handleClick = this.showBillDocsLinkClick.bind(this, bill);\n return (\n \n {value}\n \n );\n } else {\n return value;\n }\n } else {\n return value;\n }\n }\n\n showBillDocsLinkClick(bill, e) {\n if (this.props.onBillDocsLinkClick) {\n e.stopPropagation();\n this.props.onBillDocsLinkClick(bill.id);\n }\n }\n\n billDueDate(bill) {\n const dueLabel = bill.due ? this.dueLabel() : null;\n return (\n \n {format.date(bill.due_date, this.props.config.date_format_string)}{' '}\n {dueLabel}\n \n );\n }\n\n discountAmount(bill) {\n const discountAmount = format.currency(bill.discount_amount);\n\n return this.props.isDiscountExpired(bill) ?\n {discountAmount} :\n discountAmount;\n }\n\n dueLabel() {\n return (\n \n {this.props.content.due_label}\n \n );\n }\n\n tableHeaders() {\n const columns = this.props.columns;\n return columns.map((column, i) => {\n const sortColumn = this.sortBy.bind(this, column);\n return (\n \n {this.headerLabel(column)}\n \n );\n });\n }\n\n tableRows() {\n if (this.props.data) {\n const columns = this.props.columns;\n const bills = this.props.data.bills;\n return bills.map((bill) => {\n const handleClick = this.handleRowClick.bind(this, bill);\n return (\n \n {columns.map((column) => this.tableData(column, bill))}\n \n );\n });\n }\n }\n\n tableData(column, bill) {\n return (\n \n {this.cellValue(bill, column)}\n \n );\n }\n\n rowClass(bill) {\n const selectedClass = this.props.isRowSelected(bill) ? 'selected' : '';\n const viewOnlyClass = bill.view_only ? 'view-only' : '';\n return `${selectedClass} ${viewOnlyClass}`;\n }\n\n sortBy(column) {\n if (!this.state.unsortableColumns.includes(column)) {\n const sortOrder = this.state.sortOrder;\n let newSortOrder;\n\n switch (sortOrder) {\n case `${column} ASC`: {\n newSortOrder = `${column} DESC`;\n break;\n }\n case `${column} DESC`: {\n newSortOrder = null;\n break;\n }\n default: {\n newSortOrder = `${column} ASC`;\n }\n }\n\n this.setState({ sortOrder: newSortOrder });\n this.props.onSort(newSortOrder);\n }\n }\n\n headerLabel(column) {\n const columnName = column.replace(/\\./, '_');\n return this.props.content[`${columnName}_label`];\n }\n\n pagination() {\n if (this.props.data && this.props.data.total_bills > 0) {\n return (\n \n );\n }\n }\n\n render() {\n if (!this.props.data) {\n return ;\n } else {\n return (\n
    \n

    \n {this.props.heading}\n

    \n {this.actions()}\n {this.filter()}\n {this.table()}\n {this.pagination()}\n {this.accountsModal()}\n
    \n );\n }\n }\n}\n\nBillsTable.propTypes = {\n amount: PropTypes.func.isRequired,\n data: PropTypes.object,\n columns: PropTypes.array.isRequired,\n heading: PropTypes.string.isRequired,\n isDiscountExpired: PropTypes.func.isRequired,\n onPage: PropTypes.func.isRequired,\n onSort: PropTypes.func.isRequired,\n onFilter: PropTypes.func.isRequired,\n onSelectAll: PropTypes.func.isRequired,\n onSelectAllDue: PropTypes.func.isRequired,\n onExportCsv: PropTypes.func.isRequired,\n onExportPdf: PropTypes.func.isRequired,\n onRowClick: PropTypes.func.isRequired,\n isRowSelected: PropTypes.func.isRequired,\n showBillDocsLink: PropTypes.bool,\n selectEnabled: PropTypes.bool,\n onBillDocsLinkClick: PropTypes.func,\n filterQuery: PropTypes.string,\n i18n: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired,\n config: PropTypes.object.isRequired,\n accounts: PropTypes.object,\n fetchAccounts: PropTypes.func,\n clearAccounts: PropTypes.func,\n filterLabels: PropTypes.array,\n onAddAccountFilter: PropTypes.func,\n onRemoveAccountFilter: PropTypes.func\n};\n\nexport default BillsTable;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Link } from 'react-router';\n\nclass BrandLink extends React.Component {\n logoImage() {\n return (\n \n );\n }\n\n linkContent() {\n return this.props.logo ? this.logoImage() : this.props.linkLabel;\n }\n\n linkClass() {\n const defaultClass = \"brand-link\";\n const logoLinkClass = this.props.logoLinkClass || defaultClass;\n const linkClass = this.props.linkClass || defaultClass;\n\n return this.props.logo ? logoLinkClass : linkClass;\n }\n\n render() {\n const { linkTo, onClick } = this.props;\n\n return (\n \n {this.linkContent()}\n \n );\n }\n}\n\nBrandLink.propTypes = {\n linkTo: PropTypes.string.isRequired,\n linkLabel: PropTypes.string.isRequired,\n linkClass: PropTypes.string,\n logo: PropTypes.string,\n content: PropTypes.object,\n logoClass: PropTypes.string,\n logoLinkClass: PropTypes.string,\n onClick: PropTypes.func\n};\n\nexport default BrandLink;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Button as ReactButton } from 'reactstrap';\nimport Icon from 'shared/components/Icon';\n\nclass Button extends React.Component {\n icon(icon) {\n if (icon) {\n return (\n <>\n \n {' '}\n \n );\n }\n }\n\n buttonClasses() {\n const classes = [this.props.className];\n if (this.props.active) classes.push('active');\n return classes.join(' ');\n }\n\n render() {\n const { children, icon, outline, ...props } = this.props;\n\n return (\n \n {this.icon(icon)}\n {children}\n \n );\n }\n}\n\nButton.defaultProps = {\n color: \"secondary\",\n size: \"sm\",\n};\n\nButton.propTypes = {\n active: PropTypes.bool,\n children: PropTypes.node,\n className: PropTypes.string,\n color: PropTypes.string,\n disabled: PropTypes.bool,\n icon: PropTypes.string,\n onClick: PropTypes.func,\n outline: PropTypes.bool,\n size: PropTypes.string,\n};\n\nexport default Button;\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nclass Checkbox extends Component {\n render() {\n return (\n
    \n \n \n
    \n {this.props.content}\n
    \n
    \n );\n }\n}\n\nCheckbox.defaultProps = {\n name: \"checkbox\",\n};\n\nCheckbox.propTypes = {\n content: PropTypes.string,\n label: PropTypes.string.isRequired,\n name: PropTypes.string,\n onChange: PropTypes.func,\n};\n\nexport default Checkbox;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';\nimport Button from './Button';\n\nclass ConfirmModal extends React.Component {\n\n render() {\n return (\n \n \n {this.props.heading}\n \n \n {this.props.message}\n \n \n \n \n \n \n );\n }\n}\n\nConfirmModal.propTypes = {\n isOpen: PropTypes.bool,\n toggle: PropTypes.func,\n heading: PropTypes.string,\n message: PropTypes.node,\n action: PropTypes.func,\n buttonText: PropTypes.string,\n i18n: PropTypes.object.isRequired\n};\n\nexport default ConfirmModal;\n","import { connect } from 'react-redux';\nimport {\n DatePicker as DatePickerComponent\n} from 'shared/components/DatePicker';\n\nconst mapStateToProps = (state) => {\n return {\n locale: state.config.locale,\n };\n};\n\nexport const DatePicker = connect(mapStateToProps, null)(DatePickerComponent);\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Link from './Link';\nimport Icon from 'shared/components/Icon';\nimport NoticePopover from './NoticePopover';\n\nclass DatePickerInput extends React.Component {\n constructor(props) {\n super(props);\n\n this.togglePopover = this.togglePopover.bind(this);\n\n this.state = {\n popoverOpen: false\n };\n }\n\n togglePopover() {\n this.setState({\n popoverOpen: !this.state.popoverOpen\n });\n }\n\n datePickernotice() {\n if (this.props.showNotice && this.props.noticeSource) {\n return (\n <>\n \n \n \n \n \n \n \n );\n }\n }\n\n calendar() {\n if (this.props.showCalendar) {\n return (\n
    \n \n \n \n
    \n );\n }\n }\n\n render() {\n const groupClass = this.props.showCalendar ? 'input-group' : '';\n\n return (\n
    \n \n {this.calendar()}\n {this.datePickernotice()}\n
    \n );\n }\n}\n\nDatePickerInput.propTypes = {\n showNotice: PropTypes.bool,\n showCalendar: PropTypes.bool,\n onKeyDown: PropTypes.func,\n for: PropTypes.string,\n disabled: PropTypes.bool,\n noticeSource: PropTypes.string,\n onClick: PropTypes.func,\n value: PropTypes.string\n};\n\nDatePickerInput.defaultProps = {\n showCalendar: true\n};\n\nexport default DatePickerInput;\n","import React, {Component} from 'react';\nimport { PropTypes } from 'prop-types';\nimport Icon from 'shared/components/Icon';\nimport Dropzone from 'react-dropzone';\n\nclass DocumentUploader extends Component {\n constructor(props) {\n super(props);\n this.state = {\n files: [],\n columns: [\"name\", \"type\"]\n };\n this.onDrop = this.onDrop.bind(this);\n this.handleRemove = this.handleRemove.bind(this);\n }\n\n onDrop(files) {\n let fileArray = [];\n files.forEach(file => {\n const reader = new FileReader();\n reader.onload = () => {\n const fileAsDataURL = reader.result;\n file.content = fileAsDataURL;\n };\n\n reader.readAsDataURL(file);\n\n fileArray = fileArray.concat(file);\n });\n\n let newFiles = [...this.state.files, ...fileArray];\n this.setState({\n files: newFiles\n }, this.addDocs(newFiles));\n }\n\n addDocs(files) {\n this.props.addDocs(files);\n }\n\n dropzone() {\n return (\n
    \n
    \n \n

    \n Drag and drop files here\n or click to select files from your computer.\n

    \n \n \n
    \n
    \n );\n }\n\n uploadedFilesTable() {\n if (this.state.files.length) {\n return (\n
    \n
    \n \n \n \n {this.tableHeaders()}\n \n \n \n \n {this.tableRows()}\n \n
    \n
    \n
    \n
    \n );\n }\n }\n\n tableHeaders() {\n const {columns} = this.state;\n return columns.map((column, i) => {\n return (\n \n {column.charAt(0).toUpperCase() + column.slice(1)}\n \n );\n });\n }\n\n tableRows() {\n const {files, columns} = this.state;\n if (files.length) {\n return files.map((file, i) => {\n return (\n \n {columns.map((column) => this.tableData(column, file))}\n \n {this.deleteFile(i, file)}\n \n \n );\n });\n }\n }\n\n tableData(column, file) {\n return (\n \n {this.cellValue(file, column)}\n \n );\n }\n\n cellValue(file, column) {\n switch (column) {\n case 'name':\n return file.name;\n case 'type':\n return file.type;\n }\n }\n\n deleteFile(index, file) {\n return (\n \n \n \n );\n }\n\n handleRemove(index) {\n let newFiles = this.state.files.slice();\n newFiles.splice(index, 1);\n this.setState({files: newFiles});\n }\n\n render() {\n return (\n
    \n {this.dropzone()}\n {this.uploadedFilesTable()}\n
    \n );\n }\n}\n\nexport default DocumentUploader;\n\nDocumentUploader.propTypes = {\n addDocs: PropTypes.func\n};\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Modal from './Modal';\n\nclass EmailConfirmationModal extends React.Component {\n\n constructor(props) {\n super(props);\n this.state = {\n emailConfirmationAddress: null\n };\n this.closeEmailConfirmationModal = this.closeEmailConfirmationModal.bind(this);\n this.sendEmailConfirmation = this.sendEmailConfirmation.bind(this);\n this.handleEmailConfirmationChange = this.handleEmailConfirmationChange.bind(this);\n }\n\n sendEmailConfirmationForm() {\n return (\n \n );\n }\n\n closeEmailConfirmationModal() {\n this.props.toggle();\n this.sendEmailConfirmation();\n }\n\n sendEmailConfirmation() {\n this.props.sendEmailConfirmation(this.state.emailConfirmationAddress, this.props.payment.id);\n }\n\n handleEmailConfirmationChange(event) {\n this.setState({emailConfirmationAddress: event.target.value});\n }\n\n render() {\n return (\n \n );\n }\n}\n\nEmailConfirmationModal.propTypes = {\n isOpen: PropTypes.bool,\n toggle: PropTypes.func,\n sendEmailConfirmation: PropTypes.func,\n payment: PropTypes.object,\n content: PropTypes.object.isRequired,\n i18n: PropTypes.object.isRequired\n};\n\nexport default EmailConfirmationModal;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Table from './Table';\nimport Spinner from './Spinner';\nimport Link from './Link';\n\nclass ExternalBillsTable extends React.Component {\n\n columnMap() {\n return {\n 'external_bills.origin_date': 'origin_date',\n 'receivable_accounts.external_key': 'receivable_account.external_key',\n 'payers.name': 'receivable_account.payer.name',\n 'external_bills.external_key': 'external_key',\n 'external_bills.amount': 'amount'\n };\n }\n\n columnMetadata() {\n return [\n {\n columnName: \"origin_date\",\n displayName: this.props.i18n.common.date,\n format: \"date\"\n },\n {\n columnName: \"receivable_account.external_key\",\n displayName: this.props.content.receivable_accounts_external_key_label\n },\n {\n columnName: \"receivable_account.payer.name\",\n displayName: this.props.content.payers_name_label\n },\n {\n columnName: \"external_key\",\n displayName: this.props.content.bills_external_key_label,\n customComponent: this.externalKeyComponent()\n },\n {\n columnName: \"amount\",\n displayName: this.props.i18n.common.amount,\n cssClassName: 'right',\n format: \"currency\"\n }\n ];\n }\n\n columns() {\n return Object.keys(this.columnMap());\n }\n\n externalKeyComponent() {\n const showAsLink = this.props.showBillExternalKeyAsLink;\n const onClick = this.props.onBillExternalKeyClick;\n // eslint-disable-next-line react/display-name, react/no-multi-comp\n return class extends React.Component {\n constructor(props) {\n super(props);\n this.handleClick = this.handleClick.bind(this);\n }\n\n handleClick() {\n // eslint-disable-next-line react/prop-types\n onClick(this.props.rowData);\n }\n\n render() {\n // eslint-disable-next-line react/prop-types\n if (showAsLink && this.props.rowData.bill_documents_accessible) {\n return {this.props.data};\n }\n else {\n return {this.props.data};\n }\n }\n };\n }\n\n results() {\n if (this.props.useExternal) {\n return this.props.data.external_bills || [];\n }\n else {\n return this.props.results || [];\n }\n }\n\n totalItems() {\n if (this.props.useExternal) {\n return this.props.data.total_items;\n }\n else {\n return this.props.results ? this.props.results.length : 0;\n }\n }\n\n render() {\n if (this.props.useExternal && !this.props.data) {\n return ;\n }\n else {\n return (\n \n );\n }\n }\n}\n\nExternalBillsTable.propTypes = {\n data: PropTypes.object,\n results: PropTypes.array,\n i18n: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired,\n showBillExternalKeyAsLink: PropTypes.bool,\n onBillExternalKeyClick: PropTypes.func,\n useExternal: PropTypes.bool,\n externalSetFilter: PropTypes.func,\n externalSetPage: PropTypes.func,\n externalChangeSort: PropTypes.func\n};\n\nexport default ExternalBillsTable;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Table from './Table';\nimport Spinner from './Spinner';\nimport Link from './Link';\n\nclass ExternalPaymentsTable extends React.Component {\n\n columnMap() {\n return {\n 'external_payments.payment_date': 'payment_date',\n 'receivable_accounts.external_key': 'receivable_account.external_key',\n 'payers.name': 'receivable_account.payer.name',\n 'external_payments.external_type': 'external_type',\n 'external_payments.external_reference': 'external_reference',\n 'external_payments.amount': 'amount'\n };\n }\n\n columnMetadata() {\n return [\n {\n columnName: \"payment_date\",\n displayName: this.props.i18n.common.date,\n format: \"date\"\n },\n {\n columnName: \"receivable_account.external_key\",\n displayName: this.props.content.receivable_accounts_external_key_label\n },\n {\n columnName: \"receivable_account.payer.name\",\n displayName: this.props.content.payers_name_label\n },\n {\n columnName: \"external_type\",\n displayName: this.props.content.external_payments_external_type_label\n },\n {\n columnName: \"external_reference\",\n displayName: this.props.content.external_payments_external_reference_label\n },\n {\n columnName: \"amount\",\n displayName: this.props.i18n.common.amount,\n cssClassName: 'right',\n format: \"currency\"\n }\n ];\n }\n\n render() {\n if (this.props.useExternal && !this.props.data) {\n return ;\n }\n else {\n return (\n \n );\n }\n }\n}\n\nExternalPaymentsTable.propTypes = {\n data: PropTypes.object,\n i18n: PropTypes.object.isRequired,\n config: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired,\n showBillExternalKeyAsLink: PropTypes.bool,\n onBillExternalKeyClick: PropTypes.func,\n useExternal: PropTypes.bool,\n externalSetFilter: PropTypes.func,\n externalSetPage: PropTypes.func,\n externalChangeSort: PropTypes.func\n};\n\nexport default ExternalPaymentsTable;\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nexport default class FallbackErrorBoundary extends Component {\n constructor(props) {\n super(props);\n this.state = { hasError: false };\n }\n\n componentDidCatch(error, info) {\n this.setState({ hasError: true });\n }\n\n render() {\n if (this.state.hasError || this.props.error) {\n return (\n

    \n Something went wrong.\n

    \n );\n }\n return this.props.children;\n }\n}\n\nconst errorStyle = {\n textAlign: 'center',\n paddingTop: '15%',\n margin: 0\n};\n\nFallbackErrorBoundary.propTypes = {\n children: PropTypes.object,\n error: PropTypes.object,\n info: PropTypes.object\n};\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { DatePicker } from './DatePicker';\nimport Button from './Button';\nimport Icon from 'shared/components/Icon';\nimport Link from './Link';\nimport Modal from './Modal';\nimport NoticePopover from './NoticePopover';\nimport format from '../../utils/formatUtils';\nimport moment from 'moment';\n\nclass Filter extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.togglePopover = this.togglePopover.bind(this);\n this.state = {\n isDateModalOpen: false,\n query: this.props.filterQuery || '',\n popoverOpen: false\n };\n\n this.toggleDateModal = this.toggleDateModal.bind(this);\n this.startDateChanged = this.startDateChanged.bind(this);\n this.endDateChanged = this.endDateChanged.bind(this);\n this.clearDateFilter = this.clearDateFilter.bind(this);\n this.submitDateFilter = this.submitDateFilter.bind(this);\n this.handleChange = this.handleChange.bind(this);\n this.filterLabel = this.filterLabel.bind(this);\n }\n\n componentWillMount() {\n if (this.props.showDateFilter && this.state.query != '') {\n this.parseDates();\n }\n }\n\n togglePopover() {\n this.setState({\n popoverOpen: !this.state.popoverOpen\n });\n }\n\n parseDates() {\n const dates = this.state.query.split('-');\n const startDate = this.parseDate(dates[0]);\n const endDate = this.parseDate(dates[1]);\n if (startDate.isValid()) this.setState({ startDate });\n if (endDate && endDate.isValid()) this.setState({ endDate });\n }\n\n parseDate(dateString) {\n if (dateString) {\n return moment(dateString.trim(), \"MM/DD/YYYY\", true);\n }\n }\n\n handleChange(e) {\n const query = e.target.value;\n this.setState({ query });\n this.props.onChange(query);\n }\n\n addFilter() {\n if (this.props.showAddFilter) {\n return (\n
    \n \n \n \n
    \n );\n }\n }\n\n dateFilter() {\n if (this.props.showDateFilter) {\n return (\n
    \n \n \n \n
    \n );\n }\n }\n\n // --- Date Range Modal\n dateModal() {\n if (this.props.showDateFilter) {\n return (\n \n );\n }\n }\n\n dateModalContent() {\n return (\n
    \n
    \n
    \n \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n );\n }\n\n dateModalActions() {\n return (\n <>\n \n \n \n \n );\n }\n\n startDateChanged(date) {\n this.setState({ startDate: date });\n }\n\n endDateChanged(date) {\n this.setState({ endDate: date });\n }\n\n toggleDateModal() {\n this.setState({ isDateModalOpen: !this.state.isDateModalOpen });\n }\n\n clearDateFilter() {\n this.setState({\n startDate: null,\n endDate: null,\n isDateModalOpen: false,\n query: ''\n });\n this.props.onChange('');\n }\n\n submitDateFilter() {\n const dates = [];\n\n if (this.state.startDate) {\n dates.push(format.date(this.state.startDate));\n }\n if (this.state.endDate) {\n dates.push(format.date(this.state.endDate));\n }\n\n const query = dates.join(' - ');\n this.setState({ isDateModalOpen: false, query });\n this.props.onChange(query);\n }\n\n searchNotice() {\n if (this.props.showNotice && this.props.noticeSource) {\n return (\n <>\n
    \n \n \n \n \n \n
    \n \n \n );\n }\n }\n\n filterLabels() {\n if (this.props.filterLabels && this.props.filterLabels.length) {\n return (\n
    \n {this.props.filterLabels.map(this.filterLabel)}\n
    \n );\n }\n }\n\n filterLabel(filter, i) {\n const removeFilter = this.props.onRemoveFilter.bind(this, filter);\n return (\n \n {filter.label}\n \n \n \n \n );\n }\n\n render() {\n return (\n
    \n

    {this.props.i18n.portal.ada_headers.search_bar}

    \n
    \n
    \n \n \n \n
    \n {this.searchNotice()}\n {this.addFilter()}\n {this.dateFilter()}\n \n
    \n {this.dateModal()}\n {this.filterLabels()}\n
    \n );\n }\n}\n\nFilter.propTypes = {\n placeholder: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n onAddFilter: PropTypes.func,\n showDateFilter: PropTypes.bool,\n showAddFilter: PropTypes.bool,\n noticeSource: PropTypes.string,\n showNotice: PropTypes.bool,\n filterQuery: PropTypes.string,\n i18n: PropTypes.object,\n filterLabels: PropTypes.array,\n onRemoveFilter: PropTypes.func\n};\n\nexport default Filter;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Modal from './Modal';\n\nclass ImageModal extends React.Component {\n\n render() {\n return (\n \n \n \n );\n }\n}\n\nImageModal.propTypes = {\n imgDescription: PropTypes.string,\n imgAlt: PropTypes.string,\n isOpen: PropTypes.bool,\n toggle: PropTypes.func,\n image: PropTypes.string\n};\n\nexport default ImageModal;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Navbar from './Navbar';\nimport Icon from 'shared/components/Icon';\n\nclass Layout extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n showSkipToMain: true\n };\n }\n\n componentWillMount() {\n if ((this.props.children.props.route.landing && !this.props.children.props.route.path) || this.props.children.props.route.path == \"payer\") {\n this.setState({showSkipToMain: false});\n } else {\n this.setState({showSkipToMain: true});\n }\n }\n\n componentWillReceiveProps(nextProps) {\n if ((nextProps.children.props.route.landing && !nextProps.children.props.route.path) || this.props.children.props.route.path == \"payer\") {\n this.setState({showSkipToMain: false});\n } else {\n this.setState({showSkipToMain: true});\n }\n }\n\n toggleLanding() {\n const landingClass = 'landing';\n const isLanding = this.props.children.props.route.landing == true;\n $('body').toggleClass(landingClass, isLanding);\n }\n\n navbar() {\n if (this.props.children.props.route.navbar) {\n return ;\n }\n }\n\n skipToMainButton() {\n if (this.state.showSkipToMain) {\n return (\n \n {this.props.i18n.common.skip_to_main}\n \n );\n }\n }\n\n layout() {\n return (\n
    \n {this.skipToMainButton()}\n

    \n {this.props.i18n.portal.ada_headers.payer_layout}\n

    \n {this.navbar()}\n
    \n
    \n
    \n {React.cloneElement(this.props.children, this.props)}\n
    \n
    \n
    \n
    \n );\n }\n\n spinner() {\n return (\n
    \n \n
    \n );\n }\n\n render() {\n this.toggleLanding();\n return this.props.config.isLoaded ? this.layout() : this.spinner();\n }\n}\n\nLayout.propTypes = {\n children: PropTypes.node,\n config: PropTypes.object.isRequired,\n i18n: PropTypes.object\n};\n\nexport default Layout;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Icon from 'shared/components/Icon';\n\nclass Link extends React.Component {\n\n constructor(props) {\n super(props);\n this.handleClick = this.handleClick.bind(this);\n }\n\n handleClick(e) {\n e.preventDefault();\n if (this.props.stopPropagation) e.stopPropagation();\n if (this.props.onClick) {\n this.props.noEvent ? this.props.onClick() : this.props.onClick(e);\n }\n }\n\n icon() {\n if (this.props.icon) {\n return ;\n }\n }\n\n render() {\n return (\n // eslint-disable-next-line jsx-a11y/anchor-is-valid\n \n {this.icon()}{' '}\n {this.props.children}\n \n );\n }\n}\n\nLink.propTypes = {\n className: PropTypes.string,\n onClick: PropTypes.func,\n tabIndex: PropTypes.string,\n children: PropTypes.node,\n icon: PropTypes.string,\n noEvent: PropTypes.bool,\n stopPropagation: PropTypes.bool,\n disabled: PropTypes.bool\n};\n\nexport default Link;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Modal as ReactModal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';\nimport Button from './Button';\n\nclass Modal extends React.Component {\n\n constructor(props) {\n super(props);\n this.handleConfirm = this.handleConfirm.bind(this);\n }\n\n header() {\n if (this.props.title) {\n return (\n \n {this.props.title}\n \n );\n }\n }\n\n actions() {\n if (this.props.actions) {\n return this.props.actions;\n }\n else {\n return (\n <>\n {this.closeButton()}\n {this.confirmButton()}\n \n );\n }\n }\n\n closeButton() {\n if (this.props.showClose) {\n return (\n \n );\n }\n }\n\n confirmButton() {\n if (this.props.showConfirm) {\n return (\n \n );\n }\n }\n\n handleConfirm() {\n this.props.onConfirm();\n }\n\n content() {\n return (\n \n {this.props.message || this.props.children}\n \n );\n }\n\n footer() {\n if (this.props.actions || this.props.showConfirm || this.props.showClose) {\n return (\n \n {this.actions()}\n \n );\n }\n }\n\n render() {\n return (\n { })}\n className={this.props.className}>\n {this.header()}\n {this.content()}\n {this.footer()}\n \n );\n }\n}\n\nModal.defaultProps = {\n confirmClassName: \"primary\",\n confirmEnabled: true\n};\n\nModal.propTypes = {\n isOpen: PropTypes.bool,\n toggle: PropTypes.func,\n message: PropTypes.node,\n children: PropTypes.node,\n title: PropTypes.string,\n className: PropTypes.string,\n actions: PropTypes.element,\n showClose: PropTypes.bool,\n closeLabel: PropTypes.string,\n showConfirm: PropTypes.bool,\n confirmLabel: PropTypes.string,\n onConfirm: PropTypes.func,\n confirmEnabled: PropTypes.bool,\n confirmClassName: PropTypes.string,\n};\n\nexport default Modal;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Link, IndexLink } from 'react-router';\nimport BrandLink from './BrandLink';\nimport NavbarToggle from './NavbarToggle';\n\nclass Navbar extends React.Component {\n navbarHeader() {\n const { config, content } = this.props;\n const logoUrl = content.landing_logo_image_url || content.logo_image_url;\n\n return (\n <>\n \n \n \n );\n }\n\n registrationLinkItem() {\n if (this.props.config.user_registration_enabled) {\n return (\n
  • \n \n {this.props.i18n.common.register}\n \n
  • \n );\n }\n }\n\n loginLinkItem() {\n return (\n
  • \n \n \n {` ${this.props.content.sign_in_label} `}\n \n
  • \n );\n }\n\n navbarLinks() {\n return (\n
    \n
      \n {this.loginLinkItem()}\n {this.registrationLinkItem()}\n
    \n
    \n );\n }\n\n render() {\n return (\n \n );\n }\n}\n\nNavbar.propTypes = {\n i18n: PropTypes.object.isRequired,\n config: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n};\n\nexport default Navbar;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\n\nclass NavbarToggle extends React.Component {\n render() {\n const { onClick, target } = this.props;\n\n return (\n \n \n \n );\n }\n}\n\nNavbarToggle.defaultProps = {\n onClick: () => {},\n};\n\nNavbarToggle.propTypes = {\n onClick: PropTypes.func,\n target: PropTypes.string,\n};\n\nexport default NavbarToggle;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Popover, PopoverContent } from 'reactstrap';\nimport ReactMarkdown from 'react-markdown';\n\nclass NoticePopover extends React.Component {\n\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n \n \n \n \n \n );\n }\n}\n\nNoticePopover.propTypes = {\n className: PropTypes.string,\n isOpen: PropTypes.bool,\n target: PropTypes.string,\n toggle: PropTypes.func,\n source: PropTypes.string,\n placement: PropTypes.string,\n containerTagName: PropTypes.string\n};\n\nexport default NoticePopover;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport zxcvbn from 'zxcvbn';\n\nimport Link from './Link';\nimport NoticePopover from './NoticePopover';\n\nconst scoreClasses = [\n 'text-danger',\n 'text-danger',\n 'text-warning',\n 'text-warning',\n 'text-success',\n];\n\nconst scoreBackgroundClasses = [\n 'bg-danger',\n 'bg-danger',\n 'bg-warning',\n 'bg-warning',\n 'bg-success',\n];\n\nclass PasswordStrength extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n message: '',\n password: '',\n popoverOpen: false,\n score: 0,\n };\n\n this.setPassword = this.setPassword.bind(this);\n this.togglePopover = this.togglePopover.bind(this);\n }\n\n setPassword(event) {\n const { changeCallback, labels } = this.props;\n\n const password = event.target.value;\n const score = zxcvbn(password).score;\n\n const containsDigits = /[0-9]/.test(password);\n const containsUpper = /[A-Z]/.test(password);\n const containsLower = /[a-z]/.test(password);\n\n let { message } = this.state;\n let isValid = false;\n\n if (password.length == 0) {\n message = '';\n } else if (password.length < 8) {\n message = labels.min_length;\n } else if (!containsDigits || !containsUpper || !containsLower) {\n message = labels.special_character;\n } else {\n message = '';\n isValid = true;\n }\n\n this.setState({ message, password, score }, function() {\n changeCallback({ isValid, password, message });\n });\n }\n\n scoreWords() {\n const { labels } = this.props;\n\n return [\n labels.weak,\n labels.okay,\n labels.good,\n labels.strong,\n labels.stronger,\n ];\n }\n\n scoreWord() {\n const { password, score } = this.state;\n\n if (password.length == 0) return;\n\n return (\n
    \n
    \n {this.scoreWords()[score]}\n
    \n
    \n );\n }\n\n notice() {\n const { content } = this.props;\n const { popoverOpen } = this.state;\n\n if (!content.password_notice) return;\n\n return (\n <>\n
    \n \n \n \n \n \n
    \n\n \n \n );\n }\n\n togglePopover() {\n this.setState({ popoverOpen: !this.state.popoverOpen });\n }\n\n render() {\n const { inputProps } = this.props;\n const { message, password, score } = this.state;\n\n return (\n <>\n
    \n \n\n {this.scoreWord()}\n {this.notice()}\n
    \n\n
    \n 0 ?\n { width: `${(score + 1) / 5 * 100}%` } :\n {}\n }\n role=\"progressbar\"\n aria-valuenow={password.length > 0 ? score + 1 : 0}\n aria-valuemin=\"0\"\n aria-valuemax=\"5\">
    \n \n\n {message.length > 0 ?\n {message} :\n null}\n \n );\n }\n}\n\nPasswordStrength.defaultProps = {\n value: '',\n};\n\nPasswordStrength.propTypes = {\n changeCallback: PropTypes.func.isRequired,\n content: PropTypes.object.isRequired,\n inputProps: PropTypes.object.isRequired,\n labels: PropTypes.object.isRequired,\n value: PropTypes.string.isRequired,\n};\n\nexport default PasswordStrength;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Button from './Button';\nimport Modal from './Modal';\nimport PayMethodsTable from './PayMethodsTable';\nimport FormErrors from 'shared/components/FormErrors';\n\nclass PayMethodAssignmentModal extends React.Component {\n\n content() {\n return (\n
    \n {this.formErrors()}\n {this.payMethodsTable()}\n
    \n );\n }\n\n formErrors() {\n return (\n \n );\n }\n\n payMethodsTable() {\n return (\n \n );\n }\n\n render() {\n return (\n \n );\n }\n}\n\nPayMethodAssignmentModal.propTypes = {\n payMethods: PropTypes.array,\n onPayMethodSelect: PropTypes.func,\n isOpen: PropTypes.bool,\n toggle: PropTypes.func,\n errors: PropTypes.array,\n clearErrors: PropTypes.func,\n i18n: PropTypes.object.isRequired,\n config: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n};\n\nexport default PayMethodAssignmentModal;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport moment from 'moment';\nimport ReactMarkdown from 'react-markdown';\nimport MaskedInput from 'react-maskedinput';\nimport { Elements } from '@stripe/react-stripe-js';\nimport { loadStripe } from '@stripe/stripe-js';\n\nimport Button from './Button';\nimport Icon from 'shared/components/Icon';\nimport ImageModal from './ImageModal';\nimport Link from './Link';\nimport Spinner from './Spinner';\nimport StripeForm from '../stripe/StripeForm';\n\nclass PayMethodForm extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n routingErrorClass: null,\n accountNumErrorClass: null,\n accountNumConfErrorClass: null,\n isCheckHelpModalOpen: false,\n defaultCountry: this.props.config.pay_method_config.default_country_selection\n };\n\n this.achTabSelected = this.achTabSelected.bind(this);\n this.creditCardTabSelected = this.creditCardTabSelected.bind(this);\n this.plastiqTabSelected = this.plastiqTabSelected.bind(this);\n this.checkTabSelected = this.checkTabSelected.bind(this);\n this.handleFieldChange = this.handleFieldChange.bind(this);\n this.handleCountryChange = this.handleCountryChange.bind(this);\n this.configureCreditCardClient = this.configureCreditCardClient.bind(this);\n this.handleCreditCardResponse = this.handleCreditCardResponse.bind(this);\n this.toggleCheckHelpModal = this.toggleCheckHelpModal.bind(this);\n this.handleBlur = this.handleBlur.bind(this);\n this.handleCheckImage = this.handleCheckImage.bind(this);\n }\n\n componentDidMount() {\n const newPayMethod = this.getNewPayMethod();\n this.setNewPayMethod(newPayMethod);\n }\n\n setNewPayMethod(newPayMethod, callback) {\n this.setState({ newPayMethod }, () => {\n this.props.onChange({\n newPayMethod,\n isNewPayMethodValid: this.isNewPayMethodValid(newPayMethod)\n });\n if (callback) callback();\n });\n }\n\n isNewPayMethodValid(newPayMethod) {\n if (this.isAch(newPayMethod)) {\n const typeValid = newPayMethod.ach_account_type.length > 0;\n const routingNumValid = newPayMethod.ach_routing_num.length > 0;\n const accountNumValid = newPayMethod.ach_account_num.length > 0;\n const confirmNumValid = newPayMethod.ach_account_num == newPayMethod.ach_account_num_confirmation;\n let valid = typeValid && routingNumValid && accountNumValid && confirmNumValid;\n\n if (this.props.config.pay_method_config.show_pay_method_payee_field) {\n const payeeNameValid = newPayMethod.payee_name.length > 0;\n valid = valid && payeeNameValid;\n }\n\n return valid;\n } else if (this.isCreditCard(newPayMethod)) {\n if (this.stripeEnabled()) return true;\n\n const nameValid = newPayMethod.name_on_card.length > 0;\n const addressValid = newPayMethod.address_line_1.length > 0;\n const countryValid = newPayMethod.country.length > 0;\n const stateValid = newPayMethod.state.length > 0;\n const cityValid = newPayMethod.city.length > 0;\n const zipValid = newPayMethod.zip_code.length > 0;\n const cardValid = this.isCardValid(this.state.newPayMethod);\n\n return nameValid && addressValid && countryValid && stateValid && cityValid && zipValid && cardValid;\n }\n else if (this.isCheck(newPayMethod)) {\n const checkFront = newPayMethod.checkFront;\n const checkRear = newPayMethod.checkRear;\n\n return checkFront && checkRear;\n }\n else if (this.isPlastiq(newPayMethod)) {\n return this.isEmailValid(newPayMethod.email);\n }\n else {\n return false;\n }\n }\n\n isCardValid(card) {\n if (this.props.config.pay_method_config.cc_iframe_enabled) {\n return true;\n }\n else {\n return card.credit_card_number.length > 0 &&\n card.cc_expiration.length > 0 &&\n card.ccv_number.length > 0;\n }\n }\n\n isEmailValid(email) {\n const emailRegex = /^([^@\\s]+)@((?:[-a-z0-9]+\\.)+[a-z]{2,})$/i;\n\n return emailRegex.test(email);\n }\n\n getNewPayMethod() {\n if (this.enabledTypesLength() == 1 && this.props.creditCardEnabled) {\n const newPayMethod = this.newCreditCardPayMethod();\n newPayMethod.country = this.state.defaultCountry;\n this.props.clearErrors();\n if (this.stripeEnabled()) {\n this.setNewPayMethod(newPayMethod);\n } else {\n this.setNewPayMethod(newPayMethod, this.configureCreditCardClient);\n }\n return newPayMethod;\n } else {\n return this.newAchPayMethod();\n }\n }\n\n enabledTypesLength() {\n const achEnabled = this.props.config.pay_method_config.ach_enabled;\n const checkEnabled = this.props.config.pay_method_config.check_enabled;\n const creditCardEnabled = this.props.creditCardEnabled;\n const plastiqEnabled = this.props.oneTimePayment && this.props.plastiqEnabled;\n const enabledTypes = [achEnabled, checkEnabled, creditCardEnabled, plastiqEnabled];\n return enabledTypes.filter((enabled) => enabled).length;\n }\n\n tabs() {\n const dropdownEnabled = this.enabledTypesLength() > 1;\n if (dropdownEnabled) {\n return (\n
    \n {this.payMethodToggle()}\n {this.payMethodTypeOptions()}\n
    \n );\n }\n }\n\n payMethodToggle() {\n return (\n \n {this.getNewPayMethodName()}{' '}\n \n \n );\n }\n\n payMethodTypeOptions() {\n return (\n
    \n {this.achOption()}\n {this.checkOption()}\n {this.creditCardOption()}\n {this.plastiqOption()}\n
    \n );\n }\n\n achOption() {\n if (this.props.config.pay_method_config.ach_enabled) {\n return (\n \n {this.props.content.ach_label}\n \n );\n }\n }\n\n checkOption() {\n if (this.props.config.pay_method_config.check_enabled) {\n return (\n \n {this.props.content.check_label}\n \n );\n }\n }\n\n creditCardOption() {\n if (this.props.creditCardEnabled) {\n return (\n \n {this.props.content.credit_card_label}\n \n );\n }\n }\n\n plastiqOption() {\n if (this.props.plastiqEnabled && this.props.oneTimePayment) {\n return (\n \n {this.props.content.plastiq_label}\n \n );\n }\n }\n\n getNewPayMethodName() {\n if (this.state.newPayMethod) {\n switch (this.state.newPayMethod.type) {\n case \"AchPayMethod\":\n return this.props.content.ach_label;\n case \"CreditCardPayMethod\":\n return this.props.content.credit_card_label;\n case \"CheckPayMethod\":\n return this.props.content.check_label;\n case \"PlastiqPayMethod\":\n return this.props.content.plastiq_label;\n }\n }\n }\n\n getNewPayMethodIcon() {\n if (this.state.newPayMethod) {\n switch (this.state.newPayMethod.type) {\n case \"AchPayMethod\":\n return \"bank\";\n case \"CreditCardPayMethod\":\n return \"credit-card\";\n case \"CheckPayMethod\":\n return \"\";\n case \"PlastiqPlayMethod\":\n return \"credit-card far\";\n }\n }\n }\n\n isAch(payMethod) {\n return payMethod && payMethod.type == 'AchPayMethod';\n }\n\n isPlastiq(payMethod) {\n return payMethod && payMethod.type == 'PlastiqPayMethod';\n }\n\n isCreditCard(payMethod) {\n return payMethod && payMethod.type == 'CreditCardPayMethod';\n }\n\n isCheck(payMethod) {\n return payMethod && payMethod.type == 'CheckPayMethod';\n }\n\n stripeEnabled() {\n return this.props.stripeEnabled;\n }\n\n achTabSelected = () => {\n this.props.clearErrors();\n this.setNewPayMethod(this.newAchPayMethod());\n }\n\n creditCardTabSelected() {\n const newPayMethod = this.newCreditCardPayMethod();\n newPayMethod.country = this.state.defaultCountry;\n this.props.clearErrors();\n\n if (this.stripeEnabled()) {\n this.setNewPayMethod(newPayMethod);\n this.props.createStripeIntent(this.props.account);\n } else {\n this.setNewPayMethod(newPayMethod, this.configureCreditCardClient);\n }\n }\n\n checkTabSelected() {\n const newPayMethod = this.newCheckPayMethod();\n this.props.clearErrors();\n this.setNewPayMethod(newPayMethod);\n }\n\n plastiqTabSelected() {\n const newPayMethod = this.newPlastiqPayMethod();\n this.props.clearErrors();\n this.setNewPayMethod(newPayMethod);\n }\n\n handleBlur(e) {\n if (e.target.name == \"ach_routing_num\" && e.target.value.length < 8) {\n this.setState({ routingErrorClass: \"has-error\" });\n }\n if (e.target.name == \"ach_account_num\" && e.target.value.length < 1) {\n this.setState({ accountNumErrorClass: \"has-error\" });\n }\n if (e.target.name == \"ach_account_num_confirmation\" && e.target.value.length < 1) {\n this.setState({ accountNumConfErrorClass: \"has-error\" });\n }\n }\n\n handleFieldChange(e) {\n const regex = /^[0-9\\-]+$/;\n if (e.target.name == \"ach_routing_num\" || e.target.name == \"ach_account_num\" || e.target.name == \"ach_account_num_confirmation\") {\n if (e.target.name == \"ach_routing_num\" && e.target.value.length > 7) {\n this.setState({ routingErrorClass: null });\n }\n if (e.target.name == \"ach_account_num\" && e.target.value.length > 0) {\n this.setState({ accountNumErrorClass: null });\n }\n if (e.target.name == \"ach_account_num_confirmation\") {\n if (e.target.value.length > 0 && e.target.value == this.state.newPayMethod.ach_account_num) {\n this.setState({ accountNumConfErrorClass: null });\n } else if (e.target.value.length > 0 && e.target.value != this.state.newPayMethod.ach_account_num) {\n this.setState({ accountNumConfErrorClass: \"has-error\" });\n }\n }\n if (regex.test(e.target.value)) {\n this.setNewPayMethod({\n ...this.state.newPayMethod,\n [e.currentTarget.name]: e.currentTarget.value\n });\n } else {\n let string = e.target.value.replace(/\\D/g, '');\n this.setNewPayMethod({\n ...this.state.newPayMethod,\n [e.currentTarget.name]: string\n });\n }\n } else {\n this.setNewPayMethod({\n ...this.state.newPayMethod,\n [e.currentTarget.name]: e.currentTarget.value\n });\n }\n }\n\n handleCountryChange(e) {\n this.setNewPayMethod({\n ...this.state.newPayMethod,\n country: e.currentTarget.value,\n state: ''\n });\n }\n\n registerNewPayMethod(onSuccess) {\n this.props.clearErrors();\n\n if (this.isCreditCard(this.state.newPayMethod)) {\n if (this.stripeEnabled()) {\n this.refs.StripeForm.handleSubmit(onSuccess);\n } else {\n setTimeout(() => {\n this.registerCreditCardSuccess = onSuccess;\n this.registerCreditCard();\n }, 1);\n }\n }\n else {\n onSuccess(this.state.newPayMethod);\n }\n }\n\n // ACH\n newAchPayMethod() {\n return {\n type: \"AchPayMethod\",\n ach_account_type: \"Checking\",\n ach_routing_num: '',\n ach_account_num: '',\n ach_account_num_confirmation: '',\n nickname: '',\n payee_name: ''\n };\n }\n\n checkHelpModal() {\n return (\n \n );\n }\n\n toggleCheckHelpModal() {\n this.setState({ isCheckHelpModalOpen: !this.state.isCheckHelpModalOpen });\n }\n\n disclosureLanguagueNotice() {\n if (this.props.content.disclosure_language_notice) {\n return (\n \n );\n }\n }\n\n plastiqNotice() {\n const isPlastiq = this.isPlastiq(this.state.newPayMethod);\n const plastiqNotice = this.props.content.plastiq_pay_method_notice;\n if (isPlastiq && plastiqNotice) {\n return (\n \n );\n }\n }\n\n stripeForm() {\n if (!this.isCreditCard(this.state.newPayMethod)) return;\n\n if (this.props.stripeIntent) {\n const stripeKey = this.props.config.pay_method_config.stripe_publishable_key;\n const stripePromise = loadStripe(stripeKey);\n\n return (\n \n \n \n );\n }\n else {\n return (\n \n );\n }\n }\n\n achFields() {\n if (this.isAch(this.state.newPayMethod)) {\n return (\n
    \n {this.nicknameField()}\n {this.payeeNameField()}\n {this.achAccountTypeField()}\n {this.achRoutingNumberField()}\n {this.achAccountNumberField()}\n {this.achAccountConfirmationField()}\n {this.disclosureLanguagueNotice()}\n
    \n );\n }\n }\n\n achAccountTypeField() {\n const checkingId = \"ach_account_type_checking\";\n const savingsId = \"ach_account_type_savings\";\n\n return (\n
    \n
    \n {this.props.i18n.portal.payer.payment.account_type}\n
    \n\n
    \n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n
    \n );\n }\n\n classWithErrors(fieldClassState) {\n const classes = ['form-group', 'row'];\n if (fieldClassState) classes.push(fieldClassState);\n return classes.join(' ');\n }\n\n achRoutingNumberField() {\n const classWithErrors = this.classWithErrors(this.state.routingErrorClass);\n return (\n
    \n \n
    \n
    \n \n {this.checkHelpLink()}\n
    \n
    \n
    \n );\n }\n\n achAccountNumberField() {\n const classWithErrors = this.classWithErrors(this.state.accountNumErrorClass);\n return (\n
    \n \n
    \n
    \n \n {this.checkHelpLink()}\n
    \n
    \n
    \n );\n }\n\n checkHelpLink() {\n return (\n
    \n \n \n \n
    \n );\n }\n\n achAccountConfirmationField() {\n const classWithErrors = this.classWithErrors(this.state.accountNumConfErrorClass);\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n\n nicknameField() {\n if (this.props.showNicknameField) {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n }\n\n payeeNameField() {\n if (this.props.config.pay_method_config.show_pay_method_payee_field) {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n }\n\n // --- CREDIT CARD\n creditCardConfig() {\n const config = this.props.config.pay_method_config;\n return {\n callback: this.handleCreditCardResponse,\n paypageId: config.vantiv_paypage_id,\n reportGroup: config.vantiv_report_group,\n merchant_id: config.cc_merchant_id,\n registration_endpoint: config.cc_registration_endpoint,\n showCvv: true,\n timeout: '15000',\n style: 'dadestyles6',\n height: '200px',\n div: 'payframe',\n numYears: 8,\n months: this.ccMonths(),\n tooltipText: 'A CVV is the 3 digit code on the back of your card',\n tabIndex: {\n cvv: 1,\n accountNumber: 2,\n expMonth: 3,\n expYear: 4\n },\n placeholderText: {\n cvv: 'CVV',\n accountNumber: 'Account Number'\n }\n };\n }\n\n ccMonths() {\n return {\n 1: 'January',\n 2: 'February',\n 3: 'March',\n 4: 'April',\n 5: 'May',\n 6: 'June',\n 7: 'July',\n 8: 'August',\n 9: 'September',\n 10: 'October',\n 11: 'November',\n 12: 'December'\n };\n }\n\n registerCreditCard() {\n this.creditCardClient.registerCard({\n ...this.state.newPayMethod,\n id: this.props.config.pay_method_config.cc_merchant_id,\n orderId: moment().valueOf()\n });\n }\n\n handleCreditCardResponse(response) {\n if (response.message == 'Success') {\n const cardData = this.creditCardClient.formatResponse(response);\n const newPayMethod = {\n ...this.state.newPayMethod,\n ...cardData\n };\n delete newPayMethod.credit_card_number;\n delete newPayMethod.ccv_number;\n delete newPayMethod.cc_expiration;\n this.registerCreditCardSuccess(newPayMethod);\n }\n else {\n const error = this.props.i18n.credit_card.error_messages[response.response];\n this.props.onError(error);\n }\n }\n\n configureCreditCardClient() {\n const config = this.creditCardConfig();\n this.creditCardClient = new CreditCardClient(config); // eslint-disable-line no-undef\n }\n\n newCreditCardPayMethod() {\n return {\n type: \"CreditCardPayMethod\",\n nickname: '',\n name_on_card: '',\n address_line_1: '',\n address_line_2: '',\n country: 'US',\n state: '',\n city: '',\n zip_code: '',\n credit_card_number: '',\n ccv_number: '',\n cc_expiration: ''\n };\n }\n\n creditCardFields() {\n if (this.stripeEnabled()) {\n return (\n this.stripeForm()\n );\n } else if (this.isCreditCard(this.state.newPayMethod)) {\n return (\n
    \n {this.ccGeneralFieldset()}\n {this.ccBillingFieldset()}\n {this.ccCardInfoFieldset()}\n
    \n );\n }\n }\n\n ccGeneralFieldset() {\n if (this.props.showNicknameField) {\n return (\n
    \n \n {this.props.i18n.common.general}\n \n {this.nicknameField()}\n
    \n );\n }\n }\n\n ccBillingFieldset() {\n return (\n
    \n \n {this.props.i18n.portal.billing.billing_information}\n \n {this.ccNameOnCardField()}\n {this.ccAddress1Field()}\n {this.ccAddress2Field()}\n {this.ccCountryField()}\n {this.ccStateField()}\n {this.ccCityField()}\n {this.ccZipCodeField()}\n
    \n );\n }\n\n ccCardInfoFieldset() {\n return (\n
    \n \n {this.props.i18n.portal.billing.credit_card}\n \n {this.ccCardInfoFields()}\n
    \n );\n }\n\n ccCardInfoFields() {\n if (this.props.config.pay_method_config.cc_iframe_enabled) {\n return
    ;\n }\n else {\n return (\n
    \n {this.ccCardNumberField()}\n {this.ccVerificationNumberField()}\n {this.ccExpirationField()}\n
    \n );\n }\n }\n\n ccCardNumberField() {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n\n ccVerificationNumberField() {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n\n ccExpirationField() {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n\n ccNameOnCardField() {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n\n ccAddress1Field() {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n\n ccAddress2Field() {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n\n ccCountryField() {\n return (\n
    \n \n
    \n \n {this.countryOptions()}\n \n
    \n
    \n );\n }\n\n countryOptions() {\n const countries = this.props.config.location.countries;\n return countries.map((country, i) =>\n \n );\n }\n\n getBillingLabelByOperationCountry(label) {\n //If it's using portal in English but the main operation country is not US\n if (this.props.config.locale == 'en' && this.state.defaultCountry !== 'US') {\n return this.props.i18n.portal.billing[`${label}_${this.state.defaultCountry.toLowerCase()}`];\n }\n return this.props.i18n.portal.billing[`${label}`];\n }\n\n ccStateField() {\n return (\n
    \n \n
    \n \n \n {this.stateOptions()}\n \n
    \n
    \n );\n }\n\n stateOptions() {\n const country = this.props.config.location.countries.find((country) => {\n return country.code == this.state.newPayMethod.country;\n });\n const states = country['states'];\n return states.map((state, i) =>\n \n );\n }\n\n ccCityField() {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n\n ccZipCodeField() {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n // ---\n\n // --- CHECK\n newCheckPayMethod() {\n return {\n type: \"CheckPayMethod\"\n };\n }\n\n checkFields() {\n if (this.isCheck(this.state.newPayMethod)) {\n return (\n
    \n
    \n {this.checkFrontButton()}\n
    \n
    \n {this.checkRearButton()}\n
    \n
    \n );\n }\n }\n\n checkFrontButton() {\n const iconType = this.state.newPayMethod.checkFront ? \"check\" : \"camera\";\n return (\n \n );\n }\n\n checkRearButton() {\n const iconType = this.state.newPayMethod.checkRear ? \"check\" : \"camera\";\n return (\n \n );\n }\n\n handleCheckImage(e) {\n const reader = new FileReader();\n const file = e.target.files[0];\n const imageType = e.target.name;\n\n reader.onload = (upload) => {\n this.setNewPayMethod({\n ...this.state.newPayMethod,\n [imageType]: upload.target.result\n });\n };\n\n if (file) {\n reader.readAsDataURL(file);\n }\n }\n\n // --- PLASTIQ\n newPlastiqPayMethod() {\n return {\n type: \"PlastiqPayMethod\",\n email: '',\n };\n }\n\n emailField() {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n\n plastiqFields() {\n if (this.isPlastiq(this.state.newPayMethod)) {\n return (\n
    \n {this.emailField()}\n
    \n );\n }\n }\n\n render() {\n return (\n
    \n {this.tabs()}\n {this.achFields()}\n {this.creditCardFields()}\n {this.checkFields()}\n {this.plastiqFields()}\n {this.checkHelpModal()}\n
    \n );\n }\n}\n\nPayMethodForm.defaultProps = {\n showNicknameField: true\n};\n\nPayMethodForm.propTypes = {\n newPayMethod: PropTypes.object,\n creditCardEnabled: PropTypes.bool,\n plastiqEnabled: PropTypes.bool,\n stripeEnabled: PropTypes.bool,\n showNicknameField: PropTypes.bool,\n onChange: PropTypes.func.isRequired,\n onError: PropTypes.func.isRequired,\n clearErrors: PropTypes.func.isRequired,\n labelClass: PropTypes.string.isRequired,\n fieldClass: PropTypes.string.isRequired,\n i18n: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired,\n config: PropTypes.object.isRequired,\n abilities: PropTypes.object,\n stripeIntent: PropTypes.string,\n createStripeIntent: PropTypes.func,\n account: PropTypes.object,\n oneTimePayment: PropTypes.bool,\n};\n\nexport default PayMethodForm;\n","import React, { Fragment } from 'react';\nimport { PropTypes } from 'prop-types';\nimport Modal from './Modal';\nimport PayMethodForm from './PayMethodForm';\nimport FormErrors from 'shared/components/FormErrors';\n\nclass PayMethodModal extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.state = {\n isNewPayMethodValid: false\n };\n\n this.handleSubmit = this.handleSubmit.bind(this);\n this.handlePayMethodChange = this.handlePayMethodChange.bind(this);\n\n this.modal = React.createRef();\n }\n\n content() {\n return (\n \n {this.formErrors()}\n {this.payMethodForm()}\n \n );\n }\n\n formErrors() {\n return (\n \n );\n }\n\n payMethodForm() {\n return (\n \n \n \n \n );\n }\n\n handlePayMethodChange(data) {\n this.setState({\n newPayMethod: data.newPayMethod,\n isNewPayMethodValid: data.isNewPayMethodValid\n });\n }\n\n handleSubmit(e) {\n if (e) e.preventDefault();\n this.refs.PayMethodForm.registerNewPayMethod(this.props.onSubmit);\n }\n\n render() {\n return (\n \n );\n }\n}\n\nPayMethodModal.propTypes = {\n isOpen: PropTypes.bool,\n toggle: PropTypes.func,\n errors: PropTypes.array,\n clearErrors: PropTypes.func,\n onError: PropTypes.func,\n onSubmit: PropTypes.func,\n i18n: PropTypes.object.isRequired,\n config: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired,\n abilities: PropTypes.object.isRequired,\n creditCardEnabled: PropTypes.bool,\n plastiqEnabled: PropTypes.bool,\n createStripeIntent: PropTypes.func,\n stripeIntent: PropTypes.string,\n};\n\nexport default PayMethodModal;\n\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Table from './Table';\nimport Icon from 'shared/components/Icon';\nimport Spinner from './Spinner';\n\nclass PayMethodsTable extends React.Component {\n\n columns() {\n const columns = [\"type_name\", \"details\", \"expiration_info\"];\n if (this.props.config.pay_method_config.show_pay_method_payee_field) columns.push(\"payee_name\");\n if (this.props.showDefaultColumn) columns.push(\"default\");\n return columns;\n }\n\n columnMetadata() {\n return [\n {\n \"columnName\": \"type_name\",\n \"displayName\": this.props.i18n.common.type,\n \"customComponent\": this.typeComponent()\n },\n {\n \"columnName\": \"details\",\n \"displayName\": this.props.i18n.common.details\n },\n {\n \"columnName\": \"payee_name\",\n \"displayName\": this.props.i18n.common.name_on_account\n },\n {\n \"columnName\": \"expiration_info\",\n \"displayName\": this.props.i18n.common.expires,\n \"customComponent\": this.expirationComponent()\n },\n {\n \"columnName\": \"default\",\n \"displayName\": \" \",\n \"customComponent\": this.defaultComponent()\n }\n ];\n }\n\n typeComponent() {\n const content = this.props.content;\n // eslint-disable-next-line react/display-name, react/no-multi-comp\n return class extends React.Component {\n getPayMethodIcon() {\n // eslint-disable-next-line react/prop-types\n switch (this.props.rowData.type) {\n case \"AchPayMethod\":\n return \"bank\";\n case \"CreditCardPayMethod\":\n return \"credit-card\";\n case \"CheckPayMethod\":\n return \"\";\n case \"PlastiqPayMethod\":\n return \"credit-card far\";\n }\n }\n\n getPayMethodName() {\n // eslint-disable-next-line react/prop-types\n switch (this.props.rowData.type) {\n case \"AchPayMethod\":\n return content.ach_label;\n case \"CreditCardPayMethod\":\n return content.credit_card_label;\n case \"CheckPayMethod\":\n return content.check_label;\n case \"PlastiqPayMethod\":\n return content.plastiq_label;\n }\n }\n\n render() {\n // eslint-disable-next-line react/prop-types\n const typeName = this.props.rowData.type_name;\n return (\n
    \n \n {' '}\n \n {this.getPayMethodName()}\n
    \n );\n }\n };\n }\n\n defaultComponent() {\n return ({ rowData }) => {\n if (rowData.default) {\n return (\n \n {' '}\n {this.props.i18n.common.default}\n \n );\n }\n else {\n return null;\n }\n };\n }\n\n expirationComponent() {\n return ({ rowData }) => {\n const { is_expired, expiration_info } = rowData;\n\n if (is_expired) {\n return (\n \n {expiration_info}\n \n );\n }\n else {\n return (\n {expiration_info}\n );\n }\n };\n }\n\n render() {\n if (this.props.results) {\n return (\n \n );\n }\n else {\n return ;\n }\n }\n}\n\nPayMethodsTable.propTypes = {\n results: PropTypes.array,\n columns: PropTypes.array,\n showDefaultColumn: PropTypes.bool,\n i18n: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired,\n config: PropTypes.object.isRequired\n};\n\nexport default PayMethodsTable;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport WarningMessage from './WarningMessage';\nimport CurrencyInput from 'shared/components/CurrencyInput';\nimport accounting from 'accounting';\n\nclass PaymentAmountInput extends React.Component {\n\n constructor(props) {\n super(props);\n this.state = {};\n this.handleAmountChange = this.handleAmountChange.bind(this);\n }\n\n handleAmountChange(amount) {\n const maxAmount = this.getMaxAmount();\n if (maxAmount > 0 && amount > maxAmount) {\n this.setState({\n maxAmount,\n showWarning: true\n });\n }\n else {\n this.setState({showWarning: false});\n this.props.onChange(amount);\n }\n }\n\n getMaxAmount() {\n const maxPaymentAmount = this.getMaxPaymentAmount();\n const maxDueAmount = this.getMaxDueAmount();\n const maxOverBalance = this.getMaxBalanceAmount();\n const amountLimits = [];\n if (maxPaymentAmount) amountLimits.push(maxPaymentAmount);\n if (maxDueAmount) amountLimits.push(maxDueAmount);\n if (maxOverBalance) amountLimits.push(maxOverBalance);\n return Math.min(...amountLimits);\n }\n\n getMaxPaymentAmount() {\n if (this.props.config.max_payment_amount) {\n return parseFloat(this.props.config.max_payment_amount);\n }\n }\n\n getMaxBalanceAmount() {\n if (this.props.account && this.props.account.balance) {\n const balance = parseFloat(this.props.account.balance);\n const balanceTolerance = parseInt(this.props.config.over_balance_tolerance);\n if (balanceTolerance >= 0) {\n const overBalanceAmount = balance * (balanceTolerance / 100);\n return balance + overBalanceAmount;\n }\n else {\n return balance;\n }\n }\n }\n\n getMaxDueAmount() {\n const duePercentage = parseInt(this.props.config.due_amount_percentage_restriction);\n if (duePercentage >= 0 && this.props.account && this.props.account.due_amount) {\n const dueAmount = parseFloat(this.props.account.due_amount);\n const duePercentageAmount = dueAmount * (duePercentage / 100);\n return dueAmount + duePercentageAmount;\n }\n }\n\n warning() {\n return (\n \n );\n }\n\n inputClasses() {\n const classes = ['input-group'];\n if (this.state.showWarning) classes.push('has-warning');\n return classes.join(' ');\n }\n\n render() {\n return (\n
    \n
    \n
    \n $\n
    \n \n
    \n {this.warning()}\n
    \n );\n }\n}\n\nPaymentAmountInput.defaultProps = {\n readOnly: false,\n};\n\nPaymentAmountInput.propTypes = {\n onChange: PropTypes.func,\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n account: PropTypes.object,\n config: PropTypes.object,\n readOnly: PropTypes.bool.isRequired,\n};\n\nexport default PaymentAmountInput;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\n\nclass PaymentConfirmationMessage extends React.Component {\n\n render() {\n let message, messageClass;\n\n if (this.props.payment.is_failed) {\n message = this.props.content.payment_failure_message;\n messageClass = 'alert alert-danger';\n }\n else if (this.props.payment.already_confirmed) {\n message = 'Payment has already been submitted';\n messageClass = 'alert alert-warning';\n }\n else {\n message = this.props.content.payment_confirmation_message;\n messageClass = 'alert alert-success';\n }\n\n return (\n

    \n {message}\n

    \n );\n }\n}\n\nPaymentConfirmationMessage.propTypes = {\n payment: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n};\n\nexport default PaymentConfirmationMessage;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport format from '../../utils/formatUtils';\nimport moment from 'moment';\n\nclass PaymentDetails extends React.Component {\n\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n componentWillMount() {\n const isNewAchPayMethod = this.isAch(this.props.newPayMethod);\n const isNewCreditCardPayMethod = this.isCreditCard(this.props.newPayMethod);\n const isNewCheckPayMethod = this.isCheck(this.props.newPayMethod);\n const isPlastiqPayMethod = this.isPlastiq(this.props.newPayMethod);\n this.setState({\n isNewAchPayMethod,\n isNewCreditCardPayMethod,\n isNewCheckPayMethod,\n isPlastiqPayMethod\n });\n }\n\n confirmationNumberRow() {\n if (this.props.payment.confirmation_code) {\n return (\n \n \n {this.props.i18n.portal.payment_confirmation.confirmation_code}\n \n {this.props.payment.confirmation_code}\n \n );\n }\n }\n\n accountRow() {\n if (!this.props.config.feature.bill_search_enabled && this.props.account) {\n return (\n \n \n {this.props.i18n.common.account}\n \n {this.props.account.account_label}\n \n );\n }\n }\n\n accountNumRow() {\n const account = this.props.account || this.props.payment.receivable_account;\n if (this.props.config.feature.bill_search_enabled && account) {\n return (\n \n \n {this.props.content.receivable_accounts_external_key_label}\n \n {account.external_key}\n \n );\n }\n }\n\n accountLabelRow() {\n const account = this.props.account || this.props.payment.receivable_account;\n if (this.props.config.feature.bill_search_enabled && account) {\n return (\n \n \n {this.props.content.payers_name_label}\n \n {account.payer.name}\n \n );\n }\n }\n\n hasFees() {\n return this.props.payment.fees_total > 0;\n }\n\n subtotalRow() {\n if (!this.hasFees()) return;\n return (\n \n \n {this.props.i18n.portal.payer.payment.payment_subtotal}\n \n \n {format.currency(this.props.payment.subtotal)}\n \n \n );\n }\n\n feesRow() {\n if (!this.hasFees()) return;\n return (\n \n \n {this.props.content.fees_label}{' '}\n ({this.props.payment.fee_percentage}%)\n \n \n {format.currency(this.props.payment.fees_total)}\n \n \n );\n }\n\n amountRow() {\n return (\n \n \n {this.props.i18n.portal.payer.payment.payment_total}\n \n \n {format.currency(this.props.payment.amount)}\n \n \n );\n }\n\n amountReasonRow() {\n if (\n this.props.config.feature.bill_search_enabled &&\n !this.props.oneTimePayment\n ) {\n return;\n }\n\n const portalSplit = this.props.payment.portal_splits_data &&\n this.props.payment.portal_splits_data.portal_splits[0];\n\n const amountReason = this.props.payment.amount_reason ||\n (portalSplit && portalSplit.amount_reason);\n\n if (this.props.config.different_amount_reason_required && amountReason) {\n return (\n \n \n {this.props.i18n.portal.payment.amount_reason_label}\n \n \n {amountReason}\n \n \n );\n }\n }\n\n paymentDateRow() {\n let date = this.props.payment.external ? this.props.payment.payment_date : this.props.payment.scheduled_date;\n if (this.props.payment.is_staged && this.props.config.same_day_payments_enforced) date = moment();\n return (\n \n \n {this.props.i18n.portal.payer.payment.payment_date}\n \n \n {format.date(date)}\n \n \n );\n }\n\n isAch(payMethod) {\n return payMethod ? (payMethod.type == \"AchPayMethod\") : false;\n }\n\n isCreditCard(payMethod) {\n return payMethod ? (payMethod.type == \"CreditCardPayMethod\") : false;\n }\n\n isCheck(payMethod) {\n return payMethod ? (payMethod.type == \"CheckPayMethod\") : false;\n }\n\n isPlastiq(payMethod) {\n return payMethod && payMethod.type == \"PlastiqPayMethod\";\n }\n\n achAccountTypeRow() {\n if (this.state.isNewAchPayMethod) {\n return (\n \n \n {this.props.i18n.portal.payer.payment.ach_account_type}\n \n {this.props.newPayMethod.ach_account_type}\n \n );\n }\n }\n\n achRoutingNumberRow() {\n if (this.state.isNewAchPayMethod) {\n return (\n \n \n {this.props.i18n.portal.payer.payment.ach_routing_num}\n \n \n {this.props.newPayMethod.ach_routing_num}\n \n \n );\n }\n }\n\n achAccountNumberRow() {\n if (this.state.isNewAchPayMethod) {\n return (\n \n \n {this.props.content.ach_account_num_label}\n \n {this.maskedAchAccountNumber()}\n \n );\n }\n }\n\n ccPayMethodRow() {\n if (this.state.isNewCreditCardPayMethod) {\n return (\n \n \n {this.props.content.pay_method_label}\n \n \n {this.props.i18n.common.credit_card}\n \n \n );\n }\n }\n\n payMethodRow() {\n const payMethod = this.getPayMethod() || this.props.payment.pay_method;\n if (payMethod) {\n return (\n \n \n {this.props.content.pay_method_label}\n \n {payMethod.details}\n \n );\n }\n }\n\n getPayMethod() {\n if (this.props.payMethods) {\n return this.props.payMethods.find((p) => {\n return p.id == this.props.payment.pay_method_id;\n });\n }\n }\n\n maskedAchAccountNumber() {\n if (this.props.newPayMethod.ach_account_num) {\n const accountNumber = this.props.newPayMethod.ach_account_num;\n const lastDigits = accountNumber.substring(accountNumber.length - 3);\n return `****${lastDigits}`;\n }\n }\n\n numItemsRow() {\n let numItems;\n\n const { payment } = this.props;\n\n if (payment.portal_splits_data && payment.portal_splits_data.portal_splits) {\n numItems = payment.portal_splits_data.total_portal_splits;\n } else if (payment.external_bills) {\n numItems = payment.external_bills.length;\n } else if (payment.splits) {\n numItems = payment.splits.length;\n } else {\n numItems = 0;\n }\n\n if (this.props.config.feature.bill_search_enabled && numItems > 0) {\n return (\n \n \n {this.props.i18n.common.num_items}\n \n \n {numItems}\n \n \n );\n }\n }\n\n statusRow() {\n if (this.props.payment.status) {\n return (\n \n \n {this.props.i18n.common.status}\n \n \n {this.getStatus()}\n \n \n );\n }\n }\n\n getStatus() {\n if (this.props.payment.is_processing) {\n return this.props.content.payment_status_processing;\n }\n else {\n return this.props.payment.status;\n }\n }\n\n failureReasonRow() {\n if (this.props.payment.is_failed) {\n return (\n \n \n {this.props.i18n.common.failure_reason}\n \n \n {this.props.payment.failure_reason}\n \n \n );\n }\n }\n\n commentRow() {\n if (this.props.payment.otp_comment) {\n return (\n \n \n {this.props.i18n.common.comment}\n \n \n {this.props.payment.otp_comment}\n \n \n );\n }\n }\n\n checkPayMethodRow() {\n if (this.state.isNewCheckPayMethod) {\n return (\n \n \n {this.props.content.pay_method_label}\n \n \n {this.props.i18n.check}\n \n \n );\n }\n }\n\n checkImagesRow() {\n if (this.state.isNewCheckPayMethod) {\n return (\n \n \n
    \n \n
    \n
    \n \n
    \n \n \n );\n }\n }\n\n docItemsRow() {\n if (this.props.payment.portal_documents && this.props.payment.portal_documents.length > 0) {\n return (\n \n \n {this.props.i18n.common.documents}\n \n \n
      \n {this.docListItem()}\n
    \n \n \n );\n }\n }\n\n docListItem() {\n return this.props.payment.portal_documents.map((doc, i) => {\n return (\n \n {doc.display_name.split(\"\\n\").map((text, i) => {\n return
    {text}
    ;\n })}\n \n );\n });\n }\n\n render() {\n return (\n \n \n {this.confirmationNumberRow()}\n {this.paymentDateRow()}\n {this.accountRow()}\n {this.accountNumRow()}\n {this.accountLabelRow()}\n {this.achAccountTypeRow()}\n {this.achRoutingNumberRow()}\n {this.achAccountNumberRow()}\n {this.ccPayMethodRow()}\n {this.payMethodRow()}\n {this.numItemsRow()}\n {this.commentRow()}\n {this.statusRow()}\n {this.failureReasonRow()}\n {this.checkPayMethodRow()}\n {this.checkImagesRow()}\n {this.docItemsRow()}\n {this.subtotalRow()}\n {this.feesRow()}\n {this.amountRow()}\n {this.amountReasonRow()}\n \n
    \n );\n }\n}\n\nPaymentDetails.propTypes = {\n oneTimePayment: PropTypes.bool,\n payment: PropTypes.object,\n account: PropTypes.object,\n splits: PropTypes.array,\n payMethods: PropTypes.array,\n newPayMethod: PropTypes.object,\n i18n: PropTypes.object.isRequired,\n config:PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n};\n\nexport default PaymentDetails;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Button from '../common/Button';\nimport { DatePicker } from './DatePicker';\nimport moment from 'moment';\nimport Icon from 'shared/components/Icon';\nimport format from '../../utils/formatUtils';\nimport PaymentDetails from './PaymentDetails';\nimport PayMethodForm from './PayMethodForm';\nimport PayMethodModal from '../common/PayMethodModal';\nimport UserDetails from '../common/UserDetails';\nimport PaymentAmountInput from '../common/PaymentAmountInput';\nimport WarningMessage from '../common/WarningMessage';\nimport ConfirmModal from '../common/ConfirmModal';\nimport AccountDetails from '../account/AccountDetails';\nimport FormErrors from 'shared/components/FormErrors';\nimport DatePickerInput from './DatePickerInput';\nimport Link from './Link';\nimport PaymentConfirmationMessage from '../common/PaymentConfirmationMessage';\nimport Checkbox from './Checkbox';\nimport Spinner from './Spinner';\n\nclass PaymentForm extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.state = {\n currentStep: 1,\n lastStep: 3,\n overPaymentAmountLimit: false,\n percentageRestrictionExceeded: false,\n negativeAmount: false,\n billsValid: true,\n lockdownDate: false,\n selectedPayMethodIsExpired: false,\n paymentAuthorizationChecked: false,\n isPlastiqConfirmationModalOpen: false,\n };\n\n this.handleAmountChange = this.handleAmountChange.bind(this);\n this.handleDateChange = this.handleDateChange.bind(this);\n this.handleFieldChange = this.handleFieldChange.bind(this);\n this.editDetails = this.editDetails.bind(this);\n this.handleContinue = this.handleContinue.bind(this);\n this.handleSubmit = this.handleSubmit.bind(this);\n this.togglePayMethodModal = this.togglePayMethodModal.bind(this);\n this.closePayMethodModal = this.closePayMethodModal.bind(this);\n this.handleNewPayMethodChange = this.handleNewPayMethodChange.bind(this);\n this.onPaymentAuthChange = this.onPaymentAuthChange.bind(this);\n }\n\n componentWillMount() {\n const payMethods = this.getPayMethods();\n const payMethod = this.getPayMethod();\n const newPayMethod = {};\n const formGroupClass = this.getFormGroupClass();\n const labelClass = this.getLabelClass();\n const fieldClass = this.getFieldClass();\n const paymentDocs = this.props.payment.portal_documents;\n const scheduledDate = this.props.payment.scheduled_date;\n\n this.setDefaults(payMethods);\n\n this.setState({\n paymentDocs,\n payMethod,\n newPayMethod,\n payMethods,\n formGroupClass,\n labelClass,\n fieldClass,\n isPayMethodModalOpen: false,\n }, this.validateForm);\n }\n\n componentWillReceiveProps(nextProps) {\n this.handleErrors(nextProps);\n this.handleValidationChange(nextProps);\n this.handleSavedPayment(nextProps);\n this.handlePayMethods(nextProps);\n this.handleSavedPayMethod(nextProps);\n this.handleDocsChange(nextProps);\n this.handleSplitUpdating(nextProps);\n }\n\n handleSplitUpdating(nextProps) {\n this.validateForm(nextProps);\n }\n\n handleDocsChange(nextProps) {\n if (nextProps.docsAdded) {\n this.props.clearDocsAdded();\n const payMethods = this.getPayMethods();\n let payMethodId = payMethods.length ? this.getDefaultPayMethodId(payMethods) : '';\n this.props.onChange({\n pay_method_id: payMethodId\n });\n\n this.setState({ paymentDocs: nextProps.payment.portal_documents });\n }\n }\n\n handleValidationChange(nextProps) {\n const paymentChanged = this.props.payment != nextProps.payment;\n const splitsChanged = this.props.splitsValid != nextProps.splitsValid;\n if (paymentChanged || splitsChanged) {\n this.validateForm(nextProps);\n }\n }\n\n handleErrors(nextProps) {\n if (nextProps.errors) {\n this.setState({ currentStep: 1 });\n }\n }\n\n handleSavedPayment(nextProps) {\n if (nextProps.savedPayment) {\n const selectedPayMethod = this.getSelectedPayMethod(this.props.payment);\n if (this.isPlastiq(selectedPayMethod)) {\n window.location = nextProps.savedPayment.plastiq_request_url;\n } else {\n this.setState({ currentStep: 3 });\n }\n }\n }\n\n handlePayMethods(nextProps) {\n const payMethodsChanged = this.props.payMethods != nextProps.payMethods;\n const ccEnabledChanged = this.props.creditCardEnabled != nextProps.creditCardEnabled;\n if (!this.props.newPayMethodMode && (payMethodsChanged || ccEnabledChanged)) {\n const payMethods = this.filterPayMethods(nextProps.payMethods, nextProps.creditCardEnabled);\n this.setAvailablePayMethod(payMethods);\n this.setState({ payMethods });\n }\n }\n\n handleSavedPayMethod(nextProps) {\n if (nextProps.savedPayMethod) {\n this.props.clearSavedPayMethod();\n\n this.props.onChange({\n pay_method_id: nextProps.savedPayMethod.id\n });\n\n this.setState({\n isPayMethodModalOpen: false\n }, this.validateForm);\n }\n }\n\n handleNewPayMethodChange(data) {\n this.setState({\n newPayMethod: data.newPayMethod,\n isNewPayMethodValid: data.isNewPayMethodValid\n }, this.validateForm);\n }\n\n handleAmountChange(amount) {\n const account = this.props.account || {};\n const possibleDueAmounts = [account.due_amount, account.payment_amount]\n .map((amount) => (+amount).toFixed(2));\n const different_amount = !possibleDueAmounts.includes(amount.toFixed(2));\n const amount_reason = different_amount ? this.props.payment.amount_reason : '';\n\n this.props.onChange({\n amount,\n different_amount,\n amount_reason\n });\n }\n\n handleDateChange(date) {\n const newScheduledDate = moment(date).format('YYYY-MM-DD');\n this.props.onChange({\n scheduled_date: newScheduledDate\n });\n this.props.updatePayment({\n ...this.props.payment,\n scheduled_date: newScheduledDate\n });\n }\n\n handleFieldChange(e) {\n this.props.onChange({\n [e.currentTarget.name]: e.currentTarget.value\n });\n }\n\n setDefaults(payMethods) {\n const payment = {};\n\n if (!this.props.payment.amount) {\n payment.amount = this.getDefaultAmount();\n }\n\n if (!this.props.payment.scheduled_date && this.props.config.default_date_enabled) {\n payment.scheduled_date = this.props.minDate;\n }\n\n if (!this.props.payment.pay_method_id || !(this.props.payment.pay_method && this.props.payment.pay_method.active)) {\n payment.pay_method_id = payMethods.length ? this.getDefaultPayMethodId(payMethods) : '';\n }\n\n this.props.onChange({\n ...payment\n });\n }\n\n getDefaultPayMethodId(payMethods) {\n let defaultPayMethod = payMethods.find((payMethod) => {\n return payMethod.default;\n });\n\n defaultPayMethod = defaultPayMethod || payMethods[0];\n\n return defaultPayMethod ? defaultPayMethod.id : null;\n }\n\n getDefaultAmount() {\n const account = this.props.account || {};\n const amount = account.due_amount || account.payment_amount || 0;\n return parseFloat(amount);\n }\n\n setAvailablePayMethod(payMethods) {\n if (!payMethods) return;\n const isAvailable = payMethods.find((p) => p.id == this.props.payment.pay_method_id);\n if (!isAvailable) {\n const newPayMethodId = payMethods.length ? payMethods[0].id : '';\n this.props.onChange({\n pay_method_id: newPayMethodId\n });\n }\n }\n\n getPayMethods() {\n if (this.props.payMethods) {\n return this.filterPayMethods(this.props.payMethods, this.props.creditCardEnabled);\n }\n else {\n return [];\n }\n }\n\n getPayMethod() {\n if (this.props.payMethod) {\n return this.props.payMethod;\n }\n else {\n return this.props.payment ? this.props.payment.pay_method : null;\n }\n }\n\n filterPayMethods(payMethods, creditCardEnabled) {\n if (!creditCardEnabled) {\n return payMethods.filter((p) => {\n return !p.is_credit_card;\n });\n }\n else {\n return payMethods;\n }\n }\n\n getFormGroupClass() {\n const classes = ['form-group'];\n if (!this.props.verticalLayout) classes.push('row');\n return classes.join(' ');\n }\n\n getLabelClass() {\n return this.props.verticalLayout ? '' : `col-form-label ${this.props.labelClass}`;\n }\n\n getFieldClass() {\n return this.props.verticalLayout ? '' : 'col-md-6';\n }\n\n stepClass(step) {\n const currentStep = this.state.currentStep;\n let classes = ['step', 'btn'];\n if (currentStep == step) classes.push('active');\n else if (currentStep < step) classes.push('disabled');\n if (currentStep > step && currentStep == this.state.lastStep) classes.push('disabled');\n return classes.join(' ');\n }\n\n stepLink(step, label) {\n return (\n \n

    \n {label}\n

    \n \n \n {step}\n \n \n \n );\n }\n\n steps() {\n if (this.props.showSteps) {\n return (\n
    \n {this.stepLink(1, this.props.i18n.common.details)}\n {this.stepLink(2, this.props.i18n.common.confirm)}\n {this.stepLink(3, this.props.i18n.common.done)}\n
    \n );\n }\n }\n\n getSelectedPayMethod(payment) {\n if (payment.pay_method_id) {\n return this.props.payMethods.find((payMethod) => {\n return payMethod.id == payment.pay_method_id;\n });\n }\n else {\n return this.state.newPayMethod;\n }\n }\n\n isDateValid() {\n const blackoutConfig = this.props.config.payment_blackout_config;\n const blackoutDates = blackoutConfig.blackout_dates;\n const date = this.getPaymentDate();\n\n if (!date) return true;\n const dateString = date.format().substring(0,10);\n\n if (blackoutDates.length > 0 && this.state.lockdownDate) {\n return !blackoutDates.includes(dateString);\n } else {\n return true;\n }\n }\n\n isDateLocked(props) {\n const selectedPayMethod = this.getSelectedPayMethod(props.payment);\n return this.isPlastiq(selectedPayMethod) || this.props.config.same_day_payments_enforced;\n }\n\n isPlastiq(selectedPayMethod) {\n return selectedPayMethod && selectedPayMethod.type == \"PlastiqPayMethod\";\n }\n\n validateForm(props) {\n props = props || this.props;\n\n let billsValid = true;\n\n if (props.config.enforce_due_date) {\n billsValid = this.props.areBillsInDateRage();\n this.setState({ billsValid });\n }\n\n const payment = props.payment;\n\n let selectedPayMethod;\n let selectedPayMethodIsExpired;\n\n if (payment.pay_method_id) {\n selectedPayMethod = this.getSelectedPayMethod(payment);\n if (selectedPayMethod && selectedPayMethod.is_expired) {\n selectedPayMethodIsExpired = selectedPayMethod.is_expired;\n }\n }\n\n const amount = props.config.fees_enabled ? payment.subtotal : payment.amount;\n const amountValid = amount && amount > 0;\n const negativeAmount = amount && amount < 0;\n const dateValid = payment.scheduled_date;\n const payMethodValid = (selectedPayMethod && !selectedPayMethodIsExpired) || this.state.isNewPayMethodValid;\n const commentValid = !props.commentRequired || payment.otp_comment;\n const splitsValid = props.splitsValid;\n const lockdownDate = this.isDateLocked(props);\n const amountReasonPresent = !props.config.different_amount_reason_required ||\n !props.payment.different_amount ||\n !!props.payment.amount_reason;\n const splitNotUpdating = !props.splitUpdating;\n\n const isValid =\n amountValid &&\n dateValid &&\n payMethodValid &&\n commentValid &&\n splitsValid &&\n billsValid &&\n amountReasonPresent &&\n splitNotUpdating;\n\n this.setState({\n isValid,\n negativeAmount,\n splitsValid,\n lockdownDate,\n selectedPayMethodIsExpired\n });\n }\n\n handleContinue($event) {\n $event.preventDefault();\n if (this.state.isValid) {\n if (this.props.onContinue) {\n this.props.onContinue(this.props.payment);\n }\n if (!this.props.disableContinue) {\n this.props.clearErrors();\n this.setState({ currentStep: 2 });\n }\n }\n }\n\n handleSubmit($event) {\n $event.preventDefault();\n const { config, payment } = this.props;\n const selectedPayMethod = this.getSelectedPayMethod(payment);\n const plastiqConfirmationEnabled = config.pay_method_config.plastiq_confirmation_notice_enabled;\n\n if (this.isPlastiq(selectedPayMethod) && plastiqConfirmationEnabled) {\n this.togglePlastiqConfirmationModal();\n } else {\n this.plastiqConfirmation();\n }\n }\n\n formErrors() {\n if (this.props.showErrors) {\n return (\n \n );\n }\n }\n\n headingText() {\n if (this.props.oneTimePayment) {\n const heading = `${this.props.i18n.portal.payer.payment.payment_details}`;\n return heading;\n } else {\n const canManangePayments = this.props.abilities.manage_portal_payment && (this.state.payMethods && this.state.payMethods.length > 0) || this.props.abilities.manage_pay_method;\n const heading = canManangePayments ? `${this.props.i18n.portal.payer.payment.payment_details}` : `${this.props.content.no_pay_method_notice}`;\n return heading;\n }\n }\n\n formHeading() {\n return (\n

    \n {this.headingText()}\n

    \n );\n }\n\n userDetails() {\n if (this.props.showUserDetails) {\n return (\n \n );\n }\n }\n\n accountDetails() {\n if (this.props.account && !this.props.config.feature.bill_search_enabled) {\n const showNotice = this.props.oneTimePayment ? true : false;\n return (\n
    \n

    {this.props.i18n.portal.ada_headers.account_details}

    \n
    \n \n
    \n
    \n );\n }\n }\n\n warningTargetClass(stateField, initialClass, warningClass) {\n const fieldClass = stateField ? warningClass : initialClass;\n return `${fieldClass}`;\n }\n\n amountField() {\n if (this.props.showAmountField) {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n }\n\n amountReasonField() {\n if (\n this.props.config.different_amount_reason_required &&\n this.props.payment.different_amount\n ) {\n const amountReason = this.props.payment.amount_reason || '';\n const errorClass = amountReason ? '' : 'has-error';\n const placeholder = this.props.i18n.portal.payment.amount_reason_instruction;\n\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n }\n\n dateField() {\n const date = this.getPaymentDate();\n const blackoutConfig = this.props.config.payment_blackout_config;\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n\n getPaymentDate() {\n if (this.state.lockdownDate) {\n return moment();\n }\n else if (this.props.payment.scheduled_date) {\n return moment(this.props.payment.scheduled_date);\n }\n }\n\n datePickerInput() {\n return (\n \n );\n }\n\n payMethodField() {\n if (!this.props.newPayMethodMode && this.state.payMethods) {\n return (\n
    \n \n
    \n {this.payMethodSelect()}\n
    \n
    \n );\n }\n }\n\n payMethodSelect() {\n const className = this.newPayMethodButtonEnabled() ? 'input-group' : '';\n\n return (\n
    \n \n {this.payMethodOptions()}\n \n {this.newPayMethodButton()}\n
    \n );\n }\n\n payMethodOptions() {\n return this.state.payMethods.map((payMethod, i) =>\n \n );\n }\n\n enabledTypesLength() {\n const achEnabled = this.props.config.pay_method_config.ach_enabled;\n const checkEnabled = this.props.config.pay_method_config.check_enabled;\n const creditCardEnabled = this.props.config.pay_method_config.cc_enabled;\n const plastiqEnabled = this.props.plastiqEnabled;\n const enabledTypes = [achEnabled, checkEnabled, creditCardEnabled, plastiqEnabled];\n return enabledTypes.filter((enabled) => enabled).length;\n }\n\n newPayMethodButtonEnabled() {\n return this.props.abilities.manage_pay_method && this.enabledTypesLength() > 0;\n }\n\n newPayMethodButton() {\n if (this.newPayMethodButtonEnabled()) {\n return (\n
    \n \n
    \n );\n }\n }\n\n payMethodForm() {\n if (this.props.newPayMethodMode) {\n return (\n \n );\n }\n }\n\n registerNewPayMethod(onSuccess) {\n this.refs.PayMethodForm.registerNewPayMethod(onSuccess);\n }\n\n documentsField() {\n if (this.state.paymentDocs.length > 0) {\n return (\n
    \n \n
    \n
      \n {this.fileListItem()}\n
    \n
    \n
    \n );\n }\n }\n\n removePortalDoc(doc) {\n this.props.deletePortalDocument(this.props.payment, doc);\n }\n\n fileListItem() {\n return this.state.paymentDocs.map((doc, i) => {\n const handleRemove = this.removePortalDoc.bind(this, doc);\n return (\n
  • \n
    \n {doc.display_name.split(\"\\n\").map((text, i) => {\n return
    {text}
    ;\n })}\n
    \n \n
  • \n );\n });\n }\n\n commentField() {\n if (this.props.commentRequired) {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n }\n\n payMethodExpiredMessage() {\n return (\n \n );\n }\n\n negativeAmountMessage() {\n return (\n \n );\n }\n\n discountDateWarning() {\n return (\n \n );\n }\n\n amountDiffersWarning() {\n return (\n \n );\n }\n\n expiredDiscountWarning() {\n return (\n \n );\n }\n\n blackedOutDateWarning() {\n return (\n \n );\n }\n\n paymentBalance() {\n if (this.props.showBalance) {\n const { fees_enabled } = this.props.config;\n const payment = this.props.payment;\n const amount = fees_enabled ? payment.subtotal : payment.amount;\n const label = fees_enabled ? 'payment_subtotal' : 'payment_total';\n\n return (\n
    \n

    \n {this.props.i18n.portal.payer.payment.payment_balance}\n

    \n \n \n \n \n \n \n \n
    \n {this.props.i18n.portal.payer.payment[label]}\n \n {this.amountValue(amount)}\n
    \n {this.payMethodExpiredMessage()}\n {this.expiredDiscountWarning()}\n {this.negativeAmountMessage()}\n {this.discountDateWarning()}\n {this.amountDiffersWarning()}\n {this.blackedOutDateWarning()}\n
    \n );\n }\n }\n\n amountValue(amount) {\n if (this.props.splitUpdating) {\n return ;\n } else {\n return
    {format.currency(amount)}
    ;\n }\n }\n\n formActions() {\n return (\n
    \n \n
    \n );\n }\n\n detailsSection() {\n const hiddenClass = this.state.currentStep == 1 ? '' : 'd-none';\n\n return (\n \n {this.formHeading()}\n {this.detailsSectionContent()}\n \n );\n }\n\n detailsSectionContent() {\n const canManangePayments = this.props.abilities.manage_portal_payment && (this.state.payMethods && this.state.payMethods.length > 0) || this.props.abilities.manage_pay_method;\n if (this.props.oneTimePayment || canManangePayments) {\n return (\n
    \n {this.userDetails()}\n {this.accountDetails()}\n {this.amountField()}\n {this.amountReasonField()}\n {this.dateField()}\n {this.payMethodField()}\n {this.payMethodForm()}\n {this.commentField()}\n {this.documentsField()}\n {this.paymentBalance()}\n {this.formActions()}\n
    \n );\n }\n }\n\n editDetails() {\n this.setState({ currentStep: 1 });\n }\n\n confirmSection() {\n if (this.state.currentStep == 2) {\n const payment = this.props.payment;\n const translations = this.props.i18n.portal.payer.payment;\n const confirmText = translations.confirm_payment_details;\n const detailsText = translations.payment_details;\n const submitText = translations.submit_payment;\n const plastiqText = translations.continue_to_plastiq;\n const selectedPayMethod = this.getSelectedPayMethod(payment);\n const buttonText = this.isPlastiq(selectedPayMethod) ? plastiqText : submitText;\n const headerText = this.isPlastiq(selectedPayMethod) ? detailsText : confirmText;\n const paymentAuthorizationEnabled = this.props.config.payment_authorization_checkbox_enabled;\n const paymentNeedsAuthorization = paymentAuthorizationEnabled && !this.state.paymentAuthorizationChecked;\n const submitDisabled = this.props.submitting || paymentNeedsAuthorization;\n return (\n
    \n

    \n {headerText}\n

    \n\n \n\n
    \n \n
    \n {this.paymentAuthorizationContent()}\n
    \n \n {buttonText}\n \n
    \n
    \n );\n }\n }\n\n paymentAuthorizationContent() {\n if (!this.props.config.payment_authorization_checkbox_enabled) return null;\n\n const label = this.props.content.payment_authorization_checkbox_label;\n const content = this.props.content.payment_authorization_checkbox_content;\n return (\n \n );\n }\n\n onPaymentAuthChange(event) {\n this.setState({ paymentAuthorizationChecked: event.target.checked });\n }\n\n doneSection() {\n if (this.state.currentStep == 3) {\n return (\n
    \n \n \n
    \n {this.printPaymentButton()}\n
    \n
    \n \n
    \n
    \n );\n }\n }\n\n printPaymentButton() {\n if (!this.props.savedPayment.is_failed) {\n return (\n \n );\n }\n }\n\n payMethodModal() {\n return (\n \n );\n }\n\n plastiqConfirmationModal() {\n const { i18n } = this.props;\n const message = this.props.content.plastiq_confirmation_notice;\n const heading = i18n.common.confirmation;\n const buttonText = i18n.common.continue;\n const action = this.plastiqConfirmation;\n const isOpen = this.state.isPlastiqConfirmationModalOpen;\n const toggle = this.togglePlastiqConfirmationModal;\n return (\n \n );\n }\n\n togglePlastiqConfirmationModal = () => {\n this.setState({\n isPlastiqConfirmationModalOpen: !this.state.isPlastiqConfirmationModalOpen\n });\n }\n\n togglePayMethodModal = () => {\n this.props.clearPayMethodErrors();\n this.setState({\n isPayMethodModalOpen: !this.state.isPayMethodModalOpen\n });\n }\n\n plastiqConfirmation = () => {\n if (this.props.newPayMethodMode) {\n this.registerNewPayMethod((newPayMethod) => {\n this.props.onSubmit(this.props.payment, {\n newPayMethod\n });\n });\n } else {\n this.props.onSubmit(this.props.payment);\n }\n this.setState({ paymentAuthorizationChecked: false });\n }\n\n closePayMethodModal() {\n this.setState({ isPayMethodModalOpen: false });\n }\n\n render() {\n return (\n
    \n {this.steps()}\n {this.formErrors()}\n {this.detailsSection()}\n {this.confirmSection()}\n {this.doneSection()}\n {this.payMethodModal()}\n {this.plastiqConfirmationModal()}\n
    \n );\n }\n}\n\nPaymentForm.defaultProps = {\n labelClass: 'col-md-5',\n showErrors: true,\n splitsValid: true\n};\n\nPaymentForm.propTypes = {\n abilities: PropTypes.object,\n account: PropTypes.object,\n accountDetailsClass: PropTypes.string,\n areBillsInDateRage: PropTypes.func,\n clearDocsAdded: PropTypes.func,\n clearErrors: PropTypes.func,\n clearPayMethodErrors: PropTypes.func,\n clearSavedPayMethod: PropTypes.func,\n commentRequired: PropTypes.bool,\n config: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired,\n createStripeIntent: PropTypes.func,\n creditCardEnabled: PropTypes.bool,\n deletePortalDocument: PropTypes.func,\n disableContinue: PropTypes.bool,\n errors: PropTypes.array,\n hasExpiredDiscount: PropTypes.bool,\n i18n: PropTypes.object.isRequired,\n labelClass: PropTypes.string,\n maxDate: PropTypes.object,\n minDate: PropTypes.object,\n newPayMethod: PropTypes.object,\n newPayMethodMode: PropTypes.bool,\n onChange: PropTypes.func.isRequired,\n onContinue: PropTypes.func,\n onDone: PropTypes.func,\n oneTimePayment: PropTypes.bool,\n onPayMethodError: PropTypes.func,\n onPrint: PropTypes.func,\n onSubmit: PropTypes.func,\n onSubmitPayMethod: PropTypes.func,\n payment: PropTypes.object,\n payMethod: PropTypes.object,\n payMethodErrors: PropTypes.array,\n payMethods: PropTypes.array,\n plastiqEnabled: PropTypes.bool,\n savedPayment: PropTypes.object,\n savedPayMethod: PropTypes.object,\n showAmountField: PropTypes.bool,\n showBalance: PropTypes.bool,\n showErrors: PropTypes.bool,\n showNicknameField: PropTypes.bool,\n showSteps: PropTypes.bool,\n showUserDetails: PropTypes.bool,\n splitUpdating: PropTypes.bool,\n splitsValid: PropTypes.bool,\n stripeEnabled: PropTypes.bool,\n stripeIntent: PropTypes.string,\n submitting: PropTypes.bool,\n updatePayment: PropTypes.func.isRequired,\n updatePaymentAmount: PropTypes.func,\n verticalLayout: PropTypes.bool,\n};\n\nexport default PaymentForm;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { DatePicker } from './DatePicker';\nimport Button from './Button';\nimport DatePickerInput from './DatePickerInput';\nimport PaymentAmountInput from '../common/PaymentAmountInput';\nimport WarningMessage from '../common/WarningMessage';\nimport { hashHistory } from 'react-router';\nimport moment from 'moment';\nimport ordinal from 'ordinal-numbers';\nimport format from '../../utils/formatUtils';\nimport Link from './Link';\nimport NoticePopover from './NoticePopover';\nimport FormErrors from 'shared/components/FormErrors';\nimport Checkbox from './Checkbox';\n\nclass RecurrenceForm extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.state = {\n recurrence: this.getRecurrence(),\n overPaymentAmountLimit: false,\n percentageRestrictionExceeded: false,\n popoverOpen: false,\n selectedPayMethodIsExpired: false,\n paymentAuthorizationChecked: false\n };\n\n this.handleSubmit = this.handleSubmit.bind(this);\n this.handleFieldChange = this.handleFieldChange.bind(this);\n this.handleAmountChange = this.handleAmountChange.bind(this);\n this.handleEndDateChange = this.handleEndDateChange.bind(this);\n this.togglePopover = this.togglePopover.bind(this);\n this.goToSettings = this.goToSettings.bind(this);\n this.onPaymentAuthChange = this.onPaymentAuthChange.bind(this);\n }\n\n componentWillMount() {\n this.validateForm();\n }\n\n getRecurrence() {\n const amount = this.props.account ? this.props.account.payment_amount : 0;\n const newRecurence = this.props.requireAmount ? { amount } : {};\n return this.props.recurrence || newRecurence;\n }\n\n togglePopover() {\n this.setState({\n popoverOpen: !this.state.popoverOpen\n });\n }\n\n dayOfMonthNotice() {\n if (this.props.content.day_of_month_notice) {\n return (\n <>\n
    \n \n \n \n \n \n
    \n \n \n );\n }\n }\n\n validateForm() {\n let isValid = true;\n const recurrence = this.state.recurrence;\n\n let selectedPayMethod;\n let selectedPayMethodIsExpired;\n\n if (recurrence.pay_method_id) {\n selectedPayMethod = this.getSelectedPayMethod();\n if (selectedPayMethod && selectedPayMethod.is_expired) {\n selectedPayMethodIsExpired = selectedPayMethod.is_expired;\n }\n }\n\n if (this.props.requirePayMethod && !selectedPayMethod && selectedPayMethodIsExpired) {\n isValid = false;\n }\n if (selectedPayMethod && selectedPayMethodIsExpired) {\n isValid = false;\n }\n if (this.props.requireAmount && !recurrence.amount) {\n isValid = false;\n }\n if (this.props.requireDayOfMonth && !recurrence.day_of_month) {\n isValid = false;\n }\n\n this.setState({\n isValid,\n selectedPayMethodIsExpired\n });\n }\n\n handleSubmit(e) {\n e.preventDefault();\n this.setState({ paymentAuthorizationChecked: false });\n this.props.onSubmit(this.state.recurrence);\n }\n\n handleFieldChange(e) {\n let value = null;\n\n if (e.currentTarget.type == \"checkbox\") {\n value = e.currentTarget.checked;\n } else {\n value = e.currentTarget.value;\n }\n\n this.setRecurrence({\n ...this.state.recurrence,\n [e.currentTarget.name]: value\n });\n }\n\n handleAmountChange(amount) {\n this.setRecurrence({\n ...this.state.recurrence,\n amount\n });\n }\n\n handleEndDateChange(date) {\n this.setRecurrence({\n ...this.state.recurrence,\n end_date: date\n });\n }\n\n setRecurrence(recurrence) {\n this.setState({ recurrence }, this.validateForm);\n }\n\n heading() {\n const action = this.state.recurrence.id ? 'edit_autopay' : 'setup_autopay';\n return (\n

    \n {this.props.i18n.portal.payer.autopay[action]}\n

    \n );\n }\n\n formErrors() {\n return (\n \n );\n }\n\n amountField() {\n if (this.props.requireAmount) {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n }\n\n dayOfMonthFieldClass() {\n const fieldClass = this.props.content.day_of_month_notice ? 'input-group select-input-group' : 'input-group';\n return `${fieldClass}`;\n }\n\n dayOfMonthField() {\n if (this.props.requireDayOfMonth) {\n return (\n
    \n \n
    \n
    \n
    \n {this.dayOfMonthSelect()}\n {this.dayOfMonthNotice()}\n
    \n
    \n
    \n
    \n );\n }\n }\n\n dayOfMonthSelect() {\n return (\n \n \n {this.dayOfMonthOptions()}\n \n );\n }\n\n dayOfMonthOptions() {\n const account = this.props.account;\n const restriction = this.props.config.pay_date_restriction;\n let daysArray = [...Array(32).keys()].splice(1, 31);\n\n if (account && account.due_date && restriction) {\n daysArray = this.getRestrictedDays(account, restriction);\n }\n\n return daysArray.map((day) =>\n \n );\n }\n\n getRestrictedDays(account, restriction) {\n const dueDate = moment(account.due_date);\n const minDate = moment(dueDate).subtract(restriction, 'days');\n const daysArray = [];\n let date = minDate;\n\n while (!date.isSame(dueDate)) {\n daysArray.push(date.add(1, 'day').date());\n }\n\n return daysArray;\n }\n\n payMethodField() {\n return (\n
    \n \n
    \n {this.payMethodSelect()}\n
    \n
    \n );\n }\n\n paymentBreakdownField() {\n if (this.props.showPaymentBreakdownOption) {\n return (\n
    \n \n
    \n {this.multipleBillsPerPaymentInput()}\n {this.singleBillPerPaymentInput()}\n
    \n
    \n );\n }\n }\n\n singleBillPerPaymentInput() {\n const id = \"payment_breakdown_type_single\";\n const isChecked = this.state.recurrence.payment_breakdown_type == \"single_bill_per_payment\";\n\n return (\n
    \n \n \n
    \n );\n }\n\n multipleBillsPerPaymentInput() {\n const id = \"payment_breakdown_type_multiple\";\n const isChecked = !this.state.recurrence.payment_breakdown_type || this.state.recurrence.payment_breakdown_type == \"multiple_bills_per_payment\";\n\n return (\n
    \n \n \n
    \n );\n }\n\n payMethodSelect() {\n if (this.props.payMethods && this.props.payMethods.length) {\n return (\n \n \n {this.payMethodOptions()}\n \n );\n } else {\n return this.newPayMethodButton();\n }\n }\n\n goToSettings() {\n hashHistory.push('/payer/settings');\n }\n\n newPayMethodButton() {\n return (\n \n );\n }\n\n payMethodOptions() {\n return this.props.payMethods.map((payMethod) =>\n \n );\n }\n\n endDateField() {\n if (this.props.optionalEndDate) {\n const endDate = this.state.recurrence.end_date ? moment(this.state.recurrence.end_date) : null;\n return (\n
    \n \n
    \n }\n onChange={this.handleEndDateChange}\n minDate={moment()}\n maxDate={moment().add(365, \"days\")}\n value={endDate}\n selected={endDate} />\n
    \n
    \n );\n }\n }\n\n onPaymentAuthChange(event) {\n this.setState({ paymentAuthorizationChecked: event.target.checked });\n }\n\n paymentAuthorizationContent() {\n if (!this.props.config.payment_authorization_checkbox_enabled) return null;\n\n const label = this.props.content.payment_authorization_checkbox_label;\n const content = this.props.content.payment_authorization_checkbox_content;\n\n return (\n \n );\n }\n\n actions() {\n return (\n
    \n {this.cancelButton()}{' '}\n {this.submitButton()}\n
    \n );\n }\n\n submitButton() {\n const paymentAuthorizationEnabled = this.props.config.payment_authorization_checkbox_enabled;\n const paymentNeedsAuthorization = paymentAuthorizationEnabled && !this.state.paymentAuthorizationChecked;\n const submitDisabled = this.props.disabled || !this.state.isValid || paymentNeedsAuthorization;\n\n return (\n \n );\n }\n\n cancelButton() {\n if (this.props.allowCancel) {\n return (\n \n );\n }\n }\n\n confirmation() {\n if (this.props.showConfirmation && this.state.isValid) {\n return (\n
    \n
    \n

    \n {this.props.i18n.portal.payer.payment_settings.confirm_autopay}\n

    \n

    \n {this.amountConfirmation()}{' '}\n {this.accountConfirmation()}{' '}\n {this.payMethodConfirmation()}{' '}\n {this.dayOfMonthConfirmation()}{' '}\n {this.endDateConfirmation()}\n

    \n
    \n );\n }\n }\n\n amountConfirmation() {\n return (\n \n {this.props.i18n.portal.payer.payment_settings.auto_pay}{' '}\n {format.currency(this.state.recurrence.amount)}\n \n );\n }\n\n accountConfirmation() {\n return (\n \n {this.props.i18n.common.to}{' '}\n {this.props.account.account_label}\n \n );\n }\n\n payMethodConfirmation() {\n const selectedPayMethod = this.getSelectedPayMethod();\n if (selectedPayMethod) {\n return (\n \n {this.props.i18n.common.from}{' '}\n {selectedPayMethod.details}\n \n );\n }\n }\n\n getSelectedPayMethod() {\n return this.props.payMethods.find((payMethod) => {\n return payMethod.id == this.state.recurrence.pay_method_id;\n });\n }\n\n dayOfMonthConfirmation() {\n return (\n \n {this.props.i18n.portal.payer.payment_settings.every_month_on_the}{' '}\n {ordinal(parseFloat(this.state.recurrence.day_of_month))}\n \n );\n }\n\n endDateConfirmation() {\n if (this.state.recurrence.end_date) {\n return (\n \n {this.props.i18n.common.ending_on}{' '}\n {format.date(this.state.recurrence.end_date)}\n \n );\n }\n }\n\n payMethodExpiredMessage() {\n return (\n \n );\n }\n\n render() {\n return (\n \n {this.formErrors()}\n {this.heading()}\n {this.amountField()}\n {this.payMethodField()}\n {this.paymentBreakdownField()}\n {this.dayOfMonthField()}\n {this.endDateField()}\n {this.confirmation()}\n {this.payMethodExpiredMessage()}\n {this.paymentAuthorizationContent()}\n {this.actions()}\n \n );\n }\n}\n\nRecurrenceForm.propTypes = {\n disabled: PropTypes.bool,\n recurrence: PropTypes.object,\n account: PropTypes.object,\n payMethods: PropTypes.array,\n onSubmit: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n showConfirmation: PropTypes.bool,\n requirePayMethod: PropTypes.bool,\n requireAmount: PropTypes.bool,\n requireDayOfMonth: PropTypes.bool,\n optionalEndDate: PropTypes.bool,\n allowCancel: PropTypes.bool,\n content: PropTypes.object.isRequired,\n config: PropTypes.object,\n i18n: PropTypes.object.isRequired,\n errors: PropTypes.array,\n clearErrors: PropTypes.func,\n showPaymentBreakdownOption: PropTypes.bool\n};\n\nexport default RecurrenceForm;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Button from './Button';\nimport ordinal from 'ordinal-numbers';\nimport format from '../../utils/formatUtils';\n\nclass RecurrenceSettings extends React.Component {\n\n constructor(props) {\n super(props);\n this.handleEdit = this.handleEdit.bind(this);\n this.handleRemove = this.handleRemove.bind(this);\n }\n\n editButton() {\n return (\n \n );\n }\n\n handleEdit() {\n this.props.onEdit(this.props.recurrence);\n }\n\n removeButton() {\n return (\n \n );\n }\n\n handleRemove() {\n this.props.onRemove(this.props.recurrence);\n }\n\n payMethodRow() {\n return (\n \n \n {this.props.content.pay_method_label}\n \n \n {this.props.recurrence.pay_method.details}\n \n \n );\n }\n\n amountRow() {\n if (this.props.recurrence.amount) {\n return (\n \n \n {this.props.i18n.common.amount}\n \n {format.currency(this.props.recurrence.amount)}\n \n );\n }\n }\n\n dayOfMonthRow() {\n if (this.props.recurrence.day_of_month) {\n return (\n \n \n {this.props.i18n.common.recurs_on}\n \n \n {ordinal(parseFloat(this.props.recurrence.day_of_month))}\n \n \n );\n }\n }\n\n endDateRow() {\n if (this.props.recurrence.end_date) {\n return (\n \n \n {this.props.i18n.common.ends}\n \n \n {format.date(this.props.recurrence.end_date)}\n \n \n );\n }\n }\n\n recurrenceDetails() {\n return (\n \n \n {this.amountRow()}\n {this.payMethodRow()}\n {this.dayOfMonthRow()}\n {this.endDateRow()}\n \n
    \n );\n }\n\n actions() {\n return (\n
    \n {this.editButton()}{' '}\n {this.removeButton()}\n
    \n );\n }\n\n heading() {\n return (\n

    \n {this.props.i18n.portal.dashboard.autopay_settings}\n

    \n );\n }\n\n render() {\n return (\n
    \n {this.heading()}\n {this.recurrenceDetails()}\n {this.actions()}\n
    \n );\n }\n}\n\nRecurrenceSettings.propTypes = {\n recurrence: PropTypes.object.isRequired,\n onEdit: PropTypes.func.isRequired,\n onRemove: PropTypes.func.isRequired,\n content: PropTypes.object.isRequired,\n i18n: PropTypes.object.isRequired\n};\n\nexport default RecurrenceSettings;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\n\nclass Spinner extends React.Component {\n\n getSpinnerSize() {\n switch (this.props.size) {\n case \"medium\":\n return \"fa-2x\";\n default:\n return \"\";\n }\n }\n\n render() {\n const spinnerSize = this.getSpinnerSize();\n const spinnerClass = `fa fa-spinner fa-spin ${spinnerSize} ${this.props.className}`;\n const spinnerIcon = ;\n if (this.props.centered) {\n return (\n
    \n {spinnerIcon}\n
    \n );\n }\n else {\n return spinnerIcon;\n }\n }\n}\n\nSpinner.propTypes = {\n size: PropTypes.string,\n className: PropTypes.string,\n centered: PropTypes.bool\n};\n\nexport default Spinner;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Button from './Button';\nimport CurrencyInput from 'shared/components/CurrencyInput';\nimport Filter from './Filter';\nimport Pagination from 'shared/components/Pagination';\nimport Link from './Link';\nimport Spinner from './Spinner';\nimport format from '../../utils/formatUtils';\nimport arraySort from 'array-sort';\nimport deep from 'griddle-react/modules/deep';\nimport debounce from '../../utils/debounce';\n\nclass SplitsTable extends React.Component {\n\n constructor(props) {\n super(props);\n\n const unsortableColumns = [];\n const columnAlignment = {\n right: [\n 'bills.discount_amount',\n 'bills.due_amount',\n 'splits.amount'\n ]\n };\n\n this.state = {\n splits: this.props.splits,\n sortOrder: 'bills.due_date ASC',\n sortAscending: true,\n currentPage: 1,\n unsortableColumns,\n columnAlignment,\n commentValue: '',\n editingCommentSplitId: null,\n amountValue: '',\n editingAmountSplitId: null\n };\n\n this.handleFilterChange = this.handleFilterChange.bind(this);\n this.handlePageChange = this.handlePageChange.bind(this);\n this.onChangeDebounced = debounce(this.onChangeDebounced, 500);\n this.onAmountDebounced = debounce(this.onAmountDebounced, 300);\n }\n\n componentWillMount() {\n this.applySortAndFilter([...this.props.splits]);\n }\n\n componentWillReceiveProps(nextProps) {\n this.applySortAndFilter([...nextProps.splits]);\n }\n\n applySortAndFilter(splits) {\n // apply sort\n if (this.state.sortColumn) {\n splits = this.sortDataAscending(splits, this.state.sortColumn);\n if (!this.state.sortAscending) splits.reverse();\n }\n\n // apply filter\n if (this.state.filter) {\n splits = this.filterData(splits, this.state.filter);\n }\n\n // set valid page\n let totalPages = Math.ceil(splits.length / this.props.itemsPerPage);\n let currentPage = this.state.currentPage;\n\n if (this.state.currentPage > totalPages) {\n currentPage = totalPages;\n }\n\n this.setState({\n splits,\n currentPage\n });\n }\n\n filter() {\n return (\n \n );\n }\n\n handleFilterChange(filter) {\n const splits = this.filterData(this.props.splits, filter);\n this.setState({ splits, filter });\n }\n\n filterData(splits, filter) {\n const filteredSplits = splits.filter((item) => {\n const arr = deep.keys(item);\n for (let i = 0; i < arr.length; i++) {\n if ((deep.getAt(item, arr[i]) || \"\").toString().toLowerCase().indexOf(filter.toLowerCase()) >= 0) {\n return true;\n }\n }\n return false;\n });\n return filteredSplits;\n }\n\n handleRowClick(split) {\n if (this.props.onRowClick) {\n this.props.onRowClick(split);\n }\n }\n\n alignmentClass(column) {\n if (this.state.columnAlignment.right.includes(column)) {\n return 'right';\n }\n }\n\n headerClass(column) {\n return [\n this.alignmentClass(column),\n this.sortClass(column),\n ].filter(className => className).join(' ');\n }\n\n sortClass(column) {\n if (this.state.sortOrder == `${column} ASC`) {\n return 'sort-asc';\n }\n else if (this.state.sortOrder == `${column} DESC`) {\n return 'sort-desc';\n }\n }\n\n amountRowValue(split) {\n if (split.loading) {\n return (\n \n );\n }\n else {\n const editEnabled = this.props.config.split_amount_edit_enabled;\n if ((this.props.entryMode && editEnabled) || (this.props.entryMode && !split.bill)) {\n return this.amountField(split);\n } else {\n return format.currency(split.amount);\n }\n }\n }\n\n amountField(split) {\n const autoFocus = split.bill_id ? false : true;\n const handleAmountChange = this.handleAmountChange.bind(this, split);\n const handleAmountBlur = this.handleAmountBlur.bind(this, split);\n let amountValue;\n\n if (this.state.editingAmountSplitId == split.id) {\n amountValue = this.state.amountValue;\n } else {\n amountValue = split.amount;\n }\n\n return (\n \n );\n }\n\n handleClick(e) {\n e.stopPropagation();\n }\n\n handleAmountChange(split, e) {\n let amount = e;\n let negativeAllowed = false;\n if (split.bill && parseFloat(split.bill.due_amount) < 0) {\n negativeAllowed = true;\n }\n if (amount < 0 && !negativeAllowed) amount = Math.abs(amount);\n this.setState(\n {\n amountValue: amount,\n editingAmountSplitId: split.id\n }\n );\n this.onAmountDebounced(amount, split);\n }\n\n onAmountDebounced(amount, split) {\n if (this.props.onAmountChange) {\n this.props.onAmountChange(split, amount);\n }\n }\n\n handleAmountBlur(split) {\n if (this.props.onSplitChange) {\n this.setState(\n {\n amountValue: '',\n editingAmountSplitId: null\n }\n );\n }\n }\n\n billDueDate(bill) {\n let dueLabel = null;\n if (bill.due && this.props.showDueLabel) {\n dueLabel = this.dueLabel();\n }\n return (\n \n {format.date(bill.due_date, this.props.config.date_format_string)}{' '}\n {dueLabel}\n \n );\n }\n\n dueLabel() {\n return (\n \n {this.props.content.due_label}\n \n );\n }\n\n tableHeaders() {\n const columns = this.props.columns;\n return columns.map((column, i) => {\n const handleSortChange = this.handleSortChange.bind(this, column);\n return (\n \n {this.headerLabel(column)}\n \n );\n });\n }\n\n tableRows() {\n if (this.props.splits) {\n return this.props.splits.map((split, i) => {\n return (\n \n {this.dataRow(split)}\n {this.infoRow(split, `${i}_info`)}\n \n );\n });\n }\n }\n\n dataRow(split) {\n const handleClick = this.handleRowClick.bind(this, split);\n const rowClass = this.getRowClass(split);\n\n let data = this.props.columns.map((column) => {\n const value = this.rowValue(split, column);\n if (value) {\n return this.tableRowData(split, column, value);\n }\n });\n\n if (!split.bill) {\n data.splice(data.length - 1, 0, this.payToAccountRowData());\n }\n\n return (\n \n {data.map((rowData) => rowData)}\n \n );\n }\n\n payToAccountRowData() {\n const colSpan = this.props.columns.length - 3;\n return (\n \n {this.props.i18n.portal.payer.payment.pay_to_account}\n \n );\n }\n\n rowValue(split, column) {\n switch (column) {\n case 'receivable_accounts.external_key':\n return split.bill ? split.bill.account_number : split.receivable_account.external_key;\n case 'payers.name':\n return split.bill ? split.bill.account_name : split.receivable_account.payer.name;\n case 'bills.due_date':\n return split.bill ? this.billDueDate(split.bill) : null;\n case 'bills.external_type':\n return split.bill ? split.bill.external_type : null;\n case 'bills.external_key':\n return split.bill ? this.billExternalKey(split.bill) : null;\n case 'bills.discount_amount':\n return split.bill ? format.currency(split.bill.discount_amount) : null;\n case 'bills.due_amount':\n return split.bill ? format.currency(split.bill.due_amount) : null;\n case 'splits.amount':\n return this.amountRowValue(split);\n }\n }\n\n billExternalKey(bill) {\n if (this.props.showBillExternalKeyAsLink) {\n const handleExternalKeyClick = this.handleExternalKeyClick.bind(this, bill);\n return (\n \n {bill.external_key}\n \n );\n }\n else {\n return bill.external_key;\n }\n }\n\n handleExternalKeyClick(bill, e) {\n if (this.props.onBillExternalKeyClick) {\n e.stopPropagation();\n this.props.onBillExternalKeyClick(bill.id);\n }\n }\n\n tableRowData(split, column, value) {\n return (\n \n {value}\n \n );\n }\n\n infoRow(split, key) {\n if (this.showAmountReason(split)) {\n return (\n \n \n {this.commentField(split)}\n {this.comment(split)}\n \n \n );\n }\n }\n\n showAmountReason(split) {\n if (split.bill) {\n if (this.props.config.different_amount_reason_required) {\n if (this.props.entryMode && split.bill) {\n return split.amount != this.props.billAmount(split.bill);\n }\n else {\n return split.amount_reason;\n }\n }\n } else {\n if (this.props.config.pay_to_account_comment_required) {\n if (this.props.entryMode) {\n return true;\n }\n else {\n return split.pay_to_account_comment;\n }\n }\n }\n }\n\n commentField(split) {\n if (this.props.entryMode) {\n const fieldName = split.bill ? \"amount_reason\" : \"pay_to_account_comment\";\n const commentExists = (split.amount_reason || split.pay_to_account_comment);\n const errorClass = commentExists ? '' : 'has-error';\n const handleCommentChange = this.handleCommentChange.bind(this, split);\n const handleCommentBlur = this.handleCommentBlur.bind(this, split);\n const placeholder = split.bill ? this.props.i18n.portal.payment.amount_reason_instruction : this.props.content.pay_to_account_comment_instructions;\n let commentValue;\n\n if (this.state.editingCommentSplitId == split.id) {\n commentValue = this.state.commentValue;\n } else {\n commentValue = commentExists || '';\n }\n\n return (\n \n \n \n );\n }\n }\n\n handleCommentChange(split, e) {\n const reason = e.target.value;\n this.setState(\n {\n commentValue: reason,\n editingCommentSplitId: split.id\n }\n );\n this.onChangeDebounced(reason, split);\n }\n\n onChangeDebounced(reason, split) {\n if (split.bill && this.props.onAmountReasonChange) {\n this.props.onAmountReasonChange(split, reason);\n }\n else if (this.props.onAccountCommentChange) {\n this.props.onAccountCommentChange(split, reason);\n }\n }\n\n handleCommentBlur(split) {\n if (this.props.onSplitChange) {\n this.setState(\n {\n commentValue: '',\n editingCommentSplitId: null\n }\n );\n this.props.onSplitChange(split);\n }\n }\n\n comment(split) {\n const label = split.bill ? this.props.i18n.portal.payment.amount_reason_label : this.props.i18n.common.comment;\n const commentValue = split.bill ? split.amount_reason : split.pay_to_account_comment;\n if (!this.props.entryMode) {\n return (\n \n \n {label}\n \n {' '}\n {commentValue}\n \n );\n }\n }\n\n getPaginatedData() {\n const itemsPerPage = this.props.itemsPerPage;\n const offset = Math.ceil((this.state.currentPage - 1) * itemsPerPage);\n return this.state.splits.slice(offset, itemsPerPage + offset);\n }\n\n getRowClass(split) {\n if (this.props.isRowSelected) {\n return this.props.isRowSelected(split) ? 'selected' : '';\n }\n }\n\n getCellClass(split, column) {\n if (column == 'splits.amount') {\n const entryClass = (this.props.entryMode && this.props.config.split_amount_edit_enabled) || (this.props.entryMode && !split.bill) ? 'entry-td' : '';\n return `${this.alignmentClass(column)} ${entryClass}`;\n }\n }\n\n getTableClass() {\n const selectableClass = this.props.selectable ? 'table-selectable' : '';\n return `table data-table splits-table ${selectableClass}`;\n }\n\n handleSortChange(column) {\n if (!this.state.unsortableColumns.includes(column)) {\n const sortOrder = this.state.sortOrder;\n let newSortOrder;\n\n switch (sortOrder) {\n case `${column} ASC`: {\n newSortOrder = `${column} DESC`;\n break;\n }\n case `${column} DESC`: {\n newSortOrder = null;\n break;\n }\n default: {\n newSortOrder = `${column} ASC`;\n }\n }\n\n this.setState({ sortOrder: newSortOrder });\n this.props.onSort(newSortOrder);\n }\n }\n\n sortDataAscending(splits, column) {\n switch (column) {\n case 'receivable_accounts.external_key':\n return arraySort(splits, ['bill.external_key', 'receivable_account.external_key']);\n case 'payers.name':\n return arraySort(splits, ['bill.account_name', 'receivable_account.payer.name']);\n case 'bills.due_date':\n return arraySort(splits, 'bill.due_date');\n case 'bills.external_key':\n return arraySort(splits, 'bill.external_key');\n case 'bills.discount_amount':\n return arraySort(splits, 'bill.discount_amount');\n case 'bills.due_amount':\n return arraySort(splits, 'bill.due_amount');\n case 'splits.amount':\n return arraySort(splits, 'amount');\n }\n }\n\n headerLabel(column) {\n if (column == \"splits.amount\") {\n return this.props.i18n.common.amount;\n }\n else {\n const columnName = column.replace(/\\./, '_');\n return this.props.content[`${columnName}_label`];\n }\n }\n\n table() {\n const tableClass = this.getTableClass();\n return (\n
    \n
    \n \n \n \n {this.tableHeaders()}\n \n \n {this.tableRows()}\n
    \n
    \n {this.noResults()}\n
    \n );\n }\n\n noResults() {\n if (this.props.splits && this.props.data.total_displayed_splits == 0) {\n return (\n
    \n {this.props.i18n.portal.data_table.no_results}\n
    \n );\n }\n }\n\n heading() {\n if (this.props.heading) {\n return (\n

    {this.props.heading}

    \n );\n }\n }\n\n actions() {\n if (this.props.actions) {\n return (\n \n {this.props.actions}\n \n );\n }\n }\n\n pagination() {\n if (this.props.splits) {\n return (\n \n );\n }\n }\n\n handlePageChange(page) {\n this.setState({ currentPage: page.selected });\n }\n\n header() {\n if (this.props.heading || this.props.actions) {\n return (\n
    \n {this.heading()}\n {this.actions()}\n
    \n );\n }\n }\n\n render() {\n return (\n
    \n {this.header()}\n {this.filter()}\n {this.table()}\n {this.pagination()}\n
    \n );\n }\n}\n\nSplitsTable.propTypes = {\n billAmount: PropTypes.func,\n data: PropTypes.object,\n splits: PropTypes.array,\n columns: PropTypes.array.isRequired,\n heading: PropTypes.string,\n selectable: PropTypes.bool,\n actions: PropTypes.element,\n showActions: PropTypes.bool,\n onRowClick: PropTypes.func,\n isRowSelected: PropTypes.func,\n onAmountChange: PropTypes.func,\n onAmountReasonChange: PropTypes.func,\n onAccountCommentChange: PropTypes.func,\n onFilter: PropTypes.func,\n onSort: PropTypes.func,\n onPage: PropTypes.func,\n onSplitChange: PropTypes.func,\n itemsPerPage: PropTypes.number.isRequired,\n entryMode: PropTypes.bool,\n amountReasonRequired: PropTypes.bool,\n showBillExternalKeyAsLink: PropTypes.bool,\n onBillExternalKeyClick: PropTypes.func,\n i18n: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired,\n config: PropTypes.object.isRequired,\n showDueLabel: PropTypes.bool\n};\n\nexport default SplitsTable;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Link from './Link';\n\nclass Tab extends React.Component {\n constructor(props) {\n super(props);\n this.handleTabClick = this.handleTabClick.bind(this);\n }\n\n handleTabClick() {\n if (!this.props.active) {\n this.props.onSelect();\n }\n }\n\n linkClasses() {\n const classes = ['nav-link'];\n if (this.props.active) classes.push('active');\n return classes.join(' ');\n }\n\n render() {\n if (this.props.show) {\n return (\n
  • \n \n {this.props.label}\n \n
  • \n );\n }\n else {\n return null;\n }\n }\n}\n\nTab.propTypes = {\n label: PropTypes.string.isRequired,\n active: PropTypes.bool,\n onSelect: PropTypes.func,\n show: PropTypes.bool\n};\n\nexport default Tab;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\n\nclass TabSet extends React.Component {\n containerClasses() {\n const classes = ['tabset-themed'];\n if (this.props.className) classes.push(this.props.className);\n return classes.join(' ');\n }\n\n tabsClasses() {\n const classes = ['nav', 'nav-tabs'];\n if (this.props.card) classes.push('card-header-tabs');\n if (this.props.justified) classes.push('nav-justified');\n if (this.props.pills) classes.push('nav-pills');\n return classes.join(' ');\n }\n\n render() {\n //
    \n //
    \n return (\n
      \n {this.props.children}\n
    \n );\n }\n}\n\nTabSet.propTypes = {\n card: PropTypes.bool,\n className: PropTypes.string,\n children: PropTypes.node,\n justified: PropTypes.bool,\n pills: PropTypes.bool\n};\n\nexport default TabSet;\n","/* eslint-disable react/display-name, react/no-multi-comp */\nimport React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Griddle from 'griddle-react';\nimport Filter from './Filter';\nimport Pagination from 'shared/components/Pagination';\nimport { _invert } from '../../utils/enumerable';\nimport format from '../../utils/formatUtils';\n\nclass Table extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.state = {\n columnMap: this.props.columnMap\n };\n\n this.handleRowClick = this.handleRowClick.bind(this);\n this.handleFilterChange = this.handleFilterChange.bind(this);\n this.handlePageChange = this.handlePageChange.bind(this);\n this.externalSetFilter = this.externalSetFilter.bind(this);\n this.externalChangeSort = this.externalChangeSort.bind(this);\n this.updatePagination = this.updatePagination.bind(this);\n }\n\n filter() {\n if (this.props.showFilter) {\n return (\n \n );\n }\n }\n\n handleFilterChange(query) {\n if (this.props.useExternal) {\n this.props.externalSetFilter(query);\n }\n else {\n this.refs.Griddle.setFilter(query);\n setTimeout(this.updatePagination, 1);\n }\n }\n\n updatePagination() {\n const griddleState = this.refs.Griddle.state;\n const filteredResults = griddleState.filteredResults;\n const totalItems = filteredResults ? filteredResults.length : this.props.results.length;\n this.refs.Pagination.setCurrentPage(griddleState.page);\n this.refs.Pagination.setTotalItems(totalItems);\n }\n\n handleRowClick(row) {\n if (this.props.onRowClick) {\n this.props.onRowClick(row.props.data);\n }\n }\n\n getColumns() {\n if (this.props.columnMap) {\n return this.props.columns.map((column) => {\n return this.state.columnMap[column];\n });\n }\n else {\n return this.props.columns;\n }\n }\n\n externalChangeSort(column, sortAscending) {\n const sortColumn = _invert(this.state.columnMap)[column];\n const sortDirection = sortAscending ? 'ASC' : 'DESC';\n const sortOrder = `${sortColumn} ${sortDirection}`;\n const newSortOrder = (this.props.data.sort_order == `${sortColumn} DESC`) ? null : sortOrder;\n this.props.externalChangeSort(newSortOrder);\n }\n\n externalSetFilter(query) {\n // disabled\n }\n\n externalSetPageSize() {\n // disabled\n }\n\n getExternalSortColumn() {\n const sortOrder = this.props.data.sort_order;\n if (sortOrder) {\n const column = sortOrder.split(' ')[0];\n return this.state.columnMap[column];\n }\n }\n\n getExternalSortAscending() {\n const sortOrder = this.props.data.sort_order;\n return sortOrder ? (sortOrder.split(' ')[1] == \"ASC\") : false;\n }\n\n getCurrentPage() {\n return this.props.useExternal ? (this.props.data.current_page || 1) : 1;\n }\n\n getTotalItems() {\n return this.props.useExternal ? this.props.totalItems : this.props.results.length;\n }\n\n getMaxPage() {\n return this.props.useExternal ? this.props.data.items_per_page : 5;\n }\n\n getColumnMetadata() {\n return this.props.columnMetadata.map((metadata) => {\n const customCompareFn = this.props.useExternal ? (() => { }) : null;\n const customComponent = this.getColumnComponent(metadata);\n return {\n ...metadata,\n customCompareFn,\n customComponent\n };\n });\n }\n\n getColumnComponent(metadata) {\n if (metadata.customComponent) {\n return metadata.customComponent;\n }\n else {\n switch (metadata.format) {\n case \"date\":\n return this.dateComponent();\n case \"currency\":\n return this.currencyComponent();\n default:\n return null;\n }\n }\n }\n\n dateComponent() {\n return class extends React.Component {\n render() {\n return {format.date(this.props.data)};\n }\n };\n }\n\n currencyComponent() {\n return class extends React.Component {\n render() {\n return {format.currency(this.props.data)};\n }\n };\n }\n\n table() {\n const useExternal = this.props.useExternal;\n return (\n
    \n
    \n \n
    \n
    \n );\n }\n\n pagination() {\n if (!this.props.useExternal || (this.props.useExternal && this.props.data)) {\n return (\n \n );\n }\n }\n\n handlePageChange(data) {\n const page = this.props.useExternal ? data.selected : data.selected - 1;\n this.refs.Griddle.setPage(page);\n }\n\n getRowMetadata() {\n return {\n bodyCssClassName: (rowData) => {\n if (this.props.isRowSelected && this.props.isRowSelected(rowData)) {\n return \"selected\";\n }\n }\n };\n }\n\n getTableClassName() {\n const selectableClass = this.props.selectable ? 'table-selectable' : '';\n return `table data-table ${this.props.className} ${selectableClass}`;\n }\n\n noDataComponent() {\n const noDataMessage = this.props.noDataMessage;\n return class extends React.Component {\n render() {\n return
    {noDataMessage}
    ;\n }\n };\n }\n\n heading() {\n if (this.props.heading) {\n return

    {this.props.heading}

    ;\n }\n }\n\n actions() {\n if (this.props.actions && this.props.showActions) {\n return (\n \n {this.props.actions}\n \n );\n }\n }\n\n header() {\n if (this.props.heading || this.props.actions) {\n return (\n
    \n {this.heading()}\n {this.actions()}\n
    \n );\n }\n }\n\n render() {\n return (\n
    \n

    {this.props.heading} {this.props.i18n.portal.ada_headers.table}

    \n {this.header()}\n {this.filter()}\n {this.table()}\n {this.pagination()}\n
    \n );\n }\n}\n\nTable.defaultProps = {\n showFilter: true,\n actionsAlign: \"right\"\n};\n\nTable.propTypes = {\n results: PropTypes.array,\n data: PropTypes.object,\n columns: PropTypes.array.isRequired,\n columnMap: PropTypes.object,\n className: PropTypes.string,\n heading: PropTypes.string,\n selectable: PropTypes.bool,\n showFilter: PropTypes.bool,\n columnMetadata: PropTypes.array,\n showDateFilter: PropTypes.bool,\n filterQuery: PropTypes.string,\n filterPlaceholder: PropTypes.string,\n totalItems: PropTypes.number,\n noDataMessage: PropTypes.string,\n actions: PropTypes.element,\n actionsAlign: PropTypes.oneOf(['left', 'right']),\n showActions: PropTypes.bool,\n onRowClick: PropTypes.func,\n isRowSelected: PropTypes.func,\n useExternal: PropTypes.bool,\n externalSetFilter: PropTypes.func,\n externalSetPage: PropTypes.func,\n externalChangeSort: PropTypes.func,\n i18n: PropTypes.object.isRequired\n};\n\nexport default Table;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\n\nclass UserDetails extends React.Component {\n\n payerNameField() {\n if (this.props.fields.includes('payers.name')) {\n return (\n \n {this.props.account.payer.name}\n \n );\n }\n }\n\n payerEmailField() {\n if (this.props.fields.includes('payers.email')) {\n return (\n
    \n {this.props.account.payer.email}\n
    \n );\n }\n }\n\n accountExternalKeyField() {\n if (this.props.fields.includes('receivable_accounts.external_key')) {\n return (\n
    \n \n {this.props.content.receivable_accounts_external_key_label}\n {': '}\n {this.props.account.external_key}\n
    \n );\n }\n }\n\n render() {\n return (\n
    \n

    {this.props.i18n.portal.ada_headers.account_details}

    \n
    \n {this.payerNameField()}\n {this.payerEmailField()}\n {this.accountExternalKeyField()}\n
    \n
    \n );\n }\n}\n\nUserDetails.propTypes = {\n account: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired,\n fields: PropTypes.array.isRequired,\n i18n: PropTypes.object\n};\n\nexport default UserDetails;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Link from '../common/Link';\nimport Icon from 'shared/components/Icon';\n\nclass UserDropdown extends React.Component {\n\n switchAccountLinkItem() {\n if (this.props.currentUser.portal_user.portal_divisions.length) {\n return (\n \n {this.props.i18n.portal.payer.menu.switch_account}\n \n );\n }\n }\n\n logoutLinkItem() {\n return (\n \n {this.props.content.sign_out_label}\n \n );\n }\n\n exitLinkItem() {\n if (this.props.config.exit_url) {\n return (\n \n {this.props.content.exit_label}\n \n );\n }\n }\n\n dropdownContents() {\n if (!this.props.config.disable_logout) {\n return (\n
    \n {this.switchAccountLinkItem()}\n {this.logoutLinkItem()}\n {this.exitLinkItem()}\n
    \n );\n }\n }\n\n tabIndex() {\n return this.props.focusable ? 0 : -1;\n }\n\n toggleWithoutPayerInfo() {\n return (\n
    \n \n {this.props.currentUser.name}{' '}\n
    \n );\n }\n\n toggleWithPayerInfo() {\n return (\n
    \n
    \n {this.props.currentUser.portal_division.name}\n
    \n
    \n \n {this.props.currentUser.name}\n
    \n
    \n );\n }\n\n render() {\n return (\n
    \n \n {this.props.showPayerInfo ?\n this.toggleWithPayerInfo() :\n this.toggleWithoutPayerInfo()}\n \n {this.dropdownContents()}\n
    \n );\n }\n}\n\nUserDropdown.propTypes = {\n config: PropTypes.object,\n showPayerInfo: PropTypes.bool,\n currentUser: PropTypes.object,\n toggleSwitchAccountModal: PropTypes.func,\n content: PropTypes.object,\n i18n: PropTypes.object,\n exit: PropTypes.func,\n logout: PropTypes.func,\n focusable: PropTypes.bool\n};\n\nUserDropdown.defaultProps = {\n focusable: true\n};\n\nexport default UserDropdown;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport PasswordStrength from './PasswordStrength';\nimport WarningMessage from './WarningMessage';\nimport Link from './Link';\nimport { Popover, PopoverTitle, PopoverContent } from 'reactstrap';\nimport NoticePopover from './NoticePopover';\nimport ReactMarkdown from 'react-markdown';\n\nclass UserForm extends React.Component {\n constructor(props) {\n super(props);\n\n const user = {\n email: '',\n password: '',\n password_confirmation: ''\n };\n\n this.state = {\n user,\n isValid: false,\n emailPopoverOpen: false,\n passwordPopoverOpen: false\n };\n\n this.handleSubmit = this.handleSubmit.bind(this);\n this.handleFieldChange = this.handleFieldChange.bind(this);\n this.handlePasswordChange = this.handlePasswordChange.bind(this);\n this.toggleEmailPopover = this.toggleEmailPopover.bind(this);\n }\n\n toggleEmailPopover() {\n this.setState({\n emailPopoverOpen: !this.state.emailPopoverOpen\n });\n }\n\n emailNotice() {\n if (this.props.content.register_account_notice) {\n return (\n <>\n
    \n \n \n \n \n \n
    \n \n \n );\n }\n }\n\n emailFieldClass() {\n const fieldClass = this.props.content.register_account_notice ? 'input-group' : '';\n return `${fieldClass}`;\n }\n\n emailField() {\n return (\n
    \n \n
    \n
    \n \n {this.emailNotice()}\n
    \n
    \n
    \n );\n }\n\n passwordField() {\n return (\n
    \n \n
    \n \n
    \n
    \n );\n }\n\n showPasswordConfirmationWarning() {\n const user = this.state.user;\n return (user.password.length > 0 && user.password_confirmation.length > 0) && !(user.password == user.password_confirmation);\n }\n\n passwordConfirmationWarning() {\n return (\n \n );\n }\n\n confirmPasswordField() {\n return (\n
    \n \n
    \n \n {this.passwordConfirmationWarning()}\n
    \n
    \n );\n }\n\n handlePasswordChange(state) {\n const { isValid, message, password } = state;\n\n this.setState({ passwordMessage: message, passwordValid: isValid });\n this.setUser({ password });\n }\n\n handleFieldChange(e) {\n this.setUser({\n [e.currentTarget.name]: e.currentTarget.value\n });\n }\n\n setUser(user) {\n this.setState({\n user: {\n ...this.state.user,\n ...user\n }\n }, this.validateForm);\n }\n\n validateForm() {\n const user = this.state.user;\n const passwordValid =\n this.state.passwordValid && user.password == user.password_confirmation;\n const isValid = user.email && passwordValid;\n this.setState({ isValid });\n }\n\n actions() {\n return (\n
    \n \n
    \n );\n }\n\n handleSubmit($event) {\n $event.preventDefault();\n this.props.onSubmit(this.state.user);\n }\n\n render() {\n return (\n \n
    \n {this.emailField()}\n {this.passwordField()}\n {this.confirmPasswordField()}\n {this.actions()}\n
    \n \n );\n }\n}\n\nUserForm.propTypes = {\n onSubmit: PropTypes.func.isRequired,\n content: PropTypes.object,\n i18n: PropTypes.object.isRequired\n};\n\nexport default UserForm;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Table from './Table';\nimport Spinner from './Spinner';\n\nclass UsersTable extends React.Component {\n\n columns() {\n return [\"name\", \"email\"];\n }\n\n columnMetadata() {\n return [\n {\n \"columnName\": \"name\",\n \"displayName\": this.props.i18n.common.name\n },\n {\n \"columnName\": \"email\",\n \"displayName\": this.props.i18n.common.email\n }\n ];\n }\n\n render() {\n if (this.props.results) {\n return (\n \n );\n }\n else {\n return ;\n }\n }\n}\n\nUsersTable.propTypes = {\n results: PropTypes.array,\n columns: PropTypes.array,\n i18n: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired,\n config: PropTypes.object.isRequired\n};\n\nexport default UsersTable;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\n\nclass WarningMessage extends React.Component {\n\n messageWellClass(showWarning) {\n const fieldClass = showWarning ? 'slidedown' : 'slideup';\n return `${fieldClass}`;\n }\n\n render() {\n return (\n
    \n
    \n {this.props.message}\n
    \n
    \n );\n }\n}\n\nWarningMessage.propTypes = {\n alignment: PropTypes.string.isRequired,\n showWarning: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.number\n ]),\n message: PropTypes.string,\n warningType: PropTypes.string.isRequired\n};\n\nexport default WarningMessage;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Link } from 'react-router';\n\nclass LandingOption extends React.Component {\n render() {\n return (\n
    \n
    \n

    {this.props.heading}

    \n

    {this.props.subHeading}

    \n \n {this.props.linkLabel}\n \n
    \n
    \n );\n }\n}\n\nLandingOption.propTypes = {\n wrapperClass: PropTypes.string,\n heading: PropTypes.string,\n subHeading: PropTypes.string,\n linkTo: PropTypes.string,\n linkLabel: PropTypes.string\n};\n\nexport default LandingOption;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Link } from 'react-router';\nimport ReactMarkdown from 'react-markdown';\nimport LandingOption from './LandingOption';\nimport { getQueryParam } from '../../utils/urlUtils';\nimport FormErrors from 'shared/components/FormErrors';\n\nclass LandingPage extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.state = {\n showErrors: false\n };\n\n const optEnabled = props.config.one_time_payment_enabled;\n const otpLinkEnabled = props.config.otp_landing_link_enabled;\n this.optEnabled = optEnabled && otpLinkEnabled;\n this.registrationEnabled = props.config.user_registration_enabled;\n this.clearErrors = this.clearErrors.bind(this);\n }\n\n componentWillMount() {\n const showInviteError = getQueryParam(\"show_invite_error\");\n if (showInviteError) {\n this.setState({showErrors: true});\n }\n }\n\n componentWillReceiveProps(nextProps) {\n this.setState({showErrors: false});\n }\n\n clearErrors() {\n this.setState({showErrors: false});\n }\n\n loginWrapperClass() {\n let offsetClass;\n let optionsCount = 1;\n\n if (this.optEnabled) optionsCount++;\n if (this.registrationEnabled) optionsCount++;\n\n if (optionsCount == 1) offsetClass = 'offset-md-4';\n else if (optionsCount == 2) offsetClass = 'offset-md-2';\n\n return offsetClass;\n }\n\n loginOption() {\n return (\n \n );\n }\n\n registrationOption() {\n if (this.registrationEnabled) {\n return (\n \n );\n }\n }\n\n otpOption() {\n if (this.optEnabled) {\n return (\n \n );\n }\n }\n\n logoLink() {\n const imgStyle = {\n width: `${this.props.content.landing_logo_width}`\n };\n if (this.props.content.logo_image_url) {\n const content = this.props.content;\n const logoUrl = content.landing_logo_image_url || content.logo_image_url;\n return (\n \n \n \n );\n }\n }\n\n header() {\n return (\n
    \n {this.logoLink()}\n

    {this.props.content.portal_title}

    \n
    \n );\n }\n\n landingOptions() {\n return (\n
    \n {this.loginOption()}\n {this.registrationOption()}\n {this.otpOption()}\n
    \n );\n }\n\n landingNotice() {\n if (this.props.content.landing_page_notice) {\n return (\n \n );\n }\n }\n\n inviteErrorMessage() {\n if (this.state.showErrors) {\n const errors = [this.props.i18n.portal_mailer.invite.expired_message];\n return (\n \n );\n }\n }\n\n render() {\n return (\n
    \n {this.inviteErrorMessage()}\n {this.header()}\n {this.landingOptions()}\n {this.landingNotice()}\n
    \n );\n }\n}\n\nLandingPage.propTypes = {\n i18n: PropTypes.object,\n config: PropTypes.object,\n clearErrors: PropTypes.func,\n content: PropTypes.object\n};\n\nexport default LandingPage;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Link } from 'react-router';\nimport ResetMessage from './ResetMessage';\n\nclass ForgotPasswordPage extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.state = {\n submitDisabled: true\n };\n\n this.handleChange = this.handleChange.bind(this);\n this.handleSubmit = this.handleSubmit.bind(this);\n }\n\n componentWillMount() {\n this.props.clearPasswordReset();\n }\n\n resetFooter() {\n return (\n
    \n \n Sign In\n \n
    \n );\n }\n\n handleSubmit($event) {\n $event.preventDefault();\n const email = this.refs.email.value;\n this.props.reset(email);\n }\n\n handleChange() {\n if (this.refs.email.value.length > 0) {\n this.setState({submitDisabled: false});\n }\n else {\n this.setState({submitDisabled: true});\n }\n }\n\n resetForm() {\n return (\n \n\n

    {this.props.content.portal_title}

    \n

    {this.props.i18n.portal.password_reset.reset_password}

    \n
    \n
    \n \n \n
    \n
    \n\n {this.resetFooter()}\n \n );\n }\n\n resetMessage() {\n return (\n \n );\n }\n\n render() {\n return (\n
    \n
    \n
    \n {this.props.resetPassword ? this.resetMessage() : this.resetForm()}\n
    \n
    \n
    \n );\n }\n}\n\nForgotPasswordPage.propTypes = {\n i18n: PropTypes.object,\n config: PropTypes.object,\n content: PropTypes.object,\n reset: PropTypes.func,\n resetPassword: PropTypes.bool,\n clearPasswordReset: PropTypes.func\n};\n\nexport default ForgotPasswordPage;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Link } from 'react-router';\nimport FormErrors from 'shared/components/FormErrors';\n\nclass LoginPage extends React.Component {\n\n constructor(props) {\n super(props);\n this.handleSubmit = this.handleSubmit.bind(this);\n }\n\n componentWillMount() {\n this.props.clearLoginErrors();\n }\n\n componentWillReceiveProps(nextProps) {\n this.handleLogin(nextProps);\n }\n\n handleLogin(nextProps) {\n if (!this.props.currentUser && nextProps.currentUser) {\n if (nextProps.currentUser.portal_payers.length > 1) {\n this.props.toggleSwitchAccountModal();\n }\n }\n }\n\n rememberMe() {\n if (this.props.config.remember_me_enabled) {\n return (\n \n );\n }\n }\n\n loginFooter() {\n return (\n
    \n {this.rememberMe()}\n \n {this.props.i18n.portal.login.forgot_password}\n \n
    \n );\n }\n\n handleSubmit($event) {\n $event.preventDefault();\n const email = this.refs.email.value;\n const password = this.refs.password.value;\n this.props.clearLoginErrors();\n this.props.login(email, password);\n }\n\n loginForm() {\n return (\n \n
    \n

    \n {this.props.i18n.portal.ada_headers.sign_in_form}\n

    \n
    \n \n \n \n \n \n
    \n
    \n\n {this.loginFooter()}\n \n );\n }\n\n render() {\n return (\n
    \n \n
    \n
    \n

    {this.props.content.portal_title}

    \n

    {this.props.content.sign_in_label}

    \n {this.loginForm()}\n
    \n
    \n
    \n );\n }\n}\n\nLoginPage.propTypes = {\n i18n: PropTypes.object,\n config: PropTypes.object,\n content: PropTypes.object,\n errors: PropTypes.object,\n login: PropTypes.func,\n clearLoginErrors: PropTypes.func,\n currentUser: PropTypes.object,\n toggleSwitchAccountModal: PropTypes.func\n};\n\nexport default LoginPage;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Link } from 'react-router';\nimport PasswordStrength from '../common/PasswordStrength';\nimport FormErrors from 'shared/components/FormErrors';\nimport { getQueryParam } from '../../utils/urlUtils';\n\nclass PasswordResetPage extends React.Component {\n\n constructor(props) {\n super(props);\n\n const user = {\n password: '',\n password_confirmation: ''\n };\n\n this.state = {\n isValid: false,\n user\n };\n\n this.handleSubmit = this.handleSubmit.bind(this);\n this.handleFieldChange = this.handleFieldChange.bind(this);\n this.handlePasswordChange = this.handlePasswordChange.bind(this);\n }\n\n componentWillMount() {\n this.props.clearPasswordReset();\n this.props.clearPasswordResetErrors();\n }\n\n handleSubmit($event) {\n $event.preventDefault();\n const token = this.getPasswordResetToken();\n this.props.clearPasswordResetErrors();\n this.props.updatePassword(token, this.state.user);\n }\n\n getPasswordResetToken() {\n if (this.props.currentUser) return this.props.currentUser.password_reset_token;\n else return getQueryParam(\"password_reset_token\");\n }\n\n handlePasswordChange(state) {\n this.setState({passwordMessage: state.message, passwordValid: state.isValid});\n this.setPasswordReset({password: state.password});\n }\n\n handleFieldChange(e) {\n this.setPasswordReset({\n [e.currentTarget.name]: e.currentTarget.value\n });\n }\n\n setPasswordReset(user) {\n this.setState({\n user: {\n ...this.state.user,\n ...user\n }\n }, this.validateForm);\n }\n\n validateForm() {\n const user = this.state.user;\n const isValid = this.state.passwordValid && user.password == user.password_confirmation;\n this.setState({isValid});\n }\n\n passwordField() {\n return (\n
    \n \n
    \n );\n }\n\n passwordMessageClass() {\n return this.state.passwordMessage ? 'help-block' : 'hidden';\n }\n\n confirmPasswordField() {\n return (\n
    \n \n
    \n );\n }\n\n actions() {\n return (\n
    \n \n
    \n );\n }\n\n passwordForm() {\n if (!this.props.resetPassword) {\n return (\n \n
    \n {this.passwordField()}\n {this.confirmPasswordField()}\n {this.actions()}\n
    \n \n );\n }\n }\n\n formErrors() {\n return (\n \n );\n }\n\n successMessage() {\n if (this.props.resetPassword) {\n return (\n
    \n

    \n {this.props.i18n.portal.password_reset.password_updated}\n

    \n \n {this.props.content.sign_in_label}\n \n
    \n );\n }\n }\n\n passwordChangeRequiredMessage() {\n const currentUser = this.props.currentUser;\n if (!this.props.resetPassword && currentUser && currentUser.password_change_required) {\n return (\n
    \n {this.props.i18n.portal.password_reset.reset_required}\n
    \n );\n }\n }\n\n heading() {\n return (\n
    \n

    {this.props.content.portal_title}

    \n

    \n {this.props.i18n.portal.password_reset.reset_password}\n

    \n
    \n );\n }\n\n render() {\n return (\n
    \n {this.formErrors()}\n
    \n
    \n {this.heading()}\n {this.passwordChangeRequiredMessage()}\n {this.passwordForm()}\n {this.successMessage()}\n
    \n
    \n
    \n );\n }\n}\n\nPasswordResetPage.propTypes = {\n i18n: PropTypes.object,\n config: PropTypes.object,\n currentUser: PropTypes.object,\n content: PropTypes.object,\n errors: PropTypes.object,\n reset: PropTypes.func,\n resetPassword: PropTypes.bool,\n clearPasswordReset: PropTypes.func,\n clearPasswordResetErrors: PropTypes.func,\n updatePassword: PropTypes.func\n};\n\nexport default PasswordResetPage;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Link } from 'react-router';\n\nclass ResetMessage extends React.Component {\n\n resetMessageFormFooter() {\n return (\n
    \n \n {this.props.content.i18n.portal.password_reset.return_to_sign_in}\n \n
    \n );\n }\n\n render() {\n return (\n
    \n

    {this.props.content.i18n.common.thanks}

    \n

    {this.props.content.i18n.portal.password_reset.check_email}

    \n {this.resetMessageFormFooter()}\n
    \n );\n }\n}\n\nResetMessage.propTypes = {\n i18n: PropTypes.object,\n config: PropTypes.object,\n content: PropTypes.object\n};\n\nexport default ResetMessage;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport ReactMarkdown from 'react-markdown';\n\nclass HelpPage extends React.Component { // ---\n\n render() {\n return (\n
    \n
    \n

    \n {this.props.content.help_section_label}\n

    \n
    \n
    \n \n
    \n
    \n
    \n
    \n );\n }\n}\n\nHelpPage.propTypes = {\n content: PropTypes.object\n};\n\nexport default HelpPage;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Link } from 'react-router';\n\nclass MenuItem extends React.Component {\n containerClasses() {\n const classes = ['nav-item'];\n if (this.props.active) classes.push('active');\n return classes.join(' ');\n }\n\n render() {\n return (\n
  • \n \n {this.props.linkLabel}\n \n
    \n {this.props.linkDescription}\n
    \n
  • \n );\n }\n}\n\nMenuItem.propTypes = {\n active: PropTypes.bool,\n linkTo: PropTypes.string.isRequired,\n linkLabel: PropTypes.string.isRequired,\n linkDescription: PropTypes.string.isRequired,\n itemClass: PropTypes.string,\n onClick: PropTypes.func\n};\n\nexport default MenuItem;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport MenuItem from './MenuItem';\nimport UserDropdown from '../common/UserDropdown';\nimport BrandLink from '../common/BrandLink';\nimport NavbarToggle from '../common/NavbarToggle';\nimport SwitchAccountModal from './SwitchAccountModal';\n\nclass PayerLayout extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.logout = this.logout.bind(this);\n this.exit = this.exit.bind(this);\n this.toggleMenu = this.toggleMenu.bind(this);\n }\n\n logout(logoutUrl = this.props.config.logout_url) {\n const redirect = logoutUrl ? function() { window.location = logoutUrl; } : null;\n this.props.logout(redirect);\n }\n\n exit() {\n window.location = this.props.config.exit_url;\n }\n\n userDropdown(props = {}) {\n return (\n \n );\n }\n\n header() {\n return (\n
    \n {this.userDropdown()}\n
    \n );\n }\n\n navbar() {\n return (\n \n );\n }\n\n brandLink() {\n return (\n \n );\n }\n\n isCurrentPath(path) {\n return this.context.router.location.pathname.endsWith(path);\n }\n\n dashboardLinkItem() {\n const path = \"/payer\";\n const active = this.isCurrentPath(path);\n return (\n \n );\n }\n\n autopayLinkItem() {\n if (this.props.config.bill_recurrence_enabled && this.props.currentUser.portal_user.has_bill_recurrence_enabled_accounts) {\n const path = \"/payer/autopay\";\n const active = this.isCurrentPath(path);\n return (\n \n );\n }\n }\n\n settingsLinkItem() {\n if (this.props.abilities.manage_pay_method) {\n const path = \"/payer/settings\";\n const active = this.isCurrentPath(path);\n return (\n \n );\n }\n }\n\n accountLinkItem() {\n const enabled = this.props.config.account_tab_enabled;\n const operator = this.props.currentUser.portal_user.portal_operator;\n if (enabled && !operator) {\n const path = \"/payer/account\";\n const active = this.isCurrentPath(path);\n return (\n \n );\n }\n }\n\n helpLinkItem() {\n const enabled = this.props.config.help_section_enabled;\n if (enabled) {\n const path = \"/payer/help\";\n const active = this.isCurrentPath(path);\n return (\n \n );\n }\n }\n\n getDocumentHeight() {\n const d = document.documentElement;\n const b = document.body;\n let e = b;\n if (d.offsetHeight) e = d;\n return Math.max(e.scrollHeight, e.offsetHeight);\n }\n\n toggleMenu() {\n const menu = $('#payer-sidenav');\n const height = this.getDocumentHeight();\n\n if (menu.hasClass('open')) {\n this.closeMenu();\n }\n else {\n menu.css('height', `${height}px`);\n menu.addClass('open');\n window.scrollTo(0, 0);\n }\n }\n\n closeMenu() {\n const menu = $('#payer-sidenav');\n menu.removeClass('open');\n menu.css('height', '100%');\n }\n\n menu() {\n return (\n \n );\n }\n\n skipToMainButton() {\n return (\n \n {this.props.i18n.common.skip_to_main}\n \n );\n }\n\n switchAccountModal() {\n if (this.hasMultipleDivisions()) {\n return (\n \n );\n }\n }\n\n hasMultipleDivisions() {\n return this.props.currentUser.portal_user.portal_divisions.length > 1;\n }\n\n layout() {\n return (\n
    \n
    \n {this.skipToMainButton()}\n {this.header()}\n {this.navbar()}\n
    \n
    \n {this.menu()}\n
    \n {React.cloneElement(this.props.children.props.children, this.props)}\n
    \n
    \n {this.switchAccountModal()}\n
    \n );\n }\n\n render() {\n return this.props.currentUser ? this.layout() : null;\n }\n}\n\nPayerLayout.contextTypes = {\n router: PropTypes.object\n};\n\nPayerLayout.propTypes = {\n logout: PropTypes.func,\n abilities: PropTypes.object,\n currentUser: PropTypes.object,\n children: PropTypes.node,\n i18n: PropTypes.object,\n config: PropTypes.object,\n content: PropTypes.object,\n app: PropTypes.object,\n toggleSwitchAccountModal: PropTypes.func\n};\n\nexport default PayerLayout;\n","import React, { Component } from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Link } from 'react-router';\nimport Modal from '../../components/common/Modal';\n\nexport default class SwitchAccountModal extends Component {\n\n render() {\n return (\n \n \n \n );\n }\n}\n\nSwitchAccountModal.propTypes = {\n isOpen: PropTypes.bool.isRequired,\n toggle: PropTypes.func.isRequired,\n title: PropTypes.string.isRequired,\n divisions: PropTypes.array.isRequired\n};\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport RecurrenceForm from '../../common/RecurrenceForm';\n\nclass BillRecurrenceForm extends React.Component {\n\n render() {\n return (\n \n );\n }\n}\n\nBillRecurrenceForm.propTypes = RecurrenceForm.propTypes;\n\nexport default BillRecurrenceForm;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Button from '../../common/Button';\nimport RecurrenceSettings from '../../common/RecurrenceSettings';\nimport AccountsTable from '../../common/AccountsTable';\nimport AccountsModal from '../../common/AccountsModal';\nimport Spinner from '../../common/Spinner';\nimport Modal from '../../common/Modal';\n\nclass BillRecurrenceOverview extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.state = {\n showSettings: false,\n isAccountsModalOpen: false,\n isRemoveModalOpen: false\n };\n\n this.toggleSettings = this.toggleSettings.bind(this);\n this.toggleAccountsModal = this.toggleAccountsModal.bind(this);\n this.createRecurrenceAccount = this.createRecurrenceAccount.bind(this);\n this.toggleRemoveModal = this.toggleRemoveModal.bind(this);\n this.removeSelectedAccount = this.removeSelectedAccount.bind(this);\n this.toggleSelectedAccount = this.toggleSelectedAccount.bind(this);\n this.isAccountSelected = this.isAccountSelected.bind(this);\n this.filterAccounts = this.filterAccounts.bind(this);\n this.pageAccounts = this.pageAccounts.bind(this);\n this.sortAccounts = this.sortAccounts.bind(this);\n }\n\n componentWillMount() {\n this.props.clearRecurrenceAccounts();\n this.props.fetchRecurrenceAccounts(this.props.recurrence);\n }\n\n componentWillReceiveProps(nextProps) {\n this.checkForCreatedRecurrenceAccount(nextProps);\n this.checkForDeletedRecurrenceAccount(nextProps);\n }\n\n checkForCreatedRecurrenceAccount(nextProps) {\n if (nextProps.createdRecurrenceAccount) {\n this.props.clearCreatedRecurrenceAccount();\n this.props.fetchRecurrenceAccounts(this.props.recurrence);\n }\n }\n\n checkForDeletedRecurrenceAccount(nextProps) {\n if (nextProps.deletedRecurrenceAccount) {\n this.props.clearDeletedRecurrenceAccount();\n this.props.fetchRecurrenceAccounts(this.props.recurrence);\n }\n }\n\n header() {\n return (\n
    \n \n {this.props.recurrence.pay_method.details}\n \n
    \n );\n }\n\n actions() {\n return (\n
    \n {this.returnLink()}\n {this.settingsLink()}\n
    \n );\n }\n\n returnLink() {\n return (\n \n {this.props.i18n.portal.payer.autopay.return_to_list}\n \n );\n }\n\n settingsLink() {\n const linkText = this.state.showSettings ? 'hide_settings' : 'view_settings';\n return (\n \n {this.props.i18n.portal.payer.autopay[linkText]}\n \n );\n }\n\n toggleSettings() {\n this.setState({\n showSettings: !this.state.showSettings\n });\n }\n\n accountsTable() {\n if (this.props.recurrenceAccounts.data) {\n if (!this.state.showSettings) {\n return (\n
    \n \n
    \n );\n }\n }\n else {\n return ;\n }\n }\n\n //\n filterAccounts(query) {\n this.setState({ accountsQuery: query });\n this.props.fetchRecurrenceAccounts(this.props.recurrence, {\n query,\n sort_order: this.state.accountsSortOrder\n });\n }\n\n pageAccounts(page) {\n this.props.fetchRecurrenceAccounts(this.props.recurrence, {\n page,\n query: this.state.accountsQuery,\n sort_order: this.state.accountsSortOrder\n });\n }\n\n sortAccounts(sortOrder) {\n this.setState({ accountsSortOrder: sortOrder });\n this.props.fetchRecurrenceAccounts(this.props.recurrence, {\n sort_order: sortOrder,\n query: this.state.accountsQuery\n });\n }\n\n toggleSelectedAccount(account = null) {\n const selectedAccount = this.isAccountSelected(account) ? null : account;\n this.setState({ selectedAccount });\n }\n\n isAccountSelected(account) {\n if (account && this.state.selectedAccount) {\n return account.id == this.state.selectedAccount.id;\n }\n }\n\n accountsActions() {\n return (\n
    \n {this.addAccountButton()}{' '}\n {this.removeAccountButton()}\n
    \n );\n }\n\n addAccountButton() {\n return (\n \n );\n }\n\n removeAccountButton() {\n if (this.state.selectedAccount) {\n return (\n \n );\n }\n }\n\n toggleAccountsModal() {\n this.setState({ isAccountsModalOpen: !this.state.isAccountsModalOpen });\n }\n\n accountsModal() {\n const fetchParams = { available_for_recurrence: true };\n\n return (\n \n );\n }\n\n createRecurrenceAccount(portalAccount) {\n this.toggleAccountsModal();\n this.props.createRecurrenceAccount(this.props.recurrence, portalAccount);\n }\n //\n\n recurrenceSettings() {\n if (this.state.showSettings) {\n return (\n \n );\n }\n }\n\n removeAccountModal() {\n if (this.state.selectedAccount) {\n return (\n \n );\n }\n }\n\n toggleRemoveModal() {\n this.setState({ isRemoveModalOpen: !this.state.isRemoveModalOpen });\n }\n\n removeSelectedAccount() {\n this.toggleRemoveModal();\n this.toggleSelectedAccount();\n this.props.deleteRecurrenceAccount(this.props.recurrence, this.state.selectedAccount);\n }\n\n render() {\n return (\n
    \n {this.header()}\n {this.actions()}\n {this.accountsTable()}\n {this.recurrenceSettings()}\n {this.accountsModal()}\n {this.removeAccountModal()}\n
    \n );\n }\n}\n\nBillRecurrenceOverview.propTypes = {\n recurrence: PropTypes.object.isRequired,\n recurrenceAccounts: PropTypes.object.isRequired,\n clearRecurrenceAccounts: PropTypes.func.isRequired,\n fetchRecurrenceAccounts: PropTypes.func.isRequired,\n createRecurrenceAccount: PropTypes.func.isRequired,\n deleteRecurrenceAccount: PropTypes.func.isRequired,\n clearCreatedRecurrenceAccount: PropTypes.func.isRequired,\n clearDeletedRecurrenceAccount: PropTypes.func.isRequired,\n fetchPortalAccounts: PropTypes.func.isRequired,\n clearPortalAccounts: PropTypes.func.isRequired,\n portalAccounts: PropTypes.object.isRequired,\n onReturn: PropTypes.func.isRequired,\n onEdit: PropTypes.func.isRequired,\n onRemove: PropTypes.func.isRequired,\n content: PropTypes.object.isRequired,\n config: PropTypes.object.isRequired,\n i18n: PropTypes.object.isRequired\n};\n\nexport default BillRecurrenceOverview;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Link, hashHistory } from 'react-router';\nimport BillRecurrenceForm from './BillRecurrenceForm';\nimport BillRecurrencesTable from './BillRecurrencesTable';\nimport BillRecurrenceOverview from './BillRecurrenceOverview';\nimport Spinner from '../../common/Spinner';\nimport Button from '../../common/Button';\nimport Modal from '../../common/Modal';\n\nclass BillRecurrencePage extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.state = {\n showForm: false,\n allowFormCancel: false,\n selectedRecurrence: null,\n isRemoveModalOpen: false,\n isSubmitDisabled: false\n };\n\n this.selectRecurrence = this.selectRecurrence.bind(this);\n this.filterRecurrences = this.filterRecurrences.bind(this);\n this.pageRecurrences = this.pageRecurrences.bind(this);\n this.sortRecurrences = this.sortRecurrences.bind(this);\n this.toggleForm = this.toggleForm.bind(this);\n this.toggleSelectedRecurrence = this.toggleSelectedRecurrence.bind(this);\n this.editRecurrence = this.editRecurrence.bind(this);\n this.toggleRemoveModal = this.toggleRemoveModal.bind(this);\n this.removeSelectedRecurrence = this.removeSelectedRecurrence.bind(this);\n this.returnToBillRecurrencesList = this.returnToBillRecurrencesList.bind(this);\n this.saveRecurrence = this.saveRecurrence.bind(this);\n }\n\n componentWillMount() {\n this.authorize();\n this.props.clearBillRecurrences();\n this.props.fetchBillRecurrences();\n this.props.fetchPayMethods({\n bill_recurrence_allowed: true\n });\n }\n\n componentWillReceiveProps(nextProps) {\n this.checkForRecurrences(nextProps);\n this.checkForSavedRecurrence(nextProps);\n this.checkForDeletedRecurrence(nextProps);\n }\n\n authorize() {\n const enabled = this.props.config.bill_recurrence_enabled;\n const hasAccounts = this.props.currentUser.portal_user.has_bill_recurrence_enabled_accounts;\n const autopayEnabled = enabled && hasAccounts;\n if (!autopayEnabled) {\n hashHistory.push('/payer');\n }\n }\n\n checkForRecurrences(nextProps) {\n const data = nextProps.billRecurrences.data;\n const hasRecurrences = data ? (data.total_recurrences > 0) : false;\n const initialScreen = !this.state.selectedRecurrence && !this.state.showForm;\n if (initialScreen && data && !hasRecurrences && !this.state.recurrencesQuery) {\n this.setState({\n showForm: true,\n allowFormCancel: false,\n isSubmitDisabled: false\n });\n }\n }\n\n checkForSavedRecurrence(nextProps) {\n if (nextProps.savedBillRecurrence) {\n this.setState({\n showForm: false,\n selectedRecurrence: nextProps.savedBillRecurrence,\n isSubmitDisabled: false\n });\n this.props.fetchBillRecurrences();\n this.props.clearSavedBillRecurrence();\n }\n }\n\n checkForDeletedRecurrence(nextProps) {\n if (nextProps.deletedBillRecurrence) {\n this.setState({\n isRemoveModalOpen: false,\n selectedRecurrence: null,\n isSubmitDisabled: false\n });\n this.props.fetchBillRecurrences();\n this.props.clearDeletedBillRecurrence();\n }\n }\n\n recurrenceForm() {\n if (this.state.showForm) {\n return (\n \n );\n }\n }\n\n saveRecurrence(recurrence) {\n this.setState({ isSubmitDisabled: true });\n this.props.saveBillRecurrence(recurrence);\n }\n\n toggleForm() {\n this.setState({\n showForm: !this.state.showForm,\n allowFormCancel: true\n });\n }\n\n recurrencesTable() {\n if (!this.state.showForm && !this.state.selectedRecurrence) {\n return (\n \n );\n }\n }\n\n recurrenceActions() {\n return (\n \n );\n }\n\n filterRecurrences(query) {\n this.setState({ recurrencesQuery: query });\n this.props.fetchBillRecurrences({\n query,\n sort_order: this.state.recurrencesSortOrder\n });\n }\n\n pageRecurrences(page) {\n this.props.fetchBillRecurrences({\n page,\n query: this.state.recurrencesQuery,\n sort_order: this.state.recurrencesSortOrder\n });\n }\n\n sortRecurrences(sortOrder) {\n this.setState({ recurrencesSortOrder: sortOrder });\n this.props.fetchBillRecurrences({\n sort_order: sortOrder,\n query: this.state.recurrencesQuery\n });\n }\n\n selectRecurrence(recurrence) {\n this.setState({ selectedRecurrence: recurrence });\n }\n\n recurrenceOverview() {\n if (this.state.selectedRecurrence && !this.state.showForm) {\n return (\n \n );\n }\n }\n\n returnToBillRecurrencesList() {\n this.toggleSelectedRecurrence();\n this.props.fetchBillRecurrences();\n }\n\n editRecurrence() {\n this.setState({ showForm: true, allowFormCancel: true });\n }\n\n toggleRemoveModal() {\n this.setState({ isRemoveModalOpen: !this.state.isRemoveModalOpen });\n }\n\n toggleSelectedRecurrence() {\n this.setState({ selectedRecurrence: null });\n }\n\n loading() {\n if (!this.props.billRecurrences.data) {\n return ;\n }\n }\n\n removeRecurrenceModal() {\n if (this.state.selectedRecurrence) {\n return (\n \n );\n }\n }\n\n removeSelectedRecurrence() {\n this.props.deleteBillRecurrence(this.state.selectedRecurrence);\n }\n\n render() {\n return (\n
    \n
    \n
    \n

    \n {this.props.i18n.portal.payer.autopay.manage_autopay}\n

    \n
    \n
    \n {this.loading()}\n {this.recurrenceForm()}\n {this.recurrencesTable()}\n {this.recurrenceOverview()}\n
    \n
    \n
    \n
    \n {this.removeRecurrenceModal()}\n
    \n );\n }\n}\n\nBillRecurrencePage.propTypes = {\n i18n: PropTypes.object,\n config: PropTypes.object,\n content: PropTypes.object,\n payMethods: PropTypes.array,\n billRecurrences: PropTypes.object,\n recurrenceAccounts: PropTypes.object,\n fetchPayMethods: PropTypes.func,\n fetchBillRecurrences: PropTypes.func,\n saveBillRecurrence: PropTypes.func,\n deleteBillRecurrence: PropTypes.func,\n clearBillRecurrences: PropTypes.func,\n clearDeletedBillRecurrence: PropTypes.func,\n clearSavedBillRecurrence: PropTypes.func,\n createdRecurrenceAccount: PropTypes.object,\n clearRecurrenceAccounts: PropTypes.func,\n fetchRecurrenceAccounts: PropTypes.func,\n createRecurrenceAccount: PropTypes.func,\n deleteRecurrenceAccount: PropTypes.func,\n deletedRecurrenceAccount: PropTypes.object,\n clearCreatedRecurrenceAccount: PropTypes.func,\n clearDeletedRecurrenceAccount: PropTypes.func,\n fetchPortalAccounts: PropTypes.func,\n clearPortalAccounts: PropTypes.func,\n portalAccounts: PropTypes.object,\n currentUser: PropTypes.object\n};\n\nexport default BillRecurrencePage;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport Table from '../../common/Table';\n\nclass BillRecurrencesTable extends React.Component {\n\n columnMap() {\n return {\n 'pay_methods.id': 'pay_method.details',\n 'total_accounts': 'total_accounts'\n };\n }\n\n columnMetadata() {\n return [\n {\n columnName: \"pay_method.details\",\n displayName: this.props.content.pay_method_label\n },\n {\n columnName: \"total_accounts\",\n displayName: \"Total Accounts\",\n sortable: false\n }\n ];\n }\n\n render() {\n if (this.props.data) {\n return (\n \n );\n }\n else {\n return null;\n }\n }\n}\n\nBillRecurrencesTable.propTypes = {\n data: PropTypes.object,\n results: PropTypes.array,\n i18n: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired,\n showFilter: PropTypes.bool,\n columnMetadata: PropTypes.array,\n filterPlaceholder: PropTypes.string,\n actions: PropTypes.element,\n showActions: PropTypes.bool,\n onRowClick: PropTypes.func,\n isRowSelected: PropTypes.func,\n useExternal: PropTypes.bool,\n externalSetFilter: PropTypes.func,\n externalSetPage: PropTypes.func,\n externalChangeSort: PropTypes.func\n};\n\nexport default BillRecurrencesTable;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { CardElement } from '@stripe/react-stripe-js';\n\nconst CARD_ELEMENT_OPTIONS = {\n style: {\n base: {\n color: \"#32325d\",\n fontFamily: '\"Helvetica Neue\", \"Helvetica, sans-serif\"',\n fontSmoothing: \"antialiased\",\n fontSize: \"16px\",\n \"::placeholder\": {\n color: \"#aab7c4\",\n },\n },\n invalid: {\n color: \"#fa755a\",\n iconColor: \"#fa755a\",\n },\n },\n};\n\nfunction CardSection(props) {\n const { onError, clearErrors } = props;\n\n const onChange = (event) => {\n if (event.error) {\n onError(event.error.message);\n } else {\n clearErrors();\n }\n };\n\n return (\n
    \n \n \n
    \n );\n}\n\nCardSection.propTypes = {\n onError: PropTypes.func,\n clearErrors: PropTypes.func,\n};\n\nexport default CardSection;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport CardSection from './CardSection';\nimport { CardElement, ElementsConsumer } from '@stripe/react-stripe-js';\n\nclass StripeCheckoutForm extends React.Component {\n handleSubmit = async (onSuccess) => {\n const {\n stripeIntent,\n payMethod,\n stripe,\n elements,\n onError\n } = this.props;\n\n if (!stripe || !elements) {\n // Stripe.js has not loaded yet. Make sure to disable\n // form submission until Stripe.js has loaded.\n return;\n }\n\n const result = await stripe.confirmCardSetup(stripeIntent, {\n payment_method: {\n card: elements.getElement(CardElement),\n }\n });\n\n if (result.error) {\n // Dispaly result.error.message\n onError(result.error.message);\n } else {\n // Display success\n payMethod.card_token = result.setupIntent.payment_method;\n onSuccess(payMethod);\n }\n };\n\n render() {\n return (\n
    \n \n
    \n );\n }\n}\n\nconst StripeForm = React.forwardRef((props, ref) => {\n return (\n \n {({ elements, stripe }) => (\n \n )}\n \n );\n});\n\nStripeCheckoutForm.propTypes = {\n payMethod: PropTypes.object.isRequired,\n stripeIntent: PropTypes.string.isRequired,\n stripe: PropTypes.object,\n elements: PropTypes.object,\n onError: PropTypes.func,\n clearErrors: PropTypes.func,\n};\n\nexport default StripeForm;\n","import * as types from './types';\n\n// Shared actions\nexport function resetScreen() {\n return {\n type: types.RESET_SCREEN\n };\n}\n\nexport function clearErrors() {\n return {\n type: types.CLEAR_ERRORS\n };\n}\n\nexport function setCurrentStep(step) {\n return {\n type: types.SET_CURRENT_STEP,\n payload: step\n };\n}\n\nexport function setAccount(account) {\n return {\n type: types.SET_ACCOUNT,\n payload: account\n };\n}\n\nexport function setPayment(payment) {\n return {\n type: types.SET_PAYMENT,\n payload: payment\n };\n}\n\nexport function toggleSwitchAccountModal() {\n return {\n type: types.TOGGLE_SWITCH_ACCOUNT_MODAL\n };\n}\n\nexport function setConfigPending() {\n return {\n type: types.FETCH_CONFIG_PENDING\n };\n}\n\nexport function createStripeIntent(account) {\n return function(dispatch) {\n dispatch({\n type: types.CREATE_STRIPE_INTENT,\n payload: PayMethodAPI.createStripeIntent(account)\n }).catch((error) => {});\n };\n}\n\n//\n// TODO: Move to appropriate screen/resource actions\n//\nimport ConfigAPI from '../api/configAPI';\nimport UserSessionAPI from '../api/userSessionAPI';\nimport UserAPI from '../api/userAPI';\nimport ResetPasswordAPI from '../api/resetPasswordAPI';\nimport BillAPI from '../api/billAPI';\nimport ReceivableAccountAPI from '../api/receivableAccountAPI';\nimport PaymentAPI from '../api/paymentAPI';\nimport OneTimePaymentAPI from '../api/oneTimePaymentAPI';\nimport PayMethodAPI from '../api/payMethodAPI';\nimport BillRecurrenceAPI from '../api/billRecurrenceAPI';\nimport RecurrenceAccountAPI from '../api/recurrenceAccountAPI';\nimport PortalAccountAPI from '../api/portalAccountAPI';\nimport PortalAgreementAPI from '../api/portalAgreementAPI';\nimport AccountRecurrenceAPI from '../api/accountRecurrenceAPI';\nimport BillDocumentAPI from '../api/billDocumentAPI';\nimport ExternalBillAPI from '../api/externalBillAPI';\nimport ExternalPaymentAPI from '../api/externalPaymentAPI';\nimport PayMethodAssignmentAPI from '../api/payMethodAssignmentAPI';\nimport PortalDocumentAPI from '../api/portalDocumentAPI';\nimport EmailConfirmationAPI from '../api/emailConfirmationAPI';\n\nexport function fetchConfig() {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_CONFIG,\n payload: ConfigAPI.fetchConfig()\n });\n };\n}\n\nexport function login(email, password) {\n return function(dispatch) {\n dispatch({\n type: types.LOGIN,\n payload: UserSessionAPI.create(email, password)\n }).catch((error) => {});\n };\n}\n\nexport function updateUser(user, password = null, email = null) {\n return function(dispatch) {\n dispatch({\n type: types.UPDATE_USER,\n payload: UserAPI.updateUser(user, password, email)\n }).catch((error) => {});\n };\n}\n\nexport function reset(email) {\n return function(dispatch) {\n dispatch({\n type: types.RESET_PASSWORD,\n payload: ResetPasswordAPI.create(email)\n }).catch((error) => {});\n };\n}\n\nexport function updatePassword(token, user) {\n return function(dispatch) {\n dispatch({\n type: types.UPDATE_PASSWORD,\n payload: ResetPasswordAPI.update(token, user)\n }).catch((error) => {});\n };\n}\n\nexport function sendEmailConfirmation(emailAddress, paymentID) {\n return function(dispatch) {\n dispatch({\n type: types.SEND_EMAIL_CONFIRMATION,\n payload: EmailConfirmationAPI.create(emailAddress, paymentID)\n }).catch((error) => {});\n };\n}\n\nexport function clearPasswordResetErrors() {\n return {\n type: types.CLEAR_ERRORS,\n payload: 'passwordReset'\n };\n}\n\nexport function clearLoginErrors() {\n return {\n type: types.CLEAR_ERRORS,\n payload: 'login'\n };\n}\n\nexport function clearUserErrors() {\n return {\n type: types.CLEAR_ERRORS,\n payload: 'user'\n };\n}\n\nexport function setUserErrors(errors) {\n return {\n type: types.SET_ERRORS,\n payload: {\n key: 'user',\n errors\n }\n };\n}\n\nexport function setPayMethodErrors(errors) {\n return {\n type: types.SET_ERRORS,\n payload: {\n key: 'pay_method',\n errors\n }\n };\n}\n\nexport function setPaymentErrors(errors) {\n return {\n type: types.SET_ERRORS,\n payload: {\n key: 'payment',\n errors\n }\n };\n}\n\nexport function setAccountsErrors(errors) {\n return {\n type: types.SET_ERRORS,\n payload: {\n key: 'accounts',\n errors\n }\n };\n}\n\nexport function clearAccountsErrors() {\n return {\n type: types.CLEAR_ERRORS,\n payload: 'accounts'\n };\n}\n\nexport function setOneTimePaymentErrors(errors) {\n return {\n type: types.SET_ERRORS,\n payload: {\n key: 'one_time_payment',\n errors\n }\n };\n}\n\nexport function clearOneTimePaymentErrors() {\n return {\n type: types.CLEAR_ERRORS,\n payload: 'one_time_payment'\n };\n}\n\nexport function logout(redirect) {\n return function(dispatch) {\n dispatch({type: types.LOGOUT_PENDING});\n UserSessionAPI.destroy()\n .then((response) => {\n if (redirect) { redirect(); }\n else {\n dispatch({\n type: types.LOGOUT_FULFILLED,\n payload: response\n });\n }\n })\n .catch((error) => {\n dispatch({\n type: types.LOGOUT_REJECTED,\n payload: error\n });\n });\n };\n}\n\nexport function checkSessionTimeout(redirect) {\n return function(dispatch) {\n dispatch({type: types.SESSION_TIMEOUT_PENDING});\n UserSessionAPI.checkTimeout()\n .then((response) => {\n dispatch({\n type: types.SESSION_TIMEOUT_FULFILLED,\n payload: response\n });\n })\n .catch((error) => {\n if (redirect) { redirect(); }\n else {\n dispatch({\n type: types.SESSION_TIMEOUT_REJECTED,\n payload: error\n });\n }\n });\n };\n}\n\nexport function fetchBillsOverview() {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_BILLS_OVERVIEW,\n payload: BillAPI.fetchOverview()\n });\n };\n}\n\nexport function fetchBills(params = {}) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_BILLS,\n payload: BillAPI.fetchBills(params)\n });\n };\n}\n\nexport function selectBills(params = {}) {\n return function(dispatch) {\n dispatch({\n type: types.SELECT_BILLS,\n payload: BillAPI.fetchBills({\n ...params,\n all: params.all\n })\n });\n };\n}\n\nexport function selectDueBills(params = {}) {\n return function(dispatch) {\n dispatch({\n type: types.SELECT_BILLS,\n payload: BillAPI.fetchDueBills(params)\n });\n };\n}\n\nexport function clearSelectedBills() {\n return {\n type: types.CLEAR_SELECTED_BILLS\n };\n}\n\nexport function fetchAccounts(portalUser, params = {}) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_ACCOUNTS,\n payload: ReceivableAccountAPI.fetchAccounts(portalUser, params)\n });\n };\n}\n\nexport function clearAccounts() {\n return {\n type: types.CLEAR_ACCOUNTS\n };\n}\n\nexport function fetchReceivableAccount(account_number,first_name,last_name) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_RECEIVABLE_ACCOUNT,\n payload: ReceivableAccountAPI.fetchReceivableAccount(account_number,first_name,last_name)\n });\n };\n}\n\nexport function fetchPayments(params) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_PAYMENTS,\n payload: PaymentAPI.fetchPayments(params)\n });\n };\n}\n\n// TODO:\n// export function fetchBankName(routing_number) {\n// return function(dispatch) {\n// dispatch({\n// type: types.FETCH_OTP_BANK_NAME,\n// payload: OtpAPI.fetchBankName(routing_number)\n// });\n// };\n// }\n\nexport function createOneTimePayment(payment, payMethod, account) {\n return function(dispatch) {\n dispatch({\n type: types.SAVE_PAYMENT,\n payload: OneTimePaymentAPI.createPayment(payment, payMethod, account)\n }).catch((error) => {});\n };\n}\n\nexport function clearPayments() {\n return {\n type: types.CLEAR_PAYMENTS\n };\n}\n\nexport function savePayment(payment, params = {}) {\n return function(dispatch) {\n dispatch({\n type: types.SAVE_PAYMENT,\n payload: PaymentAPI.savePayment(payment, params)\n }).catch((error) => {});\n };\n}\n\nexport function clearPaymentErrors() {\n return {\n type: types.CLEAR_ERRORS,\n payload: 'payment'\n };\n}\n\nexport function clearPayment() {\n return {\n type: types.CLEAR_PAYMENT\n };\n}\n\nexport function clearUpdatedUserCheck() {\n return {\n type: types.CLEAR_UPDATED_USER_CHECK\n };\n}\n\nexport function clearSavedPayment() {\n return {\n type: types.CLEAR_SAVED_PAYMENT\n };\n}\n\nexport function fetchPayMethods(params = {}) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_PAY_METHODS,\n payload: PayMethodAPI.fetchPayMethods(params)\n });\n };\n}\n\nexport function savePayMethod(payMethod, params = {}) {\n return function(dispatch) {\n dispatch({\n type: types.SAVE_PAY_METHOD,\n payload: PayMethodAPI.savePayMethod(payMethod, params)\n }).catch((error) => {});\n };\n}\n\nexport function clearSavePayMethodErrors() {\n return {\n type: types.CLEAR_ERRORS,\n payload: 'pay_method'\n };\n}\n\nexport function deletePayMethod(payMethod) {\n return function(dispatch) {\n dispatch({\n type: types.DELETE_PAY_METHOD,\n payload: PayMethodAPI.deletePayMethod(payMethod)\n });\n };\n}\n\nexport function clearDeletedPayMethod() {\n return {\n type: types.CLEAR_DELETED_PAY_METHOD\n };\n}\n\n\nexport function clearSavedPayMethod() {\n return {\n type: types.CLEAR_SAVED_PAY_METHOD\n };\n}\n\nexport function clearDocsAdded() {\n return {\n type: types.CLEAR_DOCS_ADDED\n };\n}\n\nexport function fetchPortalUsers(payer) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_PORTAL_USERS,\n payload: UserAPI.fetchPortalUsers(payer)\n });\n };\n}\n\nexport function fetchBillDocuments(billId, external = false) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_BILL_DOCUMENTS,\n payload: BillDocumentAPI.fetchBillDocuments(billId, external)\n });\n };\n}\n\nexport function fetchPayMethodAssignments(portalUser) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_PAY_METHOD_ASSIGNMENTS,\n payload: PayMethodAssignmentAPI.fetchPayMethodAssignments(portalUser)\n });\n };\n}\n\nexport function createPayMethodAssignment(portalUser, payMethod) {\n return function(dispatch) {\n dispatch({\n type: types.CREATE_PAY_METHOD_ASSIGNMENT,\n payload: PayMethodAssignmentAPI.createPayMethodAssignment(portalUser, payMethod)\n });\n };\n}\n\nexport function deletePayMethodAssignment(portalUser, payMethod) {\n return function(dispatch) {\n dispatch({\n type: types.DELETE_PAY_METHOD_ASSIGNMENT,\n payload: PayMethodAssignmentAPI.deletePayMethodAssignment(portalUser, payMethod)\n });\n };\n}\n\nexport function clearPayMethodAssignments() {\n return {\n type: types.CLEAR_PAY_METHOD_ASSIGNMENTS\n };\n}\n\nexport function fetchExternalBillDocuments(bill) {\n return fetchBillDocuments(bill.id,\n {\n external: true\n });\n}\n\nexport function clearBillDocuments() {\n return {\n type: types.CLEAR_BILL_DOCUMENTS\n };\n}\n\nexport function fetchExternalBills(params = {}) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_EXTERNAL_BILLS,\n payload: ExternalBillAPI.fetchExternalBills(params)\n });\n };\n}\n\nexport function fetchExternalPayments(params = {}) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_EXTERNAL_PAYMENTS,\n payload: ExternalPaymentAPI.fetchExternalPayments(params)\n });\n };\n}\n\nexport function fetchExternalPayment(id) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_EXTERNAL_PAYMENT,\n payload: ExternalPaymentAPI.fetchExternalPayment(id)\n });\n };\n}\n\nexport function clearExternalPayment() {\n return {\n type: types.CLEAR_EXTERNAL_PAYMENT\n };\n}\n\nexport function deletePayment(payment) {\n return function(dispatch) {\n dispatch({\n type: types.DELETE_PAYMENT,\n payload: PaymentAPI.deletePayment(payment)\n });\n };\n}\n\nexport function clearDeletedPayment() {\n return {\n type: types.CLEAR_DELETED_PAYMENT\n };\n}\n\nexport function fetchBillRecurrences(params = {}) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_BILL_RECURRENCES,\n payload: BillRecurrenceAPI.fetchBillRecurrences(params)\n });\n };\n}\n\nexport function clearBillRecurrences() {\n return {\n type: types.CLEAR_BILL_RECURRENCES\n };\n}\n\nexport function fetchBillRecurrence(portalPayer, billRecurrenceId) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_BILL_RECURRENCE,\n payload: BillRecurrenceAPI.fetchBillRecurrence(portalPayer, billRecurrenceId)\n });\n };\n}\n\nexport function fetchRecurrenceAccounts(recurrence, params = {}) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_RECURRENCE_ACCOUNTS,\n payload: RecurrenceAccountAPI.fetchRecurrenceAccounts(recurrence, params)\n });\n };\n}\n\nexport function clearRecurrenceAccounts() {\n return {\n type: types.CLEAR_RECURRENCE_ACCOUNTS\n };\n}\n\nexport function saveBillRecurrence(recurrence) {\n return function(dispatch) {\n dispatch({\n type: types.SAVE_BILL_RECURRENCE,\n payload: BillRecurrenceAPI.saveBillRecurrence(recurrence)\n });\n };\n}\n\nexport function clearSavedBillRecurrence() {\n return {\n type: types.CLEAR_SAVED_BILL_RECURRENCE\n };\n}\n\nexport function createRecurrenceAccount(recurrence, params = {}) {\n return function(dispatch) {\n dispatch({\n type: types.CREATE_RECURRENCE_ACCOUNT,\n payload: RecurrenceAccountAPI.createRecurrenceAccount(recurrence, params)\n });\n };\n}\n\nexport function clearCreatedRecurrenceAccount() {\n return {\n type: types.CLEAR_CREATED_RECURRENCE_ACCOUNT\n };\n}\n\nexport function fetchPortalAccounts(params = {}) {\n return function(dispatch) {\n dispatch({\n type: types.FETCH_PORTAL_ACCOUNTS,\n payload: PortalAccountAPI.fetchPortalAccounts(params)\n });\n };\n}\n\nexport function clearPortalAccounts() {\n return {\n type: types.CLEAR_PORTAL_ACCOUNTS\n };\n}\n\nexport function deleteRecurrenceAccount(recurrence, account) {\n return function(dispatch) {\n dispatch({\n type: types.DELETE_RECURRENCE_ACCOUNT,\n payload: RecurrenceAccountAPI.deleteRecurrenceAccount(recurrence, account)\n });\n };\n}\n\nexport function clearDeletedRecurrenceAccount() {\n return {\n type: types.CLEAR_DELETED_RECURRENCE_ACCOUNT\n };\n}\n\nexport function editBillRecurrence(portalPayer, recurrence) {\n return function(dispatch) {\n dispatch({\n type: types.EDIT_BILL_RECURRENCE,\n payload: BillRecurrenceAPI.editBillRecurrence(portalPayer, recurrence)\n });\n };\n}\n\nexport function deleteBillRecurrence(recurrence) {\n return function(dispatch) {\n dispatch({\n type: types.DELETE_BILL_RECURRENCE,\n payload: BillRecurrenceAPI.deleteBillRecurrence(recurrence)\n });\n };\n}\n\nexport function clearDeletedBillRecurrence() {\n return {\n type: types.CLEAR_DELETED_BILL_RECURRENCE\n };\n}\n\nexport function deleteAccountRecurrence(recurrence) {\n return function(dispatch) {\n dispatch({\n type: types.DELETE_ACCOUNT_RECURRENCE,\n payload: AccountRecurrenceAPI.deleteAccountRecurrence(recurrence)\n });\n };\n}\n\nexport function clearDeletedAccountRecurrence() {\n return {\n type: types.CLEAR_DELETED_ACCOUNT_RECURRENCE\n };\n}\n\nexport function createAccountRecurrence(recurrence) {\n return function(dispatch) {\n dispatch({\n type: types.CREATE_ACCOUNT_RECURRENCE,\n payload: AccountRecurrenceAPI.createAccountRecurrence(recurrence)\n }).catch((error) => {});\n };\n}\n\nexport function createPortalAgreement(portalUser) {\n return function(dispatch) {\n dispatch({\n type: types.CREATE_PORTAL_AGREEMENT,\n payload: PortalAgreementAPI.createPortalAgreement(portalUser)\n });\n };\n}\n\nexport function clearCreatedAccountRecurrence() {\n return {\n type: types.CLEAR_CREATED_ACCOUNT_RECURRENCE\n };\n}\n\nexport function clearPasswordReset() {\n return {\n type: types.CLEAR_PASSWORD_RESET\n };\n}\n\nexport function createPortalDocument(portalPayment, file, splitId = null) {\n return {\n type: types.CREATE_PORTAL_DOCUMENT,\n payload: PortalDocumentAPI.createPortalDocument(portalPayment, file, splitId)\n };\n}\n\nexport function deletePortalDocument(portalPayment, file) {\n return {\n type: types.DELETE_PORTAL_DOCUMENT,\n payload: PortalDocumentAPI.deletePortalDocument(portalPayment, file)\n };\n}\n","export const FETCH_PAYMENT = 'FETCH_PAYMENT';\nexport const FETCH_PAYMENT_FULFILLED = 'FETCH_PAYMENT_FULFILLED';\nexport const FETCH_PAYMENT_PENDING = 'FETCH_PAYMENT_PENDING';\nexport const FETCH_PAYMENT_REJECTED = 'FETCH_PAYMENT_REJECTED';\n\nexport const FETCH_STAGED_PAYMENT = 'FETCH_STAGED_PAYMENT';\nexport const FETCH_STAGED_PAYMENT_FULFILLED = 'FETCH_STAGED_PAYMENT_FULFILLED';\nexport const FETCH_STAGED_PAYMENT_PENDING = 'FETCH_STAGED_PAYMENT_PENDING';\nexport const FETCH_STAGED_PAYMENT_REJECTED = 'FETCH_STAGED_PAYMENT_REJECTED';\n\nexport const CONFIRM_PAYMENT = 'CONFIRM_PAYMENT';\nexport const CONFIRM_PAYMENT_FULFILLED = 'CONFIRM_PAYMENT_FULFILLED';\nexport const CONFIRM_PAYMENT_PENDING = 'CONFIRM_PAYMENT_PENDING';\nexport const CONFIRM_PAYMENT_REJECTED = 'CONFIRM_PAYMENT_REJECTED';\n\nexport const UPDATE_PAYMENT = 'UPDATE_PAYMENT';\nexport const UPDATE_PAYMENT_FULFILLED = 'UPDATE_PAYMENT_FULFILLED';\nexport const UPDATE_PAYMENT_PENDING = 'UPDATE_PAYMENT_PENDING';\nexport const UPDATE_PAYMENT_REJECTED = 'UPDATE_PAYMENT_REJECTED';\n","export const FETCH_SPLITS = 'FETCH_SPLITS';\nexport const FETCH_SPLITS_FULFILLED = 'FETCH_SPLITS_FULFILLED';\nexport const FETCH_SPLITS_PENDING = 'FETCH_SPLITS_PENDING';\nexport const FETCH_SPLITS_REJECTED = 'FETCH_SPLITS_REJECTED';\n\nexport const SAVE_SPLIT = 'SAVE_SPLIT';\nexport const SAVE_SPLIT_FULFILLED = 'SAVE_SPLIT_FULFILLED';\nexport const SAVE_SPLIT_PENDING = 'SAVE_SPLIT_PENDING';\nexport const SAVE_SPLIT_REJECTED = 'SAVE_SPLIT_REJECTED';\n\nexport const SAVE_SPLITS = 'SAVE_SPLITS';\nexport const SAVE_SPLITS_FULFILLED = 'SAVE_SPLITS_FULFILLED';\nexport const SAVE_SPLITS_PENDING = 'SAVE_SPLITS_PENDING';\nexport const SAVE_SPLITS_REJECTED = 'SAVE_SPLITS_REJECTED';\n\nexport const UPDATE_SPLIT = 'UPDATE_SPLIT';\nexport const UPDATE_SPLIT_FULFILLED = 'UPDATE_SPLIT_FULFILLED';\nexport const UPDATE_SPLIT_PENDING = 'UPDATE_SPLIT_PENDING';\nexport const UPDATE_SPLIT_REJECTED = 'UPDATE_SPLIT_REJECTED';\n\nexport const DELETE_SPLIT = 'DELETE_SPLIT';\nexport const DELETE_SPLIT_FULFILLED = 'DELETE_SPLIT_FULFILLED';\nexport const DELETE_SPLIT_PENDING = 'DELETE_SPLIT_PENDING';\nexport const DELETE_SPLIT_REJECTED = 'DELETE_SPLIT_REJECTED';\n\nexport const DELETE_ALL_SPLITS = 'DELETE_ALL_SPLITS';\nexport const DELETE_ALL_SPLITS_FULFILLED = 'DELETE_ALL_SPLITS_FULFILLED';\nexport const DELETE_ALL_SPLITS_PENDING = 'DELETE_ALL_SPLITS_PENDING';\nexport const DELETE_ALL_SPLITS_REJECTED = 'DELETE_ALL_SPLITS_REJECTED';\n","export const SUBSCRIBE = 'SUBSCRIBE';\nexport const SUBSCRIBE_FULFILLED = 'SUBSCRIBE_FULFILLED';\nexport const SUBSCRIBE_PENDING = 'SUBSCRIBE_PENDING';\nexport const SUBSCRIBE_REJECTED = 'SUBSCRIBE_REJECTED';\n\nexport const UNSUBSCRIBE = 'UNSUBSCRIBE';\nexport const UNSUBSCRIBE_FULFILLED = 'UNSUBSCRIBE_FULFILLED';\nexport const UNSUBSCRIBE_PENDING = 'UNSUBSCRIBE_PENDING';\nexport const UNSUBSCRIBE_REJECTED = 'UNSUBSCRIBE_REJECTED';","export const SET_SPLIT = 'SET_SPLIT';\nexport const SET_CREDIT_CARD_ENABLED = 'SET_CREDIT_CARD_ENABLED';\nexport const SET_SPLITS_VALID = 'SET_SPLITS_VALID';\nexport const SET_VIEW_ONLY = 'SET_VIEW_ONLY';\nexport const ADD_BILL_FILTER = 'ADD_BILL_FILTER';\nexport const REMOVE_BILL_FILTER = 'REMOVE_BILL_FILTER';\nexport const CLEAR_BILL_FILTERS = 'CLEAR_BILL_FILTERS';\nexport const SET_ACTIVE_TAB = 'SET_ACTIVE_TAB';\nexport const TOGGLE_MIX_KEY_MODAL = 'TOGGLE_MIX_KEY_MODAL';\nexport const TOGGLE_REMOVE_ALL_CONFIRMATION_MODAL = 'TOGGLE_REMOVE_ALL_CONFIRMATION_MODAL';\nexport const TOGGLE_PLASTIQ_CONFIRMATION_MODAL = 'TOGGLE_PLASTIQ_CONFIRMATION_MODAL';\nexport const TOGGLE_CREDIT_CARD_MODAL = 'TOGGLE_CREDIT_CARD_MODAL';\nexport const SET_CONFIRMATION_SPLIT = 'SET_CONFIRMATION_SPLIT';\nexport const SET_SELECTED_SPLIT = 'SET_SELECTED_SPLIT';\nexport const SET_BILLS_QUERY = 'SET_BILLS_QUERY';\nexport const SET_SPLITS_QUERY = 'SET_SPLITS_QUERY';\nexport const SET_BILLS_SORT_ORDER = 'SET_BILLS_SORT_ORDER';\nexport const SET_SPLITS_SORT_ORDER = 'SET_SPLITS_SORT_ORDER';\nexport const SET_ACCOUNTS_QUERY = 'SET_ACCOUNTS_QUERY';\nexport const SET_ACCOUNTS_SORT_ORDER = 'SET_ACCOUNTS_SORT_ORDER';\nexport const SET_ACCOUNTS_PAGE = 'SET_ACCOUNTS_PAGE';\n\nexport const FETCH_PAY_TO_ACCOUNTS = 'FETCH_PAY_TO_ACCOUNTS';\nexport const FETCH_PAY_TO_ACCOUNTS_FULFILLED = 'FETCH_PAY_TO_ACCOUNTS_FULFILLED';\nexport const FETCH_PAY_TO_ACCOUNTS_PENDING = 'FETCH_PAY_TO_ACCOUNTS_PENDING';\nexport const FETCH_PAY_TO_ACCOUNTS_REJECTED = 'FETCH_PAY_TO_ACCOUNTS_REJECTED';\n","export const UNCONFIRM_PAYMENT = 'UNCONFIRM_PAYMENT';\nexport const UNCONFIRM_PAYMENT_FULFILLED = 'UNCONFIRM_PAYMENT_FULFILLED';\nexport const UNCONFIRM_PAYMENT_PENDING = 'UNCONFIRM_PAYMENT_PENDING';\nexport const UNCONFIRM_PAYMENT_REJECTED = 'UNCONFIRM_PAYMENT_REJECTED';\n\nexport const CLEAR_UNCONFIRMED_PAYMENT = 'CLEAR_UNCONFIRMED_PAYMENT';\nexport const CLEAR_ACCOUNT_RECURRENCE_ERRORS = 'CLEAR_ACCOUNT_RECURRENCE_ERRORS';\n\nexport const HIDE_WELCOME = 'HIDE_WELCOME';\n","export const CREATE_REGISTRATION = 'CREATE_REGISTRATION';\nexport const CREATE_REGISTRATION_PENDING = 'CREATE_REGISTRATION_PENDING';\nexport const CREATE_REGISTRATION_FULFILLED = 'CREATE_REGISTRATION_FULFILLED';\nexport const CREATE_REGISTRATION_REJECTED = 'CREATE_REGISTRATION_REJECTED';\n\nexport const CREATE_REGISTRATION_ACCOUNT = 'CREATE_REGISTRATION_ACCOUNT';\nexport const CREATE_REGISTRATION_ACCOUNT_PENDING = 'CREATE_REGISTRATION_ACCOUNT_PENDING';\nexport const CREATE_REGISTRATION_ACCOUNT_FULFILLED = 'CREATE_REGISTRATION_ACCOUNT_FULFILLED';\nexport const CREATE_REGISTRATION_ACCOUNT_REJECTED = 'CREATE_REGISTRATION_ACCOUNT_REJECTED';\n\nexport const CREATE_USER = 'CREATE_USER';\nexport const CREATE_USER_PENDING = 'CREATE_USER_PENDING';\nexport const CREATE_USER_FULFILLED = 'CREATE_USER_FULFILLED';\nexport const CREATE_USER_REJECTED = 'CREATE_USER_REJECTED';\n\nexport const NEW_ACCOUNT = 'NEW_ACCOUNT';\n","// Resource types\nexport * from './resources/payment/types';\nexport * from './resources/split/types';\n\n// Screen types\nexport * from './screens/registration/types';\nexport * from './screens/dashboard/types';\nexport * from './screens/bill_payment/types';\nexport * from './screens/account/types';\n\n// Shared types\nexport const RESET_SCREEN = 'RESET_SCREEN';\nexport const CLEAR_ERRORS = 'CLEAR_ERRORS';\nexport const SET_ERRORS = 'SET_ERRORS';\nexport const SET_CURRENT_STEP = 'SET_CURRENT_STEP';\nexport const SET_ACCOUNT = 'SET_ACCOUNT';\nexport const SET_PAYMENT = 'SET_PAYMENT';\nexport const TOGGLE_SWITCH_ACCOUNT_MODAL = 'TOGGLE_SWITCH_ACCOUNT_MODAL';\n\n//\n// TODO: Move to appropriate state types\n//\nexport const FETCH_CONFIG = 'FETCH_CONFIG';\nexport const FETCH_CONFIG_PENDING = 'FETCH_CONFIG_PENDING';\nexport const FETCH_CONFIG_FULFILLED = 'FETCH_CONFIG_FULFILLED';\n\nexport const UPDATE_USER = 'UPDATE_USER';\nexport const UPDATE_USER_FULFILLED = 'UPDATE_USER_FULFILLED';\nexport const UPDATE_USER_REJECTED = 'UPDATE_USER_REJECTED';\n\nexport const LOGIN = 'LOGIN';\nexport const LOGIN_FULFILLED = 'LOGIN_FULFILLED';\nexport const LOGIN_PENDING = 'LOGIN_PENDING';\nexport const LOGIN_REJECTED = 'LOGIN_REJECTED';\n\nexport const RESET_PASSWORD = 'RESET_PASSWORD';\nexport const RESET_PASSWORD_FULFILLED = 'RESET_PASSWORD_FULFILLED';\nexport const RESET_PASSWORD_PENDING = 'RESET_PASSWORD_PENDING';\nexport const RESET_PASSWORD_REJECTED = 'RESET_PASSWORD_REJECTED';\n\nexport const UPDATE_PASSWORD = 'UPDATE_PASSWORD';\nexport const UPDATE_PASSWORD_FULFILLED = 'UPDATE_PASSWORD_FULFILLED';\nexport const UPDATE_PASSWORD_PENDING = 'UPDATE_PASSWORD_PENDING';\nexport const UPDATE_PASSWORD_REJECTED = 'UPDATE_PASSWORD_REJECTED';\n\nexport const SEND_EMAIL_CONFIRMATION = 'SEND_EMAIL_CONFIRMATION';\nexport const SEND_EMAIL_CONFIRMATION_FULFILLED = 'SEND_EMAIL_CONFIRMATION_FULFILLED';\nexport const SEND_EMAIL_CONFIRMATION_PENDING = 'SEND_EMAIL_CONFIRMATION_PENDING';\nexport const SEND_EMAIL_CONFIRMATIO_REJECTED = 'SEND_EMAIL_CONFIRMATIO_REJECTED';\n\nexport const CLEAR_PASSWORD_RESET = 'CLEAR_PASSWORD_RESET';\n\nexport const CLEAR_UPDATED_USER_CHECK = 'CLEAR_UPDATED_USER_CHECK';\n\nexport const LOGOUT = 'LOGOUT';\nexport const LOGOUT_FULFILLED = 'LOGOUT_FULFILLED';\nexport const LOGOUT_PENDING = 'LOGOUT_PENDING';\nexport const LOGOUT_REJECTED = 'LOGOUT_REJECTED';\n\nexport const SESSION_TIMEOUT = 'SESSION_TIMEOUT';\nexport const SESSION_TIMEOUT_FULFILLED = 'SESSION_TIMEOUT_FULFILLED';\nexport const SESSION_TIMEOUT_PENDING = 'SESSION_TIMEOUT_PENDING';\nexport const SESSION_TIMEOUT_REJECTED = 'SESSION_TIMEOUT_REJECTED';\n\nexport const FETCH_BILLS_OVERVIEW = 'FETCH_BILLS_OVERVIEW';\nexport const FETCH_BILLS_OVERVIEW_FULFILLED = 'FETCH_BILLS_OVERVIEW_FULFILLED';\nexport const FETCH_BILLS_OVERVIEW_PENDING = 'FETCH_BILLS_OVERVIEW_PENDING';\nexport const FETCH_BILLS_OVERVIEW_REJECTED = 'FETCH_BILLS_OVERVIEW_REJECTED';\n\nexport const FETCH_BILLS = 'FETCH_BILLS';\nexport const FETCH_BILLS_FULFILLED = 'FETCH_BILLS_FULFILLED';\nexport const FETCH_BILLS_PENDING = 'FETCH_BILLS_PENDING';\nexport const FETCH_BILLS_REJECTED = 'FETCH_BILLS_REJECTED';\n\nexport const CLEAR_BILLS_DATA = 'CLEAR_BILLS_DATA';\n\nexport const SELECT_BILLS = 'SELECT_BILLS';\nexport const SELECT_BILLS_FULFILLED = 'SELECT_BILLS_FULFILLED';\nexport const SELECT_BILLS_PENDING = 'SELECT_BILLS_PENDING';\nexport const SELECT_BILLS_REJECTED = 'SELECT_BILLS_REJECTED';\n\nexport const CLEAR_SELECTED_BILLS = 'CLEAR_SELECTED_BILLS';\n\nexport const FETCH_ACCOUNTS = 'FETCH_ACCOUNTS';\nexport const FETCH_ACCOUNTS_FULFILLED = 'FETCH_ACCOUNTS_FULFILLED';\nexport const FETCH_ACCOUNTS_PENDING = 'FETCH_ACCOUNTS_PENDING';\nexport const FETCH_ACCOUNTS_REJECTED = 'FETCH_ACCOUNTS_REJECTED';\n\nexport const CLEAR_ACCOUNTS = 'CLEAR_ACCOUNTS';\n\nexport const FETCH_RECEIVABLE_ACCOUNT = 'FETCH_RECEIVABLE_ACCOUNT';\nexport const FETCH_RECEIVABLE_ACCOUNT_FULFILLED = 'FETCH_RECEIVABLE_ACCOUNT_FULFILLED';\n\nexport const FETCH_PAYMENTS = 'FETCH_PAYMENTS';\nexport const FETCH_PAYMENTS_PENDING = 'FETCH_PAYMENTS_PENDING';\nexport const FETCH_PAYMENTS_FULFILLED = 'FETCH_PAYMENTS_FULFILLED';\nexport const FETCH_PAYMENTS_REJECTED = 'FETCH_PAYMENTS_REJECTED';\n\nexport const FETCH_OTP_BANK_NAME = 'FETCH_OTP_BANK_NAME';\nexport const FETCH_OTP_BANK_NAME_PENDING = 'FETCH_OTP_BANK_NAME_PENDING';\nexport const FETCH_OTP_BANK_NAME_FULFILLED = 'FETCH_OTP_BANK_NAME_FULFILLED';\nexport const FETCH_OTP_BANK_NAME_REJECTED = 'FETCH_OTP_BANK_NAME_REJECTED';\n\nexport const CLEAR_PAYMENTS = 'CLEAR_PAYMENTS';\nexport const CLEAR_PAYMENT = 'CLEAR_PAYMENT';\nexport const CLEAR_SAVED_PAYMENT = 'CLEAR_SAVED_PAYMENT';\n\nexport const SAVE_PAYMENT = 'SAVE_PAYMENT';\nexport const SAVE_PAYMENT_PENDING = 'SAVE_PAYMENT_PENDING';\nexport const SAVE_PAYMENT_FULFILLED = 'SAVE_PAYMENT_FULFILLED';\nexport const SAVE_PAYMENT_REJECTED = 'SAVE_PAYMENT_REJECTED';\n\nexport const FETCH_PAY_METHODS = 'FETCH_PAY_METHODS';\nexport const FETCH_PAY_METHODS_FULFILLED = 'FETCH_PAY_METHODS_FULFILLED';\nexport const FETCH_PAY_METHODS_PENDING = 'FETCH_PAY_METHODS_PENDING';\nexport const FETCH_PAY_METHODS_REJECTED = 'FETCH_PAY_METHODS_REJECTED';\n\nexport const SAVE_PAY_METHOD = 'SAVE_PAY_METHOD';\nexport const SAVE_PAY_METHOD_FULFILLED = 'SAVE_PAY_METHOD_FULFILLED';\nexport const SAVE_PAY_METHOD_PENDING = 'SAVE_PAY_METHOD_PENDING';\nexport const SAVE_PAY_METHOD_REJECTED = 'SAVE_PAY_METHOD_REJECTED';\n\nexport const CLEAR_SAVED_PAY_METHOD = 'CLEAR_SAVED_PAY_METHOD';\n\nexport const CLEAR_DOCS_ADDED = 'CLEAR_DOCS_ADDED';\n\nexport const DELETE_PAY_METHOD = 'DELETE_PAY_METHOD';\nexport const DELETE_PAY_METHOD_PENDING = 'DELETE_PAY_METHOD_PENDING';\nexport const DELETE_PAY_METHOD_FULFILLED = 'DELETE_PAY_METHOD_FULFILLED';\nexport const DELETE_PAY_METHOD_REJECTED = 'DELETE_PAY_METHOD_REJECTED';\n\nexport const CLEAR_DELETED_PAY_METHOD = 'CLEAR_DELETED_PAY_METHOD';\n\nexport const FETCH_PORTAL_USERS = 'FETCH_PORTAL_USERS';\nexport const FETCH_PORTAL_USERS_FULFILLED = 'FETCH_PORTAL_USERS_FULFILLED';\nexport const FETCH_PORTAL_USERS_PENDING = 'FETCH_PORTAL_USERS_PENDING';\nexport const FETCH_PORTAL_USERS_REJECTED = 'FETCH_PORTAL_USERS_REJECTED';\n\nexport const FETCH_PAY_METHOD_ASSIGNMENTS = 'FETCH_PAY_METHOD_ASSIGNMENTS';\nexport const FETCH_PAY_METHOD_ASSIGNMENTS_FULFILLED = 'FETCH_PAY_METHOD_ASSIGNMENTS_FULFILLED';\nexport const FETCH_PAY_METHOD_ASSIGNMENTS_PENDING = 'FETCH_PAY_METHOD_ASSIGNMENTS_PENDING';\nexport const FETCH_PAY_METHOD_ASSIGNMENTS_REJECTED = 'FETCH_PAY_METHOD_ASSIGNMENTS_REJECTED';\n\nexport const CREATE_PORTAL_AGREEMENT = 'CREATE_PORTAL_AGREEMENT';\nexport const CREATE_PORTAL_AGREEMENT_FULFILLED = 'CREATE_PORTAL_AGREEMENT_FULFILLED';\nexport const CREATE_PORTAL_AGREEMENT_PENDING = 'CREATE_PORTAL_AGREEMENT_PENDING';\nexport const CREATE_PORTAL_AGREEMENT_REJECTED = 'CREATE_PORTAL_AGREEMENT_REJECTED';\n\nexport const CREATE_PORTAL_DOCUMENT = 'CREATE_PORTAL_DOCUMENT';\nexport const CREATE_PORTAL_DOCUMENT_FULFILLED = 'CREATE_PORTAL_DOCUMENT_FULFILLED';\nexport const CREATE_PORTAL_DOCUMENT_PENDING = 'CREATE_PORTAL_DOCUMENT_PENDING';\nexport const CREATE_PORTAL_DOCUMENT_REJECTED = 'CREATE_PORTAL_DOCUMENT_REJECTED';\n\nexport const DELETE_PORTAL_DOCUMENT = 'DELETE_PORTAL_DOCUMENT';\nexport const DELETE_PORTAL_DOCUMENT_FULFILLED = 'DELETE_PORTAL_DOCUMENT_FULFILLED';\nexport const DELETE_PORTAL_DOCUMENT_PENDING = 'DELETE_PORTAL_DOCUMENT_PENDING';\nexport const DELETE_PORTAL_DOCUMENT_REJECTED = 'DELETE_PORTAL_DOCUMENT_REJECTED';\n\nexport const CLEAR_PAY_METHOD_ASSIGNMENTS = 'CLEAR_PAY_METHOD_ASSIGNMENTS';\n\nexport const CREATE_PAY_METHOD_ASSIGNMENT = 'CREATE_PAY_METHOD_ASSIGNMENT';\nexport const CREATE_PAY_METHOD_ASSIGNMENT_FULFILLED = 'CREATE_PAY_METHOD_ASSIGNMENT_FULFILLED';\nexport const CREATE_PAY_METHOD_ASSIGNMENT_PENDING = 'CREATE_PAY_METHOD_ASSIGNMENT_PENDING';\nexport const CREATE_PAY_METHOD_ASSIGNMENT_REJECTED = 'CREATE_PAY_METHOD_ASSIGNMENT_REJECTED';\n\nexport const DELETE_PAY_METHOD_ASSIGNMENT = 'DELETE_PAY_METHOD_ASSIGNMENT';\nexport const DELETE_PAY_METHOD_ASSIGNMENT_FULFILLED = 'DELETE_PAY_METHOD_ASSIGNMENT_FULFILLED';\nexport const DELETE_PAY_METHOD_ASSIGNMENT_PENDING = 'DELETE_PAY_METHOD_ASSIGNMENT_PENDING';\nexport const DELETE_PAY_METHOD_ASSIGNMENT_REJECTED = 'DELETE_PAY_METHOD_ASSIGNMENT_REJECTED';\n\nexport const FETCH_BILL_RECURRENCE = 'FETCH_BILL_RECURRENCE';\nexport const FETCH_BILL_RECURRENCE_PENDING = 'FETCH_BILL_RECURRENCE_PENDING';\nexport const FETCH_BILL_RECURRENCE_FULFILLED = 'FETCH_BILL_RECURRENCE_FULFILLED';\nexport const FETCH_BILL_RECURRENCE_REJECTED = 'FETCH_BILL_RECURRENCE_REJECTED';\n\nexport const FETCH_BILL_RECURRENCES = 'FETCH_BILL_RECURRENCES';\nexport const FETCH_BILL_RECURRENCES_PENDING = 'FETCH_BILL_RECURRENCES_PENDING';\nexport const FETCH_BILL_RECURRENCES_FULFILLED = 'FETCH_BILL_RECURRENCES_FULFILLED';\nexport const FETCH_BILL_RECURRENCES_REJECTED = 'FETCH_BILL_RECURRENCES_REJECTED';\n\nexport const CLEAR_BILL_RECURRENCES = 'CLEAR_BILL_RECURRENCES';\n\nexport const FETCH_RECURRENCE_ACCOUNTS = 'FETCH_RECURRENCE_ACCOUNTS';\nexport const FETCH_RECURRENCE_ACCOUNTS_PENDING = 'FETCH_RECURRENCE_ACCOUNTS_PENDING';\nexport const FETCH_RECURRENCE_ACCOUNTS_FULFILLED = 'FETCH_RECURRENCE_ACCOUNTS_FULFILLED';\nexport const FETCH_RECURRENCE_ACCOUNTS_REJECTED = 'FETCH_RECURRENCE_ACCOUNTS_REJECTED';\n\nexport const CLEAR_RECURRENCE_ACCOUNTS = 'CLEAR_RECURRENCE_ACCOUNTS';\n\nexport const SAVE_BILL_RECURRENCE = 'SAVE_BILL_RECURRENCE';\nexport const SAVE_BILL_RECURRENCE_PENDING = 'SAVE_BILL_RECURRENCE_PENDING';\nexport const SAVE_BILL_RECURRENCE_FULFILLED = 'SAVE_BILL_RECURRENCE_FULFILLED';\nexport const SAVE_BILL_RECURRENCE_REJECTED = 'SAVE_BILL_RECURRENCE_REJECTED';\n\nexport const CLEAR_SAVED_BILL_RECURRENCE = 'CLEAR_SAVED_BILL_RECURRENCE';\n\nexport const FETCH_PORTAL_ACCOUNTS = 'FETCH_PORTAL_ACCOUNTS';\nexport const FETCH_PORTAL_ACCOUNTS_PENDING = 'FETCH_PORTAL_ACCOUNTS_PENDING';\nexport const FETCH_PORTAL_ACCOUNTS_FULFILLED = 'FETCH_PORTAL_ACCOUNTS_FULFILLED';\nexport const FETCH_PORTAL_ACCOUNTS_REJECTED = 'FETCH_PORTAL_ACCOUNTS_REJECTED';\n\nexport const CLEAR_PORTAL_ACCOUNTS = 'CLEAR_PORTAL_ACCOUNTS';\n\nexport const CREATE_RECURRENCE_ACCOUNT = 'CREATE_RECURRENCE_ACCOUNT';\nexport const CREATE_RECURRENCE_ACCOUNT_PENDING = 'CREATE_RECURRENCE_ACCOUNT_PENDING';\nexport const CREATE_RECURRENCE_ACCOUNT_FULFILLED = 'CREATE_RECURRENCE_ACCOUNT_FULFILLED';\nexport const CREATE_RECURRENCE_ACCOUNT_REJECTED = 'CREATE_RECURRENCE_ACCOUNT_REJECTED';\n\nexport const CLEAR_CREATED_RECURRENCE_ACCOUNT = 'CLEAR_CREATED_RECURRENCE_ACCOUNT';\n\nexport const DELETE_RECURRENCE_ACCOUNT = 'DELETE_RECURRENCE_ACCOUNT';\nexport const DELETE_RECURRENCE_ACCOUNT_PENDING = 'DELETE_RECURRENCE_ACCOUNT_PENDING';\nexport const DELETE_RECURRENCE_ACCOUNT_FULFILLED = 'DELETE_RECURRENCE_ACCOUNT_FULFILLED';\nexport const DELETE_RECURRENCE_ACCOUNT_REJECTED = 'DELETE_RECURRENCE_ACCOUNT_REJECTED';\n\nexport const CLEAR_DELETED_RECURRENCE_ACCOUNT = 'CLEAR_DELETED_RECURRENCE_ACCOUNT';\n\nexport const DELETE_BILL_RECURRENCE = 'DELETE_BILL_RECURRENCE';\nexport const DELETE_BILL_RECURRENCE_PENDING = 'DELETE_BILL_RECURRENCE_PENDING';\nexport const DELETE_BILL_RECURRENCE_FULFILLED = 'DELETE_BILL_RECURRENCE_FULFILLED';\nexport const DELETE_BILL_RECURRENCE_REJECTED = 'DELETE_BILL_RECURRENCE_REJECTED';\n\nexport const CLEAR_DELETED_BILL_RECURRENCE = 'CLEAR_DELETED_BILL_RECURRENCE';\n\nexport const EDIT_BILL_RECURRENCE = 'EDIT_BILL_RECURRENCE';\nexport const EDIT_BILL_RECURRENCE_PENDING = 'EDIT_BILL_RECURRENCE_PENDING';\nexport const EDIT_BILL_RECURRENCE_FULFILLED = 'EDIT_BILL_RECURRENCE_FULFILLED';\nexport const EDIT_BILL_RECURRENCE_REJECTED = 'EDIT_BILL_RECURRENCE_REJECTED';\n\nexport const CREATE_ACCOUNT_RECURRENCE = 'CREATE_ACCOUNT_RECURRENCE';\nexport const CREATE_ACCOUNT_RECURRENCE_PENDING = 'CREATE_ACCOUNT_RECURRENCE_PENDING';\nexport const CREATE_ACCOUNT_RECURRENCE_FULFILLED = 'CREATE_ACCOUNT_RECURRENCE_FULFILLED';\nexport const CREATE_ACCOUNT_RECURRENCE_REJECTED = 'CREATE_ACCOUNT_RECURRENCE_REJECTED';\n\nexport const CLEAR_CREATED_ACCOUNT_RECURRENCE = 'CLEAR_CREATED_ACCOUNT_RECURRENCE';\n\nexport const DELETE_ACCOUNT_RECURRENCE = 'DELETE_ACCOUNT_RECURRENCE';\nexport const DELETE_ACCOUNT_RECURRENCE_PENDING = 'DELETE_ACCOUNT_RECURRENCE_PENDING';\nexport const DELETE_ACCOUNT_RECURRENCE_FULFILLED = 'DELETE_ACCOUNT_RECURRENCE_FULFILLED';\nexport const DELETE_ACCOUNT_RECURRENCE_REJECTED = 'DELETE_ACCOUNT_RECURRENCE_REJECTED';\n\nexport const CLEAR_DELETED_ACCOUNT_RECURRENCE = 'CLEAR_DELETED_ACCOUNT_RECURRENCE';\n\nexport const FETCH_BILL_DOCUMENTS = 'FETCH_BILL_DOCUMENTS';\nexport const FETCH_BILL_DOCUMENTS_FULFILLED = 'FETCH_BILL_DOCUMENTS_FULFILLED';\nexport const FETCH_BILL_DOCUMENTS_PENDING = 'FETCH_BILL_DOCUMENTS_PENDING';\nexport const FETCH_BILL_DOCUMENTS_REJECTED = 'FETCH_BILL_DOCUMENTS_REJECTED';\n\nexport const CLEAR_BILL_DOCUMENTS = 'CLEAR_BILL_DOCUMENTS';\n\nexport const FETCH_EXTERNAL_BILLS = 'FETCH_EXTERNAL_BILLS';\nexport const FETCH_EXTERNAL_BILLS_FULFILLED = 'FETCH_EXTERNAL_BILLS_FULFILLED';\nexport const FETCH_EXTERNAL_BILLS_PENDING = 'FETCH_EXTERNAL_BILLS_PENDING';\nexport const FETCH_EXTERNAL_BILLS_REJECTED = 'FETCH_EXTERNAL_BILLS_REJECTED';\n\nexport const FETCH_EXTERNAL_PAYMENTS = 'FETCH_EXTERNAL_PAYMENTS';\nexport const FETCH_EXTERNAL_PAYMENTS_FULFILLED = 'FETCH_EXTERNAL_PAYMENTS_FULFILLED';\nexport const FETCH_EXTERNAL_PAYMENTS_PENDING = 'FETCH_EXTERNAL_PAYMENTS_PENDING';\nexport const FETCH_EXTERNAL_PAYMENTS_REJECTED = 'FETCH_EXTERNAL_PAYMENTS_REJECTED';\n\nexport const FETCH_EXTERNAL_PAYMENT = 'FETCH_EXTERNAL_PAYMENT';\nexport const FETCH_EXTERNAL_PAYMENT_FULFILLED = 'FETCH_EXTERNAL_PAYMENT_FULFILLED';\nexport const FETCH_EXTERNAL_PAYMENT_PENDING = 'FETCH_EXTERNAL_PAYMENT_PENDING';\nexport const FETCH_EXTERNAL_PAYMENT_REJECTED = 'FETCH_EXTERNAL_PAYMENT_REJECTED';\n\nexport const CLEAR_EXTERNAL_PAYMENT = 'CLEAR_EXTERNAL_PAYMENT';\n\nexport const DELETE_PAYMENT = 'DELETE_PAYMENT';\nexport const DELETE_PAYMENT_PENDING = 'DELETE_PAYMENT_PENDING';\nexport const DELETE_PAYMENT_FULFILLED = 'DELETE_PAYMENT_FULFILLED';\nexport const DELETE_PAYMENT_REJECTED = 'DELETE_PAYMENT_REJECTED';\n\nexport const CLEAR_DELETED_PAYMENT = 'CLEAR_DELETED_PAYMENT';\n\nexport const CREATE_STRIPE_INTENT = 'CREATE_STRIPE_INTENT';\nexport const CREATE_STRIPE_INTENT_FULFILLED = 'CREATE_STRIPE_INTENT_FULFILLED';\nexport const CREATE_STRIPE_INTENT_PENDING = 'CREATE_STRIPE_INTENT_PENDING';\nexport const CREATE_STRIPE_INTENT_REJECTED = 'CREATE_STRIPE_INTENT_REJECTED';\n","const debounce = (func, wait) => {\n let timeout;\n return function(...args) {\n const context = this;\n clearTimeout(timeout);\n timeout = setTimeout(() => func.apply(context, args), wait);\n };\n};\n\nexport default debounce;\n","export const _invert = (object) => {\n const invertedObject = {};\n for (key of Object.keys(object)) {\n invertedObject[object[key]] = key;\n }\n return invertedObject;\n};\n","import moment from 'moment';\nimport accounting from 'accounting';\n\nconst date = function(dateParam, dateFormat = \"MM/DD/YYYY\") {\n return dateParam ? moment(dateParam).format(dateFormat) : '';\n};\n\nconst currency = function(amount) {\n return accounting.formatMoney(amount);\n};\n\nexport default {\n date,\n currency\n};\n","export const getQueryParam = function(name) {\n const match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);\n return match && decodeURIComponent(match[1].replace(/\\+/g, ' '));\n};\n\nexport default {\n getQueryParam\n};\n","var map = {\n\t\"./en-au\": 53872,\n\t\"./en-au.js\": 53872,\n\t\"./en-ca\": 28298,\n\t\"./en-ca.js\": 28298,\n\t\"./en-gb\": 56195,\n\t\"./en-gb.js\": 56195,\n\t\"./en-ie\": 66584,\n\t\"./en-ie.js\": 66584,\n\t\"./en-il\": 65543,\n\t\"./en-il.js\": 65543,\n\t\"./en-in\": 9033,\n\t\"./en-in.js\": 9033,\n\t\"./en-nz\": 79402,\n\t\"./en-nz.js\": 79402,\n\t\"./en-sg\": 43004,\n\t\"./en-sg.js\": 43004,\n\t\"./fr\": 85498,\n\t\"./fr-ca\": 26435,\n\t\"./fr-ca.js\": 26435,\n\t\"./fr-ch\": 37892,\n\t\"./fr-ch.js\": 37892,\n\t\"./fr.js\": 85498\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 38197;"],"names":["apiEndpoint","url","path","http","baseURL","setAPIBaseUrl","setDefaultHeader","name","value","headers","common","csrfToken","$","attr","CurrencyInput","React","constructor","props","super","this","handleChange","bind","event","maskedValue","floatValue","onChange","render","ReactCurrencyInput","placeholder","autoFocus","allowNegative","className","id","onClick","onChangeEvent","onBlur","readOnly","propTypes","DatePicker","filterDate","excludeWeekends","date","day","getDay","convertToDate","momentObjectOrString","Date","toDate","ReactDatePicker","locale","selected","maxDate","minDate","customInput","disabled","dateFormat","isoString","toISOString","popperModifiers","offset","enabled","preventOverflow","escapeWithReference","boundariesElement","inline","fixedHeight","selectsStart","selectsEnd","PropTypes","maxRange","excludeDates","FormErrors","Component","state","alertElement","showAlert","componentDidMount","context","store","getState","alertHeading","heading","i18n","portal","form_errors","error_message","errors","componentDidUpdate","prevProps","scrollTop","handleDismiss","setState","window","setTimeout","fade","hideHeader","errorMessages","map","renderError","error","i","key","role","type","contextTypes","object","isRequired","array","bool","dismiss","func","string","Icon","STYLES","solid","regular","SIZES","large","TYPES","bank","style","size","classes","spin","push","fixedWidth","join","defaultProps","Pagination","totalItems","currentPage","getCurrentPage","handlePageChange","componentWillReceiveProps","nextProps","parseInt","data","onPageChange","setCurrentPage","setTotalItems","itemCount","pageCount","shownItemsCount","actualCurrentPage","Math","ceil","itemsPerPage","ReactPaginate","activeClassName","breakClassName","breakLabel","breakLinkClassName","containerClassName","forcePage","marginPagesDisplayed","nextClassName","nextLabel","nextLinkClassName","pageClassName","pageLinkClassName","pageRangeDisplayed","previousClassName","previousLabel","previousLinkClassName","number","oneOfType","module","exports","configureStore","rootReducer","createStore","applyMiddleware","thunk","promise","createAccountRecurrence","recurrence","post","portal_recurrence","receivable_account_id","pay_method_id","amount","day_of_month","end_date","deleteAccountRecurrence","delete","fetchOverview","get","fetchBills","params","fetchDueBills","CsvExportUrl","param","PdfExportUrl","fetchBillDocuments","billID","downloadUrl","billDocument","external","billable_id","fetchBillRecurrences","paged","saveBillRecurrence","updateBillRecurrence","createBillRecurrence","portal_bill_recurrence","put","payment_breakdown_type","deleteBillRecurrence","fetchConfig","create","emailAddress","paymentID","email_address","payment_id","fetchExternalBills","billsExportUrl","format","fetchExternalPayments","fetchExternalPayment","exportUrl","externalPayment","paymentsExportUrl","new","account","token","encrypted_token","createPayment","payment","payMethod","new_pay_method","amount_reason","portal_payment","scheduled_date","otp_comment","fetchPayMethods","createPayMethod","pay_method","updatePayMethod","savePayMethod","deletePayMethod","createStripeIntent","fetchPayMethodAssignments","portalUser","createPayMethodAssignment","pay_method_assignment","deletePayMethodAssignment","portal_pay_method_assignment","fetch","fetchStaged","fetchPayments","updatePayment","savePayment","deletePayment","fetchPortalAccounts","createPortalAgreement","createPortalDocument","portalPayment","file","splitId","file_content","content","file_name","file_size","file_type","file_blob","preview","split_id","deletePortalDocument","fetchAccounts","fetchRecurrenceAccounts","createRecurrenceAccount","portalAccount","portal_recurrence_account","portal_account_id","deleteRecurrenceAccount","email","user","update","registration","updateUser","password","fetchPortalUsers","payer","fetchPortalUserPayAssignment","user_session","destroy","checkTimeout","createUser","App","startSessionTimer","interceptErrors","getQueryParam","router","route","children","isLanding","landing","isPasswordReset","currentUser","handleLogin","handleLogout","handleAddPaymentMethod","savedPayMethod","toastManager","details","add","pay_method_success","appearance","autoDismiss","userSpecifiedLocale","portal_user","portal_divisions","length","handlePortalDivisionChange","portal_locale","handlePortalLocaleChange","location","pathname","split","config","portal_division","setConfigPending","reload","configDivision","userDivision","configLocale","userLocale","setInterval","checkSessionTimeout","timeoutUrl","timeout_url","redirect","interceptors","response","use","undefined","errorUrl","error_url","status","Promise","reject","Layout","connect","dispatch","bindActionCreators","actionCreators","withToastManager","AccountDetail","show","label","AccountDetails","popoverOpen","togglePopover","accountNoticeButton","showNotice","payment_account_notice","Link","accountNoticeText","NoticePopover","placement","isOpen","target","toggle","source","containerTagName","detailsTable","accountLabel","payoff_amount","feature","receivable_accounts_balance_label","accounting","balance","payment_amount","receivable_accounts_payment_amount_label","due_amount","receivable_accounts_due_amount_label","due_date","receivable_accounts_due_date_label","moment","showLabel","colSpan","account_label","FindAccountForm","first_name","last_name","account_number","phone","ssn_last_four","bill_external_key","isValid","isRegistrationImageOpen","handleSubmit","handleFieldChange","toggleRegistrationImage","find_account","registrationNoticeButton","registrationNoticeText","nameField","fields","includes","htmlFor","payers_name_label","required","firstNameField","lastNameField","accountNumberField","inputClass","registration_image_url","registrationImageLink","tabIndex","registrationImageModal","ImageModal","imgDescription","registration_image_description","imgAlt","registration_image_alt","image","emailField","phoneField","ssnField","maxLength","billExternalKeyField","bills_external_key_label","actions","continue","e","setAccount","currentTarget","validateForm","forEach","field","fieldName","$event","preventDefault","onSubmit","registration_notice","ref","noValidate","AccountRecurrenceForm","RecurrenceForm","_extends","requireAmount","requirePayMethod","requireDayOfMonth","optionalEndDate","showConfirmation","AccountsModal","accountsQuery","accountsSortOrder","filterAccounts","pageAccounts","sortAccounts","clearFilters","clearAccounts","fetchParams","query","sort_order","page","sortOrder","accountsTable","accounts","AccountsTable","selectable","useExternal","columns","portal_account_assignments_manage_columns","onRowClick","filterPlaceholder","accounts_table","filter_accounts","filterQuery","externalSetFilter","externalSetPage","externalChangeSort","Spinner","centered","Modal","showClose","title","otp","select_account","message","closeLabel","cancel","columnMap","columnMetadata","columnName","displayName","receivable_accounts_external_key_label","group_name_label","Table","showActions","results","total_accounts","noDataMessage","data_table","no_results","showFilter","element","isRowSelected","BillDocumentsModal","fetchDocuments","documentsList","billDocuments","documents","billDoc","documentItem","pagination","no_documents_found_message","handleDocumentClick","bill_document_type","document_type","onDocumentClick","total_documents","modals","bill_documents","close","BillsTable","defaultSortField","default_bill_sort_field","unsortableColumns","columnAlignment","right","isAccountsModalOpen","toggleAccountsModal","handleAccountSelect","hasBills","bills","hasPayableBills","total_payable_bills","hasPayableDueBills","total_payable_due_bills","dropdownItemClasses","selectButton","selectEnabled","selectAllEnabled","selectAllDueEnabled","Button","select","onSelectAll","bills_table","select_all","onSelectAllDue","select_all_due","exportButton","exportEnabled","export","onExportCsv","csv","onExportPdf","pdf","btnGroupClass","filter","Filter","showDateFilter","showAddFilter","onAddFilter","filter_invoices","onFilter","noticeSource","bill_search_notice","filterLabels","onRemoveFilter","onRemoveAccountFilter","accountsModal","onAddAccountFilter","table","tableHeaders","tableRows","noResults","total_bills","handleRowClick","bill","alignmentClass","column","headerClass","sortClass","cellValue","cellValueContents","account_name","billDueDate","external_type","external_key","external_number","alternate_key","discountAmount","currency","discount_date","date_format_string","origin_date","original_amount","rollupContents","rollup_amount","external_code","showBillDocsLink","bill_documents_link_field","handleClick","showBillDocsLinkClick","onBillDocsLinkClick","stopPropagation","dueLabel","due","discount_amount","isDiscountExpired","due_label","sortColumn","sortBy","headerLabel","rowClass","tableData","view_only","newSortOrder","onSort","replace","items_per_page","onPage","current_page","BrandLink","logoImage","alt","logo_image_alt","longdesc","logo_image_description","src","logo","logoClass","linkContent","linkLabel","linkClass","defaultClass","logoLinkClass","linkTo","to","icon","buttonClasses","active","outline","ReactButton","color","node","Checkbox","ConfirmModal","ModalHeader","ModalBody","ModalFooter","action","buttonText","DatePickerComponent","DatePickerInput","datePickernotice","calendar","showCalendar","groupClass","for","onKeyDown","DocumentUploader","files","onDrop","handleRemove","fileArray","reader","FileReader","onload","fileAsDataURL","result","readAsDataURL","concat","newFiles","addDocs","dropzone","Dropzone","accept","uploadedFilesTable","charAt","toUpperCase","slice","deleteFile","index","splice","EmailConfirmationModal","emailConfirmationAddress","closeEmailConfirmationModal","sendEmailConfirmation","handleEmailConfirmationChange","sendEmailConfirmationForm","showConfirm","send_email_confirmation","confirmLabel","confirm","onConfirm","ExternalBillsTable","customComponent","externalKeyComponent","cssClassName","Object","keys","showAsLink","showBillExternalKeyAsLink","onBillExternalKeyClick","rowData","bill_documents_accessible","external_bills","total_items","external_bills_table","filter_bills","ExternalPaymentsTable","external_payments_external_type_label","external_payments_external_reference_label","external_payments","portal_external_payments_columns","external_payments_table","filter_payments","FallbackErrorBoundary","hasError","componentDidCatch","info","errorStyle","textAlign","paddingTop","margin","isDateModalOpen","toggleDateModal","startDateChanged","endDateChanged","clearDateFilter","submitDateFilter","filterLabel","componentWillMount","parseDates","dates","startDate","parseDate","endDate","dateString","trim","addFilter","dateFilter","dateModal","datepicker","dateModalContent","dateModalActions","clear","submit","searchNotice","removeFilter","ada_headers","search_bar","showSkipToMain","toggleLanding","toggleClass","navbar","Navbar","skipToMainButton","href","skip_to_main","layout","payer_layout","spinner","isLoaded","noEvent","handleConfirm","header","closeButton","confirmButton","footer","ReactModal","confirmClassName","confirmEnabled","navbarHeader","logoUrl","landing_logo_image_url","logo_image_url","biller","NavbarToggle","registrationLinkItem","user_registration_enabled","register","loginLinkItem","sign_in_label","navbarLinks","Popover","PopoverContent","ReactMarkdown","escapeHtml","scoreClasses","scoreBackgroundClasses","PasswordStrength","score","setPassword","changeCallback","labels","zxcvbn","containsDigits","test","containsUpper","containsLower","min_length","special_character","scoreWords","weak","okay","good","strong","stronger","scoreWord","notice","password_notice","inputProps","height","width","PayMethodAssignmentModal","formErrors","payMethodsTable","clearErrors","PayMethodsTable","payMethods","onPayMethodSelect","pay_methods","select_pay_method","PayMethodForm","routingErrorClass","accountNumErrorClass","accountNumConfErrorClass","isCheckHelpModalOpen","defaultCountry","pay_method_config","default_country_selection","achTabSelected","creditCardTabSelected","plastiqTabSelected","checkTabSelected","handleCountryChange","configureCreditCardClient","handleCreditCardResponse","toggleCheckHelpModal","handleBlur","handleCheckImage","newPayMethod","getNewPayMethod","setNewPayMethod","callback","isNewPayMethodValid","isAch","typeValid","ach_account_type","routingNumValid","ach_routing_num","accountNumValid","ach_account_num","confirmNumValid","ach_account_num_confirmation","valid","show_pay_method_payee_field","payeeNameValid","payee_name","isCreditCard","stripeEnabled","nameValid","name_on_card","addressValid","address_line_1","countryValid","country","stateValid","cityValid","city","zipValid","zip_code","cardValid","isCardValid","isCheck","checkFront","checkRear","isPlastiq","isEmailValid","card","cc_iframe_enabled","credit_card_number","cc_expiration","ccv_number","enabledTypesLength","creditCardEnabled","newCreditCardPayMethod","newAchPayMethod","ach_enabled","check_enabled","oneTimePayment","plastiqEnabled","tabs","payMethodToggle","payMethodTypeOptions","getNewPayMethodIcon","getNewPayMethodName","achOption","checkOption","creditCardOption","plastiqOption","ach_label","check_label","credit_card_label","plastiq_label","newCheckPayMethod","newPlastiqPayMethod","regex","registerNewPayMethod","onSuccess","refs","StripeForm","registerCreditCardSuccess","registerCreditCard","nickname","checkHelpModal","example_check_image_description","example_check_image_alt","example_check_image_url","disclosureLanguagueNotice","disclosure_language_notice","plastiqNotice","plastiq_pay_method_notice","stripeForm","stripeIntent","stripeKey","stripe_publishable_key","stripePromise","loadStripe","Elements","stripe","onError","achFields","nicknameField","payeeNameField","achAccountTypeField","achRoutingNumberField","achAccountNumberField","achAccountConfirmationField","checkingId","savingsId","labelClass","account_type","fieldClass","checked","checking","savings","classWithErrors","fieldClassState","ach_routing_num_label","autoComplete","ach_routing_example","checkHelpLink","ach_account_num_label","confirm_ach_account_num_label","showNicknameField","name_on_account","creditCardConfig","paypageId","vantiv_paypage_id","reportGroup","vantiv_report_group","merchant_id","cc_merchant_id","registration_endpoint","cc_registration_endpoint","showCvv","timeout","div","numYears","months","ccMonths","tooltipText","cvv","accountNumber","expMonth","expYear","placeholderText","creditCardClient","registerCard","orderId","valueOf","cardData","formatResponse","credit_card","error_messages","CreditCardClient","address_line_2","creditCardFields","ccGeneralFieldset","ccBillingFieldset","ccCardInfoFieldset","general","billing","billing_information","ccNameOnCardField","ccAddress1Field","ccAddress2Field","ccCountryField","ccStateField","ccCityField","ccZipCodeField","ccCardInfoFields","ccCardNumberField","ccVerificationNumberField","ccExpirationField","credit_card_number_label","MaskedInput","mask","credit_card_security_number_label","credit_card_expiration_label","street_address_1","street_address_2","countryOptions","countries","code","getBillingLabelByOperationCountry","toLowerCase","stateOptions","find","checkFields","checkFrontButton","checkRearButton","iconType","capture","imageType","upload","plastiqFields","abilities","PayMethodModal","handlePayMethodChange","modal","Fragment","payMethodForm","newPayMethodMode","stripe_enabled","showDefaultColumn","typeComponent","expires","expirationComponent","defaultComponent","getPayMethodIcon","getPayMethodName","type_name","default","is_expired","expiration_info","initialSort","PaymentAmountInput","handleAmountChange","maxAmount","getMaxAmount","showWarning","maxPaymentAmount","getMaxPaymentAmount","maxDueAmount","getMaxDueAmount","maxOverBalance","getMaxBalanceAmount","amountLimits","min","max_payment_amount","parseFloat","balanceTolerance","over_balance_tolerance","duePercentage","due_amount_percentage_restriction","dueAmount","warning","WarningMessage","warningType","alignment","inputClasses","PaymentConfirmationMessage","messageClass","is_failed","payment_failure_message","already_confirmed","payment_confirmation_message","PaymentDetails","isNewAchPayMethod","isNewCreditCardPayMethod","isNewCheckPayMethod","isPlastiqPayMethod","confirmationNumberRow","confirmation_code","payment_confirmation","accountRow","bill_search_enabled","accountNumRow","receivable_account","accountLabelRow","hasFees","fees_total","subtotalRow","payment_subtotal","subtotal","feesRow","fees_label","fee_percentage","amountRow","payment_total","amountReasonRow","portalSplit","portal_splits_data","portal_splits","amountReason","different_amount_reason_required","amount_reason_label","paymentDateRow","payment_date","is_staged","same_day_payments_enforced","achAccountTypeRow","achRoutingNumberRow","achAccountNumberRow","maskedAchAccountNumber","ccPayMethodRow","pay_method_label","payMethodRow","getPayMethod","p","substring","numItemsRow","numItems","total_portal_splits","splits","num_items","statusRow","getStatus","is_processing","payment_status_processing","failureReasonRow","failure_reason","commentRow","comment","checkPayMethodRow","check","checkImagesRow","is","class","docItemsRow","portal_documents","docListItem","doc","display_name","text","PaymentForm","currentStep","lastStep","overPaymentAmountLimit","percentageRestrictionExceeded","negativeAmount","billsValid","lockdownDate","selectedPayMethodIsExpired","paymentAuthorizationChecked","isPlastiqConfirmationModalOpen","handleDateChange","editDetails","handleContinue","togglePayMethodModal","closePayMethodModal","handleNewPayMethodChange","onPaymentAuthChange","getPayMethods","formGroupClass","getFormGroupClass","getLabelClass","getFieldClass","paymentDocs","setDefaults","isPayMethodModalOpen","handleErrors","handleValidationChange","handleSavedPayment","handlePayMethods","handleSavedPayMethod","handleDocsChange","handleSplitUpdating","docsAdded","clearDocsAdded","payMethodId","getDefaultPayMethodId","paymentChanged","splitsChanged","splitsValid","savedPayment","selectedPayMethod","getSelectedPayMethod","plastiq_request_url","payMethodsChanged","ccEnabledChanged","filterPayMethods","setAvailablePayMethod","clearSavedPayMethod","possibleDueAmounts","toFixed","different_amount","newScheduledDate","getDefaultAmount","default_date_enabled","defaultPayMethod","newPayMethodId","is_credit_card","verticalLayout","stepClass","step","stepLink","steps","showSteps","done","isDateValid","blackoutDates","payment_blackout_config","blackout_dates","getPaymentDate","isDateLocked","enforce_due_date","areBillsInDateRage","fees_enabled","amountValid","dateValid","payMethodValid","commentValid","commentRequired","amountReasonPresent","splitNotUpdating","splitUpdating","onContinue","disableContinue","plastiqConfirmationEnabled","plastiq_confirmation_notice_enabled","togglePlastiqConfirmationModal","plastiqConfirmation","showErrors","headingText","payment_details","manage_portal_payment","manage_pay_method","no_pay_method_notice","formHeading","userDetails","showUserDetails","UserDetails","portal_ach_form_fields","accountDetails","accountDetailsClass","account_details","labelConfig","warningTargetClass","stateField","initialClass","warningClass","amountField","showAmountField","amountReasonField","errorClass","amount_reason_instruction","dateField","blackoutConfig","max_range","datePickerInput","blackout_weekends","payment_date_notice","payMethodField","payMethodSelect","newPayMethodButtonEnabled","payMethodOptions","newPayMethodButton","cc_enabled","onPayMethodError","documentsField","fileListItem","removePortalDoc","commentField","rows","payMethodExpiredMessage","pay_method_is_expired","negativeAmountMessage","negative_amount_message","discountDateWarning","due_date_warning","amountDiffersWarning","splits_invalid","expiredDiscountWarning","hasExpiredDiscount","expired_discount","blackedOutDateWarning","cant_be_on_holiday","paymentBalance","showBalance","payment_balance","amountValue","formActions","detailsSection","hiddenClass","detailsSectionContent","canManangePayments","confirmSection","translations","confirmText","confirm_payment_details","detailsText","submitText","submit_payment","plastiqText","continue_to_plastiq","headerText","paymentNeedsAuthorization","payment_authorization_checkbox_enabled","submitDisabled","submitting","edit_details","paymentAuthorizationContent","payment_authorization_checkbox_label","payment_authorization_checkbox_content","doneSection","printPaymentButton","onDone","onPrint","print","payMethodModal","onSubmitPayMethod","payMethodErrors","clearPayMethodErrors","plastiqConfirmationModal","plastiq_confirmation_notice","confirmation","updatePaymentAmount","getRecurrence","handleEndDateChange","goToSettings","newRecurence","dayOfMonthNotice","day_of_month_notice","setRecurrence","autopay","lockdown_autopay_amount","dayOfMonthFieldClass","dayOfMonthField","dayOfMonthSelect","dayOfMonthOptions","restriction","pay_date_restriction","daysArray","Array","getRestrictedDays","dueDate","subtract","isSame","paymentBreakdownField","showPaymentBreakdownOption","multipleBillsPerPaymentInput","singleBillPerPaymentInput","isChecked","single_bill_per_payment_label","multiple_bills_per_payment_label","hashHistory","endDateField","optional","isClearable","cancelButton","submitButton","allowCancel","onCancel","payment_settings","confirm_autopay","amountConfirmation","accountConfirmation","payMethodConfirmation","dayOfMonthConfirmation","endDateConfirmation","auto_pay","from","every_month_on_the","ordinal","ending_on","RecurrenceSettings","handleEdit","editButton","edit_autopay","onEdit","removeButton","remove_autopay","onRemove","dayOfMonthRow","recurs_on","endDateRow","ends","recurrenceDetails","dashboard","autopay_settings","getSpinnerSize","spinnerClass","spinnerIcon","SplitsTable","sortAscending","commentValue","editingCommentSplitId","editingAmountSplitId","handleFilterChange","onChangeDebounced","debounce","onAmountDebounced","applySortAndFilter","sortDataAscending","reverse","filterData","totalPages","filter_items","item","arr","deep","toString","indexOf","amountRowValue","loading","editEnabled","split_amount_edit_enabled","entryMode","bill_id","handleAmountBlur","negativeAllowed","abs","onAmountChange","onSplitChange","showDueLabel","handleSortChange","dataRow","infoRow","getRowClass","rowValue","tableRowData","payToAccountRowData","pay_to_account","billExternalKey","handleExternalKeyClick","getCellClass","showAmountReason","billAmount","pay_to_account_comment_required","pay_to_account_comment","commentExists","handleCommentChange","handleCommentBlur","pay_to_account_comment_instructions","reason","onAmountReasonChange","onAccountCommentChange","getPaginatedData","entryClass","getTableClass","arraySort","tableClass","total_displayed_splits","amountReasonRequired","Tab","handleTabClick","onSelect","linkClasses","TabSet","containerClasses","tabsClasses","justified","pills","updatePagination","Griddle","setFilter","griddleState","filteredResults","row","getColumns","_invert","externalSetPageSize","getExternalSortColumn","getExternalSortAscending","getTotalItems","getMaxPage","getColumnMetadata","metadata","customCompareFn","getColumnComponent","dateComponent","currencyComponent","rowMetadata","getRowMetadata","showPager","useGriddleStyles","tableClassName","getTableClassName","sortAscendingClassName","sortDescendingClassName","sortAscendingComponent","sortDescendingComponent","customNoDataComponent","noDataComponent","externalSortColumn","externalSortAscending","externalCurrentPage","externalMaxPage","setPage","bodyCssClassName","selectableClass","actionsAlign","oneOf","payerNameField","payerEmailField","accountExternalKeyField","UserDropdown","switchAccountLinkItem","toggleSwitchAccountModal","menu","switch_account","logoutLinkItem","logout","sign_out_label","exitLinkItem","exit_url","exit","exit_label","dropdownContents","disable_logout","focusable","toggleWithoutPayerInfo","toggleWithPayerInfo","showPayerInfo","UserForm","password_confirmation","emailPopoverOpen","passwordPopoverOpen","handlePasswordChange","toggleEmailPopover","emailNotice","register_account_notice","emailFieldClass","passwordField","password_validation_helper","showPasswordConfirmationWarning","passwordConfirmationWarning","sign_up","passwords_must_match","confirmPasswordField","confirm_password","passwordMessage","passwordValid","setUser","UsersTable","messageWellClass","LandingOption","wrapperClass","subHeading","LandingPage","optEnabled","one_time_payment_enabled","otpLinkEnabled","otp_landing_link_enabled","registrationEnabled","loginWrapperClass","offsetClass","optionsCount","loginOption","landing_sign_in_heading","landing_sign_in_sub_heading","registrationOption","landing_register_heading","landing_register_sub_heading","otpOption","landing_one_time_payment_heading","landing_one_time_payment_sub_heading","otp_button_text","logoLink","imgStyle","landing_logo_width","portal_title","landingOptions","landingNotice","landing_page_notice","inviteErrorMessage","portal_mailer","invite","expired_message","ForgotPasswordPage","clearPasswordReset","resetFooter","reset","resetForm","password_reset","reset_password","resetMessage","ResetMessage","resetPassword","LoginPage","clearLoginErrors","portal_payers","rememberMe","remember_me_enabled","login","remember_me","loginFooter","forgot_password","loginForm","sign_in_form","email_label","PasswordResetPage","clearPasswordResetErrors","getPasswordResetToken","updatePassword","password_reset_token","setPasswordReset","new_password","passwordMessageClass","confirm_new_password","update_password","passwordForm","passwordReset","successMessage","password_updated","passwordChangeRequiredMessage","password_change_required","reset_required","resetMessageFormFooter","return_to_sign_in","thanks","check_email","HelpPage","help_section_label","help_section_content","MenuItem","linkDescription","itemClass","PayerLayout","toggleMenu","logoutUrl","logout_url","userDropdown","hasMultipleDivisions","payer_navbar","brandLink","closeMenu","isCurrentPath","endsWith","dashboardLinkItem","menu_dashboard_label","menu_dashboard_description","autopayLinkItem","bill_recurrence_enabled","has_bill_recurrence_enabled_accounts","autopay_description","settingsLinkItem","menu_settings_label","menu_settings_description","accountLinkItem","account_tab_enabled","operator","portal_operator","menu_account_label","menu_account_description","helpLinkItem","help_section_enabled","help_section_description","getDocumentHeight","d","document","documentElement","body","offsetHeight","max","scrollHeight","hasClass","css","addClass","scrollTo","removeClass","payer_sidenav","switchAccountModal","SwitchAccountModal","app","isSwitchAccountModalOpen","divisions","division","link","BillRecurrenceForm","BillRecurrenceOverview","showSettings","isRemoveModalOpen","toggleSettings","toggleRemoveModal","removeSelectedAccount","toggleSelectedAccount","isAccountSelected","clearRecurrenceAccounts","checkForCreatedRecurrenceAccount","checkForDeletedRecurrenceAccount","createdRecurrenceAccount","clearCreatedRecurrenceAccount","deletedRecurrenceAccount","clearDeletedRecurrenceAccount","returnLink","settingsLink","onReturn","return_to_list","linkText","recurrenceAccounts","portal_accounts_manage_columns","autopay_accounts_heading","accountsActions","selectedAccount","addAccountButton","removeAccountButton","remove","portalAccounts","clearPortalAccounts","available_for_recurrence","recurrenceSettings","removeAccountModal","confirm_remove_header","confirm_remove_message","BillRecurrencePage","showForm","allowFormCancel","selectedRecurrence","isSubmitDisabled","selectRecurrence","filterRecurrences","pageRecurrences","sortRecurrences","toggleForm","toggleSelectedRecurrence","editRecurrence","removeSelectedRecurrence","returnToBillRecurrencesList","saveRecurrence","authorize","clearBillRecurrences","bill_recurrence_allowed","checkForRecurrences","checkForSavedRecurrence","checkForDeletedRecurrence","hasAccounts","billRecurrences","hasRecurrences","total_recurrences","recurrencesQuery","savedBillRecurrence","clearSavedBillRecurrence","deletedBillRecurrence","clearDeletedBillRecurrence","recurrenceForm","recurrencesTable","BillRecurrencesTable","portal_bill_recurrences_columns","recurrenceActions","recurrencesSortOrder","recurrenceOverview","removeRecurrenceModal","manage_autopay","sortable","recurrences","CARD_ELEMENT_OPTIONS","base","fontFamily","fontSmoothing","fontSize","invalid","iconColor","CardSection","CardElement","options","StripeCheckoutForm","async","elements","confirmCardSetup","payment_method","getElement","card_token","setupIntent","ElementsConsumer","resetScreen","types","setCurrentStep","payload","setPayment","PayMethodAPI","catch","ConfigAPI","UserSessionAPI","UserAPI","ResetPasswordAPI","EmailConfirmationAPI","clearUserErrors","setUserErrors","setPayMethodErrors","setPaymentErrors","setAccountsErrors","clearAccountsErrors","setOneTimePaymentErrors","clearOneTimePaymentErrors","then","fetchBillsOverview","BillAPI","selectBills","all","selectDueBills","clearSelectedBills","ReceivableAccountAPI","fetchReceivableAccount","PaymentAPI","createOneTimePayment","OneTimePaymentAPI","clearPayments","clearPaymentErrors","clearPayment","clearUpdatedUserCheck","clearSavedPayment","clearSavePayMethodErrors","clearDeletedPayMethod","billId","BillDocumentAPI","PayMethodAssignmentAPI","clearPayMethodAssignments","fetchExternalBillDocuments","clearBillDocuments","ExternalBillAPI","ExternalPaymentAPI","clearExternalPayment","clearDeletedPayment","BillRecurrenceAPI","fetchBillRecurrence","portalPayer","billRecurrenceId","RecurrenceAccountAPI","PortalAccountAPI","editBillRecurrence","AccountRecurrenceAPI","clearDeletedAccountRecurrence","PortalAgreementAPI","clearCreatedAccountRecurrence","PortalDocumentAPI","FETCH_PAYMENT","FETCH_PAYMENT_FULFILLED","FETCH_PAYMENT_PENDING","FETCH_PAYMENT_REJECTED","FETCH_STAGED_PAYMENT","FETCH_STAGED_PAYMENT_FULFILLED","FETCH_STAGED_PAYMENT_PENDING","FETCH_STAGED_PAYMENT_REJECTED","CONFIRM_PAYMENT","CONFIRM_PAYMENT_FULFILLED","CONFIRM_PAYMENT_PENDING","CONFIRM_PAYMENT_REJECTED","UPDATE_PAYMENT","UPDATE_PAYMENT_FULFILLED","UPDATE_PAYMENT_PENDING","UPDATE_PAYMENT_REJECTED","FETCH_SPLITS","FETCH_SPLITS_FULFILLED","FETCH_SPLITS_PENDING","FETCH_SPLITS_REJECTED","SAVE_SPLIT","SAVE_SPLIT_FULFILLED","SAVE_SPLIT_PENDING","SAVE_SPLIT_REJECTED","SAVE_SPLITS","SAVE_SPLITS_FULFILLED","SAVE_SPLITS_PENDING","SAVE_SPLITS_REJECTED","UPDATE_SPLIT","UPDATE_SPLIT_FULFILLED","UPDATE_SPLIT_PENDING","UPDATE_SPLIT_REJECTED","DELETE_SPLIT","DELETE_SPLIT_FULFILLED","DELETE_SPLIT_PENDING","DELETE_SPLIT_REJECTED","DELETE_ALL_SPLITS","DELETE_ALL_SPLITS_FULFILLED","DELETE_ALL_SPLITS_PENDING","DELETE_ALL_SPLITS_REJECTED","SUBSCRIBE","SUBSCRIBE_FULFILLED","SUBSCRIBE_PENDING","SUBSCRIBE_REJECTED","UNSUBSCRIBE","UNSUBSCRIBE_FULFILLED","UNSUBSCRIBE_PENDING","UNSUBSCRIBE_REJECTED","SET_SPLIT","SET_CREDIT_CARD_ENABLED","SET_SPLITS_VALID","SET_VIEW_ONLY","ADD_BILL_FILTER","REMOVE_BILL_FILTER","CLEAR_BILL_FILTERS","SET_ACTIVE_TAB","TOGGLE_MIX_KEY_MODAL","TOGGLE_REMOVE_ALL_CONFIRMATION_MODAL","TOGGLE_PLASTIQ_CONFIRMATION_MODAL","TOGGLE_CREDIT_CARD_MODAL","SET_CONFIRMATION_SPLIT","SET_SELECTED_SPLIT","SET_BILLS_QUERY","SET_SPLITS_QUERY","SET_BILLS_SORT_ORDER","SET_SPLITS_SORT_ORDER","SET_ACCOUNTS_QUERY","SET_ACCOUNTS_SORT_ORDER","SET_ACCOUNTS_PAGE","FETCH_PAY_TO_ACCOUNTS","FETCH_PAY_TO_ACCOUNTS_FULFILLED","FETCH_PAY_TO_ACCOUNTS_PENDING","FETCH_PAY_TO_ACCOUNTS_REJECTED","UNCONFIRM_PAYMENT","UNCONFIRM_PAYMENT_FULFILLED","UNCONFIRM_PAYMENT_PENDING","UNCONFIRM_PAYMENT_REJECTED","CLEAR_UNCONFIRMED_PAYMENT","CLEAR_ACCOUNT_RECURRENCE_ERRORS","HIDE_WELCOME","CREATE_REGISTRATION","CREATE_REGISTRATION_PENDING","CREATE_REGISTRATION_FULFILLED","CREATE_REGISTRATION_REJECTED","CREATE_REGISTRATION_ACCOUNT","CREATE_REGISTRATION_ACCOUNT_PENDING","CREATE_REGISTRATION_ACCOUNT_FULFILLED","CREATE_REGISTRATION_ACCOUNT_REJECTED","CREATE_USER","CREATE_USER_PENDING","CREATE_USER_FULFILLED","CREATE_USER_REJECTED","NEW_ACCOUNT","RESET_SCREEN","CLEAR_ERRORS","SET_ERRORS","SET_CURRENT_STEP","SET_ACCOUNT","SET_PAYMENT","TOGGLE_SWITCH_ACCOUNT_MODAL","FETCH_CONFIG","FETCH_CONFIG_PENDING","FETCH_CONFIG_FULFILLED","UPDATE_USER","UPDATE_USER_FULFILLED","UPDATE_USER_REJECTED","LOGIN","LOGIN_FULFILLED","LOGIN_PENDING","LOGIN_REJECTED","RESET_PASSWORD","RESET_PASSWORD_FULFILLED","RESET_PASSWORD_PENDING","RESET_PASSWORD_REJECTED","UPDATE_PASSWORD","UPDATE_PASSWORD_FULFILLED","UPDATE_PASSWORD_PENDING","UPDATE_PASSWORD_REJECTED","SEND_EMAIL_CONFIRMATION","SEND_EMAIL_CONFIRMATION_FULFILLED","SEND_EMAIL_CONFIRMATION_PENDING","SEND_EMAIL_CONFIRMATIO_REJECTED","CLEAR_PASSWORD_RESET","CLEAR_UPDATED_USER_CHECK","LOGOUT","LOGOUT_FULFILLED","LOGOUT_PENDING","LOGOUT_REJECTED","SESSION_TIMEOUT","SESSION_TIMEOUT_FULFILLED","SESSION_TIMEOUT_PENDING","SESSION_TIMEOUT_REJECTED","FETCH_BILLS_OVERVIEW","FETCH_BILLS_OVERVIEW_FULFILLED","FETCH_BILLS_OVERVIEW_PENDING","FETCH_BILLS_OVERVIEW_REJECTED","FETCH_BILLS","FETCH_BILLS_FULFILLED","FETCH_BILLS_PENDING","FETCH_BILLS_REJECTED","CLEAR_BILLS_DATA","SELECT_BILLS","SELECT_BILLS_FULFILLED","SELECT_BILLS_PENDING","SELECT_BILLS_REJECTED","CLEAR_SELECTED_BILLS","FETCH_ACCOUNTS","FETCH_ACCOUNTS_FULFILLED","FETCH_ACCOUNTS_PENDING","FETCH_ACCOUNTS_REJECTED","CLEAR_ACCOUNTS","FETCH_RECEIVABLE_ACCOUNT","FETCH_RECEIVABLE_ACCOUNT_FULFILLED","FETCH_PAYMENTS","FETCH_PAYMENTS_PENDING","FETCH_PAYMENTS_FULFILLED","FETCH_PAYMENTS_REJECTED","FETCH_OTP_BANK_NAME","FETCH_OTP_BANK_NAME_PENDING","FETCH_OTP_BANK_NAME_FULFILLED","FETCH_OTP_BANK_NAME_REJECTED","CLEAR_PAYMENTS","CLEAR_PAYMENT","CLEAR_SAVED_PAYMENT","SAVE_PAYMENT","SAVE_PAYMENT_PENDING","SAVE_PAYMENT_FULFILLED","SAVE_PAYMENT_REJECTED","FETCH_PAY_METHODS","FETCH_PAY_METHODS_FULFILLED","FETCH_PAY_METHODS_PENDING","FETCH_PAY_METHODS_REJECTED","SAVE_PAY_METHOD","SAVE_PAY_METHOD_FULFILLED","SAVE_PAY_METHOD_PENDING","SAVE_PAY_METHOD_REJECTED","CLEAR_SAVED_PAY_METHOD","CLEAR_DOCS_ADDED","DELETE_PAY_METHOD","DELETE_PAY_METHOD_PENDING","DELETE_PAY_METHOD_FULFILLED","DELETE_PAY_METHOD_REJECTED","CLEAR_DELETED_PAY_METHOD","FETCH_PORTAL_USERS","FETCH_PORTAL_USERS_FULFILLED","FETCH_PORTAL_USERS_PENDING","FETCH_PORTAL_USERS_REJECTED","FETCH_PAY_METHOD_ASSIGNMENTS","FETCH_PAY_METHOD_ASSIGNMENTS_FULFILLED","FETCH_PAY_METHOD_ASSIGNMENTS_PENDING","FETCH_PAY_METHOD_ASSIGNMENTS_REJECTED","CREATE_PORTAL_AGREEMENT","CREATE_PORTAL_AGREEMENT_FULFILLED","CREATE_PORTAL_AGREEMENT_PENDING","CREATE_PORTAL_AGREEMENT_REJECTED","CREATE_PORTAL_DOCUMENT","CREATE_PORTAL_DOCUMENT_FULFILLED","CREATE_PORTAL_DOCUMENT_PENDING","CREATE_PORTAL_DOCUMENT_REJECTED","DELETE_PORTAL_DOCUMENT","DELETE_PORTAL_DOCUMENT_FULFILLED","DELETE_PORTAL_DOCUMENT_PENDING","DELETE_PORTAL_DOCUMENT_REJECTED","CLEAR_PAY_METHOD_ASSIGNMENTS","CREATE_PAY_METHOD_ASSIGNMENT","CREATE_PAY_METHOD_ASSIGNMENT_FULFILLED","CREATE_PAY_METHOD_ASSIGNMENT_PENDING","CREATE_PAY_METHOD_ASSIGNMENT_REJECTED","DELETE_PAY_METHOD_ASSIGNMENT","DELETE_PAY_METHOD_ASSIGNMENT_FULFILLED","DELETE_PAY_METHOD_ASSIGNMENT_PENDING","DELETE_PAY_METHOD_ASSIGNMENT_REJECTED","FETCH_BILL_RECURRENCE","FETCH_BILL_RECURRENCE_PENDING","FETCH_BILL_RECURRENCE_FULFILLED","FETCH_BILL_RECURRENCE_REJECTED","FETCH_BILL_RECURRENCES","FETCH_BILL_RECURRENCES_PENDING","FETCH_BILL_RECURRENCES_FULFILLED","FETCH_BILL_RECURRENCES_REJECTED","CLEAR_BILL_RECURRENCES","FETCH_RECURRENCE_ACCOUNTS","FETCH_RECURRENCE_ACCOUNTS_PENDING","FETCH_RECURRENCE_ACCOUNTS_FULFILLED","FETCH_RECURRENCE_ACCOUNTS_REJECTED","CLEAR_RECURRENCE_ACCOUNTS","SAVE_BILL_RECURRENCE","SAVE_BILL_RECURRENCE_PENDING","SAVE_BILL_RECURRENCE_FULFILLED","SAVE_BILL_RECURRENCE_REJECTED","CLEAR_SAVED_BILL_RECURRENCE","FETCH_PORTAL_ACCOUNTS","FETCH_PORTAL_ACCOUNTS_PENDING","FETCH_PORTAL_ACCOUNTS_FULFILLED","FETCH_PORTAL_ACCOUNTS_REJECTED","CLEAR_PORTAL_ACCOUNTS","CREATE_RECURRENCE_ACCOUNT","CREATE_RECURRENCE_ACCOUNT_PENDING","CREATE_RECURRENCE_ACCOUNT_FULFILLED","CREATE_RECURRENCE_ACCOUNT_REJECTED","CLEAR_CREATED_RECURRENCE_ACCOUNT","DELETE_RECURRENCE_ACCOUNT","DELETE_RECURRENCE_ACCOUNT_PENDING","DELETE_RECURRENCE_ACCOUNT_FULFILLED","DELETE_RECURRENCE_ACCOUNT_REJECTED","CLEAR_DELETED_RECURRENCE_ACCOUNT","DELETE_BILL_RECURRENCE","DELETE_BILL_RECURRENCE_PENDING","DELETE_BILL_RECURRENCE_FULFILLED","DELETE_BILL_RECURRENCE_REJECTED","CLEAR_DELETED_BILL_RECURRENCE","EDIT_BILL_RECURRENCE","EDIT_BILL_RECURRENCE_PENDING","EDIT_BILL_RECURRENCE_FULFILLED","EDIT_BILL_RECURRENCE_REJECTED","CREATE_ACCOUNT_RECURRENCE","CREATE_ACCOUNT_RECURRENCE_PENDING","CREATE_ACCOUNT_RECURRENCE_FULFILLED","CREATE_ACCOUNT_RECURRENCE_REJECTED","CLEAR_CREATED_ACCOUNT_RECURRENCE","DELETE_ACCOUNT_RECURRENCE","DELETE_ACCOUNT_RECURRENCE_PENDING","DELETE_ACCOUNT_RECURRENCE_FULFILLED","DELETE_ACCOUNT_RECURRENCE_REJECTED","CLEAR_DELETED_ACCOUNT_RECURRENCE","FETCH_BILL_DOCUMENTS","FETCH_BILL_DOCUMENTS_FULFILLED","FETCH_BILL_DOCUMENTS_PENDING","FETCH_BILL_DOCUMENTS_REJECTED","CLEAR_BILL_DOCUMENTS","FETCH_EXTERNAL_BILLS","FETCH_EXTERNAL_BILLS_FULFILLED","FETCH_EXTERNAL_BILLS_PENDING","FETCH_EXTERNAL_BILLS_REJECTED","FETCH_EXTERNAL_PAYMENTS","FETCH_EXTERNAL_PAYMENTS_FULFILLED","FETCH_EXTERNAL_PAYMENTS_PENDING","FETCH_EXTERNAL_PAYMENTS_REJECTED","FETCH_EXTERNAL_PAYMENT","FETCH_EXTERNAL_PAYMENT_FULFILLED","FETCH_EXTERNAL_PAYMENT_PENDING","FETCH_EXTERNAL_PAYMENT_REJECTED","CLEAR_EXTERNAL_PAYMENT","DELETE_PAYMENT","DELETE_PAYMENT_PENDING","DELETE_PAYMENT_FULFILLED","DELETE_PAYMENT_REJECTED","CLEAR_DELETED_PAYMENT","CREATE_STRIPE_INTENT","CREATE_STRIPE_INTENT_FULFILLED","CREATE_STRIPE_INTENT_PENDING","CREATE_STRIPE_INTENT_REJECTED","wait","args","clearTimeout","apply","invertedObject","dateParam","match","RegExp","exec","search","decodeURIComponent","webpackContext","req","webpackContextResolve","__webpack_require__","o","Error","resolve"],"sourceRoot":""}