@justifi/webcomponents 4.19.1-rc → 4.19.1-rc-4
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-0b3db49d.js → Analytics-985bc298.js} +2 -3
- package/dist/cjs/{business.service-c384784d.js → business.service-6bb7ac82.js} +5 -6
- package/dist/cjs/{get-payout-csv-51a02be7.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-39dc73ed.js → package-cbc08fe3.js} +2 -4
- package/dist/cjs/{payment.service-2dbfb83d.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-37556050.js → Analytics-79e20e2d.js} +2 -3
- package/dist/esm/{business.service-eee46ab1.js → business.service-f45decfc.js} +5 -6
- package/dist/esm/{get-payout-csv-4d6b29d8.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-e2a7aa3f.js → package-cf64a48c.js} +2 -4
- package/dist/esm/{payment.service-9005a501.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-02c58e00.entry.js +97 -0
- package/dist/webcomponents/p-03d35880.entry.js +130 -0
- package/dist/webcomponents/p-05f46d63.entry.js +99 -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-1ad5995e.js +3599 -1
- package/dist/webcomponents/p-1ff8810b.js +29 -1
- 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-2eab3c90.js +3052 -1
- package/dist/webcomponents/p-3e9ef4a8.js +28 -0
- package/dist/webcomponents/p-3fd13ca3.js +52 -1
- package/dist/webcomponents/p-492588bf.js +79 -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-5cb3f0b2.entry.js +261 -0
- package/dist/webcomponents/p-5f835b89.entry.js +606 -0
- package/dist/webcomponents/p-6053809a.entry.js +80 -0
- package/dist/webcomponents/p-6078a370.js +244 -1
- package/dist/webcomponents/p-66e4869f.entry.js +75 -0
- package/dist/webcomponents/p-6f1c56d4.entry.js +94 -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-7a70ff09.entry.js +133 -0
- package/dist/webcomponents/p-7bbf73bd.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-9282eab8.js +77 -0
- package/dist/webcomponents/p-96c12fef.entry.js +73 -0
- package/dist/webcomponents/p-9c9c7dac.js +24 -1
- package/dist/webcomponents/p-9f94bbb6.entry.js +118 -0
- package/dist/webcomponents/p-9fd108be.entry.js +74 -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-acbac8b8.entry.js +131 -0
- package/dist/webcomponents/p-adc30a61.entry.js +145 -0
- package/dist/webcomponents/p-af244664.js +126 -1
- package/dist/webcomponents/p-b6e3d7ed.entry.js +94 -0
- package/dist/webcomponents/p-b82c146f.entry.js +111 -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-cb26f708.js +18 -0
- package/dist/webcomponents/p-d17aee2b.entry.js +26 -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-e3e5f95f.entry.js +98 -0
- package/dist/webcomponents/p-e3fab0e2.js +43 -1
- package/dist/webcomponents/p-eb5dbd23.entry.js +1684 -0
- 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-037e67d0.js +0 -15
- package/dist/config.js +0 -11
- package/dist/esm/config-58e393e2.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-023779ee.entry.js +0 -1
- package/dist/webcomponents/p-037763f4.entry.js +0 -1
- 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-1a43e355.entry.js +0 -19
- package/dist/webcomponents/p-1f6afff9.entry.js +0 -1
- package/dist/webcomponents/p-246a6c6a.entry.js +0 -1
- package/dist/webcomponents/p-2d3b1692.entry.js +0 -1
- package/dist/webcomponents/p-30a493cd.entry.js +0 -1
- package/dist/webcomponents/p-32286934.js +0 -1
- package/dist/webcomponents/p-3f5e7e86.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-52021fa1.entry.js +0 -1
- package/dist/webcomponents/p-53e64f15.entry.js +0 -1
- package/dist/webcomponents/p-57e1f2fd.js +0 -1
- package/dist/webcomponents/p-5f095525.entry.js +0 -1
- package/dist/webcomponents/p-62b32c4c.entry.js +0 -1
- package/dist/webcomponents/p-69faef3f.entry.js +0 -1
- package/dist/webcomponents/p-6c078cd1.js +0 -1
- package/dist/webcomponents/p-8e541a32.entry.js +0 -1
- package/dist/webcomponents/p-8f325782.entry.js +0 -1
- package/dist/webcomponents/p-987b5de2.entry.js +0 -1
- package/dist/webcomponents/p-a63fc384.entry.js +0 -1
- package/dist/webcomponents/p-a8220709.entry.js +0 -1
- package/dist/webcomponents/p-ae530971.entry.js +0 -1
- package/dist/webcomponents/p-b7cf49f4.entry.js +0 -1
- package/dist/webcomponents/p-b87b27ba.js +0 -1
- package/dist/webcomponents/p-bbed6107.entry.js +0 -1
- package/dist/webcomponents/p-be39c802.entry.js +0 -1
- package/dist/webcomponents/p-c28db166.js +0 -1
- package/dist/webcomponents/p-c9f8f7ec.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-edac2b43.entry.js +0 -1
- package/dist/webcomponents/p-ef23c091.entry.js +0 -1
- package/dist/webcomponents/p-f06910aa.entry.js +0 -1
- package/dist/webcomponents/p-f0866375.entry.js +0 -1
- package/dist/webcomponents/p-f0a06884.entry.js +0 -1
- package/dist/webcomponents/p-f2f94d9f.entry.js +0 -1
- package/dist/webcomponents/p-f49b7170.entry.js +0 -1
- package/dist/webcomponents/p-fb58feb5.entry.js +0 -1
- package/dist/webcomponents/p-fe33151d.entry.js +0 -1
|
@@ -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 };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
|
|
2
|
+
import { m as makeGetPayoutCSV, P as PayoutService } from './p-a6d04afc.js';
|
|
3
|
+
import './p-56f6ce4c.js';
|
|
4
|
+
import './p-df21aaad.js';
|
|
5
|
+
import { P as Payout } from './p-e3fab0e2.js';
|
|
6
|
+
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './p-14c91ffd.js';
|
|
7
|
+
import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
|
|
8
|
+
import { E as ErrorState } from './p-dce846bf.js';
|
|
9
|
+
import { J as JustifiAnalytics } from './p-9282eab8.js';
|
|
10
|
+
import './p-29c0b182.js';
|
|
11
|
+
import './p-492588bf.js';
|
|
12
|
+
|
|
13
|
+
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
14
|
+
var _a;
|
|
15
|
+
try {
|
|
16
|
+
const response = await service.fetchPayout(id, authToken);
|
|
17
|
+
if (!response.error) {
|
|
18
|
+
const payout = new Payout(response.data);
|
|
19
|
+
onSuccess(payout);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
const errorMessage = getErrorMessage(response.error);
|
|
23
|
+
const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
24
|
+
onError({
|
|
25
|
+
error: errorMessage,
|
|
26
|
+
code,
|
|
27
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
const errorMessage = getErrorMessage(error);
|
|
33
|
+
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
34
|
+
onError({
|
|
35
|
+
error: errorMessage,
|
|
36
|
+
code,
|
|
37
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const PayoutDetails = class {
|
|
43
|
+
constructor(hostRef) {
|
|
44
|
+
registerInstance(this, hostRef);
|
|
45
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
46
|
+
this.handleErrorEvent = (event) => {
|
|
47
|
+
this.errorMessage = event.detail.message;
|
|
48
|
+
this.errorEvent.emit(event.detail);
|
|
49
|
+
};
|
|
50
|
+
this.payoutId = undefined;
|
|
51
|
+
this.authToken = undefined;
|
|
52
|
+
this.getPayout = undefined;
|
|
53
|
+
this.getPayoutCSV = undefined;
|
|
54
|
+
this.errorMessage = null;
|
|
55
|
+
}
|
|
56
|
+
componentWillLoad() {
|
|
57
|
+
this.analytics = new JustifiAnalytics(this);
|
|
58
|
+
this.initializeServices();
|
|
59
|
+
}
|
|
60
|
+
disconnectedCallback() {
|
|
61
|
+
this.analytics.cleanup();
|
|
62
|
+
}
|
|
63
|
+
propChanged() {
|
|
64
|
+
this.initializeServices();
|
|
65
|
+
}
|
|
66
|
+
initializeServices() {
|
|
67
|
+
if (this.payoutId && this.authToken) {
|
|
68
|
+
this.getPayout = makeGetPayoutDetails({
|
|
69
|
+
id: this.payoutId,
|
|
70
|
+
authToken: this.authToken,
|
|
71
|
+
service: new PayoutService()
|
|
72
|
+
});
|
|
73
|
+
this.getPayoutCSV = makeGetPayoutCSV({
|
|
74
|
+
authToken: this.authToken,
|
|
75
|
+
service: new PayoutService()
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
this.errorMessage = 'Failed to load payout details. payoutId or authToken is not provided.';
|
|
80
|
+
this.errorEvent.emit({
|
|
81
|
+
message: this.errorMessage,
|
|
82
|
+
errorCode: ComponentErrorCodes.MISSING_PROPS,
|
|
83
|
+
severity: ComponentErrorSeverity.ERROR
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
if (this.errorMessage) {
|
|
89
|
+
return ErrorState(this.errorMessage);
|
|
90
|
+
}
|
|
91
|
+
return (h("payout-details-core", { getPayout: this.getPayout, getPayoutCSV: this.getPayoutCSV, "onError-event": this.handleErrorEvent }));
|
|
92
|
+
}
|
|
93
|
+
static get watchers() { return {
|
|
94
|
+
"payoutId": ["propChanged"],
|
|
95
|
+
"authToken": ["propChanged"]
|
|
96
|
+
}; }
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export { PayoutDetails as justifi_payout_details };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
|
|
2
|
+
import { d as MapPayoutStatusToBadge, f as formatCurrency, b as formatDate, c as formatTime } from './p-83125497.js';
|
|
3
|
+
import { a as EntityHeadInfo, b as EntityHeadInfoItem, D as DetailSectionTitle, c as DetailItem, C as CodeBlock, E as ErrorState, L as LoadingState } from './p-dce846bf.js';
|
|
4
|
+
import { S as StyledHost } from './p-ba4bae6f.js';
|
|
5
|
+
|
|
6
|
+
const PayoutDetailsCore = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
10
|
+
this.downloadCSV = () => {
|
|
11
|
+
this.getPayoutCSV({
|
|
12
|
+
payoutId: this.payout.id,
|
|
13
|
+
onError: ({ error, code, severity }) => {
|
|
14
|
+
this.errorMessage = error;
|
|
15
|
+
this.errorEvent.emit({
|
|
16
|
+
message: error,
|
|
17
|
+
errorCode: code,
|
|
18
|
+
severity,
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
this.getPayout = undefined;
|
|
24
|
+
this.getPayoutCSV = undefined;
|
|
25
|
+
this.payout = undefined;
|
|
26
|
+
this.loading = true;
|
|
27
|
+
this.errorMessage = null;
|
|
28
|
+
}
|
|
29
|
+
componentWillLoad() {
|
|
30
|
+
if (this.getPayout) {
|
|
31
|
+
this.fetchData();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
getPayoutWatcher() {
|
|
35
|
+
this.fetchData();
|
|
36
|
+
}
|
|
37
|
+
fetchData() {
|
|
38
|
+
this.loading = true;
|
|
39
|
+
this.getPayout({
|
|
40
|
+
onSuccess: (payout) => {
|
|
41
|
+
this.errorMessage = null;
|
|
42
|
+
this.payout = payout;
|
|
43
|
+
this.loading = false;
|
|
44
|
+
},
|
|
45
|
+
onError: ({ error, code, severity }) => {
|
|
46
|
+
this.errorMessage = error;
|
|
47
|
+
this.errorEvent.emit({
|
|
48
|
+
message: error,
|
|
49
|
+
errorCode: code,
|
|
50
|
+
severity,
|
|
51
|
+
});
|
|
52
|
+
this.loading = false;
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
render() {
|
|
57
|
+
var _a;
|
|
58
|
+
return (h(StyledHost, { key: 'fdf7905cdc7696414b765d61d0f78c7193cbbc76' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: 'f79827c287d68484a87232ae956a1c15e3d7044d', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'dfa9c228f2cd1b0b2d14dc6ce44478ee8fc35d00', slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status) }), title: `${formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { key: '6b5907e3f7753d4e2f6ba59bfe509d97e2a4c1c0', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: '63b7497217a00268190eaea1475639fc5e0b43ca', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: 'e26e56abbac3e12584c187f6f1b560b0f4b33a6f', title: "ID", value: this.payout.id }), h("div", { key: 'e84dd653fb1adc566b0afbfdfc87cce40ed47280', class: "m-4" }, h("button", { key: 'fac0022786dc03349a65dc54729dc2f508c9441f', class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: '9cf642b803c59146895b762eaff40f5026c9f94b', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '90ed8aafabf9eebb47da15c6c8b8d1f527d23557', sectionTitle: "Details" }), h("div", { key: '592b8489fa30441bbf11a52d3daf6a2debcc121f', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '0885f3ece509936d1e1bad64d4a998fbc487ee3a', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: 'b8a7da2bfeada94c8c7c080b516c1bc7fc26f414', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: 'd8928341e89161d4bafc2940f1aa738b345779dd', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: '570bd2a2d44f094870e61debca61c2b5aa772679', title: "Amount", value: formatCurrency(this.payout.amount) }), h(DetailItem, { key: '2882865db185d1668103d819e62cf61edc711697', title: "Fee", value: formatCurrency(this.payout.fees_total) })), h(DetailSectionTitle, { key: 'f9735ff73c650ad318d771df5c22c7d8834a09f6', sectionTitle: "Account" }), h("div", { key: 'd7d53fd77e704035a19dc15bc04ee06dfaa0c51a', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '486ae1c4ae990928bf24cc687cb4456bbc6e18ea', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '528d7d6a299aa1019125f34fc903ea622d09de53', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'eafb132e84de81d41bd154aec55974d8496995dd', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '7f565f8dfacab4cf8edc7025d839dff1d8de2719', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: '61338f5ed539d70b4caa08ffa200d8e47f52ebde', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: 'cea128826f004ece9e6c29c97c07e98a3d45706c', sectionTitle: 'Metadata' }), h("div", { key: 'bf884c3dafa50cd1b8e0d98711f0fe5fc9d60391', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '2d92e2f8d6f032cbaff741da43ca97424b8decaf', metadata: this.payout.metadata })))))));
|
|
59
|
+
}
|
|
60
|
+
static get watchers() { return {
|
|
61
|
+
"getPayout": ["getPayoutWatcher"]
|
|
62
|
+
}; }
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export { PayoutDetailsCore as payout_details_core };
|
|
@@ -1 +1,41 @@
|
|
|
1
|
-
import{h
|
|
1
|
+
import { h } from './p-fad19d75.js';
|
|
2
|
+
|
|
3
|
+
// This component relies on "src/styles/animations.css"
|
|
4
|
+
// where it is defined the pulsation animation.
|
|
5
|
+
// Because of shadow-dom, it's not possible to add it to the root.css.
|
|
6
|
+
// Don't forget to include this file in the `styleUrls`
|
|
7
|
+
// property of the web component that will render the Skeleton
|
|
8
|
+
const Skeleton = ({ component = 'div', height, width, variant = 'text', componentClassName, styles = {}, }) => {
|
|
9
|
+
const getVariantStyle = () => {
|
|
10
|
+
if (variant === 'text') {
|
|
11
|
+
return {
|
|
12
|
+
marginTop: 0,
|
|
13
|
+
marginBottom: 0,
|
|
14
|
+
height: 'auto',
|
|
15
|
+
transformOrigin: '0 55%',
|
|
16
|
+
transform: 'scale(1, 0.60)',
|
|
17
|
+
borderRadius: '4px/6.67px',
|
|
18
|
+
'::before': {
|
|
19
|
+
content: '"\\00a0"',
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
else if (variant === 'circular') {
|
|
24
|
+
return {
|
|
25
|
+
borderRadius: '50%',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
else if (variant === 'rounded') {
|
|
29
|
+
return {
|
|
30
|
+
borderRadius: '4px',
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return {};
|
|
34
|
+
};
|
|
35
|
+
const combinedStyle = Object.assign(Object.assign(Object.assign({}, styles), getVariantStyle()), { width,
|
|
36
|
+
height });
|
|
37
|
+
const TagType = component;
|
|
38
|
+
return (h(TagType, { class: componentClassName, style: combinedStyle, part: "skeleton" }));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { Skeleton as S };
|
|
@@ -1 +1,20 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ComponentErrorCodes;
|
|
2
|
+
(function (ComponentErrorCodes) {
|
|
3
|
+
ComponentErrorCodes["MISSING_PROPS"] = "missing-props";
|
|
4
|
+
ComponentErrorCodes["FETCH_ERROR"] = "fetch-error";
|
|
5
|
+
ComponentErrorCodes["PATCH_ERROR"] = "patch-error";
|
|
6
|
+
ComponentErrorCodes["POST_ERROR"] = "post-error";
|
|
7
|
+
ComponentErrorCodes["UNKNOWN_ERROR"] = "unknown-error";
|
|
8
|
+
ComponentErrorCodes["TOKENIZE_ERROR"] = "tokenize-error";
|
|
9
|
+
ComponentErrorCodes["NOT_AUTHENTICATED"] = "not-authenticated";
|
|
10
|
+
ComponentErrorCodes["INVALID_PARAMETER"] = "invalid-parameter";
|
|
11
|
+
ComponentErrorCodes["PROVISIONING_REQUESTED"] = "provisioning-already-requested";
|
|
12
|
+
})(ComponentErrorCodes || (ComponentErrorCodes = {}));
|
|
13
|
+
var ComponentErrorSeverity;
|
|
14
|
+
(function (ComponentErrorSeverity) {
|
|
15
|
+
ComponentErrorSeverity["INFO"] = "info";
|
|
16
|
+
ComponentErrorSeverity["WARNING"] = "warning";
|
|
17
|
+
ComponentErrorSeverity["ERROR"] = "error";
|
|
18
|
+
})(ComponentErrorSeverity || (ComponentErrorSeverity = {}));
|
|
19
|
+
|
|
20
|
+
export { ComponentErrorSeverity as C, ComponentErrorCodes as a };
|