@justifi/webcomponents 6.1.0-rc.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +2 -2
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-BURRKC_7.js → check-pkg-version-BqaDMbw-.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/form-alert_5.cjs.entry.js +4 -4
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +9 -9
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +4 -8
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +15 -7
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-Cq0M4ut-.js → package-BHmOFvbM.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +3 -3
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/services/apple-pay.service.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +6 -6
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +6 -6
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +6 -6
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +6 -6
- package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +16 -7
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +4 -8
- package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -2
- package/dist/collection/ui-components/details/details.js +1 -1
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
- package/dist/docs.json +97 -18
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +2 -2
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-Cd_i8U0d.js → check-pkg-version-BS-9lGl9.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +1 -1
- package/dist/esm/form-alert_5.entry.js +4 -4
- package/dist/esm/form-control-checkbox.entry.js +2 -2
- package/dist/esm/form-control-monetary-provisioning.entry.js +2 -2
- package/dist/esm/form-control-number-masked_2.entry.js +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +9 -9
- package/dist/esm/justifi-apple-pay.entry.js +4 -8
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +6 -6
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-summary_7.entry.js +15 -7
- package/dist/esm/justifi-checkout.entry.js +4 -4
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +2 -2
- package/dist/esm/justifi-owner-form_3.entry.js +3 -3
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
- package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-BBO3I4s6.js → package-C1kJMZIt.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +3 -3
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/additional-questions.js +2 -2
- package/dist/module/bank-account-billing-form-simple.js +1 -1
- package/dist/module/bank-account-document-inputs.js +1 -1
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-bank-account-form-step.js +1 -1
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-inputs.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-representative.js +2 -2
- package/dist/module/business-terms-conditions-form-step.js +1 -1
- package/dist/module/card-billing-form-simple.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/details.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-monetary-provisioning2.js +2 -2
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/justifi-apple-pay.js +4 -8
- package/dist/module/justifi-checkout.js +2 -2
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-radio-list-item2.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/modular-checkout.js +13 -5
- package/dist/module/owner-form-core2.js +1 -1
- package/dist/module/owner-form-inputs2.js +2 -2
- package/dist/module/owner-form.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +3 -3
- package/dist/module/payment-provisioning-core.js +1 -1
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +1 -1
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
- package/dist/types/components.d.ts +10 -8
- package/dist/webcomponents/{p-e97dee15.entry.js → p-011efdbf.entry.js} +1 -1
- package/dist/webcomponents/p-0142114f.entry.js +1 -0
- package/dist/webcomponents/{p-9f04cac4.entry.js → p-146de253.entry.js} +1 -1
- package/dist/webcomponents/{p-30147031.entry.js → p-17f7590c.entry.js} +1 -1
- package/dist/webcomponents/p-20f036cc.entry.js +1 -0
- package/dist/webcomponents/{p-b0a36936.entry.js → p-2247ccd8.entry.js} +1 -1
- package/dist/webcomponents/{p-f739a98d.entry.js → p-2473381f.entry.js} +1 -1
- package/dist/webcomponents/{p-a0a0e200.entry.js → p-3d128c25.entry.js} +1 -1
- package/dist/webcomponents/{p-10278c48.entry.js → p-44e32f85.entry.js} +1 -1
- package/dist/webcomponents/{p-2687e615.entry.js → p-4b45317f.entry.js} +1 -1
- package/dist/webcomponents/{p-c9fef3e4.entry.js → p-51ef1af7.entry.js} +1 -1
- package/dist/webcomponents/{p-18353682.entry.js → p-56b993b3.entry.js} +1 -1
- package/dist/webcomponents/{p-acb0f3ae.entry.js → p-5818d39e.entry.js} +1 -1
- package/dist/webcomponents/p-5c3d8de5.entry.js +1 -0
- package/dist/webcomponents/{p-108209c5.entry.js → p-68f22275.entry.js} +1 -1
- package/dist/webcomponents/{p-1bc8da98.entry.js → p-6a365abb.entry.js} +1 -1
- package/dist/webcomponents/p-6f1dd478.entry.js +1 -0
- package/dist/webcomponents/{p-fa14b671.entry.js → p-71258742.entry.js} +1 -1
- package/dist/webcomponents/{p-ba5b1c54.entry.js → p-7160e5ad.entry.js} +1 -1
- package/dist/webcomponents/{p-1e080811.entry.js → p-79c45974.entry.js} +1 -1
- package/dist/webcomponents/p-7b103dad.entry.js +1 -0
- package/dist/webcomponents/p-8018523d.entry.js +1 -0
- package/dist/webcomponents/{p-1df96001.entry.js → p-8a0b7a0f.entry.js} +1 -1
- package/dist/webcomponents/p-8d3f5638.entry.js +1 -0
- package/dist/webcomponents/{p-176aa079.entry.js → p-8fd28a74.entry.js} +1 -1
- package/dist/webcomponents/{p-1b3b6956.entry.js → p-9c4079cc.entry.js} +1 -1
- package/dist/webcomponents/{p-O-hoT2Oo.js → p-BkeJbw_O.js} +1 -1
- package/dist/webcomponents/p-C1kJMZIt.js +1 -0
- package/dist/webcomponents/{p-914e168d.entry.js → p-a928c6fb.entry.js} +1 -1
- package/dist/webcomponents/{p-1e87c8ed.entry.js → p-ab998669.entry.js} +1 -1
- package/dist/webcomponents/p-b90999af.entry.js +1 -0
- package/dist/webcomponents/{p-613cf570.entry.js → p-c2b8eebe.entry.js} +1 -1
- package/dist/webcomponents/p-cecb65c4.entry.js +1 -0
- package/dist/webcomponents/p-df329742.entry.js +1 -0
- package/dist/webcomponents/p-e4d08075.entry.js +1 -0
- package/dist/webcomponents/p-ea2a9a81.entry.js +1 -0
- package/dist/webcomponents/p-ee48fe6d.entry.js +1 -0
- package/dist/webcomponents/{p-e037cdd1.entry.js → p-eecba4d6.entry.js} +1 -1
- package/dist/webcomponents/p-f4981e8e.entry.js +1 -0
- package/dist/webcomponents/p-f6fbd43d.entry.js +1 -0
- package/dist/webcomponents/{p-ffe01f1b.entry.js → p-f8cbcbe9.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +13 -13
- package/dist/webcomponents/p-19ccbeee.entry.js +0 -1
- package/dist/webcomponents/p-1c433962.entry.js +0 -1
- package/dist/webcomponents/p-1efc0d88.entry.js +0 -1
- package/dist/webcomponents/p-1f971a0f.entry.js +0 -1
- package/dist/webcomponents/p-4d5c71c4.entry.js +0 -1
- package/dist/webcomponents/p-7131211a.entry.js +0 -1
- package/dist/webcomponents/p-80b1c65b.entry.js +0 -1
- package/dist/webcomponents/p-8975bf93.entry.js +0 -1
- package/dist/webcomponents/p-91c1e2ac.entry.js +0 -1
- package/dist/webcomponents/p-BBO3I4s6.js +0 -1
- package/dist/webcomponents/p-a57c1400.entry.js +0 -1
- package/dist/webcomponents/p-df7f36aa.entry.js +0 -1
- package/dist/webcomponents/p-e035a92e.entry.js +0 -1
- package/dist/webcomponents/p-e628a0c8.entry.js +0 -1
- package/dist/webcomponents/p-eafd179b.entry.js +0 -1
- package/dist/webcomponents/p-f8c22c77.entry.js +0 -1
|
@@ -50,10 +50,10 @@ const CardForm = class {
|
|
|
50
50
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: '8a6454e0a16e0a26762627f7a42527ab243c1c7a' }, h(CardFormSkeleton, { key: 'ed7386f746518e1ebb62d1bf9bc2e98778d9804e', isReady: this.isReady }), h("div", { key: 'f3092bcce1626f04a079ebcf64f0cdf06a7029a8', class: "container-fluid p-0", style: {
|
|
54
54
|
opacity: this.isReady ? '1' : '0',
|
|
55
55
|
height: this.isReady ? 'auto' : '0',
|
|
56
|
-
} }, h("div", { key: '
|
|
56
|
+
} }, h("div", { key: '3e211e500bef824aff5b6bf6cdedc99435cacfd4', class: "mb-3" }, h("iframe-input", { key: '6ad14a317fd6cad6d6535ba661684e31c325c5ab', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), h("div", { key: '931e9f1b047ff57c2b37bb2947e29f6708f239d9', class: "d-flex align-items-start" }, h("div", { key: '5ca19fbf9047bd6595557890b0bdbbf0d2e65de9', class: "flex-fill me-3" }, h("iframe-input", { key: 'c99f426b77308b15fcb174e8adbe8c120abc58b5', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Exp. Month", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), h("div", { key: '677b8fb8f33a021afda90a8b4e13b5f44b5fe694', class: "flex-fill me-3" }, h("iframe-input", { key: '9bcf91464c5f2ca77b339f2fe299db6027aa9f8b', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "Exp. Year", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), h("div", { key: '9b5c52d9cc5b30eedf522801c3f8f6c0530757ce', class: "flex-fill" }, h("iframe-input", { key: '3e73df1c7119193a239fcd2f5212967e109cff83', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
|
|
@@ -134,7 +134,7 @@ const CheckoutsListCore = class {
|
|
|
134
134
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
|
-
return (h(TableWrapper, { key: '
|
|
137
|
+
return (h(TableWrapper, { key: 'c411d1c3a54fd8a331f0c5cdbae344e231482c0f' }, h(TableComponent, { key: '21774546f3500612497943869017fa7c712dff7e' }, h(TableHead, { key: 'c4e745ead905a393ff1b0cd0fba23db2fcc03ad8' }, h(TableHeadRow, { key: '88063d0baedd1febe0febcab1ccefc512accfd7d' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: 'e2534bc13d9e015f127c5396bbe73545d92536b4' }, h(TableLoadingState, { key: '0f0958fa87403652880222365cf7f88dd33335cc', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '588bb80d518892791ed2134dd5405940e7c28db7', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: '219cce1137232c64b7c9188042c4aaca7e0e91b6', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '16978b3be698ceabd1d19b9eaa3f85c01a862b83' }, h(TableFootRow, { key: 'cd26e5b6f03dff77e09dfb4f9962e7601b2e40dc' }, h(TableFootCell, { key: '508008cf682b393549a839453d4b4c2eee1f67a4', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '688702c35e666def509ccb77b88b88ddd5e0d58a', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
|
|
138
138
|
}
|
|
139
139
|
static get watchers() { return {
|
|
140
140
|
"pagingParams": ["updateOnPropChange"],
|
|
@@ -39,7 +39,7 @@ const AdditionalQuestions = class {
|
|
|
39
39
|
render() {
|
|
40
40
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
41
41
|
const additionalQuestionsDefaultValue = this.formController.getInitialValues().additional_questions;
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'e3e354a7cf470f658e0f95d37186b1f45771b673' }, h("fieldset", { key: '7fb001177a4f907d513eb5955063d446234ede0c' }, h("legend", { key: 'ee6b045a438be9f56345daad752e105640f1ca3d', part: heading2 }, "Additional Questions"), h("div", { key: 'ed114675357f3b70c34a3eb941fdb30e6219cdc9', class: "row gy-3" }, h("div", { key: 'b85c27c827cf5e5d0d556c343315e5eec736f538', class: "col-12 col-md-6" }, h("form-control-monetary-provisioning", { key: '4576f67fa74ba7c2ca9730468ddc52b055a3c496', name: "business_revenue", label: "What is the business' estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.additional_questions) === null || _b === void 0 ? void 0 : _b.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: '0614c60cc7daaf890ccb4888d41b0260a26f9a0e', class: "col-12 col-md-6" }, h("form-control-monetary-provisioning", { key: '2c435c1553714d75542e0e3bcf1d723f26b37da8', name: "business_payment_volume", label: "What is the business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.additional_questions) === null || _d === void 0 ? void 0 : _d.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: '8d4a19eb0b6b5707f4a423543d86ae50f6492efc', class: "col-12" }, h("form-control-select", { key: '2e49f907bae85cd4901e4aa4413284596fbed365', name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.additional_questions) === null || _f === void 0 ? void 0 : _f.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { key: '11bc4e0bbe2122b977cf8bc29ac0601ef941881c', class: "col-12" }, h("form-control-select", { key: 'c511b728971250dc3272c1ef9ff96131a9ac6a2e', name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.additional_questions) === null || _h === void 0 ? void 0 : _h.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { key: '5a40dfe41a9fca815cdf0eb7455b41615d1e6c76', class: "col-12" }, h("form-control-text", { key: 'd8aaf0f6d7d44b1b15ec76af198a0117493f08c6', name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.additional_questions) === null || _k === void 0 ? void 0 : _k.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), h("div", { key: 'b211bb865a60baf1ea00c81f76f000ff2a31d7bd', class: "col-12" }, h("form-control-select", { key: '4b693e7425e690a59e2c70646cca2b886b8a8796', name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.additional_questions) === null || _m === void 0 ? void 0 : _m.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { key: 'e85b7fceb9cdc808afaf3559609b7519c9630266', class: "col-12" }, h("form-control-text", { key: 'ae4a6518c7499826f30376f1c902f694244059c7', name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, errorText: (_p = (_o = this.errors) === null || _o === void 0 ? void 0 : _o.additional_questions) === null || _p === void 0 ? void 0 : _p.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
|
|
@@ -61,7 +61,7 @@ const BusinessCoreInfo = class {
|
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
63
|
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: '75bbee71e68fb0dafa609838f4d3e22bf4388332' }, h("fieldset", { key: '1e1cc71bfd46b278ad3f7d3a73d5b126fbf19533' }, h("legend", { key: '341b82942f116b4a2b0b29ce505fda3a153f88ec', part: heading2 }, "General Info"), h("div", { key: 'e97b3c3a38f888795c24c887d42854c79f1f7b34', class: "row gy-3" }, h("div", { key: '6d560585e9843143c836a302ad83b19719732467', class: "col-12" }, h("form-control-text", { key: '9868049d15e3f2552feba3ff6fa6b1ab43c7ae9c', name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { key: 'f77c1d66117c29b6f5963a99bbb531f76242d052', class: "col-12" }, h("form-control-text", { key: '2708d678c35d4fa9838cd3fd834c77105b94feff', name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { key: 'bb17f23c8f7fc1be73524dce8ed11ce9a9524a21', class: "col-12 col-md-8" }, h("form-control-select", { key: 'bc4175a9ed29127d89cf9c6135448c80733f6959', name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: '6c5faad25c64ec50023be5128b8b0527584f9a7c', class: "col-12 col-md-4" }, h("form-control-date", { key: '54a151222d7eabc40a66ffbd5d0dba2e765cd135', name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: '5a562ba1811a319d2f5dd10197be2e1ecb94da8b', class: "col-12 col-md-6" }, h("form-control-text", { key: '03780a900fd4c176e5658b0784ef57eb48d2b3f7', name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), h("div", { key: '96e4110eb7b40f87a804b24a2ec94defca0be899', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '3cfda64e576a93bbed143b34c235b5388dade635', name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { key: '6a6e4d87838f2666c2750662c1f031f3b8d0effe', class: "col-12" }, h("form-control-text", { key: '68f28a6b78e2df1cd69631097a001369722d8081', name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { key: '8a334f64bc214d1211772e5a5018b82dadd88d1a', class: "col-12 col-md-6" }, h("form-control-text", { key: '639888a2d30e785e1d403830c718b7991f28285a', name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'b4aac33c17ce96c5c9a9ce5a90f322f69941df5e', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'c384d24cc34fefca964a5eb412b28360361ab780', name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
|
|
@@ -90,7 +90,7 @@ const BusinessRepresentative = class {
|
|
|
90
90
|
}
|
|
91
91
|
render() {
|
|
92
92
|
const representativeDefaultValue = this.formController.getInitialValues().representative;
|
|
93
|
-
return (h(Host, { key: '
|
|
93
|
+
return (h(Host, { key: '88bd35928331776d5cbb7d085fd55a76fde1a084' }, h("fieldset", { key: '202c40f332352c2f4d3c8a136888c39c67379e5f' }, h("legend", { key: 'a0b5043b348b1d8632a6bf0fe2d4309a8132d1f7', part: heading2 }, "Representative"), h("div", { key: 'ba50c004e2b37f384dd8af63b1e0e397abadb9de', class: "row gy-3" }, h("div", { key: 'b85bf5fb0da9e8feae19dbebb0a911362e914601', class: "col-12 col-md-8" }, h("form-control-text", { key: '95f849c7c0ba0c67bdc0a55727e00755e03897ef', name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '074067a3ce960b678ea38d53b84adda24e60754c', class: "col-12 col-md-4" }, h("form-control-text", { key: '7ef397af32b7c0f79eeae1499bf3d3d147961c96', name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: 'a26bfd8a0824aaa12c6ffa48ac58c2bccc7236ef', class: "col-12 col-md-6" }, h("form-control-text", { key: '39174c4b812462d1aa28824bca550e3f6e1d98b4', name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'ed0a2c52e4df0c43b2536dfd1ff3692a4e5716d9', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '07bdcc1dd2e1473b64218eb28c8cdcf1cdce2a91', name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '96092fd371ec82a8f8ebbf8bc4e3064768d4ad97', class: "col-12 col-md-4" }, h("form-control-date", { key: 'c24980f126c056aff139e897fdef9795905ea89b', name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { key: '9d1695fa6e68bb4ae9a8184dcb5e15d588474ab8', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '8d8a56c08fb06f1a54baf3ee3d6e31a684205290', name: "identification_number", label: this.identificationNumberLabel, defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: '22fa5e16517e14ab031aa5e7e95ea77bd7b28986', class: "col-12" }, h("justifi-identity-address-form", { key: '4a990de739a0ae6fbf1f6a621ff7c0078517e970', errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))))));
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
|
|
@@ -110,7 +110,7 @@ const LegalAddressForm = class {
|
|
|
110
110
|
render() {
|
|
111
111
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
112
112
|
const legalAddressDefaultValue = this.formController.getInitialValues().legal_address;
|
|
113
|
-
return (h(Host, { key: '
|
|
113
|
+
return (h(Host, { key: '5b21d99717f9b24c0551c7a96acf68e53e7787bf' }, h("fieldset", { key: 'd63cbd20b2648405c50a819724e0f8cf556f7d26' }, h("legend", { key: 'c0acd14073f13f914015f40d39bf22fb58792434', part: heading2 }, "Business Legal Address"), h("div", { key: 'ee4cee6bd662816f822ee209aeda5e9664f6a64d', class: "row gy-3" }, h("div", { key: '86b258fd09e73cbd2475330419274732231f3871', class: "col-12" }, h("form-control-text", { key: '8d898a9ae448f07932afe2d8cfc2314b92d9c597', name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.legal_address) === null || _b === void 0 ? void 0 : _b.line1 })), h("div", { key: '1a50c4b86a754035f71efacd39721219fcd54d60', class: "col-12" }, h("form-control-text", { key: '507b1451685e359a900f0bc7010ff39e3631daf2', name: "line2", label: "Address Line 2", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.legal_address) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '1446b4db5f86a3b18e3aceb78274ffe458dbd3db', class: "col-12" }, h("form-control-text", { key: 'e17e4bd95ad4290d18edde79cf05a6b3a105166c', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.legal_address) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '9b880203bad9e104e6d1299ff73c83cba46ab563', class: "col-12" }, h("form-control-select", { key: '24e4df10f688c9a1b5f2af5217f03919bf7abec7', name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.legal_address) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: '71f21b19602c268e3b6a839ce41ff9d4f8ffb8c4', class: "col-12" }, h("form-control-text", { key: 'ca71d3e21c5a0aea5367fa28ec1a2422ba9b1cf3', name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.legal_address) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'aaee0bf6a24ba182e002c1ffb49736fb622cde1f', class: "col-12" }, h("form-control-select", { key: '2b6486771818e584dcc195c304e5a6e16850b4a9', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.legal_address) === null || _m === void 0 ? void 0 : _m.country,
|
|
114
114
|
// just for now so we skip handling country specificities
|
|
115
115
|
disabled: true }))))));
|
|
116
116
|
}
|
|
@@ -37,10 +37,10 @@ const CheckboxInput = class {
|
|
|
37
37
|
return inputCheckbox;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'cb4fce894bdb9a24689e6a8b4078727b00001b3a' }, h("div", { key: 'da4671582783f5ebace5105434e484d816215f9e', class: 'form-group d-flex flex-column' }, h("div", { key: 'b8cd2036001fa732528391b6dbf1d0ae53043579', class: "form-check" }, h("input", { key: 'ae87dba4cdf3786e3c9a48c466deb9ef622cb5a9', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
41
41
|
this.isFocused = false;
|
|
42
42
|
this.formControlBlur.emit();
|
|
43
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '
|
|
43
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: 'bd2521e5b1af0a415f0780ee9708ff3c59707bcb', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: '29ac1320b027c81203fd4f5f424a25dd83bfbb80', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: 'a9206d48a18006459f7ae079413e7a5cc528aab5', errorText: this.errorText, name: this.name }))));
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
|
|
@@ -62,10 +62,10 @@ const MonetaryInputProvisioning = class {
|
|
|
62
62
|
return part;
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: '59e5e4d46e7d4ece898464d846505756611f6635' }, h("div", { key: 'e82201d6777584666ec5ca04ad9e02b83fa956c0', class: "form-group d-flex flex-column" }, h("label", { key: '9bbb22bb201d3db07670e4f26521593ff229f583', part: label, class: "form-label", htmlFor: this.name }, this.label), h("div", { key: '61909b4796f78e22d9e6508d9257cdf16220e675', class: "input-group" }, h("span", { key: '152a4f1a6323e55bf6f48aa25353939569acc419', class: "input-group-text", part: inputAdornment }, "$"), h("input", { key: 'cc8055c02a4ccb4f63553f45b5ded4ee3d8cf972', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
66
66
|
this.isFocused = false;
|
|
67
67
|
this.formControlBlur.emit();
|
|
68
|
-
}, onInput: this.handleFormControlInput, part: this.inputPart, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h(FormControlHelpText, { key: '
|
|
68
|
+
}, onInput: this.handleFormControlInput, part: this.inputPart, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h(FormControlHelpText, { key: '776dfb4a9d74342ba139dda6706af8e60b4700fc', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '74e503b7e525aeeb994b1ae94941f07365d2460e', errorText: this.errorText, name: this.name }))));
|
|
69
69
|
}
|
|
70
70
|
static get watchers() { return {
|
|
71
71
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -92,7 +92,7 @@ const IdentityAddressForm = class {
|
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
94
94
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
95
|
-
return (h(Host, { key: '
|
|
95
|
+
return (h(Host, { key: '136f90a2d2e8634c003a5f47af20d422b7cc59be' }, h("div", { key: 'e7441c2a0410381be43f8d0735fdf4e390f664f2', class: "row gy-3" }, h("div", { key: '93f23a3ba51716a88bf90628f395dbb3bc456cdc', class: "col-12 col-md-8" }, h("form-control-text", { key: 'f4801f6eb05d3a169142daa6b0d123ef84864de8', name: "line1", label: "Street Address", defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, inputHandler: this.inputHandler, helpText: "\u200B\u200BEnter your address exactly as stated on your driver's license. No PO Boxes." })), h("div", { key: 'e8ce49dcd4d3c6df3327d2c011ec1c0a080fb4f2', class: "col-12 col-md-4" }, h("form-control-text", { key: '8cbe92c156c4d410b712b2fc95c7bfe55be4e337', name: "line2", label: "Apartment, Suite, etc. (optional)", defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2, inputHandler: this.inputHandler })), h("div", { key: '4cfcfc24268fd92ccaac110a8293e95bc9998af8', class: "col-12" }, h("form-control-text", { key: 'b2739b7fd7838ee73c9127fd8e9b0dd6dcd12210', name: "city", label: "City", defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city, inputHandler: this.inputHandler })), h("div", { key: 'ce9e4974dcdab596dfcefef362d045ee2fea3648', class: "col-12 col-md-6" }, h("form-control-select", { key: 'c001d0a3d3b402768ec428c0e5760cf0e88c318d', name: "state", label: "State", defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, options: StateOptions, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state, inputHandler: this.inputHandler })), h("div", { key: '7b73598a2b207db9ec2480ed37d163aa45128e6d', class: "col-12 col-md-6" }, h("form-control-text", { key: 'a070edca32110dc4ec238c486ae96852733ae924', name: "postal_code", label: "Postal Code", defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler, inputHandler: this.inputHandler })), h("div", { key: '57b01955142ed533a65058b63cfd20598e8387c2', class: "col-12" }, h("form-control-select", { key: '8f07809025c039b4c39a452ddf2948f973a82d9a', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: (_l = this.defaultValues) === null || _l === void 0 ? void 0 : _l.country, errorText: (_m = this.errors) === null || _m === void 0 ? void 0 : _m.country,
|
|
96
96
|
// just for now so we skip handling country specificities
|
|
97
97
|
disabled: true })))));
|
|
98
98
|
}
|
|
@@ -3,7 +3,7 @@ import { c as createStore } from './index-ZfXl6Xrm.js';
|
|
|
3
3
|
import { i as inputInvalidAndFocused, b as inputInvalid, a as inputFocused, c as input, l as label } from './parts-RvUQ__Pq.js';
|
|
4
4
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
|
|
5
5
|
import { F as FormControlErrorText } from './form-control-error-text-IXJJ4JpV.js';
|
|
6
|
-
import { p as packageJson } from './package-
|
|
6
|
+
import { p as packageJson } from './package-C1kJMZIt.js';
|
|
7
7
|
|
|
8
8
|
const iframeInputStylesStore = createStore({
|
|
9
9
|
focused: {
|
|
@@ -57,7 +57,7 @@ const AdditionalQuestionsFormStep = class {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
|
-
return (h("justifi-additional-questions-form-step-core", { key: '
|
|
60
|
+
return (h("justifi-additional-questions-form-step-core", { key: 'b494a48aa19f63e30007663276876540c5149879', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
61
61
|
}
|
|
62
62
|
static get watchers() { return {
|
|
63
63
|
"authToken": ["propChanged"],
|
|
@@ -104,7 +104,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
render() {
|
|
107
|
-
return (h("justifi-business-bank-account-form-step-core", { key: '
|
|
107
|
+
return (h("justifi-business-bank-account-form-step-core", { key: 'adb496ad14cd3334d30e571d873150ed8335f833', businessId: this.businessId, getBusiness: this.getBusiness, postBankAccount: this.postBankAccount, postDocumentRecord: this.postDocumentRecord, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
108
108
|
}
|
|
109
109
|
static get watchers() { return {
|
|
110
110
|
"authToken": ["propChanged"],
|
|
@@ -148,7 +148,7 @@ const BusinessCoreInfoFormStep = class {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
render() {
|
|
151
|
-
return (h("justifi-business-core-info-form-step-core", { key: '
|
|
151
|
+
return (h("justifi-business-core-info-form-step-core", { key: '1d2bd68e87d5f312c54f5a4bda8863b26fdeec5d', businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
152
152
|
}
|
|
153
153
|
static get watchers() { return {
|
|
154
154
|
"authToken": ["propChanged"],
|
|
@@ -192,7 +192,7 @@ const BusinessOwnersFormStep = class {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
render() {
|
|
195
|
-
return (h(Host, { key: '
|
|
195
|
+
return (h(Host, { key: '3420b6e74da344665583a49146b5b7fd1be40155' }, h("justifi-business-owners-form-step-core", { key: '3e092450028815a0b134af4294edbb7589864409', authToken: this.authToken, businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: (el) => this.coreComponent = el })));
|
|
196
196
|
}
|
|
197
197
|
static get watchers() { return {
|
|
198
198
|
"authToken": ["propChanged"],
|
|
@@ -236,7 +236,7 @@ const BusinessRepresentativeFormStep = class {
|
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
render() {
|
|
239
|
-
return (h("justifi-business-representative-form-step-core", { key: '
|
|
239
|
+
return (h("justifi-business-representative-form-step-core", { key: '582c77f4b763573a1d29726285a9b871afe96d89', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
240
240
|
}
|
|
241
241
|
static get watchers() { return {
|
|
242
242
|
"authToken": ["propChanged"],
|
|
@@ -364,7 +364,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
364
364
|
return (h("a", { href: "https://justifi.tech/merchant-agreement/", target: "_blank", rel: "noopener noreferrer" }, "merchant agreement"));
|
|
365
365
|
}
|
|
366
366
|
render() {
|
|
367
|
-
return (h("form", { key: '
|
|
367
|
+
return (h("form", { key: '8cea6fff2e5b5cbfa7de6b3adfce238153599d1e' }, h("fieldset", { key: 'ef3c4ce5d0d03f1d048e072c6f7ac3da565ffb18' }, h("legend", { key: 'caa5fee86bd4b5c2a7204a76ae3533146526b9e1', part: heading2 }, "Terms and Conditions"), h("hr", { key: '5a72caeaf2dae8f57c0be09ca21feceb0793daf4' }), h("div", { key: 'e39700b83a10c479cf6d767c1af61ac8b480e4d5' }, h("p", { key: '2b8520977bedf73c295a387095724a561391b005' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: '706ec9ecfd4a0909583745f90b36eeb42fa5e690' }), h("div", { key: 'd915e2c49188b829b33b03f07cc8f1ccea99ee1d', class: "row-gy-3" }, h("div", { key: 'cbbc74e6b5e80bf54884a8f41eb94f6d5bcdb6dd', class: "col-12" }, h("form-control-checkbox", { key: 'f63aed196d33f1760dae8c5ac5487c0fbc7d4838', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
|
|
@@ -404,7 +404,7 @@ const LegalAddressFormStep = class {
|
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
render() {
|
|
407
|
-
return (h("justifi-legal-address-form-step-core", { key: '
|
|
407
|
+
return (h("justifi-legal-address-form-step-core", { key: 'bd286476461181f2e8a435a97bf148d55876b49c', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
408
408
|
}
|
|
409
409
|
static get watchers() { return {
|
|
410
410
|
"authToken": ["propChanged"],
|
|
@@ -426,7 +426,7 @@ const PaymentProvisioningFormButtons = class {
|
|
|
426
426
|
return this.currentStep === this.totalSteps;
|
|
427
427
|
}
|
|
428
428
|
render() {
|
|
429
|
-
return (h("div", { key: '
|
|
429
|
+
return (h("div", { key: '5869ed8c350e3a1ae5fe62dcd04493f432eecff7', class: 'd-flex gap-2' }, h(Button, { key: 'b1e8c2fff97e9a053d715860a43ddd78c99b255a', variant: "secondary", type: "button", onClick: () => this.previousStepButtonOnClick(), disabled: this.formDisabled, hidden: !this.showPreviousStepButton }, "Previous"), h(Button, { key: '8696fe4f0bde5434e51f05f67b39a8e5b2f550bf', variant: "primary", type: "button", onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.nextStep), disabled: this.formDisabled, isLoading: this.formLoading, hidden: !this.showNextStepButton }, "Next"), h(Button, { key: 'b1750a849d60244bdb3cf82690c6cbd15b6e1110', variant: "primary", type: "submit", onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.submit), disabled: this.formDisabled, isLoading: this.formLoading, hidden: !this.showSubmitButton }, "Submit")));
|
|
430
430
|
}
|
|
431
431
|
};
|
|
432
432
|
|
|
@@ -448,7 +448,7 @@ const PaymentProvisioningFormSteps = class {
|
|
|
448
448
|
return this.componentStepMapping[this.currentStep]();
|
|
449
449
|
}
|
|
450
450
|
render() {
|
|
451
|
-
return (h("div", { key: '
|
|
451
|
+
return (h("div", { key: '9a09e562d0a3548cb40863ba5780c5d1692b6ec3', class: 'col-12 mb-4' }, this.currentStepComponent));
|
|
452
452
|
}
|
|
453
453
|
};
|
|
454
454
|
|
|
@@ -254,7 +254,7 @@ class ApplePayService {
|
|
|
254
254
|
return reject({
|
|
255
255
|
success: false,
|
|
256
256
|
error: {
|
|
257
|
-
code: ApplePayServiceErrorCode.
|
|
257
|
+
code: ApplePayServiceErrorCode.UNAVAILABLE,
|
|
258
258
|
message: 'ApplePaySession API is not available in this environment',
|
|
259
259
|
},
|
|
260
260
|
});
|
|
@@ -704,11 +704,7 @@ const ApplePay = class {
|
|
|
704
704
|
const paymentRequest = {
|
|
705
705
|
countryCode: this.countryCode,
|
|
706
706
|
currencyCode: checkoutStore.paymentCurrency,
|
|
707
|
-
merchantCapabilities:
|
|
708
|
-
ApplePayMerchantCapability.SUPPORTS_3DS,
|
|
709
|
-
ApplePayMerchantCapability.SUPPORTS_CREDIT,
|
|
710
|
-
ApplePayMerchantCapability.SUPPORTS_DEBIT,
|
|
711
|
-
],
|
|
707
|
+
merchantCapabilities: ApplePayHelpers.getDefaultMerchantCapabilities(),
|
|
712
708
|
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
713
709
|
total: ApplePayHelpers.createLineItem(checkoutStore.paymentDescription, checkoutStore.paymentAmount),
|
|
714
710
|
};
|
|
@@ -852,10 +848,10 @@ const ApplePay = class {
|
|
|
852
848
|
this.isAvailable &&
|
|
853
849
|
this.canMakePayments &&
|
|
854
850
|
this.isConfigValid;
|
|
855
|
-
return (h(StyledHost, { key: '
|
|
851
|
+
return (h(StyledHost, { key: '0610b810bc458f7382bb78ebe155e38cd39d7023' }, checkoutStore.checkoutLoaded && (h("script", { key: '036ba823079bb6daa62e72a8ee76cdc32dab60f0', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
|
|
856
852
|
console.log('[ApplePay Component] Apple Pay SDK script loaded');
|
|
857
853
|
this.initializeApplePay();
|
|
858
|
-
} })), h("div", { key: '
|
|
854
|
+
} })), h("div", { key: 'f5211ca2212306b7ee99dc1f6f06f56a9aa08643', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: 'bb4680ed4760d378237d36dd60e76d2db9cf0dd4', isLoading: this.isLoading }), isReady && (h(ApplePayButton, { key: '6c984f15b8ef2e629325253428c8243935328050', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '670fcfa28ea2405f772238add126525ecb14841b' }, `
|
|
859
855
|
.apple-pay-container {
|
|
860
856
|
width: 100%;
|
|
861
857
|
}
|
|
@@ -5,7 +5,7 @@ import { r as radioListItem, av as billingForm } from './parts-RvUQ__Pq.js';
|
|
|
5
5
|
import { S as StyledHost } from './styled-host-CbizlfAU.js';
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
7
|
import { S as Skeleton } from './skeleton-DtpkgjZ6.js';
|
|
8
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
8
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BS-9lGl9.js';
|
|
9
9
|
import { w as waitForConfig, c as configState } from './config-state-Blo0ywwc.js';
|
|
10
10
|
import { H as Header3 } from './header-3-DVtaUAlf.js';
|
|
11
11
|
import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
|
|
@@ -16,7 +16,7 @@ import './_commonjsHelpers-BFTU3MAI.js';
|
|
|
16
16
|
import './business-form-options-CgssATyg.js';
|
|
17
17
|
import './Business-BCoP0TAV.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-C1kJMZIt.js';
|
|
20
20
|
import './Api-D4tj-h4P.js';
|
|
21
21
|
import './utils-BscIVFn8.js';
|
|
22
22
|
import './dinero-HXpYMWUU.js';
|
|
@@ -38,7 +38,7 @@ const JustifiRadioListItem = class {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(StyledHost, { key: '
|
|
41
|
+
return (h(StyledHost, { key: '1ae40f787970160e38b72f917bda96f480d2a890' }, h("div", { key: '2130596c8294cc38365e6126806735da0f93ef4a', class: `radio-list-item p-3 ${this.class || ''}`, part: radioListItem, onClick: this.handleClick, hidden: this.hidden }, h("form-control-radio", { key: '7d5524f518430f2bfd1c9863f354318929353cfb', name: this.name, value: this.value, checked: this.checked, label: this.label, inputHandler: () => null }))));
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -97,7 +97,7 @@ const BankAccountBillingFormSimple = class {
|
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
99
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
100
|
-
return (h(StyledHost, { key: '
|
|
100
|
+
return (h(StyledHost, { key: '81a8511265b4813817b4cf183aa176b464645e85' }, h("div", { key: '7dddd3ec7822077268c73da7d0f34a691ddde1cb', part: billingForm, class: "mt-4" }, h("form", { key: '1c9000a4b022209129cf511d79a77cf3dc44b77e' }, h("fieldset", { key: '134c349c5745197b5ebb79b31748bf480e1cab7a' }, this.legend && (h("legend", { key: 'fb8e12086fd6fb51f7456d8fc6e82a9184514d4f' }, this.legend)), h("div", { key: 'a49ae2d182e442efbe44aae7c2e0a4e40dabe7d7', class: "row gy-3" }, h("div", { key: '2be4b2aab266d0fc17f32237693dea8578c7545d', class: "col-12" }, h("form-control-text", { key: '92d1b3b05ba04212e46feecfd886f7dcc912e4fe', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler }))))))));
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
|
|
@@ -264,7 +264,7 @@ const CardBillingFormSimple = class {
|
|
|
264
264
|
}
|
|
265
265
|
render() {
|
|
266
266
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
267
|
-
return (h(StyledHost, { key: '
|
|
267
|
+
return (h(StyledHost, { key: 'a88ea2aa0b1cc2fccda7c169aad9c061e106ecfe' }, h("div", { key: '414df056d92819bf646886ca8e15f2ed10e6ab18', part: billingForm }, h("form", { key: 'c11f6eb5c7c5c1ecbeb8cc8f644a3b3ba72254c7' }, h("fieldset", { key: 'dd69c65ff7f36da3954c01ca2401e8ede6799f14' }, this.legend && (h("legend", { key: '25a86a61452b84237cc58c047916de22c35b764d' }, this.legend)), h("div", { key: '2fa8445fcf4ac0500f357d92480f18ccac655689', class: "row gy-3" }, h("div", { key: 'b7ac75fcab43435a03ad919757541f74661ce5b4', class: "col-12" }, h("form-control-text", { key: 'fd9e84c9605edf1a987c7243409eb0182f79a803', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
|
|
@@ -337,7 +337,7 @@ const SaveNewPaymentMethod = class {
|
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
339
|
render() {
|
|
340
|
-
return (h(StyledHost, { key: '
|
|
340
|
+
return (h(StyledHost, { key: 'c3808f4373067144ded9db353e48fe9cd3df59bc' }, h("form-control-checkbox", { key: '2f104a35497fdc1397c014c4c4ed646f7b389239', label: this.label || 'Save New Payment Method', name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange })));
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
343
|
|
|
@@ -3,7 +3,7 @@ import { E as ErrorState } from './utils-_ckvHjSW.js';
|
|
|
3
3
|
import { B as BusinessService } from './business.service-CsbtEDNi.js';
|
|
4
4
|
import { m as makeGetBusiness } from './get-business-Crb6P-iI.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BS-9lGl9.js';
|
|
7
7
|
import './parts-RvUQ__Pq.js';
|
|
8
8
|
import './Api-D4tj-h4P.js';
|
|
9
9
|
import './config-state-Blo0ywwc.js';
|
|
@@ -17,7 +17,7 @@ import './Business-BCoP0TAV.js';
|
|
|
17
17
|
import './helpers-Mu7LQT-w.js';
|
|
18
18
|
import './state-options-BX8GieXu.js';
|
|
19
19
|
import './utils-BeQLScSm.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-C1kJMZIt.js';
|
|
21
21
|
|
|
22
22
|
const BusinessDetails = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -9,7 +9,7 @@ import './Refund-Bc5By0lb.js';
|
|
|
9
9
|
import './Pagination-CLHwhyvu.js';
|
|
10
10
|
import { B as Business, b as BusinessFormServerErrors } from './Business-BCoP0TAV.js';
|
|
11
11
|
import './Dispute-BH0Xfn-F.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BS-9lGl9.js';
|
|
13
13
|
import { B as Button } from './button-SAIS_5os.js';
|
|
14
14
|
import { S as StyledHost } from './styled-host-CbizlfAU.js';
|
|
15
15
|
import { H as Header1 } from './header-1-zXsamUS3.js';
|
|
@@ -25,7 +25,7 @@ import './business-form-options-CgssATyg.js';
|
|
|
25
25
|
import './index-ZfXl6Xrm.js';
|
|
26
26
|
import './utils-BscIVFn8.js';
|
|
27
27
|
import './helpers-Mu7LQT-w.js';
|
|
28
|
-
import './package-
|
|
28
|
+
import './package-C1kJMZIt.js';
|
|
29
29
|
import './Api-D4tj-h4P.js';
|
|
30
30
|
import './parts-RvUQ__Pq.js';
|
|
31
31
|
import './utils-BeQLScSm.js';
|
|
@@ -17,7 +17,7 @@ const RepresentativeFormInputs = class {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
20
|
-
return (h("form", { key: '
|
|
20
|
+
return (h("form", { key: 'e4b7a532e18a921a5a28aab31f679fbbad164198' }, h("fieldset", { key: 'd7056e5ee25625adb563e2687f581157653c8a9d' }, h("div", { key: '456aab0ef1399a7c1d272059c881c6c6f3d0e87c', class: "d-flex align-items-center gap-2" }, h("legend", { key: '430b3731bbd97ff1589bd81bd6fdaa4082161180', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: '47676ededb80e0f766cb786265d8fb307c60d125', helpText: "The representative for your business needs to be someone who has significant control over managing your business\u2019s finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: '514197b5bd4868ec29e75dc74367deb187b32063', class: "mt-2" }), h("div", { key: 'f2986d55d0bfbf0e6059f0b2a766d2dc603acdc5', class: "row gy-3" }, h("div", { key: 'e4a3749c5e972f505527b8fc172f9a4214806345', class: "col-12 col-md-8" }, h("form-control-text", { key: 'd54c8d17f0360277fe04dd91a528e303182495c7', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '4fa0b1a192fb39a982c957d202ea2ac1e40dedd8', class: "col-12 col-md-4" }, h("form-control-text", { key: '8c3bca4234ea0e7ae3c79d810ffb469637898eb6', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '7e14a61364883172f2938bd8b1e53883ddd369fe', class: "col-12 col-md-6" }, h("form-control-text", { key: '8d9c81d374998dbaea5322906fddb5eeadea1546', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'c3f369b226a08497926b26d0732b7dc9d6413559', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '734625aeac8384f2b8676c4d350368675cff3a6f', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '23d509b724f2617eb0a4f85c74238b09a052a6cb', class: "col-12 col-md-4" }, h("form-control-date", { key: '0f838cc474beab9822a84856733a86ecf43f0ec3', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: 'f6d08c53dad2e9a550adf893ac59166015ffb6e4', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: 'dd610955fb7c62fd0aab9af925af34cdc47ab3e9', name: "identification_number", label: "SSN", defaultValue: (_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: 'd4e2a212a87ca9be4be8e21f3e47008b2201871c', class: "col-12" }, h("justifi-identity-address-form", { key: 'bb2d0d01e07be4d37acfd448796c8a33460111ed', errors: this.errors.address, defaultValues: (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.address, handleFormUpdate: this.onAddressFormUpdate }))))));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -7,7 +7,7 @@ import './event-types-CZfYo5-1.js';
|
|
|
7
7
|
import { H as Header1 } from './header-1-zXsamUS3.js';
|
|
8
8
|
import { H as Header2, b as insuranceValuesOn, h as hasInsuranceValueChanged, i as insuranceValues } from './insurance-state-Dh9f36Qh.js';
|
|
9
9
|
import { H as Header3 } from './header-3-DVtaUAlf.js';
|
|
10
|
-
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-
|
|
10
|
+
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-BS-9lGl9.js';
|
|
11
11
|
import './config-state-Blo0ywwc.js';
|
|
12
12
|
import './dinero-HXpYMWUU.js';
|
|
13
13
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes, b as ComponentErrorMessages } from './ComponentError-Cjcsf8ku.js';
|
|
@@ -21,7 +21,7 @@ import { A as Api } from './Api-D4tj-h4P.js';
|
|
|
21
21
|
import { P as PAYMENT_METHODS, a as PaymentMethod, b as PAYMENT_MODE } from './index-DCIW8z1f.js';
|
|
22
22
|
import { C as CardBrandLabels } from './payment-method-option-utils-lUHAQVFl.js';
|
|
23
23
|
import './index-ZfXl6Xrm.js';
|
|
24
|
-
import './package-
|
|
24
|
+
import './package-C1kJMZIt.js';
|
|
25
25
|
import './helpers-Mu7LQT-w.js';
|
|
26
26
|
import './state-options-BX8GieXu.js';
|
|
27
27
|
|
|
@@ -359,11 +359,19 @@ const ModularCheckout = class {
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
async submitCheckout(submitCheckoutArgs) {
|
|
362
|
-
var _a, _b, _c, _d;
|
|
362
|
+
var _a, _b, _c, _d, _e;
|
|
363
363
|
const isValid = await this.validate();
|
|
364
|
+
if (!checkoutStore.selectedPaymentMethod) {
|
|
365
|
+
this.errorEvent.emit({
|
|
366
|
+
message: 'No payment method selected.',
|
|
367
|
+
errorCode: ComponentErrorCodes.VALIDATION_ERROR,
|
|
368
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
369
|
+
});
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
364
372
|
const isNewCard = ((_a = checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.NEW_CARD;
|
|
365
373
|
const isNewBankAccount = ((_b = checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.NEW_BANK_ACCOUNT;
|
|
366
|
-
const isPlaid = checkoutStore.selectedPaymentMethod.type === PAYMENT_METHODS.PLAID;
|
|
374
|
+
const isPlaid = ((_c = checkoutStore.selectedPaymentMethod) === null || _c === void 0 ? void 0 : _c.type) === PAYMENT_METHODS.PLAID;
|
|
367
375
|
const shouldTokenize = isNewCard || isNewBankAccount;
|
|
368
376
|
if (shouldTokenize) {
|
|
369
377
|
const tokenizeResult = await this.tokenizePaymentMethod(submitCheckoutArgs);
|
|
@@ -399,7 +407,7 @@ const ModularCheckout = class {
|
|
|
399
407
|
return;
|
|
400
408
|
}
|
|
401
409
|
const paymentMethod = response === null || response === void 0 ? void 0 : response.data;
|
|
402
|
-
const token = ((
|
|
410
|
+
const token = ((_d = paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.bank_account) === null || _d === void 0 ? void 0 : _d.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id);
|
|
403
411
|
checkoutStore.paymentToken = token;
|
|
404
412
|
}
|
|
405
413
|
catch (err) {
|
|
@@ -445,7 +453,7 @@ const ModularCheckout = class {
|
|
|
445
453
|
}
|
|
446
454
|
};
|
|
447
455
|
payment = {
|
|
448
|
-
payment_mode: mapTypeToPaymentMode((
|
|
456
|
+
payment_mode: mapTypeToPaymentMode((_e = checkoutStore.selectedPaymentMethod) === null || _e === void 0 ? void 0 : _e.type),
|
|
449
457
|
payment_token: checkoutStore.paymentToken,
|
|
450
458
|
};
|
|
451
459
|
this.completeCheckout({
|
|
@@ -466,7 +474,7 @@ const ModularCheckout = class {
|
|
|
466
474
|
});
|
|
467
475
|
}
|
|
468
476
|
render() {
|
|
469
|
-
return h(Host, { key: '
|
|
477
|
+
return h(Host, { key: 'dbe1fe78f8206fef2e3f4f51628d716786dea858' });
|
|
470
478
|
}
|
|
471
479
|
get hostEl() { return getElement(this); }
|
|
472
480
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-qipqIMyC.js';
|
|
2
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
2
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BS-9lGl9.js';
|
|
3
3
|
import { c as checkoutStore } from './checkout.store-DBvS7cVB.js';
|
|
4
4
|
import { d as checkoutSummary } from './parts-RvUQ__Pq.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host-CbizlfAU.js';
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
7
|
import { P as PAYMENT_METHODS } from './index-DCIW8z1f.js';
|
|
8
|
-
import './package-
|
|
8
|
+
import './package-C1kJMZIt.js';
|
|
9
9
|
import './Api-D4tj-h4P.js';
|
|
10
10
|
import './config-state-Blo0ywwc.js';
|
|
11
11
|
import './index-ZfXl6Xrm.js';
|
|
@@ -89,9 +89,9 @@ const Checkout = class {
|
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
91
|
var _a, _b;
|
|
92
|
-
return (h(StyledHost, { key: '
|
|
92
|
+
return (h(StyledHost, { key: '8967ceca5773c0f5913b893f8b626ef2eb58abe8' }, h("justifi-modular-checkout", { key: '74294e37e359e68601699a543751c0835f074d47', ref: (el) => {
|
|
93
93
|
this.modularCheckoutRef = el;
|
|
94
|
-
}, authToken: this.authToken, checkoutId: this.checkoutId }, h("div", { key: '
|
|
94
|
+
}, authToken: this.authToken, checkoutId: this.checkoutId }, h("div", { key: '9daf1561a627f0a84dd7390c7d44ffab15a4a746', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '1f45fa61d3fa5f3e21d3086123aef3137734a363', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: '812d922d688bb5e00eaff3f967350b705454a06c', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: '9c8cfe346833339197f3922dcbee7230308064e6' }, h("justifi-checkout-summary", { key: '8b6410ed811ff2793167ab8b21954d6bbb52c3d8' }))), h("div", { key: '87413afe99372a8523b25b8e3fe14b17666328ac', class: "col-12 mt-4" }, h("slot", { key: 'f8342527afd4e86abda3275db447e82f72e13e03', name: "insurance" })), h("div", { key: '97b39e4f03829ea5d1d29b2b1be3066ff4100ac7', class: "col-12 mt-4" }, h("justifi-header", { key: '2b3196519d949d534595767879102951caad5788', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: 'c40bbfddfb990feda4aa75ab4caa38b4376b4a04', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: 'c323e2e892985b02a607253355b0b72eb5bfe9e9', class: "d-flex flex-column" }, h("section", { key: 'c85bb72343b256d072a086a4974167d421154023' }, h("div", { key: 'f4cb5c3b7fa4facbff7882b769da2bf9b9d01811' }, h("justifi-saved-payment-methods", { key: '087cbde10cb23af391eb848f53a3732cdd528cd0' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && (h("justifi-radio-list-item", { key: '35c7b0484cbec62b115aa8851c8266cd4d39b2b6', name: "paymentMethodType", value: PAYMENT_METHODS.SEZZLE, checked: ((_a = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.SEZZLE, label: h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(PAYMENT_METHODS.PLAID) && (h("justifi-radio-list-item", { key: 'a7ec30342cbb3453b460e72d60a1c726e3a3efa3', name: "paymentMethodType", value: PAYMENT_METHODS.PLAID, checked: ((_b = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.PLAID, label: h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), h("justifi-tokenize-payment-method", { key: '590b2085e9aee9a06f5ee1755aeeb41aa3448699', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkoutStore.paymentMethodGroupId }))))), h("div", { key: 'b725e958faa55605e4542f59d461780eeced96fe', class: "mt-4" }, h("justifi-button", { key: '119f7879620fc6dd06517c7a894ec05b60b1d4f8', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: this.isSubmitting, isLoading: this.isSubmitting, customStyle: { width: '100%', textAlign: "center" } }))))));
|
|
95
95
|
}
|
|
96
96
|
static get watchers() { return {
|
|
97
97
|
"authToken": ["propChanged"],
|