1(this["webpackJsonponline-banking-app"]=this["webpackJsonponline-banking-app"]||[]).push([[37,3,5],{1344:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(2),i=n(3),o=n(1390),r=n(1342),s=n.n(r),l=n(1359),c=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"getAccountTypeByName",value:function(e){for(var t in o.a)if(e===o.a[t])return t;return null}},{key:"isCreditCardLoanAccount",value:function(e){return o.a.CREDIT_CARD_LOAN===e.accountType}},{key:"isLOCAccount",value:function(e){return o.a.LINE_OF_CREDIT_LOAN===e.accountType}},{key:"isHomeEquityLoan",value:function(e){return o.a.HOME_EQUITY_LOAN===e.accountType}},{key:"isTCLCreditLineLoanAccount",value:function(e){return o.a.TCL_CREDIT_LINE===e.accountType}},{key:"isCreditCardAccountExceptTCL",value:function(e){return o.a.LINE_OF_CREDIT_LOAN===e.accountType||o.a.CREDIT_CARD_LOAN===e.accountType}},{key:"isCreditCardAccount",value:function(e){return o.a.LINE_OF_CREDIT_LOAN===e.accountType||o.a.TCL_CREDIT_LINE===e.accountType||o.a.CREDIT_CARD_LOAN===e.accountType}},{key:"isNewInstallmentLoan",value:function(e){return o.a.INSTALLMENT_LOAN===e.accountType}},{key:"isNewMortgageLoan",value:function(e){return o.a.MORTGAGE_LOAN===e.accountType||o.a.RESIDENTIAL_MORTGAGE_LOAN===e.accountType||o.a.COMMERCIAL_REFI_LOAN===e.accountType}},{key:"isMortgageLoan",value:function(e){return o.a.MORTGAGE_LOAN===e.accountType}},{key:"isNewOtherLoan",value:function(e){return o.a.CONSUMER_LOAN===e.accountType||o.a.COMMERCIAL_LOAN===e.accountType||o.a.TCL_MASTER===e.accountType||o.a.TCL_CREDIT_LINE===e.accountType||o.a.TCL_NOTE===e.accountType}},{key:"isLoanAccountExceptTCLNote",value:function(e){return o.a.INSTALLMENT_LOAN===e.accountType||o.a.RESIDENTIAL_MORTGAGE_LOAN===e.accountType||o.a.CONSUMER_LOAN===e.accountType||o.a.COMMERCIAL_LOAN===e.accountType||o.a.MORTGAGE_LOAN===e.accountType||o.a.COMMERCIAL_REFI_LOAN===e.accountType||o.a.HOME_EQUITY_LOAN===e.accountType||o.a.TCL_MASTER===e.accountType}},{key:"isTCLNoteAccount",value:function(e){return o.a.TCL_NOTE===e.accountType}},{key:"isLoanAccount",value:function(e){return o.a.INSTALLMENT_LOAN===e.accountType||o.a.RESIDENTIAL_MORTGAGE_LOAN===e.accountType||o.a.CONSUMER_LOAN===e.accountType||o.a.COMMERCIAL_LOAN===e.accountType||o.a.MORTGAGE_LOAN===e.accountType||o.a.COMMERCIAL_REFI_LOAN===e.accountType||o.a.HOME_EQUITY_LOAN===e.accountType||o.a.TCL_MASTER===e.accountType||o.a.TCL_NOTE===e.accountType}},{key:"isLoanAccountOrTCLCreditLine",value:function(e){return this.isLoanAccount(e)||o.a.TCL_CREDIT_LINE===e.accountType}},{key:"isSubLoanAccount",value:function(e){return this.isCreditCardAccount(e)||o.a.INSTALLMENT_LOAN===e.accountType||o.a.MORTGAGE_LOAN===e.accountType||o.a.TCL_NOTE===e.accountType}},{key:"isGeneralLedgerAccount",value:function(e){return o.a.GENERAL_LEDGER_ACCOUNT===e.accountType||o.a.GENERAL_LEDGER_CODE===e.accountType}},{key:"isInvestmentAccount",value:function(e){return this.isCertificateOfDeposit(e)||this.isCSICertificateOfDeposit(e)||this.isKeogh(e)||this.isRetirement401K(e)||this.isRetirementIRA(e)}},{key:"isCertificateOfDeposit",value:function(e){return o.a.CERT_OF_DEPOSIT===e.accountType}},{key:"isCSICertificateOfDeposit",value:function(e){return o.a.CSI_CERT_OF_DEPOSIT===e.accountType}},{key:"isKeogh",value:function(e){return o.a.KEOGH===e.accountType}},{key:"isRetirement401K",value:function(e){return o.a.RETIREMENT_401K===e.accountType}},{key:"isRetirementIRA",value:function(e){return o.a.RETIREMENT_IRA===e.accountType}},{key:"isMaturable",value:function(e){return o.a.RETIREMENT_IRA===e.accountType||o.a.CERT_OF_DEPOSIT===e.accountType||o.a.CSI_CERT_OF_DEPOSIT===e.accountType}},{key:"isSavings",value:function(e){return o.a.SAVINGS===e.accountType||o.a.MONEY_MARKET===e.accountType||this.isInvestmentAccount(e)}},{key:"isNewSavings",value:function(e){return o.a.SAVINGS===e.accountType||o.a.MONEY_MARKET===e.accountType}},{key:"isNewSavingMoneyMarket",value:function(e){return o.a.MONEY_MARKET===e.accountType}},{key:"isNewSavingSavings",value:function(e){return o.a.SAVINGS===e.accountType}},{key:"isChecking",value:function(e){return o.a.CHECKING===e.accountType}},{key:"getMaskedAccountNumber",value:function(e){var t;switch(e.accountType){case o.a.TCL_NOTE:t=this.maskAccountNumber(e.noteNumber);break;case o.a.TCL_CREDIT_LINE:t=this.maskAccountNumber(e.creditLineNumber);break;default:t=e.displayAccountNumber}return t}},{key:"maskAccountNumber",value:function(e){var t=e?e.length:0;return t>s.a.MAXIMUM_UNMASKED_ACCOUNT_NUMBER_LENGTH?"*"+e.substring(t-s.a.MAXIMUM_UNMASKED_ACCOUNT_NUMBER_LENGTH):e}},{key:"shouldShowRegdd",value:function(e,t){return t&&!this.isLoanAccount(e)&&!this.isCreditCardAccount(e)}},{key:"isIntraFIAccount",value:function(e){return e&&e.category&&e.category===l.a.RECIPIENT}},{key:"calculateTotalAmount",value:function(e){var t=0;return e&&e.forEach((function(e){t+=100*e.balance})),t=(t/100).toFixed(2)}},{key:"showPrimaryHolderIdInAccountDescription",value:function(e,t){if(e&&t){if(t.isUserCentricFI)return e.displayPrimaryHolderId&&!t.removeMemberNumber;var n=e.ownershipType===s.a.JOINT_ACCOUNT_OWNERSHIP_TYPE||e.ownershipType===s.a.CROSS_USER_ACCOUNT_OWNERSHIP_TYPE;return e.displayPrimaryHolderId&&!t.removeMemberNumber&&n}return!1}}]),e}()},1347:function(e,t){e.exports={history_event_category:"Account History",history_account_details_click:"See Account Details",history_account_change_click:"Changed Account",history_export_click:"Export",history_transfer_click:"Make a Transfer (History)",history_online_statements_click:"O
1nline Statements (History)",history_promo10_click:"Top Banner (History)",history_promo11_click:"Bottom Banner (History)",history_promo12_click:"Side Banner (History)",history_action_page_load:"Account History",home_event_category:"Home",home_action_pay_clicked_from_accounts:"Pay (Home) - ",home_action_pay_clicked_from_quickpeek:"Pay (Quick Peek) - ",home_action_accounts_quickpeek_clicked:"Quick Peek - ",home_action_transfer_clicked_from_accounts:"Make a Transfer (Home)",home_action_transfer_clicked_from_quickpeek:"Make a Transfer (Quick Peek)",home_action_history_clicked_from_accounts:"Go to History (Account Name)",home_action_history_clicked_from_quickpeek:"Go to History (Quick Peek)",home_action_promo1_clicked:"Promo 1",home_action_promo2_clicked:"Promo 2",home_action_promo3_clicked:"Promo 3",home_action_promo4_clicked:"Promo 4",home_action_go_to_mx_clicked:"OA - Go to Money Management",home_action_mx_singup_clicked:"OA - Money Management Sign-Up",home_action_mx_add_account_clicked:"OA - Add a Account",home_action_mx_quickpeek_clicked:"OA - Quick Peek - ",home_action_mx_transfer_clicked:"OA - Transfer",home_action_mx_transfer_clicked_from_quickpeek:"OA - Transfer (Quick Peek)",home_action_page_load:"Home",transfer_event_category:"Transfers",transfer_action_transfer_made:"Transfer Made",transfer_action_scheduled_transfer_made:"Transfer Made (SRT)",transfer_action_print_confirmation:"Print Confirmation",transfer_action_make_another_transfer:"Make another transfer",transfer_action_memo_used:"Memo Used",transfer_action_srt_once:"SRT - Change start date",transfer_action_srt_repeating:"SRT - Check repeating flag",transfer_action_overpayment_option_selected:"Overpayment option selected - ",transfer_action_intra_fi_recipient_selected:"Intra-FI recipient selected",transfer_action_from_account_selected:"From Account - ",transfer_action_to_account_selected:"To Account - ",transfer_action_add_recipient:"Add Recipient",transfer_action_page_load:"Transfers",srt_event_category:"Scheduled Recurring Transfers",srt_action_page_load:"Scheduled Recurring Transfers",srt_action_edit:"Edit SRT",srt_action_cancel_yes:"Cancel SRT - Yes",srt_action_cancel_no:"Cancel SRT - No",srt_action_delete_yes:"Delete Expired SRT - Yes",srt_action_delete_no:"Delete Expired SRT - No",srt_action_make_a_transfer:"Make a Transfer (SRT Page)",add_recipient_event_category:"Add Recipient",add_recipient_action_page_load:"Add Recipient",stop_payment_event_category:"Stop Payment",stop_payment_action_page_load:"Stop Payment",ols_event_category:"Online Statements",ols_page_action_load:"Online Statements",card_management_event_category:"Card Management",card_management_action_page_load:"Card Management",account_preferences_event_category:"Account Preferences",account_preferences_action_page_load:"Account Preferences"}},1348:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(2),i=n(3),o=n(76),r=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"logHomePageAction",value:function(e,t,n,a){var i={props:{prop12:t,eVar12:t,events:"event22",pageName:e},suite:n,site:"sdp",action:t,category:"home_page"};o.a&&o.a.trackEvent(i,a)}},{key:"logHistoryPageAction",value:function(e,t,n,a){var i={props:{prop19:t,eVar19:t,events:"event50",pageName:e},suite:n,site:"nhp",action:t,category:"history_page"};o.a&&o.a.trackEvent(i,a)}},{key:"logTransferPageAction",value:function(e,t,n,a){var i={props:{prop14:t,eVar14:t,events:"event31",pageName:e},suite:n,site:"transfer",action:t,category:"transfer_page"};o.a&&o.a.trackEvent(i,a)}},{key:"logSRTPageAction",value:function(e,t,n,a){var i={props:{prop31:t,eVar31:t,events:"event31",pageName:e},suite:n,site:"transfer",action:t,category:"srt_page"};o.a&&o.a.trackEvent(i,a)}},{key:"logPageLoadAction",value:function(e,t,n,a){var i={props:{prop24:t,eVar24:t,pageName:e},suite:n,site:"sdp",action:t,category:"page_load"};o.a&&o.a.trackEvent(i,a)}}]),e}()},1349:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(116),i=n(2),o=n(3),r=n(1435),s=n(1389),l=n(1381),c=n(1342),u=n.n(c),d=n(1344),p=n(1359),m=n(27),h=n.n(m),g=function(){function e(){Object(i.a)(this,e)}return Object(o.a)(e,null,[{key:"isSRT",value:function(e){var t=null,n=null,a=null;return e&&(t=e.startDate,n=e.frequency,h.a.isDate(t)?a=h()(t):h.a.isMoment(t)&&(a=t)),!!n||null!=a&&a.isAfter(h()(),"day")}},{key:"createSRTDateFilter",value:function(e){return function(t){switch(e.frequency){case s.a.FREQUENCY_ONCE:case s.a.FREQUENCY_DAILY:case s.a.FREQUENCY_QUARTERLY:case s.a.FREQUENCY_SEMIANNUALLY:case s.a.FREQUENCY_ANNUALLY:default:return!0;case s.a.FREQUENCY_MONTHLY:return 31===e.firstDay?t.date()===t.daysInMonth():t.date()===e.firstDay;case s.a.FREQUENCY_TWICEMONTHLY:return 31===e.firstDay||31===e.secondDay?t.date()===e.firstDay||t.date()===e.secondDay||t.date()===t.daysInMonth():t.date()===e.firstDay||t.date()===e.secondDay;case s.a.FREQUENCY_WEEKLY:case s.a.FREQUENCY_BIWEEKLY:case s.a.FREQUENCY_FOURWEEKS:case s.a.FREQUENCY_EIGHTWEEKS:return t.day()===e.dayOfWeek%7}}}},{key:"getFirstValidDateInRange",value:function(e,t,n){for(var a=e.clone().startOf("day");a.isSameOrBefore(t,"day");){if(n(a))return a;a.add(1,"days")}return null}},{key:"isPayInFullAndClose",value:function(e){return e===r.a.LOC_PAY_IN_FULL_AND_CLOSE}},{key:"isPayInFullWithoutClosing",value:function(e){return e===r.a.LOC_PAY_IN_FULL_WITHOUT_CLOSING}},{key:"isPayOffRequest",value:function(e){return e===r.a.LOC_PAY_IN_FULL_WITHOUT_CLOSING||e===r.a.LOC_PAY_IN_FULL_AND_CLOSE}},{key:"isValidIRA",value:function(e,t){return!(!e||!t||null==e.currentYearEligibleContribution&&null==e.lastYearEligibleContribution)}},{key:"canOverpay",value:function(e,t){return e&&(d.a.isLoanAccountOrTCLCreditLine(e)||d.a.isLOCAccount(e))&&t.loanPaymentOptionsByAccountType&&(d.a.isIntraFIAccount(e)||e.loanInfo&&null==e.loanInfo.paymentRule)}},{key:"canTransfer",value:function(e,t,n){if(e)return!1;if(n){var i,o=Object(a.a)(n);try{for(o.s();!(i=o.n()).done;){var r=i.value;if(r.displayFlag&&r.displayFlag.transferFrom)return!0}}catch(s){o.e(s)}finally{o.f()}return!1}return!1}},{key:"getFrequencyOptionLabel",value:function(e,t){return null==e&&(e=s.a.FREQUENCY_ONCE),t["
1srt_frequency_"+e]}},{key:"getFrequencyEndOptionLabel",value:function(e,t){return null==e&&(e=l.a.NO_END_DATE),t["srt_until_"+e]}},{key:"getDayOfMonthLabel",value:function(e,t){return t["month_day_"+e]}},{key:"getDayOfWeekLabel",value:function(e,t){return t["day_"+e]}},{key:"getSRTStartLabel",value:function(e,t){var n="";switch(e.frequency){case s.a.FREQUENCY_WEEKLY:case s.a.FREQUENCY_BIWEEKLY:case s.a.FREQUENCY_FOURWEEKS:case s.a.FREQUENCY_EIGHTWEEKS:n+=t.srt_on.toLowerCase()+" "+this.getDayOfWeekLabel(e.dayOfWeek,t);break;case s.a.FREQUENCY_MONTHLY:n+=t.srt_on_day_of_month+" "+this.getDayOfMonthLabel(e.firstDay,t);break;case s.a.FREQUENCY_TWICEMONTHLY:n+=t.srt_on_day_of_month+" "+this.getDayOfMonthLabel(e.firstDay,t)+" "+t.srt_and.toLowerCase()+" "+this.getDayOfMonthLabel(e.secondDay,t)}return n}},{key:"getSRTEndLabel",value:function(e,t){var n=t.srt_until.toLowerCase()+" ";switch(e.lifetype){case l.a.END_DATE:n+=e.endDate.format("MM/DD/YYYY");break;case l.a.NUMBER_OF_EXECUTIONS:var a=parseInt(e.numberOfExecutions);n+=a+" ",n+=1==a?t.srt_until_one_transfer:t.srt_until_multiple_transfers;break;default:n+=t.srt_until_noenddate}return n}},{key:"getFullSRTLabel",value:function(e,t){var n=this.getFrequencyOptionLabel(e.frequency,t),a=this.getSRTStartLabel(e,t);return a.length>0&&(n+=" "+a),n+=" "+this.getSRTEndLabel(e,t)}},{key:"getScheduledTransferFrequencyLabel",value:function(e,t){var n=this.getFrequencyOptionLabel(e.frequency,t);if(e.frequency===s.a.FREQUENCY_ONCE)return t.srt_just_once;var a=this.getSRTStartLabel(e,t);(a.length>0&&(n+=" "+a),e.frequency!==s.a.FREQUENCY_ONCE)&&(n+=" "+this.getSRTEndLabel(e,t));return n}},{key:"isEditableSRT",value:function(t,n,a,i,o,r,l,c,u){var m,g;if(u?(m=t.fromAccount,g=t.toAccount):(m=e.getTransferFromAccount(i,t.fromAccountId),t.toAccountId&&(g=e.getTransferToAccount(i,t.toAccountId)),t.recipientId&&(g=e.getTransferToRecipient(o,t.recipientId))),!m)return!1;if(!g&&!t.recipientId)return!1;if(!r){if(m.category===p.a.CROSS_USER_ACCOUNT)return!1;if(g.category===p.a.CROSS_USER_ACCOUNT)return!1}if(0!=t.paymentOption){if(!l)return!1;var v=!1;if(n&&g&&g.accountType&&d.a.getAccountTypeByName(g.accountType))e.processPaymentOptions(n[d.a.getAccountTypeByName(g.accountType)])[t.paymentOption]&&(v=!0);if(!v)return!1}return(t.frequency==s.a.FREQUENCY_ONCE||-1!=a.indexOf(t.frequency))&&((!g||!c||null==g.currentYearEligibleContribution&&null==g.lastYearEligibleContribution)&&!h()(t.transferDate,"MM-DD-YYYY").startOf("day").isSameOrBefore(h()().startOf("day")))}},{key:"getTransferToAccount",value:function(t,n){for(var a in t){var i=t[a];if(e.isTransferToAccount(i)&&i.id===n)return i}}},{key:"getTransferToRecipient",value:function(e,t){for(var n in e){var a=e[n];if(a.id===t)return a}}},{key:"getTransferFromAccount",value:function(t,n){for(var a in t){var i=t[a];if(e.isTransferFromAccount(i)&&i.id===n)return i}}},{key:"getPaymentOptionBits",value:function(e,t){var n=e[d.a.getAccountTypeByName(t)];return n?n.toString(2):""}},{key:"isTransferFromAccount",value:function(e){if(e.displayFlag&&e.displayFlag.transferFrom&&null!=e.availableBalance)return!0}},{key:"isBalanceAvailableToPayDown",value:function(e,t){return!!(t.availableBalance&&t.availableBalance>0&&t.availableBalance>=e)}},{key:"isTransferToAccount",value:function(e){if(e.displayFlag&&e.displayFlag.transferTo)return!0}},{key:"processPaymentOptions",value:function(e){var t={};t[r.a.PAY_INTEREST_ONLY]=!1,t[r.a.PAY_TO_PRINCIPAL]=!1,t[r.a.APPLY_EXTRA_TO_INTEREST]=!1,t[r.a.APPLY_EXTRA_TO_PRINCIPAL]=!1,t[r.a.PAY_ESCROW_ONLY]=!1,t[r.a.PAY_FEES]=!1,t[r.a.LOC_PAY_IN_FULL_WITHOUT_CLOSING]=!1,t[r.a.LOC_PAY_IN_FULL_AND_CLOSE]=!1;var n=function(e,n){"1"===e&&(t[n]=!0)};if(e)for(var a=e.toString(2),i=0,o=a.length;o>0;o--){var s=a.slice(o-1,o);switch(i){case 0:n(s,r.a.APPLY_EXTRA_TO_PRINCIPAL);break;case 1:n(s,r.a.APPLY_EXTRA_TO_INTEREST);break;case 2:n(s,r.a.PAY_TO_PRINCIPAL);break;case 3:n(s,r.a.PAY_INTEREST_ONLY);break;case 4:n(s,r.a.PAY_ESCROW_ONLY);break;case 5:n(s,r.a.PAY_FEES);break;case 6:n(s,r.a.LOC_PAY_IN_FULL_WITHOUT_CLOSING);break;case 7:n(s,r.a.LOC_PAY_IN_FULL_AND_CLOSE)}i++}return t}},{key:"isMultiPaymentEnabled",value:function(e,t){var n,a,i,o=t.customerType===u.a.BUSINESS.toLowerCase(),r="AUTO_ENROLL"===(null===(n=sessionStorage)||void 0===n?void 0:n.getItem("modernEnrollmentOption")),s="true"===(null===(a=sessionStorage)||void 0===a?void 0:a.getItem("modernCSSenabled"));return r&&s&&!o&&e&&d.a.isMortgageLoan(e)&&e.category&&e.category!==p.a.RECIPIENT&&e.category!==p.a.CROSS_USER_ACCOUNT&&t&&(null===t||void 0===t||null===(i=t.multiPaymentOptions)||void 0===i?void 0:i.isMultiPaymentEnabled)}},{key:"isMultiPaymentEnabledForNonMortgageAccounts",value:function(e,t){var n,a,i,o=t.customerType===u.a.BUSINESS.toLowerCase(),r="AUTO_ENROLL"===(null===(n=sessionStorage)||void 0===n?void 0:n.getItem("modernEnrollmentOption")),s="true"===(null===(a=sessionStorage)||void 0===a?void 0:a.getItem("modernCSSenabled"));return r&&s&&!o&&e&&!d.a.isMortgageLoan(e)&&t&&(null===t||void 0===t||null===(i=t.multiPaymentOptions)||void 0===i?void 0:i.isMultiPaymentEnabled)}},{key:"isMultiPaymentEnabledForCrossMortgageAccount",value:function(e,t){var n,a,i,o=t.customerType===u.a.BUSINESS.toLowerCase(),r="AUTO_ENROLL"===(null===(n=sessionStorage)||void 0===n?void 0:n.getItem("modernEnrollmentOption")),s="true"===(null===(a=sessionStorage)||void 0===a?void 0:a.getItem("modernCSSenabled"));return r&&s&&!o&&e&&d.a.isMortgageLoan(e)&&e.category==p.a.CROSS_USER_ACCOUNT&&t&&(null===t||void 0===t||null===(i=t.multiPaymentOptions)||void 0===i?void 0:i.isMultiPaymentEnabled)}},{key:"isMultiPaymentEnabledForIntraFIAccounts",value:function(e,t){var n,a,i,o=t.customerType===u.a.BUSINESS.toLowerCase(),r="AUTO_ENROLL"===(null===(n=sessionStorage)||void 0===n?void 0:n.getItem("modernEnrollmentOption")),s="true"===(null===(a=sessionStorage)||void 0===a?void 0:a.getItem("modernCSSenabled"));return r&&s&&!o&&e&&e.category==p.a.RECIPIENT&&t&&(null===t||void 0===t||null===(i=t.multiPaymentOptions)||void 0===i?void 0:i.isMultiPaymentEnabled)}},{key:"isMortgageLoanPastDue",value:function(e){var t,n=null===e||void 0===e||null===(t=e.loanInfo)||void 0===t?void 0:t.nextPaymentDate;return!(!n||!h()(n).startOf("day").isBefore(h()().startOf("day")))}},{key:"isMortgageLoanDueDateInFuture",value:function(e){var t,n=null===e||void 0===e||null===(t=e.loanInfo)||void 0===t?void 0:t.nextPaymentDate;return!(!n||!h()(n).startOf("day").isSameOrAfter(h()().startOf("day")))}}]),e}()},1359:function(e,t,n){"use strict";t.a=Object.freeze({DEPOSIT:"DEPOSIT",CHECKING:"CHECKING",SAVINGS:"SAVINGS",CREDIT_CARD:"CREDIT_CARD",LOAN:"LOAN",INVESTMENT:"INVESTMENT",TIERED_LOAN:"TIERED_LOAN",TCL_LOAN:"TCL_LOAN",TCL_CREDIT_LINE_LOAN:"TCL_CREDIT_LINE_LOAN",LOC_LOAN:"LOC_LOAN",GENERAL_LEDGER:"GENERAL_LEDGER",UNDEFINED:"UNDEFINED",RECIPIENT:"RECIPIENT",CROSS_USER_ACCOUNT:"CROSS_USER_ACCOUNT",JOINT_ACCOUNT_OWNERSHIP_TYPE:"JOINT",CROSS_USER_ACCOUNT_OWNERSHIP_TYPE:"CROSS"})},1361:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(2),i=n(3),o=n(5),r=n(6),s=n(0),l=n.n(s),c=n(531),u=n(25),d=n.n(u),p=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"render",value:function(){return l.a.createElement("span",{id:this.props.id?"formattedMoney"+this.props.id:null,
1style:{wordBreak:"keep-all"}},c.a.convertNumberToUSD(this.props.value,!0))}}]),n}(s.Component);p.propTypes={value:d.a.number.isRequired}},1368:function(e,t,n){"use strict";var a=n(2),i=n(3),o=n(89),r=n(1416),s=n(1342),l=n.n(s),c=n(238),u=null,d=function(){function e(){Object(a.a)(this,e),this.generateActions("getAccountsSucceeded","getAccountsFailed","setLoadingState")}return Object(i.a)(e,[{key:"getAccounts",value:function(e,t,n,a,i,o,s,d){var p=this,m=u=Date.now()+"-"+Math.random();return this.actions.setLoadingState.defer(s),r.a.getAccounts(e,t,n,a,i,s,d).then((function(e){if(m===u)if(null!==e&&e.status===l.a.HTTP_STATUS_OK&&c.a.verifyId(e.data.responseId)&&e.data.additionalParam===l.a.ACCOUNTS_RESPONSE_STATUS_PROCESSED){var t=o?e.data.recipientResponse:null;p.actions.getAccountsSucceeded.defer([e.data.accountsresponse,t,a&&i,s])}else p.actions.getAccountsFailed.defer([s]);return e})).catch((function(e){m===u&&p.actions.getAccountsFailed.defer(e)}))}},{key:"reset",value:function(){return u=null,!0}}]),e}();t.a=o.a.createActions(d)},1370:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(2),i=n(3),o=n(5),r=n(6),s=n(0),l=n.n(s),c=n(31),u=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"render",value:function(){return l.a.createElement("div",{style:{textAlign:"center"}},l.a.createElement(c.a,{name:"SmallLoader",size:"lg"}))}}]),n}(s.Component)},1381:function(e,t,n){"use strict";t.a=Object.freeze({NO_END_DATE:"noenddate",END_DATE:"enddate",NUMBER_OF_EXECUTIONS:"numberofexecutions"})},1382:function(e,t,n){"use strict";var a=n(18),i=n(2),o=n(3),r=n(89),s=n(1368),l=n(1342),c=n.n(l),u=function(){function e(){Object(i.a)(this,e),this.state={accounts:null,tinAccounts:{},recipients:null,accountDataStatus:c.a.LOADING,wasCrossUserRequestMade:!1},this.bindActions(s.a)}return Object(o.a)(e,[{key:"onSetLoadingState",value:function(e){this.setState({accounts:null,recipients:null,accountDataStatus:c.a.LOADING,accountsLocationId:e,wasCrossUserRequestMade:!1})}},{key:"onGetAccountsSucceeded",value:function(e){var t=Object(a.a)(e,4),n=t[0],i=t[1],o=t[2],r=t[3],s=this.state.tinAccounts;s[r]=n,this.setState({accounts:n,tinAccounts:s,recipients:i,accountDataStatus:c.a.SUCCESS,accountsLocationId:null,wasCrossUserRequestMade:o})}},{key:"onGetAccountsFailed",value:function(e){var t,n=this.state,a=n.failedLocations,i=void 0===a?[]:a,o=n.tinAccounts;Array.isArray(e)&&(o[t=e[0]]=[]),this.setState({accounts:null,tinAccounts:o,recipients:null,accountDataStatus:c.a.ERROR,failedLocations:[].concat(i,[t]),wasCrossUserRequestMade:!1})}},{key:"onReset",value:function(){this.alt.recycle(this)}}]),e}();t.a=r.a.createStore(u,"AccountStore")},1383:function(e,t,n){"use strict";var a=n(2),i=n(3),o=n(89),r=n(1496),s=n(1342),l=n.n(s),c=n(238),u=null,d=function(){function e(){Object(a.a)(this,e),this.generateActions("setLoadingState","getTransactionsSuccess","getTransactionsError","setFilter","setTransactionTypes","setSortOptions","setSelectedSortOptionKey","setTransactionDateRange","incrementTransactionsLimit","resetTransactionsLimit","setTransactionAmountRange")}return Object(i.a)(e,[{key:"getTransactions",value:function(e,t,n,a,i,o,s,d){var p=this,m=arguments.length>8&&void 0!==arguments[8]&&arguments[8],h=u=Date.now()+"-"+Math.random();return this.actions.setLoadingState.defer(m),r.a.getTransactions(e,t,n,a,i,o,s,d).then((function(e){h===u&&(null!=e&&e.status==l.a.HTTP_STATUS_OK&&c.a.verifyId(e.data.responseId)&&e.data.transactionsresponse&&!e.data.transactionsresponse.transactionserror?p.actions.getTransactionsSuccess.defer(e.data.transactionsresponse):p.actions.getTransactionsError.defer())})).catch((function(e){if(h===u)return p.actions.getTransactionsError.defer()}))}},{key:"reset",value:function(){return u=null,!0}}]),e}();t.a=o.a.createActions(d)},1389:function(e,t,n){"use strict";t.a=Object.freeze({FREQUENCY_ONCE:"onetime",FREQUENCY_DAILY:"daily",FREQUENCY_MONTHLY:"monthly",FREQUENCY_WEEKLY:"weekly",FREQUENCY_BIWEEKLY:"biweekly",FREQUENCY_FOURWEEKS:"every4weeks",FREQUENCY_EIGHTWEEKS:"every8weeks",FREQUENCY_TWICEMONTHLY:"twicemonthly",FREQUENCY_QUARTERLY:"quarterly",FREQUENCY_SEMIANNUALLY:"semiannually",FREQUENCY_ANNUALLY:"annually"})},1390:function(e,t,n){"use strict";t.a=Object.freeze({1:"CHECKING",0:"SAVINGS",2:"MONEY_MARKET",16:"CERT_OF_DEPOSIT",4:"KEOGH",8:"RETIREMENT_401K",32:"LINE_OF_CREDIT_LOAN",20:"CSI_CERT_OF_DEPOSIT",64:"CREDIT_CARD_LOAN",256:"MORTGAGE_LOAN",266:"RESIDENTIAL_MORTGAGE_LOAN",286:"HOME_EQUITY_LOAN",128:"INSTALLMENT_LOAN",138:"CONSUMER_LOAN",148:"COMMERCIAL_LOAN",276:"COMMERCIAL_REFI_LOAN",512:"GENERAL_LEDGER_ACCOUNT",513:"GENERAL_LEDGER_CODE",1024:"TCL_MASTER",1025:"TCL_CREDIT_LINE",1026:"TCL_NOTE",4096:"RETIREMENT_IRA","-1":"UNKNOWN",CHECKING:"CHECKING",SAVINGS:"SAVINGS",MONEY_MARKET:"MONEY_MARKET",CERT_OF_DEPOSIT:"CERT_OF_DEPOSIT",KEOGH:"KEOGH",RETIREMENT_401K:"RETIREMENT_401K",LINE_OF_CREDIT_LOAN:"LINE_OF_CREDIT_LOAN",CSI_CERT_OF_DEPOSIT:"CSI_CERT_OF_DEPOSIT",CREDIT_CARD_LOAN:"CREDIT_CARD_LOAN",MORTGAGE_LOAN:"MORTGAGE_LOAN",RESIDENTIAL_MORTGAGE_LOAN:"RESIDENTIAL_MORTGAGE_LOAN",HOME_EQUITY_LOAN:"HOME_EQUITY_LOAN",INSTALLMENT_LOAN:"INSTALLMENT_LOAN",CONSUMER_LOAN:"CONSUMER_LOAN",COMMERCIAL_LOAN:"COMMERCIAL_LOAN",COMMERCIAL_REFI_LOAN:"COMMERCIAL_REFI_LOAN",GENERAL_LEDGER_ACCOUNT:"GENERAL_LEDGER_ACCOUNT",GENERAL_LEDGER_CODE:"GENERAL_LEDGER_CODE",TCL_MASTER:"TCL_MASTER",TCL_CREDIT_LINE:"TCL_CREDIT_LINE",TCL_NOTE:"TCL_NOTE",RETIREMENT_IRA:"RETIREMENT_IRA",UNKNOWN:"UNKNOWN"})},1391:function(e,t,n){e.exports={"credit-card-radio-container":"Transfers_credit-card-radio-container__3ZY8x","credit-card-radio-button":"Transfers_credit-card-radio-button__1oYnx","other-amount-container":"Transfers_other-amount-container__2N5XZ","credit-card-radio-label":"Transfers_credit-card-radio-label__2XIVi","credit-card-currency-label":"Transfers_credit-card-currency-label___40O7","validation-error":"Transfers_validation-error__3_zzW","not-checked":"Transfers_not-checked__1OoQ4","other-amount-field":"Transfers_other-amount-field__24DRi","credit-card-amount-container":"Transfers_credit-card-amount-container__2I4Qd","amount-label":"Transfers_amount-label__1TJbz","transfers-form":"Transfers_transfers-form__CHw8N","server-error-container":"Transfers_server-error-container__26ixa","transfers-duplicate-tin-error":"Transfers_transfers-duplicate-tin-error__2lU6j","transfers-form-group":"Transfers_transfers-form-group__1yGHC","account-dropdown-container":"Transfers_account-dropdown-container__3RQ88","account-dropdown":"Transfers_account-dropdown__2z46F","account-selection":"Transfers_account-selection__h6doA","dropdown-item":"Transfers_dropdown-item__2LbY5","tin-location-selection":"Transfers_tin-location-selection__CPX20","account-dropdown-available-balance":"Transfers_account-dropdown-available-balance__WTnIx","selected-account-container":"Transfers_selected-account-container__3Y-yv","transfer-from-container":"Transfers_transfer-from-container__3Mp2E","transfer-to-container":"Transfers_transfer-to-container__3epu8","single-transfer-container":"Transfers_single-transfer-container__3WEcC","dropdown-menu":"Transfers_dropdown-menu__x8OlP","account-selection-view-loader":"Transfers_account-selection-view-loader__4J8d2","accounts-selection-view-loading-failed":"Transfers_accounts-selection-view-loading-failed__3RJUj","tin-label":"Transfers_tin-label__14rYA","transfer-from-label":"Transfers_transfer-from-label__ce9tW","transfer-to-label":"Transfers_transfer-to-label__SuWXa","transfer-tin-label":"Transfers_transfer-tin-label__29FD1","duplicate-account-error":"Transfers_duplicate-account-error__1h-Sb","transfer-from-control
1s":"Transfers_transfer-from-controls__1d_ty","transfer-to-controls":"Transfers_transfer-to-controls__2UPm7","single-transfer-controls":"Transfers_single-transfer-controls__3Y2L-","transfers-selection-cancel-container":"Transfers_transfers-selection-cancel-container__nzc-t","dropdown-label":"Transfers_dropdown-label__2NTLd","dropdown-label-container":"Transfers_dropdown-label-container__207SV","account-description":"Transfers_account-description__2CsrB","account-name":"Transfers_account-name__zPtHh","tin-name":"Transfers_tin-name__JPUhd","account-number":"Transfers_account-number__3WWYn","loan-info":"Transfers_loan-info__2PIZO","selected-account-balance":"Transfers_selected-account-balance__2sDZE","amount-container":"Transfers_amount-container__1TWeN","info-icon":"Transfers_info-icon__1h6fl","loan-payoff-amount-container":"Transfers_loan-payoff-amount-container__39902","transfer-button-container":"Transfers_transfer-button-container__1Elzb","memo-input-field":"Transfers_memo-input-field__zNpuj","memo-input-field-container":"Transfers_memo-input-field-container__3WTVb","add-recipient-page-link-container":"Transfers_add-recipient-page-link-container__2iprp","recipient-link-text":"Transfers_recipient-link-text__3jLO1","recipient-dropdown-item":"Transfers_recipient-dropdown-item__3mLLw","add-recipient-dropdown-item":"Transfers_add-recipient-dropdown-item__23hhm","recipient-dropdown-label":"Transfers_recipient-dropdown-label__5r1vi","feature-no-access-msg":"Transfers_feature-no-access-msg__2v1cU","sub-msg":"Transfers_sub-msg__3MO4b","feature-no-access-sub-msg":"Transfers_feature-no-access-sub-msg__242HU","feature-no-access-support-code":"Transfers_feature-no-access-support-code__3LE1Q","feature-not-available-msg":"Transfers_feature-not-available-msg__aCZf-","feature-not-available-support-code":"Transfers_feature-not-available-support-code__14uad","primary-error":"Transfers_primary-error__37JHE","transfers-container":"Transfers_transfers-container__1xY9b","regd-container":"Transfers_regd-container__1vo9u","account-dropdown-group":"Transfers_account-dropdown-group__1BD4n","contextual-message-container":"Transfers_contextual-message-container__22qM3","add-recipient-dropdown-link-container":"Transfers_add-recipient-dropdown-link-container__3eOvP","srt-options-container":"Transfers_srt-options-container__3BnU_",disabled:"Transfers_disabled__3HuZT","start-date-field":"Transfers_start-date-field__WK0JS","transfers-widget":"Transfers_transfers-widget__3XSCq","transfers-widget-header":"Transfers_transfers-widget-header__3ax9k","transfers-widget-links":"Transfers_transfers-widget-links__wZFHY","transfers-widget-link":"Transfers_transfers-widget-link__1ECpX","transfers-widget-hidden-header":"Transfers_transfers-widget-hidden-header__2PxV2"}},1399:function(e,t,n){"use strict";var a=n(2),i=n(3),o=n(89),r=n(1350),s=n(1342),l=n.n(s),c=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"getLocations",value:function(e,t,n,a){return t?r.a.get(e+l.a.URL_LOCATIONS,{_dc:Date.now(),rftoken:t,pageId:n,isPersonalTinEnabled:a,pageLoad:!0}):Promise.reject("Failed to retrieve rftoken.")}}]),e}(),u=n(238),d=null,p=function(){function e(){Object(a.a)(this,e),this.generateActions("getLocationsSucceeded","getLocationsFailed","setLoadingState","locationSelected","showView")}return Object(i.a)(e,[{key:"getLocations",value:function(e,t,n,a){var i=this,o=d=Date.now()+"-"+Math.random();return this.actions.setLoadingState.defer(),c.getLocations(e,t,n,a).then((function(e){if(o===d){if(null!==e&&e.status===l.a.HTTP_STATUS_OK&&u.a.verifyId(e.data.responseId)){var t=e.data.locationsresponse;return i.actions.getLocationsSucceeded.defer([t]),e}i.actions.getLocationsFailed.defer()}return e})).catch((function(e){o===d&&i.actions.getLocationsFailed.defer(e)}))}},{key:"selectLocation",value:function(e){this.actions.locationSelected.defer(e)}},{key:"reset",value:function(){return d=null,!0}}]),e}();t.a=o.a.createActions(p)},1402:function(e,t,n){e.exports={"stop-payment-form":"StopPayment_stop-payment-form__1OMJM","action-dropdown-group":"StopPayment_action-dropdown-group__1MDab","server-error-container":"StopPayment_server-error-container__2PsGT","stop-payment-disclosure-container":"StopPayment_stop-payment-disclosure-container__3DmCp","stop-payment-form-group":"StopPayment_stop-payment-form-group__3_K5H","form-group":"StopPayment_form-group__je2Er","account-dropdown-container":"StopPayment_account-dropdown-container__OO6nt","stop-payment-account-dropdown":"StopPayment_stop-payment-account-dropdown__2B_KI",bold:"StopPayment_bold__1bH-N","account-selection":"StopPayment_account-selection__k4l0w","
1selected-account-container":"StopPayment_selected-account-container__3tpU8","stop-payment-one-account-description-container":"StopPayment_stop-payment-one-account-description-container__17BBv","dropdown-label":"StopPayment_dropdown-label__13LRJ","dropdown-label-container":"StopPayment_dropdown-label-container__4kgyv","stop-payment-account-description":"StopPayment_stop-payment-account-description__Sd4qz","stop-payment-account-name":"StopPayment_stop-payment-account-name__3Fmqb","account-number":"StopPayment_account-number__2CMFR","stop-payment-dropdown-item":"StopPayment_stop-payment-dropdown-item__3vBkV","stop-payment-account-dropdown-item-container":"StopPayment_stop-payment-account-dropdown-item-container__15fwZ","selected-account-balance":"StopPayment_selected-account-balance__1w3MZ","check-number-container":"StopPayment_check-number-container__h2xnx","last-check-number-container":"StopPayment_last-check-number-container__3mRWn","payee-input-field-container":"StopPayment_payee-input-field-container__jnZOX","reason-input-field-container":"StopPayment_reason-input-field-container__13dqA","issued-date-container":"StopPayment_issued-date-container__3BPVG","info-icon":"StopPayment_info-icon__2wK5A","stop-payment-button-container":"StopPayment_stop-payment-button-container__OCoGn","stop-payment-one-account-container":"StopPayment_stop-payment-one-account-container__2L1rL","feature-no-access-msg":"StopPayment_feature-no-access-msg__1fcZ2","sub-msg":"StopPayment_sub-msg__2CCfH","feature-no-access-sub-msg":"StopPayment_feature-no-access-sub-msg__YyEtK","feature-no-access-support-code":"StopPayment_feature-no-access-support-code__29gz9","feature-not-available-msg":"StopPayment_feature-not-available-msg__2WnKZ","feature-not-available-support-code":"StopPayment_feature-not-available-support-code__2EXmk","primary-error":"StopPayment_primary-error__w9S75","accounts-error":"StopPayment_accounts-error__2VJWr","no-accounts":"StopPayment_no-accounts__1vCm4","single-check-radio-button":"StopPayment_single-check-radio-button__3M7Nk","multiple-check-radio-button":"StopPayment_multiple-check-radio-button__3GvBQ","muliple-check-radio-button":"StopPayment_muliple-check-radio-button__V-STi","single-check-radio-label":"StopPayment_single-check-radio-label__PYuhq","multiple-check-radio-label":"StopPayment_multiple-check-radio-label__1bYUi","checks-container":"StopPayment_checks-container__2uUOJ","stop-payment-form-first-row":"StopPayment_stop-payment-form-first-row__3Moun","multi-checkbox-container":"StopPayment_multi-checkbox-container__2aXtX","start-date-field":"StopPayment_start-date-field__1S75H","amount-container":"StopPayment_amount-container__3OZGQ","multiple-checks":"StopPayment_multiple-checks__3s_j9","check-number-input-field-container":"StopPayment_check-number-input-field-container__1DIPw","account-dropdown-group":"StopPayment_account-dropdown-group__6e6C_","one-account-form-group":"StopPayment_one-account-form-group__2nNWY","stop-payment-container":"StopPayment_stop-payment-container__2JWRc","check-container":"StopPayment_check-container__21nqP","checks-radio-container":"StopPayment_checks-radio-container__TG_eR","one-account-input-label":"StopPayment_one-account-input-label__182Kf",dropdown:"StopPayment_dropdown__rykr6","reason-input-field":"StopPayment_reason-input-field__1nX0j","payee-input-field":"StopPayment_payee-input-field__2JF9l"}},1409:function(e,t,n){"use strict";var a=n(18),i=n(2),o=n(3),r=n(89),s=n(1399),l=n(1342),c=n.n(l),u=function(){function e(){Object(i.a)(this,e),this.state={locations:null,locationDataStatus:c.a.LOADING,currentView:e.view.CURRENT_LOCATION},this.bindActions(s.a)}return Object(o.a)(e,[{key:"onSetLoadingState",value:function(){this.setState({locations:null,locationDataStatus:c.a.LOADING,currentView:e.view.CURRENT_LOCATION})}},{key:"onGetLocationsSucceeded",value:function(t){var n=Object(a.a)(t,1)[0],i=n&&n.length&&n[0];n.map((function(e){e.defaultLocation&&(i=e)})),this.setState({locations:n,defaultLocation:i,locationDataStatus:c.a.SUCCESS,currentView:e.view.CURRENT_LOCATION})}},{key:"onGetLocationsFailed",value:function(){this.setState({locations:null,locationDataStatus:c.a.ERROR,currentView:e.view.CURRENT_LOCATION})}},{key:"onLocationSelected",value:function(e){this.setState({defaultLocation:e})}},{key:"onShowView",value:function(e){this.setState({currentView:e})}},{key:"onReset",value:function(){this.alt.recycle(this)}}]),e}();u.view=Object.freeze({CURRENT_LOCATION:Symbol("Currently Selected Location View"),SELECT_LOCATION:Symbol("Location Selection View")}),t.a=r.a.createStore(u,"LocationStore")},1416:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(2),i=n(3),o=n(1350),r=n(1342),s=n.n(r),l=(n(32).a.configureMock((function(){return n.e(111).then(n.bind(null,1685))})),function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"getAccounts",value:function(e,t,n,a,i,r,l){return t?o.a.get(s.a.URL_ACCOUNTS,{getExportAccountNums:!0,pageId:n,allowAccountsCall:!0,getxuseraccts:a?"1":null,transfers_dis
1play_xuser_accounts:i,locationId:r,getAccountsForAllLocations:l},{rftoken:t}):Promise.reject("Failed to retrieve rftoken.")}}]),e}())},1417:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(43),i=n(22),o=n(2),r=n(3),s=n(89),l=n(1342),c=n.n(l),u=n(1383),d=100,p=function(){function e(){Object(o.a)(this,e),this.state={transactions:null,aggregateTransactions:[],invalidatedTransactions:!1,transactionsLimit:0,status:c.a.LOADING,filter:"",allowedTransactionTypes:{},sortOptions:{field:"",type:"",direction:""},dateRangeObj:{startDate:null,endDate:null,dateRange:null,isCustomDateRangeSet:null,dateRangeChangeAction:null},sortOptionKeys:"",amountRangeObj:{minAmount:null,maxAmount:null},emptyResultsFetchCount:0},this.bindActions(u.a)}return Object(r.a)(e,[{key:"onSetLoadingState",value:function(e){this.setState(Object(i.a)(Object(i.a)({transactions:null,status:c.a.LOADING},e&&{aggregateTransactions:[]}),{},{invalidatedTransactions:e},e&&{transactionsLimit:0,emptyResultsFetchCount:0}))}},{key:"onGetTransactionsSuccess",value:function(e){var t=[].concat(Object(a.a)(this.state.aggregateTransactions),Object(a.a)(e)),n=new Set(t.map((function(e){return e.storeId}))),i=Array.from(n).map((function(e){return t.find((function(t){return t.storeId===e}))})),o=0;o=e.length>=d||i.length-this.state.transactionsLimit>=d?d:i.length-this.state.transactionsLimit;var r=this.state.emptyResultsFetchCount;0===e.length?r+=1:r&&(r=0),this.setState({transactions:e,status:c.a.SUCCESS,aggregateTransactions:i,transactionsLimit:this.state.transactionsLimit+o,emptyResultsFetchCount:r})}},{key:"onGetTransactionsError",value:function(){this.setState({transactions:null,status:c.a.ERROR})}},{key:"onReset",value:function(){this.alt.recycle(this)}},{key:"onSetFilter",value:function(e){this.setState({filter:e,emptyResultsFetchCount:0})}},{key:"onSetTransactionTypes",value:function(e){this.setState({allowedTransactionTypes:e,emptyResultsFetchCount:0})}},{key:"onSetSortOptions",value:function(e){this.setState({sortOptions:e})}},{key:"onSetSelectedSortOptionKey",value:function(e){this.setState({sortOptionKeys:e})}},{key:"onSetTransactionDateRange",value:function(e){this.setState({dateRangeObj:e})}},{key:"onSetTransactionAmountRange",value:function(e){this.setState({amountRangeObj:e,emptyResultsFetchCount:0})}},{key:"onIncrementTransactionsLimit",value:function(e){var t=this.state.transactionsLimit+e;this.setState({transactionsLimit:t})}},{key:"onResetTransactionsLimit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;this.setState({transactionsLimit:e})}}]),e}();t.b=s.a.createStore(p,"TransactionStore")},1418:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(2),i=n(3),o=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"openPrintWindow",value:function(e){var t=window.open("","printWindow","width=800,height=600,resizable=no,scrollbars=yes,directories=no,menubar=yes,location=no,toolbar=no,status=no");t.document.write(e),t.document.close()}},{key:"generatePrintHTML",value:function(e,t,n){return'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"/><meta http-equiv="cache-control" content="no-cache no-store must-revalidate"/><meta http-equiv="pragma" content="no-cache"/><meta http-equiv="expires" content="Mon, 22 Jul 2002 11:12:01 GMT"/>'+(t?'<link href="'+t+'" rel="stylesheet" type="text/css" media="screen,print" />':"")+(e?"<title>"+e+"</title>":"")+"</head><body>"+n+'</body><script type="text/javascript">setTimeout(function() { window.print() }, 250);<\/script></html>'}}]),e}()},1419:function(e,t,n){e.exports={sortable:"Table_sortable__2_8nV","sort-arrow":"Table_sort-arrow__1Meww",ascending:"Table_ascending__2nnc6","loading-container":"Table_loading-container__32vvp","error-container":"Table_error-container__3PjlL","zero-data-container":"Table_zero-data-container__2CDx8","error-message":"Table_error-message__AToCK"}},1420:function(e,t,n){e.exports={pending:"TransactionsTable_pending__3W4sK","custom-content-row":"TransactionsTable_custom-content-row__2ko_r","inline-offer-row":"TransactionsTable_inline-offer-row__ufysp","amount-column":"TransactionsTable_amount-column__1kooH","balance-column":"TransactionsTable_balance-column__1XVJh","balance-disabled":"TransactionsTable_balance-disabled__uA15d",balance:"TransactionsTable_balance__1cZAV",credit:"TransactionsTable_credit__2E8Ug",checkListRow:"TransactionsTable_checkListRow__37SZs","description-image":"TransactionsTable_description-image__23EDM",description:"TransactionsTable_description__30IiL","image-row":"TransactionsTable_image-row__2Iv4G","deposit-image-row":"TransactionsTable_deposit-image-row__3Y190","image-icon":"TransactionsTable_image-icon__3eCA4","image-arrow-open":"TransactionsTable_image-arrow-open__3fW-q","image-arrow-closed":"TransactionsTable_image-arrow-closed__2rQTw","additional-details-section":"TransactionsTable_additional-details-section__1ZxHK","additional-details-container":"TransactionsTable_additional-details-container__1ET1R","additional-details-row":"TransactionsTable_additional-details-row__1xUnB",spacer:"TransactionsTable_spacer__1xcx0",label:"TransactionsTable_label__Kmy3m",value:"TransactionsTable_value__JtxW1","transaction-image":"TransactionsTable_transaction-image__2bMC1","image-container":"TransactionsTable_image-container__1zWIv","checkList-container":"TransactionsTable_checkList-container__2r4E5","loading-container":"TransactionsTable_loading-container__3E14l","error-container":"TransactionsTable_error-container__1oQtR","button-container":"TransactionsTable_button-container__Q6DgT",print:"TransactionsTable_print__3xGbF",close:"TransactionsTable_close__1NwUP","back-image":"TransactionsTable_back-image__bDTVN","depositImage-amount":"TransactionsTable_depositImage-amount__2av8t","pdf-link":"TransactionsTable_pdf-link__2-lJk","pdf-back-link":"TransactionsTable_pdf-back-link__2Jeo5","check-image":"TransactionsTable_check-image__2Dq3n"}},1435:function(e,t,n){"use strict";t.a=Object.freeze({PAY_INTEREST_ONLY:2,PAY_TO_PRINCIPAL:3,APPLY_EXTRA_TO_INT
1EREST:4,APPLY_EXTRA_TO_PRINCIPAL:5,PAY_ESCROW_ONLY:6,PAY_FEES:7,LOC_PAY_IN_FULL_WITHOUT_CLOSING:8,LOC_PAY_IN_FULL_AND_CLOSE:9,PAYMENT_OPTION_DEFAULT:0})},1437:function(e,t,n){e.exports={"account-selector-dropdown":"AccountDetails_account-selector-dropdown__-aF-C","tin-dropdown":"AccountDetails_tin-dropdown__35L-e","dropdown-selected-button":"AccountDetails_dropdown-selected-button__2IEmE","dropdown-selected-account-name":"AccountDetails_dropdown-selected-account-name__3NGPM","dropdown-selected-account-number":"AccountDetails_dropdown-selected-account-number__3A2Oi","dropdown-selected-account-holderId":"AccountDetails_dropdown-selected-account-holderId__2qFMh","dropdown-change-link":"AccountDetails_dropdown-change-link___2TtX","dropdown-item":"AccountDetails_dropdown-item__mCeM8","bottom-stroke":"AccountDetails_bottom-stroke__3NTXI","account-details":"AccountDetails_account-details__MLyII","button-class":"AccountDetails_button-class__32z0c","account-details-link":"AccountDetails_account-details-link__118H_","account-details-link-arrow":"AccountDetails_account-details-link-arrow__2m_DM","account-details-overview":"AccountDetails_account-details-overview__1Aaby","overview-item-container":"AccountDetails_overview-item-container__1wEAB","overview-item-label":"AccountDetails_overview-item-label__2GlGo","main-overview-item":"AccountDetails_main-overview-item__48iM1",panel:"AccountDetails_panel__3VxEq","panel-item-container":"AccountDetails_panel-item-container__R9eeq","panel-item-label":"AccountDetails_panel-item-label__26yAr","panel-item-value":"AccountDetails_panel-item-value__3yRMz","line-break-hostpromotions":"AccountDetails_line-break-hostpromotions__1Iaxz","account-details-promotionHeader":"AccountDetails_account-details-promotionHeader__1Spbl","group-dotted-spacer":"AccountDetails_group-dotted-spacer__6E72X","print-close-buttons":"AccountDetails_print-close-buttons__QCNmq","dotted-spacer":"AccountDetails_dotted-spacer__M0ee5","account-details-link-sibling-spacer":"AccountDetails_account-details-link-sibling-spacer__3alcC","overview-item-value":"AccountDetails_overview-item-value__XGst1","account-details-dropdown":"AccountDetails_account-details-dropdown__f_IPO"}},1448:function(e,t,n){"use strict";var a=n(3),i=n(2),o=n(89),r=(n(1342),Object(a.a)((function e(){Object(i.a)(this,e),this.generateActions("selectAccount","reset","loaded","resetAccount")})));t.a=o.a.createActions(r)},1456:function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var a=n(2),i=n(3),o=n(5),r=n(6),s=n(0),l=n.n(s),c=n(25),u=n.n(c),d=n(81),p=n(834),m=n(849),h=n(31),g=n(467),v=n(1461),f=n.n(v),_=n(1391),b=n.n(_),C=n(1402),y=n.n(C),D=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props,t=e.location,n=e.label,a=e.useBranding&&"brand-link";return l.a.createElement("div",{className:"tin-description-container"},n&&l.a.createElement("span",{className:"tin-label "+f.a["tin-id-label"]},n),l.a.createElement("span",{className:"tin-location-name ".concat(a)},t&&t.locationName))}}]),n}(s.Component);D.propTypes={label:u.a.string,location:u.a.object.isRequired};var S=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props.responsive;return l.a.createElement("div",{className:f.a["tin-dropdown"]+" tin-dropdown-target-cls"},e?this._renderResponsiveDropdown():this._renderDropdown())}},{key:"_renderDropdown",value:function(){var e=this.props,t=e.locations,a=e.onSelect,i=e.i18nStrings,o=e.bsStyle,r=e.disabled,s=e.showError,c=t.map((function(e,t){return l.a.createElement(d.MenuItem,{key:e.productUserGuid,eventKey:t,onSelect:a},l.a.createElement("span",null,e.locationName))}));return l.a.createElement("span",null,l.a.createElement(p.a,{id:this.props.id?this.props.id:null,ariaLabel:(this._renderDropdownTitle().props.label?this._renderDropdownTitle().props.label:"")+(void 0===this.props.id||"SRTLoc"===this.props.id?"":this.props.id)+this._renderDropdownTitle().props.location.locationName,bsStyle:o,disabled:r,title:t.length&&this._renderDropdownTitle()||i.sdp_location_label},c),s&&n._renderDuplicateTinError(this.props.id,i))}},{key:"_renderDropdownTitle",value:function(){var e=this.props,t=e.defaultLocation,n=e.hideTINLabel,a=e.i18nStrings;return l.a.createElement(D,{label:!n&&a.sdp_location_label,location:t})}},{key:"_renderResponsiveDropdown",value:function(){var e=this,t=this.props,a=t.label,i=t.configs,o=t.variationType,r=t.locations,s=t.i18nStrings,c=t.navDown,u=t.showLoading,d=t.showError,p=t.onSelect,h=t.defaultLocation,g=n._renderLocationDropdownItems(r,h,!0);return l.a.createElement(m.a,{id:this.props.id?this.props.id:null,label:a,variationType:o,onSelect:p,selectedItem:r.length&&this._renderResponsiveDropdownTitle()||s.sdp_location_label,navDown:c,showLoading:u,loadingMessage:"",height:250,showError:d,showBorders:!0,configs:i,ref:function(t){e.locationSlideTransitionDropdown=t}},g)}}
1,{key:"focusSlideTransitionDropdownButton",value:function(){this.locationSlideTransitionDropdown&&this.locationSlideTransitionDropdown.focusSlideTransitionItem()}},{key:"_renderResponsiveDropdownTitle",value:function(){var e=this.props.defaultLocation,t="locationDescription"+e.productUserGuid+(this.props.id||""),n=l.a.createElement(D,{id:t,useBranding:!0,location:e});return l.a.createElement("div",{className:f.a["tin-responsive-dropdown-title"]+" "+b.a["selected-account-container"]},l.a.createElement("button",{className:"toggle"},l.a.createElement("div",{className:"dropdown-label-container "+b.a["dropdown-label-container"]},l.a.createElement("span",{className:"ddlabel "+b.a["dropdown-label"]},n),l.a.createElement(h.a,{name:"Sort",width:"16px",height:"16px"}))))}}],[{key:"_renderLocationDropdownItems",value:function(e,t,n){var a=t,i=n?g.a:d.MenuItem;return e.map((function(e){var t=a&&e&&a.productUserGuid===e.productUserGuid;return l.a.createElement(i,{key:e.productUserGuid,className:b.a["dropdown-item"],dataOnSelect:e,active:t},l.a.createElement("div",{className:y.a["stop-payment-account-dropdown-item-container"]},l.a.createElement("span",null,e.locationName)))}))}},{key:"_renderDuplicateTinError",value:function(e,t){return l.a.createElement("div",{role:"alert","aria-live":"assertive","aria-atomic":"true",className:b.a["transfers-duplicate-tin-error"]},l.a.createElement("div",{id:"tinDropdownErrorMessage"+(e||""),className:"text-danger"},l.a.createElement(h.a,{name:"AlertError"}),"\xa0",t.transfers_no_duplicates_tin))}}]),n}(s.Component);S.defaultProps={locations:[],defaultLocation:0,responsive:!1},S.propTypes={locations:u.a.arrayOf(u.a.object).isRequired,defaultLocation:u.a.object,showError:u.a.bool,onSelect:u.a.func,responsive:u.a.bool,hideTINLabel:u.a.bool,bsStyle:u.a.string,i18nStrings:u.a.object.isRequired}},1459:function(e,t,n){"use strict";var a=n(2),i=n(3),o=n(89),r=n(1496),s=n(1342),l=n.n(s),c=n(238),u=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,[{key:"showQuickPeek",value:function(e){return e}},{key:"closeQuickPeek",value:function(){return""}},{key:"getTransactions",value:function(e,t,n,a,i,o,s,l,c,u){var d=this;c?u?r.a.getMxOutsideAccountsTransactions(e,t,n,a,i,o,s,l).then((function(e){d.actions.handleOutsideAccountsResponse(e)})).catch((function(e){return d.actions.getTransactionsFailed(e)})):r.a.getOutsideAccountsTransactions(e,t,n,a,i,o,s,l).then((function(e){d.actions.handleOutsideAccountsResponse(e)})).catch((function(e){return d.actions.getTransactionsFailed(e)})):r.a.getTransactions(e,t,n,a,i,o,s,l).then((function(e){d.actions.handleResponse(e)})).catch((function(e){return d.actions.getTransactionsFailed(e)}))}},{key:"handleResponse",value:function(e){return null!=e&&e.status==l.a.HTTP_STATUS_OK&&null!=e.data&&c.a.verifyId(e.data.responseId)?this.actions.getTransactionsSucceeded(e.data):this.actions.getTransactionsFailed(e)}},{key:"handleOutsideAccountsResponse",value:function(e){return null!=e&&e.status==l.a.HTTP_STATUS_OK&&null!=e.data&&c.a.verifyId(e.data.userGuid)?this.actions.getTransactionsSucceeded(e.data):this.actions.getTransactionsFailed(e)}},{key:"getTransactionsSucceeded",value:function(e){return e}},{key:"getTransactionsFailed",value:function(e){return e}}]),e}();t.a=o.a.createActions(u)},1461:function(e,t,n){e.exports={"tin-dropdown":"TINDropdown_tin-dropdown__30O0u","tin-dropdown-title":"TINDropdown_tin-dropdown-title__3K-Mv","tin-location-name":"TINDropdown_tin-location-name__2QJT_","tin-responsive-dropdown-title":"TINDropdown_tin-responsive-dropdown-title__3IehK","tin-id-label":"TINDropdown_tin-id-label__1rKGZ","tin-selection-cancel-button":"TINDropdown_tin-selection-cancel-button__28aLW"}},1480:function(e,t,n){"use strict";var a=n(2),i=n(3),o=n(89),r=n(1350),s=n(1342),l=n.n(s),c=(n(1354),function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"getPromotions",value:function(e,t,n){var a={component:n};return r.a.postFormData(e+s.URL_PROMOTIONS,a,{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8",rftoken:t})}}]),e}()),u=(n(0),function(){function e(){Object(a.a)(this,e)}
1return Object(i.a)(e,null,[{key:"configurePromotion",value:function(e,t,n,a){var i=window.location.hostname,o=window.location.origin,r=null!=t&&t.length>4?t.slice(-4):t,s=i+a,l=o+a;promotion.configure({guid:e,fiid:r,causataServerUrl:l}),jsHub.configure("causata-transport",{server:s}),jsHub.configure("causata-transport.account",r)}},{key:"initiateTracking",value:function(e,t,n){var a=[];n.forEach((function(e){if(e.name){var t={};t.slot=e.location,t["cmp-scid"]=e.name,a.push(t)}})),a.length>0&&a.forEach((function(e){promotion.recordImpression({campaignName:e["cmp-scid"],pageName:t,location:e.slot})}))}},{key:"showPromotions",value:function(e,t){if(null!=e&&null!=e.innerHTML&&""!=e.innerHTML&&null!=t&&t.length>0&&"My Settings"!=e.innerHTML){for(var n in t)if(t[n].appCode&&t[n].appCode===e.innerHTML)return!0;return!1}return!0}},{key:"initialize",value:function(e,t,n,a){if("undefined"!=typeof jsHub&&"undefined"!=typeof promotion&&null!=a){var i=null,o=null,r=[];for(var s in a)a.hasOwnProperty(s)&&null!=a[s]&&(null==i&&(i=a[s].trackingServerHost),null==o&&(o=a[s].trackingURI),r.push(a[s]));o&&(this.configurePromotion(t,e,i,o),this.initiateTracking(t,n,r))}}}]),e}()),d=null,p=function(){function e(){Object(a.a)(this,e),this.generateActions("getPromotionsSuccess","getPromotionsError","setLoadingState")}return Object(i.a)(e,[{key:"getPromotions",value:function(e,t,n,a,i,o){var r=this,s=d=Date.now()+"-"+Math.random();return this.actions.setLoadingState.defer(),c.getPromotions(e,t,i).then((function(e){if(s===d)if(e&&e.status==l.a.HTTP_STATUS_OK){var t={},c=document.createElement("html");for(var p in e.data)if(e.data.hasOwnProperty(p)&&null!=e.data[p]){c.innerHTML=e.data[p].content;var m=c.getElementsByTagName("di-appcode")[0];u.showPromotions(m,o)&&(t[p]=e.data[p])}r.actions.getPromotionsSuccess.defer(t),u.initialize(n,a,i,t,o)}else r.actions.getPromotionsError.defer()})).catch((function(e){s===d&&r.actions.getPromotionsError.defer()}))}},{key:"reset",value:function(){return d=null,!0}}]),e}();t.a=o.a.createActions(p)},1481:function(e,t,n){"use strict";var a=n(2),i=n(3),o=n(89),r=n(1350),s=n(1342),l=n.n(s),c=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"getZones",value:function(e,t){return r.a.get(s.URL_SEGMINT_OFFERS,{component:t},{rftoken:e})}}]),e}(),u=null,d=function(){function e(){Object(a.a)(this,e),this.generateActions("getZonesSuccess","getZonesError","setLoadingState")}return Object(i.a)(e,[{key:"getZones",value:function(e,t){var n=this,a=u="".concat(Date.now(),"-").concat(Math.random());return this.actions.setLoadingState.defer(),c.getZones(e,t).then((function(e){if(a===u)if(e&&e.status===l.a.HTTP_STATUS_OK&&e.data){var t=e.data.reduce((function(e,t){return e[t.locationId]=t.offers,e}),{});n.actions.getZonesSuccess.defer(t)}else n.actions.getZonesError.defer()})).catch((function(e){console.log(e),a===u&&n.actions.getZonesError.defer()}))}},{key:"reset",value:function(){return u=null,!0}}]),e}();t.a=o.a.createActions(d)},1496:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(2),i=n(3),o=n(1350),r=n(1342),s=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"getTransactions",value:function(e,t,n,a,i,s,l,c){return o.a.get(r.URL_TRANSACTIONS,{accountId:n,dateRangeStart:a,dateRangeEnd:i,pageId:c,locationId:s,locationName:l},{"Content-Type":"application/json",rftoken:t})}},{key:"getOutsideAccountsTransactions",value:function(e,t,n,a,i,s,l,c){return o.a.postFormData(r.URL_OUTSIDE_ACCOUNTS_TRANSACTIONS,{accountId:n,dateRangeStart:a,dateRangeEnd:i,pageId:c,locationId:s,locationName:l},{rftoken:t})}},{key:"getMxOutsideAccountsTransactions",value:function(e,t,n,a,i,s,l,c){return o.a.postFormData(r.URL_MX_OUTSIDE_ACCOUNTS_TRANSACTIONS,{accountId:n,dateRangeStart:a,dateRangeEnd:i,pageId:c,locationId:s,locationName:l},{rftoken:t})}}]),e}()},1497:function(e,t,n){"use strict";var a=n(2),i=n(3),o=n(89),r=(n(1342),n(1448)),s=function(){function e(){Object(a.a)(this,e),this.state={selectedAccount:null,loaded:!1},this.bindActions(r.a)}return Object(i.a)(e,[{key:"onSelectAccount",value:function(e){this.setState({selectedAccount:e})}},{key:"onLoaded",value:function(e){this.setState({loaded:!0,selectedAccount:e})}},{key:"onResetAccount",value:function(){this.setState({selectedAccount:null})}},{key:"onReset",value:function(){this.alt.recycle(this)}}]),e}();t.a=o.a.createStore(s,"AccountHistoryStore")},1499:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(2),i=n(3),o=n(5),r=n(6),s=n(0),l=n.n(s),c=(n(25),n(1342)),u=n.n(c),d=(n(1419),function(e){var t;return(t=function(t){Object(o.a)(s,t);var n=Object(r.a)(s);function s(e){return Object(a.a)(this,s),n.call(this,e)}return Object(i.a)(s,[{key:"render",value:function(){return this.props.tableRow?l.a.createElement("tbody",null,l.a.createElement("tr",{className:this.props.tableRowClassName},l.a.createElement("td",{colSpan:u.a.SPAN_ALL_COLUMNS},l.a.createElement(e,this.props)))):l.a.createElement(e,this.props)}}]),s}
1(s.Component)).displayName="TableRowHOC",t})},1500:function(e,t,n){"use strict";var a=n(2),i=n(3),o=n(5),r=n(6),s=n(0),l=n.n(s),c=n(25),u=n.n(c),d=n(1419),p=n.n(d),m=n(31),h=n(1499),g=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){p.a["zero-date-container"];this.props.className&&this.props.className;var e="";return e=this.props.svgName?this.props.svgName:"Accounts",l.a.createElement("div",{className:p.a["zero-data-container"]+" print-table-zero-data-container",role:"alert","aria-live":"assertive","aria-atomic":"false"},l.a.createElement(m.a,{className:"brand-type-a-10p",name:e,width:60,height:60}),l.a.createElement("h4",null,this.props.messages.noData))}}]),n}(s.Component);g.PropTypes={messages:u.a.shape({noData:u.a.string.isRequired}).isRequired,svgName:u.a.string,className:u.a.string,tableRow:u.a.bool,tableRowClassName:u.a.string},t.a=Object(h.a)(g)},1538:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(2),i=n(3),o=n(5),r=n(6),s=n(0),l=n.n(s),c=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.props.componentHide&&this.props.componentHide()}},{key:"render",value:function(){return l.a.createElement("div",{className:"di-container"},l.a.createElement("div",null,this.props.id))}}]),n}(s.Component)},1539:function(e,t,n){e.exports={container:"CalculatorContainer_
1container__3XjFs",heading:"CalculatorContainer_heading__309uj",pointer:"CalculatorContainer_pointer__3HUwq"}},1540:function(e,t,n){"use strict";var a=n(2),i=n(3),o=n(89),r=n(1459),s=n(1342),l=n.n(s),c=function(){function e(){Object(a.a)(this,e),this.state={status:null,transactions:null,account:null,show:!1},this.bindActions(r.a)}return Object(i.a)(e,[{key:"onShowQuickPeek",value:function(e){this.setState({account:e.account,isOutsideAccount:e.isOutsideAccount,isMx:e.isMx,show:!0,status:l.a.LOADING,outsideAccountsA2aEnabled:e.a2aEnabled,outsideAccountsA2aURL:e.a2aURL})}},{key:"onGetTransactionsSucceeded",value:function(e){this.setState({transactions:e,status:l.a.SUCCESS})}},{key:"onGetTransactionsFailed",value:function(e){this.setState({transactions:null,status:l.a.ERROR})}},{key:"onCloseQuickPeek",value:function(){this.setState({transactions:null,account:null,status:null,show:!1})}}]),e}();t.a=o.a.createStore(c,"QuickPeekStore")},1541:function(e,t,n){"use strict";var a=n(2),i=n(3),o=n(11),r=n(5),s=n(6),l=n(0),c=n.n(l),u=n(527),d=n.n(u),p=n(1542),m=(n(1342),n(1347)),h=n.n(m),g=n(1348),v=function(e){Object(r.a)(n,e);var t=Object(s.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._onClickPromo=i._onClickPromo.bind(Object(o.a)(i)),i.setAnalyticsHandler=!1,i}return Object(i.a)(n,[{key:"render",value:function(){var e=this,t=this.props.promotions||p.a.getState().promotions;return t&&t[this.props.id]&&t[this.props.id].content?c.a.createElement("div",{className:"fade-in",dangerouslySetInnerHTML:{__html:t[this.props.id].content},ref:function(t){e.promo=t}}):null}},{key:"componentDidUpdate",value:function(){this.promo&&!this.setAnalyticsHandler&&(this.setAnalyticsHandler=!0,this.promo.addEventListener("click",this._onClickPromo))}},{key:"_onClickPromo",value:function(){var e,t;switch(this.props.id){case"Promo1":"SDP"===this.props.pageConfigs.pageId?(e=h.a.home_event_category,t=h.a.home_action_promo1_clicked):"history"===this.props.pageConfigs.pageId&&(e=h.a.history_event_category,t=h.a.history_promo10_click);break;case"Promo2":"SDP"===this.props.pageConfigs.pageId?(e=h.a.home_event_category,t=h.a.home_action_promo2_clicked):"history"===this.props.pageConfigs.pageId&&(e=h.a.history_event_category,t=h.a.history_promo11_click);break;case"Promo3":"SDP"===this.props.pageConfigs.pageId?(e=h.a.home_event_category,t=h.a.home_action_promo3_clicked):"history"===this.props.pageConfigs.pageId&&(e=h.a.history_event_category,t=h.a.history_promo12_click);break;case"Promo4":"SDP"===this.props.pageConfigs.pageId&&(e=h.a.home_event_category,t=h.a.home_action_promo4_clicked);break;default:e=null,t=null}e&&t&&("SDP"===this.props.pageConfigs.pageId?g.a.logHomePageAction(e,t,this.props.pageConfigs.reportSuite):"history"===this.props.pageConfigs.pageId&&g.a.logHistoryPageAction(e,t,this.props.pageConfigs.reportSuite))}}],[{key:"getStores",value:function(){return[p.a]}},{key:"getPropsFromStores",value:function(){return p.a.getState()}}]),n}(l.Component);t.a=d()(v)},1542:function(e,t,n){"use strict";var a=n(2),i=n(3),o=n(89),r=n(1480),s=n(1342),l=n.n(s),c=function(){function e(){Object(a.a)(this,e),this.state={promotions:null,status:l.a.LOADING},this.bindActions(r.a)}return Object(i.a)(e,[{key:"onSetLoadingState",value:function(){this.setState({promotions:null,status:l.a.LOADING})}},{key:"onGetPromotionsSuccess",value:function(e){this.setState({promotions:e,status:l.a.SUCCESS})}},{key:"onGetPromotionsError",value:function(){this.setState({promotions:null,status:l.a.ERROR})}},{key:"onReset",value:function(){this.alt.recycle(this)}}]),e}();t.a=o.a.createStore(c,"PromotionStore")},1543:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(2),i=n(3),o=n(5),r=n(6),s=n(0),l=n.n(s),c=n(890),u=n(1539),d=n.n(u),p=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"render",value:function(){return l.a.createElement("div",{className:d.a.container+" di-container",id:"calculatorContainer"},l.a.createElement("h2",{className:d.a.heading},this.props.i18nStrings.calculator_label_title),l.a.createElement(c.a,{labels:this.props.i18nStrings,textClass:"brand-link",textBorderClass:"brand-link-border"}))}}]),n}(s.Component)},1582:function(e,t,n){"use strict";var a=n(2),i=n(3),o=n(11),r=n(5),s=n(6),l=n(0),c=n.n(l),u=n(25),d=n.n(u),p=n(888),m=n(1382),h=n(1540),g=n(1417),v=n(1497),f=n(89),_=n(1342),b=n.n(_),C=n(1350),y=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"getRewardsAccounts",value:function(e,t,n,a){var i={isNHP:n===b.a.NHP,pageId:n};return a&&(i.accountId=a),C.a.get("".concat(b.a.URL_REWARDS_ACCOUNTS
1),i)}}]),e}(),D=null,S=function(){function e(){Object(a.a)(this,e),this.generateActions("getRewardsAccountsSuccess","getRewardsAccountsError")}return Object(i.a)(e,[{key:"getRewardsAccounts",value:function(e,t,n,a){var i=this,o=D=Date.now()+"-"+Math.random();return y.getRewardsAccounts(e,t,n,a).then((function(e){o===D&&(null!=e&&e.status==b.a.HTTP_STATUS_OK&&e.data.purchaseRewardsResponse&&e.data.purchaseRewardsResponse!=b.a.ERROR.toLowerCase()?i.actions.getRewardsAccountsSuccess.defer(e.data.purchaseRewardsResponse):i.actions.getRewardsAccountsError.defer())})).catch((function(e){if(o===D)return i.actions.getRewardsAccountsError.defer()}))}},{key:"reset",value:function(){return D=null,!0}}]),e}(),O=f.a.createActions(S),I=function(){function e(){Object(a.a)(this,e),this.state={rewardsAccounts:null},this.bindActions(O)}return Object(i.a)(e,[{key:"onGetRewardsAccountsSuccess",value:function(e){this.setState({rewardsAccounts:e})}},{key:"onGetRewardsAccountsError",value:function(){this.setState({rewardsAccounts:null})}},{key:"onReset",value:function(){this.alt.recycle(this)}}]),e}(),L=f.a.createStore(I,"RewardsStore"),E=n(527),k=n.n(E),T=n(181),A=n(238),R=function(e){Object(r.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this,e,i)).state={showWidget:!1,accountSelected:!1},"undefined"==typeof $LAB&&console.error("Warning: Custom.js requires $LABJS to be present in the browser in order to load custom written content. Make sure it's included in the SPA parent container."),r._handleHomeEventsOnUpdate=r._handleHomeEventsOnUpdate.bind(Object(o.a)(r)),r._handleHistoryEventsOnUpdate=r._handleHistoryEventsOnUpdate.bind(Object(o.a)(r)),r._renderCardlyticsWidget=r._renderCardlyticsWidget.bind(Object(o.a)(r)),r._renderCardlyticsInlineOffers=r._renderCardlyticsInlineOffers.bind(Object(o.a)(r)),r._renderInlineOffersHistoryOnSort=r._renderInlineOffersHistoryOnSort.bind(Object(o.a)(r)),r._propsCheckHelper=r._propsCheckHelper.bind(Object(o.a)(r)),r._routeToRewardsSummary=r._routeToRewardsSummary.bind(Object(o.a)(r)),r._prWidgetLoaded=r._prWidgetLoaded.bind(Object(o.a)(r)),r}return Object(i.a)(n,[{key:"componentDidUpdate",value:function(e,t){this.props.pageConfigs.pageId===b.a.SDP?this._handleHomeEventsOnUpdate(e,t):this.props.pageConfigs.pageId===b.a.HISTORY&&this._handleHistoryEventsOnUpdate(e,t),null!=this.props.AccountHistory.selectedAccount&&this.props.AccountHistory.selectedAccount.accountType==b.a.CHECKING_ACC?this.setState({showWidget:!0}):null!=this.props.AccountHistory.selectedAccount&&this.props.AccountHistory.selectedAccount.accountType!=b.a.CHECKING_ACC&&this.setState({showWidget:!1})}},{key:"componentWillUnmount",value:function(){O.reset(),this.props.pageConfigs.pageId===b.a.NHP&&T.a.unlisten("transaction-table-sort",this._renderInlineOffersHistoryOnSort)}},{key:"componentDidMount",value:function(){this.props.pageConfigs.pageId===b.a.SDP&&this.props.Accounts.accountDataStatus===b.a.SUCCESS&&this.props.Accounts.accounts&&O.getRewardsAccounts(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,this.props.pageConfigs.pageId),this.props.pageConfigs.pageId===b.a.NHP&&T.a.listen("transaction-table-sort",this._renderInlineOffersHistoryOnSort)}},{key:"render",value:function(){var e=this.state.showWidget?"":"hidden";return c.a.createElement("div",{id:this.props.id,className:"di-container",hidden:e},c.a.createElement(p.a,{className:"cardlytics_widget",id:"cardlytics_dashboard"}))}},{key:"_handleHomeEventsOnUpdate",value:function(e,t){var n,a=this,i=this._propsCheckHelper(e,t);(i.hasAccountsLoaded()&&O.getRewardsAccounts(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,this.props.pageConfigs.pageId),i.hasAtLeastOneRewardsAccount())&&(null==e.Rewards.rewardsAccounts&&this._renderCardlyticsWidget((function(){"undefined"!==typeof CARDLYTICS&&(CARDLYTICS.config.rewardSummaryURL=a._routeToRewardsSummary,CARDLYTICS.config.contentLoaded=a._prWidgetLoaded,CARDLYTICS.runtime.cachedServices.Go=!0,CARDLYTICS.Controller.Go())})),i.hasNewQuickPeekTransactionsLoaded()&&function(){var e=a.props.QuickPeek.transactions.transactionsresponse,t=a.props.Rewards.rewardsAccounts;if(null!=e&&null!=t)for(n=0;n<t.length;n++)if(t[n].cbs2AccountId==e[0].acctId){"undefined"!==typeof CARDLYTICS&&setTimeout((function(){CARDLYTICS.Controller.UpdateTransactionOffers(t[n].token)}),10);break}}())}},{key:"_handleHistoryEventsOnUpdate",value:function(e,t){var n=this,a=this._propsCheckHelper(e,t);a.hasNewDIAccountSelected()&&O.getRewardsAccounts(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,this.props.pageConfigs.pageId,this.props.AccountHistory.selectedAccount.id),a.hasAtLeastOneRewardsAccount()&&(a.hasNewRewardsAccountSelected()&&(this.setState({accountSelected:!0}),this._renderCardlyticsWidget((function(){"undefined"!==typeof CARDLYTICS&&(CARDLYTICS.config.rewardSummaryURL=n._routeToRewardsSummary,CARDLYTICS.config.contentLoaded=n._prWidgetLoaded)}))),a.hasNewTransactionHistoryLoaded()&&(a.hasWidgetLoaded()&&1!=this.state.accountSelected||(this.setState({accountSelected:!1}),setTimeout((function(){"undefined"!==typeof CARDLYTICS&&(CARDLYTICS.runtime.cachedServices.Go=!0,CARDLYTICS.Controller.Go())}),10)),a.hasWidgetLoaded()&&0==this.state.accountSelected&&"undefined"!==typeof CARDLYTICS&&setTimeout((function(){CARDLYTICS.Controller.UpdateTransactionOffers()}),10)))}},{key:"_renderCardlyticsWidget",value:function(e){var t=document.getElementsByTagName("head")[0],n=document.getElementById("cardlytics_security_token");window.relatedAccounts=[];for(var a=0;a<this.props.Rewards.rewardsAccounts.length;a++){var i={accountName:this.props.Rewards.rewardsAccounts[a].accountNumber+"-"+this.props.Rewards.rewardsAccounts[a].accountName,securityToken:this.props.Rewards.rewardsAccounts[a].token};relatedAccounts.push(i)}var o={title:this.props.title};if(relatedAccounts.push(o),null!=this.props.Rewards.rewardsAccounts&&this.props.Rewards.rewardsAccounts.length>0){var r={isSWTS:this.props.Rewards.rewardsAccounts[0].swts};relatedAccounts.push(r)}null==n?((n=document.createElement("meta")).id="cardlytics_security_token",n.content=this.props.Rewards.rewardsAccounts[0].token,t.appendChild(n)):n.content=this.props.Rewards.rewardsAccounts[0].token,this.props.css&&this.props.css.length>
10&&A.a.loadCSSResources(this.props.css),this.props.js&&this.props.js.length>0&&$LAB.setOptions({AlwaysPreserveOrder:!0}).script(this.props.js).wait((function(){e()}))}},{key:"_renderCardlyticsInlineOffers",value:function(e,t){e.forEach((function(e){var n="rewards-"+e.transactionId;setTimeout((function(){t(n)}),10)}))}},{key:"_renderInlineOffersHistoryOnSort",value:function(){"undefined"!==typeof CARDLYTICS&&setTimeout((function(){CARDLYTICS.Controller.UpdateTransactionOffers()}),10)}},{key:"_routeToRewardsSummary",value:function(){this.context.router.push("/app/home/olb/rewards_summary")}},{key:"_prWidgetLoaded",value:function(){this.setState({showWidget:!0})}},{key:"_propsCheckHelper",value:function(e,t){var n=this;return{hasAtLeastOneRewardsAccount:function(){return n.props.Rewards.rewardsAccounts&&n.props.Rewards.rewardsAccounts.length>0},hasAccountsLoaded:function(){return e.Accounts.accountDataStatus===b.a.LOADING&&n.props.Accounts.accountDataStatus===b.a.SUCCESS},hasWidgetLoaded:function(){return t.showWidget},hasNewQuickPeekTransactionsLoaded:function(){return e.QuickPeek.status===b.a.LOADING&&n.props.QuickPeek.status===b.a.SUCCESS&&n.props.QuickPeek.transactions&&n.props.QuickPeek.transactions.transactionsresponse.length>0},hasNewDIAccountSelected:function(){return!e.AccountHistory.selectedAccount&&n.props.AccountHistory.selectedAccount||e.AccountHistory.selectedAccount&&n.props.AccountHistory.selectedAccount&&e.AccountHistory.selectedAccount.id!==n.props.AccountHistory.selectedAccount.id},hasNewRewardsAccountSelected:function(){return null==e.Rewards.rewardsAccounts||0===e.Rewards.rewardsAccounts.length||e.Rewards.rewardsAccounts[0].cbs2AccountId!==n.props.Rewards.rewardsAccounts[0].cbs2AccountId},hasNewTransactionHistoryLoaded:function(){var t=e.Transactions.status===b.a.LOADING&&n.props.Transactions.status===b.a.SUCCESS&&n.props.Transactions.transactions.length>0,a=e.pageConfigs.breakpoint!==n.props.pageConfigs.breakpoint&&(e.pageConfigs.breakpoint===b.a.LAYOUT_XS||n.props.pageConfigs.breakpoint===b.a.LAYOUT_XS);return t||a}}}}],[{key:"getStores",value:function(){return[m.a,h.a,v.a,g.b,L]}},{key:"getPropsFromStores",value:function(){return{Accounts:m.a.getState(),QuickPeek:h.a.getState(),AccountHistory:v.a.getState(),Transactions:g.b.getState(),Rewards:L.getState()}}}]),n}(l.PureComponent);t.a=k()(R);R.propTypes={pageConfigs:d.a.object.isRequired},R.contextTypes={router:d.a.object.isRequired}},1584:function(e,t,n){"use strict";var a=n(2),i=n(3),o=n(5),r=n(6),s=n(0),l=n(89),c=n(1481),u=n(1342),d=n.n(u),p=function(){function e(){Object(a.a)(this,e),this.state={zones:null,status:d.a.LOADING},this.bindActions(c.a)}return Object(i.a)(e,[{key:"onSetLoadingState",value:function(){this.setState({zones:null,status:d.a.LOADING})}},{key:"onGetZonesSuccess",value:function(e){this.setState({zones:e,status:d.a.SUCCESS})}},{key:"onGetZonesError",value:function(){this.setState({zones:null,status:d.a.ERROR})}},{key:"onReset",value:function(){this.alt.recycle(this)}}]),e}(),m=l.a.createStore(p,"SegmintStore"),h=n(527),g=n.n(h),v=n(728),f=n.n(v),_=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props.zones||m.getState().zones;return e&&e[this.props.id]&&e[this.props.id].content?React.createElement("div",{className:"fade-in",dangerouslySetInnerHTML:{__html:f.a.sanitize(e[this.props.id].content,{ADD_TAGS:["iframe"],ADD_ATTR:["target"]})}}):null}}],[{key:"getStores",value:function(){return[m]}},{key:"getPropsFromStores",value:function(){return m.getState()}}]),n}(s.Component);t.a=g()(_)},1602:function(e,t,n){e.exports={"svg-link":"DateRange_svg-link__26vQd",disabled:"DateRange_disabled__8gS-c","text-legal":"DateRange_text-legal__3OymL","date-range-dropdown":"DateRange_date-range-dropdown__1ORyw","dropdown-button":"DateRange_dropdown-button__3LXnU","date-range-item":"DateRange_date-range-item__1Tyac","flex-row":"DateRange_flex-row__35fE1","pagination-wrapper":"DateRange_pagination-wrapper__28U18","horizontal-rule":"DateRange_horizontal-rule__xLGP6","date-range-container":"DateRange_date-range-container__1DN6A","date-picker-label":"DateRange_date-picker-label__2aqJW"}},1603:function(e,t,n){e.exports={"other-buttons":"OtherButtons_other-buttons__1Rf7J",transfers:"OtherButtons_transfers__2M0U3",statements:"OtherButtons_statements__3d16Y","export-button":"OtherButtons_export-button__2jO1w","export-type-container":"OtherButtons_export-type-container__1mH9
1S","export-description":"OtherButtons_export-description__1YJFv","export-cancel-button":"OtherButtons_export-cancel-button__2dZKH","wait-export":"OtherButtons_wait-export__3F8Tp","wait-icon":"OtherButtons_wait-icon__2oASC","wait-text":"OtherButtons_wait-text__1r0AH",error:"OtherButtons_error__wgbls",hidden:"OtherButtons_hidden__P6syq"}},1734:function(e,t,n){e.exports={"page-loader":"AccountHistory_page-loader__qJ2Bi","regdd-text":"AccountHistory_regdd-text__3-EPY","account-history":"AccountHistory_account-history__2Ksb1"}},1938:function(e,t,n){e.exports={"transactions-filter-label":"TransactionsFilter_transactions-filter-label__3brCv","transactions-filter-input":"TransactionsFilter_transactions-filter-input__RDFN7"}},1940:function(e,t,n){e.exports={"other-services-link":"OtherServices_other-services-link__T1slk","link-container":"OtherServices_link-container__2l1UE","link-item":"OtherServices_link-item__1h3sz","link-content":"OtherServices_link-content__1W_EE","link-text":"OtherServices_link-text__2_9RM","link-icon":"OtherServices_link-icon__1Q06_"}},1941:function(e){e.exports=JSON.parse('{"lg":[{"x":0,"y":0,"w":9,"i":"Promo1"},{"x":0,"y":1,"w":9,"i":"AccountHistory"},{"x":0,"y":2,"w":9,"i":"Promo2"},{"x":9,"y":0,"w":3,"i":"OtherServices"},{"x":9,"y":1,"w":3,"i":"Calculator"},{"x":9,"y":2,"w":3,"i":"Rewards"},{"x":9,"y":3,"w":3,"i":"Promo3"}],"md":[{"x":0,"y":0,"w":9,"i":"Promo1"},{"x":0,"y":1,"w":9,"i":"AccountHistory"},{"x":0,"y":2,"w":9,"i":"Promo2"},{"x":9,"y":0,"w":3,"i":"OtherServices"},{"x":9,"y":1,"w":3,"i":"Rewards"},{"x":9,"y":2,"w":3,"i":"Promo3"}],"sm":[{"x":0,"y":0,"w":12,"i":"Promo1"},{"x":0,"y":1,"w":12,"i":"AccountHistory"},{"x":0,"y":2,"w":12,"i":"Promo2"},{"x":0,"y":3,"w":12,"i":"OtherServices"},{"x":0,"y":4,"w":12,"i":"Rewards"},{"x":0,"y":5,"w":12,"i":"Promo3"}],"xs":[{"x":0,"y":0,"w":12,"i":"Promo1"},{"x":0,"y":1,"w":12,"i":"AccountHistory"},{"x":0,"y":2,"w":12,"i":"Promo2"},{"x":0,"y":3,"w":12,"i":"OtherServices"},{"x":0,"y":4,"w":12,"i":"Rewards"},{"x":0,"y":5,"w":12,"i":"Promo3","hidden":true}]}')},1942:function(e){e.exports=JSON.parse('{"lg":[{"x":0,"y":0,"w":9,"i":"Promo1"},{"x":0,"y":1,"w":9,"i":"AccountHistory"},{"x":0,"y":2,"w":9,"i":"SegmintZone1"},{"x":9,"y":0,"w":3,"i":"OtherServices"},{"x":9,"y":1,"w":3,"i":"Calculator"},{"x":9,"y":2,"w":3,"i":"Rewards"},{"x":9,"y":3,"w":3,"i":"Promo3"}],"md":[{"x":0,"y":0,"w":9,"i":"Promo1"},{"x":0,"y":1,"w":9,"i":"AccountHistory"},{"x":0,"y":2,"w":9,"i":"SegmintZone1"},{"x":9,"y":0,"w":3,"i":"OtherServices"},{"x":9,"y":1,"w":3,"i":"Rewards"},{"x":9,"y":2,"w":3,"i":"Promo3"}],"sm":[{"x":0,"y":0,"w":12,"i":"Promo1"},{"x":0,"y":1,"w":12,"i":"AccountHistory"},{"x":0,"y":2,"w":12,"i":"SegmintZone1"},{"x":0,"y":3,"w":12,"i":"OtherServices"},{"x":0,"y":4,"w":12,"i":"Rewards"},{"x":0,"y":5,"w":12,"i":"Promo3"}],"xs":[{"x":0,"y":0,"w":12,"i":"Promo1"},{"x":0,"y":1,"w":12,"i":"AccountHistory"},{"x":0,"y":2,"w":12,"i":"SegmintZone1"},{"x":0,"y":3,"w":12,"i":"OtherServices"},{"x":0,"y":4,"w":12,"i":"Rewards"},{"x":0,"y":5,"w":12,"i":"Promo3","hidden":true}]}')},1943:function(e){e.exports=JSON.parse('{"lg":[{"x":0,"y":0,"w":12,"i":"Promo1"},{"x":0,"y":1,"w":12,"i":"AccountHistorySummary"},{"x":0,"y":2,"w":12,"i":"OtherServices"},{"x":0,"y":3,"w":12,"i":"TransactionsList"},{"x":0,"y":4,"w":12,"i":"Promo2"}],"md":[{"x":0,"y":0,"w":12,"i":"Promo1"},{"x":0,"y":1,"w":12,"i":"AccountHistorySummary"},{"x":0,"y":2,"w":12,"i":"OtherServices"},{"x":0,"y":3,"w":12,"i":"TransactionsList"},{"x":0,"y":4,"w":12,"i":"Promo2"}],"sm":[{"x":0,"y":0,"w":12,"i":"Promo1"},{"x":0,"y":1,"w":12,"i":"AccountHistorySummary"},{"x":0,"y":2,"w":12,"i":"OtherServices"},{"x":0,"y":3,"w":12,"i":"TransactionsList"},{"x":0,"y":4,"w":12,"i":"Promo2"}],"xs":[{"x":0,"y":0,"w":12,"i":"Promo1"},{"x":0,"y":1,"w":12,"i":"AccountHistorySummary"},{"x":0,"y":2,"w":12,"i":"OtherServices"},{"x":0,"y":3,"w":12,"i":"TransactionsList"},{"x":0,"y":4,"w":12,"i":"Promo2"}]}')},1944:function(e){e.exports=JSON.parse('{"lg":[{"x":0,"y":0,"w":12,"i":"Promo1"},{"x":0,"y":1,"w":12,"i":"AccountHistorySummary"},{"x":0,"y":2,"w":12,"i":"OtherServices"},{"x":0,"y":3,"w":12,"i":"TransactionsList"},{"x":0,"y":4,"w":12,"i":"SegmintZone1"}],"md":[{"x":0,"y":0,"w":12,"i":"Promo1"},{"x":0,"y":1,"w":12,"i":"AccountHistorySummary"},{"x":0,"y":2,"w":12,"i":"OtherServices"},{"x":0,"y":3,"w":12,"i":"TransactionsList"},{"x":0,"y":4,"w":12,"i":"SegmintZone1"}],"sm":[{"x":0,"y":0,"w":12,"i":"Promo1"},{"x":0,"y":1,"w":12,"i":"AccountHistorySummary"},{"x":0,"y":2,"w":12,"i":"OtherServices"},{"x":0,"y":3,"w":12,"i":"TransactionsList"},{"x":0,"y":4,"w":12,"i":"SegmintZone1"}],"xs":[{"x":0,"y":0,"w":12,"i":"Promo1"},{"x":0,"y":1,"w":12,"i":"AccountHistorySummary"},{"x":0,"y":2,"w":12,"i":"OtherServices"},{"x":0,"y":3,"w":12,"i":"TransactionsList"},{"x":0,"y":4,"w":12,"i":"SegmintZone1"}]}')},2377:function(e,t,n){"use strict";n.r(t);var a=n(2),i=n(3),o=n(5),r=n(6),s=n(32),l=n(25),c=n.n(l),u=n(0),d=n.n(u),p=n(719),m=n(22),h=n(36),g=n(1403),v=n(1342),f=n.n(v),_=n(1398),b=n(527),C=n.n(b),y=n(1392),D=n(1380),S=n(1393),O=n(1362),I=n(1538),L=n(18),E=n(11),k=n(1734),T=n(26),A=n.n(T),R=n(31),N=n(1437),w=n.n(N),P=n(1344),B=n(1361),x=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"render",value:function(){var e,t=[w.a["overview-item-value"]];return this.props.isMainItem&&t.push(w.a["main-overview-item"]),e="number"===typeof this.props.value?d.a.createElement(B.a,{id:this.props.itemId||"",value:this.props.value}):this.props.value,d.a.createElement("div",{className:"".concat(w.a["overview-item-container"]," print-overview-item-container")},d.a.createElement("span",{id:"itemLabel".concat(this.props.itemId||""),className:w.a["overview-item-label"]},this.props.label,this.props.showRegDD?"**":""),d.a.createElement("span",{className:w.a["dotted-spacer"]}),d.a.createElement("span",{id:"itemValue".concat(this.props.itemId||""),className:t.join(" ")},e))}}]),n}(u.Component);x.propTypes={itemId:c.a.string,label:c.a.string,value:c.a.oneOfType([c.a.number,c.a.string]),isMainItem:c.a.bool,showRegDD:c.a.bool,regDDText:c.a.string,
1showWarningIcon:c.a.bool};var j=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._buildAccountOverview=i._buildAccountOverview.bind(Object(E.a)(i)),i._buildCreditCardAccountOverview=i._buildCreditCardAccountOverview.bind(Object(E.a)(i)),i._buildLoanAccountOverview=i._buildLoanAccountOverview.bind(Object(E.a)(i)),i._buildSubLoanAccountOverview=i._buildSubLoanAccountOverview.bind(Object(E.a)(i)),i._buildGeneralLedgerAccountOverview=i._buildGeneralLedgerAccountOverview.bind(Object(E.a)(i)),i._buildInvestmentAccountOverview=i._buildInvestmentAccountOverview.bind(Object(E.a)(i)),i._buildSavingsAccountOverview=i._buildSavingsAccountOverview.bind(Object(E.a)(i)),i._buildDepositAccountOverview=i._buildDepositAccountOverview.bind(Object(E.a)(i)),i._buildBalance=i._buildBalance.bind(Object(E.a)(i)),i._buildAvailableBalance=i._buildAvailableBalance.bind(Object(E.a)(i)),i._buildPastDue=i._buildPastDue.bind(Object(E.a)(i)),i._buildPastDueAmountWithDueDate=i._buildPastDueAmountWithDueDate.bind(Object(E.a)(i)),i._buildUnavailableBalance=i._buildUnavailableBalance.bind(Object(E.a)(i)),i._buildAmountDue=i._buildAmountDue.bind(Object(E.a)(i)),i._renderOverviewItem=i._renderOverviewItem.bind(Object(E.a)(i)),i}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props.account;return d.a.createElement("div",{id:"accountOverview"+e.id,className:"".concat(w.a["account-overview"]," print-overview-item")},this._buildAccountOverview())}},{key:"_buildAccountOverview",value:function(){var e=this.props.account;return P.a.isSubLoanAccount(e)&&this.props.configs.showLoanAccountDetails?this._buildSubLoanAccountOverview():P.a.isCreditCardAccount(e)?this._buildCreditCardAccountOverview():P.a.isLoanAccount(e)?this._buildLoanAccountOverview():P.a.isGeneralLedgerAccount(e)?this._buildGeneralLedgerAccountOverview():P.a.isInvestmentAccount(e)?this._buildInvestmentAccountOverview():P.a.isSavings(e)?this._buildSavingsAccountOverview():this._buildDepositAccountOverview()}},{key:"_buildCreditCardAccountOverview",value:function(){var e=this.props.account,t=[],n=e.loanInfo.nextPaymentAmount,a=e.loanInfo.nextPaymentDate;t.push(this._buildBalance(this.props.i18nStrings.Outstanding)),null!=e.availableBalance&&t.push(this._buildAvailableBalance(this.props.i18nStrings.accounts_details_availableCredit));var i=this._buildAmountDue(a,n);return t.push(i),e.loanInfo.datePastDue&&t.push(this._buildPastDue()),t}},{key:"_buildLoanAccountOverview",value:function(){var e=this.props.account,t=[],n=e.loanInfo.nextPaymentAmount,a=e.loanInfo.nextPaymentDate;return t.push(this._buildBalance(this.props.i18nStrings.transactions_text_header_balance)),null!=e.availableBalance&&t.push(this._buildAvailableBalance(this.props.i18nStrings.accounts_details_availableCredit)),t.push(this._buildAmountDue(a,n)),e.loanInfo.datePastDue&&t.push(this._buildPastDue()),t}},{key:"_buildSubLoanAccountOverview",value:function(){var e=this.props.account,t=[],n=e.loanInfo.nextPaymentAmount,a=e.loanInfo.nextPaymentDate,i=e.loanInfo.pastDuePrincipal,o=e.loanInfo.datePastDue;return t.push(this._buildBalance(P.a.isCreditCardAccount(e)?this.props.i18nStrings.Outstanding:this.props.i18nStrings.transactions_text_header_balance)),null!=e.availableBalance&&t.push(this._buildAvailableBalance(this.props.i18nStrings.accounts_details_availableCredit)),t.push(this._buildAmountDue(a,n)),0!=i&&t.push(this._buildPastDueAmountWithDueDate(o,i)),t}},{key:"_buildGeneralLedgerAccountOverview",value:function(){var e=this.props.account,t=[];return null!=e.balance?t.push(d.a.createElement(x,{itemId:"_balance".concat(e.id),key:"balance",label:this.props.i18nStrings.accounts_balanceLabelText,isMainItem:!0,value:e.balance})):t.push(this._buildUnavailableBalance(this.props.i18nStrings.accounts_balanceLabelText)),null!=e.availableBalance&&t.push(this._buildAvailableBalance()),t}},{key:"_buildInvestmentAccountOverview",value:function(){var e=this,t=this.props.account,n=[];n.push(this._buildBalance(this.props.i18nStrings.transactions_text_header_balance));null==t.availableBalance||e.props.configs.acct_details_suppress_avail_bal.indexOf(e.props.account.accountType)>=0||n.push(this._buildAvailableBalance());var a=this.props.i18nStrings.accounts_details_accruedInterestDeposit+" "+this.props.configs.interest_label;return n.push(this._renderOverviewItem("_ytdInterest".concat(t.id),"ytdInterest",a,t.interestYearToDate)),n}},{key:"_buildSavingsAccountOverview",value:function(){var e=this,t=this.props.account,n=[],a=function(){return!!e.props.configs.acct_details_suppress_avail_bal&&e.props.configs.acct_details_suppress_avail_bal.indexOf(e.props.account.accountType)>=0};this.props.configs.showAvailableBalanceEmphasized?(null==t.availableBalance||a()||n.push(this._buildAvailableBalance(this.props.i18nStrings.accounts_details_availableBalance,!0)),n.push(this._buildBalance(this.props.i18nStrings.Current,!1))):(n.push(this._buildBalance(this.props.i18nStrings.Current,!0)),null==t.availableBalance||a()||n.push(this._buildAvailableBalance(this.props.i18nStrings.accounts_details_availableBalance,!1)));var i=this.props.i18nStrings.accounts_details_accruedInterestDeposit+" "+this.props.configs.interest_label;return n.push(this._renderOverviewItem("_ytdInterest".concat(t.id),"ytdInterest",i,t.interestYearToDate)),n}},{key:"_buildDepositAccountOverview",value:function(){var e=this.props.account,t=[];return this.props.configs.showAvailableBalanceEmphasized?(null!=e.availableBalance&&t.push(this._buildAvailableBalance(this.props.i18nStrings.accounts_details_availableBalance,!0)),t.push(this._buildBalance(this.props.i18nStrings.Current,!1))):(t.push(this._buildBalance(this.props.i18nStrings.Current,!0)),null!=e.availableBalance&&t.push(this._buildAvailableBalance(this.props.i18nStrings.accounts_details_availableBalance,!1))),t}}
1,{key:"_buildBalance",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.props.account;return null!=n.balance?this._renderOverviewItem("_balance"+n.id,"balance",e,n.balance,t):this._buildUnavailableBalance(e)}},{key:"_buildAvailableBalance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.i18nStrings.accounts_details_availableBalance,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.props.account;return this._renderOverviewItem("_availableBalance".concat(n.id),"availableBalance",e,n.availableBalance,t,P.a.shouldShowRegdd(this.props.account,this.props.configs.regdd_display),this.props.configs.regdd_text)}},{key:"_buildPastDue",value:function(){var e=this.props.account;return this._renderOverviewItem("_datePastDue".concat(e.id),"datePastDue",this.props.i18nStrings.accounts_details_datePastDue,e.loanInfo.datePastDue)}},{key:"_buildPastDueAmountWithDueDate",value:function(e,t){var n=this.props.account,a=e?this.props.configs.pastDueAmountDateLabel:this.props.configs.pastDueAmountLabel,i=t;return a=a||this.props.i18nStrings.accounts_details_datePastDue,e&&(i?a=a+" "+e:i=e),this._renderOverviewItem("_pastDueAmountWithDueDate".concat(n.id),"_pastDueAmountWithDueDate",a,i)}},{key:"_buildUnavailableBalance",value:function(e){return this._renderOverviewItem("_balance".concat(this.props.account.id),"balance",e,this.props.i18nStrings.unavailable)}},{key:"_buildAmountDue",value:function(e,t){var n=this.props.account,a=[];return a.push(this._renderOverviewItem("_totalAmountDue".concat(n.id),"totalAmountDue",this._buildLabelEnablement(this.props.configs.currentAmountDueLabel,this.props.i18nStrings.accounts_details_nextPaymentAmountLoC),t)),e&&a.push(this._renderOverviewItem("_nextdue".concat(n.id),"dueDate",this._buildLabelEnablement(this.props.configs.nextDueDateLabel,this.props.i18nStrings.accounts_details_nextPaymentDate),e)),a}},{key:"_buildLabelEnablement",value:function(e,t){var n=this.props.account;return this.props.configs.showLoanAccountDetails&&P.a.isSubLoanAccount(n)&&e?e:t}},{key:"_renderOverviewItem",value:function(e,t,n,a,i,o,r){if(void 0!=a&&null!=a&&a.toString().length>0)return d.a.createElement(x,{itemId:e,key:t,label:n,isMainItem:i,showRegDD:o,regDDText:r,value:a})}}]),n}(u.Component);j.propTypes={account:c.a.object.isRequired,configs:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var M=n(27),F=n.n(M),V=Object.freeze({OPEN:"accountStatus_open",CLOSED:"accountStatus_closed",NEGATIVE_BALANCE:"accountStatus_negative_balance",DELINQUENT:"accountStatus_delinquent",IN_COLLECTION:"accountStatus_incollection",OVER_LIMIT:"accountStatus_overlimit",WRITTEN_OFF:"accountStatus_writtenoff",HAS_CREDIT_BAL:"accountStatus_hascreditbalance",PAYMENT_COUPON:"accountStatus_paymentcoupon",RET_PLAN:"accountStatus_retirementplan",RET_PLAN_OWNED_BY_DECEASED:"accountStatus_retirementplanowned"}),U=n(1359),H=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"render",value:function(){return d.a.createElement("div",{id:"item"+(this.props.itemId||""),className:w.a["panel-item-container"]+" print-overview-item-container"},d.a.createElement("span",{id:"itemLabel"+(this.props.itemId||""),className:w.a["panel-item-label"]+" print-panel-item-label"},this.props.label),d.a.createElement("span",{id:"itemValue"+(this.props.itemId||""),className:w.a["panel-item-value"]+" print-panel-item-value"},this.props.value))}}]),n}(u.Component);H.propTypes={itemId:c.a.string,label:c.a.string,value:c.a.oneOfType([c.a.number,c.a.string])};var Y=n(531),G=function(){function e(t,n,i){Object(a.a)(this,e),this.account=t,this.i18nStrings=n,this.configs=i}return Object(i.a)(e,[{key:"_buildDisplayMemberNumber",value:function(){if(this._isNotEmpty(this.account.displayMemberNumber)&&this.configs.showMemberNumber){var e=this.configs.displayMemberNumber;return this._renderPanel("_memberNumber","memberNumber",e,this.account.displayMemberNumber)}}},{key:"_buildAccountType",value:function(){return this._renderPanel("_accountType","accountType",this.i18nStrings.accounts_details_accountType,this._getAccountTypeLabel())}},{key:"_buildCreditCardDisplayAccountNumber",value:function(){var e=this._getPrimaryHolderId(),t=this.configs.creditCardDisplayAccountNumber,n=null===this.account.displayCardNumber?this.account.displayAccountNumber:this.account.displayCardNumber,a=null===this.account.billPayAccountNumber?this.account.displayAccountNumber:this.account.billPayAccountNumber,i=null===this.account.accountNumber.plasticCardValue?this.account.accountNumber.hostValue:this.account.accountNumber.plasticCardValue,o=null===this.account.accountNumber.billPayValue?this.account.accountNumber.hostValue:this.account.accountNumber.billPayValue;if(!1===this.configs.useMaskedAccountNumber)switch(t){case"CNUM":return this._renderPanel("_creditCardValue","credit
1CardValue",this.i18nStrings.accounts_details_rawHostValue,e+i);case"BANUM":return this._renderPanel("_creditCardValue","creditCardValue",this.i18nStrings.accounts_details_rawHostValue,e+o);default:return this._renderPanel("_hostValue","hostValue",this.i18nStrings.accounts_details_rawHostValue,e+this.account.accountNumber.hostValue)}else switch(t){case"CNUM":return this._renderPanel("_creditCardValue","creditCardValue",this.i18nStrings.accounts_details_rawHostValue,e+n);case"BANUM":return this._renderPanel("_creditCardValue","creditCardValue",this.i18nStrings.accounts_details_rawHostValue,e+a);default:return this._renderPanel("_hostValue","hostValue",this.i18nStrings.accounts_details_rawHostValue,e+this.account.displayAccountNumber)}}},{key:"_buildHostValueOrMaskedAccountNumber",value:function(){var e=this._getPrimaryHolderId();return!0===this.configs.useMaskedAccountNumber?this._renderPanel("_maskedValue","maskedValue",this.i18nStrings.accounts_details_rawHostValue,e+this.account.displayAccountNumber):this._renderPanel("_hostValue","hostValue",this.i18nStrings.accounts_details_rawHostValue,e+this.account.accountNumber.hostValue)}},{key:"_getPrimaryHolderId",value:function(){var e="",t=this.account.displayPrimaryHolderId;return P.a.showPrimaryHolderIdInAccountDescription(this.account,this.configs)&&(e=t+"-"),e}},{key:"_buildHostValueOrMaskedAccountNumberForTCL",value:function(){var e=this._getPrimaryHolderId();return!0===this.configs.useMaskedAccountNumber?this._renderPanel("_maskedValue","maskedValue",this.i18nStrings.tcl_master_loan,e+this.account.displayAccountNumber):this._renderPanel("_hostValue","hostValue",this.i18nStrings.tcl_master_loan,e+this.account.accountNumber.hostValue)}},{key:"_buildRoutingNumber",value:function(){if(this._isNotEmpty(this.account.rtn)&&this._isNotZero(this.account.rtn)&&this._isNotSuppressed("rtn")&&this.account.rtn!==f.a.ACCOUNTS_DETAILS_RTN_NONE)return this._renderPanel("_routingNumber","routingNumber",this.i18nStrings.accounts_details_routingNumber,this.account.rtn)}},{key:"_buildIssueDate",value:function(){if(this._isNotEmpty(this.account.issueDate)){if(this.account.category===U.a.INVESTMENT)return this._renderPanel("_issueDate","issueDate",this.i18nStrings.accounts_details_issueDate,this.account.issueDate);if(this.configs.showIssueDate.hasOwnProperty(this.account.category)&&this.configs.showIssueDate[this.account.category])return this._renderPanel("_issueDate","issueDate",this.i18nStrings.accounts_details_issueDate,this.account.issueDate)}}},{key:"_buildIssueAmount",value:function(){if(this._isNotEmpty(this.account.issueAmount))return this._renderPanel("_issueAmount","issueAmount",this.i18nStrings.accounts_details_issuedAmount,this._renderMoney(this.account.issueAmount))}},{key:"_buildAchId",value:function(){if(this._isNotEmpty(this.account.achId)){var e=this.configs.displayACH;return this._renderPanel("_achId","achId",e,this.account.achId)}}},{key:"_buildMICRNumber",value:function(){if(this._isNotEmpty(this.account.micrNumber)&&this.configs.showMICR){var e=this.configs.displayMICR;return this._renderPanel("_micr","micr",e,this.account.micrNumber)}}},{key:"_buildAccountStatus",value:function(){if(this._isNotEmpty(this.account.accountStatus)&&"OPEN"!=this.account.accountStatus.toUpperCase())return this._renderPanel("_accountStatus","accountStatus",this.i18nStrings.accounts_details_accountStatus,this._renderAccountStatus())}},{key:"_buildAchCount",value:function(){if(this._isNotEmpty(this.account.achCount))return this._renderPanel("_achCount","achCount",this.i18nStrings.accounts_details_achCount,this.account.achCount)}},{key:"_buildPointOfSaleCount",value:function(){if(this._isNotEmpty(this.account.pointOfSaleCount))return this._renderPanel("_pointOfSaleCount","pointOfSaleCount",this.i18nStrings.accounts_details_posCount,this.account.pointOfSaleCount)}},{key:"_buildMaturityDate",value:function(){if(this._isNotEmpty(this.account.maturityDate))return this._renderPanel("_maturityDate","maturityDate",this.i18nStrings.accounts_Maturity,this.account.maturityDate)}},{key:"_buildRegDTransfers",value:function(){var e=this.configs.useTotalTransferValues?this.account.regDLim
1its.maxRegDCount:this.account.regDLimits.maxTransferCount,t=this.configs.useTotalTransferValues?this.account.regDLimits.hostTotalRegDCount:this.account.regDLimits.hostTransferCount;if(this._isNotEmpty(t)&&Number(t)>-1){if(this._isNotEmpty(e)&&Number(e)>-1){var n=this.i18nStrings.accounts_details_hostTransferCount_value;return n=(n=n.replace("{0}",t)).replace("{1}",e),this._renderPanel("_regDTransfers","regDTransfers",this.i18nStrings.accounts_details_hostTransferCount,n)}return this._renderPanel("_regDTransfers","regDTransfers",this.i18nStrings.accounts_details_hostTransferCount,t)}}},{key:"_buildAnnualPercentageYield",value:function(){if(this._isNotEmpty(this.account.annualPercentageYield)&&this._isNotSuppressed("annualPercentageYield"))return this._renderPanel("_annualPercentageYield","annualPercentageYield",this.i18nStrings.accounts_details_annualPercentageYield,this._renderRate(this.account.annualPercentageYield))}},{key:"_buildInterestRateForDeposits",value:function(){if(this._isNotEmpty(this.account.interestRate)&&this._isNotZero(this.account.interestRate)){var e=this.configs.interest_label+" "+this.i18nStrings.accounts_details_interestRateDeposits;return e=e.charAt(0).toUpperCase()+e.slice(1),this._renderPanel("_interestRate","interestRate",e,this._renderRate(this.account.interestRate))}}},{key:"_buildInterestRateForLoan",value:function(){if(this._isNotEmpty(this.account.interestRate)&&this._isNotZero(this.account.interestRate))return this._renderPanel("_interestRate","interestRate",this.i18nStrings.accounts_details_interestRate,this._renderRate(this.account.interestRate))}},{key:"_buildSuppressibleInterestRateForCreditCard",value:function(){if(this._isNotEmpty(this.account.interestRate)&&this._isNotZero(this.account.interestRate)&&this._isNotSuppressed("interestRate"))return this._renderPanel("_interestRate","interestRate",this.i18nStrings.accounts_details_interestRate,this._renderRate(this.account.interestRate))}},{key:"_buildInterestYearToDate",value:function(){var e=this.i18nStrings.accounts_details_accruedInterestDeposit+" "+this.configs.interest_label;return this._renderPanel("_interestYearToDate","interestYearToDate",e,this._renderMoney(this.account.interestYearToDate))}},{key:"_buildInterestYearToDateForLoan",value:function(){return this._renderPanel("_interestYearToDate","interestYearToDate",this.i18nStrings.accounts_details_accruedInterest,this._renderMoney(this.account.interestYearToDate))}},{key:"_buildAccruedInterest",value:function(){if(this._isNotEmpty(this.account.accruedInterest)){var e=this.i18nStrings.accounts_details_actual_accruedInterest+" "+this.configs.interest_label;return this._renderPanel("_accruedInterest","accruedInterest",e,this._renderMoney(this.account.accruedInterest))}}},{key:"_buildLoanAccruedInterest",value:function(){if(this._isNotEmpty(this.account.accruedInterest)){var e=this.configs.accrued_interest_label;return this._renderPanel("_loanAccruedInterest","loanAccruedInterest",e,this._renderMoney(this.account.accruedInterest))}}},{key:"_buildLateChargesDue",value:function(){if(this._isNotEmpty(this.account.lateChargesDue))return this._renderPanel("_lateChargesDue","lateChargesDue",this.i18nStrings.accounts_details_lateChargesDue,this._renderMoney(this.account.lateChargesDue))}},{key:"_buildInterestPriorYearToDate",value:function(){var e=F()().year()-1+" "+this.configs.interest_label;return this._renderPanel("_interestPriorYearToDate","interestPriorYearToDate",e,this._renderMoney(this.account.interestPriorYearToDate))}},{key:"_buildInterestPriorYearToDateForLoan",value:function(){var e=F()().year()-1+" "+this.i18nStrings.accounts_details_interestPriorYearToDate;return this._renderPanel("_interestPriorYearToDateLoan","interestPriorYearToDateLoan",e,this._renderMoney(this.account.interestPriorYearToDate))}},{key:"_buildLastDividendDate",value:function(){if(this._isNotEmpty(this.account.lastDividendDate)){var e=this.i18nStrings.accounts_details_lastDividendDate_1+" "+this.configs.interest_label+" "+this.i18nStrings.accounts_details_lastDividendDate_2;return this._renderPanel("_lastDividendDate","lastDividendDate",e,this.account.lastDividendDate)}}},{key:"_buildLastDividendAmmount",value:function(){if(this._isNotEmpty(this.account.lastDividendAmount)){var e=this.i18nStrings.accounts_details_lastDividendAmount;return e=e.replace("{0}",this.configs.interest_label),this._renderPanel("_lastDividendAmount","lastDividendAmount",e,this._renderMoney(this.account.lastDividendAmount))}}},{key:"_buildTier1QualifiedRate",value:function(){if(this._isNotEmpty(this.account.tier1QualifiedRate)&&this._isNotZero(this.account.tier1QualifiedRate)){var e=this.i18nStrings.accounts_details_qualifiedDividendRate;return null!=this.account.tier1BalanceDesc&&(e+=" ("+this.account.tier1BalanceDesc+")"),this._renderPanel("_tier1QualifiedRate","tier1QualifiedRate",e,this._renderRate(this.account.tier1QualifiedRate))}}},{key:"_buildTier2QualifiedRate",value:function(){if(this._isNotEmpty(this.account.tier2QualifiedRate)&&this._isNotZero(this.account.tier2QualifiedRate)){var e=this.i18nStrings.accounts_details_qualifiedDividendRate;return null!=this.account.tier2BalanceDesc&&(e+=" ("+this.account.tier2BalanceDesc+")"),this._renderPanel("_tier2QualifiedRate","tier2QualifiedRate",e,this._renderRate(this.account.tier2QualifiedRate))}}},{key:"_buildNonQualifiedRate",value:function(){if(this._isNotZero(this.account.nonQualifiedRate))return this._renderPanel("_nonQualifiedRate","nonQualifiedRate",this.i18nStrings.accounts_details_nonqualifiedDividendRate,this._renderRate(this.account.nonQualifiedRate))}},{key:"_buildOverdraftAvailable",value:function(){if(this._isNotEmpty(this.account.overdraftAvailableAmou
1nt)&&"true"==this.configs.overdraftAvailable)return this._renderPanel("_overdraftAvailable","overdraftAvailable",this.i18nStrings.accounts_details_overdraftProtection,this._renderMoney(this.account.overdraftAvailableAmount))}},{key:"_buildOverdraftAccount",value:function(){if(this._isNotEmpty(this.account.overdraftAvailableAmount)&&this._isNotEmpty(this.account.overdraftAccountNumber)&&"true"==this.configs.overdraftAvailable&&"true"==this.configs.overdraftAccount)return this._renderPanel("_overdraftAccount","overdraftAccount",this.i18nStrings.accounts_details_overdraftAcct,this.account.overdraftAccountNumber)}},{key:"_buildCheckingOverdraftAccount",value:function(){if(this._isNotEmpty(this.account.overdraftAvailableAmount)&&this._isNotEmpty(this.account.overdraftAccountNumber)&&"true"==this.configs.overdraftAvailable&&"true"==this.configs.overdraftAccount)return!0===this.configs.useMaskedAccountNumber?this._renderPanel("_overdraftAccount","overdraftAccount",this.i18nStrings.accounts_details_overdraftAcct,P.a.maskAccountNumber(this.account.overdraftAccountNumber)):this._renderPanel("_overdraftAccount","overdraftAccount",this.i18nStrings.accounts_details_overdraftAcct,this.account.overdraftAccountNumber)}},{key:"_buildOverdraftLimit",value:function(){if(this._isNotEmpty(this.account.overdraftLimit)&&"true"==this.configs.overdraftLimit)return this._renderPanel("_overdraftLimit","overdraftLimit",this.configs.overdraftLimitTitle,this._renderMoney(this.account.overdraftLimit))}},{key:"_buildLastYearContribution",value:function(){if(this._isNotEmpty(this.account.lastYearContribution)){var e=F()().year()-1+" "+this.i18nStrings.accounts_details_contributions;return this._renderPanel("_lastYearContribution","lastYearContribution",e,this._renderMoney(this.account.lastYearContribution))}}},{key:"_buildCurrentYearContribution",value:function(){if(this._isNotEmpty(this.account.currentYearContribution)){var e=F()().year()+" "+this.i18nStrings.accounts_details_contributions;return this._renderPanel("_currentYearContribution","currentYearContribution",e,this._renderMoney(this.account.currentYearContribution))}}},{key:"_buildLastYearDistribution",value:function(){if(this._isNotEmpty(this.account.lastYearDistribution)){var e=F()().year()-1+" "+this.i18nStrings.accounts_details_distributions;return this._renderPanel("_lastYearDistribution","lastYearDistribution",e,this._renderMoney(this.account.lastYearDistribution))}}},{key:"_buildCurrentYearDistribution",value:function(){if(this._isNotEmpty(this.account.currentYearDistribution)){var e=F()().year()+" "+this.i18nStrings.accounts_details_distributions;return this._renderPanel("_currentYearDistribution","currentYearDistribution",e,this._renderMoney(this.account.currentYearDistribution))}}},{key:"_buildRequiredMinimumDistribution",value:function(){if(this._isNotEmpty(this.account.requiredMinimumDistribution))return this._renderPanel("_requiredMinimumDistribution","requiredMinimumDistribution",this.i18nStrings.accounts_details_required_minimum_distribution,this._renderMoney(this.account.requiredMinimumDistribution))}},{key:"_buildLastStatementCycleDate",value:function(){if(this._hasBothCycleDates())return this._renderPanel("_lastStatementCycleDate","lastStatementCycleDate",this.i18nStrings.accounts_details_lastStatementCycleDate,this.account.lastStatementCycleDate)}},{key:"_buildLastStatementThruDate",value:function(){if(this._hasBothCycleDates())return this._renderPanel("_lastStatementThruDate","lastStatementThruDate",this.i18nStrings.accounts_details_lastStatementThruDate,this.account.lastStatementThruDate)}},{key:"_buildLastStatementBalance",value:function(){return this._renderPanel("_lastStatementBalance","lastStatementBalance",this.i18nStrings.accounts_details_lastStatementBalance,this._renderMoney(this.account.lastStatementBalance))}},{key:"_buildCurrentPrincipalBalance",value:function(){if(this._isNotEmpty(this.account.loanInfo.currentPrincipalBalance))return this._renderPanel("_currentPrincipalBalance","currentPrincipalBalance",this.i18nStrings.accounts_details_currentPrincipalBalance,this._renderMoney(this.account.loanInfo.currentPrincipalBalance))}},{key:"_buildPayoffAmount",value:function(){var e=this._getPayoffAmount();if(this._isNotEmpty(e)&&this._isNotZero(e)&&this._isNotSuppressed("payoffAmount"))return this._renderPanel("_payoffAmount","payoffAmount",this.i18nStrings.accounts_details_payoffAmount,this._renderMoney(e))}},{key:"_buildMinPaymentAmount",value:function(){if(this._isNotEmpty(this.account.loanInfo.minPaymentAmount))return this._renderPanel("_minPaymentAmount","minPaymentAmount",this.i18nStrings.accounts_details_minPaymentAmount,this._renderMoney(this.account.loanInfo.minPaymentAmount))}},{key:"_buildPastDuePrincipal",value:function(){if(this._isNotZero(this.account.loanInfo.pastDuePrincipal))return this._renderPanel("_pastDuePrincipal","pastDuePrincipal",this.i18nStrings.accounts_details_pastDuePrincipal,this._renderMoney(this.account.loanInfo.pastDuePrincipal))}},{key:"_buildPastDueInterest",value:function(){if(this._isNotZero(this.account.loanInfo.pastDueInterest)){var e=this.configs.pastDueInterestLabel;return null===e&&(e=this.i18nStrings.accounts_details_pastDueInterest),this._renderPanel("_pastDueInterest","pastDueInterest",e,this._renderMoney(this.account.loanInfo.pastDueInterest))}}},{key:"_buildLastPrincipalPaid",value:function(){if(this._isNotEmpty(this.account.loanInfo.lastPrincipalPaid)&&this._isNotSuppressed("lastPrincipalPaid"))return this._renderPanel("_lastPrincipalPaid","lastPrincipalPaid",this.i18nStrings.accounts_details_lastPrincipalPaid,this._renderMoney(this.account.loanInfo.lastPrincipalPaid))}},{key:"_buildLastInterestPaid",value:function(){if(this._isNotEmpty(this.account.loanInfo.lastInterestPaid)&&this._isNotSuppressed("lastInterestPaid"))return this._renderPanel("_lastInterestPaid","lastInterestPaid",this.i18nStrings.accounts_details_lastInterestPaid,this._renderMoney(this.account.loanInfo.lastInterestPaid))}},{key:"_buildLoanOriginationAmount",value:function(){if(this._isNotZero(this.account.loanInfo.loanOriginationAmount))return this._renderPanel("_loanOriginationAmount","loanOriginationAmount",this.i18nStrings.accounts_details_loanOriginationAmount,this._renderMoney(this.account.loanInfo.loanOriginationAmount))}},{key:"_buildLoanOriginationAmountForLoan",value:function(){if(this._isNotEmpty(this.account.loanInfo.loanOriginationAmount))return this._renderPanel("_loanOriginationAmountForLoan","loanOriginationAmountForLoan",this.i18nStrings.accounts_details_loanOriginationAmount,this._renderMoney(this.account.loanInfo.loanOriginationAmount))}},{key:"_buildOriginatedOn",value:function(){if(this._isNotEmpty(this.account.loanInfo.originatedOn))return this._renderPanel("_originatedOn","originatedOn",this.i18nStrings.accounts_details_originatedOn,this.account.loanInfo.originatedOn)}},{key:"_buildLoanTerm",value:function(){if(this._isNotEmpty(this.account.loanInfo.loanTerm)&&this._isNotSuppressed("loanTerm")&&this._isNotZero(this.account.loanInfo.loanTerm)&&this._isNotEmpty(this.account.loanInfo.loanTermType))return this._renderPanel("_loanTerm","loanTerm",this.i18nStrings.accounts_details_loanTerm,this.account.loanInfo.loanTerm+" "+this.account.loanInfo.loanTermType)}},{key:"_buildCreditLimit",value:function(){if(this._isNotEmpty(this.account.loanInfo.creditLimit))return this._renderPanel("_creditLimit","creditLimit",this.i18nStrings.accounts_details_creditLimit,this._renderMoney(this.account.loanInfo.creditLimit))}},{key:"_buildPayoffBy",value:function(){if(this._isNotEmpty(this.account.loanInfo.payoffBy))return this._renderPanel("_payoffBy","payoffBy",this.i18nStrings.accounts_details_payoffBy,this.account.loanInfo.payoffBy)}},{key:"_buildGoodThrough",value:function(){var e=this._getPayoffAmount();if(this._isNotEmpty(this.account.loanInfo.payoffBy)&&this._isNotZero(e))return this._renderPanel("_buildGoodThrough","buildGoodThrough",this.configs.payoffDateLabel?this.configs.payoffDateLabel:this.i18nStrings.accounts_details_payoffBy,this.account.loanInfo.payoffBy)}},{key:"_buildLoanMaturityDate",value:function(){if(this._isNotEmpty(this.account.loanInfo.loanMaturityDate))return this._renderPanel("_loanMaturityDate","loanMaturityDate",this.i18nStrings.accounts_details_loanMaturityDate,this.account.loanInfo.loanMaturityDate)}},{key:"_buildpromotionName",value:function(e){return this._renderHostPromotionPanel("promotion_name","promotion_name",e.name)}},{key:"_buildpromotionHeaderName",value:function(e){return this._renderHostPromotionPanel("hostPromotionHeader","_hostPromotionHeader",e)}},{key:"_buildpromotionRate",value:function(e){return this._renderPanel("_rate","rate",this.configs.accountDetailsPromotionRate,this._renderRate(e.rate))}},{key:"_buildpromotionType",value:function(e){return this._renderPanel("_type","type",this.configs.accountDetailsPromotionType,e.type)}},{key:"_buildpromotionBalance",value:function(e){return this._renderPanel("_balance","balance",this.configs.accountDetailsPromotionBalance,this._renderMoney(e.balance))}},{key:"_buildpromotionEffectiveDate",value:function(e){return this._renderPanel("_effectiveDate","effectiveDate",this.configs.accountDetailsPromotionEffectiveDate,e.effectiveDate)}},{key:"_buildpromotionexpirationDate",value:function(e){return this._renderPanel("_expirationDate","expirationDate",this.configs.accountDetailsPromotionExpiryDate,e.expiredDate)}},{key:"_buildpromotionterminationDate",value:function(e){return this._renderPanel("_terminationDate","terminationDate",this.configs.accountDetailsPromotionEndDate,e.terminationDate)}},{key:"_buildEscrowBalance",value:function(){if(this._isNotEmpty(this.account.loanInfo.escrowBalance))return this._renderPanel("_escrowBalance","escrowBalance",this.i18nStrings.accounts_details_escrowBalance,this._renderMoney(this.account.loanInfo.escrowBalance))}},{key:"_buildEscrowInterestEarned",value:function(){if(this._isNotEmpty(this.account.loanInfo.escrowInterestEarned))return this._renderPanel("_escrowInterestEarned","escrowInterestEarned",this.i18nStrings.accounts_details_escrowInterestEarned,this._renderMoney(this.account.loanInfo.escrowInterestEarned))}},{key:"_buildEscrowTaxDueDate",value:function(){if(this._isNotEmpty(this.account.loanInfo.escrowTaxDueDate))return this._renderPanel("_escrowTaxDueDate","escrowTaxDueDate",this.i18nStrings.accounts_details_escrowTaxDueDate,this.account.loanInfo.escrowTaxDueDate)}},{key:"_buildEscrowYearToDate",value:function(){if(this._isNotEmpty(this.account.loanInfo.escrowYearToDate))return this._renderPanel("_escrowYearToDate","escrowYearToDate",this.i18nStrings.accounts_details_escrowYearToDate,this._renderMoney(this.account.loanInfo.escrowYearToDate))}},{key:"_buildEscrowPriorYearToDate",value:function(){if(this._isNotEmpty(this.account.loanInfo.escrowPriorYearToDate)){var e=F()().year()-1+" "+this.i18nStrings.accounts_details_escrowPreviousYear;return this._renderPanel("_escrowPriorYearToDate","escrowPriorYearToDate",e,this._renderMoney(this.account.loanInfo.escrowPriorYearToDate))}}},{key:"_buildTaxYearToDate",value:function(){if(this._isNotEmpty(this.account.loanInfo.taxYearToDate))return this._renderPanel("_taxYearToDate","taxYearToDate",this.i18nStrings.accounts_details_escrowTaxesYearToDate,this._renderMoney(this.account.loanInfo.taxYearToDate))}},{key:"_buildTaxPriorYearToDate",value:function(){if(this._isNotEmpty(this.account.loanInfo.taxPriorYearToDate)){var e=F()().year()-1+" "+this.i18nStrings.accounts_details_escrowTaxesPreviousYear;
1return this._renderPanel("_taxPriorYearToDate","taxPriorYearToDate",e,this._renderMoney(this.account.loanInfo.taxPriorYearToDate))}}},{key:"_buildNoteNumber",value:function(){if(this._isNotEmpty(this.account.noteNumber))return this._renderPanel("_noteNumber","noteNumber",this.i18nStrings.accounts_details_noteNumber,this._renderNoteNumber(this.account))}},{key:"_buildCreditLineNumber",value:function(){if(this._isNotEmpty(this.account.creditLineNumber))return this._renderPanel("_creditLineNumber","creditLineNumber",this.i18nStrings.accounts_details_creditLineNumber,this.account.creditLineNumber)}},{key:"_buildAverageDailyBalance",value:function(){if(this._isNotEmpty(this.account.averageDailyBalance)&&this.configs.showAverageDailyBalance&&this.account.category&&this.account.category===U.a.DEPOSIT){var e=this.configs.averageDailyBalanceLabel;return null!==e&&void 0!==e||(e=this.i18nStrings.accounts_details_averageDailyBalance),this._renderPanel("_averageDailyBalance","averageDailyBalance",e,this._renderMoney(this.account.averageDailyBalance))}}},{key:"_buildAvailableCashAdvance",value:function(){if(this._isNotEmpty(this.account.availableCashAdvance)){var e=this.configs.availableCashAdvanceLabel;return null==e&&(e=this.i18nStrings.accounts_details_availableCashAdvance),this._renderPanel("_availableCashAdvance","availableCashAdvance",e,this._renderMoney(this.account.availableCashAdvance))}}},{key:"_buildCashAdvanceLimit",value:function(){if(this._isNotEmpty(this.account.cashAdvanceLimit)){var e=this.configs.cashAdvanceLimitLabel;return null==e&&(e=this.i18nStrings.accounts_details_cashAdvanceLimit),this._renderPanel("_cashAdvanceLimit","cashAdvanceLimit",e,this._renderMoney(this.account.cashAdvanceLimit))}}},{key:"_buildUnappliedFundsBalance",value:function(){if(this._isNotEmpty(this.account.loanInfo.unappliedFundsBalance)&&this._isNotZero(this.account.loanInfo.unappliedFundsBalance))return this._renderPanel("_unappliedFundsBalance","unappliedFundsBalance",this.i18nStrings.accounts_details_unappliedFunds,this._renderMoney(this.account.loanInfo.unappliedFundsBalance))}},{key:"_renderRate",value:function(e){return e.toFixed(3)+"%"}},{key:"_renderMoney",value:function(e){return this._isNotEmpty(e)?Y.a.convertNumberToUSD(e,!0):null}},{key:"_renderNoteNumber",value:function(e){return!0===this.configs.useMaskedAccountNumber?P.a.getMaskedAccountNumber(e):e.noteNumber}},{key:"_renderAccountStatus",value:function(){var e=V[this.account.accountStatus];return this.i18nStrings[e]}},{key:"_hasBothCycleDates",value:function(){return this._isNotEmpty(this.account.lastStatementCycleDate)&&this._isNotEmpty(this.account.lastStatementThruDate)}},{key:"_isNotEmpty",value:function(e){return void 0!=e&&null!=e&&e.toString().length>0}},{key:"_isNotZero",value:function(e){return!(!e||"0"===e.toString())}},{key:"_isNotSuppressed",value:function(e){return-1===this.configs.acct_summ_suppress_values.indexOf(e)}},{key:"_getPayoffAmount",value:function(){return this.configs.accountDisplayCalculatedLoanPayoff?this.account.loanInfo.calculatedPayoffAmount:this.account.loanInfo.payoffAmount}},{key:"_getAccountTypeLabel",value:function(){var e=this.account;return e.fiAccountType?e.fiAccountType:this.i18nStrings[e.accountType.toLowerCase()]}},{key:"_renderPanel",value:function(e,t,n,a){return this._isNotEmpty(a)?d.a.createElement(H,{itemId:e+this.account.id,key:t,label:n,value:a}):null}},{key:"_renderHostPromotionPanel",value:function(e,t,n,a){return d.a.createElement(H,{itemId:e+this.account.id,key:t,label:n,value:a})}}]),e}(),q=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"render",value:function(){return d.a.createElement("div",{className:w.a.panel},this._buildAccountDetailsPanel())}},{key:"_buildAccountDetailsPanel",value:function(){var e=this.props.account;return P.a.isSubLoanAccount(e)&&this.props.configs.showLoanAccountDetails?this._buildSubLoanPanel():P.a.isCreditCardLoanAccount(e)?this._buildCreditCardPanel():P.a.isLoanAccountExceptTCLNote(e)?this._buildLoanPanel():P.a.isLOCAccount(e)?this._buildLOCPanel
1():P.a.isTCLNoteAccount(e)?this._buildTCLPanel():P.a.isTCLCreditLineLoanAccount(e)?this._buildTCLCreditLinePanel():P.a.isSavings(e)?this._buildSavingsPanel():this._buildDefaultPanel()}},{key:"_buildCreditCardPanel",value:function(){var e=new G(this.props.account,this.props.i18nStrings,this.props.configs),t=[];t.pushIfDefined=this.pushIfDefined,t.pushIfDefined(e._buildDisplayMemberNumber()),t.pushIfDefined(e._buildLastStatementCycleDate()),t.pushIfDefined(e._buildLastStatementThruDate()),t.pushIfDefined(e._buildLastStatementBalance()),t.pushIfDefined(e._buildCurrentPrincipalBalance()),t.pushIfDefined(e._buildPayoffAmount()),t.pushIfDefined(e._buildMinPaymentAmount()),t.pushIfDefined(e._buildPastDuePrincipal()),t.pushIfDefined(e._buildPastDueInterest()),t.pushIfDefined(e._buildLastPrincipalPaid()),t.pushIfDefined(e._buildLastInterestPaid()),t.pushIfDefined(e._buildIssueDate()),t.pushIfDefined(e._buildMICRNumber());var n=[];n.pushIfDefined=this.pushIfDefined,n.pushIfDefined(e._buildAccountType()),n.pushIfDefined(e._buildCreditCardDisplayAccountNumber()),n.pushIfDefined(e._buildLoanOriginationAmount()),n.pushIfDefined(e._buildOriginatedOn()),n.pushIfDefined(e._buildLoanTerm()),n.pushIfDefined(e._buildCreditLimit()),n.pushIfDefined(e._buildPayoffBy()),n.pushIfDefined(e._buildLoanMaturityDate()),n.pushIfDefined(e._buildAccountStatus());var a=[];a.pushIfDefined=this.pushIfDefined,a.pushIfDefined(e._buildSuppressibleInterestRateForCreditCard()),a.pushIfDefined(e._buildInterestYearToDateForLoan()),a.pushIfDefined(e._buildInterestPriorYearToDateForLoan()),a.pushIfDefined(e._buildLoanAccruedInterest()),a.pushIfDefined(e._buildLateChargesDue());var i=[];i.pushIfDefined=this.pushIfDefined,i.pushIfDefined(e._buildEscrowBalance()),i.pushIfDefined(e._buildEscrowInterestEarned()),i.pushIfDefined(e._buildEscrowTaxDueDate()),i.pushIfDefined(e._buildEscrowYearToDate()),i.pushIfDefined(e._buildEscrowPriorYearToDate(
1)),i.pushIfDefined(e._buildTaxYearToDate()),i.pushIfDefined(e._buildTaxPriorYearToDate());var o=[];o.pushIfDefined=this.pushIfDefined,this.props.configs.showCashAdvanceAmounts&&(o.pushIfDefined(e._buildCashAdvanceLimit()),o.pushIfDefined(e._buildAvailableCashAdvance()));var r=this._buildUnappliedFundsPanelItemGroup(),s=this._buildHostPromotionPanel();return this.consolidateAllGroups(t,n,a,i,o,r,s)}},{key:"_buildLoanPanel",value:function(){var e=new G(this.props.account,this.props.i18nStrings,this.props.configs),t=[];t.pushIfDefined=this.pushIfDefined,t.pushIfDefined(e._buildDisplayMemberNumber()),t.pushIfDefined(e._buildLastStatementBalance()),t.pushIfDefined(e._buildCurrentPrincipalBalance()),t.pushIfDefined(e._buildPayoffAmount()),t.pushIfDefined(e._buildMinPaymentAmount()),t.pushIfDefined(e._buildPastDuePrincipal()),t.pushIfDefined(e._buildPastDueInterest()),t.pushIfDefined(e._buildLastPrincipalPaid()),t.pushIfDefined(e._buildLastInterestPaid()),t.pushIfDefined(e._buildIssueDate()),t.pushIfDefined(e._buildMICRNumber());var n=[];n.pushIfDefined=this.pushIfDefined,n.pushIfDefined(e._buildAccountType()),n.pushIfDefined(e._buildHostValueOrMaskedAccountNumber()),n.pushIfDefined(e._buildLoanOriginationAmountForLoan()),n.pushIfDefined(e._buildOriginatedOn()),n.pushIfDefined(e._buildLoanTerm()),n.pushIfDefined(e._buildCreditLimit()),n.pushIfDefined(e._buildPayoffBy()),n.pushIfDefined(e._buildLoanMaturityDate()),n.pushIfDefined(e._buildAccountStatus());var a=[];a.pushIfDefined=this.pushIfDefined,a.pushIfDefined(e._buildInterestRateForLoan()),a.pushIfDefined(e._buildInterestYearToDateForLoan()),a.pushIfDefined(e._buildInterestPriorYearToDateForLoan()),a.pushIfDefined(e._buildLoanAccruedInterest()),a.pushIfDefined(e._buildLateChargesDue());var i=[];i.pushIfDefined=this.pushIfDefined,i.pushIfDefined(e._buildEscrowBalance()),i.pushIfDefined(e._buildEscrowInterestEarned()),i.pushIfDefined(e._buildEscrowTaxDueDate()),i.pushIfDefined(e._buildEscrowYearToDate()),i.pushIfDefined(e._buildEscrowPriorYearToDate(
1)),i.pushIfDefined(e._buildTaxYearToDate()),i.pushIfDefined(e._buildTaxPriorYearToDate());var o=this._buildUnappliedFundsPanelItemGroup();return this.consolidateAllGroups(t,n,a,i,o)}},{key:"_buildHostPromotionPanel",value:function(){var e=new G(this.props.account,this.props.i18nStrings,this.props.configs),t=[],n=this.props.account;if(this.props.configs.isHostPromotionEnabled&&n&&n.loanInfo&&n.loanInfo.hostPromotion){var a=n.loanInfo.hostPromotion;if(a.length&&a.length>0){t.push(e._buildpromotionHeaderName(this.props.configs.accountDetailsPromotionHeader=d.a.createElement("span",{className:w.a["account-details-promotionHeader"]},this.props.configs.accountDetailsPromotionHeader))),this.props.configs.accountDetailsPromotionHeader&&t.push(e._buildpromotionHeaderName(d.a.createElement("div",{key:"hostPromotionsHeader",className:w.a["line-break-hostpromotions"]})));for(var i=0;i<a.length;i++){var o=a[i],r=[];r.pushIfDefined=this.pushIfDefined,r.pushIfDefined(e._buildpromotionName(o)),r.pushIfDefined(e._buildpromotionType(o)),r.pushIfDefined(e._buildpromotionRate(o)),r.pushIfDefined(e._buildpromotionBalance(o)),r.pushIfDefined(e._buildpromotionEffectiveDate(o)),r.pushIfDefined(e._buildpromotionterminationDate(o)),r.pushIfDefined(e._buildpromotionexpirationDate(o)),r.pushIfDefined(d.a.createElement("div",{key:"hostPromotionsSeperator"+i,className:w.a["group-dotted-spacer"]})),t.push(r)}var s=this.props.configs.accountDetailsPromotionFooterMessage;t.push(s)}}return t}},{key:"_buildSubLoanPanel",value:function(){var e=this.props.account,t=new G(this.props.account,this.props.i18nStrings,this.props.configs),n=[];n.pushIfDefined=this.pushIfDefined,n.pushIfDefined(t._buildDisplayMemberNumber()),P.a.isCreditCardLoanAccount(e)&&(n.pushIfDefined(t._buildLastStatementCycleDate()),n.pushIfDefined(t._buildLastStatementThruDate())),n.pushIfDefined(t._buildLastStatementBalance()),n.pushIfDefined(t._buildCurrentPrincipalBalance()),n.pushIfDefined(t._buildPayoffAmount()),n.pushIfDefined(t._buildGoodThrough()),n.pushIfDefined(t._buildMinPaymentAmount()),n.pushIfDefined(t._buildPastDueInterest()),n.pushIfDefined(t._buildLastPrincipalPaid()),n.pushIfDefined(t._buildLastInterestPaid()),n.pushIfDefined(t._buildIssueDate()),n.pushIfDefined(t._buildMICRNumber());var a=[];a.pushIfDefined=this.pushIfDefined,a.pushIfDefined(t._buildAccountType()),a.pushIfDefined(t._buildHostValueOrMaskedAccountNumber()),P.a.isCreditCardLoanAccount(e)?a.pushIfDefined(t._buildLoanOriginationAmount()):a.pushIfDefined(t._buildLoanOriginationAmountForLoan()),a.pushIfDefined(t._buildOriginatedOn()),a.pushIfDefined(t._buildLoanTerm()),a.pushIfDefined(t._buildCreditLimit()),a.pushIfDefined(t._buildLoanMaturityDate()),a.pushIfDefined(t._buildAccountStatus());var i=[];i.pushIfDefined=this.pushIfDefined,P.a.isCreditCardLoanAccount(e)?i.pushIfDefined(t._buildSuppressibleInterestRateForCreditCard()):i.pushIfDefined(t._buildInterestRateForLoan()),i.pushIfDefined(t._buildInterestYearToDateForLoan()),i.pushIfDefined(t._buildInterestPriorYearToDateForLoan()),i.pushIfDefined(t._buildLoanAccruedInterest()),i.pushIfDefined(t._buildLateChargesDue());var o=[];o.pushIfDefined=this.pushIfDefined,o.pushIfDefined(t._buildEscrowBalance()),o.pushIfDefined(t._buildEscrowInterestEarned()),o.pushIfDefined(t._buildEscrowTaxDueDate()),o.pushIfDefined(t._buildEscrowYearToDate()),o.pushIfDefined(t._buildEscrowPriorYearToDate(
1)),o.pushIfDefined(t._buildTaxYearToDate()),o.pushIfDefined(t._buildTaxPriorYearToDate());var r=[];r.pushIfDefined=this.pushIfDefined,this.props.configs.showCashAdvanceAmounts&&P.a.isCreditCardLoanAccount(e)&&(r.pushIfDefined(t._buildCashAdvanceLimit()),r.pushIfDefined(t._buildAvailableCashAdvance()));var s=this._buildUnappliedFundsPanelItemGroup();return this.consolidateAllGroups(n,a,i,o,r,s)}},{key:"_buildLOCPanel",value:function(){var e=new G(this.props.account,this.props.i18nStrings,this.props.configs),t=[];t.pushIfDefined=this.pushIfDefined,t.pushIfDefined(e._buildDisplayMemberNumber()),t.pushIfDefined(e._buildLastStatementCycleDate()),t.pushIfDefined(e._buildLastStatementThruDate()),t.pushIfDefined(e._buildLastStatementBalance()),t.pushIfDefined(e._buildCurrentPrincipalBalance()),t.pushIfDefined(e._buildPayoffAmount()),t.pushIfDefined(e._buildMinPaymentAmount()),t.pushIfDefined(e._buildPastDuePrincipal()),t.pushIfDefined(e._buildPastDueInterest()),t.pushIfDefined(e._buildLastPrincipalPaid()),t.pushIfDefined(e._buildLastInterestPaid()),t.pushIfDefined(e._buildIssueDate()),t.pushIfDefined(e._buildMICRNumber());var n=[];n.pushIfDefined=this.pushIfDefined,n.pushIfDefined(e._buildAccountType()),n.pushIfDefined(e._buildHostValueOrMaskedAccountNumber()),n.pushIfDefined(e._buildLoanOriginationAmountForLoan()),n.pushIfDefined(e._buildOriginatedOn()),n.pushIfDefined(e._buildLoanTerm()),n.pushIfDefined(e._buildCreditLimit()),n.pushIfDefined(e._buildPayoffBy()),n.pushIfDefined(e._buildLoanMaturityDate()),n.pushIfDefined(e._buildAccountStatus());var a=[];a.pushIfDefined=this.pushIfDefined,a.pushIfDefined(e._buildInterestRateForLoan()),a.pushIfDefined(e._buildInterestYearToDateForLoan()),a.pushIfDefined(e._buildInterestPriorYearToDateForLoan()),a.pushIfDefined(e._buildLoanAccruedInterest()),a.pushIfDefined(e._buildLateChargesDue());var i=[];i.pushIfDefined=this.pushIfDefined,i.pushIfDefined(e._buildEscrowBalance()),i.pushIfDefined(e._buildEscrowInterestEarned()),i.pushIfDefined(e._buildEscrowTaxDueDate()),i.pushIfDefined(e._buildEscrowYearToDate()),i.pushIfDefined(e._buildEscrowPriorYearToDate(
1)),i.pushIfDefined(e._buildTaxYearToDate()),i.pushIfDefined(e._buildTaxPriorYearToDate());var o=this._buildUnappliedFundsPanelItemGroup();return this.consolidateAllGroups(t,n,a,i,o)}},{key:"_buildTCLPanel",value:function(){var e=new G(this.props.account,this.props.i18nStrings,this.props.configs),t=[];t.pushIfDefined=this.pushIfDefined,t.pushIfDefined(e._buildDisplayMemberNumber()),t.pushIfDefined(e._buildLastStatementBalance()),t.pushIfDefined(e._buildCurrentPrincipalBalance()),t.pushIfDefined(e._buildPayoffAmount()),t.pushIfDefined(e._buildMinPaymentAmount()),t.pushIfDefined(e._buildPastDuePrincipal()),t.pushIfDefined(e._buildPastDueInterest()),t.pushIfDefined(e._buildLastPrincipalPaid()),t.pushIfDefined(e._buildLastInterestPaid()),t.pushIfDefined(e._buildMICRNumber());var n=[];n.pushIfDefined=this.pushIfDefined,n.pushIfDefined(e._buildAccountType()),n.pushIfDefined(e._buildLoanOriginationAmountForLoan()),n.pushIfDefined(e._buildOriginatedOn()),n.pushIfDefined(e._buildLoanTerm()),n.pushIfDefined(e._buildCreditLimit()),n.pushIfDefined(e._buildPayoffBy()),n.pushIfDefined(e._buildLoanMaturityDate()),n.pushIfDefined(e._buildAccountStatus()),n.pushIfDefined(e._buildHostValueOrMaskedAccountNumberForTCL()),n.pushIfDefined(e._buildNoteNumber());var a=[];a.pushIfDefined=this.pushIfDefined,a.pushIfDefined(e._buildInterestRateForLoan()),a.pushIfDefined(e._buildInterestYearToDateForLoan()),a.pushIfDefined(e._buildInterestPriorYearToDateForLoan()),a.pushIfDefined(e._buildLoanAccruedInterest()),a.pushIfDefined(e._buildLateChargesDue());var i=[];i.pushIfDefined=this.pushIfDefined,i.pushIfDefined(e._buildEscrowBalance()),i.pushIfDefined(e._buildEscrowInterestEarned()),i.pushIfDefined(e._buildEscrowTaxDueDate()),i.pushIfDefined(e._buildEscrowYearToDate()),i.pushIfDefined(e._buildEscrowPriorYearToDate(
1)),i.pushIfDefined(e._buildTaxYearToDate()),i.pushIfDefined(e._buildTaxPriorYearToDate());var o=this._buildUnappliedFundsPanelItemGroup();return this.consolidateAllGroups(t,n,a,i,o)}},{key:"_buildTCLCreditLinePanel",value:function(){var e=new G(this.props.account,this.props.i18nStrings,this.props.configs),t=[];t.pushIfDefined=this.pushIfDefined,t.pushIfDefined(e._buildDisplayMemberNumber()),t.pushIfDefined(e._buildLastStatementBalance()),t.pushIfDefined(e._buildCurrentPrincipalBalance()),t.pushIfDefined(e._buildPayoffAmount()),t.pushIfDefined(e._buildMinPaymentAmount()),t.pushIfDefined(e._buildPastDuePrincipal()),t.pushIfDefined(e._buildPastDueInterest()),t.pushIfDefined(e._buildLastPrincipalPaid()),t.pushIfDefined(e._buildLastInterestPaid()),t.pushIfDefined(e._buildIssueDate()),t.pushIfDefined(e._buildMICRNumber());var n=[];n.pushIfDefined=this.pushIfDefined,n.pushIfDefined(e._buildAccountType()),n.pushIfDefined(e._buildLoanOriginationAmountForLoan()),n.pushIfDefined(e._buildOriginatedOn()),n.pushIfDefined(e._buildLoanTerm()),n.pushIfDefined(e._buildCreditLimit()),n.pushIfDefined(e._buildPayoffBy()),n.pushIfDefined(e._buildLoanMaturityDate()),n.pushIfDefined(e._buildAccountStatus()),n.pushIfDefined(e._buildHostValueOrMaskedAccountNumberForTCL()),n.pushIfDefined(e._buildCreditLineNumber());var a=[];a.pushIfDefined=this.pushIfDefined,a.pushIfDefined(e._buildInterestRateForLoan()),a.pushIfDefined(e._buildInterestYearToDateForLoan()),a.pushIfDefined(e._buildInterestPriorYearToDateForLoan()),a.pushIfDefined(e._buildLoanAccruedInterest()),a.pushIfDefined(e._buildLateChargesDue());var i=[];i.pushIfDefined=this.pushIfDefined,i.pushIfDefined(e._buildEscrowBalance()),i.pushIfDefined(e._buildEscrowInterestEarned()),i.pushIfDefined(e._buildEscrowTaxDueDate()),i.pushIfDefined(e._buildEscrowYearToDate()),i.pushIfDefined(e._buildEscrowPriorYearToDate(
1)),i.pushIfDefined(e._buildTaxYearToDate()),i.pushIfDefined(e._buildTaxPriorYearToDate());var o=this._buildUnappliedFundsPanelItemGroup();return this.consolidateAllGroups(t,n,a,i,o)}},{key:"_buildSavingsPanel",value:function(){var e=new G(this.props.account,this.props.i18nStrings,this.props.configs),t=[];t.pushIfDefined=this.pushIfDefined,t.pushIfDefined(e._buildDisplayMemberNumber()),t.pushIfDefined(e._buildAccountType()),t.pushIfDefined(e._buildHostValueOrMaskedAccountNumber()),t.pushIfDefined(e._buildRoutingNumber()),t.pushIfDefined(e._buildIssueDate()),t.pushIfDefined(e._buildIssueAmount()),t.pushIfDefined(e._buildAchId()),t.pushIfDefined(e._buildMICRNumber()),t.pushIfDefined(e._buildAccountStatus()),t.pushIfDefined(e._buildAchCount()),t.pushIfDefined(e._buildPointOfSaleCount()),t.pushIfDefined(e._buildMaturityDate());var n=[];n.pushIfDefined=this.pushIfDefined,n.pushIfDefined(e._buildRegDTransfers()),n.pushIfDefined(e._buildAverageDailyBalance()),n.pushIfDefined(e._buildAnnualPercentageYield()),n.pushIfDefined(e._buildInterestRateForDeposits()),n.pushIfDefined(e._buildAccruedInterest()),n.pushIfDefined(e._buildInterestPriorYearToDate(
1)),n.pushIfDefined(e._buildLastDividendDate()),n.pushIfDefined(e._buildLastDividendAmmount()),n.pushIfDefined(e._buildTier1QualifiedRate()),n.pushIfDefined(e._buildTier2QualifiedRate()),n.pushIfDefined(e._buildNonQualifiedRate());var a=[];return a.pushIfDefined=this.pushIfDefined,a.pushIfDefined(e._buildLastYearContribution()),a.pushIfDefined(e._buildCurrentYearContribution()),a.pushIfDefined(e._buildLastYearDistribution()),a.pushIfDefined(e._buildCurrentYearDistribution()),a.pushIfDefined(e._buildRequiredMinimumDistribution()),this.consolidateAllGroups(t,n,a)}},{key:"_buildDefaultPanel",value:function(){var e=new G(this.props.account,this.props.i18nStrings,this.props.configs),t=[];t.pushIfDefined=this.pushIfDefined,t.pushIfDefined(e._buildDisplayMemberNumber()),t.pushIfDefined(e._buildAccountType()),t.pushIfDefined(e._buildHostValueOrMaskedAccountNumber()),t.pushIfDefined(e._buildRoutingNumber()),t.pushIfDefined(e._buildIssueDate()),t.pushIfDefined(e._buildIssueAmount()),t.pushIfDefined(e._buildAchId()),t.pushIfDefined(e._buildMICRNumber()),t.pushIfDefined(e._buildAccountStatus()),t.pushIfDefined(e._buildAchCount()),t.pushIfDefined(e._buildPointOfSaleCount());var n=[];n.pushIfDefined=this.pushIfDefined,n.pushIfDefined(e._buildAverageDailyBalance()),n.pushIfDefined(e._buildAnnualPercentageYield()),n.pushIfDefined(e._buildInterestRateForDeposits()),n.pushIfDefined(e._buildInterestYearToDate(
1)),n.pushIfDefined(e._buildAccruedInterest()),n.pushIfDefined(e._buildInterestPriorYearToDate()),n.pushIfDefined(e._buildLastDividendDate()),n.pushIfDefined(e._buildLastDividendAmmount()),n.pushIfDefined(e._buildTier1QualifiedRate()),n.pushIfDefined(e._buildTier2QualifiedRate()),n.pushIfDefined(e._buildNonQualifiedRate()),n.pushIfDefined(e._buildLateChargesDue());var a=[];return a.pushIfDefined=this.pushIfDefined,a.pushIfDefined(e._buildOverdraftAvailable()),a.pushIfDefined(e._buildCheckingOverdraftAccount()),a.pushIfDefined(e._buildOverdraftLimit()),this.consolidateAllGroups(t,n,a)}},{key:"_buildUnappliedFundsPanelItemGroup",value:function(){var e=[];if(this.props.configs.accountDisplayUnappliedFundsBalance){var t=new G(this.props.account,this.props.i18nStrings,this.props.configs);e.pushIfDefined=this.pushIfDefined,e.pushIfDefined(t._buildUnappliedFundsBalance())}return e}},{key:"consolidateAllGroups",value:function(){var e=[];e.pushIfDefined=this.pushIfDefined;for(var t=0;t<arguments.length;t++){var n=t<0||arguments.length<=t?void 0:arguments[t];e.pushIfDefined(n),e.pushIfDefined(n.length>0?d.a.createElement("div",{key:t,className:w.a["group-dotted-spacer"]}):null)}return e}},{key:"pushIfDefined",value:function(e){e&&this.push(e)}}]),n}(u.Component);q.PropTypes={account:c.a.object.isRequired,configs:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var W=n(467),K=n(583),Z=n(1448),Q=n(1383),X=n(89),z=n(1350),J=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"updateDefaultDateRange",value:function(e,t,n,a,i){return t&&n?z.a.postFormData(e+f.a.URL_USERPREFERENCES,{pageId:n,prefId:a,prefValue:i},{rftoken:t}):Promise.reject("Failed to retrieve rftoken and pageId.")}}]),e}(),$=function(){function e(){Object(a.a)(this,e),this.generateActions("handleBackClick","handleForwardClick","handleDateRangeChange","updateDefaultDateRangeSuccess","setDefaultDateRange")}return Object(i.a)(e,[{key:"updateDefaultDateRange",value:function(e,t,n,a,i){var o=this;return function(r){return setTimeout((function(){return r()}),1),J.updateDefaultDateRange(e,t,n,a,i).then((function(e){if(null!==e&&e.status===f.a.HTTP_STATUS_OK&&"success"===e.data.userpreferencesresponse)return o.actions.updateDefaultDateRangeSuccess(e.data.defaultDateRange)})).catch((function(e){return null}))}}}]),e}(),ee=X.a.createActions($),te=function(){function e(){Object(a.a)(this,e),this.state={startDate:null,endDate:null,dateRange:null,defaultDateRange:null,isCustomDateRangeSet:!1},this.bindActions(ee)}return Object(i.a)(e,[{key:"onHandleDateRangeChange",value:function(e){this.setState({startDate:e.startDate,endDate:e.endDate,dateRange:e.dateRange,isCustomDateRangeSet:e.isCustomDateRangeSet})}},{key:"onHandleBackClick",value:function(e){this.setState({startDate:e.startDate,endDate:e.endDate,dateRange:e.dateRange})}},{key:"onHandleForwardClick",value:function(e){this.setState({startDate:e.startDate,endDate:e.endDate,dateRange:e.dateRange})}},{key:"updateDefaultDateRangeSuccess",value:function(e){this.setState({defaultDateRange:e})}},{key:"setDefaultDateRange",value:function(e){this.setState({defaultDateRange:e})}}]),e}(),ne=X.a.createStore(te,"DateRangeStore"),ae=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"getStartDate",value:function(e){var t=F()();if(e===f.a.MONTHLY)t.startOf("month");else{var n=parseInt(e);t.subtract(n-1,"days")}return t.startOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT)}},{key:"getPropsBackClick",value:function(e){var t=e.dateRange,n=F()(e.startDate),a=F()(e.endDate),i={dateRange:t};if(t===f.a.MONTHLY)n.subtract(1,"months"),a.subtract(1,"months"),i.startDate=n.startOf("month").format(f.a.TRANSACTIONS_DATE_FORMAT),i.endDate=a.endOf("month").format(f.a.TRANSACTIONS_DATE_FORMAT);else if(t===f.a.CUSTOM)i.startDate=n.format(f.a.TRANSACTIONS_DATE_FORMAT),i.endDate=a.format(f.a.TRANSACTIONS_DATE_FORMAT);else{var o=parseInt(t);i.startDate=n.subtract(o,"days").format(f.a.TRANSACTIONS_DATE_FORMAT),i.endDate=a.subtract(o,"days").format(f.a.TRANSACTIONS_DATE_FORMAT)}return i}},{key:"getPropsForwardClick",value:function(e){var t=e.dateRange,n=F()(e.startDate),a=F()(e.endDate),i={dateRange:t};if(t===f.a.MONTHLY)n.add(1,"months"),a.add(1,"months"),i.startDate=n.startOf("month").format(f.a.TRANSACTIONS_DATE_FORMAT),i.endDate=a.endOf("month").format(f.a.TRANSACTIONS_DATE_FORMAT),a>F()()&&(i.endDate=F()().endOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT));else if(t===f.a.CUSTOM)i.startDate=n.format(f.a.TRANSACTIONS_DATE_FORMAT),i.endDate=a.format(f.a.TRANSACTIONS_DATE_FORMAT);else{var o=parseInt(t);i.startDate=n.add(o,"days").format(f.a.TRANSACTIONS_DATE_FORMAT),i.endDate=a.add(o,"days").format(f.a.TRANSACTIONS_DATE_FORMAT)}return i}},{key:"getRangeLabel",value:function(e,t){var n=t.daterange_label_display_10days;return e===f.a.THIRTY?n=t.daterange_label_display_30days:e===f.a.MONTHLY?n=t.daterange_label_display_monthly:e===f.a.CUSTOM&&(n=t.daterange_label_display_custom),n}},{key:"getDateRangeLabel",value:function(e,t,n,a){var i=F()(e),o=F()(t);return n===f.a.MONTHLY?F()().get("year")===i.get("year")?i.startOf("month").format(f.a.CALENDAR_MONTH_FORMAT):i.startOf("month").format(f.a.CALENDAR_MONTH_YEAR_FORMAT):i.format(a)+" - "+o.format(a)}},{key:"getPrintDateRangeLabel",value:function(e,t,n,a){var i=F()(e),o=F()(t);return n===f.a.LOAD_MORE&&(o=F()().endOf("day")),i.format(a)+" - "+o.format(a)}},{key:"getPrintDateRangeRangeLabel",value:function(e,t){var n=F()(e),a=F()(t);return"".concat(a.diff(n,"days")+1," days")}}]),e}(),ie=n(1347),oe=n.n(ie),re=n(1348),se=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._onAccountSelectionChange=i._onAccountSelectionChange.bind(Object(E.a)(i)),i._getAccountDescription=i._getAccountDescription.bind(Object(E.a)(i)),i._shouldShowOnHistoryPage=i._shouldShowOnHistoryPage.bind(Object(E.a)(i)),i._getAccountDescriptionOnly=i._getAccountDescriptionOnly.bind(Object(E.a)(i)),i._getAccountHolderIdOnly=i._getAccountHolderIdOnly.bind(Object(E.a)(i)),i}return Object(i.a)(n,[{key:"_shouldShowOnHistoryPage",value:function(e){return e.displayFlag.isHistoryEnabled&&null==e.tpvReference}},{key:"_getAccountDescription",value:function(e){var t=e.description+" ",n=e.displayPrimaryHolderId;return P.a.showPrimaryHolderIdInAccountDescription(e,this.props.configs)&&(t+=n+"-"),t}},{key:"_getAccountDescriptionOnly",value:function(e){return e.description}},{key:"_getAccountHolderIdOnly",value:function(e){return P.a.showPrimaryHolderIdInAccountDescription(e,this.props.configs)?e.displayPrimaryHolderId+"-":""}},{key:"_renderSelectedAccount",value:function(e){var t=P.a.getMaskedAccountNumber(e),n="";return n=this.props.configs.displayAccountMaskedFormatEnabled?e.displayAccountNumber:t&&t.length>f.a.MAXIMUM_UNMASKED_ACCOUNT_NUMBER_LENGTH?P.a.maskAccountNumber(t):t,d.a.createElement("button",{id:"accountItem".concat(e.id),className:w.a["dropdown-selected-button"],title:this._getAccountDescription(e)+n,"aria-describedby":"accountSelectionLabel"},d.a.createElement("div",{className:w.a["dropdown-selected-account-name"]},this._getAccountDescriptionOnly(e)),d.a.createElement("div",{className:w.a["dropdown-selected-account-holderId"]},this._getAccountHolderIdOnly(e)),d.a.createElement("div",{className:w.a["dropdown-selected-account-number"]},n,d.a.createElement("span",{className:"caret"})),d.a.createElement("span",{className:"sr-only",id:"accountSelectionLabel"},this.props.i18nStrings.accounts_selection_labelText+" "+this._getAccountDescription(e)+n+" "+this.props.i18nStrings.accounts_selection_label))}},{key:"_renderDropdownItems",value:function(){var e=this,t=[],n=this.props.accounts;
1return(void 0===n?[]:n).forEach((function(n){if(e._shouldShowOnHistoryPage(n)){var a=[w.a["dropdown-item"]];n.id===e.props.account.id&&a.push("active"),t.push(d.a.createElement(W.a,{key:"_accountDropDownItem".concat(n.id),id:"_accountDropDownItem".concat(n.id),className:a.join(" "),dataOnSelect:n,title:e._getAccountDescription(n)+P.a.getMaskedAccountNumber(n)},d.a.createElement("span",{key:"_accountItemDetails".concat(n.id),id:"accountItemDetails".concat(n.id)},e._getAccountDescription(n)+P.a.getMaskedAccountNumber(n))))}})),t}},{key:"_onAccountSelectionChange",value:function(e){if(this.props.account.id!==e.id){re.a.logHistoryPageAction(oe.a.history_event_category,oe.a.history_account_change_click,this.props.configs.reportSuite),Z.a.selectAccount(e),Q.a.setFilter("");var t={startDate:ae.getStartDate(this.props.defaultDateRange),endDate:F()().endOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT),dateRange:this.props.defaultDateRange},n=this.props.location||{},a=n.locationName,i=void 0===a?"":a,o=n.productUserGuid,r=void 0===o?"":o;ee.handleDateRangeChange(t),Q.a.getTransactions(this.props.configs.contextPath,this.props.configs.rftoken,e.id,t.startDate,t.endDate,r,i,this.props.configs.pageId)}}},{key:"render",value:function(){var e=this._renderDropdownItems();return d.a.createElement("div",{className:"col-xs-12 col-sm-7 ".concat(w.a["account-selector-dropdown"])},d.a.createElement(K.a,{selectedItem:this._renderSelectedAccount(this.props.account),onSelect:this._onAccountSelectionChange,ariaRole:"application",height:400,titleText:" ",variationType:"link brand-link"},e))}}],[{key:"getStores",value:function(){return[ne]}},{key:"getPropsFromStores",value:function(){return Object(m.a)({},ne.getState())}}]),n}(u.Component);se.defaultProps={accounts:[]},se.PropTypes={account:c.a.object.isRequired,i18nStrings:c.a.object.isRequired,accounts:c.a.array.isRequired,configs:c.a.object.isRequired};var le=C()(se),ce=n(1456),ue=n(1418),de=function(e){var t=e.account,n=e.pageConfigs;return null!=t&&P.a.shouldShowRegdd(t,n.regdd_display)?d.a.createElement("div",{className:"print-regdd-text text-legal ".concat(k["regdd-text"])},"** ",n.regdd_text):null};de.propTypes={account:c.a.oneOfType([c.a.object]).isRequired,pageConfigs:c.a.oneOfType([c.a.object]).isRequired};var pe=de,me=n(1399),he=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"logAccountSummaryGL",value:function(e,t,n){return z.a.get(e+v.URL_ACCOUNT_SUMMARY_GL,{rftoken:t,success:n})}}]),e}(),ge=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._onLocationSelect=function(e){var t=i.props.locations;me.a.selectLocation(t[e])},i.state={openAccountDetails:!1},i._toggleAccountDetailsPanel=i._toggleAccountDetailsPanel.bind(Object(E.a)(i)),i._onPrintClick=i._onPrintClick.bind(Object(E.a)(i)),i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.refs.accountDetailBtn&&A.a.findDOMNode(this.refs.accountDetailBtn).setAttribute("aria-labelledby","legalText accountDetailBtn accountDetailsInfo")}},{key:"_toggleAccountDetailsPanel",value:function(){var e=this;if(this.refs.accountDetailBtn&&!this.state.openAccountDetails){var t=this.props.pageConfigs,n={diId:t.diId,fiName:t.fiName,guid:t.guid,page_name:"account_details"};re.a.logHistoryPageAction(oe.a.history_event_category,oe.a.history_account_details_click,this.props.pageConfigs.reportSuite,n),he.logAccountSummaryGL(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,!0)}this.setState({openAccountDetails:!this.state.openAccountDetails}),this.refs.accountDetailBtn&&this.state.openAccountDetails?(A.a.findDOMNode(this.refs.accountDetailBtn).setAttribute("aria-labelledby","accountDetailBtn accountDetailsInfo"),setTimeout((function(){e.refs.accountDetailBtn.focus()}),300)):A.a.findDOMNode(this.refs.accountDetailBtn).setAttribute("aria-labelledby","accountDetailBtn openAccountDetails")}},{key:"_renderAccountOverview",value:function(){return d.a.createElement("div",{className:"col-xs-12 col-sm-5 "+w.a["account-details-overview"],id:"accountDetailsInfo"},d.a.createElement(j,{account:this.props.selectedAccount,i18nStrings:this.props.i18nStrings,configs:this.props.pageConfigs}))}},{key:"_renderAccountDetailsLink",value:function(){return!0===this.props.pageConfigs.primaryUser?d.a.createElement("div",null,d.a.createElement("div",{className:w.a["account-details-link-sibling-spacer"]}),d.a.createElement("button",{type:"button",className:w.a["button-class"]+" "+w.a["account-details-link"],onClick:this._toggleAccountDetailsPanel,"aria-expanded":this.state.openAccountDetails,id:"accountDetailBtn",ref:"accountDetailBtn"},this.props.i18nStrings.accounts_details_heading,d.a.createElement(R.a,{name:"Forward",className:w.a["account-details-link-arrow"]}),d.a.createElement("span",{className:"sr-only",id:"legalText"},d.a.createElement(pe,{account:this.props.selectedAccount,pageConfigs:this.props.pageConfigs})))):null}},{key:"_renderPrintCloseButtons",value:function(){return d.a.createElement("div",{className:w.a["print-close-buttons"]},!0===this.props.pageConfigs.primaryUser?d.a.createElement("button",{type:"button",className:w.a["button-class"],onClick:this._onPrintClick,"aria-label":"Print"},d.a.createElement(R.a,{name:"Print"})):null,d.a.createElement("button",{type:"button",className:w.a["button-class"],onClick:this._toggleAccountDetailsPanel,"aria-label":"close"},d.a.createElement(R.a,{name:"Close"})))}},{key:"_onPrintClick",value:function(){var e=document.createElement("div"),t=this._printAccountDetails();A.a.render(t,e);var n=this._getPrintCSSURL();ue.a.openPrintWindow(ue.a.generatePrintHTML("",n,e.innerHTML))}},{key:"_getPrintCSSURL",value:function(){var e="/dbank/live/sdp/dist/css/print.css";return this.props.pageConfigs.printCSSURL&&(e=this.props.pageConfigs.printCSSURL),e}},{key:"_printAccountDetails",value:function(){return d.a.createElement("div",{className:"border-print-page"},this._printAccountDetailsHeader(),d.a.createElement("div",{className:"print-account-details-overview"},this._renderAccountOverview("")),d.a.createElement(q,{account:this.props.selectedAccount,i18nStrings:this.props.i18nStrings,configs:this.props.pageConfigs}),d.a.createElement(pe,{account:this.props.selectedAccount,pageConfigs:this.props.pageConfigs}))}},{key:"_printAccountDetailsHeader",value:function(){var e=F()().format(f.a.HISTORY_ACCOUNT_DETAILS_PRINT_DATE_FORMAT),t=P.a.showPrimaryHolderIdInAccountDescription(this.props.selectedAccount,this.props.pageConfigs)?this.props.selectedAccount.displayPrimaryHolderId+"-":"",n=P.a.getMaskedAccountNumber(this.props.selectedAccount);return t+=n||"",d.a.createElement("div",null,d.a.createElement("div",{className:"print-fi-name"},d.a.createElement("span",null,this.props.pageConfigs.fiName),d.a.createElement("span",{className:"print-date-time"},e)),d.a.createElement("h3",{className:"print-account-heading"},this.props.i18nStrings.accounts_details_print_heading," -"," ",this.props.selectedAccount.de
1scription," ",t))}},{key:"render",value:function(){var e=this.props.selectedLocation;return null!=this.props.selectedAccount&&null!=this.props.accounts?d.a.createElement("div",{className:w.a["bottom-stroke"]},d.a.createElement("div",{className:w.a["account-details"]},e&&d.a.createElement("div",{className:w.a["tin-dropdown"]+" brand-link"},this._renderLocationDropdown()),d.a.createElement(le,{account:this.props.selectedAccount,location:this.props.selectedLocation,i18nStrings:this.props.i18nStrings,configs:this.props.pageConfigs,accounts:this.props.accounts}),this._renderAccountOverview(),this._renderAccountDetailsLink(),d.a.createElement("div",{style:{clear:"both"}})),this.state.openAccountDetails?d.a.createElement("span",{id:"openAccountDetails","aria-live":this.state.openAccountDetails?"assertive":"","aria-atomic":this.state.openAccountDetails?"false":""},d.a.createElement(q,{account:this.props.selectedAccount,i18nStrings:this.props.i18nStrings,configs:this.props.pageConfigs}),this._renderPrintCloseButtons()):null):null}},{key:"_renderLocationDropdown",value:function(){var e=this,t=this.props,n=t.locations,a=t.selectedLocation,i=t.i18nStrings;return d.a.createElement(ce.a,{id:"Location",locations:n,defaultLocation:a,onSelect:this._onLocationSelect,i18nStrings:i,hideTINLabel:!0,ref:function(t){e.locationDropdownGroup=t}})}}]),n}(u.Component);ge.PropTypes={selectedAccount:c.a.object.isRequired,selectedLocation:c.a.object,accounts:c.a.array.isRequired,pageConfigs:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var ve=n(1417),fe=n(1419),_e=n.n(fe),be=n(1499),Ce=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var e=_e.a["error-container"]+" print-table-error-container";return this.props.className&&(e+=" "+this.props.className),d.a.createElement("div",{className:e,role:"alert","aria-live":"assertive","aria-atomic":"false"},d.a.createElement("h3",null,d.a.createElement(R.a,{name:"AlertError"}),d.a.createElement("span",{className:_e.a["error-message"]},this.props.messages.error)),d.a.createElement("h5",{className:"light-text"},this.props.messages.errorSubText))}}]),n}(u.Component);Ce.PropTypes={messages:c.a.shape({error:c.a.string.isRequired,errorSubText:c.a.string}).isRequired,className:c.a.string,tableRow:c.a.bool,tableRowClassName:c.a.string};var ye=Object(be.a)(Ce),De=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var e=_e.a["loading-container"];return this.props.className&&(e+=" "+this.props.className),d.a.createElement("div",{className:e,role:"alert","aria-live":"assertive","aria-atomic":"false"},d.a.createElement(R.a,{name:"SmallLoader",size:"lg"}),d.a.createElement("h5",null,this.props.messages.loading))}}]),n}(u.Component);De.PropTypes={messages:c.a.shape({loading:c.a.string.isRequired}).isRequired,className:c.a.string,tableRow:c.a.bool,tableRowClassName:c.a.string};var Se=Object(be.a)(De),Oe=n(1500),Ie=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;Object(a.a)(this,n),(i=t.call(this,e))._renderColumnHeaders=i._renderColumnHeaders.bind(Object(E.a)(i)),i._renderBody=i._renderBody.bind(Object(E.a)(i)),i._renderRows=i._renderRows.bind(Object(E.a)(i)),i._renderCustomBody=i._renderCustomBody.bind(Object(E.a)(i)),i._headerColumnClick=i._headerColumnClick.bind(Object(E.a)(i)),i._getPassThroughProps=i._getPassThroughProps.bind(Object(E.a)(i)),i._sortData=i._sortData.bind(Object(E.a)(i)),i._renderAriaMessage=i._renderAriaMessage.bind(Object(E.a)(i)),i._setAriaSortMessage=i._setAriaSortMessage.bind(Object(E.a)(i));var o=i.props.columns&&i.props.columns.length>0?i.props.columns[0].id:"",r=f.a.SORT_DESCENDING;return i.props.defaultSort&&(o=i.props.defaultSort.column,r=i.props.defaultSort.direction),i.state={sortColumn:o,sortDirection:r},i}return Object(i.a)(n,[{key:"render",value:function(){return d.a.createElement("div",{className:"table-responsive fade-in"},d.a.createElement("div",{role:"alert",ref:"ariaMessage",className:"sr-only","aria-live":"assertive"},this._renderAriaMessage()),d.a.createElement("table",{className:"table cardlytics_history_table"},this._renderColumnHeaders(),this._renderBody()))}},{key:"_renderColumnHeaders",value:function(){var e=this;if("true"!==this.props.noHeader){var t=[];if(this.props.CustomHeader){var n=this.props.CustomHeader,a=this._getPassThroughProps();return d.a.createElement(n,a)}return this.props.columns.forEach((function(n,a){var i="",o="";n.columnCSSClass&&(i=n.columnCSSClass);var r=null;n.sortable&&(i=i+" "+_e.a.sortable,r={onClick:e._headerColumnClick.bind(e,n.id),onKeyPress:e._headerColumnClick.bind(e,n.id)});var s=null;if(e.state.sortColumn===n.id&&!0===n.sortable){var l=_e.a["sort-arrow"];e.state.sortDirection===f.a.SORT_ASCENDING&&(l+=" "+_e.a.ascending),s=d.a.createElement(R.a,{className:l,name:"Sort"}),i+=" "+_e.a["sortable-selected"],o=e.state.sortDirection}t.push(d.a.createElement("th",Object.assign({id:"header-"+n.id,key:a,className:i},r,{role:"columnheader",scope:"col",tabIndex:"0","aria-sort":o||"none","aria-label":o?e.state.sortColumn+" "+o:n.label}),n.label,s))}
1)),d.a.createElement("thead",{className:"brand-type-a-bg-10p"},d.a.createElement("tr",null,t))}}},{key:"_renderBody",value:function(){return this.props.error?d.a.createElement(ye,{messages:this.props.messages,tableRow:!0}):this.props.loading?d.a.createElement(Se,{messages:this.props.messages,tableRow:!0}):this.props.CustomBody?this._renderCustomBody():this._renderRows()}},{key:"_renderAriaMessage",value:function(){var e="";return this.props.messages&&(e=this.props.error?this.props.messages.error+" "+this.props.messages.errorSubText:this.props.loading?this.props.messages.loading:this.props.data.length>0?this.props.messages.ariaDataHelpText:this.props.messages.noData),e}},{key:"_renderCustomBody",value:function(){var e=this.props.CustomBody,t=this._getPassThroughProps();return d.a.createElement(e,Object.assign({},t,{data:this.props.data}))}},{key:"_renderRows",value:function(){var e=this,t=[];if(this.props.data.length>0){var n=this.props.data;n=this._sortData();var a=this.state.sortColumn+"-"+this.state.sortDirection+"-";return n.forEach((function(n,i){var o=null;if(e.props.rowCSSClass&&(o=e.props.rowCSSClass),e.props.CustomRow){var r=e._getPassThroughProps(),s=e.props.CustomRow;t.push(d.a.createElement(s,Object.assign({key:a+"-"+i,data:n},r,e.state)))}else{var l=[];e.props.columns&&(e.props.columns.forEach((function(e,t){var a=e.columnCSSClass?e.columnCSSClass:null,i=n[e.data.fieldName];e.data.displayFormat&&(i=e.data.displayFormat(i)),l.push(d.a.createElement("td",{key:t,className:a},i))})),t.push(d.a.createElement("tr",{key:i,className:o},l)))}})),t}return d.a.createElement(Oe.a,{messages:this.props.messages,tableRow:!0})}},{key:"_headerColumnClick",value:function(e,t){var n=this.state.sortColumn,a=this.state.sortDirection;n!==e?(a=f.a.SORT_DESCENDING,this.props.defaultSort&&(a=this.props.defaultSort.direction),n=e):a=a===f.a.SORT_DESCENDING?f.a.SORT_ASCENDING:f.a.SORT_DESCENDING;var i=this.props.columns.filter((function(t){if(t.id===e)return t}));i[0]&&i[0].onClick&&(i[0].onClick(e,t,a),this._setAriaSortMessage(n+" "+a)),this.setState({sortColumn:n,sortDirection:a})}},{key:"_setAriaSortMessage",value:function(e){var t=this.refs.ariaMessage;if(t){for(t.setAttribute("aria-live","assertive"),t.style.display="none";t.firstChild;)t.removeChild(t.firstChild);var n=document.createTextNode(e);t.appendChild(n),t.style.display="inline"}}},{key:"_sortData",value:function(){var e=this,t=this.props.data;if(!0!==this.props.noSort){var n=this.props.columns.filter((function(t,n){return t.id===e.state.sortColumn}))[0],a=n.data.fieldName,i=n.data.type;n.sort&&(a=n.sort.fieldName,i=n.sort.type),!0===n.sortable&&(n.sort&&n.sort.customSort?t=Object.assign([],this.props.data).sort((function(t,a){return e.state.sortDirection===f.a.SORT_DESCENDING?n.sort.customSort(a,t):n.sort.customSort(t,a)})):"string"===i?t=Object.assign([],this.props.data).sort((function(t,n){return e.state.sortDirection===f.a.SORT_DESCENDING?n[a].localeCompare(t[a]):t[a].localeCompare(n[a])})):"number"===i?t=Object.assign([],this.props.data).sort((function(t,n){return e.state.sortDirection===f.a.SORT_DESCENDING?n[a]-t[a]:t[a]-n[a]})):console.warn("WARNING: Ignoring unsupported sort data type: "+i))}return t}},{key:"_getPassThroughProps",value:function(){var e=Object.assign({},this.props);return delete e.data,delete e.columns,delete e.CustomRow,delete e.CustomHeader,delete e.CustomBody,delete e.error,delete e.loading,delete e.messages,e}}]),n}(u.Component);Ie.PropTypes={data:c.a.arrayOf(c.a.object).isRequired,columns:c.a.arrayOf(c.a.shape({id:c.a.string.isRequired,label:c.a.string.isRequired,sortable:c.a.bool,data:c.a.shape({fieldName:c.a.string.isRequired,type:c.a.oneOf("string","number","bool").isRequired,displayFormat:c.a.func}),sort:c.a.shape({fieldName:c.a.string.isRequired,type:c.a.oneOf("string","number","bool").isRequired,customSort:c.a.func}),columnCSSClass:c.a.string,onClick:c.a.func})).isRequired,rowCSSClass:c.a.string,loading:c.a.bool,error:c.a.bool,messages:c.a.shape({loading:c.a.string,noData:c.a.string,error:c.a.string,errorSubText:c.a.string,ariaDataHelpText:c.a.string}),defaultSort:c.a.shape({column:c.a.string.isRequired,direction:c.a.oneOf([f.a.SORT_ASCENDING,f.a.SORT_DESCENDING]).isRequired}
1),CustomRow:c.a.element,CustomHeader:c.a.element,CustomBody:c.a.element};var Le=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._renderBody=i._renderBody.bind(Object(E.a)(i)),i._renderTitle=i._renderTitle.bind(Object(E.a)(i)),i._renderRows=i._renderRows.bind(Object(E.a)(i)),i._getPassThroughProps=i._getPassThroughProps.bind(Object(E.a)(i)),i}return Object(i.a)(n,[{key:"render",value:function(){return d.a.createElement("div",{className:"table-responsive table-xs"},d.a.createElement("table",{className:"table cardlytics_history_table"},this._renderTitle(),this._renderBody()))}},{key:"_renderBody",value:function(){return this.props.error?d.a.createElement(ye,{messages:this.props.messages,tableRow:!0}):this.props.loading?d.a.createElement(Se,{messages:this.props.messages,tableRow:!0}):this._renderRows()}},{key:"_renderTitle",value:function(){return this.props.title?d.a.createElement("tr",null,d.a.createElement("td",{colSpan:v.SPAN_ALL_COLUMNS},this.props.title)):null}},{key:"_renderRows",value:function(){var e=this;if(this.props.data.length>0){var t=[],n=this.props.CustomRow,a=this._getPassThroughProps(),i=null;return this.props.data.forEach((function(o,r){var s=!1;e.props.groupRowsBy&&i!=e.props.groupRowsBy(o)&&(i=e.props.groupRowsBy(o),s=!0),t.push(d.a.createElement(n,Object.assign({key:r,data:o,groupId:s?i:null},a)))})),t}return d.a.createElement(Oe.a,{messages:this.props.messages,tableRow:!0})}},{key:"_getPassThroughProps",value:function(){var e=Object.assign({},this.props);return delete e.data,delete e.groupRowsBy,delete e.CustomRow,delete e.title,delete e.loading,delete e.error,delete e.messages,e}}]),n}(u.Component);Le.PropTypes={data:c.a.arrayOf(c.a.object).isRequired,groupRowsBy:c.a.func,CustomRow:c.a.element.isRequired,title:c.a.string,loading:c.a.bool,error:c.a.bool,messages:c.a.shape({loading:c.a.string,noData:c.a.string,error:c.a.string,errorSubText:c.a.string})};var Ee=n(1420),ke=n.n(Ee),Te=n(888),Ae=n(181),Re=n(90),Ne=n(120),we=(n(1354),function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"getCheckImage",value:function(e,t,n,a,i,o,r,s){return z.a.postFormData(f.a.URL_CHECK_IMAGE,{accountId:n,fiId:a,dateTransaction:i,locationId:o,checkNumber:r,checkImageIdentifier:s},{rftoken:t})}},{key:"getDepositImage",value:function(e,t,n,a,i,o,r){return z.a.postFormData(f.a.URL_DEPOSIT_IMAGE,{accountId:n,fiId:a,dateTransaction:i,locationId:o,depositSlipIdentifier:r},{rftoken:t})}}]),e}()),Pe=n(238),Be=function(){function e(){Object(a.a)(this,e),this.generateActions("getImageSuccess","getImageError","resetState")}return Object(i.a)(e,[{key:"getCheckImage",value:function(e,t,n,a,i,o,r,s,l){var c=this;return function(u){return setTimeout((function(){return u({transactionId:n})}),1),we.getCheckImage(e,t,a,i,o,r,s,l).then((function(e){if(null!=e&&e.status==f.a.HTTP_STATUS_OK&&Pe.a.verifyId(e.data.responseId)){var t=Object.assign({},e.data.checkimageresponse);return t.transactionId=n,c.actions.getImageSuccess(t)}return c.actions.getImageError({transactionId:n})})).catch((function(e){return c.actions.getImageError({transactionId:n})}))}}},{key:"getDepositImage",value:function(e,t,n,a,i,o,r,s){var l=this;return function(c){return setTimeout((function(){return c({transactionId:n})})),we.getDepositImage(e,t,a,i,o,r,s).then((function(e){if(null!=e&&e.status==f.a.HTTP_STATUS_OK&&Pe.a.verifyId(e.data.responseId)){var t=Object.assign({},e.data.checkimageresponse);return t.transactionId=n,l.actions.getImageSuccess(t)}return l.actions.getImageError()})).catch((function(e){return l.actions.getImageError()}))}}}]),e}(),xe=X.a.createActions(Be),je=function(){function e(){Object(a.a)(this,e),this.bindActions(xe),this.state={images:{}}}return Object(i.a)(e,[{key:"onGetCheckImage",value:function(e){this.setStatus(e,f.a.LOADING)}},{key:"onGetDepositImage",value:function(e){this.setStatus(e,f.a.LOADING)}},{key:"onGetImageSuccess",value:function(e){if(e.transactionId){var t=Object.assign({},this.state.images);t[e.transactionId]={status:f.a.SUCCESS,front:e.chkImageFront,back:e.chkImageBack},this.setState({images:t})}}},{key:"onGetImageError",value:function(e){var t,n=Object.assign({},this.state.images);Object.keys(n).toString();(null===(t=n[null===e||void 0===e?void 0:e.transactionId])||void 0===t?void 0:t.status)==f.a.LOADING&&(n[null===e||void 0===e?void 0:e.transactionId]={status:f.a.ERROR}),this.setState({images:n})}},{key:"setStatus",value:function(e,t){if(null!=e&&void 0!==e&&e.transactionId){var n=Object.assign({},this.state.images);n[e.transactionId]={status:t},this.setState({images:n})}}}]),e}(),Me=X.a.createStore(je,"TransactionImageStore"),Fe=n(111),Ve=(n(530),function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"getDepositCheckList",value:function(e,t,n,a,i,o,r,s){return z.a.postFormData(f.a.URL_DEPOSIT_CHECK_LIST,{accountId:n,transactionId:a,fiId:i,dateTransaction:o,locationId:r,depositSlipIdentifier:s},{rftoken:t})}},{key:"getDepositCheckImage",value:function(e,t,n,a,i,o,r,s,l){return z.a.postFormData(f.a.URL_DEPOSIT_CHECK_IMAGE,{accountId:n,fiId:a,depositCheckImageId:i,dateTransaction:o,locationId:r,checkNumber:s,depositSlipIdentifier:l},{rftoken:t})}}]),e}()),Ue=function(){function e(){Object(a.a)(this,e),this.generateActions("getImageSuccess","getImageError","resetState")}return Object(i.a)(e,[{key:"getDepositCheckImage",value:function(e,t,n,a,i,o,r,s,l){var c=this;return function(u){return setTimeout((function(){return u({imageId:i})})),Ve.getDepositCheckImage(e,t,n,a,i,o,r,s,l).then((function(e){if(null!=e&&e.status==f.a.HTTP_STATUS_OK&&Pe.a.verifyId(e.data.responseId)){var t=Object.assign({},e.data.checkimageresponse);return t.imageId=i,c.actions.getImageSuccess(t)}return c.actions.getImageError()})).catch((function(e){return c.actions.getImageError()}))}}}]),e}(),He=X.a.createActions(Ue),Ye=function(){function e(){Object(a.a)(this,e),this.bindActions(He),this.state={images:{}}}return Object(i.a)(e,[{key:"onGetDepositCheckImage",value:function(e){this.setStatus(e,f.a.LOADING)}},{key:"onGetImageSuccess",value:function(e){if(e.imageId){var t=Object.assign({},this.state.images);t[e.imageId]={status:f.a.SUCCESS,front:e.chkImageFront,back:e.chkImageBack},this.setState({images:t})}}},{key:"onGetImageError",value:function(e){var t=Object.assign({},this.state.images),n=Object.keys(t).toString();t[n].status==f.a.LOADING&&(t[n]={status:f.a.ERROR}),this.setState({images:t})}},{key:"setStatus",value:function(e,t){if(null!=e&&void 0!==e&&e.imageId){var n=Object.assign({},this.state.images);n[e.imageId]={status:t},this.setState({images:n})}}}]),e}(),Ge=X.a.createStore(Ye,"DepositCheckImageStore"),qe=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._getImages=i._getImages.bind(Object(E.a)(i)),i._getBase64ImageString=i._getBase64ImageString.bind(Object(E.a)(i)),i._onCloseClick=i._onCloseClick.bind(Object(E.a)(i)),i._closeOnEnter=i._closeOnEnter.bind(Object(E.a)(i)),i._onPrintClick=i._onPrintClick.bind(Object(E.a)(i)),i._renderImages=i._renderImages.bind(Object(E.a)(i)),i._renderPrintButton=i._renderPrintButton.bind(Object(E.a)(i)),i.state={viewImages:!0},i}
1return Object(i.a)(n,[{key:"componentDidMount",value:function(){(this.props.pageConfigs||{}).customerType;var e=this.props.data.imageId.value;this.props.images[e]&&this.props.images[e].status!==v.ERROR||this._getImages(),this.refs.depositCheckImageRow.parentElement.scrollIntoView()}},{key:"render",value:function(){var e=ke.a["image-container"];return d.a.createElement("tr",{id:"deposit-checkimage-"+this.props.data.imageId.value,className:ke.a.checkListRow,ref:"depositCheckImageRow",role:"alert","aria-live":"assertive","aria-atomic":"false","aria-relevant":"all"},d.a.createElement("td",{className:ke.a["transaction-image"],colSpan:"2"},d.a.createElement("div",{className:ke.a["button-container"]},this._renderPrintButton(),d.a.createElement("span",{ref:"closeButton",className:ke.a.close,title:this.props.i18nStrings.transactions_label_close,onClick:this._onCloseClick,tabIndex:"0",onKeyDown:this._closeOnEnter,role:"button"},d.a.createElement(R.a,{name:"Close"}))),d.a.createElement("div",{className:e},this._renderImages())))}},{key:"_getImages",value:function(){var e=this.props.data,t=this.props.account,n=(this.props.location||{}).productUserGuid,a=F()(new Date(e.transactionDate)).startOf("day").format(v.TRANSACTIONS_DATE_FORMAT);He.getDepositCheckImage(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,t.id,t.fiId,e.imageId.value,a,n,e.checkNumber,e.depositSlipIdentifier)}},{key:"_getBase64ImageString",value:function(e){var t=v.DEFAULT_IMAGE_TYPE,n=this.props.pageConfigs.checkImage.format;return n&&(t=n),"data:image/"+t+";base64,"+e}},{key:"_renderImages",value:function(){var e=this.props.data.imageId.value,t=this.props.images[e];if(t){if(t.status===v.LOADING)return d.a.createElement(Se,{className:ke.a["loading-container"],messages:{loading:this.props.i18nStrings.transactions_label_loading}});if(t.status==v.SUCCESS){var n=[];return t.front&&n.push(d.a.createElement("img",{alt:"chequeImage",className:"fade-in",key:"front",src:this._getBase64ImageString(t.front)})),t.back&&"2"===this.props.pageConfigs.checkImage.sides&&n.push(d.a.createElement("div",{key:"back",className:ke.a["back-image"]+" fade-in"},d.a.createElement("img",{alt:"chequeImage",src:this._getBase64ImageString(t.back)}))),n}return d.a.createElement(ye,{className:ke.a["error-container"],messages:{error:this.props.i18nStrings.image_error_message,errorSubText:this.props.i18nStrings.transactions_error_message_action}})}return null}},{key:"_renderPrintButton",value:function(){var e=this.props.data.imageId.value,t=this.props.images[e];if(t&&t.status===v.SUCCESS)return d.a.createElement("span",{className:ke.a.print,title:this.props.i18nStrings.transactions_label_print,onClick:this._onPrintClick,tabIndex:"0",role:"button"},d.a.createElement(R.a,{name:"Print",height:20,width:20}))}},{key:"_onCloseClick",value:function(e){this.props.onCloseClick&&this.props.onCloseClick(e)}},{key:"_closeOnEnter",value:function(e){this.props.onCloseClick&&13==e.keyCode&&this.props.onCloseClick(e)}},{key:"_onPrintClick",value:function(){var e=this.props.data,t=this.props.account,n=e.imageId.value,a=this.props.images[n],i=this.isDepositImage?this.props.pageConfigs.depositImage.width:this.props.pageConfigs.checkImage.width,o=this.isDepositImage?this.props.pageConfigs.depositImage.height:this.props.pageConfigs.checkImage.height,r=t.description+" "+t.displayAccountNumber;e.checkNumber&&(r+=" "+this.props.i18nStrings.transactions_label_check+" #"+e.checkNumber);var s="";a.front&&(s+='<img alt="chequeImage" src="'+this._getBase64ImageString(a.front)+'" width="'+i+'" height="'+o+'"/>'),a.back&&"2"===this.props.pageConfigs.checkImage.sides&&(s+='<img alt="chequeImage" style="margin-top:15px" src="'+this._getBase64ImageString(a.back)+'" width="'+i+'" height="'+o+'"/>'),ue.a.openPrintWindow(ue.a.generatePrintHTML(r,null,s))}}],[{key:"getStores",value:function(){return[Ge]}},{key:"getPropsFromStores",value:function(){return Ge.getState()}}]),n}(u.Component);qe.PropTypes={onCloseClick:c.a.func.isRequired,account:c.a.object.isRequired,location:c.a.object,data:c.a.object.isRequired,pageConfigs:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var We=Object(Fe.a)(qe),Ke=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._renderCheckNumber=i._renderCheckNumber.bind(Object(E.a)(i)),i._renderAmount=i._renderAmount.bind(Object(E.a)(i)),i._depositImageRowClick=i._depositImageRowClick.bind(Object(E.a)(i)),i._closeListRowIfOpen=i._closeListRowIfOpen.bind(Object(E.a)(i)),i.state={showDepositCheckImage:!1},i}
1return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.refs.checkNumber&&this.refs.checkNumber.className===ke.a["deposit-image-row"]&&Ae.a.listen(v.CLOSE_LIST_ROW_EVENT,this._closeListRowIfOpen)}},{key:"componentWillUnmount",value:function(){this.refs.checkNumber&&this.refs.checkNumber.className===ke.a["deposit-image-row"]&&Ae.a.unlisten(v.CLOSE_LIST_ROW_EVENT,this._closeListRowIfOpen)}},{key:"render",value:function(){var e=this.props.data;return d.a.createElement("tbody",null,d.a.createElement("tr",{id:"checkList",className:ke.a.checkListRow,key:"checkList"},this._renderCheckNumber(e,this.props.i18nStrings,ke.a,this.state.showDepositCheckImage,this._depositImageRowClick),this._renderAmount(e,this.props.i18nStrings)),this.state.showDepositCheckImage?d.a.createElement(We,Object.assign({onCloseClick:this._depositImageRowClick},this.props)):null)}},{key:"_renderCheckNumber",value:function(e,t,n,a,i){return d.a.createElement("td",null,d.a.createElement("div",{ref:"checkNumber",className:n["deposit-image-row"],role:"button",onClick:i,onKeyDown:i,tabIndex:"0","aria-expanded":a?"true":"false"},d.a.createElement("div",null,d.a.createElement("span",{id:"checkNumber-"+e.storeId},d.a.createElement("a",{href:"javascript:void(0)"},this.props.i18nStrings.checkUpperCase+"#"+e.checkNumber)))))}},{key:"_renderAmount",value:function(e,t,n){var a=Y.a.convertNumberToUSD(e.amount,!0);return d.a.createElement("td",null,d.a.createElement("div",{ref:"checkAmount",className:ke.a["depositImage-amount"]},d.a.createElement("div",null,d.a.createElement("span",null,a))))}},{key:"_depositImageRowClick",value:function(e){var t=this;(e&&13==e.keyCode||e&&"click"==e.type)&&(!0===!this.state.showDepositCheckImage&&Ae.a.dispatch(v.CLOSE_LIST_ROW_EVENT,this.props.data.imageId),setTimeout((function(){t.refs.checkNumber&&t.refs.checkNumber.focus()}),300),this.setState({showDepositCheckImage:!this.state.showDepositCheckImage}))}},{key:"_closeListRowIfOpen",value:function(e){this.state.showDepositCheckImage&&e!==this.props.data.imageId&&this.setState({showDepositCheckImage:!1})}}]),n}(u.Component);Ke.PropTypes={data:c.a.arrayOf(c.a.object).isRequired,account:c.a.object.isRequired,pageConfigs:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var Ze=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._renderTable=i._renderTable.bind(Object(E.a)(i)),i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.refs.checkListDiv.parentElement.scrollIntoView()}},{key:"render",value:function(){return d.a.createElement("div",{ref:"checkListDiv"},this._renderTable())}},{key:"_renderTable",value:function(){var e=[{id:"checkNumber-column",label:"CheckNumber",data:{fieldName:"checkNumber",type:"string"}},{id:"checkAmount-column",label:"Amount",data:{fieldName:"amount",type:"number"}}],t=this.props.i18nStrings.deposit_images_no_data;if(this.props.status===f.a.SUCCESS){var n,a,i,o=null===(n=this.props.checks)||void 0===n||null===(a=n.data)||void 0===a||null===(i=a.depositchecklistresponse)||void 0===i?void 0:i.associatedTransactionImage;if(null!==o&&void 0!==o&&o.length){var r=this._prepareList(o);return d.a.createElement(Ie,{ref:"depositCheckListTable",data:r,account:this.props.account,location:this.props.location,columns:e,CustomRow:Ke,pageConfigs:this.props.pageConfigs,i18nStrings:this.props.i18nStrings,noHeader:"true",noSort:"true",messages:{noData:t}})}return d.a.createElement("div",{className:_e.a["zero-data-container"]+" print-table-zero-data-container",role:"alert","aria-live":"assertive","aria-atomic":"false"},d.a.createElement("h4",null,d.a.createElement(R.a,{name:"Info",isSmall:!0}),"\xa0",t))}return this.props.status===f.a.LOADING?d.a.createElement(Ie,{columns:e,loading:!0,messages:{loading:this.props.i18nStrings.transactions_label_loading},noHeader:"true"}):d.a.createElement(Ie,{columns:e,error:!0,messages:{error:this.props.i18nStrings.deposit_images_error_message,errorSubText:this.props.i18nStrings.deposit_images_error_message_action},noHeader:"true"})}},{key:"_prepareList",value:function(e){var t=this,n=[];return null==e?[]:(e.forEach((function(e,a){var i=new Object;(null!==e.checkNumberStr&&null!==e.amount&&e.transactionType==f.a.CHECK_TYPE||null!==e.amount&&e.transactionType==f.a.DEPOSIT_TYPE
1)&&(i.checkNumber=null==e.checkNumberStr?"":e.checkNumberStr,i.amount=e.amount.amount,i.imageId=e.id,i.transactionDate=e.transactionDate,i.depositSlipIdentifier=t.props.depositSlipIdentifer,n.push(i))})),n)}}]),n}(u.Component);Ze.PropTypes={checks:c.a.arrayOf(c.a.object).isRequired,pageConfigs:c.a.object.isRequired,account:c.a.object.isRequired,status:c.a.string.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var Qe=function(){function e(){Object(a.a)(this,e),this.generateActions("setLoadingState","getCheckListSuccess","getCheckListError")}return Object(i.a)(e,[{key:"getDepositCheckList",value:function(e,t,n,a,i,o,r,s){var l=this;return this.actions.setLoadingState.defer(),Ve.getDepositCheckList(e,t,n,a,i,o,r,s).then((function(e){return null==e||e.status!=f.a.HTTP_STATUS_OK&&e.status!=f.a.HTTP_STATUS_NO_CONTENT||!Pe.a.verifyId(e.data.responseId)?l.actions.getCheckListError():l.actions.getCheckListSuccess(e)})).catch((function(e){return l.actions.getCheckListError()}))}},{key:"reset",value:function(){return null,!0}}]),e}(),Xe=X.a.createActions(Qe),ze=function(){function e(){Object(a.a)(this,e),this.state={checks:null,status:f.a.LOADING},this.bindActions(Xe)}return Object(i.a)(e,[{key:"onSetLoadingState",value:function(){this.setState({checks:null,status:f.a.LOADING})}},{key:"onGetCheckListSuccess",value:function(e){this.setState({checks:e,status:f.a.SUCCESS})}},{key:"onGetCheckListError",value:function(){this.setState({checks:null,status:f.a.ERROR})}},{key:"onReset",value:function(){this.alt.recycle(this)}}]),e}(),Je=X.a.createStore(ze,"DepositCheckListStore"),$e=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._renderCheckListContent=i._renderCheckListContent.bind(Object(E.a)(i)),i._getChecks=i._getChecks.bind(Object(E.a)(i)),i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this._getChecks()}},{key:"render",value:function(){return d.a.createElement("div",null,this._renderCheckListContent())}},{key:"_renderCheckListContent",value:function(){var e=this.props.status;return d.a.createElement("div",null,d.a.createElement(Ze,{account:this.props.account,pageConfigs:this.props.pageConfigs,checks:this.props.checks,location:this.props.location,depositSlipIdentifer:this.props.data.depositSlipIdentifier,i18nStrings:this.props.i18nStrings,status:e}))}},{key:"_getChecks",value:function(){var e=this.props.data,t=this.props.account,n=(this.props.location||{}).productUserGuid,a=F()(new Date(e.transactionDate)).startOf("day").format(v.TRANSACTIONS_DATE_FORMAT);return Xe.getDepositCheckList(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,t.id,e.storeId,t.fiId,a,n,e.depositSlipIdentifier)}}],[{key:"getStores",value:function(){return[Je,Ge]}},{key:"getPropsFromStores",value:function(){return Object(m.a)(Object(m.a)({},Je.getState()),Ge.getState())}}]),n}(u.Component);$e.PropTypes={checks:c.a.object.isRequired,account:c.a.object.isRequired,pageConfigs:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var et=Object(Fe.a)($e),tt=n(1390),nt=Object.freeze({0:"WITHDRAWAL",1:"CHECK",2:"SAVINGS_WITHDRAWAL_PASSBOOK",3:"SAVINGS_WITHDRAWAL_OTHER",4:"TELEPHONE_TRANSFER_DEBIT",5:"TRANSFER_DEBIT",6:"ADVANCE",10:"AUTOMATIC_DEBIT",11:"ATM_WITHDRAWAL",12:"ELECTRONIC_TRANSFER_DEBIT",13:"POS_PURCHASE",14:"BILL_PAYMENT",15:"ACH_CHECK",21:"SERVICE_CHARGE",22:"CHECK_BOOK_CHARGE",23:"ATM_FEE",24:"POS_PURCHASE_FEE",25:"STOP_PAYMENT_FEE",26:"INTEREST_CHARGE_NORMAL",31:"INSUFFICIENT_FUNDS_CHARGE",32:"RETURNED_CHECK_FEE",33:"OVERDRAFT_FEE",34:"EARLY_WITHDRAWAL_FEE",41:"LEDGER_ADJUSTMENT_DEBIT",42:"MISCELLANEOUS_DEBIT",100:"RETAIL_PURCHASE",101:"MAIL_ORDER_OR_TELEPHONE_PURCHASE",102:"CASH_ADVANCE",140:"ANNUAL_FEE",141:"LATE_PAYMENT_FEE",150:"INTEREST_CHARGE",180:"DEBIT_ADJUSTMENT",501:"DEPOSIT",502:"TELEPHONE_TRANSFER_CREDIT",503:"TRANSFER_CREDIT",504:"PAYMENT",505:"DIVIDEND",510:"DIRECT_DEPOSIT",511:"ATM_DEPOSIT",512:"ELECTRONIC_TRANSFER_CREDIT",513:"POS_CREDIT",514:"BILL_PAYMENT_CREDIT",515:"ACH_CREDIT",521:"INTEREST_POSTING",541:"LEDGER_ADJUSTMENT_CREDIT",542:"MISCELLANEOUS_CREDIT",600:"RETURN_OF_GOODS",601:"REFUND",610:"PAYMENT_CREDIT_CARD",680:"CREDIT_ADJUSTMENT",WITHDRAWAL:"WITHDRAWAL",CHECK:"CHECK",SAVINGS_WITHDRAWAL_PASSBOOK:"SAVINGS_WITHDRAWAL_PASSBOOK",SAVINGS_WITHDRAWAL_OTHER:"SAVINGS_WITHDRAWAL_OTHER",TELEPHONE_TRANSFER_DEBIT:"TELEPHONE_TRANSFER_DEBIT",TRANSFER_DEBIT:"TRANSFER_DEBIT",ADVANCE:"ADVANCE",AUTOMATIC_DEBIT:"AUTOMATIC_DEBIT",ATM_WITHDRAWAL:"ATM_WITHDRAWAL",ELECTRONIC_TRANSFER_DEBIT:"ELECTRONIC_TRANSFER_DEBIT",POS_PURCHASE:"POS_PURCHASE",BILL_PAYMENT:"BILL_PAYMENT",ACH_CHECK:"ACH_CHECK",SERVICE_CHARGE:"SERVICE_CHARGE",CHECK_BOOK_CHARGE:"CHECK_BOOK_CHARGE",ATM_FEE:"ATM_FEE",POS_PURCHASE_FEE:"POS_PURCHASE_FEE",STOP_PAYMENT_FEE:"STOP_PAYMENT_FEE",INTEREST_CHARGE_NORMAL:"INTEREST_CHARGE_NORMAL",INSUFFICIENT_FUNDS_CHARGE:"INSUFFICIENT_FUNDS_CHARGE",RETURNED_CHECK_FEE:"RETURNED_CHECK_FEE",OVER
1DRAFT_FEE:"OVERDRAFT_FEE",EARLY_WITHDRAWAL_FEE:"EARLY_WITHDRAWAL_FEE",LEDGER_ADJUSTMENT_DEBIT:"LEDGER_ADJUSTMENT_DEBIT",MISCELLANEOUS_DEBIT:"MISCELLANEOUS_DEBIT",RETAIL_PURCHASE:"RETAIL_PURCHASE",MAIL_ORDER_OR_TELEPHONE_PURCHASE:"MAIL_ORDER_OR_TELEPHONE_PURCHASE",CASH_ADVANCE:"CASH_ADVANCE",ANNUAL_FEE:"ANNUAL_FEE",LATE_PAYMENT_FEE:"LATE_PAYMENT_FEE",INTEREST_CHARGE:"INTEREST_CHARGE",DEBIT_ADJUSTMENT:"DEBIT_ADJUSTMENT",DEPOSIT:"DEPOSIT",TELEPHONE_TRANSFER_CREDIT:"TELEPHONE_TRANSFER_CREDIT",TRANSFER_CREDIT:"TRANSFER_CREDIT",PAYMENT:"PAYMENT",DIVIDEND:"DIVIDEND",DIRECT_DEPOSIT:"DIRECT_DEPOSIT",ATM_DEPOSIT:"ATM_DEPOSIT",ELECTRONIC_TRANSFER_CREDIT:"ELECTRONIC_TRANSFER_CREDIT",POS_CREDIT:"POS_CREDIT",BILL_PAYMENT_CREDIT:"BILL_PAYMENT_CREDIT",ACH_CREDIT:"ACH_CREDIT",INTEREST_POSTING:"INTEREST_POSTING",LEDGER_ADJUSTMENT_CREDIT:"LEDGER_ADJUSTMENT_CREDIT",MISCELLANEOUS_CREDIT:"MISCELLANEOUS_CREDIT",RETURN_OF_GOODS:"RETURN_OF_GOODS",REFUND:"REFUND",PAYMENT_CREDIT_CARD:"PAYMENT_CREDIT_CARD",CREDIT_ADJUSTMENT:"CREDIT_ADJUSTMENT",UNDEFINED:"UNDEFINED"}),at=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"getTransactionTypeByName",value:function(e){for(var t in nt)if(e===nt[t])return t;return null}},{key:"getNameByTransactionType",value:function(e){return nt[e]}}]),e}(),it=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"getDescription",value:function(e,t,n,a,i){var o={showImageIcon:!1},r=this.isCheckImageTransaction(e,t),s=this.isDepositImageTransaction(e,t,n);if(e.pending||!r&&!s)o.description=e.generatedDescription;else if(s){this.showDepositImage(e,t,n)&&(o.showImageIcon=!0);var l=a.transactions_label_deposit;e.generatedDescription&&(i?l=n.displayTransactionPrefix?l+": "+e.generatedDescription:e.generatedDescription:l+=": "+e.generatedDescription),o.description=l}else{this.showCheckImage(e,n)&&(o.showImageIcon=!0);var c=a.transactions_label_check;null!=e.checkNumber&&(c+=" #"+e.checkNumber),e.generatedDescription&&(i?c=n.displayTransactionPrefix?c+": "+e.generatedDescription:e.generatedDescription:c+=": "+e.generatedDescription),o.description=c}return o}},{key:"getCreditCardPaymentDetails",value:function(e,t){var n=!1,a=!1,i=!1,o=!1,r=!1,s=e.fee,l=e.amountToInterest,c=e.amountToPrincipal,u=e.amount;return s>0&&(n=!0),l>0&&(a=!0),(s>0||l>0)&&u>0&&null!=c&&c!=u&&(c<0?i=!0:c>
10&&(o=!0)),t&&0!=e.unappliedFundsBalance&&(r=!0),{showDetails:n||a||i||o||r,showFee:n,showInterest:a,showApplied:i,showCharges:o,showUnappliedFundsBalance:r}}},{key:"getCreditCardChargeDetails",value:function(e,t){var n=!1,a=!1,i=!1,o=!1,r=!1,s=e.fee,l=e.amountToInterest,c=e.amountToPrincipal,u=e.amount;return s>0&&(n=!0),l>0&&(a=!0),s>0&&l>0&&0==u&&null!=c&&c!=u?(n=!0,a=!0):(s>0||l>0)&&0==u&&null!=c&&c!=u?(a=!1,n=!1):(s>0||l>0)&&u>0&&null!=c&&c!=u&&(c<0?i=!0:c>0&&(o=!0)),t&&0!=e.unappliedFundsBalance&&(r=!0),{showDetails:n||a||i||o||r,showFee:n,showInterest:a,showCredited:i,showTotal:o,showUnappliedFundsBalance:r}}},{key:"getLoanDetails",value:function(e,t){var n=!1,a=!1,i=!1,o=!1,r=!1;return e.amountToPrincipal&&(n=!0),e.amountToInterest&&(a=!0),e.amountToEscrow&&(i=!0),e.fee&&(o=!0),t&&0!=e.unappliedFundsBalance&&(r=!0),{showDetails:n||a||i||o||r,showFee:o,showInterest:a,showEscrow:i,showPrincipal:n,showUnappliedFundsBalance:r}}},{key:"showCheckImage",value:function(e,t){var n=t.checkImage;if(n&&n.enabled&&e.checkImageIdentifier){var a=F()(new Date(e.transactionDate)).startOf("day"),i=F()(new Date(n.daysToExpire)).startOf("day");if(a.isAfter(i))return!0}return!1}},{key:"showDepositImage",value:function(e,t,n){var a=n.depositImage;if(a){var i=P.a.getAccountTypeByName(t.accountType);if(i){var o=a.enabledAccountTypes[i];if(o&&o.enabled&&e.depositSlipIdentifier){var r=F()(new Date(e.transactionDate)).startOf("day"),s=F()(new Date(a.daysToExpire)).startOf("day");if(r.isAfter(s))return!0}}}return!1}},{key:"isCheckImageTransaction",value:function(e,t){return!!e.checkImageIdentifier||!(!e.checkNumber||!t.accountType||t.accountType!=tt.a.CHECKING&&t.accountType!=tt.a.MONEY_MARKET)}},{key:"isDepositImageTransaction",value:function(e,t,n){var a=n.depositImage;if(a){var i=P.a.getAccountTypeByName(t.accountType);if(i){var o=a.enabledAccountTypes[i];if(o){var r=at.getTransactionTypeByName(e.transactionType);if(r&&o.transactionTypes&&o.transactionTypes.indexOf(r)>-1)return!0}}}return!1}},{key:"getFeePrincipalInterestEnabledDetails",value:function(e,t){var n=!1,a=!1,i=!1,o=!1;return e.amountToPrincipal&&(n=!0),e.amountToInterest&&(a=!0),e.fee&&(i=!0),t&&0!=e.unappliedFundsBalance&&(o=!0),{showDetail
1s:n||a||i||o,showFee:i,showInterest:a,showPrincipal:n,showUnappliedFundsBalance:o}}}]),e}(),ot=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"renderDescription",value:function(e,t,n,a,i){var o=n.description;if(e.showImageIcon){var r=n["image-arrow-closed"],s=t.view_image;return a&&(r=n["image-arrow-open"],s=t.close_image,o+=" "+n["description-image"]),d.a.createElement("td",null,d.a.createElement("div",{ref:"transactionDescription",className:n["image-row"],role:"button",onClick:i,onKeyDown:i,tabIndex:"0","aria-expanded":a?"true":"false"},d.a.createElement("div",{className:o},d.a.createElement("span",{id:"description-"+e.storeId},e.displayDescription)),d.a.createElement("div",{id:"imageIcon-"+e.storeId,className:n["image-icon"]+" image-icon",title:s},d.a.createElement(R.a,{name:"CheckImage",size:"md",width:20,height:20}),d.a.createElement(R.a,{className:r,title:s,name:"Forward",width:15,height:15}))))}return d.a.createElement("td",null,d.a.createElement("div",{ref:"transactionDescription",className:o},d.a.createElement("span",{id:"description-"+e.storeId},e.displayDescription)))}},{key:"renderCheckList",value:function(e,t,n,a){var i=t["image-arrow-closed"],o=e.view_list;return n&&(i=t["image-arrow-open"],o=e.close_list),d.a.createElement("div",{ref:"checkListLink",className:t["checkList-container"],role:"button",onClick:a,onKeyDown:a,tabIndex:"0","aria-expanded":"true"},d.a.createElement("a",{href:"javascript:void(0)"},e.check_list_link),d.a.createElement(R.a,{className:i,title:o,name:"Forward",width:15,height:15}))}},{key:"renderAmount",value:function(e,t){var n="";return null!=e.amount?(e.creditTransaction&&(n=t.credit+" amount-credit-column"),d.a.createElement("div",{key:"amount",className:n},d.a.createElement(B.a,{id:"-amount-"+e.storeId,value:e.displayAmount}))):null}},{key:"renderAdditionalAmountDetails",value:function(e,t,n,a,i,o,r){var s={show:!1,details:null};if(null!=e&&null!=t)if(P.a.isCreditCardAccountExceptTCL(t))if(o){var l=it.getFeePrincipalInterestEnabledDetails(e,r);l.showBalance=n,s.show=l.showDetails,s.details=this._renderFeePrincipalInterestDetails(e,l,a,i)}else if(e.creditTransaction){var c=it.getCreditCardPaymentDetails(e,r);
1c.showBalance=n,s.show=c.showDetails,s.details=this._renderPaymentDetails(e,c,a,i)}else{var u=it.getCreditCardChargeDetails(e,r);u.showBalance=n,s.show=u.showDetails,s.details=this._renderChargeDetails(e,u,a,i)}else if(P.a.isLoanAccountOrTCLCreditLine(t)){var d=it.getLoanDetails(e,r);d.showBalance=n,s.show=d.showDetails,s.details=this._renderLoanDetails(e,d,a,i)}return s}},{key:"_renderFeePrincipalInterestDetails",value:function(e,t,n,a){var i=[];return t.showBalance&&i.push(this._createAdditionalDetailsRow("balance-"+e.storeId,n.transactions_label_balance,e.ledgerBalance,a)),t.showPrincipal&&i.push(this._createAdditionalDetailsRow("principal-"+e.storeId,n.transactions_label_principal,e.amountToPrincipal,a)),t.showInterest&&i.push(this._createAdditionalDetailsRow("interest-"+e.storeId,n.transactions_label_interest,e.amountToInterest,a)),t.showFee&&i.push(this._createAdditionalDetailsRow("fee-"+e.storeId,n.transactions_label_fee,e.fee,a)),t.showUnappliedFundsBalance&&i.push(this._createAdditionalDetailsRow("unappliedFundsBalance-"+e.storeId,n.transactions_label_unappliedFunds,e.unappliedFundsBalance,a)),d.a.createElement("div",{key:"section",className:a["additional-details-section"]},i)}},{key:"_renderPaymentDetails",value:function(e,t,n,a){var i=[];if(t.showBalance&&i.push(this._createAdditionalDetailsRow("balance-"+e.storeId,n.transactions_label_balance,e.ledgerBalance,a)),t.showApplied){var o=Math.abs(e.amountToPrincipal);i.push(this._createAdditionalDetailsRow("applied-"+e.storeId,n.transactions_label_applied,o,a))}return t.showInterest&&i.push(this._createAdditionalDetailsRow("interest-"+e.storeId,n.transactions_label_interest,e.amountToInterest,a)),t.showFee&&i.push(this._createAdditionalDetailsRow("fee-"+e.storeId,n.transactions_label_fee,e.fee,a)),t.showCharges&&i.push(this._createAdditionalDetailsRow("charges-"+e.storeId,n.transactions_label_principal,e.amountToPrincipal,a)),t.showUnappliedFundsBalance&&i.push(this._createAdditionalDetailsRow("unappliedFundsBalance-"+e.storeId,n.transactions_label_unappliedFunds,e.unappliedFundsBalance,a)),d.a.createElement("div",{key:"section",className:a["additional-details-section"]},i)}},{key:"_renderChargeDetails",value:function(e,t,n,a){var i=[];if(t.showBalance&&i.push(this._createAdditionalDetailsRow("balance-"+e.storeId,n.transactions_label_balance,e.ledgerBalance,a)),t.showCredited){var o=Math.abs(e.amountToPrincipal);i.push(this._createAdditionalDetailsRow("credited-"+e.storeId,n.transactions_label_credited,o,a))}return t.showInterest&&i.push(this._createAdditionalDetailsRow("interest-"+e.storeId,n.transactions_label_interest,e.amountToInterest,a)),t.showFee&&i.push(this._createAdditionalDetailsRow("fee-"+e.storeId,n.transactions_label_fee,e.fee,a)),t.showTotal&&i.push(this._createAdditionalDetailsRow("total-"+e.storeId,n.transactions_label_total,e.amountToPrincipal,a)),t.showUnappliedFundsBalance&&i.push(this._createAdditionalDetailsRow("unappliedFundsBalance-"+e.storeId,n.transactions_label_unappliedFunds,e.unappliedFundsBalance,a)),d.a.createElement("div",{key:"section",className:a["additional-details-section"]},i)}}
1,{key:"_renderLoanDetails",value:function(e,t,n,a){var i=[];return t.showBalance&&i.push(this._createAdditionalDetailsRow("balance-"+e.storeId,n.transactions_label_balance,e.ledgerBalance,a)),t.showPrincipal&&i.push(this._createAdditionalDetailsRow("principal-"+e.storeId,n.transactions_label_principal,e.amountToPrincipal,a)),t.showInterest&&i.push(this._createAdditionalDetailsRow("interest-"+e.storeId,n.transactions_label_interest,e.amountToInterest,a)),t.showEscrow&&i.push(this._createAdditionalDetailsRow("escrow-"+e.storeId,n.transactions_label_escrow,e.amountToEscrow,a)),t.showFee&&i.push(this._createAdditionalDetailsRow("fee-"+e.storeId,n.transactions_label_fee,e.fee,a)),t.showUnappliedFundsBalance&&i.push(this._createAdditionalDetailsRow("unappliedFundsBalance-"+e.storeId,n.transactions_label_unappliedFunds,e.unappliedFundsBalance,a)),d.a.createElement("div",{key:"section",className:a["additional-details-section"]},i)}},{key:"_createAdditionalDetailsRow",value:function(e,t,n,a){return null!=n?d.a.createElement("div",{key:t,className:a["additional-details-row"]+" additional-details-row"},d.a.createElement("span",{className:a.label+" additional-details-row-label",id:e+"-label"},t),d.a.createElement("span",{className:a.spacer+" additional-details-row-spacer"}),d.a.createElement("span",{className:a.value+" additional-details-row-value"},d.a.createElement(B.a,{id:"-"+e+"-value",value:n}))):null}}]),e}(),rt=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._getImages=i._getImages.bind(Object(E.a)(i)),i._getBase64ImageString=i._getBase64ImageString.bind(Object(E.a)(i)),i._onCloseClick=i._onCloseClick.bind(Object(E.a)(i)),i._closeOnEnter=i._closeOnEnter.bind(Object(E.a)(i)),i._onPrintClick=i._onPrintClick.bind(Object(E.a)(i)),i._isPDF=i._isPDF.bind(Object(E.a)(i)),i._renderImages=i._renderImages.bind(Object(E.a)(i)),i._renderPrintButton=i._renderPrintButton.bind(Object(E.a)(i)),i._checkListClick=i._checkListClick.bind(Object(E.a)(i)),i._isBB=!1,i.isCheckImage=!1,i.isDepositImage=!1,i.props.data.depositSlipIdentifier?i.isDepositImage=!0:i.isCheckImage=!0,i.state={showList:!1,viewImages:!0},i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=(this.props.pageConfigs||{}).customerType;if(this._isBB=e===v.BUSINESS.toLowerCase(),!this._isPDF()){var t=this.props.data.storeId;this.props.images[t]&&this.props.images[t].status!==v.ERROR||this._getImages()}this.refs.imageRow.parentElement.scrollIntoView()}},{key:"render",value:function(){var e=null,t=ke.a["image-container"];return this._isPDF()?(e=d.a.createElement("td",{className:ke.a["transaction-image"]+" hidden-xs"}),t=null,d.a.createElement("tr",{id:"transaction-image-"+this.props.data.storeId,ref:"imageRow",role:"alert","aria-live":"assertive","aria-atomic":"false","aria-relevant":"all"},e,d.a.createElement("td",{className:ke.a["transaction-image"],colSpan:"2"},d.a.createElement("div",{className:ke.a["button-container"]},this._renderPrintButton(),d.a.createElement("span",{ref:"closeButton",className:ke.a.close,title:this.props.i18nStrings.transactions_label_close,onClick:this._onCloseClick,tabIndex:"0",onKeyDown:this._closeOnEnter,role:"button"},d.a.createElement(R.a,{name:"Close"}))),this.state.viewImages?d.a.createElement("div",{className:t},this._renderImages()):null))):d.a.createElement("tr",{id:"transaction-image-"+this.props.data.storeId,ref:"imageRow",role:"alert","aria-live":"assertive","aria-atomic":"false","aria-relevant":"all"},e,d.a.createElement("td",{className:ke.a["transaction-image"]}),d.a.createElement("td",{className:ke.a["transaction-image"],colSpan:"2"},d.a.createElement("div",{className:ke.a["button-container"]},this._renderPrintButton(),d.a.createElement("span",{ref:"closeButton",className:ke.a.close,title:this.props.i18nStrings.transactions_label_close,onClick:this._onCloseClick,tabIndex:"0",onKeyDown:this._closeOnEnter,role:"button"},d.a.createElement(R.a,{name:"Close"}))),this.state.viewImages?d.a.createElement("div",{className:t},this._renderImages()):null,this._isBB&&this.props.pageConfigs.bbMultiImagesDepositEnabled&&this.isDepositImage&&0==this._isPDF()?d.a.createElement("div",null,ot.renderCheckList(this.props.i18nStrings,ke.a,this.state.showList,this._checkListClick),this.state.showList?d.a.createElement("div",{className:ke.a["checkList-container"]},d.a.createElement(et,this.props)):null):null),d.a.createElement("td",{className:ke.a["transaction-image"]}))}},{key:"_getImages",value:function(){var e=this.props.data,t=this.props.account,n=(this.props.location||{}).productUserGuid,a=F()(new Date(e.transactionDate)).startOf("day").format(v.TRANSACTIONS_DATE_FORMAT);this.isDepositImage?xe.getDepositImage(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,e.storeId,t.id,t.fiId,a,n,e.depositSlipIdentifier):xe.getCheckImage(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,e.storeId,t.id,t.fiId,a,n,e.checkNumber,e.checkImageIdentifier)}},{key:"_getBase64ImageString",value:function(e){var t=v.DEFAULT_IMAGE_TYPE;if(this.isDepositImage){var n=this.props.pageConfigs.depositImage.format;n&&(t=n)}else{var a=this.props.pageConfigs.checkImage.format;a&&(t=a)}return"data:image/"+t+";base64,"+e}},{key:"_renderImages",value:function(){if(this._isPDF()){var e=[];return e.push(d.a.createElement("div",{key:"front",className:ke.a["pdf-link"]},d.a.createElement("a",{href:"javascript:void(0)",onClick:this._pdfLinkClick.bind(this,"front")},this.props.i18nStrings.pdf_link_front))),(this.isCheckImage&&"2"===this.props.pageConfigs.checkImage.sides||this.isDepositImage&&"2"===this.props.pageConfigs.depositImage.sides)&&e.push(d.a.createElement("div",{key:"back",className:ke.a["pdf-link"]+" "+ke.a["pdf-back-link"]},d.a.createElement("a",{href:"javascript:void(0)",onClick:this._pdfLinkClick.bind(this,"back")},this.props.i18nStrings.pdf_link_back))),d.a.createElement("div",null,e)}var t=this.props.data.storeId,n=this.props.images[t];if(n){if(n.status===v.LOADING)return d.a.createElement(Se,{className:ke.a["loading-container"],messages:{loading:this.props.i18nStrings.transactions_label_loading}});if(n.status==v.SUCCESS){var a=[];return n.front&&a.push(d.a.createElement("img",{alt:"chequeImage",className:"fade-in",key:"front",src:this._getBase64ImageString(n.front)})),n.back&&(this.isCheckImage&&"2"===this.props.pageConfigs.checkImage.sides||this.isDepositImage&&"2"===this.props.pageConfigs.depositImage.sides)&&a.push(d.a.createElement("div",{key:"back",className:ke.a["back-image"]+" fade-in"},d.a.createElement("img",{alt:"chequeImage",src:this._getBase64ImageString(n.back)}))),a}return d.a.createElement(ye,{className:ke.a["error-container"],messages:{error:this.props.i18nStrings.image_error_message,errorSubText:this.props.i18nStrings.transactions_error_message_action}})}return null}},{key:"_renderPrintButton",value:function(){if(!this._isPDF()&&this.state.viewImages){var e=this.props.data.storeId,t=this.props.images[e];if(t&&t.status===v.SUCCESS)return d.a.createElement("span",{className:ke.a.print,title:this.props.i18nStrings.transactions_label_print,onClick:this._onPrintClick,tabIndex:"0",role:"button"},d.a.createElement(R.a,{name:"Print",height:20,width:20}))}return null}},{key:"_onCloseClick",value:function(e){this.props.onCloseClick&&this.props.onCloseClick(e)}},{key:"_closeOnEnter",value:function(e){this.props.onCloseClick&&13==e.keyCode&&this.props.onCloseClick(e)}},{key:"_onPrintClick",value:function(){var e=this.props.data,t=this.props.account,n=this.props.data.storeId,a=this.props.images[n],i=this.isDepositImage?this.props.pageConfigs.depositImage.width:this.props.pageConfigs.checkImage.width,o=this.isDepositImage?this.props.pageConfigs.depositImage.height:this.props.pageConfigs.checkImage.height,r=t.de
1scription+" "+t.displayAccountNumber;this.isCheckImage&&e.checkNumber&&(r+=" "+this.props.i18nStrings.transactions_label_check+" #"+e.checkNumber);var s="";a.front&&(s+='<img alt="chequeImage" src="'+this._getBase64ImageString(a.front)+'" width="'+i+'" height="'+o+'"/>'),a.back&&(this.isCheckImage&&"2"===this.props.pageConfigs.checkImage.sides||this.isDepositImage&&"2"===this.props.pageConfigs.depositImage.sides)&&(s+='<img alt="chequeImage" style="margin-top:15px" src="'+this._getBase64ImageString(a.back)+'" width="'+i+'" height="'+o+'"/>'),ue.a.openPrintWindow(ue.a.generatePrintHTML(r,null,s))}},{key:"_isPDF",value:function(){var e=!1;return(this.isCheckImage&&this.props.pageConfigs.checkImage&&this.props.pageConfigs.checkImage.format&&"pdf"===this.props.pageConfigs.checkImage.format.toLowerCase()||this.isDepositImage&&this.props.pageConfigs.depositImage&&this.props.pageConfigs.depositImage.format&&"pdf"===this.props.pageConfigs.depositImage.format.toLowerCase())&&(e=!0),e}},{key:"_checkListClick",value:function(e){var t=this;(e&&13==e.keyCode||e&&"click"==e.type)&&(!0===!this.state.showList&&Ae.a.dispatch(v.CLOSE_LIST_ROW_EVENT,this.props.data.storeId),setTimeout((function(){t.refs.checkListLink&&t.refs.checkListLink.focus()}),300),this.setState({showList:!this.state.showList}),this.setState({viewImages:!this.state.viewImages}))}},{key:"_pdfLinkClick",value:function(e,t){var n=v.URL_DEPOSIT_IMAGE_SIDE,a=v.URL_CHECK_IMAGE_SIDE,i=this.isDepositImage?n:a;i=Object(Re.b)(i);var o=this.props.data,r=this.props.account,s=F()(new Date(o.transactionDate)).startOf("day").format(v.TRANSACTIONS_DATE_FORMAT),l=Math.floor(1e3*Math.random());if(Ne.a.isAndroid()){i+="?accountId="+r.id+"&checkNumber="+o.checkNumber+"&checkImageIdentifier="+o.checkImageIdentifier+"&depositSlipIdentifier="+o.depositSlipIdentifier+"&checkSide="+e+"&dateTransaction="+s+"&fiId="+r.fiId+"&locationId="+r.customerId+"&rftoken="+this.props.pageConfigs.rftoken;window.open(i,l,"menubar=no,status=no,toolbar=no,location=no,titlebar=no")}else{window.open("",l,"menubar=no,status=no,toolbar=no,location=no,titlebar=no").document.write('
1<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"/><meta http-equiv="cache-control" content="no-cache no-store must-revalidate"/><meta http-equiv="pragma" content="no-cache"/><meta http-equiv="expires" content="Mon, 22 Jul 2002 11:12:01 GMT"/></head><body><form action="'+i+'" method="post"><input type="hidden" name="accountId" value="'+r.id+'"><input type="hidden" name="checkNumber" value="'+o.checkNumber+'"><input type="hidden" name="checkImageIdentifier" value="'+o.checkImageIdentifier+'"><input type="hidden" name="depositSlipIdentifier" value="'+o.depositSlipIdentifier+'"><input type="hidden" name="checkSide" value="'+e+'"><input type="hidden" name="checkType" value="pdf"><input type="hidden" name="locationId" value="'+r.customerId+'"><input type="hidden" name="dateTransaction" value="'+s+'"><input type="hidden" name="fiId" value="'+r.fiId+'"><input type="hidden" name="rftoken" value="'+this.props.pageConfigs.rftoken+'"></form><script type="text/javascript">document.forms[0].submit();<\/script></body></html>')}t.preventDefault(),t.stopPropagation()}}],[{key:"getStores",value:function(){return[Me]}},{key:"getPropsFromStores",value:function(){return Me.getState()}}]),n}(u.Component);rt.PropTypes={onCloseClick:c.a.func.isRequired,account:c.a.object.isRequired,location:c.a.object,data:c.a.object.isRequired,pageConfigs:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var st=C()(rt),lt=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._renderDate=i._renderDate.bind(Object(E.a)(i)),i._renderAmount=i._renderAmount.bind(Object(E.a)(i)),i._renderBalance=i._renderBalance.bind(Object(E.a)(i)),i._imageRowClick=i._imageRowClick.bind(Object(E.a)(i)),i._closeImageRowIfOpen=i._closeImageRowIfOpen.bind(Object(E.a)(i)),i.state={showImage:!1},i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.refs.transactionDescription&&this.refs.transactionDescription.className===ke.a["image-row"]&&Ae.a.listen(v.CLOSE_IMAGE_ROW_EVENT,this._closeImageRowIfOpen)}},{key:"componentWillUnmount",value:function(){this.refs.transactionDescription&&this.refs.transactionDescription.className===ke.a["image-row"]&&Ae.a.unlisten(v.CLOSE_IMAGE_ROW_EVENT,this._closeImageRowIfOpen)}},{key:"render",value:function(){var e=this.props.data,t=this.props.account,n=e.pending?ke.a.pending+" pending":null,a=this.props.pageConfigs.rewardsEnabled&&t.accountId;return d.a.createElement("tbody",null,d.a.createElement("tr",{id:"transaction-"+e.storeId,className:n,key:"transaction-"+e.storeId},this._renderDate(e),ot.renderDescription(e,this.props.i18nStrings,ke.a,this.state.showImage,this._imageRowClick),this._renderAmount(e,t,this.props.i18nStrings),this._renderBalance(e,this.props.pageConfigs,this.props.sortColumn,this.props.filterText)),a&&e.transactionId&&null!=e.transactionId?d.a.createElement("tr",{key:"transaction-rewards-"+e.storeId,className:"cardlytics-transaction-details"},d.a.createElement("td",{className:ke.a["inline-offer-row"]+" cardlytics_transaction_id"},e.transactionId),d.a.createElement(Te.a,{elementType:"td",colSpan:v.SPAN_ALL_COLUMNS,id:"rewards-"+e.transactionId,className:ke.a["custom-content-row"]+" trxDescCell"})):null,this.state.showImage?d.a.createElement(st,Object.assign({onCloseClick:this._imageRowClick},this.props)):null)}},{key:"_renderDate",value:function(e){var t=null;return t=e.pending?this.props.i18nStrings.transactions_label_pending:e.transactionDate,d.a.createElement("td",{id:"date-"+e.storeId},t)}},{key:"_renderAmount",value:function(e,t,n){var a=[];a.push(ot.renderAmount(e,ke.a));var i=this.props.pageConfigs.feePrincipalInterestEnabled,o=this.props.pageConfigs.accountDisplayUnappliedFundsBalance,r=ot.renderAdditionalAmountDetails(e,t,!1,n,ke.a,i,o);return r.show&&(a=a.concat(r.details)),d.a.createElement("td",{className:ke.a["amount-column"]+" amount-column"},a)}},{key:"_renderBalance",value:function(e,t,n,a){if(t.suppressBalance)return null;var i="";return n===v.COLUMN_ID_DATE&&""===a&&null!=e.ledgerBalance&&(i=d.a.createElement(B.a,{id:"-balance-"+e.storeId,value:e.ledgerBalance})),d.a.createElement("td",{className:ke.a["balance-column"]+" balance-column"},i)}},{key:"_imageRowClick",value:function(e){var t=this;(e&&13==e.keyCode||e&&"click"==e.type)&&(!0===!this.state.showImage&&Ae.a.dispatch(v.CLOSE_IMAGE_ROW_EVENT,this.props.data.storeId),setTimeout((function(){t.refs.transactionDescription&&t.refs.transactionDescription.focus()}),300),this.setState({showImage:!this.state.showImage}))}},{key:"_closeImageRowIfOpen",value:function(e){this.state.showImage&&e!==this.props.data.storeId&&this.setState({showImage:!1})}}]),n}(u.Component);lt.PropTypes={data:c.a.arrayOf(c.a.object).isRequired,account:c.a.object.isRequired,pageConfigs:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var ct=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._getImages=i._getImages.bind(Object(E.a)(i)),i._getBase64ImageString=i._getBase64ImageString.bind(Object(E.a)(i)),i._onCloseClick=i._onCloseClick.bind(Object(E.a)(i)),i._closeOnEnter=i._closeOnEnter.bind(Object(E.a)(i)),i._onPrintClick=i._onPrintClick.bind(Object(E.a)(i)),i._isPDF=i._isPDF.bind(Object(E.a)(i)),i._renderImages=i._renderImages.bind(Object(E.a)(i)),i._renderPrintButton=i._renderPrintButton.bind(Object(E.a)(i)),i._checkListClick=i._checkListClick.bind(Object(E.a)(i)),i._isBB=!1,i.isCheckImage=!1,i.isDepositImage=!1,i.props.data.depositSlipIdentifier?i.isDepositImage=!0:i.isCheckImage=!0,i.state={showList:!1,viewImages:!0},i}
1return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=(this.props.pageConfigs||{}).customerType;if(this._isBB=e===v.BUSINESS.toLowerCase(),!this._isPDF()){var t=this.props.data.storeId;this.props.images[t]&&this.props.images[t].status!==v.ERROR||this._getImages()}this.refs.imageRow.parentElement.scrollIntoView()}},{key:"render",value:function(){var e=null,t=ke.a["image-container"];return this._isPDF()&&(e=d.a.createElement("td",{className:ke.a["transaction-image"]+" hidden-xs"}),t=null),d.a.createElement("tr",{id:"transaction-image-"+this.props.data.storeId,ref:"imageRow",role:"alert","aria-live":"assertive","aria-atomic":"false","aria-relevant":"all"},e,d.a.createElement("td",{className:ke.a["transaction-image"],colSpan:"2"},d.a.createElement("div",{className:ke.a["button-container"]},this._renderPrintButton(),d.a.createElement("span",{ref:"closeButton",className:ke.a.close,title:this.props.i18nStrings.transactions_label_close,onClick:this._onCloseClick,tabIndex:"0",onKeyDown:this._closeOnEnter,role:"button"},d.a.createElement(R.a,{name:"Close"}))),this.state.viewImages?d.a.createElement("div",{className:t},this._renderImages()):null,this._isBB&&this.props.pageConfigs.bbMultiImagesDepositEnabled&&this.isDepositImage?d.a.createElement("div",null,ot.renderCheckList(this.props.i18nStrings,ke.a,this.state.showList,this._checkListClick),this.state.showList?d.a.createElement("div",{className:ke.a["checkList-container"]},d.a.createElement(et,this.props)):null):null))}},{key:"_getImages",value:function(){var e=this.props.data,t=this.props.account,n=(this.props.location||{}).productUserGuid,a=F()(new Date(e.transactionDate)).startOf("day").format(v.TRANSACTIONS_DATE_FORMAT);this.isDepositImage?xe.getDepositImage(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,e.storeId,t.id,t.fiId,a,n,e.depositSlipIdentifier):xe.getCheckImage(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,e.storeId,t.id,t.fiId,a,n,e.checkNumber,e.checkImageIdentifier)}},{key:"_getBase64ImageString",value:function(e){var t=v.DEFAULT_IMAGE_TYPE;if(this.isDepositImage){var n=this.props.pageConfigs.depositImage.format;n&&(t=n)}else{var a=this.props.pageConfigs.checkImage.format;a&&(t=a)}return"data:image/"+t+";base64,"+e}},{key:"_renderImages",value:function(){if(this._isPDF()){var e=[];return e.push(d.a.createElement("div",{key:"front",className:ke.a["pdf-link"]},d.a.createElement("a",{href:"javascript:void(0)",onClick:this._pdfLinkClick.bind(this,"front")},this.props.i18nStrings.pdf_link_front))),(this.isCheckImage&&"2"===this.props.pageConfigs.checkImage.sides||this.isDepositImage&&"2"===this.props.pageConfigs.depositImage.sides)&&e.push(d.a.createElement("div",{key:"back",className:ke.a["pdf-link"]+" "+ke.a["pdf-back-link"]},d.a.createElement("a",{href:"javascript:void(0)",onClick:this._pdfLinkClick.bind(this,"back")},this.props.i18nStrings.pdf_link_back))),d.a.createElement("div",null,e)}var t=this.props.data.storeId,n=this.props.images[t];if(n){if(n.status===v.LOADING)return d.a.createElement(Se,{className:ke.a["loading-container"],messages:{loading:this.props.i18nStrings.transactions_label_loading}});if(n.status==v.SUCCESS){var a=[];return n.front&&a.push(d.a.createElement("img",{alt:"chequeImage",className:"fade-in",key:"front",src:this._getBase64ImageString(n.front)})),n.back&&(this.isCheckImage&&"2"===this.props.pageConfigs.checkImage.sides||this.isDepositImage&&"2"===this.props.pageConfigs.depositImage.sides)&&a.push(d.a.createElement("div",{key:"back",className:ke.a["back-image"]+" fade-in"},d.a.createElement("img",{alt:"chequeImage",src:this._getBase64ImageString(n.back)}))),a}return d.a.createElement(ye,{className:ke.a["error-container"],messages:{error:this.props.i18nStrings.image_error_message,errorSubText:this.props.i18nStrings.transactions_error_message_action}})}return null}},{key:"_renderPrintButton",value:function(){if(!this._isPDF()&&this.state.viewImages){var e=this.props.data.storeId,t=this.props.images[e];if(t&&t.status===v.SUCCESS)return d.a.createElement("span",{className:ke.a.print,title:this.props.i18nStrings.transactions_label_print,onClick:this._onPrintClick,tabIndex:"0",role:"button"},d.a.createElement(R.a,{name:"Print",height:20,width:20}))}return null}},{key:"_onCloseClick",value:function(e){this.props.onCloseClick&&this.props.onCloseClick(e)}},{key:"_closeOnEnter",value:function(e){this.props.onCloseClick&&13==e.keyCode&&this.props.onCloseClick(e)}},{key:"_onPrintClick",value:function(){var e=this.props.data,t=this.props.account,n=this.props.data.storeId,a=this.props.images[n],i=this.isDepositImage?this.props.pageConfigs.depositImage.width:this.props.pageConfigs.checkImage.width,o=this.isDepositImage?this.props.pageConfigs.depositImage.height:this.props.pageConfigs.checkImage.height,r=t.de
1scription+" "+t.displayAccountNumber;this.isCheckImage&&e.checkNumber&&(r+=" "+this.props.i18nStrings.transactions_label_check+" #"+e.checkNumber);var s="";a.front&&(s+='<img alt="chequeImage" src="'+this._getBase64ImageString(a.front)+'" width="'+i+'" height="'+o+'"/>'),a.back&&(this.isCheckImage&&"2"===this.props.pageConfigs.checkImage.sides||this.isDepositImage&&"2"===this.props.pageConfigs.depositImage.sides)&&(s+='<img alt="chequeImage" style="margin-top:15px" src="'+this._getBase64ImageString(a.back)+'" width="'+i+'" height="'+o+'"/>'),ue.a.openPrintWindow(ue.a.generatePrintHTML(r,null,s))}},{key:"_isPDF",value:function(){var e=!1;return(this.isCheckImage&&this.props.pageConfigs.checkImage&&this.props.pageConfigs.checkImage.format&&"pdf"===this.props.pageConfigs.checkImage.format.toLowerCase()||this.isDepositImage&&this.props.pageConfigs.depositImage&&this.props.pageConfigs.depositImage.format&&"pdf"===this.props.pageConfigs.depositImage.format.toLowerCase())&&(e=!0),e}},{key:"_checkListClick",value:function(e){var t=this;(e&&13==e.keyCode||e&&"click"==e.type)&&(!0===!this.state.showList&&Ae.a.dispatch(v.CLOSE_LIST_ROW_EVENT,this.props.data.storeId),setTimeout((function(){t.refs.checkListLink&&t.refs.checkListLink.focus()}),300),this.setState({showList:!this.state.showList}),this.setState({viewImages:!this.state.viewImages}))}},{key:"_pdfLinkClick",value:function(e,t){var n=this.props.pageConfigs.contextPath+v.URL_DEPOSIT_IMAGE_SIDE,a=this.props.pageConfigs.contextPath+v.URL_CHECK_IMAGE_SIDE,i=this.isDepositImage?n:a;i=Object(Re.b)(i);var o=this.props.data,r=this.props.account,s=F()(new Date(o.transactionDate)).startOf("day").format(v.TRANSACTIONS_DATE_FORMAT),l=Math.floor(1e3*Math.random());if(Ne.a.isAndroid()){i+="?accountId="+r.id+"&checkNumber="+o.checkNumber+"&checkImageIdentifier="+o.checkImageIdentifier+"&depositSlipIdentifier="+o.depositSlipIdentifier+"&checkSide="+e+"&dateTransaction="+s+"&locationId="+r.customerId+"&fiId="+r.fiId+"&rftoken="+this.props.pageConfigs.rftoken;window.open(i,l,"menubar=no,status=no,toolbar=no,location=no,titlebar=no")}else{window.open("",l,"menubar=no,status=no,toolbar=no,location=no,titlebar=no").document.write('
1<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"/><meta http-equiv="cache-control" content="no-cache no-store must-revalidate"/><meta http-equiv="pragma" content="no-cache"/><meta http-equiv="expires" content="Mon, 22 Jul 2002 11:12:01 GMT"/></head><body><form action="'+i+'" method="post"><input type="hidden" name="accountId" value="'+r.id+'"><input type="hidden" name="checkNumber" value="'+o.checkNumber+'"><input type="hidden" name="checkImageIdentifier" value="'+o.checkImageIdentifier+'"><input type="hidden" name="depositSlipIdentifier" value="'+o.depositSlipIdentifier+'"><input type="hidden" name="checkSide" value="'+e+'"><input type="hidden" name="checkType" value="pdf"><input type="hidden" name="locationId" value="'+r.customerId+'"><input type="hidden" name="dateTransaction" value="'+s+'"><input type="hidden" name="fiId" value="'+r.fiId+'"><input type="hidden" name="rftoken" value="'+this.props.pageConfigs.rftoken+'"></form><script type="text/javascript">document.forms[0].submit();<\/script></body></html>')}t.preventDefault(),t.stopPropagation()}}],[{key:"getStores",value:function(){return[Me]}},{key:"getPropsFromStores",value:function(){return Me.getState()}}]),n}(u.Component);ct.PropTypes={onCloseClick:c.a.func.isRequired,account:c.a.object.isRequired,location:c.a.object,data:c.a.object.isRequired,pageConfigs:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var ut=Object(Fe.a)(ct),dt=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._renderAmount=i._renderAmount.bind(Object(E.a)(i)),i._imageRowClick=i._imageRowClick.bind(Object(E.a)(i)),i._closeImageRowIfOpen=i._closeImageRowIfOpen.bind(Object(E.a)(i)),i.state={showImage:!1},i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.refs.transactionDescription&&this.refs.transactionDescription.className===ke.a["image-row"]&&Ae.a.listen(v.CLOSE_IMAGE_ROW_EVENT,this._closeImageRowIfOpen)}},{key:"componentWillUnmount",value:function(){this.refs.transactionDescription&&this.refs.transactionDescription.className===ke.a["image-row"]&&Ae.a.unlisten(v.CLOSE_IMAGE_ROW_EVENT,this._closeImageRowIfOpen)}},{key:"render",value:function(){var e=this.props.data,t=this.props.account,n=e.pending?ke.a.pending:null,a=null;this.props.groupId&&(a=d.a.createElement("tr",{className:"brand-type-a-bg-10p"},d.a.createElement("td",{id:"date-"+e.storeId,colSpan:v.SPAN_ALL_COLUMNS},this.props.groupId)));var i=this.props.pageConfigs.suppressBalance,o=ot.renderAdditionalAmountDetails(e,t,!i,this.props.i18nStrings,ke.a),r=this.props.pageConfigs.rewardsEnabled&&t.accountId;return d.a.createElement("tbody",null,a,d.a.createElement("tr",{id:"transaction-"+e.storeId,className:n},ot.renderDescription(e,this.props.i18nStrings,ke.a,this.state.showImage,this._imageRowClick),d.a.createElement("td",{className:ke.a["amount-column"]},this._renderAmount(e,o.show,i))),o.show?d.a.createElement("tr",{className:n},d.a.createElement("td",{className:ke.a["additional-details-container"],colSpan:v.SPAN_ALL_COLUMNS},o.details)):null,r?d.a.createElement("tr",{key:"transaction-rewards-"+e.storeId},d.a.createElement("td",{className:"cardlytics_transaction_id",hidden:"true"},e.transactionId),d.a.createElement(Te.a,{elementType:"td",colSpan:v.SPAN_ALL_COLUMNS,id:"rewards-"+e.transactionId,className:ke.a["custom-content-row"]+" trxDescCell"})):null,this.state.showImage?d.a.createElement(ut,Object.assign({onCloseClick:this._imageRowClick},this.props)):null)}},{key:"_renderAmount",value:function(e,t,n){var a=[];return a.push(ot.renderAmount(e,ke.a)),t||n||null!=e.ledgerBalance&&a.push(d.a.createElement("div",{key:"balance",className:ke.a.balance},d.a.createElement(B.a,{id:"-balance-"+e.storeId,value:e.ledgerBalance}))),a}},{key:"_imageRowClick",value:function(){!0===!this.state.showImage&&Ae.a.dispatch(v.CLOSE_IMAGE_ROW_EVENT,this.props.data.storeId),this.setState({showImage:!this.state.showImage})}},{key:"_closeImageRowIfOpen",value:function(e){this.state.showImage&&e!==this.props.data.storeId&&this.setState({showImage:!1})}}]),n}(u.Component);dt.PropTypes={data:c.a.arrayOf(c.a.object).isRequired,groupId:c.a.any,account:c.a.object.isRequired,pageConfigs:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var pt=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._groupXSLayoutRows=i._groupXSLayoutRows.bind(Object(E.a)(i)),i._customSortDescription=i._customSortDescription.bind(Object(E.a)(i)),i._customHeaderClick=i._customHeaderClick.bind(Object(E.a)(i)),i._renderXSTable=i._renderXSTable.bind(Object(E.a)(i)),i._renderTable=i._renderTable.bind(Object(E.a)(i)),i.state={selectedColumn:f.a.COLUMN_ID_DATE},i}return Object(i.a)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.pageConfigs.breakpoint!==e.pageConfigs.breakpoint&&e.pageConfigs.breakpoint===f.a.LAYOUT_XS&&this.setState({selectedColumn:f.a.COLUMN_ID_DATE})}},{key:"render",value:function(){return this.props.pageConfigs.breakpoint===f.a.LAYOUT_XS?this._renderXSTable():this._renderTable()}},{key:"_renderTable",value:function(){var e=[{id:f.a.COLUMN_ID_DATE,label:this.props.i18nStrings.transactions_label_date,sortable:!!this.props.pageConfigs.sort_transactions,data:{fieldName:"transactionDate",type:"string"},sort:{fieldName:"intradayOrderId",type:"string"},columnCSSClass:"date-header-column",onClick:this._customHeaderClick},{id:f.a.COLUMN_ID_DESCRIPTION,label:this.props.i18nStrings.transactions_label_description,sortable:this.props.status===f.a.SUCCESS,data:{fieldName:"displayDescription",type:"string"},sort:{fieldName:"displayDescription",type:"string",customSort:this._customSortDescription},columnCSSClass:"description-header-column",onClick:this._customHeaderClick},{id:f.a.COLUMN_ID_AMOUNT,label:this.props.i18nStrings.transactions_label_amount,sortable:this.props.status===f.a.SUCCESS,data:{fieldName:"displayAmount",type:"number"},columnCSSClass:ke.a["amount-column"]+" amount-header-column",onClick:this._customHeaderClick}];if(!this.props.pageConfigs.suppressBalance){var t="";this.state.selectedColumn===f.a.COLUMN_ID_DATE&&""===this.props.filterText||(t=ke.a["balance-disabled"]+" disabled"),e.push({id:f.a.COLUMN_ID_BALANCE,label:this.props.i18nStrings.transactions_label_balance,data:{fieldName:"ledgerBalance",type:"number"},columnCSSClass:ke.a["balance-column"]+" balance-header-column "+t})}if(this.props.status===f.a.SUCCESS){var n=this.props.i18nStrings.transactions_no_data;return""!==this.props.filterText&&(n=this.props.i18nStrings.transactions_no_data_filtered+'"'+this.props.filterText+'"'),d.a.createElement(Ie,{ref:"transactionTable",data:this.props.transactions,columns:e,CustomRow:lt,account:this.props.account,location:this.props.location,pageConfigs:this.props.pageConfigs,i18nStrings:this.props.i18nStrings,filterText:this.props.filterText,messages:{noData:n,ariaDataHelpText:this.props.i18nStrings.transaction_table_helptext},defaultSort:this.props.defaultSort})}return this.props.status===f.a.LOADING?d.a.createElement(Ie,{columns:e,loading:!0,messages:{loading:this.props.i18nStrings.transactions_label_loading}}):d.a.createElement(Ie,{columns:e,error:!0,messages:{error:this.props.i18nStrings.transactions_error_message,errorSubText:this.props.i18nStrings.transactions_error_message_action}})}},{key:"_renderXSTable",value:function(){if(this.props.status===f.a.SUCCESS){var e=this.props.transactions.sort((function(e,t){return t.intradayOrderId.localeCompare(e.intradayOrderId)}));return d.a.createElement(Le,{data:e,CustomRow:dt,groupRowsBy:this._groupXSLayoutRows,pageConfigs:this.props.pageConfigs,account:this.props.account,location:this.props.location,i18nStrings:this.props.i18nStrings,messages:{noData:this.props.i18nStrings.transactions_no_data}})}return this.props.status===f.a.LOADING?d.a.createElement(Le,{loading:!0,messages:{loading:this.props.i18nStrings.transactions_label_loading}}):d.a.createElement(Le,{error:!0,messages:{error:this.props.i18nStrings.transactions_error_message,errorSubText:this.props.i18nStrings.transactions_error_message_action}})}},{key:"_customSortDescription",value:function(e,t){var n=this.props.i18nStrings.transactions_label_check;return e.displayDescription.indexOf(n)>-1&&e.checkNumber&&t.displayDescription.indexOf(n)>-1&&t.checkNumber?e.checkNumber-t.checkNumber:e.displayDescription.localeCompare(t.displayDescription)}},{key:"_groupXSLayoutRows",value:function(e){if(e.pending)return this.props.i18nStrings.transactions_label_pending;var t=e.transactionDate;return F()(t,"MM/DD/yyyy").format("MMM D")}},{key:"_customHeaderClick",value:function(e,t,n){this.props.status===f.a.SUCCESS&&(this.setState({selectedColumn:e}),Ae.a.dispatch("transaction-table-sort")),this.props.onSort&&this.props.onSort(e,n)}}]),n}(u.Component);pt.PropTypes={pageConfigs:c.a.object.isRequired,transactions:c.a.arrayOf(c.a.object).isRequired,account:c.a.object.isRequired,status:c.a.string.isRequired,defaultSort:c.a.shape({column:c.a.string.isRequired,direction:c.a.oneOf([f.a.SORT_ASCENDING,f.a.SORT_DESCENDING]).isRequired}),i18nStrings:c.a.objectOf(c.a.string).isRequired};var mt=n(468),ht=n(1602),gt=n.n(ht),vt=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._onDateRangeChange=i._onDateRangeChange.bind(Object(E.a)(i)),i._handleBackClick=i._handleBackClick.bind(Object(E.a)(i)),i._handleForwardClick=i._handleForwardClick.bind(Object(E.a)(i)),i._handleFromToDateChange=i._handleFromToDateChange.bind(Object(E.a)(i)),i._onSelectFromDate=i._onSelectFromDate.bind(Object(E.a)(i)),i._onSelectToDate=i._onSelectToDate.bind(Object(E.a)(i)),i._keyPressOnGo=i._keyPressOnGo.bind(Object(E.a)(i)),i.state={customStartDate:null,customEndDate:null},i}
1return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this;setTimeout((function(){var t={startDate:ae.getStartDate(e.props.pageConfigs.defaultDateRange),endDate:F()().endOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT),dateRange:e.props.pageConfigs.defaultDateRange},n=e.props.location||{},a=n.locationName,i=void 0===a?"":a,o=n.productUserGuid,r=void 0===o?"":o;ee.setDefaultDateRange(e.props.pageConfigs.defaultDateRange),ee.handleDateRangeChange(t),Q.a.getTransactions(e.props.pageConfigs.contextPath,e.props.pageConfigs.rftoken,e.props.account.id,t.startDate,t.endDate,r,i,e.props.pageConfigs.pageId),e.state={customStartDate:t.startDate,customEndDate:t.endDate}}),1)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.startDate!==e.startDate&&this.setState({customStartDate:e.startDate}),this.props.endDate!==e.endDate&&this.setState({customEndDate:e.endDate}),this.props.pageConfigs.breakpoint!==e.pageConfigs.breakpoint&&e.pageConfigs.breakpoint===f.a.LAYOUT_XS&&Q.a.setFilter("")}},{key:"render",value:function(){var e=this;if(null===this.props.dateRange||this.props.pageConfigs.breakpoint===f.a.LAYOUT_XS)return null;var t={isDisabled:!1,onSelect:this._onDateRangeChange,noRole:!0},n=F()(),a=F()(this.props.endDate)>n||this.props.dateRange===f.a.CUSTOM,i={onClick:this._handleForwardClick},o=gt.a["svg-link"];a&&(i=null,o+=" ".concat(gt.a.disabled));var r=this.props.dateRange===f.a.CUSTOM,s={onClick:this._handleBackClick},l=gt.a["svg-link"];r&&(s=null,l+=" ".concat(gt.a.disabled));var c=this._renderDropdownItems();return d.a.createElement("div",{className:"".concat(gt.a["date-range-dropdown"]," ").concat(this.props.className)},d.a.createElement("a",Object.assign({id:"top-olderPagination",className:l,href:"javascript:void(0);"},s,{"aria-label":this.props.i18nStrings.pagination_aria_label_older,tabIndex:r?"-1":"0"}),d.a.createElement(R.a,{name:"Back","aria-hidden":"true"})),d.a.createElement(K.a,Object.assign({ariaRole:"application",id:"date_range"},t,{selectedItem:this._renderSelectedItem(),titleText:" ",selectedIndex:c[1],preventCloseOnTabOut:!0,ref:function(t){return e.dateRangeDropdown=t}}),c[0]),d.a.createElement("a",Object.assign({id:"top-newerPagination",className:o,href:"javascript:void(0);"},i,{"aria-label":this.props.i18nStrings.pagination_aria_label_newer,tabIndex:a?"-1":"0"}),d.a.createElement(R.a,{name:"Forward","aria-hidden":"true"})))}},{key:"_renderDropdownItems",value:function(){var e,t,n=this,a=[],i=[f.a.TEN,f.a.THIRTY,f.a.MONTHLY],o=-1;i.forEach((function(e){var t="_dateRangeDropDownItem_".concat(e),i="",r=-1;e===f.a.TEN?(i=n.props.i18nStrings.daterange_label_10days,r=0):e===f.a.THIRTY?(i=n.props.i18nStrings.daterange_label_30days,r=1):e===f.a.MONTHLY&&(i=n.props.i18nStrings.daterange_label_monthly,r=2),e===n.props.dateRange&&(o=r),a.push(d.a.createElement(W.a,{noRole:"true",key:t,id:e},d.a.createElement("div",{className:[gt.a["date-range-item"]]},d.a.createElement("p",null,i))))})),e=F()(this.state.customEndDate).isBefore(F()())?this.state.customEndDate:new Date,t=this.state.customStartDate?this.state.customStartDate:this.props.startDate;var r={onDateSelect:this._onSelectFromDate,maxEndDate:e,defaultValue:this.props.startDate,ariaLabel:this.props.i18nStrings.daterange_label_from,role:"button",svgRole:"button",svgName:this.props.i18nStrings.daterange_svgName},s={onDateSelect:this._onSelectToDate,maxStartDate:t,maxEndDate:new Date,defaultValue:this.props.endDate,ariaLabel:this.props.i18nStrings.daterange_label_to,role:"button",svgRole:"button",svgName:this.props.i18nStrings.daterange_svgName},l={hideSaveButton:!0,closeOnSelect:!0,dateFormat:f.a.CALENDAR_DATE_FORMAT,header:d.a.createElement("div",null),i18nStrings:this.props.i18nStrings,manualEntryEnabled:!0,maxEndDateError:this.props.i18nStrings.history_max_end_date_error,noCalendarIconAttributesRole:!0,locale:this.props.pageConfigs.language};return f.a.CUSTOM===this.props.dateRange&&(o=3),a.push(d.a.createElement(W.a,{noRole:"true",key:"_dateRangeDropDownItem_customDates",id:"custom",className:"",remainOpen:"true",skipAnchorWrapping:"true"},d.a.createElement("p",null,this.props.i18nStrings.daterange_label_customDates),d.a.createElement("div",{className:gt.a["date-range-container"]},d.a.createElement("div",{className:gt.a["date-picker-label"]}," ",this.props.i18nStrings.daterange_label_from," "),d.a.createElement("div",{id:"startdt"},d.a.createElement(mt.a,Object.assign({ref:function(e){n.customStartDate=e}},l,r))),d.a.createElement("div",{className:gt.a["date-picker-label"]}," ",this.props.i18nStrings.daterange_label_to," "),d.a.createElement("div",{id:"enddt"},d.a.createElement(mt.a,Object.assign({ref:function(e){n.customEndDate=e}},l,s))),d.a.createElement("div",{role:"application"},d.a.createElement("button",{id:"date_range_go",className:"btn btn-primary","aria-label":this.props.i18nStrings.daterange_label_go,onClick:this._handleFromToDateChange,onKeyDown:this._keyPressOnGo,role:"button"},this.props.i18nStrings.daterange_label_go))))),[a,o]}},{key:"_keyPressOnGo",value:function(e){"Enter"==e.key?this._handleFromToDateChange():"Tab"==e.key&&(e.shiftKey?e.stopPropagation():this.dateRangeDropdown.closeDropdownWithBlur())}},{key:"_renderSelectedItem",value:function(){var e=ae.getDateRangeLabel(this.props.startDate,this.props.endDate,this.props.dateRange,f.a.CALENDAR_DATE_FORMAT),t=ae.getRangeLabel(this.props.dateRange,this.props.i18nStrings);return d.a.createElement("button",{className:gt.a["dropdown-button"],title:e,"aria-describedby":"dateRangeLabel"},d.a.createElement("span",{className:gt.a["text-legal"]},e)," ",d.a.createElement("span",null,t)," ",d.a.createElement(R.a,{name:"Sort",width:"16px",height:"16px"}),d.a.createElement("span",{className:"sr-only",id:"dateRangeLabel"},this.props.i18nStrings.daterange_label_title))}},{key:"_onSelectFromDate",value:function(e){this.setState({customStartDate:e})}},{key:"_onSelectToDate",value:function(e){this.setState({customEndDate:e})}},{key:"_onDateRangeChange",value:function(e,t){this.customStartDate&&this.customStartDate.resetError(this.props.startDate),this.customEndDate&&this.customEndDate.resetError(this.props.endDate);var n=this.props.dateRange,a=this.props.startDate,i=this.props.endDate,o=this.props.location||{},r=o.locationName,s=void 0===r?"":r,l=o.productUserGuid,c=void 0===l?"":l;if(e.props.id===n&&e.props.id!==f.a.CUSTOM)return null;var u={startDate:ae.getStartDate(e.props.id),endDate:F()().endOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT),dateRange:e.props.id};a==u.startDate&&i==u.endDate&&n==u||ee.handleDateRangeChange(u),a==u.startDate&&i==u.endDate||Q.a.getTransactions(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,this.props.account.id,u.startDate,u.endDate,c,s,this.props.pageConfigs.pageId),e.props.id!==f.a.CUSTOM&&e.props.id!==n&&ee.updateDefaultDateRange(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,this.props.pageConfigs.pageId,"historyRange",e.props.id)}},{key:"_handleBackClick",value:function(e){var t=ae.getPropsBackClick(this.props),n=this.props.location||{},a=n.locationName,i=void 0===a?"":a,o=n.productUserGuid,r=void 0===o?"":o;this.props.startDate==t.startDate&&this.props.endDate==t.endDate||(ee.handleBackClick(t),Q.a.getTransactions(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,this.props.account.id,t.startDate,t.endDate,r,i,this.props.pageConfigs.pageId))}},{key:"_handleForwardClick",value:function(e){var t=ae.getPropsForwardClick(this.props),n=this.props.location||{},a=n.locationName,i=void 0===a?"":a,o=n.productUserGuid,r=void 0===o?"":o;this.props.startDate==t.startDate&&this.props.endDate==t.endDate||(ee.handleForwardClick(t),Q.a.getTransactions(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,this.props.account.id,t.startDate,t.endDate,r,i,this.props.pageConfigs.pageId))}},{key:"_handleFromToDateChange",value:function(){Ae.a.dispatch("closeDropdown");var e={dateRange:f.a.CUSTOM},t=this.props.startDate,n=this.props.endDate,a=F()(this.state.customStartDate||t),i=F()(this.state.customEndDate||n);e.startDate=a.startOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT),e.endDate=i.endOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT);var o=this.props.location||{},r=o.locationName,s=void 0===r?"":r,l=o.productUserGuid,c=void 0===l?"":l;t==e.startDate&&n==e.endDate&&this.props.dateRange==e||ee.handleDateRangeChange(e),t==e.startDate&&n==e.endDate||Q.a.getTransactions(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,this.props.account.id,e.startDate,e.endD
1ate,c,s,this.props.pageConfigs.pageId)}}],[{key:"getStores",value:function(){return[ne]}},{key:"getPropsFromStores",value:function(){return ne.getState()}}]),n}(u.Component);vt.propTypes={pageConfigs:c.a.shape({contextPath:c.a.string,rftoken:c.a.string.isRequired,pageId:c.a.string}).isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var ft=C()(vt),_t=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._handleBackClick=i._handleBackClick.bind(Object(E.a)(i)),i._handleForwardClick=i._handleForwardClick.bind(Object(E.a)(i)),i}return Object(i.a)(n,[{key:"render",value:function(){if(null===this.props.dateRange)return null;var e=F()(this.props.endDate)>F()()||this.props.dateRange===f.a.CUSTOM,t={onClick:this._handleForwardClick},n=gt.a["svg-link"];e&&(t=null,n+=" ".concat(gt.a.disabled));var a=this.props.dateRange===f.a.CUSTOM,i={onClick:this._handleBackClick},o=gt.a["svg-link"];return a&&(i=null,o+=" ".concat(gt.a.disabled)),d.a.createElement("div",{className:gt.a["pagination-wrapper"]},d.a.createElement("div",{className:gt.a["horizontal-rule"]},d.a.createElement("hr",null)),d.a.createElement("div",{className:gt.a.pagination},d.a.createElement("a",Object.assign({id:"olderPagination",className:o,href:"javascript:void(0);"},i,{"aria-label":this.props.i18nStrings.pagination_aria_label_older,tabIndex:a?"-1":"0"}),d.a.createElement(R.a,{name:"Back","aria-hidden":"true"})," ",this.props.i18nStrings.pagination_label_older),d.a.createElement("a",Object.assign({id:"newerPagination",className:n,href:"javascript:void(0);"},t,{tabIndex:e?"-1":"0","aria-label":this.props.i18nStrings.pagination_aria_label_newer}),this.props.i18nStrings.pagination_label_newer," ",d.a.createElement(R.a,{name:"Forward","aria-hidden":"true"}))),d.a.createElement("div",{className:gt.a["horizontal-rule"]},d.a.createElement("hr",null)))}},{key:"_handleBackClick",value:function(e){var t=ae.getPropsBackClick(this.props),n=this.props.location||{},a=n.locationName,i=void 0===a?"":a,o=n.productUserGuid,r=void 0===o?"":o;this.props.startDate==t.startDate&&this.props.endDate==t.endDate||(ee.handleBackClick(t),Q.a.getTransactions(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,this.props.account.id,t.startDate,t.endDate,r,i,this.props.pageConfigs.pageId))}},{key:"_handleForwardClick",value:function(e){var t=ae.getPropsForwardClick(this.props),n=this.props.location||{},a=n.locationName,i=void 0===a?"":a,o=n.productUserGuid,r=void 0===o?"":o;this.props.startDate==t.startDate&&this.props.endDate==t.endDate||(ee.handleForwardClick(t),Q.a.getTransactions(this.props.pageConfigs.contextPath,this.props.pageConfigs.rftoken,this.props.account.id,t.startDate,t.endDate,r,i,this.props.pageConfigs.pageId))}}],[{key:"getStores",value:function(){return[ne]}},{key:"getPropsFromStores",value:function(){return ne.getState()}}]),n}(u.Component);_t.propTypes={pageConfigs:c.a.shape({contextPath:c.a.string,rftoken:c.a.string.isRequired,pageId:c.a.string}).isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var bt=C()(_t),Ct=n(825),yt=n(1938),Dt=n.n(yt),St=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._handleChange=i._handleChange.bind(Object(E.a)(i)),i}return Object(i.a)(n,[{key:"render",value:function(){return d.a.createElement(Ct.a,{id:"filteringText",name:"filteringText",className:Dt.a["transactions-filter-input"],focusOnInit:!1,label:this.props.i18nStrings.filter_label,labelClassName:Dt.a["transactions-filter-label"],placeholder:this.props.i18nStrings.filter_placeholder,ariaLabel:"".concat(this.props.i18nStrings.filter_label," ").concat(this.props.i18nStrings.filter_placeholder),isValid:"true",onInput:this._handleChange,value:this.props.filterText})}},{key:"_handleChange",value:function(e){this.props.handleFilterChange(e.target.value.toLowerCase())}}]),n}(u.Component);St.propTypes={pageConfigs:c.a.shape({contextPath:c.a.string,rftoken:c.a.string.isRequired,pageId:c.a.string}).isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var Ot=n(1349),It=Object(i.a)((function e(){Object(a.a)(this,e),this.generateActions("downloadStart","downloadError","downloadTimeout","downloadCancel","downloadSuccess","resetState","exportTypeChanged","toggleExportTypePopOver")})),Lt=X.a.createActions(It),Et=function(){function e(){Object(a.a)(this,e),this.state={status:f.a.SUCCESS,exportType:f.a.EXPORT_TYPE_CSV,showExportTypePopOver:!1},this.bindActions(Lt)}return Object(i.a)(e,[{key:"onResetState",value:function(){this.setState({status:f.a.SUCCESS,exportType:f.a.EXPORT_TYPE_CSV,showExportTypePopOver:!1})}},{key:"onDownloadStart",value:function(){this.setState({status:f.a.LOADING})}},{key:"onDownloadError",value:function(e){this.setState({status:e})}},{key:"onDownloadTimeout",value:function(){this.setState({status:f.a.EXPORT_TIMEOUT})}},{key:"onDownloadCancel",value:function(){this.setState({status:f.a.EXPORT_CANCEL})}},{key:"onDownloadSuccess",value:function(){this.setState({status:f.a.SUCCESS})}},{key:"onExportTypeChanged",value:function(e){this.setState({exportType:e})}},{key:"onToggleExportTypePopOver",value:function(){this.state.showExportTypePopOver?this.onResetState():this.setState({showExportTypePopOver:!this.state.showExportTypePopOver})}}]),e}(),kt=X.a.createStore(Et,"ExportStore"),Tt=n(1433),At=n.n(Tt),Rt=n(588),Nt=n(833),wt=n(1603),Pt=n.n(wt),Bt=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._handleExportTypeRadioButtonClick=i._handleExportTypeRadioButtonClick.bind(Object(E.a)(i)),i._renderCSVOption=i._renderCSVOption.bind(Object(E.a)(i)),i._renderOFXOption=i._renderOFXOption.bind(Object(E.a)(i)),i._renderQFXOption=i._renderQFXOption.bind(Object(E.a)(i)),i._renderQBOOption=i._renderQBOOption.bind(Object(E.a)(i)),i._isLoanAccount=i._isLoanAccount.bind(Object(E.a)(i)),i._handleFocusRestrictionOnRadio=i._handleFocusRestrictionOnRadio.bind(Object(E.a)(i)),i}return Object(i.a)(n,[{key:"_handleExportTypeRadioButtonClick",value:function(e){Lt.exportTypeChanged(e.currentTarget.id)}},{key:"_renderCSVOption",value:function(){return this.props.pageConfigs.CSVEnabled?d.a.createElement("div",{key:"_CSV",onChange:this._handleExportTypeRadioButtonClick,onKeyDown:this._handleFocusRestrictionOnRadio,id:f.a.EXPORT_TYPE_CSV},d.a.createElement(Nt.a,{ariaChecked:!0,checked:!0,isSmall:!0,name:"exportType",ariaDescribedBy:"Export"+f.a.EXPORT_TYPE_CSV+"LabelContainer",id:"E
1xport"+f.a.EXPORT_TYPE_CSV,key:"CSV",label:this.props.i18nStrings.download_csv})):null}},{key:"_renderOFXOption",value:function(){return this.props.pageConfigs.OFXEnabled?d.a.createElement("div",{key:"_OFX",onChange:this._handleExportTypeRadioButtonClick,onKeyDown:this._handleFocusRestrictionOnRadio,id:f.a.EXPORT_TYPE_OFX},d.a.createElement(Nt.a,{ariaChecked:!0,ariaDescribedBy:"Export"+f.a.EXPORT_TYPE_OFX+"LabelContainer",checked:!1,isSmall:!0,name:"exportType",id:"Export".concat(f.a.EXPORT_TYPE_OFX),key:"OFX",label:this.props.i18nStrings.download_ofx})):null}},{key:"_renderQFXOption",value:function(){return this.props.pageConfigs.QFXEnabled?d.a.createElement("div",{key:"_QFX",onChange:this._handleExportTypeRadioButtonClick,onKeyDown:this._handleFocusRestrictionOnRadio,id:f.a.EXPORT_TYPE_QFX},d.a.createElement(Nt.a,{ariaChecked:!0,checked:!1,isSmall:!0,name:"exportType",ariaDescribedBy:"Export"+f.a.EXPORT_TYPE_QFX+"LabelContainer",id:"Export".concat(f.a.EXPORT_TYPE_QFX),key:"QFX",label:this.props.i18nStrings.download_qfx})):null}},{key:"_handleFocusRestrictionOnRadio",value:function(e){1==e.shiftKey&&9==e.keyCode&&e.preventDefault()}},{key:"_renderQBOOption",value:function(){return this.props.pageConfigs.QBOEnabled?d.a.createElement("div",{key:"_QBO",onChange:this._handleExportTypeRadioButtonClick,onKeyDown:this._handleFocusRestrictionOnRadio,id:f.a.EXPORT_TYPE_QBO},d.a.createElement(Nt.a,{ariaChecked:!0,checked:!1,isSmall:!0,name:"exportType",ariaDescribedBy:"Export"+f.a.EXPORT_TYPE_QBO+"LabelContainer",id:"Export".concat(f.a.EXPORT_TYPE_QBO),key:"QBO",label:this.props.i18nStrings.download_qbo})):null}},{key:"_isLoanAccount",value:function(){return P.a.isLoanAccountOrTCLCreditLine(this.props.account)||P.a.isCreditCardAccount(this.props.account)}},{key:"render",value:function(){return this._isLoanAccount()&&!1===this.props.pageConfigs.exportLoans?d.a.createElement("div",null,this._renderCSVOption()):d.a.createElement("div",{role:"group","aria-label":"Type"},this._renderCSVOption(),this._renderOFXOption(),this._renderQFXOption(),this._renderQBOOption())}}]),n}(u.Component);Bt.propTypes={pageConfigs:c.a.shape({CSVEnabled:c.a.bool.isRequired,OFXEnabled:c.a.bool.isRequired,QFXEnabled:c.a.bool.isRequired,QBOEnabled:c.a.bool.isRequired}).isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var xt=n(1939),jt=n.n(xt),Mt=function(){function e(){Object(a.a)(this,e),this.exportTimerId=null,this.timerTickCount=0,this._exportTimerRunning=this._exportTimerRunning.bind(this),this._startExportTimer=this._startExportTimer.bind(this),this._tickExportTimer=this._tickExportTimer.bind(this),this._checkDownloadCookie=this._checkDownloadCookie.bind(this),this._clearExportTimer=this._clearExportTimer.bind(this),this._clearDownloadCookie=this._clearDownloadCookie.bind(this),this._cancelExportTimer=this._cancelExportTimer.bind(this)}return Object(i.a)(e,[{key:"_resetState",value:function(){this.exportTimerId=null,this.timerTickCount=0}},{key:"_exportTimerRunning",value:function(){return null!==this.exportTimerId}},{key:"_startExportTimer",value:function(){var e=this;this._exportTimerRunning()||(this._resetState(),this.exportTimerId=setInterval((function(){e._tickExportTimer()}),f.a.EXPORT_INTERVAL)),Lt.downloadStart()}},{key:"_tickExportTimer",value:function(){this._checkDownloadCookie(),this.timerTickCount=this.timerTickCount+1,f.a.EXPORT_MAX_TIME<=this.timerTickCount*f.a.EXPORT_INTERVAL&&this._exportTimerRunning()&&(Lt.downloadTimeout(),this._clearDownloadCookie(),this._clearExportTimer())}},{key:"_checkDownloadCookie",value:function(){var e=jt.a.get(f.a.EXPORT_COOKIE_NAME);e&&"null"!==e&&(e===f.a.EXPORT_SUCCESS?(Lt.downloadSuccess(),Lt.resetState.defer()):e===f.a.NO_QUALIFYING_TRANSACTIONS?Lt.downloadError(f.a.NO_QUALIFYING_TRANSACTIONS):Lt.downloadError(f.a.ERROR),this._clearDownloadCookie(),this._clearExportTimer())}},{key:"_clearDownloadCookie",value:function(){jt.a.set(f.a.EXPORT_COOKIE_NAME,null,{expires:new Date("January 1, 1970"),path:"/"})}},{key:"_clearExportTimer",value:function(){null!=this.exportTimerId&&(clearInterval(this.exportTimerId),this.exportTimerId=null)}},{key:"_cancelExportTimer",value:function(){Lt.downloadCancel(),this._clearDownloadCookie(),this._clearExportTimer()}}]),e}(),Ft=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._handleExportTransactions=i._handleExportTransactions.bind(Object(E.a)(i)),i._getFilteredTnums=i._getFilteredTnums.bind(Object(E.a)(i)),i._handleCancelExport=i._handleCancelExport.bind(Object(E.a)(i)),i._toggleExportTypePopOver=i._toggleExportTypePopOver.bind(Object(E.a)(i)),i._handleExportClickOut=i._handleExportClickOut.bind(Object(E.a)(i)),i._resetIFrameSrc=i._resetIFrameSrc.bind(Object(E.a)(i)),i._renderExportTypesPopOver=i._renderExportTypesPopOver.bind(Object(E.a)(i)),i._renderExportError=i._renderExportError.bind(Object(E.a)(i)),i._renderExportLoading=i._renderExportLoading.bind(Object(E.a)(i)),i._renderExportForm=i._renderExportForm.bind(Object(E.a)(i)),i._handleFocusRestrictionOnCancel=i._handleFocusRestrictionOnCancel.bind(Object(E.a)(i)),i.timer=new Mt,i}
1return Object(i.a)(n,[{key:"componentWillUnmount",value:function(){Lt.resetState.defer()}},{key:"_handleExportTransactions",value:function(){var e=document.createElement("div");if(A.a.render(this._renderExportForm(),e),this.refs.exportIframe){var t=this.refs.exportIframe.contentDocument||this.refs.exportIframe.contentWindow.document;t.documentElement.getElementsByTagName("body")&&t.documentElement.getElementsByTagName("body").length>0&&(t.documentElement.getElementsByTagName("body")[0].innerHTML=""),this.refs.exportIframe.contentDocument.body.appendChild(e),this.refs.exportIframe.contentDocument.getElementById("downloadForm"+this.props.account.id).submit()}this.timer._startExportTimer()}},{key:"_handleCancelExport",value:function(){var e=this;this.props.status===f.a.LOADING&&(this._resetIFrameSrc(),this.timer._cancelExportTimer()),this.refs.exportButton&&setTimeout((function(){e.refs.exportButton.focus()}),300),this._toggleExportTypePopOver()}},{key:"_resetIFrameSrc",value:function(){this.refs.exportIframe&&(this.refs.exportIframe.src="".concat("/dbank/live/","blank.html"))}},{key:"_toggleExportTypePopOver",value:function(){var e=this;this.props.status!==f.a.LOADING&&(setTimeout((function(){e._setFirstFocusOnExportPopup(e.refs.popover)}),500),Lt.toggleExportTypePopOver())}},{key:"_handleExportClickOut",value:function(){this.props.showExportTypePopOver&&this._toggleExportTypePopOver()}},{key:"_handleFocusRestrictionOnCancel",value:function(e){0==e.shiftKey&&9==e.keyCode&&e.preventDefault()}},{key:"_setFirstFocusOnExportPopup",value:function(e){if(e){try{re.a.logHistoryPageAction(oe.a.history_event_category,oe.a.history_export_click,this.props.pageConfigs.reportSuite)}catch(t){console.error("Exception happened")}A.a.findDOMNode(e).querySelectorAll(f.a.TAB_ELEMENT_SELECTORS_FOR_POPUP)[0].focus()}}},{key:"_renderExportForm",value:function(){var e=f.a.URL_EXPORT.replace("{exportType}",this.props.exportType);console.log("exportURL",e),e=Object(Re.b)(e);var t=(this.props.location||{}).productUserGuid,n=void 0===t?"":t;return d.a.createElement("form",{name:"downloadForm",id:"downloadForm"+this.props.account.id,action:e+this.props.exportType,method:"POST"},d.a.createElement("input",{type:"hidden",name:"rftoken",value:this.props.pageConfigs.rftoken}),d.a.createElement("input",{type:"hidden",name:"locationId",value:n}),d.a.createElement("input",{type:"hidden",name:"accountId",value:this.props.account.id}),d.a.createElement("input",{type:"hidden",name:"dateRangeStart",value:this.props.startDate}),d.a.createElement("input",{type:"hidden",name:"dateRangeEnd",value:this.props.endDate}),d.a.createElement("input",{type:"hidden",name:"filteredTnums",value:this._getFilteredTnums()}),d.a.createElement("input",{type:"hidden",name:"selectedDateRange",value:this.props.dateRange}))}},{key:"_getFilteredTnums",value:function(){var e=this,t="";return this.props.filter&&this.props.transactions.forEach((function(n,a){t+=n.exportTNUM,a<e.props.transactions.length-1&&(t+=f.a.EXPORT_FILTER_TRANSACTION_DELIMITER)})),t}},{key:"_renderExportError",value:function(){if(this.props.status===f.a.EXPORT_TIMEOUT&&this._resetIFrameSrc(),this.props.status===f.a.ERROR||this.props.status===f.a.EXPORT_TIMEOUT||this.props.status===f.a.NO_QUALIFYING_TRANSACTIONS){var e="";return e=this.props.status===f.a.NO_QUALIFYING_TRANSACTIONS?"<strong>"+this.props.i18nStrings.download_error_no_qualifying_transactions+"</strong> ":"<strong>"+this.props.i18nStrings.download_errorText+"</strong> "+this.props.i18nStrings.download_tryLater,d.a.createElement("div",{id:"exportError",className:Pt.a.error},d.a.createElement(Rt.a,{type:"danger",showIcon:!0,dangerouslySetInnerHTML:{__html:e}}))}return null}},{key:"_renderExportLoading",value:function(){return this.props.status===f.a.LOADING?d.a.createElement("div",{className:Pt.a["wait-export"]},d.a.createElement("span",{className:Pt.a["wait-icon"]},d.a.createElement(R.a,{name:"SmallLoader"})),d.a.createElement("span",{className:Pt.a["wait-text"]},this.props.i18nStrings.download_waitText,d.a.createElement("br",null),this.props.i18nStrings.download_waitWarning)):null}},{key:"_renderExportTypesPopOver",value:function(){var e=this.props.status===f.a.LOADING;return d.a.createElement("div",{className:Pt.a["export-type-container"]+" popover fade bottom in",i
1d:"popover846547",ref:"popover",tabIndex:"-1",role:"alert","aria-describedby":"popover846547"},d.a.createElement("div",{className:"arrow"}),d.a.createElement("h2",{className:"h3"},this.props.i18nStrings.download_header),d.a.createElement("div",{className:"popover-content"},d.a.createElement("div",{className:"di-test"},this._renderExportError(),d.a.createElement("div",{className:Pt.a["export-description"]},this.props.i18nStrings.download_header_text),d.a.createElement(Bt,this.props),d.a.createElement("div",null,d.a.createElement("button",{type:"button",id:"exportFile",className:Pt.a["export-cancel-button"]+" btn sm btn-primary",onClick:this._handleExportTransactions,disabled:e},this.props.i18nStrings.download_button),d.a.createElement("button",{type:"button",id:"cancelExport",className:Pt.a["export-cancel-button"]+" btn sm btn-secondary",onClick:this._handleCancelExport,onKeyDown:this._handleFocusRestrictionOnCancel},this.props.i18nStrings.cancelButtonText)),d.a.createElement("iframe",{ref:"exportIframe",className:Pt.a.hidden,src:"".concat("/dbank/live/","blank.html")}),this._renderExportLoading())))}},{key:"render",value:function(){return d.a.createElement(At.a,{onClickOut:this._handleExportClickOut},d.a.createElement("div",null,d.a.createElement("button",{type:"button",title:this.props.i18nStrings.download_button,ref:"exportButton","aria-haspopup":"true",className:Pt.a["export-button"]+" btn btn-tertiary popover-white","data-analytics-eventCategory":oe.a.history_event_category,"data-analytics-eventAction":oe.a.history_export_click,onClick:this._toggleExportTypePopOver},this.props.i18nStrings.download_button),this.props.showExportTypePopOver?this._renderExportTypesPopOver():null))}}]),n}(u.Component);Ft.propTypes={pageConfigs:c.a.shape({contextPath:c.a.string.isRequired,rftoken:c.a.string.isRequired,pageId:c.a.string.isRequired}).isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired,filter:c.a.string.isRequired};var Vt=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"render",value:function(){return this.props.pageConfigs.exportEnabled?d.a.createElement(Ft,this.props):null}}],[{key:"getStores",value:function(){return[kt,ne]}},{key:"getPropsFromStores",value:function(){return Object(m.a)(Object(m.a)({},kt.getState()),ne.getState())}}]),n}(u.Component);Vt.propTypes={pageConfigs:c.a.shape({contextPath:c.a.string,rftoken:c.a.string.isRequired,pageId:c.a.string}).isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var Ut=C()(Vt),Ht=n(243),Yt=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){return d.a.createElement("div",{className:"print-history-transaction"},this._renderPrintTopSection(),d.a.createElement("div",{className:"content"},this._renderHistoryContent(!0)),d.a.createElement(pe,{account:this.props.account,pageConfigs:this.props.pageConfigs}))}},{key:"_renderPrintTopSection",value:function(){var e=F()().format(v.HISTORY_ACCOUNT_DETAILS_PRINT_DATE_FORMAT),t=P.a.showPrimaryHolderIdInAccountDescription(this.props.account,this.props.pageConfigs)?this.props.account.displayPrimaryHolderId+"-":"",n=P.a.getMaskedAccountNumber(this.props.account);t+=n||"";var a=this.props.account.description,i=ae.getDateRangeLabel(this.props.startDate,this.props.endDate,this.props.dateRange,v.CALENDAR_DATE_FORMAT),o=ae.getRangeLabel(this.props.dateRange,this.props.i18nStrings);return d.a.createElement("div",{className:"account-details"},d.a.createElement("div",{className:"content"},d.a.createElement("span",null,this.props.pageConfigs.fiName),d.a.createElement("span",{className:"print-date-time"},e)),d.a.createElement("br",null),d.a.createElement("div",null,d.a.createElement("div",{className:"left"},d.a.createElement("span",null,a," ",t)),d.a.createElement("div",{className:"right"},d.a.createElement(j,{account:this.props.account,i18nStrings:this.props.i18nStrings,configs:this.props.pageConfigs}))),d.a.createElement("div",{className:"date-range"},i," ",o))}},{key:"_renderHistoryContent",value:function(){var e=this.props.status;e!==v.SUCCESS||this.props.account.historyAllowed&&!this.props.account.tpvReference||(e=v.ERROR);var t=null;return this.props.defaultSort&&this.props.defaultSort.column&&this.props.defaultSort.direction&&(t=this.props.defaultSort),d.a.createElement(pt,{account:this.props.account,pageConfigs:this.props.pageConfigs,transactions:this.props.transactions,i18nStrings:this.props.i18nStrings,filterText:this.props.filter,status:e,print:!0,defaultSort:t})}}]),n}(u.Component);
1Yt.propTypes={pageConfigs:c.a.shape({contextPath:c.a.string,rftoken:c.a.string.isRequired,locationId:c.a.string}).isRequired,account:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired,transactions:c.a.arrayOf(c.a.object).isRequired,startDate:c.a.string.isRequired,endDate:c.a.string.isRequired,dateRange:c.a.string.isRequired,filter:c.a.string.isRequired,defaultSort:c.a.shape({column:c.a.string.isRequired,direction:c.a.oneOf([v.SORT_ASCENDING,v.SORT_DESCENDING]).isRequired})};var Gt=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._getEachButtonSize=i._getEachButtonSize.bind(Object(E.a)(i)),i._handlePrint=i._handlePrint.bind(Object(E.a)(i)),i._onHistoryStatementsClick=i._onHistoryStatementsClick.bind(Object(E.a)(i)),i._onHistoryTransferClick=i._onHistoryTransferClick.bind(Object(E.a)(i)),i}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props.account.displayFlag.transferTo&&Ot.a.canTransfer(this.props.pageConfigs.viewOnlyMode,this.props.pageConfigs.primaryUser,this.props.accounts),t=this.props.pageConfigs.hasOLSAccess,n=this._getEachButtonSize(e,t),a="/app/home/frame?src="+this.props.pageConfigs.onlineStatementsURL,i="";this.props.pageConfigs.openOLSInNewTab&&(i="_blank");var o=this.props,r=o.location,s=o.account,l={accountId:s.accountReference};r&&r.productUserGuid&&(l.locationId=r.productUserGuid);var c="?";s&&s.accountReference&&(c="".concat(c,"accountId=").concat(s.accountReference));var u=r&&r.productUserGuid?r.productUserGuid:null;return u&&(c="".concat(c).concat(s&&s.accountReference?"&":"","locationId=").concat(u)),d.a.createElement("div",{role:Ne.a.isIE11()?null:"application",className:Pt.a["other-buttons"]+" col-sm-12"},e?d.a.createElement(Ht.a,{id:"transferButton",to:{pathname:this.props.pageConfigs.olbRoutes[f.a.TRANSFERS],search:c},onClick:this._onHistoryTransferClick,className:n,"aria-label":this.props.i18nStrings.transfer,tabIndex:"-1",role:Ne.a.isIE11()?null:"button"},d.a.createElement("button",{type:"button",title:this.props.i18nStrings.transfer,tabIndex:"0",className:Pt.a.transfers+" btn btn-tertiary "},this.props.i18nStrings.transfer)):null,t?d.a.createElement(Ht.a,{id:"statementsButton",to:a,target:i,onClick:this._onHistoryStatementsClick,className:n,role:Ne.a.isIE11()?null:"button",tabIndex:"-1","aria-label":this.props.pageConfigs.statementLabelText},d.a.createElement("button",{type:"button",title:this.props.pageConfigs.statementLabelText,tabIndex:"0",className:Pt.a.statements+" btn btn-tertiary "},this.props.pageConfigs.statementLabelText)):null,d.a.createElement("div",{className:"".concat(Pt.a.export," ").concat(n)},d.a.createElement(Ut,this.props)),d.a.createElement("div",{className:n},d.a.createElement("button",{title:this.props.i18nStrings.transactions_label_print,className:"btn btn-tertiary col-xs-12",disabled:this.props.status===f.a.LOADING,onClick:this._handlePrint},this.props.i18nStrings.transactions_label_print)))}},{key:"_getEachButtonSize",value:function(e,t){return e&&t?"col-xs-6 col-sm-3":!e&&t?"col-xs-6 col-sm-4":e&&!t?"col-xs-12 col-sm-4":e||t?void 0:"col-xs-12 col-sm-6"}},{key:"_handlePrint",value:function(){var e=document.createElement("div"),t=Object.assign({},this.props.pageConfigs,{breakpoint:f.a.LAYOUT_LG});A.a.render(d.a.createElement(Yt,{pageConfigs:t,account:this.props.account,i18nStrings:this.props.i18nStrings,transactions:this.props.transactions,startDate:this.props.startDate,endDate:this.props.endDate,dateRange:this.props.dateRange,filter:this.props.filter,status:this.props.status,defaultSort:this.props.defaultSort}),e);var n=this._getPrintCSSURL();ue.a.openPrintWindow(ue.a.generatePrintHTML("",n,e.innerHTML))}},{key:"_getPrintCSSURL",value:function(){var e="".concat("/dbank/live/","sdp/dist/css/print.css");return this.props.pageConfigs.printCSSURL&&(e=this.props.pageConfigs.printCSSURL),e}},{key:"_onHistoryStatementsClick",value:function(){re.a.logHistoryPageAction(oe.a.history_event_category,oe.a.history_online_statements_click,this.props.pageConfigs.reportSuite)}},{key:"_onHistoryTransferClick",value:function(){re.a.logHistoryPageAction(oe.a.history_event_category,oe.a.history_transfer_click,this.props.pageConfigs.reportSuite)}}]),n}(u.Component);Gt.propTypes={pageConfigs:c.a.shape({contextPath:c.a.string,rftoken:c.a.string.isRequired,locationId:c.a.string}).isRequired,account:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired,defaultSort:c.a.shape({column:c.a.string.isRequired,direction:c.a.oneOf([f.a.SORT_ASCENDING,f.a.SORT_DESCENDING]).isRequired})};var qt=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._renderDateRangeAndFilter=i._renderDateRangeAndFilter.b
1ind(Object(E.a)(i)),i._renderHistoryContent=i._renderHistoryContent.bind(Object(E.a)(i)),i._getTransactions=i._getTransactions.bind(Object(E.a)(i)),i._renderPagination=i._renderPagination.bind(Object(E.a)(i)),i._handleFilterChange=i._handleFilterChange.bind(Object(E.a)(i)),i._renderOtherButtons=i._renderOtherButtons.bind(Object(E.a)(i)),i._handleSort=i._handleSort.bind(Object(E.a)(i)),i}return Object(i.a)(n,[{key:"render",value:function(){return d.a.createElement("div",null,this._renderOtherButtons(),this._renderDateRangeAndFilter(),this._renderHistoryContent(),this._renderPagination())}},{key:"_renderOtherButtons",value:function(){var e=null;return this.state&&this.state.sortColumn&&this.state.sortDirection&&(e={column:this.state.sortColumn,direction:this.state.sortDirection}),this.props.account?d.a.createElement("div",null,d.a.createElement(Gt,{pageConfigs:this.props.pageConfigs,account:this.props.account,accounts:this.props.accounts,location:this.props.location,transactions:this._getTransactions(),filter:this.props.filter,i18nStrings:this.props.i18nStrings,status:this.props.status,startDate:this.props.startDate,endDate:this.props.endDate,dateRange:this.props.dateRange,defaultSort:e}),d.a.createElement("br",null),d.a.createElement("br",null),d.a.createElement("br",null)):null}},{key:"_renderDateRangeAndFilter",value:function(){return this.props.account?d.a.createElement("div",{className:gt.a["flex-row"]},d.a.createElement(ft,{className:"hidden-xs",account:this.props.account,location:this.props.location,pageConfigs:this.props.pageConfigs,i18nStrings:this.props.i18nStrings}),d.a.createElement(St,{i18nStrings:this.props.i18nStrings,pageConfigs:this.props.pageConfigs,filterText:this.props.filter,handleFilterChange:this._handleFilterChange})):null}},{key:"_renderHistoryContent",value:function(){var e=this.props.status;return e!==v.SUCCESS||this.props.account.historyAllowed&&!this.props.account.tpvReference||(e=v.ERROR),d.a.createElement(pt,{account:this.props.account,pageConfigs:this.props.pageConfigs,location:this.props.location,transactions:this._getTransactions(),i18nStrings:this.props.i18nStrings,filterText:this.props.filter,status:e,onSort:this._handleSort})}},{key:"_renderPagination",value:function(){return d.a.createElement(bt,{account:this.props.account,location:this.props.location,pageConfigs:this.props.pageConfigs,i18nStrings:this.props.i18nStrings})}},{key:"_getTransactions",value:function(){var e=this;if(this.props.transactions&&this.props.transactions.length>0){var t=[],n=this.props.account,a=(this.props.location,!1);return P.a.isCreditCardAccountExceptTCL(n)&&(a=!0),this.props.transactions.forEach((function(n,i){var o=it.getDescription(n,e.props.account,e.props.pageConfigs,e.props.i18nStrings,!0),r=Object.assign({},n);if(r.displayDescription=o.description,r.showImageIcon=o.showImageIcon,null!=n.amount){var s=n.creditTransaction?n.amount:-n.amount;a&&!n.creditTransaction&&(n.fee>0||n.amountToInterest>0)&&0==n.amount&&null!=n.amountToPrincipal&&n.amountToPrincipal!=n.amount&&(s=-n.amountToPrincipal),r.displayAmount=s}if(""!==e.props.filter){if(r.formattedAmount=Y.a.convertNumberToUSD(r.displayAmount,!0),null!==n.fee&&(r.formattedFee=Y.a.convertNumberToUSD(n.fee,!0)),null!==n.amountToInterest&&(r.formattedAmountToInterest=Y.a.convertNumberToUSD(n.amountToInterest,!0)),null!==n.amountToPrincipal){var l=n.amountToPrincipal;a&&(l=Math.abs(l)),r.formattedAmountToPrincipal=Y.a.convertNumberToUSD(l,!0)}null!==n.amountToEscrow&&(r.formattedAmountToEscrow=Y.a.convertNumberToUSD(n.amountToEscrow,!0));var c=e.props.filter.replace(/,/g,""),u=r.displayDescription?r.displayDescription.replace(/,/g,""):null,d=r.formattedAmount?r.formattedAmount.replace(/,/g,""):null,p=r.formattedAmountToInterest?r.formattedAmountToInterest.replace(/,/g,""):null,m=r.formattedAmountToPrincipal?r.formattedAmountToPrincipal.replace(/,/g,""):null,h=r.formattedAmountToEscrow?r.formattedAmountToEscrow.replace(/,/g,""):null,g=r.formattedFee?r.formattedFee.replace(/,/g,""):null;(-1!=r.displayDescription.toLowerCase().indexOf(e.props.filter)||-1!=r.formattedAmount.indexOf(e.props.filter)||r.formattedAmountToInterest&&-1!=r.formattedAmountToInterest.indexOf(e.props.filter)||r.formattedAmountToPrincipal&&-1!=r.formattedAmountToPrincipal.indexOf(e.props.filter)||r.formattedAmountToEscrow&&-1!=r.formattedAmountToEscrow.indexOf(e.props.filter)||r.formattedFee&&-1!=r.formattedFee.indexOf(e.props.filter)||u&&-1!=u.indexOf(c)||d&&-1!=d.indexOf(c)||p&&-1!=p.indexOf(c)||m&&-1!=m.indexOf(c)||h&&-1!=h.indexOf(c)||g&&-1!=g.indexOf(c))&&t.pu
1sh(r)}else t.push(r)})),t}return this.props.transactions}},{key:"_handleFilterChange",value:function(e){Q.a.setFilter(e)}},{key:"_handleSort",value:function(e,t){this.setState({sortColumn:e,sortDirection:t})}}],[{key:"getStores",value:function(){return[ve.b,ne]}},{key:"getPropsFromStores",value:function(){return Object(m.a)(Object(m.a)({},ve.b.getState()),ne.getState())}}]),n}(u.Component);qt.PropTypes={account:c.a.object.isRequired,pageConfigs:c.a.object.isRequired,transactions:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var Wt=C()(qt),Kt=n(1370),Zt=n(1497),Qt=n(1382),Xt=n(1409),zt=n(1368),Jt=n(891),$t=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._onLocationSelect=function(e){var t=i.props.locations;me.a.selectLocation(t[e])},i._renderRegDDText=i._renderRegDDText.bind(Object(E.a)(i)),i._renderFDIC=i._renderFDIC.bind(Object(E.a)(i)),i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=(this.props.pageConfigs||{}).customerType,n=Pe.a.getUrlParameterValueByName("locationId",window.location.href);t===v.BUSINESS.toLowerCase()&&n?this._getLocations().then((function(t){var a=(t.data||{}).locationsresponse.filter((function(e){return e.productUserGuid===n})),i=Object(L.a)(a,1)[0];me.a.selectLocation(i),e._getAccounts(i)})):this._getAccounts()}},{key:"componentDidUpdate",value:function(e){var t=this.props.defaultLocation;t!==e.defaultLocation&&Z.a.resetAccount.defer(this._getAccounts(t)),this.props.accountDataStatus===v.SUCCESS&&null==this.props.selectedAccount&&(Z.a.selectAccount.defer(this._getSelectedAccount()),this.refs.accountHeader&&this.refs.accountHeader.focus())}},{key:"componentWillUnmount",value:function(){me.a.reset(),zt.a.reset(),Z.a.reset()}},{key:"render",value:function(){var e="di-container "+k["account-history"];return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",null,this._renderFDIC()),d.a.createElement("div",{className:e,id:"AccountHistoryContainer",ref:"AccountHistoryContainer"},d.a.createElement("div",{className:"page-header"},d.a.createElement("h1",{ref:"accountHeader",tabIndex:"-1","aria-describedby":"accountPageTitle AccountHistoryContainer otherServicesContainer",className:"brand-type-a-text-style"},this.props.i18nStrings.account_history)),this._renderContent(),d.a.createElement("span",{className:"sr-only",id:"accountPageTitle"},this.props.i18nStrings.account_history_title)))}},{key:"_renderContent",value:function(){return this.props.accountDataStatus===v.SUCCESS&&null!=this.props.selectedAccount?d.a.createElement("div",{className:"fade-in"},d.a.createElement(ge,{pageConfigs:this.props.pageConfigs,selectedAccount:this.props.selectedAccount,selectedLocation:this.props.defaultLocation,locations:this.props.locations,accounts:this.props.accounts,i18nStrings:this.props.i18nStrings}),d.a.createElement(Wt,{pageConfigs:this.props.pageConfigs,account:this.props.selectedAccount,location:this.props.defaultLocation,accounts:this.props.accounts,i18nStrings:this.props.i18nStrings}),this._renderRegDDText()):this.props.accountDataStatus===v.LOADING||this.props.accountDataStatus===v.SUCCESS&&null==this.props.selectedAccount?d.a.createElement("div",{className:k["page-loader"]},d.a.createElement(Kt.a,null)):d.a.createElement("div",null,this.props.defaultLocation&&d.a.createElement("div",{className:k["tin-dropdown"]+" brand-link"},this._renderLocationDropdown()),d.a.createElement(ye,{messages:{error:this.props.i18nStrings.transactions_error_message,errorSubText:this.props.i18nStrings.transactions_error_message_action}}))}},{key:"_renderLocationDropdown",value:function(){var e=this,t=this.props,n=t.locations,a=t.i18nStrings,i=this.props.defaultLocation;return d.a.createElement(ce.a,{id:"Location",locations:n,defaultLocation:i,onSelect:this._onLocationSelect,i18nStrings:a,hideTINLabel:!0,ref:function(t){e.locationDropdownGroup=t}})}},{key:"_renderRegDDText",value:function(){return d.a.createElement(pe,{account:this.props.selectedAccount,pageConfigs:this.props.pageConfigs})}},{key:"_renderFDIC",value:function(){if(this.props.accountDataStatus===v.SUCCESS&&null!=this.props.selectedAccount){var e=this.props.pageConfigs.complianceConfiguration;if(e.complianceEnabled){var t=e.complianceInsuredAccountTypes,n=e.complianceNonInsuredAccountTypes,a=this.props.selectedAccount.accountType,i=P.a.getAccountTypeByName(a),o=null===t||void 0===t?void 0:t.split(","),r=null===o||void 0===o?void 0:o.includes(i),s=null===n||void 0===n?void 0:n.split(","),l=null===s||void 0===s?void 0:s.includes(i),c=r||l;return d.a.createElement(Jt.a,{config:e,isInsured:r,showFDIC:c,isHomePage:!1})}return d.a.createElement(d.a.Fragment,null)}return d.a.createElement(d.a.Fragment,null)}},{key:"_getLocations",value:function(){var e=this.props.pageConfigs;return me.a.getLocations(e.contextPath,e.rftoken,e.pageId,!0)}},{key:"_getAccounts",value:function(e){var t=this.props.pageConfigs,n=!!e&&e.productUserGuid||null;return zt.a.getAccounts(t.contextPath,t.rftoken,t.pageId,null,null,null,n)}},{key:"_getSelectedAccount",value:function(){var e=null,t=Pe.a.getUrlParameterValueByName("accountId",window.location.href);return null==t||this.props.loaded?null!=this.props.accounts&&this.props.accounts.length>0&&(e=this.props.accounts[0]):null!=this.props.accounts&&this.props.accounts.length>
10&&(this.props.accounts.forEach((function(n){n.accountReference===t&&(e=n,Z.a.loaded.defer(e))})),null==e&&(e=this.props.accounts[0])),e}}],[{key:"getStores",value:function(){return[Zt.a,Qt.a,Xt.a]}},{key:"getPropsFromStores",value:function(){return Object(m.a)(Object(m.a)(Object(m.a)({},Zt.a.getState()),Qt.a.getState()),Xt.a.getState())}}]),n}(u.Component),en=C()($t),tn=n(535),nn=n(1940),an=n.n(nn),on=Object.freeze({TurboTax:"TurboTax",Alerts:"TextMobileAlerts",StopPayment:"StopPayment",PayPeople:"PayPeople",TransferMoney:"TransferMoney",Rename:"Rename",Generic:"Generic",Settings:"Settings"}),rn=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"render",value:function(){var e="di-container-d ".concat(an.a["other-services-link"]);return d.a.createElement("div",{className:e,id:"otherServicesContainer"},d.a.createElement("h2",{className:"title brand-type-a-text-style"},this.props.i18nStrings.otherServices_titleText),d.a.createElement("div",{className:an.a["link-container"]},this._renderLinks()))}},{key:"_renderLinks",value:function(){var e=[],t=this.props.links;
1if(t)for(var n=0;n<t.length;n++){var a=t[n],i=(null!==a&&void 0!==a?a:{}).url,o=!1,r=i;switch(i&&(-1!=i.indexOf("lpNewTab=external")?o=!0:r="/app/home/frame?src=".concat(-1!==i.indexOf("%2F")?i:encodeURIComponent(i))),a.id){case"TTOB":e.push(this._renderLink(a.id,r,on.TurboTax,this.props.i18nStrings.otherServices_turboTax,o));break;case"SMS_ALERTS":e.push(this._renderLink(a.id,r,on.Alerts,this.props.i18nStrings.otherServices_mobileAlerts,o));break;case"STOP_PAYMENT":e.push(this._renderLink(a.id,r,on.StopPayment,a.label,o));break;case"P2P":e.push(this._renderLink(a.id,r,on.PayPeople,this.props.i18nStrings.otherServices_payPeople,o));break;case"A2A":e.push(this._renderLink(a.id,r,on.TransferMoney,this.props.i18nStrings.otherServices_transfers,o));break;case"NICKNAMES":r=this.props.pageConfigs.olbRoutes.account_preferences,e.push(this._renderLink(a.id,r,on.Settings,this.props.i18nStrings.account_preferences_page_title,o))}a.id.indexOf("CUSTOM")>-1&&e.push(this._renderLink(a.id,r,on.Generic,a.label,o))}return e}},{key:"_renderLink",value:function(e,t,n,a,i){if(i){var o="_blank";return-1!=t.indexOf("newWindow=false")&&(o="_top"),d.a.createElement("div",{className:an.a["link-item"],key:e},d.a.createElement("a",{href:t,id:e,"aria-haspopup":!1,target:o},d.a.createElement("div",{className:an.a["link-content"]},d.a.createElement("div",{className:an.a["link-icon"]},d.a.createElement(R.a,{name:n,width:"20"})),d.a.createElement("div",{className:an.a["link-text"]},a))))}return d.a.createElement("div",{className:an.a["link-item"],key:e},d.a.createElement(Ht.a,{to:t,id:e,"aria-haspopup":!1},d.a.createElement("div",{className:an.a["link-content"]},d.a.createElement("div",{className:an.a["link-icon"]},d.a.createElement(R.a,{name:n,width:"20"})),d.a.createElement("div",{className:an.a["link-text"]},a))))}}]),n}(u.Component);rn.propTypes={links:c.a.arrayOf(c.a.object).isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var sn=n(1582),ln=n(1541),cn=n(1543),un=n(1584),dn={Placeholder:I.a,CustomComponent:tn.a,AccountHistory:en,OtherServices:rn,Promotion:ln.a,Rewards:sn.a,Calculator:cn.a,SegmintZone:un.a},pn=n(1480),mn=n(1374),hn=n(1375),gn=n(1941),vn=n(1942),fn=n(1481),_n=["activeComponents"],bn=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.contextPath,n=e.rftoken;D.a.getConfigurations(t,v.HISTORY,{rftoken:n}),mn.a.trackNewPage(hn.a.HISTORY)}},{key:"componentWillUnmount",value:function(){D.a.reset(),pn.a.reset(),fn.a.reset(),O.a.reset()}},{key:"componentDidUpdate",value:function(e,t){if(e.status===v.LOADING&&this.props.status===v.SUCCESS){O.a.getLocalizations.defer(this.props.contextPath,this.props.locale,this.props.resourceVersion);var n=this.props.navigationData.allowedWebFeatures?JSON.parse(this.props.navigationData.allowedWebFeatures):null;if(this.props.configs&&this.props.configs.promotionsEnabled&&pn.a.getPromotions.defer(this.props.contextPath,this.props.configs.rftoken,this.props.diId,this.props.guid,v.HISTORY,n),this.props.configs&&this.props.configs.segmintEnabled&&fn.a.getZones.defer(this.props.configs.rftoken,v.HISTORY),this.props.configs){var a=this.props,i={diId:a.diId,guid:a.guid,action:"page_loaded"};re.a.logPageLoadAction(oe.a.history_event_category,oe.a.history_action_page_load,this.props.configs.reportSuite,i)}}}},{key:"render",value:function(){return d.a.createElement("div",{className:"container"},this._renderContent())}},{key:"_renderHistoryPage",value:function(){var e=this.props.configs&&this.props.configs.segmintEnabled?vn:gn,t=this.props.configs,n=t.activeComponents,a=Object(h.a)(t,_n);return a.contextPath=this.props.contextPath,a.olbRoutes=this.props.configs.olbRoutes,a.breakpoint=this.props.breakpoint,a.allowDomains=this.props.allowDomains,a.guid=this.props.guid,a.diId=this.props.diId,d.a.createElement(_.a,{breakpoint:this.props.breakpoint,components:n,layout:e,registry:dn,pageConfigs:a,i18nStrings:this.props.i18nStrings})}},{key:"_renderContent",value:function(){return this.props.status===v.SUCCESS&&this.props.localizationStatus===v.SUCCESS?this._renderHistoryPage():this.props.status===v.LOADING||this.props.status===v.SUCCESS&&this.props.localizationStatus===v.LOADING?this.props.renderDefaultLoading():this.props.renderDefaultError()}}],[{key:"getStores",value:function(){return[y.a,S.a]}},{key:"getPropsFromStores",value:function(){return Object(m.a)(Object(m.a)({},y.a.getState()),S.a.getState())}}]),n}(u.Component),Cn=Object(g.a)(C()(bn)),yn=n(893),Dn=n(481),Sn=n(10),On=n(21),In=n(1846),Ln=n(1943),En=n(1944),kn=n(1325),Tn=n(2418),An=n(1329),Rn=n(1338),Nn=n(1321),wn=n(1326),Pn=n(938),Bn=n(1735),xn=n.n(Bn),jn=n(2337),Mn=n(1331),Fn=Object(On.a)(Mn.a)((function(e){return{variant:"body1",color:e.theme.palette.text.primary,fontWeight:700,fontSize:"20px"}})),Vn=Object(On.a)(Mn.a)((function(e){return{variant:"body1",color:e.theme.palette.text.secondary,fontWeight:400,fontSize:"16px"}})),Un=Object(On.a)(An.a)((function(){return{paddingLeft:"20px"}})),Hn=Object(On.a)(kn.a)((function(){return{padding:"10px",marginLeft:"10px",alginSelf:"baseline"}}));function Yn(e){var t=function(e){var t,n,a=[];return void 0!==e[0]&&a.push(u.createElement(Un,{container:!0,direction:"column",justifyContent:"center",xs:5,md:3,tabIndex:0,sx:{p:"10px 0px 10px 0px"},className:"dataPointGrid"},u.createElement(Hn,null,u.createElement(Fn,{className:"dataPointValue"},e[0][2]&&Y.a.convertNumberToUSD(e[0][1],!0),e[0][3]&&(null===(t=F()(e[0][1]))||void 0===t?void 0:t.format("ll")),!e[0][2]&&!e[0][3]&&e[0][1]),u.createElement(Vn,{className:"dataPointKey"},e[0][0])))),void 0!==e[1]&&(a.push(u.createElement(jn.a,{className:"dataPointDivider",orientation:"vertical",flexItem:!0,sx:{p:"0px 10px 0px 0px"}})),a.push(u.createElement(Un,{container:!0,direction:"column",justifyContent:"center",xs:5,md:3,tabIndex:0,sx:Object(m.a)({p:"10px 0px 10px 0px"},e.length>2&&{alignSelf:"baseline"}),className:"dataPointGrid"},u.createElement(Hn,null,u.createElement(Fn,{className:"dataPointValue"},e[1][2]&&Y.a.convertNumberToUSD(e[1][1],!0),e[1][3]&&(null===(n=F()(e[1][1]))||void 0===n?void 0:n.format("ll")),!e[1][2]&&!e[1][3]&&e[1][1]),u.createElement(Vn,{className:"dataPointKey"},e[1][0]))))),a}(e.overviewItems);return t}var Gn="MMM DD, YYYY";function qn(e,t){return e?F()(e).locale("en-US").format(t):"-"}function Wn(e){if(e){var t=F()().startOf("day");return F()(e,"MM/DD/YYYY").startOf("day").isBefore(t)}return!1}var Kn=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"isMaskingEnabled",value:function(e){var t,n;return null===e||void 0===e||null===(t=e.modernBrandingConfigs)||void 0===t||null===(n=t.otherConfigs)||void 0===n?void 0:n.showMaskedAccountNumber}},{key:"emptyValueCheck",value:function(e){return void 0!==e&&null!==e&&"None"!==e}},{key:"emptyNumberCheck",value:function(e){return void 0!==e&&null!==e&&-1!==e}},{key:"buildCreditCardAccountOverview",value:function(e,t){var n,a,i,o,r,s,l,c,u=e,d=[],p=u.availableBalance,m=u.balance,h=u.accountType;if(this.emptyValueCheck(m)&&this.emptyValueCheck(null===t||void 0===t||null===(n=t.modernBrandingConfigs)||void 0===n||null===(a=n.accountSummary)||void 0===a||null===(i=a.creditCard)||void 0===i?void 0:i.accountSummaryCreditCardOutstandingBalanceLabel)&&d.push([t.modernBrandingConfigs.accountSummary.creditCard.accountSummaryCreditCardOutstandingBalanceLabel,m,!0,!1]),this.emptyValueCheck(p)&&this.emptyValueCheck(null===t||void 0===t||null===(o=t.modernBrandingConfigs)||void 0===o||null===(r=o.accountSummary)||void 0===r||null===(s=r.credit
1Card)||void 0===s?void 0:s.accountSummaryCreditCardAvailableCreditLabel)&&-1===(null===t||void 0===t||null===(l=t.modernBrandingConfigs)||void 0===l||null===(c=l.otherConfigs)||void 0===c?void 0:c.accountDetailsSuppressAvailBal.indexOf(h))){var g="";P.a.shouldShowRegdd(u,t.regdd_display)&&(g="**"),d.push(["".concat(t.modernBrandingConfigs.accountSummary.creditCard.accountSummaryCreditCardAvailableCreditLabel).concat(g),p,!0,!1])}return d}},{key:"buildLoanAccountOverview",value:function(e,t){var n=t.i18nStrings,a=e,i=[],o=a.interestRate,r=a.balance,s=a.lastStatementBalance,l=a.loanInfo,c=l.nextPaymentDate,u=l.nextPaymentAmount;return this.emptyValueCheck(r)&&i.length<4&&i.push([n.accounts_balanceLabelText,r,!0]),this.emptyValueCheck(s)&&i.length<4&&i.push([n.accounts_details_lastStatementBalance,s,!0]),this.emptyValueCheck(o)&&i.length<4&&i.push([n.accounts_details_interestRate,o,!1]),this.emptyValueCheck(c)&&i.length<4&&i.push([n.accounts_details_nextPaymentDate,c,!1]),this.emptyValueCheck(u)&&i.length<4&&i.push([n.accounts_details_nextPaymentAmountLoans,u,!0]),i}},{key:"buildGeneralLedgerAccountOverview",value:function(e,t){var n=t.i18nStrings,a=[],i=e.balance;return this.emptyValueCheck(i)&&a.length<4&&a.push([n.accounts_balanceLabelText,i,!0,!1]),a}},{key:"buildInvestmentAccountOverview",value:function(e,t){var n=t.i18nStrings,a=e,i=[],o=a.interestRate,r=a.balance,s=a.availableBalance,l=a.lastStatementCycleDate,c=a.maturityDate;return this.emptyValueCheck(r)&&i.length<4&&i.push([n.accounts_balanceLabelText,r,!0]),this.emptyValueCheck(s)&&i.length<4&&i.push([n.accounts_details_availableBalance,s,!0]),this.emptyValueCheck(o)&&i.length<4&&i.push([n.accounts_details_interestRate,o,!1]),this.emptyValueCheck(l)&&i.length<4&&i.push([n.accounts_details_lastStatementCycleDate,l,!1]),this.emptyValueCheck(c)&&i.length<4&&i.push([n.accounts_details_loanMaturityDate,c,!1]),i}},{key:"buildDepositAccountOverview",value:function(e,t){var n,a,i,o,r,s,l,c,u=e,d=[],p=u.availableBalance,m=u.balance,h=u.accountType;if(this.emptyValueCheck(p)&&this.emptyValueCheck(null===t||void 0===t||null===(n=t.modernBrandingConfigs)||void 0===n||null===(a=n.accountSummary)||void 0===a||null===(i=a.deposit)||void 0===i?void 0:i.accountSummaryDepositAvailableBalanceLabel)&&-1===(null===t||void 0===t||null===(o=t.modernBrandingConfigs)||void 0===o||null===(r=o.otherConfigs)||void 0===r?void 0:r.accountDetailsSuppressAvailBal.indexOf(h))){var g="";P.a.shouldShowRegdd(u,t.regdd_display)&&(g="**"),d.push(["".concat(t.modernBrandingConfigs.accountSummary.deposit.accountSummaryDepositAvailableBalanceLabel).concat(g),p,!0,!1])}return this.emptyValueCheck(m)&&this.emptyValueCheck(null===t||void 0===t||null===(s=t.modernBrandingConfigs)||void 0===s||null===(l=s.accountSummary)||void 0===l||null===(c=l.deposit)||void 0===c?void 0:c.accountSummaryDepositBalanceLabel)&&d.push([t.modernBrandingConfigs.accountSummary.deposit.accountSummaryDepositBalanceLabel,m,!0,!1]),d}},{key:"buildSavingsAccountOverview",value:function(e,t){var n,a,i,o,r,s,l,c,u,d,p=e,m=[],h=p.availableBalance,g=p.balance,v=p.accountType,f="";tt.a.SAVINGS===v?f=null===t||void 0===t||null===(i=t.modernBrandingConfigs)||void 0===i||null===(o=i.accountSummary)||void 0===o||null===(r=o.savings)||void 0===r||null===(s=r.savings)||void 0===s?void 0:s.accountSummarySavingsSavingAvailableBalanceLabel:f=null===t||void 0===t||null===(l=t.modernBrandingConfigs)||void 0===l||null===(c=l.accountSummary)||void 0===c||null===(u=c.savings)||void 0===u||null===(d=u.moneyMarket)||void 0===d?void 0:d.accountSummarySavingsMoneyMarketAvailableBalanceLabel;if(this.emptyValueCheck(h)&&this.emptyValueCheck(f)&&-1===(null===t||void 0===t||null===(n=t.modernBrandingConfigs)||void 0===n||null===(a=n.otherConfigs)||void 0===a?void 0:a.accountDetailsSuppressAvailBal.indexOf(v))){var _="";P.a.shouldShowRegdd(p,t.regdd_display)&&(_="**"),m.push(["".concat(f).concat(_),h,!0,!1])}var b,C,y,D,S,O,I,L,E="";tt.a.SAVINGS===v?E=null===t||void 0===t||null===(b=t.modernBrandingConfigs)||void 0===b||null===(C=b.accountSummary)||void 0===C||null===(y=C.savings)||void 0===y||null===(D=y.savings)||void 0===D?void 0:D.accountSummarySavingsSavingBalanceLabel:E=null===t||void 0===t||null===(S=t.modernBrandingConfigs)||void 0===S||null===(O=S.accountSummary)||void 0===O||null===(I=O.savings)||void 0===I||null===(L=I.moneyMarket)||void 0===L?void 0:L.accountSummarySavingsMoneyMarketBalanceLabel;return this.emptyValueCheck(g)&&this.emptyValueCheck(E)&&m.push([E,g,!0,!1]),m}},{key:"buildInvestmentIRAOverview",value:function(e,t){var n,a,i,o,r,s,l,c,u=e.availableBalance,d=e.balance,p=[];return this.emptyValueCheck(u)&&this.emptyValueCheck(null===t||void 0===t||null===(n=t.modernBrandingConfigs)||void 0===n||null===(a=n.accountSummary)||void 0===a||null===(i=a.investment)||void 0===i||null===(o=i.accountTiesToIRA)||void 0===o?void 0:o.accountSummaryInvestmentAccountTiesToIraAvailableBalanceLabel)&&p.push([t.modernBrandingConfigs.accountSummary.investment.accountTiesToIRA.accountSummaryInvestmentAccountTiesToIraAvailableBalanceLabel,u,!0,!1]),this.emptyValueCheck(d)&&this.emptyValueCheck(null===t||void 0===t||null===(r=t.modernBrandingConfigs)||void 0===r||null===(s=r.accountSummary)||void 0===s||null===(l=s.investment)||void 0===l||null===(c=l.accountTiesToIRA)||void 0===c?void 0:c.accountSummaryInvestmentAccountTiesToIraBalanceLabel)&&p.push([t.modernBrandingConfigs.accountSummary.investment.accountTiesToIRA.accountSummaryInvestmentAccountTiesToIraBalanceLabel,d,!0,!1]),p}},{key:"buildInvestmentKeoghOverview",value:function(e,t){var n,a,i,o,r,s,l,c,u=e.availableBalance,d=e.balance,p=[];return this.emptyValueCheck(u)&&this.emptyValueCheck(null===t||void 0===t||null===(n=t.modernBrandingConfigs)||void 0===n||null===(a=n.accountSummary)||void 0===a||null===(i=a.investment)||void 0===i||null===(o=i.keogh)||void 0===o?void 0:o.accountSummaryInvestmentKeoghAvailableBalanceLabel)&&p.push([t.modernBrandingConfigs.accountSummary.investment.keogh.accountSummaryInvestmentKeoghAvailableBalanceLabel,u,!0,!1]),this.emptyValueCheck(d)&&this.emptyValueCheck(null===t||void 0===t||null===(r=t.modernBrandingConfigs)||void 0===r||null===(s=r.accountSummary)||void 0===s||null===(l=s.investment)||void 0===l||null===(c=l.keogh)||void 0===c?void 0:c.accountSummaryInvestmentKeoghBalanceLabel)&&p.push([t.modernBrandingConfigs.accountSummary.investment.keogh.accountSummaryInvestmentKeoghBalanceLabel,d,!0,!1]),p}},{key:"buildInvestment401kOverview",value:function(e,t){var n,a,i,o,r,s,l,c,u=e.availableBalance,d=e.balance,p=[];return this.emptyValueCheck(u)&&this.emptyValueCheck(null===t||void 0===t||null===(n=t.modernBrandingConfigs)||void 0===n||null===(a=n.accountSummary)||void 0===a||null===(i=a.investment)||void 0===i||null===(o=i.fourZeroOneK)||void 0===o?void 0:o.accountSummaryInvestmentFourZeroOnekAvailableBalanceLabel)&&p.push([t.modernBrandingConfigs.accountSummary.investment.fourZeroOneK.accountSummaryInvestmentFourZeroOnekAvailableBalanceLabel,u,!0,!1]),this.emptyValueCheck(d)&&this.emptyValueCheck(null===t||void 0===t||null===(r=t.modernBrandingConfigs)||void 0===r||null===(s=r.accountSummary)||void 0===s||null===(l=s.investment)||void 0===l||null===(c=l.fourZeroOneK)||void 0===c?void 0:c.accountSummaryInvestmentFourZeroOnekBalanceLabel)&&p.push([t.modernBrandingConfigs.accountSummary.investment.fourZeroOneK.accountSummaryInvestmentFourZeroOnekBalanceLabel,d,!0,!1]),p}},{key:"buildInvestmentCodOverview",value:function(e,t){var n,a,i,o,r,s,l,c,u=e.availableBalance,d=e.balance,p=[];return this.emptyValueCheck(u)&&this.emptyValueCheck(null===t||void 0===t||null===(n=t.modernBrandingConfigs)||void 0===n||null===(a=n.accountSummary)||void 0===a||null===(i=a.investment)||void 0===i||null===(o=i.cod)||void 0===o?void 0:o.accountSummaryInvestmentCODAvailableBalanceLabel)&&p.push([t.modernBrandingConfigs.accountSummary.investment.cod.accountSummaryInvestmentCODAvailableBalanceLabel,u,!0,!1]),this.emptyValueCheck(d)&&this.emptyValueCheck(null===t||void 0===t||null===(r=t.modernBrandingConfigs)||void 0===r||null===(s=r.accountSummary)||void 0===s||null===(l=s.investment)||void 0===l||null===(c=l.cod)||void 0===c?void 0:c.accountSummaryInvestmentCODBalanceLabel)&&p.push([t.modernBrandingConfigs.accountSummary.investment.cod.accountSummaryInvestmentCODBalanceLabel,d,!0,!1]),p}},{key:"buildLoanCreditLineOverview",value:function(e,t){var n,a,i,o,r,s,l,c,u,d,p=e.availableBalance,m=e.balance,h=e.accountType,g=[];if(this.emptyValueCheck(m)&&this.emptyValueCheck(null===t||void 0===t||null===(n=t.modernBrandingConfigs)||void 0===n||null===(a=n.accountSummary)||void 0===a||null===(i=a.loan)||void 0===i||null===(o=i.creditLine)||void 0===o?void 0:o.accountSummaryLoanCreditLineBalanceLabel)&&g.push([t.modernBrandingConfigs.accountSummary.loan.creditLine.accountSummaryLoanCreditLineBalanceLabel,m,!0,!1]),this.emptyValueCheck(p)&&this.emptyValueCheck(null===t||void 0===t||null===(r=t.modernBrandingConfigs)||void 0===r||null===(s=r.accountSummary)||void 0===s||null===(l=s.loan)||void 0===l||null===(c=l.creditLine)||void 0===c?void 0:c.accountSummaryLoanCreditLineAvailableCreditLabel)&&-1===(null===t||void 0===t||null===(u=t.modernBrandingConfigs)||void 0===u||null===(d=u.otherConfigs)||void 0===d?void 0:d.accountDetailsSuppressAvailBal.indexOf(h))){var v="";P.a.shouldShowRegdd(e,t.regdd_display)&&(v="**"),g.push(["".concat(t.modernBrandingConfigs.accountSummary.loan.creditLine.accountSummaryLoanCreditLineAvailableCreditLabel).concat(v),p,!0,!1])}return g}},{key:"buildLoanInstallmentLoanOverview",value:function(e,t){var n,a,i,o,r,s,l,c,u=e.balance,d=e.loanInfo.payoffAmount,p=[];return this.emptyValueCheck(u)&&this.emptyValueCheck(null===t||void 0===t||null===(n=t.modernBrandingConfigs)||void 0===n||null===(a=n.accountSummary)||void 0===a||null===(i=a.loan)||void 0===i||null===(o=i.installmentLoan)||void 0===o?void 0:o.accountSummaryLoanInstallmentLoanBalanceLabel)&&p.push([t.modernBrandingConfigs.accountSummary.loan.installmentLoan.accountSummaryLoanInstallmentLoanBalanceLabel,u,!0,!1]),this.emptyValueCheck(d)&&this.emptyValueCheck(null===t||void 0===t||null===(r=t.modernBrandingConfigs)||void 0===r||null===(s=r.accountSummary)||void 0===s||null===(l=s.loan)||void 0===l||null===(c=l.installmentLoan)||void 0===c?void 0:c.accountSummaryLoanInstallmentLoanPayoffAmountLabel)&&p.push([t.modernBrandingConfigs.accountSummary.loan.installmentLoan.accountSummaryLoanInstallmentLoanPayoffAmountLabel,d,!0,!1]),p}},{key:"buildLoanMortgageLoanOverview",value:function(e,t){var n,a,i,o,r,s,l,c,u=e.balance,d=e.loanInfo.payoffAmount,p=[];return this.emptyValueCheck(u)&&this.emptyValueCheck(null===t||void 0===t||null===(n=t.modernBrandingConfigs)||void 0===n||null===(a=n.accountSummary)||void 0===a||null===(i=a.loan)||void 0===i||null===(o=i.mortgageLoan)||void 0===o?void 0:o.accountSummaryLoanMortgageLoanBalanceLabel)&&p.push([t.modernBrandingConfigs.accountSummary.loan.mortgageLoan.accountSummaryLoanMortgageLoanBalanceLabel,u,!0,!1]),this.emptyValueCheck(d)&&this.emptyValueCheck(null===t||void 0===t||null===(r=t.modernBrandingConfigs)||void 0===r||null===(s=r.accountSummary)||void 0===s||null===(l=s.loan)||void 0===l||null===(c=l.mortgageLoan)||void 0===c?void 0:c.accountSummaryLoanMortgageLoanPayoffAmountLabel)&&p.push([t.modernBrandingConfigs.accountSummary.loan.mortgageLoan.accountSummaryLoanMortgageLoanPayoffAmountLabel,d,!0,!1]),p}},{key:"buildOtherLoanOverview",value:function(e,t){var n,a,i,o,r,s,l,c,u=e.balance,d=e.availableBalance,p=[];return this.emptyValueCheck(u)&&this.emptyValueCheck(null===t||void 0===t||null===(n=t.modernBrandingConfigs)||void 0===n||null===(a=n.accountSummary)||void 0===a||null===(i=a.loan)||void 0===i||null===(o=i.otherLoans)||void 0===o?void 0:o.accountSummaryLoanOtherLoansBalanceLabel)&&p.push([t.modernBrandingConfigs.accountSummary.loan.otherLoans.accountSummaryLoanOtherLoansBalanceLabel,u,!0,!1]),this.emptyValueCheck(d)&&this.emptyValueCheck(null===t||void 0===t||null===(r=t.modernBrandingConfigs)||void 0===r||null===(s=r.accountSummary)||void 0===s||null===(l=s.loan)||void 0===l||null===(c=l.otherLoans)||void 0===c?void 0:c.accountSummaryLoanOtherLoansAvailableCreditLabel)&&p.push([t.modernBrandingConfigs.accountSummary.loan.otherLoans.accountSummaryLoanOtherLoansAvailableCreditLabel,d,!0,!1]),p}},{key:"buildCreditCardAccountDetail",value:function(e,t,n){var a,i,o,r,s,l,c,u,d,p,h,g,v,f,_,b,C,y,D,S,O,I,L,E,k,T,A,R,N,w,P,B,x,j,M,F,V,U,H,Y,G,q,W,K,Z,Q,X,z,J=Object(m.a)({}
1,e),$=J.displayMemberNumber,ee=J.displayAccountNumber,te=J.accountNumber,ne=J.rtn,ae=J.balance,ie=J.availableBalance,oe=J.loanInfo,re=J.nickname,se=J.accountType,le=J.accountStatus,ce=J.interestRate,ue=J.interestYearToDate,de=J.lastStatementBalance,pe=J.displayCardNumber,me=J.billPayAccountNumber,he=J.lateChargesDue,ge=Object(m.a)({},oe),ve=ge.nextPaymentAmount,fe=ge.nextPaymentDate,_e=ge.minPaymentAmount,be=ge.payoffAmount,Ce=ge.loanMaturityDate;if(this.isMaskingEnabled(t))z=ee;else switch(null===t||void 0===t?void 0:t.creditCardDisplayAccountNumber){case"CNUM":z=null===pe?null===te||void 0===te?void 0:te.hostValue:null===te||void 0===te?void 0:te.plasticCardValue;break;case"BANUM":z=null===me?null===te||void 0===te?void 0:te.hostValue:null===te||void 0===te?void 0:te.billPayValue;break;default:z=null===te||void 0===te?void 0:te.hostValue}var ye=[];this.emptyValueCheck($)&&this.emptyValueCheck(null===t||void 0===t||null===(a=t.modernBrandingConfigs)||void 0===a||null===(i=a.accountDetailsSlideOver)||void 0===i||null===(o=i.creditCard)||void 0===o?void 0:o.acctDetailsCreditCardMemberNumberLabel)&&ye.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardMemberNumberLabel,$,!1,!1]),this.emptyValueCheck(z)&&this.emptyValueCheck(null===t||void 0===t||null===(r=t.modernBrandingConfigs)||void 0===r||null===(s=r.accountDetailsSlideOver)||void 0===s||null===(l=s.creditCard)||void 0===l?void 0:l.acctDetailsCreditCardDisplayAccountNumberLabel)&&ye.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardDisplayAccountNumberLabel,z,!1,!1,!1,!0]),this.emptyValueCheck(ne)&&this.emptyValueCheck(null===t||void 0===t||null===(c=t.modernBrandingConfigs)||void 0===c||null===(u=c.accountDetailsSlideOver)||void 0===u||null===(d=u.creditCard)||void 0===d?void 0:d.acctDetailsCreditCardRoutingNumberLabel)&&ye.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardRoutingNumberLabel,ne,!1,!1,!1,!0]);var De=[];this.emptyValueCheck(ae)&&this.emptyValueCheck(null===t||void 0===t||null===(p=t.modernBrandingConfigs)||void 0===p||null===(h=p.accountDetailsSlideOver)||void 0===h||null===(g=h.creditCard)||void 0===g?void 0:g.acctDetailsCreditCardOutstandingBalanceLabel)&&De.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardOutstandingBalanceLabel,ae,!0,!1]),this.emptyValueCheck(ie)&&this.emptyValueCheck(null===t||void 0===t||null===(v=t.modernBrandingConfigs)||void 0===v||null===(f=v.accountDetailsSlideOver)||void 0===f||null===(_=f.creditCard)||void 0===_?void 0:_.acctDetailsCreditCardAvailableCreditLabel)&&-1===(null===t||void 0===t||null===(b=t.modernBrandingConfigs)||void 0===b||null===(C=b.otherConfigs)||void 0===C?void 0:C.accountDetailsSuppressAvailBal.indexOf(se))&&De.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardAvailableCreditLabel,ie,!0,!1]);var Se=[];if(this.emptyValueCheck(ve)){var Oe,Ie,Le,Ee,ke,Te,Ae,Re,Ne,we,Pe,Be,xe,je,Me,Fe=Wn(fe),Ve=ve>0;if(Fe&&Ve&&this.emptyValueCheck(null===t||void 0===t||null===(Oe=t.modernBrandingConfigs)||void 0===Oe||null===(Ie=Oe.accountDetailsSlideOver)||void 0===Ie||null===(Le=Ie.creditCard)||void 0===Le?void 0:Le.acctDetailsCreditCardPastDueAmountLabel))Se.push([null===t||void 0===t||null===(we=t.modernBrandingConfigs)||void 0===we||null===(Pe=we.accountDetailsSlideOver)||void 0===Pe||null===(Be=Pe.creditCard)||void 0===Be?void 0:Be.acctDetailsCreditCardPastDueAmountLabel,ve,!0,!1,Fe]);else if(this.emptyValueCheck(null===t||void 0===t||null===(Ee=t.modernBrandingConfigs)||void 0===Ee||null===(ke=Ee.accountDetailsSlideOver)||void 0===ke||null===(Te=ke.creditCard)||void 0===Te?void 0:Te.acctDetailsCreditCardDueAmountLabel)){var Ue,He,Ye;Se.push([null===t||void 0===t||null===(Ue=t.modernBrandingConfigs)||void 0===Ue||null===(He=Ue.accountDetailsSlideOver)||void 0===He||null===(Ye=He.creditCard)||void 0===Ye?void 0:Ye.acctDetailsCreditCardDueAmountLabel,ve,!0,!1])}if(this.emptyValueCheck(fe)&&this.emptyValueCheck(null===t||void 0===t||null===(Ae=t.modernBrandingConfigs)||void 0===Ae||null===(Re=Ae.accountDetailsSlideOver)||void 0===Re||null===(Ne=Re.creditCard)||void 0===Ne?void 0:Ne.acctDetailsCreditCardDueDateLabel)&&Ve)Se.push([null===t||void 0===t||null===(xe=t.modernBrandingConfigs)||void 0===xe||null===(je=xe.accountDetailsSlideOver)||void 0===je||null===(Me=je.creditCard)||void 0===Me?void 0:Me.acctDetailsCreditCardDueDateLabel,fe,!1,!0])}this.emptyValueCheck(he)&&this.emptyValueCheck(null===t||void 0===t||null===(y=t.modernBrandingConfigs)||void 0===y||null===(D=y.accountDetailsSlideOver)||void 0===D||null===(S=D.creditCard)||void 0===S?void 0:S.acctDetailsCreditCardLateChargesDueLabel)&&Se.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardLateChargesDueLabel,he,!0,!1]),this.emptyValueCheck(_e)&&this.emptyValueCheck(null===t||void 0===t||null===(O=t.modernBrandingConfigs)||void 0===O||null===(I=O.accountDetailsSlideOver)||void 0===I||null===(L=I.creditCard)||void 0===L?void 0:L.acctDetailsCreditCardMinimumPaymentLabel)&&Se.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardMinimumPaymentLabel,_e,!0,!1]);var Ge=[];this.emptyValueCheck(be)&&this.emptyValueCheck(null===t||void 0===t||null===(E=t.modernBrandingConfigs)||void 0===E||null===(k=E.accountDetailsSlideOver)||void 0===k||null===(T=k.creditCard)||void 0===T?void 0:T.acctDetailsCreditCardPayoffAmountLabel)&&Ge.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardPayoffAmountLabel,be,!0,!1]);var qe=[];this.emptyValueCheck(re)&&this.emptyValueCheck(null===t||void 0===t||null===(A=t.modernBrandingConfigs)||void 0===A||null===(R=A.accountDetailsSlideOver)||void 0===R||null===(N=R.creditCard)||void 0===N?void 0:N.acctDetailsCreditCardNicknameLabel)&&qe.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardNicknameLabel,re,!1,!1]),this.emptyValueCheck(se)&&this.emptyValueCheck(null===t||void 0===t||null===(w=t.modernBrandingConfigs)||void 0===w||null===(P=w.accountDetailsSlideOver)||void 0===P||null===(B=P.credit
1Card)||void 0===B?void 0:B.acctDetailsCreditCardAccountTypeLabel)&&qe.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardAccountTypeLabel,e.fiAccountType?e.fiAccountType:n[se.toLowerCase()],!1,!1]),this.emptyValueCheck(le)&&this.emptyValueCheck(null===t||void 0===t||null===(x=t.modernBrandingConfigs)||void 0===x||null===(j=x.accountDetailsSlideOver)||void 0===j||null===(M=j.creditCard)||void 0===M?void 0:M.acctDetailsCreditCardAccountStatusLabel)&&qe.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardAccountStatusLabel,le,!1,!1]);var We,Ke,Ze,Qe=[];this.emptyValueCheck(Ce)&&this.emptyValueCheck(null===t||void 0===t||null===(F=t.modernBrandingConfigs)||void 0===F||null===(V=F.accountDetailsSlideOver)||void 0===V||null===(U=V.creditCard)||void 0===U?void 0:U.acctDetailsCreditCardMaturityDateLabel)&&Qe.push([null===t||void 0===t||null===(We=t.modernBrandingConfigs)||void 0===We||null===(Ke=We.accountDetailsSlideOver)||void 0===Ke||null===(Ze=Ke.creditCard)||void 0===Ze?void 0:Ze.acctDetailsCreditCardMaturityDateLabel,Ce,!1,!0]);var Xe=[];if(this.emptyValueCheck(ce)&&this.emptyValueCheck(null===t||void 0===t||null===(H=t.modernBrandingConfigs)||void 0===H||null===(Y=H.accountDetailsSlideOver)||void 0===Y||null===(G=Y.creditCard)||void 0===G?void 0:G.acctDetailsCreditCardInterestRateLabel)){var ze,Je=null!==(ze=t.modernBrandingConfigs.otherConfigs)&&void 0!==ze&&ze.isDecimalThreeDigit?3:2;Xe.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardInterestRateLabel,"".concat(parseFloat(ce).toFixed(Je),"%"),!1,!1])}this.emptyValueCheck(ue)&&this.emptyValueCheck(null===t||void 0===t||null===(q=t.modernBrandingConfigs)||void 0===q||null===(W=q.accountDetailsSlideOver)||void 0===W||null===(K=W.creditCard)||void 0===K?void 0:K.acctDetailsCreditCardInterestYearToDateLabel)&&Xe.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardInterestYearToDateLabel,ue,!0,!1]);var $e=[];return this.emptyValueCheck(de)&&this.emptyValueCheck(null===t||void 0===t||null===(Z=t.modernBrandingConfigs)||void 0===Z||null===(Q=Z.accountDetailsSlideOver)||void 0===Q||null===(X=Q.creditCard)||void 0===X?void 0:X.acctDetailsCreditCardLastStatementBalanceLabel)&&$e.push([t.modernBrandingConfigs.accountDetailsSlideOver.creditCard.acctDetailsCreditCardLastStatementBalanceLabel,de,!0,!1]),{group1:ye,group2:De,group3:Se,group4:Ge,group5:qe,group6:Qe,group7:Xe,group8:$e}}},{key:"buildLoanCreditLineDetail",value:function(e,t,n){var a,i,o,r,s,l,c,u,d,p,h,g,v,f,_,b,C,y,D,S,O,I,L,E,k,T,A,R,N,w,P,B,x,j,M,F,V,U,H,Y,G,q,W,K,Z,Q,X,z,J,$,ee,te,ne,ae,ie,oe,re,se,le,ce,ue,de,pe,me,he,ge,ve=Object(m.a)({},e),fe=ve.displayMemberNumber,_e=ve.displayAccountNumber,be=ve.accountStatus,Ce=ve.accountType,ye=ve.interestRate,De=ve.interestYearToDate,Se=ve.interestPriorYearToDate,Oe=ve.balance,Ie=ve.lastStatementBalance,Le=ve.nickname,Ee=ve.loanInfo,ke=ve.rtn,Te=ve.accountNumber,Ae=ve.availableBalance,Re=Object(m.a)({},Ee),Ne=Re.nextPaymentDate,we=Re.nextPaymentAmount,Pe=Re.currentPrincipalBalance,Be=Re.payoffBy,xe=Re.loanMaturityDate,je=Re.originatedOn,Me=this.isMaskingEnabled(t)?_e:null===Te||void 0===Te?void 0:Te.hostValue,Fe=[];this.emptyValueCheck(fe)&&this.emptyValueCheck(null===t||void 0===t||null===(a=t.modernBrandingConfigs)||void 0===a||null===(i=a.accountDetailsSlideOver)||void 0===i||null===(o=i.loan)||void 0===o||null===(r=o.creditLine)||void 0===r?void 0:r.acctDetailsLoanCreditLineMemberNumberLabel)&&Fe.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineMemberNumberLabel,fe,!1,!1]),this.emptyValueCheck(Me)&&this.emptyValueCheck(null===t||void 0===t||null===(s=t.modernBrandingConfigs)||void 0===s||null===(l=s.accountDetailsSlideOver)||void 0===l||null===(c=l.loan)||void 0===c||null===(u=c.creditLine)||void 0===u?void 0:u.acctDetailsLoanCreditLineDisplayAccountNumberLabel)&&Fe.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineDisplayAccountNumberLabel,Me,!1,!1,!1,!0]),this.emptyValueCheck(ke)&&this.emptyValueCheck(null===t||void 0===t||null===(d=t.modernBrandingConfigs)||void 0===d||null===(p=d.accountDetailsSlideOver)||void 0===p||null===(h=p.loan)||void 0===h||null===(g=h.creditLine)||void 0===g?void 0:g.acctDetailsLoanCreditLineRoutingNumberLabel)&&Fe.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineRoutingNumberLabel,ke,!1,!1,!1,!0]);var Ve=[];this.emptyValueCheck(Oe)&&this.emptyValueCheck(null===t||void 0===t||null===(v=t.modernBrandingConfigs)||void 0===v||null===(f=v.accountDetailsSlideOver)||void 0===f||null===(_=f.loan)||void 0===_||null===(b=_.creditLine)||void 0===b?void 0:b.acctDetailsLoanCreditLineBalanceLabel)&&Ve.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineBalanceLabel,Oe,!0,!1]),this.emptyValueCheck(Ae)&&this.emptyValueCheck(null===t||void 0===t||null===(C=t.modernBrandingConfigs)||void 0===C||null===(y=C.accountDetailsSlideOver)||void 0===y||null===(D=y.loan)||void 0===D||null===(S=D.creditLine)||void 0===S?void 0:S.acctDetailsLoanCreditLineAvailableCreditLabel)&&-1===(null===t||void 0===t||null===(O=t.modernBrandingConfigs)||void 0===O||null===(I=O.otherConfigs)||void 0===I?void 0:I.accountDetailsSuppressAvailBal.indexOf(Ce))&&Ve.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineAvailableCreditLabel,Ae,!0,!1]);var Ue=[];if(this.emptyValueCheck(we)){var He,Ye,Ge,qe,We,Ke,Ze,Qe,Xe,ze=we>0,Je=Wn(Ne);Je&&ze&&this.emptyValueCheck(null===(He=t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine)||void 0===He?void 0:He.acctDetailsLoanCreditLinePastDueAmountLabel)?Ue.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLinePastDueAmountLabel,we,!0,!1,Je]):this.emptyValueCheck(null===t||void 0===t||null===(Ye=t.modernBrandingConfigs)||void 0===Ye||null===(Ge=Ye.accountDetailsSlideOver)||void 0===Ge||null===(qe=Ge.loan)||void 0===qe||null===(We=qe.creditLine)||void 0===We?void 0:We.acctDetailsLoanCreditLineDueAmountLabel)&&Ue.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineDueAmountLabel,we,!0,!1]),this.emptyValueCheck(Ne)&&this.emptyValueCheck(null===t||void 0===t||null===(Ke=t.modernBrandingConfigs)||void 0===Ke||null===(Ze=Ke.accountDetailsSlideOver)||void 0===Ze||null===(Qe=Ze.loan)||void 0===Qe||null===(Xe=Qe.creditLine)||void 0===Xe?void 0:Xe.acctDetailsLoanCreditLineDueDateLabel)&&ze&&Ue.pu
1sh([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineDueDateLabel,Ne,!1,!0])}var $e=[];this.emptyValueCheck(Le)&&this.emptyValueCheck(null===t||void 0===t||null===(L=t.modernBrandingConfigs)||void 0===L||null===(E=L.accountDetailsSlideOver)||void 0===E||null===(k=E.loan)||void 0===k||null===(T=k.creditLine)||void 0===T?void 0:T.acctDetailsLoanCreditLineNicknameLabel)&&$e.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineNicknameLabel,Le,!1,!1]),this.emptyValueCheck(Ce)&&this.emptyValueCheck(null===t||void 0===t||null===(A=t.modernBrandingConfigs)||void 0===A||null===(R=A.accountDetailsSlideOver)||void 0===R||null===(N=R.loan)||void 0===N||null===(w=N.creditLine)||void 0===w?void 0:w.acctDetailsLoanCreditLineAccountTypeLabel)&&$e.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineAccountTypeLabel,e.fiAccountType?e.fiAccountType:n[Ce.toLowerCase()],!1,!1]),this.emptyValueCheck(be)&&this.emptyValueCheck(null===t||void 0===t||null===(P=t.modernBrandingConfigs)||void 0===P||null===(B=P.accountDetailsSlideOver)||void 0===B||null===(x=B.loan)||void 0===x||null===(j=x.creditLine)||void 0===j?void 0:j.acctDetailsLoanCreditLineAccountStatusLabel)&&$e.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineAccountStatusLabel,be,!1,!1]);var et=[];this.emptyValueCheck(je)&&this.emptyValueCheck(null===t||void 0===t||null===(M=t.modernBrandingConfigs)||void 0===M||null===(F=M.accountDetailsSlideOver)||void 0===F||null===(V=F.loan)||void 0===V||null===(U=V.creditLine)||void 0===U?void 0:U.acctDetailsLoanCreditLineOriginationDateLabel)&&et.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineOriginationDateLabel,je,!1,!0]),this.emptyValueCheck(Pe)&&this.emptyValueCheck(null===t||void 0===t||null===(H=t.modernBrandingConfigs)||void 0===H||null===(Y=H.accountDetailsSlideOver)||void 0===Y||null===(G=Y.loan)||void 0===G||null===(q=G.creditLine)||void 0===q?void 0:q.acctDetailsLoanCreditLineCurrentPrincipalBalanceLabel)&&et.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineCurrentPrincipalBalanceLabel,Pe,!0,!1]),this.emptyValueCheck(Be)&&this.emptyValueCheck(null===t||void 0===t||null===(W=t.modernBrandingConfigs)||void 0===W||null===(K=W.accountDetailsSlideOver)||void 0===K||null===(Z=K.loan)||void 0===Z||null===(Q=Z.creditLine)||void 0===Q?void 0:Q.acctDetailsLoanCreditLinePayOffDateLabel)&&et.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLinePayOffDateLabel,Be,!1,!0]),this.emptyValueCheck(xe)&&this.emptyValueCheck(null===t||void 0===t||null===(X=t.modernBrandingConfigs)||void 0===X||null===(z=X.accountDetailsSlideOver)||void 0===z||null===(J=z.loan)||void 0===J||null===($=J.creditLine)||void 0===$?void 0:$.acctDetailsLoanCreditLineMaturityDateLabel)&&et.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineMaturityDateLabel,xe,!1,!0]);var tt=[];if(this.emptyValueCheck(ye)&&this.emptyValueCheck(null===t||void 0===t||null===(ee=t.modernBrandingConfigs)||void 0===ee||null===(te=ee.accountDetailsSlideOver)||void 0===te||null===(ne=te.loan)||void 0===ne||null===(ae=ne.creditLine)||void 0===ae?void 0:ae.acctDetailsLoanCreditLineInterestRateLabel)){var nt,at=null!==(nt=t.modernBrandingConfigs.otherConfigs)&&void 0!==nt&&nt.isDecimalThreeDigit?3:2;tt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineInterestRateLabel,"".concat(parseFloat(ye).toFixed(at),"%"),!1,!1])}this.emptyValueCheck(De)&&this.emptyValueCheck(null===t||void 0===t||null===(ie=t.modernBrandingConfigs)||void 0===ie||null===(oe=ie.accountDetailsSlideOver)||void 0===oe||null===(re=oe.loan)||void 0===re||null===(se=re.creditLine)||void 0===se?void 0:se.acctDetailsLoanCreditLineInterestYearToDateLabel)&&tt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineInterestYearToDateLabel,De,!0,!1]),this.emptyValueCheck(Se)&&this.emptyValueCheck(null===t||void 0===t||null===(le=t.modernBrandingConfigs)||void 0===le||null===(ce=le.accountDetailsSlideOver)||void 0===ce||null===(ue=ce.loan)||void 0===ue||null===(de=ue.creditLine)||void 0===de?void 0:de.acctDetailsLoanCreditLineInterestPriorYearToDateLabel)&&tt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineInterestPriorYearToDateLabel,Se,!0,!1]);var it=[];return this.emptyValueCheck(Ie)&&this.emptyValueCheck(null===t||void 0===t||null===(pe=t.modernBrandingConfigs)||void 0===pe||null===(me=pe.accountDetailsSlideOver)||void 0===me||null===(he=me.loan)||void 0===he||null===(ge=he.creditLine)||void 0===ge?void 0:ge.acctDetailsLoanCreditLineLastStatementBalanceLabel)&&it.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.creditLine.acctDetailsLoanCreditLineLastStatementBalanceLabel,Ie,!0,!1]),{group1:Fe,group2:Ve,group3:Ue,group4:$e,group5:et,group6:tt,group7:it}}},{key:"buildLoanInstallmentLoanDetail",value:function(e,t,n){var a,i,o,r,s,l,c,u,d,p,h,g,v,f,_,b,C,y,D,S,O,I,L,E,k,T,A,R,N,w,P,B,x,j,M,F,V,U,H,Y,G,q,W,K,Z,Q,X,z,J,$,ee,te,ne,ae,ie,oe,re,se,le,ce,ue,de,pe,me,he=Object(m.a)({},e),ge=he.displayMemberNumber,ve=he.displayAccountNumber,fe=he.accountStatus,_e=he.accountType,be=he.interestRate,Ce=he.interestYearToDate,ye=he.interestPriorYearToDate,De=he.balance,Se=he.lastStatementBalance,Oe=he.nickname,Ie=he.loanInfo,Le=he.rtn,Ee=he.accountNumber,ke=Object(m.a)({},Ie),Te=ke.nextPaymentDate,Ae=ke.nextPaymentAmount,Re=ke.currentPrincipalBalance,Ne=ke.payoffAmount,we=ke.payoffBy,Pe=ke.loanMaturityDate,Be=ke.originatedOn,xe=this.isMaskingEnabled(t)?ve:null===Ee||void 0===Ee?void 0:Ee.hostValue,je=[];this.emptyValueCheck(ge)&&this.emptyValueCheck(null===t||void 0===t||null===(a=t.modernBrandingConfigs)||void 0===a||null===(i=a.accountDetailsSlideOver)||void 0===i||null===(o=i.loan)||void 0===o||null===(r=o.installmentLoan)||void 0===r?void 0:r.acctDetailsLoanInstallmentLoanMemberNumberLabel)&&je.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanMemberNumberLabel,ge,!1,!1]),this.emptyValueCheck(xe)&&this.emptyValueCheck(null===t||void 0===t||null===(s=t.modernBrandingConfigs)||void 0===s||null===(l=s.accountDetailsSlideOver)||void 0===l||null===(c=l.loan)||void 0===c||null===(u=c.installmentLoan)||void 0===u?void 0:u.acctDetailsLoanInstallmentLoanDisplayAccountNumberLabel)&&je.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanDisplayAccountNumberLabel,xe,!1,!1,!1,!0]),this.emptyValueCheck(Le)&&this.emptyValueCheck(null===t||void 0===t||null===(d=t.modernBrandingConfigs)||void 0===d||null===(p=d.accountDetailsSlideOver)||void 0===p||null===(h=p.loan)||void 0===h||null===(g=h.installmentLoan)||void 0===g?void 0:g.acctDetailsLoanInstallmentLoanRoutingNumberLabel)&&je.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanRoutingNumberLabel,Le,!1,!1,!1,!0]);var Me=[];this.emptyValueCheck(De)&&this.emptyValueCheck(null===t||void 0===t||null===(v=t.modernBrandingConfigs)||void 0===v||null===(f=v.accountDetailsSlideOver)||void 0===f||null===(_=f.loan)||void 0===_||null===(b=_.installmentLoan)||void 0===b?void 0:b.acctDetailsLoanInstallmentLoanBalanceLabel)&&Me.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanBalanceLabel,De,!0,!1]),this.emptyValueCheck(Ne)&&this.emptyValueCheck(null===t||void 0===t||null===(C=t.modernBrandingConfigs)||void 0===C||null===(y=C.accountDetailsSlideOver)||void 0===y||null===(D=y.loan)||void 0===D||null===(S=D.installmentLoan)||void 0===S?void 0:S.acctDetailsLoanInstallmentLoanPayOffAmountLabel)&&Me.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanPayOffAmountLabel,Ne,!0,!1]);var Fe=[];if(this.emptyValueCheck(Ae)){var Ve,Ue,He,Ye,Ge,qe,We,Ke,Ze,Qe,Xe,ze,Je=Ae>0,$e=Wn(Te);$e&&Je&&this.emptyValueCheck(null===t||void 0===t||null===(Ve=t.modernBrandingConfigs)||void 0===Ve||null===(Ue=Ve.accountDetailsSlideOver)||void 0===Ue||null===(He=Ue.loan)||void 0===He||null===(Ye=He.installmentLoan)||void 0===Ye?void 0:Ye.acctDetailsLoanInstallmentLoanPastDueAmountLabel)?Fe.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanPastDueAmountLabel,Ae,!0,!1,$e]):this.emptyValueCheck(null===t||void 0===t||null===(Ge=t.modernBrandingConfigs)||void 0===Ge||null===(qe=Ge.accountDetailsSlideOver)||void 0===qe||null===(We=qe.loan)||void 0===We||null===(Ke=We.installmentLoan)||void 0===Ke?void 0:Ke.acctDetailsLoanInstallmentLoanDueAmountLabel)&&Fe.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanDueAmountLabel,Ae,!0,!1]),this.emptyValueCheck(Te)&&this.emptyValueCheck(null===t||void 0===t||null===(Ze=t.modernBrandingConfigs)||void 0===Ze||null===(Qe=Ze.accountDetailsSlideOver)||void 0===Qe||null===(Xe=Qe.loan)||void 0===Xe||null===(ze=Xe.installmentLoan)||void 0===ze?void 0:ze.acctDetailsLoanInstallmentLoanDueDateLabel)&&Je&&Fe.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanDueDateLabel,Te,!1,!0])}var et=[];this.emptyValueCheck(Oe)&&this.emptyValueCheck(null===t||void 0===t||null===(O=t.modernBrandingConfigs)||void 0===O||null===(I=O.accountDetailsSlideOver)||void 0===I||null===(L=I.loan)||void 0===L||null===(E=L.installmentLoan)||void 0===E?void 0:E.acctDetailsLoanInstallmentLoanNicknameLabel)&&et.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanNicknameLabel,Oe,!1,!1]),this.emptyValueCheck(_e)&&this.emptyValueCheck(null===t||void 0===t||null===(k=t.modernBrandingConfigs)||void 0===k||null===(T=k.accountDetailsSlideOver)||void 0===T||null===(A=T.loan)||void 0===A||null===(R=A.installmentLoan)||void 0===R?void 0:R.acctDetailsLoanInstallmentLoanAccountTypeLabel)&&et.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanAccountTypeLabel,e.fiAccountType?e.fiAccountType:n[_e.toLowerCase()],!1,!1]),this.emptyValueCheck(fe)&&this.emptyValueCheck(null===t||void 0===t||null===(N=t.modernBrandingConfigs)||void 0===N||null===(w=N.accountDetailsSlideOver)||void 0===w||null===(P=w.loan)||void 0===P||null===(B=P.installmentLoan)||void 0===B?void 0:B.acctDetailsLoanInstallmentLoanAccountStatusLabel)&&et.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanAccountStatusLabel,fe,!1,!1]);var tt=[];this.emptyValueCheck(Be)&&this.emptyValueCheck(null===t||void 0===t||null===(x=t.modernBrandingConfigs)||void 0===x||null===(j=x.accountDetailsSlideOver)||void 0===j||null===(M=j.loan)||void 0===M||null===(F=M.installmentLoan)||void 0===F?void 0:F.acctDetailsLoanInstallmentLoanOriginationDateLabel)&&tt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanOriginationDateLabel,Be,!1,!0]),this.emptyValueCheck(Re)&&this.emptyValueCheck(null===t||void 0===t||null===(V=t.modernBrandingConfigs)||void 0===V||null===(U=V.accountDetailsSlideOver)||void 0===U||null===(H=U.loan)||void 0===H||null===(Y=H.installmentLoan)||void 0===Y?void 0:Y.acctDetailsLoanInstallmentLoanCurrentPrincipalBalanceLabel)&&tt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanCurrentPrincipalBalanceLabel,Re,!0,!1]),this.emptyValueCheck(we)&&this.emptyValueCheck(null===t||void 0===t||null===(G=t.modernBrandingConfigs)||void 0===G||null===(q=G.accountDetailsSlideOver)||void 0===q||null===(W=q.loan)||void 0===W||null===(K=W.installmentLoan)||void 0===K?void 0:K.acctDetailsLoanInstallmentLoanPayOffDateLabel)&&tt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanPayOffDateLabel,we,!1,!0]),this.emptyValueCheck(Pe)&&this.emptyValueCheck(null===t||void 0===t||null===(Z=t.modernBrandingConfigs)||void 0===Z||null===(Q=Z.accountDetailsSlideOver)||void 0===Q||null===(X=Q.loan)||void 0===X||null===(z=X.installmentLoan)||void 0===z?void 0:z.acctDetailsLoanInstallmentLoanMaturityDateLabel)&&tt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanMaturityDateLabel,Pe,!1,!0]);var nt=[];if(this.emptyValueCheck(be)&&this.emptyValueCheck(null===t||void 0===t||null===(J=t.modernBrandingConfigs)||void 0===J||null===($=J.accountDetailsSlideOver)||void 0===$||null===(ee=$.loan)||void 0===ee||null===(te=ee.installmentLoan)||void 0===te?void 0:te.acctDetailsLoanInstallmentLoanInterestRateLabel)){var at,it=null!==(at=t.modernBrandingConfigs.otherConfigs)&&void 0!==at&&at.isDecimalThreeDigit?3:2;nt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanInterestRateLabel,"".concat(parseFloat(be).toFixed(it),"%"),!1,!1])}this.emptyValueCheck(Ce)&&this.emptyValueCheck(null===t||void 0===t||null===(ne=t.modernBrandingConfigs)||void 0===ne||null===(ae=ne.accountDetailsSlideOver)||void 0===ae||null===(ie=ae.loan)||void 0===ie||null===(oe=ie.installmentLoan)||void 0===oe?void 0:oe.acctDetailsLoanInstallmentLoanInterestYearToDateLabel)&&nt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanInterestYearToDateLabel,Ce,!0,!1]),this.emptyValueCheck(ye)&&this.emptyValueCheck(null===t||void 0===t||null===(re=t.modernBrandingConfigs)||void 0===re||null===(se=re.accountDetailsSlideOver)||void 0===se||null===(le=se.loan)||void 0===le||null===(ce=le.installmentLoan)||void 0===ce?void 0:ce.acctDetailsLoanInstallmentLoanInterestPriorYearToDateLabel)&&nt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanInterestPriorYearToDateLabel,ye,!0,!1]);var ot=[];return this.emptyValueCheck(Se)&&this.emptyValueCheck(null===t||void 0===t||null===(ue=t.modernBrandingConfigs)||void 0===ue||null===(de=ue.accountDetailsSlideOver)||void 0===de||null===(pe=de.loan)||void 0===pe||null===(me=pe.installmentLoan)||void 0===me?void 0:me.acctDetailsLoanInstallmentLoanLastStatementBalanceLabel)&&ot.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.installmentLoan.acctDetailsLoanInstallmentLoanLastStatementBalanceLabel,Se,!0,!1]),{group1:je,group2:Me,group3:Fe,group4:et,group5:tt,group6:nt,group7:ot}}},{key:"buildLoanMortgageLoanDetail",value:function(e,t,n){var a,i,o,r,s,l,c,u,d,p,h,g,v,f,_,b,C,y,D,S,O,I,L,E,k,T,A,R,N,w,P,B,x,j,M,F,V,U,H,Y,G,q,W,K,Z,Q,X,z,J,$,ee,te,ne,ae,ie,oe,re,se,le,ce,ue,de,pe,me,he=Object(m.a)({},e),ge=he.displayMemberNumber,ve=he.displayAccountNumber,fe=he.accountStatus,_e=he.accountType,be=he.interestRate,Ce=he.interestYearToDate,ye=he.interestPriorYearToDate,De=he.balance,Se=he.lastStatementBalance,Oe=he.nickname,Ie=he.loanInfo,Le=he.rtn,Ee=he.accountNumber,ke=Object(m.a)({},Ie),Te=ke.nextPaymentDate,Ae=ke.nextPaymentAmount,Re=ke.currentPrincipalBalance,Ne=ke.payoffAmount,we=ke.payoffBy,Pe=ke.loanMaturityDate,Be=ke.originatedOn,xe=this.isMaskingEnabled(t)?ve:null===Ee||void 0===Ee?void 0:Ee.hostValue,je=[];this.emptyValueCheck(ge)&&this.emptyValueCheck(null===t||void 0===t||null===(a=t.modernBrandingConfigs)||void 0===a||null===(i=a.accountDetailsSlideOver)||void 0===i||null===(o=i.loan)||void 0===o||null===(r=o.mortgageLoan)||void 0===r?void 0:r.acctDetailsLoanMortgageLoanMemberNumberLabel)&&je.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanMemberNumberLabel,ge,!1,!1]),this.emptyValueCheck(xe)&&this.emptyValueCheck(null===t||void 0===t||null===(s=t.modernBrandingConfigs)||void 0===s||null===(l=s.accountDetailsSlideOver)||void 0===l||null===(c=l.loan)||void 0===c||null===(u=c.mortgageLoan)||void 0===u?void 0:u.acctDetailsLoanMortgageLoanDisplayAccountNumberLabel)&&je.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanDisplayAccountNumberLabel,xe,!1,!1,!1,!0]),this.emptyValueCheck(Le)&&this.emptyValueCheck(null===t||void 0===t||null===(d=t.modernBrandingConfigs)||void 0===d||null
1===(p=d.accountDetailsSlideOver)||void 0===p||null===(h=p.loan)||void 0===h||null===(g=h.mortgageLoan)||void 0===g?void 0:g.acctDetailsLoanMortgageLoanRoutingNumberLabel)&&je.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanRoutingNumberLabel,Le,!1,!1,!1,!0]);var Me=[];this.emptyValueCheck(De)&&this.emptyValueCheck(null===t||void 0===t||null===(v=t.modernBrandingConfigs)||void 0===v||null===(f=v.accountDetailsSlideOver)||void 0===f||null===(_=f.loan)||void 0===_||null===(b=_.mortgageLoan)||void 0===b?void 0:b.acctDetailsLoanMortgageLoanBalanceLabel)&&Me.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanBalanceLabel,De,!0,!1]),this.emptyValueCheck(Ne)&&this.emptyValueCheck(null===t||void 0===t||null===(C=t.modernBrandingConfigs)||void 0===C||null===(y=C.accountDetailsSlideOver)||void 0===y||null===(D=y.loan)||void 0===D||null===(S=D.mortgageLoan)||void 0===S?void 0:S.acctDetailsLoanMortgageLoanPayOffAmountLabel)&&Me.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanPayOffAmountLabel,Ne,!0,!1]);var Fe=[];if(this.emptyValueCheck(Ae)){var Ve,Ue,He,Ye,Ge,qe,We,Ke,Ze,Qe,Xe,ze,Je=Wn(Te);Je&&Ae>0&&this.emptyValueCheck(null===t||void 0===t||null===(Ve=t.modernBrandingConfigs)||void 0===Ve||null===(Ue=Ve.accountDetailsSlideOver)||void 0===Ue||null===(He=Ue.loan)||void 0===He||null===(Ye=He.mortgageLoan)||void 0===Ye?void 0:Ye.acctDetailsLoanMortgageLoanPastDueAmountLabel)?Fe.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanPastDueAmountLabel,Ae,!0,!1,Je]):this.emptyValueCheck(null===t||void 0===t||null===(Ge=t.modernBrandingConfigs)||void 0===Ge||null===(qe=Ge.accountDetailsSlideOver)||void 0===qe||null===(We=qe.loan)||void 0===We||null===(Ke=We.mortgageLoan)||void 0===Ke?void 0:Ke.acctDetailsLoanMortgageLoanDueAmountLabel)&&Fe.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanDueAmountLabel,Ae,!0,!1]),this.emptyValueCheck(Te)&&this.emptyValueCheck(null===t||void 0===t||null===(Ze=t.modernBrandingConfigs)||void 0===Ze||null===(Qe=Ze.accountDetailsSlideOver)||void 0===Qe||null===(Xe=Qe.loan)||void 0===Xe||null===(ze=Xe.mortgageLoan)||void 0===ze?void 0:ze.acctDetailsLoanMortgageLoanDueDateLabel)&&Fe.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanDueDateLabel,Te,!1,!0])}var $e=[];this.emptyValueCheck(Oe)&&this.emptyValueCheck(null===t||void 0===t||null===(O=t.modernBrandingConfigs)||void 0===O||null===(I=O.accountDetailsSlideOver)||void 0===I||null===(L=I.loan)||void 0===L||null===(E=L.mortgageLoan)||void 0===E?void 0:E.acctDetailsLoanMortgageLoanNicknameLabel)&&$e.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanNicknameLabel,Oe,!1,!1]),this.emptyValueCheck(_e)&&this.emptyValueCheck(null===t||void 0===t||null===(k=t.modernBrandingConfigs)||void 0===k||null===(T=k.accountDetailsSlideOver)||void 0===T||null===(A=T.loan)||void 0===A||null===(R=A.mortgageLoan)||void 0===R?void 0:R.acctDetailsLoanMortgageLoanAccountTypeLabel)&&$e.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanAccountTypeLabel,e.fiAccountType?e.fiAccountType:n[_e.toLowerCase()],!1,!1]),this.emptyValueCheck(fe)&&this.emptyValueCheck(null===t||void 0===t||null===(N=t.modernBrandingConfigs)||void 0===N||null===(w=N.accountDetailsSlideOver)||void 0===w||null===(P=w.loan)||void 0===P||null===(B=P.mortgageLoan)||void 0===B?void 0:B.acctDetailsLoanMortgageLoanAccountStatusLabel)&&$e.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanAccountStatusLabel,fe,!1,!1]);var et=[];this.emptyValueCheck(Be)&&this.emptyValueCheck(null===t||void 0===t||null===(x=t.modernBrandingConfigs)||void 0===x||null===(j=x.accountDetailsSlideOver)||void 0===j||null===(M=j.loan)||void 0===M||null===(F=M.mortgageLoan)||void 0===F?void 0:F.acctDetailsLoanMortgageLoanOriginationDateLabel)&&et.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanOriginationDateLabel,Be,!1,!0]),this.emptyValueCheck(Re)&&this.emptyValueCheck(null===t||void 0===t||null===(V=t.modernBrandingConfigs)||void 0===V||null===(U=V.accountDetailsSlideOver)||void 0===U||null===(H=U.loan)||void 0===H||null===(Y=H.mortgageLoan)||void 0===Y?void 0:Y.acctDetailsLoanMortgageLoanCurrentPrincipalBalanceLabel)&&et.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanCurrentPrincipalBalanceLabel,Re,!0,!1]),this.emptyValueCheck(we)&&this.emptyValueCheck(null===t||void 0===t||null===(G=t.modernBrandingConfigs)||void 0===G||null===(q=G.accountDetailsSlideOver)||void 0===q||null===(W=q.loan)||void 0===W||null===(K=W.mortgageLoan)||void 0===K?void 0:K.acctDetailsLoanMortgageLoanPayOffDateLabel)&&et.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanPayOffDateLabel,we,!1,!0]),this.emptyValueCheck(Pe)&&this.emptyValueCheck(null===t||void 0===t||null===(Z=t.modernBrandingConfigs)||void 0===Z||null===(Q=Z.accountDetailsSlideOver)||void 0===Q||null===(X=Q.loan)||void 0===X||null===(z=X.mortgageLoan)||void 0===z?void 0:z.acctDetailsLoanMortgageLoanMaturityDateLabel)&&et.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanMaturityDateLabel,Pe,!1,!0]);var tt=[];if(this.emptyValueCheck(be)&&this.emptyValueCheck(null===t||void 0===t||null===(J=t.modernBrandingConfigs)||void 0===J||null===($=J.accountDetailsSlideOver)||void 0===$||null===(ee=$.loan)||void 0===ee||null===(te=ee.mortgageLoan)||void 0===te?void 0:te.acctDetailsLoanMortgageLoanInterestRateLabel)){var nt,at=null!==(nt=t.modernBrandingConfigs.otherConfigs)&&void 0!==nt&&nt.isDecimalThreeDigit?3:2;tt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanInterestRateLabel,"".concat(parseFloat(be).toFixed(at),"%"),!1,!1])}this.emptyValueCheck(Ce)&&this.emptyValueCheck(null===t||void 0===t||null===(ne=t.modernBrandingConfigs)||void 0===ne||null===(ae=ne.accountDetailsSlideOver)||void 0===ae||null===(ie=ae.loan)||void 0===ie||null===(oe=ie.mortgageLoan)||void 0===oe?void 0:oe.acctDetailsLoanMortgageLoanInterestYearToDateLabel)&&tt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanInterestYearToDateLabel,Ce,!0,!1]),this.emptyValueCheck(ye)&&this.emptyValueCheck(null===t||void 0===t||null===(re=t.modernBrandingConfigs)||void 0===re||null===(se=re.accountDetailsSlideOver)||void 0===se||null===(le=se.loan)||void 0===le||null===(ce=le.mortgageLoan)||void 0===ce?void 0:ce.acctDetailsLoanMortgageLoanInterestPriorYearToDateLabel)&&tt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanInterestPriorYearToDateLabel,ye,!0,!1]);var it=[];return this.emptyValueCheck(Se)&&this.emptyValueCheck(null===t||void 0===t||null===(ue=t.modernBrandingConfigs)||void 0===ue||null===(de=ue.accountDetailsSlideOver)||void 0===de||null===(pe=de.loan)||void 0===pe||null===(me=pe.mortgageLoan)||void 0===me?void 0:me.acctDetailsLoanMortgageLoanLastStatementBalanceLabel)&&it.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.mortgageLoan.acctDetailsLoanMortgageLoanLastStatementBalanceLabel,Se,!0,!1]),{group1:je,group2:Me,group3:Fe,group4:$e,group5:et,group6:tt,group7:it}}},{key:"buildOtherLoanDetail",value:function(e,t,n){var a,i,o,r,s,l,c,u,d,p,h,g,v,f,_,b,C,y,D,S,O,I,L,E,k,T,A,R,N,w,P,B,x,j,M,F,V,U,H,Y,G,q,W,K,Z,Q,X,z,J,$,ee,te,ne,ae,ie,oe,re,se,le,ce,ue,de,pe,me,he,ge,ve,fe,_e=Object(m.a)({},e),be=_e.displayMemberNumber,Ce=_e.displayAccountNumber,ye=_e.accountStatus,De=_e.accountType,Se=_e.interestRate,Oe=_e.interestYearToDate,Ie=_e.interestPriorYearToDate,Le=_e.balance,Ee=_e.lastStatementBalance,ke=_e.nickname,Te=_e.loanInfo,Ae=_e.rtn,Re=_e.accountNumber,Ne=_e.availableBalance,we=Object(m.a)({},Te),Pe=we.nextPaymentDate,Be=we.nextPaymentAmount,xe=we.currentPrincipalBalance,je=we.payoffAmount,Me=we.payoffBy,Fe=we.loanMaturityDate,Ve=we.originatedOn,Ue=this.isMaskingEnabled(t)?Ce:null===Re||void 0===Re?void 0:Re.hostValue,He=[];this.emptyValueCheck(be)&&this.emptyValueCheck(null===t||void 0===t||null===(a=t.modernBrandingConfigs)||void 0===a||null===(i=a.accountDetailsSlideOver)||void 0===i||null===(o=i.loan)||void 0===o||null===(r=o.otherLoans)||void 0===r?void 0:r.acctDetailsLoanOtherLoansMemberNumberLabel)&&He.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansMemberNumberLabel,be,!1,!1]),this.emptyValueCheck(Ue)&&this.emptyValueCheck(null===t||void 0===t||null===(s=t.modernBrandingConfigs)||void 0===s||null===(l=s.accountDetailsSlideOver)||void 0===l||null===(c=l.loan)||void 0===c||null===(u=c.otherLoans)||void 0===u?void 0:u.acctDetailsLoanOtherLoansDisplayAccountNumberLabel)&&He.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansDisplayAccountNumberLabel,Ue,!1,!1,!1,!0]),this.emptyValueCheck(Ae)&&this.emptyValueCheck(null===t||void 0===t||null===(d=t.modernBrandingConfigs)||void 0===d||null===(p=d.accountDetailsSlideOver)||void 0===p||null===(h=p.loan)||void 0===h||null===(g=h.otherLoans)||void 0===g?void 0:g.acctDetailsLoanOtherLoansRoutingNumberLabel)&&He.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansRoutingNumberLabel,Ae,!1,!1,!1,!0]);var Ye=[];this.emptyValueCheck(Le)&&this.emptyValueCheck(null===t||void 0===t||null===(v=t.modernBrandingConfigs)||void 0===v||null===(f=v.accountDetailsSlideOver)||void 0===f||null===(_=f.loan)||void 0===_||null===(b=_.otherLoans)||void 0===b?void 0:b.acctDetailsLoanOtherLoansBalanceLabel)&&Ye.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansBalanceLabel,Le,!0,!1]),this.emptyValueCheck(Ne)&&this.emptyValueCheck(null===t||void 0===t||null===(C=t.modernBrandingConfigs)||void 0===C||null===(y=C.accountDetailsSlideOver)||void 0===y||null===(D=y.loan)||void 0===D||null===(S=D.otherLoans)||void 0===S?void 0:S.acctDetailsLoanOtherLoansAvailableCreditLabel)&&Ye.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansAvailableCreditLabel,Ne,!0,!1]);var Ge=[];if(this.emptyValueCheck(Be)){var qe,We,Ke,Ze,Qe,Xe,ze,Je,$e,et,tt,nt,at=Be>0,it=Wn(Pe);
1it&&at&&this.emptyValueCheck(null===t||void 0===t||null===(qe=t.modernBrandingConfigs)||void 0===qe||null===(We=qe.accountDetailsSlideOver)||void 0===We||null===(Ke=We.loan)||void 0===Ke||null===(Ze=Ke.otherLoans)||void 0===Ze?void 0:Ze.acctDetailsLoanOtherLoansPastDueAmountLabel)?Ge.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansPastDueAmountLabel,Be,!0,!1,it]):this.emptyValueCheck(null===t||void 0===t||null===(Qe=t.modernBrandingConfigs)||void 0===Qe||null===(Xe=Qe.accountDetailsSlideOver)||void 0===Xe||null===(ze=Xe.loan)||void 0===ze||null===(Je=ze.otherLoans)||void 0===Je?void 0:Je.acctDetailsLoanOtherLoansDueAmountLabel)&&Ge.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansDueAmountLabel,Be,!0,!1]),this.emptyValueCheck(Pe)&&this.emptyValueCheck(null===t||void 0===t||null===($e=t.modernBrandingConfigs)||void 0===$e||null===(et=$e.accountDetailsSlideOver)||void 0===et||null===(tt=et.loan)||void 0===tt||null===(nt=tt.otherLoans)||void 0===nt?void 0:nt.acctDetailsLoanOtherLoansDueDateLabel)&&at&&Ge.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansDueDateLabel,Pe,!1,!0])}var ot=[];this.emptyValueCheck(je)&&this.emptyValueCheck(null===t||void 0===t||null===(O=t.modernBrandingConfigs)||void 0===O||null===(I=O.accountDetailsSlideOver)||void 0===I||null===(L=I.loan)||void 0===L||null===(E=L.otherLoans)||void 0===E?void 0:E.acctDetailsLoanOtherLoansPayOffAmountLabel)&&ot.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansPayOffAmountLabel,je,!0,!1]);var rt=[];this.emptyValueCheck(ke)&&this.emptyValueCheck(null===t||void 0===t||null===(k=t.modernBrandingConfigs)||void 0===k||null===(T=k.accountDetailsSlideOver)||void 0===T||null===(A=T.loan)||void 0===A||null===(R=A.otherLoans)||void 0===R?void 0:R.acctDetailsLoanOtherLoansNicknameLabel)&&rt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansNicknameLabel,ke,!1,!1]),this.emptyValueCheck(De)&&this.emptyValueCheck(null===t||void 0===t||null===(N=t.modernBrandingConfigs)||void 0===N||null===(w=N.accountDetailsSlideOver)||void 0===w||null===(P=w.loan)||void 0===P||null===(B=P.otherLoans)||void 0===B?void 0:B.acctDetailsLoanOtherLoansAccountTypeLabel)&&rt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansAccountTypeLabel,e.fiAccountType?e.fiAccountType:n[De.toLowerCase()],!1,!1]),this.emptyValueCheck(ye)&&this.emptyValueCheck(null===t||void 0===t||null===(x=t.modernBrandingConfigs)||void 0===x||null===(j=x.accountDetailsSlideOver)||void 0===j||null===(M=j.loan)||void 0===M||null===(F=M.otherLoans)||void 0===F?void 0:F.acctDetailsLoanOtherLoansAccountStatusLabel)&&rt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansAccountStatusLabel,ye,!1,!1]);var st=[];this.emptyValueCheck(Ve)&&this.emptyValueCheck(null===t||void 0===t||null===(V=t.modernBrandingConfigs)||void 0===V||null===(U=V.accountDetailsSlideOver)||void 0===U||null===(H=U.loan)||void 0===H||null===(Y=H.otherLoans)||void 0===Y?void 0:Y.acctDetailsLoanOtherLoansOriginationDateLabel)&&st.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansOriginationDateLabel,Ve,!1,!0]),this.emptyValueCheck(xe)&&this.emptyValueCheck(null===t||void 0===t||null===(G=t.modernBrandingConfigs)||void 0===G||null===(q=G.accountDetailsSlideOver)||void 0===q||null===(W=q.loan)||void 0===W||null===(K=W.otherLoans)||void 0===K?void 0:K.acctDetailsLoanOtherLoansCurrentPrincipalBalanceLabel)&&st.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansCurrentPrincipalBalanceLabel,xe,!0,!1]),this.emptyValueCheck(Me)&&this.emptyValueCheck(null===t||void 0===t||null===(Z=t.modernBrandingConfigs)||void 0===Z||null===(Q=Z.accountDetailsSlideOver)||void 0===Q||null===(X=Q.loan)||void 0===X||null===(z=X.otherLoans)||void 0===z?void 0:z.acctDetailsLoanOtherLoansPayOffDateLabel)&&st.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansPayOffDateLabel,Me,!1,!0]),this.emptyValueCheck(Fe)&&this.emptyValueCheck(null===t||void 0===t||null===(J=t.modernBrandingConfigs)||void 0===J||null===($=J.accountDetailsSlideOver)||void 0===$||null===(ee=$.loan)||void 0===ee||null===(te=ee.otherLoans)||void 0===te?void 0:te.acctDetailsLoanOtherLoansMaturityDateLabel)&&st.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansMaturityDateLabel,Fe,!1,!0]);var lt=[];if(this.emptyValueCheck(Se)&&this.emptyValueCheck(null===t||void 0===t||null===(ne=t.modernBrandingConfigs)||void 0===ne||null===(ae=ne.accountDetailsSlideOver)||void 0===ae||null===(ie=ae.loan)||void 0===ie||null===(oe=ie.otherLoans)||void 0===oe?void 0:oe.acctDetailsLoanOtherLoansInterestRateLabel)){var ct,ut=null!==(ct=t.modernBrandingConfigs.otherConfigs)&&void 0!==ct&&ct.isDecimalThreeDigit?3:2;lt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansInterestRateLabel,"".concat(parseFloat(Se).toFixed(ut),"%"),!1,!1])}this.emptyValueCheck(Oe)&&this.emptyValueCheck(null===t||void 0===t||null===(re=t.modernBrandingConfigs)||void 0===re||null===(se=re.accountDetailsSlideOver)||void 0===se||null===(le=se.loan)||void 0===le||null===(ce=le.otherLoans)||void 0===ce?void 0:ce.acctDetailsLoanOtherLoansInterestYearToDateLabel)&<.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansInterestYearToDateLabel,Oe,!0,!1]),this.emptyValueCheck(Ie)&&this.emptyValueCheck(null===t||void 0===t||null===(ue=t.modernBrandingConfigs)||void 0===ue||null===(de=ue.accountDetailsSlideOver)||void 0===de||null===(pe=de.loan)||void 0===pe||null===(me=pe.otherLoans)||void 0===me?void 0:me.acctDetailsLoanOtherLoansInterestPriorYearToDateLabel)&<.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansInterestPriorYearToDateLabel,Ie,!0,!1]);var dt=[];return this.emptyValueCheck(Ee)&&this.emptyValueCheck(null===t||void 0===t||null===(he=t.modernBrandingConfigs)||void 0===he||null===(ge=he.accountDetailsSlideOver)||void 0===ge||null===(ve=ge.loan)||void 0===ve||null===(fe=ve.otherLoans)||void 0===fe?void 0:fe.acctDetailsLoanOtherLoansLastStatementBalanceLabel)&&dt.push([t.modernBrandingConfigs.accountDetailsSlideOver.loan.otherLoans.acctDetailsLoanOtherLoansLastStatementBalanceLabel,Ee,!0,!1]),{group1:He,group2:Ye,group3:Ge,group4:ot,group5:rt,group6:st,group7:lt,group8:dt}}},{key:"buildGeneralLedgerAccountDetail",value:function(e,t,n){var a=Object(m.a)({},e),i=a.displayAccountNumber,o=a.accountStatus,r=a.accountType,s=a.availableBalance,l=a.balance,c=a.lastStatementBalance,u=a.nickname,d=a.rtn,p=[];p.push([n.accounts_details_availableBalance,s,!0,!1]),p.push([n.accounts_balanceLabelText,l,!0,!1]),p.push([n.accounts_details_lastStatementBalance,c,!0]);var h=[];
1h.push(["Account Number",i,!1,!1,!1,!0]),h.push([n.accounts_details_accountStatus,o,!1]),h.push(["Description",e.fiAccountType?e.fiAccountType:n[r.toLowerCase()],!1,!1]);var g=[];return g.push([n.account_preferences_nickname_label,u,!1]),g.push([n.accounts_details_routingNumber,d,!1,!1,!1,!0]),{group1:p,group2:h,group3:g}}},{key:"buildInvestmentIRADetail",value:function(e,t,n){var a,i,o,r,s,l,c,u,d,p,h,g,v,f,_,b,C,y,D,S,O,I,L,E,k,T,A,R,N,w,P,B,x,j,M,F,V,U,H,Y,G,q,W,K,Z,Q,X,z,J,$,ee,te,ne,ae,ie,oe,re,se,le,ce,ue,de,pe=Object(m.a)({},e),me=pe.displayMemberNumber,he=pe.displayAccountNumber,ge=pe.accountStatus,ve=pe.accountType,fe=pe.interestRate,_e=pe.interestYearToDate,be=pe.interestPriorYearToDate,Ce=pe.availableBalance,ye=pe.balance,De=pe.lastStatementCycleDate,Se=pe.maturityDate,Oe=pe.nickname,Ie=pe.rtn,Le=pe.accountNumber,Ee=pe.accruedInterest,ke=pe.annualPercentageYield,Te=this.isMaskingEnabled(t)?he:null===Le||void 0===Le?void 0:Le.hostValue,Ae=[];this.emptyValueCheck(me)&&this.emptyValueCheck(null===t||void 0===t||null===(a=t.modernBrandingConfigs)||void 0===a||null===(i=a.accountDetailsSlideOver)||void 0===i||null===(o=i.investment)||void 0===o||null===(r=o.accountTiesToIRA)||void 0===r?void 0:r.acctDetailsInvestmentAcctTiesToIRAMemberNumberLabel)&&Ae.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRAMemberNumberLabel,me,!1,!1]),this.emptyValueCheck(Te)&&this.emptyValueCheck(null===t||void 0===t||null===(s=t.modernBrandingConfigs)||void 0===s||null===(l=s.accountDetailsSlideOver)||void 0===l||null===(c=l.investment)||void 0===c||null===(u=c.accountTiesToIRA)||void 0===u?void 0:u.acctDetailsInvestmentAcctTiesToIRADisplayAccountNumberLabel)&&Ae.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRADisplayAccountNumberLabel,Te,!1,!1,!1,!0]),this.emptyValueCheck(Ie)&&this.emptyValueCheck(null===t||void 0===t||null===(d=t.modernBrandingConfigs)||void 0===d||null===(p=d.accountDetailsSlideOver)||void 0===p||null===(h=p.investment)||void 0===h||null===(g=h.accountTiesToIRA)||void 0===g?void 0:g.acctDetailsInvestmentAcctTiesToIRARoutingNumberLabel)&&Ae.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRARoutingNumberLabel,Ie,!1,!1,!1,!0]);var Re=[];this.emptyValueCheck(Ce)&&this.emptyValueCheck(null===t||void 0===t||null===(v=t.modernBrandingConfigs)||void 0===v||null===(f=v.accountDetailsSlideOver)||void 0===f||null===(_=f.investment)||void 0===_||null===(b=_.accountTiesToIRA)||void 0===b?void 0:b.acctDetailsInvestmentAcctTiesToIRAAvailableBalanceLabel)&&-1===(null===t||void 0===t||null===(C=t.modernBrandingConfigs)||void 0===C||null===(y=C.otherConfigs)||void 0===y?void 0:y.accountDetailsSuppressAvailBal.indexOf(ve))&&Re.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRAAvailableBalanceLabel,Ce,!0,!1]),this.emptyValueCheck(ye)&&this.emptyValueCheck(null===t||void 0===t||null===(D=t.modernBrandingConfigs)||void 0===D||null===(S=D.accountDetailsSlideOver)||void 0===S||null===(O=S.investment)||void 0===O||null===(I=O.accountTiesToIRA)||void 0===I?void 0:I.acctDetailsInvestmentAcctTiesToIRABalanceLabel)&&Re.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRABalanceLabel,ye,!0,!1]);var Ne=[];this.emptyValueCheck(Oe)&&this.emptyValueCheck(null===t||void 0===t||null===(L=t.modernBrandingConfigs)||void 0===L||null===(E=L.accountDetailsSlideOver)||void 0===E||null===(k=E.investment)||void 0===k||null===(T=k.accountTiesToIRA)||void 0===T?void 0:T.acctDetailsInvestmentAcctTiesToIRANicknameLabel)&&Ne.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRANicknameLabel,Oe,!1,!1]),this.emptyValueCheck(ve)&&this.emptyValueCheck(null===t||void 0===t||null===(A=t.modernBrandingConfigs)||void 0===A||null===(R=A.accountDetailsSlideOver)||void 0===R||null===(N=R.investment)||void 0===N||null===(w=N.accountTiesToIRA)||void 0===w?void 0:w.acctDetailsInvestmentAcctTiesToIRAAccountTypeLabel)&&Ne.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRAAccountTypeLabel,e.fiAccountType?e.fiAccountType:n[ve.toLowerCase()],!1,!1]),this.emptyValueCheck(ge)&&this.emptyValueCheck(null===t||void 0===t||null===(P=t.modernBrandingConfigs)||void 0===P||null===(B=P.accountDetailsSlideOver)||void 0===B||null===(x=B.investment)||void 0===x||null===(j=x.accountTiesToIRA)||void 0===j?void 0:j.acctDetailsInvestmentAcctTiesToIRAAccountStatusLabel)&&Ne.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRAAccountStatusLabel,ge,!1,!1]);var we=[];this.emptyValueCheck(Se)&&this.emptyValueCheck(null===t||void 0===t||null===(M=t.modernBrandingConfigs)||void 0===M||null===(F=M.accountDetailsSlideOver)||void 0===F||null===(V=F.investment)||void 0===V||null===(U=V.accountTiesToIRA)||void 0===U?void 0:U.acctDetailsInvestmentAcctTiesToIRAMaturityDateLabel)&&we.pu
1sh([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRAMaturityDateLabel,Se,!1,!0]);var Pe=[];if(this.emptyValueCheck(ke)&&this.emptyValueCheck(null===t||void 0===t||null===(H=t.modernBrandingConfigs)||void 0===H||null===(Y=H.accountDetailsSlideOver)||void 0===Y||null===(G=Y.investment)||void 0===G||null===(q=G.accountTiesToIRA)||void 0===q?void 0:q.acctDetailsInvestmentAcctTiesToIRAAnnualPercentageYieldLabel)){var Be,xe=null!==(Be=t.modernBrandingConfigs.otherConfigs)&&void 0!==Be&&Be.isDecimalThreeDigit?3:2;Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRAAnnualPercentageYieldLabel,"".concat(parseFloat(ke).toFixed(xe),"%"),!1,!1])}if(this.emptyValueCheck(Ee)&&this.emptyValueCheck(null===t||void 0===t||null===(W=t.modernBrandingConfigs)||void 0===W||null===(K=W.accountDetailsSlideOver)||void 0===K||null===(Z=K.investment)||void 0===Z||null===(Q=Z.accountTiesToIRA)||void 0===Q?void 0:Q.acctDetailsInvestmentAcctTiesToIRAAccruedInterestLabel)&&Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRAAccruedInterestLabel,Ee,!0,!1]),this.emptyValueCheck(fe)&&this.emptyValueCheck(null===t||void 0===t||null===(X=t.modernBrandingConfigs)||void 0===X||null===(z=X.accountDetailsSlideOver)||void 0===z||null===(J=z.investment)||void 0===J||null===($=J.accountTiesToIRA)||void 0===$?void 0:$.acctDetailsInvestmentAcctTiesToIRAInterestRateLabel)){var je,Me=null!==(je=t.modernBrandingConfigs.otherConfigs)&&void 0!==je&&je.isDecimalThreeDigit?3:2;Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRAInterestRateLabel,"".concat(parseFloat(fe).toFixed(Me),"%"),!1,!1])}this.emptyValueCheck(_e)&&this.emptyValueCheck(null===t||void 0===t||null===(ee=t.modernBrandingConfigs)||void 0===ee||null===(te=ee.accountDetailsSlideOver)||void 0===te||null===(ne=te.investment)||void 0===ne||null===(ae=ne.accountTiesToIRA)||void 0===ae?void 0:ae.acctDetailsInvestmentAcctTiesToIRAInterestYearToDateLabel)&&Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRAInterestYearToDateLabel,_e,!0,!1]),this.emptyValueCheck(be)&&this.emptyValueCheck(null===t||void 0===t||null===(ie=t.modernBrandingConfigs)||void 0===ie||null===(oe=ie.accountDetailsSlideOver)||void 0===oe||null===(re=oe.investment)||void 0===re||null===(se=re.accountTiesToIRA)||void 0===se?void 0:se.acctDetailsInvestmentAcctTiesToIRAInterestPriorYearToDateLabel)&&Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRAInterestPriorYearToDateLabel,be,!0,!1]);var Fe=[];return this.emptyValueCheck(De)&&this.emptyValueCheck(null===t||void 0===t||null===(le=t.modernBrandingConfigs)||void 0===le||null===(ce=le.accountDetailsSlideOver)||void 0===ce||null===(ue=ce.investment)||void 0===ue||null===(de=ue.accountTiesToIRA)||void 0===de?void 0:de.acctDetailsInvestmentAcctTiesToIRALastStatementCycleDateLabel)&&Fe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.accountTiesToIRA.acctDetailsInvestmentAcctTiesToIRALastStatementCycleDateLabel,De,!1,!0]),{group1:Ae,group2:Re,group3:Ne,group4:we,group5:Pe,group6:Fe}}},{key:"buildInvestmentKeoghDetail",value:function(e,t,n){var a,i,o,r,s,l,c,u,d,p,h,g,v,f,_,b,C,y,D,S,O,I,L,E,k,T,A,R,N,w,P,B,x,j,M,F,V,U,H,Y,G,q,W,K,Z,Q,X,z,J,$,ee,te,ne,ae,ie,oe,re,se,le,ce,ue,de,pe=Object(m.a)({},e),me=pe.displayMemberNumber,he=pe.displayAccountNumber,ge=pe.accountStatus,ve=pe.accountType,fe=pe.interestRate,_e=pe.interestYearToDate,be=pe.interestPriorYearToDate,Ce=pe.availableBalance,ye=pe.balance,De=pe.lastStatementCycleDate,Se=pe.maturityDate,Oe=pe.nickname,Ie=pe.rtn,Le=pe.accountNumber,Ee=pe.accruedInterest,ke=pe.annualPercentageYield,Te=this.isMaskingEnabled(t)?he:null===Le||void 0===Le?void 0:Le.hostValue,Ae=[];this.emptyValueCheck(me)&&this.emptyValueCheck(null===t||void 0===t||null===(a=t.modernBrandingConfigs)||void 0===a||null===(i=a.accountDetailsSlideOver)||void 0===i||null===(o=i.investment)||void 0===o||null===(r=o.keogh)||void 0===r?void 0:r.acctDetailsInvestmentKeoghMemberNumberLabel)&&Ae.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghMemberNumberLabel,me,!1,!1]),this.emptyValueCheck(Te)&&this.emptyValueCheck(null===t||void 0===t||null===(s=t.modernBrandingConfigs)||void 0===s||null===(l=s.accountDetailsSlideOver)||void 0===l||null===(c=l.investment)||void 0===c||null===(u=c.keogh)||void 0===u?void 0:u.acctDetailsInvestmentKeoghDisplayAccountNumberLabel)&&Ae.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghDisplayAccountNumberLabel,Te,!1,!1,!1,!0]),this.emptyValueCheck(Ie)&&this.emptyValueCheck(null===t||void 0===t||null===(d=t.modernBrandingConfigs)||void 0===d||null===(p=d.accountDetailsSlideOver)||void 0===p||null===(h=p.investment)||void 0===h||null===(g=h.keogh)||void 0===g?void 0:g.acctDetailsInvestmentKeoghRoutingNumberLabel)&&Ae.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghRoutingNumberLabel,Ie,!1,!1,!1,!0]);var Re=[];this.emptyValueCheck(Ce)&&this.emptyValueCheck(null===t||void 0===t||null===(v=t.modernBrandingConfigs)||void 0===v||null===(f=v.accountDetailsSlideOver)||void 0===f||null===(_=f.investment)||void 0===_||null===(b=_.keogh)||void 0===b?void 0:b.acctDetailsInvestmentKeoghAvailableBalanceLabel)&&-1===(null===t||void 0===t||null===(C=t.modernBrandingConfigs)||void 0===C||null===(y=C.otherConfigs)||void 0===y?void 0:y.accountDetailsSuppressAvailBal.indexOf(ve))&&Re.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghAvailableBalanceLabel,Ce,!0,!1]),this.emptyValueCheck(ye)&&this.emptyValueCheck(null===t||void 0===t||null===(D=t.modernBrandingConfigs)||void 0===D||null===(S=D.accountDetailsSlideOver)||void 0===S||null===(O=S.investment)||void 0===O||null===(I=O.keogh)||void 0===I?void 0:I.acctDetailsInvestmentKeoghBalanceLabel)&&Re.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghBalanceLabel,ye,!0,!1]);var Ne=[];this.emptyValueCheck(Oe)&&this.emptyValueCheck(null===t||void 0===t||null===(L=t.modernBrandingConfigs)||void 0===L||null===(E=L.accountDetailsSlideOver)||void 0===E||null===(k=E.investment)||void 0===k||null===(T=k.keogh)||void 0===T?void 0:T.acctDetailsInvestmentKeoghNicknameLabel)&&Ne.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghNicknameLabel,Oe,!1,!1]),this.emptyValueCheck(ve)&&this.emptyValueCheck(null===t||void 0===t||null===(A=t.modernBrandingConfigs)||void 0===A||null===(R=A.accountDetailsSlideOver)||void 0===R||null===(N=R.investment)||void 0===N||null===(w=N.keogh)||void 0===w?void 0:w.acctDetailsInvestmentKeoghAccountTypeLabel)&&Ne.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghAccountTypeLabel,e.fiAccountType?e.fiAccountType:n[ve.toLowerCase()],!1,!1]),this.emptyValueCheck(ge)&&this.emptyValueCheck(null===t||void 0===t||null===(P=t.modernBrandingConfigs)||void 0===P||null===(B=P.accountDetailsSlideOver)||void 0===B||null===(x=B.investment)||void 0===x||null===(j=x.keogh)||void 0===j?void 0:j.acctDetailsInvestmentKeoghAccountStatusLabel)&&Ne.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghAccountStatusLabel,ge,!1,!1]);var we=[];this.emptyValueCheck(Se)&&this.emptyValueCheck(null===t||void 0===t||null===(M=t.modernBrandingConfigs)||void 0===M||null===(F=M.accountDetailsSlideOver)||void 0===F||null===(V=F.investment)||void 0===V||null===(U=V.keogh)||void 0===U?void 0:U.acctDetailsInvestmentKeoghMaturityDateLabel)&&we.pu
1sh([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghMaturityDateLabel,Se,!1,!0]);var Pe=[];if(this.emptyValueCheck(ke)&&this.emptyValueCheck(null===t||void 0===t||null===(H=t.modernBrandingConfigs)||void 0===H||null===(Y=H.accountDetailsSlideOver)||void 0===Y||null===(G=Y.investment)||void 0===G||null===(q=G.keogh)||void 0===q?void 0:q.acctDetailsInvestmentKeoghAnnualPercentageYieldLabel)){var Be,xe=null!==(Be=t.modernBrandingConfigs.otherConfigs)&&void 0!==Be&&Be.isDecimalThreeDigit?3:2;Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghAnnualPercentageYieldLabel,"".concat(parseFloat(ke).toFixed(xe),"%"),!1,!1])}if(this.emptyValueCheck(Ee)&&this.emptyValueCheck(null===t||void 0===t||null===(W=t.modernBrandingConfigs)||void 0===W||null===(K=W.accountDetailsSlideOver)||void 0===K||null===(Z=K.investment)||void 0===Z||null===(Q=Z.keogh)||void 0===Q?void 0:Q.acctDetailsInvestmentKeoghAccruedInterestLabel)&&Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghAccruedInterestLabel,Ee,!0,!1]),this.emptyValueCheck(fe)&&this.emptyValueCheck(null===t||void 0===t||null===(X=t.modernBrandingConfigs)||void 0===X||null===(z=X.accountDetailsSlideOver)||void 0===z||null===(J=z.investment)||void 0===J||null===($=J.keogh)||void 0===$?void 0:$.acctDetailsInvestmentKeoghInterestRateLabel)){var je,Me=null!==(je=t.modernBrandingConfigs.otherConfigs)&&void 0!==je&&je.isDecimalThreeDigit?3:2;Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghInterestRateLabel,"".concat(parseFloat(fe).toFixed(Me),"%"),!1,!1])}this.emptyValueCheck(_e)&&this.emptyValueCheck(null===t||void 0===t||null===(ee=t.modernBrandingConfigs)||void 0===ee||null===(te=ee.accountDetailsSlideOver)||void 0===te||null===(ne=te.investment)||void 0===ne||null===(ae=ne.keogh)||void 0===ae?void 0:ae.acctDetailsInvestmentKeoghInterestYearToDateLabel)&&Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghInterestYearToDateLabel,_e,!0,!1]),this.emptyValueCheck(be)&&this.emptyValueCheck(null===t||void 0===t||null===(ie=t.modernBrandingConfigs)||void 0===ie||null===(oe=ie.accountDetailsSlideOver)||void 0===oe||null===(re=oe.investment)||void 0===re||null===(se=re.keogh)||void 0===se?void 0:se.acctDetailsInvestmentKeoghInterestPriorYearToDateLabel)&&Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghInterestPriorYearToDateLabel,be,!0,!1]);var Fe=[];return this.emptyValueCheck(De)&&this.emptyValueCheck(null===t||void 0===t||null===(le=t.modernBrandingConfigs)||void 0===le||null===(ce=le.accountDetailsSlideOver)||void 0===ce||null===(ue=ce.investment)||void 0===ue||null===(de=ue.keogh)||void 0===de?void 0:de.acctDetailsInvestmentKeoghLastStatementCycleDateLabel)&&Fe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.keogh.acctDetailsInvestmentKeoghLastStatementCycleDateLabel,De,!1,!0]),{group1:Ae,group2:Re,group3:Ne,group4:we,group5:Pe,group6:Fe}}},{key:"buildInvestment401kDetail",value:function(e,t,n){var a,i,o,r,s,l,c,u,d,p,h,g,v,f,_,b,C,y,D,S,O,I,L,E,k,T,A,R,N,w,P,B,x,j,M,F,V,U,H,Y,G,q,W,K,Z,Q,X,z,J,$,ee,te,ne,ae,ie,oe,re,se,le=Object(m.a)({}
1,e),ce=le.displayMemberNumber,ue=le.displayAccountNumber,de=le.accountStatus,pe=le.accountType,me=le.interestRate,he=le.interestYearToDate,ge=le.interestPriorYearToDate,ve=le.availableBalance,fe=le.balance,_e=le.lastStatementCycleDate,be=le.maturityDate,Ce=le.nickname,ye=le.rtn,De=le.accountNumber,Se=le.accruedInterest,Oe=this.isMaskingEnabled(t)?ue:null===De||void 0===De?void 0:De.hostValue,Ie=[];this.emptyValueCheck(ce)&&this.emptyValueCheck(null===t||void 0===t||null===(a=t.modernBrandingConfigs)||void 0===a||null===(i=a.accountDetailsSlideOver)||void 0===i||null===(o=i.investment)||void 0===o||null===(r=o.fourZeroOneK)||void 0===r?void 0:r.acctDetailsInvestmentFourZeroOnekMemberNumberLabel)&&Ie.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekMemberNumberLabel,ce,!1,!1]),this.emptyValueCheck(Oe)&&this.emptyValueCheck(null===t||void 0===t||null===(s=t.modernBrandingConfigs)||void 0===s||null===(l=s.accountDetailsSlideOver)||void 0===l||null===(c=l.investment)||void 0===c||null===(u=c.fourZeroOneK)||void 0===u?void 0:u.acctDetailsInvestmentFourZeroOnekDisplayAccountNumberLabel)&&Ie.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekDisplayAccountNumberLabel,Oe,!1,!1,!1,!0]),this.emptyValueCheck(ye)&&this.emptyValueCheck(null===t||void 0===t||null===(d=t.modernBrandingConfigs)||void 0===d||null===(p=d.accountDetailsSlideOver)||void 0===p||null===(h=p.investment)||void 0===h||null===(g=h.fourZeroOneK)||void 0===g?void 0:g.acctDetailsInvestmentFourZeroOnekRoutingNumberLabel)&&Ie.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekRoutingNumberLabel,ye,!1,!1,!1,!0]);var Le=[];this.emptyValueCheck(ve)&&this.emptyValueCheck(null===t||void 0===t||null===(v=t.modernBrandingConfigs)||void 0===v||null===(f=v.accountDetailsSlideOver)||void 0===f||null===(_=f.investment)||void 0===_||null===(b=_.fourZeroOneK)||void 0===b?void 0:b.acctDetailsInvestmentFourZeroOnekAvailableBalanceLabel)&&-1===(null===t||void 0===t||null===(C=t.modernBrandingConfigs)||void 0===C||null===(y=C.otherConfigs)||void 0===y?void 0:y.accountDetailsSuppressAvailBal.indexOf(pe))&&Le.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekAvailableBalanceLabel,ve,!0,!1]),this.emptyValueCheck(fe)&&this.emptyValueCheck(null===t||void 0===t||null===(D=t.modernBrandingConfigs)||void 0===D||null===(S=D.accountDetailsSlideOver)||void 0===S||null===(O=S.investment)||void 0===O||null===(I=O.fourZeroOneK)||void 0===I?void 0:I.acctDetailsInvestmentFourZeroOnekBalanceLabel)&&Le.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekBalanceLabel,fe,!0,!1]);var Ee=[];this.emptyValueCheck(Ce)&&this.emptyValueCheck(null===t||void 0===t||null===(L=t.modernBrandingConfigs)||void 0===L||null===(E=L.accountDetailsSlideOver)||void 0===E||null===(k=E.investment)||void 0===k||null===(T=k.fourZeroOneK)||void 0===T?void 0:T.acctDetailsInvestmentFourZeroOnekNicknameLabel)&&Ee.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekNicknameLabel,Ce,!1,!1]),this.emptyValueCheck(pe)&&this.emptyValueCheck(null===t||void 0===t||null===(A=t.modernBrandingConfigs)||void 0===A||null===(R=A.accountDetailsSlideOver)||void 0===R||null===(N=R.investment)||void 0===N||null===(w=N.fourZeroOneK)||void 0===w?void 0:w.acctDetailsInvestmentFourZeroOnekAccountTypeLabel)&&Ee.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekAccountTypeLabel,e.fiAccountType?e.fiAccountType:n[pe.toLowerCase()],!1,!1]),this.emptyValueCheck(de)&&this.emptyValueCheck(null===t||void 0===t||null===(P=t.modernBrandingConfigs)||void 0===P||null===(B=P.accountDetailsSlideOver)||void 0===B||null===(x=B.investment)||void 0===x||null===(j=x.fourZeroOneK)||void 0===j?void 0:j.acctDetailsInvestmentFourZeroOnekAccountStatusLabel)&&Ee.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekAccountStatusLabel,de,!1,!1]);var ke=[];this.emptyValueCheck(be)&&this.emptyValueCheck(null===t||void 0===t||null===(M=t.modernBrandingConfigs)||void 0===M||null===(F=M.accountDetailsSlideOver)||void 0===F||null===(V=F.investment)||void 0===V||null===(U=V.fourZeroOneK)||void 0===U?void 0:U.acctDetailsInvestmentFourZeroOnekMaturityDateLabel)&&ke.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekMaturityDateLabel,be,!1,!0]);var Te=[];
1if(this.emptyValueCheck(Se)&&this.emptyValueCheck(null===t||void 0===t||null===(H=t.modernBrandingConfigs)||void 0===H||null===(Y=H.accountDetailsSlideOver)||void 0===Y||null===(G=Y.investment)||void 0===G||null===(q=G.fourZeroOneK)||void 0===q?void 0:q.acctDetailsInvestmentFourZeroOnekAccruedInterestLabel)&&Te.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekAccruedInterestLabel,Se,!0,!1]),this.emptyValueCheck(me)&&this.emptyValueCheck(null===t||void 0===t||null===(W=t.modernBrandingConfigs)||void 0===W||null===(K=W.accountDetailsSlideOver)||void 0===K||null===(Z=K.investment)||void 0===Z||null===(Q=Z.fourZeroOneK)||void 0===Q?void 0:Q.acctDetailsInvestmentFourZeroOnekInterestRateLabel)){var Ae,Re=null!==(Ae=t.modernBrandingConfigs.otherConfigs)&&void 0!==Ae&&Ae.isDecimalThreeDigit?3:2;Te.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekInterestRateLabel,"".concat(parseFloat(me).toFixed(Re),"%"),!1,!1])}this.emptyValueCheck(he)&&this.emptyValueCheck(null===t||void 0===t||null===(X=t.modernBrandingConfigs)||void 0===X||null===(z=X.accountDetailsSlideOver)||void 0===z||null===(J=z.investment)||void 0===J||null===($=J.fourZeroOneK)||void 0===$?void 0:$.acctDetailsInvestmentFourZeroOnekInterestYearToDateLabel)&&Te.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekInterestYearToDateLabel,he,!0,!1]),this.emptyValueCheck(ge)&&this.emptyValueCheck(null===t||void 0===t||null===(ee=t.modernBrandingConfigs)||void 0===ee||null===(te=ee.accountDetailsSlideOver)||void 0===te||null===(ne=te.investment)||void 0===ne||null===(ae=ne.fourZeroOneK)||void 0===ae?void 0:ae.acctDetailsInvestmentFourZeroOnekInterestPriorYearToDateLabel)&&Te.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekInterestPriorYearToDateLabel,ge,!0,!1]);var Ne=[];return this.emptyValueCheck(_e)&&this.emptyValueCheck(null===t||void 0===t||null===(ie=t.modernBrandingConfigs)||void 0===ie||null===(oe=ie.accountDetailsSlideOver)||void 0===oe||null===(re=oe.investment)||void 0===re||null===(se=re.fourZeroOneK)||void 0===se?void 0:se.acctDetailsInvestmentFourZeroOnekLastStatementCycleDateLabel)&&Ne.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.fourZeroOneK.acctDetailsInvestmentFourZeroOnekLastStatementCycleDateLabel,_e,!1,!0]),{group1:Ie,group2:Le,group3:Ee,group4:ke,group5:Te,group6:Ne}}},{key:"buildInvestmentCodDetail",value:function(e,t,n){var a,i,o,r,s,l,c,u,d,p,h,g,v,f,_,b,C,y,D,S,O,I,L,E,k,T,A,R,N,w,P,B,x,j,M,F,V,U,H,Y,G,q,W,K,Z,Q,X,z,J,$,ee,te,ne,ae,ie,oe,re,se,le,ce,ue,de,pe=Object(m.a)({},e),me=pe.displayMemberNumber,he=pe.displayAccountNumber,ge=pe.accountStatus,ve=pe.accountType,fe=pe.interestRate,_e=pe.interestYearToDate,be=pe.interestPriorYearToDate,Ce=pe.availableBalance,ye=pe.balance,De=pe.lastStatementCycleDate,Se=pe.maturityDate,Oe=pe.nickname,Ie=pe.rtn,Le=pe.accountNumber,Ee=pe.accruedInterest,ke=pe.annualPercentageYield,Te=this.isMaskingEnabled(t)?he:null===Le||void 0===Le?void 0:Le.hostValue,Ae=[];this.emptyValueCheck(me)&&this.emptyValueCheck(null===t||void 0===t||null===(a=t.modernBrandingConfigs)||void 0===a||null===(i=a.accountDetailsSlideOver)||void 0===i||null===(o=i.investment)||void 0===o||null===(r=o.cod)||void 0===r?void 0:r.acctDetailsInvestmentCODMemberNumberLabel)&&Ae.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODMemberNumberLabel,me,!1,!1]),this.emptyValueCheck(Te)&&this.emptyValueCheck(null===t||void 0===t||null===(s=t.modernBrandingConfigs)||void 0===s||null===(l=s.accountDetailsSlideOver)||void 0===l||null===(c=l.investment)||void 0===c||null===(u=c.cod)||void 0===u?void 0:u.acctDetailsInvestmentCODDisplayAccountNumberLabel)&&Ae.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODDisplayAccountNumberLabel,Te,!1,!1,!1,!0]),this.emptyValueCheck(Ie)&&this.emptyValueCheck(null===t||void 0===t||null===(d=t.modernBrandingConfigs)||void 0===d||null===(p=d.accountDetailsSlideOver)||void 0===p||null===(h=p.investment)||void 0===h||null===(g=h.cod)||void 0===g?void 0:g.acctDetailsInvestmentCODRoutingNumberLabel)&&Ae.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODRoutingNumberLabel,Ie,!1,!1,!1,!0]);var Re=[];this.emptyValueCheck(Ce)&&this.emptyValueCheck(null===t||void 0===t||null===(v=t.modernBrandingConfigs)||void 0===v||null===(f=v.accountDetailsSlideOver)||void 0===f||null===(_=f.investment)||void 0===_||null===(b=_.cod)||void 0===b?void 0:b.acctDetailsInvestmentCODAvailableBalanceLabel)&&-1===(null===t||void 0===t||null===(C=t.modernBrandingConfigs)||void 0===C||null===(y=C.otherConfigs)||void 0===y?void 0:y.accountDetailsSuppressAvailBal.indexOf(ve))&&Re.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODAvailableBalanceLabel,Ce,!0,!1]),this.emptyValueCheck(ye)&&this.emptyValueCheck(null===t||void 0===t||null===(D=t.modernBrandingConfigs)||void 0===D||null===(S=D.accountDetailsSlideOver)||void 0===S||null===(O=S.investment)||void 0===O||null===(I=O.cod)||void 0===I?void 0:I.acctDetailsInvestmentCODBalanceLabel)&&Re.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODBalanceLabel,ye,!0,!1]);var Ne=[];this.emptyValueCheck(Oe)&&this.emptyValueCheck(null===t||void 0===t||null===(L=t.modernBrandingConfigs)||void 0===L||null===(E=L.accountDetailsSlideOver)||void 0===E||null===(k=E.investment)||void 0===k||null===(T=k.cod)||void 0===T?void 0:T.acctDetailsInvestmentCODNicknameLabel)&&Ne.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODNicknameLabel,Oe,!1,!1]),this.emptyValueCheck(ve)&&this.emptyValueCheck(null===t||void 0===t||null===(A=t.modernBrandingConfigs)||void 0===A||null===(R=A.accountDetailsSlideOver)||void 0===R||null===(N=R.investment)||void 0===N||null===(w=N.cod)||void 0===w?void 0:w.acctDetailsInvestmentCODAccountTypeLabel)&&Ne.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODAccountTypeLabel,e.fiAccountType?e.fiAccountType:n[ve.toLowerCase()],!1,!1]),this.emptyValueCheck(ge)&&this.emptyValueCheck(null===t||void 0===t||null===(P=t.modernBrandingConfigs)||void 0===P||null===(B=P.accountDetailsSlideOver)||void 0===B||null===(x=B.investment)||void 0===x||null===(j=x.cod)||void 0===j?void 0:j.acctDetailsInvestmentCODAccountStatusLabel)&&Ne.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODAccountStatusLabel,ge,!1,!1]);var we=[];this.emptyValueCheck(Se)&&this.emptyValueCheck(null===t||void 0===t||null===(M=t.modernBrandingConfigs)||void 0===M||null===(F=M.accountDetailsSlideOver)||void 0===F||null===(V=F.investment)||void 0===V||null===(U=V.cod)||void 0===U?void 0:U.acctDetailsInvestmentCODMaturityDateLabel)&&we.pu
1sh([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODMaturityDateLabel,Se,!1,!0]);var Pe=[];if(this.emptyValueCheck(ke)&&this.emptyValueCheck(null===t||void 0===t||null===(H=t.modernBrandingConfigs)||void 0===H||null===(Y=H.accountDetailsSlideOver)||void 0===Y||null===(G=Y.investment)||void 0===G||null===(q=G.cod)||void 0===q?void 0:q.acctDetailsInvestmentCODAnnualPercentageYieldLabel)){var Be,xe=null!==(Be=t.modernBrandingConfigs.otherConfigs)&&void 0!==Be&&Be.isDecimalThreeDigit?3:2;Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODAnnualPercentageYieldLabel,"".concat(parseFloat(ke).toFixed(xe),"%"),!1,!1])}if(this.emptyValueCheck(Ee)&&this.emptyValueCheck(null===t||void 0===t||null===(W=t.modernBrandingConfigs)||void 0===W||null===(K=W.accountDetailsSlideOver)||void 0===K||null===(Z=K.investment)||void 0===Z||null===(Q=Z.cod)||void 0===Q?void 0:Q.acctDetailsInvestmentCODAccruedInterestLabel)&&Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODAccruedInterestLabel,Ee,!0,!1]),this.emptyValueCheck(fe)&&this.emptyValueCheck(null===t||void 0===t||null===(X=t.modernBrandingConfigs)||void 0===X||null===(z=X.accountDetailsSlideOver)||void 0===z||null===(J=z.investment)||void 0===J||null===($=J.cod)||void 0===$?void 0:$.acctDetailsInvestmentCODInterestRateLabel)){var je,Me=null!==(je=t.modernBrandingConfigs.otherConfigs)&&void 0!==je&&je.isDecimalThreeDigit?3:2;Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODInterestRateLabel,"".concat(parseFloat(fe).toFixed(Me),"%"),!1,!1])}this.emptyValueCheck(_e)&&this.emptyValueCheck(null===t||void 0===t||null===(ee=t.modernBrandingConfigs)||void 0===ee||null===(te=ee.accountDetailsSlideOver)||void 0===te||null===(ne=te.investment)||void 0===ne||null===(ae=ne.cod)||void 0===ae?void 0:ae.acctDetailsInvestmentCODInterestYearToDateLabel)&&Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODInterestYearToDateLabel,_e,!0,!1]),this.emptyValueCheck(be)&&this.emptyValueCheck(null===t||void 0===t||null===(ie=t.modernBrandingConfigs)||void 0===ie||null===(oe=ie.accountDetailsSlideOver)||void 0===oe||null===(re=oe.investment)||void 0===re||null===(se=re.cod)||void 0===se?void 0:se.acctDetailsInvestmentCODInterestPriorYearToDateLabel)&&Pe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODInterestPriorYearToDateLabel,be,!0,!1]);var Fe=[];return this.emptyValueCheck(De)&&this.emptyValueCheck(null===t||void 0===t||null===(le=t.modernBrandingConfigs)||void 0===le||null===(ce=le.accountDetailsSlideOver)||void 0===ce||null===(ue=ce.investment)||void 0===ue||null===(de=ue.cod)||void 0===de?void 0:de.acctDetailsInvestmentCODLastStatementCycleDateLabel)&&Fe.push([t.modernBrandingConfigs.accountDetailsSlideOver.investment.cod.acctDetailsInvestmentCODLastStatementCycleDateLabel,De,!1,!0]),{group1:Ae,group2:Re,group3:Ne,group4:we,group5:Pe,group6:Fe}}},{key:"buildDepositAccountDetail",value:function(e,t,n){var a,i,o,r,s,l,c,u,d,p,h,g,v,f,_,b,C,y,D,S,O,I,L,E,k,T,A,R,N,w,P,B,x,j,M,F,V,U,H,Y,G,q,W,K,Z=Object(m.a)({},e),Q=Z.displayMemberNumber,X=Z.displayAccountNumber,z=Z.accountStatus,J=Z.accountType,$=Z.availableBalance,ee=Z.balance,te=Z.lastStatementBalance,ne=Z.lastDividendAmount,ae=Z.nickname,ie=Z.rtn,oe=Z.achId,re=Z.micrNumber,se=Z.accountNumber,le=Z.regDLimits,ce=Object(m.a)({},le),ue=ce.hostTransferCount,de=ce.hostCheckCount,pe=this.isMaskingEnabled(t)?X:null===se||void 0===se?void 0:se.hostValue,me=[];this.emptyValueCheck(Q)&&this.emptyValueCheck(null===t||void 0===t||null===(a=t.modernBrandingConfigs)||void 0===a||null===(i=a.accountDetailsSlideOver)||void 0===i||null===(o=i.deposit)||void 0===o?void 0:o.acctDetailsDepositMemberNumberLabel)&&me.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositMemberNumberLabel,Q,!1,!1]),this.emptyValueCheck(pe)&&this.emptyValueCheck(null===t||void 0===t||null===(r=t.modernBrandingConfigs)||void 0===r||null===(s=r.accountDetailsSlideOver)||void 0===s||null===(l=s.deposit)||void 0===l?void 0:l.acctDetailsDepositDisplayAccountNumberLabel)&&me.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositDisplayAccountNumberLabel,pe,!1,!1,!1,!0]),this.emptyValueCheck(ie)&&this.emptyValueCheck(null===t||void 0===t||null===(c=t.modernBrandingConfigs)||void 0===c||null===(u=c.accountDetailsSlideOver)||void 0===u||null===(d=u.deposit)||void 0===d?void 0:d.acctDetailsDepositRoutingNumberLabel)&&me.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositRoutingNumberLabel,ie,!1,!1,!1,!0]),this.emptyValueCheck(oe)&&this.emptyValueCheck(null===t||void 0===t||null===(p=t.modernBrandingConfigs)||void 0===p||null===(h=p.accountDetailsSlideOver)||void 0===h||null===(g=h.deposit)||void 0===g?void 0:g.acctDetailsDepositACHLabel)&&me.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositACHLabel,oe,!1,!1,!1,!0]),this.emptyValueCheck(re)&&this.emptyValueCheck(null===t||void 0===t||null===(v=t.modernBrandingConfigs)||void 0===v||null===(f=v.accountDetailsSlideOver)||void 0===f||null===(_=f.deposit)||void 0===_?void 0:_.acctDetailsDepositMICRLabel)&&me.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositMICRLabel,re,!1,!1,!1,!0]);var he=[];this.emptyValueCheck($)&&this.emptyValueCheck(null===t||void 0===t||null===(b=t.modernBrandingConfigs)||void 0===b||null===(C=b.accountDetailsSlideOver)||void 0===C||null===(y=C.deposit)||void 0===y?void 0:y.acctDetailsDepositAvailableBalanceLabel)&&-1===(null===t||void 0===t||null===(D=t.modernBrandingConfigs)||void 0===D||null===(S=D.otherConfigs)||void 0===S?void 0:S.accountDetailsSuppressAvailBal.indexOf(J))&&he.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositAvailableBalanceLabel,$,!0,!1]),this.emptyValueCheck(ee)&&this.emptyValueCheck(null===t||void 0===t||null===(O=t.modernBrandingConfigs)||void 0===O||null===(I=O.accountDetailsSlideOver)||void 0===I||null===(L=I.deposit)||void 0===L?void 0:L.acctDetailsDepositBalanceLabel)&&he.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositBalanceLabel,ee,!0,!1]);var ge=[];this.emptyValueCheck(ae)&&this.emptyValueCheck(null===t||void 0===t||null===(E=t.modernBrandingConfigs)||void 0===E||null===(k=E.accountDetailsSlideOver)||void 0===k||null===(T=k.deposit)||void 0===T?void 0:T.acctDetailsDepositNicknameLabel)&&ge.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositNicknameLabel,ae,!1,!1]),this.emptyValueCheck(J)&&this.emptyValueCheck(null===t||void 0===t||null===(A=t.modernBrandingConfigs)||void 0===A||null===(R=A.accountDetailsSlideOver)||void 0===R||null===(N=R.deposit)||void 0===N?void 0:N.acctDetailsDepositAccountTypeLabel)&&ge.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositAccountTypeLabel,e.fiAccountType?e.fiAccountType:n[J.toLowerCase()],!1,!1]),this.emptyValueCheck(z)&&this.emptyValueCheck(null===t||void 0===t||null===(w=t.modernBrandingConfigs)||void 0===w||null===(P=w.accountDetailsSlideOver)||void 0===P||null===(B=P.deposit)||void 0===B?void 0:B.acctDetailsDepositAccountStatusLabel)&&ge.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositAccountStatusLabel,z,!1,!1]);var ve=[];this.emptyNumberCheck(de)&&this.emptyValueCheck(null===t||void 0===t||null===(x=t.modernBrandingConfigs)||void 0===x||null===(j=x.accountDetailsSlideOver)||void 0===j||null===(M=j.deposit)||void 0===M?void 0:M.acctDetailsDepositChecksUsedLabel)&&ve.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositChecksUsedLabel,de,!1,!1]);var fe=[];this.emptyNumberCheck(ue)&&this.emptyValueCheck(null===t||void 0===t||null===(F=t.modernBrandingConfigs)||void 0===F||null===(V=F.accountDetailsSlideOver)||void 0===V||null===(U=V.deposit)||void 0===U?void 0:U.acctDetailsDepositTransfersUsedLabel)&&fe.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositTransfersUsedLabel,ue,!1,!1]);var _e=[];return this.emptyValueCheck(te)&&this.emptyValueCheck(null===t||void 0===t||null===(H=t.modernBrandingConfigs)||void 0===H||null===(Y=H.accountDetailsSlideOver)||void 0===Y||null===(G=Y.deposit)||void 0===G?void 0:G.acctDetailsDepositLastStatementBalanceLabel)&&_e.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositLastStatementBalanceLabel,te,!0,!1]),this.emptyValueCheck(ne)&&this.emptyValueCheck(null===t||void 0===t||null===(q=t.modernBrandingConfigs)||void 0===q||null===(W=q.accountDetailsSlideOver)||void 0===W||null===(K=W.deposit)||void 0===K?void 0:K.acctDetailsDepositLastDividendAmountLabel)&&_e.push([t.modernBrandingConfigs.accountDetailsSlideOver.deposit.acctDetailsDepositLastDividendAmountLabel,ne,!0,!1]),{group1:me,group2:he,group3:ge,group4:ve,group5:fe,group6:_e}}},{key:"buildSavingsAccountDetail",value:function(e,t,n){var a,i,o,r,s,l,c,u,d,p,h,g,v,f,_,b,C,y,D,S,O,I,L,E,k,T,A,R,N,w,P,B,x,j,M,F,V,U,H,Y,G,q,W,K,Z,Q,X,z,J,$,ee,te,ne,ae,ie,oe,re,se,le,ce,ue,de,pe,me,he,ge,ve,fe,_e,be,Ce,ye,De,Se,Oe,Ie,Le=Object(m.a)({},e),Ee=Le.displayMemberNumber,ke=Le.displayAccountNumber,Te=Le.accountStatus,Ae=Le.accountType,Re=Le.availableBalance,Ne=Le.balance,we=Le.lastStatementBalance,Pe=Le.lastDividendAmount,Be=Le.nickname,xe=Le.rtn,je=Le.achId,Me=Le.micrNumber,Fe=Le.accountNumber,Ve=Le.lastInterestPaymentAmount,Ue=Le.lastInterestPaymentDate,He=Le.regDLim
1its,Ye=Le.interestPriorYearToDate,Ge=Le.interestRate,qe=Le.annualPercentageYield,We=Object(m.a)({},He).hostTransferCount,Ke=this.isMaskingEnabled(t)?ke:null===Fe||void 0===Fe?void 0:Fe.hostValue,Ze=[];this.emptyValueCheck(Ee)&&this.emptyValueCheck(null===t||void 0===t||null===(a=t.modernBrandingConfigs)||void 0===a||null===(i=a.accountDetailsSlideOver)||void 0===i||null===(o=i.savings)||void 0===o||null===(r=o.savings)||void 0===r?void 0:r.acctDetailsSavingsSavingMemberNumberLabel)&&-1===(null===t||void 0===t||null===(s=t.modernBrandingConfigs)||void 0===s||null===(l=s.otherConfigs)||void 0===l?void 0:l.accountDetailsSuppressAvailBal.indexOf(Ae))&&Ze.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingMemberNumberLabel,Ee,!1,!1]),this.emptyValueCheck(Ke)&&this.emptyValueCheck(null===t||void 0===t||null===(c=t.modernBrandingConfigs)||void 0===c||null===(u=c.accountDetailsSlideOver)||void 0===u||null===(d=u.savings)||void 0===d||null===(p=d.savings)||void 0===p?void 0:p.acctDetailsSavingsSavingDisplayAccountNumberLabel)&&Ze.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingDisplayAccountNumberLabel,Ke,!1,!1,!1,!0]),this.emptyValueCheck(xe)&&this.emptyValueCheck(null===t||void 0===t||null===(h=t.modernBrandingConfigs)||void 0===h||null===(g=h.accountDetailsSlideOver)||void 0===g||null===(v=g.savings)||void 0===v||null===(f=v.savings)||void 0===f?void 0:f.acctDetailsSavingsSavingRoutingNumberLabel)&&Ze.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingRoutingNumberLabel,xe,!1,!1,!1,!0]),this.emptyValueCheck(je)&&this.emptyValueCheck(null===t||void 0===t||null===(_=t.modernBrandingConfigs)||void 0===_||null===(b=_.accountDetailsSlideOver)||void 0===b||null===(C=b.savings)||void 0===C||null===(y=C.savings)||void 0===y?void 0:y.acctDetailsSavingsSavingACHLabel)&&Ze.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingACHLabel,je,!1,!1,!1,!0]),this.emptyValueCheck(Me)&&this.emptyValueCheck(null===t||void 0===t||null===(D=t.modernBrandingConfigs)||void 0===D||null===(S=D.accountDetailsSlideOver)||void 0===S||null===(O=S.savings)||void 0===O||null===(I=O.savings)||void 0===I?void 0:I.acctDetailsSavingsSavingMICRLabel)&&Ze.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingMICRLabel,Me,!1,!1,!1,!0]);var Qe=[];this.emptyValueCheck(Re)&&this.emptyValueCheck(null===t||void 0===t||null===(L=t.modernBrandingConfigs)||void 0===L||null===(E=L.accountDetailsSlideOver)||void 0===E||null===(k=E.savings)||void 0===k||null===(T=k.savings)||void 0===T?void 0:T.acctDetailsSavingsSavingAvailableBalanceLabel)&&-1===(null===t||void 0===t||null===(A=t.modernBrandingConfigs)||void 0===A||null===(R=A.otherConfigs)||void 0===R?void 0:R.accountDetailsSuppressAvailBal.indexOf(Ae))&&Qe.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingAvailableBalanceLabel,Re,!0,!1]),this.emptyValueCheck(Ne)&&this.emptyValueCheck(null===t||void 0===t||null===(N=t.modernBrandingConfigs)||void 0===N||null===(w=N.accountDetailsSlideOver)||void 0===w||null===(P=w.savings)||void 0===P||null===(B=P.savings)||void 0===B?void 0:B.acctDetailsSavingsSavingBalanceLabel)&&Qe.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingBalanceLabel,Ne,!0,!1]);var Xe=[];this.emptyValueCheck(Be)&&this.emptyValueCheck(null===t||void 0===t||null===(x=t.modernBrandingConfigs)||void 0===x||null===(j=x.accountDetailsSlideOver)||void 0===j||null===(M=j.savings)||void 0===M||null===(F=M.savings)||void 0===F?void 0:F.acctDetailsSavingsSavingNicknameLabel)&&Xe.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingNicknameLabel,Be,!1,!1]),this.emptyValueCheck(Ae)&&this.emptyValueCheck(null===t||void 0===t||null===(V=t.modernBrandingConfigs)||void 0===V||null===(U=V.accountDetailsSlideOver)||void 0===U||null===(H=U.savings)||void 0===H||null===(Y=H.savings)||void 0===Y?void 0:Y.acctDetailsSavingsSavingAccountTypeLabel)&&Xe.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingAccountTypeLabel,e.fiAccountType?e.fiAccountType:n[Ae.toLowerCase()],!1,!1]),this.emptyValueCheck(Te)&&this.emptyValueCheck(null===t||void 0===t||null===(G=t.modernBrandingConfigs)||void 0===G||null===(q=G.accountDetailsSlideOver)||void 0===q||null===(W=q.savings)||void 0===W||null===(K=W.savings)||void 0===K?void 0:K.acctDetailsSavingsSavingAccountStatusLabel)&&Xe.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingAccountStatusLabel,Te,!1,!1]);var ze=[];this.emptyNumberCheck(We)&&this.emptyValueCheck(null===t||void 0===t||null===(Z=t.modernBrandingConfigs)||void 0===Z||null===(Q=Z.accountDetailsSlideOver)||void 0===Q||null===(X=Q.savings)||void 0===X||null===(z=X.savings)||void 0===z?void 0:z.acctDetailsSavingsSavingTransfersUsedLabel)&&ze.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingTransfersUsedLabel,We,!1,!1]);var Je=[];this.emptyValueCheck(we)&&this.emptyValueCheck(null===t||void 0===t||null===(J=t.modernBrandingConfigs)||void 0===J||null===($=J.accountDetailsSlideOver)||void 0===$||null===(ee=$.savings)||void 0===ee||null===(te=ee.savings)||void 0===te?void 0:te.acctDetailsSavingsSavingLastStatementBalanceLabel)&&Je.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingLastStatementBalanceLabel,we,!0,!1]),this.emptyValueCheck(Pe)&&this.emptyValueCheck(null===t||void 0===t||null===(ne=t.modernBrandingConfigs)||void 0===ne||null===(ae=ne.accountDetailsSlideOver)||void 0===ae||null===(ie=ae.savings)||void 0===ie||null===(oe=ie.savings)||void 0===oe?void 0:oe.acctDetailsSavingsSavingLastDividendAmountLabel)&&Je.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingLastDividendAmountLabel,Pe,!0,!1]),this.emptyValueCheck(Ve)&&this.emptyValueCheck(null===Ve||void 0===Ve?void 0:Ve.amount)&&this.emptyValueCheck(null===t||void 0===t||null===(re=t.modernBrandingConfigs)||void 0===re||null===(se=re.accountDetailsSlideOver)||void 0===se||null===(le=se.savings)||void 0===le||null===(ce=le.savings)||void 0===ce?void 0:ce.acctDetailsSavingsSavingLastInterestPaymentAmountLabel)&&Je.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingLastInterestPaymentAmountLabel,null===Ve||void 0===Ve?void 0:Ve.amount,!0,!1]),this.emptyValueCheck(Ue)&&this.emptyValueCheck(null===t||void 0===t||null===(ue=t.modernBrandingConfigs)||void 0===ue||null===(de=ue.accountDetailsSlideOver)||void 0===de||null===(pe=de.savings)||void 0===pe||null===(me=pe.savings)||void 0===me?void 0:me.acctDetailsSavingsSavingLastInterestPaymentDateLabel)&&Je.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingLastInterestPaymentDateLabel,Ue,!1,!0]);var $e=[];if(this.emptyValueCheck(qe)&&this.emptyValueCheck(null===t||void 0===t||null===(he=t.modernBrandingConfigs)||void 0===he||null===(ge=he.accountDetailsSlideOver)||void 0===ge||null===(ve=ge.savings)||void 0===ve||null===(fe=ve.savings)||void 0===fe?void 0:fe.acctDetailsSavingsSavingAnnualPercentageYieldLabel)){var et,tt=null!==(et=t.modernBrandingConfigs.otherConfigs)&&void 0!==et&&et.isDecimalThreeDigit?3:2;$e.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingAnnualPercentageYieldLabel,"".concat(parseFloat(qe).toFixed(tt),"%"),!1,!1])}if(this.emptyValueCheck(Ge)&&this.emptyValueCheck(null===t||void 0===t||null===(_e=t.modernBrandingConfigs)||void 0===_e||null===(be=_e.accountDetailsSlideOver)||void 0===be||null===(Ce=be.savings)||void 0===Ce||null===(ye=Ce.savings)||void 0===ye?void 0:ye.acctDetailsSavingsSavingInterestRateLabel)){var nt,at=null!==(nt=t.modernBrandingConfigs.otherConfigs)&&void 0!==nt&&nt.isDecimalThreeDigit?3:2;$e.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingInterestRateLabel,"".concat(parseFloat(Ge).toFixed(at),"%"),!1,!1])}return this.emptyValueCheck(Ye)&&this.emptyValueCheck(null===t||void 0===t||null===(De=t.modernBrandingConfigs)||void 0===De||null===(Se=De.accountDetailsSlideOver)||void 0===Se||null===(Oe=Se.savings)||void 0===Oe||null===(Ie=Oe.savings)||void 0===Ie?void 0:Ie.acctDetailsSavingsSavingInterestPriorYearToDateLabel)&&$e.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.savings.acctDetailsSavingsSavingInterestPriorYearToDateLabel,Ye,!0,!1]),{group1:Ze,group2:Qe,group3:Xe,group4:ze,group5:Je,group6:$e}}},{key:"buildSavingsMoneyMarketAccountDetail",value:function(e,t,n){var a,i,o,r,s,l,c,u,d,p,h,g,v,f,_,b,C,y,D,S,O,I,L,E,k,T,A,R,N,w,P,B,x,j,M,F,V,U,H,Y,G,q,W,K,Z,Q,X,z,J,$,ee,te,ne,ae,ie,oe,re,se,le,ce,ue,de,pe,me,he,ge,ve,fe,_e,be,Ce,ye,De,Se,Oe=Object(m.a)({},e),Ie=Oe.displayMemberNumber,Le=Oe.displayAccountNumber,Ee=Oe.accountStatus,ke=Oe.accountType,Te=Oe.availableBalance,Ae=Oe.balance,Re=Oe.lastStatementBalance,Ne=Oe.lastDividendAmount,we=Oe.nickname,Pe=Oe.rtn,Be=Oe.achId,xe=Oe.micrNumber,je=Oe.accountNumber,Me=Oe.regDLim
1its,Fe=Oe.lastInterestPaymentAmount,Ve=Oe.lastInterestPaymentDate,Ue=Oe.interestPriorYearToDate,He=Oe.interestRate,Ye=Oe.annualPercentageYield,Ge=Object(m.a)({},Me).hostTransferCount,qe=this.isMaskingEnabled(t)?Le:null===je||void 0===je?void 0:je.hostValue,We=[];this.emptyValueCheck(Ie)&&this.emptyValueCheck(null===t||void 0===t||null===(a=t.modernBrandingConfigs)||void 0===a||null===(i=a.accountDetailsSlideOver)||void 0===i||null===(o=i.savings)||void 0===o||null===(r=o.moneyMarket)||void 0===r?void 0:r.acctDetailsSavingsMoneyMarketMemberNumberLabel)&&We.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketMemberNumberLabel,Ie,!1,!1]),this.emptyValueCheck(qe)&&this.emptyValueCheck(null===t||void 0===t||null===(s=t.modernBrandingConfigs)||void 0===s||null===(l=s.accountDetailsSlideOver)||void 0===l||null===(c=l.savings)||void 0===c||null===(u=c.moneyMarket)||void 0===u?void 0:u.acctDetailsSavingsMoneyMarketDisplayAccountNumberLabel)&&We.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketDisplayAccountNumberLabel,qe,!1,!1,!1,!0]),this.emptyValueCheck(Pe)&&this.emptyValueCheck(null===t||void 0===t||null===(d=t.modernBrandingConfigs)||void 0===d||null===(p=d.accountDetailsSlideOver)||void 0===p||null===(h=p.savings)||void 0===h||null===(g=h.moneyMarket)||void 0===g?void 0:g.acctDetailsSavingsMoneyMarketRoutingNumberLabel)&&We.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketRoutingNumberLabel,Pe,!1,!1,!1,!0]),this.emptyValueCheck(Be)&&this.emptyValueCheck(null===t||void 0===t||null===(v=t.modernBrandingConfigs)||void 0===v||null===(f=v.accountDetailsSlideOver)||void 0===f||null===(_=f.savings)||void 0===_||null===(b=_.moneyMarket)||void 0===b?void 0:b.acctDetailsSavingsMoneyMarketACHLabel)&&We.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketACHLabel,Be,!1,!1,!1,!0]),this.emptyValueCheck(xe)&&this.emptyValueCheck(null===t||void 0===t||null===(C=t.modernBrandingConfigs)||void 0===C||null===(y=C.accountDetailsSlideOver)||void 0===y||null===(D=y.savings)||void 0===D||null===(S=D.moneyMarket)||void 0===S?void 0:S.acctDetailsSavingsMoneyMarketMICRLabel)&&We.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketMICRLabel,xe,!1,!1,!1,!0]);var Ke=[];this.emptyValueCheck(Te)&&this.emptyValueCheck(null===t||void 0===t||null===(O=t.modernBrandingConfigs)||void 0===O||null===(I=O.accountDetailsSlideOver)||void 0===I||null===(L=I.savings)||void 0===L||null===(E=L.moneyMarket)||void 0===E?void 0:E.acctDetailsSavingsMoneyMarketAvailableBalanceLabel)&&-1===(null===t||void 0===t||null===(k=t.modernBrandingConfigs)||void 0===k||null===(T=k.otherConfigs)||void 0===T?void 0:T.accountDetailsSuppressAvailBal.indexOf(ke))&&Ke.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketAvailableBalanceLabel,Te,!0,!1]),this.emptyValueCheck(Ae)&&this.emptyValueCheck(null===t||void 0===t||null===(A=t.modernBrandingConfigs)||void 0===A||null===(R=A.accountDetailsSlideOver)||void 0===R||null===(N=R.savings)||void 0===N||null===(w=N.moneyMarket)||void 0===w?void 0:w.acctDetailsSavingsMoneyMarketBalanceLabel)&&Ke.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketBalanceLabel,Ae,!0,!1]);var Ze=[];this.emptyValueCheck(we)&&this.emptyValueCheck(null===t||void 0===t||null===(P=t.modernBrandingConfigs)||void 0===P||null===(B=P.accountDetailsSlideOver)||void 0===B||null===(x=B.savings)||void 0===x||null===(j=x.moneyMarket)||void 0===j?void 0:j.acctDetailsSavingsMoneyMarketNicknameLabel)&&Ze.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketNicknameLabel,we,!1,!1]),this.emptyValueCheck(ke)&&this.emptyValueCheck(null===t||void 0===t||null===(M=t.modernBrandingConfigs)||void 0===M||null===(F=M.accountDetailsSlideOver)||void 0===F||null===(V=F.savings)||void 0===V||null===(U=V.moneyMarket)||void 0===U?void 0:U.acctDetailsSavingsMoneyMarketAccountTypeLabel)&&Ze.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketAccountTypeLabel,e.fiAccountType?e.fiAccountType:n[ke.toLowerCase()],!1,!1]),this.emptyValueCheck(Ee)&&this.emptyValueCheck(null===t||void 0===t||null===(H=t.modernBrandingConfigs)||void 0===H||null===(Y=H.accountDetailsSlideOver)||void 0===Y||null===(G=Y.savings)||void 0===G||null===(q=G.moneyMarket)||void 0===q?void 0:q.acctDetailsSavingsMoneyMarketAccountStatusLabel)&&Ze.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketAccountStatusLabel,Ee,!1,!1]);var Qe=[];this.emptyNumberCheck(Ge)&&this.emptyValueCheck(null===t||void 0===t||null===(W=t.modernBrandingConfigs)||void 0===W||null===(K=W.accountDetailsSlideOver)||void 0===K||null===(Z=K.savings)||void 0===Z||null===(Q=Z.moneyMarket)||void 0===Q?void 0:Q.acctDetailsSavingsMoneyMarketTransfersUsedLabel)&&Qe.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketTransfersUsedLabel,Ge,!1,!1]);var Xe=[];this.emptyValueCheck(Re)&&this.emptyValueCheck(null===t||void 0===t||null===(X=t.modernBrandingConfigs)||void 0===X||null===(z=X.accountDetailsSlideOver)||void 0===z||null===(J=z.savings)||void 0===J||null===($=J.moneyMarket)||void 0===$?void 0:$.acctDetailsSavingsMoneyMarketLastStatementBalanceLabel)&&Xe.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketLastStatementBalanceLabel,Re,!0,!1]),this.emptyValueCheck(Ne)&&this.emptyValueCheck(null===t||void 0===t||null===(ee=t.modernBrandingConfigs)||void 0===ee||null===(te=ee.accountDetailsSlideOver)||void 0===te||null===(ne=te.savings)||void 0===ne||null===(ae=ne.moneyMarket)||void 0===ae?void 0:ae.acctDetailsSavingsMoneyMarketLastDividendAmountLabel)&&Xe.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketLastDividendAmountLabel,Ne,!0,!1]),this.emptyNumberCheck(Fe)&&this.emptyNumberCheck(null===Fe||void 0===Fe?void 0:Fe.amount)&&this.emptyValueCheck(null===t||void 0===t||null===(ie=t.modernBrandingConfigs)||void 0===ie||null===(oe=ie.accountDetailsSlideOver)||void 0===oe||null===(re=oe.savings)||void 0===re||null===(se=re.moneyMarket)||void 0===se?void 0:se.acctDetailsSavingsMoneyMarketLastInterestPaymentAmountLabel)&&Xe.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketLastInterestPaymentAmountLabel,null===Fe||void 0===Fe?void 0:Fe.amount,!0,!1]),this.emptyNumberCheck(Ve)&&this.emptyValueCheck(null===t||void 0===t||null===(le=t.modernBrandingConfigs)||void 0===le||null===(ce=le.accountDetailsSlideOver)||void 0===ce||null===(ue=ce.savings)||void 0===ue||null===(de=ue.moneyMarket)||void 0===de?void 0:de.acctDetailsSavingsMoneyMarketLastInterestPaymentDateLabel)&&Xe.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketLastInterestPaymentDateLabel,Ve,!1,!0]);var ze=[];if(this.emptyValueCheck(Ye)&&this.emptyValueCheck(null===t||void 0===t||null===(pe=t.modernBrandingConfigs)||void 0===pe||null===(me=pe.accountDetailsSlideOver)||void 0===me||null===(he=me.savings)||void 0===he||null===(ge=he.moneyMarket)||void 0===ge?void 0:ge.acctDetailsSavingsMoneyMarketAnnualPercentageYieldLabel)){var Je,$e=null!==(Je=t.modernBrandingConfigs.otherConfigs)&&void 0!==Je&&Je.isDecimalThreeDigit?3:2;ze.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketAnnualPercentageYieldLabel,"".concat(parseFloat(Ye).toFixed($e),"%"),!1,!1])}if(this.emptyValueCheck(He)&&this.emptyValueCheck(null===t||void 0===t||null===(ve=t.modernBrandingConfigs)||void 0===ve||null===(fe=ve.accountDetailsSlideOver)||void 0===fe||null===(_e=fe.savings)||void 0===_e||null===(be=_e.moneyMarket)||void 0===be?void 0:be.acctDetailsSavingsMoneyMarketInterestRateLabel)){var et,tt=null!==(et=t.modernBrandingConfigs.otherConfigs)&&void 0!==et&&et.isDecimalThreeDigit?3:2;ze.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketInterestRateLabel,"".concat(parseFloat(He).toFixed(tt),"%"),!1,!1])}return this.emptyNumberCheck(Ue)&&this.emptyValueCheck(null===t||void 0===t||null===(Ce=t.modernBrandingConfigs)||void 0===Ce||null===(ye=Ce.accountDetailsSlideOver)||void 0===ye||null===(De=ye.savings)||void 0===De||null===(Se=De.moneyMarket)||void 0===Se?void 0:Se.acctDetailsSavingsMoneyMarketInterestPriorYearToDateLabel)&&ze.push([t.modernBrandingConfigs.accountDetailsSlideOver.savings.moneyMarket.acctDetailsSavingsMoneyMarketInterestPriorYearToDateLabel,Ue,!0,!1]),{group1:We,group2:Ke,group3:Ze,group4:Qe,group5:Xe,group6:ze}}}]),e}(),Zn="open account detail panel",Qn="close account detail panel",Xn="open transaction detail panel",zn="close transaction detail panel",Jn="update selected transaction",$n=function(e,t){switch(t.type){case Zn:return Object(m.a)(Object(m.a)({},e),{},{isAccountDetailPanelOpen:!0,selectedAccount:t.payload});case Qn:return Object(m.a)(Object(m.a)({},e),{},{isAccountDetailPanelOpen:!1,selectedAccount:void 0});case Xn:return Object(m.a)(Object(m.a)({},e),{},{isTransactionDetailPanelOpen:!0,selectedTransaction:t.payload.transaction,transactions:t.payload.transactions});case zn:return Object(m.a)(Object(m.a)({},e),{},{isTransactionDetailPanelOpen:!1,selectedTransaction:void 0,transactions:void 0});case Jn:return Object(m.a)(Object(m.a)({},e),{},{selectedTransaction:t.payload});default:return e}},ea={isAccountDetailPanelOpen:!1,selectedAccount:void 0,isTransactionDetailPanelOpen:!1,selectedTransaction:void 0,transactions:void 0},ta=Object(m.a)(Object(m.a)({},ea),{},{openAccountDetailPanel:function(){},closeAccountDetailPanel:function(){},openTransactionDetailPanel:function(){},closeTransactionDetailPanel:function(){},updateSelectedTransaction:function(){}}),na=Object(u.createContext)(ta);function aa(e){var t=e.children,n=Object(u.useReducer)($n,ea),a=Object(L.a)(n,2),i=a[0],o=a[1];return d.a.createElement(na.Provider,{value:Object(m.a)(Object(m.a)({},i),{},{openAccountDetailPanel:function(e){o({type:Zn,payload:e})},closeAccountDetailPanel:function(){o({type:Qn})},openTransactionDetailPanel:function(e,t){o({type:Xn,payload:{transaction:e,transactions:t}})},closeTransactionDetailPanel:function(){o({type:zn})},updateSelectedTransaction:function(e){o({type:Jn,payload:e})}})},t)}var ia=function(){var e=Object(u.useContext)(na);if(void 0===e)throw new Error("useAccountDetailPanel must be used within a LayoutContext provider.");return{isAccountDetailPanelOpen:e.isAccountDetailPanelOpen,selectedAccount:e.selectedAccount,openAccountDetailPanel:e.openAccountDetailPanel,closeAccountDetailPanel:e.closeAccountDetailPanel}},oa=function(){var e=Object(u.useContext)(na);if(void 0===e)throw new Error("useTransactionDetailPanel must be used within a LayoutContext provider.");return{isTransactionDetailPanelOpen:e.isTransactionDetailPanelOpen,selectedTransaction:e.selectedTransaction,transactions:e.transactions,openTransactionDetailPanel:e.openTransactionDetailPanel,closeTransactionDetailPanel:e.closeTransactionDetailPanel,updateSelectedTransaction:e.updateSelectedTransaction}},ra={},sa=Object(u.createContext)(ra),la=function(e){var t=e.children,n=e.value;return d.a.createElement(sa.Provider,{value:n},t)};la.propTypes={value:c.a.arrayOf(c.a.object)};var ca=function(){var e=Object(u.useContext)(sa);if(void 0===e)throw new Error("useAccountHistoryContext must be used within a NavActionContext provider");return e},ua=n(83),da=n(1340),pa=n(2416),ma=n(1945),ha=n.n(ma),ga=function(e){var t=e.data,n=e.translations,a=Object(ua.a)(),i=t.nextPaymentDate,o=t.nextPaymentAmount,r=t.minPaymentAmount,s=n.dueLabel,l=n.dueAmountLabel,c=n.pastDueLabel,u=n.pastDueAmountLabel,p=n.dueDateLabel,m=n.minimumPaymentLabel,h=Wn(i),g=o>0;if(h){if(!g&&!s||g&&!c)return null}else if(!s)return null;var v=Y.a.convertNumberToUSD(o,!0),f=[];return h&&g&&u?f.push("".concat(u,": ").concat(v)):l&&f.push("".concat(l,": ").concat(v)),p&&f.push("".concat(p,": ").concat(i)),m&&void 0!==r&&null!==r&&f.push("".concat(m,": ").concat(Y.a.convertNumberToUSD(r,!0))),d.a.createElement(da.a,{title:f.map((function(e){return d.a.createElement(Mn.a,{variant:"body2",key:crypto.randomUUID()},e)})),placement:"bottom-end",tabIndex:0,enterTouchDelay:0},d.a.createElement(pa.a,{icon:d.a.createElement(ha.a,{sx:{color:" ".concat(h&&g?a.palette.error.dark:a.palette.info.dark," !important")}}),label:d.a.createElement(Mn.a,{variant:"body2"},h&&g?"".concat(c," ").concat(v):"".concat(s," ").concat(i)),sx:{background:h&&g?a.palette.error.lighter:a.palette.info.lighter,alignSelf:"flex-start",marginTop:a.spacing(3),ml:"auto",mr:a.spacing(2)}}))};ga.propTypes={data:c.a.shape({nextPaymentDate:c.a.string.isRequired,nextPaymentAmount:c.a.number.isRequired,minPaymentAmount:c.a.number}),translations:c.a.shape({dueLabel:c.a.string.isRequired,dueAmountLabel:c.a.string.isRequired,pastDueLabel:c.a.string.isRequired,pastDueAmountLabel:c.a.string.isRequired,dueDateLabel:c.a.string.isRequired,minimumPaymentLabel:c.a.string.isRequired})};var va=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"buildDataPoints",value:function(e,t,n){var a,i,o,r,s,l,c,u,d,p;if(P.a.isCreditCardLoanAccount(e))d=Kn.buildCreditCardAccountOverview(e,t),p=function(e){var t={};return e.accountSummaryCreditCardDueLabel&&(t.dueLabel=e.accountSummaryCreditCardDueLabel),e.accountSummaryCreditCardDueAmountLabel&&(t.dueAmountLabel=e.accountSummaryCreditCardDueAmountLabel),e.accountSummaryCreditCardPastDueLabel&&(t.pastDueLabel=e.accountSummaryCreditCardPastDueLabel),e.accountSummaryCreditCardPastDueAmountLabel&&(t.pastDueAmountLabel=e.accountSummaryCreditCardPastDueAmountLabel),e.accountSummaryCreditCardDueDateLabel&&(t.dueDateLabel=e.accountSummaryCreditCardDueDateLabel),e.accountSummaryCreditCardMinimumPaymentLabel&&(t.minimumPaymentLabel=e.accountSummaryCreditCardMinimumPaymentLabel),t}(t.modernBrandingConfigs.accountSummary.creditCard);else if(P.a.isChecking(e))d=Kn.buildDepositAccountOverview(e,t);else if(P.a.isNewSavings(e))d=Kn.buildSavingsAccountOverview(e,t);else if(P.a.isRetirementIRA(e))d=Kn.buildInvestmentIRAOverview(e,t);else if(P.a.isKeogh(e))d=Kn.buildInvestmentKeoghOverview(e,t);else if(P.a.isRetirement401K(e))d=Kn.buildInvestment401kOverview(e,t);else if(P.a.isCertificateOfDeposit(e)||P.a.isCSICertificateOfDeposit(e))d=Kn.buildInvestmentCodOverview(e,t);else if(P.a.isLOCAccount(e)&&null!==t&&void 0!==t&&null!==(a=t.modernBrandingConfigs)&&void 0!==a&&null!==(i=a.otherConfigs)&&void 0!==i&&i.showLoanAccountDetails){var m;d=Kn.buildLoanCreditLineOverview(e,t),p=function(e){var t={};return e.accountSummaryLoanCreditLineDueLabel&&(t.dueLabel=e.accountSummaryLoanCreditLineDueLabel),e.accountSummaryLoanCreditLineDueAmountLabel&&(t.dueAmountLabel=e.accountSummaryLoanCreditLineDueAmountLabel),e.accountSummaryLoanCreditLinePastDueLabel&&(t.pastDueLabel=e.accountSummaryLoanCreditLinePastDueLabel),e.accountSummaryLoanCreditLinePastDueAmountLabel&&(t.pastDueAmountLabel=e.accountSummaryLoanCreditLinePastDueAmountLabel),e.accountSummaryLoanCreditLineDueDateLabel&&(t.dueDateLabel=e.accountSummaryLoanCreditLineDueDateLabel),t}(null===(m=t.modernBrandingConfigs)||void 0===m?void 0:m.accountSummary.loan.creditLine)}else P.a.isNewInstallmentLoan(e)&&null!==t&&void 0!==t&&null!==(o=t.modernBrandingConfigs)&&void 0!==o&&null!==(r=o.otherConfigs)&&void 0!==r&&r.showLoanAccountDetails?(d=Kn.buildLoanInstallmentLoanOverview(e,t),p=function(e){var t={};return e.accountSummaryLoanInstallmentLoanDueLabel&&(t.dueLabel=e.accountSummaryLoanInstallmentLoanDueLabel),e.accountSummaryLoanInstallmentLoanDueAmountLabel&&(t.dueAmountLabel=e.accountSummaryLoanInstallmentLoanDueAmountLabel),e.accountSummaryLoanInstallmentLoanPastDueLabel&&(t.pastDueLabel=e.accountSummaryLoanInstallmentLoanPastDueLabel),e.accountSummaryLoanInstallmentLoanPastDueAmountLabel&&(t.pastDueAmountLabel=e.accountSummaryLoanInstallmentLoanPastDueAmountLabel),e.accountSummaryLoanInstallmentLoanDueDateLabel&&(t.dueDateLabel=e.accountSummaryLoanInstallmentLoanDueDateLa
1bel),t}(t.modernBrandingConfigs.accountSummary.loan.installmentLoan)):P.a.isNewMortgageLoan(e)&&null!==t&&void 0!==t&&null!==(s=t.modernBrandingConfigs)&&void 0!==s&&null!==(l=s.otherConfigs)&&void 0!==l&&l.showLoanAccountDetails?(d=Kn.buildLoanMortgageLoanOverview(e,t),p=function(e){var t={};return e.accountSummaryLoanMortgageLoanDueLabel&&(t.dueLabel=e.accountSummaryLoanMortgageLoanDueLabel),e.accountSummaryLoanMortgageLoanDueAmountLabel&&(t.dueAmountLabel=e.accountSummaryLoanMortgageLoanDueAmountLabel),e.accountSummaryLoanMortgageLoanPastDueLabel&&(t.pastDueLabel=e.accountSummaryLoanMortgageLoanPastDueLabel),e.accountSummaryLoanMortgageLoanPastDueAmountLabel&&(t.pastDueAmountLabel=e.accountSummaryLoanMortgageLoanPastDueAmountLabel),e.accountSummaryLoanMortgageLoanDueDateLabel&&(t.dueDateLabel=e.accountSummaryLoanMortgageLoanDueDateLabel),t}(t.modernBrandingConfigs.accountSummary.loan.mortgageLoan)):(P.a.isNewOtherLoan(e)||P.a.isHomeEquityLoan(e))&&null!==t&&void 0!==t&&null!==(c=t.modernBrandingConfigs)&&void 0!==c&&null!==(u=c.otherConfigs)&&void 0!==u&&u.showLoanAccountDetails?(d=Kn.buildOtherLoanOverview(e,t),p=function(e){var t={};return e.accountSummaryLoanOtherLoansDueLabel&&(t.dueLabel=e.accountSummaryLoanOtherLoansDueLabel),e.accountSummaryLoanOtherLoansDueAmountLabel&&(t.dueAmountLabel=e.accountSummaryLoanOtherLoansDueAmountLabel),e.accountSummaryLoanOtherLoansPastDueLabel&&(t.pastDueLabel=e.accountSummaryLoanOtherLoansPastDueLabel),e.accountSummaryLoanOtherLoansPastDueAmountLabel&&(t.pastDueAmountLabel=e.accountSummaryLoanOtherLoansPastDueAmountLabel),e.accountSummaryLoanOtherLoansDueDateLabel&&(t.dueDateLabel=e.accountSummaryLoanOtherLoansDueDateLabel),t}(t.modernBrandingConfigs.accountSummary.loan.otherLoans)):d=P.a.isGeneralLedgerAccount(e)?Kn.buildGeneralLedgerAccountOverview(e,n):[];return{overviewItems:d,dueDateChipTranslations:p}}}]),e}(),fa=Object(On.a)(Tn.a)((function(e){return{fontSize:"20px",fontWeight:400,padding:"22px 30px 22px 30px",color:e.theme.palette.text.secondary}})),_a=Object(On.a)(kn.a)((function(){return{padding:"10px 0 10px 0"}})),ba=Object(On.a)(Pn.a)((function(){return{width:"100%"}}));var Ca=n(2429),ya=n(2430),Da=n(2431),Sa=n(2427),Oa=n(2428),Ia=n(2432),La=n(579),Ea=n(2356),ka=n(50),Ta=n.n(ka),Aa=function(e){var t=e.transaction,n=e.selectedAccount;return e.pageConfigs.rewardsEnabled&&n.accountId&&t.transactionId?d.a.createElement(Sa.a,{sx:Ea.a},d.a.createElement(Oa.a,{id:"transaction-image-".concat(t.storeId),align:"center",sx:{displayPrint:"none"}},t.transactionId),d.a.createElement(Te.a,{id:"rewards-".concat(t.transactionId),elementType:"td",colSpan:Ta.a.SPAN_ALL_COLUMNS,className:"trxDescCell"})):null};Aa.propTypes={transaction:c.a.object,selectedAccount:c.a.object,pageConfigs:c.a.object};var Ra=Aa,Na=n(1308),wa=n(1334),Pa=n(2317),Ba=n(1738),xa=n.n(Ba);function ja(e,t){return{key:"amountToPrincipal-".concat(e.storeId),label:t.transactionListLabelPrincipal,value:e.amountToPrincipal}}function Ma(e,t){return{key:"amountToInterest-".concat(e.storeId),label:t.transactionListLabelInterest,value:e.amountToInterest}}function Fa(e,t){return{key:"fee-".concat(e.storeId),label:t.transactionListLabelFee,value:e.fee}}var Va=function(e,t,n){if(!e||!t)return[];var a=[],i=n.modernBrandingConfigs.transactionList;return P.a.isCreditCardAccountExceptTCL(t)?a=i.transactionListShowSpreadDetails?function(e,t){var n=[];return t.transactionListLabelPrincipalEnable&&e.amountToPrincipal&&n.push(ja(e,t)),t.transactionListLabelInterestEnable&&e.amountToInterest&&n.push(Ma(e,t)),t.transactionListLabelFeeEnable&&e.fee&&n.push(Fa(e,t)),n}(e,i):e.creditTransaction?function(e,t){var n=[];return t.transactionListLabelFeeEnable&&e.fee&&n.push(Fa(e,t)),t.transactionListLabelInterestEnable&&e.amountToInterest&&n.push(Ma(e,t)),(e.fee||e.amountToInterest)&&e.amount&&e.amountToPrincipal&&e.amountToPrincipal!==e.amount&&(t.transactionListLabelAppliedEnable&&e.amountToPrincipal<0?n.push({key:"amountToPrincipal-".concat(e.storeId),label:t.transactionListLabelApplied,value:Math.abs(e.amountToPrincipal)}):t.transactionListLabelPrincipalEnable&&e.amountToPrincipal&&n.push(ja(e,t))),n}(e,i):function(e,t){var n=[],a=e.fee,i=e.amountToInterest,o=e.amountToPrincipal,r=e.amount;return t.transactionListLabelFeeEnable&&a&&n.push(Fa(e,t)),t.transactionListLabelInterestEnable&&i&&n.push(Ma(e,t)),a&&i&&0===r&&o&&o!==r?(n=[],t.transactionListLabelFeeEnable&&n.push(Fa(e,t)),t.transactionListLabelInterestEnable&&n.push(Ma(e,t))):(a||i)&&0===r&&o&&o!==r?n=[]:(a||i)&&r&&o&&o!==r&&(t.transactionListLabelCreditedEnable&&o<0?n.push({key:"amountToPrincipal-".concat(e.storeId),label:t.transactionListLabelCredited,value:Math.abs(e.amountToPrincipal)}):t.transactionListLabelTotalEnable&&o&&n.push({key:"amountToInterest-".concat(e.storeId),label:t.transactionListLabelTotal,value:e.amountToPrincipal})),n}(e,i):P.a.isLoanAccountOrTCLCreditLine(t)&&(a=function(e,t){var n=[];return t.transactionListLabelPrincipalEnable&&e.amountToPrincipal&&n.push(ja(e,t)),t.transactionListLabelInterestEnable&&e.amountToInterest&&n.push(Ma(e,t)),t.transactionListLabelEscrowEnable&&e.amountToEscrow&&n.push({key:"amountToEscrow-".concat(e.storeId),label:t.transactionListLabelEscrow,value:e.amountToEscrow}),t.transactionListLabelFeeEnable&&e.fee&&n.push(Fa(e,t)),n}(e,i)),a},Ua=/"([^"]+)"/g,Ha=/"/g,Ya=/,/g,Ga=/[$]/g,qa=/[,$]/g,Wa=/[,"]/g,Ka="displayDescription",Za="cleanDescription",Qa="categoryName",Xa="formattedTransactionDate",za="formattedAmount",Ja="formattedLedgerBalance",$a=function(e,t){return null===e||void 0===e?void 0:e.replace(t,"")},ei=function(e){return 1===e.length},ti=function(e,t,n,a){return function(i){var o=e.trim().toLowerCase();
1if(function(e,t,n){var a=$a(n,Ha),i=$a(e[Ka],Ha);if(null!==t&&void 0!==t&&t.length){if(i.toLowerCase().includes(a)&&t.every((function(e){var t=$a(e,Ha);return i.includes(t)})))return!0}else if(i.toLowerCase().includes(a))return!0;return!1}(i,t,o))return!0;if(function(e,t,n){var a=$a(n,Ha),i=$a(e[Za],Ha);if(null!==t&&void 0!==t&&t.length){if(null!==i&&void 0!==i&&i.toLowerCase().includes(a)&&t.every((function(e){var t=$a(e,Ha);return i.includes(t)})))return!0}else if(null!==i&&void 0!==i&&i.toLowerCase().includes(a))return!0;return!1}(i,t,o))return!0;if(function(e,t,n){var a=$a(n,Ha),i=$a(e[Qa],Ha);if(null!==t&&void 0!==t&&t.length){if(null!==i&&void 0!==i&&i.toLowerCase().includes(a)&&t.every((function(e){var t=$a(e,Ha);return i.includes(t)})))return!0}else if(null!==i&&void 0!==i&&i.toLowerCase().includes(a))return!0;return!1}(i,t,o))return!0;var r=$a(o,Wa);if(function(e,t,n){if(!e.pending){var a=$a(e[Xa],Ya).toLowerCase(),i=t.split(" ");if(i.length>1){var o=Object(L.a)(i,3),r=o[0],s=o[1],l=o[2];if(r&&s&&l&&ei(s))return a.includes("".concat(r," 0").concat(s," ").concat(l));if(r&&s&&!l){if(4===s.length)return a.startsWith(r)&&a.endsWith(s);if(ei(s))return a.includes("".concat(r," 0").concat(s))}}return a.includes(t)}return!(!e.pending||!n.toLowerCase().includes(t))}(i,r,a))return!0;var s=$a(r,Ga);return!!function(e,t){return!(!e[za]||!$a(e[za],qa).toString().includes(t))}(i,s)||!(!n||!function(e,t){return!(!e[Ja]||!$a(e[Ja],qa).includes(t))}(i,s))}},ni=n(1328),ai=n(1948),ii=n.n(ai),oi=n(1947),ri=n.n(oi),si=n(1737),li=n.n(si),ci=function(e){var t=e.transaction,n=e.i18nStrings;return d.a.createElement(Mn.a,{variant:"body2"},t.pending?n.transactions_label_pending:t.formattedTransactionDate)};ci.propTypes={transaction:c.a.object,i18nStrings:c.a.object};var ui=function(e){var t=e.transaction,n=e.clickable,a=e.showAdditionalAmount,i=e.onAdditionalAmountToggle;if(!t.amount)return"-";var o=d.a.createElement(B.a,{id:"-amount-".concat(t.storeId),value:t.displayAmount});return d.a.createElement(kn.a,{sx:Object(m.a)({},t.creditTransaction&&{color:function(e){return e.palette.success.main}})},n?d.a.createElement(wn.a,{variant:"text",startIcon:a?d.a.createElement(ri.a,null):d.a.createElement(ii.a,null),onClick:i,sx:{color:"inherit","& .MuiButton-endIcon":{ml:0},mr:"-8px"}},o):o)};ui.propTypes={transaction:c.a.object,clickable:c.a.bool,showAdditionalAmount:c.a.bool,onAdditionalAmountToggle:c.a.func};var di=function(e){var t=e.transaction;return void 0===t.ledgerBalance||null===t.ledgerBalance?"-":d.a.createElement(B.a,{id:"ledger-balance-".concat(t.storeId),value:t.ledgerBalance})};di.propTypes={transaction:c.a.object};var pi=function(e){var t=e.transaction;return d.a.createElement(Mn.a,{variant:"body2"},t.categoryName?t.categoryName:"--")};pi.propTypes={transaction:c.a.object};var mi=function(e){var t=e.transaction;return t.merchantImageRef?d.a.createElement(ni.a,{id:"image-".concat(t.storeId),src:t.merchantImageRef}):d.a.createElement(ni.a,{id:"image-".concat(t.storeId)},d.a.createElement(li.a,null))};mi.propTypes={transaction:c.a.object};var hi=function(e){var t=e.data,n=e.header;return d.a.createElement(Na.a,{direction:"row",justifyContent:{xs:"flex-end",sm:"flex-start"},alignItems:{xs:"flex-start"},sx:{margin:1}},d.a.createElement(Mn.a,{variant:"body2",fontWeight:500,sx:{mr:function(e){return e.spacing(2)}}},n),d.a.createElement(Na.a,{direction:{xs:"column",sm:"row"},alignItems:{xs:"flex-start"},spacing:{xs:.5,sm:2},divider:d.a.createElement(jn.a,{orientation:"vertical",flexItem:!0})},t.map((function(e){var t=e.key,n=e.label,a=e.value;return d.a.createElement(kn.a,{sx:{color:function(e){return e.palette.action.active}}},d.a.createElement(Mn.a,{key:t,variant:"body2",component:"span",sx:{pr:function(e){return e.spacing(.5)}}},n,":"),d.a.createElement(B.a,{id:t,value:a}))}))))};hi.propTypes={data:c.a.arrayOf(c.a.object),header:c.a.bool};var gi=Object(On.a)(Sa.a)((function(e){var t,n=e.theme,a=e.heading,i=e.borderless;return Object(m.a)(Object(m.a)((t={"&:first-of-type":{borderTop:"none"}},Object(Sn.a)(t,n.breakpoints.up("md"),{"&:first-of-type":{borderTop:"1px solid ".concat(n.palette.grey[40])}}),Object(Sn.a)(t,"&:last-child td, &:last-child th",{border:0}
1),Object(Sn.a)(t,"&:focus-visible",{boxShadow:"inset 0px 0px 0px 2px ".concat(n.palette.primary.light)}),t),i&&{"& .MuiTableCell-root":{borderBottom:0}}),a&&{backgroundColor:n.palette.background.default})})),vi=Object(On.a)(Oa.a)((function(e){var t=e.theme;return Object(m.a)(Object(m.a)({},t.typography.subtitle2),{},Object(Sn.a)({fontWeight:700,textAlign:"left",maxWidth:400},t.breakpoints.up("md"),{maxWidth:100}))})),fi=Object(On.a)(Oa.a)((function(e){var t=e.theme;return Object(m.a)(Object(m.a)({},t.typography.body2),{},{color:t.palette.text.secondary})})),_i=d.a.memo((function(e){var t,n,a,i,o=e.transaction,r=e.transactions,s=e.selectedAccount,l=e.pageConfigs,c=e.i18nStrings,m=e.openCheckImageViewerDialog,h=e.openTransactionDetailPanel,g=Object(u.useState)(!1),v=Object(L.a)(g,2),f=v[0],_=v[1],b=Va(o,s,l),C=null===l||void 0===l||null===(t=l.modernBrandingConfigs)||void 0===t||null===(n=t.otherConfigs)||void 0===n?void 0:n.showCleansedTransaction,y=null!==o&&void 0!==o&&o.cleanDescription?o.cleanDescription:o.displayDescription;return o.displayDescription&&d.a.createElement(d.a.Fragment,null,o.groupId&&d.a.createElement(gi,{id:"transaction-group-".concat(s.id,"-").concat(o.storeId),key:"transaction--group-".concat(s.id,"-").concat(o.storeId),heading:!0,tabIndex:0},d.a.createElement(fi,{id:"groupId-".concat(o.groupId),colSpan:l.modernBrandingConfigs.transactionList.transactionListSuppressLedgerBalance?3:2,align:"left"},o.groupId),!l.modernBrandingConfigs.transactionList.transactionListSuppressLedgerBalance&&d.a.createElement(fi,{align:"right"},d.a.createElement(di,{transaction:o}))),d.a.createElement(gi,{id:"transaction-".concat(s.id,"-").concat(o.storeId),key:"transaction-".concat(s.id,"-").concat(o.storeId),borderless:!!b.length,tabIndex:0},d.a.createElement(vi,{scope:"row",sx:{maxWidth:200}},d.a.createElement(Na.a,{direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:2},C&&d.a.createElement(mi,{transaction:o}),d.a.createElement(Mn.a,{id:"description-".concat(o.storeId),variant:"subtitle2",sx:{fontWeight:"700",wordBreak:"break-word"}},C?y:o.displayDescription))),d.a.createElement(Oa.a,{id:"transaction-image-".concat(o.storeId),align:"center",width:"10%"},o.showImageIcon&&d.a.createElement(p.j,{ariaLabel:c.view_check_images,onClick:function(){return m(o)},icon:d.a.createElement(p.a,null),sx:{backgroundColor:function(e){return e.palette.primary.main}}})),d.a.createElement(vi,{width:"20%",align:"right"},d.a.createElement(p.i,{spacing:1,justify:"space-around"},d.a.createElement(ui,{transaction:o,clickable:!!b.length,showAdditionalAmount:f,onAdditionalAmountToggle:function(){return _(!f)}}),!(null!==l&&void 0!==l&&null!==(a=l.modernBrandingConfigs)&&void 0!==a&&null!==(i=a.transactionList)&&void 0!==i&&i.transactionListSuppressTransactionDetails)&&d.a.createElement(wa.a,{"aria-label":"open detail overlay",size:"small",onClick:function(){return h(o,r)},onKeyDown:function(e){13===e.keyCode&&h(o,r)},sx:{padding:function(e){return e.spacing(1.2)}}},d.a.createElement(xa.a,{sx:{color:function(e){return e.palette.action.active},fontSize:"inherit"}}))))),b.length?d.a.createElement(Sa.a,null,d.a.createElement(Oa.a,{sx:{pb:0,pt:0},colSpan:6},d.a.createElement(Pa.a,{in:f,timeout:"auto",unmountOnExit:!0,sx:{backgroundColor:function(e){return e.palette.grey[20]},margin:function(e){return"".concat(e.spacing(1)," 0")}}},d.a.createElement(hi,{header:c.transactions_payment_breakdown,data:b})))):null)}),(function(e,t){return e.transaction.storeId===t.transaction.storeId}));_i.propTypes={transaction:c.a.object,transactions:c.a.arrayOf(c.a.object),selectedAccount:c.a.object,pageConfigs:c.a.object,i18nStrings:c.a.object,openCheckImageViewerDialog:c.a.func,openTransactionDetailPanel:c.a.func};var bi=_i,Ci=d.a.memo((function(e){var t,n,a,i,o=e.transaction,r=e.transactions,s=e.selectedAccount,l=e.pageConfigs,c=e.i18nStrings,m=e.openCheckImageViewerDialog,h=e.openTransactionDetailPanel,g=Object(u.useState)(!1),v=Object(L.a)(g,2),f=v[0],_=v[1],b=Va(o,s,l),C=null===l||void 0===l||null===(t=l.modernBrandingConfigs)||void 0===t||null===(n=t.otherConfigs)||void 0===n?void 0:n.showCleansedTransaction,y=null!==o&&void 0!==o&&o.cleanDescription?o.cleanDescription:o.displayDescription;return d.a.createElement(d.a.Fragment,null,d.a.createElement(gi,{id:"transaction-".concat(s.id,"-").concat(o.storeId),key:"transaction-".concat(s.id,"-").concat(o.storeId),borderless:!!b.length,tabIndex:0,sx:{fontStyle:o.pending?"italic":""}}
1,!C&&d.a.createElement(fi,{id:"date-".concat(o.storeId),width:"15%",align:"left"},d.a.createElement(ci,{transaction:o,i18nStrings:c})),C&&d.a.createElement(vi,null,d.a.createElement(mi,{transaction:o})),d.a.createElement(vi,{scope:"row",width:"35%"},d.a.createElement(Na.a,{direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:2},d.a.createElement(Mn.a,{id:"description-".concat(o.storeId),variant:"subtitle2",sx:{fontWeight:"700",wordBreak:"break-word"}},C?y:o.displayDescription))),C&&d.a.createElement(vi,{width:"20%",style:{textAlign:"left "}},d.a.createElement(pi,{transaction:o})),C&&d.a.createElement(fi,{id:"date-".concat(o.storeId),width:"15%",align:"left"},d.a.createElement(ci,{transaction:o,i18nStrings:c})),d.a.createElement(vi,{width:"15%",style:{textAlign:"right"}},d.a.createElement(ui,{transaction:o,clickable:!!b.length,showAdditionalAmount:f,onAdditionalAmountToggle:function(){return _(!f)}})),!l.modernBrandingConfigs.transactionList.transactionListSuppressLedgerBalance&&d.a.createElement(fi,{width:"15%",style:{textAlign:"right"}},d.a.createElement(di,{transaction:o})),d.a.createElement(Oa.a,{id:"transaction-image-".concat(o.storeId),width:"5%",align:"right"},o.showImageIcon&&d.a.createElement(p.j,{id:"check-image-viewer-trigger-".concat(o.storeId),ariaLabel:c.view_check_images,onClick:function(){return m(o)},icon:d.a.createElement(p.a,null),sx:{backgroundColor:function(e){return e.palette.primary.main}}})),!(null!==l&&void 0!==l&&null!==(a=l.modernBrandingConfigs)&&void 0!==a&&null!==(i=a.transactionList)&&void 0!==i&&i.transactionListSuppressTransactionDetails)&&d.a.createElement(Oa.a,{align:"right",width:"5%",sx:{padding:"10px"}},d.a.createElement(wa.a,{id:"transaction-detail-trigger-".concat(o.storeId),"aria-label":"open detail overlay",size:"small",onClick:function(){return h(o,r)},onKeyDown:function(e){13===e.keyCode&&h(o,r)},sx:{padding:function(e){return e.spacing(1.2)}}},d.a.createElement(xa.a,{sx:{color:function(e){return e.palette.action.active},fontSize:"inherit"}})))),b.length?d.a.createElement(Sa.a,null,d.a.createElement(Oa.a,{sx:{pb:0,pt:0},colSpan:6},d.a.createElement(Pa.a,{in:f,timeout:"auto",unmountOnExit:!0,sx:{backgroundColor:function(e){return e.palette.grey[20]},margin:function(e){return"".concat(e.spacing(1)," 0")}}},d.a.createElement(hi,{header:c.transactions_payment_breakdown,data:b})))):null)}),(function(e,t){return e.transaction.storeId===t.transaction.storeId}));Ci.propTypes={transaction:c.a.object,transactions:c.a.arrayOf(c.a.object),selectedAccount:c.a.object,pageConfigs:c.a.object,i18nStrings:c.a.object,openCheckImageViewerDialog:c.a.func,openTransactionDetailPanel:c.a.func};var yi=Ci,Di={transaction:null,isCheckImageViewerModalOpen:!1,openCheckImageViewerDialog:function(){},closeCheckImageViewerDialog:function(){}},Si=Object(u.createContext)(Di),Oi=function(e){var t=e.children,n=Object(u.useState)(null),a=Object(L.a)(n,2),i=a[0],o=a[1],r=Object(p.t)(),s=r.isModalVisible,l=r.openModal,c=r.closeModal;return d.a.createElement(Si.Provider,{value:{transaction:i,isCheckImageViewerModalOpen:s,closeCheckImageViewerDialog:c,openCheckImageViewerDialog:function(e){o(e),l()}}},t)},Ii=function(){var e=Object(u.useContext)(Si);if(void 0===e)throw new Error("useTransactionActions must be used within a TransactionActionsContext provider");return e},Li=Object(On.a)(Mn.a)((function(){return{color:"#212121"}})),Ei=function(e){var t,n,a=e.status,i=e.transactions,o=e.pageConfigs,r=e.i18nStrings,s=e.selectedAccount,l=e.isSmallViewport,c=e.filter,u=e.totalMatchingSearchCriteria,m=Ii().openCheckImageViewerDialog,h=oa().openTransactionDetailPanel;if(a===f.a.ERROR&&(n=d.a.createElement(p.g,{title:o.modernBrandingConfigs.transactionList.transactionListGenericErrorMessage,description:o.modernBrandingConfigs.transactionList.transactionListGenericErrorMessageAction,sx:{pb:function(e){return e.spacing(3)}}})),a===f.a.SUCCESS||null!==i&&void 0!==i&&i.length)if(null!==i&&void 0!==i&&i.length){var g,v,_,b,C,y,D={transactions:i,selectedAccount:s,pageConfigs:o,i18nStrings:r,openCheckImageViewerDialog:m,openTransactionDetailPanel:h},S=null===o||void 0===o||null===(g=o.modernBrandingConfigs)||void 0===g||null===(v=g.otherConfigs)||void 0===v?void 0:v.showCleansedTransaction;n=d.a.createElement(Ca.a,null,d.a.createElement(ya.a,{"aria-label":"transactions list"},!l&&d.a.createElement(Da.a,{sx:{backgroundColor:La.a.white}},S?d.a.createElement(Sa.a,null,d.a.createElement(Oa.a,null,d.a.createElement(Li,{variant:"body1"})),d.a.createElement(Oa.a,null,d.a.createElement(Li,{variant:"body1"},o.modernBrandingConfigs.transactionList.transactionListHeaderMerchantLabel)),d.a.createElement(Oa.a,null,d.a.createElement(Li,{variant:"body1"},o.modernBrandingConfigs.transactionList.transactionListHeaderCategoryLabel)),d.a.createElement(Oa.a,null,d.a.createElement(Li,{variant:"body1"},o.modernBrandingConfigs.transactionList.transactionListHeaderDateLabel)),d.a.createElement(Oa.a,{align:"right"},d.a.createElement(Li,{variant:"body1"},o.modernBrandingConfigs.transactionList.transactionListHeaderAmountLabel)),!(null!==o&&void 0!==o&&null!==(_=o.modernBrandingConfigs)&&void 0!==_&&null!==(b=_.transactionList)&&void 0!==b&&b.transactionListSuppressLedgerBalance)&&d.a.createElement(Oa.a,{align:"right"},d.a.createElement(Li,{variant:"body1"},o.modernBrandingConfigs.transactionList.transactionListHeaderBalanceLabel))):d.a.createElement(Sa.a,null,d.a.createElement(Oa.a,null,d.a.createElement(Li,{variant:"body1"},o.modernBrandingConfigs.transactionList.transactionListHeaderDateLabel)),d.a.createElement(Oa.a,null,d.a.createElement(Li,{variant:"body1"},o.modernBrandingConfigs.transactionList.transactionListHeaderMerchantLabel)),d.a.createElement(Oa.a,{align:"right"},d.a.createElement(Li,{variant:"body1"},o.modernBrandingConfigs.transactionList.transactionListHeaderAmountLabel)),!(null!==o&&void 0!==o&&null!==(C=o.modernBrandingConfigs)&&void 0!==C&&null!==(y=C.transactionList)&&void 0!==y&&y.transactionListSuppressLedgerBalance)&&d.a.createElement(Oa.a,{align:"right"},d.a.createElement(Li,{variant:"body1"},o.modernBrandingConfigs.transactionList.transactionListHeaderBalanceLabel)))),d.a.createElement(Ia.a,null,i.map((function(e){return d.a.createElement(d.a.Fragment,null,l?d.a.createElement(bi,Object.assign({key:e.storeId,transaction:e},D)):d.a.createElement(yi,Object.assign({key:e.storeId,transaction:e},D)),d.a.createElement(Ra,{key:"hidden_".concat(e.storeId),transaction:e,selectedAccount:s,pageConfigs:o}))})))))}else n=d.a.createElement(kn.a,{sx:{py:function(e){return e.spacing(3)}}},d.a.createElement(p.p,{title:null===r||void 0===r?void 0:r.noData}));return c&&u<=0&&(n=d.a.createElement(kn.a,{sx:{py:function(e){return e.spacing(3)}}},d.a.createElement(p.p,{title:null===r||void 0===r?void 0:r.noData}))),d.a.createElement(p.h,{sx:{minHeight:"100px",width:1,backgroundColor:function(e){return e.palette.background.paper},borderBottomLeftRadius:8,borderBottomRightRadius:8,boxShadow:"0px 4px 20px rgb(27 53 93 / 5%)"}},null!==(t=n)&&void 0!==t?t:d.a.createElement(p.l,{size:30}))};Ei.propTypes={transactions:c.a.arrayOf(c.a.object),status:c.a.string,i18nStrings:c.a.object,pageConfigs:c.a.object,selectedAccount:c.a.object,isSmallViewport:c.a.bool,filter:c.a.string,totalMatchingSearchCriteria:c.a.number};var ki=n(2357),Ti=n(1339),Ai=n(2412),Ri=n(2358),Ni=n(2399),wi=Object(On.a)(ki.a)((function(){return{padding:0}})),Pi="DATE_ASC",Bi="DATE_DESC",xi="AMOUNT_HIGHEST",ji="AMOUNT_LOWEST",Mi="DESCRIPTION_ASC",Fi="DESCRIPTION_DESC",Vi="CATEGORY_ASC",Ui="CATEGORY_DESC",Hi="ascending",Yi="descending",Gi={field:"intradayOrderId",type:"string",direction:Yi},qi=d.a.memo((function(e){var t,n,a=e.i18nStrings,i=Object(u.useRef)(null),o=Object(u.useState)(!1),r=Object(L.a)(o,2),s=r[0],l=r[1],c=(ca()||{}).pageConfigs,h=Object(u.useMemo)((function(){var e;return e={},Object(Sn.a)(e,Bi,Object(m.a)({label:"".concat(a.transactions_label_date," (").concat(a.transactions_label_sort_option_newest,")")},Gi)),Object(Sn.a)(e,Pi,{label:"".concat(a.transactions_label_date," (").concat(a.transactions_label_sort_option_oldest,")"),field:"intradayOrderId",type:"string",direction:Hi}),Object(Sn.a)(e,ji,{label:"".concat(a.transaction_amount," (").concat(a.transactions_label_sort_option_lowest,")"),field:"amount",type:"number",direction:Hi}),Object(Sn.a)(e,xi,{label:"".concat(a.transaction_amount," (").concat(a.transactions_label_sort_option_highest,")"),field:"amount",type:"number",direction:Yi}),Object(Sn.a)(e,Mi,{label:"".concat(a.transaction_description," (A - Z)"),field:"displayDescription",type:"string",direction:Hi}),Object(Sn.a)(e,Fi,{label:"".concat(a.transaction_description," (Z - A)"),field:"displayDescription",type:"string",direction:Yi}),Object(Sn.a)(e,Vi,{label:"".concat(a.transaction_description," (A - Z)"),field:"categoryName",type:"string",direction:Hi}),Object(Sn.a)(e,Ui,{label:"".concat(a.transaction_description," (Z - A)"),field:"categoryName",type:"string",direction:Yi}),e}),[]),g=function(){l(!1)},v=function(e){Q.a.setSelectedSortOptionKey(e);var t=h[e];Q.a.setSortOptions(t),g()},_=ve.b.getState().sortOptionKeys;_||(_=null!==c&&void 0!==c&&c.modernBrandingConfigs.transactionList.transactionListSortTransactionEnabled?Bi:xi);var b=null!==(t=null===(n=h[_])||void 0===n?void 0:n.label)&&void 0!==t?t:"";return d.a.createElement(kn.a,{sx:{width:"100%"}},d.a.createElement(wn.a,{id:"transactions-sort-trigger",ref:i,onClick:function(){l(!0)},variant:"outlined",endIcon:d.a.createElement(xn.a,{sx:{color:function(e){return e.palette.grey.A700},mr:function(e){return e.spacing(.5)}}}),sx:{p:function(e){return e.spacing(.7)},borderColor:function(e){return e.palette.grey[300]},height:f.a.TRANSACTION_LIST_MENU_HEIGHT,width:"100%",justifyContent:"space-between"}},d.a.createElement(kn.a,null,d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary",align:"left",sx:{fontWeight:400,fontSize:function(e){return e.spacing(1.2)}}},a.transactions_label_sort_by),d.a.createElement(Mn.a,{variant:"body1",color:"text.primary",align:"left",sx:{minWidth:"120px"},display:"block"},b))),d.a.createElement(p.m,{open:s,onClose:g,anchorEl:i.current,paperProps:{pt:function(e){return e.spacing(1)},pb:function(e){return e.spacing(1)},width:"26%"}},d.a.createElement(Ti.a,{id:"transactions-sort-options"},(null===c||void 0===c?void 0:c.modernBrandingConfigs.transactionList.transactionListSortTransactionEnabled)&&d.a.createElement("div",null,d.a.createElement(Ai.a,{disablePadding:!0},d.a.createElement(Ri.a,{primary:d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary",fontSize:20},a.transactions_label_date)})),d.a.createElement(Ai.a,{disablePadding:!0},d.a.createElement(wi,{dense:!0,onClick:function(){return v(Bi)}},d.a.createElement(Ri.a,{primary:d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary"},a.transactions_label_sort_option_newest)}),d.a.createElement(Ni.a,{checked:_===Bi,onChange:function(){return v(Bi)},name:"transactions-sort-options",tabIndex:-1}))),d.a.createElement(Ai.a,{disablePadding:!0},d.a.createElement(wi,{dense:!0,onClick:function(){return v(Pi)}},d.a.createElement(Ri.a,{primary:d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary"},a.transactions_label_sort_option_oldest)}),d.a.createElement(Ni.a,{checked:_===Pi,onChange:function(){return v(Pi)},name:"transactions-sort-options",tabIndex:-1}))),d.a.createElement(jn.a,{sx:{mt:function(e){return e.spacing(1)},mb:function(e){return e.spacing(1)}}})),d.a.createElement(Ai.a,{disablePadding:!0},d.a.createElement(Ri.a,{primary:d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary",fontSize:20},a.transaction_amount)})),d.a.createElement(Ai.a,{disablePadding:!0},d.a.createElement(wi,{dense:!0,onClick:function(){return v(xi)}},d.a.createElement(Ri.a,{primary:d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary"},a.transactions_label_sort_option_highest)}),d.a.createElement(Ni.a,{checked:_===xi,onChange:function(){return v(xi)},name:"transactions-sort-options",tabIndex:-1}))),d.a.createElement(Ai.a,{disablePadding:!0},d.a.createElement(wi,{dense:!0,onClick:function(){return v(ji)}},d.a.createElement(Ri.a,{primary:d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary"},a.transactions_label_sort_option_lowest)}),d.a.createElement(Ni.a,{checked:_===ji,onChange:function(){return v(ji)},name:"transactions-sort-options",tabIndex:-1}))),d.a.createElement(jn.a,{sx:{mt:function(e){return e.spacing(1)},mb:function(e){return e.spacing(1)}}}),d.a.createElement(Ai.a,{disablePadding:!0},d.a.createElement(Ri.a,{primary:d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary",fontSize:20},a.transaction_description)})),d.a.createElement(Ai.a,{disablePadding:!0},d.a.createElement(wi,{dense:!0,onClick:function(){return v(Mi)}},d.a.createElement(Ri.a,{primary:d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary"},"A - Z")}),d.a.createElement(Ni.a,{checked:_===Mi,onChange:function(){return v(Mi)},name:"transactions-sort-options",tabIndex:-1}))),d.a.createElement(Ai.a,{disablePadding:!0},d.a.createElement(wi,{dense:!0,onClick:function(){return v(Fi)}},d.a.createElement(Ri.a,{primary:d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary"},"Z - A")}),d.a.createElement(Ni.a,{checked:_===Fi,onChange:function(){return v(Fi)},name:"transactions-sort-options",tabIndex:-1}))),d.a.createElement(jn.a,{sx:{mt:function(e){return e.spacing(1)},mb:function(e){return e.spacing(1)}}}),d.a.createElement(Ai.a,{disablePadding:!0},d.a.createElement(Ri.a,{primary:d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary",fontSize:20},"Category")})),d.a.createElement(Ai.a,{disablePadding:!0},d.a.createElement(wi,{dense:!0,onClick:function(){return v(Vi)}},d.a.createElement(Ri.a,{primary:d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary"},"A - Z")}),d.a.createElement(Ni.a,{checked:_===Vi,onChange:function(){return v(Vi)},name:"transactions-sort-options",tabIndex:-1}))),d.a.createElement(Ai.a,{disablePadding:!0},d.a.createElement(wi,{dense:!0,onClick:function(){return v(Ui)}},d.a.createElement(Ri.a,{primary:d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary"},"Z - A")}),d.a.createElement(Ni.a,{checked:_===Ui,onChange:function(){return v(Ui)},name:"transactions-sort-options",tabIndex:-1}))))))}));qi.propTypes={i18nStrings:c.a.object};var Wi=function(e,t){var n=[],a=t.field,i=t.type,o=t.direction;return"string"===i?n=Object.assign([],e).sort((function(e,t){var n,i;
1return o===f.a.SORT_DESCENDING?null===(i=t[a])||void 0===i?void 0:i.localeCompare(e[a]):null===(n=e[a])||void 0===n?void 0:n.localeCompare(t[a])})):"number"===i?n=Object.assign([],e).sort((function(e,t){return o===f.a.SORT_DESCENDING?t[a]-e[a]:e[a]-t[a]})):console.warn("WARNING: Ignoring unsupported sort data type: ".concat(i)),n},Ki=function(e,t,n,a,i,o,r){if(e&&e.length>0){var s,l,c=[],u=!1;P.a.isCreditCardAccountExceptTCL(t)&&(u=!0);var d,p=Object.keys(o).length>0;if(i){var m,h,g=function(e){return e.match(Ua)}(i);d=ti(i,g,!(null!==n&&void 0!==n&&null!==(m=n.modernBrandingConfigs)&&void 0!==m&&null!==(h=m.transactionList)&&void 0!==h&&h.transactionListSuppressTransactionDetails),a.transactions_label_pending)}var v=null===n||void 0===n||null===(s=n.modernBrandingConfigs)||void 0===s||null===(l=s.otherConfigs)||void 0===l?void 0:l.showCleansedTransaction;return e.forEach((function(e){if((!p||function(e,t){return!(null===t||void 0===t||!t.credit||null===t||void 0===t||!t.debit)||(null!==t&&void 0!==t&&t.credit?e.creditTransaction:null===t||void 0===t||!t.debit||!e.creditTransaction)}(e,o))&&function(e,t){if(void 0!=(null===t||void 0===t?void 0:t.minAmount)&&void 0!=(null===t||void 0===t?void 0:t.maxAmount)){if(""==(null===t||void 0===t?void 0:t.minAmount)&&""==(null===t||void 0===t?void 0:t.maxAmount))return!0;if(!(e.amount>=Number(null===t||void 0===t?void 0:t.minAmount)&&e.amount<=Number(null===t||void 0===t?void 0:t.maxAmount)))return!1}return!0}(e,r)){var s=it.getDescription(e,t,n,a,!1),l=Object.assign({},e);if(l.displayDescription=s.description,l.showImageIcon=s.showImageIcon,null!=e.amount){var m=e.creditTransaction?e.amount:-e.amount;u&&!e.creditTransaction&&(e.fee>0||e.amountToInterest>0)&&0===e.amount&&null!==e.amountToPrincipal&&e.amountToPrincipal!==e.amount&&(m=-e.amountToPrincipal),l.displayAmount=m}if(l.formattedTransactionDate=qn(e.transactionDate,Gn),v&&null!==e&&void 0!==e&&e.cleanDescription&&(l.displayDescription=e.cleanDescription),""!==i){var h,g;if(l.formattedAmount=Y.a.convertNumberToUSD(l.displayAmount,!0),null!==n&&void 0!==n&&null!==(h=n.modernBrandingConfigs)&&void 0!==h&&null!==(g=h.transactionList)&&void 0!==g&&g.transactionListSuppressTransactionDetails||(l.formattedLedgerBalance=Y.a.convertNumberToUSD(e.ledgerBalance,!0)),null!==e.fee&&(l.formattedFee=Y.a.convertNumberToUSD(e.fee,!0)),null!==e.amountToInterest&&(l.formattedAmountToInterest=Y.a.convertNumberToUSD(e.amountToInterest,!0)),null!==e.amountToPrincipal){var f=e.amountToPrincipal;u&&(f=Math.abs(f)),l.formattedAmountToPrincipal=Y.a.convertNumberToUSD(f,!0)}null!==e.amountToEscrow&&(l.formattedAmountToEscrow=Y.a.convertNumberToUSD(e.amountToEscrow,!0)),i&&!d(l)||c.push(l)}else c.push(l)}})),c}return e},Zi=function(e,t){var n;return e&&e.length>0?e.map((function(e){var a=Object(m.a)({},e),i=!1,o=function(e,t){if(e.pending)return t;var n=e.transactionDate;return F()(n,"MM/DD/yyyy").format(f.a.CALENDAR_DATE_FORMAT)}(e,t);return n!==o&&(n=o,i=!0),a.groupId=i?n:void 0,a})):e},Qi=function(e){var t=e.transactions,n=e.aggregateTransactions,a=e.transactionsLimit,i=e.invalidatedTransactions,o=e.filter,r=e.status,s=e.allowedTransactionTypes,l=e.amountRangeObj,c=e.sortOptions,d=e.emptyResultsFetchCount,m=e.children,h=ca(),g=h.selectedAccount,v=h.pageConfigs,_=h.i18nStrings,b=h.defaultLocation,C=Object(p.v)(),y=function(){Q.a.reset()};Object(u.useEffect)((function(){return y}),[]);var D=r;r!==f.a.SUCCESS||g.historyAllowed&&!g.tpvReference||(D=f.a.ERROR);var S=Ki(n,g,v,_,o,s,l),O=c.field?c:Gi;if(C)S=Wi(S,Gi),S=Zi(S,_.transactions_label_pending);else if("amount"===c.field){var I=function(e){return e.reduce((function(e,t){var n=Object(L.a)(e,2),a=n[0],i=n[1];return t.creditTransaction?a.push(t):i.push(t),e}),[[],[]])}(S),E=Object(L.a)(I,2),k=E[0],T=E[1];k=Wi(k,O),T=Wi(T,O),S=c.direction===Yi?k.concat(T):T.concat(k)}else S=Wi(S,O);var A=S.length;return S.length>a&&(S=S.slice(0,a)),_.noData=function(e,t,n){return t?"".concat(e.transactions_no_data_filtered,' "').concat(t,'"'):Object.keys(n).length?e.transactions_no_data_filtered_by_transaction_type:e.transactions_no_data}(_,o,s),_.ariaDataHelpText=_.transaction_table_helptext,m({status:D,transactions:S,transactionsLimit:a,count:null===t||void 0===t?void 0:t.length,total:n.length,totalMatchingSearchCriteria:A,invalidatedTransactions:i,i18nStrings:_,pageConfigs:v,selectedAccount:g,defaultLocation:b,filter:o,sortOptions:c,allowedTransactionTypes:s,isSmallViewport:C,amountRangeObj:l,emptyResultsFetchCount:d})};Qi.getStores=function(){return[ve.b]},Qi.getPropsFromStores=function(){return Object(m.a)({},ve.b.getState())},Qi.propTypes={transactions:c.a.arrayOf(c.a.object),aggregateTransactions:c.a.arrayOf(c.a.object),invalidatedTransactions:c.a.bool,filter:c.a.string,
1sortOptions:c.a.object,status:c.a.string,allowedTransactionTypes:c.a.object,emptyResultsFetchCount:c.a.number,amountRangeObj:c.a.object};var Xi=C()(Qi),zi=Object(On.a)(kn.a)((function(e){return{width:"100%",paddingTop:e.theme.spacing(2)}})),Ji=function(e){var t,n=e.status,a=e.transactionsLimit,i=e.totalMatchingSearchCriteria,o=e.startDate,r=e.endDate,s=e.dateRange,l=e.isCustomDateRangeSet,c=e.emptyResultsFetchCount,u=e.i18nStrings,h=ca(),g=h.pageConfigs,v=h.defaultLocation,_=h.selectedAccount;(n===f.a.ERROR&&(t=d.a.createElement(p.g,{title:g.modernBrandingConfigs.transactionList.transactionListGenericErrorMessage,description:g.modernBrandingConfigs.transactionList.transactionListGenericErrorMessageAction,sx:{fontSize:50}})),n===f.a.LOADING&&(t=d.a.createElement(p.l,{size:30})),n===f.a.SUCCESS)&&(t=c>1&&i<=a||l&&i<=a?d.a.createElement(Mn.a,{variant:"body2",color:"primary.main",align:"center"},g.modernBrandingConfigs.transactionList.transactionListMaxLimitReachedLabel):d.a.createElement(p.h,null,d.a.createElement(wn.a,{id:"load-more-trigger",variant:"text",onClick:function(){if(l||a<i&&i-a>=ve.a)Q.a.incrementTransactionsLimit(ve.a);else{var e=ae.getPropsBackClick({startDate:o,endDate:r,dateRange:s}),t=v||{},n=t.locationName,c=void 0===n?"":n,u=t.productUserGuid,d=void 0===u?"":u;if(o!==e.startDate||r!==e.endDate){ee.handleBackClick(e);var p=Object(m.a)(Object(m.a)({},e),{},{dateRangeChangeAction:f.a.LOAD_MORE});Q.a.setTransactionDateRange(p),Q.a.getTransactions(g.contextPath,g.rftoken,_.id,e.startDate,e.endDate,d,c,g.pageId)}}}},u.transactions_label_load_more)));return d.a.createElement(zi,null,t)};Ji.getStores=function(){return[ne]},Ji.getPropsFromStores=function(){return Object(m.a)({},ne.getState())},Ji.propTypes={status:c.a.string,transactionsLimit:c.a.number,totalMatchingSearchCriteria:c.a.number,startDate:c.a.object,endDate:c.a.object,dateRange:c.a.object,isCustomDateRangeSet:c.a.bool,emptyResultsFetchCount:c.a.number,i18nStrings:c.a.object};var $i=C()(Ji),eo=n(1604),to=n.n(eo),no=n(1483),ao=n.n(no),io=n(1981),oo=n.n(io),ro=n(1336),so=n(1317),lo=n(2336),co=function(){function e(){Object(a.a)(this,e)}return Object(i.a)(e,null,[{key:"openPrintWindow",value:function(e){var t=window.open("","printWindow","width=800,height=600,resizable=no,scrollbars=yes,directories=no,menubar=yes,location=no,toolbar=no,status=no");t.document.write(e),t.document.close()}},{key:"generatePrintHTML",value:function(e,t,n){return'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"/><meta http-equiv="cache-control" content="no-cache no-store must-revalidate"/><meta http-equiv="pragma" content="no-cache"/><meta http-equiv="expires" content="Mon, 22 Jul 2002 11:12:01 GMT"/>'+(t?'<link href="'+t+'" rel="stylesheet" type="text/css" media="screen,print" />':"")+(e?"<title>"+e+"</title>":"")+"</head><body>"+n+'</body><script type="text/javascript">setTimeout(function() { window.print() }, 250);<\/script></html>'}}]),e}(),uo=to()('<html>\n<head>\n <meta http-equiv="content-type"\n content="text/html; charset=UTF-8" />\n <meta http-equiv="cache-control"\n content="no-cache no-store must-revalidate" />\n <meta http-equiv="pragma"\n content="no-cache" />\n <meta http-equiv="expires"\n content="Mon, 22 Jul 2002 11:12:01 GMT" />\n</head>\n<body>\n <form action="<%= imageUrl %>"\n method="post">\n <input type="hidden"\n name="accountId"\n value="<%= selectedAccountId %>">\n <input type="hidden"\n name="checkNumber"\n value="<%= checkNumber %>">\n <input type="hidden"\n name="checkImageIdentifier"\n value="<%= checkImageIdentifier %>">\n <input type="hidden"\n name="depositSlipIdentifier"\n value="<%= depositSlipIdentifier %>">\n <input type="hidden"\n name="checkSide"\n value="<%= side %>">\n <input type="hidden"\n name="checkType"\n value="pdf">\n <input type="hidden"\n name="locationId"\n value="<%= customerId %>">\n <input type="hidden"\n name="dateTransaction"\n value="<%= transactionDate %>">\n <input type="hidden"\n name="fiId"\n value="<%= fiId %>">\n <input type="hidden"\n name="rftoken"\n value="<%= rftoken %>">\n </form>\n <script type="text/javascript">\n document.forms[0].submit();\n <\/script>\n</body>\n\n</html>'),po=Object(On.a)(ro.a)((function(e){return{display:"flex",flexDirection:"column",alignItems:"center",padding:e.theme.spacing(3,2)}})),mo=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e)).getImages=i.getImages.bind(Object(E.a)(i)),i.getBase64ImageString=i.getBase64ImageString.bind(Object(E.a)(i)),i.isPDF=i.isPDF.bind(Object(E.a)(i)),i.renderImages=i.renderImages.bind(Object(E.a)(i)),i.checkListClick=i.checkListClick.bind(Object(E.a)(i)),i.isBB=!1,i.isCheckImage=!1,i.isDepositImage=!1,i.props.transaction.depositSlipIdentifier?i.isDepositImage=!0:i.isCheckImage=!0,i.state={showList:!1,viewImages:!0},i.checkImageContainer=d.a.createRef(),i}
1return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=(this.props.pageConfigs||{}).customerType;if(this.isBB=e===f.a.BUSINESS.toLowerCase(),!this.isPDF()){var t=this.props.transaction.storeId;this.props.images[t]&&this.props.images[t].status!==f.a.LOADING&&this.props.images[t].status!==f.a.ERROR||this.getImages()}}},{key:"render",value:function(){var e=this,t=this.props,n=t.closeCheckImageViewerDialog,a=t.pageConfigs,i=t.i18nStrings,o=t.selectedAccount,r=function(){console.log("Print Check Image");var t=document.createElement("div"),n=e.renderImages();A.a.render(d.a.createElement("div",null,n),t),co.openPrintWindow(co.generatePrintHTML("","",t.innerHTML))};return d.a.createElement(so.a,{open:!0,onClose:n,"aria-labelledby":"check-image-modal-dialog-title","aria-describedby":"check-image-modal-dialog-description",maxWidth:"sm",fullWidth:!0},d.a.createElement(lo.a,{id:"check-image-modal-dialog-title",align:"right"},!this.isPDF()&&d.a.createElement(wa.a,{"aria-label":i.transactions_label_print,title:i.transactions_label_print,onClick:r,onKeyDown:function(e){13===e.keyCode&&r()}},d.a.createElement(oo.a,null)),d.a.createElement(wa.a,{"aria-label":i.transactions_label_close,title:i.transactions_label_close,onClick:n,onKeyDown:function(e){13===e.keyCode&&n()}},d.a.createElement(ao.a,null))),d.a.createElement(po,null,d.a.createElement("div",{ref:"checkImageContainer"},this.renderImages()),this.isBB&&null!==a&&void 0!==a&&a.modernBrandingConfigs.transactionList.transactionListBBMultiImagesDepositEnabled&&this.isDepositImage&&0==this.isPDF()?d.a.createElement(kn.a,null,ot.renderCheckList(i,ke.a,this.state.showList,this.checkListClick),this.state.showList?d.a.createElement(kn.a,{className:ke.a["checkList-container"]},d.a.createElement(et,Object.assign({},this.props,{account:o}))):null):null))}},{key:"getImages",value:function(){var e=this.props,t=e.transaction,n=e.selectedAccount,a=e.location,i=e.pageConfigs,o=(a||{}).productUserGuid,r=F()(new Date(t.transactionDate)).startOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT);this.isDepositImage?xe.getDepositImage(i.contextPath,i.rftoken,t.storeId,n.id,n.fiId,r,o,t.depositSlipIdentifier):xe.getCheckImage(i.contextPath,i.rftoken,t.storeId,n.id,n.fiId,r,o,t.checkNumber,t.checkImageIdentifier)}},{key:"getBase64ImageString",value:function(e){var t=f.a.DEFAULT_IMAGE_TYPE;if(this.isDepositImage){var n=this.props.pageConfigs.depositImage.format;n&&(t=n)}else{var a=this.props.pageConfigs.checkImage.format;a&&(t=a)}return"data:image/"+t+";base64,"+e}},{key:"renderImages",value:function(){var e=this;if(this.isPDF()){var t=[];return t.push(d.a.createElement(wn.a,{key:"front",id:"pdf-front-trigger",variant:"outlined",onClick:function(t){return e.pdfLinkClick("front",t)}},this.props.i18nStrings.pdf_link_front)),(this.isCheckImage&&"2"===this.props.pageConfigs.checkImage.sides||this.isDepositImage&&"2"===this.props.pageConfigs.depositImage.sides)&&t.push(d.a.createElement(wn.a,{key:"back",id:"pdf-back-trigger",variant:"outlined",onClick:function(t){return e.pdfLinkClick("back",t)}},this.props.i18nStrings.pdf_link_back)),d.a.createElement(p.h,{justify:"space-between",sx:{width:"100%"}},d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary"},this.props.i18nStrings.transactions_view_check_image),d.a.createElement(Na.a,{spacing:1,direction:"row"},t))}var n=this.props.transaction.storeId,a=this.props.images[n];if(a){if(a.status===f.a.LOADING)return d.a.createElement(p.l,{size:30,label:this.props.i18nStrings.transactions_label_loading});if(a.status==f.a.SUCCESS){var i=[];return a.front&&i.push(d.a.createElement("img",{key:"front",alt:"chequeImage","data-testid":"chequeImageFront",className:ke.a["check-image"],src:this.getBase64ImageString(a.front)})),a.back&&(this.isCheckImage&&"2"===this.props.pageConfigs.checkImage.sides||this.isDepositImage&&"2"===this.props.pageConfigs.depositImage.sides)&&i.push(d.a.createElement("img",{key:"back",alt:"chequeImage","data-testid":"chequeImageBack",className:ke.a["check-image"],src:this.getBase64ImageString(a.back)})),i}return d.a.createElement(p.g,{title:this.props.pageConfigs.modernBrandingConfigs.transactionList.transactionListCheckImageErrorMessage,description:this.props.pageConfigs.modernBrandingConfigs.transactionList.transactionListCheckImageErrorMessageAction,sx:{pb:function(e){return e.spacing(3)}}})}return null}},{key:"isPDF",value:function(){return(this.isCheckImage&&this.props.pageConfigs.checkImage&&this.props.pageConfigs.checkImage.format&&"pdf"===this.props.pageConfigs.checkImage.format.toLowerCase()||this.isDepositImage&&this.props.pageConfigs.depositImage&&this.props.pageConfigs.depositImage.format&&"pdf"===this.props.pageConfigs.depositImage.format.toLowerCase())&&!0,!1}},{key:"checkListClick",value:function(e){var t=this;(e&&13==e.keyCode||e&&"click"==e.type)&&(!0===!this.state.showList&&Ae.a.dispatch(f.a.CLOSE_LIST_ROW_EVENT,this.props.transaction.storeId),setTimeout((function(){t.refs.checkListLink&&t.refs.checkListLink.focus()}),300),this.setState({showList:!this.state.showList}),this.setState({viewImages:!this.state.viewImages}))}},{key:"pdfLinkClick",value:function(e,t){var n=f.a.URL_DEPOSIT_IMAGE_SIDE,a=f.a.URL_CHECK_IMAGE_SIDE,i=this.isDepositImage?n:a;i=Object(Re.b)(i);var o=this.props,r=o.transaction,s=o.selectedAccount,l=o.pageConfigs,c=F()(new Date(r.transactionDate)).startOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT),u=Math.floor(1e3*Math.random());if(Ne.a.isAndroid()){i+="?accountId="+s.id+"&checkNumber="+r.checkNumber+"&checkImageIdentifier="+r.checkImageIdentifier+"&depositSlipIdentifier="+r.depositSlipIdentifier+"&checkSide="+e+"&dateTransaction="+c+"&fiId="+s.fiId+"&locationId="+s.customerId+"&rftoken="+l.rftoken;window.open(i,u,"menubar=no,status=no,toolbar=no,location=no,titlebar=no")}else{window.open("",u,"menubar=no,status=no,toolbar=no,location=no,titlebar=no").document.write(uo({imageUrl:i,selectedAccountId:s.id,checkNumber:r.checkNumber,checkImageIdentifier:r.checkImageIdentifier,depositSlipIdentifier:r.depositSlipIdentifier,side:e,customerId:s.customerId,transactionDate:c,fiId:s.fiId,rftoken:l.rftoken}))}t.preventDefault(),t.stopPropagation()}}],[{key:"getStores",value:function(){return[Me]}},{key:"getPropsFromStores",value:function(){return Me.getState()}}]),n}(u.Component);mo.PropTypes={closeCheckImageViewerDialog:c.a.func.isRequired,handleClose:c.a.func,selectedAccount:c.a.object.isRequired,location:c.a.object,transaction:c.a.object.isRequired,pageConfigs:c.a.object.isRequired,i18nStrings:c.a.objectOf(c.a.string).isRequired};var ho=C()(mo),go=["isCheckImageViewerModalOpen"],vo=function(e){var t=Ii(),n=t.isCheckImageViewerModalOpen,a=Object(h.a)(t,go);return n&&d.a.createElement(ho,Object.assign({},a,e))},fo=n(537),_o=n(1337),bo=n(1335),Co=n(1703),yo=n.n(Co),Do=Object(On.a)(_o.a)((function(){return{width:"100%","& .MuiOutlinedInput-notchedOutline legend":{width:"unset"},height:f.a.TRANSACTION_LIST_MENU_HEIGHT}})),So=d.a.memo((function(e){var t=e.filter,n=e.i18nStrings,a=Object(u.useState)(t),i=Object(L.a)(a,2),o=i[0],r=i[1],s=Object(u.useCallback)(Object(fo.debounce)((function(e){Q.a.resetTransactionsLimit(),Q.a.setFilter(e)}),500),[]),l=function(){r("")},c=function(){l(),Q.a.resetTransactionsLimit(),Q.a.setFilter("")};return Object(u.useEffect)((function(){t||l()}),[t]),d.a.createElement(Do,{value:o,onChange:function(e){var t=e.target.value;r(t),s(t)},id:"transactions-filter-text",placeholder:n.transactions_label_search,startAdornment:d.a.createElement(bo.a,{position:"start"},d.a.createElement(yo.a,{sx:{color:function(e){return e.palette.grey[60]}}})),endAdornment:o&&d.a.createElement(bo.a,{position:"end"},d.a.createElement(wa.a,{id:"clear-search-input-trigger","aria-label":"clear search input",onClick:c,onMouseDown:c,edge:"end",sx:{paddingRight:0,"&:hover":{backgroundColor:"none !important"}}},d.a.createElement(ao.a,{sx:{color:function(e){return e.palette.grey[60]},mr:.5}}))),inputProps:{"aria-label":"weight"},autoComplete:"off"})})),Oo=n(1323),Io=n(2359),Lo=n(1982),Eo=n.n(Lo),ko=n(2406),To=n(2433),Ao=n(2434),Ro=Object(On.a)(ko.a)((function(e){return{"& .ncrCheckbox-sizeMedium.ncrCheckbox-wrapper":{borderColor:e.theme.palette.action.active}}})),No=Object(On.a)(Mn.a)((function(e){return{fontStyle:"normal",fontWeight:"300",fontSize:"18px",color:e.theme.palette.action.active}})),wo=function(e){var t=e.defaultOptions,n=e.handleChange,a=e.pageConfigs,i=e.i18nStrings,o=Object(u.useState)(t),r=Object(L.a)(o,2),s=r[0],l=r[1],c={Credit:{key:"credit",label:i.transactions_label_deposit},Debit:{key:"debit",label:i.transactions_label_withdrawal}},p=function(e){var t=Object(m.a)({},s);t[e.target.name]=e.target.checked,l(t),n(t)};return d.a.createElement(kn.a,{sx:{width:"100%"}},d.a.createElement(No,{variant:"body1",fontSize:20,sx:{py:function(e){return e.spacing(1)}}},a.modernBrandingConfigs.transactionList.transactionListTransactionTypeLabel),d.a.createElement(Rn.a,{component:"fieldset",variant:"standard",sx:{width:"100%",pl:function(e){return e.spacing(1)}}},d.a.createElement(To.a,{"aria-label":"transaction type",row:!0},d.a.createElement(An.a,{container:!0,spacing:2},d.a.createElement(An.a,{item:!0,xs:6},d.a.createElement(Ao.a,{control:d.a.createElement(Ro,{checked:s.credit,onChange:p,name:c.Credit.key}),label:c.Credit.label})),d.a.createElement(An.a,{item:!0,xs:6},d.a.createElement(Ao.a,{control:d.a.createElement(Ro,{checked:s.debit,onChange:p,name:c.Debit.key}),label:c.Debit.label}))))))};wo.propTypes={defaultOptions:c.a.object,handleChange:c.a.func,pageConfigs:c.a.object,i18nStrings:c.a.object};var Po=n(1322),Bo=Object(On.a)(Mn.a)((function(e){return{fontStyle:"normal",fontWeight:"300",fontSize:"18px",color:e.theme.palette.action.active}})),xo="minAmount",jo="maxAmount",Mo=function(e){var t=e.defaultAmount,n=e.handleChange,a=e.i18nStrings,i=Object(u.useState)(t),o=Object(L.a)(i,2),r=o[0],s=o[1],l=function(e){var t=Object(m.a)({},r);t[e.target.name]=e.target.value,s(t),n(t)};return d.a.createElement(kn.a,{sx:{width:"100%"}},d.a.createElement(Bo,{variant:"body1",fontSize:20,sx:{pb:function(e){return e.spacing(1)}}},a.transactions_label_transaction_amount),d.a.createElement(An.a,{container:!0,spacing:2},d.a.createElement(An.a,{item:!0,xs:6},d.a.createElement(Po.a,{type:"number",id:"min-transaction-amount",sx:{mr:function(e){return e.spacing(1.5)},ml:function(e){return e.spacing(.2)},backgroundColor:function(e){return e.palette.common.white},minWidth:"100%","& .MuiFilledInput-input":{py:function(e){return e.spacing(1.6)}}},InputProps:{startAdornment:d.a.createElement(bo.a,{position:"start",sx:{"&":{mt:"0 !important"}}},"$")},placeholder:a.transactions_label_transaction_min_amount_placeholder,onChange:l,onKeyPress:function(e){"-"!==(null===e||void 0===e?void 0:e.key)&&"+"!==(null===e||void 0===e?void 0:e.key)&&"e"!==(null===e||void 0===e?void 0:e.key)||e.preventDefault()},name:xo,value:r.minAmount})),d.a.createElement(An.a,{item:!0,xs:6},d.a.createElement(Po.a,{type:"number",id:"max-transaction-amount",sx:{backgroundColor:function(e){return e.palette.common.white},minWidth:"100%","& .MuiFilledInput-input":{py:function(e){return e.spacing(1.6)}}},InputProps:{startAdornment:d.a.createElement(bo.a,{position:"start",sx:{"&":{mt:"0 !important"}}},"$")},placeholder:a.transactions_label_transaction_max_amount_placeholder,onChange:l,onKeyPress:function(e){"-"!==(null===e||void 0===e?void 0:e.key)&&"+"!==(null===e||void 0===e?void 0:e.key)&&"e"!==(null===e||void 0===e?void 0:e.key)||e.preventDefault()},name:jo,value:r.maxAmount}))))};Mo.propTypes={defaultAmount:c.a.object,handleChange:c.a.func,i18nStrings:c.a.object};var Fo=Object(On.a)(ni.a)((function(e){var t=e.theme;return Object(m.a)(Object(m.a)({},t.typography.body2),{},{background:t.palette.common.white,color:t.palette.action.active,width:"100%",border:"1px solid ".concat(t.palette.primary.main),height:f.a.TRANSACTION_LIST_MENU_HEIGHT})})),Vo=Object(On.a)(Mn.a)((function(){return{fontStyle:"normal",fontWeight:"600",fontSize:"25px",color:"black"}})),Uo=Object(On.a)(Mn.a)((function(e){return{fontStyle:"normal",fontWeight:"300",fontSize:"18px",color:e.theme.palette.action.active}})),Ho=Object(On.a)(wa.a)((function(){return{color:"black"}})),Yo=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e)).handleDateRangeChange=i.handleDateRangeChange.bind(Object(E.a)(i)),i.applyFiltersChange=i.applyFiltersChange.bind(Object(E.a)(i)),i.clearAllFilters=i.clearAllFilters.bind(Object(E.a)(i)),i.closePopover=i.closePopover.bind(Object(E.a)(i)),i.openPopover=i.openPopover.bind(Object(E.a)(i)),i.handleTransactionTypeOptionsChange=i.handleTransactionTypeOptionsChange.bind(Object(E.a)(i)),i.handleTransactionAmountOptionsChange=i.handleTransactionAmountOptionsChange.bind(Object(E.a)(i)),i.state={isApplyButtonDisabled:!0,open:!1},i.filterState={typeSelections:{}
1,startDate:null,endDate:null,amountRange:{}},i.prevFilterState={typeSelections:{},startDate:null,endDate:null,amountRange:{}},i.anchorRef=d.a.createRef(),i}return Object(i.a)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t,n,a,i,o,r;(null===(t=this.filterState)||void 0===t||null===(n=t.startDate)||void 0===n?void 0:n.format(f.a.TRANSACTIONS_DATE_FORMAT))!==e.startDate&&(null===(a=this.filterState)||void 0===a||null===(i=a.endDate)||void 0===i?void 0:i.format(f.a.TRANSACTIONS_DATE_FORMAT))!==e.endDate&&this.resetDateFilterState(),null!==(o=Object.keys(e.activeTransactionTypes))&&void 0!==o&&o.length||this.resetTypeSelectionFilterState(),null!==(r=Object.keys(e.activeAmountRange))&&void 0!==r&&r.length||this.resetAmountSelectionFilterState()}},{key:"render",value:function(){var e=this,t=this.state,n=t.open,a=t.isApplyButtonDisabled,i=this.props,o=i.i18nStrings,r=i.pageConfigs,s=i.isDesktop,l=i.isTab,c=i.smallScreen,u=s||l?"right":"bottom",h=s?p.f.Large:p.f.TwoThirds,g=s||l?2:1;return d.a.createElement(d.a.Fragment,null,d.a.createElement(Oo.a,{id:"transactions-advance-filter-trigger","aria-label":o.transactions_label_advanced_filters,ref:this.anchorRef,onClick:this.openPopover,sx:{"&.Mui-focusVisible":{border:function(e){return"1px solid ".concat(e.palette.primary.main)},borderRadius:"8px"},height:"100%",width:"100%"}},d.a.createElement(Fo,{variant:"rounded"},d.a.createElement(Eo.a,{sx:{color:function(e){return e.palette.primary.main}}}),d.a.createElement(Mn.a,{variant:"body2",align:"left",sx:{marginLeft:"7px",color:function(e){return e.palette.primary.main}}},o.transactions_label_filter))),d.a.createElement(p.e,{anchor:u,size:h,open:n,onClose:this.closePopover,sx:Object(m.a)({backgroundColor:function(e){return e.palette.grey[100]}},!s&&!l&&{display:"flex",justifyContent:"space-between",borderRadius:"10px 10px 0px 0px",width:"100%",height:"100%",top:"42px"})},d.a.createElement(p.h,{direction:"column",justify:"space-between",sx:{height:"100%"}},d.a.createElement(kn.a,{sx:{m:function(e){return e.spacing(c?1.5:4)},flexGrow:1}},d.a.createElement(p.h,{direction:"row",justify:"space-between",sx:{mb:function(e){return e.spacing(c?3:2)}}},d.a.createElement(Vo,null,o.transactions_label_filter_options),d.a.createElement(Ho,{onClick:this.closePopover,onKeyDown:function(t){13===t.keyCode&&setTimeout((function(){e.closePopover()}))}},d.a.createElement(Io.a,null))),c&&d.a.createElement(jn.a,{sx:{mb:function(e){return e.spacing(3)}}}),d.a.createElement(p.r,{id:"transactions-advance-filters",align:"flex-start",justifyContent:"flex-start",spacing:2.5},d.a.createElement(p.h,{align:"end",justify:"space-between",sx:{width:"100%"},id:"transactions-type-filter"},d.a.createElement(wo,{defaultOptions:this.filterState.typeSelections,handleChange:this.handleTransactionTypeOptionsChange,i18nStrings:o,pageConfigs:r})),d.a.createElement(kn.a,{sx:{width:"100%"}},d.a.createElement(Uo,{variant:"body1",fontSize:20,sx:{pb:function(e){return e.spacing(1)}}},o.transactions_label_date_range),d.a.createElement(p.h,{sx:{pb:function(e){return e.spacing(2)}},justify:"flex-start",id:"transactions-date-range-filter"},d.a.createElement(p.c,{fromLabel:null===o||void 0===o?void 0:o.daterange_label_start_date,toLabel:null===o||void 0===o?void 0:o.daterange_label_end_date,defaultStartDate:this.filterState.startDate,defaultEndDate:this.filterState.endDate,handleChange:this.handleDateRangeChange,calendars:g,isMobileView:c}))),d.a.createElement(p.h,{align:"end",justify:"space-between",sx:{width:"100%"},id:"transactions-amount-filter"},d.a.createElement(Mo,{defaultAmount:this.filterState.amountRange,i18nStrings:o,pageConfigs:r,handleChange:this.handleTransactionAmountOptionsChange})))),d.a.createElement(Na.a,{direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:2,sx:Object(m.a)(Object(m.a)({boxShadow:2,width:"100%"},c&&{marginBottom:"42px",boxShadow:"none"}),{},{p:function(e){return e.spacing(2.4)},backgroundColor:function(e){return e.palette.grey[50]},pr:function(e){return e.spacing(c?1.5:3)}})},d.a.createElement(wn.a,{id:"clear-filter-button","aria-labelledby":"
1clearButtonText",variant:"text",sx:{p:function(e){return e.spacing(1.2)}},onClick:this.clearAllFilters,disabled:!this.isClearAllButtonEnabled()},d.a.createElement(Mn.a,{variant:"body2",id:"clearButtonText"},r.modernBrandingConfigs.transactionList.transactionListLabelClearAll)),d.a.createElement(wn.a,{id:"apply-button","aria-labelledby":"applyButtonText",variant:"contained",sx:{p:function(e){return e.spacing(1.2)},backgroundColor:function(e){return e.palette.primary.main}},onClick:this.applyFiltersChange,disabled:a},d.a.createElement(Mn.a,{variant:"body2",id:"applyButtonText"},r.modernBrandingConfigs.transactionList.transactionListLabelApply))))))}},{key:"componentDidMount",value:function(){var e=this;setTimeout((function(){var t=e.props,n=t.pageConfigs,a=t.defaultLocation,i=t.selectedAccount,o={startDate:ae.getStartDate(null===n||void 0===n?void 0:n.modernBrandingConfigs.transactionList.transactionListTransactionRange),endDate:F()().endOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT),dateRange:null===n||void 0===n?void 0:n.modernBrandingConfigs.transactionList.transactionListTransactionRange,dateRangeChangeAction:f.a.INITIAL_LOAD};Q.a.setTransactionDateRange(o);var r=a||{},s=r.locationName,l=void 0===s?"":s,c=r.productUserGuid,u=void 0===c?"":c;ee.setDefaultDateRange(null===n||void 0===n?void 0:n.modernBrandingConfigs.transactionList.transactionListTransactionRange),ee.handleDateRangeChange(o),Q.a.getTransactions(n.contextPath,n.rftoken,i.id,o.startDate,o.endDate,u,l,n.pageId)}))}},{key:"handleDateRangeChange",value:function(e){var t=null!==e&&void 0!==e?e:[],n=Object(L.a)(t,2);this.filterState.startDate=n[0],this.filterState.endDate=n[1];var a=this.isDateRangeValid()&&this.isAmountRangeValid();this.setState({isApplyButtonDisabled:!a})}},{key:"handleTransactionTypeOptionsChange",value:function(e){var t,n;this.filterState.typeSelections=e;var a=(null===(t=this.filterState.typeSelections)||void 0===t?void 0:t.debit)||(null===(n=this.filterState.typeSelections)||void 0===n?void 0:n.credit),i=this.isDateRangeValid()&&this.isAmountRangeValid()&&a;this.setState({isApplyButtonDisabled:!i})}},{key:"handleTransactionAmountOptionsChange",value:function(e){this.filterState.amountRange=e;var t=this.isDateRangeValid()&&this.isAmountRangeValid();this.setState({isApplyButtonDisabled:!t})}},{key:"isClearAllButtonEnabled",value:function(){var e,t,n,a,i=this.filterState.startDate||this.filterState.endDate,o=(null===(e=this.filterState.typeSelections)||void 0===e?void 0:e.debit)||(null===(t=this.filterState.typeSelections)||void 0===t?void 0:t.credit),r=(null===(n=this.filterState.amountRange)||void 0===n?void 0:n.minAmount)||(null===(a=this.filterState.amountRange)||void 0===a?void 0:a.maxAmount);return i||o||r}},{key:"isDateRangeValid",value:function(){return!this.filterState.startDate&&!this.filterState.endDate||!(!this.filterState.startDate||!this.filterState.startDate.isValid())&&(!(!this.filterState.endDate||!this.filterState.endDate.isValid())&&(!(this.filterState.endDate<this.filterState.startDate)&&!(this.filterState.endDate>F()())))}},{key:"isAmountRangeValid",value:function(){var e,t,n,a,i=null===(e=this.filterState)||void 0===e||null===(t=e.amountRange)||void 0===t?void 0:t.minAmount,o=null===(n=this.filterState)||void 0===n||null===(a=n.amountRange)||void 0===a?void 0:a.maxAmount;return!i&&!o||!!(i&&o&&Number(i)<Number(o))}},{key:"openPopover",value:function(){this.restoreFilterState(),this.setState({open:!0,isApplyButtonDisabled:!0})}},{key:"closePopover",value:function(){this.setState({open:!1})}},{key:"applyFiltersChange",value:function(){this.processFilterUpdates(),this.setState({isApplyButtonDisabled:!0,open:!1}),this.preserveFilterState()}},{key:"clearAllFilters",value:function(){this.resetCurrentDateFilterState(),this.resetTypeSelectionFilterState(),this.resetAmountSelectionFilterState(),this.processFilterUpdates(),this.setState({open:!1})}},{key:"processFilterUpdates",value:function(){var e=this.props,t=e.defaultLocation,n=e.pageConfigs,a=e.selectedAccount,i=t||{},o=i.locationName,r=void 0===o?"":o,s=i.productUserGuid,l=void 0===s?"":s;if(this.hasDateRangeInputChanged()){var c=this.filterState.startDate?this.filterState.startDate.format(f.a.TRANSACTIONS_DATE_FORMAT):ae.getStartDate(null===n||void 0===n?void 0:n.modernBrandingConfigs.transactionList.transactionListTransactionRange),u=this.filterState.endDate?this.filterState.endDate.format(f.a.TRANSACTIONS_DATE_FORMAT):F()().endOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT),d={startDate:c,endDate:u,dateRange:null===n||void 0===n?void 0:n.modernBrandingConfigs.transactionList.transactionListTransactionRange,isCustomDateRangeSet:null!==this.filterState.startDate&&null!==this.filterState.endDate,dateRangeChangeAction:f.a.DATE_FILTER};ee.handleDateRangeChange(d),Q.a.setTransactionDateRange(d);Q.a.getTransactions(n.contextPath,n.rftoken,a.id,c,u,l,r,n.pageId,!0)}else Q.a.resetTransactionsLimit();Q.a.setTransactionTypes(this.filterState.typeSelections),Q.a.setTransactionAmountRange(this.filterState.amountRange)}},{key:"hasDateRangeInputChanged",value:function(){var e,t;return this.filterState.startDate||this.filterState.endDate?!(null!==(e=this.filterState.startDate)&&void 0!==e&&e.isSame(this.prevFilterState.startDate))||!(null!==(t=this.filterState.endDate)&&void 0!==t&&t.isSame(this.prevFilterState.endDate)):this.prevFilterState.startDate&&this.prevFilterState.endDate}},{key:"preserveFilterState",value:function(){this.prevFilterState=Object(m.a)({},this.filterState)}},{key:"restoreFilterState",value:function(){this.filterState=Object(m.a)({},this.prevFilterState)}},{key:"resetDateFilterState",value:function(){this.filterState.startDate=null,this.filterState.endDate=null,this.prevFilterState.startDate=null,this.prevFilterState.endDate=null}},{key:"resetCurrentDateFilterState",value:function(){this.filterState.startDate=null,this.filterState.endDate=null}},{key:"resetTypeSelectionFilterState",value:function(){this.filterState.typeSelections={},this.prevFilterState.typeSelections={}}},{key:"resetAmountSelectionFilterState",value:function(){this.filterState.amountRange={},this.prevFilterState.amountRange={}}}],[{key:"getStores",value:function(){return[ne]}},{key:"getPropsFromStores",value:function(){return ne.getState()}}]),n}(d.a.Component);Yo.propTypes={pageConfigs:c.a.object,i18nStrings:c.a.object,defaultLocation:c.a.object,selectedAccount:c.a.object,startDate:c.a.object,endDate:c.a.object,activeTransactionTypes:c.a.object,activeAmountRange:c.a.object,isDesktop:c.a.bool,isTab:c.a.bool,smallScreen:c.a.bool};var Go=C()(Yo),qo=d.a.forwardRef((function(e,t){return d.a.createElement(Go,Object.assign({},e,{forwardRef:t}))}));function Wo(e){console.log(e);var t=["Description","Date","Amount"],n=e.pageConfigs.suppressBalance;n||t.push("Balance");var a=[],i=e.i18nStrings.transactions_label_pending,o=e.accounts,r=e.pageConfigs;return e.transactions.map((function(e){return a.push(function(e,t,n,a){var i=e.pending,o=e.displayDescription,r=e.transactionDate,s=e.displayAmount,l=e.ledgerBalance;return{displayDescription:o,formattedTransactionDate:i?t:qn(r,Gn),formattedDisplayAmount:Y.a.convertNumberToUSD(s,!0),formattedLedgerBalance:null==l?void 0:Y.a.convertNumberToUSD(l,!0),additionalAmountDetails:Va(e,n,a)}}(e,i,o,r))})),u.createElement("div",{className:"printTransactionTable"},u.createElement(In.a,{className:"printTransactionTableBody"},u.createElement("div",{className:"printTransactionTableBodyHeaderRow"},t.map((function(e){return u.createElement("div",null,e)}))),a.map((function(e){var t;return u.createElement("div",{className:"printTransactionTableDataBody"},function(e,t){return u.createElement("div",{className:"printTransactionTableBodyRow"},u.createElement("div",null,e.displayDescription),u.createElement("div",null,e.formattedTransactionDate),u.createElement("div",null,e.formattedDisplayAmount),!t&&u.createElement("div",null,e.formattedLedgerBalance))}(e,n),(null===e||void 0===e||null===(t=e.additionalAmountDetails)||void 0===t?void 0:t.length)>0&&function(e){var t;return u.createElement("div",{className:"printTransactionTableBodyAdditionalRow"},u.createElement("div",{className:"label"},"Payment Breakdown"),null===(t=e.additionalAmountDetails)||void 0===t?void 0:t.map((function(e){return u.createElement("div",null,"".concat(e.label,": ").concat(Y.a.convertNumberToUSD(e.value,!0)))})))}(e))}))))}var Ko=function(e){var t=Object(m.a)({},e).accountHistoryData,n=Object(m.a)({},t),a=n.selectedAccount,i=n.pageConfigs;return d.a.createElement("div",{className:"print-history-transaction"},function(e){var t=Object(m.a)({},e).accountHistoryData,n=Object(m.a)({},t),a=n.selectedAccount,i=n.pageConfigs,o=P.a.showPrimaryHolderIdInAccountDescription(a,i)?"".concat(a.displayPrimaryHolderId," -"):"";o+=P.a.getMaskedAccountNumber(a)||"";var r=a.description,s=va.buildDataPoints(a,i,e).overviewItems;return d.a.createElement("div",{className:"account-details"},d.a.createElement("div",{className:"secContent"},d.a.createElement("div",{className:"left"},d.a.createElement("span",null,r," ",o)),d.a.createElement("div",{className:"right"},d.a.createElement(Yn,{className:"secContent",overviewItems:s}))))}(e),d.a.createElement("div",{className:"content"},function(){var e=ve.b.getState(),t=Object(m.a)({},e).dateRangeObj,n=Object(m.a)({},t),a=n.startDate,i=n.endDate,o=n.dateRangeChangeAction,r=ae.getPrintDateRangeLabel(a,i,o,v.CALENDAR_DATE_FORMAT);return d.a.createElement("div",{className:"date-range"},r)}(),function(e){var t=Object(m.a)({},e),n=t.accountHistoryData,a=t.props,i=Object(m.a)({},n),o=i.pageConfigs,r=i.i18nStrings,s=i.selectedAccount,l=Object(m.a)({},a).transactions;return d.a.createElement(Wo,{pageConfigs:o,transactions:l,i18nStrings:r,accounts:s})}(e)),d.a.createElement("div",null,d.a.createElement(pe,{account:a,pageConfigs:i})))};var Zo=function(e){var t=ca(),n=e.transactions;return d.a.createElement(wa.a,{id:"transactions-print-button","aria-label":t.i18nStrings.print_transactions,sx:{mr:function(e){return e.spacing(1)}},onClick:function(){!function(e,t){var n=document.createElement("div");A.a.render(d.a.createElement(Ko,{accountHistoryData:e,props:t}),n);var a=function(e){var t="".concat("/dbank/live/","sdp/dist/css/newPrint.css");return e.printCSSURL&&(t=e.printCSSURL),t}(Object(m.a)({},e).pageConfigs);co.openPrintWindow(co.generatePrintHTML("",a,n.innerHTML))}(t,e)},disabled:0===(null===n||void 0===n?void 0:n.length)},d.a.createElement(p.q,null))},Qo=n(1332);function Xo(e){var t=Object(m.a)({},ve.b.getState()),n=t.filter,a=t.allowedTransactionTypes,i=t.amountRangeObj,o=Object(m.a)({},i),r=o.minAmount,s=o.maxAmount,l="",c=!1;return""===n&&0===Object.keys(a).length&&null===r&&null===s||(c=!0),c&&null!==e&&void 0!==e&&e.transactions&&e.transactions.forEach((function(t,n){l+=t.exportTNUM,n<e.transactions.length-1&&(l+=f.a.EXPORT_FILTER_TRANSACTION_DELIMITER)}
1)),l}function zo(e){return void 0!==e&&null!==e}function Jo(e,t,n,a){var i=document.createElement("div");A.a.render(function(e,t,n){var a=f.a.URL_EXPORT.replace("{exportType}",e);a=Object(Re.b)(a);var i=(t.location||{}).productUserGuid,o=void 0===i?"":i,r=n.selectedAccount,s=ve.b.getState(),l=Object(m.a)({},s).dateRangeObj,c=Object(m.a)({},l),u=c.startDate,p=c.endDate,h=c.dateRange,g=c.dateRangeChangeAction,v=F()(u).format(f.a.TRANSACTIONS_DATE_FORMAT),_=F()(p);return g===f.a.LOAD_MORE&&(_=F()().endOf("day")),_=_.format(f.a.TRANSACTIONS_DATE_FORMAT),d.a.createElement("form",{name:"downloadForm",id:"downloadForm".concat(r.id),action:a+e,method:"POST"},d.a.createElement("input",{type:"hidden",name:"rftoken",value:t.pageConfigs.rftoken}),d.a.createElement("input",{type:"hidden",name:"locationId",value:o}),d.a.createElement("input",{type:"hidden",name:"accountId",value:r.id}),d.a.createElement("input",{type:"hidden",name:"dateRangeStart",value:v}),d.a.createElement("input",{type:"hidden",name:"dateRangeEnd",value:_}),d.a.createElement("input",{type:"hidden",name:"filteredTnums",value:Xo(t)}),d.a.createElement("input",{type:"hidden",name:"selectedDateRange",value:h}))}(t,n,a),i);var o=a.selectedAccount;if(e){var r=e.current.contentDocument||e.current.contentWindow.document;r.documentElement.getElementsByTagName("body")&&r.documentElement.getElementsByTagName("body").length>0&&(r.documentElement.getElementsByTagName("body")[0].innerHTML=""),e.current.contentDocument.body.appendChild(i),e.current.contentDocument.getElementById("downloadForm".concat(o.id)).submit()}}var $o=function(e){var t,n,a,i,o=Object(u.useRef)(void 0),r=ca(),s=r.pageConfigs,l=r.i18nStrings,c=s.exportEnabled,m=s.QBOEnabled,h=s.QFXEnabled,g=zo(null===s||void 0===s||null===(t=s.modernBrandingConfigs)||void 0===t||null===(n=t.exportOptions)||void 0===n?void 0:n.exportCSVFileLabel),v=zo(null===s||void 0===s||null===(a=s.modernBrandingConfigs)||void 0===a||null===(i=a.exportOptions)||void 0===i?void 0:i.exportOFXFileLabel),f=d.a.useState(void 0),_=Object(L.a)(f,2),b=_[0],C=_[1],y=function(t){Jo(o,t,e,r)},D=Boolean(b),S=D?"simple-popover":void 0,O=e.transactions;return d.a.createElement("div",null,d.a.createElement(wa.a,{id:"transactions-download-button","aria-label":l.download_transactions,"aria-describedby":S,variant:"contained",onClick:function(e){C(e.currentTarget)},disabled:!c||0===(null===O||void 0===O?void 0:O.length)},d.a.createElement(p.d,null)),d.a.createElement(Qo.a,{id:S,open:D,anchorEl:b,onClose:function(){C(void 0)},anchorOrigin:{vertical:"bottom",horizontal:"left"}},d.a.createElement(Ti.a,{id:"transactions-download-options"},g&&d.a.createElement(Ai.a,{button:!0,divider:v||m||h,onClick:function(){return y("CSV")}},d.a.createElement(Ri.a,{primary:s.modernBrandingConfigs.exportOptions.exportCSVFileLabel})),v&&d.a.createElement(Ai.a,{button:!0,divider:m||h,onClick:function(){return y("OFX")}},d.a.createElement(Ri.a,{primary:s.modernBrandingConfigs.exportOptions.exportOFXFileLabel})),m&&d.a.createElement(Ai.a,{button:!0,divider:h,onClick:function(){return y("QBO")}},d.a.createElement(Ri.a,{primary:s.modernBrandingConfigs.exportOptions.exportQBOFileLabel})),h&&d.a.createElement(Ai.a,{button:!0,divider:!0,onClick:function(){return y("QFX")}},d.a.createElement(Ri.a,{primary:s.modernBrandingConfigs.exportOptions.exportQFXFileLabel})))),d.a.createElement("iframe",{title:"This is an export iframe",ref:o,src:"".concat("/dbank/live/","blank.html"),hidden:!0}))},er=Object(On.a)(p.i)((function(){return{justifyContent:"space-evenly"}})),tr=function(e){return d.a.createElement(er,null,d.a.createElement(Zo,e),d.a.createElement($o,e))},nr=["filter","allowedTransactionTypes","amountRangeObj","i18nStrings"],ar=function(e){var t=e.filter,n=e.allowedTransactionTypes,a=e.amountRangeObj,i=e.i18nStrings,o=Object(h.a)(e,nr),r=ca(),s=Object(p.u)("up","md"),l=Object(p.u)("between","","sm","md"),c=Object(p.u)("down","sm");return d.a.createElement(An.a,{container:!0,spacing:1.5,sx:{padding:function(e){return e.spacing(1.5)}}},d.a.createElement(An.a,{item:!0,xs:8.5,sm:5,md:6},d.a.createElement(So,{filter:t,i18nStrings:i})),d.a.createElement(An.a,{item:!0,sm:3.5,md:3.3,sx:Object(m.a)({},La.d.mdAboveDisplay)},d.a.createElement(qi,{i18nStrings:i})),d.a.createElement(An.a,{item:!0,xs:3.5,sm:2,md:1.2},d.a.createElement(qo,Object.assign({},r,{activeTransactionTypes:n,activeAmountRange:a,isDesktop:s,isTab:l,smallScreen:c}))),d.a.createElement(An.a,{item:!0,sm:1.5},d.a.createElement(tr,o)))};ar.propTypes={filter:c.a.string,allowedTransactionTypes:c.a.object,amountRangeObj:c.a.object,i18nStrings:c.a.object};var ir=n(1983),or=n.n(ir),rr=n(1984),sr=n.n(rr),lr=Object(On.a)(Pn.a)((function(e){var t=e.theme;return Object(m.a)(Object(m.a)({backgroundColor:"dark"===t.palette.mode?"#1A2027":"#fff"},t.typography.body2),{},{padding:t.spacing(1),textAlign:"center",color:t.palette.text.secondary,width:"100%"})})),cr=Object(On.a)(An.a)((function(){return{padding:"10px"}})),ur=Object(On.a)(Mn.a)((function(e){return{color:e.theme.palette.primary.main,fontWeight:500}})),dr=function(e){var t=Object(m.a)({},e).overviewItem;return t?u.createElement(lr,null,t.map((function(e,t,n){return u.createElement(u.Fragment,null,u.createElement(cr,{container:!0,justifyContent:"space-between"},u.createElement(Mn.a,{inline:!0,variant:"body1",align:"left"},e[0]),u.createElement(ur,{inline:!0,variant:"body1",align:"right"},e[1])),t===n.length-1?null:u.createElement(jn.a,null))}))):void 0},pr=to()('<html>\n<head>\n <meta http-equiv="content-type"\n content="text/html; charset=UTF-8" />\n <meta http-equiv="cache-control"\n content="no-cache no-store must-revalidate" />\n <meta http-equiv="pragma"\n content="no-cache" />\n <meta http-equiv="expires"\n content="Mon, 22 Jul 2002 11:12:01 GMT" />\n</head>\n<body>\n <form action="<%= imageUrl %>"\n method="post">\n <input type="hidden"\n name="accountId"\n value="<%= selectedAccountId %>">\n <input type="hidden"\n name="checkNumber"\n value="<%= checkNumber %>">\n <input type="hidden"\n name="checkImageIdentifier"\n value="<%= checkImageIdentifier %>">\n <input type="hidden"\n name="depositSlipIdentifier"\n value="<%= depositSlipIdentifier %>">\n <input type="hidden"\n name="checkSide"\n value="<%= side %>">\n <input type="hidden"\n name="checkType"\n value="pdf">\n <input type="hidden"\n name="locationId"\n value="<%= customerId %>">\n <input type="hidden"\n name="dateTransaction"\n value="<%= transactionDate %>">\n <input type="hidden"\n name="fiId"\n value="<%= fiId %>">\n <input type="hidden"\n name="rftoken"\n value="<%= rftoken %>">\n </form>\n <script type="text/javascript">\n document.forms[0].submit();\n <\/script>\n</body>\n\n</html>'),mr=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e)).getImages=i.getImages.bind(Object(E.a)(i)),i.getBase64ImageString=i.getBase64ImageString.bind(Object(E.a)(i)),i.isPDF=i.isPDF.bind(Object(E.a)(i)),i.renderImages=i.renderImages.bind(Object(E.a)(i)),i.checkListClick=i.checkListClick.bind(Object(E.a)(i)),i.isBB=!1,i.state={showList:!1,viewImages:!0},i}
1return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=(this.props.pageConfigs||{}).customerType;if(this.isBB=e===f.a.BUSINESS.toLowerCase(),!this.isPDF()){var t=this.props.transaction.storeId;this.props.images[t]&&this.props.images[t].status!==f.a.LOADING&&this.props.images[t].status!==f.a.ERROR||this.getImages()}}},{key:"render",value:function(){var e,t,n=this.props,a=n.pageConfigs,i=n.data,o=i.selectedAccount;return d.a.createElement(d.a.Fragment,null,this.renderImages(),this.isBB&&null!==a&&void 0!==a&&a.modernBrandingConfigs.transactionList.transactionListBBMultiImagesDepositEnabled&&null!==(e=this.props)&&void 0!==e&&null!==(t=e.transaction)&&void 0!==t&&t.depositSlipIdentifier&&0==this.isPDF()?d.a.createElement(kn.a,null,ot.renderCheckList(i.i18nStrings,ke.a,this.state.showList,this.checkListClick),this.state.showList?d.a.createElement(kn.a,{className:ke.a["checkList-container"]},d.a.createElement(et,Object.assign({},this.props,{account:o}))):null):null)}},{key:"getImages",value:function(){var e,t,n=this.props,a=n.transaction,i=n.pageConfigs,o=n.data,r=o.selectedAccount,s=(o.locations||{}).productUserGuid,l=F()(new Date(a.transactionDate)).startOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT);null!==(e=this.props)&&void 0!==e&&null!==(t=e.transaction)&&void 0!==t&&t.depositSlipIdentifier?xe.getDepositImage(i.contextPath,i.rftoken,a.storeId,r.id,r.fiId,l,s,a.depositSlipIdentifier):xe.getCheckImage(i.contextPath,i.rftoken,a.storeId,r.id,r.fiId,l,s,a.checkNumber,a.checkImageIdentifier)}},{key:"getBase64ImageString",value:function(e){var t,n,a=f.a.DEFAULT_IMAGE_TYPE;if(null!==(t=this.props)&&void 0!==t&&null!==(n=t.transaction)&&void 0!==n&&n.depositSlipIdentifier){var i=this.props.pageConfigs.depositImage.format;i&&(a=i)}else{var o=this.props.pageConfigs.checkImage.format;o&&(a=o)}return"data:image/"+a+";base64,"+e}},{key:"renderImages",value:function(){var e=this;if(this.isPDF()){var t,n,a,i,o=[];return o.push(d.a.createElement(wn.a,{key:"front",variant:"outlined","data-testid":"pdfLinkFront",onClick:function(t){return e.pdfLinkClick("front",t)}},this.props.data.i18nStrings.pdf_link_front)),((null===(t=this.props)||void 0===t||null===(n=t.transaction)||void 0===n||!n.depositSlipIdentifier)&&"2"===this.props.pageConfigs.checkImage.sides||null!==(a=this.props)&&void 0!==a&&null!==(i=a.transaction)&&void 0!==i&&i.depositSlipIdentifier&&"2"===this.props.pageConfigs.depositImage.sides)&&o.push(d.a.createElement(wn.a,{key:"back",variant:"outlined","data-testid":"pdfLinkBack",onClick:function(t){return e.pdfLinkClick("back",t)}},this.props.data.i18nStrings.pdf_link_back)),d.a.createElement(p.h,{justify:"space-between"},d.a.createElement(Mn.a,{variant:"body1",color:"text.secondary"},this.props.data.i18nStrings.transactions_view_check_image),d.a.createElement(Na.a,{spacing:1,direction:"row"},o))}var r=this.props.transaction.storeId,s=this.props.images[r];if(s){if(s.status===f.a.LOADING)return d.a.createElement(p.l,{size:30,label:this.props.data.i18nStrings.transactions_label_loading});if(s.status==f.a.SUCCESS){var l,c,u,m,h=[];return s.front&&h.push(d.a.createElement("img",{key:"front","data-testid":"chequeImageFront",alt:"chequeImage",className:ke.a["check-image"],src:this.getBase64ImageString(s.front)})),s.back&&((null===(l=this.props)||void 0===l||null===(c=l.transaction)||void 0===c||!c.depositSlipIdentifier)&&"2"===this.props.pageConfigs.checkImage.sides||null!==(u=this.props)&&void 0!==u&&null!==(m=u.transaction)&&void 0!==m&&m.depositSlipIdentifier&&"2"===this.props.pageConfigs.depositImage.sides)&&h.push(d.a.createElement("img",{key:"back",alt:"chequeImage","data-testid":"chequeImageBack",className:ke.a["check-image"],src:this.getBase64ImageString(s.back)})),h}return d.a.createElement(p.g,{title:this.props.pageConfigs.modernBrandingConfigs.transactionList.transactionListCheckImageErrorMessage,description:this.props.pageConfigs.modernBrandingConfigs.transactionList.transactionListCheckImageErrorMessageAction,sx:{pb:function(e){return e.spacing(3)}}})}return this.getImages()}},{key:"isPDF",value:function(){var e,t,n,a,i=!1;return null!==(e=this.props)&&void 0!==e&&null!==(t=e.transaction)&&void 0!==t&&t.depositSlipIdentifier||!this.props.pageConfigs.checkImage||!this.props.pageConfigs.checkImage.format||"pdf"!==this.props.pageConfigs.checkImage.format.toLowerCase()?null!==(n=this.props)&&void 0!==n&&null!==(a=n.transaction)&&void 0!==a&&a.depositSlipIdentifier&&this.props.pageConfigs.depositImage&&this.props.pageConfigs.depositImage.format&&"pdf"===this.props.pageConfigs.depositImage.format.toLowerCase()&&(i=!0):i=!0,i}},{key:"checkListClick",value:function(e){var t=this;(e&&13==e.keyCode||e&&"click"==e.type)&&(!0===!this.state.showList&&Ae.a.dispatch(f.a.CLOSE_LIST_ROW_EVENT,this.props.transaction.storeId),setTimeout((function(){t.refs.checkListLink&&t.refs.checkListLink.focus()}),300),this.setState({showList:!this.state.showList}),this.setState({viewImages:!this.state.viewImages}))}},{key:"pdfLinkClick",value:function(e,t){var n,a,i=f.a.URL_DEPOSIT_IMAGE_SIDE,o=f.a.URL_CHECK_IMAGE_SIDE,r=null!==(n=this.props)&&void 0!==n&&null!==(a=n.transaction)&&void 0!==a&&a.depositSlipIdentifier?i:o;r=Object(Re.b)(r);var s=this.props,l=s.transaction,c=s.pageConfigs,u=s.data.selectedAccount,d=F()(new Date(l.transactionDate)).startOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT),p=Math.floor(1e3*Math.random());if(Ne.a.isAndroid()){r+="?accountId="+u.id+"&checkNumber="+l.checkNumber+"&checkImageIdentifier="+l.checkImageIdentifier+"&depositSlipIdentifier="+l.depositSlipIdentifier+"&checkSide="+e+"&dateTransaction="+d+"&fiId="+u.fiId+"&locationId="+u.customerId+"&rftoken="+c.rftoken;window.open(r,p,"menubar=no,status=no,toolbar=no,location=no,titlebar=no")}else{window.open("",p,"menubar=no,status=no,toolbar=no,location=no,titlebar=no").document.write(pr({imageUrl:r,selectedAccountId:u.id,checkNumber:l.checkNumber,checkImageIdentifier:l.checkImageIdentifier,depositSlipIdentifier:l.depositSlipIdentifier,side:e,customerId:u.customerId,transactionDate:d,fiId:u.fiId,rftoken:c.rftoken}))}t.preventDefault(),t.stopPropagation()}}],[{key:"getStores",value:function(){return[Me]}},{key:"getPropsFromStores",value:function(){return Me.getState()}}]),n}(u.Component);mr.PropTypes={transaction:c.a.object.isRequired,pageConfigs:c.a.object.isRequired,data:c.a.object.isRequired};var hr=C()(mr),gr=Object(On.a)(wa.a)((function(){return{margin:"10px",color:"black"}})),vr=Object(On.a)(Pn.a)((function(e){var t=e.theme;return{marginTop:t.spacing(2),padding:t.spacing(1,2)}}));function fr(e){return void 0!==e&&null!==e}function _r(e,t,n){var a=function(e,t){return e.pending?t.transactions_label_pending:qn(e.transactionDate,Gn)}(e,n),i=Object(m.a)({},e).categoryName,o=ca().selectedAccount,r=o.description,s=o.displayAccountNumber,l=[],c=[];
1if(fr(a)&&fr(t.modernBrandingConfigs.transactionDetailsSlideOver.transactionDetailsSlideOverDateLabel)&&l.push([t.modernBrandingConfigs.transactionDetailsSlideOver.transactionDetailsSlideOverDateLabel,a]),fr(r)&&fr(s)&&fr(t.modernBrandingConfigs.transactionDetailsSlideOver.transactionDetailsSlideOverAccountLabel)){var u="".concat(r," ").concat(s);l.push([t.modernBrandingConfigs.transactionDetailsSlideOver.transactionDetailsSlideOverAccountLabel,u])}return fr(i)&&fr(t.modernBrandingConfigs.transactionDetailsSlideOver.transactionDetailsSlideOverCategoryLabel)&&c.push([t.modernBrandingConfigs.transactionDetailsSlideOver.transactionDetailsSlideOverCategoryLabel,i,!0]),{group1:l,groupCategory:c}}var br=function(e){var t,n,a,i=Object(m.a)({},e),o=i.transaction,r=i.pageConfigs,s=i.i18nStrings,l=i.account,c=oa().closeTransactionDetailPanel,d=ca(),p=Object(m.a)({},o),h=p.displayDescription,g=p.displayAmount,v=p.cleanDescription,f=p.merchantImageRef,_=Va(o,l,r);o&&(a=_r(o,r,s));var b=Object(m.a)({},a),C=b.group1,y=b.groupCategory;_&&(a=function(e){var t=[];return e.map((function(e){return t.push([e.label,Y.a.convertNumberToUSD(e.value,!0)])})),{group2:t}}(_));var D=Object(m.a)({},a).group2,S=Y.a.convertNumberToUSD(g,!0),O=null===r||void 0===r||null===(t=r.modernBrandingConfigs)||void 0===t||null===(n=t.otherConfigs)||void 0===n?void 0:n.showCleansedTransaction,I=v||h;return u.createElement(u.Fragment,null,u.createElement(An.a,null,u.createElement(An.a,{container:!0,direction:"row-reverse",justifyContent:"flex-start",alignItems:"flex-start"},u.createElement(gr,{onClick:c,onKeyDown:function(e){13===e.keyCode&&setTimeout((function(){c()}))}},u.createElement(Io.a,null))),u.createElement(An.a,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"flex-start","data-testid":"transactionDetailHeader"},u.createElement(An.a,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center"},u.createElement(An.a,{item:!0,xs:9},u.createElement(Mn.a,{variant:"body1",fontSize:20,fontWeight:200,sx:{ml:"20px"}},O?I:h)),O&&u.createElement(An.a,{item:!0},f?u.createElement(ni.a,{sx:{mr:"20px"},src:f}):u.createElement(ni.a,{sx:{mr:"20px"}},u.createElement(li.a,null)))),u.createElement(An.a,{container:!0},u.createElement(An.a,{item:!0,xs:8},u.createElement(Mn.a,{variant:"body1",fontSize:30,fontWeight:600,sx:{ml:"20px",wordBreak:"keep-all"}},S))))),u.createElement(jn.a,{sx:{mt:"18px"},variant:"middle"}),u.createElement(kn.a,{sx:{margin:"20px",overflowY:"scroll"},"data-testid":"transactionDetailBody"},u.createElement(Na.a,{spacing:2},(null===C||void 0===C?void 0:C.length)>0?u.createElement(dr,{overviewItem:C}):void 0,O&&(null===y||void 0===y?void 0:y.length)>0?u.createElement(dr,{overviewItem:y}):void 0,(null===D||void 0===D?void 0:D.length)>0?u.createElement(dr,{overviewItem:D}):void 0),(null===o||void 0===o?void 0:o.showImageIcon)&&u.createElement(vr,null,u.createElement(hr,{transaction:o,pageConfigs:r,data:d}))))},Cr=function(e){var t=e.transactions,n=ca(),a=n.pageConfigs,i=n.i18nStrings,o=n.selectedAccount,r=oa(),s=r.isTransactionDetailPanelOpen,l=r.selectedTransaction,c=r.updateSelectedTransaction,u=r.closeTransactionDetailPanel,h=Object(p.u)("up","md"),g=Object(p.u)("between","","sm","md"),v=Object(p.u)("between","","xs","md"),f=h||g?"right":"bottom",_=p.f.XLarge;h||(_=h||g?p.f.XLarge:p.f.Full),v&&(f="bottom",_=p.f.Full);var b=null===t||void 0===t?void 0:t.findIndex((function(e){return e.storeId===(null===l||void 0===l?void 0:l.storeId)})),C=0!==b,y=b+1!==(null===t||void 0===t?void 0:t.length);return d.a.createElement(p.e,{anchor:f,size:_,open:s,onClose:u,sx:Object(m.a)({backgroundColor:function(e){return e.palette.grey[100]}},v&&{borderRadius:"10px 10px 0px 0px",width:"100%",height:"100%",top:"42px"})},d.a.createElement(An.a,{item:!0,xs:12,sm:!0,container:!0},d.a.createElement(An.a,{item:!0,xs:!0,container:!0,direction:"column"},d.a.createElement(An.a,{item:!0,xs:!0},d.a.createElement(Oi,null,d.a.createElement(br,{transaction:l,pageConfigs:a,i18nStrings:i,account:o}))),d.a.createElement(An.a,{item:!0,sx:{p:"24px"}},d.a.createElement(Na.a,{direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:2,sx:Object(m.a)({},v&&{marginBottom:"42px"})},d.a.createElement(wn.a,{variant:"outlined",disabled:!C,onClick:function(){return c(t[b-1])},size:"small",startIcon:d.a.createElement(or.a,null)}
1,a.modernBrandingConfigs.transactionDetailsSlideOver.transactionDetailsSlideOverPrevTransactionLabel),d.a.createElement(wn.a,{variant:"contained",disabled:!y,onClick:function(){return c(t[b+1])},sx:{backgroundColor:function(e){return e.palette.primary.main}},size:"small",endIcon:d.a.createElement(sr.a,null)},a.modernBrandingConfigs.transactionDetailsSlideOver.transactionDetailsSlideOverNextTransactionLabel))))))};Cr.propTypes={transactions:c.a.object};var yr=/{([\s\S]+?)}/g,Dr=function(e){return new Intl.NumberFormat("en-US").format(e)},Sr=function(e){var t=e.transactions,n=e.total,a=e.filter,i=e.allowedTransactionTypes,o=e.amountRangeObj,r=e.startDate,s=e.endDate,l=e.isCustomDateRangeSet,c=e.i18nStrings,p=e.emptyResultsFetchCount,m=Object(u.useMemo)((function(){return to()(c.transactions_filter_stats,{interpolate:yr})}),[]),h=[];return a&&h.push(a),null!==i&&void 0!==i&&i.credit&&null!==i&&void 0!==i&&i.debit||(null===i||void 0===i||!i.credit)&&(null===i||void 0===i||!i.debit)?h.push(c.transactions_filter_stats_all_transaction_types):null!==i&&void 0!==i&&i.credit?h.push(c.transactions_filter_stats_deposits):null!==i&&void 0!==i&&i.debit&&h.push(c.transactions_filter_stats_withdrawals),null!==o&&void 0!==o&&o.minAmount&&null!==o&&void 0!==o&&o.maxAmount&&h.push("$".concat(Dr(o.minAmount)," to $").concat(Dr(o.maxAmount))),r&&s&&h.push("".concat(qn(r,"L")," to ").concat(qn(l?s:new Date,"L"))),h.length&&void 0!==n?d.a.createElement(Mn.a,{variant:"body2",sx:{pl:function(e){return e.spacing(1.5)},pb:function(e){return e.spacing(1.5)},fontSize:13}},p>1||t.length>=n?c.transactions_filter_stats_all_transactions:m({totalTransactionsOnScreen:Dr(t.length),totalTransactionsCount:Dr(n)}),d.a.createElement(Mn.a,{variant:"subtitle2",component:"span",fontSize:"inherit"}," '".concat(h.join(", "),"'"))):null};Sr.getStores=function(){return[ne]},Sr.getPropsFromStores=function(){return Object(m.a)({},ne.getState())};var Or=C()(Sr),Ir=["transactions"],Lr=Object(On.a)(Pn.a)((function(){return{display:"flex",flexDirection:"column",width:"100%","& .MuiBox-root":{minHeight:0}}})),Er=n(2415),kr=n(2361),Tr=function(e){var t=Object.assign({},e);return d.a.createElement("svg",Object.assign({width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{margin:"auto"}},t),d.a.createElement("path",{d:"M11.2119 3.36963L8.75391 0.911621C8.49023 0.647949 8.13281 0.498535 7.76074 0.498535H1.78125C1.00488 0.501465 0.375 1.13135 0.375 1.90771V14.0952C0.375 14.8716 1.00488 15.5015 1.78125 15.5015H10.2188C10.9951 15.5015 11.625 14.8716 11.625 14.0952V4.36572C11.625 3.99365 11.4756 3.6333 11.2119 3.36963ZM10.5498 4.03467C10.6113 4.09619 10.6523 4.16943 10.6729 4.25147H7.875V1.45361C7.95703 1.47412 8.03027 1.51514 8.0918 1.57666L10.5498 4.03467ZM10.2188 14.564H1.78125C1.52344 14.564 1.3125 14.353 1.3125 14.0952V1.90771C1.3125 1.6499 1.52344 1.43896 1.78125 1.43896H6.9375V4.48584C6.9375 4.87549 7.25098 5.18897 7.64062 5.18897H10.6875V14.0952C10.6875 14.353 10.4766 14.564 10.2188 14.564ZM8.8125 7.41553V7.6499C8.8125 7.84326 8.6543 8.00147 8.46094 8.00147H3.53906C3.3457 8.00147 3.1875 7.84326 3.1875 7.6499V7.41553C3.1875 7.22217 3.3457 7.06397 3.53906 7.06397H8.46094C8.6543 7.06397 8.8125 7.22217 8.8125 7.41553ZM8.8125 9.29053V9.5249C8.8125 9.71826 8.6543 9.87647 8.46094 9.87647H3.53906C3.3457 9.87647 3.1875 9.71826 3.1875 9.5249V9.29053C3.1875 9.09717 3.3457 8.93897 3.53906 8.93897H8.46094C8.6543 8.93897 8.8125 9.09717 8.8125 9.29053ZM8.8125 11.1655V11.3999C8.8125 11.5933 8.6543 11.7515 8.46094 11.7515H3.53906C3.3457 11.7515 3.1875 11.5933 3.1875 11.3999V11.1655C3.1875 10.9722 3.3457 10.814 3.53906 10.814H8.46094C8.6543 10.814 8.8125 10.9722 8.8125 11.1655Z",fill:"black"}))},Ar=function(){return d.a.createElement("svg",{width:"14",height:"18",viewBox:"0 0 18 18",focusable:"false"},d.a.createElement("title",null),d.a.createElement("desc",null),d.a.createElement("g",null,d.a.createElement("path",{d:"M0.5,9A8.5,8.5,0,1,0,9,.5,8.52,8.52,0,0,0,.5,9",fill:"#d52b1e"}),d.a.createElement("path",{d:"M16.12,5.92a10.68,10.68,0,0,0-1.7-2.55,26.06,26.06,0,0,0-6.91,7.54A11.3,11.3,0,0,0,4.22,7.3L2.52,9a18.86,18.86,0,0,1,5.1,5.74,30.73,30.73,0,0,1,8.5-8.82",fill:"#fff"})))},Rr=n(2435),Nr=n(2360),wr=Object(On.a)(wn.a)((function(e){var t,n,a=e.theme;return{backgroundColor:null===a||void 0===a||null===(t=a.palette)||void 0===t||null===(n=t.primary)||void 0===n?void 0:n.contrastText,color:"rgba(0, 0, 0, 0.87)",borderRadius:"8px",height:"37px",width:"100%",fontSize:"14px",fontWeight:"bold",padding:"6px 16px","&:hover:focus, &:hover, &:focus":{boxShadow:"none",backgroundColor:"rgba(0, 0, 0, 0.05)"}}})),Pr=Object(On.a)(Rr.a)((function(e){return{"& .MuiButtonGroup-grouped:not(:last-of-type)":{borderColor:e.theme.palette.grey[300]}}})),Br=function(e,t,n,a){return d.a.createElement(Ht.a,{to:t,id:e,onClick:function(){return function(e){re.a.logHistoryPageAction(oe.a.history_event_category,oe.a.history_transfer_click,e)}(a)},style:{textDecoration:"none",fontWeight:"bold",color:"rgba(0, 0, 0, 0.87)"}},n)};function xr(e){var t,n,a=[],i=null===e||void 0===e?void 0:e.transfers,o=(null===e||void 0===e||null===(t=e.selectedAccount)||void 0===t?void 0:t.displayFlag.transferTo)&&Ot.a.canTransfer(i.otherServicesTransfersViewOnlyMode,null===e||void 0===e?void 0:e.primaryUser,null===e||void 0===e?void 0:e.accounts);
1return null!=i.children&&i.children.forEach((function(t){var n=(null!==t&&void 0!==t?t:{}).target,i=!1,r=n;if(n&&(-1!==n.indexOf("lpNewTab=external")?i=!0:r="/app/home/frame?src=".concat(-1!==n.indexOf("%2F")?n:encodeURIComponent(n))),null!=t.id)if("internalTransfer"===t.id){if(o){var s="".concat(t.target,"?accountId=").concat(null===e||void 0===e?void 0:e.selectedAccount.accountReference);a.push(Br(t.id,s,t.label,null===e||void 0===e?void 0:e.reportSuite))}}else a.push(function(e,t,n,a){if(a){var i="_blank";return-1!==t.indexOf("newWindow=false")&&(i="_top"),d.a.createElement(Er.a,{href:t,underline:"none",id:e,target:i,color:"rgba(0, 0, 0, 0.87)",sx:{fontWeight:"bold"},tabIndex:-1},n)}return d.a.createElement(Ht.a,{to:t,id:e,style:{textDecoration:"none",fontWeight:"bold",color:"rgba(0, 0, 0, 0.87)"}},n)}(t.id,r,t.label,i))})),d.a.createElement("div",null,function(e,t){if(t.length>1){var n=Object(u.useRef)(null),a=Object(u.useState)(!1),i=Object(L.a)(a,2),o=i[0],r=i[1],s=function(){r(!1)};return d.a.createElement(kn.a,{sx:{marginRight:"10px",marginTop:"5px"}},d.a.createElement(wr,{startIcon:d.a.createElement(Nr.a,{sx:{color:"#616161"}}),ref:n,onClick:function(){r(!0)}},e),d.a.createElement(p.m,{open:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:s,anchorEl:n.current,paperProps:{padding:"5px",ml:"0px",minWidth:"100px"},sx:{minWidth:"180px"}},d.a.createElement(Pr,{orientation:"vertical",variant:"text"},t.map((function(e){return d.a.createElement(wn.a,{onClick:s,key:e.id,sx:{pt:"12px",pb:"12px",justifyContent:"flex-start"}},e)})))))}return 1===t.length?d.a.createElement(kn.a,{sx:{marginRight:"10px",marginTop:"5px"}},d.a.createElement(wr,{startIcon:d.a.createElement(Nr.a,{sx:{color:"#616161"}})},t)):null}(null===e||void 0===e||null===(n=e.transfers)||void 0===n?void 0:n.otherServicesTransfersButtonLabel,a))}xr.propTypes={selectedAccount:c.a.object.isRequired,primaryUser:c.a.bool,reportSuite:c.a.string,accounts:c.a.arrayOf(c.a.object).isRequired,transfers:c.a.object};var jr=Object(On.a)(wn.a)((function(e){var t,n,a=e.theme;return{backgroundColor:null===a||void 0===a||null===(t=a.palette)||void 0===t||null===(n=t.primary)||void 0===n?void 0:n.contrastText,color:"rgba(0, 0, 0, 0.87)",borderRadius:"8px",fontSize:"14px",width:"100%",fontWeight:"bold",minHeight:"35px","&:hover:focus, &:hover, &:focus":{boxShadow:"none",backgroundColor:"rgba(0, 0, 0, 0.05)"},"& .MuiButton-startIcon .MuiSvgIcon-root":{fontSize:"inherit"}}})),Mr=function(e,t,n,a,i){if(i){var o="_blank";return-1!==t.indexOf("newWindow=false")&&(o="_top"),d.a.createElement(Er.a,{href:t,underline:"none",id:e,target:o,sx:{marginRight:"10px",marginTop:"5px"},tabIndex:-1},d.a.createElement(jr,{variant:"contained",startIcon:n},a))}return d.a.createElement(kn.a,{sx:{marginRight:"10px",marginTop:"5px"}},d.a.createElement(Ht.a,{to:t,id:e,style:{textDecoration:"none"}},d.a.createElement(jr,{variant:"contained",startIcon:n},a)))},Fr=function(e,t,n,a,i,o){var r="";return o&&(r="_blank"),d.a.createElement(kn.a,{sx:{marginRight:"10px",marginTop:"5px"}},d.a.createElement(Ht.a,{to:t,id:e,onClick:function(){return function(e){re.a.logHistoryPageAction(oe.a.history_event_category,oe.a.history_online_statements_click,e)}(i)},target:r,style:{textDecoration:"none"}},d.a.createElement(jr,{variant:"contained",startIcon:n},a)))},Vr=function(e){var t,n,a,i,o,r,s,l=null===e||void 0===e||null===(t=e.pageConfigs)||void 0===t?void 0:t.modernBrandingConfigs,c=null===l||void 0===l||null===(n=l.otherServicesLinks)||void 0===n?void 0:n.statements,u=null===l||void 0===l||null===(a=l.otherServicesLinks)||void 0===a?void 0:a.turboTax,p=null===l||void 0===l||null===(i=l.otherServicesLinks)||void 0===i?void 0:i.customLinks,m=null===l||void 0===l||null===(o=l.otherServicesLinks)||void 0===o?void 0:o.transfers,h=null===e||void 0===e||null===(r=e.pageConfigs)||void 0===r?void 0:r.primaryUser,g=ca(),v=function(e,t,n,a,i,o,r,s){var l=[];if(null!=a){var c="/app/home/frame?src=".concat(null===a||void 0===a?void 0:a.otherServicesStatementsURL);l.push(Fr("onlineStatements",c,d.a.createElement(Tr,null),null===a||void 0===a?void 0:a.otherServicesStatementsLabel,s,null===a||void 0===a?void 0:a.otherServicesStatementsInNewWindow))}if(null!=o){var u=!1,p=null===o||void 0===o?void 0:o.otherServicesTurboTaxURL;null!==o&&void 0!==o&&o.otherServicesTurboTaxURL&&(-1!==(null===o||void 0===o?void 0:o.otherServicesTurboTaxURL.indexOf("lpNewTab=external"))?u=!0:p="/app/home/frame?src=".concat(-1!==(null===o||void 0===o?void 0:o.otherServicesTurboTaxURL.indexOf("%2F"))?null===o||void 0===o?void 0:o.otherServicesTurboTaxURL:encodeURIComponent(null===o||void 0===o?void 0:o.otherServicesTurboTaxURL))),l.push(Mr("turboTax",p,d.a.createElement(Ar,null),null===o||void 0===o?void 0:o.otherServicesTurboTaxLabel,u))}return l.push(d.a.createElement(xr,{accounts:n,selectedAccount:t,transfers:i,primaryUser:e,reportSuite:s})),null!=r&&r.forEach((function(e){var t=(null!==e&&void 0!==e?e:{}).target,n=!1,a=t;t&&(-1!==t.indexOf("lpNewTab=external")?n=!0:a="/app/home/frame?src=".concat(-1!==t.indexOf("%2F")?t:encodeURIComponent(t)),l.push(Mr("customLink",a,d.a.createElement(kr.a,{sx:{color:"#616161"}}),e.label,n)))})),l}(h,null===g||void 0===g?void 0:g.selectedAccount,null===g||void 0===g?void 0:g.accounts,c,m,u,p,null===e||void 0===e||null===(s=e.pageConfigs)||void 0===s?void 0:s.reportSuite);return d.a.createElement(kn.a,{id:"other-services-section",sx:{dis
1play:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-start"}},v)};Vr.propTypes={pageConfigs:c.a.object.isRequired};var Ur={Placeholder:I.a,CustomComponent:tn.a,AccountHistorySummary:function(e){var t=ca(),n=ia().openAccountDetailPanel,a=Object(m.a)({},t).accounts,i=t.selectedAccount,o=d.a.useState(i),r=Object(L.a)(o,2),s=r[0],l=r[1],c=d.a.useState(i),u=Object(L.a)(c,2),h=u[0],g=u[1],v=d.a.useState(!1),_=Object(L.a)(v,2),b=_[0],C=_[1],y=function(){C(!b)},D=function(){C(!b)},S=t.pageConfigs,O=va.buildDataPoints(h,S,e),I=O.overviewItems,E=O.dueDateChipTranslations,k=Object(p.u)("down","md"),T=i.loanInfo,A=T.nextPaymentDate,R=T.nextPaymentAmount,N=Kn.emptyValueCheck(A)&&Kn.emptyValueCheck(R)&&E&&Object.keys(E).length;return d.a.createElement(ba,{id:"account-summary-section"},d.a.createElement(An.a,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",flexWrap:k?"wrap":"nowrap"},d.a.createElement(An.a,{container:!0,xs:12,md:4,lg:4,sx:{p:"20px"},direction:"column",justifyContent:"center",alignItems:"flex-start"},d.a.createElement(Rn.a,{hiddenLabel:!0,standard:!0,fullWidth:!0,variant:"standard"},d.a.createElement(Nn.a,{labelId:"demo-simple-select-label",id:"accounts-select-input",role:"button",value:s,onChange:function(e,n){var a=n.props,i=Object(m.a)({},a).accountobj;l(e.target.value),g(i),function(e){Z.a.selectAccount(e),Q.a.setFilter(""),Q.a.setSortOptions({field:"",type:"",direction:""}),Q.a.setSelectedSortOptionKey(""),Q.a.setTransactionTypes({}),Q.a.setTransactionAmountRange({});var n=t.pageConfigs,a=t.defaultLocation,i={startDate:ae.getStartDate(null===n||void 0===n?void 0:n.modernBrandingConfigs.transactionList.transactionListTransactionRange),endDate:F()().endOf("day").format(f.a.TRANSACTIONS_DATE_FORMAT),dateRange:null===n||void 0===n?void 0:n.modernBrandingConfigs.transactionList.transactionListTransactionRange,isCustomDateRangeSet:!1,dateRangeChangeAction:f.a.ACCOUNT_CHANGE};ee.handleDateRangeChange(i);var o=a||{},r=o.locationName,s=void 0===r?"":r,l=o.productUserGuid,c=void 0===l?"":l;Q.a.setTransactionDateRange(i),Q.a.getTransactions(n.contextPath,n.rftoken,e.id,i.startDate,i.endDate,c,s,n.pageId,!0)}(i),y()},disableUnderline:!0,open:b,onClick:D,onClose:y,onOpen:D,sx:{fontSize:"25px",fontWeight:"400"},IconComponent:xn.a,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sx:{minWidth:0,width:"350px"},anchorReference:"anchorEl",getContentAnchorEl:void 0,MenuListProps:{sx:{height:"300px","& .MuiMenuItem-root":{whiteSpace:"normal",overflowWrap:"anywhere"}}}},renderValue:function(e){var t=e.description,n=e.displayAccountNumber;if((null===t||void 0===t?void 0:t.length)+(null===n||void 0===n?void 0:n.length)>=22){var a,i=22-(null===(a=e.displayAccountNumber)||void 0===a?void 0:a.length)+2;return"".concat(e.description.slice(0,i),"...").concat(e.displayAccountNumber)}return"".concat(e.description," ").concat(e.displayAccountNumber)}},a.filter((function(e){return null===e.tpvReference&&e.displayFlag.isHistoryEnabled})).map((function(e){return d.a.createElement(fa,{divider:!0,key:e.id,value:e,accountobj:e},"".concat(e.description," ").concat(e.displayAccountNumber))})))),d.a.createElement(p.i,{justify:"space-between"},d.a.createElement(_a,null,d.a.createElement(wn.a,{id:"account-detail-drawer-trigger",onClick:function(e,t){n(h),he.logAccountSummaryGL(S.contextPath,S.rftoken,!0)},variant:"outlined"},S.modernBrandingConfigs.accountSummary.labels.accountSummaryLabelsShowAccountDetails)),N&&k&&d.a.createElement(ga,{data:i.loanInfo,translations:E}))),k?d.a.createElement(jn.a,null):d.a.createElement(jn.a,{orientation:"vertical",flexItem:!0,sx:{p:"0px 10px 0px 0px"}}),d.a.createElement(Yn,{overviewItems:I}),N&&!k&&d.a.createElement(ga,{data:i.loanInfo,translations:E})))},TransactionsList:function(){return d.a.createElement(Xi,null,(function(e){var t=e.transactions,n=Object(h.a)(e,Ir);return d.a.createElement(d.a.Fragment,null,d.a.createElement(Cr,{transactions:t}),d.a.createElement(Oi,null,d.a.createElement(Lr,{elevation:0},d.a.createElement(ar,Object.assign({transactions:t},n)),d.a.createElement(Or,Object.assign({transactions:t},n)),d.a.createElement(Ei,Object.assign({transactions:t},n)),d.a.createElement(vo,n)),(null===n||void 0===n?void 0:n.total)>0&&d.a.createElement($i,n)))}))},OtherServices:Vr,Promotion:ln.a,Rewards:sn.a,Calculator:cn.a,SegmintZone:un.a},Hr=["locale","contextURL","contextPath"],Yr={en_US:"<strong>We are experiencing some technical difficulties.</strong> Please try again later.",es_ES:"<strong>Estamos experimentando problemas t\xe9cnicos.</strong> Int\xe9ntelo en otro momento.",zh_TW:"<strong>\u76ee\u524d\u51fa\u73fe\u4e00\u4e9b\u6280\u8853\u554f\u984c\u3002</strong> \u8acb\u7a0d\u5f8c\u91cd\u8a66\u3002",fr_CA:"<strong>Nous rencontrons actuellement quelques difficult\xe9s techniques.</strong> Veuillez r\xe9essayer plus tard."},Gr=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.accountDataStatus,a=e.selectedAccount,i=e.i18nStrings,o=e.pageConfigs;return n===v.SUCCESS&&null!=a?d.a.createElement(la,{value:Object(m.a)({},this.props)},d.a.createElement(Mn.a,{id:"accountPageTitle",variant:"subtitle1",sx:Ea.a},i.account_history_title),t,d.a.createElement(pe,{account:a,pageConfigs:o})):n===v.LOADING||n===v.SUCCESS&&null==a?d.a.createElement(p.l,{sx:{height:170}}):d.a.createElement(p.g,{title:o.modernBrandingConfigs.transactionList.transactionListGenericErrorMessage,description:o.modernBrandingConfigs.transactionList.transactionListGenericErrorMessageAction})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.defaultLocation,a=t.accountDataStatus,i=t.selectedAccount;n!==e.defaultLocation&&Z.a.resetAccount.defer(this.getAccounts(n)),a===v.SUCCESS&&null==i&&Z.a.selectAccount.defer(this.getSelectedAccount())}},{key:"componentDidMount",value:function(){var e=this,t=(this.props.pageConfigs||{}).customerType,n=Pe.a.getUrlParameterValueByName("locationId",window.location.href);t===v.BUSINESS.toLowerCase()&&n?this.getLocations().then((function(t){var a=(t.data||{}).locationsResponse.filter((function(e){return e.productUserGuid===n})),i=Object(L.a)(a,1)[0];me.a.selectLocation(i),e.getAccounts(i)})):this.getAccounts()}},{key:"componentWillUnmount",value:function(){me.a.reset(),zt.a.reset(),Z.a.reset()}},{key:"getLocations",value:function(){var e=this.props.pageConfigs;return me.a.getLocations(e.contextPath,e.rftoken,e.pageId,!0)}},{key:"getAccounts",value:function(e){var t=this.props.pageConfigs,n=!!e&&e.productUserGuid||null;return zt.a.getAccounts(t.contextPath,t.rftoken,t.pageId,null,null,null,n)}},{key:"getSelectedAccount",value:function(){var e=null,t=Pe.a.getUrlParameterValueByName("accountId",window.location.href),n=this.props,a=n.loaded,i=n.accounts;return null==t||a?null!=i&&i.length>0&&(e=i[0]):null!=i&&i.length>0&&(i.forEach((function(n){n.accountReference===t&&(e=n,Z.a.loaded.defer(e))})),null==e&&(e=i[0])),e}}],[{key:"getStores",value:function(){return[Zt.a,Qt.a,Xt.a]}},{key:"getPropsFromStores",value:function(){return Object(m.a)(Object(m.a)(Object(m.a)({}
1,Zt.a.getState()),Qt.a.getState()),Xt.a.getState())}}]),n}(d.a.Component);Gr.propTypes={pageConfigs:c.a.object,loaded:c.a.bool,accounts:c.a.arrayOf(c.a.object),defaultLocation:c.a.object,accountDataStatus:c.a.string,selectedAccount:c.a.object,i18nStrings:c.a.object};var qr=C()(Gr),Wr=n(1986),Kr=n.n(Wr),Zr=n(1985),Qr=n.n(Zr),Xr=Object(On.a)(Pn.a)((function(e){var t=e.theme;return Object(m.a)(Object(m.a)({backgroundColor:"dark"===t.palette.mode?"#1A2027":"#fff"},t.typography.body2),{},{textAlign:"center",color:t.palette.text.secondary,width:"100%",padding:"0px"})})),zr=Object(On.a)(An.a)((function(e){return{padding:e.theme.spacing(1)}})),Jr=Object(On.a)(Mn.a)((function(e){return{color:e.theme.palette.primary.main,fontWeight:500,textAlign:"right"}})),$r=function(e){var t=Object(m.a)({},e).overviewItem;return null!==t&&void 0!==t&&t.length?u.createElement(Xr,null,t.map((function(e,t,n){var a;return u.createElement(u.Fragment,null,u.createElement(zr,{container:!0,justifyContent:"space-between"},u.createElement(p.i,null,e[4]&&u.createElement(Qr.a,{color:"error",sx:{fontSize:16}}),u.createElement(Mn.a,{inline:!0,variant:"body1",align:"left",sx:{color:function(t){return e[4]?t.palette.error.main:""}}},e[0])),u.createElement(Jr,{inline:!0,variant:"body1",sx:{color:function(t){return e[4]?t.palette.error.main:""}}},e[2]&&Y.a.convertNumberToUSD(e[1],!0),e[3]&&(null===(a=F()(e[1]))||void 0===a?void 0:a.format("ll")),!e[2]&&!e[3]&&e[1],e[5]&&u.createElement(p.b,{textToCopy:e[1],localeText:{copy:"Copy",copied:"Copied"}}))),t===n.length-1?null:u.createElement(jn.a,null))}))):null},es=Object(On.a)(wa.a)((function(){return{margin:"10px",color:"black"}})),ts=Object(On.a)(Mn.a)((function(){return{margin:"20px",fontStyle:"normal",fontWeight:"600",fontSize:"30px",color:"black"}})),ns=function(e){var t,n=ca(),a=n.pageConfigs,i=n.i18nStrings,o=Object(m.a)({},e).account,r=Object(m.a)({},o),s=r.nickname,l=r.displayAccountNumber,c=ia().closeAccountDetailPanel;t=o&&P.a.isCreditCardLoanAccount(o)?Kn.buildCreditCardAccountDetail(o,a,i):o&&P.a.isChecking(o)?Kn.buildDepositAccountDetail(o,a,i):o&&P.a.isNewSavingSavings(o)?Kn.buildSavingsAccountDetail(o,a,i):o&&P.a.isNewSavingMoneyMarket(o)?Kn.buildSavingsMoneyMarketAccountDetail(o,a,i):o&&P.a.isRetirementIRA(o)?Kn.buildInvestmentIRADetail(o,a,i):o&&P.a.isKeogh(o)?Kn.buildInvestmentKeoghDetail(o,a,i):o&&P.a.isRetirement401K(o)?Kn.buildInvestment401kDetail(o,a,i):o&&(P.a.isCertificateOfDeposit(o)||P.a.isCSICertificateOfDeposit(o))?Kn.buildInvestmentCodDetail(o,a,i):o&&P.a.isLOCAccount(o)?Kn.buildLoanCreditLineDetail(o,a,i):o&&P.a.isNewInstallmentLoan(o)?Kn.buildLoanInstallmentLoanDetail(o,a,i):o&&P.a.isNewMortgageLoan(o)?Kn.buildLoanMortgageLoanDetail(o,a,i):o&&(P.a.isNewOtherLoan(o)||P.a.isHomeEquityLoan(o))?Kn.buildOtherLoanDetail(o,a,i):o&&P.a.isGeneralLedgerAccount(o)?Kn.buildGeneralLedgerAccountDetail(o,a,i):[];var d=Object(m.a)({},t),p=d.group1,h=d.group2,g=d.group3,v=d.group4,f=d.group5,_=d.group6,b=d.group7,C=d.group8;return u.createElement(u.Fragment,null,u.createElement(An.a,null,u.createElement(An.a,{container:!0,direction:"row-reverse",justifyContent:"flex-start",alignItems:"flex-start"},u.createElement(es,{onClick:c,onKeyDown:function(e){13===e.keyCode&&setTimeout((function(){c()}))}},u.createElement(Io.a,null))),u.createElement(An.a,{sx:{paddingRight:"20px"},direction:"row",id:"accDesc",container:!0,display:"flex",justifyContent:"space-between","data-testid":"accountDetailHeader",spacing:2},u.createElement(An.a,{item:!0,xs:8},u.createElement(ts,null,s," ",l)),u.createElement(An.a,{item:!0,display:"flex",justifyContent:"flex-end",xs:4},u.createElement(Ht.a,{id:"AHCogSettings",to:"/app/home/olb/account/preferences"},u.createElement(wn.a,{variant:"outlined",sx:{marginTop:"14px"},startIcon:u.createElement(Kr.a,{sx:{color:function(e){return e.palette.text.secondary}}}),"aria-label":"navigate to accounts preferences",title:"navigate to accounts preferences"},u.createElement(Mn.a,{inline:!0,variant:"body1",align:"left",sx:{color:function(e){return e.palette.text.secondary},fontSize:"14px"}},"Settings")))))),u.createElement(jn.a,{variant:"middle"}),u.createElement(kn.a,{sx:{margin:"20px",overflowY:"scroll"},AccountDetailsItem:!0,"data-testid":"accountDetailBody"},u.createElement(Na.a,{spacing:2},p?u.createElement($r,{overviewItem:p}):void 0,h?u.createElement($r,{overviewItem:h}):void 0,g?u.createElement($r,{overviewItem:g}):void 0,v?u.createElement($r,{overviewItem:v}):void 0,f?u.createElement($r,{overviewItem:f}):void 0,_?u.createElement($r,{overviewItem:_}):void 0,b?u.createElement($r,{overviewItem:b}):void 0,C?u.createElement($r,{overviewItem:C}):void 0)))},as=function(e){var t=Object(m.a)({},e).i18nStrings,n=ia(),a=n.isAccountDetailPanelOpen,i=n.selectedAccount,o=n.closeAccountDetailPanel,r=Object(p.u)("up","md"),s=Object(p.u)("between","","sm","md"),l=r||s?"right":"bottom",c=p.f.XLarge;return r||(c=r||s?p.f.XLarge:p.f.Full),d.a.createElement(p.e,{anchor:l,size:c,open:a,onClose:o,sx:Object(m.a)({backgroundColor:function(e){return e.palette.grey[100]}},!r&&!s&&{borderRadius:"10px 10px 0px 0px",width:"100%",height:"100%",top:"42px"})},d.a.createElement(ns,{account:i,i18nStrings:t}))};var is=["activeComponents"],os=["Promo1","AccountHistorySummary","OtherServices","TransactionsList","Promo2"],rs=["Promo1","AccountHistorySummary","OtherServices","TransactionsList","SegmintZone1"];var ss=Object(On.a)(In.a)((function(e){var t,n=e.theme;return t={},Object(Sn.a)(t,n.breakpoints.up("md"),{paddingTop:n.spacing(2)}),Object(Sn.a)(t,"& #promo_msg_image",{borderRadius:"10px"}),t})),ls=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}
1return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.contextPath,n=e.rftoken;D.a.getConfigurations(t,v.HISTORY,{rftoken:n,modernBrandingEnabled:!0}),mn.a.trackNewPage(hn.a.HISTORY)}},{key:"componentWillUnmount",value:function(){D.a.reset(),pn.a.reset(),fn.a.reset(),O.a.reset()}},{key:"componentDidUpdate",value:function(e,t){if(e.status===v.LOADING&&this.props.status===v.SUCCESS){O.a.getLocalizations.defer(this.props.contextPath,this.props.locale,this.props.resourceVersion);var n=this.props.navigationData.allowedWebFeatures?JSON.parse(this.props.navigationData.allowedWebFeatures):null;if(this.props.configs&&this.props.configs.promotionsEnabled&&pn.a.getPromotions.defer(this.props.contextPath,this.props.configs.rftoken,this.props.diId,this.props.guid,v.HISTORY,n),this.props.configs&&this.props.configs.segmintEnabled&&fn.a.getZones.defer(this.props.configs.rftoken,v.HISTORY),this.props.configs){var a=this.props,i={diId:a.diId,guid:a.guid,action:"page_loaded"};re.a.logPageLoadAction(oe.a.history_event_category,oe.a.history_action_page_load,this.props.configs.reportSuite,i)}}}},{key:"render",value:function(){var e;return e=this.props.status===v.SUCCESS&&this.props.localizationStatus===v.SUCCESS?this.renderHistoryPage():this.props.status===v.LOADING||this.props.status===v.SUCCESS&&this.props.localizationStatus===v.LOADING?this.props.renderDefaultLoading():this.props.renderDefaultError(),d.a.createElement(ss,{maxWidth:"lg",disableGutters:!0},e)}},{key:"renderHistoryPage",value:function(){var e,t,n=this.props.configs&&this.props.configs.segmintEnabled?En:Ln,a=this.props.configs,i=a.activeComponents,o=Object(h.a)(a,is);return o.contextPath=this.props.contextPath,o.olbRoutes=this.props.configs.olbRoutes,o.breakpoint=this.props.breakpoint,o.allowDomains=this.props.allowDomains,o.guid=this.props.guid,o.diId=this.props.diId,t=i,e=function(e,n){return t.find((function(t){return t[e]===n}))},i=(this.props.configs.segmintEnabled?rs:os).map((function(t){return e("id",t)})).filter(Boolean),d.a.createElement(aa,null,d.a.createElement(qr,{pageConfigs:o,i18nStrings:this.props.i18nStrings},d.a.createElement(as,{i18nStrings:this.props.i18nStrings}),d.a.createElement(_.a,{breakpoint:this.props.breakpoint,components:i,layout:n,registry:Ur,pageConfigs:o,i18nStrings:this.props.i18nStrings})))}}],[{key:"getStores",value:function(){return[y.a,S.a]}},{key:"getPropsFromStores",value:function(){return Object(m.a)(Object(m.a)({},y.a.getState()),S.a.getState())}}]),n}(u.Component),cs=function(e){var t=function(t){var n=t.locale,a=t.contextURL,i=t.contextPath,o=Object(h.a)(t,Hr),r=Object(p.s)(),s=Object(u.useCallback)((function(e){if(null!=e)try{var t=JSON.parse(e);if(Array.isArray(t.lg)&&t.lg.length>0&&Array.isArray(t.md)&&t.md.length>0&&Array.isArray(t.sm)&&t.sm.length>0&&Array.isArray(t.xs)&&t.xs.length>0)return t}catch(n){console.error("Exception parsing JSON layout string: ".concat(n))}return null}),[]),l=Object(u.useCallback)((function(){return d.a.createElement(p.l,{sx:{height:200}})}),[]),c=Object(u.useCallback)((function(e){var t,a=null!==e&&void 0!==e?e:Yr[n];return a=null!==(t=a)&&void 0!==t?t:Yr.en_US,d.a.createElement(p.g,{title:a,hasMarkup:!0})}),[]),m="";return null!=a?m="".concat(a,"/sdp"):i&&(m=i),d.a.createElement(e,Object.assign({contextPath:m,breakpoint:r,parseLayoutString:s,renderDefaultError:c,renderDefaultLoading:l},o))};return t.displayName="WithPageDefaults(".concat(function(e){return e.displayName||e.name||"Component"}(e),")"),t}(C()(ls)),us=function(e){Object(o.a)(n,e);var t=Object(r.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.call(this)).ref=d.a.createRef(),e.state={},e.isEnrolledInModernExperience="AUTO_ENROLL"===sessionStorage.getItem("modernEnrollmentOption"),e}return Object(i.a)(n,[{key:"render",value:function(){var e=this.context.modernBrandingEnabled,t=sessionStorage.getItem("nextGenBaseUrl");if(this.isEnrolledInModernExperience&&!e&&t){var n=Dn.a.getDBKSession()||{};return d.a.createElement(yn.a,{title:"NextGen account history page",url:"".concat(t,"/#account-history"),dbkSession:n})}var a=this.state.rftoken;return this.ref.current&&" LOADING"!==this.ref.current?a&&e?d.a.createElement(cs,Object.assign({contextPath:"",rftoken:a},this.props)):a?d.a.createElement(Cn,Object.assign({contextPath:"",rftoken:a},this.props)):null:null}},{key:"componentDidMount",value:function(){var e=this,t=this.context.modernBrandingEnabled;this.isEnrolledInModernExperience&&!t||(this.ref.current="LOADING",s.a.get("/accts-olb/v1/home/config").then((function(t){var n=t.rftoken;e.loadScripts(n),e.ref.current="IDLE"}
1)))}},{key:"componentWillUnmount",value:function(){this.ref.current=null}},{key:"loadScripts",value:function(e){var t=window.di||{};t.env=t.env||{},t.env.context="".concat(Object({NODE_ENV:"production",PUBLIC_URL:"/dbank/live/",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BUILD_DATE_TIME:"1787655812000",REACT_APP_BUILD_VERSION:"26.7.0",REACT_APP_API_CONTEXT:"",REACT_APP_CONTEXT:"/dbank/live/"}).REACT_APP_SERVICES_URL||"").concat(""),this.setState({rftoken:e})}}]),n}(u.Component);us.defaultProps={},us.contextType=p.n,us.propTypes={locale:c.a.string.isRequired,resourceVersion:c.a.string.isRequired};t.default=us}}]); 2//# sourceMappingURL=37.5ede052f.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.