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gBqC,GAAiBiD,EAAS,IAAK,CAAC,aACnFjH,SAAUuF,EAAY9D,QAAU6D,EAAW7D,OAAe,MACzD,EACD,QAAaS,EAAA,EAAM,CAAEA,KAAM,gBAC1B,EAAGsC,WAIZ,QAAoB,IAAI,IAC5B,QAAoB,MAAOC,EAAa,CACpCkB,EAAWlE,QAUR,WAAc,QAAoB,MAAOmD,EAAa,EACrD,QAAa,IAAO,CAAEpC,QAAS,iCAVhC,WAAc,QAAoB,MAAOkC,EAAa,EACrD,QAAoB,SAAU,CAC5BnF,MAAO,qBACPjB,GAAI0C,EACJpY,MAAO6c,EAAYhE,MACnBuE,OAAQR,EAAa/D,MACrBI,MAAO,CAAC,WAAa,SACpB,KAAM,EAAG8C,UAQxB,G","sources":["webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/cw.widget.payment.js","webpack://shipley-du-lib/./node_modules/moment/locale/ sync ^\\.\\/.*$","webpack://shipley-du-lib/./common/js/du/appEnum/AlertSeverity.ts","webpack://shipley-du-lib/./common/js/du/components/form/checkbox.vue?be2d","webpack://shipley-du-lib/./common/js/du/components/form/checkbox.vue","webpack://shipley-du-lib/./common/js/du/components/form/checkbox.vue?f028","webpack://shipley-du-lib/./common/js/du/interfaces/utility/IClickableAlertMessage.ts","webpack://shipley-du-lib/./common/js/du/components/utility/alert.vue?8475","webpack://shipley-du-lib/./common/js/du/components/utility/alert.vue?5e44","webpack://shipley-du-lib/./common/js/du/components/utility/alert.vue","webpack://shipley-du-lib/./common/js/du/components/utility/pdfViewer.vue?5d6e","webpack://shipley-du-lib/./common/js/du/components/utility/pdfViewer.vue?9576","webpack://shipley-du-lib/./common/js/du/components/utility/pdfViewer.vue"],"sourcesContent":["import moment from \"moment\";\r\n//import '../lib/bootstrap-datetimepicker/bootstrap-datetime-4.7.14';\r\nimport * as BootstrapDialog from \"bootstrap3-dialog\";\r\n\r\nimport { createNonRoutedApp } from \"@du/AppStartup\";\r\nimport pdfViewer from \"@components/utility/pdfViewer\";\r\n\r\nconst isMobile = $(window).width() <= 579;\r\n\r\n(function (cw, $) {\r\n \"use strict\";\r\n $.extend(true, cw, {\r\n widget: {\r\n payment: {\r\n S1CcTransactionResponse: {\r\n Unknown: 0,\r\n Success: 1,\r\n TransactionProcessedButNotApproved: 2,\r\n NoResponseFromCreditCardProcessorWhileAddingCard: 3,\r\n AddingCardToInvalidAccount: 4,\r\n CouldNotDetermineCustomerPaymentId: 5,\r\n CouldParseProcessorAddPaymentMethodResponse: 6,\r\n SuccessButCouldNotReportTransactionToRemoteSystem: 7,\r\n PaymentAmountRequired: 8,\r\n CouldNotDetermineCustomerUser: 9,\r\n CreditCardNumberOrExpirationDateMissing: 10,\r\n CreditCardDidNotPassLuhnCheck: 11,\r\n CreditCardInvalidExpiration: 12,\r\n CreditCardInvalidCvv2: 13,\r\n CreditCardInvalidZipCode: 14,\r\n CreditCardInvalidCardholderName: 15,\r\n CreditCardSystemError: 16,\r\n },\r\n EftPaymentResponse: {\r\n Unknown: 0,\r\n Success: 1,\r\n UnableToVerifyBankAccount: 2,\r\n EftPaymentSubmitFail: 3,\r\n EftProfileSaveFail: 4,\r\n OnetimeEftProfileSaveFail: 5,\r\n },\r\n CustomerBudgetEligibility: null,\r\n modalRef: null,\r\n init: function (\r\n s1AccountId,\r\n authToken,\r\n selectedBillingAccountObj,\r\n successCallback,\r\n budgetEligibility\r\n ) {\r\n var self = this;\r\n cw.loadingIndicator.start();\r\n cw.webservices.getJson(\r\n \"S1AccountManager/get-account-balances-and-payment-methods\",\r\n {\r\n S1AccountId: s1AccountId,\r\n AuthToken: authToken,\r\n },\r\n function (balanceObj) {\r\n if (balanceObj) {\r\n if (balanceObj.AccountBalances && balanceObj.AccountBalances.length > 0) {\r\n balanceObj.AccountBalances.forEach(function (x) {\r\n x.obj = JSON.stringify(x);\r\n if (parseFloat(x.BudgetBalance)) {\r\n x.BudgetBalanceFormatted = \"$\" + x.BudgetBalance.formatMoney(2);\r\n x.NonBudgetBalanceFormatted = \"$\" + x.NonBudgetCoveredBalance.formatMoney(2);\r\n }\r\n });\r\n } else if (balanceObj.AccountBalances && balanceObj.AccountBalances.length === 1) {\r\n balanceObj.BalanceDueFormatted = balanceObj.AccountBalances[0].BalanceFormatted;\r\n }\r\n\r\n balanceObj.ExpirationYears = cw.utility.getCreditCardExpirationYears();\r\n balanceObj.hasCCOnFile = false;\r\n balanceObj.DraftDays = self.getDraftDays();\r\n\r\n var mData = {\r\n balanceObj: balanceObj,\r\n s1AccountId: s1AccountId,\r\n authToken: authToken,\r\n selectedRemoteAccount: null,\r\n successCallback: successCallback,\r\n division: null,\r\n };\r\n\r\n balanceObj.EftConfigs.forEach(function (x) {\r\n x.EftSelectionId = x.EftConfigId > 0 ? x.EftConfigId : x.CargasEftConfigId;\r\n });\r\n\r\n mData.balanceObj.hasAccountSelection = false;\r\n\r\n //this code is duplicated below (in open modal's shownCallback) when there are multiple accounts to choose from (selectedBillingAccountObj is empty and there are multiple accts)\r\n if (mData.balanceObj.AccountBalances.length === 1) {\r\n mData.selectedRemoteAccount = mData.balanceObj.AccountBalances[0];\r\n mData.division = mData.balanceObj.AccountBalances[0].Division;\r\n mData.balanceObj.hasAccountSelection = true;\r\n mData.balanceObj.balanceFormatted = mData.selectedRemoteAccount.BalanceFormatted;\r\n mData.balanceObj.payNowFormatted = mData.selectedRemoteAccount.PayNowFormatted;\r\n mData.balanceObj.payNowBalance = mData.selectedRemoteAccount.PayNowBalance;\r\n mData.balanceObj.nonBudgetBalanceFormatted =\r\n mData.selectedRemoteAccount.NonBudgetBalanceFormatted;\r\n } else if (\r\n selectedBillingAccountObj &&\r\n mData.balanceObj.AccountBalances.some(function (x) {\r\n return (\r\n x.RemoteSystemId === selectedBillingAccountObj.RemoteSystemId &&\r\n x.RemoteSystemAccountId === selectedBillingAccountObj.RemoteSystemAccountId &&\r\n x.RemoteSystemAccountNumber === selectedBillingAccountObj.RemoteSystemAccountNumber\r\n );\r\n })\r\n ) {\r\n mData.selectedRemoteAccount = mData.balanceObj.AccountBalances.filterSingle(function (x) {\r\n return (\r\n x.RemoteSystemId === selectedBillingAccountObj.RemoteSystemId &&\r\n x.RemoteSystemAccountId === selectedBillingAccountObj.RemoteSystemAccountId &&\r\n x.RemoteSystemAccountNumber === selectedBillingAccountObj.RemoteSystemAccountNumber\r\n );\r\n });\r\n mData.balanceObj.hasAccountSelection = true;\r\n mData.balanceObj.balanceFormatted = mData.selectedRemoteAccount.BalanceFormatted;\r\n mData.balanceObj.payNowFormatted = mData.selectedRemoteAccount.PayNowFormatted;\r\n mData.balanceObj.payNowBalance = mData.selectedRemoteAccount.PayNowBalance;\r\n mData.balanceObj.nonBudgetBalanceFormatted =\r\n mData.selectedRemoteAccount.NonBudgetBalanceFormatted;\r\n }\r\n\r\n if (budgetEligibility && budgetEligibility.IsEligible) {\r\n self.CustomerBudgetEligibility = budgetEligibility;\r\n mData.balanceObj.BudgetPaymentPreview = self.CustomerBudgetEligibility;\r\n }\r\n\r\n if (mData.balanceObj.hasAccountSelection) {\r\n mData.balanceObj.numPendingPayments = mData.selectedRemoteAccount.PendingPayments\r\n ? mData.selectedRemoteAccount.PendingPayments.length\r\n : null;\r\n mData.balanceObj.pendingPaymentsTotal = 0;\r\n\r\n if (\r\n mData.selectedRemoteAccount.PendingPayments &&\r\n mData.selectedRemoteAccount.PendingPayments.length > 0\r\n ) {\r\n mData.selectedRemoteAccount.PendingPayments.forEach(function (pp) {\r\n mData.balanceObj.pendingPaymentsTotal += pp.PaymentAmount;\r\n });\r\n\r\n mData.balanceObj.pendingPaymentsTotalFormatted =\r\n \"$\" + mData.balanceObj.pendingPaymentsTotal.formatMoney(2);\r\n }\r\n\r\n self.getPaymentSubmittalOptions(\r\n mData.s1AccountId,\r\n mData.selectedRemoteAccount,\r\n mData.authToken,\r\n function (paymentSubmitOpts) {\r\n var totalInvoiceAmount = 0;\r\n mData.balanceObj.CreditCardProfiles = paymentSubmitOpts.CreditCardPaymentProfiles;\r\n if (\r\n mData.balanceObj.CreditCardProfiles &&\r\n mData.balanceObj.CreditCardProfiles.length > 0\r\n ) {\r\n mData.balanceObj.hasCCOnFile = mData.balanceObj.CreditCardProfiles.some(function (c) {\r\n return (\r\n c.PaymentProfile &&\r\n c.PaymentProfile.PaymentProfiles &&\r\n c.PaymentProfile.PaymentProfiles.length > 0\r\n );\r\n });\r\n }\r\n if (\r\n [cw.appEnum.S1RemoteSystem.As400, cw.appEnum.S1RemoteSystem.Cargas].includes(\r\n mData.selectedRemoteAccount.RemoteSystemId\r\n )\r\n ) {\r\n mData.balanceObj.OpenInvoices = paymentSubmitOpts.OpenInvoices.map(function (i) {\r\n i.InvoiceId =\r\n i.InvoiceId && i.InvoiceId > 0 ? i.InvoiceId : i.DocumentTypeDescription;\r\n i.InvoiceDateFormatted = moment(i.InvoiceDate).format(\"l\");\r\n i.AmountDueFormatted = \"$\" + i.AmountDue.formatMoney(2);\r\n i.InvoiceTotalFormatted = \"$\" + i.InvoiceTotal.formatMoney(2);\r\n i.IsBudgetPayment = false;\r\n totalInvoiceAmount += i.AmountDue;\r\n\r\n if (i.DocumentTypeDescription === \"Budget Payment\") {\r\n i.IsBudgetPayment = true;\r\n }\r\n return i;\r\n });\r\n mData.balanceObj.BudgetPayments = paymentSubmitOpts.OpenInvoices.filterSingle(\r\n function (i) {\r\n if (i.DocumentTypeDescription === \"Budget Payment\") {\r\n i.BudgetPaymentFormatted = \"$\" + i.AmountDue.formatMoney(2);\r\n i.BudgetPaymentTotalFormatted = \"$\" + i.InvoiceTotal.formatMoney(2);\r\n return i;\r\n }\r\n }\r\n );\r\n\r\n var ccAmtRemaining =\r\n parseFloat(mData.balanceObj.payNowBalance).toFixed(2) -\r\n parseFloat(totalInvoiceAmount).toFixed(2);\r\n if (parseInt(ccAmtRemaining).toFixed(2) > 0) {\r\n mData.balanceObj.nonBudgetAndInvoiceBalance = \"$\" + ccAmtRemaining.formatMoney(2);\r\n }\r\n } else {\r\n mData.balanceObj.OpenInvoices = [];\r\n }\r\n\r\n self.renderTemplate(mData, function (renderedTemplate) {\r\n self.openModal(renderedTemplate, mData, authToken);\r\n });\r\n }\r\n );\r\n\r\n return;\r\n } else {\r\n self.renderTemplate(mData, function (renderedTemplate) {\r\n self.openModal(renderedTemplate, mData, authToken);\r\n });\r\n return;\r\n }\r\n }\r\n }\r\n );\r\n },\r\n openModal: function (renderedTemplate, modalData, authToken) {\r\n var self = cw.widget.payment;\r\n self.modalRef = cw.modal.Open({\r\n data: modalData,\r\n title: !modalData.balanceObj.hasAccountSelection\r\n ? \"Select account to apply payment towards\"\r\n : \"Make a Payment\",\r\n modalBody: $(renderedTemplate),\r\n buttons: [\r\n {\r\n label: ' Cancel',\r\n cssClass: \"btn-white btn-xs-block\",\r\n action: function (dialogRef) {\r\n dialogRef.close();\r\n },\r\n },\r\n {\r\n label: 'Make Payment ',\r\n cssClass:\r\n \"btn-primary btn-xs-block make-payment disabled \" +\r\n (!modalData.balanceObj.hasAccountSelection ? \"hidden\" : \"\"),\r\n action: self.handleSubmit,\r\n },\r\n ],\r\n onShownCallback: function (mr) {\r\n if (mr.$modalBody.find(\".pending-payment-indicator\").length > 0) {\r\n mr.$modalFooter\r\n .find(\".bootstrap-dialog-footer-buttons\")\r\n .prepend(\r\n '