@justifi/webcomponents 6.10.1 → 6.10.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/bank-account-document-form-inputs_9.cjs.entry.js +1 -1
- package/dist/cjs/{check-pkg-version-PX_ogtrH.js → check-pkg-version-DpY7PKYF.js} +1 -1
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +2 -2
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +14 -3
- package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +15 -10
- 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-checkout.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
- 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-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- 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-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-uJFBawLq.js → package-C7-boC1U.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +16 -4
- 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/form-address-fields/form-address-fields.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +14 -9
- package/dist/docs.json +1 -1
- package/dist/esm/bank-account-document-form-inputs_9.entry.js +2 -2
- package/dist/esm/{check-pkg-version-Dun0W_E2.js → check-pkg-version-DKbeTbtv.js} +1 -1
- package/dist/esm/form-control-number-masked_3.entry.js +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +2 -2
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +15 -4
- package/dist/esm/justifi-apple-pay_8.entry.js +15 -10
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-checkout.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +2 -2
- 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-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- 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-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-CfQ5vkQ3.js → package-C2WozQkF.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/apple-pay.js +13 -8
- package/dist/module/business-bank-account-form-step.js +15 -3
- package/dist/module/business-core-info-form-step.js +2 -2
- 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.js +1 -1
- package/dist/module/button.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/form-address-fields.js +1 -1
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/owner-form-inputs2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/plaid-verification2.js +2 -2
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +3 -0
- package/dist/types/ui-components/button.d.ts +1 -1
- package/dist/webcomponents/{p-3798d389.entry.js → p-00ba4cf6.entry.js} +1 -1
- package/dist/webcomponents/{p-b6ffa313.entry.js → p-02dfdc6f.entry.js} +1 -1
- package/dist/webcomponents/{p-32a8b10f.entry.js → p-150a622a.entry.js} +1 -1
- package/dist/webcomponents/{p-917daf31.entry.js → p-163055e3.entry.js} +1 -1
- package/dist/webcomponents/{p-3bbacc8e.entry.js → p-1cd7cdbf.entry.js} +1 -1
- package/dist/webcomponents/p-21b5240d.entry.js +1 -0
- package/dist/webcomponents/p-35d1be0f.entry.js +1 -0
- package/dist/webcomponents/{p-98158303.entry.js → p-39d11c59.entry.js} +1 -1
- package/dist/webcomponents/{p-ab365375.entry.js → p-69c2bbcf.entry.js} +1 -1
- package/dist/webcomponents/{p-3c647db5.entry.js → p-6f2b0469.entry.js} +1 -1
- package/dist/webcomponents/{p-18658148.entry.js → p-7bf586ca.entry.js} +1 -1
- package/dist/webcomponents/{p-d9118b1e.entry.js → p-7e3030c2.entry.js} +1 -1
- package/dist/webcomponents/p-88d6068d.entry.js +1 -0
- package/dist/webcomponents/{p-a141c90b.entry.js → p-9dedad17.entry.js} +1 -1
- package/dist/webcomponents/p-C2WozQkF.js +1 -0
- package/dist/webcomponents/{p-eEJvKFFX.js → p-DX6fcx_0.js} +1 -1
- package/dist/webcomponents/p-a2b016a7.entry.js +1 -0
- package/dist/webcomponents/{p-4116808e.entry.js → p-a959ca16.entry.js} +1 -1
- package/dist/webcomponents/{p-660a04c0.entry.js → p-b0e83a6e.entry.js} +1 -1
- package/dist/webcomponents/{p-ad962b59.entry.js → p-c9ea1b77.entry.js} +1 -1
- package/dist/webcomponents/{p-a87a7fad.entry.js → p-d246e573.entry.js} +1 -1
- package/dist/webcomponents/{p-092653b6.entry.js → p-d35b09bf.entry.js} +1 -1
- package/dist/webcomponents/{p-3caa3604.entry.js → p-e3d03faf.entry.js} +1 -1
- package/dist/webcomponents/{p-5f402409.entry.js → p-e817f8fc.entry.js} +1 -1
- package/dist/webcomponents/{p-f5362ed9.entry.js → p-e8cd3097.entry.js} +1 -1
- package/dist/webcomponents/{p-e8eeb4f1.entry.js → p-eaa9cb8e.entry.js} +1 -1
- package/dist/webcomponents/{p-990d3709.entry.js → p-f55a6397.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-12665340.entry.js +0 -1
- package/dist/webcomponents/p-334beb48.entry.js +0 -1
- package/dist/webcomponents/p-CfQ5vkQ3.js +0 -1
- package/dist/webcomponents/p-a713a90d.entry.js +0 -1
- package/dist/webcomponents/p-d5516a10.entry.js +0 -1
|
@@ -4,7 +4,7 @@ import { PlaidService } from "../../../../api/services/plaid.service";
|
|
|
4
4
|
import { ComponentErrorSeverity } from "../../../../api/ComponentError";
|
|
5
5
|
import { PlaidErrorCodes, PLAID_ERROR_MESSAGES, PLAID_ERROR_SEVERITY, } from "../../../../api/Plaid";
|
|
6
6
|
import plaidLogoSvg from "../../../../assets/plaid-icon.svg";
|
|
7
|
-
import {
|
|
7
|
+
import { buttonPrimary } from "../../../../styles/parts";
|
|
8
8
|
export class PlaidVerification {
|
|
9
9
|
constructor() {
|
|
10
10
|
this.linkToken = null;
|
|
@@ -316,7 +316,7 @@ export class PlaidVerification {
|
|
|
316
316
|
marginLeft: '5px',
|
|
317
317
|
marginTop: '-2px',
|
|
318
318
|
} }));
|
|
319
|
-
return (h(StyledHost, null, h("script", { src: "https://cdn.plaid.com/link/v2/stable/link-initialize.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", null, h("div", { class: "mb-3" }, h(Button, { variant: "
|
|
319
|
+
return (h(StyledHost, null, h("script", { src: "https://cdn.plaid.com/link/v2/stable/link-initialize.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", null, h("div", { class: "mb-3" }, h(Button, { variant: "primary", type: "button", onClick: (event) => { event.preventDefault(); this.openPlaidLink(); }, disabled: this.isLoading, part: buttonPrimary }, "Connect with Plaid ", plaidLogo, " (instant verification)")), renderErrorState(), renderStatusState())));
|
|
320
320
|
}
|
|
321
321
|
static get is() { return "plaid-verification"; }
|
|
322
322
|
static get properties() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
|
-
import { ApplePayService } from "../../../api/services/apple-pay.service";
|
|
2
|
+
import { ApplePayService, ApplePayServiceErrorCode } from "../../../api/services/apple-pay.service";
|
|
3
3
|
import { ApplePayButtonType, ApplePayButtonStyle, ApplePayHelpers, ApplePayMerchantCapability, } from "../../../api/ApplePay";
|
|
4
4
|
import { StyledHost } from "../../../ui-components";
|
|
5
5
|
import ApplePaySkeleton from "./apple-pay-skeleton";
|
|
@@ -27,7 +27,7 @@ export class ApplePay {
|
|
|
27
27
|
this.isConfigValid = true;
|
|
28
28
|
this.error = null;
|
|
29
29
|
this.handleApplePayClick = async () => {
|
|
30
|
-
var _a, _b;
|
|
30
|
+
var _a, _b, _c;
|
|
31
31
|
if (this.isProcessing || this.disabled || !this.isAvailable) {
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
@@ -66,13 +66,18 @@ export class ApplePay {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
catch (error) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
error
|
|
75
|
-
|
|
69
|
+
if (((_c = error === null || error === void 0 ? void 0 : error.error) === null || _c === void 0 ? void 0 : _c.code) === ApplePayServiceErrorCode.USER_CANCELLED) {
|
|
70
|
+
this.applePayCancelled.emit();
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
const errorMessage = error instanceof Error ? error.message : "Payment failed";
|
|
74
|
+
this.error = errorMessage;
|
|
75
|
+
this.applePayError.emit({ error: errorMessage, code: ApplePay.ErrorCode.PAYMENT_FAILED });
|
|
76
|
+
this.applePayCompleted.emit({
|
|
77
|
+
success: false,
|
|
78
|
+
error: errorMessage,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
76
81
|
}
|
|
77
82
|
finally {
|
|
78
83
|
this.isProcessing = false;
|
package/dist/docs.json
CHANGED
|
@@ -9,7 +9,7 @@ import './Dispute-BH0Xfn-F.js';
|
|
|
9
9
|
import { a as bankAccountTypeOptions } from './business-form-options-DRalxlqN.js';
|
|
10
10
|
import './event-types-XYgDHrVL.js';
|
|
11
11
|
import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
|
|
12
|
-
import { H as text, a5 as card, J as heading2, av as table, V as tableHeadCell, aE as tableCell, _ as input, $ as label, X as inputInvalid, Y as inputDisabled, Z as inputFocused, am as buttonSecondary } from './parts-C4FLe2pT.js';
|
|
12
|
+
import { H as text, a5 as card, J as heading2, av as table, V as tableHeadCell, aE as tableCell, _ as input, $ as label, X as inputInvalid, Y as inputDisabled, Z as inputFocused, am as buttonSecondary, an as buttonPrimary } from './parts-C4FLe2pT.js';
|
|
13
13
|
import { s as snakeCaseToHumanReadable, e as formatDate, d as formatTime } from './utils-7bp92NC7.js';
|
|
14
14
|
import { S as Skeleton } from './skeleton-C162KC3u.js';
|
|
15
15
|
import './event-types-CZfYo5-1.js';
|
|
@@ -514,7 +514,7 @@ const PlaidVerification = class {
|
|
|
514
514
|
marginLeft: '5px',
|
|
515
515
|
marginTop: '-2px',
|
|
516
516
|
} }));
|
|
517
|
-
return (h(StyledHost, null, h("script", { src: "https://cdn.plaid.com/link/v2/stable/link-initialize.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", null, h("div", { class: "mb-3" }, h(Button, { variant: "
|
|
517
|
+
return (h(StyledHost, null, h("script", { src: "https://cdn.plaid.com/link/v2/stable/link-initialize.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", null, h("div", { class: "mb-3" }, h(Button, { variant: "primary", type: "button", onClick: (event) => { event.preventDefault(); this.openPlaidLink(); }, disabled: this.isLoading, part: buttonPrimary }, "Connect with Plaid ", plaidLogo, " (instant verification)")), renderErrorState(), renderStatusState())));
|
|
518
518
|
}
|
|
519
519
|
};
|
|
520
520
|
|
|
@@ -90,7 +90,7 @@ const FormAddressFields = class {
|
|
|
90
90
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
91
91
|
const labels = countryLabels[this.country];
|
|
92
92
|
const options = countryOptions[this.country];
|
|
93
|
-
return (h(Host, { key: '8dabbee93e0f319db333ada6c20af49ed6131b8d' }, h("div", { key: '4b308ca9fa92321e5f60f3e4d9ab1c4e60cbd703', class: "row gy-3" }, h("div", { key: '9c25eec2effd7caed70a3f02f6a780513fae930c', class: "col-12" }, h("form-control-text", { key: '6c2ae178c2122d1f6085906690adadf98cb0774b', name: "line1", label: "Street Address", inputHandler: this.inputHandler, defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, helpText: "No PO Boxes." })), h("div", { key: 'eba53a69fc4c869014ef8b7bf6ff9b1d8f5be566', class: "col-12" }, h("form-control-text", { key: '11c743ce2388173c41cb16f1865fe58b2015d6bb', name: "line2", label: "Address Line 2 (optional)", inputHandler: this.inputHandler, defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '2025c9bb15286f5c3e4693b596372a7dff730ce8', class: "col-12" }, h("form-control-text", { key: '5e0e40fd028d12b88cb15a38906738320e30aeca', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '
|
|
93
|
+
return (h(Host, { key: '8dabbee93e0f319db333ada6c20af49ed6131b8d' }, h("div", { key: '4b308ca9fa92321e5f60f3e4d9ab1c4e60cbd703', class: "row gy-3" }, h("div", { key: '9c25eec2effd7caed70a3f02f6a780513fae930c', class: "col-12" }, h("form-control-text", { key: '6c2ae178c2122d1f6085906690adadf98cb0774b', name: "line1", label: "Street Address", inputHandler: this.inputHandler, defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, helpText: "No PO Boxes." })), h("div", { key: 'eba53a69fc4c869014ef8b7bf6ff9b1d8f5be566', class: "col-12" }, h("form-control-text", { key: '11c743ce2388173c41cb16f1865fe58b2015d6bb', name: "line2", label: "Address Line 2 (optional)", inputHandler: this.inputHandler, defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '2025c9bb15286f5c3e4693b596372a7dff730ce8', class: "col-12" }, h("form-control-text", { key: '5e0e40fd028d12b88cb15a38906738320e30aeca', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '407eac6eee8ca33a6648f2d1a45003961353f877', class: "col-12 col-md-6" }, h("form-control-select", { key: 'c598b24e0dc594ae725a7473212a6ed36102ce49', name: "state", label: labels.stateLabel, options: options.stateOptions, inputHandler: this.inputHandler, defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: '49861d791272c745f881d19016b93885ce59f724', class: "col-12 col-md-6" }, h("form-control-text", { key: '90b9db4630dd4fad7e86151f2a632cd62b8509f3', name: "postal_code", label: labels.postalLabel, inputHandler: this.inputHandler, 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: this.country === CountryCode.USA ? 5 : 7, keyDownHandler: this.country === CountryCode.USA ? numberOnlyHandler : undefined })))));
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
|
|
@@ -3,7 +3,7 @@ import { c as createStore } from './index-cDVGjRkU.js';
|
|
|
3
3
|
import { ar as inputInvalidAndFocused, X as inputInvalid, Z as inputFocused, _ as input, $ as label } from './parts-C4FLe2pT.js';
|
|
4
4
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
|
|
5
5
|
import { F as FormControlErrorText } from './form-control-error-text-xEskXF-M.js';
|
|
6
|
-
import { p as packageJson } from './package-
|
|
6
|
+
import { p as packageJson } from './package-C2WozQkF.js';
|
|
7
7
|
|
|
8
8
|
const iframeInputStylesStore = createStore({
|
|
9
9
|
focused: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-CV0Pyo1O.js';
|
|
2
2
|
import { S as StyledHost } from './styled-host-D6byRazK.js';
|
|
3
3
|
import './event-types-CZfYo5-1.js';
|
|
4
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
4
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
5
5
|
import { w as waitForConfig, c as configState } from './config-state-kKn89dp1.js';
|
|
6
6
|
import './dinero-HXpYMWUU.js';
|
|
7
7
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-Cjcsf8ku.js';
|
|
@@ -15,7 +15,7 @@ import { S as Skeleton } from './skeleton-C162KC3u.js';
|
|
|
15
15
|
import { b as generateTabId } from './utils-7bp92NC7.js';
|
|
16
16
|
import { B as Button } from './button-DOkTCYSa.js';
|
|
17
17
|
import { u as radioListItem } from './parts-C4FLe2pT.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-C2WozQkF.js';
|
|
19
19
|
import './Api-CLZVsXZg.js';
|
|
20
20
|
import './index-cDVGjRkU.js';
|
|
21
21
|
|
|
@@ -6,7 +6,7 @@ import { a as additionalQuestionsSchema, c as businessCoreInfoSchemaCAN, b as bu
|
|
|
6
6
|
import { F as FormController, c as create$3, a as create$6, b as create$8, d as create$7 } from './index.esm-BHdVU4hV.js';
|
|
7
7
|
import { A as AdditionalQuestions, C as CountryCode, e as CoreBusinessInfo, R as Representative, f as Address } from './Business-BcNb9bVO.js';
|
|
8
8
|
import { C as CURRENCY_MASK, P as PHONE_MASKS } from './form-input-masks-CVaOFfrI.js';
|
|
9
|
-
import { J as heading2, am as buttonSecondary, $ as label, Y as inputDisabled, aG as alert } from './parts-C4FLe2pT.js';
|
|
9
|
+
import { J as heading2, a4 as buttonLink, am as buttonSecondary, $ as label, Y as inputDisabled, aG as alert } from './parts-C4FLe2pT.js';
|
|
10
10
|
import { P as PaymentProvisioningLoading } from './payment-provisioning-loading-D_VKtlLm.js';
|
|
11
11
|
import { b as businessServiceReceivedOptions, c as businessClassificationOptions } from './business-form-options-DRalxlqN.js';
|
|
12
12
|
import { a as BusinessFormStep, B as BusinessFormClickActions } from './event-types-XYgDHrVL.js';
|
|
@@ -283,6 +283,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
283
283
|
this.isAddingNewBankAccount = true;
|
|
284
284
|
this.bankAccountVerification = false;
|
|
285
285
|
this.platformAccountId = null;
|
|
286
|
+
this.usePlaidVerification = true;
|
|
286
287
|
this.getSchema = () => {
|
|
287
288
|
const schema = bankAccountSchemaByCountry[this.country];
|
|
288
289
|
return schema(this.allowOptionalFields, this.existingDocuments);
|
|
@@ -344,13 +345,23 @@ const BusinessBankAccountFormStep = class {
|
|
|
344
345
|
this.handleChangeBankAccount = () => {
|
|
345
346
|
this.isAddingNewBankAccount = true;
|
|
346
347
|
this.documentData = new EntityDocumentStorage();
|
|
348
|
+
// Reset to Plaid if available when changing bank account
|
|
349
|
+
this.usePlaidVerification = this.bankAccountVerification && !!this.platformAccountId;
|
|
347
350
|
this.initializeFormController();
|
|
348
351
|
};
|
|
349
352
|
this.handleCancel = () => {
|
|
350
353
|
this.isAddingNewBankAccount = false;
|
|
351
354
|
this.documentData = new EntityDocumentStorage();
|
|
355
|
+
// Reset toggle state when canceling
|
|
356
|
+
this.usePlaidVerification = true;
|
|
352
357
|
this.initializeFormController();
|
|
353
358
|
};
|
|
359
|
+
this.handleToggleToManualEntry = () => {
|
|
360
|
+
this.usePlaidVerification = false;
|
|
361
|
+
};
|
|
362
|
+
this.handleToggleToPlaidVerification = () => {
|
|
363
|
+
this.usePlaidVerification = true;
|
|
364
|
+
};
|
|
354
365
|
this.handleSaveBankAccount = async () => {
|
|
355
366
|
this.formController.validateAndSubmit(() => {
|
|
356
367
|
this.sendData(() => {
|
|
@@ -596,11 +607,11 @@ const BusinessBankAccountFormStep = class {
|
|
|
596
607
|
if (this.isLoading) {
|
|
597
608
|
return h(PaymentProvisioningLoading, null);
|
|
598
609
|
}
|
|
599
|
-
return (h("form", null, h("fieldset", { class: "mb-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Bank Account Info"), h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), h("hr", { class: "mt-2" }), shouldShowPlaidVerification && (h("div", { class: "mt-3" }, h("plaid-verification", { authToken: this.authToken, accountId: this.platformAccountId, businessId: this.businessId, onPlaidVerificationSuccess: () => {
|
|
610
|
+
return (h("form", null, h("fieldset", { class: "mb-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Bank Account Info"), h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), h("hr", { class: "mt-2" }), shouldShowPlaidVerification && this.usePlaidVerification && !this.showReadOnlyView && (h("div", { class: "mt-3" }, h("plaid-verification", { authToken: this.authToken, accountId: this.platformAccountId, businessId: this.businessId, onPlaidVerificationSuccess: () => {
|
|
600
611
|
// Refresh bank account data after successful Plaid verification
|
|
601
612
|
this.isAddingNewBankAccount = false;
|
|
602
613
|
this.refreshBankAccountData();
|
|
603
|
-
} }))), this.country === CountryCode.CAN ? (h("bank-account-form-inputs-canada", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.showReadOnlyView })) : (h("bank-account-form-inputs", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.showReadOnlyView })), this.showReadOnlyView && (h("div", { class: "mt-3" }, h(Button, { variant: "secondary", type: "button", onClick: this.handleChangeBankAccount, disabled: this.isLoading, part: buttonSecondary }, "Change Bank Account"))), (!this.existingBankAccount || this.isAddingNewBankAccount) && (h("div", { class: "mt-3 d-flex gap-2" }, this.isAddingNewBankAccount && (h(Button, { variant: "secondary", type: "button", onClick: this.handleCancel, disabled: this.isLoading, part: buttonSecondary }, "Cancel")), h(Button, { variant: "primary", type: "button", onClick: this.handleSaveBankAccount, disabled: this.isLoading, isLoading: this.isLoading }, "Save Bank Account")))), h("fieldset", { class: "mt-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Document Uploads"), h("form-control-tooltip", { helpText: "One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category." })), h("hr", { class: "mt-2" }), h("business-documents-on-file", { documents: this.existingDocuments, isLoading: this.isLoading }), h("bank-account-document-form-inputs", { inputHandler: this.inputHandler, errors: this.errors, storeFiles: this.storeFiles }))));
|
|
614
|
+
} }), h("div", { class: "mt-3" }, h(Button, { type: "button", variant: "link", onClick: this.handleToggleToManualEntry, disabled: this.isLoading, part: buttonLink }, "Enter bank details manually (document upload required)")))), (!this.usePlaidVerification || this.showReadOnlyView) && (h("div", null, shouldShowPlaidVerification && !this.usePlaidVerification && !this.showReadOnlyView && (h("div", { class: "mb-3" }, h(Button, { type: "button", variant: "secondary", onClick: this.handleToggleToPlaidVerification, disabled: this.isLoading, part: buttonSecondary }, "Link bank account with Plaid instead"))), this.country === CountryCode.CAN ? (h("bank-account-form-inputs-canada", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.showReadOnlyView })) : (h("bank-account-form-inputs", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.showReadOnlyView })))), this.showReadOnlyView && (h("div", { class: "mt-3" }, h(Button, { variant: "secondary", type: "button", onClick: this.handleChangeBankAccount, disabled: this.isLoading, part: buttonSecondary }, "Change Bank Account"))), (!this.existingBankAccount || this.isAddingNewBankAccount) && !this.usePlaidVerification && (h("div", { class: "mt-3 d-flex gap-2" }, this.isAddingNewBankAccount && (h(Button, { variant: "secondary", type: "button", onClick: this.handleCancel, disabled: this.isLoading, part: buttonSecondary }, "Cancel")), h(Button, { variant: "primary", type: "button", onClick: this.handleSaveBankAccount, disabled: this.isLoading, isLoading: this.isLoading }, "Save Bank Account")))), (!this.usePlaidVerification || this.showReadOnlyView) && (h("fieldset", { class: "mt-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Document Uploads"), h("form-control-tooltip", { helpText: "One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category." })), h("hr", { class: "mt-2" }), h("business-documents-on-file", { documents: this.existingDocuments, isLoading: this.isLoading }), h("bank-account-document-form-inputs", { inputHandler: this.inputHandler, errors: this.errors, storeFiles: this.storeFiles })))));
|
|
604
615
|
}
|
|
605
616
|
static get watchers() { return {
|
|
606
617
|
"authToken": ["propChanged"],
|
|
@@ -730,7 +741,7 @@ const BusinessCoreInfoFormStep = class {
|
|
|
730
741
|
if (this.isLoading) {
|
|
731
742
|
return h(PaymentProvisioningLoading, null);
|
|
732
743
|
}
|
|
733
|
-
return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Business Information")), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Business Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)." })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)" })), h("div", { class: "col-12 col-md-8" }, h("form-control-select", { name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "date_of_incorporation", label: "Date of Registration", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), h("div", { class: "col-12 col-md-6" }, (!((_a = this.coreInfo) === null || _a === void 0 ? void 0 : _a.tax_id_last4) || this.isEditingTaxId) ? (h("form-control-number-masked", { name: "tax_id", label: countryLabels[this.country].taxIdLabel, defaultValue: this.isEditingTaxId ? '' : coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, mask: '000000000', helpText: countryLabels[this.country].taxIdHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, countryLabels[this.country].taxIdLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_b = this.coreInfo) === null || _b === void 0 ? void 0 : _b.tax_id_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
|
|
744
|
+
return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Business Information")), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "legal_name", label: "Business Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)." })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)" })), h("div", { class: "col-12 col-md-8" }, h("form-control-select", { name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "date_of_incorporation", label: "Date of Registration", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), h("div", { class: "col-12 col-md-6" }, (!((_a = this.coreInfo) === null || _a === void 0 ? void 0 : _a.tax_id_last4) || this.isEditingTaxId) ? (h("form-control-number-masked", { name: "tax_id", label: countryLabels[this.country].taxIdLabel, defaultValue: this.isEditingTaxId ? '' : coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, mask: '000000000', helpText: countryLabels[this.country].taxIdHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, countryLabels[this.country].taxIdLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_b = this.coreInfo) === null || _b === void 0 ? void 0 : _b.tax_id_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
|
|
734
745
|
this.isEditingTaxId = true;
|
|
735
746
|
// Clear last4-equivalent and current value if any future conditional validation depends on it
|
|
736
747
|
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { tax_id: '', tax_id_last4: null }));
|
|
@@ -11,7 +11,7 @@ import { w as waitForConfig, c as configState } from './config-state-kKn89dp1.js
|
|
|
11
11
|
import { H as Header1 } from './header-1-xlSavD5o.js';
|
|
12
12
|
import { H as Header2, b as insuranceValuesOn, h as hasInsuranceValueChanged, i as insuranceValues } from './insurance-state-jZTKdt60.js';
|
|
13
13
|
import { H as Header3 } from './header-3-egutsoDI.js';
|
|
14
|
-
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-
|
|
14
|
+
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-DKbeTbtv.js';
|
|
15
15
|
import './dinero-HXpYMWUU.js';
|
|
16
16
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes, b as ComponentErrorMessages } from './ComponentError-Cjcsf8ku.js';
|
|
17
17
|
import './Pagination-CLHwhyvu.js';
|
|
@@ -23,7 +23,7 @@ import { P as PlaidService, p as plaidIconSvg } from './plaid-icon-B7a1QC7F.js';
|
|
|
23
23
|
import { P as PAYMENT_METHODS, a as PaymentMethod, b as PAYMENT_MODE } from './index-DkoufM1t.js';
|
|
24
24
|
import { C as CardBrandLabels } from './payment-method-option-utils-lUHAQVFl.js';
|
|
25
25
|
import './index-cDVGjRkU.js';
|
|
26
|
-
import './package-
|
|
26
|
+
import './package-C2WozQkF.js';
|
|
27
27
|
|
|
28
28
|
// Centralized error codes for Apple Pay service
|
|
29
29
|
var ApplePayServiceErrorCode;
|
|
@@ -542,7 +542,7 @@ const ApplePay = class {
|
|
|
542
542
|
this.isConfigValid = true;
|
|
543
543
|
this.error = null;
|
|
544
544
|
this.handleApplePayClick = async () => {
|
|
545
|
-
var _a, _b;
|
|
545
|
+
var _a, _b, _c;
|
|
546
546
|
if (this.isProcessing || this.disabled || !this.isAvailable) {
|
|
547
547
|
return;
|
|
548
548
|
}
|
|
@@ -581,13 +581,18 @@ const ApplePay = class {
|
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
catch (error) {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
error
|
|
590
|
-
|
|
584
|
+
if (((_c = error === null || error === void 0 ? void 0 : error.error) === null || _c === void 0 ? void 0 : _c.code) === ApplePayServiceErrorCode.USER_CANCELLED) {
|
|
585
|
+
this.applePayCancelled.emit();
|
|
586
|
+
}
|
|
587
|
+
else {
|
|
588
|
+
const errorMessage = error instanceof Error ? error.message : "Payment failed";
|
|
589
|
+
this.error = errorMessage;
|
|
590
|
+
this.applePayError.emit({ error: errorMessage, code: ApplePay.ErrorCode.PAYMENT_FAILED });
|
|
591
|
+
this.applePayCompleted.emit({
|
|
592
|
+
success: false,
|
|
593
|
+
error: errorMessage,
|
|
594
|
+
});
|
|
595
|
+
}
|
|
591
596
|
}
|
|
592
597
|
finally {
|
|
593
598
|
this.isProcessing = false;
|
|
@@ -3,7 +3,7 @@ import { E as ErrorState } from './utils-BSpK1eMX.js';
|
|
|
3
3
|
import { B as BusinessService } from './business.service-CS-wQJoN.js';
|
|
4
4
|
import { m as makeGetBusiness } from './get-business-BtJWpVs_.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
7
7
|
import './parts-C4FLe2pT.js';
|
|
8
8
|
import './Api-CLZVsXZg.js';
|
|
9
9
|
import './config-state-kKn89dp1.js';
|
|
@@ -15,7 +15,7 @@ import './Dispute-BH0Xfn-F.js';
|
|
|
15
15
|
import './Pagination-CLHwhyvu.js';
|
|
16
16
|
import './Business-BcNb9bVO.js';
|
|
17
17
|
import './utils-BeQLScSm.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-C2WozQkF.js';
|
|
19
19
|
|
|
20
20
|
const BusinessDetails = class {
|
|
21
21
|
constructor(hostRef) {
|
|
@@ -9,7 +9,7 @@ import './Plaid-Cmyilr-q.js';
|
|
|
9
9
|
import './Pagination-CLHwhyvu.js';
|
|
10
10
|
import { C as CountryCode, B as Business, b as BusinessFormServerErrors } from './Business-BcNb9bVO.js';
|
|
11
11
|
import './Dispute-BH0Xfn-F.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
13
13
|
import { B as Button } from './button-DOkTCYSa.js';
|
|
14
14
|
import { S as StyledHost } from './styled-host-D6byRazK.js';
|
|
15
15
|
import { H as Header1 } from './header-1-xlSavD5o.js';
|
|
@@ -24,7 +24,7 @@ import './country-config-P042rrI3.js';
|
|
|
24
24
|
import './business-form-options-DRalxlqN.js';
|
|
25
25
|
import './index-cDVGjRkU.js';
|
|
26
26
|
import './utils-7bp92NC7.js';
|
|
27
|
-
import './package-
|
|
27
|
+
import './package-C2WozQkF.js';
|
|
28
28
|
import './Api-CLZVsXZg.js';
|
|
29
29
|
import './parts-C4FLe2pT.js';
|
|
30
30
|
import './utils-BeQLScSm.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
2
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
3
3
|
import { c as checkoutStore } from './checkout.store-iNkW80yV.js';
|
|
4
4
|
import { c as checkoutSummary } from './parts-C4FLe2pT.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host-D6byRazK.js';
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
7
|
import { P as PAYMENT_METHODS } from './index-DkoufM1t.js';
|
|
8
|
-
import './package-
|
|
8
|
+
import './package-C2WozQkF.js';
|
|
9
9
|
import './Api-CLZVsXZg.js';
|
|
10
10
|
import './config-state-kKn89dp1.js';
|
|
11
11
|
import './index-cDVGjRkU.js';
|
|
@@ -7,7 +7,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
7
7
|
import './Business-BcNb9bVO.js';
|
|
8
8
|
import './Dispute-BH0Xfn-F.js';
|
|
9
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
11
11
|
import { C as CheckoutService } from './checkout.service-BcQ_onZq.js';
|
|
12
12
|
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-BFALCYFr.js';
|
|
13
13
|
import { S as StyledHost } from './styled-host-D6byRazK.js';
|
|
@@ -15,7 +15,7 @@ import './event-types-CZfYo5-1.js';
|
|
|
15
15
|
import { d as defaultColumnsKeys } from './checkouts-table-C5aYyqpX.js';
|
|
16
16
|
import './index-cDVGjRkU.js';
|
|
17
17
|
import './utils-7bp92NC7.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-C2WozQkF.js';
|
|
19
19
|
import './Api-CLZVsXZg.js';
|
|
20
20
|
import './badge-AZ7Z3PKH.js';
|
|
21
21
|
import './parts-C4FLe2pT.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
4
4
|
import { D as Dispute } from './Dispute-BH0Xfn-F.js';
|
|
5
5
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
6
6
|
import { D as DisputeService } from './dispute.service-B_oe0uFV.js';
|
|
7
|
-
import './package-
|
|
7
|
+
import './package-C2WozQkF.js';
|
|
8
8
|
import './Api-CLZVsXZg.js';
|
|
9
9
|
import './config-state-kKn89dp1.js';
|
|
10
10
|
import './index-cDVGjRkU.js';
|
|
@@ -9,7 +9,7 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Compone
|
|
|
9
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
10
10
|
import { D as DisputeService } from './dispute.service-B_oe0uFV.js';
|
|
11
11
|
import { D as DisputeManagementClickActions } from './event-types-Bg2SZArf.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
13
13
|
import './dinero-HXpYMWUU.js';
|
|
14
14
|
import './Api-CLZVsXZg.js';
|
|
15
15
|
import './config-state-kKn89dp1.js';
|
|
@@ -18,7 +18,7 @@ import './Plaid-Cmyilr-q.js';
|
|
|
18
18
|
import './Dispute-BH0Xfn-F.js';
|
|
19
19
|
import './Pagination-CLHwhyvu.js';
|
|
20
20
|
import './Business-BcNb9bVO.js';
|
|
21
|
-
import './package-
|
|
21
|
+
import './package-C2WozQkF.js';
|
|
22
22
|
|
|
23
23
|
const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
24
24
|
var _a;
|
|
@@ -7,13 +7,13 @@ import './Business-BcNb9bVO.js';
|
|
|
7
7
|
import './Dispute-BH0Xfn-F.js';
|
|
8
8
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
9
9
|
import { E as ErrorState } from './utils-BSpK1eMX.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
11
11
|
import './config-state-kKn89dp1.js';
|
|
12
12
|
import './index-cDVGjRkU.js';
|
|
13
13
|
import './utils-7bp92NC7.js';
|
|
14
14
|
import './dinero-HXpYMWUU.js';
|
|
15
15
|
import './parts-C4FLe2pT.js';
|
|
16
|
-
import './package-
|
|
16
|
+
import './package-C2WozQkF.js';
|
|
17
17
|
|
|
18
18
|
const api = Api();
|
|
19
19
|
class ReportsService {
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js'
|
|
|
2
2
|
import { au as heading5, as as heading4, an as buttonPrimary, H as text } from './parts-C4FLe2pT.js';
|
|
3
3
|
import { S as StyledHost } from './styled-host-D6byRazK.js';
|
|
4
4
|
import './event-types-CZfYo5-1.js';
|
|
5
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
5
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
7
7
|
import { B as BusinessService } from './business.service-CS-wQJoN.js';
|
|
8
8
|
import { B as Business } from './Business-BcNb9bVO.js';
|
|
@@ -16,7 +16,7 @@ import './Dispute-BH0Xfn-F.js';
|
|
|
16
16
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
17
17
|
import { T as TerminalService } from './terminal.service-Dv1-CZ4Y.js';
|
|
18
18
|
import { l as formatPhoneNumber } from './utils-7bp92NC7.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-C2WozQkF.js';
|
|
20
20
|
import './Api-CLZVsXZg.js';
|
|
21
21
|
import './index-cDVGjRkU.js';
|
|
22
22
|
|
|
@@ -3,7 +3,7 @@ import { P as PaymentService } from './payment.service-Nvz1TYZB.js';
|
|
|
3
3
|
import { m as makeGetPaymentDetails } from './get-payment-details-BdewJSTH.js';
|
|
4
4
|
import { E as ErrorState } from './utils-BSpK1eMX.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
7
7
|
import './Api-CLZVsXZg.js';
|
|
8
8
|
import './config-state-kKn89dp1.js';
|
|
9
9
|
import './index-cDVGjRkU.js';
|
|
@@ -15,7 +15,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
15
15
|
import './Business-BcNb9bVO.js';
|
|
16
16
|
import './utils-BeQLScSm.js';
|
|
17
17
|
import './parts-C4FLe2pT.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-C2WozQkF.js';
|
|
19
19
|
|
|
20
20
|
const PaymentDetails = class {
|
|
21
21
|
constructor(hostRef) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
2
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
3
3
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
4
4
|
import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-CBvplwPf.js';
|
|
5
5
|
import { B as BusinessService } from './business.service-CS-wQJoN.js';
|
|
@@ -9,7 +9,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
9
9
|
import './Business-BcNb9bVO.js';
|
|
10
10
|
import './Dispute-BH0Xfn-F.js';
|
|
11
11
|
import { i as isTokenExpired } from './utils-7bp92NC7.js';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-C2WozQkF.js';
|
|
13
13
|
import './utils-BeQLScSm.js';
|
|
14
14
|
import './config-state-kKn89dp1.js';
|
|
15
15
|
import './index-cDVGjRkU.js';
|
|
@@ -6,7 +6,7 @@ import { h as PaymentBalanceTransaction } from './Plaid-Cmyilr-q.js';
|
|
|
6
6
|
import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
|
|
7
7
|
import './Business-BcNb9bVO.js';
|
|
8
8
|
import './Dispute-BH0Xfn-F.js';
|
|
9
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
9
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
10
10
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
11
11
|
import { P as PaymentService } from './payment.service-Nvz1TYZB.js';
|
|
12
12
|
import { T as Table, l as TableWrapper, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell } from './table-hHARNoRM.js';
|
|
@@ -15,7 +15,7 @@ import { T as TableClickActions } from './event-types-CZfYo5-1.js';
|
|
|
15
15
|
import { a as convertToLocal } from './utils-7bp92NC7.js';
|
|
16
16
|
import { V as tableHeadCell, W as getAlternateTableCellPart } from './parts-C4FLe2pT.js';
|
|
17
17
|
import './index-cDVGjRkU.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-C2WozQkF.js';
|
|
19
19
|
import './Api-CLZVsXZg.js';
|
|
20
20
|
import './spinner-BfjGGaND.js';
|
|
21
21
|
|
|
@@ -8,14 +8,14 @@ import './Pagination-CLHwhyvu.js';
|
|
|
8
8
|
import './Business-BcNb9bVO.js';
|
|
9
9
|
import './Dispute-BH0Xfn-F.js';
|
|
10
10
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
11
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
11
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
12
12
|
import { S as StyledHost } from './styled-host-D6byRazK.js';
|
|
13
13
|
import './event-types-CZfYo5-1.js';
|
|
14
14
|
import { d as defaultColumnsKeys } from './payments-table-BDaiD836.js';
|
|
15
15
|
import './Api-CLZVsXZg.js';
|
|
16
16
|
import './utils-7bp92NC7.js';
|
|
17
17
|
import './index-cDVGjRkU.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-C2WozQkF.js';
|
|
19
19
|
import './payments-status-D4XkcfLU.js';
|
|
20
20
|
import './badge-AZ7Z3PKH.js';
|
|
21
21
|
import './parts-C4FLe2pT.js';
|
|
@@ -9,13 +9,13 @@ import './Business-BcNb9bVO.js';
|
|
|
9
9
|
import './Dispute-BH0Xfn-F.js';
|
|
10
10
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
11
11
|
import { E as ErrorState } from './utils-BSpK1eMX.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
13
13
|
import { m as makeGetPayoutCSV } from './get-payout-csv-D-Lnooki.js';
|
|
14
14
|
import './Api-CLZVsXZg.js';
|
|
15
15
|
import './utils-7bp92NC7.js';
|
|
16
16
|
import './index-cDVGjRkU.js';
|
|
17
17
|
import './parts-C4FLe2pT.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-C2WozQkF.js';
|
|
19
19
|
|
|
20
20
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
21
21
|
var _a;
|
|
@@ -6,7 +6,7 @@ import { i as PayoutBalanceTransaction } from './Plaid-Cmyilr-q.js';
|
|
|
6
6
|
import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
|
|
7
7
|
import './Business-BcNb9bVO.js';
|
|
8
8
|
import './Dispute-BH0Xfn-F.js';
|
|
9
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
9
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
10
10
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
11
11
|
import { P as PayoutService } from './payout.service-tTxsxoqF.js';
|
|
12
12
|
import { T as Table, l as TableWrapper, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell } from './table-hHARNoRM.js';
|
|
@@ -15,7 +15,7 @@ import { T as TableClickActions } from './event-types-CZfYo5-1.js';
|
|
|
15
15
|
import { a as convertToLocal } from './utils-7bp92NC7.js';
|
|
16
16
|
import { V as tableHeadCell, W as getAlternateTableCellPart } from './parts-C4FLe2pT.js';
|
|
17
17
|
import './index-cDVGjRkU.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-C2WozQkF.js';
|
|
19
19
|
import './Api-CLZVsXZg.js';
|
|
20
20
|
import './spinner-BfjGGaND.js';
|
|
21
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
4
4
|
import { P as PayoutService } from './payout.service-tTxsxoqF.js';
|
|
5
5
|
import './config-state-kKn89dp1.js';
|
|
6
6
|
import './dinero-HXpYMWUU.js';
|
|
@@ -14,7 +14,7 @@ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccoun
|
|
|
14
14
|
import { S as StyledHost } from './styled-host-D6byRazK.js';
|
|
15
15
|
import './event-types-CZfYo5-1.js';
|
|
16
16
|
import { d as defaultColumnsKeys } from './payouts-table-B4nuJlpC.js';
|
|
17
|
-
import './package-
|
|
17
|
+
import './package-C2WozQkF.js';
|
|
18
18
|
import './Api-CLZVsXZg.js';
|
|
19
19
|
import './utils-7bp92NC7.js';
|
|
20
20
|
import './index-cDVGjRkU.js';
|
|
@@ -12,7 +12,7 @@ import { S as StyledHost } from './styled-host-D6byRazK.js';
|
|
|
12
12
|
import './event-types-CZfYo5-1.js';
|
|
13
13
|
import { P as PaymentService } from './payment.service-Nvz1TYZB.js';
|
|
14
14
|
import { m as makeGetPaymentDetails } from './get-payment-details-BdewJSTH.js';
|
|
15
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
15
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
16
16
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
17
17
|
import { A as Api } from './Api-CLZVsXZg.js';
|
|
18
18
|
import { S as Skeleton } from './skeleton-C162KC3u.js';
|
|
@@ -20,7 +20,7 @@ import './_commonjsHelpers-BFTU3MAI.js';
|
|
|
20
20
|
import './dinero-HXpYMWUU.js';
|
|
21
21
|
import './index-cDVGjRkU.js';
|
|
22
22
|
import './parts-C4FLe2pT.js';
|
|
23
|
-
import './package-
|
|
23
|
+
import './package-C2WozQkF.js';
|
|
24
24
|
|
|
25
25
|
const amountValidation = (maxAmount) => {
|
|
26
26
|
const max = +maxAmount;
|
|
@@ -6,7 +6,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
6
6
|
import './Business-BcNb9bVO.js';
|
|
7
7
|
import './Dispute-BH0Xfn-F.js';
|
|
8
8
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
9
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
9
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DKbeTbtv.js';
|
|
10
10
|
import { c as checkoutStore } from './checkout.store-iNkW80yV.js';
|
|
11
11
|
import { p as processHTML, f as formatCurrency, r as removeAttribute, k as addAttribute } from './utils-7bp92NC7.js';
|
|
12
12
|
import { v as validateInsuranceValues, i as insuranceValues, a as insuranceErrors, H as Header2 } from './insurance-state-jZTKdt60.js';
|
|
@@ -16,7 +16,7 @@ import './event-types-CZfYo5-1.js';
|
|
|
16
16
|
import { S as Skeleton } from './skeleton-C162KC3u.js';
|
|
17
17
|
import './config-state-kKn89dp1.js';
|
|
18
18
|
import './index-cDVGjRkU.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-C2WozQkF.js';
|
|
20
20
|
import './index-DkoufM1t.js';
|
|
21
21
|
import './dinero-HXpYMWUU.js';
|
|
22
22
|
|