@justifi/webcomponents 4.19.0 → 4.19.1-rc-3
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/dist/cjs/{Analytics-ff013cbc.js → Analytics-1ca4e47e.js} +2 -3
- package/dist/cjs/{business.service-f63650f5.js → business.service-6bb7ac82.js} +5 -6
- package/dist/cjs/{get-payout-csv-f3aee6d0.js → get-payout-csv-1391ff3e.js} +3 -4
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +7 -8
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -5
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +4 -5
- package/dist/cjs/justifi-card-form.cjs.entry.js +4 -5
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -4
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +11 -9
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +1 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +4 -5
- package/dist/cjs/{package-cb0f8cb1.js → package-bc2632e4.js} +2 -4
- package/dist/cjs/{payment.service-0a64f9cd.js → payment.service-dfcfa19b.js} +2 -3
- package/dist/collection/api/services/analytics.service.js +1 -2
- package/dist/collection/api/services/business.service.js +5 -6
- package/dist/collection/api/services/checkout.service.js +2 -3
- package/dist/collection/api/services/insurance.service.js +2 -3
- package/dist/collection/api/services/payment.service.js +2 -3
- package/dist/collection/api/services/payout.service.js +3 -4
- package/dist/collection/api/services/provision.service.js +2 -4
- package/dist/collection/api/services/reports.service.js +1 -2
- package/dist/collection/components/bank-account-form/bank-account-form.js +3 -4
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -3
- package/dist/collection/components/card-form/card-form.js +3 -4
- package/dist/collection/components/checkout/checkout-core.js +4 -4
- package/dist/collection/components/checkout/new-payment-method.js +6 -4
- package/dist/collection/components/checkout/payment-method-options.js +3 -4
- package/dist/collection/components/checkout/saved-payment-method.js +3 -4
- package/dist/collection/components/checkout/sezzle-payment-method.js +3 -4
- package/dist/collection/components/payment-form/payment-form.js +3 -4
- package/dist/collection/components/refund-form/refund-form.js +2 -3
- package/dist/docs.json +8 -8
- package/dist/esm/{Analytics-33b8fa8d.js → Analytics-c51439be.js} +2 -3
- package/dist/esm/{business.service-74bd1212.js → business.service-f45decfc.js} +5 -6
- package/dist/esm/{get-payout-csv-b494abfe.js → get-payout-csv-e784a2ab.js} +3 -4
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +7 -8
- package/dist/esm/justifi-bank-account-form.entry.js +4 -5
- package/dist/esm/justifi-business-details.entry.js +3 -4
- package/dist/esm/justifi-business-form.entry.js +4 -5
- package/dist/esm/justifi-card-form.entry.js +4 -5
- package/dist/esm/justifi-checkout-core.entry.js +3 -3
- package/dist/esm/justifi-checkout.entry.js +4 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -4
- package/dist/esm/justifi-new-payment-method_4.entry.js +11 -9
- package/dist/esm/justifi-owner-form_3.entry.js +1 -2
- package/dist/esm/justifi-payment-details.entry.js +3 -4
- package/dist/esm/justifi-payment-form.entry.js +5 -6
- package/dist/esm/justifi-payment-method-form.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -6
- package/dist/esm/justifi-payments-list.entry.js +3 -4
- package/dist/esm/justifi-payout-details.entry.js +3 -4
- package/dist/esm/justifi-payouts-list.entry.js +3 -4
- package/dist/esm/justifi-refund-form.entry.js +2 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -5
- package/dist/esm/{package-3e407c6d.js → package-09a354e0.js} +2 -4
- package/dist/esm/{payment.service-3ca4a492.js → payment.service-dad5153b.js} +2 -3
- package/dist/globals.d.ts +2 -0
- package/dist/module/Analytics.js +1 -2
- package/dist/module/business-bank-account-form-step.js +2 -3
- package/dist/module/business-document-upload-form-step.js +2 -3
- package/dist/module/business-terms-conditions-form-step.js +2 -3
- package/dist/module/business.service.js +5 -6
- package/dist/module/checkout-core.js +3 -3
- package/dist/module/get-payout-csv.js +3 -4
- package/dist/module/justifi-bank-account-form.js +2 -3
- package/dist/module/justifi-business-form.js +2 -3
- package/dist/module/justifi-card-form.js +2 -3
- package/dist/module/justifi-checkout.js +2 -3
- package/dist/module/justifi-gross-payment-chart.js +1 -2
- package/dist/module/justifi-payment-form.js +3 -4
- package/dist/module/justifi-payment-provisioning.js +2 -3
- package/dist/module/justifi-refund-form.js +2 -3
- package/dist/module/justifi-season-interruption-insurance.js +2 -3
- package/dist/module/new-payment-method.js +5 -3
- package/dist/module/package.js +2 -4
- package/dist/module/payment-method-options.js +2 -3
- package/dist/module/payment.service.js +2 -3
- package/dist/module/saved-payment-method.js +2 -3
- package/dist/module/sezzle-payment-method.js +2 -3
- package/dist/types/components/checkout/new-payment-method.d.ts +1 -0
- package/dist/webcomponents/index.esm.js +1 -0
- package/dist/webcomponents/p-01a404ca.entry.js +44 -0
- package/dist/webcomponents/p-03d35880.entry.js +130 -0
- package/dist/webcomponents/p-06ff0429.entry.js +65 -0
- package/dist/webcomponents/p-08b0fb31.js +41 -1
- package/dist/webcomponents/p-14c91ffd.js +20 -1
- package/dist/webcomponents/p-1a17ea7d.entry.js +1684 -0
- package/dist/webcomponents/p-1ad5995e.js +3599 -1
- package/dist/webcomponents/p-1ff8810b.js +29 -1
- package/dist/webcomponents/p-21aeb013.entry.js +80 -0
- package/dist/webcomponents/p-2338affa.js +213 -1
- package/dist/webcomponents/p-258b1ee2.entry.js +149 -0
- package/dist/webcomponents/p-25d8cd65.entry.js +102 -0
- package/dist/webcomponents/p-29c0b182.js +114 -1
- package/dist/webcomponents/p-2b6c9c4f.js +7 -1
- package/dist/webcomponents/p-2dabeb5a.js +79 -0
- package/dist/webcomponents/p-2eab3c90.js +3052 -1
- package/dist/webcomponents/p-33272d05.entry.js +94 -0
- package/dist/webcomponents/p-3642ad71.entry.js +145 -0
- package/dist/webcomponents/p-387450f6.js +77 -0
- package/dist/webcomponents/p-3e9ef4a8.js +28 -0
- package/dist/webcomponents/p-3fd13ca3.js +52 -1
- package/dist/webcomponents/p-41bc7c5c.entry.js +97 -0
- package/dist/webcomponents/p-4d8b45c6.entry.js +98 -0
- package/dist/webcomponents/p-525db3e8.js +22 -1
- package/dist/webcomponents/p-5482d030.entry.js +21 -0
- package/dist/webcomponents/p-56f6ce4c.js +10 -1
- package/dist/webcomponents/p-576826b1.entry.js +43 -0
- package/dist/webcomponents/p-5968ff8a.js +178 -1
- package/dist/webcomponents/p-5bd7b204.entry.js +75 -0
- package/dist/webcomponents/p-5cb3f0b2.entry.js +261 -0
- package/dist/webcomponents/p-5e70442b.entry.js +74 -0
- package/dist/webcomponents/p-5f835b89.entry.js +606 -0
- package/dist/webcomponents/p-6078a370.js +244 -1
- package/dist/webcomponents/p-68843186.entry.js +73 -0
- package/dist/webcomponents/p-70a2aa74.entry.js +76 -0
- package/dist/webcomponents/p-7582b554.entry.js +18 -0
- package/dist/webcomponents/p-79646550.entry.js +61 -0
- package/dist/webcomponents/p-7c76e67c.entry.js +117 -0
- package/dist/webcomponents/p-7d85af5c.js +16 -1
- package/dist/webcomponents/p-800d31fe.entry.js +162 -0
- package/dist/webcomponents/p-8115b2f4.js +28 -1
- package/dist/webcomponents/p-83125497.js +4027 -1
- package/dist/webcomponents/p-85fc69e5.js +90 -1
- package/dist/webcomponents/p-890088fc.entry.js +298 -0
- package/dist/webcomponents/p-89887332.js +301 -1
- package/dist/webcomponents/p-8df7bde8.js +27 -1
- package/dist/webcomponents/p-8eb774df.entry.js +54 -0
- package/dist/webcomponents/p-9c9c7dac.js +24 -1
- package/dist/webcomponents/p-9f94bbb6.entry.js +118 -0
- package/dist/webcomponents/p-a5a225d9.entry.js +125 -0
- package/dist/webcomponents/p-a5c5821e.entry.js +101 -0
- package/dist/webcomponents/p-a5fb51dc.entry.js +131 -0
- package/dist/webcomponents/p-a6d04afc.js +44 -0
- package/dist/webcomponents/p-ac086069.entry.js +58 -0
- package/dist/webcomponents/p-af244664.js +126 -1
- package/dist/webcomponents/p-b82c146f.entry.js +111 -0
- package/dist/webcomponents/p-b8a03a4b.entry.js +131 -0
- package/dist/webcomponents/p-ba4bae6f.js +12 -1
- package/dist/webcomponents/p-ba5fae28.js +90 -1
- package/dist/webcomponents/p-c636f563.entry.js +791 -0
- package/dist/webcomponents/p-c86c24d2.entry.js +94 -0
- package/dist/webcomponents/p-cb26f708.js +18 -0
- package/dist/webcomponents/p-ce733539.entry.js +99 -0
- package/dist/webcomponents/p-d17aee2b.entry.js +26 -0
- package/dist/webcomponents/p-d5095f6c.entry.js +133 -0
- package/dist/webcomponents/p-d89bad72.js +39 -1
- package/dist/webcomponents/p-dce846bf.js +27 -1
- package/dist/webcomponents/p-df21aaad.js +120 -1
- package/dist/webcomponents/p-e1255160.js +3 -1
- package/dist/webcomponents/p-e333620e.js +34 -1
- package/dist/webcomponents/p-e356f280.entry.js +29 -0
- package/dist/webcomponents/p-e3fab0e2.js +43 -1
- package/dist/webcomponents/p-ec854a3e.entry.js +11053 -0
- package/dist/webcomponents/p-f02b75dc.entry.js +96 -0
- package/dist/webcomponents/p-fad19d75.js +1638 -2
- package/dist/webcomponents/webcomponents.css +362 -4
- package/dist/webcomponents/webcomponents.esm.js +20 -1
- package/package.json +2 -4
- package/dist/cjs/config-ff2dda66.js +0 -15
- package/dist/config.js +0 -11
- package/dist/esm/config-476c7241.js +0 -13
- package/dist/module/config.js +0 -13
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +0 -11
- package/dist/webcomponents/p-07109641.entry.js +0 -1
- package/dist/webcomponents/p-0f7b9555.entry.js +0 -1
- package/dist/webcomponents/p-17e4246f.entry.js +0 -1
- package/dist/webcomponents/p-195f92e9.entry.js +0 -1
- package/dist/webcomponents/p-1a43e355.entry.js +0 -19
- package/dist/webcomponents/p-23014988.entry.js +0 -1
- package/dist/webcomponents/p-25dba252.entry.js +0 -1
- package/dist/webcomponents/p-27981600.entry.js +0 -1
- package/dist/webcomponents/p-301e0493.entry.js +0 -1
- package/dist/webcomponents/p-304dd644.entry.js +0 -1
- package/dist/webcomponents/p-30a493cd.entry.js +0 -1
- package/dist/webcomponents/p-462dc522.entry.js +0 -1
- package/dist/webcomponents/p-487b72a8.entry.js +0 -1
- package/dist/webcomponents/p-4abc17f0.entry.js +0 -1
- package/dist/webcomponents/p-4b4580dd.js +0 -1
- package/dist/webcomponents/p-52021fa1.entry.js +0 -1
- package/dist/webcomponents/p-53e64f15.entry.js +0 -1
- package/dist/webcomponents/p-60a370fc.entry.js +0 -1
- package/dist/webcomponents/p-623a4479.entry.js +0 -1
- package/dist/webcomponents/p-62b32c4c.entry.js +0 -1
- package/dist/webcomponents/p-63acf322.js +0 -1
- package/dist/webcomponents/p-6f03b35a.entry.js +0 -1
- package/dist/webcomponents/p-75b4daef.js +0 -1
- package/dist/webcomponents/p-8603348a.js +0 -1
- package/dist/webcomponents/p-8c1e981b.entry.js +0 -1
- package/dist/webcomponents/p-8e541a32.entry.js +0 -1
- package/dist/webcomponents/p-9279aa49.entry.js +0 -1
- package/dist/webcomponents/p-96b42e7d.entry.js +0 -1
- package/dist/webcomponents/p-99022846.entry.js +0 -1
- package/dist/webcomponents/p-ae263544.js +0 -1
- package/dist/webcomponents/p-b16dfd5d.entry.js +0 -1
- package/dist/webcomponents/p-bbed6107.entry.js +0 -1
- package/dist/webcomponents/p-bc92235c.entry.js +0 -1
- package/dist/webcomponents/p-be39c802.entry.js +0 -1
- package/dist/webcomponents/p-c4b87db2.entry.js +0 -1
- package/dist/webcomponents/p-c9f8f7ec.entry.js +0 -1
- package/dist/webcomponents/p-cd7105dd.entry.js +0 -1
- package/dist/webcomponents/p-d101c5db.js +0 -1
- package/dist/webcomponents/p-d1fbeae5.entry.js +0 -1
- package/dist/webcomponents/p-d8355f91.entry.js +0 -1
- package/dist/webcomponents/p-e2c88817.entry.js +0 -1
- package/dist/webcomponents/p-e31f0f3e.entry.js +0 -1
- package/dist/webcomponents/p-e7067ef2.entry.js +0 -1
- package/dist/webcomponents/p-f0866375.entry.js +0 -1
- package/dist/webcomponents/p-fb58feb5.entry.js +0 -1
- package/dist/webcomponents/p-fe33151d.entry.js +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as config } from './config.js';
|
|
3
2
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
4
3
|
import { d as defineCustomElement$2 } from './payment-method-form.js';
|
|
5
4
|
|
|
@@ -12,7 +11,7 @@ const BankAccountForm = /*@__PURE__*/ proxyCustomElement(class BankAccountForm e
|
|
|
12
11
|
this.bankAccountFormTokenized = createEvent(this, "bankAccountFormTokenize", 7);
|
|
13
12
|
this.bankAccountFormValidated = createEvent(this, "bankAccountFormValidate", 7);
|
|
14
13
|
this.validationMode = undefined;
|
|
15
|
-
this.iframeOrigin =
|
|
14
|
+
this.iframeOrigin = undefined;
|
|
16
15
|
this.internalStyleOverrides = undefined;
|
|
17
16
|
}
|
|
18
17
|
readyHandler(event) {
|
|
@@ -64,7 +63,7 @@ const BankAccountForm = /*@__PURE__*/ proxyCustomElement(class BankAccountForm e
|
|
|
64
63
|
return this.childRef.resize();
|
|
65
64
|
}
|
|
66
65
|
render() {
|
|
67
|
-
return (h("justifi-payment-method-form", { key: '
|
|
66
|
+
return (h("justifi-payment-method-form", { key: '646e392c1a9ed38e73780ed6a01b6f019767794c', ref: el => {
|
|
68
67
|
if (el) {
|
|
69
68
|
this.childRef = el;
|
|
70
69
|
}
|
|
@@ -9,7 +9,6 @@ import './Pagination.js';
|
|
|
9
9
|
import './Payment.js';
|
|
10
10
|
import './Payout.js';
|
|
11
11
|
import { a as parseBusiness } from './payload-parsers.js';
|
|
12
|
-
import { c as config } from './config.js';
|
|
13
12
|
import { a as BusinessFormServerErrors, b as BusinessFormClickActions } from './business-form-types.js';
|
|
14
13
|
import { a as Business } from './Business.js';
|
|
15
14
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
@@ -95,7 +94,7 @@ const BusinessForm = /*@__PURE__*/ proxyCustomElement(class BusinessForm extends
|
|
|
95
94
|
if (!this.businessId)
|
|
96
95
|
console.error(missingBusinessIdMessage);
|
|
97
96
|
this.formController = new FormController(businessFormSchema);
|
|
98
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
97
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
|
|
99
98
|
this.fetchData();
|
|
100
99
|
}
|
|
101
100
|
disconnectedCallback() {
|
|
@@ -123,7 +122,7 @@ const BusinessForm = /*@__PURE__*/ proxyCustomElement(class BusinessForm extends
|
|
|
123
122
|
this.instantiateBusiness(response.data);
|
|
124
123
|
}
|
|
125
124
|
render() {
|
|
126
|
-
return (h(StyledHost, { key: '
|
|
125
|
+
return (h(StyledHost, { key: '8fb79d577c13246fcf3ec1ee8460713fee07d01a', exportparts: "label,input,input-invalid" }, h("form", { key: '1fe23a8cc8714aee257b6c73c6b7b096d684ea1c', onSubmit: this.validateAndSubmit }, h("div", { key: 'e501f6963ed5bfd9eb80f67df13108289db6eba7', class: "row gap-3" }, h("h1", { key: 'f81f22704bda1480c467b872cd3fd309505b0e94' }, this.title), h("form-alert", { key: '15b2ff75d4db6447bfd1892542e8e972ede0ac7e', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'fd6a375fd187426940df3f28262be7aec3fedbe5', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'd16818a2124cb04dd5a5e84ea40639991fb04a80', formController: this.formController })), h("div", { key: 'd48b04718cf938484cf65cc956bf798f44ed17a7', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '3a2bc6babfe8a0a265b2a7f9e7bea1abebd3eb43', formController: this.formController })), h("div", { key: '5c4d5d1fa1e2aba32f42c2bb9e97c0d796ecf709', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: 'c888fb627380d05302cb106c5642e39b1f2652fa', formController: this.formController })), h("div", { key: '623e94d84976cfe29f4501a781c750d1bb537605', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '594c893c0976b58a309679a031f6f1c787e66f48', formController: this.formController })), h("div", { key: '9fbc36ed183b1ebf171da14276092195c7aaf3a9', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: 'a60da6fdda5193d3c41c589b00b040c05ae425ac', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
|
|
127
126
|
}
|
|
128
127
|
static get style() { return JustifiBusinessFormStyle0; }
|
|
129
128
|
}, [1, "justifi-business-form", {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as config } from './config.js';
|
|
3
2
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
4
3
|
import { d as defineCustomElement$2 } from './payment-method-form.js';
|
|
5
4
|
|
|
@@ -12,7 +11,7 @@ const CardForm = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLEle
|
|
|
12
11
|
this.cardFormTokenized = createEvent(this, "cardFormTokenize", 7);
|
|
13
12
|
this.cardFormValidated = createEvent(this, "cardFormValidate", 7);
|
|
14
13
|
this.validationMode = undefined;
|
|
15
|
-
this.iframeOrigin =
|
|
14
|
+
this.iframeOrigin = undefined;
|
|
16
15
|
this.singleLine = false;
|
|
17
16
|
this.internalStyleOverrides = undefined;
|
|
18
17
|
}
|
|
@@ -65,7 +64,7 @@ const CardForm = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLEle
|
|
|
65
64
|
return this.childRef.resize();
|
|
66
65
|
}
|
|
67
66
|
render() {
|
|
68
|
-
return (h("justifi-payment-method-form", { key: '
|
|
67
|
+
return (h("justifi-payment-method-form", { key: 'cc0ad5d8a262ff5c8422d247caed469a8dea3488', ref: el => {
|
|
69
68
|
if (el) {
|
|
70
69
|
this.childRef = el;
|
|
71
70
|
}
|
|
@@ -5,7 +5,6 @@ import { A as Api } from './Api.js';
|
|
|
5
5
|
import './Pagination.js';
|
|
6
6
|
import './Payment.js';
|
|
7
7
|
import './Payout.js';
|
|
8
|
-
import { c as config } from './config.js';
|
|
9
8
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
10
9
|
import { d as defineCustomElement$d } from './form-control-error-text2.js';
|
|
11
10
|
import { d as defineCustomElement$c } from './form-control-help-text2.js';
|
|
@@ -77,7 +76,7 @@ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ pa
|
|
|
77
76
|
class CheckoutService {
|
|
78
77
|
async fetchCheckout(authToken, checkoutId) {
|
|
79
78
|
const endpoint = `checkouts/${checkoutId}`;
|
|
80
|
-
return Api({ authToken, apiOrigin:
|
|
79
|
+
return Api({ authToken, apiOrigin: undefined }).get(endpoint);
|
|
81
80
|
}
|
|
82
81
|
async complete(authToken, checkoutId, payment) {
|
|
83
82
|
const endpoint = `checkouts/${checkoutId}/complete`;
|
|
@@ -87,7 +86,7 @@ class CheckoutService {
|
|
|
87
86
|
if (payment.payment_token) {
|
|
88
87
|
payload.payment_token = payment.payment_token;
|
|
89
88
|
}
|
|
90
|
-
return Api({ authToken, apiOrigin:
|
|
89
|
+
return Api({ authToken, apiOrigin: undefined }).post(endpoint, JSON.stringify(payload));
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
92
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as config } from './config.js';
|
|
3
2
|
import { A as Api } from './Api.js';
|
|
4
3
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
|
|
5
4
|
import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
|
|
@@ -9,7 +8,7 @@ import { d as defineCustomElement$2 } from './gross-payment-chart-core2.js';
|
|
|
9
8
|
|
|
10
9
|
class ReportsService {
|
|
11
10
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
12
|
-
const api = Api({ authToken: authToken, apiOrigin:
|
|
11
|
+
const api = Api({ authToken: authToken, apiOrigin: undefined });
|
|
13
12
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
14
13
|
return api.get(endpoint);
|
|
15
14
|
}
|
|
@@ -3,7 +3,6 @@ import './Pagination.js';
|
|
|
3
3
|
import { P as PaymentMethodTypes } from './Payment.js';
|
|
4
4
|
import './Payout.js';
|
|
5
5
|
import { l as loadFontsOnParent } from './utils2.js';
|
|
6
|
-
import { c as config } from './config.js';
|
|
7
6
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
|
|
8
7
|
import { g as getErrorMessage } from './utils3.js';
|
|
9
8
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
@@ -125,15 +124,15 @@ const PaymentForm = /*@__PURE__*/ proxyCustomElement(class PaymentForm extends H
|
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
126
|
render() {
|
|
128
|
-
return (h(StyledHost, { key: '
|
|
127
|
+
return (h(StyledHost, { key: '8cb6e3903a0045fbffed5f17dc29aacc6b57ad7f' }, h("form", { key: '4e8f00c3d29c0db0bc99fd79da46abe7c40e3e30', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '344a1356f6f482493a35015c32f8e9a9b4cc8a80', class: "col-12" }, h("justifi-payment-method-selector", { key: '36b9dd7a9bc8336b4bef0d12f56c811effbc0a0b', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: '225a260f817f9dd02a7f0a5b25562179ab80f7de', class: "col-12" }, h("justifi-payment-method-form", { key: '52e2bf20b265cc96ab556571a323370cc27ac278', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: undefined, ref: el => {
|
|
129
128
|
if (el) {
|
|
130
129
|
this.paymentMethodFormRef = el;
|
|
131
130
|
}
|
|
132
|
-
} })), h("div", { key: '
|
|
131
|
+
} })), h("div", { key: '433a8ac42c0eec9180e37da222da1dbb1112e48e', class: "col-12" }, h("justifi-billing-form", { key: '4f24f1c8b4083e2d9e5bb2272d32d20bb5cc225d', legend: "Billing Info", ref: el => {
|
|
133
132
|
if (el) {
|
|
134
133
|
this.billingFormRef = el;
|
|
135
134
|
}
|
|
136
|
-
} })), h("slot", { key: '
|
|
135
|
+
} })), h("slot", { key: '9397ae7fdd2677cd61a425fcf5818ae14fabbed0', name: 'insurance' }), h("div", { key: 'db9131f6f35165e69d3b59da7fa25b95f1e46168', class: "col-12" }, h(Button, { key: 'c280836cf6445a7132ff9202a09b6fdac8e29f77', variant: "primary", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, isLoading: this.isLoading, "data-testid": "submit-button", style: { width: '100%' } }, this.submitButtonText || 'Submit')))));
|
|
137
136
|
}
|
|
138
137
|
static get style() { return JustifiPaymentFormStyle0; }
|
|
139
138
|
}, [1, "justifi-payment-form", {
|
|
@@ -3,7 +3,6 @@ import { J as JustifiAnalytics } from './Analytics.js';
|
|
|
3
3
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
|
|
4
4
|
import { m as makeGetBusiness, e as makePostProvisioning } from './payment-provisioning-actions.js';
|
|
5
5
|
import { B as BusinessService } from './business.service.js';
|
|
6
|
-
import { c as config } from './config.js';
|
|
7
6
|
import { A as Api } from './Api.js';
|
|
8
7
|
import { d as defineCustomElement$y } from './form-control-checkbox2.js';
|
|
9
8
|
import { d as defineCustomElement$x } from './form-control-date2.js';
|
|
@@ -44,9 +43,9 @@ class ProvisionService {
|
|
|
44
43
|
const endpoint = `entities/provisioning`;
|
|
45
44
|
const payload = {
|
|
46
45
|
business_id: businessId,
|
|
47
|
-
product_category: product
|
|
46
|
+
product_category: product,
|
|
48
47
|
};
|
|
49
|
-
return Api({ authToken, apiOrigin:
|
|
48
|
+
return Api({ authToken, apiOrigin: undefined }).post(endpoint, JSON.stringify(payload));
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -4,7 +4,6 @@ import { A as Api } from './Api.js';
|
|
|
4
4
|
import './Pagination.js';
|
|
5
5
|
import './Payment.js';
|
|
6
6
|
import './Payout.js';
|
|
7
|
-
import { c as config } from './config.js';
|
|
8
7
|
import { C as CURRENCY_MASK } from './form-input-masks.js';
|
|
9
8
|
import { S as StyledHost } from './styled-host.js';
|
|
10
9
|
import { d as defineCustomElement$5 } from './form-control-error-text2.js';
|
|
@@ -96,11 +95,11 @@ const RefundForm = /*@__PURE__*/ proxyCustomElement(class RefundForm extends HTM
|
|
|
96
95
|
if (!this.authToken) {
|
|
97
96
|
console.warn('Warning: Missing auth-token.');
|
|
98
97
|
}
|
|
99
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
98
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
|
|
100
99
|
}
|
|
101
100
|
render() {
|
|
102
101
|
var _a;
|
|
103
|
-
return (h(StyledHost, { key: '
|
|
102
|
+
return (h(StyledHost, { key: '8d31f1a9bf936c9e11f8eca1dc55e614b9fa5939' }, h("h1", { key: 'be589740535ee8a5ab6d4af7151d7ae026f08002' }, "Refund"), this.refundInfoText && (h("div", { key: 'b1d40507dec53bac422f99a3d62678c78c0c2038', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: 'cc76014eef0d826bec5ec09355dc5fc747fd2070', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: 'c2efa0f2acdf3faaa6e2974d0535f48799e3cbbd', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '68220114781378f6507651414c87532171bebb31', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: '075545e9837316fe160760e0dba9a5104654dd2b', class: "form-group" }, h("form-control-monetary", { key: 'c8ff8a822d2b74b2f80b33cd6cd2b42ceebbff11', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: '92093284e763466be5138ea6d788145d5d47bd87', class: "form-group" }, h("form-control-text", { key: 'ddf9e221d43d84ad7436261c5755e673224aa82e', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: '58abbbabce09d82da4032ef0e08e6cfac1433153', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '3e703ef633e0d45ba70425dc6d58bcd2d590ce1b', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
|
|
104
103
|
}
|
|
105
104
|
static get style() { return JustifiRefundFormStyle0; }
|
|
106
105
|
}, [1, "justifi-refund-form", {
|
|
@@ -3,7 +3,6 @@ import { A as Api } from './Api.js';
|
|
|
3
3
|
import './Pagination.js';
|
|
4
4
|
import './Payment.js';
|
|
5
5
|
import './Payout.js';
|
|
6
|
-
import { c as config } from './config.js';
|
|
7
6
|
import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
|
|
8
7
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
|
|
9
8
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
@@ -12,11 +11,11 @@ import { d as defineCustomElement$2 } from './season-interruption-insurance-core
|
|
|
12
11
|
class InsuranceService {
|
|
13
12
|
async fetchQuote(authToken, payload) {
|
|
14
13
|
const endpoint = 'insurance/quotes';
|
|
15
|
-
return Api({ authToken, apiOrigin:
|
|
14
|
+
return Api({ authToken, apiOrigin: undefined }).post(endpoint, JSON.stringify(payload));
|
|
16
15
|
}
|
|
17
16
|
async toggleCoverage(authToken, quoteId, payload) {
|
|
18
17
|
const endpoint = `insurance/quotes/${quoteId}/toggle`;
|
|
19
|
-
return Api({ authToken, apiOrigin:
|
|
18
|
+
return Api({ authToken, apiOrigin: undefined }).post(endpoint, JSON.stringify(payload));
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as config } from './config.js';
|
|
3
2
|
import { d as defineCustomElement$7 } from './form-control-error-text2.js';
|
|
4
3
|
import { d as defineCustomElement$6 } from './form-control-help-text2.js';
|
|
5
4
|
import { d as defineCustomElement$5 } from './form-control-select2.js';
|
|
@@ -20,7 +19,7 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
|
|
|
20
19
|
this.onPaymentMethodOptionClick = () => {
|
|
21
20
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
22
21
|
};
|
|
23
|
-
this.iframeOrigin =
|
|
22
|
+
this.iframeOrigin = undefined;
|
|
24
23
|
this.authToken = undefined;
|
|
25
24
|
this.accountId = undefined;
|
|
26
25
|
this.paymentMethodOption = undefined;
|
|
@@ -28,6 +27,9 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
|
|
|
28
27
|
this.isSelected = undefined;
|
|
29
28
|
this.saveNewPaymentMethodChecked = false;
|
|
30
29
|
}
|
|
30
|
+
componentWillLoad() {
|
|
31
|
+
console.log('NewPaymentMethod: componentWillLoad iframeOrigin', this, this.iframeOrigin);
|
|
32
|
+
}
|
|
31
33
|
handleCheckboxChanged(event) {
|
|
32
34
|
this.saveNewPaymentMethodChecked = event.detail;
|
|
33
35
|
}
|
|
@@ -80,7 +82,7 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
|
|
|
80
82
|
}
|
|
81
83
|
render() {
|
|
82
84
|
var _a, _b, _c, _d;
|
|
83
|
-
return (h("div", { key: '
|
|
85
|
+
return (h("div", { key: 'd597ba8b0ac2a650a14a79d002a91ef3edf604a4', class: "payment-method" }, h("div", { key: 'a287f7ffd480f17f0f1093d71b9d02fe3db39e0f', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: 'f53d08d048cc242414fcf6794614ad2334db81bb', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '01712a80a30df19a7b540434532cffb4cb3b61e8', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
84
86
|
}
|
|
85
87
|
}, [0, "justifi-new-payment-method", {
|
|
86
88
|
"iframeOrigin": [1025, "iframe-origin"],
|
package/dist/module/package.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const name = "@justifi/webcomponents";
|
|
2
|
-
const version = "4.19.
|
|
2
|
+
const version = "4.19.1-rc-3";
|
|
3
3
|
const description = "JustiFi Web Components";
|
|
4
4
|
const collection = "dist/collection/collection-manifest.json";
|
|
5
5
|
const main = "dist/index.cjs.js";
|
|
@@ -24,7 +24,6 @@ const scripts = {
|
|
|
24
24
|
generate: "stencil generate",
|
|
25
25
|
test: "TZ=utc stencil test --spec",
|
|
26
26
|
"test:watch": "TZ=utc stencil test --spec --watchAll",
|
|
27
|
-
"test:e2e": "stencil test --e2e",
|
|
28
27
|
"test:file": "stencil test --spec --watch --"
|
|
29
28
|
};
|
|
30
29
|
const dependencies = {
|
|
@@ -45,16 +44,15 @@ const devDependencies = {
|
|
|
45
44
|
"@babel/preset-env": "^7.21.5",
|
|
46
45
|
"@babel/preset-react": "^7.18.6",
|
|
47
46
|
"@babel/preset-typescript": "^7.21.5",
|
|
47
|
+
"@rollup/plugin-replace": "^5.0.7",
|
|
48
48
|
"@stencil/sass": "^3.0.1",
|
|
49
49
|
"@types/jest": "27.0.3",
|
|
50
|
-
"@types/node": "^20.1.4",
|
|
51
50
|
"@types/react": "^18.0.37",
|
|
52
51
|
"@types/react-dom": "^18.0.11",
|
|
53
52
|
dotenv: "^16.3.1",
|
|
54
53
|
jest: "^29.7.0",
|
|
55
54
|
"jest-cli": "^29.7.0",
|
|
56
55
|
"jest-environment-node": "^29.7.0",
|
|
57
|
-
puppeteer: "^21.0.0",
|
|
58
56
|
"ts-jest": "^29.1.2"
|
|
59
57
|
};
|
|
60
58
|
const license = "MIT";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as config } from './config.js';
|
|
3
2
|
import { P as PaymentMethodTypes } from './Payment.js';
|
|
4
3
|
import { d as defineCustomElement$2, P as PaymentMethodOption } from './saved-payment-method.js';
|
|
5
4
|
import { d as defineCustomElement$a } from './form-control-error-text2.js';
|
|
@@ -32,7 +31,7 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
|
|
|
32
31
|
this.insuranceToggled = undefined;
|
|
33
32
|
this.authToken = undefined;
|
|
34
33
|
this.accountId = undefined;
|
|
35
|
-
this.iframeOrigin =
|
|
34
|
+
this.iframeOrigin = undefined;
|
|
36
35
|
this.savedPaymentMethods = [];
|
|
37
36
|
this.paymentAmount = undefined;
|
|
38
37
|
this.selectedPaymentMethodId = undefined;
|
|
@@ -78,7 +77,7 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
|
|
|
78
77
|
}
|
|
79
78
|
render() {
|
|
80
79
|
var _a;
|
|
81
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '7ee40a1bdc9ec15596e870b48cbe7b6bbc20537c' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
82
81
|
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
83
82
|
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
84
83
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
@@ -2,17 +2,16 @@ import { A as Api } from './Api.js';
|
|
|
2
2
|
import './Pagination.js';
|
|
3
3
|
import './Payment.js';
|
|
4
4
|
import './Payout.js';
|
|
5
|
-
import { c as config } from './config.js';
|
|
6
5
|
|
|
7
6
|
class PaymentService {
|
|
8
7
|
async fetchPayments(accountId, authToken, params) {
|
|
9
|
-
const api = Api({ authToken, apiOrigin:
|
|
8
|
+
const api = Api({ authToken, apiOrigin: undefined });
|
|
10
9
|
const endpoint = `account/${accountId}/payments`;
|
|
11
10
|
return api.get(endpoint, params);
|
|
12
11
|
}
|
|
13
12
|
async fetchPayment(paymentId, authToken) {
|
|
14
13
|
const endpoint = `payments/${paymentId}`;
|
|
15
|
-
return Api({ authToken, apiOrigin:
|
|
14
|
+
return Api({ authToken, apiOrigin: undefined }).get(endpoint);
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as config } from './config.js';
|
|
3
2
|
import { j as snakeToCamel } from './utils2.js';
|
|
4
3
|
|
|
5
4
|
class PaymentMethodOption {
|
|
@@ -30,7 +29,7 @@ const SavedPaymentMethod = /*@__PURE__*/ proxyCustomElement(class SavedPaymentMe
|
|
|
30
29
|
this.onPaymentMethodOptionClick = () => {
|
|
31
30
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
32
31
|
};
|
|
33
|
-
this.iframeOrigin =
|
|
32
|
+
this.iframeOrigin = undefined;
|
|
34
33
|
this.paymentMethodOption = undefined;
|
|
35
34
|
this.isSelected = undefined;
|
|
36
35
|
}
|
|
@@ -44,7 +43,7 @@ const SavedPaymentMethod = /*@__PURE__*/ proxyCustomElement(class SavedPaymentMe
|
|
|
44
43
|
;
|
|
45
44
|
render() {
|
|
46
45
|
var _a, _b, _c, _d, _e;
|
|
47
|
-
return (h(Fragment, { key: '
|
|
46
|
+
return (h(Fragment, { key: '247dafc3fe4011c5f6a2202690310eedfa5422c8' }, h("div", { key: '9cfb0b6ca9c10e5cc6173832bb8211ddb1d0ae5b', class: "payment-method" }, h("div", { key: 'd247cc4cf9f7bf43d7153134c66a921b5bfc49bc', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '180c3aa6c4153bccf7cb620b6df49cc288754cd2', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '6ec14d77e8171a1ddb37c686189878a7ebb4b4f4', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, CardBrandLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.brand], " *", (_e = this.paymentMethodOption) === null || _e === void 0 ? void 0 :
|
|
48
47
|
_e.acct_last_four)))));
|
|
49
48
|
}
|
|
50
49
|
}, [0, "justifi-saved-payment-method", {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as config } from './config.js';
|
|
3
2
|
import { a as formatCurrency } from './utils2.js';
|
|
4
3
|
|
|
5
4
|
const sezzleLogo = (h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
|
|
@@ -43,7 +42,7 @@ const SezzlePaymentMethod = /*@__PURE__*/ proxyCustomElement(class SezzlePayment
|
|
|
43
42
|
this.sezzleCheckout = checkout;
|
|
44
43
|
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
45
44
|
};
|
|
46
|
-
this.iframeOrigin =
|
|
45
|
+
this.iframeOrigin = undefined;
|
|
47
46
|
this.bnpl = undefined;
|
|
48
47
|
this.clientId = undefined;
|
|
49
48
|
this.accountId = undefined;
|
|
@@ -69,7 +68,7 @@ const SezzlePaymentMethod = /*@__PURE__*/ proxyCustomElement(class SezzlePayment
|
|
|
69
68
|
}
|
|
70
69
|
render() {
|
|
71
70
|
var _a, _b, _c, _d, _e;
|
|
72
|
-
return (h("div", { key: '
|
|
71
|
+
return (h("div", { key: '1b4e4a142e1e59465e0db5515ee6b0a0b2aac146', class: "payment-method" }, h("script", { key: 'c835bc94836949e2362974eaeefca1f6a579a1a0', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: '051a0392e6353116423f706be48eb266daf12b84', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '6dd0d61f1b8788b45b008f5ac05f8a8b6a6591f2', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: 'caf3429bae616a016f58e141ac5c4493174cf3ef', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, h("div", { key: '0e4ea85fc6fc32a1c35fe0dac86f21ab7f86eb0a' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", { key: '3740565f14b87aa2e4af44b7e2b12d93d6e454c2' }, h("span", { key: 'ca9b6dff0042c41d378b101067d060092234fa7c' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", h("span", { key: '14ab21fd2d9bd612f41d5cd3e175402593012619' }, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { key: '25e08c1e711af0979e14bbb911aedb58f59bc180', class: "fw-bold" }, formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
|
|
73
72
|
}
|
|
74
73
|
}, [0, "justifi-sezzle-payment-method", {
|
|
75
74
|
"iframeOrigin": [1025, "iframe-origin"],
|
|
@@ -13,6 +13,7 @@ export declare class NewPaymentMethod {
|
|
|
13
13
|
paymentMethodOptionSelected: EventEmitter;
|
|
14
14
|
private billingFormRef?;
|
|
15
15
|
private paymentMethodFormRef?;
|
|
16
|
+
componentWillLoad(): void;
|
|
16
17
|
handleCheckboxChanged(event: CustomEvent<boolean>): void;
|
|
17
18
|
fillBillingForm(fields: BillingFormFields): Promise<void>;
|
|
18
19
|
resolvePaymentMethod(insuranceValidation: any): Promise<PaymentMethodPayload>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './p-fad19d75.js';
|
|
2
|
+
|
|
3
|
+
const FileInput = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
this.formControlInput = createEvent(this, "formControlInput", 7);
|
|
7
|
+
this.formControlBlur = createEvent(this, "formControlBlur", 7);
|
|
8
|
+
this.fileSelected = createEvent(this, "fileSelected", 7);
|
|
9
|
+
this.handleFormControlInput = (event) => {
|
|
10
|
+
const target = event.target;
|
|
11
|
+
const name = target.getAttribute('name');
|
|
12
|
+
this.inputHandler(name, target.value);
|
|
13
|
+
this.formControlInput.emit({ name, value: target.value });
|
|
14
|
+
};
|
|
15
|
+
this.changeHandler = () => {
|
|
16
|
+
const inputFileList = this.fileInput.files;
|
|
17
|
+
if (inputFileList) {
|
|
18
|
+
this.fileSelected.emit({
|
|
19
|
+
fileList: inputFileList,
|
|
20
|
+
document_type: this.documentType
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this.files = undefined;
|
|
25
|
+
this.fileString = undefined;
|
|
26
|
+
this.label = undefined;
|
|
27
|
+
this.name = undefined;
|
|
28
|
+
this.helpText = undefined;
|
|
29
|
+
this.errorText = undefined;
|
|
30
|
+
this.multiple = undefined;
|
|
31
|
+
this.documentType = undefined;
|
|
32
|
+
this.inputHandler = undefined;
|
|
33
|
+
this.disabled = undefined;
|
|
34
|
+
}
|
|
35
|
+
componentDidLoad() {
|
|
36
|
+
this.fileInput = this.el.querySelector('input');
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
return (h(Host, { key: 'ed29128c1c4c811aa030697347adb88e0143b031', exportparts: "label,input,input-invalid" }, h("div", { key: '6c924bdbbccae8e98a382a92e54c5b9c288de8d4', class: "form-group d-flex flex-column" }, h("label", { key: 'dbacccea94e39815737683495e3df83b514b79af', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'a7eef53c9fff54eace8c6960b8c62a833d30bfa3', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onBlur: () => this.formControlBlur.emit() }), h("form-control-help-text", { key: 'a5abacb92bdb3fb59d0a2265114e858540f2c4b7', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '6eeeef347237d363d3bc6616d58f19a7f0be7e3c', errorText: this.errorText, name: this.name }))));
|
|
40
|
+
}
|
|
41
|
+
get el() { return getElement(this); }
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { FileInput as form_control_file };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './p-fad19d75.js';
|
|
2
|
+
import { I as IMask } from './p-1ad5995e.js';
|
|
3
|
+
import { S as StateOptions } from './p-6078a370.js';
|
|
4
|
+
import { n as numberOnlyHandler } from './p-8df7bde8.js';
|
|
5
|
+
|
|
6
|
+
const DateInput = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.formControlInput = createEvent(this, "formControlInput", 7);
|
|
10
|
+
this.formControlBlur = createEvent(this, "formControlBlur", 7);
|
|
11
|
+
this.handleFormControlInput = (event) => {
|
|
12
|
+
const target = event.target;
|
|
13
|
+
const name = target.getAttribute('name');
|
|
14
|
+
this.inputHandler(name, target.value);
|
|
15
|
+
this.formControlInput.emit({ name, value: target.value });
|
|
16
|
+
};
|
|
17
|
+
this.label = undefined;
|
|
18
|
+
this.name = undefined;
|
|
19
|
+
this.helpText = undefined;
|
|
20
|
+
this.errorText = undefined;
|
|
21
|
+
this.defaultValue = undefined;
|
|
22
|
+
this.inputHandler = undefined;
|
|
23
|
+
this.disabled = undefined;
|
|
24
|
+
}
|
|
25
|
+
handleDefaultValueChange(newValue) {
|
|
26
|
+
this.updateInput(newValue);
|
|
27
|
+
}
|
|
28
|
+
componentDidLoad() {
|
|
29
|
+
this.updateInput(this.defaultValue);
|
|
30
|
+
}
|
|
31
|
+
updateInput(value) {
|
|
32
|
+
this.dateInput.value = value;
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return (h(Host, { key: 'fa61a426a5a070d951fa425ae42a59add69a9d96', exportparts: "label,input,input-invalid" }, h("label", { key: 'e7679e6a66277a130414b59421b01d1f8e328cf2', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'b3fb4afd3181fec3eef3dfb851ab8965cb7bbfe7', type: "date", ref: el => (this.dateInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: 'dbc9ac76d75521a7d1ee5cc34393471521ffa1c2', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '0f9731278250bde69dd7dee9a7b44e339d919774', errorText: this.errorText, name: this.name })));
|
|
36
|
+
}
|
|
37
|
+
static get watchers() { return {
|
|
38
|
+
"defaultValue": ["handleDefaultValueChange"]
|
|
39
|
+
}; }
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const NumberInputMasked = class {
|
|
43
|
+
constructor(hostRef) {
|
|
44
|
+
registerInstance(this, hostRef);
|
|
45
|
+
this.formControlInput = createEvent(this, "formControlInput", 7);
|
|
46
|
+
this.formControlBlur = createEvent(this, "formControlBlur", 7);
|
|
47
|
+
this.imask = null;
|
|
48
|
+
this.initializeIMask = () => {
|
|
49
|
+
if (!this.textInput)
|
|
50
|
+
return;
|
|
51
|
+
this.imask = IMask(this.textInput, {
|
|
52
|
+
mask: this.mask,
|
|
53
|
+
});
|
|
54
|
+
this.imask.on('accept', () => {
|
|
55
|
+
var _a;
|
|
56
|
+
const rawValue = (_a = this.imask) === null || _a === void 0 ? void 0 : _a.unmaskedValue;
|
|
57
|
+
if (rawValue !== undefined) {
|
|
58
|
+
this.inputHandler(this.name, rawValue);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
this.textInput.addEventListener('blur', () => this.formControlBlur.emit());
|
|
62
|
+
};
|
|
63
|
+
this.handleFormControlInput = (event) => {
|
|
64
|
+
const target = event.target;
|
|
65
|
+
const name = target.getAttribute('name');
|
|
66
|
+
this.formControlInput.emit({ name: name, value: target.value });
|
|
67
|
+
};
|
|
68
|
+
this.updateInput = (newValue) => {
|
|
69
|
+
if (this.imask && newValue) {
|
|
70
|
+
this.imask.value = String(newValue);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
this.label = undefined;
|
|
74
|
+
this.name = undefined;
|
|
75
|
+
this.helpText = undefined;
|
|
76
|
+
this.errorText = undefined;
|
|
77
|
+
this.defaultValue = undefined;
|
|
78
|
+
this.inputHandler = undefined;
|
|
79
|
+
this.mask = undefined;
|
|
80
|
+
this.disabled = undefined;
|
|
81
|
+
}
|
|
82
|
+
handleDefaultValueChange(newValue) {
|
|
83
|
+
this.initializeIMask();
|
|
84
|
+
this.updateInput(newValue);
|
|
85
|
+
}
|
|
86
|
+
disconnectedCallback() {
|
|
87
|
+
var _a;
|
|
88
|
+
(_a = this.imask) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
89
|
+
}
|
|
90
|
+
componentDidLoad() {
|
|
91
|
+
if (this.textInput) {
|
|
92
|
+
this.initializeIMask();
|
|
93
|
+
this.updateInput(this.defaultValue);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
render() {
|
|
97
|
+
return (h(Host, { key: 'e0a59308376055c019233f3d4649c9a37af963d2', exportparts: "label,input,input-invalid" }, h("div", { key: '52d9440421342fed6a4f97b57586a43d517ded7d', class: "form-group d-flex flex-column" }, h("label", { key: '8302a9fa1111d3b72600304cd0b1fb2c6239d895', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '86653c7b7f4efb9609bae2ecf69bd5e396bd342b', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-help-text", { key: '71d4d44ff91d06229ccc22e70bc92e0a2050da90', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'b7d42462ae9165acbde68cf59da07eb956a91fd6', errorText: this.errorText, name: this.name }))));
|
|
98
|
+
}
|
|
99
|
+
static get watchers() { return {
|
|
100
|
+
"defaultValue": ["handleDefaultValueChange"]
|
|
101
|
+
}; }
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const IdentityAddressForm = class {
|
|
105
|
+
constructor(hostRef) {
|
|
106
|
+
registerInstance(this, hostRef);
|
|
107
|
+
this.inputHandler = (name, value) => {
|
|
108
|
+
this.address[name] = value;
|
|
109
|
+
this.address = Object.assign({}, this.address);
|
|
110
|
+
};
|
|
111
|
+
this.handleFormUpdate = undefined;
|
|
112
|
+
this.errors = undefined;
|
|
113
|
+
this.defaultValues = undefined;
|
|
114
|
+
this.address = {};
|
|
115
|
+
}
|
|
116
|
+
handleAddressChange(newValues) {
|
|
117
|
+
this.handleFormUpdate(newValues);
|
|
118
|
+
}
|
|
119
|
+
render() {
|
|
120
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
121
|
+
return (h(Host, { key: 'd090676d3bb1d9de9ae947ff25d94b5985ace914', exportparts: "label,input,input-invalid" }, h("div", { key: '64ddec6db508d27b709ad551f60fe58494631fe3', class: "row gy-3" }, h("div", { key: '7e0f89b7b8d5a466b89efad75498c5d1f2cac8ea', class: "col-12 col-md-8" }, h("form-control-text", { key: 'ea6055fb3457e28666b11b72173ad70b83a87659', 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 })), h("div", { key: '5f6f456c573fb9318e58976decb67274b209fa23', class: "col-12 col-md-4" }, h("form-control-text", { key: '86fffd4641953d0445a7c24d332cda513121b65e', 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: 'e06339cefebe37ae0629631fbc5101c9dbc040a6', class: "col-12" }, h("form-control-text", { key: 'd2af696b33092247b6741c8034aaf12ab51aa878', 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: 'b655a66fb68f059fa91ae5f9f60fdebe0ae04fad', class: "col-12 col-md-6" }, h("form-control-select", { key: '50a65861a5a39daac199571c5a0273340556e476', 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: '30255517e0fa1ede35d7b2525625ebc389c44525', class: "col-12 col-md-6" }, h("form-control-text", { key: 'b7b0a773c7b2dbe05c4bf8e9fc7235a01bf36832', 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: '804e9aa1ca7b4ae167ae64969107ad6352559ed7', class: "col-12" }, h("form-control-select", { key: '1aa3734e10502bc8f1732f386b60135b8a7d94a6', 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,
|
|
122
|
+
// just for now so we skip handling country specificities
|
|
123
|
+
disabled: true })))));
|
|
124
|
+
}
|
|
125
|
+
static get watchers() { return {
|
|
126
|
+
"address": ["handleAddressChange"]
|
|
127
|
+
}; }
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export { DateInput as form_control_date, NumberInputMasked as form_control_number_masked, IdentityAddressForm as justifi_identity_address_form };
|