(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{283:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.replaceAmpersand=void 0,e.replaceAmpersand=function(t){return t.replace(/&/g,"&")}},284:function(t,e,n){"use strict";var a=this&&this.__awaiter||function(t,e,n,a){return new(n||(n=Promise))((function(i,r){function o(t){try{c(a.next(t))}catch(e){r(e)}}function s(t){try{c(a.throw(t))}catch(e){r(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}c((a=a.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(o=0)),o;)try{if(n=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]\n
\n

\n {{ ::\'simple_payments_page_app.form.bank_transfer.header\' | translate }}\n

\n

\n {{ ::\'simple_payments_page_app.form.bank_transfer.description\' | translate\n }}\n

\n
\n
\n
\n
{{ row.label }}
\n
{{ row.value }}
\n \n
\n
\n\n\n {{ ::"simple_payments_page_app.form.bank_transfer.loading_message" | translate\n }}\n\n\n
\n

\n {{\n ::"simple_payments_page_app.error.bank_transfer_information_failed.heading"\n | translate}}\n

\n

\n {{\n ::"simple_payments_page_app.error.bank_transfer_information_failed.message"\n | translate}}\n

\n
\n
\n
\n
\n
\n

\n {{\n ::\'simple_payments_page_app.form.bank_transfer.addresses_section.header\'\n | translate }}\n

\n

\n {{\n ::\'simple_payments_page_app.form.bank_transfer.addresses_section.description\'\n | translate }}\n

\n
\n
\n

\n {{\n ::\'simple_payments_page_app.form.bank_transfer.addresses_section.bank\' |\n translate }}\n

\n

{{ addressLine }}

\n
\n
\n

\n {{\n ::\'simple_payments_page_app.form.bank_transfer.addresses_section.account_holder\'\n | translate }}\n

\n

\n {{ addressLine }}\n

\n
\n
\n

\n
\n'},5244:function(t,e,n){},5245:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CustomPaymentDetailsController=e.CustomPaymentDetailsComponent=void 0,n(5246);var a=n(5247),i=function(){};e.CustomPaymentDetailsController=i;var r={bindings:{currencySymbol:"@",paymentDetails:"<"},controller:i,template:a};e.CustomPaymentDetailsComponent=r},5246:function(t,e,n){},5247:function(t,e){t.exports='\n \n \n \n \n \n \n \n
\n {{ \'simple_payments_page_app.form.amount_label\' | translate }}\n
\n
\n \n
\n {{ $ctrl.paymentDetails.amount | currency: $ctrl.currencySymbol }}\n
\n
\n
\n \n \n
\n {{ \'simple_payments_page_app.form.custom_payment_description_label\' |\n translate }}\n
\n
\n \n
{{ $ctrl.paymentDetails.description }}
\n
\n
\n
\n'},5248:function(t,e,n){"use strict";var a=this&&this.__awaiter||function(t,e,n,a){return new(n||(n=Promise))((function(i,r){function o(t){try{c(a.next(t))}catch(e){r(e)}}function s(t){try{c(a.throw(t))}catch(e){r(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}c((a=a.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(o=0)),o;)try{if(n=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=o.AMOUNT_LIMITS.MINIMUM_CARD_PAYMENT_AMOUNT&&e<=o.AMOUNT_LIMITS.MAXIMUM_CARD_PAYMENT_AMOUNT},t.prototype.isDescriptionValid=function(){if(!this.paymentDetails.hasOwnProperty("description"))return!0;var t=this.paymentDetails.description;return(null===t||void 0===t?void 0:t.trim().length)>0},t.prototype.initializeDigitalWalletButton=function(){var t,e=this,n=(null===(t=this.paymentDetails)||void 0===t?void 0:t.amount)||0;this.hostedFieldsWrapper.initializeDigitalWallet(n,this.clioPaymentsCountry,this.currencyCode,this.firmName),this.hostedFieldsWrapper.mountDigitalWalletButton("digital-wallet"),this.hostedFieldsWrapper.onDigitalWalletButtonClick(this.onClick),this.hostedFieldsWrapper.onPaymentMethodReady((function(t){return a(e,void 0,void 0,(function(){return i(this,(function(e){return this.processPayment(t),[2]}))}))}))},t.prototype.processPayment=function(t){this.onPaymentSubmission(t)},t.$inject=["$timeout"],t}();e.DigitalWalletController=l;var p={bindings:{acceptedPaymentMethods:s.BINDING_TYPE.ONE_WAY,canCreateDigitalWalletPayments:s.BINDING_TYPE.ONE_WAY,clioPaymentsCountry:s.BINDING_TYPE.TEXT,currencyCode:s.BINDING_TYPE.TEXT,displayCustomPaymentLinkDetails:s.BINDING_TYPE.ONE_WAY,firmName:s.BINDING_TYPE.TEXT,onClickCallback:s.BINDING_TYPE.ONE_WAY,onPaymentSubmission:s.BINDING_TYPE.ONE_WAY,paymentDetails:s.BINDING_TYPE.ONE_WAY,provider:s.BINDING_TYPE.TEXT,providerApiVersion:s.BINDING_TYPE.ONE_WAY,publicKey:s.BINDING_TYPE.ONE_WAY},controller:l,template:r};e.DigitalWalletComponent=p},5249:function(t,e){t.exports='
\n
\n \x3c!-- A Stripe Element will be inserted here. --\x3e\n
\n
\n

\n
\n
\n'},5250:function(t,e,n){},5251:function(t,e,n){"use strict";var a=this&&this.__awaiter||function(t,e,n,a){return new(n||(n=Promise))((function(i,r){function o(t){try{c(a.next(t))}catch(e){r(e)}}function s(t){try{c(a.throw(t))}catch(e){r(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}c((a=a.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(o=0)),o;)try{if(n=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]\n \n \n \n \n \n \n\n'},5255:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FutureUseMandateAgreementComponent=void 0;var a=n(5256),i=n(0),r=n(412),o=n(283),s=function(){function t(t){this.$translate=t}return t.prototype.bodyMessage=function(){var t=this.$translate.instant(this.modal.context.translationId,{firm_name:this.modal.context.firmName,firm_name_possessive:(0,r.possessive)(this.modal.context.firmName)});return(0,o.replaceAmpersand)(t)},t.$inject=["$translate"],t}(),c={bindings:{modal:i.BINDING_TYPE.ONE_WAY},controller:s,template:a};e.FutureUseMandateAgreementComponent=c},5256:function(t,e){t.exports='\n\n
{{ $ctrl.bodyMessage() }}
\n
\n\n Close\n\n'},5257:function(t,e,n){"use strict";var a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var a,i=0,r=e.length;ithis.defaultInvoicesToView},t.prototype.toggleShowMore=function(){this.showMore=!this.showMore},t.prototype.toggleText=function(){return this.showMore?this.$translate.instant("simple_payments_page_app.invoices_details.show_less"):this.$translate.instant("simple_payments_page_app.invoices_details.show_all",{invoices_count:this.invoicesData.length})},t.prototype.triggerBlobDownload=function(t,e){var n=URL.createObjectURL(t),a=this.$document[0].createElement("a");a.href=n,a.download=e,this.$document[0].body.appendChild(a),a.click(),a.remove(),URL.revokeObjectURL(n)},t.$inject=["$document","$translate","$http","NotificationService"],t}();e.InvoicesInformationController=s;var c={bindings:{currencySymbol:r.BINDING_TYPE.TEXT,invoicesData:r.BINDING_TYPE.ONE_WAY,isTrustAccount:r.BINDING_TYPE.ONE_WAY,token:r.BINDING_TYPE.ONE_WAY,mode:r.BINDING_TYPE.ONE_WAY},controller:s,template:o};e.InvoicesInformationComponent=c},5258:function(t,e,n){},5259:function(t,e){t.exports='
\n
    \n
  • \n
    \n \n {{ $ctrl.getInvoiceTypeText(invoice) }} {{ invoice.number }}\n \n \n {{ \'simple_payments_page_app.invoices_information.due_text\' |\n translate }} {{ $ctrl.formatDate(invoice.due_at) }}\n \n
    \n
    \n \n {{ invoice.outstanding_balance_after_pending_payments |\n numberAsCurrency:$ctrl.currencySymbol:2:true }}\n \n \n
    \n \n \n
    \n \n
    \n
  • \n
\n
\n\n'},5260:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InvoicesPaymentController=e.InvoicesPaymentComponent=void 0,n(5261);var a=n(0),i=n(599),r=n(5262),o=function(){function t(){}return t.prototype.$onInit=function(){this.totalAmountDue=i.InvoiceDataHelper.calculateTotalAmountDue(this.invoicesData)},t.prototype.isSingleInvoice=function(){return 1===this.invoicesData.length},t}();e.InvoicesPaymentController=o;var s={bindings:{clioPaymentsCountry:a.BINDING_TYPE.ONE_WAY,currencySymbol:a.BINDING_TYPE.TEXT,currencyCode:a.BINDING_TYPE.TEXT,invoicesData:a.BINDING_TYPE.ONE_WAY,isTrustAccount:a.BINDING_TYPE.ONE_WAY,paymentDetails:a.BINDING_TYPE.ONE_WAY,paymentType:a.BINDING_TYPE.ONE_WAY,provider:a.BINDING_TYPE.ONE_WAY,onUpdate:a.BINDING_TYPE.METHOD,token:a.BINDING_TYPE.ONE_WAY,mode:a.BINDING_TYPE.ONE_WAY},controller:o,template:r};e.InvoicesPaymentComponent=s},5261:function(t,e,n){},5262:function(t,e){t.exports='\n\n
\n\n\n\n'},5263:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LargePaymentConfirmationComponent=void 0;var a=n(5264);n(5265);var i=n(0),r=function(){function t(){this.submitting=!1}return t.prototype.confirm=function(){this.submitting=!0,this.modal.confirm({})},t.prototype.onEditAmount=function(){this.submitting=!0,this.modal.context.onBack(),this.modal.dismissWithRejectedPromise("Edit Payment")},t}(),o={bindings:{modal:i.BINDING_TYPE.ONE_WAY},controller:r,template:a};e.LargePaymentConfirmationComponent=o},5264:function(t,e){t.exports='
\n \n \n \n \n \n \n \n {{ \'simple_payments_page_app.large-payment-confirmation.button_edit\' |\n translate }}\n \n \n {{ \'simple_payments_page_app.large-payment-confirmation.button_confirm\'\n | translate }}\n \n \n \n
\n'},5265:function(t,e,n){},5266:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PaymentAmountDetailsController=e.PaymentAmountDetailsComponent=void 0,n(5267);var a=n(5268),i=n(0),r=function(){function t(t,e,n,a){this.$filter=t,this.$translate=e,this.PaymentLimitValidatorService=n,this.readOnly=!1,this.PendingBuyNowPayLaterService=a,this.setAmountValidationMessage(),this.setPaymentAmount(),this.onPaymentAmountUpdated()}return t.prototype.$onInit=function(){var t;(null===(t=this.paymentDetails)||void 0===t?void 0:t.amount)&&(this.readOnly=!0)},t.prototype.$onChanges=function(t){t.paymentType&&this.validatePaymentAmount()},t.prototype.onPaymentAmountUpdated=function(){this.setBalanceAfterPayment(),this.validatePaymentAmount();var t={amount:this.paymentAmount,balanceAfterPayment:this.balanceAfterPayment};this.onUpdate({update:t})},t.prototype.validatePaymentAmount=function(){this.form&&this.PaymentLimitValidatorService.validatePaymentAmountFormField(this.paymentAmount,this.paymentType,this.form.amount,this.clioPaymentsCountry)},t.prototype.setAmountValidationMessage=function(){this.paymentAmountValidationMessage=Object.assign({},{max:this.$translate.instant("simple_payments_page_app.payment_amount_details.maximum_amount_validation",{maximum_amount:this.totalAmountDue})},this.PaymentLimitValidatorService.getPaymentAmountValidationMessages(this.currencySymbol))},t.prototype.setBalanceAfterPayment=function(){this.balanceAfterPayment=this.totalAmountDue-this.paymentAmount},t.prototype.setPaymentAmount=function(){this.paymentDetails&&this.paymentDetails.amount?this.paymentAmount=this.paymentDetails.amount:this.paymentAmount=this.totalAmountDue},t.prototype.paymentAmountLabel=function(){return"stripe"===this.provider?this.$translate.instant("simple_payments_page_app.form.amount_label_with_currency",{currency_code:this.currencyCode}):this.$translate.instant("simple_payments_page_app.form.amount_label")},t.$inject=["$filter","$translate","PaymentLimitValidatorService","PendingBuyNowPayLaterService"],t}();e.PaymentAmountDetailsController=r;var o={bindings:{clioPaymentsCountry:i.BINDING_TYPE.ONE_WAY,currencySymbol:i.BINDING_TYPE.TEXT,currencyCode:i.BINDING_TYPE.TEXT,isSingleInvoice:i.BINDING_TYPE.ONE_WAY,onUpdate:i.BINDING_TYPE.METHOD,paymentDetails:i.BINDING_TYPE.ONE_WAY,paymentType:i.BINDING_TYPE.ONE_WAY,provider:i.BINDING_TYPE.ONE_WAY,totalAmountDue:i.BINDING_TYPE.ONE_WAY},controller:r,template:a};e.PaymentAmountDetailsComponent=o},5267:function(t,e,n){},5268:function(t,e){t.exports='
\n
\n {{ \'simple_payments_page_app.payment_amount_details.total_amount_due\' |\n translate }}\n
\n
\n {{ $ctrl.totalAmountDue | currency: $ctrl.currencySymbol }}\n
\n
\n\n
\n \n \n \n \n
\n
\n
\n {{\n \'simple_payments_page_app.payment_amount_details.balance_after_payment\'\n | translate }} {{ $ctrl.balanceAfterPayment | currency:\n $ctrl.currencySymbol }}\n
\n
\n \n {{ \'simple_payments_page_app.payment_amount_details.payment_distribution\'\n | translate }}\n \n
\n
\n
\n {{\n \'simple_payments_page_app.payment_amount_details.no_outstanding_balance.single_invoice\'\n | translate }}\n
\n
\n {{\n \'simple_payments_page_app.payment_amount_details.no_outstanding_balance.multi_invoice\'\n | translate }}\n
\n
\n
\n'},5269:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PaymentConfirmationController=e.PaymentConfirmationComponent=void 0,n(5270);var a=n(0),i=n(5271),r=function(){function t(t,e){this.$window=t,this.$translate=e}return t.prototype.$onInit=function(){this.authorizationCode&&this.authorizationCode.trim()||this.logMissingAuthCodeError()},t.prototype.getAuthorizationCodeLabel=function(){return this.useAuthorizationCode?"simple_payments_page_app.authorized_notification_confirmation.authorization_code":"simple_payments_page_app.authorized_notification_confirmation.confirmation_number"},t.prototype.getAuthorizationCodeLabelText=function(){return this.useAuthorizationCode?"simple_payments_page_app.authorized_notification_confirmation.authorization_code_label":"simple_payments_page_app.authorized_notification_confirmation.confirmation_number_label"},t.prototype.totalAmount=function(){return this.surchargeAmount?this.amount+this.surchargeAmount:this.amount},t.prototype.surchargeAmountMessage=function(){return 0===this.surchargeAmount?this.$translate.instant("simple_payments_page_app.confirmation.zero_surcharge_message"):this.$translate.instant("simple_payments_page_app.confirmation.surcharge_message",{surcharge_amount:this.surchargeAmount})},t.prototype.logMissingAuthCodeError=function(){this.$window.clioLogger&&this.$window.clioLogger.error("Payment appears successful but doesn't have auth code (Confirm that the auth code exists or take follow-up action if necessary)",{section:"payments"})},t.$inject=["$window","$translate"],t}();e.PaymentConfirmationController=r;var o={template:i,controller:r,bindings:{authorizationCode:a.BINDING_TYPE.ONE_WAY,currencyCode:a.BINDING_TYPE.ONE_WAY,email:a.BINDING_TYPE.ONE_WAY,amount:a.BINDING_TYPE.ONE_WAY,showSurchargePaymentMessage:a.BINDING_TYPE.ONE_WAY,surchargeAmount:a.BINDING_TYPE.ONE_WAY,statementDescriptor:a.BINDING_TYPE.ONE_WAY,useAuthorizationCode:a.BINDING_TYPE.ONE_WAY}};e.PaymentConfirmationComponent=o},5270:function(t,e,n){},5271:function(t,e){t.exports='
\n \n
\n
\n \n \n {{ $ctrl.totalAmount() | numberAsCurrency: $ctrl.currencyCode }}\n
\n \n {{ ::$ctrl.surchargeAmountMessage() }}\n \n\n
\n
\n\n \n
\n {{ $ctrl.getAuthorizationCodeLabelText() | translate }}\n
\n
\n {{ $ctrl.authorizationCode }}\n
\n \n\n \n
\n {{\n "simple_payments_page_app.authorized_notification_confirmation.statement_descriptor_label"\n | translate }}\n
\n
\n {{ $ctrl.statementDescriptor }}\n
\n \n\n'},5272:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PaymentDetailsFormController=e.PaymentDetailsFormComponent=void 0;var a=n(35);n(5273);var i=n(5274),r=n(0),o=n(60),s=function(){function t(t,e,n){var a=this;this.$scope=t,this.$translate=e,this.PaymentLimitValidatorService=n,this.amountReadonly=!1,this.descriptionReadonly=!1,this.$scope.$on(o.VALIDATE_PAYMENT_DETAILS_FORM_EVENT,(function(){a.validatePaymentDetailsForm()}))}return t.prototype.$onInit=function(){var t,e;this.paymentAmountValidationMessage=this.PaymentLimitValidatorService.getPaymentAmountValidationMessages(this.currencySymbol,this.clioPaymentsCountry),(null===(t=this.paymentDetails)||void 0===t?void 0:t.amount)&&(this.amountReadonly=!0),(null===(e=this.paymentDetails)||void 0===e?void 0:e.description)&&(this.descriptionReadonly=!0)},t.prototype.$onChanges=function(t){t.paymentType&&this.validatePaymentAmount()},Object.defineProperty(t.prototype,"amount",{get:function(){return this.paymentDetails?this.paymentDetails.amount:null},set:function(t){this.sendUpdate(t,this.description)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.paymentDetails?this.paymentDetails.description:null},set:function(t){this.sendUpdate(this.amount,t)},enumerable:!1,configurable:!0}),t.prototype.paymentAmountLabel=function(){return"stripe"===this.provider?this.$translate.instant("simple_payments_page_app.form.amount_label_with_currency",{currency_code:this.currencyCode}):this.$translate.instant("simple_payments_page_app.form.amount_label")},t.prototype.paymentDescriptionSubtext=function(){if(!this.descriptionReadonly)return this.$translate.instant("simple_payments_page_app.form.description_example")},t.prototype.validatePaymentAmount=function(){this.paymentDetailsForm&&this.PaymentLimitValidatorService.validatePaymentAmountFormField(this.amount,this.paymentType,this.paymentDetailsForm.paymentAmount,this.clioPaymentsCountry)},t.prototype.validatePaymentDetailsForm=function(){this.paymentDetailsForm.$invalid&&(a.touchAllInvalidRequiredFields(this.paymentDetailsForm),this.$scope.$apply())},t.prototype.sendUpdate=function(t,e){var n={amount:t,description:e};this.onUpdate({update:n})},t.$inject=["$scope","$translate","PaymentLimitValidatorService"],t}();e.PaymentDetailsFormController=s;var c={bindings:{clioPaymentsCountry:r.BINDING_TYPE.ONE_WAY,currencySymbol:r.BINDING_TYPE.TEXT,currencyCode:r.BINDING_TYPE.TEXT,onUpdate:r.BINDING_TYPE.METHOD,paymentDetails:r.BINDING_TYPE.ONE_WAY,paymentType:r.BINDING_TYPE.ONE_WAY,provider:r.BINDING_TYPE.ONE_WAY},controller:s,template:i};e.PaymentDetailsFormComponent=c},5273:function(t,e,n){},5274:function(t,e){t.exports='\n \n \n
\n \n \n
\n
\n
\n \n \n
\n \n
\n
\n
\n
\n'},5275:function(t,e,n){"use strict";var a,i=this&&this.__extends||(a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},a(t,e)},function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__awaiter||function(t,e,n,a){return new(n||(n=Promise))((function(i,r){function o(t){try{c(a.next(t))}catch(e){r(e)}}function s(t){try{c(a.throw(t))}catch(e){r(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}c((a=a.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(o=0)),o;)try{if(n=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]',type:"apollo",context:{firmName:l.firmName,translationId:t}})},l.idempotencyKey=y.v4(),l.idempotencyKey2=y.v4(),l}return i(e,t),e.prototype.$onInit=function(){if(this.isRecaptchable())try{this.initializeRecaptcha(u.RECAPTCHA_DOM_IDS.PAYMENT_PAGE)}catch(t){this.onBack({error:{message:this.$translate.instant("simple_payments_page_app.error.recaptcha_failed")}})}},e.prototype.isNetworkError=function(t){return"Payments::Errors::RetryableNetworkError"===(null===t||void 0===t?void 0:t.type)},e.prototype.isIdempotencyError=function(t){return"Payments::Errors::ProviderIdempotencyError"===(null===t||void 0===t?void 0:t.type)},e.prototype.isModeSecureLink=function(){return"secure-link"===this.mode},e.prototype.isModeCustomPaymentLink=function(){return"grow-payment-link"===this.mode},e.prototype.showSalesDemoErrorMessage=function(){this.NotificationService.showError(this.$translate.instant("simple_payments_page_app.notification.sales_account"))},e.prototype.processPayment=function(t,e,n){var a=e?this.idempotencyKey2:this.idempotencyKey,i={accountId:this.accountId,email:this.email,idempotencyKey:a,paymentDetails:this.paymentDetails,paymentMethod:t,mode:this.mode,source:this.source,subjectId:this.subjectId,token:this.token,withdrawalAuthorized:this.withdrawalAuthorized,chargeId:e,fromQrCode:this.fromQrCode,name:this.getBankAccountHolderName(),originMetadata:this.originMetadata,recaptchaToken:this.recaptchaToken,storageAuthorized:this.storageAuthorized,vaultedPaymentMethodId:n};return(0,s.processPaymentRequest)(i)},e.prototype.isRecaptchable=function(){return"true"===this.recaptchable},e.prototype.withdrawalAuthorizationMessage=function(){var t=this.$translate.instant("simple_payments_page_app.summary.operating_withdrawal_authorization_message_bank",{firm_name_possessive:(0,p.possessive)(this.firmName),firm_name:this.firmName});return"gb"===this.clioPaymentsCountry&&(t=this.$translate.instant("simple_payments_page_app.summary.operating_withdrawal_authorization_message_bank_gb",{firm_name:this.firmName,firm_name_possessive:(0,p.possessive)(this.firmName)})),"au"===this.clioPaymentsCountry&&(t=this.$translate.instant("simple_payments_page_app.summary.operating_withdrawal_authorization_message_bank_au",{firm_name:this.firmName,firm_name_possessive:(0,p.possessive)(this.firmName)})),(0,d.replaceAmpersand)(t)},e.prototype.storageAuthorizationMessage=function(){var t=this.$translate.instant("simple_payments_page_app.summary.storage_authorization_message",{firm_name:this.firmName,firm_name_possessive:(0,p.possessive)(this.firmName)});return"gb"===this.clioPaymentsCountry&&this.isBankPaymentMethod()&&(t=this.$translate.instant("simple_payments_page_app.summary.storage_authorization_message_gb",{firm_name:this.firmName,firm_name_possessive:(0,p.possessive)(this.firmName)})),"au"===this.clioPaymentsCountry&&this.isBankPaymentMethod()&&(t=this.$translate.instant("simple_payments_page_app.summary.storage_authorization_message_au",{firm_name:this.firmName,firm_name_possessive:(0,p.possessive)(this.firmName)})),(0,d.replaceAmpersand)(t)},e.prototype.authorizationMessageParagraph=function(){var t=this.$translate.instant("simple_payments_page_app.summary.authorization_message_paragraph",{firm_name:this.firmName});return(0,d.replaceAmpersand)(t)},e.prototype.showAuthorizationForm=function(){return this.requiresWithdrawalAuthorization()||this.showPaymentMethodStorageAuthorization()},e.prototype.requiresWithdrawalAuthorization=function(){return this.isBankPaymentMethod()&&"stripe"===this.provider},e.prototype.showPaymentMethodStorageAuthorization=function(){return!this.isModeSecureLink()&&!this.isModeCustomPaymentLink()&&"stripe"===this.provider},e.prototype.isBankPaymentMethod=function(){return this.paymentMethod.type===l.paymentMethodTypes.bank},e.prototype.isBacsPaymentMethod=function(){return this.paymentMethod.type===l.paymentMethodTypes.bank&&"gb"===this.clioPaymentsCountry},e.prototype.countryName=function(t){return this.ISO3166.getCountryName(t)},e.prototype.openPaymentMandateModal=function(){"ie"===this.clioPaymentsCountry?this.openMandateModal("simple_payments_page_app.summary.payment_mandate_message_ie"):this.openMandateModal("simple_payments_page_app.summary.payment_mandate_message")},e.prototype.openStorageMandateModal=function(){this.openMandateModal("simple_payments_page_app.summary.storage_mandate_message")},e.prototype.agreementTypeText=function(){return this.isBankPaymentMethod()?"au"===this.clioPaymentsCountry?this.$translate.instant("simple_payments_page_app.summary.direct_debit_authorisation_service_agreement"):this.$translate.instant("simple_payments_page_app.summary.mandate_agreement"):this.$translate.instant("simple_payments_page_app.summary.fee_agreement")},e.prototype.getBankAccountHolderName=function(){return this.requiresWithdrawalAuthorization()?this.paymentMethod.name:void 0},e.prototype.isLargeSimpleCardPayment=function(){var t=this.getLargePaymentWarningLimit(),e=this.paymentDetails.amount>=t,n="card"===this.paymentMethod.type;return e&&n&&this.isModeSecureLink()},e.prototype.getLargePaymentWarningLimit=function(){return u.LARGE_PAYMENT_WARNING_LIMIT[this.currencyCode]||u.DEFAULT_LARGE_PAYMENT_WARNING_LIMIT},e.prototype.handleLargePaymentWarning=function(){return r(this,void 0,void 0,(function(){var t,e;return o(this,(function(n){switch(n.label){case 0:t=!1,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.openLargePaymentModal()];case 2:return n.sent(),t=!0,[3,4];case 3:return e=n.sent(),void 0===e&&this.recaptchaHelper.resetRecaptcha(),[3,4];case 4:return[2,t]}}))}))},e.prototype.openLargePaymentModal=function(){return this.ModalManager.show({name:"cc-large-payment-confirmation",template:'',type:"apollo",context:{amount:this.paymentDetails.amount,currencyCode:this.currencyCode,currencySymbol:this.currencySymbol,onBack:this.onBack}})},e.prototype.notificationService=function(){return this.NotificationService},e.prototype.translateService=function(){return this.$translate},e.prototype.setSubmitting=function(t){this.submitting=t},e.$inject=["$scope","$translate","NotificationService","$location","ModalManager","ISO3166"],e}(m.RecaptchaBase);e.PaymentDetailsSummaryController=f;var g={template:h,controller:f,bindings:{accountId:c.BINDING_TYPE.TEXT,billingAddress:c.BINDING_TYPE.ONE_WAY,bankPaymentsWithoutVerificationEnabled:c.BINDING_TYPE.ONE_WAY,subjectId:c.BINDING_TYPE.TEXT,clioPaymentsCountry:c.BINDING_TYPE.ONE_WAY,currencyCode:c.BINDING_TYPE.TEXT,currencySymbol:c.BINDING_TYPE.TEXT,email:c.BINDING_TYPE.TEXT,firmName:c.BINDING_TYPE.TEXT,formDisabled:c.BINDING_TYPE.ONE_WAY,fromQrCode:c.BINDING_TYPE.ONE_WAY,handleActionRequired:c.BINDING_TYPE.METHOD,invoicesData:c.BINDING_TYPE.ONE_WAY,mode:c.BINDING_TYPE.ONE_WAY,newSouthWalesRules:c.BINDING_TYPE.ONE_WAY,onBack:c.BINDING_TYPE.METHOD,onPaymentSuccess:c.BINDING_TYPE.METHOD,originMetadata:c.BINDING_TYPE.ONE_WAY,paymentDetails:c.BINDING_TYPE.ONE_WAY,paymentMethod:c.BINDING_TYPE.ONE_WAY,provider:c.BINDING_TYPE.TEXT,salesDemoAccount:c.BINDING_TYPE.ONE_WAY,showSurchargePaymentMessage:c.BINDING_TYPE.ONE_WAY,source:c.BINDING_TYPE.ONE_WAY,statementDescriptor:c.BINDING_TYPE.ONE_WAY,statementDescriptorRolloutEnabled:c.BINDING_TYPE.ONE_WAY,recaptchable:c.BINDING_TYPE.TEXT,recaptchaSiteKey:c.BINDING_TYPE.TEXT,token:c.BINDING_TYPE.TEXT}};e.PaymentDetailsSummaryComponent=g},5276:function(t,e,n){},5277:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PaymentApiRequestParamsBuilder=void 0;var a=function(){function t(t){this.processPaymentBuildingParams=t,this.processPaymentApiRequestParams=this.buildCommonParams(this.processPaymentBuildingParams)}return t.prototype.clioConnectPaymentParams=function(){return this.addParamsForVaultingPaymentMethod(),this.processPaymentApiRequestParams},t.prototype.simplePaymentParams=function(){return this.processPaymentApiRequestParams.subject.id=this.processPaymentBuildingParams.accountId,this.addRecaptchaTokenParam(),this.addFromQrCodeParam(),this.addOriginMetadataParam(),this.processPaymentApiRequestParams},t.prototype.smartPaymentParams=function(){return this.addFromQrCodeParam(),this.addOriginMetadataParam(),this.addSourceParam(),this.addParamsForVaultingPaymentMethod(),this.addRecaptchaTokenParam(),this.processPaymentApiRequestParams},t.prototype.buildCommonParams=function(t){var e=t.paymentMethod,n={amount:t.paymentDetails.amount,surcharge_amount:t.paymentDetails.surchargeAmount,subject:{id:t.subjectId},description:t.paymentDetails.description,idempotency_key:t.idempotencyKey,token:t.token,email:t.email,payment_method_token:e.id,payment_method_token_type:e.type,withdrawal_authorized:t.withdrawalAuthorized,name:t.name,billing_address:{address1:e.address1,city:e.city,state_code:e.state,postal_code:e.postal_code,country_code:e.country},financing_provider:t.financingProvider};return(null===e||void 0===e?void 0:e.bank_account_number)&&(null===e||void 0===e?void 0:e.bank_account_routing_number)&&(null===e||void 0===e?void 0:e.bank_account_name)&&(n.bank_account_details={bank_account_name:e.bank_account_name,bank_account_number:e.bank_account_number,bank_account_routing_number:e.bank_account_routing_number.replace(/-/g,"")}),t.chargeId&&(n.charge_id=t.chargeId),e.account_type&&(n.bank_account_type=e.account_type),n},t.prototype.addFromQrCodeParam=function(){this.processPaymentApiRequestParams.from_qr_code=this.processPaymentBuildingParams.fromQrCode},t.prototype.addOriginMetadataParam=function(){this.processPaymentApiRequestParams.origin_metadata=this.processPaymentBuildingParams.originMetadata},t.prototype.addParamsForVaultingPaymentMethod=function(){this.processPaymentApiRequestParams.storage_authorized=this.processPaymentBuildingParams.storageAuthorized,this.processPaymentBuildingParams.vaultedPaymentMethodId&&(this.processPaymentApiRequestParams.vaulted_payment_method_id=this.processPaymentBuildingParams.vaultedPaymentMethodId)},t.prototype.addSourceParam=function(){this.processPaymentApiRequestParams.source=this.processPaymentBuildingParams.source},t.prototype.addRecaptchaTokenParam=function(){this.processPaymentApiRequestParams.recaptcha_token=this.processPaymentBuildingParams.recaptchaToken},t.$inject=["processPaymentBuildingParams"],t}();e.PaymentApiRequestParamsBuilder=a},5278:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecaptchaHelper=void 0;var a=function(){function t(t,e,n,a,i){this.domID=t,this.errorCallback=e,this.expiredCallback=n,this.resolvedCallback=a,this.siteKey=i}return t.prototype.initializeRecaptcha=function(){this.recaptchaWidgetId=window.grecaptcha.render(this.domID,{callback:this.resolvedCallback,"error-callback":this.errorCallback,"expired-callback":this.expiredCallback,sitekey:this.siteKey,size:"invisible"})},t.prototype.executeRecaptcha=function(){var t;null===(t=window.grecaptcha)||void 0===t||t.execute(this.recaptchaWidgetId)},t.prototype.resetRecaptcha=function(){var t;null===(t=window.grecaptcha)||void 0===t||t.reset(this.recaptchaWidgetId)},t}();e.RecaptchaHelper=a},5279:function(t,e){t.exports='
\n \n \n
\n\n \n \n
\n \n \n {{ "simple_payments_page_app.summary.back_button" | translate }}\n \n \n {{ "simple_payments_page_app.summary.submit_button" | translate }}\n \n \n\n'},5280:function(t,e,n){"use strict";var a,i=this&&this.__extends||(a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},a(t,e)},function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0},e.prototype.showSurchargingNotificationForDebitCard=function(){return"au"===this.clioPaymentsCountry&&this.showSurchargingNotification()},e.prototype.creditCardSurchargingMessage=function(){return"au"===this.clioPaymentsCountry?this.$translate.instant("simple_payments_page_app.form.credit_card_surcharging_message_without_amount"):this.$translate.instant("simple_payments_page_app.form.credit_card_surcharging_message",{amount:this.ceilingSurchargingRate.toFixed(2)})},e.prototype.calculateSurcharge=function(t){return o(this,void 0,Promise,(function(){var e;return s(this,(function(n){return e={amount:this.paymentDetails.amount,countryCode:t.country,fundingType:t.funding,stateCode:t.state,subtype:t.subtype,type:t.type},[2,"clio-connect"===this.mode?(0,u.getSurchargeDataWithCurrentAccount)(e):(0,u.getSurchargeDataWithToken)(r(r({},e),{token:this.token}))]}))}))},e.prototype.setSurchargeDetails=function(t){this.useSurcharging&&t?(this.paymentDetails.surchargeAmount=t.surcharge_in_cents/100,this.paymentDetails.surchargePercentage=t.surcharge_rate,this.paymentDetails.surchargeFixedFee=t.surcharge_fixed_fee_in_cents/100):(this.paymentDetails.surchargeAmount=0,this.paymentDetails.surchargePercentage=0,this.paymentDetails.surchargeFixedFee=0)},e.prototype.recaptchaResolvedCallback=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.submitDigitalWalletPayment()];case 1:return t.sent(),[2]}}))}))},e.prototype.refreshIdempotencyKeys=function(){this.idempotencyKey=g.v4(),this.idempotencyKey2=g.v4()},e.prototype.processDigitalWalletPayment=function(t,e){return o(this,void 0,Promise,(function(){var n,a;return s(this,(function(i){switch(i.label){case 0:return n=e?this.idempotencyKey2:this.idempotencyKey,a={accountId:this.accountId,chargeId:e,email:t.email,fromQrCode:this.fromQrCode,idempotencyKey:n,mode:this.mode,originMetadata:this.originMetadata,paymentDetails:this.paymentDetails,paymentMethod:t,recaptchaToken:this.recaptchaToken,source:this.source,subjectId:this.subjectId,token:this.token,withdrawalAuthorized:!1},[4,(0,u.processPaymentRequest)(a)];case 1:return[2,i.sent()]}}))}))},e.prototype.onDigitalWalletPaymentSuccess=function(t,e){this.onEmailUpdate({update:t.email}),this.onPaymentSuccess({response:e}),this.$scope.$applyAsync()},e.prototype.onPaymentError=function(t){var e,n,a=(null===(n=null===(e=null===t||void 0===t?void 0:t.response)||void 0===e?void 0:e.data)||void 0===n?void 0:n.error)||t;this.isNetworkError(a.type)?this.NotificationService.showError(a.message):(this.refreshIdempotencyKeys(),this.updatePaymentError(this.getErrorMessage(t)))},e.prototype.isNetworkError=function(t){return"Payments::Errors::RetryableNetworkError"===t},e.prototype.saveTemporaryFormData=function(){var t,e={billingAddress:this.billingAddress,email:this.email,paymentDetails:this.paymentDetails,name:(null===(t=this.paymentInformation)||void 0===t?void 0:t.name)||""};sessionStorage.setItem(_,JSON.stringify(e))},e.prototype.restoreTemporaryFormData=function(){var t=JSON.parse(sessionStorage.getItem(_));t&&(this.onBillingAddressUpdate({update:t.billingAddress}),this.onEmailUpdate({update:t.email}),this.onPaymentDetailsUpdate({update:t.paymentDetails}),this.onPaymentInformationUpdate({update:{name:t.name}})),this.eraseTemporaryFormData()},e.prototype.eraseTemporaryFormData=function(){sessionStorage.removeItem(_)},e.prototype.trackHoneypotSubmission=function(){this.segmentAnalyticsService.track("Detected Payment Fraud")},e.prototype.getErrorMessage=function(t){var e,n,a;if(t&&l.default.isAxiosError(t)&&(null===(a=null===(n=null===(e=t.response)||void 0===e?void 0:e.data)||void 0===n?void 0:n.error)||void 0===a?void 0:a.message)){if("recaptcha_v2_failed"===t.response.data.error.message)return this.translate("simple_payments_page_app.notification.recaptcha_error");var i=t.response.data.error.message.replace(/^[^:]*:\s?/,"");return"."!==i[i.length-1]&&(i+="."),this.translate("simple_payments_page_app.notification.payment_failure_with_message",{message:i})}return(null===t||void 0===t?void 0:t.message)?t.message:this.translate("simple_payments_page_app.notification.payment_failure")},e.prototype.areHostedFieldsValid=function(){return!!this.isSalesDemoAccount||this.hostedFieldsWrapper.areAllFieldsValid()},e.prototype.translate=function(t,e){return this.$translate.instant(t,e)},e.prototype.salesDemoAccountPaymentMethod=function(){var t=this.paymentInformation;return{exp_month:t.expiryMonth,exp_year:t.expiryYear,name:t.name,number:t.number,type:"Visa"}},e.prototype.isRecaptchable=function(){return"true"===this.recaptchable},e.prototype.registerRecaptchaOnloadCallback=function(){var t=this;window.onloadCallback=function(){t.initializeRecaptcha(h.RECAPTCHA_DOM_IDS.DIGITAL_WALLET)}},e.prototype.notificationService=function(){return this.NotificationService},e.prototype.translateService=function(){return this.$translate},e.$inject=["$scope","$translate","$window","NotificationService","segmentAnalyticsService","BuyNowPayLaterService"],e}(m.RecaptchaBase);e.PaymentFormController=v;var P={bindings:{acceptedPaymentMethods:d.BINDING_TYPE.ONE_WAY,accountId:d.BINDING_TYPE.ONE_WAY,bankPaymentsWithoutVerificationEnabled:d.BINDING_TYPE.ONE_WAY,bankTransferInstructions:d.BINDING_TYPE.ONE_WAY,bankTransferInstructionsError:d.BINDING_TYPE.ONE_WAY,billingAddress:d.BINDING_TYPE.ONE_WAY,subjectId:d.BINDING_TYPE.TEXT,canCreateBuyNowPayLaterPayments:d.BINDING_TYPE.ONE_WAY,canCreateDigitalWalletPayments:d.BINDING_TYPE.ONE_WAY,ceilingSurchargingRate:d.BINDING_TYPE.ONE_WAY,clioPaymentsCountry:d.BINDING_TYPE.ONE_WAY,currencySymbol:d.BINDING_TYPE.TEXT,currencyCode:d.BINDING_TYPE.TEXT,debitPrioritizationEnabled:d.BINDING_TYPE.ONE_WAY,debitExperimentEnabled:d.BINDING_TYPE.ONE_WAY,digitalWalletMethod:d.BINDING_TYPE.ONE_WAY,disabledCreditCardBrands:d.BINDING_TYPE.ONE_WAY,email:d.BINDING_TYPE.TEXT,handleActionRequired:d.BINDING_TYPE.METHOD,hostedFields:d.BINDING_TYPE.ONE_WAY,hostedFieldsWrapper:d.BINDING_TYPE.ONE_WAY,invoicesData:d.BINDING_TYPE.ONE_WAY,isBankTransfersPermitted:d.BINDING_TYPE.ONE_WAY,isEcheckEnabled:d.BINDING_TYPE.ONE_WAY,isSalesDemoAccount:d.BINDING_TYPE.ONE_WAY,isTrustAccount:d.BINDING_TYPE.ONE_WAY,isTrustChargeEnabled:d.BINDING_TYPE.ONE_WAY,firmName:d.BINDING_TYPE.TEXT,formDisabled:d.BINDING_TYPE.ONE_WAY,fromQrCode:d.BINDING_TYPE.ONE_WAY,mode:d.BINDING_TYPE.ONE_WAY,onAfterPlaidModalClose:d.BINDING_TYPE.METHOD_OPTIONAL,onBeforePlaidModalOpen:d.BINDING_TYPE.METHOD_OPTIONAL,onBillingAddressUpdate:d.BINDING_TYPE.METHOD,onEmailUpdate:d.BINDING_TYPE.METHOD,onHostedFieldsWrapperUpdate:d.BINDING_TYPE.METHOD,onNext:d.BINDING_TYPE.METHOD,onPaymentDetailsUpdate:d.BINDING_TYPE.METHOD,onPaymentInformationUpdate:d.BINDING_TYPE.METHOD,onPaymentMethodUpdate:d.BINDING_TYPE.METHOD,onPaymentSuccess:d.BINDING_TYPE.METHOD,onPaymentTypeUpdate:d.BINDING_TYPE.METHOD,originMetadata:d.BINDING_TYPE.ONE_WAY,onTrackPlaidModal:d.BINDING_TYPE.METHOD,paymentDetails:d.BINDING_TYPE.ONE_WAY,paymentError:d.BINDING_TYPE.ONE_WAY,paymentInformation:d.BINDING_TYPE.ONE_WAY,paymentType:d.BINDING_TYPE.ONE_WAY,plaidLinkToken:d.BINDING_TYPE.TEXT,provider:d.BINDING_TYPE.ONE_WAY,providerApiVersion:d.BINDING_TYPE.ONE_WAY,publicKey:d.BINDING_TYPE.ONE_WAY,recaptchable:d.BINDING_TYPE.TEXT,recaptchaSiteKey:d.BINDING_TYPE.TEXT,source:d.BINDING_TYPE.TEXT,showPaymentToggles:d.BINDING_TYPE.ONE_WAY,token:d.BINDING_TYPE.TEXT,useSurcharging:d.BINDING_TYPE.ONE_WAY},controller:v,template:f};e.PaymentFormComponent=P},5281:function(t,e,n){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.BuyNowPayLaterFinancingProvider=void 0,function(t){t.AFFIRM="affirm"}(a||(a={})),e.BuyNowPayLaterFinancingProvider=a},5282:function(t,e,n){},5283:function(t,e){t.exports='
\n \n \n \n \n {{ $ctrl.paymentError }}\n \n \n
\n
\n \n
\n
\n
\n \n \n \n {{\n ::"simple_payments_page_app.form.debit_card_surcharging_message_without_amount"\n | translate }}\n
\n \n \n \n \n {{ $ctrl.creditCardSurchargingMessage() }}\n \n \n \n \n \n \n \n

\n {{ ::"simple_payments_page_app.form.echeck_header" | translate }}\n

\n \n \n \n \n \n \n \n \n

\n {{ ::"simple_payments_page_app.form.credit_card_header" | translate }}\n

\n \n \n \n \n \n \n
\n \n\n \n

\n {{ "simple_payments_page_app.form.billing_address_header" | translate }}\n

\n \n \n \n \n
\n \n

\n \n \n {{ "" }}\n\n'},5284:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PaymentMethodPaneController=e.PaymentMethodPaneComponent=void 0;var a=n(5285);n(5286);var i=n(0),r=function(){function t(t){this.$translate=t,this.visible=!0}return t.prototype.$onInit=function(){this.toggleCtrl.addPaymentToggle(this)},t.prototype.isSelected=function(){return this.toggleCtrl.selectedPaymentType===this.paymentType},t.prototype.isVisible=function(){return this.visible&&this.isReadyForDisplay()},t.prototype.getHeaderText=function(){return this.$translate.instant("simple_payments_page_app.form.".concat("digital"===this.paymentType?this.digitalWalletMethod:this.paymentType))},t.prototype.getIconSrc=function(){return"/images/clio_payments/debit-prioritization-icons.svg#".concat(this.digitalWalletMethod||this.paymentType)},t.prototype.setVisibility=function(t){this.visible=t},t.prototype.isReadyForDisplay=function(){return(!this.toggleCtrl.showOtherMethodsToggle||!this.shouldInitializeHidden)&&("digital"!==this.paymentType||void 0!==this.digitalWalletMethod)},t.$inject=["$translate"],t}();e.PaymentMethodPaneController=r;var o={bindings:{digitalWalletMethod:i.BINDING_TYPE.ONE_WAY,forceOverflow:i.BINDING_TYPE.ONE_WAY_OPTIONAL,shouldInitializeHidden:i.BINDING_TYPE.ONE_WAY,paymentType:i.BINDING_TYPE.ONE_WAY},require:{toggleCtrl:"^ccPaymentMethodToggle"},controller:r,template:a,transclude:!0};e.PaymentMethodPaneComponent=o},5285:function(t,e){t.exports='\n'},5286:function(t,e,n){},5287:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PaymentMethodToggleController=e.PaymentMethodToggleComponent=void 0;var a=n(2),i=n(5288);n(5289);var r=n(0),o=function(){function t(t){var e=this;this.$timeout=t,this.actions=[],this.actionsLoading=!1,this.toggles=[],this.expandToggles=function(t){if(e.showOtherMethodsToggle=!1,e.initOverflowPopover(),"keydown"===t.type){var n=a.element(t.target).prev();e.$timeout((function(){n.next().trigger("focus")}))}},this.onKeyboardNav=function(t){var n=a.element(t.target);["ArrowRight","ArrowLeft"].includes(t.key)&&(t.preventDefault(),"ArrowRight"===t.key&&n.next().trigger("focus"),"ArrowLeft"===t.key&&n.prev().trigger("focus")),n.hasClass("nav-overflow-tab")&&["ArrowRight","ArrowDown","Space","Enter"].includes(t.code)&&e.$popover.showPopover()},this.handleClosePopover=function(){a.element("#overflow-menu-tab").trigger("focus")},this.getToggleActionItem=function(t){return{label:t.getHeaderText(),action:function(){return e.select(t)}}}}return t.prototype.$onChanges=function(t){t.selectedPaymentType&&!t.selectedPaymentType.isFirstChange()&&(this.actionsLoading=!1,a.element("#".concat(t.selectedPaymentType.currentValue,"-tab")).trigger("focus"))},t.prototype.select=function(t){var e=this;t.isVisible()||(this.actionsLoading=!0,this.nthToggleTab.setVisibility(!1),t.setVisibility(!0),this.nthToggleTab=t,this.actions=this.toggles.filter((function(t){return!t.visible})).map((function(t){return e.getToggleActionItem(t)}))),this.onPaymentTypeUpdate({update:t.paymentType})},t.prototype.showMoreMethodsMenu=function(){return this.actions.length>0},t.prototype.addPaymentToggle=function(t){this.showPaymentToggles&&(this.toggles.push(t),this.setNthToggle(),(this.toggles.length>4||t.forceOverflow)&&(this.initOverflowPopover(),t.setVisibility(!1),this.actions.push(this.getToggleActionItem(t))))},t.prototype.setNthToggle=function(){var t=this.toggles.filter((function(t){return t.forceOverflow}));this.toggles.length>4?this.nthToggleTab=this.visibleToggles()[3]:t.length>0&&(this.nthToggleTab=this.visibleToggles().slice(-2)[0])},t.prototype.visibleToggles=function(){return this.toggles.filter((function(t){return t.visible}))},t.prototype.initOverflowPopover=function(){var t=this;this.$timeout((function(){void 0!==t.$popover&&null!==t.$popover||(t.$popover=a.element("#overflow-menu-tab").controller("thPopover"))}))},t.$inject=["$timeout"],t}();e.PaymentMethodToggleController=o;var s={bindings:{onPaymentTypeUpdate:r.BINDING_TYPE.ONE_WAY,selectedPaymentType:r.BINDING_TYPE.ONE_WAY,showOtherMethodsToggle:r.BINDING_TYPE.ONE_WAY,showPaymentToggles:r.BINDING_TYPE.ONE_WAY},controller:o,template:i,transclude:!0};e.PaymentMethodToggleComponent=s},5288:function(t,e){t.exports='\n \n \n {{ toggle.getHeaderText() }}\n \n \n \n \n \n {{ ::"simple_payments_page_app.form.other_methods" | translate }}\n \n \n
\n
\n \n
\n
\n \n\n\n'},5289:function(t,e,n){},5290:function(t,e,n){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0},this.disableForm=function(){var t=l.translate("simple_payments_page_app.notification.expired_error");l.formDisabled=!0,l.NotificationService.showError(t,{autoHideAfter:0})},this.initializePaymentToggles=function(){var t;l.isSalesDemoAccount()||("lawpay"!==l.provider&&l.acceptedPaymentMethods!==d.ACCEPTED_PAYMENT_METHODS.ACH?(l.hostedFieldsWrapper=new o.HostedFieldsWrapper(null,l.publicKey,l.providerApiVersion,l.provider,null),l.hostedFieldsWrapper.initializeDigitalPayments((null===(t=l.paymentDetails)||void 0===t?void 0:t.amount)||0,l.clioPaymentsCountry,l.currencyCode,l.firmName).then((function(t){t&&(l.digitalWalletMethod=t[0],l.$scope.$applyAsync())})),l.updatePaymentType("debit")):l.showPaymentToggles=!1)},this.paymentPageType=function(){return l.debitPrioritizationEnabled?l.debitExperimentEnabled?"debit_experiment":"standard":"legacy"}}return t.prototype.$onInit=function(){this.email=this.contactEmail,s.segmentService.setRegion(this.accountCountryCode.toLowerCase()),this.startTime=Date.now(),this.step=1,this.useAuthorizationCode=this.shouldUseAuthorizationCode(),this.meta_id=y.v4(),this.initializeBillingAddress(),this.parseInvoicesDataJson(),this.parsePaymentDetailsJson(),this.setPendingBuyNowPayLaterPayment(),this.initializeTimer(),this.track("Loaded Payment Page",{account_id:this.accountId,contact_id:this.contactId,meta_id:this.meta_id,timestamp:Date.now(),payment_page_type:this.paymentPageType()}),this.setBankPaymentTypeUponPlaidRedirect(),p.PlaidHelper.initPlaid(this.plaidSessionId),this.initWindowOnBeforeUnloadPlaidCleanup(),this.setPaymentTypeBasedOnAcceptedPaymentMethods(),this.debitPrioritizationEnabled?this.initializePaymentToggles():this.updateCeilingSurchargingRate()},t.prototype.isFromQrCode=function(){return"qr_code"===this.getUrlParamsValue("origin")},t.prototype.originMetadata=function(){return this.getUrlParamsValue("origin_metadata")},t.prototype.getTitle=function(){return 1===this.step?this.getFormTitle():2===this.step?this.getSummaryTitle():3===this.step?this.getConfirmationTitle():void 0},t.prototype.handleActionRequired=function(t){return this.hostedFieldsWrapper.handleAdditionalAction(t)},t.prototype.updateBillingAddress=function(t){this.billingAddress=t},t.prototype.updatePaymentInformation=function(t){this.paymentInformation=t},t.prototype.updateEmail=function(t){this.email=t},t.prototype.updateHostedFieldsWrapper=function(t){this.hostedFieldsWrapper=t},t.prototype.updatePaymentDetails=function(t){this.paymentDetails=t},t.prototype.updatePaymentMethod=function(t){this.paymentMethod=t},t.prototype.setBankPaymentTypeUponPlaidRedirect=function(){this.getUrlParamsValue("oauth_state_id")&&(this.paymentType=l.PaymentMethodType.Bank)},t.prototype.next=function(){this.step++,this.track("Clicked Payment Page Next Button",{payment_page_type:this.paymentPageType()}),this.scrollToTop()},t.prototype.paymentSuccess=function(t){this.paymentSucceeded=!0,1!==this.step&&this.track("Clicked Payment Page Submit Button",{account_id:this.accountId,contact_id:this.contactId,meta_id:this.meta_id,paymentType:this.paymentType,timestamp:Date.now(),totalTime:this.getTotalTime(),payment_page_type:this.paymentPageType()}),t.redirect_url?this.$window.location.href=t.redirect_url:(this.authorizationCode=t.authorization_code,this.step=this.getFinalStep(),this.scrollToTop())},t.prototype.back=function(t){this.step--,this.track("Clicked Payment Page Back Button",{payment_page_type:this.paymentPageType()}),this.scrollToTop(),t&&this.showErrorBanner(t)},t.prototype.trackPlaidModal=function(){this.track("Opened Plaid Modal")},t.prototype.isSalesDemoAccount=function(){return"true"===this.salesDemoAccount},t.prototype.getSourceParamFromUrl=function(){return this.$location.search().source||this.getUrlParamsValue("source")},t.prototype.track=function(t,e){e=e||{},s.segmentService.track(t,a(a({},e),{clioRequestId:this.clioRequestId,fromHostedFieldsPage:!0,linkId:this.secureLinkId,page:this.getCurrentPage()}))},t.prototype.initializeBillingAddress=function(){this.billingAddress={country:this.accountCountryCode}},t.prototype.parseInvoicesDataJson=function(){this.invoicesDataJson&&(this.invoicesData=JSON.parse(this.invoicesDataJson))},t.prototype.parsePaymentDetailsJson=function(){this.paymentDetailsJson&&(this.paymentDetails=JSON.parse(this.paymentDetailsJson))},t.prototype.setPendingBuyNowPayLaterPayment=function(){this.PendingBuyNowPayLaterService.setPendingPayment(this.pendingBuyNowPayLaterPaymentJson)},t.prototype.getSummaryTitle=function(){return this.translate("simple_payments_page_app.summary.title")},t.prototype.getConfirmationTitle=function(){return this.translate("simple_payments_page_app.confirmation.title")},t.prototype.getFormTitle=function(){var t;return t=this.isTrustAccount?"simple_payments_page_app.form.trust_header":"simple_payments_page_app.form.header",this.translate(t)+this.firmName},t.prototype.scrollToTop=function(){this.$window.scrollTo(0,0)},t.prototype.translate=function(t,e){return this.$translate.instant(t,e)},t.prototype.getTotalTime=function(){return this.startTime?(Date.now()-this.startTime)/1e3:0},t.prototype.getCurrentPage=function(){return"clio-connect"===this.mode?"Clio Connect Link":"single-bill-share"===this.mode||"multi-bill-share"===this.mode?"Bill Share Link":"secure-link"===this.mode?"Secure Payment Link":"grow-payment-link"===this.mode?"Custom Payment Link":(this.logInvalidModeError(),"Secure Payment Link")},t.prototype.logInvalidModeError=function(){this.$window.clioLogger&&this.$window.clioLogger.error("Payments page component was invoked with an invalid mode: ".concat(this.mode),{section:"payments"})},t.prototype.initializeTimer=function(){if(this.formExpiresAt){var t=-1*i().diff(this.formExpiresAt),e=Math.min(t,h);this.$timeout(this.disableForm,e)}},t.prototype.showErrorBanner=function(t){this.paymentError=this.getErrorMessage(t)},t.prototype.getErrorMessage=function(t){if(t&&r.default.isAxiosError(t)&&t.response.data&&t.response.data.error&&t.response.data.error.message){if("recaptcha_v2_failed"===t.response.data.error.message)return this.formDisabled=!0,this.translate("simple_payments_page_app.notification.recaptcha_error");if(t.response.data.error.message.includes("INVALID_PUBLIC_TOKEN"))return this.$translate.instant("payments.clio_payments.new_echeck.token_expired");var e=t.response.data.error.message.replace(/^[^:]*:\s?/,"");return"."!==e[e.length-1]&&(e+="."),this.translate("simple_payments_page_app.notification.payment_failure_with_message",{message:e})}return t&&t.message?t.message:this.translate("simple_payments_page_app.notification.payment_failure")},t.prototype.shouldUseAuthorizationCode=function(){return"lawpay"===this.provider},t.prototype.initWindowOnBeforeUnloadPlaidCleanup=function(){var t=this;window.onbeforeunload=function(e){p.PlaidHelper.windowOnBeforeUnload(e,t)}},t.prototype.getUrlParamsValue=function(t){var e=this.$window.location.search;return new URLSearchParams(e).get(t)},t.prototype.setIsPlaidInProgressTrue=function(){this.isPlaidInProgress=!0},t.prototype.setIsPlaidInProgressFalse=function(){this.isPlaidInProgress=!1},t.prototype.getIsPlaidInProgress=function(){return this.isPlaidInProgress},t.prototype.getStep=function(){return this.step},t.prototype.getFinalStep=function(){switch(this.mode){case"clio-connect":return m.clio_connect;case"grow-payment-link":return m.custom_payment_link;default:return m.manage}},t.prototype.getIsInProgress=function(){return!this.paymentSucceeded},t.prototype.setPaymentTypeBasedOnAcceptedPaymentMethods=function(){this.echeckEnabled&&this.acceptedPaymentMethods===d.ACCEPTED_PAYMENT_METHODS.ACH&&this.updatePaymentType("bank")},t.$inject=["$location","$scope","$translate","$timeout","$window","NotificationService","BankTransfersApiService","PendingBuyNowPayLaterService"],t}();e.PaymentsPageAppController=f;var g={bindings:{acceptedPaymentMethods:c.BINDING_TYPE.TEXT,accountCountryCode:c.BINDING_TYPE.TEXT,accountId:c.BINDING_TYPE.TEXT,bankTransferInstructions:c.BINDING_TYPE.ONE_WAY,bankTransfersPermitted:c.BINDING_TYPE.ONE_WAY,bankPaymentsWithoutVerificationEnabled:c.BINDING_TYPE.ONE_WAY,canCreateBuyNowPayLaterPayments:c.BINDING_TYPE.ONE_WAY,canCreateDigitalWalletPayments:c.BINDING_TYPE.ONE_WAY,ceilingSurchargingRates:c.BINDING_TYPE.ONE_WAY,clioRequestId:c.BINDING_TYPE.TEXT,clioPaymentsCountry:c.BINDING_TYPE.TEXT_OPTIONAL,contactEmail:c.BINDING_TYPE.TEXT,contactId:c.BINDING_TYPE.TEXT,currencySymbol:c.BINDING_TYPE.TEXT,currencyCode:c.BINDING_TYPE.TEXT,debitPrioritizationEnabled:c.BINDING_TYPE.ONE_WAY,debitExperimentEnabled:c.BINDING_TYPE.ONE_WAY,disabledCreditCardBrands:c.BINDING_TYPE.ONE_WAY,echeckEnabled:c.BINDING_TYPE.ONE_WAY,firmName:c.BINDING_TYPE.TEXT,formExpiresAt:c.BINDING_TYPE.TEXT,invoicesDataJson:c.BINDING_TYPE.TEXT,isTrustAccount:c.BINDING_TYPE.ONE_WAY,newSouthWalesRules:c.BINDING_TYPE.ONE_WAY,mode:c.BINDING_TYPE.TEXT,paymentDetailsJson:c.BINDING_TYPE.TEXT,pendingBuyNowPayLaterPaymentJson:c.BINDING_TYPE.TEXT,plaidSessionId:c.BINDING_TYPE.TEXT,plaidLinkToken:c.BINDING_TYPE.TEXT,provider:c.BINDING_TYPE.TEXT,providerApiVersion:c.BINDING_TYPE.TEXT,publicKey:c.BINDING_TYPE.TEXT,recaptchable:c.BINDING_TYPE.TEXT,recaptchaSiteKey:c.BINDING_TYPE.TEXT,salesDemoAccount:c.BINDING_TYPE.TEXT,secureLinkId:c.BINDING_TYPE.TEXT,statementDescriptor:c.BINDING_TYPE.TEXT_OPTIONAL,showPersonalInformationDataTransferNotification:c.BINDING_TYPE.ONE_WAY_OPTIONAL,subjectId:c.BINDING_TYPE.TEXT,useSurcharging:c.BINDING_TYPE.ONE_WAY,token:c.BINDING_TYPE.TEXT,trustChargeEnabled:c.BINDING_TYPE.ONE_WAY},controller:f,template:u};e.PaymentsPageAppComponent=g},5291:function(t,e,n){},5292:function(t,e){t.exports='\n\n\n\n'},5293:function(t,e,n){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]\n

\n {{ \'simple_payments_page_app.pending_buy_now_pay_later_payment.title\' |\n translate }}\n

\n\n
\n
\n
\n \n \n \n {{ $ctrl.pendingPayment.amount | numberAsCurrency: $ctrl.currencySymbol\n : 2 : true }}\n \n {{ \'simple_payments_page_app.pending_buy_now_pay_later_payment.cancel\' |\n translate }}\n \n
\n
\n
\n
\n

\n {{ \'simple_payments_page_app.pending_buy_now_pay_later_payment.description\'\n | translate }}\n

\n
\n'},5296:function(t,e,n){},5297:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PendingBuyNowPayLaterService=void 0;e.PendingBuyNowPayLaterService=function(){function t(t){this.$window=t,this.pendingPayment=null}return t.prototype.setPendingPayment=function(t){if(t)try{this.pendingPayment=JSON.parse(t)}catch(e){this.$window.clioLogger&&this.$window.clioLogger.warn("Failed to parse pending BNPL payment JSON",{error:e.message,paymentJson:t,section:"payments"}),this.pendingPayment=null}else this.pendingPayment=null},t.prototype.getPendingPayment=function(){return this.pendingPayment},t.prototype.hasPendingPayment=function(){return null!==this.pendingPayment&&!!this.pendingPayment.id},t.prototype.clearPendingPayment=function(){this.pendingPayment=null},t.$inject=["$window"],t}()},5298:function(t,e,n){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]',type:"apollo",context:{firmName:o.firmName,translationId:"payment_method.summary.mandate_message"}})},this.idempotencyKey=m.v4()}return t.prototype.$onInit=function(){this.saveCardWithoutPayment=this.shouldSaveCardWithoutPayment(),this.initializeRecaptcha(),this.loadingText=this.$translate.instant("payment_method.notification.loading")},t.prototype.handleCardSetupResponse=function(t){var e,n,a;return i(this,void 0,void 0,(function(){var i,o,s,c;return r(this,(function(r){switch(r.label){case 0:return i=null===(e=t.setup_intent)||void 0===e?void 0:e.client_secret,o=null===(n=t.setup_intent)||void 0===n?void 0:n.status,s=null===(a=t.vaulted_payment_method)||void 0===a?void 0:a.id,"requires_action"!==o?[3,2]:(window.grecaptcha&&window.grecaptcha.reset(),[4,this.handleActionRequired({actionToken:i})]);case 1:if((c=r.sent()).message)throw c;return[3,3];case 2:if("succeeded"!==o)throw new Error(this.$translate.instant("payment_method.notification.payment_method_failure"));r.label=3;case 3:return[4,this.activateCard(s)];case 4:return r.sent(),[2]}}))}))},t.prototype.isNetworkError=function(t){return"Payments::Errors::RetryableNetworkError"===(null===t||void 0===t?void 0:t.type)},t.prototype.activateCard=function(t){return(0,s.activatePaymentMethod)(t,this.paymentMethod.type,this.paymentMethod.id,this.token)},t.prototype.shouldSaveCardWithoutPayment=function(){return this.isCardPaymentMethod()?this.requiresCardSetup:null},t.prototype.showSalesDemoErrorMessage=function(){this.NotificationService.showError(this.$translate.instant("payment_method.notification.sales_account"))},t.prototype.paymentMethodPromise=function(t){return i(this,void 0,void 0,(function(){return r(this,(function(e){return[2,(0,s.storePaymentMethod)(this.subjectId,this.token,this.email,t,this.recaptchaToken,this.origin,this.getBankAccountHolderName(),this.idempotencyKey,this.saveCardWithoutPayment)]}))}))},t.prototype.storageAuthorizationMessage=function(){var t=this.$translate.instant("payment_method.summary.storage_authorization_message",{firm_name:this.firmName,firm_name_possessive:(0,p.possessive)(this.firmName)});return"gb"===this.clioPaymentsCountry&&this.isBankPaymentMethod()&&(t=this.$translate.instant("payment_method.summary.storage_authorization_message_gb",{firm_name:this.firmName,firm_name_possessive:(0,p.possessive)(this.firmName)})),(0,d.replaceAmpersand)(t)},t.prototype.storageMandateMessage=function(){if(this.isBankPaymentMethod()){var t=this.$translate.instant("payment_method.summary.mandate_message",{firm_name:this.firmName,firm_name_possessive:(0,p.possessive)(this.firmName)});return(0,d.replaceAmpersand)(t)}},t.prototype.getBankAccountHolderName=function(){return this.isBankPaymentMethod()?this.paymentMethod.name:null},t.prototype.isBankPaymentMethod=function(){return this.paymentMethod.type===l.paymentMethodTypes.bank},t.prototype.isCardPaymentMethod=function(){return this.paymentMethod.type===l.paymentMethodTypes.card},t.prototype.agreementTypeText=function(){return this.isBankPaymentMethod()?this.$translate.instant("payment_method.summary.mandate_agreement"):this.$translate.instant("payment_method.summary.fee_agreement")},t.prototype.track=function(t,e){e=e||{},c.segmentService.track(t,a(a({},e),{accountId:this.accountId,paymentProvider:this.provider,contactId:this.subjectId,linkId:this.secureLinkId,submittedDate:(new Date).toISOString()}))},t.$inject=["$scope","$translate","NotificationService","ModalManager"],t}();e.RequestPaymentMethodDetailsSummaryController=h;var y={template:u,controller:h,bindings:{accountId:o.BINDING_TYPE.TEXT,bankPaymentsWithoutVerificationEnabled:o.BINDING_TYPE.ONE_WAY,billingAddress:o.BINDING_TYPE.ONE_WAY,clioPaymentsCountry:o.BINDING_TYPE.ONE_WAY,email:o.BINDING_TYPE.TEXT,firmName:o.BINDING_TYPE.TEXT,formDisabled:o.BINDING_TYPE.ONE_WAY,handleActionRequired:o.BINDING_TYPE.METHOD,onBack:o.BINDING_TYPE.METHOD,onCreateSuccess:o.BINDING_TYPE.METHOD,origin:o.BINDING_TYPE.ONE_WAY,paymentMethod:o.BINDING_TYPE.ONE_WAY,provider:o.BINDING_TYPE.TEXT,recaptchaSiteKey:o.BINDING_TYPE.TEXT,salesDemoAccount:o.BINDING_TYPE.ONE_WAY,secureLinkId:o.BINDING_TYPE.TEXT,statementDescriptor:o.BINDING_TYPE.TEXT_OPTIONAL,subjectId:o.BINDING_TYPE.TEXT,token:o.BINDING_TYPE.TEXT,showPersonalInformationDataTransferNotification:o.BINDING_TYPE.ONE_WAY_OPTIONAL,requiresCardSetup:o.BINDING_TYPE.ONE_WAY_OPTIONAL}};e.RequestPaymentMethodDetailsSummaryComponent=y},5299:function(t,e,n){},5300:function(t,e){t.exports='
\n \n
\n\n'},5301:function(t,e,n){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(t){for(var e,n=1,a=arguments.length;n\n\n\n\n'},5303:function(t,e,n){},5304:function(t,e,n){"use strict";var a=this&&this.__awaiter||function(t,e,n,a){return new(n||(n=Promise))((function(i,r){function o(t){try{c(a.next(t))}catch(e){r(e)}}function s(t){try{c(a.throw(t))}catch(e){r(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}c((a=a.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(o=0)),o;)try{if(n=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]\n \n\n'},5306:function(t,e,n){},5307:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RequestPaymentMethodPostSubmissionController=e.RequestPaymentMethodPostSubmissionComponent=void 0,n(5308);var a=n(0),i=n(3),r=n(283),o=n(5309),s=function(){function t(t){var e=this;this.$translate=t,this.setSubmittedDateAndTime=function(){var t=i.tz.guess(),n=i.tz(t);e.submittedAtDate=n.format("MMM DD, YYYY"),e.submittedAtTime=n.format("HH:mm z")}}return t.prototype.$onInit=function(){this.setSubmittedDateAndTime()},t.prototype.paymentMethodAuthorizeMessage=function(){var t=this.$translate.instant("payment_method.submitted.authorized",{firmName:this.firmName});return(0,r.replaceAmpersand)(t)},t.$inject=["$translate"],t}();e.RequestPaymentMethodPostSubmissionController=s;var c={template:o,controller:s,bindings:{bankPaymentsWithoutVerificationEnabled:a.BINDING_TYPE.ONE_WAY,billingAddress:a.BINDING_TYPE.ONE_WAY,clioPaymentsCountry:a.BINDING_TYPE.ONE_WAY,email:a.BINDING_TYPE.TEXT,firmName:a.BINDING_TYPE.TEXT,paymentMethod:a.BINDING_TYPE.ONE_WAY}};e.RequestPaymentMethodPostSubmissionComponent=c},5308:function(t,e,n){},5309:function(t,e){t.exports='\n'},5310:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RequestPaymentMethodPrintComponent=e.RequestPaymentMethodPrintController=void 0,n(5311);var a=n(0),i=n(5312),r=function(){function t(t){this.$window=t}return t.prototype.windowPrint=function(){this.$window.print()},t.$inject=["$window"],t}();e.RequestPaymentMethodPrintController=r;var o={template:i,controller:r,bindings:{statementDescriptor:a.BINDING_TYPE.TEXT_OPTIONAL}};e.RequestPaymentMethodPrintComponent=o},5311:function(t,e,n){},5312:function(t,e){t.exports='\n \n \n \n \n \n

\n {{ "payment_method.print.submitted" | translate }}\n

\n
\n \n
\n \n
\n
\n \n \n {{ "payment_method.print.button" | translate }}\n \n \n \n
\n

\n
\n
\n
\n
\n'},755:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecaptchaBase=void 0;var a=n(5278),i=function(){function t(){var t=this;this.initializeRecaptcha=function(e){t.recaptchaHelper=new a.RecaptchaHelper(e,t.recaptchaV2Error,t.recaptchaV2TokenExpired,t.recaptchaV2ChallengeResolved,t.recaptchaSiteKey),t.recaptchaHelper.initializeRecaptcha()},this.recaptchaV2ChallengeResolved=function(e){t.setSubmitting(!1),t.recaptchaToken=e,setTimeout((function(){t.recaptchaResolvedCallback()}),0)},this.recaptchaV2Error=function(){t.setSubmitting(!1),t.notificationService().showError(t.translateService().instant("simple_payments_page_app.notification.recaptcha_network_error"))},this.recaptchaV2TokenExpired=function(){t.setSubmitting(!1),t.notificationService().showError(t.translateService().instant("simple_payments_page_app.notification.recaptcha_token_expired"))}}return t.prototype.setSubmitting=function(t){},t}();e.RecaptchaBase=i},756:function(t,e,n){"use strict";var a=this&&this.__awaiter||function(t,e,n,a){return new(n||(n=Promise))((function(i,r){function o(t){try{c(a.next(t))}catch(e){r(e)}}function s(t){try{c(a.throw(t))}catch(e){r(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}c((a=a.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(o=0)),o;)try{if(n=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]