@justifi/webcomponents 6.1.0-rc.2 → 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-DUDlLDCJ.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 +3 -7
- 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 +2 -2
- 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-CFCy2fBx.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/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 +3 -2
- 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-B_Pl1uAE.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 +3 -7
- 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 +2 -2
- 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-pXjOPQhG.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 +3 -7
- 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/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-760a5b4f.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-4466d28d.entry.js → p-2247ccd8.entry.js} +1 -1
- package/dist/webcomponents/{p-868ed3b6.entry.js → p-2473381f.entry.js} +1 -1
- package/dist/webcomponents/{p-779e4467.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-c685fc33.entry.js → p-4b45317f.entry.js} +1 -1
- package/dist/webcomponents/{p-d0f93668.entry.js → p-51ef1af7.entry.js} +1 -1
- package/dist/webcomponents/{p-629c1d75.entry.js → p-56b993b3.entry.js} +1 -1
- package/dist/webcomponents/{p-46db49dd.entry.js → p-5818d39e.entry.js} +1 -1
- package/dist/webcomponents/p-5c3d8de5.entry.js +1 -0
- package/dist/webcomponents/{p-b4e673fe.entry.js → p-68f22275.entry.js} +1 -1
- package/dist/webcomponents/{p-718f8b2c.entry.js → p-6a365abb.entry.js} +1 -1
- package/dist/webcomponents/p-6f1dd478.entry.js +1 -0
- package/dist/webcomponents/{p-f6cf3e2b.entry.js → p-71258742.entry.js} +1 -1
- package/dist/webcomponents/{p-d3f5ff95.entry.js → p-7160e5ad.entry.js} +1 -1
- package/dist/webcomponents/p-79c45974.entry.js +1 -0
- package/dist/webcomponents/p-7b103dad.entry.js +1 -0
- package/dist/webcomponents/{p-2abfee08.entry.js → p-8018523d.entry.js} +1 -1
- package/dist/webcomponents/{p-1f9f6bdc.entry.js → p-8a0b7a0f.entry.js} +1 -1
- package/dist/webcomponents/p-8d3f5638.entry.js +1 -0
- package/dist/webcomponents/{p-3c1d950d.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-BB5-CJF-.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-bc902ec2.entry.js → p-ab998669.entry.js} +1 -1
- package/dist/webcomponents/p-b90999af.entry.js +1 -0
- package/dist/webcomponents/{p-87f598ef.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-73f88870.entry.js → p-e4d08075.entry.js} +1 -1
- package/dist/webcomponents/p-ea2a9a81.entry.js +1 -0
- package/dist/webcomponents/{p-06b6b61e.entry.js → p-ee48fe6d.entry.js} +1 -1
- package/dist/webcomponents/{p-d34befd7.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-4332962a.entry.js +0 -1
- package/dist/webcomponents/p-4d5c71c4.entry.js +0 -1
- package/dist/webcomponents/p-7ef3cb23.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-a57c1400.entry.js +0 -1
- package/dist/webcomponents/p-bf82201a.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-pXjOPQhG.js +0 -1
|
@@ -42,10 +42,10 @@ const CheckboxInput = /*@__PURE__*/ proxyCustomElement(class CheckboxInput exten
|
|
|
42
42
|
return inputCheckbox;
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
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: () => {
|
|
46
46
|
this.isFocused = false;
|
|
47
47
|
this.formControlBlur.emit();
|
|
48
|
-
}, 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: '
|
|
48
|
+
}, 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 }))));
|
|
49
49
|
}
|
|
50
50
|
}, [256, "form-control-checkbox", {
|
|
51
51
|
"label": [1],
|
|
@@ -67,10 +67,10 @@ const MonetaryInputProvisioning = /*@__PURE__*/ proxyCustomElement(class Monetar
|
|
|
67
67
|
return part;
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
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: () => {
|
|
71
71
|
this.isFocused = false;
|
|
72
72
|
this.formControlBlur.emit();
|
|
73
|
-
}, 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: '
|
|
73
|
+
}, 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 }))));
|
|
74
74
|
}
|
|
75
75
|
static get watchers() { return {
|
|
76
76
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -23,7 +23,7 @@ const IdentityAddressForm = /*@__PURE__*/ proxyCustomElement(class IdentityAddre
|
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
25
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
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,
|
|
27
27
|
// just for now so we skip handling country specificities
|
|
28
28
|
disabled: true })))));
|
|
29
29
|
}
|
|
@@ -704,11 +704,7 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
|
|
|
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 = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
|
|
|
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
|
}
|
|
@@ -105,9 +105,9 @@ const Checkout = /*@__PURE__*/ proxyCustomElement(class Checkout extends HTMLEle
|
|
|
105
105
|
}
|
|
106
106
|
render() {
|
|
107
107
|
var _a, _b;
|
|
108
|
-
return (h(StyledHost, { key: '
|
|
108
|
+
return (h(StyledHost, { key: '8967ceca5773c0f5913b893f8b626ef2eb58abe8' }, h("justifi-modular-checkout", { key: '74294e37e359e68601699a543751c0835f074d47', ref: (el) => {
|
|
109
109
|
this.modularCheckoutRef = el;
|
|
110
|
-
}, authToken: this.authToken, checkoutId: this.checkoutId }, h("div", { key: '
|
|
110
|
+
}, 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" } }))))));
|
|
111
111
|
}
|
|
112
112
|
static get watchers() { return {
|
|
113
113
|
"authToken": ["propChanged"],
|
|
@@ -55,7 +55,7 @@ const CheckoutsListFilters = /*@__PURE__*/ proxyCustomElement(class CheckoutsLis
|
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
57
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
58
|
-
return (h(StyledHost, { key: '
|
|
58
|
+
return (h(StyledHost, { key: '5474a09b729c816bafb47101dbf5a25aff92eb1b' }, h("table-filters-menu", { key: '92e46a05e67bdf84b74cd644c1b89d0fc4c86af9', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: 'd8562876f8a0c1d85caa5a298cccdb1143bd7512', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '4162644cf10861d91a79dc07f845dd21a6c8d6a5', class: "p-2" }, h("form-control-select", { key: '2b13ef4af25f6ac3865f3b0edde91929655537bf', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status, disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '9aee7f453be147b03a548fe9ea9bd9bcc6a233aa', class: "p-2" }, h("form-control-select", { key: '8f375d5660c3414e5f3796e02694fa46ed761871', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode, disabled: !!this.paymentMode, part: paymentModeCheckoutsListFilterParam }))))));
|
|
59
59
|
}
|
|
60
60
|
}, [257, "justifi-checkouts-list-filters", {
|
|
61
61
|
"checkoutStatus": [1, "checkout-status"],
|
|
@@ -103,7 +103,7 @@ const CheckoutsList = /*@__PURE__*/ proxyCustomElement(class CheckoutsList exten
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
render() {
|
|
106
|
-
return (h(StyledHost, { key: '
|
|
106
|
+
return (h(StyledHost, { key: '41bf633467138b6af13b1c02ccf1e1016ec54bfe' }, h("checkouts-list-core", { key: 'cd3ca431258ad73e701fe74612ecdf2c0f2a1bda', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
107
107
|
}
|
|
108
108
|
static get watchers() { return {
|
|
109
109
|
"accountId": ["propChanged"],
|
|
@@ -99,7 +99,7 @@ const PaymentProvisioning = /*@__PURE__*/ proxyCustomElement(class PaymentProvis
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
render() {
|
|
102
|
-
return (h("justifi-payment-provisioning-core", { key: '
|
|
102
|
+
return (h("justifi-payment-provisioning-core", { key: '6d77016584f204fdc4be5fd554b4eb1639e856ab', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
|
|
103
103
|
}
|
|
104
104
|
static get watchers() { return {
|
|
105
105
|
"authToken": ["propChanged"],
|
|
@@ -19,7 +19,7 @@ const JustifiRadioListItem = /*@__PURE__*/ proxyCustomElement(class JustifiRadio
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(StyledHost, { key: '
|
|
22
|
+
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 }))));
|
|
23
23
|
}
|
|
24
24
|
}, [257, "justifi-radio-list-item", {
|
|
25
25
|
"name": [1],
|
|
@@ -26,7 +26,7 @@ const SavedPaymentMethod = /*@__PURE__*/ proxyCustomElement(class SavedPaymentMe
|
|
|
26
26
|
;
|
|
27
27
|
render() {
|
|
28
28
|
var _a, _b, _c;
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '077ad61b1a84963ebaad43397aa7c88211d9dd7e', class: "payment-method" }, h("div", { key: 'e01a2e45c55273cb0ee9774b60504d7098a74cf9', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: 'f34e9fe3f52fbf1acfdc72993259d6f6f58ac470', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: `${CardBrandLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.brand] || ''} *${(_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.acct_last_four}` }))));
|
|
30
30
|
}
|
|
31
31
|
}, [256, "justifi-saved-payment-method", {
|
|
32
32
|
"paymentMethodOption": [16, "payment-method-option"],
|
|
@@ -47,7 +47,7 @@ const LegalAddressFormStep = /*@__PURE__*/ proxyCustomElement(class LegalAddress
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h("justifi-legal-address-form-step-core", { key: '
|
|
50
|
+
return (h("justifi-legal-address-form-step-core", { key: 'bd286476461181f2e8a435a97bf148d55876b49c', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
51
51
|
}
|
|
52
52
|
static get watchers() { return {
|
|
53
53
|
"authToken": ["propChanged"],
|
|
@@ -26,12 +26,12 @@ const LegalAddressForm = /*@__PURE__*/ proxyCustomElement(class LegalAddressForm
|
|
|
26
26
|
render() {
|
|
27
27
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
28
28
|
const legalAddressDefaultValue = this.formController.getInitialValues().legal_address;
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
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,
|
|
30
30
|
// just for now so we skip handling country specificities
|
|
31
31
|
disabled: true }))))));
|
|
32
32
|
}
|
|
33
33
|
}, [256, "justifi-legal-address-form", {
|
|
34
|
-
"formController": [
|
|
34
|
+
"formController": [16, "form-controller"],
|
|
35
35
|
"errors": [32],
|
|
36
36
|
"legal_address": [32]
|
|
37
37
|
}]);
|
|
@@ -164,7 +164,7 @@ const BusinessOwnerFormCore = /*@__PURE__*/ proxyCustomElement(class BusinessOwn
|
|
|
164
164
|
this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
|
|
165
165
|
}
|
|
166
166
|
render() {
|
|
167
|
-
return (h("form", { key: '
|
|
167
|
+
return (h("form", { key: '570c20c1fdf79268e6c8193a393515c8602a3a44', onSubmit: this.validateAndSubmit }, h("fieldset", { key: 'f4f75a735438baef254d4578b779ca16e5080a41' }, h("legend", { key: 'dc0c83a7ada9f908afec56d7560f7d9d116baa40', class: "fw-semibold fs-5", part: heading3 }, this.formTitle), h("br", { key: '5d97c0b38073618aef80ff9576cd57ab0e70d44e' }), h("div", { key: 'b15a207a4c4afc1249ce3b8a381e7b57ceb32e7a', class: "row gy-3" }, h("owner-form-inputs", { key: '21bd3e9b00580e7293338ad746c189d19ac3d98e', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: 'b4653d9b78094b15bfba61e3a18ea3703dc53162', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: '0328aa7af6e3c2f7ed8aa16724dedcb576bb9870', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: 'e42671667156149d5424243eef1d6675a3bd6506', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: 'ee7bf4cdb63cdc31df8b307ffb1772e5c0f0348c' }))));
|
|
168
168
|
}
|
|
169
169
|
static get watchers() { return {
|
|
170
170
|
"isLoading": ["loadingWatcher"]
|
|
@@ -23,13 +23,13 @@ const BusinessOwnerFormInputs = /*@__PURE__*/ proxyCustomElement(class BusinessO
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h("div", { key: '
|
|
26
|
+
return (h("div", { key: '86abe1713fdfd297e88c1fc1734fadb2c9eab966', class: "row gy-3" }, h("div", { key: '63a03271f2a777d4cede3b0790e11c7f4108797f', class: "col-12 col-md-8" }, h("form-control-text", { key: 'b86dd9184dbf50e00e047a733ff708526e32d6dc', name: "name", label: "Full Name", defaultValue: this.ownerDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'c3850b7425ca0d8a118a6b78933f3a2fbe343124', class: "col-12 col-md-4" }, h("form-control-text", { key: 'f1f6e801eb36bcae5f2e51f8cd4ea9b7ed6a34a8', name: "title", label: "Title", defaultValue: this.ownerDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: 'b07a8a86dbdef296c9438953ef311ccae3aed23c', class: "col-12 col-md-6" }, h("form-control-text", { key: '714ca04b0bf0e5ed1b116b8f4963ba12f7fd6b77', name: "email", label: "Email Address", defaultValue: this.ownerDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '46c11c80bb58d0190ff05f1e87ba962443b07c59', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '6da40db9fb8b3e4f3a744cd0426f4e6436350594', name: "phone", label: "Phone Number", defaultValue: this.ownerDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '0960ea2fb399d0098caeabf45347a89c74066f57', class: "col-12 col-md-4" }, h("form-control-date", { key: 'fe0891a3f42c093d70db1dd1d1a7e121ba3091c1', name: "dob_full", label: "Birth Date", defaultValue: this.ownerDefaultValue.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: 'e7cbc519fa6f4fa5b03a0d0b69c7d7f1c42185ff', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: 'cf2b280c1560bd1a9f80cf81c1543d41bd807233', name: "identification_number", label: "SSN", defaultValue: this.ownerDefaultValue.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: '1755c849992bfd9f459b65b4cf7e967039fdbe27', class: "col-12" }, h("justifi-identity-address-form", { key: 'ac5372d4a9fad8ee3cfe2af20c11868e8753cc35', errors: this.errors.address, defaultValues: this.ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))));
|
|
27
27
|
}
|
|
28
28
|
;
|
|
29
29
|
}, [256, "owner-form-inputs", {
|
|
30
30
|
"ownerDefaultValue": [8, "owner-default-value"],
|
|
31
31
|
"errors": [8],
|
|
32
|
-
"formController": [
|
|
32
|
+
"formController": [16, "form-controller"]
|
|
33
33
|
}]);
|
|
34
34
|
function defineCustomElement() {
|
|
35
35
|
if (typeof customElements === "undefined") {
|
|
@@ -51,7 +51,7 @@ const BusinessOwnerForm = /*@__PURE__*/ proxyCustomElement(class BusinessOwnerFo
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h("owner-form-core", { key: '
|
|
54
|
+
return (h("owner-form-core", { key: '07ad7cd2bb38442dc591c9e3421223294690ee8c', ownerId: this.ownerId, businessId: this.businessId, getOwner: this.getOwner, patchOwner: this.patchOwner, postOwner: this.postOwner, allowOptionalFields: this.allowOptionalFields, removeOwner: this.removeOwner, newFormOpen: this.newFormOpen, ownersLength: this.ownersLength, ref: ref => this.coreComponent = ref }));
|
|
55
55
|
}
|
|
56
56
|
}, [256, "justifi-owner-form", {
|
|
57
57
|
"authToken": [1, "auth-token"],
|
package/dist/module/package.js
CHANGED
|
@@ -12,13 +12,13 @@ const PaginationMenu = /*@__PURE__*/ proxyCustomElement(class PaginationMenu ext
|
|
|
12
12
|
this.params = {};
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '7b821154b627026ef8624af6e4759e2176004676' }, h("nav", { key: '7990aee285d0cc3e6f83cb59bb216439e5364df5', "aria-label": "Table pagination", class: "d-flex justify-content-end gap-3" }, h("ul", { key: '02c68163934ce1aabf4abd607cc28e549e20ebe1', class: "pagination m-0" }, h("li", { key: 'aab661ae85fc61eecd230d058f135483796769c0', class: `page-item ${this.paging.has_previous ? '' : ' disabled'}` }, h("button", { key: 'ef42a41831a9890186c333418b161877761674e1', class: "page-link", onClick: (e) => {
|
|
16
16
|
e.preventDefault();
|
|
17
17
|
this.paging.handleClickPrevious(this.paging.start_cursor);
|
|
18
|
-
}, part: this.paging.has_previous ? paginationButton : paginationButtonDisabled }, h("span", { key: '
|
|
18
|
+
}, part: this.paging.has_previous ? paginationButton : paginationButtonDisabled }, h("span", { key: 'a898a92687e4a5fec37d9dab4208430260a9f274', class: "me-1", part: paginationButtonIconPrevious }, "\u00AB"), h("span", { key: 'ecc2eeedc064d405ad178b9a98ed088e12f1b2fb', part: paginationButtonText }, "Previous"))), h("li", { key: '56569cd9f9803ead8b1180e2f982a98d7009be1f', class: `page-item ${this.paging.has_next ? '' : ' disabled'}` }, h("button", { key: 'c39d389ab89609e8ce11b3dd81eb5c4a50d3521f', class: "page-link", onClick: (e) => {
|
|
19
19
|
e.preventDefault();
|
|
20
20
|
this.paging.handleClickNext(this.paging.end_cursor);
|
|
21
|
-
}, part: this.paging.has_next ? paginationButton : paginationButtonDisabled }, h("span", { key: '
|
|
21
|
+
}, part: this.paging.has_next ? paginationButton : paginationButtonDisabled }, h("span", { key: '6a01458a048a524931b03df6a964fa4a0ac403ac', part: paginationButtonText }, "Next"), h("span", { key: 'f4cb3d084647c00dff30b99f751180564463443f', class: "ms-1", part: paginationButtonIconNext }, "\u00BB")))))));
|
|
22
22
|
}
|
|
23
23
|
}, [256, "pagination-menu", {
|
|
24
24
|
"paging": [16],
|
|
@@ -131,7 +131,7 @@ const PaymentProvisioningCore = /*@__PURE__*/ proxyCustomElement(class PaymentPr
|
|
|
131
131
|
this.loading = event.detail;
|
|
132
132
|
}
|
|
133
133
|
render() {
|
|
134
|
-
return (h(StyledHost, { key: '
|
|
134
|
+
return (h(StyledHost, { key: '621b616a3b9d5be0fcc1180dcdb0db6a89ec5aa2' }, h("div", { key: 'b51c6814bb81a6cdc6cd0c5ede4d485582f154ee', class: 'row gap-3' }, h(Header1, { key: '7c03561b4c2b0cfc237d6b933aeffe532f35b626', text: this.formTitle }), h("justifi-payment-provisioning-form-steps", { key: 'b616b52cc9a0057f27ddbae1356710cee05c60fa', businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, handleFormLoading: this.handleFormLoading }), h("div", { key: '2447bad174b5d32d253e821e76ebb32fb9ec50e3', class: 'd-flex justify-content-between align-items-center' }, h("div", { key: 'd746b5275ae0866a8619f67fe00217916153ea0a', class: 'd-flex align-items-center', part: text }, this.stepCounter), h("justifi-payment-provisioning-form-buttons", { key: 'add808398005b6076d91788cc220ab6620f3ddfc', currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
|
|
135
135
|
}
|
|
136
136
|
}, [256, "justifi-payment-provisioning-core", {
|
|
137
137
|
"businessId": [1, "business-id"],
|
|
@@ -23,7 +23,7 @@ const PaymentProvisioningFormButtons = /*@__PURE__*/ proxyCustomElement(class Pa
|
|
|
23
23
|
return this.currentStep === this.totalSteps;
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h("div", { key: '
|
|
26
|
+
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")));
|
|
27
27
|
}
|
|
28
28
|
}, [256, "justifi-payment-provisioning-form-buttons", {
|
|
29
29
|
"currentStep": [2, "current-step"],
|
|
@@ -51,7 +51,7 @@ const PaymentProvisioningFormSteps = /*@__PURE__*/ proxyCustomElement(class Paym
|
|
|
51
51
|
return this.componentStepMapping[this.currentStep]();
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h("div", { key: '
|
|
54
|
+
return (h("div", { key: '9a09e562d0a3548cb40863ba5780c5d1692b6ec3', class: 'col-12 mb-4' }, this.currentStepComponent));
|
|
55
55
|
}
|
|
56
56
|
}, [256, "justifi-payment-provisioning-form-steps", {
|
|
57
57
|
"businessId": [1, "business-id"],
|
|
@@ -23,7 +23,7 @@ const SaveNewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class SaveNewPayme
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h(StyledHost, { key: '
|
|
26
|
+
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 })));
|
|
27
27
|
}
|
|
28
28
|
}, [257, "justifi-save-new-payment-method", {
|
|
29
29
|
"label": [1],
|
|
@@ -11,11 +11,12 @@ import { ComponentClickEvent, ComponentErrorEvent, ComponentFormStepCompleteEven
|
|
|
11
11
|
import { Placement, PositioningStrategy } from "@popperjs/core";
|
|
12
12
|
import { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
|
|
13
13
|
import { IPaymentMethodMetadata } from "./api/PaymentMethod";
|
|
14
|
+
import { BillingFormFields as BillingFormFields1, FormController } from "./components";
|
|
14
15
|
import { DisputeEvidenceDocument } from "./api/DisputeEvidenceDocument";
|
|
15
16
|
import { DisputeResponseFormStep } from "./components/dispute-management/dispute-response/dispute-response-form-types";
|
|
16
17
|
import { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
|
|
17
18
|
import { BillingFormFields } from "./components/checkout/billing-form/billing-form-schema";
|
|
18
|
-
import { FormController } from "./ui-components/form/form";
|
|
19
|
+
import { FormController as FormController1 } from "./ui-components/form/form";
|
|
19
20
|
import { Dispute, IDispute } from "./api/Dispute";
|
|
20
21
|
import { CheckoutChangedEventDetail, SelectedPaymentMethod } from "./components/modular-checkout/ModularCheckout";
|
|
21
22
|
import { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
@@ -28,11 +29,12 @@ export { ComponentClickEvent, ComponentErrorEvent, ComponentFormStepCompleteEven
|
|
|
28
29
|
export { Placement, PositioningStrategy } from "@popperjs/core";
|
|
29
30
|
export { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
|
|
30
31
|
export { IPaymentMethodMetadata } from "./api/PaymentMethod";
|
|
32
|
+
export { BillingFormFields as BillingFormFields1, FormController } from "./components";
|
|
31
33
|
export { DisputeEvidenceDocument } from "./api/DisputeEvidenceDocument";
|
|
32
34
|
export { DisputeResponseFormStep } from "./components/dispute-management/dispute-response/dispute-response-form-types";
|
|
33
35
|
export { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
|
|
34
36
|
export { BillingFormFields } from "./components/checkout/billing-form/billing-form-schema";
|
|
35
|
-
export { FormController } from "./ui-components/form/form";
|
|
37
|
+
export { FormController as FormController1 } from "./ui-components/form/form";
|
|
36
38
|
export { Dispute, IDispute } from "./api/Dispute";
|
|
37
39
|
export { CheckoutChangedEventDetail, SelectedPaymentMethod } from "./components/modular-checkout/ModularCheckout";
|
|
38
40
|
export { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
@@ -360,7 +362,7 @@ export namespace Components {
|
|
|
360
362
|
* and the other one is meant to be just read only.
|
|
361
363
|
*/
|
|
362
364
|
interface JustifiBusinessCoreInfo {
|
|
363
|
-
"formController":
|
|
365
|
+
"formController": FormController1;
|
|
364
366
|
}
|
|
365
367
|
interface JustifiBusinessCoreInfoFormStep {
|
|
366
368
|
"allowOptionalFields"?: boolean;
|
|
@@ -414,7 +416,7 @@ export namespace Components {
|
|
|
414
416
|
}
|
|
415
417
|
interface JustifiBusinessRepresentativeFormInputs {
|
|
416
418
|
"errors": any;
|
|
417
|
-
"formController":
|
|
419
|
+
"formController": FormController1;
|
|
418
420
|
"representativeDefaultValue": any;
|
|
419
421
|
}
|
|
420
422
|
interface JustifiBusinessRepresentativeFormStep {
|
|
@@ -634,7 +636,7 @@ export namespace Components {
|
|
|
634
636
|
"authToken": string;
|
|
635
637
|
"checkoutId": string;
|
|
636
638
|
"setSelectedPaymentMethod": (paymentMethod: SelectedPaymentMethod) => Promise<void>;
|
|
637
|
-
"submitCheckout": (submitCheckoutArgs?:
|
|
639
|
+
"submitCheckout": (submitCheckoutArgs?: BillingFormFields1) => Promise<void>;
|
|
638
640
|
"validate": () => Promise<boolean>;
|
|
639
641
|
}
|
|
640
642
|
interface JustifiOrderTerminals {
|
|
@@ -887,7 +889,7 @@ export namespace Components {
|
|
|
887
889
|
"authToken"?: string;
|
|
888
890
|
"disableBankAccount"?: boolean;
|
|
889
891
|
"disableCreditCard"?: boolean;
|
|
890
|
-
"fillBillingForm": (fields:
|
|
892
|
+
"fillBillingForm": (fields: BillingFormFields1) => Promise<void>;
|
|
891
893
|
"hideBankAccountBillingForm"?: boolean;
|
|
892
894
|
"hideCardBillingForm"?: boolean;
|
|
893
895
|
"hideSubmitButton"?: boolean;
|
|
@@ -3313,7 +3315,7 @@ declare namespace LocalJSX {
|
|
|
3313
3315
|
* and the other one is meant to be just read only.
|
|
3314
3316
|
*/
|
|
3315
3317
|
interface JustifiBusinessCoreInfo {
|
|
3316
|
-
"formController"?:
|
|
3318
|
+
"formController"?: FormController1;
|
|
3317
3319
|
}
|
|
3318
3320
|
interface JustifiBusinessCoreInfoFormStep {
|
|
3319
3321
|
"allowOptionalFields"?: boolean;
|
|
@@ -3376,7 +3378,7 @@ declare namespace LocalJSX {
|
|
|
3376
3378
|
}
|
|
3377
3379
|
interface JustifiBusinessRepresentativeFormInputs {
|
|
3378
3380
|
"errors"?: any;
|
|
3379
|
-
"formController"?:
|
|
3381
|
+
"formController"?: FormController1;
|
|
3380
3382
|
"representativeDefaultValue"?: any;
|
|
3381
3383
|
}
|
|
3382
3384
|
interface JustifiBusinessRepresentativeFormStep {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as i}from"./p-qipqIMyC.js";import{c as a,J as s}from"./p-
|
|
1
|
+
import{r as e,c as t,h as i}from"./p-qipqIMyC.js";import{c as a,J as s}from"./p-BkeJbw_O.js";import{c as d}from"./p-CrQgyTRz.js";import{d as o}from"./p-RvUQ__Pq.js";import{S as c}from"./p-CLQx9p9q.js";import"./p-CZfYo5-1.js";import{P as h}from"./p-DCIW8z1f.js";import"./p-C1kJMZIt.js";import"./p-BUa0YOaw.js";import"./p-Bp_QFeog.js";import"./p-DsAwPf2y.js";import"./p-BHf9IqGw.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-c4Mh3ZZ_.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const r=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event"),this.loadedEvent=t(this,"loaded"),this.submitEvent=t(this,"submit-event"),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.isSubmitting=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){a(),this.analytics=new s(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){this.isSubmitting=!1}checkoutError(e){this.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=e.detail.availablePaymentMethodTypes}async fillBillingForm(e){var t;d.billingFormFields=e,null===(t=this.tokenizePaymentMethodRef)||void 0===t||t.fillBillingForm(e)}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){d.checkoutId=this.checkoutId,d.authToken=this.authToken,d.disableCreditCard=this.disableCreditCard,d.disableBankAccount=this.disableBankAccount,d.disableBnpl=this.disableBnpl,d.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;this.isSubmitting=!0,null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(d.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return i(c,{key:"8967ceca5773c0f5913b893f8b626ef2eb58abe8"},i("justifi-modular-checkout",{key:"74294e37e359e68601699a543751c0835f074d47",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId},i("div",{key:"9daf1561a627f0a84dd7390c7d44ffab15a4a746",class:"row gy-3 jfi-checkout-core"},i("div",{key:"1f45fa61d3fa5f3e21d3086123aef3137734a363",class:"col-12",part:o},i("justifi-header",{key:"812d922d688bb5e00eaff3f967350b705454a06c",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"9c8cfe346833339197f3922dcbee7230308064e6"},i("justifi-checkout-summary",{key:"8b6410ed811ff2793167ab8b21954d6bbb52c3d8"}))),i("div",{key:"87413afe99372a8523b25b8e3fe14b17666328ac",class:"col-12 mt-4"},i("slot",{key:"f8342527afd4e86abda3275db447e82f72e13e03",name:"insurance"})),i("div",{key:"97b39e4f03829ea5d1d29b2b1be3066ff4100ac7",class:"col-12 mt-4"},i("justifi-header",{key:"2b3196519d949d534595767879102951caad5788",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"c40bbfddfb990feda4aa75ab4caa38b4376b4a04",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"c323e2e892985b02a607253355b0b72eb5bfe9e9",class:"d-flex flex-column"},i("section",{key:"c85bb72343b256d072a086a4974167d421154023"},i("div",{key:"f4cb5c3b7fa4facbff7882b769da2bf9b9d01811"},i("justifi-saved-payment-methods",{key:"087cbde10cb23af391eb848f53a3732cdd528cd0"}),this.availablePaymentMethods.includes(h.SEZZLE)&&i("justifi-radio-list-item",{key:"35c7b0484cbec62b115aa8851c8266cd4d39b2b6",name:"paymentMethodType",value:h.SEZZLE,checked:(null===(e=null==d?void 0:d.selectedPaymentMethod)||void 0===e?void 0:e.type)===h.SEZZLE,label:i("justifi-sezzle-payment-method",{ref:e=>this.sezzlePaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.sezzlePaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),this.availablePaymentMethods.includes(h.PLAID)&&i("justifi-radio-list-item",{key:"a7ec30342cbb3453b460e72d60a1c726e3a3efa3",name:"paymentMethodType",value:h.PLAID,checked:(null===(t=null==d?void 0:d.selectedPaymentMethod)||void 0===t?void 0:t.type)===h.PLAID,label:i("justifi-plaid-payment-method",{ref:e=>this.plaidPaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.plaidPaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),i("justifi-tokenize-payment-method",{key:"590b2085e9aee9a06f5ee1755aeeb41aa3448699",ref:e=>this.tokenizePaymentMethodRef=e,authToken:this.authToken,accountId:d.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:!0,paymentMethodGroupId:d.paymentMethodGroupId}))))),i("div",{key:"b725e958faa55605e4542f59d461780eeced96fe",class:"mt-4"},i("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"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disableBnpl:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{r as justifi_checkout}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-qipqIMyC.js";import"./p-Bp_QFeog.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-c4Mh3ZZ_.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c,d as o,e as n,f as p,g as d,h as u,i as f,j as m,k as b,l as g}from"./p-BZ7C9duj.js";import{T as y}from"./p-CZfYo5-1.js";import{c as j,a as k}from"./p-CzPUMw00.js";import{o as l,g as C}from"./p-DyDHaG6n.js";import"./p-DsAwPf2y.js";import"./p-BHf9IqGw.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-xY5RkFuA.js";import"./p-D--yCspA.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:y.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:y.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:y.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new a(this.checkouts,this.columns,j,k),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"c411d1c3a54fd8a331f0c5cdbae344e231482c0f"},e(r,{key:"21774546f3500612497943869017fa7c712dff7e"},e(h,{key:"c4e745ead905a393ff1b0cd0fba23db2fcc03ad8"},e(c,{key:"88063d0baedd1febe0febcab1ccefc512accfd7d"},this.checkoutsTable.columnData.map((t=>t)))),e(o,{key:"e2534bc13d9e015f127c5396bbe73545d92536b4"},e(n,{key:"0f0958fa87403652880222365cf7f88dd33335cc",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"588bb80d518892791ed2134dd5405940e7c28db7",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(d,{key:"219cce1137232c64b7c9188042c4aaca7e0e91b6",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(u,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"16978b3be698ceabd1d19b9eaa3f85c01a862b83"},e(m,{key:"cd26e5b6f03dff77e09dfb4f9962e7601b2e40dc"},e(b,{key:"508008cf682b393549a839453d4b4c2eee1f67a4",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"688702c35e666def509ccb77b88b88ddd5e0d58a",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as checkouts_list_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as
|
|
1
|
+
import{r as t,c as s,h as e,H as i}from"./p-qipqIMyC.js";import{I as a}from"./p-Ce_F4E0f.js";import{C as r}from"./p-B-iV5cYd.js";import{a2 as h,l as o,U as n,b as l,T as c,a as f}from"./p-RvUQ__Pq.js";import{F as d}from"./p-oGKW57R8.js";import{F as p}from"./p-DCMrHeJI.js";import"./p-CZfYo5-1.js";const m=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.maskOptions=r.DECIMAL,this.initializeIMask=()=>{this.textInput&&(this.imask=a(this.textInput,this.maskOptions),this.imask.on("accept",(()=>{const t=this.imask.unmaskedValue;this.inputHandler(this.name,t),this.formControlInput.emit({name:this.name,value:t})})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.formControlInput.emit({name:s,value:this.imask.unmaskedValue})},this.updateInput=t=>{this.imask&&(this.imask.value=String(t))}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.initializeIMask(),this.updateInput(this.defaultValue)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}get inputPart(){let t=h;return this.errorText&&(t=l),this.disabled&&(t=c),this.isFocused&&(t=f),t}render(){return e(i,{key:"59e5e4d46e7d4ece898464d846505756611f6635"},e("div",{key:"e82201d6777584666ec5ca04ad9e02b83fa956c0",class:"form-group d-flex flex-column"},e("label",{key:"9bbb22bb201d3db07670e4f26521593ff229f583",part:o,class:"form-label",htmlFor:this.name},this.label),e("div",{key:"61909b4796f78e22d9e6508d9257cdf16220e675",class:"input-group"},e("span",{key:"152a4f1a6323e55bf6f48aa25353939569acc419",class:"input-group-text",part:n},"$"),e("input",{key:"cc8055c02a4ccb4f63553f45b5ded4ee3d8cf972",ref:t=>this.textInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.inputPart,class:this.errorText?"form-control monetary is-invalid":"form-control monetary",type:"text",disabled:this.disabled})),e(d,{key:"776dfb4a9d74342ba139dda6706af8e60b4700fc",helpText:this.helpText,name:this.name}),e(p,{key:"74e503b7e525aeeb994b1ae94941f07365d2460e",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{m as form_control_monetary_provisioning}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as a,c as s,g as r}from"./p-qipqIMyC.js";import"./p-Bp_QFeog.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{E as i}from"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as o}from"./p-yH3TC3ZQ.js";import"./p-XYgDHrVL.js";import{n as
|
|
1
|
+
import{r as e,h as t,H as a,c as s,g as r}from"./p-qipqIMyC.js";import"./p-Bp_QFeog.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{E as i}from"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as o}from"./p-yH3TC3ZQ.js";import"./p-XYgDHrVL.js";import{n as l}from"./p-BnjCmwMr.js";import{s as c,e as d,j as n}from"./p-BHf9IqGw.js";import{Y as f,C as b,aj as h,N as p,ak as m,c as u,l as y,b as k,T as _,a as v}from"./p-RvUQ__Pq.js";import{S as x}from"./p-Xv8DuU3Y.js";import"./p-CZfYo5-1.js";import{F as j}from"./p-DCMrHeJI.js";import"./p-DsAwPf2y.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const g=class{constructor(t){e(this,t)}render(){return t("div",{key:"23f5fa6b191b3feea7677a85a421002642a86f50",class:"row gy-3"},t("div",{key:"da9d9698f15aeb4bb05baef8fb63c630fcff8a82",class:"col-12"},t("form-control-file",{key:"b84a8ec1753210f74989c04b5520f0e94c5a083d",name:"voided_check",label:"Voided Check",documentType:i.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"06d442df900406f122970bde6b2b293f2c9080ee",class:"col-12"},t("form-control-file",{key:"b3dc1d48900c5932c4d59f8b31a323193f0e86b4",name:"bank_statement",label:"Bank Statement",documentType:i.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},T=class{constructor(t){e(this,t)}render(){return t("div",{key:"da4dc9523bca84cdd02f7e5d47e513c426ed90fd",class:"row gy-3"},t("div",{key:"b625a293dec704cbbb132469fdbc8c5d99a660e1",class:"col-12"},t("form-control-text",{key:"b41460ddc605f73faf71233ccbbef7e34e690e5a",name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"e5560bcdba399baa2e54441436ef5c67936e9fef",class:"col-12"},t("form-control-text",{key:"18cd16931899f724fd92cb89f1b8d4cd41c5354c",name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"3bb589db98e5d65022576b602bda41f36e3a90d5",class:"col-12"},t("form-control-text",{key:"c870513b8895add114d5ec588561fa6f33a63514",name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"1783e7b4af2b012338fe2e1b4f1faa9b5e086bcd",class:"col-12"},t("form-control-select",{key:"6a9af0f6edeae133dce04b7f829abb802db4ac83",name:"account_type",label:"Account Type",options:o,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"3c3ffced96f67320b4c580be6f28dd8ef5d2c109",class:"col-12"},t("form-control-text",{key:"e85df115a9de08ad9abb3237f7bf6c6d23c84150",name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:l,disabled:this.formDisabled,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),t("div",{key:"5a25cb25160aff24d1f62df2115dbd248709141e",class:"col-12"},t("form-control-text",{key:"dfdf7dce470efb8eea65aa6daf562d190963bace",name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:l,disabled:this.formDisabled,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},H=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(x,{height:"50px"}):this.documents.length?t(a,null,t("div",{class:"card",part:f},t("div",{class:"card-body"},t("h5",{class:"card-title",part:b},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:h},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:p,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:p,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,a)=>t("tr",{class:0===a?"border-bottom border-top":"border-bottom"},t("td",{part:m},e.file_name),t("td",{part:m},e.file_type),t("td",{part:m},c(e.document_type)),t("td",{part:m},`${d(e.created_at)} - ${n(e.created_at)}`))))))))),t("hr",null)):null}},w=class{constructor(t){e(this,t),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.fileSelected=s(this,"fileSelected"),this.isFocused=!1,this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.inputHandler(a,t.value),this.formControlInput.emit({name:a,value:t.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=u;return this.errorText&&(e=k),this.disabled&&(e=_),this.isFocused&&(e=v),e}render(){return t(a,{key:"3f6adbe90fc89972562f658958433d77ca9ad67c"},t("div",{key:"522ea5f78109a2717e8b016c16d29c9444ebf0c2",class:"form-group d-flex flex-column"},t("div",{key:"39647185cf2b6fbe4317aa5ae609a971161974a7",class:"d-flex align-items-start gap-2"},t("label",{key:"18d7f1e782c74bfd9a1aad52c70d451e2d7ebdd5",part:y,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"3eab40969bc7d68b195093f7671244a2c1a0f537",helpText:this.helpText})),t("input",{key:"0acb164fc09a23fd8a8937222f527052bb02248e",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),t(j,{key:"03689848a01a3844dcf4480d5f997a3a52338ea1",errorText:this.errorText,name:this.name})))}get el(){return r(this)}};export{g as bank_account_document_form_inputs,T as bank_account_form_inputs,H as business_documents_on_file,w as form_control_file}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t}from"./p-qipqIMyC.js";import{E as a}from"./p-BIPdn2VU.js";import"./p-RvUQ__Pq.js";const i=class{constructor(t){s(this,t)}render(){return t("div",{key:"3c1c4e729711c6676c176a5a04228ec7ebb7acfa"},this.errorMessage?a(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{i as justifi_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as i,h as t}from"./p-qipqIMyC.js";import{c as o,J as e}from"./p-
|
|
1
|
+
import{r as s,c as i,h as t}from"./p-qipqIMyC.js";import{c as o,J as e}from"./p-BkeJbw_O.js";import{C as r,a as p}from"./p-Cjcsf8ku.js";import{m as n,a}from"./p-5aA7gjr5.js";import{B as h}from"./p-B4idKqyn.js";import{A as m}from"./p-BUa0YOaw.js";import"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import"./p-C1kJMZIt.js";import"./p-D2muobcE.js";import"./p-Bp_QFeog.js";import"./p-DsAwPf2y.js";import"./p-BHf9IqGw.js";import"./p-HXpYMWUU.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const u=m();class d{async postProvisioning(s,i,t){return u.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const c=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new e(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new d})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:p.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"6d77016584f204fdc4be5fd554b4eb1639e856ab",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{c as justifi_payment_provisioning}
|